From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/AI.meta | 9 + .../Assets/Scripts/XMainClient/AI/AIMsgTarget.cs | 16 + .../Scripts/XMainClient/AI/AIMsgTarget.cs.meta | 12 + .../Assets/Scripts/XMainClient/AI/AINodeFactory.cs | 668 ++ .../Scripts/XMainClient/AI/AINodeFactory.cs.meta | 12 + .../XMainClient/AI/AIRunTimeBehaviorTree.cs | 151 + .../XMainClient/AI/AIRunTimeBehaviorTree.cs.meta | 12 + .../XMainClient/AI/AIRunTimeBoolComparison.cs | 31 + .../XMainClient/AI/AIRunTimeBoolComparison.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeCalDistance.cs | 59 + .../XMainClient/AI/AIRunTimeCalDistance.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeCompareTo.cs | 54 + .../XMainClient/AI/AIRunTimeCompareTo.cs.meta | 12 + .../XMainClient/AI/AIRunTimeConditionMonsterNum.cs | 12 + .../AI/AIRunTimeConditionMonsterNum.cs.meta | 12 + .../XMainClient/AI/AIRunTimeConditionPlayerNum.cs | 123 + .../AI/AIRunTimeConditionPlayerNum.cs.meta | 12 + .../AI/AIRunTimeConditionalEvaluator.cs | 67 + .../AI/AIRunTimeConditionalEvaluator.cs.meta | 12 + .../XMainClient/AI/AIRunTimeDecorationNode.cs | 20 + .../XMainClient/AI/AIRunTimeDecorationNode.cs.meta | 12 + .../XMainClient/AI/AIRunTimeDetectEnimyInSight.cs | 18 + .../AI/AIRunTimeDetectEnimyInSight.cs.meta | 12 + .../XMainClient/AI/AIRunTimeDoSelectFarthest.cs | 18 + .../AI/AIRunTimeDoSelectFarthest.cs.meta | 12 + .../XMainClient/AI/AIRunTimeDoSelectNearest.cs | 18 + .../AI/AIRunTimeDoSelectNearest.cs.meta | 12 + .../XMainClient/AI/AIRunTimeEntryTaskNode.cs | 62 + .../XMainClient/AI/AIRunTimeEntryTaskNode.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs | 18 + .../XMainClient/AI/AIRunTimeFindNavPath.cs.meta | 12 + .../XMainClient/AI/AIRunTimeFindTargetByDist.cs | 53 + .../AI/AIRunTimeFindTargetByDist.cs.meta | 12 + .../AI/AIRunTimeFindTargetByHitLevel.cs | 24 + .../AI/AIRunTimeFindTargetByHitLevel.cs.meta | 12 + .../XMainClient/AI/AIRunTimeFloatComparison.cs | 78 + .../AI/AIRunTimeFloatComparison.cs.meta | 12 + .../XMainClient/AI/AIRunTimeFloatOperator.cs | 89 + .../XMainClient/AI/AIRunTimeFloatOperator.cs.meta | 12 + .../AI/AIRunTimeGetRealtimeSinceStartup.cs | 25 + .../AI/AIRunTimeGetRealtimeSinceStartup.cs.meta | 12 + .../XMainClient/AI/AIRunTimeIntComparison.cs | 78 + .../XMainClient/AI/AIRunTimeIntComparison.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeIntOperator.cs | 89 + .../XMainClient/AI/AIRunTimeIntOperator.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeInverter.cs | 18 + .../XMainClient/AI/AIRunTimeInverter.cs.meta | 12 + .../XMainClient/AI/AIRunTimeIsCastingSkill.cs | 17 + .../XMainClient/AI/AIRunTimeIsCastingSkill.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeIsFighting.cs | 17 + .../XMainClient/AI/AIRunTimeIsFighting.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs | 17 + .../XMainClient/AI/AIRunTimeIsFixedInCd.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs | 17 + .../XMainClient/AI/AIRunTimeIsHurtOppo.cs.meta | 12 + .../XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs | 17 + .../AI/AIRunTimeIsOppoCastingSkill.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs | 25 + .../XMainClient/AI/AIRunTimeIsQTEState.cs.meta | 12 + .../XMainClient/AI/AIRunTimeIsTargetImmortal.cs | 23 + .../AI/AIRunTimeIsTargetImmortal.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeIsWander.cs | 17 + .../XMainClient/AI/AIRunTimeIsWander.cs.meta | 12 + .../Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs | 17 + .../Scripts/XMainClient/AI/AIRunTimeLog.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeLogicNode.cs | 21 + .../XMainClient/AI/AIRunTimeLogicNode.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeNodeAction.cs | 13 + .../XMainClient/AI/AIRunTimeNodeAction.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeNodeBase.cs | 33 + .../XMainClient/AI/AIRunTimeNodeBase.cs.meta | 12 + .../XMainClient/AI/AIRunTimeNodeCondition.cs | 18 + .../XMainClient/AI/AIRunTimeNodeCondition.cs.meta | 12 + .../XMainClient/AI/AIRunTimeRandomEntityPos.cs | 17 + .../AI/AIRunTimeRandomEntityPos.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs | 37 + .../XMainClient/AI/AIRunTimeRandomFloat.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs | 50 + .../XMainClient/AI/AIRunTimeRandomIndex.cs.meta | 12 + .../XMainClient/AI/AIRunTimeRandomSelectorNode.cs | 35 + .../AI/AIRunTimeRandomSelectorNode.cs.meta | 12 + .../XMainClient/AI/AIRunTimeRandomSequenceNode.cs | 35 + .../AI/AIRunTimeRandomSequenceNode.cs.meta | 12 + .../XMainClient/AI/AIRunTimeResetHartedList.cs | 18 + .../AI/AIRunTimeResetHartedList.cs.meta | 12 + .../XMainClient/AI/AIRunTimeResetTargets.cs | 19 + .../XMainClient/AI/AIRunTimeResetTargets.cs.meta | 12 + .../XMainClient/AI/AIRunTimeReturnFailure.cs | 22 + .../XMainClient/AI/AIRunTimeReturnFailure.cs.meta | 12 + .../XMainClient/AI/AIRunTimeReturnSuccess.cs | 22 + .../XMainClient/AI/AIRunTimeReturnSuccess.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeRootNode.cs | 37 + .../XMainClient/AI/AIRunTimeRootNode.cs.meta | 12 + .../XMainClient/AI/AIRunTimeSelectBuffTarget.cs | 34 + .../AI/AIRunTimeSelectBuffTarget.cs.meta | 12 + .../XMainClient/AI/AIRunTimeSelectItemTarget.cs | 34 + .../AI/AIRunTimeSelectItemTarget.cs.meta | 12 + .../AI/AIRunTimeSelectMoveTargetById.cs | 36 + .../AI/AIRunTimeSelectMoveTargetById.cs.meta | 12 + .../XMainClient/AI/AIRunTimeSelectNonHartedList.cs | 17 + .../AI/AIRunTimeSelectNonHartedList.cs.meta | 12 + .../AI/AIRunTimeSelectTargetBySkillCircle.cs | 18 + .../AI/AIRunTimeSelectTargetBySkillCircle.cs.meta | 12 + .../XMainClient/AI/AIRunTimeSelectorNode.cs | 25 + .../XMainClient/AI/AIRunTimeSelectorNode.cs.meta | 12 + .../XMainClient/AI/AIRunTimeSequenceNode.cs | 25 + .../XMainClient/AI/AIRunTimeSequenceNode.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeSetBool.cs | 28 + .../XMainClient/AI/AIRunTimeSetBool.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs | 17 + .../XMainClient/AI/AIRunTimeSetEnmity.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeSetFloat.cs | 28 + .../XMainClient/AI/AIRunTimeSetFloat.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeSetInt.cs | 28 + .../Scripts/XMainClient/AI/AIRunTimeSetInt.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs | 17 + .../XMainClient/AI/AIRunTimeStatusIdle.cs.meta | 12 + .../XMainClient/AI/AIRunTimeTargetByHatredList.cs | 22 + .../AI/AIRunTimeTargetByHatredList.cs.meta | 12 + .../XMainClient/AI/AIRunTimeTargetQTEState.cs | 26 + .../XMainClient/AI/AIRunTimeTargetQTEState.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs | 70 + .../XMainClient/AI/AIRunTimeTreeMgr.cs.meta | 12 + .../XMainClient/AI/AIRunTimeValueDistance.cs | 30 + .../XMainClient/AI/AIRunTimeValueDistance.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeValueFP.cs | 17 + .../XMainClient/AI/AIRunTimeValueFP.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeValueHP.cs | 24 + .../XMainClient/AI/AIRunTimeValueHP.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeValueMP.cs | 17 + .../XMainClient/AI/AIRunTimeValueMP.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRunTimeValueTarget.cs | 39 + .../XMainClient/AI/AIRunTimeValueTarget.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeActionMove.cs | 42 + .../XMainClient/AI/AIRuntimeActionMove.cs.meta | 12 + .../XMainClient/AI/AIRuntimeActionNavigation.cs | 25 + .../AI/AIRuntimeActionNavigation.cs.meta | 12 + .../XMainClient/AI/AIRuntimeActionRotate.cs | 27 + .../XMainClient/AI/AIRuntimeActionRotate.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeAddBuff.cs | 39 + .../XMainClient/AI/AIRuntimeAddBuff.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeCallMonster.cs | 111 + .../XMainClient/AI/AIRuntimeCallMonster.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeCallScript.cs | 25 + .../XMainClient/AI/AIRuntimeCallScript.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs | 17 + .../XMainClient/AI/AIRuntimeCancelSkill.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeCastDash.cs | 18 + .../XMainClient/AI/AIRuntimeCastDash.cs.meta | 12 + .../XMainClient/AI/AIRuntimeDetectEnemyInRange.cs | 17 + .../AI/AIRuntimeDetectEnemyInRange.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs | 21 + .../XMainClient/AI/AIRuntimeDoCastSkill.cs.meta | 12 + .../AI/AIRuntimeDoSelectSkillInOrder.cs | 18 + .../AI/AIRuntimeDoSelectSkillInOrder.cs.meta | 12 + .../XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs | 18 + .../AI/AIRuntimeDoSelectSkillRandom.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs | 82 + .../XMainClient/AI/AIRuntimeFilterSkill.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeKillMonster.cs | 12 + .../XMainClient/AI/AIRuntimeKillMonster.cs.meta | 12 + .../XMainClient/AI/AIRuntimeMixMonsterPos.cs | 12 + .../XMainClient/AI/AIRuntimeMixMonsterPos.cs.meta | 12 + .../XMainClient/AI/AIRuntimeMoveStratage.cs | 17 + .../XMainClient/AI/AIRuntimeMoveStratage.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs | 74 + .../XMainClient/AI/AIRuntimeNavToTarget.cs.meta | 12 + .../XMainClient/AI/AIRuntimePhysicalAttack.cs | 21 + .../XMainClient/AI/AIRuntimePhysicalAttack.cs.meta | 12 + .../XMainClient/AI/AIRuntimeReceiveAIEvent.cs | 104 + .../XMainClient/AI/AIRuntimeReceiveAIEvent.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs | 12 + .../XMainClient/AI/AIRuntimeRemoveBuff.cs.meta | 12 + .../XMainClient/AI/AIRuntimeRemoveSceneBuff.cs | 17 + .../AI/AIRuntimeRemoveSceneBuff.cs.meta | 12 + .../XMainClient/AI/AIRuntimeRotateToTarget.cs | 18 + .../XMainClient/AI/AIRuntimeRotateToTarget.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs | 45 + .../XMainClient/AI/AIRuntimeSendAIEvent.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeSetDest.cs | 170 + .../XMainClient/AI/AIRuntimeSetDest.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs | 18 + .../XMainClient/AI/AIRuntimeTryCastQTE.cs.meta | 12 + .../Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs | 17 + .../XMainClient/AI/AIRuntimeXHashFunc.cs.meta | 12 + .../Scripts/XMainClient/AbyssPartyBattleHandler.cs | 39 + .../XMainClient/AbyssPartyBattleHandler.cs.meta | 12 + .../XMainClient/AbyssPartyEntranceBehaviour.cs | 63 + .../AbyssPartyEntranceBehaviour.cs.meta | 12 + .../Scripts/XMainClient/AbyssPartyEntranceView.cs | 413 ++ .../XMainClient/AbyssPartyEntranceView.cs.meta | 12 + .../Assets/Scripts/XMainClient/AchieveItemInfo.cs | 12 + .../Scripts/XMainClient/AchieveItemInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AchieveState.cs | 11 + .../Scripts/XMainClient/AchieveState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AchieveType.cs | 13 + .../Assets/Scripts/XMainClient/AchieveType.cs.meta | 12 + .../Assets/Scripts/XMainClient/AchivementState.cs | 12 + .../Scripts/XMainClient/AchivementState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ActionType.cs | 15 + .../Assets/Scripts/XMainClient/ActionType.cs.meta | 12 + .../XMainClient/ActivityExchangeRewardHandler.cs | 209 + .../ActivityExchangeRewardHandler.cs.meta | 12 + .../XMainClient/ActivityExpeditionHandler.cs | 150 + .../XMainClient/ActivityExpeditionHandler.cs.meta | 12 + .../Scripts/XMainClient/ActivityHelpReward.cs | 33 + .../Scripts/XMainClient/ActivityHelpReward.cs.meta | 12 + .../XMainClient/ActivityHelpRewardHandler.cs | 180 + .../XMainClient/ActivityHelpRewardHandler.cs.meta | 12 + .../Scripts/XMainClient/ActivityInviteTarget.cs | 10 + .../XMainClient/ActivityInviteTarget.cs.meta | 12 + .../Scripts/XMainClient/ActivityNestHandler.cs | 183 + .../XMainClient/ActivityNestHandler.cs.meta | 12 + .../Scripts/XMainClient/ActivityTaskState.cs | 11 + .../Scripts/XMainClient/ActivityTaskState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ActivityType.cs | 14 + .../Scripts/XMainClient/ActivityType.cs.meta | 12 + .../XMainClient/ActivityWeekendPartyBehaviour.cs | 52 + .../ActivityWeekendPartyBehaviour.cs.meta | 12 + .../XMainClient/ActivityWorldBossHandler.cs | 166 + .../XMainClient/ActivityWorldBossHandler.cs.meta | 12 + .../Scripts/XMainClient/AdditionRemindDocument.cs | 204 + .../XMainClient/AdditionRemindDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/AdjustDirection.cs | 11 + .../Scripts/XMainClient/AdjustDirection.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AncientBox.cs | 117 + .../Assets/Scripts/XMainClient/AncientBox.cs.meta | 12 + .../Assets/Scripts/XMainClient/AncientTaskView.cs | 138 + .../Scripts/XMainClient/AncientTaskView.cs.meta | 12 + .../Scripts/XMainClient/AnicentTaskBhaviour.cs | 37 + .../XMainClient/AnicentTaskBhaviour.cs.meta | 12 + .../Scripts/XMainClient/AnicientBoxBahaviour.cs | 37 + .../XMainClient/AnicientBoxBahaviour.cs.meta | 12 + .../Scripts/XMainClient/AnnounceBehaviour.cs | 34 + .../Scripts/XMainClient/AnnounceBehaviour.cs.meta | 12 + .../Scripts/XMainClient/ApplyMentorshipInfo.cs | 15 + .../XMainClient/ApplyMentorshipInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/ArrowDirection.cs | 10 + .../Scripts/XMainClient/ArrowDirection.cs.meta | 12 + .../Scripts/XMainClient/ArtifactAtlasDocument.cs | 164 + .../XMainClient/ArtifactAtlasDocument.cs.meta | 12 + .../Scripts/XMainClient/ArtifactAttrRange.cs | 11 + .../Scripts/XMainClient/ArtifactAttrRange.cs.meta | 12 + .../Scripts/XMainClient/ArtifactBagDocument.cs | 583 ++ .../XMainClient/ArtifactBagDocument.cs.meta | 12 + .../Scripts/XMainClient/ArtifactComposeDocument.cs | 425 ++ .../XMainClient/ArtifactComposeDocument.cs.meta | 12 + .../Scripts/XMainClient/ArtifactDeityStoveDlg.cs | 159 + .../XMainClient/ArtifactDeityStoveDlg.cs.meta | 12 + .../XMainClient/ArtifactDeityStoveDocument.cs | 647 ++ .../XMainClient/ArtifactDeityStoveDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/ArtifactDocument.cs | 421 ++ .../Scripts/XMainClient/ArtifactDocument.cs.meta | 12 + .../Scripts/XMainClient/ArtifactElementData.cs | 59 + .../XMainClient/ArtifactElementData.cs.meta | 12 + .../Scripts/XMainClient/ArtifactFuseDocument.cs | 287 + .../XMainClient/ArtifactFuseDocument.cs.meta | 12 + .../XMainClient/ArtifactInscriptionDocument.cs | 224 + .../ArtifactInscriptionDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/ArtifactPosition.cs | 14 + .../Scripts/XMainClient/ArtifactPosition.cs.meta | 12 + .../Scripts/XMainClient/ArtifactRecastDocument.cs | 164 + .../XMainClient/ArtifactRecastDocument.cs.meta | 12 + .../Scripts/XMainClient/ArtifactRefinedDocument.cs | 209 + .../XMainClient/ArtifactRefinedDocument.cs.meta | 12 + .../Scripts/XMainClient/ArtifactSetHandler.cs | 548 ++ .../Scripts/XMainClient/ArtifactSetHandler.cs.meta | 12 + .../Scripts/XMainClient/ArtifactSingleData.cs | 93 + .../Scripts/XMainClient/ArtifactSingleData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ArtifactSuit.cs | 170 + .../Scripts/XMainClient/ArtifactSuit.cs.meta | 12 + .../Assets/Scripts/XMainClient/ArtifactSuitData.cs | 23 + .../Scripts/XMainClient/ArtifactSuitData.cs.meta | 12 + .../Scripts/XMainClient/ArtifactSuitLevel.cs | 16 + .../Scripts/XMainClient/ArtifactSuitLevel.cs.meta | 12 + .../Assets/Scripts/XMainClient/ArtifactSuitMgr.cs | 83 + .../Scripts/XMainClient/ArtifactSuitMgr.cs.meta | 12 + .../XMainClient/ArtifactTooltipButtonOperate.cs | 39 + .../ArtifactTooltipButtonOperate.cs.meta | 12 + .../Scripts/XMainClient/ArtifactTotalAttrData.cs | 84 + .../XMainClient/ArtifactTotalAttrData.cs.meta | 12 + .../XMainClient/AsyncSceneAnimationRequest.cs | 9 + .../XMainClient/AsyncSceneAnimationRequest.cs.meta | 12 + .../Scripts/XMainClient/AttackApplyCritical.cs | 46 + .../XMainClient/AttackApplyCritical.cs.meta | 12 + .../Assets/Scripts/XMainClient/AttackApplyState.cs | 18 + .../Scripts/XMainClient/AttackApplyState.cs.meta | 12 + .../Assets/Scripts/XMainClient/AttackApplyStun.cs | 48 + .../Scripts/XMainClient/AttackApplyStun.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AttackType.cs | 10 + .../Assets/Scripts/XMainClient/AttackType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AttrType.cs | 11 + Client/Assets/Scripts/XMainClient/AttrType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AttriDataType.cs | 13 + .../Scripts/XMainClient/AttriDataType.cs.meta | 12 + .../Assets/Scripts/XMainClient/AttributeCharm.cs | 15 + .../Scripts/XMainClient/AttributeCharm.cs.meta | 12 + .../Assets/Scripts/XMainClient/AuctionActType.cs | 12 + .../Scripts/XMainClient/AuctionActType.cs.meta | 12 + .../Assets/Scripts/XMainClient/AuctionBehaviour.cs | 35 + .../Scripts/XMainClient/AuctionBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/AuctionDocument.cs | 865 +++ .../Scripts/XMainClient/AuctionDocument.cs.meta | 12 + .../Scripts/XMainClient/AuctionHouseDocument.cs | 332 + .../XMainClient/AuctionHouseDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AuctionItem.cs | 13 + .../Assets/Scripts/XMainClient/AuctionItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/AuctionSaleItem.cs | 17 + .../Scripts/XMainClient/AuctionSaleItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AuctionSys.cs | 15 + .../Assets/Scripts/XMainClient/AuctionSys.cs.meta | 12 + Client/Assets/Scripts/XMainClient/AuctionView.cs | 232 + .../Assets/Scripts/XMainClient/AuctionView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BagExpandData.cs | 19 + .../Scripts/XMainClient/BagExpandData.cs.meta | 12 + .../Assets/Scripts/XMainClient/BarrageBehaviour.cs | 42 + .../Scripts/XMainClient/BarrageBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BarrageDlg.cs | 211 + .../Assets/Scripts/XMainClient/BarrageDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BarrageItem.cs | 92 + .../Assets/Scripts/XMainClient/BarrageItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BarrageMsg.cs | 12 + .../Assets/Scripts/XMainClient/BarrageMsg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BarrageQueue.cs | 57 + .../Scripts/XMainClient/BarrageQueue.cs.meta | 12 + .../Scripts/XMainClient/BattleCaptainPVPHandler.cs | 486 ++ .../XMainClient/BattleCaptainPVPHandler.cs.meta | 12 + .../XMainClient/BattleFieldBattleHandler.cs | 227 + .../XMainClient/BattleFieldBattleHandler.cs.meta | 12 + .../XMainClient/BattleFieldEntranceBehaviour.cs | 43 + .../BattleFieldEntranceBehaviour.cs.meta | 12 + .../Scripts/XMainClient/BattleFieldEntranceView.cs | 184 + .../XMainClient/BattleFieldEntranceView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BattleLine.cs | 18 + .../Assets/Scripts/XMainClient/BattleLine.cs.meta | 12 + .../Scripts/XMainClient/BattleShowInfoHandler.cs | 143 + .../XMainClient/BattleShowInfoHandler.cs.meta | 12 + .../Scripts/XMainClient/BeenAppliedMsgType.cs | 13 + .../Scripts/XMainClient/BeenAppliedMsgType.cs.meta | 12 + .../Scripts/XMainClient/BigMeleeBattleHandler.cs | 346 ++ .../XMainClient/BigMeleeBattleHandler.cs.meta | 12 + .../XMainClient/BigMeleeEntranceBehaviour.cs | 43 + .../XMainClient/BigMeleeEntranceBehaviour.cs.meta | 12 + .../Scripts/XMainClient/BigMeleeEntranceView.cs | 206 + .../XMainClient/BigMeleeEntranceView.cs.meta | 12 + .../Scripts/XMainClient/BigMeleeRankHandler.cs | 148 + .../XMainClient/BigMeleeRankHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BigPrizeNode.cs | 18 + .../Scripts/XMainClient/BigPrizeNode.cs.meta | 12 + .../Scripts/XMainClient/BillBoardHideType.cs | 15 + .../Scripts/XMainClient/BillBoardHideType.cs.meta | 12 + .../Assets/Scripts/XMainClient/BillboardUsage.cs | 10 + .../Scripts/XMainClient/BillboardUsage.cs.meta | 12 + .../XMainClient/BiochemicalHellDogDocument.cs | 301 + .../XMainClient/BiochemicalHellDogDocument.cs.meta | 12 + .../XMainClient/BiochemicalHellDogFrameHandler.cs | 247 + .../BiochemicalHellDogFrameHandler.cs.meta | 12 + .../XMainClient/BiochemicalHellDogRankBehaviour.cs | 26 + .../BiochemicalHellDogRankBehaviour.cs.meta | 12 + .../XMainClient/BiochemicalHellDogRankView.cs | 192 + .../XMainClient/BiochemicalHellDogRankView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BonusSender.cs | 10 + .../Assets/Scripts/XMainClient/BonusSender.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BonusState.cs | 12 + .../Assets/Scripts/XMainClient/BonusState.cs.meta | 12 + .../Assets/Scripts/XMainClient/BroadBarrageItem.cs | 35 + .../Scripts/XMainClient/BroadBarrageItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs | 229 + .../Scripts/XMainClient/BroadMiniDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BroadNode.cs | 11 + .../Assets/Scripts/XMainClient/BroadNode.cs.meta | 12 + .../Scripts/XMainClient/BroadcastBehaviour.cs | 32 + .../Scripts/XMainClient/BroadcastBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BroadcastDlg.cs | 229 + .../Scripts/XMainClient/BroadcastDlg.cs.meta | 12 + .../Scripts/XMainClient/BroadcastMiniBehaviour.cs | 16 + .../XMainClient/BroadcastMiniBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Buff.meta | 9 + Client/Assets/Scripts/XMainClient/Buff/XBuff.cs | 718 +++ .../Assets/Scripts/XMainClient/Buff/XBuff.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffAddEventArgs.cs | 26 + .../XMainClient/Buff/XBuffAddEventArgs.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffAuraCheck.cs | 312 + .../XMainClient/Buff/XBuffAuraCheck.cs.meta | 12 + .../XMainClient/Buff/XBuffBillboardAddEventArgs.cs | 24 + .../Buff/XBuffBillboardAddEventArgs.cs.meta | 12 + .../Buff/XBuffBillboardRemoveEventArgs.cs | 21 + .../Buff/XBuffBillboardRemoveEventArgs.cs.meta | 12 + .../XMainClient/Buff/XBuffChangeAttribute.cs | 331 + .../XMainClient/Buff/XBuffChangeAttribute.cs.meta | 12 + .../XMainClient/Buff/XBuffChangeEventArgs.cs | 65 + .../XMainClient/Buff/XBuffChangeEventArgs.cs.meta | 12 + .../XMainClient/Buff/XBuffChangeFightGroup.cs | 44 + .../XMainClient/Buff/XBuffChangeFightGroup.cs.meta | 12 + .../Assets/Scripts/XMainClient/Buff/XBuffClear.cs | 78 + .../Scripts/XMainClient/Buff/XBuffClear.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffComponent.cs | 1261 ++++ .../XMainClient/Buff/XBuffComponent.cs.meta | 12 + .../XMainClient/Buff/XBuffDamageDistanceScale.cs | 70 + .../Buff/XBuffDamageDistanceScale.cs.meta | 12 + .../XMainClient/Buff/XBuffDamageReflection.cs | 60 + .../XMainClient/Buff/XBuffDamageReflection.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffEffectData.cs | 9 + .../XMainClient/Buff/XBuffEffectData.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs | 22 + .../XMainClient/Buff/XBuffEffectPrioriy.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffExclusive.cs | 81 + .../XMainClient/Buff/XBuffExclusive.cs.meta | 12 + .../Assets/Scripts/XMainClient/Buff/XBuffKill.cs | 45 + .../Scripts/XMainClient/Buff/XBuffKill.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs | 61 + .../XMainClient/Buff/XBuffLifeAddAttack.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffLifeSteal.cs | 93 + .../XMainClient/Buff/XBuffLifeSteal.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffManipulate.cs | 73 + .../XMainClient/Buff/XBuffManipulate.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffMergeType.cs | 12 + .../XMainClient/Buff/XBuffMergeType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs | 79 + .../Scripts/XMainClient/Buff/XBuffMob.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffModifyEffect.cs | 180 + .../XMainClient/Buff/XBuffModifyEffect.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffReduceDamage.cs | 79 + .../XMainClient/Buff/XBuffReduceDamage.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs | 183 + .../XMainClient/Buff/XBuffReduceSkillCD.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffRegenerate.cs | 258 + .../XMainClient/Buff/XBuffRegenerate.cs.meta | 12 + .../XMainClient/Buff/XBuffRemoveEventArgs.cs | 21 + .../XMainClient/Buff/XBuffRemoveEventArgs.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffSkillsReplace.cs | 84 + .../XMainClient/Buff/XBuffSkillsReplace.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffSpecialState.cs | 516 ++ .../XMainClient/Buff/XBuffSpecialState.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffStateInfo.cs | 103 + .../XMainClient/Buff/XBuffStateInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs | 9 + .../Scripts/XMainClient/Buff/XBuffTag.cs.meta | 12 + .../XMainClient/Buff/XBuffTargetLifeAddAttack.cs | 57 + .../Buff/XBuffTargetLifeAddAttack.cs.meta | 12 + .../XMainClient/Buff/XBuffTemplateManager.cs | 198 + .../XMainClient/Buff/XBuffTemplateManager.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffTrigger.cs | 284 + .../Scripts/XMainClient/Buff/XBuffTrigger.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffTriggerAlways.cs | 35 + .../XMainClient/Buff/XBuffTriggerAlways.cs.meta | 12 + .../XMainClient/Buff/XBuffTriggerByBeHit.cs | 75 + .../XMainClient/Buff/XBuffTriggerByBeHit.cs.meta | 12 + .../XMainClient/Buff/XBuffTriggerByCastSkill.cs | 30 + .../Buff/XBuffTriggerByCastSkill.cs.meta | 12 + .../XMainClient/Buff/XBuffTriggerByCombo.cs | 32 + .../XMainClient/Buff/XBuffTriggerByCombo.cs.meta | 12 + .../XMainClient/Buff/XBuffTriggerByDeath.cs | 68 + .../XMainClient/Buff/XBuffTriggerByDeath.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffTriggerByHit.cs | 149 + .../XMainClient/Buff/XBuffTriggerByHit.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffTriggerByLife.cs | 35 + .../XMainClient/Buff/XBuffTriggerByLife.cs.meta | 12 + .../Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs | 69 + .../XMainClient/Buff/XBuffTriggerByQTE.cs.meta | 12 + .../XMainClient/Buff/XBuffTriggerByStacking.cs | 30 + .../Buff/XBuffTriggerByStacking.cs.meta | 12 + .../XMainClient/Buff/XBuffTriggerWhenRemove.cs | 21 + .../Buff/XBuffTriggerWhenRemove.cs.meta | 12 + .../Assets/Scripts/XMainClient/Buff/XBuffType.cs | 23 + .../Scripts/XMainClient/Buff/XBuffType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BuffDesc.cs | 31 + Client/Assets/Scripts/XMainClient/BuffDesc.cs.meta | 12 + Client/Assets/Scripts/XMainClient/BuffEffect.cs | 71 + .../Assets/Scripts/XMainClient/BuffEffect.cs.meta | 12 + .../Assets/Scripts/XMainClient/CBrifGroupInfo.cs | 28 + .../Scripts/XMainClient/CBrifGroupInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CClientSocket.cs | 488 ++ .../Scripts/XMainClient/CClientSocket.cs.meta | 12 + .../Assets/Scripts/XMainClient/CGroupPlayerInfo.cs | 26 + .../Scripts/XMainClient/CGroupPlayerInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CIBShop.cs | 15 + Client/Assets/Scripts/XMainClient/CIBShop.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CNetProcessor.cs | 363 ++ .../Scripts/XMainClient/CNetProcessor.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CNetSender.cs | 93 + .../Assets/Scripts/XMainClient/CNetSender.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CNetwork.cs | 692 +++ Client/Assets/Scripts/XMainClient/CNetwork.cs.meta | 12 + .../Assets/Scripts/XMainClient/CPacketBreaker.cs | 31 + .../Scripts/XMainClient/CPacketBreaker.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CUIIBShop.cs | 11 + .../Assets/Scripts/XMainClient/CUIIBShop.cs.meta | 12 + .../Scripts/XMainClient/CalculatorBehaviour.cs | 31 + .../XMainClient/CalculatorBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CalculatorDlg.cs | 98 + .../Scripts/XMainClient/CalculatorDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CalculatorKey.cs | 21 + .../Scripts/XMainClient/CalculatorKey.cs.meta | 12 + .../Scripts/XMainClient/CalculatorKeyBack.cs | 6 + .../Scripts/XMainClient/CalculatorKeyBack.cs.meta | 12 + .../Assets/Scripts/XMainClient/CallMonsterArg.cs | 26 + .../Scripts/XMainClient/CallMonsterArg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CandidateInfo.cs | 15 + .../Scripts/XMainClient/CandidateInfo.cs.meta | 12 + .../Scripts/XMainClient/CapacityBehaviour.cs | 22 + .../Scripts/XMainClient/CapacityBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/CapacityDownDlg.cs | 199 + .../Scripts/XMainClient/CapacityDownDlg.cs.meta | 12 + .../Scripts/XMainClient/CardCollectBehaviour.cs | 214 + .../XMainClient/CardCollectBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/CardCollectView.cs | 1153 ++++ .../Scripts/XMainClient/CardCollectView.cs.meta | 12 + .../Scripts/XMainClient/CardCombinationStatus.cs | 12 + .../XMainClient/CardCombinationStatus.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CardPage.cs | 15 + Client/Assets/Scripts/XMainClient/CardPage.cs.meta | 12 + .../Assets/Scripts/XMainClient/CardTotalHandler.cs | 170 + .../Scripts/XMainClient/CardTotalHandler.cs.meta | 12 + .../Scripts/XMainClient/CareerHomepageHandler.cs | 377 ++ .../XMainClient/CareerHomepageHandler.cs.meta | 12 + .../Scripts/XMainClient/CareerPVPDataHandler.cs | 524 ++ .../XMainClient/CareerPVPDataHandler.cs.meta | 12 + .../Scripts/XMainClient/CareerTrophyHandler.cs | 701 +++ .../XMainClient/CareerTrophyHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/CarnivalBehavior.cs | 38 + .../Scripts/XMainClient/CarnivalBehavior.cs.meta | 12 + .../Assets/Scripts/XMainClient/CarnivalBelong.cs | 15 + .../Scripts/XMainClient/CarnivalBelong.cs.meta | 12 + .../Scripts/XMainClient/CarnivalContentHander.cs | 307 + .../XMainClient/CarnivalContentHander.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CarnivalDlg.cs | 251 + .../Assets/Scripts/XMainClient/CarnivalDlg.cs.meta | 12 + .../Scripts/XMainClient/CarnivalRwdHander.cs | 183 + .../Scripts/XMainClient/CarnivalRwdHander.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CarnivalState.cs | 13 + .../Scripts/XMainClient/CarnivalState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Chat.meta | 9 + .../Scripts/XMainClient/Chat/ChatAssetType.cs | 10 + .../Scripts/XMainClient/Chat/ChatAssetType.cs.meta | 12 + .../XMainClient/Chat/ChatAssistBehaviour.cs | 39 + .../XMainClient/Chat/ChatAssistBehaviour.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatAssistView.cs | 190 + .../XMainClient/Chat/ChatAssistView.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatChannelType.cs | 26 + .../XMainClient/Chat/ChatChannelType.cs.meta | 12 + .../XMainClient/Chat/ChatEmotionBehaviour.cs | 27 + .../XMainClient/Chat/ChatEmotionBehaviour.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatEmotionView.cs | 184 + .../XMainClient/Chat/ChatEmotionView.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatFriendData.cs | 63 + .../XMainClient/Chat/ChatFriendData.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatFriendItem.cs | 162 + .../XMainClient/Chat/ChatFriendItem.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatGroupBehaviour.cs | 25 + .../XMainClient/Chat/ChatGroupBehaviour.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatGroupItem.cs | 70 + .../Scripts/XMainClient/Chat/ChatGroupItem.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatGroupList.cs | 252 + .../Scripts/XMainClient/Chat/ChatGroupList.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatHistoryItem.cs | 54 + .../XMainClient/Chat/ChatHistoryItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs | 202 + .../Scripts/XMainClient/Chat/ChatInfo.cs.meta | 12 + .../XMainClient/Chat/ChatInputStringBack.cs | 6 + .../XMainClient/Chat/ChatInputStringBack.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatInputType.cs | 10 + .../Scripts/XMainClient/Chat/ChatInputType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs | 313 + .../Scripts/XMainClient/Chat/ChatItem.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatItemInfo.cs | 25 + .../Scripts/XMainClient/Chat/ChatItemInfo.cs.meta | 12 + .../XMainClient/Chat/ChatMemberBehaviour.cs | 22 + .../XMainClient/Chat/ChatMemberBehaviour.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatMemberList.cs | 187 + .../XMainClient/Chat/ChatMemberList.cs.meta | 12 + .../XMainClient/Chat/ChatSelectStringBack.cs | 6 + .../XMainClient/Chat/ChatSelectStringBack.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatSystemItem.cs | 39 + .../XMainClient/Chat/ChatSystemItem.cs.meta | 12 + .../XMainClient/Chat/ChatTextRecognizeInfo.cs | 23 + .../XMainClient/Chat/ChatTextRecognizeInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Chat/ChatType.cs | 12 + .../Scripts/XMainClient/Chat/ChatType.cs.meta | 12 + .../Scripts/XMainClient/Chat/ChatVoiceInfo.cs | 41 + .../Scripts/XMainClient/Chat/ChatVoiceInfo.cs.meta | 12 + .../XMainClient/Chat/ChatVoicePrivateInfo.cs | 13 + .../XMainClient/Chat/ChatVoicePrivateInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs | 32 + .../Scripts/XMainClient/ClientBoxInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/ClientBuffInfo.cs | 12 + .../Scripts/XMainClient/ClientBuffInfo.cs.meta | 12 + .../Scripts/XMainClient/ClientFashionData.cs | 15 + .../Scripts/XMainClient/ClientFashionData.cs.meta | 12 + .../Assets/Scripts/XMainClient/CollectNpcInfo.cs | 24 + .../Scripts/XMainClient/CollectNpcInfo.cs.meta | 12 + .../Scripts/XMainClient/CollectNpcRefreshMode.cs | 10 + .../XMainClient/CollectNpcRefreshMode.cs.meta | 12 + .../Scripts/XMainClient/CombatEffectHelper.cs | 1055 ++++ .../Scripts/XMainClient/CombatEffectHelper.cs.meta | 12 + .../Assets/Scripts/XMainClient/CombatEffectType.cs | 23 + .../Scripts/XMainClient/CombatEffectType.cs.meta | 12 + .../Assets/Scripts/XMainClient/CombineMeshTask.cs | 197 + .../Scripts/XMainClient/CombineMeshTask.cs.meta | 12 + .../Scripts/XMainClient/CombineMeshUtility.cs | 188 + .../Scripts/XMainClient/CombineMeshUtility.cs.meta | 12 + .../Assets/Scripts/XMainClient/ComparisonType.cs | 14 + .../Scripts/XMainClient/ComparisonType.cs.meta | 12 + .../Scripts/XMainClient/CompeteNestRankHandler.cs | 204 + .../XMainClient/CompeteNestRankHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Components.meta | 9 + .../XMainClient/Components/ActionStates.meta | 9 + .../ActionStates/XActionStateComponent.cs | 253 + .../ActionStates/XActionStateComponent.cs.meta | 12 + .../Components/ActionStates/XBeHitComponent.cs | 895 +++ .../ActionStates/XBeHitComponent.cs.meta | 12 + .../Components/ActionStates/XBeHitEventArgs.cs | 35 + .../ActionStates/XBeHitEventArgs.cs.meta | 12 + .../Components/ActionStates/XChargeComponent.cs | 422 ++ .../ActionStates/XChargeComponent.cs.meta | 12 + .../Components/ActionStates/XChargeEventArgs.cs | 39 + .../ActionStates/XChargeEventArgs.cs.meta | 12 + .../Components/ActionStates/XDeathComponent.cs | 335 + .../ActionStates/XDeathComponent.cs.meta | 12 + .../Components/ActionStates/XFallComponent.cs | 109 + .../Components/ActionStates/XFallComponent.cs.meta | 12 + .../Components/ActionStates/XFallEventArgs.cs | 24 + .../Components/ActionStates/XFallEventArgs.cs.meta | 12 + .../Components/ActionStates/XFreezeComponent.cs | 229 + .../ActionStates/XFreezeComponent.cs.meta | 12 + .../Components/ActionStates/XFreezeEventArgs.cs | 32 + .../ActionStates/XFreezeEventArgs.cs.meta | 12 + .../Components/ActionStates/XIdleComponent.cs | 122 + .../Components/ActionStates/XIdleComponent.cs.meta | 12 + .../Components/ActionStates/XIdleEventArgs.cs | 18 + .../Components/ActionStates/XIdleEventArgs.cs.meta | 12 + .../Components/ActionStates/XJumpComponent.cs | 130 + .../Components/ActionStates/XJumpComponent.cs.meta | 12 + .../Components/ActionStates/XJumpEventArgs.cs | 27 + .../Components/ActionStates/XJumpEventArgs.cs.meta | 12 + .../Components/ActionStates/XMoveComponent.cs | 548 ++ .../Components/ActionStates/XMoveComponent.cs.meta | 12 + .../Components/ActionStates/XMoveEventArgs.cs | 34 + .../Components/ActionStates/XMoveEventArgs.cs.meta | 12 + .../Components/ActionStates/XMoveMobEventArgs.cs | 18 + .../ActionStates/XMoveMobEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Coordinate.cs | 19 + .../Assets/Scripts/XMainClient/Coordinate.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CostInfo.cs | 11 + Client/Assets/Scripts/XMainClient/CostInfo.cs.meta | 12 + .../XMainClient/CreateChatGroupBehaviour.cs | 26 + .../XMainClient/CreateChatGroupBehaviour.cs.meta | 12 + .../Scripts/XMainClient/CreateChatGroupDlg.cs | 75 + .../Scripts/XMainClient/CreateChatGroupDlg.cs.meta | 12 + .../Scripts/XMainClient/CreatechatGroupCall.cs | 6 + .../XMainClient/CreatechatGroupCall.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CropState.cs | 12 + .../Assets/Scripts/XMainClient/CropState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/CutSceneDo.cs | 7 + .../Assets/Scripts/XMainClient/CutSceneDo.cs.meta | 12 + .../Scripts/XMainClient/CutoverViewBehaviour.cs | 22 + .../XMainClient/CutoverViewBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/CutoverViewView.cs | 149 + .../Scripts/XMainClient/CutoverViewView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/DamageElement.cs | 13 + .../Scripts/XMainClient/DamageElement.cs.meta | 12 + Client/Assets/Scripts/XMainClient/DamageFlag.cs | 12 + .../Assets/Scripts/XMainClient/DamageFlag.cs.meta | 12 + Client/Assets/Scripts/XMainClient/DamageType.cs | 10 + .../Assets/Scripts/XMainClient/DamageType.cs.meta | 12 + .../Assets/Scripts/XMainClient/DanceMotionData.cs | 11 + .../Scripts/XMainClient/DanceMotionData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/DecalLoadTask.cs | 125 + .../Scripts/XMainClient/DecalLoadTask.cs.meta | 12 + .../Assets/Scripts/XMainClient/DesignationInfo.cs | 30 + .../Scripts/XMainClient/DesignationInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Direction.cs | 12 + .../Assets/Scripts/XMainClient/Direction.cs.meta | 12 + .../Assets/Scripts/XMainClient/DlgHandlerBase.cs | 525 ++ .../Scripts/XMainClient/DlgHandlerBase.cs.meta | 12 + Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs | 65 + .../Scripts/XMainClient/DlgHandlerMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/DonateRankType.cs | 10 + .../Scripts/XMainClient/DonateRankType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/DotTimeInfo.cs | 19 + .../Assets/Scripts/XMainClient/DotTimeInfo.cs.meta | 12 + .../Scripts/XMainClient/DragonCoinCostHandler.cs | 46 + .../XMainClient/DragonCoinCostHandler.cs.meta | 12 + .../XMainClient/DragonCrusadeGateBehavior.cs | 22 + .../XMainClient/DragonCrusadeGateBehavior.cs.meta | 12 + .../Scripts/XMainClient/DragonCrusadeGateWin.cs | 198 + .../XMainClient/DragonCrusadeGateWin.cs.meta | 12 + .../XMainClient/DragonCrusadeGateWinBehavior.cs | 42 + .../DragonCrusadeGateWinBehavior.cs.meta | 12 + .../Scripts/XMainClient/DragonCrusageGateData.cs | 25 + .../XMainClient/DragonCrusageGateData.cs.meta | 12 + .../XMainClient/DragonGuildApproveSetting.cs | 26 + .../XMainClient/DragonGuildApproveSetting.cs.meta | 12 + .../Scripts/XMainClient/DragonGuildLiveness.cs | 248 + .../XMainClient/DragonGuildLiveness.cs.meta | 12 + .../XMainClient/DragonGuildLivenessRecord.cs | 74 + .../XMainClient/DragonGuildLivenessRecord.cs.meta | 12 + .../XMainClient/DragonGuildMemberSortType.cs | 20 + .../XMainClient/DragonGuildMemberSortType.cs.meta | 12 + .../Scripts/XMainClient/DragonGuildPermission.cs | 18 + .../XMainClient/DragonGuildPermission.cs.meta | 12 + .../Scripts/XMainClient/DragonGuildPosition.cs | 13 + .../XMainClient/DragonGuildPosition.cs.meta | 12 + .../Scripts/XMainClient/DragonGuildShopRecord.cs | 77 + .../XMainClient/DragonGuildShopRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/DragonRwdItem.cs | 12 + .../Scripts/XMainClient/DragonRwdItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/DragonShareType.cs | 16 + .../Scripts/XMainClient/DragonShareType.cs.meta | 12 + .../Scripts/XMainClient/DungeonShareBehavior.cs | 65 + .../XMainClient/DungeonShareBehavior.cs.meta | 12 + .../Assets/Scripts/XMainClient/DungeonShareView.cs | 267 + .../Scripts/XMainClient/DungeonShareView.cs.meta | 12 + .../Assets/Scripts/XMainClient/ECombineMatType.cs | 10 + .../Scripts/XMainClient/ECombineMatType.cs.meta | 12 + .../Assets/Scripts/XMainClient/ECombineStatus.cs | 11 + .../Scripts/XMainClient/ECombineStatus.cs.meta | 12 + Client/Assets/Scripts/XMainClient/EFun.cs | 18 + Client/Assets/Scripts/XMainClient/EFun.cs.meta | 12 + .../Assets/Scripts/XMainClient/EProcessStatus.cs | 12 + .../Scripts/XMainClient/EProcessStatus.cs.meta | 12 + .../Assets/Scripts/XMainClient/EProtocolErrCode.cs | 11 + .../Scripts/XMainClient/EProtocolErrCode.cs.meta | 12 + .../Assets/Scripts/XMainClient/ESettingConfig.cs | 21 + .../Scripts/XMainClient/ESettingConfig.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ESkinFadeType.cs | 11 + .../Scripts/XMainClient/ESkinFadeType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ESpriteStatus.cs | 11 + .../Scripts/XMainClient/ESpriteStatus.cs.meta | 12 + Client/Assets/Scripts/XMainClient/EXStage.cs | 13 + Client/Assets/Scripts/XMainClient/EXStage.cs.meta | 12 + .../Assets/Scripts/XMainClient/EffectDataParams.cs | 79 + .../Scripts/XMainClient/EffectDataParams.cs.meta | 12 + Client/Assets/Scripts/XMainClient/EffectIDType.cs | 10 + .../Scripts/XMainClient/EffectIDType.cs.meta | 12 + .../Assets/Scripts/XMainClient/EmblemPosition.cs | 26 + .../Scripts/XMainClient/EmblemPosition.cs.meta | 12 + .../Assets/Scripts/XMainClient/EmblemSetHandler.cs | 369 ++ .../Scripts/XMainClient/EmblemSetHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/EmblemSlotStatus.cs | 58 + .../Scripts/XMainClient/EmblemSlotStatus.cs.meta | 12 + .../Scripts/XMainClient/EnchantCheckResult.cs | 13 + .../Scripts/XMainClient/EnchantCheckResult.cs.meta | 12 + .../Scripts/XMainClient/EndRecordCallBack.cs | 6 + .../Scripts/XMainClient/EndRecordCallBack.cs.meta | 12 + Client/Assets/Scripts/XMainClient/EnhanceAttr.cs | 59 + .../Assets/Scripts/XMainClient/EnhanceAttr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Enmity.cs | 11 + Client/Assets/Scripts/XMainClient/Enmity.cs.meta | 12 + Client/Assets/Scripts/XMainClient/EntityMask.cs | 30 + .../Assets/Scripts/XMainClient/EntityMask.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Equip.meta | 9 + .../Scripts/XMainClient/Equip/EquipAttrData.cs | 119 + .../XMainClient/Equip/EquipAttrData.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipAttrDataMgr.cs | 76 + .../XMainClient/Equip/EquipAttrDataMgr.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipAttrRange.cs | 52 + .../XMainClient/Equip/EquipAttrRange.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipCompare.cs | 12 + .../Scripts/XMainClient/Equip/EquipCompare.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipFuseData.cs | 33 + .../XMainClient/Equip/EquipFuseData.cs.meta | 12 + .../XMainClient/Equip/EquipFusionDocument.cs | 685 ++ .../XMainClient/Equip/EquipFusionDocument.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipLoadTask.cs | 100 + .../XMainClient/Equip/EquipLoadTask.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipPosition.cs | 20 + .../XMainClient/Equip/EquipPosition.cs.meta | 12 + .../Equip/EquipSetCreateConfirmHandler.cs | 96 + .../Equip/EquipSetCreateConfirmHandler.cs.meta | 12 + .../XMainClient/Equip/EquipSetCreateHandler.cs | 215 + .../Equip/EquipSetCreateHandler.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipSetHandler.cs | 561 ++ .../XMainClient/Equip/EquipSetHandler.cs.meta | 12 + .../XMainClient/Equip/EquipSetLevelHandler.cs | 162 + .../XMainClient/Equip/EquipSetLevelHandler.cs.meta | 12 + .../XMainClient/Equip/EquipSetProfHandler.cs | 126 + .../XMainClient/Equip/EquipSetProfHandler.cs.meta | 12 + .../XMainClient/Equip/EquipSetWearingHandler.cs | 130 + .../Equip/EquipSetWearingHandler.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipSlotAttrData.cs | 93 + .../XMainClient/Equip/EquipSlotAttrData.cs.meta | 12 + .../XMainClient/Equip/EquipSlotAttrDatas.cs | 197 + .../XMainClient/Equip/EquipSlotAttrDatas.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipSuitItemData.cs | 121 + .../XMainClient/Equip/EquipSuitItemData.cs.meta | 12 + .../Scripts/XMainClient/Equip/EquipSuitMenuData.cs | 21 + .../XMainClient/Equip/EquipSuitMenuData.cs.meta | 12 + .../XMainClient/Equip/EquipSuitMenuDataItem.cs | 17 + .../Equip/EquipSuitMenuDataItem.cs.meta | 12 + .../XMainClient/Equip/EquipTransformBehaviour.cs | 80 + .../Equip/EquipTransformBehaviour.cs.meta | 12 + .../XMainClient/Equip/EquipTransformItemView.cs | 77 + .../Equip/EquipTransformItemView.cs.meta | 12 + .../XMainClient/Equip/EquipUpgradeDocument.cs | 131 + .../XMainClient/Equip/EquipUpgradeDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/EventDelegate.cs | 6 + .../Scripts/XMainClient/EventDelegate.cs.meta | 12 + .../Assets/Scripts/XMainClient/EventPoolClear.cs | 6 + .../Scripts/XMainClient/EventPoolClear.cs.meta | 12 + .../Assets/Scripts/XMainClient/ExpBackTypeMgr.cs | 14 + .../Scripts/XMainClient/ExpBackTypeMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/FWchildNode.cs | 13 + .../Assets/Scripts/XMainClient/FWchildNode.cs.meta | 12 + Client/Assets/Scripts/XMainClient/FWnode.cs | 10 + Client/Assets/Scripts/XMainClient/FWnode.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Farm.cs | 250 + Client/Assets/Scripts/XMainClient/Farm.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Farmland.cs | 534 ++ Client/Assets/Scripts/XMainClient/Farmland.cs.meta | 12 + .../Assets/Scripts/XMainClient/FashionPosition.cs | 23 + .../Scripts/XMainClient/FashionPosition.cs.meta | 12 + .../Scripts/XMainClient/FashionPositionInfo.cs | 44 + .../XMainClient/FashionPositionInfo.cs.meta | 12 + .../Scripts/XMainClient/FashionStorageDisplay.cs | 39 + .../XMainClient/FashionStorageDisplay.cs.meta | 12 + .../XMainClient/FashionStorageEquipCollection.cs | 156 + .../FashionStorageEquipCollection.cs.meta | 12 + .../XMainClient/FashionStorageFashionCollection.cs | 147 + .../FashionStorageFashionCollection.cs.meta | 12 + .../Scripts/XMainClient/FashionStorageHairColor.cs | 50 + .../XMainClient/FashionStorageHairColor.cs.meta | 12 + .../Scripts/XMainClient/FashionStoragePosition.cs | 18 + .../XMainClient/FashionStoragePosition.cs.meta | 12 + .../Scripts/XMainClient/FashionStoragePreview.cs | 11 + .../XMainClient/FashionStoragePreview.cs.meta | 12 + .../XMainClient/FashionStorageSuitEffect.cs | 56 + .../XMainClient/FashionStorageSuitEffect.cs.meta | 12 + .../Scripts/XMainClient/FashionStorageTabBase.cs | 98 + .../XMainClient/FashionStorageTabBase.cs.meta | 12 + .../Scripts/XMainClient/FatigueRecoverTime.cs | 14 + .../Scripts/XMainClient/FatigueRecoverTime.cs.meta | 12 + Client/Assets/Scripts/XMainClient/FetchState.cs | 12 + .../Assets/Scripts/XMainClient/FetchState.cs.meta | 12 + .../Assets/Scripts/XMainClient/FirstPassAuxData.cs | 246 + .../Scripts/XMainClient/FirstPassAuxData.cs.meta | 12 + .../Scripts/XMainClient/FirstPassDocument.cs | 601 ++ .../Scripts/XMainClient/FirstPassDocument.cs.meta | 12 + .../Scripts/XMainClient/FirstPassInfoData.cs | 40 + .../Scripts/XMainClient/FirstPassInfoData.cs.meta | 12 + .../Scripts/XMainClient/FirstPassRankInfo.cs | 82 + .../Scripts/XMainClient/FirstPassRankInfo.cs.meta | 12 + .../Scripts/XMainClient/FirstPassRankList.cs | 54 + .../Scripts/XMainClient/FirstPassRankList.cs.meta | 12 + .../Scripts/XMainClient/FirstPassRankView.cs | 251 + .../Scripts/XMainClient/FirstPassRankView.cs.meta | 12 + .../XMainClient/FirstPassRewardBehaviour.cs | 28 + .../XMainClient/FirstPassRewardBehaviour.cs.meta | 12 + .../Scripts/XMainClient/FirstPassRewardView.cs | 167 + .../XMainClient/FirstPassRewardView.cs.meta | 12 + .../Scripts/XMainClient/FitstpassRankBehaviour.cs | 31 + .../XMainClient/FitstpassRankBehaviour.cs.meta | 12 + .../Scripts/XMainClient/FloatOperatorType.cs | 14 + .../Scripts/XMainClient/FloatOperatorType.cs.meta | 12 + .../Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs | 42 + .../Scripts/XMainClient/ForgeAttrDataMgr.cs.meta | 12 + .../Scripts/XMainClient/ForgeReplaceHandler.cs | 102 + .../XMainClient/ForgeReplaceHandler.cs.meta | 12 + .../Scripts/XMainClient/ForgeSuccessHandler.cs | 123 + .../XMainClient/ForgeSuccessHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/FriendServerInfo.cs | 14 + .../Scripts/XMainClient/FriendServerInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/FuseEffectType.cs | 11 + .../Scripts/XMainClient/FuseEffectType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GCFGuild.cs | 14 + Client/Assets/Scripts/XMainClient/GCFGuild.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs | 116 + .../Scripts/XMainClient/GVGBattleInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/GVGBattleSkill.cs | 21 + .../Scripts/XMainClient/GVGBattleSkill.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs | 63 + .../Scripts/XMainClient/GVGCombatInfo.cs.meta | 12 + .../Scripts/XMainClient/GVGDuelCombatInfo.cs | 108 + .../Scripts/XMainClient/GVGDuelCombatInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GVGDuelResult.cs | 99 + .../Scripts/XMainClient/GVGDuelResult.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs | 11 + .../Scripts/XMainClient/GVGDuelStatu.cs.meta | 12 + .../Scripts/XMainClient/GameBuyCardHander.cs | 577 ++ .../Scripts/XMainClient/GameBuyCardHander.cs.meta | 12 + .../Scripts/XMainClient/GameDescMallHander.cs | 455 ++ .../Scripts/XMainClient/GameDescMallHander.cs.meta | 12 + .../Scripts/XMainClient/GameItemsMallHander.cs | 178 + .../XMainClient/GameItemsMallHander.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GameMallDlg.cs | 332 + .../Assets/Scripts/XMainClient/GameMallDlg.cs.meta | 12 + .../Scripts/XMainClient/GameMallShopHandler.cs | 287 + .../XMainClient/GameMallShopHandler.cs.meta | 12 + .../Scripts/XMainClient/GameMallTabsHandler.cs | 345 ++ .../XMainClient/GameMallTabsHandler.cs.meta | 12 + .../Scripts/XMainClient/GamePayDiaMallHander.cs | 543 ++ .../XMainClient/GamePayDiaMallHander.cs.meta | 12 + .../Scripts/XMainClient/GamePayDragonMallHander.cs | 257 + .../XMainClient/GamePayDragonMallHander.cs.meta | 12 + .../Scripts/XMainClient/GetBuffDataSeqFloat.cs | 7 + .../XMainClient/GetBuffDataSeqFloat.cs.meta | 12 + .../Scripts/XMainClient/GetBuffDataSeqListFloat.cs | 7 + .../XMainClient/GetBuffDataSeqListFloat.cs.meta | 12 + .../Scripts/XMainClient/GetBuffDataSeqListInt.cs | 7 + .../XMainClient/GetBuffDataSeqListInt.cs.meta | 12 + .../XMainClient/GetBuffDataSeqListString.cs | 7 + .../XMainClient/GetBuffDataSeqListString.cs.meta | 12 + .../Assets/Scripts/XMainClient/GetItemHandler.cs | 7 + .../Scripts/XMainClient/GetItemHandler.cs.meta | 12 + .../Scripts/XMainClient/GiftClaimBehaviour.cs | 38 + .../Scripts/XMainClient/GiftClaimBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs | 205 + .../Scripts/XMainClient/GiftClaimDlg.cs.meta | 12 + .../Assets/Scripts/XMainClient/GiftboxBehaviour.cs | 35 + .../Scripts/XMainClient/GiftboxBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GiftboxDlg.cs | 200 + .../Assets/Scripts/XMainClient/GiftboxDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GoldGroupType.cs | 11 + .../Scripts/XMainClient/GoldGroupType.cs.meta | 12 + .../Scripts/XMainClient/GroupChatDocument.cs | 988 +++ .../Scripts/XMainClient/GroupChatDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GroupMember.cs | 105 + .../Assets/Scripts/XMainClient/GroupMember.cs.meta | 12 + .../Scripts/XMainClient/GroupMemberDisplay.cs | 161 + .../Scripts/XMainClient/GroupMemberDisplay.cs.meta | 12 + .../Assets/Scripts/XMainClient/GroupMemberPool.cs | 25 + .../Scripts/XMainClient/GroupMemberPool.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GrowStage.cs | 13 + .../Assets/Scripts/XMainClient/GrowStage.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Guild.meta | 9 + .../Scripts/XMainClient/Guild/XGuildApplyInfo.cs | 8 + .../XMainClient/Guild/XGuildApplyInfo.cs.meta | 12 + .../XMainClient/Guild/XGuildApproveDocument.cs | 183 + .../Guild/XGuildApproveDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildArenaBattleDocument.cs | 1157 ++++ .../Guild/XGuildArenaBattleDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildArenaDocument.cs | 640 ++ .../XMainClient/Guild/XGuildArenaDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildBasicData.cs | 172 + .../XMainClient/Guild/XGuildBasicData.cs.meta | 12 + .../XMainClient/Guild/XGuildBoonBehaviour.cs | 25 + .../XMainClient/Guild/XGuildBoonBehaviour.cs.meta | 12 + .../XMainClient/Guild/XGuildBossRankInfo.cs | 41 + .../XMainClient/Guild/XGuildBossRankInfo.cs.meta | 12 + .../XMainClient/Guild/XGuildBossRankList.cs | 17 + .../XMainClient/Guild/XGuildBossRankList.cs.meta | 12 + .../XMainClient/Guild/XGuildCheckInBonusBrief.cs | 40 + .../Guild/XGuildCheckInBonusBrief.cs.meta | 12 + .../XMainClient/Guild/XGuildCheckInBonusInfo.cs | 162 + .../Guild/XGuildCheckInBonusInfo.cs.meta | 12 + .../XMainClient/Guild/XGuildCollectDocument.cs | 798 +++ .../Guild/XGuildCollectDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildConfig.cs | 244 + .../Scripts/XMainClient/Guild/XGuildConfig.cs.meta | 12 + .../Guild/XGuildDailyHandleRefreshBehavior.cs | 31 + .../Guild/XGuildDailyHandleRefreshBehavior.cs.meta | 12 + .../Guild/XGuildDailyHandleRefreshDlg.cs | 142 + .../Guild/XGuildDailyHandleRefreshDlg.cs.meta | 12 + .../Guild/XGuildDailyRefreshTaskBehavior.cs | 34 + .../Guild/XGuildDailyRefreshTaskBehavior.cs.meta | 12 + .../XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs | 223 + .../Guild/XGuildDailyRefreshTaskDlg.cs.meta | 12 + .../XMainClient/Guild/XGuildDailyTaskBehavior.cs | 71 + .../Guild/XGuildDailyTaskBehavior.cs.meta | 12 + .../XMainClient/Guild/XGuildDailyTaskDocument.cs | 1200 ++++ .../Guild/XGuildDailyTaskDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildDailyTaskView.cs | 619 ++ .../XMainClient/Guild/XGuildDailyTaskView.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildDocument.cs | 686 +++ .../XMainClient/Guild/XGuildDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildDonateBehavior.cs | 89 + .../XMainClient/Guild/XGuildDonateBehavior.cs.meta | 12 + .../XMainClient/Guild/XGuildDonateDocument.cs | 405 ++ .../XMainClient/Guild/XGuildDonateDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildDonateView.cs | 601 ++ .../XMainClient/Guild/XGuildDonateView.cs.meta | 12 + .../XMainClient/Guild/XGuildDragonBehaviour.cs | 84 + .../Guild/XGuildDragonBehaviour.cs.meta | 12 + .../XMainClient/Guild/XGuildDragonDocument.cs | 545 ++ .../XMainClient/Guild/XGuildDragonDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildDragonGuildRankInfo.cs | 44 + .../Guild/XGuildDragonGuildRankInfo.cs.meta | 12 + .../XMainClient/Guild/XGuildDragonGuildRankList.cs | 17 + .../Guild/XGuildDragonGuildRankList.cs.meta | 12 + .../Guild/XGuildDragonGuildRoleRankInfo.cs | 44 + .../Guild/XGuildDragonGuildRoleRankInfo.cs.meta | 12 + .../Guild/XGuildDragonGuildRoleRankList.cs | 17 + .../Guild/XGuildDragonGuildRoleRankList.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthBuffBehavior.cs | 74 + .../Guild/XGuildGrowthBuffBehavior.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthBuffView.cs | 266 + .../XMainClient/Guild/XGuildGrowthBuffView.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthBuildBehavior.cs | 92 + .../Guild/XGuildGrowthBuildBehavior.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthBuildView.cs | 259 + .../Guild/XGuildGrowthBuildView.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthDocument.cs | 431 ++ .../XMainClient/Guild/XGuildGrowthDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthDonateView.cs | 109 + .../Guild/XGuildGrowthDonateView.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthEntranceView.cs | 110 + .../Guild/XGuildGrowthEntranceView.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthLabBehavior.cs | 64 + .../Guild/XGuildGrowthLabBehavior.cs.meta | 12 + .../XMainClient/Guild/XGuildGrowthLabView.cs | 268 + .../XMainClient/Guild/XGuildGrowthLabView.cs.meta | 12 + .../XMainClient/Guild/XGuildHallDocument.cs | 224 + .../XMainClient/Guild/XGuildHallDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildInfoChange.cs | 18 + .../XMainClient/Guild/XGuildInfoChange.cs.meta | 12 + .../XMainClient/Guild/XGuildInheritDocument.cs | 566 ++ .../Guild/XGuildInheritDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildJockerMatchDocument.cs | 548 ++ .../Guild/XGuildJockerMatchDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildJockerMatchStep.cs | 11 + .../Guild/XGuildJockerMatchStep.cs.meta | 12 + .../XMainClient/Guild/XGuildJockerMatchView.cs | 505 ++ .../Guild/XGuildJockerMatchView.cs.meta | 12 + .../XMainClient/Guild/XGuildJokerBehaviour.cs | 97 + .../XMainClient/Guild/XGuildJokerBehaviour.cs.meta | 12 + .../XMainClient/Guild/XGuildJokerCommonView.cs | 740 +++ .../Guild/XGuildJokerCommonView.cs.meta | 12 + .../XMainClient/Guild/XGuildJokerDocument.cs | 288 + .../XMainClient/Guild/XGuildJokerDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildJokerView.cs | 375 ++ .../XMainClient/Guild/XGuildJokerView.cs.meta | 12 + .../Guild/XGuildLevelChangedEventArgs.cs | 21 + .../Guild/XGuildLevelChangedEventArgs.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildListData.cs | 33 + .../XMainClient/Guild/XGuildListData.cs.meta | 12 + .../XMainClient/Guild/XGuildListDocument.cs | 307 + .../XMainClient/Guild/XGuildListDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildLogAppoint.cs | 32 + .../XMainClient/Guild/XGuildLogAppoint.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildLogBase.cs | 79 + .../XMainClient/Guild/XGuildLogBase.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildLogBossMVP.cs | 23 + .../XMainClient/Guild/XGuildLogBossMVP.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildLogJoin.cs | 23 + .../XMainClient/Guild/XGuildLogJoin.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildLogLeave.cs | 23 + .../XMainClient/Guild/XGuildLogLeave.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildMember.cs | 114 + .../Scripts/XMainClient/Guild/XGuildMember.cs.meta | 12 + .../XMainClient/Guild/XGuildMemberBasicInfo.cs | 119 + .../Guild/XGuildMemberBasicInfo.cs.meta | 12 + .../XMainClient/Guild/XGuildMemberDocument.cs | 483 ++ .../XMainClient/Guild/XGuildMemberDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildMemberListEventArgs.cs | 18 + .../Guild/XGuildMemberListEventArgs.cs.meta | 12 + .../XMainClient/Guild/XGuildMemberRankInfo.cs | 16 + .../XMainClient/Guild/XGuildMemberRankInfo.cs.meta | 12 + .../XMainClient/Guild/XGuildMemberRankList.cs | 12 + .../XMainClient/Guild/XGuildMemberRankList.cs.meta | 12 + .../XMainClient/Guild/XGuildMineBattleDocument.cs | 248 + .../Guild/XGuildMineBattleDocument.cs.meta | 12 + .../Guild/XGuildMineEntranceDocument.cs | 92 + .../Guild/XGuildMineEntranceDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildMineMainDocument.cs | 432 ++ .../Guild/XGuildMineMainDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/Guild/XGuildPP.cs | 195 + .../Scripts/XMainClient/Guild/XGuildPP.cs.meta | 12 + .../Guild/XGuildPositionChangedEventArgs.cs | 21 + .../Guild/XGuildPositionChangedEventArgs.cs.meta | 12 + .../XMainClient/Guild/XGuildQualifierDocument.cs | 319 + .../Guild/XGuildQualifierDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildRankDocument.cs | 102 + .../XMainClient/Guild/XGuildRankDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildRankInfo.cs | 28 + .../XMainClient/Guild/XGuildRankInfo.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildRankList.cs | 17 + .../XMainClient/Guild/XGuildRankList.cs.meta | 12 + .../XMainClient/Guild/XGuildRedPackageSendBrief.cs | 56 + .../Guild/XGuildRedPackageSendBrief.cs.meta | 12 + .../XMainClient/Guild/XGuildRedPacketBehaviour.cs | 32 + .../Guild/XGuildRedPacketBehaviour.cs.meta | 12 + .../XMainClient/Guild/XGuildRedPacketBrief.cs | 84 + .../XMainClient/Guild/XGuildRedPacketBrief.cs.meta | 12 + .../XMainClient/Guild/XGuildRedPacketDetail.cs | 26 + .../Guild/XGuildRedPacketDetail.cs.meta | 12 + .../XMainClient/Guild/XGuildRedPacketDocument.cs | 644 ++ .../Guild/XGuildRedPacketDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildRedPacketLog.cs | 58 + .../XMainClient/Guild/XGuildRedPacketLog.cs.meta | 12 + .../XMainClient/Guild/XGuildRelaxGameBehaviour.cs | 24 + .../Guild/XGuildRelaxGameBehaviour.cs.meta | 12 + .../XMainClient/Guild/XGuildRelaxGameDocument.cs | 129 + .../Guild/XGuildRelaxGameDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildRelaxGameView.cs | 221 + .../XMainClient/Guild/XGuildRelaxGameView.cs.meta | 12 + .../Guild/XGuildResContentionBuffDocument.cs | 676 ++ .../Guild/XGuildResContentionBuffDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildSalaryDocument.cs | 594 ++ .../XMainClient/Guild/XGuildSalaryDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildSalaryInfo.cs | 118 + .../XMainClient/Guild/XGuildSalaryInfo.cs.meta | 12 + .../XMainClient/Guild/XGuildSignInDocument.cs | 333 + .../XMainClient/Guild/XGuildSignInDocument.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildSignInLog.cs | 47 + .../XMainClient/Guild/XGuildSignInLog.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildSignNode.cs | 105 + .../XMainClient/Guild/XGuildSignNode.cs.meta | 12 + .../Guild/XGuildSignRedPackageBehaviour.cs | 81 + .../Guild/XGuildSignRedPackageBehaviour.cs.meta | 12 + .../XMainClient/Guild/XGuildSkillBehaviour.cs | 73 + .../XMainClient/Guild/XGuildSkillBehaviour.cs.meta | 12 + .../XMainClient/Guild/XGuildSkillDocument.cs | 512 ++ .../XMainClient/Guild/XGuildSkillDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildSkillStudyHandle.cs | 179 + .../Guild/XGuildSkillStudyHandle.cs.meta | 12 + .../Scripts/XMainClient/Guild/XGuildSkillView.cs | 487 ++ .../XMainClient/Guild/XGuildSkillView.cs.meta | 12 + .../Guild/XGuildSmallMonsterBehaviour.cs | 62 + .../Guild/XGuildSmallMonsterBehaviour.cs.meta | 12 + .../Guild/XGuildSmallMonsterDocument.cs | 250 + .../Guild/XGuildSmallMonsterDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildSmallMonsterView.cs | 215 + .../Guild/XGuildSmallMonsterView.cs.meta | 12 + .../Guild/XGuildTaskRefreshResultDlg.cs | 151 + .../Guild/XGuildTaskRefreshResultDlg.cs.meta | 12 + .../Guild/XGuildTaskRefreshResultDlgBehavior.cs | 35 + .../XGuildTaskRefreshResultDlgBehavior.cs.meta | 12 + .../XMainClient/Guild/XGuildTerritoryDocument.cs | 1220 ++++ .../Guild/XGuildTerritoryDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildViewDocument.cs | 162 + .../XMainClient/Guild/XGuildViewDocument.cs.meta | 12 + .../Guild/XGuildWeeklyBountyBehavior.cs | 108 + .../Guild/XGuildWeeklyBountyBehavior.cs.meta | 12 + .../Guild/XGuildWeeklyBountyDocument.cs | 577 ++ .../Guild/XGuildWeeklyBountyDocument.cs.meta | 12 + .../XMainClient/Guild/XGuildWeeklyBountyView.cs | 917 +++ .../Guild/XGuildWeeklyBountyView.cs.meta | 12 + .../Scripts/XMainClient/GuildApproveSetting.cs | 26 + .../XMainClient/GuildApproveSetting.cs.meta | 12 + .../Scripts/XMainClient/GuildArenaBattlePattern.cs | 11 + .../XMainClient/GuildArenaBattlePattern.cs.meta | 12 + .../XMainClient/GuildArenaDuelCombatInfo.cs | 83 + .../XMainClient/GuildArenaDuelCombatInfo.cs.meta | 12 + .../XMainClient/GuildArenaDuelCombatStatu.cs | 11 + .../XMainClient/GuildArenaDuelCombatStatu.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GuildArenaTab.cs | 11 + .../Scripts/XMainClient/GuildArenaTab.cs.meta | 12 + .../XMainClient/GuildBattleMiniRankHandler.cs | 221 + .../XMainClient/GuildBattleMiniRankHandler.cs.meta | 12 + .../Scripts/XMainClient/GuildBuffEffectType.cs | 15 + .../XMainClient/GuildBuffEffectType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs | 11 + .../Scripts/XMainClient/GuildBuffInfo.cs.meta | 12 + .../Scripts/XMainClient/GuildBuffTargetType.cs | 11 + .../XMainClient/GuildBuffTargetType.cs.meta | 12 + .../Scripts/XMainClient/GuildBuffUsedRecordItem.cs | 9 + .../XMainClient/GuildBuffUsedRecordItem.cs.meta | 12 + .../Scripts/XMainClient/GuildCampRankHandler.cs | 106 + .../XMainClient/GuildCampRankHandler.cs.meta | 12 + .../Scripts/XMainClient/GuildDailyTaskInfo.cs | 15 + .../Scripts/XMainClient/GuildDailyTaskInfo.cs.meta | 12 + .../Scripts/XMainClient/GuildDonateItemInfo.cs | 34 + .../XMainClient/GuildDonateItemInfo.cs.meta | 12 + .../Scripts/XMainClient/GuildDonateRankInfo.cs | 21 + .../XMainClient/GuildDonateRankInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/GuildDonateType.cs | 11 + .../Scripts/XMainClient/GuildDonateType.cs.meta | 12 + .../GuildDragonChallengeResultBehaviour.cs | 22 + .../GuildDragonChallengeResultBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GuildFarmland.cs | 76 + .../Scripts/XMainClient/GuildFarmland.cs.meta | 12 + .../XMainClient/GuildFiexdRedPackageBehaviour.cs | 29 + .../GuildFiexdRedPackageBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/GuildInheritInfo.cs | 45 + .../Scripts/XMainClient/GuildInheritInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GuildLogType.cs | 12 + .../Scripts/XMainClient/GuildLogType.cs.meta | 12 + .../Scripts/XMainClient/GuildMemberSortType.cs | 22 + .../XMainClient/GuildMemberSortType.cs.meta | 12 + .../Scripts/XMainClient/GuildMineActivityStatus.cs | 11 + .../XMainClient/GuildMineActivityStatus.cs.meta | 12 + .../XMainClient/GuildMineEntranceBehaviour.cs | 34 + .../XMainClient/GuildMineEntranceBehaviour.cs.meta | 12 + .../Scripts/XMainClient/GuildMineEntranceView.cs | 173 + .../XMainClient/GuildMineEntranceView.cs.meta | 12 + .../Scripts/XMainClient/GuildMineMainBehaviour.cs | 161 + .../XMainClient/GuildMineMainBehaviour.cs.meta | 12 + .../Scripts/XMainClient/GuildMineMainView.cs | 772 +++ .../Scripts/XMainClient/GuildMineMainView.cs.meta | 12 + .../XMainClient/GuildMinePVPBattleHandler.cs | 115 + .../XMainClient/GuildMinePVPBattleHandler.cs.meta | 12 + .../XMainClient/GuildMinePVPBeginBehaviour.cs | 12 + .../XMainClient/GuildMinePVPBeginBehaviour.cs.meta | 12 + .../Scripts/XMainClient/GuildMinePVPBeginView.cs | 83 + .../XMainClient/GuildMinePVPBeginView.cs.meta | 12 + .../Scripts/XMainClient/GuildMinePVPInfoHandler.cs | 218 + .../XMainClient/GuildMinePVPInfoHandler.cs.meta | 12 + .../Scripts/XMainClient/GuildMineRankHandler.cs | 163 + .../XMainClient/GuildMineRankHandler.cs.meta | 12 + .../XMainClient/GuildMineRewardBehaviour.cs | 34 + .../XMainClient/GuildMineRewardBehaviour.cs.meta | 12 + .../Scripts/XMainClient/GuildMineRewardView.cs | 217 + .../XMainClient/GuildMineRewardView.cs.meta | 12 + .../Assets/Scripts/XMainClient/GuildPassBoard.cs | 169 + .../Scripts/XMainClient/GuildPassBoard.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GuildPassMgr.cs | 113 + .../Scripts/XMainClient/GuildPassMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/GuildPermission.cs | 26 + .../Scripts/XMainClient/GuildPermission.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GuildPosition.cs | 15 + .../Scripts/XMainClient/GuildPosition.cs.meta | 12 + .../Scripts/XMainClient/GuildQualifierSelect.cs | 10 + .../XMainClient/GuildQualifierSelect.cs.meta | 12 + .../XMainClient/GuildRedPackageDetailBehaviour.cs | 58 + .../GuildRedPackageDetailBehaviour.cs.meta | 12 + .../Scripts/XMainClient/GuildRelaxChildHandler.cs | 111 + .../XMainClient/GuildRelaxChildHandler.cs.meta | 12 + .../XMainClient/GuildRelaxCollectHandler.cs | 121 + .../XMainClient/GuildRelaxCollectHandler.cs.meta | 12 + .../Scripts/XMainClient/GuildRelaxJokerHandler.cs | 27 + .../XMainClient/GuildRelaxJokerHandler.cs.meta | 12 + .../XMainClient/GuildRelaxJokerMatchHandler.cs | 152 + .../GuildRelaxJokerMatchHandler.cs.meta | 12 + .../Scripts/XMainClient/GuildRelaxVoiceHandler.cs | 181 + .../XMainClient/GuildRelaxVoiceHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/GuildSceneState.cs | 11 + .../Scripts/XMainClient/GuildSceneState.cs.meta | 12 + .../Assets/Scripts/XMainClient/GuildTaskReward.cs | 11 + .../Scripts/XMainClient/GuildTaskReward.cs.meta | 12 + Client/Assets/Scripts/XMainClient/GuildTaskType.cs | 11 + .../Scripts/XMainClient/GuildTaskType.cs.meta | 12 + .../XMainClient/GuildTerritoryAllianceInfo.cs | 64 + .../XMainClient/GuildTerritoryAllianceInfo.cs.meta | 12 + .../Scripts/XMainClient/GuildUsingBuffInfo.cs | 13 + .../Scripts/XMainClient/GuildUsingBuffInfo.cs.meta | 12 + .../Scripts/XMainClient/GuildWeeklyTaskInfo.cs | 21 + .../XMainClient/GuildWeeklyTaskInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/HallFameRoleInfo.cs | 23 + .../Scripts/XMainClient/HallFameRoleInfo.cs.meta | 12 + .../Scripts/XMainClient/HeroBattleBehaviour.cs | 156 + .../XMainClient/HeroBattleBehaviour.cs.meta | 12 + .../Scripts/XMainClient/HeroBattleMVPBehaviour.cs | 53 + .../XMainClient/HeroBattleMVPBehaviour.cs.meta | 12 + .../Scripts/XMainClient/HeroBattleRankBehavior.cs | 29 + .../XMainClient/HeroBattleRankBehavior.cs.meta | 12 + .../Scripts/XMainClient/HeroBattleRankData.cs | 21 + .../Scripts/XMainClient/HeroBattleRankData.cs.meta | 12 + .../Scripts/XMainClient/HeroBattleRankDlg.cs | 144 + .../Scripts/XMainClient/HeroBattleRankDlg.cs.meta | 12 + .../Scripts/XMainClient/HeroBattleRewardState.cs | 11 + .../XMainClient/HeroBattleRewardState.cs.meta | 12 + .../Assets/Scripts/XMainClient/HistoryMaxStruct.cs | 22 + .../Scripts/XMainClient/HistoryMaxStruct.cs.meta | 12 + Client/Assets/Scripts/XMainClient/HomeEventLog.cs | 381 ++ .../Scripts/XMainClient/HomeEventLog.cs.meta | 12 + Client/Assets/Scripts/XMainClient/HomeFarmland.cs | 85 + .../Scripts/XMainClient/HomeFarmland.cs.meta | 12 + .../Assets/Scripts/XMainClient/HomeFishingState.cs | 13 + .../Scripts/XMainClient/HomeFishingState.cs.meta | 12 + .../Assets/Scripts/XMainClient/HomeMainDocument.cs | 581 ++ .../Scripts/XMainClient/HomeMainDocument.cs.meta | 12 + .../Scripts/XMainClient/HomePlantDocument.cs | 1041 ++++ .../Scripts/XMainClient/HomePlantDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/HomeSpriteClass.cs | 361 ++ .../Scripts/XMainClient/HomeSpriteClass.cs.meta | 12 + Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs | 12 + .../Scripts/XMainClient/HomeTypeEnum.cs.meta | 12 + Client/Assets/Scripts/XMainClient/HurtInfo.cs | 105 + Client/Assets/Scripts/XMainClient/HurtInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ICostHandler.cs | 11 + .../Scripts/XMainClient/ICostHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/IDlgHandlerMgr.cs | 9 + .../Scripts/XMainClient/IDlgHandlerMgr.cs.meta | 12 + .../Scripts/XMainClient/IFashionStorageSelect.cs | 34 + .../XMainClient/IFashionStorageSelect.cs.meta | 12 + .../XMainClient/IGuildRelexChildInterface.cs | 13 + .../XMainClient/IGuildRelexChildInterface.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ILogData.cs | 11 + Client/Assets/Scripts/XMainClient/ILogData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ILogSource.cs | 10 + .../Assets/Scripts/XMainClient/ILogSource.cs.meta | 12 + .../Assets/Scripts/XMainClient/ILuaNetEventData.cs | 9 + .../Scripts/XMainClient/ILuaNetEventData.cs.meta | 12 + .../Assets/Scripts/XMainClient/ILuaNetProcess.cs | 11 + .../Scripts/XMainClient/ILuaNetProcess.cs.meta | 12 + Client/Assets/Scripts/XMainClient/INetEventData.cs | 13 + .../Scripts/XMainClient/INetEventData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/INetObserver.cs | 13 + .../Scripts/XMainClient/INetObserver.cs.meta | 12 + Client/Assets/Scripts/XMainClient/INetProcess.cs | 17 + .../Assets/Scripts/XMainClient/INetProcess.cs.meta | 12 + Client/Assets/Scripts/XMainClient/INetSender.cs | 11 + .../Assets/Scripts/XMainClient/INetSender.cs.meta | 12 + .../Assets/Scripts/XMainClient/IPacketBreaker.cs | 9 + .../Scripts/XMainClient/IPacketBreaker.cs.meta | 12 + .../Assets/Scripts/XMainClient/IXStateTransform.cs | 40 + .../Scripts/XMainClient/IXStateTransform.cs.meta | 12 + .../Scripts/XMainClient/InGameADBehaviour.cs | 22 + .../Scripts/XMainClient/InGameADBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/InGameADView.cs | 93 + .../Scripts/XMainClient/InGameADView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/InfoType.cs | 17 + Client/Assets/Scripts/XMainClient/InfoType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Input.meta | 9 + Client/Assets/Scripts/XMainClient/Input/XTouch.cs | 140 + .../Scripts/XMainClient/Input/XTouch.cs.meta | 12 + .../Assets/Scripts/XMainClient/Input/XTouchItem.cs | 79 + .../Scripts/XMainClient/Input/XTouchItem.cs.meta | 12 + .../Scripts/XMainClient/Input/XVirtualTab.cs | 266 + .../Scripts/XMainClient/Input/XVirtualTab.cs.meta | 12 + Client/Assets/Scripts/XMainClient/InputUIType.cs | 10 + .../Assets/Scripts/XMainClient/InputUIType.cs.meta | 12 + .../Assets/Scripts/XMainClient/InviteMemberInfo.cs | 39 + .../Scripts/XMainClient/InviteMemberInfo.cs.meta | 12 + .../Scripts/XMainClient/ItemAttrCompareResult.cs | 12 + .../XMainClient/ItemAttrCompareResult.cs.meta | 12 + .../Scripts/XMainClient/ItemAttrCompareType.cs | 15 + .../XMainClient/ItemAttrCompareType.cs.meta | 12 + .../Assets/Scripts/XMainClient/ItemCornerType.cs | 14 + .../Scripts/XMainClient/ItemCornerType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ItemDesc.cs | 11 + Client/Assets/Scripts/XMainClient/ItemDesc.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ItemEnum.cs | 31 + Client/Assets/Scripts/XMainClient/ItemEnum.cs.meta | 12 + .../Assets/Scripts/XMainClient/ItemListHandler.cs | 152 + .../Scripts/XMainClient/ItemListHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ItemQuality.cs | 14 + .../Assets/Scripts/XMainClient/ItemQuality.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ItemType.cs | 40 + Client/Assets/Scripts/XMainClient/ItemType.cs.meta | 12 + .../Scripts/XMainClient/ItemUpdateHandler.cs | 7 + .../Scripts/XMainClient/ItemUpdateHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ItemUse.cs | 23 + Client/Assets/Scripts/XMainClient/ItemUse.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ItemUseMgr.cs | 13 + .../Assets/Scripts/XMainClient/ItemUseMgr.cs.meta | 12 + .../Scripts/XMainClient/JokerKingMainView.cs | 239 + .../Scripts/XMainClient/JokerKingMainView.cs.meta | 12 + .../Scripts/XMainClient/JokerKingMatchView.cs | 500 ++ .../Scripts/XMainClient/JokerKingMatchView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG.meta | 9 + .../Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs | 105 + .../Scripts/XMainClient/KKSG/AIDebugMsg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs | 62 + .../XMainClient/KKSG/AbsEnterSceneArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs | 62 + .../XMainClient/KKSG/AbsEnterSceneRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AbsPartyBase.cs | 105 + .../Scripts/XMainClient/KKSG/AbsPartyBase.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AbsPartyInfo.cs | 74 + .../Scripts/XMainClient/KKSG/AbsPartyInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AbyssFlameStage.cs | 16 + .../XMainClient/KKSG/AbyssFlameStage.cs.meta | 12 + .../XMainClient/KKSG/AceptGuildInheritArg.cs | 62 + .../XMainClient/KKSG/AceptGuildInheritArg.cs.meta | 12 + .../XMainClient/KKSG/AceptGuildInheritRes.cs | 62 + .../XMainClient/KKSG/AceptGuildInheritRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AchieveBriefInfo.cs | 191 + .../XMainClient/KKSG/AchieveBriefInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AchieveDbInfo.cs | 51 + .../Scripts/XMainClient/KKSG/AchieveDbInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/AchieveType.cs | 20 + .../Scripts/XMainClient/KKSG/AchieveType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AchivementInfo.cs | 105 + .../XMainClient/KKSG/AchivementInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActOpenState.cs | 18 + .../Scripts/XMainClient/KKSG/ActOpenState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivatAtlasArg.cs | 62 + .../XMainClient/KKSG/ActivatAtlasArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivatAtlasRes.cs | 62 + .../XMainClient/KKSG/ActivatAtlasRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivateFashionArg.cs | 62 + .../XMainClient/KKSG/ActivateFashionArg.cs.meta | 12 + .../XMainClient/KKSG/ActivateFashionCharm.cs | 117 + .../XMainClient/KKSG/ActivateFashionCharm.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivateFashionRes.cs | 105 + .../XMainClient/KKSG/ActivateFashionRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivateHairColor.cs | 74 + .../XMainClient/KKSG/ActivateHairColor.cs.meta | 12 + .../XMainClient/KKSG/ActivateHairColorArg.cs | 105 + .../XMainClient/KKSG/ActivateHairColorArg.cs.meta | 12 + .../XMainClient/KKSG/ActivateHairColorRes.cs | 117 + .../XMainClient/KKSG/ActivateHairColorRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivatePreShowArg.cs | 62 + .../XMainClient/KKSG/ActivatePreShowArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivatePreShowRes.cs | 62 + .../XMainClient/KKSG/ActivatePreShowRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActiveCookbookArg.cs | 105 + .../XMainClient/KKSG/ActiveCookbookArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActiveCookbookRes.cs | 105 + .../XMainClient/KKSG/ActiveCookbookRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivityRecord.cs | 311 + .../XMainClient/KKSG/ActivityRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ActivityRoleNotify.cs | 34 + .../XMainClient/KKSG/ActivityRoleNotify.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddAttrCount.cs | 62 + .../Scripts/XMainClient/KKSG/AddAttrCount.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddBlackListArg.cs | 105 + .../XMainClient/KKSG/AddBlackListArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddBlackListRes.cs | 78 + .../XMainClient/KKSG/AddBlackListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddFriendArg.cs | 105 + .../Scripts/XMainClient/KKSG/AddFriendArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddFriendRes.cs | 78 + .../Scripts/XMainClient/KKSG/AddFriendRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddGuildInheritArg.cs | 62 + .../XMainClient/KKSG/AddGuildInheritArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddGuildInheritRes.cs | 62 + .../XMainClient/KKSG/AddGuildInheritRes.cs.meta | 12 + .../XMainClient/KKSG/AddLevelScriptExtString.cs | 148 + .../KKSG/AddLevelScriptExtString.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddTempAttrArg.cs | 62 + .../XMainClient/KKSG/AddTempAttrArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AddTempAttrRes.cs | 105 + .../XMainClient/KKSG/AddTempAttrRes.cs.meta | 12 + .../XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs | 105 + .../KKSG/AdjustGuildArenaRolePosArg.cs.meta | 12 + .../XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs | 74 + .../KKSG/AdjustGuildArenaRolePosRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs | 105 + .../Scripts/XMainClient/KKSG/AgreeQAReq.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs | 62 + .../Scripts/XMainClient/KKSG/AgreeQARes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AllBuffsInfo.cs | 85 + .../Scripts/XMainClient/KKSG/AllBuffsInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AllGiftIBItem.cs | 29 + .../Scripts/XMainClient/KKSG/AllGiftIBItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AllSynCardAttr.cs | 29 + .../XMainClient/KKSG/AllSynCardAttr.cs.meta | 12 + .../XMainClient/KKSG/AllianceGuildTerrArg.cs | 62 + .../XMainClient/KKSG/AllianceGuildTerrArg.cs.meta | 12 + .../XMainClient/KKSG/AllianceGuildTerrRes.cs | 62 + .../XMainClient/KKSG/AllianceGuildTerrRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AllyMatchRoleID.cs | 105 + .../XMainClient/KKSG/AllyMatchRoleID.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AncientTimes.cs | 62 + .../Scripts/XMainClient/KKSG/AncientTimes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AncientTimesArg.cs | 62 + .../XMainClient/KKSG/AncientTimesArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AncientTimesRes.cs | 105 + .../XMainClient/KKSG/AncientTimesRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AnswerAckNtf.cs | 492 ++ .../Scripts/XMainClient/KKSG/AnswerAckNtf.cs.meta | 12 + .../XMainClient/KKSG/AntiAddictionRemindInfo.cs | 105 + .../KKSG/AntiAddictionRemindInfo.cs.meta | 12 + .../XMainClient/KKSG/AntiAddictionReportType.cs | 14 + .../KKSG/AntiAddictionReportType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs | 171 + .../Scripts/XMainClient/KKSG/ArenaRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArenaStarHistData.cs | 117 + .../XMainClient/KKSG/ArenaStarHistData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArenaStarPara.cs | 29 + .../Scripts/XMainClient/KKSG/ArenaStarPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArenaStarReqArg.cs | 148 + .../XMainClient/KKSG/ArenaStarReqArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArenaStarReqRes.cs | 203 + .../XMainClient/KKSG/ArenaStarReqRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArenaStarReqType.cs | 14 + .../XMainClient/KKSG/ArenaStarReqType.cs.meta | 12 + .../XMainClient/KKSG/ArenaStarTopRoleData.cs | 137 + .../XMainClient/KKSG/ArenaStarTopRoleData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArenaStarType.cs | 18 + .../Scripts/XMainClient/KKSG/ArenaStarType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArgentaActivityArg.cs | 105 + .../XMainClient/KKSG/ArgentaActivityArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArgentaActivityRes.cs | 160 + .../XMainClient/KKSG/ArgentaActivityRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ArgentaData.cs | 160 + .../Scripts/XMainClient/KKSG/ArgentaData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArgentaPreData.cs | 85 + .../XMainClient/KKSG/ArgentaPreData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArtifactComposeArg.cs | 128 + .../XMainClient/KKSG/ArtifactComposeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ArtifactComposeRes.cs | 117 + .../XMainClient/KKSG/ArtifactComposeRes.cs.meta | 12 + .../XMainClient/KKSG/ArtifactComposeType.cs | 14 + .../XMainClient/KKSG/ArtifactComposeType.cs.meta | 12 + .../XMainClient/KKSG/ArtifactDeityStoveOpArg.cs | 191 + .../KKSG/ArtifactDeityStoveOpArg.cs.meta | 12 + .../XMainClient/KKSG/ArtifactDeityStoveOpRes.cs | 62 + .../KKSG/ArtifactDeityStoveOpRes.cs.meta | 12 + .../XMainClient/KKSG/ArtifactDeityStoveOpType.cs | 22 + .../KKSG/ArtifactDeityStoveOpType.cs.meta | 12 + .../XMainClient/KKSG/AskForCheckInBonusArg.cs | 17 + .../XMainClient/KKSG/AskForCheckInBonusArg.cs.meta | 12 + .../XMainClient/KKSG/AskForCheckInBonusRes.cs | 62 + .../XMainClient/KKSG/AskForCheckInBonusRes.cs.meta | 12 + .../XMainClient/KKSG/AskGuildArenaInfoArg.cs | 17 + .../XMainClient/KKSG/AskGuildArenaInfoArg.cs.meta | 12 + .../XMainClient/KKSG/AskGuildArenaInfoReq.cs | 128 + .../XMainClient/KKSG/AskGuildArenaInfoReq.cs.meta | 12 + .../XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs | 17 + .../KKSG/AskGuildArenaTeamInfoArg.cs.meta | 12 + .../XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs | 85 + .../KKSG/AskGuildArenaTeamInfoRes.cs.meta | 12 + .../XMainClient/KKSG/AskGuildBossInfoArg.cs | 17 + .../XMainClient/KKSG/AskGuildBossInfoArg.cs.meta | 12 + .../XMainClient/KKSG/AskGuildBossInfoRes.cs | 277 + .../XMainClient/KKSG/AskGuildBossInfoRes.cs.meta | 12 + .../XMainClient/KKSG/AskGuildSkillInfoArg.cs | 17 + .../XMainClient/KKSG/AskGuildSkillInfoArg.cs.meta | 12 + .../XMainClient/KKSG/AskGuildSkillInfoReq.cs | 128 + .../XMainClient/KKSG/AskGuildSkillInfoReq.cs.meta | 12 + .../XMainClient/KKSG/AskGuildWageInfoArg.cs | 17 + .../XMainClient/KKSG/AskGuildWageInfoArg.cs.meta | 12 + .../XMainClient/KKSG/AskGuildWageInfoRes.cs | 472 ++ .../XMainClient/KKSG/AskGuildWageInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AtlasUpStarArg.cs | 62 + .../XMainClient/KKSG/AtlasUpStarArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AtlasUpStarRes.cs | 148 + .../XMainClient/KKSG/AtlasUpStarRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/Attribute.cs | 51 + .../Scripts/XMainClient/KKSG/Attribute.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AttributeInfo.cs | 105 + .../Scripts/XMainClient/KKSG/AttributeInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctDBDataOperate.cs | 16 + .../XMainClient/KKSG/AuctDBDataOperate.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctItemBrief.cs | 105 + .../Scripts/XMainClient/KKSG/AuctItemBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctOverlapData.cs | 121 + .../XMainClient/KKSG/AuctOverlapData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctionAccountType.cs | 18 + .../XMainClient/KKSG/AuctionAccountType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctionAllReqArg.cs | 363 ++ .../XMainClient/KKSG/AuctionAllReqArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctionAllReqRes.cs | 354 ++ .../XMainClient/KKSG/AuctionAllReqRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctionAllReqType.cs | 32 + .../XMainClient/KKSG/AuctionAllReqType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctionReqType.cs | 16 + .../XMainClient/KKSG/AuctionReqType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctionSaleData.cs | 164 + .../XMainClient/KKSG/AuctionSaleData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AuctionSortType.cs | 34 + .../XMainClient/KKSG/AuctionSortType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs | 105 + .../XMainClient/KKSG/AudioAuthKeyArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs | 406 ++ .../XMainClient/KKSG/AudioAuthKeyRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/AudioBrief.cs | 148 + .../Scripts/XMainClient/KKSG/AudioBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AudioTextArg.cs | 62 + .../Scripts/XMainClient/KKSG/AudioTextArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AudioTextRes.cs | 105 + .../Scripts/XMainClient/KKSG/AudioTextRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs | 74 + .../XMainClient/KKSG/AutoBreakAtlasArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs | 62 + .../XMainClient/KKSG/AutoBreakAtlasRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/AutoFight.cs | 62 + .../Scripts/XMainClient/KKSG/AutoFight.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BFFightTime.cs | 62 + .../Scripts/XMainClient/KKSG/BFFightTime.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BMFightTime.cs | 105 + .../Scripts/XMainClient/KKSG/BMFightTime.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs | 62 + .../Scripts/XMainClient/KKSG/BMReadyTime.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs | 277 + .../Scripts/XMainClient/KKSG/BMRoleEnter.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BMRoleSceneSync.cs | 74 + .../XMainClient/KKSG/BMRoleSceneSync.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BRRankState.cs | 191 + .../Scripts/XMainClient/KKSG/BRRankState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BackFlowActOp.cs | 20 + .../Scripts/XMainClient/KKSG/BackFlowActOp.cs.meta | 12 + .../KKSG/BackFlowActivityOperationArg.cs | 105 + .../KKSG/BackFlowActivityOperationArg.cs.meta | 12 + .../KKSG/BackFlowActivityOperationRes.cs | 305 + .../KKSG/BackFlowActivityOperationRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs | 148 + .../Scripts/XMainClient/KKSG/BackFlowBuy.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs | 62 + .../XMainClient/KKSG/BackFlowBuyOpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs | 176 + .../XMainClient/KKSG/BackFlowBuyOpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BackFlowData.cs | 370 ++ .../Scripts/XMainClient/KKSG/BackFlowData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs | 62 + .../XMainClient/KKSG/BackFlowOpenNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BackFlowPreData.cs | 74 + .../XMainClient/KKSG/BackFlowPreData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BackFlowShopData.cs | 117 + .../XMainClient/KKSG/BackFlowShopData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BackFlowShopGood.cs | 148 + .../XMainClient/KKSG/BackFlowShopGood.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BagContent.cs | 258 + .../Scripts/XMainClient/KKSG/BagContent.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BagExpandData.cs | 148 + .../Scripts/XMainClient/KKSG/BagExpandData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/BagType.cs | 18 + .../Scripts/XMainClient/KKSG/BagType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BanquetAwardArg.cs | 105 + .../XMainClient/KKSG/BanquetAwardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BanquetAwardRes.cs | 117 + .../XMainClient/KKSG/BanquetAwardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BanquetNtfArg.cs | 105 + .../Scripts/XMainClient/KKSG/BanquetNtfArg.cs.meta | 12 + .../XMainClient/KKSG/BattleChestRewardType.cs | 18 + .../XMainClient/KKSG/BattleChestRewardType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BattleData.cs | 451 ++ .../Scripts/XMainClient/KKSG/BattleData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleFailedData.cs | 148 + .../XMainClient/KKSG/BattleFailedData.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldAwardNumArg.cs | 17 + .../KKSG/BattleFieldAwardNumArg.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldAwardNumRes.cs | 29 + .../KKSG/BattleFieldAwardNumRes.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldBattleResult.cs | 504 ++ .../KKSG/BattleFieldBattleResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleFieldData.cs | 305 + .../XMainClient/KKSG/BattleFieldData.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldLeftAward.cs | 105 + .../XMainClient/KKSG/BattleFieldLeftAward.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleFieldPoint.cs | 105 + .../XMainClient/KKSG/BattleFieldPoint.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleFieldRank.cs | 148 + .../XMainClient/KKSG/BattleFieldRank.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleFieldRankArg.cs | 17 + .../XMainClient/KKSG/BattleFieldRankArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleFieldRankRes.cs | 29 + .../XMainClient/KKSG/BattleFieldRankRes.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldReadyInfo.cs | 191 + .../XMainClient/KKSG/BattleFieldReadyInfo.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldReliveInfo.cs | 62 + .../XMainClient/KKSG/BattleFieldReliveInfo.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldRoleAgainst.cs | 29 + .../KKSG/BattleFieldRoleAgainst.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldRoleAgainstArg.cs | 17 + .../KKSG/BattleFieldRoleAgainstArg.cs.meta | 12 + .../XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs | 105 + .../KKSG/BattleFieldRoleSimpleInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleFieldType.cs | 14 + .../XMainClient/KKSG/BattleFieldType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleLogReport.cs | 128 + .../XMainClient/KKSG/BattleLogReport.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleRewardChest.cs | 191 + .../XMainClient/KKSG/BattleRewardChest.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleStarData.cs | 105 + .../XMainClient/KKSG/BattleStarData.cs.meta | 12 + .../XMainClient/KKSG/BattleStatisticsData.cs | 492 ++ .../XMainClient/KKSG/BattleStatisticsData.cs.meta | 12 + .../XMainClient/KKSG/BattleStatisticsNtf.cs | 84 + .../XMainClient/KKSG/BattleStatisticsNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BattleWatcherNtf.cs | 187 + .../XMainClient/KKSG/BattleWatcherNtf.cs.meta | 12 + .../XMainClient/KKSG/BigMeleeBattleResult.cs | 246 + .../XMainClient/KKSG/BigMeleeBattleResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BigMeleePoint.cs | 105 + .../Scripts/XMainClient/KKSG/BigMeleePoint.cs.meta | 12 + .../XMainClient/KKSG/BigMeleePointOutLook.cs | 105 + .../XMainClient/KKSG/BigMeleePointOutLook.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BigMeleeRelive.cs | 62 + .../XMainClient/KKSG/BigMeleeRelive.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BindSkillRes.cs | 74 + .../Scripts/XMainClient/KKSG/BindSkillRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BingSkillArg.cs | 105 + .../Scripts/XMainClient/KKSG/BingSkillArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BlackListNtf.cs | 29 + .../Scripts/XMainClient/KKSG/BlackListNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BlackListReport.cs | 17 + .../XMainClient/KKSG/BlackListReport.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BossRushArg.cs | 62 + .../Scripts/XMainClient/KKSG/BossRushArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BossRushData.cs | 406 ++ .../Scripts/XMainClient/KKSG/BossRushData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BossRushPara.cs | 105 + .../Scripts/XMainClient/KKSG/BossRushPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BossRushReqStatus.cs | 24 + .../XMainClient/KKSG/BossRushReqStatus.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BossRushRes.cs | 137 + .../Scripts/XMainClient/KKSG/BossRushRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BossRushResult.cs | 105 + .../XMainClient/KKSG/BossRushResult.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs | 128 + .../Scripts/XMainClient/KKSG/BoxInfos.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs | 20 + .../Scripts/XMainClient/KKSG/BoxType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BroadCastG2RType.cs | 16 + .../XMainClient/KKSG/BroadCastG2RType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BroadCastType.cs | 14 + .../Scripts/XMainClient/KKSG/BroadCastType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/Buff.cs | 191 + .../Assets/Scripts/XMainClient/KKSG/Buff.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs | 406 ++ .../Scripts/XMainClient/KKSG/BuffInfo.2.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs | 148 + .../Scripts/XMainClient/KKSG/BuffItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs | 117 + .../Scripts/XMainClient/KKSG/BuffList.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BulletUnitData.cs | 336 + .../XMainClient/KKSG/BulletUnitData.cs.meta | 12 + .../XMainClient/KKSG/BuyDragonGuildShopItemArg.cs | 105 + .../KKSG/BuyDragonGuildShopItemArg.cs.meta | 12 + .../XMainClient/KKSG/BuyDragonGuildShopItemRes.cs | 62 + .../KKSG/BuyDragonGuildShopItemRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs | 17 + .../Scripts/XMainClient/KKSG/BuyDrawReq.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs | 62 + .../Scripts/XMainClient/KKSG/BuyDrawRes.cs.meta | 12 + .../XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs | 17 + .../KKSG/BuyExtraSkillEmblemSlotArg.cs.meta | 12 + .../XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs | 105 + .../KKSG/BuyExtraSkillEmblemSlotRes.cs.meta | 12 + .../XMainClient/KKSG/BuyGoldAndFatigueArg.cs | 148 + .../XMainClient/KKSG/BuyGoldAndFatigueArg.cs.meta | 12 + .../XMainClient/KKSG/BuyGoldAndFatigueRes.cs | 62 + .../XMainClient/KKSG/BuyGoldAndFatigueRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs | 176 + .../XMainClient/KKSG/BuyGoldFatInfo.cs.meta | 12 + .../XMainClient/KKSG/BuyHeroInHeroBattleArg.cs | 62 + .../KKSG/BuyHeroInHeroBattleArg.cs.meta | 12 + .../XMainClient/KKSG/BuyHeroInHeroBattleRes.cs | 62 + .../KKSG/BuyHeroInHeroBattleRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs | 62 + .../XMainClient/KKSG/BuyJadeSlotArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs | 62 + .../XMainClient/KKSG/BuyJadeSlotNewArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs | 62 + .../XMainClient/KKSG/BuyJadeSlotNewRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs | 62 + .../XMainClient/KKSG/BuyJadeSlotRes.cs.meta | 12 + .../XMainClient/KKSG/BuyPartnerShopItemArg.cs | 105 + .../XMainClient/KKSG/BuyPartnerShopItemArg.cs.meta | 12 + .../XMainClient/KKSG/BuyPartnerShopItemRes.cs | 62 + .../XMainClient/KKSG/BuyPartnerShopItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyShopItemArg.cs | 105 + .../XMainClient/KKSG/BuyShopItemArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyShopItemRes.cs | 62 + .../XMainClient/KKSG/BuyShopItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuySpriteEggArg.cs | 62 + .../XMainClient/KKSG/BuySpriteEggArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuySpriteEggRes.cs | 203 + .../XMainClient/KKSG/BuySpriteEggRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs | 62 + .../XMainClient/KKSG/BuyTeamSceneCountP.cs.meta | 12 + .../XMainClient/KKSG/BuyTeamSceneCountRet.cs | 191 + .../XMainClient/KKSG/BuyTeamSceneCountRet.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs | 62 + .../XMainClient/KKSG/BuyVipLevelGiftArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs | 74 + .../XMainClient/KKSG/BuyVipLevelGiftRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/CallData.cs | 234 + .../Scripts/XMainClient/KKSG/CallData.cs.meta | 12 + .../KKSG/CampDuelActivityOperationArg.cs | 105 + .../KKSG/CampDuelActivityOperationArg.cs.meta | 12 + .../KKSG/CampDuelActivityOperationRes.cs | 207 + .../KKSG/CampDuelActivityOperationRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CampDuelData.cs | 320 + .../Scripts/XMainClient/KKSG/CampDuelData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/CampID.cs | 16 + .../Assets/Scripts/XMainClient/KKSG/CampID.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CampRoleRecord.cs | 78 + .../XMainClient/KKSG/CampRoleRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CampTaskInfo.cs | 105 + .../Scripts/XMainClient/KKSG/CampTaskInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs | 203 + .../XMainClient/KKSG/CampTaskInfo2DB.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CampTaskStatus.cs | 18 + .../XMainClient/KKSG/CampTaskStatus.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CampTaskType.cs | 18 + .../Scripts/XMainClient/KKSG/CampTaskType.cs.meta | 12 + .../XMainClient/KKSG/CancelLeavePartnerArg.cs | 17 + .../XMainClient/KKSG/CancelLeavePartnerArg.cs.meta | 12 + .../XMainClient/KKSG/CancelLeavePartnerRes.cs | 62 + .../XMainClient/KKSG/CancelLeavePartnerRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CancelRedDot.cs | 62 + .../Scripts/XMainClient/KKSG/CancelRedDot.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs | 105 + .../Scripts/XMainClient/KKSG/CardAttr.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs | 30 + .../Scripts/XMainClient/KKSG/CardMatchOp.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CardMatchState.cs | 26 + .../XMainClient/KKSG/CardMatchState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/CareerData.cs | 148 + .../Scripts/XMainClient/KKSG/CareerData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CarrerDataType.cs | 18 + .../XMainClient/KKSG/CarrerDataType.cs.meta | 12 + .../XMainClient/KKSG/ChangeDeclarationArg.cs | 62 + .../XMainClient/KKSG/ChangeDeclarationArg.cs.meta | 12 + .../XMainClient/KKSG/ChangeDeclarationRes.cs | 105 + .../XMainClient/KKSG/ChangeDeclarationRes.cs.meta | 12 + .../KKSG/ChangeDragonGuildPositionArg.cs | 105 + .../KKSG/ChangeDragonGuildPositionArg.cs.meta | 12 + .../KKSG/ChangeDragonGuildPositionRes.cs | 62 + .../KKSG/ChangeDragonGuildPositionRes.cs.meta | 12 + .../KKSG/ChangeDragonGuildSettingArg.cs | 148 + .../KKSG/ChangeDragonGuildSettingArg.cs.meta | 12 + .../KKSG/ChangeDragonGuildSettingRes.cs | 62 + .../KKSG/ChangeDragonGuildSettingRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs | 62 + .../XMainClient/KKSG/ChangeGuildCardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs | 148 + .../XMainClient/KKSG/ChangeGuildCardRes.cs.meta | 12 + .../XMainClient/KKSG/ChangeGuildPositionArg.cs | 105 + .../KKSG/ChangeGuildPositionArg.cs.meta | 12 + .../XMainClient/KKSG/ChangeGuildPositionRes.cs | 62 + .../KKSG/ChangeGuildPositionRes.cs.meta | 12 + .../XMainClient/KKSG/ChangeGuildSettingArg.cs | 191 + .../XMainClient/KKSG/ChangeGuildSettingArg.cs.meta | 12 + .../XMainClient/KKSG/ChangeGuildSettingRes.cs | 62 + .../XMainClient/KKSG/ChangeGuildSettingRes.cs.meta | 12 + .../XMainClient/KKSG/ChangeLiveVisibleArg.cs | 62 + .../XMainClient/KKSG/ChangeLiveVisibleArg.cs.meta | 12 + .../XMainClient/KKSG/ChangeLiveVisibleRes.cs | 62 + .../XMainClient/KKSG/ChangeLiveVisibleRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeNameArg.cs | 105 + .../Scripts/XMainClient/KKSG/ChangeNameArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs | 62 + .../XMainClient/KKSG/ChangeNameCountNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeNameRes.cs | 62 + .../Scripts/XMainClient/KKSG/ChangeNameRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs | 34 + .../XMainClient/KKSG/ChangeOutLookOpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs | 62 + .../XMainClient/KKSG/ChangeOutLookOpRes.cs.meta | 12 + .../XMainClient/KKSG/ChangeProfessionArg.cs | 62 + .../XMainClient/KKSG/ChangeProfessionArg.cs.meta | 12 + .../XMainClient/KKSG/ChangeProfessionRes.cs | 62 + .../XMainClient/KKSG/ChangeProfessionRes.cs.meta | 12 + .../XMainClient/KKSG/ChangeRiskBoxStateArg.cs | 148 + .../XMainClient/KKSG/ChangeRiskBoxStateArg.cs.meta | 12 + .../XMainClient/KKSG/ChangeRiskBoxStateRes.cs | 74 + .../XMainClient/KKSG/ChangeRiskBoxStateRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs | 62 + .../XMainClient/KKSG/ChangeSkillSetArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs | 78 + .../XMainClient/KKSG/ChangeSkillSetRes.cs.meta | 12 + .../XMainClient/KKSG/ChangeSupplementNtf.cs | 74 + .../XMainClient/KKSG/ChangeSupplementNtf.cs.meta | 12 + .../XMainClient/KKSG/ChangeSupplementReport.cs | 105 + .../KKSG/ChangeSupplementReport.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs | 62 + .../XMainClient/KKSG/ChangeWatchRoleArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs | 62 + .../XMainClient/KKSG/ChangeWatchRoleRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChangedAttribute.cs | 257 + .../XMainClient/KKSG/ChangedAttribute.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs | 34 + .../Scripts/XMainClient/KKSG/ChatArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ChatChannel.cs | 38 + .../Scripts/XMainClient/KKSG/ChatChannel.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs | 29 + .../Scripts/XMainClient/KKSG/ChatDest.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs | 622 ++ .../Scripts/XMainClient/KKSG/ChatInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ChatNotify.cs | 34 + .../Scripts/XMainClient/KKSG/ChatNotify.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChatOfflineNotify.cs | 101 + .../XMainClient/KKSG/ChatOfflineNotify.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ChatParam.cs | 146 + .../Scripts/XMainClient/KKSG/ChatParam.cs.meta | 12 + .../XMainClient/KKSG/ChatParamDragonGuild.cs | 105 + .../XMainClient/KKSG/ChatParamDragonGuild.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChatParamGuild.cs | 105 + .../XMainClient/KKSG/ChatParamGuild.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChatParamItem.cs | 34 + .../Scripts/XMainClient/KKSG/ChatParamItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChatParamLink.cs | 117 + .../Scripts/XMainClient/KKSG/ChatParamLink.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChatParamNum.cs | 62 + .../Scripts/XMainClient/KKSG/ChatParamNum.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChatParamRole.cs | 148 + .../Scripts/XMainClient/KKSG/ChatParamRole.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChatParamSpectate.cs | 105 + .../XMainClient/KKSG/ChatParamSpectate.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChatParamTeam.cs | 148 + .../Scripts/XMainClient/KKSG/ChatParamTeam.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs | 105 + .../Scripts/XMainClient/KKSG/ChatRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ChatSource.cs | 551 ++ .../Scripts/XMainClient/KKSG/ChatSource.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CheckQueuingNtf.cs | 148 + .../XMainClient/KKSG/CheckQueuingNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CheckQueuingReq.cs | 62 + .../XMainClient/KKSG/CheckQueuingReq.cs.meta | 12 + .../XMainClient/KKSG/CheckRoleBeforePayArg.cs | 148 + .../XMainClient/KKSG/CheckRoleBeforePayArg.cs.meta | 12 + .../XMainClient/KKSG/CheckRoleBeforePayRes.cs | 62 + .../XMainClient/KKSG/CheckRoleBeforePayRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/CheckinArg.cs | 17 + .../Scripts/XMainClient/KKSG/CheckinArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CheckinInfoNotify.cs | 257 + .../XMainClient/KKSG/CheckinInfoNotify.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CheckinRecord.cs | 148 + .../Scripts/XMainClient/KKSG/CheckinRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/CheckinRes.cs | 277 + .../Scripts/XMainClient/KKSG/CheckinRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChooseProfArg.cs | 62 + .../Scripts/XMainClient/KKSG/ChooseProfArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChooseProfRes.cs | 62 + .../Scripts/XMainClient/KKSG/ChooseProfRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChooseRollReqArg.cs | 78 + .../XMainClient/KKSG/ChooseRollReqArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ChooseRollReqRes.cs | 62 + .../XMainClient/KKSG/ChooseRollReqRes.cs.meta | 12 + .../XMainClient/KKSG/ChooseSpecialEffectsArg.cs | 62 + .../KKSG/ChooseSpecialEffectsArg.cs.meta | 12 + .../XMainClient/KKSG/ChooseSpecialEffectsRes.cs | 62 + .../KKSG/ChooseSpecialEffectsRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CircleDrawData.cs | 191 + .../XMainClient/KKSG/CircleDrawData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CircleDrawGive.cs | 105 + .../XMainClient/KKSG/CircleDrawGive.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/CityData.cs | 277 + .../Scripts/XMainClient/KKSG/CityData.cs.meta | 12 + .../XMainClient/KKSG/ClearGuildTerrAllianceArg.cs | 17 + .../KKSG/ClearGuildTerrAllianceArg.cs.meta | 12 + .../XMainClient/KKSG/ClearGuildTerrAllianceRes.cs | 62 + .../KKSG/ClearGuildTerrAllianceRes.cs.meta | 12 + .../XMainClient/KKSG/ClearPrivateChatListArg.cs | 105 + .../KKSG/ClearPrivateChatListArg.cs.meta | 12 + .../XMainClient/KKSG/ClearPrivateChatListRes.cs | 62 + .../KKSG/ClearPrivateChatListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs | 246 + .../XMainClient/KKSG/CliAntiCheatInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ClickGuildCampArg.cs | 17 + .../XMainClient/KKSG/ClickGuildCampArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs | 34 + .../XMainClient/KKSG/ClickNewNoticeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs | 62 + .../XMainClient/KKSG/ClickNewNoticeRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ClientInfo.cs | 879 +++ .../Scripts/XMainClient/KKSG/ClientInfo.cs.meta | 12 + .../XMainClient/KKSG/ClientQueryRankListArg.cs | 320 + .../KKSG/ClientQueryRankListArg.cs.meta | 12 + .../XMainClient/KKSG/ClientQueryRankListRes.cs | 223 + .../KKSG/ClientQueryRankListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ClientReviveInfo.cs | 62 + .../XMainClient/KKSG/ClientReviveInfo.cs.meta | 12 + .../XMainClient/KKSG/ClientUpdatePackageData.cs | 62 + .../KKSG/ClientUpdatePackageData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CloseHintNtf.cs | 62 + .../Scripts/XMainClient/KKSG/CloseHintNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs | 17 + .../XMainClient/KKSG/CloseLeagueEleNtf.cs.meta | 12 + .../XMainClient/KKSG/CloseSkyCraftEliNtf.cs | 17 + .../XMainClient/KKSG/CloseSkyCraftEliNtf.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs | 105 + .../Scripts/XMainClient/KKSG/ComAgate.cs.meta | 12 + .../XMainClient/KKSG/CommendFirstPassArg.cs | 62 + .../XMainClient/KKSG/CommendFirstPassArg.cs.meta | 12 + .../XMainClient/KKSG/CommendFirstPassRes.cs | 148 + .../XMainClient/KKSG/CommendFirstPassRes.cs.meta | 12 + .../XMainClient/KKSG/CommendWatchBattleArg.cs | 17 + .../XMainClient/KKSG/CommendWatchBattleArg.cs.meta | 12 + .../XMainClient/KKSG/CommendWatchBattleRes.cs | 62 + .../XMainClient/KKSG/CommendWatchBattleRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/CommentType.cs | 22 + .../Scripts/XMainClient/KKSG/CommentType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CommitAnswerNtf.cs | 191 + .../XMainClient/KKSG/CommitAnswerNtf.cs.meta | 12 + .../XMainClient/KKSG/CompeteDragonInfo2DB.cs | 148 + .../XMainClient/KKSG/CompeteDragonInfo2DB.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs | 14 + .../XMainClient/KKSG/CompeteDragonOpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CountDownNtf.cs | 62 + .../Scripts/XMainClient/KKSG/CountDownNtf.cs.meta | 12 + .../XMainClient/KKSG/CoverDesignationNtf.cs | 105 + .../XMainClient/KKSG/CoverDesignationNtf.cs.meta | 12 + .../XMainClient/KKSG/CreateCrossBattleSceneArg.cs | 90 + .../KKSG/CreateCrossBattleSceneArg.cs.meta | 12 + .../XMainClient/KKSG/CreateCrossBattleSceneData.cs | 105 + .../KKSG/CreateCrossBattleSceneData.cs.meta | 12 + .../XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs | 148 + .../KKSG/CreateOrJoinDragonGuildArg.cs.meta | 12 + .../XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs | 191 + .../KKSG/CreateOrJoinDragonGuildRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs | 191 + .../XMainClient/KKSG/CreateOrJoinGuild.cs.meta | 12 + .../XMainClient/KKSG/CreateOrJoinGuildRes.cs | 148 + .../XMainClient/KKSG/CreateOrJoinGuildRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CreateRoleNewArg.cs | 105 + .../XMainClient/KKSG/CreateRoleNewArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CreateRoleNewRes.cs | 78 + .../XMainClient/KKSG/CreateRoleNewRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgBattleType.cs | 14 + .../XMainClient/KKSG/CrossGvgBattleType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs | 449 ++ .../XMainClient/KKSG/CrossGvgGuildInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgOperArg.cs | 74 + .../XMainClient/KKSG/CrossGvgOperArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgOperRes.cs | 62 + .../XMainClient/KKSG/CrossGvgOperRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgOperType.cs | 18 + .../XMainClient/KKSG/CrossGvgOperType.cs.meta | 12 + .../XMainClient/KKSG/CrossGvgRacePointRecord.cs | 250 + .../KKSG/CrossGvgRacePointRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs | 535 ++ .../XMainClient/KKSG/CrossGvgRoomInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgRoomState.cs | 16 + .../XMainClient/KKSG/CrossGvgRoomState.cs.meta | 12 + .../XMainClient/KKSG/CrossGvgRoomStateNtf.cs | 50 + .../XMainClient/KKSG/CrossGvgRoomStateNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs | 62 + .../XMainClient/KKSG/CrossGvgStateNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CrossGvgTimeState.cs | 22 + .../XMainClient/KKSG/CrossGvgTimeState.cs.meta | 12 + .../XMainClient/KKSG/CustomBattleClientInfo.cs | 122 + .../KKSG/CustomBattleClientInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleConfig.cs | 879 +++ .../XMainClient/KKSG/CustomBattleConfig.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleData.cs | 90 + .../XMainClient/KKSG/CustomBattleData.cs.meta | 12 + .../XMainClient/KKSG/CustomBattleDataRole.cs | 50 + .../XMainClient/KKSG/CustomBattleDataRole.cs.meta | 12 + .../XMainClient/KKSG/CustomBattleGMNotify.cs | 105 + .../XMainClient/KKSG/CustomBattleGMNotify.cs.meta | 12 + .../XMainClient/KKSG/CustomBattleLoadingNtf.cs | 74 + .../KKSG/CustomBattleLoadingNtf.cs.meta | 12 + .../XMainClient/KKSG/CustomBattleMatchRoleInfo.cs | 429 ++ .../KKSG/CustomBattleMatchRoleInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleOp.cs | 46 + .../XMainClient/KKSG/CustomBattleOp.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleOpArg.cs | 293 + .../XMainClient/KKSG/CustomBattleOpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleOpRes.cs | 78 + .../XMainClient/KKSG/CustomBattleOpRes.cs.meta | 12 + .../XMainClient/KKSG/CustomBattleQueryInfo.cs | 57 + .../XMainClient/KKSG/CustomBattleQueryInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleRank.cs | 277 + .../XMainClient/KKSG/CustomBattleRank.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleResult.cs | 277 + .../XMainClient/KKSG/CustomBattleResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleRole.cs | 418 ++ .../XMainClient/KKSG/CustomBattleRole.cs.meta | 12 + .../XMainClient/KKSG/CustomBattleRoleState.cs | 18 + .../XMainClient/KKSG/CustomBattleRoleState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleScale.cs | 18 + .../XMainClient/KKSG/CustomBattleScale.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleState.cs | 18 + .../XMainClient/KKSG/CustomBattleState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleTag.cs | 18 + .../XMainClient/KKSG/CustomBattleTag.cs.meta | 12 + .../Scripts/XMainClient/KKSG/CustomBattleType.cs | 14 + .../XMainClient/KKSG/CustomBattleType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DBOperType.cs | 20 + .../Scripts/XMainClient/KKSG/DBOperType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DEProgress.cs | 148 + .../Scripts/XMainClient/KKSG/DEProgress.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DEProgressArg.cs | 17 + .../Scripts/XMainClient/KKSG/DEProgressArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DEProgressRes.cs | 203 + .../Scripts/XMainClient/KKSG/DEProgressRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DEProgressState.cs | 16 + .../XMainClient/KKSG/DEProgressState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/DERank.cs | 176 + .../Assets/Scripts/XMainClient/KKSG/DERank.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DERankArg.cs | 17 + .../Scripts/XMainClient/KKSG/DERankArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DERankChangePara.cs | 105 + .../XMainClient/KKSG/DERankChangePara.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DERankRes.cs | 117 + .../Scripts/XMainClient/KKSG/DERankRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DEStageProgress.cs | 85 + .../XMainClient/KKSG/DEStageProgress.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs | 105 + .../Assets/Scripts/XMainClient/KKSG/DHRArg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs | 18 + .../Scripts/XMainClient/KKSG/DHRReqOp.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs | 160 + .../Assets/Scripts/XMainClient/KKSG/DHRRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs | 16 + .../Scripts/XMainClient/KKSG/DHRState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DHRewrad2State.cs | 105 + .../XMainClient/KKSG/DHRewrad2State.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DPSNotify.cs | 62 + .../Scripts/XMainClient/KKSG/DPSNotify.cs.meta | 12 + .../XMainClient/KKSG/DailyRefreshOperType.cs | 18 + .../XMainClient/KKSG/DailyRefreshOperType.cs.meta | 12 + .../XMainClient/KKSG/DailyTaskAskHelpArg.cs | 105 + .../XMainClient/KKSG/DailyTaskAskHelpArg.cs.meta | 12 + .../XMainClient/KKSG/DailyTaskAskHelpRes.cs | 105 + .../XMainClient/KKSG/DailyTaskAskHelpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs | 62 + .../XMainClient/KKSG/DailyTaskEventNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs | 17 + .../XMainClient/KKSG/DailyTaskGiveUpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs | 62 + .../XMainClient/KKSG/DailyTaskGiveUpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DailyTaskIconType.cs | 16 + .../XMainClient/KKSG/DailyTaskIconType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DailyTaskInfo.cs | 191 + .../Scripts/XMainClient/KKSG/DailyTaskInfo.cs.meta | 12 + .../XMainClient/KKSG/DailyTaskRefreshInfo.cs | 277 + .../XMainClient/KKSG/DailyTaskRefreshInfo.cs.meta | 12 + .../XMainClient/KKSG/DailyTaskRefreshOperArg.cs | 105 + .../KKSG/DailyTaskRefreshOperArg.cs.meta | 12 + .../XMainClient/KKSG/DailyTaskRefreshOperRes.cs | 148 + .../KKSG/DailyTaskRefreshOperRes.cs.meta | 12 + .../XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs | 492 ++ .../KKSG/DailyTaskRefreshRoleInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DamageResult.cs | 320 + .../Scripts/XMainClient/KKSG/DamageResult.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DeathInfo.cs | 277 + .../Scripts/XMainClient/KKSG/DeathInfo.cs.meta | 12 + .../XMainClient/KKSG/DecomposeEquipmentArg.cs | 40 + .../XMainClient/KKSG/DecomposeEquipmentArg.cs.meta | 12 + .../XMainClient/KKSG/DecomposeEquipmentRes.cs | 74 + .../XMainClient/KKSG/DecomposeEquipmentRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DelGuildInheritArg.cs | 17 + .../XMainClient/KKSG/DelGuildInheritArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DelGuildInheritRes.cs | 62 + .../XMainClient/KKSG/DelGuildInheritRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DelayInfo.cs | 62 + .../Scripts/XMainClient/KKSG/DelayInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/Designation2DB.cs | 160 + .../XMainClient/KKSG/Designation2DB.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DesignationType.cs | 20 + .../XMainClient/KKSG/DesignationType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DisplayAddItemArg.cs | 105 + .../XMainClient/KKSG/DisplayAddItemArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DneRecord.cs | 105 + .../Scripts/XMainClient/KKSG/DneRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DoAddFriendArg.cs | 74 + .../XMainClient/KKSG/DoAddFriendArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DoAddFriendRes.cs | 74 + .../XMainClient/KKSG/DoAddFriendRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DoEnterSceneArg.cs | 62 + .../XMainClient/KKSG/DoEnterSceneArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DoEnterSceneRes.cs | 439 ++ .../XMainClient/KKSG/DoEnterSceneRes.cs.meta | 12 + .../XMainClient/KKSG/DonateMemberItemArg.cs | 117 + .../XMainClient/KKSG/DonateMemberItemArg.cs.meta | 12 + .../XMainClient/KKSG/DonateMemberItemRes.cs | 203 + .../XMainClient/KKSG/DonateMemberItemRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs | 191 + .../Scripts/XMainClient/KKSG/DoodadInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs | 105 + .../XMainClient/KKSG/DoodadItemAddNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs | 29 + .../XMainClient/KKSG/DoodadItemAllSkill.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DoodadItemSkill.cs | 148 + .../XMainClient/KKSG/DoodadItemSkill.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs | 105 + .../XMainClient/KKSG/DoodadItemUseNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/DoorState.cs | 105 + .../Scripts/XMainClient/KKSG/DoorState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonExpResult.cs | 214 + .../XMainClient/KKSG/DragonExpResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonGroupDB.cs | 50 + .../Scripts/XMainClient/KKSG/DragonGroupDB.cs.meta | 12 + .../XMainClient/KKSG/DragonGroupRecordC2S.cs | 17 + .../XMainClient/KKSG/DragonGroupRecordC2S.cs.meta | 12 + .../XMainClient/KKSG/DragonGroupRecordInfoList.cs | 461 ++ .../KKSG/DragonGroupRecordInfoList.cs.meta | 12 + .../XMainClient/KKSG/DragonGroupRecordS2C.cs | 74 + .../XMainClient/KKSG/DragonGroupRecordS2C.cs.meta | 12 + .../XMainClient/KKSG/DragonGroupRoleInfo.cs | 508 ++ .../XMainClient/KKSG/DragonGroupRoleInfo.cs.meta | 12 + .../XMainClient/KKSG/DragonGroupRoleListC2S.cs | 17 + .../KKSG/DragonGroupRoleListC2S.cs.meta | 12 + .../XMainClient/KKSG/DragonGroupRoleListS2C.cs | 74 + .../KKSG/DragonGroupRoleListS2C.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildApprovalArg.cs | 105 + .../KKSG/DragonGuildApprovalArg.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildApprovalRes.cs | 62 + .../KKSG/DragonGuildApprovalRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonGuildBindReq.cs | 62 + .../XMainClient/KKSG/DragonGuildBindReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonGuildBindRes.cs | 105 + .../XMainClient/KKSG/DragonGuildBindRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonGuildInfo.cs | 664 ++ .../XMainClient/KKSG/DragonGuildInfo.cs.meta | 12 + .../KKSG/DragonGuildJoinBindGroupArg.cs | 62 + .../KKSG/DragonGuildJoinBindGroupArg.cs.meta | 12 + .../KKSG/DragonGuildJoinBindGroupRes.cs | 62 + .../KKSG/DragonGuildJoinBindGroupRes.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildMemberArg.cs | 62 + .../XMainClient/KKSG/DragonGuildMemberArg.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildMemberRes.cs | 74 + .../XMainClient/KKSG/DragonGuildMemberRes.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildMembersInfo.cs | 621 ++ .../KKSG/DragonGuildMembersInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs | 62 + .../XMainClient/KKSG/DragonGuildNameNtf.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildRecordData.cs | 300 + .../XMainClient/KKSG/DragonGuildRecordData.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildRoleTaskItem.cs | 105 + .../KKSG/DragonGuildRoleTaskItem.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildSettingChanged.cs | 148 + .../KKSG/DragonGuildSettingChanged.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildShopItemClient.cs | 148 + .../KKSG/DragonGuildShopItemClient.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildShopRecordItem.cs | 277 + .../KKSG/DragonGuildShopRecordItem.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildSortType.cs | 22 + .../XMainClient/KKSG/DragonGuildSortType.cs.meta | 12 + .../KKSG/DragonGuildTaskConditionType.cs | 18 + .../KKSG/DragonGuildTaskConditionType.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildTaskInfo.cs | 148 + .../XMainClient/KKSG/DragonGuildTaskInfo.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildTaskType.cs | 14 + .../XMainClient/KKSG/DragonGuildTaskType.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildUnBindGroupArg.cs | 62 + .../KKSG/DragonGuildUnBindGroupArg.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildUnBindGroupRes.cs | 62 + .../KKSG/DragonGuildUnBindGroupRes.cs.meta | 12 + .../XMainClient/KKSG/DragonGuildUpdateType.cs | 20 + .../XMainClient/KKSG/DragonGuildUpdateType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonInfo2Client.cs | 234 + .../XMainClient/KKSG/DragonInfo2Client.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonRecord.cs | 234 + .../Scripts/XMainClient/KKSG/DragonRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonRecord2DB.cs | 160 + .../XMainClient/KKSG/DragonRecord2DB.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DragonWeakType.cs | 18 + .../XMainClient/KKSG/DragonWeakType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DrawLotteryArg.cs | 62 + .../XMainClient/KKSG/DrawLotteryArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/DrawLotteryRes.cs | 128 + .../XMainClient/KKSG/DrawLotteryRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EMentorMsgOpType.cs | 20 + .../XMainClient/KKSG/EMentorMsgOpType.cs.meta | 12 + .../XMainClient/KKSG/EMentorRelationPosition.cs | 16 + .../KKSG/EMentorRelationPosition.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EMentorTaskStatus.cs | 22 + .../XMainClient/KKSG/EMentorTaskStatus.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/EffectData.cs | 117 + .../Scripts/XMainClient/KKSG/EffectData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EffectMultiParams.cs | 117 + .../XMainClient/KKSG/EffectMultiParams.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs | 29 + .../XMainClient/KKSG/EmblemLevelUpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs | 105 + .../XMainClient/KKSG/EmblemLevelUpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EmblemSlotType.cs | 18 + .../XMainClient/KKSG/EmblemSlotType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/EmptyData.cs | 17 + .../Scripts/XMainClient/KKSG/EmptyData.cs.meta | 12 + .../XMainClient/KKSG/EnchantActiveAttributeArg.cs | 105 + .../KKSG/EnchantActiveAttributeArg.cs.meta | 12 + .../XMainClient/KKSG/EnchantActiveAttributeRes.cs | 62 + .../KKSG/EnchantActiveAttributeRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnchantEquipArg.cs | 105 + .../XMainClient/KKSG/EnchantEquipArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnchantEquipRes.cs | 78 + .../XMainClient/KKSG/EnchantEquipRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnchantTransferArg.cs | 105 + .../XMainClient/KKSG/EnchantTransferArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnchantTransferRes.cs | 62 + .../XMainClient/KKSG/EnchantTransferRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EndGuildCardArg.cs | 17 + .../XMainClient/KKSG/EndGuildCardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EndGuildCardRes.cs | 105 + .../XMainClient/KKSG/EndGuildCardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs | 336 + .../XMainClient/KKSG/EnemyDoodadInfo.cs.meta | 12 + .../XMainClient/KKSG/EnemyDropDoodadInfo.cs | 29 + .../XMainClient/KKSG/EnemyDropDoodadInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnhanceItemArg.cs | 105 + .../XMainClient/KKSG/EnhanceItemArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnhanceItemRes.cs | 128 + .../XMainClient/KKSG/EnhanceItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnhanceTransterArg.cs | 105 + .../XMainClient/KKSG/EnhanceTransterArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnhanceTransterRes.cs | 105 + .../XMainClient/KKSG/EnhanceTransterRes.cs.meta | 12 + .../XMainClient/KKSG/EnterBMReadySceneArg.cs | 62 + .../XMainClient/KKSG/EnterBMReadySceneArg.cs.meta | 12 + .../XMainClient/KKSG/EnterBMReadySceneRes.cs | 105 + .../XMainClient/KKSG/EnterBMReadySceneRes.cs.meta | 12 + .../XMainClient/KKSG/EnterBattleReadySceneArg.cs | 62 + .../KKSG/EnterBattleReadySceneArg.cs.meta | 12 + .../XMainClient/KKSG/EnterBattleReadySceneRes.cs | 62 + .../KKSG/EnterBattleReadySceneRes.cs.meta | 12 + .../XMainClient/KKSG/EnterLeisureSceneArg.cs | 62 + .../XMainClient/KKSG/EnterLeisureSceneArg.cs.meta | 12 + .../XMainClient/KKSG/EnterLeisureSceneRes.cs | 62 + .../XMainClient/KKSG/EnterLeisureSceneRes.cs.meta | 12 + .../XMainClient/KKSG/EnterSceneCoolDownNotify.cs | 40 + .../KKSG/EnterSceneCoolDownNotify.cs.meta | 12 + .../XMainClient/KKSG/EnterSceneCoolDownQuery.cs | 74 + .../KKSG/EnterSceneCoolDownQuery.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnterSceneType.cs | 14 + .../XMainClient/KKSG/EnterSceneType.cs.meta | 12 + .../XMainClient/KKSG/EnterWatchBattleArg.cs | 105 + .../XMainClient/KKSG/EnterWatchBattleArg.cs.meta | 12 + .../XMainClient/KKSG/EnterWatchBattleRes.cs | 78 + .../XMainClient/KKSG/EnterWatchBattleRes.cs.meta | 12 + .../XMainClient/KKSG/EnterWeddingSceneArg.cs | 62 + .../XMainClient/KKSG/EnterWeddingSceneArg.cs.meta | 12 + .../XMainClient/KKSG/EnterWeddingSceneRes.cs | 62 + .../XMainClient/KKSG/EnterWeddingSceneRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EntityCategory.cs | 20 + .../XMainClient/KKSG/EntityCategory.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EntitySpecies.cs | 30 + .../Scripts/XMainClient/KKSG/EntitySpecies.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EntityTargetData.cs | 105 + .../XMainClient/KKSG/EntityTargetData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/EnumServerState.cs | 22 + .../XMainClient/KKSG/EnumServerState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ErrorCode.cs | 1706 +++++ .../Scripts/XMainClient/KKSG/ErrorCode.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs | 160 + .../Scripts/XMainClient/KKSG/ErrorInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/EventNotify.cs | 62 + .../Scripts/XMainClient/KKSG/EventNotify.cs.meta | 12 + .../XMainClient/KKSG/ExecuteLevelScriptNtf.cs | 62 + .../XMainClient/KKSG/ExecuteLevelScriptNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ExpBackType.cs | 16 + .../Scripts/XMainClient/KKSG/ExpBackType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ExpFindBackArg.cs | 62 + .../XMainClient/KKSG/ExpFindBackArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ExpFindBackData.cs | 29 + .../XMainClient/KKSG/ExpFindBackData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ExpFindBackInfo.cs | 105 + .../XMainClient/KKSG/ExpFindBackInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ExpFindBackRes.cs | 62 + .../XMainClient/KKSG/ExpFindBackRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ExpTeamMemberState.cs | 18 + .../XMainClient/KKSG/ExpTeamMemberState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs | 17 + .../Assets/Scripts/XMainClient/KKSG/FMBArg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs | 62 + .../Assets/Scripts/XMainClient/KKSG/FMBRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs | 105 + .../Assets/Scripts/XMainClient/KKSG/FMDArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FashionChanged.cs | 85 + .../XMainClient/KKSG/FashionChanged.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FashionChangedData.cs | 117 + .../XMainClient/KKSG/FashionChangedData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FashionComposeArg.cs | 148 + .../XMainClient/KKSG/FashionComposeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FashionComposeRes.cs | 62 + .../XMainClient/KKSG/FashionComposeRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/FashionData.cs | 289 + .../Scripts/XMainClient/KKSG/FashionData.cs.meta | 12 + .../XMainClient/KKSG/FashionIBShopBuyArg.cs | 29 + .../XMainClient/KKSG/FashionIBShopBuyArg.cs.meta | 12 + .../XMainClient/KKSG/FashionIBShopBuyRes.cs | 62 + .../XMainClient/KKSG/FashionIBShopBuyRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FashionNTFType.cs | 20 + .../XMainClient/KKSG/FashionNTFType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FashionRecord.cs | 431 ++ .../Scripts/XMainClient/KKSG/FashionRecord.cs.meta | 12 + .../XMainClient/KKSG/FashionSynthesisInfoArg.cs | 62 + .../KKSG/FashionSynthesisInfoArg.cs.meta | 12 + .../XMainClient/KKSG/FashionSynthesisInfoRes.cs | 148 + .../KKSG/FashionSynthesisInfoRes.cs.meta | 12 + .../XMainClient/KKSG/FatigueRecoverTimeInfo.cs | 40 + .../KKSG/FatigueRecoverTimeInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/Festival520Data.cs | 74 + .../XMainClient/KKSG/Festival520Data.cs.meta | 12 + .../Scripts/XMainClient/KKSG/Festival520Type.cs | 18 + .../XMainClient/KKSG/Festival520Type.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchAchiveArg.cs | 62 + .../XMainClient/KKSG/FetchAchiveArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchAchiveRes.cs | 62 + .../XMainClient/KKSG/FetchAchiveRes.cs.meta | 12 + .../XMainClient/KKSG/FetchChapterChestArg.cs | 105 + .../XMainClient/KKSG/FetchChapterChestArg.cs.meta | 12 + .../XMainClient/KKSG/FetchChapterChestRes.cs | 62 + .../XMainClient/KKSG/FetchChapterChestRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchDGAppArg.cs | 17 + .../Scripts/XMainClient/KKSG/FetchDGAppArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchDGAppRes.cs | 129 + .../Scripts/XMainClient/KKSG/FetchDGAppRes.cs.meta | 12 + .../XMainClient/KKSG/FetchDragonGuildListArg.cs | 277 + .../KKSG/FetchDragonGuildListArg.cs.meta | 12 + .../XMainClient/KKSG/FetchDragonGuildRes.cs | 74 + .../XMainClient/KKSG/FetchDragonGuildRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchGAPPArg.cs | 17 + .../Scripts/XMainClient/KKSG/FetchGAPPArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchGAPPRes.cs | 129 + .../Scripts/XMainClient/KKSG/FetchGAPPRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchGuildListArg.cs | 277 + .../XMainClient/KKSG/FetchGuildListArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchGuildListRes.cs | 74 + .../XMainClient/KKSG/FetchGuildListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchMailArg.cs | 105 + .../Scripts/XMainClient/KKSG/FetchMailArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchMailRes.cs | 117 + .../Scripts/XMainClient/KKSG/FetchMailRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs | 148 + .../XMainClient/KKSG/FetchPlantInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs | 128 + .../XMainClient/KKSG/FetchPlantInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs | 105 + .../XMainClient/KKSG/FetchPlatNoticeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs | 90 + .../XMainClient/KKSG/FetchPlatNoticeRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchTeamListArg.cs | 74 + .../XMainClient/KKSG/FetchTeamListArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FetchTeamListRes.cs | 85 + .../XMainClient/KKSG/FetchTeamListRes.cs.meta | 12 + .../XMainClient/KKSG/FightGroupChangeNtf.cs | 105 + .../XMainClient/KKSG/FightGroupChangeNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FightGroupType.cs | 20 + .../XMainClient/KKSG/FightGroupType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FinishStateInfo.cs | 105 + .../XMainClient/KKSG/FinishStateInfo.cs.meta | 12 + .../XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs | 62 + .../KKSG/FirstPassGetTopRoleInfoArg.cs.meta | 12 + .../XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs | 203 + .../KKSG/FirstPassGetTopRoleInfoRes.cs.meta | 12 + .../XMainClient/KKSG/FirstPassInfoReqArg.cs | 17 + .../XMainClient/KKSG/FirstPassInfoReqArg.cs.meta | 12 + .../XMainClient/KKSG/FirstPassInfoReqRes.cs | 74 + .../XMainClient/KKSG/FirstPassInfoReqRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FirstPassRecord.cs | 29 + .../XMainClient/KKSG/FirstPassRecord.cs.meta | 12 + .../XMainClient/KKSG/FirstPassRewardNtfData.cs | 105 + .../KKSG/FirstPassRewardNtfData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FirstPassStageInfo.cs | 246 + .../XMainClient/KKSG/FirstPassStageInfo.cs.meta | 12 + .../XMainClient/KKSG/FirstPassStageInfo2Client.cs | 206 + .../KKSG/FirstPassStageInfo2Client.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FishingState.cs | 20 + .../Scripts/XMainClient/KKSG/FishingState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FiveRewardRes.cs | 191 + .../Scripts/XMainClient/KKSG/FiveRewardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FiveRewardRet.cs | 62 + .../Scripts/XMainClient/KKSG/FiveRewardRet.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FiveRewardState.cs | 234 + .../XMainClient/KKSG/FiveRewardState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FlowerInfo2Client.cs | 234 + .../XMainClient/KKSG/FlowerInfo2Client.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FlowerRecord.cs | 214 + .../Scripts/XMainClient/KKSG/FlowerRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ForgeEquipArg.cs | 148 + .../Scripts/XMainClient/KKSG/ForgeEquipArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ForgeEquipRes.cs | 62 + .../Scripts/XMainClient/KKSG/ForgeEquipRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs | 16 + .../Scripts/XMainClient/KKSG/ForgeOpType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/FortStatus.cs | 12 + .../Scripts/XMainClient/KKSG/FortStatus.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/FortType.cs | 12 + .../Scripts/XMainClient/KKSG/FortType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/Friend2Client.cs | 1067 ++++ .../Scripts/XMainClient/KKSG/Friend2Client.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs | 320 + .../XMainClient/KKSG/FriendDegreeUpNtf.cs.meta | 12 + .../XMainClient/KKSG/FriendGardenPlantLogArg.cs | 17 + .../KKSG/FriendGardenPlantLogArg.cs.meta | 12 + .../XMainClient/KKSG/FriendGardenPlantLogRes.cs | 74 + .../KKSG/FriendGardenPlantLogRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/FriendGift.cs | 105 + .../Scripts/XMainClient/KKSG/FriendGift.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendGiftOpArg.cs | 74 + .../XMainClient/KKSG/FriendGiftOpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendGiftOpRes.cs | 62 + .../XMainClient/KKSG/FriendGiftOpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendGiftReceive.cs | 16 + .../XMainClient/KKSG/FriendGiftReceive.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendGiftSend.cs | 14 + .../XMainClient/KKSG/FriendGiftSend.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendOpNotify.cs | 145 + .../XMainClient/KKSG/FriendOpNotify.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendOpType.cs | 34 + .../Scripts/XMainClient/KKSG/FriendOpType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendPlantLog.cs | 320 + .../XMainClient/KKSG/FriendPlantLog.cs.meta | 12 + .../XMainClient/KKSG/FriendQueryReportNew.cs | 62 + .../XMainClient/KKSG/FriendQueryReportNew.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FriendVipInfo.cs | 148 + .../Scripts/XMainClient/KKSG/FriendVipInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/FunctionId.cs | 16 + .../Scripts/XMainClient/KKSG/FunctionId.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FuseEquipArg.cs | 148 + .../Scripts/XMainClient/KKSG/FuseEquipArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/FuseEquipRes.cs | 62 + .../Scripts/XMainClient/KKSG/FuseEquipRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs | 14 + .../XMainClient/KKSG/G2M_MarriageOpType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GASaleHistory.cs | 234 + .../Scripts/XMainClient/KKSG/GASaleHistory.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GASaleItem.cs | 363 ++ .../Scripts/XMainClient/KKSG/GASaleItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFBattleField.cs | 90 + .../XMainClient/KKSG/GCFBattleField.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFCommonArg.cs | 148 + .../Scripts/XMainClient/KKSG/GCFCommonArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFCommonRes.cs | 236 + .../Scripts/XMainClient/KKSG/GCFCommonRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFFightInfoArg.cs | 17 + .../XMainClient/KKSG/GCFFightInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFFightInfoRes.cs | 144 + .../XMainClient/KKSG/GCFFightInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFG2CSynPara.cs | 379 ++ .../Scripts/XMainClient/KKSG/GCFG2CSynPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFG2CSynType.cs | 18 + .../Scripts/XMainClient/KKSG/GCFG2CSynType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFGuildBrief.cs | 234 + .../Scripts/XMainClient/KKSG/GCFGuildBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFJvDianInfo.cs | 105 + .../Scripts/XMainClient/KKSG/GCFJvDianInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFJvDianType.cs | 16 + .../Scripts/XMainClient/KKSG/GCFJvDianType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs | 17 + .../XMainClient/KKSG/GCFReadyInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs | 74 + .../XMainClient/KKSG/GCFReadyInfoRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GCFReqType.cs | 18 + .../Scripts/XMainClient/KKSG/GCFReqType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFRoleBrief.cs | 277 + .../Scripts/XMainClient/KKSG/GCFRoleBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs | 234 + .../XMainClient/KKSG/GCFZhanChBriefInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFZhanLingPara.cs | 148 + .../XMainClient/KKSG/GCFZhanLingPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GCFZhanLingType.cs | 16 + .../XMainClient/KKSG/GCFZhanLingType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GCFsynType.cs | 22 + .../Scripts/XMainClient/KKSG/GCFsynType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GHisRecord.cs | 234 + .../Scripts/XMainClient/KKSG/GHisRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs | 74 + .../Scripts/XMainClient/KKSG/GMCmdArg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs | 148 + .../Scripts/XMainClient/KKSG/GMCmdRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GMFFailReason.cs | 20 + .../Scripts/XMainClient/KKSG/GMFFailReason.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GMFReadyType.cs | 16 + .../Scripts/XMainClient/KKSG/GMFReadyType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs | 16 + .../XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs | 20 + .../Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GameAppType.cs | 14 + .../Scripts/XMainClient/KKSG/GameAppType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenBanquetArg.cs | 62 + .../XMainClient/KKSG/GardenBanquetArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenBanquetNtf.cs | 191 + .../XMainClient/KKSG/GardenBanquetNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenBanquetRes.cs | 117 + .../XMainClient/KKSG/GardenBanquetRes.cs.meta | 12 + .../XMainClient/KKSG/GardenCookingFoodArg.cs | 62 + .../XMainClient/KKSG/GardenCookingFoodArg.cs.meta | 12 + .../XMainClient/KKSG/GardenCookingFoodRes.cs | 160 + .../XMainClient/KKSG/GardenCookingFoodRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenEventLog.cs | 277 + .../XMainClient/KKSG/GardenEventLog.cs.meta | 12 + .../XMainClient/KKSG/GardenExpelSpriteArg.cs | 148 + .../XMainClient/KKSG/GardenExpelSpriteArg.cs.meta | 12 + .../XMainClient/KKSG/GardenExpelSpriteRes.cs | 74 + .../XMainClient/KKSG/GardenExpelSpriteRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenFishInfoArg.cs | 62 + .../XMainClient/KKSG/GardenFishInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenFishInfoRes.cs | 148 + .../XMainClient/KKSG/GardenFishInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenFishStopArg.cs | 62 + .../XMainClient/KKSG/GardenFishStopArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenOverviewArg.cs | 17 + .../XMainClient/KKSG/GardenOverviewArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenOverviewRes.cs | 494 ++ .../XMainClient/KKSG/GardenOverviewRes.cs.meta | 12 + .../XMainClient/KKSG/GardenPlantEventNoticeArg.cs | 363 ++ .../KKSG/GardenPlantEventNoticeArg.cs.meta | 12 + .../XMainClient/KKSG/GardenPlayEventType.cs | 32 + .../XMainClient/KKSG/GardenPlayEventType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenQuestType.cs | 16 + .../XMainClient/KKSG/GardenQuestType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenStealArg.cs | 148 + .../XMainClient/KKSG/GardenStealArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GardenStealRes.cs | 74 + .../XMainClient/KKSG/GardenStealRes.cs.meta | 12 + .../XMainClient/KKSG/Get520FestivalRedPacket.cs | 191 + .../KKSG/Get520FestivalRedPacket.cs.meta | 12 + .../XMainClient/KKSG/GetAchieveBrifInfoReq.cs | 17 + .../XMainClient/KKSG/GetAchieveBrifInfoReq.cs.meta | 12 + .../XMainClient/KKSG/GetAchieveBrifInfoRes.cs | 203 + .../XMainClient/KKSG/GetAchieveBrifInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetAchieveClassifyInfoReq.cs | 62 + .../KKSG/GetAchieveClassifyInfoReq.cs.meta | 12 + .../XMainClient/KKSG/GetAchieveClassifyInfoRes.cs | 74 + .../KKSG/GetAchieveClassifyInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetAchievePointRewardReq.cs | 62 + .../KKSG/GetAchievePointRewardReq.cs.meta | 12 + .../XMainClient/KKSG/GetAchievePointRewardRes.cs | 62 + .../KKSG/GetAchievePointRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetAchieveRewardReq.cs | 62 + .../XMainClient/KKSG/GetAchieveRewardReq.cs.meta | 12 + .../XMainClient/KKSG/GetAchieveRewardRes.cs | 62 + .../XMainClient/KKSG/GetAchieveRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetActivityChestArg.cs | 62 + .../XMainClient/KKSG/GetActivityChestArg.cs.meta | 12 + .../XMainClient/KKSG/GetActivityChestRes.cs | 128 + .../XMainClient/KKSG/GetActivityChestRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetActivityInfoArg.cs | 17 + .../XMainClient/KKSG/GetActivityInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetActivityInfoRes.cs | 78 + .../XMainClient/KKSG/GetActivityInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetAllWeddingInfoArg.cs | 17 + .../XMainClient/KKSG/GetAllWeddingInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetAllWeddingInfoRes.cs | 96 + .../XMainClient/KKSG/GetAllWeddingInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetAudioListReq.cs | 74 + .../XMainClient/KKSG/GetAudioListReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetAudioListRes.cs | 74 + .../XMainClient/KKSG/GetAudioListRes.cs.meta | 12 + .../XMainClient/KKSG/GetBackFlowSpActTimeArg.cs | 17 + .../KKSG/GetBackFlowSpActTimeArg.cs.meta | 12 + .../XMainClient/KKSG/GetBackFlowSpActTimeRes.cs | 105 + .../KKSG/GetBackFlowSpActTimeRes.cs.meta | 12 + .../XMainClient/KKSG/GetClassifyDesignationReq.cs | 62 + .../KKSG/GetClassifyDesignationReq.cs.meta | 12 + .../XMainClient/KKSG/GetClassifyDesignationRes.cs | 74 + .../KKSG/GetClassifyDesignationRes.cs.meta | 12 + .../XMainClient/KKSG/GetCompeteDragonInfoArg.cs | 62 + .../KKSG/GetCompeteDragonInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetCompeteDragonInfoRes.cs | 234 + .../KKSG/GetCompeteDragonInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs | 17 + .../XMainClient/KKSG/GetCrossGvgDataArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs | 193 + .../XMainClient/KKSG/GetCrossGvgDataRes.cs.meta | 12 + .../XMainClient/KKSG/GetDailyTaskAskHelpArg.cs | 17 + .../KKSG/GetDailyTaskAskHelpArg.cs.meta | 12 + .../XMainClient/KKSG/GetDailyTaskAskHelpRes.cs | 160 + .../KKSG/GetDailyTaskAskHelpRes.cs.meta | 12 + .../XMainClient/KKSG/GetDailyTaskInfoArg.cs | 17 + .../XMainClient/KKSG/GetDailyTaskInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetDailyTaskInfoRes.cs | 332 + .../XMainClient/KKSG/GetDailyTaskInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs | 17 + .../KKSG/GetDailyTaskRefreshInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs | 246 + .../KKSG/GetDailyTaskRefreshInfoRes.cs.meta | 12 + .../KKSG/GetDailyTaskRefreshRecordArg.cs | 17 + .../KKSG/GetDailyTaskRefreshRecordArg.cs.meta | 12 + .../KKSG/GetDailyTaskRefreshRecordRes.cs | 74 + .../KKSG/GetDailyTaskRefreshRecordRes.cs.meta | 12 + .../XMainClient/KKSG/GetDailyTaskRewardArg.cs | 105 + .../XMainClient/KKSG/GetDailyTaskRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetDailyTaskRewardRes.cs | 74 + .../XMainClient/KKSG/GetDailyTaskRewardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetDanceIdsArg.cs | 29 + .../XMainClient/KKSG/GetDanceIdsArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetDanceIdsRes.cs | 40 + .../XMainClient/KKSG/GetDanceIdsRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetDesignationReq.cs | 17 + .../XMainClient/KKSG/GetDesignationReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetDesignationRes.cs | 246 + .../XMainClient/KKSG/GetDesignationRes.cs.meta | 12 + .../XMainClient/KKSG/GetDragonGuildBindInfoArg.cs | 62 + .../KKSG/GetDragonGuildBindInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetDragonGuildBindInfoRes.cs | 148 + .../KKSG/GetDragonGuildBindInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetDragonGuildShopArg.cs | 17 + .../XMainClient/KKSG/GetDragonGuildShopArg.cs.meta | 12 + .../KKSG/GetDragonGuildShopRecordArg.cs | 17 + .../KKSG/GetDragonGuildShopRecordArg.cs.meta | 12 + .../KKSG/GetDragonGuildShopRecordRes.cs | 74 + .../KKSG/GetDragonGuildShopRecordRes.cs.meta | 12 + .../XMainClient/KKSG/GetDragonGuildShopRes.cs | 74 + .../XMainClient/KKSG/GetDragonGuildShopRes.cs.meta | 12 + .../XMainClient/KKSG/GetDragonGuildTaskChestArg.cs | 105 + .../KKSG/GetDragonGuildTaskChestArg.cs.meta | 12 + .../XMainClient/KKSG/GetDragonGuildTaskChestRes.cs | 128 + .../KKSG/GetDragonGuildTaskChestRes.cs.meta | 12 + .../XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs | 17 + .../KKSG/GetDragonGuildTaskInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs | 193 + .../KKSG/GetDragonGuildTaskInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetDragonTopInfoArg.cs | 17 + .../XMainClient/KKSG/GetDragonTopInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetDragonTopInfoRes.cs | 74 + .../XMainClient/KKSG/GetDragonTopInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs | 148 + .../XMainClient/KKSG/GetEnhanceAttrArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs | 74 + .../XMainClient/KKSG/GetEnhanceAttrRes.cs.meta | 12 + .../XMainClient/KKSG/GetFirstPassRewardArg.cs | 62 + .../XMainClient/KKSG/GetFirstPassRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetFirstPassRewardRes.cs | 62 + .../XMainClient/KKSG/GetFirstPassRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetFlowerActivityRewardArg.cs | 17 + .../KKSG/GetFlowerActivityRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetFlowerActivityRewardRes.cs | 62 + .../KKSG/GetFlowerActivityRewardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetFlowerArg.cs | 17 + .../Scripts/XMainClient/KKSG/GetFlowerArg.cs.meta | 12 + .../XMainClient/KKSG/GetFlowerLeftTimeArg.cs | 17 + .../XMainClient/KKSG/GetFlowerLeftTimeArg.cs.meta | 12 + .../XMainClient/KKSG/GetFlowerLeftTimeRes.cs | 148 + .../XMainClient/KKSG/GetFlowerLeftTimeRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetFlowerRes.cs | 148 + .../Scripts/XMainClient/KKSG/GetFlowerRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs | 17 + .../XMainClient/KKSG/GetFlowerRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetFlowerRewardListArg.cs | 17 + .../KKSG/GetFlowerRewardListArg.cs.meta | 12 + .../XMainClient/KKSG/GetFlowerRewardListRes.cs | 117 + .../KKSG/GetFlowerRewardListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs | 62 + .../XMainClient/KKSG/GetFlowerRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetGoddessTrialRewardsArg.cs | 17 + .../KKSG/GetGoddessTrialRewardsArg.cs.meta | 12 + .../XMainClient/KKSG/GetGoddessTrialRewardsRes.cs | 105 + .../KKSG/GetGoddessTrialRewardsRes.cs.meta | 12 + .../XMainClient/KKSG/GetGrowthFundTimeArg.cs | 17 + .../XMainClient/KKSG/GetGrowthFundTimeArg.cs.meta | 12 + .../XMainClient/KKSG/GetGrowthFundTimeRes.cs | 105 + .../XMainClient/KKSG/GetGrowthFundTimeRes.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBindInfoReq.cs | 62 + .../XMainClient/KKSG/GetGuildBindInfoReq.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBindInfoRes.cs | 148 + .../XMainClient/KKSG/GetGuildBindInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs | 62 + .../KKSG/GetGuildBonusDetailInfoArg.cs.meta | 12 + .../KKSG/GetGuildBonusDetailInfoResult.cs | 348 ++ .../KKSG/GetGuildBonusDetailInfoResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs | 234 + .../XMainClient/KKSG/GetGuildBonusInfo.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusLeftArg.cs | 17 + .../XMainClient/KKSG/GetGuildBonusLeftArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusLeftRes.cs | 74 + .../XMainClient/KKSG/GetGuildBonusLeftRes.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusListArg.cs | 17 + .../XMainClient/KKSG/GetGuildBonusListArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusListResult.cs | 74 + .../KKSG/GetGuildBonusListResult.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusRewardArg.cs | 62 + .../KKSG/GetGuildBonusRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusRewardResult.cs | 148 + .../KKSG/GetGuildBonusRewardResult.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusSendListArg.cs | 17 + .../KKSG/GetGuildBonusSendListArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildBonusSendListRes.cs | 74 + .../KKSG/GetGuildBonusSendListRes.cs.meta | 12 + .../KKSG/GetGuildCamPartyRandItemArg.cs | 148 + .../KKSG/GetGuildCamPartyRandItemArg.cs.meta | 12 + .../KKSG/GetGuildCamPartyRandItemRes.cs | 74 + .../KKSG/GetGuildCamPartyRandItemRes.cs.meta | 12 + .../KKSG/GetGuildCampPartyExchangeInfoArg.cs | 17 + .../KKSG/GetGuildCampPartyExchangeInfoArg.cs.meta | 12 + .../KKSG/GetGuildCampPartyExchangeInfoRes.cs | 74 + .../KKSG/GetGuildCampPartyExchangeInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetGuildCampPartyRewardArg.cs | 62 + .../KKSG/GetGuildCampPartyRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildCampPartyRewardRes.cs | 74 + .../KKSG/GetGuildCampPartyRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetGuildCheckinBoxArg.cs | 62 + .../XMainClient/KKSG/GetGuildCheckinBoxArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildCheckinBoxRes.cs | 62 + .../XMainClient/KKSG/GetGuildCheckinBoxRes.cs.meta | 12 + .../XMainClient/KKSG/GetGuildCheckinRecordsArg.cs | 17 + .../KKSG/GetGuildCheckinRecordsArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildCheckinRecordsRes.cs | 107 + .../KKSG/GetGuildCheckinRecordsRes.cs.meta | 12 + .../XMainClient/KKSG/GetGuildDonateInfoArg.cs | 17 + .../XMainClient/KKSG/GetGuildDonateInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildDonateInfoRes.cs | 128 + .../XMainClient/KKSG/GetGuildDonateInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetGuildIntegralInfoArg.cs | 17 + .../KKSG/GetGuildIntegralInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetGuildIntegralInfoRes.cs | 191 + .../KKSG/GetGuildIntegralInfoRes.cs.meta | 12 + .../KKSG/GetGuildPartyReceiveInfoArg.cs | 17 + .../KKSG/GetGuildPartyReceiveInfoArg.cs.meta | 12 + .../KKSG/GetGuildPartyReceiveInfoRes.cs | 74 + .../KKSG/GetGuildPartyReceiveInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetGuildQADataReq.cs | 17 + .../XMainClient/KKSG/GetGuildQADataReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetGuildQADataRes.cs | 148 + .../XMainClient/KKSG/GetGuildQADataRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetGuildWageReward.cs | 62 + .../XMainClient/KKSG/GetGuildWageReward.cs.meta | 12 + .../XMainClient/KKSG/GetGuildWageRewardArg.cs | 17 + .../XMainClient/KKSG/GetGuildWageRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetHeroBattleGameRecordArg.cs | 17 + .../KKSG/GetHeroBattleGameRecordArg.cs.meta | 12 + .../XMainClient/KKSG/GetHeroBattleGameRecordRes.cs | 74 + .../KKSG/GetHeroBattleGameRecordRes.cs.meta | 12 + .../XMainClient/KKSG/GetHeroBattleInfoArg.cs | 17 + .../XMainClient/KKSG/GetHeroBattleInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetHeroBattleInfoRes.cs | 408 ++ .../XMainClient/KKSG/GetHeroBattleInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs | 17 + .../KKSG/GetHeroBattleWeekRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs | 148 + .../KKSG/GetHeroBattleWeekRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetHolidayStageInfoArg.cs | 17 + .../KKSG/GetHolidayStageInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetHolidayStageInfoRes.cs | 191 + .../KKSG/GetHolidayStageInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetJadeSealAllInfoArg.cs | 62 + .../XMainClient/KKSG/GetJadeSealAllInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetJadeSealAllInfoRes.cs | 74 + .../XMainClient/KKSG/GetJadeSealAllInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetLeagueBattleInfoArg.cs | 17 + .../KKSG/GetLeagueBattleInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetLeagueBattleInfoRes.cs | 676 ++ .../KKSG/GetLeagueBattleInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetLeagueBattleRecordArg.cs | 17 + .../KKSG/GetLeagueBattleRecordArg.cs.meta | 12 + .../XMainClient/KKSG/GetLeagueBattleRecordRes.cs | 289 + .../KKSG/GetLeagueBattleRecordRes.cs.meta | 12 + .../XMainClient/KKSG/GetLeagueEleInfoArg.cs | 17 + .../XMainClient/KKSG/GetLeagueEleInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetLeagueEleInfoRes.cs | 90 + .../XMainClient/KKSG/GetLeagueEleInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetLeagueTeamInfoArg.cs | 62 + .../XMainClient/KKSG/GetLeagueTeamInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetLeagueTeamInfoRes.cs | 78 + .../XMainClient/KKSG/GetLeagueTeamInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetLevelSealInfoArg.cs | 17 + .../XMainClient/KKSG/GetLevelSealInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetLevelSealInfoRes.cs | 78 + .../XMainClient/KKSG/GetLevelSealInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetLevelSealSealGiftArg.cs | 62 + .../KKSG/GetLevelSealSealGiftArg.cs.meta | 12 + .../XMainClient/KKSG/GetLevelSealSelfGiftRes.cs | 62 + .../KKSG/GetLevelSealSelfGiftRes.cs.meta | 12 + .../XMainClient/KKSG/GetListSubscribeArg.cs | 62 + .../XMainClient/KKSG/GetListSubscribeArg.cs.meta | 12 + .../XMainClient/KKSG/GetListSubscribeRes.cs | 117 + .../XMainClient/KKSG/GetListSubscribeRes.cs.meta | 12 + .../XMainClient/KKSG/GetLuckyActivityInfoArg.cs | 17 + .../KKSG/GetLuckyActivityInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetLuckyActivityInfoRes.cs | 203 + .../KKSG/GetLuckyActivityInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetMarriageLivenessArg.cs | 17 + .../KKSG/GetMarriageLivenessArg.cs.meta | 12 + .../XMainClient/KKSG/GetMarriageLivenessRes.cs | 160 + .../KKSG/GetMarriageLivenessRes.cs.meta | 12 + .../XMainClient/KKSG/GetMarriagePrivilegeArg.cs | 17 + .../KKSG/GetMarriagePrivilegeArg.cs.meta | 12 + .../XMainClient/KKSG/GetMarriagePrivilegeRes.cs | 62 + .../KKSG/GetMarriagePrivilegeRes.cs.meta | 12 + .../XMainClient/KKSG/GetMarriageRelationArg.cs | 17 + .../KKSG/GetMarriageRelationArg.cs.meta | 12 + .../XMainClient/KKSG/GetMarriageRelationRes.cs | 305 + .../KKSG/GetMarriageRelationRes.cs.meta | 12 + .../KKSG/GetMobaBattleBriefRecordArg.cs | 17 + .../KKSG/GetMobaBattleBriefRecordArg.cs.meta | 12 + .../KKSG/GetMobaBattleBriefRecordRes.cs | 117 + .../KKSG/GetMobaBattleBriefRecordRes.cs.meta | 12 + .../XMainClient/KKSG/GetMobaBattleGameRecordArg.cs | 62 + .../KKSG/GetMobaBattleGameRecordArg.cs.meta | 12 + .../XMainClient/KKSG/GetMobaBattleGameRecordRes.cs | 34 + .../KKSG/GetMobaBattleGameRecordRes.cs.meta | 12 + .../XMainClient/KKSG/GetMobaBattleInfoArg.cs | 17 + .../XMainClient/KKSG/GetMobaBattleInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetMobaBattleInfoRes.cs | 148 + .../XMainClient/KKSG/GetMobaBattleInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs | 17 + .../KKSG/GetMobaBattleWeekRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs | 148 + .../KKSG/GetMobaBattleWeekRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetMyApplyMasterInfoArg.cs | 62 + .../KKSG/GetMyApplyMasterInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetMyApplyMasterInfoRes.cs | 117 + .../KKSG/GetMyApplyMasterInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetMyApplyStudentInfoArg.cs | 62 + .../KKSG/GetMyApplyStudentInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetMyApplyStudentInfoRes.cs | 117 + .../KKSG/GetMyApplyStudentInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs | 17 + .../XMainClient/KKSG/GetMyMentorInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs | 262 + .../XMainClient/KKSG/GetMyMentorInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs | 17 + .../XMainClient/KKSG/GetMyRiftInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs | 257 + .../XMainClient/KKSG/GetMyRiftInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetMyWatchRecordArg.cs | 17 + .../XMainClient/KKSG/GetMyWatchRecordArg.cs.meta | 12 + .../XMainClient/KKSG/GetMyWatchRecordRes.cs | 235 + .../XMainClient/KKSG/GetMyWatchRecordRes.cs.meta | 12 + .../XMainClient/KKSG/GetNewZoneBenefitArg.cs | 17 + .../XMainClient/KKSG/GetNewZoneBenefitArg.cs.meta | 12 + .../XMainClient/KKSG/GetNewZoneBenefitRes.cs | 246 + .../XMainClient/KKSG/GetNewZoneBenefitRes.cs.meta | 12 + .../XMainClient/KKSG/GetNextDayRewardArg.cs | 17 + .../XMainClient/KKSG/GetNextDayRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetNextDayRewardRes.cs | 62 + .../XMainClient/KKSG/GetNextDayRewardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs | 62 + .../XMainClient/KKSG/GetOnlineRewardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs | 62 + .../XMainClient/KKSG/GetOnlineRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetOtherGuildBriefArg.cs | 62 + .../XMainClient/KKSG/GetOtherGuildBriefArg.cs.meta | 12 + .../XMainClient/KKSG/GetOtherGuildBriefRes.cs | 406 ++ .../XMainClient/KKSG/GetOtherGuildBriefRes.cs.meta | 12 + .../XMainClient/KKSG/GetOtherMentorStatusArg.cs | 62 + .../KKSG/GetOtherMentorStatusArg.cs.meta | 12 + .../XMainClient/KKSG/GetOtherMentorStatusRes.cs | 105 + .../KKSG/GetOtherMentorStatusRes.cs.meta | 12 + .../XMainClient/KKSG/GetPartnerDetailInfoArg.cs | 17 + .../KKSG/GetPartnerDetailInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetPartnerDetailInfoRes.cs | 289 + .../KKSG/GetPartnerDetailInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs | 17 + .../XMainClient/KKSG/GetPartnerInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs | 289 + .../XMainClient/KKSG/GetPartnerInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetPartnerLivenessArg.cs | 17 + .../XMainClient/KKSG/GetPartnerLivenessArg.cs.meta | 12 + .../XMainClient/KKSG/GetPartnerLivenessRes.cs | 160 + .../XMainClient/KKSG/GetPartnerLivenessRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetPartnerShopArg.cs | 17 + .../XMainClient/KKSG/GetPartnerShopArg.cs.meta | 12 + .../XMainClient/KKSG/GetPartnerShopRecordArg.cs | 17 + .../KKSG/GetPartnerShopRecordArg.cs.meta | 12 + .../XMainClient/KKSG/GetPartnerShopRecordRes.cs | 74 + .../KKSG/GetPartnerShopRecordRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetPartnerShopRes.cs | 74 + .../XMainClient/KKSG/GetPartnerShopRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs | 17 + .../XMainClient/KKSG/GetPayAllInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs | 78 + .../XMainClient/KKSG/GetPayAllInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetPayRewardArg.cs | 17 + .../XMainClient/KKSG/GetPayRewardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetPayRewardRes.cs | 105 + .../XMainClient/KKSG/GetPayRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetPlatShareAwardArg.cs | 62 + .../XMainClient/KKSG/GetPlatShareAwardArg.cs.meta | 12 + .../XMainClient/KKSG/GetPlatShareAwardRes.cs | 62 + .../XMainClient/KKSG/GetPlatShareAwardRes.cs.meta | 12 + .../XMainClient/KKSG/GetPlatformShareChestArg.cs | 148 + .../KKSG/GetPlatformShareChestArg.cs.meta | 12 + .../XMainClient/KKSG/GetPlatformShareChestRes.cs | 191 + .../KKSG/GetPlatformShareChestRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetQADataReq.cs | 17 + .../Scripts/XMainClient/KKSG/GetQADataReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetQADataRes.cs | 191 + .../Scripts/XMainClient/KKSG/GetQADataRes.cs.meta | 12 + .../XMainClient/KKSG/GetRiftGuildRankArg.cs | 17 + .../XMainClient/KKSG/GetRiftGuildRankArg.cs.meta | 12 + .../XMainClient/KKSG/GetRiftGuildRankRes.cs | 128 + .../XMainClient/KKSG/GetRiftGuildRankRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs | 148 + .../XMainClient/KKSG/GetRiskMapInfosArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs | 78 + .../XMainClient/KKSG/GetRiskMapInfosRes.cs.meta | 12 + .../XMainClient/KKSG/GetSkyCraftEliInfoArg.cs | 17 + .../XMainClient/KKSG/GetSkyCraftEliInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetSkyCraftEliInfoRes.cs | 90 + .../XMainClient/KKSG/GetSkyCraftEliInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs | 17 + .../XMainClient/KKSG/GetSkyCraftInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs | 332 + .../XMainClient/KKSG/GetSkyCraftInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetSkyCraftRecordArg.cs | 17 + .../XMainClient/KKSG/GetSkyCraftRecordArg.cs.meta | 12 + .../XMainClient/KKSG/GetSkyCraftRecordRes.cs | 289 + .../XMainClient/KKSG/GetSkyCraftRecordRes.cs.meta | 12 + .../XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs | 62 + .../KKSG/GetSkyCraftTeamInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs | 78 + .../KKSG/GetSkyCraftTeamInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetSpActivityBigPrizeArg.cs | 62 + .../KKSG/GetSpActivityBigPrizeArg.cs.meta | 12 + .../XMainClient/KKSG/GetSpActivityBigPrizeRes.cs | 62 + .../KKSG/GetSpActivityBigPrizeRes.cs.meta | 12 + .../XMainClient/KKSG/GetSpActivityRewardArg.cs | 105 + .../KKSG/GetSpActivityRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetSpActivityRewardRes.cs | 62 + .../KKSG/GetSpActivityRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetSweepTowerRewardArg.cs | 17 + .../KKSG/GetSweepTowerRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetSweepTowerRewardRes.cs | 62 + .../KKSG/GetSweepTowerRewardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetSystemRewardArg.cs | 62 + .../XMainClient/KKSG/GetSystemRewardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GetSystemRewardRes.cs | 62 + .../XMainClient/KKSG/GetSystemRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetTowerActivityTopArg.cs | 17 + .../KKSG/GetTowerActivityTopArg.cs.meta | 12 + .../XMainClient/KKSG/GetTowerActivityTopRes.cs | 117 + .../KKSG/GetTowerActivityTopRes.cs.meta | 12 + .../XMainClient/KKSG/GetTowerFirstPassRewardArg.cs | 62 + .../KKSG/GetTowerFirstPassRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetTowerFirstPassRewardRes.cs | 62 + .../KKSG/GetTowerFirstPassRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetUnitAppearanceArg.cs | 191 + .../XMainClient/KKSG/GetUnitAppearanceArg.cs.meta | 12 + .../XMainClient/KKSG/GetUnitAppearanceRes.cs | 78 + .../XMainClient/KKSG/GetUnitAppearanceRes.cs.meta | 12 + .../XMainClient/KKSG/GetWatchInfoByIDArg.cs | 62 + .../XMainClient/KKSG/GetWatchInfoByIDArg.cs.meta | 12 + .../XMainClient/KKSG/GetWatchInfoByIDRes.cs | 117 + .../XMainClient/KKSG/GetWatchInfoByIDRes.cs.meta | 12 + .../XMainClient/KKSG/GetWeddingInviteInfoArg.cs | 17 + .../KKSG/GetWeddingInviteInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetWeddingInviteInfoRes.cs | 204 + .../KKSG/GetWeddingInviteInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetWeeklyTaskInfoArg.cs | 17 + .../XMainClient/KKSG/GetWeeklyTaskInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GetWeeklyTaskInfoRes.cs | 311 + .../XMainClient/KKSG/GetWeeklyTaskInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GetWeeklyTaskRewardArg.cs | 105 + .../KKSG/GetWeeklyTaskRewardArg.cs.meta | 12 + .../XMainClient/KKSG/GetWeeklyTaskRewardRes.cs | 105 + .../KKSG/GetWeeklyTaskRewardRes.cs.meta | 12 + .../XMainClient/KKSG/GetWorldBossStateArg.cs | 62 + .../XMainClient/KKSG/GetWorldBossStateArg.cs.meta | 12 + .../XMainClient/KKSG/GetWorldBossStateRes.cs | 148 + .../XMainClient/KKSG/GetWorldBossStateRes.cs.meta | 12 + .../XMainClient/KKSG/GetWorldBossTimeLeftArg.cs | 17 + .../KKSG/GetWorldBossTimeLeftArg.cs.meta | 12 + .../XMainClient/KKSG/GetWorldBossTimeLeftRes.cs | 105 + .../KKSG/GetWorldBossTimeLeftRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GiftIBBackInfo.cs | 105 + .../XMainClient/KKSG/GiftIBBackInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs | 207 + .../Scripts/XMainClient/KKSG/GiftIbItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GiftIbItemState.cs | 14 + .../XMainClient/KKSG/GiftIbItemState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs | 62 + .../XMainClient/KKSG/GiftIbReqGoodsArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs | 62 + .../XMainClient/KKSG/GiftIbReqGoodsRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GiftIbShipStatus.cs | 16 + .../XMainClient/KKSG/GiftIbShipStatus.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs | 17 + .../XMainClient/KKSG/GiveUpQuestionNtf.cs.meta | 12 + .../XMainClient/KKSG/GlobalRiftFloorInfo.cs | 117 + .../XMainClient/KKSG/GlobalRiftFloorInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfAllFightEnd.cs | 94 + .../XMainClient/KKSG/GmfAllFightEnd.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs | 105 + .../XMainClient/KKSG/GmfBatlleStatePara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfBattleState.cs | 18 + .../XMainClient/KKSG/GmfBattleState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GmfCombat.cs | 148 + .../Scripts/XMainClient/KKSG/GmfCombat.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfGuildBrief.cs | 191 + .../Scripts/XMainClient/KKSG/GmfGuildBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfGuildCombat.cs | 106 + .../XMainClient/KKSG/GmfGuildCombat.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs | 50 + .../XMainClient/KKSG/GmfGuildCombatPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfHalfRoles.cs | 90 + .../Scripts/XMainClient/KKSG/GmfHalfRoles.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs | 62 + .../XMainClient/KKSG/GmfJoinBattleArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs | 62 + .../XMainClient/KKSG/GmfJoinBattleRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs | 148 + .../Scripts/XMainClient/KKSG/GmfKickRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs | 126 + .../XMainClient/KKSG/GmfOneBattleEnd.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs | 105 + .../Scripts/XMainClient/KKSG/GmfReadyArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs | 105 + .../Scripts/XMainClient/KKSG/GmfReadyRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs | 363 ++ .../Scripts/XMainClient/KKSG/GmfRole.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfRoleBrief.cs | 148 + .../Scripts/XMainClient/KKSG/GmfRoleBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfRoleCombat.cs | 50 + .../Scripts/XMainClient/KKSG/GmfRoleCombat.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfRoleDatas.cs | 50 + .../Scripts/XMainClient/KKSG/GmfRoleDatas.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfWaitFightArg.cs | 62 + .../XMainClient/KKSG/GmfWaitFightArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs | 62 + .../XMainClient/KKSG/GmfWaitOtherArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GoBackReadyScene.cs | 17 + .../XMainClient/KKSG/GoBackReadyScene.cs.meta | 12 + .../XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs | 62 + .../KKSG/GoalAwardsGetAwards_C2M.cs.meta | 12 + .../XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs | 105 + .../KKSG/GoalAwardsGetAwards_M2C.cs.meta | 12 + .../XMainClient/KKSG/GoalAwardsGetList_C2M.cs | 62 + .../XMainClient/KKSG/GoalAwardsGetList_C2M.cs.meta | 12 + .../XMainClient/KKSG/GoalAwardsGetList_M2C.cs | 74 + .../XMainClient/KKSG/GoalAwardsGetList_M2C.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GoalAwardsInfo.cs | 203 + .../XMainClient/KKSG/GoalAwardsInfo.cs.meta | 12 + .../XMainClient/KKSG/GoalAwardsRedPointNtf.cs | 29 + .../XMainClient/KKSG/GoalAwardsRedPointNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GoalAwardsValue.cs | 105 + .../XMainClient/KKSG/GoalAwardsValue.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GoldClickArg.cs | 105 + .../Scripts/XMainClient/KKSG/GoldClickArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GoldClickRes.cs | 289 + .../Scripts/XMainClient/KKSG/GoldClickRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GprAllFightEnd.cs | 137 + .../XMainClient/KKSG/GprAllFightEnd.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GprOneBattleEnd.cs | 73 + .../XMainClient/KKSG/GprOneBattleEnd.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs | 17 + .../XMainClient/KKSG/GroupChatApplyNtf.cs.meta | 12 + .../XMainClient/KKSG/GroupChatChangeNameC2S.cs | 105 + .../KKSG/GroupChatChangeNameC2S.cs.meta | 12 + .../XMainClient/KKSG/GroupChatChangeNameS2C.cs | 62 + .../KKSG/GroupChatChangeNameS2C.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatClearC2S.cs | 17 + .../XMainClient/KKSG/GroupChatClearC2S.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatClearS2C.cs | 62 + .../XMainClient/KKSG/GroupChatClearS2C.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs | 105 + .../XMainClient/KKSG/GroupChatCreateC2S.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs | 105 + .../XMainClient/KKSG/GroupChatCreateS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatDismissPtc.cs | 105 + .../XMainClient/KKSG/GroupChatDismissPtc.cs.meta | 12 + .../XMainClient/KKSG/GroupChatFindRoleInfo.cs | 535 ++ .../XMainClient/KKSG/GroupChatFindRoleInfo.cs.meta | 12 + .../KKSG/GroupChatFindRoleInfoListC2S.cs | 62 + .../KKSG/GroupChatFindRoleInfoListC2S.cs.meta | 12 + .../KKSG/GroupChatFindRoleInfoListS2C.cs | 74 + .../KKSG/GroupChatFindRoleInfoListS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatFindTeamInfo.cs | 492 ++ .../XMainClient/KKSG/GroupChatFindTeamInfo.cs.meta | 12 + .../KKSG/GroupChatFindTeamInfoListC2S.cs | 62 + .../KKSG/GroupChatFindTeamInfoListC2S.cs.meta | 12 + .../KKSG/GroupChatFindTeamInfoListS2C.cs | 74 + .../KKSG/GroupChatFindTeamInfoListS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs | 62 + .../KKSG/GroupChatGetGroupInfoC2S.cs.meta | 12 + .../XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs | 74 + .../KKSG/GroupChatGetGroupInfoS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatIssueCountNtf.cs | 105 + .../KKSG/GroupChatIssueCountNtf.cs.meta | 12 + .../XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs | 148 + .../KKSG/GroupChatLeaderAddRoleC2S.cs.meta | 12 + .../XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs | 62 + .../KKSG/GroupChatLeaderAddRoleS2C.cs.meta | 12 + .../KKSG/GroupChatLeaderIssueInfoC2S.cs | 34 + .../KKSG/GroupChatLeaderIssueInfoC2S.cs.meta | 12 + .../KKSG/GroupChatLeaderIssueInfoS2C.cs | 62 + .../KKSG/GroupChatLeaderIssueInfoS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatLeaderReviewC2S.cs | 191 + .../KKSG/GroupChatLeaderReviewC2S.cs.meta | 12 + .../KKSG/GroupChatLeaderReviewListC2S.cs | 17 + .../KKSG/GroupChatLeaderReviewListC2S.cs.meta | 12 + .../KKSG/GroupChatLeaderReviewListS2C.cs | 74 + .../KKSG/GroupChatLeaderReviewListS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatLeaderReviewS2C.cs | 62 + .../KKSG/GroupChatLeaderReviewS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatManagerC2S.cs | 85 + .../XMainClient/KKSG/GroupChatManagerC2S.cs.meta | 12 + .../XMainClient/KKSG/GroupChatManagerPtc.cs | 85 + .../XMainClient/KKSG/GroupChatManagerPtc.cs.meta | 12 + .../XMainClient/KKSG/GroupChatManagerS2C.cs | 62 + .../XMainClient/KKSG/GroupChatManagerS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatPlayerApplyC2S.cs | 105 + .../KKSG/GroupChatPlayerApplyC2S.cs.meta | 12 + .../XMainClient/KKSG/GroupChatPlayerApplyS2C.cs | 62 + .../KKSG/GroupChatPlayerApplyS2C.cs.meta | 12 + .../XMainClient/KKSG/GroupChatPlayerInfo.cs | 406 ++ .../XMainClient/KKSG/GroupChatPlayerInfo.cs.meta | 12 + .../KKSG/GroupChatPlayerIssueInfoC2S.cs | 34 + .../KKSG/GroupChatPlayerIssueInfoC2S.cs.meta | 12 + .../KKSG/GroupChatPlayerIssueInfoS2C.cs | 62 + .../KKSG/GroupChatPlayerIssueInfoS2C.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs | 62 + .../XMainClient/KKSG/GroupChatQuitC2S.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs | 105 + .../XMainClient/KKSG/GroupChatQuitPtc.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs | 62 + .../XMainClient/KKSG/GroupChatQuitS2C.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs | 277 + .../XMainClient/KKSG/GroupChatTeamInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs | 105 + .../XMainClient/KKSG/GrowthFundAwardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs | 85 + .../XMainClient/KKSG/GrowthFundAwardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildActivityRole.cs | 148 + .../XMainClient/KKSG/GuildActivityRole.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildApprovalArg.cs | 105 + .../XMainClient/KKSG/GuildApprovalArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildApprovalRes.cs | 62 + .../XMainClient/KKSG/GuildApprovalRes.cs.meta | 12 + .../XMainClient/KKSG/GuildArenaGroupData.cs | 320 + .../XMainClient/KKSG/GuildArenaGroupData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildArenaHistory.cs | 105 + .../XMainClient/KKSG/GuildArenaHistory.cs.meta | 12 + .../XMainClient/KKSG/GuildArenaSimpleDeployArg.cs | 17 + .../KKSG/GuildArenaSimpleDeployArg.cs.meta | 12 + .../XMainClient/KKSG/GuildArenaSimpleDeployRes.cs | 74 + .../KKSG/GuildArenaSimpleDeployRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildArenaState.cs | 22 + .../XMainClient/KKSG/GuildArenaState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildArenaType.cs | 26 + .../XMainClient/KKSG/GuildArenaType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildAuctItemTime.cs | 62 + .../XMainClient/KKSG/GuildAuctItemTime.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildAuctReqArg.cs | 234 + .../XMainClient/KKSG/GuildAuctReqArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildAuctReqRes.cs | 171 + .../XMainClient/KKSG/GuildAuctReqRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildAuctReqType.cs | 22 + .../XMainClient/KKSG/GuildAuctReqType.cs.meta | 12 + .../XMainClient/KKSG/GuildAuctResultType.cs | 16 + .../XMainClient/KKSG/GuildAuctResultType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs | 203 + .../XMainClient/KKSG/GuildBestCardsNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBindGroupReq.cs | 62 + .../XMainClient/KKSG/GuildBindGroupReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBindGroupRes.cs | 105 + .../XMainClient/KKSG/GuildBindGroupRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBindStatus.cs | 20 + .../XMainClient/KKSG/GuildBindStatus.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBonusAppear.cs | 535 ++ .../XMainClient/KKSG/GuildBonusAppear.cs.meta | 12 + .../XMainClient/KKSG/GuildBonusBriefInfo.cs | 105 + .../XMainClient/KKSG/GuildBonusBriefInfo.cs.meta | 12 + .../XMainClient/KKSG/GuildBonusGetAllData.cs | 62 + .../XMainClient/KKSG/GuildBonusGetAllData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBonusType.cs | 66 + .../XMainClient/KKSG/GuildBonusType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBossTimeOut.cs | 17 + .../XMainClient/KKSG/GuildBossTimeOut.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBriefArg.cs | 62 + .../Scripts/XMainClient/KKSG/GuildBriefArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBriefRes.cs | 879 +++ .../Scripts/XMainClient/KKSG/GuildBriefRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GuildBuff.cs | 105 + .../Scripts/XMainClient/KKSG/GuildBuff.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBuffCDParam.cs | 62 + .../XMainClient/KKSG/GuildBuffCDParam.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBuffItem.cs | 148 + .../Scripts/XMainClient/KKSG/GuildBuffItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildBuffRecord.cs | 105 + .../XMainClient/KKSG/GuildBuffRecord.cs.meta | 12 + .../XMainClient/KKSG/GuildBuffSimpleAllInfo.cs | 29 + .../KKSG/GuildBuffSimpleAllInfo.cs.meta | 12 + .../XMainClient/KKSG/GuildBuffSimpleInfo.cs | 74 + .../XMainClient/KKSG/GuildBuffSimpleInfo.cs.meta | 12 + .../XMainClient/KKSG/GuildBuffSimpleItem.cs | 85 + .../XMainClient/KKSG/GuildBuffSimpleItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCampChatInfo.cs | 148 + .../XMainClient/KKSG/GuildCampChatInfo.cs.meta | 12 + .../KKSG/GuildCampExchangeOperateArg.cs | 277 + .../KKSG/GuildCampExchangeOperateArg.cs.meta | 12 + .../KKSG/GuildCampExchangeOperateRes.cs | 62 + .../KKSG/GuildCampExchangeOperateRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCampInfoArg.cs | 17 + .../XMainClient/KKSG/GuildCampInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCampInfoRes.cs | 203 + .../XMainClient/KKSG/GuildCampInfoRes.cs.meta | 12 + .../XMainClient/KKSG/GuildCampItemOperate.cs | 22 + .../XMainClient/KKSG/GuildCampItemOperate.cs.meta | 12 + .../KKSG/GuildCampPartyReqExchangeReq.cs | 62 + .../KKSG/GuildCampPartyReqExchangeReq.cs.meta | 12 + .../KKSG/GuildCampPartyReqExchangeRes.cs | 62 + .../KKSG/GuildCampPartyReqExchangeRes.cs.meta | 12 + .../KKSG/GuildCampPartyTradeNotifyArg.cs | 696 +++ .../KKSG/GuildCampPartyTradeNotifyArg.cs.meta | 12 + .../XMainClient/KKSG/GuildCampPartyTradeType.cs | 14 + .../KKSG/GuildCampPartyTradeType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCampRankInfo.cs | 117 + .../XMainClient/KKSG/GuildCampRankInfo.cs.meta | 12 + .../XMainClient/KKSG/GuildCampSpriteInfo.cs | 148 + .../XMainClient/KKSG/GuildCampSpriteInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs | 601 ++ .../XMainClient/KKSG/GuildCardMatchNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCardMatchReq.cs | 105 + .../XMainClient/KKSG/GuildCardMatchReq.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs | 18 + .../Scripts/XMainClient/KKSG/GuildCardOp.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCardRankNtf.cs | 85 + .../XMainClient/KKSG/GuildCardRankNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCardRankReq.cs | 62 + .../XMainClient/KKSG/GuildCardRankReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCastFeats.cs | 105 + .../XMainClient/KKSG/GuildCastFeats.cs.meta | 12 + .../XMainClient/KKSG/GuildCheckInBonusInfoArg.cs | 17 + .../KKSG/GuildCheckInBonusInfoArg.cs.meta | 12 + .../XMainClient/KKSG/GuildCheckInBonusInfoRes.cs | 332 + .../KKSG/GuildCheckInBonusInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCheckinArg.cs | 62 + .../XMainClient/KKSG/GuildCheckinArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs | 105 + .../XMainClient/KKSG/GuildCheckinBoxNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildCheckinRes.cs | 62 + .../XMainClient/KKSG/GuildCheckinRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildDarenaUnit.cs | 105 + .../XMainClient/KKSG/GuildDarenaUnit.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildFatigueArg.cs | 105 + .../XMainClient/KKSG/GuildFatigueArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildFatigueRes.cs | 148 + .../XMainClient/KKSG/GuildFatigueRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs | 17 + .../XMainClient/KKSG/GuildGoblinInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs | 203 + .../XMainClient/KKSG/GuildGoblinInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildGoblinResult.cs | 105 + .../XMainClient/KKSG/GuildGoblinResult.cs.meta | 12 + .../XMainClient/KKSG/GuildGoblinRoleKillInfo.cs | 234 + .../KKSG/GuildGoblinRoleKillInfo.cs.meta | 12 + .../XMainClient/KKSG/GuildGoblinSceneInfo.cs | 105 + .../XMainClient/KKSG/GuildGoblinSceneInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildHallBuffData.cs | 234 + .../XMainClient/KKSG/GuildHallBuffData.cs.meta | 12 + .../XMainClient/KKSG/GuildHallGetBuffList_C2M.cs | 17 + .../KKSG/GuildHallGetBuffList_C2M.cs.meta | 12 + .../XMainClient/KKSG/GuildHallGetBuffList_M2C.cs | 117 + .../KKSG/GuildHallGetBuffList_M2C.cs.meta | 12 + .../XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs | 62 + .../KKSG/GuildHallUpdateBuff_C2M.cs.meta | 12 + .../XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs | 78 + .../KKSG/GuildHallUpdateBuff_M2C.cs.meta | 12 + .../XMainClient/KKSG/GuildHallUpdatePoint.cs | 234 + .../XMainClient/KKSG/GuildHallUpdatePoint.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildHistoryArg.cs | 17 + .../XMainClient/KKSG/GuildHistoryArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildHistoryRes.cs | 74 + .../XMainClient/KKSG/GuildHistoryRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GuildInfo.cs | 664 ++ .../Scripts/XMainClient/KKSG/GuildInfo.cs.meta | 12 + .../XMainClient/KKSG/GuildJoinBindGroupReq.cs | 62 + .../XMainClient/KKSG/GuildJoinBindGroupReq.cs.meta | 12 + .../XMainClient/KKSG/GuildJoinBindGroupRes.cs | 62 + .../XMainClient/KKSG/GuildJoinBindGroupRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildLadderRank.cs | 191 + .../XMainClient/KKSG/GuildLadderRank.cs.meta | 12 + .../XMainClient/KKSG/GuildLadderRoleRank.cs | 191 + .../XMainClient/KKSG/GuildLadderRoleRank.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildLogEnum.cs | 30 + .../Scripts/XMainClient/KKSG/GuildLogEnum.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildLogType.cs | 16 + .../Scripts/XMainClient/KKSG/GuildLogType.cs.meta | 12 + .../XMainClient/KKSG/GuildMatchFightState.cs | 26 + .../XMainClient/KKSG/GuildMatchFightState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildMemberArg.cs | 62 + .../XMainClient/KKSG/GuildMemberArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs | 121 + .../XMainClient/KKSG/GuildMemberAskInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildMemberAskItem.cs | 578 ++ .../XMainClient/KKSG/GuildMemberAskItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildMemberData.cs | 750 +++ .../XMainClient/KKSG/GuildMemberData.cs.meta | 12 + .../XMainClient/KKSG/GuildMemberDonateRankItem.cs | 320 + .../KKSG/GuildMemberDonateRankItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildMemberFlag.cs | 18 + .../XMainClient/KKSG/GuildMemberFlag.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildMemberInfo.cs | 633 ++ .../XMainClient/KKSG/GuildMemberInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildMemberRes.cs | 171 + .../XMainClient/KKSG/GuildMemberRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GuildOpType.cs | 14 + .../Scripts/XMainClient/KKSG/GuildOpType.cs.meta | 12 + .../XMainClient/KKSG/GuildPartySummonSpiritArg.cs | 17 + .../KKSG/GuildPartySummonSpiritArg.cs.meta | 12 + .../XMainClient/KKSG/GuildPartySummonSpiritRes.cs | 62 + .../KKSG/GuildPartySummonSpiritRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GuildQAType.cs | 22 + .../Scripts/XMainClient/KKSG/GuildQAType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GuildRecord.cs | 714 +++ .../Scripts/XMainClient/KKSG/GuildRecord.cs.meta | 12 + .../KKSG/GuildSchoolHallGetRankList_C2M.cs | 17 + .../KKSG/GuildSchoolHallGetRankList_C2M.cs.meta | 12 + .../KKSG/GuildSchoolHallGetRankList_M2C.cs | 246 + .../KKSG/GuildSchoolHallGetRankList_M2C.cs.meta | 12 + .../XMainClient/KKSG/GuildSchoolHallRankData.cs | 277 + .../KKSG/GuildSchoolHallRankData.cs.meta | 12 + .../XMainClient/KKSG/GuildSettingChanged.cs | 191 + .../XMainClient/KKSG/GuildSettingChanged.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/GuildSkill.cs | 105 + .../Scripts/XMainClient/KKSG/GuildSkill.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildSkillAllData.cs | 74 + .../XMainClient/KKSG/GuildSkillAllData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildSkillData.cs | 105 + .../XMainClient/KKSG/GuildSkillData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildSortType.cs | 20 + .../Scripts/XMainClient/KKSG/GuildSortType.cs.meta | 12 + .../XMainClient/KKSG/GuildTerrAllianceInfo.cs | 234 + .../XMainClient/KKSG/GuildTerrAllianceInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs | 160 + .../XMainClient/KKSG/GuildTerrChallInfo.cs.meta | 12 + .../XMainClient/KKSG/GuildUnBindGroupReq.cs | 62 + .../XMainClient/KKSG/GuildUnBindGroupReq.cs.meta | 12 + .../XMainClient/KKSG/GuildUnBindGroupRes.cs | 62 + .../XMainClient/KKSG/GuildUnBindGroupRes.cs.meta | 12 + .../KKSG/GuildZiCaiDonateHistoryData.cs | 234 + .../KKSG/GuildZiCaiDonateHistoryData.cs.meta | 12 + .../KKSG/GuildZiCaiDonateHistory_C2M.cs | 17 + .../KKSG/GuildZiCaiDonateHistory_C2M.cs.meta | 12 + .../KKSG/GuildZiCaiDonateHistory_M2C.cs | 74 + .../KKSG/GuildZiCaiDonateHistory_M2C.cs.meta | 12 + .../XMainClient/KKSG/GuildZiCaiDonate_C2M.cs | 62 + .../XMainClient/KKSG/GuildZiCaiDonate_C2M.cs.meta | 12 + .../XMainClient/KKSG/GuildZiCaiDonate_M2C.cs | 62 + .../XMainClient/KKSG/GuildZiCaiDonate_M2C.cs.meta | 12 + .../XMainClient/KKSG/GuildZiCaiGetList_C2M.cs | 17 + .../XMainClient/KKSG/GuildZiCaiGetList_C2M.cs.meta | 12 + .../XMainClient/KKSG/GuildZiCaiGetList_M2C.cs | 74 + .../XMainClient/KKSG/GuildZiCaiGetList_M2C.cs.meta | 12 + .../Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs | 148 + .../XMainClient/KKSG/GuildZiCaiItemData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HallIconPara.cs | 121 + .../Scripts/XMainClient/KKSG/HallIconPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HallIconState.cs | 14 + .../Scripts/XMainClient/KKSG/HallIconState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HandleMicphoneArg.cs | 62 + .../XMainClient/KKSG/HandleMicphoneArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HellDropInfo.cs | 277 + .../Scripts/XMainClient/KKSG/HellDropInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HellDropInfoAll.cs | 74 + .../XMainClient/KKSG/HellDropInfoAll.cs.meta | 12 + .../XMainClient/KKSG/HeroBattleAncientPowerData.cs | 40 + .../KKSG/HeroBattleAncientPowerData.cs.meta | 12 + .../XMainClient/KKSG/HeroBattleCanUseHeroData.cs | 96 + .../KKSG/HeroBattleCanUseHeroData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleData.cs | 214 + .../XMainClient/KKSG/HeroBattleData.cs.meta | 12 + .../XMainClient/KKSG/HeroBattleGroupData.cs | 148 + .../XMainClient/KKSG/HeroBattleGroupData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleInCircle.cs | 29 + .../XMainClient/KKSG/HeroBattleInCircle.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleOneGame.cs | 171 + .../XMainClient/KKSG/HeroBattleOneGame.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleOver.cs | 16 + .../XMainClient/KKSG/HeroBattleOver.cs.meta | 12 + .../XMainClient/KKSG/HeroBattleOverTimeData.cs | 62 + .../KKSG/HeroBattleOverTimeData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleRecord.cs | 720 +++ .../XMainClient/KKSG/HeroBattleRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleResult.cs | 300 + .../XMainClient/KKSG/HeroBattleResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleSyncData.cs | 191 + .../XMainClient/KKSG/HeroBattleSyncData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleTeamData.cs | 148 + .../XMainClient/KKSG/HeroBattleTeamData.cs.meta | 12 + .../XMainClient/KKSG/HeroBattleTeamMember.cs | 277 + .../XMainClient/KKSG/HeroBattleTeamMember.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs | 29 + .../XMainClient/KKSG/HeroBattleTeamMsg.cs.meta | 12 + .../XMainClient/KKSG/HeroBattleTeamRoleData.cs | 128 + .../KKSG/HeroBattleTeamRoleData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroBattleTipsData.cs | 62 + .../XMainClient/KKSG/HeroBattleTipsData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroKillNotifyData.cs | 149 + .../XMainClient/KKSG/HeroKillNotifyData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroKillUnit.cs | 191 + .../Scripts/XMainClient/KKSG/HeroKillUnit.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroKillUnitType.cs | 14 + .../XMainClient/KKSG/HeroKillUnitType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HeroRankData.cs | 234 + .../Scripts/XMainClient/KKSG/HeroRankData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/HintNotify.cs | 74 + .../Scripts/XMainClient/KKSG/HintNotify.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HoldWeddingReq.cs | 17 + .../XMainClient/KKSG/HoldWeddingReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HoldWeddingRes.cs | 78 + .../XMainClient/KKSG/HoldWeddingRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HorseAnimation.cs | 62 + .../XMainClient/KKSG/HorseAnimation.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/HorseAward.cs | 148 + .../Scripts/XMainClient/KKSG/HorseAward.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HorseAwardAll.cs | 29 + .../Scripts/XMainClient/KKSG/HorseAwardAll.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HorseCountDownTime.cs | 62 + .../XMainClient/KKSG/HorseCountDownTime.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/HorseFinal.cs | 148 + .../Scripts/XMainClient/KKSG/HorseFinal.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/HorseRank.cs | 105 + .../Scripts/XMainClient/KKSG/HorseRank.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HorseReConnectArg.cs | 62 + .../XMainClient/KKSG/HorseReConnectArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HorseReConnectRes.cs | 122 + .../XMainClient/KKSG/HorseReConnectRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/HorseWaitTime.cs | 62 + .../Scripts/XMainClient/KKSG/HorseWaitTime.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBBuyItemReq.cs | 105 + .../Scripts/XMainClient/KKSG/IBBuyItemReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBBuyItemRes.cs | 62 + .../Scripts/XMainClient/KKSG/IBBuyItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs | 29 + .../XMainClient/KKSG/IBGiftHistAllItem.cs.meta | 12 + .../XMainClient/KKSG/IBGiftHistAllItemArg.cs | 62 + .../XMainClient/KKSG/IBGiftHistAllItemArg.cs.meta | 12 + .../XMainClient/KKSG/IBGiftHistAllItemRes.cs | 78 + .../XMainClient/KKSG/IBGiftHistAllItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBGiftHistItem.cs | 121 + .../XMainClient/KKSG/IBGiftHistItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs | 62 + .../Scripts/XMainClient/KKSG/IBGiftIcon.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs | 105 + .../Scripts/XMainClient/KKSG/IBGiftOrder.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs | 62 + .../Scripts/XMainClient/KKSG/IBGiftTips.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBQueryItemReq.cs | 105 + .../XMainClient/KKSG/IBQueryItemReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBQueryItemRes.cs | 128 + .../XMainClient/KKSG/IBQueryItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBShopAllRecord.cs | 257 + .../XMainClient/KKSG/IBShopAllRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBShopHasBuy.cs | 105 + .../Scripts/XMainClient/KKSG/IBShopHasBuy.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs | 74 + .../Scripts/XMainClient/KKSG/IBShopIcon.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBShopItemInfo.cs | 277 + .../XMainClient/KKSG/IBShopItemInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IBShopOneRecord.cs | 234 + .../XMainClient/KKSG/IBShopOneRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IconWatchListNum.cs | 62 + .../XMainClient/KKSG/IconWatchListNum.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs | 62 + .../XMainClient/KKSG/IdentifyEmblemArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs | 62 + .../XMainClient/KKSG/IdentifyEmblemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IdipClearChatInfo.cs | 62 + .../XMainClient/KKSG/IdipClearChatInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs | 510 ++ .../Scripts/XMainClient/KKSG/IdipData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IdipHintData.cs | 105 + .../Scripts/XMainClient/KKSG/IdipHintData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/IdipMessage.cs | 62 + .../Scripts/XMainClient/KKSG/IdipMessage.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IdipPunishData.cs | 191 + .../XMainClient/KKSG/IdipPunishData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IdipPunishInfo.cs | 191 + .../XMainClient/KKSG/IdipPunishInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/InheritData.cs | 191 + .../Scripts/XMainClient/KKSG/InheritData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InlayAllJadeArg.cs | 62 + .../XMainClient/KKSG/InlayAllJadeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InlayAllJadeRes.cs | 105 + .../XMainClient/KKSG/InlayAllJadeRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/InspireArg.cs | 17 + .../Scripts/XMainClient/KKSG/InspireArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/InspireRes.cs | 148 + .../Scripts/XMainClient/KKSG/InspireRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IntegralBattle.cs | 492 ++ .../XMainClient/KKSG/IntegralBattle.cs.meta | 12 + .../Scripts/XMainClient/KKSG/IntegralState.cs | 18 + .../Scripts/XMainClient/KKSG/IntegralState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/Integralunit.cs | 191 + .../Scripts/XMainClient/KKSG/Integralunit.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InvFightAgainPara.cs | 34 + .../XMainClient/KKSG/InvFightAgainPara.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/InvFightArg.cs | 234 + .../Scripts/XMainClient/KKSG/InvFightArg.cs.meta | 12 + .../XMainClient/KKSG/InvFightBattleResult.cs | 105 + .../XMainClient/KKSG/InvFightBattleResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InvFightBefESpara.cs | 29 + .../XMainClient/KKSG/InvFightBefESpara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InvFightNotifyType.cs | 14 + .../XMainClient/KKSG/InvFightNotifyType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InvFightPara.cs | 148 + .../Scripts/XMainClient/KKSG/InvFightPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InvFightReqType.cs | 20 + .../XMainClient/KKSG/InvFightReqType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/InvFightRes.cs | 117 + .../Scripts/XMainClient/KKSG/InvFightRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InvFightRoleBrief.cs | 320 + .../XMainClient/KKSG/InvFightRoleBrief.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/InvHReqType.cs | 16 + .../Scripts/XMainClient/KKSG/InvHReqType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InvHistoryArg.cs | 62 + .../Scripts/XMainClient/KKSG/InvHistoryArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InvHistoryRes.cs | 74 + .../Scripts/XMainClient/KKSG/InvHistoryRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/InvUnfState.cs | 105 + .../Scripts/XMainClient/KKSG/InvUnfState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/InviteRufuse.cs | 62 + .../Scripts/XMainClient/KKSG/InviteRufuse.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/Item.cs | 741 +++ .../Assets/Scripts/XMainClient/KKSG/Item.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemArtifact.cs | 29 + .../Scripts/XMainClient/KKSG/ItemArtifact.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ItemBrief.cs | 191 + .../Scripts/XMainClient/KKSG/ItemBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemBuffOpArg.cs | 191 + .../Scripts/XMainClient/KKSG/ItemBuffOpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemBuffOpRes.cs | 107 + .../Scripts/XMainClient/KKSG/ItemBuffOpRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ItemChanged.cs | 162 + .../Scripts/XMainClient/KKSG/ItemChanged.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemComposeArg.cs | 62 + .../XMainClient/KKSG/ItemComposeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemComposeRes.cs | 62 + .../XMainClient/KKSG/ItemComposeRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs | 161 + .../Scripts/XMainClient/KKSG/ItemEnchant.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs | 12 + .../Scripts/XMainClient/KKSG/ItemEnum.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemFindBackArg.cs | 148 + .../XMainClient/KKSG/ItemFindBackArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemFindBackData.cs | 62 + .../XMainClient/KKSG/ItemFindBackData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemFindBackInfo.cs | 332 + .../XMainClient/KKSG/ItemFindBackInfo.cs.meta | 12 + .../XMainClient/KKSG/ItemFindBackInfo2Client.cs | 300 + .../KKSG/ItemFindBackInfo2Client.cs.meta | 12 + .../XMainClient/KKSG/ItemFindBackInfoArg.cs | 17 + .../XMainClient/KKSG/ItemFindBackInfoArg.cs.meta | 12 + .../XMainClient/KKSG/ItemFindBackInfoRes.cs | 117 + .../XMainClient/KKSG/ItemFindBackInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemFindBackRes.cs | 62 + .../XMainClient/KKSG/ItemFindBackRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemFindBackType.cs | 42 + .../XMainClient/KKSG/ItemFindBackType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ItemForge.cs | 57 + .../Scripts/XMainClient/KKSG/ItemForge.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs | 105 + .../Scripts/XMainClient/KKSG/ItemFuse.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs | 74 + .../Scripts/XMainClient/KKSG/ItemJade.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemJadeSingle.cs | 128 + .../XMainClient/KKSG/ItemJadeSingle.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ItemRandAttr.cs | 29 + .../Scripts/XMainClient/KKSG/ItemRandAttr.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ItemRecord.cs | 148 + .../Scripts/XMainClient/KKSG/ItemRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs | 62 + .../Scripts/XMainClient/KKSG/ItemSellArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs | 62 + .../Scripts/XMainClient/KKSG/ItemSellRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs | 40 + .../Scripts/XMainClient/KKSG/ItemUseOp.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JadeComposeArg.cs | 234 + .../XMainClient/KKSG/JadeComposeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JadeComposeNewArg.cs | 234 + .../XMainClient/KKSG/JadeComposeNewArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JadeComposeNewRes.cs | 105 + .../XMainClient/KKSG/JadeComposeNewRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JadeComposeRes.cs | 62 + .../XMainClient/KKSG/JadeComposeRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JadeOperationArg.cs | 191 + .../XMainClient/KKSG/JadeOperationArg.cs.meta | 12 + .../XMainClient/KKSG/JadeOperationNewArg.cs | 191 + .../XMainClient/KKSG/JadeOperationNewArg.cs.meta | 12 + .../XMainClient/KKSG/JadeOperationNewRes.cs | 105 + .../XMainClient/KKSG/JadeOperationNewRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JadeOperationRes.cs | 62 + .../XMainClient/KKSG/JadeOperationRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JadeSealInfo.cs | 105 + .../Scripts/XMainClient/KKSG/JadeSealInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JadeSlotInfo.cs | 105 + .../Scripts/XMainClient/KKSG/JadeSlotInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs | 234 + .../XMainClient/KKSG/JoinLargeRoomArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs | 363 ++ .../XMainClient/KKSG/JoinLargeRoomReply.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs | 78 + .../XMainClient/KKSG/JoinLargeRoomRes.cs.meta | 12 + .../XMainClient/KKSG/JoinLeagueEleBattleArg.cs | 17 + .../KKSG/JoinLeagueEleBattleArg.cs.meta | 12 + .../XMainClient/KKSG/JoinLeagueEleBattleRes.cs | 62 + .../KKSG/JoinLeagueEleBattleRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs | 17 + .../Scripts/XMainClient/KKSG/JoinRoom.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JoinRoomReply.cs | 277 + .../Scripts/XMainClient/KKSG/JoinRoomReply.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JustDanceArg.cs | 105 + .../Scripts/XMainClient/KKSG/JustDanceArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/JustDanceRes.cs | 62 + .../Scripts/XMainClient/KKSG/JustDanceRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/KKVsRoleState.cs | 18 + .../Scripts/XMainClient/KKSG/KKVsRoleState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/KMatchCommonArg.cs | 148 + .../XMainClient/KKSG/KMatchCommonArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/KMatchCommonRes.cs | 148 + .../XMainClient/KKSG/KMatchCommonRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs | 14 + .../Scripts/XMainClient/KKSG/KMatchOp.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/KMatchType.cs | 34 + .../Scripts/XMainClient/KKSG/KMatchType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs | 105 + .../XMainClient/KKSG/KickAccountJkydMsg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/KickType.cs | 24 + .../Scripts/XMainClient/KKSG/KickType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/KillEnemyScoreData.cs | 62 + .../XMainClient/KKSG/KillEnemyScoreData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LBEleRoomInfo.cs | 223 + .../Scripts/XMainClient/KKSG/LBEleRoomInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LBEleRoomState.cs | 16 + .../XMainClient/KKSG/LBEleRoomState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LBEleRoundInfo.cs | 74 + .../XMainClient/KKSG/LBEleRoundInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LBEleTeamInfo.cs | 234 + .../Scripts/XMainClient/KKSG/LBEleTeamInfo.cs.meta | 12 + .../XMainClient/KKSG/LargeRoomLoginParam.cs | 62 + .../XMainClient/KKSG/LargeRoomLoginParam.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs | 40 + .../XMainClient/KKSG/LargeRoomRoleParam.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleBaseDataNtf.cs | 50 + .../KKSG/LeagueBattleBaseDataNtf.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleFightState.cs | 18 + .../KKSG/LeagueBattleFightState.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs | 94 + .../KKSG/LeagueBattleLoadInfoNtf.cs.meta | 12 + .../KKSG/LeagueBattleMatchTimeoutNtf.cs | 17 + .../KKSG/LeagueBattleMatchTimeoutNtf.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleOneRecord.cs | 363 ++ .../XMainClient/KKSG/LeagueBattleOneRecord.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleOneResultNtf.cs | 137 + .../KKSG/LeagueBattleOneResultNtf.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleOneRole.cs | 121 + .../XMainClient/KKSG/LeagueBattleOneRole.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleOneTeam.cs | 203 + .../XMainClient/KKSG/LeagueBattleOneTeam.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleReadyOper.cs | 14 + .../XMainClient/KKSG/LeagueBattleReadyOper.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleReadyReqArg.cs | 62 + .../KKSG/LeagueBattleReadyReqArg.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleReadyReqRes.cs | 62 + .../KKSG/LeagueBattleReadyReqRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs | 62 + .../XMainClient/KKSG/LeagueBattleReqArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs | 62 + .../XMainClient/KKSG/LeagueBattleReqRes.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleReqType.cs | 14 + .../XMainClient/KKSG/LeagueBattleReqType.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleResultNtf.cs | 94 + .../XMainClient/KKSG/LeagueBattleResultNtf.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleResultRole.cs | 121 + .../KKSG/LeagueBattleResultRole.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleResultTeam.cs | 418 ++ .../KKSG/LeagueBattleResultTeam.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleRoleBrief.cs | 363 ++ .../XMainClient/KKSG/LeagueBattleRoleBrief.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleRoleState.cs | 22 + .../XMainClient/KKSG/LeagueBattleRoleState.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleStartMatchNtf.cs | 17 + .../KKSG/LeagueBattleStartMatchNtf.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleStateNtf.cs | 105 + .../XMainClient/KKSG/LeagueBattleStateNtf.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleStopMatchNtf.cs | 17 + .../KKSG/LeagueBattleStopMatchNtf.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleTeamData.cs | 375 ++ .../XMainClient/KKSG/LeagueBattleTeamData.cs.meta | 12 + .../XMainClient/KKSG/LeagueBattleTimeState.cs | 28 + .../XMainClient/KKSG/LeagueBattleTimeState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeagueBattleType.cs | 18 + .../XMainClient/KKSG/LeagueBattleType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeagueEliType.cs | 16 + .../Scripts/XMainClient/KKSG/LeagueEliType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeagueRankData.cs | 406 ++ .../XMainClient/KKSG/LeagueRankData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeagueTeamDetail.cs | 289 + .../XMainClient/KKSG/LeagueTeamDetail.cs.meta | 12 + .../XMainClient/KKSG/LeagueTeamMemberDetail.cs | 78 + .../KKSG/LeagueTeamMemberDetail.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeagueTeamState.cs | 16 + .../XMainClient/KKSG/LeagueTeamState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs | 62 + .../XMainClient/KKSG/LearnGuildSkillAgr.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs | 62 + .../XMainClient/KKSG/LearnGuildSkillRes.cs.meta | 12 + .../XMainClient/KKSG/LeaveDragonGuildArg.cs | 62 + .../XMainClient/KKSG/LeaveDragonGuildArg.cs.meta | 12 + .../XMainClient/KKSG/LeaveDragonGuildRes.cs | 62 + .../XMainClient/KKSG/LeaveDragonGuildRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeaveGuildArg.cs | 62 + .../Scripts/XMainClient/KKSG/LeaveGuildArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeaveGuildRes.cs | 62 + .../Scripts/XMainClient/KKSG/LeaveGuildRes.cs.meta | 12 + .../XMainClient/KKSG/LeaveLargeRoomParam.cs | 62 + .../XMainClient/KKSG/LeaveLargeRoomParam.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs | 17 + .../XMainClient/KKSG/LeaveLeagueTeamArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs | 62 + .../XMainClient/KKSG/LeaveLeagueTeamRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeavePartnerArg.cs | 17 + .../XMainClient/KKSG/LeavePartnerArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeavePartnerRes.cs | 62 + .../XMainClient/KKSG/LeavePartnerRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeaveSceneType.cs | 14 + .../XMainClient/KKSG/LeaveSceneType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs | 17 + .../XMainClient/KKSG/LeaveSkyTeamArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs | 62 + .../XMainClient/KKSG/LeaveSkyTeamRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LeaveTeamType.cs | 20 + .../Scripts/XMainClient/KKSG/LeaveTeamType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LevelChanged.cs | 182 + .../Scripts/XMainClient/KKSG/LevelChanged.cs.meta | 12 + .../XMainClient/KKSG/LevelScriptStateData.cs | 29 + .../XMainClient/KKSG/LevelScriptStateData.cs.meta | 12 + .../XMainClient/KKSG/LevelSealButtonType.cs | 16 + .../XMainClient/KKSG/LevelSealButtonType.cs.meta | 12 + .../XMainClient/KKSG/LevelSealExchangeArg.cs | 17 + .../XMainClient/KKSG/LevelSealExchangeArg.cs.meta | 12 + .../XMainClient/KKSG/LevelSealExchangeRes.cs | 62 + .../XMainClient/KKSG/LevelSealExchangeRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LevelSealInfo.cs | 320 + .../Scripts/XMainClient/KKSG/LevelSealInfo.cs.meta | 12 + .../XMainClient/KKSG/LevelSealOverExpArg.cs | 17 + .../XMainClient/KKSG/LevelSealOverExpArg.cs.meta | 12 + .../XMainClient/KKSG/LevelSealOverExpRes.cs | 105 + .../XMainClient/KKSG/LevelSealOverExpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LevelSealRecord.cs | 234 + .../XMainClient/KKSG/LevelSealRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs | 105 + .../XMainClient/KKSG/LevelUpSlotAttrArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs | 74 + .../XMainClient/KKSG/LevelUpSlotAttrRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LiveIconData.cs | 121 + .../Scripts/XMainClient/KKSG/LiveIconData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LiveNameInfo.cs | 379 ++ .../Scripts/XMainClient/KKSG/LiveNameInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/LiveRecord.cs | 192 + .../Scripts/XMainClient/KKSG/LiveRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs | 40 + .../Scripts/XMainClient/KKSG/LiveType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoadAccountData.cs | 492 ++ .../XMainClient/KKSG/LoadAccountData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs | 62 + .../XMainClient/KKSG/LoadOffLineChatNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/LogDBType.cs | 14 + .../Scripts/XMainClient/KKSG/LogDBType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginActivityArg.cs | 62 + .../XMainClient/KKSG/LoginActivityArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginActivityRes.cs | 74 + .../XMainClient/KKSG/LoginActivityRes.cs.meta | 12 + .../XMainClient/KKSG/LoginActivityStatus.cs | 62 + .../XMainClient/KKSG/LoginActivityStatus.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs | 336 + .../Scripts/XMainClient/KKSG/LoginArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginChallenge.cs | 105 + .../XMainClient/KKSG/LoginChallenge.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginExtraData.cs | 105 + .../XMainClient/KKSG/LoginExtraData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginGateData.cs | 406 ++ .../Scripts/XMainClient/KKSG/LoginGateData.cs.meta | 12 + .../KKSG/LoginReconnectEnterSceneData.cs | 94 + .../KKSG/LoginReconnectEnterSceneData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginReconnectInfo.cs | 105 + .../XMainClient/KKSG/LoginReconnectInfo.cs.meta | 12 + .../XMainClient/KKSG/LoginReconnectReqArg.cs | 62 + .../XMainClient/KKSG/LoginReconnectReqArg.cs.meta | 12 + .../XMainClient/KKSG/LoginReconnectReqRes.cs | 62 + .../XMainClient/KKSG/LoginReconnectReqRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/LoginRecord.cs | 203 + .../Scripts/XMainClient/KKSG/LoginRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs | 196 + .../Scripts/XMainClient/KKSG/LoginRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/LoginReward.cs | 160 + .../Scripts/XMainClient/KKSG/LoginReward.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginRewardGetReq.cs | 62 + .../XMainClient/KKSG/LoginRewardGetReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginRewardGetRet.cs | 62 + .../XMainClient/KKSG/LoginRewardGetRet.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginRewardRet.cs | 160 + .../XMainClient/KKSG/LoginRewardRet.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LoginRewardState.cs | 16 + .../XMainClient/KKSG/LoginRewardState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/LoginType.cs | 22 + .../Scripts/XMainClient/KKSG/LoginType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/LogoutType.cs | 20 + .../Scripts/XMainClient/KKSG/LogoutType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LotteryDrawReq.cs | 17 + .../XMainClient/KKSG/LotteryDrawReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LotteryDrawRes.cs | 203 + .../XMainClient/KKSG/LotteryDrawRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/LotteryType.cs | 22 + .../Scripts/XMainClient/KKSG/LotteryType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/LuckyActivity.cs | 117 + .../Scripts/XMainClient/KKSG/LuckyActivity.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MSGiveItemType.cs | 12 + .../XMainClient/KKSG/MSGiveItemType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MSUseSumamryType.cs | 14 + .../XMainClient/KKSG/MSUseSumamryType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MailOpArg.cs | 74 + .../Scripts/XMainClient/KKSG/MailOpArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MailOpRes.cs | 74 + .../Scripts/XMainClient/KKSG/MailOpRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MailOpType.cs | 18 + .../Scripts/XMainClient/KKSG/MailOpType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MakePartnerResult.cs | 289 + .../XMainClient/KKSG/MakePartnerResult.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MapIntItem.cs | 105 + .../Scripts/XMainClient/KKSG/MapIntItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs | 105 + .../Scripts/XMainClient/KKSG/MapKeyValue.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MarriageApplyInfo.cs | 148 + .../XMainClient/KKSG/MarriageApplyInfo.cs.meta | 12 + .../XMainClient/KKSG/MarriageApplyResponse.cs | 148 + .../XMainClient/KKSG/MarriageApplyResponse.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MarriageLevelInfo.cs | 148 + .../XMainClient/KKSG/MarriageLevelInfo.cs.meta | 12 + .../XMainClient/KKSG/MarriageLevelValueNtfData.cs | 34 + .../KKSG/MarriageLevelValueNtfData.cs.meta | 12 + .../KKSG/MarriageNewPrivilegeNtfData.cs | 62 + .../KKSG/MarriageNewPrivilegeNtfData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MarriageOpType.cs | 22 + .../XMainClient/KKSG/MarriageOpType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MarriagePos.cs | 18 + .../Scripts/XMainClient/KKSG/MarriagePos.cs.meta | 12 + .../XMainClient/KKSG/MarriageRelationOpArg.cs | 148 + .../XMainClient/KKSG/MarriageRelationOpArg.cs.meta | 12 + .../XMainClient/KKSG/MarriageRelationOpRes.cs | 148 + .../XMainClient/KKSG/MarriageRelationOpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MarriageStatus.cs | 30 + .../XMainClient/KKSG/MarriageStatus.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MatchToWorldType.cs | 16 + .../XMainClient/KKSG/MatchToWorldType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MayhemRankInfo.cs | 363 ++ .../XMainClient/KKSG/MayhemRankInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MentorApplyStatus.cs | 18 + .../XMainClient/KKSG/MentorApplyStatus.cs.meta | 12 + .../XMainClient/KKSG/MentorBreakApplyInfo.cs | 191 + .../XMainClient/KKSG/MentorBreakApplyInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MentorMsgApplyType.cs | 22 + .../XMainClient/KKSG/MentorMsgApplyType.cs.meta | 12 + .../XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs | 234 + .../KKSG/MentorMyBeAppliedMsgArg.cs.meta | 12 + .../XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs | 74 + .../KKSG/MentorMyBeAppliedMsgRes.cs.meta | 12 + .../XMainClient/KKSG/MentorRelationOpArg.cs | 148 + .../XMainClient/KKSG/MentorRelationOpArg.cs.meta | 12 + .../XMainClient/KKSG/MentorRelationOpRes.cs | 105 + .../XMainClient/KKSG/MentorRelationOpRes.cs.meta | 12 + .../XMainClient/KKSG/MentorRelationOpType.cs | 30 + .../XMainClient/KKSG/MentorRelationOpType.cs.meta | 12 + .../XMainClient/KKSG/MentorRelationStatus.cs | 20 + .../XMainClient/KKSG/MentorRelationStatus.cs.meta | 12 + .../XMainClient/KKSG/MentorRelationStatusData.cs | 105 + .../KKSG/MentorRelationStatusData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MentorSelfInfo.cs | 29 + .../XMainClient/KKSG/MentorSelfInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MentorTaskType.cs | 72 + .../XMainClient/KKSG/MentorTaskType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MidasExceptionInfo.cs | 62 + .../XMainClient/KKSG/MidasExceptionInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MilitaryRankData.cs | 148 + .../XMainClient/KKSG/MilitaryRankData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MilitaryRecord.cs | 246 + .../XMainClient/KKSG/MilitaryRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaAddExpData.cs | 105 + .../XMainClient/KKSG/MobaAddExpData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaBattleOneGame.cs | 386 ++ .../XMainClient/KKSG/MobaBattleOneGame.cs.meta | 12 + .../XMainClient/KKSG/MobaBattleOneGameBrief.cs | 320 + .../KKSG/MobaBattleOneGameBrief.cs.meta | 12 + .../XMainClient/KKSG/MobaBattleOneGameRole.cs | 406 ++ .../XMainClient/KKSG/MobaBattleOneGameRole.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaBattleResult.cs | 191 + .../XMainClient/KKSG/MobaBattleResult.cs.meta | 12 + .../XMainClient/KKSG/MobaBattleRoleResult.cs | 203 + .../XMainClient/KKSG/MobaBattleRoleResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaBattleTeamData.cs | 148 + .../XMainClient/KKSG/MobaBattleTeamData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs | 29 + .../XMainClient/KKSG/MobaBattleTeamMsg.cs.meta | 12 + .../XMainClient/KKSG/MobaBattleTeamRoleData.cs | 128 + .../KKSG/MobaBattleTeamRoleData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs | 62 + .../Scripts/XMainClient/KKSG/MobaHintNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaMiniMapData.cs | 29 + .../XMainClient/KKSG/MobaMiniMapData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs | 14 + .../Assets/Scripts/XMainClient/KKSG/MobaOp.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaRoleChangeData.cs | 29 + .../XMainClient/KKSG/MobaRoleChangeData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaRoleData.cs | 535 ++ .../Scripts/XMainClient/KKSG/MobaRoleData.cs.meta | 12 + .../XMainClient/KKSG/MobaSignalBroadcastData.cs | 148 + .../KKSG/MobaSignalBroadcastData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaSignalingArg.cs | 62 + .../XMainClient/KKSG/MobaSignalingArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MobaSignalingRes.cs | 62 + .../XMainClient/KKSG/MobaSignalingRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ModifyArg.cs | 62 + .../Scripts/XMainClient/KKSG/ModifyArg.cs.meta | 12 + .../XMainClient/KKSG/ModifyDragonGuildNameArg.cs | 62 + .../KKSG/ModifyDragonGuildNameArg.cs.meta | 12 + .../XMainClient/KKSG/ModifyDragonGuildNameRes.cs | 62 + .../KKSG/ModifyDragonGuildNameRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ModifyRes.cs | 62 + .../Scripts/XMainClient/KKSG/ModifyRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs | 148 + .../Scripts/XMainClient/KKSG/MoveInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MulActivitInfo.cs | 363 ++ .../XMainClient/KKSG/MulActivitInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MulActivityArg.cs | 62 + .../XMainClient/KKSG/MulActivityArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MulActivityCha.cs | 74 + .../XMainClient/KKSG/MulActivityCha.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MulActivityIconSys.cs | 62 + .../XMainClient/KKSG/MulActivityIconSys.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MulActivityRes.cs | 117 + .../XMainClient/KKSG/MulActivityRes.cs.meta | 12 + .../XMainClient/KKSG/MulActivityTimeState.cs | 18 + .../XMainClient/KKSG/MulActivityTimeState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/MyDragonGuild.cs | 492 ++ .../Scripts/XMainClient/KKSG/MyDragonGuild.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs | 234 + .../Scripts/XMainClient/KKSG/MyGuild.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs | 16 + .../Scripts/XMainClient/KKSG/MysqlOpType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/MythShopOP.cs | 16 + .../Scripts/XMainClient/KKSG/MythShopOP.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NewBattleResult.cs | 181 + .../XMainClient/KKSG/NewBattleResult.cs.meta | 12 + .../XMainClient/KKSG/NewGetFlowerRewardListArg.cs | 17 + .../KKSG/NewGetFlowerRewardListArg.cs.meta | 12 + .../XMainClient/KKSG/NewGetFlowerRewardListRes.cs | 117 + .../KKSG/NewGetFlowerRewardListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NewGuildBonusData.cs | 62 + .../XMainClient/KKSG/NewGuildBonusData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NextDayRewardNtf.cs | 105 + .../XMainClient/KKSG/NextDayRewardNtf.cs.meta | 12 + .../XMainClient/KKSG/NextDayRewardReport.cs | 17 + .../XMainClient/KKSG/NextDayRewardReport.cs.meta | 12 + .../XMainClient/KKSG/NoticeDoingGuildInherit.cs | 148 + .../KKSG/NoticeDoingGuildInherit.cs.meta | 12 + .../XMainClient/KKSG/NoticeGuildArenaBegin.cs | 62 + .../XMainClient/KKSG/NoticeGuildArenaBegin.cs.meta | 12 + .../XMainClient/KKSG/NoticeGuildArenaNextTime.cs | 62 + .../KKSG/NoticeGuildArenaNextTime.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs | 62 + .../XMainClient/KKSG/NoticeGuildBossEnd.cs.meta | 12 + .../XMainClient/KKSG/NoticeGuildLadderStart.cs | 62 + .../KKSG/NoticeGuildLadderStart.cs.meta | 12 + .../XMainClient/KKSG/NoticeGuildTerrBattleWin.cs | 105 + .../KKSG/NoticeGuildTerrBattleWin.cs.meta | 12 + .../XMainClient/KKSG/NoticeGuildTerrBigIcon.cs | 62 + .../KKSG/NoticeGuildTerrBigIcon.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs | 17 + .../XMainClient/KKSG/NoticeGuildTerrEnd.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs | 62 + .../XMainClient/KKSG/NoticeGuildTerrWar.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs | 62 + .../XMainClient/KKSG/NoticeGuildTerrall.cs.meta | 12 + .../XMainClient/KKSG/NoticeGuildWageReward.cs | 17 + .../XMainClient/KKSG/NoticeGuildWageReward.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NoticeHungryDown.cs | 105 + .../XMainClient/KKSG/NoticeHungryDown.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/NoticeType.cs | 22 + .../Scripts/XMainClient/KKSG/NoticeType.cs.meta | 12 + .../XMainClient/KKSG/NotifyEnemyEnterFight.cs | 105 + .../XMainClient/KKSG/NotifyEnemyEnterFight.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs | 62 + .../XMainClient/KKSG/NotifyEnhanceSuit.cs.meta | 12 + .../XMainClient/KKSG/NotifyLeagueTeamCreate.cs | 117 + .../KKSG/NotifyLeagueTeamCreate.cs.meta | 12 + .../XMainClient/KKSG/NotifyLeagueTeamDissolve.cs | 105 + .../KKSG/NotifyLeagueTeamDissolve.cs.meta | 12 + .../XMainClient/KKSG/NotifyMarriageApplyData.cs | 50 + .../KKSG/NotifyMarriageApplyData.cs.meta | 12 + .../KKSG/NotifyMarriageDivorceApplyData.cs | 191 + .../KKSG/NotifyMarriageDivorceApplyData.cs.meta | 12 + .../XMainClient/KKSG/NotifyMentorApplyData.cs | 160 + .../XMainClient/KKSG/NotifyMentorApplyData.cs.meta | 12 + .../XMainClient/KKSG/NotifyPlatShareResultArg.cs | 105 + .../KKSG/NotifyPlatShareResultArg.cs.meta | 12 + .../XMainClient/KKSG/NotifySkyTeamCreate.cs | 105 + .../XMainClient/KKSG/NotifySkyTeamCreate.cs.meta | 12 + .../XMainClient/KKSG/NotifyStartUpTypeToClient.cs | 62 + .../KKSG/NotifyStartUpTypeToClient.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NotifyTransferWall.cs | 105 + .../XMainClient/KKSG/NotifyTransferWall.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs | 214 + .../XMainClient/KKSG/NpcFeelingOneNpc.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NpcFeelingRecord.cs | 365 ++ .../XMainClient/KKSG/NpcFeelingRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NpcFeelingUnite.cs | 105 + .../XMainClient/KKSG/NpcFeelingUnite.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs | 239 + .../Scripts/XMainClient/KKSG/NpcFlArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NpcFlItemType.cs | 16 + .../Scripts/XMainClient/KKSG/NpcFlItemType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs | 121 + .../Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NpcFlReqType.cs | 22 + .../Scripts/XMainClient/KKSG/NpcFlReqType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs | 322 + .../Scripts/XMainClient/KKSG/NpcFlRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs | 148 + .../Scripts/XMainClient/KKSG/NpcFlReturn.cs.meta | 12 + .../Scripts/XMainClient/KKSG/NpcFlRoleExp.cs | 105 + .../Scripts/XMainClient/KKSG/NpcFlRoleExp.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs | 191 + .../Scripts/XMainClient/KKSG/NpcLikeItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs | 676 ++ .../XMainClient/KKSG/OneLiveRecordInfo.cs.meta | 12 + .../XMainClient/KKSG/OneMentorApplyMasterShow.cs | 164 + .../KKSG/OneMentorApplyMasterShow.cs.meta | 12 + .../XMainClient/KKSG/OneMentorApplyStudentShow.cs | 121 + .../KKSG/OneMentorApplyStudentShow.cs.meta | 12 + .../XMainClient/KKSG/OneMentorBeAppliedMsg.cs | 164 + .../XMainClient/KKSG/OneMentorBeAppliedMsg.cs.meta | 12 + .../KKSG/OneMentorRelationInfo2Client.cs | 273 + .../KKSG/OneMentorRelationInfo2Client.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs | 246 + .../XMainClient/KKSG/OneMentorTaskInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OnlineRewardNtf.cs | 40 + .../XMainClient/KKSG/OnlineRewardNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OnlineRewardReport.cs | 17 + .../XMainClient/KKSG/OnlineRewardReport.cs.meta | 12 + .../XMainClient/KKSG/OnlyOnceGuildBonusData.cs | 105 + .../KKSG/OnlyOnceGuildBonusData.cs.meta | 12 + .../KKSG/Open520FestivityRedPacketArg.cs | 105 + .../KKSG/Open520FestivityRedPacketArg.cs.meta | 12 + .../KKSG/Open520FestivityRedPacketRes.cs | 234 + .../KKSG/Open520FestivityRedPacketRes.cs.meta | 12 + .../XMainClient/KKSG/OpenGardenFarmlandArg.cs | 148 + .../XMainClient/KKSG/OpenGardenFarmlandArg.cs.meta | 12 + .../XMainClient/KKSG/OpenGardenFarmlandRes.cs | 62 + .../XMainClient/KKSG/OpenGardenFarmlandRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OpenGuildQAReq.cs | 17 + .../XMainClient/KKSG/OpenGuildQAReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OpenGuildQARes.cs | 62 + .../XMainClient/KKSG/OpenGuildQARes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OpenPrivateChat.cs | 62 + .../XMainClient/KKSG/OpenPrivateChat.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OpenSceneChestArg.cs | 62 + .../XMainClient/KKSG/OpenSceneChestArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OpenSceneChestRes.cs | 62 + .../XMainClient/KKSG/OpenSceneChestRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OpenSpriteEgg.cs | 62 + .../Scripts/XMainClient/KKSG/OpenSpriteEgg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OperateRecord.cs | 148 + .../Scripts/XMainClient/KKSG/OperateRecord.cs.meta | 12 + .../XMainClient/KKSG/Operation520FestivalArg.cs | 105 + .../KKSG/Operation520FestivalArg.cs.meta | 12 + .../XMainClient/KKSG/Operation520FestivalRes.cs | 121 + .../KKSG/Operation520FestivalRes.cs.meta | 12 + .../XMainClient/KKSG/OtherFetchDoodadRes.cs | 46 + .../XMainClient/KKSG/OtherFetchDoodadRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs | 178 + .../Scripts/XMainClient/KKSG/OutLook.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookChange.cs | 78 + .../Scripts/XMainClient/KKSG/OutLookChange.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookConsumePre.cs | 74 + .../XMainClient/KKSG/OutLookConsumePre.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookDesignation.cs | 105 + .../XMainClient/KKSG/OutLookDesignation.cs.meta | 12 + .../XMainClient/KKSG/OutLookDisplayFashion.cs | 117 + .../XMainClient/KKSG/OutLookDisplayFashion.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookEquip.cs | 96 + .../Scripts/XMainClient/KKSG/OutLookEquip.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookGuild.cs | 148 + .../Scripts/XMainClient/KKSG/OutLookGuild.cs.meta | 12 + .../XMainClient/KKSG/OutLookMilitaryRank.cs | 62 + .../XMainClient/KKSG/OutLookMilitaryRank.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/OutLookOp.cs | 105 + .../Scripts/XMainClient/KKSG/OutLookOp.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookSprite.cs | 62 + .../Scripts/XMainClient/KKSG/OutLookSprite.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookState.cs | 148 + .../Scripts/XMainClient/KKSG/OutLookState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookStateType.cs | 26 + .../XMainClient/KKSG/OutLookStateType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/OutLookTitle.cs | 62 + .../Scripts/XMainClient/KKSG/OutLookTitle.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/OutLookType.cs | 14 + .../Scripts/XMainClient/KKSG/OutLookType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PKInformation.cs | 379 ++ .../Scripts/XMainClient/KKSG/PKInformation.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PVPInformation.cs | 34 + .../XMainClient/KKSG/PVPInformation.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PVPResult.cs | 214 + .../Scripts/XMainClient/KKSG/PVPResult.cs.meta | 12 + .../XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs | 18 + .../XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs | 257 + .../Scripts/XMainClient/KKSG/PandoraDrop.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PandoraLotteryArg.cs | 105 + .../XMainClient/KKSG/PandoraLotteryArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PandoraLotteryRes.cs | 74 + .../XMainClient/KKSG/PandoraLotteryRes.cs.meta | 12 + .../XMainClient/KKSG/PartnerLivenessItem.cs | 234 + .../XMainClient/KKSG/PartnerLivenessItem.cs.meta | 12 + .../XMainClient/KKSG/PartnerMemberDetail.cs | 434 ++ .../XMainClient/KKSG/PartnerMemberDetail.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PartnerOperType.cs | 22 + .../XMainClient/KKSG/PartnerOperType.cs.meta | 12 + .../XMainClient/KKSG/PartnerShopItemClient.cs | 148 + .../XMainClient/KKSG/PartnerShopItemClient.cs.meta | 12 + .../XMainClient/KKSG/PartnerShopRecordItem.cs | 277 + .../XMainClient/KKSG/PartnerShopRecordItem.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PartnerUpdateType.cs | 18 + .../XMainClient/KKSG/PartnerUpdateType.cs.meta | 12 + .../XMainClient/KKSG/PartyExchangeItemInfo.cs | 234 + .../XMainClient/KKSG/PartyExchangeItemInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayAccessDataType.cs | 20 + .../XMainClient/KKSG/PayAccessDataType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayAileen.cs | 117 + .../Scripts/XMainClient/KKSG/PayAileen.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayAileenInfo.cs | 148 + .../Scripts/XMainClient/KKSG/PayAileenInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayAileenRecord.cs | 207 + .../XMainClient/KKSG/PayAileenRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs | 661 ++ .../Scripts/XMainClient/KKSG/PayAllInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayAwardRecord.cs | 105 + .../XMainClient/KKSG/PayAwardRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs | 105 + .../Scripts/XMainClient/KKSG/PayBaseInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayButtonStatus.cs | 16 + .../XMainClient/KKSG/PayButtonStatus.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs | 62 + .../XMainClient/KKSG/PayBuyGoodsFail.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs | 148 + .../Scripts/XMainClient/KKSG/PayCard.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayCardAwardArg.cs | 62 + .../XMainClient/KKSG/PayCardAwardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayCardAwardRes.cs | 78 + .../XMainClient/KKSG/PayCardAwardRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayCardType.cs | 14 + .../Scripts/XMainClient/KKSG/PayCardType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayClickArg.cs | 105 + .../Scripts/XMainClient/KKSG/PayClickArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayClickRes.cs | 246 + .../Scripts/XMainClient/KKSG/PayClickRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayConsume.cs | 257 + .../Scripts/XMainClient/KKSG/PayConsume.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayConsumeRebate.cs | 148 + .../XMainClient/KKSG/PayConsumeRebate.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayFirstAwardArg.cs | 17 + .../XMainClient/KKSG/PayFirstAwardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayFirstAwardRes.cs | 62 + .../XMainClient/KKSG/PayFirstAwardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayFriendItemArg.cs | 207 + .../XMainClient/KKSG/PayFriendItemArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayFriendItemRes.cs | 277 + .../XMainClient/KKSG/PayFriendItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayGiftIbStatus.cs | 18 + .../XMainClient/KKSG/PayGiftIbStatus.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayGiftNtfData.cs | 74 + .../XMainClient/KKSG/PayGiftNtfData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayGiftRecord.cs | 191 + .../Scripts/XMainClient/KKSG/PayGiftRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs | 277 + .../Scripts/XMainClient/KKSG/PayInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayMember.cs | 148 + .../Scripts/XMainClient/KKSG/PayMember.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayMemberPrivilege.cs | 332 + .../XMainClient/KKSG/PayMemberPrivilege.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayMemberRecord.cs | 363 ++ .../XMainClient/KKSG/PayMemberRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayNotifyArg.cs | 336 + .../Scripts/XMainClient/KKSG/PayNotifyArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayNotifyRes.cs | 105 + .../Scripts/XMainClient/KKSG/PayNotifyRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayParamType.cs | 24 + .../Scripts/XMainClient/KKSG/PayParamType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayParameterInfo.cs | 277 + .../XMainClient/KKSG/PayParameterInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayPrivilegeShop.cs | 148 + .../XMainClient/KKSG/PayPrivilegeShop.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayScoreData.cs | 62 + .../Scripts/XMainClient/KKSG/PayScoreData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PayV2Record.cs | 720 +++ .../Scripts/XMainClient/KKSG/PayV2Record.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PayconsumeBrief.cs | 105 + .../XMainClient/KKSG/PayconsumeBrief.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs | 148 + .../Scripts/XMainClient/KKSG/PaytssInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs | 62 + .../Scripts/XMainClient/KKSG/PeerBoxArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs | 121 + .../Scripts/XMainClient/KKSG/PeerBoxRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PeriodTaskType.cs | 14 + .../XMainClient/KKSG/PeriodTaskType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PersonalCareerArg.cs | 105 + .../XMainClient/KKSG/PersonalCareerArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PersonalCareerRes.cs | 122 + .../XMainClient/KKSG/PersonalCareerRes.cs.meta | 12 + .../XMainClient/KKSG/PersonalCarrerReqType.cs | 16 + .../XMainClient/KKSG/PersonalCarrerReqType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PersonalHomePage.cs | 547 ++ .../XMainClient/KKSG/PersonalHomePage.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PetChangeNotfiy.cs | 171 + .../XMainClient/KKSG/PetChangeNotfiy.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PetInviteInfo.cs | 320 + .../Scripts/XMainClient/KKSG/PetInviteInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PetInviteNtf.cs | 78 + .../Scripts/XMainClient/KKSG/PetInviteNtf.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs | 38 + .../Assets/Scripts/XMainClient/KKSG/PetOP.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PetOperationArg.cs | 207 + .../XMainClient/KKSG/PetOperationArg.cs.meta | 12 + .../XMainClient/KKSG/PetOperationOtherArg.cs | 105 + .../XMainClient/KKSG/PetOperationOtherArg.cs.meta | 12 + .../XMainClient/KKSG/PetOperationOtherRes.cs | 62 + .../XMainClient/KKSG/PetOperationOtherRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PetOperationRes.cs | 203 + .../XMainClient/KKSG/PetOperationRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs | 16 + .../Scripts/XMainClient/KKSG/PetOtherOp.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PetSingle.cs | 488 ++ .../Scripts/XMainClient/KKSG/PetSingle.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PetSysData.cs | 203 + .../Scripts/XMainClient/KKSG/PetSysData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PhotographEffect.cs | 117 + .../XMainClient/KKSG/PhotographEffect.cs.meta | 12 + .../XMainClient/KKSG/PhotographEffectArg.cs | 17 + .../XMainClient/KKSG/PhotographEffectArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs | 62 + .../Scripts/XMainClient/KKSG/PicUrlInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs | 320 + .../Scripts/XMainClient/KKSG/PkBaseHist.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PkMatchStage.cs | 191 + .../Scripts/XMainClient/KKSG/PkMatchStage.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PkNVNType.cs | 14 + .../Scripts/XMainClient/KKSG/PkNVNType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs | 128 + .../Scripts/XMainClient/KKSG/PkOneRec.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs | 277 + .../Scripts/XMainClient/KKSG/PkOneRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PkPrepareNtf.cs | 62 + .../Scripts/XMainClient/KKSG/PkPrepareNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PkRankExtraData.cs | 148 + .../XMainClient/KKSG/PkRankExtraData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs | 956 +++ .../Scripts/XMainClient/KKSG/PkRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PkRecordSubInfo.cs | 133 + .../XMainClient/KKSG/PkRecordSubInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs | 148 + .../Scripts/XMainClient/KKSG/PkReqArg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs | 121 + .../Scripts/XMainClient/KKSG/PkReqRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PkReqType.cs | 18 + .../Scripts/XMainClient/KKSG/PkReqType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs | 375 ++ .../Scripts/XMainClient/KKSG/PkResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PkResultType.cs | 16 + .../Scripts/XMainClient/KKSG/PkResultType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs | 94 + .../Scripts/XMainClient/KKSG/PkRoleInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs | 29 + .../Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs | 203 + .../Scripts/XMainClient/KKSG/PkRoleRec.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PkTimeoutNtf.cs | 62 + .../Scripts/XMainClient/KKSG/PkTimeoutNtf.cs.meta | 12 + .../XMainClient/KKSG/PlantCultivationArg.cs | 191 + .../XMainClient/KKSG/PlantCultivationArg.cs.meta | 12 + .../XMainClient/KKSG/PlantCultivationRes.cs | 148 + .../XMainClient/KKSG/PlantCultivationRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlantGrowState.cs | 22 + .../XMainClient/KKSG/PlantGrowState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlantHarvestArg.cs | 148 + .../XMainClient/KKSG/PlantHarvestArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlantHarvestRes.cs | 160 + .../XMainClient/KKSG/PlantHarvestRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PlantInfo.cs | 504 ++ .../Scripts/XMainClient/KKSG/PlantInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlatBanAccount.cs | 105 + .../XMainClient/KKSG/PlatBanAccount.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PlatFriend.cs | 234 + .../Scripts/XMainClient/KKSG/PlatFriend.cs.meta | 12 + .../XMainClient/KKSG/PlatFriendRankInfo2Client.cs | 395 ++ .../KKSG/PlatFriendRankInfo2Client.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlatFriendServer.cs | 191 + .../XMainClient/KKSG/PlatFriendServer.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PlatNotice.cs | 406 ++ .../Scripts/XMainClient/KKSG/PlatNotice.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs | 14 + .../Scripts/XMainClient/KKSG/PlatType.cs.meta | 12 + .../XMainClient/KKSG/PlatformShareAwardPara.cs | 191 + .../KKSG/PlatformShareAwardPara.cs.meta | 12 + .../XMainClient/KKSG/PlatformShareResult.cs | 601 ++ .../XMainClient/KKSG/PlatformShareResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlayDiceNtfData.cs | 148 + .../XMainClient/KKSG/PlayDiceNtfData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlayDiceOverArg.cs | 17 + .../XMainClient/KKSG/PlayDiceOverArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlayDiceOverData.cs | 17 + .../XMainClient/KKSG/PlayDiceOverData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlayDiceOverRes.cs | 164 + .../XMainClient/KKSG/PlayDiceOverRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs | 105 + .../XMainClient/KKSG/PlayDiceRequestArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs | 148 + .../XMainClient/KKSG/PlayDiceRequestRes.cs.meta | 12 + .../KKSG/PokerTournamentEndReFundMsg.cs | 17 + .../KKSG/PokerTournamentEndReFundMsg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/Position.cs | 277 + .../Scripts/XMainClient/KKSG/Position.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PositionCheck.cs | 121 + .../Scripts/XMainClient/KKSG/PositionCheck.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PositionCheckList.cs | 29 + .../XMainClient/KKSG/PositionCheckList.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PrivateChatList.cs | 51 + .../XMainClient/KKSG/PrivateChatList.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PunishDataType.cs | 14 + .../XMainClient/KKSG/PunishDataType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PunishType.cs | 42 + .../Scripts/XMainClient/KKSG/PunishType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PushConfig.cs | 105 + .../Scripts/XMainClient/KKSG/PushConfig.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs | 148 + .../Scripts/XMainClient/KKSG/PushInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PushPraise.cs | 105 + .../Scripts/XMainClient/KKSG/PushPraise.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PushQuestionNtf.cs | 105 + .../XMainClient/KKSG/PushQuestionNtf.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs | 62 + .../Assets/Scripts/XMainClient/KKSG/PvpArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs | 406 ++ .../Scripts/XMainClient/KKSG/PvpBaseData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PvpBattleBeginData.cs | 234 + .../XMainClient/KKSG/PvpBattleBeginData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PvpBattleEndData.cs | 148 + .../XMainClient/KKSG/PvpBattleEndData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PvpBattleKill.cs | 203 + .../Scripts/XMainClient/KKSG/PvpBattleKill.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs | 461 ++ .../Scripts/XMainClient/KKSG/PvpData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PvpHistory.cs | 29 + .../Scripts/XMainClient/KKSG/PvpHistory.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PvpNowGameData.cs | 375 ++ .../XMainClient/KKSG/PvpNowGameData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PvpNowUnitData.cs | 320 + .../XMainClient/KKSG/PvpNowUnitData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs | 257 + .../Scripts/XMainClient/KKSG/PvpOneRec.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/PvpReqType.cs | 20 + .../Scripts/XMainClient/KKSG/PvpReqType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs | 137 + .../Assets/Scripts/XMainClient/KKSG/PvpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/PvpRoleBrief.cs | 234 + .../Scripts/XMainClient/KKSG/PvpRoleBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs | 277 + .../XMainClient/KKSG/QAEnterRoomNtf.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs | 105 + .../Scripts/XMainClient/KKSG/QAIDName.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QAIDNameList.cs | 29 + .../Scripts/XMainClient/KKSG/QAIDNameList.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs | 148 + .../Scripts/XMainClient/KKSG/QANotify.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs | 117 + .../Scripts/XMainClient/KKSG/QAOverNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QARoomRankData.cs | 105 + .../XMainClient/KKSG/QARoomRankData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QARoomRankNtf.cs | 74 + .../Scripts/XMainClient/KKSG/QARoomRankNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs | 535 ++ .../Scripts/XMainClient/KKSG/QQVipInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QQVipInfoClient.cs | 234 + .../XMainClient/KKSG/QQVipInfoClient.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QTEOperation.cs | 105 + .../Scripts/XMainClient/KKSG/QTEOperation.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryBoxsArg.cs | 17 + .../Scripts/XMainClient/KKSG/QueryBoxsArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryBoxsRes.cs | 117 + .../Scripts/XMainClient/KKSG/QueryBoxsRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryClientIpArg.cs | 62 + .../XMainClient/KKSG/QueryClientIpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryClientIpRes.cs | 62 + .../XMainClient/KKSG/QueryClientIpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryGateArg.cs | 363 ++ .../Scripts/XMainClient/KKSG/QueryGateArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryGateRes.cs | 456 ++ .../Scripts/XMainClient/KKSG/QueryGateRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryGuildCardArg.cs | 17 + .../XMainClient/KKSG/QueryGuildCardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryGuildCardRes.cs | 461 ++ .../XMainClient/KKSG/QueryGuildCardRes.cs.meta | 12 + .../XMainClient/KKSG/QueryGuildCheckinArg.cs | 17 + .../XMainClient/KKSG/QueryGuildCheckinArg.cs.meta | 12 + .../XMainClient/KKSG/QueryGuildCheckinRes.cs | 234 + .../XMainClient/KKSG/QueryGuildCheckinRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs | 17 + .../XMainClient/KKSG/QueryLotteryCDArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs | 277 + .../XMainClient/KKSG/QueryLotteryCDRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs | 62 + .../XMainClient/KKSG/QueryMayhemRankArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs | 219 + .../XMainClient/KKSG/QueryMayhemRankRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryOpenGameArg.cs | 17 + .../XMainClient/KKSG/QueryOpenGameArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryOpenGameRes.cs | 105 + .../XMainClient/KKSG/QueryOpenGameRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryPkInfoRes.cs | 250 + .../XMainClient/KKSG/QueryPkInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryPowerPointArg.cs | 17 + .../XMainClient/KKSG/QueryPowerPointArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryPowerPointRes.cs | 85 + .../XMainClient/KKSG/QueryPowerPointRes.cs.meta | 12 + .../XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs | 74 + .../KKSG/QueryQQFriendsVipInfoArg.cs.meta | 12 + .../XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs | 74 + .../KKSG/QueryQQFriendsVipInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs | 62 + .../XMainClient/KKSG/QueryQQVipInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs | 78 + .../XMainClient/KKSG/QueryQQVipInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryResWarArg.cs | 62 + .../XMainClient/KKSG/QueryResWarArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryResWarEnum.cs | 14 + .../XMainClient/KKSG/QueryResWarEnum.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryResWarRes.cs | 94 + .../XMainClient/KKSG/QueryResWarRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryRoleStateAck.cs | 40 + .../XMainClient/KKSG/QueryRoleStateAck.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryRoleStateReq.cs | 29 + .../XMainClient/KKSG/QueryRoleStateReq.cs.meta | 12 + .../XMainClient/KKSG/QuerySceneDayCountArg.cs | 74 + .../XMainClient/KKSG/QuerySceneDayCountArg.cs.meta | 12 + .../XMainClient/KKSG/QuerySceneDayCountRes.cs | 107 + .../XMainClient/KKSG/QuerySceneDayCountRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs | 17 + .../XMainClient/KKSG/QuerySceneTimeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs | 105 + .../XMainClient/KKSG/QuerySceneTimeRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryShopItemArg.cs | 105 + .../XMainClient/KKSG/QueryShopItemArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/QueryShopItemRes.cs | 160 + .../XMainClient/KKSG/QueryShopItemRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs | 105 + .../Scripts/XMainClient/KKSG/QuitRoom.cs.meta | 12 + .../XMainClient/KKSG/RandomFriendWaitListArg.cs | 62 + .../KKSG/RandomFriendWaitListArg.cs.meta | 12 + .../XMainClient/KKSG/RandomFriendWaitListRes.cs | 184 + .../KKSG/RandomFriendWaitListRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/RankData.cs | 1713 +++++ .../Scripts/XMainClient/KKSG/RankData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/RankList.cs | 29 + .../Scripts/XMainClient/KKSG/RankList.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs | 105 + .../Scripts/XMainClient/KKSG/RankOnce.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RankeType.cs | 96 + .../Scripts/XMainClient/KKSG/RankeType.cs.meta | 12 + .../XMainClient/KKSG/ReEnterRiskBattleArg.cs | 17 + .../XMainClient/KKSG/ReEnterRiskBattleArg.cs.meta | 12 + .../XMainClient/KKSG/ReEnterRiskBattleRes.cs | 62 + .../XMainClient/KKSG/ReEnterRiskBattleRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReachAchieveNtf.cs | 62 + .../XMainClient/KKSG/ReachAchieveNtf.cs.meta | 12 + .../XMainClient/KKSG/ReachDesignationNtf.cs | 62 + .../XMainClient/KKSG/ReachDesignationNtf.cs.meta | 12 + .../XMainClient/KKSG/ReadAccountDataType.cs | 16 + .../XMainClient/KKSG/ReadAccountDataType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RecAllianceArg.cs | 62 + .../XMainClient/KKSG/RecAllianceArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RecAllianceRes.cs | 105 + .../XMainClient/KKSG/RecAllianceRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReceiveFlowerData.cs | 320 + .../XMainClient/KKSG/ReceiveFlowerData.cs.meta | 12 + .../KKSG/ReceiveRoleFlowerInfo2Client.cs | 117 + .../KKSG/ReceiveRoleFlowerInfo2Client.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReconectSync.cs | 138 + .../Scripts/XMainClient/KKSG/ReconectSync.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ReconnArg.cs | 148 + .../Scripts/XMainClient/KKSG/ReconnArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ReconnRes.cs | 62 + .../Scripts/XMainClient/KKSG/ReconnRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReconnectScene.cs | 105 + .../XMainClient/KKSG/ReconnectScene.cs.meta | 12 + .../XMainClient/KKSG/RefreshSweepRewardArg.cs | 17 + .../XMainClient/KKSG/RefreshSweepRewardArg.cs.meta | 12 + .../XMainClient/KKSG/RefreshSweepRewardRes.cs | 105 + .../XMainClient/KKSG/RefreshSweepRewardRes.cs.meta | 12 + .../XMainClient/KKSG/RefreshWeeklyTaskArg.cs | 62 + .../XMainClient/KKSG/RefreshWeeklyTaskArg.cs.meta | 12 + .../XMainClient/KKSG/RefreshWeeklyTaskRes.cs | 78 + .../XMainClient/KKSG/RefreshWeeklyTaskRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RemoveBlackListArg.cs | 62 + .../XMainClient/KKSG/RemoveBlackListArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RemoveBlackListRes.cs | 62 + .../XMainClient/KKSG/RemoveBlackListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RemoveFriendArg.cs | 62 + .../XMainClient/KKSG/RemoveFriendArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RemoveFriendRes.cs | 62 + .../XMainClient/KKSG/RemoveFriendRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs | 62 + .../XMainClient/KKSG/RemoveIBShopIcon.cs.meta | 12 + .../KKSG/ReplyPartyExchangeItemOptArg.cs | 105 + .../KKSG/ReplyPartyExchangeItemOptArg.cs.meta | 12 + .../KKSG/ReplyPartyExchangeItemOptRes.cs | 320 + .../KKSG/ReplyPartyExchangeItemOptRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs | 117 + .../XMainClient/KKSG/ReportBadPlayerArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs | 62 + .../XMainClient/KKSG/ReportBadPlayerRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReportBattleArg.cs | 34 + .../XMainClient/KKSG/ReportBattleArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReportBattleRes.cs | 62 + .../XMainClient/KKSG/ReportBattleRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ReportDataRecord.cs | 676 ++ .../XMainClient/KKSG/ReportDataRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs | 62 + .../Scripts/XMainClient/KKSG/ReqAutoPlay.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildArenaHistoryRes.cs | 17 + .../KKSG/ReqGuildArenaHistoryRes.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildArenaHistoryRse.cs | 29 + .../KKSG/ReqGuildArenaHistoryRse.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildInheritInfoArg.cs | 17 + .../KKSG/ReqGuildInheritInfoArg.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildInheritInfoRes.cs | 29 + .../KKSG/ReqGuildInheritInfoRes.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildLadderInfoAgr.cs | 62 + .../XMainClient/KKSG/ReqGuildLadderInfoAgr.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildLadderInfoRes.cs | 214 + .../XMainClient/KKSG/ReqGuildLadderInfoRes.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs | 62 + .../KKSG/ReqGuildLadderRnakInfoArg.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs | 117 + .../KKSG/ReqGuildLadderRnakInfoRes.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildRankInfoArg.cs | 17 + .../XMainClient/KKSG/ReqGuildRankInfoArg.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildRankInfoRes.cs | 191 + .../XMainClient/KKSG/ReqGuildRankInfoRes.cs.meta | 12 + .../KKSG/ReqGuildTerrAllianceInfoArg.cs | 17 + .../KKSG/ReqGuildTerrAllianceInfoArg.cs.meta | 12 + .../KKSG/ReqGuildTerrAllianceInfoRes.cs | 74 + .../KKSG/ReqGuildTerrAllianceInfoRes.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs | 62 + .../KKSG/ReqGuildTerrChallInfoArg.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs | 74 + .../KKSG/ReqGuildTerrChallInfoRes.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildTerrCityInfo.cs | 203 + .../XMainClient/KKSG/ReqGuildTerrCityInfo.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs | 17 + .../KKSG/ReqGuildTerrCityInfoArg.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs | 17 + .../KKSG/ReqGuildTerrIntellInfoArg.cs.meta | 12 + .../XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs | 29 + .../KKSG/ReqGuildTerrIntellInfoRes.cs.meta | 12 + .../XMainClient/KKSG/ReqPlatFriendRankListArg.cs | 17 + .../KKSG/ReqPlatFriendRankListArg.cs.meta | 12 + .../XMainClient/KKSG/ReqPlatFriendRankListRes.cs | 90 + .../KKSG/ReqPlatFriendRankListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarAllInfo.cs | 117 + .../Scripts/XMainClient/KKSG/ResWarAllInfo.cs.meta | 12 + .../XMainClient/KKSG/ResWarAllTeamBaseInfo.cs | 29 + .../XMainClient/KKSG/ResWarAllTeamBaseInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ResWarArg.cs | 62 + .../Scripts/XMainClient/KKSG/ResWarArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarBuffArg.cs | 62 + .../Scripts/XMainClient/KKSG/ResWarBuffArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarBuffRes.cs | 105 + .../Scripts/XMainClient/KKSG/ResWarBuffRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarEnemyTime.cs | 62 + .../XMainClient/KKSG/ResWarEnemyTime.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarExploreArg.cs | 62 + .../XMainClient/KKSG/ResWarExploreArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarExploreRes.cs | 62 + .../XMainClient/KKSG/ResWarExploreRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs | 203 + .../Scripts/XMainClient/KKSG/ResWarFinal.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarFinalAll.cs | 29 + .../XMainClient/KKSG/ResWarFinalAll.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarGroupData.cs | 148 + .../XMainClient/KKSG/ResWarGroupData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarGuildBrief.cs | 403 ++ .../XMainClient/KKSG/ResWarGuildBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarMineData.cs | 105 + .../XMainClient/KKSG/ResWarMineData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarPVEArg.cs | 62 + .../Scripts/XMainClient/KKSG/ResWarPVEArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarPVERes.cs | 62 + .../Scripts/XMainClient/KKSG/ResWarPVERes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ResWarRank.cs | 191 + .../Scripts/XMainClient/KKSG/ResWarRank.cs.meta | 12 + .../XMainClient/KKSG/ResWarRankSimpleInfo.cs | 29 + .../XMainClient/KKSG/ResWarRankSimpleInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ResWarRes.cs | 50 + .../Scripts/XMainClient/KKSG/ResWarRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarResult.cs | 16 + .../Scripts/XMainClient/KKSG/ResWarResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarRoleRank.cs | 234 + .../XMainClient/KKSG/ResWarRoleRank.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs | 62 + .../XMainClient/KKSG/ResWarRoleRankArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs | 29 + .../XMainClient/KKSG/ResWarRoleRankRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ResWarState.cs | 14 + .../Scripts/XMainClient/KKSG/ResWarState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarStateInfo.cs | 62 + .../XMainClient/KKSG/ResWarStateInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs | 406 ++ .../XMainClient/KKSG/ResWarTeamBaseInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ResWarTime.cs | 62 + .../Scripts/XMainClient/KKSG/ResWarTime.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResWarTimeType.cs | 18 + .../XMainClient/KKSG/ResWarTimeType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResetSkillArg.cs | 62 + .../Scripts/XMainClient/KKSG/ResetSkillArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResetSkillRes.cs | 105 + .../Scripts/XMainClient/KKSG/ResetSkillRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResetTowerArg.cs | 62 + .../Scripts/XMainClient/KKSG/ResetTowerArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ResetTowerRes.cs | 62 + .../Scripts/XMainClient/KKSG/ResetTowerRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ResetType.cs | 16 + .../Scripts/XMainClient/KKSG/ResetType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ResumeItem.cs | 78 + .../Scripts/XMainClient/KKSG/ResumeItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs | 62 + .../Scripts/XMainClient/KKSG/RetAutoPlay.cs.meta | 12 + .../XMainClient/KKSG/ReturnSmeltStoneArg.cs | 62 + .../XMainClient/KKSG/ReturnSmeltStoneArg.cs.meta | 12 + .../XMainClient/KKSG/ReturnSmeltStoneRes.cs | 62 + .../XMainClient/KKSG/ReturnSmeltStoneRes.cs.meta | 12 + .../XMainClient/KKSG/ReturnToSelectRoleArg.cs | 17 + .../XMainClient/KKSG/ReturnToSelectRoleArg.cs.meta | 12 + .../XMainClient/KKSG/ReturnToSelectRoleRes.cs | 34 + .../XMainClient/KKSG/ReturnToSelectRoleRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ReviveArg.cs | 121 + .../Scripts/XMainClient/KKSG/ReviveArg.cs.meta | 12 + .../XMainClient/KKSG/ReviveCountdownInfo.cs | 148 + .../XMainClient/KKSG/ReviveCountdownInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs | 117 + .../Scripts/XMainClient/KKSG/ReviveInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ReviveRes.cs | 74 + .../Scripts/XMainClient/KKSG/ReviveRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ReviveType.cs | 24 + .../Scripts/XMainClient/KKSG/ReviveType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RewardChanged.cs | 40 + .../Scripts/XMainClient/KKSG/RewardChanged.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RewardInfo.cs | 429 ++ .../Scripts/XMainClient/KKSG/RewardInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RewardRecord.cs | 171 + .../Scripts/XMainClient/KKSG/RewardRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RewardStatus.cs | 16 + .../Scripts/XMainClient/KKSG/RewardStatus.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs | 148 + .../XMainClient/KKSG/RiftEachFloorInfo.cs.meta | 12 + .../XMainClient/KKSG/RiftFirstPassOpType.cs | 14 + .../XMainClient/KKSG/RiftFirstPassOpType.cs.meta | 12 + .../XMainClient/KKSG/RiftFirstPassRewardArg.cs | 105 + .../KKSG/RiftFirstPassRewardArg.cs.meta | 12 + .../XMainClient/KKSG/RiftFirstPassRewardRes.cs | 74 + .../KKSG/RiftFirstPassRewardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiftFloorStatus.cs | 20 + .../XMainClient/KKSG/RiftFloorStatus.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs | 207 + .../XMainClient/KKSG/RiftGuildRankInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiftRankData.cs | 191 + .../Scripts/XMainClient/KKSG/RiftRankData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiftRecord2Db.cs | 268 + .../Scripts/XMainClient/KKSG/RiftRecord2Db.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RiftResult.cs | 148 + .../Scripts/XMainClient/KKSG/RiftResult.cs.meta | 12 + .../XMainClient/KKSG/RiftSceneInfoNtfData.cs | 74 + .../XMainClient/KKSG/RiftSceneInfoNtfData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs | 207 + .../Scripts/XMainClient/KKSG/RiskBoxInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiskBoxState.cs | 20 + .../Scripts/XMainClient/KKSG/RiskBoxState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs | 46 + .../Scripts/XMainClient/KKSG/RiskBuyData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs | 17 + .../XMainClient/KKSG/RiskBuyRequestArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs | 62 + .../XMainClient/KKSG/RiskBuyRequestRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiskGridInfo.cs | 207 + .../Scripts/XMainClient/KKSG/RiskGridInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiskGridType.cs | 22 + .../Scripts/XMainClient/KKSG/RiskGridType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs | 180 + .../Scripts/XMainClient/KKSG/RiskInfo2DB.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiskMapInfos.cs | 128 + .../Scripts/XMainClient/KKSG/RiskMapInfos.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RiskOneMapInfo.cs | 214 + .../XMainClient/KKSG/RiskOneMapInfo.cs.meta | 12 + .../XMainClient/KKSG/RiskRecoverDiceData.cs | 105 + .../XMainClient/KKSG/RiskRecoverDiceData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs | 978 +++ .../Scripts/XMainClient/KKSG/RoleAllInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RoleBrief.cs | 1040 ++++ .../Scripts/XMainClient/KKSG/RoleBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleBriefInfo.cs | 262 + .../Scripts/XMainClient/KKSG/RoleBriefInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RoleConfig.cs | 40 + .../Scripts/XMainClient/KKSG/RoleConfig.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleDataReadType.cs | 14 + .../XMainClient/KKSG/RoleDataReadType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleEventType.cs | 12 + .../Scripts/XMainClient/KKSG/RoleEventType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleExtraInfo.cs | 320 + .../Scripts/XMainClient/KKSG/RoleExtraInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleFindBackRecord.cs | 376 ++ .../XMainClient/KKSG/RoleFindBackRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleGuildBonusData.cs | 51 + .../XMainClient/KKSG/RoleGuildBonusData.cs.meta | 12 + .../XMainClient/KKSG/RoleGuildContribute.cs | 191 + .../XMainClient/KKSG/RoleGuildContribute.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleLotteryInfo.cs | 719 +++ .../XMainClient/KKSG/RoleLotteryInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleMiscData.cs | 1541 +++++ .../Scripts/XMainClient/KKSG/RoleMiscData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleOutLookBrief.cs | 348 ++ .../XMainClient/KKSG/RoleOutLookBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RolePartnerData.cs | 363 ++ .../XMainClient/KKSG/RolePartnerData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RolePushInfo.cs | 40 + .../Scripts/XMainClient/KKSG/RolePushInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleRiskInfo.cs | 191 + .../Scripts/XMainClient/KKSG/RoleRiskInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleSmallInfo.cs | 234 + .../Scripts/XMainClient/KKSG/RoleSmallInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RoleState.cs | 18 + .../Scripts/XMainClient/KKSG/RoleState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleStateMatch.cs | 148 + .../XMainClient/KKSG/RoleStateMatch.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleStateNtf.cs | 51 + .../Scripts/XMainClient/KKSG/RoleStateNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleStateReport.cs | 51 + .../XMainClient/KKSG/RoleStateReport.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RoleSystem.cs | 117 + .../Scripts/XMainClient/KKSG/RoleSystem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs | 585 ++ .../Scripts/XMainClient/KKSG/RoleTask.cs.meta | 12 + .../Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs | 234 + .../XMainClient/KKSG/RoleTeamCostInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs | 172 + .../Scripts/XMainClient/KKSG/RoleType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs | 105 + .../Scripts/XMainClient/KKSG/RollInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs | 74 + .../Scripts/XMainClient/KKSG/RollInfoRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SAtlasRecord.cs | 40 + .../Scripts/XMainClient/KKSG/SAtlasRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs | 73 + .../Scripts/XMainClient/KKSG/SBuffRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SCEliRoomInfo.cs | 223 + .../Scripts/XMainClient/KKSG/SCEliRoomInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SCEliRoundInfo.cs | 74 + .../XMainClient/KKSG/SCEliRoundInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SCEliRoundType.cs | 18 + .../XMainClient/KKSG/SCEliRoundType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SCEliTeamInfo.cs | 105 + .../Scripts/XMainClient/KKSG/SCEliTeamInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SChatRecord.cs | 105 + .../Scripts/XMainClient/KKSG/SChatRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/SMail.cs | 816 +++ .../Assets/Scripts/XMainClient/KKSG/SMail.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SPetRecord.cs | 363 ++ .../Scripts/XMainClient/KKSG/SPetRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SQARecord.cs | 171 + .../Scripts/XMainClient/KKSG/SQARecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SRoleMultiReward.cs | 85 + .../XMainClient/KKSG/SRoleMultiReward.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SSceneState.cs | 105 + .../Scripts/XMainClient/KKSG/SSceneState.cs.meta | 12 + .../XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs | 105 + .../KKSG/STC_ACHIEVE_POINT_REWARD.cs.meta | 12 + .../Scripts/XMainClient/KKSG/STransformBuff.cs | 121 + .../XMainClient/KKSG/STransformBuff.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs | 16 + .../XMainClient/KKSG/SaveHistIbGiftEnum.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs | 268 + .../Scripts/XMainClient/KKSG/SceneCfg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs | 51 + .../XMainClient/KKSG/SceneDamageRankNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SceneFinishState.cs | 22 + .../XMainClient/KKSG/SceneFinishState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SceneLeftDoodad.cs | 29 + .../XMainClient/KKSG/SceneLeftDoodad.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SceneMobaOpArg.cs | 105 + .../XMainClient/KKSG/SceneMobaOpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SceneMobaOpRes.cs | 105 + .../XMainClient/KKSG/SceneMobaOpRes.cs.meta | 12 + .../XMainClient/KKSG/ScenePrepareInfoNtf.cs | 29 + .../XMainClient/KKSG/ScenePrepareInfoNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SceneRequest.cs | 148 + .../Scripts/XMainClient/KKSG/SceneRequest.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SceneStateNtf.cs | 78 + .../Scripts/XMainClient/KKSG/SceneStateNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SceneType.cs | 144 + .../Scripts/XMainClient/KKSG/SceneType.cs.meta | 12 + .../XMainClient/KKSG/SelectChargeBackRoleArg.cs | 62 + .../KKSG/SelectChargeBackRoleArg.cs.meta | 12 + .../XMainClient/KKSG/SelectChargeBackRoleRes.cs | 62 + .../KKSG/SelectChargeBackRoleRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SelectChestArg.cs | 62 + .../XMainClient/KKSG/SelectChestArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SelectChestRes.cs | 74 + .../XMainClient/KKSG/SelectChestRes.cs.meta | 12 + .../XMainClient/KKSG/SelectHeroAncientPowerArg.cs | 62 + .../KKSG/SelectHeroAncientPowerArg.cs.meta | 12 + .../XMainClient/KKSG/SelectHeroAncientPowerRes.cs | 62 + .../KKSG/SelectHeroAncientPowerRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SelectRoleNewArg.cs | 62 + .../XMainClient/KKSG/SelectRoleNewArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SelectRoleNewRes.cs | 191 + .../XMainClient/KKSG/SelectRoleNewRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SelectRoleNtfData.cs | 121 + .../XMainClient/KKSG/SelectRoleNtfData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SelfServerData.cs | 78 + .../XMainClient/KKSG/SelfServerData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SendFlowerArg.cs | 234 + .../Scripts/XMainClient/KKSG/SendFlowerArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SendFlowerRes.cs | 105 + .../Scripts/XMainClient/KKSG/SendFlowerRes.cs.meta | 12 + .../XMainClient/KKSG/SendGift2PlatFriendArg.cs | 62 + .../KKSG/SendGift2PlatFriendArg.cs.meta | 12 + .../XMainClient/KKSG/SendGift2PlatFriendRes.cs | 62 + .../KKSG/SendGift2PlatFriendRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SendGuildBonusArg.cs | 17 + .../XMainClient/KKSG/SendGuildBonusArg.cs.meta | 12 + .../KKSG/SendGuildBonusInSendListArg.cs | 62 + .../KKSG/SendGuildBonusInSendListArg.cs.meta | 12 + .../KKSG/SendGuildBonusInSendListRes.cs | 62 + .../KKSG/SendGuildBonusInSendListRes.cs.meta | 12 + .../XMainClient/KKSG/SendGuildBonusNtfData.cs | 62 + .../XMainClient/KKSG/SendGuildBonusNtfData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SendGuildBonusRes.cs | 62 + .../XMainClient/KKSG/SendGuildBonusRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ServerFlag.cs | 24 + .../Scripts/XMainClient/KKSG/ServerFlag.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ServerOpenDay.cs | 191 + .../Scripts/XMainClient/KKSG/ServerOpenDay.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ServerTag.cs | 14 + .../Scripts/XMainClient/KKSG/ServerTag.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetDesignationReq.cs | 105 + .../XMainClient/KKSG/SetDesignationReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetDesignationRes.cs | 117 + .../XMainClient/KKSG/SetDesignationRes.cs.meta | 12 + .../XMainClient/KKSG/SetHeroInHeroBattleArg.cs | 62 + .../KKSG/SetHeroInHeroBattleArg.cs.meta | 12 + .../XMainClient/KKSG/SetHeroInHeroBattleRes.cs | 62 + .../KKSG/SetHeroInHeroBattleRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetPreShowArg.cs | 29 + .../Scripts/XMainClient/KKSG/SetPreShowArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetPreShowRes.cs | 62 + .../Scripts/XMainClient/KKSG/SetPreShowRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetRoleConfigReq.cs | 105 + .../XMainClient/KKSG/SetRoleConfigReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetRoleConfigRes.cs | 62 + .../XMainClient/KKSG/SetRoleConfigRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetSubscirbeArg.cs | 117 + .../XMainClient/KKSG/SetSubscirbeArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetSubscribeRes.cs | 62 + .../XMainClient/KKSG/SetSubscribeRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SetVoipMemberState.cs | 62 + .../XMainClient/KKSG/SetVoipMemberState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ShadowCatData.cs | 74 + .../Scripts/XMainClient/KKSG/ShadowCatData.cs.meta | 12 + .../XMainClient/KKSG/ShadowCatOperationArg.cs | 105 + .../XMainClient/KKSG/ShadowCatOperationArg.cs.meta | 12 + .../XMainClient/KKSG/ShadowCatOperationRes.cs | 74 + .../XMainClient/KKSG/ShadowCatOperationRes.cs.meta | 12 + .../XMainClient/KKSG/ShareRandomGiftData.cs | 62 + .../XMainClient/KKSG/ShareRandomGiftData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ShareReportData.cs | 105 + .../XMainClient/KKSG/ShareReportData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs | 207 + .../Scripts/XMainClient/KKSG/ShopItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/ShopRecord.cs | 117 + .../Scripts/XMainClient/KKSG/ShopRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ShopRecordOne.cs | 333 + .../Scripts/XMainClient/KKSG/ShopRecordOne.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs | 62 + .../XMainClient/KKSG/ShowFlowerPageArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs | 475 ++ .../XMainClient/KKSG/ShowFlowerPageRes.cs.meta | 12 + .../XMainClient/KKSG/SkillBulletResultReqUnit.cs | 176 + .../KKSG/SkillBulletResultReqUnit.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillChangedData.cs | 301 + .../XMainClient/KKSG/SkillChangedData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillCoolPara.cs | 17 + .../Scripts/XMainClient/KKSG/SkillCoolPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillDataUnit.cs | 191 + .../Scripts/XMainClient/KKSG/SkillDataUnit.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SkillInfo.cs | 191 + .../Scripts/XMainClient/KKSG/SkillInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillInitCoolPara.cs | 17 + .../XMainClient/KKSG/SkillInitCoolPara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillLevelupArg.cs | 62 + .../XMainClient/KKSG/SkillLevelupArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillLevelupRes.cs | 62 + .../XMainClient/KKSG/SkillLevelupRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SkillRecord.cs | 193 + .../Scripts/XMainClient/KKSG/SkillRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs | 246 + .../XMainClient/KKSG/SkillReplyDataUnit.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillResultReqUnit.cs | 278 + .../XMainClient/KKSG/SkillResultReqUnit.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkillTypeEnum.cs | 26 + .../Scripts/XMainClient/KKSG/SkillTypeEnum.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityAllInfo.cs | 117 + .../XMainClient/KKSG/SkyCityAllInfo.cs.meta | 12 + .../XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs | 117 + .../KKSG/SkyCityAllTeamBaseInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs | 17 + .../Scripts/XMainClient/KKSG/SkyCityArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityEnterArg.cs | 62 + .../XMainClient/KKSG/SkyCityEnterArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityEnterRes.cs | 62 + .../XMainClient/KKSG/SkyCityEnterRes.cs.meta | 12 + .../XMainClient/KKSG/SkyCityEstimateBaseInfo.cs | 320 + .../KKSG/SkyCityEstimateBaseInfo.cs.meta | 12 + .../XMainClient/KKSG/SkyCityEstimateInfo.cs | 128 + .../XMainClient/KKSG/SkyCityEstimateInfo.cs.meta | 12 + .../XMainClient/KKSG/SkyCityFinalBaseInfo.cs | 320 + .../XMainClient/KKSG/SkyCityFinalBaseInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs | 128 + .../XMainClient/KKSG/SkyCityFinalInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityGroupData.cs | 148 + .../XMainClient/KKSG/SkyCityGroupData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityRankData.cs | 277 + .../XMainClient/KKSG/SkyCityRankData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs | 50 + .../Scripts/XMainClient/KKSG/SkyCityRes.cs.meta | 12 + .../XMainClient/KKSG/SkyCityTeamBaseInfo.cs | 320 + .../XMainClient/KKSG/SkyCityTeamBaseInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityTeamScore.cs | 105 + .../XMainClient/KKSG/SkyCityTeamScore.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs | 105 + .../XMainClient/KKSG/SkyCityTimeInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCityTimeType.cs | 22 + .../XMainClient/KKSG/SkyCityTimeType.cs.meta | 12 + .../XMainClient/KKSG/SkyCraftBattleRecord.cs | 277 + .../XMainClient/KKSG/SkyCraftBattleRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs | 34 + .../XMainClient/KKSG/SkyCraftEliRoomNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs | 62 + .../XMainClient/KKSG/SkyCraftMatchNtf.cs.meta | 12 + .../XMainClient/KKSG/SkyCraftMatchNtfType.cs | 16 + .../XMainClient/KKSG/SkyCraftMatchNtfType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs | 62 + .../XMainClient/KKSG/SkyCraftMatchReq.cs.meta | 12 + .../XMainClient/KKSG/SkyCraftMatchReqTpe.cs | 14 + .../XMainClient/KKSG/SkyCraftMatchReqTpe.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs | 62 + .../XMainClient/KKSG/SkyCraftMatchRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCraftRankData.cs | 234 + .../XMainClient/KKSG/SkyCraftRankData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyCraftType.cs | 14 + .../Scripts/XMainClient/KKSG/SkyCraftType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyTeamDetail.cs | 160 + .../Scripts/XMainClient/KKSG/SkyTeamDetail.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs | 34 + .../XMainClient/KKSG/SkyTeamMemberInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SkyTeamState.cs | 16 + .../Scripts/XMainClient/KKSG/SkyTeamState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SmeltItemArg.cs | 148 + .../Scripts/XMainClient/KKSG/SmeltItemArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SmeltItemRes.cs | 105 + .../Scripts/XMainClient/KKSG/SmeltItemRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SpActivity.cs | 149 + .../Scripts/XMainClient/KKSG/SpActivity.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpActivityChange.cs | 191 + .../XMainClient/KKSG/SpActivityChange.cs.meta | 12 + .../XMainClient/KKSG/SpActivityOffsetDay.cs | 51 + .../XMainClient/KKSG/SpActivityOffsetDay.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpActivityOne.cs | 315 + .../Scripts/XMainClient/KKSG/SpActivityOne.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpActivityTask.cs | 148 + .../XMainClient/KKSG/SpActivityTask.cs.meta | 12 + .../XMainClient/KKSG/SpFirstCompleteScene.cs | 74 + .../XMainClient/KKSG/SpFirstCompleteScene.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpecialStageInfo.cs | 121 + .../XMainClient/KKSG/SpecialStageInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpecialStateNtf.cs | 148 + .../XMainClient/KKSG/SpecialStateNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpriteChanged.cs | 51 + .../Scripts/XMainClient/KKSG/SpriteChanged.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs | 452 ++ .../Scripts/XMainClient/KKSG/SpriteInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpriteOperationArg.cs | 214 + .../XMainClient/KKSG/SpriteOperationArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpriteOperationRes.cs | 171 + .../XMainClient/KKSG/SpriteOperationRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SpriteRecord.cs | 112 + .../Scripts/XMainClient/KKSG/SpriteRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SpriteState.cs | 105 + .../Scripts/XMainClient/KKSG/SpriteState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SpriteType.cs | 36 + .../Scripts/XMainClient/KKSG/SpriteType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageAssistOne.cs | 105 + .../XMainClient/KKSG/StageAssistOne.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageCountResetArg.cs | 62 + .../XMainClient/KKSG/StageCountResetArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageCountResetRes.cs | 62 + .../XMainClient/KKSG/StageCountResetRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageGuildInfo.cs | 148 + .../XMainClient/KKSG/StageGuildInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/StageInfo.cs | 802 +++ .../Scripts/XMainClient/KKSG/StageInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageRankCond.cs | 28 + .../Scripts/XMainClient/KKSG/StageRankCond.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageResultInfo.cs | 309 + .../XMainClient/KKSG/StageResultInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageRoleResult.cs | 1782 ++++++ .../XMainClient/KKSG/StageRoleResult.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/StageTrophy.cs | 117 + .../Scripts/XMainClient/KKSG/StageTrophy.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageTrophyData.cs | 332 + .../XMainClient/KKSG/StageTrophyData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StageWatchInfo.cs | 105 + .../XMainClient/KKSG/StageWatchInfo.cs.meta | 12 + .../XMainClient/KKSG/StartBattleFailedRes.cs | 105 + .../XMainClient/KKSG/StartBattleFailedRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StartGuildCardArg.cs | 17 + .../XMainClient/KKSG/StartGuildCardArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StartGuildCardRes.cs | 160 + .../XMainClient/KKSG/StartGuildCardRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StartPlantArg.cs | 234 + .../Scripts/XMainClient/KKSG/StartPlantArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StartPlantRes.cs | 105 + .../Scripts/XMainClient/KKSG/StartPlantRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StartRollNtfData.cs | 34 + .../XMainClient/KKSG/StartRollNtfData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/StartUpType.cs | 16 + .../Scripts/XMainClient/KKSG/StartUpType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StartWeddingCarArg.cs | 17 + .../XMainClient/KKSG/StartWeddingCarArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StartWeddingCarRes.cs | 62 + .../XMainClient/KKSG/StartWeddingCarRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StcAchieveInfo.cs | 105 + .../XMainClient/KKSG/StcAchieveInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StcDesignationInfo.cs | 234 + .../XMainClient/KKSG/StcDesignationInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StepMoveData.cs | 191 + .../Scripts/XMainClient/KKSG/StepMoveData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StepSyncData.cs | 578 ++ .../Scripts/XMainClient/KKSG/StepSyncData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StepSyncInfo.cs | 74 + .../Scripts/XMainClient/KKSG/StepSyncInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StopMatchReason.cs | 18 + .../XMainClient/KKSG/StopMatchReason.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs | 62 + .../XMainClient/KKSG/StudyGuildSkillArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs | 191 + .../XMainClient/KKSG/StudyGuildSkillRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SubScribe.cs | 148 + .../Scripts/XMainClient/KKSG/SubScribe.cs.meta | 12 + .../XMainClient/KKSG/SurviveFightEndType.cs | 18 + .../XMainClient/KKSG/SurviveFightEndType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SurviveFightStage.cs | 14 + .../XMainClient/KKSG/SurviveFightStage.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SurviveRankData.cs | 191 + .../XMainClient/KKSG/SurviveRankData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SurviveRecord.cs | 191 + .../Scripts/XMainClient/KKSG/SurviveRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SurviveReqArg.cs | 17 + .../Scripts/XMainClient/KKSG/SurviveReqArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SurviveReqRes.cs | 234 + .../Scripts/XMainClient/KKSG/SurviveReqRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs | 148 + .../Scripts/XMainClient/KKSG/SweepArg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs | 160 + .../Scripts/XMainClient/KKSG/SweepRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SweepResult.cs | 29 + .../Scripts/XMainClient/KKSG/SweepResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SweepTowerArg.cs | 78 + .../Scripts/XMainClient/KKSG/SweepTowerArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SweepTowerRes.cs | 105 + .../Scripts/XMainClient/KKSG/SweepTowerRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs | 96 + .../Scripts/XMainClient/KKSG/SynCardAttr.cs.meta | 12 + .../XMainClient/KKSG/SynDoingGuildInherit.cs | 148 + .../XMainClient/KKSG/SynDoingGuildInherit.cs.meta | 12 + .../XMainClient/KKSG/SynGuilIntegralState.cs | 62 + .../XMainClient/KKSG/SynGuilIntegralState.cs.meta | 12 + .../XMainClient/KKSG/SynGuildArenaBattleInfo.cs | 160 + .../KKSG/SynGuildArenaBattleInfo.cs.meta | 12 + .../XMainClient/KKSG/SynGuildArenaFightUnit.cs | 105 + .../KKSG/SynGuildArenaFightUnit.cs.meta | 12 + .../XMainClient/KKSG/SynGuildArenaRoleOnline.cs | 105 + .../KKSG/SynGuildArenaRoleOnline.cs.meta | 12 + .../XMainClient/KKSG/SynGuildInheritNumInfo.cs | 191 + .../KKSG/SynGuildInheritNumInfo.cs.meta | 12 + .../XMainClient/KKSG/SynGuildIntegralState.cs | 62 + .../XMainClient/KKSG/SynGuildIntegralState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SynPetInfoArg.cs | 62 + .../Scripts/XMainClient/KKSG/SynPetInfoArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SynPetInfoRes.cs | 105 + .../Scripts/XMainClient/KKSG/SynPetInfoRes.cs.meta | 12 + .../XMainClient/KKSG/SyncPlatFriend2MSData.cs | 46 + .../XMainClient/KKSG/SyncPlatFriend2MSData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs | 28 + .../Scripts/XMainClient/KKSG/SyncTeamM2C.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs | 62 + .../Scripts/XMainClient/KKSG/SyncTimeArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs | 62 + .../Scripts/XMainClient/KKSG/SyncTimeRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SynsMsSubType.cs | 28 + .../Scripts/XMainClient/KKSG/SynsMsSubType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SynsMsType.cs | 14 + .../Scripts/XMainClient/KKSG/SynsMsType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs | 105 + .../Scripts/XMainClient/KKSG/SysOpenTime.cs.meta | 12 + .../Scripts/XMainClient/KKSG/SystemRewardType.cs | 40 + .../XMainClient/KKSG/SystemRewardType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/Systems.cs | 40 + .../Scripts/XMainClient/KKSG/Systems.cs.meta | 12 + .../XMainClient/KKSG/TShowRoleDailyVoteData.cs | 148 + .../KKSG/TShowRoleDailyVoteData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TShowTopListArg.cs | 105 + .../XMainClient/KKSG/TShowTopListArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TShowTopListRes.cs | 117 + .../XMainClient/KKSG/TShowTopListRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TShowVoteRecord.cs | 117 + .../XMainClient/KKSG/TShowVoteRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs | 14 + .../Scripts/XMainClient/KKSG/TableDef.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TactEnterSceneArg.cs | 105 + .../XMainClient/KKSG/TactEnterSceneArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TactEnterSceneRes.cs | 62 + .../XMainClient/KKSG/TactEnterSceneRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TajieHelp2DB.cs | 74 + .../Scripts/XMainClient/KKSG/TajieHelp2DB.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TajieHelpData.cs | 234 + .../Scripts/XMainClient/KKSG/TajieHelpData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TajieHelpSceneData.cs | 148 + .../XMainClient/KKSG/TajieHelpSceneData.cs.meta | 12 + .../XMainClient/KKSG/TakeMarriageChestArg.cs | 62 + .../XMainClient/KKSG/TakeMarriageChestArg.cs.meta | 12 + .../XMainClient/KKSG/TakeMarriageChestRes.cs | 128 + .../XMainClient/KKSG/TakeMarriageChestRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs | 62 + .../XMainClient/KKSG/TakeOffAllJadeArg.cs.meta | 12 + .../XMainClient/KKSG/TakeOffAllJadeNewArg.cs | 62 + .../XMainClient/KKSG/TakeOffAllJadeNewArg.cs.meta | 12 + .../XMainClient/KKSG/TakeOffAllJadeNewRes.cs | 62 + .../XMainClient/KKSG/TakeOffAllJadeNewRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs | 62 + .../XMainClient/KKSG/TakeOffAllJadeRes.cs.meta | 12 + .../XMainClient/KKSG/TakePartnerChestArg.cs | 62 + .../XMainClient/KKSG/TakePartnerChestArg.cs.meta | 12 + .../XMainClient/KKSG/TakePartnerChestRes.cs | 128 + .../XMainClient/KKSG/TakePartnerChestRes.cs.meta | 12 + .../XMainClient/KKSG/TalkGuildCampSpriteArg.cs | 62 + .../KKSG/TalkGuildCampSpriteArg.cs.meta | 12 + .../XMainClient/KKSG/TalkGuildCampSpriteRes.cs | 29 + .../KKSG/TalkGuildCampSpriteRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TargetHurtInfo.cs | 78 + .../XMainClient/KKSG/TargetHurtInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs | 62 + .../Scripts/XMainClient/KKSG/TarjaBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TaskActivityType.cs | 48 + .../XMainClient/KKSG/TaskActivityType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TaskConditionInfo.cs | 191 + .../XMainClient/KKSG/TaskConditionInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TaskConnType.cs | 24 + .../Scripts/XMainClient/KKSG/TaskConnType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TaskHelpInfo.cs | 234 + .../Scripts/XMainClient/KKSG/TaskHelpInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs | 117 + .../Scripts/XMainClient/KKSG/TaskInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs | 105 + .../Scripts/XMainClient/KKSG/TaskOPArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs | 14 + .../Scripts/XMainClient/KKSG/TaskOPEnum.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs | 105 + .../Scripts/XMainClient/KKSG/TaskOPRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs | 16 + .../Scripts/XMainClient/KKSG/TaskOper.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TaskRefreshNtf.cs | 105 + .../XMainClient/KKSG/TaskRefreshNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TaskStatus.cs | 18 + .../Scripts/XMainClient/KKSG/TaskStatus.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamBrief.cs | 551 ++ .../Scripts/XMainClient/KKSG/TeamBrief.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamChanged.cs | 68 + .../Scripts/XMainClient/KKSG/TeamChanged.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamCountClient.cs | 191 + .../XMainClient/KKSG/TeamCountClient.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamCountInfo.cs | 234 + .../Scripts/XMainClient/KKSG/TeamCountInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamEventG2M.cs | 12 + .../Scripts/XMainClient/KKSG/TeamEventG2M.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamExtraInfo.cs | 164 + .../Scripts/XMainClient/KKSG/TeamExtraInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamFullDataNtf.cs | 90 + .../XMainClient/KKSG/TeamFullDataNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs | 578 ++ .../XMainClient/KKSG/TeamInvRoleInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamInvRoleState.cs | 24 + .../XMainClient/KKSG/TeamInvRoleState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamInvite.cs | 336 + .../Scripts/XMainClient/KKSG/TeamInvite.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamInviteAck.cs | 148 + .../Scripts/XMainClient/KKSG/TeamInviteAck.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamInviteArg.cs | 62 + .../Scripts/XMainClient/KKSG/TeamInviteArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamInviteRes.cs | 96 + .../Scripts/XMainClient/KKSG/TeamInviteRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamMember.cs | 778 +++ .../Scripts/XMainClient/KKSG/TeamMember.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TeamMemberType.cs | 16 + .../XMainClient/KKSG/TeamMemberType.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs | 422 ++ .../Scripts/XMainClient/KKSG/TeamOPArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs | 332 + .../Scripts/XMainClient/KKSG/TeamOPRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamOperate.cs | 60 + .../Scripts/XMainClient/KKSG/TeamOperate.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamRecord.cs | 402 ++ .../Scripts/XMainClient/KKSG/TeamRecord.cs.meta | 12 + .../KKSG/TeamRequestPlatFreind2ClientData.cs | 105 + .../KKSG/TeamRequestPlatFreind2ClientData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamSelect.cs | 105 + .../Scripts/XMainClient/KKSG/TeamSelect.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamState.cs | 18 + .../Scripts/XMainClient/KKSG/TeamState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs | 78 + .../Scripts/XMainClient/KKSG/TeamSynRift.cs.meta | 12 + .../XMainClient/KKSG/TeleportNoticeState.cs | 62 + .../XMainClient/KKSG/TeleportNoticeState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs | 191 + .../Scripts/XMainClient/KKSG/TerrData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ThanksForBonusArg.cs | 62 + .../XMainClient/KKSG/ThanksForBonusArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ThanksForBonusRes.cs | 62 + .../XMainClient/KKSG/ThanksForBonusRes.cs.meta | 12 + .../XMainClient/KKSG/ThemeActivityChangeData.cs | 117 + .../KKSG/ThemeActivityChangeData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ThemeActivityData.cs | 74 + .../XMainClient/KKSG/ThemeActivityData.cs.meta | 12 + .../XMainClient/KKSG/ThemeActivityHintArg.cs | 62 + .../XMainClient/KKSG/ThemeActivityHintArg.cs.meta | 12 + .../XMainClient/KKSG/ThemeActivityHintRes.cs | 62 + .../XMainClient/KKSG/ThemeActivityHintRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TitleLevelUpArg.cs | 17 + .../XMainClient/KKSG/TitleLevelUpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TitleLevelUpRes.cs | 105 + .../XMainClient/KKSG/TitleLevelUpRes.cs.meta | 12 + .../XMainClient/KKSG/TowerFirstPassRewardData.cs | 17 + .../KKSG/TowerFirstPassRewardData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TowerRecord.cs | 418 ++ .../Scripts/XMainClient/KKSG/TowerRecord.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TowerRecord2DB.cs | 117 + .../XMainClient/KKSG/TowerRecord2DB.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TowerResult.cs | 105 + .../Scripts/XMainClient/KKSG/TowerResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TowerSceneInfoData.cs | 117 + .../XMainClient/KKSG/TowerSceneInfoData.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TransNotify.cs | 105 + .../Scripts/XMainClient/KKSG/TransNotify.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TransSkillNotfiy.cs | 85 + .../XMainClient/KKSG/TransSkillNotfiy.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TransformOpArg.cs | 148 + .../XMainClient/KKSG/TransformOpArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TransformOpRes.cs | 105 + .../XMainClient/KKSG/TransformOpRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TrophyDetail.cs | 105 + .../Scripts/XMainClient/KKSG/TrophyDetail.cs.meta | 12 + .../XMainClient/KKSG/TrophyGetTypeDetail.cs | 74 + .../XMainClient/KKSG/TrophyGetTypeDetail.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TryAlliance.cs | 62 + .../Scripts/XMainClient/KKSG/TryAlliance.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TryAllianceArg.cs | 62 + .../XMainClient/KKSG/TryAllianceArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs | 62 + .../Scripts/XMainClient/KKSG/TryDanceArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs | 62 + .../Scripts/XMainClient/KKSG/TryDanceRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TryFishArg.cs | 148 + .../Scripts/XMainClient/KKSG/TryFishArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/TryFishRes.cs | 160 + .../Scripts/XMainClient/KKSG/TryFishRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TssSdkAntiData.cs | 105 + .../XMainClient/KKSG/TssSdkAntiData.cs.meta | 12 + .../XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs | 74 + .../KKSG/TurnOverWeeklyTaskItemArg.cs.meta | 12 + .../XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs | 62 + .../KKSG/TurnOverWeeklyTaskItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/TutorialInfo.cs | 62 + .../Scripts/XMainClient/KKSG/TutorialInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UnitAppearList.cs | 29 + .../XMainClient/KKSG/UnitAppearList.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UnitAppearance.cs | 1064 ++++ .../XMainClient/KKSG/UnitAppearance.cs.meta | 12 + .../XMainClient/KKSG/UnitAppearanceField.cs | 40 + .../XMainClient/KKSG/UnitAppearanceField.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs | 105 + .../XMainClient/KKSG/UnitAppearanceTeam.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UnitSpecialState.cs | 14 + .../XMainClient/KKSG/UnitSpecialState.cs.meta | 12 + .../XMainClient/KKSG/UnlockSealFindBackData.cs | 148 + .../KKSG/UnlockSealFindBackData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UpLoadAudioReq.cs | 320 + .../XMainClient/KKSG/UpLoadAudioReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UpLoadAudioRes.cs | 105 + .../XMainClient/KKSG/UpLoadAudioRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UpdateDisplayItems.cs | 117 + .../XMainClient/KKSG/UpdateDisplayItems.cs.meta | 12 + .../XMainClient/KKSG/UpdateFreeflowHintInfo.cs | 62 + .../KKSG/UpdateFreeflowHintInfo.cs.meta | 12 + .../XMainClient/KKSG/UpdateGuildArenaState.cs | 148 + .../XMainClient/KKSG/UpdateGuildArenaState.cs.meta | 12 + .../KKSG/UpdateLeagueBattleSeasonInfo.cs | 332 + .../KKSG/UpdateLeagueBattleSeasonInfo.cs.meta | 12 + .../KKSG/UpdateLeagueEleRoomStateNtf.cs | 34 + .../KKSG/UpdateLeagueEleRoomStateNtf.cs.meta | 12 + .../XMainClient/KKSG/UpdateLeagueTeamState.cs | 62 + .../XMainClient/KKSG/UpdateLeagueTeamState.cs.meta | 12 + .../KKSG/UpdateMentorApplyStudentInfoArg.cs | 191 + .../KKSG/UpdateMentorApplyStudentInfoArg.cs.meta | 12 + .../KKSG/UpdateMentorApplyStudentInfoRes.cs | 62 + .../KKSG/UpdateMentorApplyStudentInfoRes.cs.meta | 12 + .../XMainClient/KKSG/UpdatePartnerToClient.cs | 277 + .../XMainClient/KKSG/UpdatePartnerToClient.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs | 34 + .../XMainClient/KKSG/UpdateStageInfoNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UpdateStartUpType.cs | 62 + .../XMainClient/KKSG/UpdateStartUpType.cs.meta | 12 + .../XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs | 29 + .../KKSG/UpdateVoipRoomMemberNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UpgradeEquipArg.cs | 62 + .../XMainClient/KKSG/UpgradeEquipArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UpgradeEquipRes.cs | 62 + .../XMainClient/KKSG/UpgradeEquipRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UseGuildBuffArg.cs | 105 + .../XMainClient/KKSG/UseGuildBuffArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UseGuildBuffRes.cs | 105 + .../XMainClient/KKSG/UseGuildBuffRes.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/UseItemArg.cs | 332 + .../Scripts/XMainClient/KKSG/UseItemArg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/UseItemRes.cs | 133 + .../Scripts/XMainClient/KKSG/UseItemRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UseSupplementReq.cs | 105 + .../XMainClient/KKSG/UseSupplementReq.cs.meta | 12 + .../Scripts/XMainClient/KKSG/UseSupplementRes.cs | 62 + .../XMainClient/KKSG/UseSupplementRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs | 148 + .../Assets/Scripts/XMainClient/KKSG/Vec3.cs.meta | 12 + .../Scripts/XMainClient/KKSG/VoipRoomMember.cs | 191 + .../XMainClient/KKSG/VoipRoomMember.cs.meta | 12 + .../Scripts/XMainClient/KKSG/VsPayRevivePara.cs | 105 + .../XMainClient/KKSG/VsPayRevivePara.cs.meta | 12 + .../Scripts/XMainClient/KKSG/VsPayReviveRes.cs | 62 + .../XMainClient/KKSG/VsPayReviveRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WageRewardState.cs | 16 + .../XMainClient/KKSG/WageRewardState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WarningItemSet.cs | 29 + .../XMainClient/KKSG/WarningItemSet.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WarningPackage.cs | 44 + .../XMainClient/KKSG/WarningPackage.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WarningRandomSet.cs | 59 + .../XMainClient/KKSG/WarningRandomSet.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WatchBattleData.cs | 105 + .../XMainClient/KKSG/WatchBattleData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingBrief.cs | 223 + .../Scripts/XMainClient/KKSG/WeddingBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingCarNotify.cs | 50 + .../XMainClient/KKSG/WeddingCarNotify.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingEventNtf.cs | 191 + .../XMainClient/KKSG/WeddingEventNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingInviteNtf.cs | 94 + .../XMainClient/KKSG/WeddingInviteNtf.cs.meta | 12 + .../XMainClient/KKSG/WeddingInviteOperType.cs | 26 + .../XMainClient/KKSG/WeddingInviteOperType.cs.meta | 12 + .../XMainClient/KKSG/WeddingInviteOperatorArg.cs | 148 + .../KKSG/WeddingInviteOperatorArg.cs.meta | 12 + .../XMainClient/KKSG/WeddingInviteOperatorRes.cs | 62 + .../KKSG/WeddingInviteOperatorRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs | 34 + .../XMainClient/KKSG/WeddingLoadInfoNtf.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingOperType.cs | 34 + .../XMainClient/KKSG/WeddingOperType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingOperatorArg.cs | 62 + .../XMainClient/KKSG/WeddingOperatorArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingOperatorRes.cs | 62 + .../XMainClient/KKSG/WeddingOperatorRes.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingRoleBrief.cs | 277 + .../XMainClient/KKSG/WeddingRoleBrief.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingState.cs | 14 + .../Scripts/XMainClient/KKSG/WeddingState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeddingStateNtf.cs | 191 + .../XMainClient/KKSG/WeddingStateNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/WeddingType.cs | 14 + .../Scripts/XMainClient/KKSG/WeddingType.cs.meta | 12 + .../KKSG/WeekEnd4v4BattleAllRoleData.cs | 29 + .../KKSG/WeekEnd4v4BattleAllRoleData.cs.meta | 12 + .../XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs | 492 ++ .../KKSG/WeekEnd4v4BattleRoleData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs | 148 + .../XMainClient/KKSG/WeekEnd4v4Data.cs.meta | 12 + .../XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs | 17 + .../XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs.meta | 12 + .../XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs | 191 + .../XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs.meta | 12 + .../XMainClient/KKSG/WeekEnd4v4TeamResult.cs | 160 + .../XMainClient/KKSG/WeekEnd4v4TeamResult.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeekReportData.cs | 148 + .../XMainClient/KKSG/WeekReportData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeekReportDataType.cs | 22 + .../XMainClient/KKSG/WeekReportDataType.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeeklyTaskData.cs | 354 ++ .../XMainClient/KKSG/WeeklyTaskData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs | 277 + .../XMainClient/KKSG/WeeklyTaskInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/WordNotify.cs | 62 + .../Scripts/XMainClient/KKSG/WordNotify.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs | 62 + .../XMainClient/KKSG/WorldBossAttrNtf.cs.meta | 12 + .../XMainClient/KKSG/WorldBossDamageInfo.cs | 148 + .../XMainClient/KKSG/WorldBossDamageInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WorldBossEndArg.cs | 17 + .../XMainClient/KKSG/WorldBossEndArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WorldBossEndRes.cs | 46 + .../XMainClient/KKSG/WorldBossEndRes.cs.meta | 12 + .../XMainClient/KKSG/WorldBossGuildAddAttrArg.cs | 62 + .../KKSG/WorldBossGuildAddAttrArg.cs.meta | 12 + .../XMainClient/KKSG/WorldBossGuildAddAttrRes.cs | 62 + .../KKSG/WorldBossGuildAddAttrRes.cs.meta | 12 + .../KKSG/WorldBossGuildAddAttrSyncClient.cs | 62 + .../KKSG/WorldBossGuildAddAttrSyncClient.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WorldBossState.cs | 20 + .../XMainClient/KKSG/WorldBossState.cs.meta | 12 + .../Scripts/XMainClient/KKSG/WorldBossStateNtf.cs | 148 + .../XMainClient/KKSG/WorldBossStateNtf.cs.meta | 12 + .../XMainClient/KKSG/WorldChannelLeftTimesNtf.cs | 62 + .../KKSG/WorldChannelLeftTimesNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/WorldLevel.cs | 62 + .../Scripts/XMainClient/KKSG/WorldLevel.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/XQTEState.cs | 36 + .../Scripts/XMainClient/KKSG/XQTEState.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs | 36 + .../Scripts/XMainClient/KKSG/XSkillSlot.cs.meta | 12 + .../Scripts/XMainClient/KKSG/ZoneRoleInfo.cs | 363 ++ .../Scripts/XMainClient/KKSG/ZoneRoleInfo.cs.meta | 12 + .../Scripts/XMainClient/KKSG/applyguildarenaarg.cs | 17 + .../XMainClient/KKSG/applyguildarenaarg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/applyguildarenares.cs | 62 + .../XMainClient/KKSG/applyguildarenares.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/atlasdata.cs | 105 + .../Scripts/XMainClient/KKSG/atlasdata.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/breakAtlas.cs | 105 + .../Scripts/XMainClient/KKSG/breakAtlas.cs.meta | 12 + .../Scripts/XMainClient/KKSG/breakAtlasRes.cs | 62 + .../Scripts/XMainClient/KKSG/breakAtlasRes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs | 126 + .../Scripts/XMainClient/KKSG/buffInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/buyextype.cs | 24 + .../Scripts/XMainClient/KKSG/buyextype.cs.meta | 12 + .../XMainClient/KKSG/getapplyguildlistarg.cs | 17 + .../XMainClient/KKSG/getapplyguildlistarg.cs.meta | 12 + .../XMainClient/KKSG/getapplyguildlistres.cs | 29 + .../XMainClient/KKSG/getapplyguildlistres.cs.meta | 12 + .../XMainClient/KKSG/getguildbosstimeleftArg.cs | 17 + .../KKSG/getguildbosstimeleftArg.cs.meta | 12 + .../XMainClient/KKSG/getguildbosstimeleftRes.cs | 105 + .../KKSG/getguildbosstimeleftRes.cs.meta | 12 + .../XMainClient/KKSG/getintegralbattleInfoarg.cs | 17 + .../KKSG/getintegralbattleInfoarg.cs.meta | 12 + .../XMainClient/KKSG/getintegralbattleInfores.cs | 40 + .../KKSG/getintegralbattleInfores.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs | 17 + .../Scripts/XMainClient/KKSG/gmfjoinarg.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs | 62 + .../Scripts/XMainClient/KKSG/gmfjoinres.cs.meta | 12 + .../Scripts/XMainClient/KKSG/guildArenaWarData.cs | 74 + .../XMainClient/KKSG/guildArenaWarData.cs.meta | 12 + .../Scripts/XMainClient/KKSG/guildarenadisplace.cs | 29 + .../XMainClient/KKSG/guildarenadisplace.cs.meta | 12 + .../XMainClient/KKSG/guildcamppartyNotifyNtf.cs | 128 + .../KKSG/guildcamppartyNotifyNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/petGetSkill.cs | 105 + .../Scripts/XMainClient/KKSG/petGetSkill.cs.meta | 12 + .../Assets/Scripts/XMainClient/KKSG/randomtask.cs | 62 + .../Scripts/XMainClient/KKSG/randomtask.cs.meta | 12 + Client/Assets/Scripts/XMainClient/KKSG/roArg.cs | 62 + .../Assets/Scripts/XMainClient/KKSG/roArg.cs.meta | 12 + .../Scripts/XMainClient/KKSG/synGuildInheritExp.cs | 320 + .../XMainClient/KKSG/synGuildInheritExp.cs.meta | 12 + .../Scripts/XMainClient/KKSG/titleChangeData.cs | 62 + .../XMainClient/KKSG/titleChangeData.cs.meta | 12 + .../XMainClient/LeagueBattleRecordBaseInfo.cs | 25 + .../XMainClient/LeagueBattleRecordBaseInfo.cs.meta | 12 + .../Scripts/XMainClient/LeaguePKRecordInfo.cs | 22 + .../Scripts/XMainClient/LeaguePKRecordInfo.cs.meta | 12 + .../Scripts/XMainClient/LeagueTeamDetailInfo.cs | 12 + .../XMainClient/LeagueTeamDetailInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/LevelCmd.cs | 39 + Client/Assets/Scripts/XMainClient/LevelCmd.cs.meta | 12 + Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs | 19 + .../Scripts/XMainClient/LevelCmdDesc.cs.meta | 12 + .../XMainClient/LevelRewardAbyssPartyHandler.cs | 160 + .../LevelRewardAbyssPartyHandler.cs.meta | 12 + .../XMainClient/LevelRewardActivityHandler.cs | 193 + .../XMainClient/LevelRewardActivityHandler.cs.meta | 12 + .../Scripts/XMainClient/LevelRewardArenaHandler.cs | 351 ++ .../XMainClient/LevelRewardArenaHandler.cs.meta | 12 + .../XMainClient/LevelRewardBattleDataHandler.cs | 123 + .../LevelRewardBattleDataHandler.cs.meta | 12 + .../XMainClient/LevelRewardBattleFieldHandler.cs | 182 + .../LevelRewardBattleFieldHandler.cs.meta | 12 + .../XMainClient/LevelRewardBattleRoyaleHandler.cs | 94 + .../LevelRewardBattleRoyaleHandler.cs.meta | 12 + .../XMainClient/LevelRewardBigMeleeHandler.cs | 105 + .../XMainClient/LevelRewardBigMeleeHandler.cs.meta | 12 + .../XMainClient/LevelRewardCustomBattleHandler.cs | 195 + .../LevelRewardCustomBattleHandler.cs.meta | 12 + .../XMainClient/LevelRewardGerenalHandler.cs | 748 +++ .../XMainClient/LevelRewardGerenalHandler.cs.meta | 12 + .../XMainClient/LevelRewardHeroBattleHandler.cs | 453 ++ .../LevelRewardHeroBattleHandler.cs.meta | 12 + .../XMainClient/LevelRewardMobaBattleHandler.cs | 409 ++ .../LevelRewardMobaBattleHandler.cs.meta | 12 + .../Scripts/XMainClient/LevelRewardPVPHandler.cs | 257 + .../XMainClient/LevelRewardPVPHandler.cs.meta | 12 + .../XMainClient/LevelRewardProfTrialsHandler.cs | 59 + .../LevelRewardProfTrialsHandler.cs.meta | 12 + .../Scripts/XMainClient/LevelRewardRaceHandler.cs | 149 + .../XMainClient/LevelRewardRaceHandler.cs.meta | 12 + .../XMainClient/LevelRewardReportHandler.cs | 129 + .../XMainClient/LevelRewardReportHandler.cs.meta | 12 + .../Scripts/XMainClient/LevelRewardRiftHandler.cs | 288 + .../XMainClient/LevelRewardRiftHandler.cs.meta | 12 + .../XMainClient/LevelRewardSelectChestHandler.cs | 678 ++ .../LevelRewardSelectChestHandler.cs.meta | 12 + .../XMainClient/LevelRewardSkyArenaHandler.cs | 147 + .../XMainClient/LevelRewardSkyArenaHandler.cs.meta | 12 + .../XMainClient/LevelRewardStageFailHandler.cs | 95 + .../LevelRewardStageFailHandler.cs.meta | 12 + .../XMainClient/LevelRewardSuperRiskFailHandler.cs | 101 + .../LevelRewardSuperRiskFailHandler.cs.meta | 12 + .../XMainClient/LevelRewardSuperRiskHandler.cs | 114 + .../LevelRewardSuperRiskHandler.cs.meta | 12 + .../XMainClient/LevelRewardTeamLeagueBigHandler.cs | 275 + .../LevelRewardTeamLeagueBigHandler.cs.meta | 12 + .../LevelRewardTeamLeagueSmallHandler.cs | 136 + .../LevelRewardTeamLeagueSmallHandler.cs.meta | 12 + .../XMainClient/LevelRewardTerritoryHandler.cs | 196 + .../LevelRewardTerritoryHandler.cs.meta | 12 + .../LevelRewardWeekendPartyBattleHandler.cs | 260 + .../LevelRewardWeekendPartyBattleHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/LevelSealSys.cs | 11 + .../Scripts/XMainClient/LevelSealSys.cs.meta | 12 + .../Assets/Scripts/XMainClient/LevelSpawnType.cs | 12 + .../Scripts/XMainClient/LevelSpawnType.cs.meta | 12 + .../Scripts/XMainClient/LoadFinishedCallback.cs | 6 + .../XMainClient/LoadFinishedCallback.cs.meta | 12 + Client/Assets/Scripts/XMainClient/LotteryCD.cs | 11 + .../Assets/Scripts/XMainClient/LotteryCD.cs.meta | 12 + .../Scripts/XMainClient/LoverLivenessRecord.cs | 74 + .../XMainClient/LoverLivenessRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/LuaNetNode.cs | 54 + .../Assets/Scripts/XMainClient/LuaNetNode.cs.meta | 12 + .../Scripts/XMainClient/MadDuckSiegeDocument.cs | 126 + .../XMainClient/MadDuckSiegeDocument.cs.meta | 12 + .../XMainClient/MadDuckSiegeFrameHandler.cs | 110 + .../XMainClient/MadDuckSiegeFrameHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MailItem.cs | 31 + Client/Assets/Scripts/XMainClient/MailItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MailOP.cs | 12 + Client/Assets/Scripts/XMainClient/MailOP.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MailState.cs | 11 + .../Assets/Scripts/XMainClient/MailState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MailType.cs | 12 + Client/Assets/Scripts/XMainClient/MailType.cs.meta | 12 + .../Scripts/XMainClient/MallSystemBehaviour.cs | 51 + .../XMainClient/MallSystemBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MallType.cs | 17 + Client/Assets/Scripts/XMainClient/MallType.cs.meta | 12 + .../Assets/Scripts/XMainClient/MapSignalHandler.cs | 168 + .../Scripts/XMainClient/MapSignalHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MaqueeInfo.cs | 17 + .../Assets/Scripts/XMainClient/MaqueeInfo.cs.meta | 12 + .../Scripts/XMainClient/MasterApplyInfoItem.cs | 14 + .../XMainClient/MasterApplyInfoItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MatPackage.cs | 230 + .../Assets/Scripts/XMainClient/MatPackage.cs.meta | 12 + .../Assets/Scripts/XMainClient/MemberPrivilege.cs | 11 + .../Scripts/XMainClient/MemberPrivilege.cs.meta | 12 + .../Scripts/XMainClient/MentorBeenApplyedInfo.cs | 22 + .../XMainClient/MentorBeenApplyedInfo.cs.meta | 12 + .../Scripts/XMainClient/MentorRelationInfo.cs | 23 + .../Scripts/XMainClient/MentorRelationInfo.cs.meta | 12 + .../Scripts/XMainClient/MentorRelationTime.cs | 14 + .../Scripts/XMainClient/MentorRelationTime.cs.meta | 12 + .../Scripts/XMainClient/MentorshipTaskInfo.cs | 16 + .../Scripts/XMainClient/MentorshipTaskInfo.cs.meta | 12 + .../Scripts/XMainClient/MentorshipTaskStatus.cs | 11 + .../XMainClient/MentorshipTaskStatus.cs.meta | 12 + .../Scripts/XMainClient/MessageShowInfoItem.cs | 22 + .../XMainClient/MessageShowInfoItem.cs.meta | 12 + .../Scripts/XMainClient/MilitaryRankBehaviour.cs | 100 + .../XMainClient/MilitaryRankBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/MilitaryRankData.cs | 15 + .../Scripts/XMainClient/MilitaryRankData.cs.meta | 12 + .../Scripts/XMainClient/MobaBattleRecordHandler.cs | 328 + .../XMainClient/MobaBattleRecordHandler.cs.meta | 12 + .../Scripts/XMainClient/MobaEntranceBehaviour.cs | 122 + .../XMainClient/MobaEntranceBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/MobaEntranceView.cs | 601 ++ .../Scripts/XMainClient/MobaEntranceView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MobaInfoPool.cs | 39 + .../Scripts/XMainClient/MobaInfoPool.cs.meta | 12 + .../Scripts/XMainClient/MobaKillBehaviour.cs | 50 + .../Scripts/XMainClient/MobaKillBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MobaKillEnum.cs | 19 + .../Scripts/XMainClient/MobaKillEnum.cs.meta | 12 + .../Assets/Scripts/XMainClient/MobaKillStatus.cs | 11 + .../Scripts/XMainClient/MobaKillStatus.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MobaKillView.cs | 185 + .../Scripts/XMainClient/MobaKillView.cs.meta | 12 + .../Assets/Scripts/XMainClient/MobaMemberData.cs | 45 + .../Scripts/XMainClient/MobaMemberData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MobaReminder.cs | 38 + .../Scripts/XMainClient/MobaReminder.cs.meta | 12 + .../Assets/Scripts/XMainClient/MobaReminderEnum.cs | 10 + .../Scripts/XMainClient/MobaReminderEnum.cs.meta | 12 + .../Monster_broo_black_teleport_back.cs | 63 + .../Monster_broo_black_teleport_back.cs.meta | 12 + .../Monster_broo_white_boss_teleport_back.cs | 63 + .../Monster_broo_white_boss_teleport_back.cs.meta | 12 + .../Monster_broo_white_boss_teleport_foward.cs | 63 + ...Monster_broo_white_boss_teleport_foward.cs.meta | 12 + .../Monster_broo_white_opposer_teleport_back.cs | 63 + ...onster_broo_white_opposer_teleport_back.cs.meta | 12 + .../Scripts/XMainClient/MountLoadCallback.cs | 6 + .../Scripts/XMainClient/MountLoadCallback.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MountLoadTask.cs | 244 + .../Scripts/XMainClient/MountLoadTask.cs.meta | 12 + .../Assets/Scripts/XMainClient/MulActivityInfo.cs | 39 + .../Scripts/XMainClient/MulActivityInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/MulActivityState.cs | 12 + .../Scripts/XMainClient/MulActivityState.cs.meta | 12 + .../Scripts/XMainClient/MulActivityTagType.cs | 11 + .../Scripts/XMainClient/MulActivityTagType.cs.meta | 12 + .../Scripts/XMainClient/MultipleDirection.cs | 16 + .../Scripts/XMainClient/MultipleDirection.cs.meta | 12 + Client/Assets/Scripts/XMainClient/MyMentorship.cs | 11 + .../Scripts/XMainClient/MyMentorship.cs.meta | 12 + .../Scripts/XMainClient/NPC_Velskud_teleport.cs | 63 + .../XMainClient/NPC_Velskud_teleport.cs.meta | 12 + .../XMainClient/NPC_Velskud_wing_teleport.cs | 63 + .../XMainClient/NPC_Velskud_wing_teleport.cs.meta | 12 + Client/Assets/Scripts/XMainClient/NeedItemView.cs | 85 + .../Scripts/XMainClient/NeedItemView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/NetErrCode.cs | 18 + .../Assets/Scripts/XMainClient/NetErrCode.cs.meta | 12 + Client/Assets/Scripts/XMainClient/NetEvent.cs | 57 + Client/Assets/Scripts/XMainClient/NetEvent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/NetEvtType.cs | 11 + .../Assets/Scripts/XMainClient/NetEvtType.cs.meta | 12 + .../Scripts/XMainClient/NextLevelSealBehaviour.cs | 43 + .../XMainClient/NextLevelSealBehaviour.cs.meta | 12 + .../Scripts/XMainClient/NextLevelSealView.cs | 139 + .../Scripts/XMainClient/NextLevelSealView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/NodeType.cs | 15 + Client/Assets/Scripts/XMainClient/NodeType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/NoticeType.cs | 31 + .../Assets/Scripts/XMainClient/NoticeType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/NotifyType.cs | 12 + .../Assets/Scripts/XMainClient/NotifyType.cs.meta | 12 + .../Assets/Scripts/XMainClient/NpcPopSpeekView.cs | 89 + .../Scripts/XMainClient/NpcPopSpeekView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/NpcTaskState.cs | 13 + .../Scripts/XMainClient/NpcTaskState.cs.meta | 12 + .../Assets/Scripts/XMainClient/OptionsBattleTab.cs | 12 + .../Scripts/XMainClient/OptionsBattleTab.cs.meta | 12 + Client/Assets/Scripts/XMainClient/OptionsTab.cs | 16 + .../Assets/Scripts/XMainClient/OptionsTab.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PTC.meta | 9 + Client/Assets/Scripts/XMainClient/PTC/Process.meta | 9 + .../PTC/Process/Process_PtcA2C_AudioAIDNtf.cs | 11 + .../PTC/Process/Process_PtcA2C_AudioAIDNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_AIDebugInfo.cs | 26 + .../PTC/Process/Process_PtcG2C_AIDebugInfo.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_AbsPartyNtf.cs | 13 + .../PTC/Process/Process_PtcG2C_AbsPartyNtf.cs.meta | 12 + .../Process/Process_PtcG2C_ActivityRoleNotify.cs | 11 + .../Process_PtcG2C_ActivityRoleNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs | 17 + .../Process_PtcG2C_AllGiftIBItemNtf.cs.meta | 12 + .../Process_PtcG2C_AllyMatchRoleIDNotify.cs | 17 + .../Process_PtcG2C_AllyMatchRoleIDNotify.cs.meta | 12 + .../Process_PtcG2C_AntiAddictionRemindNtf.cs | 17 + .../Process_PtcG2C_AntiAddictionRemindNtf.cs.meta | 12 + .../Process_PtcG2C_AttributeChangeNotify.cs | 18 + .../Process_PtcG2C_AttributeChangeNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs | 12 + .../Process/Process_PtcG2C_BFFightTimeNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs | 13 + .../Process/Process_PtcG2C_BMFightTimeNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs | 13 + .../Process/Process_PtcG2C_BMReadyTimeNtf.cs.meta | 12 + .../Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs | 13 + .../Process_PtcG2C_BMRoleSceneSyncNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs | 12 + .../Process/Process_PtcG2C_BackFlowOpenNtf.cs.meta | 12 + .../Process_PtcG2C_BattleFieldReadyInfoNtf.cs | 30 + .../Process_PtcG2C_BattleFieldReadyInfoNtf.cs.meta | 12 + .../Process/Process_PtcG2C_BattleFieldReliveNtf.cs | 12 + .../Process_PtcG2C_BattleFieldReliveNtf.cs.meta | 12 + .../Process_PtcG2C_BattleFieldRoleAgainstNtf.cs | 11 + ...rocess_PtcG2C_BattleFieldRoleAgainstNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_BattleResultNtf.cs | 49 + .../Process/Process_PtcG2C_BattleResultNtf.cs.meta | 12 + .../Process/Process_PtcG2C_BattleStatisticsNtf.cs | 13 + .../Process_PtcG2C_BattleStatisticsNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs | 13 + .../Process_PtcG2C_BattleWatcherNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs | 16 + .../Process_PtcG2C_BigMeleePointNtf.cs.meta | 12 + .../Process_PtcG2C_BigMeleePointOutLookNtf.cs | 18 + .../Process_PtcG2C_BigMeleePointOutLookNtf.cs.meta | 12 + .../Process/Process_PtcG2C_BigMeleeReliveNtf.cs | 13 + .../Process_PtcG2C_BigMeleeReliveNtf.cs.meta | 12 + .../Process/Process_PtcG2C_BossRushOneFinishNtf.cs | 32 + .../Process_PtcG2C_BossRushOneFinishNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_BuffNotify.cs | 45 + .../PTC/Process/Process_PtcG2C_BuffNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_CdCall.cs | 23 + .../PTC/Process/Process_PtcG2C_CdCall.cs.meta | 12 + .../Process/Process_PtcG2C_ChangeFashionNotify.cs | 22 + .../Process_PtcG2C_ChangeFashionNotify.cs.meta | 12 + .../Process/Process_PtcG2C_ChangeNameCountNtf.cs | 13 + .../Process_PtcG2C_ChangeNameCountNtf.cs.meta | 12 + .../Process/Process_PtcG2C_ChangeSupplementNtf.cs | 19 + .../Process_PtcG2C_ChangeSupplementNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs | 18 + .../Process/Process_PtcG2C_ChatNotifyG2C.cs.meta | 12 + .../Process/Process_PtcG2C_ChatOfflineNotify.cs | 13 + .../Process_PtcG2C_ChatOfflineNotify.cs.meta | 12 + .../Process/Process_PtcG2C_CheckinInfoNotify.cs | 13 + .../Process_PtcG2C_CheckinInfoNotify.cs.meta | 12 + .../Process/Process_PtcG2C_ClientOnlyBuffNotify.cs | 38 + .../Process_PtcG2C_ClientOnlyBuffNotify.cs.meta | 12 + .../Process/Process_PtcG2C_CloseChooseHeroNtf.cs | 13 + .../Process_PtcG2C_CloseChooseHeroNtf.cs.meta | 12 + .../Process/Process_PtcG2C_CompleteAchivement.cs | 17 + .../Process_PtcG2C_CompleteAchivement.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_CorrectPosition.cs | 22 + .../Process/Process_PtcG2C_CorrectPosition.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_CountDownNtf.cs | 13 + .../Process/Process_PtcG2C_CountDownNtf.cs.meta | 12 + .../Process/Process_PtcG2C_CoverDesignationNtf.cs | 14 + .../Process_PtcG2C_CoverDesignationNtf.cs.meta | 12 + .../Process_PtcG2C_CustomBattleLoadingNtf.cs | 11 + .../Process_PtcG2C_CustomBattleLoadingNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_DPSNotify.cs | 13 + .../PTC/Process/Process_PtcG2C_DPSNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_DeathNotify.cs | 29 + .../PTC/Process/Process_PtcG2C_DeathNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_DisplayAddItem.cs | 13 + .../Process/Process_PtcG2C_DisplayAddItem.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs | 11 + .../Process_PtcG2C_DoodadItemAddNtf.cs.meta | 12 + .../Process/Process_PtcG2C_DoodadItemSkillsNtf.cs | 16 + .../Process_PtcG2C_DoodadItemSkillsNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs | 12 + .../Process_PtcG2C_DoodadItemUseNtf.cs.meta | 12 + .../Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs | 16 + .../Process_PtcG2C_EnemyDorpDoodadNtf.cs.meta | 12 + .../Process_PtcG2C_EnterSceneCoolDownNotify.cs | 14 + ...Process_PtcG2C_EnterSceneCoolDownNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_EnterSceneNtf.cs | 23 + .../Process/Process_PtcG2C_EnterSceneNtf.cs.meta | 12 + .../Process_PtcG2C_EntityTargetChangeNtf.cs | 19 + .../Process_PtcG2C_EntityTargetChangeNtf.cs.meta | 12 + .../Process_PtcG2C_ExecuteLevelScriptNtf.cs | 13 + .../Process_PtcG2C_ExecuteLevelScriptNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs | 12 + .../Process/Process_PtcG2C_ExpFindBackNtf.cs.meta | 12 + .../Process/Process_PtcG2C_FashoinChangedNtf.cs | 13 + .../Process_PtcG2C_FashoinChangedNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs | 14 + .../Process_PtcG2C_FastMBConfirmNtf.cs.meta | 12 + .../Process_PtcG2C_FatigueRecoverTimeNotify.cs | 13 + ...Process_PtcG2C_FatigueRecoverTimeNotify.cs.meta | 12 + .../Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs | 49 + .../Process_PtcG2C_FetchEnemyDoodadNtf.cs.meta | 12 + .../Process/Process_PtcG2C_FightGroupChangeNtf.cs | 18 + .../Process_PtcG2C_FightGroupChangeNtf.cs.meta | 12 + .../Process/Process_PtcG2C_FirstPassRewardNtf.cs | 12 + .../Process_PtcG2C_FirstPassRewardNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs | 11 + .../Process_PtcG2C_FiveDayRewardNTF.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_FlowerRainNtf.cs | 11 + .../Process/Process_PtcG2C_FlowerRainNtf.cs.meta | 12 + .../Process/Process_PtcG2C_FlowerRankRewardNtf.cs | 13 + .../Process_PtcG2C_FlowerRankRewardNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs | 13 + .../Process/Process_PtcG2C_GCFSynG2CNtf.cs.meta | 12 + .../Process/Process_PtcG2C_GCFZhanLingNotify.cs | 13 + .../Process_PtcG2C_GCFZhanLingNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_GSErrorNotify.cs | 52 + .../Process/Process_PtcG2C_GSErrorNotify.cs.meta | 12 + .../Process/Process_PtcG2C_GardenBanquetNotice.cs | 12 + .../Process_PtcG2C_GardenBanquetNotice.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs | 11 + .../Process_PtcG2C_GardenBanquetNtf.cs.meta | 12 + .../Process_PtcG2C_GardenPlantEventNotice.cs | 12 + .../Process_PtcG2C_GardenPlantEventNotice.cs.meta | 12 + .../Process/Process_PtcG2C_GiftIBBackInfoNtf.cs | 11 + .../Process_PtcG2C_GiftIBBackInfoNtf.cs.meta | 12 + .../Process/Process_PtcG2C_GmfAllFightEndNtf.cs | 13 + .../Process_PtcG2C_GmfAllFightEndNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs | 13 + .../Process/Process_PtcG2C_GmfBaseDataNtf.cs.meta | 12 + .../Process/Process_PtcG2C_GmfBattleStateNtf.cs | 13 + .../Process_PtcG2C_GmfBattleStateNtf.cs.meta | 12 + .../Process/Process_PtcG2C_GmfGuildCombatNtf.cs | 13 + .../Process_PtcG2C_GmfGuildCombatNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs | 11 + .../Process_PtcG2C_GmfJoinBattleReq.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_GmfKickNty.cs | 13 + .../PTC/Process/Process_PtcG2C_GmfKickNty.cs.meta | 12 + .../Process/Process_PtcG2C_GmfOneBattleEndNtf.cs | 13 + .../Process_PtcG2C_GmfOneBattleEndNtf.cs.meta | 12 + .../Process/Process_PtcG2C_GmfWaitFightBegin.cs | 13 + .../Process_PtcG2C_GmfWaitFightBegin.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs | 13 + .../Process_PtcG2C_GmfWaitOtherLoad.cs.meta | 12 + .../Process/Process_PtcG2C_GprAllFightEndNtf.cs | 13 + .../Process_PtcG2C_GprAllFightEndNtf.cs.meta | 12 + .../Process/Process_PtcG2C_GprOneBattleEndNtf.cs | 13 + .../Process_PtcG2C_GprOneBattleEndNtf.cs.meta | 12 + .../Process/Process_PtcG2C_GuildBestCardsNtf.cs | 13 + .../Process_PtcG2C_GuildBestCardsNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs | 13 + .../Process_PtcG2C_GuildBossTimeOut.cs.meta | 12 + .../Process_PtcG2C_GuildCampPartyTradeNotify.cs | 27 + ...rocess_PtcG2C_GuildCampPartyTradeNotify.cs.meta | 12 + .../Process/Process_PtcG2C_GuildCheckinBoxNtf.cs | 13 + .../Process_PtcG2C_GuildCheckinBoxNtf.cs.meta | 12 + .../Process/Process_PtcG2C_GuildGoblinKillNtf.cs | 17 + .../Process_PtcG2C_GuildGoblinKillNtf.cs.meta | 12 + .../Process_PtcG2C_GuildNotifyMemberChanged.cs | 11 + ...Process_PtcG2C_GuildNotifyMemberChanged.cs.meta | 12 + .../Process_PtcG2C_GuildSettingChangedNotify.cs | 24 + ...rocess_PtcG2C_GuildSettingChangedNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_HallIconSNtf.cs | 13 + .../Process/Process_PtcG2C_HallIconSNtf.cs.meta | 12 + .../Process_PtcG2C_HeroBattleAncientPower.cs | 27 + .../Process_PtcG2C_HeroBattleAncientPower.cs.meta | 12 + .../Process/Process_PtcG2C_HeroBattleCanUseHero.cs | 13 + .../Process_PtcG2C_HeroBattleCanUseHero.cs.meta | 12 + .../Process/Process_PtcG2C_HeroBattleDataNtf.cs | 11 + .../Process_PtcG2C_HeroBattleDataNtf.cs.meta | 12 + .../Process_PtcG2C_HeroBattleInCircleNtf.cs | 13 + .../Process_PtcG2C_HeroBattleInCircleNtf.cs.meta | 12 + .../Process/Process_PtcG2C_HeroBattleOverTime.cs | 13 + .../Process_PtcG2C_HeroBattleOverTime.cs.meta | 12 + .../Process/Process_PtcG2C_HeroBattleSyncNtf.cs | 13 + .../Process_PtcG2C_HeroBattleSyncNtf.cs.meta | 12 + .../Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs | 13 + .../Process_PtcG2C_HeroBattleTeamMsgNtf.cs.meta | 12 + .../Process_PtcG2C_HeroBattleTeamRoleNtf.cs | 13 + .../Process_PtcG2C_HeroBattleTeamRoleNtf.cs.meta | 12 + .../Process/Process_PtcG2C_HeroBattleTipsNtf.cs | 13 + .../Process_PtcG2C_HeroBattleTipsNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_HeroKillNotify.cs | 13 + .../Process/Process_PtcG2C_HeroKillNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_HintNotify.cs | 206 + .../PTC/Process/Process_PtcG2C_HintNotify.cs.meta | 12 + .../Process/Process_PtcG2C_HorseAnimationNtf.cs | 13 + .../Process_PtcG2C_HorseAnimationNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs | 11 + .../Process_PtcG2C_HorseAwardAllNtf.cs.meta | 12 + .../Process_PtcG2C_HorseCountDownTimeNtf.cs | 13 + .../Process_PtcG2C_HorseCountDownTimeNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs | 18 + .../Process_PtcG2C_HorseFailTipsNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_HorseFinalNtf.cs | 13 + .../Process/Process_PtcG2C_HorseFinalNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_HorseRankNtf.cs | 13 + .../Process/Process_PtcG2C_HorseRankNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs | 13 + .../Process_PtcG2C_HorseWaitTimeNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs | 13 + .../Process/Process_PtcG2C_IBShopHasBuyNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_IBShopIcon.cs | 22 + .../PTC/Process/Process_PtcG2C_IBShopIcon.cs.meta | 12 + .../Process/Process_PtcG2C_IdipPunishInfoNtf.cs | 13 + .../Process_PtcG2C_IdipPunishInfoNtf.cs.meta | 12 + .../Process_PtcG2C_InvFightBefEnterSceneNtf.cs | 13 + ...Process_PtcG2C_InvFightBefEnterSceneNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ItemChangedNtf.cs | 36 + .../Process/Process_PtcG2C_ItemChangedNtf.cs.meta | 12 + .../Process/Process_PtcG2C_ItemCircleDrawResult.cs | 13 + .../Process_PtcG2C_ItemCircleDrawResult.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs | 14 + .../Process/Process_PtcG2C_ItemFindBackNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs | 11 + .../Process/Process_PtcG2C_JadeSlotInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_JoinRoomReply.cs | 13 + .../Process/Process_PtcG2C_JoinRoomReply.cs.meta | 12 + .../Process/Process_PtcG2C_KickAccountJkydNtf.cs | 16 + .../Process_PtcG2C_KickAccountJkydNtf.cs.meta | 12 + .../Process/Process_PtcG2C_KillEnemyScoreNtf.cs | 18 + .../Process_PtcG2C_KillEnemyScoreNtf.cs.meta | 12 + .../Process_PtcG2C_LeagueBattleBaseDataNtf.cs | 13 + .../Process_PtcG2C_LeagueBattleBaseDataNtf.cs.meta | 12 + .../Process_PtcG2C_LeagueBattleLoadInfoNtf.cs | 13 + .../Process_PtcG2C_LeagueBattleLoadInfoNtf.cs.meta | 12 + .../Process_PtcG2C_LeagueBattleOneResultNft.cs | 13 + ...Process_PtcG2C_LeagueBattleOneResultNft.cs.meta | 12 + .../Process_PtcG2C_LeagueBattleResultNtf.cs | 13 + .../Process_PtcG2C_LeagueBattleResultNtf.cs.meta | 12 + .../Process/Process_PtcG2C_LeagueBattleStateNtf.cs | 13 + .../Process_PtcG2C_LeagueBattleStateNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs | 11 + .../Process/Process_PtcG2C_LeaveSceneNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_LeaveTeam.cs | 14 + .../PTC/Process/Process_PtcG2C_LeaveTeam.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_LevelChangeNtf.cs | 38 + .../Process/Process_PtcG2C_LevelChangeNtf.cs.meta | 12 + .../Process/Process_PtcG2C_LevelScriptStateNtf.cs | 16 + .../Process_PtcG2C_LevelScriptStateNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_LevelSealNtf.cs | 13 + .../Process/Process_PtcG2C_LevelSealNtf.cs.meta | 12 + .../Process_PtcG2C_LoginActivityStatusNtf.cs | 11 + .../Process_PtcG2C_LoginActivityStatusNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs | 13 + .../Process_PtcG2C_LoginReward2CNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs | 13 + .../Process/Process_PtcG2C_MilitaryrankNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs | 18 + .../Process/Process_PtcG2C_MobaAddExpNtf.cs.meta | 12 + .../Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs | 13 + .../Process_PtcG2C_MobaBattleTeamMsgNtf.cs.meta | 12 + .../Process_PtcG2C_MobaBattleTeamRoleNtf.cs | 13 + .../Process_PtcG2C_MobaBattleTeamRoleNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_MobaHintNtf.cs | 13 + .../PTC/Process/Process_PtcG2C_MobaHintNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs | 13 + .../Process/Process_PtcG2C_MobaMiniMapNtf.cs.meta | 12 + .../Process/Process_PtcG2C_MobaRoleChangeNtf.cs | 13 + .../Process_PtcG2C_MobaRoleChangeNtf.cs.meta | 12 + .../Process/Process_PtcG2C_MobaSignalBroadcast.cs | 16 + .../Process_PtcG2C_MobaSignalBroadcast.cs.meta | 12 + .../Process_PtcG2C_MulActivityStateChange.cs | 12 + .../Process_PtcG2C_MulActivityStateChange.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs | 14 + .../Process_PtcG2C_NewGuildBonusNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs | 13 + .../Process_PtcG2C_NextDayRewardNtf.cs.meta | 12 + .../Process_PtcG2C_NoticeDoingGuildInherit.cs | 11 + .../Process_PtcG2C_NoticeDoingGuildInherit.cs.meta | 12 + .../Process_PtcG2C_NoticeGuildArenaBegin.cs | 13 + .../Process_PtcG2C_NoticeGuildArenaBegin.cs.meta | 12 + .../Process/Process_PtcG2C_NoticeGuildBossEnd.cs | 13 + .../Process_PtcG2C_NoticeGuildBossEnd.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_NoticeHungryDown.cs | 13 + .../Process_PtcG2C_NoticeHungryDown.cs.meta | 12 + .../Process/Process_PtcG2C_NotifyAccountData.cs | 14 + .../Process_PtcG2C_NotifyAccountData.cs.meta | 12 + .../Process_PtcG2C_NotifyClientEnterFight.cs | 29 + .../Process_PtcG2C_NotifyClientEnterFight.cs.meta | 12 + .../Process/Process_PtcG2C_NotifyEnhanceSuit.cs | 12 + .../Process_PtcG2C_NotifyEnhanceSuit.cs.meta | 12 + .../Process_PtcG2C_NotifyGuildBossAddAttr.cs | 13 + .../Process_PtcG2C_NotifyGuildBossAddAttr.cs.meta | 12 + .../Process/Process_PtcG2C_NotifyIdipMessageGs.cs | 13 + .../Process_PtcG2C_NotifyIdipMessageGs.cs.meta | 12 + .../Process_PtcG2C_NotifyRoleEmpty2Watcher.cs | 31 + .../Process_PtcG2C_NotifyRoleEmpty2Watcher.cs.meta | 12 + .../Process_PtcG2C_NotifyStartUpTypeToClient.cs | 13 + ...rocess_PtcG2C_NotifyStartUpTypeToClient.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_NotifyWatchData.cs | 13 + .../Process/Process_PtcG2C_NotifyWatchData.cs.meta | 12 + .../Process_PtcG2C_NotifyWatchIconNum2Client.cs | 13 + ...rocess_PtcG2C_NotifyWatchIconNum2Client.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_NpcFlNtf.cs | 13 + .../PTC/Process/Process_PtcG2C_NpcFlNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_OnTransferWall.cs | 15 + .../Process/Process_PtcG2C_OnTransferWall.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs | 13 + .../Process/Process_PtcG2C_OnlineRewardNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_OpenSystemNtf.cs | 43 + .../Process/Process_PtcG2C_OpenSystemNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs | 18 + .../Process_PtcG2C_OutLookChangeNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs | 15 + .../Process/Process_PtcG2C_PayAllInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PayGiftNtf.cs | 11 + .../PTC/Process/Process_PtcG2C_PayGiftNtf.cs.meta | 12 + .../Process_PtcG2C_PayMemberPrivilegeNtf.cs | 13 + .../Process_PtcG2C_PayMemberPrivilegeNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PayScoreNtf.cs | 11 + .../PTC/Process/Process_PtcG2C_PayScoreNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs | 13 + .../Process/Process_PtcG2C_PetChangeNotfiy.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PetInviteNtf.cs | 13 + .../Process/Process_PtcG2C_PetInviteNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PkPrepareNtf.cs | 118 + .../Process/Process_PtcG2C_PkPrepareNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs | 17 + .../Process/Process_PtcG2C_PkRoleInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs | 11 + .../Process/Process_PtcG2C_PkTimeoutNtf.cs.meta | 12 + .../Process_PtcG2C_PlatformShareAwardNtf.cs | 13 + .../Process_PtcG2C_PlatformShareAwardNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PlayDiceNtf.cs | 12 + .../PTC/Process/Process_PtcG2C_PlayDiceNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PositionDebug.cs | 23 + .../Process/Process_PtcG2C_PositionDebug.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PushPraiseNtf.cs | 53 + .../Process/Process_PtcG2C_PushPraiseNtf.cs.meta | 12 + .../Process/Process_PtcG2C_PvpBattleBeginNtf.cs | 13 + .../Process_PtcG2C_PvpBattleBeginNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs | 13 + .../Process/Process_PtcG2C_PvpBattleEndNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_PvpBattleKill.cs | 52 + .../Process/Process_PtcG2C_PvpBattleKill.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_QANotify.cs | 42 + .../PTC/Process/Process_PtcG2C_QANotify.cs.meta | 12 + .../Process/Process_PtcG2C_QueryRoleStateAck.cs | 37 + .../Process_PtcG2C_QueryRoleStateAck.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs | 13 + .../Process/Process_PtcG2C_ReachAchieveNtf.cs.meta | 12 + .../Process/Process_PtcG2C_ReachDesignationNtf.cs | 14 + .../Process_PtcG2C_ReachDesignationNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs | 11 + .../Process_PtcG2C_ReceiveFlowerNtf.cs.meta | 12 + .../Process/Process_PtcG2C_ReconnectSyncNotify.cs | 14 + .../Process_PtcG2C_ReconnectSyncNotify.cs.meta | 12 + .../Process/Process_PtcG2C_ResWarBattleDataNtf.cs | 13 + .../Process_PtcG2C_ResWarBattleDataNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs | 13 + .../Process_PtcG2C_ResWarTeamResOne.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ReviveCountdown.cs | 18 + .../Process/Process_PtcG2C_ReviveCountdown.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ReviveNotify.cs | 47 + .../Process/Process_PtcG2C_ReviveNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_RewardChangedNtf.cs | 13 + .../Process_PtcG2C_RewardChangedNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs | 13 + .../Process_PtcG2C_RiftSceneInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_RiskBuyNtf.cs | 12 + .../PTC/Process/Process_PtcG2C_RiskBuyNtf.cs.meta | 12 + .../Process/Process_PtcG2C_RiskRecoverDiceNtf.cs | 14 + .../Process_PtcG2C_RiskRecoverDiceNtf.cs.meta | 12 + .../Process/Process_PtcG2C_SceneDamageRankNtf.cs | 14 + .../Process_PtcG2C_SceneDamageRankNtf.cs.meta | 12 + .../Process_PtcG2C_SceneFinishStateChanged.cs | 11 + .../Process_PtcG2C_SceneFinishStateChanged.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs | 13 + .../Process/Process_PtcG2C_SceneLeftDoodad.cs.meta | 12 + .../Process/Process_PtcG2C_ScenePrepareInfoNtf.cs | 36 + .../Process_PtcG2C_ScenePrepareInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SceneStateNtf.cs | 18 + .../Process/Process_PtcG2C_SceneStateNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SelectRoleNtf.cs | 115 + .../Process/Process_PtcG2C_SelectRoleNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs | 23 + .../Process_PtcG2C_ServerOpenDayNtf.cs.meta | 12 + .../Process/Process_PtcG2C_ShareRandomGiftNtf.cs | 16 + .../Process_PtcG2C_ShareRandomGiftNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SkillChangedNtf.cs | 82 + .../Process/Process_PtcG2C_SkillChangedNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SkillCoolNtf.cs | 15 + .../Process/Process_PtcG2C_SkillCoolNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs | 15 + .../Process_PtcG2C_SkillInitCoolNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SkillResult.cs | 71 + .../PTC/Process/Process_PtcG2C_SkillResult.cs.meta | 12 + .../Process/Process_PtcG2C_SkyCityBattleDataNtf.cs | 13 + .../Process_PtcG2C_SkyCityBattleDataNtf.cs.meta | 12 + .../Process/Process_PtcG2C_SkyCityEstimateRes.cs | 13 + .../Process_PtcG2C_SkyCityEstimateRes.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs | 13 + .../Process/Process_PtcG2C_SkyCityTeamRes.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs | 18 + .../Process/Process_PtcG2C_SkyCityTimeRes.cs.meta | 12 + .../Process/Process_PtcG2C_SpActivityChangeNtf.cs | 15 + .../Process_PtcG2C_SpActivityChangeNtf.cs.meta | 12 + .../Process_PtcG2C_SpActivityOffsetDayNtf.cs | 21 + .../Process_PtcG2C_SpActivityOffsetDayNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SpecialStateNtf.cs | 19 + .../Process/Process_PtcG2C_SpecialStateNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs | 13 + .../Process_PtcG2C_SpriteChangedNtf.cs.meta | 12 + .../Process/Process_PtcG2C_StartBattleFailedNtf.cs | 13 + .../Process_PtcG2C_StartBattleFailedNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_StartRollNtf.cs | 13 + .../Process/Process_PtcG2C_StartRollNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SynAtlasAttr.cs | 13 + .../Process/Process_PtcG2C_SynAtlasAttr.cs.meta | 12 + .../Process_PtcG2C_SynGuildArenaBattleInfo.cs | 13 + .../Process_PtcG2C_SynGuildArenaBattleInfo.cs.meta | 12 + .../Process_PtcG2C_SynGuildArenaFightUnit.cs | 11 + .../Process_PtcG2C_SynGuildArenaFightUnit.cs.meta | 12 + .../Process_PtcG2C_SynGuildArenaRoleOnline.cs | 11 + .../Process_PtcG2C_SynGuildArenaRoleOnline.cs.meta | 12 + .../Process_PtcG2C_SynGuildInheritNumInfo.cs | 13 + .../Process_PtcG2C_SynGuildInheritNumInfo.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SyncMoveNotify.cs | 18 + .../Process/Process_PtcG2C_SyncMoveNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_SyncStepNotify.cs | 21 + .../Process/Process_PtcG2C_SyncStepNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_TajieHelpNotify.cs | 12 + .../Process/Process_PtcG2C_TajieHelpNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_TakeRandomTask.cs | 13 + .../Process/Process_PtcG2C_TakeRandomTask.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs | 13 + .../Process/Process_PtcG2C_TeamFullDataNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_TeamInviteNotify.cs | 13 + .../Process_PtcG2C_TeamInviteNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_TeamSelectNotify.cs | 11 + .../Process_PtcG2C_TeamSelectNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_TeleportNotice.cs | 26 + .../Process/Process_PtcG2C_TeleportNotice.cs.meta | 12 + .../Process_PtcG2C_ThemeActivityChangeNtf.cs | 12 + .../Process_PtcG2C_ThemeActivityChangeNtf.cs.meta | 12 + .../Process/Process_PtcG2C_TitleChangeNotify.cs | 13 + .../Process_PtcG2C_TitleChangeNotify.cs.meta | 12 + .../Process_PtcG2C_TowerFirstPassRewardNtf.cs | 11 + .../Process_PtcG2C_TowerFirstPassRewardNtf.cs.meta | 12 + .../Process/Process_PtcG2C_TowerSceneInfoNtf.cs | 13 + .../Process_PtcG2C_TowerSceneInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_TransNotify.cs | 11 + .../PTC/Process/Process_PtcG2C_TransNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs | 39 + .../Process_PtcG2C_TransSkillNotfiy.cs.meta | 12 + .../Process/Process_PtcG2C_TssSdkAntiDataNtf.cs | 14 + .../Process_PtcG2C_TssSdkAntiDataNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_UnitAppear.cs | 95 + .../PTC/Process/Process_PtcG2C_UnitAppear.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_UnitDisappear.cs | 27 + .../Process/Process_PtcG2C_UnitDisappear.cs.meta | 12 + .../Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs | 15 + ...cess_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta | 12 + .../Process/Process_PtcG2C_UpdateDisplayItems.cs | 13 + .../Process_PtcG2C_UpdateDisplayItems.cs.meta | 12 + .../Process_PtcG2C_UpdateGuildArenaState.cs | 13 + .../Process_PtcG2C_UpdateGuildArenaState.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_UpdatePayInfo.cs | 11 + .../Process/Process_PtcG2C_UpdatePayInfo.cs.meta | 12 + .../Process/Process_PtcG2C_UpdateStageInfoNtf.cs | 19 + .../Process_PtcG2C_UpdateStageInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs | 13 + .../Process_PtcG2C_UpdateTaskStatus.cs.meta | 12 + .../Process_PtcG2C_UpdateVoipRoomMemberNtf.cs | 17 + .../Process_PtcG2C_UpdateVoipRoomMemberNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs | 13 + .../Process/Process_PtcG2C_VsPayReviveNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_WarningRandomNtf.cs | 23 + .../Process_PtcG2C_WarningRandomNtf.cs.meta | 12 + .../Process/Process_PtcG2C_WatchBattleInfoNtf.cs | 23 + .../Process_PtcG2C_WatchBattleInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_WeddingCarNtf.cs | 12 + .../Process/Process_PtcG2C_WeddingCarNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_WeddingEventNtf.cs | 12 + .../Process/Process_PtcG2C_WeddingEventNtf.cs.meta | 12 + .../Process/Process_PtcG2C_WeddingLoadInfoNtf.cs | 12 + .../Process_PtcG2C_WeddingLoadInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_WeddingStateNtf.cs | 12 + .../Process/Process_PtcG2C_WeddingStateNtf.cs.meta | 12 + .../Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs | 13 + .../Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_WordNotify.cs | 14 + .../PTC/Process/Process_PtcG2C_WordNotify.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs | 13 + .../Process_PtcG2C_WorldBossAttrNtf.cs.meta | 12 + ...ss_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs | 13 + ...cG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta | 12 + .../Process/Process_PtcG2C_WorldBossStateNtf.cs | 13 + .../Process_PtcG2C_WorldBossStateNtf.cs.meta | 12 + .../Process_PtcG2C_WorldChannelLeftTimesNtf.cs | 14 + ...Process_PtcG2C_WorldChannelLeftTimesNtf.cs.meta | 12 + .../Process/Process_PtcG2C_WorldLevelNtf2Client.cs | 12 + .../Process_PtcG2C_WorldLevelNtf2Client.cs.meta | 12 + .../PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs | 19 + .../Process_PtcG2C_fastMBDismissNtf.cs.meta | 12 + .../Process/Process_PtcG2C_guildcamppartyNotify.cs | 24 + .../Process_PtcG2C_guildcamppartyNotify.cs.meta | 12 + .../Process/Process_PtcG2C_synGuildInheritExp.cs | 13 + .../Process_PtcG2C_synGuildInheritExp.cs.meta | 12 + .../Process_PtcG2C_synguildarenadisplace.cs | 11 + .../Process_PtcG2C_synguildarenadisplace.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_AnswerAckNtf.cs | 13 + .../Process/Process_PtcM2C_AnswerAckNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs | 12 + .../Process_PtcM2C_ArenaStarDataNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_BlackListNtfNew.cs | 13 + .../Process/Process_PtcM2C_BlackListNtfNew.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs | 25 + .../Process/Process_PtcM2C_CheckQueuingNtf.cs.meta | 12 + .../Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs | 13 + .../Process_PtcM2C_CrossGvgRoomStateNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs | 13 + .../Process_PtcM2C_CrossGvgStateNtf.cs.meta | 12 + .../Process/Process_PtcM2C_CustomBattleGMNotify.cs | 13 + .../Process_PtcM2C_CustomBattleGMNotify.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_DERankChangNtf.cs | 13 + .../Process/Process_PtcM2C_DERankChangNtf.cs.meta | 12 + .../Process/Process_PtcM2C_DailyTaskEventNtf.cs | 12 + .../Process_PtcM2C_DailyTaskEventNtf.cs.meta | 12 + .../Process/Process_PtcM2C_DragonGuildNameNtf.cs | 11 + .../Process_PtcM2C_DragonGuildNameNtf.cs.meta | 12 + .../Process_PtcM2C_DragonGuildSettingChanged.cs | 17 + ...rocess_PtcM2C_DragonGuildSettingChanged.cs.meta | 12 + .../Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs | 14 + .../Process_PtcM2C_FastMBConfirmM2CNtf.cs.meta | 12 + .../Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs | 15 + .../Process_PtcM2C_FriendDegreeUpNtfNew.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs | 13 + .../Process/Process_PtcM2C_FriendOpNtfNew.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs | 12 + .../Process_PtcM2C_GardenBanquetNtf.cs.meta | 12 + .../Process_PtcM2C_Get520FestivalRedPacket.cs | 11 + .../Process_PtcM2C_Get520FestivalRedPacket.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs | 13 + .../Process/Process_PtcM2C_GiftIBSucessNtf.cs.meta | 12 + .../Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs | 13 + .../Process_PtcM2C_GmfJoinBattleM2CReq.cs.meta | 12 + .../Process/Process_PtcM2C_GoalAwardsRedPoint.cs | 13 + .../Process_PtcM2C_GoalAwardsRedPoint.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_GroupChatApply.cs | 13 + .../Process/Process_PtcM2C_GroupChatApply.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_GroupChatDismiss.cs | 13 + .../Process_PtcM2C_GroupChatDismiss.cs.meta | 12 + .../Process/Process_PtcM2C_GroupChatIssueCount.cs | 13 + .../Process_PtcM2C_GroupChatIssueCount.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_GroupChatManager.cs | 13 + .../Process_PtcM2C_GroupChatManager.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_GroupChatQuit.cs | 13 + .../Process/Process_PtcM2C_GroupChatQuit.cs.meta | 12 + .../Process_PtcM2C_GuildAuctItemTimeFresh.cs | 13 + .../Process_PtcM2C_GuildAuctItemTimeFresh.cs.meta | 12 + .../Process/Process_PtcM2C_GuildBestCardsNtfMs.cs | 35 + .../Process_PtcM2C_GuildBestCardsNtfMs.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs | 13 + .../Process_PtcM2C_GuildBonusGetAll.cs.meta | 12 + .../Process/Process_PtcM2C_GuildBuffCDParamNtf.cs | 12 + .../Process_PtcM2C_GuildBuffCDParamNtf.cs.meta | 12 + .../Process_PtcM2C_GuildBuffSimpleInfoNtf.cs | 12 + .../Process_PtcM2C_GuildBuffSimpleInfoNtf.cs.meta | 12 + .../Process_PtcM2C_GuildBuffSimpleItemNtf.cs | 12 + .../Process_PtcM2C_GuildBuffSimpleItemNtf.cs.meta | 12 + .../Process/Process_PtcM2C_GuildCardMatchNtf.cs | 42 + .../Process_PtcM2C_GuildCardMatchNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs | 35 + .../Process_PtcM2C_GuildCardRankNtf.cs.meta | 12 + .../Process/Process_PtcM2C_GuildCastFeatsNtf.cs | 13 + .../Process_PtcM2C_GuildCastFeatsNtf.cs.meta | 12 + .../Process_PtcM2C_GuildSchoolHallUpdatePoint.cs | 19 + ...ocess_PtcM2C_GuildSchoolHallUpdatePoint.cs.meta | 12 + .../Process/Process_PtcM2C_GuildSetingNotify.cs | 24 + .../Process_PtcM2C_GuildSetingNotify.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_HallIconMNtf.cs | 13 + .../Process/Process_PtcM2C_HallIconMNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_HintNotifyMS.cs | 116 + .../Process/Process_PtcM2C_HintNotifyMS.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs | 17 + .../Process/Process_PtcM2C_IBGiftIconNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs | 15 + .../Process_PtcM2C_IdipClearChatNtf.cs.meta | 12 + .../Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs | 13 + .../Process_PtcM2C_IdipPunishInfoMsNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_InvFightNotify.cs | 13 + .../Process/Process_PtcM2C_InvFightNotify.cs.meta | 12 + .../Process/Process_PtcM2C_InvUnfStateM2CNtf.cs | 15 + .../Process_PtcM2C_InvUnfStateM2CNtf.cs.meta | 12 + .../Process/Process_PtcM2C_InviteRefuseM2CNtf.cs | 18 + .../Process_PtcM2C_InviteRefuseM2CNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_KickFMAuchor.cs | 15 + .../Process/Process_PtcM2C_KickFMAuchor.cs.meta | 12 + .../Process_PtcM2C_LargeRoomLoginParamNtf.cs | 13 + .../Process_PtcM2C_LargeRoomLoginParamNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs | 13 + .../Process_PtcM2C_LargeRoomRoleNtf.cs.meta | 12 + .../Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs | 16 + ...cess_PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta | 12 + .../Process_PtcM2C_LeagueBattleStartMatchNtf.cs | 13 + ...rocess_PtcM2C_LeagueBattleStartMatchNtf.cs.meta | 12 + .../Process_PtcM2C_LeagueBattleStopMatchNtf.cs | 13 + ...Process_PtcM2C_LeagueBattleStopMatchNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs | 14 + .../Process/Process_PtcM2C_LeaveTeamM2CNtf.cs.meta | 12 + .../Process/Process_PtcM2C_LoginDragonGuildInfo.cs | 12 + .../Process_PtcM2C_LoginDragonGuildInfo.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_LoginGuildInfo.cs | 13 + .../Process/Process_PtcM2C_LoginGuildInfo.cs.meta | 12 + .../Process/Process_PtcM2C_MCChatOffLineNotify.cs | 13 + .../Process_PtcM2C_MCChatOffLineNotify.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_MSErrorNotify.cs | 43 + .../Process/Process_PtcM2C_MSErrorNotify.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_MSEventNotify.cs | 14 + .../Process/Process_PtcM2C_MSEventNotify.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs | 13 + .../Process/Process_PtcM2C_MSFlowerRainNtf.cs.meta | 12 + .../Process/Process_PtcM2C_MSReceiveFlowerNtf.cs | 13 + .../Process_PtcM2C_MSReceiveFlowerNtf.cs.meta | 12 + .../Process/Process_PtcM2C_MakePartnerResultNtf.cs | 12 + .../Process_PtcM2C_MakePartnerResultNtf.cs.meta | 12 + .../Process_PtcM2C_MarriageLevelValueNtf.cs | 13 + .../Process_PtcM2C_MarriageLevelValueNtf.cs.meta | 12 + .../Process_PtcM2C_MarriageNewPrivilegeNtf.cs | 13 + .../Process_PtcM2C_MarriageNewPrivilegeNtf.cs.meta | 12 + .../Process/Process_PtcM2C_MidasExceptionNtf.cs | 19 + .../Process_PtcM2C_MidasExceptionNtf.cs.meta | 12 + .../Process/Process_PtcM2C_ModifyGuildNameNtf.cs | 13 + .../Process_PtcM2C_ModifyGuildNameNtf.cs.meta | 12 + .../Process_PtcM2C_NoticeGuildArenaBeginNew.cs | 15 + ...Process_PtcM2C_NoticeGuildArenaBeginNew.cs.meta | 12 + .../Process_PtcM2C_NoticeGuildArenaNextTime.cs | 13 + ...Process_PtcM2C_NoticeGuildArenaNextTime.cs.meta | 12 + .../Process_PtcM2C_NoticeGuildLadderStart.cs | 13 + .../Process_PtcM2C_NoticeGuildLadderStart.cs.meta | 12 + .../Process_PtcM2C_NoticeGuildTerrBattleWin.cs | 13 + ...Process_PtcM2C_NoticeGuildTerrBattleWin.cs.meta | 12 + .../Process_PtcM2C_NoticeGuildTerrBigIcon.cs | 13 + .../Process_PtcM2C_NoticeGuildTerrBigIcon.cs.meta | 12 + .../Process/Process_PtcM2C_NoticeGuildTerrEnd.cs | 13 + .../Process_PtcM2C_NoticeGuildTerrEnd.cs.meta | 12 + .../Process/Process_PtcM2C_NoticeGuildTerrWar.cs | 14 + .../Process_PtcM2C_NoticeGuildTerrWar.cs.meta | 12 + .../Process/Process_PtcM2C_NoticeGuildTerrall.cs | 15 + .../Process_PtcM2C_NoticeGuildTerrall.cs.meta | 12 + .../Process_PtcM2C_NoticeGuildWageReward.cs | 13 + .../Process_PtcM2C_NoticeGuildWageReward.cs.meta | 12 + .../Process/Process_PtcM2C_NotifyGuildSkillData.cs | 11 + .../Process_PtcM2C_NotifyGuildSkillData.cs.meta | 12 + .../Process/Process_PtcM2C_NotifyIdipMessageMs.cs | 13 + .../Process_PtcM2C_NotifyIdipMessageMs.cs.meta | 12 + .../Process_PtcM2C_NotifyLeagueTeamCreate.cs | 13 + .../Process_PtcM2C_NotifyLeagueTeamCreate.cs.meta | 12 + .../Process_PtcM2C_NotifyLeagueTeamDissolve.cs | 13 + ...Process_PtcM2C_NotifyLeagueTeamDissolve.cs.meta | 12 + .../Process/Process_PtcM2C_NotifyMarriageApply.cs | 12 + .../Process_PtcM2C_NotifyMarriageApply.cs.meta | 12 + .../Process_PtcM2C_NotifyMarriageDivorceApply.cs | 12 + ...ocess_PtcM2C_NotifyMarriageDivorceApply.cs.meta | 12 + .../Process/Process_PtcM2C_NotifyMentorApply.cs | 12 + .../Process_PtcM2C_NotifyMentorApply.cs.meta | 12 + .../Process/Process_PtcM2C_NotifySkyTeamCreate.cs | 11 + .../Process_PtcM2C_NotifySkyTeamCreate.cs.meta | 12 + .../Process_PtcM2C_PayParameterInfoInvalidNtf.cs | 13 + ...ocess_PtcM2C_PayParameterInfoInvalidNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs | 16 + .../Process/Process_PtcM2C_PkTimeoutM2CNtf.cs.meta | 12 + .../Process_PtcM2C_PokerTournamentEndReFund.cs | 13 + ...Process_PtcM2C_PokerTournamentEndReFund.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_PushQuestionNtf.cs | 13 + .../Process/Process_PtcM2C_PushQuestionNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs | 13 + .../Process/Process_PtcM2C_QAEnterRoomNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_QAIDNameNtf.cs | 13 + .../PTC/Process/Process_PtcM2C_QAIDNameNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_QAOverNtf.cs | 13 + .../PTC/Process/Process_PtcM2C_QAOverNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_QARoomRankNtf.cs | 13 + .../Process/Process_PtcM2C_QARoomRankNtf.cs.meta | 12 + .../Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs | 29 + .../Process_PtcM2C_ResWarEnemyTimeNtf.cs.meta | 12 + .../Process/Process_PtcM2C_ResWarGuildBriefNtf.cs | 13 + .../Process_PtcM2C_ResWarGuildBriefNtf.cs.meta | 12 + .../Process/Process_PtcM2C_ResWarMineDataNtf.cs | 12 + .../Process_PtcM2C_ResWarMineDataNtf.cs.meta | 12 + .../Process_PtcM2C_ResWarRankSimpleInfoNtf.cs | 12 + .../Process_PtcM2C_ResWarRankSimpleInfoNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_ResWarStateNtf.cs | 13 + .../Process/Process_PtcM2C_ResWarStateNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs | 13 + .../Process/Process_PtcM2C_ResWarTimeNtf.cs.meta | 12 + .../Process_PtcM2C_RoleMatchStateM2CNotify.cs | 13 + .../Process_PtcM2C_RoleMatchStateM2CNotify.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs | 13 + .../Process/Process_PtcM2C_RoleStateNtfNew.cs.meta | 12 + .../Process/Process_PtcM2C_SendGuildBonusNtf.cs | 13 + .../Process_PtcM2C_SendGuildBonusNtf.cs.meta | 12 + .../Process/Process_PtcM2C_SendGuildSkillInfo.cs | 13 + .../Process_PtcM2C_SendGuildSkillInfo.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs | 11 + .../Process/Process_PtcM2C_SkyCityFinalRes.cs.meta | 12 + .../Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs | 11 + .../Process_PtcM2C_SkyCraftEliRoomNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs | 11 + .../Process_PtcM2C_SkyCraftMatchNtf.cs.meta | 12 + .../Process/Process_PtcM2C_SpriteStateChangeNtf.cs | 11 + .../Process_PtcM2C_SpriteStateChangeNtf.cs.meta | 12 + .../Process_PtcM2C_StartBattleFailedM2CNtf.cs | 13 + .../Process_PtcM2C_StartBattleFailedM2CNtf.cs.meta | 12 + .../Process/Process_PtcM2C_SynGuilIntegralState.cs | 13 + .../Process_PtcM2C_SynGuilIntegralState.cs.meta | 12 + .../Process_PtcM2C_SynGuildArenaBattleInfoNew.cs | 13 + ...ocess_PtcM2C_SynGuildArenaBattleInfoNew.cs.meta | 12 + .../Process_PtcM2C_SynGuildArenaFightUnitNew.cs | 11 + ...rocess_PtcM2C_SynGuildArenaFightUnitNew.cs.meta | 12 + .../Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs | 11 + ...ocess_PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta | 12 + .../Process_PtcM2C_SynGuildIntegralState.cs | 11 + .../Process_PtcM2C_SynGuildIntegralState.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs | 13 + .../Process/Process_PtcM2C_TarjaBriefNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs | 12 + .../Process/Process_PtcM2C_TaskRefreshNtf.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs | 13 + .../Process_PtcM2C_TeamChangeM2CNtf.cs.meta | 12 + .../Process/Process_PtcM2C_TeamFullDataM2CNtf.cs | 13 + .../Process_PtcM2C_TeamFullDataM2CNtf.cs.meta | 12 + .../Process/Process_PtcM2C_TeamInviteM2CNotify.cs | 13 + .../Process_PtcM2C_TeamInviteM2CNotify.cs.meta | 12 + .../Process_PtcM2C_TeamRequestPlatFreind2Client.cs | 13 + ...ess_PtcM2C_TeamRequestPlatFreind2Client.cs.meta | 12 + .../Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs | 12 + ...ess_PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta | 12 + .../Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs | 12 + ...cess_PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta | 12 + .../Process_PtcM2C_UpdateLeagueTeamState.cs | 11 + .../Process_PtcM2C_UpdateLeagueTeamState.cs.meta | 12 + .../Process_PtcM2C_UpdatePartnerToClient.cs | 12 + .../Process_PtcM2C_UpdatePartnerToClient.cs.meta | 12 + .../PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs | 12 + .../Process_PtcM2C_WeddingInviteNtf.cs.meta | 12 + .../Process/Process_PtcM2C_fastMBDismissM2CNtf.cs | 19 + .../Process_PtcM2C_fastMBDismissM2CNtf.cs.meta | 12 + .../Process_PtcM2C_synguildarenadisplaceNew.cs | 11 + ...Process_PtcM2C_synguildarenadisplaceNew.cs.meta | 12 + .../PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs | 25 + .../Process/Process_PtcN2C_CheckQueuingNtf.cs.meta | 12 + .../PTC/Process/Process_PtcT2C_ChatNotify.cs | 13 + .../PTC/Process/Process_PtcT2C_ChatNotify.cs.meta | 12 + .../PTC/Process/Process_PtcT2C_ErrorNotify.cs | 13 + .../PTC/Process/Process_PtcT2C_ErrorNotify.cs.meta | 12 + .../PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs | 15 + .../Process_PtcT2C_KeepAlivePingReq.cs.meta | 12 + .../PTC/Process/Process_PtcT2C_LoginChallenge.cs | 96 + .../Process/Process_PtcT2C_LoginChallenge.cs.meta | 12 + .../PTC/Process/Process_RpcC2A_AudioAuthKey.cs | 33 + .../Process/Process_RpcC2A_AudioAuthKey.cs.meta | 12 + .../PTC/Process/Process_RpcC2A_AudioText.cs | 31 + .../PTC/Process/Process_RpcC2A_AudioText.cs.meta | 12 + .../PTC/Process/Process_RpcC2A_GetAudioListReq.cs | 41 + .../Process/Process_RpcC2A_GetAudioListReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs | 49 + .../Process/Process_RpcC2A_UpLoadAudioReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_AbsEnterScene.cs | 33 + .../Process/Process_RpcC2G_AbsEnterScene.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ActivatAtlas.cs | 28 + .../Process/Process_RpcC2G_ActivatAtlas.cs.meta | 12 + .../Process/Process_RpcC2G_ActivateFashionCharm.cs | 30 + .../Process_RpcC2G_ActivateFashionCharm.cs.meta | 12 + .../Process/Process_RpcC2G_ActivateHairColor.cs | 18 + .../Process_RpcC2G_ActivateHairColor.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ActivatePreShow.cs | 18 + .../Process/Process_RpcC2G_ActivatePreShow.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_AddTempAttr.cs | 39 + .../PTC/Process/Process_RpcC2G_AddTempAttr.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_AgreeQAReq.cs | 55 + .../PTC/Process/Process_RpcC2G_AgreeQAReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ArgentaActivity.cs | 27 + .../Process/Process_RpcC2G_ArgentaActivity.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ArtifactCompose.cs | 17 + .../Process/Process_RpcC2G_ArtifactCompose.cs.meta | 12 + .../Process/Process_RpcC2G_ArtifactDeityStoveOp.cs | 45 + .../Process_RpcC2G_ArtifactDeityStoveOp.cs.meta | 12 + .../Process/Process_RpcC2G_AskForCheckInBonus.cs | 30 + .../Process_RpcC2G_AskForCheckInBonus.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_AtlasUpStar.cs | 38 + .../PTC/Process/Process_RpcC2G_AtlasUpStar.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs | 28 + .../Process/Process_RpcC2G_AutoBreakAtlas.cs.meta | 12 + .../Process_RpcC2G_BackFlowActivityOperation.cs | 29 + ...rocess_RpcC2G_BackFlowActivityOperation.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs | 16 + .../Process/Process_RpcC2G_BackFlowBuyOp.cs.meta | 12 + .../Process_RpcC2G_BattleFieldAwardNumReq.cs | 17 + .../Process_RpcC2G_BattleFieldAwardNumReq.cs.meta | 12 + .../Process/Process_RpcC2G_BattleFieldRankReq.cs | 17 + .../Process_RpcC2G_BattleFieldRankReq.cs.meta | 12 + .../Process_RpcC2G_BattleFieldRoleAgainstReq.cs | 17 + ...rocess_RpcC2G_BattleFieldRoleAgainstReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BindSkill.cs | 54 + .../PTC/Process/Process_RpcC2G_BindSkill.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BossRushReq.cs | 65 + .../PTC/Process/Process_RpcC2G_BossRushReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BuyDraw.cs | 28 + .../PTC/Process/Process_RpcC2G_BuyDraw.cs.meta | 12 + .../Process_RpcC2G_BuyExtraSkillEmblemSlot.cs | 18 + .../Process_RpcC2G_BuyExtraSkillEmblemSlot.cs.meta | 12 + .../Process/Process_RpcC2G_BuyGoldAndFatigue.cs | 40 + .../Process_RpcC2G_BuyGoldAndFatigue.cs.meta | 12 + .../Process/Process_RpcC2G_BuyHeroInHeroBattle.cs | 38 + .../Process_RpcC2G_BuyHeroInHeroBattle.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BuyIBItem.cs | 41 + .../PTC/Process/Process_RpcC2G_BuyIBItem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BuyJadeSlot.cs | 30 + .../PTC/Process/Process_RpcC2G_BuyJadeSlot.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs | 16 + .../Process/Process_RpcC2G_BuyJadeSlotNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BuyShopItem.cs | 18 + .../PTC/Process/Process_RpcC2G_BuyShopItem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BuySpriteEgg.cs | 61 + .../Process/Process_RpcC2G_BuySpriteEgg.cs.meta | 12 + .../Process/Process_RpcC2G_BuyTeamSceneCount.cs | 30 + .../Process_RpcC2G_BuyTeamSceneCount.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs | 28 + .../Process/Process_RpcC2G_BuyVipLevelGift.cs.meta | 12 + .../Process_RpcC2G_CampDuelActivityOperation.cs | 52 + ...rocess_RpcC2G_CampDuelActivityOperation.cs.meta | 12 + .../Process/Process_RpcC2G_ChangeDeclaration.cs | 42 + .../Process_RpcC2G_ChangeDeclaration.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ChangeGuildCard.cs | 43 + .../Process/Process_RpcC2G_ChangeGuildCard.cs.meta | 12 + .../Process/Process_RpcC2G_ChangeLiveVisible.cs | 35 + .../Process_RpcC2G_ChangeLiveVisible.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs | 16 + .../Process/Process_RpcC2G_ChangeOutLookOp.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ChangeProfession.cs | 33 + .../Process_RpcC2G_ChangeProfession.cs.meta | 12 + .../Process/Process_RpcC2G_ChangeRiskBoxState.cs | 28 + .../Process_RpcC2G_ChangeRiskBoxState.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ChangeSkillSet.cs | 38 + .../Process/Process_RpcC2G_ChangeSkillSet.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ChangeWatchRole.cs | 37 + .../Process/Process_RpcC2G_ChangeWatchRole.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_Checkin.cs | 30 + .../PTC/Process/Process_RpcC2G_Checkin.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ChooseProfession.cs | 54 + .../Process_RpcC2G_ChooseProfession.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ChooseRollReq.cs | 16 + .../Process/Process_RpcC2G_ChooseRollReq.cs.meta | 12 + .../Process/Process_RpcC2G_ChooseSpecialEffects.cs | 18 + .../Process_RpcC2G_ChooseSpecialEffects.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_CommendFirstPass.cs | 17 + .../Process_RpcC2G_CommendFirstPass.cs.meta | 12 + .../Process/Process_RpcC2G_CommendWatchBattle.cs | 39 + .../Process_RpcC2G_CommendWatchBattle.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_DEProgressReq.cs | 19 + .../Process/Process_RpcC2G_DEProgressReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_DHRReqC2G.cs | 42 + .../PTC/Process/Process_RpcC2G_DHRReqC2G.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs | 25 + .../Process_RpcC2G_DailyTaskAskHelp.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs | 17 + .../Process/Process_RpcC2G_DailyTaskGiveUp.cs.meta | 12 + .../Process/Process_RpcC2G_DecomposeEquipment.cs | 30 + .../Process_RpcC2G_DecomposeEquipment.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_DoEnterScene.cs | 153 + .../Process/Process_RpcC2G_DoEnterScene.cs.meta | 12 + .../Process_RpcC2G_DoodadItemAllSkillReq.cs | 21 + .../Process_RpcC2G_DoodadItemAllSkillReq.cs.meta | 12 + .../Process/Process_RpcC2G_DragonGroupRecord.cs | 18 + .../Process_RpcC2G_DragonGroupRecord.cs.meta | 12 + .../Process/Process_RpcC2G_DragonGroupRoleList.cs | 42 + .../Process_RpcC2G_DragonGroupRoleList.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_DrawLottery.cs | 71 + .../PTC/Process/Process_RpcC2G_DrawLottery.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_EmblemLevelUp.cs | 25 + .../Process/Process_RpcC2G_EmblemLevelUp.cs.meta | 12 + .../Process_RpcC2G_EnchantActiveAttribute.cs | 46 + .../Process_RpcC2G_EnchantActiveAttribute.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_EnchantEquip.cs | 38 + .../Process/Process_RpcC2G_EnchantEquip.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_EnchantTransfer.cs | 33 + .../Process/Process_RpcC2G_EnchantTransfer.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_EndGuildCard.cs | 38 + .../Process/Process_RpcC2G_EndGuildCard.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_EnhanceItem.cs | 35 + .../PTC/Process/Process_RpcC2G_EnhanceItem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_EnhanceTranster.cs | 29 + .../Process/Process_RpcC2G_EnhanceTranster.cs.meta | 12 + .../Process/Process_RpcC2G_EnterLeisureScene.cs | 17 + .../Process_RpcC2G_EnterLeisureScene.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_EnterWatchBattle.cs | 45 + .../Process_RpcC2G_EnterWatchBattle.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ExpFindBack.cs | 29 + .../PTC/Process/Process_RpcC2G_ExpFindBack.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_FashionCompose.cs | 16 + .../Process/Process_RpcC2G_FashionCompose.cs.meta | 12 + .../Process_RpcC2G_FetchAchivementReward.cs | 37 + .../Process_RpcC2G_FetchAchivementReward.cs.meta | 12 + .../Process/Process_RpcC2G_FetchChapterChest.cs | 33 + .../Process_RpcC2G_FetchChapterChest.cs.meta | 12 + .../Process/Process_RpcC2G_FetchEnemyDoodadReq.cs | 16 + .../Process_RpcC2G_FetchEnemyDoodadReq.cs.meta | 12 + .../Process_RpcC2G_FirstPassGetTopRoleInfo.cs | 17 + .../Process_RpcC2G_FirstPassGetTopRoleInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs | 17 + .../Process_RpcC2G_FirstPassInfoReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs | 25 + .../Process_RpcC2G_FiveDayRewardReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ForgeEquip.cs | 17 + .../PTC/Process/Process_RpcC2G_ForgeEquip.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_FuseEquip.cs | 17 + .../PTC/Process/Process_RpcC2G_FuseEquip.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GMCommand.cs | 19 + .../PTC/Process/Process_RpcC2G_GMCommand.cs.meta | 12 + .../Process_RpcC2G_GetAchieveBrifInfoReq.cs | 30 + .../Process_RpcC2G_GetAchieveBrifInfoReq.cs.meta | 12 + .../Process_RpcC2G_GetAchieveClassifyInfoReq.cs | 30 + ...rocess_RpcC2G_GetAchieveClassifyInfoReq.cs.meta | 12 + .../Process_RpcC2G_GetAchievePointRewardReq.cs | 38 + ...Process_RpcC2G_GetAchievePointRewardReq.cs.meta | 12 + .../Process/Process_RpcC2G_GetAchieveRewardReq.cs | 30 + .../Process_RpcC2G_GetAchieveRewardReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetActivityChest.cs | 38 + .../Process_RpcC2G_GetActivityChest.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetActivityInfo.cs | 38 + .../Process/Process_RpcC2G_GetActivityInfo.cs.meta | 12 + .../Process/Process_RpcC2G_GetAncientTimesAward.cs | 42 + .../Process_RpcC2G_GetAncientTimesAward.cs.meta | 12 + .../Process_RpcC2G_GetClassifyDesignationReq.cs | 38 + ...rocess_RpcC2G_GetClassifyDesignationReq.cs.meta | 12 + .../Process/Process_RpcC2G_GetCompeteDragonInfo.cs | 35 + .../Process_RpcC2G_GetCompeteDragonInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs | 18 + .../Process_RpcC2G_GetDailyTaskInfo.cs.meta | 12 + .../Process/Process_RpcC2G_GetDailyTaskReward.cs | 17 + .../Process_RpcC2G_GetDailyTaskReward.cs.meta | 12 + .../Process/Process_RpcC2G_GetDesignationReq.cs | 33 + .../Process_RpcC2G_GetDesignationReq.cs.meta | 12 + .../Process_RpcC2G_GetDragonGuildTaskChest.cs | 40 + .../Process_RpcC2G_GetDragonGuildTaskChest.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs | 34 + .../Process_RpcC2G_GetDragonTopInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs | 27 + .../Process/Process_RpcC2G_GetEnhanceAttr.cs.meta | 12 + .../Process/Process_RpcC2G_GetFirstPassReward.cs | 17 + .../Process_RpcC2G_GetFirstPassReward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetFlower.cs | 30 + .../PTC/Process/Process_RpcC2G_GetFlower.cs.meta | 12 + .../Process/Process_RpcC2G_GetFlowerLeftTime.cs | 30 + .../Process_RpcC2G_GetFlowerLeftTime.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetFlowerReward.cs | 30 + .../Process/Process_RpcC2G_GetFlowerReward.cs.meta | 12 + .../Process/Process_RpcC2G_GetFlowerRewardList.cs | 16 + .../Process_RpcC2G_GetFlowerRewardList.cs.meta | 12 + .../Process_RpcC2G_GetGoddessTrialRewards.cs | 34 + .../Process_RpcC2G_GetGoddessTrialRewards.cs.meta | 12 + .../Process_RpcC2G_GetGuildBonusDetailInfo.cs | 30 + .../Process_RpcC2G_GetGuildBonusDetailInfo.cs.meta | 12 + .../Process/Process_RpcC2G_GetGuildBonusLeft.cs | 28 + .../Process_RpcC2G_GetGuildBonusLeft.cs.meta | 12 + .../Process/Process_RpcC2G_GetGuildBonusList.cs | 30 + .../Process_RpcC2G_GetGuildBonusList.cs.meta | 12 + .../Process/Process_RpcC2G_GetGuildBonusReward.cs | 30 + .../Process_RpcC2G_GetGuildBonusReward.cs.meta | 12 + .../Process_RpcC2G_GetGuildCamPartyRandItem.cs | 33 + ...Process_RpcC2G_GetGuildCamPartyRandItem.cs.meta | 12 + ...Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs | 38 + ...ss_RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta | 12 + .../Process_RpcC2G_GetGuildCampPartyReward.cs | 44 + .../Process_RpcC2G_GetGuildCampPartyReward.cs.meta | 12 + .../Process/Process_RpcC2G_GetGuildCheckinBox.cs | 30 + .../Process_RpcC2G_GetGuildCheckinBox.cs.meta | 12 + .../Process_RpcC2G_GetGuildPartyReceiveInfo.cs | 38 + ...Process_RpcC2G_GetGuildPartyReceiveInfo.cs.meta | 12 + .../Process/Process_RpcC2G_GetGuildQADataReq.cs | 38 + .../Process_RpcC2G_GetGuildQADataReq.cs.meta | 12 + .../Process_RpcC2G_GetHeroBattleGameRecord.cs | 38 + .../Process_RpcC2G_GetHeroBattleGameRecord.cs.meta | 12 + .../Process/Process_RpcC2G_GetHeroBattleInfo.cs | 38 + .../Process_RpcC2G_GetHeroBattleInfo.cs.meta | 12 + .../Process_RpcC2G_GetHeroBattleWeekReward.cs | 38 + .../Process_RpcC2G_GetHeroBattleWeekReward.cs.meta | 12 + .../Process/Process_RpcC2G_GetHolidayStageInfo.cs | 18 + .../Process_RpcC2G_GetHolidayStageInfo.cs.meta | 12 + .../Process/Process_RpcC2G_GetJadeSealAllInfo.cs | 16 + .../Process_RpcC2G_GetJadeSealAllInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs | 38 + .../Process_RpcC2G_GetLevelSealInfo.cs.meta | 12 + .../Process/Process_RpcC2G_GetLevelSealSelfGift.cs | 39 + .../Process_RpcC2G_GetLevelSealSelfGift.cs.meta | 12 + .../Process/Process_RpcC2G_GetLuckyActivityInfo.cs | 28 + .../Process_RpcC2G_GetLuckyActivityInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs | 46 + .../Process/Process_RpcC2G_GetMyRiftInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs | 38 + .../Process_RpcC2G_GetMyWatchRecord.cs.meta | 12 + .../Process/Process_RpcC2G_GetNewZoneBenefit.cs | 37 + .../Process_RpcC2G_GetNewZoneBenefit.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetNextDayReward.cs | 16 + .../Process_RpcC2G_GetNextDayReward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetOnlineReward.cs | 38 + .../Process/Process_RpcC2G_GetOnlineReward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetPayAllInfo.cs | 20 + .../Process/Process_RpcC2G_GetPayAllInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetPayReward.cs | 38 + .../Process/Process_RpcC2G_GetPayReward.cs.meta | 12 + .../Process/Process_RpcC2G_GetPlatShareAward.cs | 38 + .../Process_RpcC2G_GetPlatShareAward.cs.meta | 12 + .../Process_RpcC2G_GetPlatformShareChest.cs | 38 + .../Process_RpcC2G_GetPlatformShareChest.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs | 17 + .../Process/Process_RpcC2G_GetRiskMapInfos.cs.meta | 12 + .../Process_RpcC2G_GetSpActivityBigPrize.cs | 28 + .../Process_RpcC2G_GetSpActivityBigPrize.cs.meta | 12 + .../Process/Process_RpcC2G_GetSpActivityReward.cs | 58 + .../Process_RpcC2G_GetSpActivityReward.cs.meta | 12 + .../Process/Process_RpcC2G_GetSweepTowerReward.cs | 28 + .../Process_RpcC2G_GetSweepTowerReward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetSystemReward.cs | 30 + .../Process/Process_RpcC2G_GetSystemReward.cs.meta | 12 + .../Process/Process_RpcC2G_GetTowerActivityTop.cs | 22 + .../Process_RpcC2G_GetTowerActivityTop.cs.meta | 12 + .../Process_RpcC2G_GetTowerFirstPassReward.cs | 18 + .../Process_RpcC2G_GetTowerFirstPassReward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs | 38 + .../Process_RpcC2G_GetWatchInfoByID.cs.meta | 12 + .../Process/Process_RpcC2G_GetWeeklyTaskInfo.cs | 27 + .../Process_RpcC2G_GetWeeklyTaskInfo.cs.meta | 12 + .../Process/Process_RpcC2G_GetWeeklyTaskReward.cs | 27 + .../Process_RpcC2G_GetWeeklyTaskReward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GmfReadyReq.cs | 18 + .../PTC/Process/Process_RpcC2G_GmfReadyReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GoldClick.cs | 28 + .../PTC/Process/Process_RpcC2G_GoldClick.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GrowthFundAward.cs | 18 + .../Process/Process_RpcC2G_GrowthFundAward.cs.meta | 12 + .../Process_RpcC2G_GuildCampExchangeOperate.cs | 33 + ...Process_RpcC2G_GuildCampExchangeOperate.cs.meta | 12 + .../Process_RpcC2G_GuildCampPartyReqExchange.cs | 37 + ...rocess_RpcC2G_GuildCampPartyReqExchange.cs.meta | 12 + .../Process_RpcC2G_GuildCheckInBonusInfo.cs | 30 + .../Process_RpcC2G_GuildCheckInBonusInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs | 33 + .../Process/Process_RpcC2G_GuildGoblinInfo.cs.meta | 12 + .../Process_RpcC2G_GuildPartySummonSpirit.cs | 37 + .../Process_RpcC2G_GuildPartySummonSpirit.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_HorseReConnect.cs | 38 + .../Process/Process_RpcC2G_HorseReConnect.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_IdentifyEmblem.cs | 39 + .../Process/Process_RpcC2G_IdentifyEmblem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_InlayAllJade.cs | 16 + .../Process/Process_RpcC2G_InlayAllJade.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_InspireReq.cs | 18 + .../PTC/Process/Process_RpcC2G_InspireReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ItemBuffOp.cs | 17 + .../PTC/Process/Process_RpcC2G_ItemBuffOp.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ItemCompose.cs | 33 + .../PTC/Process/Process_RpcC2G_ItemCompose.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ItemFindBack.cs | 28 + .../Process/Process_RpcC2G_ItemFindBack.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs | 28 + .../Process_RpcC2G_ItemFindBackInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ItemSell.cs | 37 + .../PTC/Process/Process_RpcC2G_ItemSell.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_JadeCompose.cs | 30 + .../PTC/Process/Process_RpcC2G_JadeCompose.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_JadeComposeNew.cs | 16 + .../Process/Process_RpcC2G_JadeComposeNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_JadeOperation.cs | 30 + .../Process/Process_RpcC2G_JadeOperation.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_JadeOperationNew.cs | 16 + .../Process_RpcC2G_JadeOperationNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_JustDance.cs | 18 + .../PTC/Process/Process_RpcC2G_JustDance.cs.meta | 12 + .../Process/Process_RpcC2G_LeagueBattleReadyReq.cs | 41 + .../Process_RpcC2G_LeagueBattleReadyReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_LearnGuildSkill.cs | 18 + .../Process/Process_RpcC2G_LearnGuildSkill.cs.meta | 12 + .../Process_RpcC2G_LevelSealButtonStatus.cs | 38 + .../Process_RpcC2G_LevelSealButtonStatus.cs.meta | 12 + .../Process/Process_RpcC2G_LevelSealExchange.cs | 23 + .../Process_RpcC2G_LevelSealExchange.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs | 16 + .../Process/Process_RpcC2G_LevelUpSlotAttr.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_LotteryDraw.cs | 28 + .../PTC/Process/Process_RpcC2G_LotteryDraw.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_MobaSignaling.cs | 33 + .../Process/Process_RpcC2G_MobaSignaling.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_MulActivityReq.cs | 29 + .../Process/Process_RpcC2G_MulActivityReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs | 38 + .../Process/Process_RpcC2G_OpenGuildQAReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_OpenSceneChest.cs | 34 + .../Process/Process_RpcC2G_OpenSceneChest.cs.meta | 12 + .../Process/Process_RpcC2G_Operation520Festival.cs | 16 + .../Process_RpcC2G_Operation520Festival.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PandoraLottery.cs | 56 + .../Process/Process_RpcC2G_PandoraLottery.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PayCardAward.cs | 18 + .../Process/Process_RpcC2G_PayCardAward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PayClick.cs | 18 + .../PTC/Process/Process_RpcC2G_PayClick.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PayFirstAward.cs | 18 + .../Process/Process_RpcC2G_PayFirstAward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PayFriendItem.cs | 30 + .../Process/Process_RpcC2G_PayFriendItem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PeerBox.cs | 38 + .../PTC/Process/Process_RpcC2G_PeerBox.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PersonalCareer.cs | 38 + .../Process/Process_RpcC2G_PersonalCareer.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PetOperation.cs | 71 + .../Process/Process_RpcC2G_PetOperation.cs.meta | 12 + .../Process/Process_RpcC2G_PetOperationOther.cs | 28 + .../Process_RpcC2G_PetOperationOther.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PhotographEffect.cs | 22 + .../Process_RpcC2G_PhotographEffect.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PlayDiceOver.cs | 17 + .../Process/Process_RpcC2G_PlayDiceOver.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PlayDiceRequest.cs | 17 + .../Process/Process_RpcC2G_PlayDiceRequest.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PvpAllReq.cs | 56 + .../PTC/Process/Process_RpcC2G_PvpAllReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_PvpNowAllData.cs | 34 + .../Process/Process_RpcC2G_PvpNowAllData.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QueryBoxs.cs | 48 + .../PTC/Process/Process_RpcC2G_QueryBoxs.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QueryClientIp.cs | 22 + .../Process/Process_RpcC2G_QueryClientIp.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QueryGuildCard.cs | 31 + .../Process/Process_RpcC2G_QueryGuildCard.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QueryIBItem.cs | 22 + .../PTC/Process/Process_RpcC2G_QueryIBItem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QueryLotteryCD.cs | 30 + .../Process/Process_RpcC2G_QueryLotteryCD.cs.meta | 12 + .../Process_RpcC2G_QueryOpenGameActivityTime.cs | 30 + ...rocess_RpcC2G_QueryOpenGameActivityTime.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QueryPowerPoint.cs | 18 + .../Process/Process_RpcC2G_QueryPowerPoint.cs.meta | 12 + .../Process_RpcC2G_QueryQQFriendsVipInfo.cs | 30 + .../Process_RpcC2G_QueryQQFriendsVipInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs | 18 + .../Process/Process_RpcC2G_QueryQQVipInfo.cs.meta | 12 + .../Process/Process_RpcC2G_QuerySceneDayCount.cs | 39 + .../Process_RpcC2G_QuerySceneDayCount.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QuerySceneTime.cs | 43 + .../Process/Process_RpcC2G_QuerySceneTime.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_QueryShopItem.cs | 28 + .../Process/Process_RpcC2G_QueryShopItem.cs.meta | 12 + .../Process/Process_RpcC2G_ReEnterRiskBattle.cs | 23 + .../Process_RpcC2G_ReEnterRiskBattle.cs.meta | 12 + .../Process/Process_RpcC2G_RefreshSweepReward.cs | 25 + .../Process_RpcC2G_RefreshSweepReward.cs.meta | 12 + .../Process/Process_RpcC2G_RefreshWeeklyTask.cs | 27 + .../Process_RpcC2G_RefreshWeeklyTask.cs.meta | 12 + .../Process_RpcC2G_ReplyPartyExchangeItemOpt.cs | 52 + ...rocess_RpcC2G_ReplyPartyExchangeItemOpt.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ReportBadPlayer.cs | 37 + .../Process/Process_RpcC2G_ReportBadPlayer.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ReportBattle.cs | 16 + .../Process/Process_RpcC2G_ReportBattle.cs.meta | 12 + .../Process/Process_RpcC2G_ReqGetLoginReward.cs | 30 + .../Process_RpcC2G_ReqGetLoginReward.cs.meta | 12 + .../Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs | 18 + .../Process_RpcC2G_ReqGuildBossTimeLeft.cs.meta | 12 + .../Process/Process_RpcC2G_ReqPlayerAutoPlay.cs | 16 + .../Process_RpcC2G_ReqPlayerAutoPlay.cs.meta | 12 + .../Process/Process_RpcC2G_ResWarAllInfoReqOne.cs | 18 + .../Process_RpcC2G_ResWarAllInfoReqOne.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ResWarBuff.cs | 38 + .../PTC/Process/Process_RpcC2G_ResWarBuff.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ResetSkill.cs | 59 + .../PTC/Process/Process_RpcC2G_ResetSkill.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ResetTower.cs | 38 + .../PTC/Process/Process_RpcC2G_ResetTower.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs | 17 + .../Process_RpcC2G_ReturnSmeltStone.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_Revive.cs | 90 + .../PTC/Process/Process_RpcC2G_Revive.cs.meta | 12 + .../Process/Process_RpcC2G_RiftFirstPassReward.cs | 51 + .../Process_RpcC2G_RiftFirstPassReward.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_RiskBuyRequest.cs | 17 + .../Process/Process_RpcC2G_RiskBuyRequest.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SceneMobaOp.cs | 42 + .../PTC/Process/Process_RpcC2G_SceneMobaOp.cs.meta | 12 + .../Process/Process_RpcC2G_SelectChargeBackRole.cs | 37 + .../Process_RpcC2G_SelectChargeBackRole.cs.meta | 12 + .../Process/Process_RpcC2G_SelectChestReward.cs | 34 + .../Process_RpcC2G_SelectChestReward.cs.meta | 12 + .../Process_RpcC2G_SelectHeroAncientPower.cs | 39 + .../Process_RpcC2G_SelectHeroAncientPower.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SendFlower.cs | 30 + .../PTC/Process/Process_RpcC2G_SendFlower.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SendGuildBonus.cs | 30 + .../Process/Process_RpcC2G_SendGuildBonus.cs.meta | 12 + .../Process/Process_RpcC2G_SetDesignationReq.cs | 43 + .../Process_RpcC2G_SetDesignationReq.cs.meta | 12 + .../Process/Process_RpcC2G_SetHeroInHeroBattle.cs | 47 + .../Process_RpcC2G_SetHeroInHeroBattle.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SetPreShow.cs | 18 + .../PTC/Process/Process_RpcC2G_SetPreShow.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SetRoleConfig.cs | 16 + .../Process/Process_RpcC2G_SetRoleConfig.cs.meta | 12 + .../Process/Process_RpcC2G_ShadowCatOperation.cs | 16 + .../Process_RpcC2G_ShadowCatOperation.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ShowFlowerPage.cs | 16 + .../Process/Process_RpcC2G_ShowFlowerPage.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SkillLevelup.cs | 66 + .../Process/Process_RpcC2G_SkillLevelup.cs.meta | 12 + .../Process/Process_RpcC2G_SkyCityAllInfoReq.cs | 18 + .../Process_RpcC2G_SkyCityAllInfoReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SmeltItem.cs | 17 + .../PTC/Process/Process_RpcC2G_SmeltItem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SpriteOperation.cs | 30 + .../Process/Process_RpcC2G_SpriteOperation.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_StageCountReset.cs | 18 + .../Process/Process_RpcC2G_StageCountReset.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_StartGuildCard.cs | 38 + .../Process/Process_RpcC2G_StartGuildCard.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SurviveReqC2G.cs | 16 + .../Process/Process_RpcC2G_SurviveReqC2G.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_Sweep.cs | 65 + .../PTC/Process/Process_RpcC2G_Sweep.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SweepTower.cs | 38 + .../PTC/Process/Process_RpcC2G_SweepTower.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SynPetInfo.cs | 18 + .../PTC/Process/Process_RpcC2G_SynPetInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_SyncTime.cs | 21 + .../PTC/Process/Process_RpcC2G_SyncTime.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_TactEnterScene.cs | 41 + .../Process/Process_RpcC2G_TactEnterScene.cs.meta | 12 + .../Process/Process_RpcC2G_TakeDragonGuildChest.cs | 27 + .../Process_RpcC2G_TakeDragonGuildChest.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_TakeOffAllJade.cs | 33 + .../Process/Process_RpcC2G_TakeOffAllJade.cs.meta | 12 + .../Process/Process_RpcC2G_TakeOffAllJadeNew.cs | 16 + .../Process_RpcC2G_TakeOffAllJadeNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_TakePartnerChest.cs | 17 + .../Process_RpcC2G_TakePartnerChest.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_TaskOperate.cs | 62 + .../PTC/Process/Process_RpcC2G_TaskOperate.cs.meta | 12 + .../Process/Process_RpcC2G_TeamInviteListReq.cs | 30 + .../Process_RpcC2G_TeamInviteListReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_ThanksForBonus.cs | 30 + .../Process/Process_RpcC2G_ThanksForBonus.cs.meta | 12 + .../Process/Process_RpcC2G_ThemeActivityHint.cs | 33 + .../Process_RpcC2G_ThemeActivityHint.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_TitleLevelUp.cs | 18 + .../Process/Process_RpcC2G_TitleLevelUp.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_TransformOp.cs | 38 + .../PTC/Process/Process_RpcC2G_TransformOp.cs.meta | 12 + .../Process_RpcC2G_TurnOverWeeklyTaskItem.cs | 27 + .../Process_RpcC2G_TurnOverWeeklyTaskItem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_UpgradeEquip.cs | 17 + .../Process/Process_RpcC2G_UpgradeEquip.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_UseItem.cs | 99 + .../PTC/Process/Process_RpcC2G_UseItem.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_UseSupplement.cs | 25 + .../Process/Process_RpcC2G_UseSupplement.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_VsPayReviveReq.cs | 18 + .../Process/Process_RpcC2G_VsPayReviveReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_WeddingOperator.cs | 29 + .../Process/Process_RpcC2G_WeddingOperator.cs.meta | 12 + .../Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs | 38 + .../Process_RpcC2G_WeekEnd4v4GetInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2G_breakAtlas.cs | 28 + .../PTC/Process/Process_RpcC2G_breakAtlas.cs.meta | 12 + .../PTC/Process/Process_RpcC2I_QueryGateIP.cs | 38 + .../PTC/Process/Process_RpcC2I_QueryGateIP.cs.meta | 12 + .../Process/Process_RpcC2M_AceptGuildInherit.cs | 38 + .../Process_RpcC2M_AceptGuildInherit.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_ActiveCookbook.cs | 52 + .../Process/Process_RpcC2M_ActiveCookbook.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_AddBlackListNew.cs | 36 + .../Process/Process_RpcC2M_AddBlackListNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_AddFriendNew.cs | 28 + .../Process/Process_RpcC2M_AddFriendNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_AddGuildInherit.cs | 38 + .../Process/Process_RpcC2M_AddGuildInherit.cs.meta | 12 + .../Process_RpcC2M_AdjustGuildArenaRolePosNew.cs | 33 + ...ocess_RpcC2M_AdjustGuildArenaRolePosNew.cs.meta | 12 + .../Process/Process_RpcC2M_AllianceGuildTerr.cs | 28 + .../Process_RpcC2M_AllianceGuildTerr.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs | 41 + .../Process_RpcC2M_ArenaStarRoleReq.cs.meta | 12 + .../Process_RpcC2M_AskDragonGuildMembers.cs | 17 + .../Process_RpcC2M_AskDragonGuildMembers.cs.meta | 12 + .../Process/Process_RpcC2M_AskGuildArenaInfoNew.cs | 38 + .../Process_RpcC2M_AskGuildArenaInfoNew.cs.meta | 12 + .../Process_RpcC2M_AskGuildArenaTeamInfoNew.cs | 33 + ...Process_RpcC2M_AskGuildArenaTeamInfoNew.cs.meta | 12 + .../Process/Process_RpcC2M_AskGuildBriefInfo.cs | 49 + .../Process_RpcC2M_AskGuildBriefInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_AskGuildMembers.cs | 47 + .../Process/Process_RpcC2M_AskGuildMembers.cs.meta | 12 + .../Process/Process_RpcC2M_AskGuildSkillInfoNew.cs | 38 + .../Process_RpcC2M_AskGuildSkillInfoNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs | 28 + .../Process_RpcC2M_AskGuildWageInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_AuctionAllReq.cs | 28 + .../Process/Process_RpcC2M_AuctionAllReq.cs.meta | 12 + .../Process_RpcC2M_BuyDragonGuildShopItem.cs | 18 + .../Process_RpcC2M_BuyDragonGuildShopItem.cs.meta | 12 + .../Process/Process_RpcC2M_BuyPartnerShopItem.cs | 18 + .../Process_RpcC2M_BuyPartnerShopItem.cs.meta | 12 + .../Process/Process_RpcC2M_CancelLeavePartner.cs | 17 + .../Process_RpcC2M_CancelLeavePartner.cs.meta | 12 + .../Process_RpcC2M_ChangeDragonGuildPosition.cs | 37 + ...rocess_RpcC2M_ChangeDragonGuildPosition.cs.meta | 12 + .../Process_RpcC2M_ChangeDragonGuildSetting.cs | 41 + ...Process_RpcC2M_ChangeDragonGuildSetting.cs.meta | 12 + .../Process_RpcC2M_ChangeGuildSettingNew.cs | 46 + .../Process_RpcC2M_ChangeGuildSettingNew.cs.meta | 12 + .../Process_RpcC2M_ChangeMemberPositionNew.cs | 38 + .../Process_RpcC2M_ChangeMemberPositionNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_ChangeNameNew.cs | 28 + .../Process/Process_RpcC2M_ChangeNameNew.cs.meta | 12 + .../Process/Process_RpcC2M_CheckRoleBeforePay.cs | 16 + .../Process_RpcC2M_CheckRoleBeforePay.cs.meta | 12 + .../Process_RpcC2M_ClearGuildTerrAlliance.cs | 28 + .../Process_RpcC2M_ClearGuildTerrAlliance.cs.meta | 12 + .../Process/Process_RpcC2M_ClearPrivateChatList.cs | 16 + .../Process_RpcC2M_ClearPrivateChatList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_ClickNewNotice.cs | 39 + .../Process/Process_RpcC2M_ClickNewNotice.cs.meta | 12 + .../Process_RpcC2M_ClientQueryRankListNtf.cs | 163 + .../Process_RpcC2M_ClientQueryRankListNtf.cs.meta | 12 + .../Process/Process_RpcC2M_CreateOrEnterGuild.cs | 46 + .../Process_RpcC2M_CreateOrEnterGuild.cs.meta | 12 + .../Process_RpcC2M_CreateOrJoinDragonGuild.cs | 45 + .../Process_RpcC2M_CreateOrJoinDragonGuild.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_CreateRoleNew.cs | 60 + .../Process/Process_RpcC2M_CreateRoleNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_CrossGvgOper.cs | 18 + .../Process/Process_RpcC2M_CrossGvgOper.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_CustomBattleOp.cs | 42 + .../Process/Process_RpcC2M_CustomBattleOp.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_DERankReq.cs | 28 + .../PTC/Process/Process_RpcC2M_DERankReq.cs.meta | 12 + .../Process/Process_RpcC2M_DailyTaskRefreshOper.cs | 37 + .../Process_RpcC2M_DailyTaskRefreshOper.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_DelGuildInherit.cs | 28 + .../Process/Process_RpcC2M_DelGuildInherit.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_DoAddFriendNew.cs | 28 + .../Process/Process_RpcC2M_DoAddFriendNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_DonateMemberItem.cs | 37 + .../Process_RpcC2M_DonateMemberItem.cs.meta | 12 + .../Process/Process_RpcC2M_DragonGuildApproval.cs | 38 + .../Process_RpcC2M_DragonGuildApproval.cs.meta | 12 + .../Process_RpcC2M_DragonGuildBindGroupReq.cs | 37 + .../Process_RpcC2M_DragonGuildBindGroupReq.cs.meta | 12 + .../Process_RpcC2M_DragonGuildJoinBindGroup.cs | 37 + ...Process_RpcC2M_DragonGuildJoinBindGroup.cs.meta | 12 + .../Process_RpcC2M_DragonGuildUnBindGroup.cs | 37 + .../Process_RpcC2M_DragonGuildUnBindGroup.cs.meta | 12 + .../Process/Process_RpcC2M_EnterBMReadyScene.cs | 46 + .../Process_RpcC2M_EnterBMReadyScene.cs.meta | 12 + .../Process_RpcC2M_EnterBattleReadyScene.cs | 41 + .../Process_RpcC2M_EnterBattleReadyScene.cs.meta | 12 + .../Process/Process_RpcC2M_EnterWeddingScene.cs | 38 + .../Process_RpcC2M_EnterWeddingScene.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_FetchDGApps.cs | 38 + .../PTC/Process/Process_RpcC2M_FetchDGApps.cs.meta | 12 + .../Process/Process_RpcC2M_FetchDragonGuildList.cs | 46 + .../Process_RpcC2M_FetchDragonGuildList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_FetchGuildApp.cs | 38 + .../Process/Process_RpcC2M_FetchGuildApp.cs.meta | 12 + .../Process/Process_RpcC2M_FetchGuildHistoryNew.cs | 38 + .../Process_RpcC2M_FetchGuildHistoryNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_FetchMail.cs | 22 + .../PTC/Process/Process_RpcC2M_FetchMail.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_FetchPlantInfo.cs | 37 + .../Process/Process_RpcC2M_FetchPlantInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_FetchPlatNotice.cs | 42 + .../Process/Process_RpcC2M_FetchPlatNotice.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs | 38 + .../Process_RpcC2M_FetchTeamListC2M.cs.meta | 12 + .../Process/Process_RpcC2M_FriendGardenPlantLog.cs | 37 + .../Process_RpcC2M_FriendGardenPlantLog.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs | 28 + .../Process/Process_RpcC2M_FriendGiftOpNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GCFCommonReq.cs | 36 + .../Process/Process_RpcC2M_GCFCommonReq.cs.meta | 12 + .../Process/Process_RpcC2M_GCFFightInfoReqC2M.cs | 28 + .../Process_RpcC2M_GCFFightInfoReqC2M.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs | 22 + .../Process_RpcC2M_GCFReadysInfoReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GardenBanquet.cs | 45 + .../Process/Process_RpcC2M_GardenBanquet.cs.meta | 12 + .../Process/Process_RpcC2M_GardenBanquetAward.cs | 16 + .../Process_RpcC2M_GardenBanquetAward.cs.meta | 12 + .../Process/Process_RpcC2M_GardenCookingFood.cs | 46 + .../Process_RpcC2M_GardenCookingFood.cs.meta | 12 + .../Process/Process_RpcC2M_GardenExpelSprite.cs | 17 + .../Process_RpcC2M_GardenExpelSprite.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GardenFishInfo.cs | 48 + .../Process/Process_RpcC2M_GardenFishInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GardenOverview.cs | 45 + .../Process/Process_RpcC2M_GardenOverview.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GardenSteal.cs | 37 + .../PTC/Process/Process_RpcC2M_GardenSteal.cs.meta | 12 + .../Process/Process_RpcC2M_GetAllWeddingInfo.cs | 38 + .../Process_RpcC2M_GetAllWeddingInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetCrossGvgData.cs | 18 + .../Process/Process_RpcC2M_GetCrossGvgData.cs.meta | 12 + .../Process/Process_RpcC2M_GetDailyTaskAskHelp.cs | 45 + .../Process_RpcC2M_GetDailyTaskAskHelp.cs.meta | 12 + .../Process_RpcC2M_GetDailyTaskRefreshInfo.cs | 45 + .../Process_RpcC2M_GetDailyTaskRefreshInfo.cs.meta | 12 + .../Process_RpcC2M_GetDailyTaskRefreshRecord.cs | 45 + ...rocess_RpcC2M_GetDailyTaskRefreshRecord.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetDanceIds.cs | 27 + .../PTC/Process/Process_RpcC2M_GetDanceIds.cs.meta | 12 + .../Process_RpcC2M_GetDragonGuildBindInfo.cs | 37 + .../Process_RpcC2M_GetDragonGuildBindInfo.cs.meta | 12 + .../Process_RpcC2M_GetDragonGuildLiveness.cs | 27 + .../Process_RpcC2M_GetDragonGuildLiveness.cs.meta | 12 + .../Process/Process_RpcC2M_GetDragonGuildShop.cs | 18 + .../Process_RpcC2M_GetDragonGuildShop.cs.meta | 12 + .../Process_RpcC2M_GetDragonGuildShopRecord.cs | 17 + ...Process_RpcC2M_GetDragonGuildShopRecord.cs.meta | 12 + .../Process_RpcC2M_GetDragonGuildTaskInfo.cs | 28 + .../Process_RpcC2M_GetDragonGuildTaskInfo.cs.meta | 12 + .../Process_RpcC2M_GetFlowerActivityReward.cs | 38 + .../Process_RpcC2M_GetFlowerActivityReward.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs | 38 + .../Process_RpcC2M_GetGuildBindInfo.cs.meta | 12 + .../Process_RpcC2M_GetGuildBonusSendList.cs | 28 + .../Process_RpcC2M_GetGuildBonusSendList.cs.meta | 12 + .../Process_RpcC2M_GetGuildCheckinRecordsNew.cs | 38 + ...rocess_RpcC2M_GetGuildCheckinRecordsNew.cs.meta | 12 + .../Process/Process_RpcC2M_GetGuildDonateInfo.cs | 41 + .../Process_RpcC2M_GetGuildDonateInfo.cs.meta | 12 + .../Process/Process_RpcC2M_GetGuildIntegralInfo.cs | 28 + .../Process_RpcC2M_GetGuildIntegralInfo.cs.meta | 12 + .../Process/Process_RpcC2M_GetGuildWageReward.cs | 28 + .../Process_RpcC2M_GetGuildWageReward.cs.meta | 12 + .../Process/Process_RpcC2M_GetLeagueBattleInfo.cs | 37 + .../Process_RpcC2M_GetLeagueBattleInfo.cs.meta | 12 + .../Process_RpcC2M_GetLeagueBattleRecord.cs | 37 + .../Process_RpcC2M_GetLeagueBattleRecord.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs | 45 + .../Process_RpcC2M_GetLeagueEleInfo.cs.meta | 12 + .../Process/Process_RpcC2M_GetLeagueTeamInfo.cs | 37 + .../Process_RpcC2M_GetLeagueTeamInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetListSubscribe.cs | 38 + .../Process_RpcC2M_GetListSubscribe.cs.meta | 12 + .../Process/Process_RpcC2M_GetMarriageLiveness.cs | 37 + .../Process_RpcC2M_GetMarriageLiveness.cs.meta | 12 + .../Process/Process_RpcC2M_GetMarriagePrivilege.cs | 37 + .../Process_RpcC2M_GetMarriagePrivilege.cs.meta | 12 + .../Process/Process_RpcC2M_GetMarriageRelation.cs | 39 + .../Process_RpcC2M_GetMarriageRelation.cs.meta | 12 + .../Process_RpcC2M_GetMobaBattleBriefRecord.cs | 28 + ...Process_RpcC2M_GetMobaBattleBriefRecord.cs.meta | 12 + .../Process_RpcC2M_GetMobaBattleGameRecord.cs | 28 + .../Process_RpcC2M_GetMobaBattleGameRecord.cs.meta | 12 + .../Process/Process_RpcC2M_GetMobaBattleInfo.cs | 28 + .../Process_RpcC2M_GetMobaBattleInfo.cs.meta | 12 + .../Process_RpcC2M_GetMobaBattleWeekReward.cs | 46 + .../Process_RpcC2M_GetMobaBattleWeekReward.cs.meta | 12 + .../Process/Process_RpcC2M_GetMyApplyMasterInfo.cs | 45 + .../Process_RpcC2M_GetMyApplyMasterInfo.cs.meta | 12 + .../Process_RpcC2M_GetMyApplyStudentInfo.cs | 45 + .../Process_RpcC2M_GetMyApplyStudentInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs | 45 + .../Process/Process_RpcC2M_GetMyMentorInfo.cs.meta | 12 + .../Process_RpcC2M_GetOtherGuildBriefNew.cs | 42 + .../Process_RpcC2M_GetOtherGuildBriefNew.cs.meta | 12 + .../Process/Process_RpcC2M_GetOtherMentorStatus.cs | 45 + .../Process_RpcC2M_GetOtherMentorStatus.cs.meta | 12 + .../Process/Process_RpcC2M_GetPartnerDetailInfo.cs | 17 + .../Process_RpcC2M_GetPartnerDetailInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetPartnerInfo.cs | 17 + .../Process/Process_RpcC2M_GetPartnerInfo.cs.meta | 12 + .../Process/Process_RpcC2M_GetPartnerLiveness.cs | 17 + .../Process_RpcC2M_GetPartnerLiveness.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetPartnerShop.cs | 18 + .../Process/Process_RpcC2M_GetPartnerShop.cs.meta | 12 + .../Process/Process_RpcC2M_GetPartnerShopRecord.cs | 17 + .../Process_RpcC2M_GetPartnerShopRecord.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetQADataReq.cs | 62 + .../Process/Process_RpcC2M_GetQADataReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs | 46 + .../Process_RpcC2M_GetRiftGuildRank.cs.meta | 12 + .../Process/Process_RpcC2M_GetSkyCraftEliInfo.cs | 16 + .../Process_RpcC2M_GetSkyCraftEliInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs | 16 + .../Process/Process_RpcC2M_GetSkyCraftInfo.cs.meta | 12 + .../Process/Process_RpcC2M_GetSkyCraftRecord.cs | 16 + .../Process_RpcC2M_GetSkyCraftRecord.cs.meta | 12 + .../Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs | 16 + .../Process_RpcC2M_GetSkyCraftTeamInfo.cs.meta | 12 + .../Process/Process_RpcC2M_GetUnitAppearanceNew.cs | 95 + .../Process_RpcC2M_GetUnitAppearanceNew.cs.meta | 12 + .../Process/Process_RpcC2M_GetWeddingInviteInfo.cs | 38 + .../Process_RpcC2M_GetWeddingInviteInfo.cs.meta | 12 + .../Process/Process_RpcC2M_GetWorldBossStateNew.cs | 37 + .../Process_RpcC2M_GetWorldBossStateNew.cs.meta | 12 + .../Process/Process_RpcC2M_GetWorldBossTimeLeft.cs | 28 + .../Process_RpcC2M_GetWorldBossTimeLeft.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs | 16 + .../Process/Process_RpcC2M_GiftIbReqGoods.cs.meta | 12 + .../Process/Process_RpcC2M_GoalAwardsGetAwards.cs | 28 + .../Process_RpcC2M_GoalAwardsGetAwards.cs.meta | 12 + .../Process/Process_RpcC2M_GoalAwardsGetList.cs | 30 + .../Process_RpcC2M_GoalAwardsGetList.cs.meta | 12 + .../Process/Process_RpcC2M_GroupChatChangeName.cs | 16 + .../Process_RpcC2M_GroupChatChangeName.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GroupChatClear.cs | 16 + .../Process/Process_RpcC2M_GroupChatClear.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GroupChatCreate.cs | 46 + .../Process/Process_RpcC2M_GroupChatCreate.cs.meta | 12 + .../Process_RpcC2M_GroupChatFindRoleInfoList.cs | 18 + ...rocess_RpcC2M_GroupChatFindRoleInfoList.cs.meta | 12 + .../Process_RpcC2M_GroupChatFindTeamInfoList.cs | 18 + ...rocess_RpcC2M_GroupChatFindTeamInfoList.cs.meta | 12 + .../Process_RpcC2M_GroupChatGetGroupInfo.cs | 46 + .../Process_RpcC2M_GroupChatGetGroupInfo.cs.meta | 12 + .../Process_RpcC2M_GroupChatLeaderAddRole.cs | 18 + .../Process_RpcC2M_GroupChatLeaderAddRole.cs.meta | 12 + .../Process_RpcC2M_GroupChatLeaderIssueInfo.cs | 18 + ...Process_RpcC2M_GroupChatLeaderIssueInfo.cs.meta | 12 + .../Process_RpcC2M_GroupChatLeaderReview.cs | 18 + .../Process_RpcC2M_GroupChatLeaderReview.cs.meta | 12 + .../Process_RpcC2M_GroupChatLeaderReviewList.cs | 18 + ...rocess_RpcC2M_GroupChatLeaderReviewList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GroupChatManager.cs | 41 + .../Process_RpcC2M_GroupChatManager.cs.meta | 12 + .../Process/Process_RpcC2M_GroupChatPlayerApply.cs | 18 + .../Process_RpcC2M_GroupChatPlayerApply.cs.meta | 12 + .../Process_RpcC2M_GroupChatPlayerIssueInfo.cs | 18 + ...Process_RpcC2M_GroupChatPlayerIssueInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GroupChatQuit.cs | 46 + .../Process/Process_RpcC2M_GroupChatQuit.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GuildApprovalNew.cs | 38 + .../Process_RpcC2M_GuildApprovalNew.cs.meta | 12 + .../Process_RpcC2M_GuildArenaSimpleDeployNew.cs | 33 + ...rocess_RpcC2M_GuildArenaSimpleDeployNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs | 43 + .../Process/Process_RpcC2M_GuildAuctReqAll.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GuildBindGroup.cs | 38 + .../Process/Process_RpcC2M_GuildBindGroup.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GuildCampInfo.cs | 57 + .../Process/Process_RpcC2M_GuildCampInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GuildCheckinNew.cs | 38 + .../Process/Process_RpcC2M_GuildCheckinNew.cs.meta | 12 + .../Process/Process_RpcC2M_GuildFatigueOPNew.cs | 38 + .../Process_RpcC2M_GuildFatigueOPNew.cs.meta | 12 + .../Process/Process_RpcC2M_GuildHallGetBuffList.cs | 46 + .../Process_RpcC2M_GuildHallGetBuffList.cs.meta | 12 + .../Process/Process_RpcC2M_GuildHallUpdateBuff.cs | 46 + .../Process_RpcC2M_GuildHallUpdateBuff.cs.meta | 12 + .../Process/Process_RpcC2M_GuildJoinBindGroup.cs | 38 + .../Process_RpcC2M_GuildJoinBindGroup.cs.meta | 12 + .../Process_RpcC2M_GuildSchoolHallGetRankList.cs | 46 + ...ocess_RpcC2M_GuildSchoolHallGetRankList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs | 38 + .../Process_RpcC2M_GuildUnBindGroup.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs | 53 + .../Process_RpcC2M_GuildZiCaiDonate.cs.meta | 12 + .../Process_RpcC2M_GuildZiCaiDonateHistory.cs | 46 + .../Process_RpcC2M_GuildZiCaiDonateHistory.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_HoldWedding.cs | 38 + .../PTC/Process/Process_RpcC2M_HoldWedding.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_IbGiftHistReq.cs | 56 + .../Process/Process_RpcC2M_IbGiftHistReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_InvFightReqAll.cs | 38 + .../Process/Process_RpcC2M_InvFightReqAll.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs | 38 + .../Process_RpcC2M_InvHistoryC2MReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_JoinFmRoom.cs | 43 + .../PTC/Process/Process_RpcC2M_JoinFmRoom.cs.meta | 12 + .../Process/Process_RpcC2M_JoinLeagueEleBattle.cs | 31 + .../Process_RpcC2M_JoinLeagueEleBattle.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_KMatchCommonReq.cs | 51 + .../Process/Process_RpcC2M_KMatchCommonReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_LeagueBattleReq.cs | 41 + .../Process/Process_RpcC2M_LeagueBattleReq.cs.meta | 12 + .../Process/Process_RpcC2M_LeaveFromDragonGuild.cs | 51 + .../Process_RpcC2M_LeaveFromDragonGuild.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_LeaveFromGuild.cs | 53 + .../Process/Process_RpcC2M_LeaveFromGuild.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs | 41 + .../Process/Process_RpcC2M_LeaveLeagueTeam.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_LeavePartner.cs | 17 + .../Process/Process_RpcC2M_LeavePartner.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs | 16 + .../Process/Process_RpcC2M_LeaveSkyTeam.cs.meta | 12 + .../Process_RpcC2M_MSGetFlowerRewardList.cs | 38 + .../Process_RpcC2M_MSGetFlowerRewardList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_MTShowTopList.cs | 40 + .../Process/Process_RpcC2M_MTShowTopList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_MailOp.cs | 52 + .../PTC/Process/Process_RpcC2M_MailOp.cs.meta | 12 + .../Process/Process_RpcC2M_MarriageRelationOp.cs | 37 + .../Process_RpcC2M_MarriageRelationOp.cs.meta | 12 + .../Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs | 37 + .../Process_RpcC2M_MentorMyBeAppliedMsg.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_MentorRelationOp.cs | 37 + .../Process_RpcC2M_MentorRelationOp.cs.meta | 12 + .../Process_RpcC2M_ModifyDragonGuildName.cs | 18 + .../Process_RpcC2M_ModifyDragonGuildName.cs.meta | 12 + .../Process/Process_RpcC2M_ModifyMsGuildName.cs | 18 + .../Process_RpcC2M_ModifyMsGuildName.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs | 42 + .../PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs.meta | 12 + .../Process/Process_RpcC2M_OPenGardenFarmland.cs | 37 + .../Process_RpcC2M_OPenGardenFarmland.cs.meta | 12 + .../Process_RpcC2M_Open520FestivityRedPacket.cs | 16 + ...rocess_RpcC2M_Open520FestivityRedPacket.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_PayNotify.cs | 38 + .../PTC/Process/Process_RpcC2M_PayNotify.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_PkReqC2M.cs | 72 + .../PTC/Process/Process_RpcC2M_PkReqC2M.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_PlantCultivation.cs | 37 + .../Process_RpcC2M_PlantCultivation.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_PlantHarvest.cs | 37 + .../Process/Process_RpcC2M_PlantHarvest.cs.meta | 12 + .../Process/Process_RpcC2M_QueryBigMeleeRank.cs | 51 + .../Process_RpcC2M_QueryBigMeleeRank.cs.meta | 12 + .../Process/Process_RpcC2M_QueryGuildCheckinNew.cs | 38 + .../Process_RpcC2M_QueryGuildCheckinNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_QueryResWar.cs | 55 + .../PTC/Process/Process_RpcC2M_QueryResWar.cs.meta | 12 + .../Process/Process_RpcC2M_QueryResWarRoleRank.cs | 28 + .../Process_RpcC2M_QueryResWarRoleRank.cs.meta | 12 + .../Process_RpcC2M_RandomFriendWaitListNew.cs | 41 + .../Process_RpcC2M_RandomFriendWaitListNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_RecAlliance.cs | 28 + .../PTC/Process/Process_RpcC2M_RecAlliance.cs.meta | 12 + .../Process/Process_RpcC2M_RemoveBlackListNew.cs | 36 + .../Process_RpcC2M_RemoveBlackListNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_RemoveFriendNew.cs | 38 + .../Process/Process_RpcC2M_RemoveFriendNew.cs.meta | 12 + .../Process/Process_RpcC2M_ReqGuildArenaHistory.cs | 28 + .../Process_RpcC2M_ReqGuildArenaHistory.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs | 38 + .../Process_RpcC2M_ReqGuildBossInfo.cs.meta | 12 + .../Process/Process_RpcC2M_ReqGuildInheritInfo.cs | 28 + .../Process_RpcC2M_ReqGuildInheritInfo.cs.meta | 12 + .../Process/Process_RpcC2M_ReqGuildLadderInfo.cs | 28 + .../Process_RpcC2M_ReqGuildLadderInfo.cs.meta | 12 + .../Process_RpcC2M_ReqGuildLadderRnakInfo.cs | 28 + .../Process_RpcC2M_ReqGuildLadderRnakInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_ReqGuildList.cs | 51 + .../Process/Process_RpcC2M_ReqGuildList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs | 28 + .../Process_RpcC2M_ReqGuildRankInfo.cs.meta | 12 + .../Process_RpcC2M_ReqGuildTerrAllianceInfo.cs | 28 + ...Process_RpcC2M_ReqGuildTerrAllianceInfo.cs.meta | 12 + .../Process_RpcC2M_ReqGuildTerrChallInfo.cs | 28 + .../Process_RpcC2M_ReqGuildTerrChallInfo.cs.meta | 12 + .../Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs | 28 + .../Process_RpcC2M_ReqGuildTerrCityInfo.cs.meta | 12 + .../Process_RpcC2M_ReqGuildTerrIntellInfo.cs | 28 + .../Process_RpcC2M_ReqGuildTerrIntellInfo.cs.meta | 12 + .../Process_RpcC2M_ReqPlatFriendRankList.cs | 38 + .../Process_RpcC2M_ReqPlatFriendRankList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_ResWarExplore.cs | 41 + .../Process/Process_RpcC2M_ResWarExplore.cs.meta | 12 + .../Process/Process_RpcC2M_ReturnToSelectRole.cs | 28 + .../Process_RpcC2M_ReturnToSelectRole.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_SelectRoleNew.cs | 71 + .../Process/Process_RpcC2M_SelectRoleNew.cs.meta | 12 + .../Process/Process_RpcC2M_SendGift2PlatFriend.cs | 38 + .../Process_RpcC2M_SendGift2PlatFriend.cs.meta | 12 + .../Process_RpcC2M_SendGuildBonusInSendList.cs | 28 + ...Process_RpcC2M_SendGuildBonusInSendList.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_SetSubscribe.cs | 46 + .../Process/Process_RpcC2M_SetSubscribe.cs.meta | 12 + .../Process/Process_RpcC2M_ShowFlowerPageNew.cs | 38 + .../Process_RpcC2M_ShowFlowerPageNew.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_SkyCityEnter.cs | 31 + .../Process/Process_RpcC2M_SkyCityEnter.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs | 16 + .../Process_RpcC2M_SkyCraftMatchReq.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_StartPlant.cs | 37 + .../PTC/Process/Process_RpcC2M_StartPlant.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_StartResWarPVE.cs | 41 + .../Process/Process_RpcC2M_StartResWarPVE.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_StartWeddingCar.cs | 41 + .../Process/Process_RpcC2M_StartWeddingCar.cs.meta | 12 + .../Process/Process_RpcC2M_StudyGuildSkillNew.cs | 38 + .../Process_RpcC2M_StudyGuildSkillNew.cs.meta | 12 + .../Process/Process_RpcC2M_TakeMarriageChest.cs | 37 + .../Process_RpcC2M_TakeMarriageChest.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_TeamRequestC2M.cs | 50 + .../Process/Process_RpcC2M_TeamRequestC2M.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_TryAlliance.cs | 28 + .../PTC/Process/Process_RpcC2M_TryAlliance.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_TryDance.cs | 16 + .../PTC/Process/Process_RpcC2M_TryDance.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_TryFish.cs | 49 + .../PTC/Process/Process_RpcC2M_TryFish.cs.meta | 12 + .../Process_RpcC2M_UpdateMentorApplyStudentInfo.cs | 45 + ...ess_RpcC2M_UpdateMentorApplyStudentInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_UseGuildBuff.cs | 37 + .../Process/Process_RpcC2M_UseGuildBuff.cs.meta | 12 + .../Process_RpcC2M_WeddingInviteOperator.cs | 37 + .../Process_RpcC2M_WeddingInviteOperator.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_WorldBossEnd.cs | 28 + .../Process/Process_RpcC2M_WorldBossEnd.cs.meta | 12 + .../Process_RpcC2M_WorldBossGuildAddAttr.cs | 38 + .../Process_RpcC2M_WorldBossGuildAddAttr.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_applyguildarena.cs | 38 + .../Process/Process_RpcC2M_applyguildarena.cs.meta | 12 + .../XMainClient/PTC/Process/Process_RpcC2M_chat.cs | 57 + .../PTC/Process/Process_RpcC2M_chat.cs.meta | 12 + .../Process/Process_RpcC2M_getapplyguildlist.cs | 28 + .../Process_RpcC2M_getapplyguildlist.cs.meta | 12 + .../Process/Process_RpcC2M_getguildbosstimeleft.cs | 28 + .../Process_RpcC2M_getguildbosstimeleft.cs.meta | 12 + .../Process_RpcC2M_getintegralbattleInfo.cs | 28 + .../Process_RpcC2M_getintegralbattleInfo.cs.meta | 12 + .../PTC/Process/Process_RpcC2M_gmfjoinreq.cs | 28 + .../PTC/Process/Process_RpcC2M_gmfjoinreq.cs.meta | 12 + .../PTC/Process/Process_RpcC2N_CreateRoleNew.cs | 16 + .../Process/Process_RpcC2N_CreateRoleNew.cs.meta | 12 + .../Process/Process_RpcC2N_LoginReconnectReq.cs | 31 + .../Process_RpcC2N_LoginReconnectReq.cs.meta | 12 + .../Process/Process_RpcC2N_ReturnToSelectRole.cs | 16 + .../Process_RpcC2N_ReturnToSelectRole.cs.meta | 12 + .../PTC/Process/Process_RpcC2N_SelectRoleNew.cs | 16 + .../Process/Process_RpcC2N_SelectRoleNew.cs.meta | 12 + .../Process/Process_RpcC2T_ClientLoginRequest.cs | 77 + .../Process_RpcC2T_ClientLoginRequest.cs.meta | 12 + .../PTC/Process/Process_RpcC2T_Reconnect.cs | 41 + .../PTC/Process/Process_RpcC2T_Reconnect.cs.meta | 12 + .../Process/Process_RpcC2T_UpLoadAudioToGate.cs | 49 + .../Process_RpcC2T_UpLoadAudioToGate.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs | 32 + .../XMainClient/PTC/PtcA2C_AudioAIDNtf.cs.meta | 12 + .../PTC/PtcC2G_AddLevelScriptExtString.cs | 32 + .../PTC/PtcC2G_AddLevelScriptExtString.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs | 32 + .../XMainClient/PTC/PtcC2G_AutoFightNTF.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_BattleLogReport.cs | 32 + .../XMainClient/PTC/PtcC2G_BattleLogReport.cs.meta | 12 + .../PTC/PtcC2G_BattleStatisticsReport.cs | 26 + .../PTC/PtcC2G_BattleStatisticsReport.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_CancelRedDotReq.cs | 32 + .../XMainClient/PTC/PtcC2G_CancelRedDotReq.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs | 32 + .../XMainClient/PTC/PtcC2G_CastSkill.cs.meta | 12 + .../PTC/PtcC2G_ChangeSupplementReport.cs | 32 + .../PTC/PtcC2G_ChangeSupplementReport.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_ClickGuildCamp.cs | 32 + .../XMainClient/PTC/PtcC2G_ClickGuildCamp.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs | 32 + .../PTC/PtcC2G_ClientUpdatePackage.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs | 32 + .../XMainClient/PTC/PtcC2G_CloseHintNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs | 32 + .../XMainClient/PTC/PtcC2G_DelayNotify.cs.meta | 12 + .../PTC/PtcC2G_EnterSceneCoolDownQuery.cs | 32 + .../PTC/PtcC2G_EnterSceneCoolDownQuery.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_EnterSceneReq.cs | 32 + .../XMainClient/PTC/PtcC2G_EnterSceneReq.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs | 32 + .../XMainClient/PTC/PtcC2G_FMBRefuse.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs | 32 + .../PTC/PtcC2G_InvfightAgainReqC2G.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs | 32 + .../XMainClient/PTC/PtcC2G_JoinRoom.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_LeaveSceneReq.cs | 26 + .../XMainClient/PTC/PtcC2G_LeaveSceneReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_MoveOperationReq.cs | 32 + .../PTC/PtcC2G_MoveOperationReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_NextDayRewardReport.cs | 32 + .../PTC/PtcC2G_NextDayRewardReport.cs.meta | 12 + .../PTC/PtcC2G_NotifyPlatShareResult.cs | 32 + .../PTC/PtcC2G_NotifyPlatShareResult.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_OnlineRewardReport.cs | 32 + .../PTC/PtcC2G_OnlineRewardReport.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs | 32 + .../PTC/PtcC2G_OpenSpriteEggNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_OperateRecordNtf.cs | 32 + .../PTC/PtcC2G_OperateRecordNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs | 32 + .../XMainClient/PTC/PtcC2G_PicUrlNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs | 32 + .../XMainClient/PTC/PtcC2G_PlayDiceOver.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs | 32 + .../XMainClient/PTC/PtcC2G_QTEOperation.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs | 32 + .../PTC/PtcC2G_QueryRoleStateReq.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs | 32 + .../XMainClient/PTC/PtcC2G_QuitRoom.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs | 32 + .../PTC/PtcC2G_RemoveIBShopIcon.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs | 26 + .../PTC/PtcC2G_RoleDeathInSoloScene.cs.meta | 12 + .../PTC/PtcC2G_SceneDamageRankReport.cs | 26 + .../PTC/PtcC2G_SceneDamageRankReport.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_SetVoipMemberState.cs | 32 + .../PTC/PtcC2G_SetVoipMemberState.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs | 32 + .../XMainClient/PTC/PtcC2G_ShareReport.cs.meta | 12 + .../PTC/PtcC2G_SkillBulletFireReport.cs | 37 + .../PTC/PtcC2G_SkillBulletFireReport.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs | 37 + .../PTC/PtcC2G_SkillBulletResultReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_SkillResultReq.cs | 38 + .../XMainClient/PTC/PtcC2G_SkillResultReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs | 32 + .../PTC/PtcC2G_SynDoingGuildInherit.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_SyncSceneFinish.cs | 26 + .../XMainClient/PTC/PtcC2G_SyncSceneFinish.cs.meta | 12 + .../PTC/PtcC2G_TssSdkSendAnti2Server.cs | 32 + .../PTC/PtcC2G_TssSdkSendAnti2Server.cs.meta | 12 + .../PTC/PtcC2G_UpdateFreeflowHintInfo.cs | 32 + .../PTC/PtcC2G_UpdateFreeflowHintInfo.cs.meta | 12 + .../XMainClient/PTC/PtcC2G_UpdateTutorial.cs | 32 + .../XMainClient/PTC/PtcC2G_UpdateTutorial.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_BlackListReportNew.cs | 32 + .../PTC/PtcC2M_BlackListReportNew.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_CheckQueuingReq.cs | 32 + .../XMainClient/PTC/PtcC2M_CheckQueuingReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs | 32 + .../PTC/PtcC2M_CloseLeagueEleNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs | 32 + .../PTC/PtcC2M_CloseSkyCraftEliNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs | 32 + .../XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs | 32 + .../XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs | 32 + .../PTC/PtcC2M_FriendQueryReportNew.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_GardenFishStop.cs | 32 + .../XMainClient/PTC/PtcC2M_GardenFishStop.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs | 32 + .../PTC/PtcC2M_GiveUpQAQuestionNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs | 32 + .../PTC/PtcC2M_GmfJoinBattleC2MRes.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs | 32 + .../PTC/PtcC2M_GoBackReadySceneNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs | 32 + .../PTC/PtcC2M_GuildCardMatchReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_GuildCardRankReq.cs | 32 + .../PTC/PtcC2M_GuildCardRankReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_HandleMicphone.cs | 32 + .../XMainClient/PTC/PtcC2M_HandleMicphone.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs | 32 + .../XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs | 32 + .../XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs | 32 + .../PTC/PtcC2M_LoadOfflineChatNtf.cs.meta | 12 + .../PTC/PtcC2M_MulActivityIconSysReq.cs | 32 + .../PTC/PtcC2M_MulActivityIconSysReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs | 32 + .../PTC/PtcC2M_OpenPrivateChatNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs | 32 + .../PTC/PtcC2M_PayBuyGoodsFailNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs | 32 + .../PTC/PtcC2M_PayParameterInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_PokerTournamentReq.cs | 32 + .../PTC/PtcC2M_PokerTournamentReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_QueryResWarRequet.cs | 32 + .../PTC/PtcC2M_QueryResWarRequet.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_RoleStateReportNew.cs | 32 + .../PTC/PtcC2M_RoleStateReportNew.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs | 32 + .../PTC/PtcC2M_SyncPlatFriend2MS.cs.meta | 12 + .../XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs | 32 + .../PTC/PtcC2M_TeamInviteAckC2M.cs.meta | 12 + .../XMainClient/PTC/PtcC2N_CheckQueuingReq.cs | 32 + .../XMainClient/PTC/PtcC2N_CheckQueuingReq.cs.meta | 12 + .../XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs | 32 + .../PTC/PtcC2N_UpdateStartUpTypeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs | 26 + .../PTC/PtcC2T_KeepAlivePingAck.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs | 32 + .../XMainClient/PTC/PtcG2C_AIDebugInfo.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_AbsPartyNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs | 32 + .../PTC/PtcG2C_ActivityRoleNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs | 32 + .../PTC/PtcG2C_AllGiftIBItemNtf.cs.meta | 12 + .../PTC/PtcG2C_AllyMatchRoleIDNotify.cs | 32 + .../PTC/PtcG2C_AllyMatchRoleIDNotify.cs.meta | 12 + .../PTC/PtcG2C_AntiAddictionRemindNtf.cs | 32 + .../PTC/PtcG2C_AntiAddictionRemindNtf.cs.meta | 12 + .../PTC/PtcG2C_AttributeChangeNotify.cs | 32 + .../PTC/PtcG2C_AttributeChangeNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs | 32 + .../PTC/PtcG2C_BMRoleSceneSyncNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs.meta | 12 + .../PTC/PtcG2C_BattleFieldReadyInfoNtf.cs | 32 + .../PTC/PtcG2C_BattleFieldReadyInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs | 32 + .../PTC/PtcG2C_BattleFieldReliveNtf.cs.meta | 12 + .../PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs | 32 + .../PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BattleResultNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_BattleResultNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs | 32 + .../PTC/PtcG2C_BattleStatisticsNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs | 32 + .../PTC/PtcG2C_BattleWatcherNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs | 32 + .../PTC/PtcG2C_BigMeleePointNtf.cs.meta | 12 + .../PTC/PtcG2C_BigMeleePointOutLookNtf.cs | 32 + .../PTC/PtcG2C_BigMeleePointOutLookNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs | 32 + .../PTC/PtcG2C_BigMeleeReliveNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs | 32 + .../PTC/PtcG2C_BossRushOneFinishNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_BuffNotify.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_CdCall.cs | 32 + .../Scripts/XMainClient/PTC/PtcG2C_CdCall.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs | 32 + .../PTC/PtcG2C_ChangeFashionNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs | 32 + .../PTC/PtcG2C_ChangeNameCountNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs | 32 + .../PTC/PtcG2C_ChangeSupplementNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs | 32 + .../XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs | 32 + .../PTC/PtcG2C_CheckinInfoNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs | 32 + .../PTC/PtcG2C_ClientOnlyBuffNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs | 26 + .../PTC/PtcG2C_CloseChooseHeroNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_CompleteAchivement.cs | 32 + .../PTC/PtcG2C_CompleteAchivement.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_CorrectPosition.cs | 32 + .../XMainClient/PTC/PtcG2C_CorrectPosition.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_CountDownNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs | 32 + .../PTC/PtcG2C_CoverDesignationNtf.cs.meta | 12 + .../PTC/PtcG2C_CustomBattleLoadingNtf.cs | 32 + .../PTC/PtcG2C_CustomBattleLoadingNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_DPSNotify.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_DeathNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_DisplayAddItem.cs | 32 + .../XMainClient/PTC/PtcG2C_DisplayAddItem.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs | 32 + .../PTC/PtcG2C_DoodadItemAddNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs | 32 + .../PTC/PtcG2C_DoodadItemSkillsNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs | 32 + .../PTC/PtcG2C_DoodadItemUseNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs | 32 + .../PTC/PtcG2C_EnemyDorpDoodadNtf.cs.meta | 12 + .../PTC/PtcG2C_EnterSceneCoolDownNotify.cs | 32 + .../PTC/PtcG2C_EnterSceneCoolDownNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_EnterSceneNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_EnterSceneNtf.cs.meta | 12 + .../PTC/PtcG2C_EntityTargetChangeNtf.cs | 32 + .../PTC/PtcG2C_EntityTargetChangeNtf.cs.meta | 12 + .../PTC/PtcG2C_ExecuteLevelScriptNtf.cs | 32 + .../PTC/PtcG2C_ExecuteLevelScriptNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs | 32 + .../PTC/PtcG2C_FashoinChangedNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs | 32 + .../PTC/PtcG2C_FastMBConfirmNtf.cs.meta | 12 + .../PTC/PtcG2C_FatigueRecoverTimeNotify.cs | 32 + .../PTC/PtcG2C_FatigueRecoverTimeNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs | 32 + .../PTC/PtcG2C_FetchEnemyDoodadNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs | 32 + .../PTC/PtcG2C_FightGroupChangeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs | 32 + .../PTC/PtcG2C_FirstPassRewardNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs | 32 + .../PTC/PtcG2C_FiveDayRewardNTF.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_FlowerRainNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_FlowerRainNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs | 26 + .../PTC/PtcG2C_FlowerRankRewardNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs | 32 + .../PTC/PtcG2C_GCFZhanLingNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GSErrorNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_GSErrorNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs | 32 + .../PTC/PtcG2C_GardenBanquetNotice.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs | 32 + .../PTC/PtcG2C_GardenBanquetNtf.cs.meta | 12 + .../PTC/PtcG2C_GardenPlantEventNotice.cs | 32 + .../PTC/PtcG2C_GardenPlantEventNotice.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs | 32 + .../PTC/PtcG2C_GiftIBBackInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs | 32 + .../PTC/PtcG2C_GmfAllFightEndNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs | 32 + .../PTC/PtcG2C_GmfBattleStateNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs | 32 + .../PTC/PtcG2C_GmfGuildCombatNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs | 32 + .../PTC/PtcG2C_GmfJoinBattleReq.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs | 32 + .../XMainClient/PTC/PtcG2C_GmfKickNty.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs | 32 + .../PTC/PtcG2C_GmfOneBattleEndNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs | 32 + .../PTC/PtcG2C_GmfWaitFightBegin.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs | 32 + .../PTC/PtcG2C_GmfWaitOtherLoad.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs | 32 + .../PTC/PtcG2C_GprAllFightEndNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs | 32 + .../PTC/PtcG2C_GprOneBattleEndNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs | 32 + .../PTC/PtcG2C_GuildBestCardsNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs | 32 + .../PTC/PtcG2C_GuildBossTimeOut.cs.meta | 12 + .../PTC/PtcG2C_GuildCampPartyTradeNotify.cs | 32 + .../PTC/PtcG2C_GuildCampPartyTradeNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs | 32 + .../PTC/PtcG2C_GuildCheckinBoxNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs | 32 + .../PTC/PtcG2C_GuildGoblinKillNtf.cs.meta | 12 + .../PTC/PtcG2C_GuildNotifyMemberChanged.cs | 32 + .../PTC/PtcG2C_GuildNotifyMemberChanged.cs.meta | 12 + .../PTC/PtcG2C_GuildSettingChangedNotify.cs | 32 + .../PTC/PtcG2C_GuildSettingChangedNotify.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_HallIconSNtf.cs.meta | 12 + .../PTC/PtcG2C_HeroBattleAncientPower.cs | 32 + .../PTC/PtcG2C_HeroBattleAncientPower.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs | 32 + .../PTC/PtcG2C_HeroBattleCanUseHero.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs | 32 + .../PTC/PtcG2C_HeroBattleDataNtf.cs.meta | 12 + .../PTC/PtcG2C_HeroBattleInCircleNtf.cs | 32 + .../PTC/PtcG2C_HeroBattleInCircleNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs | 32 + .../PTC/PtcG2C_HeroBattleOverTime.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs | 32 + .../PTC/PtcG2C_HeroBattleSyncNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs | 32 + .../PTC/PtcG2C_HeroBattleTeamMsgNtf.cs.meta | 12 + .../PTC/PtcG2C_HeroBattleTeamRoleNtf.cs | 32 + .../PTC/PtcG2C_HeroBattleTeamRoleNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs | 32 + .../PTC/PtcG2C_HeroBattleTipsNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HeroKillNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_HeroKillNotify.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_HintNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs | 32 + .../PTC/PtcG2C_HorseAnimationNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs | 32 + .../PTC/PtcG2C_HorseAwardAllNtf.cs.meta | 12 + .../PTC/PtcG2C_HorseCountDownTimeNtf.cs | 32 + .../PTC/PtcG2C_HorseCountDownTimeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs | 26 + .../PTC/PtcG2C_HorseFailTipsNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HorseFinalNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_HorseFinalNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_HorseRankNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs | 32 + .../PTC/PtcG2C_HorseWaitTimeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs | 32 + .../XMainClient/PTC/PtcG2C_IBShopIcon.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs | 32 + .../PTC/PtcG2C_IdipPunishInfoNtf.cs.meta | 12 + .../PTC/PtcG2C_InvFightBefEnterSceneNtf.cs | 32 + .../PTC/PtcG2C_InvFightBefEnterSceneNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ItemChangedNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_ItemChangedNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs | 32 + .../PTC/PtcG2C_ItemCircleDrawResult.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_JoinRoomReply.cs | 32 + .../XMainClient/PTC/PtcG2C_JoinRoomReply.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs | 32 + .../PTC/PtcG2C_KickAccountJkydNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs | 32 + .../PTC/PtcG2C_KillEnemyScoreNtf.cs.meta | 12 + .../PTC/PtcG2C_LeagueBattleBaseDataNtf.cs | 32 + .../PTC/PtcG2C_LeagueBattleBaseDataNtf.cs.meta | 12 + .../PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs | 32 + .../PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs.meta | 12 + .../PTC/PtcG2C_LeagueBattleOneResultNft.cs | 32 + .../PTC/PtcG2C_LeagueBattleOneResultNft.cs.meta | 12 + .../PTC/PtcG2C_LeagueBattleResultNtf.cs | 32 + .../PTC/PtcG2C_LeagueBattleResultNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs | 32 + .../PTC/PtcG2C_LeagueBattleStateNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs | 26 + .../XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs | 32 + .../XMainClient/PTC/PtcG2C_LeaveTeam.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_LevelChangeNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_LevelChangeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs | 32 + .../PTC/PtcG2C_LevelScriptStateNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_LevelSealNtf.cs.meta | 12 + .../PTC/PtcG2C_LoginActivityStatusNtf.cs | 32 + .../PTC/PtcG2C_LoginActivityStatusNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs | 32 + .../PTC/PtcG2C_LoginReward2CNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs | 32 + .../PTC/PtcG2C_MobaBattleTeamMsgNtf.cs.meta | 12 + .../PTC/PtcG2C_MobaBattleTeamRoleNtf.cs | 32 + .../PTC/PtcG2C_MobaBattleTeamRoleNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_MobaHintNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs | 32 + .../PTC/PtcG2C_MobaRoleChangeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs | 32 + .../PTC/PtcG2C_MobaSignalBroadcast.cs.meta | 12 + .../PTC/PtcG2C_MulActivityStateChange.cs | 32 + .../PTC/PtcG2C_MulActivityStateChange.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs | 32 + .../PTC/PtcG2C_NewGuildBonusNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs | 32 + .../PTC/PtcG2C_NextDayRewardNtf.cs.meta | 12 + .../PTC/PtcG2C_NoticeDoingGuildInherit.cs | 32 + .../PTC/PtcG2C_NoticeDoingGuildInherit.cs.meta | 12 + .../PTC/PtcG2C_NoticeGuildArenaBegin.cs | 32 + .../PTC/PtcG2C_NoticeGuildArenaBegin.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs | 32 + .../PTC/PtcG2C_NoticeGuildBossEnd.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_NoticeHungryDown.cs | 32 + .../PTC/PtcG2C_NoticeHungryDown.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_NotifyAccountData.cs | 32 + .../PTC/PtcG2C_NotifyAccountData.cs.meta | 12 + .../PTC/PtcG2C_NotifyClientEnterFight.cs | 32 + .../PTC/PtcG2C_NotifyClientEnterFight.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs | 32 + .../PTC/PtcG2C_NotifyEnhanceSuit.cs.meta | 12 + .../PTC/PtcG2C_NotifyGuildBossAddAttr.cs | 32 + .../PTC/PtcG2C_NotifyGuildBossAddAttr.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs | 32 + .../PTC/PtcG2C_NotifyIdipMessageGs.cs.meta | 12 + .../PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs | 26 + .../PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs.meta | 12 + .../PTC/PtcG2C_NotifyStartUpTypeToClient.cs | 32 + .../PTC/PtcG2C_NotifyStartUpTypeToClient.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_NotifyWatchData.cs | 32 + .../XMainClient/PTC/PtcG2C_NotifyWatchData.cs.meta | 12 + .../PTC/PtcG2C_NotifyWatchIconNum2Client.cs | 32 + .../PTC/PtcG2C_NotifyWatchIconNum2Client.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_NpcFlNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_OnTransferWall.cs | 32 + .../XMainClient/PTC/PtcG2C_OnTransferWall.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_OpenSystemNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_OpenSystemNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs | 32 + .../PTC/PtcG2C_OutLookChangeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PayGiftNtf.cs.meta | 12 + .../PTC/PtcG2C_PayMemberPrivilegeNtf.cs | 32 + .../PTC/PtcG2C_PayMemberPrivilegeNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PayScoreNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs | 32 + .../XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PetInviteNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PkPrepareNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs.meta | 12 + .../PTC/PtcG2C_PlatformShareAwardNtf.cs | 32 + .../PTC/PtcG2C_PlatformShareAwardNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PlayDiceNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_PositionDebug.cs | 32 + .../XMainClient/PTC/PtcG2C_PositionDebug.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_PushPraiseNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PushPraiseNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs | 32 + .../PTC/PtcG2C_PvpBattleBeginNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_PvpBattleKill.cs | 32 + .../XMainClient/PTC/PtcG2C_PvpBattleKill.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_QANotify.cs | 32 + .../XMainClient/PTC/PtcG2C_QANotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs | 32 + .../PTC/PtcG2C_QueryRoleStateAck.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs | 32 + .../PTC/PtcG2C_ReachDesignationNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs | 32 + .../PTC/PtcG2C_ReceiveFlowerNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs | 32 + .../PTC/PtcG2C_ReconnectSyncNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs | 32 + .../PTC/PtcG2C_ResWarBattleDataNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs | 32 + .../PTC/PtcG2C_ResWarTeamResOne.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ReviveCountdown.cs | 32 + .../XMainClient/PTC/PtcG2C_ReviveCountdown.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_ReviveNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_RewardChangedNtf.cs | 32 + .../PTC/PtcG2C_RewardChangedNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs | 32 + .../PTC/PtcG2C_RiftSceneInfoNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_RiskBuyNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs | 32 + .../PTC/PtcG2C_RiskRecoverDiceNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs | 32 + .../PTC/PtcG2C_SceneDamageRankNtf.cs.meta | 12 + .../PTC/PtcG2C_SceneFinishStateChanged.cs | 32 + .../PTC/PtcG2C_SceneFinishStateChanged.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs | 32 + .../XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs | 32 + .../PTC/PtcG2C_ScenePrepareInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SceneStateNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_SceneStateNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SelectRoleNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_SelectRoleNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs | 32 + .../PTC/PtcG2C_ServerOpenDayNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs | 32 + .../PTC/PtcG2C_ShareRandomGiftNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SkillChangedNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_SkillChangedNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_SkillCoolNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs | 32 + .../PTC/PtcG2C_SkillInitCoolNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs | 32 + .../XMainClient/PTC/PtcG2C_SkillResult.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs | 32 + .../PTC/PtcG2C_SkyCityBattleDataNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs | 32 + .../PTC/PtcG2C_SkyCityEstimateRes.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs | 32 + .../XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs | 32 + .../XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs | 32 + .../PTC/PtcG2C_SpActivityChangeNtf.cs.meta | 12 + .../PTC/PtcG2C_SpActivityOffsetDayNtf.cs | 32 + .../PTC/PtcG2C_SpActivityOffsetDayNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SpecialStateNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_SpecialStateNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs | 32 + .../PTC/PtcG2C_SpriteChangedNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs | 32 + .../PTC/PtcG2C_StartBattleFailedNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_StartRollNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs | 32 + .../XMainClient/PTC/PtcG2C_SynAtlasAttr.cs.meta | 12 + .../PTC/PtcG2C_SynGuildArenaBattleInfo.cs | 32 + .../PTC/PtcG2C_SynGuildArenaBattleInfo.cs.meta | 12 + .../PTC/PtcG2C_SynGuildArenaFightUnit.cs | 32 + .../PTC/PtcG2C_SynGuildArenaFightUnit.cs.meta | 12 + .../PTC/PtcG2C_SynGuildArenaRoleOnline.cs | 32 + .../PTC/PtcG2C_SynGuildArenaRoleOnline.cs.meta | 12 + .../PTC/PtcG2C_SynGuildInheritNumInfo.cs | 32 + .../PTC/PtcG2C_SynGuildInheritNumInfo.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SyncMoveNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_SyncMoveNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_SyncStepNotify.cs | 35 + .../XMainClient/PTC/PtcG2C_SyncStepNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TajieHelpNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_TajieHelpNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TakeRandomTask.cs | 32 + .../XMainClient/PTC/PtcG2C_TakeRandomTask.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TeamInviteNotify.cs | 32 + .../PTC/PtcG2C_TeamInviteNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TeamSelectNotify.cs | 32 + .../PTC/PtcG2C_TeamSelectNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TeleportNotice.cs | 32 + .../XMainClient/PTC/PtcG2C_TeleportNotice.cs.meta | 12 + .../PTC/PtcG2C_ThemeActivityChangeNtf.cs | 32 + .../PTC/PtcG2C_ThemeActivityChangeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TitleChangeNotify.cs | 32 + .../PTC/PtcG2C_TitleChangeNotify.cs.meta | 12 + .../PTC/PtcG2C_TowerFirstPassRewardNtf.cs | 32 + .../PTC/PtcG2C_TowerFirstPassRewardNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs | 32 + .../PTC/PtcG2C_TowerSceneInfoNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_TransNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs | 32 + .../PTC/PtcG2C_TransSkillNotfiy.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs | 32 + .../PTC/PtcG2C_TssSdkAntiDataNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs | 32 + .../XMainClient/PTC/PtcG2C_UnitAppear.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_UnitDisappear.cs | 32 + .../XMainClient/PTC/PtcG2C_UnitDisappear.cs.meta | 12 + .../PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs | 32 + .../PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs | 32 + .../PTC/PtcG2C_UpdateDisplayItems.cs.meta | 12 + .../PTC/PtcG2C_UpdateGuildArenaState.cs | 32 + .../PTC/PtcG2C_UpdateGuildArenaState.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_UpdatePayInfo.cs | 32 + .../XMainClient/PTC/PtcG2C_UpdatePayInfo.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs | 32 + .../PTC/PtcG2C_UpdateStageInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs | 32 + .../PTC/PtcG2C_UpdateTaskStatus.cs.meta | 12 + .../PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs | 32 + .../PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WarningRandomNtf.cs | 32 + .../PTC/PtcG2C_WarningRandomNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs | 32 + .../PTC/PtcG2C_WatchBattleInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WeddingCarNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_WeddingCarNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WeddingEventNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_WeddingEventNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs | 32 + .../PTC/PtcG2C_WeddingLoadInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WeddingStateNtf.cs | 32 + .../XMainClient/PTC/PtcG2C_WeddingStateNtf.cs.meta | 12 + .../PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs | 32 + .../PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs | 32 + .../XMainClient/PTC/PtcG2C_WordNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs | 32 + .../PTC/PtcG2C_WorldBossAttrNtf.cs.meta | 12 + .../PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs | 32 + ...cG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs | 32 + .../PTC/PtcG2C_WorldBossStateNtf.cs.meta | 12 + .../PTC/PtcG2C_WorldChannelLeftTimesNtf.cs | 32 + .../PTC/PtcG2C_WorldChannelLeftTimesNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs | 32 + .../PTC/PtcG2C_WorldLevelNtf2Client.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs | 32 + .../PTC/PtcG2C_fastMBDismissNtf.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs | 32 + .../PTC/PtcG2C_guildcamppartyNotify.cs.meta | 12 + .../XMainClient/PTC/PtcG2C_synGuildInheritExp.cs | 32 + .../PTC/PtcG2C_synGuildInheritExp.cs.meta | 12 + .../PTC/PtcG2C_synguildarenadisplace.cs | 32 + .../PTC/PtcG2C_synguildarenadisplace.cs.meta | 12 + .../Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs | 15 + .../Scripts/XMainClient/PTC/PtcHeadFlag.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_AnswerAckNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs | 32 + .../PTC/PtcM2C_ArenaStarDataNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_BlackListNtfNew.cs | 32 + .../XMainClient/PTC/PtcM2C_BlackListNtfNew.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs | 32 + .../PTC/PtcM2C_CrossGvgRoomStateNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs | 32 + .../PTC/PtcM2C_CrossGvgStateNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs | 32 + .../PTC/PtcM2C_CustomBattleGMNotify.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_DERankChangNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_DERankChangNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs | 32 + .../PTC/PtcM2C_DailyTaskEventNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs | 32 + .../PTC/PtcM2C_DragonGuildNameNtf.cs.meta | 12 + .../PTC/PtcM2C_DragonGuildSettingChanged.cs | 32 + .../PTC/PtcM2C_DragonGuildSettingChanged.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs | 32 + .../PTC/PtcM2C_FastMBConfirmM2CNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs | 32 + .../PTC/PtcM2C_FriendDegreeUpNtfNew.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs | 32 + .../XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs | 32 + .../PTC/PtcM2C_GardenBanquetNtf.cs.meta | 12 + .../PTC/PtcM2C_Get520FestivalRedPacket.cs | 32 + .../PTC/PtcM2C_Get520FestivalRedPacket.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs | 32 + .../PTC/PtcM2C_GmfJoinBattleM2CReq.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs | 32 + .../PTC/PtcM2C_GoalAwardsRedPoint.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GroupChatApply.cs | 32 + .../XMainClient/PTC/PtcM2C_GroupChatApply.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GroupChatDismiss.cs | 32 + .../PTC/PtcM2C_GroupChatDismiss.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs | 32 + .../PTC/PtcM2C_GroupChatIssueCount.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GroupChatManager.cs | 32 + .../PTC/PtcM2C_GroupChatManager.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GroupChatQuit.cs | 32 + .../XMainClient/PTC/PtcM2C_GroupChatQuit.cs.meta | 12 + .../PTC/PtcM2C_GuildAuctItemTimeFresh.cs | 32 + .../PTC/PtcM2C_GuildAuctItemTimeFresh.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs | 32 + .../PTC/PtcM2C_GuildBestCardsNtfMs.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs | 32 + .../PTC/PtcM2C_GuildBonusGetAll.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs | 32 + .../PTC/PtcM2C_GuildBuffCDParamNtf.cs.meta | 12 + .../PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs | 32 + .../PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs.meta | 12 + .../PTC/PtcM2C_GuildBuffSimpleItemNtf.cs | 32 + .../PTC/PtcM2C_GuildBuffSimpleItemNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs | 32 + .../PTC/PtcM2C_GuildCardMatchNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs | 32 + .../PTC/PtcM2C_GuildCardRankNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs | 32 + .../PTC/PtcM2C_GuildCastFeatsNtf.cs.meta | 12 + .../PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs | 32 + .../PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_GuildSetingNotify.cs | 32 + .../PTC/PtcM2C_GuildSetingNotify.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_HallIconMNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs | 32 + .../XMainClient/PTC/PtcM2C_HintNotifyMS.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs | 32 + .../PTC/PtcM2C_IdipClearChatNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs | 32 + .../PTC/PtcM2C_IdipPunishInfoMsNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_InvFightNotify.cs | 32 + .../XMainClient/PTC/PtcM2C_InvFightNotify.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs | 32 + .../PTC/PtcM2C_InvUnfStateM2CNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs | 32 + .../PTC/PtcM2C_InviteRefuseM2CNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs | 26 + .../XMainClient/PTC/PtcM2C_KickFMAuchor.cs.meta | 12 + .../PTC/PtcM2C_LargeRoomLoginParamNtf.cs | 32 + .../PTC/PtcM2C_LargeRoomLoginParamNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs | 32 + .../PTC/PtcM2C_LargeRoomRoleNtf.cs.meta | 12 + .../PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs | 32 + .../PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta | 12 + .../PTC/PtcM2C_LeagueBattleStartMatchNtf.cs | 32 + .../PTC/PtcM2C_LeagueBattleStartMatchNtf.cs.meta | 12 + .../PTC/PtcM2C_LeagueBattleStopMatchNtf.cs | 32 + .../PTC/PtcM2C_LeagueBattleStopMatchNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs | 32 + .../PTC/PtcM2C_LoginDragonGuildInfo.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_LoginGuildInfo.cs | 32 + .../XMainClient/PTC/PtcM2C_LoginGuildInfo.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs | 32 + .../PTC/PtcM2C_MCChatOffLineNotify.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_MSErrorNotify.cs | 32 + .../XMainClient/PTC/PtcM2C_MSErrorNotify.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_MSEventNotify.cs | 32 + .../XMainClient/PTC/PtcM2C_MSEventNotify.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs | 32 + .../PTC/PtcM2C_MSReceiveFlowerNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs | 32 + .../PTC/PtcM2C_MakePartnerResultNtf.cs.meta | 12 + .../PTC/PtcM2C_MarriageLevelValueNtf.cs | 32 + .../PTC/PtcM2C_MarriageLevelValueNtf.cs.meta | 12 + .../PTC/PtcM2C_MarriageNewPrivilegeNtf.cs | 32 + .../PTC/PtcM2C_MarriageNewPrivilegeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs | 32 + .../PTC/PtcM2C_MidasExceptionNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs | 32 + .../PTC/PtcM2C_ModifyGuildNameNtf.cs.meta | 12 + .../PTC/PtcM2C_NoticeGuildArenaBeginNew.cs | 32 + .../PTC/PtcM2C_NoticeGuildArenaBeginNew.cs.meta | 12 + .../PTC/PtcM2C_NoticeGuildArenaNextTime.cs | 32 + .../PTC/PtcM2C_NoticeGuildArenaNextTime.cs.meta | 12 + .../PTC/PtcM2C_NoticeGuildLadderStart.cs | 32 + .../PTC/PtcM2C_NoticeGuildLadderStart.cs.meta | 12 + .../PTC/PtcM2C_NoticeGuildTerrBattleWin.cs | 32 + .../PTC/PtcM2C_NoticeGuildTerrBattleWin.cs.meta | 12 + .../PTC/PtcM2C_NoticeGuildTerrBigIcon.cs | 32 + .../PTC/PtcM2C_NoticeGuildTerrBigIcon.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs | 32 + .../PTC/PtcM2C_NoticeGuildTerrEnd.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs | 32 + .../PTC/PtcM2C_NoticeGuildTerrWar.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs | 32 + .../PTC/PtcM2C_NoticeGuildTerrall.cs.meta | 12 + .../PTC/PtcM2C_NoticeGuildWageReward.cs | 32 + .../PTC/PtcM2C_NoticeGuildWageReward.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs | 32 + .../PTC/PtcM2C_NotifyGuildSkillData.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs | 32 + .../PTC/PtcM2C_NotifyIdipMessageMs.cs.meta | 12 + .../PTC/PtcM2C_NotifyLeagueTeamCreate.cs | 32 + .../PTC/PtcM2C_NotifyLeagueTeamCreate.cs.meta | 12 + .../PTC/PtcM2C_NotifyLeagueTeamDissolve.cs | 32 + .../PTC/PtcM2C_NotifyLeagueTeamDissolve.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs | 32 + .../PTC/PtcM2C_NotifyMarriageApply.cs.meta | 12 + .../PTC/PtcM2C_NotifyMarriageDivorceApply.cs | 32 + .../PTC/PtcM2C_NotifyMarriageDivorceApply.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_NotifyMentorApply.cs | 32 + .../PTC/PtcM2C_NotifyMentorApply.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs | 32 + .../PTC/PtcM2C_NotifySkyTeamCreate.cs.meta | 12 + .../PTC/PtcM2C_PayParameterInfoInvalidNtf.cs | 26 + .../PTC/PtcM2C_PayParameterInfoInvalidNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs.meta | 12 + .../PTC/PtcM2C_PokerTournamentEndReFund.cs | 32 + .../PTC/PtcM2C_PokerTournamentEndReFund.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_PushQuestionNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_PushQuestionNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_QAIDNameNtf.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_QAOverNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_QARoomRankNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_QARoomRankNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs | 32 + .../PTC/PtcM2C_ResWarEnemyTimeNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs | 32 + .../PTC/PtcM2C_ResWarGuildBriefNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs | 32 + .../PTC/PtcM2C_ResWarMineDataNtf.cs.meta | 12 + .../PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs | 32 + .../PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_ResWarStateNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_ResWarStateNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs.meta | 12 + .../PTC/PtcM2C_RoleMatchStateM2CNotify.cs | 32 + .../PTC/PtcM2C_RoleMatchStateM2CNotify.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs | 32 + .../XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs | 32 + .../PTC/PtcM2C_SendGuildBonusNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs | 32 + .../PTC/PtcM2C_SendGuildSkillInfo.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs | 32 + .../XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs | 32 + .../PTC/PtcM2C_SkyCraftEliRoomNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs | 32 + .../PTC/PtcM2C_SkyCraftMatchNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs | 32 + .../PTC/PtcM2C_SpriteStateChangeNtf.cs.meta | 12 + .../PTC/PtcM2C_StartBattleFailedM2CNtf.cs | 32 + .../PTC/PtcM2C_StartBattleFailedM2CNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs | 32 + .../PTC/PtcM2C_SynGuilIntegralState.cs.meta | 12 + .../PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs | 32 + .../PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs.meta | 12 + .../PTC/PtcM2C_SynGuildArenaFightUnitNew.cs | 32 + .../PTC/PtcM2C_SynGuildArenaFightUnitNew.cs.meta | 12 + .../PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs | 32 + .../PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta | 12 + .../PTC/PtcM2C_SynGuildIntegralState.cs | 32 + .../PTC/PtcM2C_SynGuildIntegralState.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs | 32 + .../XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs | 32 + .../PTC/PtcM2C_TeamChangeM2CNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs | 32 + .../PTC/PtcM2C_TeamFullDataM2CNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs | 32 + .../PTC/PtcM2C_TeamInviteM2CNotify.cs.meta | 12 + .../PTC/PtcM2C_TeamRequestPlatFreind2Client.cs | 32 + .../PtcM2C_TeamRequestPlatFreind2Client.cs.meta | 12 + .../PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs | 32 + .../PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta | 12 + .../PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs | 32 + .../PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta | 12 + .../PTC/PtcM2C_UpdateLeagueTeamState.cs | 32 + .../PTC/PtcM2C_UpdateLeagueTeamState.cs.meta | 12 + .../PTC/PtcM2C_UpdatePartnerToClient.cs | 32 + .../PTC/PtcM2C_UpdatePartnerToClient.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs | 32 + .../PTC/PtcM2C_WeddingInviteNtf.cs.meta | 12 + .../XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs | 32 + .../PTC/PtcM2C_fastMBDismissM2CNtf.cs.meta | 12 + .../PTC/PtcM2C_synguildarenadisplaceNew.cs | 32 + .../PTC/PtcM2C_synguildarenadisplaceNew.cs.meta | 12 + .../XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs | 32 + .../XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs.meta | 12 + .../Assets/Scripts/XMainClient/PTC/PtcRegister.cs | 387 ++ .../Scripts/XMainClient/PTC/PtcRegister.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs | 32 + .../XMainClient/PTC/PtcT2C_ChatNotify.cs.meta | 12 + .../Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs | 32 + .../XMainClient/PTC/PtcT2C_ErrorNotify.cs.meta | 12 + .../XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs | 26 + .../PTC/PtcT2C_KeepAlivePingReq.cs.meta | 12 + .../XMainClient/PTC/PtcT2C_LoginChallenge.cs | 32 + .../XMainClient/PTC/PtcT2C_LoginChallenge.cs.meta | 12 + .../Assets/Scripts/XMainClient/PandoraDocument.cs | 182 + .../Scripts/XMainClient/PandoraDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ParabolaFx.cs | 60 + .../Assets/Scripts/XMainClient/ParabolaFx.cs.meta | 12 + .../Assets/Scripts/XMainClient/PartLoadCallback.cs | 6 + .../Scripts/XMainClient/PartLoadCallback.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PartLoadTask.cs | 297 + .../Scripts/XMainClient/PartLoadTask.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Partner.cs | 45 + Client/Assets/Scripts/XMainClient/Partner.cs.meta | 12 + .../Assets/Scripts/XMainClient/PartnerLiveness.cs | 248 + .../Scripts/XMainClient/PartnerLiveness.cs.meta | 12 + .../Scripts/XMainClient/PartnerLivenessRecord.cs | 74 + .../XMainClient/PartnerLivenessRecord.cs.meta | 12 + .../Assets/Scripts/XMainClient/PercentWatcher.cs | 97 + .../Scripts/XMainClient/PercentWatcher.cs.meta | 12 + .../Scripts/XMainClient/PersonalBuffOpType.cs | 11 + .../Scripts/XMainClient/PersonalBuffOpType.cs.meta | 12 + .../Scripts/XMainClient/PersonalCareerBehaviour.cs | 22 + .../XMainClient/PersonalCareerBehaviour.cs.meta | 12 + .../Scripts/XMainClient/PersonalCareerView.cs | 406 ++ .../Scripts/XMainClient/PersonalCareerView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PetChange.cs | 12 + .../Assets/Scripts/XMainClient/PetChange.cs.meta | 12 + .../Scripts/XMainClient/PetExpTransferHandler.cs | 679 ++ .../XMainClient/PetExpTransferHandler.cs.meta | 12 + .../Scripts/XMainClient/PetExpTransferStatus.cs | 11 + .../XMainClient/PetExpTransferStatus.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PetSex.cs | 11 + Client/Assets/Scripts/XMainClient/PetSex.cs.meta | 12 + .../Scripts/XMainClient/PetSkillLearnHandler.cs | 149 + .../XMainClient/PetSkillLearnHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PkInfo.cs | 45 + Client/Assets/Scripts/XMainClient/PkInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Player_Info.cs | 16 + .../Assets/Scripts/XMainClient/Player_Info.cs.meta | 12 + .../XMainClient/Player_academic_buff_fuhuo.cs | 28 + .../XMainClient/Player_academic_buff_fuhuo.cs.meta | 12 + .../Player_assassin_attack_chakelahuanying_dash.cs | 77 + ...er_assassin_attack_chakelahuanying_dash.cs.meta | 12 + .../Player_cleric_attack_chongjizhishou.cs | 26 + .../Player_cleric_attack_chongjizhishou.cs.meta | 12 + .../Player_cleric_attack_chongjizhishou_ex.cs | 26 + .../Player_cleric_attack_chongjizhishou_ex.cs.meta | 12 + .../XMainClient/Player_kali_attack_reqingsihuo.cs | 77 + .../Player_kali_attack_reqingsihuo.cs.meta | 12 + .../Scripts/XMainClient/Player_sorceress_dash.cs | 77 + .../XMainClient/Player_sorceress_dash.cs.meta | 12 + .../Scripts/XMainClient/Player_warrior_charge.cs | 32 + .../XMainClient/Player_warrior_charge.cs.meta | 12 + .../XMainClient/Player_warrior_dash_start.cs | 40 + .../XMainClient/Player_warrior_dash_start.cs.meta | 12 + .../Assets/Scripts/XMainClient/PointRewardData.cs | 20 + .../Scripts/XMainClient/PointRewardData.cs.meta | 12 + .../Scripts/XMainClient/PointRewardHandler.cs | 180 + .../Scripts/XMainClient/PointRewardHandler.cs.meta | 12 + .../Scripts/XMainClient/PointRewardStatus.cs | 14 + .../Scripts/XMainClient/PointRewardStatus.cs.meta | 12 + .../Scripts/XMainClient/PreSettingNodeHandler.cs | 304 + .../XMainClient/PreSettingNodeHandler.cs.meta | 12 + .../Scripts/XMainClient/PrepareSerializer.cs | 1868 ++++++ .../Scripts/XMainClient/PrepareSerializer.cs.meta | 12 + .../Assets/Scripts/XMainClient/PrerogativeDlg.cs | 158 + .../Scripts/XMainClient/PrerogativeDlg.cs.meta | 12 + .../Scripts/XMainClient/PrerogativeDlgBehaviour.cs | 29 + .../XMainClient/PrerogativeDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/PrerogativeNormalType.cs | 11 + .../XMainClient/PrerogativeNormalType.cs.meta | 12 + .../Assets/Scripts/XMainClient/PrerogativeType.cs | 17 + .../Scripts/XMainClient/PrerogativeType.cs.meta | 12 + .../Assets/Scripts/XMainClient/PresentBehaviour.cs | 32 + .../Scripts/XMainClient/PresentBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PresentDlg.cs | 223 + .../Assets/Scripts/XMainClient/PresentDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PrivateExt.cs | 487 ++ .../Assets/Scripts/XMainClient/PrivateExt.cs.meta | 12 + .../XMainClient/ProfessionChangeBehaviour.cs | 70 + .../XMainClient/ProfessionChangeBehaviour.cs.meta | 12 + .../Scripts/XMainClient/ProjectDamageResult.cs | 150 + .../XMainClient/ProjectDamageResult.cs.meta | 12 + .../Scripts/XMainClient/ProjectResultType.cs | 14 + .../Scripts/XMainClient/ProjectResultType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ProtoBuf.meta | 9 + .../Scripts/XMainClient/ProtoBuf/BclHelpers.cs | 659 ++ .../XMainClient/ProtoBuf/BclHelpers.cs.meta | 12 + .../XMainClient/ProtoBuf/BufferExtension.cs | 72 + .../XMainClient/ProtoBuf/BufferExtension.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/BufferPool.cs | 87 + .../XMainClient/ProtoBuf/BufferPool.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/DataFormat.cs | 13 + .../XMainClient/ProtoBuf/DataFormat.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/Extensible.cs | 108 + .../XMainClient/ProtoBuf/Extensible.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs | 109 + .../XMainClient/ProtoBuf/ExtensibleUtil.cs.meta | 12 + .../Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs | 341 + .../Scripts/XMainClient/ProtoBuf/Helpers.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/IExtensible.cs | 9 + .../XMainClient/ProtoBuf/IExtensible.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/IExtension.cs | 18 + .../XMainClient/ProtoBuf/IExtension.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/ImplicitFields.cs | 11 + .../XMainClient/ProtoBuf/ImplicitFields.cs.meta | 12 + .../ProtoBuf/MemberSerializationOptions.cs | 16 + .../ProtoBuf/MemberSerializationOptions.cs.meta | 12 + .../Assets/Scripts/XMainClient/ProtoBuf/Meta.meta | 9 + .../XMainClient/ProtoBuf/Meta/AttributeMap.cs | 117 + .../XMainClient/ProtoBuf/Meta/AttributeMap.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs | 337 + .../XMainClient/ProtoBuf/Meta/BasicList.cs.meta | 12 + .../XMainClient/ProtoBuf/Meta/CallbackSet.cs | 160 + .../XMainClient/ProtoBuf/Meta/CallbackSet.cs.meta | 12 + .../ProtoBuf/Meta/LockContentedEventArgs.cs | 22 + .../ProtoBuf/Meta/LockContentedEventArgs.cs.meta | 12 + .../ProtoBuf/Meta/LockContentedEventHandler.cs | 6 + .../Meta/LockContentedEventHandler.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs | 2327 +++++++ .../XMainClient/ProtoBuf/Meta/MetaType.cs.meta | 12 + .../XMainClient/ProtoBuf/Meta/MutableList.cs | 29 + .../XMainClient/ProtoBuf/Meta/MutableList.cs.meta | 12 + .../XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs | 1160 ++++ .../ProtoBuf/Meta/RuntimeTypeModel.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/Meta/SubType.cs | 117 + .../XMainClient/ProtoBuf/Meta/SubType.cs.meta | 12 + .../ProtoBuf/Meta/TypeFormatEventArgs.cs | 76 + .../ProtoBuf/Meta/TypeFormatEventArgs.cs.meta | 12 + .../ProtoBuf/Meta/TypeFormatEventHandler.cs | 6 + .../ProtoBuf/Meta/TypeFormatEventHandler.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs | 1511 +++++ .../XMainClient/ProtoBuf/Meta/TypeModel.cs.meta | 12 + .../XMainClient/ProtoBuf/Meta/ValueMember.cs | 808 +++ .../XMainClient/ProtoBuf/Meta/ValueMember.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/NetObjectCache.cs | 256 + .../XMainClient/ProtoBuf/NetObjectCache.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/PrefixStyle.cs | 12 + .../XMainClient/ProtoBuf/PrefixStyle.cs.meta | 12 + .../ProtoBuf/ProtoAfterDeserializationAttribute.cs | 11 + .../ProtoAfterDeserializationAttribute.cs.meta | 12 + .../ProtoBuf/ProtoAfterSerializationAttribute.cs | 11 + .../ProtoAfterSerializationAttribute.cs.meta | 12 + .../ProtoBeforeDeserializationAttribute.cs | 11 + .../ProtoBeforeDeserializationAttribute.cs.meta | 12 + .../ProtoBuf/ProtoBeforeSerializationAttribute.cs | 11 + .../ProtoBeforeSerializationAttribute.cs.meta | 12 + .../XMainClient/ProtoBuf/ProtoContractAttribute.cs | 194 + .../ProtoBuf/ProtoContractAttribute.cs.meta | 12 + .../ProtoBuf/ProtoConverterAttribute.cs | 9 + .../ProtoBuf/ProtoConverterAttribute.cs.meta | 12 + .../XMainClient/ProtoBuf/ProtoEnumAttribute.cs | 44 + .../ProtoBuf/ProtoEnumAttribute.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/ProtoException.cs | 19 + .../XMainClient/ProtoBuf/ProtoException.cs.meta | 12 + .../XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs | 9 + .../ProtoBuf/ProtoIgnoreAttribute.cs.meta | 12 + .../XMainClient/ProtoBuf/ProtoIncludeAttribute.cs | 73 + .../ProtoBuf/ProtoIncludeAttribute.cs.meta | 12 + .../XMainClient/ProtoBuf/ProtoMemberAttribute.cs | 233 + .../ProtoBuf/ProtoMemberAttribute.cs.meta | 12 + .../ProtoBuf/ProtoPartialIgnoreAttribute.cs | 28 + .../ProtoBuf/ProtoPartialIgnoreAttribute.cs.meta | 12 + .../ProtoBuf/ProtoPartialMemberAttribute.cs | 28 + .../ProtoBuf/ProtoPartialMemberAttribute.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/ProtoReader.cs | 1838 ++++++ .../XMainClient/ProtoBuf/ProtoReader.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs | 30 + .../XMainClient/ProtoBuf/ProtoTypeCode.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/ProtoWriter.cs | 1102 ++++ .../XMainClient/ProtoBuf/ProtoWriter.cs.meta | 12 + .../XMainClient/ProtoBuf/SerializationContext.cs | 57 + .../ProtoBuf/SerializationContext.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/Serializer.cs | 268 + .../XMainClient/ProtoBuf/Serializer.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/Serializers.meta | 9 + .../ProtoBuf/Serializers/ArrayDecorator.cs | 172 + .../ProtoBuf/Serializers/ArrayDecorator.cs.meta | 12 + .../ProtoBuf/Serializers/BlobSerializer.cs | 51 + .../ProtoBuf/Serializers/BlobSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/BooleanSerializer.cs | 49 + .../ProtoBuf/Serializers/BooleanSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/ByteSerializer.cs | 49 + .../ProtoBuf/Serializers/ByteSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/CharSerializer.cs | 33 + .../ProtoBuf/Serializers/CharSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/DateTimeSerializer.cs | 49 + .../Serializers/DateTimeSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/DecimalSerializer.cs | 49 + .../ProtoBuf/Serializers/DecimalSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/DefaultValueDecorator.cs | 64 + .../Serializers/DefaultValueDecorator.cs.meta | 12 + .../ProtoBuf/Serializers/DoubleSerializer.cs | 49 + .../ProtoBuf/Serializers/DoubleSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/EnumSerializer.cs | 213 + .../ProtoBuf/Serializers/EnumSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/FieldDecorator.cs | 67 + .../ProtoBuf/Serializers/FieldDecorator.cs.meta | 12 + .../ProtoBuf/Serializers/GuidSerializer.cs | 49 + .../ProtoBuf/Serializers/GuidSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/IProtoSerializer.cs | 17 + .../ProtoBuf/Serializers/IProtoSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/IProtoTypeSerializer.cs | 16 + .../Serializers/IProtoTypeSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/ISerializerProxy.cs | 9 + .../ProtoBuf/Serializers/ISerializerProxy.cs.meta | 12 + .../Serializers/ImmutableCollectionDecorator.cs | 252 + .../ImmutableCollectionDecorator.cs.meta | 12 + .../ProtoBuf/Serializers/Int16Serializer.cs | 49 + .../ProtoBuf/Serializers/Int16Serializer.cs.meta | 12 + .../ProtoBuf/Serializers/Int32Serializer.cs | 49 + .../ProtoBuf/Serializers/Int32Serializer.cs.meta | 12 + .../ProtoBuf/Serializers/Int64Serializer.cs | 49 + .../ProtoBuf/Serializers/Int64Serializer.cs.meta | 12 + .../ProtoBuf/Serializers/ListDecorator.cs | 365 ++ .../ProtoBuf/Serializers/ListDecorator.cs.meta | 12 + .../Serializers/MemberSpecifiedDecorator.cs | 68 + .../Serializers/MemberSpecifiedDecorator.cs.meta | 12 + .../ProtoBuf/Serializers/NetObjectSerializer.cs | 56 + .../Serializers/NetObjectSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/NullDecorator.cs | 89 + .../ProtoBuf/Serializers/NullDecorator.cs.meta | 12 + .../ProtoBuf/Serializers/ParseableSerializer.cs | 91 + .../Serializers/ParseableSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/PropertyDecorator.cs | 143 + .../ProtoBuf/Serializers/PropertyDecorator.cs.meta | 12 + .../ProtoBuf/Serializers/ProtoDecoratorBase.cs | 30 + .../Serializers/ProtoDecoratorBase.cs.meta | 12 + .../ProtoBuf/Serializers/SByteSerializer.cs | 49 + .../ProtoBuf/Serializers/SByteSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/SingleSerializer.cs | 49 + .../ProtoBuf/Serializers/SingleSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/StringSerializer.cs | 49 + .../ProtoBuf/Serializers/StringSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/SubItemSerializer.cs | 96 + .../ProtoBuf/Serializers/SubItemSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/SurrogateSerializer.cs | 154 + .../Serializers/SurrogateSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/SystemTypeSerializer.cs | 49 + .../Serializers/SystemTypeSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/TagDecorator.cs | 105 + .../ProtoBuf/Serializers/TagDecorator.cs.meta | 12 + .../ProtoBuf/Serializers/TimeSpanSerializer.cs | 49 + .../Serializers/TimeSpanSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/TupleSerializer.cs | 211 + .../ProtoBuf/Serializers/TupleSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/TypeSerializer.cs | 445 ++ .../ProtoBuf/Serializers/TypeSerializer.cs.meta | 12 + .../ProtoBuf/Serializers/UInt16Serializer.cs | 49 + .../ProtoBuf/Serializers/UInt16Serializer.cs.meta | 12 + .../ProtoBuf/Serializers/UInt32Serializer.cs | 49 + .../ProtoBuf/Serializers/UInt32Serializer.cs.meta | 12 + .../ProtoBuf/Serializers/UInt64Serializer.cs | 49 + .../ProtoBuf/Serializers/UInt64Serializer.cs.meta | 12 + .../ProtoBuf/Serializers/UriDecorator.cs | 50 + .../ProtoBuf/Serializers/UriDecorator.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/SubItemToken.cs | 14 + .../XMainClient/ProtoBuf/SubItemToken.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs | 15 + .../XMainClient/ProtoBuf/TimeSpanScale.cs.meta | 12 + .../Scripts/XMainClient/ProtoBuf/WireType.cs | 16 + .../Scripts/XMainClient/ProtoBuf/WireType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Protocol.cs | 171 + Client/Assets/Scripts/XMainClient/Protocol.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ProtocolHead.cs | 163 + .../Scripts/XMainClient/ProtocolHead.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PublicExt.cs | 647 ++ .../Assets/Scripts/XMainClient/PublicExt.cs.meta | 12 + .../Assets/Scripts/XMainClient/PupilApplyInfo.cs | 12 + .../Scripts/XMainClient/PupilApplyInfo.cs.meta | 12 + .../Scripts/XMainClient/PupilTargetItemInfo.cs | 14 + .../XMainClient/PupilTargetItemInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/PurchaseInfo.cs | 16 + .../Scripts/XMainClient/PurchaseInfo.cs.meta | 12 + .../Scripts/XMainClient/PushSubscribeOptions.cs | 12 + .../XMainClient/PushSubscribeOptions.cs.meta | 12 + Client/Assets/Scripts/XMainClient/QQVipType.cs | 11 + .../Assets/Scripts/XMainClient/QQVipType.cs.meta | 12 + .../Scripts/XMainClient/QualifyingRankInfo.cs | 19 + .../Scripts/XMainClient/QualifyingRankInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/RPC.meta | 9 + Client/Assets/Scripts/XMainClient/RPC/Rpc.cs | 340 + Client/Assets/Scripts/XMainClient/RPC/Rpc.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs | 40 + .../XMainClient/RPC/RpcC2A_AudioAuthKey.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2A_AudioText.cs | 40 + .../XMainClient/RPC/RpcC2A_AudioText.cs.meta | 12 + .../XMainClient/RPC/RpcC2A_GetAudioListReq.cs | 40 + .../XMainClient/RPC/RpcC2A_GetAudioListReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs | 40 + .../XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_AbsEnterScene.cs | 40 + .../XMainClient/RPC/RpcC2G_AbsEnterScene.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs | 40 + .../XMainClient/RPC/RpcC2G_ActivatAtlas.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs | 40 + .../RPC/RpcC2G_ActivateFashionCharm.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ActivateHairColor.cs | 40 + .../RPC/RpcC2G_ActivateHairColor.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ActivatePreShow.cs | 40 + .../XMainClient/RPC/RpcC2G_ActivatePreShow.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs | 40 + .../XMainClient/RPC/RpcC2G_AddTempAttr.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs | 40 + .../XMainClient/RPC/RpcC2G_AgreeQAReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ArgentaActivity.cs | 40 + .../XMainClient/RPC/RpcC2G_ArgentaActivity.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ArtifactCompose.cs | 40 + .../XMainClient/RPC/RpcC2G_ArtifactCompose.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs | 40 + .../RPC/RpcC2G_ArtifactDeityStoveOp.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs | 40 + .../RPC/RpcC2G_AskForCheckInBonus.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs | 40 + .../XMainClient/RPC/RpcC2G_AtlasUpStar.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs | 40 + .../XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs.meta | 12 + .../RPC/RpcC2G_BackFlowActivityOperation.cs | 40 + .../RPC/RpcC2G_BackFlowActivityOperation.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs | 40 + .../XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs.meta | 12 + .../RPC/RpcC2G_BattleFieldAwardNumReq.cs | 40 + .../RPC/RpcC2G_BattleFieldAwardNumReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs | 40 + .../RPC/RpcC2G_BattleFieldRankReq.cs.meta | 12 + .../RPC/RpcC2G_BattleFieldRoleAgainstReq.cs | 40 + .../RPC/RpcC2G_BattleFieldRoleAgainstReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs | 40 + .../XMainClient/RPC/RpcC2G_BindSkill.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs | 40 + .../XMainClient/RPC/RpcC2G_BossRushReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs.meta | 12 + .../RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs | 40 + .../RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs | 40 + .../RPC/RpcC2G_BuyGoldAndFatigue.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs | 40 + .../RPC/RpcC2G_BuyHeroInHeroBattle.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs | 40 + .../XMainClient/RPC/RpcC2G_BuyIBItem.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs | 40 + .../XMainClient/RPC/RpcC2G_BuyJadeSlot.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs | 40 + .../XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs | 40 + .../XMainClient/RPC/RpcC2G_BuyShopItem.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs | 40 + .../XMainClient/RPC/RpcC2G_BuySpriteEgg.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs | 40 + .../RPC/RpcC2G_BuyTeamSceneCount.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs | 40 + .../XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs.meta | 12 + .../RPC/RpcC2G_CampDuelActivityOperation.cs | 40 + .../RPC/RpcC2G_CampDuelActivityOperation.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChangeDeclaration.cs | 40 + .../RPC/RpcC2G_ChangeDeclaration.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChangeGuildCard.cs | 40 + .../XMainClient/RPC/RpcC2G_ChangeGuildCard.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs | 40 + .../RPC/RpcC2G_ChangeLiveVisible.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs | 40 + .../XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChangeProfession.cs | 40 + .../RPC/RpcC2G_ChangeProfession.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs | 40 + .../RPC/RpcC2G_ChangeRiskBoxState.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChangeSkillSet.cs | 40 + .../XMainClient/RPC/RpcC2G_ChangeSkillSet.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChangeWatchRole.cs | 40 + .../XMainClient/RPC/RpcC2G_ChangeWatchRole.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_Checkin.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2G_Checkin.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChooseProfession.cs | 40 + .../RPC/RpcC2G_ChooseProfession.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChooseRollReq.cs | 40 + .../XMainClient/RPC/RpcC2G_ChooseRollReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs | 40 + .../RPC/RpcC2G_ChooseSpecialEffects.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_CommendFirstPass.cs | 40 + .../RPC/RpcC2G_CommendFirstPass.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_CommendWatchBattle.cs | 40 + .../RPC/RpcC2G_CommendWatchBattle.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_DEProgressReq.cs | 40 + .../XMainClient/RPC/RpcC2G_DEProgressReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs | 40 + .../XMainClient/RPC/RpcC2G_DHRReqC2G.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs | 40 + .../RPC/RpcC2G_DailyTaskAskHelp.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs | 40 + .../XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_DecomposeEquipment.cs | 40 + .../RPC/RpcC2G_DecomposeEquipment.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs | 40 + .../XMainClient/RPC/RpcC2G_DoEnterScene.cs.meta | 12 + .../RPC/RpcC2G_DoodadItemAllSkillReq.cs | 40 + .../RPC/RpcC2G_DoodadItemAllSkillReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_DragonGroupRecord.cs | 40 + .../RPC/RpcC2G_DragonGroupRecord.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs | 40 + .../RPC/RpcC2G_DragonGroupRoleList.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs | 40 + .../XMainClient/RPC/RpcC2G_DrawLottery.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_EmblemLevelUp.cs | 40 + .../XMainClient/RPC/RpcC2G_EmblemLevelUp.cs.meta | 12 + .../RPC/RpcC2G_EnchantActiveAttribute.cs | 40 + .../RPC/RpcC2G_EnchantActiveAttribute.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs | 40 + .../XMainClient/RPC/RpcC2G_EnchantEquip.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_EnchantTransfer.cs | 40 + .../XMainClient/RPC/RpcC2G_EnchantTransfer.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs | 40 + .../XMainClient/RPC/RpcC2G_EndGuildCard.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs | 40 + .../XMainClient/RPC/RpcC2G_EnhanceItem.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_EnhanceTranster.cs | 40 + .../XMainClient/RPC/RpcC2G_EnhanceTranster.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_EnterLeisureScene.cs | 40 + .../RPC/RpcC2G_EnterLeisureScene.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_EnterWatchBattle.cs | 40 + .../RPC/RpcC2G_EnterWatchBattle.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs | 40 + .../XMainClient/RPC/RpcC2G_ExpFindBack.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_FashionCompose.cs | 40 + .../XMainClient/RPC/RpcC2G_FashionCompose.cs.meta | 12 + .../RPC/RpcC2G_FetchAchivementReward.cs | 40 + .../RPC/RpcC2G_FetchAchivementReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_FetchChapterChest.cs | 40 + .../RPC/RpcC2G_FetchChapterChest.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs | 40 + .../RPC/RpcC2G_FetchEnemyDoodadReq.cs.meta | 12 + .../RPC/RpcC2G_FirstPassGetTopRoleInfo.cs | 40 + .../RPC/RpcC2G_FirstPassGetTopRoleInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs | 40 + .../RPC/RpcC2G_FirstPassInfoReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs | 40 + .../RPC/RpcC2G_FiveDayRewardReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs | 40 + .../XMainClient/RPC/RpcC2G_ForgeEquip.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs | 40 + .../XMainClient/RPC/RpcC2G_FuseEquip.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs | 40 + .../XMainClient/RPC/RpcC2G_GMCommand.cs.meta | 12 + .../RPC/RpcC2G_GetAchieveBrifInfoReq.cs | 40 + .../RPC/RpcC2G_GetAchieveBrifInfoReq.cs.meta | 12 + .../RPC/RpcC2G_GetAchieveClassifyInfoReq.cs | 40 + .../RPC/RpcC2G_GetAchieveClassifyInfoReq.cs.meta | 12 + .../RPC/RpcC2G_GetAchievePointRewardReq.cs | 40 + .../RPC/RpcC2G_GetAchievePointRewardReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs | 40 + .../RPC/RpcC2G_GetAchieveRewardReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetActivityChest.cs | 40 + .../RPC/RpcC2G_GetActivityChest.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetActivityInfo.cs | 40 + .../XMainClient/RPC/RpcC2G_GetActivityInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs | 40 + .../RPC/RpcC2G_GetAncientTimesAward.cs.meta | 12 + .../RPC/RpcC2G_GetClassifyDesignationReq.cs | 40 + .../RPC/RpcC2G_GetClassifyDesignationReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs | 40 + .../RPC/RpcC2G_GetCompeteDragonInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs | 40 + .../RPC/RpcC2G_GetDailyTaskInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs | 40 + .../RPC/RpcC2G_GetDailyTaskReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetDesignationReq.cs | 40 + .../RPC/RpcC2G_GetDesignationReq.cs.meta | 12 + .../RPC/RpcC2G_GetDragonGuildTaskChest.cs | 40 + .../RPC/RpcC2G_GetDragonGuildTaskChest.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs | 40 + .../RPC/RpcC2G_GetDragonTopInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs | 40 + .../XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetFirstPassReward.cs | 40 + .../RPC/RpcC2G_GetFirstPassReward.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs | 40 + .../XMainClient/RPC/RpcC2G_GetFlower.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs | 40 + .../RPC/RpcC2G_GetFlowerLeftTime.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetFlowerReward.cs | 40 + .../XMainClient/RPC/RpcC2G_GetFlowerReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs | 40 + .../RPC/RpcC2G_GetFlowerRewardList.cs.meta | 12 + .../RPC/RpcC2G_GetGoddessTrialRewards.cs | 40 + .../RPC/RpcC2G_GetGoddessTrialRewards.cs.meta | 12 + .../RPC/RpcC2G_GetGuildBonusDetailInfo.cs | 40 + .../RPC/RpcC2G_GetGuildBonusDetailInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs | 40 + .../RPC/RpcC2G_GetGuildBonusLeft.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetGuildBonusList.cs | 40 + .../RPC/RpcC2G_GetGuildBonusList.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs | 40 + .../RPC/RpcC2G_GetGuildBonusReward.cs.meta | 12 + .../RPC/RpcC2G_GetGuildCamPartyRandItem.cs | 40 + .../RPC/RpcC2G_GetGuildCamPartyRandItem.cs.meta | 12 + .../RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs | 40 + .../RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta | 12 + .../RPC/RpcC2G_GetGuildCampPartyReward.cs | 40 + .../RPC/RpcC2G_GetGuildCampPartyReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs | 40 + .../RPC/RpcC2G_GetGuildCheckinBox.cs.meta | 12 + .../RPC/RpcC2G_GetGuildPartyReceiveInfo.cs | 40 + .../RPC/RpcC2G_GetGuildPartyReceiveInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs | 40 + .../RPC/RpcC2G_GetGuildQADataReq.cs.meta | 12 + .../RPC/RpcC2G_GetHeroBattleGameRecord.cs | 40 + .../RPC/RpcC2G_GetHeroBattleGameRecord.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs | 40 + .../RPC/RpcC2G_GetHeroBattleInfo.cs.meta | 12 + .../RPC/RpcC2G_GetHeroBattleWeekReward.cs | 40 + .../RPC/RpcC2G_GetHeroBattleWeekReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs | 40 + .../RPC/RpcC2G_GetHolidayStageInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs | 40 + .../RPC/RpcC2G_GetJadeSealAllInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs | 40 + .../RPC/RpcC2G_GetLevelSealInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs | 40 + .../RPC/RpcC2G_GetLevelSealSelfGift.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs | 40 + .../RPC/RpcC2G_GetLuckyActivityInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs | 40 + .../XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs | 40 + .../RPC/RpcC2G_GetMyWatchRecord.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs | 40 + .../RPC/RpcC2G_GetNewZoneBenefit.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetNextDayReward.cs | 40 + .../RPC/RpcC2G_GetNextDayReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetOnlineReward.cs | 40 + .../XMainClient/RPC/RpcC2G_GetOnlineReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetPayAllInfo.cs | 40 + .../XMainClient/RPC/RpcC2G_GetPayAllInfo.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs | 40 + .../XMainClient/RPC/RpcC2G_GetPayReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetPlatShareAward.cs | 40 + .../RPC/RpcC2G_GetPlatShareAward.cs.meta | 12 + .../RPC/RpcC2G_GetPlatformShareChest.cs | 40 + .../RPC/RpcC2G_GetPlatformShareChest.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs | 40 + .../XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs.meta | 12 + .../RPC/RpcC2G_GetSpActivityBigPrize.cs | 40 + .../RPC/RpcC2G_GetSpActivityBigPrize.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetSpActivityReward.cs | 40 + .../RPC/RpcC2G_GetSpActivityReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs | 40 + .../RPC/RpcC2G_GetSweepTowerReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetSystemReward.cs | 40 + .../XMainClient/RPC/RpcC2G_GetSystemReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs | 40 + .../RPC/RpcC2G_GetTowerActivityTop.cs.meta | 12 + .../RPC/RpcC2G_GetTowerFirstPassReward.cs | 40 + .../RPC/RpcC2G_GetTowerFirstPassReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs | 40 + .../RPC/RpcC2G_GetWatchInfoByID.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs | 40 + .../RPC/RpcC2G_GetWeeklyTaskInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs | 40 + .../RPC/RpcC2G_GetWeeklyTaskReward.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs | 40 + .../XMainClient/RPC/RpcC2G_GmfReadyReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs | 40 + .../XMainClient/RPC/RpcC2G_GoldClick.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GrowthFundAward.cs | 40 + .../XMainClient/RPC/RpcC2G_GrowthFundAward.cs.meta | 12 + .../RPC/RpcC2G_GuildCampExchangeOperate.cs | 40 + .../RPC/RpcC2G_GuildCampExchangeOperate.cs.meta | 12 + .../RPC/RpcC2G_GuildCampPartyReqExchange.cs | 40 + .../RPC/RpcC2G_GuildCampPartyReqExchange.cs.meta | 12 + .../RPC/RpcC2G_GuildCheckInBonusInfo.cs | 40 + .../RPC/RpcC2G_GuildCheckInBonusInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs | 40 + .../XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs.meta | 12 + .../RPC/RpcC2G_GuildPartySummonSpirit.cs | 40 + .../RPC/RpcC2G_GuildPartySummonSpirit.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_HorseReConnect.cs | 40 + .../XMainClient/RPC/RpcC2G_HorseReConnect.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_IdentifyEmblem.cs | 40 + .../XMainClient/RPC/RpcC2G_IdentifyEmblem.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs | 40 + .../XMainClient/RPC/RpcC2G_InlayAllJade.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs | 40 + .../XMainClient/RPC/RpcC2G_InspireReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs | 40 + .../XMainClient/RPC/RpcC2G_ItemBuffOp.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs | 40 + .../XMainClient/RPC/RpcC2G_ItemCompose.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs | 40 + .../XMainClient/RPC/RpcC2G_ItemFindBack.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs | 40 + .../RPC/RpcC2G_ItemFindBackInfo.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs | 40 + .../XMainClient/RPC/RpcC2G_ItemSell.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs | 40 + .../XMainClient/RPC/RpcC2G_JadeCompose.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_JadeComposeNew.cs | 40 + .../XMainClient/RPC/RpcC2G_JadeComposeNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_JadeOperation.cs | 40 + .../XMainClient/RPC/RpcC2G_JadeOperation.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_JadeOperationNew.cs | 40 + .../RPC/RpcC2G_JadeOperationNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_JustDance.cs | 40 + .../XMainClient/RPC/RpcC2G_JustDance.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs | 40 + .../RPC/RpcC2G_LeagueBattleReadyReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_LearnGuildSkill.cs | 40 + .../XMainClient/RPC/RpcC2G_LearnGuildSkill.cs.meta | 12 + .../RPC/RpcC2G_LevelSealButtonStatus.cs | 40 + .../RPC/RpcC2G_LevelSealButtonStatus.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_LevelSealExchange.cs | 40 + .../RPC/RpcC2G_LevelSealExchange.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs | 40 + .../XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs | 40 + .../XMainClient/RPC/RpcC2G_LotteryDraw.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_MobaSignaling.cs | 40 + .../XMainClient/RPC/RpcC2G_MobaSignaling.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_MulActivityReq.cs | 40 + .../XMainClient/RPC/RpcC2G_MulActivityReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs | 40 + .../XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_OpenSceneChest.cs | 40 + .../XMainClient/RPC/RpcC2G_OpenSceneChest.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_Operation520Festival.cs | 40 + .../RPC/RpcC2G_Operation520Festival.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_PandoraLottery.cs | 40 + .../XMainClient/RPC/RpcC2G_PandoraLottery.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs | 40 + .../XMainClient/RPC/RpcC2G_PayCardAward.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_PayClick.cs | 40 + .../XMainClient/RPC/RpcC2G_PayClick.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_PayFirstAward.cs | 40 + .../XMainClient/RPC/RpcC2G_PayFirstAward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_PayFriendItem.cs | 40 + .../XMainClient/RPC/RpcC2G_PayFriendItem.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_PersonalCareer.cs | 40 + .../XMainClient/RPC/RpcC2G_PersonalCareer.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs | 40 + .../XMainClient/RPC/RpcC2G_PetOperation.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_PetOperationOther.cs | 40 + .../RPC/RpcC2G_PetOperationOther.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_PhotographEffect.cs | 40 + .../RPC/RpcC2G_PhotographEffect.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs | 40 + .../XMainClient/RPC/RpcC2G_PlayDiceOver.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_PlayDiceRequest.cs | 40 + .../XMainClient/RPC/RpcC2G_PlayDiceRequest.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs | 40 + .../XMainClient/RPC/RpcC2G_PvpAllReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_PvpNowAllData.cs | 40 + .../XMainClient/RPC/RpcC2G_PvpNowAllData.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs | 40 + .../XMainClient/RPC/RpcC2G_QueryBoxs.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_QueryClientIp.cs | 40 + .../XMainClient/RPC/RpcC2G_QueryClientIp.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_QueryGuildCard.cs | 40 + .../XMainClient/RPC/RpcC2G_QueryGuildCard.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs | 40 + .../XMainClient/RPC/RpcC2G_QueryIBItem.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_QueryLotteryCD.cs | 40 + .../XMainClient/RPC/RpcC2G_QueryLotteryCD.cs.meta | 12 + .../RPC/RpcC2G_QueryOpenGameActivityTime.cs | 40 + .../RPC/RpcC2G_QueryOpenGameActivityTime.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_QueryPowerPoint.cs | 40 + .../XMainClient/RPC/RpcC2G_QueryPowerPoint.cs.meta | 12 + .../RPC/RpcC2G_QueryQQFriendsVipInfo.cs | 40 + .../RPC/RpcC2G_QueryQQFriendsVipInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs | 40 + .../XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs | 40 + .../RPC/RpcC2G_QuerySceneDayCount.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_QuerySceneTime.cs | 40 + .../XMainClient/RPC/RpcC2G_QuerySceneTime.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_QueryShopItem.cs | 40 + .../XMainClient/RPC/RpcC2G_QueryShopItem.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs | 40 + .../RPC/RpcC2G_ReEnterRiskBattle.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_RefreshSweepReward.cs | 40 + .../RPC/RpcC2G_RefreshSweepReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs | 40 + .../RPC/RpcC2G_RefreshWeeklyTask.cs.meta | 12 + .../RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs | 40 + .../RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ReportBadPlayer.cs | 40 + .../XMainClient/RPC/RpcC2G_ReportBadPlayer.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs | 40 + .../XMainClient/RPC/RpcC2G_ReportBattle.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs | 40 + .../RPC/RpcC2G_ReqGetLoginReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs | 40 + .../RPC/RpcC2G_ReqGuildBossTimeLeft.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs | 40 + .../RPC/RpcC2G_ReqPlayerAutoPlay.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs | 40 + .../RPC/RpcC2G_ResWarAllInfoReqOne.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs | 40 + .../XMainClient/RPC/RpcC2G_ResWarBuff.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs | 40 + .../XMainClient/RPC/RpcC2G_ResetSkill.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs | 40 + .../XMainClient/RPC/RpcC2G_ResetTower.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs | 40 + .../RPC/RpcC2G_ReturnSmeltStone.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_Revive.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2G_Revive.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs | 40 + .../RPC/RpcC2G_RiftFirstPassReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_RiskBuyRequest.cs | 40 + .../XMainClient/RPC/RpcC2G_RiskBuyRequest.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs | 40 + .../XMainClient/RPC/RpcC2G_SceneMobaOp.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs | 40 + .../RPC/RpcC2G_SelectChargeBackRole.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SelectChestReward.cs | 40 + .../RPC/RpcC2G_SelectChestReward.cs.meta | 12 + .../RPC/RpcC2G_SelectHeroAncientPower.cs | 40 + .../RPC/RpcC2G_SelectHeroAncientPower.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs | 40 + .../XMainClient/RPC/RpcC2G_SendFlower.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SendGuildBonus.cs | 40 + .../XMainClient/RPC/RpcC2G_SendGuildBonus.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SetDesignationReq.cs | 40 + .../RPC/RpcC2G_SetDesignationReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs | 40 + .../RPC/RpcC2G_SetHeroInHeroBattle.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs | 40 + .../XMainClient/RPC/RpcC2G_SetPreShow.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SetRoleConfig.cs | 40 + .../XMainClient/RPC/RpcC2G_SetRoleConfig.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ShadowCatOperation.cs | 40 + .../RPC/RpcC2G_ShadowCatOperation.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ShowFlowerPage.cs | 40 + .../XMainClient/RPC/RpcC2G_ShowFlowerPage.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs | 40 + .../XMainClient/RPC/RpcC2G_SkillLevelup.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs | 40 + .../RPC/RpcC2G_SkyCityAllInfoReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs | 40 + .../XMainClient/RPC/RpcC2G_SmeltItem.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SpriteOperation.cs | 40 + .../XMainClient/RPC/RpcC2G_SpriteOperation.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_StageCountReset.cs | 40 + .../XMainClient/RPC/RpcC2G_StageCountReset.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_StartGuildCard.cs | 40 + .../XMainClient/RPC/RpcC2G_StartGuildCard.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_SurviveReqC2G.cs | 40 + .../XMainClient/RPC/RpcC2G_SurviveReqC2G.cs.meta | 12 + .../Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2G_Sweep.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs | 40 + .../XMainClient/RPC/RpcC2G_SweepTower.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs | 40 + .../XMainClient/RPC/RpcC2G_SynPetInfo.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs | 43 + .../XMainClient/RPC/RpcC2G_SyncTime.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_TactEnterScene.cs | 40 + .../XMainClient/RPC/RpcC2G_TactEnterScene.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs | 40 + .../RPC/RpcC2G_TakeDragonGuildChest.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_TakeOffAllJade.cs | 40 + .../XMainClient/RPC/RpcC2G_TakeOffAllJade.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs | 40 + .../RPC/RpcC2G_TakeOffAllJadeNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_TakePartnerChest.cs | 40 + .../RPC/RpcC2G_TakePartnerChest.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs | 40 + .../XMainClient/RPC/RpcC2G_TaskOperate.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_TeamInviteListReq.cs | 40 + .../RPC/RpcC2G_TeamInviteListReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ThanksForBonus.cs | 40 + .../XMainClient/RPC/RpcC2G_ThanksForBonus.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_ThemeActivityHint.cs | 40 + .../RPC/RpcC2G_ThemeActivityHint.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs | 40 + .../XMainClient/RPC/RpcC2G_TitleLevelUp.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs | 40 + .../XMainClient/RPC/RpcC2G_TransformOp.cs.meta | 12 + .../RPC/RpcC2G_TurnOverWeeklyTaskItem.cs | 40 + .../RPC/RpcC2G_TurnOverWeeklyTaskItem.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs | 40 + .../XMainClient/RPC/RpcC2G_UpgradeEquip.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_UseItem.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2G_UseItem.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_UseSupplement.cs | 40 + .../XMainClient/RPC/RpcC2G_UseSupplement.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_VsPayReviveReq.cs | 40 + .../XMainClient/RPC/RpcC2G_VsPayReviveReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_WeddingOperator.cs | 40 + .../XMainClient/RPC/RpcC2G_WeddingOperator.cs.meta | 12 + .../XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs | 40 + .../RPC/RpcC2G_WeekEnd4v4GetInfo.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs | 40 + .../XMainClient/RPC/RpcC2G_breakAtlas.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs | 40 + .../XMainClient/RPC/RpcC2I_QueryGateIP.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AceptGuildInherit.cs | 40 + .../RPC/RpcC2M_AceptGuildInherit.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ActiveCookbook.cs | 40 + .../XMainClient/RPC/RpcC2M_ActiveCookbook.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AddBlackListNew.cs | 40 + .../XMainClient/RPC/RpcC2M_AddBlackListNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs | 40 + .../XMainClient/RPC/RpcC2M_AddFriendNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AddGuildInherit.cs | 40 + .../XMainClient/RPC/RpcC2M_AddGuildInherit.cs.meta | 12 + .../RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs | 40 + .../RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs | 40 + .../RPC/RpcC2M_AllianceGuildTerr.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs | 40 + .../RPC/RpcC2M_ArenaStarRoleReq.cs.meta | 12 + .../RPC/RpcC2M_AskDragonGuildMembers.cs | 40 + .../RPC/RpcC2M_AskDragonGuildMembers.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs | 40 + .../RPC/RpcC2M_AskGuildArenaInfoNew.cs.meta | 12 + .../RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs | 40 + .../RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs | 40 + .../RPC/RpcC2M_AskGuildBriefInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AskGuildMembers.cs | 40 + .../XMainClient/RPC/RpcC2M_AskGuildMembers.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs | 40 + .../RPC/RpcC2M_AskGuildSkillInfoNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs | 40 + .../RPC/RpcC2M_AskGuildWageInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_AuctionAllReq.cs | 40 + .../XMainClient/RPC/RpcC2M_AuctionAllReq.cs.meta | 12 + .../RPC/RpcC2M_BuyDragonGuildShopItem.cs | 40 + .../RPC/RpcC2M_BuyDragonGuildShopItem.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs | 40 + .../RPC/RpcC2M_BuyPartnerShopItem.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_CancelLeavePartner.cs | 40 + .../RPC/RpcC2M_CancelLeavePartner.cs.meta | 12 + .../RPC/RpcC2M_ChangeDragonGuildPosition.cs | 40 + .../RPC/RpcC2M_ChangeDragonGuildPosition.cs.meta | 12 + .../RPC/RpcC2M_ChangeDragonGuildSetting.cs | 40 + .../RPC/RpcC2M_ChangeDragonGuildSetting.cs.meta | 12 + .../RPC/RpcC2M_ChangeGuildSettingNew.cs | 40 + .../RPC/RpcC2M_ChangeGuildSettingNew.cs.meta | 12 + .../RPC/RpcC2M_ChangeMemberPositionNew.cs | 40 + .../RPC/RpcC2M_ChangeMemberPositionNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ChangeNameNew.cs | 40 + .../XMainClient/RPC/RpcC2M_ChangeNameNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs | 40 + .../RPC/RpcC2M_CheckRoleBeforePay.cs.meta | 12 + .../RPC/RpcC2M_ClearGuildTerrAlliance.cs | 40 + .../RPC/RpcC2M_ClearGuildTerrAlliance.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs | 40 + .../RPC/RpcC2M_ClearPrivateChatList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ClickNewNotice.cs | 40 + .../XMainClient/RPC/RpcC2M_ClickNewNotice.cs.meta | 12 + .../RPC/RpcC2M_ClientQueryRankListNtf.cs | 40 + .../RPC/RpcC2M_ClientQueryRankListNtf.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs | 40 + .../RPC/RpcC2M_CreateOrEnterGuild.cs.meta | 12 + .../RPC/RpcC2M_CreateOrJoinDragonGuild.cs | 40 + .../RPC/RpcC2M_CreateOrJoinDragonGuild.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_CreateRoleNew.cs | 40 + .../XMainClient/RPC/RpcC2M_CreateRoleNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs | 40 + .../XMainClient/RPC/RpcC2M_CrossGvgOper.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_CustomBattleOp.cs | 40 + .../XMainClient/RPC/RpcC2M_CustomBattleOp.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs | 40 + .../XMainClient/RPC/RpcC2M_DERankReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs | 40 + .../RPC/RpcC2M_DailyTaskRefreshOper.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_DelGuildInherit.cs | 40 + .../XMainClient/RPC/RpcC2M_DelGuildInherit.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_DoAddFriendNew.cs | 40 + .../XMainClient/RPC/RpcC2M_DoAddFriendNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_DonateMemberItem.cs | 40 + .../RPC/RpcC2M_DonateMemberItem.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_DragonGuildApproval.cs | 40 + .../RPC/RpcC2M_DragonGuildApproval.cs.meta | 12 + .../RPC/RpcC2M_DragonGuildBindGroupReq.cs | 40 + .../RPC/RpcC2M_DragonGuildBindGroupReq.cs.meta | 12 + .../RPC/RpcC2M_DragonGuildJoinBindGroup.cs | 40 + .../RPC/RpcC2M_DragonGuildJoinBindGroup.cs.meta | 12 + .../RPC/RpcC2M_DragonGuildUnBindGroup.cs | 40 + .../RPC/RpcC2M_DragonGuildUnBindGroup.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs | 40 + .../RPC/RpcC2M_EnterBMReadyScene.cs.meta | 12 + .../RPC/RpcC2M_EnterBattleReadyScene.cs | 40 + .../RPC/RpcC2M_EnterBattleReadyScene.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_EnterWeddingScene.cs | 40 + .../RPC/RpcC2M_EnterWeddingScene.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs | 40 + .../XMainClient/RPC/RpcC2M_FetchDGApps.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs | 40 + .../RPC/RpcC2M_FetchDragonGuildList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_FetchGuildApp.cs | 40 + .../XMainClient/RPC/RpcC2M_FetchGuildApp.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs | 40 + .../RPC/RpcC2M_FetchGuildHistoryNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs | 40 + .../XMainClient/RPC/RpcC2M_FetchMail.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_FetchPlantInfo.cs | 40 + .../XMainClient/RPC/RpcC2M_FetchPlantInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_FetchPlatNotice.cs | 40 + .../XMainClient/RPC/RpcC2M_FetchPlatNotice.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs | 40 + .../RPC/RpcC2M_FetchTeamListC2M.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs | 40 + .../RPC/RpcC2M_FriendGardenPlantLog.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs | 40 + .../XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs | 40 + .../XMainClient/RPC/RpcC2M_GCFCommonReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs | 40 + .../RPC/RpcC2M_GCFFightInfoReqC2M.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs | 40 + .../RPC/RpcC2M_GCFReadysInfoReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GardenBanquet.cs | 40 + .../XMainClient/RPC/RpcC2M_GardenBanquet.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GardenBanquetAward.cs | 40 + .../RPC/RpcC2M_GardenBanquetAward.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GardenCookingFood.cs | 40 + .../RPC/RpcC2M_GardenCookingFood.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GardenExpelSprite.cs | 40 + .../RPC/RpcC2M_GardenExpelSprite.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GardenFishInfo.cs | 40 + .../XMainClient/RPC/RpcC2M_GardenFishInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GardenOverview.cs | 40 + .../XMainClient/RPC/RpcC2M_GardenOverview.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs | 40 + .../XMainClient/RPC/RpcC2M_GardenSteal.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs | 40 + .../RPC/RpcC2M_GetAllWeddingInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetCrossGvgData.cs | 40 + .../XMainClient/RPC/RpcC2M_GetCrossGvgData.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs | 40 + .../RPC/RpcC2M_GetDailyTaskAskHelp.cs.meta | 12 + .../RPC/RpcC2M_GetDailyTaskRefreshInfo.cs | 40 + .../RPC/RpcC2M_GetDailyTaskRefreshInfo.cs.meta | 12 + .../RPC/RpcC2M_GetDailyTaskRefreshRecord.cs | 40 + .../RPC/RpcC2M_GetDailyTaskRefreshRecord.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs | 40 + .../XMainClient/RPC/RpcC2M_GetDanceIds.cs.meta | 12 + .../RPC/RpcC2M_GetDragonGuildBindInfo.cs | 40 + .../RPC/RpcC2M_GetDragonGuildBindInfo.cs.meta | 12 + .../RPC/RpcC2M_GetDragonGuildLiveness.cs | 40 + .../RPC/RpcC2M_GetDragonGuildLiveness.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs | 40 + .../RPC/RpcC2M_GetDragonGuildShop.cs.meta | 12 + .../RPC/RpcC2M_GetDragonGuildShopRecord.cs | 40 + .../RPC/RpcC2M_GetDragonGuildShopRecord.cs.meta | 12 + .../RPC/RpcC2M_GetDragonGuildTaskInfo.cs | 40 + .../RPC/RpcC2M_GetDragonGuildTaskInfo.cs.meta | 12 + .../RPC/RpcC2M_GetFlowerActivityReward.cs | 40 + .../RPC/RpcC2M_GetFlowerActivityReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs | 40 + .../RPC/RpcC2M_GetGuildBindInfo.cs.meta | 12 + .../RPC/RpcC2M_GetGuildBonusSendList.cs | 40 + .../RPC/RpcC2M_GetGuildBonusSendList.cs.meta | 12 + .../RPC/RpcC2M_GetGuildCheckinRecordsNew.cs | 40 + .../RPC/RpcC2M_GetGuildCheckinRecordsNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs | 40 + .../RPC/RpcC2M_GetGuildDonateInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs | 40 + .../RPC/RpcC2M_GetGuildIntegralInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetGuildWageReward.cs | 40 + .../RPC/RpcC2M_GetGuildWageReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs | 40 + .../RPC/RpcC2M_GetLeagueBattleInfo.cs.meta | 12 + .../RPC/RpcC2M_GetLeagueBattleRecord.cs | 40 + .../RPC/RpcC2M_GetLeagueBattleRecord.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs | 40 + .../RPC/RpcC2M_GetLeagueEleInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs | 40 + .../RPC/RpcC2M_GetLeagueTeamInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetListSubscribe.cs | 40 + .../RPC/RpcC2M_GetListSubscribe.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs | 40 + .../RPC/RpcC2M_GetMarriageLiveness.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs | 40 + .../RPC/RpcC2M_GetMarriagePrivilege.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetMarriageRelation.cs | 40 + .../RPC/RpcC2M_GetMarriageRelation.cs.meta | 12 + .../RPC/RpcC2M_GetMobaBattleBriefRecord.cs | 40 + .../RPC/RpcC2M_GetMobaBattleBriefRecord.cs.meta | 12 + .../RPC/RpcC2M_GetMobaBattleGameRecord.cs | 40 + .../RPC/RpcC2M_GetMobaBattleGameRecord.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs | 40 + .../RPC/RpcC2M_GetMobaBattleInfo.cs.meta | 12 + .../RPC/RpcC2M_GetMobaBattleWeekReward.cs | 40 + .../RPC/RpcC2M_GetMobaBattleWeekReward.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs | 40 + .../RPC/RpcC2M_GetMyApplyMasterInfo.cs.meta | 12 + .../RPC/RpcC2M_GetMyApplyStudentInfo.cs | 40 + .../RPC/RpcC2M_GetMyApplyStudentInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs | 40 + .../XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs.meta | 12 + .../RPC/RpcC2M_GetOtherGuildBriefNew.cs | 40 + .../RPC/RpcC2M_GetOtherGuildBriefNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs | 40 + .../RPC/RpcC2M_GetOtherMentorStatus.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs | 40 + .../RPC/RpcC2M_GetPartnerDetailInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetPartnerInfo.cs | 40 + .../XMainClient/RPC/RpcC2M_GetPartnerInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs | 40 + .../RPC/RpcC2M_GetPartnerLiveness.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetPartnerShop.cs | 40 + .../XMainClient/RPC/RpcC2M_GetPartnerShop.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs | 40 + .../RPC/RpcC2M_GetPartnerShopRecord.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs | 40 + .../XMainClient/RPC/RpcC2M_GetQADataReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs | 40 + .../RPC/RpcC2M_GetRiftGuildRank.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs | 40 + .../RPC/RpcC2M_GetSkyCraftEliInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs | 40 + .../XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs | 40 + .../RPC/RpcC2M_GetSkyCraftRecord.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs | 40 + .../RPC/RpcC2M_GetSkyCraftTeamInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs | 40 + .../RPC/RpcC2M_GetUnitAppearanceNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs | 40 + .../RPC/RpcC2M_GetWeddingInviteInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs | 40 + .../RPC/RpcC2M_GetWorldBossStateNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs | 40 + .../RPC/RpcC2M_GetWorldBossTimeLeft.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs | 40 + .../XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs | 40 + .../RPC/RpcC2M_GoalAwardsGetAwards.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs | 40 + .../RPC/RpcC2M_GoalAwardsGetList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GroupChatChangeName.cs | 40 + .../RPC/RpcC2M_GroupChatChangeName.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GroupChatClear.cs | 40 + .../XMainClient/RPC/RpcC2M_GroupChatClear.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GroupChatCreate.cs | 40 + .../XMainClient/RPC/RpcC2M_GroupChatCreate.cs.meta | 12 + .../RPC/RpcC2M_GroupChatFindRoleInfoList.cs | 40 + .../RPC/RpcC2M_GroupChatFindRoleInfoList.cs.meta | 12 + .../RPC/RpcC2M_GroupChatFindTeamInfoList.cs | 40 + .../RPC/RpcC2M_GroupChatFindTeamInfoList.cs.meta | 12 + .../RPC/RpcC2M_GroupChatGetGroupInfo.cs | 40 + .../RPC/RpcC2M_GroupChatGetGroupInfo.cs.meta | 12 + .../RPC/RpcC2M_GroupChatLeaderAddRole.cs | 40 + .../RPC/RpcC2M_GroupChatLeaderAddRole.cs.meta | 12 + .../RPC/RpcC2M_GroupChatLeaderIssueInfo.cs | 40 + .../RPC/RpcC2M_GroupChatLeaderIssueInfo.cs.meta | 12 + .../RPC/RpcC2M_GroupChatLeaderReview.cs | 40 + .../RPC/RpcC2M_GroupChatLeaderReview.cs.meta | 12 + .../RPC/RpcC2M_GroupChatLeaderReviewList.cs | 40 + .../RPC/RpcC2M_GroupChatLeaderReviewList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GroupChatManager.cs | 40 + .../RPC/RpcC2M_GroupChatManager.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs | 40 + .../RPC/RpcC2M_GroupChatPlayerApply.cs.meta | 12 + .../RPC/RpcC2M_GroupChatPlayerIssueInfo.cs | 40 + .../RPC/RpcC2M_GroupChatPlayerIssueInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GroupChatQuit.cs | 40 + .../XMainClient/RPC/RpcC2M_GroupChatQuit.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildApprovalNew.cs | 40 + .../RPC/RpcC2M_GuildApprovalNew.cs.meta | 12 + .../RPC/RpcC2M_GuildArenaSimpleDeployNew.cs | 40 + .../RPC/RpcC2M_GuildArenaSimpleDeployNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs | 40 + .../XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildBindGroup.cs | 40 + .../XMainClient/RPC/RpcC2M_GuildBindGroup.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildCampInfo.cs | 40 + .../XMainClient/RPC/RpcC2M_GuildCampInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildCheckinNew.cs | 40 + .../XMainClient/RPC/RpcC2M_GuildCheckinNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs | 40 + .../RPC/RpcC2M_GuildFatigueOPNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs | 40 + .../RPC/RpcC2M_GuildHallGetBuffList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs | 40 + .../RPC/RpcC2M_GuildHallUpdateBuff.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs | 40 + .../RPC/RpcC2M_GuildJoinBindGroup.cs.meta | 12 + .../RPC/RpcC2M_GuildSchoolHallGetRankList.cs | 40 + .../RPC/RpcC2M_GuildSchoolHallGetRankList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs | 40 + .../RPC/RpcC2M_GuildUnBindGroup.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs | 40 + .../RPC/RpcC2M_GuildZiCaiDonate.cs.meta | 12 + .../RPC/RpcC2M_GuildZiCaiDonateHistory.cs | 40 + .../RPC/RpcC2M_GuildZiCaiDonateHistory.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs | 40 + .../XMainClient/RPC/RpcC2M_HoldWedding.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_IbGiftHistReq.cs | 40 + .../XMainClient/RPC/RpcC2M_IbGiftHistReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_InvFightReqAll.cs | 40 + .../XMainClient/RPC/RpcC2M_InvFightReqAll.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs | 40 + .../RPC/RpcC2M_InvHistoryC2MReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs | 40 + .../XMainClient/RPC/RpcC2M_JoinFmRoom.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs | 40 + .../RPC/RpcC2M_JoinLeagueEleBattle.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_KMatchCommonReq.cs | 40 + .../XMainClient/RPC/RpcC2M_KMatchCommonReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_LeagueBattleReq.cs | 40 + .../XMainClient/RPC/RpcC2M_LeagueBattleReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs | 40 + .../RPC/RpcC2M_LeaveFromDragonGuild.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_LeaveFromGuild.cs | 40 + .../XMainClient/RPC/RpcC2M_LeaveFromGuild.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs | 40 + .../XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs | 40 + .../XMainClient/RPC/RpcC2M_LeavePartner.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs | 40 + .../XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs.meta | 12 + .../RPC/RpcC2M_MSGetFlowerRewardList.cs | 40 + .../RPC/RpcC2M_MSGetFlowerRewardList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_MTShowTopList.cs | 40 + .../XMainClient/RPC/RpcC2M_MTShowTopList.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_MailOp.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2M_MailOp.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_MarriageRelationOp.cs | 40 + .../RPC/RpcC2M_MarriageRelationOp.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs | 40 + .../RPC/RpcC2M_MentorMyBeAppliedMsg.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_MentorRelationOp.cs | 40 + .../RPC/RpcC2M_MentorRelationOp.cs.meta | 12 + .../RPC/RpcC2M_ModifyDragonGuildName.cs | 40 + .../RPC/RpcC2M_ModifyDragonGuildName.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs | 40 + .../RPC/RpcC2M_ModifyMsGuildName.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs | 40 + .../XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs | 40 + .../RPC/RpcC2M_OPenGardenFarmland.cs.meta | 12 + .../RPC/RpcC2M_Open520FestivityRedPacket.cs | 40 + .../RPC/RpcC2M_Open520FestivityRedPacket.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs | 40 + .../XMainClient/RPC/RpcC2M_PayNotify.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs | 40 + .../XMainClient/RPC/RpcC2M_PkReqC2M.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_PlantCultivation.cs | 40 + .../RPC/RpcC2M_PlantCultivation.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs | 40 + .../XMainClient/RPC/RpcC2M_PlantHarvest.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs | 40 + .../RPC/RpcC2M_QueryBigMeleeRank.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs | 40 + .../RPC/RpcC2M_QueryGuildCheckinNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs | 40 + .../XMainClient/RPC/RpcC2M_QueryResWar.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs | 40 + .../RPC/RpcC2M_QueryResWarRoleRank.cs.meta | 12 + .../RPC/RpcC2M_RandomFriendWaitListNew.cs | 40 + .../RPC/RpcC2M_RandomFriendWaitListNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs | 40 + .../XMainClient/RPC/RpcC2M_RecAlliance.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs | 40 + .../RPC/RpcC2M_RemoveBlackListNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_RemoveFriendNew.cs | 40 + .../XMainClient/RPC/RpcC2M_RemoveFriendNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs | 40 + .../RPC/RpcC2M_ReqGuildArenaHistory.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildBossInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildInheritInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildLadderInfo.cs.meta | 12 + .../RPC/RpcC2M_ReqGuildLadderRnakInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildLadderRnakInfo.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs | 40 + .../XMainClient/RPC/RpcC2M_ReqGuildList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildRankInfo.cs.meta | 12 + .../RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs.meta | 12 + .../RPC/RpcC2M_ReqGuildTerrChallInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildTerrChallInfo.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildTerrCityInfo.cs.meta | 12 + .../RPC/RpcC2M_ReqGuildTerrIntellInfo.cs | 40 + .../RPC/RpcC2M_ReqGuildTerrIntellInfo.cs.meta | 12 + .../RPC/RpcC2M_ReqPlatFriendRankList.cs | 40 + .../RPC/RpcC2M_ReqPlatFriendRankList.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ResWarExplore.cs | 40 + .../XMainClient/RPC/RpcC2M_ResWarExplore.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs | 40 + .../RPC/RpcC2M_ReturnToSelectRole.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_SelectRoleNew.cs | 40 + .../XMainClient/RPC/RpcC2M_SelectRoleNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs | 40 + .../RPC/RpcC2M_SendGift2PlatFriend.cs.meta | 12 + .../RPC/RpcC2M_SendGuildBonusInSendList.cs | 40 + .../RPC/RpcC2M_SendGuildBonusInSendList.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs | 40 + .../XMainClient/RPC/RpcC2M_SetSubscribe.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs | 40 + .../RPC/RpcC2M_ShowFlowerPageNew.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs | 40 + .../XMainClient/RPC/RpcC2M_SkyCityEnter.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs | 40 + .../RPC/RpcC2M_SkyCraftMatchReq.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs | 40 + .../XMainClient/RPC/RpcC2M_StartPlant.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_StartResWarPVE.cs | 40 + .../XMainClient/RPC/RpcC2M_StartResWarPVE.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_StartWeddingCar.cs | 40 + .../XMainClient/RPC/RpcC2M_StartWeddingCar.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs | 40 + .../RPC/RpcC2M_StudyGuildSkillNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_TakeMarriageChest.cs | 40 + .../RPC/RpcC2M_TakeMarriageChest.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_TeamRequestC2M.cs | 40 + .../XMainClient/RPC/RpcC2M_TeamRequestC2M.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs | 40 + .../XMainClient/RPC/RpcC2M_TryAlliance.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_TryDance.cs | 40 + .../XMainClient/RPC/RpcC2M_TryDance.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_TryFish.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2M_TryFish.cs.meta | 12 + .../RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs | 40 + .../RpcC2M_UpdateMentorApplyStudentInfo.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs | 40 + .../XMainClient/RPC/RpcC2M_UseGuildBuff.cs.meta | 12 + .../RPC/RpcC2M_WeddingInviteOperator.cs | 40 + .../RPC/RpcC2M_WeddingInviteOperator.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs | 40 + .../XMainClient/RPC/RpcC2M_WorldBossEnd.cs.meta | 12 + .../RPC/RpcC2M_WorldBossGuildAddAttr.cs | 40 + .../RPC/RpcC2M_WorldBossGuildAddAttr.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_applyguildarena.cs | 40 + .../XMainClient/RPC/RpcC2M_applyguildarena.cs.meta | 12 + .../Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs | 40 + .../Scripts/XMainClient/RPC/RpcC2M_chat.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_getapplyguildlist.cs | 40 + .../RPC/RpcC2M_getapplyguildlist.cs.meta | 12 + .../XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs | 40 + .../RPC/RpcC2M_getguildbosstimeleft.cs.meta | 12 + .../RPC/RpcC2M_getintegralbattleInfo.cs | 40 + .../RPC/RpcC2M_getintegralbattleInfo.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs | 40 + .../XMainClient/RPC/RpcC2M_gmfjoinreq.cs.meta | 12 + .../XMainClient/RPC/RpcC2N_CreateRoleNew.cs | 40 + .../XMainClient/RPC/RpcC2N_CreateRoleNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2N_LoginReconnectReq.cs | 40 + .../RPC/RpcC2N_LoginReconnectReq.cs.meta | 12 + .../XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs | 40 + .../RPC/RpcC2N_ReturnToSelectRole.cs.meta | 12 + .../XMainClient/RPC/RpcC2N_SelectRoleNew.cs | 40 + .../XMainClient/RPC/RpcC2N_SelectRoleNew.cs.meta | 12 + .../XMainClient/RPC/RpcC2T_ClientLoginRequest.cs | 40 + .../RPC/RpcC2T_ClientLoginRequest.cs.meta | 12 + .../Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs | 40 + .../XMainClient/RPC/RpcC2T_Reconnect.cs.meta | 12 + .../XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs | 40 + .../RPC/RpcC2T_UpLoadAudioToGate.cs.meta | 12 + .../Scripts/XMainClient/RaceBattleHandler.cs | 327 + .../Scripts/XMainClient/RaceBattleHandler.cs.meta | 12 + .../Scripts/XMainClient/RaceEntranceBehaviour.cs | 31 + .../XMainClient/RaceEntranceBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/RaceEntranceView.cs | 165 + .../Scripts/XMainClient/RaceEntranceView.cs.meta | 12 + .../Scripts/XMainClient/RadioBattleBahaviour.cs | 26 + .../XMainClient/RadioBattleBahaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/RadioBattleDlg.cs | 178 + .../Scripts/XMainClient/RadioBattleDlg.cs.meta | 12 + .../Assets/Scripts/XMainClient/RadioBehaviour.cs | 22 + .../Scripts/XMainClient/RadioBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/RadioDlg.cs | 270 + Client/Assets/Scripts/XMainClient/RadioDlg.cs.meta | 12 + .../Scripts/XMainClient/RandomAttrDataMgr.cs | 42 + .../Scripts/XMainClient/RandomAttrDataMgr.cs.meta | 12 + .../Scripts/XMainClient/RandomGiftBehaviour.cs | 50 + .../XMainClient/RandomGiftBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/RandomGiftView.cs | 228 + .../Scripts/XMainClient/RandomGiftView.cs.meta | 12 + .../Assets/Scripts/XMainClient/RankRewardData.cs | 24 + .../Scripts/XMainClient/RankRewardData.cs.meta | 12 + .../Scripts/XMainClient/RankRewardHandler.cs | 134 + .../Scripts/XMainClient/RankRewardHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/RankRewardStatus.cs | 14 + .../Scripts/XMainClient/RankRewardStatus.cs.meta | 12 + Client/Assets/Scripts/XMainClient/RecentMsg.cs | 10 + .../Assets/Scripts/XMainClient/RecentMsg.cs.meta | 12 + .../XMainClient/RecruitAuthorizeBehaviour.cs | 29 + .../XMainClient/RecruitAuthorizeBehaviour.cs.meta | 12 + .../Scripts/XMainClient/RecruitAuthorizeView.cs | 135 + .../XMainClient/RecruitAuthorizeView.cs.meta | 12 + .../Assets/Scripts/XMainClient/RecruitBehaviour.cs | 38 + .../Scripts/XMainClient/RecruitBehaviour.cs.meta | 12 + .../Scripts/XMainClient/RecruitGroupHandle.cs | 167 + .../Scripts/XMainClient/RecruitGroupHandle.cs.meta | 12 + .../XMainClient/RecruitGroupPublishBehaviour.cs | 18 + .../RecruitGroupPublishBehaviour.cs.meta | 12 + .../Scripts/XMainClient/RecruitGroupPublishView.cs | 97 + .../XMainClient/RecruitGroupPublishView.cs.meta | 12 + .../Scripts/XMainClient/RecruitListHandler.cs | 133 + .../Scripts/XMainClient/RecruitListHandler.cs.meta | 12 + .../Scripts/XMainClient/RecruitMemberHandler.cs | 138 + .../XMainClient/RecruitMemberHandler.cs.meta | 12 + .../Scripts/XMainClient/RecruitNameBehaviour.cs | 22 + .../XMainClient/RecruitNameBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/RecruitNameView.cs | 77 + .../Scripts/XMainClient/RecruitNameView.cs.meta | 12 + .../XMainClient/RecruitPlayerPublishBehaviour.cs | 8 + .../RecruitPlayerPublishBehaviour.cs.meta | 12 + .../XMainClient/RecruitPlayerPublishView.cs | 37 + .../XMainClient/RecruitPlayerPublishView.cs.meta | 12 + .../Scripts/XMainClient/RecruitPublishBehaviour.cs | 54 + .../XMainClient/RecruitPublishBehaviour.cs.meta | 12 + .../Scripts/XMainClient/RecruitPublishView.cs | 254 + .../Scripts/XMainClient/RecruitPublishView.cs.meta | 12 + .../XMainClient/RecruitSelectGroupHandler.cs | 220 + .../XMainClient/RecruitSelectGroupHandler.cs.meta | 12 + .../XMainClient/RecruitSelectGroupUpdate.cs | 6 + .../XMainClient/RecruitSelectGroupUpdate.cs.meta | 12 + .../Scripts/XMainClient/RecruitStepCounter.cs | 128 + .../Scripts/XMainClient/RecruitStepCounter.cs.meta | 12 + .../XMainClient/RecruitStepCounterUpdate.cs | 7 + .../XMainClient/RecruitStepCounterUpdate.cs.meta | 12 + .../Assets/Scripts/XMainClient/RecruitTitleBar.cs | 210 + .../Scripts/XMainClient/RecruitTitleBar.cs.meta | 12 + .../Scripts/XMainClient/RecruitTitleChange.cs | 6 + .../Scripts/XMainClient/RecruitTitleChange.cs.meta | 12 + .../Scripts/XMainClient/RecruitTitleReSelect.cs | 6 + .../XMainClient/RecruitTitleReSelect.cs.meta | 12 + Client/Assets/Scripts/XMainClient/RecruitToggle.cs | 10 + .../Scripts/XMainClient/RecruitToggle.cs.meta | 12 + Client/Assets/Scripts/XMainClient/RecruitView.cs | 201 + .../Assets/Scripts/XMainClient/RecruitView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/RelaxGame.cs | 10 + .../Assets/Scripts/XMainClient/RelaxGame.cs.meta | 12 + .../Assets/Scripts/XMainClient/ReplayBehaviour.cs | 31 + .../Scripts/XMainClient/ReplayBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs | 178 + .../Scripts/XMainClient/ReplaykitDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ResRankInfo.cs | 15 + .../Assets/Scripts/XMainClient/ResRankInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/RewardAuxData.cs | 53 + .../Scripts/XMainClient/RewardAuxData.cs.meta | 12 + .../Scripts/XMainClient/RewardItemAuxData.cs | 33 + .../Scripts/XMainClient/RewardItemAuxData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/RollDlg.cs | 96 + Client/Assets/Scripts/XMainClient/RollDlg.cs.meta | 12 + .../Assets/Scripts/XMainClient/RollDlgBehaviour.cs | 32 + .../Scripts/XMainClient/RollDlgBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SceneMat.cs | 40 + Client/Assets/Scripts/XMainClient/SceneMat.cs.meta | 12 + .../Scripts/XMainClient/SceneRefuseReason.cs | 14 + .../Scripts/XMainClient/SceneRefuseReason.cs.meta | 12 + .../Scripts/XMainClient/ScreenShotCallback.cs | 6 + .../Scripts/XMainClient/ScreenShotCallback.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Script.meta | 9 + .../Scripts/XMainClient/Script/XSkillGen.meta | 9 + .../Script/XSkillGen/SkillGenTemplate.txt | 16 + .../Script/XSkillGen/SkillGenTemplate.txt.meta | 8 + Client/Assets/Scripts/XMainClient/ScriptCode.cs | 88 + .../Assets/Scripts/XMainClient/ScriptCode.cs.meta | 12 + .../Scripts/XMainClient/SelectNumFrameBehaviour.cs | 28 + .../XMainClient/SelectNumFrameBehaviour.cs.meta | 12 + .../Scripts/XMainClient/SelectNumFrameDlg.cs | 109 + .../Scripts/XMainClient/SelectNumFrameDlg.cs.meta | 12 + .../Scripts/XMainClient/SelectPlayerFromList.cs | 18 + .../XMainClient/SelectPlayerFromList.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Selector.cs | 139 + Client/Assets/Scripts/XMainClient/Selector.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SelectorBind.cs | 7 + .../Scripts/XMainClient/SelectorBind.cs.meta | 12 + .../Assets/Scripts/XMainClient/SelectorInvoke.cs | 6 + .../Scripts/XMainClient/SelectorInvoke.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SelectorPool.cs | 25 + .../Scripts/XMainClient/SelectorPool.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SequenceList.cs | 174 + .../Scripts/XMainClient/SequenceList.cs.meta | 12 + .../Assets/Scripts/XMainClient/ServerBuffInfo.cs | 95 + .../Scripts/XMainClient/ServerBuffInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/ServerFlagEnum.cs | 17 + .../Scripts/XMainClient/ServerFlagEnum.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ServerInfo.cs | 23 + .../Assets/Scripts/XMainClient/ServerInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/ServerStateEnum.cs | 12 + .../Scripts/XMainClient/ServerStateEnum.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SetDestWay.cs | 11 + .../Assets/Scripts/XMainClient/SetDestWay.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SetEffectInfo.cs | 41 + .../Scripts/XMainClient/SetEffectInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs | 124 + .../Scripts/XMainClient/ShadowMapInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ShareBgType.cs | 12 + .../Assets/Scripts/XMainClient/ShareBgType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ShareOpType.cs | 10 + .../Assets/Scripts/XMainClient/ShareOpType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ShareTagType.cs | 10 + .../Scripts/XMainClient/ShareTagType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SharedData.cs | 398 ++ .../Assets/Scripts/XMainClient/SharedData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/ShowAttriData.cs | 126 + .../Scripts/XMainClient/ShowAttriData.cs.meta | 12 + .../Assets/Scripts/XMainClient/ShowSettingArgs.cs | 25 + .../Scripts/XMainClient/ShowSettingArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Skill.meta | 9 + Client/Assets/Scripts/XMainClient/Skill/XSkill.cs | 1028 +++ .../Scripts/XMainClient/Skill/XSkill.cs.meta | 12 + .../Scripts/XMainClient/Skill/XSkillComponent.cs | 1070 ++++ .../XMainClient/Skill/XSkillComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/Skill/XSkillCore.cs | 1161 ++++ .../Scripts/XMainClient/Skill/XSkillCore.cs.meta | 12 + .../Scripts/XMainClient/Skill/XSkillEffectMgr.cs | 937 +++ .../XMainClient/Skill/XSkillEffectMgr.cs.meta | 12 + .../XMainClient/Skill/XSkillExternalArgs.cs | 23 + .../XMainClient/Skill/XSkillExternalArgs.cs.meta | 12 + .../XMainClient/Skill/XSkillExternalBuffArgs.cs | 25 + .../Skill/XSkillExternalBuffArgs.cs.meta | 12 + .../Scripts/XMainClient/Skill/XSkillFactory.cs | 294 + .../XMainClient/Skill/XSkillFactory.cs.meta | 12 + .../Scripts/XMainClient/Skill/XSkillFlags.cs | 45 + .../Scripts/XMainClient/Skill/XSkillFlags.cs.meta | 12 + .../XMainClient/Skill/XSkillJAPassedEventArgs.cs | 21 + .../Skill/XSkillJAPassedEventArgs.cs.meta | 12 + .../XMainClient/Skill/XSkillLevelInfoMgr.cs | 284 + .../XMainClient/Skill/XSkillLevelInfoMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/Skill/XSkillMgr.cs | 598 ++ .../Scripts/XMainClient/Skill/XSkillMgr.cs.meta | 12 + .../Scripts/XMainClient/Skill/XSkillPreViewMgr.cs | 100 + .../XMainClient/Skill/XSkillPreViewMgr.cs.meta | 12 + .../XMainClient/Skill/XSkillQTEEventArgs.cs | 24 + .../XMainClient/Skill/XSkillQTEEventArgs.cs.meta | 12 + .../XMainClient/Skill/XSkillTreeBehaviour.cs | 161 + .../XMainClient/Skill/XSkillTreeBehaviour.cs.meta | 12 + .../XMainClient/Skill/XSkillTreeDocument.cs | 1295 ++++ .../XMainClient/Skill/XSkillTreeDocument.cs.meta | 12 + .../Scripts/XMainClient/Skill/XSkillTreeView.cs | 1063 ++++ .../XMainClient/Skill/XSkillTreeView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SkillDo.cs | 6 + Client/Assets/Scripts/XMainClient/SkillDo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SkillEffect.cs | 26 + .../Assets/Scripts/XMainClient/SkillEffect.cs.meta | 12 + .../Scripts/XMainClient/SkillExternalCallback.cs | 6 + .../XMainClient/SkillExternalCallback.cs.meta | 12 + .../Scripts/XMainClient/SkillLevelupRequest.cs | 12 + .../XMainClient/SkillLevelupRequest.cs.meta | 12 + .../Assets/Scripts/XMainClient/SkillStartEffect.cs | 14 + .../Scripts/XMainClient/SkillStartEffect.cs.meta | 12 + .../Scripts/XMainClient/SkillTreeSortItem.cs | 13 + .../Scripts/XMainClient/SkillTreeSortItem.cs.meta | 12 + .../Scripts/XMainClient/SkyArenaBattleHandler.cs | 215 + .../XMainClient/SkyArenaBattleHandler.cs.meta | 12 + .../XMainClient/SkyArenaEntranceBehaviour.cs | 40 + .../XMainClient/SkyArenaEntranceBehaviour.cs.meta | 12 + .../Scripts/XMainClient/SkyArenaEntranceView.cs | 207 + .../XMainClient/SkyArenaEntranceView.cs.meta | 12 + .../Scripts/XMainClient/SkyArenaInfoHandler.cs | 425 ++ .../XMainClient/SkyArenaInfoHandler.cs.meta | 12 + .../Scripts/XMainClient/SkyArenaWaitHandler.cs | 220 + .../XMainClient/SkyArenaWaitHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SmeltAttr.cs | 105 + .../Assets/Scripts/XMainClient/SmeltAttr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SocketState.cs | 11 + .../Assets/Scripts/XMainClient/SocketState.cs.meta | 12 + .../Assets/Scripts/XMainClient/SpActivityNode.cs | 14 + .../Scripts/XMainClient/SpActivityNode.cs.meta | 12 + .../Scripts/XMainClient/SpectateBehaviour.cs | 95 + .../Scripts/XMainClient/SpectateBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/SpectateHandler.cs | 214 + .../Scripts/XMainClient/SpectateHandler.cs.meta | 12 + .../XMainClient/SpectateLevelRewardBehaviour.cs | 80 + .../SpectateLevelRewardBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/SpriteHandlerTag.cs | 14 + .../Scripts/XMainClient/SpriteHandlerTag.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SpriteQuality.cs | 14 + .../Scripts/XMainClient/SpriteQuality.cs.meta | 12 + Client/Assets/Scripts/XMainClient/StageRankInfo.cs | 40 + .../Scripts/XMainClient/StageRankInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/StrengthAuxData.cs | 100 + .../Scripts/XMainClient/StrengthAuxData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/StringTip.cs | 11 + .../Assets/Scripts/XMainClient/StringTip.cs.meta | 12 + .../Assets/Scripts/XMainClient/SuperRiskMesType.cs | 14 + .../Scripts/XMainClient/SuperRiskMesType.cs.meta | 12 + .../Scripts/XMainClient/SuperRiskSpeedCost.cs | 15 + .../Scripts/XMainClient/SuperRiskSpeedCost.cs.meta | 12 + .../Assets/Scripts/XMainClient/SuperRiskState.cs | 20 + .../Scripts/XMainClient/SuperRiskState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/SysIntCache.cs | 64 + .../Assets/Scripts/XMainClient/SysIntCache.cs.meta | 12 + .../Scripts/XMainClient/TaJieHelpBehaviour.cs | 23 + .../Scripts/XMainClient/TaJieHelpBehaviour.cs.meta | 12 + .../Scripts/XMainClient/TaJieHelpDocument.cs | 273 + .../Scripts/XMainClient/TaJieHelpDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/TabIndex.cs | 19 + Client/Assets/Scripts/XMainClient/TabIndex.cs.meta | 12 + .../Assets/Scripts/XMainClient/TargetItemInfo.cs | 21 + .../Scripts/XMainClient/TargetItemInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/TargetRewardType.cs | 12 + .../Scripts/XMainClient/TargetRewardType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Team.meta | 9 + Client/Assets/Scripts/XMainClient/Team/XTeam.cs | 255 + .../Assets/Scripts/XMainClient/Team/XTeam.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamBloodUIData.cs | 22 + .../XMainClient/Team/XTeamBloodUIData.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamBonusHandler.cs | 106 + .../XMainClient/Team/XTeamBonusHandler.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamBriefData.cs | 337 + .../XMainClient/Team/XTeamBriefData.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamCategory.cs | 248 + .../Scripts/XMainClient/Team/XTeamCategory.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamCategoryMgr.cs | 146 + .../XMainClient/Team/XTeamCategoryMgr.cs.meta | 12 + .../XMainClient/Team/XTeamCreateTeamWindow.cs | 62 + .../XMainClient/Team/XTeamCreateTeamWindow.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamDocument.cs | 2016 ++++++ .../Scripts/XMainClient/Team/XTeamDocument.cs.meta | 12 + .../Team/XTeamDungeonSelectorHandler.cs | 306 + .../Team/XTeamDungeonSelectorHandler.cs.meta | 12 + .../XMainClient/Team/XTeamFriendDegreeHandler.cs | 366 ++ .../Team/XTeamFriendDegreeHandler.cs.meta | 12 + .../XMainClient/Team/XTeamInputPasswordView.cs | 80 + .../Team/XTeamInputPasswordView.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamInviteData.cs | 56 + .../XMainClient/Team/XTeamInviteData.cs.meta | 12 + .../XMainClient/Team/XTeamInviteDocument.cs | 333 + .../XMainClient/Team/XTeamInviteDocument.cs.meta | 12 + .../XMainClient/Team/XTeamInviteListData.cs | 189 + .../XMainClient/Team/XTeamInviteListData.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueBattleDocument.cs | 372 ++ .../Team/XTeamLeagueBattleDocument.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueCreateBehaviour.cs | 25 + .../Team/XTeamLeagueCreateBehaviour.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueCreateView.cs | 56 + .../XMainClient/Team/XTeamLeagueCreateView.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueDetailBehaviour.cs | 28 + .../Team/XTeamLeagueDetailBehaviour.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueDetailView.cs | 85 + .../XMainClient/Team/XTeamLeagueDetailView.cs.meta | 12 + .../Team/XTeamLeagueFinalResultBehavior.cs | 35 + .../Team/XTeamLeagueFinalResultBehavior.cs.meta | 12 + .../Team/XTeamLeagueLoadingBehaviour.cs | 45 + .../Team/XTeamLeagueLoadingBehaviour.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueLoadingView.cs | 141 + .../Team/XTeamLeagueLoadingView.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueRankBehavior.cs | 23 + .../Team/XTeamLeagueRankBehavior.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueRankView.cs | 127 + .../XMainClient/Team/XTeamLeagueRankView.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueRecordBehavior.cs | 34 + .../Team/XTeamLeagueRecordBehavior.cs.meta | 12 + .../XMainClient/Team/XTeamLeagueRecordView.cs | 140 + .../XMainClient/Team/XTeamLeagueRecordView.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamListHandler.cs | 536 ++ .../XMainClient/Team/XTeamListHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/Team/XTeamMember.cs | 228 + .../Scripts/XMainClient/Team/XTeamMember.cs.meta | 12 + .../XMainClient/Team/XTeamMemberBriefData.cs | 95 + .../XMainClient/Team/XTeamMemberBriefData.cs.meta | 12 + .../Team/XTeamMemberCountChangedEventArgs.cs | 24 + .../Team/XTeamMemberCountChangedEventArgs.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamMemberMonitor.cs | 441 ++ .../XMainClient/Team/XTeamMemberMonitor.cs.meta | 12 + .../XMainClient/Team/XTeamMonitorHandler.cs | 448 ++ .../XMainClient/Team/XTeamMonitorHandler.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamMonitorState.cs | 11 + .../XMainClient/Team/XTeamMonitorState.cs.meta | 12 + .../XMainClient/Team/XTeamMonitorStateMgr.cs | 74 + .../XMainClient/Team/XTeamMonitorStateMgr.cs.meta | 12 + .../XMainClient/Team/XTeamPartnerBonusHandler.cs | 289 + .../Team/XTeamPartnerBonusHandler.cs.meta | 12 + .../XMainClient/Team/XTeamPasswordHandler.cs | 133 + .../XMainClient/Team/XTeamPasswordHandler.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamPosition.cs | 10 + .../Scripts/XMainClient/Team/XTeamPosition.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamRelation.cs | 170 + .../Scripts/XMainClient/Team/XTeamRelation.cs.meta | 12 + .../Assets/Scripts/XMainClient/Team/XTeamRift.cs | 75 + .../Scripts/XMainClient/Team/XTeamRift.cs.meta | 12 + .../XMainClient/Team/XTeamSettingHandler.cs | 331 + .../XMainClient/Team/XTeamSettingHandler.cs.meta | 12 + .../XMainClient/Team/XTeamSmallChatHandler.cs | 202 + .../XMainClient/Team/XTeamSmallChatHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/Team/XTeamState.cs | 12 + .../Scripts/XMainClient/Team/XTeamState.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamTowerRankInfo.cs | 54 + .../XMainClient/Team/XTeamTowerRankInfo.cs.meta | 12 + .../Scripts/XMainClient/Team/XTeamTowerRankList.cs | 17 + .../XMainClient/Team/XTeamTowerRankList.cs.meta | 12 + .../Scripts/XMainClient/TeamBriefSortType.cs | 15 + .../Scripts/XMainClient/TeamBriefSortType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/TeamLevelType.cs | 36 + .../Scripts/XMainClient/TeamLevelType.cs.meta | 12 + .../Assets/Scripts/XMainClient/TeamLevelTypemgr.cs | 13 + .../Scripts/XMainClient/TeamLevelTypemgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/TeamTowerData.cs | 32 + .../Scripts/XMainClient/TeamTowerData.cs.meta | 12 + .../XMainClient/TimeOverFinishEventHandler.cs | 6 + .../XMainClient/TimeOverFinishEventHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/TipNode.cs | 11 + Client/Assets/Scripts/XMainClient/TipNode.cs.meta | 12 + .../Scripts/XMainClient/TitleClickEventHandler.cs | 6 + .../XMainClient/TitleClickEventHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/TitleDisplay.cs | 98 + .../Scripts/XMainClient/TitleDisplay.cs.meta | 12 + .../Assets/Scripts/XMainClient/TitleItemDisplay.cs | 148 + .../Scripts/XMainClient/TitleItemDisplay.cs.meta | 12 + Client/Assets/Scripts/XMainClient/TitleSelector.cs | 15 + .../Scripts/XMainClient/TitleSelector.cs.meta | 12 + .../XMainClient/TooltipButtonActivateFashion.cs | 59 + .../TooltipButtonActivateFashion.cs.meta | 12 + .../XMainClient/TooltipButtonOperateBase.cs | 23 + .../XMainClient/TooltipButtonOperateBase.cs.meta | 12 + .../XMainClient/TooltipButtonOperateCompose.cs | 125 + .../TooltipButtonOperateCompose.cs.meta | 12 + .../XMainClient/TooltipButtonOperateEmblemPutOn.cs | 13 + .../TooltipButtonOperateEmblemPutOn.cs.meta | 12 + .../XMainClient/TooltipButtonOperateEmblemSmelt.cs | 30 + .../TooltipButtonOperateEmblemSmelt.cs.meta | 12 + .../XMainClient/TooltipButtonOperateEnchant.cs | 32 + .../TooltipButtonOperateEnchant.cs.meta | 12 + .../TooltipButtonOperateEnchantTransform.cs | 60 + .../TooltipButtonOperateEnchantTransform.cs.meta | 12 + .../XMainClient/TooltipButtonOperateEnhance.cs | 32 + .../TooltipButtonOperateEnhance.cs.meta | 12 + .../TooltipButtonOperateEnhanceTransform.cs | 67 + .../TooltipButtonOperateEnhanceTransform.cs.meta | 12 + .../XMainClient/TooltipButtonOperateEquipFusion.cs | 49 + .../TooltipButtonOperateEquipFusion.cs.meta | 12 + .../TooltipButtonOperateEquipUpgrade.cs | 41 + .../TooltipButtonOperateEquipUpgrade.cs.meta | 12 + .../TooltipButtonOperateFashionPutOn.cs | 35 + .../TooltipButtonOperateFashionPutOn.cs.meta | 12 + .../TooltipButtonOperateFashionPutOnSuit.cs | 36 + .../TooltipButtonOperateFashionPutOnSuit.cs.meta | 12 + .../TooltipButtonOperateFashionTakeOff.cs | 34 + .../TooltipButtonOperateFashionTakeOff.cs.meta | 12 + .../TooltipButtonOperateFashionTakeOffSuit.cs | 36 + .../TooltipButtonOperateFashionTakeOffSuit.cs.meta | 12 + .../XMainClient/TooltipButtonOperateForge.cs | 31 + .../XMainClient/TooltipButtonOperateForge.cs.meta | 12 + .../XMainClient/TooltipButtonOperateIdentify.cs | 78 + .../TooltipButtonOperateIdentify.cs.meta | 12 + .../XMainClient/TooltipButtonOperateItemAny.cs | 112 + .../TooltipButtonOperateItemAny.cs.meta | 12 + .../XMainClient/TooltipButtonOperateItemUse.cs | 240 + .../TooltipButtonOperateItemUse.cs.meta | 12 + .../XMainClient/TooltipButtonOperateJadeUpgrade.cs | 60 + .../TooltipButtonOperateJadeUpgrade.cs.meta | 12 + .../XMainClient/TooltipButtonOperatePutIn.cs | 30 + .../XMainClient/TooltipButtonOperatePutIn.cs.meta | 12 + .../XMainClient/TooltipButtonOperatePutOn.cs | 150 + .../XMainClient/TooltipButtonOperatePutOn.cs.meta | 12 + .../XMainClient/TooltipButtonOperateRecycle.cs | 41 + .../TooltipButtonOperateRecycle.cs.meta | 12 + .../XMainClient/TooltipButtonOperateSell.cs | 85 + .../XMainClient/TooltipButtonOperateSell.cs.meta | 12 + .../XMainClient/TooltipButtonOperateSmelt.cs | 36 + .../XMainClient/TooltipButtonOperateSmelt.cs.meta | 12 + .../XMainClient/TooltipButtonOperateSmeltReturn.cs | 108 + .../TooltipButtonOperateSmeltReturn.cs.meta | 12 + .../XMainClient/TooltipButtonOperateTakeOff.cs | 36 + .../TooltipButtonOperateTakeOff.cs.meta | 12 + .../XMainClient/TooltipButtonOperateTakeOut.cs | 30 + .../TooltipButtonOperateTakeOut.cs.meta | 12 + Client/Assets/Scripts/XMainClient/TowerInfo.cs | 166 + .../Assets/Scripts/XMainClient/TowerInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Tutorial.meta | 9 + .../Scripts/XMainClient/Tutorial/Command.meta | 9 + .../XMainClient/Tutorial/Command/XCommandEmpty.cs | 68 + .../Tutorial/Command/XCommandEmpty.cs.meta | 12 + .../Tutorial/Command/XCommandHideSkills.cs | 39 + .../Tutorial/Command/XCommandHideSkills.cs.meta | 12 + .../Tutorial/Command/XCommandIsShowButton.cs | 37 + .../Tutorial/Command/XCommandIsShowButton.cs.meta | 12 + .../XMainClient/Tutorial/Command/XCommandNote.cs | 167 + .../Tutorial/Command/XCommandNote.cs.meta | 12 + .../Tutorial/Command/XCommandShowSkills.cs | 39 + .../Tutorial/Command/XCommandShowSkills.cs.meta | 12 + .../Scripts/XMainClient/Tutorial/XTutorialCmd.cs | 81 + .../XMainClient/Tutorial/XTutorialCmd.cs.meta | 12 + .../Tutorial/XTutorialCmdExecuteCondition.cs | 40 + .../Tutorial/XTutorialCmdExecuteCondition.cs.meta | 12 + .../XMainClient/Tutorial/XTutorialCmdExecutor.cs | 1276 ++++ .../Tutorial/XTutorialCmdExecutor.cs.meta | 12 + .../Tutorial/XTutorialCmdFinishCondition.cs | 27 + .../Tutorial/XTutorialCmdFinishCondition.cs.meta | 12 + .../XMainClient/Tutorial/XTutorialCmdParser.cs | 962 +++ .../Tutorial/XTutorialCmdParser.cs.meta | 12 + .../XMainClient/Tutorial/XTutorialHelper.cs | 116 + .../XMainClient/Tutorial/XTutorialHelper.cs.meta | 12 + .../XMainClient/Tutorial/XTutorialMainCmd.cs | 20 + .../XMainClient/Tutorial/XTutorialMainCmd.cs.meta | 12 + .../Scripts/XMainClient/Tutorial/XTutorialMgr.cs | 489 ++ .../XMainClient/Tutorial/XTutorialMgr.cs.meta | 12 + .../Scripts/XMainClient/TutorialSkipBehaviour.cs | 25 + .../XMainClient/TutorialSkipBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/TutorialSkipView.cs | 105 + .../Scripts/XMainClient/TutorialSkipView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI.meta | 9 + Client/Assets/Scripts/XMainClient/UI/AccessData.cs | 22 + .../Scripts/XMainClient/UI/AccessData.cs.meta | 12 + .../UI/ActivityGoddessTrialBehaviour.cs | 49 + .../UI/ActivityGoddessTrialBehaviour.cs.meta | 12 + .../XMainClient/UI/ActivityGoddessTrialDlg.cs | 215 + .../XMainClient/UI/ActivityGoddessTrialDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/ActivityHandler.cs | 1424 +++++ .../Scripts/XMainClient/UI/ActivityHandler.cs.meta | 12 + .../XMainClient/UI/ActivityRiftBehaviour.cs | 104 + .../XMainClient/UI/ActivityRiftBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/ActivityRiftDlg.cs | 578 ++ .../Scripts/XMainClient/UI/ActivityRiftDlg.cs.meta | 12 + .../XMainClient/UI/ActivityRiftGuidInfoHandler.cs | 173 + .../UI/ActivityRiftGuidInfoHandler.cs.meta | 12 + .../XMainClient/UI/ActivityRiftItemsHandler.cs | 83 + .../UI/ActivityRiftItemsHandler.cs.meta | 12 + .../XMainClient/UI/ActivityTeamTowerSingleDlg.cs | 1289 ++++ .../UI/ActivityTeamTowerSingleDlg.cs.meta | 12 + .../UI/ActivityTeamTowerSingleDlgBehaviour.cs | 185 + .../UI/ActivityTeamTowerSingleDlgBehaviour.cs.meta | 12 + .../XMainClient/UI/ActivityWeekendPartyView.cs | 174 + .../UI/ActivityWeekendPartyView.cs.meta | 12 + .../Scripts/XMainClient/UI/AncientHandler.cs | 279 + .../Scripts/XMainClient/UI/AncientHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/AnnounceView.cs | 122 + .../Scripts/XMainClient/UI/AnnounceView.cs.meta | 12 + .../Scripts/XMainClient/UI/AnnouncementHandler.cs | 254 + .../XMainClient/UI/AnnouncementHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/ArtifactAtlasHandler.cs | 403 ++ .../XMainClient/UI/ArtifactAtlasHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/ArtifactBagHandler.cs | 305 + .../XMainClient/UI/ArtifactBagHandler.cs.meta | 12 + .../XMainClient/UI/ArtifactComposeHandler.cs | 235 + .../XMainClient/UI/ArtifactComposeHandler.cs.meta | 12 + .../XMainClient/UI/ArtifactComposingHandler.cs | 316 + .../UI/ArtifactComposingHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/ArtifactFrameHandler.cs | 381 ++ .../XMainClient/UI/ArtifactFrameHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/ArtifactFuseHandler.cs | 504 ++ .../XMainClient/UI/ArtifactFuseHandler.cs.meta | 12 + .../XMainClient/UI/ArtifactInscriptionHandler.cs | 239 + .../UI/ArtifactInscriptionHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/ArtifactItemsHandler.cs | 229 + .../XMainClient/UI/ArtifactItemsHandler.cs.meta | 12 + .../XMainClient/UI/ArtifactOneKeyHandler.cs | 142 + .../XMainClient/UI/ArtifactOneKeyHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/ArtifactQuanlityFx.cs | 40 + .../XMainClient/UI/ArtifactQuanlityFx.cs.meta | 12 + .../XMainClient/UI/ArtifactRecastHandler.cs | 255 + .../XMainClient/UI/ArtifactRecastHandler.cs.meta | 12 + .../XMainClient/UI/ArtifactRefinedHandler.cs | 302 + .../XMainClient/UI/ArtifactRefinedHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/ArtifactToolTipDlg.cs | 405 ++ .../XMainClient/UI/ArtifactToolTipDlg.cs.meta | 12 + .../XMainClient/UI/ArtifactTooltipDlgBehaviour.cs | 23 + .../UI/ArtifactTooltipDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/AttrFrameParam.cs | 26 + .../Scripts/XMainClient/UI/AttrFrameParam.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/AttrParam.cs | 57 + .../Scripts/XMainClient/UI/AttrParam.cs.meta | 12 + .../Scripts/XMainClient/UI/AttrTooltipDlg.cs | 168 + .../Scripts/XMainClient/UI/AttrTooltipDlg.cs.meta | 12 + .../XMainClient/UI/AttrTooltipDlgBehaviour.cs | 19 + .../XMainClient/UI/AttrTooltipDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/AuctionBillBehaviour.cs | 112 + .../XMainClient/UI/AuctionBillBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/AuctionBillStyle.cs | 11 + .../XMainClient/UI/AuctionBillStyle.cs.meta | 12 + .../Scripts/XMainClient/UI/AuctionBillView.cs | 183 + .../Scripts/XMainClient/UI/AuctionBillView.cs.meta | 12 + .../Scripts/XMainClient/UI/AuctionBuyHandler.cs | 560 ++ .../XMainClient/UI/AuctionBuyHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/AuctionHouseHandler.cs | 603 ++ .../XMainClient/UI/AuctionHouseHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/AuctionNumberOperate.cs | 242 + .../XMainClient/UI/AuctionNumberOperate.cs.meta | 12 + .../XMainClient/UI/AuctionPurchaseBehaviour.cs | 35 + .../UI/AuctionPurchaseBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/AuctionPurchaseView.cs | 123 + .../XMainClient/UI/AuctionPurchaseView.cs.meta | 12 + .../Scripts/XMainClient/UI/AuctionSellHandler.cs | 201 + .../XMainClient/UI/AuctionSellHandler.cs.meta | 12 + .../XMainClient/UI/AuctionWrapContentGroup.cs | 62 + .../XMainClient/UI/AuctionWrapContentGroup.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/Battle.meta | 9 + .../XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs | 65 + .../UI/Battle/BattleQTEDlgBehaviour.cs.meta | 12 + .../XMainClient/UI/Battle/ChallengeDlgBehaviour.cs | 40 + .../UI/Battle/ChallengeDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleContiBehaviour.cs | 44 + .../XMainClient/UI/BattleContiBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleContiDlg.cs | 473 ++ .../Scripts/XMainClient/UI/BattleContiDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleContinueDlg.cs | 124 + .../XMainClient/UI/BattleContinueDlg.cs.meta | 12 + .../XMainClient/UI/BattleContinueDlgBehaviour.cs | 31 + .../UI/BattleContinueDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleDebugHandler.cs | 43 + .../XMainClient/UI/BattleDebugHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleDpsHandler.cs | 88 + .../XMainClient/UI/BattleDpsHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleDramaDlg.cs | 259 + .../Scripts/XMainClient/UI/BattleDramaDlg.cs.meta | 12 + .../XMainClient/UI/BattleDramaDlgBehaviour.cs | 38 + .../XMainClient/UI/BattleDramaDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleEnemyType.cs | 10 + .../Scripts/XMainClient/UI/BattleEnemyType.cs.meta | 12 + .../XMainClient/UI/BattleIndicateHandler.cs | 1508 +++++ .../XMainClient/UI/BattleIndicateHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleIndicator.cs | 22 + .../Scripts/XMainClient/UI/BattleIndicator.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/BattleMain.cs | 2004 ++++++ .../Scripts/XMainClient/UI/BattleMain.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleMainBehaviour.cs | 291 + .../XMainClient/UI/BattleMainBehaviour.cs.meta | 12 + .../XMainClient/UI/BattleMysteriourHandler.cs | 59 + .../XMainClient/UI/BattleMysteriourHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs | 267 + .../Scripts/XMainClient/UI/BattleQTEDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleRecordGameInfo.cs | 19 + .../XMainClient/UI/BattleRecordGameInfo.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleRecordHandler.cs | 177 + .../XMainClient/UI/BattleRecordHandler.cs.meta | 12 + .../XMainClient/UI/BattleRecordPlayerInfo.cs | 13 + .../XMainClient/UI/BattleRecordPlayerInfo.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleRiftHandler.cs | 202 + .../XMainClient/UI/BattleRiftHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleShareHandler.cs | 84 + .../XMainClient/UI/BattleShareHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleSkillHandler.cs | 1273 ++++ .../XMainClient/UI/BattleSkillHandler.cs.meta | 12 + .../XMainClient/UI/BattleStatisticsHandler.cs | 159 + .../XMainClient/UI/BattleStatisticsHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleTargetHandler.cs | 76 + .../XMainClient/UI/BattleTargetHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleVoiceHandler.cs | 67 + .../XMainClient/UI/BattleVoiceHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BattleVoiceNode.cs | 18 + .../Scripts/XMainClient/UI/BattleVoiceNode.cs.meta | 12 + .../XMainClient/UI/BattleWorldBossHandler.cs | 475 ++ .../XMainClient/UI/BattleWorldBossHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/BossRushBehavior.cs | 134 + .../XMainClient/UI/BossRushBehavior.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/BossRushDlg.cs | 702 +++ .../Scripts/XMainClient/UI/BossRushDlg.cs.meta | 12 + .../XMainClient/UI/CandidatesViewRecommendType.cs | 11 + .../UI/CandidatesViewRecommendType.cs.meta | 12 + .../Scripts/XMainClient/UI/CandidatesViewType.cs | 11 + .../XMainClient/UI/CandidatesViewType.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/ChallegeType.cs | 11 + .../Scripts/XMainClient/UI/ChallegeType.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/ChallengeDlg.cs | 190 + .../Scripts/XMainClient/UI/ChallengeDlg.cs.meta | 12 + .../XMainClient/UI/CharacterEquipBagHandler.cs | 416 ++ .../UI/CharacterEquipBagHandler.cs.meta | 12 + .../XMainClient/UI/CharacterEquipHandler.cs | 456 ++ .../XMainClient/UI/CharacterEquipHandler.cs.meta | 12 + .../XMainClient/UI/CharacterItemBagHandler.cs | 412 ++ .../XMainClient/UI/CharacterItemBagHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs | 15 + .../Scripts/XMainClient/UI/ComboBuff.cs.meta | 12 + .../Scripts/XMainClient/UI/CompeteNestBehaviour.cs | 54 + .../XMainClient/UI/CompeteNestBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/CompeteNestDlg.cs | 247 + .../Scripts/XMainClient/UI/CompeteNestDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/CookingHandler.cs | 602 ++ .../Scripts/XMainClient/UI/CookingHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/CrossGVGBattleMember.cs | 16 + .../XMainClient/UI/CrossGVGBattleMember.cs.meta | 12 + .../UI/CrossGVGBattlePrepareBehaviour.cs | 25 + .../UI/CrossGVGBattlePrepareBehaviour.cs.meta | 12 + .../XMainClient/UI/CrossGVGBattlePrepareView.cs | 103 + .../UI/CrossGVGBattlePrepareView.cs.meta | 12 + .../XMainClient/UI/CrossGVGBattleRankFrame.cs | 8 + .../XMainClient/UI/CrossGVGBattleRankFrame.cs.meta | 12 + .../XMainClient/UI/CrossGVGCombatHandler.cs | 87 + .../XMainClient/UI/CrossGVGCombatHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/CrossGVGDuelHandler.cs | 54 + .../XMainClient/UI/CrossGVGDuelHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/CrossGVGHallHandle.cs | 69 + .../XMainClient/UI/CrossGVGHallHandle.cs.meta | 12 + .../Scripts/XMainClient/UI/CrossGVGMainView.cs | 225 + .../XMainClient/UI/CrossGVGMainView.cs.meta | 12 + .../Scripts/XMainClient/UI/CustomBattle.meta | 9 + .../CustomBattleBountyModeDetailHandler.cs | 255 + .../CustomBattleBountyModeDetailHandler.cs.meta | 12 + .../CustomBattleBountyModeListHandler.cs | 297 + .../CustomBattleBountyModeListHandler.cs.meta | 12 + .../UI/CustomBattle/CustomBattleBriefHandler.cs | 172 + .../CustomBattle/CustomBattleBriefHandler.cs.meta | 12 + .../UI/CustomBattle/CustomBattleChestHandler.cs | 213 + .../CustomBattle/CustomBattleChestHandler.cs.meta | 12 + .../CustomBattleCustomModeCreateHandler.cs | 491 ++ .../CustomBattleCustomModeCreateHandler.cs.meta | 12 + .../CustomBattleCustomModeDetailHandler.cs | 386 ++ .../CustomBattleCustomModeDetailHandler.cs.meta | 12 + .../CustomBattleCustomModeListHandler.cs | 334 + .../CustomBattleCustomModeListHandler.cs.meta | 12 + .../UI/CustomBattle/CustomBattleMatchingHandler.cs | 40 + .../CustomBattleMatchingHandler.cs.meta | 12 + .../CustomBattlePasswordSettingHandler.cs | 130 + .../CustomBattlePasswordSettingHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/CustomBattleView.cs | 257 + .../XMainClient/UI/CustomBattleView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs | 121 + .../Scripts/XMainClient/UI/CutSceneUI.cs.meta | 12 + .../Scripts/XMainClient/UI/CutSceneUIBehaviour.cs | 35 + .../XMainClient/UI/CutSceneUIBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/DailyActivityDlg.cs | 96 + .../XMainClient/UI/DailyActivityDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/DanceMotionHandler.cs | 192 + .../XMainClient/UI/DanceMotionHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/DemoUI.cs | 372 ++ .../Assets/Scripts/XMainClient/UI/DemoUI.cs.meta | 12 + .../Scripts/XMainClient/UI/DemoUIBehaviour.cs | 70 + .../Scripts/XMainClient/UI/DemoUIBehaviour.cs.meta | 12 + .../XMainClient/UI/DragonCrusadeBehavior.cs | 42 + .../XMainClient/UI/DragonCrusadeBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/DragonCrusadeDlg.cs | 618 ++ .../XMainClient/UI/DragonCrusadeDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs | 249 + .../XMainClient/UI/DragonCrusadeGateDlg.cs.meta | 12 + .../XMainClient/UI/DragonCrusadeRankBehavior.cs | 23 + .../UI/DragonCrusadeRankBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs | 225 + .../XMainClient/UI/DragonCrusadeRankDlg.cs.meta | 12 + .../XMainClient/UI/DragonGuildLivenessBehaviour.cs | 47 + .../UI/DragonGuildLivenessBehaviour.cs.meta | 12 + .../XMainClient/UI/DragonGuildLivenessDlg.cs | 270 + .../XMainClient/UI/DragonGuildLivenessDlg.cs.meta | 12 + .../UI/DragonGuildLivenessRecordItem.cs | 41 + .../UI/DragonGuildLivenessRecordItem.cs.meta | 12 + .../UI/DragonGuildShopRecordsHandler.cs | 150 + .../UI/DragonGuildShopRecordsHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs | 848 +++ .../Assets/Scripts/XMainClient/UI/DramaDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/DramaDlgBehaviour.cs | 255 + .../XMainClient/UI/DramaDlgBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/DramaPage.cs | 15 + .../Scripts/XMainClient/UI/DramaPage.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/DungeonSelect.cs | 2445 ++++++++ .../Scripts/XMainClient/UI/DungeonSelect.cs.meta | 12 + .../XMainClient/UI/DungeonSelectBehaviour.cs | 238 + .../XMainClient/UI/DungeonSelectBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/EFavorState.cs | 12 + .../Scripts/XMainClient/UI/EFavorState.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/EmblemBagMode.cs | 10 + .../Scripts/XMainClient/UI/EmblemBagMode.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/EmblemBagView.cs | 328 + .../Scripts/XMainClient/UI/EmblemBagView.cs.meta | 12 + .../Scripts/XMainClient/UI/EmblemEquipView.cs | 300 + .../Scripts/XMainClient/UI/EmblemEquipView.cs.meta | 12 + .../Scripts/XMainClient/UI/EmblemTooltipDlg.cs | 321 + .../XMainClient/UI/EmblemTooltipDlg.cs.meta | 12 + .../XMainClient/UI/EmblemTooltipDlgBehaviour.cs | 8 + .../UI/EmblemTooltipDlgBehaviour.cs.meta | 12 + .../XMainClient/UI/EmblemTotalAttributeView.cs | 179 + .../UI/EmblemTotalAttributeView.cs.meta | 12 + .../Scripts/XMainClient/UI/EnchantActiveHandler.cs | 194 + .../XMainClient/UI/EnchantActiveHandler.cs.meta | 12 + .../XMainClient/UI/EnchantAttrPreviewHandler.cs | 89 + .../UI/EnchantAttrPreviewHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/EnchantBagHandler.cs | 152 + .../XMainClient/UI/EnchantBagHandler.cs.meta | 12 + .../XMainClient/UI/EnchantOperateHandler.cs | 528 ++ .../XMainClient/UI/EnchantOperateHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/EnchantResultHandler.cs | 305 + .../XMainClient/UI/EnchantResultHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/EncourageShowInfo.cs | 112 + .../XMainClient/UI/EncourageShowInfo.cs.meta | 12 + .../XMainClient/UI/EndlessAbyssBehaviour.cs | 39 + .../XMainClient/UI/EndlessAbyssBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/EndlessAbyssDlg.cs | 211 + .../Scripts/XMainClient/UI/EndlessAbyssDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/EnemyInfoUpdater.cs | 6 + .../XMainClient/UI/EnemyInfoUpdater.cs.meta | 12 + .../Scripts/XMainClient/UI/EnhanceMasterHandler.cs | 158 + .../XMainClient/UI/EnhanceMasterHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/EnhanceView.cs | 772 +++ .../Scripts/XMainClient/UI/EnhanceView.cs.meta | 12 + .../Scripts/XMainClient/UI/EquipCreateDlg.cs | 143 + .../Scripts/XMainClient/UI/EquipCreateDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/EquipFusionHandler.cs | 732 +++ .../XMainClient/UI/EquipFusionHandler.cs.meta | 12 + .../XMainClient/UI/EquipFusionSelectHandler.cs | 148 + .../UI/EquipFusionSelectHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/EquipSetItemBaseView.cs | 266 + .../XMainClient/UI/EquipSetItemBaseView.cs.meta | 12 + .../Scripts/XMainClient/UI/EquipSetItemView.cs | 51 + .../XMainClient/UI/EquipSetItemView.cs.meta | 12 + .../Scripts/XMainClient/UI/EquipTooltipDlg.cs | 669 ++ .../Scripts/XMainClient/UI/EquipTooltipDlg.cs.meta | 12 + .../XMainClient/UI/EquipTooltipDlgBehaviour.cs | 16 + .../UI/EquipTooltipDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/EquipUpgradeHandler.cs | 330 + .../XMainClient/UI/EquipUpgradeHandler.cs.meta | 12 + .../XMainClient/UI/ExchangeItemBehaviour.cs | 94 + .../XMainClient/UI/ExchangeItemBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/ExchangeItemDlg.cs | 367 ++ .../Scripts/XMainClient/UI/ExchangeItemDlg.cs.meta | 12 + .../XMainClient/UI/FashionAttrTotalHandler.cs | 233 + .../XMainClient/UI/FashionAttrTotalHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/FashionBagHandler.cs | 356 ++ .../XMainClient/UI/FashionBagHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/FashionCollectionDlg.cs | 262 + .../XMainClient/UI/FashionCollectionDlg.cs.meta | 12 + .../UI/FashionCollectionDlgBehaviour.cs | 54 + .../UI/FashionCollectionDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/FashionComboBox.cs | 88 + .../Scripts/XMainClient/UI/FashionComboBox.cs.meta | 12 + .../XMainClient/UI/FashionHairToolTipBehaviour.cs | 12 + .../UI/FashionHairToolTipBehaviour.cs.meta | 12 + .../XMainClient/UI/FashionHairToolTipDlg.cs | 137 + .../XMainClient/UI/FashionHairToolTipDlg.cs.meta | 12 + .../XMainClient/UI/FashionStorageAttributeFrame.cs | 171 + .../UI/FashionStorageAttributeFrame.cs.meta | 12 + .../XMainClient/UI/FashionStorageBehaviour.cs | 91 + .../XMainClient/UI/FashionStorageBehaviour.cs.meta | 12 + .../UI/FashionStorageButtonGoFashion.cs | 29 + .../UI/FashionStorageButtonGoFashion.cs.meta | 12 + .../XMainClient/UI/FashionStorageColouring.cs | 30 + .../XMainClient/UI/FashionStorageColouring.cs.meta | 12 + .../Scripts/XMainClient/UI/FashionStorageDlg.cs | 632 ++ .../XMainClient/UI/FashionStorageDlg.cs.meta | 12 + .../XMainClient/UI/FashionStorageEffectFrame.cs | 203 + .../UI/FashionStorageEffectFrame.cs.meta | 12 + .../UI/FashionStorageEquipToolTipDlg.cs | 51 + .../UI/FashionStorageEquipToolTipDlg.cs.meta | 12 + .../UI/FashionStorageFashionHairToolTipDlg.cs | 65 + .../UI/FashionStorageFashionHairToolTipDlg.cs.meta | 12 + .../XMainClient/UI/FashionStorageFashionPutOn.cs | 62 + .../UI/FashionStorageFashionPutOn.cs.meta | 12 + .../UI/FashionStorageFashionPutOnSuit.cs | 95 + .../UI/FashionStorageFashionPutOnSuit.cs.meta | 12 + .../XMainClient/UI/FashionStorageFashionTakeOff.cs | 48 + .../UI/FashionStorageFashionTakeOff.cs.meta | 12 + .../UI/FashionStorageFashionToolTipDlg.cs | 203 + .../UI/FashionStorageFashionToolTipDlg.cs.meta | 12 + .../UI/FashionStorageFashtionTakeOffSuit.cs | 60 + .../UI/FashionStorageFashtionTakeOffSuit.cs.meta | 12 + .../XMainClient/UI/FashionStorageHairColorFrame.cs | 206 + .../UI/FashionStorageHairColorFrame.cs.meta | 12 + .../XMainClient/UI/FashionStorageTooltipBase.cs | 103 + .../UI/FashionStorageTooltipBase.cs.meta | 12 + .../Scripts/XMainClient/UI/FashionStorageType.cs | 11 + .../XMainClient/UI/FashionStorageType.cs.meta | 12 + .../XMainClient/UI/FashionStotageDisplayHandle.cs | 76 + .../UI/FashionStotageDisplayHandle.cs.meta | 12 + .../Scripts/XMainClient/UI/FashionTooltipDlg.cs | 297 + .../XMainClient/UI/FashionTooltipDlg.cs.meta | 12 + .../XMainClient/UI/FashionTooltipDlgBehaviour.cs | 12 + .../UI/FashionTooltipDlgBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/FeastHandler.cs | 287 + .../Scripts/XMainClient/UI/FeastHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/FindBackData.cs | 25 + .../Scripts/XMainClient/UI/FindBackData.cs.meta | 12 + .../Scripts/XMainClient/UI/FirstPassGhjcHandler.cs | 42 + .../XMainClient/UI/FirstPassGhjcHandler.cs.meta | 12 + .../XMainClient/UI/FirstPassGuindRankHandler.cs | 283 + .../UI/FirstPassGuindRankHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/FirstPassMainHandler.cs | 391 ++ .../XMainClient/UI/FirstPassMainHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/FirstPassMwcxHandler.cs | 25 + .../XMainClient/UI/FirstPassMwcxHandler.cs.meta | 12 + .../XMainClient/UI/FirstPassTeamInfoHandler.cs | 412 ++ .../UI/FirstPassTeamInfoHandler.cs.meta | 12 + .../XMainClient/UI/FlowerActivityHandler.cs | 82 + .../XMainClient/UI/FlowerActivityHandler.cs.meta | 12 + .../XMainClient/UI/ForgeAttrPreViewHandler.cs | 141 + .../XMainClient/UI/ForgeAttrPreViewHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/ForgeMainHandler.cs | 766 +++ .../XMainClient/UI/ForgeMainHandler.cs.meta | 12 + .../XMainClient/UI/FriendsWeddingHandler.cs | 477 ++ .../XMainClient/UI/FriendsWeddingHandler.cs.meta | 12 + .../UI/FriendsWeddingLevelUpBehaviour.cs | 41 + .../UI/FriendsWeddingLevelUpBehaviour.cs.meta | 12 + .../XMainClient/UI/FriendsWeddingLevelUpView.cs | 90 + .../UI/FriendsWeddingLevelUpView.cs.meta | 12 + .../UI/FriendsWeddingPrivilegeHandler.cs | 152 + .../UI/FriendsWeddingPrivilegeHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/FrozenSealHandler.cs | 365 ++ .../XMainClient/UI/FrozenSealHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/FrozenSealState.cs | 13 + .../Scripts/XMainClient/UI/FrozenSealState.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/FunctionDef.cs | 19 + .../Scripts/XMainClient/UI/FunctionDef.cs.meta | 12 + .../Scripts/XMainClient/UI/GVGBattleMemberBase.cs | 317 + .../XMainClient/UI/GVGBattleMemberBase.cs.meta | 12 + .../Scripts/XMainClient/UI/GVGBattlePrepareBase.cs | 599 ++ .../XMainClient/UI/GVGBattlePrepareBase.cs.meta | 12 + .../XMainClient/UI/GVGBattlePrepareBehaviour.cs | 104 + .../UI/GVGBattlePrepareBehaviour.cs.meta | 12 + .../XMainClient/UI/GVGBattleRankFrameBase.cs | 133 + .../XMainClient/UI/GVGBattleRankFrameBase.cs.meta | 12 + .../XMainClient/UI/GVGCombatGuildDisplay.cs | 157 + .../XMainClient/UI/GVGCombatGuildDisplay.cs.meta | 12 + .../Scripts/XMainClient/UI/GVGCombatHandlerBase.cs | 272 + .../XMainClient/UI/GVGCombatHandlerBase.cs.meta | 12 + .../Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs | 116 + .../XMainClient/UI/GVGCombatInfoDisplay.cs.meta | 12 + .../Scripts/XMainClient/UI/GVGDuelHandlerBase.cs | 76 + .../XMainClient/UI/GVGDuelHandlerBase.cs.meta | 12 + .../Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs | 160 + .../XMainClient/UI/GVGDuelWrapDisplay.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/GVGHallBase.cs | 91 + .../Scripts/XMainClient/UI/GVGHallBase.cs.meta | 12 + .../Scripts/XMainClient/UI/GameCommunityHandler.cs | 358 ++ .../XMainClient/UI/GameCommunityHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/GameSystem.meta | 9 + .../UI/GameSystem/SkillDlgPromoteHandler.cs | 783 +++ .../UI/GameSystem/SkillDlgPromoteHandler.cs.meta | 12 + .../XMainClient/UI/GuildArenaBattleDuelInfo.cs | 40 + .../UI/GuildArenaBattleDuelInfo.cs.meta | 12 + .../XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs | 58 + .../UI/GuildArenaBattleDuelTeamInfo.cs.meta | 12 + .../XMainClient/UI/GuildArenaCombatHandle.cs | 264 + .../XMainClient/UI/GuildArenaCombatHandle.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildArenaCombatInfo.cs | 128 + .../XMainClient/UI/GuildArenaCombatInfo.cs.meta | 12 + .../XMainClient/UI/GuildArenaDefeatBehaviour.cs | 41 + .../UI/GuildArenaDefeatBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs | 234 + .../XMainClient/UI/GuildArenaDefeatDlg.cs.meta | 12 + .../UI/GuildArenaDuelFinalResultBehaviour.cs | 25 + .../UI/GuildArenaDuelFinalResultBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildArenaDuelFinalResultDlg.cs | 158 + .../UI/GuildArenaDuelFinalResultDlg.cs.meta | 12 + .../XMainClient/UI/GuildArenaDuelHandler.cs | 73 + .../XMainClient/UI/GuildArenaDuelHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildArenaDuelInfo.cs | 137 + .../XMainClient/UI/GuildArenaDuelInfo.cs.meta | 12 + .../XMainClient/UI/GuildArenaDuelResultInfo.cs | 94 + .../UI/GuildArenaDuelResultInfo.cs.meta | 12 + .../UI/GuildArenaDuelRoundResultBehaviour.cs | 35 + .../UI/GuildArenaDuelRoundResultBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildArenaDuelRoundResultDlg.cs | 202 + .../UI/GuildArenaDuelRoundResultDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildArenaGuildInfo.cs | 88 + .../XMainClient/UI/GuildArenaGuildInfo.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildArenaHallHandle.cs | 222 + .../XMainClient/UI/GuildArenaHallHandle.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildArenaInspireCD.cs | 81 + .../XMainClient/UI/GuildArenaInspireCD.cs.meta | 12 + .../XMainClient/UI/GuildArenaRankBehaviour.cs | 26 + .../XMainClient/UI/GuildArenaRankBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildArenaRankDlg.cs | 114 + .../XMainClient/UI/GuildArenaRankDlg.cs.meta | 12 + .../XMainClient/UI/GuildArenadDuelFinalInfo.cs | 41 + .../UI/GuildArenadDuelFinalInfo.cs.meta | 12 + .../XMainClient/UI/GuildBuffOperationHandler.cs | 508 ++ .../UI/GuildBuffOperationHandler.cs.meta | 12 + .../XMainClient/UI/GuildCollectRewardBehaviour.cs | 32 + .../UI/GuildCollectRewardBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildCollectRewardDlg.cs | 161 + .../XMainClient/UI/GuildCollectRewardDlg.cs.meta | 12 + .../UI/GuildDragonChallengeResultView.cs | 66 + .../UI/GuildDragonChallengeResultView.cs.meta | 12 + .../XMainClient/UI/GuildFiexdRedPackageView.cs | 149 + .../UI/GuildFiexdRedPackageView.cs.meta | 12 + .../XMainClient/UI/GuildInheritBehaviour.cs | 28 + .../XMainClient/UI/GuildInheritBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildInheritDlg.cs | 114 + .../Scripts/XMainClient/UI/GuildInheritDlg.cs.meta | 12 + .../XMainClient/UI/GuildInheritProcessBehaviour.cs | 22 + .../UI/GuildInheritProcessBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildInheritProcessDlg.cs | 90 + .../XMainClient/UI/GuildInheritProcessDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildJockerMatchView.cs | 17 + .../XMainClient/UI/GuildJockerMatchView.cs.meta | 12 + .../XMainClient/UI/GuildMiniReportHandler.cs | 373 ++ .../XMainClient/UI/GuildMiniReportHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildMiniReportItem.cs | 29 + .../XMainClient/UI/GuildMiniReportItem.cs.meta | 12 + .../XMainClient/UI/GuildPositionBehaviour.cs | 25 + .../XMainClient/UI/GuildPositionBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildPositionMenu.cs | 128 + .../XMainClient/UI/GuildPositionMenu.cs.meta | 12 + .../XMainClient/UI/GuildQualifierBehavior.cs | 72 + .../XMainClient/UI/GuildQualifierBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildQualifierDlg.cs | 362 ++ .../XMainClient/UI/GuildQualifierDlg.cs.meta | 12 + .../XMainClient/UI/GuildQualifierHandler.cs | 128 + .../XMainClient/UI/GuildQualifierHandler.cs.meta | 12 + .../XMainClient/UI/GuildSalaryDescHandler.cs | 133 + .../XMainClient/UI/GuildSalaryDescHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildSalayBehavior.cs | 103 + .../XMainClient/UI/GuildSalayBehavior.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs | 349 ++ .../Scripts/XMainClient/UI/GuildSalayDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/GuildScoreInfo.cs | 53 + .../Scripts/XMainClient/UI/GuildScoreInfo.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryBahaviour.cs | 31 + .../XMainClient/UI/GuildTerritoryBahaviour.cs.meta | 12 + .../UI/GuildTerritoryDeclareBehaviour.cs | 49 + .../UI/GuildTerritoryDeclareBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryDeclareDlg.cs | 379 ++ .../UI/GuildTerritoryDeclareDlg.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryDisplay.cs | 106 + .../XMainClient/UI/GuildTerritoryDisplay.cs.meta | 12 + .../UI/GuildTerritoryLeagueBehaviour.cs | 28 + .../UI/GuildTerritoryLeagueBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryLeagueDlg.cs | 105 + .../XMainClient/UI/GuildTerritoryLeagueDlg.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryMainBehaviour.cs | 50 + .../UI/GuildTerritoryMainBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryMainDlg.cs | 155 + .../XMainClient/UI/GuildTerritoryMainDlg.cs.meta | 12 + .../UI/GuildTerritoryMessageBehaviour.cs | 25 + .../UI/GuildTerritoryMessageBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryMessageDlg.cs | 105 + .../UI/GuildTerritoryMessageDlg.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryReportDlg.cs | 185 + .../XMainClient/UI/GuildTerritoryReportDlg.cs.meta | 12 + .../UI/GuildTerritoryRewardBehaviour.cs | 30 + .../UI/GuildTerritoryRewardBehaviour.cs.meta | 12 + .../XMainClient/UI/GuildTerritoryRewardDlg.cs | 107 + .../XMainClient/UI/GuildTerritoryRewardDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/HallFameBehavior.cs | 52 + .../XMainClient/UI/HallFameBehavior.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/HallFameDlg.cs | 542 ++ .../Scripts/XMainClient/UI/HallFameDlg.cs.meta | 12 + .../XMainClient/UI/HallFameShareBehavior.cs | 42 + .../XMainClient/UI/HallFameShareBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/HallFameShareDlg.cs | 192 + .../XMainClient/UI/HallFameShareDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/HeroAttrBehaviour.cs | 62 + .../XMainClient/UI/HeroAttrBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs | 270 + .../Scripts/XMainClient/UI/HeroAttrDlg.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs | 613 ++ .../Scripts/XMainClient/UI/HeroBattleDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/HeroBattleHandler.cs | 655 ++ .../XMainClient/UI/HeroBattleHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/HeroBattleMVPDlg.cs | 130 + .../XMainClient/UI/HeroBattleMVPDlg.cs.meta | 12 + .../XMainClient/UI/HeroBattleSkillHandler.cs | 718 +++ .../XMainClient/UI/HeroBattleSkillHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/HeroBattleTeam.cs | 54 + .../Scripts/XMainClient/UI/HeroBattleTeam.cs.meta | 12 + .../XMainClient/UI/HeroBattleTeamHandler.cs | 144 + .../XMainClient/UI/HeroBattleTeamHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/HeroSkillType.cs | 11 + .../Scripts/XMainClient/UI/HeroSkillType.cs.meta | 12 + .../Scripts/XMainClient/UI/HolidayHandler.cs | 134 + .../Scripts/XMainClient/UI/HolidayHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/HomeCropInfoHandler.cs | 767 +++ .../XMainClient/UI/HomeCropInfoHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/HomeFishingBehaviour.cs | 99 + .../XMainClient/UI/HomeFishingBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/HomeFishingDlg.cs | 445 ++ .../Scripts/XMainClient/UI/HomeFishingDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/HomeFriendHandler.cs | 245 + .../XMainClient/UI/HomeFriendHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/HomeHandler.cs | 171 + .../Scripts/XMainClient/UI/HomeHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/HomeMainDlg.cs | 129 + .../Scripts/XMainClient/UI/HomeMainDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/HomePlantBehaviour.cs | 20 + .../XMainClient/UI/HomePlantBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/HomePlantDlg.cs | 271 + .../Scripts/XMainClient/UI/HomePlantDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/HomeSeedBagHandler.cs | 385 ++ .../XMainClient/UI/HomeSeedBagHandler.cs.meta | 12 + .../XMainClient/UI/IAttrTooltipDlgHandler.cs | 34 + .../XMainClient/UI/IAttrTooltipDlgHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/IGVGBattleMember.cs | 20 + .../XMainClient/UI/IGVGBattleMember.cs.meta | 12 + .../Scripts/XMainClient/UI/IGVGBattlePrepare.cs | 24 + .../XMainClient/UI/IGVGBattlePrepare.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/IRankSource.cs | 12 + .../Scripts/XMainClient/UI/IRankSource.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/IRankView.cs | 15 + .../Scripts/XMainClient/UI/IRankView.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/ITooltipDlg.cs | 14 + .../Scripts/XMainClient/UI/ITooltipDlg.cs.meta | 12 + .../XMainClient/UI/IWorldBossBattleSource.cs | 17 + .../XMainClient/UI/IWorldBossBattleSource.cs.meta | 12 + .../Scripts/XMainClient/UI/IWorldBossBattleView.cs | 13 + .../XMainClient/UI/IWorldBossBattleView.cs.meta | 12 + .../Scripts/XMainClient/UI/InnerGVGBattleMember.cs | 16 + .../XMainClient/UI/InnerGVGBattleMember.cs.meta | 12 + .../UI/InnerGVGBattlePrepareBehaviour.cs | 12 + .../UI/InnerGVGBattlePrepareBehaviour.cs.meta | 12 + .../XMainClient/UI/InnerGVGBattlePrepareView.cs | 29 + .../UI/InnerGVGBattlePrepareView.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs | 410 ++ .../Scripts/XMainClient/UI/ItemAccessDlg.cs.meta | 12 + .../XMainClient/UI/ItemAccessDlgBehaviour.cs | 34 + .../XMainClient/UI/ItemAccessDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/ItemIconListDlg.cs | 148 + .../Scripts/XMainClient/UI/ItemIconListDlg.cs.meta | 12 + .../XMainClient/UI/ItemIconListDlgBehaviour.cs | 49 + .../UI/ItemIconListDlgBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs | 356 ++ .../Scripts/XMainClient/UI/ItemSystemDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/ItemTooltipDlg.cs | 159 + .../Scripts/XMainClient/UI/ItemTooltipDlg.cs.meta | 12 + .../XMainClient/UI/ItemTooltipDlgBehaviour.cs | 12 + .../XMainClient/UI/ItemTooltipDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/ItemUseListDlg.cs | 107 + .../Scripts/XMainClient/UI/ItemUseListDlg.cs.meta | 12 + .../XMainClient/UI/ItemUseListDlgBehaviour.cs | 34 + .../XMainClient/UI/ItemUseListDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/JadeBagHandler.cs | 172 + .../Scripts/XMainClient/UI/JadeBagHandler.cs.meta | 12 + .../XMainClient/UI/JadeComposeFrameHandler.cs | 481 ++ .../XMainClient/UI/JadeComposeFrameHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/JadeComposeHandler.cs | 329 + .../XMainClient/UI/JadeComposeHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/JadeEquipHandler.cs | 651 ++ .../XMainClient/UI/JadeEquipHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/JadeTooltipDlg.cs | 96 + .../Scripts/XMainClient/UI/JadeTooltipDlg.cs.meta | 12 + .../XMainClient/UI/JokerKingMainBehavior.cs | 58 + .../XMainClient/UI/JokerKingMainBehavior.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/KillInfoMode.cs | 10 + .../Scripts/XMainClient/UI/KillInfoMode.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs | 161 + .../Scripts/XMainClient/UI/LoadingDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/LoadingDlgBehaviour.cs | 37 + .../XMainClient/UI/LoadingDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/LoginWindowBehaviour.cs | 117 + .../XMainClient/UI/LoginWindowBehaviour.cs.meta | 12 + .../XMainClient/UI/LoverLivenessRecordItem.cs | 41 + .../XMainClient/UI/LoverLivenessRecordItem.cs.meta | 12 + .../XMainClient/UI/LoversLivenessBehaviour.cs | 53 + .../XMainClient/UI/LoversLivenessBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/LoversLivenessDlg.cs | 254 + .../XMainClient/UI/LoversLivenessDlg.cs.meta | 12 + .../XMainClient/UI/LuckyTurntableFrameHandler.cs | 493 ++ .../UI/LuckyTurntableFrameHandler.cs.meta | 12 + .../UI/LuckyTurntableRecordBehaviour.cs | 9 + .../UI/LuckyTurntableRecordBehaviour.cs.meta | 12 + .../XMainClient/UI/LuckyTurntableRecordView.cs | 126 + .../UI/LuckyTurntableRecordView.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/MailSystemDlg.cs | 94 + .../Scripts/XMainClient/UI/MailSystemDlg.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/MallSystemDlg.cs | 262 + .../Scripts/XMainClient/UI/MallSystemDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/MilitaryRankDlg.cs | 350 ++ .../Scripts/XMainClient/UI/MilitaryRankDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/MiniMapElement.cs | 20 + .../Scripts/XMainClient/UI/MiniMapElement.cs.meta | 12 + .../Scripts/XMainClient/UI/MobaActivityDlg.cs | 78 + .../Scripts/XMainClient/UI/MobaActivityDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/MobaBattleHandler.cs | 534 ++ .../XMainClient/UI/MobaBattleHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/MobaBehaviour.cs | 16 + .../Scripts/XMainClient/UI/MobaBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs | 62 + .../Scripts/XMainClient/UI/MobaEndDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/MobaHeadCondition.cs | 185 + .../XMainClient/UI/MobaHeadCondition.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs | 250 + .../Assets/Scripts/XMainClient/UI/ModalDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs | 91 + .../Scripts/XMainClient/UI/ModalDlg2.cs.meta | 12 + .../Scripts/XMainClient/UI/ModalDlg2Behaviour.cs | 25 + .../XMainClient/UI/ModalDlg2Behaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/ModalDlgBehaviour.cs | 58 + .../XMainClient/UI/ModalDlgBehaviour.cs.meta | 12 + .../XMainClient/UI/ModalSettingNumberDlg.cs | 164 + .../XMainClient/UI/ModalSettingNumberDlg.cs.meta | 12 + .../UI/ModalSettingNumberDlgBehaviour.cs | 38 + .../UI/ModalSettingNumberDlgBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs | 148 + .../Scripts/XMainClient/UI/ModalThreeDlg.cs.meta | 12 + .../XMainClient/UI/ModalThreeDlgBehaviour.cs | 36 + .../XMainClient/UI/ModalThreeDlgBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/MoneyTreeData.cs | 22 + .../Scripts/XMainClient/UI/MoneyTreeData.cs.meta | 12 + .../Scripts/XMainClient/UI/MyBattleKillInfo.cs | 17 + .../XMainClient/UI/MyBattleKillInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/MyHomeHandler.cs | 380 ++ .../Scripts/XMainClient/UI/MyHomeHandler.cs.meta | 12 + .../XMainClient/UI/NestStarRewardHandler.cs | 120 + .../XMainClient/UI/NestStarRewardHandler.cs.meta | 12 + .../XMainClient/UI/OldFriendsReplayHandler.cs | 80 + .../XMainClient/UI/OldFriendsReplayHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/PPTBehaviour.cs | 22 + .../Scripts/XMainClient/UI/PPTBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs | 62 + .../Scripts/XMainClient/UI/PPTCheckMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs | 176 + .../Assets/Scripts/XMainClient/UI/PPTDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/PVPActivityDlg.cs | 292 + .../Scripts/XMainClient/UI/PVPActivityDlg.cs.meta | 12 + .../XMainClient/UI/PairsPetInviteBehaviour.cs | 25 + .../XMainClient/UI/PairsPetInviteBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/PairsPetInviteView.cs | 203 + .../XMainClient/UI/PairsPetInviteView.cs.meta | 12 + .../Scripts/XMainClient/UI/PairsPetSetHandler.cs | 136 + .../XMainClient/UI/PairsPetSetHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/PandoraBehaviour.cs | 55 + .../XMainClient/UI/PandoraBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/PandoraSDKHandler.cs | 65 + .../XMainClient/UI/PandoraSDKHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/PandoraView.cs | 442 ++ .../Scripts/XMainClient/UI/PandoraView.cs.meta | 12 + .../XMainClient/UI/PartnerLivenessBehaviour.cs | 53 + .../UI/PartnerLivenessBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/PartnerLivenessDlg.cs | 278 + .../XMainClient/UI/PartnerLivenessDlg.cs.meta | 12 + .../XMainClient/UI/PartnerLivenessRecordItem.cs | 41 + .../UI/PartnerLivenessRecordItem.cs.meta | 12 + .../Scripts/XMainClient/UI/PartnerMainHandler.cs | 554 ++ .../XMainClient/UI/PartnerMainHandler.cs.meta | 12 + .../XMainClient/UI/PartnerShopRecordsHandler.cs | 147 + .../UI/PartnerShopRecordsHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/PressTipsBehaviour.cs | 20 + .../XMainClient/UI/PressTipsBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/PressTipsDlg.cs | 90 + .../Scripts/XMainClient/UI/PressTipsDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/ProfessionChangeDlg.cs | 304 + .../XMainClient/UI/ProfessionChangeDlg.cs.meta | 12 + .../XMainClient/UI/ProfressionTrialsHandler.cs | 246 + .../UI/ProfressionTrialsHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/QAAudioPriority.cs | 11 + .../Scripts/XMainClient/UI/QAAudioPriority.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/QteUIType.cs | 11 + .../Scripts/XMainClient/UI/QteUIType.cs.meta | 12 + .../XMainClient/UI/QualityFilterCallback.cs | 6 + .../XMainClient/UI/QualityFilterCallback.cs.meta | 12 + .../Scripts/XMainClient/UI/QualityFilterHandler.cs | 94 + .../XMainClient/UI/QualityFilterHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs | 188 + .../Scripts/XMainClient/UI/QuickReplyDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/ReceiveEnergyDlg.cs | 314 + .../XMainClient/UI/ReceiveEnergyDlg.cs.meta | 12 + .../XMainClient/UI/ReceiveEnergyPanelModelView.cs | 40 + .../UI/ReceiveEnergyPanelModelView.cs.meta | 12 + .../Scripts/XMainClient/UI/RecycleItemBagView.cs | 126 + .../XMainClient/UI/RecycleItemBagView.cs.meta | 12 + .../XMainClient/UI/RecycleItemOperateView.cs | 262 + .../XMainClient/UI/RecycleItemOperateView.cs.meta | 12 + .../Scripts/XMainClient/UI/RecycleSystemDlg.cs | 128 + .../XMainClient/UI/RecycleSystemDlg.cs.meta | 12 + .../XMainClient/UI/RefinedReplaceHandler.cs | 246 + .../XMainClient/UI/RefinedReplaceHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/RenameBehaviour.cs | 35 + .../Scripts/XMainClient/UI/RenameBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs | 266 + .../Scripts/XMainClient/UI/RenameDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs | 10 + .../Scripts/XMainClient/UI/ReportMsg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/ReportNode.cs | 19 + .../Scripts/XMainClient/UI/ReportNode.cs.meta | 12 + .../Scripts/XMainClient/UI/RequestBehaviour.cs | 25 + .../XMainClient/UI/RequestBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs | 114 + .../Scripts/XMainClient/UI/RequestDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs | 127 + .../Scripts/XMainClient/UI/ReviveDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/ReviveDlgBehaviour.cs | 39 + .../XMainClient/UI/ReviveDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/RewardSystemDlg.cs | 136 + .../Scripts/XMainClient/UI/RewardSystemDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/RewdAnimBehaviour.cs | 30 + .../XMainClient/UI/RewdAnimBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs | 261 + .../Scripts/XMainClient/UI/RewdAnimDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs | 11 + .../Scripts/XMainClient/UI/RoundFlag.cs.meta | 12 + .../XMainClient/UI/ScreenShotShareBehaviour.cs | 198 + .../UI/ScreenShotShareBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/ScreenShotShareView.cs | 1116 ++++ .../XMainClient/UI/ScreenShotShareView.cs.meta | 12 + .../XMainClient/UI/SelectCharWindowBehaviour.cs | 130 + .../UI/SelectCharWindowBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/SevenLoginBehaviour.cs | 51 + .../XMainClient/UI/SevenLoginBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs | 411 ++ .../Scripts/XMainClient/UI/SevenLoginDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/SevenLoginWrapItem.cs | 62 + .../XMainClient/UI/SevenLoginWrapItem.cs.meta | 12 + .../Scripts/XMainClient/UI/SmeltMainHandler.cs | 747 +++ .../XMainClient/UI/SmeltMainHandler.cs.meta | 12 + .../XMainClient/UI/SpectateLevelRewardView.cs | 300 + .../XMainClient/UI/SpectateLevelRewardView.cs.meta | 12 + .../XMainClient/UI/SpectateSceneBehaviour.cs | 123 + .../XMainClient/UI/SpectateSceneBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/SpectateSceneView.cs | 1277 ++++ .../XMainClient/UI/SpectateSceneView.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/SpectateView.cs | 666 ++ .../Scripts/XMainClient/UI/SpectateView.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteEggLotteryType.cs | 12 + .../XMainClient/UI/SpriteEggLotteryType.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteFightFrame.cs | 218 + .../XMainClient/UI/SpriteFightFrame.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteLotteryHandler.cs | 374 ++ .../XMainClient/UI/SpriteLotteryHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteMainFrame.cs | 455 ++ .../Scripts/XMainClient/UI/SpriteMainFrame.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteResolveFrame.cs | 297 + .../XMainClient/UI/SpriteResolveFrame.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteSelectHandler.cs | 154 + .../XMainClient/UI/SpriteSelectHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteShopHandler.cs | 217 + .../XMainClient/UI/SpriteShopHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteStarUpWindow.cs | 596 ++ .../XMainClient/UI/SpriteStarUpWindow.cs.meta | 12 + .../Scripts/XMainClient/UI/SpriteSystemDlg.cs | 211 + .../Scripts/XMainClient/UI/SpriteSystemDlg.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/SpriteWindow.cs | 11 + .../Scripts/XMainClient/UI/SpriteWindow.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs | 156 + .../Scripts/XMainClient/UI/SuperRiskDlg.cs.meta | 12 + .../XMainClient/UI/SuperRiskDlgBehaviour.cs | 19 + .../XMainClient/UI/SuperRiskDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/SuperRiskGameHandler.cs | 1400 +++++ .../XMainClient/UI/SuperRiskGameHandler.cs.meta | 12 + .../XMainClient/UI/SuperRiskOnlineBoxHandler.cs | 96 + .../UI/SuperRiskOnlineBoxHandler.cs.meta | 12 + .../XMainClient/UI/SuperRiskOpenboxHandler.cs | 359 ++ .../XMainClient/UI/SuperRiskOpenboxHandler.cs.meta | 12 + .../XMainClient/UI/SuperRiskSelectMapHandler.cs | 206 + .../UI/SuperRiskSelectMapHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/SystemHelpBehaviour.cs | 42 + .../XMainClient/UI/SystemHelpBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs | 95 + .../Scripts/XMainClient/UI/SystemHelpDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/SystemRewardTypeMrg.cs | 14 + .../XMainClient/UI/SystemRewardTypeMrg.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs | 193 + .../Scripts/XMainClient/UI/TaJieHelpDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs | 240 + .../Scripts/XMainClient/UI/TabDlgBase.cs.meta | 12 + .../Scripts/XMainClient/UI/TabDlgBehaviour.cs | 25 + .../Scripts/XMainClient/UI/TabDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/TheExpBehaviour.cs | 125 + .../Scripts/XMainClient/UI/TheExpBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/TheExpView.cs | 704 +++ .../Scripts/XMainClient/UI/TheExpView.cs.meta | 12 + .../Scripts/XMainClient/UI/TitanBarBehaviour.cs | 23 + .../XMainClient/UI/TitanBarBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/TitanbarView.cs | 123 + .../Scripts/XMainClient/UI/TitanbarView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs | 219 + .../Assets/Scripts/XMainClient/UI/TitleDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/TitleDlgBehaviour.cs | 45 + .../XMainClient/UI/TitleDlgBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/TitleShareBehaviour.cs | 32 + .../XMainClient/UI/TitleShareBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/TitleShareDlg.cs | 134 + .../Scripts/XMainClient/UI/TitleShareDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs | 946 +++ .../Scripts/XMainClient/UI/TooltipDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/TooltipDlgBehaviour.cs | 128 + .../XMainClient/UI/TooltipDlgBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/TooltipParam.cs | 37 + .../Scripts/XMainClient/UI/TooltipParam.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/UICommon.meta | 9 + .../Scripts/XMainClient/UI/UICommon/DlgBase.cs | 750 +++ .../XMainClient/UI/UICommon/DlgBase.cs.meta | 12 + .../XMainClient/UI/UICommon/DlgBehaviourBase.cs | 130 + .../UI/UICommon/DlgBehaviourBase.cs.meta | 12 + .../XMainClient/UI/UICommon/TabHandleBase.cs | 60 + .../XMainClient/UI/UICommon/TabHandleBase.cs.meta | 12 + .../Scripts/XMainClient/UI/UICommon/UIManager.cs | 586 ++ .../XMainClient/UI/UICommon/UIManager.cs.meta | 12 + .../XMainClient/UI/UICommon/VirtualJoystick.cs | 139 + .../UI/UICommon/VirtualJoystick.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/UiUtility.cs | 2850 +++++++++ .../Scripts/XMainClient/UI/UiUtility.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs | 17 + .../Scripts/XMainClient/UI/VoiceQAAudio.cs.meta | 12 + .../Scripts/XMainClient/UI/VoiceQATipsType.cs | 13 + .../Scripts/XMainClient/UI/VoiceQATipsType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/WebView.cs | 439 ++ .../Assets/Scripts/XMainClient/UI/WebView.cs.meta | 12 + .../Scripts/XMainClient/UI/WebViewBehaviour.cs | 56 + .../XMainClient/UI/WebViewBehaviour.cs.meta | 12 + .../XMainClient/UI/WeddingEnterApplyBehaviour.cs | 42 + .../UI/WeddingEnterApplyBehaviour.cs.meta | 12 + .../XMainClient/UI/WeddingEnterApplyView.cs | 290 + .../XMainClient/UI/WeddingEnterApplyView.cs.meta | 12 + .../Scripts/XMainClient/UI/WeddingInviteTab.cs | 12 + .../XMainClient/UI/WeddingInviteTab.cs.meta | 12 + .../Scripts/XMainClient/UI/WeddingSceneHandler.cs | 581 ++ .../XMainClient/UI/WeddingSceneHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/WeekNestDlg.cs | 225 + .../Scripts/XMainClient/UI/WeekNestDlg.cs.meta | 12 + .../XMainClient/UI/WeekShareRewardHandler.cs | 129 + .../XMainClient/UI/WeekShareRewardHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/WeekendPartyHandler.cs | 98 + .../XMainClient/UI/WeekendPartyHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/WeeknestBehaviour.cs | 48 + .../XMainClient/UI/WeeknestBehaviour.cs.meta | 12 + .../XMainClient/UI/WelfareGrowthFundItem.cs | 158 + .../XMainClient/UI/WelfareGrowthFundItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XAchieveView.cs | 435 ++ .../Scripts/XMainClient/UI/XAchieveView.cs.meta | 12 + .../XMainClient/UI/XActivityInviteBehavior.cs | 39 + .../XMainClient/UI/XActivityInviteBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/XActivityInviteView.cs | 439 ++ .../XMainClient/UI/XActivityInviteView.cs.meta | 12 + .../Scripts/XMainClient/UI/XBackFlowMallHandler.cs | 209 + .../XMainClient/UI/XBackFlowMallHandler.cs.meta | 12 + .../XMainClient/UI/XBackFlowPandoraSDKHandler.cs | 65 + .../UI/XBackFlowPandoraSDKHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XBattleEnemyInfo.cs | 488 ++ .../XMainClient/UI/XBattleEnemyInfo.cs.meta | 12 + .../XMainClient/UI/XBattleEnemyInfoHandler.cs | 387 ++ .../XMainClient/UI/XBattleEnemyInfoHandler.cs.meta | 12 + .../XMainClient/UI/XBattleOptionsHandler.cs | 45 + .../XMainClient/UI/XBattleOptionsHandler.cs.meta | 12 + .../XMainClient/UI/XBattleTeamTowerHandler.cs | 131 + .../XMainClient/UI/XBattleTeamTowerHandler.cs.meta | 12 + .../XMainClient/UI/XBossRefreshAnimHander.cs | 294 + .../XMainClient/UI/XBossRefreshAnimHander.cs.meta | 12 + .../Scripts/XMainClient/UI/XBossRewardDlg.cs | 87 + .../Scripts/XMainClient/UI/XBossRewardDlg.cs.meta | 12 + .../XMainClient/UI/XBriefLevelupBehaviour.cs | 25 + .../XMainClient/UI/XBriefLevelupBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XBriefLevelupView.cs | 362 ++ .../XMainClient/UI/XBriefLevelupView.cs.meta | 12 + .../XMainClient/UI/XBriefStrengthenBehaviour.cs | 28 + .../UI/XBriefStrengthenBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XBriefStrengthenView.cs | 124 + .../XMainClient/UI/XBriefStrengthenView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs | 186 + .../Scripts/XMainClient/UI/XBuffIcon.cs.meta | 12 + .../Scripts/XMainClient/UI/XBuffMonitorHandler.cs | 97 + .../XMainClient/UI/XBuffMonitorHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XBuyCountBehaviour.cs | 32 + .../XMainClient/UI/XBuyCountBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XBuyCountView.cs | 106 + .../Scripts/XMainClient/UI/XBuyCountView.cs.meta | 12 + .../Scripts/XMainClient/UI/XCampDuelMainHandler.cs | 594 ++ .../XMainClient/UI/XCampDuelMainHandler.cs.meta | 12 + .../XMainClient/UI/XCampDuelPointRewardHandler.cs | 106 + .../UI/XCampDuelPointRewardHandler.cs.meta | 12 + .../XMainClient/UI/XCampDuelRankRewardHandler.cs | 129 + .../UI/XCampDuelRankRewardHandler.cs.meta | 12 + .../XMainClient/UI/XCharacterCommonMenuView.cs | 700 +++ .../UI/XCharacterCommonMenuView.cs.meta | 12 + .../XMainClient/UI/XCommonHelpTipBehaviour.cs | 25 + .../XMainClient/UI/XCommonHelpTipBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XCommonHelpTipView.cs | 126 + .../XMainClient/UI/XCommonHelpTipView.cs.meta | 12 + .../Scripts/XMainClient/UI/XContentMailView.cs | 238 + .../XMainClient/UI/XContentMailView.cs.meta | 12 + .../Scripts/XMainClient/UI/XDesignationView.cs | 536 ++ .../XMainClient/UI/XDesignationView.cs.meta | 12 + .../UI/XDragonGuildApproveSettingView.cs | 63 + .../UI/XDragonGuildApproveSettingView.cs.meta | 12 + .../XMainClient/UI/XDragonGuildTaskBehaviour.cs | 56 + .../UI/XDragonGuildTaskBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XDragonGuildTaskView.cs | 272 + .../XMainClient/UI/XDragonGuildTaskView.cs.meta | 12 + .../XMainClient/UI/XDragonHistoryHandler.cs | 270 + .../XMainClient/UI/XDragonHistoryHandler.cs.meta | 12 + .../XMainClient/UI/XDragonPartnerHandler.cs | 147 + .../XMainClient/UI/XDragonPartnerHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XDragonRecordHandler.cs | 286 + .../XMainClient/UI/XDragonRecordHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XDragonRwdHandler.cs | 189 + .../XMainClient/UI/XDragonRwdHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XDramaOperate.cs | 51 + .../Scripts/XMainClient/UI/XDramaOperate.cs.meta | 12 + .../Scripts/XMainClient/UI/XDramaOperateButton.cs | 36 + .../XMainClient/UI/XDramaOperateButton.cs.meta | 12 + .../Scripts/XMainClient/UI/XDramaOperateList.cs | 34 + .../XMainClient/UI/XDramaOperateList.cs.meta | 12 + .../Scripts/XMainClient/UI/XDramaOperateParam.cs | 158 + .../XMainClient/UI/XDramaOperateParam.cs.meta | 12 + .../XMainClient/UI/XFPStrengthenBehaviour.cs | 38 + .../XMainClient/UI/XFPStrengthenBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XFavorParam.cs | 38 + .../Scripts/XMainClient/UI/XFavorParam.cs.meta | 12 + .../Scripts/XMainClient/UI/XFlowerReplyBehavior.cs | 47 + .../XMainClient/UI/XFlowerReplyBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/XFlowerReplyView.cs | 219 + .../XMainClient/UI/XFlowerReplyView.cs.meta | 12 + .../Scripts/XMainClient/UI/XFpStrengthenView.cs | 469 ++ .../XMainClient/UI/XFpStrengthenView.cs.meta | 12 + .../XMainClient/UI/XFreeTeamLeagueMainBehavior.cs | 90 + .../UI/XFreeTeamLeagueMainBehavior.cs.meta | 12 + .../XMainClient/UI/XFreeTeamLeagueMainView.cs | 465 ++ .../XMainClient/UI/XFreeTeamLeagueMainView.cs.meta | 12 + .../Scripts/XMainClient/UI/XFriendsRankHandler.cs | 491 ++ .../XMainClient/UI/XFriendsRankHandler.cs.meta | 12 + .../XMainClient/UI/XFriendsViewAddBlockHandler.cs | 71 + .../UI/XFriendsViewAddBlockHandler.cs.meta | 12 + .../XMainClient/UI/XFriendsViewHintHandler.cs | 56 + .../XMainClient/UI/XFriendsViewHintHandler.cs.meta | 12 + .../UI/XFriendsViewReceiveGiftHandler.cs | 237 + .../UI/XFriendsViewReceiveGiftHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XGameSirBehaviour.cs | 25 + .../XMainClient/UI/XGameSirBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XGameSirView.cs | 256 + .../Scripts/XMainClient/UI/XGameSirView.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildApplyBehaviour.cs | 42 + .../XMainClient/UI/XGuildApplyBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildApplyView.cs | 142 + .../Scripts/XMainClient/UI/XGuildApplyView.cs.meta | 12 + .../XMainClient/UI/XGuildApproveBehaviour.cs | 44 + .../XMainClient/UI/XGuildApproveBehaviour.cs.meta | 12 + .../XMainClient/UI/XGuildApproveSettingView.cs | 63 + .../UI/XGuildApproveSettingView.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildApproveView.cs | 245 + .../XMainClient/UI/XGuildApproveView.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildArenaDlg.cs | 214 + .../Scripts/XMainClient/UI/XGuildArenaDlg.cs.meta | 12 + .../XMainClient/UI/XGuildBasicInfoDisplay.cs | 245 + .../XMainClient/UI/XGuildBasicInfoDisplay.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildBoonView.cs | 121 + .../Scripts/XMainClient/UI/XGuildBoonView.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildCreateView.cs | 186 + .../XMainClient/UI/XGuildCreateView.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildDragonView.cs | 492 ++ .../XMainClient/UI/XGuildDragonView.cs.meta | 12 + .../XMainClient/UI/XGuildEditAnnounceView.cs | 64 + .../XMainClient/UI/XGuildEditAnnounceView.cs.meta | 12 + .../XMainClient/UI/XGuildGrowthDonateBehavior.cs | 35 + .../UI/XGuildGrowthDonateBehavior.cs.meta | 12 + .../XMainClient/UI/XGuildGrowthEntranceBehavior.cs | 22 + .../UI/XGuildGrowthEntranceBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildHallBehaviour.cs | 163 + .../XMainClient/UI/XGuildHallBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildHallView.cs | 1137 ++++ .../Scripts/XMainClient/UI/XGuildHallView.cs.meta | 12 + .../XMainClient/UI/XGuildHuntDramaOperate.cs | 52 + .../XMainClient/UI/XGuildHuntDramaOperate.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildListBehaviour.cs | 54 + .../XMainClient/UI/XGuildListBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildListView.cs | 377 ++ .../Scripts/XMainClient/UI/XGuildListView.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XGuildLogView.cs | 88 + .../Scripts/XMainClient/UI/XGuildLogView.cs.meta | 12 + .../XMainClient/UI/XGuildMemberInfoDisplay.cs | 176 + .../XMainClient/UI/XGuildMemberInfoDisplay.cs.meta | 12 + .../XMainClient/UI/XGuildMembersBehaviour.cs | 27 + .../XMainClient/UI/XGuildMembersBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildMembersView.cs | 432 ++ .../XMainClient/UI/XGuildMembersView.cs.meta | 12 + .../XMainClient/UI/XGuildPortraitBehaviour.cs | 37 + .../XMainClient/UI/XGuildPortraitBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildPortraitView.cs | 143 + .../XMainClient/UI/XGuildPortraitView.cs.meta | 12 + .../XMainClient/UI/XGuildRedPacketDetailView.cs | 258 + .../UI/XGuildRedPacketDetailView.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildRedPacketView.cs | 278 + .../XMainClient/UI/XGuildRedPacketView.cs.meta | 12 + .../XMainClient/UI/XGuildRedPakageLogView.cs | 125 + .../XMainClient/UI/XGuildRedPakageLogView.cs.meta | 12 + .../XMainClient/UI/XGuildSignInBehaviour.cs | 45 + .../XMainClient/UI/XGuildSignInBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildSignInView.cs | 249 + .../XMainClient/UI/XGuildSignInView.cs.meta | 12 + .../XMainClient/UI/XGuildSignRedPackageView.cs | 506 ++ .../UI/XGuildSignRedPackageView.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildViewBehaviour.cs | 32 + .../XMainClient/UI/XGuildViewBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XGuildViewView.cs | 172 + .../Scripts/XMainClient/UI/XGuildViewView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/XLoginView.cs | 525 ++ .../Scripts/XMainClient/UI/XLoginView.cs.meta | 12 + .../XMainClient/UI/XMISystemAnnounceHandler.cs | 106 + .../UI/XMISystemAnnounceHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XMainInterface.cs | 3026 +++++++++ .../Scripts/XMainClient/UI/XMainInterface.cs.meta | 12 + .../XMainClient/UI/XMainInterfaceBehaviour.cs | 440 ++ .../XMainClient/UI/XMainInterfaceBehaviour.cs.meta | 12 + .../XMainClient/UI/XMainInterfaceBriefHandler.cs | 256 + .../UI/XMainInterfaceBriefHandler.cs.meta | 12 + .../XMainClient/UI/XMainInterfaceMemberMonitor.cs | 94 + .../UI/XMainInterfaceMemberMonitor.cs.meta | 12 + .../XMainClient/UI/XMainInterfaceTaskHandler.cs | 122 + .../UI/XMainInterfaceTaskHandler.cs.meta | 12 + .../XMainClient/UI/XMainInterfaceTeamHandler.cs | 220 + .../UI/XMainInterfaceTeamHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XMainSubstance.cs | 124 + .../Scripts/XMainClient/UI/XMainSubstance.cs.meta | 12 + .../XMainClient/UI/XMainSubstanceHandler.cs | 525 ++ .../XMainClient/UI/XMainSubstanceHandler.cs.meta | 12 + .../UI/XMentorshipApplicationBehavior.cs | 28 + .../UI/XMentorshipApplicationBehavior.cs.meta | 12 + .../XMainClient/UI/XMentorshipApplicationsView.cs | 267 + .../UI/XMentorshipApplicationsView.cs.meta | 12 + .../UI/XMentorshipCandidatesBehavior.cs | 31 + .../UI/XMentorshipCandidatesBehavior.cs.meta | 12 + .../XMainClient/UI/XMentorshipCandidatesView.cs | 311 + .../UI/XMentorshipCandidatesView.cs.meta | 12 + .../UI/XMentorshipPupilsDramaOperate.cs | 391 ++ .../UI/XMentorshipPupilsDramaOperate.cs.meta | 12 + .../Scripts/XMainClient/UI/XNPCFavorBehaviour.cs | 56 + .../XMainClient/UI/XNPCFavorBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs | 317 + .../Scripts/XMainClient/UI/XNPCFavorDlg.cs.meta | 12 + .../Scripts/XMainClient/UI/XNPCFavorDrama.cs | 190 + .../Scripts/XMainClient/UI/XNPCFavorDrama.cs.meta | 12 + .../XMainClient/UI/XNPCFavorDramaExchange.cs | 166 + .../XMainClient/UI/XNPCFavorDramaExchange.cs.meta | 12 + .../Scripts/XMainClient/UI/XNPCFavorDramaSend.cs | 237 + .../XMainClient/UI/XNPCFavorDramaSend.cs.meta | 12 + .../Scripts/XMainClient/UI/XNPCFavorHandler.cs | 248 + .../XMainClient/UI/XNPCFavorHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XNPCSendSubHandler.cs | 339 + .../XMainClient/UI/XNPCSendSubHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XNPCUnionHandler.cs | 167 + .../XMainClient/UI/XNPCUnionHandler.cs.meta | 12 + .../XMainClient/UI/XNPCUnionMemSubHandler.cs | 342 + .../XMainClient/UI/XNPCUnionMemSubHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XNpcAttrHandler.cs | 99 + .../Scripts/XMainClient/UI/XNpcAttrHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XPartnerDramaOperate.cs | 78 + .../XMainClient/UI/XPartnerDramaOperate.cs.meta | 12 + .../Scripts/XMainClient/UI/XPetMainBehaviour.cs | 178 + .../XMainClient/UI/XPetMainBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XPetMainView.cs | 923 +++ .../Scripts/XMainClient/UI/XPetMainView.cs.meta | 12 + .../XMainClient/UI/XPlayerInfoChildBaseView.cs | 37 + .../UI/XPlayerInfoChildBaseView.cs.meta | 12 + .../Scripts/XMainClient/UI/XPlayerInfoChildView.cs | 38 + .../XMainClient/UI/XPlayerInfoChildView.cs.meta | 12 + .../Scripts/XMainClient/UI/XPlayerMailView.cs | 26 + .../Scripts/XMainClient/UI/XPlayerMailView.cs.meta | 12 + .../Scripts/XMainClient/UI/XQuickReplyBehavior.cs | 39 + .../XMainClient/UI/XQuickReplyBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/XRewardLevelView.cs | 270 + .../XMainClient/UI/XRewardLevelView.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XRwdMailView.cs | 121 + .../Scripts/XMainClient/UI/XRwdMailView.cs.meta | 12 + .../XMainClient/UI/XSceneDamageRankHandler.cs | 308 + .../XMainClient/UI/XSceneDamageRankHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XSelectCharView.cs | 318 + .../Scripts/XMainClient/UI/XSelectCharView.cs.meta | 12 + .../Scripts/XMainClient/UI/XServerActivityView.cs | 247 + .../XMainClient/UI/XServerActivityView.cs.meta | 12 + .../XMainClient/UI/XShowGetItemUIBehaviour.cs | 30 + .../XMainClient/UI/XShowGetItemUIBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XShowGetItemUIView.cs | 200 + .../XMainClient/UI/XShowGetItemUIView.cs.meta | 12 + .../Scripts/XMainClient/UI/XShowGetItemView.cs | 223 + .../XMainClient/UI/XShowGetItemView.cs.meta | 12 + .../Scripts/XMainClient/UI/XSparkController.cs | 111 + .../XMainClient/UI/XSparkController.cs.meta | 12 + .../XMainClient/UI/XSpriteAttributeAHandler.cs | 203 + .../UI/XSpriteAttributeAHandler.cs.meta | 12 + .../XMainClient/UI/XSpriteAttributeHandler.cs | 87 + .../XMainClient/UI/XSpriteAttributeHandler.cs.meta | 12 + .../XMainClient/UI/XSpriteAttributePHandler.cs | 169 + .../UI/XSpriteAttributePHandler.cs.meta | 12 + .../XMainClient/UI/XSpriteAttributeSHandler.cs | 126 + .../UI/XSpriteAttributeSHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XSpriteAvatarHandler.cs | 307 + .../XMainClient/UI/XSpriteAvatarHandler.cs.meta | 12 + .../Scripts/XMainClient/UI/XSystemItemMailView.cs | 224 + .../XMainClient/UI/XSystemItemMailView.cs.meta | 12 + .../Scripts/XMainClient/UI/XSystemMailView.cs | 258 + .../Scripts/XMainClient/UI/XSystemMailView.cs.meta | 12 + .../XMainClient/UI/XTargetRewardPopWindow.cs | 147 + .../XMainClient/UI/XTargetRewardPopWindow.cs.meta | 12 + .../Scripts/XMainClient/UI/XTargetRewardView.cs | 328 + .../XMainClient/UI/XTargetRewardView.cs.meta | 12 + .../XMainClient/UI/XTeamBattleConfirmBehaviour.cs | 55 + .../UI/XTeamBattleConfirmBehaviour.cs.meta | 12 + .../XMainClient/UI/XTeamBattleConfirmView.cs | 296 + .../XMainClient/UI/XTeamBattleConfirmView.cs.meta | 12 + .../UI/XTeamBattleQuickConfirmBehaviour.cs | 19 + .../UI/XTeamBattleQuickConfirmBehaviour.cs.meta | 12 + .../XMainClient/UI/XTeamBattleQuickConfirmView.cs | 117 + .../UI/XTeamBattleQuickConfirmView.cs.meta | 12 + .../XMainClient/UI/XTeamConfirmBehaviour.cs | 43 + .../XMainClient/UI/XTeamConfirmBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XTeamConfirmView.cs | 203 + .../XMainClient/UI/XTeamConfirmView.cs.meta | 12 + .../XMainClient/UI/XTeamInputPasswordBehaviour.cs | 22 + .../UI/XTeamInputPasswordBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XTeamInviteBehaviour.cs | 51 + .../XMainClient/UI/XTeamInviteBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XTeamInviteView.cs | 393 ++ .../Scripts/XMainClient/UI/XTeamInviteView.cs.meta | 12 + .../XMainClient/UI/XTeamInvitedListBehaviour.cs | 33 + .../UI/XTeamInvitedListBehaviour.cs.meta | 12 + .../Scripts/XMainClient/UI/XTeamInvitedListView.cs | 191 + .../XMainClient/UI/XTeamInvitedListView.cs.meta | 12 + .../UI/XTeamLeagueBattlePrepareBehaviour.cs | 73 + .../UI/XTeamLeagueBattlePrepareBehaviour.cs.meta | 12 + .../XMainClient/UI/XTeamLeagueBattlePrepareView.cs | 374 ++ .../UI/XTeamLeagueBattlePrepareView.cs.meta | 12 + .../XMainClient/UI/XTeamLeagueFinalResultView.cs | 285 + .../UI/XTeamLeagueFinalResultView.cs.meta | 12 + .../Scripts/XMainClient/UI/XTeamListBehaviour.cs | 46 + .../XMainClient/UI/XTeamListBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XTeamListView.cs | 439 ++ .../Scripts/XMainClient/UI/XTeamListView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/XTeamView.cs | 338 + .../Scripts/XMainClient/UI/XTeamView.cs.meta | 12 + .../Scripts/XMainClient/UI/XTempTipDefine.cs | 26 + .../Scripts/XMainClient/UI/XTempTipDefine.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs | 162 + .../Scripts/XMainClient/UI/XTitanItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XVoiceQAView.cs | 902 +++ .../Scripts/XMainClient/UI/XVoiceQAView.cs.meta | 12 + .../Scripts/XMainClient/UI/XWeddingCostBehavior.cs | 41 + .../XMainClient/UI/XWeddingCostBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/XWeddingCostView.cs | 117 + .../XMainClient/UI/XWeddingCostView.cs.meta | 12 + .../Scripts/XMainClient/UI/XWeddingDramaOperate.cs | 291 + .../XMainClient/UI/XWeddingDramaOperate.cs.meta | 12 + .../XMainClient/UI/XWeddingInviteBehavior.cs | 36 + .../XMainClient/UI/XWeddingInviteBehavior.cs.meta | 12 + .../Scripts/XMainClient/UI/XWeddingInviteView.cs | 280 + .../XMainClient/UI/XWeddingInviteView.cs.meta | 12 + .../UI/XWeddingLitterBoyDramaOperate.cs | 47 + .../UI/XWeddingLitterBoyDramaOperate.cs.meta | 12 + .../UI/XWeddingLitterGirlDramaOperate.cs | 47 + .../UI/XWeddingLitterGirlDramaOperate.cs.meta | 12 + .../XMainClient/UI/XWelfareDiamondHandler.cs | 257 + .../XMainClient/UI/XWelfareDiamondHandler.cs.meta | 12 + .../XMainClient/UI/XWelfareGiftBagHandler.cs | 342 + .../XMainClient/UI/XWelfareGiftBagHandler.cs.meta | 12 + .../XMainClient/UI/XWelfareGrowthFundHandler.cs | 138 + .../UI/XWelfareGrowthFundHandler.cs.meta | 12 + .../UI/XWelfareKingdomPrivilegeDetailBehaviour.cs | 34 + ...XWelfareKingdomPrivilegeDetailBehaviour.cs.meta | 12 + .../UI/XWelfareKingdomPrivilegeDetailView.cs | 75 + .../UI/XWelfareKingdomPrivilegeDetailView.cs.meta | 12 + .../UI/XWelfareKingdomPrivilegeHandler.cs | 288 + .../UI/XWelfareKingdomPrivilegeHandler.cs.meta | 12 + .../UI/XWelfareKingdomPrivilegeRenewBehaviour.cs | 37 + .../XWelfareKingdomPrivilegeRenewBehaviour.cs.meta | 12 + .../UI/XWelfareKingdomPrivilegeRenewView.cs | 102 + .../UI/XWelfareKingdomPrivilegeRenewView.cs.meta | 12 + .../XMainClient/UI/XWelfareMoneyTreeHandler.cs | 443 ++ .../UI/XWelfareMoneyTreeHandler.cs.meta | 12 + .../XMainClient/UI/XWelfareNiceGirlHandler.cs | 392 ++ .../XMainClient/UI/XWelfareNiceGirlHandler.cs.meta | 12 + .../XMainClient/UI/XWelfareRewardBackHandler.cs | 1134 ++++ .../UI/XWelfareRewardBackHandler.cs.meta | 12 + .../XMainClient/UI/XWelfareYyMallHandler.cs | 472 ++ .../XMainClient/UI/XWelfareYyMallHandler.cs.meta | 12 + .../UI/XWelffareFirstRechargrHandler.cs | 206 + .../UI/XWelffareFirstRechargrHandler.cs.meta | 12 + .../XMainClient/UI/XWheelOfFortuneHandler.cs | 270 + .../XMainClient/UI/XWheelOfFortuneHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/UI/XWheelState.cs | 12 + .../Scripts/XMainClient/UI/XWheelState.cs.meta | 12 + .../XMainClient/UI/XWorldBossDamageRankHandler.cs | 463 ++ .../UI/XWorldBossDamageRankHandler.cs.meta | 12 + .../XMainClient/UI/XWorldBossEndRankView.cs | 343 ++ .../XMainClient/UI/XWorldBossEndRankView.cs.meta | 12 + .../Scripts/XMainClient/UI/XWorldBossResultView.cs | 83 + .../XMainClient/UI/XWorldBossResultView.cs.meta | 12 + .../Scripts/XMainClient/UI/XWorldBossView.cs | 618 ++ .../Scripts/XMainClient/UI/XWorldBossView.cs.meta | 12 + .../Scripts/XMainClient/UI/XYyMallOperate.cs | 28 + .../Scripts/XMainClient/UI/XYyMallOperate.cs.meta | 12 + .../Scripts/XMainClient/UI/YorozuyaHandler.cs | 151 + .../Scripts/XMainClient/UI/YorozuyaHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UIBuffInfo.cs | 85 + .../Assets/Scripts/XMainClient/UIBuffInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/UnFadeObject.cs | 102 + .../Scripts/XMainClient/UnFadeObject.cs.meta | 12 + Client/Assets/Scripts/XMainClient/Utility.meta | 9 + .../XMainClient/Utility/IXItemDescription.cs | 14 + .../XMainClient/Utility/IXItemDescription.cs.meta | 12 + .../XMainClient/Utility/XEmblemDescription.cs | 34 + .../XMainClient/Utility/XEmblemDescription.cs.meta | 12 + .../XMainClient/Utility/XEquipDescription.cs | 34 + .../XMainClient/Utility/XEquipDescription.cs.meta | 12 + .../XMainClient/Utility/XFashionDescription.cs | 34 + .../Utility/XFashionDescription.cs.meta | 12 + .../XMainClient/Utility/XFashionHairDescription.cs | 34 + .../Utility/XFashionHairDescription.cs.meta | 12 + .../XMainClient/Utility/XJadeDescription.cs | 34 + .../XMainClient/Utility/XJadeDescription.cs.meta | 12 + .../XMainClient/Utility/XNormalDescription.cs | 34 + .../XMainClient/Utility/XNormalDescription.cs.meta | 12 + .../Scripts/XMainClient/Utility/XUITabControl.cs | 287 + .../XMainClient/Utility/XUITabControl.cs.meta | 12 + .../XMainClient/Utility/XartifactDescription.cs | 34 + .../Utility/XartifactDescription.cs.meta | 12 + Client/Assets/Scripts/XMainClient/VIPGiftState.cs | 11 + .../Scripts/XMainClient/VIPGiftState.cs.meta | 12 + .../XMainClient/VirtualJoystickBehaviour.cs | 23 + .../XMainClient/VirtualJoystickBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/VoiceAnswer.cs | 33 + .../Assets/Scripts/XMainClient/VoiceAnswer.cs.meta | 12 + Client/Assets/Scripts/XMainClient/VoiceUsage.cs | 13 + .../Assets/Scripts/XMainClient/VoiceUsage.cs.meta | 12 + .../Assets/Scripts/XMainClient/WarResGuildInfo.cs | 15 + .../Scripts/XMainClient/WarResGuildInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/WeaponLoadTask.cs | 121 + .../Scripts/XMainClient/WeaponLoadTask.cs.meta | 12 + .../Assets/Scripts/XMainClient/WeddingBriefInfo.cs | 12 + .../Scripts/XMainClient/WeddingBriefInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/WeddingRoleInfo.cs | 21 + .../Scripts/XMainClient/WeddingRoleInfo.cs.meta | 12 + .../Scripts/XMainClient/WeekEndNestBehaviour.cs | 53 + .../XMainClient/WeekEndNestBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/WeekEndNestDlg.cs | 190 + .../Scripts/XMainClient/WeekEndNestDlg.cs.meta | 12 + .../Scripts/XMainClient/WeekEndNestDocument.cs | 414 ++ .../XMainClient/WeekEndNestDocument.cs.meta | 12 + .../Scripts/XMainClient/WeekNestRankBehavior.cs | 26 + .../XMainClient/WeekNestRankBehavior.cs.meta | 12 + .../Assets/Scripts/XMainClient/WeekNestRankDlg.cs | 140 + .../Scripts/XMainClient/WeekNestRankDlg.cs.meta | 12 + .../Scripts/XMainClient/WeekNestRankHandler.cs | 204 + .../XMainClient/WeekNestRankHandler.cs.meta | 12 + .../XMainClient/WeekendPartyBattleRoleInfo.cs | 25 + .../XMainClient/WeekendPartyBattleRoleInfo.cs.meta | 12 + .../Scripts/XMainClient/WeeklyTaskCategory.cs | 12 + .../Scripts/XMainClient/WeeklyTaskCategory.cs.meta | 12 + Client/Assets/Scripts/XMainClient/WorldBoss.meta | 9 + .../XMainClient/WorldBoss/XWorldBossBehaviour.cs | 105 + .../WorldBoss/XWorldBossBehaviour.cs.meta | 12 + .../WorldBoss/XWorldBossDamageRankInfo.cs | 22 + .../WorldBoss/XWorldBossDamageRankInfo.cs.meta | 12 + .../WorldBoss/XWorldBossDamageRankList.cs | 17 + .../WorldBoss/XWorldBossDamageRankList.cs.meta | 12 + .../XMainClient/WorldBoss/XWorldBossDocument.cs | 477 ++ .../WorldBoss/XWorldBossDocument.cs.meta | 12 + .../WorldBoss/XWorldBossEndRankBehaviour.cs | 50 + .../WorldBoss/XWorldBossEndRankBehaviour.cs.meta | 12 + .../WorldBoss/XWorldBossGuildRankInfo.cs | 17 + .../WorldBoss/XWorldBossGuildRankInfo.cs.meta | 12 + .../WorldBoss/XWorldBossGuildRankList.cs | 17 + .../WorldBoss/XWorldBossGuildRankList.cs.meta | 12 + .../WorldBoss/XWorldBossGuildRoleRankInfo.cs | 18 + .../WorldBoss/XWorldBossGuildRoleRankInfo.cs.meta | 12 + .../WorldBoss/XWorldBossGuildRoleRankList.cs | 17 + .../WorldBoss/XWorldBossGuildRoleRankList.cs.meta | 12 + Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs | 793 +++ .../Scripts/XMainClient/X3DAvatarMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs | 178 + .../Assets/Scripts/XMainClient/X3DTouchMgr.cs.meta | 12 + .../Scripts/XMainClient/XAIAutoFightEventArgs.cs | 18 + .../XMainClient/XAIAutoFightEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAIComponent.cs | 1498 +++++ .../Scripts/XMainClient/XAIComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAIDataRelated.cs | 156 + .../Scripts/XMainClient/XAIDataRelated.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAIEnableAI.cs | 26 + .../Assets/Scripts/XMainClient/XAIEnableAI.cs.meta | 12 + .../Scripts/XMainClient/XAIEndSkillEventArgs.cs | 24 + .../XMainClient/XAIEndSkillEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XAIEnterFightEventArgs.cs | 21 + .../XMainClient/XAIEnterFightEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAIEventArgs.cs | 43 + .../Scripts/XMainClient/XAIEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs | 591 ++ .../Scripts/XMainClient/XAIGeneralMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAIGlobal.cs | 61 + .../Assets/Scripts/XMainClient/XAIGlobal.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAIMove.cs | 191 + Client/Assets/Scripts/XMainClient/XAIMove.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAIOtherActions.cs | 512 ++ .../Scripts/XMainClient/XAIOtherActions.cs.meta | 12 + .../Scripts/XMainClient/XAIRestartEventArgs.cs | 18 + .../XMainClient/XAIRestartEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAISkill.cs | 892 +++ Client/Assets/Scripts/XMainClient/XAISkill.cs.meta | 12 + .../Scripts/XMainClient/XAISkillHurtEventArgs.cs | 23 + .../XMainClient/XAISkillHurtEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XAIStartSkillEventArgs.cs | 24 + .../XMainClient/XAIStartSkillEventArgs.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAIStopEventArgs.cs | 18 + .../Scripts/XMainClient/XAIStopEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAITarget.cs | 524 ++ .../Assets/Scripts/XMainClient/XAITarget.cs.meta | 12 + .../Scripts/XMainClient/XAbyssPartyDocument.cs | 338 + .../XMainClient/XAbyssPartyDocument.cs.meta | 12 + .../Scripts/XMainClient/XAchievementDocument.cs | 573 ++ .../XMainClient/XAchievementDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAchievementView.cs | 141 + .../Scripts/XMainClient/XAchievementView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XActionArgs.cs | 12 + .../Assets/Scripts/XMainClient/XActionArgs.cs.meta | 12 + .../XMainClient/XActionGeneratorComponent.cs | 66 + .../XMainClient/XActionGeneratorComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XActionReceiver.cs | 239 + .../Scripts/XMainClient/XActionReceiver.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XActionSender.cs | 174 + .../Scripts/XMainClient/XActionSender.cs.meta | 12 + .../Scripts/XMainClient/XActivityDocument.cs | 855 +++ .../Scripts/XMainClient/XActivityDocument.cs.meta | 12 + .../Scripts/XMainClient/XActivityInviteDocument.cs | 188 + .../XMainClient/XActivityInviteDocument.cs.meta | 12 + .../XMainClient/XActivityTaskUpdatedArgs.cs | 30 + .../XMainClient/XActivityTaskUpdatedArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XActor.cs | 200 + Client/Assets/Scripts/XMainClient/XActor.cs.meta | 12 + .../Scripts/XMainClient/XAddItemEventArgs.cs | 36 + .../Scripts/XMainClient/XAddItemEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAffiliate.cs | 243 + .../Assets/Scripts/XMainClient/XAffiliate.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAncientDocument.cs | 278 + .../Scripts/XMainClient/XAncientDocument.cs.meta | 12 + .../Scripts/XMainClient/XAnnouncementBehaviour.cs | 19 + .../XMainClient/XAnnouncementBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XAnnouncementDocument.cs | 166 + .../XMainClient/XAnnouncementDocument.cs.meta | 12 + .../Scripts/XMainClient/XAnnouncementView.cs | 67 + .../Scripts/XMainClient/XAnnouncementView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XApolloDocument.cs | 310 + .../Scripts/XMainClient/XApolloDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XArenaDocument.cs | 34 + .../Scripts/XMainClient/XArenaDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XArmorBrokenArgs.cs | 21 + .../Scripts/XMainClient/XArmorBrokenArgs.cs.meta | 12 + .../Scripts/XMainClient/XArmorRecoverArgs.cs | 21 + .../Scripts/XMainClient/XArmorRecoverArgs.cs.meta | 12 + .../Scripts/XMainClient/XArtifactAttrView.cs | 507 ++ .../Scripts/XMainClient/XArtifactAttrView.cs.meta | 12 + .../Scripts/XMainClient/XArtifactBuffInfo.cs | 96 + .../Scripts/XMainClient/XArtifactBuffInfo.cs.meta | 12 + .../Scripts/XMainClient/XArtifactCreateDocument.cs | 549 ++ .../XMainClient/XArtifactCreateDocument.cs.meta | 12 + .../Scripts/XMainClient/XArtifactEffectInfo.cs | 161 + .../XMainClient/XArtifactEffectInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XArtifactItem.cs | 60 + .../Scripts/XMainClient/XArtifactItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XArtsSkill.cs | 1253 ++++ .../Assets/Scripts/XMainClient/XArtsSkill.cs.meta | 12 + .../Scripts/XMainClient/XAssociatedCamera.cs | 16 + .../Scripts/XMainClient/XAssociatedCamera.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAttackEventArgs.cs | 41 + .../Scripts/XMainClient/XAttackEventArgs.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAttackShowArgs.cs | 21 + .../Scripts/XMainClient/XAttackShowArgs.cs.meta | 12 + .../Scripts/XMainClient/XAttackShowBeginArgs.cs | 22 + .../XMainClient/XAttackShowBeginArgs.cs.meta | 12 + .../Scripts/XMainClient/XAttackShowEndArgs.cs | 21 + .../Scripts/XMainClient/XAttackShowEndArgs.cs.meta | 12 + .../Scripts/XMainClient/XAttrChangeEventArgs.cs | 34 + .../XMainClient/XAttrChangeEventArgs.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAttrCommonFile.cs | 9 + .../Scripts/XMainClient/XAttrCommonFile.cs.meta | 12 + .../Scripts/XMainClient/XAttrCommonHandler.cs | 256 + .../Scripts/XMainClient/XAttrCommonHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAttrData.cs | 54 + .../Assets/Scripts/XMainClient/XAttrData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAttrItem.cs | 32 + .../Assets/Scripts/XMainClient/XAttrItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAttrOtherFile.cs | 15 + .../Scripts/XMainClient/XAttrOtherFile.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAttrPair.cs | 17 + .../Assets/Scripts/XMainClient/XAttrPair.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAttrPlayerFile.cs | 15 + .../Scripts/XMainClient/XAttrPlayerFile.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAttributeCommon.cs | 220 + .../Scripts/XMainClient/XAttributeCommon.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAttributeDefine.cs | 180 + .../Scripts/XMainClient/XAttributeDefine.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAttributeMgr.cs | 409 ++ .../Scripts/XMainClient/XAttributeMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAttributes.cs | 1068 ++++ .../Assets/Scripts/XMainClient/XAttributes.cs.meta | 12 + .../Assets/Scripts/XMainClient/XAudioComponent.cs | 177 + .../Scripts/XMainClient/XAudioComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAudioExParam.cs | 36 + .../Scripts/XMainClient/XAudioExParam.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAudioMgr.cs | 493 ++ .../Assets/Scripts/XMainClient/XAudioMgr.cs.meta | 12 + .../Scripts/XMainClient/XAudioOperationArgs.cs | 21 + .../XMainClient/XAudioOperationArgs.cs.meta | 12 + .../Scripts/XMainClient/XAudioStateDefine.cs | 17 + .../Scripts/XMainClient/XAudioStateDefine.cs.meta | 12 + .../Scripts/XMainClient/XAuthorizationChannel.cs | 14 + .../XMainClient/XAuthorizationChannel.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XAutoFade.cs | 162 + .../Assets/Scripts/XMainClient/XAutoFade.cs.meta | 12 + .../Scripts/XMainClient/XBackFlowBehavior.cs | 25 + .../Scripts/XMainClient/XBackFlowBehavior.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs | 432 ++ .../Scripts/XMainClient/XBackFlowDlg.cs.meta | 12 + .../Scripts/XMainClient/XBackFlowDocument.cs | 642 ++ .../Scripts/XMainClient/XBackFlowDocument.cs.meta | 12 + .../Scripts/XMainClient/XBackFlowLevelUpHandler.cs | 72 + .../XMainClient/XBackFlowLevelUpHandler.cs.meta | 12 + .../XMainClient/XBackFlowPrivilegeHandler.cs | 74 + .../XMainClient/XBackFlowPrivilegeHandler.cs.meta | 12 + .../Scripts/XMainClient/XBackFlowServerHandler.cs | 354 ++ .../XMainClient/XBackFlowServerHandler.cs.meta | 12 + .../Scripts/XMainClient/XBackFlowTargetHandler.cs | 217 + .../XMainClient/XBackFlowTargetHandler.cs.meta | 12 + .../Scripts/XMainClient/XBackFlowTasksHandler.cs | 198 + .../XMainClient/XBackFlowTasksHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBackFlowType.cs | 11 + .../Scripts/XMainClient/XBackFlowType.cs.meta | 12 + .../Scripts/XMainClient/XBackFlowWelfareHandler.cs | 190 + .../XMainClient/XBackFlowWelfareHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBag.cs | 189 + Client/Assets/Scripts/XMainClient/XBag.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBagDocument.cs | 2047 ++++++ .../Scripts/XMainClient/XBagDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBagWindow.cs | 167 + .../Assets/Scripts/XMainClient/XBagWindow.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBaseCommand.cs | 308 + .../Scripts/XMainClient/XBaseCommand.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs | 42 + .../Scripts/XMainClient/XBaseRankInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBaseRankList.cs | 159 + .../Scripts/XMainClient/XBaseRankList.cs.meta | 12 + .../XMainClient/XBattleCaptainPVPDocument.cs | 1064 ++++ .../XMainClient/XBattleCaptainPVPDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XBattleDocument.cs | 858 +++ .../Scripts/XMainClient/XBattleDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XBattleEndArgs.cs | 18 + .../Scripts/XMainClient/XBattleEndArgs.cs.meta | 12 + .../XMainClient/XBattleFieldBattleDocument.cs | 129 + .../XMainClient/XBattleFieldBattleDocument.cs.meta | 12 + .../XMainClient/XBattleFieldEntranceDocument.cs | 124 + .../XBattleFieldEntranceDocument.cs.meta | 12 + .../Scripts/XMainClient/XBattleSkillDocument.cs | 483 ++ .../XMainClient/XBattleSkillDocument.cs.meta | 12 + .../Scripts/XMainClient/XBattleStatistics.cs | 76 + .../Scripts/XMainClient/XBattleStatistics.cs.meta | 12 + .../Scripts/XMainClient/XBetterDictionary.cs | 204 + .../Scripts/XMainClient/XBetterDictionary.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBetterList.cs | 243 + .../Assets/Scripts/XMainClient/XBetterList.cs.meta | 12 + .../Scripts/XMainClient/XBigMeleeBattleDocument.cs | 220 + .../XMainClient/XBigMeleeBattleDocument.cs.meta | 12 + .../Scripts/XMainClient/XBigMeleeEnemyChange.cs | 21 + .../XMainClient/XBigMeleeEnemyChange.cs.meta | 12 + .../XMainClient/XBigMeleeEntranceDocument.cs | 190 + .../XMainClient/XBigMeleeEntranceDocument.cs.meta | 12 + .../Scripts/XMainClient/XBigMeleePointChange.cs | 21 + .../XMainClient/XBigMeleePointChange.cs.meta | 12 + .../Scripts/XMainClient/XBigMeleeRankInfo.cs | 35 + .../Scripts/XMainClient/XBigMeleeRankInfo.cs.meta | 12 + .../Scripts/XMainClient/XBigMeleeRankList.cs | 17 + .../Scripts/XMainClient/XBigMeleeRankList.cs.meta | 12 + .../Scripts/XMainClient/XBillBoardDocument.cs | 123 + .../Scripts/XMainClient/XBillBoardDocument.cs.meta | 12 + .../Scripts/XMainClient/XBillboardComponent.cs | 1636 +++++ .../XMainClient/XBillboardComponent.cs.meta | 12 + .../Scripts/XMainClient/XBillboardHideEventArgs.cs | 21 + .../XMainClient/XBillboardHideEventArgs.cs.meta | 12 + .../XMainClient/XBillboardShowCtrlEventArgs.cs | 22 + .../XBillboardShowCtrlEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBlackWhite.cs | 13 + .../Assets/Scripts/XMainClient/XBlackWhite.cs.meta | 12 + .../Scripts/XMainClient/XBlockInputBehaviour.cs | 9 + .../XMainClient/XBlockInputBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XBlockInputView.cs | 37 + .../Scripts/XMainClient/XBlockInputView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBodyBag.cs | 145 + Client/Assets/Scripts/XMainClient/XBodyBag.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBoss.cs | 43 + Client/Assets/Scripts/XMainClient/XBoss.cs.meta | 12 + .../Scripts/XMainClient/XBossBushDocument.cs | 232 + .../Scripts/XMainClient/XBossBushDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XBubbleComponent.cs | 170 + .../Scripts/XMainClient/XBubbleComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XBubbleEventArgs.cs | 26 + .../Scripts/XMainClient/XBubbleEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBullet.cs | 932 +++ Client/Assets/Scripts/XMainClient/XBullet.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBulletCore.cs | 285 + .../Assets/Scripts/XMainClient/XBulletCore.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XBulletMgr.cs | 224 + .../Assets/Scripts/XMainClient/XBulletMgr.cs.meta | 12 + .../Scripts/XMainClient/XCameraActionComponent.cs | 154 + .../XMainClient/XCameraActionComponent.cs.meta | 12 + .../Scripts/XMainClient/XCameraActionEventArgs.cs | 32 + .../XMainClient/XCameraActionEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XCameraCloseUpComponent.cs | 248 + .../XMainClient/XCameraCloseUpComponent.cs.meta | 12 + .../XMainClient/XCameraCloseUpEndEventArgs.cs | 18 + .../XMainClient/XCameraCloseUpEndEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XCameraCloseUpEventArgs.cs | 21 + .../XMainClient/XCameraCloseUpEventArgs.cs.meta | 12 + .../XMainClient/XCameraCollisonComponent.cs | 282 + .../XMainClient/XCameraCollisonComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCameraEx.cs | 1092 ++++ .../Assets/Scripts/XMainClient/XCameraEx.cs.meta | 12 + .../XMainClient/XCameraIntellectiveFollow.cs | 183 + .../XMainClient/XCameraIntellectiveFollow.cs.meta | 12 + .../Scripts/XMainClient/XCameraMotionComponent.cs | 184 + .../XMainClient/XCameraMotionComponent.cs.meta | 12 + .../XMainClient/XCameraMotionEndEventArgs.cs | 24 + .../XMainClient/XCameraMotionEndEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XCameraMotionEventArgs.cs | 28 + .../XMainClient/XCameraMotionEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XCameraShakeComponent.cs | 155 + .../XMainClient/XCameraShakeComponent.cs.meta | 12 + .../Scripts/XMainClient/XCameraShakeEventArgs.cs | 25 + .../XMainClient/XCameraShakeEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XCameraSoloComponent.cs | 277 + .../XMainClient/XCameraSoloComponent.cs.meta | 12 + .../Scripts/XMainClient/XCameraSoloEventArgs.cs | 21 + .../XMainClient/XCameraSoloEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XCameraVAdjustComponent.cs | 99 + .../XMainClient/XCameraVAdjustComponent.cs.meta | 12 + .../Scripts/XMainClient/XCameraWallComponent.cs | 165 + .../XMainClient/XCameraWallComponent.cs.meta | 12 + .../Scripts/XMainClient/XCampDuelDocument.cs | 284 + .../Scripts/XMainClient/XCampDuelDocument.cs.meta | 12 + .../Scripts/XMainClient/XCampDuelRankInfo.cs | 16 + .../Scripts/XMainClient/XCampDuelRankInfo.cs.meta | 12 + .../Scripts/XMainClient/XCampDuelRankLeftList.cs | 17 + .../XMainClient/XCampDuelRankLeftList.cs.meta | 12 + .../Scripts/XMainClient/XCampDuelRankRightList.cs | 17 + .../XMainClient/XCampDuelRankRightList.cs.meta | 12 + .../Scripts/XMainClient/XCaptainPVPBehaviour.cs | 69 + .../XMainClient/XCaptainPVPBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XCaptainPVPDocument.cs | 286 + .../XMainClient/XCaptainPVPDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCaptainPVPInfo.cs | 19 + .../Scripts/XMainClient/XCaptainPVPInfo.cs.meta | 12 + .../Scripts/XMainClient/XCaptainPVPRankInfo.cs | 47 + .../XMainClient/XCaptainPVPRankInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCaptainPVPView.cs | 319 + .../Scripts/XMainClient/XCaptainPVPView.cs.meta | 12 + .../Scripts/XMainClient/XCardCollectDocument.cs | 649 ++ .../XMainClient/XCardCollectDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCardCombination.cs | 44 + .../Scripts/XMainClient/XCardCombination.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCardShopHandler.cs | 183 + .../Scripts/XMainClient/XCardShopHandler.cs.meta | 12 + .../Scripts/XMainClient/XCarnivalDocument.cs | 407 ++ .../Scripts/XMainClient/XCarnivalDocument.cs.meta | 12 + .../Scripts/XMainClient/XChapterDifficult.cs | 10 + .../Scripts/XMainClient/XChapterDifficult.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XChapterType.cs | 18 + .../Scripts/XMainClient/XChapterType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCharStage.cs | 149 + .../Assets/Scripts/XMainClient/XCharStage.cs.meta | 12 + .../Scripts/XMainClient/XCharacterAttrView.cs | 237 + .../Scripts/XMainClient/XCharacterAttrView.cs.meta | 12 + .../XMainClient/XCharacterCommonMenuBehaviour.cs | 48 + .../XCharacterCommonMenuBehaviour.cs.meta | 12 + .../XMainClient/XCharacterCommonMenuDocument.cs | 163 + .../XCharacterCommonMenuDocument.cs.meta | 12 + .../Scripts/XMainClient/XCharacterDocument.cs | 72 + .../Scripts/XMainClient/XCharacterDocument.cs.meta | 12 + .../Scripts/XMainClient/XCharacterEquipDocument.cs | 577 ++ .../XMainClient/XCharacterEquipDocument.cs.meta | 12 + .../Scripts/XMainClient/XCharacterFashionView.cs | 20 + .../XMainClient/XCharacterFashionView.cs.meta | 12 + .../Scripts/XMainClient/XCharacterInfoView.cs | 182 + .../Scripts/XMainClient/XCharacterInfoView.cs.meta | 12 + .../Scripts/XMainClient/XCharacterItemDocument.cs | 744 +++ .../XMainClient/XCharacterItemDocument.cs.meta | 12 + .../XMainClient/XCharacterShowChatComponent.cs | 332 + .../XCharacterShowChatComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XChatApolloMgr.cs | 536 ++ .../Scripts/XMainClient/XChatApolloMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XChatBehaviour.cs | 182 + .../Scripts/XMainClient/XChatBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XChatDocument.cs | 1462 +++++ .../Scripts/XMainClient/XChatDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs | 1221 ++++ .../Scripts/XMainClient/XChatIFlyMgr.cs.meta | 12 + .../Scripts/XMainClient/XChatInputBehaviour.cs | 31 + .../XMainClient/XChatInputBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XChatInputView.cs | 111 + .../Scripts/XMainClient/XChatInputView.cs.meta | 12 + .../Scripts/XMainClient/XChatMaqueeBehaviour.cs | 25 + .../XMainClient/XChatMaqueeBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XChatMaqueeView.cs | 245 + .../Scripts/XMainClient/XChatMaqueeView.cs.meta | 12 + .../Scripts/XMainClient/XChatSettingBehaviour.cs | 39 + .../XMainClient/XChatSettingBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XChatSettingView.cs | 131 + .../Scripts/XMainClient/XChatSettingView.cs.meta | 12 + .../Scripts/XMainClient/XChatSmallBehaviour.cs | 85 + .../XMainClient/XChatSmallBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XChatSmallView.cs | 705 +++ .../Scripts/XMainClient/XChatSmallView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XChatUIOP.cs | 228 + .../Assets/Scripts/XMainClient/XChatUIOP.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XChatView.cs | 2607 ++++++++ .../Assets/Scripts/XMainClient/XChatView.cs.meta | 12 + .../Scripts/XMainClient/XChatVoiceManager.cs | 1203 ++++ .../Scripts/XMainClient/XChatVoiceManager.cs.meta | 12 + .../XMainClient/XChatVoiceStatusBehaviour.cs | 25 + .../XMainClient/XChatVoiceStatusBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XChatVoiceStatusView.cs | 109 + .../XMainClient/XChatVoiceStatusView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XChest.cs | 187 + Client/Assets/Scripts/XMainClient/XChest.cs.meta | 12 + .../Assets/Scripts/XMainClient/XChestProgress.cs | 175 + .../Scripts/XMainClient/XChestProgress.cs.meta | 12 + .../Scripts/XMainClient/XChickenDinnerRankInfo.cs | 23 + .../XMainClient/XChickenDinnerRankInfo.cs.meta | 12 + .../Scripts/XMainClient/XChickenDinnerRankList.cs | 20 + .../XMainClient/XChickenDinnerRankList.cs.meta | 12 + .../Assets/Scripts/XMainClient/XClientNetwork.cs | 833 +++ .../Scripts/XMainClient/XClientNetwork.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCmdState.cs | 11 + .../Assets/Scripts/XMainClient/XCmdState.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCombat.cs | 771 +++ Client/Assets/Scripts/XMainClient/XCombat.cs.meta | 12 + .../Scripts/XMainClient/XCombatEffectManager.cs | 188 + .../XMainClient/XCombatEffectManager.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs | 144 + .../Scripts/XMainClient/XCombatHUDMgr.cs.meta | 12 + .../XMainClient/XCombatStatisticsDocument.cs | 394 ++ .../XMainClient/XCombatStatisticsDocument.cs.meta | 12 + .../Scripts/XMainClient/XCombatStatisticsInfo.cs | 142 + .../XMainClient/XCombatStatisticsInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCombinedSkill.cs | 534 ++ .../Scripts/XMainClient/XCombinedSkill.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCommand.cs | 2314 +++++++ Client/Assets/Scripts/XMainClient/XCommand.cs.meta | 12 + .../Scripts/XMainClient/XCommandClickEntity.cs | 70 + .../XMainClient/XCommandClickEntity.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCommandCutscene.cs | 39 + .../Scripts/XMainClient/XCommandCutscene.cs.meta | 12 + .../Scripts/XMainClient/XCommandDirectSys.cs | 64 + .../Scripts/XMainClient/XCommandDirectSys.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCommandExec.cs | 19 + .../Scripts/XMainClient/XCommandExec.cs.meta | 12 + .../Scripts/XMainClient/XCommandForceClick.cs | 317 + .../Scripts/XMainClient/XCommandForceClick.cs.meta | 12 + .../Scripts/XMainClient/XCommandForceSkill.cs | 182 + .../Scripts/XMainClient/XCommandForceSkill.cs.meta | 12 + .../Scripts/XMainClient/XCommandForceSlide.cs | 140 + .../Scripts/XMainClient/XCommandForceSlide.cs.meta | 12 + .../Scripts/XMainClient/XCommandGenericClick.cs | 48 + .../XMainClient/XCommandGenericClick.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCommandMove.cs | 47 + .../Scripts/XMainClient/XCommandMove.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCommandNewIcon.cs | 139 + .../Scripts/XMainClient/XCommandNewIcon.cs.meta | 12 + .../Scripts/XMainClient/XCommandNoforceClick.cs | 171 + .../XMainClient/XCommandNoforceClick.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCommandPrefab.cs | 142 + .../Scripts/XMainClient/XCommandPrefab.cs.meta | 12 + .../Scripts/XMainClient/XCommandPureOverlay.cs | 19 + .../XMainClient/XCommandPureOverlay.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCommandPureText.cs | 25 + .../Scripts/XMainClient/XCommandPureText.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCompeteDocument.cs | 278 + .../Scripts/XMainClient/XCompeteDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XComponent.cs | 208 + .../Assets/Scripts/XMainClient/XComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XComponentMgr.cs | 920 +++ .../Scripts/XMainClient/XComponentMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XConcreteStage.cs | 80 + .../Scripts/XMainClient/XConcreteStage.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XConnection.cs | 285 + .../Assets/Scripts/XMainClient/XConnection.cs.meta | 12 + .../Scripts/XMainClient/XCoolDownAllSkillsArgs.cs | 18 + .../XMainClient/XCoolDownAllSkillsArgs.cs.meta | 12 + .../Scripts/XMainClient/XCrossGVGDocument.cs | 382 ++ .../Scripts/XMainClient/XCrossGVGDocument.cs.meta | 12 + .../Scripts/XMainClient/XCustomBattleDocument.cs | 1138 ++++ .../XMainClient/XCustomBattleDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCustomShadow.cs | 235 + .../Scripts/XMainClient/XCustomShadow.cs.meta | 12 + .../Assets/Scripts/XMainClient/XCustomShadowMgr.cs | 159 + .../Scripts/XMainClient/XCustomShadowMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XCutScene.cs | 701 +++ .../Assets/Scripts/XMainClient/XCutScene.cs.meta | 12 + .../XMainClient/XDailyActivitiesDocument.cs | 340 + .../XMainClient/XDailyActivitiesDocument.cs.meta | 12 + .../Scripts/XMainClient/XDailyActivitiesView.cs | 376 ++ .../XMainClient/XDailyActivitiesView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XDailyActivity.cs | 21 + .../Scripts/XMainClient/XDailyActivity.cs.meta | 12 + .../Assets/Scripts/XMainClient/XDanceDocument.cs | 382 ++ .../Scripts/XMainClient/XDanceDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDataBase.cs | 17 + .../Assets/Scripts/XMainClient/XDataBase.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDataPool.cs | 41 + .../Assets/Scripts/XMainClient/XDataPool.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDeath.cs | 17 + Client/Assets/Scripts/XMainClient/XDeath.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDeck.cs | 248 + Client/Assets/Scripts/XMainClient/XDeck.cs.meta | 12 + .../Scripts/XMainClient/XDesignationDocument.cs | 661 ++ .../XMainClient/XDesignationDocument.cs.meta | 12 + .../Scripts/XMainClient/XDesignationInfoChange.cs | 18 + .../XMainClient/XDesignationInfoChange.cs.meta | 12 + .../Assets/Scripts/XMainClient/XDialogSentence.cs | 92 + .../Scripts/XMainClient/XDialogSentence.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDocComponent.cs | 39 + .../Scripts/XMainClient/XDocComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDocuments.cs | 482 ++ .../Assets/Scripts/XMainClient/XDocuments.cs.meta | 12 + .../Scripts/XMainClient/XDoodadCreateArgs.cs | 22 + .../Scripts/XMainClient/XDoodadCreateArgs.cs.meta | 12 + .../Scripts/XMainClient/XDoodadDeleteArgs.cs | 22 + .../Scripts/XMainClient/XDoodadDeleteArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDoodadType.cs | 13 + .../Assets/Scripts/XMainClient/XDoodadType.cs.meta | 12 + .../Scripts/XMainClient/XDragonCrusadeDocument.cs | 181 + .../XMainClient/XDragonCrusadeDocument.cs.meta | 12 + .../XMainClient/XDragonGuildApplyBehaviour.cs | 42 + .../XMainClient/XDragonGuildApplyBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildApplyView.cs | 136 + .../XMainClient/XDragonGuildApplyView.cs.meta | 12 + .../XMainClient/XDragonGuildApproveBehaviour.cs | 44 + .../XDragonGuildApproveBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildApproveDlg.cs | 228 + .../XMainClient/XDragonGuildApproveDlg.cs.meta | 12 + .../XMainClient/XDragonGuildApproveDocument.cs | 178 + .../XDragonGuildApproveDocument.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildBaseData.cs | 48 + .../XMainClient/XDragonGuildBaseData.cs.meta | 12 + .../XMainClient/XDragonGuildBasicInfoDisplay.cs | 125 + .../XDragonGuildBasicInfoDisplay.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildCreateView.cs | 165 + .../XMainClient/XDragonGuildCreateView.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildDocument.cs | 932 +++ .../XMainClient/XDragonGuildDocument.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildInfoChange.cs | 18 + .../XMainClient/XDragonGuildInfoChange.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildListData.cs | 33 + .../XMainClient/XDragonGuildListData.cs.meta | 12 + .../XMainClient/XDragonGuildListDocument.cs | 298 + .../XMainClient/XDragonGuildListDocument.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildListHandler.cs | 331 + .../XMainClient/XDragonGuildListHandler.cs.meta | 12 + .../XMainClient/XDragonGuildMainBonusView.cs | 95 + .../XMainClient/XDragonGuildMainBonusView.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildMainHandler.cs | 755 +++ .../XMainClient/XDragonGuildMainHandler.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildMember.cs | 151 + .../Scripts/XMainClient/XDragonGuildMember.cs.meta | 12 + .../XMainClient/XDragonGuildMemberInfoDisplay.cs | 176 + .../XDragonGuildMemberInfoDisplay.cs.meta | 12 + .../Assets/Scripts/XMainClient/XDragonGuildPP.cs | 189 + .../Scripts/XMainClient/XDragonGuildPP.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildRankInfo.cs | 46 + .../XMainClient/XDragonGuildRankInfo.cs.meta | 12 + .../Scripts/XMainClient/XDragonGuildRankList.cs | 17 + .../XMainClient/XDragonGuildRankList.cs.meta | 12 + .../XMainClient/XDragonGuildTaskDocument.cs | 306 + .../XMainClient/XDragonGuildTaskDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XDragonGuildTpl.cs | 28 + .../Scripts/XMainClient/XDragonGuildTpl.cs.meta | 12 + .../Scripts/XMainClient/XDragonNestBehaviour.cs | 159 + .../XMainClient/XDragonNestBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XDragonNestDocument.cs | 475 ++ .../XMainClient/XDragonNestDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XDragonNestView.cs | 926 +++ .../Scripts/XMainClient/XDragonNestView.cs.meta | 12 + .../Scripts/XMainClient/XDragonPartnerDocument.cs | 83 + .../XMainClient/XDragonPartnerDocument.cs.meta | 12 + .../Scripts/XMainClient/XDragonRewardDocument.cs | 220 + .../XMainClient/XDragonRewardDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XDramaDocument.cs | 272 + .../Scripts/XMainClient/XDramaDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDropData.cs | 11 + .../Assets/Scripts/XMainClient/XDropData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDropPackage.cs | 20 + .../Scripts/XMainClient/XDropPackage.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XDummy.cs | 425 ++ Client/Assets/Scripts/XMainClient/XDummy.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XElite.cs | 14 + Client/Assets/Scripts/XMainClient/XElite.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEmbleAttrView.cs | 214 + .../Scripts/XMainClient/XEmbleAttrView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEmblemDocument.cs | 1042 ++++ .../Scripts/XMainClient/XEmblemDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEmblemInfo.cs | 17 + .../Assets/Scripts/XMainClient/XEmblemInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEmblemItem.cs | 114 + .../Assets/Scripts/XMainClient/XEmblemItem.cs.meta | 12 + .../Scripts/XMainClient/XEmblemItemDrawer.cs | 45 + .../Scripts/XMainClient/XEmblemItemDrawer.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEmpty.cs | 46 + Client/Assets/Scripts/XMainClient/XEmpty.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEnchantDocument.cs | 856 +++ .../Scripts/XMainClient/XEnchantDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEnchantInfo.cs | 47 + .../Scripts/XMainClient/XEnchantInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEndureComponent.cs | 233 + .../Scripts/XMainClient/XEndureComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEndureEventArgs.cs | 28 + .../Scripts/XMainClient/XEndureEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEnemy.cs | 118 + Client/Assets/Scripts/XMainClient/XEnemy.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEnhanceDocument.cs | 1088 ++++ .../Scripts/XMainClient/XEnhanceDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs | 29 + .../Scripts/XMainClient/XEnhanceInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEnhanceRpcState.cs | 14 + .../Scripts/XMainClient/XEnhanceRpcState.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEnmityEventArgs.cs | 42 + .../Scripts/XMainClient/XEnmityEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEnmityList.cs | 242 + .../Assets/Scripts/XMainClient/XEnmityList.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEntity.cs | 2188 +++++++ Client/Assets/Scripts/XMainClient/XEntity.cs.meta | 12 + .../XMainClient/XEntityAttrChangeEventArgs.cs | 38 + .../XMainClient/XEntityAttrChangeEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEntityMgr.cs | 1052 ++++ .../Assets/Scripts/XMainClient/XEntityMgr.cs.meta | 12 + .../Scripts/XMainClient/XEquipChangeEventArgs.cs | 25 + .../XMainClient/XEquipChangeEventArgs.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEquipComponent.cs | 1504 +++++ .../Scripts/XMainClient/XEquipComponent.cs.meta | 12 + .../Scripts/XMainClient/XEquipCreateDocument.cs | 1926 ++++++ .../XMainClient/XEquipCreateDocument.cs.meta | 12 + .../Scripts/XMainClient/XEquipCreateStaticData.cs | 51 + .../XMainClient/XEquipCreateStaticData.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEquipDocument.cs | 701 +++ .../Scripts/XMainClient/XEquipDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEquipItem.cs | 119 + .../Assets/Scripts/XMainClient/XEquipItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/XEquipItemDrawer.cs | 96 + .../Scripts/XMainClient/XEquipItemDrawer.cs.meta | 12 + .../Scripts/XMainClient/XEquipSuitManager.cs | 214 + .../Scripts/XMainClient/XEquipSuitManager.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEventArgs.cs | 80 + .../Assets/Scripts/XMainClient/XEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEventBlocker.cs | 78 + .../Scripts/XMainClient/XEventBlocker.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEventDefine.cs | 122 + .../Scripts/XMainClient/XEventDefine.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEventMgr.cs | 187 + .../Assets/Scripts/XMainClient/XEventMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XEventPool.cs | 54 + .../Assets/Scripts/XMainClient/XEventPool.cs.meta | 12 + .../Scripts/XMainClient/XEvent_HomeFeastingArgs.cs | 22 + .../XMainClient/XEvent_HomeFeastingArgs.cs.meta | 12 + .../Scripts/XMainClient/XExchangeItemDocument.cs | 243 + .../XMainClient/XExchangeItemDocument.cs.meta | 12 + .../Scripts/XMainClient/XExpeditionDocument.cs | 1029 ++++ .../XMainClient/XExpeditionDocument.cs.meta | 12 + .../Scripts/XMainClient/XFPStrengthenDocument.cs | 677 ++ .../XMainClient/XFPStrengthenDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFadeInEventArgs.cs | 21 + .../Scripts/XMainClient/XFadeInEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XFadeOutEventArgs.cs | 21 + .../Scripts/XMainClient/XFadeOutEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XFakeTouch.cs | 22 + .../Assets/Scripts/XMainClient/XFakeTouch.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFashionDocument.cs | 1692 +++++ .../Scripts/XMainClient/XFashionDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFashionDrawer.cs | 66 + .../Scripts/XMainClient/XFashionDrawer.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XFashionItem.cs | 15 + .../Scripts/XMainClient/XFashionItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFashionRankInfo.cs | 20 + .../Scripts/XMainClient/XFashionRankInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFashionRankList.cs | 35 + .../Scripts/XMainClient/XFashionRankList.cs.meta | 12 + .../Scripts/XMainClient/XFashionStorageDocument.cs | 1233 ++++ .../XMainClient/XFashionStorageDocument.cs.meta | 12 + .../Scripts/XMainClient/XFightGroupChangedArgs.cs | 28 + .../XMainClient/XFightGroupChangedArgs.cs.meta | 12 + .../Scripts/XMainClient/XFightGroupDocument.cs | 251 + .../XMainClient/XFightGroupDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFindExpDocument.cs | 164 + .../Scripts/XMainClient/XFindExpDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XFingerId.cs | 15 + .../Assets/Scripts/XMainClient/XFingerId.cs.meta | 12 + .../Scripts/XMainClient/XFishingComponent.cs | 176 + .../Scripts/XMainClient/XFishingComponent.cs.meta | 12 + .../Scripts/XMainClient/XFlowerAwardListInfo.cs | 13 + .../XMainClient/XFlowerAwardListInfo.cs.meta | 12 + .../Scripts/XMainClient/XFlowerRankActivityInfo.cs | 39 + .../XMainClient/XFlowerRankActivityInfo.cs.meta | 12 + .../Scripts/XMainClient/XFlowerRankActivityList.cs | 17 + .../XMainClient/XFlowerRankActivityList.cs.meta | 12 + .../Scripts/XMainClient/XFlowerRankDocument.cs | 497 ++ .../XMainClient/XFlowerRankDocument.cs.meta | 12 + .../Scripts/XMainClient/XFlowerRankHandler.cs | 1177 ++++ .../Scripts/XMainClient/XFlowerRankHandler.cs.meta | 12 + .../Scripts/XMainClient/XFlowerRankNormalInfo.cs | 40 + .../XMainClient/XFlowerRankNormalInfo.cs.meta | 12 + .../Scripts/XMainClient/XFlowerRankNormalList.cs | 17 + .../XMainClient/XFlowerRankNormalList.cs.meta | 12 + .../Scripts/XMainClient/XFlowerReplyDocument.cs | 179 + .../XMainClient/XFlowerReplyDocument.cs.meta | 12 + .../Scripts/XMainClient/XFlowerSendBehaviour.cs | 34 + .../XMainClient/XFlowerSendBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XFlowerSendDocument.cs | 91 + .../XMainClient/XFlowerSendDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFlowerSendView.cs | 321 + .../Scripts/XMainClient/XFlowerSendView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XFlyComponent.cs | 96 + .../Scripts/XMainClient/XFlyComponent.cs.meta | 12 + .../Scripts/XMainClient/XFoodSelectorHandler.cs | 128 + .../XMainClient/XFoodSelectorHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFootFxComponent.cs | 67 + .../Scripts/XMainClient/XFootFxComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XForbidWordMgr.cs | 321 + .../Scripts/XMainClient/XForbidWordMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XForgeAttrInfo.cs | 32 + .../Scripts/XMainClient/XForgeAttrInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XForgeDocument.cs | 409 ++ .../Scripts/XMainClient/XForgeDocument.cs.meta | 12 + .../XMainClient/XFreeTeamVersusLeagueDocument.cs | 639 ++ .../XFreeTeamVersusLeagueDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XFriendData.cs | 57 + .../Assets/Scripts/XMainClient/XFriendData.cs.meta | 12 + .../Scripts/XMainClient/XFriendInfoChange.cs | 21 + .../Scripts/XMainClient/XFriendInfoChange.cs.meta | 12 + .../Scripts/XMainClient/XFriendListEventArgs.cs | 18 + .../XMainClient/XFriendListEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XFriendsBehaviour.cs | 79 + .../Scripts/XMainClient/XFriendsBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XFriendsBlockBehaviour.cs | 18 + .../XMainClient/XFriendsBlockBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XFriendsDocument.cs | 433 ++ .../Scripts/XMainClient/XFriendsDocument.cs.meta | 12 + .../Scripts/XMainClient/XFriendsSearchBehaviour.cs | 40 + .../XMainClient/XFriendsSearchBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XFriendsSearchView.cs | 297 + .../Scripts/XMainClient/XFriendsSearchView.cs.meta | 12 + .../XMainClient/XFriendsSendFlowerBehaviour.cs | 124 + .../XFriendsSendFlowerBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XFriendsStaticData.cs | 75 + .../Scripts/XMainClient/XFriendsStaticData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XFriendsView.cs | 2307 +++++++ .../Scripts/XMainClient/XFriendsView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XFxType.cs | 12 + Client/Assets/Scripts/XMainClient/XFxType.cs.meta | 12 + .../Scripts/XMainClient/XGVGCombatGroupData.cs | 117 + .../XMainClient/XGVGCombatGroupData.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs | 36 + .../Scripts/XMainClient/XGVGGuildInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGame.cs | 615 ++ Client/Assets/Scripts/XMainClient/XGame.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGameEntrance.cs | 246 + .../Scripts/XMainClient/XGameEntrance.cs.meta | 12 + .../Scripts/XMainClient/XGameMallDocument.cs | 470 ++ .../Scripts/XMainClient/XGameMallDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGameSysMgr.cs | 3565 +++++++++++ .../Assets/Scripts/XMainClient/XGameSysMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGameUI.cs | 506 ++ Client/Assets/Scripts/XMainClient/XGameUI.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGausBlur.cs | 50 + .../Assets/Scripts/XMainClient/XGausBlur.cs.meta | 12 + .../Scripts/XMainClient/XGeneralShopBehaviour.cs | 23 + .../XMainClient/XGeneralShopBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGesture.cs | 337 + Client/Assets/Scripts/XMainClient/XGesture.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGlobalConfig.cs | 648 ++ .../Scripts/XMainClient/XGlobalConfig.cs.meta | 12 + .../Assets/Scripts/XMainClient/XGoldGroupData.cs | 156 + .../Scripts/XMainClient/XGoldGroupData.cs.meta | 12 + .../Scripts/XMainClient/XGravityComponent.cs | 27 + .../Scripts/XMainClient/XGravityComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XGyroscope.cs | 206 + .../Assets/Scripts/XMainClient/XGyroscope.cs.meta | 12 + .../Assets/Scripts/XMainClient/XHUDAddEventArgs.cs | 25 + .../Scripts/XMainClient/XHUDAddEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XHUDComponent.cs | 392 ++ .../Scripts/XMainClient/XHUDComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XHUDDoodadArgs.cs | 24 + .../Scripts/XMainClient/XHUDDoodadArgs.cs.meta | 12 + .../Scripts/XMainClient/XHallFameDocument.cs | 319 + .../Scripts/XMainClient/XHallFameDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XHallStage.cs | 39 + .../Assets/Scripts/XMainClient/XHallStage.cs.meta | 12 + .../Scripts/XMainClient/XHeroBattleDocument.cs | 906 +++ .../XMainClient/XHeroBattleDocument.cs.meta | 12 + .../XMainClient/XHeroBattleSkillDocument.cs | 478 ++ .../XMainClient/XHeroBattleSkillDocument.cs.meta | 12 + .../Scripts/XMainClient/XHighlightEventArgs.cs | 20 + .../XMainClient/XHighlightEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XHitEventArgs.cs | 18 + .../Scripts/XMainClient/XHitEventArgs.cs.meta | 12 + .../XMainClient/XHomeCookAndPartyDocument.cs | 693 +++ .../XMainClient/XHomeCookAndPartyDocument.cs.meta | 12 + .../Scripts/XMainClient/XHomeFishingDocument.cs | 511 ++ .../XMainClient/XHomeFishingDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XHudEntry.cs | 37 + .../Assets/Scripts/XMainClient/XHudEntry.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XIDIPDocument.cs | 111 + .../Scripts/XMainClient/XIDIPDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XImageEffectBase.cs | 49 + .../Scripts/XMainClient/XImageEffectBase.cs.meta | 12 + .../XMainClient/XInGuildStateChangedEventArgs.cs | 24 + .../XInGuildStateChangedEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XInheritComponent.cs | 139 + .../Scripts/XMainClient/XInheritComponent.cs.meta | 12 + .../XMainClient/XInitCoolDownAllSkillsArgs.cs | 18 + .../XMainClient/XInitCoolDownAllSkillsArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XInput.cs | 555 ++ Client/Assets/Scripts/XMainClient/XInput.cs.meta | 12 + .../Scripts/XMainClient/XInvitationDocument.cs | 573 ++ .../XMainClient/XInvitationDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XItem.cs | 166 + Client/Assets/Scripts/XMainClient/XItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/XItemChangeAttr.cs | 26 + .../Scripts/XMainClient/XItemChangeAttr.cs.meta | 12 + .../XMainClient/XItemChangeFinishedEventArgs.cs | 18 + .../XItemChangeFinishedEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XItemDrawer.cs | 918 +++ .../Assets/Scripts/XMainClient/XItemDrawer.cs.meta | 12 + .../Assets/Scripts/XMainClient/XItemDrawerMgr.cs | 149 + .../Scripts/XMainClient/XItemDrawerMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XItemDrawerParam.cs | 44 + .../Scripts/XMainClient/XItemDrawerParam.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XItemFilter.cs | 150 + .../Assets/Scripts/XMainClient/XItemFilter.cs.meta | 12 + .../Scripts/XMainClient/XItemMorePowerfulTipMgr.cs | 134 + .../XMainClient/XItemMorePowerfulTipMgr.cs.meta | 12 + .../XMainClient/XItemNumChangedEventArgs.cs | 35 + .../XMainClient/XItemNumChangedEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XItemRequired.cs | 35 + .../Scripts/XMainClient/XItemRequired.cs.meta | 12 + .../Scripts/XMainClient/XItemRequiredCollector.cs | 198 + .../XMainClient/XItemRequiredCollector.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XItemSelector.cs | 147 + .../Scripts/XMainClient/XItemSelector.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XJAComboSkill.cs | 212 + .../Scripts/XMainClient/XJAComboSkill.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XJadeDocument.cs | 1401 +++++ .../Scripts/XMainClient/XJadeDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XJadeInfo.cs | 116 + .../Assets/Scripts/XMainClient/XJadeInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XJadeItem.cs | 13 + .../Assets/Scripts/XMainClient/XJadeItem.cs.meta | 12 + .../Assets/Scripts/XMainClient/XJadeItemDrawer.cs | 79 + .../Scripts/XMainClient/XJadeItemDrawer.cs.meta | 12 + .../Assets/Scripts/XMainClient/XJadeSlotDrawer.cs | 72 + .../Scripts/XMainClient/XJadeSlotDrawer.cs.meta | 12 + .../Scripts/XMainClient/XJoinTeamEventArgs.cs | 21 + .../Scripts/XMainClient/XJoinTeamEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XJokerKingDocument.cs | 593 ++ .../Scripts/XMainClient/XJokerKingDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XKeyboard.cs | 141 + .../Assets/Scripts/XMainClient/XKeyboard.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLFU.cs | 222 + Client/Assets/Scripts/XMainClient/XLFU.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLFUItem.cs | 42 + Client/Assets/Scripts/XMainClient/XLFUItem.cs.meta | 12 + .../Scripts/XMainClient/XLabelSymbolHelper.cs | 246 + .../Scripts/XMainClient/XLabelSymbolHelper.cs.meta | 12 + .../Scripts/XMainClient/XLeagueTeamRankInfo.cs | 44 + .../XMainClient/XLeagueTeamRankInfo.cs.meta | 12 + .../Scripts/XMainClient/XLeagueTeamRankList.cs | 38 + .../XMainClient/XLeagueTeamRankList.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLeaveSceneArgs.cs | 18 + .../Scripts/XMainClient/XLeaveSceneArgs.cs.meta | 12 + .../Scripts/XMainClient/XLeaveTeamEventArgs.cs | 21 + .../XMainClient/XLeaveTeamEventArgs.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLeftTimeCounter.cs | 217 + .../Scripts/XMainClient/XLeftTimeCounter.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs | 132 + .../Assets/Scripts/XMainClient/XLevelAIMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelBaseTask.cs | 21 + .../Scripts/XMainClient/XLevelBaseTask.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelDocument.cs | 493 ++ .../Scripts/XMainClient/XLevelDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLevelDoodad.cs | 36 + .../Scripts/XMainClient/XLevelDoodad.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelDoodadMgr.cs | 1080 ++++ .../Scripts/XMainClient/XLevelDoodadMgr.cs.meta | 12 + .../Scripts/XMainClient/XLevelDynamicInfo.cs | 37 + .../Scripts/XMainClient/XLevelDynamicInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelFinishMgr.cs | 616 ++ .../Scripts/XMainClient/XLevelFinishMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLevelInfo.cs | 32 + .../Assets/Scripts/XMainClient/XLevelInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLevelLose.cs | 11 + .../Assets/Scripts/XMainClient/XLevelLose.cs.meta | 12 + .../Scripts/XMainClient/XLevelLoseCondtion.cs | 13 + .../Scripts/XMainClient/XLevelLoseCondtion.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelRankInfo.cs | 20 + .../Scripts/XMainClient/XLevelRankInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelRankList.cs | 35 + .../Scripts/XMainClient/XLevelRankList.cs.meta | 12 + .../Scripts/XMainClient/XLevelRewardBehaviour.cs | 9 + .../XMainClient/XLevelRewardBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XLevelRewardDocument.cs | 2473 ++++++++ .../XMainClient/XLevelRewardDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelRewardView.cs | 360 ++ .../Scripts/XMainClient/XLevelRewardView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelScriptMgr.cs | 1348 ++++ .../Scripts/XMainClient/XLevelScriptMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelScriptTask.cs | 21 + .../Scripts/XMainClient/XLevelScriptTask.cs.meta | 12 + .../Scripts/XMainClient/XLevelSealDocument.cs | 625 ++ .../Scripts/XMainClient/XLevelSealDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelSealView.cs | 130 + .../Scripts/XMainClient/XLevelSealView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelSpawnInfo.cs | 412 ++ .../Scripts/XMainClient/XLevelSpawnInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelSpawnMgr.cs | 403 ++ .../Scripts/XMainClient/XLevelSpawnMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelSpawnTask.cs | 163 + .../Scripts/XMainClient/XLevelSpawnTask.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLevelState.cs | 144 + .../Assets/Scripts/XMainClient/XLevelState.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLevelStatistics.cs | 338 + .../Scripts/XMainClient/XLevelStatistics.cs.meta | 12 + .../Scripts/XMainClient/XLevelUpStatusBehaviour.cs | 65 + .../XMainClient/XLevelUpStatusBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XLevelUpStatusDocument.cs | 338 + .../XMainClient/XLevelUpStatusDocument.cs.meta | 12 + .../Scripts/XMainClient/XLevelUpStatusView.cs | 209 + .../Scripts/XMainClient/XLevelUpStatusView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLevelWave.cs | 249 + .../Assets/Scripts/XMainClient/XLevelWave.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLevelWin.cs | 11 + .../Assets/Scripts/XMainClient/XLevelWin.cs.meta | 12 + .../Scripts/XMainClient/XLevelWinCondition.cs | 15 + .../Scripts/XMainClient/XLevelWinCondition.cs.meta | 12 + .../Scripts/XMainClient/XLifeTargetDlgBehaviour.cs | 25 + .../XMainClient/XLifeTargetDlgBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLifeTargetView.cs | 163 + .../Scripts/XMainClient/XLifeTargetView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLinkTimeStamp.cs | 18 + .../Scripts/XMainClient/XLinkTimeStamp.cs.meta | 12 + .../Scripts/XMainClient/XLoadEquipEventArgs.cs | 24 + .../XMainClient/XLoadEquipEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XLocateTargetComponent.cs | 252 + .../XMainClient/XLocateTargetComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLoginDocument.cs | 1440 +++++ .../Scripts/XMainClient/XLoginDocument.cs.meta | 12 + .../Scripts/XMainClient/XLoginRewardDocument.cs | 274 + .../XMainClient/XLoginRewardDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLoginRewardView.cs | 468 ++ .../Scripts/XMainClient/XLoginRewardView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLoginStage.cs | 99 + .../Assets/Scripts/XMainClient/XLoginStage.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLoginStep.cs | 13 + .../Assets/Scripts/XMainClient/XLoginStep.cs.meta | 12 + .../Scripts/XMainClient/XLoginTipBehaviour.cs | 19 + .../Scripts/XMainClient/XLoginTipBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLoginTipView.cs | 57 + .../Scripts/XMainClient/XLoginTipView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XLotteryBoxItem.cs | 34 + .../Scripts/XMainClient/XLotteryBoxItem.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLuaDocument.cs | 60 + .../Scripts/XMainClient/XLuaDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XLuaExtion.cs | 276 + .../Assets/Scripts/XMainClient/XLuaExtion.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XMailDocument.cs | 356 ++ .../Scripts/XMainClient/XMailDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XMainClient.csproj | 6514 ++++++++++++++++++++ .../Scripts/XMainClient/XMainClient.csproj.meta | 8 + .../Scripts/XMainClient/XMainInterfaceDocument.cs | 764 +++ .../XMainClient/XMainInterfaceDocument.cs.meta | 12 + .../Scripts/XMainClient/XManipulationComponent.cs | 96 + .../XMainClient/XManipulationComponent.cs.meta | 12 + .../XMainClient/XManipulationOffEventArgs.cs | 21 + .../XMainClient/XManipulationOffEventArgs.cs.meta | 12 + .../XMainClient/XManipulationOnEventArgs.cs | 22 + .../XMainClient/XManipulationOnEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XMentorRelationOpArgs.cs | 25 + .../XMainClient/XMentorRelationOpArgs.cs.meta | 12 + .../Scripts/XMainClient/XMentorshipDocument.cs | 1742 ++++++ .../XMainClient/XMentorshipDocument.cs.meta | 12 + .../Scripts/XMainClient/XMentorshipLimitHandler.cs | 40 + .../XMainClient/XMentorshipLimitHandler.cs.meta | 12 + .../XMainClient/XMentorshipPupilsHandler.cs | 881 +++ .../XMainClient/XMentorshipPupilsHandler.cs.meta | 12 + .../Scripts/XMainClient/XMilitaryRankDocument.cs | 201 + .../XMainClient/XMilitaryRankDocument.cs.meta | 12 + .../Scripts/XMainClient/XMobaBattleDocument.cs | 839 +++ .../XMainClient/XMobaBattleDocument.cs.meta | 12 + .../Scripts/XMainClient/XMobaBillboardComponent.cs | 362 ++ .../XMainClient/XMobaBillboardComponent.cs.meta | 12 + .../Scripts/XMainClient/XMobaEntranceDocument.cs | 284 + .../XMainClient/XMobaEntranceDocument.cs.meta | 12 + .../Scripts/XMainClient/XMobaTowerTargetMgr.cs | 100 + .../XMainClient/XMobaTowerTargetMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XMount.cs | 445 ++ Client/Assets/Scripts/XMainClient/XMount.cs.meta | 12 + .../Assets/Scripts/XMainClient/XMountComponent.cs | 160 + .../Scripts/XMainClient/XMountComponent.cs.meta | 12 + .../XMainClient/XMultiPkLoadingBehaviour.cs | 39 + .../XMainClient/XMultiPkLoadingBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XMultiPkLoadingView.cs | 128 + .../XMainClient/XMultiPkLoadingView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XMyTeamHandler.cs | 1324 ++++ .../Scripts/XMainClient/XMyTeamHandler.cs.meta | 12 + .../Scripts/XMainClient/XMystShopDocument.cs | 76 + .../Scripts/XMainClient/XMystShopDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XMystShopGoods.cs | 8 + .../Scripts/XMainClient/XMystShopGoods.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XMystShopView.cs | 142 + .../Scripts/XMainClient/XMystShopView.cs.meta | 12 + .../Scripts/XMainClient/XNPCFavorDocument.cs | 1596 +++++ .../Scripts/XMainClient/XNPCFavorDocument.cs.meta | 12 + .../Scripts/XMainClient/XNPCFavorFxChangeArgs.cs | 18 + .../XMainClient/XNPCFavorFxChangeArgs.cs.meta | 12 + .../Scripts/XMainClient/XNavigationComponent.cs | 284 + .../XMainClient/XNavigationComponent.cs.meta | 12 + .../Scripts/XMainClient/XNavigationEventArgs.cs | 28 + .../XMainClient/XNavigationEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XNestDocument.cs | 212 + .../Scripts/XMainClient/XNestDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XNetComponent.cs | 471 ++ .../Scripts/XMainClient/XNetComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XNetEventPool.cs | 54 + .../Scripts/XMainClient/XNetEventPool.cs.meta | 12 + .../Assets/Scripts/XMainClient/XNewItemTipsMgr.cs | 111 + .../Scripts/XMainClient/XNewItemTipsMgr.cs.meta | 12 + .../Scripts/XMainClient/XNextDayRewardDocument.cs | 48 + .../XMainClient/XNextDayRewardDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XNormalItem.cs | 13 + .../Assets/Scripts/XMainClient/XNormalItem.cs.meta | 12 + .../Scripts/XMainClient/XNormalItemDrawer.cs | 249 + .../Scripts/XMainClient/XNormalItemDrawer.cs.meta | 12 + .../Scripts/XMainClient/XNormalShopDocument.cs | 899 +++ .../XMainClient/XNormalShopDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XNormalShopGoods.cs | 160 + .../Scripts/XMainClient/XNormalShopGoods.cs.meta | 12 + .../Assets/Scripts/XMainClient/XNormalShopView.cs | 535 ++ .../Scripts/XMainClient/XNormalShopView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XNpc.cs | 254 + Client/Assets/Scripts/XMainClient/XNpc.cs.meta | 12 + .../Assets/Scripts/XMainClient/XNpcAttributes.cs | 111 + .../Scripts/XMainClient/XNpcAttributes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XNumberTween.cs | 135 + .../Scripts/XMainClient/XNumberTween.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XObject.cs | 303 + Client/Assets/Scripts/XMainClient/XObject.cs.meta | 12 + .../Scripts/XMainClient/XOnComboChangeEventArgs.cs | 21 + .../XMainClient/XOnComboChangeEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XOnEntityCreatedArgs.cs | 22 + .../XMainClient/XOnEntityCreatedArgs.cs.meta | 12 + .../Scripts/XMainClient/XOnEntityDeletedArgs.cs | 22 + .../XMainClient/XOnEntityDeletedArgs.cs.meta | 12 + .../XMainClient/XOnEntityTransferEventArgs.cs | 22 + .../XMainClient/XOnEntityTransferEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XOnMountedEventArgs.cs | 18 + .../XMainClient/XOnMountedEventArgs.cs.meta | 12 + .../Assets/Scripts/XMainClient/XOnRevivedArgs.cs | 22 + .../Scripts/XMainClient/XOnRevivedArgs.cs.meta | 12 + .../Scripts/XMainClient/XOnUnMountedEventArgs.cs | 18 + .../XMainClient/XOnUnMountedEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XOnlineRewardBehaviour.cs | 37 + .../XMainClient/XOnlineRewardBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XOnlineRewardDocument.cs | 119 + .../XMainClient/XOnlineRewardDocument.cs.meta | 12 + .../Scripts/XMainClient/XOnlineRewardView.cs | 169 + .../Scripts/XMainClient/XOnlineRewardView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XOperateMode.cs | 10 + .../Scripts/XMainClient/XOperateMode.cs.meta | 12 + .../XMainClient/XOperatingActivityBehaviour.cs | 31 + .../XOperatingActivityBehaviour.cs.meta | 12 + .../XMainClient/XOperatingActivityDocument.cs | 654 ++ .../XMainClient/XOperatingActivityDocument.cs.meta | 12 + .../Scripts/XMainClient/XOperatingActivityView.cs | 494 ++ .../XMainClient/XOperatingActivityView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XOperationData.cs | 77 + .../Scripts/XMainClient/XOperationData.cs.meta | 12 + .../Assets/Scripts/XMainClient/XOperationMode.cs | 12 + .../Scripts/XMainClient/XOperationMode.cs.meta | 12 + .../Assets/Scripts/XMainClient/XOperationRecord.cs | 304 + .../Scripts/XMainClient/XOperationRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XOpposer.cs | 44 + Client/Assets/Scripts/XMainClient/XOpposer.cs.meta | 12 + .../XMainClient/XOptionsBattleDetailHandler.cs | 596 ++ .../XOptionsBattleDetailHandler.cs.meta | 12 + .../Scripts/XMainClient/XOptionsBattleHandler.cs | 287 + .../XMainClient/XOptionsBattleHandler.cs.meta | 12 + .../Scripts/XMainClient/XOptionsBehaviour.cs | 286 + .../Scripts/XMainClient/XOptionsBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XOptionsDefine.cs | 130 + .../Scripts/XMainClient/XOptionsDefine.cs.meta | 12 + .../Assets/Scripts/XMainClient/XOptionsDocument.cs | 1257 ++++ .../Scripts/XMainClient/XOptionsDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XOptionsView.cs | 1094 ++++ .../Scripts/XMainClient/XOptionsView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XOrderData.cs | 16 + .../Assets/Scripts/XMainClient/XOrderData.cs.meta | 12 + .../XMainClient/XOtherPlayerInfoBehaviour.cs | 186 + .../XMainClient/XOtherPlayerInfoBehaviour.cs.meta | 12 + .../XMainClient/XOtherPlayerInfoDocument.cs | 127 + .../XMainClient/XOtherPlayerInfoDocument.cs.meta | 12 + .../Scripts/XMainClient/XOtherPlayerInfoView.cs | 1365 ++++ .../XMainClient/XOtherPlayerInfoView.cs.meta | 12 + .../Scripts/XMainClient/XOthersAttributes.cs | 114 + .../Scripts/XMainClient/XOthersAttributes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XOutLookAttr.cs | 54 + .../Scripts/XMainClient/XOutLookAttr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XOutlookData.cs | 255 + .../Scripts/XMainClient/XOutlookData.cs.meta | 12 + .../Assets/Scripts/XMainClient/XOutlookHelper.cs | 322 + .../Scripts/XMainClient/XOutlookHelper.cs.meta | 12 + .../Assets/Scripts/XMainClient/XOutlookSprite.cs | 9 + .../Scripts/XMainClient/XOutlookSprite.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XOutlookState.cs | 30 + .../Scripts/XMainClient/XOutlookState.cs.meta | 12 + .../Scripts/XMainClient/XPKInvitationBehaviour.cs | 29 + .../XMainClient/XPKInvitationBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XPKInvitationDocument.cs | 220 + .../XMainClient/XPKInvitationDocument.cs.meta | 12 + .../Scripts/XMainClient/XPKInvitationView.cs | 251 + .../Scripts/XMainClient/XPKInvitationView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPPTDocument.cs | 30 + .../Scripts/XMainClient/XPPTDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs | 20 + .../Scripts/XMainClient/XPPTRankInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPPTRankList.cs | 35 + .../Scripts/XMainClient/XPPTRankList.cs.meta | 12 + .../Scripts/XMainClient/XPVPActivityDocument.cs | 40 + .../XMainClient/XPVPActivityDocument.cs.meta | 12 + .../Scripts/XMainClient/XPandoraSDKDocument.cs | 448 ++ .../XMainClient/XPandoraSDKDocument.cs.meta | 12 + .../Scripts/XMainClient/XPandoraSDKPopView.cs | 96 + .../Scripts/XMainClient/XPandoraSDKPopView.cs.meta | 12 + .../XMainClient/XPandoraSDKPopViewBehaviour.cs | 16 + .../XPandoraSDKPopViewBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XPartnerDocument.cs | 655 ++ .../Scripts/XMainClient/XPartnerDocument.cs.meta | 12 + .../Scripts/XMainClient/XPatfaceBehaviour.cs | 19 + .../Scripts/XMainClient/XPatfaceBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPatfaceView.cs | 102 + .../Scripts/XMainClient/XPatfaceView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPatrol.cs | 335 + Client/Assets/Scripts/XMainClient/XPatrol.cs.meta | 12 + .../Scripts/XMainClient/XPersonalCareerDocument.cs | 154 + .../XMainClient/XPersonalCareerDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPet.cs | 221 + Client/Assets/Scripts/XMainClient/XPet.cs.meta | 12 + .../Assets/Scripts/XMainClient/XPetActionFile.cs | 17 + .../Scripts/XMainClient/XPetActionFile.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPetDocument.cs | 1706 +++++ .../Scripts/XMainClient/XPetDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPetRankInfo.cs | 23 + .../Scripts/XMainClient/XPetRankInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPetRankList.cs | 17 + .../Scripts/XMainClient/XPetRankList.cs.meta | 12 + .../Assets/Scripts/XMainClient/XPetSkillHandler.cs | 338 + .../Scripts/XMainClient/XPetSkillHandler.cs.meta | 12 + .../Scripts/XMainClient/XPieceWiseDataMgr.cs | 103 + .../Scripts/XMainClient/XPieceWiseDataMgr.cs.meta | 12 + .../Scripts/XMainClient/XPkLoadingBehaviour.cs | 71 + .../XMainClient/XPkLoadingBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XPkLoadingView.cs | 194 + .../Scripts/XMainClient/XPkLoadingView.cs.meta | 12 + .../XMainClient/XPlatformAbilityDocument.cs | 146 + .../XMainClient/XPlatformAbilityDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XPlaySoundArgs.cs | 43 + .../Scripts/XMainClient/XPlaySoundArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPlayer.cs | 385 ++ Client/Assets/Scripts/XMainClient/XPlayer.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPlayerAction.cs | 247 + .../Scripts/XMainClient/XPlayerAction.cs.meta | 12 + .../Scripts/XMainClient/XPlayerAttributes.cs | 143 + .../Scripts/XMainClient/XPlayerAttributes.cs.meta | 12 + .../XMainClient/XPlayerLevelChangedEventArgs.cs | 24 + .../XPlayerLevelChangedEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPostEffect.cs | 12 + .../Assets/Scripts/XMainClient/XPostEffect.cs.meta | 12 + .../Assets/Scripts/XMainClient/XPostEffectMgr.cs | 94 + .../Scripts/XMainClient/XPostEffectMgr.cs.meta | 12 + .../Scripts/XMainClient/XPowerPointCalculator.cs | 257 + .../XMainClient/XPowerPointCalculator.cs.meta | 12 + .../Assets/Scripts/XMainClient/XPrefixAttribute.cs | 13 + .../Scripts/XMainClient/XPrefixAttribute.cs.meta | 12 + .../Scripts/XMainClient/XPrefixAttributes.cs | 25 + .../Scripts/XMainClient/XPrefixAttributes.cs.meta | 12 + .../Scripts/XMainClient/XPrerogativeChangeArgs.cs | 20 + .../XMainClient/XPrerogativeChangeArgs.cs.meta | 12 + .../Scripts/XMainClient/XPrerogativeDocument.cs | 383 ++ .../XMainClient/XPrerogativeDocument.cs.meta | 12 + .../Scripts/XMainClient/XPresentComponent.cs | 173 + .../Scripts/XMainClient/XPresentComponent.cs.meta | 12 + .../XMainClient/XProfessionChangeDocument.cs | 92 + .../XMainClient/XProfessionChangeDocument.cs.meta | 12 + .../Scripts/XMainClient/XProfessionSkillMgr.cs | 465 ++ .../XMainClient/XProfessionSkillMgr.cs.meta | 12 + .../Scripts/XMainClient/XProjectDamageEventArgs.cs | 27 + .../XMainClient/XProjectDamageEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPuppet.cs | 29 + Client/Assets/Scripts/XMainClient/XPuppet.cs.meta | 12 + .../Scripts/XMainClient/XPurchaseBehaviour.cs | 47 + .../Scripts/XMainClient/XPurchaseBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XPurchaseDocument.cs | 243 + .../Scripts/XMainClient/XPurchaseDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs | 22 + .../Scripts/XMainClient/XPurchaseInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XPurchaseView.cs | 347 ++ .../Scripts/XMainClient/XPurchaseView.cs.meta | 12 + .../Scripts/XMainClient/XPushSubscribeDocument.cs | 200 + .../XMainClient/XPushSubscribeDocument.cs.meta | 12 + .../Scripts/XMainClient/XQQVipDesBehaviour.cs | 43 + .../Scripts/XMainClient/XQQVipDesBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XQQVipDesView.cs | 315 + .../Scripts/XMainClient/XQQVipDesView.cs.meta | 12 + .../XQQWXGameCenterPrivilegeBehaviour.cs | 35 + .../XQQWXGameCenterPrivilegeBehaviour.cs.meta | 12 + .../XMainClient/XQQWXGameCenterPrivilegeView.cs | 68 + .../XQQWXGameCenterPrivilegeView.cs.meta | 12 + .../Scripts/XMainClient/XQualifyingBehaviour.cs | 126 + .../XMainClient/XQualifyingBehaviour.cs.meta | 12 + .../XQualifyingChallengeRecordWindow.cs | 63 + .../XQualifyingChallengeRecordWindow.cs.meta | 12 + .../Scripts/XMainClient/XQualifyingDocument.cs | 791 +++ .../XMainClient/XQualifyingDocument.cs.meta | 12 + .../XQualifyingLastSeasonRankBehavior.cs | 27 + .../XQualifyingLastSeasonRankBehavior.cs.meta | 12 + .../XMainClient/XQualifyingLastSeasonRankDlg.cs | 97 + .../XQualifyingLastSeasonRankDlg.cs.meta | 12 + .../XMainClient/XQualifyingPointRewardWindow.cs | 45 + .../XQualifyingPointRewardWindow.cs.meta | 12 + .../Scripts/XMainClient/XQualifyingRankInfo.cs | 29 + .../XMainClient/XQualifyingRankInfo.cs.meta | 12 + .../Scripts/XMainClient/XQualifyingRankList.cs | 17 + .../XMainClient/XQualifyingRankList.cs.meta | 12 + .../XMainClient/XQualifyingRankRewardWindow.cs | 48 + .../XQualifyingRankRewardWindow.cs.meta | 12 + .../Scripts/XMainClient/XQualifyingRankWindow.cs | 42 + .../XMainClient/XQualifyingRankWindow.cs.meta | 12 + .../XMainClient/XQualifyingRecordsHandler.cs | 190 + .../XMainClient/XQualifyingRecordsHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/XQualifyingView.cs | 717 +++ .../Scripts/XMainClient/XQualifyingView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XQualitySetting.cs | 608 ++ .../Scripts/XMainClient/XQualitySetting.cs.meta | 12 + .../Scripts/XMainClient/XQueryServerState.cs | 250 + .../Scripts/XMainClient/XQueryServerState.cs.meta | 12 + .../Scripts/XMainClient/XQuickReplyDocument.cs | 112 + .../XMainClient/XQuickReplyDocument.cs.meta | 12 + .../XMainClient/XQuickTimeEventComponent.cs | 178 + .../XMainClient/XQuickTimeEventComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRaceDocument.cs | 240 + .../Scripts/XMainClient/XRaceDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRadialBlur.cs | 19 + .../Assets/Scripts/XMainClient/XRadialBlur.cs.meta | 12 + .../Assets/Scripts/XMainClient/XRadioDocument.cs | 254 + .../Scripts/XMainClient/XRadioDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs | 26 + .../Scripts/XMainClient/XRandAttrInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XRankBehaviour.cs | 120 + .../Scripts/XMainClient/XRankBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRankDocument.cs | 677 ++ .../Scripts/XMainClient/XRankDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRankType.cs | 39 + .../Assets/Scripts/XMainClient/XRankType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRankView.cs | 1481 +++++ .../Assets/Scripts/XMainClient/XRankView.cs.meta | 12 + .../Scripts/XMainClient/XRealDeadEventArgs.cs | 26 + .../Scripts/XMainClient/XRealDeadEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XRechargeDocument.cs | 908 +++ .../Scripts/XMainClient/XRechargeDocument.cs.meta | 12 + .../Scripts/XMainClient/XReconnectedEventArgs.cs | 23 + .../XMainClient/XReconnectedEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XReconnection.cs | 269 + .../Scripts/XMainClient/XReconnection.cs.meta | 12 + .../Scripts/XMainClient/XRecycleItemDocument.cs | 337 + .../XMainClient/XRecycleItemDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XReinforceInfo.cs | 40 + .../Scripts/XMainClient/XReinforceInfo.cs.meta | 12 + .../Scripts/XMainClient/XRemoveItemEventArgs.cs | 40 + .../XMainClient/XRemoveItemEventArgs.cs.meta | 12 + .../Assets/Scripts/XMainClient/XRenameDocument.cs | 195 + .../Scripts/XMainClient/XRenameDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XRenderComponent.cs | 819 +++ .../Scripts/XMainClient/XRenderComponent.cs.meta | 12 + .../Assets/Scripts/XMainClient/XRequestDocument.cs | 124 + .../Scripts/XMainClient/XRequestDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XReviveDocument.cs | 317 + .../Scripts/XMainClient/XReviveDocument.cs.meta | 12 + .../Scripts/XMainClient/XRewardDlgBehaviour.cs | 42 + .../XMainClient/XRewardDlgBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRiftDocument.cs | 500 ++ .../Scripts/XMainClient/XRiftDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs | 24 + .../Scripts/XMainClient/XRiftRankInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRiftRankList.cs | 17 + .../Scripts/XMainClient/XRiftRankList.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRole.cs | 213 + Client/Assets/Scripts/XMainClient/XRole.cs.meta | 12 + .../Assets/Scripts/XMainClient/XRoleAttributes.cs | 117 + .../Scripts/XMainClient/XRoleAttributes.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XRollDocument.cs | 95 + .../Scripts/XMainClient/XRollDocument.cs.meta | 12 + .../Scripts/XMainClient/XRotationComponent.cs | 186 + .../Scripts/XMainClient/XRotationComponent.cs.meta | 12 + .../Scripts/XMainClient/XRotationEventArgs.cs | 25 + .../Scripts/XMainClient/XRotationEventArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XScene.cs | 697 +++ Client/Assets/Scripts/XMainClient/XScene.cs.meta | 12 + .../XMainClient/XSceneDamageRankDocument.cs | 151 + .../XMainClient/XSceneDamageRankDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSceneLoader.cs | 630 ++ .../Scripts/XMainClient/XSceneLoader.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSceneMgr.cs | 745 +++ .../Assets/Scripts/XMainClient/XSceneMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSceneTransfer.cs | 183 + .../Scripts/XMainClient/XSceneTransfer.cs.meta | 12 + .../Assets/Scripts/XMainClient/XScreenShotMgr.cs | 456 ++ .../Scripts/XMainClient/XScreenShotMgr.cs.meta | 12 + .../XMainClient/XScreenShotShareDocument.cs | 211 + .../XMainClient/XScreenShotShareDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSecurityAIInfo.cs | 114 + .../Scripts/XMainClient/XSecurityAIInfo.cs.meta | 12 + .../Scripts/XMainClient/XSecurityAttributeInfo.cs | 209 + .../XMainClient/XSecurityAttributeInfo.cs.meta | 12 + .../Scripts/XMainClient/XSecurityBuffInfo.cs | 292 + .../Scripts/XMainClient/XSecurityBuffInfo.cs.meta | 12 + .../Scripts/XMainClient/XSecurityDamageInfo.cs | 118 + .../XMainClient/XSecurityDamageInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSecurityHPInfo.cs | 34 + .../Scripts/XMainClient/XSecurityHPInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSecurityMobInfo.cs | 138 + .../Scripts/XMainClient/XSecurityMobInfo.cs.meta | 12 + .../Scripts/XMainClient/XSecuritySkillInfo.cs | 417 ++ .../Scripts/XMainClient/XSecuritySkillInfo.cs.meta | 12 + .../Scripts/XMainClient/XSecurityStatistics.cs | 349 ++ .../XMainClient/XSecurityStatistics.cs.meta | 12 + .../XMainClient/XSelectCharacterDocument.cs | 105 + .../XMainClient/XSelectCharacterDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSelectcharStage.cs | 227 + .../Scripts/XMainClient/XSelectcharStage.cs.meta | 12 + .../Assets/Scripts/XMainClient/XServerTimeMgr.cs | 81 + .../Scripts/XMainClient/XServerTimeMgr.cs.meta | 12 + .../Scripts/XMainClient/XSevenLoginDocument.cs | 325 + .../XMainClient/XSevenLoginDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XShadowComponent.cs | 176 + .../Scripts/XMainClient/XShadowComponent.cs.meta | 12 + .../Scripts/XMainClient/XShopPurchaseView.cs | 322 + .../Scripts/XMainClient/XShopPurchaseView.cs.meta | 12 + .../Scripts/XMainClient/XShopTabCategoryHandler.cs | 155 + .../XMainClient/XShopTabCategoryHandler.cs.meta | 12 + .../XMainClient/XShowGetAchivementTipBehaviour.cs | 33 + .../XShowGetAchivementTipBehaviour.cs.meta | 12 + .../XMainClient/XShowGetAchivementTipDocument.cs | 101 + .../XShowGetAchivementTipDocument.cs.meta | 12 + .../XMainClient/XShowGetAchivementTipView.cs | 224 + .../XMainClient/XShowGetAchivementTipView.cs.meta | 12 + .../Scripts/XMainClient/XShowGetItemBehaviour.cs | 21 + .../XMainClient/XShowGetItemBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XShowGetItemDocument.cs | 674 ++ .../XMainClient/XShowGetItemDocument.cs.meta | 12 + .../XMainClient/XShowSameQualityItemsBehavior.cs | 34 + .../XShowSameQualityItemsBehavior.cs.meta | 12 + .../XMainClient/XShowSameQualityItemsView.cs | 344 ++ .../XMainClient/XShowSameQualityItemsView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XShowUpComponent.cs | 143 + .../Scripts/XMainClient/XShowUpComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSirJoystick.cs | 174 + .../Scripts/XMainClient/XSirJoystick.cs.meta | 12 + .../Scripts/XMainClient/XSkyArenaBattleDocument.cs | 273 + .../XMainClient/XSkyArenaBattleDocument.cs.meta | 12 + .../XMainClient/XSkyArenaEntranceDocument.cs | 142 + .../XMainClient/XSkyArenaEntranceDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSkyArenaList.cs | 17 + .../Scripts/XMainClient/XSkyArenaList.cs.meta | 12 + .../Scripts/XMainClient/XSkyArenaRankInfo.cs | 28 + .../Scripts/XMainClient/XSkyArenaRankInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSmallChatInfo.cs | 12 + .../Scripts/XMainClient/XSmallChatInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSmeltDocument.cs | 1197 ++++ .../Scripts/XMainClient/XSmeltDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs | 55 + .../Scripts/XMainClient/XSmeltingInfo.cs.meta | 12 + .../Scripts/XMainClient/XSpectateDocument.cs | 382 ++ .../Scripts/XMainClient/XSpectateDocument.cs.meta | 12 + .../XMainClient/XSpectateLevelRewardDocument.cs | 214 + .../XSpectateLevelRewardDocument.cs.meta | 12 + .../Scripts/XMainClient/XSpectateSceneDocument.cs | 1035 ++++ .../XMainClient/XSpectateSceneDocument.cs.meta | 12 + .../XMainClient/XSpectateTeamMonitorHandler.cs | 156 + .../XSpectateTeamMonitorHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSpotOnEventArgs.cs | 24 + .../Scripts/XMainClient/XSpotOnEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XSpriteAwakeHandler.cs | 147 + .../XMainClient/XSpriteAwakeHandler.cs.meta | 12 + .../Scripts/XMainClient/XSpriteDetailBehaviour.cs | 23 + .../XMainClient/XSpriteDetailBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XSpriteDetailView.cs | 126 + .../Scripts/XMainClient/XSpriteDetailView.cs.meta | 12 + .../XMainClient/XSpriteIllustrationHandler.cs | 273 + .../XMainClient/XSpriteIllustrationHandler.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSpriteRankInfo.cs | 18 + .../Scripts/XMainClient/XSpriteRankInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSpriteRankList.cs | 46 + .../Scripts/XMainClient/XSpriteRankList.cs.meta | 12 + .../Scripts/XMainClient/XSpriteShowBehaviour.cs | 29 + .../XMainClient/XSpriteShowBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSpriteShowView.cs | 200 + .../Scripts/XMainClient/XSpriteShowView.cs.meta | 12 + .../XMainClient/XSpriteSkillTipBehaviour.cs | 76 + .../XMainClient/XSpriteSkillTipBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XSpriteSkillTipDlg.cs | 106 + .../Scripts/XMainClient/XSpriteSkillTipDlg.cs.meta | 12 + .../Scripts/XMainClient/XSpriteSystemDocument.cs | 1560 +++++ .../XMainClient/XSpriteSystemDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XStage.cs | 109 + Client/Assets/Scripts/XMainClient/XStage.cs.meta | 12 + .../Assets/Scripts/XMainClient/XStageProgress.cs | 259 + .../Scripts/XMainClient/XStageProgress.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XStateDefine.cs | 18 + .../Scripts/XMainClient/XStateDefine.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XStateMachine.cs | 353 ++ .../Scripts/XMainClient/XStateMachine.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XStateMgr.cs | 32 + .../Assets/Scripts/XMainClient/XStateMgr.cs.meta | 12 + .../Assets/Scripts/XMainClient/XStaticDataBase.cs | 33 + .../Scripts/XMainClient/XStaticDataBase.cs.meta | 12 + .../XMainClient/XStaticSecurityStatistics.cs | 230 + .../XMainClient/XStaticSecurityStatistics.cs.meta | 12 + .../XMainClient/XStrengthPresevationOffArgs.cs | 21 + .../XStrengthPresevationOffArgs.cs.meta | 12 + .../XMainClient/XStrengthPresevationOnArgs.cs | 21 + .../XMainClient/XStrengthPresevationOnArgs.cs.meta | 12 + .../Scripts/XMainClient/XStringDefineProxy.cs | 146 + .../Scripts/XMainClient/XStringDefineProxy.cs.meta | 12 + .../Scripts/XMainClient/XSubSysRedPointMgr.cs | 70 + .../Scripts/XMainClient/XSubSysRedPointMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSubstance.cs | 37 + .../Assets/Scripts/XMainClient/XSubstance.cs.meta | 12 + .../Scripts/XMainClient/XSuperArmorComponent.cs | 221 + .../XMainClient/XSuperArmorComponent.cs.meta | 12 + .../Scripts/XMainClient/XSuperRiskDocument.cs | 1075 ++++ .../Scripts/XMainClient/XSuperRiskDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs | 100 + .../Scripts/XMainClient/XSuperRiskMap.cs.meta | 12 + .../XMainClient/XSuperRiskMapDynamicInfo.cs | 8 + .../XMainClient/XSuperRiskMapDynamicInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs | 99 + .../Scripts/XMainClient/XSuperRiskMapMgr.cs.meta | 12 + .../Scripts/XMainClient/XSuperRiskMapNode.cs | 13 + .../Scripts/XMainClient/XSuperRiskMapNode.cs.meta | 12 + .../Scripts/XMainClient/XSuperRiskMapRenderer.cs | 26 + .../XMainClient/XSuperRiskMapRenderer.cs.meta | 12 + .../Scripts/XMainClient/XSuperRiskMapStaticInfo.cs | 27 + .../XMainClient/XSuperRiskMapStaticInfo.cs.meta | 12 + .../Scripts/XMainClient/XSwapItemEventArgs.cs | 27 + .../Scripts/XMainClient/XSwapItemEventArgs.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSweepBehaviour.cs | 44 + .../Scripts/XMainClient/XSweepBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSweepDocument.cs | 315 + .../Scripts/XMainClient/XSweepDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSweepView.cs | 228 + .../Assets/Scripts/XMainClient/XSweepView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSwitchSight.cs | 71 + .../Scripts/XMainClient/XSwitchSight.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSyncDebug.cs | 50 + .../Assets/Scripts/XMainClient/XSyncDebug.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSyncDoodadInfo.cs | 15 + .../Scripts/XMainClient/XSyncDoodadInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSysDefine.cs | 475 ++ .../Assets/Scripts/XMainClient/XSysDefine.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs | 13 + .../Scripts/XMainClient/XSysDefineMgr.cs.meta | 12 + .../Scripts/XMainClient/XSystemRewardData.cs | 68 + .../Scripts/XMainClient/XSystemRewardData.cs.meta | 12 + .../Scripts/XMainClient/XSystemRewardDocument.cs | 328 + .../XMainClient/XSystemRewardDocument.cs.meta | 12 + .../Scripts/XMainClient/XSystemRewardState.cs | 11 + .../Scripts/XMainClient/XSystemRewardState.cs.meta | 12 + .../Scripts/XMainClient/XSystemTipBehaviour.cs | 18 + .../XMainClient/XSystemTipBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XSystemTipDocument.cs | 71 + .../Scripts/XMainClient/XSystemTipDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XSystemTipView.cs | 136 + .../Scripts/XMainClient/XSystemTipView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs | 58 + .../Scripts/XMainClient/XTakeCostMgr.cs.meta | 12 + .../Scripts/XMainClient/XTargetRewardDocument.cs | 310 + .../XMainClient/XTargetRewardDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTargetState.cs | 11 + .../Scripts/XMainClient/XTargetState.cs.meta | 12 + .../Assets/Scripts/XMainClient/XTaskBehaviour.cs | 51 + .../Scripts/XMainClient/XTaskBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTaskDialog.cs | 42 + .../Assets/Scripts/XMainClient/XTaskDialog.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTaskDocument.cs | 1085 ++++ .../Scripts/XMainClient/XTaskDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTaskInfo.cs | 282 + .../Assets/Scripts/XMainClient/XTaskInfo.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTaskRecord.cs | 97 + .../Assets/Scripts/XMainClient/XTaskRecord.cs.meta | 12 + .../Scripts/XMainClient/XTaskStatusChangeArgs.cs | 23 + .../XMainClient/XTaskStatusChangeArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTaskType.cs | 13 + .../Assets/Scripts/XMainClient/XTaskType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTaskView.cs | 294 + .../Assets/Scripts/XMainClient/XTaskView.cs.meta | 12 + .../Scripts/XMainClient/XTempActivityDocument.cs | 662 ++ .../XMainClient/XTempActivityDocument.cs.meta | 12 + .../Scripts/XMainClient/XTerritoryComponent.cs | 240 + .../XMainClient/XTerritoryComponent.cs.meta | 12 + .../Scripts/XMainClient/XThemeActivityBehaviour.cs | 28 + .../XMainClient/XThemeActivityBehaviour.cs.meta | 12 + .../Scripts/XMainClient/XThemeActivityDocument.cs | 286 + .../XMainClient/XThemeActivityDocument.cs.meta | 12 + .../Scripts/XMainClient/XThemeActivityView.cs | 328 + .../Scripts/XMainClient/XThemeActivityView.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTimeProfiler.cs | 53 + .../Scripts/XMainClient/XTimeProfiler.cs.meta | 12 + .../Assets/Scripts/XMainClient/XTimeoutHandler.cs | 9 + .../Scripts/XMainClient/XTimeoutHandler.cs.meta | 12 + .../Scripts/XMainClient/XTimeoutLogHandler.cs | 15 + .../Scripts/XMainClient/XTimeoutLogHandler.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTitleBar.cs | 107 + .../Assets/Scripts/XMainClient/XTitleBar.cs.meta | 12 + .../Assets/Scripts/XMainClient/XTitleDocument.cs | 295 + .../Scripts/XMainClient/XTitleDocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XTitleInfoChange.cs | 18 + .../Scripts/XMainClient/XTitleInfoChange.cs.meta | 12 + .../Scripts/XMainClient/XTransformDocument.cs | 243 + .../Scripts/XMainClient/XTransformDocument.cs.meta | 12 + .../Scripts/XMainClient/XTriggerCondition.cs | 64 + .../Scripts/XMainClient/XTriggerCondition.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTssSdk.cs | 22 + Client/Assets/Scripts/XMainClient/XTssSdk.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTuple.2.cs | 24 + Client/Assets/Scripts/XMainClient/XTuple.2.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTuple.3.cs | 27 + Client/Assets/Scripts/XMainClient/XTuple.3.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XTuple.cs | 21 + Client/Assets/Scripts/XMainClient/XTuple.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XUICacheImage.cs | 269 + .../Scripts/XMainClient/XUICacheImage.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XUICacheMgr.cs | 63 + .../Assets/Scripts/XMainClient/XUICacheMgr.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XUltraSkill.cs | 15 + .../Assets/Scripts/XMainClient/XUltraSkill.cs.meta | 12 + .../Scripts/XMainClient/XUnitAppearanceTeam.cs | 35 + .../XMainClient/XUnitAppearanceTeam.cs.meta | 12 + .../Scripts/XMainClient/XUnloadEquipEventArgs.cs | 26 + .../XMainClient/XUnloadEquipEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XUpdateItemEventArgs.cs | 21 + .../XMainClient/XUpdateItemEventArgs.cs.meta | 12 + .../XMainClient/XVirtualItemChangedEventArgs.cs | 38 + .../XVirtualItemChangedEventArgs.cs.meta | 12 + .../Scripts/XMainClient/XVoiceQABehaviour.cs | 84 + .../Scripts/XMainClient/XVoiceQABehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XVoiceQADocument.cs | 401 ++ .../Scripts/XMainClient/XVoiceQADocument.cs.meta | 12 + .../Assets/Scripts/XMainClient/XWeddingDocument.cs | 1466 +++++ .../Scripts/XMainClient/XWeddingDocument.cs.meta | 12 + .../Scripts/XMainClient/XWeekNestDocument.cs | 277 + .../Scripts/XMainClient/XWeekNestDocument.cs.meta | 12 + .../Scripts/XMainClient/XWeekendPartyDocument.cs | 382 ++ .../XMainClient/XWeekendPartyDocument.cs.meta | 12 + .../Scripts/XMainClient/XWelfareBehaviour.cs | 28 + .../Scripts/XMainClient/XWelfareBehaviour.cs.meta | 12 + .../Assets/Scripts/XMainClient/XWelfareDocument.cs | 1794 ++++++ .../Scripts/XMainClient/XWelfareDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XWelfareView.cs | 613 ++ .../Scripts/XMainClient/XWelfareView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XWoozyComponent.cs | 347 ++ .../Scripts/XMainClient/XWoozyComponent.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs | 21 + .../Scripts/XMainClient/XWoozyOffArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs | 21 + .../Scripts/XMainClient/XWoozyOnArgs.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XWorldStage.cs | 61 + .../Assets/Scripts/XMainClient/XWorldStage.cs.meta | 12 + .../Scripts/XMainClient/XYYMallCategoryHandler.cs | 144 + .../XMainClient/XYYMallCategoryHandler.cs.meta | 12 + .../Scripts/XMainClient/XYorozuyaDocument.cs | 107 + .../Scripts/XMainClient/XYorozuyaDocument.cs.meta | 12 + Client/Assets/Scripts/XMainClient/XYuyinView.cs | 463 ++ .../Assets/Scripts/XMainClient/XYuyinView.cs.meta | 12 + .../Assets/Scripts/XMainClient/XequipFuseInfo.cs | 17 + .../Scripts/XMainClient/XequipFuseInfo.cs.meta | 12 + .../Assets/Scripts/XMainClient/YYMallCategory.cs | 12 + .../Scripts/XMainClient/YYMallCategory.cs.meta | 12 + .../Scripts/XMainClient/YorozuyaBehaviour.cs | 24 + .../Scripts/XMainClient/YorozuyaBehaviour.cs.meta | 12 + Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs | 153 + .../Assets/Scripts/XMainClient/YorozuyaDlg.cs.meta | 12 + Client/Assets/Scripts/XMainClient/YuyinIconType.cs | 16 + .../Scripts/XMainClient/YuyinIconType.cs.meta | 12 + Client/Assets/Scripts/XMainClient/academic_show.cs | 13 + .../Scripts/XMainClient/academic_show.cs.meta | 12 + .../Scripts/XMainClient/academic_slash_show.cs | 47 + .../XMainClient/academic_slash_show.cs.meta | 12 + Client/Assets/Scripts/XMainClient/archer_show.cs | 13 + .../Assets/Scripts/XMainClient/archer_show.cs.meta | 12 + .../Scripts/XMainClient/archer_slash_show.cs | 47 + .../Scripts/XMainClient/archer_slash_show.cs.meta | 12 + Client/Assets/Scripts/XMainClient/assassin_show.cs | 13 + .../Scripts/XMainClient/assassin_show.cs.meta | 12 + .../Scripts/XMainClient/assassin_slash_show.cs | 47 + .../XMainClient/assassin_slash_show.cs.meta | 12 + Client/Assets/Scripts/XMainClient/cleric_show.cs | 13 + .../Assets/Scripts/XMainClient/cleric_show.cs.meta | 12 + .../Scripts/XMainClient/cleric_slash_show.cs | 47 + .../Scripts/XMainClient/cleric_slash_show.cs.meta | 12 + .../Assets/Scripts/XMainClient/first_slash_show.cs | 46 + .../Scripts/XMainClient/first_slash_show.cs.meta | 12 + .../Assets/Scripts/XMainClient/geraint_fly_away.cs | 45 + .../Scripts/XMainClient/geraint_fly_away.cs.meta | 12 + .../Scripts/XMainClient/geraint_get_wings.cs | 72 + .../Scripts/XMainClient/geraint_get_wings.cs.meta | 12 + Client/Assets/Scripts/XMainClient/heromvp.cs | 145 + Client/Assets/Scripts/XMainClient/heromvp.cs.meta | 12 + Client/Assets/Scripts/XMainClient/kali_show.cs | 13 + .../Assets/Scripts/XMainClient/kali_show.cs.meta | 12 + .../Assets/Scripts/XMainClient/kali_slash_show.cs | 47 + .../Scripts/XMainClient/kali_slash_show.cs.meta | 12 + Client/Assets/Scripts/XMainClient/mobaend.cs | 56 + Client/Assets/Scripts/XMainClient/mobaend.cs.meta | 12 + Client/Assets/Scripts/XMainClient/newbie_level.cs | 32 + .../Scripts/XMainClient/newbie_level.cs.meta | 12 + .../Assets/Scripts/XMainClient/newbie_level_end.cs | 18 + .../Scripts/XMainClient/newbie_level_end.cs.meta | 12 + .../Scripts/XMainClient/partnerShopRecord.cs | 77 + .../Scripts/XMainClient/partnerShopRecord.cs.meta | 12 + Client/Assets/Scripts/XMainClient/reportType.cs | 11 + .../Assets/Scripts/XMainClient/reportType.cs.meta | 12 + .../Scripts/XMainClient/second_slash_show.cs | 123 + .../Scripts/XMainClient/second_slash_show.cs.meta | 12 + .../Assets/Scripts/XMainClient/sorceress_show.cs | 13 + .../Scripts/XMainClient/sorceress_show.cs.meta | 12 + .../Scripts/XMainClient/sorceress_slash_show.cs | 80 + .../XMainClient/sorceress_slash_show.cs.meta | 12 + Client/Assets/Scripts/XMainClient/warrior_show.cs | 13 + .../Scripts/XMainClient/warrior_show.cs.meta | 12 + .../Scripts/XMainClient/warrior_slash_show.cs | 47 + .../Scripts/XMainClient/warrior_slash_show.cs.meta | 12 + 12942 files changed, 880395 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/AI.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIMsgTarget.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIMsgTarget.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AINodeFactory.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AINodeFactory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeBehaviorTree.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeBehaviorTree.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeBoolComparison.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeBoolComparison.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeCalDistance.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeCalDistance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeCompareTo.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeCompareTo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionMonsterNum.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionMonsterNum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionPlayerNum.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionPlayerNum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionalEvaluator.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionalEvaluator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeDecorationNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeDecorationNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeDetectEnimyInSight.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeDetectEnimyInSight.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectFarthest.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectFarthest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectNearest.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectNearest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeEntryTaskNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeEntryTaskNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByDist.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByDist.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByHitLevel.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByHitLevel.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatComparison.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatComparison.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatOperator.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatOperator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeGetRealtimeSinceStartup.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeGetRealtimeSinceStartup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntComparison.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntComparison.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntOperator.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntOperator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeInverter.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeInverter.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsCastingSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsCastingSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFighting.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFighting.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsTargetImmortal.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsTargetImmortal.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsWander.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsWander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeLogicNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeLogicNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeAction.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeAction.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeCondition.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeCondition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomEntityPos.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomEntityPos.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSelectorNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSelectorNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSequenceNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSequenceNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetHartedList.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetHartedList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetTargets.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetTargets.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnFailure.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnFailure.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnSuccess.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnSuccess.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectBuffTarget.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectBuffTarget.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectItemTarget.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectItemTarget.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectMoveTargetById.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectMoveTargetById.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectNonHartedList.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectNonHartedList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectTargetBySkillCircle.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectTargetBySkillCircle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectorNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectorNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetBool.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetBool.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetFloat.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetFloat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetInt.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetInt.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetByHatredList.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetByHatredList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetQTEState.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetQTEState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueDistance.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueDistance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueFP.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueFP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueHP.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueHP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueMP.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueMP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueTarget.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueTarget.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionMove.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionMove.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionNavigation.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionNavigation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeAddBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeAddBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallMonster.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallMonster.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallScript.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallScript.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeCastDash.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeCastDash.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeDetectEnemyInRange.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeDetectEnemyInRange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillInOrder.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillInOrder.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeKillMonster.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeKillMonster.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeMixMonsterPos.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeMixMonsterPos.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeMoveStratage.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeMoveStratage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimePhysicalAttack.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimePhysicalAttack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeReceiveAIEvent.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeReceiveAIEvent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveSceneBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveSceneBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeRotateToTarget.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeRotateToTarget.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeSetDest.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeSetDest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs create mode 100644 Client/Assets/Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AbyssPartyEntranceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/AbyssPartyEntranceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AchieveItemInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/AchieveItemInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AchieveState.cs create mode 100644 Client/Assets/Scripts/XMainClient/AchieveState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AchieveType.cs create mode 100644 Client/Assets/Scripts/XMainClient/AchieveType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AchivementState.cs create mode 100644 Client/Assets/Scripts/XMainClient/AchivementState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActionType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActionType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityExchangeRewardHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityExchangeRewardHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityExpeditionHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityExpeditionHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityHelpRewardHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityHelpRewardHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityInviteTarget.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityInviteTarget.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityNestHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityNestHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityTaskState.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityTaskState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ActivityWorldBossHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ActivityWorldBossHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AdditionRemindDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/AdditionRemindDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AdjustDirection.cs create mode 100644 Client/Assets/Scripts/XMainClient/AdjustDirection.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AncientBox.cs create mode 100644 Client/Assets/Scripts/XMainClient/AncientBox.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AncientTaskView.cs create mode 100644 Client/Assets/Scripts/XMainClient/AncientTaskView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ApplyMentorshipInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/ApplyMentorshipInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArrowDirection.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArrowDirection.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactAtlasDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactAtlasDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactAttrRange.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactAttrRange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactBagDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactBagDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactComposeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactComposeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactElementData.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactElementData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactFuseDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactFuseDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactInscriptionDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactInscriptionDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactRecastDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactRecastDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactRefinedDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactRefinedDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSetHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSetHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSingleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSingleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSuitData.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSuitData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSuitLevel.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSuitLevel.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSuitMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactSuitMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactTooltipButtonOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactTooltipButtonOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactTotalAttrData.cs create mode 100644 Client/Assets/Scripts/XMainClient/ArtifactTotalAttrData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AsyncSceneAnimationRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/AsyncSceneAnimationRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AttackApplyCritical.cs create mode 100644 Client/Assets/Scripts/XMainClient/AttackApplyCritical.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AttackApplyState.cs create mode 100644 Client/Assets/Scripts/XMainClient/AttackApplyState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AttackApplyStun.cs create mode 100644 Client/Assets/Scripts/XMainClient/AttackApplyStun.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AttackType.cs create mode 100644 Client/Assets/Scripts/XMainClient/AttackType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AttrType.cs create mode 100644 Client/Assets/Scripts/XMainClient/AttrType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AttriDataType.cs create mode 100644 Client/Assets/Scripts/XMainClient/AttriDataType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AttributeCharm.cs create mode 100644 Client/Assets/Scripts/XMainClient/AttributeCharm.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AuctionActType.cs create mode 100644 Client/Assets/Scripts/XMainClient/AuctionActType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AuctionBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/AuctionBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AuctionDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/AuctionDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AuctionHouseDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/AuctionHouseDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AuctionItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/AuctionItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AuctionSaleItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/AuctionSaleItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AuctionSys.cs create mode 100644 Client/Assets/Scripts/XMainClient/AuctionSys.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/AuctionView.cs create mode 100644 Client/Assets/Scripts/XMainClient/AuctionView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BagExpandData.cs create mode 100644 Client/Assets/Scripts/XMainClient/BagExpandData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BarrageBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/BarrageBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BarrageDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/BarrageDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BarrageItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/BarrageItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BarrageMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/BarrageMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BarrageQueue.cs create mode 100644 Client/Assets/Scripts/XMainClient/BarrageQueue.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BattleCaptainPVPHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/BattleCaptainPVPHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BattleFieldBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/BattleFieldBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BattleFieldEntranceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/BattleFieldEntranceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BattleFieldEntranceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/BattleFieldEntranceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BattleLine.cs create mode 100644 Client/Assets/Scripts/XMainClient/BattleLine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BattleShowInfoHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/BattleShowInfoHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BeenAppliedMsgType.cs create mode 100644 Client/Assets/Scripts/XMainClient/BeenAppliedMsgType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BigMeleeBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/BigMeleeBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BigMeleeEntranceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/BigMeleeEntranceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BigMeleeEntranceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/BigMeleeEntranceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BigMeleeRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/BigMeleeRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BigPrizeNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/BigPrizeNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BillBoardHideType.cs create mode 100644 Client/Assets/Scripts/XMainClient/BillBoardHideType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BillboardUsage.cs create mode 100644 Client/Assets/Scripts/XMainClient/BillboardUsage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BiochemicalHellDogDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/BiochemicalHellDogDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BiochemicalHellDogFrameHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/BiochemicalHellDogFrameHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankView.cs create mode 100644 Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BonusSender.cs create mode 100644 Client/Assets/Scripts/XMainClient/BonusSender.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BonusState.cs create mode 100644 Client/Assets/Scripts/XMainClient/BonusState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BroadBarrageItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/BroadBarrageItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BroadNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/BroadNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BroadcastBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/BroadcastBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BroadcastDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/BroadcastDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BroadcastMiniBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/BroadcastMiniBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffAddEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffAddEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffAuraCheck.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffAuraCheck.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardAddEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardAddEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardRemoveEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardRemoveEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffChangeAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffChangeAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffChangeEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffChangeEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffChangeFightGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffChangeFightGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffClear.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffClear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffDamageDistanceScale.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffDamageDistanceScale.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffDamageReflection.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffDamageReflection.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffEffectData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffEffectData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffExclusive.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffExclusive.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffKill.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffKill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffLifeSteal.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffLifeSteal.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffManipulate.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffManipulate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffMergeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffMergeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffModifyEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffModifyEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffReduceDamage.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffReduceDamage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffRegenerate.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffRegenerate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffRemoveEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffRemoveEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffSkillsReplace.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffSkillsReplace.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffSpecialState.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffSpecialState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffStateInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffStateInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTargetLifeAddAttack.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTargetLifeAddAttack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTemplateManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTemplateManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTrigger.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTrigger.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerAlways.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerAlways.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByBeHit.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByBeHit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCastSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCastSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCombo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCombo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByDeath.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByDeath.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByHit.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByHit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByLife.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByLife.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByStacking.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByStacking.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffType.cs create mode 100644 Client/Assets/Scripts/XMainClient/Buff/XBuffType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BuffDesc.cs create mode 100644 Client/Assets/Scripts/XMainClient/BuffDesc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/BuffEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/BuffEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CBrifGroupInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/CBrifGroupInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CClientSocket.cs create mode 100644 Client/Assets/Scripts/XMainClient/CClientSocket.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CGroupPlayerInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/CGroupPlayerInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CIBShop.cs create mode 100644 Client/Assets/Scripts/XMainClient/CIBShop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CNetProcessor.cs create mode 100644 Client/Assets/Scripts/XMainClient/CNetProcessor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CNetSender.cs create mode 100644 Client/Assets/Scripts/XMainClient/CNetSender.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CNetwork.cs create mode 100644 Client/Assets/Scripts/XMainClient/CNetwork.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CPacketBreaker.cs create mode 100644 Client/Assets/Scripts/XMainClient/CPacketBreaker.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CUIIBShop.cs create mode 100644 Client/Assets/Scripts/XMainClient/CUIIBShop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CalculatorBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/CalculatorBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CalculatorDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/CalculatorDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CalculatorKey.cs create mode 100644 Client/Assets/Scripts/XMainClient/CalculatorKey.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CalculatorKeyBack.cs create mode 100644 Client/Assets/Scripts/XMainClient/CalculatorKeyBack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CallMonsterArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/CallMonsterArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CandidateInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/CandidateInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CapacityBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/CapacityBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CapacityDownDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/CapacityDownDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CardCollectBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/CardCollectBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CardCollectView.cs create mode 100644 Client/Assets/Scripts/XMainClient/CardCollectView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CardCombinationStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/CardCombinationStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CardPage.cs create mode 100644 Client/Assets/Scripts/XMainClient/CardPage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CardTotalHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/CardTotalHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CareerHomepageHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/CareerHomepageHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CareerPVPDataHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/CareerPVPDataHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CareerTrophyHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/CareerTrophyHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalBelong.cs create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalBelong.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalContentHander.cs create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalContentHander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalRwdHander.cs create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalRwdHander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalState.cs create mode 100644 Client/Assets/Scripts/XMainClient/CarnivalState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatAssetType.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatAssetType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatAssistView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatAssistView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatChannelType.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatChannelType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatEmotionView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatEmotionView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatFriendItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatFriendItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatGroupBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatGroupBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatGroupItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatGroupItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatGroupList.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatGroupList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatHistoryItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatHistoryItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatInputStringBack.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatInputStringBack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatInputType.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatInputType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatItemInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatItemInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatMemberBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatMemberBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatMemberList.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatMemberList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatSelectStringBack.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatSelectStringBack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatSystemItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatSystemItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatTextRecognizeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatTextRecognizeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatType.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatVoiceInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatVoiceInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatVoicePrivateInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Chat/ChatVoicePrivateInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ClientBuffInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/ClientBuffInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ClientFashionData.cs create mode 100644 Client/Assets/Scripts/XMainClient/ClientFashionData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CollectNpcInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/CollectNpcInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CollectNpcRefreshMode.cs create mode 100644 Client/Assets/Scripts/XMainClient/CollectNpcRefreshMode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CombatEffectHelper.cs create mode 100644 Client/Assets/Scripts/XMainClient/CombatEffectHelper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CombatEffectType.cs create mode 100644 Client/Assets/Scripts/XMainClient/CombatEffectType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CombineMeshTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/CombineMeshTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CombineMeshUtility.cs create mode 100644 Client/Assets/Scripts/XMainClient/CombineMeshUtility.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ComparisonType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ComparisonType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CompeteNestRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/CompeteNestRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XActionStateComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XActionStateComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XDeathComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XDeathComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveMobEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveMobEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Coordinate.cs create mode 100644 Client/Assets/Scripts/XMainClient/Coordinate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CostInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/CostInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CreateChatGroupBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/CreateChatGroupBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CreateChatGroupDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/CreateChatGroupDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CreatechatGroupCall.cs create mode 100644 Client/Assets/Scripts/XMainClient/CreatechatGroupCall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CropState.cs create mode 100644 Client/Assets/Scripts/XMainClient/CropState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CutSceneDo.cs create mode 100644 Client/Assets/Scripts/XMainClient/CutSceneDo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CutoverViewBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/CutoverViewBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/CutoverViewView.cs create mode 100644 Client/Assets/Scripts/XMainClient/CutoverViewView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DamageElement.cs create mode 100644 Client/Assets/Scripts/XMainClient/DamageElement.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DamageFlag.cs create mode 100644 Client/Assets/Scripts/XMainClient/DamageFlag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DamageType.cs create mode 100644 Client/Assets/Scripts/XMainClient/DamageType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DanceMotionData.cs create mode 100644 Client/Assets/Scripts/XMainClient/DanceMotionData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DecalLoadTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/DecalLoadTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DesignationInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/DesignationInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Direction.cs create mode 100644 Client/Assets/Scripts/XMainClient/Direction.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DlgHandlerBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/DlgHandlerBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DonateRankType.cs create mode 100644 Client/Assets/Scripts/XMainClient/DonateRankType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DotTimeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/DotTimeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonCoinCostHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonCoinCostHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonCrusadeGateBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonCrusadeGateBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonCrusadeGateWin.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonCrusadeGateWin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonCrusadeGateWinBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonCrusadeGateWinBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonCrusageGateData.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonCrusageGateData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildApproveSetting.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildApproveSetting.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildLiveness.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildLiveness.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildLivenessRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildLivenessRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildMemberSortType.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildMemberSortType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildPermission.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildPermission.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonRwdItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonRwdItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DragonShareType.cs create mode 100644 Client/Assets/Scripts/XMainClient/DragonShareType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DungeonShareBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/DungeonShareBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/DungeonShareView.cs create mode 100644 Client/Assets/Scripts/XMainClient/DungeonShareView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ECombineMatType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ECombineMatType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ECombineStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/ECombineStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EFun.cs create mode 100644 Client/Assets/Scripts/XMainClient/EFun.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EProcessStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/EProcessStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EProtocolErrCode.cs create mode 100644 Client/Assets/Scripts/XMainClient/EProtocolErrCode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ESettingConfig.cs create mode 100644 Client/Assets/Scripts/XMainClient/ESettingConfig.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ESkinFadeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ESkinFadeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ESpriteStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/ESpriteStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EXStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/EXStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EffectDataParams.cs create mode 100644 Client/Assets/Scripts/XMainClient/EffectDataParams.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EffectIDType.cs create mode 100644 Client/Assets/Scripts/XMainClient/EffectIDType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EmblemPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/EmblemPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EmblemSetHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/EmblemSetHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EmblemSlotStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/EmblemSlotStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EnchantCheckResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/EnchantCheckResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EndRecordCallBack.cs create mode 100644 Client/Assets/Scripts/XMainClient/EndRecordCallBack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EnhanceAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/EnhanceAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Enmity.cs create mode 100644 Client/Assets/Scripts/XMainClient/Enmity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EntityMask.cs create mode 100644 Client/Assets/Scripts/XMainClient/EntityMask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipAttrData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipAttrData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipAttrDataMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipAttrDataMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipCompare.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipCompare.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipFuseData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipFuseData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipFusionDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipFusionDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipLoadTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipLoadTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateConfirmHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateConfirmHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetLevelHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetLevelHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetProfHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetProfHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetWearingHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSetWearingHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrDatas.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrDatas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSuitItemData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSuitItemData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuDataItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuDataItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipUpgradeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Equip/EquipUpgradeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EventDelegate.cs create mode 100644 Client/Assets/Scripts/XMainClient/EventDelegate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/EventPoolClear.cs create mode 100644 Client/Assets/Scripts/XMainClient/EventPoolClear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ExpBackTypeMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/ExpBackTypeMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FWchildNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/FWchildNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FWnode.cs create mode 100644 Client/Assets/Scripts/XMainClient/FWnode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Farm.cs create mode 100644 Client/Assets/Scripts/XMainClient/Farm.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Farmland.cs create mode 100644 Client/Assets/Scripts/XMainClient/Farmland.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionPositionInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionPositionInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageEquipCollection.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageEquipCollection.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageFashionCollection.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageFashionCollection.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageHairColor.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageHairColor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionStoragePosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionStoragePosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionStoragePreview.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionStoragePreview.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageSuitEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageSuitEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageTabBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/FashionStorageTabBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FatigueRecoverTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/FatigueRecoverTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FetchState.cs create mode 100644 Client/Assets/Scripts/XMainClient/FetchState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassAuxData.cs create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassAuxData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassInfoData.cs create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassInfoData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRankView.cs create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRankView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRewardBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRewardBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRewardView.cs create mode 100644 Client/Assets/Scripts/XMainClient/FirstPassRewardView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FitstpassRankBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/FitstpassRankBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FloatOperatorType.cs create mode 100644 Client/Assets/Scripts/XMainClient/FloatOperatorType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ForgeReplaceHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ForgeReplaceHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ForgeSuccessHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ForgeSuccessHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FriendServerInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/FriendServerInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/FuseEffectType.cs create mode 100644 Client/Assets/Scripts/XMainClient/FuseEffectType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GCFGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/GCFGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GVGBattleSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/GVGBattleSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GVGDuelCombatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GVGDuelCombatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GVGDuelResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/GVGDuelResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs create mode 100644 Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GameBuyCardHander.cs create mode 100644 Client/Assets/Scripts/XMainClient/GameBuyCardHander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GameDescMallHander.cs create mode 100644 Client/Assets/Scripts/XMainClient/GameDescMallHander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GameItemsMallHander.cs create mode 100644 Client/Assets/Scripts/XMainClient/GameItemsMallHander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GameMallDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/GameMallDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GameMallShopHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GameMallShopHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GameMallTabsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GameMallTabsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GamePayDiaMallHander.cs create mode 100644 Client/Assets/Scripts/XMainClient/GamePayDiaMallHander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GamePayDragonMallHander.cs create mode 100644 Client/Assets/Scripts/XMainClient/GamePayDragonMallHander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GetBuffDataSeqFloat.cs create mode 100644 Client/Assets/Scripts/XMainClient/GetBuffDataSeqFloat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GetBuffDataSeqListFloat.cs create mode 100644 Client/Assets/Scripts/XMainClient/GetBuffDataSeqListFloat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GetBuffDataSeqListInt.cs create mode 100644 Client/Assets/Scripts/XMainClient/GetBuffDataSeqListInt.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GetBuffDataSeqListString.cs create mode 100644 Client/Assets/Scripts/XMainClient/GetBuffDataSeqListString.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GetItemHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GetItemHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GiftClaimBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GiftClaimBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GiftboxDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/GiftboxDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GoldGroupType.cs create mode 100644 Client/Assets/Scripts/XMainClient/GoldGroupType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GroupChatDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/GroupChatDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GroupMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/GroupMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GroupMemberDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/GroupMemberDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GroupMemberPool.cs create mode 100644 Client/Assets/Scripts/XMainClient/GroupMemberPool.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GrowStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/GrowStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildApplyInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildApplyInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildApproveDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildApproveDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildArenaBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildArenaBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildArenaDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildArenaDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildBasicData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildBasicData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildBoonBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildBoonBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildCollectDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildCollectDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildConfig.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildConfig.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDonateBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDonateBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDonateDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDonateDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDonateView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDonateView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthEntranceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthEntranceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildHallDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildHallDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildInfoChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildInfoChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildInheritDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildInheritDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchStep.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchStep.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJokerCommonView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJokerCommonView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJokerDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJokerDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJokerView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildJokerView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLevelChangedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLevelChangedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildListData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildListData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildListDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildListDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogAppoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogAppoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogBossMVP.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogBossMVP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogJoin.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogJoin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogLeave.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildLogLeave.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberBasicInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberBasicInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberListEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberListEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMineBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMineBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMineEntranceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMineEntranceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMineMainDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildMineMainDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildPP.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildPP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildPositionChangedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildPositionChangedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildQualifierDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildQualifierDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRankDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRankDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPackageSendBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPackageSendBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDetail.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDetail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketLog.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketLog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildResContentionBuffDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildResContentionBuffDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSignInDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSignInDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSignInLog.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSignInLog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSignNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSignNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSignRedPackageBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSignRedPackageBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillStudyHandle.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillStudyHandle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSkillView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlgBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlgBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildTerritoryDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildTerritoryDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildViewDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildViewDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildApproveSetting.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildApproveSetting.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildArenaBattlePattern.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildArenaBattlePattern.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatStatu.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatStatu.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildArenaTab.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildArenaTab.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildBattleMiniRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildBattleMiniRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildBuffEffectType.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildBuffEffectType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildBuffTargetType.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildBuffTargetType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildBuffUsedRecordItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildBuffUsedRecordItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildCampRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildCampRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildDailyTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildDailyTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildDonateItemInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildDonateItemInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildDonateRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildDonateRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildDonateType.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildDonateType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildDragonChallengeResultBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildDragonChallengeResultBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildFarmland.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildFarmland.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildFiexdRedPackageBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildFiexdRedPackageBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildLogType.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildLogType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMemberSortType.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMemberSortType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineActivityStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineActivityStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineEntranceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineEntranceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineEntranceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineEntranceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineMainBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineMainBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineMainView.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineMainView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPBeginBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPBeginBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPInfoHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMinePVPInfoHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineRewardBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineRewardBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineRewardView.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildMineRewardView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildPassBoard.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildPassBoard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildPassMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildPassMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildPermission.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildPermission.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildQualifierSelect.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildQualifierSelect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildRedPackageDetailBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildRedPackageDetailBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxChildHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxChildHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxCollectHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxCollectHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxJokerHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxJokerHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxJokerMatchHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxJokerMatchHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxVoiceHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildRelaxVoiceHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildSceneState.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildSceneState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildTaskReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildTaskReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildTaskType.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildTaskType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildTerritoryAllianceInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildTerritoryAllianceInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildUsingBuffInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildUsingBuffInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/GuildWeeklyTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/GuildWeeklyTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HallFameRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/HallFameRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleMVPBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleMVPBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleRankBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleRankBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleRankDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleRankDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleRewardState.cs create mode 100644 Client/Assets/Scripts/XMainClient/HeroBattleRewardState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HistoryMaxStruct.cs create mode 100644 Client/Assets/Scripts/XMainClient/HistoryMaxStruct.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HomeEventLog.cs create mode 100644 Client/Assets/Scripts/XMainClient/HomeEventLog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HomeFarmland.cs create mode 100644 Client/Assets/Scripts/XMainClient/HomeFarmland.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HomeFishingState.cs create mode 100644 Client/Assets/Scripts/XMainClient/HomeFishingState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HomeMainDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/HomeMainDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HomePlantDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/HomePlantDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HomeSpriteClass.cs create mode 100644 Client/Assets/Scripts/XMainClient/HomeSpriteClass.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/HurtInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/HurtInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ICostHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ICostHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/IDlgHandlerMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/IDlgHandlerMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/IFashionStorageSelect.cs create mode 100644 Client/Assets/Scripts/XMainClient/IFashionStorageSelect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/IGuildRelexChildInterface.cs create mode 100644 Client/Assets/Scripts/XMainClient/IGuildRelexChildInterface.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ILogData.cs create mode 100644 Client/Assets/Scripts/XMainClient/ILogData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ILogSource.cs create mode 100644 Client/Assets/Scripts/XMainClient/ILogSource.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ILuaNetEventData.cs create mode 100644 Client/Assets/Scripts/XMainClient/ILuaNetEventData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ILuaNetProcess.cs create mode 100644 Client/Assets/Scripts/XMainClient/ILuaNetProcess.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/INetEventData.cs create mode 100644 Client/Assets/Scripts/XMainClient/INetEventData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/INetObserver.cs create mode 100644 Client/Assets/Scripts/XMainClient/INetObserver.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/INetProcess.cs create mode 100644 Client/Assets/Scripts/XMainClient/INetProcess.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/INetSender.cs create mode 100644 Client/Assets/Scripts/XMainClient/INetSender.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/IPacketBreaker.cs create mode 100644 Client/Assets/Scripts/XMainClient/IPacketBreaker.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/IXStateTransform.cs create mode 100644 Client/Assets/Scripts/XMainClient/IXStateTransform.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/InGameADBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/InGameADBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/InGameADView.cs create mode 100644 Client/Assets/Scripts/XMainClient/InGameADView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/InfoType.cs create mode 100644 Client/Assets/Scripts/XMainClient/InfoType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Input.meta create mode 100644 Client/Assets/Scripts/XMainClient/Input/XTouch.cs create mode 100644 Client/Assets/Scripts/XMainClient/Input/XTouch.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Input/XTouchItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/Input/XTouchItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Input/XVirtualTab.cs create mode 100644 Client/Assets/Scripts/XMainClient/Input/XVirtualTab.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/InputUIType.cs create mode 100644 Client/Assets/Scripts/XMainClient/InputUIType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/InviteMemberInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/InviteMemberInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemAttrCompareResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemAttrCompareResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemAttrCompareType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemAttrCompareType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemCornerType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemCornerType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemDesc.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemDesc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemListHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemListHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemQuality.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemQuality.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemUpdateHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemUpdateHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemUse.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemUse.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ItemUseMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/ItemUseMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/JokerKingMainView.cs create mode 100644 Client/Assets/Scripts/XMainClient/JokerKingMainView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/JokerKingMatchView.cs create mode 100644 Client/Assets/Scripts/XMainClient/JokerKingMatchView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbsPartyBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbsPartyBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbsPartyInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbsPartyInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbyssFlameStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AbyssFlameStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AchieveBriefInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AchieveBriefInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AchieveDbInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AchieveDbInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AchieveType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AchieveType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AchivementInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AchivementInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActOpenState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActOpenState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionCharm.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionCharm.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColor.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivityRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivityRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivityRoleNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ActivityRoleNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddAttrCount.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddAttrCount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddBlackListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddBlackListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddBlackListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddBlackListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddFriendArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddFriendArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddFriendRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddFriendRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddLevelScriptExtString.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddLevelScriptExtString.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllBuffsInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllBuffsInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllGiftIBItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllGiftIBItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllSynCardAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllSynCardAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllyMatchRoleID.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AllyMatchRoleID.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AncientTimes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AncientTimes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AncientTimesArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AncientTimesArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AncientTimesRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AncientTimesRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AnswerAckNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AnswerAckNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionRemindInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionRemindInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionReportType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionReportType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarHistData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarHistData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarTopRoleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarTopRoleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArenaStarType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaPreData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArgentaPreData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Attribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Attribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AttributeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AttributeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctDBDataOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctDBDataOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctItemBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctItemBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionAccountType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionAccountType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionSaleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionSaleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionSortType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AuctionSortType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioTextArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioTextArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioTextRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AudioTextRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AutoFight.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/AutoFight.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BFFightTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BFFightTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BMFightTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BMFightTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BMRoleSceneSync.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BMRoleSceneSync.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowActOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowActOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowPreData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowPreData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BagContent.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BagContent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BagExpandData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BagExpandData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BagType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BagType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BanquetNtfArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BanquetNtfArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleChestRewardType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleChestRewardType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldLeftAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldLeftAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldPoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldPoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReadyInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReadyInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReliveInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReliveInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainst.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainst.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainstArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainstArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleFieldType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleLogReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleLogReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleStarData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleStarData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleWatcherNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BattleWatcherNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BigMeleeBattleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BigMeleeBattleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BigMeleePoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BigMeleePoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BigMeleePointOutLook.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BigMeleePointOutLook.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BigMeleeRelive.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BigMeleeRelive.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BindSkillRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BindSkillRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BingSkillArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BingSkillArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BlackListNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BlackListNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BlackListReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BlackListReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushReqStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushReqStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BossRushResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BroadCastG2RType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BroadCastG2RType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BroadCastType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BroadCastType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Buff.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Buff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BulletUnitData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BulletUnitData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountRet.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountRet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CallData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CallData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampDuelData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampDuelData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampID.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampID.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampRoleRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampRoleRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CampTaskType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CancelRedDot.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CancelRedDot.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CardMatchState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CardMatchState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CareerData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CareerData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CarrerDataType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CarrerDataType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeNameArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeNameArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeNameRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeNameRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangedAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChangedAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatChannel.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatChannel.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatOfflineNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatOfflineNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamDragonGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamDragonGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamLink.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamLink.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamNum.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamNum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamSpectate.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamSpectate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatParamTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatSource.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChatSource.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinInfoNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinInfoNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CheckinRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseProfArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseProfArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseProfRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseProfRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CircleDrawData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CircleDrawData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CircleDrawGive.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CircleDrawGive.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CityData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CityData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClickGuildCampArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClickGuildCampArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientReviveInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientReviveInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientUpdatePackageData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ClientUpdatePackageData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CloseHintNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CloseHintNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CloseSkyCraftEliNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CloseSkyCraftEliNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommentType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommentType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommitAnswerNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CommitAnswerNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonInfo2DB.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonInfo2DB.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CountDownNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CountDownNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CoverDesignationNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CoverDesignationNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuildRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuildRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgBattleType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgBattleType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRacePointRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRacePointRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgTimeState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CrossGvgTimeState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleClientInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleClientInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleConfig.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleConfig.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleDataRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleDataRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleGMNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleGMNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleLoadingNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleLoadingNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleMatchRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleMatchRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleQueryInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleQueryInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRoleState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRoleState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleScale.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleScale.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleTag.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleTag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/CustomBattleType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DBOperType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DBOperType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEProgress.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEProgress.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEProgressArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEProgressArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEProgressRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEProgressRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEProgressState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEProgressState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERankArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERankArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERankRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DERankRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEStageProgress.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DEStageProgress.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRewrad2State.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DHRewrad2State.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DPSNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DPSNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyRefreshOperType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyRefreshOperType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskIconType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskIconType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DamageResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DamageResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DelayInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DelayInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Designation2DB.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Designation2DB.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DesignationType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DesignationType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DneRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DneRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadItemSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadItemSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoorState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DoorState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonExpResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonExpResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupDB.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupDB.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordInfoList.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordInfoList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMembersInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMembersInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRecordData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRecordData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRoleTaskItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRoleTaskItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopItemClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopItemClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopRecordItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopRecordItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSortType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSortType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskConditionType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskConditionType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUpdateType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUpdateType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonInfo2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonInfo2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonRecord2DB.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonRecord2DB.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonWeakType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DragonWeakType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EMentorMsgOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EMentorMsgOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EMentorRelationPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EMentorRelationPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EMentorTaskStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EMentorTaskStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EffectData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EffectData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EffectMultiParams.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EffectMultiParams.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EmblemSlotType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EmblemSlotType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EmptyData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EmptyData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnemyDropDoodadInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnemyDropDoodadInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownQuery.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownQuery.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterSceneType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterSceneType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EntityCategory.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EntityCategory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EntitySpecies.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EntitySpecies.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EntityTargetData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EntityTargetData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnumServerState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EnumServerState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ErrorCode.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ErrorCode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExecuteLevelScriptNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExecuteLevelScriptNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpBackType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpBackType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpTeamMemberState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ExpTeamMemberState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionComposeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionComposeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionComposeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionComposeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionNTFType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionNTFType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FatigueRecoverTimeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FatigueRecoverTimeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Festival520Type.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Festival520Type.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchMailArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchMailArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchMailRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchMailRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FightGroupChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FightGroupChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FightGroupType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FightGroupType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FinishStateInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FinishStateInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassRewardNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassRewardNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FishingState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FishingState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRet.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FlowerInfo2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FlowerInfo2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FortStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FortStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FortType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FortType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Friend2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Friend2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGift.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGift.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGiftReceive.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGiftReceive.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGiftSend.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendGiftSend.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendOpNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendOpNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendPlantLog.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendPlantLog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendQueryReportNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendQueryReportNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendVipInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FriendVipInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FunctionId.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FunctionId.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FuseEquipArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FuseEquipArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FuseEquipRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/FuseEquipRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GASaleItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GASaleItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFGuildBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFGuildBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFRoleBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFRoleBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFsynType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GCFsynType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GHisRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GHisRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMFFailReason.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMFFailReason.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMFReadyType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMFReadyType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GameAppType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GameAppType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenEventLog.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenEventLog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenFishStopArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenFishStopArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenPlantEventNoticeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenPlantEventNoticeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenPlayEventType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenPlayEventType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenQuestType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenQuestType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenStealArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenStealArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenStealRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GardenStealRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Get520FestivalRedPacket.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Get520FestivalRedPacket.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAudioListReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAudioListReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAudioListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetAudioListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDesignationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDesignationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSealGiftArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSealGiftArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSelfGiftRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSelfGiftRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetQADataReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetQADataReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetQADataRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetQADataRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIBBackInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIBBackInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbItemState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbItemState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbShipStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiftIbShipStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GlobalRiftFloorInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GlobalRiftFloorInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfAllFightEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfAllFightEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfBattleState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfBattleState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfCombat.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfCombat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfGuildBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfGuildBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombat.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfHalfRoles.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfHalfRoles.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfRoleBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfRoleBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfRoleCombat.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfRoleCombat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfRoleDatas.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfRoleDatas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfWaitFightArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfWaitFightArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoBackReadyScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoBackReadyScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_C2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_C2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_M2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_M2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsRedPointNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsRedPointNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsValue.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsValue.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoldClickArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoldClickArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoldClickRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GoldClickRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GprOneBattleEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GprOneBattleEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatDismissPtc.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatDismissPtc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatIssueCountNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatIssueCountNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerPtc.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerPtc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildActivityRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildActivityRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaGroupData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaGroupData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildArenaType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctItemTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctItemTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctResultType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildAuctResultType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBindStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBindStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBonusAppear.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBonusAppear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBonusBriefInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBonusBriefInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBonusGetAllData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBonusGetAllData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBonusType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBonusType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBossTimeOut.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBossTimeOut.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBriefArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBriefArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBriefRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBriefRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffCDParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffCDParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampItemOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampItemOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeNotifyArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeNotifyArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampSpriteInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCampSpriteInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCastFeats.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCastFeats.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildDarenaUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildDarenaUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinRoleKillInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinRoleKillInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinSceneInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinSceneInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallBuffData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallBuffData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_C2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_C2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_M2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_M2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRoleRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRoleRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildLogEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildLogEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildLogType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildLogType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMatchFightState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMatchFightState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberDonateRankItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberDonateRankItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberFlag.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberFlag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildQAType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildQAType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_C2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_C2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_M2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_M2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSettingChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSettingChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSkillAllData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSkillAllData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSkillData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSkillData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSortType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildSortType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistoryData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistoryData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_C2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_C2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_M2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_M2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_C2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_C2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_M2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_M2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_C2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_C2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_M2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_M2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HallIconState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HallIconState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HandleMicphoneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HandleMicphoneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HellDropInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HellDropInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HellDropInfoAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HellDropInfoAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleAncientPowerData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleAncientPowerData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleCanUseHeroData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleCanUseHeroData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleGroupData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleGroupData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleInCircle.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleInCircle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOneGame.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOneGame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOver.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOver.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOverTimeData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOverTimeData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleSyncData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleSyncData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamRoleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamRoleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTipsData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTipsData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnitType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnitType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HeroRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HintNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HintNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseAnimation.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseAnimation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseAwardAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseAwardAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseCountDownTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseCountDownTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseFinal.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseFinal.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseWaitTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/HorseWaitTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopAllRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopAllRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopHasBuy.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopHasBuy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopItemInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopItemInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopOneRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IBShopOneRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IconWatchListNum.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IconWatchListNum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipClearChatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipClearChatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipHintData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipHintData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipMessage.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipMessage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipPunishInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IdipPunishInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InheritData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InheritData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InspireArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InspireArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InspireRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InspireRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IntegralBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IntegralBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IntegralState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/IntegralState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Integralunit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Integralunit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightAgainPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightAgainPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightBattleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightBattleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightBefESpara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightBefESpara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightNotifyType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightNotifyType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightRoleBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvFightRoleBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvHReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvHReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvHistoryArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvHistoryArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvHistoryRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvHistoryRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvUnfState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InvUnfState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InviteRufuse.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/InviteRufuse.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Item.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Item.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemArtifact.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemArtifact.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemComposeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemComposeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemComposeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemComposeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemJadeSingle.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemJadeSingle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemRandAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemRandAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeComposeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeOperationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeSealInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeSealInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeSlotInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JadeSlotInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinRoomReply.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JoinRoomReply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JustDanceArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JustDanceArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JustDanceRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/JustDanceRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KKVsRoleState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KKVsRoleState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KMatchType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KMatchType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KickType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KickType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KillEnemyScoreData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/KillEnemyScoreData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LBEleTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LargeRoomLoginParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LargeRoomLoginParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleBaseDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleBaseDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleFightState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleFightState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleMatchTimeoutNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleMatchTimeoutNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyOper.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyOper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStartMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStartMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStopMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStopMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTeamData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTeamData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTimeState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTimeState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueEliType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueEliType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamMemberDetail.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamMemberDetail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveLargeRoomParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveLargeRoomParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveSceneType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveSceneType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveTeamType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LeaveTeamType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelScriptStateData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelScriptStateData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealButtonType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealButtonType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelSealRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LiveIconData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LiveIconData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LiveNameInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LiveNameInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LiveRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LiveRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoadAccountData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoadAccountData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LogDBType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LogDBType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginActivityArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginActivityArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginActivityRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginActivityRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginActivityStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginActivityStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginChallenge.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginChallenge.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginExtraData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginExtraData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginGateData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginGateData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetRet.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetRet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginRewardState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LoginType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LogoutType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LogoutType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LotteryType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LotteryType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MSGiveItemType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MSGiveItemType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MSUseSumamryType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MSUseSumamryType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MailOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MailOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MailOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MailOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MailOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MailOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MakePartnerResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MakePartnerResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MapIntItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MapIntItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyResponse.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyResponse.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelValueNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelValueNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageNewPrivilegeNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageNewPrivilegeNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriagePos.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriagePos.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MarriageStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MatchToWorldType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MatchToWorldType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MayhemRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MayhemRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorApplyStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorApplyStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorBreakApplyInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorBreakApplyInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorMsgApplyType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorMsgApplyType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatusData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatusData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorSelfInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorSelfInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorTaskType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MentorTaskType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MidasExceptionInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MidasExceptionInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MilitaryRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MilitaryRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MilitaryRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MilitaryRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaAddExpData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaAddExpData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGame.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamRoleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamRoleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaMiniMapData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaMiniMapData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaRoleChangeData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaRoleChangeData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaRoleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaRoleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaSignalBroadcastData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaSignalBroadcastData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ModifyArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ModifyArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ModifyRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ModifyRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivitInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivitInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityCha.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityCha.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityIconSys.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityIconSys.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityTimeState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MulActivityTimeState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MyDragonGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MyDragonGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MythShopOP.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/MythShopOP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NewBattleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NewBattleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NewGuildBonusData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NewGuildBonusData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeDoingGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeDoingGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaBegin.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaBegin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaNextTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaNextTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildLadderStart.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildLadderStart.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBattleWin.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBattleWin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBigIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBigIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildWageReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildWageReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeHungryDown.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeHungryDown.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NoticeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyEnemyEnterFight.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyEnemyEnterFight.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamCreate.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamCreate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamDissolve.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamDissolve.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageApplyData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageApplyData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageDivorceApplyData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageDivorceApplyData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyPlatShareResultArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyPlatShareResultArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifySkyTeamCreate.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifySkyTeamCreate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyStartUpTypeToClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyStartUpTypeToClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyTransferWall.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NotifyTransferWall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingUnite.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingUnite.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlItemType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlItemType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlRoleExp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcFlRoleExp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyMasterShow.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyMasterShow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorBeAppliedMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorBeAppliedMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorRelationInfo2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorRelationInfo2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OnlyOnceGuildBonusData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OnlyOnceGuildBonusData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQAReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQAReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQARes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQARes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenPrivateChat.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenPrivateChat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenSpriteEgg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OpenSpriteEgg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OtherFetchDoodadRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OtherFetchDoodadRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookConsumePre.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookConsumePre.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookDesignation.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookDesignation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookDisplayFashion.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookDisplayFashion.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookMilitaryRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookMilitaryRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookSprite.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookSprite.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookStateType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookStateType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookTitle.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookTitle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OutLookType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PKInformation.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PKInformation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PVPInformation.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PVPInformation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PVPResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PVPResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerLivenessItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerLivenessItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerMemberDetail.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerMemberDetail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerOperType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerOperType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerShopRecordItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerShopRecordItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerUpdateType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartnerUpdateType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartyExchangeItemInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PartyExchangeItemInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAccessDataType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAccessDataType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAileen.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAileen.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAileenInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAileenInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAileenRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAileenRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAwardRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayAwardRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayButtonStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayButtonStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayCardType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayCardType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayClickRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayClickRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayConsume.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayConsume.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayConsumeRebate.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayConsumeRebate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayGiftIbStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayGiftIbStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayGiftNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayGiftNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayMemberPrivilege.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayMemberPrivilege.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayMemberRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayMemberRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayNotifyArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayNotifyArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayNotifyRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayNotifyRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayParamType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayParamType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayParameterInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayParameterInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayPrivilegeShop.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayPrivilegeShop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayScoreData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayScoreData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayV2Record.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayV2Record.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayconsumeBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PayconsumeBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PeriodTaskType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PeriodTaskType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PersonalCarrerReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PersonalCarrerReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PersonalHomePage.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PersonalHomePage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetSingle.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetSingle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetSysData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PetSysData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PhotographEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PhotographEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PhotographEffectArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PhotographEffectArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkMatchStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkMatchStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkNVNType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkNVNType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkPrepareNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkPrepareNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRankExtraData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRankExtraData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRecordSubInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRecordSubInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkResultType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkResultType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkTimeoutNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PkTimeoutNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantGrowState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantGrowState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlantInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatBanAccount.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatBanAccount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatformShareAwardPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatformShareAwardPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatformShareResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatformShareResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PokerTournamentEndReFundMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PokerTournamentEndReFundMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Position.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Position.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PositionCheck.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PositionCheck.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PositionCheckList.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PositionCheckList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PrivateChatList.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PrivateChatList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PunishDataType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PunishDataType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PunishType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PunishType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushPraise.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushPraise.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBattleBeginData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBattleBeginData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBattleEndData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBattleEndData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpHistory.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpHistory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpNowGameData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpNowGameData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpNowUnitData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpNowUnitData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpReqType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpReqType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpRoleBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PvpRoleBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QAIDNameList.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QAIDNameList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QARoomRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QARoomRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QARoomRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QARoomRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QQVipInfoClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QQVipInfoClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QTEOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QTEOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGateRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGateRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryPkInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryPkInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryResWarArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryResWarArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryResWarEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryResWarEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryResWarRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryResWarRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateAck.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateAck.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RankeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RankeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReachAchieveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReachAchieveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReachDesignationNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReachDesignationNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReadAccountDataType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReadAccountDataType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RecAllianceArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RecAllianceArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RecAllianceRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RecAllianceRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReceiveFlowerData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReceiveFlowerData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReceiveRoleFlowerInfo2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReceiveRoleFlowerInfo2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconnArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconnArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconnRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconnRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconnectScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReconnectScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportBattleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportBattleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportBattleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportBattleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportDataRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReportDataRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRse.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRse.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoAgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoAgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarAllTeamBaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarAllTeamBaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarEnemyTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarEnemyTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarFinalAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarFinalAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarGroupData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarGroupData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarGuildBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarGuildBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarMineData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarMineData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarPVEArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarPVEArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarPVERes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarPVERes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRankSimpleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRankSimpleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarStateInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarStateInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarTimeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResWarTimeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetSkillArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetSkillArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetSkillRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetSkillRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetTowerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetTowerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetTowerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetTowerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResetType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResumeItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ResumeItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveCountdownInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveCountdownInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ReviveType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RewardChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RewardChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RewardInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RewardInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RewardRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RewardRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RewardStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RewardStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftFloorStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftFloorStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftRecord2Db.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftRecord2Db.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftSceneInfoNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiftSceneInfoNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBoxState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBoxState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskGridInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskGridInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskGridType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskGridType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskMapInfos.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskMapInfos.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskOneMapInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskOneMapInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleBriefInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleBriefInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleConfig.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleConfig.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleDataReadType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleDataReadType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleEventType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleEventType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleExtraInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleExtraInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleFindBackRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleFindBackRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleGuildBonusData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleGuildBonusData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleGuildContribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleGuildContribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleLotteryInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleLotteryInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleMiscData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleMiscData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleOutLookBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleOutLookBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RolePartnerData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RolePartnerData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RolePushInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RolePushInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleRiskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleRiskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleStateMatch.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleStateMatch.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleStateReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleStateReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleSystem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleSystem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SAtlasRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SAtlasRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SCEliRoomInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SCEliRoomInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SCEliTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SCEliTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SChatRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SChatRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SMail.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SMail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SPetRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SPetRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SRoleMultiReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SRoleMultiReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SSceneState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SSceneState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/STransformBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/STransformBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneFinishState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneFinishState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneLeftDoodad.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneLeftDoodad.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ScenePrepareInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ScenePrepareInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SceneType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectChestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectChestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectChestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectChestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelfServerData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SelfServerData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendFlowerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendFlowerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendFlowerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendFlowerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ServerFlag.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ServerFlag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ServerOpenDay.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ServerOpenDay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ServerTag.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ServerTag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetDesignationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetDesignationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetPreShowArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetPreShowArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetPreShowRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetPreShowRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetSubscirbeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetSubscirbeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetSubscribeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetSubscribeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetVoipMemberState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SetVoipMemberState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShadowCatData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShadowCatData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShareRandomGiftData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShareRandomGiftData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShareReportData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShareReportData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShopRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShopRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShopRecordOne.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShopRecordOne.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillBulletResultReqUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillBulletResultReqUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillChangedData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillChangedData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillCoolPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillCoolPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillInitCoolPara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillInitCoolPara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillResultReqUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillResultReqUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillTypeEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkillTypeEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateBaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateBaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityGroupData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityGroupData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamBaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamBaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamScore.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamScore.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftBattleRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftBattleRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtfType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtfType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReqTpe.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReqTpe.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyCraftType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyTeamDetail.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyTeamDetail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyTeamState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SkyTeamState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SmeltItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SmeltItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SmeltItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SmeltItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityOffsetDay.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityOffsetDay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpActivityTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpFirstCompleteScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpFirstCompleteScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpecialStageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpecialStageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpecialStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpecialStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SpriteType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageAssistOne.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageAssistOne.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageCountResetArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageCountResetArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageCountResetRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageCountResetRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageRankCond.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageRankCond.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageResultInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageResultInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageRoleResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageRoleResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageTrophy.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageTrophy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageTrophyData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageTrophyData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageWatchInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StageWatchInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartBattleFailedRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartBattleFailedRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartPlantArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartPlantArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartPlantRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartPlantRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartRollNtfData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartRollNtfData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartUpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartUpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StepMoveData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StepMoveData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StepSyncData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StepSyncData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StopMatchReason.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StopMatchReason.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SubScribe.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SubScribe.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveFightEndType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveFightEndType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveFightStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveFightStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveReqArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveReqArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveReqRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SurviveReqRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepTowerRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SweepTowerRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynDoingGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynDoingGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuilIntegralState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuilIntegralState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaRoleOnline.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaRoleOnline.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildIntegralState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynGuildIntegralState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SyncPlatFriend2MSData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SyncPlatFriend2MSData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynsMsSubType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynsMsSubType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynsMsType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SynsMsType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SystemRewardType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SystemRewardType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Systems.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Systems.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowRoleDailyVoteData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowRoleDailyVoteData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowTopListArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowTopListArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowTopListRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowTopListRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TajieHelp2DB.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TajieHelp2DB.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TajieHelpData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TajieHelpData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TajieHelpSceneData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TajieHelpSceneData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TargetHurtInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TargetHurtInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskActivityType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskActivityType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskConditionInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskConditionInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskConnType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskConnType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskHelpInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskHelpInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskRefreshNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskRefreshNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TaskStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamCountClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamCountClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamCountInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamCountInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamEventG2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamEventG2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamExtraInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamExtraInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamFullDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamFullDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInvite.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInvite.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInviteAck.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInviteAck.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInviteArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInviteArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInviteRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamInviteRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamMemberType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamMemberType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamRequestPlatFreind2ClientData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamRequestPlatFreind2ClientData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamSelect.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamSelect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeleportNoticeState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TeleportNoticeState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityChangeData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityChangeData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerFirstPassRewardData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerFirstPassRewardData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerSceneInfoData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TowerSceneInfoData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TransNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TransNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TransSkillNotfiy.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TransSkillNotfiy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TransformOpArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TransformOpArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TransformOpRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TransformOpRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TrophyGetTypeDetail.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TrophyGetTypeDetail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryAlliance.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryAlliance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryAllianceArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryAllianceArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryFishArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryFishArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryFishRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TryFishRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TssSdkAntiData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TssSdkAntiData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TutorialInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/TutorialInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitAppearList.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitAppearList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitAppearance.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitAppearance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceField.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceField.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitSpecialState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnitSpecialState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnlockSealFindBackData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UnlockSealFindBackData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateDisplayItems.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateDisplayItems.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateFreeflowHintInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateFreeflowHintInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateGuildArenaState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateGuildArenaState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueEleRoomStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueEleRoomStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueTeamState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueTeamState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateStartUpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateStartUpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseItemArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseItemArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseItemRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseItemRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseSupplementReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseSupplementReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseSupplementRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/UseSupplementRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/VsPayRevivePara.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/VsPayRevivePara.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WageRewardState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WageRewardState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WarningItemSet.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WarningItemSet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WarningPackage.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WarningPackage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WatchBattleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WatchBattleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingCarNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingCarNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingEventNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingEventNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingOperType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingOperType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingRoleBrief.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingRoleBrief.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeddingType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleAllRoleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleAllRoleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4TeamResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4TeamResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekReportData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekReportData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekReportDataType.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeekReportDataType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WordNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WordNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossDamageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossDamageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrSyncClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrSyncClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldBossStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldChannelLeftTimesNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldChannelLeftTimesNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldLevel.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/WorldLevel.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/XQTEState.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/XQTEState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ZoneRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ZoneRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/applyguildarenaarg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/applyguildarenaarg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/applyguildarenares.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/applyguildarenares.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/atlasdata.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/atlasdata.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/breakAtlas.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/breakAtlas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/breakAtlasRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/breakAtlasRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/buyextype.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/buyextype.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistarg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistarg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistres.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistres.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfoarg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfoarg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfores.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfores.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/guildArenaWarData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/guildArenaWarData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/guildarenadisplace.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/guildarenadisplace.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/guildcamppartyNotifyNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/guildcamppartyNotifyNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/petGetSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/petGetSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/randomtask.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/randomtask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/roArg.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/roArg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/synGuildInheritExp.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/synGuildInheritExp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/titleChangeData.cs create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/titleChangeData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LeagueBattleRecordBaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/LeagueBattleRecordBaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LeaguePKRecordInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/LeaguePKRecordInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LeagueTeamDetailInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/LeagueTeamDetailInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelCmd.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelCmd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardAbyssPartyHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardAbyssPartyHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardActivityHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardActivityHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardArenaHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardArenaHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardBattleDataHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardBattleDataHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardBattleFieldHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardBattleFieldHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardBattleRoyaleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardBattleRoyaleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardBigMeleeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardBigMeleeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardCustomBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardCustomBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardGerenalHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardGerenalHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardHeroBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardHeroBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardMobaBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardMobaBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardPVPHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardPVPHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardProfTrialsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardProfTrialsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardRaceHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardRaceHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardReportHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardReportHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardRiftHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardRiftHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardSelectChestHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardSelectChestHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardSkyArenaHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardSkyArenaHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardStageFailHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardStageFailHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskFailHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskFailHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueBigHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueBigHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueSmallHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueSmallHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardTerritoryHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardTerritoryHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardWeekendPartyBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelRewardWeekendPartyBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelSealSys.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelSealSys.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LevelSpawnType.cs create mode 100644 Client/Assets/Scripts/XMainClient/LevelSpawnType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LoadFinishedCallback.cs create mode 100644 Client/Assets/Scripts/XMainClient/LoadFinishedCallback.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LotteryCD.cs create mode 100644 Client/Assets/Scripts/XMainClient/LotteryCD.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LoverLivenessRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/LoverLivenessRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/LuaNetNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/LuaNetNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MadDuckSiegeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/MadDuckSiegeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MadDuckSiegeFrameHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/MadDuckSiegeFrameHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MailItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/MailItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MailOP.cs create mode 100644 Client/Assets/Scripts/XMainClient/MailOP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MailState.cs create mode 100644 Client/Assets/Scripts/XMainClient/MailState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MailType.cs create mode 100644 Client/Assets/Scripts/XMainClient/MailType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MallType.cs create mode 100644 Client/Assets/Scripts/XMainClient/MallType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MapSignalHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/MapSignalHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MaqueeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/MaqueeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MasterApplyInfoItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/MasterApplyInfoItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MatPackage.cs create mode 100644 Client/Assets/Scripts/XMainClient/MatPackage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MemberPrivilege.cs create mode 100644 Client/Assets/Scripts/XMainClient/MemberPrivilege.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MentorBeenApplyedInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/MentorBeenApplyedInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MentorRelationInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/MentorRelationInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MentorRelationTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/MentorRelationTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MentorshipTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/MentorshipTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MentorshipTaskStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/MentorshipTaskStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MessageShowInfoItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/MessageShowInfoItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MilitaryRankBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/MilitaryRankBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MilitaryRankData.cs create mode 100644 Client/Assets/Scripts/XMainClient/MilitaryRankData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaBattleRecordHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaBattleRecordHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaEntranceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaEntranceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaInfoPool.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaInfoPool.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaKillBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaKillBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaKillEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaKillEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaKillStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaKillStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaKillView.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaKillView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaMemberData.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaMemberData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaReminder.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaReminder.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MobaReminderEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/MobaReminderEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Monster_broo_black_teleport_back.cs create mode 100644 Client/Assets/Scripts/XMainClient/Monster_broo_black_teleport_back.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_back.cs create mode 100644 Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_back.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_foward.cs create mode 100644 Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_foward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Monster_broo_white_opposer_teleport_back.cs create mode 100644 Client/Assets/Scripts/XMainClient/Monster_broo_white_opposer_teleport_back.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MountLoadCallback.cs create mode 100644 Client/Assets/Scripts/XMainClient/MountLoadCallback.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MountLoadTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/MountLoadTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MulActivityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/MulActivityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MulActivityState.cs create mode 100644 Client/Assets/Scripts/XMainClient/MulActivityState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MulActivityTagType.cs create mode 100644 Client/Assets/Scripts/XMainClient/MulActivityTagType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MultipleDirection.cs create mode 100644 Client/Assets/Scripts/XMainClient/MultipleDirection.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/MyMentorship.cs create mode 100644 Client/Assets/Scripts/XMainClient/MyMentorship.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NPC_Velskud_teleport.cs create mode 100644 Client/Assets/Scripts/XMainClient/NPC_Velskud_teleport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NPC_Velskud_wing_teleport.cs create mode 100644 Client/Assets/Scripts/XMainClient/NPC_Velskud_wing_teleport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NeedItemView.cs create mode 100644 Client/Assets/Scripts/XMainClient/NeedItemView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NetErrCode.cs create mode 100644 Client/Assets/Scripts/XMainClient/NetErrCode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NetEvent.cs create mode 100644 Client/Assets/Scripts/XMainClient/NetEvent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NetEvtType.cs create mode 100644 Client/Assets/Scripts/XMainClient/NetEvtType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NextLevelSealView.cs create mode 100644 Client/Assets/Scripts/XMainClient/NextLevelSealView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NodeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/NodeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NoticeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/NoticeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NotifyType.cs create mode 100644 Client/Assets/Scripts/XMainClient/NotifyType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NpcPopSpeekView.cs create mode 100644 Client/Assets/Scripts/XMainClient/NpcPopSpeekView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/NpcTaskState.cs create mode 100644 Client/Assets/Scripts/XMainClient/NpcTaskState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/OptionsBattleTab.cs create mode 100644 Client/Assets/Scripts/XMainClient/OptionsBattleTab.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/OptionsTab.cs create mode 100644 Client/Assets/Scripts/XMainClient/OptionsTab.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcA2C_AudioAIDNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcA2C_AudioAIDNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AIDebugInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AIDebugInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AbsPartyNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AbsPartyNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ActivityRoleNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ActivityRoleNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllyMatchRoleIDNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllyMatchRoleIDNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AntiAddictionRemindNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AntiAddictionRemindNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AttributeChangeNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AttributeChangeNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReadyInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReadyInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReliveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReliveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldRoleAgainstNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldRoleAgainstNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleResultNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleResultNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleStatisticsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleStatisticsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointOutLookNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointOutLookNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleeReliveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleeReliveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BossRushOneFinishNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BossRushOneFinishNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BuffNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BuffNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CdCall.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CdCall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeFashionNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeFashionNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeNameCountNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeNameCountNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeSupplementNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeSupplementNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatOfflineNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatOfflineNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CheckinInfoNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CheckinInfoNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ClientOnlyBuffNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ClientOnlyBuffNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CloseChooseHeroNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CloseChooseHeroNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CompleteAchivement.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CompleteAchivement.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CorrectPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CorrectPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CountDownNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CountDownNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CoverDesignationNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CoverDesignationNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CustomBattleLoadingNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CustomBattleLoadingNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DPSNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DPSNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DeathNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DeathNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DisplayAddItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DisplayAddItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemSkillsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemSkillsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneCoolDownNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneCoolDownNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EntityTargetChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EntityTargetChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExecuteLevelScriptNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExecuteLevelScriptNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FashoinChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FashoinChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FatigueRecoverTimeNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FatigueRecoverTimeNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FightGroupChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FightGroupChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FirstPassRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FirstPassRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRainNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRainNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRankRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRankRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFZhanLingNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFZhanLingNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenPlantEventNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenPlantEventNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GiftIBBackInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GiftIBBackInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfAllFightEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfAllFightEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBattleStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBattleStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfGuildCombatNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfGuildCombatNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfKickNty.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfKickNty.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfOneBattleEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfOneBattleEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitFightBegin.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitFightBegin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprAllFightEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprAllFightEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprOneBattleEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprOneBattleEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBestCardsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBestCardsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCampPartyTradeNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCampPartyTradeNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCheckinBoxNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCheckinBoxNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildGoblinKillNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildGoblinKillNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildNotifyMemberChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildNotifyMemberChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildSettingChangedNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildSettingChangedNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HallIconSNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HallIconSNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleAncientPower.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleAncientPower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleCanUseHero.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleCanUseHero.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleInCircleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleInCircleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleOverTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleOverTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleSyncNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleSyncNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamRoleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamRoleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTipsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTipsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroKillNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroKillNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HintNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HintNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAnimationNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAnimationNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseCountDownTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseCountDownTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFinalNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFinalNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IdipPunishInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IdipPunishInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_InvFightBefEnterSceneNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_InvFightBefEnterSceneNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemCircleDrawResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemCircleDrawResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JoinRoomReply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JoinRoomReply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KickAccountJkydNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KickAccountJkydNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KillEnemyScoreNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KillEnemyScoreNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleBaseDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleBaseDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleLoadInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleLoadInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleOneResultNft.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleOneResultNft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleResultNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleResultNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelScriptStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelScriptStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelSealNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelSealNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginActivityStatusNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginActivityStatusNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamRoleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamRoleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaHintNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaHintNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaRoleChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaRoleChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaSignalBroadcast.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaSignalBroadcast.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MulActivityStateChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MulActivityStateChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeDoingGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeDoingGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildArenaBegin.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildArenaBegin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildBossEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildBossEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeHungryDown.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeHungryDown.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyAccountData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyAccountData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyClientEnterFight.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyClientEnterFight.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyEnhanceSuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyEnhanceSuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyGuildBossAddAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyGuildBossAddAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyIdipMessageGs.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyIdipMessageGs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyStartUpTypeToClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyStartUpTypeToClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchIconNum2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchIconNum2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NpcFlNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NpcFlNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnTransferWall.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnTransferWall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayGiftNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayGiftNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayMemberPrivilegeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayMemberPrivilegeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayScoreNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayScoreNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetInviteNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetInviteNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlatformShareAwardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlatformShareAwardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlayDiceNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlayDiceNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PositionDebug.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PositionDebug.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleBeginNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleBeginNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleKill.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleKill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachDesignationNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachDesignationNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReconnectSyncNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReconnectSyncNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarBattleDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarBattleDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveCountdown.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveCountdown.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RewardChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RewardChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskBuyNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskBuyNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskRecoverDiceNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskRecoverDiceNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneDamageRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneDamageRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneFinishStateChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneFinishStateChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SelectRoleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SelectRoleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ShareRandomGiftNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ShareRandomGiftNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillCoolNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillCoolNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityBattleDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityBattleDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityEstimateRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityEstimateRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityOffsetDayNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityOffsetDayNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartBattleFailedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartBattleFailedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartRollNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartRollNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynAtlasAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynAtlasAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaFightUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaFightUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaRoleOnline.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaRoleOnline.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildInheritNumInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildInheritNumInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncMoveNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncMoveNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncStepNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncStepNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TajieHelpNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TajieHelpNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TakeRandomTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TakeRandomTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamInviteNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamInviteNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamSelectNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamSelectNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeleportNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeleportNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ThemeActivityChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ThemeActivityChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TitleChangeNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TitleChangeNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerFirstPassRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerFirstPassRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerSceneInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerSceneInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TssSdkAntiDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TssSdkAntiDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitAppear.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitAppear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitDisappear.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitDisappear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateDisplayItems.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateDisplayItems.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateGuildArenaState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateGuildArenaState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdatePayInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdatePayInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateStageInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateStageInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateVoipRoomMemberNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateVoipRoomMemberNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WarningRandomNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WarningRandomNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WatchBattleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WatchBattleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingCarNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingCarNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingEventNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingEventNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingLoadInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingLoadInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WordNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WordNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldChannelLeftTimesNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldChannelLeftTimesNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldLevelNtf2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldLevelNtf2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synGuildInheritExp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synGuildInheritExp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synguildarenadisplace.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synguildarenadisplace.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_AnswerAckNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_AnswerAckNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_BlackListNtfNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_BlackListNtfNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CustomBattleGMNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CustomBattleGMNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DERankChangNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DERankChangNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DailyTaskEventNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DailyTaskEventNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildNameNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildNameNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildSettingChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildSettingChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_Get520FestivalRedPacket.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_Get520FestivalRedPacket.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GoalAwardsRedPoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GoalAwardsRedPoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatDismiss.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatDismiss.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatIssueCount.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatIssueCount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatQuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatQuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildAuctItemTimeFresh.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildAuctItemTimeFresh.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBestCardsNtfMs.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBestCardsNtfMs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffCDParamNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffCDParamNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleItemNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleItemNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCastFeatsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCastFeatsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSchoolHallUpdatePoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSchoolHallUpdatePoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSetingNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSetingNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HallIconMNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HallIconMNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvFightNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvFightNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvUnfStateM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvUnfStateM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InviteRefuseM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InviteRefuseM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_KickFMAuchor.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_KickFMAuchor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomLoginParamNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomLoginParamNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStartMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStartMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStopMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStopMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginDragonGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginDragonGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MCChatOffLineNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MCChatOffLineNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSEventNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSEventNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSReceiveFlowerNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSReceiveFlowerNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MakePartnerResultNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MakePartnerResultNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageLevelValueNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageLevelValueNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageNewPrivilegeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageNewPrivilegeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MidasExceptionNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MidasExceptionNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ModifyGuildNameNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ModifyGuildNameNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaBeginNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaBeginNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaNextTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaNextTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildLadderStart.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildLadderStart.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBattleWin.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBattleWin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBigIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBigIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrWar.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrWar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrall.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildWageReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildWageReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyGuildSkillData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyGuildSkillData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyIdipMessageMs.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyIdipMessageMs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamCreate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamCreate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamDissolve.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamDissolve.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageDivorceApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageDivorceApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMentorApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMentorApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifySkyTeamCreate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifySkyTeamCreate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PayParameterInfoInvalidNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PayParameterInfoInvalidNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PokerTournamentEndReFund.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PokerTournamentEndReFund.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PushQuestionNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PushQuestionNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAIDNameNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAIDNameNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAOverNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAOverNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QARoomRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QARoomRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarGuildBriefNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarGuildBriefNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarMineDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarMineDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarRankSimpleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarRankSimpleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleMatchStateM2CNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleMatchStateM2CNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildBonusNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildBonusNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildSkillInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildSkillInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SpriteStateChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SpriteStateChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_StartBattleFailedM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_StartBattleFailedM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuilIntegralState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuilIntegralState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaBattleInfoNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaBattleInfoNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaFightUnitNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaFightUnitNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildIntegralState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildIntegralState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamFullDataM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamFullDataM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamInviteM2CNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamInviteM2CNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamRequestPlatFreind2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamRequestPlatFreind2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueTeamState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueTeamState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdatePartnerToClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdatePartnerToClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_fastMBDismissM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_fastMBDismissM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_synguildarenadisplaceNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_synguildarenadisplaceNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ChatNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ChatNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ErrorNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ErrorNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_LoginChallenge.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_LoginChallenge.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioAuthKey.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioAuthKey.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioText.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioText.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_GetAudioListReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_GetAudioListReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AbsEnterScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AbsEnterScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatAtlas.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatAtlas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateFashionCharm.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateFashionCharm.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateHairColor.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateHairColor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatePreShow.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatePreShow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AddTempAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AddTempAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AgreeQAReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AgreeQAReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArgentaActivity.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArgentaActivity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactDeityStoveOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactDeityStoveOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AskForCheckInBonus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AskForCheckInBonus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AtlasUpStar.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AtlasUpStar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowActivityOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowActivityOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldAwardNumReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldAwardNumReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRankReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRankReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRoleAgainstReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRoleAgainstReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BindSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BindSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyDraw.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyDraw.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyExtraSkillEmblemSlot.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyExtraSkillEmblemSlot.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyGoldAndFatigue.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyGoldAndFatigue.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyHeroInHeroBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyHeroInHeroBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyIBItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyIBItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlot.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlot.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuySpriteEgg.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuySpriteEgg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyTeamSceneCount.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyTeamSceneCount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeDeclaration.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeDeclaration.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeGuildCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeGuildCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeLiveVisible.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeLiveVisible.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeProfession.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeProfession.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeRiskBoxState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeRiskBoxState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeSkillSet.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeSkillSet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeWatchRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeWatchRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Checkin.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Checkin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseProfession.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseProfession.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseRollReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseRollReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseSpecialEffects.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseSpecialEffects.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendFirstPass.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendFirstPass.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendWatchBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendWatchBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DEProgressReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DEProgressReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DHRReqC2G.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DHRReqC2G.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DecomposeEquipment.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DecomposeEquipment.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoEnterScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoEnterScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoodadItemAllSkillReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoodadItemAllSkillReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRoleList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRoleList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DrawLottery.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DrawLottery.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EmblemLevelUp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EmblemLevelUp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantActiveAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantActiveAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantTransfer.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantTransfer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EndGuildCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EndGuildCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceTranster.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceTranster.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterLeisureScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterLeisureScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterWatchBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterWatchBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ExpFindBack.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ExpFindBack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FashionCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FashionCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchAchivementReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchAchivementReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchChapterChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchChapterChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchEnemyDoodadReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchEnemyDoodadReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassGetTopRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassGetTopRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ForgeEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ForgeEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FuseEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FuseEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GMCommand.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GMCommand.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveBrifInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveBrifInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveClassifyInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveClassifyInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchievePointRewardReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchievePointRewardReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveRewardReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveRewardReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAncientTimesAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAncientTimesAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetClassifyDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetClassifyDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetCompeteDragonInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetCompeteDragonInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonGuildTaskChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonGuildTaskChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFirstPassReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFirstPassReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlower.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerLeftTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerLeftTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerRewardList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerRewardList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGoddessTrialRewards.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGoddessTrialRewards.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusDetailInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusDetailInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusLeft.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusLeft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCamPartyRandItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCamPartyRandItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCheckinBox.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCheckinBox.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildPartyReceiveInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildPartyReceiveInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildQADataReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildQADataReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleGameRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleGameRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleWeekReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleWeekReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHolidayStageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHolidayStageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetJadeSealAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetJadeSealAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealSelfGift.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealSelfGift.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLuckyActivityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLuckyActivityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNextDayReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNextDayReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetOnlineReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetOnlineReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatShareAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatShareAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatformShareChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatformShareChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityBigPrize.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityBigPrize.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSweepTowerReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSweepTowerReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSystemReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSystemReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerActivityTop.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerActivityTop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerFirstPassReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerFirstPassReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GmfReadyReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GmfReadyReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GoldClick.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GoldClick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GrowthFundAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GrowthFundAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampExchangeOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampExchangeOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampPartyReqExchange.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampPartyReqExchange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCheckInBonusInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCheckInBonusInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildPartySummonSpirit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildPartySummonSpirit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_HorseReConnect.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_HorseReConnect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_IdentifyEmblem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_IdentifyEmblem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InlayAllJade.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InlayAllJade.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InspireReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InspireReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemBuffOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemBuffOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBack.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemSell.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemSell.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeComposeNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeComposeNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperationNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperationNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JustDance.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JustDance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LeagueBattleReadyReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LeagueBattleReadyReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LearnGuildSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LearnGuildSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealButtonStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealButtonStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealExchange.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealExchange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LotteryDraw.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LotteryDraw.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MobaSignaling.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MobaSignaling.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MulActivityReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MulActivityReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenSceneChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenSceneChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Operation520Festival.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Operation520Festival.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PandoraLottery.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PandoraLottery.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayCardAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayCardAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayClick.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayClick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFirstAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFirstAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFriendItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFriendItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PeerBox.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PeerBox.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PersonalCareer.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PersonalCareer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperationOther.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperationOther.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PhotographEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PhotographEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceOver.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceOver.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpAllReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpAllReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpNowAllData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpNowAllData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryBoxs.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryBoxs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryClientIp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryClientIp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryGuildCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryGuildCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryIBItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryIBItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryLotteryCD.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryLotteryCD.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryOpenGameActivityTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryOpenGameActivityTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryPowerPoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryPowerPoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQFriendsVipInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQFriendsVipInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneDayCount.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneDayCount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReEnterRiskBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReEnterRiskBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshSweepReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshSweepReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshWeeklyTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshWeeklyTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReplyPartyExchangeItemOpt.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReplyPartyExchangeItemOpt.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBadPlayer.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBadPlayer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGetLoginReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGetLoginReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqPlayerAutoPlay.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqPlayerAutoPlay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarAllInfoReqOne.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarAllInfoReqOne.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetTower.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetTower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Revive.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Revive.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiftFirstPassReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiftFirstPassReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiskBuyRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiskBuyRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SceneMobaOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SceneMobaOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChargeBackRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChargeBackRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChestReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChestReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectHeroAncientPower.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectHeroAncientPower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendFlower.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendFlower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendGuildBonus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendGuildBonus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetHeroInHeroBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetHeroInHeroBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetPreShow.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetPreShow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetRoleConfig.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetRoleConfig.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShadowCatOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShadowCatOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShowFlowerPage.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShowFlowerPage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkillLevelup.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkillLevelup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkyCityAllInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkyCityAllInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SmeltItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SmeltItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SpriteOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SpriteOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StageCountReset.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StageCountReset.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StartGuildCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StartGuildCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SurviveReqC2G.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SurviveReqC2G.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SweepTower.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SweepTower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SynPetInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SynPetInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SyncTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SyncTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TactEnterScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TactEnterScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeDragonGuildChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeDragonGuildChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJade.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJade.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJadeNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJadeNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakePartnerChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakePartnerChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TaskOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TaskOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TeamInviteListReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TeamInviteListReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThanksForBonus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThanksForBonus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThemeActivityHint.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThemeActivityHint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TitleLevelUp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TitleLevelUp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TransformOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TransformOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TurnOverWeeklyTaskItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TurnOverWeeklyTaskItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UpgradeEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UpgradeEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseSupplement.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseSupplement.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_VsPayReviveReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_VsPayReviveReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeddingOperator.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeddingOperator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_breakAtlas.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_breakAtlas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2I_QueryGateIP.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2I_QueryGateIP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AceptGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AceptGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ActiveCookbook.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ActiveCookbook.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddBlackListNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddBlackListNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddFriendNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddFriendNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AdjustGuildArenaRolePosNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AdjustGuildArenaRolePosNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AllianceGuildTerr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AllianceGuildTerr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskDragonGuildMembers.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskDragonGuildMembers.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaInfoNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaInfoNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaTeamInfoNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaTeamInfoNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildBriefInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildBriefInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildMembers.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildMembers.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildSkillInfoNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildSkillInfoNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AuctionAllReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AuctionAllReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyDragonGuildShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyDragonGuildShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyPartnerShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyPartnerShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CancelLeavePartner.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CancelLeavePartner.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildSetting.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildSetting.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeGuildSettingNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeGuildSettingNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeMemberPositionNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeMemberPositionNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeNameNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeNameNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CheckRoleBeforePay.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CheckRoleBeforePay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearGuildTerrAlliance.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearGuildTerrAlliance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearPrivateChatList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearPrivateChatList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClickNewNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClickNewNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClientQueryRankListNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClientQueryRankListNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrEnterGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrEnterGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrJoinDragonGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrJoinDragonGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateRoleNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateRoleNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CrossGvgOper.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CrossGvgOper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CustomBattleOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CustomBattleOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DERankReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DERankReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DailyTaskRefreshOper.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DailyTaskRefreshOper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DelGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DelGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DoAddFriendNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DoAddFriendNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DonateMemberItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DonateMemberItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildApproval.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildApproval.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildBindGroupReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildBindGroupReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildJoinBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildJoinBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildUnBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildUnBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBMReadyScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBMReadyScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBattleReadyScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBattleReadyScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterWeddingScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterWeddingScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDGApps.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDGApps.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDragonGuildList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDragonGuildList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildApp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildApp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildHistoryNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildHistoryNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchMail.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchMail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlantInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlantInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlatNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlatNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGardenPlantLog.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGardenPlantLog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFCommonReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFCommonReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFFightInfoReqC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFFightInfoReqC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquet.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquetAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquetAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenCookingFood.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenCookingFood.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenExpelSprite.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenExpelSprite.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenFishInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenFishInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenOverview.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenOverview.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenSteal.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenSteal.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetAllWeddingInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetAllWeddingInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetCrossGvgData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetCrossGvgData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskAskHelp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskAskHelp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDanceIds.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDanceIds.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildBindInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildBindInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildLiveness.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildLiveness.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShop.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShopRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShopRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetFlowerActivityReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetFlowerActivityReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBonusSendList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBonusSendList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildCheckinRecordsNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildCheckinRecordsNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildDonateInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildDonateInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildIntegralInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildIntegralInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildWageReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildWageReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetListSubscribe.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetListSubscribe.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageLiveness.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageLiveness.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriagePrivilege.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriagePrivilege.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageRelation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageRelation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleBriefRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleBriefRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleGameRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleGameRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleWeekReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleWeekReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyMasterInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyMasterInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyStudentInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyStudentInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherGuildBriefNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherGuildBriefNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherMentorStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherMentorStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerDetailInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerDetailInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerLiveness.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerLiveness.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShop.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShopRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShopRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetQADataReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetQADataReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftEliInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftEliInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWeddingInviteInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWeddingInviteInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossStateNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossStateNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossTimeLeft.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossTimeLeft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetAwards.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetAwards.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatChangeName.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatChangeName.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatClear.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatClear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatCreate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatCreate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindRoleInfoList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindRoleInfoList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindTeamInfoList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindTeamInfoList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatGetGroupInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatGetGroupInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderAddRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderAddRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderIssueInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderIssueInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReview.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReview.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReviewList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReviewList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerIssueInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerIssueInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatQuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatQuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildApprovalNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildApprovalNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildArenaSimpleDeployNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildArenaSimpleDeployNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCampInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCampInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCheckinNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCheckinNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildFatigueOPNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildFatigueOPNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallGetBuffList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallGetBuffList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallUpdateBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallUpdateBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildJoinBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildJoinBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildSchoolHallGetRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildSchoolHallGetRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonateHistory.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonateHistory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_HoldWedding.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_HoldWedding.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_IbGiftHistReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_IbGiftHistReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvFightReqAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvFightReqAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinFmRoom.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinFmRoom.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinLeagueEleBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinLeagueEleBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_KMatchCommonReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_KMatchCommonReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeagueBattleReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeagueBattleReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromDragonGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromDragonGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeavePartner.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeavePartner.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MSGetFlowerRewardList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MSGetFlowerRewardList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MTShowTopList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MTShowTopList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MailOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MailOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MarriageRelationOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MarriageRelationOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorRelationOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorRelationOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyDragonGuildName.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyDragonGuildName.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyMsGuildName.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyMsGuildName.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_OPenGardenFarmland.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_OPenGardenFarmland.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_Open520FestivityRedPacket.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_Open520FestivityRedPacket.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PayNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PayNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PkReqC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PkReqC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantCultivation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantCultivation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantHarvest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantHarvest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryBigMeleeRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryBigMeleeRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryGuildCheckinNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryGuildCheckinNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWarRoleRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWarRoleRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RandomFriendWaitListNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RandomFriendWaitListNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RecAlliance.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RecAlliance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveBlackListNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveBlackListNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveFriendNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveFriendNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildArenaHistory.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildArenaHistory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildInheritInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildInheritInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderRnakInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderRnakInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrAllianceInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrAllianceInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrChallInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrChallInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrIntellInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrIntellInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqPlatFriendRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqPlatFriendRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ResWarExplore.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ResWarExplore.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReturnToSelectRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReturnToSelectRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SelectRoleNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SelectRoleNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGift2PlatFriend.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGift2PlatFriend.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGuildBonusInSendList.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGuildBonusInSendList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SetSubscribe.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SetSubscribe.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ShowFlowerPageNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ShowFlowerPageNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCityEnter.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCityEnter.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartPlant.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartPlant.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartResWarPVE.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartResWarPVE.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartWeddingCar.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartWeddingCar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StudyGuildSkillNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StudyGuildSkillNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TakeMarriageChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TakeMarriageChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TeamRequestC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TeamRequestC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryAlliance.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryAlliance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryDance.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryDance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryFish.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryFish.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UpdateMentorApplyStudentInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UpdateMentorApplyStudentInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UseGuildBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UseGuildBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WeddingInviteOperator.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WeddingInviteOperator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossGuildAddAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossGuildAddAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_applyguildarena.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_applyguildarena.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getapplyguildlist.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getapplyguildlist.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getguildbosstimeleft.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getguildbosstimeleft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getintegralbattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getintegralbattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_gmfjoinreq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_gmfjoinreq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_CreateRoleNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_CreateRoleNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_LoginReconnectReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_LoginReconnectReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_ReturnToSelectRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_ReturnToSelectRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_SelectRoleNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_SelectRoleNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_ClientLoginRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_ClientLoginRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_Reconnect.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_Reconnect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_UpLoadAudioToGate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_UpLoadAudioToGate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AddLevelScriptExtString.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AddLevelScriptExtString.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleLogReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleLogReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleStatisticsReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleStatisticsReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CancelRedDotReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CancelRedDotReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ChangeSupplementReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ChangeSupplementReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClickGuildCamp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClickGuildCamp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneCoolDownQuery.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneCoolDownQuery.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_LeaveSceneReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_LeaveSceneReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_MoveOperationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_MoveOperationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NextDayRewardReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NextDayRewardReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NotifyPlatShareResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NotifyPlatShareResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OnlineRewardReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OnlineRewardReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OperateRecordNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OperateRecordNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SceneDamageRankReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SceneDamageRankReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SetVoipMemberState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SetVoipMemberState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletFireReport.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletFireReport.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillResultReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillResultReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SyncSceneFinish.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SyncSceneFinish.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_TssSdkSendAnti2Server.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_TssSdkSendAnti2Server.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateFreeflowHintInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateFreeflowHintInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateTutorial.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateTutorial.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_BlackListReportNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_BlackListReportNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CheckQueuingReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CheckQueuingReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GardenFishStop.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GardenFishStop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardRankReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardRankReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_HandleMicphone.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_HandleMicphone.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_MulActivityIconSysReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_MulActivityIconSysReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PokerTournamentReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PokerTournamentReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_QueryResWarRequet.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_QueryResWarRequet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_RoleStateReportNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_RoleStateReportNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2N_CheckQueuingReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2N_CheckQueuingReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllyMatchRoleIDNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllyMatchRoleIDNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AntiAddictionRemindNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AntiAddictionRemindNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AttributeChangeNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AttributeChangeNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReadyInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReadyInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleResultNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleResultNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointOutLookNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointOutLookNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CdCall.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CdCall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CompleteAchivement.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CompleteAchivement.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CorrectPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CorrectPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CustomBattleLoadingNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CustomBattleLoadingNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DisplayAddItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DisplayAddItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneCoolDownNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneCoolDownNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EntityTargetChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EntityTargetChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExecuteLevelScriptNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExecuteLevelScriptNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FatigueRecoverTimeNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FatigueRecoverTimeNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRainNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRainNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GSErrorNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GSErrorNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenPlantEventNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenPlantEventNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCampPartyTradeNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCampPartyTradeNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildNotifyMemberChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildNotifyMemberChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildSettingChangedNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildSettingChangedNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleAncientPower.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleAncientPower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleInCircleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleInCircleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamRoleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamRoleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroKillNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroKillNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseCountDownTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseCountDownTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFinalNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFinalNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_InvFightBefEnterSceneNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_InvFightBefEnterSceneNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JoinRoomReply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JoinRoomReply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleBaseDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleBaseDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleOneResultNft.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleOneResultNft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleResultNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleResultNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginActivityStatusNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginActivityStatusNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamRoleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamRoleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MulActivityStateChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MulActivityStateChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeDoingGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeDoingGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildArenaBegin.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildArenaBegin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeHungryDown.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeHungryDown.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyAccountData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyAccountData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyClientEnterFight.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyClientEnterFight.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyGuildBossAddAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyGuildBossAddAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyStartUpTypeToClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyStartUpTypeToClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchIconNum2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchIconNum2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnTransferWall.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnTransferWall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OpenSystemNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OpenSystemNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayMemberPrivilegeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayMemberPrivilegeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlatformShareAwardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlatformShareAwardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PositionDebug.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PositionDebug.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PushPraiseNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PushPraiseNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleKill.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleKill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QANotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QANotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveCountdown.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveCountdown.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RewardChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RewardChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneFinishStateChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneFinishStateChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SelectRoleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SelectRoleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityOffsetDayNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityOffsetDayNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpecialStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpecialStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaFightUnit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaFightUnit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaRoleOnline.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaRoleOnline.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildInheritNumInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildInheritNumInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncMoveNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncMoveNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TajieHelpNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TajieHelpNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TakeRandomTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TakeRandomTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamInviteNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamInviteNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamSelectNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamSelectNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeleportNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeleportNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ThemeActivityChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ThemeActivityChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TitleChangeNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TitleChangeNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerFirstPassRewardNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerFirstPassRewardNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitDisappear.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitDisappear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateGuildArenaState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateGuildArenaState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdatePayInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdatePayInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WarningRandomNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WarningRandomNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingCarNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingCarNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingEventNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingEventNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldChannelLeftTimesNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldChannelLeftTimesNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synGuildInheritExp.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synGuildInheritExp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synguildarenadisplace.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synguildarenadisplace.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_BlackListNtfNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_BlackListNtfNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DERankChangNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DERankChangNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildSettingChanged.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildSettingChanged.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_Get520FestivalRedPacket.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_Get520FestivalRedPacket.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatDismiss.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatDismiss.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatQuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatQuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildAuctItemTimeFresh.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildAuctItemTimeFresh.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleItemNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleItemNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSetingNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSetingNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvFightNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvFightNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomLoginParamNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomLoginParamNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStartMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStartMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStopMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStopMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSErrorNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSErrorNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSEventNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSEventNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageLevelValueNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageLevelValueNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageNewPrivilegeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageNewPrivilegeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaBeginNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaBeginNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaNextTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaNextTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildLadderStart.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildLadderStart.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBattleWin.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBattleWin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBigIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBigIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildWageReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildWageReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamCreate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamCreate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamDissolve.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamDissolve.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageDivorceApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageDivorceApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMentorApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMentorApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PayParameterInfoInvalidNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PayParameterInfoInvalidNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PokerTournamentEndReFund.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PokerTournamentEndReFund.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PushQuestionNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PushQuestionNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QARoomRankNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QARoomRankNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleMatchStateM2CNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleMatchStateM2CNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_StartBattleFailedM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_StartBattleFailedM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaFightUnitNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaFightUnitNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildIntegralState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildIntegralState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamRequestPlatFreind2Client.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamRequestPlatFreind2Client.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueTeamState.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueTeamState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdatePartnerToClient.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdatePartnerToClient.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_synguildarenadisplaceNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcM2C_synguildarenadisplaceNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcRegister.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcRegister.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcT2C_LoginChallenge.cs create mode 100644 Client/Assets/Scripts/XMainClient/PTC/PtcT2C_LoginChallenge.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PandoraDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/PandoraDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ParabolaFx.cs create mode 100644 Client/Assets/Scripts/XMainClient/ParabolaFx.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PartLoadCallback.cs create mode 100644 Client/Assets/Scripts/XMainClient/PartLoadCallback.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PartLoadTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/PartLoadTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Partner.cs create mode 100644 Client/Assets/Scripts/XMainClient/Partner.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PartnerLiveness.cs create mode 100644 Client/Assets/Scripts/XMainClient/PartnerLiveness.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PartnerLivenessRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/PartnerLivenessRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PercentWatcher.cs create mode 100644 Client/Assets/Scripts/XMainClient/PercentWatcher.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PersonalBuffOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/PersonalBuffOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PersonalCareerBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/PersonalCareerBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PersonalCareerView.cs create mode 100644 Client/Assets/Scripts/XMainClient/PersonalCareerView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PetChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/PetChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PetExpTransferHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/PetExpTransferHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PetExpTransferStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PetExpTransferStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PetSex.cs create mode 100644 Client/Assets/Scripts/XMainClient/PetSex.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PetSkillLearnHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/PetSkillLearnHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PkInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PkInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_Info.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_Info.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_assassin_attack_chakelahuanying_dash.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_assassin_attack_chakelahuanying_dash.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou_ex.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou_ex.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_kali_attack_reqingsihuo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_kali_attack_reqingsihuo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_sorceress_dash.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_sorceress_dash.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Player_warrior_dash_start.cs create mode 100644 Client/Assets/Scripts/XMainClient/Player_warrior_dash_start.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PointRewardData.cs create mode 100644 Client/Assets/Scripts/XMainClient/PointRewardData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PointRewardHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/PointRewardHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PointRewardStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/PointRewardStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PreSettingNodeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/PreSettingNodeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PrepareSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/PrepareSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PrerogativeDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/PrerogativeDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PrerogativeDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/PrerogativeDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PrerogativeNormalType.cs create mode 100644 Client/Assets/Scripts/XMainClient/PrerogativeNormalType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PrerogativeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/PrerogativeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PresentBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/PresentBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PresentDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/PresentDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PrivateExt.cs create mode 100644 Client/Assets/Scripts/XMainClient/PrivateExt.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProjectDamageResult.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProjectDamageResult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProjectResultType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProjectResultType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/BclHelpers.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/BclHelpers.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/BufferExtension.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/BufferExtension.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/BufferPool.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/BufferPool.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/DataFormat.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/DataFormat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Extensible.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Extensible.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/IExtensible.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/IExtensible.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/IExtension.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/IExtension.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ImplicitFields.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ImplicitFields.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/MemberSerializationOptions.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/MemberSerializationOptions.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/AttributeMap.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/AttributeMap.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/CallbackSet.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/CallbackSet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MutableList.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MutableList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/SubType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/SubType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/ValueMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/ValueMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/NetObjectCache.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/NetObjectCache.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/PrefixStyle.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/PrefixStyle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterDeserializationAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterDeserializationAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterSerializationAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterSerializationAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeDeserializationAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeDeserializationAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeSerializationAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeSerializationAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoContractAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoContractAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoConverterAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoConverterAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoEnumAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoEnumAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoException.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoException.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIncludeAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIncludeAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoMemberAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoMemberAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoReader.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoReader.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoWriter.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoWriter.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/SerializationContext.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/SerializationContext.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ArrayDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ArrayDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BlobSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BlobSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BooleanSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BooleanSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ByteSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ByteSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/CharSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/CharSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DateTimeSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DateTimeSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DecimalSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DecimalSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DefaultValueDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DefaultValueDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DoubleSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DoubleSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/EnumSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/EnumSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/FieldDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/FieldDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/GuidSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/GuidSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoTypeSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoTypeSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ISerializerProxy.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ISerializerProxy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ImmutableCollectionDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ImmutableCollectionDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int16Serializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int16Serializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int32Serializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int32Serializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int64Serializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int64Serializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ListDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ListDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/MemberSpecifiedDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/MemberSpecifiedDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NetObjectSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NetObjectSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NullDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NullDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ParseableSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ParseableSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/PropertyDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/PropertyDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ProtoDecoratorBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ProtoDecoratorBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SByteSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SByteSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SingleSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SingleSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/StringSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/StringSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SubItemSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SubItemSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SurrogateSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SurrogateSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SystemTypeSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SystemTypeSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TagDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TagDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TimeSpanSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TimeSpanSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TupleSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TupleSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TypeSerializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TypeSerializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt16Serializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt16Serializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt32Serializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt32Serializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt64Serializer.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt64Serializer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UriDecorator.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UriDecorator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/SubItemToken.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/SubItemToken.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/WireType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtoBuf/WireType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Protocol.cs create mode 100644 Client/Assets/Scripts/XMainClient/Protocol.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ProtocolHead.cs create mode 100644 Client/Assets/Scripts/XMainClient/ProtocolHead.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PublicExt.cs create mode 100644 Client/Assets/Scripts/XMainClient/PublicExt.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PupilApplyInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PupilApplyInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PupilTargetItemInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PupilTargetItemInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PurchaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/PurchaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/PushSubscribeOptions.cs create mode 100644 Client/Assets/Scripts/XMainClient/PushSubscribeOptions.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/QQVipType.cs create mode 100644 Client/Assets/Scripts/XMainClient/QQVipType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/QualifyingRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/QualifyingRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/Rpc.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/Rpc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioText.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioText.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2A_GetAudioListReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2A_GetAudioListReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AbsEnterScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AbsEnterScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateHairColor.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateHairColor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatePreShow.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatePreShow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArgentaActivity.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArgentaActivity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowActivityOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowActivityOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldAwardNumReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldAwardNumReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRoleAgainstReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRoleAgainstReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CampDuelActivityOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CampDuelActivityOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeDeclaration.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeDeclaration.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeGuildCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeGuildCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeProfession.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeProfession.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeSkillSet.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeSkillSet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeWatchRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeWatchRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Checkin.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Checkin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseProfession.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseProfession.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseRollReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseRollReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendFirstPass.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendFirstPass.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendWatchBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendWatchBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DEProgressReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DEProgressReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DecomposeEquipment.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DecomposeEquipment.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoodadItemAllSkillReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoodadItemAllSkillReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EmblemLevelUp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EmblemLevelUp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantActiveAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantActiveAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantTransfer.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantTransfer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceTranster.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceTranster.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterLeisureScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterLeisureScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterWatchBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterWatchBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FashionCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FashionCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchAchivementReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchAchivementReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchChapterChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchChapterChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassGetTopRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassGetTopRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveBrifInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveBrifInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveClassifyInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveClassifyInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchievePointRewardReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchievePointRewardReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetClassifyDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetClassifyDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonGuildTaskChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonGuildTaskChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFirstPassReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFirstPassReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGoddessTrialRewards.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGoddessTrialRewards.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusDetailInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusDetailInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCamPartyRandItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCamPartyRandItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildPartyReceiveInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildPartyReceiveInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleGameRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleGameRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleWeekReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleWeekReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNextDayReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNextDayReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetOnlineReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetOnlineReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayAllInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayAllInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatShareAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatShareAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatformShareChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatformShareChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityBigPrize.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityBigPrize.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSystemReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSystemReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerFirstPassReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerFirstPassReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GrowthFundAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GrowthFundAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampExchangeOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampExchangeOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampPartyReqExchange.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampPartyReqExchange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCheckInBonusInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCheckInBonusInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildPartySummonSpirit.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildPartySummonSpirit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_HorseReConnect.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_HorseReConnect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_IdentifyEmblem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_IdentifyEmblem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeComposeNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeComposeNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperationNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperationNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JustDance.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JustDance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LearnGuildSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LearnGuildSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealButtonStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealButtonStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealExchange.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealExchange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MobaSignaling.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MobaSignaling.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MulActivityReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MulActivityReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenSceneChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenSceneChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Operation520Festival.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Operation520Festival.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PandoraLottery.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PandoraLottery.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayClick.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayClick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFirstAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFirstAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFriendItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFriendItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PersonalCareer.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PersonalCareer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperationOther.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperationOther.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PhotographEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PhotographEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpNowAllData.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpNowAllData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryClientIp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryClientIp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryGuildCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryGuildCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryLotteryCD.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryLotteryCD.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryOpenGameActivityTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryOpenGameActivityTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryPowerPoint.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryPowerPoint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQFriendsVipInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQFriendsVipInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshSweepReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshSweepReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBadPlayer.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBadPlayer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Revive.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Revive.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiskBuyRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiskBuyRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChestReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChestReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectHeroAncientPower.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectHeroAncientPower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendGuildBonus.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendGuildBonus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetDesignationReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetDesignationReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetRoleConfig.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetRoleConfig.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShadowCatOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShadowCatOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShowFlowerPage.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShowFlowerPage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SpriteOperation.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SpriteOperation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StageCountReset.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StageCountReset.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StartGuildCard.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StartGuildCard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SurviveReqC2G.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SurviveReqC2G.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TactEnterScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TactEnterScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJade.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJade.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakePartnerChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakePartnerChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TeamInviteListReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TeamInviteListReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThanksForBonus.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThanksForBonus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThemeActivityHint.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThemeActivityHint.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TurnOverWeeklyTaskItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TurnOverWeeklyTaskItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseSupplement.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseSupplement.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_VsPayReviveReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_VsPayReviveReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeddingOperator.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeddingOperator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AceptGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AceptGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ActiveCookbook.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ActiveCookbook.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddBlackListNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddBlackListNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskDragonGuildMembers.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskDragonGuildMembers.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildMembers.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildMembers.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AuctionAllReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AuctionAllReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyDragonGuildShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyDragonGuildShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CancelLeavePartner.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CancelLeavePartner.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildSetting.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildSetting.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeGuildSettingNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeGuildSettingNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeMemberPositionNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeMemberPositionNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeNameNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeNameNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearGuildTerrAlliance.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearGuildTerrAlliance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClickNewNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClickNewNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClientQueryRankListNtf.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClientQueryRankListNtf.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrJoinDragonGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrJoinDragonGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateRoleNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateRoleNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CustomBattleOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CustomBattleOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DelGuildInherit.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DelGuildInherit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DoAddFriendNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DoAddFriendNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DonateMemberItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DonateMemberItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildApproval.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildApproval.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildBindGroupReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildBindGroupReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildJoinBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildJoinBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildUnBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildUnBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBattleReadyScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBattleReadyScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterWeddingScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterWeddingScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildApp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildApp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlantInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlantInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlatNotice.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlatNotice.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquet.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquetAward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquetAward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenCookingFood.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenCookingFood.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenExpelSprite.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenExpelSprite.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenFishInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenFishInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenOverview.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenOverview.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetCrossGvgData.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetCrossGvgData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildBindInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildBindInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildLiveness.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildLiveness.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShopRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShopRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetFlowerActivityReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetFlowerActivityReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBonusSendList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBonusSendList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildCheckinRecordsNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildCheckinRecordsNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildWageReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildWageReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetListSubscribe.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetListSubscribe.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageRelation.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageRelation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleBriefRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleBriefRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleGameRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleGameRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleWeekReward.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleWeekReward.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyStudentInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyStudentInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherGuildBriefNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherGuildBriefNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShop.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShop.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatChangeName.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatChangeName.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatClear.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatClear.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatCreate.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatCreate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindRoleInfoList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindRoleInfoList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindTeamInfoList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindTeamInfoList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatGetGroupInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatGetGroupInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderAddRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderAddRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderIssueInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderIssueInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReview.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReview.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReviewList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReviewList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerIssueInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerIssueInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatQuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatQuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildApprovalNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildApprovalNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildArenaSimpleDeployNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildArenaSimpleDeployNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCampInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCampInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCheckinNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCheckinNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildSchoolHallGetRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildSchoolHallGetRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonateHistory.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonateHistory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_IbGiftHistReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_IbGiftHistReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvFightReqAll.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvFightReqAll.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_KMatchCommonReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_KMatchCommonReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeagueBattleReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeagueBattleReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromGuild.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromGuild.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MSGetFlowerRewardList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MSGetFlowerRewardList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MTShowTopList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MTShowTopList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MailOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MailOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MarriageRelationOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MarriageRelationOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorRelationOp.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorRelationOp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyDragonGuildName.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyDragonGuildName.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_Open520FestivityRedPacket.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_Open520FestivityRedPacket.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantCultivation.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantCultivation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RandomFriendWaitListNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RandomFriendWaitListNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveFriendNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveFriendNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderRnakInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderRnakInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrChallInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrChallInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrIntellInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrIntellInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqPlatFriendRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqPlatFriendRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ResWarExplore.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ResWarExplore.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SelectRoleNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SelectRoleNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGuildBonusInSendList.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGuildBonusInSendList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartResWarPVE.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartResWarPVE.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartWeddingCar.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartWeddingCar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TakeMarriageChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TakeMarriageChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TeamRequestC2M.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TeamRequestC2M.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryDance.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryDance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryFish.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryFish.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WeddingInviteOperator.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WeddingInviteOperator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossGuildAddAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossGuildAddAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_applyguildarena.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_applyguildarena.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getapplyguildlist.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getapplyguildlist.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getintegralbattleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getintegralbattleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2N_CreateRoleNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2N_CreateRoleNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2N_LoginReconnectReq.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2N_LoginReconnectReq.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2N_SelectRoleNew.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2N_SelectRoleNew.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2T_ClientLoginRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2T_ClientLoginRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs create mode 100644 Client/Assets/Scripts/XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RaceBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/RaceBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RaceEntranceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RaceEntranceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RaceEntranceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/RaceEntranceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RadioBattleBahaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RadioBattleBahaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RadioBattleDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/RadioBattleDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RadioBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RadioBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RadioDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/RadioDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RandomAttrDataMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/RandomAttrDataMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RandomGiftBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RandomGiftBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RandomGiftView.cs create mode 100644 Client/Assets/Scripts/XMainClient/RandomGiftView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RankRewardData.cs create mode 100644 Client/Assets/Scripts/XMainClient/RankRewardData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RankRewardHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/RankRewardHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RankRewardStatus.cs create mode 100644 Client/Assets/Scripts/XMainClient/RankRewardStatus.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecentMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecentMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitAuthorizeBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitAuthorizeBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitAuthorizeView.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitAuthorizeView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitGroupHandle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitGroupHandle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitGroupPublishBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitGroupPublishBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitGroupPublishView.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitGroupPublishView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitListHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitListHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitMemberHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitMemberHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitNameBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitNameBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitNameView.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitNameView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPlayerPublishBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPlayerPublishBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPlayerPublishView.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPlayerPublishView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPublishView.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitPublishView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitSelectGroupHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitSelectGroupHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitSelectGroupUpdate.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitSelectGroupUpdate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitStepCounter.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitStepCounter.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitStepCounterUpdate.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitStepCounterUpdate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitTitleBar.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitTitleBar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitTitleChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitTitleChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitTitleReSelect.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitTitleReSelect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitToggle.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitToggle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RecruitView.cs create mode 100644 Client/Assets/Scripts/XMainClient/RecruitView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RelaxGame.cs create mode 100644 Client/Assets/Scripts/XMainClient/RelaxGame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ReplayBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/ReplayBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ResRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/ResRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RewardAuxData.cs create mode 100644 Client/Assets/Scripts/XMainClient/RewardAuxData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RewardItemAuxData.cs create mode 100644 Client/Assets/Scripts/XMainClient/RewardItemAuxData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RollDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/RollDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/RollDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/RollDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SceneMat.cs create mode 100644 Client/Assets/Scripts/XMainClient/SceneMat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SceneRefuseReason.cs create mode 100644 Client/Assets/Scripts/XMainClient/SceneRefuseReason.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ScreenShotCallback.cs create mode 100644 Client/Assets/Scripts/XMainClient/ScreenShotCallback.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Script.meta create mode 100644 Client/Assets/Scripts/XMainClient/Script/XSkillGen.meta create mode 100644 Client/Assets/Scripts/XMainClient/Script/XSkillGen/SkillGenTemplate.txt create mode 100644 Client/Assets/Scripts/XMainClient/Script/XSkillGen/SkillGenTemplate.txt.meta create mode 100644 Client/Assets/Scripts/XMainClient/ScriptCode.cs create mode 100644 Client/Assets/Scripts/XMainClient/ScriptCode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SelectNumFrameBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/SelectNumFrameBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SelectNumFrameDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/SelectNumFrameDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SelectPlayerFromList.cs create mode 100644 Client/Assets/Scripts/XMainClient/SelectPlayerFromList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Selector.cs create mode 100644 Client/Assets/Scripts/XMainClient/Selector.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SelectorBind.cs create mode 100644 Client/Assets/Scripts/XMainClient/SelectorBind.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SelectorInvoke.cs create mode 100644 Client/Assets/Scripts/XMainClient/SelectorInvoke.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SelectorPool.cs create mode 100644 Client/Assets/Scripts/XMainClient/SelectorPool.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SequenceList.cs create mode 100644 Client/Assets/Scripts/XMainClient/SequenceList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ServerBuffInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/ServerBuffInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ServerFlagEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/ServerFlagEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ServerInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/ServerInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ServerStateEnum.cs create mode 100644 Client/Assets/Scripts/XMainClient/ServerStateEnum.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SetDestWay.cs create mode 100644 Client/Assets/Scripts/XMainClient/SetDestWay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SetEffectInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/SetEffectInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ShareBgType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ShareBgType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ShareOpType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ShareOpType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ShareTagType.cs create mode 100644 Client/Assets/Scripts/XMainClient/ShareTagType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SharedData.cs create mode 100644 Client/Assets/Scripts/XMainClient/SharedData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ShowAttriData.cs create mode 100644 Client/Assets/Scripts/XMainClient/ShowAttriData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/ShowSettingArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/ShowSettingArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillCore.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillCore.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillEffectMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillEffectMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillExternalArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillExternalArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillExternalBuffArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillExternalBuffArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillFactory.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillFactory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillFlags.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillFlags.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillJAPassedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillJAPassedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillLevelInfoMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillLevelInfoMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillPreViewMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillPreViewMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillQTEEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillQTEEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillTreeBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillTreeBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillTreeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillTreeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillTreeView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Skill/XSkillTreeView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkillDo.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkillDo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkillEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkillEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkillExternalCallback.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkillExternalCallback.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkillLevelupRequest.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkillLevelupRequest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkillStartEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkillStartEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkillTreeSortItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkillTreeSortItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaEntranceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaEntranceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaEntranceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaEntranceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaInfoHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaInfoHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaWaitHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/SkyArenaWaitHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SmeltAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/SmeltAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SocketState.cs create mode 100644 Client/Assets/Scripts/XMainClient/SocketState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SpActivityNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/SpActivityNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SpectateBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/SpectateBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SpectateHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/SpectateHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SpectateLevelRewardBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/SpectateLevelRewardBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SpriteHandlerTag.cs create mode 100644 Client/Assets/Scripts/XMainClient/SpriteHandlerTag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SpriteQuality.cs create mode 100644 Client/Assets/Scripts/XMainClient/SpriteQuality.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/StageRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/StageRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/StrengthAuxData.cs create mode 100644 Client/Assets/Scripts/XMainClient/StrengthAuxData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/StringTip.cs create mode 100644 Client/Assets/Scripts/XMainClient/StringTip.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SuperRiskMesType.cs create mode 100644 Client/Assets/Scripts/XMainClient/SuperRiskMesType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SuperRiskSpeedCost.cs create mode 100644 Client/Assets/Scripts/XMainClient/SuperRiskSpeedCost.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SuperRiskState.cs create mode 100644 Client/Assets/Scripts/XMainClient/SuperRiskState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/SysIntCache.cs create mode 100644 Client/Assets/Scripts/XMainClient/SysIntCache.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TaJieHelpBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/TaJieHelpBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TaJieHelpDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/TaJieHelpDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TabIndex.cs create mode 100644 Client/Assets/Scripts/XMainClient/TabIndex.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TargetItemInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/TargetItemInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TargetRewardType.cs create mode 100644 Client/Assets/Scripts/XMainClient/TargetRewardType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamBloodUIData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamBloodUIData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamBonusHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamBonusHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamBriefData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamBriefData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamCategory.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamCategory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamCategoryMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamCategoryMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamCreateTeamWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamCreateTeamWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamDungeonSelectorHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamDungeonSelectorHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamFriendDegreeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamFriendDegreeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamInputPasswordView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamInputPasswordView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamInviteData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamInviteData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamInviteDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamInviteDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamInviteListData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamInviteListData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueFinalResultBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueFinalResultBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordView.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamListHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamListHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMemberBriefData.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMemberBriefData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMemberCountChangedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMemberCountChangedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMemberMonitor.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMemberMonitor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMonitorHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMonitorHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMonitorState.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMonitorState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMonitorStateMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamMonitorStateMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamPartnerBonusHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamPartnerBonusHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamPasswordHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamPasswordHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamPosition.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamPosition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamRelation.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamRelation.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamRift.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamRift.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamSettingHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamSettingHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamSmallChatHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamSmallChatHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamState.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TeamBriefSortType.cs create mode 100644 Client/Assets/Scripts/XMainClient/TeamBriefSortType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TeamLevelType.cs create mode 100644 Client/Assets/Scripts/XMainClient/TeamLevelType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TeamLevelTypemgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/TeamLevelTypemgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TeamTowerData.cs create mode 100644 Client/Assets/Scripts/XMainClient/TeamTowerData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TimeOverFinishEventHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/TimeOverFinishEventHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TipNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/TipNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TitleClickEventHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/TitleClickEventHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TitleDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/TitleDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TitleItemDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/TitleItemDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TitleSelector.cs create mode 100644 Client/Assets/Scripts/XMainClient/TitleSelector.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonActivateFashion.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonActivateFashion.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateCompose.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateCompose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemPutOn.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemPutOn.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemSmelt.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemSmelt.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchant.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchant.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchantTransform.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchantTransform.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhance.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhanceTransform.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhanceTransform.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipFusion.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipFusion.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipUpgrade.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipUpgrade.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOn.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOn.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOnSuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOnSuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOff.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOffSuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOffSuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateForge.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateForge.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateIdentify.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateIdentify.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemAny.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemAny.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemUse.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemUse.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateJadeUpgrade.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateJadeUpgrade.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutIn.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutIn.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutOn.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutOn.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateRecycle.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateRecycle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateSell.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateSell.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmelt.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmelt.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmeltReturn.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmeltReturn.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOff.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOut.cs create mode 100644 Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOut.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TowerInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/TowerInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandEmpty.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandEmpty.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandNote.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandNote.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmd.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecuteCondition.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecuteCondition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecutor.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecutor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdFinishCondition.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdFinishCondition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdParser.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdParser.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialHelper.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialHelper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMainCmd.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMainCmd.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TutorialSkipBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/TutorialSkipBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/TutorialSkipView.cs create mode 100644 Client/Assets/Scripts/XMainClient/TutorialSkipView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AccessData.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AccessData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityRiftDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityRiftDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityRiftGuidInfoHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityRiftGuidInfoHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityRiftItemsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityRiftItemsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityWeekendPartyView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ActivityWeekendPartyView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AncientHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AncientHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AnnounceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AnnounceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AnnouncementHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AnnouncementHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactAtlasHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactAtlasHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactBagHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactBagHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactComposeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactComposeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactComposingHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactComposingHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactFrameHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactFrameHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactFuseHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactFuseHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactInscriptionHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactInscriptionHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactItemsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactItemsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactOneKeyHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactOneKeyHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactQuanlityFx.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactQuanlityFx.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactRecastHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactRecastHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactRefinedHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactRefinedHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactToolTipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactToolTipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactTooltipDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ArtifactTooltipDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AttrFrameParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AttrFrameParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AttrParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AttrParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionBillBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionBillBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionBillStyle.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionBillStyle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionBillView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionBillView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionBuyHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionBuyHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionHouseHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionHouseHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionNumberOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionNumberOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionSellHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionSellHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionWrapContentGroup.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/AuctionWrapContentGroup.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/Battle.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleContiBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleContiBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleContiDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleContiDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleContinueDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleContinueDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleContinueDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleContinueDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleDebugHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleDebugHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleDpsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleDpsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleDramaDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleDramaDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleDramaDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleDramaDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleEnemyType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleEnemyType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleIndicateHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleIndicateHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleIndicator.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleIndicator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleMain.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleMain.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleRecordGameInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleRecordGameInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleRecordHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleRecordHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleRecordPlayerInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleRecordPlayerInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleRiftHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleRiftHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleShareHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleShareHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleSkillHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleSkillHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleStatisticsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleStatisticsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleTargetHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleTargetHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleVoiceHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleVoiceHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleVoiceNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleVoiceNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleWorldBossHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BattleWorldBossHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BossRushBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BossRushBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/BossRushDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/BossRushDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CandidatesViewRecommendType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CandidatesViewRecommendType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CandidatesViewType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CandidatesViewType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ChallegeType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ChallegeType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ChallengeDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ChallengeDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CharacterEquipBagHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CharacterEquipBagHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CharacterEquipHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CharacterEquipHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CharacterItemBagHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CharacterItemBagHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CompeteNestBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CompeteNestBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CompeteNestDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CompeteNestDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CookingHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CookingHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleRankFrame.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleRankFrame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGCombatHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGCombatHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGHallHandle.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGHallHandle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGMainView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CrossGVGMainView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeDetailHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeDetailHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeListHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeListHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBriefHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBriefHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleChestHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleChestHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeCreateHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeCreateHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeDetailHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeDetailHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeListHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeListHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattlePasswordSettingHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattlePasswordSettingHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattleView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CustomBattleView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/CutSceneUIBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/CutSceneUIBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DailyActivityDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DailyActivityDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DanceMotionHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DanceMotionHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DemoUI.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DemoUI.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DemoUIBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DemoUIBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessRecordItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessRecordItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildShopRecordsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DragonGuildShopRecordsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DramaDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DramaDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DramaPage.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DramaPage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DungeonSelect.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DungeonSelect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EFavorState.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EFavorState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemBagMode.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemBagMode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemBagView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemBagView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemEquipView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemEquipView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemTotalAttributeView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EmblemTotalAttributeView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantActiveHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantActiveHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantAttrPreviewHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantAttrPreviewHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantBagHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantBagHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantOperateHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantOperateHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantResultHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnchantResultHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EncourageShowInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EncourageShowInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EndlessAbyssBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EndlessAbyssBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EndlessAbyssDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EndlessAbyssDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnemyInfoUpdater.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnemyInfoUpdater.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnhanceMasterHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnhanceMasterHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnhanceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EnhanceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipCreateDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipCreateDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipFusionHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipFusionHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipFusionSelectHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipFusionSelectHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipSetItemBaseView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipSetItemBaseView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipUpgradeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/EquipUpgradeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ExchangeItemBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ExchangeItemBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ExchangeItemDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ExchangeItemDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionAttrTotalHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionAttrTotalHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionBagHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionBagHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionComboBox.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionComboBox.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageAttributeFrame.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageAttributeFrame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageButtonGoFashion.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageButtonGoFashion.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageColouring.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageColouring.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageEffectFrame.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageEffectFrame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageEquipToolTipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageEquipToolTipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionHairToolTipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionHairToolTipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOn.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOn.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOnSuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOnSuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionTakeOff.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionTakeOff.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionToolTipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionToolTipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashtionTakeOffSuit.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageFashtionTakeOffSuit.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageHairColorFrame.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageHairColorFrame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageTooltipBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageTooltipBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStorageType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStotageDisplayHandle.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionStotageDisplayHandle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FeastHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FeastHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FindBackData.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FindBackData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassGhjcHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassGhjcHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassGuindRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassGuindRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassMainHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassMainHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassMwcxHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassMwcxHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassTeamInfoHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FirstPassTeamInfoHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FlowerActivityHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FlowerActivityHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ForgeAttrPreViewHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ForgeAttrPreViewHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ForgeMainHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ForgeMainHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FriendsWeddingHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FriendsWeddingHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FriendsWeddingPrivilegeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FriendsWeddingPrivilegeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FrozenSealHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FrozenSealHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FrozenSealState.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FrozenSealState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/FunctionDef.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/FunctionDef.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGBattleMemberBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGBattleMemberBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGBattleRankFrameBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGBattleRankFrameBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGCombatGuildDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGCombatGuildDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGCombatHandlerBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGCombatHandlerBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGDuelHandlerBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGDuelHandlerBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGHallBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GVGHallBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GameCommunityHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GameCommunityHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GameSystem.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GameSystem/SkillDlgPromoteHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GameSystem/SkillDlgPromoteHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatHandle.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatHandle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelResultInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelResultInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaHallHandle.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaHallHandle.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaInspireCD.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaInspireCD.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaRankBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaRankBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaRankDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenaRankDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenadDuelFinalInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildArenadDuelFinalInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildBuffOperationHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildBuffOperationHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildDragonChallengeResultView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildDragonChallengeResultView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildFiexdRedPackageView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildFiexdRedPackageView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildInheritBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildInheritBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildInheritDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildInheritDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildJockerMatchView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildJockerMatchView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildMiniReportHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildMiniReportHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildMiniReportItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildMiniReportItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildPositionBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildPositionBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildPositionMenu.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildPositionMenu.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildQualifierBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildQualifierBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildQualifierDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildQualifierDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildQualifierHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildQualifierHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildSalaryDescHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildSalaryDescHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildSalayBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildSalayBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildScoreInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildScoreInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryBahaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryBahaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryReportDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryReportDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameShareBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameShareBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameShareDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HallFameShareDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleMVPDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleMVPDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleSkillHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleSkillHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleTeamHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroBattleTeamHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroSkillType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HeroSkillType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HolidayHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HolidayHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeCropInfoHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeCropInfoHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeFishingBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeFishingBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeFishingDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeFishingDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeFriendHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeFriendHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeMainDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeMainDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomePlantBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomePlantBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomePlantDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomePlantDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeSeedBagHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/HomeSeedBagHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/IAttrTooltipDlgHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/IAttrTooltipDlgHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/IGVGBattleMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/IGVGBattleMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/IGVGBattlePrepare.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/IGVGBattlePrepare.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/IRankSource.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/IRankSource.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/IRankView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/IRankView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ITooltipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ITooltipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleSource.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleSource.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/InnerGVGBattleMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/InnerGVGBattleMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemIconListDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemIconListDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemIconListDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemIconListDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemUseListDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemUseListDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemUseListDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ItemUseListDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeBagHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeBagHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeComposeFrameHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeComposeFrameHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeComposeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeComposeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeEquipHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeEquipHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeTooltipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/JadeTooltipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/JokerKingMainBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/JokerKingMainBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/KillInfoMode.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/KillInfoMode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoginWindowBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoginWindowBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoverLivenessRecordItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoverLivenessRecordItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoversLivenessBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoversLivenessBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoversLivenessDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LoversLivenessDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LuckyTurntableFrameHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LuckyTurntableFrameHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MailSystemDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MailSystemDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MallSystemDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MallSystemDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MilitaryRankDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MilitaryRankDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MiniMapElement.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MiniMapElement.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaHeadCondition.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MobaHeadCondition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalDlg2Behaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalDlg2Behaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalThreeDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ModalThreeDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MoneyTreeData.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MoneyTreeData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MyBattleKillInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MyBattleKillInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/MyHomeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/MyHomeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/NestStarRewardHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/NestStarRewardHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/OldFriendsReplayHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/OldFriendsReplayHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PPTBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PPTBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PVPActivityDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PVPActivityDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PairsPetInviteBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PairsPetInviteBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PairsPetInviteView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PairsPetInviteView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PairsPetSetHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PairsPetSetHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PandoraBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PandoraBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PandoraSDKHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PandoraSDKHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PandoraView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PandoraView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerLivenessDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerLivenessDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerLivenessRecordItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerLivenessRecordItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerMainHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerMainHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerShopRecordsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PartnerShopRecordsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PressTipsBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PressTipsBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/PressTipsDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/PressTipsDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ProfessionChangeDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ProfessionChangeDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ProfressionTrialsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ProfressionTrialsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/QAAudioPriority.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/QAAudioPriority.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/QteUIType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/QteUIType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/QualityFilterCallback.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/QualityFilterCallback.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/QualityFilterHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/QualityFilterHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RecycleItemBagView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RecycleItemBagView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RecycleItemOperateView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RecycleItemOperateView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RecycleSystemDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RecycleSystemDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RefinedReplaceHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RefinedReplaceHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RenameBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RenameBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReportNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReportNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RequestBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RequestBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RewardSystemDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RewardSystemDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RewdAnimBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RewdAnimBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ScreenShotShareBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ScreenShotShareBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/ScreenShotShareView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/ScreenShotShareView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SelectCharWindowBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SelectCharWindowBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SevenLoginBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SevenLoginBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SevenLoginWrapItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SevenLoginWrapItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SmeltMainHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SmeltMainHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpectateLevelRewardView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpectateLevelRewardView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpectateSceneBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpectateSceneBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpectateSceneView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpectateSceneView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpectateView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpectateView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteEggLotteryType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteEggLotteryType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteFightFrame.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteFightFrame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteLotteryHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteLotteryHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteMainFrame.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteMainFrame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteResolveFrame.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteResolveFrame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteSelectHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteSelectHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteShopHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteShopHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteStarUpWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteStarUpWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteSystemDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteSystemDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SpriteWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskGameHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskGameHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskOnlineBoxHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskOnlineBoxHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskOpenboxHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskOpenboxHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskSelectMapHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SuperRiskSelectMapHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SystemHelpBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SystemHelpBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/SystemRewardTypeMrg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/SystemRewardTypeMrg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TabDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TabDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TheExpBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TheExpBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TheExpView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TheExpView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitanBarBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitanBarBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitanbarView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitanbarView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleShareBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleShareBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleShareDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TitleShareDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TooltipDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TooltipDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/TooltipParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/TooltipParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBehaviourBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBehaviourBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/TabHandleBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/TabHandleBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/UIManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/UIManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/VirtualJoystick.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/UICommon/VirtualJoystick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/UiUtility.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/UiUtility.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/VoiceQATipsType.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/VoiceQATipsType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WebView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WebView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WebViewBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WebViewBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeddingInviteTab.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeddingInviteTab.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeddingSceneHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeddingSceneHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeekNestDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeekNestDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeekShareRewardHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeekShareRewardHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeekendPartyHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeekendPartyHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/WelfareGrowthFundItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/WelfareGrowthFundItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XAchieveView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XAchieveView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XActivityInviteBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XActivityInviteBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XActivityInviteView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XActivityInviteView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBackFlowMallHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBackFlowMallHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBackFlowPandoraSDKHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBackFlowPandoraSDKHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfoHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfoHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBattleOptionsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBattleOptionsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBattleTeamTowerHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBattleTeamTowerHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBossRefreshAnimHander.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBossRefreshAnimHander.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBossRewardDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBossRewardDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBriefLevelupBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBriefLevelupBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBriefLevelupView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBriefLevelupView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBuffMonitorHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBuffMonitorHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBuyCountBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBuyCountBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBuyCountView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XBuyCountView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCampDuelMainHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCampDuelMainHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCampDuelPointRewardHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCampDuelPointRewardHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCampDuelRankRewardHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCampDuelRankRewardHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCharacterCommonMenuView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCharacterCommonMenuView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XContentMailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XContentMailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDesignationView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDesignationView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonGuildApproveSettingView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonGuildApproveSettingView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonHistoryHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonHistoryHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonPartnerHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonPartnerHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonRecordHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonRecordHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonRwdHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDragonRwdHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDramaOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDramaOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDramaOperateButton.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDramaOperateButton.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDramaOperateList.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDramaOperateList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDramaOperateParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XDramaOperateParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFPStrengthenBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFPStrengthenBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFlowerReplyBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFlowerReplyBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFlowerReplyView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFlowerReplyView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFpStrengthenView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFpStrengthenView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFriendsRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFriendsRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFriendsViewAddBlockHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFriendsViewAddBlockHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFriendsViewHintHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFriendsViewHintHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFriendsViewReceiveGiftHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XFriendsViewReceiveGiftHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGameSirBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGameSirBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGameSirView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGameSirView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApplyBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApplyBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApplyView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApplyView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApproveBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApproveBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApproveSettingView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApproveSettingView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApproveView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildApproveView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildArenaDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildArenaDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildBasicInfoDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildBasicInfoDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildBoonView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildBoonView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildCreateView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildCreateView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildDragonView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildDragonView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildEditAnnounceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildEditAnnounceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildGrowthDonateBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildGrowthDonateBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildGrowthEntranceBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildGrowthEntranceBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildHallBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildHallBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildHallView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildHallView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildHuntDramaOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildHuntDramaOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildListView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildListView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildLogView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildLogView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildMemberInfoDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildMemberInfoDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildMembersBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildMembersBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildMembersView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildMembersView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildPortraitBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildPortraitBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildPortraitView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildPortraitView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketDetailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketDetailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildRedPakageLogView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildRedPakageLogView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildSignInBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildSignInBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildSignInView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildSignInView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildSignRedPackageView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildSignRedPackageView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildViewBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildViewBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildViewView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XGuildViewView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XLoginView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XLoginView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMISystemAnnounceHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMISystemAnnounceHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterface.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterface.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBriefHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBriefHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceMemberMonitor.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceMemberMonitor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTaskHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTaskHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTeamHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTeamHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainSubstance.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainSubstance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainSubstanceHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMainSubstanceHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationsView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationsView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipPupilsDramaOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XMentorshipPupilsDramaOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorDrama.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorDrama.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaExchange.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaExchange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaSend.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaSend.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCFavorHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCSendSubHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCSendSubHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCUnionHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCUnionHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCUnionMemSubHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNPCUnionMemSubHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNpcAttrHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XNpcAttrHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPartnerDramaOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPartnerDramaOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPetMainBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPetMainBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPetMainView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPetMainView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPlayerMailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XPlayerMailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XQuickReplyBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XQuickReplyBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XRewardLevelView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XRewardLevelView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XRwdMailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XRwdMailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSceneDamageRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSceneDamageRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSelectCharView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSelectCharView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XServerActivityView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XServerActivityView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XShowGetItemView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XShowGetItemView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSparkController.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSparkController.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeAHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeAHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAttributePHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAttributePHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeSHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeSHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAvatarHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSpriteAvatarHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSystemItemMailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSystemItemMailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSystemMailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XSystemMailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTargetRewardPopWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTargetRewardPopWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTargetRewardView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTargetRewardView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamConfirmBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamConfirmBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamConfirmView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamConfirmView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInputPasswordBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInputPasswordBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInviteBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInviteBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInviteView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInviteView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamLeagueFinalResultView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamLeagueFinalResultView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamListView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamListView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTeamView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTempTipDefine.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTempTipDefine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XVoiceQAView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XVoiceQAView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingCostBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingCostBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingCostView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingCostView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingDramaOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingDramaOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingInviteBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingInviteBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingInviteView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingInviteView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingLitterBoyDramaOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingLitterBoyDramaOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingLitterGirlDramaOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWeddingLitterGirlDramaOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareDiamondHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareDiamondHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareGiftBagHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareGiftBagHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareGrowthFundHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareGrowthFundHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareMoneyTreeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareMoneyTreeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareNiceGirlHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareNiceGirlHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareRewardBackHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareRewardBackHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareYyMallHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelfareYyMallHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelffareFirstRechargrHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWelffareFirstRechargrHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWheelOfFortuneHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWheelOfFortuneHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWheelState.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWheelState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWorldBossDamageRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWorldBossDamageRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWorldBossEndRankView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWorldBossEndRankView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWorldBossResultView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWorldBossResultView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWorldBossView.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XWorldBossView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UI/YorozuyaHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/UI/YorozuyaHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UIBuffInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/UIBuffInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/UnFadeObject.cs create mode 100644 Client/Assets/Scripts/XMainClient/UnFadeObject.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/IXItemDescription.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/IXItemDescription.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XEmblemDescription.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XEmblemDescription.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XEquipDescription.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XEquipDescription.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XFashionDescription.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XFashionDescription.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XFashionHairDescription.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XFashionHairDescription.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XJadeDescription.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XJadeDescription.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XNormalDescription.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XNormalDescription.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XUITabControl.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XUITabControl.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XartifactDescription.cs create mode 100644 Client/Assets/Scripts/XMainClient/Utility/XartifactDescription.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/VIPGiftState.cs create mode 100644 Client/Assets/Scripts/XMainClient/VIPGiftState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/VirtualJoystickBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/VirtualJoystickBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/VoiceAnswer.cs create mode 100644 Client/Assets/Scripts/XMainClient/VoiceAnswer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/VoiceUsage.cs create mode 100644 Client/Assets/Scripts/XMainClient/VoiceUsage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WarResGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/WarResGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeaponLoadTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeaponLoadTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeddingBriefInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeddingBriefInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeddingRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeddingRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeekEndNestDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeekEndNestDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeekEndNestDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeekEndNestDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeekNestRankBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeekNestRankBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeekNestRankDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeekNestRankDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeekNestRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeekNestRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeekendPartyBattleRoleInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeekendPartyBattleRoleInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WeeklyTaskCategory.cs create mode 100644 Client/Assets/Scripts/XMainClient/WeeklyTaskCategory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossEndRankBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossEndRankBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIAutoFightEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIAutoFightEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIDataRelated.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIDataRelated.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIEnableAI.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIEnableAI.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIEndSkillEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIEndSkillEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIEnterFightEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIEnterFightEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIGlobal.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIGlobal.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIMove.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIMove.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIOtherActions.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIOtherActions.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIRestartEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIRestartEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAISkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAISkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAISkillHurtEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAISkillHurtEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIStartSkillEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIStartSkillEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAIStopEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAIStopEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAITarget.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAITarget.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAbyssPartyDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAbyssPartyDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAchievementDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAchievementDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAchievementView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAchievementView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XActionArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XActionArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XActionGeneratorComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XActionGeneratorComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XActionReceiver.cs create mode 100644 Client/Assets/Scripts/XMainClient/XActionReceiver.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XActionSender.cs create mode 100644 Client/Assets/Scripts/XMainClient/XActionSender.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XActivityDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XActivityDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XActivityInviteDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XActivityInviteDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XActivityTaskUpdatedArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XActivityTaskUpdatedArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XActor.cs create mode 100644 Client/Assets/Scripts/XMainClient/XActor.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAddItemEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAddItemEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAffiliate.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAffiliate.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAncientDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAncientDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAnnouncementBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAnnouncementBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAnnouncementDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAnnouncementDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAnnouncementView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAnnouncementView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XApolloDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XApolloDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArenaDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArenaDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArmorBrokenArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArmorBrokenArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArmorRecoverArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArmorRecoverArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactAttrView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactAttrView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactBuffInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactBuffInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactCreateDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactCreateDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactEffectInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactEffectInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArtifactItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XArtsSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/XArtsSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAssociatedCamera.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAssociatedCamera.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttackShowArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttackShowArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttackShowBeginArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttackShowBeginArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttackShowEndArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttackShowEndArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttrCommonFile.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttrCommonFile.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttrCommonHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttrCommonHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttrData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttrData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttrItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttrItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttrOtherFile.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttrOtherFile.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttrPair.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttrPair.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttrPlayerFile.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttrPlayerFile.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttributeCommon.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttributeCommon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttributeDefine.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttributeDefine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttributeMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttributeMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAttributes.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAttributes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAudioComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAudioComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAudioExParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAudioExParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAudioMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAudioMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAudioOperationArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAudioOperationArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAudioStateDefine.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAudioStateDefine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAuthorizationChannel.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAuthorizationChannel.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XAutoFade.cs create mode 100644 Client/Assets/Scripts/XMainClient/XAutoFade.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowLevelUpHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowLevelUpHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowServerHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowServerHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowTargetHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowTargetHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowTasksHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowTasksHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowType.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowWelfareHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBackFlowWelfareHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBag.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBagDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBagDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBagWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBagWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBaseCommand.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBaseCommand.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBaseRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBaseRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBattleCaptainPVPDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBattleCaptainPVPDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBattleEndArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBattleEndArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBattleFieldBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBattleFieldBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBattleFieldEntranceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBattleFieldEntranceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBattleSkillDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBattleSkillDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBattleStatistics.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBattleStatistics.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBetterDictionary.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBetterDictionary.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBetterList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBetterList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeEnemyChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeEnemyChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeEntranceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeEntranceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleePointChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleePointChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBigMeleeRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBillBoardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBillBoardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBillboardComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBillboardComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBillboardHideEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBillboardHideEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBillboardShowCtrlEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBillboardShowCtrlEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBlackWhite.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBlackWhite.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBlockInputBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBlockInputBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBlockInputView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBlockInputView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBodyBag.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBodyBag.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBoss.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBoss.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBossBushDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBossBushDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBubbleComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBubbleComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBubbleEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBubbleEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBullet.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBullet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBulletCore.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBulletCore.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XBulletMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XBulletMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraActionComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraActionComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraActionEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraActionEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraCloseUpComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraCloseUpComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraCloseUpEndEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraCloseUpEndEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraCloseUpEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraCloseUpEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraCollisonComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraCollisonComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraEx.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraEx.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraIntellectiveFollow.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraIntellectiveFollow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraMotionComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraMotionComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraMotionEndEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraMotionEndEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraMotionEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraMotionEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraShakeComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraShakeComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraSoloComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraSoloComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraSoloEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraSoloEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraVAdjustComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraVAdjustComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCameraWallComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCameraWallComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCampDuelDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCampDuelDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCampDuelRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCampDuelRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCampDuelRankLeftList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCampDuelRankLeftList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCampDuelRankRightList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCampDuelRankRightList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCaptainPVPView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCardCollectDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCardCollectDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCardCombination.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCardCombination.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCardShopHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCardShopHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCarnivalDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCarnivalDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChapterDifficult.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChapterDifficult.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChapterType.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChapterType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterAttrView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterAttrView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterCommonMenuDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterCommonMenuDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterEquipDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterEquipDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterFashionView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterFashionView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterInfoView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterInfoView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterItemDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterItemDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterShowChatComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCharacterShowChatComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatApolloMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatApolloMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatInputBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatInputBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatInputView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatInputView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatMaqueeBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatMaqueeBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatMaqueeView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatMaqueeView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatSettingBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatSettingBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatSettingView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatSettingView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatSmallView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatSmallView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatUIOP.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatUIOP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatVoiceManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatVoiceManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChatVoiceStatusView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChatVoiceStatusView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChest.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChest.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChestProgress.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChestProgress.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChickenDinnerRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChickenDinnerRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XChickenDinnerRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XChickenDinnerRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XClientNetwork.cs create mode 100644 Client/Assets/Scripts/XMainClient/XClientNetwork.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCmdState.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCmdState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCombat.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCombat.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCombatEffectManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCombatEffectManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCombatStatisticsDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCombatStatisticsDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCombatStatisticsInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCombatStatisticsInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCombinedSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCombinedSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommand.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommand.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandClickEntity.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandClickEntity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandCutscene.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandCutscene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandDirectSys.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandDirectSys.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandExec.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandExec.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandForceClick.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandForceClick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandForceSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandForceSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandForceSlide.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandForceSlide.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandGenericClick.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandGenericClick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandMove.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandMove.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandNewIcon.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandNewIcon.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandNoforceClick.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandNoforceClick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandPrefab.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandPrefab.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandPureOverlay.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandPureOverlay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCommandPureText.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCommandPureText.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCompeteDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCompeteDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XComponentMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XComponentMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XConcreteStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XConcreteStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XConnection.cs create mode 100644 Client/Assets/Scripts/XMainClient/XConnection.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCoolDownAllSkillsArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCoolDownAllSkillsArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCrossGVGDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCrossGVGDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCustomBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCustomBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCustomShadow.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCustomShadow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCustomShadowMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCustomShadowMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XCutScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/XCutScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDailyActivitiesDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDailyActivitiesDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDailyActivitiesView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDailyActivitiesView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDailyActivity.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDailyActivity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDanceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDanceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDataBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDataBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDataPool.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDataPool.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDeath.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDeath.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDeck.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDeck.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDesignationDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDesignationDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDesignationInfoChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDesignationInfoChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDialogSentence.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDialogSentence.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDocComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDocComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDocuments.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDocuments.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDoodadCreateArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDoodadCreateArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDoodadDeleteArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDoodadDeleteArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDoodadType.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDoodadType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonCrusadeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonCrusadeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApplyBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApplyBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApplyView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApplyView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApproveBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApproveBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApproveDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApproveDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApproveDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildApproveDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildBaseData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildBaseData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildBasicInfoDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildBasicInfoDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildCreateView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildCreateView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildInfoChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildInfoChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildListData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildListData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildListDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildListDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildListHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildListHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildMainBonusView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildMainBonusView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildMainHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildMainHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildMember.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildMember.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildMemberInfoDisplay.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildMemberInfoDisplay.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildPP.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildPP.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildTaskDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildTaskDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildTpl.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonGuildTpl.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonNestDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonNestDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonNestView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonNestView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonPartnerDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonPartnerDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDragonRewardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDragonRewardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDramaDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDramaDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDropData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDropData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDropPackage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDropPackage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XDummy.cs create mode 100644 Client/Assets/Scripts/XMainClient/XDummy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XElite.cs create mode 100644 Client/Assets/Scripts/XMainClient/XElite.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEmbleAttrView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEmbleAttrView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEmblemDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEmblemDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEmblemInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEmblemInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEmblemItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEmblemItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEmblemItemDrawer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEmblemItemDrawer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEmpty.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEmpty.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEnchantDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEnchantDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEnchantInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEnchantInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEndureComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEndureComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEnemy.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEnemy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEnhanceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEnhanceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEnhanceRpcState.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEnhanceRpcState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEnmityEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEnmityEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEnmityList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEnmityList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEntity.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEntity.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEntityAttrChangeEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEntityAttrChangeEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEntityMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEntityMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEquipChangeEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEquipChangeEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEquipComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEquipComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEquipCreateDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEquipCreateDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEquipCreateStaticData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEquipCreateStaticData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEquipDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEquipDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEquipItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEquipItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEquipItemDrawer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEquipItemDrawer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEquipSuitManager.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEquipSuitManager.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEventBlocker.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEventBlocker.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEventDefine.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEventDefine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEventMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEventMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEventPool.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEventPool.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XEvent_HomeFeastingArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XEvent_HomeFeastingArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XExchangeItemDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XExchangeItemDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XExpeditionDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XExpeditionDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFPStrengthenDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFPStrengthenDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFadeInEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFadeInEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFadeOutEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFadeOutEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFakeTouch.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFakeTouch.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFashionDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFashionDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFashionDrawer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFashionDrawer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFashionItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFashionItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFashionRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFashionRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFashionRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFashionRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFashionStorageDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFashionStorageDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFightGroupChangedArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFightGroupChangedArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFightGroupDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFightGroupDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFindExpDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFindExpDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFingerId.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFingerId.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFishingComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFishingComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerAwardListInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerAwardListInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankActivityList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankActivityList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankNormalList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerRankNormalList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerReplyDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerReplyDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerSendBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerSendBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerSendDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerSendDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerSendView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlowerSendView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFlyComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFlyComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFoodSelectorHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFoodSelectorHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFootFxComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFootFxComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XForbidWordMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XForbidWordMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XForgeAttrInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XForgeAttrInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XForgeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XForgeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFreeTeamVersusLeagueDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFreeTeamVersusLeagueDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendInfoChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendInfoChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendListEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendListEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsBlockBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsBlockBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsSearchView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsSearchView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsSendFlowerBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsSendFlowerBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFriendsView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XFxType.cs create mode 100644 Client/Assets/Scripts/XMainClient/XFxType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGVGCombatGroupData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGVGCombatGroupData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGame.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGame.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGameEntrance.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGameEntrance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGameMallDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGameMallDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGameSysMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGameSysMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGameUI.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGameUI.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGausBlur.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGausBlur.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGeneralShopBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGeneralShopBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGesture.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGesture.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGlobalConfig.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGlobalConfig.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGoldGroupData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGoldGroupData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGravityComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGravityComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XGyroscope.cs create mode 100644 Client/Assets/Scripts/XMainClient/XGyroscope.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHUDAddEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHUDAddEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHUDComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHUDComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHUDDoodadArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHUDDoodadArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHallFameDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHallFameDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHallStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHallStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHeroBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHeroBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHeroBattleSkillDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHeroBattleSkillDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHighlightEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHighlightEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHitEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHitEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHomeCookAndPartyDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHomeCookAndPartyDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHomeFishingDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHomeFishingDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XHudEntry.cs create mode 100644 Client/Assets/Scripts/XMainClient/XHudEntry.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XIDIPDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XIDIPDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XImageEffectBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/XImageEffectBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XInGuildStateChangedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XInGuildStateChangedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XInheritComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XInheritComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XInitCoolDownAllSkillsArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XInitCoolDownAllSkillsArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XInput.cs create mode 100644 Client/Assets/Scripts/XMainClient/XInput.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XInvitationDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XInvitationDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemChangeFinishedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemChangeFinishedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemDrawer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemDrawer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemDrawerMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemDrawerMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemDrawerParam.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemDrawerParam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemFilter.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemFilter.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemMorePowerfulTipMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemMorePowerfulTipMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemNumChangedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemNumChangedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemRequired.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemRequired.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemRequiredCollector.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemRequiredCollector.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XItemSelector.cs create mode 100644 Client/Assets/Scripts/XMainClient/XItemSelector.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XJAComboSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/XJAComboSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XJadeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XJadeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XJadeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XJadeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XJadeItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XJadeItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XJadeItemDrawer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XJadeItemDrawer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XJadeSlotDrawer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XJadeSlotDrawer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XJoinTeamEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XJoinTeamEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XJokerKingDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XJokerKingDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XKeyboard.cs create mode 100644 Client/Assets/Scripts/XMainClient/XKeyboard.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLFU.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLFU.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLFUItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLFUItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLabelSymbolHelper.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLabelSymbolHelper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLeagueTeamRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLeagueTeamRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLeaveSceneArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLeaveSceneArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLeaveTeamEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLeaveTeamEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLeftTimeCounter.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLeftTimeCounter.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelBaseTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelBaseTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelDoodad.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelDoodad.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelDoodadMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelDoodadMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelDynamicInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelDynamicInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelFinishMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelFinishMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelLose.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelLose.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelLoseCondtion.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelLoseCondtion.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRewardBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRewardBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRewardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRewardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRewardView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelRewardView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelScriptMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelScriptMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSealDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSealDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSealView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSealView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSpawnInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSpawnInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSpawnMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSpawnMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSpawnTask.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelSpawnTask.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelState.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelStatistics.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelStatistics.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelUpStatusDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelUpStatusDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelUpStatusView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelUpStatusView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelWave.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelWave.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelWin.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelWin.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLevelWinCondition.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLevelWinCondition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLifeTargetDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLifeTargetDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLifeTargetView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLifeTargetView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLinkTimeStamp.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLinkTimeStamp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLoadEquipEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLoadEquipEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLocateTargetComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLocateTargetComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLoginDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLoginDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLoginRewardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLoginRewardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLoginRewardView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLoginRewardView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLoginStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLoginStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLoginStep.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLoginStep.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLoginTipBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLoginTipBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLoginTipView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLoginTipView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLotteryBoxItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLotteryBoxItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLuaDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLuaDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XLuaExtion.cs create mode 100644 Client/Assets/Scripts/XMainClient/XLuaExtion.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMailDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMailDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMainClient.csproj create mode 100644 Client/Assets/Scripts/XMainClient/XMainClient.csproj.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMainInterfaceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMainInterfaceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XManipulationComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XManipulationComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XManipulationOffEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XManipulationOffEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XManipulationOnEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XManipulationOnEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMentorRelationOpArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMentorRelationOpArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMentorshipDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMentorshipDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMentorshipLimitHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMentorshipLimitHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMentorshipPupilsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMentorshipPupilsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMilitaryRankDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMilitaryRankDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMobaBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMobaBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMobaBillboardComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMobaBillboardComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMobaEntranceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMobaEntranceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMobaTowerTargetMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMobaTowerTargetMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMount.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMount.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMountComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMountComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMultiPkLoadingBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMultiPkLoadingBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMultiPkLoadingView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMultiPkLoadingView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMyTeamHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMyTeamHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMystShopDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMystShopDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMystShopGoods.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMystShopGoods.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XMystShopView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XMystShopView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNPCFavorDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNPCFavorDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNPCFavorFxChangeArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNPCFavorFxChangeArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNavigationComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNavigationComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNestDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNestDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNetComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNetComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNetEventPool.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNetEventPool.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNewItemTipsMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNewItemTipsMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNormalItem.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNormalItem.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNormalItemDrawer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNormalItemDrawer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNormalShopDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNormalShopDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNormalShopGoods.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNormalShopGoods.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNormalShopView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNormalShopView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNpc.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNpc.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNpcAttributes.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNpcAttributes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XNumberTween.cs create mode 100644 Client/Assets/Scripts/XMainClient/XNumberTween.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XObject.cs create mode 100644 Client/Assets/Scripts/XMainClient/XObject.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnComboChangeEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnComboChangeEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnEntityCreatedArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnEntityCreatedArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnEntityDeletedArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnEntityDeletedArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnEntityTransferEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnEntityTransferEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnMountedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnMountedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnRevivedArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnRevivedArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnUnMountedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnUnMountedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnlineRewardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnlineRewardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOnlineRewardView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOnlineRewardView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOperateMode.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOperateMode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOperatingActivityBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOperatingActivityBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOperatingActivityDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOperatingActivityDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOperatingActivityView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOperatingActivityView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOperationData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOperationData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOperationMode.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOperationMode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOperationRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOperationRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOpposer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOpposer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsBattleDetailHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsBattleDetailHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsBattleHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsBattleHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsDefine.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsDefine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOptionsView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOrderData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOrderData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOtherPlayerInfoDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOtherPlayerInfoDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOtherPlayerInfoView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOtherPlayerInfoView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOthersAttributes.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOthersAttributes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOutLookAttr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOutLookAttr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOutlookData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOutlookData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOutlookHelper.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOutlookHelper.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOutlookSprite.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOutlookSprite.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XOutlookState.cs create mode 100644 Client/Assets/Scripts/XMainClient/XOutlookState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPKInvitationBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPKInvitationBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPKInvitationDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPKInvitationDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPKInvitationView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPKInvitationView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPPTDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPPTDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPPTRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPPTRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPVPActivityDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPVPActivityDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPandoraSDKDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPandoraSDKDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPandoraSDKPopViewBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPandoraSDKPopViewBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPartnerDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPartnerDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPatfaceBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPatfaceBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPatfaceView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPatfaceView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPatrol.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPatrol.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPersonalCareerDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPersonalCareerDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPet.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPetActionFile.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPetActionFile.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPetDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPetDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPetRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPetRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPetRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPetRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPetSkillHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPetSkillHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPieceWiseDataMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPieceWiseDataMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPkLoadingView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPkLoadingView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPlatformAbilityDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPlatformAbilityDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPlaySoundArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPlaySoundArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPlayer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPlayer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPlayerAction.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPlayerAction.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPlayerAttributes.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPlayerAttributes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPlayerLevelChangedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPlayerLevelChangedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPostEffect.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPostEffect.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPostEffectMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPostEffectMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPowerPointCalculator.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPowerPointCalculator.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPrefixAttribute.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPrefixAttribute.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPrefixAttributes.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPrefixAttributes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPrerogativeChangeArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPrerogativeChangeArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPrerogativeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPrerogativeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPresentComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPresentComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XProfessionChangeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XProfessionChangeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XProfessionSkillMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XProfessionSkillMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XProjectDamageEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XProjectDamageEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPuppet.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPuppet.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPurchaseBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPurchaseBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPurchaseDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPurchaseDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPurchaseView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPurchaseView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XPushSubscribeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XPushSubscribeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQQVipDesBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQQVipDesBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQQVipDesView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQQVipDesView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRankRewardWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRankRewardWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRankWindow.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRankWindow.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRecordsHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingRecordsHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualifyingView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQualitySetting.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQualitySetting.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQueryServerState.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQueryServerState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQuickReplyDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQuickReplyDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XQuickTimeEventComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XQuickTimeEventComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRaceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRaceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRadialBlur.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRadialBlur.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRadioDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRadioDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRankBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRankBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRankDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRankDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRankType.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRankType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRankView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRankView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRealDeadEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRealDeadEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRechargeDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRechargeDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XReconnectedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XReconnectedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XReconnection.cs create mode 100644 Client/Assets/Scripts/XMainClient/XReconnection.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRecycleItemDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRecycleItemDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XReinforceInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XReinforceInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRemoveItemEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRemoveItemEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRenameDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRenameDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRenderComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRenderComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRequestDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRequestDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XReviveDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XReviveDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRewardDlgBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRewardDlgBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRiftDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRiftDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRiftRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRiftRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRole.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRole.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRoleAttributes.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRoleAttributes.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRollDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRollDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRotationComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRotationComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XRotationEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XRotationEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XScene.cs create mode 100644 Client/Assets/Scripts/XMainClient/XScene.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSceneDamageRankDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSceneDamageRankDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSceneLoader.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSceneLoader.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSceneMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSceneMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSceneTransfer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSceneTransfer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XScreenShotMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XScreenShotMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XScreenShotShareDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XScreenShotShareDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityAIInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityAIInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityAttributeInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityAttributeInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityBuffInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityBuffInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityDamageInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityDamageInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityHPInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityHPInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityMobInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityMobInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSecuritySkillInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSecuritySkillInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityStatistics.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSecurityStatistics.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSelectCharacterDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSelectCharacterDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSelectcharStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSelectcharStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XServerTimeMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XServerTimeMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSevenLoginDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSevenLoginDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShadowComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShadowComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShopPurchaseView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShopPurchaseView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShopTabCategoryHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShopTabCategoryHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetAchivementTipBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetAchivementTipBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetAchivementTipDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetAchivementTipDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetAchivementTipView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetAchivementTipView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetItemBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetItemBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetItemDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShowGetItemDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShowSameQualityItemsBehavior.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShowSameQualityItemsBehavior.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShowSameQualityItemsView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShowSameQualityItemsView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XShowUpComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XShowUpComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSirJoystick.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSirJoystick.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSkyArenaBattleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSkyArenaBattleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSkyArenaEntranceDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSkyArenaEntranceDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSkyArenaList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSkyArenaList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSkyArenaRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSkyArenaRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSmallChatInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSmallChatInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSmeltDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSmeltDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpectateDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpectateDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpectateLevelRewardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpectateLevelRewardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpectateSceneDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpectateSceneDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpectateTeamMonitorHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpectateTeamMonitorHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpotOnEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpotOnEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteAwakeHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteAwakeHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteDetailBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteDetailBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteDetailView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteDetailView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteIllustrationHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteIllustrationHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteRankInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteRankInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteRankList.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteRankList.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteShowBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteShowBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteShowView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteShowView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteSkillTipBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteSkillTipBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteSkillTipDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteSkillTipDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteSystemDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSpriteSystemDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStageProgress.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStageProgress.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStateDefine.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStateDefine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStateMachine.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStateMachine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStateMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStateMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStaticDataBase.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStaticDataBase.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStaticSecurityStatistics.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStaticSecurityStatistics.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStrengthPresevationOffArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStrengthPresevationOffArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStrengthPresevationOnArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStrengthPresevationOnArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XStringDefineProxy.cs create mode 100644 Client/Assets/Scripts/XMainClient/XStringDefineProxy.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSubSysRedPointMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSubSysRedPointMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSubstance.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSubstance.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSuperArmorComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSuperArmorComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapDynamicInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapDynamicInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapNode.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapNode.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapRenderer.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapRenderer.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSweepDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSweepDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSweepView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSweepView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSwitchSight.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSwitchSight.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSyncDebug.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSyncDebug.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSyncDoodadInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSyncDoodadInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSysDefine.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSysDefine.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSystemRewardData.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSystemRewardData.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSystemRewardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSystemRewardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSystemRewardState.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSystemRewardState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSystemTipBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSystemTipBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSystemTipDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSystemTipDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XSystemTipView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XSystemTipView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTargetRewardDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTargetRewardDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTargetState.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTargetState.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTaskDialog.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTaskDialog.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTaskDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTaskDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTaskInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTaskInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTaskRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTaskRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTaskStatusChangeArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTaskStatusChangeArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTaskType.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTaskType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTaskView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTaskView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTempActivityDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTempActivityDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTerritoryComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTerritoryComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XThemeActivityBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XThemeActivityBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XThemeActivityDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XThemeActivityDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XThemeActivityView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XThemeActivityView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTimeProfiler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTimeProfiler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTimeoutHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTimeoutHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTimeoutLogHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTimeoutLogHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTitleBar.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTitleBar.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTitleDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTitleDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTitleInfoChange.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTitleInfoChange.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTransformDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTransformDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTriggerCondition.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTriggerCondition.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTssSdk.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTssSdk.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTuple.2.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTuple.2.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTuple.3.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTuple.3.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XTuple.cs create mode 100644 Client/Assets/Scripts/XMainClient/XTuple.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XUICacheImage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XUICacheImage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XUICacheMgr.cs create mode 100644 Client/Assets/Scripts/XMainClient/XUICacheMgr.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XUltraSkill.cs create mode 100644 Client/Assets/Scripts/XMainClient/XUltraSkill.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XUnitAppearanceTeam.cs create mode 100644 Client/Assets/Scripts/XMainClient/XUnitAppearanceTeam.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XUnloadEquipEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XUnloadEquipEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XUpdateItemEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XUpdateItemEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XVoiceQABehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XVoiceQABehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XVoiceQADocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XVoiceQADocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWeddingDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWeddingDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWeekNestDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWeekNestDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWeekendPartyDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWeekendPartyDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWelfareBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWelfareBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWelfareDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWelfareDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWelfareView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWelfareView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWoozyComponent.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWoozyComponent.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XWorldStage.cs create mode 100644 Client/Assets/Scripts/XMainClient/XWorldStage.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XYYMallCategoryHandler.cs create mode 100644 Client/Assets/Scripts/XMainClient/XYYMallCategoryHandler.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XYorozuyaDocument.cs create mode 100644 Client/Assets/Scripts/XMainClient/XYorozuyaDocument.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XYuyinView.cs create mode 100644 Client/Assets/Scripts/XMainClient/XYuyinView.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/XequipFuseInfo.cs create mode 100644 Client/Assets/Scripts/XMainClient/XequipFuseInfo.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/YYMallCategory.cs create mode 100644 Client/Assets/Scripts/XMainClient/YYMallCategory.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/YorozuyaBehaviour.cs create mode 100644 Client/Assets/Scripts/XMainClient/YorozuyaBehaviour.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs create mode 100644 Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/YuyinIconType.cs create mode 100644 Client/Assets/Scripts/XMainClient/YuyinIconType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/academic_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/academic_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/academic_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/academic_slash_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/archer_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/archer_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/archer_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/archer_slash_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/assassin_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/assassin_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/assassin_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/assassin_slash_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/cleric_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/cleric_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/cleric_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/cleric_slash_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/first_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/first_slash_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/geraint_fly_away.cs create mode 100644 Client/Assets/Scripts/XMainClient/geraint_fly_away.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/geraint_get_wings.cs create mode 100644 Client/Assets/Scripts/XMainClient/geraint_get_wings.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/heromvp.cs create mode 100644 Client/Assets/Scripts/XMainClient/heromvp.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/kali_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/kali_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/kali_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/kali_slash_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/mobaend.cs create mode 100644 Client/Assets/Scripts/XMainClient/mobaend.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/newbie_level.cs create mode 100644 Client/Assets/Scripts/XMainClient/newbie_level.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/newbie_level_end.cs create mode 100644 Client/Assets/Scripts/XMainClient/newbie_level_end.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/partnerShopRecord.cs create mode 100644 Client/Assets/Scripts/XMainClient/partnerShopRecord.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/reportType.cs create mode 100644 Client/Assets/Scripts/XMainClient/reportType.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/second_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/second_slash_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/sorceress_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/sorceress_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/warrior_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/warrior_show.cs.meta create mode 100644 Client/Assets/Scripts/XMainClient/warrior_slash_show.cs create mode 100644 Client/Assets/Scripts/XMainClient/warrior_slash_show.cs.meta (limited to 'Client/Assets/Scripts/XMainClient') diff --git a/Client/Assets/Scripts/XMainClient/AI.meta b/Client/Assets/Scripts/XMainClient/AI.meta new file mode 100644 index 00000000..30504d2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 2588d610dedb3db4dad0657deaf82bdf +folderAsset: yes +timeCreated: 1611463510 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIMsgTarget.cs b/Client/Assets/Scripts/XMainClient/AI/AIMsgTarget.cs new file mode 100644 index 00000000..49a1f483 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIMsgTarget.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + public enum AIMsgTarget + { + Ally, + Role, + Boss, + Monster, + Enemy, + All, + LevelMgr, + GlobalAI + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIMsgTarget.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIMsgTarget.cs.meta new file mode 100644 index 00000000..0b186672 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIMsgTarget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bcead96d163952f49b0886ce9ac3ab02 +timeCreated: 1611404449 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AINodeFactory.cs b/Client/Assets/Scripts/XMainClient/AI/AINodeFactory.cs new file mode 100644 index 00000000..525f4e19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AINodeFactory.cs @@ -0,0 +1,668 @@ +using System; +using System.Collections.Generic; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AINodeFactory + { + private static Dictionary _node_dic = new Dictionary(); + + public static AIRunTimeNodeBase CreateAINodeByName(string nodeName, XmlElement xmlNode) + { + bool flag = nodeName == "Selector"; + AIRunTimeNodeBase result; + if (flag) + { + result = new AIRunTimeSelectorNode(xmlNode); + } + else + { + bool flag2 = nodeName == "Sequence"; + if (flag2) + { + result = new AIRunTimeSequenceNode(xmlNode); + } + else + { + bool flag3 = nodeName == "RandomSequence"; + if (flag3) + { + result = new AIRunTimeRandomSequenceNode(xmlNode); + } + else + { + bool flag4 = nodeName == "RandomSelector"; + if (flag4) + { + result = new AIRunTimeRandomSelectorNode(xmlNode); + } + else + { + bool flag5 = nodeName == "Inverter"; + if (flag5) + { + result = new AIRunTimeInverter(xmlNode); + } + else + { + bool flag6 = nodeName == "EntryTask"; + if (flag6) + { + result = new AIRunTimeEntryTaskNode(xmlNode); + } + else + { + bool flag7 = nodeName == "ReturnSuccess"; + if (flag7) + { + result = new AIRunTimeReturnSuccess(xmlNode); + } + else + { + bool flag8 = nodeName == "ReturnFailure"; + if (flag8) + { + result = new AIRunTimeReturnFailure(xmlNode); + } + else + { + bool flag9 = nodeName == "ConditionalEvaluator"; + if (flag9) + { + result = new AIRunTimeConditionalEvaluator(xmlNode); + } + else + { + bool flag10 = nodeName == "Log"; + if (flag10) + { + result = new AIRunTimeLog(xmlNode); + } + else + { + bool flag11 = nodeName == "RandomFloat"; + if (flag11) + { + result = new AIRunTimeRandomFloat(xmlNode); + } + else + { + bool flag12 = nodeName == "FloatOperator"; + if (flag12) + { + result = new AIRunTimeFloatOperator(xmlNode); + } + else + { + bool flag13 = nodeName == "FloatComparison"; + if (flag13) + { + result = new AIRunTimeFloatComparison(xmlNode); + } + else + { + bool flag14 = nodeName == "SetFloat"; + if (flag14) + { + result = new AIRunTimeSetFloat(xmlNode); + } + else + { + bool flag15 = nodeName == "SetBool"; + if (flag15) + { + result = new AIRunTimeSetBool(xmlNode); + } + else + { + bool flag16 = nodeName == "CompareTo"; + if (flag16) + { + result = new AIRunTimeCompareTo(xmlNode); + } + else + { + bool flag17 = nodeName == "SetInt"; + if (flag17) + { + result = new AIRunTimeSetInt(xmlNode); + } + else + { + bool flag18 = nodeName == "IntComparison"; + if (flag18) + { + result = new AIRunTimeIntComparison(xmlNode); + } + else + { + bool flag19 = nodeName == "IntOperator"; + if (flag19) + { + result = new AIRunTimeIntOperator(xmlNode); + } + else + { + bool flag20 = nodeName == "BoolComparison"; + if (flag20) + { + result = new AIRunTimeBoolComparison(xmlNode); + } + else + { + bool flag21 = nodeName == "ValueTarget"; + if (flag21) + { + result = new AIRunTimeValueTarget(xmlNode); + } + else + { + bool flag22 = nodeName == "ValueDistance"; + if (flag22) + { + result = new AIRunTimeValueDistance(xmlNode); + } + else + { + bool flag23 = nodeName == "ValueHP"; + if (flag23) + { + result = new AIRunTimeValueHP(xmlNode); + } + else + { + bool flag24 = nodeName == "ValueMP"; + if (flag24) + { + result = new AIRunTimeValueMP(xmlNode); + } + else + { + bool flag25 = nodeName == "ValueFP"; + if (flag25) + { + result = new AIRunTimeValueFP(xmlNode); + } + else + { + bool flag26 = nodeName == "StatusIdle"; + if (flag26) + { + result = new AIRunTimeStatusIdle(xmlNode); + } + else + { + bool flag27 = nodeName == "NavToTarget"; + if (flag27) + { + result = new AIRuntimeNavToTarget(xmlNode); + } + else + { + bool flag28 = nodeName == "PhysicalAttack"; + if (flag28) + { + result = new AIRuntimePhysicalAttack(xmlNode); + } + else + { + bool flag29 = nodeName == "TargetByHatredList"; + if (flag29) + { + result = new AIRunTimeTargetByHatredList(xmlNode); + } + else + { + bool flag30 = nodeName == "FindTargetByDistance"; + if (flag30) + { + result = new AIRunTimeFindTargetByDist(xmlNode); + } + else + { + bool flag31 = nodeName == "TryCastQTE"; + if (flag31) + { + result = new AIRuntimeTryCastQTE(xmlNode); + } + else + { + bool flag32 = nodeName == "CastDash"; + if (flag32) + { + result = new AIRuntimeCastDash(xmlNode); + } + else + { + bool flag33 = nodeName == "IsOppoCastingSkill"; + if (flag33) + { + result = new AIRunTimeIsOppoCastingSkill(xmlNode); + } + else + { + bool flag34 = nodeName == "IsHurtOppo"; + if (flag34) + { + result = new AIRunTimeIsHurtOppo(xmlNode); + } + else + { + bool flag35 = nodeName == "IsFixedInCd"; + if (flag35) + { + result = new AIRunTimeIsFixedInCd(xmlNode); + } + else + { + bool flag36 = nodeName == "IsWander"; + if (flag36) + { + result = new AIRunTimeIsWander(xmlNode); + } + else + { + bool flag37 = nodeName == "IsCastingSkill"; + if (flag37) + { + result = new AIRunTimeIsCastingSkill(xmlNode); + } + else + { + bool flag38 = nodeName == "IsQTEState"; + if (flag38) + { + result = new AIRunTimeIsQTEState(xmlNode); + } + else + { + bool flag39 = nodeName == "DetectEnimyInSight"; + if (flag39) + { + result = new AIRunTimeDetectEnimyInSight(xmlNode); + } + else + { + bool flag40 = nodeName == "FindTargetByHitLevel"; + if (flag40) + { + result = new AIRunTimeFindTargetByHitLevel(xmlNode); + } + else + { + bool flag41 = nodeName == "IsFighting"; + if (flag41) + { + result = new AIRunTimeIsFighting(xmlNode); + } + else + { + bool flag42 = nodeName == "DoSelectNearest"; + if (flag42) + { + result = new AIRunTimeDoSelectNearest(xmlNode); + } + else + { + bool flag43 = nodeName == "FilterSkill"; + if (flag43) + { + result = new AIRuntimeFilterSkill(xmlNode); + } + else + { + bool flag44 = nodeName == "DoSelectSkillInOrder"; + if (flag44) + { + result = new AIRuntimeDoSelectSkillInOrder(xmlNode); + } + else + { + bool flag45 = nodeName == "DoSelectSkillRandom"; + if (flag45) + { + result = new AIRuntimeDoSelectSkillRandom(xmlNode); + } + else + { + bool flag46 = nodeName == "DoCastSkill"; + if (flag46) + { + result = new AIRuntimeDoCastSkill(xmlNode); + } + else + { + bool flag47 = nodeName == "SetDest"; + if (flag47) + { + result = new AIRuntimeSetDest(xmlNode); + } + else + { + bool flag48 = nodeName == "ActionMove"; + if (flag48) + { + result = new AIRuntimeActionMove(xmlNode); + } + else + { + bool flag49 = nodeName == "ActionRotate"; + if (flag49) + { + result = new AIRuntimeActionRotate(xmlNode); + } + else + { + bool flag50 = nodeName == "FindNavPath"; + if (flag50) + { + result = new AIRunTimeFindNavPath(xmlNode); + } + else + { + bool flag51 = nodeName == "ReceiveAIEvent"; + if (flag51) + { + result = new AIRuntimeReceiveAIEvent(xmlNode); + } + else + { + bool flag52 = nodeName == "SendAIEvent"; + if (flag52) + { + result = new AIRuntimeSendAIEvent(xmlNode); + } + else + { + bool flag53 = nodeName == "SelectMoveTargetById"; + if (flag53) + { + result = new AIRunTimeSelectMoveTargetById(xmlNode); + } + else + { + bool flag54 = nodeName == "SelectItemTarget"; + if (flag54) + { + result = new AIRunTimeSelectItemTarget(xmlNode); + } + else + { + bool flag55 = nodeName == "SelectBuffTarget"; + if (flag55) + { + result = new AIRunTimeSelectBuffTarget(xmlNode); + } + else + { + bool flag56 = nodeName == "SelectTargetBySkillCircle"; + if (flag56) + { + result = new AIRunTimeSelectTargetBySkillCircle(xmlNode); + } + else + { + bool flag57 = nodeName == "SelectNonHartedList"; + if (flag57) + { + result = new AIRunTimeSelectNonHartedList(xmlNode); + } + else + { + bool flag58 = nodeName == "TargetQTEState"; + if (flag58) + { + result = new AIRunTimeTargetQTEState(xmlNode); + } + else + { + bool flag59 = nodeName == "ResetTargets"; + if (flag59) + { + result = new AIRunTimeResetTargets(xmlNode); + } + else + { + bool flag60 = nodeName == "CallMonster"; + if (flag60) + { + result = new AIRuntimeCallMonster(xmlNode); + } + else + { + bool flag61 = nodeName == "MixMonsterPos"; + if (flag61) + { + result = new AIRuntimeMixMonsterPos(xmlNode); + } + else + { + bool flag62 = nodeName == "KillMonster"; + if (flag62) + { + result = new AIRuntimeKillMonster(xmlNode); + } + else + { + bool flag63 = nodeName == "ConditionMonsterNum"; + if (flag63) + { + result = new AIRunTimeConditionMonsterNum(xmlNode); + } + else + { + bool flag64 = nodeName == "AddBuff"; + if (flag64) + { + result = new AIRuntimeAddBuff(xmlNode); + } + else + { + bool flag65 = nodeName == "RemoveBuff"; + if (flag65) + { + result = new AIRuntimeRemoveBuff(xmlNode); + } + else + { + bool flag66 = nodeName == "CallScript"; + if (flag66) + { + result = new AIRuntimeCallScript(xmlNode); + } + else + { + bool flag67 = nodeName == "IsTargetImmortal"; + if (flag67) + { + result = new AIRunTimeIsTargetImmortal(xmlNode); + } + else + { + bool flag68 = nodeName == "DetectEnemyInRange"; + if (flag68) + { + result = new AIRuntimeDetectEnemyInRange(xmlNode); + } + else + { + bool flag69 = nodeName == "StopCastingSkill"; + if (flag69) + { + result = new AIRuntimeCancelSkill(xmlNode); + } + else + { + bool flag70 = nodeName == "XHashFunc"; + if (flag70) + { + result = new AIRuntimeXHashFunc(xmlNode); + } + else + { + bool flag71 = nodeName == "RemoveSceneBuff"; + if (flag71) + { + result = new AIRuntimeRemoveSceneBuff(xmlNode); + } + else + { + bool flag72 = nodeName == "CalDistance"; + if (flag72) + { + result = new AIRunTimeCalDistance(xmlNode); + } + else + { + bool flag73 = nodeName == "Navigation"; + if (flag73) + { + result = new AIRuntimeActionNavigation(xmlNode); + } + else + { + bool flag74 = nodeName == "RotateToTarget"; + if (flag74) + { + result = new AIRuntimeRotateToTarget(xmlNode); + } + else + { + bool flag75 = nodeName == "MoveStratage"; + if (flag75) + { + result = new AIRuntimeMoveStratage(xmlNode); + } + else + { + bool flag76 = nodeName == "GetRealtimeSinceStartup"; + if (flag76) + { + result = new AIRunTimeGetRealtimeSinceStartup(xmlNode); + } + else + { + bool flag77 = nodeName == "RandomEntityPos"; + if (flag77) + { + result = new AIRunTimeRandomEntityPos(xmlNode); + } + else + { + bool flag78 = nodeName == "ConditionPlayerNum"; + if (flag78) + { + result = new AIRunTimeConditionPlayerNum(xmlNode); + } + else + { + bool flag79 = nodeName == "DoSelectFarthest"; + if (flag79) + { + result = new AIRunTimeDoSelectFarthest(xmlNode); + } + else + { + bool flag80 = nodeName == "SelectPlayerFromList"; + if (flag80) + { + result = new SelectPlayerFromList(xmlNode); + } + else + { + bool flag81 = nodeName == "SetEnmity"; + if (flag81) + { + result = new AIRunTimeSetEnmity(xmlNode); + } + else + { + XSingleton.singleton.AddErrorLog("Can't find node: ", nodeName, null, null, null, null); + result = new AIRunTimeNodeBase(xmlNode); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AINodeFactory.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AINodeFactory.cs.meta new file mode 100644 index 00000000..b7a336cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AINodeFactory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88360f2f162677a4386c1650b9b9b881 +timeCreated: 1611404083 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBehaviorTree.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBehaviorTree.cs new file mode 100644 index 00000000..56b54daa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBehaviorTree.cs @@ -0,0 +1,151 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeBehaviorTree : IXBehaviorTree, IXInterface + { + public XEntity Host + { + get + { + return this._host; + } + set + { + this._host = value; + } + } + + public AIRunTimeRootNode Root + { + get + { + return this._root; + } + set + { + this._root = value; + } + } + + public SharedData Data + { + get + { + return this._data; + } + } + + public bool Deprecated { get; set; } + + private AIRunTimeRootNode _root = null; + + private SharedData _data = null; + + private string _tree_name; + + private XEntity _host = null; + + private bool _enable = false; + + public bool SetBehaviorTree(string name) + { + bool flag = string.IsNullOrEmpty(name); + bool result; + if (flag) + { + result = false; + } + else + { + this._tree_name = name; + this._root = XSingleton.singleton.GetBehavior(name); + this._data = this.DeepClone(this._root.Data); + this._data.SetBoolByName("IsFighting", true); + this._data.SetBoolByName("HitStatus", true); + result = true; + } + return result; + } + + public SharedData DeepClone(SharedData source) + { + return new SharedData(source); + } + + public void OnStartSkill(uint skillid) + { + } + + public void OnEndSkill(uint skillid) + { + } + + public void OnSkillHurt() + { + } + + public void EnableBehaviorTree(bool enable) + { + this._enable = enable; + } + + public void SetManual(bool enable) + { + } + + public float OnGetHeartRate() + { + return this._data.GetFloatByName("heartrate", 0f); + } + + public void TickBehaviorTree() + { + bool enable = this._enable; + if (enable) + { + this._root.Update(this._host); + } + } + + public void SetNavPoint(Transform navpoint) + { + } + + public void SetIntByName(string name, int value) + { + this._data.SetIntByName(name, value); + } + + public void SetFloatByName(string name, float value) + { + this._data.SetFloatByName(name, value); + } + + public void SetBoolByName(string name, bool value) + { + this._data.SetBoolByName(name, value); + } + + public void SetVector3ByName(string name, Vector3 value) + { + this._data.SetVector3ByName(name, value); + } + + public void SetTransformByName(string name, Transform value) + { + this._data.SetTransformByName(name, value); + } + + public void SetXGameObjectByName(string name, XGameObject value) + { + this._data.SetXGameObjectByName(name, value); + } + + public void SetVariable(string name, object value) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBehaviorTree.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBehaviorTree.cs.meta new file mode 100644 index 00000000..bc595340 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBehaviorTree.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23cc5c8c54a394241b4c64501c9a0a41 +timeCreated: 1611403457 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBoolComparison.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBoolComparison.cs new file mode 100644 index 00000000..d84db026 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBoolComparison.cs @@ -0,0 +1,31 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeBoolComparison : AIRunTimeNodeAction + { + private string _bool_name1; + + private bool _bool_value1; + + private string _bool_name2; + + private bool _bool_value2; + + public AIRunTimeBoolComparison(XmlElement node) : base(node) + { + this._bool_name1 = node.GetAttribute("Shared_Bool1Name"); + this._bool_value1 = (node.GetAttribute("bool1Value") != "0"); + this._bool_name2 = node.GetAttribute("Shared_Bool2Name"); + this._bool_value2 = (node.GetAttribute("bool2Value") != "0"); + } + + public override bool Update(XEntity entity) + { + bool boolByName = entity.AI.AIData.GetBoolByName(this._bool_name1, this._bool_value1); + bool boolByName2 = entity.AI.AIData.GetBoolByName(this._bool_name2, this._bool_value2); + return boolByName == boolByName2; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBoolComparison.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBoolComparison.cs.meta new file mode 100644 index 00000000..9e47d62f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeBoolComparison.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c68533b8667ddfc46ae784e96a85ad7f +timeCreated: 1611404509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCalDistance.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCalDistance.cs new file mode 100644 index 00000000..15128c30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCalDistance.cs @@ -0,0 +1,59 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeCalDistance : AIRunTimeNodeAction + { + private string _target_name; + + private float _distance; + + private string _distance_name; + + private Vector3 _dest_point; + + private string _dest_name; + + public AIRunTimeCalDistance(XmlElement node) : base(node) + { + this._target_name = node.GetAttribute("Shared_ObjectName"); + this._distance = float.Parse(node.GetAttribute("Shared_DistancemValue")); + this._distance_name = node.GetAttribute("Shared_DistanceName"); + this._dest_name = node.GetAttribute("Shared_DestPointName"); + string attribute = node.GetAttribute("Shared_DestPointmValue"); + float num = float.Parse(attribute.Split(new char[] + { + ':' + })[0]); + float num2 = float.Parse(attribute.Split(new char[] + { + ':' + })[1]); + float num3 = float.Parse(attribute.Split(new char[] + { + ':' + })[2]); + this._dest_point = new Vector3(num, num2, num3); + } + + public override bool Update(XEntity entity) + { + XGameObject xgameObjectByName = entity.AI.AIData.GetXGameObjectByName(this._target_name); + bool flag = xgameObjectByName != null; + float magnitude; + if (flag) + { + magnitude = (entity.EngineObject.Position - xgameObjectByName.Position).magnitude; + } + else + { + magnitude = (entity.EngineObject.Position - this._dest_point).magnitude; + } + entity.AI.AIData.SetFloatByName(this._distance_name, magnitude); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCalDistance.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCalDistance.cs.meta new file mode 100644 index 00000000..157366eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCalDistance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 080193f69eb7cb74b8fc1b601805e911 +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCompareTo.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCompareTo.cs new file mode 100644 index 00000000..5724d626 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCompareTo.cs @@ -0,0 +1,54 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeCompareTo : AIRunTimeNodeAction + { + private string _first_string_name; + + private string _first_string_value; + + private string _second_string_name; + + private string _second_string_value; + + private string _store_result_name; + + public AIRunTimeCompareTo(XmlElement node) : base(node) + { + this._first_string_name = node.GetAttribute("Shared_FirstStringName"); + this._first_string_value = node.GetAttribute("firstString"); + this._second_string_name = node.GetAttribute("Shared_SecondStringName"); + this._second_string_value = node.GetAttribute("secondString"); + this._store_result_name = node.GetAttribute("Shared_ResultName"); + } + + public override bool Update(XEntity entity) + { + string stringByName = entity.AI.AIData.GetStringByName(this._first_string_name, this._first_string_value); + string stringByName2 = entity.AI.AIData.GetStringByName(this._second_string_name, this._second_string_value); + int num = stringByName.CompareTo(stringByName2); + bool flag = num > 0; + int para; + if (flag) + { + para = 1; + } + else + { + bool flag2 = num < 0; + if (flag2) + { + para = -1; + } + else + { + para = 0; + } + } + entity.AI.AIData.SetIntByName(this._store_result_name, para); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCompareTo.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCompareTo.cs.meta new file mode 100644 index 00000000..8a933e17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeCompareTo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1b49121526163f408d649cba844b5bc +timeCreated: 1611404703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionMonsterNum.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionMonsterNum.cs new file mode 100644 index 00000000..2cbb02bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionMonsterNum.cs @@ -0,0 +1,12 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeConditionMonsterNum : AIRunTimeNodeCondition + { + public AIRunTimeConditionMonsterNum(XmlElement node) : base(node) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionMonsterNum.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionMonsterNum.cs.meta new file mode 100644 index 00000000..7d8db337 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionMonsterNum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4eaebbdafc8cfc41863f3d553ea0455 +timeCreated: 1611404605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionPlayerNum.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionPlayerNum.cs new file mode 100644 index 00000000..b16a75ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionPlayerNum.cs @@ -0,0 +1,123 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeConditionPlayerNum : AIRunTimeNodeCondition + { + private int _base_prof; + + private int _detail_prof; + + private string _num_name; + + private int _num; + + private int _way; + + private Vector3 _center; + + private float _sqrRadius; + + public AIRunTimeConditionPlayerNum(XmlElement node) : base(node) + { + this._base_prof = int.Parse(node.GetAttribute("PlayerBaseProf")); + this._detail_prof = int.Parse(node.GetAttribute("PlayerDetailProf")); + this._num_name = node.GetAttribute("Shared_NumName"); + this._num = int.Parse(node.GetAttribute("Shared_NummValue")); + string attribute = node.GetAttribute("Way"); + bool flag = string.IsNullOrEmpty(attribute); + if (flag) + { + this._way = 0; + } + else + { + this._way = int.Parse(attribute); + } + attribute = node.GetAttribute("Center"); + bool flag2 = string.IsNullOrEmpty(attribute); + if (flag2) + { + this._center = Vector3.zero; + } + else + { + string[] array = attribute.Split(new char[] + { + ':' + }); + this._center = new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2])); + } + attribute = node.GetAttribute("Radius"); + bool flag3 = string.IsNullOrEmpty(attribute); + if (flag3) + { + this._sqrRadius = 0f; + } + else + { + this._sqrRadius = float.Parse(attribute); + this._sqrRadius *= this._sqrRadius; + } + } + + public override bool Update(XEntity entity) + { + int playerProf = XSingleton.singleton.GetPlayerProf(); + entity.AI.AIData.SetIntByName(this._num_name, 0); + bool flag = this._base_prof != 0 || this._detail_prof != 0; + if (flag) + { + bool flag2 = this._base_prof != 0 && playerProf % 10 != this._base_prof; + if (flag2) + { + return true; + } + bool flag3 = this._detail_prof != 0 && playerProf != this._detail_prof; + if (flag3) + { + return true; + } + } + bool flag4 = this._way != 0; + if (flag4) + { + bool flag5 = XSingleton.singleton.Player == null; + if (flag5) + { + return true; + } + bool flag6 = this._way == 1 && XSingleton.singleton.Player.IsDead; + if (flag6) + { + return true; + } + bool flag7 = this._way == 2 && !XSingleton.singleton.Player.IsDead; + if (flag7) + { + return true; + } + } + bool flag8 = this._sqrRadius > 0f; + if (flag8) + { + bool flag9 = XSingleton.singleton.Player == null; + if (flag9) + { + return true; + } + float sqrMagnitude = (XSingleton.singleton.Player.MoveObj.Position - this._center).sqrMagnitude; + bool flag10 = sqrMagnitude > this._sqrRadius; + if (flag10) + { + return true; + } + } + entity.AI.AIData.SetIntByName(this._num_name, 1); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionPlayerNum.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionPlayerNum.cs.meta new file mode 100644 index 00000000..0196efe0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionPlayerNum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 190e3e8a2a7f618468f6bf00c249bbb9 +timeCreated: 1611403299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionalEvaluator.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionalEvaluator.cs new file mode 100644 index 00000000..2a657e57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionalEvaluator.cs @@ -0,0 +1,67 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeConditionalEvaluator : AIRunTimeDecorationNode + { + public string ConditionNodeName + { + get + { + return this._condition_node_name; + } + } + + private string _condition_node_name; + + private AIRunTimeNodeBase _condition_node; + + public AIRunTimeConditionalEvaluator(XmlElement node) : base(node) + { + this._condition_node_name = node.GetAttribute("ConditionalTask"); + } + + public bool AddConditionNode(AIRunTimeNodeBase node) + { + bool flag = this._condition_node != null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("ConditionNode already contain condition node", null, null, null, null, null); + result = false; + } + else + { + this._condition_node = node; + result = true; + } + return result; + } + + public override bool Update(XEntity entity) + { + bool flag = this._condition_node != null; + bool result; + if (flag) + { + bool flag2 = !this._condition_node.Update(entity); + if (flag2) + { + result = false; + } + else + { + bool flag3 = this._child_node != null; + result = (flag3 && this._child_node.Update(entity)); + } + } + else + { + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionalEvaluator.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionalEvaluator.cs.meta new file mode 100644 index 00000000..c96ef18c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeConditionalEvaluator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d198048312d1dd479fe41d6edb17f18 +timeCreated: 1611403192 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDecorationNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDecorationNode.cs new file mode 100644 index 00000000..ce4b3d5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDecorationNode.cs @@ -0,0 +1,20 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeDecorationNode : AIRunTimeNodeBase + { + protected AIRunTimeNodeBase _child_node = null; + + public AIRunTimeDecorationNode(XmlElement node) : base(node) + { + this._type = NodeType.NODE_TYPE_DECORATION; + } + + public override void AddChild(AIRunTimeNodeBase child) + { + this._child_node = child; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDecorationNode.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDecorationNode.cs.meta new file mode 100644 index 00000000..ee1323c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDecorationNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36c7ddac0b928554788beadda2945c02 +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDetectEnimyInSight.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDetectEnimyInSight.cs new file mode 100644 index 00000000..ef420dbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDetectEnimyInSight.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeDetectEnimyInSight : AIRunTimeNodeAction + { + public AIRunTimeDetectEnimyInSight(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.DetectEnimyInSight(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDetectEnimyInSight.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDetectEnimyInSight.cs.meta new file mode 100644 index 00000000..4177fe27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDetectEnimyInSight.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 288b240e348eed848a814754bd69a5c6 +timeCreated: 1611403475 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectFarthest.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectFarthest.cs new file mode 100644 index 00000000..9673e693 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectFarthest.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeDoSelectFarthest : AIRunTimeNodeAction + { + public AIRunTimeDoSelectFarthest(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.DoSelectFarthest(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectFarthest.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectFarthest.cs.meta new file mode 100644 index 00000000..2ea7cda0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectFarthest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d7d8d7c50a64934593204cdc0c8bdda +timeCreated: 1611403354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectNearest.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectNearest.cs new file mode 100644 index 00000000..6f7edd87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectNearest.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeDoSelectNearest : AIRunTimeNodeAction + { + public AIRunTimeDoSelectNearest(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.DoSelectNearest(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectNearest.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectNearest.cs.meta new file mode 100644 index 00000000..7ecf680e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeDoSelectNearest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bdbdd3f6dd308954a98f32d01285e7ec +timeCreated: 1611404456 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeEntryTaskNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeEntryTaskNode.cs new file mode 100644 index 00000000..1dddd659 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeEntryTaskNode.cs @@ -0,0 +1,62 @@ +using System; +using System.Xml; +using UnityEngine; + +namespace XMainClient +{ + internal class AIRunTimeEntryTaskNode : AIRunTimeRootNode + { + public AIRunTimeEntryTaskNode(XmlElement node) : base(node) + { + for (int i = 0; i < node.Attributes.Count; i++) + { + bool flag = node.Attributes[i].Name.Length >= 3; + if (flag) + { + string name = node.Attributes[i].Name.Substring(2); + bool flag2 = node.Attributes[i].Name.StartsWith("F_"); + if (flag2) + { + base.Data.SetFloatByName(name, float.Parse(node.Attributes[i].Value)); + } + else + { + bool flag3 = node.Attributes[i].Name.StartsWith("S_"); + if (flag3) + { + base.Data.SetStringByName(name, node.Attributes[i].Value); + } + else + { + bool flag4 = node.Attributes[i].Name.StartsWith("I_"); + if (flag4) + { + base.Data.SetIntByName(name, int.Parse(node.Attributes[i].Value)); + } + else + { + bool flag5 = node.Attributes[i].Name.StartsWith("B_"); + if (flag5) + { + base.Data.SetBoolByName(name, node.Attributes[i].Value != "0"); + } + else + { + bool flag6 = node.Attributes[i].Name.StartsWith("V_"); + if (flag6) + { + string[] array = node.Attributes[i].Value.Split(new char[] + { + ':' + }); + base.Data.SetVector3ByName(name, new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2]))); + } + } + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeEntryTaskNode.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeEntryTaskNode.cs.meta new file mode 100644 index 00000000..74387868 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeEntryTaskNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4bf201d138731540bf5b3b66ab303f0 +timeCreated: 1611404740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs new file mode 100644 index 00000000..bc166ad1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeFindNavPath : AIRunTimeNodeAction + { + public AIRunTimeFindNavPath(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.FindNavPath(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs.meta new file mode 100644 index 00000000..42bd20d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindNavPath.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3000ba2725ee3114e9615685784015c9 +timeCreated: 1611403520 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByDist.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByDist.cs new file mode 100644 index 00000000..ad5a6af4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByDist.cs @@ -0,0 +1,53 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeFindTargetByDist : AIRunTimeNodeAction + { + private string _distance_name; + + private float _distance; + + private bool _filter_immortal; + + private float _angle; + + private float _delta; + + private int _targettype; + + public AIRunTimeFindTargetByDist(XmlElement node) : base(node) + { + this._distance_name = node.GetAttribute("Shared_DistanceName"); + this._distance = float.Parse(node.GetAttribute("Shared_DistancemValue")); + string attribute = node.GetAttribute("FilterImmortal"); + string attribute2 = node.GetAttribute("TargetType"); + string attribute3 = node.GetAttribute("Angle"); + bool flag = !float.TryParse(attribute3, out this._angle); + if (flag) + { + this._angle = 180f; + } + string attribute4 = node.GetAttribute("Delta"); + bool flag2 = !float.TryParse(attribute4, out this._delta); + if (flag2) + { + this._delta = 0f; + } + bool.TryParse(attribute, out this._filter_immortal); + bool flag3 = !int.TryParse(attribute2, out this._targettype); + if (flag3) + { + this._targettype = 0; + } + } + + public override bool Update(XEntity entity) + { + float floatByName = entity.AI.AIData.GetFloatByName(this._distance_name, this._distance); + return XSingleton.singleton.FindTargetByDistance(entity, floatByName, this._filter_immortal, this._angle, this._delta, this._targettype); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByDist.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByDist.cs.meta new file mode 100644 index 00000000..f91fe9a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByDist.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: caa96f3df28a96f439f885b8b6aeb071 +timeCreated: 1611404543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByHitLevel.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByHitLevel.cs new file mode 100644 index 00000000..efc2e28d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByHitLevel.cs @@ -0,0 +1,24 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeFindTargetByHitLevel : AIRunTimeNodeAction + { + private bool _filter_immortal; + + public AIRunTimeFindTargetByHitLevel(XmlElement node) : base(node) + { + string attribute = node.GetAttribute("FilterImmortal"); + int num = 0; + int.TryParse(attribute, out num); + this._filter_immortal = (num != 0); + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.FindTargetByHitLevel(entity, this._filter_immortal); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByHitLevel.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByHitLevel.cs.meta new file mode 100644 index 00000000..a372a735 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFindTargetByHitLevel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b32869c15955a1440980cf3f09f02f66 +timeCreated: 1611404388 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatComparison.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatComparison.cs new file mode 100644 index 00000000..1e7bcc3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatComparison.cs @@ -0,0 +1,78 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeFloatComparison : AIRunTimeNodeAction + { + private int _comp_type; + + private string _float_name1; + + private float _float_value1; + + private string _float_name2; + + private float _float_value2; + + public AIRunTimeFloatComparison(XmlElement node) : base(node) + { + this._float_name1 = node.GetAttribute("Shared_Float1Name"); + this._float_value1 = float.Parse(node.GetAttribute("float1Value")); + this._float_name2 = node.GetAttribute("Shared_Float2Name"); + this._float_value2 = float.Parse(node.GetAttribute("float2Value")); + this._comp_type = int.Parse(node.GetAttribute("type")); + } + + public override bool Update(XEntity entity) + { + float floatByName = entity.AI.AIData.GetFloatByName(this._float_name1, this._float_value1); + float floatByName2 = entity.AI.AIData.GetFloatByName(this._float_name2, this._float_value2); + bool flag = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_LESS_THAN); + bool result; + if (flag) + { + result = (floatByName < floatByName2); + } + else + { + bool flag2 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_LESS_OR_EQUAL_TO); + if (flag2) + { + result = (floatByName <= floatByName2); + } + else + { + bool flag3 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_EQUAL_TO); + if (flag3) + { + result = (floatByName == floatByName2); + } + else + { + bool flag4 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_NOT_EQUAL_TO); + if (flag4) + { + result = (floatByName != floatByName2); + } + else + { + bool flag5 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_GREATER_THAN); + if (flag5) + { + result = (floatByName > floatByName2); + } + else + { + bool flag6 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_GREATER_THAN_OR_EQUAL_TO); + result = (flag6 && floatByName >= floatByName2); + } + } + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatComparison.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatComparison.cs.meta new file mode 100644 index 00000000..b0211399 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatComparison.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9a45942021e83d4c8fcca802e121534 +timeCreated: 1611404411 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatOperator.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatOperator.cs new file mode 100644 index 00000000..cbf2d1a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatOperator.cs @@ -0,0 +1,89 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeFloatOperator : AIRunTimeNodeAction + { + private int _operator_type; + + private string _float_name1; + + private float _float_value1; + + private string _float_name2; + + private float _float_value2; + + private string _stored_result_name; + + public AIRunTimeFloatOperator(XmlElement node) : base(node) + { + this._operator_type = int.Parse(node.GetAttribute("type")); + this._float_name1 = node.GetAttribute("Shared_Float1Name"); + this._float_value1 = float.Parse(node.GetAttribute("float1Value")); + this._float_name2 = node.GetAttribute("Shared_Float2Name"); + this._float_value2 = float.Parse(node.GetAttribute("float2Value")); + this._stored_result_name = node.GetAttribute("Shared_StoredResultName"); + } + + public override bool Update(XEntity entity) + { + float floatByName = entity.AI.AIData.GetFloatByName(this._float_name1, this._float_value1); + float floatByName2 = entity.AI.AIData.GetFloatByName(this._float_name2, this._float_value2); + float para = 0f; + bool flag = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_ADD); + if (flag) + { + para = floatByName + floatByName2; + } + else + { + bool flag2 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_SUBTRACT); + if (flag2) + { + para = floatByName - floatByName2; + } + else + { + bool flag3 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_MULTIPLY); + if (flag3) + { + para = floatByName * floatByName2; + } + else + { + bool flag4 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_DIVIDE); + if (flag4) + { + bool flag5 = floatByName2 != 0f; + if (flag5) + { + para = floatByName / floatByName2; + } + } + else + { + bool flag6 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_MIN); + if (flag6) + { + para = ((floatByName < floatByName2) ? floatByName : floatByName2); + } + else + { + bool flag7 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_MAX); + if (flag7) + { + para = ((floatByName > floatByName2) ? floatByName : floatByName2); + } + } + } + } + } + } + entity.AI.AIData.SetFloatByName(this._stored_result_name, para); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatOperator.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatOperator.cs.meta new file mode 100644 index 00000000..0d1abad0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeFloatOperator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4dfe754e451cad74ea8a3161f2b57e2e +timeCreated: 1611403697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeGetRealtimeSinceStartup.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeGetRealtimeSinceStartup.cs new file mode 100644 index 00000000..5278a761 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeGetRealtimeSinceStartup.cs @@ -0,0 +1,25 @@ +using System; +using System.Xml; +using UnityEngine; + +namespace XMainClient +{ + internal class AIRunTimeGetRealtimeSinceStartup : AIRunTimeNodeAction + { + private string _store_res_name; + + private float _store_res; + + public AIRunTimeGetRealtimeSinceStartup(XmlElement node) : base(node) + { + this._store_res_name = node.GetAttribute("Shared_FloatstoreResultName"); + } + + public override bool Update(XEntity entity) + { + this._store_res = Time.realtimeSinceStartup; + entity.AI.AIData.SetFloatByName(this._store_res_name, this._store_res); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeGetRealtimeSinceStartup.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeGetRealtimeSinceStartup.cs.meta new file mode 100644 index 00000000..6365fd54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeGetRealtimeSinceStartup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fde7289be5c02cb4eac2bf7134d21d2a +timeCreated: 1611404938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntComparison.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntComparison.cs new file mode 100644 index 00000000..137fbbf7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntComparison.cs @@ -0,0 +1,78 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeIntComparison : AIRunTimeNodeAction + { + private int _comp_type = 0; + + private string _int_name1; + + private int _int_value1; + + private string _int_name2; + + private int _int_value2; + + public AIRunTimeIntComparison(XmlElement node) : base(node) + { + this._comp_type = int.Parse(node.GetAttribute("type")); + this._int_name1 = node.GetAttribute("Shared_Int1Name"); + this._int_value1 = int.Parse(node.GetAttribute("int1Value")); + this._int_name2 = node.GetAttribute("Shared_Int2Name"); + this._int_value2 = int.Parse(node.GetAttribute("int2Value")); + } + + public override bool Update(XEntity entity) + { + int intByName = entity.AI.AIData.GetIntByName(this._int_name1, this._int_value1); + int intByName2 = entity.AI.AIData.GetIntByName(this._int_name2, this._int_value2); + bool flag = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_LESS_THAN); + bool result; + if (flag) + { + result = (intByName < intByName2); + } + else + { + bool flag2 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_LESS_OR_EQUAL_TO); + if (flag2) + { + result = (intByName <= intByName2); + } + else + { + bool flag3 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_EQUAL_TO); + if (flag3) + { + result = (intByName == intByName2); + } + else + { + bool flag4 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_NOT_EQUAL_TO); + if (flag4) + { + result = (intByName != intByName2); + } + else + { + bool flag5 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_GREATER_THAN); + if (flag5) + { + result = (intByName > intByName2); + } + else + { + bool flag6 = this._comp_type == XFastEnumIntEqualityComparer.ToInt(ComparisonType.FCTYPE_GREATER_THAN_OR_EQUAL_TO); + result = (flag6 && intByName >= intByName2); + } + } + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntComparison.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntComparison.cs.meta new file mode 100644 index 00000000..4a1fb853 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntComparison.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 391862b8c08ec36459f35f0a94a4d408 +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntOperator.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntOperator.cs new file mode 100644 index 00000000..e2843714 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntOperator.cs @@ -0,0 +1,89 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeIntOperator : AIRunTimeNodeAction + { + private int _operator_type; + + private string _int_name1; + + private int _int_value1; + + private string _int_name2; + + private int _int_value2; + + private string _stored_result_name; + + public AIRunTimeIntOperator(XmlElement node) : base(node) + { + this._operator_type = int.Parse(node.GetAttribute("type")); + this._int_name1 = node.GetAttribute("Shared_Int1Name"); + this._int_value1 = int.Parse(node.GetAttribute("int1Value")); + this._int_name2 = node.GetAttribute("Shared_Int2Name"); + this._int_value2 = int.Parse(node.GetAttribute("int2Value")); + this._stored_result_name = node.GetAttribute("Shared_StoredResultName"); + } + + public override bool Update(XEntity entity) + { + int intByName = entity.AI.AIData.GetIntByName(this._int_name1, this._int_value1); + int intByName2 = entity.AI.AIData.GetIntByName(this._int_name2, this._int_value2); + int para = 0; + bool flag = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_ADD); + if (flag) + { + para = intByName + intByName2; + } + else + { + bool flag2 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_SUBTRACT); + if (flag2) + { + para = intByName - intByName2; + } + else + { + bool flag3 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_MULTIPLY); + if (flag3) + { + para = intByName * intByName2; + } + else + { + bool flag4 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_DIVIDE); + if (flag4) + { + bool flag5 = (float)intByName2 != 0f; + if (flag5) + { + para = intByName / intByName2; + } + else + { + bool flag6 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_MIN); + if (flag6) + { + para = ((intByName < intByName2) ? intByName : intByName2); + } + else + { + bool flag7 = this._operator_type == XFastEnumIntEqualityComparer.ToInt(FloatOperatorType.FOTYPE_MAX); + if (flag7) + { + para = ((intByName > intByName2) ? intByName : intByName2); + } + } + } + } + } + } + } + entity.AI.AIData.SetIntByName(this._stored_result_name, para); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntOperator.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntOperator.cs.meta new file mode 100644 index 00000000..a9e2bfcc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIntOperator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36ec3289bad67954189751ea5b89c8ae +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeInverter.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeInverter.cs new file mode 100644 index 00000000..a2b15a1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeInverter.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeInverter : AIRunTimeDecorationNode + { + public AIRunTimeInverter(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + bool flag = this._child_node != null; + return flag && !this._child_node.Update(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeInverter.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeInverter.cs.meta new file mode 100644 index 00000000..b565f8ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeInverter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bad48954cf04f494f905ebcfadbfc17c +timeCreated: 1611404438 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsCastingSkill.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsCastingSkill.cs new file mode 100644 index 00000000..3c6b2ea4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsCastingSkill.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeIsCastingSkill : AIRunTimeNodeCondition + { + public AIRunTimeIsCastingSkill(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return entity.AI.IsCastingSkill; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsCastingSkill.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsCastingSkill.cs.meta new file mode 100644 index 00000000..d09fa267 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsCastingSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fdbc12c015f21ba41978e34cd4a26e36 +timeCreated: 1611404937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFighting.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFighting.cs new file mode 100644 index 00000000..a93174b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFighting.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeIsFighting : AIRunTimeNodeCondition + { + public AIRunTimeIsFighting(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return entity.AI.IsFighting; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFighting.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFighting.cs.meta new file mode 100644 index 00000000..e6a1a15e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFighting.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4858b22fc9346a24fa294c5c6389e521 +timeCreated: 1611403657 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs new file mode 100644 index 00000000..9bacfde9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeIsFixedInCd : AIRunTimeNodeCondition + { + public AIRunTimeIsFixedInCd(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return entity.AI.IsFixedInCd; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs.meta new file mode 100644 index 00000000..d09f9deb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsFixedInCd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d29cdeaf2b223a841abb3be0bc7a18ae +timeCreated: 1611404596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs new file mode 100644 index 00000000..e423f6e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeIsHurtOppo : AIRunTimeNodeCondition + { + public AIRunTimeIsHurtOppo(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return entity.AI.IsHurtOppo; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs.meta new file mode 100644 index 00000000..3c8701fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsHurtOppo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9521588597a301043b36f4025e7e6f2b +timeCreated: 1611404180 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs new file mode 100644 index 00000000..1542f1ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeIsOppoCastingSkill : AIRunTimeNodeCondition + { + public AIRunTimeIsOppoCastingSkill(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return entity.AI.IsOppoCastingSkill; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs.meta new file mode 100644 index 00000000..5dcd88b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsOppoCastingSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a46a0085403ba14438a595840a2ab222 +timeCreated: 1611404282 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs new file mode 100644 index 00000000..0972c47c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs @@ -0,0 +1,25 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeIsQTEState : AIRunTimeNodeCondition + { + private int _qte_state = 0; + + public AIRunTimeIsQTEState(XmlElement node) : base(node) + { + bool flag = node.GetAttribute("QTEState") != ""; + if (flag) + { + this._qte_state = int.Parse(node.GetAttribute("QTEState")); + } + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.HasQTE(entity.ID, this._qte_state); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs.meta new file mode 100644 index 00000000..e5273c3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsQTEState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f48a6418208d1e4fad342ab31fbeff1 +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsTargetImmortal.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsTargetImmortal.cs new file mode 100644 index 00000000..218f099d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsTargetImmortal.cs @@ -0,0 +1,23 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeIsTargetImmortal : AIRunTimeNodeCondition + { + private string _target_name; + + public AIRunTimeIsTargetImmortal(XmlElement node) : base(node) + { + this._target_name = node.GetAttribute("Shared_TargetName"); + } + + public override bool Update(XEntity entity) + { + XGameObject xgameObjectByName = entity.AI.AIData.GetXGameObjectByName(this._target_name); + bool flag = xgameObjectByName != null; + return flag && XSingleton.singleton.IsTargetImmortal(xgameObjectByName.UID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsTargetImmortal.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsTargetImmortal.cs.meta new file mode 100644 index 00000000..e74533a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsTargetImmortal.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4599e2113b007a948b91ac357706162d +timeCreated: 1611403648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsWander.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsWander.cs new file mode 100644 index 00000000..2331eac5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsWander.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeIsWander : AIRunTimeNodeCondition + { + public AIRunTimeIsWander(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return entity.AI.IsWander; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsWander.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsWander.cs.meta new file mode 100644 index 00000000..2fc2d923 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeIsWander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6cb032bf6b488484dbc6098943512cfe +timeCreated: 1611403899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs new file mode 100644 index 00000000..243b2592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeLog : AIRunTimeNodeAction + { + public AIRunTimeLog(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs.meta new file mode 100644 index 00000000..44be3424 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d4475169f139c947974ee98dbb73977 +timeCreated: 1611403352 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLogicNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLogicNode.cs new file mode 100644 index 00000000..7f78dc4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLogicNode.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeLogicNode : AIRunTimeNodeBase + { + protected List _list_node = new List(); + + public AIRunTimeLogicNode(XmlElement node) : base(node) + { + this._type = NodeType.NODE_TYPE_LOGIC; + } + + public override void AddChild(AIRunTimeNodeBase child) + { + this._list_node.Add(child); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLogicNode.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLogicNode.cs.meta new file mode 100644 index 00000000..90578b97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeLogicNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3458a248869fb664a8b44306bddbc9eb +timeCreated: 1611403555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeAction.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeAction.cs new file mode 100644 index 00000000..20b5f4fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeAction.cs @@ -0,0 +1,13 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeNodeAction : AIRunTimeNodeBase + { + public AIRunTimeNodeAction(XmlElement node) : base(node) + { + this._type = NodeType.NODE_TYPE_ACTION; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeAction.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeAction.cs.meta new file mode 100644 index 00000000..ad1b4306 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeAction.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fb76b52f3c63fe41bd781220389e96e +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeBase.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeBase.cs new file mode 100644 index 00000000..758ecbe0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeBase.cs @@ -0,0 +1,33 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeNodeBase + { + protected NodeType _type; + + public AIRunTimeNodeBase(XmlElement node) + { + this._type = NodeType.NODE_TYPE_BASE; + } + + public virtual bool Update(XEntity entity) + { + return true; + } + + public virtual void AddChild(AIRunTimeNodeBase child) + { + } + + public NodeType GetNodeType() + { + return this._type; + } + + public virtual void Print() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeBase.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeBase.cs.meta new file mode 100644 index 00000000..7c596574 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6aa731744fa7f7c4691bd62d2acf1103 +timeCreated: 1611403889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeCondition.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeCondition.cs new file mode 100644 index 00000000..6d54a94a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeCondition.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeNodeCondition : AIRunTimeNodeBase + { + public AIRunTimeNodeCondition(XmlElement node) : base(node) + { + this._type = NodeType.NODE_TYPE_CONDITION; + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeCondition.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeCondition.cs.meta new file mode 100644 index 00000000..115f2b82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeNodeCondition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9336e97198032b34094863d5d7498d1d +timeCreated: 1611404150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomEntityPos.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomEntityPos.cs new file mode 100644 index 00000000..d26c0df7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomEntityPos.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeRandomEntityPos : AIRunTimeNodeAction + { + public AIRunTimeRandomEntityPos(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomEntityPos.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomEntityPos.cs.meta new file mode 100644 index 00000000..92714130 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomEntityPos.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bffd14c39d12dcd41a2e5dc16789b716 +timeCreated: 1611404485 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs new file mode 100644 index 00000000..e65d035e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs @@ -0,0 +1,37 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeRandomFloat : AIRunTimeNodeAction + { + private float _min_value; + + private string _min_name; + + private float _max_value; + + private string _max_name; + + private string _store_result_name; + + public AIRunTimeRandomFloat(XmlElement node) : base(node) + { + this._min_value = float.Parse(node.GetAttribute("minValue")); + this._min_name = node.GetAttribute("Shared_MinName"); + this._max_value = float.Parse(node.GetAttribute("maxValue")); + this._max_name = node.GetAttribute("Shared_MaxName"); + this._store_result_name = node.GetAttribute("Shared_StoredResultName"); + } + + public override bool Update(XEntity entity) + { + float floatByName = entity.AI.AIData.GetFloatByName(this._min_name, this._min_value); + float floatByName2 = entity.AI.AIData.GetFloatByName(this._max_name, this._max_value); + float para = XSingleton.singleton.RandomFloat(floatByName, floatByName2); + entity.AI.AIData.SetFloatByName(this._store_result_name, para); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs.meta new file mode 100644 index 00000000..59df0cf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomFloat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fdfbaf4c5decf9749ac6a5895e64efe2 +timeCreated: 1611404938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs new file mode 100644 index 00000000..f71486ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeRandomIndex + { + public int this[int index] + { + get + { + bool flag = index < 0 || index >= this.m_IndexList.Count; + int result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Random index out of range, try get ", index.ToString(), " but length = ", this.m_IndexList.Count.ToString(), null, null); + result = 0; + } + else + { + result = this.m_IndexList[index]; + } + return result; + } + } + + private List m_IndexList = new List(); + + public void AppendIndex() + { + this.m_IndexList.Add(this.m_IndexList.Count); + } + + public void Rand() + { + for (int i = this.m_IndexList.Count - 1; i > 0; i--) + { + int num = XSingleton.singleton.RandomInt(i + 1); + bool flag = num == i; + if (!flag) + { + int value = this.m_IndexList[num]; + this.m_IndexList[num] = this.m_IndexList[i]; + this.m_IndexList[i] = value; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs.meta new file mode 100644 index 00000000..ea1b0199 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomIndex.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ae936f1e3cb61e4fbeb91d433d02576 +timeCreated: 1611403497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSelectorNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSelectorNode.cs new file mode 100644 index 00000000..d0dd80d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSelectorNode.cs @@ -0,0 +1,35 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeRandomSelectorNode : AIRunTimeLogicNode + { + protected AIRunTimeRandomIndex _random_index = null; + + public AIRunTimeRandomSelectorNode(XmlElement node) : base(node) + { + this._random_index = new AIRunTimeRandomIndex(); + } + + public override void AddChild(AIRunTimeNodeBase child) + { + base.AddChild(child); + this._random_index.AppendIndex(); + } + + public override bool Update(XEntity entity) + { + this._random_index.Rand(); + for (int i = 0; i < this._list_node.Count; i++) + { + bool flag = this._list_node[this._random_index[i]].Update(entity); + if (flag) + { + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSelectorNode.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSelectorNode.cs.meta new file mode 100644 index 00000000..07af77b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSelectorNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cda279f03dd8704ea58c73609405c1a +timeCreated: 1611403349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSequenceNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSequenceNode.cs new file mode 100644 index 00000000..c0bd2d0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSequenceNode.cs @@ -0,0 +1,35 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeRandomSequenceNode : AIRunTimeLogicNode + { + protected AIRunTimeRandomIndex _random_index = null; + + public AIRunTimeRandomSequenceNode(XmlElement node) : base(node) + { + this._random_index = new AIRunTimeRandomIndex(); + } + + public override void AddChild(AIRunTimeNodeBase child) + { + base.AddChild(child); + this._random_index.AppendIndex(); + } + + public override bool Update(XEntity entity) + { + this._random_index.Rand(); + for (int i = 0; i < this._list_node.Count; i++) + { + bool flag = this._list_node[this._random_index[i]].Update(entity); + if (flag) + { + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSequenceNode.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSequenceNode.cs.meta new file mode 100644 index 00000000..9a5327ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRandomSequenceNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e86661861243edb4ebeb72acbe747f66 +timeCreated: 1611404753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetHartedList.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetHartedList.cs new file mode 100644 index 00000000..f4ae56ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetHartedList.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeResetHartedList : AIRunTimeNodeAction + { + public AIRunTimeResetHartedList(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.ResetHartedList(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetHartedList.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetHartedList.cs.meta new file mode 100644 index 00000000..41852981 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetHartedList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8faf27c6f3913d847a8adf94c53dfa47 +timeCreated: 1611404136 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetTargets.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetTargets.cs new file mode 100644 index 00000000..ec444f62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetTargets.cs @@ -0,0 +1,19 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeResetTargets : AIRunTimeNodeAction + { + public AIRunTimeResetTargets(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + XSingleton.singleton.ResetTargets(entity); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetTargets.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetTargets.cs.meta new file mode 100644 index 00000000..f5ed8761 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeResetTargets.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 82c87256ae303b84bbdaa6c40f846847 +timeCreated: 1611404041 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnFailure.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnFailure.cs new file mode 100644 index 00000000..1043db16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnFailure.cs @@ -0,0 +1,22 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeReturnFailure : AIRunTimeDecorationNode + { + public AIRunTimeReturnFailure(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + bool flag = this._child_node != null; + if (flag) + { + this._child_node.Update(entity); + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnFailure.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnFailure.cs.meta new file mode 100644 index 00000000..a0624d48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnFailure.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8895158ffc5ddb4f816dd7f380c1d76 +timeCreated: 1611404535 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnSuccess.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnSuccess.cs new file mode 100644 index 00000000..bddc41cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnSuccess.cs @@ -0,0 +1,22 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeReturnSuccess : AIRunTimeDecorationNode + { + public AIRunTimeReturnSuccess(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + bool flag = this._child_node != null; + if (flag) + { + this._child_node.Update(entity); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnSuccess.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnSuccess.cs.meta new file mode 100644 index 00000000..43987235 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeReturnSuccess.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03c8bbff5a97927498fbcdb381078648 +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs new file mode 100644 index 00000000..efedd412 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs @@ -0,0 +1,37 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeRootNode : AIRunTimeNodeBase + { + public SharedData Data + { + get + { + return this._shared_data; + } + } + + private AIRunTimeNodeBase _child; + + private SharedData _shared_data; + + public AIRunTimeRootNode(XmlElement node) : base(node) + { + this._child = null; + this._type = NodeType.NODE_TYPE_ROOT; + this._shared_data = new SharedData(); + } + + public override void AddChild(AIRunTimeNodeBase child) + { + this._child = child; + } + + public override bool Update(XEntity entity) + { + return this._child.Update(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs.meta new file mode 100644 index 00000000..fd631a81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeRootNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc56e107cf6baeb4f8de75b52ef8951b +timeCreated: 1611404445 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectBuffTarget.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectBuffTarget.cs new file mode 100644 index 00000000..9e91d1a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectBuffTarget.cs @@ -0,0 +1,34 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeSelectBuffTarget : AIRunTimeNodeAction + { + private string _buff_target; + + public AIRunTimeSelectBuffTarget(XmlElement node) : base(node) + { + this._buff_target = node.GetAttribute("Shared_BuffTargetName"); + } + + public override bool Update(XEntity entity) + { + Transform transform = XSingleton.singleton.SelectDoodaTarget(entity, XDoodadType.Buff); + bool flag = transform == null; + bool result; + if (flag) + { + result = false; + } + else + { + entity.AI.AIData.SetTransformByName(this._buff_target, transform); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectBuffTarget.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectBuffTarget.cs.meta new file mode 100644 index 00000000..120b77c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectBuffTarget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a706db289b004534b8cc4398fe16055f +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectItemTarget.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectItemTarget.cs new file mode 100644 index 00000000..4db79d6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectItemTarget.cs @@ -0,0 +1,34 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeSelectItemTarget : AIRunTimeNodeAction + { + private string _item_target; + + public AIRunTimeSelectItemTarget(XmlElement node) : base(node) + { + this._item_target = node.GetAttribute("Shared_ItemTargetName"); + } + + public override bool Update(XEntity entity) + { + Transform transform = XSingleton.singleton.SelectDoodaTarget(entity, XDoodadType.Item); + bool flag = transform == null; + bool result; + if (flag) + { + result = false; + } + else + { + entity.AI.AIData.SetTransformByName(this._item_target, transform); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectItemTarget.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectItemTarget.cs.meta new file mode 100644 index 00000000..5ef77177 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectItemTarget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9899caf2e4988a47b19dc22bc4d09c2 +timeCreated: 1611404539 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectMoveTargetById.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectMoveTargetById.cs new file mode 100644 index 00000000..18151d0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectMoveTargetById.cs @@ -0,0 +1,36 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeSelectMoveTargetById : AIRunTimeNodeAction + { + private int _object_id; + + private string _target_name; + + public AIRunTimeSelectMoveTargetById(XmlElement node) : base(node) + { + this._object_id = int.Parse(node.GetAttribute("ObjectId")); + this._target_name = node.GetAttribute("Shared_MoveTarget"); + } + + public override bool Update(XEntity entity) + { + XGameObject xgameObject = XSingleton.singleton.SelectMoveTargetById(entity, this._object_id); + bool flag = xgameObject == null; + bool result; + if (flag) + { + result = false; + } + else + { + entity.AI.AIData.SetXGameObjectByName(this._target_name, xgameObject); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectMoveTargetById.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectMoveTargetById.cs.meta new file mode 100644 index 00000000..30a3c506 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectMoveTargetById.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bfcdef92789f742409098851ec0e6400 +timeCreated: 1611404484 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectNonHartedList.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectNonHartedList.cs new file mode 100644 index 00000000..11f140ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectNonHartedList.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeSelectNonHartedList : AIRunTimeNodeAction + { + public AIRunTimeSelectNonHartedList(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectNonHartedList.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectNonHartedList.cs.meta new file mode 100644 index 00000000..34ec1043 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectNonHartedList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7963482293f41234da7ad767f6db5fe6 +timeCreated: 1611403985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectTargetBySkillCircle.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectTargetBySkillCircle.cs new file mode 100644 index 00000000..a9bf8a72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectTargetBySkillCircle.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeSelectTargetBySkillCircle : AIRunTimeNodeAction + { + public AIRunTimeSelectTargetBySkillCircle(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.SelectTargetBySkillCircle(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectTargetBySkillCircle.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectTargetBySkillCircle.cs.meta new file mode 100644 index 00000000..a1372ad8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectTargetBySkillCircle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4612fa3b293e5c42a42bf83fe863a2e +timeCreated: 1611404854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectorNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectorNode.cs new file mode 100644 index 00000000..d5adc4b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectorNode.cs @@ -0,0 +1,25 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeSelectorNode : AIRunTimeLogicNode + { + public AIRunTimeSelectorNode(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + for (int i = 0; i < this._list_node.Count; i++) + { + bool flag = this._list_node[i].Update(entity); + if (flag) + { + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectorNode.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectorNode.cs.meta new file mode 100644 index 00000000..8e18b1e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSelectorNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0955444c79f2bf4aa7e661a37fee192 +timeCreated: 1611404698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs new file mode 100644 index 00000000..d2998f02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs @@ -0,0 +1,25 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeSequenceNode : AIRunTimeLogicNode + { + public AIRunTimeSequenceNode(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + for (int i = 0; i < this._list_node.Count; i++) + { + bool flag = !this._list_node[i].Update(entity); + if (flag) + { + return false; + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs.meta new file mode 100644 index 00000000..9eff67ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSequenceNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ffb15463e80ddce4a93e97e26e8902fb +timeCreated: 1611404947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetBool.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetBool.cs new file mode 100644 index 00000000..b2d5bc00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetBool.cs @@ -0,0 +1,28 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeSetBool : AIRunTimeNodeAction + { + private string _value_name; + + private bool _value; + + private string _store_name; + + public AIRunTimeSetBool(XmlElement node) : base(node) + { + this._value_name = node.GetAttribute("Shared_ValueName"); + this._value = (node.GetAttribute("value") != "0"); + this._store_name = node.GetAttribute("Shared_StoredResultName"); + } + + public override bool Update(XEntity entity) + { + bool boolByName = entity.AI.AIData.GetBoolByName(this._value_name, this._value); + entity.AI.AIData.SetBoolByName(this._store_name, boolByName); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetBool.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetBool.cs.meta new file mode 100644 index 00000000..6d0d1f9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetBool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c5ed103b2e544e4ebb1421c78a0e10a +timeCreated: 1611403895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs new file mode 100644 index 00000000..d4ece667 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeSetEnmity : AIRunTimeNodeAction + { + public AIRunTimeSetEnmity(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs.meta new file mode 100644 index 00000000..a0dcc117 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetEnmity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 570d81252c640414fad2c3d54c63118f +timeCreated: 1611403747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetFloat.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetFloat.cs new file mode 100644 index 00000000..e3315b9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetFloat.cs @@ -0,0 +1,28 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeSetFloat : AIRunTimeNodeAction + { + private string _value_name; + + private float _value; + + private string _store_name; + + public AIRunTimeSetFloat(XmlElement node) : base(node) + { + this._value_name = node.GetAttribute("Shared_ValueName"); + this._value = float.Parse(node.GetAttribute("value")); + this._store_name = node.GetAttribute("Shared_StoredResultName"); + } + + public override bool Update(XEntity entity) + { + float floatByName = entity.AI.AIData.GetFloatByName(this._value_name, this._value); + entity.AI.AIData.SetFloatByName(this._store_name, floatByName); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetFloat.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetFloat.cs.meta new file mode 100644 index 00000000..0f291654 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetFloat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfd011bb15383624a92f65db1e3e798c +timeCreated: 1611404694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetInt.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetInt.cs new file mode 100644 index 00000000..2796d033 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetInt.cs @@ -0,0 +1,28 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeSetInt : AIRunTimeNodeAction + { + private string _value_name; + + private int _value; + + private string _store_name; + + public AIRunTimeSetInt(XmlElement node) : base(node) + { + this._value_name = node.GetAttribute("Shared_ValueName"); + this._value = int.Parse(node.GetAttribute("value")); + this._store_name = node.GetAttribute("Shared_StoredResultName"); + } + + public override bool Update(XEntity entity) + { + int intByName = entity.AI.AIData.GetIntByName(this._value_name, this._value); + entity.AI.AIData.SetIntByName(this._store_name, intByName); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetInt.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetInt.cs.meta new file mode 100644 index 00000000..1196f577 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeSetInt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd6d9b1d40b78be44af4199b6fb521e1 +timeCreated: 1611404682 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs new file mode 100644 index 00000000..a67fc094 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeStatusIdle : AIRunTimeNodeCondition + { + public AIRunTimeStatusIdle(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs.meta new file mode 100644 index 00000000..e98060ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeStatusIdle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 672ca7de6e1e04b4190f6294194fe502 +timeCreated: 1611403857 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetByHatredList.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetByHatredList.cs new file mode 100644 index 00000000..9945c51f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetByHatredList.cs @@ -0,0 +1,22 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeTargetByHatredList : AIRunTimeNodeAction + { + private bool _filter_immortal; + + public AIRunTimeTargetByHatredList(XmlElement node) : base(node) + { + string attribute = node.GetAttribute("FilterImmortal"); + bool.TryParse(attribute, out this._filter_immortal); + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.FindTargetByHartedList(entity, this._filter_immortal); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetByHatredList.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetByHatredList.cs.meta new file mode 100644 index 00000000..beec53e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetByHatredList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73e3a4bcca8e36646af4b2e23d93bf91 +timeCreated: 1611403941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetQTEState.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetQTEState.cs new file mode 100644 index 00000000..4d663e4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetQTEState.cs @@ -0,0 +1,26 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeTargetQTEState : AIRunTimeNodeCondition + { + private string _target_name; + + private int _qte_state; + + public AIRunTimeTargetQTEState(XmlElement node) : base(node) + { + this._target_name = node.GetAttribute("Shared_TargetName"); + this._qte_state = int.Parse(node.GetAttribute("QTEState")); + } + + public override bool Update(XEntity entity) + { + XGameObject xgameObjectByName = entity.AI.AIData.GetXGameObjectByName(this._target_name); + bool flag = xgameObjectByName != null; + return flag && XSingleton.singleton.HasQTE(xgameObjectByName.UID, this._qte_state); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetQTEState.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetQTEState.cs.meta new file mode 100644 index 00000000..c8fb1ccb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTargetQTEState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65895e7702341554f9fdf1ca55eaa51a +timeCreated: 1611403850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs new file mode 100644 index 00000000..d93b0db6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeTreeMgr : XSingleton + { + private Dictionary _behavior_tree = new Dictionary(); + + private AIRunTimeRootNode LoadAITree(Stream content, string key) + { + XmlDocument xmlDocument = new XmlDocument(); + xmlDocument.Load(content); + XSingleton.singleton.ClearStream(content); + XmlElement documentElement = xmlDocument.DocumentElement; + AIRunTimeRootNode airunTimeRootNode = this.LoadOneNode(documentElement.FirstChild as XmlElement) as AIRunTimeRootNode; + this._behavior_tree[key] = airunTimeRootNode; + return airunTimeRootNode; + } + + public AIRunTimeRootNode GetBehavior(string name) + { + AIRunTimeRootNode result = null; + bool flag = !this._behavior_tree.TryGetValue(name, out result); + if (flag) + { + result = this.LoadAITree(XSingleton.singleton.ReadText("Table/AITree/" + name, ".xml", true), name); + } + return result; + } + + private AIRunTimeNodeBase LoadOneNode(XmlElement element) + { + bool flag = element == null; + AIRunTimeNodeBase result; + if (flag) + { + result = null; + } + else + { + AIRunTimeNodeBase airunTimeNodeBase = AINodeFactory.CreateAINodeByName(element.Name, element); + bool flag2 = element.Name == "ConditionalEvaluator"; + if (flag2) + { + AIRunTimeNodeBase airunTimeNodeBase2 = AINodeFactory.CreateAINodeByName((airunTimeNodeBase as AIRunTimeConditionalEvaluator).ConditionNodeName, element); + bool flag3 = airunTimeNodeBase2 != null; + if (flag3) + { + (airunTimeNodeBase as AIRunTimeConditionalEvaluator).AddConditionNode(airunTimeNodeBase2); + } + } + for (int i = 0; i < element.ChildNodes.Count; i++) + { + AIRunTimeNodeBase airunTimeNodeBase3 = this.LoadOneNode(element.ChildNodes[i] as XmlElement); + bool flag4 = airunTimeNodeBase3 != null; + if (flag4) + { + airunTimeNodeBase.AddChild(airunTimeNodeBase3); + } + } + result = airunTimeNodeBase; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs.meta new file mode 100644 index 00000000..c11c6fd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeTreeMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8d1933b270bd6d43a73f6866fe71958 +timeCreated: 1611404641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueDistance.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueDistance.cs new file mode 100644 index 00000000..8ba9ca6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueDistance.cs @@ -0,0 +1,30 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeValueDistance : AIRunTimeNodeCondition + { + private string _target_name; + + private string _distance_name; + + private float _distance = 0f; + + public AIRunTimeValueDistance(XmlElement node) : base(node) + { + this._target_name = node.GetAttribute("Shared_TargetName"); + this._distance_name = node.GetAttribute("Shared_MaxDistanceName"); + this._distance = float.Parse(node.GetAttribute("Shared_MaxDistancemValue")); + } + + public override bool Update(XEntity entity) + { + XGameObject xgameObjectByName = entity.AI.AIData.GetXGameObjectByName(this._target_name); + float floatByName = entity.AI.AIData.GetFloatByName(this._distance_name, this._distance); + bool flag = xgameObjectByName != null; + return flag && (entity.EngineObject.Position - xgameObjectByName.Position).magnitude <= floatByName; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueDistance.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueDistance.cs.meta new file mode 100644 index 00000000..28d158a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueDistance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b75043a402391a84d8d4639e0676c59b +timeCreated: 1611404402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueFP.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueFP.cs new file mode 100644 index 00000000..85260a3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueFP.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeValueFP : AIRunTimeNodeCondition + { + public AIRunTimeValueFP(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueFP.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueFP.cs.meta new file mode 100644 index 00000000..506eac42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueFP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 663e66b055c0e134994696b1c8c82521 +timeCreated: 1611403853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueHP.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueHP.cs new file mode 100644 index 00000000..0b171d91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueHP.cs @@ -0,0 +1,24 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeValueHP : AIRunTimeNodeCondition + { + private int _max_hp; + + private int _min_hp; + + public AIRunTimeValueHP(XmlElement node) : base(node) + { + this._max_hp = int.Parse(node.GetAttribute("MaxPercent")); + this._min_hp = int.Parse(node.GetAttribute("MinPercent")); + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.IsHPValue(entity.ID, this._min_hp, this._max_hp); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueHP.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueHP.cs.meta new file mode 100644 index 00000000..3c9249f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueHP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eec4c52297e6fdd4582e4d41e38e59d2 +timeCreated: 1611404799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueMP.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueMP.cs new file mode 100644 index 00000000..407b6c81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueMP.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRunTimeValueMP : AIRunTimeNodeCondition + { + public AIRunTimeValueMP(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueMP.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueMP.cs.meta new file mode 100644 index 00000000..e5039e78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueMP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01b853641f6b4084eb0347a8bda9d3b2 +timeCreated: 1611402954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueTarget.cs b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueTarget.cs new file mode 100644 index 00000000..857d8635 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueTarget.cs @@ -0,0 +1,39 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRunTimeValueTarget : AIRunTimeNodeCondition + { + private string _shared_target_name; + + public AIRunTimeValueTarget(XmlElement node) : base(node) + { + this._shared_target_name = node.GetAttribute("Shared_TargetName"); + } + + public override bool Update(XEntity entity) + { + XGameObject xgameObjectByName = entity.AI.AIData.GetXGameObjectByName(this._shared_target_name); + XEntity xentity = null; + bool flag = xgameObjectByName != null; + if (flag) + { + xentity = XSingleton.singleton.GetEntity(xgameObjectByName.UID); + } + bool flag2 = xgameObjectByName != null && xentity != null && XEntity.ValideEntity(xentity); + bool result; + if (flag2) + { + result = true; + } + else + { + entity.AI.SetTarget(null); + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueTarget.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueTarget.cs.meta new file mode 100644 index 00000000..7b4bfb0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRunTimeValueTarget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9fb288a90f47f1f419e514945edbc91d +timeCreated: 1611404246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionMove.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionMove.cs new file mode 100644 index 00000000..5912ec67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionMove.cs @@ -0,0 +1,42 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeActionMove : AIRunTimeNodeAction + { + private string _move_dir; + + private string _move_dest; + + private string _move_speed; + + public AIRuntimeActionMove(XmlElement node) : base(node) + { + this._move_dir = node.GetAttribute("Shared_MoveDirName"); + this._move_dest = node.GetAttribute("Shared_MoveDestName"); + this._move_speed = node.GetAttribute("Shared_MoveSpeedName"); + } + + public override bool Update(XEntity entity) + { + Vector3 vector = entity.AI.AIData.GetVector3ByName(this._move_dir, Vector3.zero); + Vector3 vector2 = entity.AI.AIData.GetVector3ByName(this._move_dest, Vector3.zero); + bool flag = vector == Vector3.zero; + if (flag) + { + vector = (vector2 - entity.EngineObject.Position).normalized; + vector.Set(vector.x, 0f, vector.z); + } + bool flag2 = vector2 == Vector3.zero; + if (flag2) + { + vector2 = entity.EngineObject.Position + vector.normalized * 50f; + } + float floatByName = entity.AI.AIData.GetFloatByName(this._move_speed, 0f); + return XSingleton.singleton.ActionMove(entity, vector, vector2, floatByName); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionMove.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionMove.cs.meta new file mode 100644 index 00000000..44914bc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionMove.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7b41388b7375fa4093b49146a778788 +timeCreated: 1611404889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionNavigation.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionNavigation.cs new file mode 100644 index 00000000..be44c0bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionNavigation.cs @@ -0,0 +1,25 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeActionNavigation : AIRunTimeNodeAction + { + public string _move_dir_name; + + private int _old_move_dir = 1; + + public AIRuntimeActionNavigation(XmlElement node) : base(node) + { + this._move_dir_name = node.GetAttribute("Shared_MoveDirName"); + } + + public override bool Update(XEntity entity) + { + int old_move_dir = this._old_move_dir; + this._old_move_dir = entity.AI.AIData.GetIntByName(this._move_dir_name, 1); + return XSingleton.singleton.UpdateNavigation(entity, this._old_move_dir, old_move_dir); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionNavigation.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionNavigation.cs.meta new file mode 100644 index 00000000..3567486b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionNavigation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76e38604b0771ed46a6c06fcc9bc7a30 +timeCreated: 1611403951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs new file mode 100644 index 00000000..8ab44953 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs @@ -0,0 +1,27 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeActionRotate : AIRunTimeNodeAction + { + public float _rot_degree; + + public float _rot_speed; + + public int _rot_type; + + public AIRuntimeActionRotate(XmlElement node) : base(node) + { + this._rot_degree = float.Parse(node.GetAttribute("RotDegree")); + this._rot_speed = float.Parse(node.GetAttribute("RotSpeed")); + this._rot_type = int.Parse(node.GetAttribute("RotType")); + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.ActionRotate(entity, this._rot_degree, this._rot_speed, this._rot_type); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs.meta new file mode 100644 index 00000000..722b6293 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeActionRotate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19aa2e0ef78acab479307a7956a70c5f +timeCreated: 1611403304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeAddBuff.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeAddBuff.cs new file mode 100644 index 00000000..011876af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeAddBuff.cs @@ -0,0 +1,39 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeAddBuff : AIRunTimeNodeAction + { + private int BuffId; + + private int BuffId2; + + private string BuffIdName; + + private string BuffId2Name; + + private int MonsterId; + + private string MonsterIdName; + + public AIRuntimeAddBuff(XmlElement node) : base(node) + { + this.BuffId = int.Parse(node.GetAttribute("Shared_BuffIdmValue")); + this.BuffId2 = int.Parse(node.GetAttribute("Shared_BuffId2mValue")); + this.BuffIdName = node.GetAttribute("Shared_BuffIdName"); + this.BuffId2Name = node.GetAttribute("Shared_BuffId2Name"); + this.MonsterId = int.Parse(node.GetAttribute("Shared_MonsterIdmValue")); + this.MonsterIdName = node.GetAttribute("Shared_MonsterIdName"); + } + + public override bool Update(XEntity entity) + { + int intByName = entity.AI.AIData.GetIntByName(this.MonsterIdName, this.MonsterId); + int intByName2 = entity.AI.AIData.GetIntByName(this.BuffIdName, this.BuffId); + int intByName3 = entity.AI.AIData.GetIntByName(this.BuffId2Name, this.BuffId2); + return XSingleton.singleton.AddBuff(intByName, intByName2, intByName3); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeAddBuff.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeAddBuff.cs.meta new file mode 100644 index 00000000..e3fb6179 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeAddBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 789dd9897234f66449b828feb9deb300 +timeCreated: 1611403982 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallMonster.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallMonster.cs new file mode 100644 index 00000000..2346e821 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallMonster.cs @@ -0,0 +1,111 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeCallMonster : AIRunTimeNodeAction + { + private float _dist; + + private string _dist_name; + + private float _angle; + + private string _angle_name; + + private string _monster_id_name; + + private int _monster_id; + + private int _copy_monster_id; + + private int _max_monster_num; + + private float _life_time; + + private float _delay_time; + + private Vector3 _pos; + + private string _pos_name; + + private int _born_type; + + private Vector3 _pos1; + + private Vector3 _pos2; + + private Vector3 _pos3; + + private Vector3 _pos4; + + private bool _force_place; + + private float _delta_arg; + + public AIRuntimeCallMonster(XmlElement node) : base(node) + { + this._dist = float.Parse(node.GetAttribute("Shared_DistmValue")); + this._dist_name = node.GetAttribute("Shared_DistName"); + this._angle = float.Parse(node.GetAttribute("Shared_AnglemValue")); + this._angle_name = node.GetAttribute("Shared_AngleName"); + this._monster_id_name = node.GetAttribute("MonsterId2Name"); + this._monster_id = int.Parse(node.GetAttribute("MonsterId")); + this._copy_monster_id = int.Parse(node.GetAttribute("CopyMonsterId")); + this._max_monster_num = int.Parse(node.GetAttribute("MaxMonsterNum")); + this._life_time = float.Parse(node.GetAttribute("LifeTime")); + this._delay_time = float.Parse(node.GetAttribute("DelayTime")); + string[] array = node.GetAttribute("Shared_PosmValue").Split(new char[] + { + ':' + }); + this._pos = new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2])); + this._pos_name = node.GetAttribute("Shared_PosName"); + this._born_type = int.Parse(node.GetAttribute("BornType")); + array = node.GetAttribute("Pos1").Split(new char[] + { + ':' + }); + this._pos1 = new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2])); + array = node.GetAttribute("Pos2").Split(new char[] + { + ':' + }); + this._pos2 = new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2])); + array = node.GetAttribute("Pos3").Split(new char[] + { + ':' + }); + this._pos3 = new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2])); + array = node.GetAttribute("Pos4").Split(new char[] + { + ':' + }); + this._pos4 = new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2])); + this._force_place = (int.Parse(node.GetAttribute("ForcePlace")) != 0); + this._delta_arg = float.Parse(node.GetAttribute("DeltaArg")); + } + + public override bool Update(XEntity entity) + { + CallMonsterData callMonsterData = new CallMonsterData(); + callMonsterData.mAIArgDist = entity.AI.AIData.GetFloatByName(this._dist_name, this._dist); + callMonsterData.mAIArgAngle = entity.AI.AIData.GetFloatByName(this._angle_name, this._angle); + callMonsterData.mAIArgMonsterId = entity.AI.AIData.GetIntByName(this._monster_id_name, this._monster_id); + callMonsterData.mAIArgCopyMonsterId = this._copy_monster_id; + callMonsterData.mAIArgLifeTime = this._life_time; + callMonsterData.mAIArgDelayTime = this._delay_time; + callMonsterData.mAIArgPos = entity.AI.AIData.GetVector3ByName(this._pos_name, this._pos); + callMonsterData.mAIArgBornType = this._born_type; + callMonsterData.mAIArgPos1 = this._pos1; + callMonsterData.mAIArgPos2 = this._pos2; + callMonsterData.mAIArgPos3 = this._pos3; + callMonsterData.mAIArgPos4 = this._pos4; + callMonsterData.mAIArgForcePlace = this._force_place; + callMonsterData.mAIArgDeltaArg = this._delta_arg; + return XSingleton.singleton.CallMonster(entity, callMonsterData); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallMonster.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallMonster.cs.meta new file mode 100644 index 00000000..ddb0532f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallMonster.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59ea1f821661b7947b12ce7667137b07 +timeCreated: 1611403789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallScript.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallScript.cs new file mode 100644 index 00000000..afa36b8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallScript.cs @@ -0,0 +1,25 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeCallScript : AIRunTimeNodeAction + { + public float mAIArgDelayTime; + + public string mAIArgScriptName; + + public AIRuntimeCallScript(XmlElement node) : base(node) + { + this.mAIArgDelayTime = float.Parse(node.GetAttribute("DelayTime")); + this.mAIArgScriptName = node.GetAttribute("FuncName"); + } + + public override bool Update(XEntity entity) + { + XSingleton.singleton.CallScript(this.mAIArgScriptName, this.mAIArgDelayTime); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallScript.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallScript.cs.meta new file mode 100644 index 00000000..56ff8513 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCallScript.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ca397ebf33cf5d499d9e5ce73ed0dec +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs new file mode 100644 index 00000000..59340ea2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRuntimeCancelSkill : AIRunTimeNodeAction + { + public AIRuntimeCancelSkill(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs.meta new file mode 100644 index 00000000..58f9d3b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCancelSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46d51d02a8e32724bae8559a61cfa774 +timeCreated: 1611403651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCastDash.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCastDash.cs new file mode 100644 index 00000000..2885c232 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCastDash.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeCastDash : AIRunTimeNodeAction + { + public AIRuntimeCastDash(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.CastDashSkill(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCastDash.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCastDash.cs.meta new file mode 100644 index 00000000..154f9083 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeCastDash.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25853c7f1c82cfb46af147abed9e0357 +timeCreated: 1611403465 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDetectEnemyInRange.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDetectEnemyInRange.cs new file mode 100644 index 00000000..4a4b90c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDetectEnemyInRange.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRuntimeDetectEnemyInRange : AIRunTimeNodeAction + { + public AIRuntimeDetectEnemyInRange(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDetectEnemyInRange.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDetectEnemyInRange.cs.meta new file mode 100644 index 00000000..1c5217cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDetectEnemyInRange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f69825eb0459e8e47bc087edc5a5532d +timeCreated: 1611404883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs new file mode 100644 index 00000000..e5574097 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs @@ -0,0 +1,21 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeDoCastSkill : AIRunTimeNodeAction + { + private string _target_name; + + public AIRuntimeDoCastSkill(XmlElement node) : base(node) + { + this._target_name = node.GetAttribute("Shared_TargetName"); + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.DoCastSkill(entity, entity.AI.Target); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs.meta new file mode 100644 index 00000000..39d506a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoCastSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da5dcd4c85d90ad4f8a850772e3f41c1 +timeCreated: 1611404647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillInOrder.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillInOrder.cs new file mode 100644 index 00000000..dc6522d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillInOrder.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeDoSelectSkillInOrder : AIRunTimeNodeAction + { + public AIRuntimeDoSelectSkillInOrder(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.DoSelectInOrder(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillInOrder.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillInOrder.cs.meta new file mode 100644 index 00000000..3147e02c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillInOrder.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 411ef6ae352cde64cb7b14b2bd762580 +timeCreated: 1611403616 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs new file mode 100644 index 00000000..11a3f462 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeDoSelectSkillRandom : AIRunTimeNodeAction + { + public AIRuntimeDoSelectSkillRandom(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.DoSelectRandom(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs.meta new file mode 100644 index 00000000..0afba3aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeDoSelectSkillRandom.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94997400f024f544092662d21678f500 +timeCreated: 1611404155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs new file mode 100644 index 00000000..6d808ef3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs @@ -0,0 +1,82 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeFilterSkill : AIRunTimeNodeAction + { + private string _target_name; + + private bool _use_mp; + + private bool _use_name; + + private bool _use_hp; + + private bool _use_cool_down; + + private bool _use_attack_field; + + private bool _use_combo; + + private bool _use_install = false; + + private int _skill_type; + + private string _skill_name; + + private bool _detect_all_attack_field; + + private int _max_skill_num; + + public AIRuntimeFilterSkill(XmlElement node) : base(node) + { + this._target_name = node.GetAttribute("Shared_TargetName"); + this._use_mp = (node.GetAttribute("UseMP") != "0"); + this._use_name = (node.GetAttribute("UseName") != "0"); + this._use_hp = (node.GetAttribute("UseHP") != "0"); + this._use_cool_down = (node.GetAttribute("UseCoolDown") != "0"); + this._use_attack_field = (node.GetAttribute("UseAttackField") != "0"); + this._use_combo = (node.GetAttribute("UseCombo") != "0"); + this._use_install = (node.GetAttribute("UseInstall") != "0"); + this._skill_type = int.Parse(node.GetAttribute("SkillType")); + this._skill_name = node.GetAttribute("SkillName"); + this._detect_all_attack_field = (node.GetAttribute("DetectAllPlayInAttackField") != "0"); + string attribute = node.GetAttribute("MaxSkillNum"); + bool flag = !string.IsNullOrEmpty(attribute); + if (flag) + { + this._max_skill_num = int.Parse(attribute); + } + else + { + this._max_skill_num = 0; + } + } + + public override bool Update(XEntity entity) + { + XGameObject xgameObjectByName = entity.AI.AIData.GetXGameObjectByName(this._target_name); + FilterSkillArg filterSkillArg = new FilterSkillArg(); + filterSkillArg.mAIArgUseMP = this._use_mp; + filterSkillArg.mAIArgUseName = this._use_name; + filterSkillArg.mAIArgUseHP = this._use_hp; + filterSkillArg.mAIArgUseCoolDown = this._use_cool_down; + filterSkillArg.mAIArgUseAttackField = this._use_attack_field; + filterSkillArg.mAIArgUseCombo = this._use_combo; + filterSkillArg.mAIArgUseInstall = this._use_install; + filterSkillArg.mAIArgSkillType = this._skill_type; + filterSkillArg.mAIArgSkillName = this._skill_name; + filterSkillArg.mAIArgDetectAllPlayInAttackField = this._detect_all_attack_field; + filterSkillArg.mAIArgMaxSkillNum = this._max_skill_num; + XEntity target = null; + bool flag = xgameObjectByName != null; + if (flag) + { + target = XSingleton.singleton.GetEntity(xgameObjectByName.UID); + } + return XSingleton.singleton.SelectSkill(entity, target, filterSkillArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs.meta new file mode 100644 index 00000000..634aaae5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeFilterSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23696e1ef28836d48868db88eb58c01c +timeCreated: 1611403453 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeKillMonster.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeKillMonster.cs new file mode 100644 index 00000000..a330a20c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeKillMonster.cs @@ -0,0 +1,12 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRuntimeKillMonster : AIRunTimeNodeAction + { + public AIRuntimeKillMonster(XmlElement node) : base(node) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeKillMonster.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeKillMonster.cs.meta new file mode 100644 index 00000000..d80e5a37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeKillMonster.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2877a0b85c467ef45aff9d0353452fe4 +timeCreated: 1611403475 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMixMonsterPos.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMixMonsterPos.cs new file mode 100644 index 00000000..be2bfdf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMixMonsterPos.cs @@ -0,0 +1,12 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRuntimeMixMonsterPos : AIRunTimeNodeAction + { + public AIRuntimeMixMonsterPos(XmlElement node) : base(node) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMixMonsterPos.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMixMonsterPos.cs.meta new file mode 100644 index 00000000..80858c47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMixMonsterPos.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e31e013644405a24bb3b23e9e824565d +timeCreated: 1611404731 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMoveStratage.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMoveStratage.cs new file mode 100644 index 00000000..58b36109 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMoveStratage.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRuntimeMoveStratage : AIRunTimeNodeAction + { + public AIRuntimeMoveStratage(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMoveStratage.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMoveStratage.cs.meta new file mode 100644 index 00000000..91ad4375 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeMoveStratage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d273e00d408eab4f83a372512d12f78 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs new file mode 100644 index 00000000..96470513 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs @@ -0,0 +1,74 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeNavToTarget : AIRunTimeNodeAction + { + private string _target_name; + + private string _nav_target_name; + + private Vector3 _nav_pos; + + private string _nav_pos_name; + + public AIRuntimeNavToTarget(XmlElement node) : base(node) + { + this._target_name = node.GetAttribute("Shared_TargetName"); + this._nav_target_name = node.GetAttribute("Shared_NavTargetName"); + this._nav_pos_name = node.GetAttribute("Shared_NavPosName"); + string attribute = node.GetAttribute("Shared_NavPosmValue"); + float num = float.Parse(attribute.Split(new char[] + { + ':' + })[0]); + float num2 = float.Parse(attribute.Split(new char[] + { + ':' + })[1]); + float num3 = float.Parse(attribute.Split(new char[] + { + ':' + })[2]); + this._nav_pos = new Vector3(num, num2, num3); + } + + public override bool Update(XEntity entity) + { + XGameObject xgameObjectByName = entity.AI.AIData.GetXGameObjectByName(this._target_name); + bool flag = xgameObjectByName == null; + bool result; + if (flag) + { + Transform transformByName = entity.AI.AIData.GetTransformByName(this._nav_target_name); + bool flag2 = transformByName == null; + if (flag2) + { + bool flag3 = string.IsNullOrEmpty(this._nav_pos_name); + if (flag3) + { + bool flag4 = this._nav_pos == Vector3.zero; + result = (!flag4 && XSingleton.singleton.ActionNav(entity.ID, this._nav_pos)); + } + else + { + Vector3 vector3ByName = entity.AI.AIData.GetVector3ByName(this._nav_pos_name, Vector3.zero); + result = XSingleton.singleton.ActionNav(entity.ID, vector3ByName); + } + } + else + { + result = XSingleton.singleton.NavToTarget(entity.ID, transformByName.gameObject); + } + } + else + { + result = XSingleton.singleton.NavToTarget(entity, xgameObjectByName.Position, entity.AI.MoveSpeed); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs.meta new file mode 100644 index 00000000..efa233a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeNavToTarget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e144f56edfde284d8dea37862a2cbfe +timeCreated: 1611403809 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimePhysicalAttack.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimePhysicalAttack.cs new file mode 100644 index 00000000..b146892c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimePhysicalAttack.cs @@ -0,0 +1,21 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimePhysicalAttack : AIRunTimeNodeAction + { + private string _target_name; + + public AIRuntimePhysicalAttack(XmlElement node) : base(node) + { + this._target_name = node.GetAttribute("Shared_TargetName"); + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.TryCastPhysicalSkill(entity, entity.AI.Target); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimePhysicalAttack.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimePhysicalAttack.cs.meta new file mode 100644 index 00000000..1d17080b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimePhysicalAttack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78e5a7bb643dfdd409a56aad3cd5f28c +timeCreated: 1611403982 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeReceiveAIEvent.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeReceiveAIEvent.cs new file mode 100644 index 00000000..5deda83a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeReceiveAIEvent.cs @@ -0,0 +1,104 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeReceiveAIEvent : AIRunTimeNodeAction + { + private bool _deprecate; + + private int _msg_type; + + private string _msg_str; + + private int _type_id; + + private string _type_id_name; + + private Vector3 _pos; + + private string _pos_name; + + private int _skill_template_id; + + private string _skill_template_id_name; + + private int _skill_id; + + private string _skill_id_name; + + private float _float_arg; + + private string _float_arg_name; + + private string _sender_uid; + + private string _sender_uid_name; + + public AIRuntimeReceiveAIEvent(XmlElement node) : base(node) + { + this._msg_type = int.Parse(node.GetAttribute("MsgType")); + this._msg_str = node.GetAttribute("Shared_MsgStrName"); + this._deprecate = (node.GetAttribute("Deprecate") != "0"); + this._type_id = int.Parse(node.GetAttribute("Shared_TypeIdmValue")); + this._type_id_name = node.GetAttribute("Shared_TypeIdName"); + string[] array = node.GetAttribute("Shared_PosmValue").Split(new char[] + { + ':' + }); + this._pos = new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2])); + this._pos_name = node.GetAttribute("Shared_PosName"); + this._skill_template_id = int.Parse(node.GetAttribute("Shared_SkillTemplateIdmValue")); + this._skill_template_id_name = node.GetAttribute("Shared_SkillTemplateIdName"); + this._skill_id = int.Parse(node.GetAttribute("Shared_SkillIdmValue")); + this._skill_id_name = node.GetAttribute("Shared_SkillIdName"); + this._float_arg = float.Parse(node.GetAttribute("Shared_FloatArgmValue")); + this._float_arg_name = node.GetAttribute("Shared_FloatArgName"); + this._sender_uid = node.GetAttribute("Shared_SenderUIDmValue"); + this._sender_uid_name = node.GetAttribute("Shared_SenderUIDName"); + } + + public override bool Update(XEntity entity) + { + string text = XSingleton.singleton.ReceiveAIEvent(entity, this._msg_type, this._deprecate); + bool flag = string.IsNullOrEmpty(text); + bool result; + if (flag) + { + result = false; + } + else + { + string[] array = text.Split(new char[] + { + ' ' + }); + entity.AI.AIData.SetStringByName(this._msg_str, array[0]); + bool flag2 = !string.IsNullOrEmpty(this._type_id_name); + if (flag2) + { + entity.AI.AIData.SetIntByName(this._type_id_name, int.Parse(array[1])); + } + bool flag3 = !string.IsNullOrEmpty(this._pos_name); + if (flag3) + { + entity.AI.AIData.SetVector3ByName(this._pos_name, new Vector3(float.Parse(array[2]), float.Parse(array[3]), float.Parse(array[4]))); + } + bool flag4 = !string.IsNullOrEmpty(this._skill_id_name); + if (flag4) + { + entity.AI.AIData.SetIntByName(this._skill_id_name, int.Parse(array[5])); + } + bool flag5 = !string.IsNullOrEmpty(this._sender_uid_name); + if (flag5) + { + entity.AI.AIData.SetStringByName(this._sender_uid_name, array[6]); + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeReceiveAIEvent.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeReceiveAIEvent.cs.meta new file mode 100644 index 00000000..943cc448 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeReceiveAIEvent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de3ef589ada348141b254916c26d9aec +timeCreated: 1611404685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs new file mode 100644 index 00000000..22fd8738 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs @@ -0,0 +1,12 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRuntimeRemoveBuff : AIRunTimeNodeAction + { + public AIRuntimeRemoveBuff(XmlElement node) : base(node) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs.meta new file mode 100644 index 00000000..ff20f0b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc341d1ee24f7dc4097d3e955a978fbf +timeCreated: 1611404677 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveSceneBuff.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveSceneBuff.cs new file mode 100644 index 00000000..7089b5e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveSceneBuff.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRuntimeRemoveSceneBuff : AIRunTimeNodeAction + { + public AIRuntimeRemoveSceneBuff(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveSceneBuff.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveSceneBuff.cs.meta new file mode 100644 index 00000000..2361ce76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRemoveSceneBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd661c11d7721ca438589c366508808c +timeCreated: 1611404452 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRotateToTarget.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRotateToTarget.cs new file mode 100644 index 00000000..3779c06d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRotateToTarget.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeRotateToTarget : AIRunTimeNodeAction + { + public AIRuntimeRotateToTarget(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.RotateToTarget(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRotateToTarget.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRotateToTarget.cs.meta new file mode 100644 index 00000000..7611dda9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeRotateToTarget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e2df41f0d315024589b5ce5d8b3424a +timeCreated: 1611403810 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs new file mode 100644 index 00000000..1fe4d8c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs @@ -0,0 +1,45 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeSendAIEvent : AIRunTimeNodeAction + { + private int _msg_to; + + private int _msg_type; + + private int _entity_type_id; + + private string _msg_str; + + private string _pos_name; + + private Vector3 _pos; + + private float _delay_time; + + public AIRuntimeSendAIEvent(XmlElement node) : base(node) + { + this._msg_to = int.Parse(node.GetAttribute("MsgTo")); + this._msg_type = int.Parse(node.GetAttribute("MsgType")); + this._entity_type_id = int.Parse(node.GetAttribute("EntityTypeId")); + this._msg_str = node.GetAttribute("MsgStr"); + this._pos_name = node.GetAttribute("Shared_PosName"); + this._delay_time = float.Parse(node.GetAttribute("DelayTime")); + string[] array = node.GetAttribute("Shared_PosmValue").Split(new char[] + { + ':' + }); + this._pos = new Vector3(float.Parse(array[0]), float.Parse(array[1]), float.Parse(array[2])); + } + + public override bool Update(XEntity entity) + { + Vector3 vector3ByName = entity.AI.AIData.GetVector3ByName(this._pos_name, this._pos); + return XSingleton.singleton.SendAIEvent(entity, this._msg_to, this._msg_type, this._entity_type_id, this._msg_str, vector3ByName, this._delay_time); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs.meta new file mode 100644 index 00000000..6af5ba33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSendAIEvent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1c185ed54293d44fa085692dca0d12b +timeCreated: 1611404491 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSetDest.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSetDest.cs new file mode 100644 index 00000000..dcb0fee0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSetDest.cs @@ -0,0 +1,170 @@ +using System; +using System.Xml; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeSetDest : AIRunTimeNodeAction + { + private string _final_dest_name; + + private string _target_name; + + private string _nav_name; + + private string _born_pos_name; + + private Vector3 _born_pos; + + private string _tick_count_name; + + private float _random_max; + + private float _adjust_angle; + + private string _adjust_length_name; + + private float _adjust_value; + + private int _adjust_dir; + + private int _set_dest_type; + + public AIRuntimeSetDest(XmlElement node) : base(node) + { + this._final_dest_name = node.GetAttribute("Shared_FinalDestName"); + this._target_name = node.GetAttribute("Shared_TargetName"); + this._nav_name = node.GetAttribute("Shared_NavName"); + this._born_pos_name = node.GetAttribute("Shared_BornPosName"); + this._tick_count_name = node.GetAttribute("Shared_TickCountName"); + this._random_max = float.Parse(node.GetAttribute("RandomMax")); + this._adjust_angle = float.Parse(node.GetAttribute("AdjustAngle")); + this._adjust_length_name = node.GetAttribute("Shared_AdjustLengthName"); + this._adjust_value = float.Parse(node.GetAttribute("Shared_AdjustLengthmValue")); + this._adjust_dir = int.Parse(node.GetAttribute("AdjustDir")); + this._set_dest_type = int.Parse(node.GetAttribute("SetDestType")); + string attribute = node.GetAttribute("Shared_BornPosmValue"); + float num = float.Parse(attribute.Split(new char[] + { + ':' + })[0]); + float num2 = float.Parse(attribute.Split(new char[] + { + ':' + })[1]); + float num3 = float.Parse(attribute.Split(new char[] + { + ':' + })[2]); + this._born_pos = new Vector3(num, num2, num3); + } + + public override bool Update(XEntity entity) + { + Vector3 vector = entity.AI.AIData.GetVector3ByName(this._final_dest_name, Vector3.zero); + XGameObject xgameObjectByName = entity.AI.AIData.GetXGameObjectByName(this._target_name); + Transform transformByName = entity.AI.AIData.GetTransformByName(this._nav_name); + Vector3 vector2 = entity.AI.AIData.GetVector3ByName(this._born_pos_name, Vector3.zero); + int intByName = entity.AI.AIData.GetIntByName(this._tick_count_name, 0); + float floatByName = entity.AI.AIData.GetFloatByName(this._adjust_length_name, this._adjust_value); + bool flag = string.IsNullOrEmpty(this._born_pos_name); + if (flag) + { + vector2 = this._born_pos; + } + Vector3 vector3 = new Vector3(1f, 0f, 1f); + //vector3= new Vector3(1f, 0f, 1f); + int num = XFastEnumIntEqualityComparer.ToInt(SetDestWay.Target); + bool flag2 = this._set_dest_type == XFastEnumIntEqualityComparer.ToInt(SetDestWay.Target); + if (flag2) + { + bool flag3 = xgameObjectByName == null; + if (flag3) + { + return false; + } + vector = xgameObjectByName.Position; + } + else + { + bool flag4 = this._set_dest_type == XFastEnumIntEqualityComparer.ToInt(SetDestWay.BornPos); + if (flag4) + { + vector = vector2; + } + else + { + bool flag5 = this._set_dest_type == XFastEnumIntEqualityComparer.ToInt(SetDestWay.NavPos); + if (flag5) + { + bool flag6 = transformByName == null; + if (flag6) + { + return false; + } + vector = transformByName.position; + } + } + } + bool flag7 = floatByName != 0f; + if (flag7) + { + Vector3 vector4 = Vector3.zero; + bool flag8 = this._adjust_dir == XFastEnumIntEqualityComparer.ToInt(AdjustDirection.TargetDir); + if (flag8) + { + vector4 = entity.EngineObject.Position - vector; + } + else + { + bool flag9 = this._adjust_dir == XFastEnumIntEqualityComparer.ToInt(AdjustDirection.TargetFace) && xgameObjectByName != null; + if (flag9) + { + vector4 = xgameObjectByName.Forward.normalized; + } + else + { + bool flag10 = this._adjust_dir == XFastEnumIntEqualityComparer.ToInt(AdjustDirection.SelfFace); + if (flag10) + { + vector4 = entity.EngineObject.Forward.normalized; + } + } + } + Vector3 vector5 = vector + (Quaternion.Euler(new Vector3(0f, (float)(intByName % 2) * this._adjust_angle * 2f - this._adjust_angle, 0f)) * vector4).normalized * floatByName; + bool flag11 = !XSingleton.singleton.IsPointInMap(vector5); + if (flag11) + { + for (int i = 0; i < 18; i++) + { + float num2 = this._adjust_angle + (float)(i * 10); + vector5 = vector + (Quaternion.Euler(new Vector3(0f, (float)(intByName % 2) * num2 * 2f - num2, 0f)) * vector4).normalized * floatByName; + bool flag12 = XSingleton.singleton.IsPointInMap(vector5); + if (flag12) + { + break; + } + num2 = this._adjust_angle - (float)(i * 10); + vector5 = vector + (Quaternion.Euler(new Vector3(0f, (float)(intByName % 2) * num2 * 2f - num2, 0f)) * vector4).normalized * floatByName; + bool flag13 = XSingleton.singleton.IsPointInMap(vector5); + if (flag13) + { + break; + } + } + } + vector = vector5; + } + bool flag14 = this._random_max > 0f; + if (flag14) + { + vector3.x = XSingleton.singleton.RandomFloat(-0.5f, 0.5f); + vector3.z = XSingleton.singleton.RandomFloat(-0.5f, 0.5f); + vector += this._random_max * vector3.normalized; + } + entity.AI.AIData.SetVector3ByName(this._final_dest_name, vector); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSetDest.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSetDest.cs.meta new file mode 100644 index 00000000..03f78e63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeSetDest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a927696a82d4f0240a5e7fe647bfb782 +timeCreated: 1611404297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs new file mode 100644 index 00000000..80f23ba2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AIRuntimeTryCastQTE : AIRunTimeNodeAction + { + public AIRuntimeTryCastQTE(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.CastQTESkill(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs.meta new file mode 100644 index 00000000..d7c331e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeTryCastQTE.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fbf1ddf79dd1da04682bbfda873d18d3 +timeCreated: 1611404933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs new file mode 100644 index 00000000..82a88382 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs @@ -0,0 +1,17 @@ +using System; +using System.Xml; + +namespace XMainClient +{ + internal class AIRuntimeXHashFunc : AIRunTimeNodeAction + { + public AIRuntimeXHashFunc(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs.meta b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs.meta new file mode 100644 index 00000000..00a8120b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AI/AIRuntimeXHashFunc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0a19ff24b36d5742b0516da58419293 +timeCreated: 1611404250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs b/Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs new file mode 100644 index 00000000..a2d8b74d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AbyssPartyBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/AbyssPartyBattleBegin"; + } + } + + private XAbyssPartyDocument doc = null; + + private IXUILabel m_Difficulty; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XAbyssPartyDocument.uuID); + this.m_Difficulty = (base.transform.Find("Bg/Difficulty/Title").GetComponent("XUILabel") as IXUILabel); + } + + protected override void OnShow() + { + base.OnShow(); + AbyssPartyListTable.RowData abyssPartyList = this.doc.GetAbyssPartyList(); + bool flag = abyssPartyList != null; + if (flag) + { + this.m_Difficulty.SetText(abyssPartyList.Name); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs.meta new file mode 100644 index 00000000..13c2d944 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AbyssPartyBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a915cdc00d785443bae3a314cb10173 +timeCreated: 1611403596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs new file mode 100644 index 00000000..78f9dd73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs @@ -0,0 +1,63 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AbyssPartyEntranceBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_Join; + + public IXUIButton m_Fall; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_Name; + + public IXUILabel m_CurPPT; + + public IXUILabel m_SugPPT; + + public IXUILabel m_SugLevel; + + public Transform m_CostItem; + + public XUIPool m_AbyssPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Join = (base.transform.Find("Bg/EnterBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Fall = (base.transform.Find("Bg/FallBtn").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Tab/TabTpl"); + this.m_TabPool.SetupPool(null, transform.gameObject, 3u, false); + this.m_Name = (base.transform.Find("Bg/DetailFrame/NestName").GetComponent("XUILabel") as IXUILabel); + this.m_CurPPT = (base.transform.Find("Bg/DetailFrame/CurPPT").GetComponent("XUILabel") as IXUILabel); + this.m_SugPPT = (base.transform.Find("Bg/DetailFrame/SugPPT").GetComponent("XUILabel") as IXUILabel); + this.m_SugLevel = (base.transform.Find("Bg/DetailFrame/SugLevel").GetComponent("XUILabel") as IXUILabel); + this.m_CostItem = base.transform.Find("Bg/Cost"); + Transform transform2 = base.transform.Find("Bg/LevelFrame"); + Transform transform3 = transform2.Find("AbyssTpl"); + this.m_AbyssPool.SetupPool(null, transform3.gameObject, AbyssPartyEntranceView.ABYSS_MAX, false); + this.m_AbyssPool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)AbyssPartyEntranceView.ABYSS_MAX)) + { + GameObject gameObject = this.m_AbyssPool.FetchGameObject(false); + Transform transform4 = transform2.Find(string.Format("Abyss{0}", num)); + XSingleton.singleton.AddChild(transform4.gameObject, gameObject); + gameObject.name = "item"; + num++; + } + this.m_AbyssPool.ActualReturnAll(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs.meta new file mode 100644 index 00000000..a15c6fb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7a1027566f8dcb48a00c25f8ecd962e +timeCreated: 1611404402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceView.cs b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceView.cs new file mode 100644 index 00000000..2da26401 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceView.cs @@ -0,0 +1,413 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AbyssPartyEntranceView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/AbyssPartyDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_AbyssParty); + } + } + + private XAbyssPartyDocument doc = null; + + public static readonly uint ABYSS_MAX = 6u; + + private ItemListHandler _itemListHandler; + + private int curCostNum = 0; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XAbyssPartyDocument.uuID); + this.doc.View = this; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_Join.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinClicked)); + base.uiBehaviour.m_Fall.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFallClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_AbyssParty); + return true; + } + + public bool OnJoinClicked(IXUIButton btn) + { + bool flag = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnJoinClicked), btn); + bool result; + if (flag) + { + result = true; + } + else + { + int[] titan = this.GetTitan(); + int num = 0; + ItemList.RowData rowData = null; + bool flag2 = titan != null && titan.Length != 0; + if (flag2) + { + num = (int)XSingleton.singleton.Doc.XBagDoc.GetItemCount(titan[0]); + rowData = XBagDocument.GetItemConf(titan[0]); + } + bool flag3 = num < this.curCostNum; + if (flag3) + { + int num2 = this.doc.CanUseCostMAXNum(); + bool flag4 = num2 < this.curCostNum; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_ITEM_NOT_ENOUGH"), "fece00"); + } + else + { + bool flag5 = !DlgBase.singleton.GetTempTip(XTempTipDefine.OD_ABYSS_PARTY_COST_REPLACE); + if (flag5) + { + bool flag6 = rowData == null; + if (flag6) + { + return true; + } + UiUtility singleton = XSingleton.singleton; + string @string = XSingleton.singleton.GetString("ABYSS_COST_NOT_ENOUGH"); + object[] itemName = rowData.ItemName; + singleton.ShowModalDialog(string.Format(@string, itemName), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Enter), null, false, XTempTipDefine.OD_ABYSS_PARTY_COST_REPLACE, 50); + } + else + { + this._Enter(null); + } + } + } + else + { + this._Enter(null); + } + result = true; + } + return result; + } + + private bool _Enter(IXUIButton btn) + { + this.doc.AbyssPartyEnter(this.doc.CurSelectedID); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool OnFallClicked(IXUIButton btn) + { + AbyssPartyTypeTable.RowData abyssPartyType = this.doc.GetAbyssPartyType(); + bool flag = abyssPartyType == null; + bool result; + if (flag) + { + result = true; + } + else + { + DlgHandlerBase.EnsureCreate(ref this._itemListHandler, base.uiBehaviour.transform, false, null); + PandoraDocument specificDocument = XDocuments.GetSpecificDocument(PandoraDocument.uuID); + specificDocument.GetShowItemList((uint)abyssPartyType.PandoraID); + this._itemListHandler.ShowItemList(PandoraDocument.ItemList); + result = true; + } + return result; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshPage(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._itemListHandler); + this.doc.View = null; + base.OnUnload(); + } + + public override int[] GetTitanBarItems() + { + return this.GetTitan(); + } + + public override void StackRefresh() + { + this.RefreshPage(); + } + + public void RefreshPage() + { + this.RefreshTab(); + this.RefreshLevelFrame(); + } + + public void RefreshTab() + { + base.uiBehaviour.m_TabPool.FakeReturnAll(); + for (int i = 0; i < XAbyssPartyDocument.GetAbyssPartyTypeCount(); i++) + { + AbyssPartyTypeTable.RowData abyssPartyTypeLine = XAbyssPartyDocument.GetAbyssPartyTypeLine(i); + bool flag = abyssPartyTypeLine == null; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_TabPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)i * base.uiBehaviour.m_TabPool.TplHeight), 0f) + base.uiBehaviour.m_TabPool.TplPos; + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = gameObject.transform.Find("Fx").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + Transform transform = gameObject.transform.Find("Lock"); + ixuisprite.ID = (ulong)((long)abyssPartyTypeLine.AbyssPartyId); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTabClicked)); + ixuilabel.SetText(abyssPartyTypeLine.Name); + ixuisprite2.SetVisible(this.doc.CurSelectedType == abyssPartyTypeLine.AbyssPartyId); + ixuisprite3.SetSprite(abyssPartyTypeLine.Icon); + transform.gameObject.SetActive((ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)abyssPartyTypeLine.OpenLevel)); + } + } + base.uiBehaviour.m_TabPool.ActualReturnAll(false); + this.RefreshDetailFrame(); + } + + public void RefreshDetailFrame() + { + AbyssPartyListTable.RowData abyssPartyList = this.doc.GetAbyssPartyList(); + bool flag = abyssPartyList != null; + if (flag) + { + base.uiBehaviour.m_SugPPT.SetText(abyssPartyList.SugPPT.ToString()); + } + AbyssPartyTypeTable.RowData abyssPartyType = this.doc.GetAbyssPartyType(); + bool flag2 = abyssPartyType != null; + if (flag2) + { + base.uiBehaviour.m_Name.SetText(abyssPartyType.Name); + base.uiBehaviour.m_SugLevel.SetText(abyssPartyType.SugLevel); + } + base.uiBehaviour.m_CurPPT.SetText(XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic).ToString("0")); + } + + public int[] GetTitan() + { + AbyssPartyTypeTable.RowData abyssPartyType = this.doc.GetAbyssPartyType(); + bool flag = abyssPartyType != null; + int[] result; + if (flag) + { + result = abyssPartyType.TitanItemID; + } + else + { + result = null; + } + return result; + } + + public void RefreshTitan() + { + DlgBase.singleton.SetTitanItems(this.GetTitan()); + } + + public void RefreshLevelFrame() + { + base.uiBehaviour.m_AbyssPool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)AbyssPartyEntranceView.ABYSS_MAX)) + { + GameObject gameObject = base.uiBehaviour.m_AbyssPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + Transform transform = gameObject.transform.Find("Select"); + Transform transform2 = gameObject.transform.Find("Lock"); + List list = XAbyssPartyDocument.RefreshAbyssPartyListList(this.doc.CurSelectedType); + bool flag = num < list.Count; + if (flag) + { + ixuilabel.SetText(list[num].Name); + ixuisprite2.SetSprite(list[num].Icon); + uint abyssIndex = this.doc.GetAbyssIndex(this.doc.CurSelectedType); + transform2.gameObject.SetActive((ulong)abyssIndex < (ulong)((long)list[num].Index)); + bool flag2 = this.doc.CurSelectedID == list[num].ID; + if (flag2) + { + transform.gameObject.SetActive(true); + base.uiBehaviour.m_SugPPT.SetText(list[num].SugPPT.ToString()); + } + else + { + transform.gameObject.SetActive(false); + } + ixuisprite.ID = (ulong)((long)list[num].ID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAbyssClicked)); + } + num++; + } + base.uiBehaviour.m_AbyssPool.ActualReturnAll(true); + this.RefreshCost(); + } + + public void RefreshCost() + { + AbyssPartyListTable.RowData abyssPartyList = this.doc.GetAbyssPartyList(); + bool flag = abyssPartyList != null; + if (flag) + { + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_CostItem.gameObject, abyssPartyList.Cost[0], abyssPartyList.Cost[1], true); + IXUISprite ixuisprite = base.uiBehaviour.m_CostItem.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)abyssPartyList.Cost[0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + this.curCostNum = abyssPartyList.Cost[1]; + } + } + + private void SelectedIndex(int index) + { + } + + private void OnTabClicked(IXUISprite iSp) + { + AbyssPartyTypeTable.RowData abyssPartyType = XAbyssPartyDocument.GetAbyssPartyType((int)iSp.ID); + bool flag = abyssPartyType == null; + if (!flag) + { + bool flag2 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)abyssPartyType.OpenLevel); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByLevel", new object[] + { + abyssPartyType.OpenLevel, + abyssPartyType.Name + }), "fece00"); + } + else + { + bool flag3 = (long)this.doc.CurSelectedType == (long)((ulong)((uint)iSp.ID)); + if (!flag3) + { + bool flag4 = this.doc.SetSelectedType((int)iSp.ID); + if (flag4) + { + this.RefreshPage(); + this.RefreshTitan(); + } + } + } + } + } + + private void OnAbyssClicked(IXUISprite iSp) + { + AbyssPartyListTable.RowData abyssPartyList = XAbyssPartyDocument.GetAbyssPartyList((int)iSp.ID); + uint abyssIndex = this.doc.GetAbyssIndex(this.doc.CurSelectedType); + bool flag = (ulong)abyssIndex < (ulong)((long)abyssPartyList.Index); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByPreDiff"), "fece00"); + } + else + { + bool flag2 = (long)this.doc.CurSelectedID == (long)((ulong)((uint)iSp.ID)); + if (!flag2) + { + bool flag3 = this.doc.SetSelectedID((int)iSp.ID); + if (flag3) + { + this.RefreshLevelFrame(); + } + } + } + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceView.cs.meta b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceView.cs.meta new file mode 100644 index 00000000..af8a4ba7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AbyssPartyEntranceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e44b9c7bb94cee947be1dec6ad79dfd2 +timeCreated: 1611404737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AchieveItemInfo.cs b/Client/Assets/Scripts/XMainClient/AchieveItemInfo.cs new file mode 100644 index 00000000..58e02b81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AchieveItemInfo.cs @@ -0,0 +1,12 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class AchieveItemInfo + { + public AchievementV2Table.RowData row; + + public AchieveState state; + } +} diff --git a/Client/Assets/Scripts/XMainClient/AchieveItemInfo.cs.meta b/Client/Assets/Scripts/XMainClient/AchieveItemInfo.cs.meta new file mode 100644 index 00000000..b7a2267c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AchieveItemInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d42c8a0c78eb6314b94b9ca177fa495f +timeCreated: 1611404601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AchieveState.cs b/Client/Assets/Scripts/XMainClient/AchieveState.cs new file mode 100644 index 00000000..848e5ac3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AchieveState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum AchieveState + { + Claim, + Normal, + Claimed + } +} diff --git a/Client/Assets/Scripts/XMainClient/AchieveState.cs.meta b/Client/Assets/Scripts/XMainClient/AchieveState.cs.meta new file mode 100644 index 00000000..b87ed85d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AchieveState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 667708930afc77c4a87a7b877a8ba697 +timeCreated: 1611403854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AchieveType.cs b/Client/Assets/Scripts/XMainClient/AchieveType.cs new file mode 100644 index 00000000..77a547cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AchieveType.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public enum AchieveType + { + General = 1, + Instance, + Nest, + Fight, + Activity + } +} diff --git a/Client/Assets/Scripts/XMainClient/AchieveType.cs.meta b/Client/Assets/Scripts/XMainClient/AchieveType.cs.meta new file mode 100644 index 00000000..41e5de27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AchieveType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dee7a7d7718d4644090046fcc156e329 +timeCreated: 1611404688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AchivementState.cs b/Client/Assets/Scripts/XMainClient/AchivementState.cs new file mode 100644 index 00000000..16905239 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AchivementState.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum AchivementState + { + Exceed, + Fetched, + Not_Achive, + Achive_NoFetch + } +} diff --git a/Client/Assets/Scripts/XMainClient/AchivementState.cs.meta b/Client/Assets/Scripts/XMainClient/AchivementState.cs.meta new file mode 100644 index 00000000..162a2824 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AchivementState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de49134fabd3b8e47a82e907fa3e779f +timeCreated: 1611404685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActionType.cs b/Client/Assets/Scripts/XMainClient/ActionType.cs new file mode 100644 index 00000000..c850f342 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActionType.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum ActionType + { + None, + Harvest, + Plant, + Disinsection, + Watering, + Fertilizer, + DriveTroubleMaker + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActionType.cs.meta b/Client/Assets/Scripts/XMainClient/ActionType.cs.meta new file mode 100644 index 00000000..5d5e6bd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActionType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7174a26473ee1c64eb8fadec7337a0e1 +timeCreated: 1611403934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityExchangeRewardHandler.cs b/Client/Assets/Scripts/XMainClient/ActivityExchangeRewardHandler.cs new file mode 100644 index 00000000..eeac9544 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityExchangeRewardHandler.cs @@ -0,0 +1,209 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ActivityExchangeRewardHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/ThemeActivity/ActivityExchangeReward"; + } + } + + private List m_Data; + + private List m_FatherDataList; + + private uint m_actid; + + public static readonly uint COST_SHOW_NUM = 3u; + + public static readonly uint REWARD_SHOW_NUM = 3u; + + private IXUIButton m_Close; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ListScrollView; + + private XUIPool m_CostItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + Transform transform = base.transform; + this.m_Close = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_WrapContent = (base.transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ListScrollView = (base.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform2 = transform.Find("Panel/WrapContent/RewardTpl/CostItemTpl"); + this.m_CostItemPool.SetupPool(null, transform2.gameObject, ActivityExchangeRewardHandler.COST_SHOW_NUM, false); + Transform transform3 = transform.Find("Panel/WrapContent/RewardTpl/RewardItemTpl"); + this.m_RewardItemPool.SetupPool(null, transform3.gameObject, ActivityExchangeRewardHandler.REWARD_SHOW_NUM, false); + int num = 0; + while ((long)num < (long)((ulong)ActivityExchangeRewardHandler.COST_SHOW_NUM)) + { + GameObject gameObject = this.m_CostItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(num * this.m_CostItemPool.TplWidth), 0f, 0f) + this.m_CostItemPool.TplPos; + gameObject.name = string.Format("CostItem{0}", num); + num++; + } + int num2 = 0; + while ((long)num2 < (long)((ulong)ActivityExchangeRewardHandler.REWARD_SHOW_NUM)) + { + GameObject gameObject2 = this.m_RewardItemPool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3((float)(num2 * this.m_RewardItemPool.TplWidth), 0f, 0f) + this.m_RewardItemPool.TplPos; + gameObject2.name = string.Format("RewardItem{0}", num2); + num2++; + } + this.InitShow(); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnListItemUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void InitShow() + { + } + + public void SetActID(uint actid) + { + this.m_actid = actid; + } + + public void SetData(List data) + { + this.m_Data = data; + this.m_FatherDataList = XTempActivityDocument.Doc.GetFatherTask(this.m_Data); + this.RefreshList(true); + } + + public void RefreshList(bool bResetPosition = true) + { + int count = this.m_FatherDataList.Count; + this.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + this.m_ListScrollView.ResetPosition(); + } + else + { + this.m_WrapContent.RefreshAllVisibleContents(); + } + } + + private void _OnListItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this.m_FatherDataList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("index:" + index, null, null, null, null, null); + } + else + { + SuperActivityTask.RowData rowData = this.m_FatherDataList[index]; + List sonTask = XTempActivityDocument.Doc.GetSonTask(this.m_Data, rowData); + uint activityState = XTempActivityDocument.Doc.GetActivityState(this.m_actid, rowData.taskid); + uint activityProgress = XTempActivityDocument.Doc.GetActivityProgress(this.m_actid, rowData.taskid); + IXUIButton ixuibutton = t.Find("NoCompleteBtn").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("ExchangeBtn").GetComponent("XUIButton") as IXUIButton; + Transform transform = t.Find("End"); + ixuibutton.SetEnable(false, false); + ixuibutton.gameObject.SetActive(activityState == 0u); + ixuibutton2.gameObject.SetActive(activityState == 1u); + transform.gameObject.SetActive(activityState == 2u); + ixuibutton2.ID = (ulong)((long)index); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetRewardClick)); + IXUILabel ixuilabel = t.Find("Progress").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0}/{1}", activityProgress, rowData.cnt)); + int num = 0; + while ((long)num < (long)((ulong)ActivityExchangeRewardHandler.COST_SHOW_NUM)) + { + Transform transform2 = t.Find(string.Format("CostItem{0}", num)); + bool flag2 = num < sonTask.Count; + if (flag2) + { + transform2.gameObject.SetActive(true); + bool flag3 = sonTask[num].num.Length < 2; + if (!flag3) + { + int num2 = (int)sonTask[num].num[0]; + int num3 = Math.Min((int)(activityProgress + 1u), sonTask[num].num.Length - 1); + int num4 = (int)sonTask[num].num[num3]; + ulong itemCount = XBagDocument.BagDoc.GetItemCount(num2); + ItemList.RowData itemConf = XBagDocument.GetItemConf(num2); + XItemDrawerMgr.Param.MaxItemCount = num4; + XItemDrawerMgr.Param.NumColor = new Color?((itemCount >= (ulong)((long)num4)) ? Color.white : new Color(0.9647059f, 0.152941182f, 0.0470588244f)); + XSingleton.singleton.normalItemDrawer.DrawItem(transform2.gameObject, itemConf, (int)itemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(transform2.gameObject, num2); + } + } + else + { + transform2.gameObject.SetActive(false); + } + IL_2AE: + num++; + continue; + goto IL_2AE; + } + int num5 = 0; + while ((long)num5 < (long)((ulong)ActivityExchangeRewardHandler.REWARD_SHOW_NUM)) + { + Transform transform3 = t.Find(string.Format("RewardItem{0}", num5)); + bool flag4 = num5 < rowData.items.Count; + if (flag4) + { + transform3.gameObject.SetActive(true); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf((int)rowData.items[num5, 0]); + XSingleton.singleton.normalItemDrawer.DrawItem(transform3.gameObject, itemConf2, (int)rowData.items[num5, 1], false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(transform3.gameObject, (int)rowData.items[num5, 0]); + } + else + { + transform3.gameObject.SetActive(false); + } + num5++; + } + } + } + + private bool OnGetRewardClick(IXUIButton btn) + { + int index = (int)btn.ID; + XTempActivityDocument.Doc.GetActivityAwards(this.m_actid, this.m_FatherDataList[index].taskid); + return true; + } + + private bool OnCloseClick(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityExchangeRewardHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityExchangeRewardHandler.cs.meta new file mode 100644 index 00000000..3533c27d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityExchangeRewardHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fb3b9852b4da9e4db8b379627b19ade +timeCreated: 1611403211 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityExpeditionHandler.cs b/Client/Assets/Scripts/XMainClient/ActivityExpeditionHandler.cs new file mode 100644 index 00000000..6fc49249 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityExpeditionHandler.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ActivityExpeditionHandler : DlgHandlerBase + { + public XUIPool m_ExpediPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XExpeditionDocument _doc; + + private XTeamDocument _TeamDoc; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("Panel/ExpediTpl"); + this.m_ExpediPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this._doc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this._doc.ExpeditionView = this; + this._TeamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowExpediFrame(); + } + + protected override void OnHide() + { + this.m_ExpediPool.ReturnAll(false); + base.OnHide(); + } + + public override void OnUnload() + { + this._doc.ExpeditionView = null; + base.OnUnload(); + } + + public void ShowExpediFrame() + { + this.m_ExpediPool.ReturnAll(false); + Vector3 localPosition = this.m_ExpediPool._tpl.transform.localPosition; + float num = (float)this.m_ExpediPool.TplWidth; + List expeditionList = this._doc.GetExpeditionList(TeamLevelType.TeamLevelExpdition); + XPlayer player = XSingleton.singleton.Player; + uint level = player.Attributes.Level; + int num2 = 0; + foreach (ExpeditionTable.RowData rowData in expeditionList) + { + GameObject gameObject = this.m_ExpediPool.FetchGameObject(false); + gameObject.transform.localPosition = localPosition + new Vector3(num * (float)num2++, 0f, 0f); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUITexture ixuitexture = gameObject.transform.Find("ExpediBg").GetComponent("XUITexture") as IXUITexture; + IXUIButton ixuibutton = gameObject.transform.Find("Do").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel2 = ixuibutton.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuibutton.ID = (ulong)((long)rowData.DNExpeditionID); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = ixuibutton.ID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnExpediBgClicked)); + ixuilabel.SetText(rowData.DNExpeditionName); + bool flag = rowData.ViewableDropList != null; + if (flag) + { + for (int i = 0; i < 2; i++) + { + GameObject gameObject2 = gameObject.transform.Find("Item" + (i + 1)).gameObject; + bool flag2 = i >= rowData.ViewableDropList.Length; + if (flag2) + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, 0, 0, false); + } + else + { + IXUISprite ixuisprite2 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)rowData.ViewableDropList[i]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)ixuisprite2.ID, 0, false); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDoClicked)); + bool flag3 = this._TeamDoc.MyTeam != null && (ulong)this._TeamDoc.MyTeam.teamBrief.dungeonID == (ulong)((long)rowData.DNExpeditionID); + if (flag3) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("TEAM_LEAVE")); + } + else + { + ixuilabel2.SetText(XStringDefineProxy.GetString("TEAM_ENTER")); + } + bool flag4 = (ulong)level >= (ulong)((long)rowData.RequiredLevel); + if (flag4) + { + ixuibutton.SetEnable(true, false); + } + else + { + ixuibutton.SetEnable(false, false); + ixuilabel2.SetText(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + rowData.RequiredLevel + })); + } + } + } + + protected void OnExpediBgClicked(IXUISprite sp) + { + this.ShowTeamView((uint)sp.ID); + } + + protected bool OnDoClicked(IXUIButton btn) + { + bool flag = this._TeamDoc.MyTeam != null && (ulong)this._TeamDoc.MyTeam.teamBrief.dungeonID == btn.ID; + bool result; + if (flag) + { + this._TeamDoc.ReqTeamOp(TeamOperate.TEAM_LEAVE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + result = true; + } + else + { + this.ShowTeamView((uint)btn.ID); + result = true; + } + return result; + } + + protected void ShowTeamView(uint id) + { + this._TeamDoc.TryChangeToExpID((int)id); + DlgBase.singleton.ShowTeamView(); + } + + public static int GetDayLeftCount() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + return specificDocument.GetDayCount(TeamLevelType.TeamLevelExpdition, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityExpeditionHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityExpeditionHandler.cs.meta new file mode 100644 index 00000000..398d4397 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityExpeditionHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d01c3a8919400043aac73fdb348ad2d +timeCreated: 1611403603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs b/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs new file mode 100644 index 00000000..81d24535 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs @@ -0,0 +1,33 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class ActivityHelpReward + { + public int index; + + public SuperActivityTask.RowData tableData; + + public uint state; + + public int sort; + + public uint progress; + + public static int Compare(ActivityHelpReward x, ActivityHelpReward y) + { + bool flag = x.sort != y.sort; + int result; + if (flag) + { + result = y.sort - x.sort; + } + else + { + result = x.index - y.index; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs.meta new file mode 100644 index 00000000..e18cb6ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityHelpReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04eec308f095fe44b834f6ed03899c78 +timeCreated: 1611402962 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityHelpRewardHandler.cs b/Client/Assets/Scripts/XMainClient/ActivityHelpRewardHandler.cs new file mode 100644 index 00000000..6af5c335 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityHelpRewardHandler.cs @@ -0,0 +1,180 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ActivityHelpRewardHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/ThemeActivity/ActivityHelpReward"; + } + } + + private List m_RewardData; + + public static readonly uint REWARD_SHOW_NUM = 3u; + + private IXUILabel m_Time; + + private IXUIButton m_Close; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ListScrollView; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + Transform transform = base.transform; + this.m_Time = (transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_Close = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_WrapContent = (base.transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ListScrollView = (base.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform2 = transform.Find("Panel/WrapContent/RewardTpl/ItemTpl"); + this.m_ItemPool.SetupPool(null, transform2.gameObject, ActivityHelpRewardHandler.REWARD_SHOW_NUM, false); + int num = 0; + while ((long)num < (long)((ulong)ActivityHelpRewardHandler.REWARD_SHOW_NUM)) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(num * this.m_ItemPool.TplWidth), 0f, 0f) + this.m_ItemPool.TplPos; + gameObject.name = string.Format("item{0}", num); + num++; + } + this.InitShow(); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnListItemUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void InitShow() + { + } + + public void SetData(List RewardData) + { + this.m_RewardData = RewardData; + this.RefreshList(true); + } + + public void RefreshList(bool bResetPosition = true) + { + this.m_RewardData.Sort(new Comparison(ActivityHelpReward.Compare)); + int count = this.m_RewardData.Count; + this.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + this.m_ListScrollView.ResetPosition(); + } + else + { + this.m_WrapContent.RefreshAllVisibleContents(); + } + } + + private void _OnListItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this.m_RewardData.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("index:" + index, null, null, null, null, null); + } + else + { + SuperActivityTask.RowData tableData = this.m_RewardData[index].tableData; + string[] array = tableData.title.Split(new char[] + { + '|' + }); + IXUILabel ixuilabel = t.Find("Title").GetComponent("XUILabel") as IXUILabel; + bool flag2 = array.Length != 0; + if (flag2) + { + ixuilabel.SetText(array[0]); + } + IXUILabel ixuilabel2 = t.Find("Desc").GetComponent("XUILabel") as IXUILabel; + string arg = this.m_RewardData[index].tableData.cnt.ToString(); + bool flag3 = this.m_RewardData[index].state == 0u; + if (flag3) + { + arg = string.Format("({0}/{1})", this.m_RewardData[index].progress, this.m_RewardData[index].tableData.cnt); + } + bool flag4 = array.Length > 1; + if (flag4) + { + ixuilabel2.SetText(string.Format(array[1], arg)); + } + IXUIButton ixuibutton = t.Find("Receive").GetComponent("XUIButton") as IXUIButton; + Transform transform = t.Find("End"); + ixuibutton.SetEnable(this.m_RewardData[index].state == 1u, false); + ixuibutton.gameObject.SetActive(this.m_RewardData[index].state != 2u); + transform.gameObject.SetActive(this.m_RewardData[index].state == 2u); + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetRewardClick)); + int num = 0; + while ((long)num < (long)((ulong)ActivityHelpRewardHandler.REWARD_SHOW_NUM)) + { + Transform transform2 = t.Find(string.Format("item{0}", num)); + bool flag5 = num < this.m_RewardData[index].tableData.items.Count; + if (flag5) + { + transform2.gameObject.SetActive(true); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.m_RewardData[index].tableData.items[num, 0]); + XSingleton.singleton.normalItemDrawer.DrawItem(transform2.gameObject, itemConf, (int)this.m_RewardData[index].tableData.items[num, 1], false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(transform2.gameObject, (int)this.m_RewardData[index].tableData.items[num, 0]); + } + else + { + transform2.gameObject.SetActive(false); + } + num++; + } + } + } + + private bool OnGetRewardClick(IXUIButton btn) + { + int index = (int)btn.ID; + XTempActivityDocument.Doc.GetActivityAwards(this.m_RewardData[index].tableData.actid, this.m_RewardData[index].tableData.taskid); + return true; + } + + private bool OnCloseClick(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + public void SetEndTime(uint actID) + { + DateTime endTime = XTempActivityDocument.Doc.GetEndTime(actID); + string arg = string.Format(XStringDefineProxy.GetString("CAREER_GROWTH_PROCESS_TIME"), endTime.Year, endTime.Month, endTime.Day); + this.m_Time.SetText(string.Format("{0} {1}:00", arg, endTime.Hour)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityHelpRewardHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityHelpRewardHandler.cs.meta new file mode 100644 index 00000000..7702b6b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityHelpRewardHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 926a140dc606cf54ea9185f142153856 +timeCreated: 1611404147 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityInviteTarget.cs b/Client/Assets/Scripts/XMainClient/ActivityInviteTarget.cs new file mode 100644 index 00000000..fa32f19e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityInviteTarget.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum ActivityInviteTarget + { + Friend = 2, + Guild = 4 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityInviteTarget.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityInviteTarget.cs.meta new file mode 100644 index 00000000..f616cba0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityInviteTarget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07bfda557cbd1e84abf956b3646ca525 +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityNestHandler.cs b/Client/Assets/Scripts/XMainClient/ActivityNestHandler.cs new file mode 100644 index 00000000..bdd8640f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityNestHandler.cs @@ -0,0 +1,183 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ActivityNestHandler : DlgHandlerBase + { + private XExpeditionDocument _doc; + + public XUIPool m_nestPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel _value; + + public XNumberTween m_ValueTween; + + public IXUIButton m_addFatigue; + + public IXUILabel m_lbMyPPT; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("Panel/NestTpl"); + this.m_nestPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this._value = (base.PanelObject.transform.Find("Fatigue/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ValueTween = XNumberTween.Create(this._value); + this.m_addFatigue = (base.PanelObject.transform.Find("Fatigue").GetComponent("XUIButton") as IXUIButton); + this.m_lbMyPPT = (base.PanelObject.transform.Find("MyPPT").GetComponent("XUILabel") as IXUILabel); + this._doc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this._doc.NestView = this; + } + + public override void OnUnload() + { + this._doc.NestView = null; + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_addFatigue.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddFatigueClick)); + } + + public bool OnAddFatigueClick(IXUIButton sp) + { + DlgBase.singleton.ActiveShow(TeamLevelType.TeamLevelNest); + return true; + } + + protected override void OnShow() + { + this.ShowNestFrame(); + } + + protected override void OnHide() + { + this.m_nestPool.ReturnAll(false); + base.OnHide(); + } + + public void SetSpirit(int cur, int total) + { + this.m_ValueTween.SetNumberWithTween((ulong)((long)cur), "/" + total, false, true); + } + + public void RefreshSpirit() + { + int dayCount = this._doc.GetDayCount(TeamLevelType.TeamLevelNest, null); + int dayMaxCount = this._doc.GetDayMaxCount(TeamLevelType.TeamLevelNest, null); + this.SetSpirit(dayCount, dayMaxCount); + } + + protected void ShowNestFrame() + { + base.PanelObject.SetActive(true); + this.m_nestPool.ReturnAll(false); + this.RefreshSpirit(); + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + int playerPPT = specificDocument.GetPlayerPPT(); + this.m_lbMyPPT.SetText(playerPPT.ToString()); + Vector3 localPosition = this.m_nestPool._tpl.transform.localPosition; + float num = (float)this.m_nestPool.TplWidth; + List list = ListPool.Get(); + XSingleton.singleton.GetChapterList(XChapterType.SCENE_NEST, list); + List expeditionList = this._doc.GetExpeditionList(TeamLevelType.TeamLevelNest); + XPlayer player = XSingleton.singleton.Player; + uint level = player.Attributes.Level; + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + for (int i = 0; i < expeditionList.Count; i++) + { + GameObject gameObject = this.m_nestPool.FetchGameObject(false); + gameObject.name = "nest" + i; + gameObject.transform.localPosition = localPosition + new Vector3(num * (float)i, 0f); + IXUILabel ixuilabel = gameObject.transform.Find("NestName").GetComponent("XUILabel") as IXUILabel; + IXUITexture ixuitexture = gameObject.transform.Find("NestBg").GetComponent("XUITexture") as IXUITexture; + IXUIButton ixuibutton = gameObject.transform.Find("Do").GetComponent("XUIButton") as IXUIButton; + IXUILabelSymbol ixuilabelSymbol = ixuibutton.gameObject.transform.Find("Text").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel2 = gameObject.transform.Find("PPT").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Diff").GetComponent("XUILabel") as IXUILabel; + ixuibutton.ID = (ulong)((long)expeditionList[i].DNExpeditionID); + Transform transform = gameObject.transform.Find("NotOpen"); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)expeditionList[i].DNExpeditionID); + uint sceneIDByExpID = specificDocument2.GetSceneIDByExpID(expeditionList[i].DNExpeditionID); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneIDByExpID); + bool flag = sceneData != null && sceneData.FatigueCost.Count > 0; + string str; + if (flag) + { + str = XLabelSymbolHelper.FormatCostWithIcon(sceneData.FatigueCost[0, 1], ItemEnum.FATIGUE); + } + else + { + str = string.Empty; + } + transform.gameObject.SetActive(false); + XChapter.RowData chapter = XSingleton.singleton.GetChapter(list[i]); + ixuilabel.SetText(expeditionList[i].DNExpeditionName); + ixuilabel2.SetText(sceneData.RecommendPower.ToString()); + ixuilabel3.SetText(XLevelDocument.GetDifficulty(playerPPT, sceneData.RecommendPower)); + ixuitexture.SetTexturePath("atlas/UI/GameSystem/Activity/" + chapter.Pic); + for (int j = 0; j < 2; j++) + { + GameObject gameObject2 = gameObject.transform.Find("Item" + (j + 1)).gameObject; + bool flag2 = j >= expeditionList[i].ViewableDropList.Length; + if (flag2) + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, 0, 0, false); + } + else + { + IXUISprite ixuisprite2 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)expeditionList[i].ViewableDropList[j]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)ixuisprite2.ID, 0, false); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnNestClicked)); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnNestClicked)); + bool flag3 = (ulong)level >= (ulong)((long)expeditionList[i].RequiredLevel); + if (flag3) + { + ixuibutton.SetEnable(true, false); + ixuilabelSymbol.InputText = str + " " + XStringDefineProxy.GetString("TEAM_ENTER"); + } + else + { + ixuibutton.SetEnable(false, false); + ixuilabelSymbol.InputText = XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + expeditionList[i].RequiredLevel + }); + } + } + ListPool.Release(list); + } + + protected void OnNestClicked(IXUISprite sp) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch((int)sp.ID); + } + + protected bool OnNestClicked(IXUIButton button) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch((int)button.ID); + return true; + } + + public static int GetDayLeftCount() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + return specificDocument.GetDayCount(TeamLevelType.TeamLevelNest, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityNestHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityNestHandler.cs.meta new file mode 100644 index 00000000..7d55d945 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityNestHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2a9f55c70becfc4eaee12d876615e19 +timeCreated: 1611404596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityTaskState.cs b/Client/Assets/Scripts/XMainClient/ActivityTaskState.cs new file mode 100644 index 00000000..76ee49f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityTaskState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum ActivityTaskState + { + Uncomplete, + Complete, + Fetched + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityTaskState.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityTaskState.cs.meta new file mode 100644 index 00000000..f41df29c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityTaskState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1970a1f023309a4ba81330ca9edd366 +timeCreated: 1611404490 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityType.cs b/Client/Assets/Scripts/XMainClient/ActivityType.cs new file mode 100644 index 00000000..0a16d020 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityType.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + public enum ActivityType + { + None, + Cannival, + BackFlow = 5, + ArgentaTask = 7, + BigPrize = 11, + CrushingSealBase = 200 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityType.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityType.cs.meta new file mode 100644 index 00000000..a5d539c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 11fb1b13dfca0b540951b4a91215eb4b +timeCreated: 1611403240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs b/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs new file mode 100644 index 00000000..e5657880 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs @@ -0,0 +1,52 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ActivityWeekendPartyBehaviour : DlgBehaviourBase + { + public IXUILabel m_CurrActName; + + public IXUILabel m_Rule; + + public IXUILabel m_Times; + + public IXUIButton m_SingleMatch; + + public IXUIButton m_TeamMatch; + + public IXUIButton m_Close; + + public IXUILabel m_SingleMatchLabel; + + public IXUIButton m_Help; + + public IXUITexture m_Bg; + + public IXUILabel m_TimeTip; + + public IXUIList m_DropAward; + + public XUIPool m_DropAwardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Rule = (base.transform.Find("Bg/Left/GameRule").GetComponent("XUILabel") as IXUILabel); + this.m_CurrActName = (base.transform.Find("Bg/Left/CurrName").GetComponent("XUILabel") as IXUILabel); + this.m_Times = (base.transform.Find("Bg/Right/Times").GetComponent("XUILabel") as IXUILabel); + this.m_TimeTip = (base.transform.Find("Bg/Right/Times/time").GetComponent("XUILabel") as IXUILabel); + this.m_SingleMatch = (base.transform.Find("Bg/Right/BtnStartSingle").GetComponent("XUIButton") as IXUIButton); + this.m_TeamMatch = (base.transform.Find("Bg/Right/BtnStartTeam").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_SingleMatchLabel = (this.m_SingleMatch.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Bg = (base.transform.Find("Bg/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_DropAward = (base.transform.Find("Bg/WeekReward/ListPanel/Grid").GetComponent("XUIList") as IXUIList); + Transform transform = this.m_DropAward.gameObject.transform.Find("ItemTpl"); + this.m_DropAwardPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 4u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs.meta new file mode 100644 index 00000000..bd2d6a99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityWeekendPartyBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3befe03980f5b5e41ad4bcf090c102a8 +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ActivityWorldBossHandler.cs b/Client/Assets/Scripts/XMainClient/ActivityWorldBossHandler.cs new file mode 100644 index 00000000..cced5936 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityWorldBossHandler.cs @@ -0,0 +1,166 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ActivityWorldBossHandler : DlgHandlerBase + { + private XWorldBossDocument _doc; + + private IXUIButton _GoBattle; + + private IXUIButton _DamageRank; + + private GameObject m_DamageRankPanel; + + private IXUILabel _LeftTime; + + private IXUILabel _StartTime; + + public static readonly int REWARD_COUNT = 3; + + private XElapseTimer _fLeftTime = new XElapseTimer(); + + private XWorldBossDamageRankHandler _DamageRankHandler; + + private IXUITweenTool _DamageRankTween; + + protected override void Init() + { + base.Init(); + this._GoBattle = (base.PanelObject.transform.Find("GoBattle").GetComponent("XUIButton") as IXUIButton); + this._DamageRank = (base.PanelObject.transform.Find("DamageRank").GetComponent("XUIButton") as IXUIButton); + this.m_DamageRankPanel = base.PanelObject.transform.Find("DamageRankPanel").gameObject; + this._LeftTime = (base.PanelObject.transform.Find("LeftTime/Value").GetComponent("XUILabel") as IXUILabel); + this._StartTime = (base.PanelObject.transform.Find("StartTime/Value").GetComponent("XUILabel") as IXUILabel); + this._DamageRankTween = (this.m_DamageRankPanel.GetComponent("XUIPlayTween") as IXUITweenTool); + this._doc = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + this._doc.ActivityWorldBossView = this; + DlgHandlerBase.EnsureCreate(ref this._DamageRankHandler, this.m_DamageRankPanel, null, true); + List list = new List(); + list.Add(RankeType.WorldBossDamageRank); + this._DamageRankHandler.SetupRanks(list, false); + this._DamageRankHandler.RankSource = this._doc; + this._doc.RankHandler = this._DamageRankHandler; + string[] array = XSingleton.singleton.GetValue("WorldBossEnterTime").Split(XGlobalConfig.ListSeparator); + bool flag = array.Length != 4; + if (flag) + { + this._StartTime.SetText(""); + } + else + { + this._StartTime.SetText(string.Format("{0:D2}:{1:D2} ~ {2:D2}:{3:D2}", new object[] + { + uint.Parse(array[0]), + uint.Parse(array[1]), + uint.Parse(array[2]), + uint.Parse(array[3]) + })); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._GoBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleClicked)); + this._DamageRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDamageRankClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowDropList(); + this._LeftTime.SetVisible(false); + this._doc.ReqWorldBossState(); + this.m_DamageRankPanel.SetActive(false); + } + + public override void OnUnload() + { + this._doc.ActivityWorldBossView = null; + this._DamageRankHandler.RankSource = null; + this._doc.RankHandler = null; + DlgHandlerBase.EnsureUnload(ref this._DamageRankHandler); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._fLeftTime.Update(); + this._RefreshTime(); + } + + private void _RefreshTime() + { + uint totalSecond = (uint)this._fLeftTime.LeftTime; + this._LeftTime.SetText(XSingleton.singleton.TimeFormatString((int)totalSecond, 3, 3, 4, false, true)); + } + + public void ShowDropList() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._doc.GetWorldBossSceneID()); + bool flag = sceneData.ViewableDropList != null; + if (flag) + { + int num = Math.Min(sceneData.ViewableDropList.Length, ActivityWorldBossHandler.REWARD_COUNT); + int i; + for (i = 0; i < num; i++) + { + GameObject gameObject = base.PanelObject.transform.Find("DropFrame/Item" + i).gameObject; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, sceneData.ViewableDropList[i], 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)sceneData.ViewableDropList[i]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + while (i < ActivityWorldBossHandler.REWARD_COUNT) + { + GameObject gameObject2 = base.PanelObject.transform.Find("DropFrame/Item" + i).gameObject; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, 0, 0, false); + i++; + } + } + } + + public void SetLeftTime(float time) + { + this._fLeftTime.LeftTime = time; + this._LeftTime.SetVisible(true); + this._RefreshTime(); + } + + protected bool OnBattleClicked(IXUIButton go) + { + bool flag = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnBattleClicked), go); + bool result; + if (flag) + { + result = true; + } + else + { + this._doc.ReqEnterWorldBossScene(); + result = true; + } + return result; + } + + protected bool OnDamageRankClicked(IXUIButton go) + { + this._DamageRankHandler.SetVisible(true); + this._DamageRankTween.PlayTween(true, -1f); + return true; + } + + protected bool OnHeroPalaceClicked(IXUIButton go) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ActivityWorldBossHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ActivityWorldBossHandler.cs.meta new file mode 100644 index 00000000..7b2463cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ActivityWorldBossHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25b216ea27700a443a1741403988cd9c +timeCreated: 1611403465 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AdditionRemindDocument.cs b/Client/Assets/Scripts/XMainClient/AdditionRemindDocument.cs new file mode 100644 index 00000000..ddf7b4b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AdditionRemindDocument.cs @@ -0,0 +1,204 @@ +using System; +using System.Collections.Generic; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AdditionRemindDocument : XDocComponent + { + public override uint ID + { + get + { + return AdditionRemindDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("AdditionRemindDocument"); + + private bool is3G = false; + + private static bool is_3g_tip = false; + + private string cacheString = null; + + private int uploadtime = 0; + + public uint loginday = 10u; + + public bool gm_is_3g = false; + + public int FREQUENCY = 0; + + public int LOGINTIME = 0; + + private float lasttime = 10f; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.is3G = ((int)Application.internetReachability == 1); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = Time.time - this.lasttime > 5f; + if (flag) + { + this.Free3GTimer(); + this.lasttime = Time.time; + } + } + + public void OnRecieveAdditionTip(string msg) + { + this.cacheString = msg; + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.ShowAddtionUI(); + } + } + + public void Free3GTimer() + { + bool flag = this.LOGINTIME <= 0; + if (flag) + { + this.LOGINTIME = XSingleton.singleton.GetInt("Free3GTime"); + } + bool flag2 = this.FREQUENCY <= 0; + if (flag2) + { + this.FREQUENCY = XSingleton.singleton.GetInt("Free3GDay"); + } + bool flag3 = Time.time > (float)this.LOGINTIME && (this.is3G || this.gm_is_3g) && !AdditionRemindDocument.is_3g_tip && (ulong)this.loginday >= (ulong)((long)this.FREQUENCY) && !XSingleton.singleton.freeflow && !DlgBase.singleton.IsVisible() && !XSingleton.singleton.InTutorial && DlgBase.singleton.IsVisible(); + if (flag3) + { + this.UpdateFreeState(); + AdditionRemindDocument.is_3g_tip = true; + string @string = XStringDefineProxy.GetString("REM_3G"); + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString("REM_BUY"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.Show3GFreeUI)); + } + } + + public void SetFreeflowTime(uint time) + { + this.loginday = ((uint)(DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0)).TotalSeconds - time) / 3600u; + } + + private void UpdateFreeState() + { + PtcC2G_UpdateFreeflowHintInfo ptcC2G_UpdateFreeflowHintInfo = new PtcC2G_UpdateFreeflowHintInfo(); + TimeSpan timeSpan = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0); + ptcC2G_UpdateFreeflowHintInfo.Data.hint_time = (uint)timeSpan.TotalSeconds; + XSingleton.singleton.Send(ptcC2G_UpdateFreeflowHintInfo); + } + + private bool Show3GFreeUI(IXUIButton button) + { + this.Open3GWebPage(); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public void Open3GWebPage() + { + int num = (XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ) ? 2 : 1; + string value = XSingleton.singleton.GetValue("SignalKey"); + Dictionary dictionary = new Dictionary(); + dictionary["url"] = string.Format(XSingleton.singleton.GetValue("SignalFreeUrl"), new object[] + { + XSingleton.singleton.OpenID, + num, + XSingleton.singleton.XPlatform.UserMd5(string.Concat(new object[] + { + XSingleton.singleton.OpenID, + num, + XSingleton.singleton.GetTimeStamp(), + "1231_LongZhiGuApp", + XSingleton.singleton.Decrypt(value) + })).ToLower(), + XSingleton.singleton.GetTimeStamp(), + "1231_LongZhiGuApp", + XSingleton.singleton.TokenCache + }); + dictionary["screendir"] = "SENSOR"; + bool isEditor = Application.isEditor; + if (isEditor) + { + Application.OpenURL(dictionary["url"]); + } + else + { + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + } + + public void ShowAddtionUI() + { + bool inTutorial = XSingleton.singleton.InTutorial; + if (!inTutorial) + { + bool flag = !string.IsNullOrEmpty(this.cacheString); + if (flag) + { + XSingleton.singleton.ShowModalDialog(this.cacheString, XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + } + this.cacheString = null; + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.ShowAddtionUI(); + bool flag2 = this.uploadtime < 1; + if (flag2) + { + this.OnUploadUrl(); + } + } + } + + public override void OnDetachFromHost() + { + this.uploadtime = 0; + base.OnDetachFromHost(); + } + + public void OnUploadUrl() + { + bool flag = XSingleton.singleton.playerInfo != null; + if (flag) + { + this.uploadtime++; + PtcC2G_PicUrlNtf ptcC2G_PicUrlNtf = new PtcC2G_PicUrlNtf(); + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag2) + { + ptcC2G_PicUrlNtf.Data.url = XSingleton.singleton.playerInfo.data.pictureLarge; + } + else + { + ptcC2G_PicUrlNtf.Data.url = XSingleton.singleton.playerInfo.data.pictureMiddle; + } + XSingleton.singleton.Send(ptcC2G_PicUrlNtf); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AdditionRemindDocument.cs.meta b/Client/Assets/Scripts/XMainClient/AdditionRemindDocument.cs.meta new file mode 100644 index 00000000..e72aa114 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AdditionRemindDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 972e163dab74b6548bf882d6ae698e20 +timeCreated: 1611404187 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AdjustDirection.cs b/Client/Assets/Scripts/XMainClient/AdjustDirection.cs new file mode 100644 index 00000000..387e8b5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AdjustDirection.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum AdjustDirection + { + TargetDir = 1, + TargetFace, + SelfFace + } +} diff --git a/Client/Assets/Scripts/XMainClient/AdjustDirection.cs.meta b/Client/Assets/Scripts/XMainClient/AdjustDirection.cs.meta new file mode 100644 index 00000000..646c60b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AdjustDirection.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 26b30985cc8455743950f7181c1d253a +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AncientBox.cs b/Client/Assets/Scripts/XMainClient/AncientBox.cs new file mode 100644 index 00000000..041bd1c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AncientBox.cs @@ -0,0 +1,117 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AncientBox : DlgBase + { + public override string fileName + { + get + { + return "OperatingActivity/AncientBox"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + public override bool pushstack + { + get + { + return false; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private AncientTimesTable.RowData row; + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_sprRed.SetVisible(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnClaim.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClick)); + base.uiBehaviour.m_black.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClose)); + } + + public void Show(AncientTimesTable.RowData r) + { + this.row = r; + this.SetVisible(true, true); + this.RefreshPoint(); + this.RefreshRwd(); + } + + private void RefreshPoint() + { + base.uiBehaviour.m_title.SetText(this.row.Title); + base.uiBehaviour.m_point.SetText(XStringDefineProxy.GetString("AncientPoint", new object[] + { + this.row.nPoints[1] + })); + } + + private void RefreshRwd() + { + base.uiBehaviour.m_rwdpool.ReturnAll(false); + int tplWidth = base.uiBehaviour.m_rwdpool.TplWidth; + int i = 0; + int count = (int)this.row.Items.count; + while (i < count) + { + GameObject gameObject = base.uiBehaviour.m_rwdpool.FetchGameObject(false); + XSingleton.singleton.AddChild(base.uiBehaviour.itemTpl.transform.parent.gameObject, gameObject); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)this.row.Items[i, 0], (int)this.row.Items[i, 1], false); + Vector3 localPosition = base.uiBehaviour.itemTpl.transform.localPosition; + localPosition.x = (float)((count % 2 == 0) ? ((int)((float)i - (float)count / 2f) * tplWidth + tplWidth / 2) : ((int)((float)i - (float)(count - 1) / 2f) * tplWidth)); + gameObject.transform.localPosition = localPosition; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this.row.Items[i, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + i++; + } + } + + private bool OnClick(IXUIButton btn) + { + XAncientDocument specificDocument = XDocuments.GetSpecificDocument(XAncientDocument.uuID); + specificDocument.ReqPoint(this.row.ID); + return true; + } + + private void OnClose(IXUISprite spr) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AncientBox.cs.meta b/Client/Assets/Scripts/XMainClient/AncientBox.cs.meta new file mode 100644 index 00000000..42d05f6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AncientBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a98159153cca13a44b9746931084df32 +timeCreated: 1611404298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AncientTaskView.cs b/Client/Assets/Scripts/XMainClient/AncientTaskView.cs new file mode 100644 index 00000000..5efc2b70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AncientTaskView.cs @@ -0,0 +1,138 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AncientTaskView : DlgBase + { + public override string fileName + { + get + { + return "OperatingActivity/AncientTask"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + public override bool pushstack + { + get + { + return false; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + protected override void Init() + { + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnClose)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_tabpool.ReturnAll(false); + int i = 0; + int num = XAncientDocument.ancientTask.Table.Length; + while (i < num) + { + GameObject gameObject = base.uiBehaviour.m_tabpool.FetchGameObject(false); + XSingleton.singleton.AddChild(base.uiBehaviour.boxTpl.transform.parent.gameObject, gameObject); + gameObject.transform.localPosition = base.uiBehaviour.boxTpl.transform.localPosition - new Vector3(0f, (float)(base.uiBehaviour.m_tabpool.TplHeight * i)); + IXUICheckBox ixuicheckBox = gameObject.transform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)XAncientDocument.ancientTask.Table[i].ID; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + ixuicheckBox.ForceSetFlag(i == 0); + IXUILabel ixuilabel = gameObject.transform.Find("t1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("selected/t2").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XAncientDocument.ancientTask.Table[i].title); + ixuilabel2.SetText(XAncientDocument.ancientTask.Table[i].title); + i++; + } + } + + private bool OnBtnClose(IXUIButton brn) + { + this.SetVisible(false, true); + return true; + } + + private bool OnTabClick(IXUICheckBox box) + { + bool bChecked = box.bChecked; + if (bChecked) + { + int i = 0; + int num = XAncientDocument.ancientTask.Table.Length; + while (i < num) + { + AncientTask.RowData rowData = XAncientDocument.ancientTask.Table[i]; + bool flag = rowData.ID == (uint)box.ID; + if (flag) + { + this.RefreshContent(rowData); + this.RefreshRwd(rowData); + break; + } + i++; + } + } + return true; + } + + private void RefreshContent(AncientTask.RowData row) + { + this.m_uiBehaviour.m_time.SetText(row.time); + base.uiBehaviour.m_content.SetText(row.content); + } + + private void RefreshRwd(AncientTask.RowData row) + { + base.uiBehaviour.m_rwdpool.ReturnAll(false); + int i = 0; + int count = (int)row.rewards.count; + while (i < count) + { + GameObject gameObject = base.uiBehaviour.m_rwdpool.FetchGameObject(false); + XSingleton.singleton.AddChild(base.uiBehaviour.itemTpl.transform.parent.gameObject, gameObject); + gameObject.transform.localPosition = base.uiBehaviour.itemTpl.transform.localPosition + new Vector3((float)(base.uiBehaviour.m_rwdpool.TplWidth * i), 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)row.rewards[i, 0], (int)row.rewards[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)row.rewards[i, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + i++; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AncientTaskView.cs.meta b/Client/Assets/Scripts/XMainClient/AncientTaskView.cs.meta new file mode 100644 index 00000000..d94d0ce4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AncientTaskView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c1fc71d63badee4093eed14798e518b +timeCreated: 1611403501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs b/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs new file mode 100644 index 00000000..0f4a0cda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AnicentTaskBhaviour : DlgBehaviourBase + { + public GameObject boxTpl; + + public GameObject itemTpl; + + public IXUILabel m_time; + + public IXUILabel m_content; + + public XUIPool m_tabpool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_rwdpool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_btnClose; + + private void Awake() + { + this.boxTpl = base.transform.Find("Bg/TaskTitle/option1").gameObject; + this.m_content = (base.transform.Find("Bg/condition/condition1").GetComponent("XUILabel") as IXUILabel); + this.m_time = (base.transform.Find("Bg/condition/Time").GetComponent("XUILabel") as IXUILabel); + this.itemTpl = base.transform.Find("Bg/condition/ItemList/ItemTpl").gameObject; + this.itemTpl.SetActive(false); + this.m_btnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_tabpool.SetupPool(this.boxTpl.transform.parent.gameObject, this.boxTpl, 2u, false); + this.m_rwdpool.SetupPool(this.itemTpl.transform.parent.gameObject, this.itemTpl, 2u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs.meta b/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs.meta new file mode 100644 index 00000000..3982b0cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AnicentTaskBhaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 026980e37d02e754ab783774688f07c9 +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs b/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs new file mode 100644 index 00000000..e35a7a57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AnicientBoxBahaviour : DlgBehaviourBase + { + public IXUILabel m_title; + + public IXUILabel m_point; + + public GameObject itemTpl; + + public IXUIButton m_btnClaim; + + public XUIPool m_rwdpool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_black; + + public IXUISprite m_sprRed; + + private void Awake() + { + this.itemTpl = base.transform.Find("bg/ItemList/ItemTpl").gameObject; + this.itemTpl.SetActive(false); + this.m_title = (base.transform.Find("bg/title").GetComponent("XUILabel") as IXUILabel); + this.m_point = (base.transform.Find("bg/tips").GetComponent("XUILabel") as IXUILabel); + this.m_btnClaim = (base.transform.Find("bg/Bt").GetComponent("XUIButton") as IXUIButton); + this.m_rwdpool.SetupPool(this.itemTpl.transform.parent.gameObject, this.itemTpl, 2u, false); + this.m_black = (base.transform.Find("backclick").GetComponent("XUISprite") as IXUISprite); + this.m_sprRed = (base.transform.Find("bg/Bt/redpoint").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs.meta b/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs.meta new file mode 100644 index 00000000..9b28f64f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AnicientBoxBahaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e386169e268f59b4989746fa4db6b32b +timeCreated: 1611404733 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs b/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs new file mode 100644 index 00000000..bcc5c186 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class AnnounceBehaviour : DlgBehaviourBase + { + public IXUISprite m_closedSpr; + + public IXUISprite m_iconSpr; + + public IXUILabel m_nameLab; + + public IXUILabel m_levelLab; + + public IXUILabel m_describeLab; + + public IXUITweenTool m_playerTween = null; + + private void Awake() + { + Transform transform = base.transform.Find("Bg"); + this.m_closedSpr = (transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_iconSpr = (transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_playerTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = transform.Find("SkillFrame").transform; + this.m_nameLab = (transform.Find("AttrName").GetComponent("XUILabel") as IXUILabel); + this.m_levelLab = (transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_describeLab = (transform.Find("Describe").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs.meta new file mode 100644 index 00000000..8742b851 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AnnounceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14ec4fd6eb2dbbd459f8298877dd70dd +timeCreated: 1611403260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ApplyMentorshipInfo.cs b/Client/Assets/Scripts/XMainClient/ApplyMentorshipInfo.cs new file mode 100644 index 00000000..291832b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ApplyMentorshipInfo.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public class ApplyMentorshipInfo + { + public uint roleLevel; + + public string roleName; + + public uint demand; + + public uint state; + } +} diff --git a/Client/Assets/Scripts/XMainClient/ApplyMentorshipInfo.cs.meta b/Client/Assets/Scripts/XMainClient/ApplyMentorshipInfo.cs.meta new file mode 100644 index 00000000..d6ff5e25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ApplyMentorshipInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 887c08c36e6d18b489d0939a3788ddc4 +timeCreated: 1611404084 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArrowDirection.cs b/Client/Assets/Scripts/XMainClient/ArrowDirection.cs new file mode 100644 index 00000000..640f2ab6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArrowDirection.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum ArrowDirection + { + Left, + Right + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArrowDirection.cs.meta b/Client/Assets/Scripts/XMainClient/ArrowDirection.cs.meta new file mode 100644 index 00000000..9464ec7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArrowDirection.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4d011bb53206f041b772ec914aaa8c6 +timeCreated: 1611404874 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactAtlasDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactAtlasDocument.cs new file mode 100644 index 00000000..29dd4602 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactAtlasDocument.cs @@ -0,0 +1,164 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactAtlasDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactAtlasDocument.uuID; + } + } + + public static ArtifactAtlasDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactAtlasDocument.uuID) as ArtifactAtlasDocument; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactAtlasDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private List m_levelSuitList = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactAtlasDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public List GetLevelSuitList() + { + this.m_levelSuitList.Clear(); + uint defultSuitLevel = this.GetDefultSuitLevel(0u); + uint showSuitLevel = this.GetShowSuitLevel(0u); + for (int i = 0; i < ArtifactDocument.SuitMgr.Suits.Count; i++) + { + ArtifactSuit artifactSuit = ArtifactDocument.SuitMgr.Suits[i]; + bool flag = artifactSuit == null; + if (!flag) + { + bool flag2 = artifactSuit.Level > showSuitLevel; + if (!flag2) + { + ArtifactSuitLevel artifactSuitLevel = this.IsHad(artifactSuit.Level); + bool flag3 = artifactSuitLevel == null; + if (flag3) + { + artifactSuitLevel = new ArtifactSuitLevel(); + artifactSuitLevel.SuitLevel = artifactSuit.Level; + artifactSuitLevel.IsDefultSelect = (artifactSuit.Level == defultSuitLevel); + artifactSuitLevel.SuitIdList.Add(artifactSuit.SuitId); + this.m_levelSuitList.Add(artifactSuitLevel); + } + else + { + artifactSuitLevel.SuitIdList.Add(artifactSuit.SuitId); + } + } + } + } + return this.m_levelSuitList; + } + + private ArtifactSuitLevel IsHad(uint suitLevel) + { + for (int i = 0; i < this.m_levelSuitList.Count; i++) + { + bool flag = this.m_levelSuitList[i].SuitLevel == suitLevel; + if (flag) + { + return this.m_levelSuitList[i]; + } + } + return null; + } + + private uint GetDefultSuitLevel(uint userLevel = 0u) + { + uint result = 1u; + bool flag = userLevel == 0u; + if (flag) + { + bool flag2 = XSingleton.singleton.XPlayerData != null; + if (flag2) + { + userLevel = XSingleton.singleton.XPlayerData.Level; + } + } + int count = ArtifactDocument.SuitLevelList.Count; + for (int i = 0; i < count; i++) + { + uint num = ArtifactDocument.SuitLevelList[i]; + bool flag3 = num > userLevel; + if (flag3) + { + break; + } + result = num; + } + return result; + } + + private uint GetShowSuitLevel(uint userLevel = 0u) + { + uint result = 1u; + bool flag = userLevel == 0u; + if (flag) + { + bool flag2 = XSingleton.singleton.XPlayerData != null; + if (flag2) + { + userLevel = XSingleton.singleton.XPlayerData.Level; + } + } + int count = ArtifactDocument.SuitLevelList.Count; + bool flag3 = count > 0; + if (flag3) + { + result = ArtifactDocument.SuitLevelList[0]; + } + for (int i = 0; i < count; i++) + { + uint num = ArtifactDocument.SuitLevelList[i]; + bool flag4 = num > userLevel; + if (flag4) + { + break; + } + result = num; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactAtlasDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactAtlasDocument.cs.meta new file mode 100644 index 00000000..e5453a8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactAtlasDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05c295c413e668d46a16841335045c92 +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactAttrRange.cs b/Client/Assets/Scripts/XMainClient/ArtifactAttrRange.cs new file mode 100644 index 00000000..dfe38edc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactAttrRange.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class ArtifactAttrRange + { + public uint Max = 0u; + + public uint Min = 0u; + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactAttrRange.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactAttrRange.cs.meta new file mode 100644 index 00000000..781c6052 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactAttrRange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d050f9ceed9a67438f84734da5b2b9d +timeCreated: 1611403694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactBagDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactBagDocument.cs new file mode 100644 index 00000000..e1d2f8ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactBagDocument.cs @@ -0,0 +1,583 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactBagDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactBagDocument.uuID; + } + } + + public static ArtifactBagDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactBagDocument.uuID) as ArtifactBagDocument; + } + } + + public XNewItemTipsMgr NewItems + { + get + { + return this.m_newItems; + } + } + + public ArtifactBagHandler BagHandler + { + get + { + return this.m_bagHandler; + } + set + { + this.m_bagHandler = value; + } + } + + public bool CanBePowerful + { + get + { + return this.m_canBePowerful; + } + set + { + this.m_canBePowerful = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Artifact, true); + } + } + + public List SuitEffectPosNames + { + get + { + bool flag = this.m_suitEffectPosNames == null; + if (flag) + { + this.m_suitEffectPosNames = XSingleton.singleton.GetStringList("ArtifactSuitEffectNames"); + bool flag2 = this.m_suitEffectPosNames.Count < XBagDocument.ArtifactMax; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Format("artifact pos effect length not enough,at last need {0},but it only had {1}", XBagDocument.ArtifactMax, this.m_suitEffectPosNames.Count), null, null, null, null, null); + } + } + return this.m_suitEffectPosNames; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactBagDocument"); + + private ArtifactBagHandler m_bagHandler; + + private List m_ItemList = new List(); + + private XNewItemTipsMgr m_newItems = new XNewItemTipsMgr(); + + private bool m_shouldUpdateRedPoints = false; + + private bool m_shouldCalcMorePowerfulTip = false; + + private bool m_canBePowerful = false; + + private Dictionary m_quantityEffectPath; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ArtifactEffect m_artifactEffectTable = new ArtifactEffect(); + + private List m_suitEffectPosNames; + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactBagDocument.AsyncLoader.AddTask("Table/ArtifactEffect", ArtifactBagDocument.m_artifactEffectTable, false); + ArtifactBagDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.m_newItems.ClearItemType(); + this.m_newItems.Filter.AddItemType(ItemType.ARTIFACT); + XSingleton.singleton.Init(); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_LoadEquip, new XComponent.XEventHandler(this.OnLoadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_SwapItem, new XComponent.XEventHandler(this.OnSwapItem)); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnFinishItemChange)); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.BagHandler != null && this.BagHandler.IsVisible(); + if (flag) + { + this.BagHandler.RefreshData(); + XSingleton.singleton.SetDirty(); + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + XSingleton.singleton.ArrangeEffectData(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + protected bool OnLoadEquip(XEventArgs args) + { + XLoadEquipEventArgs xloadEquipEventArgs = args as XLoadEquipEventArgs; + bool flag = xloadEquipEventArgs.item.Type == ItemType.ARTIFACT; + if (flag) + { + this.m_shouldUpdateRedPoints = true; + this.m_shouldCalcMorePowerfulTip = true; + XSingleton.singleton.SetDirty(); + bool flag2 = this.BagHandler != null && this.BagHandler.IsVisible(); + if (flag2) + { + this.BagHandler.LoadEquip(xloadEquipEventArgs.item, xloadEquipEventArgs.slot); + } + this.ProcessSuitEquiped((uint)xloadEquipEventArgs.item.itemID); + } + return true; + } + + protected bool OnUnloadEquip(XEventArgs args) + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + bool flag = xunloadEquipEventArgs.type == ItemType.ARTIFACT; + if (flag) + { + this.m_shouldUpdateRedPoints = true; + this.m_shouldCalcMorePowerfulTip = true; + XSingleton.singleton.SetDirty(); + bool flag2 = this.BagHandler != null && this.BagHandler.active; + if (flag2) + { + this.BagHandler.UnloadEquip(xunloadEquipEventArgs.slot); + } + this.ProcessSuitUnEquiped((uint)xunloadEquipEventArgs.item.itemID); + } + return true; + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + this.m_shouldUpdateRedPoints = this.m_newItems.AddItems(xaddItemEventArgs.items, !xaddItemEventArgs.bNew); + this.m_shouldCalcMorePowerfulTip = this.m_shouldUpdateRedPoints; + bool flag = this.BagHandler == null || !this.BagHandler.IsVisible(); + bool result; + if (flag) + { + result = false; + } + else + { + this.BagHandler.AddItem(xaddItemEventArgs.items); + result = true; + } + return result; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + this.m_newItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, true); + this.m_shouldUpdateRedPoints = this.m_newItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, true); + this.m_shouldCalcMorePowerfulTip = this.m_shouldUpdateRedPoints; + bool flag = this.BagHandler == null || !this.BagHandler.IsVisible(); + bool result; + if (flag) + { + result = false; + } + else + { + this.BagHandler.RemoveItem(xremoveItemEventArgs.uids); + result = true; + } + return result; + } + + protected bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + bool flag = xupdateItemEventArgs.item.Type == ItemType.ARTIFACT; + if (flag) + { + this.m_shouldUpdateRedPoints = true; + this.m_shouldCalcMorePowerfulTip = true; + XSingleton.singleton.SetDirty(); + } + bool flag2 = this.BagHandler == null || !this.BagHandler.IsVisible(); + bool result; + if (flag2) + { + result = false; + } + else + { + this.BagHandler.UpdateItem(xupdateItemEventArgs.item); + result = true; + } + return result; + } + + protected bool OnItemNumChanged(XEventArgs args) + { + bool flag = this.BagHandler == null || !this.BagHandler.IsVisible(); + bool result; + if (flag) + { + result = false; + } + else + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + this.BagHandler.ItemNumChanged(xitemNumChangedEventArgs.item); + result = true; + } + return result; + } + + protected bool OnSwapItem(XEventArgs args) + { + XSwapItemEventArgs xswapItemEventArgs = args as XSwapItemEventArgs; + bool flag = xswapItemEventArgs.itemNowOnBody.Type != ItemType.ARTIFACT; + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.SetDirty(); + this.m_newItems.RemoveItem(xswapItemEventArgs.itemNowOnBody.uid, ItemType.ARTIFACT, false); + bool flag2 = this.BagHandler != null && this.BagHandler.IsVisible(); + if (flag2) + { + this.BagHandler.SwapItem(xswapItemEventArgs.itemNowOnBody, xswapItemEventArgs.itemNowInBag, xswapItemEventArgs.slot); + } + bool flag3 = ArtifactDocument.SuitMgr.WillChangeEquipedCount(xswapItemEventArgs.itemNowInBag.itemID, xswapItemEventArgs.itemNowOnBody.itemID) || ArtifactDocument.SuitMgr.WillChangeEquipedCount(xswapItemEventArgs.itemNowOnBody.itemID, xswapItemEventArgs.itemNowInBag.itemID); + if (flag3) + { + this.ProcessSuitUnEquiped((uint)xswapItemEventArgs.itemNowInBag.itemID); + this.ProcessSuitEquiped((uint)xswapItemEventArgs.itemNowOnBody.itemID); + } + result = true; + } + return result; + } + + public bool OnFinishItemChange(XEventArgs args) + { + bool shouldUpdateRedPoints = this.m_shouldUpdateRedPoints; + if (shouldUpdateRedPoints) + { + this.UpdateRedPoints(); + this.m_shouldUpdateRedPoints = false; + } + bool shouldCalcMorePowerfulTip = this.m_shouldCalcMorePowerfulTip; + if (shouldCalcMorePowerfulTip) + { + bool flag = this.BagHandler != null && this.BagHandler.IsVisible(); + if (flag) + { + this.BagHandler.Refresh(); + } + this.m_shouldCalcMorePowerfulTip = false; + } + return true; + } + + private void ProcessSuitEquiped(uint itemid) + { + ArtifactSuit suitByArtifactId = ArtifactDocument.SuitMgr.GetSuitByArtifactId(itemid); + bool flag = suitByArtifactId == null; + if (!flag) + { + List artifactSuitPos = suitByArtifactId.GetArtifactSuitPos(XSingleton.singleton.Doc.XBagDoc.ArtifactBag); + bool flag2 = artifactSuitPos != null && suitByArtifactId.IsEffectJustActivated(artifactSuitPos.Count); + if (flag2) + { + this.ShowSuitEffectTip(suitByArtifactId, artifactSuitPos.Count, true); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + ArtifactFrameHandler artifactFrameHandler = DlgBase.singleton._ArtifactFrameHandler; + bool flag4 = artifactFrameHandler != null && artifactFrameHandler.IsVisible(); + if (flag4) + { + artifactFrameHandler.PlaySuitFx(suitByArtifactId.Id); + } + } + } + } + } + + private void ProcessSuitUnEquiped(uint itemid) + { + ArtifactSuit suitByArtifactId = ArtifactDocument.SuitMgr.GetSuitByArtifactId(itemid); + bool flag = suitByArtifactId == null; + if (flag) + { + } + } + + private void ShowSuitEffectTip(ArtifactSuit suit, int effectIndex, bool active) + { + StringBuilder stringBuilder = new StringBuilder(); + int count = suit.effects[effectIndex].Count; + for (int i = 0; i < count; i++) + { + SeqListRef seqListRef = suit.effects[effectIndex]; + stringBuilder.Append(XAttributeCommon.GetAttrStr((int)seqListRef[i, 0]) + " " + XAttributeCommon.GetAttrValueStr((int)seqListRef[i, 0], seqListRef[i, 1])); + bool flag = i != count; + if (flag) + { + stringBuilder.Append("\n"); + } + } + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SUIT_EFFECT_CHANGED", new object[] + { + suit.Name, + effectIndex, + stringBuilder.ToString(), + XStringDefineProxy.GetString(active ? "HAS_EFFECT" : "NO_EFFECT") + }), "fece00"); + } + + public void UpdateRedPoints() + { + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + this.UpdateRedPoints(XSingleton.singleton.XPlayerData.Level); + } + } + + public void UpdateRedPoints(uint playerLevel) + { + this.m_canBePowerful = false; + List artifacts = this.GetArtifacts(); + for (int i = 0; i < artifacts.Count; i++) + { + XArtifactItem artifact = artifacts[i] as XArtifactItem; + bool flag = artifacts == null; + if (!flag) + { + EquipCompare equipCompare = this.IsEquipMorePowerful(artifact); + bool flag2 = (equipCompare & EquipCompare.EC_MORE_POWERFUL) > EquipCompare.EC_NONE; + if (flag2) + { + this.CanBePowerful = true; + break; + } + } + } + bool flag3 = !this.m_canBePowerful; + if (flag3) + { + this.CanBePowerful = false; + } + } + + public EquipCompare IsEquipMorePowerful(ulong uid) + { + return this.IsEquipMorePowerful(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(uid) as XArtifactItem); + } + + public EquipCompare IsEquipMorePowerful(XArtifactItem artifact) + { + bool flag = artifact == null; + EquipCompare result; + if (flag) + { + result = EquipCompare.EC_NONE; + } + else + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)artifact.itemID); + bool flag2 = artifactListRowData == null; + if (flag2) + { + result = EquipCompare.EC_NONE; + } + else + { + bool flag3 = XSingleton.singleton.XPlayerData != null && artifact.itemConf != null; + if (flag3) + { + bool flag4 = (long)artifact.itemConf.ReqLevel > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag4) + { + return EquipCompare.EC_NONE; + } + } + int artifactPos = (int)artifactListRowData.ArtifactPos; + XBagDocument xbagDoc = XSingleton.singleton.Doc.XBagDoc; + XArtifactItem xartifactItem = xbagDoc.ArtifactBag[artifactPos] as XArtifactItem; + bool flag5 = xartifactItem == null; + if (flag5) + { + result = EquipCompare.EC_MORE_POWERFUL; + } + else + { + result = EquipCompare.EC_NONE; + } + } + } + return result; + } + + public static EquipCompare GetFinal(EquipCompare mix) + { + bool flag = (mix & EquipCompare.EC_MORE_POWERFUL) > EquipCompare.EC_NONE; + EquipCompare result; + if (flag) + { + result = EquipCompare.EC_MORE_POWERFUL; + } + else + { + bool flag2 = (mix & EquipCompare.EC_CAN_EQUIP) > EquipCompare.EC_NONE; + if (flag2) + { + result = EquipCompare.EC_CAN_EQUIP; + } + else + { + bool flag3 = (mix & EquipCompare.EC_CAN_SMELT) > EquipCompare.EC_NONE; + if (flag3) + { + result = EquipCompare.EC_CAN_SMELT; + } + else + { + result = EquipCompare.EC_NONE; + } + } + } + return result; + } + + public void OnUseItem(UseItemArg oArg, UseItemRes oRes) + { + } + + public void RefreshBag() + { + bool flag = this.BagHandler != null && this.BagHandler.IsVisible(); + if (flag) + { + this.BagHandler.Refresh(); + } + } + + public List GetArtifacts() + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT); + this.m_ItemList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.m_ItemList); + return this.m_ItemList; + } + + public bool IsHadThisPosArtifact(uint position) + { + bool flag = this.m_ItemList.Count == 0; + if (flag) + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.m_ItemList); + } + for (int i = 0; i < this.m_ItemList.Count; i++) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)this.m_ItemList[i].itemID); + bool flag2 = artifactListRowData != null && artifactListRowData.ArtifactPos == position; + if (flag2) + { + return true; + } + } + return false; + } + + public bool GetArtifactEffectPath(uint quanlity, uint attrType, out string path) + { + ulong key = this.MakeKey(quanlity, attrType); + return this.GetArtifactEffectPath(key, out path); + } + + public bool GetArtifactEffectPath(ulong key, out string path) + { + bool flag = this.m_quantityEffectPath == null; + if (flag) + { + this.m_quantityEffectPath = new Dictionary(); + for (int i = 0; i < ArtifactBagDocument.m_artifactEffectTable.Table.Length; i++) + { + ArtifactEffect.RowData rowData = ArtifactBagDocument.m_artifactEffectTable.Table[i]; + bool flag2 = rowData != null; + if (flag2) + { + ulong key2 = this.MakeKey(rowData.Quanlity, rowData.AttrTyte); + bool flag3 = !this.m_quantityEffectPath.ContainsKey(key2); + if (flag3) + { + this.m_quantityEffectPath.Add(key2, rowData.Path); + } + } + } + } + bool flag4 = this.m_quantityEffectPath.ContainsKey(key); + bool result; + if (flag4) + { + path = this.m_quantityEffectPath[key]; + result = true; + } + else + { + path = string.Empty; + result = false; + } + return result; + } + + public ulong MakeKey(uint quanlity, uint attrType) + { + return (ulong)(quanlity * 1000u + attrType); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactBagDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactBagDocument.cs.meta new file mode 100644 index 00000000..027998ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactBagDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d877de1797e7994d8019ba3a0772c83 +timeCreated: 1611404236 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactComposeDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactComposeDocument.cs new file mode 100644 index 00000000..6a97d495 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactComposeDocument.cs @@ -0,0 +1,425 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactComposeDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactComposeDocument.uuID; + } + } + + public static ArtifactComposeDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactComposeDocument.uuID) as ArtifactComposeDocument; + } + } + + public List SelectedItems + { + get + { + return this.m_SelectedItems; + } + } + + public int CurSelectTabLevel + { + get + { + return ArtifactDeityStoveDocument.Doc.CurSelectTabLevel; + } + } + + public bool IsSelectionFull + { + get + { + bool flag = this.SelectedItems.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(this.SelectedItems[0]); + bool flag2 = bagItemByUID == null; + if (flag2) + { + this.SelectedItems.RemoveAt(0); + result = false; + } + else + { + ArtifactComposeTable.RowData composeRowData = this.GetComposeRowData(this.CurSelectTabLevel, (int)bagItemByUID.itemConf.ItemQuality); + bool flag3 = composeRowData == null; + if (flag3) + { + this.SelectedItems.RemoveAt(0); + result = false; + } + else + { + uint num = 0u; + for (int i = 0; i < (int)composeRowData.ArtifactNum2DropID.count; i++) + { + bool flag4 = composeRowData.ArtifactNum2DropID[i, 0] > num; + if (flag4) + { + num = composeRowData.ArtifactNum2DropID[i, 0]; + } + } + result = ((long)this.m_SelectedItems.Count >= (long)((ulong)num)); + } + } + } + return result; + } + } + + public bool IsNumFit + { + get + { + bool flag = this.SelectedItems.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(this.SelectedItems[0]); + bool flag2 = bagItemByUID == null; + if (flag2) + { + result = false; + } + else + { + ArtifactComposeTable.RowData composeRowData = this.GetComposeRowData(this.CurSelectTabLevel, (int)bagItemByUID.itemConf.ItemQuality); + bool flag3 = composeRowData == null; + if (flag3) + { + result = false; + } + else + { + for (int i = 0; i < (int)composeRowData.ArtifactNum2DropID.count; i++) + { + bool flag4 = (ulong)composeRowData.ArtifactNum2DropID[i, 0] == (ulong)((long)this.m_SelectedItems.Count); + if (flag4) + { + return true; + } + } + result = false; + } + } + } + return result; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactComposeDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static readonly uint MAX_RECYCLE_COUNT = 2u; + + private static ArtifactComposeTable m_artifactComposeTab = new ArtifactComposeTable(); + + private List m_SelectedItems = new List(); + + public bool IsComposing = false; + + public ArtifactComposeHandler ComposeHandler; + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactComposeDocument.AsyncLoader.AddTask("Table/ArtifactCompose", ArtifactComposeDocument.m_artifactComposeTab, false); + ArtifactComposeDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.IsComposing = false; + for (int i = this.SelectedItems.Count - 1; i >= 0; i--) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(this.SelectedItems[i]); + bool flag = bagItemByUID == null; + if (flag) + { + this.SelectedItems.RemoveAt(i); + } + else + { + ArtifactComposeTable.RowData composeRowData = this.GetComposeRowData(this.CurSelectTabLevel, (int)bagItemByUID.itemConf.ItemQuality); + bool flag2 = composeRowData == null; + if (flag2) + { + this.SelectedItems.RemoveAt(i); + } + } + } + this.RefreshUi(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void ReqCoposeArtifact() + { + RpcC2G_ArtifactCompose rpcC2G_ArtifactCompose = new RpcC2G_ArtifactCompose(); + for (int i = 0; i < this.m_SelectedItems.Count; i++) + { + rpcC2G_ArtifactCompose.oArg.uids.Add(this.m_SelectedItems[i]); + } + rpcC2G_ArtifactCompose.oArg.type = ArtifactComposeType.ArtifactCompose_Single; + XSingleton.singleton.Send(rpcC2G_ArtifactCompose); + } + + public void ReqOneKeyCompose(List lst) + { + RpcC2G_ArtifactCompose rpcC2G_ArtifactCompose = new RpcC2G_ArtifactCompose(); + rpcC2G_ArtifactCompose.oArg.type = ArtifactComposeType.ArtifactCompose_Multi; + rpcC2G_ArtifactCompose.oArg.level = (uint)this.CurSelectTabLevel; + for (int i = 0; i < lst.Count; i++) + { + rpcC2G_ArtifactCompose.oArg.qualitys.Add(lst[i]); + } + XSingleton.singleton.Send(rpcC2G_ArtifactCompose); + } + + public void OnReqCoposeArtifactBack(ArtifactComposeType type, ArtifactComposeRes oRes) + { + this.IsComposing = false; + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag3 = type == ArtifactComposeType.ArtifactCompose_Single; + if (flag3) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(oRes.newuid); + bool flag4 = itemByUID != null && itemByUID.itemConf != null; + if (flag4) + { + UiUtility singleton = XSingleton.singleton; + string @string = XSingleton.singleton.GetString("ArtifactComposeSucTips"); + object[] itemName = itemByUID.itemConf.ItemName; + singleton.ShowSystemTip(string.Format(@string, itemName), "fece00"); + } + } + else + { + bool flag5 = type == ArtifactComposeType.ArtifactCompose_Multi; + if (flag5) + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < oRes.newuids.Count; i++) + { + XItem itemByUID2 = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(oRes.newuids[i]); + bool flag6 = itemByUID2 != null && itemByUID2.itemConf != null; + if (flag6) + { + bool flag7 = !dictionary.ContainsKey((int)itemByUID2.itemConf.ItemQuality); + if (flag7) + { + dictionary.Add((int)itemByUID2.itemConf.ItemQuality, 1); + } + else + { + Dictionary dictionary2 = dictionary; + int itemQuality = (int)itemByUID2.itemConf.ItemQuality; + int num = dictionary2[itemQuality]; + dictionary2[itemQuality] = num + 1; + } + } + } + foreach (KeyValuePair keyValuePair in dictionary) + { + XSingleton.singleton.AddGreenLog(keyValuePair.Value.ToString(), null, null, null, null, null); + bool flag8 = keyValuePair.Value > 0; + if (flag8) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("ArtifactOneKeyComposeSucTips"), keyValuePair.Value, this.GetQuanlityDes(keyValuePair.Key)), "fece00"); + } + } + } + } + this.ResetSelection(true); + } + } + } + + private string GetQuanlityDes(int quanlity) + { + string result; + switch (quanlity) + { + case 2: + result = "B"; + break; + case 3: + result = "A"; + break; + case 4: + result = "S"; + break; + case 5: + result = "L"; + break; + default: + result = "B"; + break; + } + return result; + } + + public void Additem(ulong uid) + { + bool flag = this.SelectedItems.Count > 0; + if (flag) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(this.SelectedItems[0]); + XItem bagItemByUID2 = XBagDocument.BagDoc.GetBagItemByUID(uid); + bool flag2 = bagItemByUID != null && bagItemByUID2 != null && bagItemByUID.itemConf != null && bagItemByUID2.itemConf != null; + if (flag2) + { + bool flag3 = bagItemByUID.itemConf.ItemQuality != bagItemByUID2.itemConf.ItemQuality; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactComposeTips2"), "fece00"); + return; + } + } + } + bool isSelectionFull = this.IsSelectionFull; + if (isSelectionFull) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactComposeNeedItemFull"), "fece00"); + } + else + { + this.ToggleItemSelect(uid); + } + } + + public void RefreshUi() + { + bool flag = this.ComposeHandler != null && this.ComposeHandler.IsVisible(); + if (flag) + { + this.ComposeHandler.RefreshUi(); + } + ArtifactDeityStoveDocument.Doc.RefreshUi(); + } + + public void ToggleItemSelect(ulong uid) + { + this.ToggleItemSelect(!this.m_SelectedItems.Contains(uid), uid, true); + } + + public bool IsSelected(ulong uid) + { + return this.m_SelectedItems.Contains(uid); + } + + public void ResetSelection(bool isRefreshUi) + { + this.m_SelectedItems.Clear(); + if (isRefreshUi) + { + this.RefreshUi(); + } + } + + private void ToggleItemSelect(bool select, ulong uid, bool bRefreshUI) + { + bool flag = select && !this.IsSelectionFull; + bool flag2; + if (flag) + { + flag2 = !this.m_SelectedItems.Contains(uid); + bool flag3 = flag2; + if (flag3) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(uid); + bool flag4 = bagItemByUID != null; + if (flag4) + { + ArtifactComposeTable.RowData composeRowData = this.GetComposeRowData(this.CurSelectTabLevel, (int)bagItemByUID.itemConf.ItemQuality); + bool flag5 = composeRowData != null; + if (flag5) + { + this.m_SelectedItems.Add(uid); + } + } + } + } + else + { + flag2 = this.m_SelectedItems.Remove(uid); + } + bool flag6 = flag2 && bRefreshUI; + if (flag6) + { + this.RefreshUi(); + } + } + + public ArtifactComposeTable.RowData GetComposeRowData(int level, int quanlity) + { + for (int i = 0; i < ArtifactComposeDocument.m_artifactComposeTab.Table.Length; i++) + { + ArtifactComposeTable.RowData rowData = ArtifactComposeDocument.m_artifactComposeTab.Table[i]; + bool flag = (ulong)rowData.ArtifactLevel == (ulong)((long)level) && (ulong)rowData.ArtifactQuality == (ulong)((long)quanlity); + if (flag) + { + return rowData; + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactComposeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactComposeDocument.cs.meta new file mode 100644 index 00000000..ad82f726 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactComposeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3ef4ea1ce5c04345ab40a7dc858a196 +timeCreated: 1611404390 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDlg.cs b/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDlg.cs new file mode 100644 index 00000000..b24fc891 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDlg.cs @@ -0,0 +1,159 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactDeityStoveDlg : TabDlgBase + { + public override string fileName + { + get + { + return "ItemNew/ArtifactDeityStoveDlg"; + } + } + + protected override bool bHorizontal + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return 370; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + public override bool pushstack + { + get + { + return false; + } + } + + private ArtifactDeityStoveDocument m_doc; + + private IXUIButton m_closedBtn; + + private IXUIButton m_helpBtn; + + private Transform m_handlersTra; + + private ArtifactItemsHandler m_itemsHandler; + + private ArtifactComposeHandler m_composeHandler; + + private ArtifactRecastHandler m_recasetHandler; + + private ArtifactFuseHandler m_fuseHandler; + + private ArtifactInscriptionHandler m_inscriptionHandler; + + private ArtifactRefinedHandler m_refinedHandler; + + protected override void Init() + { + this.m_doc = ArtifactDeityStoveDocument.Doc; + this.m_handlersTra = base.uiBehaviour.transform.Find("Bg/Handlers"); + this.m_closedBtn = (base.uiBehaviour.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_helpBtn = (base.uiBehaviour.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + base.Init(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClosed)); + this.m_helpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickHelp)); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_itemsHandler); + DlgHandlerBase.EnsureUnload(ref this.m_composeHandler); + DlgHandlerBase.EnsureUnload(ref this.m_recasetHandler); + DlgHandlerBase.EnsureUnload(ref this.m_fuseHandler); + DlgHandlerBase.EnsureUnload(ref this.m_inscriptionHandler); + DlgHandlerBase.EnsureUnload(ref this.m_refinedHandler); + base.OnUnload(); + } + + public override void SetupHandlers(XSysDefine sys) + { + this.m_doc.SysType = sys; + this.m_doc.ResetSelection(false); + switch (sys) + { + case XSysDefine.XSys_Artifact_Comepose: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_composeHandler, this.m_handlersTra, true, this)); + goto IL_106; + case XSysDefine.XSys_Artifact_Recast: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_recasetHandler, this.m_handlersTra, true, this)); + goto IL_106; + case XSysDefine.XSys_Artifact_Fuse: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_fuseHandler, this.m_handlersTra, true, this)); + goto IL_106; + case XSysDefine.XSys_Artifact_Inscription: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_inscriptionHandler, this.m_handlersTra, true, this)); + goto IL_106; + case XSysDefine.XSys_Artifact_Refined: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_refinedHandler, this.m_handlersTra, true, this)); + goto IL_106; + } + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + return; + IL_106: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_itemsHandler, this.m_handlersTra, true, this)); + } + + private bool OnClickClosed(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + private bool OnClickHelp(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Artifact_Comepose); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDlg.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDlg.cs.meta new file mode 100644 index 00000000..d9fdd1dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 793377242772bd3419311f5b721a6719 +timeCreated: 1611403984 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDocument.cs new file mode 100644 index 00000000..e344729a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDocument.cs @@ -0,0 +1,647 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactDeityStoveDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactDeityStoveDocument.uuID; + } + } + + public static ArtifactDeityStoveDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactDeityStoveDocument.uuID) as ArtifactDeityStoveDocument; + } + } + + public XNewItemTipsMgr NewItems + { + get + { + return this.m_newItems; + } + } + + public Dictionary LevelDic + { + get + { + bool flag = this.m_levelDic == null; + if (flag) + { + this.m_levelDic = new Dictionary(); + int @int = XSingleton.singleton.GetInt("ArtifactLevelMax"); + for (int i = 0; i < @int; i++) + { + int targetLevel = this.GetTargetLevel(i, this.TabLevels); + this.m_levelDic.Add(i, targetLevel); + } + } + return this.m_levelDic; + } + } + + private List TabLevels + { + get + { + bool flag = this.m_tabLevels == null; + if (flag) + { + this.m_tabLevels = XSingleton.singleton.GetIntList("ArtifactLevels"); + } + return this.m_tabLevels; + } + } + + private Dictionary ShowMinLevel + { + get + { + bool flag = this.m_showMinLevel == null; + if (flag) + { + this.m_showMinLevel = new Dictionary(); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("TabMinLevel", true); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + this.m_showMinLevel.Add(sequenceList[i, 0], sequenceList[i, 1]); + } + } + return this.m_showMinLevel; + } + } + + public XSysDefine SysType + { + get + { + return this.m_sysType; + } + set + { + this.m_sysType = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactDeityStoveDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public int CurSelectTabLevel = 0; + + public ArtifactItemsHandler ItemsHandler; + + private List m_itemList = new List(); + + private XNewItemTipsMgr m_newItems = new XNewItemTipsMgr(); + + private Dictionary m_levelDic = null; + + private List m_tabLevels; + + private Dictionary m_showMinLevel = null; + + private List m_tempList = new List(); + + private XSysDefine m_sysType = XSysDefine.XSys_Artifact_Comepose; + + public List GetTabLevels() + { + this.m_tempList.Clear(); + int num = 0; + this.ShowMinLevel.TryGetValue(XFastEnumIntEqualityComparer.ToInt(this.m_sysType), out num); + for (int i = 0; i < this.TabLevels.Count; i++) + { + int num2 = this.TabLevels[i]; + bool flag = num2 >= num; + if (flag) + { + this.m_tempList.Add(num2); + } + } + return this.m_tempList; + } + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactDeityStoveDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + this.m_newItems.ClearItemType(); + this.m_newItems.Filter.AddItemType(ItemType.ARTIFACT); + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnItemChangeFinished)); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this.Clear(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.RefreshUi(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void Additem(ulong uid) + { + bool flag = uid == 0UL; + if (!flag) + { + switch (this.m_sysType) + { + case XSysDefine.XSys_Artifact_Comepose: + ArtifactComposeDocument.Doc.Additem(uid); + break; + case XSysDefine.XSys_Artifact_Recast: + ArtifactRecastDocument.Doc.AddItem(uid); + break; + case XSysDefine.XSys_Artifact_Fuse: + ArtifactFuseDocument.Doc.AddItem(uid); + break; + case XSysDefine.XSys_Artifact_Inscription: + ArtifactInscriptionDocument.Doc.AddItem(uid); + break; + case XSysDefine.XSys_Artifact_Refined: + ArtifactRefinedDocument.Doc.AddItem(uid); + break; + } + } + } + + public void TakeOut(ulong uid) + { + bool flag = uid == 0UL; + if (!flag) + { + switch (this.m_sysType) + { + case XSysDefine.XSys_Artifact_Comepose: + ArtifactComposeDocument.Doc.ToggleItemSelect(uid); + break; + case XSysDefine.XSys_Artifact_Recast: + ArtifactRecastDocument.Doc.TakeOut(uid); + break; + case XSysDefine.XSys_Artifact_Fuse: + ArtifactFuseDocument.Doc.TakeOut(uid); + break; + case XSysDefine.XSys_Artifact_Inscription: + ArtifactInscriptionDocument.Doc.TakeOut(uid); + break; + case XSysDefine.XSys_Artifact_Refined: + ArtifactRefinedDocument.Doc.TakeOut(uid); + break; + } + } + } + + public void ResetSelection(bool isRefreshUi) + { + switch (this.m_sysType) + { + case XSysDefine.XSys_Artifact_Comepose: + ArtifactComposeDocument.Doc.ResetSelection(isRefreshUi); + break; + case XSysDefine.XSys_Artifact_Recast: + ArtifactRecastDocument.Doc.ResetSelectUid(isRefreshUi); + break; + case XSysDefine.XSys_Artifact_Fuse: + ArtifactFuseDocument.Doc.ResetSelectUid(isRefreshUi, FuseEffectType.None); + break; + case XSysDefine.XSys_Artifact_Inscription: + ArtifactInscriptionDocument.Doc.ResetSelectUid(isRefreshUi); + break; + case XSysDefine.XSys_Artifact_Refined: + ArtifactRefinedDocument.Doc.ResetSelectUid(isRefreshUi); + break; + } + } + + public bool IsSelected(ulong uid) + { + switch (this.m_sysType) + { + case XSysDefine.XSys_Artifact_Comepose: + return ArtifactComposeDocument.Doc.IsSelected(uid); + case XSysDefine.XSys_Artifact_Recast: + return ArtifactRecastDocument.Doc.IsSelectUid(uid); + case XSysDefine.XSys_Artifact_Fuse: + return ArtifactFuseDocument.Doc.IsSelectUid(uid); + case XSysDefine.XSys_Artifact_Inscription: + return ArtifactInscriptionDocument.Doc.IsSelectUid(uid); + case XSysDefine.XSys_Artifact_Refined: + return ArtifactRefinedDocument.Doc.IsSelectUid(uid); + } + return false; + } + + public void RefreshAllHandlerUi() + { + switch (this.m_sysType) + { + case XSysDefine.XSys_Artifact_Comepose: + ArtifactComposeDocument.Doc.RefreshUi(); + break; + case XSysDefine.XSys_Artifact_Recast: + ArtifactRecastDocument.Doc.RefreshUi(); + break; + case XSysDefine.XSys_Artifact_Fuse: + ArtifactFuseDocument.Doc.RefreshUi(FuseEffectType.None); + break; + case XSysDefine.XSys_Artifact_Inscription: + ArtifactInscriptionDocument.Doc.RefreshUi(); + break; + case XSysDefine.XSys_Artifact_Refined: + ArtifactRefinedDocument.Doc.RefreshUi(); + break; + } + } + + public void RefreshUi() + { + bool flag = this.ItemsHandler != null && this.ItemsHandler.IsVisible(); + if (flag) + { + this.ItemsHandler.RefreshUi(); + } + } + + public List GetArtifactByTabLevel() + { + return this.GetArtifactByTabLevel(this.CurSelectTabLevel); + } + + public List GetArtifactByTabLevel(int level) + { + this.m_itemList.Clear(); + XBag itemBag = XBagDocument.BagDoc.ItemBag; + ulong filter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT); + switch (this.m_sysType) + { + case XSysDefine.XSys_Artifact_Comepose: + this.GetComposeItems(level, itemBag, filter); + break; + case XSysDefine.XSys_Artifact_Recast: + this.GetEquipedArtifacts(level); + this.GetRecastItems(level, itemBag, filter); + break; + case XSysDefine.XSys_Artifact_Fuse: + this.GetEquipedArtifacts(level); + this.GetFuseItems(level, itemBag, filter); + break; + case XSysDefine.XSys_Artifact_Inscription: + this.GetEquipedArtifacts(level); + this.GetInscriptionItems(level, itemBag, filter); + break; + case XSysDefine.XSys_Artifact_Refined: + this.GetEquipedArtifacts(level); + this.GetRefinedItems(level, itemBag, filter); + break; + } + return this.m_itemList; + } + + public bool IsSelectUid(ulong uid) + { + bool result; + switch (this.m_sysType) + { + case XSysDefine.XSys_Artifact_Recast: + result = (ArtifactRecastDocument.Doc.LastSelectUid == uid); + break; + case XSysDefine.XSys_Artifact_Fuse: + result = (ArtifactFuseDocument.Doc.LastSelectUid == uid); + break; + case XSysDefine.XSys_Artifact_Inscription: + result = (ArtifactInscriptionDocument.Doc.LastSelectUid == uid); + break; + default: + result = true; + break; + } + return result; + } + + private void GetEquipedArtifacts(int level) + { + int num = 0; + for (int i = 0; i < XBagDocument.BagDoc.ArtifactBag.Length; i++) + { + XItem xitem = XBagDocument.BagDoc.ArtifactBag[i]; + bool flag = xitem == null || xitem.itemConf == null; + if (!flag) + { + bool flag2 = this.LevelDic.TryGetValue((int)xitem.itemConf.ReqLevel, out num); + if (flag2) + { + bool flag3 = num == level; + if (flag3) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)xitem.itemID); + bool flag4 = artifactListRowData != null && artifactListRowData.IsCanFuse == 1u; + if (flag4) + { + this.m_itemList.Add(xitem); + } + } + } + } + } + } + + private void GetComposeItems(int level, XBag bag, ulong filter) + { + int num = 0; + List intList = XSingleton.singleton.GetIntList("CanComposeArtifactQuanlity"); + for (int i = 0; i < bag.Count; i++) + { + bool flag = bag[i] == null; + if (!flag) + { + bool flag2 = this.LevelDic.TryGetValue((int)bag[i].itemConf.ReqLevel, out num); + if (flag2) + { + ulong num2 = 1UL << (int)bag[i].type; + bool flag3 = (num2 & filter) > 0UL && num == level; + if (flag3) + { + bool flag4 = bag[i].itemConf != null && intList.Contains((int)bag[i].itemConf.ItemQuality); + if (flag4) + { + this.m_itemList.Add(bag[i]); + } + } + } + } + } + } + + private void GetRecastItems(int level, XBag bag, ulong filter) + { + int num = 0; + for (int i = 0; i < bag.Count; i++) + { + bool flag = bag[i] == null; + if (!flag) + { + bool flag2 = this.LevelDic.TryGetValue((int)bag[i].itemConf.ReqLevel, out num); + if (flag2) + { + ulong num2 = 1UL << (int)bag[i].type; + bool flag3 = (num2 & filter) > 0UL && num == level; + if (flag3) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)bag[i].itemID); + bool flag4 = artifactListRowData != null && artifactListRowData.IsCanRecast == 1u; + if (flag4) + { + this.m_itemList.Add(bag[i]); + } + } + } + } + } + } + + private void GetFuseItems(int level, XBag bag, ulong filter) + { + int num = 0; + for (int i = 0; i < bag.Count; i++) + { + bool flag = bag[i] == null; + if (!flag) + { + bool flag2 = this.LevelDic.TryGetValue((int)bag[i].itemConf.ReqLevel, out num); + if (flag2) + { + ulong num2 = 1UL << (int)bag[i].type; + bool flag3 = (num2 & filter) > 0UL && num == level; + if (flag3) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)bag[i].itemID); + bool flag4 = artifactListRowData != null && artifactListRowData.IsCanFuse == 1u; + if (flag4) + { + this.m_itemList.Add(bag[i]); + } + } + } + } + } + } + + private void GetInscriptionItems(int level, XBag bag, ulong filter) + { + int num = 0; + ulong num2 = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.Inscription); + for (int i = 0; i < bag.Count; i++) + { + bool flag = bag[i] == null; + if (!flag) + { + bool flag2 = this.LevelDic.TryGetValue((int)bag[i].itemConf.ReqLevel, out num); + if (flag2) + { + ulong num3 = 1UL << (int)bag[i].type; + bool flag3 = (num3 & num2) > 0UL && num == level; + if (flag3) + { + this.m_itemList.Add(bag[i]); + } + else + { + num3 = 1UL << (int)bag[i].type; + bool flag4 = (num3 & filter) > 0UL && num == level; + if (flag4) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)bag[i].itemID); + bool flag5 = artifactListRowData != null && artifactListRowData.IsCanFuse == 1u; + if (flag5) + { + this.m_itemList.Add(bag[i]); + } + } + } + } + } + } + } + + private void GetRefinedItems(int level, XBag bag, ulong filter) + { + int num = 0; + for (int i = 0; i < bag.Count; i++) + { + bool flag = bag[i] == null; + if (!flag) + { + bool flag2 = this.LevelDic.TryGetValue((int)bag[i].itemConf.ReqLevel, out num); + if (flag2) + { + ulong num2 = 1UL << (int)bag[i].type; + bool flag3 = (num2 & filter) > 0UL && num == level; + if (flag3) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)bag[i].itemID); + bool flag4 = artifactListRowData != null && artifactListRowData.IsCanRefined == 1; + if (flag4) + { + this.m_itemList.Add(bag[i]); + } + } + } + } + } + } + + private List GetQuanlityList() + { + List result; + switch (this.m_sysType) + { + case XSysDefine.XSys_Artifact_Recast: + result = XSingleton.singleton.GetIntList("CanReCastArtifactQuanlity"); + break; + case XSysDefine.XSys_Artifact_Fuse: + result = XSingleton.singleton.GetIntList("CanFuseArtifactQuanlity"); + break; + case XSysDefine.XSys_Artifact_Inscription: + result = XSingleton.singleton.GetIntList("CanInscriptionArtifactQuanlity"); + break; + default: + result = new List(); + break; + } + return result; + } + + private int GetTargetLevel(int level, List lst) + { + bool flag = lst == null || lst.Count == 0; + int result; + if (flag) + { + result = 0; + } + else + { + int count = lst.Count; + int i = 0; + while (i < count) + { + bool flag2 = level < lst[i]; + if (flag2) + { + bool flag3 = i == 0; + if (flag3) + { + return lst[i]; + } + return lst[i - 1]; + } + else + { + i++; + } + } + result = lst[count - 1]; + } + return result; + } + + private void Clear() + { + bool flag = this.m_tabLevels != null; + if (flag) + { + this.m_tabLevels.Clear(); + this.m_tabLevels = null; + } + bool flag2 = this.m_levelDic != null; + if (flag2) + { + this.m_levelDic.Clear(); + this.m_levelDic = null; + } + } + + private bool OnItemChangeFinished(XEventArgs args) + { + bool flag = this.ItemsHandler != null && this.ItemsHandler.IsVisible(); + if (flag) + { + this.ItemsHandler.RefreshUi(); + } + return true; + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + bool flag = this.ItemsHandler != null && this.ItemsHandler.IsVisible(); + bool result; + if (flag) + { + bool bNew = xaddItemEventArgs.bNew; + if (bNew) + { + this.m_newItems.AddItems(xaddItemEventArgs.items, false); + } + result = false; + } + else + { + result = true; + } + return result; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + this.m_newItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, true); + return true; + } + + protected bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + bool flag = this.ItemsHandler != null && this.ItemsHandler.IsVisible() && xupdateItemEventArgs.item != null; + if (flag) + { + bool flag2 = this.IsSelectUid(xupdateItemEventArgs.item.uid); + if (flag2) + { + this.m_newItems.AddItem(xupdateItemEventArgs.item, false); + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDocument.cs.meta new file mode 100644 index 00000000..ac2e6502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactDeityStoveDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3019c34c2d7468b4093f568ed63c09f3 +timeCreated: 1611403520 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactDocument.cs new file mode 100644 index 00000000..2e1f0fd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactDocument.cs @@ -0,0 +1,421 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactDocument.uuID; + } + } + + public static ArtifactDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactDocument.uuID) as ArtifactDocument; + } + } + + public static ArtifactSuitMgr SuitMgr + { + get + { + return ArtifactDocument.m_suitMgr; + } + } + + public static List SuitLevelList + { + get + { + return ArtifactDocument.m_suitLevelList; + } + } + + public static ArtifactListTable ArtifactTab + { + get + { + return ArtifactDocument.m_artifactTab; + } + } + + public static EffectDesTable EffectDesTab + { + get + { + return ArtifactDocument.m_effectDesTab; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ArtifactListTable m_artifactTab = new ArtifactListTable(); + + private static ArtifactSuitTable m_artifactSuitTab = new ArtifactSuitTable(); + + private static EffectTable m_effectTab = new EffectTable(); + + private static EffectDesTable m_effectDesTab = new EffectDesTable(); + + private static ArtifactSuitMgr m_suitMgr = null; + + private static List m_suitLevelList = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactDocument.AsyncLoader.AddTask("Table/ArtifactList", ArtifactDocument.m_artifactTab, false); + ArtifactDocument.AsyncLoader.AddTask("Table/ArtifactSuit", ArtifactDocument.m_artifactSuitTab, false); + ArtifactDocument.AsyncLoader.AddTask("Table/EffectTable", ArtifactDocument.m_effectTab, false); + ArtifactDocument.AsyncLoader.AddTask("Table/EffectDesTable", ArtifactDocument.m_effectDesTab, false); + ArtifactDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + ArtifactDocument.m_suitMgr = new ArtifactSuitMgr(ArtifactDocument.m_artifactSuitTab.Table); + ArtifactDocument.m_suitLevelList.Clear(); + for (int i = 0; i < ArtifactDocument.m_artifactSuitTab.Table.Length; i++) + { + ArtifactSuitTable.RowData rowData = ArtifactDocument.m_artifactSuitTab.Table[i]; + bool flag = rowData != null && !ArtifactDocument.m_suitLevelList.Contains(rowData.Level); + if (flag) + { + ArtifactDocument.m_suitLevelList.Add(rowData.Level); + } + } + ArtifactDocument.m_artifactSuitTab = null; + ArtifactDocument.m_suitLevelList.Sort(); + HashSet hashSet = HashPool.Get(); + for (int j = 0; j < ArtifactDocument.m_effectTab.Table.Length; j++) + { + EffectTable.RowData rowData2 = ArtifactDocument.m_effectTab.Table[j]; + bool flag2 = rowData2.BuffID > 0u; + ulong item; + if (flag2) + { + item = ((ulong)rowData2.EffectID << 32 | (ulong)rowData2.BuffID); + } + else + { + item = ((ulong)rowData2.EffectID << 32 | (ulong)rowData2.SkillScript); + } + bool flag3 = hashSet.Contains(item); + if (flag3) + { + XSingleton.singleton.AddErrorLog2("Duplicated effect id {0} line: {1}", new object[] + { + rowData2.EffectID, + j + }); + } + else + { + hashSet.Add(item); + } + } + HashPool.Release(hashSet); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public static string GetArtifactEffectDes(uint effectId, List values) + { + bool flag = ArtifactDocument.m_effectTab == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + EffectDesTable.RowData byEffectID = ArtifactDocument.m_effectDesTab.GetByEffectID(effectId); + bool flag2 = byEffectID == null; + if (flag2) + { + result = string.Empty; + } + else + { + bool flag3 = values.Count > 0; + string text; + if (flag3) + { + string effectDes = byEffectID.EffectDes; + object[] args = values.ToArray(); + text = string.Format(effectDes, args); + } + else + { + text = byEffectID.EffectDes; + } + result = text; + } + } + return result; + } + + public static ArtifactListTable.RowData GetArtifactListRowData(uint artifactId) + { + return ArtifactDocument.m_artifactTab.GetByArtifactID(artifactId); + } + + public static ArtifactAttrRange GetArtifactAttrRange(uint artifactId, int slot, uint attrId, uint attrValue) + { + ArtifactAttrRange artifactAttrRange = new ArtifactAttrRange(); + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData(artifactId); + bool flag = artifactListRowData == null; + ArtifactAttrRange result; + if (flag) + { + result = artifactAttrRange; + } + else + { + SeqListRef seqListRef = default(SeqListRef); + switch (slot) + { + case 0: + seqListRef = artifactListRowData.Attributes1; + break; + case 1: + seqListRef = artifactListRowData.Attributes2; + break; + case 2: + seqListRef = artifactListRowData.Attributes3; + break; + } + for (int i = 0; i < (int)seqListRef.count; i++) + { + bool flag2 = seqListRef[i, 0] == 0u; + if (!flag2) + { + bool flag3 = seqListRef[i, 0] == attrId; + if (flag3) + { + bool flag4 = artifactAttrRange.Min == 0u; + if (flag4) + { + artifactAttrRange.Min = seqListRef[i, 1]; + } + else + { + bool flag5 = artifactAttrRange.Min > seqListRef[i, 1]; + if (flag5) + { + artifactAttrRange.Min = seqListRef[i, 1]; + } + } + bool flag6 = artifactAttrRange.Max == 0u; + if (flag6) + { + artifactAttrRange.Max = seqListRef[i, 2]; + } + else + { + bool flag7 = artifactAttrRange.Max < seqListRef[i, 2]; + if (flag7) + { + artifactAttrRange.Max = seqListRef[i, 2]; + } + } + } + } + } + result = artifactAttrRange; + } + return result; + } + + public void GetArtifactSkillEffectRowData(uint effectId, List outList) + { + for (int i = 0; i < ArtifactDocument.m_effectTab.Table.Length; i++) + { + bool flag = ArtifactDocument.m_effectTab.Table[i].EffectID == effectId; + if (flag) + { + outList.Add(ArtifactDocument.m_effectTab.Table[i]); + } + } + } + + public EffectTable.RowData GetArtifactSkillEffect(uint effectID, uint id) + { + ulong num = (ulong)effectID << 32 | (ulong)id; + for (int i = 0; i < ArtifactDocument.m_effectTab.Table.Length; i++) + { + EffectTable.RowData rowData = ArtifactDocument.m_effectTab.Table[i]; + bool flag = rowData.BuffID > 0u; + ulong num2; + if (flag) + { + num2 = ((ulong)rowData.EffectID << 32 | (ulong)rowData.BuffID); + } + else + { + num2 = ((ulong)rowData.EffectID << 32 | (ulong)rowData.SkillScript); + } + bool flag2 = num2 == num; + if (flag2) + { + return rowData; + } + } + return null; + } + + public static uint GetArtifactMinPPt(uint artifactId, XAttributes attributes) + { + uint num = 0u; + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData(artifactId); + bool flag = artifactListRowData == null; + uint result; + if (flag) + { + result = num; + } + else + { + bool flag2 = artifactListRowData.Attributes1.Count > 0; + if (flag2) + { + double num2 = double.MaxValue; + for (int i = 0; i < artifactListRowData.Attributes1.Count; i++) + { + double ppt = XSingleton.singleton.GetPPT(artifactListRowData.Attributes1[i, 0], artifactListRowData.Attributes1[i, 1], attributes, -1); + bool flag3 = ppt < num2; + if (flag3) + { + num2 = ppt; + } + } + num += (uint)num2; + } + bool flag4 = artifactListRowData.Attributes2.Count > 0; + if (flag4) + { + double num2 = double.MaxValue; + for (int j = 0; j < artifactListRowData.Attributes2.Count; j++) + { + double ppt2 = XSingleton.singleton.GetPPT(artifactListRowData.Attributes2[j, 0], artifactListRowData.Attributes2[j, 1], attributes, -1); + bool flag5 = ppt2 < num2; + if (flag5) + { + num2 = ppt2; + } + } + num += (uint)num2; + } + bool flag6 = artifactListRowData.Attributes3.Count > 0; + if (flag6) + { + double num2 = double.MaxValue; + for (int k = 0; k < artifactListRowData.Attributes3.Count; k++) + { + double ppt3 = XSingleton.singleton.GetPPT(artifactListRowData.Attributes3[k, 0], artifactListRowData.Attributes3[k, 1], attributes, -1); + bool flag7 = ppt3 < num2; + if (flag7) + { + num2 = ppt3; + } + } + num += (uint)num2; + } + result = num; + } + return result; + } + + public static uint GetArtifactMaxPPt(uint artifactId, XAttributes attributes) + { + uint num = 0u; + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData(artifactId); + bool flag = artifactListRowData == null; + uint result; + if (flag) + { + result = num; + } + else + { + bool flag2 = artifactListRowData.Attributes1.Count > 0; + if (flag2) + { + double num2 = 0.0; + for (int i = 0; i < artifactListRowData.Attributes1.Count; i++) + { + double ppt = XSingleton.singleton.GetPPT(artifactListRowData.Attributes1[i, 0], artifactListRowData.Attributes1[i, 2], attributes, -1); + bool flag3 = ppt > num2; + if (flag3) + { + num2 = ppt; + } + } + num += (uint)num2; + } + bool flag4 = artifactListRowData.Attributes2.Count > 0; + if (flag4) + { + double num2 = 0.0; + for (int j = 0; j < artifactListRowData.Attributes2.Count; j++) + { + double ppt2 = XSingleton.singleton.GetPPT(artifactListRowData.Attributes2[j, 0], artifactListRowData.Attributes2[j, 2], attributes, -1); + bool flag5 = ppt2 > num2; + if (flag5) + { + num2 = ppt2; + } + } + num += (uint)num2; + } + bool flag6 = artifactListRowData.Attributes3.Count > 0; + if (flag6) + { + double num2 = 0.0; + for (int k = 0; k < artifactListRowData.Attributes3.Count; k++) + { + double ppt3 = XSingleton.singleton.GetPPT(artifactListRowData.Attributes3[k, 0], artifactListRowData.Attributes3[k, 2], attributes, -1); + bool flag7 = ppt3 > num2; + if (flag7) + { + num2 = ppt3; + } + } + num += (uint)num2; + } + result = num; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactDocument.cs.meta new file mode 100644 index 00000000..a746b158 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46647ce35ecf68547a6699f9269cbaa7 +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs b/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs new file mode 100644 index 00000000..fbe5c988 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class ArtifactElementData : IComparable + { + public bool Show = false; + + public bool Redpoint = false; + + public uint ElementType = 0u; + + public List List = null; + + public int CompareTo(ArtifactElementData other) + { + int sortId = this.GetSortId(this.ElementType); + int sortId2 = this.GetSortId(other.ElementType); + return sortId - sortId2; + } + + private int GetSortId(uint elementType) + { + int result; + switch (elementType) + { + case 2121u: + result = 4; + break; + case 2122u: + result = 8; + break; + case 2123u: + result = 1; + break; + case 2124u: + result = 5; + break; + case 2125u: + result = 3; + break; + case 2126u: + result = 7; + break; + case 2127u: + result = 2; + break; + case 2128u: + result = 6; + break; + default: + result = 0; + break; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs.meta new file mode 100644 index 00000000..0db45e0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactElementData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0faa39d5cd19edd40951da2af0c44a71 +timeCreated: 1611403210 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactFuseDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactFuseDocument.cs new file mode 100644 index 00000000..0de1dda5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactFuseDocument.cs @@ -0,0 +1,287 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactFuseDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactFuseDocument.uuID; + } + } + + public static ArtifactFuseDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactFuseDocument.uuID) as ArtifactFuseDocument; + } + } + + public ulong FuseUid + { + get + { + return this.m_fuseUid; + } + } + + public ulong FusedUid + { + get + { + return this.m_fusedUid; + } + } + + public int FuseStoneItemId + { + get + { + bool flag = this.m_fuseStoneItemId == -1; + if (flag) + { + this.m_fuseStoneItemId = XSingleton.singleton.GetInt("FuseStoneItemId"); + } + return this.m_fuseStoneItemId; + } + } + + public ulong LastSelectUid + { + get + { + return this.m_lastSelectUid; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactFuseDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private ulong m_fuseUid = 0UL; + + private ulong m_fusedUid = 0UL; + + private int m_fuseStoneItemId = -1; + + private ulong m_lastSelectUid = 0UL; + + public bool UseFuseStone = true; + + public ArtifactFuseHandler Handler; + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactFuseDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.m_fuseUid > 0UL; + if (flag) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_fuseUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.m_fuseUid = 0UL; + } + } + bool flag3 = this.m_fusedUid > 0UL; + if (flag3) + { + XItem itemByUID2 = XBagDocument.BagDoc.GetItemByUID(this.m_fusedUid); + bool flag4 = itemByUID2 == null; + if (flag4) + { + this.m_fusedUid = 0UL; + } + } + this.RefreshUi(FuseEffectType.None); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void RefreshUi(FuseEffectType type = FuseEffectType.None) + { + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.RefreshUi(type); + } + ArtifactDeityStoveDocument.Doc.RefreshUi(); + } + + public bool IsSelectUid(ulong uid) + { + return this.m_fusedUid == uid || this.m_fuseUid == uid; + } + + public void ResetSelectUid(bool isRefeshUi, FuseEffectType type = FuseEffectType.None) + { + this.m_fuseUid = 0UL; + this.m_fusedUid = 0UL; + if (isRefeshUi) + { + this.RefreshUi(type); + } + } + + public void AddItem(ulong uid) + { + bool flag = this.m_fuseUid == 0UL; + if (flag) + { + this.m_fuseUid = uid; + } + else + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_fuseUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.m_fuseUid = uid; + } + else + { + bool flag3 = XBagDocument.BagDoc.ArtifactBag.HasItem(uid); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EquipedArtifactCannotFuse"), "fece00"); + return; + } + XItem itemByUID2 = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag4 = itemByUID2 == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog(string.Format("not find this uid = {0}", uid), null, null, null, null, null); + return; + } + bool flag5 = itemByUID.itemConf == null || itemByUID2.itemConf == null; + if (flag5) + { + return; + } + bool flag6 = itemByUID.itemConf.ItemQuality != itemByUID2.itemConf.ItemQuality; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseNotTips"), "fece00"); + return; + } + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)itemByUID.itemID); + bool flag7 = artifactListRowData == null; + if (flag7) + { + XSingleton.singleton.AddErrorLog(string.Format("artifactlist not find this itemId = {0}", itemByUID.itemID), null, null, null, null, null); + return; + } + ArtifactListTable.RowData artifactListRowData2 = ArtifactDocument.GetArtifactListRowData((uint)itemByUID2.itemID); + bool flag8 = artifactListRowData2 == null; + if (flag8) + { + XSingleton.singleton.AddErrorLog(string.Format("artifactlist not find this itemId = {0}", itemByUID2.itemID), null, null, null, null, null); + return; + } + bool flag9 = artifactListRowData.ArtifactPos != artifactListRowData2.ArtifactPos; + if (flag9) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseNotTips"), "fece00"); + return; + } + bool flag10 = this.m_fusedUid > 0UL; + if (flag10) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseRepleaseSuc"), "fece00"); + } + this.m_fusedUid = uid; + } + } + this.RefreshUi(FuseEffectType.None); + } + + public void TakeOut(ulong uid) + { + bool flag = uid == this.m_fuseUid; + if (flag) + { + this.m_fuseUid = 0UL; + } + else + { + bool flag2 = uid == this.m_fusedUid; + if (!flag2) + { + XSingleton.singleton.AddGreenLog("this item not put in uid = " + uid.ToString(), null, null, null, null, null); + return; + } + this.m_fusedUid = 0UL; + } + this.RefreshUi(FuseEffectType.None); + } + + public void ReqFuse() + { + this.m_lastSelectUid = this.m_fuseUid; + RpcC2G_ArtifactDeityStoveOp rpcC2G_ArtifactDeityStoveOp = new RpcC2G_ArtifactDeityStoveOp(); + rpcC2G_ArtifactDeityStoveOp.oArg.type = ArtifactDeityStoveOpType.ArtifactDeityStove_Fuse; + rpcC2G_ArtifactDeityStoveOp.oArg.uid1 = this.m_fuseUid; + rpcC2G_ArtifactDeityStoveOp.oArg.uid2 = this.m_fusedUid; + rpcC2G_ArtifactDeityStoveOp.oArg.isUsedStone = this.UseFuseStone; + XSingleton.singleton.Send(rpcC2G_ArtifactDeityStoveOp); + } + + public void OnReqFuseBack(ArtifactDeityStoveOpRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_ARTIFACT_FUSEFAILED; + if (flag2) + { + this.m_fusedUid = 0UL; + this.RefreshUi(FuseEffectType.Fail); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + else + { + this.ResetSelectUid(true, FuseEffectType.Sucess); + } + } + + public void ResetSetting() + { + DlgBase.singleton.ForceSetTipsValue(XTempTipDefine.OD_FUSE_CONFIRM, false); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_FUSE_CONFIRM, 0, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactFuseDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactFuseDocument.cs.meta new file mode 100644 index 00000000..90c605bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactFuseDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8747c4299570ca14f8aa1e313c176863 +timeCreated: 1611404078 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactInscriptionDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactInscriptionDocument.cs new file mode 100644 index 00000000..3ef45d1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactInscriptionDocument.cs @@ -0,0 +1,224 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactInscriptionDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactInscriptionDocument.uuID; + } + } + + public static ArtifactInscriptionDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactInscriptionDocument.uuID) as ArtifactInscriptionDocument; + } + } + + public ulong ArtifactUid + { + get + { + return this.m_artifactUid; + } + } + + public ulong InscriptionUid + { + get + { + return this.m_inscriptionUid; + } + } + + public ulong LastSelectUid + { + get + { + return this.m_lastSelectUid; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactInscriptionDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private ulong m_artifactUid = 0UL; + + private ulong m_inscriptionUid = 0UL; + + public ArtifactInscriptionHandler Handler; + + private ulong m_lastSelectUid = 0UL; + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactInscriptionDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.m_artifactUid > 0UL; + if (flag) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_artifactUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.m_artifactUid = 0UL; + } + } + bool flag3 = this.m_inscriptionUid > 0UL; + if (flag3) + { + XItem itemByUID2 = XBagDocument.BagDoc.GetItemByUID(this.m_inscriptionUid); + bool flag4 = itemByUID2 == null; + if (flag4) + { + this.m_inscriptionUid = 0UL; + } + } + this.RefreshUi(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void RefreshUi() + { + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.RefreshUi(); + } + ArtifactDeityStoveDocument.Doc.RefreshUi(); + } + + public bool IsSelectUid(ulong uid) + { + return this.m_artifactUid == uid || this.m_inscriptionUid == uid; + } + + public void ResetSelectUid(bool isRefeshUi) + { + this.m_artifactUid = 0UL; + this.m_inscriptionUid = 0UL; + if (isRefeshUi) + { + this.RefreshUi(); + } + } + + public void AddItem(ulong uid) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag = itemByUID == null; + if (!flag) + { + ulong num = 0UL; + bool flag2 = itemByUID.Type == ItemType.ARTIFACT; + if (flag2) + { + num = this.m_artifactUid; + this.m_artifactUid = uid; + } + else + { + bool flag3 = itemByUID.Type == ItemType.Inscription; + if (flag3) + { + num = this.m_inscriptionUid; + this.m_inscriptionUid = uid; + } + else + { + XSingleton.singleton.AddGreenLog("type error!", null, null, null, null, null); + } + } + bool flag4 = num > 0UL; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseRepleaseSuc"), "fece00"); + } + this.RefreshUi(); + } + } + + public void TakeOut(ulong uid) + { + bool flag = uid == this.m_artifactUid; + if (flag) + { + this.m_artifactUid = 0UL; + } + else + { + bool flag2 = uid == this.m_inscriptionUid; + if (!flag2) + { + XSingleton.singleton.AddGreenLog("this item not put in uid = " + uid.ToString(), null, null, null, null, null); + return; + } + this.m_inscriptionUid = 0UL; + } + this.RefreshUi(); + } + + public void ReqInscription() + { + this.m_lastSelectUid = this.m_artifactUid; + RpcC2G_ArtifactDeityStoveOp rpcC2G_ArtifactDeityStoveOp = new RpcC2G_ArtifactDeityStoveOp(); + rpcC2G_ArtifactDeityStoveOp.oArg.type = ArtifactDeityStoveOpType.ArtifactDeityStove_Inscription; + rpcC2G_ArtifactDeityStoveOp.oArg.uid1 = this.m_artifactUid; + rpcC2G_ArtifactDeityStoveOp.oArg.uid2 = this.m_inscriptionUid; + XSingleton.singleton.Send(rpcC2G_ArtifactDeityStoveOp); + } + + public void OnReqInscriptionBack(ArtifactDeityStoveOpRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("Inscription"), "fece00"); + this.ResetSelectUid(true); + } + } + + public void ResetSetting() + { + DlgBase.singleton.ForceSetTipsValue(XTempTipDefine.OD_INSCRIPTION_CONFIRM, false); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_INSCRIPTION_CONFIRM, 0, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactInscriptionDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactInscriptionDocument.cs.meta new file mode 100644 index 00000000..906ccb87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactInscriptionDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c259380c98151894cbd441d007c590a1 +timeCreated: 1611404493 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactPosition.cs b/Client/Assets/Scripts/XMainClient/ArtifactPosition.cs new file mode 100644 index 00000000..268ff532 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactPosition.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal enum ArtifactPosition + { + ARTIFACT_START, + Ansab = 0, + Grail, + Battleheart, + DragonHorn, + ARTIFACT_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactPosition.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactPosition.cs.meta new file mode 100644 index 00000000..e6ea0347 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 181c10159182fc24a804f13745ac1fcd +timeCreated: 1611403296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactRecastDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactRecastDocument.cs new file mode 100644 index 00000000..06fe10c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactRecastDocument.cs @@ -0,0 +1,164 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactRecastDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactRecastDocument.uuID; + } + } + + public static ArtifactRecastDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactRecastDocument.uuID) as ArtifactRecastDocument; + } + } + + public ulong SelectUid + { + get + { + return this.m_selectUid; + } + } + + public ulong LastSelectUid + { + get + { + return this.m_lastSelectUid; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactRecastDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private ulong m_selectUid = 0UL; + + private ulong m_lastSelectUid = 0UL; + + public ArtifactRecastHandler Handler; + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactRecastDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.m_selectUid > 0UL; + if (flag) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_selectUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.m_selectUid = 0UL; + } + } + this.RefreshUi(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void RefreshUi() + { + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.RefreshUi(); + } + ArtifactDeityStoveDocument.Doc.RefreshUi(); + } + + public bool IsSelectUid(ulong uid) + { + return this.m_selectUid == uid; + } + + public void ResetSelectUid(bool isRefeshUi) + { + this.m_selectUid = 0UL; + if (isRefeshUi) + { + this.RefreshUi(); + } + } + + public void AddItem(ulong uid) + { + bool flag = this.m_selectUid > 0UL; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseRepleaseSuc"), "fece00"); + } + this.m_selectUid = uid; + this.RefreshUi(); + } + + public void TakeOut(ulong uid) + { + this.m_selectUid = 0UL; + this.RefreshUi(); + } + + public void ReqRecast() + { + this.m_lastSelectUid = this.m_selectUid; + RpcC2G_ArtifactDeityStoveOp rpcC2G_ArtifactDeityStoveOp = new RpcC2G_ArtifactDeityStoveOp(); + rpcC2G_ArtifactDeityStoveOp.oArg.type = ArtifactDeityStoveOpType.ArtifactDeityStove_Recast; + rpcC2G_ArtifactDeityStoveOp.oArg.uid1 = this.m_selectUid; + XSingleton.singleton.Send(rpcC2G_ArtifactDeityStoveOp); + } + + public void OnReqRecastBack(ArtifactDeityStoveOpRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("RecastSuccess"), "fece00"); + this.ResetSelectUid(true); + } + } + + public void ResetSetting() + { + DlgBase.singleton.ForceSetTipsValue(XTempTipDefine.OD_RECAST_CONFIRM, false); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_RECAST_CONFIRM, 0, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactRecastDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactRecastDocument.cs.meta new file mode 100644 index 00000000..425f292f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactRecastDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cbf37040c73ac4a42a97ad69aa810c71 +timeCreated: 1611404547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactRefinedDocument.cs b/Client/Assets/Scripts/XMainClient/ArtifactRefinedDocument.cs new file mode 100644 index 00000000..9513bd32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactRefinedDocument.cs @@ -0,0 +1,209 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactRefinedDocument : XDocComponent + { + public override uint ID + { + get + { + return ArtifactRefinedDocument.uuID; + } + } + + public static ArtifactRefinedDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(ArtifactRefinedDocument.uuID) as ArtifactRefinedDocument; + } + } + + public ulong SelectUid + { + get + { + return this.m_selectUid; + } + } + + public List BeforeAttrList + { + get + { + return this.m_beforeAttrList; + } + } + + public ulong LastSelectUid + { + get + { + return this.m_lastSelectUid; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArtifactRefinedDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private ulong m_selectUid = 0UL; + + private List m_beforeAttrList = new List(); + + private ulong m_lastSelectUid = 0UL; + + public ArtifactRefinedHandler Handler; + + public static void Execute(OnLoadedCallback callback = null) + { + ArtifactRefinedDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.m_selectUid > 0UL; + if (flag) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_selectUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.m_selectUid = 0UL; + } + } + this.RefreshUi(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void RefreshUi() + { + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.RefreshUi(); + } + ArtifactDeityStoveDocument.Doc.RefreshUi(); + } + + public bool IsSelectUid(ulong uid) + { + return this.m_selectUid == uid; + } + + public void ResetSelectUid(bool isRefeshUi) + { + this.m_selectUid = 0UL; + if (isRefeshUi) + { + this.RefreshUi(); + } + } + + public void AddItem(ulong uid) + { + bool flag = this.m_selectUid > 0UL; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseRepleaseSuc"), "fece00"); + } + this.m_selectUid = uid; + this.RefreshUi(); + } + + public void TakeOut(ulong uid) + { + this.m_selectUid = 0UL; + this.RefreshUi(); + } + + public void ReqRefined(ArtifactDeityStoveOpType type) + { + this.m_lastSelectUid = this.m_selectUid; + this.SetBeforeAttr(); + RpcC2G_ArtifactDeityStoveOp rpcC2G_ArtifactDeityStoveOp = new RpcC2G_ArtifactDeityStoveOp(); + rpcC2G_ArtifactDeityStoveOp.oArg.type = type; + rpcC2G_ArtifactDeityStoveOp.oArg.uid1 = this.m_selectUid; + XSingleton.singleton.Send(rpcC2G_ArtifactDeityStoveOp); + } + + public void OnReqRefinedBack(ArtifactDeityStoveOpType type, ArtifactDeityStoveOpRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + switch (type) + { + case ArtifactDeityStoveOpType.ArtifactDeityStove_Refine: + { + bool flag2 = this.Handler != null && this.Handler.IsVisible(); + if (flag2) + { + this.Handler.ShowReplaceHandler(); + } + break; + } + case ArtifactDeityStoveOpType.ArtifactDeityStove_RefineRetain: + this.RefreshUi(); + break; + case ArtifactDeityStoveOpType.ArtifactDeityStove_RefineReplace: + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FuseRepleaseSuc"), "fece00"); + this.RefreshUi(); + break; + } + } + } + + private void SetBeforeAttr() + { + this.m_beforeAttrList.Clear(); + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_selectUid); + bool flag = itemByUID == null; + if (!flag) + { + XArtifactItem xartifactItem = itemByUID as XArtifactItem; + for (int i = 0; i < xartifactItem.RandAttrInfo.RandAttr.Count; i++) + { + XItemChangeAttr item = xartifactItem.RandAttrInfo.RandAttr[i]; + this.m_beforeAttrList.Add(item); + } + } + } + + public void ResetSetting() + { + DlgBase.singleton.ForceSetTipsValue(XTempTipDefine.OD_REFINED_CONFIRM, false); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_REFINED_CONFIRM, 0, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactRefinedDocument.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactRefinedDocument.cs.meta new file mode 100644 index 00000000..33b22d38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactRefinedDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb3b2f78f0cd6224db14bc0da416a2d5 +timeCreated: 1611404782 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSetHandler.cs b/Client/Assets/Scripts/XMainClient/ArtifactSetHandler.cs new file mode 100644 index 00000000..d9123070 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSetHandler.cs @@ -0,0 +1,548 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactSetHandler : DlgHandlerBase + { + private XArtifactCreateDocument m_doc; + + private XPurchaseDocument m_purchaseDoc; + + private IXUIWrapContent m_itemListWrapContent; + + private IXUIScrollView m_itemListScrollView; + + private IXUICheckBox m_curItemType2nd; + + private IXUITable m_itemTypeTable; + + private IXUIScrollView m_itemTypeScrollView; + + private IXUICheckBox m_levelCheck; + + private XUIPool m_itemType1stPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_itemType2ndPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Dictionary m_elementRedpointDic; + + private Dictionary m_artifactSuitIDRedpointDic; + + private List m_suitDataList = new List(); + + private string m_noLevelLimitString; + + protected override void Init() + { + base.Init(); + this.m_doc = XArtifactCreateDocument.Doc; + this.m_purchaseDoc = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + this.m_doc.Handler = this; + this.m_curItemType2nd = null; + this.InitItemType(); + this.InitItemList(); + this.m_levelCheck = (base.PanelObject.transform.Find("BtnHighPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_levelCheck.ForceSetFlag(!this.m_doc.OnlyShowCurFit); + this.m_noLevelLimitString = XStringDefineProxy.GetString("EQUIPCREATE_EQUIPSET_NO_LEVEL_LIMIT"); + this.m_elementRedpointDic = new Dictionary(); + this.m_artifactSuitIDRedpointDic = new Dictionary(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_levelCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnLevelCheckClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.FillContent(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void InitItemList() + { + Transform transform = base.PanelObject.transform.Find("ItemList"); + this.m_itemListScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = transform.Find("WrapContent"); + this.m_itemListWrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_itemListWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.RankWrapItemListUpdated)); + } + + private void InitItemType() + { + Transform transform = base.PanelObject.transform.Find("TypeList"); + this.m_itemTypeScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = transform.Find("Table"); + this.m_itemTypeTable = (transform.GetComponent("XUITable") as IXUITable); + transform = base.PanelObject.transform.Find("TypeList/Table/LevelOneTpl"); + this.m_itemType1stPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + transform = base.PanelObject.transform.Find("TypeList/Table/LevelTwoTpl"); + this.m_itemType2ndPool.SetupPool(transform.parent.gameObject, transform.gameObject, 16u, false); + } + + private void FillContent() + { + this.FillItemType(); + } + + public void FillItemType() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.m_doc.ArtifactElementDataList == null; + if (!flag2) + { + List list = new List(); + for (int i = 0; i < this.m_doc.ArtifactElementDataList.Count; i++) + { + bool show = this.m_doc.ArtifactElementDataList[i].Show; + if (show) + { + list.Add(this.m_doc.ArtifactElementDataList[i]); + } + } + this.m_elementRedpointDic.Clear(); + this.m_artifactSuitIDRedpointDic.Clear(); + this.m_itemType1stPool.ReturnAll(false); + this.m_itemType2ndPool.ReturnAll(true); + this.m_curItemType2nd = null; + List list2 = new List(); + for (int j = 0; j < list.Count; j++) + { + GameObject gameObject = this.m_itemType1stPool.FetchGameObject(false); + gameObject.name = j.ToString(); + this.m_elementRedpointDic[list[j].ElementType] = gameObject.transform.Find("RedPoint").gameObject; + IXUISprite ixuisprite = gameObject.transform.Find("Switch").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemType1st)); + IXUILabel ixuilabel = gameObject.transform.Find("SelectLab").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = ixuilabel; + XStringTable singleton = XSingleton.singleton; + XAttributeDefine elementType = (XAttributeDefine)list[j].ElementType; + ixuilabel2.SetText(singleton.GetString(elementType.ToString())); + IXUILabel ixuilabel3 = gameObject.transform.Find("UnSelectLab").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = ixuilabel3; + XStringTable singleton2 = XSingleton.singleton; + elementType = (XAttributeDefine)list[j].ElementType; + ixuilabel4.SetText(singleton2.GetString(elementType.ToString())); + Transform transform = gameObject.transform.Find("ChildList"); + bool flag3 = transform.localScale.y == 0f; + if (flag3) + { + ixuisprite.SetSprite("l_add_01"); + IXUITweenTool ixuitweenTool = ixuisprite.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + list2.Clear(); + for (int k = 0; k < list[j].List.Count; k++) + { + bool show2 = list[j].List[k].Show; + if (show2) + { + list2.Add(list[j].List[k]); + } + } + for (int l = 0; l < list2.Count; l++) + { + GameObject gameObject2 = this.m_itemType2ndPool.FetchGameObject(false); + gameObject2.name = list2[l].SuitData.SuitId.ToString(); + this.m_artifactSuitIDRedpointDic[list2[l].SuitData.SuitId] = gameObject2.transform.Find("RedPoint").gameObject; + IXUICheckBox ixuicheckBox = gameObject2.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)list2[l].SuitData.SuitId; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickItemType2nd)); + gameObject2.transform.parent = transform; + gameObject2.transform.localScale = Vector3.one; + gameObject2.transform.localPosition = new Vector3(0f, -((float)transform.childCount - 0.5f) * (float)ixuicheckBox.spriteHeight, 0f); + IXUILabel ixuilabel5 = gameObject2.transform.Find("SelectLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetText(string.Format(XSingleton.singleton.GetString("LEVEL"), list2[l].Level)); + IXUILabel ixuilabel6 = gameObject2.transform.Find("UnSelectLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel6.SetText(string.Format(XSingleton.singleton.GetString("LEVEL"), list2[l].Level)); + ixuicheckBox.ForceSetFlag(false); + bool flag4 = j == 0 && l == 0; + if (flag4) + { + this.m_curItemType2nd = ixuicheckBox; + ixuicheckBox.ForceSetFlag(true); + this.RefreshItemList(); + ixuilabel5.gameObject.SetActive(true); + ixuilabel6.gameObject.SetActive(false); + ixuilabel.gameObject.SetActive(true); + ixuilabel3.gameObject.SetActive(false); + } + else + { + ixuicheckBox.ForceSetFlag(false); + ixuilabel5.gameObject.SetActive(false); + ixuilabel6.gameObject.SetActive(true); + bool flag5 = j != 0; + if (flag5) + { + ixuilabel.gameObject.SetActive(false); + ixuilabel3.gameObject.SetActive(true); + } + } + } + } + this.m_itemTypeTable.RePositionNow(); + this.RefreshRedPoint(); + } + } + } + + public void RefreshRedPoint() + { + bool flag = !base.IsVisible() || 0 >= this.m_itemType1stPool.ActiveCount; + if (!flag) + { + foreach (KeyValuePair keyValuePair in this.m_elementRedpointDic) + { + keyValuePair.Value.SetActive(false); + } + foreach (KeyValuePair keyValuePair2 in this.m_artifactSuitIDRedpointDic) + { + keyValuePair2.Value.SetActive(false); + } + GameObject gameObject = null; + GameObject gameObject2 = null; + List artifactElementDataList = this.m_doc.ArtifactElementDataList; + for (int i = 0; i < artifactElementDataList.Count; i++) + { + bool flag2 = this.m_elementRedpointDic.TryGetValue(artifactElementDataList[i].ElementType, out gameObject); + if (flag2) + { + gameObject.SetActive(artifactElementDataList[i].Redpoint); + } + for (int j = 0; j < artifactElementDataList[i].List.Count; j++) + { + bool flag3 = this.m_artifactSuitIDRedpointDic.TryGetValue(artifactElementDataList[i].List[j].SuitData.SuitId, out gameObject2); + if (flag3) + { + gameObject2.SetActive(artifactElementDataList[i].List[j].Redpoint); + } + } + } + } + } + + private void RankWrapItemListUpdated(Transform t, int index) + { + ArtifactSingleData artifactSuitData = this.GetArtifactSuitData(index); + t.name = index.ToString(); + EquipSetItemView equipSetItemView = new EquipSetItemView(); + equipSetItemView.FindFrom(t); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)artifactSuitData.ItemData.ArtifactID); + bool isBind = artifactSuitData.ItemComposeData.IsBind; + bool flag = !itemConf.CanTrade; + if (flag) + { + isBind = true; + } + EquipSetItemBaseView.stEquipInfoParam param; + param.isShowTooltip = true; + param.playerProf = 0; + equipSetItemView.SetItemInfo((int)artifactSuitData.ItemData.ArtifactID, param, isBind); + equipSetItemView.lbLevel.SetText(this.GetLevelString(artifactSuitData.ItemComposeData.Level)); + bool flag2 = true; + int num = -1; + bool flag3 = artifactSuitData.ItemComposeData.SrcItem1[0] <= 0; + if (flag3) + { + equipSetItemView.goItem1.SetActive(false); + } + else + { + bool flag4 = this.RankWrapItemListUpdatedNeedItem(equipSetItemView.goItem1, equipSetItemView.lbItemCount1, artifactSuitData.ItemComposeData.SrcItem1[0], artifactSuitData.ItemComposeData.SrcItem1[1]); + flag2 = (flag2 && flag4); + bool flag5 = !flag4; + if (flag5) + { + num = artifactSuitData.ItemComposeData.SrcItem1[0]; + } + } + bool flag6 = artifactSuitData.ItemComposeData.SrcItem2[1] <= 0; + if (flag6) + { + equipSetItemView.goItem2.SetActive(false); + } + else + { + bool flag4 = this.RankWrapItemListUpdatedNeedItem(equipSetItemView.goItem2, equipSetItemView.lbItemCount2, artifactSuitData.ItemComposeData.SrcItem2[0], artifactSuitData.ItemComposeData.SrcItem2[1]); + flag2 = (flag2 && flag4); + bool flag7 = !flag4; + if (flag7) + { + num = artifactSuitData.ItemComposeData.SrcItem2[0]; + } + } + bool flag8 = artifactSuitData.ItemComposeData.SrcItem3[1] <= 0; + if (flag8) + { + equipSetItemView.goItem3.SetActive(false); + } + else + { + bool flag4 = this.RankWrapItemListUpdatedNeedItem(equipSetItemView.goItem3, equipSetItemView.lbItemCount3, artifactSuitData.ItemComposeData.SrcItem3[0], artifactSuitData.ItemComposeData.SrcItem3[1]); + flag2 = (flag2 && flag4); + bool flag9 = !flag4; + if (flag9) + { + num = artifactSuitData.ItemComposeData.SrcItem3[0]; + } + } + bool flag10 = 0 >= artifactSuitData.ItemComposeData.SrcItem4[1]; + if (flag10) + { + equipSetItemView.goItem4.SetActive(false); + } + else + { + bool flag4 = this.RankWrapItemListUpdatedNeedItem(equipSetItemView.goItem4, equipSetItemView.lbItemCount4, artifactSuitData.ItemComposeData.SrcItem4[0], artifactSuitData.ItemComposeData.SrcItem4[1]); + flag2 = (flag2 && flag4); + bool flag11 = !flag4; + if (flag11) + { + num = artifactSuitData.ItemComposeData.SrcItem4[0]; + } + } + bool flag12 = artifactSuitData.ItemComposeData.Coin > 0; + if (flag12) + { + equipSetItemView.lbCost.SetText(artifactSuitData.ItemComposeData.Coin.ToString()); + } + else + { + equipSetItemView.lbCost.SetText("0"); + } + bool flag13 = flag2; + if (flag13) + { + equipSetItemView.btnCreate.SetEnable(true, false); + equipSetItemView.btnCreate.ID = (ulong)((long)artifactSuitData.ItemComposeData.ID); + equipSetItemView.btnCreate.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickItemCreateButton)); + } + else + { + equipSetItemView.btnCreate.SetEnable(true, false); + equipSetItemView.btnCreate.ID = (ulong)((long)num); + equipSetItemView.btnCreate.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGetNeedItemButton)); + } + equipSetItemView.goRedpoint.SetActive(artifactSuitData.Redpoint); + } + + private bool RankWrapItemListUpdatedNeedItem(GameObject goItem, IXUILabel lbCount, int needID, int needCount) + { + goItem.SetActive(true); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(needID); + XSingleton.singleton.normalItemDrawer.DrawItem(goItem, needID, 0, false); + IXUISprite ixuisprite = goItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)needID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnNeedItemClick)); + bool flag = itemCount >= (ulong)((long)needCount); + bool result; + if (flag) + { + lbCount.SetText(string.Format("[{0}]{1}/{2}[-]", XStringDefineProxy.GetString("ZongColor"), itemCount, needCount)); + result = true; + } + else + { + lbCount.SetText(string.Format("[{0}]{1}[-][{2}]/{3}[-]", new object[] + { + XStringDefineProxy.GetString("NotEnoughColor"), + itemCount, + XStringDefineProxy.GetString("ZongColor"), + needCount + })); + result = false; + } + return result; + } + + public void RefreshItemList(List uiList) + { + bool flag = !base.IsVisible() || uiList == null; + if (!flag) + { + this.m_suitDataList = uiList; + this.m_itemListWrapContent.SetContentCount(uiList.Count, false); + this.m_itemListScrollView.ResetPosition(); + } + } + + public void RefreshItemList() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.m_curItemType2nd != null; + if (flag2) + { + this.OnClickItemType2nd(this.m_curItemType2nd); + } + } + } + + private ArtifactSingleData GetArtifactSuitData(int index) + { + bool flag = this.m_suitDataList == null || index >= this.m_suitDataList.Count; + ArtifactSingleData result; + if (flag) + { + result = null; + } + else + { + result = this.m_suitDataList[index]; + } + return result; + } + + private string GetLevelString(int _level) + { + bool flag = _level > 0; + string result; + if (flag) + { + result = _level.ToString(); + } + else + { + result = this.m_noLevelLimitString; + } + return result; + } + + private void SetSelectStatus(bool isSelected) + { + this.m_curItemType2nd.gameObject.transform.Find("UnSelectLab").gameObject.SetActive(!isSelected); + this.m_curItemType2nd.gameObject.transform.Find("SelectLab").gameObject.SetActive(isSelected); + Transform parent = this.m_curItemType2nd.gameObject.transform.parent.parent; + parent.Find("UnSelectLab").gameObject.SetActive(!isSelected); + parent.Find("SelectLab").gameObject.SetActive(isSelected); + } + + private void OnClickItemType1st(IXUISprite sp) + { + bool flag = sp.spriteName == "l_add_00"; + if (flag) + { + sp.SetSprite("l_add_01"); + } + else + { + sp.SetSprite("l_add_00"); + } + } + + private bool OnClickItemType2nd(IXUICheckBox cb) + { + bool flag = !cb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.m_curItemType2nd != null; + if (flag2) + { + this.SetSelectStatus(false); + } + this.m_curItemType2nd = cb; + this.SetSelectStatus(true); + List equipSuitList = this.m_doc.GetEquipSuitList((uint)cb.ID); + this.RefreshItemList(equipSuitList); + result = true; + } + return result; + } + + private bool OnClickItemCreateButton(IXUIButton btn) + { + int num = (int)btn.ID; + ItemComposeTable.RowData itemConposeDataByID = XEquipCreateDocument.GetItemConposeDataByID(num); + bool flag = itemConposeDataByID != null; + if (flag) + { + XEquipCreateDocument.Doc.CurUid = 0UL; + int level = (int)XSingleton.singleton.XPlayerData.Level; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + bool flag2 = (long)itemConposeDataByID.Coin <= (long)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.GOLD); + if (flag2) + { + VIPTable.RowData byVIP = specificDocument.VIPReader.GetByVIP(vipLevel); + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT); + List list = new List(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref list); + bool flag3 = (long)list.Count >= (long)((ulong)byVIP.ArtifactMax); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactmBagFull"), "fece00"); + return true; + } + DlgBase.singleton.equipSetCreateConfirmHandler.SetVisible(true); + DlgBase.singleton.equipSetCreateConfirmHandler.SetEquipInfo(num); + } + else + { + XPurchaseDocument specificDocument2 = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + XPurchaseInfo purchaseInfo = specificDocument2.GetPurchaseInfo(level, vipLevel, ItemEnum.GOLD); + bool flag4 = purchaseInfo.totalBuyNum > purchaseInfo.curBuyNum; + if (flag4) + { + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.GOLD); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLotteryGoldNotEnough"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EQUIPCREATE_COIN_CANNOT_EXCHANGE"), "fece00"); + } + } + } + return true; + } + + private bool OnClickGetNeedItemButton(IXUIButton btn) + { + XSingleton.singleton.ShowItemAccess((int)btn.ID, null); + return true; + } + + private void OnNeedItemClick(IXUISprite item) + { + XSingleton.singleton.ShowItemAccess((int)item.ID, null); + } + + private bool OnLevelCheckClicked(IXUICheckBox box) + { + this.m_doc.OnlyShowCurFit = !this.m_doc.OnlyShowCurFit; + this.FillItemType(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSetHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactSetHandler.cs.meta new file mode 100644 index 00000000..445264ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSetHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7bf631c9db8f674a9abd97c91aea88b +timeCreated: 1611404750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSingleData.cs b/Client/Assets/Scripts/XMainClient/ArtifactSingleData.cs new file mode 100644 index 00000000..86371196 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSingleData.cs @@ -0,0 +1,93 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactSingleData : IComparable + { + public int CompareValue + { + get + { + bool flag = this.ItemComposeData == null; + int result; + if (flag) + { + result = int.MinValue; + } + else + { + int num = (int)XBagDocument.BagDoc.GetItemCount(this.ItemComposeData.SrcItem1[0]) - this.ItemComposeData.SrcItem1[1]; + bool flag2 = num < 0; + if (flag2) + { + result = num; + } + else + { + int num2 = (int)XBagDocument.BagDoc.GetItemCount(this.ItemComposeData.SrcItem2[0]) - this.ItemComposeData.SrcItem2[1]; + bool flag3 = num2 < 0; + if (flag3) + { + result = num2; + } + else + { + int num3 = (int)XBagDocument.BagDoc.GetItemCount(this.ItemComposeData.SrcItem3[0]) - this.ItemComposeData.SrcItem3[1]; + bool flag4 = num3 < 0; + if (flag4) + { + result = num3; + } + else + { + int num4 = (int)XBagDocument.BagDoc.GetItemCount(XEquipCreateDocument.CoinId) - this.ItemComposeData.Coin; + bool flag5 = num4 < 0; + if (flag5) + { + result = num4; + } + else + { + result = num + num2 + num3 + num4; + } + } + } + } + } + return result; + } + } + + public bool Redpoint = false; + + public ArtifactListTable.RowData ItemData = null; + + public ItemComposeTable.RowData ItemComposeData = null; + + public int CompareTo(object _other) + { + ArtifactSingleData artifactSingleData = _other as ArtifactSingleData; + bool flag = this.ItemComposeData != null && artifactSingleData.ItemComposeData != null; + if (flag) + { + bool flag2 = this.ItemComposeData.Level != artifactSingleData.ItemComposeData.Level; + if (flag2) + { + return this.ItemComposeData.Level - artifactSingleData.ItemComposeData.Level; + } + } + bool flag3 = this.CompareValue >= artifactSingleData.CompareValue; + int result; + if (flag3) + { + result = 1; + } + else + { + result = -1; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSingleData.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactSingleData.cs.meta new file mode 100644 index 00000000..ca93060c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSingleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62f6e767c3295d3468e28f1f705eed0c +timeCreated: 1611403843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSuit.cs b/Client/Assets/Scripts/XMainClient/ArtifactSuit.cs new file mode 100644 index 00000000..413681e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSuit.cs @@ -0,0 +1,170 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactSuit + { + public HashSet Artifacts + { + get + { + bool flag = this.m_artifacts == null; + if (flag) + { + bool flag2 = ArtifactDocument.ArtifactTab != null; + if (flag2) + { + this.m_artifacts = new HashSet(); + this.GetSuitArtifacts(ref this.m_artifacts); + } + } + return this.m_artifacts; + } + } + + public int EffectsNum + { + get + { + bool flag = this.m_effectsNum == -1; + if (flag) + { + this.m_effectsNum = 0; + for (int i = 0; i < this.effects.Length; i++) + { + bool flag2 = this.effects[i].count > 0; + if (flag2) + { + this.m_effectsNum++; + } + } + } + return this.m_effectsNum; + } + } + + private HashSet m_artifacts = null; + + public uint Id = 0u; + + public uint Level = 0u; + + public uint SuitId = 0u; + + public uint ElementType = 0u; + + public byte SuitQuality = 0; + + public bool IsCreateShow = false; + + public uint MaxSuitEffectCount = 0u; + + public string Name = string.Empty; + + public SeqListRef[] effects = new SeqListRef[XBagDocument.ArtifactMax + 3]; + + public HashSet activeCount = new HashSet(); + + private int m_effectsNum = -1; + + private void GetSuitArtifacts(ref HashSet sets) + { + sets.Clear(); + for (int i = 0; i < ArtifactDocument.ArtifactTab.Table.Length; i++) + { + ArtifactListTable.RowData rowData = ArtifactDocument.ArtifactTab.Table[i]; + bool flag = rowData == null; + if (!flag) + { + bool flag2 = rowData.ArtifactSuit == this.Id; + if (flag2) + { + sets.Add(rowData.ArtifactID); + } + } + } + } + + public int GetEquipedSuitCount(XBodyBag artifactsOnBody) + { + int num = 0; + bool flag = artifactsOnBody.Length != XBagDocument.ArtifactMax; + int result; + if (flag) + { + result = 0; + } + else + { + for (int i = 0; i < XBagDocument.ArtifactMax; i++) + { + XItem xitem = artifactsOnBody[i]; + bool flag2 = xitem != null && this.Artifacts != null && this.Artifacts.Contains((uint)xitem.itemID); + if (flag2) + { + num++; + } + } + result = num; + } + return result; + } + + public List GetArtifactSuitPos(XBodyBag artifactsOnBody) + { + bool flag = artifactsOnBody.Length != XBagDocument.ArtifactMax; + List result; + if (flag) + { + result = null; + } + else + { + List list = new List(); + for (int i = 0; i < XBagDocument.ArtifactMax; i++) + { + XItem xitem = artifactsOnBody[i]; + bool flag2 = xitem != null && this.Artifacts != null && this.Artifacts.Contains((uint)xitem.itemID); + if (flag2) + { + list.Add(i); + } + } + result = list; + } + return result; + } + + public bool WillChangeEquipedCount(int newItemID, int oldItemID) + { + bool flag = this.Artifacts.Contains((uint)newItemID); + bool flag2 = this.Artifacts.Contains((uint)oldItemID); + return flag ^ flag2; + } + + public bool WillChangeEquipedCount(int itemid, XBodyBag equipsOnBody) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)itemid); + bool flag = artifactListRowData == null; + bool result; + if (flag) + { + result = false; + } + else + { + XItem xitem = equipsOnBody[(int)artifactListRowData.ArtifactPos]; + bool flag2 = xitem == null; + result = (flag2 || this.WillChangeEquipedCount(itemid, xitem.itemID)); + } + return result; + } + + public bool IsEffectJustActivated(int equipCount) + { + return this.activeCount.Contains(equipCount); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSuit.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactSuit.cs.meta new file mode 100644 index 00000000..9e257aa4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ac7a43940cd9e64d8f36031bd550e19 +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSuitData.cs b/Client/Assets/Scripts/XMainClient/ArtifactSuitData.cs new file mode 100644 index 00000000..5269e95c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSuitData.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class ArtifactSuitData : IComparable + { + public bool Show = false; + + public bool Redpoint = false; + + public uint Level = 0u; + + public ArtifactSuit SuitData; + + public List SuitItemList; + + public int CompareTo(ArtifactSuitData other) + { + return (int)(other.Level - this.Level); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSuitData.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactSuitData.cs.meta new file mode 100644 index 00000000..59fec0e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSuitData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d53d203f44f6e9b42bd9723120b3c3d2 +timeCreated: 1611404626 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSuitLevel.cs b/Client/Assets/Scripts/XMainClient/ArtifactSuitLevel.cs new file mode 100644 index 00000000..ab7cec45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSuitLevel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class ArtifactSuitLevel + { + public bool IsDefultSelect = false; + + public uint SuitLevel = 0u; + + public int DefultNum = 0; + + public HashSet SuitIdList = new HashSet(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSuitLevel.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactSuitLevel.cs.meta new file mode 100644 index 00000000..cadea236 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSuitLevel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb54558be11f14441ab349cd921c2a2c +timeCreated: 1611404545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSuitMgr.cs b/Client/Assets/Scripts/XMainClient/ArtifactSuitMgr.cs new file mode 100644 index 00000000..95e3c3a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSuitMgr.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactSuitMgr + { + public List Suits + { + get + { + return this.m_Suits; + } + } + + private List m_Suits = new List(); + + public ArtifactSuitMgr(ArtifactSuitTable.RowData[] datas) + { + foreach (ArtifactSuitTable.RowData rowData in datas) + { + ArtifactSuit artifactSuit = new ArtifactSuit(); + artifactSuit.Id = rowData.ArtifactSuitID; + artifactSuit.Name = rowData.Name; + artifactSuit.Level = rowData.Level; + artifactSuit.SuitId = rowData.ArtifactSuitID; + artifactSuit.ElementType = rowData.ElementType; + artifactSuit.SuitQuality = rowData.SuitQuality; + artifactSuit.IsCreateShow = (rowData.IsCreateShow != 0); + artifactSuit.effects[1] = default(SeqListRef); + artifactSuit.effects[2] = ((rowData.Effect2.Count > 0) ? rowData.Effect2 : default(SeqListRef)); + artifactSuit.effects[3] = ((rowData.Effect3.Count > 0) ? rowData.Effect3 : default(SeqListRef)); + artifactSuit.effects[4] = ((rowData.Effect4.Count > 0) ? rowData.Effect4 : default(SeqListRef)); + artifactSuit.effects[5] = ((rowData.Effect5.Count > 0) ? rowData.Effect5 : default(SeqListRef)); + artifactSuit.effects[6] = ((rowData.Effect6.Count > 0) ? rowData.Effect6 : default(SeqListRef)); + for (int j = 0; j < artifactSuit.effects.Length; j++) + { + bool flag = artifactSuit.effects[j].Count > 0; + if (flag) + { + artifactSuit.activeCount.Add(j); + artifactSuit.MaxSuitEffectCount = (uint)j; + } + } + this.m_Suits.Add(artifactSuit); + } + } + + public ArtifactSuit GetSuitByArtifactId(uint artifactId) + { + for (int i = 0; i < this.m_Suits.Count; i++) + { + bool flag = this.m_Suits[i].Artifacts.Contains(artifactId); + if (flag) + { + return this.m_Suits[i]; + } + } + return null; + } + + public ArtifactSuit GetSuitBySuitId(uint suitId) + { + for (int i = 0; i < this.m_Suits.Count; i++) + { + bool flag = this.m_Suits[i].Id == suitId; + if (flag) + { + return this.m_Suits[i]; + } + } + return null; + } + + public bool WillChangeEquipedCount(int suitItemID, int newItemID) + { + ArtifactSuit suitByArtifactId = this.GetSuitByArtifactId((uint)suitItemID); + bool flag = suitByArtifactId == null; + return !flag && suitByArtifactId.WillChangeEquipedCount(newItemID, suitItemID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactSuitMgr.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactSuitMgr.cs.meta new file mode 100644 index 00000000..d3d037e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactSuitMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e37b0dd20b135cc4ebb8f28068656881 +timeCreated: 1611404733 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactTooltipButtonOperate.cs b/Client/Assets/Scripts/XMainClient/ArtifactTooltipButtonOperate.cs new file mode 100644 index 00000000..404a80dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactTooltipButtonOperate.cs @@ -0,0 +1,39 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ArtifactTooltipButtonOperate : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("PUTON"); + } + + public override bool HasRedPoint(XItem item) + { + ArtifactBagDocument doc = ArtifactBagDocument.Doc; + EquipCompare mix = doc.IsEquipMorePowerful(item.uid); + EquipCompare final = ArtifactBagDocument.GetFinal(mix); + return final == EquipCompare.EC_MORE_POWERFUL; + } + + public override bool IsButtonVisible(XItem item) + { + bool flag = XSingleton.singleton.bShowTakeOutBtn || XSingleton.singleton.bShowPutInBtn; + return !flag; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(mainUID); + bool flag = itemByUID != null; + if (flag) + { + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 0u); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactTooltipButtonOperate.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactTooltipButtonOperate.cs.meta new file mode 100644 index 00000000..2c2dd987 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactTooltipButtonOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e3ea23dcdd6487d4fb36b72cf9c5406f +timeCreated: 1611404734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ArtifactTotalAttrData.cs b/Client/Assets/Scripts/XMainClient/ArtifactTotalAttrData.cs new file mode 100644 index 00000000..e7e82fc0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactTotalAttrData.cs @@ -0,0 +1,84 @@ +using System; + +namespace XMainClient +{ + internal class ArtifactTotalAttrData + { + public uint NameId + { + get + { + return this._nameId; + } + } + + public string Name + { + get + { + return XAttributeCommon.GetAttrStr((int)this._nameId); + } + } + + public string NumStr + { + get + { + bool flag = XAttributeCommon.IsPercentRange((int)this._nameId); + string result; + if (flag) + { + result = string.Format((this._num >= 0u) ? "+{0}%" : "{0}%", this._num.ToString("0.#")); + } + else + { + result = string.Format((this._num >= 0u) ? "+{0}" : "{0}", this._num).ToString(); + } + return result; + } + } + + public string RightStr + { + get + { + return this.m_rightStr; + } + } + + public string LeftStr + { + get + { + return this.m_leftStr; + } + } + + private uint _nameId; + + private uint _num; + + private string m_leftStr; + + private string m_rightStr; + + public string SuitName = string.Empty; + + public ArtifactTotalAttrData(XItemChangeAttr attr) + { + this._nameId = attr.AttrID; + this._num = attr.AttrValue; + } + + public ArtifactTotalAttrData(string leftStr, string rightStr) + { + this.m_leftStr = leftStr; + this.m_rightStr = rightStr; + } + + public void Add(uint num) + { + this._num += num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ArtifactTotalAttrData.cs.meta b/Client/Assets/Scripts/XMainClient/ArtifactTotalAttrData.cs.meta new file mode 100644 index 00000000..ea7374bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ArtifactTotalAttrData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ae98058de2d28c439850ed9744f67ab +timeCreated: 1611403685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AsyncSceneAnimationRequest.cs b/Client/Assets/Scripts/XMainClient/AsyncSceneAnimationRequest.cs new file mode 100644 index 00000000..aec86b52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AsyncSceneAnimationRequest.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + public sealed class AsyncSceneAnimationRequest + { + public bool IsDone = false; + } +} diff --git a/Client/Assets/Scripts/XMainClient/AsyncSceneAnimationRequest.cs.meta b/Client/Assets/Scripts/XMainClient/AsyncSceneAnimationRequest.cs.meta new file mode 100644 index 00000000..730eb90b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AsyncSceneAnimationRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d5cac55f00eb7b4bba2a24362d76500 +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AttackApplyCritical.cs b/Client/Assets/Scripts/XMainClient/AttackApplyCritical.cs new file mode 100644 index 00000000..0f3062c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttackApplyCritical.cs @@ -0,0 +1,46 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AttackApplyCritical : AttackApplyState + { + public override int GetStateMask() + { + return XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_CRITICAL); + } + + public override bool IsApplyState(XEntity entity) + { + double num = XSingleton.singleton.GetBaseCriticalProb(entity.Attributes, entity.Attributes.GetAttr(XAttributeDefine.XAttr_Critical_Total)); + bool flag = num > XSingleton.singleton.CriticalLimit; + if (flag) + { + num = XSingleton.singleton.CriticalLimit; + } + float num2 = XSingleton.singleton.RandomFloat(0f, 1f); + return (double)num2 < num; + } + + public override bool IsDefenseState(XEntity entity) + { + XAttributes attributes = entity.Attributes; + double attr = attributes.GetAttr(XAttributeDefine.XAttr_CritResist_Total); + CombatParamTable.RowData combatParam = XSingleton.singleton.GetCombatParam(attributes.Level); + double num = attr / (attr + (double)combatParam.CritResistBase); + bool flag = num > XSingleton.singleton.CritResistLimit; + if (flag) + { + num = XSingleton.singleton.CritResistLimit; + } + float num2 = XSingleton.singleton.RandomFloat(0f, 1f); + return (double)num2 < num; + } + + public override void ApplyState(XEntity caster, ProjectDamageResult result) + { + base.ApplyState(caster, result); + result.Value *= XSingleton.singleton.GetCritialRatio(caster.Attributes); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AttackApplyCritical.cs.meta b/Client/Assets/Scripts/XMainClient/AttackApplyCritical.cs.meta new file mode 100644 index 00000000..5b51a582 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttackApplyCritical.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a85b963af582004bad74c71533118e0 +timeCreated: 1611403596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AttackApplyState.cs b/Client/Assets/Scripts/XMainClient/AttackApplyState.cs new file mode 100644 index 00000000..cdf1fe3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttackApplyState.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal abstract class AttackApplyState + { + public abstract int GetStateMask(); + + public abstract bool IsApplyState(XEntity entity); + + public abstract bool IsDefenseState(XEntity entity); + + public virtual void ApplyState(XEntity caster, ProjectDamageResult result) + { + result.Flag |= this.GetStateMask(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AttackApplyState.cs.meta b/Client/Assets/Scripts/XMainClient/AttackApplyState.cs.meta new file mode 100644 index 00000000..6b19e602 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttackApplyState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f25b4f2f2ec9da4cbb9a9a352f5c1e2 +timeCreated: 1611403400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AttackApplyStun.cs b/Client/Assets/Scripts/XMainClient/AttackApplyStun.cs new file mode 100644 index 00000000..c9c1d808 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttackApplyStun.cs @@ -0,0 +1,48 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AttackApplyStun : AttackApplyState + { + public override int GetStateMask() + { + return XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_STUN); + } + + public override bool IsApplyState(XEntity entity) + { + XAttributes attributes = entity.Attributes; + double attr = attributes.GetAttr(XAttributeDefine.XAttr_Stun_Total); + CombatParamTable.RowData combatParam = XSingleton.singleton.GetCombatParam(attributes.Level); + double num = attr / (attr + (double)combatParam.StunBase); + bool flag = num > XSingleton.singleton.StunLimit; + if (flag) + { + num = XSingleton.singleton.StunLimit; + } + float num2 = XSingleton.singleton.RandomFloat(0f, 1f); + return (double)num2 < num; + } + + public override bool IsDefenseState(XEntity entity) + { + XAttributes attributes = entity.Attributes; + double attr = attributes.GetAttr(XAttributeDefine.XAttr_StunResist_Total); + CombatParamTable.RowData combatParam = XSingleton.singleton.GetCombatParam(attributes.Level); + double num = attr / (attr + (double)combatParam.StunResistBase); + bool flag = num > XSingleton.singleton.StunResistLimit; + if (flag) + { + num = XSingleton.singleton.StunResistLimit; + } + float num2 = XSingleton.singleton.RandomFloat(0f, 1f); + return (double)num2 < num; + } + + public override void ApplyState(XEntity caster, ProjectDamageResult result) + { + result.SetResult(ProjectResultType.PJRES_STUN); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AttackApplyStun.cs.meta b/Client/Assets/Scripts/XMainClient/AttackApplyStun.cs.meta new file mode 100644 index 00000000..aef204cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttackApplyStun.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d8836bc139fed54b9d009b533967440 +timeCreated: 1611404001 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AttackType.cs b/Client/Assets/Scripts/XMainClient/AttackType.cs new file mode 100644 index 00000000..67ac6c1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttackType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum AttackType + { + PhysicalAttack = 1, + MagicAttack + } +} diff --git a/Client/Assets/Scripts/XMainClient/AttackType.cs.meta b/Client/Assets/Scripts/XMainClient/AttackType.cs.meta new file mode 100644 index 00000000..06397742 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttackType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef7fe836487b4964da8564432fd640a3 +timeCreated: 1611404804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AttrType.cs b/Client/Assets/Scripts/XMainClient/AttrType.cs new file mode 100644 index 00000000..65800425 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttrType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum AttrType + { + None, + Physics, + Magic + } +} diff --git a/Client/Assets/Scripts/XMainClient/AttrType.cs.meta b/Client/Assets/Scripts/XMainClient/AttrType.cs.meta new file mode 100644 index 00000000..b91befeb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttrType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae2323ec83fdbef4d96e7533bf665945 +timeCreated: 1611404338 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AttriDataType.cs b/Client/Assets/Scripts/XMainClient/AttriDataType.cs new file mode 100644 index 00000000..5316f8df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttriDataType.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum AttriDataType + { + None, + Tittle, + Attri, + Skill, + SingleLine + } +} diff --git a/Client/Assets/Scripts/XMainClient/AttriDataType.cs.meta b/Client/Assets/Scripts/XMainClient/AttriDataType.cs.meta new file mode 100644 index 00000000..e8e41502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttriDataType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 071d21c088ba70c458930136b1169b30 +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AttributeCharm.cs b/Client/Assets/Scripts/XMainClient/AttributeCharm.cs new file mode 100644 index 00000000..2ed0d102 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttributeCharm.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public class AttributeCharm + { + public int index; + + public uint key; + + public uint value; + + public bool active; + } +} diff --git a/Client/Assets/Scripts/XMainClient/AttributeCharm.cs.meta b/Client/Assets/Scripts/XMainClient/AttributeCharm.cs.meta new file mode 100644 index 00000000..73a7c748 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AttributeCharm.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30c5e5ec26d088042bd875c9d3e959d2 +timeCreated: 1611403523 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AuctionActType.cs b/Client/Assets/Scripts/XMainClient/AuctionActType.cs new file mode 100644 index 00000000..faf8a789 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionActType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum AuctionActType + { + GuildBoss = 1, + GuildArena, + GuildMine, + WorldBoss + } +} diff --git a/Client/Assets/Scripts/XMainClient/AuctionActType.cs.meta b/Client/Assets/Scripts/XMainClient/AuctionActType.cs.meta new file mode 100644 index 00000000..53e8db07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionActType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd64ce046d209254db46d3ac17a7b1f2 +timeCreated: 1611404452 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AuctionBehaviour.cs b/Client/Assets/Scripts/XMainClient/AuctionBehaviour.cs new file mode 100644 index 00000000..e7f7085b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionBehaviour.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class AuctionBehaviour : DlgBehaviourBase + { + public Transform m_framesTransform; + + public IXUIButton m_Close; + + public IXUICheckBox m_BuyFrameCheckBox; + + public IXUICheckBox m_SellFrameCheckBox; + + public IXUICheckBox m_GuildAucFrameCheckBox; + + public GameObject m_GuildAucRedPoint; + + public IXUIButton m_Help; + + private void Awake() + { + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_framesTransform = base.transform.Find("Bg/frames"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BuyFrameCheckBox = (base.transform.Find("Bg/Tabs/Buy").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_SellFrameCheckBox = (base.transform.Find("Bg/Tabs/Sell").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_GuildAucFrameCheckBox = (base.transform.Find("Bg/Tabs/GuildAuc").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_GuildAucRedPoint = base.transform.Find("Bg/Tabs/GuildAuc/RedPoint").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AuctionBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/AuctionBehaviour.cs.meta new file mode 100644 index 00000000..d458a341 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 750858aba3815284da045f9c83610c4f +timeCreated: 1611403945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AuctionDocument.cs b/Client/Assets/Scripts/XMainClient/AuctionDocument.cs new file mode 100644 index 00000000..e354a9ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionDocument.cs @@ -0,0 +1,865 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AuctionDocument : XDocComponent + { + public override uint ID + { + get + { + return AuctionDocument.uuID; + } + } + + public uint NextOutoRefreshTime { get; set; } + + public double NextFreeRefreshTime + { + get + { + return this.m_NextFreeRefreshTime; + } + set + { + this.m_NextFreeRefreshTime = value; + } + } + + public uint FreeRefreshCount + { + get + { + return this.m_freeRefreshCount; + } + } + + public AuctionBillStyle CurrentSelectStyle { get; set; } + + public XItem CurrentSelectXItem { get; set; } + + public ulong CurrentSelectCurUid { get; set; } + + public bool CurrentSelectRefresh + { + get + { + return this.m_CurrentSelectRefresh; + } + set + { + this.m_CurrentSelectRefresh = value; + } + } + + public bool ShowItemData + { + get + { + return this.m_showItemData; + } + } + + public AuctionTypeList AuctionTypeList + { + get + { + return AuctionDocument._auction_type_list; + } + } + + public List AuctionOnLineSaleList + { + get + { + return this.m_onLineSaleItems; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("AuctionDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static AuctionTypeList _auction_type_list = new AuctionTypeList(); + + private static AuctionDiscountTable m_auctionDiscountTable = new AuctionDiscountTable(); + + private static Dictionary> m_NodeChildren = new Dictionary>(); + + private static Dictionary> m_auctionDiscounts = new Dictionary>(); + + private static Dictionary m_auctionTypeParent = new Dictionary(); + + private Dictionary m_aucItemBriefs = new Dictionary(); + + private Dictionary m_aucItemReferPrices = new Dictionary(); + + private List m_curSelectItems = new List(); + + private List m_onLineSaleItems = new List(); + + private bool m_showItemData = false; + + private uint m_freeRefreshCount = 5u; + + private bool m_CurrentSelectRefresh = false; + + private double m_NextFreeRefreshTime = 0.0; + + private Dictionary m_rpcState = new Dictionary(); + + private bool m_sendAuctionState = false; + + private uint _tempNumber = 0u; + + public static void Execute(OnLoadedCallback callback = null) + { + AuctionDocument.AsyncLoader.AddTask("Table/AuctionList", AuctionDocument._auction_type_list, false); + AuctionDocument.AsyncLoader.AddTask("Table/AuctionDiscount", AuctionDocument.m_auctionDiscountTable, false); + AuctionDocument.AsyncLoader.Execute(callback); + AuctionDocument.m_NodeChildren.Clear(); + AuctionDocument.m_auctionTypeParent.Clear(); + AuctionDocument.m_auctionDiscounts.Clear(); + } + + public static void OnTableLoaded() + { + AuctionDocument.m_auctionTypeParent.Clear(); + int i = 0; + int num = AuctionDocument._auction_type_list.Table.Length; + while (i < num) + { + bool flag = !AuctionDocument.m_auctionTypeParent.ContainsKey(AuctionDocument._auction_type_list.Table[i].id); + if (flag) + { + AuctionDocument.m_auctionTypeParent.Add(AuctionDocument._auction_type_list.Table[i].id, AuctionDocument._auction_type_list.Table[i].pretype); + } + bool flag2 = AuctionDocument._auction_type_list.Table[i].pretype == 0; + if (!flag2) + { + List list; + bool flag3 = !AuctionDocument.m_NodeChildren.TryGetValue(AuctionDocument._auction_type_list.Table[i].pretype, out list); + if (flag3) + { + list = new List(); + AuctionDocument.m_NodeChildren.Add(AuctionDocument._auction_type_list.Table[i].pretype, list); + } + list.Add(AuctionDocument._auction_type_list.Table[i].id); + } + i++; + } + AuctionDocument.m_auctionDiscounts.Clear(); + i = 0; + num = AuctionDocument.m_auctionDiscountTable.Table.Length; + while (i < num) + { + Dictionary dictionary; + bool flag4 = !AuctionDocument.m_auctionDiscounts.TryGetValue(AuctionDocument.m_auctionDiscountTable.Table[i].Type, out dictionary); + if (flag4) + { + dictionary = new Dictionary(); + AuctionDocument.m_auctionDiscounts.Add(AuctionDocument.m_auctionDiscountTable.Table[i].Type, dictionary); + } + bool flag5 = !dictionary.ContainsKey(AuctionDocument.m_auctionDiscountTable.Table[i].Group); + if (flag5) + { + dictionary.Add(AuctionDocument.m_auctionDiscountTable.Table[i].Group, AuctionDocument.m_auctionDiscountTable.Table[i].Discount); + } + else + { + XSingleton.singleton.AddErrorLog("Has exsit group in levelSeal!", AuctionDocument.m_auctionDiscountTable.Table[i].Type.ToString(), AuctionDocument.m_auctionDiscountTable.Table[i].Group.ToString(), null, null, null); + } + i++; + } + } + + public static bool TryGetAuctionTypeParentID(int typeid, out int parentTypeID) + { + return AuctionDocument.m_auctionTypeParent.TryGetValue(typeid, out parentTypeID); + } + + public static bool TryGetChildren(int preType, out List list) + { + return AuctionDocument.m_NodeChildren.TryGetValue(preType, out list); + } + + public static float GetDiscount(uint group) + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint sealType = specificDocument.SealType; + float num = 1f; + Dictionary dictionary; + bool flag = AuctionDocument.m_auctionDiscounts.TryGetValue(sealType, out dictionary) && dictionary.TryGetValue(group, out num); + float result; + if (flag) + { + result = num; + } + else + { + result = 1f; + } + return result; + } + + public static T MakeAuctionItem(ulong uid, uint price, Item KKSGItem) where T : AuctionItem, new() + { + T t = Activator.CreateInstance(); + t.itemData = XBagDocument.MakeXItem(KKSGItem); + t.uid = uid; + t.perprice = price; + return t; + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.m_NextFreeRefreshTime > 0.0; + if (flag) + { + this.m_NextFreeRefreshTime -= (double)fDeltaT; + } + else + { + this.m_NextFreeRefreshTime = 0.0; + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + } + + private bool OnVirtualItemChanged(XEventArgs e) + { + AuctionHouseDocument specificDocument = XDocuments.GetSpecificDocument(AuctionHouseDocument.uuID); + specificDocument.DataState = GuildAuctReqType.GART_AUCT_GUILD_HISTORY; + this.RefreshView(); + return true; + } + + public List GetItemList() + { + return XSingleton.singleton.Doc.XBagDoc.GetNotBindItemsByType(-1); + } + + public bool TryGetAuctionBriefCount(uint itemid, out uint count) + { + count = 0u; + AuctItemBrief auctItemBrief; + bool flag = this.m_aucItemBriefs.TryGetValue(itemid, out auctItemBrief); + bool result; + if (flag) + { + count = auctItemBrief.count; + result = true; + } + else + { + result = false; + } + return result; + } + + public uint GetAuctionBriefCount(uint itemid) + { + uint result; + this.TryGetAuctionBriefCount(itemid, out result); + return result; + } + + public bool SubAuctionBrief(uint itemid, uint count) + { + AuctItemBrief auctItemBrief; + bool flag = this.m_aucItemBriefs.TryGetValue(itemid, out auctItemBrief); + bool result; + if (flag) + { + bool flag2 = auctItemBrief.count > count; + if (flag2) + { + auctItemBrief.count -= count; + } + else + { + auctItemBrief.count = 0u; + } + result = (auctItemBrief.count > 0u); + } + else + { + result = false; + } + return result; + } + + public bool SetAuctionBrief(uint itemid, uint count) + { + AuctItemBrief auctItemBrief; + bool flag = this.m_aucItemBriefs.TryGetValue(itemid, out auctItemBrief); + if (flag) + { + auctItemBrief.count = count; + } + return false; + } + + public bool TryGetAuctionBriefReferPrice(uint itemid, out uint referPrice) + { + return this.m_aucItemReferPrices.TryGetValue(itemid, out referPrice); + } + + public void SetAuctionBriefReferPrice(uint itemid, uint referPrice) + { + bool flag = this.m_aucItemReferPrices.ContainsKey(itemid); + if (flag) + { + this.m_aucItemReferPrices[itemid] = referPrice; + } + else + { + this.m_aucItemReferPrices.Add(itemid, referPrice); + } + } + + public void RequestAuctionAllItemBrief() + { + this.SendAuctionRequest(AuctionAllReqType.ART_ALLITEMBRIEF, 0u, 0UL, 0u, 0u, 0UL, 0UL, false); + } + + public void ResponseAuctionAllItemBrief(AuctionAllReqRes res) + { + this.NextOutoRefreshTime = res.autorefreshlefttime; + this.m_NextFreeRefreshTime = res.freerefreshlefttime; + List itembrief = res.itembrief; + this.m_aucItemBriefs.Clear(); + int i = 0; + int count = itembrief.Count; + while (i < count) + { + bool flag = this.m_aucItemBriefs.ContainsKey(itembrief[i].itemid); + if (flag) + { + XSingleton.singleton.AddErrorLog("Auction ItemBrief has the same id : ", itembrief[i].itemid.ToString(), null, null, null, null); + } + else + { + this.m_aucItemBriefs.Add(itembrief[i].itemid, itembrief[i]); + } + i++; + } + } + + public void RequestAuctionSale(ulong uid, uint itemid, uint itemCount, uint price, bool isTransure = false) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + uint num = specificDocument.GetCurrentVipPermissions().AuctionOnSaleMax; + XWelfareDocument specificDocument2 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = specificDocument2.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + if (flag) + { + num += (uint)specificDocument2.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Court).AuctionCount; + } + bool flag2 = (ulong)num <= (ulong)((long)this.m_onLineSaleItems.Count); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_PUTAWAY_FULL"), "fece00"); + } + else + { + bool flag3 = this.CheckGoldFull(); + if (flag3) + { + this.SendAuctionRequest(AuctionAllReqType.ART_REQSALE, itemid, uid, itemCount, price, 0UL, 0UL, isTransure); + } + } + } + + public bool CheckGoldFull() + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.GOLD)); + ulong num = ulong.Parse(XSingleton.singleton.GetValue("AuctOnSaleCostGold")); + bool flag = itemCount < num; + bool result; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_LACKCOIN); + result = false; + } + else + { + result = true; + } + return result; + } + + public void RequestAuctionQuitSale(ulong aucuid) + { + this.SendAuctionRequest(AuctionAllReqType.ART_QUITSALE, 0u, 0UL, 0u, 0u, 0UL, aucuid, false); + } + + public void RequestAcutionReSale(ulong auctuid, uint price) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + uint num = specificDocument.GetCurrentVipPermissions().AuctionOnSaleMax; + XWelfareDocument specificDocument2 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = specificDocument2.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + if (flag) + { + num += (uint)specificDocument2.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Court).AuctionCount; + } + int num2 = 0; + int i = 0; + int count = this.m_onLineSaleItems.Count; + while (i < count) + { + bool isOutTime = this.m_onLineSaleItems[i].isOutTime; + if (!isOutTime) + { + num2++; + } + i++; + } + bool flag2 = (ulong)num <= (ulong)((long)num2); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_PUTAWAY_FULL"), "fece00"); + } + else + { + bool flag3 = this.CheckGoldFull(); + if (flag3) + { + this.SendAuctionRequest(AuctionAllReqType.ART_RESALE, 0u, 0UL, 0u, price, 0UL, auctuid, false); + } + } + bool flag4 = this.CheckGoldFull(); + if (flag4) + { + this.SendAuctionRequest(AuctionAllReqType.ART_RESALE, 0u, 0UL, 0u, price, 0UL, auctuid, false); + } + } + + public void RequestAuctionReSale(ulong aucuid, uint price) + { + } + + public void SetSendAuctionState(bool state = false) + { + this.m_sendAuctionState = state; + } + + public bool RequestAuctionItemData(uint itemid) + { + uint num; + bool flag = this.TryGetAuctionBriefCount(itemid, out num) && num > 0u; + bool result; + if (flag) + { + this.SendAuctionRequest(AuctionAllReqType.ART_ITEMDATA, itemid, 0UL, 0u, 0u, 0UL, 0UL, false); + result = true; + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_NOT_PURCHASE"), "fece00"); + result = false; + } + return result; + } + + public void ResponseAuctionOverlapDatas(List list) + { + this.m_curSelectItems.Clear(); + int i = 0; + int count = list.Count; + while (i < count) + { + this.m_curSelectItems.Add(AuctionDocument.MakeAuctionItem(list[i].overlapid, list[i].perprice, list[i].itemdata)); + i++; + } + this.m_curSelectItems.Sort(new Comparison(this.SortCompare)); + } + + public List GetOverlapItems() + { + this.m_showItemData = false; + return this.m_curSelectItems; + } + + public void SubOverlapItem(ulong auctuid, uint count) + { + int i = 0; + int count2 = this.m_curSelectItems.Count; + while (i < count2) + { + bool flag = this.m_curSelectItems[i].uid == auctuid; + if (flag) + { + bool flag2 = (long)this.m_curSelectItems[i].itemData.itemCount > (long)((ulong)count); + if (flag2) + { + this.m_curSelectItems[i].itemData.itemCount -= (int)count; + } + else + { + this.m_curSelectItems.RemoveAt(i); + } + break; + } + i++; + } + } + + public void RequestAuctionMySale() + { + this.SendAuctionRequest(AuctionAllReqType.ART_MYSALE, 0u, 0UL, 0u, 0u, 0UL, 0UL, false); + } + + public void ResponseAuctionSaleData(List list) + { + this.m_onLineSaleItems.Clear(); + int i = 0; + int count = list.Count; + while (i < count) + { + AuctionSaleItem auctionSaleItem = AuctionDocument.MakeAuctionItem(list[i].uid, list[i].perprice, list[i].itemdata); + auctionSaleItem.duelefttime = list[i].duelefttime; + this.m_onLineSaleItems.Add(auctionSaleItem); + i++; + } + } + + public void RequestAuctionPriceRecommend(ulong uid, XItem item, AuctionBillStyle style) + { + this.CurrentSelectXItem = item; + this.CurrentSelectStyle = style; + this.CurrentSelectCurUid = uid; + this.SendAuctionRequest(AuctionAllReqType.ART_TRADE_PRICE, (uint)item.itemID, 0UL, 0u, 0u, 0UL, 0UL, false); + } + + public bool TryGetAuctionSalePrice(ulong uid, out uint price) + { + bool flag = uid > 0UL; + if (flag) + { + int i = 0; + int count = this.m_onLineSaleItems.Count; + while (i < count) + { + bool flag2 = this.m_onLineSaleItems[i].uid == uid; + if (flag2) + { + price = this.m_onLineSaleItems[i].perprice; + return true; + } + i++; + } + } + price = 0u; + return false; + } + + public bool TryGetAuctionSaleItemID(ulong uid, out int itemid) + { + bool flag = uid > 0UL; + if (flag) + { + int i = 0; + int count = this.m_onLineSaleItems.Count; + while (i < count) + { + bool flag2 = this.m_onLineSaleItems[i].uid == uid; + if (flag2) + { + itemid = this.m_onLineSaleItems[i].itemData.itemID; + return true; + } + i++; + } + } + itemid = 0; + return false; + } + + public void RequestAuctionBuy(ulong overlapid, uint itemid, uint itemCount) + { + this.SendAuctionRequest(AuctionAllReqType.ART_BUY, itemid, 0UL, itemCount, 0u, overlapid, 0UL, false); + } + + public void RequestAuctionRefresh() + { + bool flag = this.NextFreeRefreshTime > 0.0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_FREE_REFRESH_MESSAGE", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this.NextFreeRefreshTime, 5) + }), "fece00"); + } + else + { + this.CurrentSelectRefresh = true; + this.SendAuctionRequest(AuctionAllReqType.ART_REFRESH_FREE, 0u, 0UL, 0u, 0u, 0UL, 0UL, false); + } + } + + public void RequestAuctionAuto() + { + this.SendAuctionRequest(AuctionAllReqType.ART_REFRESH_AUTO, 0u, 0UL, 0u, 0u, 0UL, 0UL, false); + } + + private bool RequestSureAuctionRefresh() + { + this.SendAuctionRequest(AuctionAllReqType.ART_REFRESH_PAY, 0u, 0UL, 0u, 0u, 0UL, 0UL, false); + XSingleton.singleton.CloseModalDlg(); + return false; + } + + private void SendAuctionRequest(AuctionAllReqType reqtype, uint itemID = 0u, ulong uid = 0UL, uint itemCount = 0u, uint perperce = 0u, ulong overlapid = 0UL, ulong auctuid = 0UL, bool isTreasuse = false) + { + bool sendAuctionState = this.m_sendAuctionState; + if (!sendAuctionState) + { + RpcC2M_AuctionAllReq rpcC2M_AuctionAllReq = new RpcC2M_AuctionAllReq(); + rpcC2M_AuctionAllReq.oArg.reqtype = reqtype; + rpcC2M_AuctionAllReq.oArg.itemid = itemID; + rpcC2M_AuctionAllReq.oArg.itemuniqueid = uid; + rpcC2M_AuctionAllReq.oArg.itemcount = itemCount; + rpcC2M_AuctionAllReq.oArg.perprice = perperce; + rpcC2M_AuctionAllReq.oArg.overlapid = overlapid; + rpcC2M_AuctionAllReq.oArg.auctuid = auctuid; + rpcC2M_AuctionAllReq.oArg.istreasure = isTreasuse; + XSingleton.singleton.Send(rpcC2M_AuctionAllReq); + this.m_sendAuctionState = true; + } + } + + private int SortCompare(AuctionItem item1, AuctionItem item2) + { + XItem itemData = item1.itemData; + XItem itemData2 = item2.itemData; + bool flag = itemData.Treasure == itemData2.Treasure; + int result; + if (flag) + { + result = (int)(item1.perprice - item2.perprice); + } + else + { + bool treasure = itemData.Treasure; + if (treasure) + { + result = -1; + } + else + { + bool treasure2 = itemData2.Treasure; + if (treasure2) + { + result = 1; + } + else + { + result = 0; + } + } + } + return result; + } + + public string GetItemName(ulong aucuid) + { + string result = ""; + int itemID; + bool flag = this.TryGetAuctionSaleItemID(aucuid, out itemID); + if (flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + bool flag2 = itemConf != null && itemConf.ItemName != null && itemConf.ItemName.Length != 0; + if (flag2) + { + result = itemConf.ItemName[0]; + } + } + return result; + } + + public void ReceiveAuctionResponse(AuctionAllReqArg oArg, AuctionAllReqRes oRes) + { + this.m_sendAuctionState = false; + bool flag = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = oRes.errcode == ErrorCode.ERR_AUCT_ITEM_LESS; + if (flag2) + { + this.m_showItemData = this.SetAuctionBrief(oArg.itemid, oRes.itemleftcount); + this.RefreshView(); + } + else + { + bool flag3 = oRes.errcode == ErrorCode.ERR_AUCT_AUTOREFRESH_TIME; + if (flag3) + { + this.NextOutoRefreshTime = oRes.autorefreshlefttime; + this.NextFreeRefreshTime = oRes.freerefreshlefttime; + this.RefreshView(); + } + } + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + else + { + switch (oArg.reqtype) + { + case AuctionAllReqType.ART_REQSALE: + this.RequestAuctionMySale(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_PUTAWAY_SUCCESS", new object[] + { + XSingleton.singleton.GetValue("AuctOnSaleDay") + }), "fece00"); + break; + case AuctionAllReqType.ART_QUITSALE: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_QUITSALE", new object[] + { + this.GetItemName(oArg.auctuid) + }), "fece00"); + this.RequestAuctionMySale(); + break; + case AuctionAllReqType.ART_RESALE: + this.RequestAuctionMySale(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_REPUAWAY_SUCCESS", new object[] + { + XSingleton.singleton.GetValue("AuctOnSaleDay") + }), "fece00"); + break; + case AuctionAllReqType.ART_ALLITEMBRIEF: + this.ResponseAuctionAllItemBrief(oRes); + this.m_freeRefreshCount = oRes.leftfreerefreshcount; + this.RefreshView(); + break; + case AuctionAllReqType.ART_ITEMDATA: + { + this.SetAuctionBrief(oArg.itemid, oRes.itemleftcount); + this.ResponseAuctionOverlapDatas(oRes.overlapdata); + bool flag4 = oRes.itemleftcount > 0u; + if (flag4) + { + this.m_showItemData = true; + } + else + { + this.m_showItemData = false; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_SELL_FINISH"), "fece00"); + } + this.RefreshView(); + break; + } + case AuctionAllReqType.ART_MYSALE: + this.ResponseAuctionSaleData(oRes.saledata); + this.RefreshView(); + break; + case AuctionAllReqType.ART_BUY: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_BUY_SUCCESS"), "fece00"); + this.SubOverlapItem(oArg.overlapid, oArg.itemcount); + this.m_showItemData = this.SubAuctionBrief(oArg.itemid, oArg.itemcount); + this.RefreshView(); + break; + case AuctionAllReqType.ART_REFRESH_FREE: + this.RequestAuctionAllItemBrief(); + break; + case AuctionAllReqType.ART_REFRESH_PAY: + case AuctionAllReqType.ART_REFRESH_AUTO: + this.RequestAuctionAllItemBrief(); + break; + case AuctionAllReqType.ART_TRADE_PRICE: + this.SetAuctionBriefReferPrice(oArg.itemid, oRes.tradeprice); + DlgBase.singleton.Set(this.CurrentSelectXItem, this.CurrentSelectStyle, this.CurrentSelectCurUid); + break; + } + } + } + + private void RefreshView() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshData(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.OnVirtuelRefresh(); + } + } + + public bool TryDragonCoinFull(ulong usr, ulong has) + { + bool flag = has < usr; + bool result; + if (flag) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DIAMOND)); + bool flag2 = itemCount < usr - has; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAMBUY_DRAGONCOIN_LESS, "fece00"); + } + else + { + ulong num = usr - has; + this._tempNumber = (uint)num; + string @string = XStringDefineProxy.GetString("AUCTION_DRAGON_COIN_UNFULL", new object[] + { + XLabelSymbolHelper.FormatCostWithIcon((int)usr, ItemEnum.DRAGON_COIN), + XLabelSymbolHelper.FormatCostWithIcon((int)num, ItemEnum.DIAMOND), + XLabelSymbolHelper.FormatCostWithIcon((int)num, ItemEnum.DRAGON_COIN) + }); + this.ShowDailog(@string, new ButtonClickEventHandler(this.OnSwapDragonCoin)); + } + result = false; + } + else + { + result = true; + } + return result; + } + + private void ShowDailog(string message, ButtonClickEventHandler handler) + { + XSingleton.singleton.ShowModalDialog(message, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), handler); + } + + private bool OnSwapDragonCoin(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = this._tempNumber > 0u; + if (flag) + { + XPurchaseDocument specificDocument = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + specificDocument.CommonQuickBuyRandom(ItemEnum.DRAGON_COIN, ItemEnum.DIAMOND, this._tempNumber); + } + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.m_sendAuctionState = false; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.RequestAuctionAllItemBrief(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AuctionDocument.cs.meta b/Client/Assets/Scripts/XMainClient/AuctionDocument.cs.meta new file mode 100644 index 00000000..238c1785 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3c98f80c580fb249869ef58f35fc571 +timeCreated: 1611404600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AuctionHouseDocument.cs b/Client/Assets/Scripts/XMainClient/AuctionHouseDocument.cs new file mode 100644 index 00000000..7d4929f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionHouseDocument.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AuctionHouseDocument : XDocComponent + { + public override uint ID + { + get + { + return AuctionHouseDocument.uuID; + } + } + + public GuildAuctReward GuildAuctRewardReader + { + get + { + return AuctionHouseDocument._guildAuctRewardReader; + } + } + + public List ItemList + { + get + { + return this._itemList; + } + } + + public List HistoryList + { + get + { + return this._historyList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("AuctionHouseDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public List GuildActID = new List(); + + public GuildAuctReqType DataState; + + private static GuildAuctReward _guildAuctRewardReader = new GuildAuctReward(); + + private List _itemList = new List(); + + private List _historyList = new List(); + + public uint MySpoils = 0u; + + public int LastReq = 0; + + public int ReqTime; + + public int GuildSaleTime; + + public int PublicityTime; + + public bool ResetScrollView = false; + + public static void Execute(OnLoadedCallback callback = null) + { + AuctionHouseDocument.AsyncLoader.AddTask("Table/GuildAuctReward", AuctionHouseDocument._guildAuctRewardReader, false); + AuctionHouseDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.GuildSaleTime = XSingleton.singleton.GetInt("GuildAuctGuildSaleTime"); + this.PublicityTime = XSingleton.singleton.GetInt("GuildAuctGuildItemPublicityTime"); + } + + public void QueryGuildTypeList(int type) + { + RpcC2M_GuildAuctReqAll rpcC2M_GuildAuctReqAll = new RpcC2M_GuildAuctReqAll(); + rpcC2M_GuildAuctReqAll.oArg.reqtype = GuildAuctReqType.GART_ACT_TYPE; + rpcC2M_GuildAuctReqAll.oArg.acttype = type; + XSingleton.singleton.Send(rpcC2M_GuildAuctReqAll); + } + + public void QueryWorldTypeList(int type) + { + RpcC2M_GuildAuctReqAll rpcC2M_GuildAuctReqAll = new RpcC2M_GuildAuctReqAll(); + rpcC2M_GuildAuctReqAll.oArg.reqtype = GuildAuctReqType.GART_ITEM_TYPE; + rpcC2M_GuildAuctReqAll.oArg.itemtype = type; + XSingleton.singleton.Send(rpcC2M_GuildAuctReqAll); + } + + public void QueryAuctionItem(ulong uid, uint curPrice, int actType) + { + RpcC2M_GuildAuctReqAll rpcC2M_GuildAuctReqAll = new RpcC2M_GuildAuctReqAll(); + rpcC2M_GuildAuctReqAll.oArg.reqtype = GuildAuctReqType.GART_BUY_AUCT; + rpcC2M_GuildAuctReqAll.oArg.uid = uid; + rpcC2M_GuildAuctReqAll.oArg.curauctprice = curPrice; + rpcC2M_GuildAuctReqAll.oArg.acttype = actType; + XSingleton.singleton.Send(rpcC2M_GuildAuctReqAll); + } + + public void QueryBuyItem(ulong uid, int actType) + { + RpcC2M_GuildAuctReqAll rpcC2M_GuildAuctReqAll = new RpcC2M_GuildAuctReqAll(); + rpcC2M_GuildAuctReqAll.oArg.reqtype = GuildAuctReqType.GART_BUY_NOW; + rpcC2M_GuildAuctReqAll.oArg.uid = uid; + rpcC2M_GuildAuctReqAll.oArg.acttype = actType; + XSingleton.singleton.Send(rpcC2M_GuildAuctReqAll); + } + + public void QueryAuctionHistory(bool guild) + { + RpcC2M_GuildAuctReqAll rpcC2M_GuildAuctReqAll = new RpcC2M_GuildAuctReqAll(); + if (guild) + { + rpcC2M_GuildAuctReqAll.oArg.reqtype = GuildAuctReqType.GART_AUCT_GUILD_HISTORY; + } + else + { + rpcC2M_GuildAuctReqAll.oArg.reqtype = GuildAuctReqType.GART_AUCT_WORLD_HISTORY; + } + XSingleton.singleton.Send(rpcC2M_GuildAuctReqAll); + } + + public void OnServerReturn(GuildAuctReqArg arg, GuildAuctReqRes data) + { + switch (arg.reqtype) + { + case GuildAuctReqType.GART_ACT_TYPE: + case GuildAuctReqType.GART_ITEM_TYPE: + { + this.MySpoils = data.profit; + this._itemList.Clear(); + this.ReqTime = -1; + for (int i = 0; i < data.saleitems.Count; i++) + { + bool flag = !data.saleitems[i].display; + if (!flag) + { + bool flag2 = this.ReqTime == -1 || (ulong)data.saleitems[i].lefttime < (ulong)((long)this.ReqTime); + if (flag2) + { + this.ReqTime = (int)data.saleitems[i].lefttime; + } + else + { + int num = this.PublicityTime - this.GuildSaleTime + (int)data.saleitems[i].lefttime; + bool flag3 = arg.reqtype == GuildAuctReqType.GART_ACT_TYPE && num > 0 && num < this.ReqTime; + if (flag3) + { + this.ReqTime = num; + } + } + GASaleItem gasaleItem = new GASaleItem(); + gasaleItem.uid = data.saleitems[i].uid; + gasaleItem.acttype = data.saleitems[i].acttype; + gasaleItem.itemid = data.saleitems[i].itemid; + gasaleItem.auctroleid = data.saleitems[i].auctroleid; + gasaleItem.curauctprice = data.saleitems[i].curauctprice; + gasaleItem.maxprice = data.saleitems[i].maxprice; + gasaleItem.lefttime = data.saleitems[i].lefttime; + this._itemList.Add(gasaleItem); + } + } + bool flag4 = this.ReqTime != -1 && this.ReqTime < 2; + if (flag4) + { + this.ReqTime = 2; + } + bool flag5 = arg.reqtype == GuildAuctReqType.GART_ACT_TYPE; + if (flag5) + { + bool flag6 = arg.acttype == 0; + if (flag6) + { + this.GuildActID.Clear(); + HashSet hashSet = HashPool.Get(); + for (int j = 0; j < data.saleitems.Count; j++) + { + bool flag7 = !hashSet.Contains(data.saleitems[j].acttype); + if (flag7) + { + hashSet.Add(data.saleitems[j].acttype); + this.GuildActID.Add(data.saleitems[j].acttype); + } + } + HashPool.Release(hashSet); + } + } + break; + } + case GuildAuctReqType.GART_BUY_AUCT: + case GuildAuctReqType.GART_BUY_NOW: + this.MySpoils = data.profit; + for (int k = 0; k < this._itemList.Count; k++) + { + bool flag8 = this._itemList[k].uid == arg.uid; + if (flag8) + { + bool flag9 = arg.reqtype == GuildAuctReqType.GART_BUY_AUCT; + if (flag9) + { + bool flag10 = data.errorcode == ErrorCode.ERR_SUCCESS; + if (flag10) + { + this._itemList[k].curauctprice = data.curauctprice; + this._itemList[k].auctroleid = XSingleton.singleton.XPlayerData.RoleID; + } + else + { + bool flag11 = data.errorcode == ErrorCode.ERR_AUCT_ITEMSALED; + if (flag11) + { + this._itemList.RemoveAt(k); + } + else + { + bool flag12 = data.errorcode == ErrorCode.ERR_AUCT_PRICECHAGE; + if (flag12) + { + this._itemList[k].curauctprice = data.curauctprice; + } + } + } + } + else + { + bool flag13 = data.errorcode == ErrorCode.ERR_SUCCESS; + if (flag13) + { + this._itemList.RemoveAt(k); + } + else + { + bool flag14 = data.errorcode == ErrorCode.ERR_AUCT_ITEMSALED; + if (flag14) + { + this._itemList.RemoveAt(k); + } + } + } + } + } + break; + case GuildAuctReqType.GART_AUCT_GUILD_HISTORY: + case GuildAuctReqType.GART_AUCT_WORLD_HISTORY: + this._historyList.Clear(); + for (int l = 0; l < data.salehistorys.Count; l++) + { + GASaleHistory gasaleHistory = new GASaleHistory(); + gasaleHistory.acttype = data.salehistorys[l].acttype; + gasaleHistory.saletime = data.salehistorys[l].saletime; + gasaleHistory.itemid = data.salehistorys[l].itemid; + gasaleHistory.saleprice = data.salehistorys[l].saleprice; + gasaleHistory.auctresult = data.salehistorys[l].auctresult; + this._historyList.Add(gasaleHistory); + } + this._historyList.Sort(new Comparison(this.Compare)); + break; + } + this.DataState = arg.reqtype; + bool flag15 = DlgBase.singleton.IsVisible(); + if (flag15) + { + DlgBase.singleton.RefreshData(); + } + } + + public void QueryRefreshUI() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = this.LastReq < 100; + if (flag2) + { + this.QueryGuildTypeList(this.LastReq); + } + else + { + this.QueryWorldTypeList(this.LastReq - 100); + } + } + } + + public void QueryRefreshGuildUI(int actType) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = this.LastReq == actType || this.LastReq == 0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AuctionHouseTimeFreshTips"), "fece00"); + this.QueryRefreshUI(); + } + } + } + + public List GetGuildAuctReward(AuctionActType actType) + { + List list = new List(); + for (int i = 0; i < AuctionHouseDocument._guildAuctRewardReader.Table.Length; i++) + { + GuildAuctReward.RowData rowData = AuctionHouseDocument._guildAuctRewardReader.Table[i]; + bool flag = (AuctionActType)rowData.ActType == actType; + if (flag) + { + list.Add(rowData); + } + } + return list; + } + + private int Compare(GASaleHistory x, GASaleHistory y) + { + return (int)(y.saletime - x.saletime); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.QueryRefreshUI(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AuctionHouseDocument.cs.meta b/Client/Assets/Scripts/XMainClient/AuctionHouseDocument.cs.meta new file mode 100644 index 00000000..3c587581 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionHouseDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12e4785459c46594eb41f70171da1ceb +timeCreated: 1611403244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AuctionItem.cs b/Client/Assets/Scripts/XMainClient/AuctionItem.cs new file mode 100644 index 00000000..a51c30d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionItem.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class AuctionItem + { + public ulong uid; + + public uint perprice; + + public XItem itemData; + } +} diff --git a/Client/Assets/Scripts/XMainClient/AuctionItem.cs.meta b/Client/Assets/Scripts/XMainClient/AuctionItem.cs.meta new file mode 100644 index 00000000..2678e38b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 901da094622f746448281abc5f5500fd +timeCreated: 1611404137 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AuctionSaleItem.cs b/Client/Assets/Scripts/XMainClient/AuctionSaleItem.cs new file mode 100644 index 00000000..7e646625 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionSaleItem.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal class AuctionSaleItem : AuctionItem + { + public bool isOutTime + { + get + { + return this.duelefttime == 0u; + } + } + + public uint duelefttime; + } +} diff --git a/Client/Assets/Scripts/XMainClient/AuctionSaleItem.cs.meta b/Client/Assets/Scripts/XMainClient/AuctionSaleItem.cs.meta new file mode 100644 index 00000000..d2c38597 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionSaleItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0561d0103aaa3a64cb4867aeba530c50 +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AuctionSys.cs b/Client/Assets/Scripts/XMainClient/AuctionSys.cs new file mode 100644 index 00000000..162faac0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionSys.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum AuctionSys + { + None, + Buy, + Sell, + GuildAuc, + Stock, + Bid, + Bill + } +} diff --git a/Client/Assets/Scripts/XMainClient/AuctionSys.cs.meta b/Client/Assets/Scripts/XMainClient/AuctionSys.cs.meta new file mode 100644 index 00000000..e4ad62e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionSys.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6afbaa72dc88e7d4eba92daccfe64069 +timeCreated: 1611403890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/AuctionView.cs b/Client/Assets/Scripts/XMainClient/AuctionView.cs new file mode 100644 index 00000000..2dbba34c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionView.cs @@ -0,0 +1,232 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class AuctionView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Auction/AuctionDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private AuctionDocument _Doc; + + private Dictionary m_handlers = new Dictionary(); + + private AuctionSys m_curAuctionSys; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + this.RegisterHandler(AuctionSys.Sell); + this.RegisterHandler(AuctionSys.Buy); + this.RegisterHandler(AuctionSys.GuildAuc); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_BuyFrameCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnBuyFrameCheckBoxClicked)); + base.uiBehaviour.m_SellFrameCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSellFrameCheckBoxClicked)); + base.uiBehaviour.m_GuildAucFrameCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnGuildAucFrameCheckBoxClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Auction); + return true; + } + + public void RefreshData() + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(this.m_curAuctionSys, out dlgHandlerBase) && dlgHandlerBase.IsVisible(); + if (flag) + { + dlgHandlerBase.RefreshData(); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.m_uiBehaviour.m_BuyFrameCheckBox.bChecked = true; + this._Doc.SetSendAuctionState(false); + this.SetHandlerVisible(AuctionSys.Buy, true); + this.RefreshData(); + base.uiBehaviour.m_GuildAucRedPoint.SetActive(XSingleton.singleton.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Auction)); + } + + protected override void OnHide() + { + this.SetHandlerVisible(AuctionSys.Sell, false); + this.SetHandlerVisible(AuctionSys.Buy, false); + this.SetHandlerVisible(AuctionSys.GuildAuc, false); + base.OnHide(); + } + + protected override void OnUnload() + { + this.RemoveHandler(AuctionSys.Sell); + this.RemoveHandler(AuctionSys.Buy); + this.RemoveHandler(AuctionSys.GuildAuc); + base.OnUnload(); + } + + private bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnBuyFrameCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(AuctionSys.Buy); + result = true; + } + return result; + } + + private bool OnSellFrameCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(AuctionSys.Sell); + result = true; + } + return result; + } + + private bool OnGuildAucFrameCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(AuctionSys.GuildAuc); + result = true; + } + return result; + } + + private void OnTabChanged(AuctionSys define) + { + bool flag = define == this.m_curAuctionSys; + if (!flag) + { + this.SetHandlerVisible(this.m_curAuctionSys, false); + this.SetHandlerVisible(define, true); + } + } + + private void SetHandlerVisible(AuctionSys define, bool isVisble) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(define, out dlgHandlerBase); + if (flag) + { + dlgHandlerBase.SetVisible(isVisble); + if (isVisble) + { + this.m_curAuctionSys = define; + } + } + } + + private void RegisterHandler(AuctionSys define) where T : DlgHandlerBase, new() + { + bool flag = !this.m_handlers.ContainsKey(define); + if (flag) + { + T t = default(T); + t = DlgHandlerBase.EnsureCreate(ref t, base.uiBehaviour.m_framesTransform, false, this); + this.m_handlers.Add(define, t); + } + } + + private void RemoveHandler(AuctionSys define) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(define, out dlgHandlerBase); + if (flag) + { + DlgHandlerBase.EnsureUnload(ref dlgHandlerBase); + this.m_handlers.Remove(define); + } + } + + public void SetGuildAuctionRedPointState(bool state) + { + base.uiBehaviour.m_GuildAucRedPoint.SetActive(state); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/AuctionView.cs.meta b/Client/Assets/Scripts/XMainClient/AuctionView.cs.meta new file mode 100644 index 00000000..5c8231fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/AuctionView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 50eccc361ece01448986277fe2496c23 +timeCreated: 1611403704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BagExpandData.cs b/Client/Assets/Scripts/XMainClient/BagExpandData.cs new file mode 100644 index 00000000..9b19a286 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BagExpandData.cs @@ -0,0 +1,19 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class BagExpandData + { + public uint ExpandNum = 0u; + + public uint ExpandTimes = 0u; + + public BagType Type = BagType.ItemBag; + + public BagExpandData(BagType type) + { + this.Type = type; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BagExpandData.cs.meta b/Client/Assets/Scripts/XMainClient/BagExpandData.cs.meta new file mode 100644 index 00000000..42937c4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BagExpandData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8cd8b5d4a7bd1314083b1d26012c2962 +timeCreated: 1611404101 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BarrageBehaviour.cs b/Client/Assets/Scripts/XMainClient/BarrageBehaviour.cs new file mode 100644 index 00000000..d3c7d92c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageBehaviour.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BarrageBehaviour : DlgBehaviourBase + { + public Transform m_tranLeftBound; + + public Transform m_tranRightBound; + + public IXUILabel m_lblTpl; + + public GameObject m_objQueueTpl; + + public GameObject[] m_objQueue; + + public XUIPool m_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_tranLeftBound = base.transform.Find("Bg/left"); + this.m_tranRightBound = base.transform.Find("Bg/right"); + this.m_lblTpl = (base.transform.Find("Bg/Text").GetComponent("XUILabel") as IXUILabel); + this.m_objQueueTpl = base.transform.Find("Bg/queue").gameObject; + this.m_pool.SetupPool(this.m_objQueueTpl.transform.parent.gameObject, this.m_objQueueTpl, 3u, true); + } + + public void SetupPool() + { + this.m_objQueue = new GameObject[BarrageDlg.MAX_QUEUE_CNT]; + for (int i = 0; i < BarrageDlg.MAX_QUEUE_CNT; i++) + { + this.m_objQueue[i] = this.m_pool.FetchGameObject(false); + this.m_objQueue[i].transform.localPosition = new Vector3(0f, (float)(320 - 40 * i), 0f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BarrageBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/BarrageBehaviour.cs.meta new file mode 100644 index 00000000..a22ff3ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0178d972ccc9cd844a517afe322d0dd4 +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BarrageDlg.cs b/Client/Assets/Scripts/XMainClient/BarrageDlg.cs new file mode 100644 index 00000000..9369bbde --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageDlg.cs @@ -0,0 +1,211 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BarrageDlg : DlgBase + { + public override string fileName + { + get + { + return "Common/BarrageDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public bool openBarrage = true; + + public static int MAX_QUEUE_CNT = 1; + + public static int MOVE_TIME = 15; + + private const int MAX_RECYCLE_CNT = 8; + + private BarrageQueue[] barrages; + + private Queue itemspool = new Queue(); + + private float recoveryTime = 0f; + + protected override void Init() + { + base.Init(); + BarrageDlg.MAX_QUEUE_CNT = XSingleton.singleton.GetInt("BarrageQueueCnt"); + BarrageDlg.MOVE_TIME = XSingleton.singleton.GetInt("BarrageTime"); + this.barrages = new BarrageQueue[BarrageDlg.MAX_QUEUE_CNT]; + for (int i = 0; i < BarrageDlg.MAX_QUEUE_CNT; i++) + { + this.barrages[i] = new BarrageQueue(); + } + base.uiBehaviour.SetupPool(); + } + + protected override void OnUnload() + { + bool flag = this.itemspool != null; + if (flag) + { + this.itemspool.Clear(); + } + bool flag2 = base.IsVisible(); + if (flag2) + { + this.SetVisible(false, true); + } + base.OnUnload(); + } + + public void OnFouceGame(bool pause) + { + this.ClearAll(); + bool flag = !pause; + if (flag) + { + this.recoveryTime = Time.unscaledTime; + } + } + + public void ClearAll() + { + bool flag = base.IsLoaded() && base.IsVisible(); + if (flag) + { + bool flag2 = this.itemspool != null; + if (flag2) + { + while (this.itemspool.Count > 0) + { + BarrageItem barrageItem = this.itemspool.Peek(); + barrageItem.Drop(); + this.itemspool.Dequeue(); + } + this.itemspool.Clear(); + for (int i = 0; i < this.barrages.Length; i++) + { + this.barrages[i].ForceClear(); + } + } + } + } + + public void RealPush(ChatInfo info) + { + bool flag = Time.unscaledTime - this.recoveryTime < 0.8f && this.recoveryTime != 0f; + if (!flag) + { + bool flag2 = info.mChannelId == ChatChannelType.Spectate; + if (flag2) + { + string mContent = info.mContent; + this.RealPush(mContent, info.isSelfSender); + } + } + } + + public void RealPush(string txt, bool outline = false) + { + bool flag = base.IsVisible(); + if (flag) + { + txt = DlgBase.singleton.OnRemoveEmotion(txt); + txt = this.RemoveLink(txt); + bool flag2 = !string.IsNullOrEmpty(txt); + if (flag2) + { + int queueCnt = this.barrages[0].queueCnt; + BarrageQueue barrageQueue = this.barrages[0]; + int num = 0; + for (int i = BarrageDlg.MAX_QUEUE_CNT - 1; i > 0; i--) + { + bool flag3 = this.barrages[i].queueCnt < queueCnt; + if (flag3) + { + num = i; + queueCnt = this.barrages[i].queueCnt; + barrageQueue = this.barrages[i]; + } + } + BarrageItem barrageItem = this.FetchItem(); + barrageItem.transform.parent = base.uiBehaviour.m_objQueue[num].transform; + barrageItem.transform.localScale = Vector3.one; + barrageItem.transform.localEulerAngles = Vector3.zero; + barrageItem.transform.localPosition = new Vector3(base.uiBehaviour.m_tranRightBound.transform.localPosition.x, 0f, 0f); + barrageQueue.Fire(barrageItem, txt, outline); + } + } + } + + public bool IsOutScreen(float posX) + { + bool flag = base.IsVisible(); + return flag && posX < base.uiBehaviour.m_tranLeftBound.localPosition.x; + } + + public BarrageItem FetchItem() + { + bool flag = this.itemspool.Count > 0; + BarrageItem barrageItem; + if (flag) + { + barrageItem = this.itemspool.Dequeue(); + barrageItem.gameObject.SetActive(true); + } + else + { + GameObject gameObject = XCommon.Instantiate(base.uiBehaviour.m_lblTpl.gameObject); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localEulerAngles = Vector3.zero; + barrageItem = gameObject.AddComponent(); + } + return barrageItem; + } + + public void RecycleItem(BarrageItem item) + { + bool flag = this.itemspool.Count > 8; + if (flag) + { + item.Drop(); + } + else + { + item.gameObject.SetActive(false); + this.itemspool.Enqueue(item); + } + } + + public string RemoveLink(string content) + { + bool flag = content.Contains("sp="); + if (flag) + { + int num = content.LastIndexOf("sp=") - 1; + bool flag2 = num > 0; + if (flag2) + { + content = content.Remove(num); + } + } + return content; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BarrageDlg.cs.meta b/Client/Assets/Scripts/XMainClient/BarrageDlg.cs.meta new file mode 100644 index 00000000..70e108f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 50b939616a4f5104dbfeeadee3efb0b4 +timeCreated: 1611403704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BarrageItem.cs b/Client/Assets/Scripts/XMainClient/BarrageItem.cs new file mode 100644 index 00000000..f66f121d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageItem.cs @@ -0,0 +1,92 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BarrageItem : DlgBehaviourBase + { + private List m_colors = new List(); + + private List m_sizes = new List(); + + public IXUILabel label; + + public GameObject outline; + + public Transform cacheTrans; + + private BarrageQueue mQueue; + + private int labelWidth = 10; + + private Vector3 start; + + private Vector3 end; + + private float t_start; + + private float t_cnt; + + public void Awake() + { + this.cacheTrans = base.transform; + this.label = (this.cacheTrans.GetComponent("XUILabel") as IXUILabel); + this.outline = this.cacheTrans.Find("me").gameObject; + this.m_colors = XSingleton.singleton.GetStringList("BarrageColors"); + this.m_sizes = XSingleton.singleton.GetIntList("BarrageSize"); + } + + public void Make(string txt, BarrageQueue queue, bool outl) + { + this.mQueue = queue; + int index = UnityEngine.Random.Range(0, this.m_colors.Count); + int fontSize = UnityEngine.Random.Range(this.m_sizes[0], this.m_sizes[1]); + txt = XSingleton.singleton.StringCombine(this.m_colors[index], txt, "[-]"); + this.label.SetText(txt); + this.label.spriteDepth = queue.depth; + this.label.fontSize = fontSize; + this.label.SetDepthOffset(queue.queueCnt); + this.labelWidth = this.label.spriteWidth; + this.start = base.transform.localPosition; + this.end = new Vector3(this.start.x - (float)(this.labelWidth * 2) - 1136f, this.start.y, this.start.z); + this.t_start = Time.time; + this.t_cnt = (float)BarrageDlg.MOVE_TIME; + this.outline.SetActive(outl); + } + + public void Update() + { + bool flag = DlgBase.singleton.IsOutScreen(this.cacheTrans.localPosition.x + (float)this.labelWidth); + if (flag) + { + bool flag2 = this.mQueue != null; + if (flag2) + { + this.mQueue.FadeOut(this); + } + DlgBase.singleton.RecycleItem(this); + } + else + { + bool flag3 = this.cacheTrans != null; + if (flag3) + { + this.cacheTrans.localPosition = Vector3.Lerp(this.start, this.end, (Time.time - this.t_start) / this.t_cnt); + } + } + } + + public void Drop() + { + bool flag = base.gameObject != null; + if (flag) + { + UnityEngine.Object.Destroy(base.gameObject); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BarrageItem.cs.meta b/Client/Assets/Scripts/XMainClient/BarrageItem.cs.meta new file mode 100644 index 00000000..25c553b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1151aba284610104dbef6c369d867286 +timeCreated: 1611403238 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BarrageMsg.cs b/Client/Assets/Scripts/XMainClient/BarrageMsg.cs new file mode 100644 index 00000000..27c6f6f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageMsg.cs @@ -0,0 +1,12 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class BarrageMsg : LoopItemData + { + public string nickname; + + public string content; + } +} diff --git a/Client/Assets/Scripts/XMainClient/BarrageMsg.cs.meta b/Client/Assets/Scripts/XMainClient/BarrageMsg.cs.meta new file mode 100644 index 00000000..8d07a83d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 881a83991959cc5468ca9e2654ee1937 +timeCreated: 1611404082 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BarrageQueue.cs b/Client/Assets/Scripts/XMainClient/BarrageQueue.cs new file mode 100644 index 00000000..be8b570d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageQueue.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class BarrageQueue + { + public int queueCnt + { + get + { + return this.mItems.Count; + } + } + + public int depth = 1; + + private List mItems = new List(); + + public void Fire(BarrageItem item, string txt, bool outline) + { + this.mItems.Add(item); + item.Make(txt, this, outline); + this.depth++; + } + + public bool FadeOut(BarrageItem item) + { + bool flag = this.mItems.Contains(item); + bool result; + if (flag) + { + this.mItems.Remove(item); + result = true; + } + else + { + result = false; + } + return result; + } + + public void ForceClear() + { + for (int i = 0; i < this.mItems.Count; i++) + { + bool flag = this.mItems[i] != null && this.mItems[i].gameObject != null; + if (flag) + { + this.mItems[i].Drop(); + } + } + this.mItems.Clear(); + this.depth = 1; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BarrageQueue.cs.meta b/Client/Assets/Scripts/XMainClient/BarrageQueue.cs.meta new file mode 100644 index 00000000..c2a797fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BarrageQueue.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b67fb7ea80ab9a428c1349dbaf2eb20 +timeCreated: 1611403892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BattleCaptainPVPHandler.cs b/Client/Assets/Scripts/XMainClient/BattleCaptainPVPHandler.cs new file mode 100644 index 00000000..888f20f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleCaptainPVPHandler.cs @@ -0,0 +1,486 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BattleCaptainPVPHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/BattleCaptainPVP"; + } + } + + private XBattleCaptainPVPDocument _doc = null; + + private Vector3 NoVisible = new Vector3(2000f, 0f, 0f); + + private uint _StratTimerID = 0u; + + private uint _RefreshDataTimerID = 0u; + + private ulong BlueLeader = 0UL; + + private ulong RedLeader = 0UL; + + public string picPath = null; + + public IXUILabel m_Leader; + + public IXUILabel m_Blue; + + public IXUILabel m_Red; + + public IXUILabel m_AllEndTime; + + public IXUILabel m_RoundEndTime; + + public IXUILabel m_EndText; + + public IXUILabel m_ReliveTime; + + public IXUITweenTool m_Start; + + public IXUITweenTool m_Relive; + + public IXUITweenTool m_End; + + public IXUITexture m_EndIcon; + + public IXUISprite m_KillText; + + public Transform teamLeader; + + public IXUILabel m_BlueLeaderName; + + public IXUILabel m_BlueHpPer; + + public IXUIProgress m_BlueHpBar; + + public IXUILabel m_RedLeaderName; + + public IXUILabel m_RedHpPer; + + public IXUIProgress m_RedHpBar; + + public GameObject m_Win; + + public GameObject m_Draw; + + public GameObject m_Lose; + + public IXUITweenTool[] m_Killicon = new IXUITweenTool[XBattleCaptainPVPDocument.CONTINUOUS_KILL + 1u]; + + private Vector3 infoDis; + + public XUIPool m_ShowIntoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel[] m_Killer = new IXUILabel[XBattleCaptainPVPDocument.GAME_INFO]; + + public IXUILabel[] m_Dead = new IXUILabel[XBattleCaptainPVPDocument.GAME_INFO]; + + public IXUISprite[] m_InfoIcon = new IXUISprite[XBattleCaptainPVPDocument.GAME_INFO]; + + protected override void Init() + { + base.Init(); + XBattleCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + specificDocument.Handler = this; + this.m_Leader = (base.PanelObject.transform.Find("Start/Leader").GetComponent("XUILabel") as IXUILabel); + this.m_Start = (base.PanelObject.transform.Find("Start").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Blue = (base.PanelObject.transform.Find("Sorce/Blue").GetComponent("XUILabel") as IXUILabel); + this.m_Red = (base.PanelObject.transform.Find("Sorce/Red").GetComponent("XUILabel") as IXUILabel); + this.m_End = (base.PanelObject.transform.Find("End").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Win = base.PanelObject.transform.Find("End/Win").gameObject; + this.m_Draw = base.PanelObject.transform.Find("End/Draw").gameObject; + this.m_Lose = base.PanelObject.transform.Find("End/Lose").gameObject; + this.m_AllEndTime = (base.PanelObject.transform.Find("End/AllEndTime").GetComponent("XUILabel") as IXUILabel); + this.m_RoundEndTime = (base.PanelObject.transform.Find("End/RoundEndTime").GetComponent("XUILabel") as IXUILabel); + this.m_EndText = (base.PanelObject.transform.Find("End/T").GetComponent("XUILabel") as IXUILabel); + this.m_ReliveTime = (base.PanelObject.transform.Find("ReliveTime").GetComponent("XUILabel") as IXUILabel); + this.m_Relive = (base.PanelObject.transform.Find("ReliveTime").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_EndIcon = (base.PanelObject.transform.Find("End/Icon").GetComponent("XUITexture") as IXUITexture); + int num = 1; + while ((long)num <= (long)((ulong)XBattleCaptainPVPDocument.CONTINUOUS_KILL)) + { + this.m_Killicon[num] = (base.PanelObject.transform.Find("Continuous/Killicon" + num).GetComponent("XUIPlayTween") as IXUITweenTool); + num++; + } + this.m_KillText = (base.PanelObject.transform.Find("Continuous/KillText").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.PanelObject.transform.Find("KillInfo/Bg/InfoTpl"); + this.m_ShowIntoPool.SetupPool(null, transform.gameObject, XDeck.GROUP_NEED_CARD_MAX, false); + this.m_ShowIntoPool.FakeReturnAll(); + int num2 = 0; + while ((long)num2 < (long)((ulong)XBattleCaptainPVPDocument.GAME_INFO)) + { + GameObject gameObject = this.m_ShowIntoPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + this.infoDis = new Vector3(0f, (float)(-(float)ixuisprite.spriteHeight), 0f); + gameObject.transform.localPosition = this.infoDis * (float)num2; + this.m_Killer[num2] = (gameObject.transform.Find("killer").GetComponent("XUILabel") as IXUILabel); + this.m_Dead[num2] = (gameObject.transform.Find("dead").GetComponent("XUILabel") as IXUILabel); + this.m_InfoIcon[num2] = (gameObject.transform.Find("icon").GetComponent("XUISprite") as IXUISprite); + num2++; + } + this.m_ShowIntoPool.ActualReturnAll(false); + this._doc = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + this.teamLeader = base.PanelObject.transform.Find("TeamLeader"); + this.m_BlueLeaderName = (this.teamLeader.Find("LeaderBlue").GetComponent("XUILabel") as IXUILabel); + this.m_BlueHpPer = (this.teamLeader.Find("LeaderBlue/Per").GetComponent("XUILabel") as IXUILabel); + this.m_BlueHpBar = (this.teamLeader.Find("LeaderBlue/HpBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_RedLeaderName = (this.teamLeader.transform.Find("LeaderRed").GetComponent("XUILabel") as IXUILabel); + this.m_RedHpPer = (this.teamLeader.transform.Find("LeaderRed/Per").GetComponent("XUILabel") as IXUILabel); + this.m_RedHpBar = (this.teamLeader.transform.Find("LeaderRed/HpBar").GetComponent("XUIProgress") as IXUIProgress); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + this.InitShow(); + XSingleton.singleton.KillTimer(this._StratTimerID); + XSingleton.singleton.KillTimer(this._RefreshDataTimerID); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this._StratTimerID); + XSingleton.singleton.KillTimer(this._RefreshDataTimerID); + this._StratTimerID = 0u; + this._RefreshDataTimerID = 0u; + this.m_EndIcon.SetTexturePath(""); + base.OnHide(); + } + + public override void OnUnload() + { + bool flag = base.PanelObject != null; + if (flag) + { + base.PanelObject.SetActive(false); + } + this._doc.TeamBlood.Clear(); + this._doc.Handler = null; + XSingleton.singleton.KillTimer(this._StratTimerID); + XSingleton.singleton.KillTimer(this._RefreshDataTimerID); + this._StratTimerID = 0u; + this._RefreshDataTimerID = 0u; + this._doc.myTeam = 0; + this._doc.groupLeader1 = 0UL; + this._doc.groupLeader2 = 0UL; + this._doc.spectateInitTeam = 0; + this._doc.spectateNowTeam = 0; + this._doc.playedBigResult = false; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + private void InitShow() + { + this._doc.qInfo.Clear(); + this.m_Start.gameObject.SetActive(false); + this.m_End.gameObject.SetActive(false); + this.m_ReliveTime.gameObject.SetActive(false); + this.ShowGameInfo(); + this.ShowConKill(0); + this.m_Blue.SetText("0"); + this.m_Red.SetText("0"); + this.m_BlueLeaderName.SetText(""); + this.m_BlueHpPer.SetText(""); + this.m_BlueHpBar.value = 0f; + this.m_RedLeaderName.SetText(""); + this.m_RedHpPer.SetText(""); + this.m_RedHpBar.value = 0f; + } + + public void ShowGameInfo() + { + this.m_ShowIntoPool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)XBattleCaptainPVPDocument.GAME_INFO)) + { + GameObject gameObject = this.m_ShowIntoPool.FetchGameObject(false); + bool flag = this._doc.qInfo.Count <= num; + if (flag) + { + gameObject.transform.localPosition = this.NoVisible; + } + else + { + gameObject.transform.localPosition = this.infoDis * (float)num; + int num2 = 0; + foreach (XBattleCaptainPVPDocument.KillInfo killInfo in this._doc.qInfo) + { + bool flag2 = num2 == num; + if (flag2) + { + this.m_Killer[num].SetText(killInfo.KillName); + this.m_Dead[num].SetText(killInfo.DeadName); + bool isDoodad = killInfo.IsDoodad; + if (isDoodad) + { + this.m_InfoIcon[num].SetSprite("hall_zljt_0"); + } + else + { + this.m_InfoIcon[num].SetSprite("klj"); + } + break; + } + num2++; + } + } + num++; + } + this.m_ShowIntoPool.ActualReturnAll(false); + } + + public void ShowConKill(int count) + { + bool flag = count <= 1; + if (flag) + { + this.m_KillText.SetAlpha(0f); + } + else + { + this.m_KillText.SetAlpha(1f); + string arg = (count >= 9) ? "9" : count.ToString(); + this.m_KillText.SetSprite(string.Format("{0}{1}", "kill", arg)); + this.m_KillText.MakePixelPerfect(); + } + bool flag2 = count > 0; + if (flag2) + { + int param = (count >= 5) ? 5 : count; + this.PlayAudio(param); + } + bool flag3 = (long)count >= (long)((ulong)XBattleCaptainPVPDocument.CONTINUOUS_KILL); + if (flag3) + { + count = (int)XBattleCaptainPVPDocument.CONTINUOUS_KILL; + } + int num = 1; + while ((long)num <= (long)((ulong)XBattleCaptainPVPDocument.CONTINUOUS_KILL)) + { + bool flag4 = num <= count; + if (flag4) + { + this.m_Killicon[num].gameObject.transform.localPosition = new Vector3((float)(((double)((float)(num - 1) + 0.5f) - (double)count / 2.0) * (double)XBattleCaptainPVPDocument.ConKillIconDis), 0f, 0f); + this.m_Killicon[num].PlayTween(true, -1f); + } + else + { + this.m_Killicon[num].gameObject.transform.localPosition = this.NoVisible; + } + num++; + } + } + + public void PlayAudio(int param) + { + XSingleton.singleton.PlayUISound(string.Format("Audio/VO/System/system{0}", param), true, AudioChannel.Action); + } + + public void ShowReviveTime(float time, bool isClose) + { + bool flag = isClose && this.m_Relive.gameObject.activeSelf; + if (flag) + { + this.m_Relive.PlayTween(true, -1f); + } + bool flag2 = time < 0f; + if (flag2) + { + time = 0f; + } + int num = (int)time; + this.m_ReliveTime.SetText(num.ToString()); + } + + public void ShowEndTime(float time, bool isClose, bool isEndAll) + { + bool flag = isClose && this.m_End.gameObject.activeSelf; + if (flag) + { + if (isEndAll) + { + this.m_End.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnEndMoveOver)); + } + else + { + this.m_End.RegisterOnFinishEventHandler(null); + } + this.m_End.PlayTween(true, -1f); + } + bool flag2 = time < 0f; + if (flag2) + { + time = 0f; + } + int num = (int)time; + bool playedBigResult = this._doc.playedBigResult; + if (playedBigResult) + { + this.m_AllEndTime.Alpha = 1f; + this.m_RoundEndTime.Alpha = 0f; + this.m_AllEndTime.SetText(string.Format(XStringDefineProxy.GetString("CAPTAIN_END"), num.ToString())); + } + else + { + this.m_AllEndTime.Alpha = 0f; + this.m_RoundEndTime.Alpha = 1f; + this.m_RoundEndTime.SetText(string.Format(XStringDefineProxy.GetString("CAPTAIN_ROUND"), num.ToString())); + } + } + + private void OnEndMoveOver(IXUITweenTool tween) + { + this._doc.PlayBigResult(); + } + + public void ShowSorce(bool isMyWin) + { + if (isMyWin) + { + int num = int.Parse(this.m_Blue.GetText()); + this.m_Blue.SetText((num + 1).ToString()); + } + else + { + int num2 = int.Parse(this.m_Red.GetText()); + this.m_Red.SetText((num2 + 1).ToString()); + } + } + + public void ShowLeaderHpName(ulong blueLeader, ulong redLeader) + { + this.BlueLeader = blueLeader; + this.RedLeader = redLeader; + bool flag = blueLeader == 0UL; + if (flag) + { + this.m_BlueLeaderName.SetText(""); + } + else + { + XBattleCaptainPVPDocument.RoleData roleInfo = this._doc.GetRoleInfo(blueLeader); + bool flag2 = roleInfo.roleID > 0UL; + if (flag2) + { + this.m_BlueLeaderName.SetText(roleInfo.Name); + } + else + { + this.m_BlueLeaderName.SetText(""); + } + } + bool flag3 = redLeader == 0UL; + if (flag3) + { + this.m_RedLeaderName.SetText(""); + } + else + { + XBattleCaptainPVPDocument.RoleData roleInfo = this._doc.GetRoleInfo(redLeader); + bool flag4 = roleInfo.roleID > 0UL; + if (flag4) + { + this.m_RedLeaderName.SetText(roleInfo.Name); + } + else + { + this.m_RedLeaderName.SetText(""); + } + } + } + + public void RefreshLeaderHp() + { + bool isEnd = this._doc.isEnd; + if (isEnd) + { + this.BlueLeader = 0UL; + this.RedLeader = 0UL; + } + bool flag = this.BlueLeader == 0UL && this.RedLeader == 0UL; + if (!flag) + { + XEntity entity = XSingleton.singleton.GetEntity(this.BlueLeader); + bool flag2 = entity != null; + if (flag2) + { + double attr = entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Total); + double attr2 = entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double num = attr / attr2; + this.m_BlueHpPer.SetText(string.Format("{0}%", Math.Ceiling(num * 100.0).ToString())); + this.m_BlueHpBar.value = (float)num; + } + else + { + this.m_BlueHpPer.SetText(""); + this.m_BlueHpBar.value = 0f; + } + entity = XSingleton.singleton.GetEntity(this.RedLeader); + bool flag3 = entity != null; + if (flag3) + { + double attr = entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Total); + double attr2 = entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double num = attr / attr2; + this.m_RedHpPer.SetText(string.Format("{0}%", Math.Ceiling(num * 100.0).ToString())); + this.m_RedHpBar.value = (float)num; + } + else + { + this.m_RedHpPer.SetText(""); + this.m_RedHpBar.value = 0f; + } + } + } + + public void ShowStart() + { + this._StratTimerID = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this._ShowStart), null); + } + + private void _ShowStart(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + this.m_Start.PlayTween(true, -1f); + } + } + + private void AutoRefresh(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + this._doc.ReqBattleCaptainPVPRefreshInfo(false); + this._RefreshDataTimerID = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(this.AutoRefresh), null); + } + } + + public void StartAutoRefresh(object param) + { + bool flag = base.IsVisible() && this._RefreshDataTimerID == 0u; + if (flag) + { + this._RefreshDataTimerID = XSingleton.singleton.SetTimer(3f, new XTimerMgr.ElapsedEventHandler(this.AutoRefresh), null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BattleCaptainPVPHandler.cs.meta b/Client/Assets/Scripts/XMainClient/BattleCaptainPVPHandler.cs.meta new file mode 100644 index 00000000..6ff062a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleCaptainPVPHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 853804c32a7cee943a9ce723098f16b5 +timeCreated: 1611404051 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BattleFieldBattleHandler.cs b/Client/Assets/Scripts/XMainClient/BattleFieldBattleHandler.cs new file mode 100644 index 00000000..e9d07868 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleFieldBattleHandler.cs @@ -0,0 +1,227 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BattleFieldBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/BattleField"; + } + } + + private uint _RefreshRankTimerID = 0u; + + private bool[] isEndTimeTip = new bool[6]; + + private List PointRewardList = new List(); + + private int PointStage; + + private XLeftTimeCounter _ReviveCounter; + + private IXUILabel m_MyRank; + + private IXUILabel m_MyName; + + private IXUILabel m_MyValue; + + private IXUIButton m_RankBtn; + + private IXUITweenTool m_Tween; + + private IXUILabel m_ReviveTime; + + private IXUILabel m_PointRewardTips; + + private XUIPool m_RankPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + XBattleFieldBattleDocument.Doc.battleHandler = this; + this.m_ReviveTime = (base.transform.Find("ReviveTime").GetComponent("XUILabel") as IXUILabel); + this.m_PointRewardTips = (base.transform.Find("PointRewardTips").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("RankPanel"); + this.m_MyRank = (transform.Find("MyInfo/Rank").GetComponent("XUILabel") as IXUILabel); + this.m_MyName = (transform.Find("MyInfo/Name").GetComponent("XUILabel") as IXUILabel); + this.m_MyValue = (transform.Find("MyInfo/Value").GetComponent("XUILabel") as IXUILabel); + this.m_RankBtn = (transform.Find("RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Tween = (transform.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform2 = transform.Find("RankTpl"); + this.m_RankPool.SetupPool(null, transform2.gameObject, 5u, false); + this._ReviveCounter = new XLeftTimeCounter(this.m_ReviveTime, true); + this._ReviveCounter.SetTimeFormat(1, 3, 4, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_RankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnRankBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.KillTimer(this._RefreshRankTimerID); + this.AutoRefresh(null); + this.InitShow(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._ReviveCounter.Update(); + float leftTime = DlgBase.singleton.GetLeftTime(); + this.EndTip((int)leftTime); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this._RefreshRankTimerID); + this._RefreshRankTimerID = 0u; + XBattleFieldBattleDocument.Doc.battleHandler = null; + base.OnUnload(); + } + + private void AutoRefresh(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + XBattleFieldBattleDocument.Doc.ReqRankData(); + this._RefreshRankTimerID = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.AutoRefresh), null); + } + } + + public void InitShow() + { + this.m_MyRank.SetText(XSingleton.singleton.GetString("NoRank")); + this.m_MyName.SetText(""); + this.m_MyValue.SetText("0"); + this.PointStage = 0; + this.RefreshPointStage(0UL); + DlgBase.singleton.HideLeftTime(); + this.m_RankPool.ReturnAll(false); + for (int i = 0; i < this.isEndTimeTip.Length; i++) + { + this.isEndTimeTip[i] = false; + } + this.PointRewardList = XBattleFieldEntranceDocument.Doc.GetPointRewardList(); + for (int j = this.PointRewardList.Count - 1; j >= 0; j--) + { + BattleFieldPointReward.RowData curPointRewardList = XBattleFieldEntranceDocument.Doc.GetCurPointRewardList(this.PointRewardList[j].id); + uint pointRewardGetCount = XBattleFieldEntranceDocument.Doc.GetPointRewardGetCount(this.PointRewardList[j].id); + bool flag = pointRewardGetCount == curPointRewardList.count; + if (flag) + { + this.PointRewardList.RemoveAt(j); + } + } + } + + public void RefreshRank(List data) + { + int num = -1; + for (int i = 0; i < data.Count; i++) + { + bool flag = data[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + num = i; + break; + } + } + bool flag2 = num != -1; + if (flag2) + { + BattleFieldRank battleFieldRank = data[num]; + this.m_MyRank.SetText((num + 1).ToString()); + this.m_MyName.SetText(battleFieldRank.name); + this.m_MyValue.SetText(battleFieldRank.point.ToString()); + this.RefreshPointStage((ulong)battleFieldRank.point); + } + this.m_RankPool.FakeReturnAll(); + int num2 = 0; + while (num2 < data.Count && num2 < XBigMeleeBattleDocument.BATTLE_SHOW_RANK) + { + GameObject gameObject = this.m_RankPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num2 * this.m_RankPool.TplHeight), 0f) + this.m_RankPool.TplPos; + IXUILabel ixuilabel = gameObject.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + BattleFieldRank battleFieldRank2 = data[num2]; + ixuilabel.SetText((num2 + 1).ToString()); + ixuilabel2.SetText(battleFieldRank2.name); + ixuilabel3.SetText(battleFieldRank2.point.ToString()); + num2++; + } + this.m_RankPool.ActualReturnAll(false); + } + + private void RefreshPointStage(ulong value) + { + while (this.PointStage < this.PointRewardList.Count && value >= (ulong)((long)this.PointRewardList[this.PointStage].point)) + { + this.PointStage++; + } + bool flag = this.PointStage < this.PointRewardList.Count; + if (flag) + { + this.m_PointRewardTips.SetText(string.Format(XStringDefineProxy.GetString("BIG_MELEE_POINT_STAGE"), this.PointRewardList[this.PointStage].point.ToString())); + } + else + { + this.m_PointRewardTips.SetText(XStringDefineProxy.GetString("BIG_MELEE_MAX_POINT_STAGE")); + } + } + + public void SetReviveTime(uint time) + { + this._ReviveCounter.SetLeftTime(time + 0.5f, -1); + } + + private bool _OnRankBtnClick(IXUIButton btn) + { + this.m_Tween.PlayTween(true, -1f); + return true; + } + + public void EndTip(int time) + { + bool flag = time >= 7 || time <= 0; + if (!flag) + { + int num = time - 1; + bool flag2 = this.isEndTimeTip[num]; + if (!flag2) + { + this.isEndTimeTip[num] = true; + bool flag3 = time == 6; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BIG_MELEE_END_TIP"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(time.ToString(), "fece00"); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BattleFieldBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/BattleFieldBattleHandler.cs.meta new file mode 100644 index 00000000..7e5bb5c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleFieldBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57e66e11ef303104495d63f675bd8a0f +timeCreated: 1611403751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BattleFieldEntranceBehaviour.cs b/Client/Assets/Scripts/XMainClient/BattleFieldEntranceBehaviour.cs new file mode 100644 index 00000000..7d1e7848 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleFieldEntranceBehaviour.cs @@ -0,0 +1,43 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BattleFieldEntranceBehaviour : DlgBehaviourBase + { + public Transform m_Bg; + + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_Join; + + public IXUIButton m_PointRewardBtn; + + public IXUIButton m_FallBtn; + + public XUIPool m_RewardShowPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_Rule; + + public IXUILabel m_Time; + + private void Awake() + { + this.m_Bg = base.transform.Find("Bg"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Join = (base.transform.Find("Bg/Join").GetComponent("XUIButton") as IXUIButton); + this.m_PointRewardBtn = (base.transform.Find("Bg/PointRewardBtn").GetComponent("XUIButton") as IXUIButton); + this.m_FallBtn = (base.transform.Find("Bg/FallBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Rule = (base.transform.Find("Bg/Left/Rule").GetComponent("XUILabel") as IXUILabel); + this.m_Time = (base.transform.Find("Bg/Left/Time").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Left/Reward/ItemTpl"); + this.m_RewardShowPool.SetupPool(null, transform.gameObject, 5u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BattleFieldEntranceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/BattleFieldEntranceBehaviour.cs.meta new file mode 100644 index 00000000..137d2224 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleFieldEntranceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ede0abc34516b34594e7587f70f22c9 +timeCreated: 1611404006 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BattleFieldEntranceView.cs b/Client/Assets/Scripts/XMainClient/BattleFieldEntranceView.cs new file mode 100644 index 00000000..03fc482b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleFieldEntranceView.cs @@ -0,0 +1,184 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BattleFieldEntranceView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/BattleFieldEntrance"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Battlefield); + } + } + + private ItemListHandler _ItemListHandler; + + public PointRewardHandler _PointRewardHandler; + + private string[] reward = XSingleton.singleton.GetValue("BattleFieldShowReward").Split(new char[] + { + '|' + }); + + protected override void Init() + { + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_Join.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinClicked)); + base.uiBehaviour.m_PointRewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPointRewardClicked)); + base.uiBehaviour.m_FallBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFallClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Rule.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BATTLEFIELD_RULE"))); + base.uiBehaviour.m_Time.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BATTLEFIELD_TIME"))); + this.Refresh(); + } + + public void Refresh() + { + base.uiBehaviour.m_RewardShowPool.FakeReturnAll(); + for (int i = 0; i < this.reward.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardShowPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(i * base.uiBehaviour.m_RewardShowPool.TplWidth), 0f, 0f) + base.uiBehaviour.m_RewardShowPool.TplPos; + uint num = uint.Parse(this.reward[i]); + Transform transform = gameObject.transform.Find("Item"); + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, (int)num, 0, false); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + base.uiBehaviour.m_RewardShowPool.ActualReturnAll(false); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._ItemListHandler); + DlgHandlerBase.EnsureUnload(ref this._PointRewardHandler); + base.OnUnload(); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Battlefield); + return true; + } + + public bool OnJoinClicked(IXUIButton btn) + { + bool flag = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnJoinClicked), btn); + bool result; + if (flag) + { + result = true; + } + else + { + XBattleFieldEntranceDocument.Doc.ReqJoin(); + result = true; + } + return result; + } + + public bool OnPointRewardClicked(IXUIButton btn) + { + XBattleFieldEntranceDocument.Doc.ReqPointRewardInfo(); + DlgHandlerBase.EnsureCreate(ref this._PointRewardHandler, base.uiBehaviour.m_Bg, false, null); + bool flag = this._PointRewardHandler.Sys != XSysDefine.XSys_Battlefield; + if (flag) + { + List pointRewardList = XBattleFieldEntranceDocument.Doc.GetPointRewardList(); + List list = new List(pointRewardList.Count); + for (int i = 0; i < pointRewardList.Count; i++) + { + PointRewardData pointRewardData = default(PointRewardData); + pointRewardData.Init(); + pointRewardData.id = pointRewardList[i].id; + pointRewardData.point = pointRewardList[i].point; + for (int j = 0; j < pointRewardList[i].reward.Count; j++) + { + pointRewardData.rewardItem.Add(pointRewardList[i].reward[j, 0], pointRewardList[i].reward[j, 1]); + } + list.Add(pointRewardData); + } + this._PointRewardHandler.SetData(list, XSysDefine.XSys_Battlefield); + } + this._PointRewardHandler.SetVisible(true); + return true; + } + + public bool OnFallClicked(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this._ItemListHandler, base.uiBehaviour.transform, false, null); + PandoraDocument specificDocument = XDocuments.GetSpecificDocument(PandoraDocument.uuID); + specificDocument.GetShowItemList(uint.Parse(XSingleton.singleton.GetValue("BattleFieldShowFallPandoraid"))); + this._ItemListHandler.ShowItemList(PandoraDocument.ItemList); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BattleFieldEntranceView.cs.meta b/Client/Assets/Scripts/XMainClient/BattleFieldEntranceView.cs.meta new file mode 100644 index 00000000..1a87be69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleFieldEntranceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0b2e640f9f1cbf4581cb85e68e19d68 +timeCreated: 1611404353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BattleLine.cs b/Client/Assets/Scripts/XMainClient/BattleLine.cs new file mode 100644 index 00000000..b6e7f5bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleLine.cs @@ -0,0 +1,18 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BattleLine + { + public ulong e1; + + public ulong e2; + + public XEntity xe1; + + public XEntity xe2; + + public XFx fx; + } +} diff --git a/Client/Assets/Scripts/XMainClient/BattleLine.cs.meta b/Client/Assets/Scripts/XMainClient/BattleLine.cs.meta new file mode 100644 index 00000000..c88d068e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleLine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2409e2d77b1a62047b4ded75b39b419f +timeCreated: 1611403459 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BattleShowInfoHandler.cs b/Client/Assets/Scripts/XMainClient/BattleShowInfoHandler.cs new file mode 100644 index 00000000..144ee83e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleShowInfoHandler.cs @@ -0,0 +1,143 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BattleShowInfoHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/BattleShowGameInfo"; + } + } + + public static readonly uint GAME_INFO_MAX = 3u; + + public static readonly uint CLEAR_GAME_INFO_TIME = 10u; + + private uint m_ShowInfoTimerID = 0u; + + private Queue qInfo = new Queue(); + + private float lastShowInfoTime; + + private bool isChange = false; + + public static readonly string red = "[ef2717]"; + + public static readonly string blue = "[21b2ff]"; + + public IXPositionGroup m_pauseGroup; + + public XUIPool m_InfoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_pauseGroup = (base.transform.Find("Bg").GetComponent("PositionGroup") as IXPositionGroup); + Transform transform = base.transform.Find("Bg/InfoTpl"); + this.m_InfoPool.SetupPool(null, transform.gameObject, BattleShowInfoHandler.GAME_INFO_MAX, false); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.KillTimer(this.m_ShowInfoTimerID); + this.RefreshInfo(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_SURVIVE; + if (flag) + { + this.m_pauseGroup.SetGroup(1); + } + else + { + this.m_pauseGroup.SetGroup(0); + } + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.m_ShowInfoTimerID); + this.m_ShowInfoTimerID = 0u; + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this.m_ShowInfoTimerID); + this.m_ShowInfoTimerID = 0u; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = Time.time > this.lastShowInfoTime + BattleShowInfoHandler.CLEAR_GAME_INFO_TIME; + if (flag) + { + while (this.qInfo.Count != 0) + { + this.qInfo.Clear(); + this.isChange = true; + } + } + bool flag2 = this.isChange; + if (flag2) + { + this.RefreshInfo(); + this.isChange = false; + } + } + + public void AddInfo(string newInfo) + { + this.lastShowInfoTime = Time.time; + this.qInfo.Enqueue(newInfo); + bool flag = (long)this.qInfo.Count > (long)((ulong)BattleShowInfoHandler.GAME_INFO_MAX); + if (flag) + { + this.qInfo.Dequeue(); + } + this.RefreshInfo(); + } + + private void RefreshInfo() + { + this.m_InfoPool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)BattleShowInfoHandler.GAME_INFO_MAX)) + { + GameObject gameObject = this.m_InfoPool.FetchGameObject(false); + bool flag = this.qInfo.Count <= num; + if (flag) + { + gameObject.transform.localPosition = XGameUI.Far_Far_Away; + } + else + { + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_InfoPool.TplHeight * num), 0f); + int num2 = 0; + foreach (string text in this.qInfo) + { + bool flag2 = num2 == num; + if (flag2) + { + IXUILabel ixuilabel = gameObject.transform.Find("info").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + break; + } + num2++; + } + } + num++; + } + this.m_InfoPool.ActualReturnAll(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BattleShowInfoHandler.cs.meta b/Client/Assets/Scripts/XMainClient/BattleShowInfoHandler.cs.meta new file mode 100644 index 00000000..918f8dee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BattleShowInfoHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09b1ec2320e5894498e91f6958e80bcd +timeCreated: 1611403158 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BeenAppliedMsgType.cs b/Client/Assets/Scripts/XMainClient/BeenAppliedMsgType.cs new file mode 100644 index 00000000..62b06cd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BeenAppliedMsgType.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public enum BeenAppliedMsgType + { + None, + Report, + Inherit, + ApplyPupil, + ApplyMaster + } +} diff --git a/Client/Assets/Scripts/XMainClient/BeenAppliedMsgType.cs.meta b/Client/Assets/Scripts/XMainClient/BeenAppliedMsgType.cs.meta new file mode 100644 index 00000000..6db025c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BeenAppliedMsgType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5d0a2d3aa5abbe45a6161db14e9b3db +timeCreated: 1611404628 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BigMeleeBattleHandler.cs b/Client/Assets/Scripts/XMainClient/BigMeleeBattleHandler.cs new file mode 100644 index 00000000..f5b5b07f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigMeleeBattleHandler.cs @@ -0,0 +1,346 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BigMeleeBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/BigMeleeBattle"; + } + } + + private XBigMeleeBattleDocument doc = null; + + private uint _RefreshDataTimerID = 0u; + + private uint _AutoCloseTweenTimerID = 0u; + + private bool[] isEndTimeTip = new bool[6]; + + private List PointRewardList = new List(); + + private int PointStage; + + private XLeftTimeCounter _ReviveCounter; + + private XLeftTimeCounter _TimeCounter; + + private IXUITexture m_VS; + + private IXUILabel m_VSLabel; + + private IXUILabel m_MyRank; + + private IXUILabel m_MyName; + + private IXUILabel m_MyValue; + + private IXUIButton m_RankBtn; + + private IXUITweenTool m_Tween; + + private IXUILabel m_ReviveTime; + + private IXUILabel m_Time; + + private IXUILabel m_PointRewardTips; + + private IXUILabel m_Point; + + private IXUITweenTool m_PlayTween; + + private XUIPool m_RankPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private float LastTime; + + private uint LastPoint; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + this.doc.battleHandler = this; + this.m_VS = (base.transform.Find("VS/Tex").GetComponent("XUITexture") as IXUITexture); + this.m_VSLabel = (base.transform.Find("VS/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveTime = (base.transform.Find("ReviveTime").GetComponent("XUILabel") as IXUILabel); + this.m_Time = (base.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_PointRewardTips = (base.transform.Find("PointRewardTips").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("RankPanel"); + this.m_MyRank = (transform.Find("MyInfo/Rank").GetComponent("XUILabel") as IXUILabel); + this.m_MyName = (transform.Find("MyInfo/Name").GetComponent("XUILabel") as IXUILabel); + this.m_MyValue = (transform.Find("MyInfo/Value").GetComponent("XUILabel") as IXUILabel); + this.m_RankBtn = (transform.Find("RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Tween = (transform.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform2 = transform.Find("RankTpl"); + this.m_RankPool.SetupPool(null, transform2.gameObject, 5u, false); + this._ReviveCounter = new XLeftTimeCounter(this.m_ReviveTime, true); + this._ReviveCounter.SetTimeFormat(1, 3, 4, false); + this.m_Time.SetText(XSingleton.singleton.GetString("SKY_ARENA_BEGIN_WAIT_TIP")); + this._TimeCounter = new XLeftTimeCounter(this.m_Time, false); + XBigMeleeEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + this.PointRewardList = specificDocument.GetPointRewardList(); + this.m_Point = (base.transform.Find("Point").GetComponent("XUILabel") as IXUILabel); + this.m_PlayTween = (this.m_Point.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_RankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnRankBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.KillTimer(this._RefreshDataTimerID); + XSingleton.singleton.KillTimer(this._AutoCloseTweenTimerID); + this.m_VS.SetTexturePath(XSingleton.singleton.GetValue("BigMeleeVSTex")); + this.m_VSLabel.SetText(XSingleton.singleton.GetString("BIG_MELEE_LABEL")); + float interval = float.Parse(XSingleton.singleton.GetValue("BigMeleeVSTime")); + this._AutoCloseTweenTimerID = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.CloseVS), null); + this.AutoRefresh(null); + this.InitShow(); + this.RefreshStage(); + XSingleton.singleton.AddGreenLog("OnShow", null, null, null, null, null); + } + + public void ShieldMiniMapPlayer() + { + bool flag = DlgBase.singleton.IndicateHandler != null; + if (flag) + { + for (int i = 0; i < this.doc.userIdToRole.size; i++) + { + bool flag2 = this.doc.userIdToRole.BufferKeys[i] == XSingleton.singleton.XPlayerData.RoleID; + if (!flag2) + { + DlgBase.singleton.IndicateHandler.SetMiniMapElement(this.doc.userIdToRole.BufferKeys[i], "", 0, 0); + } + } + } + } + + public void RefreshStage() + { + bool flag = DlgBase.singleton.uiBehaviour != null && DlgBase.singleton.uiBehaviour.m_SkyAreanStage != null; + if (flag) + { + DlgBase.singleton.uiBehaviour.m_SkyAreanStage.SetText(string.Format(XSingleton.singleton.GetString("BIG_MELEE_STAGE"), this.doc.Round.ToString())); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._ReviveCounter.Update(); + this._TimeCounter.Update(); + float leftTime = DlgBase.singleton.GetLeftTime(); + this.EndTip((int)leftTime); + } + + public void CloseVS(object param) + { + this.m_VS.SetTexturePath(""); + this.m_VSLabel.SetText(""); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this._RefreshDataTimerID); + this._RefreshDataTimerID = 0u; + XSingleton.singleton.KillTimer(this._AutoCloseTweenTimerID); + this._AutoCloseTweenTimerID = 0u; + this.doc.battleHandler = null; + base.OnUnload(); + } + + private void AutoRefresh(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + XBigMeleeEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + specificDocument.ReqRankData(XBigMeleeBattleDocument.BATTLE_SHOW_RANK); + this._RefreshDataTimerID = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.AutoRefresh), null); + } + } + + public void InitShow() + { + this.m_MyRank.SetText(XSingleton.singleton.GetString("NoRank")); + this.m_MyName.SetText(""); + this.m_MyValue.SetText("0"); + this.PointStage = 0; + this.RefreshPointStage(0UL); + this.m_Time.gameObject.SetActive(false); + DlgBase.singleton.HideLeftTime(); + this.m_RankPool.ReturnAll(false); + for (int i = 0; i < this.isEndTimeTip.Length; i++) + { + this.isEndTimeTip[i] = false; + } + } + + public void RefreshRank() + { + List rankList = XBigMeleeEntranceDocument.Doc.RankList.rankList; + XBaseRankInfo myRankInfo = XBigMeleeEntranceDocument.Doc.RankList.myRankInfo; + uint num = myRankInfo.rank + 1u; + bool flag = myRankInfo != null; + if (flag) + { + bool flag2 = num == 0u || (ulong)num > (ulong)((long)XBigMeleeEntranceDocument.MAX_RANK); + if (flag2) + { + this.m_MyRank.SetText(XSingleton.singleton.GetString("NoRank")); + } + else + { + this.m_MyRank.SetText(num.ToString()); + } + this.m_MyName.SetText(myRankInfo.name); + this.m_MyValue.SetText(myRankInfo.value.ToString()); + this.RefreshPointStage(myRankInfo.value); + } + this.m_RankPool.FakeReturnAll(); + int num2 = 0; + while (num2 < rankList.Count && num2 < XBigMeleeBattleDocument.BATTLE_SHOW_RANK) + { + GameObject gameObject = this.m_RankPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num2 * this.m_RankPool.TplHeight), 0f) + this.m_RankPool.TplPos; + IXUILabel ixuilabel = gameObject.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + XBigMeleeRankInfo xbigMeleeRankInfo = rankList[num2] as XBigMeleeRankInfo; + ixuilabel.SetText((xbigMeleeRankInfo.rank + 1u).ToString()); + ixuilabel2.SetText(xbigMeleeRankInfo.name); + ixuilabel3.SetText(xbigMeleeRankInfo.value.ToString()); + num2++; + } + this.m_RankPool.ActualReturnAll(false); + } + + private void RefreshPointStage(ulong value) + { + while (this.PointStage < this.PointRewardList.Count && value >= (ulong)((long)this.PointRewardList[this.PointStage].point)) + { + this.PointStage++; + } + bool flag = this.PointStage < this.PointRewardList.Count; + if (flag) + { + this.m_PointRewardTips.SetText(string.Format(XStringDefineProxy.GetString("BIG_MELEE_POINT_STAGE"), this.PointRewardList[this.PointStage].point.ToString())); + } + else + { + this.m_PointRewardTips.SetText(XStringDefineProxy.GetString("BIG_MELEE_MAX_POINT_STAGE")); + } + } + + public void RefreshStatusTime(uint type, uint time) + { + bool flag = type == 1u; + if (flag) + { + bool flag2 = this.m_Time.IsVisible(); + if (flag2) + { + this.m_Time.gameObject.SetActive(false); + } + DlgBase.singleton.SetLeftTime(time, -1); + } + else + { + bool flag3 = type == 2u; + if (flag3) + { + bool flag4 = !this.m_Time.IsVisible(); + if (flag4) + { + this.m_Time.gameObject.SetActive(true); + } + DlgBase.singleton.HideLeftTime(); + bool flag5 = (ulong)this.doc.Round == (ulong)((long)int.Parse(XSingleton.singleton.GetValue("BigMeleeMaxGames"))); + if (flag5) + { + this.m_Time.SetText(XSingleton.singleton.GetString("BIG_MELEE_WAIT_REWARD")); + } + else + { + this._TimeCounter.SetLeftTime(time, -1); + this._TimeCounter.SetFinishEventHandler(new TimeOverFinishEventHandler(this._OnLeftTimeOver), null); + this._TimeCounter.SetFormatString(XSingleton.singleton.GetString("BIG_MELEE_NEXT_BATTLE_TIME")); + } + DlgBase.singleton.EnemyInfoHandler.SetVisible(false); + } + } + } + + private void _OnLeftTimeOver(object o) + { + this.m_Time.SetText(XSingleton.singleton.GetString("SKY_ARENA_MATCHING")); + } + + public void SetReviveTime(uint time) + { + this._ReviveCounter.SetLeftTime(time + 0.5f, -1); + } + + private bool _OnRankBtnClick(IXUIButton btn) + { + this.m_Tween.PlayTween(true, -1f); + return true; + } + + public void EndTip(int time) + { + bool flag = time >= 7 || time <= 0; + if (!flag) + { + int num = time - 1; + bool flag2 = this.isEndTimeTip[num]; + if (!flag2) + { + this.isEndTimeTip[num] = true; + bool flag3 = time == 6; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BIG_MELEE_END_TIP"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(time.ToString(), "fece00"); + } + } + } + } + + public void SetGetPointAnimation(uint point, uint posxz) + { + bool flag = Time.time - this.LastTime < 2f; + if (flag) + { + point += this.LastPoint; + } + this.LastPoint = point; + this.LastTime = Time.time; + this.m_Point.SetText(string.Format("ef+{0}", point)); + this.m_PlayTween.PlayTween(true, -1f); + XSingleton.singleton.AddGreenLog("addpoint:" + point, null, null, null, null, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BigMeleeBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/BigMeleeBattleHandler.cs.meta new file mode 100644 index 00000000..23ad1695 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigMeleeBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 476ef824828f61a44918df86336dc19f +timeCreated: 1611403654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BigMeleeEntranceBehaviour.cs b/Client/Assets/Scripts/XMainClient/BigMeleeEntranceBehaviour.cs new file mode 100644 index 00000000..c2e3a60b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigMeleeEntranceBehaviour.cs @@ -0,0 +1,43 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BigMeleeEntranceBehaviour : DlgBehaviourBase + { + public Transform m_Bg; + + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_Join; + + public IXUIButton m_PointRewardBtn; + + public IXUIButton m_RankRewardBtn; + + public XUIPool m_RewardShowPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_Rule; + + public IXUILabel m_Time; + + private void Awake() + { + this.m_Bg = base.transform.Find("Bg"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Join = (base.transform.Find("Bg/Join").GetComponent("XUIButton") as IXUIButton); + this.m_PointRewardBtn = (base.transform.Find("Bg/PointRewardBtn").GetComponent("XUIButton") as IXUIButton); + this.m_RankRewardBtn = (base.transform.Find("Bg/RankRewardBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Rule = (base.transform.Find("Bg/Rule").GetComponent("XUILabel") as IXUILabel); + this.m_Time = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Reward/ItemTpl"); + this.m_RewardShowPool.SetupPool(null, transform.gameObject, 5u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BigMeleeEntranceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/BigMeleeEntranceBehaviour.cs.meta new file mode 100644 index 00000000..6396a964 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigMeleeEntranceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 834064811db1a65409f77bef44496ec1 +timeCreated: 1611404043 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BigMeleeEntranceView.cs b/Client/Assets/Scripts/XMainClient/BigMeleeEntranceView.cs new file mode 100644 index 00000000..498a833d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigMeleeEntranceView.cs @@ -0,0 +1,206 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BigMeleeEntranceView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/BigMelee/BigMeleeEntrance"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_BigMelee); + } + } + + private XBigMeleeEntranceDocument doc = null; + + private PointRewardHandler _PointRewardHandler; + + private RankRewardHandler _RankRewardHandler; + + private string[] reward = XSingleton.singleton.GetValue("BigMeleeShowReward").Split(new char[] + { + '|' + }); + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_Join.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinClicked)); + base.uiBehaviour.m_PointRewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPointRewardClicked)); + base.uiBehaviour.m_RankRewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankRewardClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Rule.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BIG_MELEE_RULE"))); + base.uiBehaviour.m_Time.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BIG_MELEE_TIME"))); + this.Refresh(); + } + + public void Refresh() + { + base.uiBehaviour.m_RewardShowPool.FakeReturnAll(); + for (int i = 0; i < this.reward.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardShowPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(i * base.uiBehaviour.m_RewardShowPool.TplWidth), 0f, 0f) + base.uiBehaviour.m_RewardShowPool.TplPos; + uint num = uint.Parse(this.reward[i]); + Transform transform = gameObject.transform.Find("Item"); + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, (int)num, 0, false); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + base.uiBehaviour.m_RewardShowPool.ActualReturnAll(false); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._PointRewardHandler); + DlgHandlerBase.EnsureUnload(ref this._RankRewardHandler); + base.OnUnload(); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_BigMelee); + return true; + } + + public bool OnJoinClicked(IXUIButton btn) + { + bool flag = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnJoinClicked), btn); + bool result; + if (flag) + { + result = true; + } + else + { + this.doc.ReqJoin(); + result = true; + } + return result; + } + + public bool OnPointRewardClicked(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this._PointRewardHandler, base.uiBehaviour.m_Bg, false, null); + bool flag = this._PointRewardHandler.Sys != XSysDefine.XSys_BigMelee; + if (flag) + { + List pointRewardList = this.doc.GetPointRewardList(); + List list = new List(pointRewardList.Count); + for (int i = 0; i < pointRewardList.Count; i++) + { + PointRewardData pointRewardData = default(PointRewardData); + pointRewardData.Init(); + pointRewardData.point = pointRewardList[i].point; + for (int j = 0; j < pointRewardList[i].reward.Count; j++) + { + pointRewardData.rewardItem.Add(pointRewardList[i].reward[j, 0], pointRewardList[i].reward[j, 1]); + } + list.Add(pointRewardData); + } + this._PointRewardHandler.SetData(list, XSysDefine.XSys_BigMelee); + } + this._PointRewardHandler.SetVisible(true); + return true; + } + + public bool OnRankRewardClicked(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this._RankRewardHandler, base.uiBehaviour.m_Bg, false, null); + bool flag = this._RankRewardHandler.Sys != XSysDefine.XSys_BigMelee; + if (flag) + { + List rankRewardList = this.doc.GetRankRewardList(); + List list = new List(rankRewardList.Count); + for (int i = 0; i < rankRewardList.Count; i++) + { + list.Add(new RankRewardData + { + rankMIN = rankRewardList[i].rank[0], + rankMAX = rankRewardList[i].rank[1], + rewardID = + { + rankRewardList[i].reward[i, 0] + }, + rewardCount = + { + rankRewardList[i].reward[i, 1] + } + }); + } + this._RankRewardHandler.SetData(list, XSysDefine.XSys_BigMelee); + } + this._RankRewardHandler.SetVisible(true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BigMeleeEntranceView.cs.meta b/Client/Assets/Scripts/XMainClient/BigMeleeEntranceView.cs.meta new file mode 100644 index 00000000..54827df0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigMeleeEntranceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1611f469e5a8e0c4681f026d565aed66 +timeCreated: 1611403268 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BigMeleeRankHandler.cs b/Client/Assets/Scripts/XMainClient/BigMeleeRankHandler.cs new file mode 100644 index 00000000..c6dc2370 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigMeleeRankHandler.cs @@ -0,0 +1,148 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BigMeleeRankHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/BigMelee/BigMeleeRank"; + } + } + + private XBigMeleeEntranceDocument entDoc = null; + + private XBigMeleeBattleDocument batDoc = null; + + public bool IsRank; + + private IXUIButton m_Close; + + private IXUILabel m_Congratulate; + + private IXUILabel m_Title; + + private Transform m_Empty; + + private Transform m_MyRankFrame; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + protected override void Init() + { + base.Init(); + this.entDoc = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + this.batDoc = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + this.entDoc.RankHandler = this; + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_Congratulate = (base.transform.Find("Congratulate").GetComponent("XUILabel") as IXUILabel); + this.m_Title = (base.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_Empty = base.transform.Find("Empty"); + this.m_ScrollView = (base.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_MyRankFrame = base.transform.Find("MyRankFrame"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapListUpdated)); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.entDoc.ReqRankData(0); + this.InitShow(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void InitShow() + { + this.RefreshList(true); + } + + public void WrapListUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this.entDoc.RankList.rankList.Count; + if (!flag) + { + this.SetRankTpl(t, index, false); + } + } + + public void SetRankTpl(Transform t, int index, bool isMy) + { + XBigMeleeRankInfo xbigMeleeRankInfo = (isMy ? this.entDoc.RankList.myRankInfo : this.entDoc.RankList.rankList[index]) as XBigMeleeRankInfo; + bool flag = xbigMeleeRankInfo == null; + if (!flag) + { + IXUILabel ixuilabel = t.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Detail/Server").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite sp = t.Find("Rank/RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel label = t.Find("Rank/RankNum").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Point").GetComponent("XUILabel") as IXUILabel; + uint rank = xbigMeleeRankInfo.rank; + ixuilabel.SetText(xbigMeleeRankInfo.name); + ixuilabel2.SetText(xbigMeleeRankInfo.serverName); + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon((int)xbigMeleeRankInfo.profession)); + XSingleton.singleton.ShowRank(sp, label, (int)(rank + 1u)); + ixuilabel3.SetText(xbigMeleeRankInfo.kill.ToString()); + ixuilabel4.SetText(xbigMeleeRankInfo.value.ToString()); + } + } + + public void RefreshList(bool bResetPosition = true) + { + this.SetRankTpl(this.m_MyRankFrame, 0, true); + this.m_WrapContent.SetContentCount(this.entDoc.RankList.rankList.Count, false); + this.m_Empty.gameObject.SetActive(this.entDoc.RankList.rankList.Count == 0); + if (bResetPosition) + { + this.m_ScrollView.ResetPosition(); + } + else + { + this.m_WrapContent.RefreshAllVisibleContents(); + } + } + + public void SetType(bool isRank) + { + this.IsRank = isRank; + this.m_Congratulate.gameObject.SetActive(false); + this.m_Title.gameObject.SetActive(isRank); + } + + public void SetCongratulate() + { + bool flag = this.entDoc.RankList.rankList.Count == 0; + if (!flag) + { + this.m_Congratulate.gameObject.SetActive(true); + this.m_Congratulate.SetText(string.Format(XStringDefineProxy.GetString("BIG_MELEE_CONGRATULATE"), this.entDoc.RankList.rankList[0].name, this.entDoc.GroupID)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BigMeleeRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/BigMeleeRankHandler.cs.meta new file mode 100644 index 00000000..40d51334 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigMeleeRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: baad4fcc3f9926e438d1d5803e615e81 +timeCreated: 1611404437 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BigPrizeNode.cs b/Client/Assets/Scripts/XMainClient/BigPrizeNode.cs new file mode 100644 index 00000000..5b0876e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigPrizeNode.cs @@ -0,0 +1,18 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public struct BigPrizeNode + { + public SuperActivityTask.RowData row; + + public uint state; + + public int sort; + + public uint progress; + + public uint taskid; + } +} diff --git a/Client/Assets/Scripts/XMainClient/BigPrizeNode.cs.meta b/Client/Assets/Scripts/XMainClient/BigPrizeNode.cs.meta new file mode 100644 index 00000000..d1732348 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BigPrizeNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e190163a0bb3aaa44bfe9f91521ebf4b +timeCreated: 1611404702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BillBoardHideType.cs b/Client/Assets/Scripts/XMainClient/BillBoardHideType.cs new file mode 100644 index 00000000..97fbc4f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BillBoardHideType.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum BillBoardHideType + { + Invalid = -1, + LevelScript, + Photo, + InnerRenderer, + CutScene, + Stealth, + Filter + } +} diff --git a/Client/Assets/Scripts/XMainClient/BillBoardHideType.cs.meta b/Client/Assets/Scripts/XMainClient/BillBoardHideType.cs.meta new file mode 100644 index 00000000..6d31fd4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BillBoardHideType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96536213c67b132479a5e61dc767740f +timeCreated: 1611404184 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BillboardUsage.cs b/Client/Assets/Scripts/XMainClient/BillboardUsage.cs new file mode 100644 index 00000000..b96b3c16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BillboardUsage.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum BillboardUsage + { + Indure, + MP + } +} diff --git a/Client/Assets/Scripts/XMainClient/BillboardUsage.cs.meta b/Client/Assets/Scripts/XMainClient/BillboardUsage.cs.meta new file mode 100644 index 00000000..7ff50738 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BillboardUsage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5fd2efb534cc4e349997f17e6d390026 +timeCreated: 1611403830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BiochemicalHellDogDocument.cs b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogDocument.cs new file mode 100644 index 00000000..a1bd67ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogDocument.cs @@ -0,0 +1,301 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BiochemicalHellDogDocument : XDocComponent + { + public override uint ID + { + get + { + return BiochemicalHellDogDocument.uuID; + } + } + + public XThemeActivityDocument ActDoc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XThemeActivityDocument.uuID) as XThemeActivityDocument; + } + } + + public List RewardTableData + { + get + { + bool flag = this._RewardTableData != null; + List rewardTableData; + if (flag) + { + rewardTableData = this._RewardTableData; + } + else + { + this._RewardTableData = XTempActivityDocument.Doc.GetDataByActivityType(this.ActInfo.actid); + rewardTableData = this._RewardTableData; + } + return rewardTableData; + } + } + + public SuperActivityTime.RowData ActInfo + { + get + { + bool flag = this._actInfo != null; + SuperActivityTime.RowData actInfo; + if (flag) + { + actInfo = this._actInfo; + } + else + { + XTempActivityDocument specificDocument = XDocuments.GetSpecificDocument(XTempActivityDocument.uuID); + this._actInfo = specificDocument.GetDataBySystemID((uint)this.systemID); + bool flag2 = this._actInfo == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("SuperActivityTime SystemID:" + this.systemID + "No Find", null, null, null, null, null); + } + actInfo = this._actInfo; + } + return actInfo; + } + } + + public FirstPassRankList RankList + { + get + { + return this._rankList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("BiochemicalHellDogDocument"); + + public int curTime; + + public int systemID = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_ThemeActivity_HellDog); + + public string[] sceneID = XSingleton.singleton.GetValue("BioHellSceneStage").Split(new char[] + { + '|' + }); + + public string[] tex = XSingleton.singleton.GetValue("BioHellTex").Split(new char[] + { + '|' + }); + + public static readonly uint REWARD_MAX = 3u; + + private List _RewardTableData; + + private SuperActivityTime.RowData _actInfo = null; + + private FirstPassRankList _rankList = new FirstPassRankList(); + + private List m_titleRowList; + + public enum Stage + { + Ready, + Processing, + End + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ActivityTaskUpdate, new XComponent.XEventHandler(this.OnTaskChange)); + } + + private bool OnTaskChange(XEventArgs e) + { + XActivityTaskUpdatedArgs xactivityTaskUpdatedArgs = e as XActivityTaskUpdatedArgs; + bool flag = xactivityTaskUpdatedArgs.xActID == this.ActInfo.actid; + if (flag) + { + bool flag2 = DlgBase.singleton.m_HellDogHandler != null && DlgBase.singleton.m_HellDogHandler.m_HelpRewardHandler != null && DlgBase.singleton.m_HellDogHandler.m_HelpRewardHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton.m_HellDogHandler.m_HelpRewardHandler.SetData(this.GetRewardData()); + } + bool flag3 = DlgBase.singleton.m_HellDogHandler != null; + if (flag3) + { + DlgBase.singleton.m_HellDogHandler.RefreshRedPoint(); + } + } + return true; + } + + public void RecordActivityPastTime(uint time, SeqListRef timestage) + { + this.curTime = (int)(time / 3600u); + XSingleton.singleton.AddGreenLog("time:" + time, null, null, null, null, null); + } + + public bool GetRedPoint() + { + int i = 0; + int count = this.RewardTableData.Count; + while (i < count) + { + bool flag = XTempActivityDocument.Doc.GetActivityState(this.RewardTableData[i].actid, this.RewardTableData[i].taskid) == 1u; + if (flag) + { + return true; + } + i++; + } + return false; + } + + public BiochemicalHellDogDocument.Stage GetStage(int type) + { + BiochemicalHellDogDocument.Stage result; + int num; + int num2; + this.GetTime(type, out result, out num, out num2); + return result; + } + + public void GetTime(int type, out BiochemicalHellDogDocument.Stage timeStage, out int actStartTime, out int actEndTime) + { + actStartTime = 0; + actEndTime = 0; + for (int i = 0; i < this.sceneID.Length; i++) + { + bool flag = i != 0; + if (flag) + { + actStartTime += (int)this.ActInfo.timestage[i - 1, 0]; + } + actEndTime += (int)this.ActInfo.timestage[i, 0]; + bool flag2 = i == type; + if (flag2) + { + break; + } + } + bool flag3 = this.curTime < actStartTime; + if (flag3) + { + timeStage = BiochemicalHellDogDocument.Stage.Ready; + } + else + { + bool flag4 = this.curTime < actEndTime; + if (flag4) + { + timeStage = BiochemicalHellDogDocument.Stage.Processing; + } + else + { + timeStage = BiochemicalHellDogDocument.Stage.End; + } + } + } + + public List GetRewardData() + { + List list = new List(); + bool flag = this.RewardTableData != null; + if (flag) + { + int i = 0; + int count = this.RewardTableData.Count; + while (i < count) + { + ActivityHelpReward activityHelpReward = new ActivityHelpReward(); + activityHelpReward.index = i; + activityHelpReward.tableData = this.RewardTableData[i]; + activityHelpReward.state = XTempActivityDocument.Doc.GetActivityState(this.RewardTableData[i].actid, this.RewardTableData[i].taskid); + activityHelpReward.sort = (int)activityHelpReward.state; + bool flag2 = (long)activityHelpReward.sort == 2L; + if (flag2) + { + activityHelpReward.sort = -1; + } + activityHelpReward.progress = XTempActivityDocument.Doc.GetActivityProgress(this.RewardTableData[i].actid, this.RewardTableData[i].taskid); + list.Add(activityHelpReward); + i++; + } + } + return list; + } + + public void SendRankList() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.BioHelllRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void ReceiveRankList(ClientQueryRankListRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + this._rankList.Init(oRes, false); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.FillContent(); + } + } + } + + public DesignationTable.RowData GetTittleNameByRank(int rank) + { + bool flag = this.m_titleRowList == null; + if (flag) + { + XDesignationDocument xdesignationDocument = XSingleton.singleton.Doc.GetXComponent(XDesignationDocument.uuID) as XDesignationDocument; + this.m_titleRowList = new List(); + int @int = XSingleton.singleton.GetInt("BiochemicalHellTitleType"); + for (int i = 0; i < xdesignationDocument._DesignationTable.Table.Length; i++) + { + DesignationTable.RowData rowData = xdesignationDocument._DesignationTable.Table[i]; + bool flag2 = rowData != null && rowData.CompleteType == @int; + if (flag2) + { + bool flag3 = !this.m_titleRowList.Contains(rowData); + if (flag3) + { + this.m_titleRowList.Add(rowData); + } + } + } + } + for (int j = 0; j < this.m_titleRowList.Count; j++) + { + bool flag4 = this.m_titleRowList[j].CompleteValue != null && this.m_titleRowList[j].CompleteValue.Length == 2; + if (flag4) + { + bool flag5 = rank >= this.m_titleRowList[j].CompleteValue[0] && rank <= this.m_titleRowList[j].CompleteValue[1]; + if (flag5) + { + return this.m_titleRowList[j]; + } + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BiochemicalHellDogDocument.cs.meta b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogDocument.cs.meta new file mode 100644 index 00000000..ef7c4e72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f9d0a8191d77f94db48b3b3aea07ee0 +timeCreated: 1611404246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BiochemicalHellDogFrameHandler.cs b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogFrameHandler.cs new file mode 100644 index 00000000..19bce3b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogFrameHandler.cs @@ -0,0 +1,247 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BiochemicalHellDogFrameHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/ThemeActivity/BiochemicalHellDogFrame"; + } + } + + private BiochemicalHellDogDocument doc = null; + + public ActivityHelpRewardHandler m_HelpRewardHandler; + + private IXUILabel m_Time; + + private IXUISprite m_Help; + + private IXUIButton m_HelpReward; + + private Transform m_HelpRewardRedPoint; + + private Transform RewardPos; + + private Transform RankPos; + + private XUIPool m_MonsterPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(BiochemicalHellDogDocument.uuID); + Transform transform = base.transform.Find("Bg"); + this.m_Time = (transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_Help = (transform.Find("Time/Help").GetComponent("XUISprite") as IXUISprite); + this.m_HelpReward = (transform.Find("RewardBtn").GetComponent("XUIButton") as IXUIButton); + this.m_HelpRewardRedPoint = transform.Find("RewardBtn/RedPoint"); + this.RewardPos = transform.Find("RewardPos"); + this.RankPos = transform.Find("RankPos"); + Transform transform2 = transform.Find("Panel/MonsterTpl"); + this.m_MonsterPool.SetupPool(null, transform2.gameObject, (uint)this.doc.sceneID.Length, false); + Transform transform3 = transform.Find("Panel/ItemTpl"); + this.m_ItemPool.SetupPool(null, transform3.gameObject, (uint)(this.doc.sceneID.Length * (int)BiochemicalHellDogDocument.REWARD_MAX), false); + this.InitShow(); + } + + public override void RegisterEvent() + { + this.m_HelpReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpRewardOpenClick)); + this.m_Help.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.Refresh(); + } + + public override void StackRefresh() + { + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_HelpRewardHandler); + base.OnUnload(); + } + + private void InitShow() + { + } + + public void Refresh() + { + SuperActivityTime.RowData actInfo = this.doc.ActInfo; + bool flag = actInfo == null; + if (!flag) + { + bool flag2 = (int)actInfo.timestage.count != this.doc.sceneID.Length; + if (flag2) + { + XSingleton.singleton.AddErrorLog("actInfo.timestage.count!= sceneID.Length", null, null, null, null, null); + } + else + { + List activityCompleteScene = XTempActivityDocument.Doc.GetActivityCompleteScene(this.doc.ActInfo.actid); + List list = new List(); + this.m_MonsterPool.FakeReturnAll(); + this.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < this.doc.sceneID.Length; i++) + { + GameObject gameObject = this.m_MonsterPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(i * this.m_MonsterPool.TplWidth), 0f, 0f) + this.m_MonsterPool.TplPos; + IXUIButton ixuibutton = gameObject.transform.Find("RankBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.gameObject.SetActive(i + 1 == this.doc.sceneID.Length); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankOpenClick)); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(uint.Parse(this.doc.sceneID[i])); + bool flag3 = sceneData == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("SceneTable sceneID:" + this.doc.sceneID[i] + "No Find", null, null, null, null, null); + } + else + { + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(sceneData.Comment); + IXUITexture ixuitexture = gameObject.transform.Find("Tex").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(string.Format("atlas/UI/GameSystem/ThemeActivity/{0}", this.doc.tex[i])); + bool flag4 = false; + for (int j = 0; j < activityCompleteScene.Count; j++) + { + bool flag5 = activityCompleteScene[j] == uint.Parse(this.doc.sceneID[i]); + if (flag5) + { + flag4 = true; + } + } + bool flag6 = sceneData.FirstDownDrop != null; + if (flag6) + { + Transform transform = gameObject.transform.Find("Grid"); + list.Clear(); + int num = 0; + while (num < sceneData.FirstDownDrop.Length && list.Count < 3) + { + ItemBrief itemBrief = new ItemBrief(); + int num2; + int num3; + CVSReader.GetRowDataListByField(XBagDocument.DropTable.Table, sceneData.FirstDownDrop[num], out num2, out num3, XBagDocument.comp); + bool flag7 = num2 < 0; + if (!flag7) + { + itemBrief.itemID = (uint)XBagDocument.DropTable.Table[num2].ItemID; + itemBrief.itemCount = (uint)XBagDocument.DropTable.Table[num2].ItemCount; + itemBrief.isbind = XBagDocument.DropTable.Table[num2].ItemBind; + list.Add(itemBrief); + } + num++; + } + for (int k = 0; k < list.Count; k++) + { + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.AddChild(transform.gameObject, gameObject2); + gameObject2.transform.localPosition = new Vector3(((float)k + 0.5f - (float)list.Count / 2f) * (float)this.m_ItemPool.TplWidth, 0f); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)list[k].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, itemConf, (int)list[k].itemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject2, (int)list[k].itemID); + gameObject2.SetActive(!flag4); + } + } + Transform transform2 = gameObject.transform.Find("FetchEnd"); + transform2.gameObject.SetActive(flag4); + IXUILabel ixuilabel2 = gameObject.transform.Find("StartLeftTime").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton2 = gameObject.transform.Find("Join").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel3 = gameObject.transform.Find("EndLeftTime").GetComponent("XUILabel") as IXUILabel; + Transform transform3 = gameObject.transform.Find("End"); + int num4 = 0; + int num5 = 0; + BiochemicalHellDogDocument.Stage stage; + this.doc.GetTime(i, out stage, out num4, out num5); + ixuilabel2.gameObject.SetActive(stage == BiochemicalHellDogDocument.Stage.Ready); + bool flag8 = this.doc.curTime < num4; + if (flag8) + { + int num6 = (num4 - this.doc.curTime) / 24; + int num7 = (num4 - this.doc.curTime) % 24; + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("ACTIVITY_START_LEFTTIME"), num6, num7)); + } + ixuibutton2.gameObject.SetActive(stage == BiochemicalHellDogDocument.Stage.Processing); + ixuilabel3.gameObject.SetActive(stage == BiochemicalHellDogDocument.Stage.Processing); + bool flag9 = stage == BiochemicalHellDogDocument.Stage.Processing; + if (flag9) + { + int num8 = (num5 - this.doc.curTime) / 24; + int num9 = (num5 - this.doc.curTime) % 24; + ixuilabel3.SetText(string.Format(XStringDefineProxy.GetString("ACTIVITY_END_LEFTTIME"), num8, num9)); + ixuibutton2.ID = ulong.Parse(this.doc.sceneID[i]); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinClick)); + } + transform3.gameObject.SetActive(stage == BiochemicalHellDogDocument.Stage.End); + } + } + this.m_ItemPool.ActualReturnAll(false); + this.m_MonsterPool.ActualReturnAll(false); + DateTime endTime = XTempActivityDocument.Doc.GetEndTime(actInfo, -1); + string arg = string.Format(XStringDefineProxy.GetString("CAREER_GROWTH_PROCESS_TIME"), actInfo.starttime / 10000u, actInfo.starttime % 10000u / 100u, actInfo.starttime % 100u); + string arg2 = string.Format(XStringDefineProxy.GetString("CAREER_GROWTH_PROCESS_TIME"), endTime.Year, endTime.Month, endTime.Day); + this.m_Time.SetText(string.Format("{0}~{1}", arg, arg2)); + this.RefreshRedPoint(); + } + } + } + + public void RefreshRedPoint() + { + this.m_HelpRewardRedPoint.gameObject.SetActive(this.doc.GetRedPoint()); + } + + private void OnHelpClicked(IXUISprite btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_ThemeActivity_HellDog); + } + + private bool OnJoinClick(IXUIButton btn) + { + XSingleton.singleton.AddGreenLog(btn.ID.ToString(), null, null, null, null, null); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + int expIDBySceneID = specificDocument.GetExpIDBySceneID((uint)btn.ID); + specificDocument2.SetAndMatch(expIDBySceneID); + return true; + } + + private bool OnHelpRewardOpenClick(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this.m_HelpRewardHandler, this.RewardPos, true, this); + List rewardData = this.doc.GetRewardData(); + this.m_HelpRewardHandler.SetData(rewardData); + this.m_HelpRewardHandler.SetEndTime(this.doc.ActInfo.actid); + return true; + } + + private bool OnRankOpenClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BiochemicalHellDogFrameHandler.cs.meta b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogFrameHandler.cs.meta new file mode 100644 index 00000000..85675037 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogFrameHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2143f4b7ca8030846a87edd34d52040b +timeCreated: 1611403413 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankBehaviour.cs b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankBehaviour.cs new file mode 100644 index 00000000..96dc61f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankBehaviour.cs @@ -0,0 +1,26 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class BiochemicalHellDogRankBehaviour : DlgBehaviourBase + { + public IXUIButton _Close; + + public IXUIScrollView _RankScrollView; + + public IXUIWrapContent _RankWrapContent; + + public GameObject _tipsGo; + + private void Awake() + { + this._RankScrollView = (base.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this._RankWrapContent = (base.transform.Find("Panel/FourNameList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this._tipsGo = base.transform.Find("Tips").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankBehaviour.cs.meta new file mode 100644 index 00000000..ab8e95ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16f5d1688dbd1f9459b935b7fbaf1565 +timeCreated: 1611403291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankView.cs b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankView.cs new file mode 100644 index 00000000..05f47766 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankView.cs @@ -0,0 +1,192 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BiochemicalHellDogRankView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ThemeActivity/ThemeActivityRank"; + } + } + + private BiochemicalHellDogDocument _doc; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(BiochemicalHellDogDocument.uuID); + base.uiBehaviour._RankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + base.uiBehaviour._Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.SendRankList(); + } + + private bool OnCloseClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void FillDefault() + { + base.uiBehaviour._tipsGo.SetActive(true); + base.uiBehaviour._RankWrapContent.gameObject.SetActive(false); + } + + public void FillContent() + { + bool flag = this._doc.RankList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", RankeType.FirstPassRank.ToString(), null, null, null, null); + } + else + { + bool flag2 = this._doc.RankList.InfoList == null || this._doc.RankList.InfoList.Count == 0; + if (flag2) + { + this.FillDefault(); + } + else + { + base.uiBehaviour._tipsGo.SetActive(false); + base.uiBehaviour._RankWrapContent.gameObject.SetActive(true); + int count = this._doc.RankList.InfoList.Count; + base.uiBehaviour._RankWrapContent.SetContentCount(count, false); + base.uiBehaviour._RankScrollView.ResetPosition(); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this._doc.RankList.InfoList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", RankeType.FirstPassRank.ToString(), null, null, null, null); + } + else + { + bool flag2 = index >= this._doc.RankList.InfoList.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("index >= rankDataList.rankList.Count", null, null, null, null, null); + } + else + { + FirstPassRankInfo firstPassRankInfo = this._doc.RankList.InfoList[index]; + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(firstPassRankInfo.PassTimeStr.Replace("/n", "\n")); + ixuilabel = (t.Find("Title").GetComponent("XUILabel") as IXUILabel); + IXUISprite ixuisprite = t.Find("TitleTex").GetComponent("XUISprite") as IXUISprite; + DesignationTable.RowData tittleNameByRank = this._doc.GetTittleNameByRank(index + 1); + bool flag3 = tittleNameByRank == null; + if (flag3) + { + ixuilabel.SetText(""); + ixuisprite.SetAlpha(0f); + } + else + { + bool flag4 = string.IsNullOrEmpty(tittleNameByRank.Effect) || string.IsNullOrEmpty(tittleNameByRank.Atlas); + if (flag4) + { + ixuilabel.SetText(tittleNameByRank.Designation); + ixuisprite.SetAlpha(0f); + } + else + { + ixuisprite.SetAlpha(1f); + ixuisprite.SetSprite(tittleNameByRank.Effect, tittleNameByRank.Atlas, false); + ixuilabel.SetText(""); + } + } + ixuisprite.MakePixelPerfect(); + bool flag5 = firstPassRankInfo.InfoDataList.Count != 0; + if (flag5) + { + Transform transform = t.Find("Labs"); + for (int i = 0; i < transform.childCount; i++) + { + bool flag6 = i >= firstPassRankInfo.InfoDataList.Count; + if (flag6) + { + transform.GetChild(i).gameObject.SetActive(false); + } + else + { + transform.GetChild(i).gameObject.SetActive(true); + IXUILabelSymbol ixuilabelSymbol = transform.GetChild(i).GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.ID = (ulong)((long)(index * 100 + i)); + ixuilabelSymbol.InputText = firstPassRankInfo.InfoDataList[i].Name; + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this.OnClickName)); + } + } + } + this.SetRank(t, index); + } + } + } + + private void SetRank(Transform tra, int rankIndex) + { + IXUILabel ixuilabel = tra.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = tra.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = (long)rankIndex == (long)((ulong)XRankDocument.INVALID_RANK); + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + bool flag2 = rankIndex < 3; + if (flag2) + { + ixuisprite.SetSprite("N" + (rankIndex + 1)); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1)); + ixuilabel.SetVisible(true); + } + } + } + + private void OnClickName(IXUILabelSymbol iSp) + { + bool flag = this._doc.RankList.InfoList == null; + if (!flag) + { + int index = (int)iSp.ID / 100; + FirstPassRankInfo firstPassRankInfo = this._doc.RankList.InfoList[index]; + bool flag2 = firstPassRankInfo == null; + if (!flag2) + { + int index2 = (int)iSp.ID % 100; + FirstPassInfoData firstPassInfoData = firstPassRankInfo.InfoDataList[index2]; + bool flag3 = firstPassInfoData == null; + if (!flag3) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(firstPassInfoData.Id, false); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankView.cs.meta b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankView.cs.meta new file mode 100644 index 00000000..8b3e4693 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BiochemicalHellDogRankView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39ea3ae980780ed44966c509e01459f5 +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BonusSender.cs b/Client/Assets/Scripts/XMainClient/BonusSender.cs new file mode 100644 index 00000000..6d985536 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BonusSender.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum BonusSender + { + Bonus_Self, + Bonus_Other + } +} diff --git a/Client/Assets/Scripts/XMainClient/BonusSender.cs.meta b/Client/Assets/Scripts/XMainClient/BonusSender.cs.meta new file mode 100644 index 00000000..6b8b122c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BonusSender.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2eb7cc4e4b7b5c045b324bd0a07fbba8 +timeCreated: 1611403511 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BonusState.cs b/Client/Assets/Scripts/XMainClient/BonusState.cs new file mode 100644 index 00000000..3be05512 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BonusState.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum BonusState + { + Bonus_Active, + Bonus_UnActive, + Bonus_Actived, + Bouns_Over + } +} diff --git a/Client/Assets/Scripts/XMainClient/BonusState.cs.meta b/Client/Assets/Scripts/XMainClient/BonusState.cs.meta new file mode 100644 index 00000000..7eae3c6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BonusState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb7e125c0782b0745ba8e0afe1a588c2 +timeCreated: 1611404783 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BroadBarrageItem.cs b/Client/Assets/Scripts/XMainClient/BroadBarrageItem.cs new file mode 100644 index 00000000..9f5a93c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadBarrageItem.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class BroadBarrageItem : MonoBehaviour + { + public IXUILabel m_lblContent; + + private IXUISprite m_sprRoot; + + private void Awake() + { + this.m_sprRoot = (base.GetComponent("XUISprite") as IXUISprite); + this.m_lblContent = (base.transform.Find("content").GetComponent("XUILabel") as IXUILabel); + } + + public void Refresh() + { + } + + public void Refresh(string nick, string content) + { + bool flag = this.m_lblContent != null && !string.IsNullOrEmpty(nick) && !string.IsNullOrEmpty(content); + if (flag) + { + this.m_lblContent.SetText(XSingleton.singleton.StringCombine("[00ff00]", nick, "[-]: ", content)); + this.m_sprRoot.spriteHeight = 20 + this.m_lblContent.spriteHeight; + this.m_lblContent.gameObject.transform.localPosition = new Vector3(-160f, (float)(this.m_sprRoot.spriteHeight / 2 - 4), 0f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BroadBarrageItem.cs.meta b/Client/Assets/Scripts/XMainClient/BroadBarrageItem.cs.meta new file mode 100644 index 00000000..65fda12a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadBarrageItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed83b773e81cb3f4dbe7b8fdafe215bc +timeCreated: 1611404791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs b/Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs new file mode 100644 index 00000000..a252c41e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs @@ -0,0 +1,229 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BroadMiniDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/BroadcastMiniDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private const int width = 1136; + + private const int height = 640; + + private bool isPressing = false; + + private bool checkPos = false; + + private Vector3 from = Vector3.zero; + + private Vector3 target = new Vector3(-533f, -180f, 0f); + + private float tagTime = 0f; + + public bool isBroadcast = false; + + public Camera uiCamera; + + protected override void Init() + { + base.Init(); + base.uiBehaviour.m_btn.gameObject.transform.localPosition = this.target; + this.uiCamera = XSingleton.singleton.UIRoot.Find("Camera").GetComponent(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btn.RegisterDragEventHandler(new ButtonDragEventHandler(this.OnButtonDrag)); + base.uiBehaviour.m_btn.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnPressHandler)); + base.uiBehaviour.m_btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnIconClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.isPressing = false; + } + + protected override void OnHide() + { + base.OnHide(); + this.isPressing = false; + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = !this.isPressing && this.checkPos; + if (flag) + { + bool flag2 = Vector3.Distance(this.from, this.target) < 1f; + if (flag2) + { + base.uiBehaviour.m_btn.gameObject.transform.localPosition = this.target; + this.checkPos = false; + } + else + { + base.uiBehaviour.m_btn.gameObject.transform.localPosition = Vector3.Lerp(this.from, this.target, (Time.time - this.tagTime) / 0.2f); + } + } + } + + public void Show(bool show) + { + this.SetVisible(false, true); + } + + private void OnButtonDrag(IXUIButton btn, Vector2 delta) + { + bool flag = this.isPressing; + if (flag) + { + Vector3 mousePosition = Input.mousePosition; + bool flag2 = this.uiCamera != null; + if (flag2) + { + mousePosition.x = Mathf.Clamp01(mousePosition.x / (float)Screen.width); + mousePosition.y = Mathf.Clamp01(mousePosition.y / (float)Screen.height); + base.uiBehaviour.m_btn.gameObject.transform.position = this.uiCamera.ViewportToWorldPoint(mousePosition); + bool orthographic = this.uiCamera.orthographic; + if (orthographic) + { + Vector3 localPosition = base.uiBehaviour.m_btn.gameObject.transform.localPosition; + localPosition.x = Mathf.Round(localPosition.x); + localPosition.y = Mathf.Round(localPosition.y); + base.uiBehaviour.m_btn.gameObject.transform.localPosition = localPosition; + } + } + else + { + mousePosition.x -= (float)Screen.width * 0.5f; + mousePosition.y -= (float)Screen.height * 0.5f; + mousePosition.x = Mathf.Round(mousePosition.x); + mousePosition.y = Mathf.Round(mousePosition.y); + base.uiBehaviour.m_btn.gameObject.transform.localPosition = mousePosition; + } + } + } + + private void OnPressHandler(IXUIButton btn, bool press) + { + bool flag = !press; + if (flag) + { + this.AttachBounds(); + } + this.isPressing = press; + } + + private bool OnIconClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.ShowList(); + this.SetVisible(false, true); + return true; + } + + private void AttachBounds() + { + Vector3 localPosition = base.uiBehaviour.m_btn.gameObject.transform.localPosition; + float x = localPosition.x; + float y = localPosition.y; + float num = x + 568f; + float num2 = 568f - x; + float num3 = 320f - y; + float num4 = y + 320f; + float num5 = Mathf.Min(new float[] + { + num, + num2, + num3, + num4 + }); + bool flag = num == num5; + if (flag) + { + this.target = new Vector3(-533f, y, 0f); + } + else + { + bool flag2 = num2 == num5; + if (flag2) + { + this.target = new Vector3(533f, y, 0f); + } + else + { + bool flag3 = num3 == num5; + if (flag3) + { + this.target = new Vector3(x, 288f, 0f); + } + else + { + this.target = new Vector3(x, -288f, 0f); + } + } + } + this.tagTime = Time.time; + this.from = base.uiBehaviour.m_btn.gameObject.transform.localPosition; + this.checkPos = true; + } + + public Vector3 GetIconPos() + { + return base.uiBehaviour.m_btn.gameObject.transform.localPosition; + } + + public void StopBroad() + { + bool flag = this.isBroadcast; + if (flag) + { + try + { + XSingleton.singleton.XBroadCast.StopBroadcast(); + } + catch + { + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs.meta b/Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs.meta new file mode 100644 index 00000000..27a65f40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadMiniDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9dfe9e2e2237eab49bc577e97a2b12ea +timeCreated: 1611404239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BroadNode.cs b/Client/Assets/Scripts/XMainClient/BroadNode.cs new file mode 100644 index 00000000..52eae45a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadNode.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public struct BroadNode + { + public string nickname; + + public string content; + } +} diff --git a/Client/Assets/Scripts/XMainClient/BroadNode.cs.meta b/Client/Assets/Scripts/XMainClient/BroadNode.cs.meta new file mode 100644 index 00000000..8b11278a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 701fb81ef0eea024da07d54b41dee907 +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BroadcastBehaviour.cs b/Client/Assets/Scripts/XMainClient/BroadcastBehaviour.cs new file mode 100644 index 00000000..fa7e7975 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadcastBehaviour.cs @@ -0,0 +1,32 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BroadcastBehaviour : DlgBehaviourBase + { + public ILoopScrollView loopScrool; + + public IXUIButton m_btnBarrage; + + public IXUIButton m_btnCamera; + + public IXUILabel m_lblCamera; + + public IXUIButton m_btnClose; + + public IXUIButton m_btnShare; + + private void Awake() + { + this.m_btnBarrage = (base.transform.Find("Bg/Btn_EndBarrage").GetComponent("XUIButton") as IXUIButton); + this.m_btnCamera = (base.transform.Find("Bg/Btn_Camera").GetComponent("XUIButton") as IXUIButton); + this.m_lblCamera = (base.transform.Find("Bg/Btn_Camera/T").GetComponent("XUILabel") as IXUILabel); + this.m_btnClose = (base.transform.Find("Bg/Btn_Close").GetComponent("XUIButton") as IXUIButton); + this.m_btnShare = (base.transform.Find("Bg/Btn_Share").GetComponent("XUIButton") as IXUIButton); + this.loopScrool = (base.transform.Find("Bg/Barrages").GetComponent("LoopScrollView") as ILoopScrollView); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BroadcastBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/BroadcastBehaviour.cs.meta new file mode 100644 index 00000000..93295307 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadcastBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b20e4ebb579bf294ba5a052fe49df4ee +timeCreated: 1611404358 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BroadcastDlg.cs b/Client/Assets/Scripts/XMainClient/BroadcastDlg.cs new file mode 100644 index 00000000..db59e0d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadcastDlg.cs @@ -0,0 +1,229 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class BroadcastDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/BroadcastDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private static bool isCameraOpen = false; + + public readonly int max_count = 40; + + public List barrages = new List(); + + public string lastCahceMsg = string.Empty; + + private Vector3 originPos = Vector3.zero; + + private float closeTime = 0f; + + private float closeDuration = 0.3f; + + private bool isClosing = false; + + private uint timer = 0u; + + protected override void Init() + { + base.Init(); + base.uiBehaviour.m_lblCamera.SetText(XStringDefineProxy.GetString("BROAD_CAMERA_OPEN")); + GameObject tpl = base.uiBehaviour.loopScrool.GetTpl(); + bool flag = tpl != null && tpl.GetComponent() == null; + if (flag) + { + tpl.AddComponent(); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnBarrage.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEndClick)); + base.uiBehaviour.m_btnCamera.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCameraClick)); + base.uiBehaviour.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClosePanel)); + base.uiBehaviour.m_btnShare.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.timer = XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.TimerShow), null); + this.originPos = DlgBase.singleton.GetIconPos(); + this.isClosing = false; + base.uiBehaviour.transform.localPosition = Vector3.zero; + base.uiBehaviour.transform.localScale = Vector3.one; + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this.timer); + base.OnUnload(); + } + + public void Push(string _nickname, string _content) + { + BroadNode item = default(BroadNode); + item.nickname = _nickname; + item.content = _content; + bool flag = this.barrages.Count > this.max_count; + if (flag) + { + this.barrages.RemoveRange(0, this.barrages.Count - this.max_count); + } + this.barrages.Add(item); + } + + private void TimerShow(object o) + { + this.ShowList(); + this.timer = XSingleton.singleton.SetTimer(0.4f, new XTimerMgr.ElapsedEventHandler(this.TimerShow), null); + } + + public void ShowList() + { + bool flag = base.IsVisible(); + if (flag) + { + List list = new List(); + string b = string.Empty; + for (int i = 0; i < this.barrages.Count; i++) + { + BarrageMsg barrageMsg = new BarrageMsg(); + barrageMsg.LoopID = XSingleton.singleton.XHash(this.barrages[i].content + i); + barrageMsg.nickname = this.barrages[i].nickname; + barrageMsg.content = this.barrages[i].content; + list.Add(barrageMsg); + b = XSingleton.singleton.StringCombine(barrageMsg.nickname, barrageMsg.content); + } + bool flag2 = string.IsNullOrEmpty(this.lastCahceMsg) || this.lastCahceMsg != b; + if (flag2) + { + base.uiBehaviour.loopScrool.Init(list, new DelegateHandler(this.RefreshItem), null, 1, false); + } + bool flag3 = this.barrages != null && this.barrages.Count > 0; + if (flag3) + { + int index = this.barrages.Count - 1; + this.lastCahceMsg = XSingleton.singleton.StringCombine(this.barrages[index].nickname, this.barrages[index].content); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.isClosing; + if (flag) + { + base.uiBehaviour.gameObject.transform.localPosition = Vector3.Lerp(Vector3.zero, this.originPos, (Time.time - this.closeTime) / this.closeDuration); + base.uiBehaviour.gameObject.transform.localScale = Vector3.Lerp(Vector3.one, 0.1f * Vector3.one, (Time.time - this.closeTime) / this.closeDuration); + bool flag2 = Time.time - this.closeTime >= this.closeDuration; + if (flag2) + { + this.isClosing = false; + this.SetVisible(false, true); + DlgBase.singleton.Show(true); + } + } + } + + private void RefreshItem(ILoopItemObject item, LoopItemData data) + { + BarrageMsg barrageMsg = data as BarrageMsg; + bool flag = barrageMsg != null; + if (flag) + { + GameObject obj = item.GetObj(); + bool flag2 = obj != null; + if (flag2) + { + BroadBarrageItem component = obj.GetComponent(); + bool flag3 = component != null; + if (flag3) + { + component.Refresh(barrageMsg.nickname, barrageMsg.content); + } + } + } + else + { + XSingleton.singleton.AddErrorLog("BroadBarrageItem info is null", null, null, null, null, null); + } + } + + private bool OnEndClick(IXUIButton btn) + { + XSingleton.singleton.XBroadCast.StopBroadcast(); + this.ClosePanel(btn); + return true; + } + + private bool OnCameraClick(IXUIButton btn) + { + bool flag = BroadcastDlg.isCameraOpen; + if (flag) + { + XSingleton.singleton.XBroadCast.ShowCamera(false); + BroadcastDlg.isCameraOpen = false; + base.uiBehaviour.m_lblCamera.SetText(XStringDefineProxy.GetString("BROAD_CAMERA_OPEN")); + } + else + { + bool flag2 = XSingleton.singleton.XBroadCast.ShowCamera(true); + if (flag2) + { + BroadcastDlg.isCameraOpen = true; + base.uiBehaviour.m_lblCamera.SetText(XStringDefineProxy.GetString("BROAD_CAMERA_CLOSE")); + } + } + return true; + } + + private bool OnShareClick(IXUIButton btn) + { + XSingleton.singleton.AddGreenLog("sharebtn click", null, null, null, null, null); + this.ClosePanel(btn); + return true; + } + + private bool ClosePanel(IXUIButton btn) + { + bool flag = !this.isClosing; + if (flag) + { + this.closeTime = Time.time; + this.isClosing = true; + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BroadcastDlg.cs.meta b/Client/Assets/Scripts/XMainClient/BroadcastDlg.cs.meta new file mode 100644 index 00000000..a0a2052d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadcastDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9722ffc97462acc46872736de75b61b0 +timeCreated: 1611404187 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BroadcastMiniBehaviour.cs b/Client/Assets/Scripts/XMainClient/BroadcastMiniBehaviour.cs new file mode 100644 index 00000000..53702687 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadcastMiniBehaviour.cs @@ -0,0 +1,16 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class BroadcastMiniBehaviour : DlgBehaviourBase + { + public IXUIButton m_btn; + + private void Awake() + { + this.m_btn = (base.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BroadcastMiniBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/BroadcastMiniBehaviour.cs.meta new file mode 100644 index 00000000..766e369a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BroadcastMiniBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b83b21e27346774ba7176a3a46a5b61 +timeCreated: 1611403168 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff.meta b/Client/Assets/Scripts/XMainClient/Buff.meta new file mode 100644 index 00000000..89e27fb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 66325fb9a563b2d4e854333d2a74e46c +folderAsset: yes +timeCreated: 1611549548 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuff.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuff.cs new file mode 100644 index 00000000..d293e397 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuff.cs @@ -0,0 +1,718 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuff + { + public int ID + { + get + { + return this._buffInfo.BuffID; + } + } + + public ulong CasterID + { + get + { + return this._casterID; + } + set + { + this._casterID = value; + } + } + + public int Level + { + get + { + return (int)this._buffInfo.BuffLevel; + } + } + + public string BuffIcon + { + get + { + return this._buffInfo.BuffIcon; + } + } + + public double HP + { + get + { + return this._HP; + } + } + + public double MaxHP + { + get + { + return this._MaxHP; + } + } + + public uint StackCount + { + get + { + return this._StackCount; + } + } + + public XBuffMergeType MergeType + { + get + { + return (XBuffMergeType)this._buffInfo.BuffMergeType; + } + } + + public int TargetType + { + get + { + return (int)this._buffInfo.TargetType; + } + } + + public BuffTable.RowData BuffInfo + { + get + { + return this._buffInfo; + } + } + + public float Duration + { + get + { + return this._TimeDuration; + } + } + + public float OriginalDuration + { + get + { + return this._OriginalDuration; + } + } + + public float ActualDuration + { + get + { + return Time.time - this._StartTime; + } + } + + public bool Valid + { + get + { + return this._valid; + } + } + + public byte ClearType + { + get + { + return this._buffInfo.BuffClearType; + } + } + + public XBuffEffectData EffectData + { + get + { + return this._EffectData; + } + } + + public uint SkillID + { + get + { + return this._SkillID; + } + } + + public XBuffComponent BuffComponent + { + get + { + return this._component; + } + } + + public UIBuffInfo UIBuff + { + get + { + return this._UIBuff; + } + } + + public HashSet RelevantSkills + { + get + { + return this._RelevantSkills; + } + } + + public XBuffExclusive ExclusiveData + { + get + { + return this._Exclusive; + } + } + + public static readonly int InfinityTime = -1; + + protected float _StartTime = 0f; + + protected float _TimeDuration = 0f; + + protected float _OriginalDuration = 0f; + + protected uint _TimerToken = 0u; + + protected BuffTable.RowData _buffInfo = null; + + protected List _buffEffects = ListPool.Get(); + + protected XBuffModifyEffect _buffModifies = default(XBuffModifyEffect); + + protected HashSet _RelevantSkills = null; + + protected bool _valid = true; + + protected ulong _casterID = 0UL; + + protected XBuffEffectData _EffectData = new XBuffEffectData(); + + protected double _HP = 100.0; + + protected double _MaxHP = 100.0; + + protected uint _StackCount = 1u; + + protected XBuffComponent _component = null; + + protected UIBuffInfo _UIBuff; + + protected uint _SkillID; + + private XTimerMgr.ElapsedEventHandler _timeCb = null; + + protected XBuffExclusive _Exclusive; + + public static XBuffEffectPrioriy EffectEnumeratorPriorityCur = XBuffEffectPrioriy.BEP_START; + + public static XBuffEffectPrioriy EffectEnumeratorPriorityNext = XBuffEffectPrioriy.BEP_END; + + private int m_EffectEnumeratorIndex; + + public delegate void BuffEffectDelegate(BuffEffect effect, HurtInfo rawInput, ProjectDamageResult result); + + public XBuff(CombatEffectHelper pEffectHelper, ref BuffDesc desc) + { + this._buffInfo = pEffectHelper.BuffInfo; + bool flag = desc.EffectTime <= 0f; + if (flag) + { + this._OriginalDuration = this._buffInfo.BuffDuration; + } + else + { + this._OriginalDuration = desc.EffectTime; + } + this._OriginalDuration += pEffectHelper.GetBuffDuration(); + this._TimeDuration = this._OriginalDuration; + this._SkillID = desc.SkillID; + this._timeCb = new XTimerMgr.ElapsedEventHandler(this.OnBuffTimeEnd); + this._StartTime = Time.time; + this._UIBuff = UIBuffInfo.Create(this); + bool flag2 = this._buffInfo.RelevantSkills != null && this._buffInfo.RelevantSkills.Length != 0; + if (flag2) + { + this._RelevantSkills = HashPool.Get(); + for (int i = 0; i < this._buffInfo.RelevantSkills.Length; i++) + { + this._RelevantSkills.Add(XSingleton.singleton.XHash(this._buffInfo.RelevantSkills[i])); + } + } + this._Exclusive.Set(this._buffInfo); + } + + protected void _CreateEffects(CombatEffectHelper pEffectHelper, bool bIncludeTrigger = true) + { + XBuffChangeAttribute.TryCreate(pEffectHelper, this); + XBuffSpecialState.TryCreate(this._buffInfo, this); + XBuffRegenerate.TryCreate(pEffectHelper, this); + XBuffLifeAddAttack.TryCreate(this._buffInfo, this); + XBuffDamageDistanceScale.TryCreate(this._buffInfo, this); + XBuffAuraCheck.TryCreate(this._buffInfo, this); + XBuffReduceDamage.TryCreate(this._buffInfo, this); + XBuffDamageReflection.TryCreate(this._buffInfo, this); + XBuffMob.TryCreate(this._buffInfo, this); + XBuffChangeFightGroup.TryCreate(this._buffInfo, this); + XBuffLifeSteal.TryCreate(this._buffInfo, this); + XBuffReduceSkillCD.TryCreate(pEffectHelper, this); + XBuffTargetLifeAddAttack.TryCreate(this._buffInfo, this); + XBuffManipulate.TryCreate(this._buffInfo, this); + XBuffSkillsReplace.TryCreate(this._buffInfo, this); + XBuffKill.TryCreate(this._buffInfo, this); + this._buffModifies.TryCreate(pEffectHelper, this); + if (bIncludeTrigger) + { + XBuffTrigger.TryCreate(this._buffInfo, this); + } + } + + public void AddEffect(BuffEffect eff) + { + bool flag = eff == null; + if (!flag) + { + this._buffEffects.Add(eff); + } + } + + public double ModifySkillCost() + { + return this._buffModifies.ModifySkillCost(); + } + + public double ModifySkillDamage() + { + return this._buffModifies.ModifySkillDamage(); + } + + public double IncReceivedDamage() + { + return this._buffModifies.IncReceivedDamage(); + } + + public double DecReceivedDamage() + { + return this._buffModifies.DecReceivedDamage(); + } + + public double ChangeSkillDamage(uint skillID) + { + return this._buffModifies.ChangeSkillDamage(skillID); + } + + public void OnAttributeChanged(XBuffComponent component, XAttrChangeEventArgs e) + { + for (int i = 0; i < this._buffEffects.Count; i++) + { + bool flag = !this.Valid; + if (flag) + { + break; + } + this._buffEffects[i].OnAttributeChanged(e); + } + } + + public void OnQTEStateChanged(XBuffComponent component, XSkillQTEEventArgs e) + { + for (int i = 0; i < this._buffEffects.Count; i++) + { + bool flag = !this.Valid; + if (flag) + { + break; + } + this._buffEffects[i].OnQTEStateChanged(e); + } + } + + public void OnRealDead(XRealDeadEventArgs e) + { + for (int i = 0; i < this._buffEffects.Count; i++) + { + bool flag = !this.Valid; + if (flag) + { + break; + } + this._buffEffects[i].OnRealDead(e); + } + } + + public void OnComboChange(uint comboCount) + { + for (int i = 0; i < this._buffEffects.Count; i++) + { + bool flag = !this.Valid; + if (flag) + { + break; + } + this._buffEffects[i].OnComboChange(comboCount); + } + } + + private void _AppendHP(float param0, float param1) + { + bool flag = param1 != 0f; + if (flag) + { + int num = (int)param0; + bool flag2 = num == 0; + if (flag2) + { + this._MaxHP += (double)param1; + } + else + { + XEntity entity = XSingleton.singleton.GetEntity(this.CasterID); + bool flag3 = entity != null && !entity.Deprecated; + if (flag3) + { + this._MaxHP += entity.Attributes.GetAttr((XAttributeDefine)num) * (double)param1 / 100.0; + } + } + } + } + + protected void _InitHP(CombatEffectHelper pEffectHelper) + { + bool flag = this._component == null; + if (!flag) + { + this._MaxHP = 0.0; + this._AppendHP(this._buffInfo.BuffHP[0], this._buffInfo.BuffHP[1]); + bool flag2 = pEffectHelper.bHasEffect(CombatEffectType.CET_Buff_HP); + if (flag2) + { + SequenceList sequenceList = CommonObjectPool>.Get(); + pEffectHelper.GetBuffHP(sequenceList); + for (int i = 0; i < sequenceList.Count; i++) + { + this._AppendHP(sequenceList[i, 0], sequenceList[i, 1]); + } + CommonObjectPool>.Release(sequenceList); + } + bool flag3 = this._MaxHP == 0.0; + if (flag3) + { + this._MaxHP = 100.0; + } + this._HP = this._MaxHP; + } + } + + public void OnAdd(XBuffComponent component, CombatEffectHelper pEffectHelper) + { + bool flag = XSingleton.singleton.IsGreater(this._TimeDuration, 0f); + if (flag) + { + this._TimerToken = XSingleton.singleton.SetTimer(this._TimeDuration, this._timeCb, component); + } + this._component = component; + this._InitHP(pEffectHelper); + this._CreateEffects(pEffectHelper, true); + this._buffEffects.Sort(); + for (int i = 0; i < this._buffEffects.Count; i++) + { + this._buffEffects[i].bValid = true; + this._buffEffects[i].OnAdd(component.Entity, pEffectHelper); + } + this._UIBuff.Set(this); + } + + public bool Append(XBuffComponent component, CombatEffectHelper pEffectHelper) + { + bool flag = this._TimerToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._TimerToken); + } + bool flag2 = XSingleton.singleton.IsGreater(this._TimeDuration, 0f); + if (flag2) + { + this._TimerToken = XSingleton.singleton.SetTimer(this._TimeDuration, this._timeCb, component); + } + this._HP = this._MaxHP; + bool flag3 = (uint)this._buffInfo.StackMaxCount <= this._StackCount; + bool result; + if (flag3) + { + this._UIBuff.Set(this); + result = false; + } + else + { + int count = this._buffEffects.Count; + this._CreateEffects(pEffectHelper, false); + for (int i = count; i < this._buffEffects.Count; i++) + { + this._buffEffects[i].bValid = true; + this._buffEffects[i].OnAdd(component.Entity, pEffectHelper); + } + this._buffEffects.Sort(); + this._StackCount += 1u; + this._UIBuff.Set(this); + result = true; + } + return result; + } + + public void OnAppend(XBuffComponent component) + { + for (int i = 0; i < this._buffEffects.Count; i++) + { + bool flag = !this.Valid; + if (flag) + { + break; + } + this._buffEffects[i].OnAppend(component.Entity); + } + } + + public float GetLeftTime() + { + bool flag = this._TimerToken == 0u; + float result; + if (flag) + { + result = -1f; + } + else + { + float num = (float)XSingleton.singleton.TimeLeft(this._TimerToken); + bool flag2 = num == 0f; + if (flag2) + { + result = -1f; + } + else + { + result = num; + } + } + return result; + } + + public void OnRemove(XBuffComponent component, bool IsReplaced) + { + bool valid = this._valid; + if (valid) + { + this._valid = false; + bool flag = this._TimerToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._TimerToken); + this._TimerToken = 0u; + } + for (int i = 0; i < this._buffEffects.Count; i++) + { + this._buffEffects[i].bValid = false; + this._buffEffects[i].OnRemove(component.Entity, IsReplaced); + } + this._buffModifies.OnRemove(this); + } + this._component = null; + this.Destroy(); + } + + public void OnBattleEnd(XBuffComponent component) + { + bool valid = this._valid; + if (valid) + { + for (int i = 0; i < this._buffEffects.Count; i++) + { + this._buffEffects[i].OnBattleEnd(component.Entity); + } + this._buffModifies.OnBattleEnd(this); + } + } + + private void OnBuffTimeEnd(object args) + { + this._TimerToken = 0u; + XBuffComponent xbuffComponent = args as XBuffComponent; + XBuffRemoveEventArgs @event = XEventPool.GetEvent(); + @event.xBuffID = this.ID; + @event.Firer = xbuffComponent.Entity; + XSingleton.singleton.FireEvent(@event); + } + + public void Destroy() + { + bool flag = this._RelevantSkills != null; + if (flag) + { + HashPool.Release(this._RelevantSkills); + this._RelevantSkills = null; + } + ListPool.Release(this._buffEffects); + this._buffModifies.Destroy(); + this._Exclusive.Destroy(); + } + + public void OnBuffEffect(HurtInfo rawInput, ProjectDamageResult result, XBuff.BuffEffectDelegate func) + { + int count = this._buffEffects.Count; + bool flag = XBuff.EffectEnumeratorPriorityCur == XBuffEffectPrioriy.BEP_START; + if (flag) + { + this.m_EffectEnumeratorIndex = 0; + } + while (this.m_EffectEnumeratorIndex < this._buffEffects.Count) + { + BuffEffect buffEffect = this._buffEffects[this.m_EffectEnumeratorIndex]; + XBuffEffectPrioriy priority = buffEffect.Priority; + bool flag2 = priority > XBuff.EffectEnumeratorPriorityCur; + if (flag2) + { + bool flag3 = priority < XBuff.EffectEnumeratorPriorityNext; + if (flag3) + { + XBuff.EffectEnumeratorPriorityNext = priority; + } + break; + } + func(buffEffect, rawInput, result); + this.m_EffectEnumeratorIndex++; + } + } + + public static void OnHurt(BuffEffect effect, HurtInfo rawInput, ProjectDamageResult result) + { + effect.OnBuffEffect(rawInput, result); + } + + public static void OnCastDamage(BuffEffect effect, HurtInfo rawInput, ProjectDamageResult result) + { + effect.OnCastDamage(rawInput, result); + } + + public void OnCastSkill(HurtInfo rawInput) + { + for (int i = 0; i < this._buffEffects.Count; i++) + { + bool flag = !this.Valid; + if (flag) + { + break; + } + this._buffEffects[i].OnCastSkill(rawInput); + } + } + + public bool ResetTime(XBuffComponent component) + { + bool flag = this._TimerToken == 0u; + bool result; + if (flag) + { + result = false; + } + else + { + XSingleton.singleton.KillTimer(this._TimerToken); + bool flag2 = XSingleton.singleton.IsGreater(this._TimeDuration, 0f); + if (flag2) + { + this._TimerToken = XSingleton.singleton.SetTimer(this._TimeDuration, this._timeCb, component); + } + this._UIBuff.Set(this); + result = true; + } + return result; + } + + public void AddBuffTime(float extendTime, XBuffComponent component) + { + bool flag = this._TimerToken == 0u; + if (!flag) + { + float num = (float)XSingleton.singleton.TimeLeft(this._TimerToken); + this._TimeDuration = num + extendTime; + XSingleton.singleton.KillTimer(this._TimerToken); + bool flag2 = XSingleton.singleton.IsGreater(this._TimeDuration, 0f); + if (flag2) + { + this._TimerToken = XSingleton.singleton.SetTimer(this._TimeDuration, this._timeCb, component); + } + this._UIBuff.Set(this); + } + } + + public void Update() + { + for (int i = 0; i < this._buffEffects.Count; i++) + { + bool flag = !this.Valid; + if (flag) + { + break; + } + this._buffEffects[i].OnUpdate(); + } + } + + public double ChangeBuffHP(double deltaHP) + { + this._HP += deltaHP; + bool flag = this.Valid && this._component != null; + if (flag) + { + bool flag2 = this._HP <= 0.0; + if (flag2) + { + deltaHP -= this._HP; + XBuffRemoveEventArgs @event = XEventPool.GetEvent(); + @event.xBuffID = this.ID; + @event.Firer = this._component.Entity; + XSingleton.singleton.FireEvent(@event); + } + this._UIBuff.HP = this._HP; + } + return deltaHP; + } + + public static bool HasTag(BuffTable.RowData data, XBuffTag tag) + { + bool flag = data == null || data.Tags == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < data.Tags.Length; i++) + { + bool flag2 = (XBuffTag)data.Tags[i] == tag; + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuff.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuff.cs.meta new file mode 100644 index 00000000..f22468ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4af08cdc1370d541ac8d3a9957c1207 +timeCreated: 1611404855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffAddEventArgs.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffAddEventArgs.cs new file mode 100644 index 00000000..bc8c76f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffAddEventArgs.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class XBuffAddEventArgs : XEventArgs + { + public BuffDesc xBuffDesc; + + public bool xEffectImm; + + public XBuffAddEventArgs() + { + this._eDefine = XEventDefine.XEvent_BuffAdd; + this.xBuffDesc.Reset(); + this.xEffectImm = false; + } + + public override void Recycle() + { + base.Recycle(); + this.xBuffDesc.Reset(); + this.xEffectImm = false; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffAddEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffAddEventArgs.cs.meta new file mode 100644 index 00000000..2755e193 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffAddEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37f54f5d300be634b817149c2585464d +timeCreated: 1611403568 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffAuraCheck.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffAuraCheck.cs new file mode 100644 index 00000000..a89f8be5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffAuraCheck.cs @@ -0,0 +1,312 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffAuraCheck : BuffEffect + { + private XBuff _buff = null; + + private XEntity _entity = null; + + private XBuffAuraCheck.ShapeType _type = XBuffAuraCheck.ShapeType.BACT_CIRCLE; + + private bool m_effectexcept = false; + + private bool m_effectexceptself = false; + + private float _sqrRadius = 0f; + + private float _sqrExclusiveRadius = 0f; + + private float _halfWidth = 0f; + + private float _halfHeight = 0f; + + private float _halfExclusiveWidth = 0f; + + private float _halfExclusiveHeight = 0f; + + private float _startTime = 0f; + + private float _interval = 0f; + + private uint _TimeToken = 0u; + + private HashSet _EffectGroups = null; + + private XTimerMgr.ElapsedEventHandler _timeCb = null; + + private enum ShapeType + { + BACT_CIRCLE, + BACT_RECTANGLE + } + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.AuraAddBuffID.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffAuraCheck(buff)); + result = true; + } + return result; + } + + public XBuffAuraCheck(XBuff buff) + { + this._buff = buff; + this._type = (XBuffAuraCheck.ShapeType)this._GetParam(0); + this._startTime = this._GetParam(1); + this._interval = Mathf.Max(XSingleton.singleton.BuffMinAuraInterval, this._GetParam(2)); + short[] effectGroup = buff.BuffInfo.EffectGroup; + this._timeCb = new XTimerMgr.ElapsedEventHandler(this.OnTimer); + bool flag = effectGroup != null; + if (flag) + { + for (int i = 0; i < effectGroup.Length; i++) + { + bool flag2 = effectGroup[i] == -1; + if (flag2) + { + this.m_effectexcept = true; + } + else + { + bool flag3 = effectGroup[i] == -2; + if (flag3) + { + this.m_effectexcept = true; + this.m_effectexceptself = true; + } + else + { + bool flag4 = this._EffectGroups == null; + if (flag4) + { + this._EffectGroups = new HashSet(); + } + this._EffectGroups.Add((uint)effectGroup[i]); + } + } + } + } + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + XBuffAuraCheck.ShapeType type = this._type; + if (type != XBuffAuraCheck.ShapeType.BACT_CIRCLE) + { + if (type == XBuffAuraCheck.ShapeType.BACT_RECTANGLE) + { + this._halfWidth = this._GetParam(3) / 2f; + this._halfHeight = this._GetParam(4) / 2f; + this._halfExclusiveWidth = this._GetParam(5) / 2f; + this._halfExclusiveHeight = this._GetParam(6) / 2f; + } + } + else + { + float num = this._GetParam(3); + num += pEffectHelper.GetBuffAuraRadius(); + this._sqrRadius = num * num; + float num2 = this._GetParam(4); + this._sqrExclusiveRadius = num2 * num2; + } + bool flag = this._entity == null || this._entity.IsDummy; + if (flag) + { + this._EffectGroups = null; + } + else + { + bool effectexcept = this.m_effectexcept; + if (effectexcept) + { + bool effectexceptself = this.m_effectexceptself; + if (effectexceptself) + { + bool flag2 = this._EffectGroups == null; + if (flag2) + { + this._EffectGroups = new HashSet(); + } + this._EffectGroups.Add(this._entity.Attributes.FightGroup); + } + } + else + { + bool flag3 = this._EffectGroups == null; + if (flag3) + { + this._EffectGroups = new HashSet(); + } + bool flag4 = this._EffectGroups.Count == 0; + if (flag4) + { + this._EffectGroups.Add(this._entity.Attributes.FightGroup); + } + } + } + bool flag5 = this._startTime <= 0f; + if (flag5) + { + this._timeCb(null); + } + else + { + this._TimeToken = XSingleton.singleton.SetTimer(this._startTime, this._timeCb, null); + } + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + XSingleton.singleton.KillTimer(this._TimeToken); + } + + public void OnTimer(object o) + { + bool isDummy = this._entity.IsDummy; + if (isDummy) + { + this._AddBuffs(this._entity); + } + else + { + List all = XSingleton.singleton.GetAll(); + Vector3 forward = this._entity.MoveObj.Forward; + Vector3 vector = XSingleton.singleton.HorizontalRotateVetor3(forward, 90f, true); + Vector3 position = this._entity.MoveObj.Position; + for (int i = 0; i < all.Count; i++) + { + XEntity xentity = all[i]; + bool flag = xentity.IsDead || xentity.Deprecated; + if (!flag) + { + bool flag2 = xentity.Attributes == null || !this._CanAttack(xentity.Attributes.FightGroup); + if (!flag2) + { + XBuffAuraCheck.ShapeType type = this._type; + if (type != XBuffAuraCheck.ShapeType.BACT_CIRCLE) + { + if (type == XBuffAuraCheck.ShapeType.BACT_RECTANGLE) + { + Vector3 vector2 = xentity.MoveObj.Position - position; + bool flag3 = this._halfWidth > 0f || this._halfExclusiveWidth > 0f; + if (flag3) + { + float num = Math.Abs(Vector3.Dot(vector2, forward)); + bool flag4 = this._halfWidth > 0f && num > this._halfWidth; + if (flag4) + { + goto IL_284; + } + bool flag5 = this._halfExclusiveWidth > 0f && num < this._halfExclusiveWidth; + if (flag5) + { + goto IL_284; + } + } + bool flag6 = this._halfHeight > 0f || this._halfExclusiveHeight > 0f; + if (flag6) + { + float num2 = Math.Abs(Vector3.Dot(vector2, vector)); + bool flag7 = this._halfHeight > 0f && num2 > this._halfHeight; + if (flag7) + { + goto IL_284; + } + bool flag8 = this._halfExclusiveHeight > 0f && num2 < this._halfExclusiveHeight; + if (flag8) + { + goto IL_284; + } + } + } + } + else + { + bool flag9 = this._sqrRadius > 0f || this._sqrExclusiveRadius > 0f; + if (flag9) + { + float num3 = Vector3.SqrMagnitude(position - xentity.MoveObj.Position); + bool flag10 = this._sqrRadius > 0f && num3 > this._sqrRadius; + if (flag10) + { + goto IL_284; + } + bool flag11 = this._sqrExclusiveRadius > 0f && num3 < this._sqrExclusiveRadius; + if (flag11) + { + goto IL_284; + } + } + } + this._AddBuffs(xentity); + } + } + IL_284:; + } + bool bValid = base.bValid; + if (bValid) + { + this._TimeToken = XSingleton.singleton.SetTimer(this._interval, this._timeCb, o); + } + } + } + + private void _AddBuffs(XEntity entity) + { + for (int i = 0; i < this._buff.BuffInfo.AuraAddBuffID.Count; i++) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc.BuffID = this._buff.BuffInfo.AuraAddBuffID[i, 0]; + @event.xBuffDesc.BuffLevel = this._buff.BuffInfo.AuraAddBuffID[i, 1]; + @event.Firer = entity; + @event.xBuffDesc.CasterID = this._buff.CasterID; + @event.xBuffDesc.SkillID = this._buff.SkillID; + XSingleton.singleton.FireEvent(@event); + } + } + + private bool _CanAttack(uint fightGroup) + { + bool effectexcept = this.m_effectexcept; + bool result; + if (effectexcept) + { + result = (this._EffectGroups == null || !this._EffectGroups.Contains(fightGroup)); + } + else + { + result = (this._EffectGroups != null && this._EffectGroups.Contains(fightGroup)); + } + return result; + } + + private float _GetParam(int index) + { + bool flag = this._buff.BuffInfo.AuraParams == null || this._buff.BuffInfo.AuraParams.Length <= index; + float result; + if (flag) + { + result = 0f; + } + else + { + result = this._buff.BuffInfo.AuraParams[index]; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffAuraCheck.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffAuraCheck.cs.meta new file mode 100644 index 00000000..6d461a87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffAuraCheck.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8be5fed26df70643aec574d1eeba643 +timeCreated: 1611404406 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardAddEventArgs.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardAddEventArgs.cs new file mode 100644 index 00000000..07ce3134 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardAddEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XBuffBillboardAddEventArgs : XEventArgs + { + public int xBuffID; + + public int xBuffLevel; + + public XBuffBillboardAddEventArgs() + { + this._eDefine = XEventDefine.XEvent_BuffBillboardAdd; + this.xBuffID = 0; + this.xBuffLevel = 0; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardAddEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardAddEventArgs.cs.meta new file mode 100644 index 00000000..e1e95d97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardAddEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6cc8cc4335a3f645bfa475443760fea +timeCreated: 1611404290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardRemoveEventArgs.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardRemoveEventArgs.cs new file mode 100644 index 00000000..2547a803 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardRemoveEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XBuffBillboardRemoveEventArgs : XEventArgs + { + public int xBuffID; + + public XBuffBillboardRemoveEventArgs() + { + this._eDefine = XEventDefine.XEvent_BuffBillboardRemove; + this.xBuffID = 0; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardRemoveEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardRemoveEventArgs.cs.meta new file mode 100644 index 00000000..426b49ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffBillboardRemoveEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ee673a5594cd7b4ea959c2d0652fc25 +timeCreated: 1611403907 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeAttribute.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeAttribute.cs new file mode 100644 index 00000000..764469fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeAttribute.cs @@ -0,0 +1,331 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffChangeAttribute : BuffEffect + { + private XBuff _buff = null; + + private HashSet m_SetConvertor = new HashSet(default(XFastEnumIntEqualityComparer)); + + private Dictionary m_ConvertorDeltaValue = new Dictionary(); + + private SequenceList m_OriginalAttrs = null; + + private List m_AdditionalAttrs = null; + + private bool m_bChanging; + + private XEntity m_Entity; + + public static bool TryCreate(CombatEffectHelper helper, XBuff buff) + { + bool flag = helper.BuffInfo.BuffChangeAttribute.Count == 0 && !helper.bHasEffect(CombatEffectType.CET_Buff_ChangeAttribute); + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffChangeAttribute(buff)); + result = true; + } + return result; + } + + public XBuffChangeAttribute(XBuff buff) + { + this._buff = buff; + } + + private void _Convert(int attrID, double deltaValue) + { + bool flag = this.m_Entity == null || this.m_Entity.Attributes == null; + if (!flag) + { + bool flag2 = !this.m_Entity.IsRole; + if (!flag2) + { + int basicTypeID = (int)this.m_Entity.Attributes.BasicTypeID; + bool flag3 = !XAttributeCommon.IsFirstLevelAttr((XAttributeDefine)attrID); + if (!flag3) + { + int basicAttr = XAttributeCommon.GetBasicAttr(attrID); + XTuple[] convertCoefficient = XSingleton.singleton.GetConvertCoefficient(basicAttr, basicTypeID); + bool flag4 = convertCoefficient == null; + if (!flag4) + { + bool flag5 = XAttributeCommon.IsPercentRange(attrID); + if (flag5) + { + deltaValue *= 0.01 * this.m_Entity.Attributes.GetAttr((XAttributeDefine)basicAttr); + } + bool flag6 = Math.Abs(deltaValue) < 1E-06; + if (!flag6) + { + bool flag7 = this.m_AdditionalAttrs == null; + if (flag7) + { + this.m_AdditionalAttrs = ListPool.Get(); + } + for (int i = 0; i < convertCoefficient.Length; i++) + { + XAttributeDefine item = (XAttributeDefine)convertCoefficient[i].Item1; + double value = convertCoefficient[i].Item2 * deltaValue; + XAttributeDefine attrCurAttr = XAttributeCommon.GetAttrCurAttr(item); + bool flag8 = attrCurAttr != XAttributeDefine.XAttr_Invalid; + if (flag8) + { + bool flag9 = deltaValue > 0.0; + if (flag9) + { + this.m_AdditionalAttrs.Add(new XAttrPair(item, value)); + this.m_AdditionalAttrs.Add(new XAttrPair(attrCurAttr, value)); + } + else + { + this.m_AdditionalAttrs.Add(new XAttrPair(attrCurAttr, value)); + this.m_AdditionalAttrs.Add(new XAttrPair(item, value)); + } + } + else + { + this.m_AdditionalAttrs.Add(new XAttrPair(item, value)); + } + } + } + } + } + } + } + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this.m_Entity = entity; + bool flag = entity.IsDummy || entity.IsDead; + if (!flag) + { + this.m_bChanging = true; + bool flag2 = pEffectHelper.bHasEffect(CombatEffectType.CET_Buff_ChangeAttribute); + ISeqListRef seqListRef; + if (flag2) + { + this.m_OriginalAttrs = CommonObjectPool>.Get(); + this.m_OriginalAttrs.Reset(3); + this.m_OriginalAttrs.Append(this._buff.BuffInfo.BuffChangeAttribute, 3); + pEffectHelper.GetBuffChangeAttribute(this.m_OriginalAttrs); + seqListRef = this.m_OriginalAttrs; + } + else + { + seqListRef = this._buff.BuffInfo.BuffChangeAttribute; + } + for (int i = 0; i < seqListRef.Count; i++) + { + XAttributeDefine attrKey = (XAttributeDefine)seqListRef[i, 0]; + double num = (double)seqListRef[i, 1]; + bool flag3 = seqListRef[i, 2] != 0f; + if (flag3) + { + XAttributeDefine xattributeDefine = (XAttributeDefine)seqListRef[i, 2]; + num *= entity.Attributes.GetAttr(xattributeDefine); + this.m_ConvertorDeltaValue[i] = num; + this.m_SetConvertor.Add(xattributeDefine); + } + XBuffChangeAttribute.ChangeAttribute(entity.Attributes, attrKey, num); + this._Convert((int)seqListRef[i, 0], num); + } + bool flag4 = this.m_AdditionalAttrs != null; + if (flag4) + { + for (int j = 0; j < this.m_AdditionalAttrs.Count; j++) + { + XBuffChangeAttribute.ChangeAttribute(entity.Attributes, this.m_AdditionalAttrs[j].AttrID, this.m_AdditionalAttrs[j].AttrValue); + } + } + this.m_bChanging = false; + } + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + bool flag = entity.IsDummy || entity.IsDead; + if (!flag) + { + this.m_bChanging = true; + XSecurityBuffInfo xsecurityBuffInfo = XSecurityBuffInfo.TryGetStatistics(entity); + bool flag2 = this.m_AdditionalAttrs != null; + if (flag2) + { + for (int i = this.m_AdditionalAttrs.Count - 1; i >= 0; i--) + { + bool flag3 = xsecurityBuffInfo != null; + if (flag3) + { + xsecurityBuffInfo.OnAttributeChanged(entity.Attributes, this._buff, this.m_AdditionalAttrs[i].AttrID, this.m_AdditionalAttrs[i].AttrValue); + } + XBuffChangeAttribute.ChangeAttribute(entity.Attributes, this.m_AdditionalAttrs[i].AttrID, -this.m_AdditionalAttrs[i].AttrValue); + } + } + ISeqListRef seqListRef = this.m_OriginalAttrs; + bool flag4 = seqListRef == null; + if (flag4) + { + seqListRef = this._buff.BuffInfo.BuffChangeAttribute; + } + for (int j = seqListRef.Count - 1; j >= 0; j--) + { + XAttributeDefine xattributeDefine = (XAttributeDefine)seqListRef[j, 0]; + double num = (double)(-(double)seqListRef[j, 1]); + bool flag5 = seqListRef[j, 2] != 0f && this.m_ConvertorDeltaValue.ContainsKey(j); + if (flag5) + { + num = -this.m_ConvertorDeltaValue[j]; + } + bool flag6 = xsecurityBuffInfo != null; + if (flag6) + { + xsecurityBuffInfo.OnAttributeChanged(entity.Attributes, this._buff, xattributeDefine, -num); + } + XBuffChangeAttribute.ChangeAttribute(entity.Attributes, xattributeDefine, num); + } + this.m_bChanging = false; + this._buff = null; + bool flag7 = this.m_AdditionalAttrs != null; + if (flag7) + { + ListPool.Release(this.m_AdditionalAttrs); + this.m_AdditionalAttrs = null; + } + bool flag8 = this.m_OriginalAttrs != null; + if (flag8) + { + CommonObjectPool>.Release(this.m_OriginalAttrs); + this.m_OriginalAttrs = null; + } + } + } + + public override void OnBattleEnd(XEntity entity) + { + base.OnBattleEnd(entity); + bool flag = entity.IsDummy || entity.IsDead; + if (!flag) + { + XSecurityBuffInfo xsecurityBuffInfo = XSecurityBuffInfo.TryGetStatistics(entity); + bool flag2 = xsecurityBuffInfo == null; + if (!flag2) + { + bool flag3 = this.m_AdditionalAttrs != null; + if (flag3) + { + for (int i = this.m_AdditionalAttrs.Count - 1; i >= 0; i--) + { + bool flag4 = xsecurityBuffInfo != null; + if (flag4) + { + xsecurityBuffInfo.OnAttributeChanged(entity.Attributes, this._buff, this.m_AdditionalAttrs[i].AttrID, this.m_AdditionalAttrs[i].AttrValue); + } + } + } + ISeqListRef seqListRef = this.m_OriginalAttrs; + bool flag5 = seqListRef == null; + if (flag5) + { + seqListRef = this._buff.BuffInfo.BuffChangeAttribute; + } + for (int j = seqListRef.Count - 1; j >= 0; j--) + { + XAttributeDefine attr = (XAttributeDefine)seqListRef[j, 0]; + double num = (double)(-(double)seqListRef[j, 1]); + bool flag6 = seqListRef[j, 2] != 0f && this.m_ConvertorDeltaValue.ContainsKey(j); + if (flag6) + { + num = -this.m_ConvertorDeltaValue[j]; + } + bool flag7 = xsecurityBuffInfo != null; + if (flag7) + { + xsecurityBuffInfo.OnAttributeChanged(entity.Attributes, this._buff, attr, -num); + } + } + } + } + } + + public override void OnAttributeChanged(XAttrChangeEventArgs e) + { + base.OnAttributeChanged(e); + bool flag = this.m_Entity.IsDummy || this.m_Entity.IsDead; + if (!flag) + { + bool bChanging = this.m_bChanging; + if (!bChanging) + { + bool flag2 = !this.m_SetConvertor.Contains(e.AttrKey) || this.m_ConvertorDeltaValue.Count == 0; + if (!flag2) + { + this.m_bChanging = true; + ISeqListRef seqListRef = this.m_OriginalAttrs; + bool flag3 = seqListRef == null; + if (flag3) + { + seqListRef = this._buff.BuffInfo.BuffChangeAttribute; + } + for (int i = 0; i < seqListRef.Count; i++) + { + bool flag4 = seqListRef[i, 2] == 0f; + if (!flag4) + { + XAttributeDefine xattributeDefine = (XAttributeDefine)seqListRef[i, 2]; + bool flag5 = xattributeDefine != e.AttrKey; + if (!flag5) + { + double num; + bool flag6 = !this.m_ConvertorDeltaValue.TryGetValue(i, out num); + if (!flag6) + { + double num2 = (double)seqListRef[i, 1]; + num2 *= this.m_Entity.Attributes.GetAttr(xattributeDefine); + XAttributeDefine attrKey = (XAttributeDefine)seqListRef[i, 0]; + double num3 = num2 - num; + Dictionary convertorDeltaValue = this.m_ConvertorDeltaValue; + int key = i; + convertorDeltaValue[key] += num3; + XBuffChangeAttribute.ChangeAttribute(this.m_Entity.Attributes, attrKey, num3); + } + } + } + } + this.m_bChanging = false; + } + } + } + } + + public static void ChangeAttribute(XAttributes attributes, XAttributeDefine attrKey, double attrValue) + { + bool flag = attributes == null || attributes.Entity == null; + if (!flag) + { + XEntity entity = attributes.Entity; + PercentWatcher percentWatcher = new PercentWatcher(attributes, attrKey, attrValue / 100.0); + double num = XCombat.CheckChangeHPLimit(attrKey, attrValue, entity, true, true); + bool flag2 = num == 0.0; + if (!flag2) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = attrKey; + @event.DeltaValue = num; + @event.Firer = entity; + XSingleton.singleton.FireEvent(@event); + percentWatcher.Check(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeAttribute.cs.meta new file mode 100644 index 00000000..2025d10a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acd67ebca1ebd174298d3a48b57dab70 +timeCreated: 1611404332 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeEventArgs.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeEventArgs.cs new file mode 100644 index 00000000..fdc3892f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeEventArgs.cs @@ -0,0 +1,65 @@ +using System; + +namespace XMainClient +{ + internal class XBuffChangeEventArgs : XEventArgs + { + public UIBuffInfo addBuff; + + public UIBuffInfo removeBuff; + + public UIBuffInfo updateBuff; + + public XEntity entity; + + public XBuffChangeEventArgs() + { + this._eDefine = XEventDefine.XEvent_BuffChange; + this.addBuff = null; + this.removeBuff = null; + this.updateBuff = null; + this.entity = null; + } + + public override void Recycle() + { + base.Recycle(); + this.addBuff = null; + this.removeBuff = null; + this.updateBuff = null; + this.entity = null; + XEventPool.Recycle(this); + } + + public UIBuffInfo GetActive() + { + bool flag = this.addBuff != null; + UIBuffInfo result; + if (flag) + { + result = this.addBuff; + } + else + { + bool flag2 = this.removeBuff != null; + if (flag2) + { + result = this.removeBuff; + } + else + { + bool flag3 = this.updateBuff != null; + if (flag3) + { + result = this.updateBuff; + } + else + { + result = null; + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeEventArgs.cs.meta new file mode 100644 index 00000000..156bd532 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 189410d1f30b2c54fb01b6474af86970 +timeCreated: 1611403297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeFightGroup.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeFightGroup.cs new file mode 100644 index 00000000..05f571f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeFightGroup.cs @@ -0,0 +1,44 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffChangeFightGroup : BuffEffect + { + private uint m_FightGroup; + + private uint m_PreservedFightGroup; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.ChangeFightGroup == -1; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffChangeFightGroup(buff, (uint)rowData.ChangeFightGroup)); + result = true; + } + return result; + } + + public XBuffChangeFightGroup(XBuff buff, uint fightgroup) + { + this.m_FightGroup = fightgroup; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this.m_PreservedFightGroup = entity.Attributes.FightGroup; + entity.Attributes.OnFightGroupChange(this.m_FightGroup); + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + entity.Attributes.OnFightGroupChange(this.m_PreservedFightGroup); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeFightGroup.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeFightGroup.cs.meta new file mode 100644 index 00000000..d3bc8112 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffChangeFightGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4751d16031bcb844ab033a84a6e76cd8 +timeCreated: 1611403653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffClear.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffClear.cs new file mode 100644 index 00000000..26f39e1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffClear.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffClear : BuffEffect + { + private XEntity _entity; + + private HashSet m_Types; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.ClearTypes == null || rowData.ClearTypes.Length == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffClear(rowData.ClearTypes)); + result = true; + } + return result; + } + + public XBuffClear(byte[] _Types) + { + this.m_Types = new HashSet(); + bool flag = _Types != null; + if (flag) + { + for (int i = 0; i < _Types.Length; i++) + { + bool flag2 = _Types[i] == 0; + if (!flag2) + { + this.m_Types.Add((int)_Types[i]); + } + } + } + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + XBuffComponent xbuffComponent = entity.GetXComponent(XBuffComponent.uuID) as XBuffComponent; + bool flag = xbuffComponent == null; + if (!flag) + { + for (int i = 0; i < xbuffComponent.BuffList.Count; i++) + { + XBuff xbuff = xbuffComponent.BuffList[i]; + bool flag2 = xbuff.Valid && this.m_Types.Contains((int)xbuff.ClearType); + if (flag2) + { + XBuffRemoveEventArgs @event = XEventPool.GetEvent(); + @event.xBuffID = xbuff.ID; + @event.Firer = entity; + XSingleton.singleton.FireEvent(@event); + } + } + } + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + } + + public override bool CanBuffAdd(int clearType) + { + bool flag = this.m_Types.Contains(clearType); + return !flag; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffClear.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffClear.cs.meta new file mode 100644 index 00000000..a98405e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffClear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5811c28a59f01db46a02b8c5ed842616 +timeCreated: 1611403752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffComponent.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffComponent.cs new file mode 100644 index 00000000..3d94fa42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffComponent.cs @@ -0,0 +1,1261 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffComponent : XComponent + { + public override uint ID + { + get + { + return XBuffComponent.uuID; + } + } + + public List BuffList + { + get + { + return this._BuffList; + } + } + + public List ServerBuffList + { + get + { + return this._ServerBuffList; + } + } + + public bool bDemo + { + get + { + return this._entity.IsDummy; + } + } + + public bool bLeavingScene + { + get + { + return this.m_bLeavingScene; + } + } + + public bool bDestroying + { + get + { + return this.m_bDestroying; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Character_Buff"); + + private bool _removeFlag = false; + + private List _BuffList = new List(); + + private List _AddBuffQueue = new List(); + + private List _AddBuffQueue2 = new List(); + + private List _ServerBuffList = new List(); + + private Dictionary _ScaleFx = new Dictionary(); + + private Dictionary _NoScaleFx = new Dictionary(); + + public Dictionary m_GlobalTriggerState = new Dictionary(); + + private bool m_bLeavingScene; + + private bool m_bDestroying; + + private static double CAST_DAMAGE_CHANGE_UPPERBOUND; + + private static double CAST_DAMAGE_CHANGE_LOWERBOUND; + + private static double RECEIVED_DAMAGE_CHANGE_UPPERBOUND; + + private static double RECEIVED_DAMAGE_CHANGE_LOWERBOUND; + + private static double MP_COST_CHANGE_UPPERBOUND; + + private static double MP_COST_CHANGE_LOWERBOUND; + + public static HashSet TransformBuffsChangeOutlook = new HashSet(); + + private bool _bPostUpdating = false; + + private List m_TempBuffList = new List(); + + private List m_UIBuffList = new List(); + + public static void InitConfigs() + { + XBuffComponent._ParseBounds(ref XBuffComponent.CAST_DAMAGE_CHANGE_LOWERBOUND, ref XBuffComponent.CAST_DAMAGE_CHANGE_UPPERBOUND, "BuffChangeCastDamageLimit"); + XBuffComponent._ParseBounds(ref XBuffComponent.RECEIVED_DAMAGE_CHANGE_LOWERBOUND, ref XBuffComponent.RECEIVED_DAMAGE_CHANGE_UPPERBOUND, "BuffChangeReceivedDamageLimit"); + XBuffComponent._ParseBounds(ref XBuffComponent.MP_COST_CHANGE_LOWERBOUND, ref XBuffComponent.MP_COST_CHANGE_UPPERBOUND, "MpCostChangeLimit"); + XBuffComponent.TransformBuffsChangeOutlook.Clear(); + string[] array = XSingleton.singleton.GetValue("TransformBuffsChangeOutlook").Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + XBuffComponent.TransformBuffsChangeOutlook.Add(int.Parse(array[i])); + } + } + + private static void _ParseBounds(ref double lowerBound, ref double upperBound, string key) + { + string[] array = XSingleton.singleton.GetValue(key).Split(XGlobalConfig.SequenceSeparator); + bool flag = array.Length != 2; + if (flag) + { + XSingleton.singleton.AddErrorLog(key, " format error: ", XSingleton.singleton.GetValue("key"), null, null, null); + } + else + { + lowerBound = double.Parse(array[0]) - 1.0; + upperBound = double.Parse(array[1]) - 1.0; + } + } + + public override void Attached() + { + bool flag = !XSingleton.singleton.SyncMode && this._entity.Attributes != null; + if (flag) + { + int i = 0; + int count = this._entity.Attributes.InBornBuff.Count; + while (i < count) + { + int buffID = this._entity.Attributes.InBornBuff[i, 0]; + int buffLevel = this._entity.Attributes.InBornBuff[i, 1]; + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._entity; + @event.xBuffDesc.BuffID = buffID; + @event.xBuffDesc.BuffLevel = buffLevel; + @event.xBuffDesc.CasterID = this._entity.ID; + XSingleton.singleton.FireEvent(@event); + i++; + } + this._entity.Attributes.SkillLevelInfo.CaskAuraSkills(this._entity); + } + this.m_bLeavingScene = false; + this.m_bDestroying = false; + } + + public bool IsBuffStateOn(XBuffType type) + { + bool flag = this._entity.Attributes == null; + return !flag && this._entity.Attributes.BuffState.IsBuffStateOn(type); + } + + public short GetBuffStateCounter(XBuffType type) + { + bool flag = this._entity.Attributes == null; + short result; + if (flag) + { + result = 0; + } + else + { + result = this._entity.Attributes.BuffState.GetBuffStateCounter(type); + } + return result; + } + + public void IncBuffState(XBuffType type, int param) + { + bool flag = this._entity.Attributes == null; + if (!flag) + { + this._entity.Attributes.BuffState.IncBuffState(type, param); + } + } + + public void DecBuffState(XBuffType type, int param) + { + bool flag = this._entity.Attributes == null; + if (!flag) + { + this._entity.Attributes.BuffState.DecBuffState(type, param); + } + } + + public int GetStateParam(XBuffType type) + { + bool flag = this._entity.Attributes == null; + int result; + if (flag) + { + result = 0; + } + else + { + result = this._entity.Attributes.BuffState.GetStateParam(type); + } + return result; + } + + public void ClearBuff() + { + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool valid = xbuff.Valid; + if (valid) + { + this._RemoveBuff(xbuff, false); + } + } + bool flag = this.m_bLeavingScene || this.m_bDestroying; + if (flag) + { + for (int j = this._ServerBuffList.Count - 1; j >= 0; j--) + { + ServerBuffInfo buff = this._ServerBuffList[j]; + this._ServerBuffList.RemoveAt(j); + this._RemoveBuff(buff, null); + } + } + this._BuffList.Clear(); + this._AddBuffQueue.Clear(); + this._AddBuffQueue2.Clear(); + this._ServerBuffList.Clear(); + this._RefreshQueueImm(); + bool flag2 = this._entity.Attributes != null; + if (flag2) + { + bool flag3 = !XSingleton.singleton.SyncMode; + if (flag3) + { + this._entity.Attributes.BuffState.CheckBuffState(); + } + this._entity.Attributes.BuffState.Reset(); + } + } + + public void OnHurt(HurtInfo rawInput, ProjectDamageResult result) + { + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool flag = !xbuff.Valid; + if (!flag) + { + xbuff.OnBuffEffect(rawInput, result, new XBuff.BuffEffectDelegate(XBuff.OnHurt)); + } + } + } + + public void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool flag = !xbuff.Valid; + if (!flag) + { + xbuff.OnBuffEffect(rawInput, result, new XBuff.BuffEffectDelegate(XBuff.OnCastDamage)); + } + } + } + + public void OnCastSkill(HurtInfo rawInput) + { + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool flag = !xbuff.Valid; + if (!flag) + { + xbuff.OnCastSkill(rawInput); + } + } + } + + public void MakeSingleEffect(XBuff buff) + { + bool flag = buff == null; + if (!flag) + { + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool flag2 = !xbuff.Valid || xbuff == buff; + if (!flag2) + { + bool flag3 = xbuff.ExclusiveData.IsSingleEffectConflict(buff.ExclusiveData); + if (flag3) + { + this._RemoveBuff(xbuff, false); + } + } + } + } + } + + protected void _CheckRelatedBuffs(BuffTable.RowData rowData, out bool bCanAdd, List buffsShouldRemove) + { + bCanAdd = true; + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool flag = !xbuff.Valid; + if (!flag) + { + bool flag2 = !xbuff.ExclusiveData.CanAdd(rowData.BuffClearType); + if (flag2) + { + bCanAdd = false; + break; + } + } + } + } + + private bool _PreAddBuff(BuffTable.RowData rowData) + { + List list = ListPool.Get(); + bool flag; + this._CheckRelatedBuffs(rowData, out flag, list); + bool flag2 = !flag; + bool result; + if (flag2) + { + ListPool.Release(list); + result = false; + } + else + { + bool flag3 = list.Count != 0; + if (flag3) + { + for (int i = 0; i < list.Count; i++) + { + this._RemoveBuff(list[i], false); + } + } + result = true; + } + return result; + } + + private void _PostAddBuff(XBuff newBuff) + { + bool flag = newBuff == null; + if (!flag) + { + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool flag2 = !xbuff.Valid || xbuff == newBuff; + if (!flag2) + { + bool flag3 = !newBuff.ExclusiveData.ShouldClear(xbuff.ClearType); + if (flag3) + { + this._RemoveBuff(xbuff, false); + } + } + } + } + } + + private void _AddBuff(BuffDesc buffDesc) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(buffDesc.BuffID, buffDesc.BuffLevel); + bool flag = buffData == null; + if (!flag) + { + bool flag2 = !this._PreAddBuff(buffData); + if (!flag2) + { + bool flag3 = buffDesc.CasterID == 0UL; + if (flag3) + { + buffDesc.CasterID = this._entity.ID; + } + CombatEffectHelper data = XDataPool.GetData(); + data.Set(buffData, buffDesc.CasterID, this._entity); + XBuff xbuff = XSingleton.singleton.CreateBuff(buffDesc, data); + bool flag4 = xbuff == null; + if (flag4) + { + data.Recycle(); + } + else + { + xbuff.CasterID = buffDesc.CasterID; + xbuff.OnAdd(this, data); + this._PostAddBuff(xbuff); + this._BuffList.Add(xbuff); + this._SendAIEvent(xbuff); + this._AddBuffNotifyDoc(xbuff.UIBuff); + this._PlayBuffFx(xbuff.ID, xbuff.Level, xbuff.Duration); + data.Recycle(); + } + } + } + } + + private void _AppendBuff(XBuff oldBuff) + { + CombatEffectHelper data = XDataPool.GetData(); + data.Set(oldBuff.BuffInfo, oldBuff.CasterID, this._entity); + oldBuff.Append(this, data); + this._UpdateBuffNotifyDoc(oldBuff.UIBuff); + data.Recycle(); + oldBuff.OnAppend(this); + } + + private void _RemoveBuff(XBuff buff, bool bIsReplaced) + { + UIBuffInfo uibuff = buff.UIBuff; + this._StopBuffFx(buff.ID); + buff.OnRemove(this, bIsReplaced); + this._removeFlag = true; + this._RemoveBuffNotifyDoc(uibuff); + } + + private void _SendAIEvent(XBuff buff) + { + bool flag = buff.BuffInfo.AIEvent[0].Length != 0 && buff.BuffInfo.AIEvent[1].Length != 0; + if (flag) + { + XAIEventArgs @event = XEventPool.GetEvent(); + @event.EventArg = buff.BuffInfo.AIEvent[1]; + @event.TypeId = buff.ID; + @event.Pos = this._entity.MoveObj.Position; + @event.Firer = ((buff.BuffInfo.AIEvent[0] == "0") ? XSingleton.singleton.AIGlobal.Host : this._entity); + XSingleton.singleton.FireEvent(@event); + } + } + + private void PlayFxAtSlot(int slot, int buffID, string fxPath, Dictionary container, bool scale, XEntity entity) + { + bool flag = container.ContainsKey(slot); + ClientBuffInfo clientBuffInfo; + if (flag) + { + clientBuffInfo = container[slot]; + } + else + { + clientBuffInfo = new ClientBuffInfo(); + container.Add(slot, clientBuffInfo); + } + bool flag2 = clientBuffInfo.oFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(clientBuffInfo.oFx, true); + clientBuffInfo.oFx = null; + } + clientBuffInfo.BuffID = buffID; + bool flag3 = XSingleton.singleton.IsMustTransform && entity.IsRole && !entity.IsTransform; + if (!flag3) + { + float num = scale ? entity.Height : 1f; + bool flag4 = fxPath != "nullfx"; + if (flag4) + { + clientBuffInfo.oFx = XSingleton.singleton.CreateFx(fxPath, null, true); + bool sticky = fxPath.Contains("_TIEDI"); + clientBuffInfo.oFx.Play(entity.EngineObject, Vector3.zero, num / entity.Scale * Vector3.one, 1f, true, sticky, "", 0f); + } + } + } + + private void _PlayBuffFx(int BuffID, int BuffLevel, float duration) + { + bool flag = !this._entity.IsVisible; + if (!flag) + { + bool flag2 = duration > 0f && duration < 3f && XEntity.FilterFx(this._entity, XFxMgr.FilterFxDis2); + if (!flag2) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(BuffID, BuffLevel); + bool flag3 = buffData == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Format("Play buff fx: Buff data not found: [{0} {1}]", BuffID, BuffLevel), null, null, null, null, null); + } + else + { + bool flag4 = !string.IsNullOrEmpty(buffData.BuffEffectFx); + if (flag4) + { + int slot = 0; + string[] array = buffData.BuffEffectFx.Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + string[] array2 = array[i].Split(XGlobalConfig.SequenceSeparator); + bool flag5 = array2.Length == 2; + if (flag5) + { + int.TryParse(array2[1], out slot); + } + this.PlayFxAtSlot(slot, BuffID, array2[0], this._NoScaleFx, true, this._entity); + } + } + bool flag6 = !string.IsNullOrEmpty(buffData.BuffFx); + if (flag6) + { + int slot2 = 0; + string[] array3 = buffData.BuffFx.Split(XGlobalConfig.ListSeparator); + for (int j = 0; j < array3.Length; j++) + { + string[] array4 = array3[j].Split(XGlobalConfig.SequenceSeparator); + bool flag7 = array4.Length == 2; + if (flag7) + { + int.TryParse(array4[1], out slot2); + } + this.PlayFxAtSlot(slot2, BuffID, array4[0], this._ScaleFx, false, this._entity); + } + } + bool flag8 = !string.IsNullOrEmpty(buffData.BuffSpriteFx) && !XQualitySetting.GetQuality(EFun.ELowEffect); + if (flag8) + { + int slot3 = 10; + XAffiliate xaffiliate = null; + bool flag9 = !this._entity.IsTransform && this._entity.Equipment != null; + if (flag9) + { + xaffiliate = this._entity.Equipment.Sprite; + } + bool flag10 = xaffiliate != null; + if (flag10) + { + string[] array5 = buffData.BuffSpriteFx.Split(XGlobalConfig.ListSeparator); + for (int k = 0; k < array5.Length; k++) + { + string[] array6 = array5[k].Split(XGlobalConfig.SequenceSeparator); + bool flag11 = array6.Length == 2; + if (flag11) + { + int.TryParse(array6[1], out slot3); + } + this.PlayFxAtSlot(slot3, BuffID, array6[0], this._NoScaleFx, false, xaffiliate); + } + } + } + } + } + } + } + + private void _StopBuffFx(int BuffID) + { + foreach (KeyValuePair keyValuePair in this._NoScaleFx) + { + bool flag = keyValuePair.Value.BuffID == BuffID; + if (flag) + { + bool flag2 = keyValuePair.Value.oFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(keyValuePair.Value.oFx, true); + keyValuePair.Value.oFx = null; + keyValuePair.Value.BuffID = 0; + } + } + } + foreach (KeyValuePair keyValuePair2 in this._ScaleFx) + { + bool flag3 = keyValuePair2.Value.BuffID == BuffID; + if (flag3) + { + bool flag4 = keyValuePair2.Value.oFx != null; + if (flag4) + { + XSingleton.singleton.DestroyFx(keyValuePair2.Value.oFx, true); + keyValuePair2.Value.oFx = null; + keyValuePair2.Value.BuffID = 0; + } + break; + } + } + } + + public XBuff GetBuffByID(int buffID) + { + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool flag = !xbuff.Valid; + if (!flag) + { + bool flag2 = xbuff.ID == buffID; + if (flag2) + { + return xbuff; + } + } + } + return null; + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_BuffAdd, new XComponent.XEventHandler(this.OnAddBuffEvent)); + base.RegisterEvent(XEventDefine.XEvent_BuffRemove, new XComponent.XEventHandler(this.OnRemoveBuffEvent)); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnRealDead)); + base.RegisterEvent(XEventDefine.XEvent_LeaveScene, new XComponent.XEventHandler(this.OnLeaveScene)); + bool flag = !this.bDemo; + if (flag) + { + base.RegisterEvent(XEventDefine.XEvent_AttributeChange, new XComponent.XEventHandler(this.OnAttributeChange)); + } + else + { + base.RegisterEvent(XEventDefine.XEvent_AttackShowEnd, new XComponent.XEventHandler(this.SkillPlayFinished)); + } + bool flag2 = !XSingleton.singleton.SyncMode; + if (flag2) + { + base.RegisterEvent(XEventDefine.XEvent_ComboChange, new XComponent.XEventHandler(this.OnComboChange)); + } + base.RegisterEvent(XEventDefine.XEvent_BattleEnd, new XComponent.XEventHandler(this.OnBattleEndEvent)); + } + + private bool SkillPlayFinished(XEventArgs args) + { + this.ClearBuff(); + this.ClearBuffFx(); + return true; + } + + private bool OnLeaveScene(XEventArgs e) + { + this.m_bLeavingScene = true; + this.ClearBuff(); + this.ClearTriggerStates(); + return true; + } + + private bool OnRealDead(XEventArgs e) + { + XRealDeadEventArgs e2 = e as XRealDeadEventArgs; + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool valid = xbuff.Valid; + if (valid) + { + xbuff.OnRealDead(e2); + } + } + this.ClearBuff(); + this.ClearBuffFx(); + return true; + } + + public void ClearBuffFx() + { + foreach (KeyValuePair keyValuePair in this._NoScaleFx) + { + bool flag = keyValuePair.Value.oFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(keyValuePair.Value.oFx, true); + keyValuePair.Value.oFx = null; + } + } + foreach (KeyValuePair keyValuePair2 in this._ScaleFx) + { + bool flag2 = keyValuePair2.Value.oFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(keyValuePair2.Value.oFx, true); + keyValuePair2.Value.oFx = null; + } + } + this._NoScaleFx.Clear(); + this._ScaleFx.Clear(); + } + + private void _MergeBuff(BuffDesc buffDesc, XBuff existBuff) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(buffDesc.BuffID, buffDesc.BuffLevel); + bool flag = buffData == null; + if (!flag) + { + bool flag2 = existBuff.Level > (int)buffData.BuffLevel; + if (!flag2) + { + bool flag3 = existBuff.Level < (int)buffData.BuffLevel; + if (flag3) + { + this._RemoveBuff(existBuff, true); + this._AddBuff(buffDesc); + } + else + { + switch (existBuff.MergeType) + { + case XBuffMergeType.XBuffMergeType_Replace: + this._RemoveBuff(existBuff, true); + this._AddBuff(buffDesc); + break; + case XBuffMergeType.XBuffMergeType_ExtendTime: + XSingleton.singleton.AddGreenLog("extend buff ", buffData.BuffID.ToString(), " to ", this._entity.ID.ToString(), " at time ", (Environment.TickCount % 1000000).ToString()); + existBuff.AddBuffTime(existBuff.OriginalDuration, this); + this._UpdateBuffNotifyDoc(existBuff.UIBuff); + break; + case XBuffMergeType.XBuffMergeType_Stacking: + this._AppendBuff(existBuff); + break; + case XBuffMergeType.XBuffMergeType_Reset: + existBuff.ResetTime(this); + this._UpdateBuffNotifyDoc(existBuff.UIBuff); + break; + } + } + } + } + } + + private bool OnAddBuffEvent(XEventArgs e) + { + XBuffAddEventArgs xbuffAddEventArgs = e as XBuffAddEventArgs; + BuffDesc xBuffDesc = xbuffAddEventArgs.xBuffDesc; + this._AddBuffQueue.Add(xBuffDesc); + bool xEffectImm = xbuffAddEventArgs.xEffectImm; + if (xEffectImm) + { + this._RefreshQueueImm(); + } + return true; + } + + private bool OnRemoveBuffEvent(XEventArgs e) + { + XBuffRemoveEventArgs xbuffRemoveEventArgs = e as XBuffRemoveEventArgs; + for (int i = this._AddBuffQueue.Count - 1; i >= 0; i--) + { + bool flag = this._AddBuffQueue[i].BuffID == xbuffRemoveEventArgs.xBuffID; + if (flag) + { + this._AddBuffQueue.RemoveAt(i); + } + } + XBuff buffByID = this.GetBuffByID(xbuffRemoveEventArgs.xBuffID); + bool flag2 = buffByID == null; + bool result; + if (flag2) + { + result = true; + } + else + { + this._RemoveBuff(buffByID, false); + result = true; + } + return result; + } + + private bool OnBattleEndEvent(XEventArgs e) + { + for (int i = 0; i < this._BuffList.Count; i++) + { + bool valid = this._BuffList[i].Valid; + if (valid) + { + this._BuffList[i].OnBattleEnd(this); + } + } + return true; + } + + public override void Update(float fDeltaT) + { + for (int i = 0; i < this._BuffList.Count; i++) + { + bool valid = this._BuffList[i].Valid; + if (valid) + { + this._BuffList[i].Update(); + } + } + } + + public override void PostUpdate(float fDeltaT) + { + bool bPostUpdating = this._bPostUpdating; + if (!bPostUpdating) + { + this._bPostUpdating = true; + bool removeFlag = this._removeFlag; + if (removeFlag) + { + this._removeFlag = false; + for (int i = this._BuffList.Count - 1; i >= 0; i--) + { + XBuff xbuff = this._BuffList[i]; + bool flag = !xbuff.Valid; + if (flag) + { + this._BuffList.RemoveAt(i); + } + } + } + while (this._AddBuffQueue.Count > 0) + { + List addBuffQueue = this._AddBuffQueue; + this._AddBuffQueue = this._AddBuffQueue2; + this._AddBuffQueue2 = addBuffQueue; + for (int j = 0; j < addBuffQueue.Count; j++) + { + XBuff buffByID = this.GetBuffByID(addBuffQueue[j].BuffID); + bool flag2 = buffByID != null; + if (flag2) + { + this._MergeBuff(addBuffQueue[j], buffByID); + } + else + { + this._AddBuff(addBuffQueue[j]); + } + } + addBuffQueue.Clear(); + } + this._bPostUpdating = false; + } + } + + protected bool OnAttributeChange(XEventArgs e) + { + XAttrChangeEventArgs e2 = e as XAttrChangeEventArgs; + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool valid = xbuff.Valid; + if (valid) + { + xbuff.OnAttributeChanged(this, e2); + } + } + return true; + } + + protected bool OnQTEChange(XEventArgs e) + { + XSkillQTEEventArgs e2 = e as XSkillQTEEventArgs; + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool valid = xbuff.Valid; + if (valid) + { + xbuff.OnQTEStateChanged(this, e2); + } + } + return true; + } + + protected bool OnComboChange(XEventArgs e) + { + XOnComboChangeEventArgs xonComboChangeEventArgs = e as XOnComboChangeEventArgs; + for (int i = 0; i < this._BuffList.Count; i++) + { + XBuff xbuff = this._BuffList[i]; + bool valid = xbuff.Valid; + if (valid) + { + xbuff.OnComboChange(xonComboChangeEventArgs.ComboCount); + } + } + return true; + } + + public double ModifySkillDamage() + { + double num = 0.0; + for (int i = 0; i < this._BuffList.Count; i++) + { + num += this._BuffList[i].ModifySkillDamage(); + } + return XSingleton.singleton.Clamp(num, XBuffComponent.CAST_DAMAGE_CHANGE_LOWERBOUND, XBuffComponent.CAST_DAMAGE_CHANGE_UPPERBOUND); + } + + public double IncReceivedDamage() + { + double num = 0.0; + for (int i = 0; i < this._BuffList.Count; i++) + { + num += this._BuffList[i].IncReceivedDamage(); + } + bool flag = num > XBuffComponent.RECEIVED_DAMAGE_CHANGE_UPPERBOUND; + double result; + if (flag) + { + result = XBuffComponent.RECEIVED_DAMAGE_CHANGE_UPPERBOUND; + } + else + { + result = num; + } + return result; + } + + public double DecReceivedDamage() + { + double num = 0.0; + for (int i = 0; i < this._BuffList.Count; i++) + { + num += this._BuffList[i].DecReceivedDamage(); + } + bool flag = num < XBuffComponent.RECEIVED_DAMAGE_CHANGE_LOWERBOUND; + double result; + if (flag) + { + result = XBuffComponent.RECEIVED_DAMAGE_CHANGE_LOWERBOUND; + } + else + { + result = num; + } + return result; + } + + public double ChangeSkillDamage(uint skillID) + { + double num = 0.0; + for (int i = 0; i < this._BuffList.Count; i++) + { + num += this._BuffList[i].ChangeSkillDamage(skillID); + } + return num; + } + + public double ModifySkillCost() + { + double num = 0.0; + for (int i = 0; i < this._BuffList.Count; i++) + { + num += this._BuffList[i].ModifySkillCost(); + } + return XSingleton.singleton.Clamp(num, XBuffComponent.MP_COST_CHANGE_LOWERBOUND, XBuffComponent.MP_COST_CHANGE_UPPERBOUND); + } + + public List GetBuffList() + { + this.m_TempBuffList.Clear(); + bool syncMode = XSingleton.singleton.SyncMode; + List tempBuffList; + if (syncMode) + { + for (int i = 0; i < this._ServerBuffList.Count; i++) + { + this.m_TempBuffList.Add(this._ServerBuffList[i].buffID); + } + tempBuffList = this.m_TempBuffList; + } + else + { + for (int j = 0; j < this._BuffList.Count; j++) + { + bool valid = this._BuffList[j].Valid; + if (valid) + { + this.m_TempBuffList.Add((uint)this._BuffList[j].ID); + } + } + tempBuffList = this.m_TempBuffList; + } + return tempBuffList; + } + + public List GetUIBuffList() + { + this.m_UIBuffList.Clear(); + bool syncMode = XSingleton.singleton.SyncMode; + List uibuffList; + if (syncMode) + { + for (int i = 0; i < this._ServerBuffList.Count; i++) + { + this.m_UIBuffList.Add(this._ServerBuffList[i].UIBuff); + } + uibuffList = this.m_UIBuffList; + } + else + { + for (int j = 0; j < this._BuffList.Count; j++) + { + bool valid = this._BuffList[j].Valid; + if (valid) + { + this.m_UIBuffList.Add(this._BuffList[j].UIBuff); + } + } + uibuffList = this.m_UIBuffList; + } + return uibuffList; + } + + public void AddBuffByServer(BuffInfo data) + { + ServerBuffInfo serverBuffInfo = new ServerBuffInfo(); + bool flag = !serverBuffInfo.Set(data); + if (flag) + { + XSingleton.singleton.AddErrorLog("cant find add buff in client, while id = ", data.BuffID.ToString(), " and level = ", data.BuffLevel.ToString(), null, null); + } + else + { + this._ServerBuffList.Add(serverBuffInfo); + this._AddBuffNotifyDoc(serverBuffInfo.UIBuff); + bool flag2 = serverBuffInfo.UIBuff.buffInfo != null; + if (flag2) + { + this._PlayBuffFx((int)serverBuffInfo.buffID, (int)serverBuffInfo.buffLevel, serverBuffInfo.UIBuff.buffInfo.BuffDuration); + } + this._OnAddServerBuff(serverBuffInfo); + } + } + + private void _OnAddServerBuff(ServerBuffInfo info) + { + XBuffSpecialState.TryTransform(this._entity, (int)info.buffID, info.transformID, true); + XBuffSpecialState.TryScale(this._entity, info.UIBuff, true); + XBuffSpecialState.TryToggleTrapUI(this._entity, info.UIBuff, true); + XBuffSpecialState.TryStealth(this._entity, info.UIBuff, true); + XBuffSkillsReplace.TrySkillsReplace(this._entity, info.UIBuff, true); + } + + public void RemoveBuffByServer(BuffInfo data) + { + ServerBuffInfo serverBuffInfo = null; + for (int i = 0; i < this._ServerBuffList.Count; i++) + { + bool flag = this._ServerBuffList[i].buffID == data.BuffID && this._ServerBuffList[i].buffLevel == data.BuffLevel; + if (flag) + { + serverBuffInfo = this._ServerBuffList[i]; + this._ServerBuffList.RemoveAt(i); + break; + } + } + bool flag2 = serverBuffInfo == null; + if (!flag2) + { + this._RemoveBuff(serverBuffInfo, data); + } + } + + private void _RemoveBuff(ServerBuffInfo buff, BuffInfo data) + { + bool flag = buff == null; + if (!flag) + { + UIBuffInfo uibuff = buff.UIBuff; + bool flag2 = data != null; + if (flag2) + { + buff.UpdateFromRemoveBuff(data); + } + this._OnRemoveServerBuff(buff); + this._RemoveBuffNotifyDoc(uibuff); + this._StopBuffFx((int)buff.buffID); + } + } + + private void _OnRemoveServerBuff(ServerBuffInfo info) + { + bool flag = !this.m_bDestroying && !this.m_bLeavingScene; + if (flag) + { + XBuffSpecialState.TryTransform(this._entity, (int)info.buffID, info.transformID, false); + } + bool flag2 = !this.m_bLeavingScene; + if (flag2) + { + XBuffSpecialState.TryScale(this._entity, info.UIBuff, false); + XBuffSpecialState.TryToggleTrapUI(this._entity, info.UIBuff, false); + XBuffSpecialState.TryStealth(this._entity, info.UIBuff, false); + XBuffSkillsReplace.TrySkillsReplace(this._entity, info.UIBuff, false); + } + } + + public void UpdateBuffByServer(BuffInfo data) + { + UIBuffInfo uibuffInfo = null; + ServerBuffInfo serverBuffInfo = null; + for (int i = 0; i < this._ServerBuffList.Count; i++) + { + bool flag = this._ServerBuffList[i].buffID == data.BuffID && this._ServerBuffList[i].buffLevel == data.BuffLevel; + if (flag) + { + serverBuffInfo = this._ServerBuffList[i]; + serverBuffInfo.Set(data); + uibuffInfo = serverBuffInfo.UIBuff; + break; + } + } + bool flag2 = uibuffInfo == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("cant find update buff in client, while id = ", data.BuffID.ToString(), " and level = ", data.BuffLevel.ToString(), null, null); + } + else + { + this._UpdateBuffNotifyDoc(uibuffInfo); + this._OnUpdateServerBuff(serverBuffInfo); + } + } + + private void _OnUpdateServerBuff(ServerBuffInfo info) + { + XBuffSpecialState.TryTransform(this._entity, (int)info.buffID, info.transformID, true); + } + + public void SetServerAllBuffsInfo(AllBuffsInfo data) + { + bool flag = data == null; + if (!flag) + { + this.SetServerBuffState(data.BuffState); + this.SetServerBuffValues(data.StateParamIndex, data.StateParamValues); + } + } + + public void SetServerBuffState(uint state) + { + for (int i = 0; i < XFastEnumIntEqualityComparer.ToInt(XBuffType.XBuffType_Max); i++) + { + this._entity.Attributes.BuffState.SetBuffState((XBuffType)i, (short)(state >> i & 1u)); + } + } + + public void SetServerBuffValues(List index, List values) + { + for (int i = 0; i < XFastEnumIntEqualityComparer.ToInt(XBuffType.XBuffType_Max); i++) + { + this._entity.Attributes.BuffState.SetStateParam((XBuffType)i, 0); + } + bool flag = index.Count != values.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("data.StateParamValues.Count ({0}) != data.StateParamIndex.Count ({1})", values.Count, index.Count), null, null, null, null, null); + } + for (int j = 0; j < index.Count; j++) + { + this._entity.Attributes.BuffState.SetStateParam((XBuffType)index[j], values[j]); + } + } + + public override void OnDetachFromHost() + { + this.m_bDestroying = true; + this.ClearBuff(); + this.ClearBuffFx(); + base.OnDetachFromHost(); + } + + public void InitFromServer(List buffs, AllBuffsInfo states) + { + this.ClearBuff(); + this.ClearBuffFx(); + this.SetServerAllBuffsInfo(states); + this.AddBuffByServer(buffs); + } + + public void AddBuffByServer(List buffs) + { + bool flag = buffs == null; + if (!flag) + { + for (int i = 0; i < buffs.Count; i++) + { + this.AddBuffByServer(buffs[i]); + } + } + } + + private void _AddBuffNotifyDoc(UIBuffInfo buffInfo) + { + bool flag = buffInfo == null; + if (!flag) + { + XBuffChangeEventArgs @event = XEventPool.GetEvent(); + @event.addBuff = buffInfo; + @event.entity = base.Entity; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + XBuffChangeEventArgs event2 = XEventPool.GetEvent(); + event2.addBuff = buffInfo; + event2.entity = base.Entity; + event2.Firer = this._entity; + XSingleton.singleton.FireEvent(event2); + } + } + + private void _RemoveBuffNotifyDoc(UIBuffInfo buffInfo) + { + bool flag = buffInfo == null; + if (!flag) + { + XBuffChangeEventArgs @event = XEventPool.GetEvent(); + @event.removeBuff = buffInfo; + @event.entity = base.Entity; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + XBuffChangeEventArgs event2 = XEventPool.GetEvent(); + event2.removeBuff = buffInfo; + event2.entity = base.Entity; + event2.Firer = this._entity; + XSingleton.singleton.FireEvent(event2); + } + } + + private void _UpdateBuffNotifyDoc(UIBuffInfo buffInfo) + { + bool flag = buffInfo == null; + if (!flag) + { + XBuffChangeEventArgs @event = XEventPool.GetEvent(); + @event.updateBuff = buffInfo; + @event.entity = base.Entity; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + XBuffChangeEventArgs event2 = XEventPool.GetEvent(); + event2.updateBuff = buffInfo; + event2.entity = base.Entity; + event2.Firer = this._entity; + XSingleton.singleton.FireEvent(event2); + } + } + + private void _RefreshQueueImm() + { + this.PostUpdate(0f); + } + + public XTriggerCondition GetTriggerState(BuffTable.RowData info) + { + XTriggerCondition xtriggerCondition; + bool flag = !this.m_GlobalTriggerState.TryGetValue(info.BuffID, out xtriggerCondition); + if (flag) + { + xtriggerCondition = new XTriggerCondition(info); + this.m_GlobalTriggerState[info.BuffID] = xtriggerCondition; + } + return xtriggerCondition; + } + + public void ClearTriggerStates() + { + this.m_GlobalTriggerState.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffComponent.cs.meta new file mode 100644 index 00000000..afaaf49a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cdfee8b01a91b24ea2c3679740573bd +timeCreated: 1611403803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageDistanceScale.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageDistanceScale.cs new file mode 100644 index 00000000..97ce2e54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageDistanceScale.cs @@ -0,0 +1,70 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffDamageDistanceScale : BuffEffect + { + public override XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_TargetLifeAddAttack; + } + } + + private XBuff _buff = null; + + private XEntity _entity; + + private XPieceWiseDataMgr m_Data = new XPieceWiseDataMgr(); + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.ChangeCastDamageByDistance.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffDamageDistanceScale(buff)); + result = true; + } + return result; + } + + public XBuffDamageDistanceScale(XBuff buff) + { + this._buff = buff; + BuffTable.RowData buffInfo = buff.BuffInfo; + this.m_Data.SetRange(0.0, 0.0, 10000.0, 0.0); + this.m_Data.Init(ref buffInfo.ChangeCastDamageByDistance); + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + } + + public override void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = rawInput.SkillID == 0u; + if (!flag) + { + bool flag2 = this._entity == null || rawInput.Target == null; + if (!flag2) + { + double x = (double)Vector3.Distance(this._entity.MoveObj.Position, rawInput.Target.MoveObj.Position); + result.Value *= 1.0 + this.m_Data.GetData(x); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageDistanceScale.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageDistanceScale.cs.meta new file mode 100644 index 00000000..4dba61bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageDistanceScale.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad163b386e478aa4a905b3f1a65142a4 +timeCreated: 1611404333 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageReflection.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageReflection.cs new file mode 100644 index 00000000..f94e9fff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageReflection.cs @@ -0,0 +1,60 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffDamageReflection : BuffEffect + { + public override XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_DamageReflection; + } + } + + private float m_Ratio; + + private XBuff m_Buff; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.DamageReflection == 0f; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffDamageReflection(rowData.DamageReflection, buff)); + result = true; + } + return result; + } + + public XBuffDamageReflection(float ratio, XBuff _Buff) + { + this.m_Ratio = ratio; + this.m_Buff = _Buff; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + } + + public override void OnBuffEffect(HurtInfo rawInput, ProjectDamageResult result) + { + double num = (result.BasicDamage * result.DefOriginalRatio + result.TrueDamage) * (double)this.m_Ratio; + bool flag = num <= 0.0 || (result.Flag & XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_REFLECTION)) != 0; + if (!flag) + { + XCombat.ProjectExternalDamage(num, rawInput.Target.ID, rawInput.Caster, !this.m_Buff.BuffInfo.DontShowText, XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_REFLECTION)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageReflection.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageReflection.cs.meta new file mode 100644 index 00000000..5511ee58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffDamageReflection.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cc00c4c390121645a9c63051c77d498 +timeCreated: 1611403802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectData.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectData.cs new file mode 100644 index 00000000..dde59c49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectData.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + internal class XBuffEffectData + { + public ulong MobID = 0UL; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectData.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectData.cs.meta new file mode 100644 index 00000000..f87a5860 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62501ccd6a9c627449a83e9fcf1a0ba9 +timeCreated: 1611403840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs new file mode 100644 index 00000000..4015f34d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal enum XBuffEffectPrioriy + { + BEP_START, + BEP_Default = 0, + BEP_SpecialState_Trapped, + BEP_TriggerByHit, + BEP_TargetLifeAddAttack, + BEP_ReduceDamage, + BEP_SpecialState_Immortal, + BEP_SpecialState_Shield, + BEP_SpecialState_CantDie, + BEP_TriggerByBeHit, + BEP_DamageReflection, + BEP_TriggerByHit_Death, + BEP_Kill, + BEP_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs.meta new file mode 100644 index 00000000..3ad69e13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffEffectPrioriy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e9c647b87fb0cd4f909f0c5be3f1a83 +timeCreated: 1611403510 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffExclusive.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffExclusive.cs new file mode 100644 index 00000000..9bbe0322 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffExclusive.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal struct XBuffExclusive + { + private HashSet _ClearTypes; + + private HashSet _SingleEffects; + + public void Set(BuffTable.RowData rowData) + { + bool flag = rowData == null; + if (!flag) + { + bool flag2 = rowData.ClearTypes != null && rowData.ClearTypes.Length != 0; + if (flag2) + { + this._ClearTypes = HashPool.Get(); + for (int i = 0; i < rowData.ClearTypes.Length; i++) + { + this._ClearTypes.Add(rowData.ClearTypes[i]); + } + } + bool flag3 = rowData.BuffState != null && rowData.BuffState.Length != 0; + if (flag3) + { + this._SingleEffects = HashPool.Get(); + for (int j = 0; j < rowData.BuffState.Length; j++) + { + XBuffType xbuffType = (XBuffType)rowData.BuffState[j]; + if (xbuffType == XBuffType.XBuffType_Transform || xbuffType == XBuffType.XBuffType_Scale) + { + this._SingleEffects.Add(rowData.BuffState[j]); + } + } + } + } + } + + public bool CanAdd(byte clearType) + { + bool flag = this._ClearTypes == null; + return flag || !this._ClearTypes.Contains(clearType); + } + + public bool IsSingleEffectConflict(XBuffExclusive other) + { + return XBuffExclusive._Overlaped(this._SingleEffects, other._SingleEffects); + } + + private static bool _Overlaped(HashSet left, HashSet right) + { + bool flag = left == null || right == null || left.Count == 0 || right.Count == 0; + return !flag && left.Overlaps(right); + } + + public bool ShouldClear(byte clearType) + { + return this.CanAdd(clearType); + } + + public void Destroy() + { + bool flag = this._ClearTypes != null; + if (flag) + { + HashPool.Release(this._ClearTypes); + this._ClearTypes = null; + } + bool flag2 = this._SingleEffects != null; + if (flag2) + { + HashPool.Release(this._SingleEffects); + this._SingleEffects = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffExclusive.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffExclusive.cs.meta new file mode 100644 index 00000000..a5591f77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffExclusive.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5fba60cac730a1549b1a60332416cba9 +timeCreated: 1611403830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffKill.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffKill.cs new file mode 100644 index 00000000..39338059 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffKill.cs @@ -0,0 +1,45 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffKill : BuffEffect + { + public override XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_Kill; + } + } + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.Kill == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffKill()); + result = true; + } + return result; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + bool flag = !IsReplaced && !entity.IsDead && !entity.Buffs.bLeavingScene && !entity.Buffs.bDestroying; + if (flag) + { + XSingleton.singleton.DeathDetect(entity, null, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffKill.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffKill.cs.meta new file mode 100644 index 00000000..06caf98f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffKill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d100226e8dddf3e4da3b1e4c9e389476 +timeCreated: 1611404590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs new file mode 100644 index 00000000..83696bfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs @@ -0,0 +1,61 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffLifeAddAttack : BuffEffect + { + public override XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_TargetLifeAddAttack; + } + } + + private XBuff _buff = null; + + private XEntity _entity; + + private XPieceWiseDataMgr m_Data = new XPieceWiseDataMgr(); + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.SelfLifeAddAttack.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffLifeAddAttack(buff)); + result = true; + } + return result; + } + + public XBuffLifeAddAttack(XBuff buff) + { + this._buff = buff; + BuffTable.RowData buffInfo = buff.BuffInfo; + this.m_Data.SetRange(0.0, 0.0, 1.0, 0.0); + this.m_Data.Init(ref buffInfo.SelfLifeAddAttack); + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + } + + public override void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + double hppercent = this._entity.Attributes.HPPercent; + result.Value *= 1.0 + this.m_Data.GetData(hppercent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs.meta new file mode 100644 index 00000000..94ff7bc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeAddAttack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f44c4f60c53e28445ad2fa17266abdea +timeCreated: 1611404853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeSteal.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeSteal.cs new file mode 100644 index 00000000..a2250c2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeSteal.cs @@ -0,0 +1,93 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffLifeSteal : BuffEffect + { + private float m_Ratio; + + private float m_UpperBoundRatio; + + private double m_StealUpperBound = 0.0; + + private XBuff m_Buff; + + private XEntity m_Entity; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.LifeSteal[0] == 0f; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffLifeSteal(ref rowData.LifeSteal, buff)); + result = true; + } + return result; + } + + public XBuffLifeSteal(ref SeqRef data, XBuff _Buff) + { + this.m_Ratio = data[0]; + this.m_Buff = _Buff; + this.m_UpperBoundRatio = data[1]; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this.m_Entity = entity; + bool flag = this.m_UpperBoundRatio > 0f && entity != null && entity.Attributes != null; + if (flag) + { + this.m_StealUpperBound = entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total) * (double)this.m_UpperBoundRatio; + } + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + } + + public override void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = rawInput.SkillID == 0u; + if (!flag) + { + bool flag2 = this.m_Buff.RelevantSkills != null && this.m_Buff.RelevantSkills.Count != 0; + if (flag2) + { + bool flag3 = !this.m_Buff.RelevantSkills.Contains(rawInput.SkillID); + if (flag3) + { + return; + } + } + bool accept = result.Accept; + if (accept) + { + double num = result.Value * (double)this.m_Ratio; + bool flag4 = this.m_UpperBoundRatio > 0f; + if (flag4) + { + num = Math.Min(num, this.m_StealUpperBound); + this.m_StealUpperBound -= num; + } + bool flag5 = num > 0.0; + if (flag5) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentHP_Basic; + @event.DeltaValue = num; + @event.Firer = this.m_Entity; + @event.bShowHUD = !this.m_Buff.BuffInfo.DontShowText; + XSingleton.singleton.FireEvent(@event); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeSteal.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeSteal.cs.meta new file mode 100644 index 00000000..4b6796e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffLifeSteal.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74ff7abbea2384c49a70f493a1b725f1 +timeCreated: 1611403945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffManipulate.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffManipulate.cs new file mode 100644 index 00000000..dc3028d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffManipulate.cs @@ -0,0 +1,73 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffManipulate : BuffEffect + { + private XEntity _entity; + + private XBuff _Buff; + + private long _Token; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.Manipulate == null || rowData.Manipulate.Length == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffManipulate(buff)); + result = true; + } + return result; + } + + public XBuffManipulate(XBuff buff) + { + this._Buff = buff; + } + + private float _GetParam(int index) + { + bool flag = this._Buff.BuffInfo.Manipulate == null || this._Buff.BuffInfo.Manipulate.Length <= index; + float result; + if (flag) + { + result = 0f; + } + else + { + result = this._Buff.BuffInfo.Manipulate[index]; + } + return result; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + XManipulationData xmanipulationData = new XManipulationData(); + xmanipulationData.Degree = 360f; + xmanipulationData.Force = this._GetParam(0); + xmanipulationData.Radius = this._GetParam(1); + xmanipulationData.TargetIsOpponent = ((int)this._GetParam(2) == 0); + XManipulationOnEventArgs @event = XEventPool.GetEvent(); + @event.data = xmanipulationData; + @event.Firer = this._entity; + this._Token = @event.Token; + XSingleton.singleton.FireEvent(@event); + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + XManipulationOffEventArgs @event = XEventPool.GetEvent(); + @event.DenyToken = this._Token; + @event.Firer = entity; + XSingleton.singleton.FireEvent(@event); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffManipulate.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffManipulate.cs.meta new file mode 100644 index 00000000..fed613a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffManipulate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a59f1b4d527ad744d8e42d7e11eea379 +timeCreated: 1611404286 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffMergeType.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffMergeType.cs new file mode 100644 index 00000000..fde7b7bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffMergeType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum XBuffMergeType + { + XBuffMergeType_Replace, + XBuffMergeType_ExtendTime, + XBuffMergeType_Stacking, + XBuffMergeType_Reset + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffMergeType.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffMergeType.cs.meta new file mode 100644 index 00000000..df94abd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffMergeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6466526973bfcfb43960ec3879ab799a +timeCreated: 1611403847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs new file mode 100644 index 00000000..5425bb30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs @@ -0,0 +1,79 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffMob : BuffEffect + { + private XEntity _entity; + + private XEntity _Mob = null; + + private XBuff _Buff; + + private uint _MobTemplateID = 0u; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.MobID == 0u; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffMob(rowData.MobID, buff)); + result = true; + } + return result; + } + + public XBuffMob(uint templateID, XBuff buff) + { + this._MobTemplateID = templateID; + this._Buff = buff; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + XEntity entity2 = XSingleton.singleton.GetEntity(this._Buff.CasterID); + bool flag = XEntity.ValideEntity(entity2); + if (flag) + { + this._Mob = XSingleton.singleton.CreateEntity(this._MobTemplateID, this._entity.EngineObject.Position, this._entity.EngineObject.Rotation, true, (entity2.Attributes != null) ? entity2.Attributes.FightGroup : uint.MaxValue); + XSingleton.singleton.SetMobProperty(this._Mob, entity2, 0u); + this._Buff.EffectData.MobID = this._Mob.ID; + bool isBoss = entity2.IsBoss; + if (isBoss) + { + XSecurityAIInfo xsecurityAIInfo = XSecurityAIInfo.TryGetStatistics(entity2); + bool flag2 = xsecurityAIInfo != null; + if (flag2) + { + xsecurityAIInfo.OnExternalCallMonster(); + } + } + } + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + XSingleton.singleton.DestroyEntity(this._Mob); + this._Mob = null; + } + + public override void OnUpdate() + { + bool flag = !XEntity.ValideEntity(this._Mob); + if (flag) + { + XBuffRemoveEventArgs @event = XEventPool.GetEvent(); + @event.xBuffID = this._Buff.ID; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs.meta new file mode 100644 index 00000000..b5c54d4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffMob.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6774fd70bd206884b927aa30d706c2df +timeCreated: 1611403858 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffModifyEffect.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffModifyEffect.cs new file mode 100644 index 00000000..bf9f2bd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffModifyEffect.cs @@ -0,0 +1,180 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal struct XBuffModifyEffect + { + private double m_CostModify; + + private double m_CastDamageModify; + + private double m_IncReceivedDamageModify; + + private double m_DecReceivedDamageModify; + + private Dictionary m_ChangeSkillDamage; + + public bool TryCreate(CombatEffectHelper pEffectHelper, XBuff buff) + { + BuffTable.RowData buffInfo = pEffectHelper.BuffInfo; + bool flag = buffInfo.CostModify != 0f; + if (flag) + { + this.m_CostModify += (double)buffInfo.CostModify - 1.0; + } + double num = 0.0; + double num2 = 0.0; + pEffectHelper.GetBuffChangeDamage(out num, out num2); + num += (double)buffInfo.ChangeDamage[0]; + num2 += (double)buffInfo.ChangeDamage[1]; + bool flag2 = num != 0.0; + if (flag2) + { + this.m_CastDamageModify += num - 1.0; + } + bool flag3 = num2 != 0.0; + if (flag3) + { + bool flag4 = num2 > 1.0; + if (flag4) + { + this.m_IncReceivedDamageModify += num2 - 1.0; + } + else + { + this.m_DecReceivedDamageModify += num2 - 1.0; + } + } + bool flag5 = buffInfo.ChangeSkillDamage.Count > 0; + if (flag5) + { + bool flag6 = this.m_ChangeSkillDamage == null; + if (flag6) + { + this.m_ChangeSkillDamage = DictionaryPool.Get(); + } + for (int i = 0; i < buffInfo.ChangeSkillDamage.Count; i++) + { + uint num3 = XSingleton.singleton.XHash(buffInfo.ChangeSkillDamage[i, 0]); + double num4 = double.Parse(buffInfo.ChangeSkillDamage[i, 1]) / 100.0; + bool flag7 = this.m_ChangeSkillDamage.ContainsKey(num3); + if (flag7) + { + Dictionary changeSkillDamage = this.m_ChangeSkillDamage; + uint key = num3; + changeSkillDamage[key] += num4; + } + else + { + this.m_ChangeSkillDamage[num3] = num4; + } + } + } + bool flag8 = pEffectHelper.bHasEffect(CombatEffectType.CET_Buff_ChangeSkillDamage); + if (flag8) + { + bool flag9 = this.m_ChangeSkillDamage == null; + if (flag9) + { + this.m_ChangeSkillDamage = DictionaryPool.Get(); + } + SequenceList sequenceList = CommonObjectPool>.Get(); + pEffectHelper.GetBuffChangeSkillDamage(sequenceList); + for (int j = 0; j < sequenceList.Count; j++) + { + uint num5 = sequenceList[j, 0]; + double num6 = sequenceList[j, 1] / 100.0; + bool flag10 = this.m_ChangeSkillDamage.ContainsKey(num5); + if (flag10) + { + Dictionary changeSkillDamage = this.m_ChangeSkillDamage; + uint key = num5; + changeSkillDamage[key] += num6; + } + else + { + this.m_ChangeSkillDamage[num5] = num6; + } + } + CommonObjectPool>.Release(sequenceList); + } + return true; + } + + public void Destroy() + { + bool flag = this.m_ChangeSkillDamage != null; + if (flag) + { + DictionaryPool.Release(this.m_ChangeSkillDamage); + this.m_ChangeSkillDamage = null; + } + } + + public double ModifySkillDamage() + { + return this.m_CastDamageModify; + } + + public double IncReceivedDamage() + { + return this.m_IncReceivedDamageModify; + } + + public double DecReceivedDamage() + { + return this.m_DecReceivedDamageModify; + } + + public double ModifySkillCost() + { + return this.m_CostModify; + } + + public double ChangeSkillDamage(uint skillID) + { + double num = 0; + bool flag = this.m_ChangeSkillDamage != null && this.m_ChangeSkillDamage.TryGetValue(skillID, out num); + double result; + if (flag) + { + result = num; + } + else + { + result = 0.0; + } + return result; + } + + private void _RefreshSecuriy(XBuff buff) + { + bool flag = buff.BuffComponent == null; + if (!flag) + { + bool flag2 = this.m_DecReceivedDamageModify == 0.0; + if (!flag2) + { + XSecurityBuffInfo xsecurityBuffInfo = XSecurityBuffInfo.TryGetStatistics(buff.BuffComponent.Entity); + bool flag3 = xsecurityBuffInfo != null; + if (flag3) + { + xsecurityBuffInfo.OnReduceDamage(buff, -this.m_DecReceivedDamageModify); + } + } + } + } + + public void OnRemove(XBuff buff) + { + this._RefreshSecuriy(buff); + } + + public void OnBattleEnd(XBuff buff) + { + this._RefreshSecuriy(buff); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffModifyEffect.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffModifyEffect.cs.meta new file mode 100644 index 00000000..f1bf2215 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffModifyEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e111b53f9580491488fef229d8d645eb +timeCreated: 1611404700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceDamage.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceDamage.cs new file mode 100644 index 00000000..e58fb48d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceDamage.cs @@ -0,0 +1,79 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffReduceDamage : BuffEffect + { + public override XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_ReduceDamage; + } + } + + private int _buffID; + + private XPieceWiseDataMgr m_Data = new XPieceWiseDataMgr(); + + private XEntity _entity; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.DamageReduce.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffReduceDamage(ref rowData.DamageReduce, rowData.BuffID)); + result = true; + } + return result; + } + + public XBuffReduceDamage(ref SeqListRef reducePecents, int buffID) + { + this._buffID = buffID; + this.m_Data.SetRange(0.0, 1.0, 1.0, 0.0); + this.m_Data.Init(ref reducePecents); + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + } + + public override void OnAttributeChanged(XAttrChangeEventArgs e) + { + bool flag = e.AttrKey == XAttributeDefine.XAttr_CurrentHP_Basic; + if (flag) + { + bool flag2 = this.m_Data.GetData(this._entity.Attributes.HPPercent) < 1E-06; + if (flag2) + { + XBuffRemoveEventArgs @event = XEventPool.GetEvent(); + @event.xBuffID = this._buffID; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + XSingleton.singleton.AddGreenLog("delete reduce damage buff", null, null, null, null, null); + } + } + } + + public override void OnBuffEffect(HurtInfo rawInput, ProjectDamageResult result) + { + int num = (int)result.Value; + double hppercent = rawInput.Target.Attributes.HPPercent; + result.Value *= 1.0 - this.m_Data.GetData(hppercent); + int num2 = (int)result.Value; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceDamage.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceDamage.cs.meta new file mode 100644 index 00000000..a5eae8fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceDamage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49f15558983530d4a92dfd70a1c7ac36 +timeCreated: 1611403663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs new file mode 100644 index 00000000..194f058f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs @@ -0,0 +1,183 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffReduceSkillCD : BuffEffect + { + private XBuff _buff = null; + + private SequenceList _AllList = null; + + public static bool TryCreate(CombatEffectHelper pEffectHelper, XBuff buff) + { + bool flag = pEffectHelper.BuffInfo.ReduceSkillCD.Count == 0 && !pEffectHelper.bHasEffect(CombatEffectType.CET_Buff_ReduceCD); + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffReduceSkillCD(buff)); + result = true; + } + return result; + } + + public XBuffReduceSkillCD(XBuff buff) + { + this._buff = buff; + } + + private static void _SetSequenceList(SequenceList _AllList, CombatEffectHelper pEffectHelper) + { + _AllList.Reset(3); + bool flag = pEffectHelper.bHasEffect(CombatEffectType.CET_Buff_ReduceCD); + if (flag) + { + pEffectHelper.GetBuffReduceSkillCD(_AllList); + } + SeqListRef reduceSkillCD = pEffectHelper.BuffInfo.ReduceSkillCD; + for (int i = 0; i < reduceSkillCD.Count; i++) + { + _AllList.Append(new uint[] + { + XSingleton.singleton.XHash(reduceSkillCD[i, 0]), + uint.Parse(reduceSkillCD[i, 1]), + string.IsNullOrEmpty(reduceSkillCD[i, 2]) ? 0u : uint.Parse(reduceSkillCD[i, 2]) + }); + } + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + bool isDummy = entity.IsDummy; + if (!isDummy) + { + this._AllList = CommonObjectPool>.Get(); + XBuffReduceSkillCD._SetSequenceList(this._AllList, pEffectHelper); + XBuffReduceSkillCD.DoReduce(this._AllList, entity); + } + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + bool isDummy = entity.IsDummy; + if (!isDummy) + { + XBuffReduceSkillCD.UnDo(this._AllList, entity); + CommonObjectPool>.Release(this._AllList); + } + } + + public static void DoReduce(SequenceList datas, XEntity entity) + { + bool flag = entity == null; + if (!flag) + { + XSkillMgr skillMgr = entity.SkillMgr; + bool flag2 = skillMgr == null; + if (!flag2) + { + for (int i = 0; i < datas.Count; i++) + { + uint id = datas[i, 0]; + switch (datas[i, 2]) + { + case 0u: + { + float delta = datas[i, 1] * 0.001f; + skillMgr.Accelerate(id, delta, false); + break; + } + case 1u: + { + float delta2 = datas[i, 1] * 0.01f; + skillMgr.Accelerate(id, delta2, true); + break; + } + case 2u: + { + float delta3 = datas[i, 1] * 0.01f; + skillMgr.AccelerateStaticCD(id, delta3); + break; + } + } + } + } + } + } + + public static void UnDo(SequenceList datas, XEntity entity) + { + bool flag = entity == null; + if (!flag) + { + XSkillMgr skillMgr = entity.SkillMgr; + bool flag2 = skillMgr == null; + if (!flag2) + { + for (int i = 0; i < datas.Count; i++) + { + uint id = datas[i, 0]; + uint num = datas[i, 2]; + uint num2 = num; + if (num2 == 2u) + { + skillMgr.ResetStaticCD(id); + } + } + } + } + } + + public static void DoReduce(int buffID, int buffLevel, XEntity entity) + { + bool flag = entity == null; + if (!flag) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(buffID, buffLevel); + bool flag2 = buffData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Format("DoReduce Buff data not found: [{0} {1}]", buffID, buffLevel), null, null, null, null, null); + } + else + { + CombatEffectHelper data = XDataPool.GetData(); + data.Set(buffData, entity); + SequenceList sequenceList = CommonObjectPool>.Get(); + XBuffReduceSkillCD._SetSequenceList(sequenceList, data); + XBuffReduceSkillCD.DoReduce(sequenceList, entity); + CommonObjectPool>.Release(sequenceList); + data.Recycle(); + } + } + } + + public static void UnDo(int buffID, int buffLevel, XEntity entity) + { + bool flag = entity == null; + if (!flag) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(buffID, buffLevel); + bool flag2 = buffData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Format("UnDoReduce Buff data not found: [{0} {1}]", buffID, buffLevel), null, null, null, null, null); + } + else + { + CombatEffectHelper data = XDataPool.GetData(); + data.Set(buffData, entity); + SequenceList sequenceList = CommonObjectPool>.Get(); + XBuffReduceSkillCD._SetSequenceList(sequenceList, data); + XBuffReduceSkillCD.UnDo(sequenceList, entity); + CommonObjectPool>.Release(sequenceList); + data.Recycle(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs.meta new file mode 100644 index 00000000..6fe0f39e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffReduceSkillCD.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1070ba1c975c14479a038c72edfaf4f +timeCreated: 1611404252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffRegenerate.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffRegenerate.cs new file mode 100644 index 00000000..50816624 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffRegenerate.cs @@ -0,0 +1,258 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffRegenerate : BuffEffect + { + private XBuff _buff = null; + + private XBuffComponent _component = null; + + private uint _TimeToken = 0u; + + private List _Dots = null; + + private float _StartTime; + + private float _NextTime; + + private XTimerMgr.AccurateElapsedEventHandler _onTimeCb = null; + + public static bool TryCreate(CombatEffectHelper pEffectHelper, XBuff buff) + { + bool flag = pEffectHelper.BuffInfo.BuffDOT.Count == 0 && !pEffectHelper.bHasEffect(CombatEffectType.CET_Buff_DOTorHOT); + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffRegenerate(buff)); + result = true; + } + return result; + } + + public XBuffRegenerate(XBuff buff) + { + this._buff = buff; + this._onTimeCb = new XTimerMgr.AccurateElapsedEventHandler(this.OnTimer); + } + + private void ConvertSpecialBuff(DotTimeInfo info) + { + bool flag = info.attrID == XAttributeDefine.XAttr_MaxHP_Percent; + if (flag) + { + info.attrID = XAttributeDefine.XAttr_CurrentHP_Basic; + info.attrValue *= this._component.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total) / 100.0; + } + } + + private double _GetCasterAttr(XEntity caster, int attrID, int attrValue) + { + bool flag = caster != null && !caster.Deprecated; + double result; + if (flag) + { + result = caster.Attributes.GetAttr((XAttributeDefine)attrID) * (double)attrValue / 100.0; + } + else + { + result = 0.0; + } + return result; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + bool isDummy = entity.IsDummy; + if (!isDummy) + { + this._NextTime = float.MaxValue; + this._StartTime = Time.time; + this._component = entity.Buffs; + XEntity xentity = null; + SequenceList sequenceList = null; + SequenceList sequenceList2 = null; + bool flag = pEffectHelper.bHasEffect(CombatEffectType.CET_Buff_DOTorHOT); + ISeqListRef seqListRef; + ISeqListRef seqListRef2; + if (flag) + { + sequenceList = CommonObjectPool>.Get(); + sequenceList2 = CommonObjectPool>.Get(); + sequenceList.Reset(3); + sequenceList2.Reset(2); + sequenceList.Append(this._buff.BuffInfo.BuffDOT, 3); + sequenceList2.Append(this._buff.BuffInfo.BuffDOTValueFromCaster, 2); + bool buffRegenerate = pEffectHelper.GetBuffRegenerate(sequenceList, sequenceList2); + if (buffRegenerate) + { + seqListRef = sequenceList; + seqListRef2 = sequenceList2; + } + else + { + XSingleton.singleton.AddErrorLog("Data error when get dothot for buff ", this._buff.BuffInfo.BuffID.ToString(), null, null, null, null); + seqListRef = this._buff.BuffInfo.BuffDOT; + seqListRef2 = this._buff.BuffInfo.BuffDOTValueFromCaster; + CommonObjectPool>.Release(sequenceList2); + CommonObjectPool>.Release(sequenceList); + sequenceList2 = null; + sequenceList = null; + } + } + else + { + seqListRef = this._buff.BuffInfo.BuffDOT; + seqListRef2 = this._buff.BuffInfo.BuffDOTValueFromCaster; + } + int count = seqListRef.Count; + bool flag2 = seqListRef2.Count == count; + if (flag2) + { + xentity = XSingleton.singleton.GetEntity(this._buff.CasterID); + bool flag3 = sequenceList != null; + if (flag3) + { + for (int i = 0; i < count; i++) + { + bool flag4 = sequenceList2[i, 0] != 0; + if (flag4) + { + sequenceList[i, 1] = (float)this._GetCasterAttr(xentity, sequenceList2[i, 0], sequenceList2[i, 1]); + } + } + } + } + bool flag5 = sequenceList != null; + if (flag5) + { + pEffectHelper.Merge(sequenceList, 1); + count = seqListRef.Count; + } + this._Dots = new List(); + for (int j = 0; j < count; j++) + { + DotTimeInfo dotTimeInfo = new DotTimeInfo(); + dotTimeInfo.attrID = (XAttributeDefine)seqListRef[j, 0]; + dotTimeInfo.attrValue = (double)seqListRef[j, 1]; + dotTimeInfo.interval = Math.Max(XSingleton.singleton.BuffMinRegenerateInterval * 1000f, seqListRef[j, 2]); + dotTimeInfo.tickCount = 0; + dotTimeInfo.totalCount = (int)(this._buff.BuffInfo.BuffDuration * 1000f / seqListRef[j, 2]); + dotTimeInfo.timeleft = dotTimeInfo.interval; + bool flag6 = xentity != null && sequenceList == null; + if (flag6) + { + bool flag7 = seqListRef2[j, 0] != 0; + if (flag7) + { + dotTimeInfo.attrValue = this._GetCasterAttr(xentity, seqListRef2[j, 0], seqListRef2[j, 1]); + } + } + this.ConvertSpecialBuff(dotTimeInfo); + this._Dots.Add(dotTimeInfo); + this._NextTime = Math.Min(dotTimeInfo.timeleft, this._NextTime); + } + bool flag8 = sequenceList2 != null; + if (flag8) + { + CommonObjectPool>.Release(sequenceList2); + } + bool flag9 = sequenceList != null; + if (flag9) + { + CommonObjectPool>.Release(sequenceList); + } + this._TimeToken = XSingleton.singleton.SetTimerAccurate(this._NextTime * 0.001f, this._onTimeCb, null); + } + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + bool isDummy = entity.IsDummy; + if (!isDummy) + { + XSingleton.singleton.KillTimer(this._TimeToken); + bool flag = entity.IsDead || entity.Deprecated; + if (!flag) + { + bool flag2 = !IsReplaced; + if (flag2) + { + float time = Time.time; + for (int i = 0; i < this._Dots.Count; i++) + { + DotTimeInfo dotTimeInfo = this._Dots[i]; + int num = Mathf.Min((int)((time - this._StartTime) * 1000f / dotTimeInfo.interval), dotTimeInfo.totalCount); + for (int j = dotTimeInfo.tickCount; j < num; j++) + { + bool flag3 = dotTimeInfo.attrID == XAttributeDefine.XAttr_CurrentHP_Basic && dotTimeInfo.attrValue < 0.0; + if (flag3) + { + XCombat.ProjectExternalDamage(-dotTimeInfo.attrValue, this._buff.CasterID, this._component.Entity, !this._buff.BuffInfo.DontShowText, 0); + } + else + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = dotTimeInfo.attrID; + @event.DeltaValue = dotTimeInfo.attrValue; + @event.CasterID = this._buff.CasterID; + @event.bShowHUD = !this._buff.BuffInfo.DontShowText; + @event.Firer = this._component.Entity; + XSingleton.singleton.FireEvent(@event); + } + } + } + } + } + } + } + + public void OnTimer(object o, float delay) + { + float num = float.MaxValue; + for (int i = 0; i < this._Dots.Count; i++) + { + DotTimeInfo dotTimeInfo = this._Dots[i]; + dotTimeInfo.timeleft -= this._NextTime + delay * 1000f; + while (dotTimeInfo.tickCount <= dotTimeInfo.totalCount && dotTimeInfo.timeleft <= 0f) + { + dotTimeInfo.tickCount++; + dotTimeInfo.timeleft += dotTimeInfo.interval; + bool flag = dotTimeInfo.attrID == XAttributeDefine.XAttr_CurrentHP_Basic && dotTimeInfo.attrValue < 0.0; + if (flag) + { + XCombat.ProjectExternalDamage(-dotTimeInfo.attrValue, this._buff.CasterID, this._component.Entity, !this._buff.BuffInfo.DontShowText, 0); + } + else + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = dotTimeInfo.attrID; + @event.DeltaValue = dotTimeInfo.attrValue; + @event.CasterID = this._buff.CasterID; + @event.bShowHUD = !this._buff.BuffInfo.DontShowText; + @event.Firer = this._component.Entity; + XSingleton.singleton.FireEvent(@event); + } + } + bool flag2 = dotTimeInfo.timeleft > 0f; + if (flag2) + { + num = Math.Min(num, dotTimeInfo.timeleft); + } + } + bool flag3 = base.bValid && num != float.MaxValue && num > 0f; + if (flag3) + { + this._NextTime = num; + this._TimeToken = XSingleton.singleton.SetTimerAccurate(this._NextTime * 0.001f, this._onTimeCb, o); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffRegenerate.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffRegenerate.cs.meta new file mode 100644 index 00000000..a4f64b98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffRegenerate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 690a6b97277f1b64ca5e532f0c46e825 +timeCreated: 1611403884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffRemoveEventArgs.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffRemoveEventArgs.cs new file mode 100644 index 00000000..1212e405 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffRemoveEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XBuffRemoveEventArgs : XEventArgs + { + public int xBuffID; + + public XBuffRemoveEventArgs() + { + this._eDefine = XEventDefine.XEvent_BuffRemove; + this.xBuffID = 0; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffRemoveEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffRemoveEventArgs.cs.meta new file mode 100644 index 00000000..38c3e384 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffRemoveEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b04fb6c1739d354888c7c41ec24cf3c +timeCreated: 1611404094 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffSkillsReplace.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffSkillsReplace.cs new file mode 100644 index 00000000..19f7caf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffSkillsReplace.cs @@ -0,0 +1,84 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffSkillsReplace : BuffEffect + { + private XBuff m_Buff; + + private XEntity m_Entity; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.SkillsReplace.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffSkillsReplace(buff)); + result = true; + } + return result; + } + + public XBuffSkillsReplace(XBuff _Buff) + { + this.m_Buff = _Buff; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this.m_Entity = entity; + XBuffSkillsReplace.DoAdd(entity, ref this.m_Buff.BuffInfo.SkillsReplace); + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + XBuffSkillsReplace.DoRemove(entity, ref this.m_Buff.BuffInfo.SkillsReplace); + } + + public static void TrySkillsReplace(XEntity entity, UIBuffInfo uibuffInfo, bool bOpen) + { + bool flag = uibuffInfo == null || uibuffInfo.buffInfo == null || uibuffInfo.buffInfo.SkillsReplace.Count == 0; + if (!flag) + { + if (bOpen) + { + XBuffSkillsReplace.DoAdd(entity, ref uibuffInfo.buffInfo.SkillsReplace); + } + else + { + XBuffSkillsReplace.DoRemove(entity, ref uibuffInfo.buffInfo.SkillsReplace); + } + } + } + + public static void DoAdd(XEntity entity, ref SeqListRef list) + { + bool flag = entity == null || entity.Skill == null; + if (!flag) + { + for (int i = 0; i < list.Count; i++) + { + entity.Skill.SetSkillReplace(XSingleton.singleton.XHash(list[i, 0]), XSingleton.singleton.XHash(list[i, 1])); + } + } + } + + public static void DoRemove(XEntity entity, ref SeqListRef list) + { + bool flag = entity == null || entity.Skill == null; + if (!flag) + { + for (int i = 0; i < list.Count; i++) + { + entity.Skill.SetSkillReplace(XSingleton.singleton.XHash(list[i, 0]), 0u); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffSkillsReplace.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffSkillsReplace.cs.meta new file mode 100644 index 00000000..76a97cfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffSkillsReplace.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68fe043121576fe45aeb65eebfa13d6c +timeCreated: 1611403884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffSpecialState.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffSpecialState.cs new file mode 100644 index 00000000..67342c26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffSpecialState.cs @@ -0,0 +1,516 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffSpecialState : BuffEffect + { + public override XBuffEffectPrioriy Priority + { + get + { + switch (this._buffType) + { + case XBuffType.XBuffType_Immortal: + return XBuffEffectPrioriy.BEP_SpecialState_Immortal; + case XBuffType.XBuffType_CantDie: + return XBuffEffectPrioriy.BEP_SpecialState_CantDie; + case XBuffType.XBuffType_Shield: + return XBuffEffectPrioriy.BEP_SpecialState_Shield; + case XBuffType.XBuffType_Trapped: + return XBuffEffectPrioriy.BEP_SpecialState_Trapped; + } + return XBuffEffectPrioriy.BEP_START; + } + } + + private XBuffType _buffType = XBuffType.XBuffType_Max; + + private XBuff _buff = null; + + private long _token; + + private static Dictionary _buffHandler = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private delegate void SpecialBuffHandler(XBuffSpecialState buffEffect, HurtInfo rawInput, ProjectDamageResult result); + + public enum SpecialStateResult + { + SSR_Success, + SSR_Error, + SSR_NoEffect + } + + static XBuffSpecialState() + { + XBuffSpecialState._buffHandler[XBuffType.XBuffType_Bati] = new XBuffSpecialState.SpecialBuffHandler(XBuffSpecialState.OnBati); + XBuffSpecialState._buffHandler[XBuffType.XBuffType_Immortal] = new XBuffSpecialState.SpecialBuffHandler(XBuffSpecialState.OnImmortal); + XBuffSpecialState._buffHandler[XBuffType.XBuffType_CantDie] = new XBuffSpecialState.SpecialBuffHandler(XBuffSpecialState.OnCantDie); + XBuffSpecialState._buffHandler[XBuffType.XBuffType_Shield] = new XBuffSpecialState.SpecialBuffHandler(XBuffSpecialState.OnShield); + XBuffSpecialState._buffHandler[XBuffType.XBuffType_Trapped] = new XBuffSpecialState.SpecialBuffHandler(XBuffSpecialState.OnTrapped); + } + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.BuffState == null || rowData.BuffState.Length == 0; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < rowData.BuffState.Length; i++) + { + buff.AddEffect(new XBuffSpecialState(buff, (XBuffType)rowData.BuffState[i])); + } + result = true; + } + return result; + } + + public XBuffSpecialState(XBuff buff, XBuffType state) + { + this._buffType = state; + this._buff = buff; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + bool isDummy = entity.IsDummy; + if (!isDummy) + { + XBuffType buffType = this._buffType; + if (buffType != XBuffType.XBuffType_Transform && buffType != XBuffType.XBuffType_Scale) + { + entity.Buffs.IncBuffState(this._buffType, this._buff.BuffInfo.StateParam); + } + else + { + entity.Buffs.IncBuffState(this._buffType, this._buff.ID); + } + XBuffType buffType2 = this._buffType; + if (buffType2 != XBuffType.XBuffType_Freeze) + { + switch (buffType2) + { + case XBuffType.XBuffType_Trapped: + XBuffSpecialState.TryToggleTrapUI(entity, this._buff.UIBuff, true); + break; + case XBuffType.XBuffType_Silencing: + case XBuffType.XBuffType_Puzzled: + break; + case XBuffType.XBuffType_Transform: + { + bool flag = XBuffSpecialState.TryTransform(entity, this._buff.ID, this._buff.BuffInfo.StateParam, true) == XBuffSpecialState.SpecialStateResult.SSR_Success; + if (flag) + { + entity.Buffs.MakeSingleEffect(this._buff); + } + break; + } + case XBuffType.XBuffType_Stealth: + XBuffSpecialState.TryStealth(entity, this._buff.UIBuff, true); + break; + default: + if (buffType2 == XBuffType.XBuffType_Scale) + { + bool flag2 = XBuffSpecialState.TryScale(entity, this._buff.UIBuff, true) == XBuffSpecialState.SpecialStateResult.SSR_Success; + if (flag2) + { + entity.Buffs.MakeSingleEffect(this._buff); + } + } + break; + } + } + else + { + XHitData xhitData = new XHitData(); + xhitData.State = XBeHitState.Hit_Freezed; + xhitData.FreezeDuration = this._buff.Duration; + xhitData.FreezePresent = false; + XFreezeEventArgs @event = XEventPool.GetEvent(); + @event.HitData = xhitData; + @event.Dir = entity.EngineObject.Forward; + @event.Firer = entity; + this._token = XSingleton.singleton.UniqueToken; + @event.Token = this._token; + XSingleton.singleton.FireEvent(@event); + } + } + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + bool isDummy = entity.IsDummy; + if (!isDummy) + { + XBuffType buffType = this._buffType; + if (buffType <= XBuffType.XBuffType_Freeze) + { + if (buffType != XBuffType.XBuffType_Immortal) + { + if (buffType == XBuffType.XBuffType_Freeze) + { + bool flag = !IsReplaced; + if (flag) + { + XEntity entity2 = XSingleton.singleton.GetEntity(this._buff.CasterID); + bool flag2 = entity2 != null && !entity2.Deprecated; + if (flag2) + { + XSecurityBuffInfo xsecurityBuffInfo = XSecurityBuffInfo.TryGetStatistics(entity2); + bool flag3 = xsecurityBuffInfo != null; + if (flag3) + { + xsecurityBuffInfo.OnFreeze(this._buff); + } + } + bool flag4 = entity.Machine.ActionToken == this._token; + if (flag4) + { + entity.Machine.ForceToDefaultState(false); + } + } + } + } + else + { + bool flag5 = !IsReplaced; + if (flag5) + { + XSecurityBuffInfo xsecurityBuffInfo2 = XSecurityBuffInfo.TryGetStatistics(entity); + bool flag6 = xsecurityBuffInfo2 != null; + if (flag6) + { + xsecurityBuffInfo2.OnImmortal(this._buff); + } + } + } + } + else + { + switch (buffType) + { + case XBuffType.XBuffType_Trapped: + { + bool flag7 = !IsReplaced; + if (flag7) + { + XBuffSpecialState.TryToggleTrapUI(entity, this._buff.UIBuff, false); + } + break; + } + case XBuffType.XBuffType_Silencing: + case XBuffType.XBuffType_Puzzled: + break; + case XBuffType.XBuffType_Transform: + { + bool flag8 = !IsReplaced; + if (flag8) + { + bool flag9 = this._buff.BuffInfo.StateParam > 0 || !entity.IsDead; + if (flag9) + { + XBuffSpecialState.TryTransform(entity, this._buff.ID, this._buff.BuffInfo.StateParam, false); + } + } + break; + } + case XBuffType.XBuffType_Stealth: + XBuffSpecialState.TryStealth(entity, this._buff.UIBuff, false); + break; + default: + if (buffType == XBuffType.XBuffType_Scale) + { + bool flag10 = !IsReplaced; + if (flag10) + { + XBuffSpecialState.TryScale(entity, this._buff.UIBuff, false); + } + } + break; + } + } + bool flag11 = this._buffType == XBuffType.XBuffType_Transform; + if (flag11) + { + entity.Buffs.DecBuffState(this._buffType, this._buff.ID); + } + else + { + entity.Buffs.DecBuffState(this._buffType, this._buff.BuffInfo.StateParam); + } + } + } + + public override void OnBattleEnd(XEntity entity) + { + base.OnBattleEnd(entity); + bool isDummy = entity.IsDummy; + if (!isDummy) + { + XBuffType buffType = this._buffType; + if (buffType != XBuffType.XBuffType_Immortal) + { + if (buffType == XBuffType.XBuffType_Freeze) + { + XEntity entity2 = XSingleton.singleton.GetEntity(this._buff.CasterID); + bool flag = entity2 != null && !entity2.Deprecated; + if (flag) + { + XSecurityBuffInfo xsecurityBuffInfo = XSecurityBuffInfo.TryGetStatistics(entity2); + bool flag2 = xsecurityBuffInfo != null; + if (flag2) + { + xsecurityBuffInfo.OnFreeze(this._buff); + } + } + } + } + else + { + XSecurityBuffInfo xsecurityBuffInfo2 = XSecurityBuffInfo.TryGetStatistics(entity); + bool flag3 = xsecurityBuffInfo2 != null; + if (flag3) + { + xsecurityBuffInfo2.OnImmortal(this._buff); + } + } + } + } + + public override void OnBuffEffect(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = XBuffSpecialState._buffHandler.ContainsKey(this._buffType); + if (flag) + { + XBuffSpecialState._buffHandler[this._buffType](this, rawInput, result); + } + } + + private static void OnBati(XBuffSpecialState buffEffect, HurtInfo rawInput, ProjectDamageResult result) + { + result.SetResult(ProjectResultType.PJRES_BATI); + } + + private static void OnImmortal(XBuffSpecialState buffEffect, HurtInfo rawInput, ProjectDamageResult result) + { + result.SetResult(ProjectResultType.PJRES_IMMORTAL); + result.Value = 0.0; + } + + private static void OnCantDie(XBuffSpecialState buffEffect, HurtInfo rawInput, ProjectDamageResult result) + { + result.Value = -XBuffSpecialState.GetCantDieDamage(-result.Value, rawInput.Target.Attributes); + } + + private static void OnShield(XBuffSpecialState buffEffect, HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = result.Value > 0.0; + if (flag) + { + double absorbDamage = -buffEffect._buff.ChangeBuffHP(-result.Value); + result.AbsorbDamage = absorbDamage; + } + } + + private static void OnTrapped(XBuffSpecialState buffEffect, HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = result.Value > 0.0; + if (flag) + { + bool flag2 = rawInput.Caster != null && rawInput.Caster.Attributes != null; + if (flag2) + { + bool flag3 = !XFightGroupDocument.IsOpponent(rawInput.Target.Attributes.FightGroup, rawInput.Caster.Attributes.FightGroup); + if (flag3) + { + double num = -buffEffect._buff.ChangeBuffHP(-result.Value); + result.Value = 0.0; + } + } + } + } + + public static double GetCantDieDamage(double originalDeltaValue, XAttributes attributes) + { + double attr = attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag = attr + originalDeltaValue <= 0.0; + double result; + if (flag) + { + result = Math.Min(-(attr - 1.0), 0.0); + } + else + { + result = originalDeltaValue; + } + return result; + } + + public static double GetActualChangeAttr(XAttributeDefine attr, double deltaValue, XEntity entity, bool bIgnoreImmortal = false, bool bForceCantDie = false) + { + bool flag = attr == XAttributeDefine.XAttr_CurrentHP_Basic && deltaValue < 0.0; + double result; + if (flag) + { + XAttributes attributes = entity.Attributes; + bool flag2 = !bIgnoreImmortal && attributes.BuffState.IsBuffStateOn(XBuffType.XBuffType_Immortal); + if (flag2) + { + result = 0.0; + } + else + { + bool flag3 = attributes.BuffState.IsBuffStateOn(XBuffType.XBuffType_CantDie) || bForceCantDie; + if (flag3) + { + result = XBuffSpecialState.GetCantDieDamage(deltaValue, attributes); + } + else + { + result = deltaValue; + } + } + } + else + { + result = deltaValue; + } + return result; + } + + public static XBuffSpecialState.SpecialStateResult TryTransform(XEntity entity, int buffID, int transformID, bool bTransform) + { + bool flag = entity == null || transformID == 0 || entity.Attributes == null; + XBuffSpecialState.SpecialStateResult result; + if (flag) + { + result = XBuffSpecialState.SpecialStateResult.SSR_Error; + } + else + { + bool flag2 = entity.Attributes.BuffState.GetStateParam(XBuffType.XBuffType_Transform) != buffID; + if (flag2) + { + result = XBuffSpecialState.SpecialStateResult.SSR_NoEffect; + } + else + { + if (bTransform) + { + entity.OnTransform((uint)Math.Abs(transformID)); + } + else + { + entity.OnTransform(0u); + } + bool flag3 = bTransform && entity.IsPlayer && XBuffComponent.TransformBuffsChangeOutlook.Contains(buffID); + if (flag3) + { + XTransformDocument.TryReqLeftTime(); + } + result = XBuffSpecialState.SpecialStateResult.SSR_Success; + } + } + return result; + } + + public static XBuffSpecialState.SpecialStateResult TryScale(XEntity entity, UIBuffInfo buff, bool bScale) + { + bool flag = entity == null || buff == null || entity.Attributes == null; + XBuffSpecialState.SpecialStateResult result; + if (flag) + { + result = XBuffSpecialState.SpecialStateResult.SSR_Error; + } + else + { + bool flag2 = (long)entity.Attributes.BuffState.GetStateParam(XBuffType.XBuffType_Scale) != (long)((ulong)buff.buffID); + if (flag2) + { + result = XBuffSpecialState.SpecialStateResult.SSR_NoEffect; + } + else + { + if (bScale) + { + entity.OnScale((uint)buff.buffInfo.StateParam); + } + else + { + entity.OnScale(0u); + } + bool flag3 = bScale && entity.IsPlayer && XBuffComponent.TransformBuffsChangeOutlook.Contains((int)buff.buffID); + if (flag3) + { + XTransformDocument.TryReqLeftTime(); + } + result = XBuffSpecialState.SpecialStateResult.SSR_Success; + } + } + return result; + } + + public static void TryToggleTrapUI(XEntity entity, UIBuffInfo buff, bool bOpen) + { + bool flag = entity == null || entity.Buffs == null || buff == null || buff.buffInfo == null; + if (!flag) + { + bool flag2 = buff.buffInfo.BuffState != null && entity.Buffs.IsBuffStateOn(XBuffType.XBuffType_Trapped); + if (flag2) + { + for (int i = 0; i < buff.buffInfo.BuffState.Length; i++) + { + bool flag3 = buff.buffInfo.BuffState[i] == 6; + if (flag3) + { + bool flag4 = entity.BillBoard != null; + if (flag4) + { + entity.BillBoard.SetFreezeBuffState(bOpen ? buff : null); + } + break; + } + } + } + } + } + + public static void TryStealth(XEntity entity, UIBuffInfo buff, bool bOpen) + { + bool flag = entity == null || entity.Buffs == null || buff == null || buff.buffInfo == null; + if (!flag) + { + bool flag2 = buff.buffInfo.BuffState != null && entity.Buffs.GetBuffStateCounter(XBuffType.XBuffType_Stealth) == 1; + if (flag2) + { + for (int i = 0; i < buff.buffInfo.BuffState.Length; i++) + { + bool flag3 = buff.buffInfo.BuffState[i] == 10; + if (flag3) + { + bool flag4 = XSingleton.singleton.IsAlly(entity); + if (flag4) + { + entity.OnFade(!bOpen, 0.5f, true, BillBoardHideType.Stealth); + } + else + { + entity.OnFade(!bOpen, 0.5f, false, BillBoardHideType.Stealth); + if (bOpen) + { + entity.Buffs.ClearBuffFx(); + } + } + break; + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffSpecialState.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffSpecialState.cs.meta new file mode 100644 index 00000000..2c7d670d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffSpecialState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e7063f8863eb9743853da5dfff34dac +timeCreated: 1611403904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffStateInfo.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffStateInfo.cs new file mode 100644 index 00000000..13e522a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffStateInfo.cs @@ -0,0 +1,103 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffStateInfo + { + protected short[] _BuffState; + + protected int[] _StateParam; + + public XBuffStateInfo() + { + this._BuffState = new short[XFastEnumIntEqualityComparer.ToInt(XBuffType.XBuffType_Max)]; + this._StateParam = new int[XFastEnumIntEqualityComparer.ToInt(XBuffType.XBuffType_Max)]; + } + + public void CheckBuffState() + { + for (int i = 0; i < this._BuffState.Length; i++) + { + bool flag = this._BuffState[i] != 0; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("Clear buff, state {0} is {1}", i, this._BuffState[i]), null, null, null, null, null); + } + } + } + + public void Reset() + { + for (int i = 0; i < this._BuffState.Length; i++) + { + this._BuffState[i] = 0; + this._StateParam[i] = 0; + } + } + + public void SetBuffState(XBuffType state, short count) + { + this._BuffState[XFastEnumIntEqualityComparer.ToInt(state)] = count; + } + + public void IncBuffState(XBuffType state, int param = 0) + { + short[] buffState = this._BuffState; + int num = XFastEnumIntEqualityComparer.ToInt(state); + buffState[num] += 1; + if (state != XBuffType.XBuffType_Transform && state != XBuffType.XBuffType_Scale) + { + this._StateParam[XFastEnumIntEqualityComparer.ToInt(state)] += param; + } + else + { + this._StateParam[XFastEnumIntEqualityComparer.ToInt(state)] = param; + } + } + + public void DecBuffState(XBuffType state, int param = 0) + { + int num = XFastEnumIntEqualityComparer.ToInt(state); + short[] buffState = this._BuffState; + int num2 = num; + buffState[num2] -= 1; + if (state != XBuffType.XBuffType_Transform && state != XBuffType.XBuffType_Scale) + { + this._StateParam[XFastEnumIntEqualityComparer.ToInt(state)] -= param; + } + else + { + bool flag = this._StateParam[XFastEnumIntEqualityComparer.ToInt(state)] == param; + if (flag) + { + this._StateParam[XFastEnumIntEqualityComparer.ToInt(state)] = 0; + } + } + bool flag2 = this._BuffState[num] < 0; + if (flag2) + { + } + } + + public bool IsBuffStateOn(XBuffType state) + { + return this._BuffState[XFastEnumIntEqualityComparer.ToInt(state)] != 0; + } + + public short GetBuffStateCounter(XBuffType state) + { + return this._BuffState[XFastEnumIntEqualityComparer.ToInt(state)]; + } + + public int GetStateParam(XBuffType state) + { + return this._StateParam[XFastEnumIntEqualityComparer.ToInt(state)]; + } + + public void SetStateParam(XBuffType state, int v) + { + this._StateParam[XFastEnumIntEqualityComparer.ToInt(state)] = v; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffStateInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffStateInfo.cs.meta new file mode 100644 index 00000000..d267606c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffStateInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b3c67eadc415334fb276339b876dcd2 +timeCreated: 1611403686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs new file mode 100644 index 00000000..e0b388c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + internal enum XBuffTag + { + BT_SpriteEffect = 1 + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs.meta new file mode 100644 index 00000000..29e38611 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df8e9ac860481294ebccce4df67f5bf5 +timeCreated: 1611404693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTargetLifeAddAttack.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTargetLifeAddAttack.cs new file mode 100644 index 00000000..28993230 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTargetLifeAddAttack.cs @@ -0,0 +1,57 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffTargetLifeAddAttack : BuffEffect + { + public override XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_TargetLifeAddAttack; + } + } + + private XPieceWiseDataMgr m_Data = new XPieceWiseDataMgr(); + + private XEntity _entity; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.TargetLifeAddAttack.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + buff.AddEffect(new XBuffTargetLifeAddAttack(ref rowData.TargetLifeAddAttack)); + result = true; + } + return result; + } + + public XBuffTargetLifeAddAttack(ref SeqListRef reducePecents) + { + this.m_Data.SetRange(0.0, 0.0, 1.0, 0.0); + this.m_Data.Init(ref reducePecents); + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + } + + public override void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + double hppercent = rawInput.Target.Attributes.HPPercent; + result.Value *= 1.0 + this.m_Data.GetData(hppercent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTargetLifeAddAttack.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTargetLifeAddAttack.cs.meta new file mode 100644 index 00000000..fb463191 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTargetLifeAddAttack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff3ef94d5a121104a9232e0f41cdb85e +timeCreated: 1611404946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTemplateManager.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTemplateManager.cs new file mode 100644 index 00000000..a7b73b56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTemplateManager.cs @@ -0,0 +1,198 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffTemplateManager : XSingleton + { + private XTableAsyncLoader _async_loader = null; + + private BuffTable m_BuffConfig = new BuffTable(); + + private BuffTable m_BuffConfigPVP = new BuffTable(); + + private Dictionary m_BuffIndex = new Dictionary(); + + private Dictionary m_BuffIndexPVP = new Dictionary(); + + private enum BuffTypeEM + { + BUFFTYPE_CHANGE_ATTRIBUTE = 1, + BUFFTYPE_CHANGE_STATUS, + BUFFTYPE_STUN + } + + public int GetBuffKey(int buffID, int buffLevel) + { + return buffID << 8 | buffLevel; + } + + public void GetBuffIdentity(int buffKey, out int buffID, out int buffLevel) + { + buffID = buffKey >> 8; + buffLevel = (buffKey & 15); + } + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/BuffList", this.m_BuffConfig, false); + this._async_loader.AddTask("Table/BuffListPVP", this.m_BuffConfigPVP, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + for (int i = 0; i < this.m_BuffConfig.Table.Length; i++) + { + BuffTable.RowData rowData = this.m_BuffConfig.Table[i]; + int buffKey = this.GetBuffKey(rowData.BuffID, (int)rowData.BuffLevel); + this.m_BuffIndex.Add(buffKey, rowData); + } + this.m_BuffConfig.Clear(); + for (int j = 0; j < this.m_BuffConfigPVP.Table.Length; j++) + { + BuffTable.RowData rowData2 = this.m_BuffConfigPVP.Table[j]; + int buffKey2 = this.GetBuffKey(rowData2.BuffID, (int)rowData2.BuffLevel); + this.m_BuffIndexPVP.Add(buffKey2, rowData2); + } + this.m_BuffConfigPVP.Clear(); + result = true; + } + return result; + } + + public override void Uninit() + { + this.m_BuffIndex.Clear(); + this.m_BuffIndexPVP.Clear(); + this._async_loader = null; + } + + private bool CanUseBuff(int sceneType, BuffTable.RowData row) + { + bool flag = false; + bool flag2 = false; + bool flag3 = false; + bool flag4 = false; + bool flag5 = row.SceneEffect != null && row.SceneEffect.Length != 0; + if (flag5) + { + for (int i = 0; i < row.SceneEffect.Length; i++) + { + int num = (int)row.SceneEffect[i]; + bool flag6 = num > 0; + if (flag6) + { + flag4 = true; + bool flag7 = num == sceneType; + if (flag7) + { + flag2 = true; + } + } + else + { + flag3 = true; + bool flag8 = -num == sceneType; + if (flag8) + { + flag = true; + } + } + } + } + bool flag9 = flag4 && flag2; + bool result; + if (flag9) + { + result = true; + } + else + { + bool flag10 = flag3 && !flag; + result = (flag10 || (!flag4 && !flag3)); + } + return result; + } + + public XBuff CreateBuff(BuffDesc buffDesc, CombatEffectHelper pEffectHelper) + { + int sceneType = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.SceneType); + int buffKey = this.GetBuffKey(buffDesc.BuffID, buffDesc.BuffLevel); + BuffTable.RowData row = null; + bool flag = true; + bool flag2 = this.m_BuffIndexPVP.TryGetValue(buffKey, out row); + if (flag2) + { + flag = this.CanUseBuff(sceneType, row); + } + row = null; + bool flag3 = true; + bool flag4 = this.m_BuffIndex.TryGetValue(buffKey, out row); + if (flag4) + { + flag3 = this.CanUseBuff(sceneType, row); + } + bool flag5 = !flag || !flag3; + XBuff result; + if (flag5) + { + result = null; + } + else + { + result = new XBuff(pEffectHelper, ref buffDesc); + } + return result; + } + + public int GetBuffTargetType(int BuffID) + { + BuffTable.RowData buffData = this.GetBuffData(BuffID, 1); + bool flag = buffData == null; + int result; + if (flag) + { + result = -1; + } + else + { + result = (int)buffData.TargetType; + } + return result; + } + + public BuffTable.RowData GetBuffData(int BuffID, int BuffLevel) + { + BuffTable.RowData rowData = null; + int buffKey = this.GetBuffKey(BuffID, BuffLevel); + bool isPVPScene = XSingleton.singleton.IsPVPScene; + if (isPVPScene) + { + this.m_BuffIndexPVP.TryGetValue(buffKey, out rowData); + } + bool flag = rowData == null && !this.m_BuffIndex.TryGetValue(buffKey, out rowData); + BuffTable.RowData result; + if (flag) + { + result = null; + } + else + { + result = rowData; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTemplateManager.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTemplateManager.cs.meta new file mode 100644 index 00000000..13f08b57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTemplateManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8152d5b005115c14dadc77b7911184c8 +timeCreated: 1611404036 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTrigger.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTrigger.cs new file mode 100644 index 00000000..2c107c6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTrigger.cs @@ -0,0 +1,284 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XBuffTrigger : BuffEffect + { + public XEntity Entity + { + get + { + return this._entity; + } + } + + private float _triggerRate = 0f; + + private bool _bRandomTriggerBuff = false; + + private uint _triggerSkillID = 0u; + + private XTriggerCondition _TriggerCondition = null; + + private XEntity _entity; + + protected XBuff _Buff; + + private XEntity _Target = null; + + private XLocateTargetComponent _locate = null; + + private bool _bSkillTriggered = false; + + protected bool m_bIsTriggerImm = false; + + public static bool TryCreate(BuffTable.RowData rowData, XBuff buff) + { + bool flag = rowData.BuffTriggerCond == 0; + bool result; + if (flag) + { + result = false; + } + else + { + switch (rowData.BuffTriggerCond) + { + case 1: + buff.AddEffect(new XBuffTriggerByBeHit(buff)); + break; + case 2: + buff.AddEffect(new XBuffTriggerByLife(buff)); + break; + case 3: + buff.AddEffect(new XBuffTriggerAlways(buff)); + break; + case 4: + buff.AddEffect(new XBuffTriggerByHit(buff)); + break; + case 5: + buff.AddEffect(new XBuffTriggerByCombo(buff)); + break; + case 7: + buff.AddEffect(new XBuffTriggerByDeath(buff)); + break; + case 8: + buff.AddEffect(new XBuffTriggerByQTE(buff)); + break; + case 9: + buff.AddEffect(new XBuffTriggerWhenRemove(buff)); + break; + case 10: + buff.AddEffect(new XBuffTriggerByCastSkill(buff)); + break; + case 11: + buff.AddEffect(new XBuffTriggerByStacking(buff)); + break; + } + result = true; + } + return result; + } + + public XBuffTrigger(XBuff buff) + { + this._Buff = buff; + BuffTable.RowData buffInfo = buff.BuffInfo; + this._triggerRate = buffInfo.BuffTriggerRate; + bool flag = buffInfo.BuffTriggerBuff.Count > 0; + if (flag) + { + bool flag2 = buffInfo.BuffTriggerBuff[0, 0] == 0 && buffInfo.BuffTriggerBuff[0, 1] == 0; + if (flag2) + { + this._bRandomTriggerBuff = true; + } + } + this.m_bIsTriggerImm = buffInfo.IsTriggerImm; + this._triggerSkillID = XSingleton.singleton.XHash(buffInfo.BuffTriggerSkill); + bool flag3 = this._triggerRate == 0f; + if (flag3) + { + this._triggerRate = 1f; + } + } + + public virtual bool CheckTriggerCondition() + { + return true; + } + + protected void _SetTarget(XEntity entity) + { + this._Target = entity; + } + + private void AddTriggerBuff() + { + bool flag = this._Buff.BuffInfo.BuffTriggerBuff.Count == 0; + if (!flag) + { + int num = 0; + int num2 = this._Buff.BuffInfo.BuffTriggerBuff.Count; + bool bRandomTriggerBuff = this._bRandomTriggerBuff; + if (bRandomTriggerBuff) + { + num = XSingleton.singleton.RandomInt(1, num2); + num2 = num + 1; + } + for (int i = num; i < num2; i++) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc.BuffID = this._Buff.BuffInfo.BuffTriggerBuff[i, 0]; + @event.xBuffDesc.BuffLevel = this._Buff.BuffInfo.BuffTriggerBuff[i, 1]; + @event.xBuffDesc.CasterID = this._Buff.CasterID; + @event.xBuffDesc.SkillID = this._Buff.SkillID; + @event.Firer = this._Target; + @event.xEffectImm = this.m_bIsTriggerImm; + XSingleton.singleton.FireEvent(@event); + } + } + } + + private void CastTriggerSkill() + { + bool flag = this._triggerSkillID == 0u; + if (!flag) + { + bool flag2 = this.Entity.Net != null; + if (flag2) + { + bool flag3 = this._locate != null; + if (flag3) + { + this.Entity.Net.ReportSkillAction(this._locate.Target, this._triggerSkillID, -1); + } + else + { + bool flag4 = this.Entity.AI != null; + if (flag4) + { + this.Entity.Net.ReportSkillAction(this.Entity.AI.Target, this._triggerSkillID, -1); + } + } + } + } + } + + protected virtual void OnTrigger() + { + } + + public void Trigger() + { + bool flag = this._TriggerCondition.CanTrigger(); + if (flag) + { + bool flag2 = this.CheckTriggerCondition(); + if (flag2) + { + float num = XSingleton.singleton.RandomFloat(0f, 1f); + bool flag3 = num <= this._triggerRate; + if (flag3) + { + this._TriggerCondition.OnTrigger(); + this.OnTrigger(); + this.AddTriggerBuff(); + bool bIsTriggerImm = this.m_bIsTriggerImm; + if (bIsTriggerImm) + { + this.CastTriggerSkill(); + } + else + { + this._bSkillTriggered = true; + } + } + else + { + this._TriggerCondition.OnRandFail(); + } + } + } + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + this._entity = entity; + this._Target = entity; + this._triggerRate += pEffectHelper.GetBuffTriggerRate(); + bool isGlobalTrigger = this._Buff.BuffInfo.IsGlobalTrigger; + if (isGlobalTrigger) + { + this._TriggerCondition = entity.Buffs.GetTriggerState(this._Buff.BuffInfo); + } + else + { + this._TriggerCondition = new XTriggerCondition(this._Buff.BuffInfo); + } + this._locate = (this._entity.IsPlayer ? (this._entity.GetXComponent(XLocateTargetComponent.uuID) as XLocateTargetComponent) : null); + this._bSkillTriggered = false; + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool bSkillTriggered = this._bSkillTriggered; + if (bSkillTriggered) + { + this._bSkillTriggered = false; + this.CastTriggerSkill(); + } + } + + protected float _GetTriggerParam(BuffTable.RowData buffInfo, int index) + { + bool flag = buffInfo == null || buffInfo.BuffTriggerParam == null || buffInfo.BuffTriggerParam.Length <= index; + float result; + if (flag) + { + result = 0f; + } + else + { + result = float.Parse(buffInfo.BuffTriggerParam[index]); + } + return result; + } + + protected int _GetTriggerParamInt(BuffTable.RowData buffInfo, int index) + { + bool flag = buffInfo == null || buffInfo.BuffTriggerParam == null || buffInfo.BuffTriggerParam.Length <= index; + int result; + if (flag) + { + result = 0; + } + else + { + result = int.Parse(buffInfo.BuffTriggerParam[index]); + } + return result; + } + + protected string _GetTriggerParamStr(BuffTable.RowData buffInfo, int index) + { + bool flag = buffInfo == null || buffInfo.BuffTriggerParam == null || buffInfo.BuffTriggerParam.Length <= index; + string result; + if (flag) + { + result = string.Empty; + } + else + { + result = buffInfo.BuffTriggerParam[index]; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTrigger.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTrigger.cs.meta new file mode 100644 index 00000000..621d92b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTrigger.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3181af81c7deb2479d5383222c5525e +timeCreated: 1611404259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerAlways.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerAlways.cs new file mode 100644 index 00000000..8cdb2b6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerAlways.cs @@ -0,0 +1,35 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffTriggerAlways : XBuffTrigger + { + private uint _TimeToken = 0u; + + private XTimerMgr.ElapsedEventHandler _timeCb = null; + + public XBuffTriggerAlways(XBuff buff) : base(buff) + { + this._timeCb = new XTimerMgr.ElapsedEventHandler(this.OnTimer); + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + base.OnAdd(entity, pEffectHelper); + this.OnTimer(null); + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + base.OnRemove(entity, IsReplaced); + XSingleton.singleton.KillTimer(this._TimeToken); + } + + public void OnTimer(object o) + { + base.Trigger(); + this._TimeToken = XSingleton.singleton.SetTimer(1f, this._timeCb, o); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerAlways.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerAlways.cs.meta new file mode 100644 index 00000000..f6601649 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerAlways.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c09f99f894872c4882e609360cd7b6b +timeCreated: 1611403801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByBeHit.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByBeHit.cs new file mode 100644 index 00000000..6e71f72a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByBeHit.cs @@ -0,0 +1,75 @@ +using System; + +namespace XMainClient +{ + internal class XBuffTriggerByBeHit : XBuffTrigger + { + public override XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_TriggerByBeHit; + } + } + + private int m_Type; + + private int m_Param0; + + private XEntity m_Entity; + + private HurtInfo m_RawInput; + + private ProjectDamageResult m_Result; + + public XBuffTriggerByBeHit(XBuff buff) : base(buff) + { + this.m_Type = base._GetTriggerParamInt(buff.BuffInfo, 0); + this.m_Param0 = base._GetTriggerParamInt(buff.BuffInfo, 1); + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + base.OnAdd(entity, pEffectHelper); + this.m_Entity = entity; + } + + public override void OnBuffEffect(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = rawInput.SkillID == 0u; + if (!flag) + { + this.m_RawInput = rawInput; + this.m_Result = result; + base.Trigger(); + } + } + + public override bool CheckTriggerCondition() + { + int type = this.m_Type; + if (type != 0) + { + if (type == 1) + { + bool flag = this.m_Result.Result != ProjectResultType.PJRES_IMMORTAL; + if (flag) + { + return false; + } + bool flag2 = this.m_Param0 != 0; + if (flag2) + { + XBuff buffByID = this.m_Entity.Buffs.GetBuffByID(this.m_Param0); + bool flag3 = buffByID == null; + if (flag3) + { + return false; + } + } + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByBeHit.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByBeHit.cs.meta new file mode 100644 index 00000000..af9f1309 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByBeHit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d95321483f49d8a4a945d05c101bf08b +timeCreated: 1611404643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCastSkill.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCastSkill.cs new file mode 100644 index 00000000..9478300a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCastSkill.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XBuffTriggerByCastSkill : XBuffTrigger + { + private HurtInfo m_RawInput; + + private HashSet m_SpecifiedSkillsSet; + + public XBuffTriggerByCastSkill(XBuff buff) : base(buff) + { + this.m_SpecifiedSkillsSet = buff.RelevantSkills; + } + + public override void OnCastSkill(HurtInfo rawInput) + { + base.OnCastSkill(rawInput); + this.m_RawInput = rawInput; + base.Trigger(); + } + + public override bool CheckTriggerCondition() + { + bool flag = this.m_SpecifiedSkillsSet != null && (this.m_RawInput == null || !this.m_SpecifiedSkillsSet.Contains(this.m_RawInput.SkillID)); + return !flag; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCastSkill.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCastSkill.cs.meta new file mode 100644 index 00000000..16d35093 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCastSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e5e4771522694c249b707a19293aaded +timeCreated: 1611404744 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCombo.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCombo.cs new file mode 100644 index 00000000..46871868 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCombo.cs @@ -0,0 +1,32 @@ +using System; + +namespace XMainClient +{ + internal class XBuffTriggerByCombo : XBuffTrigger + { + private uint m_Base; + + private uint m_Count; + + public XBuffTriggerByCombo(XBuff buff) : base(buff) + { + this.m_Base = (uint)base._GetTriggerParamInt(buff.BuffInfo, 0); + bool flag = this.m_Base == 0u; + if (flag) + { + this.m_Base = 1u; + } + } + + public override bool CheckTriggerCondition() + { + return this.m_Count != 0u && this.m_Count % this.m_Base == 0u; + } + + public override void OnComboChange(uint comboCount) + { + this.m_Count = comboCount; + base.Trigger(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCombo.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCombo.cs.meta new file mode 100644 index 00000000..ef6c46ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByCombo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aaa3b859908dfb041906c1c67200df47 +timeCreated: 1611404304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByDeath.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByDeath.cs new file mode 100644 index 00000000..0d92508a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByDeath.cs @@ -0,0 +1,68 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffTriggerByDeath : XBuffTrigger + { + private int m_Type; + + private int m_Param0; + + private XEntity m_Entity; + + public XBuffTriggerByDeath(XBuff buff) : base(buff) + { + this.m_Type = base._GetTriggerParamInt(buff.BuffInfo, 0); + this.m_Param0 = base._GetTriggerParamInt(buff.BuffInfo, 1); + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + base.OnAdd(entity, pEffectHelper); + this.m_Entity = entity; + } + + public override void OnRealDead(XRealDeadEventArgs e) + { + base.Trigger(); + } + + public override bool CheckTriggerCondition() + { + int type = this.m_Type; + if (type == 0) + { + bool flag = !XSingleton.singleton.SceneData.CanRevive; + if (!flag) + { + bool flag2 = this.m_Param0 == 1; + if (flag2) + { + XReviveDocument specificDocument = XDocuments.GetSpecificDocument(XReviveDocument.uuID); + bool flag3 = specificDocument.ReviveUsedTime >= specificDocument.ReviveMaxTime; + if (flag3) + { + goto IL_5D; + } + } + return true; + } + } + IL_5D: + return false; + } + + protected override void OnTrigger() + { + base.OnTrigger(); + int type = this.m_Type; + if (type == 0) + { + XSingleton.singleton.AddGreenLog("Trigger by death.", null, null, null, null, null); + XReviveDocument specificDocument = XDocuments.GetSpecificDocument(XReviveDocument.uuID); + specificDocument.SetAutoReviveData(this.m_Param0 == 1, 2f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByDeath.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByDeath.cs.meta new file mode 100644 index 00000000..40224962 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByDeath.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8fb1f6cdd243354db6e7636158aa817 +timeCreated: 1611404897 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByHit.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByHit.cs new file mode 100644 index 00000000..39b63517 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByHit.cs @@ -0,0 +1,149 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffTriggerByHit : XBuffTrigger + { + public override XBuffEffectPrioriy Priority + { + get + { + bool flag = this.m_Type == 3; + XBuffEffectPrioriy result; + if (flag) + { + result = XBuffEffectPrioriy.BEP_TriggerByHit_Death; + } + else + { + result = XBuffEffectPrioriy.BEP_TriggerByHit; + } + return result; + } + } + + private int m_Type; + + private HurtInfo m_RawInput; + + private ProjectDamageResult m_Result; + + private HashSet m_SpecifiedSkillsSet; + + private int m_SpecifiedBuffID; + + private double m_CriticalChangeRatio = 0.0; + + public XBuffTriggerByHit(XBuff buff) : base(buff) + { + this.m_Type = base._GetTriggerParamInt(buff.BuffInfo, 0); + this.m_SpecifiedSkillsSet = buff.RelevantSkills; + int type = this.m_Type; + if (type != 2) + { + if (type == 5) + { + this.m_SpecifiedBuffID = base._GetTriggerParamInt(buff.BuffInfo, 1); + } + } + else + { + this.m_CriticalChangeRatio = Math.Max(0.0, 1.0 + (double)(base._GetTriggerParam(buff.BuffInfo, 1) / 100f)); + } + } + + public override bool CheckTriggerCondition() + { + bool flag = this.m_SpecifiedSkillsSet != null && (this.m_RawInput == null || !this.m_SpecifiedSkillsSet.Contains(this.m_RawInput.SkillID)); + bool result; + if (flag) + { + result = false; + } + else + { + switch (this.m_Type) + { + case 0: + return true; + case 1: + { + bool flag2 = this.m_RawInput != null && base.Entity.SkillMgr != null && base.Entity.SkillMgr.IsPhysicalAttack(this.m_RawInput.SkillID); + if (flag2) + { + return true; + } + break; + } + case 2: + { + bool flag3 = (this.m_Result.Flag & XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_CRITICAL)) != 0; + if (flag3) + { + return true; + } + break; + } + case 3: + { + bool isTargetDead = this.m_Result.IsTargetDead; + if (isTargetDead) + { + return true; + } + bool flag4 = this.m_RawInput != null && this.m_RawInput.Target != null && !this.m_RawInput.Target.Deprecated && this.m_RawInput.Target.Attributes != null; + if (flag4) + { + return this.m_RawInput.Target.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic) - this.m_Result.Value <= 0.0; + } + break; + } + case 5: + { + bool flag5 = this.m_RawInput != null && this.m_RawInput.Target != null && !this.m_RawInput.Target.Deprecated; + if (flag5) + { + XBuffComponent buffs = this.m_RawInput.Target.Buffs; + bool flag6 = buffs != null && buffs.GetBuffByID(this.m_SpecifiedBuffID) != null; + if (flag6) + { + base._SetTarget(this.m_RawInput.Target); + return true; + } + } + break; + } + } + result = false; + } + return result; + } + + public override void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = rawInput.SkillID == 0u; + if (!flag) + { + this.m_RawInput = rawInput; + this.m_Result = result; + base.Trigger(); + } + } + + protected override void OnTrigger() + { + base.OnTrigger(); + int type = this.m_Type; + if (type == 2) + { + bool flag = this.m_CriticalChangeRatio != 1.0; + if (flag) + { + this.m_Result.Value *= this.m_CriticalChangeRatio; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByHit.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByHit.cs.meta new file mode 100644 index 00000000..36a5f126 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByHit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53483e6bbbdf18e4cbdb9cdd4ddcae08 +timeCreated: 1611403710 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByLife.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByLife.cs new file mode 100644 index 00000000..f54a6aa6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByLife.cs @@ -0,0 +1,35 @@ +using System; + +namespace XMainClient +{ + internal class XBuffTriggerByLife : XBuffTrigger + { + private float _hpTriggerPercent = 0f; + + public XBuffTriggerByLife(XBuff buff) : base(buff) + { + this._hpTriggerPercent = base._GetTriggerParam(buff.BuffInfo, 0); + } + + public override bool CheckTriggerCondition() + { + bool isDummy = base.Entity.IsDummy; + return !isDummy && base.Entity.Attributes.HPPercent <= (double)this._hpTriggerPercent; + } + + public override void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper) + { + base.OnAdd(entity, pEffectHelper); + base.Trigger(); + } + + public override void OnAttributeChanged(XAttrChangeEventArgs e) + { + bool flag = e.AttrKey == XAttributeDefine.XAttr_CurrentHP_Basic; + if (flag) + { + base.Trigger(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByLife.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByLife.cs.meta new file mode 100644 index 00000000..95c64894 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByLife.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 188b0e8f4f6cd7f43b7ef241288e327c +timeCreated: 1611403297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs new file mode 100644 index 00000000..9416d80f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs @@ -0,0 +1,69 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBuffTriggerByQTE : XBuffTrigger + { + private HashSet m_QTEList = new HashSet(); + + private long m_PreToken = 0L; + + public XBuffTriggerByQTE(XBuff buff) : base(buff) + { + int num = 0; + for (;;) + { + int num2 = base._GetTriggerParamInt(buff.BuffInfo, num); + bool flag = num2 == 0; + if (flag) + { + break; + } + this.m_QTEList.Add(num2); + num++; + } + } + + public override void OnUpdate() + { + base.Trigger(); + base.OnUpdate(); + } + + public override bool CheckTriggerCondition() + { + bool flag = base.Entity.Machine == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.m_PreToken == base.Entity.Machine.ActionToken; + if (flag2) + { + result = false; + } + else + { + this.m_PreToken = base.Entity.Machine.ActionToken; + bool flag3 = base.Entity.Machine.Current != XStateDefine.XState_BeHit && base.Entity.Machine.Current != XStateDefine.XState_Freeze; + if (flag3) + { + result = false; + } + else + { + KKSG.XQTEState qtespecificPhase = base.Entity.GetQTESpecificPhase(); + result = this.m_QTEList.Contains(XFastEnumIntEqualityComparer.ToInt(qtespecificPhase)); + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs.meta new file mode 100644 index 00000000..d6fcf639 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByQTE.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a506533f74d27c46a82762a22e092e5 +timeCreated: 1611403596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByStacking.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByStacking.cs new file mode 100644 index 00000000..d792adec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByStacking.cs @@ -0,0 +1,30 @@ +using System; + +namespace XMainClient +{ + internal class XBuffTriggerByStacking : XBuffTrigger + { + private uint m_Base; + + public XBuffTriggerByStacking(XBuff buff) : base(buff) + { + this.m_Base = (uint)base._GetTriggerParamInt(buff.BuffInfo, 0); + bool flag = this.m_Base == 0u; + if (flag) + { + this.m_Base = 1u; + } + } + + public override bool CheckTriggerCondition() + { + return this._Buff.StackCount % this.m_Base == 0u; + } + + public override void OnAppend(XEntity entity) + { + base.OnAppend(entity); + base.Trigger(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByStacking.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByStacking.cs.meta new file mode 100644 index 00000000..1cc03201 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerByStacking.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4828cc6239ec9a48b2e87ad5dd07da0 +timeCreated: 1611404602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs new file mode 100644 index 00000000..60d994d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XBuffTriggerWhenRemove : XBuffTrigger + { + public XBuffTriggerWhenRemove(XBuff buff) : base(buff) + { + } + + public override void OnRemove(XEntity entity, bool IsReplaced) + { + bool flag = !IsReplaced; + if (flag) + { + base.Trigger(); + } + base.OnRemove(entity, IsReplaced); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs.meta new file mode 100644 index 00000000..ac36ba23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffTriggerWhenRemove.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74e6ecd57fc99d546a3c20d70cad5f9f +timeCreated: 1611403945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffType.cs b/Client/Assets/Scripts/XMainClient/Buff/XBuffType.cs new file mode 100644 index 00000000..58d595ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffType.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal enum XBuffType + { + XBuffType_Immortal = 1, + XBuffType_Bati, + XBuffType_Freeze, + XBuffType_CantDie, + XBuffType_Shield, + XBuffType_Trapped, + XBuffType_Silencing, + XBuffType_Puzzled, + XBuffType_Transform, + XBuffType_Stealth, + XBuffType_LockFoot, + XBuffType_Mark, + XBuffType_Scale, + XBuffType_Blind, + XBuffType_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/Buff/XBuffType.cs.meta b/Client/Assets/Scripts/XMainClient/Buff/XBuffType.cs.meta new file mode 100644 index 00000000..4cea8f33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Buff/XBuffType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eaf6f946423833b4a812a3d9e80b6c83 +timeCreated: 1611404781 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BuffDesc.cs b/Client/Assets/Scripts/XMainClient/BuffDesc.cs new file mode 100644 index 00000000..c735a3e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BuffDesc.cs @@ -0,0 +1,31 @@ +using System; + +namespace XMainClient +{ + internal struct BuffDesc + { + public int BuffID; + + public int BuffLevel; + + public ulong CasterID; + + public float DelayTime; + + public float EffectTime; + + public uint SkillID; + + public static float DEFAULT_TIME = -1f; + + public void Reset() + { + this.BuffID = 0; + this.BuffLevel = 0; + this.CasterID = 0UL; + this.DelayTime = 0f; + this.EffectTime = BuffDesc.DEFAULT_TIME; + this.SkillID = 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BuffDesc.cs.meta b/Client/Assets/Scripts/XMainClient/BuffDesc.cs.meta new file mode 100644 index 00000000..049ebc7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BuffDesc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00bfa76e6af70274097eb3edba31422f +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/BuffEffect.cs b/Client/Assets/Scripts/XMainClient/BuffEffect.cs new file mode 100644 index 00000000..af3c933c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BuffEffect.cs @@ -0,0 +1,71 @@ +using System; + +namespace XMainClient +{ + internal abstract class BuffEffect : IComparable + { + public virtual XBuffEffectPrioriy Priority + { + get + { + return XBuffEffectPrioriy.BEP_START; + } + } + + public bool bValid { get; set; } + + public abstract void OnAdd(XEntity entity, CombatEffectHelper pEffectHelper); + + public abstract void OnRemove(XEntity entity, bool IsReplaced); + + public virtual void OnAppend(XEntity entity) + { + } + + public virtual void OnBattleEnd(XEntity entity) + { + } + + public virtual void OnBuffEffect(HurtInfo rawInput, ProjectDamageResult result) + { + } + + public virtual void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + } + + public virtual void OnComboChange(uint comboCount) + { + } + + public virtual void OnAttributeChanged(XAttrChangeEventArgs e) + { + } + + public virtual void OnQTEStateChanged(XSkillQTEEventArgs e) + { + } + + public virtual void OnRealDead(XRealDeadEventArgs e) + { + } + + public virtual bool CanBuffAdd(int clearType) + { + return true; + } + + public virtual void OnUpdate() + { + } + + public virtual void OnCastSkill(HurtInfo rawInput) + { + } + + public int CompareTo(BuffEffect other) + { + return this.Priority.CompareTo(other.Priority); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/BuffEffect.cs.meta b/Client/Assets/Scripts/XMainClient/BuffEffect.cs.meta new file mode 100644 index 00000000..06106681 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/BuffEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b68d5a7aba61fee47a3147caa36a92a9 +timeCreated: 1611404398 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CBrifGroupInfo.cs b/Client/Assets/Scripts/XMainClient/CBrifGroupInfo.cs new file mode 100644 index 00000000..121477d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CBrifGroupInfo.cs @@ -0,0 +1,28 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class CBrifGroupInfo : LoopItemData + { + public ulong id; + + public uint createtype; + + public string name; + + public DateTime msgtime = DateTime.Today; + + public bool captain; + + public uint memberCnt; + + public string rolename; + + public ulong leaderid; + + public string chat; + + public uint createTime; + } +} diff --git a/Client/Assets/Scripts/XMainClient/CBrifGroupInfo.cs.meta b/Client/Assets/Scripts/XMainClient/CBrifGroupInfo.cs.meta new file mode 100644 index 00000000..61c6187a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CBrifGroupInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f343adf71ce58394b920f6d34d705c89 +timeCreated: 1611404847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CClientSocket.cs b/Client/Assets/Scripts/XMainClient/CClientSocket.cs new file mode 100644 index 00000000..2bc61aa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CClientSocket.cs @@ -0,0 +1,488 @@ +using System; +using System.Net; +using System.Net.Sockets; +using System.Threading; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + public class CClientSocket + { + public int ID + { + get + { + return this.m_nUID; + } + } + + private Socket m_oSocket; + + private SocketState m_nState; + + private static byte[] m_oSendBuff; + + private static byte[] m_oRecvBuff; + + private volatile int m_nStartPos; + + private volatile int m_nEndPos; + + private int m_nCurrRecvLen; + + private CClientSocket.SendState m_oSendState; + + public static int TotalSendBytes; + + public static int TotalRecvBytes; + + private CNetwork m_oNetwork; + + private IPacketBreaker m_oBreaker; + + private int m_nUID; + + private static int SOCKET_UID = 0; + + private AsyncCallback m_RecvCb = null; + + private AsyncCallback m_ConnectCb = null; + + private AsyncCallback m_SendCb = null; + + public bool m_bRecvMsg = true; + + public bool m_bPause = false; + + public int m_nPauseRecvLen = 0; + + public static int PAUSE_RECV_MAX_LEN = XSingleton.singleton.GetInt("PauseRecvMaxLen"); + + public static int MaxSendSize = 1024; + + public static int SendBufferSize = 32768; + + private AddressFamily m_NetworkType = AddressFamily.InterNetwork; + + private static SmallBufferPool m_BufferPool = null; + + private static BlockInfo[] blockInit = new BlockInfo[] + { + new BlockInfo(32, 128), + new BlockInfo(64, 128), + new BlockInfo(128, 64), + new BlockInfo(256, 32), + new BlockInfo(512, 16), + new BlockInfo(1024, 4), + new BlockInfo(2048, 4), + new BlockInfo(4096, 4), + new BlockInfo(8192, 4), + new BlockInfo(65536, 4) + }; + + private class SendState + { + public int start; + + public int len; + } + + public CClientSocket() + { + this.m_oSocket = null; + this.m_nState = SocketState.State_Closed; + CClientSocket.m_oSendBuff = null; + CClientSocket.m_oRecvBuff = null; + this.m_nStartPos = 0; + this.m_nEndPos = 0; + this.m_nCurrRecvLen = 0; + CClientSocket.m_oSendBuff = null; + this.m_oBreaker = null; + this.m_nUID = ++CClientSocket.SOCKET_UID; + this.m_RecvCb = new AsyncCallback(this.RecvCallback); + this.m_ConnectCb = new AsyncCallback(this.OnConnect); + this.m_SendCb = new AsyncCallback(this.OnSendCallback); + bool flag = CClientSocket.m_BufferPool == null; + if (flag) + { + CClientSocket.m_BufferPool = new SmallBufferPool(); + CClientSocket.m_BufferPool.Init(CClientSocket.blockInit, 1); + } + } + + private void GetNetworkType() + { + try + { + string hostNameOrAddress = XSingleton.singleton.XPlatform.GetLoginServer("QQ").Substring(0, XSingleton.singleton.XPlatform.GetLoginServer("QQ").LastIndexOf(':')); + IPAddress[] hostAddresses = Dns.GetHostAddresses(hostNameOrAddress); + this.m_NetworkType = hostAddresses[0].AddressFamily; + } + catch (Exception ex) + { + XSingleton.singleton.AddWarningLog(ex.Message, null, null, null, null, null); + } + } + + public bool Init(uint dwSendBuffSize, uint dwRecvBuffSize, CNetwork oNetwork, IPacketBreaker oBreaker) + { + this.GetNetworkType(); + try + { + this.m_nState = SocketState.State_Closed; + this.m_oSocket = new Socket(this.m_NetworkType, SocketType.Stream, ProtocolType.Tcp); + this.m_oSocket.NoDelay = true; + bool flag = CClientSocket.m_oSendBuff == null; + if (flag) + { + CClientSocket.m_oSendBuff = new byte[dwSendBuffSize]; + } + bool flag2 = CClientSocket.m_oRecvBuff == null; + if (flag2) + { + CClientSocket.m_oRecvBuff = new byte[dwRecvBuffSize]; + } + this.m_oSocket.SendBufferSize = CClientSocket.SendBufferSize; + this.m_oSendState = new CClientSocket.SendState(); + this.m_nStartPos = 0; + this.m_nEndPos = 0; + this.m_nCurrRecvLen = 0; + this.m_oNetwork = oNetwork; + this.m_oBreaker = oBreaker; + this.m_oSendState.start = 0; + this.m_oSendState.len = 0; + } + catch (Exception ex) + { + XSingleton.singleton.AddWarningLog(ex.Message, "new Socket Error!", null, null, null, null); + return false; + } + return true; + } + + public void UnInit() + { + this.Close(); + } + + private void OnConnect(IAsyncResult iar) + { + try + { + bool flag = this.m_nState == SocketState.State_Closed; + if (!flag) + { + Socket socket = (Socket)iar.AsyncState; + socket.EndConnect(iar); + this.SetState(SocketState.State_Connected); + this.GetNetwork().PushConnectEvent(true); + socket.BeginReceive(CClientSocket.m_oRecvBuff, this.m_nCurrRecvLen, CClientSocket.m_oRecvBuff.Length - this.m_nCurrRecvLen, SocketFlags.None, this.m_RecvCb, socket); + this.FindSomethingToSend(); + } + } + catch (Exception ex) + { + XSingleton.singleton.AddWarningLog(ex.Message, null, null, null, null, null); + this.SetState(SocketState.State_Closed); + this.GetNetwork().PushConnectEvent(false); + this.Close(); + } + } + + public bool Connect(string host, int port) + { + bool result; + try + { + this.SetState(SocketState.State_Connecting); + this.m_oSocket.BeginConnect(host, port, this.m_ConnectCb, this.m_oSocket); + result = true; + } + catch (Exception ex) + { + XSingleton.singleton.AddWarningLog(ex.Message, null, null, null, null, null); + result = false; + } + return result; + } + + public void Close() + { + XSingleton.singleton.AddLog("close socket ", this.m_nUID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + Rpc.Close(); + this.m_nState = SocketState.State_Closed; + bool flag = this.m_oSocket == null; + if (!flag) + { + try + { + this.m_oSocket.Close(); + } + catch (Exception ex) + { + XSingleton.singleton.AddWarningLog(ex.Message, null, null, null, null, null); + } + this.m_oSocket = null; + } + } + + public bool Send(byte[] buffer) + { + return this.Send(buffer, 0, buffer.Length); + } + + private void OnSendCallback(IAsyncResult iar) + { + try + { + bool flag = this.m_nState == SocketState.State_Closed; + if (!flag) + { + CClientSocket.SendState sendState = (CClientSocket.SendState)iar.AsyncState; + this.m_oSocket.EndSend(iar); + this.m_nStartPos = (sendState.start + sendState.len) % CClientSocket.m_oSendBuff.Length; + CClientSocket.TotalSendBytes += sendState.len; + this.FindSomethingToSend(); + } + } + catch (Exception ex) + { + XSingleton.singleton.AddWarningLog("OnSendCallback Send Failed: ", ex.Message, null, null, null, null); + this.GetNetwork().PushClosedEvent(NetErrCode.Net_SysError, this.ID); + this.Close(); + } + } + + private void FindSomethingToSend() + { + try + { + while (this.m_nEndPos == this.m_nStartPos) + { + Thread.Sleep(1); + bool flag = this.m_oSocket == null; + if (flag) + { + return; + } + } + bool flag2 = this.m_nEndPos > this.m_nStartPos; + if (flag2) + { + this.m_oSendState.start = this.m_nStartPos; + this.m_oSendState.len = this.m_nEndPos - this.m_nStartPos; + bool flag3 = this.m_oSendState.len > CClientSocket.MaxSendSize; + if (flag3) + { + this.m_oSendState.len = CClientSocket.MaxSendSize; + } + this.m_oSocket.BeginSend(CClientSocket.m_oSendBuff, this.m_oSendState.start, this.m_oSendState.len, SocketFlags.None, this.m_SendCb, this.m_oSendState); + } + else + { + bool flag4 = this.m_nEndPos < this.m_nStartPos; + if (flag4) + { + this.m_oSendState.start = this.m_nStartPos; + this.m_oSendState.len = CClientSocket.m_oSendBuff.Length - this.m_nStartPos; + bool flag5 = this.m_oSendState.len > CClientSocket.MaxSendSize; + if (flag5) + { + this.m_oSendState.len = CClientSocket.MaxSendSize; + } + this.m_oSocket.BeginSend(CClientSocket.m_oSendBuff, this.m_oSendState.start, this.m_oSendState.len, SocketFlags.None, this.m_SendCb, this.m_oSendState); + } + else + { + XSingleton.singleton.AddWarningLog("FindSomethingToSend Send Failed: No data to send error!", null, null, null, null, null); + } + } + } + catch (Exception ex) + { + this.Close(); + this.GetNetwork().PushClosedEvent(NetErrCode.Net_SysError, this.ID); + XSingleton.singleton.AddWarningLog("FindSomethingToSend Exception Send Failed: ", ex.Message, null, null, null, null); + } + } + + public bool Send(byte[] buffer, int start, int length) + { + bool flag = this.GetState() != SocketState.State_Connected; + bool result; + if (flag) + { + XSingleton.singleton.AddLog("state is not connected, can't send!", null, null, null, null, null, XDebugColor.XDebug_None); + result = false; + } + else + { + int num = CClientSocket.m_oSendBuff.Length; + int num2 = this.m_nEndPos + num - this.m_nStartPos; + int num3 = (num2 >= num) ? (num2 - num) : num2; + bool flag2 = length + 1 + num3 > num; + if (flag2) + { + XSingleton.singleton.AddWarningLog("send bytes out of buffer range!", null, null, null, null, null); + this.Close(); + this.GetNetwork().PushClosedEvent(NetErrCode.Net_SendBuff_Overflow, this.ID); + result = false; + } + else + { + bool flag3 = this.m_nEndPos + length >= num; + if (flag3) + { + int num4 = num - this.m_nEndPos; + int num5 = length - num4; + Array.Copy(buffer, start, CClientSocket.m_oSendBuff, this.m_nEndPos, num4); + Array.Copy(buffer, start + num4, CClientSocket.m_oSendBuff, 0, num5); + this.m_nEndPos = num5; + } + else + { + Array.Copy(buffer, start, CClientSocket.m_oSendBuff, this.m_nEndPos, length); + this.m_nEndPos += length; + } + result = true; + } + } + return result; + } + + public Socket GetSocket() + { + return this.m_oSocket; + } + + public SocketState GetState() + { + return this.m_nState; + } + + private void SetState(SocketState nState) + { + this.m_nState = nState; + } + + private CNetwork GetNetwork() + { + return this.m_oNetwork; + } + + public void RecvCallback(IAsyncResult ar) + { + try + { + bool flag = this.m_nState == SocketState.State_Closed; + if (!flag) + { + Socket socket = (Socket)ar.AsyncState; + int num = socket.EndReceive(ar); + bool flag2 = num > 0; + if (flag2) + { + CClientSocket.TotalRecvBytes += num; + this.m_nCurrRecvLen += num; + this.DetectPacket(); + bool flag3 = this.m_nCurrRecvLen == CClientSocket.m_oRecvBuff.Length; + if (flag3) + { + XSingleton.singleton.AddWarningLog("RecvCallback error ! m_nCurrRecvLen == m_oRecvBuff.Length", null, null, null, null, null); + } + socket.BeginReceive(CClientSocket.m_oRecvBuff, this.m_nCurrRecvLen, CClientSocket.m_oRecvBuff.Length - this.m_nCurrRecvLen, SocketFlags.None, this.m_RecvCb, socket); + } + else + { + bool flag4 = num == 0; + if (flag4) + { + XSingleton.singleton.AddWarningLog("Close socket normally", null, null, null, null, null); + this.Close(); + this.GetNetwork().PushClosedEvent(NetErrCode.Net_SysError, this.ID); + } + else + { + XSingleton.singleton.AddWarningLog("Close socket, recv error!", null, null, null, null, null); + this.Close(); + this.GetNetwork().PushClosedEvent(NetErrCode.Net_SysError, this.ID); + } + } + } + } + catch (ObjectDisposedException) + { + } + catch (SocketException ex) + { + XSingleton.singleton.AddWarningLog(ex.Message, null, null, null, null, null); + this.Close(); + this.GetNetwork().PushClosedEvent(NetErrCode.Net_SysError, this.ID); + } + catch (Exception ex2) + { + XSingleton.singleton.AddWarningLog(ex2.Message, null, null, null, null, null); + this.Close(); + this.GetNetwork().PushClosedEvent(NetErrCode.Net_SysError, this.ID); + } + } + + public void DetectPacket() + { + int num = 0; + while (this.m_nCurrRecvLen > 0) + { + int num2 = this.m_oBreaker.BreakPacket(CClientSocket.m_oRecvBuff, num, this.m_nCurrRecvLen); + bool flag = num2 == 0; + if (flag) + { + break; + } + bool bRecvMsg = this.m_bRecvMsg; + if (bRecvMsg) + { + SmallBuffer smallBuffer = default(SmallBuffer); + CClientSocket.GetBuffer(ref smallBuffer, num2); + smallBuffer.Copy(CClientSocket.m_oRecvBuff, num, 0, num2); + this.GetNetwork().PushReceiveEvent(ref smallBuffer, num2); + bool bPause = this.m_bPause; + if (bPause) + { + this.m_nPauseRecvLen += num2; + bool flag2 = this.m_nPauseRecvLen > CClientSocket.PAUSE_RECV_MAX_LEN; + if (flag2) + { + this.m_bRecvMsg = false; + } + } + } + num += num2; + this.m_nCurrRecvLen -= num2; + } + bool flag3 = num > 0 && this.m_nCurrRecvLen > 0; + if (flag3) + { + Array.Copy(CClientSocket.m_oRecvBuff, num, CClientSocket.m_oRecvBuff, 0, this.m_nCurrRecvLen); + } + } + + public static void GetBuffer(ref SmallBuffer sb, int size) + { + SmallBufferPool bufferPool = CClientSocket.m_BufferPool; + lock (bufferPool) + { + CClientSocket.m_BufferPool.GetBlock(ref sb, size, 0); + } + } + + public static void ReturnBuffer(ref SmallBuffer sb) + { + SmallBufferPool bufferPool = CClientSocket.m_BufferPool; + lock (bufferPool) + { + CClientSocket.m_BufferPool.ReturnBlock(ref sb); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CClientSocket.cs.meta b/Client/Assets/Scripts/XMainClient/CClientSocket.cs.meta new file mode 100644 index 00000000..eb795962 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CClientSocket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4012ce3082c675a42a0bd5ac79ea14b6 +timeCreated: 1611403613 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CGroupPlayerInfo.cs b/Client/Assets/Scripts/XMainClient/CGroupPlayerInfo.cs new file mode 100644 index 00000000..a5ac8a08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CGroupPlayerInfo.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + public class CGroupPlayerInfo + { + public ulong roleid; + + public string rolename; + + public string guild; + + public uint level; + + public uint ppt; + + public uint profession; + + public int degree; + + public uint uid; + + public List setid = new List(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/CGroupPlayerInfo.cs.meta b/Client/Assets/Scripts/XMainClient/CGroupPlayerInfo.cs.meta new file mode 100644 index 00000000..aaa1014e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CGroupPlayerInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a23d1cb262e9db645aab9913a6f38e51 +timeCreated: 1611404256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CIBShop.cs b/Client/Assets/Scripts/XMainClient/CIBShop.cs new file mode 100644 index 00000000..f3933f4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CIBShop.cs @@ -0,0 +1,15 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + public class CIBShop + { + public IBShop.RowData row; + + public IBShopItemInfo sinfo; + + public bool finish; + } +} diff --git a/Client/Assets/Scripts/XMainClient/CIBShop.cs.meta b/Client/Assets/Scripts/XMainClient/CIBShop.cs.meta new file mode 100644 index 00000000..29c1f146 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CIBShop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 488cd7b7423368444b55635cd81345f0 +timeCreated: 1611403658 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CNetProcessor.cs b/Client/Assets/Scripts/XMainClient/CNetProcessor.cs new file mode 100644 index 00000000..0b76dd17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CNetProcessor.cs @@ -0,0 +1,363 @@ +using System; +using System.IO; +using Ionic.Zlib; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + public class CNetProcessor : ILuaNetProcess, INetProcess + { + private CNetwork m_oNetwork; + + private INetObserver m_oObserver; + + private Random r; + + public static int MaxBuffSize = 65536; + + private MemoryStream RecvStream = new MemoryStream(65536); + + private ProtocolHead head = new ProtocolHead(); + + private ZlibStream zDecompress = null; + + private static NetEvent m_sCurrentEvent = null; + + public void OnLuaProcessBuffer(NetEvent evt) + { + bool flag = this.m_oNetwork.IsOnlyDispacherInLua(this.head.type); + bool isPtc = this.head.IsPtc; + if (isPtc) + { + bool flag2 = true; + bool flag3 = this.m_oNetwork.ContainPtc(this.head.type, out flag2) || flag; + if (flag3) + { + bool flag4 = this.RecvStream != null; + if (flag4) + { + XSingleton.singleton.AddGreenLog("ptc new type: ", this.head.type.ToString(), " only: " + flag.ToString(), null, null, null); + LuaNetNode node = this.m_oNetwork.GetNode(flag2 || flag); + node.Reset(); + node.isRpc = false; + node.isOnlyLua = flag; + node.type = this.head.type; + bool flag5 = flag2 || flag; + if (flag5) + { + node.SetBuff(this.RecvStream.GetBuffer(), (int)this.RecvStream.Length); + } + evt.node = node; + evt.IsOnlyLua = flag; + } + } + } + else + { + bool flag6 = flag; + if (flag6) + { + LuaNetNode node2 = this.m_oNetwork.GetNode(true); + node2.isOnlyLua = true; + node2.isRpc = true; + node2.type = this.head.type; + byte[] buffer = this.RecvStream.GetBuffer(); + node2.SetBuff(buffer, (int)this.RecvStream.Length); + evt.node = node2; + evt.IsOnlyLua = true; + } + else + { + LuaNetNode removeRpc = this.m_oNetwork.GetRemoveRpc(this.head.tagID); + bool flag7 = removeRpc == null; + if (!flag7) + { + XSingleton.singleton.AddGreenLog("rpc new type: " + this.head.type, " only: " + flag.ToString(), null, null, null, null); + removeRpc.type = this.head.type; + removeRpc.isRpc = true; + removeRpc.isOnlyLua = flag; + bool copyBuffer = removeRpc.copyBuffer; + if (copyBuffer) + { + removeRpc.SetBuff(this.RecvStream.GetBuffer(), (int)this.RecvStream.Length); + } + evt.node = removeRpc; + evt.IsOnlyLua = false; + } + } + } + } + + public void OnLuaProcess(NetEvent evt) + { + LuaNetNode node = evt.node; + bool flag = node != null; + if (flag) + { + bool isOnlyLua = node.isOnlyLua; + if (isOnlyLua) + { + XSingleton.singleton.XLuaEngine.hotfixMgr.ProcessOveride(node.type, node.buffer, node.length); + } + else + { + bool isRpc = node.isRpc; + if (isRpc) + { + bool flag2 = node.resp != null; + if (flag2) + { + node.resp(node.buffer, node.length); + } + } + else + { + XSingleton.singleton.XLuaEngine.hotfixMgr.RegistedPtc(node.type, node.buffer, node.length); + } + } + this.m_oNetwork.ReturnNode(node); + } + } + + public CNetProcessor(CNetwork network, INetObserver ob) + { + this.m_oNetwork = network; + this.m_oObserver = ob; + this.r = new Random(DateTime.Now.Millisecond); + this.zDecompress = new ZlibStream(this.RecvStream, CompressionMode.Decompress, true); + } + + public void OnConnect(bool bSuccess) + { + bool flag = this.m_oObserver != null; + if (flag) + { + this.m_oObserver.OnConnect(bSuccess); + } + } + + public void OnClosed(NetErrCode nErrCode) + { + bool flag = this.m_oObserver != null; + if (flag) + { + this.m_oObserver.OnClosed(nErrCode); + } + } + + private void ProcessStream(NetEvent evt) + { + bool flag = (long)evt.m_oBuffer.Count < 12L; + if (flag) + { + XSingleton.singleton.AddErrorLog("head file size error", null, null, null, null, null); + } + else + { + this.head.Reset(); + this.head.Deserialize(ref evt.m_oBuffer); + int size = this.head.Size; + bool isInit = evt.m_oBuffer.IsInit; + if (isInit) + { + bool isCompressed = this.head.IsCompressed; + if (isCompressed) + { + this.zDecompress.Seek(0L, SeekOrigin.Begin); + this.zDecompress.SetLength(0L); + this.zDecompress.Write(evt.m_oBuffer.OriginalBuff, evt.m_oBuffer.StartOffset + size, evt.m_nBufferLength - size); + this.zDecompress.Flush(); + this.RecvStream.Seek(0L, SeekOrigin.Begin); + } + else + { + this.RecvStream.Seek(0L, SeekOrigin.Begin); + this.RecvStream.SetLength(0L); + this.RecvStream.Write(evt.m_oBuffer.OriginalBuff, evt.m_oBuffer.StartOffset + size, evt.m_nBufferLength - size); + this.RecvStream.Seek(0L, SeekOrigin.Begin); + } + } + } + } + + private void ProcessDeSerialize(NetEvent evt) + { + evt.IsPtc = this.head.IsPtc; + bool isPtc = this.head.IsPtc; + if (isPtc) + { + Protocol protocolThread = Protocol.GetProtocolThread(this.head.type); + bool flag = protocolThread == null; + if (flag) + { + bool flag2 = !this.m_oNetwork.ConatainPtc(this.head.type) && !this.m_oNetwork.IsOnlyDispacherInLua(this.head.type); + if (flag2) + { + XSingleton.singleton.AddErrorLog("Ptc Not found: ", this.head.type.ToString(), null, null, null, null); + } + } + else + { + try + { + bool flag3 = this.RecvStream.Length > 1024L; + if (flag3) + { + XSingleton.singleton.AddWarningLog2("Recv Ptc:{0} to long:{1}b", new object[] + { + protocolThread.GetProtoType(), + this.RecvStream.Length + }); + } + protocolThread.ThreadErrCode = EProtocolErrCode.ENoErr; + protocolThread.DeSerialize(this.RecvStream); + } + catch (Exception ex) + { + XSingleton.singleton.AddErrorLog2("Ptc {0} deserialize fail: {1} ", new object[] + { + this.head.type, + ex.Message + }); + bool flag4 = protocolThread != null; + if (flag4) + { + protocolThread.ThreadErrCode = EProtocolErrCode.EDeSerializeErr; + } + } + evt.protocol = protocolThread; + } + } + else + { + Rpc removeRpcByTag = Rpc.GetRemoveRpcByTag(this.head.tagID); + bool flag5 = removeRpcByTag == null; + if (!flag5) + { + try + { + bool flag6 = this.RecvStream.Length > 0L; + if (flag6) + { + bool flag7 = this.RecvStream.Length > 1024L; + if (flag7) + { + XSingleton.singleton.AddWarningLog2("Recv Rpc:{0} to long:{1}b", new object[] + { + removeRpcByTag.GetRpcType(), + this.RecvStream.Length + }); + } + removeRpcByTag.ThreadErrCode = EProtocolErrCode.ENoErr; + removeRpcByTag.DeSerialize(this.RecvStream); + } + else + { + bool isRpcNull = this.head.IsRpcNull; + if (isRpcNull) + { + removeRpcByTag.ThreadErrCode = EProtocolErrCode.ENullProtocol; + } + else + { + removeRpcByTag.ThreadErrCode = EProtocolErrCode.ENoErr; + removeRpcByTag.DeSerialize(this.RecvStream); + } + } + } + catch (Exception ex2) + { + XSingleton.singleton.AddErrorLog2("Rpc {0} deserialize fail: {1}", new object[] + { + this.head.type, + ex2.Message + }); + bool flag8 = removeRpcByTag != null; + if (flag8) + { + removeRpcByTag.ThreadErrCode = EProtocolErrCode.EDeSerializeErr; + } + } + evt.rpc = removeRpcByTag; + } + } + } + + public void OnPrePropress(NetEvent evt) + { + this.ProcessStream(evt); + this.ProcessDeSerialize(evt); + this.OnLuaProcessBuffer(evt); + } + + public void OnProcess(NetEvent evt) + { + CNetProcessor.m_sCurrentEvent = evt; + bool flag = evt.protocol != null; + if (flag) + { + bool flag2 = XSingleton.singleton.EnableRecord(); + if (flag2) + { + XSingleton.singleton.AddPoint(evt.protocol.GetProtoType(), evt.protocol.GetType().Name, (float)evt.m_nBufferLength, 0, XDebug.RecordChannel.ENetwork); + } + bool flag3 = !evt.IsOnlyLua; + if (flag3) + { + evt.protocol.Process(); + } + this.OnLuaProcess(evt); + } + else + { + bool flag4 = evt.rpc != null; + if (!flag4) + { + this.OnLuaProcess(evt); + return; + } + bool flag5 = XSingleton.singleton.EnableRecord(); + if (flag5) + { + XSingleton.singleton.AddPoint(evt.rpc.GetRpcType(), evt.rpc.GetType().Name, (float)evt.m_nBufferLength, 0, XDebug.RecordChannel.ENetwork); + } + evt.rpc.replyTick = evt.m_oTime; + bool flag6 = !evt.IsOnlyLua; + if (flag6) + { + evt.rpc.Process(); + } + else + { + evt.rpc.RemoveTimer(); + } + this.OnLuaProcess(evt); + } + bool flag7 = this.m_oObserver != null; + if (flag7) + { + this.m_oObserver.OnReceive(this.head.type, 0); + } + } + + public void OnPostProcess(NetEvent evt) + { + bool flag = evt.protocol != null; + if (flag) + { + Protocol.ReturnProtocolThread(evt.protocol); + } + CNetProcessor.m_sCurrentEvent = null; + } + + public static void ManualReturnProtocol() + { + bool flag = CNetProcessor.m_sCurrentEvent != null; + if (flag) + { + CNetProcessor.m_sCurrentEvent.ManualReturnProtocol(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CNetProcessor.cs.meta b/Client/Assets/Scripts/XMainClient/CNetProcessor.cs.meta new file mode 100644 index 00000000..735c62e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CNetProcessor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 838d0dec4bf6882439b5160e3bd912da +timeCreated: 1611404045 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CNetSender.cs b/Client/Assets/Scripts/XMainClient/CNetSender.cs new file mode 100644 index 00000000..3f53cd71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CNetSender.cs @@ -0,0 +1,93 @@ +using System; +using System.IO; +using XUtliPoolLib; + +namespace XMainClient +{ + public class CNetSender : INetSender, ILuaNetSender + { + private CNetwork m_oNetwork; + + private MemoryStream m_oSendStream; + + public CNetSender(CNetwork network) + { + this.m_oNetwork = network; + this.m_oSendStream = new MemoryStream(); + } + + public bool Send(Protocol protocol) + { + this.m_oSendStream.SetLength(0L); + this.m_oSendStream.Position = 0L; + protocol.SerializeWithHead(this.m_oSendStream); + bool flag = XSingleton.singleton.EnableRecord(); + if (flag) + { + XSingleton.singleton.AddPoint(protocol.GetProtoType(), protocol.GetType().Name, (float)this.m_oSendStream.Length, 1, XDebug.RecordChannel.ENetwork); + } + bool flag2 = this.m_oSendStream.Length > 1024L; + if (flag2) + { + XSingleton.singleton.AddWarningLog2("Send Ptc:{0} to long:{1}b", new object[] + { + protocol.GetProtoType(), + this.m_oSendStream.Length + }); + } + return this.m_oNetwork.Send(this.m_oSendStream.GetBuffer(), 0, (int)this.m_oSendStream.Length); + } + + public bool Send(uint _type, bool isRpc, uint tagID, byte[] _reqBuff) + { + this.m_oSendStream.SetLength(0L); + this.m_oSendStream.Position = 0L; + long num = 0L; + ProtocolHead sharedHead = ProtocolHead.SharedHead; + sharedHead.Reset(); + sharedHead.tagID = tagID; + sharedHead.type = _type; + sharedHead.flag = (isRpc ? 3u : 0u); + sharedHead.Serialize(this.m_oSendStream); + this.m_oSendStream.Write(_reqBuff, 0, _reqBuff.Length); + long position = this.m_oSendStream.Position; + uint value = (uint)(position - num - 4L); + this.m_oSendStream.Position = num; + this.m_oSendStream.Write(BitConverter.GetBytes(value), 0, 4); + this.m_oSendStream.Position = position; + byte[] buffer = this.m_oSendStream.GetBuffer(); + int num2 = (int)this.m_oSendStream.Length; + return this.m_oNetwork.Send(this.m_oSendStream.GetBuffer(), 0, (int)this.m_oSendStream.Length); + } + + public bool Send(Rpc rpc) + { + rpc.SocketID = this.m_oNetwork.GetSocketID(); + rpc.BeforeSend(); + this.m_oSendStream.SetLength(0L); + this.m_oSendStream.Position = 0L; + rpc.SerializeWithHead(this.m_oSendStream); + bool flag = XSingleton.singleton.EnableRecord(); + if (flag) + { + XSingleton.singleton.AddPoint(rpc.GetRpcType(), rpc.GetType().Name, (float)this.m_oSendStream.Length, 1, XDebug.RecordChannel.ENetwork); + } + bool flag2 = this.m_oSendStream.Length > 1024L; + if (flag2) + { + XSingleton.singleton.AddWarningLog2("Send Rpc:{0} to long:{1}b", new object[] + { + rpc.GetRpcType(), + this.m_oSendStream.Length + }); + } + bool flag3 = this.m_oNetwork.Send(this.m_oSendStream.GetBuffer(), 0, (int)this.m_oSendStream.Length); + bool flag4 = flag3; + if (flag4) + { + rpc.AfterSend(); + } + return flag3; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CNetSender.cs.meta b/Client/Assets/Scripts/XMainClient/CNetSender.cs.meta new file mode 100644 index 00000000..adbe2db9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CNetSender.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b34ea44e7e9f1114baa308bd85a90747 +timeCreated: 1611404388 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CNetwork.cs b/Client/Assets/Scripts/XMainClient/CNetwork.cs new file mode 100644 index 00000000..759aeb36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CNetwork.cs @@ -0,0 +1,692 @@ +using System; +using System.Collections.Generic; +using System.Threading; +using XUtliPoolLib; + +namespace XMainClient +{ + public class CNetwork : ILuaNetwork, IXInterface + { + public bool Deprecated { get; set; } + + public int SendBytes + { + get + { + return CClientSocket.TotalSendBytes; + } + } + + public int RecvBytes + { + get + { + return CClientSocket.TotalRecvBytes; + } + } + + private Queue m_oLuaNodeCache = new Queue(); + + private Queue m_oLuaBufferCache = new Queue(); + + private static LuaNetNode[] sm_RpcWaitingReplyCache = null; + + private static uint sm_luaTagID = Rpc.sMaxTagID; + + private List m_onlydispacherInLua = null; + + private Dictionary m_registedPtcList = null; + + private ILuaNetSender luaSender = null; + + private CClientSocket m_oSocket; + + private Queue m_oPreProcessQueue; + + private bool m_bUse3Thread = false; + + private int m_iMaxCountPerFrame = 50; + + private Thread m_oPreProcessThread; + + private Queue m_oDataQueue; + + private INetSender m_oSender; + + private INetProcess m_oProcess; + + private IPacketBreaker m_oBreaker; + + private uint m_dwSendBuffSize; + + private uint m_dwRecvBuffSize; + + private bool LuaSend(uint _type, bool isRpc, uint tagID, byte[] _reqBuff) + { + bool flag = this.GetSocketState() == SocketState.State_Connected; + if (flag) + { + bool flag2 = this.luaSender == null; + if (flag2) + { + this.luaSender = (this.m_oSender as ILuaNetSender); + } + bool flag3 = this.luaSender != null; + if (flag3) + { + return this.luaSender.Send(_type, isRpc, tagID, _reqBuff); + } + } + return false; + } + + public void InitLua(int rpcCache) + { + CNetwork.sm_RpcWaitingReplyCache = new LuaNetNode[rpcCache]; + } + + public bool LuaRigsterPtc(uint type, bool copyBuffer) + { + bool flag = this.m_registedPtcList == null; + if (flag) + { + this.m_registedPtcList = new Dictionary(); + } + bool flag2 = !this.m_registedPtcList.ContainsKey(type); + bool result; + if (flag2) + { + this.m_registedPtcList.Add(type, copyBuffer); + result = true; + } + else + { + result = false; + } + return result; + } + + public void LuaRegistDispacher(List types) + { + bool flag = this.m_onlydispacherInLua == null; + if (flag) + { + this.m_onlydispacherInLua = new List(); + } + this.m_onlydispacherInLua = types; + } + + private void RegisterRPC(uint tag, uint _type, bool copyBuffer, DelLuaRespond _onRes, DelLuaError _onError) + { + bool flag = CNetwork.sm_RpcWaitingReplyCache != null; + if (flag) + { + LuaNetNode node = this.GetNode(copyBuffer); + node.Reset(); + node.isRpc = true; + node.tagID = CNetwork.sm_luaTagID; + node.copyBuffer = copyBuffer; + node.resp = _onRes; + node.err = _onError; + Monitor.Enter(CNetwork.sm_RpcWaitingReplyCache); + CNetwork.sm_RpcWaitingReplyCache[(int)tag] = node; + Monitor.Exit(CNetwork.sm_RpcWaitingReplyCache); + } + } + + public void LuaRigsterRPC(uint _type, bool copyBuffer, DelLuaRespond _onRes, DelLuaError _onError) + { + uint rpctag = this.GetRPCTag(); + this.RegisterRPC(rpctag, _type, copyBuffer, _onRes, _onError); + } + + public bool ConatainPtc(uint type) + { + bool flag = this.m_registedPtcList == null; + return !flag && this.m_registedPtcList.ContainsKey(type); + } + + public bool ContainPtc(uint type, out bool copyBuffer) + { + bool flag = this.m_registedPtcList == null; + if (flag) + { + this.m_registedPtcList = new Dictionary(); + } + return this.m_registedPtcList.TryGetValue(type, out copyBuffer); + } + + public bool IsOnlyDispacherInLua(uint type) + { + bool flag = this.m_onlydispacherInLua == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.m_onlydispacherInLua.Contains(type); + result = flag2; + } + return result; + } + + private uint GetRPCTag() + { + uint num = CNetwork.sm_luaTagID++ - Rpc.sMaxTagID; + bool flag = (ulong)num >= (ulong)((long)CNetwork.sm_RpcWaitingReplyCache.Length); + if (flag) + { + CNetwork.sm_luaTagID = Rpc.sMaxTagID; + num = 0u; + } + return num; + } + + public LuaNetNode GetRemoveRpc(uint tagID) + { + tagID -= Rpc.sMaxTagID; + LuaNetNode result = null; + bool flag = CNetwork.sm_RpcWaitingReplyCache != null; + if (flag) + { + Monitor.Enter(CNetwork.sm_RpcWaitingReplyCache); + bool flag2 = tagID >= 0u && (ulong)tagID < (ulong)((long)CNetwork.sm_RpcWaitingReplyCache.Length); + if (flag2) + { + result = CNetwork.sm_RpcWaitingReplyCache[(int)tagID]; + CNetwork.sm_RpcWaitingReplyCache[(int)tagID] = null; + } + Monitor.Exit(CNetwork.sm_RpcWaitingReplyCache); + } + return result; + } + + public bool LuaSendPtc(uint _type, byte[] _reqBuff) + { + return this.LuaSend(_type, false, 0u, _reqBuff); + } + + public bool LuaSendRPC(uint _type, byte[] _reqBuff, DelLuaRespond _onRes, DelLuaError _onError) + { + bool flag = this.GetSocketState() == SocketState.State_Connected; + if (flag) + { + uint tagID = CNetwork.sm_luaTagID; + uint rpctag = this.GetRPCTag(); + bool flag2 = this.LuaSend(_type, true, tagID, _reqBuff); + if (flag2) + { + this.RegisterRPC(rpctag, _type, true, _onRes, _onError); + return true; + } + } + return false; + } + + private byte[] GetBuffer() + { + bool flag = this.m_oLuaBufferCache.Count > 0; + byte[] result; + if (flag) + { + result = this.m_oLuaBufferCache.Dequeue(); + } + else + { + result = new byte[CNetProcessor.MaxBuffSize]; + } + return result; + } + + public LuaNetNode GetNode(bool allocBuffer) + { + Monitor.Enter(this.m_oLuaNodeCache); + bool flag = this.m_oLuaNodeCache.Count > 0; + LuaNetNode luaNetNode; + if (flag) + { + luaNetNode = this.m_oLuaNodeCache.Dequeue(); + } + else + { + luaNetNode = new LuaNetNode(); + } + if (allocBuffer) + { + luaNetNode.buffer = this.GetBuffer(); + } + Monitor.Exit(this.m_oLuaNodeCache); + return luaNetNode; + } + + public void ReturnNode(LuaNetNode node) + { + Monitor.Enter(this.m_oLuaNodeCache); + this.m_oLuaNodeCache.Enqueue(node); + bool flag = node.buffer != null; + if (flag) + { + this.m_oLuaBufferCache.Enqueue(node.buffer); + node.buffer = null; + } + Monitor.Exit(this.m_oLuaNodeCache); + } + + public void LuaClear() + { + Monitor.Enter(this.m_oLuaNodeCache); + this.m_oLuaNodeCache.Clear(); + this.m_oLuaBufferCache.Clear(); + Monitor.Exit(this.m_oLuaNodeCache); + } + + public static void PrintBytes(byte[] bytes) + { + CNetwork.PrintBytes("LUA", bytes); + } + + public static void PrintBytes(string tag, byte[] bytes) + { + } + + public CNetwork() + { + this.m_oSocket = null; + this.m_oProcess = null; + this.m_dwSendBuffSize = 0u; + this.m_dwRecvBuffSize = 0u; + } + + public bool Init(INetProcess oProc, INetSender oSender, IPacketBreaker oBreaker, uint dwSendBuffSize, uint dwRecvBuffSize) + { + this.m_oSender = oSender; + this.m_oProcess = oProc; + this.m_oBreaker = oBreaker; + this.m_dwSendBuffSize = dwSendBuffSize; + this.m_dwRecvBuffSize = dwRecvBuffSize; + this.m_oDataQueue = new Queue(); + this.m_oPreProcessQueue = new Queue(); + bool bUse3Thread = this.m_bUse3Thread; + if (bUse3Thread) + { + this.m_oPreProcessThread = new Thread(new ThreadStart(this.PreProcess)); + this.m_oPreProcessThread.Start(); + } + return true; + } + + public void UnInit() + { + } + + public int GetSocketID() + { + bool flag = this.m_oSocket == null; + int result; + if (flag) + { + result = 0; + } + else + { + result = this.m_oSocket.ID; + } + return result; + } + + public bool IsDisconnect() + { + return this.GetSocketState() == SocketState.State_Closed; + } + + public bool IsConnecting() + { + return this.GetSocketState() == SocketState.State_Connecting; + } + + public bool IsConnected() + { + return this.GetSocketState() == SocketState.State_Connected; + } + + public SocketState GetSocketState() + { + bool flag = this.m_oSocket == null; + SocketState result; + if (flag) + { + result = SocketState.State_Closed; + } + else + { + result = this.m_oSocket.GetState(); + } + return result; + } + + public bool Send(Protocol protocol) + { + bool flag = this.GetSocketState() == SocketState.State_Connected; + if (flag) + { + bool flag2 = this.m_oSender.Send(protocol); + if (flag2) + { + return true; + } + } + return false; + } + + public bool Send(Rpc rpc) + { + bool flag = this.GetSocketState() == SocketState.State_Connected; + if (flag) + { + bool flag2 = this.m_oSender.Send(rpc); + if (flag2) + { + return true; + } + } + return false; + } + + public bool Connect(string host, int port) + { + XSingleton.singleton.AddLog("connect to ", host, ":", port.ToString(), null, null, XDebugColor.XDebug_None); + bool flag = this.m_oSocket == null; + if (flag) + { + this.m_oSocket = new CClientSocket(); + } + bool flag2 = !this.m_oSocket.Init(this.m_dwSendBuffSize, this.m_dwRecvBuffSize, this, this.m_oBreaker); + bool result; + if (flag2) + { + this.m_oSocket.Close(); + this.m_oProcess.OnConnect(false); + result = false; + } + else + { + bool flag3 = this.m_oSocket.Connect(host, port); + bool flag4 = !flag3; + if (flag4) + { + this.m_oProcess.OnConnect(false); + } + result = flag3; + } + return result; + } + + public void Close(NetErrCode err) + { + bool flag = this.m_oSocket != null; + if (flag) + { + int id = this.m_oSocket.ID; + this.m_oSocket.Close(); + this.m_oSocket = null; + bool flag2 = this.m_oDataQueue.Count > 0; + if (flag2) + { + NetEvent netEvent = this.m_oDataQueue.Dequeue(); + while (netEvent != null) + { + CClientSocket.ReturnBuffer(ref netEvent.m_oBuffer); + XNetEventPool.RecycleNoLock(netEvent); + bool flag3 = this.m_oDataQueue.Count > 0; + if (flag3) + { + netEvent = this.m_oDataQueue.Dequeue(); + } + else + { + netEvent = null; + } + } + this.m_oDataQueue.Clear(); + } + bool flag4 = this.m_oPreProcessQueue.Count > 0; + if (flag4) + { + NetEvent netEvent2 = this.m_oPreProcessQueue.Dequeue(); + while (netEvent2 != null) + { + CClientSocket.ReturnBuffer(ref netEvent2.m_oBuffer); + XNetEventPool.RecycleNoLock(netEvent2); + bool flag5 = this.m_oPreProcessQueue.Count > 0; + if (flag5) + { + netEvent2 = this.m_oPreProcessQueue.Dequeue(); + } + else + { + netEvent2 = null; + } + } + this.m_oPreProcessQueue.Clear(); + } + this.PushClosedEvent(err, id); + } + } + + public bool Send(byte[] buffer) + { + bool flag = this.GetSocketState() == SocketState.State_Connected; + return flag && this.m_oSocket.Send(buffer); + } + + public bool Send(byte[] buffer, int start, int length) + { + bool flag = this.GetSocketState() == SocketState.State_Connected; + return flag && this.m_oSocket.Send(buffer, start, length); + } + + public int ProcessMsg() + { + bool flag = this.m_oProcess == null; + int result; + if (flag) + { + result = 0; + } + else + { + int num = 0; + for (NetEvent netEvent = this.DeQueue(); netEvent != null; netEvent = this.DeQueue()) + { + switch (netEvent.m_nEvtType) + { + case NetEvtType.Event_Connect: + this.m_oProcess.OnConnect(netEvent.m_bSuccess); + break; + case NetEvtType.Event_Closed: + this.m_oProcess.OnClosed(netEvent.m_nErrCode); + XSingleton.singleton.AddGreenLog("close socket ", netEvent.m_SocketID.ToString(), " event is processed", null, null, null); + break; + case NetEvtType.Event_Receive: + { + bool bUse3Thread = this.m_bUse3Thread; + if (bUse3Thread) + { + this.m_oProcess.OnProcess(netEvent); + this.m_oProcess.OnPostProcess(netEvent); + } + else + { + this.m_oProcess.OnProcess(netEvent); + this.m_oProcess.OnPostProcess(netEvent); + } + break; + } + default: + XSingleton.singleton.AddErrorLog("null event", null, null, null, null, null); + break; + } + CClientSocket.ReturnBuffer(ref netEvent.m_oBuffer); + XNetEventPool.Recycle(netEvent); + num++; + bool flag2 = num >= this.m_iMaxCountPerFrame; + if (flag2) + { + break; + } + } + result = num; + } + return result; + } + + public void EnQueue(NetEvent evt, bool propress) + { + bool flag = evt == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("null event EnQueue", null, null, null, null, null); + } + else if (propress) + { + Monitor.Enter(this.m_oPreProcessQueue); + this.m_oPreProcessQueue.Enqueue(evt); + Monitor.Exit(this.m_oPreProcessQueue); + } + else + { + Monitor.Enter(this.m_oDataQueue); + this.m_oDataQueue.Enqueue(evt); + Monitor.Exit(this.m_oDataQueue); + } + } + + private NetEvent DeQueue() + { + NetEvent result = null; + Monitor.Enter(this.m_oDataQueue); + bool flag = this.m_oDataQueue.Count > 0; + if (flag) + { + result = this.m_oDataQueue.Dequeue(); + } + Monitor.Exit(this.m_oDataQueue); + return result; + } + + public void PushConnectEvent(bool bSuccess) + { + NetEvent @event = XNetEventPool.GetEvent(); + @event.m_nEvtType = NetEvtType.Event_Connect; + @event.m_bSuccess = bSuccess; + this.EnQueue(@event, false); + } + + public void PushClosedEvent(NetErrCode nErrCode, int sockid) + { + NetEvent @event = XNetEventPool.GetEvent(); + @event.m_nEvtType = NetEvtType.Event_Closed; + @event.m_nErrCode = nErrCode; + @event.m_SocketID = sockid; + this.EnQueue(@event, false); + } + + public void PushReceiveEvent(ref SmallBuffer oData, int length) + { + NetEvent @event = XNetEventPool.GetEvent(); + @event.m_nEvtType = NetEvtType.Event_Receive; + @event.m_oBuffer = oData; + @event.m_nBufferLength = length; + this.m_oProcess.OnPrePropress(@event); + this.EnQueue(@event, this.m_bUse3Thread); + } + + private void InnerPreprocess() + { + int i = 0; + while (i < this.m_iMaxCountPerFrame) + { + NetEvent netEvent = null; + bool flag = false; + Monitor.Enter(this.m_oPreProcessQueue); + bool flag2 = this.m_oPreProcessQueue.Count > 0; + if (flag2) + { + netEvent = this.m_oPreProcessQueue.Dequeue(); + flag = true; + } + Monitor.Exit(this.m_oPreProcessQueue); + bool flag3 = !flag; + if (flag3) + { + break; + } + i++; + bool flag4 = netEvent == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("null event InnerPreprocess", null, null, null, null, null); + } + else + { + bool flag5 = netEvent.m_nEvtType == NetEvtType.Event_Receive; + if (flag5) + { + this.m_oProcess.OnPrePropress(netEvent); + this.EnQueue(netEvent, false); + } + else + { + XSingleton.singleton.AddErrorLog("unknown event", netEvent.m_nEvtType.ToString(), null, null, null, null); + } + } + } + } + + private void PreProcess() + { + for (;;) + { + this.InnerPreprocess(); + Thread.Sleep(1); + } + } + + public void OnGamePaused(bool pause) + { + bool flag = this.m_oSocket != null; + if (flag) + { + if (pause) + { + this.m_oSocket.m_bPause = true; + this.m_oSocket.m_nPauseRecvLen = 0; + } + else + { + this.m_oSocket.m_bPause = false; + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "PauseRecvLen: ", + this.m_oSocket.m_nPauseRecvLen, + ", Max:", + CClientSocket.PAUSE_RECV_MAX_LEN + }), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = this.m_oSocket.m_nPauseRecvLen > CClientSocket.PAUSE_RECV_MAX_LEN; + if (flag2) + { + this.Close(NetErrCode.Net_PauseRecv_Overflow); + } + } + } + } + + public void Clear() + { + XNetEventPool.Clear(); + this.LuaClear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CNetwork.cs.meta b/Client/Assets/Scripts/XMainClient/CNetwork.cs.meta new file mode 100644 index 00000000..2dc9fe54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CNetwork.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 10646d85cb663c94495530c6e8140053 +timeCreated: 1611403218 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CPacketBreaker.cs b/Client/Assets/Scripts/XMainClient/CPacketBreaker.cs new file mode 100644 index 00000000..4b266b47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CPacketBreaker.cs @@ -0,0 +1,31 @@ +using System; + +namespace XMainClient +{ + public class CPacketBreaker : IPacketBreaker + { + public int BreakPacket(byte[] data, int index, int len) + { + bool flag = len < 4; + int result; + if (flag) + { + result = 0; + } + else + { + int num = BitConverter.ToInt32(data, index); + bool flag2 = len < 4 + num; + if (flag2) + { + result = 0; + } + else + { + result = num + 4; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CPacketBreaker.cs.meta b/Client/Assets/Scripts/XMainClient/CPacketBreaker.cs.meta new file mode 100644 index 00000000..21b7d9ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CPacketBreaker.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dab7e32a7fa36c04e9fa8cf9c3f79de4 +timeCreated: 1611404649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CUIIBShop.cs b/Client/Assets/Scripts/XMainClient/CUIIBShop.cs new file mode 100644 index 00000000..473ffbac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CUIIBShop.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public struct CUIIBShop + { + public CIBShop item1; + + public CIBShop item2; + } +} diff --git a/Client/Assets/Scripts/XMainClient/CUIIBShop.cs.meta b/Client/Assets/Scripts/XMainClient/CUIIBShop.cs.meta new file mode 100644 index 00000000..5602d998 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CUIIBShop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f2be867051aafe4aba99ee16d917922 +timeCreated: 1611403401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CalculatorBehaviour.cs b/Client/Assets/Scripts/XMainClient/CalculatorBehaviour.cs new file mode 100644 index 00000000..8b7817f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CalculatorBehaviour.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class CalculatorBehaviour : DlgBehaviourBase + { + public IXUISprite m_sprMax; + + public IXUISprite m_sprOK; + + public IXUISprite m_sprDel; + + public IXUISprite m_sprBg; + + public IXUISprite[] m_sprCounter = new IXUISprite[10]; + + private void Awake() + { + this.m_sprMax = (base.transform.Find("Bg/p/max").GetComponent("XUISprite") as IXUISprite); + this.m_sprOK = (base.transform.Find("Bg/p/ok").GetComponent("XUISprite") as IXUISprite); + this.m_sprDel = (base.transform.Find("Bg/p/del").GetComponent("XUISprite") as IXUISprite); + this.m_sprBg = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + for (int i = 0; i < this.m_sprCounter.Length; i++) + { + this.m_sprCounter[i] = (base.transform.Find("Bg/p/" + i).GetComponent("XUISprite") as IXUISprite); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CalculatorBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/CalculatorBehaviour.cs.meta new file mode 100644 index 00000000..7fd67767 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CalculatorBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f4c03f69b84fb64e8f22819a0d1f045 +timeCreated: 1611403401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CalculatorDlg.cs b/Client/Assets/Scripts/XMainClient/CalculatorDlg.cs new file mode 100644 index 00000000..8f45659a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CalculatorDlg.cs @@ -0,0 +1,98 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class CalculatorDlg : DlgBase + { + public override string fileName + { + get + { + return "Common/Calculator"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private CalculatorKeyBack mCallback = null; + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_sprDel.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnDelClick)); + base.uiBehaviour.m_sprMax.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMaxClick)); + base.uiBehaviour.m_sprOK.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOKClick)); + base.uiBehaviour.m_sprBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOKClick)); + for (int i = 0; i < base.uiBehaviour.m_sprCounter.Length; i++) + { + base.uiBehaviour.m_sprCounter[i].ID = (ulong)((long)i); + base.uiBehaviour.m_sprCounter[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCounterClick)); + } + } + + protected override void OnHide() + { + base.OnHide(); + this.mCallback = null; + } + + public void Show(CalculatorKeyBack func, Vector3 pos) + { + this.mCallback = func; + this.SetVisible(true, true); + base.uiBehaviour.transform.localPosition = pos; + } + + private void OnCounterClick(IXUISprite sp) + { + ulong id = sp.ID; + bool flag = this.mCallback != null; + if (flag) + { + this.mCallback((CalculatorKey)id); + } + } + + private void OnMaxClick(IXUISprite sp) + { + bool flag = this.mCallback != null; + if (flag) + { + this.mCallback(CalculatorKey.MAX); + } + } + + private void OnOKClick(IXUISprite sp) + { + bool flag = this.mCallback != null; + if (flag) + { + this.mCallback(CalculatorKey.OK); + } + this.SetVisible(false, true); + } + + private void OnDelClick(IXUISprite sp) + { + bool flag = this.mCallback != null; + if (flag) + { + this.mCallback(CalculatorKey.DEL); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CalculatorDlg.cs.meta b/Client/Assets/Scripts/XMainClient/CalculatorDlg.cs.meta new file mode 100644 index 00000000..51207515 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CalculatorDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31655b87be8fccb43aa16b45daea0564 +timeCreated: 1611403544 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CalculatorKey.cs b/Client/Assets/Scripts/XMainClient/CalculatorKey.cs new file mode 100644 index 00000000..aedcf9c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CalculatorKey.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + public enum CalculatorKey + { + KEY0, + KEY1, + KEY2, + KEY3, + KEY4, + KEY5, + KEY6, + KEY7, + KEY8, + KEY9, + OK, + DEL, + MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/CalculatorKey.cs.meta b/Client/Assets/Scripts/XMainClient/CalculatorKey.cs.meta new file mode 100644 index 00000000..bbee7c95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CalculatorKey.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22beea5dd284b694bbe39d01235ef4c5 +timeCreated: 1611403424 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CalculatorKeyBack.cs b/Client/Assets/Scripts/XMainClient/CalculatorKeyBack.cs new file mode 100644 index 00000000..451b9745 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CalculatorKeyBack.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void CalculatorKeyBack(CalculatorKey key); +} diff --git a/Client/Assets/Scripts/XMainClient/CalculatorKeyBack.cs.meta b/Client/Assets/Scripts/XMainClient/CalculatorKeyBack.cs.meta new file mode 100644 index 00000000..baaa6e11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CalculatorKeyBack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92189eab68724234f81d5f20b6e2e19a +timeCreated: 1611404145 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CallMonsterArg.cs b/Client/Assets/Scripts/XMainClient/CallMonsterArg.cs new file mode 100644 index 00000000..0802d1cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CallMonsterArg.cs @@ -0,0 +1,26 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + public class CallMonsterArg + { + public int MonsterTemplateId; + + public int CopyMonsterId; + + public Vector3 MonsterPos; + + public ulong MonsterUnitId; + + public int WaveId; + + public ulong OldMonsterUnitId; + + public float FaceDir; + + public float HPPercent; + + public float LifeTime; + } +} diff --git a/Client/Assets/Scripts/XMainClient/CallMonsterArg.cs.meta b/Client/Assets/Scripts/XMainClient/CallMonsterArg.cs.meta new file mode 100644 index 00000000..475bf3ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CallMonsterArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d903334379dfa8d4b94830d2e9fafb4d +timeCreated: 1611404642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CandidateInfo.cs b/Client/Assets/Scripts/XMainClient/CandidateInfo.cs new file mode 100644 index 00000000..260da7d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CandidateInfo.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public class CandidateInfo + { + public uint level; + + public string icon; + + public string name; + + public string declare; + } +} diff --git a/Client/Assets/Scripts/XMainClient/CandidateInfo.cs.meta b/Client/Assets/Scripts/XMainClient/CandidateInfo.cs.meta new file mode 100644 index 00000000..732b7dac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CandidateInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87b46f18a31079c4383e658cbe3aa1ac +timeCreated: 1611404081 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CapacityBehaviour.cs b/Client/Assets/Scripts/XMainClient/CapacityBehaviour.cs new file mode 100644 index 00000000..2038c131 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CapacityBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class CapacityBehaviour : DlgBehaviourBase + { + public IXUISprite m_closeSpr; + + public IXUICheckBox m_checkBox; + + public IXUILabel m_lable; + + private void Awake() + { + this.m_closeSpr = (base.transform.Find("Bg/Black").GetComponent("XUISprite") as IXUISprite); + this.m_checkBox = (base.transform.Find("ItemBlock").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_lable = (base.transform.Find("Bg/Tip").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CapacityBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/CapacityBehaviour.cs.meta new file mode 100644 index 00000000..539e31ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CapacityBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9fc5039dec134b74ba7cbe6a76b4b255 +timeCreated: 1611404247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CapacityDownDlg.cs b/Client/Assets/Scripts/XMainClient/CapacityDownDlg.cs new file mode 100644 index 00000000..4441da7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CapacityDownDlg.cs @@ -0,0 +1,199 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CapacityDownDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/CapacityDownDlg"; + } + } + + public override int layer + { + get + { + return 99; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public int m_oldPPT = 0; + + private bool m_init = false; + + private XOptionsDocument m_optionsDoc; + + public bool IsInit = false; + + private XOptionsDefine m_define; + + private string m_strKey; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closeSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickCloseSpr)); + base.uiBehaviour.m_checkBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickChexckBox)); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.IsInit = true; + this.m_optionsDoc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public void InitPPT() + { + bool flag = !this.m_init; + if (flag) + { + this.m_init = true; + XPlayer player = XSingleton.singleton.Player; + bool flag2 = player != null; + if (flag2) + { + XPlayerAttributes xplayerAttributes = player.Attributes as XPlayerAttributes; + bool flag3 = xplayerAttributes != null; + if (flag3) + { + this.m_oldPPT = (int)xplayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + } + } + } + } + + public void UpdatePPT(int newPPT) + { + bool flag = !EquipFusionDocument.IsEquipDown || newPPT > this.m_oldPPT; + if (flag) + { + this.m_oldPPT = newPPT; + EquipFusionDocument.IsEquipDown = false; + } + else + { + EquipFusionDocument.IsEquipDown = false; + this.m_oldPPT = newPPT; + this.m_define = XOptionsDefine.OD_NO_CAPACITYDOWN_TIPS; + this.m_strKey = "PowerDownTips"; + this.m_optionsDoc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag2 = this.m_optionsDoc.GetValue(this.m_define) == 1; + if (!flag2) + { + this.SetVisible(true, true); + } + } + } + + public void ShowRecycleTips() + { + this.m_define = XOptionsDefine.OD_RECYCLE_TIPS; + this.m_strKey = "RecycleTips"; + this.m_optionsDoc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = this.m_optionsDoc.GetValue(this.m_define) == 1; + if (!flag) + { + this.SetVisible(true, true); + } + } + + public void ShowTips(XOptionsDefine opt, string key) + { + this.m_define = opt; + this.m_strKey = key; + this.m_optionsDoc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = this.m_optionsDoc.GetValue(this.m_define) == 1; + if (!flag) + { + this.SetVisible(true, true); + } + } + + private void FillContent() + { + base.uiBehaviour.m_checkBox.bChecked = false; + base.uiBehaviour.m_checkBox.ForceSetFlag(false); + base.uiBehaviour.m_lable.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString(this.m_strKey))); + } + + private void OnClickCloseSpr(IXUISprite spr) + { + this.SetVisible(false, true); + } + + private bool OnClickChexckBox(IXUICheckBox box) + { + bool isInit = this.IsInit; + bool result; + if (isInit) + { + this.IsInit = false; + result = false; + } + else + { + bool flag = this.m_optionsDoc.GetValue(this.m_define) == 1; + if (flag) + { + this.m_optionsDoc.SetValue(this.m_define, 0, true); + } + else + { + this.m_optionsDoc.SetValue(this.m_define, 1, true); + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CapacityDownDlg.cs.meta b/Client/Assets/Scripts/XMainClient/CapacityDownDlg.cs.meta new file mode 100644 index 00000000..dec7f48e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CapacityDownDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f8ea4c138f20fd4b8055c50bbfbab1f +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CardCollectBehaviour.cs b/Client/Assets/Scripts/XMainClient/CardCollectBehaviour.cs new file mode 100644 index 00000000..27d84ffe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardCollectBehaviour.cs @@ -0,0 +1,214 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CardCollectBehaviour : DlgBehaviourBase + { + public Transform m_CardGroupList; + + public Transform m_Deck; + + public Transform m_CardTotalFrame; + + public Transform m_CardDetail; + + public Transform m_CardShopFrame; + + public Transform m_FilterPanel; + + public Transform m_ResolvePanel; + + public IXUILabel m_OldSumAttribute; + + public IXUISprite m_CardGroupListClose; + + public IXUILabel m_DeckAttribute; + + public IXUIButton m_DeckClose; + + public IXUIButton m_DeckHelp; + + public IXUISprite m_OpenCardList; + + public IXUISprite m_OpenCardShop; + + public IXUIWrapContent m_WrapContent; + + public IXUILabel m_ActivatedNum; + + public IXUILabel m_Title; + + public XUIPool m_StarPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_GroupScrollView; + + public IXUIScrollView m_DeckScrollView; + + public IUIDummy m_Snapshot; + + public IXUILabel m_RewardNeedNum; + + public Transform m_ActionNumRewardTips; + + public IXUISprite m_RewardClose; + + public IXUILabel m_RewardAttribute; + + public Transform m_GetActionNumReward; + + public IXUISprite m_GetRewardClose; + + public IXUILabel m_GetRewardAttribute; + + public IXUILabel m_SumAttribute; + + public IXUISprite m_GoRisk; + + public Transform m_RewardActive; + + public Transform m_RewardNoActive; + + public Transform m_DeckLock; + + public IXUIButton m_DeckUnlock; + + public IXUILabel m_DeckLabel; + + public IXUIButton m_DetailClose; + + public IXUISprite m_DetailResolve; + + public IXUISprite m_DetailBuy; + + public IXUISprite m_OldGoRisk; + + public IXUISprite m_GoShop; + + public IXUILabel m_DetailNum; + + public IXUILabel m_DetailActiveNum; + + public IXUILabel m_DetailName; + + public IXUILabel m_DetailStory; + + public IXUIScrollView m_DetailGroupScrollView; + + public IXUITexture m_DetailPic; + + public Transform m_Fx; + + public IXUISprite m_ResolveClose; + + public Transform m_ResolveGetItem; + + public IXUISprite m_ResolveOK; + + public IXUISprite m_ResolveNumSub; + + public IXUISprite m_ResolveNumAdd; + + public IXUILabel m_ResolveNum; + + public XUIPool m_NumRewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_DetailGroupPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_OldDeckPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_DeckPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_CardGroupList = base.transform.Find("Bg"); + this.m_CardGroupList = base.transform.Find("Bg/CardGroupList"); + this.m_CardGroupListClose = (this.m_CardGroupList.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_OldSumAttribute = (this.m_CardGroupList.Find("Bg/Attribute").GetComponent("XUILabel") as IXUILabel); + Transform transform = this.m_CardGroupList.Find("Bg/CardGroupPanle/DeckTpl"); + this.m_OldDeckPool.SetupPool(null, transform.gameObject, (uint)XCardCollectDocument.GroupMax, false); + this.m_Deck = base.transform.Find("Bg/Deck"); + this.m_DeckClose = (this.m_Deck.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_DeckHelp = (this.m_Deck.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_DeckAttribute = (this.m_Deck.Find("Bg/Attribute").GetComponent("XUILabel") as IXUILabel); + Transform transform2 = this.m_Deck.Find("Bg/ActionNumReward/NumRewardTpl"); + this.m_NumRewardPool.SetupPool(null, transform2.gameObject, XDeck.DECK_PER_REWARD_COUNT_MAX, false); + this.m_OpenCardList = (this.m_Deck.Find("Bg/OpenCardList").GetComponent("XUISprite") as IXUISprite); + this.m_OpenCardShop = (this.m_Deck.Find("Bg/OpenShop").GetComponent("XUISprite") as IXUISprite); + this.m_ActivatedNum = (this.m_Deck.Find("Bg/Frame/ActivatedNum").GetComponent("XUILabel") as IXUILabel); + this.m_Title = (this.m_Deck.Find("Bg/Frame/Title").GetComponent("XUILabel") as IXUILabel); + this.m_ActionNumRewardTips = this.m_Deck.Find("Bg/ActionNumRewardTips"); + this.m_RewardClose = (this.m_ActionNumRewardTips.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_RewardActive = this.m_ActionNumRewardTips.Find("Active"); + this.m_RewardNoActive = this.m_ActionNumRewardTips.Find("NoActive"); + this.m_RewardNeedNum = (this.m_ActionNumRewardTips.Find("NoActive/Num").GetComponent("XUILabel") as IXUILabel); + this.m_RewardAttribute = (this.m_ActionNumRewardTips.Find("Attribute").GetComponent("XUILabel") as IXUILabel); + this.m_GetActionNumReward = this.m_Deck.Find("Bg/GetActionNumReward"); + this.m_GetRewardClose = (this.m_GetActionNumReward.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_GetRewardAttribute = (this.m_GetActionNumReward.Find("Attribute").GetComponent("XUILabel") as IXUILabel); + Transform transform3 = this.m_Deck.Find("Bg/GroupPanel/WrapContent/GroupTpl/Item/ItemTpl"); + this.m_ItemPool.SetupPool(null, transform3.gameObject, XDeck.GROUP_NEED_CARD_MAX, false); + this.m_ItemPool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)XDeck.GROUP_NEED_CARD_MAX)) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(this.m_ItemPool.TplWidth * num), 0f, 0f) + this.m_ItemPool.TplPos; + num++; + } + this.m_ItemPool.ActualReturnAll(false); + this.m_GroupScrollView = (this.m_Deck.Find("Bg/GroupPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (this.m_Deck.Find("Bg/GroupPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_SumAttribute = (this.m_Deck.Find("Bg/TotalAttri").GetComponent("XUILabel") as IXUILabel); + this.m_GoRisk = (this.m_Deck.Find("Bg/GoRisk").GetComponent("XUISprite") as IXUISprite); + this.m_DeckScrollView = (this.m_Deck.Find("Bg/DeckPanel").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform4 = this.m_Deck.Find("Bg/DeckPanel/DeckTpl"); + Transform transform5 = transform4.Find("StarTpl"); + this.m_StarPool.SetupPool(null, transform5.gameObject, CardCollectView.STAR_MAX, false); + int num2 = 0; + while ((long)num2 < (long)((ulong)CardCollectView.STAR_MAX)) + { + GameObject gameObject2 = this.m_StarPool.FetchGameObject(false); + gameObject2.name = string.Format("star{0}", num2); + gameObject2.transform.localPosition = new Vector3((float)(this.m_StarPool.TplWidth * num2), 0f, 0f) + this.m_StarPool.TplPos; + num2++; + } + this.m_DeckPool.SetupPool(null, transform4.gameObject, (uint)XCardCollectDocument.GroupMax, false); + this.m_DeckLock = this.m_Deck.Find("Bg/Lock"); + this.m_DeckUnlock = (this.m_DeckLock.Find("BtnUnlock").GetComponent("XUIButton") as IXUIButton); + this.m_DeckLabel = (this.m_DeckLock.Find("Label").GetComponent("XUILabel") as IXUILabel); + this.m_CardTotalFrame = base.transform.Find("Bg/CardList"); + this.m_CardDetail = base.transform.Find("Bg/Detail"); + this.m_DetailClose = (this.m_CardDetail.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform6 = this.m_CardDetail.Find("Bg/Left"); + this.m_DetailName = (transform6.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_DetailStory = (transform6.Find("Story").GetComponent("XUILabel") as IXUILabel); + this.m_DetailPic = (transform6.Find("Pic").GetComponent("XUITexture") as IXUITexture); + this.m_Snapshot = (this.m_CardDetail.Find("Bg/Left/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_DetailActiveNum = (this.m_CardDetail.Find("Bg/ActiveNum").GetComponent("XUILabel") as IXUILabel); + this.m_DetailResolve = (this.m_CardDetail.Find("Bg/Num/Resolve").GetComponent("XUISprite") as IXUISprite); + this.m_DetailBuy = (this.m_CardDetail.Find("Bg/Num/Buy").GetComponent("XUISprite") as IXUISprite); + this.m_DetailNum = (this.m_CardDetail.Find("Bg/Num/Num").GetComponent("XUILabel") as IXUILabel); + this.m_OldGoRisk = (this.m_CardDetail.Find("Bg/GoRisk").GetComponent("XUISprite") as IXUISprite); + this.m_GoShop = (this.m_CardDetail.Find("Bg/GoShop").GetComponent("XUISprite") as IXUISprite); + this.m_DetailGroupScrollView = (this.m_CardDetail.Find("Bg/GroupPanel").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform7 = this.m_CardDetail.Find("Bg/GroupPanel/GroupTpl"); + this.m_DetailGroupPool.SetupPool(null, transform7.gameObject, 5u, false); + this.m_CardShopFrame = base.transform.Find("Bg/Shop"); + this.m_FilterPanel = base.transform.Find("Bg/FilterPanel"); + this.m_ResolvePanel = base.transform.Find("Bg/ResolvePanel"); + this.m_ResolveClose = (this.m_ResolvePanel.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_ResolveGetItem = this.m_ResolvePanel.Find("Item"); + this.m_ResolveOK = (this.m_ResolvePanel.Find("OK").GetComponent("XUISprite") as IXUISprite); + this.m_ResolveNum = (this.m_ResolvePanel.Find("Count/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ResolveNumSub = (this.m_ResolvePanel.Find("Count/Sub").GetComponent("XUISprite") as IXUISprite); + this.m_ResolveNumAdd = (this.m_ResolvePanel.Find("Count/Add").GetComponent("XUISprite") as IXUISprite); + this.m_Fx = base.transform.Find("Bg/Fx"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CardCollectBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/CardCollectBehaviour.cs.meta new file mode 100644 index 00000000..ed47c7cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardCollectBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2bc3a2543ab706488eabd2e3075b4be +timeCreated: 1611404386 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CardCollectView.cs b/Client/Assets/Scripts/XMainClient/CardCollectView.cs new file mode 100644 index 00000000..04e54118 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardCollectView.cs @@ -0,0 +1,1153 @@ +using System; +using System.Collections.Generic; +using System.Text; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CardCollectView : DlgBase + { + public CardTotalHandler TotalHandler + { + get + { + return this.m_CardTotalHandler; + } + } + + public XCardShopHandler ShopHandler + { + get + { + return this.m_CardShopHandler; + } + } + + public CardPage CurPage + { + get + { + bool flag = this.m_uiStack.Count == 0; + CardPage result; + if (flag) + { + result = CardPage.None; + } + else + { + result = this.m_uiStack.Peek(); + } + return result; + } + } + + public override string fileName + { + get + { + return "GameSystem/CardCollectDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CardCollect); + } + } + + private XCardCollectDocument doc = null; + + private XNormalShopDocument shopdoc = null; + + private CardTotalHandler m_CardTotalHandler; + + private XCardShopHandler m_CardShopHandler; + + public static readonly uint STAR_MAX = 5u; + + public QualityFilterHandler qualityFilter; + + private static int QualityMask = 63; + + private uint[] AttrSort = new uint[] + { + (uint)XFastEnumIntEqualityComparer.ToInt(XAttributeDefine.XAttr_PhysicalAtk_Basic), + (uint)XFastEnumIntEqualityComparer.ToInt(XAttributeDefine.XAttr_MagicAtk_Basic), + (uint)XFastEnumIntEqualityComparer.ToInt(XAttributeDefine.XAttr_PhysicalDef_Basic), + (uint)XFastEnumIntEqualityComparer.ToInt(XAttributeDefine.XAttr_MagicDef_Basic), + (uint)XFastEnumIntEqualityComparer.ToInt(XAttributeDefine.XAttr_MaxHP_Basic) + }; + + private XDummy _CardDummy = null; + + private Stack m_uiStack = new Stack(); + + public int CurCardID = 0; + + public int CurShopID = 0; + + private XFx _StarUpFx; + + private XNormalShopGoods CurGoods; + + protected override void Init() + { + this.shopdoc = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + this.doc = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + this.doc.View = this; + DlgHandlerBase.EnsureCreate(ref this.m_CardShopHandler, base.uiBehaviour.m_CardShopFrame.gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.m_CardTotalHandler, base.uiBehaviour.m_CardTotalFrame.gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.qualityFilter, base.uiBehaviour.m_FilterPanel.gameObject, null, true); + this.qualityFilter.Set(CardCollectView.QualityMask, new QualityFilterCallback(this._OnFilterOK)); + } + + protected void _OnFilterOK(int mask) + { + CardCollectView.QualityMask = mask; + List list = new List(); + int num = 1; + for (int i = 1; i <= 5; i++) + { + num <<= 1; + bool flag = (num & mask) != 0; + if (flag) + { + list.Add((uint)i); + } + } + this.doc.ReqAutoBreak(list); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_CardGroupListClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCardGroupListCloseClick)); + base.uiBehaviour.m_DeckClose.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDeckCloseClick)); + base.uiBehaviour.m_DeckHelp.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClicked)); + base.uiBehaviour.m_DetailClose.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDetailCloseClick)); + base.uiBehaviour.m_DeckUnlock.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnUpStarClick)); + base.uiBehaviour.m_RewardClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnRewardCloseClick)); + base.uiBehaviour.m_ResolveClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnResolveCloseClick)); + base.uiBehaviour.m_GetRewardClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnGetRewardCloseClick)); + base.uiBehaviour.m_ResolveOK.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnResolveOKClick)); + base.uiBehaviour.m_ResolveNumSub.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnResolveNumSubClick)); + base.uiBehaviour.m_ResolveNumAdd.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnResolveNumAddClick)); + base.uiBehaviour.m_OpenCardList.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnOpenCardListClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnGroupListItemUpdated)); + } + + private void _OnCardGroupListCloseClick(IXUISprite iSp) + { + this.SetVisibleWithAnimation(false, null); + } + + private void _OnOpenDeckClicked(IXUISprite iSp) + { + this.doc.Select((uint)iSp.ID); + } + + private bool _OnDeckCloseClick(IXUIButton go) + { + this.CloseCurPage(CardPage.Deck); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void _OnOpenCardListClick(IXUISprite iSp) + { + this.ShowPage(CardPage.CardAll, true); + } + + public void OnOpenDetailClick(IXUISprite iSp) + { + this.CurCardID = (int)iSp.ID; + this.ShowPage(CardPage.CardDetail, true); + } + + private bool _OnDetailCloseClick(IXUIButton go) + { + this.CloseCurPage(CardPage.CardDetail); + base.uiBehaviour.m_CardDetail.gameObject.SetActive(false); + return true; + } + + private bool _OnUpStarClick(IXUIButton go) + { + this.doc.ReqUpStar(); + return true; + } + + private void _OnOpenCardShopClick(IXUISprite iSp) + { + this.ShowPage(CardPage.CardShop, true); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("CardCollectView"); + base.uiBehaviour.m_CardGroupList.gameObject.SetActive(false); + base.uiBehaviour.m_Deck.gameObject.SetActive(false); + base.uiBehaviour.m_CardTotalFrame.gameObject.SetActive(false); + base.uiBehaviour.m_CardDetail.gameObject.SetActive(false); + base.uiBehaviour.m_CardShopFrame.gameObject.SetActive(false); + base.uiBehaviour.m_ResolvePanel.gameObject.SetActive(false); + this.qualityFilter.SetVisible(false); + this.ShowPage(CardPage.Deck, true); + } + + public void UnloadFx(XFx fx) + { + bool flag = fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(fx, true); + fx = null; + } + } + + protected override void OnHide() + { + this.UnloadFx(this._StarUpFx); + base.Return3DAvatarPool(); + this.CloseCurPage(CardPage.ALL); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("CardCollectView"); + } + + protected override void OnUnload() + { + base.Return3DAvatarPool(); + DlgHandlerBase.EnsureUnload(ref this.m_CardShopHandler); + DlgHandlerBase.EnsureUnload(ref this.m_CardTotalHandler); + DlgHandlerBase.EnsureUnload(ref this.qualityFilter); + this.doc.View = null; + this.CloseCurPage(CardPage.ALL); + base.OnUnload(); + } + + public void CloseCurPage(CardPage closePage) + { + bool flag = closePage == CardPage.ALL; + if (flag) + { + this.m_uiStack.Clear(); + this.CurCardID = 0; + this.CurShopID = 0; + XSingleton.singleton.DestroyDummy(this.m_dummPool, this._CardDummy); + this._CardDummy = null; + base.uiBehaviour.m_DetailPic.SetTexturePath(""); + } + else + { + bool flag2 = this.m_uiStack.Count != 0; + if (flag2) + { + bool flag3 = this.CurPage == closePage; + if (flag3) + { + bool flag4 = this.CurPage == CardPage.CardDetail; + if (flag4) + { + this.CurCardID = 0; + XSingleton.singleton.DestroyDummy(this.m_dummPool, this._CardDummy); + this._CardDummy = null; + base.uiBehaviour.m_DetailPic.SetTexturePath(""); + } + bool flag5 = this.CurPage == CardPage.CardShop; + if (flag5) + { + this.CurShopID = 0; + } + this.m_uiStack.Pop(); + bool flag6 = this.CurPage > CardPage.None; + if (flag6) + { + this.ShowPage(this.CurPage, false); + } + } + else + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "CurPage:", + this.CurPage, + " ClosePage:", + closePage + }), null, null, null, null, null); + this.CloseCurPage(CardPage.ALL); + this.SetVisibleWithAnimation(false, null); + } + } + } + } + + public void ShowPage(CardPage page, bool IsPush = true) + { + if (IsPush) + { + this.m_uiStack.Push(page); + } + switch (page) + { + case CardPage.CardGroupList: + base.uiBehaviour.m_CardGroupList.gameObject.SetActive(true); + this.OldRefreshShowCardGroupList(); + break; + case CardPage.Deck: + base.uiBehaviour.m_Deck.gameObject.SetActive(true); + this.RefreshShowDeck(IsPush); + break; + case CardPage.CardAll: + base.uiBehaviour.m_CardTotalFrame.gameObject.SetActive(true); + this.m_CardTotalHandler.ShowHandler(IsPush); + break; + case CardPage.CardDetail: + { + bool flag = this.CurCardID != 0; + if (flag) + { + base.uiBehaviour.m_CardDetail.gameObject.SetActive(true); + this.RefreshDetail(); + } + break; + } + case CardPage.CardShop: + base.uiBehaviour.m_CardShopFrame.gameObject.SetActive(true); + this.m_CardShopHandler.ShowHandler(this.CurShopID, IsPush); + break; + } + } + + public void OldRefreshShowCardGroupList() + { + bool flag = this.CurPage != CardPage.CardGroupList; + if (!flag) + { + this.doc.RefreshCardGroupListShow(); + base.uiBehaviour.m_OldDeckPool.FakeReturnAll(); + for (int i = 1; i <= XCardCollectDocument.GroupMax; i++) + { + GameObject gameObject = base.uiBehaviour.m_OldDeckPool.FetchGameObject(false); + gameObject.SetActive((long)i <= (long)((ulong)this.doc.CurShowGroup)); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + float num = (float)ixuisprite.spriteWidth; + gameObject.transform.localPosition = new Vector3(num * (float)(i - 1), 0f, 0f); + IXUILabel ixuilabel = gameObject.transform.Find("Lock").GetComponent("XUILabel") as IXUILabel; + CardsGroupList.RowData cardGroup = XCardCollectDocument.GetCardGroup((uint)i); + bool flag2 = (long)i <= (long)((ulong)this.doc.CurOpenGroup); + if (flag2) + { + ixuilabel.gameObject.SetActive(false); + } + else + { + ixuilabel.gameObject.SetActive(true); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("DECK_UNLOCK"), cardGroup.OpenLevel)); + } + IXUILabel ixuilabel2 = gameObject.transform.Find("Introduction").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(cardGroup.Detail); + IXUILabel ixuilabel3 = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + XDeck xdeck = this.doc.CardsGroupInfo[i]; + ixuilabel3.SetText(string.Format("{0}/{1}", xdeck.ActionNum, xdeck.combDic.size)); + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnOpenDeckClicked)); + } + base.uiBehaviour.m_OldDeckPool.ActualReturnAll(false); + StringBuilder stringBuilder = new StringBuilder(); + int num2 = 0; + for (int j = 0; j < this.AttrSort.Length; j++) + { + uint num3 = this.AttrSort[j]; + uint attrValue; + bool flag3 = this.doc.AttrSum.TryGetValue(num3, out attrValue); + if (flag3) + { + bool flag4 = num2 != 0; + if (flag4) + { + stringBuilder.Append(" "); + } + stringBuilder.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)num3), XAttributeCommon.GetAttrValueStr(num3, attrValue, true))); + this.doc.AttrSum.RemoveKey(num3); + num2++; + } + } + for (int k = 0; k < this.doc.AttrSum.size; k++) + { + uint attrid = this.doc.AttrSum.BufferKeys[k]; + uint attrValue2 = this.doc.AttrSum.BufferValues[k]; + bool flag5 = num2 != 0; + if (flag5) + { + stringBuilder.Append(" "); + } + stringBuilder.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)attrid), XAttributeCommon.GetAttrValueStr(attrid, attrValue2, true))); + num2++; + } + for (int l = 0; l < this.doc.AttrSum.size; l++) + { + uint attrid2 = this.doc.AttrSum.BufferKeys[l]; + uint attrValue3 = this.doc.AttrSum.BufferValues[l]; + bool flag6 = l != 0; + if (flag6) + { + stringBuilder.Append(" "); + } + stringBuilder.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)attrid2), XAttributeCommon.GetAttrValueStr(attrid2, attrValue3, true))); + } + string value = stringBuilder.ToString(); + bool flag7 = string.IsNullOrEmpty(value); + if (flag7) + { + base.uiBehaviour.m_OldSumAttribute.SetText(XSingleton.singleton.GetString("NONE")); + } + else + { + base.uiBehaviour.m_OldSumAttribute.SetText(stringBuilder.ToString()); + } + } + } + + public void RefreshShowCardGroupList(bool bResetPosition = false) + { + this.doc.RefreshCardGroupListShow(); + base.uiBehaviour.m_DeckPool.FakeReturnAll(); + for (int i = 1; i <= XCardCollectDocument.GroupMax; i++) + { + this.doc.CardsGroupInfo[i].RefreshRedPoint(); + GameObject gameObject = base.uiBehaviour.m_DeckPool.FetchGameObject(false); + gameObject.SetActive((long)i <= (long)((ulong)this.doc.CurShowGroup)); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)base.uiBehaviour.m_DeckPool.TplHeight * (i - 1)), 0f) + base.uiBehaviour.m_DeckPool.TplPos; + CardsGroupList.RowData cardGroup = XCardCollectDocument.GetCardGroup((uint)i); + XDeck xdeck = this.doc.CardsGroupInfo[i]; + Transform transform = gameObject.transform.Find("Normal"); + Transform transform2 = gameObject.transform.Find("Selected"); + Transform transform3 = gameObject.transform.Find("Lock"); + IXUISprite ixuisprite = gameObject.transform.Find("Pic").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(cardGroup.ShowUp); + transform2.gameObject.SetActive(this.doc.CurSelectGroup == i); + Transform transform4 = gameObject.transform.Find("RedPoint"); + transform4.gameObject.SetActive(false); + bool flag = (long)i <= (long)((ulong)this.doc.CurOpenGroup); + if (flag) + { + transform.gameObject.SetActive(true); + IXUILabel ixuilabel = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(cardGroup.GroupName); + IXUILabel ixuilabel2 = transform.Find("Describe").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(cardGroup.Detail); + IXUILabel ixuilabel3 = transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(string.Format("{0}/{1}", xdeck.ActionNum, xdeck.combDic.size)); + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)i); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnOpenDeckClicked)); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(this.doc.CardsGroupInfo[i].redPoint); + } + else + { + transform.gameObject.SetActive(false); + transform3.gameObject.SetActive(true); + IXUILabel ixuilabel4 = gameObject.transform.Find("Lock/OpenLevel").GetComponent("XUILabel") as IXUILabel; + ixuilabel4.SetText(string.Format(XSingleton.singleton.GetString("DECK_UNLOCK"), cardGroup.OpenLevel)); + IXUISprite ixuisprite3 = gameObject.transform.Find("Lock/Block").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)cardGroup.OpenLevel; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnDeckBlockClick)); + } + int num = 0; + while ((long)num < (long)((ulong)CardCollectView.STAR_MAX)) + { + Transform transform5 = gameObject.transform.Find(string.Format("star{0}", num)); + transform5.gameObject.SetActive(num < xdeck.StarLevelMAX); + transform5.Find("On").gameObject.SetActive(num < xdeck.CurStarLevel); + num++; + } + } + base.uiBehaviour.m_DeckPool.ActualReturnAll(false); + StringBuilder stringBuilder = new StringBuilder(); + int num2 = 0; + for (int j = 0; j < this.AttrSort.Length; j++) + { + uint num3 = this.AttrSort[j]; + uint attrValue; + bool flag2 = this.doc.AttrSum.TryGetValue(num3, out attrValue); + if (flag2) + { + bool flag3 = num2 != 0; + if (flag3) + { + stringBuilder.Append("\n"); + } + stringBuilder.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)num3), XAttributeCommon.GetAttrValueStr(num3, attrValue, true))); + num2++; + } + } + string value = stringBuilder.ToString(); + bool flag4 = string.IsNullOrEmpty(value); + if (flag4) + { + base.uiBehaviour.m_SumAttribute.SetText(XSingleton.singleton.GetString("NONE")); + } + else + { + base.uiBehaviour.m_SumAttribute.SetText(stringBuilder.ToString()); + } + if (bResetPosition) + { + base.uiBehaviour.m_DeckScrollView.ResetPosition(); + } + } + + public void RefreshShowDeck(bool bResetPosition = false) + { + bool flag = this.CurPage != CardPage.Deck; + if (!flag) + { + this.RefreshShowCardGroupList(bResetPosition); + XDeck curDeck = this.doc.CurDeck; + XSingleton.singleton.AddGreenLog("star:" + curDeck.CurStarLevel, null, null, null, null, null); + base.uiBehaviour.m_ActivatedNum.SetText(string.Format("{0}/{1}", curDeck.ActionNum, curDeck.combDic.size)); + base.uiBehaviour.m_Title.SetText(curDeck.Name); + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < curDeck.AttrBase.Count; i++) + { + uint id = curDeck.AttrBase[i].id; + uint num = curDeck.AttrBase[i].num; + bool flag2 = i != 0; + if (flag2) + { + stringBuilder.Append("\n"); + } + stringBuilder.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)id), XAttributeCommon.GetAttrValueStr(id, num, true))); + } + for (int j = 0; j < curDeck.AttrPer.Count; j++) + { + uint id2 = curDeck.AttrPer[j].id; + uint num2 = curDeck.AttrPer[j].num; + stringBuilder.Append(string.Format("\n{0}{1}", XAttributeCommon.GetAttrStr((int)id2), XAttributeCommon.GetAttrValueStr(id2, num2, true))); + } + string value = stringBuilder.ToString(); + bool flag3 = string.IsNullOrEmpty(value); + if (flag3) + { + base.uiBehaviour.m_DeckAttribute.SetText(XSingleton.singleton.GetString("NONE")); + } + else + { + base.uiBehaviour.m_DeckAttribute.SetText(stringBuilder.ToString()); + } + base.uiBehaviour.m_NumRewardPool.FakeReturnAll(); + int num3 = 0; + while ((long)num3 < (long)((ulong)XDeck.DECK_PER_REWARD_COUNT_MAX)) + { + GameObject gameObject = base.uiBehaviour.m_NumRewardPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + float num4 = (float)ixuisprite.spriteWidth; + gameObject.transform.localPosition = new Vector3(num4 * (float)num3, 0f, 0f); + IXUILabel ixuilabel = gameObject.transform.Find("ActiveNum").GetComponent("XUILabel") as IXUILabel; + Transform transform = gameObject.transform.Find("Active"); + bool flag4 = num3 < curDeck.ActionNumReward[curDeck.CurStarLevel].Count; + if (flag4) + { + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("CATD_ATTRIBUTE_REWARD"), curDeck.ActionNumReward[curDeck.CurStarLevel][num3].FireCounts)); + transform.gameObject.SetActive((long)curDeck.ActionNum >= (long)((ulong)curDeck.ActionNumReward[curDeck.CurStarLevel][num3].FireCounts)); + } + else + { + ixuilabel.SetText(""); + } + IXUISprite ixuisprite2 = gameObject.transform.Find("NoActive").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)num3); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnOpenRewardTipsClick)); + num3++; + } + base.uiBehaviour.m_NumRewardPool.ActualReturnAll(false); + this.CurShopID = this.doc.CurSelectGroup; + base.uiBehaviour.m_OpenCardShop.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnOpenCardShopClick)); + base.uiBehaviour.m_ActionNumRewardTips.gameObject.SetActive(false); + base.uiBehaviour.m_GetActionNumReward.gameObject.SetActive(false); + CardsGroupList.RowData cardGroup = XCardCollectDocument.GetCardGroup((uint)this.doc.CurSelectGroup); + base.uiBehaviour.m_GoRisk.ID = (ulong)cardGroup.MapID; + base.uiBehaviour.m_GoRisk.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnGoRiskClick)); + base.uiBehaviour.m_DeckLock.gameObject.SetActive(curDeck.ActionNum == curDeck.combDic.size); + bool flag5 = curDeck.CurStarLevel < curDeck.StarLevelMAX; + if (flag5) + { + bool flag6 = XSingleton.singleton.XPlayerData.Level < cardGroup.BreakLevel[curDeck.CurStarLevel]; + if (flag6) + { + base.uiBehaviour.m_DeckUnlock.gameObject.SetActive(false); + base.uiBehaviour.m_DeckLabel.gameObject.SetActive(true); + base.uiBehaviour.m_DeckLabel.SetText(string.Format(XSingleton.singleton.GetString("CATD_UNLOCK_TIPS"), cardGroup.BreakLevel[curDeck.CurStarLevel])); + } + else + { + base.uiBehaviour.m_DeckUnlock.gameObject.SetActive(true); + base.uiBehaviour.m_DeckLabel.gameObject.SetActive(false); + } + } + else + { + base.uiBehaviour.m_DeckLock.gameObject.SetActive(false); + } + this.RefreshList(bResetPosition); + } + } + + private void _OnOpenRewardTipsClick(IXUISprite iSp) + { + base.uiBehaviour.m_ActionNumRewardTips.gameObject.SetActive(true); + int index = (int)iSp.ID; + bool flag = (long)this.doc.CurDeck.ActionNum < (long)((ulong)this.doc.CurDeck.ActionNumReward[this.doc.CurDeck.CurStarLevel][index].FireCounts); + if (flag) + { + base.uiBehaviour.m_RewardActive.gameObject.SetActive(false); + base.uiBehaviour.m_RewardNoActive.gameObject.SetActive(true); + base.uiBehaviour.m_RewardNeedNum.SetText(this.doc.CurDeck.ActionNumReward[this.doc.CurDeck.CurStarLevel][index].FireCounts.ToString()); + } + else + { + base.uiBehaviour.m_RewardActive.gameObject.SetActive(true); + base.uiBehaviour.m_RewardNoActive.gameObject.SetActive(false); + } + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < this.doc.CurDeck.ActionNumReward[this.doc.CurDeck.CurStarLevel][index].Promote.Count; i++) + { + uint attrid = this.doc.CurDeck.ActionNumReward[this.doc.CurDeck.CurStarLevel][index].Promote[i, 0]; + uint attrValue = this.doc.CurDeck.ActionNumReward[this.doc.CurDeck.CurStarLevel][index].Promote[i, 1]; + bool flag2 = i != 0; + if (flag2) + { + stringBuilder.Append("\n"); + } + stringBuilder.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)attrid), XAttributeCommon.GetAttrValueStr(attrid, attrValue, true))); + } + base.uiBehaviour.m_RewardAttribute.SetText(stringBuilder.ToString()); + } + + public void ShowGetReward(int index) + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_yh", DlgBase.singleton.uiBehaviour.m_FxFirework.transform, Vector3.zero, Vector3.one, 1f, true, 5f, true); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Gethorse", true, AudioChannel.Action); + base.uiBehaviour.m_GetActionNumReward.gameObject.SetActive(true); + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < this.doc.CurDeck.ActionNumReward[this.doc.CurDeck.CurStarLevel][index].Promote.Count; i++) + { + uint attrid = this.doc.CurDeck.ActionNumReward[this.doc.CurDeck.CurStarLevel][index].Promote[i, 0]; + uint attrValue = this.doc.CurDeck.ActionNumReward[this.doc.CurDeck.CurStarLevel][index].Promote[i, 1]; + bool flag = i != 0; + if (flag) + { + stringBuilder.Append("\n"); + } + stringBuilder.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)attrid), XAttributeCommon.GetAttrValueStr(attrid, attrValue, true))); + } + base.uiBehaviour.m_GetRewardAttribute.SetText(stringBuilder.ToString()); + } + + public void RefreshList(bool bResetPosition = true) + { + int size = this.doc.CardsGroupInfo[this.doc.CurSelectGroup].combDic.size; + base.uiBehaviour.m_WrapContent.SetContentCount(size, false); + if (bResetPosition) + { + base.uiBehaviour.m_GroupScrollView.ResetPosition(); + } + else + { + base.uiBehaviour.m_WrapContent.RefreshAllVisibleContents(); + } + } + + private void _OnGroupListItemUpdated(Transform t, int index) + { + bool flag = index < 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("index:" + index, null, null, null, null, null); + } + else + { + XDeck xdeck = this.doc.CardsGroupInfo[this.doc.CurSelectGroup]; + XCardCombination showCardsGroupInfo = xdeck.GetShowCardsGroupInfo(index); + CardsGroup.RowData data = showCardsGroupInfo.data; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data.TeamName); + IXUILabel ixuilabel2 = t.Find("MemberName").GetComponent("XUILabel") as IXUILabel; + int curStarLevel = this.doc.CurDeck.CurStarLevel; + int num = -1; + bool flag2 = false; + bool flag3 = curStarLevel < showCardsGroupInfo.starPostion.Count; + if (flag3) + { + num = showCardsGroupInfo.starPostion[curStarLevel]; + } + else + { + flag2 = true; + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TeamId:", + data.TeamId, + " StarFireCondition Error\nstar:", + curStarLevel + }), null, null, null, null, null); + } + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.Append("("); + int num2 = 0; + while ((long)num2 < (long)((ulong)XDeck.GROUP_NEED_CARD_MAX)) + { + Transform transform = t.Find(string.Format("Item/item{0}", num2)); + bool flag4 = !flag2 && (long)num2 < (long)((ulong)data.StarFireCondition[num, 0]); + if (flag4) + { + transform.gameObject.SetActive(true); + int num3 = (int)data.StarFireCondition[num + num2 + 1, 0]; + int num4 = (int)data.StarFireCondition[num + num2 + 1, 1]; + ulong itemCount = XBagDocument.BagDoc.GetItemCount(num3); + ItemList.RowData itemConf = XBagDocument.GetItemConf(num3); + XItemDrawerMgr.Param.MaxItemCount = num4; + XItemDrawerMgr.Param.NumColor = new Color?((itemCount >= (ulong)((long)num4)) ? Color.white : Color.red); + XItemDrawerMgr.Param.MaxShowNum = 99; + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, num3, (int)itemCount, true); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num3); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenDetailClick)); + IXUISprite ixuisprite2 = transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetColor(((long)this.doc.GetCardCount(num3) < (long)((ulong)data.StarFireCondition[num + num2 + 1, 1])) ? Color.black : Color.white); + bool flag5 = itemConf != null; + if (flag5) + { + bool flag6 = num2 != 0; + if (flag6) + { + stringBuilder.Append("、"); + } + stringBuilder.Append(itemConf.ItemName[0]); + } + } + else + { + transform.gameObject.SetActive(false); + } + num2++; + } + stringBuilder.Append(")"); + ixuilabel2.SetText(stringBuilder.ToString()); + IXUISprite ixuisprite3 = t.Find("Activate").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = t.Find("InActivate").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite5 = t.Find("Activated").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.gameObject.SetActive(xdeck.GetShowCardsGroupInfo(index).status == CardCombinationStatus.CanActive); + ixuisprite4.gameObject.SetActive(xdeck.GetShowCardsGroupInfo(index).status == CardCombinationStatus.NoCanActive); + ixuisprite5.gameObject.SetActive(xdeck.GetShowCardsGroupInfo(index).status == CardCombinationStatus.Activated); + ixuisprite3.ID = (ulong)xdeck.GetShowCardsGroupInfo(index).data.TeamId; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnActiveClick)); + ixuisprite4.ID = (ulong)xdeck.GetShowCardsGroupInfo(index).data.TeamId; + ixuisprite4.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnNoActiveClick)); + uint teamId = xdeck.GetShowCardsGroupInfo(index).data.TeamId; + IXUILabel ixuilabel3 = t.Find("Attribute").GetComponent("XUILabel") as IXUILabel; + SeqListRef cardGroupAttribute = XCardCollectDocument.GetCardGroupAttribute(teamId); + StringBuilder stringBuilder2 = new StringBuilder(); + uint attrid = cardGroupAttribute[xdeck.CurStarLevel, 0]; + uint attrValue = cardGroupAttribute[xdeck.CurStarLevel, 1]; + stringBuilder2.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)attrid), XAttributeCommon.GetAttrValueStr(attrid, attrValue, true))); + ixuilabel3.SetText(stringBuilder2.ToString()); + } + } + + public void RefreshDetail() + { + bool flag = this.CurPage != CardPage.CardDetail; + if (!flag) + { + bool flag2 = base.uiBehaviour == null; + if (!flag2) + { + CardsList.RowData cards = XCardCollectDocument.GetCards((uint)this.CurCardID); + bool flag3 = cards == null; + if (!flag3) + { + base.uiBehaviour.m_DetailName.SetText(cards.CardName); + base.uiBehaviour.m_DetailStory.SetText(cards.Description); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)cards.CardId); + bool flag4 = itemConf != null; + if (flag4) + { + string texPath = this.GetTexPath((int)itemConf.ItemQuality); + base.uiBehaviour.m_DetailPic.SetTexturePath(texPath); + } + uint avatar = cards.Avatar; + this._CardDummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, avatar, this.m_uiBehaviour.m_Snapshot, this._CardDummy, 1f); + this.RefreshCardNum(); + int num = 0; + int num2 = 0; + base.uiBehaviour.m_DetailGroupPool.FakeReturnAll(); + for (int i = 1; i < this.doc.CardsGroupInfo.Count; i++) + { + XDeck xdeck = this.doc.CardsGroupInfo[i]; + int curStarLevel = xdeck.CurStarLevel; + for (int j = 0; j < xdeck.combDic.BufferValues.Count; j++) + { + XCardCombination xcardCombination = xdeck.combDic.BufferValues[j]; + bool flag5 = curStarLevel >= xcardCombination.starPostion.Count; + if (flag5) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TeamId:", + xcardCombination.data.TeamId, + " StarFireCondition Error\nstar:", + curStarLevel + }), null, null, null, null, null); + } + else + { + int num3 = xcardCombination.starPostion[curStarLevel]; + int num4 = 0; + while ((long)num4 < (long)((ulong)xcardCombination.data.StarFireCondition[num3, 0])) + { + bool flag6 = this.CurCardID == (int)xcardCombination.data.StarFireCondition[num3 + num4 + 1, 0]; + if (flag6) + { + GameObject gameObject = base.uiBehaviour.m_DetailGroupPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + int spriteHeight = ixuisprite.spriteHeight; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)spriteHeight * num2), 0f); + num2++; + bool flag7 = xcardCombination.status == CardCombinationStatus.Activated; + IXUILabel ixuilabel; + if (flag7) + { + num++; + ixuilabel = (gameObject.transform.Find("on").GetComponent("XUILabel") as IXUILabel); + ixuilabel.gameObject.SetActive(true); + gameObject.transform.Find("off").gameObject.SetActive(false); + } + else + { + ixuilabel = (gameObject.transform.Find("off").GetComponent("XUILabel") as IXUILabel); + ixuilabel.gameObject.SetActive(true); + gameObject.transform.Find("on").gameObject.SetActive(false); + } + ixuilabel.SetText(xcardCombination.data.TeamName); + break; + } + num4++; + } + } + } + } + base.uiBehaviour.m_DetailGroupPool.ActualReturnAll(false); + base.uiBehaviour.m_DetailActiveNum.SetText(string.Format("{0}/{1}", num, num2)); + base.uiBehaviour.m_DetailGroupScrollView.ResetPosition(); + base.uiBehaviour.m_OldGoRisk.ID = (ulong)cards.MapID; + base.uiBehaviour.m_OldGoRisk.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnGoRiskClick)); + ShopTable.RowData dataByShopId = XNormalShopDocument.GetDataByShopId((uint)this.CurCardID); + bool flag8 = dataByShopId == null; + if (flag8) + { + base.uiBehaviour.m_GoShop.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_GoShop.gameObject.SetActive(true); + this.CurShopID = (int)(dataByShopId.Type - this.shopdoc.GetShopId(XSysDefine.XSys_Mall_Card1) + 1u); + base.uiBehaviour.m_GoShop.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnOpenCardShopClick)); + } + } + } + } + } + + private void _OnActiveClick(IXUISprite iSp) + { + this.doc.ReqActive((uint)iSp.ID); + } + + private void _OnNoActiveClick(IXUISprite iSp) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ATLAS_CARD_NOT_ENOUGH"), "fece00"); + } + + public void RefreshCardNum() + { + bool flag = this.CurPage != CardPage.CardDetail; + if (!flag) + { + int cardCount = this.doc.GetCardCount(this.CurCardID); + base.uiBehaviour.m_DetailNum.SetText(cardCount.ToString()); + base.uiBehaviour.m_DetailBuy.ID = (ulong)((long)this.CurCardID); + base.uiBehaviour.m_DetailBuy.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnBuyClick)); + base.uiBehaviour.m_DetailResolve.ID = (ulong)((long)this.CurCardID); + base.uiBehaviour.m_DetailResolve.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnResolveClick)); + } + } + + private void _OnRewardCloseClick(IXUISprite go) + { + base.uiBehaviour.m_ActionNumRewardTips.gameObject.SetActive(false); + } + + private void _OnGetRewardCloseClick(IXUISprite go) + { + base.uiBehaviour.m_GetActionNumReward.gameObject.SetActive(false); + } + + private void _OnResolveCloseClick(IXUISprite go) + { + base.uiBehaviour.m_ResolvePanel.gameObject.SetActive(false); + } + + private void _OnResolveClick(IXUISprite iSp) + { + int cardCount = this.doc.GetCardCount(this.CurCardID); + bool flag = cardCount == 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CARD_NOT_ENOUGH"), "fece00"); + } + else + { + bool flag2 = !DlgBase.singleton.GetTempTip(XTempTipDefine.OD_CARD_RESOLVE_TIP); + if (flag2) + { + XSingleton.singleton.ShowModalDialog(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("CARD_RESOLVE_TIP")), XStringDefineProxy.GetString("CARD_COMMON_OK"), XStringDefineProxy.GetString("CARD_COMMON_CANCEL"), new ButtonClickEventHandler(this._OpenResolve), null, false, XTempTipDefine.OD_CARD_RESOLVE_TIP, 50); + } + else + { + this._OpenResolve(null); + } + } + } + + private bool _OpenResolve(IXUIButton btn) + { + base.uiBehaviour.m_ResolvePanel.gameObject.SetActive(true); + base.uiBehaviour.m_ResolveNum.SetText("1"); + this.RefreshResolveGetItem(); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void _OnBuyClick(IXUISprite iSp) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + XSysDefine sys = XSysDefine.XSys_Mall_Card1 + this.CurShopID - 1; + specificDocument.ReqGoodsList(sys); + } + + public void SingleShop(XNormalShopGoods goods) + { + this.CurGoods = goods; + this.ShopHandler.RefreshChipNum(); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.CurCardID); + XSingleton.singleton.ShowModalDialog(string.Format(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("CATD_BUY")), this.CurGoods.priceValue, itemConf.ItemName[0], this.ShopHandler.money), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._OnBuyOK)); + } + + private bool _OnBuyOK(IXUIButton iSp) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.CurCardID); + bool flag = this.ShopHandler.money >= this.CurGoods.priceValue; + if (flag) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.DoBuyItem(this.CurGoods, 1u); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CARD_BUY_INSUFFICIENT"), "fece00"); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void _OnResolveNumAddClick(IXUISprite iSp) + { + int num = int.Parse(base.uiBehaviour.m_ResolveNum.GetText()); + int num2 = int.Parse(base.uiBehaviour.m_DetailNum.GetText()); + bool flag = num < num2; + if (flag) + { + num++; + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("CARD_COUNT_MAX"), new object[0]), "fece00"); + } + base.uiBehaviour.m_ResolveNum.SetText(num.ToString()); + this.RefreshResolveGetItem(); + } + + private void _OnResolveNumSubClick(IXUISprite iSp) + { + int num = int.Parse(base.uiBehaviour.m_ResolveNum.GetText()); + bool flag = num > 1; + if (flag) + { + num--; + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("CARD_COUNT_MIN"), new object[0]), "fece00"); + } + base.uiBehaviour.m_ResolveNum.SetText(num.ToString()); + this.RefreshResolveGetItem(); + } + + private void _OnResolveOKClick(IXUISprite iSp) + { + int num = int.Parse(base.uiBehaviour.m_ResolveNum.GetText()); + this.doc.ReqBreak(this.CurCardID, num); + base.uiBehaviour.m_ResolvePanel.gameObject.SetActive(false); + } + + private void RefreshResolveGetItem() + { + int num = int.Parse(base.uiBehaviour.m_ResolveNum.GetText()); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.CurCardID); + IXUISprite ixuisprite = base.uiBehaviour.m_ResolveGetItem.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XBagDocument.GetItemSmallIcon(int.Parse(XSingleton.singleton.GetValue("CardChip")), 0u)); + IXUILabel ixuilabel = base.uiBehaviour.m_ResolveGetItem.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(((long)((ulong)itemConf.Decompose[0, 1] * (ulong)((long)num))).ToString()); + } + + private void _OnGoRiskClick(IXUISprite iSp) + { + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.Show(true, (int)iSp.ID); + } + + private void _OnDeckBlockClick(IXUISprite iSp) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("DECK_UNLOCK"), iSp.ID), "fece00"); + } + + private string GetTexPath(int quality) + { + bool flag = quality == 1; + string result; + if (flag) + { + result = "atlas/UI/common/Pic/Tex_Card_Green"; + } + else + { + bool flag2 = quality == 2; + if (flag2) + { + result = "atlas/UI/common/Pic/Tex_Card_Blue"; + } + else + { + bool flag3 = quality == 3; + if (flag3) + { + result = "atlas/UI/common/Pic/Tex_Card_Orange"; + } + else + { + bool flag4 = quality == 4; + if (flag4) + { + result = "atlas/UI/common/Pic/Tex_Card_Purple"; + } + else + { + bool flag5 = quality == 5; + if (flag5) + { + result = "atlas/UI/common/Pic/Tex_Card_Red"; + } + else + { + XSingleton.singleton.AddErrorLog("quality : " + quality + " No Find", null, null, null, null, null); + result = null; + } + } + } + } + } + return result; + } + + private bool OnHelpBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_CardCollect); + return true; + } + + public void PlayLevelUpFx() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = this._StarUpFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._StarUpFx, true); + } + this._StarUpFx = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_tupochenggong", base.uiBehaviour.m_Fx, Vector3.zero, Vector3.one, 1f, true, 7f, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CardCollectView.cs.meta b/Client/Assets/Scripts/XMainClient/CardCollectView.cs.meta new file mode 100644 index 00000000..b076fdd8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardCollectView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51cd7a8ec91bc7442b9072d011aed826 +timeCreated: 1611403707 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CardCombinationStatus.cs b/Client/Assets/Scripts/XMainClient/CardCombinationStatus.cs new file mode 100644 index 00000000..490de832 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardCombinationStatus.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum CardCombinationStatus + { + None, + CanActive, + NoCanActive, + Activated + } +} diff --git a/Client/Assets/Scripts/XMainClient/CardCombinationStatus.cs.meta b/Client/Assets/Scripts/XMainClient/CardCombinationStatus.cs.meta new file mode 100644 index 00000000..48bae31c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardCombinationStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98f2fc02c082776419f7bca77140fdd8 +timeCreated: 1611404193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CardPage.cs b/Client/Assets/Scripts/XMainClient/CardPage.cs new file mode 100644 index 00000000..b24a1860 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardPage.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public enum CardPage + { + None, + CardGroupList, + Deck, + CardAll, + CardDetail, + CardShop, + ALL + } +} diff --git a/Client/Assets/Scripts/XMainClient/CardPage.cs.meta b/Client/Assets/Scripts/XMainClient/CardPage.cs.meta new file mode 100644 index 00000000..41e54d82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardPage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6fa7c198bd02cc147bd93fd6a4006e1c +timeCreated: 1611403929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CardTotalHandler.cs b/Client/Assets/Scripts/XMainClient/CardTotalHandler.cs new file mode 100644 index 00000000..8f83c31f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardTotalHandler.cs @@ -0,0 +1,170 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CardTotalHandler : DlgHandlerBase + { + public static readonly int LINE_ITEM_NUM = 7; + + private XCardCollectDocument doc; + + private IXUIButton m_Close; + + private IXUISprite m_AutoResolve; + + private Transform[] quality = new Transform[6]; + + private Transform item; + + private XUIPool m_qualityItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool[] m_ItemPool = new XUIPool[6]; + + private Transform CardPanel; + + private IXUIScrollView m_CardPanelScrollView; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + this.m_Close = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_AutoResolve = (base.PanelObject.transform.Find("Bg/AutoResolve").GetComponent("XUISprite") as IXUISprite); + this.CardPanel = base.PanelObject.transform.Find("Bg/Panel"); + this.m_CardPanelScrollView = (base.PanelObject.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.doc.IsCardDirty = true; + this.item = this.CardPanel.transform.Find("Item"); + this.m_qualityItemPool.SetupPool(null, this.item.gameObject, 5u, false); + this.m_qualityItemPool.FakeReturnAll(); + for (int i = 1; i <= 5; i++) + { + GameObject gameObject = this.m_qualityItemPool.FetchGameObject(false); + gameObject.name = "item"; + Transform transform = gameObject.transform.Find("ItemTpl"); + this.quality[i] = this.CardPanel.transform.Find(string.Format("Quality{0}", i)); + XSingleton.singleton.AddChild(this.quality[i], gameObject.transform); + IXUISprite ixuisprite = this.quality[i].GetComponent("XUISprite") as IXUISprite; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)ixuisprite.spriteHeight), 0f); + this.m_ItemPool[i] = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_ItemPool[i].SetupPool(null, transform.gameObject, 5u, false); + } + this.m_qualityItemPool.ActualReturnAll(true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseClicked)); + this.m_AutoResolve.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnAutoResolveClicked)); + } + + private bool _OnCloseClicked(IXUIButton go) + { + base.PanelObject.SetActive(false); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.doc.View.CloseCurPage(CardPage.CardAll); + } + return true; + } + + private void _OnAutoResolveClicked(IXUISprite iSp) + { + bool flag = !DlgBase.singleton.GetTempTip(XTempTipDefine.OD_CARD_RESOLVE_TIP); + if (flag) + { + XSingleton.singleton.ShowModalDialog(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("CARD_RESOLVE_TIP")), XStringDefineProxy.GetString("CARD_COMMON_OK"), XStringDefineProxy.GetString("CARD_COMMON_CANCEL"), new ButtonClickEventHandler(this._OpenAutoResolve), null, false, XTempTipDefine.OD_CARD_RESOLVE_TIP, 50); + } + else + { + this._OpenAutoResolve(null); + } + } + + private bool _OpenAutoResolve(IXUIButton btn) + { + bool flag = this.doc.View != null; + if (flag) + { + this.doc.View.qualityFilter.SetVisible(true); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public override void OnUnload() + { + base.OnUnload(); + this.doc = null; + } + + protected override void OnShow() + { + } + + public void ShowHandler(bool bResetPosition = false) + { + base.PanelObject.SetActive(true); + List> list = new List>(); + for (int i = 0; i <= 5; i++) + { + List list2 = new List(); + list.Add(list2); + } + for (int j = 0; j < this.doc.CurDeck.CardList.Count; j++) + { + uint cardId = this.doc.CurDeck.CardList[j].CardId; + CardsList.RowData cards = XCardCollectDocument.GetCards(cardId); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)cardId); + list[(int)itemConf.ItemQuality].Add(cards); + } + float num = 0f; + IXUISprite ixuisprite = this.item.Find("ItemTpl").GetComponent("XUISprite") as IXUISprite; + int spriteWidth = ixuisprite.spriteWidth; + int spriteHeight = ixuisprite.spriteHeight; + this.m_qualityItemPool.FakeReturnAll(); + for (int k = 5; k >= 1; k--) + { + GameObject gameObject = this.m_qualityItemPool.FetchGameObject(false); + Transform transform = gameObject.transform.Find("ItemTpl"); + this.quality[k].localPosition = new Vector3(0f, num, 0f); + IXUISprite ixuisprite2 = this.quality[k].GetComponent("XUISprite") as IXUISprite; + this.m_ItemPool[k].FakeReturnAll(); + int num2 = -1; + for (int l = 0; l < list[k].Count; l++) + { + bool flag = l % CardTotalHandler.LINE_ITEM_NUM == 0; + if (flag) + { + num2++; + } + GameObject gameObject2 = this.m_ItemPool[k].FetchGameObject(false); + int cardCount = this.doc.GetCardCount((int)list[k][l].CardId); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)list[k][l].CardId, cardCount, false); + IXUISprite ixuisprite3 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)list[k][l].CardId; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(DlgBase.singleton.OnOpenDetailClick)); + IXUILabel ixuilabel = gameObject2.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(cardCount != 0); + ixuilabel.SetText(cardCount.ToString()); + int num3 = l % CardTotalHandler.LINE_ITEM_NUM; + gameObject2.transform.localPosition = new Vector3((float)(spriteWidth * num3), (float)(-(float)spriteHeight * num2), 0f); + } + this.m_ItemPool[k].ActualReturnAll(true); + num -= (float)(spriteHeight * (num2 + 1) + ixuisprite2.spriteHeight); + } + this.m_qualityItemPool.ActualReturnAll(true); + if (bResetPosition) + { + this.m_CardPanelScrollView.ResetPosition(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CardTotalHandler.cs.meta b/Client/Assets/Scripts/XMainClient/CardTotalHandler.cs.meta new file mode 100644 index 00000000..33559a4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CardTotalHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e63a4e23000543f48acad754d61440a7 +timeCreated: 1611404745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CareerHomepageHandler.cs b/Client/Assets/Scripts/XMainClient/CareerHomepageHandler.cs new file mode 100644 index 00000000..edf8e217 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CareerHomepageHandler.cs @@ -0,0 +1,377 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CareerHomepageHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/PersonalCareer/CareerHomepage"; + } + } + + private IXUILabelSymbol m_Username; + + private IXUILabel m_UID; + + private IXUILabel m_Level; + + private IXUILabel m_Server; + + private IXUILabel m_Guild; + + private IXUILabel m_Profession; + + private IXUILabel m_ContinuousLogin; + + private IXUILabel m_OnlineTime; + + private IXUILabel m_PPT; + + private IXUISprite m_Portrait; + + private Transform m_SignatureSelfShow; + + private IXUIButton m_SignatureChange; + + private IXUILabel m_SignatureLabel; + + private Transform m_QQVipIcon; + + private Transform m_QQSVipIcon; + + private IXUIButton m_Push; + + private IXUIButton m_Share; + + private XUIPool m_CoursePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_TimePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_LinePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public enum GrowthType + { + NONE, + Level, + Nest, + Dragon + } + + protected override void Init() + { + base.Init(); + Transform transform = base.transform.Find("BaseInfo"); + this.m_Username = (transform.Find("Username").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Server = (transform.Find("Server").GetComponent("XUILabel") as IXUILabel); + this.m_UID = (transform.Find("UID/T").GetComponent("XUILabel") as IXUILabel); + this.m_Level = (transform.Find("Level/T").GetComponent("XUILabel") as IXUILabel); + this.m_Guild = (transform.Find("Guild/T").GetComponent("XUILabel") as IXUILabel); + this.m_Profession = (transform.Find("Occupation/T").GetComponent("XUILabel") as IXUILabel); + this.m_ContinuousLogin = (transform.Find("ContinuousLogin/T").GetComponent("XUILabel") as IXUILabel); + this.m_OnlineTime = (transform.Find("OnlineTime/T").GetComponent("XUILabel") as IXUILabel); + this.m_PPT = (transform.Find("PPT/T").GetComponent("XUILabel") as IXUILabel); + this.m_Portrait = (transform.Find("Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_SignatureSelfShow = transform.Find("Signature/SelfShow"); + this.m_SignatureChange = (transform.Find("Signature/SelfShow/Change").GetComponent("XUIButton") as IXUIButton); + this.m_SignatureLabel = (transform.Find("Signature/Tag/T").GetComponent("XUILabel") as IXUILabel); + this.m_QQVipIcon = transform.Find("QQVIP"); + this.m_QQSVipIcon = transform.Find("QQSVIP"); + transform = base.transform.Find("Career/Career"); + Transform transform2 = transform.Find("CourseTpl"); + this.m_CoursePool.SetupPool(null, transform2.gameObject, 10u, false); + Transform transform3 = transform.Find("TimeTpl"); + this.m_TimePool.SetupPool(null, transform3.gameObject, 10u, false); + Transform transform4 = transform.Find("LineTpl"); + this.m_LinePool.SetupPool(null, transform4.gameObject, 10u, false); + this.m_Push = (base.transform.Find("Push").GetComponent("XUIButton") as IXUIButton); + this.m_Share = (base.transform.Find("Share").GetComponent("XUIButton") as IXUIButton); + this.InitInfo(); + } + + public override void RegisterEvent() + { + this.m_SignatureChange.RegisterClickEventHandler(new ButtonClickEventHandler(this._InputBtnClick)); + this.m_Push.RegisterClickEventHandler(new ButtonClickEventHandler(this._PushBtnClick)); + this.m_Share.RegisterClickEventHandler(new ButtonClickEventHandler(this._ShareBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void InitInfo() + { + this.m_Username.InputText = ""; + this.m_Server.SetText(""); + this.m_UID.SetText(""); + this.m_Level.SetText(""); + this.m_Guild.SetText(""); + this.m_Profession.SetText(""); + this.m_ContinuousLogin.SetText(""); + this.m_OnlineTime.SetText(""); + this.m_PPT.SetText(""); + this.m_SignatureSelfShow.gameObject.SetActive(false); + this.m_SignatureLabel.SetText(""); + this.m_QQVipIcon.gameObject.SetActive(false); + this.m_QQSVipIcon.gameObject.SetActive(false); + } + + public void SetData(PersonalHomePage data) + { + this.m_Username.InputText = XSingleton.singleton.StringCombine(data.play_name, XWelfareDocument.GetMemberPrivilegeIconString(data.paymember_id)); + this.m_Server.SetText(data.server_name); + this.m_UID.SetText(data.uid.ToString()); + this.m_Level.SetText(data.level.ToString()); + bool flag = "".Equals(data.guild_name); + if (flag) + { + this.m_Guild.SetText(XSingleton.singleton.GetString("NONE")); + } + else + { + this.m_Guild.SetText(data.guild_name); + } + this.m_Portrait.SetSprite(XSingleton.singleton.GetProfHeadIcon((int)data.profession_id)); + this.m_Profession.SetText(XSingleton.singleton.GetProfName((int)data.profession_id)); + this.m_ContinuousLogin.SetText(string.Format(XSingleton.singleton.GetString("CAREER_CONTINUOUS_LOGIN"), data.continue_login_time.ToString())); + float num = data.online_time / 3600f; + string arg = (num < 10f) ? num.ToString("f1") : num.ToString("f0"); + this.m_OnlineTime.SetText(string.Format(XSingleton.singleton.GetString("CAREER_ONLINE_TIME"), arg)); + this.m_PPT.SetText(((int)data.power).ToString()); + this.m_SignatureSelfShow.gameObject.SetActive(DlgBase.singleton.roleId == 0UL); + this.m_SignatureLabel.SetText(data.declaration); + this.SetQQVip(data.qq_vip); + List list = new List(); + for (int i = 0; i < data.carrer_data.Count; i++) + { + list.Add(data.carrer_data[i]); + } + list.Sort(new Comparison(this._CompareGrowthProcess)); + this.SetGrowthProcess(list); + this.m_Push.gameObject.SetActive(DlgBase.singleton.roleId == 0UL); + this.m_Share.gameObject.SetActive(DlgBase.singleton.roleId == 0UL); + } + + public void SetDeclaration(string declaration) + { + this.m_SignatureLabel.SetText(declaration); + } + + private void SetQQVip(uint vip) + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP); + if (flag) + { + this.m_QQVipIcon.gameObject.SetActive(vip == 1u); + this.m_QQSVipIcon.gameObject.SetActive(vip == 2u || vip == 3u); + } + else + { + this.m_QQVipIcon.gameObject.SetActive(false); + this.m_QQSVipIcon.gameObject.SetActive(false); + } + } + + private int _CompareGrowthProcess(CareerData left, CareerData right) + { + bool flag = left.time == right.time; + int result; + if (flag) + { + bool flag2 = left.type == right.type; + if (flag2) + { + result = -left.para1.CompareTo(right.para1); + } + else + { + result = -left.type.CompareTo(right.type); + } + } + else + { + result = -left.time.CompareTo(right.time); + } + return result; + } + + private void SetGrowthProcess(List data) + { + bool flag = data.Count == 0; + if (!flag) + { + int num = 0; + int num2 = 0; + uint num3 = 0u; + this.m_CoursePool.FakeReturnAll(); + this.m_TimePool.FakeReturnAll(); + this.m_LinePool.FakeReturnAll(); + for (int i = 0; i < data.Count; i++) + { + uint time = data[i].time; + string text = this.GrowthText(data[i]); + bool flag2 = text == null; + if (!flag2) + { + bool flag3 = time != num3; + if (flag3) + { + num3 = time; + bool flag4 = num2 - num > 0; + if (flag4) + { + GameObject gameObject = this.m_LinePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(num2 + this.m_TimePool.TplHeight), 0f) + this.m_LinePool.TplPos; + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = num2 - num; + } + GameObject gameObject2 = this.m_TimePool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3(0f, (float)num, 0f) + this.m_TimePool.TplPos; + IXUILabel ixuilabel = gameObject2.transform.Find("Time").GetComponent("XUILabel") as IXUILabel; + num -= this.m_TimePool.TplHeight; + num2 = num; + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("CAREER_GROWTH_PROCESS_TIME"), time / 10000u, (time / 100u % 100u).ToString().PadLeft(2, '0'), (time % 100u).ToString().PadLeft(2, '0'))); + } + GameObject gameObject3 = this.m_CoursePool.FetchGameObject(false); + gameObject3.transform.localPosition = new Vector3(0f, (float)(num + this.m_TimePool.TplHeight), 0f) + this.m_CoursePool.TplPos; + IXUILabel ixuilabel2 = gameObject3.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(text); + IXUISprite ixuisprite2 = gameObject3.transform.Find("p").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.UpdateAnchors(); + num -= ixuisprite2.spriteHeight; + } + } + this.m_LinePool.ActualReturnAll(false); + this.m_TimePool.ActualReturnAll(false); + this.m_CoursePool.ActualReturnAll(false); + } + } + + private string GrowthText(CareerData data) + { + bool flag = data == null; + string result; + if (flag) + { + result = null; + } + else + { + string text; + switch (data.type) + { + case CarrerDataType.CARRER_DATA_LEVEL: + text = string.Format(XSingleton.singleton.GetString("CAREER_GROWTH_PROCESS_LEVEL"), data.para1); + break; + case CarrerDataType.CARRER_DATA_NEST: + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(data.para1); + bool flag2 = sceneData == null; + if (flag2) + { + return null; + } + text = string.Format(XSingleton.singleton.GetString("CAREER_GROWTH_PROCESS_NEST"), sceneData.Comment); + break; + } + case CarrerDataType.CARRER_DATA_DRAGON: + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(data.para1); + bool flag3 = sceneData == null; + if (flag3) + { + return null; + } + text = string.Format(XSingleton.singleton.GetString("CAREER_GROWTH_PROCESS_DRAGON"), sceneData.Comment); + break; + } + case CarrerDataType.CARRER_DATA_CREATEROLE: + text = XSingleton.singleton.GetString("CAREER_GROWTH_PROCESS_BORN"); + break; + default: + return null; + } + result = text; + } + return result; + } + + private bool _PushBtnClick(IXUIButton btn) + { + DlgBase.singleton.PushClick(0UL); + return true; + } + + private bool _ShareBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShareClick(); + return true; + } + + private void test() + { + this.SetGrowthProcess(new List + { + new CareerData + { + time = 1u, + type = CarrerDataType.CARRER_DATA_LEVEL, + para1 = 10u + }, + new CareerData + { + time = 2u, + type = CarrerDataType.CARRER_DATA_NEST, + para1 = 1u + }, + new CareerData + { + time = 2u, + type = CarrerDataType.CARRER_DATA_DRAGON, + para1 = 2u + }, + new CareerData + { + time = 4u, + type = CarrerDataType.CARRER_DATA_CREATEROLE, + para1 = 2u + } + }); + } + + private bool _InputBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowChatInput(new ChatInputStringBack(this.ReqSetDeclaration)); + DlgBase.singleton.SetInputType(ChatInputType.TEXT); + DlgBase.singleton.SetCharacterLimit(40); + return true; + } + + public void ReqSetDeclaration(string str) + { + RpcC2G_ChangeDeclaration rpcC2G_ChangeDeclaration = new RpcC2G_ChangeDeclaration(); + rpcC2G_ChangeDeclaration.oArg.declaration = str; + XSingleton.singleton.Send(rpcC2G_ChangeDeclaration); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CareerHomepageHandler.cs.meta b/Client/Assets/Scripts/XMainClient/CareerHomepageHandler.cs.meta new file mode 100644 index 00000000..eecb1dd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CareerHomepageHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c31fd81a95d89a4bbec8a1e22846771 +timeCreated: 1611403996 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CareerPVPDataHandler.cs b/Client/Assets/Scripts/XMainClient/CareerPVPDataHandler.cs new file mode 100644 index 00000000..ab6d0c08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CareerPVPDataHandler.cs @@ -0,0 +1,524 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CareerPVPDataHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/PersonalCareer/CareerPVPData"; + } + } + + public int MatchTotalCount + { + get + { + return this.win + this.draw + this.lose; + } + } + + public int MatchTotalPercent + { + get + { + bool flag = this.win == 0; + int result; + if (flag) + { + result = 0; + } + else + { + result = Math.Max(1, 100 * this.win / this.MatchTotalCount); + } + return result; + } + } + + public int HisMatchTotalCount + { + get + { + return this.winHis + this.drawHis + this.loseHis; + } + } + + public int HisMatchTotalPercent + { + get + { + bool flag = this.winHis == 0; + int result; + if (flag) + { + result = 0; + } + else + { + result = Math.Max(1, 100 * this.winHis / this.HisMatchTotalCount); + } + return result; + } + } + + private XPersonalCareerDocument doc = null; + + private int m_CurPVPIndex = 0; + + public string[] PVPSysID = XSingleton.singleton.GetValue("PersonalCareerPVP").Split(new char[] + { + '|' + }); + + public XQualifyingRecordsHandler QualifyingRecordsHandler = null; + + private IXUILabel m_CurTitle; + + private IXUIButton m_CurTitleBtn; + + private Transform m_TitleSelected; + + private IXUILabel[] m_TitleName = new IXUILabel[5]; + + private IXUIButton[] m_TitleBtn = new IXUIButton[5]; + + private XUIPool m_TitlePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_Beyond; + + private IXUILabel m_Score; + + private IXUITexture m_HistorySegment; + + private IXUITexture m_CurSegment; + + private IXUILabel m_ServerRank; + + private IXUILabel m_ProfessionRank; + + private IXUIButton m_PKDetail; + + private Transform m_QualifyPanel; + + private IXUILabel m_Win; + + private IXUILabel m_Lose; + + private IXUILabel m_WinStreak; + + private Transform m_WinRateDetail; + + private List m_ProfessionWinRate = new List(); + + private IXUILabel m_WinRate; + + private IXUISprite m_WinRateProgress; + + private IXUILabel m_TotalCount; + + private IXUIButton m_Push; + + private IXUIButton m_Share; + + private IXUICheckBox m_SeasonTab; + + private IXUICheckBox m_AllTab; + + private int win; + + private int draw; + + private int lose; + + private uint ContinueWin; + + private uint ContinueLose; + + private List ProfessionWin = new List(); + + private List GameRecords = new List(); + + private uint curPoint; + + private uint serverRank; + + private uint professionRank; + + private uint hisPoint; + + private string beyondAll; + + private string texCur; + + private string texHis; + + private int winHis; + + private int drawHis; + + private int loseHis; + + private uint ContinueWinHis; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XPersonalCareerDocument.uuID); + this.m_CurTitle = (base.transform.Find("Title/T").GetComponent("XUILabel") as IXUILabel); + this.m_CurTitleBtn = (base.transform.Find("Title/Bg").GetComponent("XUIButton") as IXUIButton); + this.m_TitleSelected = base.transform.Find("Title/TitleSelected"); + Transform transform = base.transform.Find("Title/TitleSelected/TypeTpl"); + this.m_TitlePool.SetupPool(null, transform.gameObject, 5u, false); + this.m_TitlePool.FakeReturnAll(); + for (int i = 0; i < this.PVPSysID.Length; i++) + { + GameObject gameObject = this.m_TitlePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_TitlePool.TplHeight * i), 0f) + this.m_TitlePool.TplPos; + this.m_TitleName[i] = (gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_TitleName[i].SetText(XSingleton.singleton.GetSystemName(int.Parse(this.PVPSysID[i]))); + this.m_TitleBtn[i] = (gameObject.GetComponent("XUIButton") as IXUIButton); + } + this.m_TitlePool.ActualReturnAll(false); + this.m_QualifyPanel = base.transform.Find("Qualify"); + Transform transform2 = this.m_QualifyPanel.Find("Left"); + this.m_HistorySegment = (transform2.Find("History/Segment").GetComponent("XUITexture") as IXUITexture); + this.m_Beyond = (transform2.Find("Rank/Beyond").GetComponent("XUILabel") as IXUILabel); + this.m_Score = (transform2.Find("Rank/Score/Value").GetComponent("XUILabel") as IXUILabel); + this.m_CurSegment = (transform2.Find("Rank/Segment").GetComponent("XUITexture") as IXUITexture); + this.m_ServerRank = (transform2.Find("Rank/ServerRank").GetComponent("XUILabel") as IXUILabel); + this.m_ProfessionRank = (transform2.Find("Rank/ProfessionRank").GetComponent("XUILabel") as IXUILabel); + this.m_PKDetail = (transform2.Find("PKDetail").GetComponent("XUIButton") as IXUIButton); + Transform transform3 = this.m_QualifyPanel.Find("Right"); + this.m_Win = (transform3.Find("Base/Win/T").GetComponent("XUILabel") as IXUILabel); + this.m_Lose = (transform3.Find("Base/Lose/T").GetComponent("XUILabel") as IXUILabel); + this.m_WinStreak = (transform3.Find("Base/WinStreak/T").GetComponent("XUILabel") as IXUILabel); + this.m_WinRateDetail = transform3.Find("WinRateDetail"); + Transform transform4 = transform3.Find("WinRateDetail/Profession"); + for (int j = 0; j < transform4.childCount; j++) + { + IXUILabel item = transform4.Find(string.Format("Profession{0}", j)).GetComponent("XUILabel") as IXUILabel; + this.m_ProfessionWinRate.Add(item); + } + this.m_WinRate = (transform3.Find("WinRate/Value").GetComponent("XUILabel") as IXUILabel); + this.m_WinRateProgress = (transform3.Find("WinRate/Progress").GetComponent("XUISprite") as IXUISprite); + this.m_TotalCount = (transform3.Find("Total/Value").GetComponent("XUILabel") as IXUILabel); + this.m_Push = (this.m_QualifyPanel.Find("Btn/Push").GetComponent("XUIButton") as IXUIButton); + this.m_Share = (this.m_QualifyPanel.Find("Btn/Share").GetComponent("XUIButton") as IXUIButton); + this.m_SeasonTab = (this.m_QualifyPanel.transform.Find("Tab/Season").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_AllTab = (this.m_QualifyPanel.transform.Find("Tab/All").GetComponent("XUICheckBox") as IXUICheckBox); + this.InitQualify(); + } + + public override void RegisterEvent() + { + this.m_CurTitleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OpenSelectTitle)); + for (int i = 0; i < this.PVPSysID.Length; i++) + { + this.m_TitleBtn[i].ID = (ulong)((long)i); + this.m_TitleBtn[i].RegisterClickEventHandler(new ButtonClickEventHandler(this._TitleChanged)); + } + this.m_SeasonTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SeasonBoxChanged)); + this.m_AllTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._AllBoxChanged)); + this.m_PKDetail.RegisterClickEventHandler(new ButtonClickEventHandler(this._OpenPKDetail)); + this.m_Push.RegisterClickEventHandler(new ButtonClickEventHandler(this._PushBtnClick)); + this.m_Share.RegisterClickEventHandler(new ButtonClickEventHandler(this._ShareBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnTabChanged(this.m_CurPVPIndex); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this.m_HistorySegment.SetTexturePath(""); + this.m_CurSegment.SetTexturePath(""); + DlgHandlerBase.EnsureUnload(ref this.QualifyingRecordsHandler); + base.OnUnload(); + } + + private void InitInfo() + { + this.m_CurTitle.SetText(this.m_TitleName[this.m_CurPVPIndex].GetText()); + this.m_TitleSelected.gameObject.SetActive(false); + } + + private bool _OpenSelectTitle(IXUIButton btn) + { + this.m_TitleSelected.gameObject.SetActive(!this.m_TitleSelected.gameObject.activeSelf); + return true; + } + + private bool _TitleChanged(IXUIButton btn) + { + bool flag = (int)btn.ID >= this.PVPSysID.Length; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "Index:", + btn.ID, + " PVPSysCnt:", + this.PVPSysID.Length + }), null, null, null, null, null); + } + this.OnTabChanged((int)btn.ID); + return true; + } + + public void OnTabChanged(int index) + { + XSingleton.singleton.AddGreenLog("Tab:" + index.ToString(), null, null, null, null, null); + this.m_CurPVPIndex = index; + this.CloseAllTab(); + XSysDefine xsysDefine = (XSysDefine)int.Parse(this.PVPSysID[index]); + if (xsysDefine == XSysDefine.XSys_Qualifying) + { + this.m_QualifyPanel.gameObject.SetActive(true); + } + this.m_CurTitle.SetText(this.m_TitleName[index].GetText()); + this.m_TitleSelected.gameObject.SetActive(false); + } + + private void CloseAllTab() + { + this.m_QualifyPanel.gameObject.SetActive(false); + } + + public void SetData(PVPInformation data) + { + this.SetData(data.pk_info); + } + + public void SetData(PKInformation data) + { + this.win = (int)data.pk_record.histweek.win; + this.draw = (int)data.pk_record.histweek.draw; + this.lose = (int)data.pk_record.histweek.lose; + this.ContinueWin = data.pk_record.histweek.continuewin; + this.ContinueLose = data.pk_record.histweek.continuelose; + this.ProfessionWin.Clear(); + for (int i = 0; i < data.pk_record.prowin.Count; i++) + { + uint num = data.pk_record.prowin[i] + data.pk_record.prolose[i]; + bool flag = num == 0u; + if (flag) + { + this.ProfessionWin.Add(0u); + } + else + { + bool flag2 = data.pk_record.prowin[i] == 0u; + if (flag2) + { + this.ProfessionWin.Add(0u); + } + else + { + this.ProfessionWin.Add(Math.Max(1u, 100u * data.pk_record.prowin[i] / num)); + } + } + } + this.GameRecords.Clear(); + for (int j = data.pk_record.records.Count - 1; j >= 0; j--) + { + this.GameRecords.Add(data.pk_record.records[j]); + } + this.curPoint = data.pk_record.point; + this.serverRank = data.pk_rank; + this.professionRank = data.pk_profession_rank; + this.hisPoint = data.pk_max_score; + this.winHis = (int)data.pk_record.histall.win; + this.drawHis = (int)data.pk_record.histall.draw; + this.loseHis = (int)data.pk_record.histall.lose; + this.ContinueWinHis = data.pk_record.histall.continuewin; + this.beyondAll = data.pk_all_roles_rate; + bool flag3 = base.IsVisible(); + if (flag3) + { + this.Refresh(); + } + } + + public void Refresh() + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + this.m_Beyond.SetText(string.Format(XSingleton.singleton.GetString("CAREER_PK_BEYONG_ALL"), this.beyondAll)); + this.m_Score.SetText(this.curPoint.ToString()); + this.m_HistorySegment.gameObject.SetActive(true); + this.texHis = string.Format("atlas/UI/common/Pic/tts_{0}", specificDocument.GetIconIndex(this.hisPoint)); + this.m_CurSegment.gameObject.SetActive(true); + this.texCur = string.Format("atlas/UI/common/Pic/tts_{0}", specificDocument.GetIconIndex(this.curPoint)); + this.m_CurSegment.SetTexturePath(this.texCur); + for (int i = 0; i < this.m_ProfessionWinRate.Count; i++) + { + bool flag = i >= XGame.RoleCount || i >= this.ProfessionWin.Count; + if (flag) + { + this.m_ProfessionWinRate[i].gameObject.SetActive(false); + } + else + { + this.m_ProfessionWinRate[i].gameObject.SetActive(true); + this.m_ProfessionWinRate[i].SetText(this.ProfessionWin[i].ToString() + "%"); + } + } + bool flag2 = this.serverRank == 0u || this.serverRank == uint.MaxValue; + if (flag2) + { + this.m_ServerRank.SetText(string.Format(XSingleton.singleton.GetString("CAREER_PK_RANK_OUT"), new object[0])); + } + else + { + this.m_ServerRank.SetText(string.Format(XSingleton.singleton.GetString("CAREER_PK_RANK"), this.serverRank)); + } + bool flag3 = this.professionRank == 0u || this.professionRank == uint.MaxValue; + if (flag3) + { + this.m_ProfessionRank.SetText(string.Format(XSingleton.singleton.GetString("CAREER_PK_RANK_OUT"), new object[0])); + } + else + { + this.m_ProfessionRank.SetText(string.Format(XSingleton.singleton.GetString("CAREER_PK_RANK"), this.professionRank)); + } + this.m_Push.gameObject.SetActive(DlgBase.singleton.roleId == 0UL); + this.m_Share.gameObject.SetActive(DlgBase.singleton.roleId == 0UL); + this.RefreshRankStatus(); + } + + private void InitQualify() + { + this.m_Beyond.SetText(""); + this.m_Score.SetText(""); + this.m_HistorySegment.gameObject.SetActive(false); + this.m_CurSegment.gameObject.SetActive(false); + this.m_Win.SetText(""); + this.m_Lose.SetText(""); + this.m_WinStreak.SetText(""); + for (int i = 0; i < this.m_ProfessionWinRate.Count; i++) + { + this.m_ProfessionWinRate[i].SetText(""); + } + this.m_WinRate.SetText(""); + this.m_WinRateProgress.SetFillAmount(0f); + this.m_TotalCount.SetText(""); + this.m_SeasonTab.bChecked = true; + this.RefreshRankStatus(); + this.m_ServerRank.SetText(""); + this.m_ProfessionRank.SetText(""); + } + + private bool _SeasonBoxChanged(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this.RefreshRankStatus(); + result = true; + } + return result; + } + + private bool _AllBoxChanged(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this.RefreshRankStatus(); + result = true; + } + return result; + } + + private bool _OpenPKDetail(IXUIButton btn) + { + bool flag = this.QualifyingRecordsHandler == null; + if (flag) + { + DlgHandlerBase.EnsureCreate(ref this.QualifyingRecordsHandler, base.transform, true, this); + } + this.QualifyingRecordsHandler.WinCount = (uint)this.win; + this.QualifyingRecordsHandler.DrawCount = (uint)this.draw; + this.QualifyingRecordsHandler.LoseCount = (uint)this.lose; + this.QualifyingRecordsHandler.ContinueWin = this.ContinueWin; + this.QualifyingRecordsHandler.ContinueLose = this.ContinueLose; + this.QualifyingRecordsHandler.ProfessionWin = this.ProfessionWin; + this.QualifyingRecordsHandler.GameRecords = this.GameRecords; + this.QualifyingRecordsHandler.Refresh(); + return true; + } + + private bool _PushBtnClick(IXUIButton btn) + { + DlgBase.singleton.PushClick((ulong)((long)this.m_CurPVPIndex)); + return true; + } + + private bool _ShareBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShareClick(); + return true; + } + + private void RefreshRankStatus() + { + this.m_WinRateDetail.gameObject.SetActive(this.m_SeasonTab.bChecked); + this.m_PKDetail.gameObject.SetActive(this.m_SeasonTab.bChecked); + bool flag2; + bool flag = this.doc.HasData.TryGetValue(PersonalCarrerReqType.PCRT_PVP_PKINFO, out flag2) && flag2; + if (flag) + { + bool bChecked = this.m_SeasonTab.bChecked; + if (bChecked) + { + this.m_Win.SetText(this.win.ToString()); + this.m_Lose.SetText(this.lose.ToString()); + this.m_WinStreak.SetText(this.ContinueWin.ToString()); + this.m_WinRate.SetText(string.Format("{0}%", this.MatchTotalPercent.ToString())); + this.m_WinRateProgress.SetFillAmount((float)this.MatchTotalPercent / 100f); + this.m_TotalCount.SetText(this.MatchTotalCount.ToString()); + this.m_Beyond.gameObject.SetActive(true); + this.m_ServerRank.gameObject.SetActive(true); + this.m_ProfessionRank.gameObject.SetActive(true); + } + else + { + this.m_Win.SetText(this.winHis.ToString()); + this.m_Lose.SetText(this.loseHis.ToString()); + this.m_WinStreak.SetText(this.ContinueWinHis.ToString()); + this.m_WinRate.SetText(string.Format("{0}%", this.HisMatchTotalPercent.ToString())); + this.m_WinRateProgress.SetFillAmount((float)this.HisMatchTotalPercent / 100f); + this.m_TotalCount.SetText(this.HisMatchTotalCount.ToString()); + this.m_Beyond.gameObject.SetActive(false); + this.m_ServerRank.gameObject.SetActive(false); + this.m_ProfessionRank.gameObject.SetActive(false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CareerPVPDataHandler.cs.meta b/Client/Assets/Scripts/XMainClient/CareerPVPDataHandler.cs.meta new file mode 100644 index 00000000..c569f07b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CareerPVPDataHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a71a37a09c2fecf409b887d024a6112f +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CareerTrophyHandler.cs b/Client/Assets/Scripts/XMainClient/CareerTrophyHandler.cs new file mode 100644 index 00000000..c5f5d684 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CareerTrophyHandler.cs @@ -0,0 +1,701 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CareerTrophyHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/PersonalCareer/CareerTrophy"; + } + } + + private XPersonalCareerDocument doc = null; + + private uint curLevel; + + private List m_TrophyData = new List(); + + public Dictionary _WrapTextureList = new Dictionary(); + + private IXUILabel m_GloryExp; + + private IXUILabel m_GloryLevel; + + private IXUILabel m_NextRewardLevel; + + private IXUIButton m_HonorRewardOpen; + + private IXUIButton m_Push; + + private IXUIButton m_Share; + + private Transform m_RewardItem; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ListScrollView; + + private Transform m_TrophyDetailFrame; + + private IXUIButton m_TrophyClose; + + private IXUILabel m_TrophyTitle; + + private XUIPool m_TrophyPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_HonorRewardFrame; + + private IXUIButton m_HonorRewardClose; + + private IXUILabel m_HonorCurrentLevel; + + private IXUIScrollView m_HonorScrollView; + + private XUIPool m_HonorRewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_HonorItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private class TrophyData + { + public uint ID; + + public uint SceneID; + + public int SortID; + + public uint pass_count; + + public uint quickly_pass_time; + + public ulong hight_damage; + + public ulong hight_treat; + + public uint help_count; + + public uint no_deathpass_count; + + public List trophyDetail; + + public void Clear() + { + this.SceneID = 0u; + this.pass_count = 0u; + this.quickly_pass_time = 0u; + this.hight_damage = 0UL; + this.hight_treat = 0UL; + this.help_count = 0u; + this.no_deathpass_count = 0u; + this.trophyDetail = null; + } + + public void SetData(StageTrophyData data, uint tID) + { + this.ID = tID; + this.SceneID = data.scene_id; + this.pass_count = data.pass_count; + this.quickly_pass_time = data.quickly_pass_time; + this.hight_damage = data.hight_damage; + this.hight_treat = data.hight_treat; + this.help_count = data.help_count; + this.no_deathpass_count = data.no_deathpass_count; + for (int i = 0; i < data.get_trophy_detail.Count; i++) + { + bool flag = data.get_trophy_detail[i].trophy_id == tID; + if (flag) + { + this.trophyDetail = data.get_trophy_detail[i].detail; + } + } + } + + public TrophyDetail GetBestTrophy() + { + bool flag = this.trophyDetail == null; + TrophyDetail result; + if (flag) + { + result = null; + } + else + { + TrophyDetail trophyDetail = null; + for (int i = 0; i < this.trophyDetail.Count; i++) + { + bool flag2 = trophyDetail == null || trophyDetail.tropy_order < this.trophyDetail[i].tropy_order; + if (flag2) + { + trophyDetail = this.trophyDetail[i]; + } + } + result = trophyDetail; + } + return result; + } + + public TrophyDetail GetTrophyDetail(int index) + { + bool flag = this.trophyDetail == null; + TrophyDetail result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < this.trophyDetail.Count; i++) + { + bool flag2 = (long)index == (long)((ulong)this.trophyDetail[i].tropy_order); + if (flag2) + { + return this.trophyDetail[i]; + } + } + result = null; + } + return result; + } + + public string GetProgress(uint type) + { + bool flag = type == 1u; + string result; + if (flag) + { + result = this.pass_count.ToString(); + } + else + { + bool flag2 = type == 2u; + if (flag2) + { + result = XSingleton.singleton.TimeFormatString((int)this.quickly_pass_time, 2, 2, 4, false, true); + } + else + { + bool flag3 = type == 3u; + if (flag3) + { + result = XSingleton.singleton.NumberFormatBillion(this.hight_damage * 10000UL); + } + else + { + bool flag4 = type == 4u; + if (flag4) + { + result = XSingleton.singleton.NumberFormatBillion(this.hight_treat * 10000UL); + } + else + { + bool flag5 = type == 5u; + if (flag5) + { + result = this.help_count.ToString(); + } + else + { + bool flag6 = type == 6u; + if (flag6) + { + result = this.no_deathpass_count.ToString(); + } + else + { + result = ""; + } + } + } + } + } + } + return result; + } + + public string GetProgress(uint type, uint param) + { + bool flag = type == 1u; + string result; + if (flag) + { + result = param.ToString(); + } + else + { + bool flag2 = type == 2u; + if (flag2) + { + result = XSingleton.singleton.TimeFormatString((int)param, 2, 2, 4, false, true); + } + else + { + bool flag3 = type == 3u; + if (flag3) + { + result = XSingleton.singleton.NumberFormatBillion((ulong)param * 10000UL); + } + else + { + bool flag4 = type == 4u; + if (flag4) + { + result = XSingleton.singleton.NumberFormatBillion((ulong)param * 10000UL); + } + else + { + bool flag5 = type == 5u; + if (flag5) + { + result = param.ToString(); + } + else + { + bool flag6 = type == 6u; + if (flag6) + { + result = param.ToString(); + } + else + { + result = ""; + } + } + } + } + } + } + return result; + } + } + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XPersonalCareerDocument.uuID); + for (int i = 0; i < XPersonalCareerDocument.TrophyInfoTable.Table.Length; i++) + { + CareerTrophyHandler.TrophyData trophyData = new CareerTrophyHandler.TrophyData(); + trophyData.ID = XPersonalCareerDocument.TrophyInfoTable.Table[i].ID; + trophyData.SortID = i; + this.m_TrophyData.Add(trophyData); + } + this.m_GloryExp = (base.transform.Find("GloryLevel/Exp").GetComponent("XUILabel") as IXUILabel); + this.m_GloryLevel = (base.transform.Find("GloryLevel/Level").GetComponent("XUILabel") as IXUILabel); + this.m_NextRewardLevel = (base.transform.Find("NextRewardLevel").GetComponent("XUILabel") as IXUILabel); + this.m_RewardItem = base.transform.Find("Item"); + this.m_HonorRewardOpen = (base.transform.Find("Reward").GetComponent("XUIButton") as IXUIButton); + this.m_WrapContent = (base.transform.Find("TrophyFrame/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ListScrollView = (base.transform.Find("TrophyFrame").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Push = (base.transform.Find("Push").GetComponent("XUIButton") as IXUIButton); + this.m_Share = (base.transform.Find("Share").GetComponent("XUIButton") as IXUIButton); + this.m_TrophyDetailFrame = base.transform.Find("TrophyDetail"); + this.m_TrophyClose = (this.m_TrophyDetailFrame.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_TrophyTitle = (this.m_TrophyDetailFrame.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_TrophyPool.SetupPool(null, this.m_TrophyDetailFrame.Find("TrophyDetailTpl").gameObject, 3u, false); + this.m_HonorRewardFrame = base.transform.Find("PointRewardFrame"); + this.m_HonorRewardClose = (this.m_HonorRewardFrame.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_HonorScrollView = (this.m_HonorRewardFrame.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_HonorCurrentLevel = (this.m_HonorRewardFrame.Find("Bg/CurrentPoint/Text").GetComponent("XUILabel") as IXUILabel); + this.m_HonorRewardPool.SetupPool(null, this.m_HonorRewardFrame.Find("Bg/Bg/ScrollView/RewardTpl").gameObject, 8u, false); + this.m_HonorItemPool.SetupPool(null, this.m_HonorRewardFrame.Find("Bg/Bg/ScrollView/Item").gameObject, 5u, false); + this.InitShow(); + } + + public override void RegisterEvent() + { + this.m_Push.RegisterClickEventHandler(new ButtonClickEventHandler(this._PushBtnClick)); + this.m_Share.RegisterClickEventHandler(new ButtonClickEventHandler(this._ShareBtnClick)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnListItemUpdated)); + this.m_TrophyClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTrophyCloseClicked)); + this.m_HonorRewardOpen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHonorRewardOpenClick)); + this.m_HonorRewardClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHonorRewardCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + this.ClearPreTabTextures(); + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void ClearPreTabTextures() + { + foreach (KeyValuePair keyValuePair in this._WrapTextureList) + { + IXUITexture value = keyValuePair.Value; + value.SetTexturePath(""); + } + this._WrapTextureList.Clear(); + } + + private void InitShow() + { + this.m_GloryLevel.SetText(""); + this.m_GloryExp.SetText(""); + this.m_NextRewardLevel.SetText(""); + this.m_RewardItem.gameObject.SetActive(false); + this.m_TrophyDetailFrame.gameObject.SetActive(false); + this.m_HonorRewardFrame.gameObject.SetActive(false); + } + + public void SetData(StageTrophy data) + { + bool flag = data != null; + if (flag) + { + this.curLevel = data.honour_rank; + this.m_GloryLevel.SetText(this.curLevel.ToString()); + TrophyReward.RowData rowData = XPersonalCareerDocument.GetTrophyReward((int)this.curLevel); + rowData = this.doc.ProcessHonorLevelMax(rowData); + this.m_GloryExp.SetText(string.Format("({0}/{1})", data.total_score.ToString(), rowData.TrophyScore.ToString())); + TrophyReward.RowData honorNextReward = XPersonalCareerDocument.GetHonorNextReward(rowData.HonourRank); + bool flag2 = honorNextReward != null && honorNextReward.Rewards.Count > 0; + if (flag2) + { + this.m_NextRewardLevel.SetText(string.Format(XStringDefineProxy.GetString("CAREER_TROPHY_LEVEL_REWARD"), honorNextReward.HonourRank.ToString())); + this.m_RewardItem.gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_RewardItem.gameObject, (int)honorNextReward.Rewards[0, 0], (int)honorNextReward.Rewards[0, 1], false); + IXUISprite ixuisprite = this.m_RewardItem.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)honorNextReward.Rewards[0, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + this.m_NextRewardLevel.SetText(string.Format(XStringDefineProxy.GetString("CAREER_TROPHY_LEVEL_REWARD_MAX"), new object[0])); + this.m_RewardItem.gameObject.SetActive(false); + } + for (int i = 0; i < this.m_TrophyData.Count; i++) + { + this.m_TrophyData[i].Clear(); + } + XSingleton.singleton.AddGreenLog("trophydata.Count:" + data.trophydata.Count, null, null, null, null, null); + for (int j = 0; j < data.trophydata.Count; j++) + { + List trophyTableDataToSceneID = XPersonalCareerDocument.GetTrophyTableDataToSceneID(data.trophydata[j].scene_id); + for (int k = 0; k < trophyTableDataToSceneID.Count; k++) + { + CareerTrophyHandler.TrophyData trophyData = this.GetTrophyData(trophyTableDataToSceneID[k].ID); + trophyData.SetData(data.trophydata[j], trophyTableDataToSceneID[k].ID); + } + } + } + this.m_TrophyData.Sort(new Comparison(this._Compare)); + this.RefreshList(true); + } + + public void RefreshList(bool bResetPosition = true) + { + int count = this.m_TrophyData.Count; + this.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + this.m_ListScrollView.ResetPosition(); + } + else + { + this.m_WrapContent.RefreshAllVisibleContents(); + } + } + + private void _OnListItemUpdated(Transform t, int index) + { + bool flag = index < 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("index:" + index, null, null, null, null, null); + } + else + { + Transform transform = t.Find("Bg"); + bool flag2 = index >= this.m_TrophyData.Count; + if (flag2) + { + transform.gameObject.SetActive(false); + } + else + { + transform.gameObject.SetActive(true); + TrophyInfo.RowData trophyTableData = XPersonalCareerDocument.GetTrophyTableData(this.m_TrophyData[index].ID); + IXUILabel ixuilabel = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + bool flag3 = trophyTableData != null; + if (flag3) + { + ixuilabel.SetText(trophyTableData.Name); + } + TrophyDetail bestTrophy = this.m_TrophyData[index].GetBestTrophy(); + IXUILabel ixuilabel2 = transform.Find("Time").GetComponent("XUILabel") as IXUILabel; + bool flag4 = bestTrophy != null; + string text; + if (flag4) + { + text = XSingleton.singleton.TimeFormatSince1970((int)bestTrophy.trophy_time, XStringDefineProxy.GetString("CAREER_TROPHY_TIME"), true); + } + else + { + text = XStringDefineProxy.GetString("CAREER_TROPHY_UNREACH"); + } + ixuilabel2.SetText(text); + IXUITexture ixuitexture = transform.Find("Trophy").GetComponent("XUITexture") as IXUITexture; + int num = 0; + bool flag5 = bestTrophy != null; + if (flag5) + { + num = (int)bestTrophy.tropy_order; + } + ixuitexture.SetTexturePath(this.GetTrophyTex(num)); + this._WrapTextureList[t] = ixuitexture; + IXUISprite ixuisprite = ixuitexture.gameObject.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(trophyTableData.Icon); + Transform transform2 = transform.Find("Block"); + transform2.gameObject.SetActive(num == 0); + IXUISprite ixuisprite2 = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)this.m_TrophyData[index].ID; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OpenTrophyClick)); + } + } + } + + private int _Compare(CareerTrophyHandler.TrophyData left, CareerTrophyHandler.TrophyData right) + { + int num = (left.trophyDetail == null) ? 1 : 0; + int num2 = (right.trophyDetail == null) ? 1 : 0; + bool flag = num == num2; + int result; + if (flag) + { + result = left.SortID.CompareTo(right.SortID); + } + else + { + result = num.CompareTo(num2); + } + return result; + } + + private CareerTrophyHandler.TrophyData GetTrophyData(uint ID) + { + for (int i = 0; i < this.m_TrophyData.Count; i++) + { + bool flag = this.m_TrophyData[i].ID == ID; + if (flag) + { + return this.m_TrophyData[i]; + } + } + XSingleton.singleton.AddErrorLog("TrophyData:" + ID + " No Find", null, null, null, null, null); + return new CareerTrophyHandler.TrophyData(); + } + + private string GetTrophyTex(int data) + { + bool flag = data == 1; + string result; + if (flag) + { + result = "atlas/UI/common/Pic/tex_glory4"; + } + else + { + bool flag2 = data == 2; + if (flag2) + { + result = "atlas/UI/common/Pic/tex_glory5"; + } + else + { + bool flag3 = data == 3; + if (flag3) + { + result = "atlas/UI/common/Pic/tex_glory6"; + } + else + { + result = "atlas/UI/common/Pic/tex_glory4"; + } + } + } + return result; + } + + public bool OnTrophyCloseClicked(IXUIButton btn) + { + this.m_TrophyDetailFrame.gameObject.SetActive(false); + return true; + } + + private void RefreshTrophyDetail(uint ID) + { + TrophyInfo.RowData trophyTableData = XPersonalCareerDocument.GetTrophyTableData(ID); + CareerTrophyHandler.TrophyData trophyData = this.GetTrophyData(ID); + this.m_TrophyPool.FakeReturnAll(); + for (int i = 0; i < 3; i++) + { + GameObject gameObject = this.m_TrophyPool.FetchGameObject(false); + Transform transform = this.m_TrophyDetailFrame.Find(string.Format("Trophy/Trophy{0}", i)); + XSingleton.singleton.AddChild(transform, gameObject.transform); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel; + bool flag = trophyTableData != null; + if (flag) + { + ixuilabel.SetText(trophyTableData.Name); + } + bool flag2 = trophyTableData != null; + if (flag2) + { + this.m_TrophyTitle.SetText(trophyTableData.Name); + } + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/Point").GetComponent("XUILabel") as IXUILabel; + bool flag3 = trophyTableData != null; + if (flag3) + { + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("CAREER_TROPHY_POINT"), trophyTableData.TrophyScore[i])); + } + IXUITexture ixuitexture = gameObject.transform.Find("Bg/Tex").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(this.GetTrophyTex(i + 1)); + this._WrapTextureList[transform] = ixuitexture; + IXUISprite ixuisprite = ixuitexture.gameObject.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(trophyTableData.Icon); + IXUILabel ixuilabel3 = gameObject.transform.Find("Bg/Desc").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject.transform.Find("Bg/Progress").GetComponent("XUILabel") as IXUILabel; + Transform transform2 = gameObject.transform.Find("Bg/OK"); + Transform transform3 = gameObject.transform.Find("Bg/Block"); + IXUILabel ixuilabel5 = gameObject.transform.Find("Bg/OK/Time").GetComponent("XUILabel") as IXUILabel; + bool flag4 = trophyTableData != null; + if (flag4) + { + string format = ""; + uint param = 0u; + uint type = 0u; + bool flag5 = i == 0; + if (flag5) + { + format = trophyTableData.ThirdDesc; + param = trophyTableData.ThirdPara; + type = trophyTableData.Third; + } + bool flag6 = i == 1; + if (flag6) + { + format = trophyTableData.SecondDesc; + param = trophyTableData.SecondPara; + type = trophyTableData.Second; + } + bool flag7 = i == 2; + if (flag7) + { + format = trophyTableData.FirstDesc; + param = trophyTableData.FirstPara; + type = trophyTableData.First; + } + ixuilabel3.SetText(string.Format(format, trophyData.GetProgress(type, param))); + TrophyDetail trophyDetail = trophyData.GetTrophyDetail(i + 1); + bool flag8 = trophyDetail == null; + if (flag8) + { + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(true); + ixuilabel4.gameObject.SetActive(true); + ixuilabel4.SetText(string.Format("({0}/{1})", trophyData.GetProgress(type), trophyData.GetProgress(type, param))); + } + else + { + transform2.gameObject.SetActive(true); + transform3.gameObject.SetActive(false); + ixuilabel4.gameObject.SetActive(false); + ixuilabel5.SetText(XSingleton.singleton.TimeFormatSince1970((int)trophyDetail.trophy_time, XStringDefineProxy.GetString("CAREER_TROPHY_TIME"), true)); + } + } + } + this.m_TrophyPool.ActualReturnAll(false); + } + + public bool OnHonorRewardCloseClicked(IXUIButton btn) + { + this.m_HonorRewardFrame.gameObject.SetActive(false); + return true; + } + + private void RefreshHonorReward(bool resetPos = true) + { + this.m_HonorCurrentLevel.SetText(this.curLevel.ToString()); + List honorRewardList = XPersonalCareerDocument.GetHonorRewardList(); + bool flag = honorRewardList == null; + if (!flag) + { + this.m_HonorRewardPool.FakeReturnAll(); + this.m_HonorItemPool.FakeReturnAll(); + for (int i = 0; i < honorRewardList.Count; i++) + { + GameObject gameObject = this.m_HonorRewardPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Point/Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(honorRewardList[i].HonourRank.ToString()); + for (int j = 0; j < honorRewardList[i].Rewards.Count; j++) + { + GameObject gameObject2 = this.m_HonorItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)honorRewardList[i].Rewards[j, 0], (int)honorRewardList[i].Rewards[j, 1], false); + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)honorRewardList[i].Rewards[j, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3(this.m_HonorItemPool.TplPos.x - this.m_HonorRewardPool.TplPos.x + (float)(this.m_HonorItemPool.TplWidth * j), 0f); + } + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_HonorRewardPool.TplHeight * i)) + this.m_HonorRewardPool.TplPos; + Transform transform = gameObject.transform.Find("Bg/Reach"); + Transform transform2 = gameObject.transform.Find("Bg/UnReach"); + transform.gameObject.SetActive((ulong)this.curLevel >= (ulong)((long)honorRewardList[i].HonourRank)); + transform2.gameObject.SetActive((ulong)this.curLevel < (ulong)((long)honorRewardList[i].HonourRank)); + } + this.m_HonorItemPool.ActualReturnAll(false); + this.m_HonorRewardPool.ActualReturnAll(false); + if (resetPos) + { + this.m_HonorScrollView.ResetPosition(); + } + } + } + + private bool _PushBtnClick(IXUIButton btn) + { + DlgBase.singleton.PushClick(0UL); + return true; + } + + private bool _ShareBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShareClick(); + return true; + } + + private bool OnHonorRewardOpenClick(IXUIButton btn) + { + this.m_HonorRewardFrame.gameObject.SetActive(true); + this.RefreshHonorReward(true); + return true; + } + + private void _OpenTrophyClick(IXUISprite sp) + { + XSingleton.singleton.AddGreenLog("TrophyID:" + sp.ID, null, null, null, null, null); + this.m_TrophyDetailFrame.gameObject.SetActive(true); + this.RefreshTrophyDetail((uint)sp.ID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CareerTrophyHandler.cs.meta b/Client/Assets/Scripts/XMainClient/CareerTrophyHandler.cs.meta new file mode 100644 index 00000000..d8ed7c25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CareerTrophyHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53c8b90ea0770d94dab93323f15c9d39 +timeCreated: 1611403712 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs b/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs new file mode 100644 index 00000000..8682bf19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs @@ -0,0 +1,38 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + public class CarnivalBehavior : DlgBehaviourBase + { + public IXUILabel _endLabel; + + public GameObject _contentPanel; + + public GameObject _rwdPanel; + + public IXUIButton _close; + + public IXUICheckBox[] _tabs = new IXUICheckBox[7]; + + public GameObject[] _redpoint = new GameObject[7]; + + public Transform[] _lock = new Transform[7]; + + private void Awake() + { + this._endLabel = (base.transform.Find("Bg/Deadline").GetComponent("XUILabel") as IXUILabel); + this._contentPanel = base.transform.Find("Bg/contentFrame").gameObject; + this._rwdPanel = base.transform.Find("Bg/rwdFrame").gameObject; + this._close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + for (int i = 0; i < 7; i++) + { + this._tabs[i] = (base.transform.Find("Bg/Tabs/TabTpl" + i + "/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this._redpoint[i] = this._tabs[i].gameObject.transform.Find("RedPoint").gameObject; + this._lock[i] = this._tabs[i].gameObject.transform.Find("lock"); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs.meta new file mode 100644 index 00000000..3ec31e96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea5b371890342894792ce1b54dec1ba8 +timeCreated: 1611404779 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CarnivalBelong.cs b/Client/Assets/Scripts/XMainClient/CarnivalBelong.cs new file mode 100644 index 00000000..d25e9489 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalBelong.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public enum CarnivalBelong + { + Legend = 1, + Grow, + Login, + Batle, + Unite, + Hero, + Rwd + } +} diff --git a/Client/Assets/Scripts/XMainClient/CarnivalBelong.cs.meta b/Client/Assets/Scripts/XMainClient/CarnivalBelong.cs.meta new file mode 100644 index 00000000..9aee2170 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalBelong.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59a3ae68ad09b7a4fa4a30765890096c +timeCreated: 1611403785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CarnivalContentHander.cs b/Client/Assets/Scripts/XMainClient/CarnivalContentHander.cs new file mode 100644 index 00000000..62bc6a64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalContentHander.cs @@ -0,0 +1,307 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CarnivalContentHander : DlgHandlerBase + { + public GameObject boxTpl; + + public GameObject itemTpl; + + public IXUIScrollView m_scroll; + + public IXUIWrapContent m_content; + + public XUIPool m_tabpool = new XUIPool(XSingleton.singleton.m_uiTool); + + public List m_boxs = new List(); + + private List currList = new List(); + + private List itemspool = new List(); + + private int width = 90; + + private Vector3 itempos = Vector3.zero; + + protected override void Init() + { + base.Init(); + this.boxTpl = base.transform.Find("Tabs/TabTpl").gameObject; + this.m_scroll = (base.transform.Find("detail").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_content = (base.transform.Find("detail/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_content.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateItem)); + this.m_tabpool.SetupPool(this.boxTpl.transform.parent.gameObject, this.boxTpl, 2u, true); + this.itemTpl = this.m_content.gameObject.transform.Find("item_tpl/item").gameObject; + this.width = (this.itemTpl.GetComponent("XUISprite") as IXUISprite).spriteWidth; + this.itempos = this.itemTpl.transform.localPosition; + this.itemTpl.SetActive(false); + } + + public void Refresh() + { + XCarnivalDocument doc = DlgBase.singleton.doc; + string[] childs = doc.GetSuperActivity(doc.currBelong).childs; + this.m_tabpool.ReturnAll(false); + this.m_boxs.Clear(); + bool flag = childs != null; + if (flag) + { + int num = 0; + for (int i = 0; i < childs.Length; i++) + { + List tabList = doc.GetTabList(doc.currBelong, i + 1); + bool flag2 = tabList.Count == 0; + if (!flag2) + { + GameObject gameObject = this.m_tabpool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(180 * num), 0f, 0f); + IXUICheckBox ixuicheckBox = gameObject.transform.GetComponent("XUICheckBox") as IXUICheckBox; + IXUILabel ixuilabel = ixuicheckBox.gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = ixuicheckBox.gameObject.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject2 = ixuicheckBox.gameObject.transform.Find("RedPoint").gameObject; + gameObject2.SetActive(doc.HasRwdClaimed(doc.currBelong, i + 1) && !doc.IsActivityExpire()); + ixuilabel.SetText(childs[i]); + ixuilabel2.SetText(childs[i]); + ixuicheckBox.ID = (ulong)((long)(i + 1)); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + this.m_boxs.Add(ixuicheckBox); + num++; + } + } + } + bool flag3 = this.m_boxs.Count > 0; + if (flag3) + { + this.m_boxs[0].bChecked = true; + doc.currType = (int)this.m_boxs[0].ID; + this.RefreshList(); + } + } + + private bool OnTabClick(IXUICheckBox box) + { + bool bChecked = box.bChecked; + if (bChecked) + { + XCarnivalDocument doc = DlgBase.singleton.doc; + doc.currType = (int)box.ID; + this.RefreshList(); + } + return true; + } + + public void RefreshTab() + { + XCarnivalDocument doc = DlgBase.singleton.doc; + for (int i = 0; i < this.m_boxs.Count; i++) + { + Transform transform = this.m_boxs[i].gameObject.transform.Find("RedPoint"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(doc.HasRwdClaimed(doc.currBelong, i + 1) && !doc.IsActivityExpire()); + } + } + } + + public void RefreshList() + { + this.currList = DlgBase.singleton.doc.GetCurrList(); + this.currList.Sort(new Comparison(this.SortList)); + this.m_content.SetContentCount(this.currList.Count, false); + this.m_scroll.ResetPosition(); + } + + private int StateValue(SpActivityNode node) + { + bool flag = node.state == 1u; + int result; + if (flag) + { + result = 2; + } + else + { + bool flag2 = node.state == 0u; + if (flag2) + { + result = 1; + } + else + { + result = 0; + } + } + return result; + } + + private int SortList(SpActivityNode x, SpActivityNode y) + { + bool flag = x.state != y.state; + int result; + if (flag) + { + result = this.StateValue(y) - this.StateValue(x); + } + else + { + result = (int)(x.row.taskid - y.row.taskid); + } + return result; + } + + private void UpdateItem(Transform t, int index) + { + IXUIButton ixuibutton = t.Find("Get").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = t.Find("TLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("PLabel").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Fini").GetComponent("XUISprite") as IXUISprite; + Transform transform = t.Find("items"); + transform.transform.localPosition = this.itempos; + SeqListRef items = this.currList[index].row.items; + this.DestroyChilds(transform); + for (int i = 0; i < items.Count; i++) + { + GameObject gameObject = this.FetchItem(); + gameObject.transform.parent = transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(this.width * i), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)items[i, 0], (int)items[i, 1], false); + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)items[i, 0]; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + SuperActivityTask.RowData row = this.currList[index].row; + ixuilabel.SetText(row.title); + ixuibutton.ID = (ulong)row.taskid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnClick)); + uint state = this.currList[index].state; + ixuisprite.SetVisible(state == 2u); + ixuibutton.SetVisible(state != 2u); + XCarnivalDocument doc = DlgBase.singleton.doc; + bool flag = doc.IsActivityExpire(); + CarnivalState carnivalState; + if (flag) + { + carnivalState = CarnivalState.Lock; + } + else + { + bool flag2 = state == 1u; + if (flag2) + { + carnivalState = CarnivalState.Rwd; + } + else + { + bool flag3 = state == 2u; + if (flag3) + { + carnivalState = CarnivalState.Clamed; + } + else + { + bool flag4 = row.jump == 0u; + if (flag4) + { + carnivalState = CarnivalState.Desc; + } + else + { + carnivalState = CarnivalState.Task; + } + } + } + } + ixuilabel2.SetVisible(row.cnt > 0 && carnivalState != CarnivalState.Clamed); + ixuilabel2.SetText(string.Format("{0}/{1}", this.currList[index].progress, row.cnt)); + this.SetBtn(ixuibutton, carnivalState); + } + + private void SetBtn(IXUIButton btn, CarnivalState type) + { + btn.SetEnable(type != CarnivalState.Lock && type != CarnivalState.Desc, false); + IXUILabel ixuilabel = btn.gameObject.transform.Find("MoneyCost").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = btn.gameObject.transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText((type == CarnivalState.Task) ? XStringDefineProxy.GetString("PVPActivity_Go") : XStringDefineProxy.GetString("SRS_FETCH")); + ixuisprite.SetVisible(type == CarnivalState.Rwd); + bool flag = type == CarnivalState.Desc; + if (flag) + { + ixuilabel.SetText(XStringDefineProxy.GetString("CarnivalNone")); + } + } + + private bool OnBtnClick(IXUIButton btn) + { + ulong id = btn.ID; + this.currList = DlgBase.singleton.doc.GetCurrList(); + for (int i = 0; i < this.currList.Count; i++) + { + bool flag = (ulong)this.currList[i].row.taskid == id; + if (flag) + { + bool flag2 = this.currList[i].state == 1u; + if (flag2) + { + DlgBase.singleton.doc.RequestClaim((uint)id); + } + else + { + SuperActivityTask.RowData row = this.currList[i].row; + bool flag3 = row.arg != null && row.arg.Length != 0; + if (flag3) + { + bool flag4 = row.arg[0] == 1; + if (flag4) + { + DlgBase.singleton.SelectChapter(row.arg[1], (uint)row.arg[2]); + } + else + { + bool flag5 = row.arg[0] == 2; + if (flag5) + { + DlgBase.singleton.ShowView(row.arg[1]); + } + } + } + else + { + XSingleton.singleton.OpenSystem((int)row.jump); + } + } + } + } + return true; + } + + private GameObject FetchItem() + { + return this.NewGameobject(); + } + + private void DestroyChilds(Transform pa) + { + for (int i = 0; i < pa.childCount; i++) + { + Transform child = pa.GetChild(i); + UnityEngine.Object.Destroy(child.gameObject); + } + } + + private GameObject NewGameobject() + { + GameObject gameObject = XCommon.Instantiate(this.itemTpl); + gameObject.SetActive(true); + return gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CarnivalContentHander.cs.meta b/Client/Assets/Scripts/XMainClient/CarnivalContentHander.cs.meta new file mode 100644 index 00000000..99b55a20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalContentHander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2183570cfca10d5489e9cc768b95047d +timeCreated: 1611403414 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CarnivalDlg.cs b/Client/Assets/Scripts/XMainClient/CarnivalDlg.cs new file mode 100644 index 00000000..03a62d0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalDlg.cs @@ -0,0 +1,251 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CarnivalDlg : DlgBase + { + public XCarnivalDocument doc + { + get + { + return XDocuments.GetSpecificDocument(XCarnivalDocument.uuID); + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Carnival); + } + } + + public override string fileName + { + get + { + return "GameSystem/CarnivalDlg"; + } + } + + public const int SYS_CNT = 6; + + public CarnivalContentHander _contentHander; + + public CarnivalRwdHander _rwdHander; + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = 0; i <= 6; i++) + { + base.uiBehaviour._tabs[i].ID = (ulong)((long)(i + 1)); + base.uiBehaviour._tabs[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + } + base.uiBehaviour._close.RegisterClickEventHandler(new ButtonClickEventHandler(this.Close)); + } + + protected override void OnLoad() + { + base.OnLoad(); + DlgHandlerBase.EnsureCreate(ref this._rwdHander, base.uiBehaviour._rwdPanel, this, true); + DlgHandlerBase.EnsureCreate(ref this._contentHander, base.uiBehaviour._contentPanel, this, true); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._contentHander); + DlgHandlerBase.EnsureUnload(ref this._rwdHander); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshTabs(); + this.RefreshRedp(); + this.Refresh(CarnivalBelong.Rwd); + this.RefreshTime(); + } + + protected override void OnHide() + { + this.doc.UpdateHallPoint(false); + this._rwdHander.SetVisible(false); + base.OnHide(); + } + + private void RefreshTime() + { + XSingleton.singleton.AddLog("openday is: ", this.doc.openDay.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = this.doc.openDay < this.doc.activityCloseDay - 1u; + if (flag) + { + base.uiBehaviour._endLabel.SetText(XStringDefineProxy.GetString("CarnivalEnd", new object[] + { + this.doc.activityCloseDay - this.doc.openDay + })); + } + else + { + bool flag2 = this.doc.activityCloseDay - this.doc.openDay == 1u; + if (flag2) + { + base.uiBehaviour._endLabel.SetText(XStringDefineProxy.GetString("CarnivalLast")); + } + else + { + bool flag3 = this.doc.openDay < this.doc.claimCloseDay; + if (flag3) + { + base.uiBehaviour._endLabel.SetText(XStringDefineProxy.GetString("CarnivalStop")); + } + else + { + base.uiBehaviour._endLabel.SetText(XStringDefineProxy.GetString("CarnivalTerminal")); + } + } + } + } + + private bool OnTabClick(IXUICheckBox box) + { + ulong id = box.ID; + bool flag = box.bChecked && (this.doc.currBelong == 0 || this.doc.currBelong != (int)id); + if (flag) + { + this.doc.currBelong = (int)id; + this.doc.currType = 1; + CarnivalBelong currBelong = (CarnivalBelong)this.doc.currBelong; + this.Refresh(currBelong); + } + return true; + } + + public void Refresh() + { + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshTime(); + this.RefreshRedp(); + CarnivalBelong currBelong = (CarnivalBelong)this.doc.currBelong; + bool flag2 = currBelong == CarnivalBelong.Rwd; + if (flag2) + { + this._rwdHander.Refresh(); + } + else + { + this._contentHander.RefreshList(); + this._contentHander.RefreshTab(); + } + } + this.RefreshHallRedp(); + } + + private void Refresh(CarnivalBelong belong) + { + this._contentHander.SetVisible(belong != CarnivalBelong.Rwd); + this._rwdHander.SetVisible(belong == CarnivalBelong.Rwd); + bool flag = belong != CarnivalBelong.Rwd; + if (flag) + { + this._contentHander.Refresh(); + } + else + { + this._rwdHander.Refresh(); + } + } + + private void RefreshTabs() + { + for (int i = 0; i < 6; i++) + { + SuperActivity.RowData superActivity = this.doc.GetSuperActivity(i + 1); + base.uiBehaviour._tabs[i].SetEnable(superActivity.offset <= this.doc.openDay); + bool flag = base.uiBehaviour._lock[i] != null; + if (flag) + { + base.uiBehaviour._lock[i].gameObject.SetActive(superActivity.offset > this.doc.openDay); + IXUISprite ixuisprite = base.uiBehaviour._lock[i].GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnLockTip)); + } + } + base.uiBehaviour._tabs[6].bChecked = true; + } + + private void OnLockTip(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalLock"), "fece00"); + } + + private void RefreshRedp() + { + for (int i = 0; i < 6; i++) + { + bool flag = this.doc.HasRwdClaimed(i + 1); + SuperActivity.RowData superActivity = this.doc.GetSuperActivity(i + 1); + base.uiBehaviour._redpoint[i].SetActive(flag && superActivity.offset <= this.doc.openDay && !this.doc.IsActivityExpire()); + } + uint needPoint = this.doc.needPoint; + bool flag2 = XSingleton.singleton.XPlayerData != null; + if (flag2) + { + uint point = XSingleton.singleton.XPlayerData.point; + bool flag3 = !XSingleton.singleton.XPlayerData.CarnivalClaimed; + base.uiBehaviour._redpoint[6].SetActive(needPoint <= point && flag3 && !this.doc.IsActivityClosed()); + } + } + + public void RefreshHallRedp() + { + bool bState = false; + bool flag = !this.doc.IsActivityExpire(); + for (int i = 0; i < 6; i++) + { + bool flag2 = this.doc.HasRwdClaimed(i + 1); + SuperActivity.RowData superActivity = this.doc.GetSuperActivity(i + 1); + bool flag3 = flag2 && superActivity.offset <= this.doc.openDay && flag; + if (flag3) + { + bState = true; + break; + } + } + uint needPoint = this.doc.needPoint; + bool flag4 = XSingleton.singleton.XPlayerData != null; + if (flag4) + { + uint point = XSingleton.singleton.XPlayerData.point; + bool flag5 = !XSingleton.singleton.XPlayerData.CarnivalClaimed; + bool flag6 = needPoint < point && flag5 && !this.doc.IsActivityClosed(); + if (flag6) + { + bState = true; + } + } + XSingleton.singleton.SetSysRedState(XSysDefine.XSys_Carnival, bState); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Carnival, true); + } + + private bool Close(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CarnivalDlg.cs.meta b/Client/Assets/Scripts/XMainClient/CarnivalDlg.cs.meta new file mode 100644 index 00000000..9b3b3896 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f34652ba9c1496e4f98d1cfc75806b83 +timeCreated: 1611404847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CarnivalRwdHander.cs b/Client/Assets/Scripts/XMainClient/CarnivalRwdHander.cs new file mode 100644 index 00000000..d32483b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalRwdHander.cs @@ -0,0 +1,183 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CarnivalRwdHander : DlgHandlerBase + { + private IXUIButton m_rwdBtn; + + private IXUILabel m_rwdLbl; + + private IXUISlider m_slider; + + private IXUILabel m_lblProgress; + + private IXUISprite m_sprIntro; + + public IXUISprite m_sprRBg; + + private XDummy m_Dummy; + + private IUIDummy m_Snapshot; + + private uint present; + + protected override void Init() + { + base.Init(); + this.m_Snapshot = (base.transform.Find("snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_rwdBtn = (base.transform.Find("btn").GetComponent("XUIButton") as IXUIButton); + this.m_rwdLbl = (this.m_rwdBtn.gameObject.transform.Find("MoneyCost").GetComponent("XUILabel") as IXUILabel); + this.m_sprIntro = (base.transform.Find("Help").GetComponent("XUISprite") as IXUISprite); + this.m_slider = (base.transform.Find("slider").GetComponent("XUISlider") as IXUISlider); + this.m_lblProgress = (base.transform.Find("slider/PLabel").GetComponent("XUILabel") as IXUILabel); + this.m_sprRBg = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.present = (uint)XSingleton.singleton.GetInt("CarnivalPresent"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_rwdBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRwdbtnClick)); + this.m_sprIntro.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnIntroClick)); + this.m_sprRBg.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnAvatarDrag)); + } + + private void OnIntroClick(IXUISprite sp) + { + XSingleton.singleton.AddLog("intro click", null, null, null, null, null, XDebugColor.XDebug_None); + } + + public void Refresh() + { + bool flag = this.m_Dummy == null; + if (flag) + { + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, this.present, this.m_Snapshot, this.m_Dummy, 1f); + } + bool flag2 = !XSingleton.singleton.XPlayerData.CarnivalClaimed; + this.m_rwdBtn.SetEnable(flag2 && !DlgBase.singleton.doc.IsActivityClosed(), false); + this.m_rwdLbl.SetText((!flag2) ? XStringDefineProxy.GetString("carnival_after") : XStringDefineProxy.GetString("carnival_befor")); + uint needPoint = DlgBase.singleton.doc.needPoint; + uint point = XSingleton.singleton.XPlayerData.point; + this.m_slider.Value = Mathf.Min(needPoint, point) / needPoint; + this.m_lblProgress.SetText(point + "/" + needPoint); + } + + private bool OnRwdbtnClick(IXUIButton btn) + { + uint needPoint = DlgBase.singleton.doc.needPoint; + uint point = XSingleton.singleton.XPlayerData.point; + bool flag = DlgBase.singleton.doc.IsActivityClosed(); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalLast"), "fece00"); + } + else + { + bool flag2 = point >= needPoint; + if (flag2) + { + DlgBase.singleton.doc.ExchangePoint(); + } + else + { + bool flag3 = DlgBase.singleton.doc.IsActivityExpire(); + if (flag3) + { + int num = Convert.ToInt32(Math.Round((double)((needPoint - point) * DlgBase.singleton.doc.rate))); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string @string = XStringDefineProxy.GetString("CarnivalPrice", new object[] + { + num, + needPoint - point + }); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string3 = XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnModalDlgOK), null); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalLess"), "fece00"); + } + } + } + return true; + } + + private bool OnModalDlgOK(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + uint needPoint = DlgBase.singleton.doc.needPoint; + int num = (int)XSingleton.singleton.Doc.XBagDoc.GetItemCount(7); + uint point = XSingleton.singleton.XPlayerData.point; + int num2 = Convert.ToInt32(Math.Round((double)((needPoint - point) * DlgBase.singleton.doc.rate))); + bool flag = num > num2; + if (flag) + { + DlgBase.singleton.doc.ExchangePoint(); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalPay"), "fece00"); + } + return true; + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("CarnivalRwdHander", 1); + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, this.present, this.m_Snapshot, this.m_Dummy, 1f); + uint needPoint = DlgBase.singleton.doc.needPoint; + uint point = XSingleton.singleton.XPlayerData.point; + this.m_slider.Value = Mathf.Min(needPoint, point) / needPoint; + this.m_lblProgress.SetText(point + "/" + needPoint); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("CarnivalRwdHander", 1); + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, this.present, this.m_Snapshot, this.m_Dummy, 1f); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + this.m_Dummy = null; + } + + protected override void OnHide() + { + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnHide(); + } + + public override void OnUnload() + { + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnUnload(); + } + + protected bool OnAvatarDrag(Vector2 delta) + { + bool flag = this.m_Dummy != null; + if (flag) + { + this.m_Dummy.EngineObject.Rotate(Vector3.up, -delta.x / 2f); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CarnivalRwdHander.cs.meta b/Client/Assets/Scripts/XMainClient/CarnivalRwdHander.cs.meta new file mode 100644 index 00000000..11f7811b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalRwdHander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d510719edce48e44ac267f7c330ec6a +timeCreated: 1611404104 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CarnivalState.cs b/Client/Assets/Scripts/XMainClient/CarnivalState.cs new file mode 100644 index 00000000..bbe24465 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalState.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public enum CarnivalState + { + Lock, + Task, + Desc, + Rwd, + Clamed + } +} diff --git a/Client/Assets/Scripts/XMainClient/CarnivalState.cs.meta b/Client/Assets/Scripts/XMainClient/CarnivalState.cs.meta new file mode 100644 index 00000000..e531a924 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CarnivalState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35a6e777662d146429dd604416fd0ddb +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat.meta b/Client/Assets/Scripts/XMainClient/Chat.meta new file mode 100644 index 00000000..79792ea4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 83afe1c6b87b67d48a580e54d488aef6 +folderAsset: yes +timeCreated: 1611548937 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatAssetType.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatAssetType.cs new file mode 100644 index 00000000..704648c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatAssetType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum ChatAssetType + { + EMOTION, + HISTOTY + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatAssetType.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatAssetType.cs.meta new file mode 100644 index 00000000..c9686878 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatAssetType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f004a9cb82077d46a1af51fd181cbb9 +timeCreated: 1611404132 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs new file mode 100644 index 00000000..0491c7f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ChatAssistBehaviour : DlgBehaviourBase + { + public IXUIButton m_btnEmotion; + + public IXUIButton m_btnHistory; + + public GameObject m_objEmotionTpl; + + public XUIPool m_ChatEmotionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_sprBg; + + public ILoopScrollView m_loophistoryView; + + public GameObject m_objEmotion; + + public GameObject m_objHistory; + + private void Awake() + { + this.m_btnEmotion = (base.transform.Find("Tabs/SmallTab_emo").GetComponent("XUIButton") as IXUIButton); + this.m_btnHistory = (base.transform.Find("Tabs/SmallTab_his").GetComponent("XUIButton") as IXUIButton); + this.m_objEmotionTpl = base.transform.Find("ChatEmotion/template").gameObject; + this.m_sprBg = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_loophistoryView = (base.transform.Find("ChatHistory/loopscroll").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_objEmotion = base.transform.Find("ChatEmotion").gameObject; + this.m_objHistory = base.transform.Find("ChatHistory").gameObject; + this.m_ChatEmotionPool.SetupPool(this.m_objEmotion, this.m_objEmotionTpl, 24u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs.meta new file mode 100644 index 00000000..6df2295b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e80e93063b98a84389229231d2b8b5a +timeCreated: 1611404129 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatAssistView.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistView.cs new file mode 100644 index 00000000..274b5326 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistView.cs @@ -0,0 +1,190 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ChatAssistView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ChatAssistDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private ChatInputStringBack m_func = null; + + public ChatAssetType assetType = ChatAssetType.EMOTION; + + private string m_Emotion = "fsbq_"; + + private string m_EmotionText = "z"; + + private const int CHAT_MAX_EMOTION_NUM = 24; + + protected override void Init() + { + base.Init(); + string[] array = new string[] + { + "z", + "g", + "f" + }; + this.m_Emotion = "@2x"; + this.m_EmotionText = array[0]; + for (int i = 0; i < 24; i++) + { + GameObject gameObject = base.uiBehaviour.m_ChatEmotionPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_ChatEmotionPool.TplPos.x + (float)(i % 8 * (base.uiBehaviour.m_ChatEmotionPool.TplWidth + 2)), base.uiBehaviour.m_ChatEmotionPool.TplPos.y - (float)(i / 8 * (base.uiBehaviour.m_ChatEmotionPool.TplHeight + 4)), base.uiBehaviour.m_ChatEmotionPool.TplPos.z); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(string.Format("{0:D3}", i) + this.m_Emotion); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectEmotion)); + ixuisprite.ID = (ulong)((long)i); + } + GameObject tpl = base.uiBehaviour.m_loophistoryView.GetTpl(); + bool flag = tpl != null && tpl.GetComponent() == null; + if (flag) + { + tpl.AddComponent(); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnEmotion.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEmotionClick)); + base.uiBehaviour.m_btnHistory.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHistoryClick)); + base.uiBehaviour.m_sprBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClosePanel)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.transform.localPosition = new Vector3(-292f, -84f, 0f); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public void Close(string str) + { + bool flag = this.m_func != null; + if (flag) + { + this.m_func(str); + } + this.SetVisible(false, true); + } + + public void Show(ChatInputStringBack func, ChatAssetType type) + { + this.SetVisible(true, true); + this.assetType = type; + this.m_func = func; + this.Toggle(type); + } + + private bool OnEmotionClick(IXUIButton btn) + { + this.Toggle(ChatAssetType.EMOTION); + return true; + } + + private bool OnHistoryClick(IXUIButton btn) + { + this.Toggle(ChatAssetType.HISTOTY); + return true; + } + + private void Toggle(ChatAssetType type) + { + base.uiBehaviour.m_objEmotion.SetActive(type == ChatAssetType.EMOTION); + base.uiBehaviour.m_objHistory.SetActive(type == ChatAssetType.HISTOTY); + this.SetTabActive(base.uiBehaviour.m_btnEmotion.gameObject, type == ChatAssetType.EMOTION); + this.SetTabActive(base.uiBehaviour.m_btnHistory.gameObject, type == ChatAssetType.HISTOTY); + bool flag = type == ChatAssetType.HISTOTY; + if (flag) + { + this.RefreshHistoryList(); + } + } + + private void SetTabActive(GameObject go, bool active) + { + GameObject gameObject = go.transform.Find("InActivated").gameObject; + GameObject gameObject2 = go.transform.Find("Activated").gameObject; + gameObject.SetActive(!active); + gameObject2.SetActive(active); + } + + private void OnSelectEmotion(IXUISprite sp) + { + ulong id = sp.ID; + string str = "/" + this.m_EmotionText + string.Format("{0:D2}", id); + bool flag = this.m_func != null; + if (flag) + { + this.m_func(str); + } + this.SetVisible(false, true); + } + + private void RefreshHistoryList() + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + List recentSendmsg = specificDocument.recentSendmsg; + List list = new List(); + for (int i = recentSendmsg.Count - 1; i >= 0; i--) + { + RecentMsg recentMsg = new RecentMsg(); + recentMsg.content = recentSendmsg[i]; + recentMsg.LoopID = XSingleton.singleton.XHash(recentMsg.content); + list.Add(recentMsg); + } + base.uiBehaviour.m_loophistoryView.Init(list, new DelegateHandler(this.RefreshHistoryItem), null, 0, false); + } + + private void RefreshHistoryItem(ILoopItemObject item, LoopItemData data) + { + RecentMsg recentMsg = data as RecentMsg; + bool flag = recentMsg != null; + if (flag) + { + item.GetObj().GetComponent().Refresh(recentMsg.content); + } + else + { + XSingleton.singleton.AddErrorLog("history info is null", null, null, null, null, null); + } + } + + private void ClosePanel(IXUISprite spr) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatAssistView.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistView.cs.meta new file mode 100644 index 00000000..fc206db1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatAssistView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99f2a3586916d6548bda9a7a441a97ad +timeCreated: 1611404198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatChannelType.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatChannelType.cs new file mode 100644 index 00000000..1eb8d6be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatChannelType.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + public enum ChatChannelType + { + DEFAULT = -9999, + RecentContacts = -1, + ZeroChannel, + World, + Guild, + Friends, + System, + LampShort, + LampLong, + Team, + Camp, + Spectate, + Curr, + Partner, + Broadcast, + Battle, + Group, + ChannelNum + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatChannelType.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatChannelType.cs.meta new file mode 100644 index 00000000..e24b52e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatChannelType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7acfb5cd268e74d4893007ed9d5b7b9b +timeCreated: 1611403991 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs new file mode 100644 index 00000000..3ee1e84c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs @@ -0,0 +1,27 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ChatEmotionBehaviour : DlgBehaviourBase + { + public IXUISprite m_sprEmotion; + + public IXUISprite m_sprP; + + public GameObject m_objEmotionTpl; + + public XUIPool m_ChatEmotionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_sprEmotion = (base.transform.Find("Emotion").GetComponent("XUISprite") as IXUISprite); + this.m_sprP = (base.transform.Find("P").GetComponent("XUISprite") as IXUISprite); + this.m_objEmotionTpl = base.transform.Find("Emotion/template").gameObject; + this.m_ChatEmotionPool.SetupPool(this.m_sprEmotion.gameObject, this.m_objEmotionTpl, 24u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs.meta new file mode 100644 index 00000000..0d01d193 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e9c86a7733ab674cb3106ae1553ee52 +timeCreated: 1611403510 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionView.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionView.cs new file mode 100644 index 00000000..0e8942aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionView.cs @@ -0,0 +1,184 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class ChatEmotionView : DlgBase + { + public override string fileName + { + get + { + return "Common/ChatEmotion"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private string m_Emotion = "fsbq_"; + + private string m_EmotionText = "z"; + + private const int CHAT_MAX_EMOTION_NUM = 24; + + private ChatSelectStringBack _func = null; + + private List emotion = new List(); + + protected override void Init() + { + base.Init(); + string[] array = new string[] + { + "z", + "g", + "f" + }; + this.m_Emotion = "@2x"; + this.m_EmotionText = array[0]; + for (int i = 0; i < 24; i++) + { + GameObject gameObject = base.uiBehaviour.m_ChatEmotionPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_ChatEmotionPool.TplPos.x + (float)(i % 6 * base.uiBehaviour.m_ChatEmotionPool.TplWidth), base.uiBehaviour.m_ChatEmotionPool.TplPos.y - (float)(i / 6 * base.uiBehaviour.m_ChatEmotionPool.TplHeight), base.uiBehaviour.m_ChatEmotionPool.TplPos.z); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(string.Format("{0:D3}", i) + this.m_Emotion); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectEmotion)); + ixuisprite.ID = (ulong)((long)i); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_sprP.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.CloseEmotion)); + } + + public void ShowChatEmotion(ChatSelectStringBack func, Vector3 pos, int pivot) + { + this._func = func; + this.SetVisible(true, true); + base.uiBehaviour.m_sprEmotion.gameObject.transform.localPosition = pos; + this.SetPivot(pivot); + } + + public void SetPivot(int pivot) + { + bool flag = pivot == 0; + if (flag) + { + this.m_uiBehaviour.m_sprEmotion.SetFlipVertical(false); + } + else + { + bool flag2 = pivot == 1; + if (flag2) + { + this.m_uiBehaviour.m_sprEmotion.SetFlipHorizontal(true); + } + else + { + bool flag3 = pivot == 2; + if (flag3) + { + this.m_uiBehaviour.m_sprEmotion.SetFlipVertical(true); + } + } + } + } + + private void CloseEmotion(IXUISprite spr) + { + this.SetVisible(false, true); + } + + public void OnSelectEmotion(IXUISprite sp) + { + ulong id = sp.ID; + string str = "/" + this.m_EmotionText + string.Format("{0:D2}", id); + bool flag = this._func != null; + if (flag) + { + this._func(str); + } + this.CloseEmotion(sp); + } + + public string OnParseEmotion(string content) + { + this.emotion.Clear(); + for (int i = 0; i < content.Length; i++) + { + bool flag = content[i] == '/' && i + 4 <= content.Length; + if (flag) + { + string s = content[i + 2].Equals('0') ? content.Substring(i + 3, 1) : content.Substring(i + 2, 2); + int num = 0; + bool flag2 = int.TryParse(s, out num); + if (flag2) + { + bool flag3 = num < 24; + if (flag3) + { + this.emotion.Add(content.Substring(i, 4)); + } + } + } + } + for (int j = 0; j < this.emotion.Count; j++) + { + string text = this.emotion[j]; + bool flag4 = text[1] == 'z' || text[1] == 'g' || text[1] == 'f'; + if (flag4) + { + string str = "@2x"; + string sprite = "0" + text.Substring(2, 2) + str; + string newValue = XLabelSymbolHelper.FormatImage("Chat/Chat", sprite); + content = content.Replace(text, newValue); + } + } + return content; + } + + public string OnRemoveEmotion(string content) + { + this.emotion.Clear(); + for (int i = 0; i < content.Length; i++) + { + bool flag = content[i] == '/' && i + 4 <= content.Length; + if (flag) + { + string s = content[i + 2].Equals('0') ? content.Substring(i + 3, 1) : content.Substring(i + 2, 2); + int num = 0; + bool flag2 = int.TryParse(s, out num); + if (flag2) + { + bool flag3 = num < 24; + if (flag3) + { + this.emotion.Add(content.Substring(i, 4)); + } + } + } + } + for (int j = 0; j < this.emotion.Count; j++) + { + string text = this.emotion[j]; + bool flag4 = text[1] == 'z' || text[1] == 'g' || text[1] == 'f'; + if (flag4) + { + content = content.Replace(text, string.Empty); + } + } + return content; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionView.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionView.cs.meta new file mode 100644 index 00000000..00f3c71e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatEmotionView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03dd8446d2f49504783e8353f517f2ac +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs new file mode 100644 index 00000000..3b055021 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public class ChatFriendData : LoopItemData + { + public uint degreelevel + { + get + { + return (this.friendData != null) ? this.friendData.degreeAll : 0u; + } + } + + public int isOnline + { + get + { + return (this.online > 0u) ? 1 : 0; + } + } + + public XFriendData friendData + { + get + { + List friendData = DlgBase.singleton.friendData; + for (int i = 0; i < friendData.Count; i++) + { + bool flag = friendData[i].roleid == this.roleid; + if (flag) + { + return friendData[i]; + } + } + return null; + } + } + + public uint viplevel; + + public uint profession; + + public string name; + + public uint powerpoint; + + public ulong roleid; + + public bool isfriend; + + public List setid = new List(); + + public uint online; + + public DateTime msgtime = DateTime.Today; + + public bool hasOfflineRead = false; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs.meta new file mode 100644 index 00000000..0d3d414a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 877e6585a31607b4490add7948b2201f +timeCreated: 1611404079 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatFriendItem.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendItem.cs new file mode 100644 index 00000000..ccd5ab5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendItem.cs @@ -0,0 +1,162 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public class ChatFriendItem : MonoBehaviour + { + private ChatFriendData mFriendData; + + public IXUISprite m_sprRoot; + + public IXUILabel m_lblName; + + public IXUISprite m_sprHead; + + public IXUISprite m_sprFrame; + + public IXUILabelSymbol m_lblMsg; + + public IXUISprite m_sprRelation; + + public IXUISprite m_sprChat; + + public IXUISprite m_sprRedpoint; + + public IXUISprite m_sprHeadColl; + + public IXUISprite m_sprDel; + + private void Awake() + { + this.m_sprRoot = (base.GetComponent("XUISprite") as IXUISprite); + this.m_sprHead = (base.transform.Find("headboard/head").GetComponent("XUISprite") as IXUISprite); + this.m_sprFrame = (base.transform.Find("headboard/head/AvatarFrame").GetComponent("XUISprite") as IXUISprite); + this.m_sprRedpoint = (base.transform.Find("msg/redpoint").GetComponent("XUISprite") as IXUISprite); + this.m_lblName = (base.transform.Find("info/name").GetComponent("XUILabel") as IXUILabel); + this.m_lblMsg = (base.transform.Find("info/lv").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_sprRelation = (base.transform.Find("relation").GetComponent("XUISprite") as IXUISprite); + this.m_sprChat = (base.transform.Find("msg").GetComponent("XUISprite") as IXUISprite); + this.m_sprHeadColl = (base.transform.Find("headboard").GetComponent("XUISprite") as IXUISprite); + this.m_sprDel = (base.transform.Find("Del").GetComponent("XUISprite") as IXUISprite); + this.m_sprChat.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChatClick)); + } + + public void Refresh(ChatFriendData data) + { + this.mFriendData = data; + this.m_lblName.SetText(data.name); + string text = XSingleton.singleton.GetProfHeadIcon2((int)data.profession); + bool flag = text == ""; + if (flag) + { + text = "TXicon_01"; + } + this.m_sprHead.SetSprite(text); + this.m_sprRelation.SetVisible(this.mFriendData.isfriend); + this.m_sprRelation.SetSprite(this.GetRelation()); + this.m_lblMsg.InputText = this.GetRecentChatInfo(data.roleid); + this.m_sprRedpoint.SetVisible(DlgBase.singleton.HasRedpointMsg(data.roleid)); + this.m_sprHeadColl.ID = data.roleid; + this.m_sprHeadColl.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickFriendHead)); + this.m_sprDel.ID = data.roleid; + this.m_sprDel.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnDeleteChat)); + XSingleton.singleton.ParseHeadIcon(data.setid, this.m_sprFrame); + } + + private string GetRecentChatInfo(ulong roleid) + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + List friendChatInfoList = specificDocument.GetFriendChatInfoList(roleid); + bool flag = friendChatInfoList == null || friendChatInfoList.Count <= 0; + string result; + if (flag) + { + result = string.Empty; + } + else + { + string mContent = friendChatInfoList[friendChatInfoList.Count - 1].mContent; + string text = DlgBase.singleton.OnParseEmotion(mContent); + int num = text.IndexOf("im=Chat"); + bool flag2 = num > -1 && num < 12; + int num2 = 21; + int num3 = flag2 ? 30 : 12; + bool flag3 = flag2; + if (flag3) + { + bool flag4 = text.Length > num3 && text.Length > num + num2; + if (flag4) + { + text = text.Substring(0, num + num2) + "..."; + } + } + else + { + bool flag5 = text.Length >= num3 - 3; + if (flag5) + { + text = text.Substring(0, num3 - 3) + "..."; + } + } + result = text; + } + return result; + } + + private string GetRelation() + { + bool isfriend = this.mFriendData.isfriend; + string result; + if (isfriend) + { + result = "tag_friend"; + } + else + { + result = "tag_guild"; + } + return result; + } + + private void OnChatClick(IXUISprite spr) + { + spr.ID = this.mFriendData.roleid; + bool flag = DlgBase.singleton.HasRedpointMsg(spr.ID); + bool flag2 = flag; + if (flag2) + { + PtcC2M_OpenPrivateChatNtf ptcC2M_OpenPrivateChatNtf = new PtcC2M_OpenPrivateChatNtf(); + ptcC2M_OpenPrivateChatNtf.Data.roleid = spr.ID; + XSingleton.singleton.Send(ptcC2M_OpenPrivateChatNtf); + } + DlgBase.singleton.JumpToChats(spr); + } + + private void OnDeleteChat(IXUISprite spr) + { + DlgBase.singleton.OnSendClearFriend(spr.ID); + } + + private void OnClickFriendHead(IXUISprite sp) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + DlgBase.singleton.ChatFriendId = this.mFriendData.roleid; + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + ChatFriendData chatFriendData = specificDocument.FindFriendData(sp.ID); + bool flag2 = chatFriendData != null; + if (flag2) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(chatFriendData.roleid, false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatFriendItem.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendItem.cs.meta new file mode 100644 index 00000000..0b086049 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatFriendItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 861adafd562a3e54cbf215d318091506 +timeCreated: 1611404053 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatGroupBehaviour.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupBehaviour.cs new file mode 100644 index 00000000..264d27e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class ChatGroupBehaviour : DlgBehaviourBase + { + public IXUISprite m_sprClose; + + public IXUIWrapContent m_wrap; + + public IXUICheckBox m_add; + + public IXUICheckBox m_rm; + + private void Awake() + { + this.m_wrap = (base.transform.Find("Bg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_sprClose = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_add = (base.transform.Find("Bg/tabs/tab1/template/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_rm = (base.transform.Find("Bg/tabs/tab2/template/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatGroupBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupBehaviour.cs.meta new file mode 100644 index 00000000..38a44bf7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 64211f0e363b7404281bc1b3f7c7e19a +timeCreated: 1611403846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatGroupItem.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupItem.cs new file mode 100644 index 00000000..6fb8dd82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupItem.cs @@ -0,0 +1,70 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + public class ChatGroupItem : MonoBehaviour + { + private CBrifGroupInfo data; + + public IXUILabel m_lblName; + + public IXUILabel m_lblCnt; + + public IXUILabel m_lblDate; + + public IXUILabel m_lblRoleName; + + public IXUILabelSymbol m_lblChat; + + public IXUISprite m_sprRedpoint; + + public IXUISprite m_sprRoot; + + private void Awake() + { + this.m_lblName = (base.transform.Find("info/name").GetComponent("XUILabel") as IXUILabel); + this.m_lblCnt = (base.transform.Find("info/cnt").GetComponent("XUILabel") as IXUILabel); + this.m_lblDate = (base.transform.Find("info/time").GetComponent("XUILabel") as IXUILabel); + this.m_lblRoleName = (base.transform.Find("info/role").GetComponent("XUILabel") as IXUILabel); + this.m_lblChat = (base.transform.Find("info/chat").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_sprRedpoint = (base.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite); + this.m_sprRoot = (base.transform.GetComponent("XUISprite") as IXUISprite); + } + + public void Refresh(CBrifGroupInfo d) + { + this.data = d; + this.m_lblName.SetText(d.name); + DateTime msgtime = d.msgtime; + TimeSpan timeSpan = DateTime.Now - msgtime; + string text = string.Format("{0:D2}:{1:D2}:{2:D2}", msgtime.Hour, msgtime.Minute, msgtime.Second); + bool flag = timeSpan.Days > 0; + if (flag) + { + text = XStringDefineProxy.GetString("CHAT_DAY", new object[] + { + timeSpan.Days + }); + } + this.m_lblDate.SetText(text); + this.m_lblCnt.SetText(XStringDefineProxy.GetString("CHAT_GROUP_MEMBER", new object[] + { + d.memberCnt.ToString() + })); + this.m_lblRoleName.SetText(d.rolename); + this.m_lblChat.InputText = DlgBase.singleton.OnParseEmotion(d.chat); + this.m_sprRedpoint.SetVisible(false); + this.m_sprRoot.ID = this.data.id; + this.m_sprRoot.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClick)); + } + + public void OnItemClick(IXUISprite spr) + { + DlgBase.singleton.ChatGroupId = spr.ID; + DlgBase.singleton.JumpToGroupChat(spr); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatGroupItem.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupItem.cs.meta new file mode 100644 index 00000000..b5654d80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6dee1f8d07259540b07e187f5725790 +timeCreated: 1611404633 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatGroupList.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupList.cs new file mode 100644 index 00000000..fd21b2a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupList.cs @@ -0,0 +1,252 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ChatGroupList : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ChatGroupList"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public ChatGroupList.State state = ChatGroupList.State.Add; + + private List players; + + public enum State + { + Add, + Rm + } + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_wrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + base.uiBehaviour.m_sprClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_add.ID = 1UL; + base.uiBehaviour.m_add.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabSelectionChanged)); + base.uiBehaviour.m_rm.ID = 2UL; + base.uiBehaviour.m_rm.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabSelectionChanged)); + } + + protected override void OnShow() + { + base.OnShow(); + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReqGetGroupInfo(DlgBase.singleton.ChatGroupId); + } + + protected override void OnHide() + { + DlgBase.singleton.OnFocus(); + base.OnHide(); + } + + public void SetCB() + { + this.state = ChatGroupList.State.Add; + base.uiBehaviour.m_add.ForceSetFlag(true); + this.Refresh(); + } + + public void Refresh() + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + bool flag = specificDocument.players != null; + if (flag) + { + CGroupPlayerInfo[] array = new CGroupPlayerInfo[specificDocument.players.Count]; + specificDocument.players.CopyTo(array); + this.SelectByState(array); + base.uiBehaviour.m_wrap.SetContentCount(this.players.Count, false); + } + } + + private bool OnTabSelectionChanged(IXUICheckBox ckb) + { + bool bChecked = ckb.bChecked; + if (bChecked) + { + ulong id = ckb.ID; + bool flag = id == 1UL; + if (flag) + { + this.state = ChatGroupList.State.Add; + } + else + { + this.state = ChatGroupList.State.Rm; + } + this.Refresh(); + } + return true; + } + + private void SelectByState(CGroupPlayerInfo[] pp) + { + bool flag = this.players == null; + if (flag) + { + this.players = new List(); + } + else + { + this.players.Clear(); + } + int i = 0; + int num = pp.Length; + while (i < num) + { + bool flag2 = this.state == ChatGroupList.State.Add; + if (flag2) + { + bool flag3 = pp[i].degree >= 0; + if (flag3) + { + this.players.Add(pp[i]); + } + } + else + { + bool flag4 = pp[i].degree < 0; + if (flag4) + { + bool flag5 = pp[i].roleid != XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + this.players.Add(pp[i]); + } + } + } + i++; + } + bool flag6 = this.state == ChatGroupList.State.Add; + if (flag6) + { + this.players.Sort(new Comparison(this.Sort)); + } + } + + private int Sort(CGroupPlayerInfo x, CGroupPlayerInfo y) + { + return y.degree - x.degree; + } + + private void OnCloseClick(IXUISprite spr) + { + this.SetVisible(false, true); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.players == null || this.players[index] == null; + if (!flag) + { + IXUISprite ixuisprite = t.Find("head").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("UID").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("PPT").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite2 = t.Find("agree").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel4 = t.Find("agree/T").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("guild").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = t.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + int profession = (int)this.players[index].profession; + ixuisprite3.spriteName = XSingleton.singleton.GetProfIcon(profession); + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon2(profession); + string text = (this.state == ChatGroupList.State.Add) ? XStringDefineProxy.GetString("CHAT_GROUP_PUSH") : XStringDefineProxy.GetString("CHAT_GROUP_TICKOUT"); + ixuilabel4.SetText(text); + ixuisprite2.ID = this.players[index].roleid; + string text2 = this.players[index].guild; + bool flag2 = string.IsNullOrEmpty(text2); + if (flag2) + { + text2 = XStringDefineProxy.GetString("NONE"); + } + ixuilabel5.SetText(text2); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OpItemClick)); + ixuilabel.SetText(this.players[index].level.ToString()); + ixuilabel3.SetText(this.players[index].ppt.ToString()); + ixuilabelSymbol.InputText = this.players[index].rolename; + ixuilabel2.SetText(this.players[index].uid.ToString()); + } + } + + private void OpItemClick(IXUISprite spr) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + CGroupPlayerInfo cgroupPlayerInfo = null; + bool flag = false; + for (int i = 0; i < this.players.Count; i++) + { + bool flag2 = this.players[i].roleid == spr.ID; + if (flag2) + { + cgroupPlayerInfo = this.players[i]; + } + } + List list = new List(); + List list2 = new List(); + bool flag3 = cgroupPlayerInfo.degree == -1; + if (flag3) + { + CBrifGroupInfo currGroup = specificDocument.currGroup; + bool flag4 = currGroup != null && currGroup.leaderid == cgroupPlayerInfo.roleid; + if (flag4) + { + flag = true; + } + else + { + list2.Add(cgroupPlayerInfo.roleid); + } + } + else + { + list.Add(cgroupPlayerInfo.roleid); + } + bool flag5 = flag; + if (flag5) + { + DlgBase.singleton.OnGroupQuitClick(null); + } + else + { + bool flag6 = DlgBase.singleton.ChatGroupId > 0UL; + if (flag6) + { + specificDocument.ReqChangePlayer(DlgBase.singleton.ChatGroupId, list, list2); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatGroupList.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupList.cs.meta new file mode 100644 index 00000000..63609a4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatGroupList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44391885d0da67a48b1189456206827e +timeCreated: 1611403644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatHistoryItem.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatHistoryItem.cs new file mode 100644 index 00000000..5239de76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatHistoryItem.cs @@ -0,0 +1,54 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + public class ChatHistoryItem : MonoBehaviour + { + private const int LENGTH = 60; + + private IXUILabelSymbol m_symbol; + + private string mStr; + + private void Awake() + { + this.m_symbol = (base.transform.Find("Content").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + } + + public void Refresh(string chat) + { + this.mStr = chat; + string text = DlgBase.singleton.OnParseEmotion(chat); + int num = text.IndexOf("im=Chat"); + bool flag = num > -1 && num < 12; + int num2 = 21; + int num3 = flag ? 30 : 12; + bool flag2 = flag; + if (flag2) + { + bool flag3 = text.Length > num3 && text.Length > num + num2; + if (flag3) + { + text = text.Substring(0, num + num2) + "..."; + } + } + else + { + bool flag4 = text.Length >= num3 - 3; + if (flag4) + { + text = text.Substring(0, num3 - 3) + "..."; + } + } + this.m_symbol.InputText = text; + } + + public void OnClick() + { + DlgBase.singleton.Close(this.mStr); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatHistoryItem.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatHistoryItem.cs.meta new file mode 100644 index 00000000..10e281ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatHistoryItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5221d119cb3eec140ab0cee648a9194a +timeCreated: 1611403708 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs new file mode 100644 index 00000000..fb3d20ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs @@ -0,0 +1,202 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public class ChatInfo : LoopItemData + { + public bool isAudioChat + { + get + { + return this.mAudioId > 0UL; + } + } + + public string AudioUrl + { + get + { + bool flag = this.url == ""; + if (flag) + { + string[] array = this.mContent.Split(new char[] + { + '#' + }); + bool flag2 = array.Length >= 5; + if (flag2) + { + this.url = array[2]; + this.time = array[3]; + this.tag = int.Parse(array[4]); + } + else + { + this.url = ""; + this.time = "0"; + this.tag = 0; + } + } + return this.url; + } + } + + public int AudioIntTime + { + get + { + return (int)this.mAudioTime; + } + } + + private int tag + { + get + { + return this._tag; + } + set + { + bool flag = value > 0; + if (flag) + { + this._tag = value; + } + } + } + + public bool isAutoPlaying = false; + + public float autoStartPlayTime = 0f; + + public int id; + + public ChatChannelType mChannelId; + + public ulong mSenderId; + + public int mSenderTeamId = 0; + + public bool isFriend = false; + + public bool isSelfSender; + + public string mSenderName; + + public string mContent; + + public ulong mReceiverId = 0UL; + + public string mReceiverName = "test"; + + public bool mRegression = false; + + public uint CampDuelID = 0u; + + public ChatType mChatType; + + public GameObject mUIObject; + + public uint mSenderVip; + + public uint mSenderPaymemberid; + + public uint mReceiverVip = 1u; + + public uint mServerProfession; + + public uint mRecieverProfession = 1u; + + public uint mSenderPowerPoint; + + public uint mReciverPowerPoint = 100u; + + public bool isAudioPlayed = false; + + public bool isUIShowed = false; + + public DateTime mTime = DateTime.Now; + + public ulong mAudioId = 0UL; + + public uint mAudioTime = 0u; + + public uint mHeroID = 0u; + + public GroupChatTeamInfo group; + + public uint mCoverDesignationID; + + public string mSpecialDesignation; + + public uint militaryRank; + + public PayConsume payConsume; + + public ChatVoiceInfo voice = null; + + private string url = ""; + + private string time = ""; + + private int _tag = 0; + + public byte[] AudioData; + + public bool isPlayOver() + { + bool flag = this.autoStartPlayTime == 0f; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = Time.realtimeSinceStartup - this.autoStartPlayTime > (float)this.AudioIntTime; + result = flag2; + } + return result; + } + + public ChatVoiceInfo GetVoice(ulong audid, uint aulen) + { + bool flag = audid <= 0UL; + ChatVoiceInfo result; + if (flag) + { + result = null; + } + else + { + result = new ChatVoiceInfo + { + voiceTime = (int)aulen, + txt = this.mContent + }; + } + return result; + } + + public string GetChannelName() + { + return ""; + } + + public void SetAudioText(string text) + { + this.mContent = text; + bool flag = DlgBase.singleton.activeChannelType != this.mChannelId; + if (!flag) + { + IXUILabelSymbol ixuilabelSymbol = this.mUIObject.transform.Find("voice/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = text; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs.meta new file mode 100644 index 00000000..e0211e0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4982b846729a08542809b74f283b1c1a +timeCreated: 1611403661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatInputStringBack.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatInputStringBack.cs new file mode 100644 index 00000000..dcf99ef1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatInputStringBack.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void ChatInputStringBack(string str); +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatInputStringBack.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatInputStringBack.cs.meta new file mode 100644 index 00000000..db220103 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatInputStringBack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0bba2eaf717f0248b57b0a9da40999a +timeCreated: 1611404487 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatInputType.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatInputType.cs new file mode 100644 index 00000000..cdc076ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatInputType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum ChatInputType + { + TEXT, + EMOTION + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatInputType.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatInputType.cs.meta new file mode 100644 index 00000000..742bea14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatInputType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cff442447e76af3409e3b1f01ba9257a +timeCreated: 1611404583 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs new file mode 100644 index 00000000..d8194d1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs @@ -0,0 +1,313 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public class ChatItem : MonoBehaviour + { + private ChatInfo mChatInfo; + + private int boardHeight = 144; + + private IXUISprite m_sprHead; + + private IXUISprite m_sprHost; + + private IXUISprite m_sprFrame; + + private IXUILabel m_lblTime; + + private IXUILabelSymbol m_symContent; + + private IXUILabel m_lblContent; + + private IXUISprite m_sprBoard; + + private GameObject m_objName; + + private IXUILabelSymbol m_lblName; + + private GameObject m_objVoice; + + private IXUISprite m_sprRoot; + + private Transform m_offset; + + private IXUISprite m_regression; + + private IXUISprite m_campDuel; + + private void Awake() + { + this.m_sprHead = (base.transform.Find("head").GetComponent("XUISprite") as IXUISprite); + this.m_sprHost = (base.transform.Find("head/hoster").GetComponent("XUISprite") as IXUISprite); + this.m_regression = (base.transform.Find("head/Regression").GetComponent("XUISprite") as IXUISprite); + this.m_sprFrame = (base.transform.Find("head/AvatarFrame").GetComponent("XUISprite") as IXUISprite); + this.m_campDuel = (base.transform.Find("head/CampDuel").GetComponent("XUISprite") as IXUISprite); + this.m_lblTime = (base.transform.Find("board/offset/time").GetComponent("XUILabel") as IXUILabel); + this.m_symContent = (base.transform.Find("board/offset/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_lblContent = (this.m_symContent.gameObject.GetComponent("XUILabel") as IXUILabel); + this.m_sprBoard = (base.transform.Find("board").GetComponent("XUISprite") as IXUISprite); + this.m_objName = base.transform.Find("board/offset/name").gameObject; + this.m_lblName = (base.transform.Find("board/offset/selfname").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_objVoice = base.transform.Find("board/offset/voice").gameObject; + this.m_sprRoot = (base.GetComponent("XUISprite") as IXUISprite); + this.m_offset = base.transform.Find("board/offset"); + this.m_sprHead.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickChatHead)); + } + + public void Refresh(ChatInfo info) + { + bool flag = this.mChatInfo == info || this.m_lblTime == null; + if (!flag) + { + this.mChatInfo = info; + this.mChatInfo.id = (info.id = DlgBase.singleton.ChatIdIndex); + this.mChatInfo.isUIShowed = (info.isUIShowed = true); + DateTime mTime = info.mTime; + TimeSpan timeSpan = DateTime.Now - mTime; + string text = string.Format("{0:D2}:{1:D2}:{2:D2}", mTime.Hour, mTime.Minute, mTime.Second); + bool flag2 = timeSpan.Days > 0; + if (flag2) + { + text = XStringDefineProxy.GetString("CHAT_DAY", new object[] + { + timeSpan.Days + }); + } + bool flag3 = this.m_lblTime != null; + if (flag3) + { + this.m_lblTime.SetText(text); + } + IXUILabelSymbol ixuilabelSymbol = this.m_objName.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string text2 = XSingleton.singleton.GetChatDesignation(info.mCoverDesignationID, info.mSpecialDesignation, info.mSenderName); + text2 = XSingleton.singleton.StringCombine(text2, XWelfareDocument.GetMemberPrivilegeIconString(info.mSenderPaymemberid)); + ixuilabelSymbol.InputText = XMilitaryRankDocument.GetMilitaryRankWithFormat(info.militaryRank, text2, false); + this.m_regression.SetVisible(info.mRegression); + this.m_campDuel.SetVisible(info.CampDuelID > 0u); + bool flag4 = info.CampDuelID == 1u; + if (flag4) + { + this.m_campDuel.SetSprite(XSingleton.singleton.GetValue("CampDuelChatLeftIcon")); + } + bool flag5 = info.CampDuelID == 2u; + if (flag5) + { + this.m_campDuel.SetSprite(XSingleton.singleton.GetValue("CampDuelChatRightIcon")); + } + bool isSelfSender = info.isSelfSender; + if (isSelfSender) + { + this.m_sprHead.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)XSingleton.singleton.Player.PlayerAttributes.Profession)); + bool flag6 = info.payConsume != null && info.payConsume.setid != null; + if (flag6) + { + XSingleton.singleton.ParseHeadIcon(info.payConsume.setid, this.m_sprFrame); + } + else + { + this.m_sprFrame.SetVisible(false); + } + } + else + { + bool flag7 = info.mSenderId == 0UL && info.mChannelId == ChatChannelType.Guild; + if (flag7) + { + this.m_sprHead.SetSprite("zy_0_0"); + this.m_sprFrame.SetVisible(false); + } + else + { + bool flag8 = info.mSenderId == 0UL && info.mChannelId == ChatChannelType.Team; + if (flag8) + { + this.m_sprHead.SetSprite("zy_0_1"); + this.m_sprFrame.SetVisible(false); + } + else + { + this.m_sprHead.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)info.mServerProfession)); + bool flag9 = info.payConsume != null && info.payConsume.setid != null; + if (flag9) + { + XSingleton.singleton.ParseHeadIcon(info.payConsume.setid, this.m_sprFrame); + } + else + { + this.m_sprFrame.SetVisible(false); + } + } + } + } + bool flag10 = !info.isSelfSender && (info.mChannelId == ChatChannelType.Guild || info.mChannelId == ChatChannelType.World || info.mChannelId == ChatChannelType.Team); + bool flag11 = flag10; + if (flag11) + { + IXUILabelSymbol ixuilabelSymbol2 = this.m_objName.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string text3 = XSingleton.singleton.GetChatDesignation(info.mCoverDesignationID, info.mSpecialDesignation, info.mSenderName); + text3 = XSingleton.singleton.StringCombine(text3, XWelfareDocument.GetMemberPrivilegeIconString(info.mSenderPaymemberid)); + ixuilabelSymbol2.InputText = XMilitaryRankDocument.GetMilitaryRankWithFormat(info.militaryRank, text3, false); + } + else + { + bool flag12 = this.m_lblName != null; + if (flag12) + { + bool flag13 = info.mSenderId == 0UL && info.mChannelId == ChatChannelType.Guild; + if (flag13) + { + this.m_lblName.InputText = XStringDefineProxy.GetString("CHAT_GUILD_NEW"); + } + else + { + bool flag14 = info.mChatType == ChatType.OtherText || info.mChatType == ChatType.OtherVoice; + if (flag14) + { + this.m_lblName.InputText = ((info.mChannelId == ChatChannelType.Friends) ? XStringDefineProxy.GetString("CHAT_FRIENDS2", new object[] + { + info.mReceiverName + }) : info.mSenderName); + } + else + { + string text4 = XSingleton.singleton.StringCombine(XSingleton.singleton.XPlayerData.Name, XWelfareDocument.GetMemberPrivilegeIconString(info.mSenderPaymemberid)); + text4 = XMilitaryRankDocument.GetMilitaryRankWithFormat(info.militaryRank, text4, false); + this.m_lblName.InputText = ((info.mChannelId == ChatChannelType.Friends) ? XStringDefineProxy.GetString("CHAT_FRIENDS1", new object[] + { + info.mReceiverName + }) : text4); + } + } + } + } + this.m_objVoice.SetActive(info.isAudioChat); + bool isAudioChat = info.isAudioChat; + if (isAudioChat) + { + this.InitAudioUI(); + } + else + { + this.InitTextUI(); + } + float num = (float)(info.isAudioChat ? -16 : 30); + float num2 = (float)(info.isSelfSender ? 14 : 24); + this.m_lblContent.gameObject.transform.localPosition = new Vector3(num2, num, 0f); + this.SetPivot(); + XChatView singleton = DlgBase.singleton; + int chatIdIndex = singleton.ChatIdIndex; + singleton.ChatIdIndex = chatIdIndex + 1; + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + this.m_sprHost.SetVisible(specificDocument.hostIDs.Contains(this.mChatInfo.mSenderId) && this.mChatInfo.mChannelId == ChatChannelType.Broadcast); + } + } + + private void SetPivot() + { + this.m_sprBoard.SetFlipHorizontal(this.mChatInfo.isSelfSender); + float num = (float)(this.mChatInfo.isSelfSender ? -215 : -145); + this.m_sprBoard.gameObject.transform.localPosition = new Vector3(num, -30f, 0f); + this.m_objName.SetActive(!this.mChatInfo.isSelfSender); + this.m_lblName.SetVisible(this.mChatInfo.isSelfSender); + num = (float)(this.mChatInfo.isSelfSender ? 175 : -180); + float num2 = this.m_offset.transform.localPosition.y + this.m_sprBoard.gameObject.transform.localPosition.y; + float num3 = this.m_lblTime.gameObject.transform.localPosition.y + num2 + 4f; + this.m_sprHead.gameObject.transform.localPosition = new Vector3(num, num3, 0f); + } + + private void InitAudioUI() + { + this.mChatInfo.mUIObject = this.m_objVoice; + IXUISprite ixuisprite = this.m_objVoice.transform.Find("board").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = this.m_objVoice.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = this.m_objVoice.transform.Find("time").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = this.m_objVoice.transform.Find("sendFlower").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)this.mChatInfo.id); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(DlgBase.singleton.UIOP.OnSendFlowerClicked)); + ixuibutton.SetVisible(!this.mChatInfo.isSelfSender && !DlgBase.singleton.IsLoaded()); + ixuilabel.SetText((this.mChatInfo.mAudioTime / 1000u + 1u).ToString() + "\""); + string mContent = this.mChatInfo.mContent; + this.m_symContent.InputText = ChatItem.ParsePayComsume(this.mChatInfo, mContent, false); + ixuisprite.ID = (ulong)((long)this.mChatInfo.id); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(DlgBase.singleton.UIOP.OnStartPlayAudio)); + ixuisprite2.SetVisible(!this.mChatInfo.isUIShowed); + this.m_sprBoard.spriteHeight = 56 + this.m_lblContent.spriteHeight; + this.m_sprRoot.spriteHeight = this.m_sprBoard.spriteHeight + 40; + this.m_offset.transform.localPosition = new Vector3(0f, (float)((this.m_sprBoard.spriteHeight - this.boardHeight) / 2 + 30), 0f); + IXUISpriteAnimation ixuispriteAnimation = this.m_objVoice.transform.Find("sign").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.SetFrameRate(0); + } + + private void InitTextUI() + { + this.mChatInfo.mContent = DlgBase.singleton.OnParseEmotion(this.mChatInfo.mContent); + XLabelSymbolHelper.RegisterHyperLinkClicks(this.m_symContent); + string mContent = this.mChatInfo.mContent; + this.m_symContent.InputText = ChatItem.ParsePayComsume(this.mChatInfo, mContent, false); + this.m_sprBoard.spriteHeight = ((this.mChatInfo.mChannelId != ChatChannelType.System) ? (20 + this.m_lblContent.spriteHeight) : (10 + this.m_lblContent.spriteHeight)); + this.m_sprRoot.spriteHeight = ((this.mChatInfo.mChannelId != ChatChannelType.System) ? (60 + this.m_lblContent.spriteHeight) : (10 + this.m_lblContent.spriteHeight)); + this.m_offset.transform.localPosition = new Vector3(0f, (float)((this.m_sprBoard.spriteHeight - this.boardHeight) / 2 + 30), 0f); + } + + private void OnClickChatHead(IXUISprite sp) + { + bool flag = !this.mChatInfo.isSelfSender && this.mChatInfo.mSenderId != 0UL && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + bool flag2 = this.mChatInfo.mChannelId == ChatChannelType.Broadcast; + if (!flag2) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(this.mChatInfo.mSenderId, false); + } + } + } + + public static string ParsePayComsume(ChatInfo info, string txt, bool ismini) + { + bool flag = info != null && info.payConsume != null; + if (flag) + { + string text = string.Empty; + string text2 = string.Empty; + string text3 = XPrerogativeDocument.ConvertTypeToPreContent(PrerogativeType.PreStart, info.payConsume.setid); + string[] array = text3.Split(new char[] + { + '=' + }); + bool flag2 = !string.IsNullOrEmpty(text3); + if (flag2) + { + text = array[0]; + bool flag3 = ismini && array.Length > 1; + if (flag3) + { + text = array[1]; + } + } + text2 = XPrerogativeDocument.ConvertTypeToPreContent(PrerogativeType.PreChatAdorn, info.payConsume.setid); + bool flag4 = !string.IsNullOrEmpty(text2); + if (flag4) + { + text2 = XLabelSymbolHelper.FormatImage("Chat/Chat", text2); + } + bool flag5 = !string.IsNullOrEmpty(text2); + if (flag5) + { + txt = text2 + txt + text2; + } + bool flag6 = !string.IsNullOrEmpty(text); + if (flag6) + { + txt = string.Format("[c][{0}]{1}[/c]", text, DlgBase.singleton.OnParseEmotion(txt)); + } + } + return txt; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs.meta new file mode 100644 index 00000000..45d7b482 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9740d4624daa644e81b9c07c976fcec +timeCreated: 1611404410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatItemInfo.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatItemInfo.cs new file mode 100644 index 00000000..9aef7cc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatItemInfo.cs @@ -0,0 +1,25 @@ +using System; + +namespace XMainClient +{ + public class ChatItemInfo + { + public string itemInfoStr = ""; + + public byte[] speakData; + + public string speakUrl; + + public bool isVoiceLocalPath = false; + + public bool isLeft = false; + + public int cachedPlayerID; + + public string cachedPlayerName; + + public int cachedTeamId; + + public bool cachedIsFriend = false; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatItemInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatItemInfo.cs.meta new file mode 100644 index 00000000..ca46ba2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatItemInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b274201de87961469eb704db86ee902 +timeCreated: 1611403685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatMemberBehaviour.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatMemberBehaviour.cs new file mode 100644 index 00000000..f9f25246 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatMemberBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class ChatMemberBehaviour : DlgBehaviourBase + { + public IXUISprite m_sprClose; + + public IXUIWrapContent m_wrap; + + public IXUIScrollView m_scroll; + + private void Awake() + { + this.m_scroll = (base.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_wrap = (base.transform.Find("Bg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_sprClose = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatMemberBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatMemberBehaviour.cs.meta new file mode 100644 index 00000000..49ea14f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatMemberBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d56276e2fbc28604baec3e16da40685d +timeCreated: 1611404627 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatMemberList.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatMemberList.cs new file mode 100644 index 00000000..0cc9c80a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatMemberList.cs @@ -0,0 +1,187 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ChatMemberList : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ChatMemberList"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private List players; + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_wrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + base.uiBehaviour.m_sprClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClick)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_scroll.ResetPosition(); + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReqGetGroupInfo(DlgBase.singleton.ChatGroupId); + } + + public void Refresh() + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + bool flag = specificDocument.players != null; + if (flag) + { + CGroupPlayerInfo[] array = new CGroupPlayerInfo[specificDocument.players.Count]; + specificDocument.players.CopyTo(array); + this.SelectByState(array); + base.uiBehaviour.m_wrap.SetContentCount(this.players.Count, false); + } + } + + private void SelectByState(CGroupPlayerInfo[] pp) + { + bool flag = this.players == null; + if (flag) + { + this.players = new List(); + } + else + { + this.players.Clear(); + } + int i = 0; + int num = pp.Length; + while (i < num) + { + bool flag2 = pp[i].degree < 0; + if (flag2) + { + bool flag3 = pp[i].roleid != XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + this.players.Add(pp[i]); + } + } + i++; + } + } + + private void OnCloseClick(IXUISprite spr) + { + this.SetVisible(false, true); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.players == null || this.players[index] == null; + if (!flag) + { + IXUISprite ixuisprite = t.Find("head").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("UID").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("PPT").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite2 = t.Find("Btn_chat").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = t.Find("add").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel4 = t.Find("guild").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite4 = t.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + int profession = (int)this.players[index].profession; + ixuisprite4.spriteName = XSingleton.singleton.GetProfIcon(profession); + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon2(profession); + ixuisprite2.ID = this.players[index].roleid; + ixuisprite3.ID = this.players[index].roleid; + string text = this.players[index].guild; + bool flag2 = string.IsNullOrEmpty(text); + if (flag2) + { + text = XStringDefineProxy.GetString("NONE"); + } + ixuilabel4.SetText(text); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChatClick)); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnFriendClick)); + bool flag3 = DlgBase.singleton.IsMyFriend(this.players[index].roleid); + ixuisprite3.SetVisible(!flag3); + ixuilabel.SetText(this.players[index].level.ToString()); + ixuilabel3.SetText(this.players[index].ppt.ToString()); + ixuilabelSymbol.InputText = this.players[index].rolename; + ixuilabel2.SetText(this.players[index].uid.ToString()); + } + } + + private void OnChatClick(IXUISprite spr) + { + this.SetVisible(false, true); + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + if (flag) + { + int sysid = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Friends); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(sysid); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + sysOpenLevel + }) + XSingleton.singleton.GetSysName(sysid), "fece00"); + } + else + { + CGroupPlayerInfo player = this.GetPlayer(spr.ID); + DlgBase.singleton.SetPlayerInfo(spr.ID, player.rolename, player.setid, player.ppt, player.profession); + DlgBase.singleton.PrivateChat(null); + } + } + + private void OnFriendClick(IXUISprite spr) + { + ulong id = spr.ID; + DlgBase.singleton.AddFriendById(id); + } + + private CGroupPlayerInfo GetPlayer(ulong roleid) + { + bool flag = this.players != null; + if (flag) + { + foreach (CGroupPlayerInfo cgroupPlayerInfo in this.players) + { + bool flag2 = cgroupPlayerInfo.roleid == roleid; + if (flag2) + { + //List.Enumerator enumerator; + //return enumerator.Current; + return cgroupPlayerInfo; + } + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatMemberList.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatMemberList.cs.meta new file mode 100644 index 00000000..ceaf1c5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatMemberList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ba1e7043316171408606cdd0631452f +timeCreated: 1611403599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatSelectStringBack.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatSelectStringBack.cs new file mode 100644 index 00000000..9d0b7004 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatSelectStringBack.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void ChatSelectStringBack(string str); +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatSelectStringBack.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatSelectStringBack.cs.meta new file mode 100644 index 00000000..64a6fbc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatSelectStringBack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49dff112ca31b5b4e9d36044262af0ce +timeCreated: 1611403662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatSystemItem.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatSystemItem.cs new file mode 100644 index 00000000..ae0a72d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatSystemItem.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + public class ChatSystemItem : MonoBehaviour + { + private IXUILabelSymbol m_symContent; + + private ChatInfo mChatInfo; + + private IXUISprite m_sprRoot; + + private IXUILabel m_lblContent; + + private Transform m_transTitle; + + private void Awake() + { + this.m_sprRoot = (base.GetComponent("XUISprite") as IXUISprite); + this.m_transTitle = base.transform.Find("title"); + this.m_symContent = (base.transform.Find("title/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_lblContent = (this.m_symContent.gameObject.GetComponent("XUILabel") as IXUILabel); + } + + public void Refresh(ChatInfo info) + { + this.mChatInfo = info; + this.m_symContent.InputText = DlgBase.singleton.OnParseEmotion(info.mContent); + XLabelSymbolHelper.RegisterHyperLinkClicks(this.m_symContent); + this.m_sprRoot.spriteHeight = 56 + this.m_lblContent.spriteHeight; + int spriteHeight = this.m_sprRoot.spriteHeight; + float num = (float)spriteHeight / 2f - 23f; + this.m_transTitle.localPosition = new Vector3(-180f, num, 0f); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatSystemItem.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatSystemItem.cs.meta new file mode 100644 index 00000000..5db9f6ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatSystemItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 837dcc1c0b0d6f445a37c4b1b2ad0aa3 +timeCreated: 1611404044 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatTextRecognizeInfo.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatTextRecognizeInfo.cs new file mode 100644 index 00000000..444281b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatTextRecognizeInfo.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + public class ChatTextRecognizeInfo + { + public ChatInfo chatInfo; + + public ChatItemInfo chatItemInfo; + + public ChatTextRecognizeInfo(ChatInfo chatInfo, ChatItemInfo chatItemInfo) + { + this.chatInfo = chatInfo; + this.chatItemInfo = chatItemInfo; + } + + public void Clear() + { + this.chatInfo = null; + this.chatItemInfo = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatTextRecognizeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatTextRecognizeInfo.cs.meta new file mode 100644 index 00000000..87121956 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatTextRecognizeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47553c1445f03ea4bb8e8c8b3f50c8e4 +timeCreated: 1611403653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatType.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatType.cs new file mode 100644 index 00000000..bab7f6be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum ChatType + { + SelfText = 1, + SelfVoice, + OtherText, + OtherVoice + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatType.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatType.cs.meta new file mode 100644 index 00000000..35ed98e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78eb8585616754f4daab1b3e84942f3c +timeCreated: 1611403983 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatVoiceInfo.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatVoiceInfo.cs new file mode 100644 index 00000000..d38167c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatVoiceInfo.cs @@ -0,0 +1,41 @@ +using System; + +namespace XMainClient +{ + public class ChatVoiceInfo + { + public ulong sendIndexId; + + public int sendUserId; + + public string sendName; + + public string sendProf; + + public string filePath; + + public string url; + + public int voiceTime; + + public ChatChannelType channel; + + public string wildCard; + + public bool isLocalPath; + + public int type; + + public string txt; + + public bool isPlayed; + + public bool isTextRecognize; + + public ulong acceptIndexId; + + public int acceptUserId; + + public string acceptName; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatVoiceInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatVoiceInfo.cs.meta new file mode 100644 index 00000000..f4fe73d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatVoiceInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e04ba00f90c91424aab95d4ca49d6fd8 +timeCreated: 1611404697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatVoicePrivateInfo.cs b/Client/Assets/Scripts/XMainClient/Chat/ChatVoicePrivateInfo.cs new file mode 100644 index 00000000..0bc8a994 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatVoicePrivateInfo.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public class ChatVoicePrivateInfo + { + public ChatVoiceInfo voice; + + public string name; + + public ulong sendId; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Chat/ChatVoicePrivateInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Chat/ChatVoicePrivateInfo.cs.meta new file mode 100644 index 00000000..0fa5f134 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Chat/ChatVoicePrivateInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 827aa142882cac447bf3c476f58eadfb +timeCreated: 1611404040 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs b/Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs new file mode 100644 index 00000000..635f6173 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs @@ -0,0 +1,32 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class ClientBoxInfo + { + public int slot; + + public uint itemID; + + public uint itemCount; + + public RiskBoxState state; + + public float leftTime; + + public ClientBoxInfo(RiskBoxInfo r) + { + this.Apply(r); + } + + public void Apply(RiskBoxInfo r) + { + this.slot = r.slot; + this.itemID = r.item.itemID; + this.itemCount = r.item.itemCount; + this.state = r.state; + this.leftTime = (float)r.leftTime; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs.meta b/Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs.meta new file mode 100644 index 00000000..6bf1657a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ClientBoxInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f7cca9dbbe91a4408180e5f0dbae3ed +timeCreated: 1611403402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ClientBuffInfo.cs b/Client/Assets/Scripts/XMainClient/ClientBuffInfo.cs new file mode 100644 index 00000000..c86cd7cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ClientBuffInfo.cs @@ -0,0 +1,12 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ClientBuffInfo + { + public int BuffID; + + public XFx oFx = null; + } +} diff --git a/Client/Assets/Scripts/XMainClient/ClientBuffInfo.cs.meta b/Client/Assets/Scripts/XMainClient/ClientBuffInfo.cs.meta new file mode 100644 index 00000000..b525c744 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ClientBuffInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ac4bb1b439e7ae41a363d304632022c +timeCreated: 1611404093 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ClientFashionData.cs b/Client/Assets/Scripts/XMainClient/ClientFashionData.cs new file mode 100644 index 00000000..b884cfa5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ClientFashionData.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class ClientFashionData + { + public uint itemID; + + public uint level; + + public ulong uid; + + public double timeleft; + } +} diff --git a/Client/Assets/Scripts/XMainClient/ClientFashionData.cs.meta b/Client/Assets/Scripts/XMainClient/ClientFashionData.cs.meta new file mode 100644 index 00000000..c2372fe4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ClientFashionData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0864449a6dc71b4ebfabb87a0314205 +timeCreated: 1611404351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CollectNpcInfo.cs b/Client/Assets/Scripts/XMainClient/CollectNpcInfo.cs new file mode 100644 index 00000000..0accf1b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CollectNpcInfo.cs @@ -0,0 +1,24 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class CollectNpcInfo + { + public uint id = 0u; + + public bool use = false; + + public string name; + + public Vector3 pos = Vector3.zero; + + public CollectNpcInfo(uint _npcID, Vector3 _pos, string _name) + { + this.id = _npcID; + this.pos = _pos; + this.use = false; + this.name = _name; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CollectNpcInfo.cs.meta b/Client/Assets/Scripts/XMainClient/CollectNpcInfo.cs.meta new file mode 100644 index 00000000..799ef7df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CollectNpcInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 888e83435b8caf44f9444b87ef409e9c +timeCreated: 1611404084 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CollectNpcRefreshMode.cs b/Client/Assets/Scripts/XMainClient/CollectNpcRefreshMode.cs new file mode 100644 index 00000000..e5722311 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CollectNpcRefreshMode.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum CollectNpcRefreshMode + { + Random, + Distance + } +} diff --git a/Client/Assets/Scripts/XMainClient/CollectNpcRefreshMode.cs.meta b/Client/Assets/Scripts/XMainClient/CollectNpcRefreshMode.cs.meta new file mode 100644 index 00000000..ecdc53a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CollectNpcRefreshMode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c72f995ebe9fcf24795c01c8eb394d6e +timeCreated: 1611404529 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CombatEffectHelper.cs b/Client/Assets/Scripts/XMainClient/CombatEffectHelper.cs new file mode 100644 index 00000000..2eb3b7c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CombatEffectHelper.cs @@ -0,0 +1,1055 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CombatEffectHelper : XDataBase + { + public BuffTable.RowData BuffInfo + { + get + { + return this.m_pBuffInfo; + } + } + + public EffectDataParams EffectData + { + get + { + return this.m_pEffectData; + } + } + + public CombatEffectType CacheQueryType + { + get + { + return this.m_CacheType; + } + } + + public EffectDataParams.TypeDataCollection CacheTypeDataCollection + { + get + { + return this.m_CacheCollection; + } + } + + private BuffTable.RowData m_pBuffInfo; + + private EffectDataParams m_pEffectData; + + private uint m_SkillHash; + + private uint m_ActualSkillHash; + + private CombatEffectType m_CacheType; + + private EffectDataParams.TypeDataCollection m_CacheCollection; + + private Dictionary m_Template2BuffTable = new Dictionary(); + + private static float[] startDataBufferFloat = new float[10]; + + private static float[] curDataBufferFloat = new float[10]; + + private static uint[] startDataBufferUint = new uint[10]; + + private static uint[] curDataBufferUint = new uint[10]; + + public static readonly char[] ConstantSeparator = new char[] + { + '^' + }; + + private struct GetSeqDataParam + { + public CombatEffectHelper helper; + + public int dim; + + public CombatEffectType type; + + public int replaceIndex; + + public double ratio; + + public GetSeqDataParam(int dimension) + { + this.helper = null; + this.dim = dimension; + this.type = CombatEffectType.CET_INVALID; + this.replaceIndex = 0; + this.ratio = 0.0; + } + } + + private struct GetSeqListDataParam + { + public CombatEffectHelper helper; + + public int dim; + + public CombatEffectType type; + + public int replaceIndex; + + public double ratio; + + public GetSeqListDataParam(int dimension) + { + this.helper = null; + this.dim = dimension; + this.type = CombatEffectType.CET_INVALID; + this.replaceIndex = 0; + this.ratio = 0.0; + } + } + + private struct GetSeqListDataFromVecStringParam + { + public CombatEffectHelper helper; + + public int dim; + + public CombatEffectType type; + + public int replaceIndex; + + public int hashIndex; + + public GetSeqListDataFromVecStringParam(int dimension) + { + this.helper = null; + this.dim = dimension; + this.type = CombatEffectType.CET_INVALID; + this.replaceIndex = 0; + this.hashIndex = 0; + } + } + + public void SetCacheQuery(CombatEffectType type, EffectDataParams.TypeDataCollection collection) + { + this.m_CacheType = type; + this.m_CacheCollection = collection; + } + + public void ClearCache() + { + this.m_CacheCollection = null; + this.m_CacheType = CombatEffectType.CET_INVALID; + } + + public BuffTable.RowData GetTemplateBuffTable(uint templateBuffID) + { + BuffTable.RowData buffData; + bool flag = this.m_Template2BuffTable.TryGetValue(templateBuffID, out buffData); + BuffTable.RowData result; + if (flag) + { + result = buffData; + } + else + { + buffData = XSingleton.singleton.GetBuffData((int)templateBuffID, 1); + this.m_Template2BuffTable[templateBuffID] = buffData; + result = buffData; + } + return result; + } + + public override void Recycle() + { + base.Recycle(); + this.m_Template2BuffTable.Clear(); + this.m_pBuffInfo = null; + this.m_pEffectData = null; + this.m_SkillHash = 0u; + this.m_ActualSkillHash = 0u; + this.m_CacheType = CombatEffectType.CET_INVALID; + this.m_CacheCollection = null; + } + + private bool _IsValidEntity(XEntity entity) + { + bool flag = entity == null || entity.Deprecated || entity.Destroying || entity.Attributes == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !entity.IsPlayer; + if (flag2) + { + bool flag3 = entity.Attributes.FinalHostID == 0UL; + if (flag3) + { + return false; + } + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(entity.Attributes.FinalHostID); + bool flag4 = entityConsiderDeath == null || !entityConsiderDeath.IsPlayer; + if (flag4) + { + return false; + } + } + result = true; + } + return result; + } + + public void Set(BuffTable.RowData pBuffInfo, ulong casterID, XEntity defaultEntity) + { + bool flag = casterID == 0UL || defaultEntity == null || casterID == defaultEntity.ID; + if (flag) + { + this.Set(pBuffInfo, defaultEntity); + } + else + { + this.Set(pBuffInfo, XSingleton.singleton.GetEntityConsiderDeath(casterID)); + } + } + + public void Set(BuffTable.RowData pBuffInfo, XEntity entity) + { + this.m_SkillHash = 0u; + this.m_ActualSkillHash = 0u; + this.m_pBuffInfo = pBuffInfo; + this.m_CacheType = CombatEffectType.CET_INVALID; + this.m_CacheCollection = null; + this.m_Template2BuffTable.Clear(); + bool flag = !this._IsValidEntity(entity) || !XSingleton.singleton.IsArtifactEnabled(); + if (!flag) + { + this.m_pEffectData = XSingleton.singleton.GetEffectDataByBuff((uint)pBuffInfo.BuffID); + } + } + + public void Set(string skillName, XEntity entity) + { + this.Set(XSingleton.singleton.XHash(skillName), entity); + } + + public void Set(uint skillHash, XEntity entity) + { + this.m_SkillHash = skillHash; + this.m_ActualSkillHash = skillHash; + this.m_pBuffInfo = null; + this.m_CacheType = CombatEffectType.CET_INVALID; + this.m_CacheCollection = null; + this.m_Template2BuffTable.Clear(); + bool flag = !this._IsValidEntity(entity) || !XSingleton.singleton.IsArtifactEnabled(); + if (!flag) + { + this.m_pEffectData = XSingleton.singleton.GetEffectDataBySkill(skillHash); + bool flag2 = this.m_pEffectData == null; + if (flag2) + { + uint preSkill = XSingleton.singleton.GetPreSkill(skillHash, entity.SkillCasterTypeID); + bool flag3 = preSkill > 0u; + if (flag3) + { + this.m_pEffectData = XSingleton.singleton.GetEffectDataBySkill(preSkill); + this.m_ActualSkillHash = preSkill; + } + } + } + } + + private static EffectDataParams.TypeDataCollection GetTypeDataList(CombatEffectType type, CombatEffectHelper helper) + { + bool flag = helper.CacheQueryType == type; + EffectDataParams.TypeDataCollection result; + if (flag) + { + result = helper.CacheTypeDataCollection; + } + else + { + bool flag2 = helper.EffectData == null; + if (flag2) + { + result = null; + } + else + { + EffectDataParams.TypeDataCollection collection = helper.EffectData.GetCollection(type); + bool flag3 = collection == null; + if (flag3) + { + result = null; + } + else + { + helper.SetCacheQuery(type, collection); + result = collection; + } + } + } + return result; + } + + public bool bHasEffect(CombatEffectType type) + { + return CombatEffectHelper.GetTypeDataList(type, this) != null; + } + + private int GetSum(CombatEffectType type) + { + EffectDataParams.TypeDataCollection typeDataList = CombatEffectHelper.GetTypeDataList(type, this); + bool flag = typeDataList == null; + int result; + if (flag) + { + result = 0; + } + else + { + int num = 0; + for (int i = 0; i < typeDataList.datas.Count; i++) + { + EffectDataParams.TypeData typeData = typeDataList.datas[i]; + for (int j = 0; j < typeData.randomParams.Count; j++) + { + num += typeData.randomParams[j]; + } + } + result = num; + } + return result; + } + + private bool GetSequenceSum(ref CombatEffectHelper.GetSeqDataParam param, SequenceList vecOut, GetBuffDataSeqFloat getBuffDataDelegate, int dim) + { + bool flag = param.replaceIndex >= param.dim; + bool result; + if (flag) + { + result = false; + } + else + { + EffectDataParams.TypeDataCollection typeDataList = CombatEffectHelper.GetTypeDataList(param.type, param.helper); + bool flag2 = typeDataList == null; + if (flag2) + { + result = false; + } + else + { + vecOut.Reset((short)param.dim, (int)((short)typeDataList.datas.Count)); + for (int i = 0; i < typeDataList.datas.Count; i++) + { + EffectDataParams.TypeData typeData = typeDataList.datas[i]; + BuffTable.RowData rowData = (typeData.templatebuffID == 0u) ? param.helper.BuffInfo : param.helper.GetTemplateBuffTable(typeData.templatebuffID); + bool flag3 = rowData == null; + if (!flag3) + { + bool flag4 = typeData.randomParams.Count == 0; + if (!flag4) + { + bool flag5 = getBuffDataDelegate != null; + if (flag5) + { + bool flag6 = !this._ReplaceSeq(getBuffDataDelegate(rowData), (float)((double)typeData.randomParams[0] * param.ratio), param.replaceIndex, vecOut, i, dim); + if (flag6) + { + return false; + } + } + } + } + } + result = true; + } + } + return result; + } + + private bool GetVecSequenceSum(ref CombatEffectHelper.GetSeqListDataParam param, SequenceList vecOut, GetBuffDataSeqListFloat getBuffDataDelegate, int dim) + { + bool flag = param.replaceIndex >= param.dim; + bool result; + if (flag) + { + result = false; + } + else + { + EffectDataParams.TypeDataCollection typeDataList = CombatEffectHelper.GetTypeDataList(param.type, param.helper); + bool flag2 = typeDataList == null; + if (flag2) + { + result = false; + } + else + { + vecOut.CheckOrReset((short)param.dim); + int count = vecOut.Count; + for (int i = 0; i < typeDataList.datas.Count; i++) + { + EffectDataParams.TypeData typeData = typeDataList.datas[i]; + BuffTable.RowData rowData = (typeData.templatebuffID == 0u) ? param.helper.BuffInfo : param.helper.GetTemplateBuffTable(typeData.templatebuffID); + bool flag3 = rowData == null; + if (!flag3) + { + bool flag4 = getBuffDataDelegate != null; + if (flag4) + { + bool flag5 = !this._ReplaceVecSeq(ref param, getBuffDataDelegate(rowData), typeData.randomParams, vecOut, ref count, dim); + if (flag5) + { + return false; + } + } + } + } + result = true; + } + } + return result; + } + + private bool GetVecSequenceSum(ref CombatEffectHelper.GetSeqListDataParam param, SequenceList vecOut, GetBuffDataSeqListInt getBuffDataDelegate, int dim) + { + bool flag = param.replaceIndex >= param.dim; + bool result; + if (flag) + { + result = false; + } + else + { + EffectDataParams.TypeDataCollection typeDataList = CombatEffectHelper.GetTypeDataList(param.type, param.helper); + bool flag2 = typeDataList == null; + if (flag2) + { + result = false; + } + else + { + vecOut.CheckOrReset((short)param.dim); + int count = vecOut.Count; + for (int i = 0; i < typeDataList.datas.Count; i++) + { + EffectDataParams.TypeData typeData = typeDataList.datas[i]; + BuffTable.RowData rowData = (typeData.templatebuffID == 0u) ? param.helper.BuffInfo : param.helper.GetTemplateBuffTable(typeData.templatebuffID); + bool flag3 = rowData == null; + if (!flag3) + { + bool flag4 = getBuffDataDelegate != null; + if (flag4) + { + bool flag5 = !this._ReplaceVecSeq(ref param, getBuffDataDelegate(rowData), typeData.randomParams, vecOut, ref count, dim); + if (flag5) + { + return false; + } + } + } + } + result = true; + } + } + return result; + } + + private bool GetVecSequenceSumFromVecString(ref CombatEffectHelper.GetSeqListDataFromVecStringParam param, SequenceList vecOut, GetBuffDataSeqListString getBuffDataDelegate, int dim) + { + bool flag = param.replaceIndex >= param.dim; + bool result; + if (flag) + { + result = false; + } + else + { + EffectDataParams.TypeDataCollection typeDataList = CombatEffectHelper.GetTypeDataList(param.type, param.helper); + bool flag2 = typeDataList == null; + if (flag2) + { + result = false; + } + else + { + vecOut.CheckOrReset((short)param.dim); + int count = vecOut.Count; + for (int i = 0; i < typeDataList.datas.Count; i++) + { + EffectDataParams.TypeData typeData = typeDataList.datas[i]; + BuffTable.RowData rowData = (typeData.templatebuffID == 0u) ? param.helper.BuffInfo : param.helper.GetTemplateBuffTable(typeData.templatebuffID); + bool flag3 = rowData == null; + if (!flag3) + { + bool flag4 = getBuffDataDelegate != null; + if (flag4) + { + bool flag5 = !this._ReplaceVecSeqFromVecString(ref param, getBuffDataDelegate(rowData), typeData.randomParams, vecOut, ref count, dim); + if (flag5) + { + return false; + } + } + } + } + result = true; + } + } + return result; + } + + private float _Double2Float(double d) + { + return (float)d; + } + + private uint _Double2Uint(double d) + { + return (uint)d; + } + + private int _Double2Int(double d) + { + return (int)d; + } + + private uint _Uint2Uint(uint u) + { + return u; + } + + private uint _Int2Uint(int u) + { + return (uint)u; + } + + private bool _ReplaceSeq(T refData, N value, int replaceIndex, SequenceList vecOut, int dataIndex, int dim) where T : ISeqRef where N : IComparable + { + bool flag = dim <= replaceIndex; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < dim; i++) + { + bool flag2 = i == replaceIndex; + if (flag2) + { + vecOut[dataIndex, replaceIndex] = value; + } + else + { + vecOut[dataIndex, i] = refData[i]; + } + } + result = true; + } + return result; + } + + private bool _ReplaceSeq(ISeqRef refData, N value, int replaceIndex, SequenceList vecOut, int dataIndex, int dim) + { + bool flag = dim <= replaceIndex; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < dim; i++) + { + bool flag2 = i == replaceIndex; + if (flag2) + { + vecOut[dataIndex, replaceIndex] = value; + } + else + { + vecOut[dataIndex, i] = refData[i]; + } + } + result = true; + } + return result; + } + + private bool _ReplaceVecSeq(ref CombatEffectHelper.GetSeqListDataParam param, ISeqListRef refData, List values, SequenceList vecOut, ref int index, int dim) + { + bool flag = param.replaceIndex >= dim || (refData.Count != 0 && refData.Count != values.Count); + bool result; + if (flag) + { + result = false; + } + else + { + int i = 0; + while (i < refData.Count) + { + for (int j = 0; j < dim; j++) + { + bool flag2 = j == param.replaceIndex; + if (flag2) + { + vecOut[index, j] = (float)((double)values[i] * param.ratio); + } + else + { + vecOut[index, j] = refData[i, j]; + } + } + i++; + index++; + } + result = true; + } + return result; + } + + private bool _ReplaceVecSeq(ref CombatEffectHelper.GetSeqListDataParam param, ISeqListRef refData, List values, SequenceList vecOut, ref int index, int dim) + { + bool flag = param.replaceIndex >= dim || (refData.Count != 0 && refData.Count != values.Count); + bool result; + if (flag) + { + result = false; + } + else + { + int i = 0; + while (i < refData.Count) + { + for (int j = 0; j < dim; j++) + { + bool flag2 = j == param.replaceIndex; + if (flag2) + { + vecOut[index, j] = (int)((double)values[i] * param.ratio); + } + else + { + vecOut[index, j] = refData[i, j]; + } + } + i++; + index++; + } + result = true; + } + return result; + } + + private bool _ReplaceVecSeqFromVecString(ref CombatEffectHelper.GetSeqListDataFromVecStringParam param, ISeqListRef refData, List values, SequenceList vecOut, ref int index, int dim) + { + bool flag = param.replaceIndex >= dim || (refData.Count != 0 && refData.Count != values.Count); + bool result; + if (flag) + { + result = false; + } + else + { + int i = 0; + while (i < refData.Count) + { + for (int j = 0; j < dim; j++) + { + bool flag2 = j == param.replaceIndex; + if (flag2) + { + vecOut[index, j] = (uint)values[i]; + } + else + { + bool flag3 = j == param.hashIndex; + if (flag3) + { + vecOut[index, j] = XSingleton.singleton.XHash(refData[i, j]); + } + else + { + vecOut[index, j] = uint.Parse(refData[i, j]); + } + } + } + i++; + index++; + } + result = true; + } + return result; + } + + public static float Add(float left, float right) + { + return left + right; + } + + public static int Add(int left, int right) + { + return left + right; + } + + public static uint Add(uint left, uint right) + { + return left + right; + } + + private bool _CompareSeq(T[] left, T[] right, int exclusiveIndex) where T : IComparable + { + bool flag = left.Length != right.Length; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < left.Length; i++) + { + bool flag2 = i == exclusiveIndex; + if (!flag2) + { + bool flag3 = left[i].CompareTo(right[i]) != 0; + if (flag3) + { + return false; + } + } + } + result = true; + } + return result; + } + + public void Merge(SequenceList datas, int exclusiveIndex) + { + int num = 0; + int num2 = 1; + float[] array = CombatEffectHelper.startDataBufferFloat; + float[] array2 = CombatEffectHelper.curDataBufferFloat; + while (num < datas.Count && num2 < datas.Count) + { + datas.Get(num2, array2); + int num3 = -1; + for (int i = 0; i <= num; i++) + { + datas.Get(i, array); + bool flag = this._CompareSeq(array, array2, exclusiveIndex); + if (flag) + { + num3 = i; + break; + } + } + bool flag2 = num3 != -1; + if (flag2) + { + datas[num3, exclusiveIndex] = array2[exclusiveIndex] + datas[num3, exclusiveIndex]; + } + else + { + num++; + bool flag3 = num < num2; + if (flag3) + { + datas.Set(num, array2); + } + } + num2++; + } + datas.Trim(num + 1); + } + + public void Merge(SequenceList datas, int exclusiveIndex) + { + int num = 0; + int num2 = 1; + uint[] array = CombatEffectHelper.startDataBufferUint; + uint[] array2 = CombatEffectHelper.curDataBufferUint; + while (num < datas.Count && num2 < datas.Count) + { + datas.Get(num2, array2); + int num3 = -1; + for (int i = 0; i <= num; i++) + { + datas.Get(i, array); + bool flag = this._CompareSeq(array, array2, exclusiveIndex); + if (flag) + { + num3 = i; + break; + } + } + bool flag2 = num3 != -1; + if (flag2) + { + datas[num3, exclusiveIndex] = array2[exclusiveIndex] + datas[num3, exclusiveIndex]; + } + else + { + num++; + bool flag3 = num < num2; + if (flag3) + { + datas.Set(num, array2); + } + } + num2++; + } + datas.Trim(num + 1); + } + + private ISeqRef _GetBuffHPData(BuffTable.RowData pBuffData) + { + return pBuffData.BuffHP; + } + + public bool GetBuffHP(SequenceList vecOut) + { + CombatEffectHelper.GetSeqDataParam getSeqDataParam; + getSeqDataParam.dim = 2; + getSeqDataParam.helper = this; + getSeqDataParam.ratio = 1.0; + getSeqDataParam.replaceIndex = 1; + getSeqDataParam.type = CombatEffectType.CET_Buff_HP; + return this.GetSequenceSum(ref getSeqDataParam, vecOut, new GetBuffDataSeqFloat(this._GetBuffHPData), 2); + } + + private ISeqListRef _GetBuffChangeAttributeData(BuffTable.RowData pBuffData) + { + return pBuffData.BuffChangeAttribute; + } + + public bool GetBuffChangeAttribute(SequenceList vecOut) + { + CombatEffectHelper.GetSeqListDataParam getSeqListDataParam; + getSeqListDataParam.dim = 3; + getSeqListDataParam.helper = this; + getSeqListDataParam.ratio = 0.001; + getSeqListDataParam.replaceIndex = 1; + getSeqListDataParam.type = CombatEffectType.CET_Buff_ChangeAttribute; + bool vecSequenceSum = this.GetVecSequenceSum(ref getSeqListDataParam, vecOut, new GetBuffDataSeqListFloat(this._GetBuffChangeAttributeData), 3); + this.Merge(vecOut, 1); + return vecSequenceSum; + } + + public bool GetSkillDamage(out float ratio) + { + ratio = 0f; + int sum = this.GetSum(CombatEffectType.CET_Skill_Damage); + bool flag = sum == 0; + bool result; + if (flag) + { + result = false; + } + else + { + ratio = (float)sum * 0.001f; + result = true; + } + return result; + } + + public bool GetSkillCD(out float fOut) + { + fOut = 0f; + int sum = this.GetSum(CombatEffectType.CET_Skill_CD); + bool flag = sum == 0; + bool result; + if (flag) + { + result = false; + } + else + { + fOut = (float)sum * 0.001f; + bool flag2 = fOut > 1f; + if (flag2) + { + fOut = 1f; + } + fOut = -fOut; + result = true; + } + return result; + } + + public float GetBuffAuraRadius() + { + return (float)this.GetSum(CombatEffectType.CET_Buff_AuraRadius) * 0.001f; + } + + public float GetBuffTriggerRate() + { + return (float)this.GetSum(CombatEffectType.CET_Buff_TriggerRate) * 0.001f; + } + + public float GetBuffDuration() + { + return (float)this.GetSum(CombatEffectType.CET_Buff_Duration) * 0.001f; + } + + public bool GetSkillAddBuff(ref List vecBuffs, XSkillFlags flags) + { + EffectDataParams.TypeDataCollection typeDataList = CombatEffectHelper.GetTypeDataList(CombatEffectType.CET_Skill_AddBuff, this); + bool flag = typeDataList == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < typeDataList.datas.Count; i++) + { + EffectDataParams.TypeData typeData = typeDataList.datas[i]; + for (int j = 0; j < typeData.constantParams.Count; j++) + { + string[] array = typeData.constantParams[j].Split(CombatEffectHelper.ConstantSeparator); + bool flag2 = array.Length >= 4 && flags != null && !flags.IsFlagSet(uint.Parse(array[3])); + if (!flag2) + { + bool flag3 = array.Length == 0; + if (!flag3) + { + BuffDesc item; + item.BuffID = int.Parse(array[0]); + item.BuffLevel = ((array.Length >= 2) ? int.Parse(array[1]) : 1); + item.DelayTime = ((array.Length >= 3) ? float.Parse(array[2]) : 0f); + item.SkillID = this.m_SkillHash; + item.EffectTime = BuffDesc.DEFAULT_TIME; + item.CasterID = 0UL; + bool flag4 = vecBuffs == null; + if (flag4) + { + vecBuffs = new List(); + } + vecBuffs.Add(item); + } + } + } + } + result = true; + } + return result; + } + + public bool GetSkillAddMobBuff(int skillLevel, List vecBuffs) + { + EffectDataParams.TypeDataCollection typeDataList = CombatEffectHelper.GetTypeDataList(CombatEffectType.CET_Skill_AddMobBuff, this); + bool flag = typeDataList == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < typeDataList.datas.Count; i++) + { + EffectDataParams.TypeData typeData = typeDataList.datas[i]; + for (int j = 0; j < typeData.constantParams.Count; j++) + { + string[] array = typeData.constantParams[j].Split(CombatEffectHelper.ConstantSeparator); + bool flag2 = array.Length == 0; + if (!flag2) + { + BuffDesc item; + item.BuffID = int.Parse(array[0]); + item.BuffLevel = ((array.Length >= 2) ? int.Parse(array[1]) : skillLevel); + item.DelayTime = 0f; + item.SkillID = 0u; + item.EffectTime = BuffDesc.DEFAULT_TIME; + item.CasterID = 0UL; + vecBuffs.Add(item); + } + } + } + result = true; + } + return result; + } + + private ISeqListRef _GetBuffReduceSkillCDData(BuffTable.RowData pBuffData) + { + return pBuffData.ReduceSkillCD; + } + + public bool GetBuffReduceSkillCD(SequenceList vecOut) + { + CombatEffectHelper.GetSeqListDataFromVecStringParam getSeqListDataFromVecStringParam; + getSeqListDataFromVecStringParam.dim = 3; + getSeqListDataFromVecStringParam.helper = this; + getSeqListDataFromVecStringParam.hashIndex = 0; + getSeqListDataFromVecStringParam.replaceIndex = 1; + getSeqListDataFromVecStringParam.type = CombatEffectType.CET_Buff_ReduceCD; + bool vecSequenceSumFromVecString = this.GetVecSequenceSumFromVecString(ref getSeqListDataFromVecStringParam, vecOut, new GetBuffDataSeqListString(this._GetBuffReduceSkillCDData), 3); + this.Merge(vecOut, 1); + return vecSequenceSumFromVecString; + } + + private ISeqListRef _GetBuffChangeSkillDamageData(BuffTable.RowData pBuffData) + { + return pBuffData.ChangeSkillDamage; + } + + public bool GetBuffChangeSkillDamage(SequenceList vecOut) + { + CombatEffectHelper.GetSeqListDataFromVecStringParam getSeqListDataFromVecStringParam; + getSeqListDataFromVecStringParam.dim = 2; + getSeqListDataFromVecStringParam.helper = this; + getSeqListDataFromVecStringParam.hashIndex = 0; + getSeqListDataFromVecStringParam.replaceIndex = 1; + getSeqListDataFromVecStringParam.type = CombatEffectType.CET_Buff_ChangeSkillDamage; + return this.GetVecSequenceSumFromVecString(ref getSeqListDataFromVecStringParam, vecOut, new GetBuffDataSeqListString(this._GetBuffChangeSkillDamageData), 2); + } + + public bool GetBuffChangeDamage(out double castDamage, out double receiveDamage) + { + castDamage = (double)this.GetSum(CombatEffectType.CET_Buff_ChangeDamage_Cast) * 0.001; + receiveDamage = (double)this.GetSum(CombatEffectType.CET_Buff_ChangeDamage_Receive) * 0.001; + return true; + } + + private ISeqListRef _GetBuffDOTData(BuffTable.RowData pBuffData) + { + return pBuffData.BuffDOT; + } + + private ISeqListRef _GetBuffDOTFromCasterData(BuffTable.RowData pBuffData) + { + return pBuffData.BuffDOTValueFromCaster; + } + + public bool GetBuffRegenerate(SequenceList vecDotOut, SequenceList vecFromCasterOut) + { + bool flag = true; + CombatEffectHelper.GetSeqListDataParam getSeqListDataParam; + getSeqListDataParam.dim = 3; + getSeqListDataParam.helper = this; + getSeqListDataParam.ratio = 0.001; + getSeqListDataParam.replaceIndex = 1; + getSeqListDataParam.type = CombatEffectType.CET_Buff_DOTorHOT; + flag = (flag && this.GetVecSequenceSum(ref getSeqListDataParam, vecDotOut, new GetBuffDataSeqListFloat(this._GetBuffDOTData), 3)); + CombatEffectHelper.GetSeqListDataParam getSeqListDataParam2; + getSeqListDataParam2.dim = 2; + getSeqListDataParam2.helper = this; + getSeqListDataParam2.ratio = 0.001; + getSeqListDataParam2.replaceIndex = 1; + getSeqListDataParam2.type = CombatEffectType.CET_Buff_DOTorHOT; + return flag && this.GetVecSequenceSum(ref getSeqListDataParam2, vecFromCasterOut, new GetBuffDataSeqListInt(this._GetBuffDOTFromCasterData), 2); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CombatEffectHelper.cs.meta b/Client/Assets/Scripts/XMainClient/CombatEffectHelper.cs.meta new file mode 100644 index 00000000..a8b64ed8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CombatEffectHelper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fda0b7e352be08946871bfc460b422cf +timeCreated: 1611404937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CombatEffectType.cs b/Client/Assets/Scripts/XMainClient/CombatEffectType.cs new file mode 100644 index 00000000..cf02794d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CombatEffectType.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal enum CombatEffectType + { + CET_INVALID, + CET_Buff_ChangeAttribute, + CET_Buff_HP, + CET_Buff_Duration, + CET_Buff_TriggerRate, + CET_Buff_AuraRadius, + CET_Buff_ReduceCD, + CET_Buff_ChangeSkillDamage, + CET_Buff_ChangeDamage_Cast, + CET_Buff_ChangeDamage_Receive, + CET_Buff_DOTorHOT, + CET_Skill_Damage = 1001, + CET_Skill_CD, + CET_Skill_AddBuff, + CET_Skill_AddMobBuff + } +} diff --git a/Client/Assets/Scripts/XMainClient/CombatEffectType.cs.meta b/Client/Assets/Scripts/XMainClient/CombatEffectType.cs.meta new file mode 100644 index 00000000..0265e9e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CombatEffectType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c891bbacc9a129428f4c85f100220ef +timeCreated: 1611403899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CombineMeshTask.cs b/Client/Assets/Scripts/XMainClient/CombineMeshTask.cs new file mode 100644 index 00000000..37de4286 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CombineMeshTask.cs @@ -0,0 +1,197 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CombineMeshTask + { + public EquipLoadTask[] parts = new EquipLoadTask[XFastEnumIntEqualityComparer.ToInt(EPartType.ENum)]; + + public ECombineStatus combineStatus = ECombineStatus.ENotCombine; + + private static int m_FinalLoadStatus = 0; + + private int m_LoadStatus = 0; + + private PartLoadCallback m_PartLoaded = null; + + public bool needCombine = false; + + public int roleType; + + public SkinnedMeshRenderer skin = null; + + public bool noCombine = false; + + public MaterialPropertyBlock mpb = null; + + public bool isOnepart = false; + + public static ECombineMatType s_CombineMatType = ECombineMatType.ECombined; + + public CombineMeshTask(MountLoadCallback mountLoadFinish) + { + this.mpb = new MaterialPropertyBlock(); + this.m_PartLoaded = new PartLoadCallback(this.PartLoadFinish); + for (EPartType epartType = EPartType.ECombinePartStart; epartType < EPartType.ECombinePartEnd; epartType++) + { + this.parts[XFastEnumIntEqualityComparer.ToInt(epartType)] = new PartLoadTask(epartType, this.m_PartLoaded); + } + for (EPartType epartType2 = EPartType.ECombinePartEnd; epartType2 < EPartType.EWeaponEnd; epartType2++) + { + this.parts[XFastEnumIntEqualityComparer.ToInt(epartType2)] = new WeaponLoadTask(epartType2, mountLoadFinish); + } + for (EPartType epartType3 = EPartType.EWeaponEnd; epartType3 < EPartType.EMountEnd; epartType3++) + { + this.parts[XFastEnumIntEqualityComparer.ToInt(epartType3)] = new MountLoadTask(epartType3, mountLoadFinish); + } + for (EPartType epartType4 = EPartType.EMountEnd; epartType4 < EPartType.ENum; epartType4++) + { + this.parts[XFastEnumIntEqualityComparer.ToInt(epartType4)] = new DecalLoadTask(epartType4, this.m_PartLoaded, this.parts[0] as PartLoadTask); + } + bool flag = CombineMeshTask.m_FinalLoadStatus == 0; + if (flag) + { + for (EPartType epartType5 = EPartType.ECombinePartStart; epartType5 < EPartType.ECombinePartEnd; epartType5++) + { + CombineMeshTask.m_FinalLoadStatus |= 1 << XFastEnumIntEqualityComparer.ToInt(epartType5); + } + for (EPartType epartType6 = EPartType.EMountEnd; epartType6 < EPartType.ENum; epartType6++) + { + CombineMeshTask.m_FinalLoadStatus |= 1 << XFastEnumIntEqualityComparer.ToInt(epartType6); + } + } + } + + public void Reset(XEntity e) + { + for (int i = 0; i < this.parts.Length; i++) + { + EquipLoadTask equipLoadTask = this.parts[i]; + equipLoadTask.Reset(e); + } + this.combineStatus = ECombineStatus.ENotCombine; + this.isOnepart = false; + this.m_LoadStatus = 0; + this.m_PartLoaded = null; + this.needCombine = false; + this.noCombine = false; + this.roleType = 0; + bool flag = this.skin != null; + if (flag) + { + bool flag2 = this.skin.sharedMaterial != null; + if (flag2) + { + XEquipDocument.ReturnMaterial(this.skin.sharedMaterial); + this.skin.sharedMaterial = null; + } + this.skin.enabled = false; + this.skin = null; + } + bool flag3 = this.mpb != null; + if (flag3) + { + this.mpb.Clear(); + } + } + + public void BeginCombine() + { + this.m_LoadStatus = 0; + this.needCombine = false; + this.combineStatus = ECombineStatus.ENotCombine; + bool flag = this.skin != null; + if (flag) + { + this.skin.enabled = false; + } + } + + public bool EndCombine() + { + this.combineStatus = ECombineStatus.ECombineing; + return CombineMeshTask.m_FinalLoadStatus == this.m_LoadStatus; + } + + public void AddLoadPart(EPartType part) + { + int num = 1 << XFastEnumIntEqualityComparer.ToInt(part); + this.m_LoadStatus |= num; + } + + public void PartLoadFinish(EquipLoadTask part, bool combinePart) + { + this.needCombine = (this.needCombine || combinePart); + this.AddLoadPart(part.part); + } + + public bool Process() + { + bool result; + switch (this.combineStatus) + { + case ECombineStatus.ENotCombine: + case ECombineStatus.ECombined: + result = false; + break; + case ECombineStatus.ECombineing: + result = (CombineMeshTask.m_FinalLoadStatus == this.m_LoadStatus); + break; + default: + result = false; + break; + } + return result; + } + + public static int ConvertPart(FashionPosition fp) + { + int result; + switch (fp) + { + case FashionPosition.FASHION_START: + result = 7; + break; + case FashionPosition.FashionUpperBody: + result = 2; + break; + case FashionPosition.FashionLowerBody: + result = 3; + break; + case FashionPosition.FashionGloves: + result = 4; + break; + case FashionPosition.FashionBoots: + result = 5; + break; + case FashionPosition.FashionMainWeapon: + result = 8; + break; + case FashionPosition.FashionSecondaryWeapon: + result = 6; + break; + case FashionPosition.FashionWings: + result = 9; + break; + case FashionPosition.FashionTail: + result = 10; + break; + case FashionPosition.FashionDecal: + result = 12; + break; + case FashionPosition.FASHION_END: + result = 0; + break; + case FashionPosition.Hair: + result = 1; + break; + default: + result = -1; + break; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CombineMeshTask.cs.meta b/Client/Assets/Scripts/XMainClient/CombineMeshTask.cs.meta new file mode 100644 index 00000000..c9f12d96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CombineMeshTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e318c0b734828ab48af9a9a7bb6bc4ca +timeCreated: 1611404731 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CombineMeshUtility.cs b/Client/Assets/Scripts/XMainClient/CombineMeshUtility.cs new file mode 100644 index 00000000..a1b85241 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CombineMeshUtility.cs @@ -0,0 +1,188 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CombineMeshUtility + { + public static int MaxPartCount = 8; + + private List matCombineInstanceArrayCache = new List(); + + public CombineMeshUtility() + { + for (int i = 0; i < CombineMeshUtility.MaxPartCount; i++) + { + this.matCombineInstanceArrayCache.Add(new CombineInstance[i + 1]); + } + } + + private CombineInstance[] GetMatCombineInstanceArray(int partCount) + { + int num = partCount - 1; + bool flag = num >= 0; + CombineInstance[] result; + if (flag) + { + bool flag2 = num >= this.matCombineInstanceArrayCache.Count; + if (flag2) + { + result = new CombineInstance[partCount]; + } + else + { + result = this.matCombineInstanceArrayCache[num]; + } + } + else + { + result = null; + } + return result; + } + + public bool Combine(CombineMeshTask combineTask) + { + int num = 0; + for (int i = 0; i < 8; i++) + { + PartLoadTask partLoadTask = combineTask.parts[i] as PartLoadTask; + bool flag = partLoadTask.HasMesh(); + if (flag) + { + num++; + } + } + combineTask.isOnepart = false; + CombineInstance[] matCombineInstanceArray = this.GetMatCombineInstanceArray(num); + bool flag2 = matCombineInstanceArray != null && combineTask.skin != null; + bool result; + if (flag2) + { + bool flag3 = false; + PartLoadTask partLoadTask2 = null; + int num2 = 0; + for (int j = 0; j < 8; j++) + { + PartLoadTask partLoadTask3 = combineTask.parts[j] as PartLoadTask; + bool flag4 = partLoadTask3.HasMesh(); + if (flag4) + { + bool isReadable = partLoadTask3.mesh.isReadable; + if (isReadable) + { + CombineInstance combineInstance = default(CombineInstance); + combineInstance.mesh = partLoadTask3.mesh; + bool flag5 = partLoadTask3.partType != XMeshPartList.NormalPart; + if (flag5) + { + combineTask.isOnepart = true; + flag3 = (partLoadTask3.partType == XMeshPartList.CutoutPart); + partLoadTask2 = partLoadTask3; + } + combineInstance.subMeshIndex = 0; + combineInstance.subMeshIndex = 0; + matCombineInstanceArray[num2++] = combineInstance; + } + else + { + XSingleton.singleton.AddErrorLog2("Mesh not readable:{0}", new object[] + { + j + }); + } + } + } + bool flag6 = combineTask.skin.sharedMesh == null; + if (flag6) + { + combineTask.skin.sharedMesh = new Mesh(); + combineTask.skin.sharedMesh.MarkDynamic(); + } + else + { + combineTask.skin.sharedMesh.Clear(true); + } + combineTask.skin.enabled = false; + combineTask.skin.gameObject.SetActive(false); + combineTask.skin.sharedMesh.CombineMeshes(matCombineInstanceArray, true, false); + combineTask.skin.gameObject.SetActive(true); + bool flag7 = combineTask.skin.sharedMaterial != null; + if (flag7) + { + XEquipDocument.ReturnMaterial(combineTask.skin.sharedMaterial); + combineTask.skin.sharedMaterial = null; + } + bool flag8 = combineTask.skin.sharedMaterial == null; + if (flag8) + { + bool flag9 = CombineMeshTask.s_CombineMatType == ECombineMatType.ECombined; + if (flag9) + { + combineTask.skin.sharedMaterial = XEquipDocument.GetRoleMat(combineTask.isOnepart, flag3, 0); + } + else + { + combineTask.skin.sharedMaterial = XEquipDocument.GetRoleMat(combineTask.isOnepart, flag3, combineTask.roleType); + } + } + bool flag10 = combineTask.skin.sharedMaterial != null; + if (flag10) + { + combineTask.skin.GetPropertyBlock(combineTask.mpb); + bool isOnepart = combineTask.isOnepart; + if (isOnepart) + { + PartLoadTask partLoadTask4 = combineTask.parts[XFastEnumIntEqualityComparer.ToInt(EPartType.ECombinePartStart)] as PartLoadTask; + PartLoadTask partLoadTask5 = combineTask.parts[XFastEnumIntEqualityComparer.ToInt(EPartType.EHair)] as PartLoadTask; + PartLoadTask partLoadTask6 = combineTask.parts[XFastEnumIntEqualityComparer.ToInt(EPartType.EHeadgear)] as PartLoadTask; + Texture texture = partLoadTask5.GetTexture(); + ShaderManager.SetTexture(combineTask.mpb, partLoadTask4.GetTexture(), ShaderManager._ShaderKeyIDFace); + bool flag11 = texture == null; + if (flag11) + { + ShaderManager.SetTexture(combineTask.mpb, partLoadTask6.GetTexture(), ShaderManager._ShaderKeyIDHair); + } + else + { + ShaderManager.SetTexture(combineTask.mpb, texture, ShaderManager._ShaderKeyIDHair); + } + bool flag12 = partLoadTask2 != null; + if (flag12) + { + ShaderManager.SetTexture(combineTask.mpb, partLoadTask2.GetTexture(), ShaderManager._ShaderKeyIDBody); + bool flag13 = flag3; + if (flag13) + { + ShaderManager.SetTexture(combineTask.mpb, partLoadTask2.GetAlpha(), ShaderManager._ShaderKeyIDAlpha); + } + } + } + else + { + int k = 0; + int num3 = XFastEnumIntEqualityComparer.ToInt(EPartType.ECombinePartEnd); + while (k < num3) + { + PartLoadTask partLoadTask7 = combineTask.parts[k] as PartLoadTask; + bool flag14 = partLoadTask7.HasMesh(); + if (flag14) + { + ShaderManager.SetTexture(combineTask.mpb, partLoadTask7.GetTexture(), ShaderManager._ShaderKeyIDSkin[k]); + } + k++; + } + } + } + result = true; + } + else + { + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CombineMeshUtility.cs.meta b/Client/Assets/Scripts/XMainClient/CombineMeshUtility.cs.meta new file mode 100644 index 00000000..d563d2f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CombineMeshUtility.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d4fefc1233fc35408ae998004d522ed +timeCreated: 1611404236 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ComparisonType.cs b/Client/Assets/Scripts/XMainClient/ComparisonType.cs new file mode 100644 index 00000000..6a4ff35e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ComparisonType.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal enum ComparisonType + { + FCTYPE_LESS_THAN, + FCTYPE_LESS_OR_EQUAL_TO, + FCTYPE_EQUAL_TO, + FCTYPE_NOT_EQUAL_TO, + FCTYPE_GREATER_THAN_OR_EQUAL_TO, + FCTYPE_GREATER_THAN + } +} diff --git a/Client/Assets/Scripts/XMainClient/ComparisonType.cs.meta b/Client/Assets/Scripts/XMainClient/ComparisonType.cs.meta new file mode 100644 index 00000000..9cc91ab4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ComparisonType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c12e54ec47cd0c8439da5fbe79544ba3 +timeCreated: 1611404489 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CompeteNestRankHandler.cs b/Client/Assets/Scripts/XMainClient/CompeteNestRankHandler.cs new file mode 100644 index 00000000..2f6dd349 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CompeteNestRankHandler.cs @@ -0,0 +1,204 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CompeteNestRankHandler : DlgHandlerBase + { + private XCompeteDocument m_doc + { + get + { + return XCompeteDocument.Doc; + } + } + + protected override string FileName + { + get + { + return "OperatingActivity/CompeteNestRankDlg"; + } + } + + private IXUIButton m_closeBtn; + + private IXUIWrapContent m_wrapContent; + + private GameObject m_tipsGo; + + protected override void Init() + { + base.Init(); + this.m_closeBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Panel"); + this.m_wrapContent = (transform.Find("FourNameList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_tipsGo = base.PanelObject.transform.Find("Panel/Tips").gameObject; + this.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillDefault(); + this.m_doc.ReqRankList(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosedClicked)); + } + + private void FillDefault() + { + this.m_tipsGo.SetActive(true); + this.m_wrapContent.gameObject.SetActive(false); + } + + public void FillContent() + { + bool flag = this.m_doc.RankList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", RankeType.CompeteDragonRank.ToString(), null, null, null, null); + } + else + { + bool flag2 = this.m_doc.RankList.InfoList == null || this.m_doc.RankList.InfoList.Count == 0; + if (flag2) + { + this.m_tipsGo.SetActive(true); + this.m_wrapContent.gameObject.SetActive(false); + } + else + { + this.m_tipsGo.SetActive(false); + this.m_wrapContent.gameObject.SetActive(true); + int count = this.m_doc.RankList.InfoList.Count; + this.m_wrapContent.SetContentCount(count, false); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + XCompeteDocument specificDocument = XDocuments.GetSpecificDocument(XCompeteDocument.uuID); + bool flag = specificDocument.RankList.InfoList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", RankeType.CompeteDragonRank.ToString(), null, null, null, null); + } + else + { + bool flag2 = index >= specificDocument.RankList.InfoList.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("index >= rankDataList.rankList.Count", null, null, null, null, null); + } + else + { + FirstPassRankInfo firstPassRankInfo = specificDocument.RankList.InfoList[index]; + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(firstPassRankInfo.PassTimeStr.Replace("/n", "\n")); + ixuilabel = (t.Find("Title/Text").GetComponent("XUILabel") as IXUILabel); + IXUISprite ixuisprite = t.Find("Title/Pic").GetComponent("XUISprite") as IXUISprite; + DesignationTable.RowData tittleNameByRank = specificDocument.GetTittleNameByRank(index + 1); + bool flag3 = tittleNameByRank.Atlas != null && tittleNameByRank.Atlas != "" && tittleNameByRank.Effect != null && tittleNameByRank.Effect != ""; + if (flag3) + { + ixuisprite.gameObject.SetActive(true); + ixuilabel.gameObject.SetActive(false); + ixuisprite.SetSprite(tittleNameByRank.Effect, tittleNameByRank.Atlas, false); + } + else + { + ixuisprite.gameObject.SetActive(false); + ixuilabel.gameObject.SetActive(true); + ixuilabel.SetText(tittleNameByRank.Designation); + } + bool flag4 = firstPassRankInfo.InfoDataList.Count != 0; + if (flag4) + { + Transform transform = t.Find("Labs"); + for (int i = 0; i < transform.childCount; i++) + { + bool flag5 = i >= firstPassRankInfo.InfoDataList.Count; + if (flag5) + { + transform.GetChild(i).gameObject.SetActive(false); + } + else + { + transform.GetChild(i).gameObject.SetActive(true); + IXUILabelSymbol ixuilabelSymbol = transform.GetChild(i).GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.ID = (ulong)((long)(index * 100 + i)); + ixuilabelSymbol.InputText = firstPassRankInfo.InfoDataList[i].Name; + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this.OnClickName)); + } + } + } + this.SetRank(t, index); + } + } + } + + private void SetRank(Transform tra, int rankIndex) + { + IXUILabel ixuilabel = tra.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = tra.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = (long)rankIndex == (long)((ulong)XRankDocument.INVALID_RANK); + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + bool flag2 = rankIndex < 3; + if (flag2) + { + ixuisprite.SetSprite("N" + (rankIndex + 1)); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1)); + ixuilabel.SetVisible(true); + } + } + } + + private bool OnClosedClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + + private void OnClickName(IXUILabelSymbol iSp) + { + bool flag = this.m_doc.RankList.InfoList == null; + if (!flag) + { + int index = (int)iSp.ID / 100; + FirstPassRankInfo firstPassRankInfo = this.m_doc.RankList.InfoList[index]; + bool flag2 = firstPassRankInfo == null; + if (!flag2) + { + int index2 = (int)iSp.ID % 100; + FirstPassInfoData firstPassInfoData = firstPassRankInfo.InfoDataList[index2]; + bool flag3 = firstPassInfoData == null; + if (!flag3) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(firstPassInfoData.Id, false); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CompeteNestRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/CompeteNestRankHandler.cs.meta new file mode 100644 index 00000000..7bae78e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CompeteNestRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89602a4ef5d80764fadd63b03075d4af +timeCreated: 1611404088 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components.meta b/Client/Assets/Scripts/XMainClient/Components.meta new file mode 100644 index 00000000..c2e19e94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 8809fad35d1d47b4ebf5e2ddbe02d9b0 +folderAsset: yes +timeCreated: 1611553569 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates.meta new file mode 100644 index 00000000..6481944d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 1e1486c08e098c44f8895d9f1115554c +folderAsset: yes +timeCreated: 1611554257 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XActionStateComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XActionStateComponent.cs new file mode 100644 index 00000000..89a214fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XActionStateComponent.cs @@ -0,0 +1,253 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XActionStateComponent : XComponent, IXStateTransform, IXInterface where T : XActionArgs + { + public virtual bool SyncPredicted + { + get + { + return !XSingleton.singleton.SyncMode; + } + } + + public virtual float Speed + { + get + { + throw new NotImplementedException(); + } + } + + public XStateDefine SelfState + { + get + { + return this._selfState; + } + } + + public bool IsStopped + { + get + { + return this._bStopped; + } + } + + public bool IsFinished + { + get + { + return this._bFinished || this._bStopped; + } + } + + public virtual bool ShouldBePresent + { + get + { + return true; + } + } + + public long Token + { + get + { + return this._stateToken; + } + } + + protected long SelfToken + { + get + { + return this._selfToken; + } + } + + public virtual int CollisionLayer + { + get + { + return this._entity.DefaultLayer; + } + } + + public abstract string PresentCommand { get; } + + public abstract string PresentName { get; } + + public bool Deprecated { get; set; } + + public abstract bool IsUsingCurve { get; } + + protected XStateDefine _selfState = XStateDefine.XState_Idle; + + private bool _bFinished = true; + + private bool _bStopped = false; + + private long _stateToken = 0L; + + private long _selfToken = 0L; + + public override void OnDetachFromHost() + { + bool flag = this.SelfState != XStateDefine.XState_Idle && this._entity.Machine.Current == this.SelfState; + if (flag) + { + this._entity.Machine.ForceToDefaultState(true); + } + base.OnDetachFromHost(); + } + + public bool IsPermitted(XStateDefine state) + { + bool flag = this.IsFinished && this._selfState != XStateDefine.XState_Move; + return flag || this.InnerPermitted(state); + } + + public virtual void OnRejected(XStateDefine current) + { + } + + public void StateUpdate(float deltaTime) + { + bool flag = this.SelfState != this._entity.Machine.Default && this.IsFinished; + if (flag) + { + this.Finish(); + } + else + { + this.ActionUpdate(deltaTime); + } + } + + private void Start() + { + this.Begin(); + } + + public void Stop(XStateDefine next) + { + bool flag = !this._bStopped; + if (flag) + { + this._bStopped = true; + this.Finish(); + this.Cancel(next); + } + } + + public virtual void OnGetPermission() + { + this._bStopped = false; + this._bFinished = false; + } + + public virtual string TriggerAnim(string pre) + { + string presentCommand = this.PresentCommand; + bool flag = pre != presentCommand; + if (flag) + { + bool flag2 = this._entity.Ator != null; + if (flag2) + { + this._entity.Ator.SetTrigger(presentCommand); + } + } + return presentCommand; + } + + protected void Finish() + { + bool flag = !this._bFinished; + if (flag) + { + this._bFinished = true; + this.Cease(); + } + } + + protected virtual void Cease() + { + } + + protected virtual void Begin() + { + } + + protected virtual void Cancel(XStateDefine next) + { + } + + protected virtual void OnMount(XMount mount) + { + } + + protected virtual bool SelfCheck(T args) + { + return true; + } + + protected bool GetPermission(T e) + { + bool flag = (this._entity.Skill == null || this._entity.Skill.CanPerformAction(this.SelfState, e)) && (this._entity.Machine == null || this._entity.Machine.TryTransferToState(this)); + bool flag2 = flag; + if (flag2) + { + this._stateToken = e.Token; + this._selfToken = XSingleton.singleton.UniqueToken; + } + return flag; + } + + protected virtual bool InnerPermitted(XStateDefine state) + { + return this._entity.Machine.StatePermitted(this._selfState, state); + } + + protected bool OnActionEvent(XEventArgs e) + { + T e2 = e as T; + XStateDefine last = this._entity.Machine.Current; + bool permission = this.GetPermission(e2); + if (permission) + { + this.OnGetEvent(e2, last); + this.Start(); + } + return true; + } + + protected bool OnMountEvent(XEventArgs e) + { + bool flag = e is XOnMountedEventArgs; + if (flag) + { + this.OnMount(this._entity.Mount); + } + else + { + bool flag2 = e is XOnUnMountedEventArgs; + if (flag2) + { + this.OnMount(null); + } + } + return true; + } + + protected abstract bool OnGetEvent(T e, XStateDefine last); + + protected virtual void ActionUpdate(float deltaTime) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XActionStateComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XActionStateComponent.cs.meta new file mode 100644 index 00000000..737bc520 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XActionStateComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebd48e1350ad3394790e65a17900c872 +timeCreated: 1611404784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitComponent.cs new file mode 100644 index 00000000..7b52c9f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitComponent.cs @@ -0,0 +1,895 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XBeHitComponent : XActionStateComponent + { + public override uint ID + { + get + { + return XBeHitComponent.uuID; + } + } + + public override bool IsUsingCurve + { + get + { + return !base.IsFinished && this._hit_data.CurveUsing; + } + } + + public float TimeSpan + { + get + { + return this._total_time; + } + } + + public XBeHitState CurrentStateinLogical + { + get + { + return this._current_default_state; + } + } + + public bool HasFlyPresent + { + get + { + return this._bHasFlyPresent; + } + } + + public bool HasRollPresent + { + get + { + return this._bHasRollPresent; + } + } + + public override int CollisionLayer + { + get + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + return (xentity.IsPlayer || xentity.IsBoss) ? xentity.DefaultLayer : 14; + } + } + + public override bool ShouldBePresent + { + get + { + return false; + } + } + + public override string PresentCommand + { + get + { + return "ToBeHit"; + } + } + + public override string PresentName + { + get + { + string result; + switch (this._phase) + { + case XBeHitPhase.Hit_Present: + result = "Present"; + break; + case XBeHitPhase.Hit_Landing: + result = "HitLanding"; + break; + case XBeHitPhase.Hit_Hard: + result = "Hard"; + break; + case XBeHitPhase.Hit_GetUp: + result = "GetUp"; + break; + default: + result = "BeHit"; + break; + } + return result; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("BeHit_Presentation"); + + private int _start_idx = 0; + + private Vector2 _pos = Vector2.zero; + + private Vector2 _des = Vector2.zero; + + private XBeHitState _current_default_state = XBeHitState.Hit_Back; + + private XBeHitPhase _phase = XBeHitPhase.Hit_Present; + + private KKSG.XQTEState _last_set_qte = KKSG.XQTEState.QTE_None; + + private float _last_offset = 0f; + + private float _last_height = 0f; + + private float _delta_x = 0f; + + private float _delta_y = 0f; + + private float _delta_z = 0f; + + private float _deltaH = 0f; + + private float _land_time = 0f; + + private float _bounce_time = 0f; + + private float _getup_time = 0f; + + private float _hart_time = 0f; + + private float _gravity = 0f; + + private float _rticalV = 0f; + + private float _factor = 0f; + + private float _elapsed = 0f; + + private bool _bChange_to_fly = false; + + private bool _bHit_Down = false; + + private bool _bHit_Bounce = false; + + private bool _bLoop_Hard = false; + + private bool _bHasFlyPresent = false; + + private bool _bHasRollPresent = false; + + private bool _landing_overrided = false; + + private float _total_time = 0f; + + private float _present_straight = 1f; + + private float _hard_straight = 1f; + + private float _height = 0f; + + private float _offset = 0f; + + private string[] _clips = null; + + private float _clip0Length = 0f; + + private XFx _hit_fx = null; + + private XFx _hit_hit_fx = null; + + private XFx _hit_land_fx = null; + + private IXCurve _curve_h = null; + + private IXCurve _curve_v = null; + + private float _curve_height_scale = 1f; + + private float _curve_offset_scale = 1f; + + private float _curve_height_time_scale = 1f; + + private float _curve_offset_time_scale = 1f; + + private float _hard_time_factor = 1f; + + private XHitData _hit_data = null; + + private Vector3 _hit_direction = Vector3.forward; + + private XEntity _hit_from = null; + + public override string TriggerAnim(string pre) + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + bool flag = this._hit_data != null && !string.IsNullOrEmpty(this._hit_data.Fx); + if (flag) + { + this.PlayHitFx(this._hit_data.Fx, this._hit_data.Fx_Follow, this._hit_data.Fx_StickToGround, ref this._hit_fx); + } + bool flag2 = !string.IsNullOrEmpty(xentity.Present.PresentLib.HitFx); + if (flag2) + { + this.PlayHitFx(xentity.Present.PresentLib.HitFx, true, false, ref this._hit_hit_fx); + } + bool flag3 = xentity.Ator != null; + if (flag3) + { + xentity.Ator.Play("Present", 0); + } + return "ToBeHit"; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._selfState = XStateDefine.XState_BeHit; + this._clips = new string[16]; + this._landing_overrided = false; + } + + public override void OnDetachFromHost() + { + this.DestroyFx(ref this._hit_fx); + this.DestroyFx(ref this._hit_hit_fx); + this.DestroyFx(ref this._hit_land_fx); + bool flag = this._clips != null; + if (flag) + { + this._clips = null; + } + base.OnDetachFromHost(); + } + + public override void Attached() + { + this._bHasFlyPresent = (this._entity.Present.PresentLib.HitFly != null && this._entity.Present.PresentLib.HitFly.Length != 0); + this._bHasRollPresent = (this._entity.Present.PresentLib.Hit_Roll != null && this._entity.Present.PresentLib.Hit_Roll.Length != 0); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_BeHit, new XComponent.XEventHandler(base.OnActionEvent)); + } + + protected override void ActionUpdate(float deltaTime) + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + bool flag = base.IsFinished || xentity.Ator == null; + if (!flag) + { + float elapsed = this._elapsed; + this._elapsed += deltaTime; + switch (this._phase) + { + case XBeHitPhase.Hit_Present: + { + bool flag2 = (this._bChange_to_fly || this._current_default_state == XBeHitState.Hit_Fly) && xentity.BeHit.HasFlyPresent; + bool flag3 = flag2 && !this._landing_overrided; + if (flag3) + { + xentity.OverrideAnimClip("HitLanding", xentity.BeHit.SaveGetClip(12), false, false); + this._landing_overrided = true; + } + bool flag4 = this._elapsed > this._present_straight; + if (flag4) + { + this._elapsed = this._present_straight; + bool flag5 = flag2; + if (flag5) + { + xentity.Ator.SetTrigger("ToBeHit_Landing"); + this._phase = XBeHitPhase.Hit_Landing; + this._bHit_Down = true; + this._bHit_Bounce = false; + bool flag6 = xentity.EngineObject.Position.y < XSingleton.singleton.TerrainY(xentity.EngineObject.Position) + 0.25f; + if (flag6) + { + this.PlayHitFx("Effects/FX_Particle/Roles/Lzg_Ty/Ty_dd", true, true, ref this._hit_land_fx); + } + xentity.Ator.speed = 1f; + } + else + { + xentity.Ator.SetTrigger("ToBeHit_Hard"); + this._phase = XBeHitPhase.Hit_Hard; + xentity.Ator.speed = (this._bLoop_Hard ? 1f : (this._hart_time / this._hard_straight)); + } + this.TrytoTirggerQTE(false); + } + this.CalcDeltaPos(Time.deltaTime, elapsed); + float num = -(this._deltaH / this._present_straight) * Time.deltaTime; + bool flag7 = this._offset < 0f && XEntity.ValideEntity(this._hit_from); + if (flag7) + { + float num2 = Mathf.Sqrt(this._delta_x * this._delta_x + this._delta_z * this._delta_z); + float magnitude = (this._hit_from.EngineObject.Position - xentity.EngineObject.Position).magnitude; + bool flag8 = (double)num2 > (double)magnitude - 0.5; + if (flag8) + { + this._delta_x = 0f; + this._delta_z = 0f; + } + } + this._entity.ApplyMove(this._delta_x, this._delta_y + num, this._delta_z); + bool flag9 = flag2; + if (flag9) + { + this._entity.DisableGravity(); + } + break; + } + case XBeHitPhase.Hit_Landing: + { + bool flag10 = !this._bHit_Bounce; + if (flag10) + { + bool flag11 = this._elapsed > this._present_straight + this._land_time; + if (flag11) + { + this._bHit_Bounce = true; + bool flag12 = this._elapsed <= this._present_straight + this._land_time + this._bounce_time; + if (flag12) + { + this.TrytoTirggerQTE(false); + } + } + } + bool bHit_Bounce = this._bHit_Bounce; + if (bHit_Bounce) + { + bool flag13 = this._elapsed > this._present_straight + this._land_time + this._bounce_time; + if (flag13) + { + xentity.Ator.SetTrigger("ToBeHit_Hard"); + this._phase = XBeHitPhase.Hit_Hard; + xentity.Ator.speed = (this._bLoop_Hard ? 1f : (this._hart_time / this._hard_straight)); + this._bHit_Bounce = false; + this.TrytoTirggerQTE(false); + } + } + break; + } + case XBeHitPhase.Hit_Hard: + { + bool flag14 = this._elapsed > this._present_straight + this._land_time + this._bounce_time + this._hard_straight; + if (flag14) + { + xentity.Ator.SetTrigger("ToBeHit_GetUp"); + this._phase = XBeHitPhase.Hit_GetUp; + xentity.Ator.speed = 1f; + this.TrytoTirggerQTE(false); + } + break; + } + case XBeHitPhase.Hit_GetUp: + { + bool flag15 = this._elapsed > this._total_time - this._getup_time * 0.7f; + if (flag15) + { + this._bHit_Down = false; + } + bool flag16 = this._elapsed > this._total_time; + if (flag16) + { + xentity.Ator.speed = 1f; + base.Finish(); + } + break; + } + } + } + } + + public bool LaidOnGround() + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + return xentity.Machine.Current == this._selfState && this._bHit_Down; + } + + protected override void Cancel(XStateDefine next) + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + this._elapsed = 0f; + this._rticalV = 0f; + this._gravity = 0f; + this._deltaH = 0f; + bool flag = xentity.Ator != null; + if (flag) + { + xentity.Ator.speed = 1f; + } + this._curve_h = null; + this._curve_v = null; + this._hit_data = null; + this._hit_from = null; + this.DestroyFx(ref this._hit_fx); + this.DestroyFx(ref this._hit_hit_fx); + this.DestroyFx(ref this._hit_land_fx); + this.TrytoTirggerQTE(true); + } + + protected override bool OnGetEvent(XBeHitEventArgs e, XStateDefine last) + { + this._bHit_Down = false; + this._bHit_Bounce = false; + this._hit_data = e.HitData; + this._hit_from = e.HitFrom; + this._hit_direction = XSingleton.singleton.Horizontal(e.HitDirection); + this._bChange_to_fly = e.ForceToFlyHit; + this._hard_time_factor = ((e.Paralyze > 0f) ? e.Paralyze : 1f); + return true; + } + + public string SaveGetClip(int idx) + { + bool flag = this._clips[idx] == null; + if (flag) + { + switch (idx) + { + case 0: + case 1: + case 2: + this._clips[idx] = this._entity.Present.ActionPrefix + this._entity.Present.PresentLib.Hit_f[idx]; + break; + case 3: + case 4: + case 5: + this._clips[idx] = this._entity.Present.ActionPrefix + this._entity.Present.PresentLib.Hit_l[idx % 3]; + break; + case 6: + case 7: + case 8: + this._clips[idx] = this._entity.Present.ActionPrefix + this._entity.Present.PresentLib.Hit_r[idx % 3]; + break; + case 9: + case 10: + case 11: + this._clips[idx] = this._entity.Present.ActionPrefix + this._entity.Present.PresentLib.Hit_Roll[idx % 3]; + break; + case 12: + this._clips[idx] = this._entity.Present.ActionPrefix + this._entity.Present.PresentLib.HitFly[XFastEnumIntEqualityComparer.ToInt(XBeHitPhase.Hit_Landing)]; + break; + case 13: + this._clips[idx] = this._entity.Present.ActionPrefix + this._entity.Present.PresentLib.HitFly[XFastEnumIntEqualityComparer.ToInt(XBeHitPhase.Hit_Present)]; + break; + case 14: + this._clips[idx] = this._entity.Present.ActionPrefix + this._entity.Present.PresentLib.HitFly[XFastEnumIntEqualityComparer.ToInt(XBeHitPhase.Hit_Hard)]; + break; + case 15: + this._clips[idx] = this._entity.Present.ActionPrefix + this._entity.Present.PresentLib.HitFly[XFastEnumIntEqualityComparer.ToInt(XBeHitPhase.Hit_GetUp)]; + break; + } + } + return this._clips[idx]; + } + + private void Prepare() + { + this._start_idx = 0; + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + switch (this._current_default_state) + { + case XBeHitState.Hit_Back: + { + bool bChange_to_fly = this._bChange_to_fly; + if (bChange_to_fly) + { + bool flag = !xentity.BeHit.HasFlyPresent; + if (flag) + { + this._start_idx = 3; + } + else + { + this._start_idx = 13; + } + } + else + { + switch (this._hit_data.State_Animation) + { + case XBeHitState_Animation.Hit_Back_Front: + this._start_idx = 0; + break; + case XBeHitState_Animation.Hit_Back_Left: + this._start_idx = 3; + break; + case XBeHitState_Animation.Hit_Back_Right: + this._start_idx = 6; + break; + } + } + break; + } + case XBeHitState.Hit_Fly: + { + bool flag2 = !xentity.BeHit.HasFlyPresent; + if (flag2) + { + this._start_idx = 3; + } + else + { + this._start_idx = 13; + } + break; + } + case XBeHitState.Hit_Roll: + { + bool bChange_to_fly2 = this._bChange_to_fly; + if (bChange_to_fly2) + { + bool flag3 = !xentity.BeHit.HasFlyPresent; + if (flag3) + { + this._start_idx = 3; + } + else + { + this._start_idx = 13; + } + } + else + { + bool flag4 = !xentity.BeHit.HasRollPresent; + if (flag4) + { + this._start_idx = 3; + } + else + { + this._start_idx = 9; + } + } + break; + } + } + XAnimationClip xanimationClip; + xentity.OverrideAnimClipGetClip("PresentStraight", xentity.BeHit.SaveGetClip(this._start_idx), false, true, out xanimationClip); + XAnimationClip xanimationClip2; + xentity.OverrideAnimClipGetClip("HardStraight", xentity.BeHit.SaveGetClip(this._start_idx + 1), false, false, out xanimationClip2); + xentity.OverrideAnimClip("GetUp", xentity.BeHit.SaveGetClip(this._start_idx + 2), false, false); + this._land_time = (((this._bChange_to_fly || this._current_default_state == XBeHitState.Hit_Fly) && xentity.BeHit.HasFlyPresent) ? xentity.Present.PresentLib.HitFly_Bounce_GetUp[0] : 0f); + this._bounce_time = (((this._bChange_to_fly || this._current_default_state == XBeHitState.Hit_Fly) && xentity.BeHit.HasFlyPresent) ? xentity.Present.PresentLib.HitFly_Bounce_GetUp[1] : 0f); + this._getup_time = (((this._bChange_to_fly || this._current_default_state == XBeHitState.Hit_Fly) && xentity.BeHit.HasFlyPresent) ? xentity.Present.PresentLib.HitFly_Bounce_GetUp[2] : ((this._current_default_state == XBeHitState.Hit_Roll && xentity.BeHit.HasRollPresent) ? xentity.Present.PresentLib.HitRoll_Recover : xentity.Present.PresentLib.HitBack_Recover[0])); + bool flag5 = xanimationClip2 != null; + if (flag5) + { + this._hart_time = xanimationClip2.length; + this._bLoop_Hard = ((int)xanimationClip2.clip.wrapMode == 2); + } + bool flag6 = xanimationClip != null; + if (flag6) + { + this._clip0Length = xanimationClip.length; + } + bool flag7 = this._hit_data.CurveUsing && xentity.Present.PresentLib.HitCurves != null; + if (flag7) + { + IXCurve ixcurve = ((this._bChange_to_fly || this._current_default_state == XBeHitState.Hit_Fly) && xentity.BeHit.HasFlyPresent) ? XSingleton.singleton.GetCurve(xentity.Present.CurvePrefix + xentity.Present.PresentLib.HitCurves[4]) : null; + IXCurve ixcurve2 = ((this._bChange_to_fly || this._current_default_state == XBeHitState.Hit_Fly) && xentity.BeHit.HasFlyPresent) ? XSingleton.singleton.GetCurve(xentity.Present.CurvePrefix + xentity.Present.PresentLib.HitCurves[3]) : ((this._current_default_state == XBeHitState.Hit_Roll && xentity.BeHit.HasRollPresent) ? XSingleton.singleton.GetCurve(xentity.Present.CurvePrefix + xentity.Present.PresentLib.HitCurves[5]) : ((this._current_default_state == XBeHitState.Hit_Back) ? XSingleton.singleton.GetCurve(xentity.Present.CurvePrefix + xentity.Present.PresentLib.HitCurves[XFastEnumIntEqualityComparer.ToInt(this._hit_data.State_Animation)]) : XSingleton.singleton.GetCurve(xentity.Present.CurvePrefix + xentity.Present.PresentLib.HitCurves[0]))); + this._curve_h = ((ixcurve != null) ? ixcurve : null); + this._curve_v = ixcurve2; + this._curve_height_scale = ((ixcurve == null || ixcurve.GetMaxValue() == 0f) ? 1f : (this._height / ixcurve.GetMaxValue())); + this._curve_offset_scale = ((ixcurve2.GetMaxValue() == 0f) ? 1f : (this._offset / ixcurve2.GetMaxValue())); + } + } + + protected override void Begin() + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + this._current_default_state = this._hit_data.State; + this._present_straight = (this._bChange_to_fly ? (this._hit_data.Additional_Using_Default ? XSingleton.singleton.Hit_PresentStraight : this._hit_data.Additional_Hit_Time_Present_Straight) : this._hit_data.Time_Present_Straight); + this._hard_straight = (this._bChange_to_fly ? (this._hit_data.Additional_Using_Default ? XSingleton.singleton.Hit_HardStraight : this._hit_data.Additional_Hit_Time_Hard_Straight) : this._hit_data.Time_Hard_Straight); + this._offset = (this._bChange_to_fly ? (this._hit_data.Additional_Using_Default ? XSingleton.singleton.Hit_Offset : this._hit_data.Additional_Hit_Offset) : this._hit_data.Offset); + this._height = (this._bChange_to_fly ? (this._hit_data.Additional_Using_Default ? XSingleton.singleton.Hit_Height : this._hit_data.Additional_Hit_Height) : this._hit_data.Height); + this._present_straight = (XSingleton.singleton.SyncMode ? this._present_straight : XSingleton.singleton.GetFloatingValue(this._present_straight, this._hit_data.Random_Range)); + this._offset = (XSingleton.singleton.SyncMode ? this._offset : XSingleton.singleton.GetFloatingValue(this._offset, this._hit_data.Random_Range)); + this._height = (XSingleton.singleton.SyncMode ? this._height : XSingleton.singleton.GetFloatingValue(this._height, this._hit_data.Random_Range)); + float num = 1f; + float num2 = 1f; + float num3 = 1f; + float num4 = 1f; + switch (this._current_default_state) + { + case XBeHitState.Hit_Back: + { + bool bChange_to_fly = this._bChange_to_fly; + if (bChange_to_fly) + { + bool flag = xentity.Present.PresentLib.HitFlyOffsetTimeScale != null; + if (flag) + { + num = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[0] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[0]); + num2 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[1] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[1]); + num3 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[2] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[2]); + num4 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[3] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[3]); + } + } + else + { + bool flag2 = xentity.Present.PresentLib.HitBackOffsetTimeScale != null; + if (flag2) + { + num = ((xentity.Present.PresentLib.HitBackOffsetTimeScale[0] == 0f) ? 1f : xentity.Present.PresentLib.HitBackOffsetTimeScale[0]); + num3 = ((xentity.Present.PresentLib.HitBackOffsetTimeScale[1] == 0f) ? 1f : xentity.Present.PresentLib.HitBackOffsetTimeScale[1]); + num4 = ((xentity.Present.PresentLib.HitBackOffsetTimeScale[2] == 0f) ? 1f : xentity.Present.PresentLib.HitBackOffsetTimeScale[2]); + } + } + break; + } + case XBeHitState.Hit_Fly: + { + bool flag3 = xentity.Present.PresentLib.HitFlyOffsetTimeScale != null; + if (flag3) + { + num = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[0] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[0]); + num2 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[1] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[1]); + num3 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[2] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[2]); + num4 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[3] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[3]); + } + break; + } + case XBeHitState.Hit_Roll: + { + bool bChange_to_fly2 = this._bChange_to_fly; + if (bChange_to_fly2) + { + bool flag4 = xentity.Present.PresentLib.HitFlyOffsetTimeScale != null; + if (flag4) + { + num = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[0] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[0]); + num2 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[1] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[1]); + num3 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[2] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[2]); + num4 = ((xentity.Present.PresentLib.HitFlyOffsetTimeScale[3] == 0f) ? 1f : xentity.Present.PresentLib.HitFlyOffsetTimeScale[3]); + } + } + else + { + bool flag5 = xentity.Present.PresentLib.HitRollOffsetTimeScale != null; + if (flag5) + { + num = ((xentity.Present.PresentLib.HitRollOffsetTimeScale[0] == 0f) ? 1f : xentity.Present.PresentLib.HitRollOffsetTimeScale[0]); + num3 = ((xentity.Present.PresentLib.HitRollOffsetTimeScale[1] == 0f) ? 1f : xentity.Present.PresentLib.HitRollOffsetTimeScale[1]); + num4 = ((xentity.Present.PresentLib.HitRollOffsetTimeScale[2] == 0f) ? 1f : xentity.Present.PresentLib.HitRollOffsetTimeScale[2]); + } + } + break; + } + } + this._present_straight *= num3; + this._hard_straight = this._hard_straight * num4 * this._hard_time_factor; + bool flag6 = this._bChange_to_fly || this._current_default_state == XBeHitState.Hit_Fly; + if (flag6) + { + this._height *= num2; + } + this._offset *= num; + this.Prepare(); + this._total_time = this._present_straight + this._land_time + this._bounce_time + this._hard_straight + this._getup_time; + this._pos.x = xentity.EngineObject.Position.x; + this._pos.y = xentity.EngineObject.Position.z; + Vector3 vector = xentity.EngineObject.Position + this._hit_direction * this._offset; + float num5 = 0f; + bool flag7 = XSingleton.singleton.TryGetTerrainY(vector, out num5); + if (flag7) + { + this._deltaH = xentity.EngineObject.Position.y - ((xentity.Fly != null) ? (num5 + xentity.Fly.CurrentHeight) : num5); + } + else + { + this._deltaH = 0f; + } + bool flag8 = this._deltaH < 0f; + if (flag8) + { + this._deltaH = 0f; + } + this._des.x = vector.x; + this._des.y = vector.z; + bool curveUsing = this._hit_data.CurveUsing; + if (curveUsing) + { + this._curve_height_time_scale = ((this._curve_h == null) ? 1f : (this._present_straight / this._curve_h.GetTime(this._curve_h.length - 1))); + this._curve_offset_time_scale = this._present_straight / this._curve_v.GetTime(this._curve_v.length - 1); + this._last_offset = 0f; + this._last_height = 0f; + } + else + { + this._factor = XSingleton.singleton.GetSmoothFactor((this._pos - this._des).magnitude, this._present_straight, 0.01f); + this._rticalV = ((this._bChange_to_fly || this._current_default_state == XBeHitState.Hit_Fly) ? (this._height * 4f / this._present_straight) : 0f); + this._gravity = this._rticalV / this._present_straight * 2f; + } + XSingleton.singleton.PlaySound(xentity, AudioChannel.Behit, XAudioStateDefine.XState_Audio_BeHit, false, (this._hit_from == null) ? null : new XAudioExParam(this._hit_from)); + this._elapsed = 0f; + this._phase = XBeHitPhase.Hit_Present; + this.TrytoTirggerQTE(false); + bool flag9 = xentity.Ator != null; + if (flag9) + { + xentity.Ator.speed = this._clip0Length / this._present_straight; + } + this._entity.Machine.TriggerPresent(); + } + + private void PlayHitFx(string fx, bool follow, bool sticky, ref XFx xfx) + { + bool mobShield = this._entity.MobShield; + if (!mobShield) + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + bool flag = !xentity.IsRole && XQualitySetting.GetQuality(EFun.ELowEffect); + if (!flag) + { + bool flag2 = xfx != null && xfx.FxName != fx; + if (flag2) + { + this.DestroyFx(ref xfx); + } + bool flag3 = XEntity.FilterFx(this._entity, XFxMgr.FilterFxDis0); + if (!flag3) + { + bool flag4 = Time.realtimeSinceStartup - XFxMgr.lastBehitFxTime < XFxMgr.minBehitFxTime || XFxMgr.currentBeHitFx >= XFxMgr.maxBehitFx; + if (!flag4) + { + bool flag5 = xfx == null; + if (flag5) + { + xfx = XSingleton.singleton.CreateFx(fx, null, true); + } + XFxMgr.lastBehitFxTime = Time.realtimeSinceStartup; + XFxMgr.currentBeHitFx++; + Vector3 offset = sticky ? Vector3.zero : (Vector3.up * (xentity.Height * 0.5f)); + xfx.Play(xentity.EngineObject, offset, Vector3.one, 1f, follow, sticky, "", 0f); + } + } + } + } + } + + private void DestroyFx(ref XFx xfx) + { + bool flag = xfx != null; + if (flag) + { + XFxMgr.currentBeHitFx--; + bool flag2 = XFxMgr.currentBeHitFx < 0; + if (flag2) + { + XFxMgr.currentBeHitFx = 0; + } + XSingleton.singleton.DestroyFx(xfx, true); + xfx = null; + } + } + + private void CalcDeltaPos(float deltaTime, float last_elapsed) + { + Vector2 vector = Vector2.zero; + bool curveUsing = this._hit_data.CurveUsing; + float delta_y; + if (curveUsing) + { + float time = this._elapsed / this._curve_offset_time_scale; + float time2 = this._elapsed / this._curve_height_time_scale; + float num = this._curve_v.Evaluate(time) * this._curve_offset_scale; + float num2 = (this._curve_h == null) ? 0f : (this._curve_h.Evaluate(time2) * this._curve_height_scale); + Vector3 vector2 = this._hit_direction * (num - this._last_offset); + vector.x = vector2.x; + vector.y = vector2.z; + delta_y = num2 - this._last_height; + this._last_height = num2; + this._last_offset = num; + } + else + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + float num3 = this._rticalV - this._gravity * last_elapsed; + float num4 = this._rticalV - this._gravity * this._elapsed; + delta_y = (num3 + num4) / 2f * deltaTime; + this._pos.x = xentity.EngineObject.Position.x; + this._pos.y = xentity.EngineObject.Position.z; + vector = (this._des - this._pos) * Mathf.Min(1f, this._factor * deltaTime); + } + this._delta_x = vector.x; + this._delta_y = delta_y; + this._delta_z = vector.y; + } + + public KKSG.XQTEState GetQTESpecificPhase() + { + KKSG.XQTEState result = KKSG.XQTEState.QTE_None; + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + switch (this._phase) + { + case XBeHitPhase.Hit_Present: + switch (this._current_default_state) + { + case XBeHitState.Hit_Back: + result = ((this._bChange_to_fly && xentity.BeHit.HasFlyPresent) ? KKSG.XQTEState.QTE_HitFlyPresent : KKSG.XQTEState.QTE_HitBackPresent); + break; + case XBeHitState.Hit_Fly: + result = (xentity.BeHit.HasFlyPresent ? KKSG.XQTEState.QTE_HitFlyPresent : KKSG.XQTEState.QTE_HitBackPresent); + break; + case XBeHitState.Hit_Roll: + result = ((this._bChange_to_fly && xentity.BeHit.HasFlyPresent) ? KKSG.XQTEState.QTE_HitFlyPresent : (xentity.BeHit.HasRollPresent ? KKSG.XQTEState.QTE_HitRollPresent : KKSG.XQTEState.QTE_HitBackPresent)); + break; + } + break; + case XBeHitPhase.Hit_Landing: + result = (this._bHit_Bounce ? KKSG.XQTEState.QTE_HitFlyBounce : KKSG.XQTEState.QTE_HitFlyLand); + break; + case XBeHitPhase.Hit_Hard: + switch (this._current_default_state) + { + case XBeHitState.Hit_Back: + result = ((this._bChange_to_fly && xentity.BeHit.HasFlyPresent) ? KKSG.XQTEState.QTE_HitFlyStraight : KKSG.XQTEState.QTE_HitBackStraight); + break; + case XBeHitState.Hit_Fly: + result = (xentity.BeHit.HasFlyPresent ? KKSG.XQTEState.QTE_HitFlyStraight : KKSG.XQTEState.QTE_HitBackStraight); + break; + case XBeHitState.Hit_Roll: + result = ((this._bChange_to_fly && xentity.BeHit.HasFlyPresent) ? KKSG.XQTEState.QTE_HitFlyStraight : (xentity.BeHit.HasRollPresent ? KKSG.XQTEState.QTE_HitRollStraight : KKSG.XQTEState.QTE_HitBackStraight)); + break; + } + break; + case XBeHitPhase.Hit_GetUp: + switch (this._current_default_state) + { + case XBeHitState.Hit_Back: + result = ((this._bChange_to_fly && xentity.BeHit.HasFlyPresent) ? KKSG.XQTEState.QTE_HitFlyGetUp : KKSG.XQTEState.QTE_HitBackGetUp); + break; + case XBeHitState.Hit_Fly: + result = (xentity.BeHit.HasFlyPresent ? KKSG.XQTEState.QTE_HitFlyGetUp : KKSG.XQTEState.QTE_HitBackGetUp); + break; + case XBeHitState.Hit_Roll: + result = ((this._bChange_to_fly && xentity.BeHit.HasFlyPresent) ? KKSG.XQTEState.QTE_HitFlyGetUp : (xentity.BeHit.HasRollPresent ? KKSG.XQTEState.QTE_HitRollGetUp : KKSG.XQTEState.QTE_HitBackGetUp)); + break; + } + break; + } + return result; + } + + private void TrytoTirggerQTE(bool bEnd = false) + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + bool flag = !xentity.Destroying && xentity.QTE != null; + if (flag) + { + KKSG.XQTEState xqtestate = KKSG.XQTEState.QTE_None; + bool flag2 = !bEnd; + if (flag2) + { + xqtestate = this.GetQTESpecificPhase(); + bool flag3 = this._last_set_qte > KKSG.XQTEState.QTE_None; + if (flag3) + { + XSkillQTEEventArgs @event = XEventPool.GetEvent(); + @event.Firer = xentity; + @event.On = false; + @event.State = (uint)XFastEnumIntEqualityComparer.ToInt(this._last_set_qte); + XSingleton.singleton.FireEvent(@event); + } + this._last_set_qte = xqtestate; + } + else + { + this._last_set_qte = KKSG.XQTEState.QTE_None; + } + XSkillQTEEventArgs event2 = XEventPool.GetEvent(); + event2.Firer = xentity; + event2.On = !bEnd; + event2.State = (uint)XFastEnumIntEqualityComparer.ToInt(xqtestate); + XSingleton.singleton.FireEvent(event2); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitComponent.cs.meta new file mode 100644 index 00000000..0c8c2e43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc2a9d4766bab4f4fa1c4f44f5da2700 +timeCreated: 1611404550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitEventArgs.cs new file mode 100644 index 00000000..f922183f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitEventArgs.cs @@ -0,0 +1,35 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBeHitEventArgs : XActionArgs + { + public XHitData HitData { get; set; } + + public Vector3 HitDirection = Vector3.forward; + + public bool ForceToFlyHit = false; + + public float Paralyze = 1f; + + public XEntity HitFrom = null; + + public XBeHitEventArgs() + { + this._eDefine = XEventDefine.XEvent_BeHit; + } + + public override void Recycle() + { + this.HitData = null; + this.HitDirection = Vector3.forward; + this.ForceToFlyHit = false; + this.Paralyze = 1f; + this.HitFrom = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitEventArgs.cs.meta new file mode 100644 index 00000000..5b27776f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XBeHitEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ffe45036c5ab5b4db40a90b75c418f5 +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeComponent.cs new file mode 100644 index 00000000..c090c0cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeComponent.cs @@ -0,0 +1,422 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XChargeComponent : XActionStateComponent + { + public override uint ID + { + get + { + return XChargeComponent.uuID; + } + } + + public override float Speed + { + get + { + return this._step_speed; + } + } + + public override bool IsUsingCurve + { + get + { + return !base.IsFinished && this._using_curve; + } + } + + public override bool ShouldBePresent + { + get + { + return true; + } + } + + public override string PresentCommand + { + get + { + bool flag = this._entity.Skill.IsCasting() && this._entity.Skill.CurrentSkill.MainCore.Soul.Logical.Association && this._entity.Skill.CurrentSkill.MainCore.Soul.Logical.MoveType; + string result; + if (flag) + { + result = "ToMove"; + } + else + { + result = "ToStand"; + } + return result; + } + } + + public override string PresentName + { + get + { + bool flag = this._entity.Skill.IsCasting() && this._entity.Skill.CurrentSkill.MainCore.Soul.Logical.Association && this._entity.Skill.CurrentSkill.MainCore.Soul.Logical.MoveType; + string result; + if (flag) + { + result = "Move"; + } + else + { + result = "Stand"; + } + return result; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Charge_Move"); + + private float _time_scale = 1f; + + private bool _gravity_disabled = false; + + private bool _standon_atend = true; + + private float _timeElapsed = 0f; + + private float _timeSpan = 0f; + + private float _land_time = 0f; + + private float _height = 0f; + + private float _gravity = 0f; + + private float _rticalV = 0f; + + private float _rotation_speed = 0f; + + private float _step_speed = 0f; + + private float _offset = 0f; + + private float _distance = 0f; + + private float _velocity = 0f; + + private float _height_drop = 0f; + + private XEntity _aim_to_target = null; + + private Vector3 _begin_at = Vector3.zero; + + private Vector3 _step_dir = Vector3.zero; + + private Vector3 _curve_step_dir = Vector3.zero; + + private IXCurve _curve_forward = null; + + private IXCurve _curve_side = null; + + private IXCurve _curve_up = null; + + private bool _using_curve = false; + + private bool _using_up = false; + + private bool _control_towards = false; + + private float _last_offset_forward = 0f; + + private float _last_offset_side = 0f; + + private float _last_offset_up = 0f; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._selfState = XStateDefine.XState_Charge; + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Charge, new XComponent.XEventHandler(base.OnActionEvent)); + } + + public override void OnRejected(XStateDefine current) + { + } + + protected override void ActionUpdate(float deltaTime) + { + bool flag = XSingleton.singleton.IsLess(this._timeElapsed, this._timeSpan); + if (flag) + { + Vector3 vector = Vector3.zero; + float num = 0f; + this.Calibration(); + bool using_curve = this._using_curve; + if (using_curve) + { + this.GetCurveMove(ref vector, ref num, deltaTime); + bool flag2 = this._control_towards && this._entity.IsPlayer && XSingleton.singleton.Feeding; + if (flag2) + { + vector += this._step_dir * (this._velocity * deltaTime); + } + } + else + { + this.GetNormalMove(ref vector, ref num, deltaTime); + } + bool flag3 = this._timeElapsed > this._timeSpan; + if (flag3) + { + this._timeElapsed = this._timeSpan; + base.Finish(); + } + num -= ((this._land_time > 0f) ? (deltaTime * (this._height_drop / this._land_time)) : this._height_drop); + bool flag4 = this._using_up && this._timeElapsed <= this._land_time; + if (flag4) + { + this._gravity_disabled = true; + this._entity.DisableGravity(); + } + else + { + this._gravity_disabled = false; + } + bool flag5 = this._land_time == 0f && this._entity.Fly != null; + if (flag5) + { + this._height_drop = 0f; + } + bool flag6 = this._entity.Skill.IsCasting() && this._entity.Skill.CurrentSkill.MainCore.Soul.MultipleAttackSupported; + if (flag6) + { + this.CalibrateByMultipleDirection(ref vector, this._entity.Skill.CurrentSkill.MainCore); + } + bool flag7 = this._entity.Buffs != null && this._entity.Buffs.IsBuffStateOn(XBuffType.XBuffType_LockFoot); + if (flag7) + { + vector = Vector3.zero; + } + bool flag8 = this._distance - 0.5f < vector.magnitude; + if (flag8) + { + vector.Set(0f, vector.y, 0f); + } + bool isDummy = this._entity.IsDummy; + if (isDummy) + { + vector.Set(0f, vector.y, 0f); + } + this._entity.ApplyMove(vector.x, num, vector.z); + } + else + { + bool gravity_disabled = this._gravity_disabled; + if (gravity_disabled) + { + this._entity.DisableGravity(); + } + } + } + + protected override void Cancel(XStateDefine next) + { + this._timeElapsed = 0f; + this._rticalV = 0f; + this._gravity = 0f; + this._step_speed = 0f; + this._curve_forward = null; + this._curve_side = null; + this._using_curve = false; + bool gravity_disabled = this._gravity_disabled; + if (gravity_disabled) + { + this._entity.DisableGravity(); + } + } + + protected override bool OnGetEvent(XChargeEventArgs e, XStateDefine last) + { + this._gravity_disabled = false; + this._using_curve = e.Data.Using_Curve; + this._using_up = e.Data.Using_Up; + this._control_towards = e.Data.Control_Towards; + this._land_time = 0f; + this._time_scale = e.TimeScale; + this._aim_to_target = e.AimedTarget; + this._rotation_speed = (e.Data.AimTarget ? 0f : e.Data.Rotation_Speed); + bool using_curve = this._using_curve; + if (using_curve) + { + IXCurve curve = XSingleton.singleton.GetCurve(e.Data.Curve_Forward); + this._curve_forward = curve; + this._curve_side = XSingleton.singleton.GetCurve(e.Data.Curve_Side); + this._timeSpan = this._curve_forward.GetTime(this._curve_forward.length - 1) * this._time_scale; + bool using_up = this._using_up; + if (using_up) + { + IXCurve curve2 = XSingleton.singleton.GetCurve(e.Data.Curve_Up); + this._curve_up = curve2; + this._land_time = curve2.GetLandValue() * this._time_scale; + bool flag = this._land_time > 0f; + if (flag) + { + this._gravity_disabled = true; + this._entity.DisableGravity(); + } + } + this._offset = (this._curve_forward.GetValue(this._curve_forward.length - 1) - this._curve_forward.GetValue(0)) * this._entity.Scale; + this._velocity = e.Data.Velocity; + } + else + { + this._timeSpan = e.TimeSpan * this._time_scale; + this._offset = e.Data.Offset; + this._velocity = 0f; + } + this._begin_at = this._entity.MoveObj.Position; + this._standon_atend = e.Data.StandOnAtEnd; + this.Calibration(); + this.HeightDrop(); + this._height = e.Height * this._entity.Scale; + this._timeElapsed = e.TimeGone * this._time_scale; + return true; + } + + protected override void Begin() + { + bool using_curve = this._using_curve; + if (using_curve) + { + this._last_offset_forward = 0f; + this._last_offset_side = 0f; + this._last_offset_up = 0f; + } + else + { + this._step_speed = this._offset / this._timeSpan; + this._rticalV = this._height * 4f / this._timeSpan; + this._gravity = this._rticalV / this._timeSpan * 2f; + } + } + + private void Calibration() + { + bool flag = XEntity.ValideEntity(this._aim_to_target); + if (flag) + { + Vector3 vector = this._aim_to_target.MoveObj.Position - this._entity.MoveObj.Position; + this._distance = vector.magnitude; + this._entity.Net.ReportRotateAction(vector.normalized, this._entity.Attributes.RotateSpeed, this._entity.Skill.IsCasting() ? this._entity.Skill.CurrentSkill.Token : 0L); + } + else + { + this._distance = float.PositiveInfinity; + this._aim_to_target = null; + } + this._step_dir = (this._entity.Skill.IsCasting() ? (this._control_towards ? this.GetControlTowards() : this._entity.Skill.CurrentSkill.SkillTowardsTo) : this._entity.Rotate.GetMeaningfulFaceVector3()); + this._curve_step_dir = (this._entity.Skill.IsCasting() ? this._entity.Skill.CurrentSkill.SkillTowardsTo : this._entity.Rotate.GetMeaningfulFaceVector3()); + } + + private Vector3 GetControlTowards() + { + bool flag = this._entity.IsPlayer && XSingleton.singleton.Feeding; + Vector3 result; + if (flag) + { + result = XSingleton.singleton.Direction; + } + else + { + result = this._entity.Skill.CurrentSkill.SkillTowardsTo; + } + return result; + } + + private void HeightDrop() + { + bool standon_atend = this._standon_atend; + if (standon_atend) + { + Vector3 pos = this._begin_at + this._offset * this._step_dir; + float num = 0f; + bool flag = XSingleton.singleton.TryGetTerrainY(pos, out num); + if (flag) + { + this._height_drop = ((this._entity.Fly != null) ? 0f : (this._entity.MoveObj.Position.y - num)); + bool flag2 = this._height_drop < 0f; + if (flag2) + { + this._height_drop = 0f; + } + } + else + { + this._height_drop = 0f; + } + } + else + { + this._height_drop = 0f; + } + } + + private void GetNormalMove(ref Vector3 delta, ref float h, float deltaTime) + { + float num = this._rticalV - this._gravity * this._timeElapsed; + this._timeElapsed += deltaTime; + float num2 = this._rticalV - this._gravity * this._timeElapsed; + delta = this._step_speed * deltaTime * this._step_dir; + h = (num + num2) / 2f * deltaTime; + bool flag = this._rotation_speed != 0f && !XSingleton.singleton.SyncMode; + if (flag) + { + this._entity.MoveObj.Forward = XSingleton.singleton.HorizontalRotateVetor3(this._entity.MoveObj.Forward, this._rotation_speed * deltaTime, true); + bool flag2 = this._entity.Rotate != null; + if (flag2) + { + this._entity.Rotate.Cancel(); + } + } + } + + private void GetCurveMove(ref Vector3 delta, ref float h, float deltaTime) + { + this._timeElapsed += deltaTime; + float num = this._curve_forward.Evaluate(this._timeElapsed / this._time_scale) * this._entity.Scale; + float num2 = num - this._last_offset_forward; + this._last_offset_forward = num; + float num3 = this._curve_side.Evaluate(this._timeElapsed / this._time_scale) * this._entity.Scale; + float num4 = num3 - this._last_offset_side; + this._last_offset_side = num3; + bool using_up = this._using_up; + if (using_up) + { + float num5 = this._curve_up.Evaluate(this._timeElapsed / this._time_scale) * this._entity.Scale; + h = num5 - this._last_offset_up; + this._last_offset_up = num5; + } + Vector3 vector = num2 * this._curve_step_dir; + Vector3 vector2 = XSingleton.singleton.Horizontal(Vector3.Cross(Vector3.up, this._entity.MoveObj.Forward)); + Vector3 vector3 = num4 * vector2; + delta = vector + vector3; + delta.y = 0f; + } + + private void CalibrateByMultipleDirection(ref Vector3 delta, XSkillCore core) + { + float multipleDirectionFactor = core.GetMultipleDirectionFactor(); + bool flag = multipleDirectionFactor > 0.25f && multipleDirectionFactor < 0.75f; + if (flag) + { + float num = 1f - core.Soul.BackTowardsDecline; + float num2 = (multipleDirectionFactor - 0.25f) / 0.5f * 3.14159274f; + delta = delta.magnitude * (1f - Mathf.Sin(num2) * num) * delta.normalized; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeComponent.cs.meta new file mode 100644 index 00000000..5f4acd25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a78700d4be304f4993825bb0aa7d79a +timeCreated: 1611403791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs new file mode 100644 index 00000000..77860e1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs @@ -0,0 +1,39 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChargeEventArgs : XActionArgs + { + public XChargeData Data { get; set; } + + public float Height { get; set; } + + public float TimeSpan { get; set; } + + public XEntity AimedTarget = null; + + public float TimeScale = 1f; + + public float TimeGone; + + public XChargeEventArgs() + { + this._eDefine = XEventDefine.XEvent_Charge; + this.Data = null; + this.TimeGone = 0f; + } + + public override void Recycle() + { + this.Data = null; + this.AimedTarget = null; + this.Height = 0f; + this.TimeSpan = 0f; + this.TimeScale = 1f; + this.TimeGone = 0f; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs.meta new file mode 100644 index 00000000..c341e1a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XChargeEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62d3b787308582e46aa3820f86321091 +timeCreated: 1611403842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XDeathComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XDeathComponent.cs new file mode 100644 index 00000000..6ef5853f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XDeathComponent.cs @@ -0,0 +1,335 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XDeathComponent : XActionStateComponent + { + public override uint ID + { + get + { + return XDeathComponent.uuID; + } + } + + public float ClipLen + { + get + { + return this._clip_len; + } + set + { + this._clip_len = value; + } + } + + public IXCurve CurveH + { + get + { + return this._curve_h; + } + } + + public IXCurve CurveV + { + get + { + return this._curve_v; + } + } + + public float LandTime + { + get + { + return this._land_time; + } + } + + public float LandMax + { + get + { + return this._land_max; + } + } + + public override bool IsUsingCurve + { + get + { + return !base.IsFinished; + } + } + + public override string PresentCommand + { + get + { + return "ToDeath"; + } + } + + public override string PresentName + { + get + { + return "Death"; + } + } + + public override bool ShouldBePresent + { + get + { + return !this._presented; + } + } + + public override int CollisionLayer + { + get + { + return LayerMask.NameToLayer("NoneEntity"); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Death"); + + private bool _presented = false; + + private float _elapsed = 0f; + + private float _clip_len = 0f; + + private float _last_offset = 0f; + + private float _last_height = 0f; + + private float _deltaH = 0f; + + private float _land_time = 0f; + + private float _land_max = 0f; + + private Vector3 _step_dir = Vector3.forward; + + private IXCurve _curve_h = null; + + private IXCurve _curve_v = null; + + private XEntity _killer = null; + + private XFx _death_fx = null; + + private uint _fade_out_token = 0u; + + private uint _destory_token = 0u; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._selfState = XStateDefine.XState_Death; + bool isNotEmptyObject = this._entity.EngineObject.IsNotEmptyObject; + if (isNotEmptyObject) + { + bool flag = string.IsNullOrEmpty(this._entity.Present.PresentLib.Death); + if (flag) + { + this._clip_len = 0f; + } + else + { + this._clip_len = 1f; + bool flag2 = this._entity.Present.PresentLib.DeathCurve != null && this._entity.Present.PresentLib.DeathCurve.Length != 0; + if (flag2) + { + IXCurve curve = XSingleton.singleton.GetCurve(this._entity.Present.CurvePrefix + this._entity.Present.PresentLib.DeathCurve[0]); + IXCurve curve2 = XSingleton.singleton.GetCurve(this._entity.Present.CurvePrefix + this._entity.Present.PresentLib.DeathCurve[1]); + this._curve_h = curve; + this._curve_v = curve2; + this._land_time = curve.GetLandValue(); + this._land_max = curve.GetMaxValue(); + } + } + } + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this._clip_len = 0f; + this._curve_h = null; + this._curve_v = null; + this._land_time = 0f; + this._land_max = 0f; + XSingleton.singleton.KillTimer(this._fade_out_token); + XSingleton.singleton.KillTimer(this._destory_token); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(base.OnActionEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnRevived, new XComponent.XEventHandler(this.OnRevive)); + } + + public override void OnRejected(XStateDefine current) + { + } + + protected override void Cancel(XStateDefine next) + { + bool flag = this._death_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._death_fx, true); + } + this._death_fx = null; + this._killer = null; + XSingleton.singleton.KillTimer(this._fade_out_token); + XSingleton.singleton.KillTimer(this._destory_token); + } + + private bool OnRevive(XEventArgs e) + { + bool flag = this._entity.Machine.Current == XStateDefine.XState_Death; + if (flag) + { + this._entity.Machine.ForceToDefaultState(true); + } + this._presented = false; + return true; + } + + protected override void ActionUpdate(float deltaTime) + { + bool presented = this._presented; + if (presented) + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + this._elapsed += deltaTime; + bool flag = xentity.Death.CurveV == null || xentity.Death.CurveH == null; + if (!flag) + { + float num = xentity.Death.CurveV.Evaluate(this._elapsed) * xentity.Scale; + float num2 = xentity.Death.CurveH.Evaluate(this._elapsed) * xentity.Scale; + Vector3 vector = this._step_dir * (num - this._last_offset); + float x = vector.x; + float num3 = num2 - this._last_height; + float z = vector.z; + this._last_height = num2; + this._last_offset = num; + float num4 = XSingleton.singleton.IsLess(this._elapsed, xentity.Death.LandTime) ? (-(this._deltaH / xentity.Death.LandTime) * deltaTime) : (-Mathf.Sqrt(x * x + z * z)); + bool flag2 = this._elapsed < xentity.Death.LandTime; + if (flag2) + { + this._entity.DisableGravity(); + } + this._entity.ApplyMove(x, num3 + num4, z); + } + } + } + + public override string TriggerAnim(string pre) + { + this._presented = true; + this._entity.Ator.CrossFade(this.PresentName, 0f, 0, 0f); + return this.PresentName; + } + + protected override bool OnGetEvent(XRealDeadEventArgs e, XStateDefine last) + { + this._killer = e.Killer; + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + bool flag = xentity.Death.ClipLen > 0f; + if (flag) + { + xentity.Death.ClipLen = xentity.OverrideAnimClipGetLength("Death", xentity.Present.ActionPrefix + xentity.Present.PresentLib.Death, false); + } + return true; + } + + protected override void Begin() + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + this._entity.Net.KillIdle(); + bool flag = !this._entity.IsRole && xentity.Death.ClipLen > 0f; + if (flag) + { + this._fade_out_token = XSingleton.singleton.SetTimer(xentity.Death.ClipLen, new XTimerMgr.ElapsedEventHandler(this.OnFadeOut), null); + } + bool flag2 = !this._entity.IsPuppet && !XQualitySetting.GetQuality(EFun.ELowEffect); + if (flag2) + { + bool flag3 = !XEntity.FilterFx(this._entity, XFxMgr.FilterFxDis0); + if (flag3) + { + this._death_fx = XSingleton.singleton.CreateFx(string.IsNullOrEmpty(xentity.Present.PresentLib.DeathFx) ? "Effects/FX_Particle/NPC/xiaobing_die" : xentity.Present.PresentLib.DeathFx, null, true); + this._death_fx.Play(this._entity.EngineObject, Vector3.zero, Vector3.one, 1f, true, false, "", 0f); + } + } + XSingleton.singleton.PlaySound(xentity, AudioChannel.Motion, XAudioStateDefine.XState_Audio_Death); + bool flag4 = xentity.Death.CurveV != null; + if (flag4) + { + this._step_dir = (XEntity.ValideEntity(this._killer) ? ((xentity.Death.LandMax > 0f) ? XSingleton.singleton.Horizontal(this._entity.EngineObject.Position - this._killer.EngineObject.Position) : (-this._entity.EngineObject.Forward)) : ((xentity.Death.LandMax > 0f) ? XSingleton.singleton.Horizontal(this._entity.EngineObject.Position - XSingleton.singleton.Player.EngineObject.Position) : (-this._entity.EngineObject.Forward))); + Vector3 pos = this._entity.EngineObject.Position + xentity.Death.CurveV.Evaluate(xentity.Death.LandTime) * this._entity.Scale * this._step_dir; + float num = 0f; + bool flag5 = XSingleton.singleton.TryGetTerrainY(pos, out num); + if (flag5) + { + this._deltaH = this._entity.EngineObject.Position.y - num; + } + else + { + this._deltaH = 0f; + } + bool flag6 = this._deltaH < 0f; + if (flag6) + { + this._deltaH = 0f; + } + } + this._last_offset = 0f; + this._last_height = 0f; + this._elapsed = 0f; + this._entity.Dying(); + bool flag7 = !this._entity.IsRole; + if (flag7) + { + bool flag8 = xentity.Death.ClipLen > 0f; + if (flag8) + { + this._destory_token = XSingleton.singleton.SetTimer(xentity.Death.ClipLen + 1f, new XTimerMgr.ElapsedEventHandler(this.OnDestroy), null); + } + else + { + this.OnDestroy(null); + } + } + } + + private void OnFadeOut(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = 1f; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + } + + private void OnDestroy(object o) + { + bool flag = this._death_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._death_fx, true); + } + this._death_fx = null; + this._entity.Died(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XDeathComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XDeathComponent.cs.meta new file mode 100644 index 00000000..26d7ed80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XDeathComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 271830e3a36d3d5479d15a99aa3708c0 +timeCreated: 1611403470 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallComponent.cs new file mode 100644 index 00000000..18c13f3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallComponent.cs @@ -0,0 +1,109 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XFallComponent : XActionStateComponent + { + public override uint ID + { + get + { + return XFallComponent.uuID; + } + } + + public override bool IsUsingCurve + { + get + { + return false; + } + } + + public override bool ShouldBePresent + { + get + { + bool isDead = this._entity.IsDead; + return !isDead && base.ShouldBePresent; + } + } + + public override string PresentCommand + { + get + { + return "ToFall"; + } + } + + public override string PresentName + { + get + { + return "Fall"; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Basic_Fall"); + + private float _hvelocity = 0f; + + private float _gravity = -9.8f; + + private float _elapsed = 0f; + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Fall, new XComponent.XEventHandler(base.OnActionEvent)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._selfState = XStateDefine.XState_Fall; + } + + protected override void Cancel(XStateDefine next) + { + } + + protected override bool OnGetEvent(XFallEventArgs e, XStateDefine last) + { + this._hvelocity = e.HVelocity; + this._gravity = e.Gravity; + return true; + } + + protected override void Begin() + { + this._elapsed = 0f; + } + + protected override void ActionUpdate(float deltaTime) + { + bool flag = !this._entity.StandOn; + if (flag) + { + Vector3 vector = Vector3.zero; + this._elapsed += deltaTime; + this._hvelocity += (0f - this._hvelocity) * Mathf.Min(1f, deltaTime * 4f); + float num = this._gravity * this._elapsed; + vector.y += num * deltaTime; + Vector3 vector2 = XSingleton.singleton.Horizontal(this._entity.EngineObject.Forward); + vector += deltaTime * this._hvelocity * vector2; + this._entity.ApplyMove(vector); + } + else + { + base.Finish(); + } + } + + public override void OnRejected(XStateDefine current) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallComponent.cs.meta new file mode 100644 index 00000000..9de4ec2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5daac6f7d31161d42972f5b51a0d0fb5 +timeCreated: 1611403807 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs new file mode 100644 index 00000000..efe6d354 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XFallEventArgs : XActionArgs + { + public float HVelocity { get; set; } + + public float Gravity { get; set; } + + public XFallEventArgs() + { + this._eDefine = XEventDefine.XEvent_Fall; + } + + public override void Recycle() + { + this.HVelocity = 0f; + this.Gravity = 0f; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs.meta new file mode 100644 index 00000000..fc2c7cc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFallEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4adc2287e8a9c124aaefe6ebcdba6bbd +timeCreated: 1611403666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeComponent.cs new file mode 100644 index 00000000..3a04200b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeComponent.cs @@ -0,0 +1,229 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XFreezeComponent : XActionStateComponent + { + public override uint ID + { + get + { + return XFreezeComponent.uuID; + } + } + + public override bool IsUsingCurve + { + get + { + return false; + } + } + + public override string PresentCommand + { + get + { + return "ToFreezed"; + } + } + + public override string PresentName + { + get + { + return "Freezed"; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Freezing_Presentation"); + + private float _freeze_time = 0f; + + private bool _present = false; + + private float _elapsed = 0f; + + private float _height_drop = 0f; + + private XFx _hit_fx = null; + + private XFx _hit_freeze_fx = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._selfState = XStateDefine.XState_Freeze; + this._freeze_time = 0f; + this._present = false; + this._elapsed = 0f; + bool isNotEmptyObject = this._entity.EngineObject.IsNotEmptyObject; + if (isNotEmptyObject) + { + this._entity.OverrideAnimClip("Freezed", this._entity.Present.PresentLib.Freeze, true, false); + } + } + + public override void OnDetachFromHost() + { + this.DestroyFx(ref this._hit_fx); + this.DestroyFx(ref this._hit_freeze_fx); + base.OnDetachFromHost(); + } + + public override string TriggerAnim(string pre) + { + bool flag = this._entity.Ator != null; + if (flag) + { + bool present = this._present; + if (present) + { + this._entity.Ator.speed = 1f; + this._entity.Ator.SetTrigger(this.PresentCommand); + pre = this.PresentCommand; + } + else + { + this._entity.Ator.speed = 0f; + } + } + return pre; + } + + protected override void Cancel(XStateDefine next) + { + bool flag = this._entity.Ator != null; + if (flag) + { + this._entity.Ator.speed = 1f; + } + this.DestroyFx(ref this._hit_fx); + this.DestroyFx(ref this._hit_freeze_fx); + this.TrytoTirggerQTE(true); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Freeze, new XComponent.XEventHandler(base.OnActionEvent)); + } + + protected override bool OnGetEvent(XFreezeEventArgs e, XStateDefine last) + { + this._freeze_time = ((e.HitData != null) ? e.HitData.FreezeDuration : e.Duration); + this._present = ((e.HitData != null) ? e.HitData.FreezePresent : e.Present); + bool flag = e.HitData != null; + if (flag) + { + bool flag2 = !string.IsNullOrEmpty(e.HitData.Fx); + if (flag2) + { + this.PlayHitFx(e.HitData.Fx, e.HitData.Fx_Follow, ref this._hit_fx); + } + bool flag3 = this._present && !string.IsNullOrEmpty(this._entity.Present.PresentLib.FreezeFx); + if (flag3) + { + this.PlayHitFx(this._entity.Present.PresentLib.FreezeFx, true, ref this._hit_freeze_fx); + } + } + XEndureEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._entity; + @event.Dir = e.Dir; + XSingleton.singleton.FireEvent(@event); + return true; + } + + protected override void Begin() + { + this._elapsed = 0f; + this._height_drop = this._entity.EngineObject.Position.y - ((this._entity.Fly != null) ? (XSingleton.singleton.TerrainY(this._entity.EngineObject.Position) + this._entity.Fly.CurrentHeight) : XSingleton.singleton.TerrainY(this._entity.EngineObject.Position)); + bool flag = this._height_drop < 0f; + if (flag) + { + this._height_drop = 0f; + } + this.TrytoTirggerQTE(false); + bool flag2 = !XSingleton.singleton.SyncMode && this._freeze_time <= 0f; + if (flag2) + { + base.Finish(); + } + } + + public override void OnRejected(XStateDefine current) + { + } + + protected override void ActionUpdate(float deltaTime) + { + bool flag = base.IsFinished || XSingleton.singleton.SyncMode; + if (!flag) + { + this._elapsed += deltaTime; + float num = deltaTime * (this._height_drop / this._freeze_time); + this._entity.ApplyMove(0f, -num, 0f); + bool flag2 = this._elapsed > this._freeze_time; + if (flag2) + { + base.Finish(); + } + bool flag3 = this._entity.Ator != null && !this._present; + if (flag3) + { + this._entity.Ator.speed = 0f; + } + } + } + + private void TrytoTirggerQTE(bool bEnd = false) + { + bool flag = !this._entity.Destroying && this._entity.QTE != null; + if (flag) + { + KKSG.XQTEState en = KKSG.XQTEState.QTE_None; + bool flag2 = !bEnd; + if (flag2) + { + en = KKSG.XQTEState.QTE_HitFreeze; + } + XSkillQTEEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._entity; + @event.On = !bEnd; + @event.State = (uint)XFastEnumIntEqualityComparer.ToInt(en); + XSingleton.singleton.FireEvent(@event); + } + } + + private void PlayHitFx(string fx, bool follow, ref XFx xfx) + { + bool flag = xfx != null && xfx.FxName != fx; + if (flag) + { + this.DestroyFx(ref xfx); + } + bool flag2 = XEntity.FilterFx(this._entity, XFxMgr.FilterFxDis1); + if (!flag2) + { + bool flag3 = xfx == null; + if (flag3) + { + xfx = XSingleton.singleton.CreateFx(fx, null, true); + } + xfx.Play(this._entity.EngineObject, Vector3.zero, ((this._entity.Radius > 0.5f) ? (this._entity.Radius * 2f) : 1f) * Vector3.one, 1f, follow, false, "", this._entity.Height * 0.5f); + } + } + + private void DestroyFx(ref XFx xfx) + { + bool flag = xfx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(xfx, true); + xfx = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeComponent.cs.meta new file mode 100644 index 00000000..13581314 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fdda2cef18bc8e849a60b68929791560 +timeCreated: 1611404938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeEventArgs.cs new file mode 100644 index 00000000..c9411faa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeEventArgs.cs @@ -0,0 +1,32 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFreezeEventArgs : XActionArgs + { + public XHitData HitData { get; set; } + + public float Duration = 0f; + + public bool Present = false; + + public Vector3 Dir = Vector3.zero; + + public XFreezeEventArgs() + { + this._eDefine = XEventDefine.XEvent_Freeze; + } + + public override void Recycle() + { + this.HitData = null; + this.Duration = 0f; + this.Dir = Vector3.zero; + this.Present = false; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeEventArgs.cs.meta new file mode 100644 index 00000000..230c76d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XFreezeEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa19b044a26615a4db23e3ab2c562807 +timeCreated: 1611404301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleComponent.cs new file mode 100644 index 00000000..6835cb96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleComponent.cs @@ -0,0 +1,122 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XIdleComponent : XActionStateComponent + { + public override uint ID + { + get + { + return XIdleComponent.uuID; + } + } + + public override bool SyncPredicted + { + get + { + bool isViewGridScene = XSingleton.singleton.IsViewGridScene; + bool result; + if (isViewGridScene) + { + result = true; + } + else + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + bool flag = this._entity.Skill != null && this._entity.Skill.IsCasting(); + result = (!flag && this._entity.IsPlayer && !this._entity.IsPassive); + } + else + { + result = true; + } + } + return result; + } + } + + public override bool IsUsingCurve + { + get + { + return false; + } + } + + public override string PresentCommand + { + get + { + return "ToStand"; + } + } + + public override string PresentName + { + get + { + return "Stand"; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Basic_Idle"); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._selfState = XStateDefine.XState_Idle; + this.PrepareAnimations(); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Idle, new XComponent.XEventHandler(base.OnActionEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnMounted, new XComponent.XEventHandler(base.OnMountEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnUnMounted, new XComponent.XEventHandler(base.OnMountEvent)); + } + + public override void OnRejected(XStateDefine current) + { + } + + protected override bool OnGetEvent(XIdleEventArgs e, XStateDefine last) + { + return true; + } + + protected override void OnMount(XMount mount) + { + bool flag = mount != null; + if (flag) + { + this._entity.OverrideAnimClip("Idle", this._entity.Present.PresentLib.AnimLocation.Replace('/', '_') + mount.Present.PresentLib.Idle + (this._entity.IsCopilotMounted ? "_follow" : ""), true, false); + } + else + { + this.PrepareAnimations(); + } + } + + private void PrepareAnimations() + { + bool isNotEmptyObject = this._entity.EngineObject.IsNotEmptyObject; + if (isNotEmptyObject) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.World && !string.IsNullOrEmpty(this._entity.Present.PresentLib.AttackIdle); + if (flag) + { + this._entity.OverrideAnimClip("Idle", this._entity.Present.PresentLib.AttackIdle, true, false); + } + else + { + this._entity.OverrideAnimClip("Idle", this._entity.Present.PresentLib.Idle, true, false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleComponent.cs.meta new file mode 100644 index 00000000..39855f15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6af983d36e7cacf438cab3a92767ab22 +timeCreated: 1611403890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleEventArgs.cs new file mode 100644 index 00000000..15e8a7e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XIdleEventArgs : XActionArgs + { + public XIdleEventArgs() + { + this._eDefine = XEventDefine.XEvent_Idle; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleEventArgs.cs.meta new file mode 100644 index 00000000..b4b4392b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XIdleEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c27eeb1eb3466f4ba01c6bf644b0f1a +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpComponent.cs new file mode 100644 index 00000000..3954c6ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpComponent.cs @@ -0,0 +1,130 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XJumpComponent : XActionStateComponent + { + public override uint ID + { + get + { + return XJumpComponent.uuID; + } + } + + public override bool IsUsingCurve + { + get + { + return false; + } + } + + public override string PresentCommand + { + get + { + return "ToJump"; + } + } + + public override string PresentName + { + get + { + return "Jump"; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Basic_Jump"); + + private bool _jumpState = false; + + private float _hvelocity = 0f; + + private float _jumpforce = 4f; + + private float _gravity = -9.8f; + + private float _jumptime = 0f; + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Jump, new XComponent.XEventHandler(base.OnActionEvent)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._selfState = XStateDefine.XState_Jump; + } + + protected override void Cancel(XStateDefine next) + { + this._jumpState = false; + this._jumptime = 0f; + } + + protected override bool OnGetEvent(XJumpEventArgs e, XStateDefine last) + { + this._hvelocity = e.Hvelocity; + this._jumpforce = e.Vvelocity; + this._gravity = e.Gravity; + return true; + } + + protected override void Begin() + { + this._jumpState = true; + this._jumptime = 0f; + } + + protected override void ActionUpdate(float deltaTime) + { + Vector3 vector = Vector3.zero; + this._jumpState = !this.CollisionOnTop(); + bool jumpState = this._jumpState; + if (jumpState) + { + this._jumptime += deltaTime; + float num = this._gravity * this._jumptime * this._jumptime / 2f; + num += this._jumpforce * this._jumptime; + bool flag = XSingleton.singleton.IsGreater(this._jumptime, this._jumpforce / -this._gravity); + if (flag) + { + this._jumpState = false; + this.SwithToFall(); + } + vector.y += num; + Vector3 vector2 = XSingleton.singleton.Horizontal(this._entity.EngineObject.Forward); + vector += deltaTime * this._hvelocity * vector2; + this._entity.ApplyMove(vector); + } + else + { + this.SwithToFall(); + } + } + + public override void OnRejected(XStateDefine current) + { + } + + private void SwithToFall() + { + XFallEventArgs @event = XEventPool.GetEvent(); + @event.HVelocity = this._hvelocity; + @event.Gravity = this._gravity; + @event.Firer = this._host; + XSingleton.singleton.FireEvent(@event); + base.Finish(); + } + + private bool CollisionOnTop() + { + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpComponent.cs.meta new file mode 100644 index 00000000..2300b872 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f5d799d46111904d8c180391ebcf46a +timeCreated: 1611403610 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpEventArgs.cs new file mode 100644 index 00000000..27996cb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpEventArgs.cs @@ -0,0 +1,27 @@ +using System; + +namespace XMainClient +{ + internal class XJumpEventArgs : XActionArgs + { + public float Gravity { get; set; } + + public float Hvelocity { get; set; } + + public float Vvelocity { get; set; } + + public XJumpEventArgs() + { + this._eDefine = XEventDefine.XEvent_Jump; + } + + public override void Recycle() + { + this.Gravity = 0f; + this.Hvelocity = 0f; + this.Vvelocity = 0f; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpEventArgs.cs.meta new file mode 100644 index 00000000..d8fcc5a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XJumpEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2de48c455c705c4b8f81299a4d16c4a +timeCreated: 1611404597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveComponent.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveComponent.cs new file mode 100644 index 00000000..37770981 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveComponent.cs @@ -0,0 +1,548 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XMoveComponent : XActionStateComponent + { + public override uint ID + { + get + { + return XMoveComponent.uuID; + } + } + + public override float Speed + { + get + { + return this._begin_inertia ? 0f : this._speed; + } + } + + public float AnimSpeed + { + get + { + return this._anim_speed; + } + set + { + this._anim_speed = value; + } + } + + public override bool IsUsingCurve + { + get + { + return false; + } + } + + public override bool SyncPredicted + { + get + { + return this._entity.IsClientPredicted || base.SyncPredicted; + } + } + + public override bool ShouldBePresent + { + get + { + return this._entity.Machine.Previous != XStateDefine.XState_Move; + } + } + + public override string PresentCommand + { + get + { + return "ToMove"; + } + } + + public override string PresentName + { + get + { + return "Move"; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Basic_Move"); + + private bool _begin_inertia = false; + + private bool _stoppage = true; + + private float _speed = 0f; + + private float _last_speed = 0f; + + private float _target_speed = 0f; + + private float _anim_speed = 0f; + + private float _stoppage_dir = 0f; + + private float _acceleration = 0f; + + private float _last_angular = 0f; + + private Vector3 _move_dir = Vector3.forward; + + private Vector3 _destination = Vector3.zero; + + private bool _inertia = false; + + private bool _overlapped = false; + + private uint _track_fx_1 = 0u; + + private uint _track_fx_2 = 0u; + + private XTimerMgr.ElapsedEventHandler _playTrackFxCb = null; + + public XMoveComponent() + { + this._playTrackFxCb = new XTimerMgr.ElapsedEventHandler(this.PlayTrackFx); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._selfState = XStateDefine.XState_Move; + this._speed = 0f; + this._last_speed = 0f; + this._acceleration = 0f; + this.PrepareAnimations(); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Move, new XComponent.XEventHandler(base.OnActionEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnMounted, new XComponent.XEventHandler(base.OnMountEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnUnMounted, new XComponent.XEventHandler(base.OnMountEvent)); + } + + protected override bool InnerPermitted(XStateDefine state) + { + bool flag = !this._entity.IsPlayer && this.SyncPredicted; + bool result; + if (flag) + { + result = (state != XStateDefine.XState_Idle || this._stoppage); + } + else + { + result = (base.IsFinished || base.InnerPermitted(state)); + } + return result; + } + + protected override void Cancel(XStateDefine next) + { + bool flag = next != XStateDefine.XState_Move; + if (flag) + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + xentity.Machine.SetAnimationSpeed(1f); + for (int i = 0; i < xentity.Affiliates.Count; i++) + { + bool flag2 = xentity.Affiliates[i].Ator != null; + if (flag2) + { + xentity.Affiliates[i].Ator.speed = xentity.Ator.speed; + } + } + bool flag3 = xentity.IsMounted && xentity.Mount.Ator != null; + if (flag3) + { + xentity.Mount.Ator.speed = xentity.Ator.speed; + } + this._speed = 0f; + this._last_speed = 0f; + this._acceleration = 0f; + bool flag4 = this._track_fx_1 > 0u; + if (flag4) + { + XSingleton.singleton.KillTimer(this._track_fx_1); + } + bool flag5 = this._track_fx_2 > 0u; + if (flag5) + { + XSingleton.singleton.KillTimer(this._track_fx_2); + } + this._track_fx_1 = 0u; + this._track_fx_2 = 0u; + this._anim_speed = 0f; + bool flag6 = !this._entity.IsPlayer && this.SyncPredicted; + if (flag6) + { + this._entity.Net.ReportRotateAction(XSingleton.singleton.FloatToAngle(this._stoppage_dir)); + } + } + } + + protected override void Cease() + { + this._begin_inertia = false; + } + + public override void OnRejected(XStateDefine current) + { + } + + public override string TriggerAnim(string pre) + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + bool flag = this._track_fx_1 == 0u; + if (flag) + { + this._track_fx_1 = XSingleton.singleton.SetTimer(0.144f, this._playTrackFxCb, null); + } + bool flag2 = this._track_fx_2 == 0u; + if (flag2) + { + this._track_fx_2 = XSingleton.singleton.SetTimer(0.426f, this._playTrackFxCb, this); + } + } + string text = (base.IsFinished && this._entity.IsPlayer) ? "ToStand" : this.PresentCommand; + bool flag3 = pre != text; + if (flag3) + { + bool flag4 = this._entity.Ator != null; + if (flag4) + { + this._entity.Ator.SetTrigger(text); + } + } + return text; + } + + protected override void ActionUpdate(float deltaTime) + { + this._last_speed = this._speed; + bool isFinished = base.IsFinished; + if (!isFinished) + { + bool flag = this._speed == 0f && this._target_speed == 0f; + if (flag) + { + base.Finish(); + } + else + { + this._speed += deltaTime * this._acceleration; + bool flag2 = (this._speed - this._target_speed) * this._acceleration > 0f; + if (flag2) + { + this._speed = this._target_speed; + this._acceleration = 0f; + } + bool begin_inertia = this._begin_inertia; + if (!begin_inertia) + { + Vector3 movement = this._move_dir * ((this._speed + this._last_speed) * 0.5f) * deltaTime; + bool flag3 = this._entity.Buffs != null && this._entity.Buffs.IsBuffStateOn(XBuffType.XBuffType_LockFoot); + if (flag3) + { + movement = Vector3.zero; + } + this.CheckMove(ref movement); + bool flag4 = this._entity.IsPlayer || this._entity.IsEnemy; + if (flag4) + { + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(this._entity); + bool flag5 = xsecurityStatistics != null; + if (flag5) + { + xsecurityStatistics.OnMove(movement.magnitude); + } + } + //c 移动 + this._entity.ApplyMove(movement); + } + } + this._anim_speed = this._speed; + } + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this._entity.Machine.Current != XStateDefine.XState_Move; + if (!flag) + { + XEntity xentity = this._entity.IsTransform ? this._entity.Transformer : this._entity; + bool flag2 = xentity.Ator == null; + if (!flag2) + { + bool flag3 = XSingleton.singleton.IsLess(this._anim_speed, this._entity.Attributes.WalkSpeed); + if (flag3) + { + xentity.Machine.SetAnimationSpeed(Mathf.Max(0.5f, this._anim_speed / this._entity.Attributes.WalkSpeed)); + } + else + { + bool flag4 = XSingleton.singleton.IsGreater(this._anim_speed, this._entity.Attributes.RunSpeed); + if (flag4) + { + xentity.Machine.SetAnimationSpeed(this._anim_speed / this._entity.Attributes.RunSpeed); + } + else + { + xentity.Machine.SetAnimationSpeed(1f); + } + } + float value = this._anim_speed / this._entity.Attributes.RunSpeed; + bool flag5 = xentity.IsMounted && xentity.Mount.Ator != null; + if (flag5) + { + bool hasTurnPresetation = xentity.Mount.HasTurnPresetation; + if (hasTurnPresetation) + { + float num = xentity.Rotate.Angular(); + this._last_angular += (num - this._last_angular) * Mathf.Min(1f, fDeltaT * (float)xentity.Mount.AngularSpeed); + } + else + { + this._last_angular = 0f; + } + xentity.Ator.SetFloat("MoveFactor", value); + xentity.Ator.SetFloat("AngleFactor", this._last_angular); + for (int i = 0; i < xentity.Affiliates.Count; i++) + { + bool flag6 = xentity.Affiliates[i].Ator != null; + if (flag6) + { + xentity.Affiliates[i].Ator.speed = xentity.Ator.speed; + xentity.Affiliates[i].Ator.SetFloat("MoveFactor", value); + xentity.Affiliates[i].Ator.SetFloat("AngleFactor", this._last_angular); + } + } + bool flag7 = xentity.IsMounted && xentity.Mount.Ator != null; + if (flag7) + { + xentity.Mount.Ator.speed = xentity.Ator.speed; + xentity.Mount.Ator.SetFloat("MoveFactor", value); + xentity.Mount.Ator.SetFloat("AngleFactor", this._last_angular); + } + } + else + { + this._last_angular = 0f; + xentity.Ator.SetFloat("MoveFactor", value); + xentity.Ator.SetFloat("AngleFactor", 0f); + for (int j = 0; j < xentity.Affiliates.Count; j++) + { + bool flag8 = xentity.Affiliates[j].Ator != null; + if (flag8) + { + xentity.Affiliates[j].Ator.speed = xentity.Ator.speed; + xentity.Affiliates[j].Ator.SetFloat("MoveFactor", value); + xentity.Affiliates[j].Ator.SetFloat("AngleFactor", 0f); + } + } + } + } + } + } + + protected override bool OnGetEvent(XMoveEventArgs e, XStateDefine last) + { + this._stoppage = e.Stoppage; + this._stoppage_dir = e.StopTowards; + this._inertia = e.Inertia; + this._target_speed = e.Speed; + this._destination = e.Destination; + this._move_dir = this._destination - this._entity.MoveObj.Position; + this._move_dir.y = 0f; + float sqrMagnitude = this._move_dir.sqrMagnitude; + bool flag = sqrMagnitude == 0f || ((double)sqrMagnitude < 0.001 && this._entity.IsPlayer) || (sqrMagnitude < 0.1f && !this._entity.IsPlayer && this.SyncPredicted && this._stoppage); + if (flag) + { + this._move_dir = this._entity.MoveObj.Forward; + this._target_speed = 0f; + } + this._move_dir.Normalize(); + bool flag2 = this._entity.Fly != null; + if (flag2) + { + float num = XSingleton.singleton.TerrainY(this._destination); + bool flag3 = this._destination.y - num < this._entity.Fly.MinHeight; + if (flag3) + { + this._destination.y = num + (this._entity.Fly.MinHeight + this._entity.Fly.MaxHeight) * 0.5f; + } + } + bool flag4 = this._entity.IsPlayer && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag4) + { + XMoveEventArgs @event = XEventPool.GetEvent(); + @event.Speed = this._target_speed; + @event.Destination = this._destination; + @event.Inertia = this._inertia; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + return true; + } + + protected override void Begin() + { + this._begin_inertia = false; + bool flag = this._target_speed != this._speed; + if (flag) + { + bool flag2 = this._target_speed > this._speed; + if (flag2) + { + this._acceleration = this._entity.Attributes.RunSpeed * 5f; + } + else + { + this._acceleration = -this._entity.Attributes.RunSpeed * 6f; + } + } + else + { + this._acceleration = 0f; + } + this._entity.Net.ReportRotateAction(this._move_dir); + this._overlapped = false; + Vector3 zero = Vector3.zero; + this.CheckMove(ref zero); + } + + protected override void OnMount(XMount mount) + { + bool flag = mount != null; + if (flag) + { + this._entity.OverrideAnimClip("Walk", this._entity.Present.PresentLib.AnimLocation.Replace('/', '_') + mount.Present.PresentLib.Walk + (this._entity.IsCopilotMounted ? "_follow" : ""), true, false); + this._entity.OverrideAnimClip("Run", this._entity.Present.PresentLib.AnimLocation.Replace('/', '_') + mount.Present.PresentLib.Run + (this._entity.IsCopilotMounted ? "_follow" : ""), true, false); + bool hasTurnPresetation = mount.HasTurnPresetation; + if (hasTurnPresetation) + { + this._entity.OverrideAnimClip("RunLeft", this._entity.Present.PresentLib.AnimLocation.Replace('/', '_') + mount.Present.PresentLib.RunLeft + (this._entity.IsCopilotMounted ? "_follow" : ""), true, false); + this._entity.OverrideAnimClip("RunRight", this._entity.Present.PresentLib.AnimLocation.Replace('/', '_') + mount.Present.PresentLib.RunRight + (this._entity.IsCopilotMounted ? "_follow" : ""), true, false); + } + } + else + { + this.PrepareAnimations(); + } + this._entity.Machine.TriggerPresent(); + } + + private void CheckMove(ref Vector3 movement) + { + bool flag = !this._overlapped; + if (flag) + { + this._overlapped = this.Overlapped(ref movement); + bool overlapped = this._overlapped; + if (overlapped) + { + this._target_speed = 0f; + bool flag2 = this._inertia && this._speed > 0f; + if (flag2) + { + this._acceleration = -this._entity.Attributes.RunSpeed * 6f; + this._begin_inertia = true; + } + else + { + this._acceleration = 0f; + base.Finish(); + } + } + } + } + + private bool Overlapped(ref Vector3 movement) + { + Vector3 vector = this._entity.MoveObj.Position + movement; + vector.y = 0f; + Vector3 destination = this._destination; + destination.y = 0f; + Vector3 vector2 = destination - vector; + bool flag = vector2.sqrMagnitude > 0f; + bool result; + if (flag) + { + float num = Vector3.Angle(vector2, this._move_dir); + bool flag2 = num >= 90f; + if (flag2) + { + movement = this._destination - this._entity.MoveObj.Position; + bool flag3 = this._entity.Fly != null; + if (flag3) + { + movement.y = 0f; + } + result = true; + } + else + { + result = false; + } + } + else + { + result = true; + } + return result; + } + + private void PlayTrackFx(object o) + { + bool flag = string.IsNullOrEmpty(this._entity.Present.PresentLib.MoveFx); + if (!flag) + { + uint num = XSingleton.singleton.SetTimer(0.533f, this._playTrackFxCb, o); + bool flag2 = o == null; + if (flag2) + { + this._track_fx_1 = num; + } + else + { + this._track_fx_2 = num; + } + XSingleton.singleton.CreateAndPlay(this._entity.Present.PresentLib.MoveFx, this._entity.MoveObj, Vector3.zero, Vector3.one, 1f, false, 0.5f, true); + XSingleton.singleton.PlaySound(this._entity, AudioChannel.Motion, XAudioStateDefine.XState_Audio_Move); + } + } + + private void PrepareAnimations() + { + bool isNotEmptyObject = this._entity.EngineObject.IsNotEmptyObject; + if (isNotEmptyObject) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.World && !string.IsNullOrEmpty(this._entity.Present.PresentLib.AttackIdle); + if (flag) + { + this._entity.OverrideAnimClip("Walk", this._entity.Present.PresentLib.AttackWalk, true, false); + this._entity.OverrideAnimClip("Run", this._entity.Present.PresentLib.AttackRun, true, false); + this._entity.OverrideAnimClip("RunLeft", this._entity.Present.PresentLib.AttackRunLeft, true, false); + this._entity.OverrideAnimClip("RunRight", this._entity.Present.PresentLib.AttackRunRight, true, false); + } + else + { + this._entity.OverrideAnimClip("Walk", this._entity.Present.PresentLib.Walk, true, false); + this._entity.OverrideAnimClip("Run", this._entity.Present.PresentLib.Run, true, false); + this._entity.OverrideAnimClip("RunLeft", this._entity.Present.PresentLib.RunLeft, true, false); + this._entity.OverrideAnimClip("RunRight", this._entity.Present.PresentLib.RunRight, true, false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveComponent.cs.meta new file mode 100644 index 00000000..b3cd016d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1463440e51231af4c92f71e5b87eb46f +timeCreated: 1611403257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs new file mode 100644 index 00000000..d56d8ca4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs @@ -0,0 +1,34 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XMoveEventArgs : XActionArgs + { + public Vector3 Destination = Vector3.zero; + + public float Speed = 0f; + + public bool Inertia = false; + + public bool Stoppage = true; + + public float StopTowards = 0f; + + public XMoveEventArgs() + { + this._eDefine = XEventDefine.XEvent_Move; + } + + public override void Recycle() + { + base.Recycle(); + this.Destination = Vector3.zero; + this.Speed = 0f; + this.Inertia = false; + this.Stoppage = true; + this.StopTowards = 0f; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs.meta new file mode 100644 index 00000000..17174164 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ec55d210f9ed30409ee715d1cf40900 +timeCreated: 1611403699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveMobEventArgs.cs b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveMobEventArgs.cs new file mode 100644 index 00000000..e071bcbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveMobEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XMoveMobEventArgs : XEventArgs + { + public XMoveMobEventArgs() + { + this._eDefine = XEventDefine.XEvent_Move_Mob; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveMobEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveMobEventArgs.cs.meta new file mode 100644 index 00000000..6b102440 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Components/ActionStates/XMoveMobEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d9b6dd5005db9248a0051d1db971cd2 +timeCreated: 1611403807 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Coordinate.cs b/Client/Assets/Scripts/XMainClient/Coordinate.cs new file mode 100644 index 00000000..ab55118e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Coordinate.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient +{ + internal struct Coordinate + { + public static Coordinate Invalid = new Coordinate(-100, -100); + + public int x; + + public int y; + + public Coordinate(int _x, int _y) + { + this.x = _x; + this.y = _y; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Coordinate.cs.meta b/Client/Assets/Scripts/XMainClient/Coordinate.cs.meta new file mode 100644 index 00000000..6b13fc8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Coordinate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0391698b86bbd542889ca924443bc25 +timeCreated: 1611404585 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CostInfo.cs b/Client/Assets/Scripts/XMainClient/CostInfo.cs new file mode 100644 index 00000000..4e17452d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CostInfo.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal struct CostInfo + { + public ItemEnum type; + + public uint count; + } +} diff --git a/Client/Assets/Scripts/XMainClient/CostInfo.cs.meta b/Client/Assets/Scripts/XMainClient/CostInfo.cs.meta new file mode 100644 index 00000000..d28f90b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CostInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d75cdefb7ceaaa459dfd610e55ac8eb +timeCreated: 1611403805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CreateChatGroupBehaviour.cs b/Client/Assets/Scripts/XMainClient/CreateChatGroupBehaviour.cs new file mode 100644 index 00000000..edafe5cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CreateChatGroupBehaviour.cs @@ -0,0 +1,26 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + public class CreateChatGroupBehaviour : DlgBehaviourBase + { + public IXUILabel m_Label = null; + + public IXUIButton m_OKButton = null; + + public IXUISprite m_sprClose = null; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/p/T"); + this.m_Label = (transform.GetComponent("XUILabel") as IXUILabel); + Transform transform2 = base.transform.Find("Bg/ok"); + this.m_OKButton = (transform2.GetComponent("XUIButton") as IXUIButton); + Transform transform3 = base.transform.Find("Bg/Close"); + this.m_sprClose = (transform3.GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CreateChatGroupBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/CreateChatGroupBehaviour.cs.meta new file mode 100644 index 00000000..9cea5254 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CreateChatGroupBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 865ca97b0128ea44bbc6ba7fbf765085 +timeCreated: 1611404054 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CreateChatGroupDlg.cs b/Client/Assets/Scripts/XMainClient/CreateChatGroupDlg.cs new file mode 100644 index 00000000..01e23950 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CreateChatGroupDlg.cs @@ -0,0 +1,75 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + public class CreateChatGroupDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ChatCreateDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private CreatechatGroupCall callback; + + protected override void OnShow() + { + base.OnShow(); + } + + public void SetCallBack(CreatechatGroupCall handle) + { + this.callback = handle; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_OKButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoOK)); + base.uiBehaviour.m_sprClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.DoCancel)); + } + + private bool DoOK(IXUIButton go) + { + string text = base.uiBehaviour.m_Label.GetText(); + bool flag = this.callback != null && this.callback(text); + if (flag) + { + this.SetVisible(false, true); + } + return true; + } + + private void DoCancel(IXUISprite spr) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CreateChatGroupDlg.cs.meta b/Client/Assets/Scripts/XMainClient/CreateChatGroupDlg.cs.meta new file mode 100644 index 00000000..6691d72c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CreateChatGroupDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ed4d66d48d44044d99df8405f907fb3 +timeCreated: 1611404132 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CreatechatGroupCall.cs b/Client/Assets/Scripts/XMainClient/CreatechatGroupCall.cs new file mode 100644 index 00000000..5da5ed17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CreatechatGroupCall.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate bool CreatechatGroupCall(string content); +} diff --git a/Client/Assets/Scripts/XMainClient/CreatechatGroupCall.cs.meta b/Client/Assets/Scripts/XMainClient/CreatechatGroupCall.cs.meta new file mode 100644 index 00000000..26393898 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CreatechatGroupCall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56871aba3ab9b3444a1d421a61a27207 +timeCreated: 1611403744 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CropState.cs b/Client/Assets/Scripts/XMainClient/CropState.cs new file mode 100644 index 00000000..ff4b9ef5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CropState.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum CropState + { + None, + Disinsection, + Watering, + Fertilizer + } +} diff --git a/Client/Assets/Scripts/XMainClient/CropState.cs.meta b/Client/Assets/Scripts/XMainClient/CropState.cs.meta new file mode 100644 index 00000000..2f49e5a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CropState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 392e0235095ed5743a4350bcf16ef044 +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CutSceneDo.cs b/Client/Assets/Scripts/XMainClient/CutSceneDo.cs new file mode 100644 index 00000000..904b5912 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CutSceneDo.cs @@ -0,0 +1,7 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal delegate bool CutSceneDo(List actors); +} diff --git a/Client/Assets/Scripts/XMainClient/CutSceneDo.cs.meta b/Client/Assets/Scripts/XMainClient/CutSceneDo.cs.meta new file mode 100644 index 00000000..322725a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CutSceneDo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fcb1a0c961e1cf443916ecd66233eab5 +timeCreated: 1611404936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CutoverViewBehaviour.cs b/Client/Assets/Scripts/XMainClient/CutoverViewBehaviour.cs new file mode 100644 index 00000000..119999f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CutoverViewBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class CutoverViewBehaviour : DlgBehaviourBase + { + public IXUICheckBox m_3D; + + public IXUICheckBox m_25D; + + public IXUIButton m_OK; + + private void Awake() + { + this.m_OK = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.m_3D = (base.transform.Find("Bg/3D").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_25D = (base.transform.Find("Bg/2.5D").GetComponent("XUICheckBox") as IXUICheckBox); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CutoverViewBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/CutoverViewBehaviour.cs.meta new file mode 100644 index 00000000..e0713afd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CutoverViewBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1c0b96ba3344274bbcf344c842729c5 +timeCreated: 1611404703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/CutoverViewView.cs b/Client/Assets/Scripts/XMainClient/CutoverViewView.cs new file mode 100644 index 00000000..5103899d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CutoverViewView.cs @@ -0,0 +1,149 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class CutoverViewView : DlgBase + { + public override string fileName + { + get + { + return "Battle/CutoverViewDlg"; + } + } + + public override bool exclusive + { + get + { + return true; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private uint _TimerID = 0u; + + public bool IsOpening = false; + + public XOperationMode SelectLook; + + protected override void Init() + { + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_OK.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOKClicked)); + base.uiBehaviour.m_25D.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X25D)); + base.uiBehaviour.m_25D.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSetView)); + base.uiBehaviour.m_3D.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X3D)); + base.uiBehaviour.m_3D.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSetView)); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.MakeEffectEnable(XPostEffect.GausBlur, true); + DlgBase.singleton.SetMaqueeSwitch(false); + this.IsOpening = true; + base.uiBehaviour.m_25D.bChecked = true; + this.SelectLook = XOperationMode.X25D; + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = XSingleton.singleton.SetTimer(float.Parse(XSingleton.singleton.GetValue("CutoverViewDeadLine")), new XTimerMgr.ElapsedEventHandler(this.SelectView), null); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + XSingleton.singleton.MakeEffectEnable(XPostEffect.GausBlur, false); + DlgBase.singleton.SetMaqueeSwitch(true); + this.IsOpening = false; + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + XSingleton.singleton.MakeEffectEnable(XPostEffect.GausBlur, false); + DlgBase.singleton.SetMaqueeSwitch(true); + this.IsOpening = false; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public bool OnOKClicked(IXUIButton sp) + { + this.SelectView(null); + return true; + } + + private void SelectView(object param) + { + XSingleton.singleton.SelectView = true; + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_VIEW, XFastEnumIntEqualityComparer.ToInt(this.SelectLook), true); + specificDocument.SetBattleOptionValue(); + DlgBase.singleton.SetView(XSingleton.singleton.OperationMode); + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_BattleDlg_Clip01", DlgBase.singleton.uiBehaviour.m_canvas, Vector3.zero, Vector3.one, 1f, true, 9f, true); + this.SetVisibleWithAnimation(false, null); + } + + private bool OnSetView(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.SelectLook = (XOperationMode)box.ID; + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/CutoverViewView.cs.meta b/Client/Assets/Scripts/XMainClient/CutoverViewView.cs.meta new file mode 100644 index 00000000..acab1954 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/CutoverViewView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4350349ff1b63842aa404b2ed3c93f4 +timeCreated: 1611404500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DamageElement.cs b/Client/Assets/Scripts/XMainClient/DamageElement.cs new file mode 100644 index 00000000..3c844a34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DamageElement.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public enum DamageElement + { + DE_NONE, + DE_FIRE, + DE_WATER, + DE_LIGHT, + DE_DARK + } +} diff --git a/Client/Assets/Scripts/XMainClient/DamageElement.cs.meta b/Client/Assets/Scripts/XMainClient/DamageElement.cs.meta new file mode 100644 index 00000000..2e65b83e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DamageElement.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69062576050553741af16c43d6ca56b8 +timeCreated: 1611403884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DamageFlag.cs b/Client/Assets/Scripts/XMainClient/DamageFlag.cs new file mode 100644 index 00000000..eb7af0a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DamageFlag.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum DamageFlag + { + DMGFLAG_NONE, + DMGFLAG_CRITICAL, + DMGFLAG_STUN, + DMGFLAG_REFLECTION = 4 + } +} diff --git a/Client/Assets/Scripts/XMainClient/DamageFlag.cs.meta b/Client/Assets/Scripts/XMainClient/DamageFlag.cs.meta new file mode 100644 index 00000000..a3c06654 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DamageFlag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdfdfb0093a86ec4b95082b9ddf2f7bd +timeCreated: 1611404577 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DamageType.cs b/Client/Assets/Scripts/XMainClient/DamageType.cs new file mode 100644 index 00000000..6d447c28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DamageType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum DamageType + { + DMG_SKILL, + DMG_INVALID + } +} diff --git a/Client/Assets/Scripts/XMainClient/DamageType.cs.meta b/Client/Assets/Scripts/XMainClient/DamageType.cs.meta new file mode 100644 index 00000000..f52fac38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DamageType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b31e31f7e8f96c4d9b40e8d904ab8bc +timeCreated: 1611403797 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DanceMotionData.cs b/Client/Assets/Scripts/XMainClient/DanceMotionData.cs new file mode 100644 index 00000000..102cb945 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DanceMotionData.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class DanceMotionData + { + public uint motionID; + + public uint valid; + } +} diff --git a/Client/Assets/Scripts/XMainClient/DanceMotionData.cs.meta b/Client/Assets/Scripts/XMainClient/DanceMotionData.cs.meta new file mode 100644 index 00000000..30287415 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DanceMotionData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a85fdce4929e336438876ccad5c1ca7e +timeCreated: 1611404295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DecalLoadTask.cs b/Client/Assets/Scripts/XMainClient/DecalLoadTask.cs new file mode 100644 index 00000000..a2b7a206 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DecalLoadTask.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class DecalLoadTask : EquipLoadTask + { + public Texture2D decalTex = null; + + protected LoadAsyncTask loadTask = null; + + protected LoadCallBack loadCb = null; + + private PartLoadTask faceTask = null; + + private PartLoadCallback m_PartLoadCb = null; + + public DecalLoadTask(EPartType p, PartLoadCallback partLoadCb, PartLoadTask face) : base(p) + { + this.loadCb = new LoadCallBack(this.LoadFinish); + this.faceTask = face; + this.m_PartLoadCb = partLoadCb; + } + + public override void Load(XEntity e, int prefessionID, ref FashionPositionInfo newFpi, bool async, HashSet loadedPath) + { + bool flag = base.IsSamePart(ref newFpi); + if (flag) + { + bool flag2 = this.m_PartLoadCb != null; + if (flag2) + { + this.m_PartLoadCb(this, false); + } + } + else + { + this.Reset(e); + bool flag3 = base.MakePath(ref newFpi, loadedPath); + if (flag3) + { + if (async) + { + this.loadTask = XSingleton.singleton.GetShareResourceAsync(this.location, ".tga", this.loadCb, this); + } + else + { + Texture2D sharedResource = XSingleton.singleton.GetSharedResource(this.location, ".tga", true, false); + this.LoadFinish(sharedResource, this); + } + } + else + { + bool flag4 = this.m_PartLoadCb != null; + if (flag4) + { + this.m_PartLoadCb(this, false); + } + } + } + } + + private void LoadFinish(UnityEngine.Object obj, object cbOjb) + { + bool flag = this.processStatus == EProcessStatus.EProcessing; + if (flag) + { + this.processStatus = EProcessStatus.EPreProcess; + this.decalTex = (obj as Texture2D); + bool flag2 = this.m_PartLoadCb != null; + if (flag2) + { + this.m_PartLoadCb(this, false); + } + } + } + + public override void Reset(XEntity e) + { + base.Reset(e); + bool flag = this.decalTex != null; + if (flag) + { + XSingleton.singleton.UnSafeDestroyShareResource(this.location, ".tga", this.decalTex, false); + this.decalTex = null; + } + bool flag2 = this.loadTask != null; + if (flag2) + { + this.loadTask.CancelLoad(this.loadCb); + this.loadTask = null; + } + } + + public void PostLoad(CombineMeshTask combineMeshTask) + { + bool flag = this.decalTex != null; + Texture texture; + if (flag) + { + texture = this.decalTex; + } + else + { + texture = this.faceTask.GetTexture(); + } + bool flag2 = texture != null; + if (flag2) + { + bool isOnepart = combineMeshTask.isOnepart; + if (isOnepart) + { + ShaderManager.SetTexture(combineMeshTask.mpb, texture, ShaderManager._ShaderKeyIDFace); + } + else + { + ShaderManager.SetTexture(combineMeshTask.mpb, texture, ShaderManager._ShaderKeyIDSkin[0]); + } + } + this.processStatus = EProcessStatus.EProcessed; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DecalLoadTask.cs.meta b/Client/Assets/Scripts/XMainClient/DecalLoadTask.cs.meta new file mode 100644 index 00000000..6e1b0eff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DecalLoadTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abfc9758f75f85845980169d98e3a20e +timeCreated: 1611404309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DesignationInfo.cs b/Client/Assets/Scripts/XMainClient/DesignationInfo.cs new file mode 100644 index 00000000..4e5ce15b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DesignationInfo.cs @@ -0,0 +1,30 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class DesignationInfo + { + public bool isNew; + + public int ID; + + public string desName; + + public string explanation; + + public SeqListRef attribute; + + public string color; + + public bool completed; + + public string effect; + + public string atlas; + + public int sortID; + + public int leftTime; + } +} diff --git a/Client/Assets/Scripts/XMainClient/DesignationInfo.cs.meta b/Client/Assets/Scripts/XMainClient/DesignationInfo.cs.meta new file mode 100644 index 00000000..8844516b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DesignationInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 138ac8f47097907448dd52a24d8b7d2f +timeCreated: 1611403249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Direction.cs b/Client/Assets/Scripts/XMainClient/Direction.cs new file mode 100644 index 00000000..8b915317 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Direction.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum Direction + { + Right, + Down, + Left, + Up + } +} diff --git a/Client/Assets/Scripts/XMainClient/Direction.cs.meta b/Client/Assets/Scripts/XMainClient/Direction.cs.meta new file mode 100644 index 00000000..a780532f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Direction.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 137b8cf42768b1441819626d7d87bd3c +timeCreated: 1611403248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DlgHandlerBase.cs b/Client/Assets/Scripts/XMainClient/DlgHandlerBase.cs new file mode 100644 index 00000000..fc76c6c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DlgHandlerBase.cs @@ -0,0 +1,525 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + public abstract class DlgHandlerBase : IDlgHandlerMgr + { + public bool bLoaded + { + get + { + return this.m_bLoaded; + } + } + + protected virtual string FileName + { + get + { + return string.Empty; + } + } + + public virtual bool has3DAvatar + { + get + { + return false; + } + } + + protected virtual Vector3 OffSet + { + get + { + return Vector3.zero; + } + } + + protected virtual Transform parent + { + get + { + return (this.m_parent == null && this.m_gameObject != null) ? this.m_gameObject.transform.parent : this.m_parent; + } + set + { + this.m_parent = value; + bool flag = this.m_gameObject != null; + if (flag) + { + this.m_gameObject.transform.parent = this.m_parent; + } + } + } + + protected string luaFileName + { + get + { + return base.GetType().Name; + } + } + + public bool activeSelf + { + get + { + return this.m_bLoaded && this.m_gameObject != null && this.m_gameObject.activeSelf; + } + } + + public virtual bool active + { + get + { + return this.m_bLoaded && this.m_gameObject != null && this.m_gameObject.activeInHierarchy; + } + } + + public GameObject PanelObject + { + get + { + return this.m_gameObject; + } + set + { + bool flag = value != null && (this.m_gameObject == null || this.m_handlerState == DlgHandlerBase.HandlerState.Setup || this.m_handlerState == DlgHandlerBase.HandlerState.Error); + if (flag) + { + this.m_gameObject = value; + this.m_transform = this.m_gameObject.transform; + this.m_parent = this.m_gameObject.transform.parent; + this.m_gameObject.SetActive(true); + this.Loaded(); + } + else + { + bool flag2 = value == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("GameObject is NULL!", null, null, null, null, null); + } + else + { + XSingleton.singleton.AddErrorLog("GameObject is exist!", null, null, null, null, null); + } + } + } + } + + public Transform transform + { + get + { + return this.m_transform; + } + } + + public DlgHandlerMgr HandlerMgr + { + get + { + return this.m_DlgHandlerMgr; + } + } + + protected DlgHandlerBase.HandlerState m_handlerState = DlgHandlerBase.HandlerState.Setup; + + private LoadUIFinishedEventHandler m_loadUIAsynHandler; + + private bool m_bLoaded = false; + + private Transform m_parent; + + private GameObject m_gameObject; + + private Transform m_transform; + + private bool m_visible = false; + + private bool m_isLoad = false; + + protected bool m_bDelayInited = false; + + protected int m_dummPool = -1; + + private DlgHandlerMgr m_DlgHandlerMgr = null; + + protected DlgHandlerMgr m_ParentHandlerMgr = null; + + public enum HandlerState + { + Setup, + Loading, + Loaded, + Inited, + Show, + Hide, + Dispose, + Error + } + + public DlgHandlerBase() + { + this.m_DlgHandlerMgr = new DlgHandlerMgr(); + } + + public virtual void OnUpdate() + { + this.HandlerMgr.OnUpdate(); + } + + public virtual void OnUnload() + { + } + + public void UnLoad() + { + bool flag = !this.m_bLoaded; + if (!flag) + { + this.UnRegisterEvent(); + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.TryFixHandler(HotfixMode.UNLOAD, this.luaFileName, this.m_gameObject); + this.OnUnload(); + this.m_loadUIAsynHandler = null; + this.m_handlerState = DlgHandlerBase.HandlerState.Dispose; + bool bDelayInited = this.m_bDelayInited; + if (bDelayInited) + { + this._OnDelayUnload(); + this.m_bDelayInited = false; + } + bool flag2 = this.m_DlgHandlerMgr != null; + if (flag2) + { + this.m_DlgHandlerMgr.Unload(); + this.m_DlgHandlerMgr = null; + } + bool isLoad = this.m_isLoad; + if (isLoad) + { + XResourceLoaderMgr.SafeDestroy(ref this.m_gameObject, false); + this.m_isLoad = false; + } + this.m_bLoaded = false; + } + } + + public bool IsVisible() + { + return this.active; + } + + public void SetVisible(bool bvisible) + { + this.m_visible = bvisible; + if (bvisible) + { + this.Show(); + } + else + { + this.ExcuteHide(); + } + } + + protected virtual void Init() + { + } + + public virtual void RegisterEvent() + { + } + + public virtual void UnRegisterEvent() + { + } + + protected virtual void OnShow() + { + } + + protected virtual void OnHide() + { + } + + public Component FindInChild(string ComponentName, string behaivorPath = "") + { + Transform transform = this.FindChild(behaivorPath); + bool flag = transform == null; + Component result; + if (flag) + { + result = null; + } + else + { + result = transform.GetComponent(ComponentName); + } + return result; + } + + public Transform FindChild(string behaivorPath = "") + { + return (this.m_transform == null) ? null : this.m_transform.Find(behaivorPath); + } + + private void Show() + { + bool flag = this.m_handlerState == DlgHandlerBase.HandlerState.Setup; + if (flag) + { + this.Load(); + } + else + { + bool flag2 = this.m_handlerState == DlgHandlerBase.HandlerState.Inited || this.m_handlerState == DlgHandlerBase.HandlerState.Hide; + if (flag2) + { + this.ExcuteShow(); + } + } + } + + private void Load() + { + this.m_handlerState = DlgHandlerBase.HandlerState.Loading; + bool flag = !string.IsNullOrEmpty(this.FileName); + if (flag) + { + this.m_isLoad = true; + bool flag2 = this.m_loadUIAsynHandler == null; + if (flag2) + { + this.m_loadUIAsynHandler = new LoadUIFinishedEventHandler(this.LoadUIFinish); + } + XSingleton.singleton.LoadUI(this.FileName, this.m_loadUIAsynHandler); + } + else + { + XSingleton.singleton.AddErrorLog("Handler FileName is Empty!", null, null, null, null, null); + } + } + + private void LoadUIFinish(string location) + { + this.m_gameObject = (XSingleton.singleton.CreateFromPrefab("UI/" + location, true, false) as GameObject); + bool flag = this.m_gameObject != null; + if (flag) + { + this.m_handlerState = DlgHandlerBase.HandlerState.Loaded; + this.m_transform = this.m_gameObject.transform; + this.m_gameObject.name = this.m_gameObject.name.Replace("(Clone)", ""); + this.m_gameObject.transform.parent = this.m_parent; + this.m_gameObject.transform.localPosition = this.OffSet; + this.m_gameObject.transform.localScale = Vector3.one; + this.m_gameObject.SetActive(true); + this.Loaded(); + this.ExcuteShow(); + this.m_bLoaded = true; + } + else + { + this.m_handlerState = DlgHandlerBase.HandlerState.Error; + XSingleton.singleton.AddErrorLog(XSingleton.singleton.StringCombine(location, " load error!"), null, null, null, null, null); + } + } + + private void ExcuteShow() + { + bool visible = this.m_visible; + if (visible) + { + bool flag = this.m_handlerState == DlgHandlerBase.HandlerState.Inited || this.m_handlerState == DlgHandlerBase.HandlerState.Hide; + if (flag) + { + bool flag2 = this.m_gameObject == null; + if (!flag2) + { + this.m_gameObject.SetActive(true); + this.m_handlerState = DlgHandlerBase.HandlerState.Show; + bool flag3 = !this.m_bDelayInited; + if (flag3) + { + this._DelayInit(); + this.m_bDelayInited = true; + } + this.RegisterEvent(); + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + bool flag4 = !xluaEngine.hotfixMgr.TryFixHandler(HotfixMode.BEFORE, this.luaFileName, this.m_gameObject); + if (flag4) + { + this.OnShow(); + xluaEngine.hotfixMgr.TryFixHandler(HotfixMode.AFTER, this.luaFileName, this.m_gameObject); + } + } + } + } + else + { + this.ExcuteHide(); + } + } + + private void Loaded() + { + this.Initialize(); + } + + private void Initialize() + { + this.Init(); + this.m_bLoaded = true; + this.m_handlerState = DlgHandlerBase.HandlerState.Inited; + } + + private void ExcuteHide() + { + bool flag = this.m_handlerState == DlgHandlerBase.HandlerState.Show || this.m_handlerState == DlgHandlerBase.HandlerState.Inited; + if (flag) + { + bool flag2 = this.m_gameObject == null; + if (!flag2) + { + this.m_gameObject.SetActive(false); + bool flag3 = this.m_handlerState == DlgHandlerBase.HandlerState.Show; + if (flag3) + { + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.TryFixHandler(HotfixMode.HIDE, this.luaFileName, this.m_gameObject); + this.UnRegisterEvent(); + this.OnHide(); + } + this.m_handlerState = DlgHandlerBase.HandlerState.Hide; + } + } + } + + protected virtual void _OnDelayUnload() + { + this.m_bDelayInited = false; + } + + protected virtual void _DelayInit() + { + } + + public virtual void StackRefresh() + { + bool flag = this.m_DlgHandlerMgr != null; + if (flag) + { + this.m_DlgHandlerMgr.StackRefresh(); + } + } + + public virtual void LeaveStackTop() + { + bool flag = this.m_DlgHandlerMgr != null; + if (flag) + { + this.m_DlgHandlerMgr.LeaveStackTop(); + } + } + + public virtual void RefreshData() + { + } + + protected void Alloc3DAvatarPool(string user, int maxCount = 1) + { + bool flag = this.m_dummPool < 0; + if (flag) + { + this.m_dummPool = XSingleton.singleton.AllocDummyPool(user, maxCount); + } + } + + protected void Return3DAvatarPool() + { + XSingleton.singleton.ReturnDummyPool(this.m_dummPool); + this.m_dummPool = -1; + } + + public static T EnsureCreate(ref T handler, Transform parent, bool visible = true, IDlgHandlerMgr handlerMgr = null) where T : DlgHandlerBase, new() + { + bool flag = parent == null; + if (flag) + { + parent = XSingleton.singleton.UIRoot; + } + bool flag2 = handler == null; + if (flag2) + { + handler = Activator.CreateInstance(); + handler.parent = parent; + handler.SetVisible(visible); + bool flag3 = handlerMgr != null; + if (flag3) + { + handlerMgr.HandlerMgr.Add(handler); + handler.m_ParentHandlerMgr = handlerMgr.HandlerMgr; + } + } + else + { + handler.parent = parent; + handler.SetVisible(visible); + } + return handler; + } + + public static T EnsureCreate(ref T handler, GameObject panelObject, IDlgHandlerMgr parent = null, bool visible = true) where T : DlgHandlerBase, new() + { + bool flag = handler == null; + if (flag) + { + handler = DlgHandlerBase.Create(panelObject, parent, visible); + } + else + { + handler.SetVisible(visible); + } + return handler; + } + + public static T Create(GameObject panelObject, IDlgHandlerMgr parent, bool visible = true) where T : DlgHandlerBase, new() + { + T t = Activator.CreateInstance(); + t.PanelObject = panelObject; + t.m_bLoaded = true; + t.SetVisible(visible); + bool flag = parent != null; + if (flag) + { + parent.HandlerMgr.Add(t); + t.m_ParentHandlerMgr = parent.HandlerMgr; + } + return t; + } + + public static void EnsureUnload(ref T handler) where T : DlgHandlerBase + { + bool flag = handler != null && handler.m_bLoaded; + if (flag) + { + handler.UnLoad(); + handler.m_bLoaded = false; + bool flag2 = handler.m_ParentHandlerMgr != null; + if (flag2) + { + handler.m_ParentHandlerMgr.Remove(handler); + } + } + handler = default(T); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DlgHandlerBase.cs.meta b/Client/Assets/Scripts/XMainClient/DlgHandlerBase.cs.meta new file mode 100644 index 00000000..2f75a7fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DlgHandlerBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6d79f778df032d4b9c1170068be8237 +timeCreated: 1611404527 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs b/Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs new file mode 100644 index 00000000..fd80d25f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs @@ -0,0 +1,65 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + public class DlgHandlerMgr + { + private List m_ListHandler = new List(); + + public void Add(DlgHandlerBase handler) + { + this.m_ListHandler.Add(handler); + } + + public void Remove(DlgHandlerBase handler) + { + this.m_ListHandler.Remove(handler); + } + + public void Unload() + { + for (int i = 0; i < this.m_ListHandler.Count; i++) + { + this.m_ListHandler[i].UnLoad(); + } + this.m_ListHandler.Clear(); + } + + public void StackRefresh() + { + for (int i = 0; i < this.m_ListHandler.Count; i++) + { + bool flag = this.m_ListHandler[i].IsVisible(); + if (flag) + { + this.m_ListHandler[i].StackRefresh(); + } + } + } + + public void LeaveStackTop() + { + for (int i = 0; i < this.m_ListHandler.Count; i++) + { + bool flag = this.m_ListHandler[i].IsVisible(); + if (flag) + { + this.m_ListHandler[i].LeaveStackTop(); + } + } + } + + public void OnUpdate() + { + for (int i = 0; i < this.m_ListHandler.Count; i++) + { + bool flag = this.m_ListHandler[i].IsVisible(); + if (flag) + { + this.m_ListHandler[i].OnUpdate(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs.meta b/Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs.meta new file mode 100644 index 00000000..ab2f8974 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DlgHandlerMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c6f44e969319b54bb4bedd069bfd6f8 +timeCreated: 1611403997 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DonateRankType.cs b/Client/Assets/Scripts/XMainClient/DonateRankType.cs new file mode 100644 index 00000000..97951825 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DonateRankType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum DonateRankType + { + HistoryRank, + TodayRank + } +} diff --git a/Client/Assets/Scripts/XMainClient/DonateRankType.cs.meta b/Client/Assets/Scripts/XMainClient/DonateRankType.cs.meta new file mode 100644 index 00000000..118db0ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DonateRankType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ad4876b12dad9440a8340cb186a407a +timeCreated: 1611403666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DotTimeInfo.cs b/Client/Assets/Scripts/XMainClient/DotTimeInfo.cs new file mode 100644 index 00000000..b66cbd58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DotTimeInfo.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient +{ + internal class DotTimeInfo + { + public XAttributeDefine attrID; + + public double attrValue; + + public float interval; + + public float timeleft; + + public int totalCount; + + public int tickCount; + } +} diff --git a/Client/Assets/Scripts/XMainClient/DotTimeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/DotTimeInfo.cs.meta new file mode 100644 index 00000000..d83e6a30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DotTimeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f31d8fdc419e5da4ba0c3bdc4b2020d9 +timeCreated: 1611404846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonCoinCostHandler.cs b/Client/Assets/Scripts/XMainClient/DragonCoinCostHandler.cs new file mode 100644 index 00000000..4ab01972 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCoinCostHandler.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class DragonCoinCostHandler : ICostHandler + { + private List m_Costs = new List(); + + public CostInfo GetCost(int i) + { + CostInfo result; + result.type = ItemEnum.DRAGON_COIN; + bool flag = this.m_Costs.Count == 0; + if (flag) + { + result.count = 0u; + } + else + { + bool flag2 = i >= 0 && i < this.m_Costs.Count; + if (flag2) + { + result.count = this.m_Costs[i]; + } + else + { + result.count = this.m_Costs[this.m_Costs.Count - 1]; + } + } + return result; + } + + public bool ParseCostConfigString(string str) + { + string[] array = str.Split(XGlobalConfig.ListSeparator); + uint num = 0u; + while ((ulong)num < (ulong)((long)array.Length)) + { + this.m_Costs.Add(uint.Parse(array[(int)num])); + num += 1u; + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonCoinCostHandler.cs.meta b/Client/Assets/Scripts/XMainClient/DragonCoinCostHandler.cs.meta new file mode 100644 index 00000000..e52a1747 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCoinCostHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 941eb5738e109f74fad18ac1f7b59449 +timeCreated: 1611404153 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonCrusadeGateBehavior.cs b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateBehavior.cs new file mode 100644 index 00000000..5cdd5b66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateBehavior.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class DragonCrusadeGateBehavior : DlgBehaviourBase + { + public IXUISprite mBuff = null; + + public IXUIButton mClosedBtn = null; + + public IXUIButton mRwdBtn = null; + + private void Awake() + { + this.mClosedBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.mRwdBtn = (base.transform.Find("Bg/ContentFrame/btm/rwdBtn").GetComponent("XUIButton") as IXUIButton); + this.mBuff = (base.transform.transform.Find("Bg/ContentFrame/FightValue/Buff").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonCrusadeGateBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateBehavior.cs.meta new file mode 100644 index 00000000..ae9bbbad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6ed17727b3c1d746a4f0a648d041af1 +timeCreated: 1611404400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWin.cs b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWin.cs new file mode 100644 index 00000000..48093ced --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWin.cs @@ -0,0 +1,198 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class DragonCrusadeGateWin : DlgBase + { + public override string fileName + { + get + { + return "Battle/DragonCrusadeWin"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XLevelRewardDocument _LevelRewardDoc; + + public override void OnXNGUIClick(GameObject obj, string path) + { + base.OnXNGUIClick(obj, path); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_ContinueBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturn)); + base.uiBehaviour.m_ReturnSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturn)); + bool flag = base.uiBehaviour.m_ShareBtn != null; + if (flag) + { + base.uiBehaviour.m_ShareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShare)); + } + } + + protected override void OnLoad() + { + base.OnLoad(); + this._LevelRewardDoc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + } + + protected override void OnShow() + { + base.OnShow(); + this.UpdateHint(XDragonCrusadeDocument.mDERankChangePara); + } + + public void Refresh() + { + bool iswin = this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.iswin; + if (iswin) + { + base.uiBehaviour.goWin.SetActive(true); + base.uiBehaviour.goFailed.SetActive(false); + this.UpdateWinFrame(); + } + else + { + base.uiBehaviour.goWin.SetActive(false); + base.uiBehaviour.goFailed.SetActive(true); + this.UpdateFailedFrame(); + } + } + + private void UpdateFailedFrame() + { + base.SetXUILable("Win/Title", this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.iswin.ToString()); + base.SetXUILable("Failed/Bg/Result/DamageHP/Tip/HP", this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.bosshurthp.ToString() + "%"); + base.SetXUILable("Failed/Bg/Result/CurrentHP/Tip/HP", this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.bosslefthp.ToString() + "%"); + float num = (float)this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.joinreward.Count * 0.5f - 0.5f; + Vector3 tplPos = base.uiBehaviour.m_FailedPool.TplPos; + bool active = XActivityDocument.Doc.IsInnerDropTime(50u); + for (int i = 0; i < this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.joinreward.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_FailedPool.FetchGameObject(false); + ItemBrief itemBrief = this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.joinreward[i]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)itemBrief.itemID, (int)itemBrief.itemCount, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)itemBrief.itemID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + Transform transform = gameObject.transform.Find("Double"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(active); + } + gameObject.transform.localPosition = new Vector3(((float)i - num) * (float)base.uiBehaviour.m_FailedPool.TplWidth, tplPos.y); + } + base.uiBehaviour.m_FailedPool.ActualReturnAll(false); + } + + protected bool OnReturn(IXUIButton btn) + { + XSingleton.singleton.ReqLeaveScene(); + return true; + } + + protected void OnReturn(IXUISprite spr) + { + XSingleton.singleton.ReqLeaveScene(); + } + + protected bool OnShare(IXUIButton btn) + { + return true; + } + + private void UpdateWinFrame() + { + base.SetXUILable("Failed/Bg/Result/DamageHP/Tip/HP", this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.bosshurthp.ToString() + "%"); + base.SetXUILable("Failed/Bg/Result/CurrentHP/Tip/HP", this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.bosslefthp.ToString() + "%"); + base.uiBehaviour.m_WinPool.ActualReturnAll(false); + float num = (float)this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.winreward.Count * 0.5f - 0.5f; + Vector3 tplPos = base.uiBehaviour.m_WinPool.TplPos; + bool active = XActivityDocument.Doc.IsInnerDropTime(50u); + for (int i = 0; i < this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.winreward.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_WinPool.FetchGameObject(false); + ItemBrief itemBrief = this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.winreward[i]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)itemBrief.itemID, (int)itemBrief.itemCount, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)itemBrief.itemID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + Transform transform = gameObject.transform.Find("Double"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(active); + } + gameObject.transform.localPosition = new Vector3(((float)i - num) * (float)base.uiBehaviour.m_WinPool.TplWidth, tplPos.y); + } + base.uiBehaviour.m_WinPool.ActualReturnAll(false); + DragonCrusageGateData gate = this.GetGate(this._LevelRewardDoc.DragonCrusadeDataWin.MyResult.sceneid); + string content = string.Format(XSingleton.singleton.GetString("DragonCrusadeWin"), gate.expData.WinHit); + base.SetXUILable("Win/Title", content); + } + + public void UpdateHint(DERankChangePara data) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = data == null; + if (flag2) + { + base.SetXUILable("Win/Next/Hint", ""); + } + else + { + bool flag3 = data.newrank < data.oldrank; + if (flag3) + { + string content = string.Format(XSingleton.singleton.GetString("DragonCrudageWinHit"), data.newrank); + base.SetXUILable("Win/Next/Hint", content); + } + else + { + base.SetXUILable("Win/Next/Hint", ""); + } + } + } + } + + private DragonCrusageGateData GetGate(uint sceneid) + { + for (int i = 0; i < XDragonCrusadeDocument._DragonCrusageGateDataInfo.Count; i++) + { + DragonCrusageGateData dragonCrusageGateData = XDragonCrusadeDocument._DragonCrusageGateDataInfo[i]; + bool flag = dragonCrusageGateData.SceneID == sceneid; + if (flag) + { + return dragonCrusageGateData; + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWin.cs.meta b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWin.cs.meta new file mode 100644 index 00000000..53d2ba06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c033da6979e3acc4bbb821015bc66ee3 +timeCreated: 1611404485 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWinBehavior.cs b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWinBehavior.cs new file mode 100644 index 00000000..f3a38bd8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWinBehavior.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class DragonCrusadeGateWinBehavior : DlgBehaviourBase + { + public GameObject goWin = null; + + public GameObject goFailed = null; + + public XUIPool m_WinPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_FailedPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_FailedFrame = null; + + public IXUISprite m_WinFrame = null; + + public IXUIButton m_ContinueBtn; + + public IXUISprite m_ReturnSpr; + + public IXUIButton m_ShareBtn; + + private void Awake() + { + this.m_ContinueBtn = (base.transform.Find("Win/Continue").GetComponent("XUIButton") as IXUIButton); + this.m_ReturnSpr = (base.transform.Find("Failed/Bg/Return").GetComponent("XUISprite") as IXUISprite); + this.m_ShareBtn = (base.transform.Find("Win/Share").GetComponent("XUIButton") as IXUIButton); + this.goWin = base.transform.Find("Win").gameObject; + this.goFailed = base.transform.Find("Failed").gameObject; + this.m_WinPool.SetupPool(base.transform.Find("Win/Next").gameObject, base.transform.Find("Win/Next/Item").gameObject, 5u, false); + this.m_WinFrame = (base.transform.Find("Win/Next").GetComponent("XUISprite") as IXUISprite); + this.m_FailedPool.SetupPool(base.transform.Find("Failed/Bg/ItemList").gameObject, base.transform.Find("Failed/Bg/ItemList/Item").gameObject, 5u, false); + this.m_FailedFrame = (base.transform.Find("Failed/Bg/ItemList").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWinBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWinBehavior.cs.meta new file mode 100644 index 00000000..323d13da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCrusadeGateWinBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2557dc624ad553458b639e725af7cb8 +timeCreated: 1611404383 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonCrusageGateData.cs b/Client/Assets/Scripts/XMainClient/DragonCrusageGateData.cs new file mode 100644 index 00000000..4da2b06e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCrusageGateData.cs @@ -0,0 +1,25 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class DragonCrusageGateData + { + public uint SceneID; + + public DragonExpList.RowData expData; + + public SceneTable.RowData sceneData; + + public DEProgress deProgress; + + public int allcount = 0; + + public int leftcount = 0; + + public uint SealLevel = 0u; + + public uint Chapter = 0u; + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonCrusageGateData.cs.meta b/Client/Assets/Scripts/XMainClient/DragonCrusageGateData.cs.meta new file mode 100644 index 00000000..6654ba34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonCrusageGateData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98bf0a20a92baea478d916079ce40fd7 +timeCreated: 1611404191 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildApproveSetting.cs b/Client/Assets/Scripts/XMainClient/DragonGuildApproveSetting.cs new file mode 100644 index 00000000..68026142 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildApproveSetting.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class DragonGuildApproveSetting + { + public uint PPT; + + public bool autoApprove; + + public string GetStrPPT() + { + bool flag = this.PPT == 0u; + string result; + if (flag) + { + result = ""; + } + else + { + result = this.PPT.ToString(); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildApproveSetting.cs.meta b/Client/Assets/Scripts/XMainClient/DragonGuildApproveSetting.cs.meta new file mode 100644 index 00000000..c4f19354 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildApproveSetting.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44b58a91ed131c045a23ad53727e0b50 +timeCreated: 1611403646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildLiveness.cs b/Client/Assets/Scripts/XMainClient/DragonGuildLiveness.cs new file mode 100644 index 00000000..5c52251c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildLiveness.cs @@ -0,0 +1,248 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class DragonGuildLiveness + { + public List RecordList + { + get + { + return this.m_recordList; + } + } + + public uint CurExp + { + get + { + return this.m_curExp; + } + set + { + this.m_curExp = value; + } + } + + public uint MaxExp + { + get + { + List list = new List(); + this.GetDragonGuildLivenessRowsByLevel(XPartnerDocument.Doc.CurPartnerLevel, out list); + bool flag = list.Count != 0; + uint result; + if (flag) + { + result = list[list.Count - 1].liveness; + } + else + { + result = 0u; + } + return result; + } + } + + private DragonGuildLivenessTable m_table; + + private uint m_curExp = 0u; + + private uint m_takeChest = 0u; + + private List m_recordList = new List(); + + public DragonGuildLivenessDlg View; + + public DragonGuildLiveness(DragonGuildLivenessTable table) + { + this.m_table = table; + } + + public DragonGuildLivenessTable.RowData GetPartnerLivenessRow(uint livenessId, int partnerLevel) + { + for (int i = 0; i < this.m_table.Table.Length; i++) + { + DragonGuildLivenessTable.RowData rowData = this.m_table.Table[i]; + bool flag = rowData.liveness == livenessId && (long)partnerLevel >= (long)((ulong)rowData.level[0]) && (long)partnerLevel <= (long)((ulong)rowData.level[1]); + if (flag) + { + return this.m_table.Table[i]; + } + } + return null; + } + + public void GetDragonGuildLivenessRowsByLevel(uint partnerLevel, out List lst) + { + lst = new List(); + for (int i = 0; i < this.m_table.Table.Length; i++) + { + DragonGuildLivenessTable.RowData rowData = this.m_table.Table[i]; + bool flag = partnerLevel >= rowData.level[0] && partnerLevel <= rowData.level[1]; + if (flag) + { + lst.Add(rowData); + } + } + lst.Sort(new Comparison(this.Compare)); + } + + private int Compare(DragonGuildLivenessTable.RowData left, DragonGuildLivenessTable.RowData right) + { + bool flag = left.liveness < right.liveness; + int result; + if (flag) + { + result = -1; + } + else + { + result = 1; + } + return result; + } + + public bool IsChestOpened(int index) + { + uint num = 1u << index; + return (this.m_takeChest & num) > 0u; + } + + public int FindNeedShowReward() + { + bool flag = this.CurExp >= this.MaxExp; + int result; + if (flag) + { + result = 0; + } + else + { + List list; + this.GetDragonGuildLivenessRowsByLevel(XPartnerDocument.Doc.CurPartnerLevel, out list); + for (int i = 0; i < list.Count; i++) + { + bool flag2 = !this.IsChestOpened(i + 1); + if (flag2) + { + return i; + } + } + result = 0; + } + return result; + } + + public bool IsHadRedPoint() + { + List list; + this.GetDragonGuildLivenessRowsByLevel(XPartnerDocument.Doc.CurPartnerLevel, out list); + for (int i = 0; i < list.Count; i++) + { + bool flag = !this.IsChestOpened(i + 1) && this.m_curExp >= list[i].liveness; + if (flag) + { + return true; + } + } + return false; + } + + public void ReqDragonGuildLivenessInfo() + { + RpcC2M_GetDragonGuildLiveness rpc = new RpcC2M_GetDragonGuildLiveness(); + XSingleton.singleton.Send(rpc); + } + + public void ReqTakeDragonGuildChest(uint index) + { + RpcC2G_TakeDragonGuildChest rpcC2G_TakeDragonGuildChest = new RpcC2G_TakeDragonGuildChest(); + rpcC2G_TakeDragonGuildChest.oArg.index = index; + XSingleton.singleton.Send(rpcC2G_TakeDragonGuildChest); + } + + public void OnGetDragonGuildLivenessInfoBack(GetPartnerLivenessRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_curExp = oRes.liveness; + this.m_takeChest = oRes.takedchest; + this.m_recordList.Clear(); + for (int i = 0; i < oRes.record.Count; i++) + { + this.m_recordList.Add(new DragonGuildLivenessRecord(oRes.record[i])); + } + XDragonGuildDocument.Doc.IsHadLivenessRedPoint = this.IsHadRedPoint(); + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.FillContent(); + } + } + } + } + } + + public void OnTakeDragonGuildChestBack(TakePartnerChestArg oArg, TakePartnerChestRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_takeChest = oRes.takedchest; + XDragonGuildDocument.Doc.IsHadLivenessRedPoint = this.IsHadRedPoint(); + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.ResetBoxRedDot((int)(oArg.index - 1u)); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildLiveness.cs.meta b/Client/Assets/Scripts/XMainClient/DragonGuildLiveness.cs.meta new file mode 100644 index 00000000..068b6ed3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildLiveness.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fddfcbf531b66f4baadb8d1b3384fa9 +timeCreated: 1611403519 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildLivenessRecord.cs b/Client/Assets/Scripts/XMainClient/DragonGuildLivenessRecord.cs new file mode 100644 index 00000000..40b5beca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildLivenessRecord.cs @@ -0,0 +1,74 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class DragonGuildLivenessRecord : LoopItemData + { + public string ShowString + { + get + { + return this.m_showString; + } + } + + public string ShowTimeStr + { + get + { + return this.m_showTimeStr; + } + } + + public string Name + { + get + { + return this.m_name; + } + } + + public uint Time + { + get + { + return this.m_time; + } + } + + private string m_showString = ""; + + private string m_showTimeStr = ""; + + private string m_name; + + private uint m_time; + + public DragonGuildLivenessRecord(PartnerLivenessItem item) + { + this.SetString(item); + this.m_time = item.time; + this.m_name = item.name; + this.m_showTimeStr = XSingleton.singleton.TimeAgoFormatString((int)item.time); + } + + private void SetString(PartnerLivenessItem item) + { + XDailyActivitiesDocument specificDocument = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + ActivityTable.RowData activityBasicInfo = specificDocument.GetActivityBasicInfo(item.actid); + bool flag = activityBasicInfo == null; + if (flag) + { + this.m_showString = null; + XSingleton.singleton.AddErrorLog(string.Format("id is error,{0}", item.actid), null, null, null, null, null); + } + else + { + this.m_showString = string.Format(XSingleton.singleton.GetString("PartnerLivenessRecord"), item.name, activityBasicInfo.name, activityBasicInfo.value); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildLivenessRecord.cs.meta b/Client/Assets/Scripts/XMainClient/DragonGuildLivenessRecord.cs.meta new file mode 100644 index 00000000..476a2508 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildLivenessRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 428bd53757d7ef34a9a4cbfce8f3c789 +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildMemberSortType.cs b/Client/Assets/Scripts/XMainClient/DragonGuildMemberSortType.cs new file mode 100644 index 00000000..bb0e4ba6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildMemberSortType.cs @@ -0,0 +1,20 @@ +using System; + +namespace XMainClient +{ + internal enum DragonGuildMemberSortType + { + DGMST_ID, + DGMST_TITLE, + DGMST_LEVEL, + DGMST_POSITION, + DGMST_PPT, + DGMST_ACTIVE, + DGMST_ONLINE, + DGMST_MAX, + DGMST_NAME, + DGMST_PROFESSION, + DGMST_TIME, + DGMST_INHERIT + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildMemberSortType.cs.meta b/Client/Assets/Scripts/XMainClient/DragonGuildMemberSortType.cs.meta new file mode 100644 index 00000000..f1c3eb79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildMemberSortType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6847bbc3bd82cb44c8d107696aaebf7c +timeCreated: 1611403881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildPermission.cs b/Client/Assets/Scripts/XMainClient/DragonGuildPermission.cs new file mode 100644 index 00000000..ce7573db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildPermission.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal enum DragonGuildPermission + { + DGEM_DONOTHING = -10, + DGEM_INVALID = -1, + DGEM_DISMISS, + DGEM_CHANGELEADER, + DGEM_SET_VICELEADER, + DGEM_SETTINGS, + DGEM_APPROVAL, + DGEM_FIREMEMBER, + DGEM_ANNOUNCEMENT, + DGEM_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildPermission.cs.meta b/Client/Assets/Scripts/XMainClient/DragonGuildPermission.cs.meta new file mode 100644 index 00000000..b24ee3d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildPermission.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 922f4705450580d44afe863bf952d252 +timeCreated: 1611404146 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildPosition.cs b/Client/Assets/Scripts/XMainClient/DragonGuildPosition.cs new file mode 100644 index 00000000..633c3220 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildPosition.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum DragonGuildPosition + { + DGPOS_INVALID = -1, + DGPOS_LEADER, + DGPOS_VICELEADER, + DGPOS_MEMBER, + DGPOS_COUNT + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildPosition.cs.meta b/Client/Assets/Scripts/XMainClient/DragonGuildPosition.cs.meta new file mode 100644 index 00000000..a6ee0685 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b906e3d91000d804e832d0accbc6d571 +timeCreated: 1611404408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs b/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs new file mode 100644 index 00000000..d12ebbd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs @@ -0,0 +1,77 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class DragonGuildShopRecord + { + public ulong RoleId + { + get + { + return this.m_roleId; + } + } + + public string PlayerName + { + get + { + return this.m_name; + } + } + + public string ItemName + { + get + { + return this.m_row.ItemName[0]; + } + } + + public string TimeStr + { + get + { + return this.m_timeStr; + } + } + + public uint BuyCount + { + get + { + return this.m_count; + } + } + + private ulong m_roleId; + + private ItemList.RowData m_row; + + private uint m_count; + + private uint m_time; + + private string m_name; + + private string m_timeStr; + + public DragonGuildShopRecord(DragonGuildShopRecordItem item) + { + this.m_roleId = item.roleid; + this.m_row = XBagDocument.GetItemConf((int)item.itemid); + bool flag = this.m_row == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("can not find this item,itemid = " + item.itemid.ToString(), null, null, null, null, null); + } + this.m_count = item.itemcount; + this.m_name = XTitleDocument.GetTitleWithFormat(item.titleId, item.name); + this.m_time = item.time; + this.m_timeStr = XSingleton.singleton.TimeFormatSince1970((int)item.time, XStringDefineProxy.GetString("TimeFormate"), true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs.meta b/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs.meta new file mode 100644 index 00000000..27be6f43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonGuildShopRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14cee6a2fd64f0a47bf9f02591a7c5e9 +timeCreated: 1611403260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonRwdItem.cs b/Client/Assets/Scripts/XMainClient/DragonRwdItem.cs new file mode 100644 index 00000000..93fc7807 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonRwdItem.cs @@ -0,0 +1,12 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class DragonRwdItem + { + public DargonReward.RowData row; + + public AchieveState state; + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonRwdItem.cs.meta b/Client/Assets/Scripts/XMainClient/DragonRwdItem.cs.meta new file mode 100644 index 00000000..c4e3001f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonRwdItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8f5edcf494d4ef4abd0aa4722a243cd +timeCreated: 1611404755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DragonShareType.cs b/Client/Assets/Scripts/XMainClient/DragonShareType.cs new file mode 100644 index 00000000..5876c3e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonShareType.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + public enum DragonShareType + { + None, + MainCityShare, + ActivityShare, + BigSShare, + DungeonShare, + ShowWin, + ShowGlory, + Pandora + } +} diff --git a/Client/Assets/Scripts/XMainClient/DragonShareType.cs.meta b/Client/Assets/Scripts/XMainClient/DragonShareType.cs.meta new file mode 100644 index 00000000..3ffad2e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DragonShareType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca752a67fd250c142bde580c4e8c6c6f +timeCreated: 1611404541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DungeonShareBehavior.cs b/Client/Assets/Scripts/XMainClient/DungeonShareBehavior.cs new file mode 100644 index 00000000..81cd8095 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DungeonShareBehavior.cs @@ -0,0 +1,65 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class DungeonShareBehavior : DlgBehaviourBase + { + public Transform _logoQQ; + + public Transform _logoWechat; + + public Transform _wechatShare; + + public Transform _QQShare; + + public IXUIButton _QQ_specialTarget; + + public IXUIButton _QQ_ZoneTarget; + + public IXUIButton _wechat_SpecialTarget; + + public IXUIButton _wechat_ZoneTarget; + + public IXUIButton _shareBtn; + + public IXUIButton _closeBtn; + + public IXUILabel _nameLabel; + + public IXUILabel _serverLabel; + + public IXUILabel _noteLabel; + + public IXUILabel _firstLabel; + + public IUIDummy _uiDummy; + + public IXUITexture _bgTexture; + + public IXUISprite _bgText; + + private void Awake() + { + this._logoQQ = base.transform.Find("Bg/LogoQQ"); + this._logoWechat = base.transform.Find("Bg/LogoWC"); + this._wechatShare = base.transform.Find("Bg/Wc"); + this._wechat_SpecialTarget = (this._wechatShare.Find("Wc1").GetComponent("XUIButton") as IXUIButton); + this._wechat_ZoneTarget = (this._wechatShare.Find("Wc2").GetComponent("XUIButton") as IXUIButton); + this._QQShare = base.transform.Find("Bg/QQ"); + this._QQ_specialTarget = (this._QQShare.Find("QQ1").GetComponent("XUIButton") as IXUIButton); + this._QQ_ZoneTarget = (this._QQShare.Find("QQ2").GetComponent("XUIButton") as IXUIButton); + this._shareBtn = (base.transform.Find("Bg/ShareBtn").GetComponent("XUIButton") as IXUIButton); + this._nameLabel = (base.transform.Find("Bg/label/name").GetComponent("XUILabel") as IXUILabel); + this._serverLabel = (base.transform.Find("Bg/label/fuwuqi").GetComponent("XUILabel") as IXUILabel); + this._noteLabel = (base.transform.Find("Bg/Note").GetComponent("XUILabel") as IXUILabel); + this._uiDummy = (base.transform.Find("Bg/Snapshot").GetComponent("UIDummy") as IUIDummy); + this._bgTexture = (base.transform.Find("Bg/pHanging").GetComponent("XUITexture") as IXUITexture); + this._closeBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this._bgText = (base.transform.Find("Bg/cxlbfont").GetComponent("XUISprite") as IXUISprite); + this._firstLabel = (base.transform.Find("Bg/cxlbfont/t").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DungeonShareBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/DungeonShareBehavior.cs.meta new file mode 100644 index 00000000..7468e7ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DungeonShareBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5baa4db22489a5141a84746b4642b98f +timeCreated: 1611403799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/DungeonShareView.cs b/Client/Assets/Scripts/XMainClient/DungeonShareView.cs new file mode 100644 index 00000000..ff9e06b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DungeonShareView.cs @@ -0,0 +1,267 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class DungeonShareView : DlgBase + { + public override string fileName + { + get + { + return "Battle/DungeonShareDlg"; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private uint _token; + + private bool _hideMaqueeView = false; + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + this.ResetTimer(); + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnHide() + { + this.ResetTimer(); + XScreenShotShareDocument specificDocument = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + specificDocument.SpriteID = 0u; + specificDocument.CurShareBgType = ShareBgType.NoneType; + bool flag = this._hideMaqueeView && DlgBase.singleton.IsLoaded(); + if (flag) + { + this._hideMaqueeView = false; + DlgBase.singleton.SetAlpha(1f); + } + base.OnHide(); + } + + private void ResetTimer() + { + bool flag = this._token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._token); + } + this._token = 0u; + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour._shareBtn.SetAlpha(1f); + base.uiBehaviour._closeBtn.gameObject.SetActive(true); + base.uiBehaviour._firstLabel.gameObject.SetActive(true); + this.ResetPlatformShareBtnState(); + this.RefreshShareContent(); + this.RefreshPersonalInfo(); + } + + private void InitProperties() + { + base.uiBehaviour._shareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickShareBtn)); + base.uiBehaviour._wechat_SpecialTarget.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickWcSpecialShare)); + base.uiBehaviour._wechat_ZoneTarget.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickWcZoneShare)); + base.uiBehaviour._QQ_specialTarget.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickQQSpecialShare)); + base.uiBehaviour._QQ_ZoneTarget.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickQQZoneShare)); + base.uiBehaviour._closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickClose)); + base.uiBehaviour._noteLabel.SetText(""); + } + + private bool OnclickClose(IXUIButton button) + { + this.ResetData(); + this.SetVisibleWithAnimation(false, null); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshTopUI(); + } + return true; + } + + private bool OnclickQQZoneShare(IXUIButton button) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.DungeonShare); + XSingleton.singleton.ShareScreen(false); + this.SetVisible(false, true); + return true; + } + + private bool OnclickQQSpecialShare(IXUIButton button) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.DungeonShare); + XSingleton.singleton.ShareScreen(true); + this.SetVisible(false, true); + return true; + } + + private bool OnclickWcZoneShare(IXUIButton button) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.DungeonShare); + XSingleton.singleton.ShareScreen(false); + this.SetVisible(false, true); + return true; + } + + private bool OnclickWcSpecialShare(IXUIButton button) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.DungeonShare); + XSingleton.singleton.ShareScreen(true); + this.SetVisible(false, true); + return true; + } + + private bool OnClickShareBtn(IXUIButton button) + { + bool flag = XSingleton.singleton.CheckPlatfomStatus(); + if (flag) + { + base.uiBehaviour._wechatShare.gameObject.SetActive(false); + base.uiBehaviour._QQShare.gameObject.SetActive(false); + base.uiBehaviour._shareBtn.SetAlpha(0f); + base.uiBehaviour._closeBtn.gameObject.SetActive(false); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetAlpha(0f); + this._hideMaqueeView = true; + } + base.uiBehaviour._firstLabel.gameObject.SetActive(false); + this._token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(this.ResetShareBtn), null); + XSingleton.singleton.CaptureScreenshot(null); + } + return true; + } + + private void ResetShareBtn(object param) + { + base.uiBehaviour._shareBtn.SetAlpha(1f); + base.uiBehaviour._closeBtn.gameObject.SetActive(true); + base.uiBehaviour._firstLabel.gameObject.SetActive(true); + bool flag = this._hideMaqueeView && DlgBase.singleton.IsLoaded(); + if (flag) + { + this._hideMaqueeView = false; + DlgBase.singleton.SetAlpha(1f); + } + this.RefreshPlatformShareBtnState(); + this._token = 0u; + } + + private void RefreshPlatformShareBtnState() + { + base.uiBehaviour._QQShare.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + base.uiBehaviour._QQ_ZoneTarget.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + base.uiBehaviour._QQ_specialTarget.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + base.uiBehaviour._wechatShare.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + base.uiBehaviour._wechat_SpecialTarget.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + base.uiBehaviour._wechat_ZoneTarget.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + } + + private void ResetPlatformShareBtnState() + { + base.uiBehaviour._logoQQ.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + base.uiBehaviour._logoWechat.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + base.uiBehaviour._wechatShare.gameObject.SetActive(false); + base.uiBehaviour._QQShare.gameObject.SetActive(false); + } + + private void RefreshSharePlatform() + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + base.uiBehaviour._QQShare.gameObject.SetActive(true); + base.uiBehaviour._logoQQ.gameObject.SetActive(true); + base.uiBehaviour._logoWechat.gameObject.SetActive(false); + base.uiBehaviour._wechatShare.gameObject.SetActive(false); + } + else + { + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag2) + { + base.uiBehaviour._wechatShare.gameObject.SetActive(true); + base.uiBehaviour._logoWechat.gameObject.SetActive(true); + base.uiBehaviour._logoQQ.gameObject.SetActive(false); + base.uiBehaviour._QQShare.gameObject.SetActive(false); + } + } + } + + private void RefreshPersonalInfo() + { + base.uiBehaviour._nameLabel.SetText(XSingleton.singleton.XPlayerData.Name); + base.uiBehaviour._serverLabel.SetText(XSingleton.singleton.Server); + } + + private void RefreshShareContent() + { + XScreenShotShareDocument specificDocument = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + XTuple shareBgTexturePath = specificDocument.GetShareBgTexturePath(); + bool flag = !string.IsNullOrEmpty(shareBgTexturePath.Item1); + if (flag) + { + base.uiBehaviour._bgTexture.SetTexturePath("atlas/UI/common/Pic/" + shareBgTexturePath.Item1); + } + XAchievementDocument specificDocument2 = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + bool flag2 = specificDocument2.FirstPassSceneID != 0u && specificDocument.CurShareBgType == ShareBgType.DungeonType; + if (flag2) + { + base.uiBehaviour._bgText.gameObject.SetActive(true); + base.uiBehaviour._bgText.SetSprite(shareBgTexturePath.Item2); + base.uiBehaviour._firstLabel.gameObject.SetActive(true); + } + else + { + base.uiBehaviour._bgText.gameObject.SetActive(false); + } + } + + private void ResetData() + { + XAchievementDocument specificDocument = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + specificDocument.FirstPassSceneID = 0u; + XScreenShotShareDocument specificDocument2 = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + specificDocument2.SpriteID = 0u; + specificDocument2.CurShareBgType = ShareBgType.NoneType; + } + + public void RefreshShareResult(string result) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/DungeonShareView.cs.meta b/Client/Assets/Scripts/XMainClient/DungeonShareView.cs.meta new file mode 100644 index 00000000..cbaac1bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/DungeonShareView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46ac6758d4ab1134285edf03b13e29cf +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ECombineMatType.cs b/Client/Assets/Scripts/XMainClient/ECombineMatType.cs new file mode 100644 index 00000000..8287873a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ECombineMatType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum ECombineMatType + { + ECombined, + EIndependent + } +} diff --git a/Client/Assets/Scripts/XMainClient/ECombineMatType.cs.meta b/Client/Assets/Scripts/XMainClient/ECombineMatType.cs.meta new file mode 100644 index 00000000..7c088fda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ECombineMatType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8a0ee4132eaa6640a1cdecd852f587b +timeCreated: 1611404894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ECombineStatus.cs b/Client/Assets/Scripts/XMainClient/ECombineStatus.cs new file mode 100644 index 00000000..f0eaf033 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ECombineStatus.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum ECombineStatus + { + ENotCombine, + ECombineing, + ECombined + } +} diff --git a/Client/Assets/Scripts/XMainClient/ECombineStatus.cs.meta b/Client/Assets/Scripts/XMainClient/ECombineStatus.cs.meta new file mode 100644 index 00000000..1b1df23c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ECombineStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb2456922304b8347bc99bd3383d9c07 +timeCreated: 1611404440 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EFun.cs b/Client/Assets/Scripts/XMainClient/EFun.cs new file mode 100644 index 00000000..424b9cbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EFun.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + public enum EFun + { + ECamera = 1, + ENpcShadow, + ERealTimeShadow = 4, + EFxPro = 8, + ESceneFade = 16, + ERoleShadow = 32, + EEnemyShadow = 64, + EFadeInOut = 128, + ELowEffect = 256, + ECommonHigh = 512 + } +} diff --git a/Client/Assets/Scripts/XMainClient/EFun.cs.meta b/Client/Assets/Scripts/XMainClient/EFun.cs.meta new file mode 100644 index 00000000..1213390b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EFun.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33ed03434a2ac804a8ada052fdc4919d +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EProcessStatus.cs b/Client/Assets/Scripts/XMainClient/EProcessStatus.cs new file mode 100644 index 00000000..e647ef6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EProcessStatus.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum EProcessStatus + { + ENotProcess, + EProcessing, + EPreProcess, + EProcessed + } +} diff --git a/Client/Assets/Scripts/XMainClient/EProcessStatus.cs.meta b/Client/Assets/Scripts/XMainClient/EProcessStatus.cs.meta new file mode 100644 index 00000000..fca9a2ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EProcessStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cbaff683d3fb770408087b0eff1b9d31 +timeCreated: 1611404546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EProtocolErrCode.cs b/Client/Assets/Scripts/XMainClient/EProtocolErrCode.cs new file mode 100644 index 00000000..1034a75f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EProtocolErrCode.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum EProtocolErrCode + { + ENoErr, + EDeSerializeErr, + ENullProtocol + } +} diff --git a/Client/Assets/Scripts/XMainClient/EProtocolErrCode.cs.meta b/Client/Assets/Scripts/XMainClient/EProtocolErrCode.cs.meta new file mode 100644 index 00000000..a15a2720 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EProtocolErrCode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2f1dac0d1040904381f415a4cc731dc +timeCreated: 1611404845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ESettingConfig.cs b/Client/Assets/Scripts/XMainClient/ESettingConfig.cs new file mode 100644 index 00000000..3c9f28eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ESettingConfig.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + public enum ESettingConfig + { + ESceneUnloadResource = 1, + EMultiThreadProtoBuf, + ESkipProtoIgnore = 4, + EHalfTexResolution = 8, + ELowEffect = 16, + EUIGLOBALMERGE = 32, + EUISELECTMERGE = 64, + EUILOWDEVICEMERGE = 128, + EApm = 256, + EClearBundle = 512, + ELoadCurveTable = 1024, + EDelayLoad = 2048, + EFilterFarFx = 4096 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ESettingConfig.cs.meta b/Client/Assets/Scripts/XMainClient/ESettingConfig.cs.meta new file mode 100644 index 00000000..f168af71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ESettingConfig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3cf849f79bd5244caf0a24a125f654b +timeCreated: 1611404600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ESkinFadeType.cs b/Client/Assets/Scripts/XMainClient/ESkinFadeType.cs new file mode 100644 index 00000000..b822e094 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ESkinFadeType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum ESkinFadeType + { + ESkinFade4, + ESkinFade8, + ENum + } +} diff --git a/Client/Assets/Scripts/XMainClient/ESkinFadeType.cs.meta b/Client/Assets/Scripts/XMainClient/ESkinFadeType.cs.meta new file mode 100644 index 00000000..21e1e0b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ESkinFadeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a7f817df9e06b4469aa3fcc0ed1860b +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ESpriteStatus.cs b/Client/Assets/Scripts/XMainClient/ESpriteStatus.cs new file mode 100644 index 00000000..595b94d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ESpriteStatus.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum ESpriteStatus + { + ENormal, + EMount, + EDead + } +} diff --git a/Client/Assets/Scripts/XMainClient/ESpriteStatus.cs.meta b/Client/Assets/Scripts/XMainClient/ESpriteStatus.cs.meta new file mode 100644 index 00000000..7d5187a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ESpriteStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3f95d97a887487489fb1c0363666e61 +timeCreated: 1611404850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EXStage.cs b/Client/Assets/Scripts/XMainClient/EXStage.cs new file mode 100644 index 00000000..f388ab4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EXStage.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public enum EXStage : byte + { + Null, + Login, + SelectChar, + World, + Hall + } +} diff --git a/Client/Assets/Scripts/XMainClient/EXStage.cs.meta b/Client/Assets/Scripts/XMainClient/EXStage.cs.meta new file mode 100644 index 00000000..4a649532 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EXStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e34b87e8c05ae5140b42851a7af9aaa4 +timeCreated: 1611404732 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EffectDataParams.cs b/Client/Assets/Scripts/XMainClient/EffectDataParams.cs new file mode 100644 index 00000000..ee252f6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EffectDataParams.cs @@ -0,0 +1,79 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EffectDataParams : XDataBase + { + private Dictionary type2DataMap = new Dictionary(default(XFastEnumIntEqualityComparer)); + + public class TypeDataCollection : XDataBase + { + public CombatEffectType type; + + public List datas = new List(); + + public override void Recycle() + { + base.Recycle(); + for (int i = 0; i < this.datas.Count; i++) + { + this.datas[i].Recycle(); + } + this.datas.Clear(); + this.type = CombatEffectType.CET_INVALID; + } + } + + public class TypeData : XDataBase + { + public uint effectID; + + public uint templatebuffID; + + public List randomParams = new List(); + + public List constantParams = new List(); + + public override void Recycle() + { + base.Recycle(); + this.randomParams.Clear(); + this.constantParams.Clear(); + this.effectID = 0u; + this.templatebuffID = 0u; + } + } + + public EffectDataParams.TypeDataCollection GetCollection(CombatEffectType type) + { + EffectDataParams.TypeDataCollection result; + this.type2DataMap.TryGetValue(type, out result); + return result; + } + + public EffectDataParams.TypeDataCollection EnsureGetCollection(CombatEffectType type) + { + EffectDataParams.TypeDataCollection data; + bool flag = !this.type2DataMap.TryGetValue(type, out data); + if (flag) + { + data = XDataPool.GetData(); + data.type = type; + this.type2DataMap[type] = data; + } + return data; + } + + public override void Recycle() + { + base.Recycle(); + foreach (KeyValuePair keyValuePair in this.type2DataMap) + { + keyValuePair.Value.Recycle(); + } + this.type2DataMap.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/EffectDataParams.cs.meta b/Client/Assets/Scripts/XMainClient/EffectDataParams.cs.meta new file mode 100644 index 00000000..bfe53baf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EffectDataParams.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f8eabf091824c9438a9ce6d30290a73 +timeCreated: 1611404245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EffectIDType.cs b/Client/Assets/Scripts/XMainClient/EffectIDType.cs new file mode 100644 index 00000000..58ca86d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EffectIDType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum EffectIDType + { + EIT_Buff = 1, + EIT_Skill + } +} diff --git a/Client/Assets/Scripts/XMainClient/EffectIDType.cs.meta b/Client/Assets/Scripts/XMainClient/EffectIDType.cs.meta new file mode 100644 index 00000000..49ae0039 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EffectIDType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24dbcb7bbc9ab784fa9a2d47e134b4ae +timeCreated: 1611403462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EmblemPosition.cs b/Client/Assets/Scripts/XMainClient/EmblemPosition.cs new file mode 100644 index 00000000..c64092e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EmblemPosition.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal enum EmblemPosition + { + EMBLEM_START, + EMBLEMI = 0, + EMBLEMII, + EMBLEMIII, + EMBLEMIV, + EMBLEMV, + EMBLEMVI, + EMBLEMVII, + EMBLEMVIII, + EMBLEMIX, + EMBLEMX, + EMBLEMXI, + EMBLEMXII, + EMBLEMXIII, + EMBLEMIXV, + EMBLEMXV, + EMBLEMXVI, + EMBLEM_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/EmblemPosition.cs.meta b/Client/Assets/Scripts/XMainClient/EmblemPosition.cs.meta new file mode 100644 index 00000000..6a46b687 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EmblemPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5fe74663e553ef4489ca6d4585f86ee5 +timeCreated: 1611403830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EmblemSetHandler.cs b/Client/Assets/Scripts/XMainClient/EmblemSetHandler.cs new file mode 100644 index 00000000..d81d1c26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EmblemSetHandler.cs @@ -0,0 +1,369 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EmblemSetHandler : DlgHandlerBase + { + private bool mIsNeedEnough; + + private XItem mLastItem; + + private XBagWindow bagWindow; + + private XItemSelector itemSelector; + + private List> mNeedList = new List>(); + + private IXUIButton btnCreate; + + private IXUIButton btnMaterialAccess; + + private IXUILabel lbBtnCost; + + private IXUILabel lbLevel; + + private IXUILabel lbJob; + + private IXUILabel lbTips; + + private IXUILabel lbAttrs; + + private GameObject goItem; + + private GameObject goNullHint; + + private NeedItemView[] goNeedItems; + + private XEquipCreateDocument mDoc; + + private XPurchaseDocument mPurchaseDoc; + + private ItemComposeTable.RowData mComposeData; + + private ulong m_itemUid = 0UL; + + protected override void Init() + { + base.Init(); + this.mDoc = XEquipCreateDocument.Doc; + this.mLastItem = null; + this.mPurchaseDoc = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + this.btnCreate = (base.PanelObject.transform.Find("Create").GetComponent("XUIButton") as IXUIButton); + this.btnMaterialAccess = (base.PanelObject.transform.Find("BtnMaterialAccess").GetComponent("XUIButton") as IXUIButton); + this.lbBtnCost = (this.btnCreate.gameObject.transform.Find("V").GetComponent("XUILabel") as IXUILabel); + this.lbAttrs = (base.PanelObject.transform.Find("Attrs").GetComponent("XUILabel") as IXUILabel); + this.lbLevel = (this.lbAttrs.gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.lbJob = (this.lbAttrs.gameObject.transform.Find("Job").GetComponent("XUILabel") as IXUILabel); + this.lbTips = (this.lbAttrs.gameObject.transform.Find("TipsLab").GetComponent("XUILabel") as IXUILabel); + this.goNullHint = base.PanelObject.transform.Find("Null").gameObject; + this.goItem = base.PanelObject.transform.Find("Item").gameObject; + XSingleton.singleton.DrawItem(this.goItem, null); + Transform transform = base.PanelObject.transform.Find("ItemNeeds"); + this.goNeedItems = new NeedItemView[transform.childCount]; + for (int i = 0; i < this.goNeedItems.Length; i++) + { + this.goNeedItems[i] = new NeedItemView(true); + this.goNeedItems[i].FindFrom(transform.GetChild(i)); + this.goNeedItems[i].ResetItem(); + this.goNeedItems[i].sprIcon.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickNeedItem)); + } + this.lbTips.SetText(this.mDoc.EmblemAttrEndString); + this.lbTips.gameObject.SetActive(false); + this.lbLevel.SetVisible(false); + this.bagWindow = new XBagWindow(base.PanelObject, new ItemUpdateHandler(this._RankWrapItemListUpdated), new GetItemHandler(this.mDoc.GetEmblemList)); + this.bagWindow.Init(); + this.itemSelector = new XItemSelector(0u); + } + + public override void RegisterEvent() + { + base.Init(); + this.btnCreate.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickCreateButton)); + this.btnMaterialAccess.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickMaterialAccessButton)); + } + + public void RefreshItemList() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.OnShow(); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.OnShow(); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.DrawItem(this.goItem, null); + this.goNullHint.SetActive(true); + this.lbAttrs.Alpha = 0f; + this.lbTips.gameObject.SetActive(false); + this.lbBtnCost.SetText("0"); + this.mComposeData = null; + this.bagWindow.UpdateBag(); + this.bagWindow.ResetPosition(); + bool flag = this.mLastItem != null; + if (flag) + { + XItem bagItemByUID = XSingleton.singleton.Doc.XBagDoc.GetBagItemByUID(this.mLastItem.uid); + bool flag2 = bagItemByUID == null || bagItemByUID.itemCount <= 0; + if (flag2) + { + this.mLastItem = null; + this.itemSelector.Hide(); + for (int i = 0; i < this.goNeedItems.Length; i++) + { + this.goNeedItems[i].ResetItem(); + } + } + else + { + Transform transform = this.bagWindow.FindChildByName(this.mLastItem.itemID.ToString()); + bool flag3 = transform != null; + if (flag3) + { + IXUISprite icon = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + this.OnItemClicked(icon); + } + } + } + } + + protected override void OnHide() + { + this.itemSelector.Hide(); + base.OnHide(); + base.PanelObject.SetActive(false); + } + + public override void OnUnload() + { + this.mLastItem = null; + this.mComposeData = null; + this.mDoc = null; + this.mPurchaseDoc = null; + this.mNeedList.Clear(); + this.bagWindow = null; + this.itemSelector.Unload(); + this.itemSelector = null; + base.OnUnload(); + } + + private void _RankWrapItemListUpdated(Transform t, int index) + { + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("Redpoint").gameObject; + bool active = false; + bool flag = this.bagWindow.m_XItemList == null || index >= this.bagWindow.m_XItemList.Count || index < 0; + if (flag) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + t.gameObject.name = "empty"; + ixuisprite.RegisterSpriteClickEventHandler(null); + } + else + { + XItem xitem = this.bagWindow.m_XItemList[index]; + XSingleton.singleton.DrawItem(t.gameObject, xitem); + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + t.gameObject.name = xitem.itemID.ToString(); + active = this.mDoc.IsHadRedDot(xitem.itemID); + } + gameObject.SetActive(active); + } + + private bool OnClickMaterialAccessButton(IXUIButton btn) + { + int num = 184; + ItemList.RowData itemConf = XBagDocument.GetItemConf(num); + bool flag = itemConf != null && itemConf.Access.Count > 0; + if (flag) + { + List list = new List(); + List list2 = new List(); + for (int i = 0; i < itemConf.Access.Count; i++) + { + list.Add(itemConf.Access[i, 0]); + list2.Add(itemConf.Access[i, 1]); + } + DlgBase.singleton.ShowAccess(num, list, list2, null); + } + return true; + } + + private bool OnClickCreateButton(IXUIButton btn) + { + this.mDoc.CurUid = this.m_itemUid; + bool flag = this.mComposeData != null; + if (flag) + { + bool flag2 = this.mIsNeedEnough; + if (flag2) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + bool flag3 = (long)this.mComposeData.Coin <= (long)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.GOLD); + if (flag3) + { + VIPTable.RowData byVIP = specificDocument.VIPReader.GetByVIP(vipLevel); + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM); + List list = new List(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref list); + bool flag4 = (long)list.Count >= (long)((ulong)byVIP.EmblemMax); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EmblemBagFull"), "fece00"); + return true; + } + DlgBase.singleton.equipSetCreateConfirmHandler.SetVisible(true); + DlgBase.singleton.equipSetCreateConfirmHandler.SetEquipInfo(this.mComposeData.ItemID); + } + else + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + XPurchaseInfo purchaseInfo = this.mPurchaseDoc.GetPurchaseInfo(level, vipLevel, ItemEnum.GOLD); + bool flag5 = purchaseInfo.totalBuyNum > purchaseInfo.curBuyNum; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLotteryGoldNotEnough"), "fece00"); + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.GOLD); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EQUIPCREATE_COIN_CANNOT_EXCHANGE"), "fece00"); + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_REINFORCE_LACKMONEY"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EQUIPCREATE_EMBLEMSET_NO_SELECT"), "fece00"); + } + return true; + } + + private void OnClickMainItem(IXUISprite icon) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(this.m_itemUid); + bool bBinding = false; + bool flag = bagItemByUID != null; + if (flag) + { + bBinding = bagItemByUID.bBinding; + } + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(XBagDocument.MakeXItem((int)icon.ID, bBinding), icon, false, 0u); + } + + private void OnItemClicked(IXUISprite icon) + { + XItem xitem = this.bagWindow.m_XItemList[(int)icon.ID]; + this.m_itemUid = xitem.uid; + bool flag = xitem == null; + if (flag) + { + this.mDoc.IsBind = false; + } + else + { + this.mDoc.IsBind = xitem.bBinding; + } + this.goNullHint.SetActive(false); + this.lbAttrs.Alpha = 1f; + this.itemSelector.Select(icon); + this.mComposeData = this.mDoc.GetEmblemComposeDataByMetalID(xitem.itemID); + this.mLastItem = xitem; + this.mNeedList.Clear(); + bool flag2 = this.mComposeData != null; + if (flag2) + { + XItemDrawerMgr.Param.bBinding = xitem.bBinding; + XSingleton.singleton.normalItemDrawer.DrawItem(this.goItem, this.mComposeData.ItemID, 0, false); + IXUISprite ixuisprite = this.goItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)this.mComposeData.ItemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickMainItem)); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.mComposeData.ItemID); + this.lbJob.SetText(XSingleton.singleton.GetProfName((int)itemConf.Profession)); + this.mIsNeedEnough = true; + string text; + int emblemComposeAttrByEmblemID = this.mDoc.GetEmblemComposeAttrByEmblemID(this.mComposeData.ItemID, out text); + this.lbAttrs.SetText(text); + bool flag3 = emblemComposeAttrByEmblemID == -1 || emblemComposeAttrByEmblemID > 2; + if (flag3) + { + this.lbTips.gameObject.SetActive(false); + } + else + { + this.lbTips.gameObject.SetActive(true); + } + this.lbBtnCost.SetText(this.mComposeData.Coin.ToString()); + bool flag4 = this.mComposeData.SrcItem1[0] > 0; + if (flag4) + { + this.mNeedList.Add(new Seq2(this.mComposeData.SrcItem1[0], this.mComposeData.SrcItem1[1])); + } + bool flag5 = this.mComposeData.SrcItem2[0] > 0; + if (flag5) + { + this.mNeedList.Add(new Seq2(this.mComposeData.SrcItem2[0], this.mComposeData.SrcItem2[1])); + } + bool flag6 = this.mComposeData.SrcItem3[0] > 0; + if (flag6) + { + this.mNeedList.Add(new Seq2(this.mComposeData.SrcItem3[0], this.mComposeData.SrcItem3[1])); + } + bool flag7 = this.mComposeData.SrcItem4[0] > 0; + if (flag7) + { + this.mNeedList.Add(new Seq2(this.mComposeData.SrcItem4[0], this.mComposeData.SrcItem4[1])); + } + } + else + { + XSingleton.singleton.DrawItem(this.goItem, xitem); + this.lbBtnCost.SetText("0"); + this.lbAttrs.SetText(this.mDoc.DefaultEmblemAttrString); + this.lbJob.SetText(string.Empty); + } + int count = this.mNeedList.Count; + for (int i = 0; i < this.goNeedItems.Length; i++) + { + bool flag8 = i < count; + if (flag8) + { + bool flag9 = !this.goNeedItems[i].SetItem(this.mNeedList[i].value0, this.mNeedList[i].value1); + if (flag9) + { + this.mIsNeedEnough = false; + } + } + else + { + this.goNeedItems[i].ResetItem(); + } + } + } + + private void OnClickNeedItem(IXUISprite icon) + { + XSingleton.singleton.ShowItemAccess((int)icon.ID, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/EmblemSetHandler.cs.meta b/Client/Assets/Scripts/XMainClient/EmblemSetHandler.cs.meta new file mode 100644 index 00000000..50ddf686 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EmblemSetHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 080bb91417291cb4dbe2d97a63d481af +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EmblemSlotStatus.cs b/Client/Assets/Scripts/XMainClient/EmblemSlotStatus.cs new file mode 100644 index 00000000..1e865d80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EmblemSlotStatus.cs @@ -0,0 +1,58 @@ +using System; + +namespace XMainClient +{ + internal class EmblemSlotStatus + { + public bool LevelIsdOpen + { + get + { + return this.m_levelIsOpen; + } + set + { + this.m_levelIsOpen = value; + } + } + + public bool HadSlotting + { + get + { + return this.m_hadSlotting; + } + set + { + this.m_hadSlotting = value; + } + } + + public bool IsLock + { + get + { + return !this.m_levelIsOpen | !this.m_hadSlotting; + } + } + + public int Slot + { + get + { + return this.m_slot; + } + } + + private bool m_levelIsOpen = false; + + private bool m_hadSlotting = false; + + private int m_slot = 0; + + public EmblemSlotStatus(int slot) + { + this.m_slot = slot; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/EmblemSlotStatus.cs.meta b/Client/Assets/Scripts/XMainClient/EmblemSlotStatus.cs.meta new file mode 100644 index 00000000..26e0b639 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EmblemSlotStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0f7d6b17fe57124ca037e7b0ed32236 +timeCreated: 1611404700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EnchantCheckResult.cs b/Client/Assets/Scripts/XMainClient/EnchantCheckResult.cs new file mode 100644 index 00000000..4308671d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EnchantCheckResult.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum EnchantCheckResult + { + ECR_OK, + ECR_EQUIP_TOO_LOW, + ECR_ITEM_TOO_LOW, + ECR_ITEM_TOO_HIGH, + ECR_INVALID + } +} diff --git a/Client/Assets/Scripts/XMainClient/EnchantCheckResult.cs.meta b/Client/Assets/Scripts/XMainClient/EnchantCheckResult.cs.meta new file mode 100644 index 00000000..30596bb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EnchantCheckResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18dc5c56b810489429162e5be7d7dfa1 +timeCreated: 1611403299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EndRecordCallBack.cs b/Client/Assets/Scripts/XMainClient/EndRecordCallBack.cs new file mode 100644 index 00000000..ef355274 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EndRecordCallBack.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void EndRecordCallBack(); +} diff --git a/Client/Assets/Scripts/XMainClient/EndRecordCallBack.cs.meta b/Client/Assets/Scripts/XMainClient/EndRecordCallBack.cs.meta new file mode 100644 index 00000000..71e4f4e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EndRecordCallBack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 671d17639c6419d40b6f71364fcc79a2 +timeCreated: 1611403856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs b/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs new file mode 100644 index 00000000..19c47753 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs @@ -0,0 +1,59 @@ +using System; + +namespace XMainClient +{ + internal class EnhanceAttr + { + public string Name + { + get + { + return this.m_name; + } + } + + public uint BeforeAttrNum + { + get + { + return this.m_beforeAttrNum; + } + } + + public uint AfterAttrNum + { + get + { + return this.m_afterAttrNum; + } + } + + public int D_value + { + get + { + return (int)(this.m_afterAttrNum - this.m_beforeAttrNum); + } + } + + private string m_name = ""; + + private uint m_beforeAttrNum = 0u; + + private uint m_afterAttrNum = 0u; + + public EnhanceAttr(uint attrID, uint attrValue, uint afterValue) + { + this.m_name = XStringDefineProxy.GetString((XAttributeDefine)attrID); + this.m_beforeAttrNum = attrValue; + this.m_afterAttrNum = afterValue; + } + + public EnhanceAttr(string name, uint beforeValue, uint afterValue) + { + this.m_name = name; + this.m_beforeAttrNum = beforeValue; + this.m_afterAttrNum = afterValue; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs.meta b/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs.meta new file mode 100644 index 00000000..6ab45681 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EnhanceAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af0c264ca20babd498e05d978153bb7a +timeCreated: 1611404341 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Enmity.cs b/Client/Assets/Scripts/XMainClient/Enmity.cs new file mode 100644 index 00000000..19d4fb5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Enmity.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Enmity + { + public float value; + + public XEntity entity; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Enmity.cs.meta b/Client/Assets/Scripts/XMainClient/Enmity.cs.meta new file mode 100644 index 00000000..537f3b0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Enmity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06efc026db0f6a14991ec11e0faabe6c +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EntityMask.cs b/Client/Assets/Scripts/XMainClient/EntityMask.cs new file mode 100644 index 00000000..0c00041d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EntityMask.cs @@ -0,0 +1,30 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EntityMask + { + public static uint Moba_Home = 4u; + + public static uint Moba_Tower = 8u; + + public static uint Role = 1u; + + public static uint Fade = 2147483648u; + + public static uint CreateTag(XEntityStatistics.RowData data) + { + uint num = 0u; + bool flag = data != null && data.Tag != null; + if (flag) + { + for (int i = 0; i < data.Tag.Length; i++) + { + num |= 1u << (int)data.Tag[i]; + } + } + return num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/EntityMask.cs.meta b/Client/Assets/Scripts/XMainClient/EntityMask.cs.meta new file mode 100644 index 00000000..eae8350f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EntityMask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b812a72d08345c479ae19331320ba40 +timeCreated: 1611403168 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip.meta b/Client/Assets/Scripts/XMainClient/Equip.meta new file mode 100644 index 00000000..b81a877b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 5c4fcbf9e0227974883e782f954cf8b7 +folderAsset: yes +timeCreated: 1611548937 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipAttrData.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrData.cs new file mode 100644 index 00000000..4703e1e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrData.cs @@ -0,0 +1,119 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipAttrData + { + public uint Slot + { + get + { + return this.m_slot; + } + } + + public uint AttrId + { + get + { + return this.m_attrId; + } + } + + public bool IsCanSmelt + { + get + { + return this.m_isCanSmelt; + } + } + + public uint Prob + { + get + { + return this.m_prob; + } + } + + public EquipAttrRange RangValue + { + get + { + return this.m_rang; + } + } + + private uint m_slot = 0u; + + private uint m_attrId = 0u; + + private uint m_prob = 0u; + + private bool m_isCanSmelt = false; + + private EquipAttrRange m_rang; + + public EquipAttrData(RandomAttributes.RowData row) + { + this.m_slot = (uint)row.Slot; + this.m_attrId = (uint)row.AttrID; + this.m_prob = (uint)row.Prob; + this.m_isCanSmelt = (row.CanSmelt == 1); + this.m_rang = new EquipAttrRange(row.Range); + } + + public EquipAttrData(ForgeAttributes.RowData row) + { + this.m_slot = (uint)row.Slot; + this.m_attrId = (uint)row.AttrID; + this.m_prob = (uint)row.Prob; + this.m_isCanSmelt = (row.CanSmelt == 1); + this.m_rang = new EquipAttrRange(row.Range); + } + + public double GetPercentValue(uint attrValue) + { + float num = (this.m_rang.D_value == 0f) ? 1f : this.m_rang.D_value; + bool flag = attrValue < this.m_rang.Max; + double num2; + if (flag) + { + num2 = (double)((attrValue - this.m_rang.Min) * 100f / num); + } + else + { + num2 = 100.0; + } + return num2 / 100.0; + } + + public string GetColor(uint attrValue) + { + float num = (this.m_rang.D_value == 0f) ? 1f : this.m_rang.D_value; + bool flag = attrValue != this.m_rang.Max; + float num2; + if (flag) + { + num2 = (attrValue - this.m_rang.Min) * 100f / num; + } + else + { + num2 = 100f; + } + int quality = EquipAttrDataMgr.MarkList.Count - 1; + for (int i = 0; i < EquipAttrDataMgr.MarkList.Count; i++) + { + bool flag2 = num2 < (float)EquipAttrDataMgr.MarkList[i]; + if (flag2) + { + quality = i; + break; + } + } + return XSingleton.singleton.GetItemQualityRGB(quality); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipAttrData.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrData.cs.meta new file mode 100644 index 00000000..0c384ef3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5fe0557313e2e8c42a8a6873194eb723 +timeCreated: 1611403830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipAttrDataMgr.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrDataMgr.cs new file mode 100644 index 00000000..efed7b59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrDataMgr.cs @@ -0,0 +1,76 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipAttrDataMgr + { + public static List MarkList + { + get + { + bool flag = EquipAttrDataMgr.m_markList == null; + if (flag) + { + EquipAttrDataMgr.m_markList = XSingleton.singleton.GetIntList("SmeltCorlorRange"); + } + return EquipAttrDataMgr.m_markList; + } + } + + protected static List m_markList; + + protected Dictionary m_attrDic = new Dictionary(); + + public EquipSlotAttrDatas GetAttrData(uint itemId) + { + EquipSlotAttrDatas equipSlotAttrDatas; + bool flag = this.m_attrDic.TryGetValue(itemId, out equipSlotAttrDatas); + EquipSlotAttrDatas result; + if (flag) + { + result = equipSlotAttrDatas; + } + else + { + this.SetAttrByItemId(itemId); + bool flag2 = this.m_attrDic.TryGetValue(itemId, out equipSlotAttrDatas); + if (flag2) + { + result = equipSlotAttrDatas; + } + else + { + result = null; + } + } + return result; + } + + public bool IsHadThisEquip(int itemId) + { + bool flag = this.m_attrDic.ContainsKey((uint)itemId); + bool result; + if (flag) + { + result = true; + } + else + { + this.SetAttrByItemId((uint)itemId); + result = this.m_attrDic.ContainsKey((uint)itemId); + } + return result; + } + + protected virtual void SetAttrByItemId(uint itemId) + { + } + + public void DataClear() + { + this.m_attrDic.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipAttrDataMgr.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrDataMgr.cs.meta new file mode 100644 index 00000000..26b125e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrDataMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9dfb12922ccb6d44959713b9cd4d888 +timeCreated: 1611404901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs new file mode 100644 index 00000000..958d3800 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs @@ -0,0 +1,52 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipAttrRange + { + public float Min + { + get + { + return this.m_min; + } + } + + public float Max + { + get + { + return this.m_max; + } + } + + public float D_value + { + get + { + return this.m_max - this.m_min; + } + } + + public uint Prob + { + get + { + return this.m_prob; + } + } + + private float m_min = 0f; + + private float m_max = 0f; + + private uint m_prob = 0u; + + public EquipAttrRange(SeqRef seq) + { + this.m_min = seq[0]; + this.m_max = seq[1]; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs.meta new file mode 100644 index 00000000..240e2596 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipAttrRange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 26c2d5765a7a6924a8bba8d452545f6c +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipCompare.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipCompare.cs new file mode 100644 index 00000000..85083bdb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipCompare.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum EquipCompare + { + EC_NONE, + EC_MORE_POWERFUL, + EC_CAN_SMELT, + EC_CAN_EQUIP = 4 + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipCompare.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipCompare.cs.meta new file mode 100644 index 00000000..07850c1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipCompare.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77739da59e488b6489d6f709fafe6b89 +timeCreated: 1611403954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipFuseData.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipFuseData.cs new file mode 100644 index 00000000..13cb5add --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipFuseData.cs @@ -0,0 +1,33 @@ +using System; + +namespace XMainClient +{ + public class EquipFuseData + { + public uint AttrId { get; set; } + + public uint BeforeBaseAttrNum { get; set; } + + public uint BeforeAddNum { get; set; } + + public uint AfterAddNum { get; set; } + + public bool IsExtra { get; set; } + + public uint UpNum + { + get + { + return (this.AfterAddNum > this.BeforeAddNum) ? (this.AfterAddNum - this.BeforeAddNum) : 0u; + } + } + + public void Init() + { + this.AttrId = 0u; + this.BeforeAddNum = 0u; + this.AfterAddNum = 0u; + this.IsExtra = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipFuseData.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipFuseData.cs.meta new file mode 100644 index 00000000..6853e281 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipFuseData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1083f63ad16e9d4d81eac97b9078df5 +timeCreated: 1611404252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipFusionDocument.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipFusionDocument.cs new file mode 100644 index 00000000..dfa7c898 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipFusionDocument.cs @@ -0,0 +1,685 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipFusionDocument : XDocComponent + { + public override uint ID + { + get + { + return EquipFusionDocument.uuID; + } + } + + public static EquipFusionDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(EquipFusionDocument.uuID) as EquipFusionDocument; + } + } + + public EquipFusionHandler Handler { get; set; } + + public int NeedNum + { + get + { + return this.m_needNum; + } + } + + public int MaterialId + { + get + { + return this.m_materialId; + } + } + + public ulong SelectUid + { + get + { + return this.m_selectUid; + } + } + + public List FuseDataList + { + get + { + return this.m_fuseDataList; + } + } + + public bool IsBreak { get; set; } + + public bool IsMax { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("EquipFusionDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static EquipFusionExpTable m_equipFusionExpTab = new EquipFusionExpTable(); + + public static EquipFusionTable m_equipfusionTab = new EquipFusionTable(); + + private ulong m_selectUid = 0UL; + + private int m_materialId = 0; + + private int m_needNum = 0; + + private List m_fuseDataList = new List(); + + private Dictionary m_effectPathDic; + + private Dictionary m_fuseIconNameDic; + + public static bool IsEquipDown = false; + + private Dictionary> m_addAttrDic = new Dictionary>(); + + private static Dictionary m_equipFusionDic = new Dictionary(); + + public bool GetEffectPath(uint breakLevel, out string path) + { + bool flag = this.m_effectPathDic == null; + if (flag) + { + this.m_effectPathDic = new Dictionary(); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("EquipfuseLevelEffectPath", XGlobalConfig.AllSeparators); + for (int i = 0; i < andSeparateValue.Length; i += 2) + { + bool flag2 = i + 1 == andSeparateValue.Length; + if (flag2) + { + break; + } + uint key; + bool flag3 = uint.TryParse(andSeparateValue[i], out key); + if (flag3) + { + bool flag4 = !this.m_effectPathDic.ContainsKey(key); + if (flag4) + { + this.m_effectPathDic.Add(key, andSeparateValue[i + 1]); + } + } + } + } + int num = 0; + uint key2 = 0u; + foreach (KeyValuePair keyValuePair in this.m_effectPathDic) + { + bool flag5 = num == 0; + if (flag5) + { + bool flag6 = breakLevel < keyValuePair.Key; + if (flag6) + { + break; + } + key2 = keyValuePair.Key; + } + else + { + bool flag7 = breakLevel >= keyValuePair.Key; + if (flag7) + { + key2 = keyValuePair.Key; + } + } + num++; + } + path = string.Empty; + bool flag8 = this.m_effectPathDic.ContainsKey(key2); + bool result; + if (flag8) + { + path = this.m_effectPathDic[key2]; + result = true; + } + else + { + result = false; + } + return result; + } + + public string GetFuseIconName(uint breakLevel) + { + bool flag = this.m_fuseIconNameDic == null; + if (flag) + { + this.m_fuseIconNameDic = new Dictionary(); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("EquipFuseIconNames", XGlobalConfig.AllSeparators); + for (int i = 0; i < andSeparateValue.Length; i += 2) + { + bool flag2 = i + 1 == andSeparateValue.Length; + if (flag2) + { + break; + } + uint key; + bool flag3 = uint.TryParse(andSeparateValue[i], out key); + if (flag3) + { + bool flag4 = !this.m_fuseIconNameDic.ContainsKey(key); + if (flag4) + { + this.m_fuseIconNameDic.Add(key, andSeparateValue[i + 1]); + } + } + } + } + int num = 0; + uint key2 = 0u; + foreach (KeyValuePair keyValuePair in this.m_fuseIconNameDic) + { + bool flag5 = num == 0; + if (flag5) + { + bool flag6 = breakLevel < keyValuePair.Key; + if (flag6) + { + break; + } + key2 = keyValuePair.Key; + } + else + { + bool flag7 = breakLevel >= keyValuePair.Key; + if (flag7) + { + key2 = keyValuePair.Key; + } + } + num++; + } + bool flag8 = this.m_fuseIconNameDic.ContainsKey(key2); + string result; + if (flag8) + { + result = this.m_fuseIconNameDic[key2]; + } + else + { + result = ""; + } + return result; + } + + public static void Execute(OnLoadedCallback callback = null) + { + EquipFusionDocument.AsyncLoader.AddTask("Table/EquipFusion", EquipFusionDocument.m_equipfusionTab, false); + EquipFusionDocument.AsyncLoader.AddTask("Table/EquipFusionExp", EquipFusionDocument.m_equipFusionExpTab, false); + EquipFusionDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + for (int i = 0; i < EquipFusionDocument.m_equipfusionTab.Table.Length; i++) + { + EquipFusionTable.RowData rowData = EquipFusionDocument.m_equipfusionTab.Table[i]; + bool flag = rowData == null; + if (!flag) + { + ulong key = EquipFusionDocument.MakeKey(rowData.Profession, (uint)rowData.Slot, (uint)rowData.EquipType, (uint)rowData.BreakNum); + bool flag2 = !EquipFusionDocument.m_equipFusionDic.ContainsKey(key); + if (flag2) + { + EquipFusionDocument.m_equipFusionDic.Add(key, rowData); + } + } + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.EventSubscribe(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + EquipFusionDocument.IsEquipDown = false; + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + public void SelectEquip(ulong uid) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag = itemByUID == null; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag2 = equipConf == null; + if (!flag2) + { + bool flag3 = equipConf.FuseCanBreakNum == 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CanNotFusion"), "fece00"); + } + else + { + this.m_selectUid = uid; + this.SetFuseData(); + bool flag4 = !DlgBase.singleton.IsVisible(); + if (!flag4) + { + bool flag5 = this.Handler != null && this.Handler.IsVisible(); + if (flag5) + { + this.ClearSelectMaterial(); + this.Handler.ShowUI(false); + } + else + { + DlgBase.singleton.ShowRightPopView(DlgBase.singleton._equipFusionHandler); + } + bool flag6 = DlgBase.singleton._equipHandler != null; + if (flag6) + { + DlgBase.singleton._equipHandler.SelectEquip(uid); + } + } + } + } + } + } + + public void AddMaterial(int itemId) + { + this.m_materialId = itemId; + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.UpdateItem(); + } + } + + public void ReqEquipFuseMes() + { + RpcC2G_FuseEquip rpcC2G_FuseEquip = new RpcC2G_FuseEquip(); + rpcC2G_FuseEquip.oArg.uid = this.m_selectUid; + bool flag = !this.IsBreak; + if (flag) + { + rpcC2G_FuseEquip.oArg.type = 0u; + } + else + { + rpcC2G_FuseEquip.oArg.type = 1u; + } + rpcC2G_FuseEquip.oArg.itemID = (uint)this.MaterialId; + XSingleton.singleton.Send(rpcC2G_FuseEquip); + } + + public void OnGetEquipFuseInfo(FuseEquipRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool isBreak = this.IsBreak; + this.SetFuseData(); + bool flag4 = isBreak || this.IsBreak; + if (flag4) + { + this.ClearSelectMaterial(); + } + bool flag5 = this.Handler != null && this.Handler.IsVisible(); + if (flag5) + { + this.Handler.ShowUI(isBreak); + } + } + } + } + } + + private void ClearSelectMaterial() + { + this.m_materialId = 0; + this.m_needNum = 0; + } + + public List GetNowFuseData(XItem item, uint profession) + { + List list = new List(); + bool flag = item == null || item.Type != ItemType.EQUIP; + List result; + if (flag) + { + result = list; + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + bool flag2 = equipConf == null; + if (flag2) + { + result = list; + } + else + { + XEquipItem xequipItem = item as XEquipItem; + this.GetTotalAddAttr(xequipItem.fuseInfo, equipConf, profession, false); + for (int i = 0; i < xequipItem.changeAttr.Count; i++) + { + EquipFuseData equipFuseData = new EquipFuseData(); + equipFuseData.Init(); + equipFuseData.AttrId = xequipItem.changeAttr[i].AttrID; + equipFuseData.BeforeBaseAttrNum = xequipItem.changeAttr[i].AttrValue; + bool flag3 = this.m_addAttrDic.ContainsKey(equipFuseData.AttrId); + if (flag3) + { + equipFuseData.BeforeAddNum = this.m_addAttrDic[equipFuseData.AttrId].Item1; + this.m_addAttrDic.Remove(equipFuseData.AttrId); + } + list.Add(equipFuseData); + } + foreach (KeyValuePair> keyValuePair in this.m_addAttrDic) + { + EquipFuseData equipFuseData2 = new EquipFuseData(); + equipFuseData2.Init(); + equipFuseData2.AttrId = keyValuePair.Key; + equipFuseData2.BeforeBaseAttrNum = keyValuePair.Value.Item1; + equipFuseData2.IsExtra = true; + list.Add(equipFuseData2); + } + result = list; + } + } + return result; + } + + private void SetFuseData() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_selectUid); + bool flag = itemByUID == null || itemByUID.Type != ItemType.EQUIP; + if (!flag) + { + bool flag2 = XSingleton.singleton.Player == null; + if (!flag2) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag3 = equipConf == null; + if (!flag3) + { + this.m_fuseDataList.Clear(); + XEquipItem xequipItem = itemByUID as XEquipItem; + int breakNum = (int)xequipItem.fuseInfo.BreakNum; + EquipFusionTable.RowData fuseData = this.GetFuseData(XSingleton.singleton.Player.BasicTypeID, equipConf, (uint)breakNum); + bool flag4 = fuseData == null; + if (!flag4) + { + this.IsBreak = (xequipItem.fuseInfo.FuseExp >= fuseData.LevelNum * fuseData.NeedExpPerLevel); + this.IsMax = (this.IsBreak && breakNum >= (int)equipConf.FuseCanBreakNum); + this.GetTotalAddAttr(xequipItem.fuseInfo, equipConf, XSingleton.singleton.Player.BasicTypeID, true); + foreach (KeyValuePair> keyValuePair in this.m_addAttrDic) + { + EquipFuseData equipFuseData = new EquipFuseData(); + equipFuseData.Init(); + equipFuseData.AttrId = keyValuePair.Key; + equipFuseData.BeforeAddNum = keyValuePair.Value.Item1; + equipFuseData.AfterAddNum = keyValuePair.Value.Item2; + this.m_fuseDataList.Add(equipFuseData); + } + } + } + } + } + } + + private void GetTotalAddAttr(XequipFuseInfo info, EquipList.RowData equipRow, uint profession, bool needNextAttr) + { + this.m_addAttrDic.Clear(); + int num = 0; + while ((long)num < (long)((ulong)(info.BreakNum + 1u))) + { + EquipFusionTable.RowData fuseData = this.GetFuseData(profession, equipRow, (uint)num); + bool flag = fuseData == null; + if (!flag) + { + bool flag2 = (long)num == (long)((ulong)info.BreakNum); + if (flag2) + { + for (int i = 0; i < (int)fuseData.LevelAddAttr.count; i++) + { + uint num2 = info.FuseExp / fuseData.NeedExpPerLevel; + num2 = ((num2 > fuseData.LevelNum) ? fuseData.LevelNum : num2); + bool flag3 = !this.m_addAttrDic.ContainsKey(fuseData.LevelAddAttr[i, 0]); + if (flag3) + { + XTuple xtuple = new XTuple(); + xtuple.Item1 = fuseData.LevelAddAttr[i, 1] * num2; + this.m_addAttrDic.Add(fuseData.LevelAddAttr[i, 0], xtuple); + } + else + { + this.m_addAttrDic[fuseData.LevelAddAttr[i, 0]].Item1 += fuseData.LevelAddAttr[i, 1] * num2; + } + } + } + else + { + for (int j = 0; j < (int)fuseData.LevelAddAttr.count; j++) + { + bool flag4 = !this.m_addAttrDic.ContainsKey(fuseData.LevelAddAttr[j, 0]); + if (flag4) + { + XTuple xtuple2 = new XTuple(); + xtuple2.Item1 = fuseData.LevelAddAttr[j, 1] * fuseData.LevelNum; + this.m_addAttrDic.Add(fuseData.LevelAddAttr[j, 0], xtuple2); + } + else + { + this.m_addAttrDic[fuseData.LevelAddAttr[j, 0]].Item1 += fuseData.LevelAddAttr[j, 1] * fuseData.LevelNum; + } + } + for (int k = 0; k < (int)fuseData.BreakAddAttr.count; k++) + { + bool flag5 = !this.m_addAttrDic.ContainsKey(fuseData.BreakAddAttr[k, 0]); + if (flag5) + { + XTuple xtuple3 = new XTuple(); + xtuple3.Item1 = fuseData.BreakAddAttr[k, 1]; + this.m_addAttrDic.Add(fuseData.BreakAddAttr[k, 0], xtuple3); + } + else + { + this.m_addAttrDic[fuseData.BreakAddAttr[k, 0]].Item1 += fuseData.BreakAddAttr[k, 1]; + } + } + } + } + num++; + } + foreach (KeyValuePair> keyValuePair in this.m_addAttrDic) + { + keyValuePair.Value.Item2 = keyValuePair.Value.Item1; + } + bool flag6 = needNextAttr && !this.IsMax; + if (flag6) + { + this.GetNextTotalAddAttr(info, equipRow, profession); + } + } + + private void GetNextTotalAddAttr(XequipFuseInfo info, EquipList.RowData equipRow, uint profession) + { + EquipFusionTable.RowData fuseData = this.GetFuseData(profession, equipRow, info.BreakNum); + bool flag = fuseData == null; + if (!flag) + { + bool flag2 = info.FuseExp >= fuseData.LevelNum * fuseData.NeedExpPerLevel; + if (flag2) + { + for (int i = 0; i < (int)fuseData.BreakAddAttr.count; i++) + { + bool flag3 = !this.m_addAttrDic.ContainsKey(fuseData.BreakAddAttr[i, 0]); + if (flag3) + { + XTuple xtuple = new XTuple(); + xtuple.Item2 = fuseData.BreakAddAttr[i, 1]; + this.m_addAttrDic.Add(fuseData.BreakAddAttr[i, 0], xtuple); + } + else + { + this.m_addAttrDic[fuseData.BreakAddAttr[i, 0]].Item2 += fuseData.BreakAddAttr[i, 1]; + } + } + } + else + { + for (int j = 0; j < (int)fuseData.LevelAddAttr.count; j++) + { + bool flag4 = !this.m_addAttrDic.ContainsKey(fuseData.LevelAddAttr[j, 0]); + if (flag4) + { + XTuple xtuple2 = new XTuple(); + xtuple2.Item2 = fuseData.LevelAddAttr[j, 1]; + this.m_addAttrDic.Add(fuseData.LevelAddAttr[j, 0], xtuple2); + } + else + { + this.m_addAttrDic[fuseData.LevelAddAttr[j, 0]].Item2 += fuseData.LevelAddAttr[j, 1]; + } + } + } + } + } + + private bool IsNewAttr(uint attrId, uint attrNum) + { + for (int i = 0; i < this.m_fuseDataList.Count; i++) + { + bool flag = this.m_fuseDataList[i].AttrId == attrId; + if (flag) + { + this.m_fuseDataList[i].AfterAddNum += attrNum; + return false; + } + } + return true; + } + + private bool OnAddItem(XEventArgs args) + { + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.UpdateButtom(); + } + return true; + } + + public uint GetAddExp(uint coreItemId) + { + EquipFusionExpTable.RowData byCoreItemId = EquipFusionDocument.m_equipFusionExpTab.GetByCoreItemId(coreItemId); + bool flag = byCoreItemId != null; + uint result; + if (flag) + { + result = byCoreItemId.AddExp; + } + else + { + result = 0u; + } + return result; + } + + public SeqListRef GetAssistItems(uint coreItemId) + { + EquipFusionExpTable.RowData byCoreItemId = EquipFusionDocument.m_equipFusionExpTab.GetByCoreItemId(coreItemId); + bool flag = byCoreItemId != null; + SeqListRef result; + if (flag) + { + result = byCoreItemId.AssistItemId; + } + else + { + result = default(SeqListRef); + } + return result; + } + + private static ulong MakeKey(uint profession, uint slot, uint equipType, uint breakNum) + { + return (ulong)profession << 48 | (ulong)slot << 32 | (ulong)((ulong)equipType << 16) | (ulong)breakNum; + } + + public EquipFusionTable.RowData GetFuseData(uint profession, uint slot, uint equipType, uint breakNum) + { + ulong key = EquipFusionDocument.MakeKey(profession, slot, equipType, breakNum); + EquipFusionTable.RowData result = null; + bool flag = !EquipFusionDocument.m_equipFusionDic.TryGetValue(key, out result); + if (flag) + { + XSingleton.singleton.AddGreenLog(string.Format("the data not exit int equipFusion.txt,profession = {0},slot = {1},equipType = {2},breakNum = {3}", new object[] + { + profession, + slot, + equipType, + breakNum + }), null, null, null, null, null); + } + return result; + } + + public EquipFusionTable.RowData GetFuseData(uint profession, EquipList.RowData row, uint breakNum) + { + bool flag = row == null; + EquipFusionTable.RowData result; + if (flag) + { + result = null; + } + else + { + result = this.GetFuseData(profession, (uint)row.EquipPos, (uint)row.EquipType, breakNum); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipFusionDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipFusionDocument.cs.meta new file mode 100644 index 00000000..fcafff16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipFusionDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfff3f45a1dc16e4ca3f14268ce13074 +timeCreated: 1611404583 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipLoadTask.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipLoadTask.cs new file mode 100644 index 00000000..c821a180 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipLoadTask.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipLoadTask + { + public EPartType part = EPartType.ENum; + + public FashionPositionInfo fpi; + + public EProcessStatus processStatus = EProcessStatus.ENotProcess; + + protected string location = ""; + + public EquipLoadTask(EPartType p) + { + this.part = p; + this.fpi.Reset(); + } + + public bool IsSamePart(ref FashionPositionInfo newFpi) + { + return this.fpi.Equals(newFpi) && this.processStatus >= EProcessStatus.EPreProcess; + } + + public bool MakePath(ref FashionPositionInfo newFpi, HashSet loadedPath) + { + this.fpi = newFpi; + bool flag = this.fpi.presentID > 0u; + if (flag) + { + this.location = "Prefabs/" + XSingleton.singleton.EntityInfo.GetByPresentID(this.fpi.presentID).Prefab; + this.processStatus = EProcessStatus.EProcessing; + } + else + { + bool flag2 = !string.IsNullOrEmpty(this.fpi.fashionName); + if (flag2) + { + bool flag3 = this.fpi.fashionName.StartsWith("/"); + if (flag3) + { + this.location = "Equipments" + this.fpi.fashionName; + } + else + { + this.location = "Equipments/" + this.fpi.fashionName; + } + this.processStatus = EProcessStatus.EProcessing; + } + } + bool flag4 = loadedPath != null; + bool result; + if (flag4) + { + bool flag5 = !string.IsNullOrEmpty(this.location) && !loadedPath.Contains(this.location); + if (flag5) + { + loadedPath.Add(this.location); + result = true; + } + else + { + this.processStatus = EProcessStatus.EProcessed; + result = false; + } + } + else + { + result = !string.IsNullOrEmpty(this.location); + } + return result; + } + + public virtual void Load(XEntity e, int prefessionID, ref FashionPositionInfo newFpi, bool async, HashSet loadedPath) + { + bool flag = loadedPath != null; + if (flag) + { + bool flag2 = !string.IsNullOrEmpty(this.location) && !loadedPath.Contains(this.location); + if (flag2) + { + loadedPath.Add(this.location); + } + else + { + this.processStatus = EProcessStatus.EProcessed; + } + } + } + + public virtual void Reset(XEntity e) + { + this.processStatus = EProcessStatus.ENotProcess; + this.location = ""; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipLoadTask.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipLoadTask.cs.meta new file mode 100644 index 00000000..fd45f6ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipLoadTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac77f39ef40385640a26d351a1bc61cf +timeCreated: 1611404331 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipPosition.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipPosition.cs new file mode 100644 index 00000000..41800c11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipPosition.cs @@ -0,0 +1,20 @@ +using System; + +namespace XMainClient +{ + internal enum EquipPosition + { + EQUIP_START, + Headgear = 0, + Upperbody, + Lowerbody, + Gloves, + Boots, + Mainweapon, + Secondaryweapon, + Necklace, + Earrings, + Rings, + EQUIP_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipPosition.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipPosition.cs.meta new file mode 100644 index 00000000..bd1d8246 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 618a5e72522e87c498250cf0b1284b41 +timeCreated: 1611403839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateConfirmHandler.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateConfirmHandler.cs new file mode 100644 index 00000000..fb1e0b58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateConfirmHandler.cs @@ -0,0 +1,96 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipSetCreateConfirmHandler : DlgHandlerBase + { + private IXUIButton mBtnCancel; + + private IXUIButton mBtnOK; + + private IXUILabel mLbLevel; + + private EquipSetItemBaseView mItemView; + + private XEquipCreateDocument mDoc; + + protected override void Init() + { + base.Init(); + this.mDoc = XEquipCreateDocument.Doc; + Transform transform = base.PanelObject.transform.Find("OK"); + this.mBtnOK = (transform.GetComponent("XUIButton") as IXUIButton); + transform = base.PanelObject.transform.Find("Cancel"); + this.mBtnCancel = (transform.GetComponent("XUIButton") as IXUIButton); + transform = base.PanelObject.transform.Find("Level"); + this.mLbLevel = (transform.GetComponent("XUILabel") as IXUILabel); + this.mItemView = new EquipSetItemBaseView(); + this.mItemView.FindFrom(base.PanelObject.transform); + } + + public override void RegisterEvent() + { + base.Init(); + this.mBtnOK.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonOK)); + this.mBtnCancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonCancel)); + } + + public void SetEquipInfo(int _dataID) + { + ItemComposeTable.RowData itemConposeDataByID = XEquipCreateDocument.GetItemConposeDataByID(_dataID); + bool flag = itemConposeDataByID == null; + if (!flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemConposeDataByID.ItemID); + bool flag2 = itemConf == null; + if (!flag2) + { + this.mLbLevel.SetText(itemConf.ReqLevel.ToString()); + bool isBind = this.mDoc.IsBind; + bool flag3 = itemConf.ItemType == 1 || itemConf.ItemType == 31; + if (flag3) + { + isBind = itemConposeDataByID.IsBind; + } + bool flag4 = !itemConf.CanTrade; + if (flag4) + { + isBind = true; + } + bool flag5 = base.IsVisible() && this.mItemView != null; + if (flag5) + { + EquipSetItemBaseView.stEquipInfoParam param; + param.isShowTooltip = false; + param.playerProf = 0; + this.mItemView.SetItemInfo(itemConf, param, isBind); + } + this.mBtnOK.ID = (ulong)((long)_dataID); + } + } + } + + private bool OnClickButtonOK(IXUIButton btn) + { + base.SetVisible(false); + this.mDoc.StartCreateEquip((int)btn.ID); + return true; + } + + private bool OnClickButtonCancel(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + public override void OnUnload() + { + this.mDoc = null; + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateConfirmHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateConfirmHandler.cs.meta new file mode 100644 index 00000000..54f0deea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateConfirmHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92f46c42d970cd74eb799183d75faec5 +timeCreated: 1611404148 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateHandler.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateHandler.cs new file mode 100644 index 00000000..8fd6db7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateHandler.cs @@ -0,0 +1,215 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipSetCreateHandler : DlgHandlerBase + { + public string CreatePath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_createPath); + if (flag) + { + this.m_createPath = XSingleton.singleton.GetValue("EquipCreatEffectPath"); + } + return this.m_createPath; + } + } + + private IXUIButton mBtnDo; + + private IXUILabel mLbBtnDo; + + private IXUILabel mLbText; + + private IXUISprite mSprBar; + + private EquipSetItemBaseView mItemView; + + private GameObject mBarView; + + private GameObject mSuccessEffect; + + private int mBarFullWidth; + + private XEquipCreateDocument mEquipCreateDoc; + + private XFx m_creatFx = null; + + private string m_createPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.mEquipCreateDoc = XEquipCreateDocument.Doc; + Transform transform = base.PanelObject.transform.Find("Do"); + this.mBtnDo = (transform.GetComponent("XUIButton") as IXUIButton); + transform = base.PanelObject.transform.Find("Text"); + this.mLbText = (transform.GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Do/T"); + this.mLbBtnDo = (transform.GetComponent("XUILabel") as IXUILabel); + this.mItemView = new EquipSetItemBaseView(); + this.mItemView.FindFrom(base.PanelObject.transform); + transform = base.PanelObject.transform.Find("Making"); + this.mBarView = transform.gameObject; + transform = base.PanelObject.transform.Find("Making/Bar"); + this.mSprBar = (transform.GetComponent("XUISprite") as IXUISprite); + transform = base.PanelObject.transform.Find("Suc"); + this.mSuccessEffect = transform.gameObject; + this.mBarFullWidth = this.mSprBar.spriteWidth; + } + + public override void RegisterEvent() + { + base.Init(); + this.mBtnDo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonOK)); + } + + public void SetEquipInfo(int _itemID) + { + bool flag = this.mItemView.goItem != null; + if (flag) + { + this.mItemView.goItem.SetActive(false); + } + } + + public void SetFinishEquipInfo(XItem item) + { + bool flag = this.mItemView.goItem != null; + if (flag) + { + this.mItemView.goItem.SetActive(true); + } + bool flag2 = item != null && item.uid > 0UL && item.itemID > 0; + if (flag2) + { + bool flag3 = base.IsVisible() && this.mItemView != null; + if (flag3) + { + EquipSetItemBaseView.stEquipInfoParam param; + param.isShowTooltip = false; + param.playerProf = 0; + this.mItemView.SetItemInfo(item, param, item.bBinding); + } + this.mItemView.SetFinishItem(item); + } + } + + public void SetBar(int percent) + { + percent = Mathf.Clamp(percent, 1, 100); + this.mSprBar.spriteWidth = this.mBarFullWidth * percent / 100; + } + + public void HideBtn() + { + this.mBtnDo.SetVisible(false); + } + + public void SetFinishState(bool bFinish) + { + this.mBarView.SetActive(!bFinish); + this.mSuccessEffect.SetActive(bFinish); + this.mBtnDo.SetVisible(true); + if (bFinish) + { + this.HideEffect(); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Upgrade_Gear", true, AudioChannel.Action); + this.mLbText.SetText(XStringDefineProxy.GetString("EQUIPCREATE_EQUIPSET_SUCCESS").Replace("{n}", "\n")); + this.mLbBtnDo.SetText(XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + this.mBtnDo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonOK)); + } + else + { + this.ShowEffect(); + this.mLbText.SetText(XStringDefineProxy.GetString("EQUIPCREATE_EQUIPSET_MAKING")); + this.mLbBtnDo.SetText(XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL)); + this.mBtnDo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonCancel)); + } + } + + private void ShowEffect() + { + bool flag = this.m_creatFx == null; + if (flag) + { + this.m_creatFx = XSingleton.singleton.CreateFx(this.CreatePath, null, true); + } + else + { + this.m_creatFx.SetActive(true); + } + this.m_creatFx.Play(base.PanelObject.transform.Find("Bg"), Vector3.zero, Vector3.one, 1f, true, false); + XSingleton.singleton.PlayUISound("Audio/UI/UI_datie", true, AudioChannel.Action); + } + + private void HideEffect() + { + bool flag = this.m_creatFx != null; + if (flag) + { + this.m_creatFx.SetActive(false); + this.m_creatFx.Stop(); + } + } + + private bool OnClickButtonOK(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnClickButtonCancel(IXUIButton btn) + { + bool isCreating = XEquipCreateDocument.Doc.IsCreating; + bool result; + if (isCreating) + { + result = true; + } + else + { + base.SetVisible(false); + this.mEquipCreateDoc.CancelCreateEquip(); + result = true; + } + return result; + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + this.HideEffect(); + bool flag = null != this.mSuccessEffect; + if (flag) + { + this.mSuccessEffect.SetActive(false); + } + base.PanelObject.SetActive(false); + } + + public override void OnUnload() + { + this.mEquipCreateDoc = null; + bool flag = this.m_creatFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_creatFx, true); + this.m_creatFx = null; + } + this.mSuccessEffect = null; + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateHandler.cs.meta new file mode 100644 index 00000000..583f60eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetCreateHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06c6da9b3b799e841b41439cff9e9d20 +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetHandler.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSetHandler.cs new file mode 100644 index 00000000..c8bd3b8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetHandler.cs @@ -0,0 +1,561 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipSetHandler : DlgHandlerBase + { + private IXUIWrapContent mItemListWrapContent; + + private IXUIScrollView mItemListScrollView; + + private IXUICheckBox mCurItemType2nd; + + private IXUITable mItemTypeTable; + + private IXUIScrollView mItemTypeScrollView; + + private IXUICheckBox m_levelCheck; + + private XUIPool mItemType1stPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool mItemType2ndPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Dictionary mQualityRedpointDic; + + private Dictionary mEquipSuitIDRedpointDic; + + private XEquipCreateDocument mDoc; + + private XPurchaseDocument mPurchaseDoc; + + private int mSelectLevel = 0; + + public EquipSetProfHandler equipSetProfHandler; + + private GameObject equipSetProfFrame; + + private string mNoLevelLimitString; + + protected override void Init() + { + base.Init(); + this.mCurItemType2nd = null; + this.mDoc = XEquipCreateDocument.Doc; + this.mPurchaseDoc = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + this._InitItemType(); + this._InitItemList(); + this.equipSetProfFrame = base.PanelObject.transform.Find("EquipSetProfFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this.equipSetProfHandler, this.equipSetProfFrame, null, false); + this.m_levelCheck = (base.PanelObject.transform.Find("BtnHighPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.mNoLevelLimitString = XStringDefineProxy.GetString("EQUIPCREATE_EQUIPSET_NO_LEVEL_LIMIT"); + this.mDoc.RefreshEquipSuitListUIByProf(this.mDoc.CurRoleProf, false); + this.mQualityRedpointDic = new Dictionary(); + this.mEquipSuitIDRedpointDic = new Dictionary(); + this.mSelectLevel = this.mDoc.CurShowLevel(XSingleton.singleton.XPlayerData.Level, -1); + } + + public override void RegisterEvent() + { + base.Init(); + IXUISprite ixuisprite = base.PanelObject.transform.Find("Prof/Bg").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickProfMenuSelect)); + this.m_levelCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnLevelCheckClicked)); + } + + public override void StackRefresh() + { + this.mDoc.RefreshEquipSuitListUIByLevel(this.mSelectLevel, true); + this.RefreshItemType(); + this.RefreshRedPoint(); + base.StackRefresh(); + } + + protected override void OnShow() + { + base.OnShow(); + this.mDoc.RefreshEquipSuitListUIByLevel(this.mSelectLevel, true); + this.RefreshItemType(); + this.RefreshRedPoint(); + } + + protected override void OnHide() + { + base.OnHide(); + base.PanelObject.SetActive(false); + } + + public override void OnUnload() + { + this.mEquipSuitIDRedpointDic.Clear(); + this.mEquipSuitIDRedpointDic = null; + this.mQualityRedpointDic.Clear(); + this.mQualityRedpointDic = null; + DlgHandlerBase.EnsureUnload(ref this.equipSetProfHandler); + this.equipSetProfFrame = null; + this.mDoc = null; + this.mPurchaseDoc = null; + this.mCurItemType2nd = null; + base.OnUnload(); + } + + public void RefreshRedPoint() + { + bool flag = !base.IsVisible() || 0 >= this.mItemType1stPool.ActiveCount; + if (!flag) + { + List updateItemTypeList = this.mDoc.GetUpdateItemTypeList(true); + foreach (KeyValuePair keyValuePair in this.mQualityRedpointDic) + { + keyValuePair.Value.SetActive(false); + } + foreach (KeyValuePair keyValuePair2 in this.mEquipSuitIDRedpointDic) + { + keyValuePair2.Value.SetActive(false); + } + for (int i = 0; i < updateItemTypeList.Count; i++) + { + GameObject gameObject = null; + bool flag2 = this.mQualityRedpointDic.TryGetValue(updateItemTypeList[i].quality, out gameObject); + if (flag2) + { + gameObject.SetActive(updateItemTypeList[i].redpoint); + } + for (int j = 0; j < updateItemTypeList[i].list.Count; j++) + { + GameObject gameObject2 = null; + bool flag3 = this.mEquipSuitIDRedpointDic.TryGetValue(updateItemTypeList[i].list[j].suitData.SuitID, out gameObject2); + if (flag3) + { + gameObject2.SetActive(updateItemTypeList[i].list[j].redpoint); + } + } + } + } + } + + public void RefreshItemList(List _uiList) + { + bool flag = !base.IsVisible() || _uiList == null; + if (!flag) + { + this.mItemListWrapContent.SetContentCount(_uiList.Count, false); + this.mItemListScrollView.ResetPosition(); + } + } + + public void RefreshItemList() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.mCurItemType2nd != null; + if (flag2) + { + this.OnClickItemType2nd(this.mCurItemType2nd); + } + } + } + + public void RefreshItemType() + { + bool flag = !base.IsVisible(); + if (!flag) + { + List updateItemTypeList = this.mDoc.GetUpdateItemTypeList(true); + bool flag2 = updateItemTypeList == null; + if (flag2) + { + this.RefreshItemList(); + } + else + { + List list = new List(); + for (int i = 0; i < updateItemTypeList.Count; i++) + { + bool show = updateItemTypeList[i].show; + if (show) + { + list.Add(updateItemTypeList[i]); + } + } + this.mEquipSuitIDRedpointDic.Clear(); + this.mQualityRedpointDic.Clear(); + this.mItemType1stPool.ReturnAll(false); + this.mItemType2ndPool.ReturnAll(true); + this.mCurItemType2nd = null; + bool flag3 = true; + bool flag4 = true; + for (int j = 0; j < list.Count; j++) + { + GameObject gameObject = this.mItemType1stPool.FetchGameObject(false); + gameObject.name = list[j].quality.ToString(); + this.mQualityRedpointDic[list[j].quality] = gameObject.transform.Find("RedPoint").gameObject; + GameObject gameObject2 = gameObject.transform.Find("UnSelectLab").gameObject; + GameObject gameObject3 = gameObject.transform.Find("SelectLab").gameObject; + IXUISprite ixuisprite = gameObject.transform.Find("Switch").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemType1st)); + IXUISprite ixuisprite2 = gameObject.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + bool flag5 = ixuisprite2 != null; + if (flag5) + { + ixuisprite2.spriteName = XSingleton.singleton.GetItemQualityIcon(list[j].quality); + } + Transform transform = gameObject.transform.Find("ChildList"); + bool flag6 = 0f == transform.localScale.y; + if (flag6) + { + ixuisprite.SetSprite("l_add_01"); + IXUITweenTool ixuitweenTool = ixuisprite.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + bool flag7 = flag3; + if (flag7) + { + flag3 = false; + } + List list2 = new List(); + for (int k = 0; k < list[j].list.Count; k++) + { + bool show2 = list[j].list[k].show; + if (show2) + { + list2.Add(list[j].list[k]); + } + } + for (int l = 0; l < list2.Count; l++) + { + GameObject gameObject4 = this.mItemType2ndPool.FetchGameObject(false); + gameObject4.name = list2[l].suitData.SuitID.ToString(); + this.mEquipSuitIDRedpointDic[list2[l].suitData.SuitID] = gameObject4.transform.Find("RedPoint").gameObject; + IXUICheckBox ixuicheckBox = gameObject4.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)list2[l].suitData.SuitID); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickItemType2nd)); + gameObject4.transform.parent = transform; + gameObject4.transform.localScale = Vector3.one; + gameObject4.transform.localPosition = new Vector3(0f, -((float)transform.childCount - 0.5f) * (float)ixuicheckBox.spriteHeight, 0f); + IXUILabel ixuilabel = gameObject4.transform.Find("SelectLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(list2[l].suitData.SuitName); + IXUILabel ixuilabel2 = gameObject4.transform.Find("UnSelectLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(list2[l].suitData.SuitName); + ixuicheckBox.ForceSetFlag(false); + bool flag8 = l == list2.Count - 1 && !flag3 && flag4; + if (flag8) + { + flag4 = false; + this.mCurItemType2nd = ixuicheckBox; + ixuicheckBox.ForceSetFlag(true); + this.RefreshItemList(); + ixuilabel.gameObject.SetActive(true); + ixuilabel2.gameObject.SetActive(false); + gameObject3.SetActive(true); + gameObject2.SetActive(false); + } + else + { + ixuicheckBox.ForceSetFlag(false); + ixuilabel2.gameObject.SetActive(true); + ixuilabel.gameObject.SetActive(false); + gameObject2.SetActive(true); + gameObject3.SetActive(false); + } + } + } + this.mItemTypeTable.RePositionNow(); + } + this.RefreshRedPoint(); + } + } + + private void OnClickItemType1st(IXUISprite sp) + { + bool flag = sp.spriteName == "l_add_00"; + if (flag) + { + sp.SetSprite("l_add_01"); + } + else + { + sp.SetSprite("l_add_00"); + } + } + + private bool OnClickItemType2nd(IXUICheckBox cb) + { + bool flag = !cb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.mCurItemType2nd != null; + if (flag2) + { + this.SetSelectStatus(false); + } + this.mCurItemType2nd = cb; + this.SetSelectStatus(true); + List updateRefreshEquipSuitList = this.mDoc.GetUpdateRefreshEquipSuitList((int)cb.ID); + this.RefreshItemList(updateRefreshEquipSuitList); + result = true; + } + return result; + } + + private void SetSelectStatus(bool isSelected) + { + this.mCurItemType2nd.gameObject.transform.Find("UnSelectLab").gameObject.SetActive(!isSelected); + this.mCurItemType2nd.gameObject.transform.Find("SelectLab").gameObject.SetActive(isSelected); + Transform parent = this.mCurItemType2nd.gameObject.transform.parent.parent; + parent.Find("UnSelectLab").gameObject.SetActive(!isSelected); + parent.Find("SelectLab").gameObject.SetActive(isSelected); + } + + private void OnClickProfMenuSelect(IXUISprite _spr) + { + this.equipSetProfHandler.SetVisible(true); + } + + private bool OnClickItemCreateButton(IXUIButton btn) + { + int num = (int)btn.ID; + ItemComposeTable.RowData itemConposeDataByID = XEquipCreateDocument.GetItemConposeDataByID(num); + bool flag = itemConposeDataByID != null; + if (flag) + { + this.mDoc.CurUid = 0UL; + int level = (int)XSingleton.singleton.XPlayerData.Level; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + bool flag2 = (long)itemConposeDataByID.Coin <= (long)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.GOLD); + if (flag2) + { + VIPTable.RowData byVIP = specificDocument.VIPReader.GetByVIP(vipLevel); + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.EQUIP); + List list = new List(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref list); + bool flag3 = (long)list.Count >= (long)((ulong)byVIP.EquipMax); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EquipBagFull"), "fece00"); + return true; + } + this.mDoc.IsBind = true; + DlgBase.singleton.equipSetCreateConfirmHandler.SetVisible(true); + DlgBase.singleton.equipSetCreateConfirmHandler.SetEquipInfo(num); + } + else + { + XPurchaseInfo purchaseInfo = this.mPurchaseDoc.GetPurchaseInfo(level, vipLevel, ItemEnum.GOLD); + bool flag4 = purchaseInfo.totalBuyNum > purchaseInfo.curBuyNum; + if (flag4) + { + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.GOLD); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLotteryGoldNotEnough"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EQUIPCREATE_COIN_CANNOT_EXCHANGE"), "fece00"); + } + } + } + return true; + } + + private bool OnClickGetNeedItemButton(IXUIButton btn) + { + XSingleton.singleton.ShowItemAccess((int)btn.ID, null); + return true; + } + + private void OnNeedItemClick(IXUISprite item) + { + XSingleton.singleton.ShowItemAccess((int)item.ID, null); + } + + private bool OnLevelCheckClicked(IXUICheckBox box) + { + this.mSelectLevel = (this.m_levelCheck.bChecked ? this.mDoc.CurShowLevel(XSingleton.singleton.XPlayerData.Level, -1) : 0); + this.mDoc.RefreshEquipSuitListUIByLevel(this.mSelectLevel, true); + return true; + } + + private void _InitItemList() + { + Transform transform = base.PanelObject.transform.Find("ItemList"); + this.mItemListScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = transform.Find("WrapContent"); + this.mItemListWrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent); + this.mItemListWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._RankWrapItemListUpdated)); + } + + private void _InitItemType() + { + Transform transform = base.PanelObject.transform.Find("TypeList"); + this.mItemTypeScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = transform.Find("Table"); + this.mItemTypeTable = (transform.GetComponent("XUITable") as IXUITable); + transform = base.PanelObject.transform.Find("TypeList/Table/LevelOneTpl"); + this.mItemType1stPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + transform = base.PanelObject.transform.Find("TypeList/Table/LevelTwoTpl"); + this.mItemType2ndPool.SetupPool(transform.parent.gameObject, transform.gameObject, 16u, false); + } + + private bool _RankWrapItemListUpdatedNeedItem(GameObject _goItem, IXUILabel _lbCount, int _SrcItem0, int _SrcItem1) + { + _goItem.SetActive(true); + ulong num = (ulong)((long)_SrcItem1); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(_SrcItem0); + XSingleton.singleton.normalItemDrawer.DrawItem(_goItem, _SrcItem0, 0, false); + IXUISprite ixuisprite = _goItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)_SrcItem0); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnNeedItemClick)); + bool flag = itemCount >= num; + bool result; + if (flag) + { + _lbCount.SetText(string.Format("[{0}]{1}/{2}[-]", XStringDefineProxy.GetString("ZongColor"), itemCount, num)); + result = true; + } + else + { + _lbCount.SetText(string.Format("[{0}]{1}[-][{2}]/{3}[-]", new object[] + { + XStringDefineProxy.GetString("NotEnoughColor"), + itemCount, + XStringDefineProxy.GetString("ZongColor"), + num + })); + result = false; + } + return result; + } + + private void _RankWrapItemListUpdated(Transform t, int index) + { + EquipSuitItemData equipSuitListItem = this.mDoc.GetEquipSuitListItem(index); + t.name = index.ToString(); + EquipSetItemView equipSetItemView = new EquipSetItemView(); + equipSetItemView.FindFrom(t); + ItemList.RowData itemConf = XBagDocument.GetItemConf(equipSuitListItem.itemData.ItemID); + bool isBind = equipSuitListItem.itemComposeData.IsBind; + bool flag = !itemConf.CanTrade; + if (flag) + { + isBind = true; + } + EquipSetItemBaseView.stEquipInfoParam param; + param.isShowTooltip = true; + param.playerProf = this.mDoc.CurRoleProf; + equipSetItemView.SetItemInfo(equipSuitListItem.itemData.ItemID, param, isBind); + equipSetItemView.lbLevel.SetText(this._GetLevelString(equipSuitListItem.itemComposeData.Level)); + bool flag2 = true; + int num = -1; + bool flag3 = equipSuitListItem.itemComposeData.SrcItem1[0] <= 0; + if (flag3) + { + equipSetItemView.goItem1.SetActive(false); + } + else + { + bool flag4 = this._RankWrapItemListUpdatedNeedItem(equipSetItemView.goItem1, equipSetItemView.lbItemCount1, equipSuitListItem.itemComposeData.SrcItem1[0], equipSuitListItem.itemComposeData.SrcItem1[1]); + flag2 = (flag2 && flag4); + bool flag5 = !flag4; + if (flag5) + { + num = equipSuitListItem.itemComposeData.SrcItem1[0]; + } + } + bool flag6 = equipSuitListItem.itemComposeData.SrcItem2[1] <= 0; + if (flag6) + { + equipSetItemView.goItem2.SetActive(false); + } + else + { + bool flag4 = this._RankWrapItemListUpdatedNeedItem(equipSetItemView.goItem2, equipSetItemView.lbItemCount2, equipSuitListItem.itemComposeData.SrcItem2[0], equipSuitListItem.itemComposeData.SrcItem2[1]); + flag2 = (flag2 && flag4); + bool flag7 = !flag4; + if (flag7) + { + num = equipSuitListItem.itemComposeData.SrcItem2[0]; + } + } + bool flag8 = equipSuitListItem.itemComposeData.SrcItem3[1] <= 0; + if (flag8) + { + equipSetItemView.goItem3.SetActive(false); + } + else + { + bool flag4 = this._RankWrapItemListUpdatedNeedItem(equipSetItemView.goItem3, equipSetItemView.lbItemCount3, equipSuitListItem.itemComposeData.SrcItem3[0], equipSuitListItem.itemComposeData.SrcItem3[1]); + flag2 = (flag2 && flag4); + bool flag9 = !flag4; + if (flag9) + { + num = equipSuitListItem.itemComposeData.SrcItem3[0]; + } + } + bool flag10 = 0 >= equipSuitListItem.itemComposeData.SrcItem4[1]; + if (flag10) + { + equipSetItemView.goItem4.SetActive(false); + } + else + { + bool flag4 = this._RankWrapItemListUpdatedNeedItem(equipSetItemView.goItem4, equipSetItemView.lbItemCount4, equipSuitListItem.itemComposeData.SrcItem4[0], equipSuitListItem.itemComposeData.SrcItem4[1]); + flag2 = (flag2 && flag4); + bool flag11 = !flag4; + if (flag11) + { + num = equipSuitListItem.itemComposeData.SrcItem4[0]; + } + } + bool flag12 = equipSuitListItem.itemComposeData.Coin > 0; + if (flag12) + { + equipSetItemView.lbCost.SetText(equipSuitListItem.itemComposeData.Coin.ToString()); + } + else + { + equipSetItemView.lbCost.SetText("0"); + } + bool flag13 = flag2; + if (flag13) + { + equipSetItemView.btnCreate.SetEnable(true, false); + equipSetItemView.btnCreate.ID = (ulong)((long)equipSuitListItem.itemComposeData.ID); + equipSetItemView.btnCreate.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickItemCreateButton)); + } + else + { + equipSetItemView.btnCreate.SetEnable(true, false); + equipSetItemView.btnCreate.ID = (ulong)((long)num); + equipSetItemView.btnCreate.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGetNeedItemButton)); + } + equipSetItemView.goRedpoint.SetActive(equipSuitListItem.redpoint); + } + + private string _GetLevelString(int _level) + { + bool flag = _level > 0; + string result; + if (flag) + { + result = _level.ToString(); + } + else + { + result = this.mNoLevelLimitString; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSetHandler.cs.meta new file mode 100644 index 00000000..1a028d00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f96d8eab6628e614196b9c9c0a1dc1e6 +timeCreated: 1611404899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetLevelHandler.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSetLevelHandler.cs new file mode 100644 index 00000000..47e1c7e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetLevelHandler.cs @@ -0,0 +1,162 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipSetLevelHandler : DlgHandlerBase + { + private XUIPool mLevelListPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel mLbCurLevel; + + private IXUIList mGrid; + + private string mLevelFmt; + + private XEquipCreateDocument mDoc; + + private EquipSetLevelHandler._LevelGameObjectItem[] mLevelGoArr; + + private class _LevelGameObjectItem + { + public GameObject go; + + public int level; + + public GameObject select; + } + + protected override void Init() + { + base.Init(); + this.mDoc = XEquipCreateDocument.Doc; + this.mLevelFmt = XStringDefineProxy.GetString("EQUIPCREATE_EQUIPSET_LEVEL_FMT"); + Transform transform = base.PanelObject.transform.Find("Grid/LevelTpl"); + this.mLevelListPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + transform = base.PanelObject.transform.parent.Find("Level/V"); + this.mLbCurLevel = (transform.GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Grid"); + this.mGrid = (transform.GetComponent("XUIList") as IXUIList); + List updateItemLevelList = this.mDoc.GetUpdateItemLevelList(); + bool flag = updateItemLevelList == null || updateItemLevelList.Count <= 0; + if (!flag) + { + this.mLevelGoArr = new EquipSetLevelHandler._LevelGameObjectItem[updateItemLevelList.Count]; + bool flag2 = false; + int level = (int)XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < updateItemLevelList.Count; i++) + { + this.mLevelGoArr[i] = new EquipSetLevelHandler._LevelGameObjectItem(); + this.mLevelGoArr[i].go = this._CreateLevelMenuItem(updateItemLevelList[i]); + this.mLevelGoArr[i].level = updateItemLevelList[i]; + this.mLevelGoArr[i].select = this.mLevelGoArr[i].go.transform.Find("Selected").gameObject; + bool flag3 = flag2; + if (flag3) + { + this.mLevelGoArr[i].select.SetActive(false); + } + else + { + flag2 = (this.mLevelGoArr[i].level <= level && this.mLevelGoArr[i].level != 0); + this.mLevelGoArr[i].select.SetActive(flag2); + bool flag4 = flag2; + if (flag4) + { + this.mLbCurLevel.SetText(this._GetLevelText(this.mLevelGoArr[i].level)); + this.mDoc.RefreshEquipSuitListUIByLevel(this.mLevelGoArr[i].level, false); + } + } + } + bool flag5 = !flag2; + if (flag5) + { + this.mLevelGoArr[0].select.SetActive(true); + } + } + } + + public override void RegisterEvent() + { + base.Init(); + IXUISprite ixuisprite = base.PanelObject.transform.Find("Block").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBlockCollider)); + } + + private string _GetLevelText(int _level) + { + bool flag = _level > 0; + string result; + if (flag) + { + result = string.Format(this.mLevelFmt, _level); + } + else + { + result = XStringDefineProxy.GetString("ALL"); + } + return result; + } + + private GameObject _CreateLevelMenuItem(int _level) + { + GameObject gameObject = this.mLevelListPool.FetchGameObject(false); + gameObject.name = _level.ToString(); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)_level); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickLevelMenuItem)); + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._GetLevelText(_level)); + return gameObject; + } + + private void OnClickBlockCollider(IXUISprite _spr) + { + base.SetVisible(false); + } + + private void OnClickLevelMenuItem(IXUISprite _cb) + { + base.SetVisible(false); + int num = (int)_cb.ID; + for (int i = 0; i < this.mLevelGoArr.Length; i++) + { + this.mLevelGoArr[i].select.SetActive(num == this.mLevelGoArr[i].level); + } + this.mLbCurLevel.SetText(this._GetLevelText(num)); + this.mDoc.RefreshEquipSuitListUIByLevel(num, true); + } + + protected override void OnShow() + { + base.OnShow(); + int level = (int)XSingleton.singleton.XPlayerData.Level; + int nextShowLevel = this.mDoc.NextShowLevel; + int num = 0; + for (int i = 0; i < this.mLevelGoArr.Length; i++) + { + bool flag = this.mLevelGoArr[i].level == 0 || level >= this.mLevelGoArr[i].level || this.mLevelGoArr[i].level == nextShowLevel; + if (flag) + { + this.mLevelGoArr[i].go.SetActive(true); + this.mLevelGoArr[i].go.transform.localPosition = new Vector3(0f, (float)(-(float)num * this.mLevelListPool.TplHeight), 0f); + num++; + } + else + { + this.mLevelGoArr[i].go.SetActive(false); + } + } + } + + public override void OnUnload() + { + this.mDoc = null; + this.mLevelFmt = null; + this.mLevelGoArr = null; + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetLevelHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSetLevelHandler.cs.meta new file mode 100644 index 00000000..26697b1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetLevelHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84d015dfb9290d64da47e11cfdc8da82 +timeCreated: 1611404049 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetProfHandler.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSetProfHandler.cs new file mode 100644 index 00000000..42997846 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetProfHandler.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipSetProfHandler : DlgHandlerBase + { + private XUIPool mProfListPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel mLbCurProf; + + private IXUIList mGrid; + + private XEquipCreateDocument mDoc; + + private EquipSetProfHandler._ProfGameObjectItem[] mProfGoArr; + + private class _ProfGameObjectItem + { + public int prof; + + public GameObject select; + } + + protected override void Init() + { + base.Init(); + this.mDoc = XEquipCreateDocument.Doc; + Transform transform = base.PanelObject.transform.Find("Grid/ProfTpl"); + this.mProfListPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + transform = base.PanelObject.transform.parent.Find("Prof/V"); + this.mLbCurProf = (transform.GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Grid"); + this.mGrid = (transform.GetComponent("XUIList") as IXUIList); + List mainProfList = this.mDoc.GetMainProfList(); + bool flag = mainProfList == null || mainProfList.Count <= 0 || mainProfList.Count < XGame.RoleCount; + if (!flag) + { + this.mProfGoArr = new EquipSetProfHandler._ProfGameObjectItem[XGame.RoleCount]; + int curRoleProf = this.mDoc.CurRoleProf; + bool flag2 = false; + for (int i = 0; i < XGame.RoleCount; i++) + { + GameObject gameObject = this._CreateProfMenuItem(mainProfList[i].ProfID, mainProfList[i].ProfName); + this.mProfGoArr[i] = new EquipSetProfHandler._ProfGameObjectItem(); + this.mProfGoArr[i].prof = mainProfList[i].ProfID; + this.mProfGoArr[i].select = gameObject.transform.Find("Selected").gameObject; + bool flag3 = flag2; + if (flag3) + { + this.mProfGoArr[i].select.SetActive(false); + } + else + { + flag2 = (curRoleProf == this.mProfGoArr[i].prof); + this.mProfGoArr[i].select.SetActive(flag2); + bool flag4 = flag2; + if (flag4) + { + this.mLbCurProf.SetText(this.mDoc.GetMainProfByID(curRoleProf).ProfName); + this.mDoc.RefreshEquipSuitListUIByProf(curRoleProf, false); + } + } + } + this.mGrid.Refresh(); + } + } + + public override void RegisterEvent() + { + base.Init(); + IXUISprite ixuisprite = base.PanelObject.transform.Find("Block").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBlockCollider)); + } + + private GameObject _CreateProfMenuItem(int _profID, string _profName) + { + GameObject gameObject = this.mProfListPool.FetchGameObject(false); + gameObject.name = _profID.ToString(); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)_profID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickProfMenuItem)); + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(_profName); + return gameObject; + } + + private void OnClickBlockCollider(IXUISprite _spr) + { + base.SetVisible(false); + } + + private void OnClickProfMenuItem(IXUISprite _cb) + { + base.SetVisible(false); + int num = (int)_cb.ID; + for (int i = 0; i < this.mProfGoArr.Length; i++) + { + this.mProfGoArr[i].select.SetActive(num == this.mProfGoArr[i].prof); + } + this.mLbCurProf.SetText(this.mDoc.GetMainProfByID(num).ProfName); + this.mDoc.RefreshEquipSuitListUIByProf(num, true); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + base.PanelObject.SetActive(false); + } + + public override void OnUnload() + { + this.mDoc = null; + this.mProfGoArr = null; + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetProfHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSetProfHandler.cs.meta new file mode 100644 index 00000000..1c35496c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetProfHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f158719231d40442836e3983205ed2f +timeCreated: 1611403908 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetWearingHandler.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSetWearingHandler.cs new file mode 100644 index 00000000..e362a48a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetWearingHandler.cs @@ -0,0 +1,130 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipSetWearingHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/WearingPanel"; + } + } + + private IXUIButton m_Help; + + private IXUIButton m_Close; + + private IXUISprite m_ClothFashion; + + private IXUISprite m_ClothEquip; + + private IXUISprite m_WeaponFashion; + + private IXUISprite m_weaponEquip; + + private Transform m_SettingPanel; + + protected override void Init() + { + base.Init(); + this.m_SettingPanel = base.transform.Find("Panel"); + this.m_Close = (base.transform.Find("Panel/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ClothFashion = (base.transform.Find("Panel/Cloth_fishion").GetComponent("XUISprite") as IXUISprite); + this.m_ClothEquip = (base.transform.Find("Panel/Cloth_equip").GetComponent("XUISprite") as IXUISprite); + this.m_weaponEquip = (base.transform.Find("Panel/Weapon_equip").GetComponent("XUISprite") as IXUISprite); + this.m_WeaponFashion = (base.transform.Find("Panel/Weapon_fashion").GetComponent("XUISprite") as IXUISprite); + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + } + + public override void OnUnload() + { + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickCloseHandler)); + this.m_ClothFashion.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickClothFashionHandler)); + this.m_ClothEquip.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickClothEquipHandler)); + this.m_WeaponFashion.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickWeaponFashionHandler)); + this.m_weaponEquip.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickWeaponEquipHandler)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public override void UnRegisterEvent() + { + this.m_Close.RegisterClickEventHandler(null); + this.m_ClothFashion.RegisterSpriteClickEventHandler(null); + this.m_ClothEquip.RegisterSpriteClickEventHandler(null); + this.m_WeaponFashion.RegisterSpriteClickEventHandler(null); + this.m_weaponEquip.RegisterSpriteClickEventHandler(null); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Item_Equip); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + base.OnHide(); + DlgBase.singleton.OnPopHandlerSetVisible(false, null); + } + + public override void RefreshData() + { + base.RefreshData(); + this.m_SettingPanel.gameObject.SetActive(true); + } + + private void SetStateSprite(IXUISprite sprite, bool visible) + { + IXUISprite ixuisprite = sprite.gameObject.transform.Find("Sprite").GetComponent("XUISprite") as IXUISprite; + bool flag = ixuisprite == null; + if (flag) + { + XSingleton.singleton.AddErrorLog(XSingleton.singleton.StringCombine("State XUISprite is NULL", sprite.gameObject.name), null, null, null, null, null); + } + else + { + ixuisprite.SetAlpha((float)(visible ? 1 : 0)); + } + } + + private void ClickClothFashionHandler(IXUISprite sprite) + { + } + + private void ClickClothEquipHandler(IXUISprite sprite) + { + } + + private void ClickWeaponFashionHandler(IXUISprite sprite) + { + } + + private void ClickWeaponEquipHandler(IXUISprite sprite) + { + } + + private bool ClickCloseHandler(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSetWearingHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSetWearingHandler.cs.meta new file mode 100644 index 00000000..532545b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSetWearingHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a16c5b5c0837304cacb92b542e93279 +timeCreated: 1611404199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrData.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrData.cs new file mode 100644 index 00000000..c694adbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrData.cs @@ -0,0 +1,93 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipSlotAttrData + { + public uint Slot + { + get + { + return this.m_slot; + } + } + + public List AttrDataList + { + get + { + return this.m_attrDataList; + } + } + + private uint m_slot = 0u; + + private List m_attrDataList; + + public EquipSlotAttrData(uint slot) + { + this.m_slot = slot; + this.m_attrDataList = new List(); + } + + public void Add(RandomAttributes.RowData row) + { + EquipAttrData equipAttrData = new EquipAttrData(row); + int index; + bool flag = this.FindIndex((uint)row.AttrID, out index); + if (flag) + { + this.m_attrDataList[index] = equipAttrData; + } + else + { + this.m_attrDataList.Add(equipAttrData); + } + } + + public void Add(ForgeAttributes.RowData row) + { + EquipAttrData equipAttrData = new EquipAttrData(row); + int index; + bool flag = this.FindIndex((uint)row.AttrID, out index); + if (flag) + { + this.m_attrDataList[index] = equipAttrData; + } + else + { + this.m_attrDataList.Add(equipAttrData); + } + } + + public EquipAttrData GetAttrData(uint attrId) + { + for (int i = 0; i < this.m_attrDataList.Count; i++) + { + bool flag = this.m_attrDataList[i].AttrId == attrId; + if (flag) + { + return this.m_attrDataList[i]; + } + } + return null; + } + + private bool FindIndex(uint attrId, out int index) + { + for (int i = 0; i < this.m_attrDataList.Count; i++) + { + bool flag = this.m_attrDataList[i].AttrId == attrId; + if (flag) + { + index = i; + return true; + } + } + index = 0; + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrData.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrData.cs.meta new file mode 100644 index 00000000..7c82f605 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f20ce4cfbe7a4494480d3c9e701a823d +timeCreated: 1611404841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrDatas.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrDatas.cs new file mode 100644 index 00000000..189b3dc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrDatas.cs @@ -0,0 +1,197 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipSlotAttrDatas + { + public uint EquipId + { + get + { + return this.m_equipId; + } + } + + private uint m_equipId = 0u; + + private List m_slotDataList; + + public EquipSlotAttrDatas(uint equipId) + { + this.m_equipId = equipId; + this.m_slotDataList = new List(); + } + + public void Add(RandomAttributes.RowData row) + { + for (int i = 0; i < this.m_slotDataList.Count; i++) + { + bool flag = this.m_slotDataList[i].Slot == (uint)row.Slot; + if (flag) + { + this.m_slotDataList[i].Add(row); + return; + } + } + EquipSlotAttrData equipSlotAttrData = new EquipSlotAttrData((uint)row.Slot); + equipSlotAttrData.Add(row); + this.m_slotDataList.Add(equipSlotAttrData); + } + + public void Add(ForgeAttributes.RowData row) + { + for (int i = 0; i < this.m_slotDataList.Count; i++) + { + bool flag = this.m_slotDataList[i].Slot == (uint)row.Slot; + if (flag) + { + this.m_slotDataList[i].Add(row); + return; + } + } + EquipSlotAttrData equipSlotAttrData = new EquipSlotAttrData((uint)row.Slot); + equipSlotAttrData.Add(row); + this.m_slotDataList.Add(equipSlotAttrData); + } + + public EquipAttrData GetAttrData(int slot, XItemChangeAttr attr) + { + return this.GetAttrData(slot, attr.AttrID); + } + + public EquipAttrData GetAttrData(int slot, uint attrid) + { + for (int i = 0; i < this.m_slotDataList.Count; i++) + { + bool flag = (ulong)this.m_slotDataList[i].Slot == (ulong)((long)slot); + if (flag) + { + return this.m_slotDataList[i].GetAttrData(attrid); + } + } + return null; + } + + public double GetPercentValue(int slot, XItemChangeAttr attr) + { + EquipAttrData attrData = this.GetAttrData(slot, attr); + bool flag = attrData == null; + double result; + if (flag) + { + result = 0.0; + } + else + { + result = attrData.GetPercentValue(attr.AttrValue); + } + return result; + } + + public string GetColor(int slot, XItemChangeAttr attr) + { + EquipAttrData attrData = this.GetAttrData(slot, attr); + bool flag = attrData == null; + string result; + if (flag) + { + result = XSingleton.singleton.GetItemQualityRGB(0); + } + else + { + result = attrData.GetColor(attr.AttrValue); + } + return result; + } + + public EquipSlotAttrData GetAttrData(int slot) + { + for (int i = 0; i < this.m_slotDataList.Count; i++) + { + bool flag = (ulong)this.m_slotDataList[i].Slot == (ulong)((long)slot); + if (flag) + { + return this.m_slotDataList[i]; + } + } + return null; + } + + public static uint GetMinPPT(EquipSlotAttrDatas data, XAttributes attributes, bool isForge) + { + uint num = 0u; + bool flag = !isForge; + if (flag) + { + for (int i = 0; i < data.m_slotDataList.Count; i++) + { + uint num2 = uint.MaxValue; + EquipSlotAttrData equipSlotAttrData = data.m_slotDataList[i]; + for (int j = 0; j < equipSlotAttrData.AttrDataList.Count; j++) + { + EquipAttrData equipAttrData = equipSlotAttrData.AttrDataList[j]; + bool flag2 = equipAttrData.RangValue.Prob == 0u; + if (!flag2) + { + num2 = Math.Min(num2, (uint)XSingleton.singleton.GetPPT(equipAttrData.AttrId, (double)equipAttrData.RangValue.Min, attributes, -1)); + } + } + bool flag3 = num2 == uint.MaxValue; + if (flag3) + { + num2 = 0u; + } + num += num2; + } + } + else + { + bool flag4 = data.m_slotDataList.Count == 0; + if (flag4) + { + } + num = uint.MaxValue; + EquipSlotAttrData equipSlotAttrData2 = data.m_slotDataList[0]; + for (int k = 0; k < equipSlotAttrData2.AttrDataList.Count; k++) + { + EquipAttrData equipAttrData2 = equipSlotAttrData2.AttrDataList[k]; + bool flag5 = equipAttrData2.RangValue.Prob == 0u; + if (!flag5) + { + num = Math.Min(num, (uint)XSingleton.singleton.GetPPT(equipAttrData2.AttrId, (double)equipAttrData2.RangValue.Min, attributes, -1)); + } + } + bool flag6 = num == uint.MaxValue; + if (flag6) + { + num = 0u; + } + } + return num; + } + + public static uint GetMaxPPT(EquipSlotAttrDatas data, XAttributes attributes) + { + uint num = 0u; + for (int i = 0; i < data.m_slotDataList.Count; i++) + { + uint num2 = 0u; + EquipSlotAttrData equipSlotAttrData = data.m_slotDataList[i]; + for (int j = 0; j < equipSlotAttrData.AttrDataList.Count; j++) + { + EquipAttrData equipAttrData = equipSlotAttrData.AttrDataList[j]; + bool flag = equipAttrData.RangValue.Prob == 0u; + if (!flag) + { + num2 = Math.Max(num2, (uint)XSingleton.singleton.GetPPT(equipAttrData.AttrId, (double)equipAttrData.RangValue.Max, attributes, -1)); + } + } + num += num2; + } + return num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrDatas.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrDatas.cs.meta new file mode 100644 index 00000000..6f6582dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSlotAttrDatas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03e4b05c463bf9e409b92892e6095e79 +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSuitItemData.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitItemData.cs new file mode 100644 index 00000000..1cbaf4d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitItemData.cs @@ -0,0 +1,121 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class EquipSuitItemData : IComparable + { + public int CompareValue + { + get + { + bool flag = this.itemComposeData == null; + int result; + if (flag) + { + result = int.MinValue; + } + else + { + int num = (int)XBagDocument.BagDoc.GetItemCount(this.itemComposeData.SrcItem1[0]) - this.itemComposeData.SrcItem1[1]; + bool flag2 = num < 0; + if (flag2) + { + result = num; + } + else + { + int num2 = (int)XBagDocument.BagDoc.GetItemCount(this.itemComposeData.SrcItem2[0]) - this.itemComposeData.SrcItem2[1]; + bool flag3 = num2 < 0; + if (flag3) + { + result = num2; + } + else + { + int num3 = (int)XBagDocument.BagDoc.GetItemCount(this.itemComposeData.SrcItem3[0]) - this.itemComposeData.SrcItem3[1]; + bool flag4 = num3 < 0; + if (flag4) + { + result = num3; + } + else + { + int num4 = (int)XBagDocument.BagDoc.GetItemCount(XEquipCreateDocument.CoinId) - this.itemComposeData.Coin; + bool flag5 = num4 < 0; + if (flag5) + { + result = num4; + } + else + { + result = num + num2 + num3 + num4; + } + } + } + } + } + return result; + } + } + + public bool redpoint; + + public EquipList.RowData itemData; + + public ItemComposeTable.RowData itemComposeData; + + public int CompareTo(object _other) + { + EquipSuitItemData equipSuitItemData = _other as EquipSuitItemData; + bool flag = this.itemComposeData != null && equipSuitItemData.itemComposeData != null; + if (flag) + { + bool flag2 = this.itemComposeData.Level != equipSuitItemData.itemComposeData.Level; + if (flag2) + { + return this.itemComposeData.Level - equipSuitItemData.itemComposeData.Level; + } + } + int compareValue = this.CompareValue; + int compareValue2 = equipSuitItemData.CompareValue; + bool flag3 = compareValue >= 0; + if (flag3) + { + bool flag4 = compareValue2 < 0; + if (flag4) + { + return -1; + } + } + else + { + bool flag5 = compareValue2 >= 0; + if (flag5) + { + return 1; + } + } + int[] equipPosOrderArray = XSingleton.singleton.EquipPosOrderArray; + bool flag6 = equipPosOrderArray[(int)this.itemData.EquipPos] == equipPosOrderArray[(int)equipSuitItemData.itemData.EquipPos]; + int result; + if (flag6) + { + bool flag7 = compareValue == compareValue2; + if (flag7) + { + result = this.itemComposeData.Coin - equipSuitItemData.itemComposeData.Coin; + } + else + { + result = compareValue2 - compareValue; + } + } + else + { + result = equipPosOrderArray[(int)this.itemData.EquipPos] - equipPosOrderArray[(int)equipSuitItemData.itemData.EquipPos]; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSuitItemData.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitItemData.cs.meta new file mode 100644 index 00000000..9d7e9c98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitItemData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c21b320bd442364bba7420355420dd8 +timeCreated: 1611404208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuData.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuData.cs new file mode 100644 index 00000000..809efc50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuData.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + public class EquipSuitMenuData : IComparable + { + public bool show; + + public bool redpoint; + + public int quality; + + public List list; + + public int CompareTo(EquipSuitMenuData _other) + { + return _other.quality - this.quality; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuData.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuData.cs.meta new file mode 100644 index 00000000..59dd05b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68b59029a1cc993409cfecf9f9e023c8 +timeCreated: 1611403883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuDataItem.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuDataItem.cs new file mode 100644 index 00000000..d8a1c412 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuDataItem.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + public class EquipSuitMenuDataItem + { + public bool show; + + public bool redpoint; + + public EquipSuitTable.RowData suitData; + + public List suitItemList; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuDataItem.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuDataItem.cs.meta new file mode 100644 index 00000000..021be9c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipSuitMenuDataItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1802dc8b497037f4d843e3e9c36455d5 +timeCreated: 1611403295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs new file mode 100644 index 00000000..d90453ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs @@ -0,0 +1,80 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipTransformBehaviour : DlgBehaviourBase + { + public IXUISprite sprPerfect; + + public IXUISprite sprImperfect; + + public IXUITweenTool tweenTool; + + public IXUIButton btnClose; + + public IXUIButton btnTransform; + + public IXUIScrollView TipScrollView; + + public IXUIScrollView EquipScrollView; + + public IXUIWrapContent EquipWrapContent; + + public IXUILabel TipLabel; + + public IXUILabel lbDragonCoin; + + public EquipTransformItemView SrcView; + + public EquipTransformItemView DestView; + + public NeedItemView[] NeedItems; + + public GameObject goPanelHint; + + public IXUIButton btnPanelHintOk; + + public IXUILabel lbPanelHintItem; + + public GameObject goPanelHintItem; + + public XUIPool FriendTabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.btnClose = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("SmeltingReplaceFrame"); + this.tweenTool = (transform.Find("Result").GetComponent("XUIPlayTween") as IXUITweenTool); + this.sprPerfect = (this.tweenTool.gameObject.transform.Find("wm").GetComponent("XUISprite") as IXUISprite); + this.sprImperfect = (this.tweenTool.gameObject.transform.Find("fwm").GetComponent("XUISprite") as IXUISprite); + this.sprPerfect.SetAlpha(0f); + this.sprImperfect.SetAlpha(0f); + this.SrcView = new EquipTransformItemView(); + this.SrcView.FindFrom(transform.Find("1")); + this.DestView = new EquipTransformItemView(); + this.DestView.FindFrom(transform.Find("2")); + this.btnTransform = (transform.Find("BtnReplace").GetComponent("XUIButton") as IXUIButton); + this.lbDragonCoin = (this.btnTransform.gameObject.transform.Find("MoneyCost").GetComponent("XUILabel") as IXUILabel); + this.TipScrollView = (transform.Find("Tip/TipPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.TipLabel = (this.TipScrollView.gameObject.transform.Find("tips").GetComponent("XUILabel") as IXUILabel); + this.EquipScrollView = (transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.EquipWrapContent = (this.EquipScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.goPanelHint = transform.Find("PanelHint").gameObject; + this.btnPanelHintOk = (this.goPanelHint.transform.Find("BtnOK").GetComponent("XUIButton") as IXUIButton); + this.lbPanelHintItem = (this.goPanelHint.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + this.goPanelHintItem = this.goPanelHint.transform.Find("ItemTpl").gameObject; + this.goPanelHint.SetActive(false); + transform = transform.Find("ItemNeeds"); + this.NeedItems = new NeedItemView[transform.childCount]; + for (int i = 0; i < this.NeedItems.Length; i++) + { + this.NeedItems[i] = new NeedItemView(false); + this.NeedItems[i].FindFrom(transform.GetChild(i)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs.meta new file mode 100644 index 00000000..91636256 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98cbec68f5b28d948b54a1f2961a9ae4 +timeCreated: 1611404192 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs new file mode 100644 index 00000000..3181c744 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs @@ -0,0 +1,77 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class EquipTransformItemView + { + public IXUISprite sprIcon; + + public IXUILabel lbLevel; + + public GameObject goEquipOn; + + public GameObject goItem; + + public GameObject goFX_wm; + + public GameObject goFX_fwm; + + public GameObject goAdd; + + public void FindFrom(Transform trans) + { + bool flag = trans != null; + if (flag) + { + Transform transform = trans.Find("EquipOn"); + bool flag2 = transform != null; + if (flag2) + { + this.goEquipOn = transform.gameObject; + } + transform = trans.Find("ItemTpl"); + bool flag3 = transform != null; + if (flag3) + { + this.goItem = transform.gameObject; + } + bool flag4 = this.goItem != null; + if (flag4) + { + transform = transform.Find("Icon"); + bool flag5 = transform != null; + if (flag5) + { + this.sprIcon = (transform.GetComponent("XUISprite") as IXUISprite); + } + } + transform = trans.Find("FX_wm"); + bool flag6 = transform != null; + if (flag6) + { + this.goFX_wm = transform.gameObject; + } + transform = trans.Find("FX_fwm"); + bool flag7 = transform != null; + if (flag7) + { + this.goFX_fwm = transform.gameObject; + } + transform = trans.Find("Add"); + bool flag8 = transform != null; + if (flag8) + { + this.goAdd = transform.gameObject; + } + transform = trans.Find("Num"); + bool flag9 = transform != null; + if (flag9) + { + this.lbLevel = (transform.GetComponent("XUILabel") as IXUILabel); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs.meta new file mode 100644 index 00000000..4e6ceca9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipTransformItemView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3600561a2dce7da4ca33b827be148f7f +timeCreated: 1611403561 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipUpgradeDocument.cs b/Client/Assets/Scripts/XMainClient/Equip/EquipUpgradeDocument.cs new file mode 100644 index 00000000..08791125 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipUpgradeDocument.cs @@ -0,0 +1,131 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class EquipUpgradeDocument : XDocComponent + { + public override uint ID + { + get + { + return EquipUpgradeDocument.uuID; + } + } + + public static EquipUpgradeDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(EquipUpgradeDocument.uuID) as EquipUpgradeDocument; + } + } + + public EquipUpgradeHandler Handler { get; set; } + + public ulong SelectUid + { + get + { + return this.m_selectUid; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("EquipUpgradeDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private ulong m_selectUid = 0UL; + + public static void Execute(OnLoadedCallback callback = null) + { + EquipUpgradeDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + public void SelectEquip(ulong uid) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag = itemByUID == null; + if (!flag) + { + this.m_selectUid = uid; + bool flag2 = !DlgBase.singleton.IsVisible(); + if (!flag2) + { + bool flag3 = this.Handler != null && this.Handler.IsVisible(); + if (flag3) + { + this.Handler.ShowUI(); + } + else + { + DlgBase.singleton.ShowRightPopView(DlgBase.singleton._equipUpgradeHandler); + } + bool flag4 = DlgBase.singleton._equipHandler != null; + if (flag4) + { + DlgBase.singleton._equipHandler.SelectEquip(uid); + } + } + } + } + + public void ReqUpgrade() + { + RpcC2G_UpgradeEquip rpcC2G_UpgradeEquip = new RpcC2G_UpgradeEquip(); + rpcC2G_UpgradeEquip.oArg.uid = this.m_selectUid; + XSingleton.singleton.Send(rpcC2G_UpgradeEquip); + } + + public void OnUpgradeBack(UpgradeEquipRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag3 = this.Handler != null && this.Handler.IsVisible(); + if (flag3) + { + this.Handler.SetVisible(false); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Equip/EquipUpgradeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Equip/EquipUpgradeDocument.cs.meta new file mode 100644 index 00000000..3420c3be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Equip/EquipUpgradeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9211d41c720b194ca55ff263f215c92 +timeCreated: 1611404897 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EventDelegate.cs b/Client/Assets/Scripts/XMainClient/EventDelegate.cs new file mode 100644 index 00000000..28172a54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EventDelegate.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void EventDelegate(); +} diff --git a/Client/Assets/Scripts/XMainClient/EventDelegate.cs.meta b/Client/Assets/Scripts/XMainClient/EventDelegate.cs.meta new file mode 100644 index 00000000..5c295cb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EventDelegate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da67e88aba49a584e802d9ba8b8b8953 +timeCreated: 1611404647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/EventPoolClear.cs b/Client/Assets/Scripts/XMainClient/EventPoolClear.cs new file mode 100644 index 00000000..e5e8c16a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EventPoolClear.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate void EventPoolClear(); +} diff --git a/Client/Assets/Scripts/XMainClient/EventPoolClear.cs.meta b/Client/Assets/Scripts/XMainClient/EventPoolClear.cs.meta new file mode 100644 index 00000000..e13230ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/EventPoolClear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 581729b9089396b4da66a8652b044fb7 +timeCreated: 1611403752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ExpBackTypeMgr.cs b/Client/Assets/Scripts/XMainClient/ExpBackTypeMgr.cs new file mode 100644 index 00000000..8c876a11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ExpBackTypeMgr.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ExpBackTypeMgr + { + public static int GetTypeInt(ExpBackType _type) + { + return XFastEnumIntEqualityComparer.ToInt(_type); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ExpBackTypeMgr.cs.meta b/Client/Assets/Scripts/XMainClient/ExpBackTypeMgr.cs.meta new file mode 100644 index 00000000..617d3c0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ExpBackTypeMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed167fdaadc74da48b6b43194af54313 +timeCreated: 1611404790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FWchildNode.cs b/Client/Assets/Scripts/XMainClient/FWchildNode.cs new file mode 100644 index 00000000..badc1426 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FWchildNode.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class FWchildNode + { + public bool m_onewend = false; + + public char m_c = '\0'; + + public FWnode m_child = null; + } +} diff --git a/Client/Assets/Scripts/XMainClient/FWchildNode.cs.meta b/Client/Assets/Scripts/XMainClient/FWchildNode.cs.meta new file mode 100644 index 00000000..42ddfd10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FWchildNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c08602c434098e64181b5b4ea9bcbab0 +timeCreated: 1611404486 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FWnode.cs b/Client/Assets/Scripts/XMainClient/FWnode.cs new file mode 100644 index 00000000..b8115a1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FWnode.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class FWnode + { + public List m_childs; + } +} diff --git a/Client/Assets/Scripts/XMainClient/FWnode.cs.meta b/Client/Assets/Scripts/XMainClient/FWnode.cs.meta new file mode 100644 index 00000000..e730a64a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FWnode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8192e3dbcca0c04488a22ee16027480e +timeCreated: 1611404037 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Farm.cs b/Client/Assets/Scripts/XMainClient/Farm.cs new file mode 100644 index 00000000..35895763 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Farm.cs @@ -0,0 +1,250 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class Farm + { + public Dictionary HomeFarmlandDic + { + get + { + return this.m_homeFarmlandDic; + } + } + + public Dictionary GuildFarmlandDic + { + get + { + return this.m_guildFarmlandDic; + } + } + + public readonly int m_m_homeFarmlandNum = 6; + + public readonly int m_guildFarmlandNum = 9; + + private Dictionary m_homeFarmlandDic; + + private Dictionary m_guildFarmlandDic; + + public Farm() + { + this.m_homeFarmlandDic = new Dictionary(); + uint num = 1u; + while ((ulong)num <= (ulong)((long)this.m_m_homeFarmlandNum)) + { + this.m_homeFarmlandDic.Add(num, new HomeFarmland(num)); + num += 1u; + } + this.m_guildFarmlandDic = new Dictionary(); + uint num2 = 1u; + while ((ulong)num2 <= (ulong)((long)this.m_guildFarmlandNum)) + { + this.m_guildFarmlandDic.Add(num2, new GuildFarmland(num2)); + num2 += 1u; + } + } + + public Farmland GetHomeFarmland(uint farmlandId) + { + Farmland farmland; + bool flag = this.m_homeFarmlandDic.TryGetValue(farmlandId, out farmland); + Farmland result; + if (flag) + { + result = farmland; + } + else + { + result = null; + } + return result; + } + + public Farmland GetGuildFarmland(uint farmlandId) + { + Farmland farmland; + bool flag = this.m_guildFarmlandDic.TryGetValue(farmlandId, out farmland); + Farmland result; + if (flag) + { + result = farmland; + } + else + { + result = null; + } + return result; + } + + public void ResetHomeFarmland() + { + foreach (KeyValuePair keyValuePair in this.m_homeFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + keyValuePair.Value.SetFarmlandFree(); + keyValuePair.Value.Destroy(); + } + } + } + + public void ResetGuildFarmland() + { + foreach (KeyValuePair keyValuePair in this.m_guildFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + keyValuePair.Value.SetFarmlandFree(); + keyValuePair.Value.Destroy(); + } + } + } + + public uint GetHomeFarmlandIdByNpcId(uint npcId) + { + foreach (KeyValuePair keyValuePair in this.m_homeFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + bool flag2 = keyValuePair.Value.NpcId == npcId; + if (flag2) + { + return keyValuePair.Value.FarmlandID; + } + } + } + return 0u; + } + + public uint GetGuildFarmlandIdByNpcId(uint npcId) + { + foreach (KeyValuePair keyValuePair in this.m_guildFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + bool flag2 = keyValuePair.Value.NpcId == npcId; + if (flag2) + { + return keyValuePair.Value.FarmlandID; + } + } + } + return 0u; + } + + public int GetBreakHomeFarmlandNum() + { + int num = 0; + foreach (KeyValuePair keyValuePair in this.m_homeFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + bool flag2 = !keyValuePair.Value.IsNeedBreak; + if (flag2) + { + num++; + } + } + } + return num; + } + + public int GetBreakGuildFarmlandNum() + { + int num = 0; + foreach (KeyValuePair keyValuePair in this.m_guildFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + bool flag2 = !keyValuePair.Value.IsNeedBreak; + if (flag2) + { + num++; + } + } + } + return num; + } + + public void SetHomeFarmlandFxEffect() + { + foreach (KeyValuePair keyValuePair in this.m_homeFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + keyValuePair.Value.SetFxEffect(); + } + } + } + + public void SetGuildFarmlandFxEffect() + { + foreach (KeyValuePair keyValuePair in this.m_guildFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + keyValuePair.Value.SetFxEffect(); + } + } + } + + public void SetHomeFarmlandLock() + { + foreach (KeyValuePair keyValuePair in this.m_homeFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + keyValuePair.Value.SetLockStatus(true); + } + } + } + + public void SetGuildFarmlandLock() + { + foreach (KeyValuePair keyValuePair in this.m_guildFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + keyValuePair.Value.SetLockStatus(true); + } + } + } + + public void GetHomeNpcIds(ref List lst) + { + foreach (KeyValuePair keyValuePair in this.m_homeFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + lst.Add(keyValuePair.Value.NpcId); + } + } + } + + public void GetGuildNpcIds(ref List lst) + { + foreach (KeyValuePair keyValuePair in this.m_guildFarmlandDic) + { + bool flag = keyValuePair.Value != null; + if (flag) + { + lst.Add(keyValuePair.Value.NpcId); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Farm.cs.meta b/Client/Assets/Scripts/XMainClient/Farm.cs.meta new file mode 100644 index 00000000..5f4a00b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Farm.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c3c1e0ccca9e884baef559b9fb32e51 +timeCreated: 1611403343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Farmland.cs b/Client/Assets/Scripts/XMainClient/Farmland.cs new file mode 100644 index 00000000..d1a66356 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Farmland.cs @@ -0,0 +1,534 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Farmland + { + public HomePlantDocument Doc + { + get + { + bool flag = this.m_doc == null; + if (flag) + { + this.m_doc = HomePlantDocument.Doc; + } + return this.m_doc; + } + } + + public uint SeedId + { + get + { + return this.m_seedId; + } + } + + public bool IsLock + { + get + { + return this.m_bIsLock; + } + } + + public bool IsNeedBreak + { + get + { + bool flag = !this.m_bIsLock; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)this.BreakLevel); + result = !flag2; + } + return result; + } + } + + public ulong OwnerRoleId + { + get + { + return this.m_ownerRoleId; + } + } + + public uint FarmlandID + { + get + { + return this.m_farmlandId; + } + } + + public PlantSeed.RowData Row + { + get + { + return this.m_row; + } + } + + public List FarmLogList + { + get + { + return this.m_farmLogList; + } + } + + public bool IsFree + { + get + { + return this.m_seedId == 0u; + } + } + + public ulong StateLeftTime + { + get + { + return this.m_stateLeftTime; + } + } + + public CropState State + { + get + { + return this.m_state; + } + } + + public bool IsRipe + { + get + { + return this.m_bisRipe; + } + set + { + bool flag = this.m_bisRipe != value; + if (flag) + { + this.m_bisRipe = value; + this.Doc.SetHadRedDot(); + } + } + } + + public float GrowPercent + { + get + { + return this.m_growth / this.m_row.GrowUpAmount; + } + } + + public virtual int BreakLevel + { + get + { + return this.m_breakLevel; + } + } + + protected virtual Vector3 BoardRotation + { + get + { + return Vector3.zero; + } + } + + public uint NpcId + { + get + { + bool flag = this.m_npcId == 0u; + if (flag) + { + this.m_npcId = this.Doc.GetNpcIdByFarmId(this.m_farmlandId); + } + return this.m_npcId; + } + } + + public GrowStage Stage + { + get + { + bool isFree = this.IsFree; + GrowStage result; + if (isFree) + { + result = GrowStage.None; + } + else + { + bool isRipe = this.IsRipe; + if (isRipe) + { + result = GrowStage.Ripe; + } + else + { + result = this.m_growStage; + } + } + return result; + } + } + + public float GrowSpeed + { + get + { + bool isFree = this.IsFree; + float result; + if (isFree) + { + result = 0f; + } + else + { + uint num = 0u; + bool flag = this.State > CropState.None; + if (flag) + { + num = this.m_row.BadStateGrowUpRate; + } + bool isHadSprite = this.Doc.HomeSprite.IsHadSprite; + if (isHadSprite) + { + num += this.Doc.HomeSprite.Row.EffectGrowRate; + } + bool flag2 = num < 100u; + if (flag2) + { + result = this.m_row.GrowUpAmountPerMinute * (100u - num) / 100f; + } + else + { + result = 1f; + } + } + return result; + } + } + + private XFx m_fx; + + private PlantSeed.RowData m_row; + + private string m_fxPath = ""; + + protected uint m_farmlandId = 0u; + + protected uint m_npcId = 0u; + + private uint m_seedId = 0u; + + private float m_growth = 0f; + + private ulong m_stateLeftTime = 0UL; + + protected bool m_bIsLock = true; + + protected GameObject m_boardGo; + + private CropState m_state = CropState.None; + + private HomePlantDocument m_doc; + + protected int m_breakLevel = -1; + + private ulong m_ownerRoleId = 0UL; + + private GrowStage m_growStage = GrowStage.None; + + private bool m_bisRipe = false; + + private List m_farmLogList = new List(); + + private List m_stolenRoleIdList = new List(); + + public Farmland(uint farmlandId) + { + this.m_farmlandId = farmlandId; + this.m_fxPath = "Effects/FX_Particle/UIfx/rwts_zhongzhi"; + } + + public void AddStolenUid(ulong uid) + { + this.m_stolenRoleIdList.Add(uid); + } + + public int CanSteal() + { + bool flag = (long)this.m_stolenRoleIdList.Count >= (long)((ulong)this.m_row.CanStealMaxTimes); + int result; + if (flag) + { + result = 1; + } + else + { + for (int i = 0; i < this.m_stolenRoleIdList.Count; i++) + { + bool flag2 = this.m_stolenRoleIdList[i] == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + return 2; + } + } + result = 0; + } + return result; + } + + public void SetFarmInfo(uint seedId, float growth, uint stage, ulong statLeftTime, ulong ownerId) + { + this.m_seedId = seedId; + this.m_growth = growth; + this.m_ownerRoleId = ownerId; + this.GetSeedRowData(seedId); + this.SetGrowStage(stage); + bool flag = this.m_row != null; + if (flag) + { + bool flag2 = (ulong)this.m_row.PlantStateCD > statLeftTime; + if (flag2) + { + this.m_stateLeftTime = (ulong)this.m_row.PlantStateCD - statLeftTime; + } + else + { + this.m_stateLeftTime = 0UL; + } + bool flag3 = this.m_growth == 0f; + if (flag3) + { + this.m_growth = this.m_row.InitUpAmount; + } + } + this.m_farmLogList.Clear(); + } + + public void SetLockStatus(bool status) + { + this.m_bIsLock = status; + this.SetPerfab(); + } + + public void UpdateFarmInfo(float growth, uint stage) + { + this.m_growth = growth; + this.SetGrowStage(stage); + bool flag = this.m_row != null; + if (flag) + { + this.m_stateLeftTime = (ulong)this.m_row.PlantStateCD; + } + } + + public void SetFarmlandFree() + { + this.m_seedId = 0u; + this.m_growth = 0f; + this.m_stateLeftTime = 0UL; + this.m_ownerRoleId = 0UL; + this.m_farmLogList.Clear(); + this.m_stolenRoleIdList.Clear(); + } + + public long GrowLeftTime() + { + bool isFree = this.IsFree; + long result; + if (isFree) + { + result = 0L; + } + else + { + float num = (this.m_row.GrowUpAmount - this.m_growth) / this.GrowSpeed; + bool flag = num < 0f; + if (flag) + { + num = 0f; + } + result = (long)Math.Ceiling((double)num); + } + return result; + } + + public void UpdateGrowth() + { + bool flag = this.m_growth < this.m_row.GrowUpAmount; + if (flag) + { + this.m_growth += this.GrowSpeed; + } + } + + public void SetCropState(PlantGrowState state) + { + this.IsRipe = (state == PlantGrowState.growMature); + switch (state) + { + case PlantGrowState.growDrought: + this.m_state = CropState.Watering; + break; + case PlantGrowState.growPest: + this.m_state = CropState.Disinsection; + break; + case PlantGrowState.growSluggish: + this.m_state = CropState.Fertilizer; + break; + case PlantGrowState.growCD: + this.m_state = CropState.None; + break; + case PlantGrowState.growMature: + this.m_state = CropState.None; + break; + default: + this.m_state = CropState.None; + break; + } + } + + public void SetFarmlandLog(List lst, uint severTime) + { + this.m_farmLogList.Clear(); + this.m_stolenRoleIdList.Clear(); + for (int i = 0; i < lst.Count; i++) + { + bool flag = lst[i].event_type == 4u; + if (flag) + { + this.m_stolenRoleIdList.Add(lst[i].role_id); + } + } + bool flag2 = lst.Count > 3; + if (flag2) + { + for (int j = lst.Count - 3; j < lst.Count; j++) + { + HomeEventLog item = new HomeEventLog(lst[j], severTime); + this.m_farmLogList.Add(item); + } + } + else + { + for (int k = 0; k < lst.Count; k++) + { + HomeEventLog item2 = new HomeEventLog(lst[k], severTime); + this.m_farmLogList.Add(item2); + } + } + } + + public void AddFarmlandLog(GardenEventLog eventLog) + { + HomeEventLog item = new HomeEventLog(eventLog, 0u); + this.m_farmLogList.Insert(0, item); + bool flag = this.m_farmLogList.Count > 3; + if (flag) + { + this.m_farmLogList.RemoveRange(2, this.m_farmLogList.Count - 3); + } + } + + public void Destroy() + { + this.DestroyFxEffect(); + this.DestroyPerfab(); + } + + public void SetFxEffect() + { + HomeTypeEnum homeType = HomePlantDocument.Doc.HomeType; + bool flag = !this.IsFree || this.IsLock || homeType == HomeTypeEnum.None || homeType == HomeTypeEnum.OtherHome; + if (flag) + { + this.DestroyFxEffect(); + } + else + { + XNpc npc = XSingleton.singleton.GetNpc(this.NpcId); + bool flag2 = npc != null; + if (flag2) + { + bool flag3 = this.m_fx != null; + if (flag3) + { + this.DestroyFxEffect(); + } + bool flag4 = this.m_fx == null; + if (flag4) + { + this.m_fx = XSingleton.singleton.CreateFx(this.m_fxPath, null, true); + } + bool flag5 = this.m_fx != null; + if (flag5) + { + this.m_fx.Play(npc.EngineObject, new Vector3(0f, npc.Height - 0.3f, 0f), Vector3.one, 1f, false, false, "", 0f); + } + } + } + } + + protected virtual void SetPerfab() + { + } + + public void DestroyFxEffect() + { + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + } + + protected void DestroyPerfab() + { + XResourceLoaderMgr.SafeDestroy(ref this.m_boardGo, true); + } + + private void GetSeedRowData(uint seedId) + { + this.m_row = HomePlantDocument.PlantSeedTable.GetBySeedID(seedId); + } + + private void SetGrowStage(uint stage) + { + switch (stage) + { + case 1u: + this.m_growStage = GrowStage.First; + break; + case 2u: + this.m_growStage = GrowStage.Second; + break; + case 3u: + this.m_growStage = GrowStage.Third; + break; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Farmland.cs.meta b/Client/Assets/Scripts/XMainClient/Farmland.cs.meta new file mode 100644 index 00000000..ef3fdfc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Farmland.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37349493632fe46468b6530ca37aa126 +timeCreated: 1611403564 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionPosition.cs b/Client/Assets/Scripts/XMainClient/FashionPosition.cs new file mode 100644 index 00000000..08acc1a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionPosition.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + public enum FashionPosition + { + FASHION_START, + FashionHeadgear = 0, + FashionUpperBody, + FashionLowerBody, + FashionGloves, + FashionBoots, + FashionMainWeapon, + FashionSecondaryWeapon, + FashionWings, + FashionTail, + FashionDecal, + FASHION_END, + Face = 10, + Hair, + FASHION_ALL_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionPosition.cs.meta b/Client/Assets/Scripts/XMainClient/FashionPosition.cs.meta new file mode 100644 index 00000000..e06eca30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f9b87ed9d83d094cbe6f8bfc500025c +timeCreated: 1611404246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionPositionInfo.cs b/Client/Assets/Scripts/XMainClient/FashionPositionInfo.cs new file mode 100644 index 00000000..0e9dc339 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionPositionInfo.cs @@ -0,0 +1,44 @@ +using System; + +namespace XMainClient +{ + public struct FashionPositionInfo + { + public int fasionID; + + public int itemID; + + public string fashionName; + + public string fashionDir; + + public uint presentID; + + public bool replace; + + public FashionPositionInfo(int id) + { + this.fasionID = id; + this.itemID = id; + this.fashionName = ""; + this.fashionDir = ""; + this.presentID = 0u; + this.replace = false; + } + + public void Reset() + { + this.fasionID = 0; + this.itemID = 0; + this.fashionName = ""; + this.fashionDir = ""; + this.presentID = 0u; + this.replace = false; + } + + public bool Equals(ref FashionPositionInfo fpi) + { + return this.fasionID == fpi.fasionID && this.fashionName == fpi.fashionName && this.presentID == fpi.presentID && this.itemID == fpi.itemID; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionPositionInfo.cs.meta b/Client/Assets/Scripts/XMainClient/FashionPositionInfo.cs.meta new file mode 100644 index 00000000..4607ac4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionPositionInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e02da058c5c40d244951e2372d515ff5 +timeCreated: 1611404696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageDisplay.cs b/Client/Assets/Scripts/XMainClient/FashionStorageDisplay.cs new file mode 100644 index 00000000..339856a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageDisplay.cs @@ -0,0 +1,39 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FashionStorageDisplay : FashionStorageTabBase + { + private FashionStoragePosition m_position; + + private string m_name; + + public FashionStorageDisplay(FashionStoragePosition position) + { + this.m_position = position; + this.m_name = XFashionStorageDocument.GetFashionStoragePartName(this.m_position); + } + + public override int GetID() + { + return XFastEnumIntEqualityComparer.ToInt(this.m_position); + } + + public override int GetCount() + { + return this.GetItems().Count; + } + + public override string GetName() + { + return string.Format("{0}({1})", this.m_name, this.GetCount()); + } + + public override uint[] GetFashionList() + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + return specificDocument.DisplayFashion.ToArray(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/FashionStorageDisplay.cs.meta new file mode 100644 index 00000000..cc313435 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 088a098cabba38d48bb881dc96adc514 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageEquipCollection.cs b/Client/Assets/Scripts/XMainClient/FashionStorageEquipCollection.cs new file mode 100644 index 00000000..219f262a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageEquipCollection.cs @@ -0,0 +1,156 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FashionStorageEquipCollection : FashionStorageTabBase + { + public override bool Active + { + get + { + bool flag = XSingleton.singleton.XPlayerData == null || this.m_charm == null; + return !flag && XSingleton.singleton.XPlayerData.Level >= this.m_charm.Level; + } + } + + public override bool ActivateAll + { + get + { + return (long)this.GetFashionList().Length == (long)((ulong)this.m_activateCount); + } + } + + public override bool RedPoint + { + get + { + return this.m_redPoint; + } + } + + private XFashionStorageDocument m_doc; + + private EquipSuitTable.RowData m_equipSuit; + + private List m_attributeCharms; + + private FashionCharm.RowData m_charm; + + private bool m_redPoint = false; + + private uint m_activateCount = 0u; + + public FashionStorageEquipCollection(int suitID) + { + this.m_equipSuit = XCharacterEquipDocument.SuitManager.GetSuitBySuitId(suitID); + this.m_doc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + bool flag = this.m_doc.TryGetFashionChaim((uint)suitID, out this.m_charm); + if (flag) + { + this.m_fashionList = this.m_charm.SuitParam; + this.m_attributeCharms = new List(); + this.InsertAttributeCharm(1, this.m_charm.Effect1); + this.InsertAttributeCharm(2, this.m_charm.Effect2); + this.InsertAttributeCharm(3, this.m_charm.Effect3); + this.InsertAttributeCharm(4, this.m_charm.Effect4); + this.InsertAttributeCharm(5, this.m_charm.Effect5); + this.InsertAttributeCharm(6, this.m_charm.Effect6); + this.InsertAttributeCharm(7, this.m_charm.Effect7); + } + } + + private void InsertAttributeCharm(int index, SeqListRef list) + { + bool flag = list.count == 0; + if (!flag) + { + int i = 0; + int count = (int)list.count; + while (i < count) + { + AttributeCharm attributeCharm = new AttributeCharm(); + attributeCharm.index = index; + attributeCharm.key = list[i, 0]; + attributeCharm.value = list[i, 1]; + attributeCharm.active = false; + this.m_attributeCharms.Add(attributeCharm); + i++; + } + } + } + + public override void Refresh() + { + this.m_redPoint = false; + int i = 0; + int count = this.m_attributeCharms.Count; + while (i < count) + { + AttributeCharm attributeCharm = this.m_attributeCharms[i]; + bool flag = (long)attributeCharm.index <= (long)((ulong)this.m_activateCount); + if (flag) + { + attributeCharm.active = true; + } + else + { + attributeCharm.active = false; + bool flag2 = !this.m_redPoint; + if (flag2) + { + this.m_redPoint = (attributeCharm.index <= this.GetCount()); + } + } + i++; + } + } + + public override List GetAttributeCharm() + { + return this.m_attributeCharms; + } + + public override int GetID() + { + bool flag = this.m_equipSuit != null; + int result; + if (flag) + { + result = this.m_equipSuit.SuitID; + } + else + { + result = 0; + } + return result; + } + + public override int GetCount() + { + return this.GetItems().Count; + } + + public override void SetCount(uint count) + { + this.m_activateCount = count; + } + + public override string GetName() + { + bool flag = this.GetItems().Count == this.GetFashionList().Length; + string result; + if (flag) + { + result = this.m_equipSuit.SuitName; + } + else + { + result = string.Format("{0}({1}/{2})", this.m_equipSuit.SuitName, this.GetItems().Count, this.GetFashionList().Length); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageEquipCollection.cs.meta b/Client/Assets/Scripts/XMainClient/FashionStorageEquipCollection.cs.meta new file mode 100644 index 00000000..c29fe80a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageEquipCollection.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 088afc743e160694586626e4dba53fdd +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageFashionCollection.cs b/Client/Assets/Scripts/XMainClient/FashionStorageFashionCollection.cs new file mode 100644 index 00000000..51008b0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageFashionCollection.cs @@ -0,0 +1,147 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FashionStorageFashionCollection : FashionStorageTabBase + { + public override bool Active + { + get + { + bool flag = XSingleton.singleton.XPlayerData == null || this.m_charm == null; + return !flag && XSingleton.singleton.XPlayerData.Level >= this.m_charm.Level; + } + } + + public override bool ActivateAll + { + get + { + return (long)this.GetFashionList().Length == (long)((ulong)this.m_activateCount); + } + } + + public override bool RedPoint + { + get + { + return this.m_redPoint; + } + } + + private XFashionStorageDocument m_doc; + + private FashionSuitTable.RowData m_fashionSuit; + + private List m_attributeCharms; + + private FashionCharm.RowData m_charm; + + private bool m_redPoint = false; + + private uint m_activateCount = 0u; + + public FashionStorageFashionCollection(int suitID) + { + this.m_doc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + this.m_fashionSuit = specificDocument.GetSuitData(suitID); + bool flag = this.m_doc.TryGetFashionChaim((uint)suitID, out this.m_charm); + if (flag) + { + this.m_fashionList = this.m_charm.SuitParam; + this.m_attributeCharms = new List(); + this.InsertAttributeCharm(1, this.m_charm.Effect1); + this.InsertAttributeCharm(2, this.m_charm.Effect2); + this.InsertAttributeCharm(3, this.m_charm.Effect3); + this.InsertAttributeCharm(4, this.m_charm.Effect4); + this.InsertAttributeCharm(5, this.m_charm.Effect5); + this.InsertAttributeCharm(6, this.m_charm.Effect6); + this.InsertAttributeCharm(7, this.m_charm.Effect7); + } + } + + private void InsertAttributeCharm(int index, SeqListRef list) + { + bool flag = list.count == 0; + if (!flag) + { + int i = 0; + int count = (int)list.count; + while (i < count) + { + AttributeCharm attributeCharm = new AttributeCharm(); + attributeCharm.index = index; + attributeCharm.key = list[i, 0]; + attributeCharm.value = list[i, 1]; + attributeCharm.active = false; + this.m_attributeCharms.Add(attributeCharm); + i++; + } + } + } + + public override List GetAttributeCharm() + { + return this.m_attributeCharms; + } + + public override void Refresh() + { + this.m_redPoint = false; + int i = 0; + int count = this.m_attributeCharms.Count; + while (i < count) + { + AttributeCharm attributeCharm = this.m_attributeCharms[i]; + bool flag = (long)attributeCharm.index <= (long)((ulong)this.m_activateCount); + if (flag) + { + attributeCharm.active = true; + } + else + { + attributeCharm.active = false; + bool flag2 = !this.m_redPoint; + if (flag2) + { + this.m_redPoint = (attributeCharm.index <= this.GetCount()); + } + } + i++; + } + } + + public override int GetCount() + { + return this.GetItems().Count; + } + + public override int GetID() + { + return this.m_fashionSuit.SuitID; + } + + public override void SetCount(uint count) + { + this.m_activateCount = count; + } + + public override string GetName() + { + bool flag = this.GetItems().Count == this.GetFashionList().Length; + string result; + if (flag) + { + result = this.m_fashionSuit.SuitName; + } + else + { + result = string.Format("{0}({1}/{2})", this.m_fashionSuit.SuitName, this.GetItems().Count, this.GetFashionList().Length); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageFashionCollection.cs.meta b/Client/Assets/Scripts/XMainClient/FashionStorageFashionCollection.cs.meta new file mode 100644 index 00000000..d45e2414 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageFashionCollection.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4045b20e096cce43961e43af3f63b0c +timeCreated: 1611404735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageHairColor.cs b/Client/Assets/Scripts/XMainClient/FashionStorageHairColor.cs new file mode 100644 index 00000000..17ab2c87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageHairColor.cs @@ -0,0 +1,50 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FashionStorageHairColor : FashionStorageTabBase, IFashionStorageSelect + { + private FashionHair.RowData m_hairData; + + private string m_hairName; + + public FashionStorageHairColor(FashionHair.RowData hairData) + { + this.m_hairData = hairData; + this.m_fashionList = new uint[this.m_hairData.UnLookColorID.Length + 1]; + int i = 0; + int num = this.m_fashionList.Length; + while (i < num) + { + bool flag = i == 0; + if (flag) + { + this.m_fashionList[i] = this.m_hairData.DefaultColorID; + } + else + { + this.m_fashionList[i] = this.m_hairData.UnLookColorID[i - 1]; + } + i++; + } + this.GetItems().Add(hairData.DefaultColorID); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.m_hairData.HairID); + bool flag2 = itemConf != null && itemConf.ItemName != null && itemConf.ItemName.Length != 0; + if (flag2) + { + this.m_hairName = itemConf.ItemName[0]; + } + } + + public override string GetName() + { + return this.m_hairName; + } + + public override int GetID() + { + return (int)this.m_hairData.HairID; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageHairColor.cs.meta b/Client/Assets/Scripts/XMainClient/FashionStorageHairColor.cs.meta new file mode 100644 index 00000000..76717dff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageHairColor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f632df445b3acca43b7e1beaaa8808d7 +timeCreated: 1611404880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionStoragePosition.cs b/Client/Assets/Scripts/XMainClient/FashionStoragePosition.cs new file mode 100644 index 00000000..2c7dc3b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStoragePosition.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + public enum FashionStoragePosition + { + FASHION_START, + FashionHair = 0, + FashionHeadgear, + FashionUpperBody, + FashionLowerBody, + FashionGloves, + FashionBoots, + FashionWeapon, + FashionThird, + FASHION_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionStoragePosition.cs.meta b/Client/Assets/Scripts/XMainClient/FashionStoragePosition.cs.meta new file mode 100644 index 00000000..0da56251 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStoragePosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f368de5760aea741aead0a72f018b6c +timeCreated: 1611403610 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionStoragePreview.cs b/Client/Assets/Scripts/XMainClient/FashionStoragePreview.cs new file mode 100644 index 00000000..9fef8f94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStoragePreview.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum FashionStoragePreview + { + None, + Hair, + Effect + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionStoragePreview.cs.meta b/Client/Assets/Scripts/XMainClient/FashionStoragePreview.cs.meta new file mode 100644 index 00000000..21d5549e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStoragePreview.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a91d2c6951d1754388e02611d1f4212 +timeCreated: 1611404092 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageSuitEffect.cs b/Client/Assets/Scripts/XMainClient/FashionStorageSuitEffect.cs new file mode 100644 index 00000000..d5ecbd68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageSuitEffect.cs @@ -0,0 +1,56 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FashionStorageSuitEffect : FashionStorageTabBase, IFashionStorageSelect + { + public override bool Active + { + get + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + return specificDocument.isActivateEffect(this._suitEffectID); + } + } + + public override bool RedPoint + { + get + { + return !this.Active && this._activeAll; + } + } + + private FashionSuitSpecialEffects.RowData _rowData; + + private uint _suitEffectID = 0u; + + private string _suitEffectName; + + private bool _activeAll = false; + + public FashionStorageSuitEffect(FashionSuitSpecialEffects.RowData row) + { + this._rowData = row; + this._suitEffectID = row.suitid; + this._suitEffectName = row.Name; + this.m_fashionList = row.FashionList; + } + + public override string GetName() + { + return this._suitEffectName; + } + + public override int GetID() + { + return (int)this._suitEffectID; + } + + public override void Refresh() + { + this._activeAll = (this.GetFashionList().Length == this.GetItems().Count); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageSuitEffect.cs.meta b/Client/Assets/Scripts/XMainClient/FashionStorageSuitEffect.cs.meta new file mode 100644 index 00000000..bfafe064 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageSuitEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b57b58fe6979b254f891009b8d48e00f +timeCreated: 1611404395 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageTabBase.cs b/Client/Assets/Scripts/XMainClient/FashionStorageTabBase.cs new file mode 100644 index 00000000..9baffa25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageTabBase.cs @@ -0,0 +1,98 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class FashionStorageTabBase : IFashionStorageSelect + { + public bool Select + { + get + { + return this.m_select; + } + set + { + this.m_select = value; + } + } + + public virtual bool RedPoint + { + get + { + return false; + } + } + + public virtual bool Active + { + get + { + return true; + } + } + + public virtual bool ActivateAll + { + get + { + return false; + } + } + + private bool m_select = false; + + protected uint[] m_fashionList; + + protected List m_items; + + public virtual int GetID() + { + return 0; + } + + public virtual int GetCount() + { + return 0; + } + + public virtual List GetItems() + { + bool flag = this.m_items == null; + if (flag) + { + this.m_items = new List(); + } + return this.m_items; + } + + public virtual string GetName() + { + return ""; + } + + public virtual uint[] GetFashionList() + { + return this.m_fashionList; + } + + public virtual void SetCount(uint count) + { + } + + public virtual List GetAttributeCharm() + { + return null; + } + + public virtual void Refresh() + { + } + + public virtual string GetLabel() + { + return ""; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FashionStorageTabBase.cs.meta b/Client/Assets/Scripts/XMainClient/FashionStorageTabBase.cs.meta new file mode 100644 index 00000000..45ae5661 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FashionStorageTabBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c2bc2a26778ce3428ec690fa48e58ce +timeCreated: 1611403343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FatigueRecoverTime.cs b/Client/Assets/Scripts/XMainClient/FatigueRecoverTime.cs new file mode 100644 index 00000000..5e808654 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FatigueRecoverTime.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class FatigueRecoverTime + { + public List fatigueid = new List(); + + public List timeleft = new List(); + + public DateTime updatetime = default(DateTime); + } +} diff --git a/Client/Assets/Scripts/XMainClient/FatigueRecoverTime.cs.meta b/Client/Assets/Scripts/XMainClient/FatigueRecoverTime.cs.meta new file mode 100644 index 00000000..aa3c1b82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FatigueRecoverTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 144186e024bb99b4db1d0a69ae464f32 +timeCreated: 1611403254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FetchState.cs b/Client/Assets/Scripts/XMainClient/FetchState.cs new file mode 100644 index 00000000..653ef16b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FetchState.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum FetchState + { + FS_CAN_FETCH, + FS_CANNOT_FETCH, + FS_ALREADY_FETCH, + FS_FETCHED + } +} diff --git a/Client/Assets/Scripts/XMainClient/FetchState.cs.meta b/Client/Assets/Scripts/XMainClient/FetchState.cs.meta new file mode 100644 index 00000000..38909d32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FetchState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7914b9192dfd6294f9d494e63920ca6e +timeCreated: 1611403983 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FirstPassAuxData.cs b/Client/Assets/Scripts/XMainClient/FirstPassAuxData.cs new file mode 100644 index 00000000..90b6009d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassAuxData.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FirstPassAuxData + { + public bool IsCanPrise + { + get + { + return !this.IsGivedPrise && this.PassTeamCount != 0; + } + } + + public uint PriseTotalNum { get; set; } + + public bool IsHadReward + { + get + { + return !this.IsGetedReward && this.CurRank > 0 && this.CurRank <= FirstPassDocument.Doc.NeedPassTeamCount; + } + } + + public int Id + { + get + { + return this.m_firstPass.ID; + } + } + + public int Star + { + get + { + return this.m_Star; + } + } + + public string SceneName + { + get + { + bool flag = this.m_Star != -1; + string result; + if (flag) + { + result = this.m_sceneName; + } + else + { + bool flag2 = this.m_firstPass != null; + if (flag2) + { + result = this.m_firstPass.Des; + } + else + { + result = ""; + } + } + return result; + } + } + + public string PassTimeStr + { + get + { + return this.m_passTimeStr; + } + } + + public FirstPassTable.RowData FirstPassRow + { + get + { + return this.m_firstPass; + } + } + + public List TeamInfoList + { + get + { + return this.m_teamInfoList; + } + } + + public List PriseRewardDataList + { + get + { + bool flag = this.m_PriseRewardDataList == null; + if (flag) + { + this.m_PriseRewardDataList = new List(); + for (int i = 0; i < this.m_firstPass.CommendReward.Count; i++) + { + RewardItemAuxData rewardItemAuxData = new RewardItemAuxData(this.m_firstPass.CommendReward[i, 0], this.m_firstPass.CommendReward[i, 1]); + bool flag2 = rewardItemAuxData.Id > 0; + if (flag2) + { + this.m_PriseRewardDataList.Add(rewardItemAuxData); + } + } + } + return this.m_PriseRewardDataList; + } + } + + public List PassRewardList + { + get + { + bool flag = this.m_PassRewardList == null; + if (flag) + { + this.m_PassRewardList = new List(); + for (int i = 0; i < FirstPassDocument.sFirstPassReward.Table.Length; i++) + { + bool flag2 = FirstPassDocument.sFirstPassReward.Table[i].ID == this.m_firstPass.RewardID; + if (flag2) + { + RewardAuxData item = new RewardAuxData(FirstPassDocument.sFirstPassReward.Table[i]); + this.m_PassRewardList.Add(item); + } + } + } + return this.m_PassRewardList; + } + } + + private FirstPassTable.RowData m_firstPass; + + private string m_passTimeStr = string.Empty; + + private List m_PriseRewardDataList = null; + + private List m_PassRewardList = null; + + private List m_teamInfoList = null; + + private int m_Star = -1; + + private string m_sceneName = ""; + + public int CurRank = 0; + + public int PassTeamCount = 0; + + public bool IsGivedPrise = false; + + public bool IsGetedReward = false; + + public FirstPassAuxData(FirstPassTable.RowData data) + { + this.m_firstPass = data; + } + + public void SetPassTime(uint time) + { + bool flag = time == 0u; + if (flag) + { + this.m_passTimeStr = string.Empty; + } + else + { + this.m_passTimeStr = XSingleton.singleton.TimeFormatSince1970((int)time, XStringDefineProxy.GetString("FirstPassTeamTime"), true); + } + } + + public void SetStar(int star) + { + this.m_Star = star + 1; + bool flag = this.m_firstPass == null; + if (!flag) + { + bool flag2 = this.m_Star != -1; + if (flag2) + { + bool flag3 = this.m_Star <= this.m_firstPass.SceneID.Length && this.m_Star >= 1; + if (flag3) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this.m_firstPass.SceneID[this.m_Star - 1]); + bool flag4 = sceneData != null; + if (flag4) + { + this.m_sceneName = sceneData.Comment; + } + } + } + } + } + + public void SetTeamInfoListData(List lst) + { + this.m_teamInfoList = lst; + } + + public bool IsOpen() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + bool flag = this.m_firstPass == null || this.m_firstPass.SceneID.Length < 1; + bool result; + if (flag) + { + result = false; + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData((uint)this.m_firstPass.SceneID[0]); + bool flag2 = sceneData == null; + if (flag2) + { + result = false; + } + else + { + XLevelSealDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + result = (specificDocument2.SealLevel >= (uint)sceneData.RequiredLevel); + } + } + return result; + } + + public RewardAuxData GetFirstPassReward(int rank) + { + for (int i = 0; i < this.PassRewardList.Count; i++) + { + bool flag = this.PassRewardList[i].IsInRang(rank); + if (flag) + { + return this.PassRewardList[i]; + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FirstPassAuxData.cs.meta b/Client/Assets/Scripts/XMainClient/FirstPassAuxData.cs.meta new file mode 100644 index 00000000..fe08e6ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassAuxData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86bc446307624434eb004bd7e28ebfa2 +timeCreated: 1611404055 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FirstPassDocument.cs b/Client/Assets/Scripts/XMainClient/FirstPassDocument.cs new file mode 100644 index 00000000..b84a5a5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassDocument.cs @@ -0,0 +1,601 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FirstPassDocument : XDocComponent + { + public override uint ID + { + get + { + return FirstPassDocument.uuID; + } + } + + public int NeedPassTeamCount + { + get + { + return XSingleton.singleton.GetInt("PassTeamCount"); + } + } + + public static FirstPassDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(FirstPassDocument.uuID) as FirstPassDocument; + } + } + + public FirstPassMainHandler View { get; set; } + + public List FirstPassData + { + get + { + bool flag = this.m_FirstPassData == null; + if (flag) + { + this.m_FirstPassData = new List(); + for (int i = 0; i < FirstPassDocument.sFirstPassTable.Table.Length; i++) + { + FirstPassAuxData item = new FirstPassAuxData(FirstPassDocument.sFirstPassTable.Table[i]); + this.m_FirstPassData.Add(item); + } + } + return this.m_FirstPassData; + } + } + + public bool IsHadOutRedDot + { + get + { + return this.m_isHadOutRedDot; + } + set + { + bool flag = this.m_isHadOutRedDot != value; + if (flag) + { + this.m_isHadOutRedDot = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_OperatingActivity, true); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshRedpoint(); + } + } + } + } + + public FirstPassAuxData CurData { get; set; } + + public FirstPassRankList RankList + { + get + { + return this.m_rankList; + } + } + + public bool IsHadNextData + { + get + { + int index = this.GetIndex(); + bool flag = index == this.FirstPassData.Count - 1; + return !flag && this.FirstPassData[index + 1].IsOpen(); + } + } + + public bool IsHadLastData + { + get + { + int index = this.GetIndex(); + bool flag = index == 0; + return !flag && this.FirstPassData[index - 1].IsOpen(); + } + } + + public FirstPassAuxData AutoSelectFirstPassData + { + get + { + bool flag = this.FirstPassData.Count == 0; + FirstPassAuxData result; + if (flag) + { + result = null; + } + else + { + bool flag2 = this.FirstPassData.Count == 1; + if (flag2) + { + result = this.FirstPassData[0]; + } + else + { + for (int i = 0; i < this.FirstPassData.Count; i++) + { + bool flag3 = i == 0; + if (flag3) + { + bool flag4 = !this.FirstPassData[i].IsOpen(); + if (flag4) + { + return this.FirstPassData[i]; + } + } + bool flag5 = i == this.FirstPassData.Count - 1; + if (flag5) + { + return this.FirstPassData[i]; + } + bool flag6 = this.FirstPassData[i].PassTeamCount < this.NeedPassTeamCount; + if (flag6) + { + return this.FirstPassData[i]; + } + bool flag7 = !this.FirstPassData[i + 1].IsOpen(); + if (flag7) + { + return this.FirstPassData[i]; + } + } + result = this.FirstPassData[0]; + } + } + return result; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FirstPassDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static FirstPassTable sFirstPassTable = new FirstPassTable(); + + public static FirstPassReward sFirstPassReward = new FirstPassReward(); + + public static readonly int MaxAvata = 6; + + private List m_FirstPassData = null; + + private bool m_isHadOutRedDot = false; + + private FirstPassRankList m_rankList = null; + + public static void Execute(OnLoadedCallback callback = null) + { + FirstPassDocument.AsyncLoader.AddTask("Table/FirstPass", FirstPassDocument.sFirstPassTable, false); + FirstPassDocument.AsyncLoader.AddTask("Table/FirstPassReward", FirstPassDocument.sFirstPassReward, false); + FirstPassDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + bool flag = this.m_FirstPassData != null; + if (flag) + { + for (int i = 0; i < this.m_FirstPassData.Count; i++) + { + this.m_FirstPassData[i] = null; + } + this.m_FirstPassData.Clear(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.ReqRankList(this.CurData.Id); + } + else + { + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + bool flag3 = this.View.TeamInfoHandler != null && this.View.TeamInfoHandler.IsVisible(); + if (flag3) + { + this.ReqFirstPassTopRoleInfo(this.CurData.Id); + } + else + { + this.ReqFirstPassInfo(); + } + } + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void SetCurDataByNestType(int nestType) + { + bool flag = this.FirstPassData.Count <= 0; + if (!flag) + { + for (int i = 0; i < this.FirstPassData.Count; i++) + { + bool flag2 = this.FirstPassData[i] != null; + if (flag2) + { + bool flag3 = (ulong)this.FirstPassData[i].FirstPassRow.NestType == (ulong)((long)nestType); + if (flag3) + { + this.CurData = this.FirstPassData[i]; + return; + } + } + } + this.CurData = this.FirstPassData[0]; + } + } + + public FirstPassAuxData GetNextFirstPassData() + { + int index = this.GetIndex(); + bool flag = index == this.FirstPassData.Count - 1; + FirstPassAuxData result; + if (flag) + { + result = this.CurData; + } + else + { + bool flag2 = !this.FirstPassData[index + 1].IsOpen(); + if (flag2) + { + result = this.CurData; + } + else + { + result = this.FirstPassData[index + 1]; + } + } + return result; + } + + public FirstPassAuxData GetLastFirstPassData() + { + int index = this.GetIndex(); + bool flag = index == 0; + FirstPassAuxData result; + if (flag) + { + result = this.CurData; + } + else + { + bool flag2 = !this.FirstPassData[index - 1].IsOpen(); + if (flag2) + { + result = this.CurData; + } + else + { + result = this.FirstPassData[index - 1]; + } + } + return result; + } + + private int GetIndex() + { + for (int i = 0; i < this.FirstPassData.Count; i++) + { + bool flag = this.FirstPassData[i].Id == this.CurData.Id; + if (flag) + { + return i; + } + } + return 0; + } + + public bool MainArrowRedDot(ArrowDirection direction) + { + bool flag = this.CurData == null; + bool result; + if (flag) + { + result = false; + } + else + { + int index = this.GetIndex(); + if (direction != ArrowDirection.Left) + { + if (direction == ArrowDirection.Right) + { + for (int i = index + 1; i < this.FirstPassData.Count; i++) + { + bool flag2 = this.FirstPassData[i].IsCanPrise | this.FirstPassData[i].IsHadReward; + if (flag2) + { + return true; + } + } + } + } + else + { + for (int j = 0; j < index; j++) + { + bool flag3 = this.FirstPassData[j].IsCanPrise | this.FirstPassData[j].IsHadReward; + if (flag3) + { + return true; + } + } + } + result = false; + } + return result; + } + + public bool InfoArrowRedDot(ArrowDirection direction) + { + bool flag = this.CurData == null; + bool result; + if (flag) + { + result = false; + } + else + { + int index = this.GetIndex(); + if (direction != ArrowDirection.Left) + { + if (direction == ArrowDirection.Right) + { + for (int i = index + 1; i < this.FirstPassData.Count; i++) + { + bool isCanPrise = this.FirstPassData[i].IsCanPrise; + if (isCanPrise) + { + return true; + } + } + } + } + else + { + for (int j = 0; j < index; j++) + { + bool isCanPrise2 = this.FirstPassData[j].IsCanPrise; + if (isCanPrise2) + { + return true; + } + } + } + result = false; + } + return result; + } + + public void ReqFirstPassInfo() + { + RpcC2G_FirstPassInfoReq rpc = new RpcC2G_FirstPassInfoReq(); + XSingleton.singleton.Send(rpc); + } + + public void ReqFirstPassReward(int firstPassId) + { + RpcC2G_GetFirstPassReward rpcC2G_GetFirstPassReward = new RpcC2G_GetFirstPassReward(); + rpcC2G_GetFirstPassReward.oArg.firstPassID = firstPassId; + XSingleton.singleton.Send(rpcC2G_GetFirstPassReward); + } + + public void ReqCommendFirstPass(int firstPassId) + { + RpcC2G_CommendFirstPass rpcC2G_CommendFirstPass = new RpcC2G_CommendFirstPass(); + rpcC2G_CommendFirstPass.oArg.firstPassID = firstPassId; + XSingleton.singleton.Send(rpcC2G_CommendFirstPass); + } + + public void ReqFirstPassTopRoleInfo(int firstPassId) + { + RpcC2G_FirstPassGetTopRoleInfo rpcC2G_FirstPassGetTopRoleInfo = new RpcC2G_FirstPassGetTopRoleInfo(); + rpcC2G_FirstPassGetTopRoleInfo.oArg.firstPassID = firstPassId; + XSingleton.singleton.Send(rpcC2G_FirstPassGetTopRoleInfo); + } + + public void ReqRankList(int firstPassId) + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.FirstPassRank); + rpcC2M_ClientQueryRankListNtf.oArg.firstPassID = firstPassId; + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void RefreshOutRedDot(bool priseReward, bool passReward) + { + this.IsHadOutRedDot = true; + } + + public void OnGetFirstPassInfo(FirstPassInfoReqRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + for (int i = 0; i < oRes.stageInfos.Count; i++) + { + this.RefreshFirstPassData(oRes.stageInfos[i]); + } + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshUI(); + } + } + } + + public void OnGetFirstPassTopRoleInfo(FirstPassGetTopRoleInfoRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + bool flag2 = this.CurData != null; + if (flag2) + { + this.CurData.SetTeamInfoListData(oRes.infos); + this.CurData.PriseTotalNum = (uint)oRes.commendNum; + this.CurData.SetPassTime((uint)oRes.time); + bool flag3 = this.CurData.FirstPassRow.NestType > 0u; + if (flag3) + { + this.CurData.SetStar(oRes.starLevel); + } + } + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + bool flag5 = this.View.TeamInfoHandler != null && this.View.TeamInfoHandler.IsVisible(); + if (flag5) + { + this.View.TeamInfoHandler.FillAvata(); + } + } + } + } + + public void OnGetFirstPassReward(GetFirstPassRewardRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + bool flag2 = this.CurData != null; + if (flag2) + { + this.CurData.IsGetedReward = true; + } + this.SetOutRedDotStatue(); + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + this.View.RefreshUI(); + } + } + } + + public void OnGetCommendFirstPass(CommendFirstPassRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + bool flag2 = this.CurData != null; + if (flag2) + { + this.CurData.IsGivedPrise = true; + } + bool flag3 = this.CurData != null; + if (flag3) + { + this.CurData.PriseTotalNum = (uint)oRes.commendNum; + } + this.SetOutRedDotStatue(); + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + bool flag5 = this.View.TeamInfoHandler != null && this.View.TeamInfoHandler.IsVisible(); + if (flag5) + { + this.View.TeamInfoHandler.RefreshUI(); + } + } + } + } + + public void OnGetRankList(ClientQueryRankListRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + this.m_rankList = new FirstPassRankList(oRes, true); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.FillContent(); + } + } + } + + private void SetOutRedDotStatue() + { + bool flag = false; + for (int i = 0; i < this.FirstPassData.Count; i++) + { + flag |= this.FirstPassData[i].IsCanPrise; + flag |= this.FirstPassData[i].IsHadReward; + } + this.IsHadOutRedDot = flag; + } + + private void RefreshFirstPassData(FirstPassStageInfo2Client info) + { + bool flag = info == null; + if (!flag) + { + for (int i = 0; i < this.FirstPassData.Count; i++) + { + bool flag2 = this.FirstPassData[i].Id == info.firstPassID; + if (flag2) + { + this.FirstPassData[i].CurRank = info.myRank; + this.FirstPassData[i].IsGivedPrise = info.hasCommended; + this.FirstPassData[i].IsGetedReward = info.isGetReward; + this.FirstPassData[i].PassTeamCount = info.totalRank; + break; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FirstPassDocument.cs.meta b/Client/Assets/Scripts/XMainClient/FirstPassDocument.cs.meta new file mode 100644 index 00000000..13ef2330 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdbdbf46de9af224bb66950a1b70772e +timeCreated: 1611404575 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FirstPassInfoData.cs b/Client/Assets/Scripts/XMainClient/FirstPassInfoData.cs new file mode 100644 index 00000000..2a96f00f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassInfoData.cs @@ -0,0 +1,40 @@ +using System; + +namespace XMainClient +{ + internal class FirstPassInfoData + { + public ulong Id + { + get + { + return this.m_id; + } + } + + public string Name + { + get + { + return this.m_name; + } + } + + private ulong m_id = 0UL; + + private string m_name = ""; + + public FirstPassInfoData(ulong id, string name, uint titleId, bool isFirstPassRank) + { + this.m_id = id; + if (isFirstPassRank) + { + this.m_name = XTitleDocument.GetTitleWithFormat(titleId, name); + } + else + { + this.m_name = name; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FirstPassInfoData.cs.meta b/Client/Assets/Scripts/XMainClient/FirstPassInfoData.cs.meta new file mode 100644 index 00000000..9a3106e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassInfoData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 342ea1c8ffc7e86459832e462f08f955 +timeCreated: 1611403554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs b/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs new file mode 100644 index 00000000..17b2ddfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FirstPassRankInfo + { + public List InfoDataList + { + get + { + return this.m_infoDataList; + } + } + + public uint PassTime + { + get + { + return this.m_passTime; + } + } + + public uint UseTime + { + get + { + return this.m_useTime; + } + } + + public string PassTimeStr + { + get + { + return this.m_passTimeStr; + } + } + + public uint StarNum + { + get + { + return this.m_starNum; + } + } + + private List m_infoDataList; + + private uint m_passTime = 0u; + + private string m_passTimeStr = string.Empty; + + private uint m_starNum = 0u; + + private uint m_useTime; + + public FirstPassRankInfo(RankData info, bool isFirstPassRank) + { + this.m_infoDataList = new List(); + for (int i = 0; i < info.RoleNames.Count; i++) + { + FirstPassInfoData item = new FirstPassInfoData(info.RoleIds[i], info.RoleNames[i], info.titleIDs[i], isFirstPassRank); + this.m_infoDataList.Add(item); + } + this.m_passTime = info.time; + this.m_starNum = info.starlevel + 1u; + this.m_useTime = info.usetime; + if (isFirstPassRank) + { + this.m_passTimeStr = XSingleton.singleton.TimeFormatSince1970((int)info.time, XStringDefineProxy.GetString("TimeFormate"), true); + } + else + { + this.m_passTimeStr = XSingleton.singleton.TimeDuarationFormatString((int)info.usetime, 5); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs.meta new file mode 100644 index 00000000..6b76fa78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 965d6287bdc1af44bbe6a1f18bad7d0e +timeCreated: 1611404185 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRankList.cs b/Client/Assets/Scripts/XMainClient/FirstPassRankList.cs new file mode 100644 index 00000000..2af5289c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRankList.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + internal class FirstPassRankList + { + public List InfoList + { + get + { + return this.m_InfoList; + } + } + + private List m_InfoList = new List(); + + public uint timeStamp = 0u; + + public FirstPassRankList(ClientQueryRankListRes oRes, bool isFirstPassRank = true) + { + this.timeStamp = oRes.TimeStamp; + bool flag = oRes.RankList == null; + if (!flag) + { + for (int i = 0; i < oRes.RankList.RankData.Count; i++) + { + FirstPassRankInfo item = new FirstPassRankInfo(oRes.RankList.RankData[i], isFirstPassRank); + this.m_InfoList.Add(item); + } + } + } + + public FirstPassRankList() + { + } + + public void Init(ClientQueryRankListRes oRes, bool isFirstPassRank = true) + { + this.timeStamp = oRes.TimeStamp; + this.m_InfoList = new List(); + bool flag = oRes.RankList == null; + if (!flag) + { + for (int i = 0; i < oRes.RankList.RankData.Count; i++) + { + FirstPassRankInfo item = new FirstPassRankInfo(oRes.RankList.RankData[i], isFirstPassRank); + this.m_InfoList.Add(item); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRankList.cs.meta b/Client/Assets/Scripts/XMainClient/FirstPassRankList.cs.meta new file mode 100644 index 00000000..fa795f2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8ff075f77ff0db4b9150a4721809f4c +timeCreated: 1611404407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRankView.cs b/Client/Assets/Scripts/XMainClient/FirstPassRankView.cs new file mode 100644 index 00000000..4c10499b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRankView.cs @@ -0,0 +1,251 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FirstPassRankView : DlgBase + { + private FirstPassDocument m_doc + { + get + { + return FirstPassDocument.Doc; + } + } + + public override string fileName + { + get + { + return "OperatingActivity/FirstPassRank"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosedClicked)); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + base.uiBehaviour.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillDefault(); + bool flag = this.m_doc.CurData != null; + if (flag) + { + this.m_doc.ReqRankList(this.m_doc.CurData.Id); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private void FillDefault() + { + bool flag = this.m_doc.CurData != null; + if (flag) + { + base.uiBehaviour.m_tittleLab.SetText(string.Format(XStringDefineProxy.GetString("FirstPassTittle"), this.m_doc.CurData.FirstPassRow.RankTittle)); + } + else + { + base.uiBehaviour.m_tittleLab.SetText(string.Empty); + } + base.uiBehaviour.m_tipsGo.SetActive(true); + base.uiBehaviour.m_wrapContent.gameObject.SetActive(false); + } + + public void FillContent() + { + bool flag = this.m_doc.RankList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", RankeType.FirstPassRank.ToString(), null, null, null, null); + } + else + { + bool flag2 = this.m_doc.CurData != null && this.m_doc.CurData.FirstPassRow != null; + if (flag2) + { + base.uiBehaviour.m_needHideTittleGo.SetActive(this.m_doc.CurData.FirstPassRow.NestType > 0u); + } + bool flag3 = this.m_doc.RankList.InfoList == null || this.m_doc.RankList.InfoList.Count == 0; + if (flag3) + { + base.uiBehaviour.m_tipsGo.SetActive(true); + base.uiBehaviour.m_wrapContent.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_tipsGo.SetActive(false); + base.uiBehaviour.m_wrapContent.gameObject.SetActive(true); + int count = this.m_doc.RankList.InfoList.Count; + base.uiBehaviour.m_wrapContent.SetContentCount(count, false); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.m_doc.RankList.InfoList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", RankeType.FirstPassRank.ToString(), null, null, null, null); + } + else + { + bool flag2 = index >= this.m_doc.RankList.InfoList.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("index >= rankDataList.rankList.Count", null, null, null, null, null); + } + else + { + FirstPassRankInfo firstPassRankInfo = this.m_doc.RankList.InfoList[index]; + bool flag3 = firstPassRankInfo == null; + if (!flag3) + { + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(firstPassRankInfo.PassTimeStr.Replace("/n", "\n")); + ixuilabel = (t.Find("Image/Rank").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(firstPassRankInfo.StarNum.ToString()); + bool flag4 = this.m_doc.CurData != null && this.m_doc.CurData.FirstPassRow != null; + if (flag4) + { + t.Find("Image").gameObject.SetActive(this.m_doc.CurData.FirstPassRow.NestType > 0u); + } + bool flag5 = firstPassRankInfo.InfoDataList.Count != 0; + if (flag5) + { + Transform transform = t.Find("Labs"); + for (int i = 0; i < transform.childCount; i++) + { + bool flag6 = i >= firstPassRankInfo.InfoDataList.Count; + if (flag6) + { + transform.GetChild(i).gameObject.SetActive(false); + } + else + { + transform.GetChild(i).gameObject.SetActive(true); + IXUILabelSymbol ixuilabelSymbol = transform.GetChild(i).GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.ID = (ulong)((long)(index * 100 + i)); + ixuilabelSymbol.InputText = firstPassRankInfo.InfoDataList[i].Name; + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this.OnClickName)); + } + } + } + this.SetRank(t, index); + } + } + } + } + + private void SetRank(Transform tra, int rankIndex) + { + IXUILabel ixuilabel = tra.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = tra.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = (long)rankIndex == (long)((ulong)XRankDocument.INVALID_RANK); + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + bool flag2 = rankIndex < 3; + if (flag2) + { + ixuisprite.SetSprite("N" + (rankIndex + 1)); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1)); + ixuilabel.SetVisible(true); + } + } + } + + private bool OnClosedClicked(IXUIButton sp) + { + this.SetVisible(false, true); + return true; + } + + private void OnClickName(IXUILabelSymbol iSp) + { + bool flag = this.m_doc.RankList.InfoList == null; + if (!flag) + { + int index = (int)iSp.ID / 100; + FirstPassRankInfo firstPassRankInfo = this.m_doc.RankList.InfoList[index]; + bool flag2 = firstPassRankInfo == null; + if (!flag2) + { + int index2 = (int)iSp.ID % 100; + FirstPassInfoData firstPassInfoData = firstPassRankInfo.InfoDataList[index2]; + bool flag3 = firstPassInfoData == null; + if (!flag3) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(firstPassInfoData.Id, false); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRankView.cs.meta b/Client/Assets/Scripts/XMainClient/FirstPassRankView.cs.meta new file mode 100644 index 00000000..94b65cff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRankView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 968ce6c7b456c8142b4223f947bb1503 +timeCreated: 1611404185 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRewardBehaviour.cs b/Client/Assets/Scripts/XMainClient/FirstPassRewardBehaviour.cs new file mode 100644 index 00000000..c3642271 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRewardBehaviour.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FirstPassRewardBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public GameObject m_itemParentGo; + + public XUIPool m_ItemPool1 = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool2 = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_itemParentGo = base.transform.Find("Panel/List").gameObject; + Transform transform = this.m_itemParentGo.transform.Find("Tpl"); + this.m_ItemPool1.SetupPool(this.m_itemParentGo, transform.gameObject, 5u, false); + this.m_ItemPool2.SetupPool(transform.gameObject, this.m_itemParentGo.transform.Find("Item").gameObject, 4u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRewardBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/FirstPassRewardBehaviour.cs.meta new file mode 100644 index 00000000..a36cd98b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRewardBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 50a6444a9c86ef94e93d7378fff1f057 +timeCreated: 1611403704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRewardView.cs b/Client/Assets/Scripts/XMainClient/FirstPassRewardView.cs new file mode 100644 index 00000000..82276617 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRewardView.cs @@ -0,0 +1,167 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class FirstPassRewardView : DlgBase + { + private FirstPassDocument m_doc + { + get + { + return FirstPassDocument.Doc; + } + } + + public override string fileName + { + get + { + return "OperatingActivity/FirstPassReward"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnUnload() + { + base.uiBehaviour.m_ItemPool1.ReturnAll(false); + base.uiBehaviour.m_ItemPool2.ReturnAll(false); + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private void FillContent() + { + base.uiBehaviour.m_ItemPool1.ReturnAll(false); + base.uiBehaviour.m_ItemPool2.ReturnAll(false); + for (int i = 0; i < this.m_doc.CurData.PassRewardList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemPool1.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_itemParentGo.transform; + gameObject.name = i.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)base.uiBehaviour.m_ItemPool1.TplHeight * i), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this.GetStrByIndex(i)); + bool flag = i == 0; + if (flag) + { + ixuilabel = (gameObject.transform.Find("ch").GetComponent("XUILabel") as IXUILabel); + ixuilabel.gameObject.SetActive(true); + ixuilabel.SetText(XStringDefineProxy.GetString("FirstPassPlayerTittle")); + } + else + { + gameObject.transform.Find("ch").gameObject.SetActive(false); + } + this.FillItem(this.m_doc.CurData.PassRewardList[i], gameObject); + } + } + + private void FillItem(RewardAuxData data, GameObject parentGo) + { + for (int i = 0; i < data.RewardDataList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemPool2.FetchGameObject(false); + gameObject.transform.parent = parentGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(-170 + base.uiBehaviour.m_ItemPool2.TplWidth * i), -16f, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)data.RewardDataList[i].Id); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, data.RewardDataList[i].Id, data.RewardDataList[i].Count, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + + private string GetStrByIndex(int index) + { + string @string; + switch (index) + { + case 0: + @string = XStringDefineProxy.GetString("FirstPassReward"); + break; + case 1: + @string = XStringDefineProxy.GetString("FirstPassReward1"); + break; + case 2: + @string = XStringDefineProxy.GetString("FirstPassReward2"); + break; + case 3: + @string = XStringDefineProxy.GetString("FirstPassReward3"); + break; + case 4: + @string = XStringDefineProxy.GetString("FirstPassReward4"); + break; + default: + @string = XStringDefineProxy.GetString("XSys_Flower_Rank_Award"); + break; + } + return @string; + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FirstPassRewardView.cs.meta b/Client/Assets/Scripts/XMainClient/FirstPassRewardView.cs.meta new file mode 100644 index 00000000..5a4188de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FirstPassRewardView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d197c32c66754549b7d876aeb04e351 +timeCreated: 1611404103 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FitstpassRankBehaviour.cs b/Client/Assets/Scripts/XMainClient/FitstpassRankBehaviour.cs new file mode 100644 index 00000000..a9e27096 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FitstpassRankBehaviour.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class FitstpassRankBehaviour : DlgBehaviourBase + { + public IXUIButton m_closeBtn; + + public IXUIWrapContent m_wrapContent; + + public IXUILabel m_tittleLab; + + public GameObject m_needHideTittleGo; + + public GameObject m_tipsGo; + + private void Awake() + { + this.m_needHideTittleGo = base.transform.Find("Top/T4").gameObject; + this.m_tittleLab = (base.transform.Find("Tittle").GetComponent("XUILabel") as IXUILabel); + this.m_tittleLab.SetText(string.Empty); + this.m_closeBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Panel"); + this.m_wrapContent = (transform.Find("FourNameList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_tipsGo = base.transform.Find("Tips").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/FitstpassRankBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/FitstpassRankBehaviour.cs.meta new file mode 100644 index 00000000..2da66147 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FitstpassRankBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51d62bf2d66120c449c874cf33e2b48f +timeCreated: 1611403707 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FloatOperatorType.cs b/Client/Assets/Scripts/XMainClient/FloatOperatorType.cs new file mode 100644 index 00000000..1326e23c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FloatOperatorType.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal enum FloatOperatorType + { + FOTYPE_ADD, + FOTYPE_SUBTRACT, + FOTYPE_MULTIPLY, + FOTYPE_DIVIDE, + FOTYPE_MIN, + FOTYPE_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/FloatOperatorType.cs.meta b/Client/Assets/Scripts/XMainClient/FloatOperatorType.cs.meta new file mode 100644 index 00000000..186128f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FloatOperatorType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d8db1c18d25f0f40b66026783af20ca +timeCreated: 1611403696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs b/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs new file mode 100644 index 00000000..4ec0de3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs @@ -0,0 +1,42 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ForgeAttrDataMgr : EquipAttrDataMgr + { + private ForgeAttributes m_forgeTab = null; + + public ForgeAttrDataMgr(ForgeAttributes table) + { + this.m_forgeTab = table; + } + + protected override void SetAttrByItemId(uint itemId) + { + bool flag = this.m_forgeTab == null; + if (!flag) + { + for (int i = 0; i < this.m_forgeTab.Table.Length; i++) + { + ForgeAttributes.RowData rowData = this.m_forgeTab.Table[i]; + bool flag2 = rowData.EquipID == itemId; + if (flag2) + { + bool flag3 = !this.m_attrDic.ContainsKey(rowData.EquipID); + if (flag3) + { + EquipSlotAttrDatas equipSlotAttrDatas = new EquipSlotAttrDatas(rowData.EquipID); + equipSlotAttrDatas.Add(rowData); + this.m_attrDic.Add(rowData.EquipID, equipSlotAttrDatas); + } + else + { + this.m_attrDic[rowData.EquipID].Add(rowData); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs.meta b/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs.meta new file mode 100644 index 00000000..ec32df8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ForgeAttrDataMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a18e258e04b874c469ac07b3abb427e7 +timeCreated: 1611404254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ForgeReplaceHandler.cs b/Client/Assets/Scripts/XMainClient/ForgeReplaceHandler.cs new file mode 100644 index 00000000..1a423ca6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ForgeReplaceHandler.cs @@ -0,0 +1,102 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class ForgeReplaceHandler : DlgHandlerBase + { + private XForgeDocument m_doc; + + private IXUIButton m_cancleBtn; + + private IXUIButton m_sureBtn; + + private IXUILabel m_beforeName; + + private IXUILabel m_beforeAttr; + + private IXUILabel m_afterName; + + private IXUILabel m_afterAttr; + + protected override void Init() + { + base.Init(); + this.m_doc = XForgeDocument.Doc; + this.m_cancleBtn = (base.PanelObject.transform.Find("Bg/Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_sureBtn = (base.PanelObject.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Bg/AttrItem"); + this.m_beforeName = (transform.Find("BeforeName").GetComponent("XUILabel") as IXUILabel); + this.m_beforeAttr = (transform.Find("BeforeValue").GetComponent("XUILabel") as IXUILabel); + this.m_afterName = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_afterAttr = (transform.Find("NowValue").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_cancleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancleClicked)); + this.m_sureBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSureClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void FillContent() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag = itemByUID == null; + if (!flag) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + bool flag2 = xequipItem.forgeAttrInfo.ForgeAttr.Count == 0; + if (!flag2) + { + EquipSlotAttrDatas attrData = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)itemByUID.itemID); + bool flag3 = attrData == null; + if (!flag3) + { + string color = attrData.GetColor(1, xequipItem.forgeAttrInfo.ForgeAttr[0]); + string text = string.Format("[{0}]{1}[-]", color, XAttributeCommon.GetAttrStr((int)xequipItem.forgeAttrInfo.ForgeAttr[0].AttrID)); + this.m_beforeName.SetText(text); + text = string.Format("[{0}]{1}[-]", color, xequipItem.forgeAttrInfo.ForgeAttr[0].AttrValue); + this.m_beforeAttr.SetText(text); + text = string.Format("[{0}]{1}[-]", color, XAttributeCommon.GetAttrStr((int)xequipItem.forgeAttrInfo.UnSavedAttrid)); + this.m_afterName.SetText(text); + text = string.Format("[{0}]{1}[-]", color, xequipItem.forgeAttrInfo.UnSavedAttrValue); + this.m_afterAttr.SetText(text); + } + } + } + } + + private bool OnCancleClicked(IXUIButton btn) + { + base.SetVisible(false); + this.m_doc.ReqForgeEquip(ForgeOpType.Forge_Retain); + return true; + } + + private bool OnSureClicked(IXUIButton btn) + { + base.SetVisible(false); + this.m_doc.ReqForgeEquip(ForgeOpType.Forge_Replace); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ForgeReplaceHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ForgeReplaceHandler.cs.meta new file mode 100644 index 00000000..bfe95bd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ForgeReplaceHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 845b62e19763b7c4daa0c1854f0067ad +timeCreated: 1611404047 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ForgeSuccessHandler.cs b/Client/Assets/Scripts/XMainClient/ForgeSuccessHandler.cs new file mode 100644 index 00000000..2217323f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ForgeSuccessHandler.cs @@ -0,0 +1,123 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class ForgeSuccessHandler : DlgHandlerBase + { + private XForgeDocument m_doc; + + private IXUISprite m_closeBtn; + + private IXUIButton m_gotoBtn; + + private IXUILabel m_attrNameLab; + + private IXUILabel m_attrValueLab; + + private IXUISprite m_checkBoxSpr; + + protected override void Init() + { + base.Init(); + this.m_doc = XForgeDocument.Doc; + this.m_closeBtn = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_gotoBtn = (base.PanelObject.transform.Find("Bg/GotoBtn").GetComponent("XUIButton") as IXUIButton); + this.m_checkBoxSpr = (base.PanelObject.transform.Find("Bg/Toggle").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.PanelObject.transform.Find("Bg/AttrItem"); + this.m_attrNameLab = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_attrValueLab = (transform.Find("NowValue").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + this.m_gotoBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGotoClicked)); + this.m_checkBoxSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickToggle)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void FillContent() + { + GameObject gameObject = this.m_checkBoxSpr.transform.Find("selected").gameObject; + bool isShowTips = this.m_doc.IsShowTips; + if (isShowTips) + { + gameObject.SetActive(false); + this.m_checkBoxSpr.ID = 0UL; + } + else + { + gameObject.SetActive(true); + this.m_checkBoxSpr.ID = 1UL; + } + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag = itemByUID == null; + if (!flag) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + bool flag2 = xequipItem.forgeAttrInfo.ForgeAttr.Count == 0; + if (!flag2) + { + EquipSlotAttrDatas attrData = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)itemByUID.itemID); + bool flag3 = attrData == null; + if (!flag3) + { + string color = attrData.GetColor(1, xequipItem.forgeAttrInfo.ForgeAttr[0]); + string text = string.Format("[{0}]{1}[-]", color, XAttributeCommon.GetAttrStr((int)xequipItem.forgeAttrInfo.ForgeAttr[0].AttrID)); + this.m_attrNameLab.SetText(text); + text = string.Format("[{0}]{1}[-]", color, xequipItem.forgeAttrInfo.ForgeAttr[0].AttrValue); + this.m_attrValueLab.SetText(text); + } + } + } + } + + private void OnCloseClicked(IXUISprite spr) + { + base.SetVisible(false); + } + + private bool OnGotoClicked(IXUIButton btn) + { + base.SetVisible(false); + XSmeltDocument.Doc.SelectEquip(this.m_doc.CurUid); + return true; + } + + private void OnClickToggle(IXUISprite spr) + { + GameObject gameObject = spr.transform.Find("selected").gameObject; + bool flag = spr.ID == 0UL; + if (flag) + { + spr.ID = 1UL; + gameObject.SetActive(true); + this.m_doc.IsShowTips = false; + } + else + { + spr.ID = 0UL; + gameObject.SetActive(false); + this.m_doc.IsShowTips = true; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ForgeSuccessHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ForgeSuccessHandler.cs.meta new file mode 100644 index 00000000..0cd467c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ForgeSuccessHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97b5f09a1c403e74584420dfb53d558e +timeCreated: 1611404189 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FriendServerInfo.cs b/Client/Assets/Scripts/XMainClient/FriendServerInfo.cs new file mode 100644 index 00000000..428c3260 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FriendServerInfo.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class FriendServerInfo + { + public PlatFriendServer info; + + public string account; + + public string icon; + } +} diff --git a/Client/Assets/Scripts/XMainClient/FriendServerInfo.cs.meta b/Client/Assets/Scripts/XMainClient/FriendServerInfo.cs.meta new file mode 100644 index 00000000..c25f1d3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FriendServerInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 781c935ded2da0f4db0dded20d9549d8 +timeCreated: 1611403957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/FuseEffectType.cs b/Client/Assets/Scripts/XMainClient/FuseEffectType.cs new file mode 100644 index 00000000..86bce455 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FuseEffectType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum FuseEffectType + { + None, + Sucess, + Fail + } +} diff --git a/Client/Assets/Scripts/XMainClient/FuseEffectType.cs.meta b/Client/Assets/Scripts/XMainClient/FuseEffectType.cs.meta new file mode 100644 index 00000000..a3b3f028 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/FuseEffectType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4706926849bc592469a01d6e95746e14 +timeCreated: 1611403651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GCFGuild.cs b/Client/Assets/Scripts/XMainClient/GCFGuild.cs new file mode 100644 index 00000000..ccf637a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GCFGuild.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class GCFGuild + { + public GCFGuildBrief brief = new GCFGuildBrief(); + + public uint groupScore = 0u; + + public bool isPartern; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GCFGuild.cs.meta b/Client/Assets/Scripts/XMainClient/GCFGuild.cs.meta new file mode 100644 index 00000000..4dda1a2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GCFGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7eec8e122225f97489d416bb3491fe2c +timeCreated: 1611404007 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs b/Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs new file mode 100644 index 00000000..8089b9da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class GVGBattleInfo + { + public List Group + { + get + { + return this._groups; + } + } + + public GmfGuildBrief Base + { + get + { + return this._groupBase; + } + } + + public uint Inspire + { + get + { + return this._inspire; + } + } + + public int Size + { + get + { + return this._groups.Count; + } + } + + public bool Empty + { + get + { + return this.Size == 0; + } + } + + private List _groups = new List(); + + private GmfGuildBrief _groupBase; + + private uint _inspire; + + private List _roleCombat; + + public void Convert(GmfHalfRoles info) + { + this._groups.Clear(); + this._groups.AddRange(info.roles); + this._groupBase = info.guildb; + this._inspire = info.inspire; + } + + public void Convert(List combats) + { + this._roleCombat = combats; + } + + public bool TryGetMember(ulong uid, out GmfRole member) + { + member = null; + int i = 0; + int count = this._groups.Count; + while (i < count) + { + bool flag = uid == this._groups[i].roleID; + if (flag) + { + member = this._groups[i]; + return true; + } + i++; + } + return false; + } + + public bool TryGetCombat(ulong uid, out GmfCombat combat) + { + combat = null; + bool flag = this._roleCombat == null; + bool result; + if (flag) + { + result = false; + } + else + { + int i = 0; + int count = this._roleCombat.Count; + while (i < count) + { + bool flag2 = this._roleCombat[i].gmfrole != null && this._roleCombat[i].gmfrole.roleid == uid; + if (flag2) + { + combat = this._roleCombat[i].combat; + return true; + } + i++; + } + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs.meta new file mode 100644 index 00000000..bdb1b5f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b07fa546c639a634ba88896e5e985955 +timeCreated: 1611404351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GVGBattleSkill.cs b/Client/Assets/Scripts/XMainClient/GVGBattleSkill.cs new file mode 100644 index 00000000..d244e96e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGBattleSkill.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + public class GVGBattleSkill + { + public ulong killerID; + + public ulong deadID; + + public string killerName; + + public string deadName; + + public bool killerPosition = true; + + public int contiKillCount; + + public float validTime; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GVGBattleSkill.cs.meta b/Client/Assets/Scripts/XMainClient/GVGBattleSkill.cs.meta new file mode 100644 index 00000000..646bf7fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGBattleSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4197c7ec737577a42b9f353a8eceb744 +timeCreated: 1611403618 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs b/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs new file mode 100644 index 00000000..18c34b3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs @@ -0,0 +1,63 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class GVGCombatInfo + { + public string DamageString + { + get + { + return ((int)this.Damage).ToString(); + } + } + + public string KillCountString + { + get + { + return this.KillCount.ToString(); + } + } + + public uint KillCount = 0u; + + public double Damage = 0.0; + + public string GuildName = string.Empty; + + public ulong GuildID = 0UL; + + public uint GuildIcon = 0u; + + public int Score = 0; + + public void Set(GmfGuildCombat combat) + { + this.Score = (int)combat.score; + bool flag = combat.gmfguild != null; + if (flag) + { + this.GuildID = combat.gmfguild.guildid; + this.GuildIcon = combat.gmfguild.guildicon; + this.GuildName = combat.gmfguild.guildname; + } + bool flag2 = combat.combat != null; + if (flag2) + { + this.KillCount = combat.combat.killcount; + this.Damage = combat.combat.damage; + } + } + + public void Clear() + { + this.KillCount = 0u; + this.Damage = 0.0; + this.GuildName = string.Empty; + this.GuildIcon = 0u; + this.GuildID = 0UL; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs.meta new file mode 100644 index 00000000..3bdc80e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGCombatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43708c5a89e6ca94494259764cf3a1b3 +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GVGDuelCombatInfo.cs b/Client/Assets/Scripts/XMainClient/GVGDuelCombatInfo.cs new file mode 100644 index 00000000..35d31385 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGDuelCombatInfo.cs @@ -0,0 +1,108 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GVGDuelCombatInfo + { + public uint roomID; + + public ulong GuildID; + + public uint GuildScore; + + public string GuildName; + + public uint GuildIcon; + + public uint CombatTime; + + public ulong ServerID; + + public bool Winner; + + public bool isShow = false; + + public GVGDuelStatu gs = GVGDuelStatu.IDLE; + + public GVGDuelCombatInfo.GVGDuelCombatStatu Statu = GVGDuelCombatInfo.GVGDuelCombatStatu.Next; + + public uint AddScore = 0u; + + public enum GVGDuelCombatStatu + { + Used, + Current, + Next + } + + public string GetPortraitName() + { + return XGuildDocument.GetPortraitName((int)this.GuildIcon); + } + + public bool Pass() + { + return this.GuildID > 0UL; + } + + public void Setup(CrossGvgRacePointRecord cgrp) + { + this.roomID = cgrp.roomid; + this.CombatTime = cgrp.time; + this.GuildID = cgrp.opponent.guildid; + this.GuildName = cgrp.opponent.guildname; + this.GuildScore = cgrp.opponent.score; + this.GuildIcon = cgrp.opponent.icon; + this.ServerID = (ulong)cgrp.opponent.serverid; + this.Winner = cgrp.iswin; + this.AddScore = cgrp.addscore; + this.Convert(cgrp.state); + } + + public void Convert(CrossGvgRoomState room) + { + switch (room) + { + case CrossGvgRoomState.CGRS_Idle: + this.gs = GVGDuelStatu.IDLE; + break; + case CrossGvgRoomState.CGRS_Fighting: + this.gs = GVGDuelStatu.FIGHTING; + break; + case CrossGvgRoomState.CGRS_Finish: + this.gs = GVGDuelStatu.FINISH; + break; + default: + this.gs = GVGDuelStatu.IDLE; + break; + } + } + + public string GetGuildName() + { + bool flag = this.GuildID > 0UL; + string @string; + if (flag) + { + @string = XStringDefineProxy.GetString("CROSS_GVG_GUILDNAME", new object[] + { + this.ServerID, + this.GuildName + }); + } + else + { + @string = XStringDefineProxy.GetString("GUILD_ARENA_UNCOMBAT"); + } + return @string; + } + + public string ToTimeString() + { + return XSingleton.singleton.TimeFormatSince1970((int)this.CombatTime, XStringDefineProxy.GetString("TIME_FORMAT_YYMMDD"), true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GVGDuelCombatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GVGDuelCombatInfo.cs.meta new file mode 100644 index 00000000..e30b7fa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGDuelCombatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4958b329dc12ea46aa36180954ca5b2 +timeCreated: 1611404603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GVGDuelResult.cs b/Client/Assets/Scripts/XMainClient/GVGDuelResult.cs new file mode 100644 index 00000000..ff1ac0fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGDuelResult.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class GVGDuelResult + { + public bool isWinner + { + get + { + return this._winer; + } + } + + public GmfGuildBrief Guild + { + get + { + return this._guild; + } + } + + public uint Score + { + get + { + return this._score; + } + } + + public uint TotalKiller = 0u; + + public double TotalDamage = 0.0; + + public List RoleCombats; + + public GuildArenaBattlePattern pattern; + + private GmfGuildBrief _guild; + + private bool _cross = false; + + private uint _score = 0u; + + private bool _winer = false; + + public void Setup(GmfGuildBrief guild, List combats, bool winer, bool cross = false) + { + this._winer = winer; + this._cross = cross; + this._guild = guild; + this.SetRoleCombats(combats); + } + + public void Setup(GmfGuildBrief guild, uint score, bool winer, bool cross = false) + { + this._winer = winer; + this._guild = guild; + this._score = score; + this._cross = cross; + } + + private void SetRoleCombats(List combats) + { + this.RoleCombats = combats; + this.TotalKiller = 0u; + this.TotalDamage = 0.0; + int i = 0; + int count = combats.Count; + while (i < count) + { + this.TotalKiller += combats[i].combat.killcount; + this.TotalDamage += combats[i].combat.damage; + i++; + } + } + + public string ToGuildNameString() + { + bool cross = this._cross; + string result; + if (cross) + { + result = XStringDefineProxy.GetString("CROSS_GVG_GUILDNAME", new object[] + { + this._guild.serverid, + this._guild.guildname + }); + } + else + { + result = this.Guild.guildname; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GVGDuelResult.cs.meta b/Client/Assets/Scripts/XMainClient/GVGDuelResult.cs.meta new file mode 100644 index 00000000..ffef6b63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGDuelResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 333c08ccbb7c1be43aeb7bce00898aa1 +timeCreated: 1611403551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs b/Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs new file mode 100644 index 00000000..876731e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum GVGDuelStatu + { + FINISH, + IDLE, + FIGHTING + } +} diff --git a/Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs.meta b/Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs.meta new file mode 100644 index 00000000..72287da1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GVGDuelStatu.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 811c2f304f944fa4588b83669cace34c +timeCreated: 1611404035 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GameBuyCardHander.cs b/Client/Assets/Scripts/XMainClient/GameBuyCardHander.cs new file mode 100644 index 00000000..ab77c276 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameBuyCardHander.cs @@ -0,0 +1,577 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GameBuyCardHander : DlgHandlerBase + { + private int canBuyMaxCnt + { + get + { + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + ulong itemCount = XSingleton.singleton.Doc.XBagDoc.GetItemCount(9); + ulong itemCount2 = XSingleton.singleton.Doc.XBagDoc.GetItemCount(7); + ulong num = (DlgBase.singleton.currSys == XSysDefine.XSys_GameMall_Diamond) ? itemCount : itemCount2; + float num2 = (this.doc.currCIBShop == null) ? 3f : (this.doc.currCIBShop.row.currencycount * this.doc.currCIBShop.row.discount / 100f); + return Mathf.Max(1, Mathf.FloorToInt(num / num2)); + } + } + + private int rstCnt + { + get + { + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + CIBShop currCIBShop = this.doc.currCIBShop; + bool flag2 = currCIBShop != null; + int result; + if (flag2) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + float num = 0f; + bool flag3 = DlgBase.singleton.privilegeID == currCIBShop.sinfo.itemid && specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + if (flag3) + { + num = (float)specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce).BuyGreenAgateLimit / 100f; + } + int num2 = 0; + PayMemberPrivilege payMemberPrivilege = specificDocument.PayMemberPrivilege; + bool flag4 = payMemberPrivilege != null; + if (flag4) + { + for (int i = 0; i < payMemberPrivilege.usedPrivilegeShop.Count; i++) + { + bool flag5 = (long)payMemberPrivilege.usedPrivilegeShop[i].goodsID == (long)((ulong)currCIBShop.sinfo.goodsid); + if (flag5) + { + num2 = payMemberPrivilege.usedPrivilegeShop[i].usedCount; + break; + } + } + } + uint num3 = (uint)((this.canBuyMaxCnt > 999) ? 999 : this.canBuyMaxCnt); + bool flag6 = currCIBShop.sinfo.nlimitcount > 0u; + if (flag6) + { + uint num4 = (uint)(currCIBShop.sinfo.nlimitcount + currCIBShop.row.buycount * num) - currCIBShop.sinfo.nbuycount - (uint)num2; + num3 = ((num3 > num4) ? num4 : num3); + } + result = (currCIBShop.finish ? 0 : Mathf.Clamp(this.mCurrCnt, 1, (int)num3)); + } + else + { + result = 0; + } + return result; + } + } + + public IXUILabel m_lblBuyCnt; + + public IXUISprite m_sprBuyAdd; + + public IXUISprite m_sprBuyReduce; + + public IXUILabel m_lblPrice; + + public IXUIButton m_btnBuy; + + public IXUIButton m_btnSmallBuy; + + public IXUIButton m_btnPresent; + + public IXUISprite m_uiIcon; + + private XGameMallDocument doc; + + private int mCurrCnt = 1; + + private int[] inputs = new int[3]; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + this.m_lblBuyCnt = (base.PanelObject.transform.Find("Count/Label").GetComponent("XUILabel") as IXUILabel); + this.m_sprBuyAdd = (base.PanelObject.transform.Find("Count/Add").GetComponent("XUISprite") as IXUISprite); + this.m_sprBuyReduce = (base.PanelObject.transform.Find("Count/Sub").GetComponent("XUISprite") as IXUISprite); + this.m_lblPrice = (base.PanelObject.transform.Find("price/Label").GetComponent("XUILabel") as IXUILabel); + this.m_btnBuy = (base.PanelObject.transform.Find("OK").GetComponent("XUIButton") as IXUIButton); + this.m_btnSmallBuy = (base.PanelObject.transform.Find("OK1").GetComponent("XUIButton") as IXUIButton); + this.m_btnPresent = (base.PanelObject.transform.Find("present").GetComponent("XUIButton") as IXUIButton); + this.m_uiIcon = (base.PanelObject.transform.Find("price/p").GetComponent("XUISprite") as IXUISprite); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnBuy.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyClick)); + this.m_btnSmallBuy.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyClick)); + this.m_btnPresent.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPresentClick)); + this.m_sprBuyAdd.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnBuyAddClick)); + this.m_sprBuyReduce.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnBuyReduceClick)); + this.m_lblBuyCnt.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnCntClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + bool flag = this.doc.currItemID != 0; + if (flag) + { + this.Refresh(); + } + bool flag2 = this.doc.currCIBShop != null && this.doc.currCIBShop.finish; + if (flag2) + { + this.mCurrCnt = 0; + } + } + + protected override void OnHide() + { + this.mCurrCnt = 1; + this.ResetInput(); + base.OnHide(); + } + + public void Refresh() + { + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + CIBShop currCIBShop = this.doc.currCIBShop; + this.m_btnBuy.SetEnable(currCIBShop != null, false); + bool flag2 = currCIBShop != null; + if (flag2) + { + float num = (currCIBShop.row.discount == 0u) ? 1f : (currCIBShop.row.discount / 100f); + bool flag3 = this.rstCnt > 1; + if (flag3) + { + this.SaveCurrInput(this.rstCnt); + } + this.m_lblBuyCnt.SetText(this.rstCnt.ToString()); + float num2 = (float)((long)this.rstCnt * (long)((ulong)currCIBShop.row.currencycount)) * num; + this.m_lblPrice.SetText(num2.ToString("0")); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + uint num3 = 0u; + bool flag4 = xplayerData != null; + if (flag4) + { + num3 = xplayerData.Level; + } + bool flag5 = this.doc.currCIBShop.row.rmb > 0u && (long)XSingleton.singleton.GetInt("IBShopLevel") <= (long)((ulong)num3) && this.doc.currCIBShop.sinfo.gift && XSingleton.singleton.IsSystemOpened(XSysDefine.SYS_IBSHOP_GIFT); + this.m_btnSmallBuy.SetVisible(flag5); + this.m_btnPresent.SetVisible(flag5); + this.m_btnBuy.SetVisible(!flag5); + } + else + { + bool flag6 = false; + this.m_btnSmallBuy.SetVisible(flag6); + this.m_btnPresent.SetVisible(flag6); + this.m_btnBuy.SetVisible(!flag6); + this.m_lblBuyCnt.SetText("0"); + this.m_lblPrice.SetText("0"); + } + string strSprite; + string strAtlas; + XBagDocument.GetItemSmallIconAndAtlas((int)DlgBase.singleton.item, out strSprite, out strAtlas, 0u); + this.m_uiIcon.SetSprite(strSprite, strAtlas, false); + } + + private bool IsEqual(float v1, float v2) + { + return (double)Mathf.Abs(v1 - v2) < 0.0001; + } + + private bool OnBuyClick(IXUIButton btn) + { + CIBShop currCIBShop = this.doc.currCIBShop; + bool flag = currCIBShop != null; + if (flag) + { + int rstCnt = this.rstCnt; + bool finish = currCIBShop.finish; + if (finish) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MALL_FINISH"), "fece00"); + } + else + { + bool flag2 = rstCnt > 0; + if (flag2) + { + ulong itemCount = XSingleton.singleton.Doc.XBagDoc.GetItemCount(9); + ulong itemCount2 = XSingleton.singleton.Doc.XBagDoc.GetItemCount(7); + float num = (currCIBShop.row.discount == 0u) ? 1f : (currCIBShop.row.discount / 100f); + float num2 = (float)((long)this.rstCnt * (long)((ulong)currCIBShop.row.currencycount)) * num; + bool flag3 = DlgBase.singleton.currSys == XSysDefine.XSys_GameMall_Dragon; + if (flag3) + { + bool flag4 = num2 <= itemCount2 || this.IsEqual(num2, itemCount2); + if (flag4) + { + this.GotoBuy(currCIBShop.sinfo.goodsid, rstCnt); + } + else + { + bool flag5 = num2 <= itemCount2 + itemCount || this.IsEqual(num2, itemCount2 + itemCount); + if (!flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MALL_DRAG_LESS"), "fece00"); + return true; + } + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + int cost = (int)(num2 - itemCount2); + string @string = XStringDefineProxy.GetString("AUCTION_DRAGON_COIN_UNFULL", new object[] + { + XLabelSymbolHelper.FormatCostWithIcon((int)num2, ItemEnum.DRAGON_COIN), + XLabelSymbolHelper.FormatCostWithIcon(cost, ItemEnum.DIAMOND), + XLabelSymbolHelper.FormatCostWithIcon(cost, ItemEnum.DRAGON_COIN) + }); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string3 = XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnOverOKClick), null); + } + } + else + { + bool flag6 = DlgBase.singleton.currSys == XSysDefine.XSys_GameMall_Diamond; + if (flag6) + { + bool flag7 = num2 <= itemCount; + if (!flag7) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MALL_DIA_LESS"), "fece00"); + return true; + } + bool flag8 = this.CheckVIP(); + if (flag8) + { + this.GotoBuy(currCIBShop.sinfo.goodsid, rstCnt); + } + } + } + } + } + } + return true; + } + + private bool OnPresentClick(IXUIButton btn) + { + XActivityInviteDocument specificDocument = XDocuments.GetSpecificDocument(XActivityInviteDocument.uuID); + specificDocument.ShowActivityInviteView(2, XActivityInviteDocument.OpType.Send); + return true; + } + + private bool OnOverOKClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + CIBShop currCIBShop = this.doc.currCIBShop; + bool flag = currCIBShop != null; + if (flag) + { + ulong itemCount = XSingleton.singleton.Doc.XBagDoc.GetItemCount(7); + float num = (currCIBShop.row.discount == 0u) ? 1f : (currCIBShop.row.discount / 100f); + float num2 = (float)((long)this.rstCnt * (long)((ulong)currCIBShop.row.currencycount)) * num; + XPurchaseDocument specificDocument = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + specificDocument.CommonQuickBuyRandom(ItemEnum.DRAGON_COIN, ItemEnum.DIAMOND, (uint)(num2 - itemCount)); + } + return true; + } + + private void GotoBuy(uint goodid, int cnt) + { + this.doc.SendBuyItem(goodid, (uint)cnt); + this.mCurrCnt = 0; + this.Refresh(); + } + + private void OnCntClick(IXUILabel lbl) + { + this.ResetInput(); + DlgBase.singleton.Show(new CalculatorKeyBack(this.RefreshByCalculator), new Vector3(84f, -90f, 0f)); + } + + private void OnBuyAddClick(IXUISprite spr) + { + bool flag = this.doc.currCIBShop == null; + if (flag) + { + XSingleton.singleton.AddWarningLog("mall item is nil", null, null, null, null, null); + } + else + { + IBShop.RowData row = this.doc.currCIBShop.row; + int num = (int)(row.currencycount * row.discount / 100f); + int num2 = (int)XSingleton.singleton.Doc.XBagDoc.GetItemCount(9); + int num3 = (int)XSingleton.singleton.Doc.XBagDoc.GetItemCount(7); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + float num4 = 0f; + bool flag2 = DlgBase.singleton.privilegeID == this.doc.currCIBShop.sinfo.itemid && specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + if (flag2) + { + num4 = (float)specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce).BuyGreenAgateLimit / 100f; + } + int num5 = 0; + PayMemberPrivilege payMemberPrivilege = specificDocument.PayMemberPrivilege; + bool flag3 = payMemberPrivilege != null; + if (flag3) + { + for (int i = 0; i < payMemberPrivilege.usedPrivilegeShop.Count; i++) + { + bool flag4 = (long)payMemberPrivilege.usedPrivilegeShop[i].goodsID == (long)((ulong)this.doc.currCIBShop.sinfo.goodsid); + if (flag4) + { + num5 = payMemberPrivilege.usedPrivilegeShop[i].usedCount; + break; + } + } + } + bool flag5 = this.doc.currCIBShop.sinfo.nlimitcount != 0u && (float)this.rstCnt >= this.doc.currCIBShop.sinfo.nlimitcount + this.doc.currCIBShop.row.buycount * num4 - this.doc.currCIBShop.sinfo.nbuycount - (float)num5; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MALL_MAX"), "fece00"); + } + else + { + bool flag6 = !this.doc.currCIBShop.finish; + if (flag6) + { + bool flag7 = this.mCurrCnt < this.canBuyMaxCnt; + if (flag7) + { + this.mCurrCnt++; + this.Refresh(); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_SHOP_LACKMONEY"), "fece00"); + } + } + } + } + } + + private void OnBuyReduceClick(IXUISprite spr) + { + bool flag = this.mCurrCnt > 1; + if (flag) + { + this.mCurrCnt--; + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MALL_LESSTHAN"), "fece00"); + } + this.Refresh(); + } + + private void RefreshByCalculator(CalculatorKey key) + { + bool flag = key == CalculatorKey.MAX; + if (flag) + { + bool flag2 = this.doc == null; + if (flag2) + { + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + CIBShop currCIBShop = this.doc.currCIBShop; + bool flag3 = currCIBShop == null; + if (flag3) + { + return; + } + float num = 0f; + bool flag4 = DlgBase.singleton.privilegeID == currCIBShop.sinfo.itemid && specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + if (flag4) + { + num = (float)specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce).BuyGreenAgateLimit / 100f; + } + int num2 = 0; + PayMemberPrivilege payMemberPrivilege = specificDocument.PayMemberPrivilege; + bool flag5 = payMemberPrivilege != null; + if (flag5) + { + for (int i = 0; i < payMemberPrivilege.usedPrivilegeShop.Count; i++) + { + bool flag6 = (long)payMemberPrivilege.usedPrivilegeShop[i].goodsID == (long)((ulong)currCIBShop.sinfo.goodsid); + if (flag6) + { + num2 = payMemberPrivilege.usedPrivilegeShop[i].usedCount; + break; + } + } + } + this.mCurrCnt = ((currCIBShop.sinfo.nlimitcount != 0u) ? ((int)(currCIBShop.sinfo.nlimitcount + currCIBShop.row.buycount * num - currCIBShop.sinfo.nbuycount - (float)num2)) : this.canBuyMaxCnt); + } + else + { + bool flag7 = key == CalculatorKey.DEL; + if (flag7) + { + bool flag8 = this.mCurrCnt > 1; + if (flag8) + { + this.mCurrCnt = this.rstCnt; + } + this.DelInput(this.mCurrCnt); + this.mCurrCnt = this.GetInput(); + } + else + { + bool flag9 = key == CalculatorKey.OK; + if (flag9) + { + this.mCurrCnt = this.GetInput(); + } + else + { + int input = XFastEnumIntEqualityComparer.ToInt(key); + this.SetInput(input); + this.mCurrCnt = this.GetInput(); + } + } + } + this.Refresh(); + } + + public void ResetCurrCnt() + { + this.mCurrCnt = 1; + } + + private bool CheckVIP() + { + bool flag = DlgBase.singleton.mallType == MallType.VIP; + bool result; + if (flag) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + uint vipLevel = specificDocument.VipLevel; + XGameMallDocument specificDocument2 = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + uint viplevel = specificDocument2.currCIBShop.row.viplevel; + bool flag2 = vipLevel >= viplevel; + bool flag3 = !flag2; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MALL_VIP", new object[] + { + viplevel + }), "fece00"); + } + result = flag2; + } + else + { + result = true; + } + return result; + } + + private void ResetInput() + { + for (int i = 0; i < this.inputs.Length; i++) + { + this.inputs[i] = -1; + } + } + + private int GetInput() + { + int num = 3; + for (int i = 0; i < 3; i++) + { + bool flag = this.inputs[i] == -1; + if (flag) + { + num = i; + break; + } + } + int num2 = 0; + for (int j = 0; j < num; j++) + { + num2 += (int)((float)this.inputs[j] * Mathf.Pow(10f, (float)(num - j - 1))); + } + int num3 = Mathf.Clamp(num2, 0, 999); + this.SaveCurrInput(num3); + return num3; + } + + private int DelInput(int val) + { + val /= 10; + this.SaveCurrInput(val); + return val; + } + + private void SaveCurrInput(int val) + { + bool flag = val < 10; + if (flag) + { + this.inputs[2] = (this.inputs[1] = -1); + this.inputs[0] = val; + } + else + { + bool flag2 = val < 100; + if (flag2) + { + this.inputs[2] = -1; + this.inputs[1] = val % 10; + this.inputs[0] = val / 10; + } + else + { + this.inputs[2] = val % 10; + this.inputs[1] = val / 10 % 10; + this.inputs[0] = val / 100; + } + } + } + + private void SetInput(int inp) + { + for (int i = 0; i < 3; i++) + { + bool flag = this.inputs[i] == -1; + if (flag) + { + this.inputs[i] = inp; + break; + } + } + } + + private void PrintInput(string tag) + { + XSingleton.singleton.AddLog(tag, " " + this.inputs[0], " " + this.inputs[1], " " + this.inputs[2], null, null, XDebugColor.XDebug_None); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GameBuyCardHander.cs.meta b/Client/Assets/Scripts/XMainClient/GameBuyCardHander.cs.meta new file mode 100644 index 00000000..562ecd8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameBuyCardHander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e961826d55c2dfe40a2d1b4a2940bb19 +timeCreated: 1611404756 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GameDescMallHander.cs b/Client/Assets/Scripts/XMainClient/GameDescMallHander.cs new file mode 100644 index 00000000..e8cfcaf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameDescMallHander.cs @@ -0,0 +1,455 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GameDescMallHander : DlgHandlerBase + { + private OutLook outlook + { + get + { + bool flag = this.m_outLook == null; + if (flag) + { + this.m_outLook = new OutLook(); + bool flag2 = this.m_outLook.display_fashion == null; + if (flag2) + { + this.m_outLook.display_fashion = new OutLookDisplayFashion(); + } + } + return this.m_outLook; + } + } + + private XDummy m_Dummy; + + public IXUILabel m_lblEnd; + + public IXUILabel m_lblRefresh; + + public IXUILabel m_lblDesc; + + public IXUIButton m_btnReset; + + public IXUIButton m_btnAttr; + + public IXUISprite m_sprRBg; + + public GameObject m_objTpl; + + public IXUILabel m_lblBuyCnt; + + public IXUISprite m_sprTq; + + public IXUILabel m_lblTq; + + public GameObject m_objNil; + + private IUIDummy m_Snapshot; + + public Transform m_tranBp; + + public GameObject m_TotalAttrPanel; + + private FashionAttrTotalHandler _attrHandler; + + private OutLook m_outLook; + + private XGameMallDocument doc; + + private Vector3 m_dummyAngle = new Vector3(0f, 180f, 0f); + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + this.m_Snapshot = (base.transform.Find("Bg/avatar").GetComponent("UIDummy") as IUIDummy); + this.m_lblEnd = (base.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_btnReset = (base.transform.Find("Bg/reset").GetComponent("XUIButton") as IXUIButton); + this.m_btnAttr = (base.transform.Find("Bg/attr").GetComponent("XUIButton") as IXUIButton); + this.m_lblDesc = (base.transform.Find("desc").GetComponent("XUILabel") as IXUILabel); + this.m_sprRBg = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_lblBuyCnt = (base.transform.Find("Item/T").GetComponent("XUILabel") as IXUILabel); + this.m_sprTq = (base.transform.Find("tq").GetComponent("XUISprite") as IXUISprite); + this.m_lblTq = (base.transform.Find("tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_objNil = base.transform.Find("ailin").gameObject; + this.m_lblRefresh = (base.transform.Find("Title2").GetComponent("XUILabel") as IXUILabel); + this.m_objTpl = base.transform.Find("Item").gameObject; + this.m_tranBp = base.transform.Find("Bg/pb"); + this.m_TotalAttrPanel = base.transform.Find("AttrTotal").gameObject; + DlgHandlerBase.EnsureCreate(ref this._attrHandler, this.m_TotalAttrPanel, null, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnReset.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnResetClick)); + this.m_btnAttr.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAttrViewClick)); + this.m_sprRBg.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnAvatarDrag)); + this.m_lblTq.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnMemberPrivilegeClicked)); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._attrHandler); + this.m_outLook = null; + base.OnUnload(); + } + + private void OnMemberPrivilegeClicked(IXUILabel btn) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("GameDescMallHander", 1); + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + bool flag = this.doc.currItemID == 0; + if (flag) + { + this.ShowUI(false); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("GameDescMallHander", 1); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + XSingleton.singleton.EnableCommonDummy(this.m_Dummy, null, false); + } + + protected override void OnHide() + { + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnHide(); + } + + private bool OnResetClick(IXUIButton btn) + { + bool flag = DlgBase.singleton.mallType == MallType.FASHION; + if (flag) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + uint unitType = (uint)XFastEnumIntEqualityComparer.ToInt(xplayerData.Profession); + this.m_Dummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, xplayerData.RoleID, unitType, null, this.m_Snapshot, this.m_Dummy); + this.m_Dummy.EngineObject.LocalEulerAngles = this.m_dummyAngle; + this.m_btnReset.SetEnable(false, false); + this.m_btnAttr.SetEnable(false, false); + } + return true; + } + + private bool OnAttrViewClick(IXUIButton btn) + { + int currItemID = this.doc.currItemID; + CIBShop currCIBShop = this.doc.currCIBShop; + List list = ListPool.Get(); + this.GetFasionItems(currItemID, list); + bool flag = list == null || list.Count < 1; + bool result; + if (flag) + { + this.RefreshDefault(currItemID, currCIBShop); + result = true; + } + else + { + this._attrHandler.SetDataSource(list); + this._attrHandler.SetVisible(true); + result = true; + } + return result; + } + + public void Refresh() + { + this.m_objNil.SetActive(this.doc.currItemID == 0); + bool flag = this.doc.currItemID == 0; + if (flag) + { + this.ShowUI(false); + } + else + { + int currItemID = this.doc.currItemID; + CIBShop currCIBShop = this.doc.currCIBShop; + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_objTpl, currItemID, 0, false); + IXUISprite ixuisprite = this.m_objTpl.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)currItemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + this.m_lblRefresh.SetText(XStringDefineProxy.GetString("MALL_LIMITE")); + this.m_lblRefresh.SetVisible(MallType.WEEK == DlgBase.singleton.mallType); + this.m_lblEnd.SetVisible(currCIBShop.sinfo.nlimittime > 0u); + this.m_lblEnd.SetText(XStringDefineProxy.GetString("MALL_DEADLINE", new object[] + { + this.UnixDate(currCIBShop.sinfo.nlimittime).ToString("yyyy-MM-dd HH") + })); + this.m_sprTq.gameObject.SetActive((long)this.doc.currItemID == (long)((ulong)DlgBase.singleton.privilegeID) && currCIBShop.sinfo.nlimitcount > 0u); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.m_sprTq.SetSprite(specificDocument.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Commerce)); + this.m_lblTq.SetText(XStringDefineProxy.GetString("MALL_PRIVILEGE", new object[] + { + specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce).BuyGreenAgateLimit + })); + MallType mallType = DlgBase.singleton.mallType; + MallType mallType2 = mallType; + if (mallType2 != MallType.FASHION) + { + if (mallType2 != MallType.RIDE) + { + this.RefreshDefault(currItemID, currCIBShop); + } + else + { + this.ShowAvatar(true); + this.m_Snapshot.transform.localScale = 150f * Vector3.one; + this.m_Snapshot.transform.localPosition = new Vector3(-10f, -190f, 184f); + uint num = this.TransItemToPresentID((uint)currItemID); + string rideAnim = this.GetRideAnim((uint)currItemID); + bool flag2 = num == 0u || string.IsNullOrEmpty(rideAnim); + if (flag2) + { + this.RefreshDefault(currItemID, currCIBShop); + XSingleton.singleton.AddWarningLog("item id is wrong ", currItemID.ToString(), " presentid: ", num.ToString(), null, null); + } + else + { + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, num, this.m_Snapshot, this.m_Dummy, 1f); + bool flag3 = this.m_Dummy != null; + if (flag3) + { + this.m_Dummy.SetAnimation(rideAnim); + } + } + } + } + else + { + this.m_btnReset.SetEnable(true, false); + this.m_btnAttr.SetEnable(true, false); + this.ShowAvatar(true); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + this.m_Snapshot.transform.localScale = 250f * Vector3.one; + this.m_Snapshot.transform.localPosition = new Vector3(-10f, -190f, 184f); + bool flag4 = xplayerData != null; + if (flag4) + { + List list = ListPool.Get(); + this.GetFasionItems(currItemID, list); + bool flag5 = list == null || list.Count < 1; + if (flag5) + { + this.RefreshDefault(currItemID, currCIBShop); + } + else + { + this.outlook.display_fashion.display_fashions.Clear(); + this.outlook.display_fashion.display_fashions.AddRange(list); + uint unitType = (uint)XFastEnumIntEqualityComparer.ToInt(xplayerData.Profession); + this.m_Dummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, xplayerData.RoleID, unitType, this.m_outLook, this.m_Snapshot, this.m_Dummy); + ListPool.Release(list); + bool flag6 = this.m_Dummy != null && this.m_Dummy.EngineObject != null; + if (flag6) + { + this.m_Dummy.EngineObject.LocalEulerAngles = this.m_dummyAngle; + } + } + } + } + } + } + + private void RefreshDefault(int itemid, CIBShop cShop) + { + this.ShowAvatar(false); + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + bool flag = itemConf != null; + if (flag) + { + this.m_lblDesc.SetText(XSingleton.singleton.ReplaceReturn(itemConf.ItemDescription)); + } + this.m_lblBuyCnt.SetVisible(cShop.sinfo.nlimitcount > 0u); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + float num = 0f; + bool flag2 = DlgBase.singleton.privilegeID == cShop.sinfo.itemid && specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + if (flag2) + { + num = (float)specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce).BuyGreenAgateLimit / 100f; + } + int num2 = 0; + PayMemberPrivilege payMemberPrivilege = specificDocument.PayMemberPrivilege; + bool flag3 = payMemberPrivilege != null; + if (flag3) + { + for (int i = 0; i < payMemberPrivilege.usedPrivilegeShop.Count; i++) + { + bool flag4 = (long)payMemberPrivilege.usedPrivilegeShop[i].goodsID == (long)((ulong)cShop.sinfo.goodsid); + if (flag4) + { + num2 = payMemberPrivilege.usedPrivilegeShop[i].usedCount; + break; + } + } + } + string key = (cShop.row.refreshtype == 7u && cShop.row.type != 1u) ? "MALL_BUYCNT2" : "MALL_BUYCNT"; + bool flag5 = num > 0f && (float)num2 < cShop.row.buycount * num; + if (flag5) + { + this.m_lblBuyCnt.SetText(XStringDefineProxy.GetString(key, new object[] + { + "[ffff00]" + Mathf.FloorToInt(cShop.sinfo.nlimitcount + cShop.row.buycount * num - cShop.sinfo.nbuycount - (float)num2) + "[-]" + })); + } + else + { + this.m_lblBuyCnt.SetText(XStringDefineProxy.GetString(key, new object[] + { + Mathf.FloorToInt(cShop.sinfo.nlimitcount + cShop.row.buycount * num - cShop.sinfo.nbuycount - (float)num2) + })); + } + bool flag6 = num > 0f; + this.m_sprTq.SetGrey(flag6); + this.m_lblTq.SetEnabled(flag6); + } + + private void GetFasionItems(int itemid, List fashions) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + bool flag = itemConf == null || fashions == null; + if (!flag) + { + bool flag2 = itemConf.ItemType == 2; + if (flag2) + { + ChestList.RowData chestConf = XBagDocument.GetChestConf(itemid); + bool flag3 = chestConf == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("chest list is nil ", itemid.ToString(), null, null, null, null); + } + else + { + List list = new List(); + bool flag4 = XBagDocument.TryGetDropConf(chestConf.DropID, ref list); + if (flag4) + { + for (int i = 0; i < list.Count; i++) + { + fashions.Add((uint)list[i].ItemID); + } + } + } + } + else + { + bool flag5 = itemConf.ItemType == 5; + if (flag5) + { + fashions.Add((uint)itemid); + } + } + } + } + + private void ShowAvatar(bool show) + { + this.m_Snapshot.transform.gameObject.SetActive(show); + this.m_lblDesc.SetVisible(!show); + this.m_btnReset.SetVisible(DlgBase.singleton.mallType == MallType.FASHION); + int itemid = (this.doc != null) ? this.doc.currItemID : 0; + bool flag = XFashionDocument.IsTargetPart(itemid, FashionPosition.Hair); + this.m_btnAttr.SetVisible(DlgBase.singleton.mallType == MallType.FASHION && !flag); + this.m_lblBuyCnt.SetVisible(!show); + this.m_objTpl.SetActive(!show); + this.m_tranBp.gameObject.SetActive(show); + } + + private void ShowUI(bool show) + { + this.m_Snapshot.transform.gameObject.SetActive(show); + this.m_lblDesc.SetVisible(show); + this.m_btnReset.SetVisible(show); + this.m_btnAttr.SetVisible(show); + this.m_lblBuyCnt.SetVisible(show); + this.m_objTpl.SetActive(show); + this.m_tranBp.gameObject.SetActive(show); + } + + protected bool OnAvatarDrag(Vector2 delta) + { + bool flag = this.m_Dummy != null; + if (flag) + { + this.m_Dummy.EngineObject.Rotate(Vector3.up, -delta.x / 2f); + this.m_dummyAngle = this.m_Dummy.EngineObject.LocalEulerAngles; + } + else + { + XSingleton.singleton.RotateMain(-delta.x / 2f); + } + return true; + } + + private uint TransItemToPresentID(uint itemid) + { + uint petID = XPetDocument.GetPetID(itemid); + return XPetDocument.GetPresentID(petID); + } + + private string GetRideAnim(uint itemid) + { + uint petID = XPetDocument.GetPetID(itemid); + bool flag = petID == 0u; + string result; + if (flag) + { + XSingleton.singleton.AddWarningLog("NOT FOUND PET ", null, null, null, null, null); + result = null; + } + else + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + PetBubble.RowData petBubble = specificDocument.GetPetBubble(XPetActionFile.IDLE, petID); + bool flag2 = petBubble == null; + if (flag2) + { + XSingleton.singleton.AddWarningLog(string.Concat(new object[] + { + "PetBubble No Find\nitemid:", + itemid, + " petid:", + petID + }), null, null, null, null, null); + result = null; + } + else + { + result = petBubble.ActionFile; + } + } + return result; + } + + private DateTime UnixDate(uint sp) + { + DateTime minValue = DateTime.MinValue; + return TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)).AddSeconds(sp); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GameDescMallHander.cs.meta b/Client/Assets/Scripts/XMainClient/GameDescMallHander.cs.meta new file mode 100644 index 00000000..1fc9d711 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameDescMallHander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97fcbb6171d07874e9fb4cefc771190e +timeCreated: 1611404190 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GameItemsMallHander.cs b/Client/Assets/Scripts/XMainClient/GameItemsMallHander.cs new file mode 100644 index 00000000..677e04da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameItemsMallHander.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GameItemsMallHander : DlgHandlerBase + { + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_scrollView; + + private XGameMallDocument _doc = null; + + private int _selectItemIndex = -1; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + this.m_scrollView = (base.PanelObject.transform.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + protected override void OnHide() + { + this._selectItemIndex = -1; + base.OnHide(); + } + + public void Refresh() + { + this._selectItemIndex = -1; + int count = this._doc.mallItemUIList.Count; + this.m_WrapContent.SetContentCount(count, false); + bool flag = !this._doc.isBuying; + if (flag) + { + this.m_scrollView.ResetPosition(); + List mallItemUIList = this._doc.mallItemUIList; + for (int i = 0; i < mallItemUIList.Count; i++) + { + CIBShop item = mallItemUIList[i].item1; + CIBShop item2 = mallItemUIList[i].item2; + bool flag2 = (ulong)item.row.itemid == (ulong)((long)this._doc.currItemID) || (item2 != null && (ulong)item2.row.itemid == (ulong)((long)this._doc.currItemID)); + if (flag2) + { + this._selectItemIndex = i; + break; + } + } + bool flag3 = this._selectItemIndex >= this.m_WrapContent.heightDimensionMax; + if (flag3) + { + this.m_scrollView.MoveRelative(new Vector3(0f, (float)(this._selectItemIndex + 1 - this.m_WrapContent.heightDimensionMax) * this.m_WrapContent.itemSize.y, 0f)); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this._doc != null; + if (flag) + { + bool flag2 = index < this._doc.mallItemUIList.Count && index >= 0; + if (flag2) + { + CUIIBShop info = this._doc.mallItemUIList[index]; + this.SetHItem(t, info); + } + } + else + { + XSingleton.singleton.AddErrorLog("_doc is nil or index: ", index.ToString(), null, null, null, null); + } + } + + protected void SetHItem(Transform t, CUIIBShop info) + { + Transform t2 = t.Find("item1"); + Transform transform = t.Find("item2"); + this.SetItem(t2, info.item1, -1); + transform.gameObject.SetActive(info.item2 != null); + bool flag = info.item2 != null; + if (flag) + { + this.SetItem(transform, info.item2, -1); + } + } + + private void SetItem(Transform t, CIBShop info, int index = -1) + { + IXUISprite ixuisprite = t.Find("Have to buy").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("redPoint").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = t.Find("diamond").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Price").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite4 = t.Find("Sold out").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite5 = t.Find("New product").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite6 = t.Find("Time limit2").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite7 = t.Find("discount").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite8 = t.Find("pp").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("discount/t").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + int itemid = (int)info.row.itemid; + uint id = info.row.id; + XSingleton.singleton.normalItemDrawer.DrawItem(t.gameObject, itemid, 0, false); + IXUISprite ixuisprite9 = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite10 = t.Find("Bind").GetComponent("XUISprite") as IXUISprite; + ixuisprite9.ID = (ulong)((long)itemid); + ixuisprite9.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnIconClick)); + ixuisprite10.SetVisible(info.row.bind); + ixuilabel3.ID = (ulong)((long)itemid); + ixuilabel3.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnSelectItem)); + ixuisprite8.SetVisible(itemid == this._doc.currItemID); + ixuisprite4.SetVisible(info.finish); + ixuisprite5.SetVisible(info.row.newproduct == 1u); + ixuisprite6.SetVisible(info.sinfo.nlimittime > 0u); + ixuisprite7.SetVisible(info.row.discount > 0u && info.row.discount < 100u); + float num = (info.row.discount == 0u) ? 10f : (info.row.discount / 10f); + ixuilabel2.SetText((num < 1f) ? num.ToString("0.0") : (" " + num.ToString())); + ixuilabel.SetText((info.row.currencycount * num / 10f).ToString("0")); + ixuisprite.SetVisible(false); + ixuisprite2.SetVisible(DlgBase.singleton.mallType == MallType.VIP && this._doc.currCIBShop.sinfo.nbuycount <= 0u && this._doc.hotGoods.Contains(id)); + string strSprite; + string strAtlas; + XBagDocument.GetItemSmallIconAndAtlas((int)DlgBase.singleton.item, out strSprite, out strAtlas, 0u); + ixuisprite3.SetSprite(strSprite, strAtlas, false); + } + + private void OnIconClick(IXUISprite sp) + { + int num = (int)sp.ID; + CIBShop cibshop = this._doc.SearchIBShop(num); + XItem xitem = XBagDocument.MakeXItem(num, false); + bool flag = cibshop != null; + if (flag) + { + xitem.bBinding = cibshop.row.bind; + } + XSingleton.singleton.ShowTooltipDialog(xitem, null, sp, false, 0u); + } + + private void OnSelectItem(IXUILabel s) + { + int itemid = (int)s.ID; + this.CloseSelectAll(); + Transform parent = s.gameObject.transform.parent; + IXUISprite ixuisprite = parent.Find("pp").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetVisible(true); + DlgBase.singleton._gameBuyCardHander.ResetCurrCnt(); + DlgBase.singleton.Refresh(itemid); + } + + private void CloseSelectAll() + { + List list = ListPool.Get(); + this.m_WrapContent.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + IXUISprite ixuisprite = list[i].transform.Find("item1/pp").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetVisible(false); + Transform transform = list[i].transform.Find("item2/pp"); + bool flag = transform != null; + if (flag) + { + IXUISprite ixuisprite2 = transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetVisible(false); + } + } + ListPool.Release(list); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GameItemsMallHander.cs.meta b/Client/Assets/Scripts/XMainClient/GameItemsMallHander.cs.meta new file mode 100644 index 00000000..0e88b0a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameItemsMallHander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55e371df7ab80cb40abfdf1df82d41d6 +timeCreated: 1611403740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GameMallDlg.cs b/Client/Assets/Scripts/XMainClient/GameMallDlg.cs new file mode 100644 index 00000000..ea77d6a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameMallDlg.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GameMallDlg : TabDlgBase + { + public XGameMallDocument doc + { + get + { + return XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + } + + public override string fileName + { + get + { + return "GameSystem/GameMall"; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GameMall); + } + } + + protected override bool bHorizontal + { + get + { + return false; + } + } + + public uint privilegeID = 93u; + + public GameBuyCardHander _gameBuyCardHander; + + public GameDescMallHander _gameDescMallHander; + + public GameItemsMallHander _gameItemsMallHander; + + public GamePayDiaMallHander _gamePayDiaMallHander; + + public GameMallTabsHandler _gameTabsHander; + + public GameMallShopHandler _gameShopHander; + + public GameObject _gameBuyCardPanel; + + public GameObject _gameDescMallPanel; + + public GameObject _gameItemsMallPanel; + + public GameObject _gamePayDiaMallPanel; + + public GameObject _gameTabsPanel; + + public GameObject _gameShopPanel; + + private Transform _tabPerent = null; + + private IXUILabel m_lblTitle; + + public ItemEnum item = ItemEnum.DIAMOND; + + public XSysDefine currSys = XSysDefine.XSys_GameMall_Diamond; + + public MallType mallType = MallType.WEEK; + + protected override void Init() + { + base.Init(); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_GameMall); + this.m_lblTitle = (base.uiBehaviour.transform.Find("Bg/T").GetComponent("XUILabel") as IXUILabel); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + protected override void OnLoad() + { + base.OnLoad(); + this._gameBuyCardPanel = base.uiBehaviour.transform.Find("Bg/BuycardFrame").gameObject; + this._gameBuyCardPanel.SetActive(false); + this._gameItemsMallPanel = base.uiBehaviour.transform.Find("Bg/ItemsFrame").gameObject; + this._gameItemsMallPanel.SetActive(false); + this._gameDescMallPanel = base.uiBehaviour.transform.Find("Bg/DescFrame").gameObject; + this._gameDescMallPanel.SetActive(false); + this._gamePayDiaMallPanel = base.uiBehaviour.transform.Find("Bg/DiamondFrame").gameObject; + this._gamePayDiaMallPanel.SetActive(false); + this._gameTabsPanel = base.uiBehaviour.transform.Find("Bg/TabsFrame").gameObject; + this._gameTabsPanel.SetActive(false); + this._gameShopPanel = base.uiBehaviour.transform.Find("Bg/ShopFrame").gameObject; + this._gameShopPanel.SetActive(false); + this._tabPerent = base.uiBehaviour.transform.Find("Bg"); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._gameBuyCardHander); + DlgHandlerBase.EnsureUnload(ref this._gameDescMallHander); + DlgHandlerBase.EnsureUnload(ref this._gameItemsMallHander); + DlgHandlerBase.EnsureUnload(ref this._gamePayDiaMallHander); + DlgHandlerBase.EnsureUnload(ref this._gameTabsHander); + DlgHandlerBase.EnsureUnload(ref this._gameShopHander); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshShopRedPoint(); + } + + protected override void OnHide() + { + this.doc.hotGoods.Clear(); + this.doc.isNewWeekly = false; + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GameMall, this.doc.shopRedPoint.Count != 0); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GameMall, true); + PtcC2G_RemoveIBShopIcon proto = new PtcC2G_RemoveIBShopIcon(); + XSingleton.singleton.Send(proto); + base.OnHide(); + } + + public override void SetupHandlers(XSysDefine sys) + { + this.currSys = sys; + this.m_lblTitle.SetText(XStringDefineProxy.GetString(sys.ToString())); + XSysDefine xsysDefine = sys; + if (xsysDefine != XSysDefine.XSys_Mall) + { + switch (xsysDefine) + { + case XSysDefine.XSys_GameMall_Diamond: + this.item = ItemEnum.DIAMOND; + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameBuyCardHander, this._gameBuyCardPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameDescMallHander, this._gameDescMallPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameItemsMallHander, this._gameItemsMallPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameTabsHander, this._gameTabsPanel, this, true)); + break; + case XSysDefine.XSys_GameMall_Dragon: + this.item = ItemEnum.DRAGON_COIN; + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameBuyCardHander, this._gameBuyCardPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameDescMallHander, this._gameDescMallPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameItemsMallHander, this._gameItemsMallPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameTabsHander, this._gameTabsPanel, this, true)); + break; + case XSysDefine.XSys_GameMall_Pay: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gamePayDiaMallHander, this._gamePayDiaMallPanel, this, true)); + break; + default: + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + break; + } + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._gameShopHander, this._gameShopPanel, this, true)); + } + } + + public void Refresh() + { + bool flag = this._gameTabsHander != null; + if (flag) + { + this._gameTabsHander.Refresh(); + } + bool flag2 = this._gameBuyCardHander != null; + if (flag2) + { + this._gameBuyCardHander.Refresh(); + } + bool flag3 = this._gameItemsMallHander != null; + if (flag3) + { + this._gameItemsMallHander.Refresh(); + } + bool flag4 = this._gameDescMallHander != null; + if (flag4) + { + this._gameDescMallHander.Refresh(); + } + bool flag5 = this._gameShopHander != null; + if (flag5) + { + this._gameShopHander.Refresh(); + } + } + + public void Refresh(int itemid) + { + this.doc.currItemID = itemid; + this._gameBuyCardHander.Refresh(); + this._gameDescMallHander.Refresh(); + } + + public void RefreshDiamondPay() + { + bool flag = this._gamePayDiaMallHander != null; + if (flag) + { + this._gamePayDiaMallHander.RefreshDatas(); + } + } + + public void ShowMalltype(XSysDefine def, ulong xx) + { + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "def: ", + def, + " long is: ", + xx + }), null, null, null, null, null); + } + + public void ShowMall(XSysDefine def, MallType type, ulong itemID) + { + uint level = XSingleton.singleton.XPlayerData.Level; + List uintList = XSingleton.singleton.GetUIntList("MallTabLevel"); + bool flag = level < uintList[type - MallType.WEEK]; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_ERR_SCENE_LEVELREQ", new object[] + { + string.Empty + }), "fece00"); + } + else + { + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument.currItemID = (int)itemID; + this.mallType = type; + base.ShowWorkGameSystem(def); + } + } + + public void ShowBuyItem(int itemid) + { + uint num; + uint num2; + this.doc.FindItem(itemid, out num, out num2); + List uintList = XSingleton.singleton.GetUIntList("MallTabLevel"); + uint level = XSingleton.singleton.XPlayerData.Level; + bool flag = num <= 0u || num2 <= 0u; + if (flag) + { + XSingleton.singleton.ShowSystemTip("not sail the item", "fece00"); + } + else + { + bool flag2 = level < uintList[(int)(num2 - 1u)]; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_ERR_SCENE_LEVELREQ", new object[] + { + string.Empty + }), "fece00"); + } + else + { + XSysDefine def = (num == 9u) ? XSysDefine.XSys_GameMall_Diamond : XSysDefine.XSys_GameMall_Dragon; + this.mallType = (MallType)num2; + this.ShowMall(def, this.mallType, (ulong)((long)itemid)); + } + } + } + + public void ShowPurchase(ItemEnum _item) + { + this.item = _item; + bool flag = ItemEnum.DIAMOND == _item; + if (flag) + { + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GameMall_Pay); + if (flag2) + { + base.ShowWorkGameSystem(XSysDefine.XSys_GameMall_Pay); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_RECHARGE_NOT_OPEN"), "fece00"); + } + } + else + { + DlgBase.singleton.ReqQuickCommonPurchase(_item); + } + } + + public void QueryItemsInfo() + { + this.doc.SendQueryItems(this.mallType); + } + + public void RefreshShopRedPoint() + { + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GameMall, this.doc.shopRedPoint.Count != 0); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GameMall, true); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Mall, this.doc.shopRedPoint.Count != 0); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Mall, true); + bool flag = this._gameShopHander != null && this._gameShopHander.IsVisible(); + if (flag) + { + this._gameShopHander.RefreshRedPoint(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GameMallDlg.cs.meta b/Client/Assets/Scripts/XMainClient/GameMallDlg.cs.meta new file mode 100644 index 00000000..79d65b74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameMallDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40f3c146c29567040a5c1cbed1ab68d3 +timeCreated: 1611403615 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GameMallShopHandler.cs b/Client/Assets/Scripts/XMainClient/GameMallShopHandler.cs new file mode 100644 index 00000000..e02a06c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameMallShopHandler.cs @@ -0,0 +1,287 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GameMallShopHandler : DlgHandlerBase + { + private XGameMallDocument _doc = null; + + public XUIPool m_ShopTypePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List _ShopGo = new List(); + + protected override void Init() + { + base.Init(); + GameObject gameObject = base.transform.Find("Bg/RechargeFrame/ScrollView/Grid/TplMall").gameObject; + this.m_ShopTypePool.SetupPool(gameObject.transform.parent.gameObject, gameObject, 7u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + this.OnInitShops(); + this.RefreshRedPoint(); + } + + public void Refresh() + { + } + + private void OnInitShops() + { + List list = new List(); + List shopSystems = this._doc.ShopSystems; + int index = 2; + for (int i = 0; i < shopSystems.Count; i++) + { + bool flag = shopSystems[i] >= XSysDefine.XSys_LevelElite_Shop1 && shopSystems[i] <= XSysDefine.XSys_LevelElite_Shop4; + if (flag) + { + index = i; + break; + } + } + for (int j = 335; j <= 338; j++) + { + ShopTypeTable.RowData shopTypeData = this._doc.GetShopTypeData((XSysDefine)j); + bool flag2 = shopTypeData != null && XSingleton.singleton.Player.PlayerAttributes.Level >= shopTypeData.ShopLevel; + if (flag2) + { + shopSystems[index] = (XSysDefine)j; + } + } + index = 3; + for (int k = 0; k < shopSystems.Count; k++) + { + bool flag3 = shopSystems[k] >= XSysDefine.XSys_Mall_32A && shopSystems[k] <= XSysDefine.XSys_Mall_60A; + if (flag3) + { + index = k; + break; + } + } + for (int l = 330; l <= 333; l++) + { + ShopTypeTable.RowData shopTypeData2 = this._doc.GetShopTypeData((XSysDefine)l); + bool flag4 = shopTypeData2 != null && XSingleton.singleton.Player.PlayerAttributes.Level >= shopTypeData2.ShopLevel; + if (flag4) + { + shopSystems[index] = (XSysDefine)l; + } + } + for (int m = 0; m < shopSystems.Count; m++) + { + ShopTypeTable.RowData shopTypeData3 = this._doc.GetShopTypeData(shopSystems[m]); + bool flag5 = shopTypeData3 != null; + if (flag5) + { + list.Add(shopTypeData3.ShopName); + } + } + List list2 = new List(); + for (int n = 0; n < list.Count; n++) + { + ShopTypeTable.RowData shopTypeData4 = this._doc.GetShopTypeData(shopSystems[n]); + bool flag6 = shopTypeData4 != null; + if (flag6) + { + bool flag7 = XSingleton.singleton.IsSystemOpened(shopSystems[n]) && XSingleton.singleton.Player.PlayerAttributes.Level >= shopTypeData4.ShopLevel; + if (flag7) + { + list2.Add(n); + } + } + } + for (int num = 0; num < list.Count; num++) + { + ShopTypeTable.RowData shopTypeData5 = this._doc.GetShopTypeData(shopSystems[num]); + bool flag8 = !XSingleton.singleton.IsSystemOpened(shopSystems[num]) || (shopTypeData5 != null && XSingleton.singleton.Player.PlayerAttributes.Level < shopTypeData5.ShopLevel); + if (flag8) + { + list2.Add(num); + } + } + this.m_ShopTypePool.ReturnAll(false); + this._ShopGo.Clear(); + int num2 = 0; + while (num2 < list.Count) + { + int index2 = list2[num2]; + GameObject gameObject = this.m_ShopTypePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_ShopTypePool.TplPos.x + (float)(num2 % 3 * this.m_ShopTypePool.TplWidth), this.m_ShopTypePool.TplPos.y - (float)(num2 / 3 * this.m_ShopTypePool.TplHeight), this.m_ShopTypePool.TplPos.z); + IXUILabel ixuilabel = gameObject.transform.Find("shopname").GetComponent("XUILabel") as IXUILabel; + IXUITexture ixuitexture = gameObject.transform.Find("Icon").GetComponent("XUITexture") as IXUITexture; + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + IXUITexture ixuitexture2 = gameObject.transform.Find("Lock").GetComponent("XUITexture") as IXUITexture; + this._ShopGo.Add(gameObject); + ShopTypeTable.RowData shopTypeData6 = this._doc.GetShopTypeData(shopSystems[index2]); + ixuilabel.SetText(list[index2]); + bool flag9 = shopTypeData6 != null && !string.IsNullOrEmpty(shopTypeData6.ShopIcon); + if (flag9) + { + ixuitexture.SetTexturePath("atlas/UI/GameSystem/Activity/" + shopTypeData6.ShopIcon); + } + ixuisprite.ID = (ulong)((long)shopSystems[index2]); + bool flag10 = false; + int hour = DateTime.Now.Hour; + int minute = DateTime.Now.Minute; + bool flag11 = shopTypeData6 != null; + if (flag11) + { + flag10 = this.IsShopOpen(shopSystems[index2]); + } + bool flag12 = !XSingleton.singleton.IsSystemOpened(shopSystems[index2]) || XSingleton.singleton.Player.PlayerAttributes.Level < shopTypeData6.ShopLevel; + if (flag12) + { + ixuitexture.SetEnabled(false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.CannotOpenShop)); + ixuitexture2.SetVisible(true); + } + else + { + bool flag13 = shopSystems[index2] == XSysDefine.XSys_Mall_Guild; + if (flag13) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag14 = !specificDocument.bInGuild; + if (flag14) + { + ixuitexture2.SetVisible(true); + ixuitexture.SetEnabled(false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenGuild)); + goto IL_5C8; + } + } + bool flag15 = !flag10; + if (flag15) + { + ixuitexture2.SetVisible(true); + ixuitexture.SetEnabled(false); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenShop)); + ixuitexture2.SetVisible(false); + ixuisprite.SetEnabled(true); + ixuitexture.SetEnabled(true); + } + } + IL_5C8: + num2++; + continue; + goto IL_5C8; + } + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.DestroyTextureInActivePool(this.m_ShopTypePool, "Icon"); + } + + public override void RefreshData() + { + base.RefreshData(); + } + + public bool IsShopOpen(XSysDefine sys) + { + int hour = DateTime.Now.Hour; + int minute = DateTime.Now.Minute; + bool result = false; + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + ShopTypeTable.RowData shopTypeData = this._doc.GetShopTypeData(sys); + bool flag2 = shopTypeData != null; + if (flag2) + { + bool flag3 = shopTypeData.ShopOpen.Count == 0; + if (flag3) + { + result = true; + } + for (int i = 0; i < shopTypeData.ShopOpen.Count; i++) + { + int num = hour * 100 + minute; + bool flag4 = (long)num >= (long)((ulong)shopTypeData.ShopOpen[i, 0]) && (long)num <= (long)((ulong)shopTypeData.ShopOpen[i, 1]); + if (flag4) + { + result = true; + } + } + } + return result; + } + + public void OnOpenShop(IXUISprite sp) + { + bool flag = this._doc.shopRedPoint.Contains((XSysDefine)sp.ID); + if (flag) + { + this._doc.RefreshShopRedPoint((XSysDefine)sp.ID, false); + } + XSysDefine sys = (XSysDefine)sp.ID; + DlgBase.singleton.m_OpenFromGeneral = true; + DlgBase.singleton.ShowShopSystem(sys, 0UL); + } + + public void CannotOpenShop(IXUISprite sp) + { + XSysDefine xsysDefine = (XSysDefine)sp.ID; + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel((int)sp.ID); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("SHOP_OPEN_LEVEL"), sysOpenLevel), "fece00"); + } + + public void OnOpenGuild(IXUISprite sp) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Guild, 0UL); + } + + public void RefreshRedPoint() + { + bool flag = false; + for (int i = 0; i < this._ShopGo.Count; i++) + { + IXUISprite ixuisprite = this._ShopGo[i].transform.GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = this._ShopGo[i].transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + bool flag2 = this._doc.shopRedPoint.Contains((XSysDefine)ixuisprite.ID); + if (flag2) + { + flag = true; + ixuisprite2.SetVisible(true); + } + else + { + ixuisprite2.SetVisible(false); + } + } + bool flag3 = !flag; + if (flag3) + { + this._doc.shopRedPoint.Clear(); + } + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Mall, flag); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Mall, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GameMallShopHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GameMallShopHandler.cs.meta new file mode 100644 index 00000000..fc755d5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameMallShopHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4ee1da068a9e2841888f4c89302ad0e +timeCreated: 1611404284 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GameMallTabsHandler.cs b/Client/Assets/Scripts/XMainClient/GameMallTabsHandler.cs new file mode 100644 index 00000000..d19f99d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameMallTabsHandler.cs @@ -0,0 +1,345 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GameMallTabsHandler : DlgHandlerBase + { + private const int tabsNum = 8; + + private List malltype_list = new List(); + + public IXUIButton m_btnGift; + + public IXUICheckBox[] m_objTabs = new IXUICheckBox[8]; + + public IXUISprite[] m_sprRedpoints = new IXUISprite[8]; + + private Vector3[] m_tabPos = new Vector3[8]; + + private bool _onShowCheck = false; + + public MallType[] showTypes = new MallType[] + { + MallType.WEEK, + MallType.EQUIP, + MallType.COST, + MallType.LONGYU, + MallType.FASHION, + MallType.RIDE, + MallType.GIFT, + MallType.VIP + }; + + private MallType mClickTab = MallType.WEEK; + + private XGameMallDocument doc; + + protected override void Init() + { + base.Init(); + this.m_btnGift = (base.transform.Find("Illustration").GetComponent("XUIButton") as IXUIButton); + for (int i = 0; i < 8; i++) + { + this.m_objTabs[i] = (base.PanelObject.transform.Find("item" + i + "/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_sprRedpoints[i] = (this.m_objTabs[i].gameObject.transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_tabPos[i] = this.m_objTabs[i].gameObject.transform.parent.localPosition; + bool flag = this.showTypes[i] == DlgBase.singleton.mallType; + if (flag) + { + } + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = 0; i < this.m_objTabs.Length; i++) + { + this.m_objTabs[i].ID = (ulong)((long)i); + this.m_objTabs[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + } + this.m_btnGift.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGiftClick)); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + List uintList = XSingleton.singleton.GetUIntList("MallTabLevel"); + uint level = XSingleton.singleton.XPlayerData.Level; + this.malltype_list.Clear(); + bool flag2 = DlgBase.singleton.currSys == XSysDefine.XSys_GameMall_Diamond; + if (flag2) + { + bool flag3 = level >= uintList[0]; + if (flag3) + { + this.malltype_list.Add(MallType.WEEK); + } + bool flag4 = level >= uintList[7]; + if (flag4) + { + this.malltype_list.Add(MallType.EQUIP); + } + bool flag5 = level >= uintList[1]; + if (flag5) + { + this.malltype_list.Add(MallType.COST); + } + bool flag6 = level >= uintList[2]; + if (flag6) + { + this.malltype_list.Add(MallType.LONGYU); + } + bool flag7 = level >= uintList[3]; + if (flag7) + { + this.malltype_list.Add(MallType.FASHION); + } + bool flag8 = level >= uintList[5]; + if (flag8) + { + this.malltype_list.Add(MallType.GIFT); + } + bool flag9 = level >= uintList[0] && this.doc.vipTabshow; + if (flag9) + { + this.malltype_list.Add(MallType.VIP); + } + } + else + { + bool flag10 = DlgBase.singleton.currSys == XSysDefine.XSys_GameMall_Dragon; + if (flag10) + { + bool flag11 = level >= uintList[0]; + if (flag11) + { + this.malltype_list.Add(MallType.WEEK); + } + bool flag12 = level >= uintList[7]; + if (flag12) + { + this.malltype_list.Add(MallType.EQUIP); + } + bool flag13 = level >= uintList[1]; + if (flag13) + { + this.malltype_list.Add(MallType.COST); + } + bool flag14 = level >= uintList[2]; + if (flag14) + { + this.malltype_list.Add(MallType.LONGYU); + } + bool flag15 = level >= uintList[4]; + if (flag15) + { + this.malltype_list.Add(MallType.RIDE); + } + bool flag16 = level >= uintList[3]; + if (flag16) + { + this.malltype_list.Add(MallType.FASHION); + } + } + } + this._onShowCheck = true; + DlgBase.singleton.uiBehaviour.StartCoroutine(this.ResetOnshowCheck()); + this.CheckTabs(); + this.SetupTabs(); + this.m_btnGift.SetVisible(this.doc.presentStatus); + } + + protected override void OnHide() + { + base.OnHide(); + } + + private bool OnGiftClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + + public void Refresh() + { + List uintList = XSingleton.singleton.GetUIntList("MallTabLevel"); + uint level = XSingleton.singleton.XPlayerData.Level; + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + int num = 0; + for (int i = 0; i < this.showTypes.Length; i++) + { + bool flag2 = this.showTypes[i] == MallType.VIP; + if (flag2) + { + num = i; + break; + } + } + GameObject gameObject = this.m_objTabs[num].gameObject; + bool flag3 = gameObject != null; + if (flag3) + { + gameObject.SetActive(this.doc.vipTabshow && this.malltype_list.Contains(MallType.VIP)); + } + } + + public override void RefreshData() + { + base.RefreshData(); + } + + public void CheckTabs() + { + this.SetMalltypeWithItemID(); + bool flag = !this.malltype_list.Contains(DlgBase.singleton.mallType); + if (flag) + { + DlgBase.singleton.mallType = MallType.WEEK; + this.m_objTabs[0].bChecked = true; + } + else + { + int num = 0; + for (int i = 0; i < this.showTypes.Length; i++) + { + bool flag2 = this.showTypes[i] == DlgBase.singleton.mallType; + if (flag2) + { + num = i; + break; + } + } + bool flag3 = num >= 0; + if (flag3) + { + this.m_objTabs[num].bChecked = true; + } + } + DlgBase.singleton.QueryItemsInfo(); + } + + private void SetMalltypeWithItemID() + { + bool flag = this.doc.currItemID != 0; + if (flag) + { + uint num = 0u; + uint num2 = 0u; + this.doc.FindItem(this.doc.currItemID, out num, out num2); + bool flag2 = num2 > 0u; + if (flag2) + { + DlgBase.singleton.mallType = (MallType)num2; + } + } + } + + private IEnumerator ResetOnshowCheck() + { + yield return new WaitForEndOfFrame(); + this._onShowCheck = false; + yield break; + } + + private void SetupTabs() + { + int num = 0; + for (int i = 0; i < 8; i++) + { + MallType mallType = this.showTypes[i]; + bool flag = this.malltype_list.Contains(mallType); + if (flag) + { + this.m_objTabs[i].SetVisible(true); + this.m_objTabs[i].gameObject.transform.parent.localPosition = this.m_tabPos[num]; + this.m_sprRedpoints[i].SetVisible(this.IsShowNew(mallType)); + num++; + } + else + { + this.m_objTabs[i].SetVisible(false); + } + } + } + + private bool IsShowNew(MallType type) + { + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + bool flag2 = type == MallType.WEEK; + bool result; + if (flag2) + { + result = this.doc.isNewWeekly; + } + else + { + bool flag3 = type == MallType.VIP; + result = (flag3 && this.doc.isNewVIP); + } + return result; + } + + private bool OnTabClick(IXUICheckBox icbox) + { + bool flag = !icbox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + MallType type = this.showTypes[(int)icbox.ID]; + this.ExecuteTab(type); + result = true; + } + return result; + } + + private void ExecuteTab(MallType type) + { + bool flag = type != MallType.VIP && this.mClickTab == MallType.VIP; + if (flag) + { + this.doc.hotGoods.Clear(); + this.m_sprRedpoints[XFastEnumIntEqualityComparer.ToInt(MallType.VIP) - 1].SetVisible(false); + } + bool flag2 = type != MallType.WEEK && this.doc.isNewWeekly; + if (flag2) + { + this.doc.isNewWeekly = false; + this.m_sprRedpoints[XFastEnumIntEqualityComparer.ToInt(MallType.WEEK) - 1].SetVisible(false); + } + this.mClickTab = type; + bool flag3 = !this._onShowCheck; + if (flag3) + { + this.doc.currItemID = 0; + } + DlgBase.singleton.mallType = type; + DlgBase.singleton._gameBuyCardHander.ResetCurrCnt(); + DlgBase.singleton.QueryItemsInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GameMallTabsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GameMallTabsHandler.cs.meta new file mode 100644 index 00000000..75caab5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GameMallTabsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2aea3eaeb7bbc9e4fae8ada2e7ea7a93 +timeCreated: 1611403497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GamePayDiaMallHander.cs b/Client/Assets/Scripts/XMainClient/GamePayDiaMallHander.cs new file mode 100644 index 00000000..e906e969 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GamePayDiaMallHander.cs @@ -0,0 +1,543 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GamePayDiaMallHander : DlgHandlerBase + { + public uint VipLevel + { + get + { + return 0u; + } + } + + public GameObject VIPFrame; + + public GameObject RechargeFrame; + + public IXUILabel m_NextVipTip; + + public IXUILabel m_CurrVipLevel; + + public IXUILabel m_NextVipLevel; + + public Transform m_NextVip; + + public IXUILabel m_VipProgressValue; + + public IXUIProgress m_VipProgress; + + public IXUIButton m_SwitchBtn; + + public IXUILabel m_SwitchLabel; + + public GameObject m_SwitchRedPoint; + + public IXUIList m_RechargeItemList; + + public IXUIScrollView m_RechargeScrollView; + + public XUIPool m_RechargeDiamondPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton _CustomerService; + + public IXUIButton _wifiBtn; + + public XUIPool m_TabTool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_TabScrollView; + + public XUIPool m_DescPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_GetBtn; + + public IXUILabel m_GetBtnLabel; + + public GameObject m_GetBtnRedPoint; + + public IXUILabel m_ViewLevel; + + private List m_EffectCache = new List(); + + private XRechargeDocument _Doc; + + public int CurrentClick = 0; + + private List _redPointList = new List(); + + protected override void Init() + { + this._Doc = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + this._Doc.RechargeView = this; + this.m_NextVipTip = (base.transform.Find("Bg/UpView/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_CurrVipLevel = (base.transform.Find("Bg/UpView/vipicon1/Level1").GetComponent("XUILabel") as IXUILabel); + this.m_NextVipLevel = (base.transform.Find("Bg/UpView/vipicon2/Level2").GetComponent("XUILabel") as IXUILabel); + this.m_NextVip = base.transform.Find("Bg/UpView/vipicon2"); + this.m_VipProgressValue = (base.transform.Find("Bg/UpView/Progress").GetComponent("XUILabel") as IXUILabel); + this.m_VipProgress = (base.transform.Find("Bg/UpView/ProgressBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_SwitchBtn = (base.transform.Find("Bg/UpView/SwitchBtn").GetComponent("XUIButton") as IXUIButton); + this.m_SwitchLabel = (base.transform.Find("Bg/UpView/SwitchBtn/Label").GetComponent("XUILabel") as IXUILabel); + this.m_SwitchRedPoint = this.m_SwitchBtn.gameObject.transform.Find("RedPoint").gameObject; + this.m_RechargeScrollView = (base.transform.Find("Bg/RechargeFrame/Scroll View").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RechargeItemList = (base.transform.Find("Bg/RechargeFrame/Scroll View/Grid").GetComponent("XUIList") as IXUIList); + Transform transform = base.transform.Find("Bg/RechargeFrame/Scroll View/Grid/TplCard"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(false); + } + Transform transform2 = base.transform.Find("Bg/RechargeFrame/Scroll View/Grid/TplDiamond"); + this.m_RechargeDiamondPool.SetupPool(transform2.parent.parent.gameObject, transform2.gameObject, 8u, false); + Transform transform3 = base.transform.Find("Bg/VipFrame/Tabs/Tpl"); + this.m_TabTool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 10u, false); + this.m_TabScrollView = (base.transform.Find("Bg/VipFrame/Tabs").GetComponent("XUIScrollView") as IXUIScrollView); + transform3 = base.transform.Find("Bg/VipFrame/RightView/DescScrollView/Tpl"); + this.m_DescPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 10u, false); + transform3 = base.transform.Find("Bg/VipFrame/RightView/Item/Tpl"); + this.m_ItemPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 8u, false); + this.m_GetBtn = (base.transform.Find("Bg/VipFrame/RightView/GetBtn").GetComponent("XUISprite") as IXUISprite); + this.m_GetBtnLabel = (this.m_GetBtn.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + this.m_GetBtnRedPoint = this.m_GetBtn.gameObject.transform.Find("RedPoint").gameObject; + this.m_ViewLevel = (base.transform.Find("Bg/VipFrame/RightView/Name/Level").GetComponent("XUILabel") as IXUILabel); + this.VIPFrame = base.transform.Find("Bg/VipFrame").gameObject; + this.RechargeFrame = base.transform.Find("Bg/RechargeFrame").gameObject; + this._CustomerService = (base.transform.Find("CustomerService").GetComponent("XUIButton") as IXUIButton); + this._wifiBtn = (base.transform.Find("wifi").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + this.m_SwitchBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSwitchBtnClick)); + this.m_GetBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetGiftBtnClick)); + this._CustomerService.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCustomClick)); + this._wifiBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWifiClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._wifiBtn.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_3GFree)); + this.SetVipProgressInfo(this._Doc.VipLevel); + this.m_RechargeScrollView.ResetPosition(); + this._Doc.ReqPayAllInfo(); + this.SetSwitchState(); + } + + public void SetSwitchState() + { + this.VIPFrame.SetActive(this._Doc.isVIPShow); + this.RechargeFrame.SetActive(!this._Doc.isVIPShow); + bool isVIPShow = this._Doc.isVIPShow; + if (isVIPShow) + { + this.m_SwitchLabel.SetText(XStringDefineProxy.GetString("RechargeBtnText")); + } + else + { + this.m_SwitchLabel.SetText(XStringDefineProxy.GetString("VIPBtnText")); + } + this.m_SwitchRedPoint.SetActive(!this._Doc.isVIPShow && this._Doc.CalVipRedPoint()); + this.RefreshVIP(); + this.RefreshDatas(); + } + + protected override void OnHide() + { + this._Doc.isVIPShow = false; + XSingleton.singleton.DestroyTextureInActivePool(this.m_RechargeDiamondPool, "Icon"); + for (int i = 0; i < this.m_EffectCache.Count; i++) + { + XSingleton.singleton.DestroyFx(this.m_EffectCache[i], true); + } + this.m_EffectCache.Clear(); + } + + public void SetVipProgressInfo(uint currVipLevel) + { + this.m_CurrVipLevel.SetText(string.Format(XSingleton.singleton.GetString("PAY_VIP_LEVEL"), currVipLevel)); + this.m_NextVipTip.SetText(this._Doc.IsMaxVip(currVipLevel) ? XSingleton.singleton.GetString("PAY_VIP_MAX_TIP") : string.Format(XSingleton.singleton.GetString("PAY_NEXT_VIP_TIP"), this._Doc.LackMoneyToNextVipLevel(currVipLevel), currVipLevel + 1u)); + this.m_NextVipLevel.SetText(this._Doc.IsMaxVip(currVipLevel) ? "" : string.Format(XSingleton.singleton.GetString("PAY_VIP_LEVEL"), currVipLevel + 1u)); + this.m_NextVip.gameObject.SetActive(!this._Doc.IsMaxVip(currVipLevel)); + float num = this._Doc.TotalPay - this._Doc.GetVipRMB(currVipLevel); + uint num2 = this._Doc.GetVipRMB(currVipLevel + 1u) - this._Doc.GetVipRMB(currVipLevel); + float value = (num2 == 0u) ? 0f : (this._Doc.IsMaxVip(currVipLevel) ? 1f : (num / num2)); + this.m_VipProgress.value = value; + this.m_VipProgressValue.SetText(string.Format("{0}/{1}", num, num2)); + this.m_VipProgressValue.gameObject.SetActive(!this._Doc.IsMaxVip(currVipLevel)); + } + + public void RefreshDatas() + { + bool isVIPShow = this._Doc.isVIPShow; + if (!isVIPShow) + { + this.m_RechargeDiamondPool.FakeReturnAll(); + for (int i = 0; i < XRechargeDocument.PayTable.Table.Length; i++) + { + GameObject gameObject = this.m_RechargeDiamondPool.FetchGameObject(false); + gameObject.transform.parent = this.m_RechargeItemList.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + IXUIButton ixuibutton = gameObject.transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)i); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPayItemClick)); + this.RefreshDiamondItem(gameObject, XRechargeDocument.PayTable.Table[i]); + } + this.m_RechargeItemList.Refresh(); + this.m_RechargeDiamondPool.ActualReturnAll(false); + } + } + + private bool OnCustomClick(IXUIButton btn) + { + Dictionary dictionary = new Dictionary(); + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform != 11) + { + XSingleton.singleton.AddGreenLog("CustomerService-Mall", null, null, null, null, null); + } + else + { + dictionary["url"] = XSingleton.singleton.GetValue("CustomerServiceRechargeAndroid"); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + } + else + { + dictionary["url"] = XSingleton.singleton.GetValue("CustomerServiceRechargeApple"); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + return true; + } + + private bool OnWifiClick(IXUIButton btn) + { + AdditionRemindDocument specificDocument = XDocuments.GetSpecificDocument(AdditionRemindDocument.uuID); + specificDocument.Open3GWebPage(); + return true; + } + + private bool OnPayCardClick(IXUIButton btn) + { + int num = (int)btn.ID; + List payCardList = this._Doc.GetPayCardList(); + bool flag = num < payCardList.Count; + if (flag) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + bool flag2 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.Android; + if (flag2) + { + specificDocument.SDKSubscribe(payCardList[num].Price, 1, payCardList[num].ServiceCode, payCardList[num].Name, payCardList[num].ParamID, PayParamType.PAY_PARAM_CARD); + } + else + { + bool flag3 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.IOS; + if (flag3) + { + int buyNum = (payCardList[num].Type == 1) ? 7 : 30; + specificDocument.SDKSubscribe(payCardList[num].Price, buyNum, payCardList[num].ServiceCode, payCardList[num].Name, payCardList[num].ParamID, PayParamType.PAY_PARAM_CARD); + } + } + } + return true; + } + + private bool OnPayItemClick(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num < XRechargeDocument.PayTable.Table.Length; + if (flag) + { + PayListTable.RowData rowData = XRechargeDocument.PayTable.Table[num]; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.SDKRecharge(rowData.Price, rowData.ParamID, PayParamType.PAY_PARAM_LIST); + } + return true; + } + + public void RefreshDiamondItem(GameObject item, PayListTable.RowData data) + { + IXUISprite ixuisprite = item.transform.Find("Recommend").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = item.transform.Find("FirstDouble").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = item.transform.Find("FirstHalf").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = item.transform.Find("Price").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = item.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = item.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel; + IXUITexture ixuitexture = item.transform.Find("Icon").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(data.Icon); + bool flag = data.Effect != ""; + if (flag) + { + Transform parent = item.transform.Find("Icon"); + XFx item2 = XSingleton.singleton.CreateUIFx(data.Effect, parent, false); + this.m_EffectCache.Add(item2); + } + bool flag2 = data.Effect2 != ""; + if (flag2) + { + XFx item3 = XSingleton.singleton.CreateUIFx(data.Effect2, item.transform, false); + this.m_EffectCache.Add(item3); + } + ixuisprite.SetAlpha(0f); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("PAY_UNIT"), (float)data.Price / 100f)); + ixuilabel2.SetText(data.Name); + ixuisprite2.SetAlpha(0f); + ixuisprite3.SetAlpha(0f); + ixuilabel3.SetVisible(false); + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + PayMarketingInfo payMarketingInfo; + bool flag3 = specificDocument.FirstPayMarketingInfo.TryGetValue(data.Diamond, out payMarketingInfo); + if (flag3) + { + bool flag4 = payMarketingInfo.sendCount == data.Diamond; + if (flag4) + { + ixuisprite2.SetAlpha(1f); + } + else + { + bool flag5 = payMarketingInfo.sendCount == data.Diamond / 2; + if (flag5) + { + ixuisprite3.SetAlpha(1f); + } + else + { + ixuilabel3.SetVisible(payMarketingInfo.sendCount > 0); + ixuilabel3.SetText(payMarketingInfo.sendCount.ToString()); + } + } + } + } + + public bool OnSwitchBtnClick(IXUIButton sp) + { + this._Doc.isVIPShow = !this._Doc.isVIPShow; + this.SetSwitchState(); + return true; + } + + public void OnGetGiftBtnClick(IXUISprite btn) + { + bool flag = this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.UNABLE || this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.GET; + if (flag) + { + bool flag2 = this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.UNABLE; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("VIPGiftGetUnableTips"), this.CurrentClick), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("VIPGiftGetGetTips"), "fece00"); + } + } + else + { + this._Doc.SendGetVIPGiftQuery(this.CurrentClick); + } + } + + public void RefreshVIP() + { + bool flag = !this._Doc.isVIPShow; + if (!flag) + { + this.CurrentClick = (int)this._Doc.VipLevel; + for (int i = 0; i < this._Doc.IsGiftGet.Count; i++) + { + bool flag2 = this._Doc.IsGiftGet[i] == VIPGiftState.UNGET; + if (flag2) + { + this.CurrentClick = i; + break; + } + } + this.RefreshVIPTabs(); + this.RefreshVIPView(); + } + } + + private void RefreshVIPTabs() + { + this.m_TabTool.ReturnAll(false); + List list = new List(); + this._redPointList.Clear(); + IXUIPanel ixuipanel = this.m_TabTool._tpl.transform.parent.GetComponent("XUIPanel") as IXUIPanel; + int num = this.CurrentClick; + bool flag = false; + bool flag2 = (float)(this.m_TabTool.TplHeight * (this._Doc.IsGiftGet.Count - this.CurrentClick)) < ixuipanel.ClipRange.w; + if (flag2) + { + num = 0; + flag = true; + } + IXUICheckBox ixuicheckBox = null; + for (int i = 0; i < this._Doc.IsGiftGet.Count; i++) + { + GameObject gameObject = this.m_TabTool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_TabTool.TplPos.x, this.m_TabTool.TplPos.y - (float)(this.m_TabTool.TplHeight * (i - num)), 0f); + bool flag3 = !flag && i < this.CurrentClick; + if (flag3) + { + gameObject.SetActive(false); + list.Add(gameObject); + } + IXUILabel ixuilabel = gameObject.transform.Find("Text/T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("VIPTabsShow"), i)); + GameObject gameObject2 = gameObject.transform.Find("RedPoint").gameObject; + this._redPointList.Add(gameObject2); + gameObject2.SetActive(this._Doc.IsGiftGet[i] == VIPGiftState.UNGET); + IXUICheckBox ixuicheckBox2 = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ID = (ulong)((long)i); + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabsClick)); + bool flag4 = i == this.CurrentClick; + if (flag4) + { + ixuicheckBox = ixuicheckBox2; + } + } + this.m_TabScrollView.ResetPosition(); + bool flag5 = flag; + if (flag5) + { + bool flag6 = this.CurrentClick != 0; + if (flag6) + { + this.m_TabScrollView.SetPosition(1f); + } + } + else + { + for (int j = 0; j < list.Count; j++) + { + list[j].SetActive(true); + } + } + bool flag7 = ixuicheckBox != null; + if (flag7) + { + ixuicheckBox.bChecked = true; + } + } + + private void RefreshVIPView() + { + this.m_ViewLevel.SetText(this.CurrentClick.ToString()); + VIPTable.RowData byVIP = this._Doc.VIPReader.GetByVIP(this.CurrentClick); + this.RefreshGiftState(this.CurrentClick); + this.m_DescPool.ReturnAll(false); + bool flag = byVIP.VIPTips != null; + if (flag) + { + for (int i = 0; i < byVIP.VIPTips.Length; i++) + { + GameObject gameObject = this.m_DescPool.FetchGameObject(false); + Vector3 tplPos = this.m_DescPool.TplPos; + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(this.m_DescPool.TplHeight * i), 0f); + IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(byVIP.VIPTips[i]); + } + } + this.m_ItemPool.ReturnAll(false); + List list = new List(); + List list2; + bool flag2 = XBagDocument.TryGetChestListConf(byVIP.ItemID, out list2); + if (flag2) + { + int j = 0; + int count = list2.Count; + while (j < count) + { + ChestList.RowData rowData = list2[j]; + bool flag3 = !XBagDocument.IsProfMatchedFeable((uint)rowData.Profession, XItemDrawerParam.DefaultProfession, false); + if (!flag3) + { + bool flag4 = XBagDocument.TryGetDropConf(rowData.DropID, ref list); + if (flag4) + { + int k = 0; + int count2 = list.Count; + while (k < count2) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(list[k].ItemID); + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + Vector3 tplPos2 = this.m_ItemPool.TplPos; + gameObject2.transform.localPosition = new Vector3(tplPos2.x + (float)(this.m_ItemPool.TplWidth * k), tplPos2.y, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, itemConf, list[k].ItemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject2, list[k].ItemID); + k++; + } + } + } + j++; + } + } + } + + public void RefreshGiftState(int level) + { + bool flag = this._Doc.IsGiftGet.Count == 0; + if (!flag) + { + this.SetGetBtnState(this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.UNGET); + bool flag2 = this._Doc.IsGiftGet[this.CurrentClick] == VIPGiftState.GET; + if (flag2) + { + this.m_GetBtnLabel.SetText(XStringDefineProxy.GetString("SRS_FETCHED")); + } + else + { + bool flag3 = (ulong)this._Doc.VipLevel >= (ulong)((long)level); + if (flag3) + { + this.m_GetBtnLabel.SetText(XStringDefineProxy.GetString("SRS_FETCH")); + } + else + { + this.m_GetBtnLabel.SetText(string.Format(XStringDefineProxy.GetString("VIPGiftGetBtnUnableTips"), level)); + } + } + this._redPointList[level].SetActive(this._Doc.IsGiftGet[level] == VIPGiftState.UNGET); + } + } + + private void SetGetBtnState(bool state) + { + this.m_GetBtnRedPoint.SetActive(state); + this.m_GetBtn.SetGrey(state); + } + + public bool OnTabsClick(IXUICheckBox iSp) + { + bool flag = !iSp.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this.CurrentClick = (int)iSp.ID; + this.RefreshVIPView(); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GamePayDiaMallHander.cs.meta b/Client/Assets/Scripts/XMainClient/GamePayDiaMallHander.cs.meta new file mode 100644 index 00000000..8246c518 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GamePayDiaMallHander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fbb618cfe0668304ba4aaf642056dc4b +timeCreated: 1611404932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GamePayDragonMallHander.cs b/Client/Assets/Scripts/XMainClient/GamePayDragonMallHander.cs new file mode 100644 index 00000000..fb6034e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GamePayDragonMallHander.cs @@ -0,0 +1,257 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GamePayDragonMallHander : DlgHandlerBase + { + private XPurchaseDocument _doc = null; + + private uint nextRecoverTimer = 0u; + + public static FatigueRecoverTime _fatigueTime = new FatigueRecoverTime(); + + public ItemEnum _showItem = ItemEnum.VIRTUAL_ITEM_MAX; + + public IXUILabel m_Title; + + public IXUILabel m_BuyNumLeft; + + public IXUILabel m_BuyNumError; + + public IXUILabelSymbol m_BuyNum; + + public IXUILabel m_Time; + + public IXUILabel m_Tips; + + public IXUIButton m_QuickBuyDiamond; + + public IXUIButton m_QuickBuyDragonCoin; + + public IXUILabelSymbol m_QuickBuyCost; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + this.m_QuickBuyDiamond = (base.transform.Find("bg/BuyFrame/UseDiamond").GetComponent("XUIButton") as IXUIButton); + this.m_QuickBuyDragonCoin = (base.transform.Find("bg/BuyFrame/UseDragonCoin").GetComponent("XUIButton") as IXUIButton); + this.m_QuickBuyCost = (base.transform.Find("bg/BuyFrame/num2").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Tips = (base.transform.Find("bg/BuyFrame/tips").GetComponent("XUILabel") as IXUILabel); + this.m_Title = (base.transform.Find("bg/BuyFrame/title").GetComponent("XUILabel") as IXUILabel); + this.m_BuyNumLeft = (base.transform.Find("bg/BuyFrame/timesleft").GetComponent("XUILabel") as IXUILabel); + this.m_BuyNum = (base.transform.Find("bg/BuyFrame/num1").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_BuyNumError = (base.transform.Find("bg/BuyFrame/error").GetComponent("XUILabel") as IXUILabel); + this.m_Time = (base.transform.Find("bg/BuyFrame/time").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + this.m_QuickBuyDiamond.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoPurchaseDiamond)); + this.m_QuickBuyDragonCoin.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoPurchageDC)); + } + + public void ReceiveFatigueTime(PtcG2C_FatigueRecoverTimeNotify times) + { + GamePayDragonMallHander._fatigueTime.timeleft = times.Data.timeleft; + GamePayDragonMallHander._fatigueTime.fatigueid = times.Data.fatigueID; + GamePayDragonMallHander._fatigueTime.updatetime = DateTime.Now; + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowBorad(DlgBase.singleton.item); + } + + public void ShowBorad(ItemEnum type) + { + this._showItem = type; + this.SetupPanel(); + this.RefreshBoard(); + bool flag = this._showItem == ItemEnum.FATIGUE; + if (flag) + { + bool flag2 = this.nextRecoverTimer > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this.nextRecoverTimer); + } + this.nextRecoverTimer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.UpdateTimer), null); + } + } + + public void RefreshBoard() + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + XPurchaseInfo purchaseInfo = this._doc.GetPurchaseInfo(level, vipLevel, this._showItem); + this.m_BuyNumLeft.SetText(XStringDefineProxy.GetString("SYS_PURCHASE_TIMES") + (purchaseInfo.totalBuyNum - purchaseInfo.curBuyNum).ToString() + "/" + purchaseInfo.totalBuyNum.ToString()); + this.m_BuyNum.InputText = XLabelSymbolHelper.FormatCostWithIcon(purchaseInfo.GetCount, this._showItem); + bool flag = this._showItem == ItemEnum.DRAGON_COIN; + if (flag) + { + this.m_QuickBuyCost.InputText = XLabelSymbolHelper.FormatCostWithIcon(purchaseInfo.diamondCost, ItemEnum.DIAMOND); + } + else + { + this.m_QuickBuyCost.InputText = XLabelSymbolHelper.FormatCostWithIcon(purchaseInfo.dragoncoinCost, ItemEnum.DRAGON_COIN); + } + } + + protected void SetupPanel() + { + bool flag = this._showItem == ItemEnum.VIRTUAL_ITEM_MAX; + if (!flag) + { + this.m_Time.gameObject.SetActive(false); + this.m_BuyNumError.gameObject.SetActive(false); + ItemEnum showItem = this._showItem; + if (showItem != ItemEnum.GOLD) + { + if (showItem != ItemEnum.FATIGUE) + { + if (showItem == ItemEnum.DRAGON_COIN) + { + this.m_Title.SetText(XStringDefineProxy.GetString("PURCHASEDC")); + this.m_QuickBuyDiamond.gameObject.SetActive(true); + this.m_QuickBuyDragonCoin.gameObject.SetActive(false); + this.m_Tips.SetText(XStringDefineProxy.GetString("Quick_Purchase_Tips2")); + Vector3 localPosition = this.m_QuickBuyDiamond.gameObject.transform.localPosition; + this.m_QuickBuyDiamond.gameObject.transform.localPosition = new Vector3(0f, localPosition.y); + } + } + else + { + this.m_Title.SetText(XStringDefineProxy.GetString("PURCHASEFAT")); + this.m_QuickBuyDiamond.gameObject.SetActive(false); + this.m_QuickBuyDragonCoin.gameObject.SetActive(true); + this.m_Tips.SetText(XStringDefineProxy.GetString("Quick_Purchase_Tips3")); + Vector3 localPosition2 = this.m_QuickBuyDiamond.gameObject.transform.localPosition; + this.m_QuickBuyDragonCoin.gameObject.transform.localPosition = new Vector3(0f, localPosition2.y); + } + } + else + { + this.m_Title.SetText(XStringDefineProxy.GetString("PURCHASEGOLD")); + this.m_QuickBuyDiamond.gameObject.SetActive(false); + this.m_QuickBuyDragonCoin.gameObject.SetActive(true); + this.m_Tips.SetText(XStringDefineProxy.GetString("Quick_Purchase_Tips1")); + Vector3 localPosition3 = this.m_QuickBuyDiamond.gameObject.transform.localPosition; + this.m_QuickBuyDragonCoin.gameObject.transform.localPosition = new Vector3(0f, localPosition3.y); + } + } + } + + public void ShowErrorCode(ErrorCode err) + { + bool flag = this.m_BuyNum != null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(err), "fece00"); + } + } + + public string FormatTime(uint time) + { + bool flag = time >= 3600u; + string result; + if (flag) + { + result = string.Format(string.Format("{0:D2}:{1:D2}:{2:D2}", (int)(time / 3600u), (int)(time % 3600u / 60u), time % 60u), new object[0]); + } + else + { + result = string.Format(string.Format("{0:D2}:{1:D2}", (int)(time % 3600u / 60u), time % 60u), new object[0]); + } + return result; + } + + public uint GetTimeLeft(ItemEnum itemid) + { + uint num = 0u; + for (int i = 0; i < GamePayDragonMallHander._fatigueTime.fatigueid.Count; i++) + { + bool flag = GamePayDragonMallHander._fatigueTime.fatigueid[i] == (uint)this._showItem; + if (flag) + { + num = GamePayDragonMallHander._fatigueTime.timeleft[i] / 1000u; + } + } + double totalSeconds = (DateTime.Now - GamePayDragonMallHander._fatigueTime.updatetime).TotalSeconds; + num -= (uint)totalSeconds; + return (num > 0u) ? num : 0u; + } + + public void UpdateTimer(object param) + { + uint num = 0u; + for (int i = 0; i < GamePayDragonMallHander._fatigueTime.fatigueid.Count; i++) + { + bool flag = GamePayDragonMallHander._fatigueTime.fatigueid[i] == (uint)this._showItem; + if (flag) + { + num = GamePayDragonMallHander._fatigueTime.timeleft[i]; + } + } + bool flag2 = num == 0u; + if (flag2) + { + this.m_Time.SetText(""); + } + else + { + double totalSeconds = (DateTime.Now - GamePayDragonMallHander._fatigueTime.updatetime).TotalSeconds; + num -= (uint)totalSeconds; + bool flag3 = num <= 0u; + if (flag3) + { + this.m_Time.SetText(""); + } + else + { + this.m_Time.SetText(""); + bool flag4 = this.nextRecoverTimer > 0u; + if (flag4) + { + XSingleton.singleton.KillTimer(this.nextRecoverTimer); + } + this.nextRecoverTimer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.UpdateTimer), null); + } + } + } + + public bool DoPurchaseDiamond(IXUIButton sp) + { + this._doc.CommonQuickBuy(this._showItem, ItemEnum.DIAMOND, 1u); + return true; + } + + public bool DoPurchageDC(IXUIButton sp) + { + this._doc.CommonQuickBuy(this._showItem, ItemEnum.DRAGON_COIN, 1u); + return true; + } + + public void ReqQuickCommonPurchase(ItemEnum itemid = ItemEnum.FATIGUE) + { + this.ShowBorad(itemid); + } + + public void UpdatePlayerBuyInfo(BuyGoldFatInfo buyInfo) + { + bool flag = this._doc == null; + if (!flag) + { + this._doc.InitPurchaseInfo(buyInfo); + this.RefreshBoard(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GamePayDragonMallHander.cs.meta b/Client/Assets/Scripts/XMainClient/GamePayDragonMallHander.cs.meta new file mode 100644 index 00000000..7f1d98b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GamePayDragonMallHander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f10a3c3b1536074f8070316b96c87a8 +timeCreated: 1611403514 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GetBuffDataSeqFloat.cs b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqFloat.cs new file mode 100644 index 00000000..2fb0ecb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqFloat.cs @@ -0,0 +1,7 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal delegate ISeqRef GetBuffDataSeqFloat(BuffTable.RowData rowData); +} diff --git a/Client/Assets/Scripts/XMainClient/GetBuffDataSeqFloat.cs.meta b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqFloat.cs.meta new file mode 100644 index 00000000..09c1b486 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqFloat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a98f4f2e9d36ea24c99057492aff5989 +timeCreated: 1611404299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListFloat.cs b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListFloat.cs new file mode 100644 index 00000000..b79e8592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListFloat.cs @@ -0,0 +1,7 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal delegate ISeqListRef GetBuffDataSeqListFloat(BuffTable.RowData rowData); +} diff --git a/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListFloat.cs.meta b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListFloat.cs.meta new file mode 100644 index 00000000..0a9850a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListFloat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f1c6a1ac863fe54595933c506cadd30 +timeCreated: 1611404028 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListInt.cs b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListInt.cs new file mode 100644 index 00000000..1ce2cfa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListInt.cs @@ -0,0 +1,7 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal delegate ISeqListRef GetBuffDataSeqListInt(BuffTable.RowData rowData); +} diff --git a/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListInt.cs.meta b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListInt.cs.meta new file mode 100644 index 00000000..a3fce70d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListInt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66bdc1f3c3ab4bc49b3b68b759ff4bee +timeCreated: 1611403855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListString.cs b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListString.cs new file mode 100644 index 00000000..1e530302 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListString.cs @@ -0,0 +1,7 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal delegate ISeqListRef GetBuffDataSeqListString(BuffTable.RowData rowData); +} diff --git a/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListString.cs.meta b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListString.cs.meta new file mode 100644 index 00000000..dc157e18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetBuffDataSeqListString.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e02e54a2ac2b35042b551c3a18975e76 +timeCreated: 1611404696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GetItemHandler.cs b/Client/Assets/Scripts/XMainClient/GetItemHandler.cs new file mode 100644 index 00000000..75b17c8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetItemHandler.cs @@ -0,0 +1,7 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal delegate List GetItemHandler(); +} diff --git a/Client/Assets/Scripts/XMainClient/GetItemHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GetItemHandler.cs.meta new file mode 100644 index 00000000..2433eb81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GetItemHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b181dd109e222d4c8a2d86a04517353 +timeCreated: 1611404094 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GiftClaimBehaviour.cs b/Client/Assets/Scripts/XMainClient/GiftClaimBehaviour.cs new file mode 100644 index 00000000..828fabb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftClaimBehaviour.cs @@ -0,0 +1,38 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class GiftClaimBehaviour : DlgBehaviourBase + { + public Transform m_transRcv; + + public IXUILabel m_lblName; + + public IXUIButton m_btnOpen; + + public Transform m_transOpen; + + public IXUILabel m_lblTitle; + + public IXUILabel m_lblDetail; + + public IXUIButton m_btnThanks; + + public GameObject m_objTpl; + + private void Awake() + { + this.m_transRcv = base.transform.Find("recv"); + this.m_lblName = (base.transform.Find("recv/name").GetComponent("XUILabel") as IXUILabel); + this.m_btnOpen = (base.transform.Find("recv/ok").GetComponent("XUIButton") as IXUIButton); + this.m_transOpen = base.transform.Find("open"); + this.m_lblTitle = (base.transform.Find("open/name").GetComponent("XUILabel") as IXUILabel); + this.m_lblDetail = (base.transform.Find("open/desc").GetComponent("XUILabel") as IXUILabel); + this.m_btnThanks = (base.transform.Find("open/OK").GetComponent("XUIButton") as IXUIButton); + this.m_objTpl = base.transform.Find("open/items/tmp").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GiftClaimBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GiftClaimBehaviour.cs.meta new file mode 100644 index 00000000..17830e8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftClaimBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a9b4de1259e15742b705cd76311384f +timeCreated: 1611404201 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs b/Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs new file mode 100644 index 00000000..c18e6c10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs @@ -0,0 +1,205 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GiftClaimDlg : DlgBase + { + public override bool isPopup + { + get + { + return true; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override string fileName + { + get + { + return "GameSystem/GiftClaimDlg"; + } + } + + public XGameMallDocument doc + { + get + { + return XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + } + + public GiftClaimDlg.State state = GiftClaimDlg.State.Recv; + + private XFx fx; + + private List mGiftList; + + public enum State + { + Recv, + Open + } + + protected override void Init() + { + base.Init(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshUI(); + bool flag = this.fx == null; + if (flag) + { + this.fx = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_GiftClaimDlg_Clip01", null, true); + this.fx.Play(base.uiBehaviour.m_objTpl.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnOpen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOpenClick)); + base.uiBehaviour.m_btnThanks.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnThankClick)); + } + + protected override void OnUnload() + { + bool flag = this.fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.fx, true); + this.fx = null; + } + base.OnUnload(); + } + + private void RefreshUI() + { + base.uiBehaviour.m_transOpen.gameObject.SetActive(this.state == GiftClaimDlg.State.Open); + base.uiBehaviour.m_transRcv.gameObject.SetActive(this.state == GiftClaimDlg.State.Recv); + bool flag = this.state == GiftClaimDlg.State.Recv; + if (flag) + { + bool flag2 = this.mGiftList != null && this.mGiftList.Count > 0; + if (flag2) + { + GiftIbItem giftIbItem = this.mGiftList[0]; + base.uiBehaviour.m_lblName.SetText(giftIbItem.name); + } + } + else + { + bool flag3 = this.state == GiftClaimDlg.State.Open; + if (flag3) + { + bool flag4 = this.mGiftList != null && this.mGiftList.Count > 0; + if (flag4) + { + GiftIbItem giftIbItem2 = this.mGiftList[0]; + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_objTpl, (int)giftIbItem2.item.itemID, (int)giftIbItem2.item.itemCount, false); + base.uiBehaviour.m_lblDetail.SetText(giftIbItem2.text); + base.uiBehaviour.m_lblTitle.SetText(giftIbItem2.name); + } + } + } + } + + public void HanderGift(List gift) + { + this.mGiftList = gift; + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.state = GiftClaimDlg.State.Recv; + this.SetVisible(true, true); + } + } + + private bool OnOpenClick(IXUIButton btn) + { + this.state = GiftClaimDlg.State.Open; + this.RefreshUI(); + return true; + } + + private bool OnThankClick(IXUIButton btn) + { + bool flag = this.mGiftList == null; + if (flag) + { + this.SetVisible(false, true); + } + else + { + bool flag2 = this.mGiftList.Count > 0; + if (flag2) + { + GiftIbItem giftIbItem = this.mGiftList[0]; + RpcC2M_GiftIbReqGoods rpcC2M_GiftIbReqGoods = new RpcC2M_GiftIbReqGoods(); + rpcC2M_GiftIbReqGoods.oArg.orderid = giftIbItem.orderid; + XSingleton.singleton.Send(rpcC2M_GiftIbReqGoods); + this.mGiftList.RemoveAt(0); + } + bool flag3 = this.mGiftList.Count > 0; + if (flag3) + { + this.state = GiftClaimDlg.State.Recv; + this.RefreshUI(); + } + else + { + this.SetVisible(false, true); + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs.meta b/Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs.meta new file mode 100644 index 00000000..31a20de3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftClaimDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2daabf81c2bd9c47b09ea7f368286a6 +timeCreated: 1611404845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs b/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs new file mode 100644 index 00000000..afd65cbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class GiftboxBehaviour : DlgBehaviourBase + { + public IXUICheckBox m_checkbox1; + + public IXUICheckBox m_checkbox2; + + public IXUIButton m_btnClose; + + public IXUIWrapContent m_wrap; + + public IXUIScrollView m_scroll; + + public GameObject m_tip0; + + public GameObject m_tip1; + + private void Awake() + { + this.m_checkbox1 = (base.transform.Find("item1/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_checkbox2 = (base.transform.Find("item2/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_tip0 = base.transform.Find("Bg/Tip2").gameObject; + this.m_tip1 = base.transform.Find("Bg/Tip1").gameObject; + this.m_btnClose = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_wrap = (base.transform.Find("scrollview/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_scroll = (base.transform.Find("scrollview").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs.meta new file mode 100644 index 00000000..1f797e63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftboxBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce46a677ecdee554fbd8946cb05f6b22 +timeCreated: 1611404578 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GiftboxDlg.cs b/Client/Assets/Scripts/XMainClient/GiftboxDlg.cs new file mode 100644 index 00000000..c9b9f75b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftboxDlg.cs @@ -0,0 +1,200 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GiftboxDlg : DlgBase + { + private XGameMallDocument doc + { + get + { + return XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/GiftBoxDlg"; + } + } + + private DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); + + private List currItems; + + public GiftboxDlg.State state = GiftboxDlg.State.Present; + + public enum State + { + Present, + Recv + } + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.Close)); + base.uiBehaviour.m_checkbox1.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.TogglePresent)); + base.uiBehaviour.m_checkbox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.ToggleRecv)); + base.uiBehaviour.m_wrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_checkbox1.bChecked = true; + this.TogglePresent(base.uiBehaviour.m_checkbox1); + } + + protected override void OnHide() + { + this.doc.ClearGiftItems(); + base.OnHide(); + } + + public void Refresh() + { + this.currItems = ((this.state == GiftboxDlg.State.Present) ? this.doc.presentList : this.doc.recvList); + bool flag = this.currItems != null; + if (flag) + { + bool flag2 = this.state == GiftboxDlg.State.Present; + if (flag2) + { + this.RefreshPresent(); + } + else + { + bool flag3 = this.state == GiftboxDlg.State.Recv; + if (flag3) + { + this.RefreshRecv(); + } + } + } + } + + private bool Close(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + private bool ToggleRecv(IXUICheckBox box) + { + bool bChecked = box.bChecked; + if (bChecked) + { + this.state = GiftboxDlg.State.Recv; + this.ToggleTip(this.state); + this.doc.SendQueryGiftItems(1u); + } + return true; + } + + private void RefreshRecv() + { + bool flag = this.doc.recvList != null; + if (flag) + { + base.uiBehaviour.m_scroll.ResetPosition(); + base.uiBehaviour.m_wrap.SetContentCount(this.doc.recvList.Count, false); + } + } + + private bool TogglePresent(IXUICheckBox box) + { + bool bChecked = box.bChecked; + if (bChecked) + { + this.state = GiftboxDlg.State.Present; + this.ToggleTip(this.state); + this.doc.SendQueryGiftItems(0u); + } + return true; + } + + private void ToggleTip(GiftboxDlg.State state) + { + base.uiBehaviour.m_tip0.SetActive(state == GiftboxDlg.State.Recv); + base.uiBehaviour.m_tip1.SetActive(state == GiftboxDlg.State.Present); + } + + private void RefreshPresent() + { + bool flag = this.doc.presentList != null; + if (flag) + { + base.uiBehaviour.m_scroll.ResetPosition(); + base.uiBehaviour.m_wrap.SetContentCount(this.doc.presentList.Count, false); + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.currItems == null || this.currItems.Count <= index; + if (!flag) + { + IBGiftHistItem ibgiftHistItem = this.currItems[index]; + IXUILabel ixuilabel = t.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Recv").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this.startTime.AddSeconds(ibgiftHistItem.time).ToString("yyyy-MM-dd")); + ixuilabel2.SetText(ibgiftHistItem.name); + XSingleton.singleton.normalItemDrawer.DrawItem(t.gameObject, (int)ibgiftHistItem.item.itemID, (int)ibgiftHistItem.item.itemCount, false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GiftboxDlg.cs.meta b/Client/Assets/Scripts/XMainClient/GiftboxDlg.cs.meta new file mode 100644 index 00000000..c1749585 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GiftboxDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c776f943b4cf0b46af035bf451964db +timeCreated: 1611403602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GoldGroupType.cs b/Client/Assets/Scripts/XMainClient/GoldGroupType.cs new file mode 100644 index 00000000..d411f8b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GoldGroupType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum GoldGroupType + { + GGT_NONE, + GGT_DIAMOND, + GGT_TICKET + } +} diff --git a/Client/Assets/Scripts/XMainClient/GoldGroupType.cs.meta b/Client/Assets/Scripts/XMainClient/GoldGroupType.cs.meta new file mode 100644 index 00000000..237a3747 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GoldGroupType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee4bc74f4f145e847b6d693242ce9784 +timeCreated: 1611404795 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GroupChatDocument.cs b/Client/Assets/Scripts/XMainClient/GroupChatDocument.cs new file mode 100644 index 00000000..a9e6a121 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GroupChatDocument.cs @@ -0,0 +1,988 @@ +using System; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GroupChatDocument : XDocComponent + { + public override uint ID + { + get + { + return GroupChatDocument.uuID; + } + } + + public CBrifGroupInfo currGroup + { + get + { + bool flag = this.groups != null; + if (flag) + { + foreach (CBrifGroupInfo cbrifGroupInfo in this.groups) + { + bool flag2 = cbrifGroupInfo.id == DlgBase.singleton.ChatGroupId; + if (flag2) + { + return cbrifGroupInfo; + } + } + } + return null; + } + } + + public bool bShowMotion + { + get + { + return this.m_bShowMotion; + } + set + { + bool flag = this.m_bShowMotion != value; + if (flag) + { + this.m_bShowMotion = value; + XSingleton.singleton.AddGreenLog("bShowMotion:" + value.ToString(), null, null, null, null, null); + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GroupRecruitAuthorize, true); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.RefreshRedPoint(); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshRedPoint(); + } + } + } + } + + public List LeaderReviewList + { + get + { + return this.m_leaderReviewList; + } + } + + public List RecruitGroup + { + get + { + return this.m_recruitGroups; + } + } + + public List RecruitMember + { + get + { + return this.m_recruitMembers; + } + } + + public uint CurUserMemberCount + { + get + { + return this.m_curUseMemberCount; + } + } + + public uint CurGroupCount + { + get + { + return this.m_curUseGroupCount; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GroupChatDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GroupStageType _stageTypeReader = new GroupStageType(); + + private static Dictionary _stage2exps; + + public HashSet groups; + + public HashSet players; + + public RecruitSelectGroupHandler SelectGroupHandler = null; + + private bool m_bShowMotion = false; + + private List m_recruitGroups; + + private List m_leaderReviewList; + + private List m_recruitMembers; + + private uint m_curUseGroupCount = 0u; + + private uint m_curUseMemberCount = 0u; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + GroupChatDocument.AsyncLoader.AddTask("Table/GroupStageType", GroupChatDocument._stageTypeReader, false); + GroupChatDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + bool flag = GroupChatDocument._stage2exps != null; + if (flag) + { + GroupChatDocument._stage2exps.Clear(); + GroupChatDocument._stage2exps = null; + } + } + + public static uint GetStageID(uint expID) + { + bool flag = GroupChatDocument._stage2exps == null; + if (flag) + { + GroupChatDocument._stage2exps = new Dictionary(); + int num = GroupChatDocument._stageTypeReader.Table.Length; + for (int i = 0; i < num; i++) + { + GroupStageType.RowData rowData = GroupChatDocument._stageTypeReader.Table[i]; + bool flag2 = rowData == null || rowData.StagePerent == 0u || GroupChatDocument._stage2exps.ContainsKey((uint)rowData.Stage2Expedition); + if (!flag2) + { + GroupChatDocument._stage2exps.Add((uint)rowData.Stage2Expedition, rowData.StageID); + } + } + } + return (XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GroupRecruit) && GroupChatDocument._stage2exps.ContainsKey(expID)) ? GroupChatDocument._stage2exps[expID] : 0u; + } + + public static GroupStageType.RowData[] GetStageTable() + { + return GroupChatDocument._stageTypeReader.Table; + } + + public static GroupStageType.RowData GetGroupStage(uint stageID) + { + bool flag = stageID == 0u; + GroupStageType.RowData result; + if (flag) + { + result = null; + } + else + { + result = GroupChatDocument._stageTypeReader.GetByStageID(stageID); + } + return result; + } + + public static bool TryGetParentStage(uint stageID, out uint parentID) + { + parentID = 0u; + GroupStageType.RowData byStageID = GroupChatDocument._stageTypeReader.GetByStageID(stageID); + bool flag = byStageID == null; + bool result; + if (flag) + { + result = false; + } + else + { + parentID = byStageID.StagePerent; + result = (parentID > 0u); + } + return result; + } + + public bool TryGetGroupInMine(ref List list) + { + bool flag = this.groups == null; + bool result; + if (flag) + { + result = false; + } + else + { + foreach (CBrifGroupInfo cbrifGroupInfo in this.groups) + { + bool flag2 = cbrifGroupInfo.leaderid == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + list.Add(cbrifGroupInfo); + } + } + result = true; + } + return result; + } + + public void AddChat2Group(ChatInfo chatInfo) + { + bool flag = this.groups == null; + if (flag) + { + this.groups = new HashSet(); + } + bool flag2 = !this.ContainGroup(chatInfo.group.groupchatID); + if (flag2) + { + CBrifGroupInfo cbrifGroupInfo = new CBrifGroupInfo(); + cbrifGroupInfo.id = chatInfo.group.groupchatID; + cbrifGroupInfo.msgtime = chatInfo.mTime; + cbrifGroupInfo.name = chatInfo.group.groupchatName; + cbrifGroupInfo.memberCnt = chatInfo.group.rolecount; + cbrifGroupInfo.createtype = chatInfo.group.createtype; + cbrifGroupInfo.LoopID = XSingleton.singleton.XHash(cbrifGroupInfo.name + cbrifGroupInfo.id + cbrifGroupInfo.memberCnt); + cbrifGroupInfo.captain = (chatInfo.group.leaderRoleID == XSingleton.singleton.XPlayerData.RoleID); + cbrifGroupInfo.chat = chatInfo.mContent; + cbrifGroupInfo.rolename = chatInfo.mSenderName; + cbrifGroupInfo.leaderid = chatInfo.group.leaderRoleID; + cbrifGroupInfo.createTime = chatInfo.group.groupcreatetime; + bool flag3 = !this.groups.Add(cbrifGroupInfo); + if (flag3) + { + XSingleton.singleton.AddErrorLog("exits group id: ", chatInfo.group.groupchatID.ToString(), null, null, null, null); + } + DlgBase.singleton.ProcessGroupMsg(); + } + else + { + foreach (CBrifGroupInfo cbrifGroupInfo2 in this.groups) + { + bool flag4 = cbrifGroupInfo2.id == chatInfo.group.groupchatID; + if (flag4) + { + //HashSet.Enumerator enumerator; + //enumerator.Current.chat = chatInfo.mContent; + //enumerator.Current.msgtime = chatInfo.mTime; + //enumerator.Current.rolename = chatInfo.mSenderName; + //enumerator.Current.memberCnt = chatInfo.group.rolecount; + //enumerator.Current.LoopID = XSingleton.singleton.XHash(enumerator.Current.name + enumerator.Current.id + enumerator.Current.memberCnt); + cbrifGroupInfo2.chat = chatInfo.mContent; + cbrifGroupInfo2.msgtime = chatInfo.mTime; + cbrifGroupInfo2.rolename = chatInfo.mSenderName; + cbrifGroupInfo2.memberCnt = chatInfo.group.rolecount; + cbrifGroupInfo2.LoopID = XSingleton.singleton.XHash(cbrifGroupInfo2.name + cbrifGroupInfo2.id + cbrifGroupInfo2.memberCnt); + break; + } + } + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.Refresh(); + } + } + + private bool ContainGroup(ulong groupid) + { + bool flag = this.groups == null; + bool result; + if (flag) + { + result = false; + } + else + { + foreach (CBrifGroupInfo cbrifGroupInfo in this.groups) + { + bool flag2 = cbrifGroupInfo.id == groupid; + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public bool ReqCreateGroupChat(string groupname, uint type = 1u) + { + groupname = groupname.Trim(); + string pattern = "^[0-9a-fA-F]{6}$"; + string pattern2 = "^[0-9a-fA-F]{2}$"; + bool flag = string.IsNullOrEmpty(groupname) || groupname.Equals(XStringDefineProxy.GetString("CHAT_GROUP_DEF")); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_GROUP_LEFT"), "fece00"); + result = false; + } + else + { + bool flag2 = Regex.IsMatch(groupname, pattern) || Regex.IsMatch(groupname, pattern2) || groupname.Contains("[") || groupname.Contains("]"); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_INVALID"), "fece00"); + result = false; + } + else + { + RpcC2M_GroupChatCreate rpcC2M_GroupChatCreate = new RpcC2M_GroupChatCreate(); + rpcC2M_GroupChatCreate.oArg.groupchatName = groupname; + rpcC2M_GroupChatCreate.oArg.createtype = type; + XSingleton.singleton.Send(rpcC2M_GroupChatCreate); + result = true; + } + } + return result; + } + + public void ResCreateGroupChat(GroupChatCreateC2S arg, GroupChatCreateS2C res) + { + bool flag = this.SelectGroupHandler != null && this.SelectGroupHandler.IsVisible(); + if (flag) + { + this.SelectGroupHandler.SetupSelectGroup(res.groupchatID); + } + } + + public void ReqClearGroup() + { + RpcC2M_GroupChatClear rpc = new RpcC2M_GroupChatClear(); + XSingleton.singleton.Send(rpc); + } + + public void ReqGetGroupInfo(ulong groupid) + { + RpcC2M_GroupChatGetGroupInfo rpcC2M_GroupChatGetGroupInfo = new RpcC2M_GroupChatGetGroupInfo(); + rpcC2M_GroupChatGetGroupInfo.oArg.groupchatID = groupid; + XSingleton.singleton.Send(rpcC2M_GroupChatGetGroupInfo); + } + + public void ResGroupInfo(List playerlist) + { + bool flag = this.players == null; + if (flag) + { + this.players = new HashSet(); + } + else + { + this.players.Clear(); + } + int i = 0; + int count = playerlist.Count; + while (i < count) + { + GroupChatPlayerInfo groupChatPlayerInfo = playerlist[i]; + CGroupPlayerInfo cgroupPlayerInfo = new CGroupPlayerInfo(); + cgroupPlayerInfo.roleid = groupChatPlayerInfo.roleid; + cgroupPlayerInfo.rolename = groupChatPlayerInfo.rolename; + cgroupPlayerInfo.level = groupChatPlayerInfo.level; + cgroupPlayerInfo.ppt = groupChatPlayerInfo.fighting; + cgroupPlayerInfo.profession = groupChatPlayerInfo.profession; + cgroupPlayerInfo.degree = -1; + cgroupPlayerInfo.uid = groupChatPlayerInfo.uid; + cgroupPlayerInfo.guild = groupChatPlayerInfo.guild; + bool flag2 = !this.players.Add(cgroupPlayerInfo); + if (flag2) + { + XSingleton.singleton.AddErrorLog("exist player: ", cgroupPlayerInfo.roleid.ToString(), null, null, null, null); + } + i++; + } + List friendData = DlgBase.singleton.GetFriendData(); + int j = 0; + int count2 = friendData.Count; + while (j < count2) + { + bool flag3 = this.Exist(friendData[j].roleid); + if (!flag3) + { + CGroupPlayerInfo cgroupPlayerInfo2 = new CGroupPlayerInfo(); + cgroupPlayerInfo2.roleid = friendData[j].roleid; + cgroupPlayerInfo2.rolename = friendData[j].name; + cgroupPlayerInfo2.setid = friendData[j].setid; + cgroupPlayerInfo2.level = friendData[j].level; + cgroupPlayerInfo2.ppt = friendData[j].powerpoint; + cgroupPlayerInfo2.degree = (int)friendData[j].degreeAll; + cgroupPlayerInfo2.profession = friendData[j].profession; + cgroupPlayerInfo2.uid = friendData[j].uid; + cgroupPlayerInfo2.guild = friendData[j].guildname; + bool flag4 = !this.players.Add(cgroupPlayerInfo2); + if (flag4) + { + XSingleton.singleton.AddErrorLog("exist player: ", cgroupPlayerInfo2.roleid.ToString(), null, null, null, null); + } + } + j++; + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.SetCB(); + } + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.Refresh(); + } + } + + private bool Exist(ulong uid) + { + foreach (CGroupPlayerInfo cgroupPlayerInfo in this.players) + { + bool flag = cgroupPlayerInfo.roleid == uid; + if (flag) + { + return true; + } + } + return false; + } + + public void ReqChangePlayer(ulong groupid, List add, List remove) + { + RpcC2M_GroupChatManager rpcC2M_GroupChatManager = new RpcC2M_GroupChatManager(); + rpcC2M_GroupChatManager.oArg.groupchatID = groupid; + bool flag = add != null; + if (flag) + { + rpcC2M_GroupChatManager.oArg.addrolelist.Clear(); + int i = 0; + int count = add.Count; + while (i < count) + { + rpcC2M_GroupChatManager.oArg.addrolelist.Add(add[i]); + i++; + } + } + bool flag2 = remove != null; + if (flag2) + { + rpcC2M_GroupChatManager.oArg.subrolelist.Clear(); + int j = 0; + int count2 = remove.Count; + while (j < count2) + { + rpcC2M_GroupChatManager.oArg.subrolelist.Add(remove[j]); + j++; + } + } + XSingleton.singleton.Send(rpcC2M_GroupChatManager); + } + + public void ResChangePlayer(GroupChatManagerPtc res) + { + bool flag = this.players == null; + if (flag) + { + this.players = new HashSet(); + } + CGroupPlayerInfo cgroupPlayerInfo = null; + int i = 0; + int count = res.subrolelist.Count; + while (i < count) + { + bool flag2 = res.subrolelist[i] == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.ResQuitGroup(res.groupchatID); + return; + } + foreach (CGroupPlayerInfo cgroupPlayerInfo2 in this.players) + { + bool flag3 = cgroupPlayerInfo2.roleid == res.subrolelist[i]; + if (flag3) + { + //HashSet.Enumerator enumerator; + //cgroupPlayerInfo = enumerator.Current; + cgroupPlayerInfo = cgroupPlayerInfo2; + break; + } + } + bool flag4 = cgroupPlayerInfo != null; + if (flag4) + { + bool flag5 = DlgBase.singleton.IsMyFriend(cgroupPlayerInfo.roleid); + if (flag5) + { + cgroupPlayerInfo.degree = (int)DlgBase.singleton.GetFriendDegreeAll(cgroupPlayerInfo.roleid); + } + else + { + this.players.Remove(cgroupPlayerInfo); + } + } + i++; + } + int j = 0; + int count2 = res.addrolelist.Count; + while (j < count2) + { + GroupChatPlayerInfo groupChatPlayerInfo = res.addrolelist[j]; + this.TryRmOriginPlayer(groupChatPlayerInfo.roleid); + CGroupPlayerInfo cgroupPlayerInfo3 = new CGroupPlayerInfo(); + cgroupPlayerInfo3.roleid = groupChatPlayerInfo.roleid; + cgroupPlayerInfo3.rolename = groupChatPlayerInfo.rolename; + cgroupPlayerInfo3.level = groupChatPlayerInfo.level; + cgroupPlayerInfo3.guild = groupChatPlayerInfo.guild; + cgroupPlayerInfo3.uid = groupChatPlayerInfo.uid; + cgroupPlayerInfo3.degree = -1; + cgroupPlayerInfo3.ppt = groupChatPlayerInfo.fighting; + cgroupPlayerInfo3.profession = groupChatPlayerInfo.profession; + bool flag6 = !this.players.Add(cgroupPlayerInfo3); + if (flag6) + { + XSingleton.singleton.AddErrorLog("exist player: ", cgroupPlayerInfo3.roleid.ToString(), null, null, null, null); + } + j++; + } + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + DlgBase.singleton.Refresh(); + return; + } + } + + private void TryRmOriginPlayer(ulong roleid) + { + CGroupPlayerInfo cgroupPlayerInfo = null; + foreach (CGroupPlayerInfo cgroupPlayerInfo2 in this.players) + { + bool flag = cgroupPlayerInfo2.roleid == roleid; + if (flag) + { + cgroupPlayerInfo = cgroupPlayerInfo2; + break; + } + } + bool flag2 = cgroupPlayerInfo != null; + if (flag2) + { + this.players.Remove(cgroupPlayerInfo); + } + } + + public void ReqQuitGroup(ulong groupid) + { + RpcC2M_GroupChatQuit rpcC2M_GroupChatQuit = new RpcC2M_GroupChatQuit(); + rpcC2M_GroupChatQuit.oArg.groupchatID = groupid; + XSingleton.singleton.Send(rpcC2M_GroupChatQuit); + } + + public void ResQuitGroup(ulong groupid) + { + bool flag = this.groups == null; + if (!flag) + { + CBrifGroupInfo cbrifGroupInfo = null; + foreach (CBrifGroupInfo cbrifGroupInfo2 in this.groups) + { + bool flag2 = cbrifGroupInfo2.id == groupid; + if (flag2) + { + cbrifGroupInfo = cbrifGroupInfo2; + break; + } + } + bool flag3 = cbrifGroupInfo != null; + if (flag3) + { + this.groups.Remove(cbrifGroupInfo); + } + DlgBase.singleton.ProcessGroupMsg(); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetVisible(false, true); + } + } + } + + public void ResDismissGroup(ulong groupid, ulong roleid) + { + bool flag = this.groups != null; + if (flag) + { + bool flag2 = roleid == 0UL; + if (flag2) + { + } + CBrifGroupInfo cbrifGroupInfo = null; + foreach (CBrifGroupInfo cbrifGroupInfo2 in this.groups) + { + bool flag3 = cbrifGroupInfo2.id == groupid; + if (flag3) + { + cbrifGroupInfo = cbrifGroupInfo2; + break; + } + } + bool flag4 = cbrifGroupInfo != null; + if (flag4) + { + this.groups.Remove(cbrifGroupInfo); + } + } + DlgBase.singleton.ProcessGroupMsg(); + } + + public void SysnGroupChatIssueCount(GroupChatIssueCountNtf ntf) + { + this.m_curUseGroupCount = ntf.groupcount; + this.m_curUseMemberCount = ntf.rolecount; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(); + } + } + + public void SendGroupChatFindTeamInfoList(uint index = 0u) + { + XSingleton.singleton.AddGreenLog("SendGroupChatFindTeamInfoList", null, null, null, null, null); + RpcC2M_GroupChatFindTeamInfoList rpcC2M_GroupChatFindTeamInfoList = new RpcC2M_GroupChatFindTeamInfoList(); + rpcC2M_GroupChatFindTeamInfoList.oArg.type = index; + XSingleton.singleton.Send(rpcC2M_GroupChatFindTeamInfoList); + } + + public void ReceiveGroupChatFindTeamInfoList(GroupChatFindTeamInfoListS2C res) + { + XSingleton.singleton.AddGreenLog("ReceiveGroupChatFindTeamInfoList", null, null, null, null, null); + this.SetupMemberList(ref this.m_recruitGroups); + int i = 0; + int count = res.teamlist.Count; + while (i < count) + { + GroupMember groupMember = GroupMember.Get(); + groupMember.Setup(res.teamlist[i]); + this.m_recruitGroups.Add(groupMember); + i++; + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(); + } + } + + public void SendGroupChatFindRoleInfoList(uint index = 0u) + { + XSingleton.singleton.AddGreenLog("SendGroupChatFindRoleInfoList", null, null, null, null, null); + RpcC2M_GroupChatFindRoleInfoList rpcC2M_GroupChatFindRoleInfoList = new RpcC2M_GroupChatFindRoleInfoList(); + rpcC2M_GroupChatFindRoleInfoList.oArg.type = index; + XSingleton.singleton.Send(rpcC2M_GroupChatFindRoleInfoList); + } + + public void ReceiveGroupChatFindRoleInfoList(GroupChatFindRoleInfoListS2C res) + { + XSingleton.singleton.AddGreenLog("ReceiveGroupChatFindRoleInfoList", null, null, null, null, null); + this.SetupMemberList(ref this.m_recruitMembers); + int i = 0; + int count = res.rolelist.Count; + while (i < count) + { + GroupMember groupMember = GroupMember.Get(); + groupMember.Setup(res.rolelist[i]); + this.m_recruitMembers.Add(groupMember); + i++; + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(); + } + } + + public bool TryGetGroupMember(ulong issueIndex, out GroupMember member) + { + member = null; + bool flag = this.m_recruitMembers == null || issueIndex == 0UL; + bool result; + if (flag) + { + result = false; + } + else + { + int i = 0; + int count = this.m_recruitMembers.Count; + while (i < count) + { + bool flag2 = this.m_recruitMembers[i].issueIndex == issueIndex; + if (flag2) + { + member = this.m_recruitMembers[i]; + return true; + } + i++; + } + result = false; + } + return result; + } + + public void SendGroupChatPlayerInfo(GroupChatFindRoleInfo info) + { + XSingleton.singleton.AddGreenLog("SendGroupChatPlayerInfo", null, null, null, null, null); + RpcC2M_GroupChatPlayerIssueInfo rpcC2M_GroupChatPlayerIssueInfo = new RpcC2M_GroupChatPlayerIssueInfo(); + rpcC2M_GroupChatPlayerIssueInfo.oArg.roleinfo = info; + XSingleton.singleton.Send(rpcC2M_GroupChatPlayerIssueInfo); + } + + public void ReceiveGroupChatPlayerInfo(GroupChatPlayerIssueInfoS2C s2c) + { + XSingleton.singleton.AddGreenLog("ReceiveGroupChatPlayerInfo", null, null, null, null, null); + bool flag = s2c.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(s2c.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_SUCCESS, "fece00"); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.ReSelect(); + } + } + } + + public void SendGroupChatLeaderInfo(GroupChatFindTeamInfo info) + { + RpcC2M_GroupChatLeaderIssueInfo rpcC2M_GroupChatLeaderIssueInfo = new RpcC2M_GroupChatLeaderIssueInfo(); + rpcC2M_GroupChatLeaderIssueInfo.oArg.teaminfo = info; + XSingleton.singleton.Send(rpcC2M_GroupChatLeaderIssueInfo); + } + + public void ReceiveGroupChatLeaderInfo(GroupChatLeaderIssueInfoS2C s2c) + { + bool flag = s2c.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(s2c.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_SUCCESS, "fece00"); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.ReSelect(); + } + } + } + + public void SendGroupChatPlayerApply(ulong index) + { + XSingleton.singleton.AddGreenLog("SendGroupChatPlayerApply", null, null, null, null, null); + RpcC2M_GroupChatPlayerApply rpcC2M_GroupChatPlayerApply = new RpcC2M_GroupChatPlayerApply(); + rpcC2M_GroupChatPlayerApply.oArg.issueIndex = index; + XSingleton.singleton.Send(rpcC2M_GroupChatPlayerApply); + } + + public void ReceiveGroupChatPlayerApply(GroupChatPlayerApplyC2S arg, GroupChatPlayerApplyS2C s2c) + { + XSingleton.singleton.AddGreenLog("ReceiveGroupChatPlayerApply", null, null, null, null, null); + bool flag = s2c.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + this.SynGroupState(arg.issueIndex, 0u); + XSingleton.singleton.ShowSystemTip(s2c.errorcode, "fece00"); + } + else + { + this.SynGroupState(arg.issueIndex, 1u); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.Refresh(); + } + } + + public void SendZMLeaderAddRole(ulong index, ulong groupID) + { + GroupMember groupMember; + bool flag = this.TryGetGroupMember(index, out groupMember); + if (flag) + { + RpcC2M_GroupChatLeaderAddRole rpcC2M_GroupChatLeaderAddRole = new RpcC2M_GroupChatLeaderAddRole(); + rpcC2M_GroupChatLeaderAddRole.oArg.roleIssueIndex = index; + rpcC2M_GroupChatLeaderAddRole.oArg.groupchatID = groupID; + rpcC2M_GroupChatLeaderAddRole.oArg.roleid = groupMember.userID; + XSingleton.singleton.Send(rpcC2M_GroupChatLeaderAddRole); + } + } + + public void RecevieZMLeaderAddRole(GroupChatLeaderAddRoleC2S c2s, GroupChatLeaderAddRoleS2C s2c) + { + bool flag = s2c.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(s2c.errorcode, "fece00"); + } + else + { + bool flag2 = this.m_recruitGroups == null; + if (!flag2) + { + int i = 0; + int count = this.m_recruitMembers.Count; + while (i < count) + { + bool flag3 = this.m_recruitMembers[i].issueIndex == c2s.roleIssueIndex; + if (flag3) + { + this.m_recruitMembers[i].Release(); + this.m_recruitMembers.RemoveAt(i); + break; + } + i++; + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.Refresh(); + } + } + } + } + + private void SynGroupState(ulong index, uint state = 1u) + { + bool flag = this.m_recruitGroups != null; + if (flag) + { + int i = 0; + int count = this.m_recruitGroups.Count; + while (i < count) + { + bool flag2 = this.m_recruitGroups[i].issueIndex == index; + if (flag2) + { + this.m_recruitGroups[i].state = state; + break; + } + i++; + } + } + } + + public void SendGroupChatLeaderReviewList() + { + XSingleton.singleton.AddGreenLog("SendGroupChatLeaderReviewList", null, null, null, null, null); + RpcC2M_GroupChatLeaderReviewList rpc = new RpcC2M_GroupChatLeaderReviewList(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveGroupChatLeaderReviewList(GroupChatLeaderReviewListS2C s2c) + { + XSingleton.singleton.AddGreenLog("ReceiveGroupChatLeaderReviewList", null, null, null, null, null); + bool flag = s2c.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(s2c.errorcode, "fece00"); + } + else + { + this.SetupMemberList(ref this.m_leaderReviewList); + int i = 0; + int count = s2c.roleinfolist.Count; + while (i < count) + { + GroupMember groupMember = GroupMember.Get(); + groupMember.Setup(s2c.roleinfolist[i]); + this.m_leaderReviewList.Add(groupMember); + i++; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshData(); + } + } + } + + public void SendGroupChatLeaderReview(int index, bool isAgree) + { + bool flag = this.m_leaderReviewList != null && index < this.m_leaderReviewList.Count; + if (flag) + { + RpcC2M_GroupChatLeaderReview rpcC2M_GroupChatLeaderReview = new RpcC2M_GroupChatLeaderReview(); + GroupMember groupMember = this.m_leaderReviewList[index]; + rpcC2M_GroupChatLeaderReview.oArg.groupchatID = groupMember.groupID; + rpcC2M_GroupChatLeaderReview.oArg.issueIndex = groupMember.issueIndex; + rpcC2M_GroupChatLeaderReview.oArg.roleid = groupMember.userID; + rpcC2M_GroupChatLeaderReview.oArg.isAgree = isAgree; + XSingleton.singleton.Send(rpcC2M_GroupChatLeaderReview); + } + } + + public void ReceiveGroupChatLeaderReview(GroupChatLeaderReviewC2S arg, GroupChatLeaderReviewS2C s2c) + { + bool flag = s2c.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(s2c.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_SUCCESS, "fece00"); + bool flag2 = this.m_leaderReviewList != null && this.m_leaderReviewList.Count > 0; + if (flag2) + { + int i = 0; + int count = this.m_leaderReviewList.Count; + while (i < count) + { + bool flag3 = this.m_leaderReviewList[i].issueIndex == arg.issueIndex; + if (flag3) + { + this.m_leaderReviewList[i].Release(); + this.m_leaderReviewList.RemoveAt(i); + break; + } + i++; + } + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshData(); + } + } + } + + private void SetupMemberList(ref List memberList) + { + bool flag = memberList == null; + if (flag) + { + memberList = new List(); + } + bool flag2 = memberList.Count > 0; + if (flag2) + { + int i = 0; + int count = memberList.Count; + while (i < count) + { + memberList[i].Release(); + i++; + } + memberList.Clear(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GroupChatDocument.cs.meta b/Client/Assets/Scripts/XMainClient/GroupChatDocument.cs.meta new file mode 100644 index 00000000..fa85c022 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GroupChatDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b124a7dae2b1c9d4fa0293e0a2b978f8 +timeCreated: 1611404355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GroupMember.cs b/Client/Assets/Scripts/XMainClient/GroupMember.cs new file mode 100644 index 00000000..20b44412 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GroupMember.cs @@ -0,0 +1,105 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class GroupMember : IComparable + { + public int profession = 1; + + public string userName; + + public uint stageID; + + public ulong userID; + + public ulong groupID; + + public string groupName; + + public uint fightValue; + + public uint type; + + public uint timeIndex; + + public uint state; + + public uint createTime; + + public bool isselfingroup = false; + + public ulong issueIndex = 0UL; + + public static TitleSelector sortSeletor = TitleSelector.Nomal; + + public static int dir = -1; + + public void Setup(GroupChatFindRoleInfo info) + { + this.userID = info.roleid; + this.profession = (int)info.roleprofession; + this.userName = info.rolename; + this.groupID = info.groupchatID; + this.groupName = info.groupchatName; + this.stageID = info.stageID; + this.type = info.type; + this.fightValue = info.fighting; + this.timeIndex = info.time; + this.state = info.state; + this.createTime = info.issuetime; + this.issueIndex = info.issueIndex; + this.isselfingroup = false; + } + + public void Setup(GroupChatFindTeamInfo info) + { + this.userID = info.leaderroleid; + this.userName = ""; + this.profession = 1; + this.groupID = info.groupchatID; + this.groupName = info.groupchatName; + this.stageID = info.stageID; + this.type = info.type; + this.fightValue = info.fighting; + this.timeIndex = info.time; + this.state = info.state; + this.createTime = info.issuetime; + this.issueIndex = info.issueIndex; + this.isselfingroup = info.isselfingroup; + } + + public void Release() + { + GroupMemberPool.Release(this); + } + + public static GroupMember Get() + { + return GroupMemberPool.Get(); + } + + public int CompareTo(GroupMember other) + { + int num = 0; + switch (GroupMember.sortSeletor) + { + case TitleSelector.Stage: + num = this.stageID.CompareTo(other.stageID); + break; + case TitleSelector.Fight: + num = this.fightValue.CompareTo(other.fightValue); + break; + case TitleSelector.Time: + num = this.timeIndex.CompareTo(other.timeIndex); + break; + } + bool flag = num == 0; + if (flag) + { + num = this.createTime.CompareTo(other.createTime); + } + return num * GroupMember.dir; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GroupMember.cs.meta b/Client/Assets/Scripts/XMainClient/GroupMember.cs.meta new file mode 100644 index 00000000..dccdfade --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GroupMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 678d432922c02b140a37185df19b86c0 +timeCreated: 1611403858 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GroupMemberDisplay.cs b/Client/Assets/Scripts/XMainClient/GroupMemberDisplay.cs new file mode 100644 index 00000000..3f219b6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GroupMemberDisplay.cs @@ -0,0 +1,161 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GroupMemberDisplay + { + private IXUILabel _UserNameLabel; + + private IXUILabel _StageNameLabel; + + private IXUILabel _GroupNameLabel; + + private IXUILabel _FightLabel; + + private IXUILabel _TypeLabel; + + private IXUILabel _TimeLabel; + + private IXUISprite _ProfessionSprite; + + private IXUISprite _PortraitSprite; + + private string timeFormat = "{0} - {1}"; + + public void Init(Transform t) + { + this.Setup(t, "Name", ref this._UserNameLabel); + this.Setup(t, "DungeonName", ref this._StageNameLabel); + this.Setup(t, "GroupName", ref this._GroupNameLabel); + this.Setup(t, "Fight", ref this._FightLabel); + this.Setup(t, "Job", ref this._TypeLabel); + this.Setup(t, "Time", ref this._TimeLabel); + this.Setup(t, "Profession", ref this._ProfessionSprite); + this.Setup(t, "Portrait", ref this._PortraitSprite); + } + + private void Setup(Transform t, string targetName, ref IXUILabel label) + { + Transform transform = t.Find(targetName); + bool flag = transform != null; + if (flag) + { + label = (transform.GetComponent("XUILabel") as IXUILabel); + } + else + { + label = null; + } + } + + private void Setup(Transform t, string targetName, ref IXUISprite sprite) + { + Transform transform = t.Find(targetName); + bool flag = transform != null; + if (flag) + { + sprite = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + sprite = null; + } + } + + public void Release() + { + this._UserNameLabel = null; + this._StageNameLabel = null; + this._GroupNameLabel = null; + this._FightLabel = null; + this._TypeLabel = null; + this._TimeLabel = null; + this._ProfessionSprite = null; + this._PortraitSprite = null; + } + + public void Setup(GroupMember member) + { + bool flag = this._ProfessionSprite != null; + if (flag) + { + this._ProfessionSprite.SetSprite(XSingleton.singleton.GetProfIcon(member.profession)); + } + bool flag2 = this._PortraitSprite != null; + if (flag2) + { + this._PortraitSprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2(member.profession)); + this._PortraitSprite.ID = member.userID; + this._PortraitSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPlayerClick)); + } + bool flag3 = this._UserNameLabel != null; + if (flag3) + { + this._UserNameLabel.SetText(member.userName); + } + bool flag4 = this._StageNameLabel != null && member.stageID > 0u; + if (flag4) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID((int)member.stageID); + this._StageNameLabel.SetText((expeditionDataByID != null) ? XExpeditionDocument.GetFullName(expeditionDataByID) : ""); + } + bool flag5 = this._GroupNameLabel != null; + if (flag5) + { + this._GroupNameLabel.SetText(string.IsNullOrEmpty(member.groupName) ? "" : member.groupName); + } + bool flag6 = this._FightLabel != null; + if (flag6) + { + this._FightLabel.SetText(member.fightValue.ToString()); + } + bool flag7 = this._TypeLabel != null; + if (flag7) + { + string key = XSingleton.singleton.StringCombine("GroupMember_Type", member.type.ToString()); + this._TypeLabel.SetText(XStringDefineProxy.GetString(key)); + } + bool flag8 = this._TimeLabel != null; + if (flag8) + { + int @int = XSingleton.singleton.GetInt("RecruitPublishTimeLimit"); + int num = 86400 / @int; + bool flag9 = member.timeIndex == 0u; + string text; + if (flag9) + { + text = string.Format(this.timeFormat, "0:00", XSingleton.singleton.TimeFormatString((int)((ulong)member.timeIndex + (ulong)((long)num)), 0, 3, 3, false, true)); + } + else + { + text = string.Format(this.timeFormat, XSingleton.singleton.TimeFormatString((int)member.timeIndex, 0, 3, 3, false, true), XSingleton.singleton.TimeFormatString((int)((ulong)member.timeIndex + (ulong)((long)num)), 0, 3, 3, false, true)); + } + this._TimeLabel.SetText(text); + } + } + + private void OnPlayerClick(IXUISprite label) + { + ulong id = label.ID; + bool flag = id == XSingleton.singleton.XPlayerData.RoleID || id == 0UL; + if (!flag) + { + bool flag2 = this._UserNameLabel == null; + if (!flag2) + { + string text = this._UserNameLabel.GetText(); + DlgBase.singleton.SetPlayerInfo(id, text, new List(), 0u, 1u); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.ShowTab(Player_Info.Equip, 0UL, 0UL); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GroupMemberDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/GroupMemberDisplay.cs.meta new file mode 100644 index 00000000..79a6c7f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GroupMemberDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d707323dbcfc8f14f8447cd88cb564f6 +timeCreated: 1611404634 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GroupMemberPool.cs b/Client/Assets/Scripts/XMainClient/GroupMemberPool.cs new file mode 100644 index 00000000..641a9c18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GroupMemberPool.cs @@ -0,0 +1,25 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class GroupMemberPool + { + private static ObjectPool members = new ObjectPool(new ObjectPool.CreateObj(GroupMemberPool.Create), null, null); + + public static GroupMember Create() + { + return new GroupMember(); + } + + public static GroupMember Get() + { + return GroupMemberPool.members.Get(); + } + + public static void Release(GroupMember group) + { + GroupMemberPool.members.Release(group); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GroupMemberPool.cs.meta b/Client/Assets/Scripts/XMainClient/GroupMemberPool.cs.meta new file mode 100644 index 00000000..20fe1046 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GroupMemberPool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4b00ba764f8da443ab98d4df2539eae +timeCreated: 1611404739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GrowStage.cs b/Client/Assets/Scripts/XMainClient/GrowStage.cs new file mode 100644 index 00000000..214164f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GrowStage.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum GrowStage + { + None, + First, + Second, + Third, + Ripe + } +} diff --git a/Client/Assets/Scripts/XMainClient/GrowStage.cs.meta b/Client/Assets/Scripts/XMainClient/GrowStage.cs.meta new file mode 100644 index 00000000..c3788000 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GrowStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e35e88c1a39da314fb1f8d9246596cdf +timeCreated: 1611404732 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild.meta b/Client/Assets/Scripts/XMainClient/Guild.meta new file mode 100644 index 00000000..cb102de5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 2a69dc6748c37f74fb8e302fe4b910ee +folderAsset: yes +timeCreated: 1611548936 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildApplyInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildApplyInfo.cs new file mode 100644 index 00000000..3154f595 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildApplyInfo.cs @@ -0,0 +1,8 @@ +using System; + +namespace XMainClient +{ + internal class XGuildApplyInfo : XGuildMemberBasicInfo + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildApplyInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildApplyInfo.cs.meta new file mode 100644 index 00000000..27776075 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildApplyInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc7956177ba98d64c8321bc918849442 +timeCreated: 1611404446 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildApproveDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildApproveDocument.cs new file mode 100644 index 00000000..f162fb87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildApproveDocument.cs @@ -0,0 +1,183 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildApproveDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildApproveDocument.uuID; + } + } + + public XGuildApproveView GuildApproveView { get; set; } + + public List ApproveList + { + get + { + return this.m_ApproveList; + } + } + + public GuildApproveSetting ApproveSetting + { + get + { + return this._ApproveSetting; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildApproveDocument"); + + private List m_ApproveList = new List(); + + private GuildApproveSetting _ApproveSetting = new GuildApproveSetting(); + + public void ReqApproveList() + { + RpcC2M_FetchGuildApp rpc = new RpcC2M_FetchGuildApp(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetApproveList(FetchGAPPRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + int num = oRes.roleid.Count - this.m_ApproveList.Count; + bool flag2 = num > 0; + if (flag2) + { + for (int i = 0; i < num; i++) + { + XGuildApplyInfo item = new XGuildApplyInfo(); + this.m_ApproveList.Add(item); + } + } + else + { + this.m_ApproveList.RemoveRange(this.m_ApproveList.Count + num, -num); + } + for (int j = 0; j < oRes.roleid.Count; j++) + { + XGuildApplyInfo xguildApplyInfo = this.m_ApproveList[j]; + xguildApplyInfo.uid = oRes.roleid[j]; + xguildApplyInfo.name = oRes.rolename[j]; + xguildApplyInfo.level = oRes.level[j]; + xguildApplyInfo.time = (int)oRes.time[j]; + xguildApplyInfo.ppt = oRes.ppt[j]; + xguildApplyInfo.profession = XFastEnumIntEqualityComparer.ToInt(oRes.profession[j]); + } + bool flag3 = this.GuildApproveView != null && this.GuildApproveView.IsVisible(); + if (flag3) + { + this.GuildApproveView.RefreshList(true); + } + } + } + + public void ReqApprove(bool bApprove, int index) + { + bool flag = index < 0 || index >= this.m_ApproveList.Count; + if (!flag) + { + RpcC2M_GuildApprovalNew rpcC2M_GuildApprovalNew = new RpcC2M_GuildApprovalNew(); + rpcC2M_GuildApprovalNew.oArg.roleid = this.m_ApproveList[index].uid; + rpcC2M_GuildApprovalNew.oArg.type = (bApprove ? 0 : 1); + XSingleton.singleton.Send(rpcC2M_GuildApprovalNew); + } + } + + public void ReqRejectAll() + { + RpcC2M_GuildApprovalNew rpcC2M_GuildApprovalNew = new RpcC2M_GuildApprovalNew(); + rpcC2M_GuildApprovalNew.oArg.type = 2; + XSingleton.singleton.Send(rpcC2M_GuildApprovalNew); + } + + public void OnApprove(GuildApprovalArg oArg, GuildApprovalRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + bool flag2 = oArg.type == 2; + if (flag2) + { + this.m_ApproveList.Clear(); + } + else + { + for (int i = 0; i < this.m_ApproveList.Count; i++) + { + bool flag3 = this.m_ApproveList[i].uid == oArg.roleid; + if (flag3) + { + this.m_ApproveList.RemoveAt(i); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag4 = oArg.type == 0; + if (flag4) + { + specificDocument.BasicData.memberCount += 1u; + } + break; + } + } + } + bool flag5 = this.GuildApproveView == null || !this.GuildApproveView.IsVisible(); + if (!flag5) + { + this.GuildApproveView.RefreshMember(); + this.GuildApproveView.RefreshList(oArg.type == 2); + } + } + } + + public void ReqSetApprove(GuildApproveSetting setting) + { + RpcC2M_ChangeGuildSettingNew rpcC2M_ChangeGuildSettingNew = new RpcC2M_ChangeGuildSettingNew(); + rpcC2M_ChangeGuildSettingNew.oArg.needapproval = (setting.autoApprove ? 0 : 1); + rpcC2M_ChangeGuildSettingNew.oArg.powerpoint = setting.PPT; + XSingleton.singleton.Send(rpcC2M_ChangeGuildSettingNew); + } + + public void OnSetApprove(GuildApproveSetting setting) + { + this._ApproveSetting = setting; + bool flag = this.GuildApproveView != null && this.GuildApproveView.IsVisible(); + if (flag) + { + this.GuildApproveView.RefreshSetting(); + } + } + + public void OnGuildBrief(GuildBriefRes oRes) + { + this._ApproveSetting.autoApprove = (oRes.needApproval == 0); + this._ApproveSetting.PPT = (int)oRes.recuritppt; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.GuildApproveView != null && this.GuildApproveView.IsVisible(); + if (flag) + { + this.ReqApproveList(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildApproveDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildApproveDocument.cs.meta new file mode 100644 index 00000000..fb244acc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildApproveDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13f78b3a83b15d94dac1f27bcc1b74d8 +timeCreated: 1611403251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaBattleDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaBattleDocument.cs new file mode 100644 index 00000000..3bb2f2b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaBattleDocument.cs @@ -0,0 +1,1157 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildArenaBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildArenaBattleDocument.uuID; + } + } + + public GVGBattleInfo BlueInfo + { + get + { + return this._blueInfo; + } + } + + public GVGBattleInfo RedInfo + { + get + { + return this._redInfo; + } + } + + public double InspireCDTime + { + get + { + return this.m_InspireCDTime; + } + } + + private IGVGBattlePrepare CurView + { + get + { + bool flag = this.Pattern == GuildArenaBattlePattern.GMF || this.Pattern == GuildArenaBattlePattern.GPR; + IGVGBattlePrepare singleton; + if (flag) + { + singleton = DlgBase.singleton; + } + else + { + singleton = DlgBase.singleton; + } + return singleton; + } + } + + private bool IsGVG + { + get + { + SceneType sceneType = XSingleton.singleton.SceneType; + return sceneType == SceneType.SCENE_GPR || sceneType == SceneType.SCENE_GMF || sceneType == SceneType.SCENE_GCF; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildArenaBattleDocument"); + + private GVGBattleInfo _blueInfo = new GVGBattleInfo(); + + private GVGBattleInfo _redInfo = new GVGBattleInfo(); + + public double m_InspireCDTime = 0.0; + + public uint ReviveItemID = 0u; + + public uint ReviveItemNumber = 0u; + + public GuildArenaBattlePattern Pattern = GuildArenaBattlePattern.GPR; + + public XGuildArenaBattleDocument.ReadyType MyReadyType = XGuildArenaBattleDocument.ReadyType.Observer; + + public GuildMatchFightState MyFightState = GuildMatchFightState.GUILD_MF_NONE; + + public GmfRoleDatas mGmfRoleDatas = null; + + public int GMFGroupBlueMatchPoint = 0; + + public int GMFGroupRedMatchPoint = 0; + + public XGuildArenaBattleDocument.BattleEndData blueBattleEndData = new XGuildArenaBattleDocument.BattleEndData(); + + public XGuildArenaBattleDocument.BattleEndData redBattleEndData = new XGuildArenaBattleDocument.BattleEndData(); + + public XGuildArenaBattleDocument.GuildArenaSection mArenaSection; + + public GVGCombatInfo blueCombatInfo = new GVGCombatInfo(); + + public GVGCombatInfo redCombatInfo = new GVGCombatInfo(); + + public XGuildArenaBattleDocument.BattleEndData blueAllFightEnd = new XGuildArenaBattleDocument.BattleEndData(); + + public XGuildArenaBattleDocument.BattleEndData redAllFightEnd = new XGuildArenaBattleDocument.BattleEndData(); + + public uint _kicked_token = 0u; + + public bool bCantUpForKicked = false; + + protected internal XFx fxEncourageButton; + + protected internal XFx fxEncourageProgressNum; + + protected internal XFx fxEncourageProgressAdd; + + public GVGDuelResult BlueDuelResult = new GVGDuelResult(); + + public GVGDuelResult RedDuelResult = new GVGDuelResult(); + + public uint Round = 0u; + + public bool InBattleGroup = false; + + public enum GuildArenaSection + { + Prepare, + Battle, + Result + } + + public enum ReadyType + { + Ready, + NoReady, + Observer + } + + public class BattleEndData + { + public bool isWin = true; + + public GmfRoleBrief Role = null; + + public GmfGuildBrief Guild = null; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + private ulong GetMyGuildID() + { + return XDocuments.GetSpecificDocument(XGuildDocument.uuID).BasicData.uid; + } + + public int GetBattleSignNumber() + { + SceneType sceneType = XSingleton.singleton.SceneType; + int result = 0; + bool flag = sceneType == SceneType.SCENE_GPR || sceneType == SceneType.SCENE_GCF; + if (flag) + { + result = XSingleton.singleton.GetInt("GuildArenaBattleGpr"); + } + else + { + bool flag2 = sceneType == SceneType.SCENE_GMF; + if (flag2) + { + result = XSingleton.singleton.GetInt("GuildArenaBattleNumber"); + } + } + return result; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool isGVG = this.IsGVG; + if (isGVG) + { + this.EnterGVG(); + } + } + + public override void OnLeaveScene() + { + bool isGVG = this.IsGVG; + if (isGVG) + { + this.LeaveGVG(); + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + this.InspireUpdate(fDeltaT); + } + + public void OnUpdateGuildArenaBattle(GmfRoleDatas data) + { + XSingleton.singleton.AddGreenLog("OnUpdateGuildArenaBattle", data.halfrole11.inspire.ToString(), " ", data.halfrole22.inspire.ToString(), null, null); + this.mGmfRoleDatas = data; + this.MyFightState = GuildMatchFightState.GUILD_MF_NONE; + this.MyReadyType = XGuildArenaBattleDocument.ReadyType.Observer; + ulong myGuildID = this.GetMyGuildID(); + bool flag = data.halfrole11.guildb.guildid == myGuildID; + if (flag) + { + this.InBattleGroup = true; + this._blueInfo.Convert(data.halfrole11); + this._redInfo.Convert(data.halfrole22); + this.CheckRoleState(this._blueInfo.Group, XSingleton.singleton.XPlayerData.RoleID, ref this.MyFightState, ref this.MyReadyType); + } + else + { + bool flag2 = data.halfrole22.guildb.guildid == myGuildID; + if (flag2) + { + this.InBattleGroup = true; + this._blueInfo.Convert(data.halfrole22); + this._redInfo.Convert(data.halfrole11); + this.CheckRoleState(this._blueInfo.Group, XSingleton.singleton.XPlayerData.RoleID, ref this.MyFightState, ref this.MyReadyType); + } + else + { + this.InBattleGroup = false; + this._blueInfo.Convert(data.halfrole11); + this._redInfo.Convert(data.halfrole22); + } + } + bool flag3 = this.IsGMF(); + if (flag3) + { + this.MatchPoint(); + } + bool flag4 = this.CurView.IsVisible(); + if (flag4) + { + this.CurView.ReFreshGroup(); + } + } + + private void CheckRoleState(List roles, ulong roleID, ref GuildMatchFightState state, ref XGuildArenaBattleDocument.ReadyType type) + { + bool flag = roles == null; + if (!flag) + { + type = XGuildArenaBattleDocument.ReadyType.NoReady; + int i = 0; + int count = roles.Count; + while (i < count) + { + bool flag2 = roles[i].roleID == roleID; + if (flag2) + { + state = roles[i].state; + type = XGuildArenaBattleDocument.ReadyType.Ready; + break; + } + i++; + } + } + } + + private void SpectateSpecial(GmfRoleDatas data) + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag = specificDocument.BlueSaveID == 0UL || specificDocument.RedSaveID == 0UL; + if (flag) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.SpectateSpecial ", specificDocument.BlueSaveID.ToString(), " <-> ", specificDocument.RedSaveID.ToString(), null, null, XDebugColor.XDebug_None); + } + else + { + bool flag2 = specificDocument.BlueSaveID == data.halfrole11.guildb.guildid; + if (flag2) + { + this._blueInfo.Convert(data.halfrole11); + this._redInfo.Convert(data.halfrole22); + this.MyReadyType = XGuildArenaBattleDocument.ReadyType.NoReady; + foreach (GmfRole gmfRole in this._blueInfo.Group) + { + bool flag3 = gmfRole.roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + this.MyReadyType = XGuildArenaBattleDocument.ReadyType.Ready; + this.MyFightState = gmfRole.state; + break; + } + } + } + else + { + bool flag4 = specificDocument.BlueSaveID == data.halfrole22.guildb.guildid; + if (flag4) + { + this._blueInfo.Convert(data.halfrole22); + this._redInfo.Convert(data.halfrole11); + this.MyReadyType = XGuildArenaBattleDocument.ReadyType.NoReady; + foreach (GmfRole gmfRole2 in this._blueInfo.Group) + { + bool flag5 = gmfRole2.roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + this.MyReadyType = XGuildArenaBattleDocument.ReadyType.Ready; + this.MyFightState = gmfRole2.state; + break; + } + } + } + else + { + this._blueInfo.Convert(data.halfrole11); + this._redInfo.Convert(data.halfrole22); + this.MyReadyType = XGuildArenaBattleDocument.ReadyType.Observer; + } + } + } + } + } + + private void MatchPoint() + { + int num = 0; + int num2 = 0; + foreach (GmfRole gmfRole in this._blueInfo.Group) + { + bool flag = gmfRole.roleID == 0UL; + if (!flag) + { + GuildMatchFightState state = gmfRole.state; + if (state == GuildMatchFightState.GUILD_MF_WAITING || state == GuildMatchFightState.GUILD_MF_FIGHTING) + { + num++; + } + } + } + foreach (GmfRole gmfRole2 in this._redInfo.Group) + { + bool flag2 = gmfRole2.roleID == 0UL; + if (!flag2) + { + GuildMatchFightState state2 = gmfRole2.state; + if (state2 == GuildMatchFightState.GUILD_MF_WAITING || state2 == GuildMatchFightState.GUILD_MF_FIGHTING) + { + num2++; + } + } + } + this.GMFGroupBlueMatchPoint = num; + this.GMFGroupRedMatchPoint = num2; + } + + public void OnUpdateBattleEnd(GmfOneBattleEnd data) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnUpdateBattleEnd ", data.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = !this.IsGMF(); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag3 = data.winguild.guildid == XDocuments.GetSpecificDocument(XGuildDocument.uuID).BasicData.uid; + if (flag3) + { + this.blueBattleEndData.isWin = true; + this.redBattleEndData.isWin = false; + this.blueBattleEndData.Role = data.winrole; + this.redBattleEndData.Role = data.loselrole; + this.blueBattleEndData.Guild = data.winguild; + this.redBattleEndData.Guild = data.loseguild; + } + else + { + bool flag4 = data.loseguild.guildid == XDocuments.GetSpecificDocument(XGuildDocument.uuID).BasicData.uid; + if (flag4) + { + this.blueBattleEndData.isWin = false; + this.redBattleEndData.isWin = true; + this.blueBattleEndData.Role = data.loselrole; + this.redBattleEndData.Role = data.winrole; + this.blueBattleEndData.Guild = data.loseguild; + this.redBattleEndData.Guild = data.winguild; + } + else + { + this.blueBattleEndData.isWin = true; + this.redBattleEndData.isWin = false; + this.blueBattleEndData.Role = data.winrole; + this.redBattleEndData.Role = data.loselrole; + this.blueBattleEndData.Guild = data.winguild; + this.redBattleEndData.Guild = data.loseguild; + } + } + ulong roleID = XSingleton.singleton.XPlayerData.RoleID; + bool flag5 = roleID == this.blueBattleEndData.Role.roleid; + bool flag6 = roleID == this.redBattleEndData.Role.roleid; + bool flag7 = flag5; + if (flag7) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.GmfOneBattleEnd Killer", null, null, null, null, null, XDebugColor.XDebug_None); + } + bool flag8 = flag6; + if (flag8) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.GmfOneBattleEnd Deader", null, null, null, null, null, XDebugColor.XDebug_None); + } + string smallResult = string.Empty; + switch (data.reason) + { + case GMFFailReason.GMF_FAIL_NONE: + case GMFFailReason.GMF_FAIL_DIE: + DlgBase.singleton.SetSmallResult(""); + break; + case GMFFailReason.GMF_FAIL_TIMEOVER: + smallResult = string.Format(XStringDefineProxy.GetString("GUILD_ARENA_OVERTIME_WINER_PERSONAL"), data.winrole.rolename); + DlgBase.singleton.SetSmallResult(smallResult); + break; + case GMFFailReason.GMF_FAIL_QUIT: + smallResult = string.Format(XStringDefineProxy.GetString("GUILD_ARENA_THEY_QUITE_PERSONAL"), data.loselrole.rolename); + DlgBase.singleton.SetSmallResult(smallResult); + break; + case GMFFailReason.GMF_FAIL_REFRESE: + DlgBase.singleton.SetSmallResult(""); + break; + default: + DlgBase.singleton.SetSmallResult(""); + break; + } + } + } + + public void ReceiveGuildCombatNotify(GmfGuildCombatPara param) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.ReceiveGuildCombatNotify ", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = param.guildcombat11 == null || param.guildcombat22 == null; + if (!flag) + { + ulong myGuildID = this.GetMyGuildID(); + bool flag2 = param.guildcombat11.gmfguild.guildid == myGuildID; + if (flag2) + { + this.blueCombatInfo.Set(param.guildcombat11); + this.redCombatInfo.Set(param.guildcombat22); + this.BlueInfo.Convert(param.guildcombat11.rolecombat); + this.RedInfo.Convert(param.guildcombat22.rolecombat); + } + else + { + bool flag3 = param.guildcombat22.gmfguild.guildid == myGuildID; + if (flag3) + { + this.blueCombatInfo.Set(param.guildcombat22); + this.redCombatInfo.Set(param.guildcombat11); + this.BlueInfo.Convert(param.guildcombat22.rolecombat); + this.RedInfo.Convert(param.guildcombat11.rolecombat); + } + else + { + this.blueCombatInfo.Set(param.guildcombat11); + this.redCombatInfo.Set(param.guildcombat22); + this.BlueInfo.Convert(param.guildcombat11.rolecombat); + this.RedInfo.Convert(param.guildcombat22.rolecombat); + } + } + this.Round = param.guildcombat11.score + param.guildcombat22.score; + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.ReceiveGuildCombatNotify ", this.Round.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag4 = this.CurView.IsVisible(); + if (flag4) + { + this.CurView.ReFreshGroup(); + } + } + } + + public void OnAllFightEnd(GmfAllFightEnd data) + { + bool flag = !this.IsGMF(); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + string log = "winguild:" + data.winguild.ToString() + "loseguildid:" + data.loseguild.ToString(); + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnAllFightEnd ", log, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.RefreahCountTime(10f, true); + bool flag3 = data.winguild.guildid == XDocuments.GetSpecificDocument(XGuildDocument.uuID).BasicData.uid; + if (flag3) + { + this.blueAllFightEnd.isWin = true; + this.redAllFightEnd.isWin = false; + this.blueAllFightEnd.Guild = data.winguild; + this.redAllFightEnd.Guild = data.loseguild; + } + else + { + bool flag4 = data.loseguild.guildid == XDocuments.GetSpecificDocument(XGuildDocument.uuID).BasicData.uid; + if (flag4) + { + this.blueAllFightEnd.isWin = false; + this.redAllFightEnd.isWin = true; + this.blueAllFightEnd.Guild = data.loseguild; + this.redAllFightEnd.Guild = data.winguild; + } + else + { + this.blueAllFightEnd.isWin = true; + this.redAllFightEnd.isWin = false; + this.blueAllFightEnd.Guild = data.winguild; + this.redAllFightEnd.Guild = data.loseguild; + } + } + GmfGuildBrief winguild = data.winguild; + GmfGuildBrief loseguild = data.loseguild; + this.CurView.SetVisible(false, true); + DlgBase.singleton.SetVisible(true, true); + string guildResult = string.Empty; + bool flag5 = winguild.guildid == loseguild.guildid; + if (flag5) + { + XSingleton.singleton.AddErrorLog("data.winguildid = data.loseguildid", null, null, null, null, null); + } + else + { + bool flag6 = winguild.guildid == XDocuments.GetSpecificDocument(XGuildDocument.uuID).BasicData.uid; + if (flag6) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnAllFightEnd Guild Win", null, null, null, null, null, XDebugColor.XDebug_None); + switch (data.wintype) + { + case GMF_FINAL_WIN_TYPE.GMF_FWY_NORMAL: + DlgBase.singleton.SetGuildResult(""); + break; + case GMF_FINAL_WIN_TYPE.GMF_FWY_OPNONE: + guildResult = string.Format(XStringDefineProxy.GetString("GUILD_ARENA_QUITE"), loseguild.guildname); + DlgBase.singleton.SetGuildResult(guildResult); + break; + case GMF_FINAL_WIN_TYPE.GMF_FWY_RANK: + DlgBase.singleton.SetGuildResult(XStringDefineProxy.GetString("GUILD_ARENA_WIN_GUILDALL_RANK")); + break; + } + } + else + { + bool flag7 = loseguild.guildid == XDocuments.GetSpecificDocument(XGuildDocument.uuID).BasicData.uid; + if (flag7) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnAllFightEnd Guild Failed", null, null, null, null, null, XDebugColor.XDebug_None); + switch (data.wintype) + { + case GMF_FINAL_WIN_TYPE.GMF_FWY_NORMAL: + DlgBase.singleton.SetGuildResult(""); + break; + case GMF_FINAL_WIN_TYPE.GMF_FWY_OPNONE: + guildResult = string.Format(XStringDefineProxy.GetString("GUILD_ARENA_QUITE"), loseguild.guildname); + DlgBase.singleton.SetGuildResult(guildResult); + break; + case GMF_FINAL_WIN_TYPE.GMF_FWY_RANK: + DlgBase.singleton.SetGuildResult(XStringDefineProxy.GetString("GUILD_ARENA_WIN_GUILDALL_RANK")); + break; + } + } + else + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnAllFightEnd winguildid Observer", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + } + } + } + + public void OnGmfJoinBattle(GmfJoinBattleArg oRes) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.GmfJoinBattleArg ", oRes.leftTime.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + + public void GetJoinBattleRes() + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.GetJoinBattleRes ", null, null, null, null, null, XDebugColor.XDebug_None); + } + + public void OnWaitOtherLoad(GmfWaitOtherArg oRes) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnWaitOtherLoad ", oRes.lefttime.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + + public void OnWaitFightBegin(GmfWaitFightArg oRes) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnWaitFightBegin ", oRes.lefttime.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + + public void ReadyReq(ulong roleid, GMFReadyType type) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.ReadyReq ", type.ToString(), null, null, null, null, XDebugColor.XDebug_None); + RpcC2G_GmfReadyReq rpcC2G_GmfReadyReq = new RpcC2G_GmfReadyReq(); + rpcC2G_GmfReadyReq.oArg.roleid = roleid; + rpcC2G_GmfReadyReq.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_GmfReadyReq); + } + + public void OnReadyReq(GmfReadyRes oRes) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnReadyReq ", oRes.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + else + { + bool flag2 = this.CurView.IsVisible(); + if (flag2) + { + this.CurView.ReFreshGroup(); + } + } + } + + public void InspireReq() + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.InspireReq ", null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2G_InspireReq rpc = new RpcC2G_InspireReq(); + XSingleton.singleton.Send(rpc); + } + + private void InspireUpdate(float detailTime) + { + bool flag = this.m_InspireCDTime > 0.0; + if (flag) + { + this.m_InspireCDTime -= (double)detailTime; + } + else + { + this.m_InspireCDTime = 0.0; + } + } + + public void OnInspireReq(InspireRes oRes) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnInspireReq ", oRes.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + XSingleton.singleton.AddGreenLog("XMainClient.XGuildArenaBattleDocument.Inspire.Cooldowntime:", oRes.cooldowntime.ToString(), null, null, null, null); + this.m_InspireCDTime = double.Parse(XSingleton.singleton.GetValue("GMFInspireCoolDown")); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILDARENA_INSPIRE_NOTICE"), "fece00"); + bool flag2 = this.CurView.IsLoaded() && this.CurView.IsVisible(); + if (flag2) + { + this.CurView.RefreshInspire(); + } + } + } + + public void OnBattleState(GmfBatlleStatePara Data) + { + XSingleton.singleton.AddLog("XMainClient.XGuildArenaBattleDocument.OnBattleState ", Data.state.ToString(), " ", Data.lefttime.ToString(), null, null, XDebugColor.XDebug_None); + switch (Data.state) + { + case GmfBattleState.GMF_BS_WAIT: + { + this.mArenaSection = XGuildArenaBattleDocument.GuildArenaSection.Prepare; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.ReturnHall(); + } + DlgBase.singleton.SetVisible(false, true); + bool flag2 = !this.CurView.IsVisible(); + if (flag2) + { + this.CurView.SetVisible(true, true); + } + else + { + this.CurView.RefreshSection(); + } + this.CurView.RefreahCountTime(Data.lefttime); + break; + } + case GmfBattleState.GMF_BS_FIGHT: + { + this.mArenaSection = XGuildArenaBattleDocument.GuildArenaSection.Battle; + DlgBase.singleton.SetVisible(false, true); + bool flag3 = !this.CurView.IsVisible(); + if (flag3) + { + this.CurView.SetVisible(true, true); + } + else + { + this.CurView.RefreshSection(); + } + this.CurView.RefreahCountTime(Data.lefttime); + break; + } + case GmfBattleState.GMF_BS_RESULT: + { + this.CurView.SetVisible(false, true); + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_GMF; + if (flag4) + { + this.mArenaSection = XGuildArenaBattleDocument.GuildArenaSection.Result; + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.RefreahCountTime(Data.lefttime, false); + } + else + { + bool flag5 = XSingleton.singleton.SceneType == SceneType.SCENE_GPR; + if (flag5) + { + this.mArenaSection = XGuildArenaBattleDocument.GuildArenaSection.Prepare; + } + } + break; + } + case GmfBattleState.GMF_BS_NONE: + XSingleton.singleton.AddErrorLog("XMainClient.XGuildArenaBattleDocument.OnInspireReq ", Data.state.ToString(), " ", Data.lefttime.ToString(), null, null); + break; + } + } + + public void OnBekicked(GmfKickRes res) + { + string text = string.Format(XSingleton.singleton.GetString("GUILD_ARENA_BEKICKED"), res.kickname); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + bool flag = res.cooldowntime > 0.01f; + if (flag) + { + this.bCantUpForKicked = true; + bool flag2 = this._kicked_token > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._kicked_token); + } + this._kicked_token = XSingleton.singleton.SetTimer(res.cooldowntime, new XTimerMgr.ElapsedEventHandler(this.OnBekickedCallback), null); + } + bool flag3 = this.CurView.IsLoaded(); + if (flag3) + { + this.CurView.UpdateDownUp(); + } + } + + private void OnBekickedCallback(object o) + { + this.bCantUpForKicked = false; + bool flag = this.CurView.IsLoaded(); + if (flag) + { + this.CurView.UpdateDownUp(); + } + } + + public void ChangeSpectator(XRole role) + { + } + + private void ConvertSceneTypeToPattern(SceneType type, ref GuildArenaBattlePattern pattern) + { + if (type != SceneType.SCENE_GMF) + { + if (type != SceneType.SCENE_GPR) + { + if (type == SceneType.SCENE_GCF) + { + pattern = GuildArenaBattlePattern.GCF; + } + } + else + { + pattern = GuildArenaBattlePattern.GPR; + } + } + else + { + pattern = GuildArenaBattlePattern.GMF; + } + } + + private void EnterGVG() + { + this.ConvertSceneTypeToPattern(XSingleton.singleton.SceneType, ref this.Pattern); + this.CurView.OnEnterSceneFinally(); + this.bCantUpForKicked = false; + bool flag = this.fxEncourageButton == null; + if (flag) + { + this.fxEncourageButton = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_Encourage", null, true); + } + bool flag2 = this.fxEncourageProgressNum == null; + if (flag2) + { + this.fxEncourageProgressNum = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_Encourage_Num", null, true); + } + bool flag3 = this.fxEncourageProgressAdd == null; + if (flag3) + { + this.fxEncourageProgressAdd = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_Encourage_Add", null, true); + } + bool flag4 = this.mGmfRoleDatas != null; + if (flag4) + { + this.SpectateSpecial(this.mGmfRoleDatas); + } + } + + private void LeaveGVG() + { + bool flag = this.fxEncourageButton != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.fxEncourageButton, true); + this.fxEncourageButton = null; + } + bool flag2 = this.fxEncourageProgressNum != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.fxEncourageProgressNum, true); + this.fxEncourageProgressNum = null; + } + bool flag3 = this.fxEncourageProgressAdd != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this.fxEncourageProgressAdd, true); + this.fxEncourageProgressAdd = null; + } + } + + public void ReceiveDuelRoundResult(GprOneBattleEnd res) + { + XSingleton.singleton.AddGreenLog("XMainClient.XGuildArenaBattleDocument.ReceiveDuelRoundResult", null, null, null, null, null); + bool flag = !this.IsGPR() && !this.IsGCF(); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + ulong myGuildID = this.GetMyGuildID(); + bool cross = this.IsGCF(); + bool flag3 = res.winguild.guildid == myGuildID; + if (flag3) + { + this.InBattleGroup = true; + this.BlueDuelResult.Setup(res.winguild, res.winrolecombat, true, cross); + this.RedDuelResult.Setup(res.loseguild, res.loserolecombat, false, cross); + } + else + { + bool flag4 = res.loseguild.guildid == myGuildID; + if (flag4) + { + this.InBattleGroup = true; + this.BlueDuelResult.Setup(res.loseguild, res.loserolecombat, false, cross); + this.RedDuelResult.Setup(res.winguild, res.winrolecombat, true, cross); + } + else + { + this.InBattleGroup = false; + this.BlueDuelResult.Setup(res.winguild, res.winrolecombat, true, cross); + this.RedDuelResult.Setup(res.loseguild, res.loserolecombat, false, cross); + } + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + public void ReceiveDuelFinalResult(GprAllFightEnd res) + { + XSingleton.singleton.AddGreenLog("XMainClient.XGuildArenaBattleDocument.ReceiveDuelFinalResult", null, null, null, null, null); + bool flag = !this.IsGPR() && !this.IsGCF(); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + ulong myGuildID = this.GetMyGuildID(); + bool cross = this.IsGCF(); + bool flag3 = res.winguild.guildid == myGuildID; + if (flag3) + { + this.BlueDuelResult.Setup(res.winguild, res.winscore, true, cross); + this.RedDuelResult.Setup(res.loseguild, res.losescore, false, cross); + } + else + { + bool flag4 = res.loseguild.guildid == myGuildID; + if (flag4) + { + this.BlueDuelResult.Setup(res.loseguild, res.losescore, false, cross); + this.RedDuelResult.Setup(res.winguild, res.winscore, true, cross); + } + else + { + this.BlueDuelResult.Setup(res.winguild, res.winscore, true, cross); + this.RedDuelResult.Setup(res.loseguild, res.losescore, false, cross); + } + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnActionEvent)); + base.RegisterEvent(XEventDefine.XEvent_FightGroupChanged, new XComponent.XEventHandler(this.OnFightGroupChanged)); + } + + private bool OnFightGroupChanged(XEventArgs e) + { + bool flag = !this.IsGPR() && !this.IsGCF(); + bool result; + if (flag) + { + result = true; + } + else + { + XFightGroupChangedArgs xfightGroupChangedArgs = e as XFightGroupChangedArgs; + bool flag2 = xfightGroupChangedArgs == null || xfightGroupChangedArgs.targetEntity == null; + if (flag2) + { + result = true; + } + else + { + BattleIndicateHandler battleIndicateHandler = null; + XSingleton.singleton.AddGreenLog("OnFightGroupChanged", null, null, null, null, null); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + battleIndicateHandler = DlgBase.singleton.IndicateHandler; + } + } + else + { + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + battleIndicateHandler = DlgBase.singleton.IndicateHandler; + } + } + bool flag5 = battleIndicateHandler == null; + if (flag5) + { + result = true; + } + else + { + bool isPlayer = xfightGroupChangedArgs.targetEntity.IsPlayer; + if (isPlayer) + { + List all = XSingleton.singleton.GetAll(); + int i = 0; + int count = all.Count; + while (i < count) + { + bool isPlayer2 = all[i].IsPlayer; + if (!isPlayer2) + { + this.UpdateIndicateHandle(battleIndicateHandler, all[i]); + } + i++; + } + } + else + { + this.UpdateIndicateHandle(battleIndicateHandler, xfightGroupChangedArgs.targetEntity); + } + result = true; + } + } + } + return result; + } + + private void UpdateIndicateHandle(BattleIndicateHandler handler, XEntity entity) + { + handler.MiniMapDel(entity); + handler.MiniMapAdd(entity); + } + + private bool OnActionEvent(XEventArgs arg) + { + XRealDeadEventArgs xrealDeadEventArgs = arg as XRealDeadEventArgs; + bool flag = !xrealDeadEventArgs.TheDead.IsPlayer; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.IsGPR(); + int @int; + if (flag2) + { + @int = XSingleton.singleton.GetInt("GPRReviveTime"); + } + else + { + bool flag3 = this.IsGCF(); + if (!flag3) + { + return false; + } + @int = XSingleton.singleton.GetInt("GPCFReviveTime"); + } + bool flag4 = this.CurView.IsVisible(); + if (flag4) + { + this.CurView.SetResurgence(@int); + } + result = true; + } + return result; + } + + public void ReceiveBattleSkill(PvpBattleKill battleSkillInfo) + { + bool flag = !this.CurView.IsVisible(); + if (!flag) + { + GVGBattleSkill gvgbattleSkill = new GVGBattleSkill(); + gvgbattleSkill.killerID = battleSkillInfo.killID; + gvgbattleSkill.deadID = battleSkillInfo.deadID; + gvgbattleSkill.contiKillCount = battleSkillInfo.contiKillCount; + bool killerPosition = false; + bool flag2 = this.TryGetBattleName(battleSkillInfo.killID, out gvgbattleSkill.killerName, out killerPosition); + if (flag2) + { + gvgbattleSkill.killerPosition = killerPosition; + } + this.TryGetBattleName(battleSkillInfo.deadID, out gvgbattleSkill.deadName, out killerPosition); + DlgBase.singleton.AddBattleSkill(gvgbattleSkill); + XSingleton.singleton.AddGreenLog(string.Format("ReceiveBattleSkill:{0} --- ,{1} ,.... {2}", gvgbattleSkill.killerName, gvgbattleSkill.deadName, gvgbattleSkill.contiKillCount), null, null, null, null, null); + } + } + + private bool TryGetBattleName(ulong roleID, out string targetName, out bool position) + { + targetName = string.Empty; + position = false; + GmfRole gmfRole = null; + bool flag = this._redInfo.TryGetMember(roleID, out gmfRole); + bool result; + if (flag) + { + targetName = gmfRole.rolename; + position = true; + result = true; + } + else + { + bool flag2 = this._blueInfo.TryGetMember(roleID, out gmfRole); + if (flag2) + { + targetName = gmfRole.rolename; + position = false; + result = true; + } + else + { + result = false; + } + } + return result; + } + + public bool IsGPR() + { + return XSingleton.singleton.SceneType == SceneType.SCENE_GPR; + } + + public bool IsGMF() + { + return XSingleton.singleton.SceneType == SceneType.SCENE_GMF; + } + + public bool IsGCF() + { + return XSingleton.singleton.SceneType == SceneType.SCENE_GCF; + } + + public void NotifyVSPayRevive(VsPayRevivePara para) + { + this.ReviveItemID = para.itemid; + this.ReviveItemNumber = para.itemcount; + } + + public void SendVSPayRevive() + { + bool flag = this.ReviveItemID > 0u; + if (flag) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)this.ReviveItemID); + bool flag2 = itemCount >= (ulong)this.ReviveItemNumber; + if (flag2) + { + RpcC2G_VsPayReviveReq rpc = new RpcC2G_VsPayReviveReq(); + XSingleton.singleton.Send(rpc); + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.ReviveItemID); + bool flag3 = itemConf != null; + if (flag3) + { + UiUtility singleton = XSingleton.singleton; + string key = "FASHION_HAIR_COLORING"; + object[] itemName = itemConf.ItemName; + singleton.ShowSystemTip(XStringDefineProxy.GetString(key, itemName), "fece00"); + } + } + } + } + + public void ReceiveVSPayRevive(VsPayRevivePara oArg, VsPayReviveRes oRes) + { + bool flag = oRes.ret > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ret, "fece00"); + } + bool flag2 = this.CurView.IsVisible(); + if (flag2) + { + this.CurView.SetResurgence(0); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaBattleDocument.cs.meta new file mode 100644 index 00000000..5fe4a3f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3000b2bfb5d3e5145b6ebb064020c7fe +timeCreated: 1611403520 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaDocument.cs new file mode 100644 index 00000000..b1f939e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaDocument.cs @@ -0,0 +1,640 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildArenaDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildArenaDocument.uuID; + } + } + + public bool bHasAvailableArenaIcon + { + get + { + return this.m_hasAvailableArenaIcon; + } + set + { + this.m_hasAvailableArenaIcon = value; + this.m_iconVisibleTime = (double)(this.m_hasAvailableArenaIcon ? 600 : 0); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildPvp, true); + SceneType sceneType = XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + bool flag = sceneType == SceneType.SCENE_HALL || sceneType == SceneType.SCENE_GUILD_HALL; + if (flag) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildPvpMainInterface, true); + } + } + } + + public uint CanEnterBattle + { + get + { + return this.m_canEnterBattle; + } + } + + public bool VisibleEnterBattle + { + get + { + return this.m_visibleEnterBattle; + } + } + + public bool RegistrationStatu + { + get + { + return this.m_registrationStatu; + } + } + + public double RegistrationTime + { + get + { + return this.m_registrationTime; + } + } + + public uint RegistrationCount + { + get + { + return this.m_registrationCount; + } + } + + public GuildArenaType BattleStep + { + get + { + return this.m_battleStep; + } + } + + public GuildArenaState TimeState + { + get + { + return this.m_timeState; + } + } + + public bool bInArenaTime + { + get + { + return this.m_inArenaTime; + } + } + + public bool bHasAvailableJion + { + get + { + return this.m_hasAvailableJoin; + } + } + + public List CombatTabs + { + get + { + return this.m_CombatTabs; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildArenaDocument"); + + private Dictionary m_GuildListDic = new Dictionary(); + + private Dictionary> m_combatGroupDic = new Dictionary>(); + + private List m_CombatTabs = new List(); + + private bool m_hasAvailableArenaIcon = false; + + private bool m_inArenaTime = false; + + private bool m_hasAvailableJoin = false; + + private uint m_canEnterBattle = 0u; + + private bool m_visibleEnterBattle = false; + + private uint m_selectBattleID = 0u; + + private double m_iconVisibleTime = 0.0; + + public int SelectWarIndex = 1; + + public GuildArenaTab SelectTabIndex = GuildArenaTab.Hall; + + private GuildArenaState m_timeState = GuildArenaState.GUILD_ARENA_NOT_BEGIN; + + public List IntegralUnits = new List(); + + public List DuelCombatInfos = new List(); + + private GuildArenaType m_battleStep = GuildArenaType.notopen; + + private bool m_registrationStatu = false; + + private double m_registrationTime = 0.0; + + private uint m_registrationCount = 0u; + + private bool m_sendJoinRpc = false; + + protected override void OnReconnected(XReconnectedEventArgs args) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + switch (this.SelectTabIndex) + { + case GuildArenaTab.Hall: + this.SendGuildIntegralInfo(); + this.SendGetApplyGuildList(); + break; + case GuildArenaTab.Duel: + this.SendIntegralBattleInfo(); + break; + case GuildArenaTab.Combat: + this.SendGuildArenaInfo(); + break; + } + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.m_iconVisibleTime > 0.0; + if (flag) + { + this.m_iconVisibleTime -= (double)fDeltaT; + bool flag2 = this.m_iconVisibleTime <= 0.0; + if (flag2) + { + this.bHasAvailableArenaIcon = false; + } + } + bool flag3 = this.m_registrationTime > (double)fDeltaT; + if (flag3) + { + this.m_registrationTime -= (double)fDeltaT; + } + else + { + this.m_registrationTime = 0.0; + } + } + + public void UpdateView(GuildArenaTab tab) + { + bool flag = DlgBase.singleton.IsVisible() && this.SelectTabIndex == tab; + if (flag) + { + DlgBase.singleton.RefreshData(); + } + } + + public bool TryGetGuildInfo(ulong guildID, out XGuildBasicData guildInfo) + { + guildInfo = null; + return guildID > 0UL && this.m_GuildListDic.TryGetValue(guildID, out guildInfo); + } + + public GuildArenaGroupData GetGuildGroup(uint combatID, uint battleID) + { + Dictionary dictionary; + bool flag = this.m_combatGroupDic.TryGetValue(combatID, out dictionary); + GuildArenaGroupData result; + if (flag) + { + result = (dictionary.ContainsKey(battleID) ? dictionary[battleID] : null); + } + else + { + result = null; + } + return result; + } + + public ulong GetArenaWinnerGuildID(uint combatTeamID, uint battleID = 7u) + { + Dictionary dictionary; + bool flag = this.m_combatGroupDic.TryGetValue(combatTeamID, out dictionary); + ulong result; + if (flag) + { + result = ((dictionary.ContainsKey(battleID) && dictionary[battleID] != null) ? dictionary[battleID].winerId : 0UL); + } + else + { + result = 0UL; + } + return result; + } + + private int GetCurRoundIndex() + { + int result = 0; + switch (this.BattleStep) + { + case GuildArenaType.battleone: + result = 0; + break; + case GuildArenaType.battletwo: + result = 1; + break; + case GuildArenaType.battlethree: + result = 2; + break; + case GuildArenaType.battlefour: + result = 3; + break; + } + return result; + } + + public void SendGuildArenaJoinBattle() + { + bool flag = this.m_canEnterBattle != 1u && this.m_canEnterBattle != 2u; + if (!flag) + { + bool sendJoinRpc = this.m_sendJoinRpc; + if (!sendJoinRpc) + { + RpcC2M_gmfjoinreq rpc = new RpcC2M_gmfjoinreq(); + XSingleton.singleton.Send(rpc); + this.m_sendJoinRpc = true; + } + } + } + + public void ReceiveGuildArenaJoinBattle(gmfjoinres res) + { + this.m_sendJoinRpc = false; + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + } + } + + public void SendGuildArenaInfo() + { + RpcC2M_AskGuildArenaInfoNew rpc = new RpcC2M_AskGuildArenaInfoNew(); + XSingleton.singleton.Send(rpc); + } + + public void OnGuildArenaInfo(AskGuildArenaInfoReq oRes) + { + this.m_GuildListDic.Clear(); + this.m_CombatTabs.Clear(); + this.m_combatGroupDic.Clear(); + this.m_timeState = oRes.timeState; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument.bInGuild; + List allguildInfo = oRes.allguildInfo; + int i = 0; + int count = allguildInfo.Count; + while (i < count) + { + XGuildBasicData xguildBasicData = new XGuildBasicData(); + xguildBasicData.Init(allguildInfo[i]); + this.m_GuildListDic[xguildBasicData.uid] = xguildBasicData; + i++; + } + this.m_inArenaTime = (allguildInfo.Count > 0); + List warData = oRes.warData; + this.m_hasAvailableJoin = false; + this.m_canEnterBattle = 0u; + this.m_selectBattleID = 0u; + i = 0; + count = warData.Count; + while (i < count) + { + this.m_CombatTabs.Add((int)warData[i].warType); + this.m_combatGroupDic[warData[i].warType] = new Dictionary(); + int count2 = warData[i].guildArenaGroupData.Count; + for (int j = count2 - 1; j >= 0; j--) + { + GuildArenaGroupData guildArenaGroupData = warData[i].guildArenaGroupData[j]; + this.m_combatGroupDic[warData[i].warType].Add(guildArenaGroupData.battleId, guildArenaGroupData); + bool flag = guildArenaGroupData.guildOneId == specificDocument.BasicData.uid || guildArenaGroupData.guildTwoId == specificDocument.BasicData.uid; + if (flag) + { + this.SelectWarIndex = (int)warData[i].warType; + this.m_hasAvailableJoin = true; + bool flag2 = this.m_selectBattleID == 0u || this.m_selectBattleID < guildArenaGroupData.battleId; + if (flag2) + { + this.m_canEnterBattle = guildArenaGroupData.state; + this.m_selectBattleID = guildArenaGroupData.battleId; + this.m_visibleEnterBattle = (guildArenaGroupData.winerId == 0UL || (guildArenaGroupData.winerId == specificDocument.BasicData.uid && guildArenaGroupData.battleId != 7u)); + } + } + } + i++; + } + this.UpdateView(GuildArenaTab.Combat); + } + + public void OnSynGuildArenaBattleInfos(SynGuildArenaBattleInfo info) + { + uint warType = info.warType; + List arenaBattleInfo = info.arenaBattleInfo; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + Dictionary dictionary; + bool flag = this.m_combatGroupDic.TryGetValue(info.warType, out dictionary); + if (flag) + { + int i = 0; + int count = arenaBattleInfo.Count; + while (i < count) + { + bool flag2 = dictionary.ContainsKey(arenaBattleInfo[i].battleId); + if (flag2) + { + dictionary[arenaBattleInfo[i].battleId] = arenaBattleInfo[i]; + } + else + { + dictionary.Add(arenaBattleInfo[i].battleId, arenaBattleInfo[i]); + } + bool flag3 = arenaBattleInfo[i].guildOneId == specificDocument.BasicData.uid || arenaBattleInfo[i].guildTwoId == specificDocument.BasicData.uid; + if (flag3) + { + this.m_canEnterBattle = arenaBattleInfo[i].state; + this.m_selectBattleID = arenaBattleInfo[i].battleId; + this.m_visibleEnterBattle = (arenaBattleInfo[i].winerId == 0UL || (arenaBattleInfo[i].winerId == specificDocument.BasicData.uid && arenaBattleInfo[i].battleId != 7u)); + } + i++; + } + } + this.UpdateView(GuildArenaTab.Combat); + } + + public void SendGuildIntegralInfo() + { + RpcC2M_GetGuildIntegralInfo rpc = new RpcC2M_GetGuildIntegralInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveIntegralBattleInfo(GetGuildIntegralInfoRes res) + { + this.m_battleStep = res.battletype; + this.m_registrationTime = res.applytime; + this.m_registrationStatu = res.isapply; + this.m_registrationCount = res.curturn; + GuildArenaType battleStep = this.m_battleStep; + GuildArenaTab guildArenaTab; + if (battleStep - GuildArenaType.battleone > 3) + { + if (battleStep != GuildArenaType.battlefinal) + { + guildArenaTab = GuildArenaTab.Hall; + } + else + { + guildArenaTab = GuildArenaTab.Combat; + } + } + else + { + guildArenaTab = GuildArenaTab.Duel; + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = this.SelectTabIndex == guildArenaTab; + if (flag2) + { + DlgBase.singleton.RefreshData(); + } + else + { + DlgBase.singleton.SelectTabIndex(guildArenaTab); + } + } + } + + public void OnUpdateGuildArenaState(UpdateGuildArenaState state) + { + GuildArenaGroupData guildGroup = this.GetGuildGroup(state.warType, state.battleId); + bool flag = guildGroup == null; + if (!flag) + { + guildGroup.warstate = state.state; + this.UpdateView(GuildArenaTab.Combat); + } + } + + public void ReceiveGuildArenaNextTime(NoticeGuildArenaNextTime time) + { + this.m_timeState = time.state; + this.UpdateView(GuildArenaTab.Combat); + } + + public void SendIntegralBattleInfo() + { + RpcC2M_getintegralbattleInfo rpc = new RpcC2M_getintegralbattleInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveIntegralBattleInfo(getintegralbattleInfores res) + { + this.DuelCombatInfos.Clear(); + ulong uid = XDocuments.GetSpecificDocument(XGuildDocument.uuID).UID; + int curRoundIndex = this.GetCurRoundIndex(); + int i = 0; + int count = res.battleTime.Count; + while (i < count) + { + GuildArenaDuelCombatInfo guildArenaDuelCombatInfo = new GuildArenaDuelCombatInfo(); + guildArenaDuelCombatInfo.CombatTime = res.battleTime[i]; + bool flag = i < res.battleinfo.Count; + if (flag) + { + IntegralBattle integralBattle = res.battleinfo[i]; + guildArenaDuelCombatInfo.IsDo = integralBattle.isdo; + guildArenaDuelCombatInfo.Step = integralBattle.state; + guildArenaDuelCombatInfo.Statu = ((integralBattle.state == IntegralState.integralend) ? GuildArenaDuelCombatStatu.Used : GuildArenaDuelCombatStatu.Current); + guildArenaDuelCombatInfo.isShow = true; + bool flag2 = integralBattle.guildone == uid; + if (flag2) + { + guildArenaDuelCombatInfo.GuildID = integralBattle.guildtwo; + guildArenaDuelCombatInfo.GuildName = integralBattle.nametwo; + guildArenaDuelCombatInfo.Winner = (integralBattle.guildonescore > integralBattle.guildtwoscore); + guildArenaDuelCombatInfo.GuildIcon = integralBattle.icontwo; + guildArenaDuelCombatInfo.GuildScore = integralBattle.guildonescore; + } + else + { + bool flag3 = integralBattle.guildtwo == uid; + if (flag3) + { + guildArenaDuelCombatInfo.GuildID = integralBattle.guildone; + guildArenaDuelCombatInfo.GuildName = integralBattle.nameone; + guildArenaDuelCombatInfo.GuildScore = integralBattle.guildtwoscore; + guildArenaDuelCombatInfo.Winner = (integralBattle.guildtwoscore > integralBattle.guildonescore); + guildArenaDuelCombatInfo.GuildIcon = integralBattle.iconone; + } + } + } + else + { + guildArenaDuelCombatInfo.Statu = GuildArenaDuelCombatStatu.Next; + guildArenaDuelCombatInfo.isShow = false; + } + this.DuelCombatInfos.Add(guildArenaDuelCombatInfo); + i++; + } + this.UpdateView(GuildArenaTab.Duel); + } + + public void SendApplyGuildArena() + { + RpcC2M_applyguildarena rpc = new RpcC2M_applyguildarena(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveApplyGuildArena(applyguildarenares res) + { + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(res.errorcode); + } + else + { + this.m_registrationStatu = true; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_ARENA_SIGN_SUCCESS"), "fece00"); + this.SendGetApplyGuildList(); + this.UpdateView(GuildArenaTab.Hall); + } + } + + public void SendGetApplyGuildList() + { + RpcC2M_getapplyguildlist rpc = new RpcC2M_getapplyguildlist(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveApplyGuildList(getapplyguildlistres res) + { + this.IntegralUnits.Clear(); + this.IntegralUnits.AddRange(res.guildlist); + this.UpdateView(GuildArenaTab.Hall); + } + + private int IntegralUnitsCompare(Integralunit u1, Integralunit u2) + { + return (int)(u2.guildscore - u1.guildscore); + } + + public int GetMyIntegralUnitIndex() + { + int result = -1; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + ulong uid = specificDocument.BasicData.uid; + int i = 0; + int count = this.IntegralUnits.Count; + while (i < count) + { + bool flag = this.IntegralUnits[i].guildid != uid; + if (!flag) + { + result = i; + break; + } + i++; + } + return result; + } + + public void SendEnterDuelBattle(int index) + { + bool flag = index >= this.DuelCombatInfos.Count; + if (!flag) + { + GuildArenaDuelCombatInfo guildArenaDuelCombatInfo = this.DuelCombatInfos[index]; + bool flag2 = guildArenaDuelCombatInfo.Step == IntegralState.integralwatch || guildArenaDuelCombatInfo.Step == IntegralState.integralenterscene; + if (flag2) + { + XSingleton.singleton.AddGreenLog("XMainClient.GuildArenaDocument.SendEnterDuelBattle", null, null, null, null, null); + RpcC2M_gmfjoinreq rpc = new RpcC2M_gmfjoinreq(); + XSingleton.singleton.Send(rpc); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_ARENA_OUTTIME"), "fece00"); + } + } + } + + public void ReceiveUpdateBattleStatu(IntegralState state) + { + int curRoundIndex = this.GetCurRoundIndex(); + bool flag = curRoundIndex == -1 || curRoundIndex >= this.DuelCombatInfos.Count; + if (!flag) + { + GuildArenaDuelCombatInfo guildArenaDuelCombatInfo = this.DuelCombatInfos[curRoundIndex]; + guildArenaDuelCombatInfo.Step = state; + bool flag2 = this.SelectTabIndex == GuildArenaTab.Duel; + if (flag2) + { + bool flag3 = !guildArenaDuelCombatInfo.isShow; + if (flag3) + { + this.SendIntegralBattleInfo(); + } + else + { + this.UpdateView(GuildArenaTab.Duel); + } + } + else + { + bool flag4 = DlgBase.singleton.IsVisible() && (guildArenaDuelCombatInfo.Step == IntegralState.integralenterscene || guildArenaDuelCombatInfo.Step == IntegralState.integralwatch); + if (flag4) + { + DlgBase.singleton.SelectTabIndex(GuildArenaTab.Duel); + } + } + } + } + + public void SendReqGuildArenaHistory() + { + RpcC2M_ReqGuildArenaHistory rpc = new RpcC2M_ReqGuildArenaHistory(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveGuildArenaHistory(ReqGuildArenaHistoryRse res) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetHistoryList(res.history); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaDocument.cs.meta new file mode 100644 index 00000000..3ab13436 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildArenaDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83d57a97b9bcbdf47af8f1876d14232c +timeCreated: 1611404046 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildBasicData.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildBasicData.cs new file mode 100644 index 00000000..66c2f4e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildBasicData.cs @@ -0,0 +1,172 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildBasicData : XDataBase + { + public string announcement + { + get + { + bool flag = this._announcement == null || this._announcement == ""; + string result; + if (flag) + { + result = XStringDefineProxy.GetString("GUILD_DEFAULT_ANNOUNCEMENT"); + } + else + { + result = this._announcement; + } + return result; + } + set + { + this._announcement = value; + } + } + + public string actualAnnoucement + { + get + { + return this._announcement; + } + } + + public ulong uid; + + public string guildName; + + public string leaderName; + + public ulong leaderuid; + + public uint level; + + public uint memberCount; + + public uint maxMemberCount; + + private string _announcement; + + public int portraitIndex; + + public uint exp; + + public int rank; + + public uint liveness; + + public List liveList = new List(); + + public uint popularity; + + public uint technology; + + public uint resource; + + public string GetLiveness() + { + string text = string.Empty; + bool flag = this.liveList.Count > 0; + if (flag) + { + int i = 0; + int count = this.liveList.Count; + while (i < count) + { + bool flag2 = this.liveness < this.liveList[i]; + if (flag2) + { + text = string.Format("GUILD_LIVENESS_{0}", i + 1); + break; + } + i++; + } + } + bool flag3 = string.IsNullOrEmpty(text); + string result; + if (flag3) + { + result = this.liveness.ToString(); + } + else + { + result = XStringDefineProxy.GetString(text, new object[] + { + this.liveness + }); + } + return result; + } + + public string GetLivenessTips() + { + bool flag = this.liveList.Count != 3; + string result; + if (flag) + { + result = string.Empty; + } + else + { + result = string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GUILD_LIVENESS_TIPS")), new object[] + { + this.liveList[0], + this.liveList[0], + this.liveList[1], + this.liveList[1], + this.liveList[2], + this.liveList[2] + }); + } + return result; + } + + public virtual void Init(GuildInfo info) + { + this.uid = info.id; + this.guildName = info.name; + this.leaderuid = info.leaderID; + this.leaderName = info.leaderName; + this.level = (uint)info.level; + this.memberCount = (uint)info.memberCount; + this.maxMemberCount = (uint)info.capacity; + this.portraitIndex = info.icon; + this.announcement = info.annoucement; + this.popularity = info.prestige; + } + + public void Init(GuildBriefRes info) + { + this.guildName = info.name; + this.leaderName = info.leaderName; + this.leaderuid = info.leaderID; + this.level = (uint)info.level; + this.memberCount = (uint)info.membercount; + this.maxMemberCount = (uint)info.capacity; + this.announcement = info.annoucement; + this.portraitIndex = info.icon; + this.exp = info.exp; + this.rank = info.rank; + this.liveness = info.activity; + this.liveList.Clear(); + this.liveList.Add(info.activityOne); + this.liveList.Add(info.activityTwo); + this.liveList.Add(info.activityThree); + this.popularity = info.prestige; + this.technology = info.schoolpoint; + this.resource = info.hallpoint; + } + + public virtual string ToGuildNameString() + { + return this.guildName; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildBasicData.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildBasicData.cs.meta new file mode 100644 index 00000000..254b0e4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildBasicData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e52b35127ded674499c28da4cb0ff39f +timeCreated: 1611404742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildBoonBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildBoonBehaviour.cs new file mode 100644 index 00000000..d365e40c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildBoonBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildBoonBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public XUIPool m_BoonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ScrollView; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Panel/BoonTpl"); + this.m_BoonPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildBoonBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildBoonBehaviour.cs.meta new file mode 100644 index 00000000..d8020db0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildBoonBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9cc103da7a9b90c4f921c6779c0df506 +timeCreated: 1611404233 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankInfo.cs new file mode 100644 index 00000000..3528d0fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankInfo.cs @@ -0,0 +1,41 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XGuildBossRankInfo : XBaseRankInfo + { + public string guildBossName; + + public uint guildBossIndex; + + public float damage; + + public string m_Time; + + public string guildName; + + public string strongDPSName; + + public float MaxHP; + + public override void ProcessData(RankData data) + { + this.rank = data.Rank; + this.guildBossName = data.guildBossName; + this.guildBossIndex = data.guildBossIndex; + this.damage = data.damage; + this.value = (ulong)data.time; + this.guildName = data.guildname; + this.strongDPSName = data.guildBossDpsMax; + this.m_Time = XSingleton.singleton.TimeFormatString((int)this.value, 2, 3, 4, false, true); + } + + public override string GetValue() + { + return this.m_Time; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankInfo.cs.meta new file mode 100644 index 00000000..e89d7274 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ab364a70403f4a48a448d0eb375e99f +timeCreated: 1611403665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankList.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankList.cs new file mode 100644 index 00000000..2ce615ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XGuildBossRankList : XBaseRankList + { + public XGuildBossRankList() + { + this.type = XRankType.GuildBossRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XGuildBossRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankList.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankList.cs.meta new file mode 100644 index 00000000..63191ce4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildBossRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2efbcd19afff331408929ca7845dd2e0 +timeCreated: 1611403513 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusBrief.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusBrief.cs new file mode 100644 index 00000000..37b52a9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusBrief.cs @@ -0,0 +1,40 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XGuildCheckInBonusBrief + { + public uint needMemberCount + { + get + { + return this.bonueMemberCount - this.frontBonusMemberCount; + } + } + + public uint bonusID = 0u; + + public uint bonueMemberCount = 0u; + + public BonusState bonusState = BonusState.Bonus_UnActive; + + public XGuildRedPacketBrief brief = new XGuildRedPacketBrief(); + + public uint frontBonusMemberCount = 0u; + + public uint bonusType = 0u; + + public void SetBrief(GuildBonusAppear appear) + { + bool flag = appear == null; + if (!flag) + { + this.brief.SetData(appear); + this.bonusID = appear.bonusID; + this.bonusType = appear.bonusContentType; + this.bonueMemberCount = appear.needCheckInNum; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusBrief.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusBrief.cs.meta new file mode 100644 index 00000000..dff45129 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 354a9360d3ea05e469107da757f8124d +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusInfo.cs new file mode 100644 index 00000000..746d01b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusInfo.cs @@ -0,0 +1,162 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildCheckInBonusInfo + { + public int ActiveCount + { + get + { + int num = 0; + int i = 0; + int num2 = this.BonusBriefs.Length; + while (i < num2) + { + bool flag = this.BonusBriefs[i] != null && this.BonusBriefs[i].bonusState == BonusState.Bonus_Active; + if (flag) + { + num++; + } + i++; + } + return num; + } + } + + public bool isCheckIn; + + public int checkInNumber; + + public int onLineNum; + + public int guildMemberNum; + + public double timeofday; + + public double leftAskBonusTime; + + public XGuildCheckInBonusBrief[] BonusBriefs = new XGuildCheckInBonusBrief[4]; + + public XGuildCheckInBonusInfo() + { + DateTime now = DateTime.Now; + this.timeofday = (double)(3600 * now.Hour + 60 * now.Minute + now.Second); + } + + public void SetBonusBrief(List appears) + { + int i = 0; + int num = 4; + while (i < num) + { + XGuildCheckInBonusBrief xguildCheckInBonusBrief = new XGuildCheckInBonusBrief(); + bool flag = i < appears.Count; + if (flag) + { + GuildBonusAppear guildBonusAppear = appears[i]; + xguildCheckInBonusBrief.SetBrief(guildBonusAppear); + bool flag2 = i > 0; + if (flag2) + { + xguildCheckInBonusBrief.frontBonusMemberCount = appears[i - 1].needCheckInNum; + } + else + { + xguildCheckInBonusBrief.frontBonusMemberCount = 0u; + } + bool flag3 = (long)this.checkInNumber >= (long)((ulong)xguildCheckInBonusBrief.bonueMemberCount); + if (flag3) + { + bool flag4 = guildBonusAppear.bonusID > 0u; + if (flag4) + { + bool flag5 = guildBonusAppear.bonusStatus > 0u; + if (flag5) + { + xguildCheckInBonusBrief.bonusState = BonusState.Bouns_Over; + } + else + { + xguildCheckInBonusBrief.bonusState = BonusState.Bonus_Actived; + } + } + else + { + xguildCheckInBonusBrief.bonusState = BonusState.Bonus_Active; + } + } + else + { + xguildCheckInBonusBrief.bonusState = BonusState.Bonus_UnActive; + } + } + this.BonusBriefs[i] = xguildCheckInBonusBrief; + i++; + } + } + + public int GetAddPercent(int onlineNum) + { + string value = XSingleton.singleton.GetValue("GuildBonusOnLineNumAddPercent"); + string[] array = value.Split(XGlobalConfig.ListSeparator); + int result = 0; + int i = 0; + int num = array.Length; + while (i < num) + { + string[] array2 = array[i].Split(XGlobalConfig.SequenceSeparator); + bool flag = int.Parse(array2[0]) > onlineNum; + if (flag) + { + break; + } + result = int.Parse(array2[1]); + i++; + } + return result; + } + + public bool TryGetFreeBrief(out XGuildCheckInBonusBrief brief) + { + brief = null; + int i = 0; + int num = this.BonusBriefs.Length; + while (i < num) + { + bool flag = this.BonusBriefs[i] != null && this.BonusBriefs[i].bonusState == BonusState.Bonus_Active; + if (flag) + { + brief = this.BonusBriefs[i]; + return true; + } + i++; + } + return false; + } + + public bool HasActive() + { + return this.ActiveCount > 0; + } + + public bool AllActived() + { + int i = 0; + int num = this.BonusBriefs.Length; + while (i < num) + { + bool flag = this.BonusBriefs[i] == null || this.BonusBriefs[i].bonusState == BonusState.Bonus_Actived; + if (flag) + { + return false; + } + i++; + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusInfo.cs.meta new file mode 100644 index 00000000..cc979523 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildCheckInBonusInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b9b3c52935cf5945bb736cb7b7ac40f +timeCreated: 1611403599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildCollectDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildCollectDocument.cs new file mode 100644 index 00000000..3033845e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildCollectDocument.cs @@ -0,0 +1,798 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildCollectDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildCollectDocument.uuID; + } + } + + public GuildCampPartyReward RewardReader + { + get + { + return XGuildCollectDocument._rewardReader; + } + } + + public bool ActivityState + { + get + { + return this._activityState; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildCollectDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GuildCampPartyReward _rewardReader = new GuildCampPartyReward(); + + private bool _activityState = false; + + private bool _lotteryMachineState = false; + + public List NpcPool = new List(); + + public List LotteryMachineList = new List(); + + public Dictionary NpcIndex = new Dictionary(); + + public List NpcList = new List(); + + private int _npcMaxShowNum; + + private CollectNpcRefreshMode _npcRefreshMode; + + private uint _lastMeetLotteryUid; + + private float _lotteryWaitTime; + + private string _lotteryProcessText; + + private string _lotteryProcessTips; + + private uint _lastSendNpcID = 0u; + + private float _lastSendNpcTime; + + public Dictionary CollectUseDict = new Dictionary(); + + public bool MainInterfaceBtnState = false; + + public List _fxList = new List(); + + private static readonly string m_fxPath = "Effects/FX_Particle/Scene/Lzg_scene/rwts_05"; + + public double SignTime; + + public uint LeftTime; + + private int SUMMONLEFTTIME = 300; + + private string NORMALNAME = ""; + + private string SPECIALNAME = ""; + + private uint _hallTimeToken; + + private LinkedList _lotteryFxLink = new LinkedList(); + + private XFx _lotteryBoxFx; + + private static readonly string LotteryFlyFXPATH = "Effects/FX_Particle/UIfx/UI_ghpd_rabbit_Clip02"; + + private static readonly string LotteryBoxFXPATH = "Effects/FX_Particle/UIfx/UI_ghpd_rabbit_Clip01"; + + public Dictionary LotteryCDInfo = new Dictionary(); + + public int LotteryTimes = 3; + + public float GuildCollecLotteryCD = 120f; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildCollectDocument.AsyncLoader.AddTask("Table/GuildCampPartyReward", XGuildCollectDocument._rewardReader, false); + XGuildCollectDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._activityState = false; + this._lotteryMachineState = false; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_GUILD_HALL; + if (flag) + { + this._lotteryWaitTime = float.Parse(XSingleton.singleton.GetValue("GuildCollecLotteryWaitTime")); + this._lotteryProcessText = XStringDefineProxy.GetString("GuildCollectProcessText"); + this._lotteryProcessTips = XStringDefineProxy.GetString("GuildCollectProcessTips"); + this.LotteryTimes = int.Parse(XSingleton.singleton.GetValue("GuildCollecLotteryTimes")); + this.GuildCollecLotteryCD = float.Parse(XSingleton.singleton.GetValue("GuildCollecLotteryCD")); + List intList = XSingleton.singleton.GetIntList("GuildCollectNpcShowNum"); + XQualitySetting.ESetting quality = (XQualitySetting.ESetting)XQualitySetting.GetQuality(); + int num = XFastEnumIntEqualityComparer.ToInt(quality); + bool flag2 = num > intList.Count - 1; + if (flag2) + { + num = intList.Count - 1; + } + this._npcMaxShowNum = intList[num]; + this._npcRefreshMode = ((XSingleton.singleton.GetValue("GuildCollectNpcRefreshMode") == "0") ? CollectNpcRefreshMode.Random : CollectNpcRefreshMode.Distance); + this.NpcIndex.Clear(); + this.NpcList.Clear(); + this.NpcPool.Clear(); + this.LotteryMachineList.Clear(); + bool activityState = this._activityState; + if (activityState) + { + this.RefreshTime(null); + this.InitNpcList(); + bool lotteryMachineState = this._lotteryMachineState; + if (lotteryMachineState) + { + this.SetLotteryMachineState(true, true); + } + } + this.SetMainInterfaceBtnState(false); + } + } + + public int CheckLotteryCD(uint uid) + { + LotteryCD lotteryCD; + bool flag = this.LotteryCDInfo.TryGetValue(uid, out lotteryCD); + int result; + if (flag) + { + bool flag2 = lotteryCD.Times < this.LotteryTimes; + if (flag2) + { + lotteryCD.Times++; + result = -1; + } + else + { + int num = (int)(Time.time - lotteryCD.LastLotteryTime - this.GuildCollecLotteryCD); + bool flag3 = num >= 0; + if (flag3) + { + lotteryCD.Times = 1; + lotteryCD.LastLotteryTime = Time.time; + result = -1; + } + else + { + result = -num; + } + } + } + else + { + lotteryCD = new LotteryCD(); + lotteryCD.Times = 1; + lotteryCD.LastLotteryTime = Time.time; + this.LotteryCDInfo[uid] = lotteryCD; + result = -1; + } + return result; + } + + public void SetActivityState(bool state) + { + bool flag = this._activityState != state; + if (flag) + { + this._activityState = state; + XSingleton.singleton.AddGreenLog("set guildcollect state = ", state.ToString(), null, null, null, null); + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_GUILD_HALL; + if (flag2) + { + bool activityState = this._activityState; + if (activityState) + { + this.RefreshTime(null); + this.InitNpcList(); + } + else + { + foreach (KeyValuePair keyValuePair in this.NpcIndex) + { + XSingleton.singleton.DestroyNpc(keyValuePair.Value); + } + for (int i = 0; i < this.NpcPool.Count; i++) + { + XSingleton.singleton.DestroyNpc(this.NpcPool[i]); + } + this.NpcIndex.Clear(); + this.NpcList.Clear(); + this.NpcPool.Clear(); + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.OnGuildSysChange(); + } + } + } + + public void InitNpcList() + { + int num = this._npcMaxShowNum; + this.NORMALNAME = XStringDefineProxy.GetString("GuildCollectSummonNormal"); + this.SPECIALNAME = XStringDefineProxy.GetString("GuildCollectSummonSpecial"); + uint num2 = 101u; + for (;;) + { + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(num2); + bool flag = byNPCID == null || byNPCID.NPCType != 4u; + if (flag) + { + break; + } + XNpc xnpc = XSingleton.singleton.CreateNpc(num2, true); + xnpc.EngineObject.Position = XGameUI.Far_Far_Away; + this.NpcPool.Add(num2); + num--; + bool flag2 = num <= 0; + if (flag2) + { + break; + } + num2 += 1u; + } + } + + public void SyncNpcList(List list) + { + HashSet hashSet = new HashSet(); + for (int i = 0; i < list.Count; i++) + { + hashSet.Add(list[i].sprite_id); + } + for (int j = this.NpcList.Count - 1; j >= 0; j--) + { + bool flag = hashSet.Contains(this.NpcList[j].id); + if (flag) + { + hashSet.Remove(this.NpcList[j].id); + } + else + { + this.SetNpcInValid(j); + this.NpcList.RemoveAt(j); + } + } + bool flag2 = false; + for (int k = 0; k < list.Count; k++) + { + bool flag3 = hashSet.Contains(list[k].sprite_id); + if (flag3) + { + flag2 = true; + Vector3 pos; + pos= new Vector3((float)(list[k].position >> 16) / 100f, 0f, (float)(list[k].position & 65535) / 100f); + string name = string.IsNullOrEmpty(list[k].summoner) ? this.NORMALNAME : string.Format("{0}{1}", list[k].summoner, this.SPECIALNAME); + this.NpcList.Add(new CollectNpcInfo(list[k].sprite_id, pos, name)); + } + } + bool flag4 = flag2; + if (flag4) + { + this.SortNpcByMode(this._npcRefreshMode); + } + this.DealWithNpcList(); + } + + public void OnMeetNpc(uint uid) + { + bool flag = this.NpcIndex.ContainsValue(uid); + if (flag) + { + foreach (KeyValuePair keyValuePair in this.NpcIndex) + { + bool flag2 = keyValuePair.Value == uid; + if (flag2) + { + bool flag3 = this._lastSendNpcID == keyValuePair.Key && Time.time < this._lastSendNpcTime; + if (flag3) + { + return; + } + RpcC2G_GetGuildCamPartyRandItem rpcC2G_GetGuildCamPartyRandItem = new RpcC2G_GetGuildCamPartyRandItem(); + rpcC2G_GetGuildCamPartyRandItem.oArg.query_type = 2u; + rpcC2G_GetGuildCamPartyRandItem.oArg.npc_id = keyValuePair.Key; + XSingleton.singleton.Send(rpcC2G_GetGuildCamPartyRandItem); + this._lastSendNpcTime = Time.time + 0.5f; + return; + } + } + } + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILDACMPPATY_SPRITE_ONTEXIST, "fece00"); + } + + public void OnMeetLottery(uint uid) + { + bool flag = DlgBase.singleton.IsVisible(); + if (!flag) + { + int num = this.CheckLotteryCD(uid); + bool flag2 = num != -1; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("GuildCollectLotteryCDTips"), num), "fece00"); + } + else + { + this._lastMeetLotteryUid = uid; + DlgBase.singleton.ShowProcess(this._lotteryWaitTime, this._lotteryProcessText, this._lotteryProcessTips, new GuildInheritProcessDlg.OnSliderProcessEnd(this.QueryLottery)); + this.SetMoveState(false); + XNpc npc = XSingleton.singleton.GetNpc(uid); + bool flag3 = npc == null; + if (!flag3) + { + npc.ShowUp(null); + bool flag4 = npc != null; + if (flag4) + { + XSingleton.singleton.PlaySound(npc, AudioChannel.Motion, "Audio/UI/UI_rabbit"); + } + XSingleton.singleton.SetTimer(float.Parse(XSingleton.singleton.GetValue("GuildCollecBoxFxTime")), new XTimerMgr.ElapsedEventHandler(this.DelayCreateLotteryBoxFx), uid); + string[] array = XSingleton.singleton.GetValue("GuildCollecLotteryFxNum").Split(new char[] + { + '=' + }); + bool flag5 = array.Length < 2; + if (!flag5) + { + int num2 = XSingleton.singleton.RandomInt(int.Parse(array[0]), int.Parse(array[1]) + 1); + array = XSingleton.singleton.GetValue("GuildCollecLotteryFxProduce").Split(new char[] + { + '=' + }); + float min = float.Parse(array[0]); + float max = float.Parse(array[1]); + for (int i = 0; i < num2; i++) + { + XSingleton.singleton.SetTimer(XSingleton.singleton.RandomFloat(min, max), new XTimerMgr.ElapsedEventHandler(this.DelayCreateLotteryFlyFx), uid); + } + } + } + } + } + } + + public void DelayCreateLotteryBoxFx(object o) + { + uint id = (uint)o; + XNpc npc = XSingleton.singleton.GetNpc(id); + bool flag = npc == null; + if (!flag) + { + bool flag2 = this._lotteryBoxFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._lotteryBoxFx, true); + } + this._lotteryBoxFx = XSingleton.singleton.CreateFx(XGuildCollectDocument.LotteryBoxFXPATH, null, true); + this._lotteryBoxFx.Play(npc.EngineObject.Position, Quaternion.identity, Vector3.one, 1f); + } + } + + public void DelayCreateLotteryFlyFx(object o) + { + uint id = (uint)o; + XNpc npc = XSingleton.singleton.GetNpc(id); + bool flag = npc == null || XSingleton.singleton.Player == null; + if (!flag) + { + this.CreatLotteryFx(npc.EngineObject.Position, XSingleton.singleton.Player.EngineObject.Position + new Vector3(0f, 0.3f)); + } + } + + public void QueryLottery() + { + this.SetMoveState(true); + RpcC2G_GetGuildCamPartyRandItem rpcC2G_GetGuildCamPartyRandItem = new RpcC2G_GetGuildCamPartyRandItem(); + rpcC2G_GetGuildCamPartyRandItem.oArg.query_type = 1u; + rpcC2G_GetGuildCamPartyRandItem.oArg.npc_id = this._lastMeetLotteryUid; + XSingleton.singleton.Send(rpcC2G_GetGuildCamPartyRandItem); + } + + public void SetMoveState(bool state) + { + bool flag = XSingleton.singleton.Player != null && XSingleton.singleton.Player.Nav != null; + if (flag) + { + XSingleton.singleton.Player.Nav.Interrupt(); + XSingleton.singleton.Player.Nav.Enabled = state; + } + XSingleton.singleton.Freezed = !state; + } + + public void DealWithNpcList() + { + bool flag = this._npcRefreshMode == CollectNpcRefreshMode.Distance; + if (flag) + { + this.NpcList.Sort(new Comparison(this.Compare)); + } + int num = this._npcMaxShowNum; + for (int i = 0; i < this.NpcList.Count; i++) + { + bool flag2 = this.NpcIndex.ContainsKey(this.NpcList[i].id); + if (flag2) + { + num--; + } + } + bool flag3 = num > 0; + if (flag3) + { + for (int j = 0; j < this.NpcList.Count; j++) + { + bool use = this.NpcList[j].use; + if (!use) + { + bool flag4 = !this.NpcIndex.ContainsKey(this.NpcList[j].id); + if (flag4) + { + this.CreateNpc(this.NpcList[j].pos, this.NpcList[j].id, this.NpcList[j].name); + num--; + bool flag5 = num <= 0; + if (flag5) + { + break; + } + } + } + } + } + } + + private int Compare(CollectNpcInfo x, CollectNpcInfo y) + { + bool flag = x.id == y.id; + int result; + if (flag) + { + result = 0; + } + else + { + float num = Vector3.Distance(x.pos, XSingleton.singleton.Player.EngineObject.Position); + float num2 = Vector3.Distance(y.pos, XSingleton.singleton.Player.EngineObject.Position); + result = ((num > num2) ? 1 : -1); + } + return result; + } + + public void SortNpcByMode(CollectNpcRefreshMode mode) + { + bool flag = mode == CollectNpcRefreshMode.Distance; + if (flag) + { + this.NpcList.Sort(new Comparison(this.Compare)); + } + else + { + XSingleton.singleton.Shuffle(ref this.NpcList); + } + } + + public void SetNpcInValid(int index) + { + uint num = 0u; + bool flag = this.NpcIndex.TryGetValue(this.NpcList[index].id, out num); + if (flag) + { + this.ReturnPool(num); + this.NpcIndex.Remove(this.NpcList[index].id); + bool flag2 = XSingleton.singleton.LastNpc != null && XSingleton.singleton.LastNpc.TypeID == num; + if (flag2) + { + bool flag3 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.Nav != null; + if (flag3) + { + XSingleton.singleton.Player.Nav.Interrupt(); + } + XSingleton.singleton.LastNpc = null; + } + } + } + + public void ReturnPool(uint uid) + { + XNpc npc = XSingleton.singleton.GetNpc(uid); + bool flag = npc != null; + if (flag) + { + npc.EngineObject.Position = XGameUI.Far_Far_Away; + this.NpcPool.Add(uid); + } + } + + public void CreateNpc(Vector3 pos, uint npcID, string name) + { + bool flag = this.NpcPool.Count == 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("Get guildcollect Npc by pool error! It's a empty pool.", null, null, null, null, null); + } + else + { + int index = this.NpcPool.Count - 1; + uint num = this.NpcPool[index]; + this.NpcPool.RemoveAt(index); + XNpc npc = XSingleton.singleton.GetNpc(num); + bool flag2 = npc == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("create npc by pool error. id = ", num.ToString(), null, null, null, null); + } + else + { + bool flag3 = npc.BillBoard != null; + if (flag3) + { + npc.BillBoard.OnGuildCollectNpcNameChange(name); + } + npc.EngineObject.Position = pos; + npc.EngineObject.LocalEulerAngles = new Vector3(0f, XSingleton.singleton.RandomFloat(-180f, 180f), 0f); + this.NpcIndex[npcID] = num; + } + } + } + + public void SetLotteryMachineState(bool state, bool force = false) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_GUILD_HALL; + if (!flag) + { + bool flag2 = !force && state == this._lotteryMachineState; + if (!flag2) + { + this._lotteryMachineState = state; + bool lotteryMachineState = this._lotteryMachineState; + if (lotteryMachineState) + { + uint num = 100u; + for (;;) + { + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(num); + bool flag3 = byNPCID == null || byNPCID.NPCType != 5u; + if (flag3) + { + break; + } + XNpc xnpc = XSingleton.singleton.CreateNpc(num, true); + this.LotteryMachineList.Add(num); + XFx xfx = XSingleton.singleton.CreateFx(XGuildCollectDocument.m_fxPath, null, true); + bool flag4 = xfx != null && xnpc != null; + if (flag4) + { + this._fxList.Add(xfx); + xfx.Play(xnpc.EngineObject, new Vector3(-0.05f, xnpc.Height + 0.6f, 0f), Vector3.one, 1f, false, false, "", 0f); + } + num -= 1u; + } + } + else + { + for (int i = 0; i < this.LotteryMachineList.Count; i++) + { + XSingleton.singleton.DestroyNpc(this.LotteryMachineList[i]); + } + for (int j = 0; j < this._fxList.Count; j++) + { + bool flag5 = this._fxList[j] != null; + if (flag5) + { + XSingleton.singleton.DestroyFx(this._fxList[j], true); + } + } + this._fxList.Clear(); + this.LotteryMachineList.Clear(); + } + } + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this.NpcIndex.Clear(); + this.NpcList.Clear(); + this.NpcPool.Clear(); + this.LotteryMachineList.Clear(); + for (int i = 0; i < this._fxList.Count; i++) + { + bool flag = this._fxList[i] != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fxList[i], true); + } + } + this._fxList.Clear(); + bool flag2 = this._lotteryFxLink.Count != 0; + if (flag2) + { + LinkedListNode next; + for (LinkedListNode linkedListNode = this._lotteryFxLink.First; linkedListNode != null; linkedListNode = next) + { + next = linkedListNode.Next; + linkedListNode.Value.Destroy(); + this._lotteryFxLink.Remove(linkedListNode); + } + XSingleton.singleton.AddGreenLog("Clear guildcollect fx link, cout = ", this._lotteryFxLink.Count.ToString(), null, null, null, null); + } + bool flag3 = this._lotteryBoxFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._lotteryBoxFx, true); + this._lotteryBoxFx = null; + } + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceBtnState = state; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildCollectMainInterface, true); + } + + public void QuerySummon() + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("GuildCampSummonSpiritCost", false); + string text = string.Format(XStringDefineProxy.GetString("GuildCollectSummonTips"), XLabelSymbolHelper.FormatSmallIcon(sequenceList[0, 0]), sequenceList[0, 1]); + text = XSingleton.singleton.ReplaceReturn(text); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(text, @string, string2, new ButtonClickEventHandler(this.OnSummonSure)); + } + + public bool OnSummonSure(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + RpcC2G_GuildPartySummonSpirit rpc = new RpcC2G_GuildPartySummonSpirit(); + XSingleton.singleton.Send(rpc); + return true; + } + + public void QueryGetRewardCount() + { + RpcC2G_GetGuildPartyReceiveInfo rpc = new RpcC2G_GetGuildPartyReceiveInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnUseCountGet(List list) + { + this.CollectUseDict.Clear(); + for (int i = 0; i < list.Count; i++) + { + this.CollectUseDict[(uint)list[i].key] = (int)list[i].value; + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(); + } + } + + public void QueryGetReward(uint id) + { + RpcC2G_GetGuildCampPartyReward rpcC2G_GetGuildCampPartyReward = new RpcC2G_GetGuildCampPartyReward(); + rpcC2G_GetGuildCampPartyReward.oArg.reward_id = id; + XSingleton.singleton.Send(rpcC2G_GetGuildCampPartyReward); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void CreatLotteryFx(Vector3 startPos, Vector3 endPos) + { + string[] array = XSingleton.singleton.GetValue("GuildCollecLotteryFxDuration").Split(new char[] + { + '=' + }); + bool flag = array.Length < 2; + if (!flag) + { + float duration = XSingleton.singleton.RandomFloat(float.Parse(array[0]), float.Parse(array[1])); + array = XSingleton.singleton.GetValue("GuildCollecLotteryFxSpeed").Split(new char[] + { + '=' + }); + bool flag2 = array.Length < 2; + if (!flag2) + { + float speedY = XSingleton.singleton.RandomFloat(float.Parse(array[0]), float.Parse(array[1])); + ParabolaFx value = new ParabolaFx(XGuildCollectDocument.LotteryFlyFXPATH, duration, speedY, startPos, endPos); + this._lotteryFxLink.AddLast(value); + } + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = !this._activityState; + if (!flag) + { + bool flag2 = this._lotteryFxLink.Count == 0; + if (!flag2) + { + LinkedListNode next; + for (LinkedListNode linkedListNode = this._lotteryFxLink.First; linkedListNode != null; linkedListNode = next) + { + next = linkedListNode.Next; + bool flag3 = !linkedListNode.Value.Update(); + if (flag3) + { + this._lotteryFxLink.Remove(linkedListNode); + } + } + } + } + } + + public void SetTime(uint leftTime) + { + this.SignTime = XSingleton.singleton.GetMachineTime(); + this.LeftTime = leftTime; + this.SUMMONLEFTTIME = XSingleton.singleton.GetInt("GuildCampSummonSpiritTime"); + } + + public void RefreshTime(object o = null) + { + int num = (int)(XSingleton.singleton.GetMachineTime() - this.SignTime); + num = (int)(this.LeftTime - (uint)num); + int num2 = num - this.SUMMONLEFTTIME; + bool flag = num < 0; + if (flag) + { + num = 0; + } + bool flag2 = num2 < 0; + if (flag2) + { + num2 = 0; + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshGuildCollectTime(num, num2); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshTime(num); + } + this._hallTimeToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.RefreshTime), null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildCollectDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildCollectDocument.cs.meta new file mode 100644 index 00000000..6766c713 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildCollectDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3314ba52464564b439d38a39722ca7d3 +timeCreated: 1611403551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildConfig.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildConfig.cs new file mode 100644 index 00000000..62a72e55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildConfig.cs @@ -0,0 +1,244 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildConfig + { + public uint MaxLevel + { + get + { + return this._MaxLevel; + } + } + + private GuildConfigTable m_ConfigTable; + + private Dictionary m_UnlockLevel = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private XSysDefine[] _LockedSys = new XSysDefine[] + { + XSysDefine.XSys_GuildHall_SignIn, + XSysDefine.XSys_GuildHall_Skill, + XSysDefine.XSys_GuildBoon_RedPacket, + XSysDefine.XSys_GuildRelax_Joker, + XSysDefine.XSys_GuildBoon_Shop, + XSysDefine.XSys_GuildDragon, + XSysDefine.XSys_GuildMine, + XSysDefine.XSys_GuildPvp, + XSysDefine.XSys_GuildBoon_DailyActivity, + XSysDefine.XSys_GuildChallenge, + XSysDefine.XSys_GuildRelax_JokerMatch, + XSysDefine.XSys_GuildBoon_Salay, + XSysDefine.XSys_GuildTerritory, + XSysDefine.XSys_CrossGVG + }; + + private uint _MaxLevel; + + private List m_TotalExp = new List(); + + private List m_BaseExp = new List(); + + private List m_SkillCount = new List(); + + public void Init(GuildConfigTable configTable) + { + this.m_BaseExp.Clear(); + this.m_TotalExp.Clear(); + this.m_SkillCount.Clear(); + this.m_ConfigTable = configTable; + uint num = 0u; + this._MaxLevel = (uint)this.m_ConfigTable.Table.Length; + int num2 = 0; + while ((long)num2 < (long)((ulong)this.MaxLevel)) + { + GuildConfigTable.RowData rowData = this.m_ConfigTable.Table[num2]; + for (int i = 0; i < this._LockedSys.Length; i++) + { + bool flag = !this.m_UnlockLevel.ContainsKey(this._LockedSys[i]); + if (flag) + { + int value = XGuildConfig.GetValue(rowData, this._LockedSys[i]); + bool flag2 = value > 0; + if (flag2) + { + this.m_UnlockLevel.Add(this._LockedSys[i], (uint)(num2 + 1)); + } + } + } + this.m_BaseExp.Add(num); + num += rowData.GuildExpNeed; + this.m_TotalExp.Add(num); + this.m_SkillCount.Add(rowData.StudySkillTimes); + num2++; + } + } + + public GuildConfigTable.RowData GetDataByLevel(uint level) + { + bool flag = level > this._MaxLevel || level == 0u; + GuildConfigTable.RowData result; + if (flag) + { + result = null; + } + else + { + result = this.m_ConfigTable.Table[(int)(level - 1u)]; + } + return result; + } + + public static int GetValue(GuildConfigTable.RowData data, XSysDefine sys) + { + if (sys <= XSysDefine.XSys_GuildRelax_Joker) + { + if (sys <= XSysDefine.XSys_GuildHall_SignIn) + { + switch (sys) + { + case XSysDefine.XSys_GuildDragon: + return (int)data.GuildDragon; + case XSysDefine.XSys_GuildPvp: + return data.GuildArena; + case XSysDefine.XSys_GuildRedPacket: + break; + case XSysDefine.XSys_GuildMine: + return data.GuildMine; + case XSysDefine.XSys_CrossGVG: + return data.CrossGVG; + default: + if (sys == XSysDefine.XSys_GuildHall_SignIn) + { + return data.GuildSign; + } + break; + } + } + else + { + if (sys == XSysDefine.XSys_GuildHall_Skill) + { + return data.GuildSkill; + } + if (sys == XSysDefine.XSys_GuildRelax_Joker) + { + return data.PokerTimes; + } + } + } + else if (sys <= XSysDefine.XSys_GuildBoon_Salay) + { + if (sys == XSysDefine.XSys_GuildRelax_JokerMatch) + { + return data.GuildJokerMatch; + } + switch (sys) + { + case XSysDefine.XSys_GuildBoon_RedPacket: + return data.GuildWelfare; + case XSysDefine.XSys_GuildBoon_Shop: + return data.GuildStore; + case XSysDefine.XSys_GuildBoon_DailyActivity: + return data.GuildActivity; + case XSysDefine.XSys_GuildBoon_Salay: + return data.GuildSalay; + } + } + else + { + if (sys == XSysDefine.XSys_GuildChallenge) + { + return data.GuildChallenge; + } + if (sys == XSysDefine.XSys_GuildTerritory) + { + return data.GuildTerritory; + } + } + return 0; + } + + public bool IsSysUnlock(XSysDefine sys, uint level) + { + uint num = 0u; + bool flag = this.m_UnlockLevel.TryGetValue(sys, out num); + bool result; + if (flag) + { + bool flag2 = level >= num; + result = flag2; + } + else + { + result = true; + } + return result; + } + + public uint GetUnlockLevel(XSysDefine sys) + { + uint num = 1u; + bool flag = this.m_UnlockLevel.TryGetValue(sys, out num); + uint result; + if (flag) + { + result = num; + } + else + { + result = 1u; + } + return result; + } + + public uint GetBaseExp(uint level) + { + bool flag = (ulong)level > (ulong)((long)this.m_BaseExp.Count) || level == 0u; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = this.m_BaseExp[(int)(level - 1u)]; + } + return result; + } + + public uint GetTotalStudyCount(int startLevel, int endLevel) + { + uint num = 0u; + endLevel = Math.Min(endLevel, this.m_SkillCount.Count); + startLevel = 1; + bool flag = startLevel - 1 < endLevel; + if (flag) + { + for (int i = startLevel - 1; i < endLevel; i++) + { + num += this.m_SkillCount[i]; + } + } + return num; + } + + public uint GetTotalExp(uint level) + { + bool flag = (ulong)level > (ulong)((long)this.m_BaseExp.Count) || level == 0u; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = this.m_TotalExp[(int)(level - 1u)]; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildConfig.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildConfig.cs.meta new file mode 100644 index 00000000..b506cf9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildConfig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87834b0c9daba0b4183e2c2c502c3560 +timeCreated: 1611404079 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshBehavior.cs new file mode 100644 index 00000000..f22ff7a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshBehavior.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildDailyHandleRefreshBehavior : DlgBehaviourBase + { + public IXUIScrollView ScrollView; + + public IXUIWrapContent WrapContent; + + public IXUILabel HelpTimesLabel; + + public IXUIButton CloseBtn; + + public IXUILabel FreeTimeLabel; + + public IXUILabel TaskLucky; + + private void Awake() + { + this.ScrollView = (base.transform.Find("Bg/List").GetComponent("XUIScrollView") as IXUIScrollView); + this.WrapContent = (base.transform.Find("Bg/List/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.HelpTimesLabel = (base.transform.Find("Bg/TimesDec/Times").GetComponent("XUILabel") as IXUILabel); + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.FreeTimeLabel = (base.transform.Find("Bg/T").GetComponent("XUILabel") as IXUILabel); + this.TaskLucky = (base.transform.Find("Bg/TaskLevel/Lucky").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshBehavior.cs.meta new file mode 100644 index 00000000..0ef1cf83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 657e2d0f290f5cd4ab6c827d8df6f57b +timeCreated: 1611403850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshDlg.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshDlg.cs new file mode 100644 index 00000000..43e8d813 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshDlg.cs @@ -0,0 +1,142 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDailyHandleRefreshDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/DailyTaskInvitation"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnShow() + { + base.OnShow(); + XGuildDailyTaskDocument.Doc.SendToGetAskRefreshTaskInfo(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private void InitProperties() + { + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.InitWrapContent)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateWrapContent)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickToClose)); + base.uiBehaviour.FreeTimeLabel.SetText(string.Format(XStringDefineProxy.GetString("DailyFreeHelpOthersTime"), XSingleton.singleton.GetInt("DailyTaskMaxHelpCount"))); + } + + private bool OnClickToClose(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + private void InitWrapContent(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickToHelp)); + IXUIButton ixuibutton2 = itemTransform.Find("Cancel").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickToRefuse)); + } + + private void UpdateWrapContent(Transform itemTransform, int index) + { + DailyTaskRefreshRoleInfo taskAskInfoByIndex = XGuildDailyTaskDocument.Doc.GetTaskAskInfoByIndex(index); + bool flag = taskAskInfoByIndex != null; + if (flag) + { + IXUIButton ixuibutton = itemTransform.Find("OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = taskAskInfoByIndex.roleid; + IXUIButton ixuibutton2 = itemTransform.Find("Cancel").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = taskAskInfoByIndex.roleid; + IXUILabel ixuilabel = itemTransform.Find("Times").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("MyselfLeftRefreshTimes"), taskAskInfoByIndex.refresh_num)); + IXUILabel ixuilabel2 = itemTransform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(taskAskInfoByIndex.name); + IXUISprite ixuisprite = itemTransform.Find("Quality").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(ixuisprite.spriteName.Substring(0, ixuisprite.spriteName.Length - 1) + taskAskInfoByIndex.score); + IXUISprite ixuisprite2 = itemTransform.Find("head").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)taskAskInfoByIndex.profession)); + } + } + + private bool OnClickToRefuse(IXUIButton button) + { + ulong id = button.ID; + XGuildDailyTaskDocument.Doc.SendToRefreshTaskOp(DailyRefreshOperType.DROT_Refuse, id); + return true; + } + + private bool OnClickToHelp(IXUIButton button) + { + bool flag = XGuildDailyTaskDocument.Doc.HelpNum <= 0u; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DailyHelpTimesNotEnough"), "fece00"); + } + else + { + ulong id = button.ID; + XGuildDailyTaskDocument.Doc.SendToRefreshTaskOp(DailyRefreshOperType.DROT_Refresh, id); + } + return true; + } + + public void RefreshContent() + { + List stringList = XSingleton.singleton.GetStringList("LuckyLevel"); + int index = Mathf.Min((int)(XGuildDailyTaskDocument.Doc.MyLuck - 1u), stringList.Count - 1); + base.uiBehaviour.TaskLucky.SetText(stringList[index]); + List stringList2 = XSingleton.singleton.GetStringList("LuckyLevelColor"); + Color color = XSingleton.singleton.ConvertRGBStringToColor(stringList2[index]); + base.uiBehaviour.TaskLucky.SetColor(color); + int @int = XSingleton.singleton.GetInt("DailyTaskMaxHelpCount"); + base.uiBehaviour.HelpTimesLabel.SetText(XGuildDailyTaskDocument.Doc.HelpNum + "/" + @int); + List askInfoList = XGuildDailyTaskDocument.Doc.AskInfoList; + base.uiBehaviour.WrapContent.SetContentCount(askInfoList.Count, false); + base.uiBehaviour.ScrollView.ResetPosition(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshDlg.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshDlg.cs.meta new file mode 100644 index 00000000..fadba084 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyHandleRefreshDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7856a183c9f06543a0a72149c72884c +timeCreated: 1611404531 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskBehavior.cs new file mode 100644 index 00000000..486e3743 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskBehavior.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildDailyRefreshTaskBehavior : DlgBehaviourBase + { + public IXUIScrollView ScrollView; + + public IXUIWrapContent WrapContent; + + public IXUISprite AddSprite; + + public IXUISprite TaskLevelSprite; + + public IXUILabel RefreshTimesLabel; + + public IXUIButton CloseBtn; + + public IXUISprite HelpOtherRefresh; + + private void Awake() + { + this.ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.AddSprite = (base.transform.Find("Bg/RefreshTimes/BtnAdd").GetComponent("XUISprite") as IXUISprite); + this.RefreshTimesLabel = (base.transform.Find("Bg/RefreshTimes").GetComponent("XUILabel") as IXUILabel); + this.TaskLevelSprite = (base.transform.Find("Bg/TaskLevel").GetComponent("XUISprite") as IXUISprite); + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.HelpOtherRefresh = (base.transform.Find("Bg/BtnHelpGuild").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskBehavior.cs.meta new file mode 100644 index 00000000..0ea83318 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca84fb1880cb4514a8edd638dcb6714d +timeCreated: 1611404542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs new file mode 100644 index 00000000..5b4b3346 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDailyRefreshTaskDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/DailyTaskInviteDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnShow() + { + base.OnShow(); + XGuildDailyTaskDocument.Doc.SendToRefreshTasks(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public void RefreshContent() + { + base.uiBehaviour.RefreshTimesLabel.SetText(XGuildDailyTaskDocument.Doc.Refresh_num.ToString()); + List dailyTaskRefreshRoleInfoList = XGuildDailyTaskDocument.Doc.DailyTaskRefreshRoleInfoList; + base.uiBehaviour.WrapContent.SetContentCount(dailyTaskRefreshRoleInfoList.Count, false); + base.uiBehaviour.ScrollView.ResetPosition(); + base.uiBehaviour.TaskLevelSprite.SetSprite(base.uiBehaviour.TaskLevelSprite.spriteName.Substring(0, base.uiBehaviour.TaskLevelSprite.spriteName.Length - 1) + XGuildDailyTaskDocument.Doc.CurScore); + } + + private void InitProperties() + { + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.InitWrapContent)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateWrapContent)); + base.uiBehaviour.AddSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddRefreshTimes)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.HelpOtherRefresh.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpOthers)); + } + + private void OnHelpOthers(IXUISprite button) + { + this.SetVisible(false, true); + bool inGuild = XGuildDocument.InGuild; + if (inGuild) + { + DlgBase.singleton.SetVisible(true, true); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + private bool OnClose(IXUIButton button) + { + this.SetVisible(false, true); + XGuildDailyTaskDocument.Doc.SendGetDailyTaskInfo(); + return true; + } + + private void OnAddRefreshTimes(IXUISprite uiSprite) + { + List intList = XSingleton.singleton.GetIntList("BuyRefreshCost"); + int @int = XSingleton.singleton.GetInt("MaxBuyRefreshCount"); + uint todayBuyNumber = XGuildDailyTaskDocument.Doc.TodayBuyNumber; + bool flag = (ulong)todayBuyNumber < (ulong)((long)@int); + if (flag) + { + int num = intList[Mathf.Min(intList.Count - 1, (int)todayBuyNumber)]; + ulong virtualItemCount = XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN); + bool flag2 = (ulong)num <= virtualItemCount; + if (flag2) + { + string format = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BuyRefreshTaskCountStr")); + XSingleton.singleton.ShowModalDialog(string.Format(format, num, (long)@int - (long)((ulong)todayBuyNumber)), new ButtonClickEventHandler(this.ConfirmToBuy)); + } + else + { + DlgBase.singleton.ShowBorad(7); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ReachedToMaxBuyNumbers"), "fece00"); + } + } + + private bool ConfirmToBuy(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XGuildDailyTaskDocument.Doc.SendToRefreshTaskOp(DailyRefreshOperType.DROT_BuyCount, 0UL); + return true; + } + + private void UpdateWrapContent(Transform itemTransform, int index) + { + DailyTaskRefreshRoleInfo refreshTaskItemInfo = XGuildDailyTaskDocument.Doc.GetRefreshTaskItemInfo(index); + bool flag = refreshTaskItemInfo != null; + if (flag) + { + Transform transform = itemTransform.Find("Bg"); + transform.gameObject.SetActive(refreshTaskItemInfo.roleid != XSingleton.singleton.XPlayerData.RoleID); + Transform transform2 = itemTransform.Find("MySelfBg"); + transform2.gameObject.SetActive(refreshTaskItemInfo.roleid == XSingleton.singleton.XPlayerData.RoleID); + IXUIButton ixuibutton = itemTransform.Find("BtnInvite").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = refreshTaskItemInfo.roleid; + ixuibutton.SetEnable(!refreshTaskItemInfo.already_ask, false); + string text = (refreshTaskItemInfo.roleid == XSingleton.singleton.XPlayerData.RoleID) ? XStringDefineProxy.GetString("GuildDailyRefreshTask") : XStringDefineProxy.GetString("GuildDailyAskRefresh"); + bool flag2 = refreshTaskItemInfo.already_ask && refreshTaskItemInfo.roleid != XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + text = XStringDefineProxy.GetString("AlreadyAsked"); + } + IXUILabel ixuilabel = itemTransform.Find("BtnInvite/Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + string text2 = (refreshTaskItemInfo.roleid == XSingleton.singleton.XPlayerData.RoleID) ? (refreshTaskItemInfo.name + XStringDefineProxy.GetString("GuildScoreLogMe")) : refreshTaskItemInfo.name; + IXUILabel ixuilabel2 = itemTransform.Find("Info/Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(text2); + IXUILabel ixuilabel3 = itemTransform.Find("Info/Times").GetComponent("XUILabel") as IXUILabel; + string format = (refreshTaskItemInfo.roleid == XSingleton.singleton.XPlayerData.RoleID) ? XStringDefineProxy.GetString("MyselfLeftRefreshTimes") : XStringDefineProxy.GetString("GuildLeftRefreshTimes"); + ixuilabel3.SetText(string.Format(format, refreshTaskItemInfo.refresh_num)); + IXUILabel ixuilabel4 = itemTransform.Find("Luck").GetComponent("XUILabel") as IXUILabel; + List stringList = XSingleton.singleton.GetStringList("LuckyLevel"); + int index2 = Mathf.Min((int)(refreshTaskItemInfo.luck - 1u), stringList.Count - 1); + ixuilabel4.SetText(stringList[index2]); + List stringList2 = XSingleton.singleton.GetStringList("LuckyLevelColor"); + Color color = XSingleton.singleton.ConvertRGBStringToColor(stringList2[index2]); + ixuilabel4.SetColor(color); + IXUISprite ixuisprite = itemTransform.Find("Info/AvatarBG/Avatar").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)refreshTaskItemInfo.profession)); + Transform transform3 = itemTransform.Find("Info/AvatarBG/Relation/Guild"); + transform3.gameObject.SetActive(refreshTaskItemInfo.roleid != XSingleton.singleton.XPlayerData.RoleID); + Transform transform4 = itemTransform.Find("Info/AvatarBG/Online"); + transform4.gameObject.SetActive(refreshTaskItemInfo.is_online); + } + } + + private void InitWrapContent(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("BtnInvite").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickToRefreshTask)); + } + + private bool OnClickToRefreshTask(IXUIButton button) + { + ulong id = button.ID; + bool flag = XGuildDailyTaskDocument.Doc.Refresh_num > 0u; + if (flag) + { + bool flag2 = id == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + bool flag3 = XGuildDailyTaskDocument.Doc.CurScore == 4u; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DailyTaskGetToBestQuality"), "fece00"); + } + else + { + XGuildDailyTaskDocument.Doc.SendToRefreshTaskOp(DailyRefreshOperType.DROT_Refresh, id); + } + } + else + { + bool flag4 = XGuildDailyTaskDocument.Doc.CurScore == 4u; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DailyTaskGetToBestQuality"), "fece00"); + } + else + { + XGuildDailyTaskDocument.Doc.SendToRefreshTaskOp(DailyRefreshOperType.DROT_AskHelp, id); + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NoRefreshTaskTimes"), "fece00"); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs.meta new file mode 100644 index 00000000..8f6500a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyRefreshTaskDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2ae8673cb36c0544baf059384134824 +timeCreated: 1611404494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs new file mode 100644 index 00000000..f2f4a4e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs @@ -0,0 +1,71 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDailyTaskBehavior : DlgBehaviourBase + { + public IXUIButton CompleteTaskBtn = null; + + public Transform CurrentRewardsGrid = null; + + public Transform AdditionalRewardsGrid = null; + + public IXUIButton SubmmitBtn = null; + + public IXUIButton CloseBtn = null; + + public XUIPool RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel timeLabel; + + public IXUILabel taskTimeLabel; + + public IXUILabel taskNumLabel; + + public IXUIWrapContent TaskContent; + + public IXUIButton RefreshTaskBtn; + + public Transform RefreshRecordRoot; + + public IXUISprite TaskLevelSprite; + + public IXUIButton RefreshLogBtn; + + public IXUIWrapContent RefreshLogWrapContent; + + public IXUIScrollView RefreshLogScrollView; + + public IXUIButton RefreshCloseBtn; + + public IXUILabel TalkLabel; + + public IXUIButton TipButton; + + private void Awake() + { + this.SubmmitBtn = (base.transform.Find("Submmit").GetComponent("XUIButton") as IXUIButton); + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.CurrentRewardsGrid = base.transform.Find("Rewards/BaseRewards"); + this.AdditionalRewardsGrid = base.transform.Find("Rewards/AllRewards"); + this.RewardPool.SetupPool(null, base.transform.Find("Rewards/Tpl").gameObject, 2u, false); + this.timeLabel = (base.transform.Find("TimesDec2/Times").GetComponent("XUILabel") as IXUILabel); + this.taskTimeLabel = (base.transform.Find("TimesDec/Times").GetComponent("XUILabel") as IXUILabel); + this.taskNumLabel = (base.transform.Find("BaseInfo/Num").GetComponent("XUILabel") as IXUILabel); + this.TalkLabel = (base.transform.Find("Talk").GetComponent("XUILabel") as IXUILabel); + this.TaskContent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.RefreshTaskBtn = (base.transform.Find("Refresh").GetComponent("XUIButton") as IXUIButton); + this.RefreshRecordRoot = base.transform.Find("LogPanel"); + this.TaskLevelSprite = (base.transform.Find("TaskLevel").GetComponent("XUISprite") as IXUISprite); + this.RefreshLogBtn = (base.transform.Find("RefreshLogBtn").GetComponent("XUIButton") as IXUIButton); + this.RefreshLogWrapContent = (this.RefreshRecordRoot.Find("LogMenu/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.RefreshLogScrollView = (this.RefreshRecordRoot.Find("LogMenu/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.RefreshCloseBtn = (this.RefreshRecordRoot.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.TipButton = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs.meta new file mode 100644 index 00000000..c3687571 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46d95b11efa8cdc4b93d95b71bfc64eb +timeCreated: 1611403651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskDocument.cs new file mode 100644 index 00000000..ded1df9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskDocument.cs @@ -0,0 +1,1200 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDailyTaskDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildDailyTaskDocument.uuID; + } + } + + public static XGuildDailyTaskDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XGuildDailyTaskDocument.uuID) as XGuildDailyTaskDocument; + } + } + + public uint TaskRoleLevel + { + get + { + return this._taskRoleLevel; + } + set + { + this._taskRoleLevel = value; + this.ResetRewardsMap(); + } + } + + public uint AskedNum + { + get + { + return this._askedNum; + } + set + { + this._askedNum = value; + } + } + + public uint Count + { + get + { + return this._count; + } + set + { + this._count = value; + } + } + + public bool IsRewarded + { + get + { + return this._isRewarded; + } + set + { + this._isRewarded = value; + } + } + + public List DailyTaskRefreshRoleInfoList + { + get + { + return this._dailyTaskRefreshRoleInfoList; + } + } + + public List AskInfoList + { + get + { + return this._askInfoList; + } + } + + public List DailyTaskRefreshRecordList + { + get + { + return this._dailyTaskRefreshRecordList; + } + } + + public uint Refresh_num + { + get + { + return this._refresh_num; + } + } + + public uint CurScore + { + get + { + return this._curScore; + } + } + + public uint TodayBuyNumber + { + get + { + return this._todayBuyNum; + } + } + + public uint HelpNum + { + get + { + return this._helpNum; + } + } + + public uint MyLuck + { + get + { + return this._myLuck; + } + } + + public bool DailyTaskHelpRefreshIcon { get; set; } + + public bool DailyTaskBeenRefreshIcon { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildDailyTaskDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static DailyTask _dailyTaskInfoTable = new DailyTask(); + + public static DailyTaskReward DailyTaskRewardTable = new DailyTaskReward(); + + private Dictionary _guildTaskRewardWithMap = new Dictionary(); + + private List _curGuildDailyTaskList = new List(); + + private uint _taskRoleLevel = 1u; + + private uint _askedNum = 0u; + + private uint _count = 0u; + + private bool _isRewarded = false; + + private List _dailyTaskRefreshRoleInfoList = new List(); + + private uint _myLuck = 1u; + + private uint _refresh_num; + + private uint _todayBuyNum; + + private List _askInfoList = new List(); + + private uint _helpNum; + + private List _dailyTaskRefreshRecordList = new List(); + + private uint _curScore; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildDailyTaskDocument.AsyncLoader.AddTask("Table/DailyTask", XGuildDailyTaskDocument._dailyTaskInfoTable, false); + XGuildDailyTaskDocument.AsyncLoader.AddTask("Table/DailyTaskReward", XGuildDailyTaskDocument.DailyTaskRewardTable, false); + XGuildDailyTaskDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.DailyTaskHelpRefreshIcon = false; + this.DailyTaskBeenRefreshIcon = false; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_TaskStateChange, new XComponent.XEventHandler(this.OnTaskStateChanged)); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.InitFromServerData(arg.PlayerInfo.task_record); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void SendGetDailyTaskInfo() + { + RpcC2G_GetDailyTaskInfo rpc = new RpcC2G_GetDailyTaskInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetDailyTasks(GetDailyTaskInfoRes res) + { + this.UpdateTaskContent(res.task); + this.TaskRoleLevel = res.accept_level; + this.AskedNum = res.askhelp_num; + this.Count = res.count; + this.IsRewarded = res.is_rewarded; + this._curScore = res.score; + this._refresh_num = res.remain_refresh_count; + this._myLuck = Math.Max(1u, res.luck); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshTaskContent(); + } + } + + public void GiveUpTask() + { + RpcC2G_DailyTaskGiveUp rpc = new RpcC2G_DailyTaskGiveUp(); + XSingleton.singleton.Send(rpc); + } + + public void OnGiveUpTask(DailyTaskGiveUpRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + private bool OnTaskStateChanged(XEventArgs e) + { + XTaskStatusChangeArgs xtaskStatusChangeArgs = e as XTaskStatusChangeArgs; + bool flag = xtaskStatusChangeArgs.status == TaskStatus.TaskStatus_Taked; + if (flag) + { + uint id = xtaskStatusChangeArgs.id; + TaskTableNew.RowData taskData = XTaskDocument.GetTaskData(id); + bool flag2 = taskData != null; + if (flag2) + { + bool flag3 = taskData.TaskType == 4u; + if (flag3) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + bool flag4 = taskData.TaskType == 7u; + if (flag4) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + return true; + } + + private void UpdateTaskContent(List task) + { + this._curGuildDailyTaskList.Clear(); + for (int i = 0; i < task.Count; i++) + { + DailyTaskInfo dailyTaskInfo = task[i]; + this._curGuildDailyTaskList.Add(new GuildDailyTaskInfo + { + taskID = dailyTaskInfo.id, + step = dailyTaskInfo.step, + isRewarded = dailyTaskInfo.is_rewarded, + hasAsked = dailyTaskInfo.ask_help + }); + } + this._curGuildDailyTaskList.Sort(new Comparison(this.SortDailyTask)); + } + + public DailyTaskReward.RowData GetSingleTaskRewardInfoByID(GuildTaskType type, uint taskID) + { + DailyTask.RowData dailyTaskTableInfoByID = this.GetDailyTaskTableInfoByID(taskID); + bool flag = dailyTaskTableInfoByID != null; + if (flag) + { + uint mappingValueWithQualityAndType = XGuildDailyTaskDocument.GetMappingValueWithQualityAndType(type, 1u, dailyTaskTableInfoByID.taskquality); + DailyTaskReward.RowData result; + bool flag2 = this._guildTaskRewardWithMap.TryGetValue(mappingValueWithQualityAndType, out result); + if (flag2) + { + return result; + } + } + return null; + } + + public DailyTaskReward.RowData GetTotalTaskRewardInfo(GuildTaskType type, uint count) + { + uint mappingValueWithQualityAndType = XGuildDailyTaskDocument.GetMappingValueWithQualityAndType(type, 2u, count); + DailyTaskReward.RowData rowData; + bool flag = this._guildTaskRewardWithMap.TryGetValue(mappingValueWithQualityAndType, out rowData); + DailyTaskReward.RowData result; + if (flag) + { + result = rowData; + } + else + { + result = null; + } + return result; + } + + public bool GoToTakeTask() + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + XTaskRecord taskRecord = specificDocument.TaskRecord; + for (int i = 0; i < taskRecord.Tasks.Count; i++) + { + bool flag = taskRecord.Tasks[i].Status == TaskStatus.TaskStatus_CanTake && taskRecord.Tasks[i].TableData.TaskType == 4u; + if (flag) + { + return true; + } + } + return false; + } + + public int GetRewardedTaskCount() + { + int num = 0; + for (int i = 0; i < this._curGuildDailyTaskList.Count; i++) + { + bool isRewarded = this._curGuildDailyTaskList[i].isRewarded; + if (isRewarded) + { + num++; + } + } + return num; + } + + internal GuildDailyTaskInfo GetTaskInfoByIndex(int index) + { + bool flag = index < this._curGuildDailyTaskList.Count; + GuildDailyTaskInfo result; + if (flag) + { + result = this._curGuildDailyTaskList[index]; + } + else + { + result = null; + } + return result; + } + + public int GetTaskItemCount() + { + return this._curGuildDailyTaskList.Count; + } + + public void SendToGetMyTaskReward(uint type, uint id) + { + RpcC2G_GetDailyTaskReward rpcC2G_GetDailyTaskReward = new RpcC2G_GetDailyTaskReward(); + rpcC2G_GetDailyTaskReward.oArg.type = type; + rpcC2G_GetDailyTaskReward.oArg.id = id; + XSingleton.singleton.Send(rpcC2G_GetDailyTaskReward); + } + + public void OnGetDailyTaskReward(GetDailyTaskRewardArg oArg, GetDailyTaskRewardRes oRes) + { + bool flag = oRes.code == ErrorCode.ERR_SUCCESS; + if (flag) + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + int rewardedTaskCount = XGuildDailyTaskDocument.Doc.GetRewardedTaskCount(); + bool flag2 = rewardedTaskCount >= XSingleton.singleton.GetInt("DailyTaskMinTotalTaskCount") && oArg.type == 2u; + if (flag2) + { + DailyTaskReward.RowData totalTaskRewardInfo = this.GetTotalTaskRewardInfo(GuildTaskType.DailyTask, (uint)rewardedTaskCount); + bool flag3 = totalTaskRewardInfo == null; + if (flag3) + { + return; + } + List list = new List(); + SeqListRef? rewadsByScore = this.GetRewadsByScore(totalTaskRewardInfo, this._curScore); + bool flag4 = rewadsByScore != null; + if (flag4) + { + for (int i = 0; i < (int)rewadsByScore.Value.count; i++) + { + ItemBrief itemBrief = new ItemBrief(); + itemBrief.itemID = rewadsByScore.Value[i, 0]; + int num = (int)rewadsByScore.Value[i, 1]; + bool flag5 = itemBrief.itemID == 4u && specificDocument.IsInLevelSeal(); + if (flag5) + { + num = (int)((double)num * 0.5); + } + itemBrief.itemCount = (uint)num; + list.Add(itemBrief); + } + } + bool flag6 = rewardedTaskCount >= this.GetTaskItemCount(); + if (flag6) + { + List additionalRewards = this.GetAdditionalRewards(); + foreach (GuildTaskReward guildTaskReward in additionalRewards) + { + ItemBrief itemBrief2 = new ItemBrief(); + itemBrief2.itemID = guildTaskReward.itemID; + uint num2 = guildTaskReward.count; + bool flag7 = guildTaskReward.itemID == 4u && specificDocument.IsInLevelSeal(); + if (flag7) + { + num2 = (uint)(num2 * 0.5); + } + itemBrief2.itemCount = num2; + list.Add(itemBrief2); + } + } + DlgBase.singleton.ShowByTitle(list, XSingleton.singleton.GetString("DailyTaskRewards"), null); + } + this.UpdateTaskContent(oRes.task); + bool flag8 = oArg.type == 1u; + if (flag8) + { + bool flag9 = DlgBase.singleton.IsVisible(); + if (flag9) + { + DlgBase.singleton.RefreshTaskItemByID(oArg.id); + } + } + else + { + bool flag10 = oArg.type == 2u; + if (flag10) + { + bool flag11 = DlgBase.singleton.IsVisible(); + if (flag11) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.code, "fece00"); + } + } + + public GuildDailyTaskInfo GetTaskInfoByID(uint id) + { + for (int i = 0; i < this._curGuildDailyTaskList.Count; i++) + { + bool flag = this._curGuildDailyTaskList[i].taskID == id; + if (flag) + { + return this._curGuildDailyTaskList[i]; + } + } + return null; + } + + public DailyTask.RowData GetDailyTaskTableInfoByID(uint taskID) + { + for (int i = 0; i < XGuildDailyTaskDocument._dailyTaskInfoTable.Table.Length; i++) + { + DailyTask.RowData rowData = XGuildDailyTaskDocument._dailyTaskInfoTable.Table[i]; + bool flag = rowData.taskID == taskID; + if (flag) + { + return rowData; + } + } + return null; + } + + public List GetAdditionalRewards() + { + for (int i = 0; i < XGuildDailyTaskDocument.DailyTaskRewardTable.Table.Length; i++) + { + DailyTaskReward.RowData rowData = XGuildDailyTaskDocument.DailyTaskRewardTable.Table[i]; + uint num = rowData.level[0]; + uint num2 = rowData.level[1]; + SeqListRef? extraRewadsByScore = this.GetExtraRewadsByScore(rowData, this._curScore); + bool flag = this._taskRoleLevel >= num && this._taskRoleLevel <= num2 && extraRewadsByScore != null && extraRewadsByScore.Value.count > 0; + if (flag) + { + List list = new List(); + for (int j = 0; j < extraRewadsByScore.Value.Count; j++) + { + list.Add(new GuildTaskReward + { + itemID = extraRewadsByScore.Value[j, 0], + count = extraRewadsByScore.Value[j, 1] + }); + } + return list; + } + } + return null; + } + + public static uint GetMappingValueWithQualityAndType(GuildTaskType category, uint type, uint quality) + { + return (uint)(10000 * (int)category + (int)(1000u * type) + (int)quality); + } + + public SeqListRef? GetRewadsByScore(DailyTaskReward.RowData data, uint score) + { + SeqListRef? result; + switch (score) + { + case 0u: + result = new SeqListRef?(data.reward_d); + break; + case 1u: + result = new SeqListRef?(data.reward_c); + break; + case 2u: + result = new SeqListRef?(data.reward_b); + break; + case 3u: + result = new SeqListRef?(data.reward_a); + break; + case 4u: + result = new SeqListRef?(data.reward_s); + break; + default: + result = null; + break; + } + return result; + } + + public SeqListRef? GetExtraRewadsByScore(DailyTaskReward.RowData data, uint score) + { + SeqListRef? result; + switch (score) + { + case 0u: + result = new SeqListRef?(data.extrareward_d); + break; + case 1u: + result = new SeqListRef?(data.extrareward_c); + break; + case 2u: + result = new SeqListRef?(data.extrareward_b); + break; + case 3u: + result = new SeqListRef?(data.extrareward_a); + break; + case 4u: + result = new SeqListRef?(data.extrareward_s); + break; + default: + result = null; + break; + } + return result; + } + + private int SortDailyTask(GuildDailyTaskInfo x, GuildDailyTaskInfo y) + { + bool flag = x.isRewarded ^ y.isRewarded; + int result; + if (flag) + { + result = (x.isRewarded ? 1 : -1); + } + else + { + DailyTask.RowData dailyTaskTableInfoByID = this.GetDailyTaskTableInfoByID(x.taskID); + DailyTask.RowData dailyTaskTableInfoByID2 = this.GetDailyTaskTableInfoByID(y.taskID); + bool flag2 = dailyTaskTableInfoByID == null || dailyTaskTableInfoByID2 == null; + if (flag2) + { + result = 0; + } + else + { + bool flag3 = dailyTaskTableInfoByID.taskquality != dailyTaskTableInfoByID2.taskquality; + if (flag3) + { + result = (int)(dailyTaskTableInfoByID2.taskquality - dailyTaskTableInfoByID.taskquality); + } + else + { + result = (int)(dailyTaskTableInfoByID.taskID - dailyTaskTableInfoByID2.taskID); + } + } + } + return result; + } + + private void ResetRewardsMap() + { + this._guildTaskRewardWithMap.Clear(); + for (int i = 0; i < XGuildDailyTaskDocument.DailyTaskRewardTable.Table.Length; i++) + { + DailyTaskReward.RowData rowData = XGuildDailyTaskDocument.DailyTaskRewardTable.Table[i]; + uint num = rowData.level[0]; + uint num2 = rowData.level[1]; + bool flag = this._taskRoleLevel >= num && this._taskRoleLevel <= num2; + if (flag) + { + uint mappingValueWithQualityAndType = XGuildDailyTaskDocument.GetMappingValueWithQualityAndType((GuildTaskType)rowData.category, rowData.tasktype, rowData.taskquality); + bool flag2 = !this._guildTaskRewardWithMap.ContainsKey(mappingValueWithQualityAndType); + if (flag2) + { + this._guildTaskRewardWithMap.Add(mappingValueWithQualityAndType, rowData); + } + else + { + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "Same taskType and quality", + this._taskRoleLevel, + " type", + rowData.tasktype, + " quality", + rowData.taskquality, + " index", + i + }), null, null, null, null, null); + } + } + } + } + + public void SendDailyTaskAskHelp(PeriodTaskType type, uint taskID) + { + RpcC2G_DailyTaskAskHelp rpcC2G_DailyTaskAskHelp = new RpcC2G_DailyTaskAskHelp(); + rpcC2G_DailyTaskAskHelp.oArg.task_id = taskID; + rpcC2G_DailyTaskAskHelp.oArg.task_type = type; + XSingleton.singleton.Send(rpcC2G_DailyTaskAskHelp); + } + + public void OnGetDailyHelpReply(DailyTaskAskHelpArg oArg, DailyTaskAskHelpRes oRes) + { + bool flag = oRes.code == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ReqHelpSuccess"), "fece00"); + DailyTask.RowData dailyTaskTableInfoByID = this.GetDailyTaskTableInfoByID(oArg.task_id); + this.SendGuildDonateReq(dailyTaskTableInfoByID.conditionNum, dailyTaskTableInfoByID.conditionId[0], oRes.ask_uid, NoticeType.NT_GUILD_Daily_DONATE_REQ); + GuildDailyTaskInfo taskInfoByID = this.GetTaskInfoByID(oArg.task_id); + bool flag2 = taskInfoByID != null; + if (flag2) + { + taskInfoByID.hasAsked = true; + uint askedNum = this.AskedNum; + this.AskedNum = askedNum + 1u; + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshTaskItemByID(oArg.task_id); + } + } + } + } + + public void SendToRefreshTasks() + { + RpcC2M_GetDailyTaskRefreshInfo rpc = new RpcC2M_GetDailyTaskRefreshInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetTaskRefreshInfo(GetDailyTaskRefreshInfoRes oRes) + { + this._dailyTaskRefreshRoleInfoList = oRes.friendinfo; + this._myLuck = Math.Max(1u, oRes.luck); + this._refresh_num = oRes.refresh_num; + this._todayBuyNum = oRes.today_buy_num; + this._dailyTaskRefreshRoleInfoList.Sort(new Comparison(this.SortTaskRefreshInfo)); + this._dailyTaskRefreshRoleInfoList.Insert(0, new DailyTaskRefreshRoleInfo + { + luck = this._myLuck, + refresh_num = this._refresh_num, + roleid = XSingleton.singleton.XPlayerData.RoleID, + profession = XSingleton.singleton.XPlayerData.Profession, + already_ask = (this._refresh_num <= 0u), + name = XSingleton.singleton.XPlayerData.Name + }); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshContent(); + } + } + + private int SortTaskRefreshInfo(DailyTaskRefreshRoleInfo x, DailyTaskRefreshRoleInfo y) + { + bool flag = x.luck != y.luck; + int result; + if (flag) + { + result = (int)(y.luck - x.luck); + } + else + { + bool flag2 = x.time != y.time; + if (flag2) + { + result = (int)(y.time - x.time); + } + else + { + int friendDegreeAll = (int)DlgBase.singleton.GetFriendDegreeAll(x.roleid); + int friendDegreeAll2 = (int)DlgBase.singleton.GetFriendDegreeAll(y.roleid); + result = friendDegreeAll2 - friendDegreeAll; + } + } + return result; + } + + public void SendToGetAskRefreshTaskInfo() + { + RpcC2M_GetDailyTaskAskHelp rpc = new RpcC2M_GetDailyTaskAskHelp(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetTaskHelpInfo(GetDailyTaskAskHelpRes oRes) + { + this._askInfoList = oRes.askinfos; + bool flag = this._askInfoList.Count == 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DailyTaskRefreshOutdate"), "fece00"); + } + this._helpNum = oRes.help_num; + this._myLuck = Math.Max(1u, oRes.luck); + this.RefreshRequestSysIcon(); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshContent(); + } + } + + public void SendToGetRefreshLogInfo() + { + RpcC2M_GetDailyTaskRefreshRecord rpc = new RpcC2M_GetDailyTaskRefreshRecord(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetRefreshRecordInfo(GetDailyTaskRefreshRecordRes oRes) + { + this._dailyTaskRefreshRecordList = oRes.records; + this._dailyTaskRefreshRecordList.Reverse(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = false; + for (int i = 0; i < this._dailyTaskRefreshRecordList.Count; i++) + { + bool isnew = this._dailyTaskRefreshRecordList[i].isnew; + if (isnew) + { + flag2 = true; + break; + } + } + bool flag3 = flag2; + if (flag3) + { + DlgBase.singleton.RefreshLogContent(); + } + } + } + + public void SendToRefreshTaskOp(DailyRefreshOperType type, ulong roleID) + { + RpcC2M_DailyTaskRefreshOper rpcC2M_DailyTaskRefreshOper = new RpcC2M_DailyTaskRefreshOper(); + rpcC2M_DailyTaskRefreshOper.oArg.type = type; + rpcC2M_DailyTaskRefreshOper.oArg.roleid = roleID; + XSingleton.singleton.Send(rpcC2M_DailyTaskRefreshOper); + } + + public void OnGetTaskRefreshOperResult(DailyTaskRefreshOperArg oArg, DailyTaskRefreshOperRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + switch (oArg.type) + { + case DailyRefreshOperType.DROT_Refresh: + { + bool flag2 = this._refresh_num > 0u; + if (flag2) + { + this._refresh_num -= 1u; + } + for (int i = 0; i < this._askInfoList.Count; i++) + { + bool flag3 = this._askInfoList[i].roleid == oArg.roleid; + if (flag3) + { + this._askInfoList[i].refresh_num -= 1u; + this._askInfoList[i].score = oRes.score; + List intList = XSingleton.singleton.GetIntList("DailyGuildRefreshNotifyLevel"); + bool flag4 = intList.Contains((int)oRes.score); + if (flag4) + { + this.SendNotifyToGuildChannel(this._askInfoList[i], (int)oRes.score); + } + bool flag5 = this._askInfoList[i].refresh_num <= 0u || oRes.score == 4u; + if (flag5) + { + this._askInfoList.RemoveAt(i); + } + break; + } + } + bool flag6 = oArg.roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag6) + { + this._curScore = oRes.score; + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + bool flag8 = this._dailyTaskRefreshRoleInfoList.Count > 0 && this._dailyTaskRefreshRoleInfoList[0].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag8) + { + this._dailyTaskRefreshRoleInfoList[0].refresh_num = this._refresh_num; + this._dailyTaskRefreshRoleInfoList[0].already_ask = (this._dailyTaskRefreshRoleInfoList[0].refresh_num <= 0u); + } + DlgBase.singleton.RefreshContent(); + } + } + else + { + this._helpNum -= 1u; + } + bool flag9 = DlgBase.singleton.IsVisible(); + if (flag9) + { + DlgBase.singleton.RefreshContent(); + } + DlgBase.singleton.AfterScore = oRes.score; + DlgBase.singleton.BeforeScore = oRes.oldscore; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XGuildMemberDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + specificDocument.RefreshMemberTaskScore(oArg.roleid, oRes.score); + bool flag10 = DlgBase.singleton.IsVisible(); + if (flag10) + { + DlgBase.singleton.OnRefreshDailyTaskReply(); + } + break; + } + case DailyRefreshOperType.DROT_Refuse: + { + for (int j = 0; j < this._askInfoList.Count; j++) + { + bool flag11 = this._askInfoList[j].roleid == oArg.roleid; + if (flag11) + { + this._askInfoList.RemoveAt(j); + break; + } + } + bool flag12 = this._askInfoList.Count == 0; + if (flag12) + { + this.DailyTaskHelpRefreshIcon = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildDailyRequest, true); + } + bool flag13 = DlgBase.singleton.IsVisible(); + if (flag13) + { + DlgBase.singleton.RefreshContent(); + } + break; + } + case DailyRefreshOperType.DROT_BuyCount: + { + this._refresh_num += 1u; + this._todayBuyNum += 1u; + bool flag14 = this._dailyTaskRefreshRoleInfoList.Count > 0 && this._dailyTaskRefreshRoleInfoList[0].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag14) + { + this._dailyTaskRefreshRoleInfoList[0].refresh_num = this._refresh_num; + this._dailyTaskRefreshRoleInfoList[0].already_ask = (this._dailyTaskRefreshRoleInfoList[0].refresh_num <= 0u); + } + bool flag15 = DlgBase.singleton.IsVisible(); + if (flag15) + { + DlgBase.singleton.RefreshContent(); + } + break; + } + case DailyRefreshOperType.DROT_AskHelp: + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DailyAskForHelpSuccess"), "fece00"); + for (int k = 0; k < this._dailyTaskRefreshRoleInfoList.Count; k++) + { + bool flag16 = this._dailyTaskRefreshRoleInfoList[k].roleid == oArg.roleid; + if (flag16) + { + this._dailyTaskRefreshRoleInfoList[k].already_ask = true; + break; + } + } + bool flag17 = DlgBase.singleton.IsVisible(); + if (flag17) + { + DlgBase.singleton.RefreshContent(); + } + break; + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + bool flag18 = oArg.roleid == XSingleton.singleton.XPlayerData.RoleID && oArg.type == DailyRefreshOperType.DROT_Refresh && oRes.result == ErrorCode.ERR_DAILY_TASK_NO_REFRESH_COUNT; + if (flag18) + { + this._refresh_num = 0u; + bool flag19 = DlgBase.singleton.IsVisible(); + if (flag19) + { + bool flag20 = this._dailyTaskRefreshRoleInfoList.Count > 0 && this._dailyTaskRefreshRoleInfoList[0].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag20) + { + this._dailyTaskRefreshRoleInfoList[0].refresh_num = this._refresh_num; + this._dailyTaskRefreshRoleInfoList[0].already_ask = (this._dailyTaskRefreshRoleInfoList[0].refresh_num <= 0u); + } + DlgBase.singleton.RefreshContent(); + } + } + bool flag21 = oArg.type == DailyRefreshOperType.DROT_Refuse || oArg.type == DailyRefreshOperType.DROT_Refresh; + if (flag21) + { + for (int l = 0; l < this._askInfoList.Count; l++) + { + bool flag22 = this._askInfoList[l].roleid == oArg.roleid; + if (flag22) + { + this._askInfoList.RemoveAt(l); + break; + } + } + } + this.RefreshRequestSysIcon(); + bool flag23 = DlgBase.singleton.IsVisible(); + if (flag23) + { + DlgBase.singleton.RefreshContent(); + } + } + } + + private void SendNotifyToGuildChannel(DailyTaskRefreshRoleInfo dailyTaskRefreshRoleInfo, int level) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.CheckInGuild(); + if (!flag) + { + XInvitationDocument specificDocument2 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + NoticeTable.RowData noticeData = specificDocument2.GetNoticeData(NoticeType.NT_GUILD_Daily_Refresh_Thanks_REQ); + bool flag2 = noticeData == null; + if (!flag2) + { + string itemQualityName = XSingleton.singleton.GetItemQualityName(level); + List stringList = XSingleton.singleton.GetStringList("LuckyLevel"); + int index = Math.Min((int)(this._myLuck - 1u), stringList.Count - 1); + List list = new List(); + ChatParam chatParam = new ChatParam(); + chatParam.link = new ChatParamLink(); + chatParam.link.id = noticeData.linkparam; + chatParam.link.content = noticeData.linkcontent; + ChatParam chatParam2 = new ChatParam(); + chatParam2.role = new ChatParamRole(); + chatParam2.role.uniqueid = XSingleton.singleton.XPlayerData.RoleID; + chatParam2.role.name = XSingleton.singleton.XPlayerData.Name; + chatParam2.role.profession = XSingleton.singleton.XPlayerData.TypeID; + ChatParam chatParam3 = new ChatParam(); + chatParam3.role = new ChatParamRole(); + chatParam3.role.uniqueid = dailyTaskRefreshRoleInfo.roleid; + chatParam3.role.name = dailyTaskRefreshRoleInfo.name; + chatParam3.role.profession = (uint)dailyTaskRefreshRoleInfo.profession; + list.Add(chatParam2); + list.Add(chatParam3); + list.Add(chatParam); + DlgBase.singleton.SendChatContent(string.Format(noticeData.info, stringList[index], itemQualityName), (ChatChannelType)noticeData.channel, true, list, true, 0UL, 0f, false, false); + } + } + } + + public void OnGetDailyTaskEvent(PtcM2C_DailyTaskEventNtf roPtc) + { + bool flag = roPtc.Data.type == DailyTaskIconType.DailyTaskIcon_AskHelp; + if (flag) + { + this.DailyTaskHelpRefreshIcon = true; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildDailyRequest, true); + } + else + { + bool flag2 = roPtc.Data.type == DailyTaskIconType.DailyTaskIcon_BeHelp; + if (flag2) + { + this.DailyTaskBeenRefreshIcon = true; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildDailyTask, true); + } + else + { + bool flag3 = roPtc.Data.type == DailyTaskIconType.DailyTaskIcon_AskHelpDispear; + if (flag3) + { + this.DailyTaskHelpRefreshIcon = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildDailyRequest, true); + } + } + } + } + + public DailyTaskRefreshRoleInfo GetTaskAskInfoByIndex(int index) + { + bool flag = index < this._askInfoList.Count; + DailyTaskRefreshRoleInfo result; + if (flag) + { + result = this._askInfoList[index]; + } + else + { + result = null; + } + return result; + } + + public DailyTaskRefreshRoleInfo GetRefreshTaskItemInfo(int index) + { + bool flag = index < this._dailyTaskRefreshRoleInfoList.Count; + DailyTaskRefreshRoleInfo result; + if (flag) + { + result = this._dailyTaskRefreshRoleInfoList[index]; + } + else + { + result = null; + } + return result; + } + + public DailyTaskRefreshInfo GetRefreshTaskLogInfo(int index) + { + bool flag = index < this._dailyTaskRefreshRecordList.Count; + DailyTaskRefreshInfo result; + if (flag) + { + result = this._dailyTaskRefreshRecordList[index]; + } + else + { + result = null; + } + return result; + } + + public DailyTaskRefreshInfo GetRefreshTaskLogInfoByRoleID(ulong roleID) + { + for (int i = 0; i < this._dailyTaskRefreshRecordList.Count; i++) + { + bool flag = this._dailyTaskRefreshRecordList[i].roleid == roleID; + if (flag) + { + return this._dailyTaskRefreshRecordList[i]; + } + } + return null; + } + + public void SendGuildDonateReq(uint number, uint itemID, uint reqID, NoticeType type = NoticeType.NT_GUILD_Daily_DONATE_REQ) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.CheckInGuild(); + if (!flag) + { + XInvitationDocument specificDocument2 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + NoticeTable.RowData noticeData = specificDocument2.GetNoticeData(type); + bool flag2 = noticeData == null; + if (!flag2) + { + List list = new List(); + ChatParam chatParam = new ChatParam(); + chatParam.link = new ChatParamLink(); + chatParam.link.id = noticeData.linkparam; + chatParam.link.param.Add((ulong)reqID); + chatParam.link.content = noticeData.linkcontent; + ChatParam chatParam2 = new ChatParam(); + chatParam2.role = new ChatParamRole(); + chatParam2.role.uniqueid = XSingleton.singleton.XPlayerData.RoleID; + chatParam2.role.name = XSingleton.singleton.XPlayerData.Name; + chatParam2.role.profession = XSingleton.singleton.XPlayerData.TypeID; + ChatParam chatParam3 = new ChatParam(); + chatParam3.item = new ChatParamItem(); + chatParam3.item.item = new ItemBrief(); + chatParam3.item.item.itemCount = number; + chatParam3.item.item.itemID = itemID; + list.Add(chatParam2); + list.Add(chatParam3); + list.Add(chatParam); + DlgBase.singleton.SendChatContent(noticeData.info, (ChatChannelType)noticeData.channel, true, list, true, 0UL, 0f, false, false); + } + } + } + + public void InitFromServerData(RoleTask roleTask) + { + bool flag = roleTask.dailytask.Count == 0; + if (flag) + { + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GuildDailyTask, false); + } + else + { + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GuildDailyTask, roleTask.daily_red_point); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildDailyTask, true); + XGuildDonateDocument.Doc.DailyDonatedNum = roleTask.today_donate_count; + } + + public void ClearRequesetItems() + { + this._askInfoList.Clear(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshContent(); + } + this.RefreshRequestSysIcon(); + } + + public void OnTaskRefreshNtf(PtcM2C_TaskRefreshNtf roPtc) + { + this._curScore = roPtc.Data.score; + this._refresh_num = roPtc.Data.remain_refresh_count; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendGetDailyTaskInfo(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + bool flag3 = this._dailyTaskRefreshRoleInfoList.Count > 0 && this._dailyTaskRefreshRoleInfoList[0].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + this._dailyTaskRefreshRoleInfoList[0].refresh_num = this._refresh_num; + this._dailyTaskRefreshRoleInfoList[0].already_ask = (this._dailyTaskRefreshRoleInfoList[0].refresh_num <= 0u); + } + DlgBase.singleton.RefreshContent(); + } + } + + private void RefreshRequestSysIcon() + { + bool flag = this._askInfoList.Count == 0; + if (flag) + { + this.DailyTaskHelpRefreshIcon = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildDailyRequest, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskDocument.cs.meta new file mode 100644 index 00000000..acdef535 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae982954253daa04792df1732ef4a842 +timeCreated: 1611404340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskView.cs new file mode 100644 index 00000000..f1421e87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskView.cs @@ -0,0 +1,619 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDailyTaskView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildDailyTask"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return 886; + } + } + + private IXUIWrapContent _taskContent = null; + + private uint _curTabedTaskID = 0u; + + private bool selectedDefault = false; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.RefreshRecordRoot.gameObject.SetActive(false); + this._curTabedTaskID = 0u; + this.selectedDefault = false; + XGuildDailyTaskDocument.Doc.SendGetDailyTaskInfo(); + XGuildDailyTaskDocument.Doc.SendToGetRefreshLogInfo(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + XGuildDailyTaskDocument.Doc.SendGetDailyTaskInfo(); + } + + public void Refresh() + { + } + + public void RefreshGuildDailyContent() + { + } + + private void InitProperties() + { + base.uiBehaviour.RefreshRecordRoot.gameObject.SetActive(true); + base.uiBehaviour.SubmmitBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickSubmmitBtn)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.Onclose)); + this._taskContent = base.uiBehaviour.TaskContent; + this._taskContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.InitTaskItem)); + this._taskContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateTaskItem)); + base.uiBehaviour.RefreshTaskBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRefreshBtn)); + base.uiBehaviour.RefreshLogBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRefreshLogBtn)); + base.uiBehaviour.RefreshCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseRefreshLogView)); + base.uiBehaviour.RefreshLogWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateRefreshLogItem)); + base.uiBehaviour.TipButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowInstruction)); + } + + private bool OnShowInstruction(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildDailyTask); + return true; + } + + private void OnUpdateRefreshLogItem(Transform itemTransform, int index) + { + DailyTaskRefreshInfo refreshTaskLogInfo = XGuildDailyTaskDocument.Doc.GetRefreshTaskLogInfo(index); + bool flag = refreshTaskLogInfo != null; + if (flag) + { + IXUILabel ixuilabel = itemTransform.Find("Content").GetComponent("XUILabel") as IXUILabel; + string text = (refreshTaskLogInfo.roleid == XSingleton.singleton.XPlayerData.RoleID) ? XStringDefineProxy.GetString("GuildDailySelfFreshTask") : string.Format(XStringDefineProxy.GetString("GuildDailyFriendFreshTask", new object[] + { + refreshTaskLogInfo.name + }), new object[0]); + ixuilabel.SetText(text); + IXUISprite ixuisprite = itemTransform.Find("TaskLevel").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(ixuisprite.spriteName.Substring(0, ixuisprite.spriteName.Length - 1) + refreshTaskLogInfo.score); + IXUISprite ixuisprite2 = itemTransform.Find("BeforeTaskLevel").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(ixuisprite2.spriteName.Substring(0, ixuisprite2.spriteName.Length - 1) + refreshTaskLogInfo.old_score); + IXUISprite ixuisprite3 = itemTransform.Find("New").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.gameObject.SetActive(refreshTaskLogInfo.isnew); + string text2 = new DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(refreshTaskLogInfo.time).ToLocalTime().ToString("yyyy-MM-dd H:mm"); + IXUILabel ixuilabel2 = itemTransform.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(text2); + IXUISprite ixuisprite4 = itemTransform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + ixuisprite4.ID = refreshTaskLogInfo.roleid; + ixuisprite4.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickToShowRoleDetail)); + } + } + + private void OnClickToShowRoleDetail(IXUISprite uiSprite) + { + bool flag = uiSprite.ID != XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(uiSprite.ID, false); + } + } + + private bool OnCloseRefreshLogView(IXUIButton button) + { + XGuildDailyTaskDocument.Doc.DailyTaskBeenRefreshIcon = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildDailyTask, true); + base.uiBehaviour.RefreshRecordRoot.gameObject.SetActive(false); + return true; + } + + private bool OnClickRefreshLogBtn(IXUIButton button) + { + this.RefreshLogContent(); + return true; + } + + private bool OnClickRefreshBtn(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool Onclose(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnclickSubmmitBtn(IXUIButton button) + { + int rewardedTaskCount = XGuildDailyTaskDocument.Doc.GetRewardedTaskCount(); + bool flag = rewardedTaskCount >= XSingleton.singleton.GetInt("DailyTaskMinTotalTaskCount"); + if (flag) + { + bool flag2 = rewardedTaskCount < XGuildDailyTaskDocument.Doc.GetTaskItemCount(); + if (flag2) + { + XSingleton.singleton.ShowModalDialog(XSingleton.singleton.GetString("ConfirmToSumbmit"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this.OnConfirmToSubmit)); + } + else + { + XGuildDailyTaskDocument.Doc.SendToGetMyTaskReward(2u, 0u); + } + } + return true; + } + + private bool OnConfirmToSubmit(IXUIButton button) + { + XGuildDailyTaskDocument.Doc.SendToGetMyTaskReward(2u, 0u); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnCacelTask(IXUIButton button) + { + XGuildDailyTaskDocument.Doc.GiveUpTask(); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnclickReqHelpBtn(IXUIButton button) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument.bInGuild; + if (bInGuild) + { + XGuildDailyTaskDocument.Doc.SendDailyTaskAskHelp(PeriodTaskType.PeriodTaskType_Daily, (uint)button.ID); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("NotInGuild"), "fece00"); + } + return true; + } + + private bool OnclickCompleteBtn(IXUIButton button) + { + GuildDailyTaskInfo taskInfoByID = XGuildDailyTaskDocument.Doc.GetTaskInfoByID((uint)button.ID); + bool flag = taskInfoByID != null; + if (flag) + { + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(taskInfoByID.taskID); + bool flag2 = dailyTaskTableInfoByID != null; + if (flag2) + { + bool flag3 = taskInfoByID.step >= dailyTaskTableInfoByID.conditionNum; + if (flag3) + { + XGuildDailyTaskDocument.Doc.SendToGetMyTaskReward(1u, (uint)button.ID); + } + else + { + bool flag4 = dailyTaskTableInfoByID.tasktype == 1u; + if (flag4) + { + XSingleton.singleton.ShowItemAccess((int)dailyTaskTableInfoByID.conditionId[0], null); + } + else + { + this.ItemAccessByID(taskInfoByID.taskID); + } + } + } + } + return true; + } + + private void InitTaskItem(Transform itemTransform, int index) + { + IXUICheckBox ixuicheckBox = itemTransform.Find("Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSwitchTaskItem)); + IXUISprite ixuisprite = itemTransform.Find("Item/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnclickIcon)); + IXUIButton ixuibutton = itemTransform.Find("GetBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickCompleteBtn)); + IXUIButton ixuibutton2 = itemTransform.Find("ReqHelp").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickReqHelpBtn)); + IXUISprite ixuisprite2 = itemTransform.Find("boss").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnclickBossIcon)); + } + + private void OnclickBossIcon(IXUISprite uiSprite) + { + this.ItemAccessByID((uint)uiSprite.ID); + } + + private void ItemAccessByID(uint taskID) + { + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(taskID); + bool flag = dailyTaskTableInfoByID == null; + if (!flag) + { + List list = new List(); + List list2 = new List(); + for (int i = 0; i < dailyTaskTableInfoByID.BQ.Count; i++) + { + list.Add((int)dailyTaskTableInfoByID.BQ[i, 0]); + list2.Add((int)dailyTaskTableInfoByID.BQ[i, 1]); + } + DlgBase.singleton.ShowMonsterAccess(dailyTaskTableInfoByID.NPCID, list, list2, null); + } + } + + private void OnclickIcon(IXUISprite uiSprite) + { + XSingleton.singleton.ShowItemAccess((int)uiSprite.ID, null); + } + + private bool OnSwitchTaskItem(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this._curTabedTaskID = (uint)iXUICheckBox.ID; + } + return true; + } + + private void UpdateRightPanel(ulong taskID) + { + } + + private void UpdateTotalTaskRewards() + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + base.uiBehaviour.RewardPool.ReturnAll(false); + int rewardedTaskCount = XGuildDailyTaskDocument.Doc.GetRewardedTaskCount(); + int count = Math.Min(Math.Max(XSingleton.singleton.GetInt("DailyTaskMinTotalTaskCount"), rewardedTaskCount + 1), XGuildDailyTaskDocument.Doc.GetTaskItemCount()); + DailyTaskReward.RowData totalTaskRewardInfo = XGuildDailyTaskDocument.Doc.GetTotalTaskRewardInfo(GuildTaskType.DailyTask, (uint)count); + bool flag = totalTaskRewardInfo != null; + if (flag) + { + SeqListRef? rewadsByScore = XGuildDailyTaskDocument.Doc.GetRewadsByScore(totalTaskRewardInfo, XGuildDailyTaskDocument.Doc.CurScore); + bool flag2 = rewadsByScore != null; + if (flag2) + { + for (int i = 0; i < (int)rewadsByScore.Value.count; i++) + { + GameObject gameObject = base.uiBehaviour.RewardPool.FetchGameObject(false); + int num = (int)rewadsByScore.Value[i, 1]; + bool flag3 = rewadsByScore.Value[i, 0] == 4u && specificDocument.IsInLevelSeal(); + if (flag3) + { + num = (int)((double)num * 0.5); + } + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rewadsByScore.Value[i, 0], num, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rewadsByScore.Value[i, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject.transform.parent = base.uiBehaviour.CurrentRewardsGrid; + } + IXUIList ixuilist = base.uiBehaviour.CurrentRewardsGrid.GetComponent("XUIList") as IXUIList; + ixuilist.Refresh(); + } + } + List additionalRewards = XGuildDailyTaskDocument.Doc.GetAdditionalRewards(); + bool flag4 = additionalRewards != null; + if (flag4) + { + for (int j = 0; j < additionalRewards.Count; j++) + { + GameObject gameObject2 = base.uiBehaviour.RewardPool.FetchGameObject(false); + int num2 = (int)additionalRewards[j].count; + bool flag5 = additionalRewards[j].itemID == 4u && specificDocument.IsInLevelSeal(); + if (flag5) + { + num2 = (int)((double)num2 * 0.5); + } + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)additionalRewards[j].itemID, num2, false); + IXUISprite ixuisprite2 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)additionalRewards[j].itemID; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject2.transform.parent = base.uiBehaviour.AdditionalRewardsGrid; + } + IXUIList ixuilist2 = base.uiBehaviour.AdditionalRewardsGrid.GetComponent("XUIList") as IXUIList; + ixuilist2.Refresh(); + } + Transform transform = base.uiBehaviour.SubmmitBtn.gameObject.transform.Find("RedPoint"); + bool flag6 = rewardedTaskCount >= XGuildDailyTaskDocument.Doc.GetTaskItemCount(); + if (flag6) + { + transform.gameObject.SetActive(true); + } + else + { + transform.gameObject.SetActive(false); + } + Transform transform2 = base.uiBehaviour.SubmmitBtn.gameObject.transform.Find("task"); + IXUILabel ixuilabel = transform2.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetString("SubmmitTask")); + base.uiBehaviour.SubmmitBtn.gameObject.SetActive(true); + base.uiBehaviour.SubmmitBtn.SetEnable(true, false); + bool isRewarded = XGuildDailyTaskDocument.Doc.IsRewarded; + if (isRewarded) + { + transform.gameObject.SetActive(false); + base.uiBehaviour.SubmmitBtn.SetEnable(false, false); + ixuilabel.SetText(XSingleton.singleton.GetString("dailyTaskFinish")); + } + else + { + bool flag7 = rewardedTaskCount < XSingleton.singleton.GetInt("DailyTaskMinTotalTaskCount"); + if (flag7) + { + base.uiBehaviour.SubmmitBtn.gameObject.SetActive(false); + } + } + base.uiBehaviour.taskTimeLabel.SetText(rewardedTaskCount + "/" + XGuildDailyTaskDocument.Doc.GetTaskItemCount()); + base.uiBehaviour.timeLabel.SetText(XGuildDailyTaskDocument.Doc.AskedNum + "/" + XSingleton.singleton.GetInt("DailyTaskAskHelpNum")); + base.uiBehaviour.taskNumLabel.SetText(count.ToString()); + } + + private void UpdateTaskItem(Transform itemTransform, int index) + { + GuildDailyTaskInfo taskInfoByIndex = XGuildDailyTaskDocument.Doc.GetTaskInfoByIndex(index); + bool flag = taskInfoByIndex != null; + if (flag) + { + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(taskInfoByIndex.taskID); + bool flag2 = dailyTaskTableInfoByID == null; + if (!flag2) + { + IXUILabel ixuilabel = itemTransform.Find("ResName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(dailyTaskTableInfoByID.taskdescription); + IXUILabel ixuilabel2 = itemTransform.Find("Progress").GetComponent("XUILabel") as IXUILabel; + IXUICheckBox ixuicheckBox = itemTransform.Find("Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)taskInfoByIndex.taskID; + uint step = taskInfoByIndex.step; + uint conditionNum = dailyTaskTableInfoByID.conditionNum; + IXUILabel ixuilabel3 = itemTransform.Find("GetBtn/T").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(XSingleton.singleton.GetString("GoToSubmit")); + Transform transform = itemTransform.Find("boss"); + transform.gameObject.SetActive(true); + Transform transform2 = itemTransform.Find("Item"); + transform2.gameObject.SetActive(true); + IXUISprite ixuisprite = itemTransform.Find("Item/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)dailyTaskTableInfoByID.conditionId[0]; + bool flag3 = dailyTaskTableInfoByID.tasktype == 1u; + if (flag3) + { + transform.gameObject.SetActive(false); + XSingleton.singleton.normalItemDrawer.DrawItem(transform2.gameObject, (int)dailyTaskTableInfoByID.conditionId[0], 0, false); + IXUISprite ixuisprite2 = transform2.Find("Quality").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(ixuisprite2.spriteName.Substring(0, ixuisprite2.spriteName.Length - 1) + dailyTaskTableInfoByID.taskquality); + bool flag4 = step < conditionNum; + if (flag4) + { + ixuilabel3.SetText(XSingleton.singleton.GetString("GotoObtain")); + } + } + else + { + bool flag5 = step < conditionNum; + if (flag5) + { + ixuilabel3.SetText(XSingleton.singleton.GetString("GoToFight")); + } + transform2.gameObject.SetActive(false); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(dailyTaskTableInfoByID.NPCID); + IXUISprite ixuisprite3 = transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)dailyTaskTableInfoByID.taskID; + bool flag6 = byID != null; + if (flag6) + { + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + ixuisprite3.SetSprite(byPresentID.Avatar, byPresentID.Atlas, false); + } + IXUISprite ixuisprite4 = transform.Find("p").GetComponent("XUISprite") as IXUISprite; + ixuisprite4.SetSprite(ixuisprite4.spriteName.Substring(0, ixuisprite4.spriteName.Length - 1) + dailyTaskTableInfoByID.taskquality); + } + IXUIButton ixuibutton = itemTransform.Find("ReqHelp").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)taskInfoByIndex.taskID; + DailyTaskReward.RowData singleTaskRewardInfoByID = XGuildDailyTaskDocument.Doc.GetSingleTaskRewardInfoByID(GuildTaskType.DailyTask, taskInfoByIndex.taskID); + IXUISprite ixuisprite5 = itemTransform.Find("god").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite6 = itemTransform.Find("exp").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel4 = itemTransform.Find("godLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = itemTransform.Find("expLabel").GetComponent("XUILabel") as IXUILabel; + bool flag7 = singleTaskRewardInfoByID != null; + if (flag7) + { + SeqListRef taskreward = singleTaskRewardInfoByID.taskreward; + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint num = taskreward[0, 1]; + uint num2 = taskreward[1, 1]; + bool flag8 = taskreward[0, 0] == 4u && specificDocument.IsInLevelSeal(); + if (flag8) + { + num = (uint)(num * 0.5); + } + bool flag9 = taskreward[1, 0] == 4u && specificDocument.IsInLevelSeal(); + if (flag9) + { + num2 = (uint)(num2 * 0.5); + } + ixuilabel4.SetText(num.ToString()); + ixuilabel5.SetText(num2.ToString()); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)taskreward[0, 0]); + ixuisprite5.SetSprite(itemConf.ItemIcon1[0]); + itemConf = XBagDocument.GetItemConf((int)taskreward[1, 0]); + ixuisprite6.SetSprite(itemConf.ItemIcon1[0]); + } + IXUIButton ixuibutton2 = itemTransform.Find("GetBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = (ulong)taskInfoByIndex.taskID; + Transform transform3 = itemTransform.Find("RedPoint"); + Transform transform4 = itemTransform.Find("CompleteFlag"); + ixuilabel2.SetText(step + "/" + conditionNum); + bool flag10 = step >= conditionNum && !taskInfoByIndex.isRewarded; + if (flag10) + { + transform3.gameObject.SetActive(true); + } + else + { + transform3.gameObject.SetActive(false); + } + ixuibutton2.SetEnable(true, false); + bool isRewarded = taskInfoByIndex.isRewarded; + if (isRewarded) + { + ixuibutton2.gameObject.SetActive(false); + transform4.gameObject.SetActive(true); + } + else + { + bool isRewarded2 = XGuildDailyTaskDocument.Doc.IsRewarded; + if (isRewarded2) + { + ixuibutton2.gameObject.SetActive(true); + ixuibutton2.SetEnable(false, false); + transform4.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + } + else + { + ixuibutton2.gameObject.SetActive(true); + transform4.gameObject.SetActive(false); + } + } + ixuibutton.gameObject.SetActive(true); + bool flag11 = taskInfoByIndex.hasAsked || (ulong)XGuildDailyTaskDocument.Doc.AskedNum >= (ulong)((long)XSingleton.singleton.GetInt("DailyTaskAskHelpNum")); + if (flag11) + { + ixuibutton.SetEnable(false, false); + } + else + { + ixuibutton.SetEnable(true, false); + } + IXUILabel ixuilabel6 = ixuibutton.gameObject.transform.Find("GetLabel").GetComponent("XUILabel") as IXUILabel; + bool hasAsked = taskInfoByIndex.hasAsked; + if (hasAsked) + { + ixuilabel6.SetText(XSingleton.singleton.GetString("DailyTaskGetted")); + } + else + { + ixuilabel6.SetText(XSingleton.singleton.GetString("DailyTaskGet")); + } + bool flag12 = (step >= conditionNum && !taskInfoByIndex.hasAsked) || dailyTaskTableInfoByID.tasktype != 1u || taskInfoByIndex.isRewarded || XGuildDailyTaskDocument.Doc.IsRewarded; + if (flag12) + { + ixuibutton.gameObject.SetActive(false); + } + } + } + } + + public void RefreshLogContent() + { + base.uiBehaviour.RefreshRecordRoot.gameObject.SetActive(true); + List dailyTaskRefreshRecordList = XGuildDailyTaskDocument.Doc.DailyTaskRefreshRecordList; + base.uiBehaviour.RefreshLogWrapContent.SetContentCount(dailyTaskRefreshRecordList.Count, false); + base.uiBehaviour.RefreshLogScrollView.ResetPosition(); + } + + public void RefreshTaskItemByID(uint id) + { + this._taskContent.RefreshAllVisibleContents(); + int rewardedTaskCount = XGuildDailyTaskDocument.Doc.GetRewardedTaskCount(); + base.uiBehaviour.RefreshTaskBtn.gameObject.SetActive(rewardedTaskCount == 0); + base.uiBehaviour.TalkLabel.SetText(string.Format(XSingleton.singleton.GetString("GuildDailyTaskLeftRefreshTimes"), XGuildDailyTaskDocument.Doc.Refresh_num)); + base.uiBehaviour.TalkLabel.gameObject.SetActive(rewardedTaskCount == 0 && XGuildDailyTaskDocument.Doc.Refresh_num > 0u); + this.UpdateTotalTaskRewards(); + } + + public void RefreshTaskContent() + { + base.uiBehaviour.TaskLevelSprite.SetSprite(base.uiBehaviour.TaskLevelSprite.spriteName.Substring(0, base.uiBehaviour.TaskLevelSprite.spriteName.Length - 1) + XGuildDailyTaskDocument.Doc.CurScore); + int rewardedTaskCount = XGuildDailyTaskDocument.Doc.GetRewardedTaskCount(); + base.uiBehaviour.RefreshTaskBtn.gameObject.SetActive(rewardedTaskCount == 0); + base.uiBehaviour.TalkLabel.SetText(string.Format(XSingleton.singleton.GetString("GuildDailyTaskLeftRefreshTimes"), XGuildDailyTaskDocument.Doc.Refresh_num)); + base.uiBehaviour.TalkLabel.gameObject.SetActive(rewardedTaskCount == 0 && XGuildDailyTaskDocument.Doc.Refresh_num > 0u); + int taskItemCount = XGuildDailyTaskDocument.Doc.GetTaskItemCount(); + bool flag = taskItemCount > 0; + if (flag) + { + this._taskContent.SetContentCount(taskItemCount, false); + this.UpdateTotalTaskRewards(); + } + } + + private void InitDefaultSelectedTaskItem() + { + bool flag = !this.selectedDefault; + if (flag) + { + Transform transform = this._taskContent.gameObject.transform; + bool flag2 = transform.childCount > 0; + if (flag2) + { + Transform child = transform.GetChild(0); + IXUICheckBox ixuicheckBox = child.Find("Normal").GetComponent("XUICheckBox") as IXUICheckBox; + bool flag3 = ixuicheckBox != null; + if (flag3) + { + ixuicheckBox.ForceSetFlag(true); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskView.cs.meta new file mode 100644 index 00000000..e5fceaa3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDailyTaskView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 817402d39b24fc34994b6b11d4b90789 +timeCreated: 1611404037 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDocument.cs new file mode 100644 index 00000000..ccd688c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDocument.cs @@ -0,0 +1,686 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildDocument.uuID; + } + } + + public static XGuildConfig GuildConfig + { + get + { + return XGuildDocument._GuildConfig; + } + } + + public static XGuildPP GuildPP + { + get + { + return XGuildDocument._GuildPP; + } + } + + public static bool InGuild + { + get + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + return specificDocument.bInGuild; + } + } + + public XGuildBasicData BasicData + { + get + { + return this.m_BasicData; + } + } + + public ulong UID + { + get + { + return this.m_BasicData.uid; + } + } + + public GuildPosition Position + { + get + { + return this.m_Position; + } + } + + public uint Level + { + get + { + return this.m_BasicData.level; + } + } + + public uint CurSkillUpCount + { + get + { + return 0u; + } + } + + public uint MaxSkillUpCount + { + get + { + bool flag = !this.bInGuild; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = XGuildDocument.GuildConfig.GetDataByLevel(this.Level).StudySkillTimes; + } + return result; + } + } + + public string PortraitSprite + { + get + { + return XGuildDocument.GetPortraitName(this.m_BasicData.portraitIndex); + } + } + + public uint CurrentCanUseExp + { + get + { + return 0u; + } + } + + public uint CurrentTotalExp + { + get + { + bool flag = !this.bInGuild; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = XGuildDocument.GuildConfig.GetBaseExp(this.Level) + this.m_BasicData.exp; + } + return result; + } + } + + public uint CurrentLevelTotalExp + { + get + { + bool flag = !this.bInGuild; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = XGuildDocument.GuildConfig.GetBaseExp(this.Level) + this.m_BasicData.exp; + } + return result; + } + } + + public bool bInGuild + { + get + { + return this.UID > 0UL; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GuildPermissionTable m_PermissionTable = new GuildPermissionTable(); + + private static GuildConfigTable m_ConfigTable = new GuildConfigTable(); + + private static Guildintroduce m_IntroduceTable = new Guildintroduce(); + + private static XGuildConfig _GuildConfig = new XGuildConfig(); + + private static XGuildPP _GuildPP = new XGuildPP(); + + private XGuildBasicData m_BasicData = new XGuildBasicData(); + + private bool _bInited = false; + + private GuildPosition m_Position; + + private float m_fEnterTime = 0f; + + public GuildBindStatus qqGroupBindStatus; + + public string qqGroupName; + + public static string GetPortraitName(int index) + { + return "ghicon_" + index.ToString(); + } + + public bool SetID(ulong id) + { + bool flag = !this._bInited || this.m_BasicData.uid != id; + this.m_BasicData.uid = id; + bool flag2 = flag; + if (flag2) + { + bool bInGuild = this.bInGuild; + if (bInGuild) + { + try + { + } + catch + { + } + } + } + return flag; + } + + public bool SetLevel(uint newLevel) + { + bool result = this.m_BasicData.level != 0u && this.m_BasicData.level != newLevel && this.m_BasicData.uid > 0UL; + this.m_BasicData.level = newLevel; + return result; + } + + public bool SetPosition(GuildPosition newPos) + { + bool result = this.m_Position != GuildPosition.GPOS_COUNT && this.m_Position != newPos && this.m_BasicData.uid > 0UL; + this.m_Position = newPos; + return result; + } + + public Guildintroduce.RowData GetIntroduce(string helpName) + { + return XGuildDocument.m_IntroduceTable.GetByHelpName(helpName); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildDocument.AsyncLoader.AddTask("Table/GuildPermission", XGuildDocument.m_PermissionTable, false); + XGuildDocument.AsyncLoader.AddTask("Table/GuildConfig", XGuildDocument.m_ConfigTable, false); + XGuildDocument.AsyncLoader.AddTask("Table/GuildIntroduce", XGuildDocument.m_IntroduceTable, false); + XGuildDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._bInited = false; + this.m_Position = GuildPosition.GPOS_COUNT; + this.m_BasicData.uid = 0UL; + this.m_BasicData.level = 0u; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnInGuildStateChanged)); + base.RegisterEvent(XEventDefine.XEvent_GuildPositionChanged, new XComponent.XEventHandler(this.OnGuildPositionChanged)); + } + + protected bool OnInGuildStateChanged(XEventArgs args) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = args as XInGuildStateChangedEventArgs; + bool bRoleInit = xinGuildStateChangedEventArgs.bRoleInit; + bool result; + if (bRoleInit) + { + result = true; + } + else + { + bool flag = !xinGuildStateChangedEventArgs.bIsEnter; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_EXIT_GUILD"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_JOIN_GUILD"), "fece00"); + } + result = true; + } + return result; + } + + protected bool OnGuildPositionChanged(XEventArgs args) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_POSITION_CHANGED", new object[] + { + XGuildDocument.GuildPP.GetPositionName(this.m_Position, false) + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + return true; + } + + public void InitData(PtcM2C_LoginGuildInfo data) + { + bool flag = this.SetID(data.Data.gid); + bool flag2 = this.SetPosition((GuildPosition)data.Data.position); + this.m_BasicData.portraitIndex = (int)data.Data.icon; + bool flag3 = this.SetLevel((uint)data.Data.level); + this.m_BasicData.guildName = data.Data.name; + this.QueryWXGroup(); + this.QueryQQGroup(); + bool flag4 = flag; + if (flag4) + { + XInGuildStateChangedEventArgs @event = XEventPool.GetEvent(); + @event.bIsEnter = this.bInGuild; + @event.bRoleInit = !this._bInited; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + bool flag5 = flag2; + if (flag5) + { + XGuildPositionChangedEventArgs event2 = XEventPool.GetEvent(); + event2.position = this.m_Position; + event2.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event2); + } + bool flag6 = flag3; + if (flag6) + { + XGuildLevelChangedEventArgs event3 = XEventPool.GetEvent(); + event3.level = this.m_BasicData.level; + event3.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event3); + } + XGuildInfoChange event4 = XEventPool.GetEvent(); + event4.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(event4); + XGuildInfoChange event5 = XEventPool.GetEvent(); + event5.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event5); + this._bInited = true; + } + + public static void OnTableLoaded() + { + XGuildDocument.GuildPP.InitTable(XGuildDocument.m_PermissionTable); + XGuildDocument.GuildConfig.Init(XGuildDocument.m_ConfigTable); + } + + private bool _CanEnter() + { + float time = Time.time; + bool flag = time - this.m_fEnterTime > 3f; + bool result; + if (flag) + { + this.m_fEnterTime = time; + result = true; + } + else + { + result = false; + } + return result; + } + + public GuildSceneState TryEnterGuildScene() + { + bool bInGuild = this.bInGuild; + GuildSceneState result; + if (bInGuild) + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag = sceneType == SceneType.SCENE_GUILD_HALL; + if (flag) + { + result = GuildSceneState.GSS_InGuildScene; + } + else + { + bool flag2 = !this._CanEnter(); + if (flag2) + { + result = GuildSceneState.GSS_NotGuildScene; + } + else + { + HomePlantDocument.Doc.GardenId = this.UID; + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = (uint)XSingleton.singleton.GetInt("GuildHallSceneID"); + ptcC2G_EnterSceneReq.Data.roleID = this.UID; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + result = GuildSceneState.GSS_NotGuildScene; + } + } + } + else + { + bool flag3 = !DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + result = GuildSceneState.GSS_NoPermission; + } + return result; + } + + public void TryShowGuildHallUI() + { + bool bInGuild = this.bInGuild; + if (bInGuild) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_GUILD_HALL; + if (flag) + { + HomePlantDocument doc = HomePlantDocument.Doc; + doc.ClearFarmInfo(); + doc.HomeSprite.ClearInfo(); + HomePlantDocument.Doc.GardenId = this.UID; + doc.FetchPlantInfo(0u); + } + base.OnEnterSceneFinally(); + } + + public bool IHavePermission(GuildPermission pem) + { + return XGuildDocument.GuildPP.HasPermission(this.m_Position, pem); + } + + public bool CheckPermission(GuildPermission pem) + { + bool flag = !this.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.IHavePermission(pem); + if (flag2) + { + result = true; + } + else + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_NO_PERMISSION, "fece00"); + result = false; + } + } + return result; + } + + public bool CheckUnlockLevel(XSysDefine sys) + { + bool flag = !this.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel(sys); + bool flag2 = this.Level >= unlockLevel; + if (flag2) + { + result = true; + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("OPEN_AT_GUILD_LEVEL", new object[] + { + unlockLevel + }), "fece00"); + result = false; + } + } + return result; + } + + public bool IsSysUnlocked(XSysDefine sys) + { + bool flag = !this.bInGuild; + bool result; + if (flag) + { + result = false; + } + else + { + uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel(sys); + bool flag2 = this.Level >= unlockLevel; + result = flag2; + } + return result; + } + + public bool CheckInGuild() + { + bool bInGuild = this.bInGuild; + bool result; + if (bInGuild) + { + result = true; + } + else + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_NOT_IN_GUILD, "fece00"); + result = false; + } + return result; + } + + public static void OnGuildHyperLinkClick(string param) + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (!flag) + { + ulong id = 0UL; + bool flag2 = XLabelSymbolHelper.ParseGuildParam(param, ref id); + if (flag2) + { + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild); + if (flag3) + { + XGuildViewDocument specificDocument = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + specificDocument.View(id); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_LOG_CANNOT_JOIN"), "fece00"); + } + } + } + } + + public void QueryWXGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_WeChat || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild_Bind_Group); + if (!flag) + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.Guild; + Dictionary dictionary = new Dictionary(); + dictionary["unionID"] = this.UID.ToString(); + dictionary["openIdList"] = XSingleton.singleton.OpenID; + string param = Json.Serialize(dictionary); + XSingleton.singleton.XPlatform.QueryWXGroup(param); + } + } + + public void QueryQQGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild_Bind_Group); + if (!flag) + { + RpcC2M_GetGuildBindInfo rpcC2M_GetGuildBindInfo = new RpcC2M_GetGuildBindInfo(); + rpcC2M_GetGuildBindInfo.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2M_GetGuildBindInfo); + XSingleton.singleton.AddLog("[QQGroup QueryQQGroup]token:" + XSingleton.singleton.TokenCache, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void OnGetQQGroupBindInfo(GetGuildBindInfoReq oArg, GetGuildBindInfoRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (!flag) + { + this.qqGroupBindStatus = oRes.bind_status; + this.qqGroupName = oRes.group_name; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshQQGroupBtn(); + } + } + } + + public void BindQQGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild_Bind_Group); + if (!flag) + { + RpcC2M_GuildBindGroup rpcC2M_GuildBindGroup = new RpcC2M_GuildBindGroup(); + rpcC2M_GuildBindGroup.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2M_GuildBindGroup); + XSingleton.singleton.AddLog("[QQGroup BindQQGroup]token:" + XSingleton.singleton.TokenCache, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void OnBindQQGroup(GuildBindGroupReq oArg, GuildBindGroupRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_BIN_QQ_GROUP_SUC"), "fece00"); + this.qqGroupName = oRes.group_name; + this.qqGroupBindStatus = GuildBindStatus.GBS_Owner; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshQQGroupBtn(); + } + } + } + + public void JoinQQGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild_Bind_Group); + if (!flag) + { + RpcC2M_GuildJoinBindGroup rpcC2M_GuildJoinBindGroup = new RpcC2M_GuildJoinBindGroup(); + rpcC2M_GuildJoinBindGroup.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2M_GuildJoinBindGroup); + XSingleton.singleton.AddLog("[QQGroup JoinQQGroup]token:" + XSingleton.singleton.TokenCache, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void OnJoinBindQQGroup(GuildJoinBindGroupReq oArg, GuildJoinBindGroupRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_JOIN_QQ_GROUP_SUC"), "fece00"); + this.qqGroupBindStatus = GuildBindStatus.GBS_Member; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshQQGroupBtn(); + } + } + } + + public void UnbindQQGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild_Bind_Group); + if (!flag) + { + RpcC2M_GuildUnBindGroup rpcC2M_GuildUnBindGroup = new RpcC2M_GuildUnBindGroup(); + rpcC2M_GuildUnBindGroup.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2M_GuildUnBindGroup); + XSingleton.singleton.AddLog("[QQGroup UnbindQQGroup]token:" + XSingleton.singleton.TokenCache, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void OnUnbindQQGroup(GuildUnBindGroupReq oArg, GuildUnBindGroupRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_UNBIND_QQ_GROUP_SUC"), "fece00"); + this.qqGroupBindStatus = GuildBindStatus.GBS_NotBind; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshQQGroupBtn(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDocument.cs.meta new file mode 100644 index 00000000..604f3da0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43e5cb605e6694141929bf86918505b6 +timeCreated: 1611403643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateBehavior.cs new file mode 100644 index 00000000..dded5b0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateBehavior.cs @@ -0,0 +1,89 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDonateBehavior : DlgBehaviourBase + { + public IXUIWrapContent RankContent; + + public IXUIWrapContent DonationContent; + + public IXUICheckBox HistoryTab; + + public IXUICheckBox TodayTab; + + public IXUIButton CloseBtn; + + public Transform MyRankItem; + + public Transform EmptyRank; + + public IXUIScrollView LeftScrollView; + + public IXUIScrollView RightScrollView; + + public Transform RankRoot; + + public IXUIButton RankBtn; + + public IXUIButton RankCloseBtn; + + public IXUICheckBox dailyTab; + + public IXUICheckBox WeeklyTab; + + public IXUICheckBox GrowthTab; + + public Transform m_DonateFrame; + + public Transform m_GrowthFrame; + + public IXUIButton m_GrowthRecordBtn; + + public IXUIButton m_GrowthRecordCloseBtn; + + public Transform m_GrowthRecordList; + + public GameObject m_GrowthRecordEmpty; + + public XUIPool m_GrowthDonatePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_GrowthRecordPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_GrowthWeekTimes; + + private void Awake() + { + this.DonationContent = (base.transform.Find("DonateFrame/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.RightScrollView = (this.DonationContent.gameObject.transform.parent.GetComponent("XUIScrollView") as IXUIScrollView); + this.RankContent = (base.transform.Find("Rank/RankDlg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.LeftScrollView = (this.RankContent.gameObject.transform.parent.GetComponent("XUIScrollView") as IXUIScrollView); + this.TodayTab = (base.transform.Find("Rank/RankDlg/Select/All").GetComponent("XUICheckBox") as IXUICheckBox); + this.HistoryTab = (base.transform.Find("Rank/RankDlg/Select/Self").GetComponent("XUICheckBox") as IXUICheckBox); + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.MyRankItem = base.transform.Find("Rank/RankDlg/MyRank"); + this.EmptyRank = base.transform.Find("Rank/RankDlg/EmptyRank"); + this.RankRoot = base.transform.Find("Rank"); + this.dailyTab = (base.transform.Find("Tabs/DailyDonation").GetComponent("XUICheckBox") as IXUICheckBox); + this.WeeklyTab = (base.transform.Find("Tabs/WeeklyDonation").GetComponent("XUICheckBox") as IXUICheckBox); + this.GrowthTab = (base.transform.Find("Tabs/GrowthDonation").GetComponent("XUICheckBox") as IXUICheckBox); + this.RankBtn = (base.transform.Find("DonateFrame/RankBtn").GetComponent("XUIButton") as IXUIButton); + this.RankCloseBtn = (this.RankRoot.Find("RankDlg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_DonateFrame = base.transform.Find("DonateFrame"); + this.m_GrowthFrame = base.transform.Find("GrowthFrame"); + this.m_GrowthRecordBtn = (this.m_GrowthFrame.Find("RecordBtn").GetComponent("XUIButton") as IXUIButton); + this.m_GrowthRecordList = this.m_GrowthFrame.Find("RecordDlg"); + this.m_GrowthRecordCloseBtn = (this.m_GrowthRecordList.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_GrowthRecordEmpty = this.m_GrowthRecordList.Find("EmptyRank").gameObject; + Transform transform = this.m_GrowthFrame.Find("List/MemberTpl"); + this.m_GrowthDonatePool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = this.m_GrowthRecordList.Find("ScrollView/RankTpl"); + this.m_GrowthRecordPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_GrowthWeekTimes = (this.m_GrowthFrame.Find("time").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateBehavior.cs.meta new file mode 100644 index 00000000..60f53c52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca97779d7180e444397c9311310f098c +timeCreated: 1611404542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateDocument.cs new file mode 100644 index 00000000..e7e65c2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateDocument.cs @@ -0,0 +1,405 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDonateDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildDonateDocument.uuID; + } + } + + public static XGuildDonateDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XGuildDonateDocument.uuID) as XGuildDonateDocument; + } + } + + public List DailyDonateOverviewList + { + get + { + return this._dailyDonateItemList; + } + set + { + this._dailyDonateItemList = value; + } + } + + public uint DailyDonatedNum + { + get + { + return this._dailyDonatedNum; + } + set + { + this._dailyDonatedNum = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildDonateDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private List _todayRankList = new List(); + + private List _dailyDonateItemList = new List(); + + private List _rankList = new List(); + + private List _weeklyDonateItemList = new List(); + + private uint _dailyDonatedNum = 0u; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildDonateDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public GuildDonateRankInfo GetRankInfoByIndex(int index, DonateRankType type) + { + bool flag = type == DonateRankType.TodayRank && index < this._todayRankList.Count; + GuildDonateRankInfo result; + if (flag) + { + result = this._todayRankList[index]; + } + else + { + bool flag2 = type == DonateRankType.HistoryRank && index < this._rankList.Count; + if (flag2) + { + result = this._rankList[index]; + } + else + { + result = null; + } + } + return result; + } + + public void SortRankListWithRankType(DonateRankType type) + { + bool flag = type == DonateRankType.HistoryRank; + if (flag) + { + this._rankList.Sort(new Comparison(this.SortHistory)); + } + else + { + this._todayRankList.Sort(new Comparison(this.SortToday)); + } + } + + public void SendGetDonateBaseInfo() + { + RpcC2M_GetGuildDonateInfo rpc = new RpcC2M_GetGuildDonateInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetDonateInfo(GetGuildDonateInfoRes res) + { + List info = res.info; + List rankitem = res.rankitem; + this.UpdateRankList(rankitem); + this._dailyDonatedNum = res.donatenum; + this._dailyDonateItemList.Clear(); + this._weeklyDonateItemList.Clear(); + for (int i = 0; i < info.Count; i++) + { + GuildMemberAskInfo guildMemberAskInfo = info[i]; + bool flag = guildMemberAskInfo.item.tasktype == PeriodTaskType.PeriodTaskType_Daily; + if (flag) + { + this._dailyDonateItemList.Add(new GuildDonateItemInfo + { + name = guildMemberAskInfo.name, + profession = guildMemberAskInfo.profession, + id = guildMemberAskInfo.item.id, + roleID = guildMemberAskInfo.item.roleid, + publishTime = guildMemberAskInfo.item.publishtime, + itemID = guildMemberAskInfo.item.itemid, + needCount = guildMemberAskInfo.item.needCount, + getCount = guildMemberAskInfo.item.getCount, + taskID = guildMemberAskInfo.item.taskid + }); + } + else + { + this._weeklyDonateItemList.Add(new GuildDonateItemInfo + { + name = guildMemberAskInfo.name, + profession = guildMemberAskInfo.profession, + id = guildMemberAskInfo.item.id, + roleID = guildMemberAskInfo.item.roleid, + publishTime = guildMemberAskInfo.item.publishtime, + itemID = guildMemberAskInfo.item.itemid, + needCount = guildMemberAskInfo.item.needCount, + getCount = guildMemberAskInfo.item.getCount, + itemType = guildMemberAskInfo.item.itemtype, + itemQuality = guildMemberAskInfo.item.itemquality, + index = guildMemberAskInfo.item.index, + taskID = guildMemberAskInfo.item.taskid + }); + } + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshCurDonateTypeUI(); + } + } + + private void UpdateRankList(List rankitem) + { + this._rankList.Clear(); + this._todayRankList.Clear(); + for (int i = 0; i < rankitem.Count; i++) + { + GuildMemberDonateRankItem guildMemberDonateRankItem = rankitem[i]; + this._rankList.Add(new GuildDonateRankInfo + { + roleID = guildMemberDonateRankItem.roleid, + todayCount = guildMemberDonateRankItem.todaycount, + totalCount = guildMemberDonateRankItem.totalcount, + lastTime = guildMemberDonateRankItem.lasttime, + roleName = guildMemberDonateRankItem.name, + level = guildMemberDonateRankItem.level, + profession = guildMemberDonateRankItem.profession + }); + bool flag = this._rankList[i].todayCount > 0u; + if (flag) + { + this._todayRankList.Add(this._rankList[i]); + } + } + } + + public GuildDonateItemInfo GetDonateItemInfoByIndex(GuildDonateType type, int index) + { + List list = (type == GuildDonateType.DailyDonate) ? this._dailyDonateItemList : this._weeklyDonateItemList; + bool flag = index < list.Count; + GuildDonateItemInfo result; + if (flag) + { + result = list[index]; + } + else + { + result = null; + } + return result; + } + + public void SendDonateMemberItem(uint id, uint count, List itemList = null) + { + RpcC2M_DonateMemberItem rpcC2M_DonateMemberItem = new RpcC2M_DonateMemberItem(); + rpcC2M_DonateMemberItem.oArg.id = id; + rpcC2M_DonateMemberItem.oArg.count = count; + bool flag = itemList != null; + if (flag) + { + rpcC2M_DonateMemberItem.oArg.itemuid.AddRange(itemList); + } + XSingleton.singleton.Send(rpcC2M_DonateMemberItem); + } + + public int GetMyRankIndex(DonateRankType type) + { + List list = (type == DonateRankType.TodayRank) ? this._todayRankList : this._rankList; + for (int i = 0; i < list.Count; i++) + { + bool flag = list[i].roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + return i; + } + } + return -1; + } + + public int GetRankContentCount(DonateRankType type) + { + return (type == DonateRankType.TodayRank) ? this._todayRankList.Count : this._rankList.Count; + } + + public void OnGetDonateMemberReply(DonateMemberItemArg oArg, DonateMemberItemRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DonateSuccess"), "fece00"); + this.UpdateRankList(oRes.rankitem); + for (int i = 0; i < this._dailyDonateItemList.Count; i++) + { + bool flag2 = this._dailyDonateItemList[i].id == oArg.id; + if (flag2) + { + this._dailyDonateItemList[i].getCount += oArg.count; + this._dailyDonatedNum += oArg.count; + } + } + for (int j = 0; j < this._weeklyDonateItemList.Count; j++) + { + bool flag3 = this._weeklyDonateItemList[j].id == oArg.id; + if (flag3) + { + this._weeklyDonateItemList[j].getCount += oArg.count; + this._dailyDonatedNum += oArg.count; + } + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshCurDonateTypeUI(); + } + } + else + { + bool flag5 = oRes.result == ErrorCode.ERR_TASK_ASKITEM_REFRESH || oRes.result == ErrorCode.ERR_TASK_NO_ASKINFO; + if (flag5) + { + this.SendGetDonateBaseInfo(); + } + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public void ShowViewWithID(uint id, GuildDonateType type = GuildDonateType.DailyDonate) + { + bool inGuild = XGuildDocument.InGuild; + if (inGuild) + { + DlgBase.singleton.toSelectID = id; + DlgBase.singleton.DonateType = type; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + public void ShowViewWithType(GuildDonateType type) + { + bool inGuild = XGuildDocument.InGuild; + if (inGuild) + { + DlgBase.singleton.DonateType = type; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + public uint GetCanDonateMaxNum() + { + int @int = XSingleton.singleton.GetInt("DailyTaskDonateNum"); + return (uint)(((long)@int <= (long)((ulong)this._dailyDonatedNum)) ? 0 : (@int - (int)this._dailyDonatedNum)); + } + + private int SortHistory(GuildDonateRankInfo x, GuildDonateRankInfo y) + { + bool flag = x.totalCount != y.totalCount; + int result; + if (flag) + { + result = (int)(y.totalCount - x.totalCount); + } + else + { + result = (int)(y.lastTime - x.lastTime); + } + return result; + } + + private int SortToday(GuildDonateRankInfo x, GuildDonateRankInfo y) + { + bool flag = x.todayCount != y.todayCount; + int result; + if (flag) + { + result = (int)(y.todayCount - x.todayCount); + } + else + { + result = (int)(y.lastTime - x.lastTime); + } + return result; + } + + public int GetDonationListCount(GuildDonateType donateType) + { + int result; + if (donateType != GuildDonateType.DailyDonate) + { + if (donateType != GuildDonateType.WeeklyDonate) + { + result = 0; + } + else + { + result = this._weeklyDonateItemList.Count; + } + } + else + { + result = this._dailyDonateItemList.Count; + } + return result; + } + + public GuildDonateItemInfo GetDonationItemInfoWithTypeID(GuildDonateType donateType, uint id) + { + List list = (donateType == GuildDonateType.DailyDonate) ? this._dailyDonateItemList : this._weeklyDonateItemList; + for (int i = 0; i < list.Count; i++) + { + bool flag = list[i].id == id; + if (flag) + { + return list[i]; + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateDocument.cs.meta new file mode 100644 index 00000000..a0fd34ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9bdfdc4e8a4ade4cbdd9c6acda2babc +timeCreated: 1611404411 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateView.cs new file mode 100644 index 00000000..62c4769a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateView.cs @@ -0,0 +1,601 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDonateView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildDonation"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XGuildGrowthDocument _growthDoc; + + private DonateRankType _rankType = DonateRankType.TodayRank; + + public GuildDonateType DonateType = GuildDonateType.DailyDonate; + + public uint _curDonateID = 0u; + + public uint toSelectID = 0u; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this._growthDoc = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + this.InitProperties(); + } + + protected override void OnHide() + { + this.toSelectID = 0u; + this.DonateType = GuildDonateType.DailyDonate; + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.RankRoot.gameObject.SetActive(false); + base.uiBehaviour.RankBtn.gameObject.SetActive(true); + XGuildDonateDocument.Doc.SendGetDonateBaseInfo(); + base.uiBehaviour.TodayTab.ForceSetFlag(true); + base.uiBehaviour.dailyTab.ForceSetFlag(this.DonateType == GuildDonateType.DailyDonate); + base.uiBehaviour.WeeklyTab.ForceSetFlag(this.DonateType == GuildDonateType.WeeklyDonate); + base.uiBehaviour.GrowthTab.ForceSetFlag(this.DonateType == GuildDonateType.GrowthDonate); + bool flag = this.DonateType == GuildDonateType.GrowthDonate; + if (flag) + { + this.OnSelectGrowthDonation(base.uiBehaviour.GrowthTab); + } + this.UpdateDonationWrapContent(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private void InitProperties() + { + base.uiBehaviour.RankRoot.gameObject.SetActive(true); + base.uiBehaviour.DonationContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DonateItemUpdate)); + base.uiBehaviour.RankContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DonateRankItemUpdate)); + base.uiBehaviour.HistoryTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.SelectedHistoryTab)); + base.uiBehaviour.TodayTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.SelectedTodayTab)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickCloseBtn)); + base.uiBehaviour.dailyTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectDailyDonation)); + base.uiBehaviour.WeeklyTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectWeeklyDonation)); + base.uiBehaviour.GrowthTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectGrowthDonation)); + base.uiBehaviour.RankCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseRankView)); + base.uiBehaviour.RankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowRankView)); + base.uiBehaviour.m_GrowthRecordBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGrowthListBtnClick)); + base.uiBehaviour.m_GrowthRecordCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGrowthListCloseBtnClick)); + } + + private bool OnGrowthListBtnClick(IXUIButton btn) + { + this.ShowGrowthList(); + return true; + } + + private bool OnGrowthListCloseBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_GrowthRecordList.gameObject.SetActive(false); + return true; + } + + private bool OnShowRankView(IXUIButton button) + { + base.uiBehaviour.RankRoot.gameObject.SetActive(true); + this.UpdateRankContent(); + return true; + } + + private bool OnCloseRankView(IXUIButton button) + { + base.uiBehaviour.RankRoot.gameObject.SetActive(false); + return true; + } + + private bool OnSelectWeeklyDonation(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this.DonateType = GuildDonateType.WeeklyDonate; + base.uiBehaviour.RankBtn.gameObject.SetActive(false); + base.uiBehaviour.m_DonateFrame.gameObject.SetActive(true); + base.uiBehaviour.m_GrowthFrame.gameObject.SetActive(false); + this.UpdateDonationWrapContent(); + } + return true; + } + + private bool OnSelectDailyDonation(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this.DonateType = GuildDonateType.DailyDonate; + base.uiBehaviour.RankBtn.gameObject.SetActive(true); + base.uiBehaviour.m_DonateFrame.gameObject.SetActive(true); + base.uiBehaviour.m_GrowthFrame.gameObject.SetActive(false); + this.UpdateDonationWrapContent(); + } + return true; + } + + private bool OnSelectGrowthDonation(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this.DonateType = GuildDonateType.GrowthDonate; + base.uiBehaviour.RankBtn.gameObject.SetActive(false); + base.uiBehaviour.m_DonateFrame.gameObject.SetActive(false); + base.uiBehaviour.m_GrowthFrame.gameObject.SetActive(true); + this.SetupGrowthDonate(); + this._growthDoc.QueryGrowthRecordList(); + } + return true; + } + + private bool OnclickCloseBtn(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool SelectedTodayTab(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this._rankType = DonateRankType.TodayRank; + this.UpdateRankContent(); + } + return true; + } + + private void UpdateRankContent() + { + this.UpdateRankWrapContent(); + this.UpdateMyRank(); + } + + private bool SelectedHistoryTab(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this._rankType = DonateRankType.HistoryRank; + this.UpdateRankContent(); + } + return true; + } + + private void DonateRankItemUpdate(Transform itemTransform, int index) + { + GuildDonateRankInfo rankInfoByIndex = XGuildDonateDocument.Doc.GetRankInfoByIndex(index, this._rankType); + bool flag = rankInfoByIndex != null; + if (flag) + { + IXUILabel ixuilabel = itemTransform.Find("Win").GetComponent("XUILabel") as IXUILabel; + bool flag2 = this._rankType == DonateRankType.HistoryRank; + if (flag2) + { + ixuilabel.SetText(rankInfoByIndex.totalCount.ToString()); + } + else + { + ixuilabel.SetText(rankInfoByIndex.todayCount.ToString()); + } + IXUILabel ixuilabel2 = itemTransform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(rankInfoByIndex.roleName); + IXUISprite ixuisprite = itemTransform.Find("Rank").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel3 = itemTransform.Find("Rank3").GetComponent("XUILabel") as IXUILabel; + bool flag3 = index < 3; + if (flag3) + { + ixuilabel3.gameObject.SetActive(false); + ixuisprite.gameObject.SetActive(true); + ixuisprite.SetSprite(ixuisprite.spriteName.Substring(0, ixuisprite.spriteName.Length - 1) + (index + 1)); + } + else + { + ixuisprite.gameObject.SetActive(false); + ixuilabel3.gameObject.SetActive(true); + ixuilabel3.SetText((index + 1).ToString()); + } + } + } + + private void DonateItemUpdate(Transform itemTransform, int index) + { + GuildDonateItemInfo donateItemInfoByIndex = XGuildDonateDocument.Doc.GetDonateItemInfoByIndex(this.DonateType, index); + Transform transform = itemTransform.Find("MemberTpl"); + bool flag = donateItemInfoByIndex != null; + if (flag) + { + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag2 = donateItemInfoByIndex.id == this.toSelectID; + if (flag2) + { + ixuicheckBox.ForceSetFlag(true); + } + else + { + ixuicheckBox.ForceSetFlag(false); + } + transform.gameObject.SetActive(true); + itemTransform.gameObject.SetActive(true); + Transform transform2 = itemTransform.Find("MemberTpl/Item"); + bool flag3 = donateItemInfoByIndex.itemType > 0u; + ulong num; + if (flag3) + { + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(donateItemInfoByIndex.taskID); + num = (ulong)((dailyTaskTableInfoByID == null) ? 0u : dailyTaskTableInfoByID.BQ[0, 0]); + } + else + { + num = (ulong)donateItemInfoByIndex.itemID; + } + XSingleton.singleton.normalItemDrawer.DrawItem(transform2.gameObject, (int)num, 1, false); + IXUISprite ixuisprite = transform2.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemIcon)); + IXUILabel ixuilabel = itemTransform.Find("MemberTpl/Contribution").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(donateItemInfoByIndex.getCount + "/" + donateItemInfoByIndex.needCount); + IXUILabel ixuilabel2 = itemTransform.Find("MemberTpl/Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(donateItemInfoByIndex.name); + IXUILabel ixuilabel3 = itemTransform.Find("MemberTpl/Owned/Num").GetComponent("XUILabel") as IXUILabel; + bool flag4 = donateItemInfoByIndex.itemType > 0u; + ulong num2; + if (flag4) + { + num2 = (ulong)((long)XBagDocument.BagDoc.GetItemsByTypeAndQuality(1UL << (int)donateItemInfoByIndex.itemType, (ItemQuality)donateItemInfoByIndex.itemQuality).Count); + } + else + { + num2 = XBagDocument.BagDoc.GetItemCount((int)donateItemInfoByIndex.itemID); + } + ixuilabel3.SetText(num2.ToString()); + Transform transform3 = itemTransform.Find("MemberTpl/Complete"); + IXUIButton ixuibutton = itemTransform.Find("MemberTpl/Do").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)donateItemInfoByIndex.id; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickDonateBtn)); + ixuibutton.gameObject.SetActive(true); + transform3.gameObject.SetActive(false); + ixuibutton.gameObject.SetActive(true); + bool flag5 = donateItemInfoByIndex.roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + ixuibutton.gameObject.SetActive(false); + } + else + { + bool flag6 = donateItemInfoByIndex.getCount >= donateItemInfoByIndex.needCount; + if (flag6) + { + ixuibutton.gameObject.SetActive(false); + transform3.gameObject.SetActive(true); + } + else + { + ixuibutton.SetEnable(true, false); + } + } + } + else + { + transform.gameObject.SetActive(false); + } + } + + private void OnClickItemIcon(IXUISprite uiSprite) + { + XSingleton.singleton.ShowItemAccess((int)uiSprite.ID, null); + } + + private bool OnclickDonateBtn(IXUIButton button) + { + GuildDonateItemInfo donationItemInfoWithTypeID = XGuildDonateDocument.Doc.GetDonationItemInfoWithTypeID(this.DonateType, (uint)button.ID); + uint canDonateMaxNum = XGuildDonateDocument.Doc.GetCanDonateMaxNum(); + bool flag = donationItemInfoWithTypeID != null; + if (flag) + { + bool flag2 = donationItemInfoWithTypeID.itemType > 0u; + ulong num; + if (flag2) + { + num = (ulong)((long)XBagDocument.BagDoc.GetItemsByTypeAndQuality(1UL << (int)donationItemInfoWithTypeID.itemType, (ItemQuality)donationItemInfoWithTypeID.itemQuality).Count); + } + else + { + num = XBagDocument.BagDoc.GetItemCount((int)donationItemInfoWithTypeID.itemID); + } + bool flag3 = num == 0UL; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DonateItemLess"), "fece00"); + } + else + { + bool flag4 = canDonateMaxNum == 0u; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DonateReachedMax"), "fece00"); + } + else + { + this._curDonateID = donationItemInfoWithTypeID.id; + uint max = (uint)Mathf.Min(new float[] + { + (uint)num, + donationItemInfoWithTypeID.needCount - donationItemInfoWithTypeID.getCount, + canDonateMaxNum + }); + bool flag5 = donationItemInfoWithTypeID.itemType > 0u; + if (flag5) + { + DlgBase.singleton.ShowView(new XShowSameQualityItemsView.SelectItemsHandler(this.OnSelectQualityItem), (ItemType)donationItemInfoWithTypeID.itemType, (ItemQuality)donationItemInfoWithTypeID.itemQuality, XStringDefineProxy.GetString("WeelyCommitTip"), (int)donationItemInfoWithTypeID.needCount, (int)donationItemInfoWithTypeID.getCount); + } + else + { + XSingleton.singleton.ShowSettingNumberDialog(donationItemInfoWithTypeID.itemID, XSingleton.singleton.GetString("ItemDonate"), 1u, max, 1u, new ModalSettingNumberDlg.GetInputNumber(this.GetItemNumer), 50); + } + } + } + } + return true; + } + + private void OnSelectQualityItem(List itemList) + { + bool flag = itemList.Count > 0; + if (flag) + { + XGuildDonateDocument.Doc.SendDonateMemberItem(this._curDonateID, (uint)itemList.Count, itemList); + } + } + + private void GetItemNumer(uint number) + { + bool flag = number > 0u; + if (flag) + { + XGuildDonateDocument.Doc.SendDonateMemberItem(this._curDonateID, number, null); + } + } + + private void UpdateMyRank() + { + int myRankIndex = XGuildDonateDocument.Doc.GetMyRankIndex(this._rankType); + bool flag = myRankIndex >= 0; + if (flag) + { + base.uiBehaviour.MyRankItem.gameObject.SetActive(true); + this.DonateRankItemUpdate(base.uiBehaviour.MyRankItem, myRankIndex); + } + else + { + base.uiBehaviour.MyRankItem.gameObject.SetActive(false); + } + } + + public void RefreshUI(GuildDonateType type) + { + bool flag = this.DonateType == type; + if (flag) + { + this.UpdateRankWrapContent(); + } + } + + public void RefreshCurDonateTypeUI() + { + this.UpdateDonationWrapContent(); + } + + private void UpdateRankWrapContent() + { + int rankContentCount = XGuildDonateDocument.Doc.GetRankContentCount(this._rankType); + XGuildDonateDocument.Doc.SortRankListWithRankType(this._rankType); + base.uiBehaviour.LeftScrollView.ResetPosition(); + base.uiBehaviour.RankContent.SetContentCount(rankContentCount, false); + bool flag = rankContentCount > 0; + if (flag) + { + base.uiBehaviour.EmptyRank.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.EmptyRank.gameObject.SetActive(true); + } + this.UpdateDonationWrapContent(); + } + + private void UpdateDonationWrapContent() + { + int donationListCount = XGuildDonateDocument.Doc.GetDonationListCount(this.DonateType); + base.uiBehaviour.DonationContent.SetContentCount(donationListCount, false); + base.uiBehaviour.RightScrollView.ResetPosition(); + } + + public void SetupGrowthDonate() + { + this._growthDoc.QueryGrowthRecordList(); + base.uiBehaviour.m_GrowthRecordList.gameObject.SetActive(false); + this.RefreshGrowthDonateTimes(); + this._growthDoc.QueryBuildRank(); + this.Refresh(); + } + + public void Refresh() + { + bool flag = !base.uiBehaviour.m_GrowthFrame.gameObject.activeInHierarchy; + if (!flag) + { + base.uiBehaviour.m_GrowthDonatePool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_GrowthDonatePool.TplPos; + for (int i = 0; i < this._growthDoc.GuildZiCaiTableReader.Table.Length; i++) + { + GuildZiCai.RowData rowData = this._growthDoc.GuildZiCaiTableReader.Table[i]; + GameObject gameObject = base.uiBehaviour.m_GrowthDonatePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(base.uiBehaviour.m_GrowthDonatePool.TplWidth * i), tplPos.y); + GameObject gameObject2 = gameObject.transform.Find("Item").gameObject; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)rowData.itemid); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, itemConf, 0, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject2, (int)rowData.itemid); + IXUILabel ixuilabel = gameObject2.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetVisible(true); + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)rowData.itemid); + ixuilabel.SetText(string.Format("{0}{1}[ffffff]/1", (itemCount != 0UL) ? "" : "[e60012]", itemCount)); + IXUIButton ixuibutton = gameObject.transform.Find("Do").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)rowData.itemid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDoBtnClick)); + Transform transform = gameObject.transform.Find("box"); + transform.gameObject.SetActive(i == this._growthDoc.GuildZiCaiTableReader.Table.Length - 1); + this.SetReward(gameObject.transform.Find("Private"), rowData.rolerewards); + this.SetReward(gameObject.transform.Find("Guild"), rowData.guildrewards); + IXUILabel ixuilabel2 = gameObject.transform.Find("label").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(XSingleton.singleton.ReplaceReturn(rowData.ShowTips)); + } + } + } + + public bool OnDoBtnClick(IXUIButton btn) + { + this._growthDoc.QueryGuildGrowthDonate((uint)btn.ID); + return true; + } + + public void SetReward(Transform t, SeqListRef list) + { + bool flag = list.Count == 0; + if (!flag) + { + IXUILabel ixuilabel = t.Find("t0").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("t0/icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("t1").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("t1/icon").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(list[0, 1].ToString()); + ixuisprite.spriteName = XBagDocument.GetItemSmallIcon((int)list[0, 0], 0u); + bool flag2 = list.Count <= 1; + if (flag2) + { + ixuilabel2.SetVisible(false); + ixuisprite2.SetVisible(false); + } + else + { + ixuilabel2.SetVisible(true); + ixuisprite2.SetVisible(true); + ixuilabel2.SetText(list[1, 1].ToString()); + ixuisprite2.spriteName = XBagDocument.GetItemSmallIcon((int)list[1, 0], 0u); + } + } + } + + public void ShowGrowthList() + { + base.uiBehaviour.m_GrowthRecordList.gameObject.SetActive(true); + this.RefreshDonateList(); + } + + public void RefreshDonateList() + { + base.uiBehaviour.m_GrowthRecordEmpty.gameObject.SetActive(this._growthDoc.RecordList.Count == 0); + base.uiBehaviour.m_GrowthRecordPool.ReturnAll(false); + int machineTimeFrom = XSingleton.singleton.GetMachineTimeFrom1970(); + for (int i = 0; i < this._growthDoc.RecordList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_GrowthRecordPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_GrowthRecordPool.TplPos.x, base.uiBehaviour.m_GrowthRecordPool.TplPos.y - (float)(base.uiBehaviour.m_GrowthRecordPool.TplHeight * i)); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Time").GetComponent("XUILabel") as IXUILabel; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._growthDoc.RecordList[i].ItemID); + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("GuildGrowthRecord"), this._growthDoc.RecordList[i].Name, itemConf.ItemName[0])); + int num = machineTimeFrom - (int)this._growthDoc.RecordList[i].Time; + ixuilabel2.SetText(XSingleton.singleton.TimeAgoFormatString((num > 0) ? num : 60)); + } + } + + public void CheckRecordRefresh() + { + bool activeInHierarchy = base.uiBehaviour.m_GrowthRecordList.gameObject.activeInHierarchy; + if (activeInHierarchy) + { + this.RefreshDonateList(); + } + } + + public void RefreshGrowthDonateTimes() + { + bool flag = !base.uiBehaviour.m_GrowthFrame.gameObject.activeInHierarchy; + if (!flag) + { + int @int = XSingleton.singleton.GetInt("GuildJZDonateMaxCount"); + base.uiBehaviour.m_GrowthWeekTimes.SetText(string.Format("{0}/{1}", this._growthDoc.WeekDonateTimes, @int)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateView.cs.meta new file mode 100644 index 00000000..f138d1dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDonateView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0e41f6fcb578fa48a4ea01daf1ca806 +timeCreated: 1611404354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonBehaviour.cs new file mode 100644 index 00000000..f82ff583 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonBehaviour.cs @@ -0,0 +1,84 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildDragonBehaviour : DlgBehaviourBase + { + public IXUIButton m_BtnClose; + + public IXUIButton m_BtnRank; + + public IXUIButton m_BtnGoBattle; + + public IXUIButton m_BtnSubscribe; + + public IXUIButton m_BtnCancelSubscribe; + + public IXUILabel m_LeftTime; + + public IXUILabel m_OpenTime; + + public IXUILabel m_LeftTimeHint; + + public IXUILabel m_BossName; + + public IXUILabel m_Condition; + + public IXUILabel m_ConditionTitle; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public GameObject m_RankPanel; + + public IXUILabel m_RankPanel_EmptyRank; + + public IXUIButton m_BtnReward; + + public GameObject m_RewardPanel; + + public GameObject rankInfo; + + public GameObject outofRange; + + public IXUISprite m_PrivilegeIcon; + + public IXUILabel m_PrivilegeName; + + public IXUISprite m_Privilege; + + private void Awake() + { + this.m_BtnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRank = (base.transform.Find("Bg/Frame/DamageRank").GetComponent("XUIButton") as IXUIButton); + this.m_BtnGoBattle = (base.transform.Find("Bg/Frame/GoBattle").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/GuildRankPanel/ScrollView"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = transform.Find("WrapContent"); + this.m_WrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankPanel = base.transform.Find("Bg/GuildRankPanel").gameObject; + this.m_RankPanel_EmptyRank = (base.transform.Find("Bg/GuildRankPanel/EmptyRank").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime = (base.transform.Find("Bg/Frame/LeftTime/Value").GetComponent("XUILabel") as IXUILabel); + this.m_OpenTime = (base.transform.Find("Bg/Frame/LeftTime/sk").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTimeHint = (base.transform.Find("Bg/Frame/LeftTime/Over").GetComponent("XUILabel") as IXUILabel); + this.m_BossName = (base.transform.Find("Bg/Frame/LeftTime/12").GetComponent("XUILabel") as IXUILabel); + this.m_Condition = (base.transform.Find("Bg/Frame/LeftTime/shanghai/shanghai").GetComponent("XUILabel") as IXUILabel); + this.m_ConditionTitle = (base.transform.Find("Bg/Frame/LeftTime/shanghai").GetComponent("XUILabel") as IXUILabel); + this.m_RewardPanel = base.transform.Find("Bg/Frame/RewardDlg").gameObject; + this.m_BtnReward = (base.transform.Find("Bg/Frame/Youxiguize").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSubscribe = (base.transform.Find("Bg/Frame/Subscribe").GetComponent("XUIButton") as IXUIButton); + this.m_BtnCancelSubscribe = (base.transform.Find("Bg/Frame/UnSubscribe").GetComponent("XUIButton") as IXUIButton); + this.rankInfo = base.transform.Find("Bg/GuildRankPanel/RankTpl").gameObject; + this.rankInfo.SetActive(false); + this.outofRange = base.transform.Find("Bg/GuildRankPanel/OutOfRange").gameObject; + this.outofRange.SetActive(false); + this.m_PrivilegeIcon = (base.transform.Find("Bg/tq").GetComponent("XUISprite") as IXUISprite); + this.m_PrivilegeName = (base.transform.Find("Bg/tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_Privilege = (base.transform.Find("Bg/tq/p").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonBehaviour.cs.meta new file mode 100644 index 00000000..a9f1554b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d74e729ff7feba4d9416017da656022 +timeCreated: 1611403354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonDocument.cs new file mode 100644 index 00000000..71b8d0f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonDocument.cs @@ -0,0 +1,545 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildDragonDocument : XDocComponent, IRankSource, IWorldBossBattleSource + { + public override uint ID + { + get + { + return XGuildDragonDocument.uuID; + } + } + + public XGuildDragonView GuildDragonView { get; set; } + + public GuildDragonChallengeResultView _GuildDragonChallengeResultView { get; set; } + + public BattleWorldBossHandler BattleHandler { get; set; } + + public bool bCanFight { get; set; } + + public uint EncourageCount + { + get + { + return this._EncourageCount; + } + } + + public XGuildDragonGuildRoleRankList GuildRankList + { + get + { + return this.m_GuildRankList; + } + } + + public XWorldBossDamageRankList PersonRankList + { + get + { + return this.m_BossDamageRankList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildDragonDocument"); + + private uint _EncourageCount = 0u; + + public XWorldBossDamageRankHandler RankHandler; + + private XGuildDragonGuildRoleRankList m_GuildRankList = new XGuildDragonGuildRoleRankList(); + + private XWorldBossDamageRankList m_BossDamageRankList = new XWorldBossDamageRankList(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static GuildBossConfigTable _GuildBossConfigReader = new GuildBossConfigTable(); + + private static GuildBossRewardTable _GuildBossRewardTableReader = new GuildBossRewardTable(); + + private static GuildBossRoleRewardTable _GuildBossRoleRewardReader = new GuildBossRoleRewardTable(); + + public List> currentRewardList = new List>(); + + public List dicRewardName = new List(); + + public List dicRewardDes = new List(); + + private GuildBossConfigTable.RowData rdCfg = null; + + private NoticeGuildBossEnd mData; + + private float fCdTime = 0f; + + private bool bStartCutScene = false; + + private bool bCountDown = false; + + private XElapseTimer CountDownTime = new XElapseTimer(); + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildDragonDocument.AsyncLoader.AddTask("Table/GuildBossConfig", XGuildDragonDocument._GuildBossConfigReader, false); + XGuildDragonDocument.AsyncLoader.AddTask("Table/GuildBossReward", XGuildDragonDocument._GuildBossRewardTableReader, false); + XGuildDragonDocument.AsyncLoader.AddTask("Table/GuildBossRoleReward", XGuildDragonDocument._GuildBossRoleRewardReader, false); + XGuildDragonDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.bCanFight = false; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnInGuildStateChanged)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public uint GetEncourageCount(int index) + { + bool flag = index == 0; + uint result; + if (flag) + { + result = this._EncourageCount; + } + else + { + result = 0u; + } + return result; + } + + public void ReqEncourageTwo() + { + } + + protected bool OnInGuildStateChanged(XEventArgs args) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = args as XInGuildStateChangedEventArgs; + bool flag = !xinGuildStateChangedEventArgs.bIsEnter; + if (flag) + { + bool flag2 = this.GuildDragonView != null && this.GuildDragonView.IsVisible(); + if (flag2) + { + this.GuildDragonView.SetVisible(false, true); + } + this.bCanFight = false; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildDragon, true); + } + return true; + } + + public uint GetSceneID() + { + return (uint)XSingleton.singleton.GetInt("GuildBossSceneID"); + } + + public void ReqRankData(RankeType type, bool inFight) + { + this.ReqBossRoleRank(inFight); + } + + public void ReqBossRoleRank(bool inFight) + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.GuildBossRoleRank); + rpcC2M_ClientQueryRankListNtf.oArg.TimeStamp = this.m_GuildRankList.timeStamp; + rpcC2M_ClientQueryRankListNtf.oArg.sendPunishData = (inFight ? 1u : 0u); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + rpcC2M_ClientQueryRankListNtf.oArg.guildid = specificDocument.UID; + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void OnGuildBossRoleRank(ClientQueryRankListRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + XBaseRankList rankList = this.GetRankList((RankeType)oRes.RankType); + XRankDocument.ProcessRankListData(oRes.RankList, rankList); + XRankDocument.ProcessSelfRankData(oRes, rankList); + bool flag2 = this.GuildDragonView != null; + if (flag2) + { + this.GuildDragonView._SetMyRankFrame(rankList); + } + bool flag3 = this.GuildDragonView != null && this.GuildDragonView.IsVisible(); + if (flag3) + { + this.GuildDragonView.RefreshGuildRoleRank(); + } + bool flag4 = this.RankHandler != null && this.RankHandler.PanelObject != null && this.RankHandler.IsVisible(); + if (flag4) + { + this.RankHandler.RefreshPage(); + } + } + } + + public XBaseRankList GetRankList(RankeType type) + { + bool flag = type == RankeType.GuildBossRank; + XBaseRankList result; + if (flag) + { + result = this.m_GuildRankList; + } + else + { + bool flag2 = type == RankeType.GuildBossRoleRank; + if (flag2) + { + result = this.m_BossDamageRankList; + } + else + { + result = null; + } + } + return result; + } + + public void ReqWorldBossState() + { + RpcC2M_GetWorldBossStateNew rpcC2M_GetWorldBossStateNew = new RpcC2M_GetWorldBossStateNew(); + rpcC2M_GetWorldBossStateNew.oArg.type = 1u; + XSingleton.singleton.Send(rpcC2M_GetWorldBossStateNew); + } + + public void OnGetWorldBossLeftState(GetWorldBossStateRes oRes) + { + bool flag = this.GuildDragonView != null && this.GuildDragonView.IsVisible(); + if (flag) + { + this.GuildDragonView.SetLeftTime(oRes.TimeLeft, oRes.BossHp); + } + bool flag2 = oRes.BossHp <= 0u; + if (flag2) + { + this.bCanFight = false; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildDragon, true); + } + } + + public void ReqBattleInfo() + { + RpcC2G_ReqGuildBossTimeLeft rpc = new RpcC2G_ReqGuildBossTimeLeft(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetBattleInfo(getguildbosstimeleftRes oRes) + { + this._EncourageCount = oRes.addAttrCount; + bool flag = this.BattleHandler != null && this.BattleHandler.active; + if (flag) + { + this.BattleHandler.SetLeftTime(oRes.timeleft); + } + } + + public void ReqEncourage() + { + RpcC2G_AddTempAttr rpcC2G_AddTempAttr = new RpcC2G_AddTempAttr(); + rpcC2G_AddTempAttr.oArg.type = 1u; + XSingleton.singleton.Send(rpcC2G_AddTempAttr); + } + + public void OnGetEncourage(AddTempAttrRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + this.BattleHandler.RefreshEncourage(0); + } + } + + public void OnNotifyEncourage(uint oRes) + { + this._EncourageCount = oRes; + this.BattleHandler.RefreshEncourage(0); + } + + public void ReqGuildBossInfo() + { + RpcC2M_ReqGuildBossInfo rpc = new RpcC2M_ReqGuildBossInfo(); + XSingleton.singleton.Send(rpc); + } + + private GuildBossRoleRewardTable.RowData GetRoleRewardTableByBossID(uint bossid) + { + for (int i = 0; i < XGuildDragonDocument._GuildBossRoleRewardReader.Table.Length; i++) + { + bool flag = XGuildDragonDocument._GuildBossRoleRewardReader.Table[i].BossID == bossid; + if (flag) + { + return XGuildDragonDocument._GuildBossRoleRewardReader.Table[i]; + } + } + return null; + } + + public void OnGetGuildBossInfo(AskGuildBossInfoRes oRes) + { + bool flag = this.GuildDragonView == null || !this.GuildDragonView.IsVisible(); + if (!flag) + { + this.rdCfg = XGuildDragonDocument._GuildBossConfigReader.GetByBossID(oRes.bossId); + bool flag2 = this.rdCfg == null; + if (!flag2) + { + GuildBossRoleRewardTable.RowData roleRewardTableByBossID = this.GetRoleRewardTableByBossID(oRes.bossId); + GuildBossRewardTable.RowData byrank = XGuildDragonDocument._GuildBossRewardTableReader.GetByrank(1u); + this.currentRewardList.Clear(); + this.dicRewardName.Clear(); + this.dicRewardDes.Clear(); + int num = 0; + bool flag3 = roleRewardTableByBossID != null && roleRewardTableByBossID.prestige.Count != 0; + if (flag3) + { + this.GuildDragonView.ShowDropList(num++, XStringDefineProxy.GetString("GUILD_BOSS_HURT"), roleRewardTableByBossID.prestige[0, 0], roleRewardTableByBossID.prestige[0, 1]); + this.currentRewardList.Add(new Seq2(roleRewardTableByBossID.prestige[0, 0], roleRewardTableByBossID.prestige[0, 1])); + this.dicRewardName.Add("GUILD_BOSS_HURT"); + this.dicRewardDes.Add("GUILD_BOSS_REWARD_TYPE_HURT"); + } + bool flag4 = byrank != null && byrank.guildexp.Count != 0; + if (flag4) + { + this.GuildDragonView.ShowDropList(num++, XStringDefineProxy.GetString("GUILD_BOSS_PRE"), byrank.guildexp[0, 0], byrank.guildexp[0, 1]); + this.currentRewardList.Add(new Seq2(byrank.guildexp[0, 0], byrank.guildexp[0, 1])); + this.dicRewardName.Add("GUILD_BOSS_PRE"); + this.dicRewardDes.Add("GUILD_BOSS_REWARD_TYPE_PRE"); + } + bool isFirstKill = oRes.isFirstKill; + if (isFirstKill) + { + bool flag5 = this.rdCfg != null && this.rdCfg.FirsttKillReward.Count != 0; + if (flag5) + { + this.GuildDragonView.ShowDropList(num++, XStringDefineProxy.GetString("GUILD_BOSS_FIRSTKILL"), this.rdCfg.FirsttKillReward[0, 0], this.rdCfg.FirsttKillReward[0, 1]); + this.currentRewardList.Add(new Seq2(this.rdCfg.FirsttKillReward[0, 0], this.rdCfg.FirsttKillReward[0, 1])); + this.dicRewardName.Add("GUILD_BOSS_FIRSTKILL"); + this.dicRewardDes.Add("GUILD_BOSS_REWARD_TYPE_FIRSTKILL"); + } + } + bool flag6 = this.rdCfg != null && this.rdCfg.JoinReward.Count != 0; + if (flag6) + { + this.GuildDragonView.ShowDropList(num++, XStringDefineProxy.GetString("GUILD_BOSS_JOIN"), this.rdCfg.JoinReward[0, 0], this.rdCfg.JoinReward[0, 1]); + this.currentRewardList.Add(new Seq2(this.rdCfg.JoinReward[0, 0], this.rdCfg.JoinReward[0, 1])); + this.dicRewardName.Add("GUILD_BOSS_JOIN"); + this.dicRewardDes.Add("GUILD_BOSS_REWARD_TYPE_JOIN"); + } + bool flag7 = this.rdCfg != null && this.rdCfg.KillReward.Count != 0; + if (flag7) + { + this.GuildDragonView.ShowDropList(num++, XStringDefineProxy.GetString("GUILD_BOSS_KILL"), this.rdCfg.KillReward[0, 0], this.rdCfg.KillReward[0, 1]); + this.currentRewardList.Add(new Seq2(this.rdCfg.KillReward[0, 0], this.rdCfg.KillReward[0, 1])); + this.dicRewardName.Add("GUILD_BOSS_KILL"); + this.dicRewardDes.Add("GUILD_BOSS_REWARD_TYPE_KILL"); + } + for (int i = num; i < 5; i++) + { + this.GuildDragonView.ShowDropList(i, null, uint.MaxValue, uint.MaxValue); + } + AuctionHouseDocument specificDocument = XDocuments.GetSpecificDocument(AuctionHouseDocument.uuID); + List guildAuctReward = specificDocument.GetGuildAuctReward(AuctionActType.GuildBoss); + bool flag8 = guildAuctReward.Count > 0; + if (flag8) + { + uint[] rewardShow = guildAuctReward[0].RewardShow; + bool flag9 = rewardShow != null; + if (flag9) + { + for (int j = 0; j < rewardShow.Length; j++) + { + this.currentRewardList.Add(new Seq2(rewardShow[j], 0u)); + string item = string.Format("GUILD_BOSS_AUCTREWARD_{0}", rewardShow[j]); + this.dicRewardName.Add(item); + string item2 = string.Format("GUILD_BOSS_AUCTREWARD_{0}_DESC", rewardShow[j]); + this.dicRewardDes.Add(item2); + } + } + } + this.GuildDragonView.ShowCurrentBoss(oRes, this.rdCfg.BossName, this.rdCfg.EnemyID, oRes.needguildlvl); + bool flag10 = oRes.needguildlvl == 0u || oRes.needKillBossId == 0u; + if (flag10) + { + this.GuildDragonView.ShowCurrentBoss(oRes, this.rdCfg.BossName, this.rdCfg.EnemyID, oRes.needguildlvl); + } + } + } + } + + public void GetWorldBossTime(ref int startTime, ref int endTime) + { + XActivityDocument doc = XActivityDocument.Doc; + for (int i = 0; i < doc.MulActivityTable.Table.Length; i++) + { + bool flag = doc.MulActivityTable.Table[i].SystemID == XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildDragon); + if (flag) + { + SeqListRef openDayTime = doc.MulActivityTable.Table[i].OpenDayTime; + bool flag2 = openDayTime.Count > 0; + if (flag2) + { + startTime = (int)openDayTime[0, 0]; + endTime = (int)openDayTime[0, 1]; + } + } + } + } + + public void DragonChallengeResult(NoticeGuildBossEnd data) + { + this.mData = data; + this.ShowChallengeResult(); + } + + public void GuildBossTimeOut() + { + this.mData = new NoticeGuildBossEnd(); + this.mData.isWin = false; + this.StartCutScene(this.rdCfg.WinCutScene); + } + + public void ShowChallengeResult() + { + bool flag = this.mData != null && this.mData.isWin; + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + this.StartCountDown(); + } + else + { + bool flag2 = this.rdCfg != null; + if (flag2) + { + this.StartCutScene(this.rdCfg.WinCutScene); + } + } + } + + public void ReqEnterScene() + { + bool flag = Time.realtimeSinceStartup - this.fCdTime < 1f; + if (!flag) + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = this.GetSceneID(); + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildDragon, true); + this.fCdTime = Time.realtimeSinceStartup; + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_GUILD_BOSS; + if (flag) + { + this.BattleHandler.RefreshEncourage(); + } + } + + public void ReqQutiScene() + { + XSingleton.singleton.ReqLeaveScene(); + } + + public override void Update(float fDeltaT) + { + this.UpdateCutScene(); + } + + public void StartCutScene(string bossWinCutScene) + { + this.bStartCutScene = true; + XSingleton.singleton.Start("CutScene/" + bossWinCutScene, true, true); + } + + private void UpdateCutScene() + { + bool flag = !this.bStartCutScene; + if (!flag) + { + bool flag2 = !XSingleton.singleton.IsPlaying; + if (flag2) + { + this.bStartCutScene = false; + DlgBase.singleton.SetVisible(true, true); + this.StartCountDown(); + } + } + } + + public void StartCountDown() + { + this.bCountDown = true; + bool isWin = this.mData.isWin; + if (isWin) + { + this._GuildDragonChallengeResultView.uiBehaviour.m_Desription.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CHANGGLE_DES_WIN")); + } + else + { + this._GuildDragonChallengeResultView.uiBehaviour.m_Desription.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CHANGGLE_DES_FAILED")); + } + this.CountDownTime.LeftTime = 5f; + } + + private void UpdateCountDown() + { + bool flag = !this.bCountDown; + if (!flag) + { + this.CountDownTime.Update(); + int num = (int)this.CountDownTime.LeftTime; + bool flag2 = num <= 0; + if (flag2) + { + this.bCountDown = false; + this.CountDownTime.LeftTime = 5f; + this.ReqQutiScene(); + } + else + { + bool flag3 = this._GuildDragonChallengeResultView != null && this._GuildDragonChallengeResultView.IsLoaded(); + if (flag3) + { + this._GuildDragonChallengeResultView.uiBehaviour.m_Time.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CHANGGLE_COUNTDOWN", new object[] + { + num + })); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonDocument.cs.meta new file mode 100644 index 00000000..ed3ed530 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b985d1f6e5d7fd042ae30a26be5b0aa6 +timeCreated: 1611404410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankInfo.cs new file mode 100644 index 00000000..2d09c92d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankInfo.cs @@ -0,0 +1,44 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XGuildDragonGuildRankInfo : XBaseRankInfo + { + public uint time; + + private string _value; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, data.RoleName); + this.id = data.RoleId; + this.rank = data.Rank; + this.value = (ulong)data.damage; + this.time = data.time; + bool flag = this.time == uint.MaxValue; + if (flag) + { + this._value = XStringDefineProxy.GetString("RANK_DAMAGE", new object[] + { + XSingleton.singleton.NumberFormat(this.value) + }); + } + else + { + this._value = XStringDefineProxy.GetString("RANK_KILL", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this.time, 5) + }); + } + } + + public override string GetValue() + { + return this._value; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankInfo.cs.meta new file mode 100644 index 00000000..ff97ee62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: faf84a5b3b3060b4bad715152b4663a7 +timeCreated: 1611404929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankList.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankList.cs new file mode 100644 index 00000000..39f7b43a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XGuildDragonGuildRankList : XBaseRankList + { + public XGuildDragonGuildRankList() + { + this.type = XRankType.GuildBossRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XGuildDragonGuildRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankList.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankList.cs.meta new file mode 100644 index 00000000..2bc5762b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4cd3796f98de1b45aabf07216db4916 +timeCreated: 1611404393 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankInfo.cs new file mode 100644 index 00000000..31036cd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankInfo.cs @@ -0,0 +1,44 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XGuildDragonGuildRoleRankInfo : XBaseRankInfo + { + public uint time; + + private string _value; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, data.RoleName); + this.id = data.RoleId; + this.rank = data.Rank; + this.value = (ulong)data.damage; + this.time = data.time; + bool flag = this.time == uint.MaxValue; + if (flag) + { + this._value = XStringDefineProxy.GetString("RANK_DAMAGE", new object[] + { + XSingleton.singleton.NumberFormat(this.value) + }); + } + else + { + this._value = XStringDefineProxy.GetString("RANK_KILL", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this.time, 5) + }); + } + } + + public override string GetValue() + { + return this._value; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankInfo.cs.meta new file mode 100644 index 00000000..40d51b50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fed8f1d2db54a024b986080ac2266fa4 +timeCreated: 1611404943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankList.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankList.cs new file mode 100644 index 00000000..02571935 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XGuildDragonGuildRoleRankList : XBaseRankList + { + public XGuildDragonGuildRoleRankList() + { + this.type = XRankType.GuildBossRoleRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XGuildDragonGuildRoleRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankList.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankList.cs.meta new file mode 100644 index 00000000..ee20e11f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildDragonGuildRoleRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 024ffb8dad69e7042a42cac85fdacd1b +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffBehavior.cs new file mode 100644 index 00000000..3a915f60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffBehavior.cs @@ -0,0 +1,74 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildGrowthBuffBehavior : DlgBehaviourBase + { + public IXUIButton CloseBtn; + + public IXUIButton HelpBtn; + + public IXUISprite m_DetailBuffIcon; + + public IXUILabel m_DetailBuffName; + + public IXUILabel m_DetailMaxLevel; + + public IXUILabel m_DetailCurrLevel; + + public IXUILabel m_DetailNextLevel; + + public IXUILabel m_DetailCurrKeepCost; + + public IXUISprite m_DetailCostArrow; + + public IXUILabel m_DetailNextKeepCost; + + public IXUILabel m_NextAttrText; + + public IXUILabelSymbol m_DetailCost; + + public IXUIButton LevelUpBtn; + + public IXUILabel LevelUpText; + + public Transform m_levelUpFx; + + public IXUIScrollView ScrollView; + + public XUIPool BuffItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_PointLeft; + + public IXUISprite m_PointClick; + + private void Awake() + { + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.HelpBtn = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_DetailBuffIcon = (base.transform.Find("Bg/Detail/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_DetailBuffName = (base.transform.Find("Bg/Detail/Name").GetComponent("XUILabel") as IXUILabel); + this.m_DetailMaxLevel = (base.transform.Find("Bg/Detail/MaxLevel/Num").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCurrLevel = (base.transform.Find("Bg/Detail/CurrentLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailNextLevel = (base.transform.Find("Bg/Detail/CurrentLevel/NextLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCurrKeepCost = (base.transform.Find("Bg/Detail/CurrentAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCostArrow = (base.transform.Find("Bg/Detail/CurrentAttr/P").GetComponent("XUISprite") as IXUISprite); + this.m_DetailNextKeepCost = (base.transform.Find("Bg/Detail/CurrentAttr/NextAttr").GetComponent("XUILabel") as IXUILabel); + this.m_NextAttrText = (base.transform.Find("Bg/Detail/NextText").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCost = (base.transform.Find("Bg/Detail/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.LevelUpBtn = (base.transform.Find("Bg/Detail/Levelup").GetComponent("XUIButton") as IXUIButton); + this.LevelUpText = (base.transform.Find("Bg/Detail/Levelup/Text").GetComponent("XUILabel") as IXUILabel); + this.m_levelUpFx = base.transform.Find("Bg/SkillList/effect"); + this.m_levelUpFx.gameObject.SetActive(false); + this.ScrollView = (base.transform.Find("Bg/SkillList").GetComponent("XUIScrollView") as IXUIScrollView); + GameObject gameObject = base.transform.Find("Bg/SkillList/SkillTpl").gameObject; + this.BuffItemPool.SetupPool(gameObject.transform.parent.gameObject, gameObject, 10u, false); + this.m_PointLeft = (base.transform.Find("Bg/Point/value").GetComponent("XUILabel") as IXUILabel); + this.m_PointClick = (base.transform.Find("Bg/Point/P").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffBehavior.cs.meta new file mode 100644 index 00000000..b0048135 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e75f0f337da45a47a73ea750cee35ef +timeCreated: 1611403905 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffView.cs new file mode 100644 index 00000000..891098ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffView.cs @@ -0,0 +1,266 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildGrowthBuffView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildGrowth/GuildGrowthBuffDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildGrowthBuff); + } + } + + private XGuildGrowthDocument _doc; + + private XGuildDocument _guildDoc; + + private int _currSelectID = 0; + + public int ShowLevelUpFx = -1; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + this._guildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + } + + private bool OnClose(IXUIButton button) + { + this.SetVisible(false, true); + return false; + } + + private void OnPointClick(IXUISprite iSp) + { + XSingleton.singleton.ShowItemAccess(34, null); + } + + private bool OnHelpBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildGrowthBuff); + return true; + } + + protected override void OnHide() + { + base.uiBehaviour.m_levelUpFx.gameObject.SetActive(false); + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.HelpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClick)); + base.uiBehaviour.LevelUpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLevelUpBtnClick)); + base.uiBehaviour.m_PointClick.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPointClick)); + } + + protected override void OnShow() + { + this._currSelectID = 1; + this.RefreshList(false); + } + + private bool OnCheckBoxClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._currSelectID = (int)icb.ID; + this.RefreshDetail(); + result = true; + } + return result; + } + + private bool OnLevelUpBtnClick(IXUIButton btn) + { + GuildHall.RowData data = this._doc.GetData(this._doc.BuffList[this._currSelectID].BuffID, this._doc.BuffList[this._currSelectID].BuffLevel + 1u); + bool flag = data == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this._guildDoc.Level < data.glevel; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("GuildGrowthHallGuildLevelNeedShow"), data.glevel), "fece00"); + result = false; + } + else + { + bool flag3 = !this._doc.LevelUpEnable; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GuildGrowthAuthorityFail"), "fece00"); + result = false; + } + else + { + this._doc.QueryGuildHallBuffLevelUp(this._doc.BuffList[this._currSelectID].BuffID); + result = true; + } + } + } + return result; + } + + public void RefreshList(bool forceRefreshDetail = false) + { + base.uiBehaviour.BuffItemPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.BuffItemPool.TplPos; + int num = 0; + IXUICheckBox ixuicheckBox = null; + for (int i = 1; i < this._doc.BuffList.Count; i++) + { + GuildHall.RowData data = this._doc.GetData(this._doc.BuffList[i].BuffID, this._doc.BuffList[i].BuffLevel); + bool flag = data == null; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.BuffItemPool.FetchGameObject(false); + gameObject.transform.localPosition = tplPos + new Vector3((float)(num % 2 * base.uiBehaviour.BuffItemPool.TplWidth), (float)(-(float)(num / 2) * base.uiBehaviour.BuffItemPool.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Attr").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag2 = (long)this.ShowLevelUpFx == (long)((ulong)this._doc.BuffList[i].BuffID); + if (flag2) + { + base.uiBehaviour.m_levelUpFx.position = ixuisprite.transform.position; + base.uiBehaviour.m_levelUpFx.gameObject.SetActive(false); + base.uiBehaviour.m_levelUpFx.gameObject.SetActive(true); + this.ShowLevelUpFx = -1; + } + IXUICheckBox ixuicheckBox2 = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckBoxClick)); + ixuicheckBox2.ID = (ulong)i; + bool flag3 = i == this._currSelectID; + if (flag3) + { + ixuicheckBox = ixuicheckBox2; + } + ixuilabel.SetText(string.Format("{0}/{1}", this._doc.BuffList[i].BuffLevel, this._doc.BuffList[i].BuffMaxLevel)); + ixuilabel2.SetText(data.name); + ixuilabel3.SetText(data.currentLevelDescription); + ixuisprite.SetSprite(data.icon, data.atlas, false); + num++; + } + } + bool flag4 = ixuicheckBox != null; + if (flag4) + { + ixuicheckBox.bChecked = true; + } + base.uiBehaviour.m_PointLeft.SetText(this._doc.ResourcesPoint.ToString()); + if (forceRefreshDetail) + { + this.RefreshDetail(); + } + } + + public void RefreshDetail() + { + XSingleton.singleton.AddLog(this._currSelectID.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = this._doc.BuffList[this._currSelectID].BuffLevel == this._doc.BuffList[this._currSelectID].BuffMaxLevel; + GuildHall.RowData data = this._doc.GetData(this._doc.BuffList[this._currSelectID].BuffID, this._doc.BuffList[this._currSelectID].BuffLevel); + GuildHall.RowData rowData = flag ? null : this._doc.GetData(this._doc.BuffList[this._currSelectID].BuffID, this._doc.BuffList[this._currSelectID].BuffLevel + 1u); + base.uiBehaviour.m_DetailBuffIcon.SetSprite(data.icon, data.atlas, false); + base.uiBehaviour.m_DetailBuffName.SetText(data.name); + base.uiBehaviour.m_DetailMaxLevel.SetText(this._doc.BuffList[this._currSelectID].BuffMaxLevel.ToString()); + bool flag2 = flag; + if (flag2) + { + base.uiBehaviour.m_DetailCurrLevel.SetVisible(false); + base.uiBehaviour.m_DetailCostArrow.SetVisible(false); + base.uiBehaviour.m_DetailCurrKeepCost.SetText(XStringDefineProxy.GetString("GuildGrowthHallCost")); + base.uiBehaviour.m_DetailNextKeepCost.SetText(data.dailyneed.ToString()); + base.uiBehaviour.m_NextAttrText.SetText(XStringDefineProxy.GetString("GuildGrowthTextMax")); + base.uiBehaviour.m_DetailCost.InputText = "0"; + base.uiBehaviour.LevelUpBtn.SetEnable(false, false); + base.uiBehaviour.LevelUpText.SetText(XStringDefineProxy.GetString("GuildGrowthHallMaxLevel")); + } + else + { + base.uiBehaviour.m_DetailCurrLevel.SetVisible(true); + base.uiBehaviour.m_DetailCostArrow.SetVisible(true); + base.uiBehaviour.m_DetailCurrLevel.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("GuildGrowthHallLevel"), this._doc.BuffList[this._currSelectID].BuffLevel)); + base.uiBehaviour.m_DetailNextLevel.SetText((this._doc.BuffList[this._currSelectID].BuffLevel + 1u).ToString()); + base.uiBehaviour.m_DetailCurrKeepCost.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("GuildGrowthHallCost"), data.dailyneed)); + base.uiBehaviour.m_DetailNextKeepCost.SetText(rowData.dailyneed.ToString()); + base.uiBehaviour.m_NextAttrText.SetText(string.Format(XStringDefineProxy.GetString("GuildGrowthNextText"), rowData.currentLevelDescription)); + base.uiBehaviour.m_DetailCost.InputText = string.Format("{0}{1}{2}", (this._doc.ResourcesPoint >= rowData.updateneed) ? "" : "[e60012]", XLabelSymbolHelper.FormatSmallIcon(34), rowData.updateneed); + base.uiBehaviour.LevelUpBtn.SetEnable(true, false); + base.uiBehaviour.LevelUpBtn.SetGrey(this._guildDoc.Level >= rowData.glevel); + base.uiBehaviour.LevelUpText.SetText(XStringDefineProxy.GetString((this._guildDoc.Level >= rowData.glevel) ? "GuildGrowthHallLevelUp" : "GuildGrowthHallGuildLevelNeed")); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffView.cs.meta new file mode 100644 index 00000000..3d4e7b9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuffView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0eb3b00c95a67de4b98fe17e4225d400 +timeCreated: 1611403205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildBehavior.cs new file mode 100644 index 00000000..93bdd319 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildBehavior.cs @@ -0,0 +1,92 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildGrowthBuildBehavior : DlgBehaviourBase + { + public IXUIButton CloseBtn; + + public IXUIButton HelpBtn; + + public Transform m_MyRankTs; + + public IXUIWrapContent m_RankWrapContent; + + public IXUIScrollView m_RankScrollView; + + public IXUILabel m_ProgressNum; + + public IXUIProgress m_Progress; + + public Transform Tag1; + + public IXUILabel Tag1Num; + + public IXUISprite Tag1Click; + + public Transform Tag2; + + public IXUILabel Tag2Num; + + public IXUISprite Tag2Click; + + public IXUILabel m_WeekNumShow; + + public float allDepth; + + public float startX; + + public IXUILabel HuntText; + + public IXUILabel DonateText; + + public IXUISprite HuntTips; + + public IXUISprite DonateTips; + + public IXUIButton HuntBtn; + + public IXUIButton DonateBtn; + + public IXUILabel HuntTimes; + + public IXUILabel DonateTimes; + + public GameObject HuntRedPoint; + + public GameObject DonateRedPoint; + + private void Awake() + { + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.HelpBtn = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_MyRankTs = base.transform.Find("Bg/BuildRank/MyRank"); + this.m_RankWrapContent = (base.transform.Find("Bg/BuildRank/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankScrollView = (base.transform.Find("Bg/BuildRank/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ProgressNum = (base.transform.Find("Bg/BossTexture/num").GetComponent("XUILabel") as IXUILabel); + this.m_Progress = (base.transform.Find("Bg/BossTexture/Progress").GetComponent("XUIProgress") as IXUIProgress); + this.Tag1 = base.transform.Find("Bg/BossTexture/Kd1"); + this.Tag1Num = (this.Tag1.transform.Find("Daytpl/num").GetComponent("XUILabel") as IXUILabel); + this.Tag1Click = (this.Tag1.transform.Find("Daytpl").GetComponent("XUISprite") as IXUISprite); + this.Tag2 = base.transform.Find("Bg/BossTexture/Kd2"); + this.Tag2Num = (this.Tag2.transform.Find("Daytpl/num").GetComponent("XUILabel") as IXUILabel); + this.Tag2Click = (this.Tag2.transform.Find("Daytpl").GetComponent("XUISprite") as IXUISprite); + this.allDepth = this.Tag2.localPosition.x - this.Tag1.localPosition.x; + this.startX = this.Tag1.localPosition.x; + this.m_WeekNumShow = (base.transform.Find("Bg/BossTexture/t").GetComponent("XUILabel") as IXUILabel); + this.HuntText = (base.transform.Find("Bg/Go1/label").GetComponent("XUILabel") as IXUILabel); + this.DonateText = (base.transform.Find("Bg/Go2/label").GetComponent("XUILabel") as IXUILabel); + this.HuntTips = (base.transform.Find("Bg/Go1/Help").GetComponent("XUISprite") as IXUISprite); + this.DonateTips = (base.transform.Find("Bg/Go2/Help").GetComponent("XUISprite") as IXUISprite); + this.HuntBtn = (base.transform.Find("Bg/Go1/BtnEnter").GetComponent("XUIButton") as IXUIButton); + this.DonateBtn = (base.transform.Find("Bg/Go2/BtnEnter").GetComponent("XUIButton") as IXUIButton); + this.HuntTimes = (base.transform.Find("Bg/Go1/num").GetComponent("XUILabel") as IXUILabel); + this.DonateTimes = (base.transform.Find("Bg/Go2/num").GetComponent("XUILabel") as IXUILabel); + this.HuntRedPoint = this.HuntBtn.gameObject.transform.Find("RedPoint").gameObject; + this.DonateRedPoint = this.DonateBtn.gameObject.transform.Find("RedPoint").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildBehavior.cs.meta new file mode 100644 index 00000000..f98b2c13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b65770b5a791068438849dd7fe0c6ee5 +timeCreated: 1611404397 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildView.cs new file mode 100644 index 00000000..a20ea2f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildView.cs @@ -0,0 +1,259 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildGrowthBuildView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildGrowth/GuildGrowthBuildDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XGuildGrowthDocument _doc; + + private XGuildDocument _guildDoc; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + this._guildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.HelpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClick)); + base.uiBehaviour.m_RankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapListUpdated)); + base.uiBehaviour.HuntTips.ID = 825UL; + base.uiBehaviour.HuntTips.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpClick)); + base.uiBehaviour.DonateTips.ID = 826UL; + base.uiBehaviour.DonateTips.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpClick)); + base.uiBehaviour.HuntBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHuntClick)); + base.uiBehaviour.DonateBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDonateClick)); + base.uiBehaviour.Tag1Click.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTagClickTip1)); + base.uiBehaviour.Tag2Click.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTagClickTip2)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.QueryBuildRank(); + this.RefreshRank(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this._doc.QueryBuildRank(); + this.RefreshRank(); + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisible(false, true); + return false; + } + + private bool OnHelpBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildLab_Build); + return true; + } + + private void OnHelpClick(IXUISprite iSp) + { + DlgBase.singleton.ShowHelp((XSysDefine)iSp.ID); + } + + public bool OnDonateClick(IXUIButton btn) + { + DlgBase.singleton.DonateType = GuildDonateType.GrowthDonate; + DlgBase.singleton.SetVisible(true, true); + return true; + } + + public void OnTagClickTip1(IXUISprite iSp) + { + GuildConfigTable.RowData dataByLevel = XGuildDocument.GuildConfig.GetDataByLevel(this._guildDoc.Level); + bool flag = dataByLevel == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("can't find guild data form guildconfig, level = ", this._guildDoc.Level.ToString(), null, null, null, null); + } + else + { + string label = string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildGrowthTagTips1")), dataByLevel.JZSalaryOpen); + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK")); + } + } + + public void OnTagClickTip2(IXUISprite iSp) + { + GuildConfigTable.RowData dataByLevel = XGuildDocument.GuildConfig.GetDataByLevel(this._guildDoc.Level); + bool flag = dataByLevel == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("can't find guild data form guildconfig, level = ", this._guildDoc.Level.ToString(), null, null, null, null); + } + else + { + string label = string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildGrowthTagTips2")), dataByLevel.JZSaleOpen); + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK")); + } + } + + public bool OnHuntClick(IXUIButton btn) + { + bool flag = XSingleton.singleton.SceneID == 4u; + if (flag) + { + this.SetVisible(false, true); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + this._doc.FindNpc(); + } + else + { + this._doc.AutoFindNpc = true; + this._guildDoc.TryEnterGuildScene(); + } + return true; + } + + public void RefreshRank() + { + bool flag = this._doc.RankList.Count == 0; + if (!flag) + { + this.SetRankTpl(base.uiBehaviour.m_MyRankTs, 0, true); + base.uiBehaviour.m_RankWrapContent.SetContentCount(this._doc.RankList.Count, false); + base.uiBehaviour.m_RankScrollView.ResetPosition(); + GuildConfigTable.RowData dataByLevel = XGuildDocument.GuildConfig.GetDataByLevel(this._guildDoc.Level); + bool flag2 = dataByLevel == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("can't find guild data form guildconfig, level = ", this._guildDoc.Level.ToString(), null, null, null, null); + } + else + { + float num = dataByLevel.JZHallTotalmax + dataByLevel.JZSchoolTotalMax; + base.uiBehaviour.m_ProgressNum.SetText(string.Format("{0}/{1}", this._doc.WeekHallPoint + this._doc.WeekSchoolPoint, dataByLevel.JZHallTotalmax + dataByLevel.JZSchoolTotalMax)); + base.uiBehaviour.m_Progress.value = (this._doc.WeekHallPoint + this._doc.WeekSchoolPoint) / num; + float y = base.uiBehaviour.Tag2.localPosition.y; + base.uiBehaviour.Tag1.transform.localPosition = new Vector3(base.uiBehaviour.startX + base.uiBehaviour.allDepth * dataByLevel.JZSalaryOpen / num, y); + base.uiBehaviour.Tag2.transform.localPosition = new Vector3(base.uiBehaviour.startX + base.uiBehaviour.allDepth * dataByLevel.JZSaleOpen / num, y); + base.uiBehaviour.Tag1Num.SetText(string.Format("{0:F1}{1}", dataByLevel.JZSalaryOpen / 10000f, XStringDefineProxy.GetString("NumberSeparator0"))); + base.uiBehaviour.Tag2Num.SetText(string.Format("{0:F1}{1}", dataByLevel.JZSaleOpen / 10000f, XStringDefineProxy.GetString("NumberSeparator0"))); + base.uiBehaviour.m_WeekNumShow.SetText(string.Format(XStringDefineProxy.GetString("GuildGrowthMyNum"), this._doc.MyData.HallPoint + this._doc.MyData.SchoolPoint)); + base.uiBehaviour.HuntText.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildGrowthHuntTips"))); + base.uiBehaviour.DonateText.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildGrowthDonateTips"))); + int @int = XSingleton.singleton.GetInt("GuildJZHuntMaxCount"); + int int2 = XSingleton.singleton.GetInt("GuildJZDonateMaxCount"); + base.uiBehaviour.HuntTimes.SetText(string.Format("{0}/{1}", this._doc.WeekHuntTimes, @int)); + base.uiBehaviour.DonateTimes.SetText(string.Format("{0}/{1}", this._doc.WeekDonateTimes, int2)); + base.uiBehaviour.HuntRedPoint.SetActive((ulong)this._doc.WeekHuntTimes < (ulong)((long)@int)); + base.uiBehaviour.DonateRedPoint.SetActive((ulong)this._doc.WeekDonateTimes < (ulong)((long)int2)); + } + } + } + + public void WrapListUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.RankList.Count; + if (!flag) + { + this.SetRankTpl(t, index, false); + } + } + + public void SetRankTpl(Transform t, int index, bool isMy) + { + XGuildGrowthDocument.GuildGrowthRankData guildGrowthRankData = isMy ? this._doc.MyData : this._doc.RankList[index]; + IXUILabel ixuilabel = t.Find("Rank3").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Rank").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Point").GetComponent("XUILabel") as IXUILabel; + int num = isMy ? this._doc.MyRank : index; + bool flag = num < 3; + if (flag) + { + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + ixuisprite.spriteName = string.Format("N{0}", num + 1); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetVisible(true); + ixuilabel.SetText(string.Format("No.{0}", num + 1)); + } + bool flag2 = !isMy; + if (flag2) + { + ixuilabel2.SetText(guildGrowthRankData.Name); + } + ixuilabel3.SetText((guildGrowthRankData.HallPoint + guildGrowthRankData.SchoolPoint).ToString()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildView.cs.meta new file mode 100644 index 00000000..956151e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthBuildView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ebbc9ab0847d1c4c9fa7661c6afe6be +timeCreated: 1611404130 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDocument.cs new file mode 100644 index 00000000..777d99d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDocument.cs @@ -0,0 +1,431 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildGrowthDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildGrowthDocument.uuID; + } + } + + public GuildZiCai GuildZiCaiTableReader + { + get + { + return XGuildGrowthDocument._guildZiCaiTable; + } + } + + public List BuffList + { + get + { + return XGuildGrowthDocument._buffList; + } + } + + public List RankList + { + get + { + return this._rankList; + } + } + + public List RecordList + { + get + { + return this._recordList; + } + } + + public XGuildGrowthDocument.GuildGrowthRankData MyData + { + get + { + return this._myData; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildGrowthDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GuildHall _guildHallTable = new GuildHall(); + + private static GuildZiCai _guildZiCaiTable = new GuildZiCai(); + + private static Dictionary _buffDict = new Dictionary(); + + private static readonly uint INTERVALNUM = 10000u; + + public bool LevelUpEnable = false; + + public bool AutoFindNpc = false; + + private static List _buffList = new List(); + + private List _rankList = new List(); + + private List _recordList = new List(); + + private XGuildGrowthDocument.GuildGrowthRankData _myData; + + public int MyRank; + + public uint WeekHallPoint; + + public uint WeekSchoolPoint; + + public uint WeekHuntTimes; + + public uint WeekDonateTimes; + + public uint ResourcesPoint; + + public uint TechnologyPoint; + + public uint ResDeltaPoint = 0u; + + public uint TecDeltaPoint = 0u; + + public class GuildGrowthBuffData + { + public uint BuffID; + + public uint BuffLevel; + + public uint BuffMaxLevel; + + public bool Enable; + + public GuildGrowthBuffData(uint id, uint level, uint maxLevel, bool enable) + { + this.BuffID = id; + this.BuffLevel = level; + this.BuffMaxLevel = maxLevel; + this.Enable = enable; + } + } + + public class GuildGrowthRankData + { + public string Name; + + public ulong Uid; + + public uint HallPoint; + + public uint SchoolPoint; + + public GuildGrowthRankData(string name, ulong uid, uint hallPoint, uint schoolPoint) + { + this.Name = name; + this.Uid = uid; + this.HallPoint = hallPoint; + this.SchoolPoint = schoolPoint; + } + } + + public class GuildCrowthRecordData + { + public string Name; + + public uint ItemID; + + public uint Time; + + public GuildCrowthRecordData(string name, uint itemID, uint time) + { + this.Name = name; + this.ItemID = itemID; + this.Time = time; + } + } + + public void SetPoint(uint resources, uint technology) + { + this.ResourcesPoint = resources; + this.TechnologyPoint = technology; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshList(false); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshList(false); + } + } + + public void CheckShowItemGet(uint resDelta, uint tecDelta) + { + this.ResDeltaPoint += resDelta; + this.TecDeltaPoint += tecDelta; + this.ShowDeltaPointGet(); + } + + public void ShowDeltaPointGet() + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (!flag) + { + bool flag2 = this.ResDeltaPoint > 0u; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetReplaceString("GuildGrowthResDelta", new object[0]), this.ResDeltaPoint), "fece00"); + this.ResDeltaPoint = 0u; + } + bool flag3 = this.TecDeltaPoint > 0u; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetReplaceString("GuildGrowthTecDelta", new object[0]), this.TecDeltaPoint), "fece00"); + this.TecDeltaPoint = 0u; + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool autoFindNpc = this.AutoFindNpc; + if (autoFindNpc) + { + this.AutoFindNpc = false; + bool flag = XSingleton.singleton.SceneID == 4u; + if (flag) + { + this.FindNpc(); + } + } + this.ShowDeltaPointGet(); + } + + public void FindNpc() + { + XNpc npc = XSingleton.singleton.GetNpc(19u); + bool flag = npc == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find guild build npc.", null, null, null, null, null); + } + else + { + XSingleton.singleton.LastNpc = npc; + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildGrowthDocument.AsyncLoader.AddTask("Table/GuildHall", XGuildGrowthDocument._guildHallTable, false); + XGuildGrowthDocument.AsyncLoader.AddTask("Table/GuildZiCai", XGuildGrowthDocument._guildZiCaiTable, false); + XGuildGrowthDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + uint num = 0u; + for (int i = 0; i < XGuildGrowthDocument._guildHallTable.Table.Length; i++) + { + bool flag = XGuildGrowthDocument._guildHallTable.Table[i].skillid > num; + if (flag) + { + num = XGuildGrowthDocument._guildHallTable.Table[i].skillid; + } + } + XGuildGrowthDocument._buffList.Clear(); + for (uint num2 = 0u; num2 <= num; num2 += 1u) + { + XGuildGrowthDocument._buffList.Add(new XGuildGrowthDocument.GuildGrowthBuffData(num2, 0u, 0u, false)); + } + XGuildGrowthDocument._buffDict.Clear(); + for (int j = 0; j < XGuildGrowthDocument._guildHallTable.Table.Length; j++) + { + GuildHall.RowData rowData = XGuildGrowthDocument._guildHallTable.Table[j]; + bool flag2 = rowData.level > XGuildGrowthDocument._buffList[(int)rowData.skillid].BuffMaxLevel; + if (flag2) + { + XGuildGrowthDocument._buffList[(int)rowData.skillid].BuffMaxLevel = rowData.level; + } + XGuildGrowthDocument._buffDict.Add(rowData.skillid * XGuildGrowthDocument.INTERVALNUM + rowData.level, rowData); + } + } + + public GuildHall.RowData GetData(uint skillID, uint skillLevel) + { + uint key = skillID * XGuildGrowthDocument.INTERVALNUM + skillLevel; + GuildHall.RowData result = null; + bool flag = !XGuildGrowthDocument._buffDict.TryGetValue(key, out result); + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find guild growth data for guildhall.txt, id = ", skillID.ToString() + " level = ", skillLevel.ToString(), null, null, null); + } + return result; + } + + public void QueryBuffList() + { + RpcC2M_GuildHallGetBuffList rpc = new RpcC2M_GuildHallGetBuffList(); + XSingleton.singleton.Send(rpc); + } + + public void OnBuffListReply(GuildHallGetBuffList_M2C oRes) + { + this.LevelUpEnable = oRes.enableUpdate; + for (int i = 0; i < XGuildGrowthDocument._buffList.Count; i++) + { + XGuildGrowthDocument._buffList[i].BuffLevel = 0u; + XGuildGrowthDocument._buffList[i].Enable = false; + } + for (int j = 0; j < oRes.bufflist.Count; j++) + { + XGuildGrowthDocument._buffList[(int)oRes.bufflist[j].buffid].BuffLevel = oRes.bufflist[j].level; + XGuildGrowthDocument._buffList[(int)oRes.bufflist[j].buffid].Enable = oRes.bufflist[j].isenable; + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshList(false); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshGrowthBuffList(); + } + } + + public void QueryGuildHallBuffLevelUp(uint buffid) + { + RpcC2M_GuildHallUpdateBuff rpcC2M_GuildHallUpdateBuff = new RpcC2M_GuildHallUpdateBuff(); + rpcC2M_GuildHallUpdateBuff.oArg.buffid = buffid; + XSingleton.singleton.Send(rpcC2M_GuildHallUpdateBuff); + } + + public void OnBuffLevelUpSuccess(GuildHallBuffData data) + { + XGuildGrowthDocument._buffList[(int)data.buffid].BuffLevel = data.level; + XGuildGrowthDocument._buffList[(int)data.buffid].Enable = data.isenable; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.ShowLevelUpFx = (int)data.buffid; + DlgBase.singleton.RefreshList(true); + } + } + + public void QueryBuildRank() + { + RpcC2M_GuildSchoolHallGetRankList rpc = new RpcC2M_GuildSchoolHallGetRankList(); + XSingleton.singleton.Send(rpc); + } + + public void OnBuildRankGet(List list, uint hallPoint, uint schoolPoint, uint huntCount, uint donateCount) + { + this.WeekHallPoint = hallPoint; + this.WeekSchoolPoint = schoolPoint; + this.WeekHuntTimes = huntCount; + this.WeekDonateTimes = donateCount; + this._rankList.Clear(); + this._myData = null; + for (int i = 0; i < list.Count; i++) + { + this._rankList.Add(new XGuildGrowthDocument.GuildGrowthRankData(list[i].rolename, list[i].roleid, list[i].weeklyhallpoint, list[i].weeklyschoolpoint)); + bool flag = list[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + this._myData = new XGuildGrowthDocument.GuildGrowthRankData(list[i].rolename, list[i].roleid, list[i].weeklyhallpoint, list[i].weeklyschoolpoint); + } + } + bool flag2 = this._myData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("guild growth rank haven't my data.", null, null, null, null, null); + } + else + { + this._rankList.Sort(new Comparison(this.Compare)); + for (int j = 0; j < this._rankList.Count; j++) + { + bool flag3 = this._rankList[j].Uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + this.MyRank = j; + break; + } + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshRank(); + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.RefreshGrowthDonateTimes(); + } + } + } + + private int Compare(XGuildGrowthDocument.GuildGrowthRankData x, XGuildGrowthDocument.GuildGrowthRankData y) + { + bool flag = x.Uid == y.Uid; + int result; + if (flag) + { + result = 0; + } + else + { + result = (int)(y.HallPoint + y.SchoolPoint - x.HallPoint - x.SchoolPoint); + } + return result; + } + + public void QueryGuildGrowthDonate(uint itemid) + { + RpcC2M_GuildZiCaiDonate rpcC2M_GuildZiCaiDonate = new RpcC2M_GuildZiCaiDonate(); + rpcC2M_GuildZiCaiDonate.oArg.itemid = itemid; + XSingleton.singleton.Send(rpcC2M_GuildZiCaiDonate); + } + + public void QueryGrowthRecordList() + { + RpcC2M_GuildZiCaiDonateHistory rpc = new RpcC2M_GuildZiCaiDonateHistory(); + XSingleton.singleton.Send(rpc); + } + + public void OnGrowthRecordListGet(List list) + { + this._recordList.Clear(); + for (int i = 0; i < list.Count; i++) + { + this._recordList.Add(new XGuildGrowthDocument.GuildCrowthRecordData(list[i].rolename, list[i].itemid, list[i].time)); + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.CheckRecordRefresh(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDocument.cs.meta new file mode 100644 index 00000000..2f964234 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad2059f05882bdd49aaa7d8ca201cf84 +timeCreated: 1611404334 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs new file mode 100644 index 00000000..210107a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs @@ -0,0 +1,109 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildGrowthDonateView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildGrowth/GuildGrowthDonate"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + protected override void Init() + { + this.InitProperties(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + } + + private void InitProperties() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.RecordBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickedRecordBtn)); + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.OnInitWrapContent)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateWrapContent)); + base.uiBehaviour.RecordWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateRecordWrapContent)); + } + + private void OnUpdateRecordWrapContent(Transform itemTransform, int index) + { + } + + private bool OnClickedRecordBtn(IXUIButton button) + { + return true; + } + + private void OnUpdateWrapContent(Transform itemTransform, int index) + { + } + + private void OnInitWrapContent(Transform itemTransform, int index) + { + } + + private bool OnClose(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs.meta new file mode 100644 index 00000000..a4867fab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthDonateView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1db7614a065cc1a41bd93286569e7b25 +timeCreated: 1611403357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthEntranceView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthEntranceView.cs new file mode 100644 index 00000000..9a35f877 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthEntranceView.cs @@ -0,0 +1,110 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildGrowthEntranceView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildGrowth/GuildGrowthEntranceDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XGuildGrowthDocument _doc; + + protected override void Init() + { + this.InitProperties(); + this._doc = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private void InitProperties() + { + base.uiBehaviour.BuilderBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickBuilderBtn)); + base.uiBehaviour.LabBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickLabBtn)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + } + + private bool OnClose(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + private bool OnClickLabBtn(IXUIButton button) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + + private bool OnClickBuilderBtn(IXUIButton button) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthEntranceView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthEntranceView.cs.meta new file mode 100644 index 00000000..6e6e3fb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthEntranceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce0191f5bb3e9974496c0cc4bef5458a +timeCreated: 1611404577 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabBehavior.cs new file mode 100644 index 00000000..9adfecc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabBehavior.cs @@ -0,0 +1,64 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildGrowthLabBehavior : DlgBehaviourBase + { + public IXUIButton CloseBtn; + + public IXUIButton HelpBtn; + + public IXUISprite m_DetailBuffIcon; + + public IXUILabel m_DetailBuffName; + + public IXUILabel m_DetailMaxLevel; + + public IXUILabel m_DetailCurrLevel; + + public IXUILabel m_DetailNextLevel; + + public IXUILabel m_DetailCurrKeepCost; + + public IXUILabel m_DetailNextKeepCost; + + public IXUILabelSymbol m_DetailCost; + + public IXUIButton LevelUpBtn; + + public IXUILabel LevelUpText; + + public IXUIScrollView ScrollView; + + public XUIPool BuffItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_PointLeft; + + public IXUISprite m_PointClick; + + private void Awake() + { + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.HelpBtn = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_DetailBuffIcon = (base.transform.Find("Bg/Detail/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_DetailBuffName = (base.transform.Find("Bg/Detail/Name").GetComponent("XUILabel") as IXUILabel); + this.m_DetailMaxLevel = (base.transform.Find("Bg/Detail/MaxLevel/Num").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCurrLevel = (base.transform.Find("Bg/Detail/CurrentLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailNextLevel = (base.transform.Find("Bg/Detail/CurrentLevel/NextLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCurrKeepCost = (base.transform.Find("Bg/Detail/CurrentAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailNextKeepCost = (base.transform.Find("Bg/Detail/CurrentAttr/NextAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCost = (base.transform.Find("Bg/Detail/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.LevelUpBtn = (base.transform.Find("Bg/Detail/Levelup").GetComponent("XUIButton") as IXUIButton); + this.LevelUpText = (base.transform.Find("Bg/Detail/Levelup/Text").GetComponent("XUILabel") as IXUILabel); + this.ScrollView = (base.transform.Find("Bg/SkillList").GetComponent("XUIScrollView") as IXUIScrollView); + GameObject gameObject = base.transform.Find("Bg/SkillList/SkillTpl").gameObject; + this.BuffItemPool.SetupPool(gameObject.transform.parent.gameObject, gameObject, 10u, false); + this.m_PointLeft = (base.transform.Find("Bg/Point/value").GetComponent("XUILabel") as IXUILabel); + this.m_PointClick = (base.transform.Find("Bg/Point/P").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabBehavior.cs.meta new file mode 100644 index 00000000..6b3c6e19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ba59a413a00c584cb32846cc8ad9298 +timeCreated: 1611403687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabView.cs new file mode 100644 index 00000000..711004a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabView.cs @@ -0,0 +1,268 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildGrowthLabView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildGrowth/GuildGrowthLabDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildGrowthLab); + } + } + + private XGuildGrowthDocument _doc; + + private XGuildDocument _guildDoc; + + private XGuildSkillDocument _skillDoc = null; + + private int _currSelectID = 0; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + this._guildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this._skillDoc = XDocuments.GetSpecificDocument(XGuildSkillDocument.uuID); + } + + private bool OnClose(IXUIButton button) + { + this.SetVisible(false, true); + return false; + } + + private void OnPointClick(IXUISprite iSp) + { + XSingleton.singleton.ShowItemAccess(35, null); + } + + private bool OnHelpBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildGrowthLab); + return true; + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.HelpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClick)); + base.uiBehaviour.LevelUpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLevelUpBtnClick)); + base.uiBehaviour.m_PointClick.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPointClick)); + } + + protected override void OnShow() + { + this._currSelectID = -1; + this.RefreshList(false); + } + + private bool OnCheckBoxClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._currSelectID = (int)icb.ID; + this.RefreshDetail(); + result = true; + } + return result; + } + + private bool OnLevelUpBtnClick(IXUIButton btn) + { + uint skillID = XGuildSkillDocument.GuildSkillIDs[this._currSelectID]; + uint skillMaxLevel = this._skillDoc.GetSkillMaxLevel(skillID); + GuildSkillTable.RowData guildSkill = this._skillDoc.GetGuildSkill(skillID, skillMaxLevel + 1u); + bool flag = guildSkill == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this._guildDoc.Level < guildSkill.glevel; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("GuildGrowthHallGuildLevelNeedShow"), guildSkill.glevel), "fece00"); + result = false; + } + else + { + bool flag3 = !this._doc.LevelUpEnable; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GuildGrowthAuthorityFail"), "fece00"); + result = false; + } + else + { + this._skillDoc.GetStudyGuildSkill(XGuildSkillDocument.GuildSkillIDs[this._currSelectID]); + result = true; + } + } + } + return result; + } + + public void RefreshList(bool forceRefreshDetail = false) + { + base.uiBehaviour.BuffItemPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.BuffItemPool.TplPos; + int num = 0; + IXUICheckBox ixuicheckBox = null; + List guildSkillIDs = XGuildSkillDocument.GuildSkillIDs; + for (int i = 0; i < guildSkillIDs.Count; i++) + { + uint skillMaxLevel = this._skillDoc.GetSkillMaxLevel(guildSkillIDs[i]); + GuildSkillTable.RowData rowData; + bool flag = !this._skillDoc.TryGetGuildSkill(guildSkillIDs[i], skillMaxLevel, out rowData); + if (flag) + { + return; + } + bool flag2 = rowData.needtype == 1u; + if (!flag2) + { + GameObject gameObject = base.uiBehaviour.BuffItemPool.FetchGameObject(false); + gameObject.transform.localPosition = tplPos + new Vector3((float)(num % 2 * base.uiBehaviour.BuffItemPool.TplWidth), (float)(-(float)(num / 2) * base.uiBehaviour.BuffItemPool.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Attr").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUICheckBox ixuicheckBox2 = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckBoxClick)); + ixuicheckBox2.ID = (ulong)i; + bool flag3 = i == this._currSelectID || this._currSelectID == -1; + if (flag3) + { + ixuicheckBox = ixuicheckBox2; + this._currSelectID = i; + } + ixuilabel.SetText(string.Format("{0}/{1}", skillMaxLevel.ToString(), this._skillDoc.GetLabSkillMaxLevel(guildSkillIDs[i]))); + ixuilabel2.SetText(rowData.name); + ixuilabel3.SetText(string.Format(rowData.currentLevelDescription, rowData.attribute[0, 1])); + ixuisprite.SetSprite(rowData.icon, rowData.atlas, false); + num++; + } + } + bool flag4 = ixuicheckBox != null; + if (flag4) + { + ixuicheckBox.bChecked = true; + } + base.uiBehaviour.m_PointLeft.SetText(this._doc.TechnologyPoint.ToString()); + if (forceRefreshDetail) + { + this.RefreshDetail(); + return; + } + } + + public void RefreshDetail() + { + uint skillID = XGuildSkillDocument.GuildSkillIDs[this._currSelectID]; + uint skillMaxLevel = this._skillDoc.GetSkillMaxLevel(skillID); + uint labSkillMaxLevel = this._skillDoc.GetLabSkillMaxLevel(skillID); + GuildSkillTable.RowData guildSkill = this._skillDoc.GetGuildSkill(skillID, skillMaxLevel); + GuildSkillTable.RowData guildSkill2 = this._skillDoc.GetGuildSkill(skillID, skillMaxLevel + 1u); + bool flag = skillMaxLevel == labSkillMaxLevel; + base.uiBehaviour.m_DetailBuffIcon.SetSprite(guildSkill.icon, guildSkill.atlas, false); + base.uiBehaviour.m_DetailBuffName.SetText(guildSkill.name); + base.uiBehaviour.m_DetailMaxLevel.SetText(labSkillMaxLevel.ToString()); + bool flag2 = flag; + if (flag2) + { + base.uiBehaviour.m_DetailCurrLevel.SetVisible(false); + base.uiBehaviour.m_DetailCurrKeepCost.SetVisible(false); + base.uiBehaviour.m_DetailCost.InputText = "0"; + base.uiBehaviour.LevelUpBtn.SetEnable(false, false); + base.uiBehaviour.LevelUpText.SetText(XStringDefineProxy.GetString("GuildGrowthHallMaxLevel")); + } + else + { + base.uiBehaviour.m_DetailCurrLevel.SetVisible(true); + base.uiBehaviour.m_DetailCurrKeepCost.SetVisible(true); + base.uiBehaviour.m_DetailCurrLevel.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("GuildGrowthHallLevel"), skillMaxLevel)); + base.uiBehaviour.m_DetailNextLevel.SetText((skillMaxLevel + 1u).ToString()); + base.uiBehaviour.m_DetailCurrKeepCost.SetText(string.Format("{0} {1}", guildSkill.name, guildSkill.attribute[0, 1])); + base.uiBehaviour.m_DetailNextKeepCost.SetText(guildSkill2.attribute[0, 1].ToString()); + base.uiBehaviour.m_DetailCost.InputText = string.Format("{0}{1}{2}", (this._doc.TechnologyPoint >= guildSkill2.rexp) ? "" : "[e60012]", XLabelSymbolHelper.FormatSmallIcon(35), guildSkill2.rexp); + base.uiBehaviour.LevelUpBtn.SetEnable(true, false); + base.uiBehaviour.LevelUpBtn.SetGrey(this._guildDoc.Level >= guildSkill2.glevel); + base.uiBehaviour.LevelUpText.SetText(XStringDefineProxy.GetString((this._guildDoc.Level >= guildSkill2.glevel) ? "GuildGrowthLabLevelUp" : "GuildGrowthHallGuildLevelNeed")); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabView.cs.meta new file mode 100644 index 00000000..b36e6f27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildGrowthLabView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81082cdb41f70c64a9e550efea45ac7d +timeCreated: 1611404035 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildHallDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildHallDocument.cs new file mode 100644 index 00000000..98df9a70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildHallDocument.cs @@ -0,0 +1,224 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildHallDocument : XDocComponent, ILogSource + { + public override uint ID + { + get + { + return XGuildHallDocument.uuID; + } + } + + public XGuildHallView GuildHallView { get; set; } + + private XGuildDocument GuildDoc + { + get + { + bool flag = this._GuildDoc == null; + if (flag) + { + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + } + return this._GuildDoc; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildHallDocument"); + + private List m_LogList = new List(); + + private XGuildDocument _GuildDoc; + + public List GetLogList() + { + return this.m_LogList; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_GuildPositionChanged, new XComponent.XEventHandler(this.OnPositionChanged)); + base.RegisterEvent(XEventDefine.XEvent_GuildLevelChanged, new XComponent.XEventHandler(this.OnLevelChanged)); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnInGuildStateChanged)); + } + + protected bool OnPositionChanged(XEventArgs args) + { + XGuildPositionChangedEventArgs xguildPositionChangedEventArgs = args as XGuildPositionChangedEventArgs; + bool flag = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag) + { + this.GuildHallView.RefreshButtonsState(); + } + return true; + } + + protected bool OnLevelChanged(XEventArgs args) + { + XGuildLevelChangedEventArgs xguildLevelChangedEventArgs = args as XGuildLevelChangedEventArgs; + bool flag = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag) + { + this.ReqGuildBrief(); + } + return true; + } + + protected bool OnInGuildStateChanged(XEventArgs args) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = args as XInGuildStateChangedEventArgs; + bool flag = !xinGuildStateChangedEventArgs.bIsEnter; + if (flag) + { + bool flag2 = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag2) + { + this.GuildHallView.SetVisibleWithAnimation(false, null); + } + } + return true; + } + + public void ReqExitGuild() + { + RpcC2M_LeaveFromGuild rpcC2M_LeaveFromGuild = new RpcC2M_LeaveFromGuild(); + rpcC2M_LeaveFromGuild.oArg.roleID = XSingleton.singleton.Player.Attributes.EntityID; + XSingleton.singleton.Send(rpcC2M_LeaveFromGuild); + } + + public void OnExitGuild(LeaveGuildRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public void ReqGuildBrief() + { + RpcC2M_AskGuildBriefInfo rpc = new RpcC2M_AskGuildBriefInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGuildBrief(GuildBriefRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XGuildBasicData basicData = this.GuildDoc.BasicData; + basicData.Init(oRes); + bool flag2 = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag2) + { + this.GuildHallView.Refresh(); + } + XGuildGrowthDocument specificDocument = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + specificDocument.SetPoint(this.GuildDoc.BasicData.resource, this.GuildDoc.BasicData.technology); + } + } + + public void ReqLogList() + { + RpcC2M_FetchGuildHistoryNew rpc = new RpcC2M_FetchGuildHistoryNew(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetLogList(GuildHistoryRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + for (int i = 0; i < this.m_LogList.Count; i++) + { + (this.m_LogList[i] as XDataBase).Recycle(); + } + this.m_LogList.Clear(); + for (int j = 0; j < oRes.records.Count; j++) + { + GHisRecord ghisRecord = oRes.records[j]; + XGuildLogBase xguildLogBase = XGuildLogBase.CreateLog(ghisRecord.type); + xguildLogBase.SetData(ghisRecord); + this.m_LogList.Add(xguildLogBase); + } + bool flag2 = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag2) + { + bool flag3 = this.GuildHallView.LogView != null && this.GuildHallView.LogView.active; + if (flag3) + { + this.GuildHallView.LogView.Refresh(); + } + } + } + } + + public void ReqEditAnnounce(string s) + { + RpcC2M_ChangeGuildSettingNew rpcC2M_ChangeGuildSettingNew = new RpcC2M_ChangeGuildSettingNew(); + rpcC2M_ChangeGuildSettingNew.oArg.annoucement = s; + XSingleton.singleton.Send(rpcC2M_ChangeGuildSettingNew); + } + + public void OnEditAnnounceSuccess(string s) + { + bool flag = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag) + { + this.GuildHallView.EditAnnounceView.SetVisible(false); + } + } + + public void OnAnnounceChanged(string s) + { + this.GuildDoc.BasicData.announcement = s; + bool flag = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag) + { + this.GuildHallView.RefreshAnnouncement(); + } + } + + public void ReqEditPortrait(int index) + { + RpcC2M_ChangeGuildSettingNew rpcC2M_ChangeGuildSettingNew = new RpcC2M_ChangeGuildSettingNew(); + rpcC2M_ChangeGuildSettingNew.oArg.Icon = index; + XSingleton.singleton.Send(rpcC2M_ChangeGuildSettingNew); + } + + public void OnPortraitChanged(int index) + { + this.GuildDoc.BasicData.portraitIndex = index; + bool flag = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag) + { + this.GuildHallView.RefreshPortrait(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.GuildHallView != null && this.GuildHallView.IsVisible(); + if (flag) + { + this.ReqGuildBrief(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildHallDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildHallDocument.cs.meta new file mode 100644 index 00000000..754be4ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildHallDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f215ff586075646498e34ec54e03a36f +timeCreated: 1611404841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildInfoChange.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildInfoChange.cs new file mode 100644 index 00000000..e294f2d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildInfoChange.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XGuildInfoChange : XEventArgs + { + public XGuildInfoChange() + { + this._eDefine = XEventDefine.XEvent_GuildInfoChange; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildInfoChange.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildInfoChange.cs.meta new file mode 100644 index 00000000..c2ad8ee2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildInfoChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96ba3f23fb32e44419cadd61168389a7 +timeCreated: 1611404186 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildInheritDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildInheritDocument.cs new file mode 100644 index 00000000..074b6e0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildInheritDocument.cs @@ -0,0 +1,566 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildInheritDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildInheritDocument.uuID; + } + } + + public uint TeacherCount + { + get + { + return this.m_teacherCount; + } + } + + public uint StudentCount + { + get + { + return this.m_studentCount; + } + } + + private static int InheritLimitRange + { + get + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint sealType = specificDocument.SealType; + SeqList sequenceList = XSingleton.singleton.GetSequenceList("GuildInheritRoleLvlGap", true); + int i = 0; + int count = (int)sequenceList.Count; + while (i < count) + { + bool flag = (long)sequenceList[i, 0] == (long)((ulong)sealType); + if (flag) + { + return sequenceList[i, 1]; + } + i++; + } + return sequenceList[(int)(sequenceList.Count - 1), 1]; + } + } + + public List InheritList + { + get + { + return this.m_inheritList; + } + } + + public uint bHasAvailableIconShow + { + get + { + return this.m_avilableReqCount; + } + set + { + this.m_avilableReqCount = value; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildInherit, true); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildInheritDocument"); + + private uint m_avilableReqCount = 0u; + + private uint m_teacherCount = 0u; + + private uint m_studentCount = 0u; + + private List m_inheritList = new List(); + + private ulong m_SelectFriend = 0UL; + + private float m_teacherTime = 0f; + + private XFx m_selectEffect = null; + + private bool m_Inheriting = false; + + private float m_bubbleTime = 11f; + + private ulong InheritTeacherID = 0UL; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendInheritList(); + } + } + + public string GetTeacherLeftTimeString() + { + bool flag = this.m_teacherTime > 0f; + string result; + if (flag) + { + result = XStringDefineProxy.GetString("GUILD_INHERIT_TEACHER_TIME", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this.m_teacherTime, 5) + }); + } + else + { + result = string.Empty; + } + return result; + } + + public bool TryGetInheritCountString(out string message) + { + message = string.Empty; + bool flag = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.StudentMinLevel); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.TeacherMinLevel); + if (flag2) + { + message = XStringDefineProxy.GetString("GUILD_INHERIT_MESSAGE2", new object[] + { + XSingleton.singleton.TeacherMinLevel, + this.m_studentCount + }); + } + else + { + message = XStringDefineProxy.GetString("GUILD_INHERIT_MESSAGE1", new object[] + { + this.m_teacherCount, + this.m_studentCount, + XGuildInheritDocument.InheritLimitRange + }); + } + result = true; + } + return result; + } + + public static void TryOutInherit(XEntity entity) + { + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + XSingleton.singleton.AddGreenLog("Player Out Inherit", null, null, null, null, null); + XSingleton.singleton.Freezed = false; + bool flag = entity.Nav != null; + if (flag) + { + entity.Nav.Interrupt(); + entity.Nav.Enabled = true; + } + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + specificDocument.StopInherit(); + } + XInheritComponent xinheritComponent = entity.GetXComponent(XInheritComponent.uuID) as XInheritComponent; + bool flag2 = xinheritComponent != null; + if (flag2) + { + entity.DetachComponent(XInheritComponent.uuID); + } + XBubbleComponent xbubbleComponent = entity.GetXComponent(XBubbleComponent.uuID) as XBubbleComponent; + bool flag3 = xbubbleComponent != null; + if (flag3) + { + entity.DetachComponent(XBubbleComponent.uuID); + } + } + + public void StopInherit() + { + this.m_Inheriting = false; + bool flag = this.m_selectEffect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_selectEffect, true); + this.m_selectEffect = null; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.HideProcess(); + } + } + + public static void TryInInherit(XEntity entity) + { + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + XSingleton.singleton.AddGreenLog("Player in Inherit", null, null, null, null, null); + XSingleton.singleton.Freezed = false; + XSingleton.singleton.Freezed = true; + bool flag = entity.Nav != null; + if (flag) + { + entity.Nav.Interrupt(); + entity.Nav.Enabled = false; + } + } + XInheritComponent xinheritComponent = entity.GetXComponent(XInheritComponent.uuID) as XInheritComponent; + bool flag2 = xinheritComponent == null; + if (flag2) + { + XSingleton.singleton.CreateComponent(entity, XInheritComponent.uuID); + } + } + + public static bool IsInherit(uint level) + { + return XGuildInheritDocument.IsInheritInitiator(level) || XGuildInheritDocument.IsInheritReceiver(level); + } + + public static bool IsInheritReceiver(uint level) + { + bool flag = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.StudentMinLevel) || (ulong)level < (ulong)((long)XSingleton.singleton.TeacherMinLevel); + return !flag && level - XSingleton.singleton.XPlayerData.Level >= (uint)XGuildInheritDocument.InheritLimitRange; + } + + public static bool IsInheritInitiator(uint level) + { + bool flag = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.TeacherMinLevel) || (ulong)level < (ulong)((long)XSingleton.singleton.StudentMinLevel); + return !flag && XSingleton.singleton.XPlayerData.Level - level >= (uint)XGuildInheritDocument.InheritLimitRange; + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.m_teacherTime > 0f; + if (flag) + { + this.m_teacherTime -= fDeltaT; + } + else + { + this.m_teacherTime = 0f; + } + bool inheriting = this.m_Inheriting; + if (inheriting) + { + bool flag2 = this.m_bubbleTime > 0f; + if (flag2) + { + this.m_bubbleTime -= fDeltaT; + } + else + { + this.m_bubbleTime = 11f; + this.ShowBubble(); + } + } + } + + public void SynInheritExp(synGuildInheritExp res) + { + XSingleton.singleton.AddGreenLog("SynInheritExp:", res.teacherId.ToString(), null, null, null, null); + bool flag = res.turn == 0u; + if (flag) + { + bool flag2 = XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID) == SceneType.SCENE_HALL; + if (flag2) + { + XSingleton.singleton.CloseAllUI(); + } + this.InheritTeacherID = res.teacherId; + XSingleton.singleton.AddGreenLog("Start Inherit", null, null, null, null, null); + this.m_Inheriting = true; + this.m_bubbleTime = 11f; + float countdownTime = (float)(XSingleton.singleton.GetInt("GuildInheritTime") * XSingleton.singleton.GetInt("GuildInheritTimes")); + string @string = XStringDefineProxy.GetString("GUILD_INHERIT_PROCESSMESS"); + string string2 = XStringDefineProxy.GetString("GUILD_INHERIT_HELP"); + DlgBase.singleton.ShowProcess(countdownTime, @string, string2, null); + bool flag3 = XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID) == SceneType.SCENE_GUILD_HALL && XSingleton.singleton.XPlayerData != null; + if (flag3) + { + bool flag4 = XSingleton.singleton.XPlayerData.RoleID == res.teacherId; + if (flag4) + { + this.m_teacherCount -= 1u; + } + else + { + this.m_studentCount -= 1u; + } + } + } + else + { + bool islast = res.islast; + if (islast) + { + this.m_Inheriting = false; + this.InheritTeacherID = 0UL; + DlgBase.singleton.HideProcess(); + XSingleton.singleton.AddGreenLog("Stop Inherit", null, null, null, null, null); + ulong num = 0UL; + bool flag5 = XSingleton.singleton.XPlayerData.RoleID != res.roleOne; + if (flag5) + { + num = res.roleOne; + } + else + { + bool flag6 = XSingleton.singleton.XPlayerData.RoleID != res.roleTwo; + if (flag6) + { + num = res.roleTwo; + } + } + bool flag7 = (ulong)res.turn == (ulong)((long)XSingleton.singleton.GetInt("GuildInheritTimes")); + if (flag7) + { + bool flag8 = XSingleton.singleton.XPlayerData.RoleID != this.InheritTeacherID; + if (flag8) + { + DlgBase.singleton.AddChat(XStringDefineProxy.GetString("GUILD_INHERIT_CHAT2"), ChatChannelType.Guild, null, false); + } + bool flag9 = num != 0UL && !DlgBase.singleton.IsMyFriend(num); + if (flag9) + { + this.m_SelectFriend = num; + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_INHERIT_ADDFRIEND"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this.OnAddFriend)); + } + } + } + } + bool flag10 = res.islast || this.m_selectEffect != null; + if (!flag10) + { + XEntity entity = XSingleton.singleton.GetEntity(res.roleOne); + XEntity entity2 = XSingleton.singleton.GetEntity(res.roleTwo); + bool flag11 = entity == null || entity2 == null; + if (!flag11) + { + Vector3 position = entity.EngineObject.Position; + Vector3 position2 = entity2.EngineObject.Position; + Vector3 position3 = (position + position2) / 2f; + this.m_selectEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_cg_lx", null, true); + Quaternion rotation = Quaternion.FromToRotation(position - position2, Vector3.zero); + this.m_selectEffect.Play(position3, rotation, Vector3.one, 1f); + } + } + } + + private void ShowBubble() + { + bool flag = this.InheritTeacherID == 0UL; + if (!flag) + { + XEntity entity = XSingleton.singleton.GetEntity(this.InheritTeacherID); + bool flag2 = entity == null; + if (!flag2) + { + XBubbleEventArgs @event = XEventPool.GetEvent(); + @event.bubbletext = XStringDefineProxy.GetString("GUILD_INHERIT_CHAT1"); + @event.existtime = 3f; + @event.Firer = entity; + @event.speaker = entity.Name; + XBubbleComponent xbubbleComponent = entity.GetXComponent(XBubbleComponent.uuID) as XBubbleComponent; + bool flag3 = xbubbleComponent == null; + if (flag3) + { + XSingleton.singleton.CreateComponent(entity, XBubbleComponent.uuID); + } + XSingleton.singleton.FireEvent(@event); + } + } + } + + private bool OnAddFriend(IXUIButton btn) + { + DlgBase.singleton.AddFriendById(this.m_SelectFriend); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public void SynInheritBaseInfo(SynGuildInheritNumInfo res) + { + XSingleton.singleton.AddGreenLog("XGuildInheritDocument.SynInheritBaseInfo teacherNumber:", res.teacherNum.ToString(), " teacher:", res.lastTime.ToString(), null, null); + this.bHasAvailableIconShow = res.reqNum; + this.m_studentCount = res.studentNum; + this.m_teacherCount = res.teacherNum; + bool flag = this.m_teacherCount > 0u; + if (flag) + { + this.m_teacherTime = res.lastTime; + } + else + { + this.m_teacherTime = 0f; + } + } + + public void SendInheritList() + { + RpcC2M_ReqGuildInheritInfo rpc = new RpcC2M_ReqGuildInheritInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveInheritList(ReqGuildInheritInfoArg oArg, ReqGuildInheritInfoRes oRes) + { + this.m_inheritList.Clear(); + int num = oRes.data.Count - this.m_inheritList.Count; + bool flag = num < 0; + if (flag) + { + this.m_inheritList.RemoveRange(this.m_inheritList.Count + num, -num); + } + else + { + for (int i = 0; i < num; i++) + { + GuildInheritInfo item = new GuildInheritInfo(); + this.m_inheritList.Add(item); + } + } + int j = 0; + int count = this.m_inheritList.Count; + while (j < count) + { + this.m_inheritList[j].Set(oRes.data[j]); + j++; + } + this.bHasAvailableIconShow = (uint)this.m_inheritList.Count; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshData(); + } + } + + public void SendDelInherit() + { + RpcC2M_DelGuildInherit rpc = new RpcC2M_DelGuildInherit(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveDelInherit(DelGuildInheritRes res) + { + bool flag = res.errorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorCode, "fece00"); + } + else + { + this.m_inheritList.Clear(); + this.bHasAvailableIconShow = (uint)this.m_inheritList.Count; + } + } + + public void SendReqInherit(ulong uid) + { + RpcC2M_AddGuildInherit rpcC2M_AddGuildInherit = new RpcC2M_AddGuildInherit(); + rpcC2M_AddGuildInherit.oArg.reqRoleId = uid; + XSingleton.singleton.Send(rpcC2M_AddGuildInherit); + } + + public void ReceiveReqInherit(AddGuildInheritArg arg, AddGuildInheritRes res) + { + XSingleton.singleton.AddGreenLog("XGuildInheritDocument.ReceiveReqInherit", null, null, null, null, null); + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_INHERIT_REQSUCCESS"), "fece00"); + } + } + + public void SendAccpetInherit(int index) + { + bool flag = this.m_inheritList == null || index < 0 || index >= this.m_inheritList.Count; + if (!flag) + { + GuildInheritInfo guildInheritInfo = this.m_inheritList[index]; + bool flag2 = !XGuildInheritDocument.IsInherit(guildInheritInfo.level); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_GUILD_INHERIT_LVL"), "fece00"); + } + else + { + bool flag3 = XSingleton.singleton.XPlayerData.Outlook.state.type == OutLookStateType.OutLook_Inherit; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_INHERIT_ING"), "fece00"); + } + else + { + RpcC2M_AceptGuildInherit rpcC2M_AceptGuildInherit = new RpcC2M_AceptGuildInherit(); + rpcC2M_AceptGuildInherit.oArg.roleId = guildInheritInfo.uid; + XSingleton.singleton.Send(rpcC2M_AceptGuildInherit); + } + } + } + } + + public void ReceiveAccpetInherit(AceptGuildInheritArg arg, AceptGuildInheritRes res) + { + bool flag = false; + int i = 0; + int count = this.m_inheritList.Count; + while (i < count) + { + bool flag2 = this.m_inheritList[i].uid == arg.roleId; + if (flag2) + { + this.m_inheritList.RemoveAt(i); + flag = true; + break; + } + i++; + } + bool flag3 = flag; + if (flag3) + { + this.bHasAvailableIconShow = (uint)this.m_inheritList.Count; + } + bool flag4 = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.RefreshData(); + } + } + else + { + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildInheritDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildInheritDocument.cs.meta new file mode 100644 index 00000000..e33f9c5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildInheritDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07372aaccd9ea234caedeaafcc584f97 +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchDocument.cs new file mode 100644 index 00000000..da183d15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchDocument.cs @@ -0,0 +1,548 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildJockerMatchDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildJockerMatchDocument.uuID; + } + } + + public XGuildJockerMatchStep MatchStep + { + get + { + return this.m_MatchStep; + } + } + + public CardMatchState MatchState + { + get + { + return this.m_matchState; + } + } + + public double TimeLeft + { + get + { + return this.m_timeLeft; + } + set + { + this.m_timeLeft = value; + } + } + + public uint ChangeCount + { + get + { + return this.m_changeount; + } + } + + public uint MatchRound + { + get + { + return this.m_matchRound; + } + } + + public uint MatchResult + { + get + { + return this.m_matchResult; + } + } + + public List MatchJockers + { + get + { + return this.m_matchJokers; + } + } + + public uint MatchJockerStore + { + get + { + return this.m_matchJockerStore; + } + } + + public List MatchBestJockers + { + get + { + return this.m_matchBestJockers; + } + } + + public string MatchBestJockerName + { + get + { + return this.m_matchBestName; + } + } + + public List MatchRankNames + { + get + { + return this.m_matchRankName; + } + } + + public List MatchRankScores + { + get + { + return this.m_matchRankScore; + } + } + + public List MatchItems + { + get + { + return this.m_matchItems; + } + } + + public bool IsBegin + { + get + { + return this.m_isBegion; + } + } + + public bool IsCanBegin + { + get + { + return this.m_isCanBegion; + } + } + + public double BeginTime + { + get + { + return this.m_BeginTime; + } + } + + public bool bAvaiableIconWhenShow + { + get + { + return this.m_bAvaiableIconWhenShow; + } + set + { + bool flag = this.m_bAvaiableIconWhenShow != value; + if (flag) + { + this.m_bAvaiableIconWhenShow = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildRelax_JokerMatch, true); + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_JokerMatch, true); + } + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildJokerMatchDocument"); + + private bool m_bAvaiableIconWhenShow = false; + + private XGuildJockerMatchStep m_MatchStep = XGuildJockerMatchStep.BeforeGame; + + private CardMatchState m_matchState; + + private double m_timeLeft; + + private uint m_changeount; + + private uint m_matchRound; + + private uint m_matchResult; + + private uint m_matchJockerStore; + + private uint m_oldJockerID = 0u; + + private string m_matchBestName = string.Empty; + + private List m_matchJokers = new List(); + + private List m_matchBestJockers = new List(); + + private List m_matchRankName = new List(); + + private List m_matchRankScore = new List(); + + private uint JokerToken; + + private bool m_isBegion = false; + + private bool m_isCanBegion = false; + + private double m_BeginTime = 0.0; + + public bool wattingPTC = false; + + private List m_matchItems = new List(); + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendJokerMatchQuery(); + } + } + + public void SendJokerMatchRank() + { + PtcC2M_GuildCardRankReq ptcC2M_GuildCardRankReq = new PtcC2M_GuildCardRankReq(); + ptcC2M_GuildCardRankReq.Data.type = 2u; + XSingleton.singleton.Send(ptcC2M_GuildCardRankReq); + } + + public void ReceiveJokerRank(List names, List scores) + { + this.m_matchRankName.Clear(); + this.m_matchRankName.AddRange(names); + this.m_matchRankScore.Clear(); + this.m_matchRankScore.AddRange(scores); + int score = 0; + int rank = -1; + for (int i = 0; i < names.Count; i++) + { + bool flag = names[i] == XSingleton.singleton.XPlayerData.Name; + if (flag) + { + bool flag2 = i < scores.Count; + if (flag2) + { + score = scores[i]; + rank = i; + break; + } + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetRankInfo(this.m_matchRankName.Count); + DlgBase.singleton.RefreshSelfRank(score, rank); + } + } + + public void SendJokerMatchQuery() + { + this.SendGuildJokerMatchInfo(CardMatchOp.CardMatch_Query, 0u); + } + + public void SendJokerMatchBegion() + { + this.SendGuildJokerMatchInfo(CardMatchOp.CardMatch_Begin, 0u); + } + + public void SendReqJokerMatchJoin() + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_REQ_JOIN"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnReqJokerMatchJoin)); + } + + private bool OnReqJokerMatchJoin(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this.SendJokerMatchJoin(); + return true; + } + + public void SendJokerMatchJoin() + { + this.SendGuildJokerMatchInfo(CardMatchOp.CardMatch_Add, 0u); + } + + public void SendJokerMatchExit() + { + bool flag = this.m_matchState == CardMatchState.CardMatch_StateEnd; + if (!flag) + { + this.SendGuildJokerMatchInfo(CardMatchOp.CardMatch_Del, 0u); + } + } + + public void SetJokerMatchRoundOver() + { + this.SendGuildJokerMatchInfo(CardMatchOp.CardMatch_RoundEnd, 0u); + } + + public void SendGuildCardMatchChange(uint card) + { + bool flag = this.wattingPTC; + if (!flag) + { + this.wattingPTC = true; + this.SendGuildJokerMatchInfo(CardMatchOp.CardMatch_RoundChange, card); + } + } + + private void SendGuildJokerMatchInfo(CardMatchOp op, uint card = 0u) + { + PtcC2M_GuildCardMatchReq ptcC2M_GuildCardMatchReq = new PtcC2M_GuildCardMatchReq(); + ptcC2M_GuildCardMatchReq.Data.op = op; + ptcC2M_GuildCardMatchReq.Data.card = card; + this.m_oldJockerID = card; + XSingleton.singleton.Send(ptcC2M_GuildCardMatchReq); + } + + public void ReceiveGuildJokerMatchInfo(GuildCardMatchNtf ntf) + { + switch (ntf.op) + { + case CardMatchOp.CardMatch_Begin: + this.ShowJokerBegin(); + break; + case CardMatchOp.CardMatch_Add: + this.ShowJokerJoin(ntf); + this.SendJokerMatchRank(); + break; + case CardMatchOp.CardMatch_RoundBegin: + this.ShowMatchBegin(ntf); + break; + case CardMatchOp.CardMatch_RoundChange: + this.ChangeJocker(ntf); + break; + case CardMatchOp.CardMatch_RoundEnd: + this.SendJokerMatchRank(); + this.EndJockerGame(ntf); + break; + case CardMatchOp.CardMatch_End: + this.SendJokerMatchRank(); + this.JokerMatchOver(); + break; + case CardMatchOp.CardMatch_Query: + this.ShowJokerQuery(ntf); + break; + case CardMatchOp.CardMatch_RoundWaiting: + this.ShowWaittingJocker(ntf); + this.SendJokerMatchRank(); + break; + } + } + + private void JokerMatchOver() + { + this.m_matchJokers.Clear(); + this.m_timeLeft = 0.0; + this.m_matchState = CardMatchState.CardMatch_StateEnd; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshWhenShow(); + } + } + + private void ShowJokerBegin() + { + this.m_isBegion = true; + this.m_isCanBegion = true; + this.m_BeginTime = 0.0; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(XSysDefine.XSys_GuildRelax_JokerMatch); + } + } + + private void SetMatchData(GuildCardMatchNtf ntf) + { + this.m_matchState = ntf.state; + this.m_timeLeft = ntf.timeleft + 1u; + this.m_changeount = ntf.changecount; + this.m_matchResult = ntf.result; + this.m_matchJockerStore = ntf.store; + this.m_matchItems.Clear(); + this.m_matchItems.AddRange(ntf.items); + this.m_matchRound = (uint)((long)XSingleton.singleton.GetInt("CardMatchRound") - (long)((ulong)((ntf.round == uint.MaxValue) ? 0u : (ntf.round + 1u)))); + this.m_matchJokers.Clear(); + this.m_matchJokers.AddRange(ntf.cards); + } + + private void ShowJokerJoin(GuildCardMatchNtf ntf) + { + this.SetMatchData(ntf); + this.ClearBestJoker(); + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + private void ShowMatchBegin(GuildCardMatchNtf ntf) + { + this.SetMatchData(ntf); + this.ClearBestJoker(); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshWhenShow(); + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.m_timeLeft > (double)fDeltaT; + if (flag) + { + this.m_timeLeft -= (double)fDeltaT; + } + else + { + this.m_timeLeft = 0.0; + } + } + + private void ShowJokerQuery(GuildCardMatchNtf ntf) + { + this.m_matchState = ntf.state; + this.m_isBegion = ntf.isbegin; + this.m_isCanBegion = ntf.iscanbegin; + this.m_timeLeft = ntf.timeleft; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(XSysDefine.XSys_GuildRelax_JokerMatch); + DlgBase.singleton.RefreshRedPoint(XSysDefine.XSys_GuildRelax_JokerMatch); + } + } + + private void ShowWaittingJocker(GuildCardMatchNtf ntf) + { + this.m_timeLeft = ntf.timeleft + 1u; + this.m_matchState = ntf.state; + this.m_matchJokers.Clear(); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshWhenShow(); + } + } + + public void EndJockerGame(GuildCardMatchNtf ntf) + { + this.m_matchState = CardMatchState.CardMatch_StateRoundEnd; + this.m_matchJockerStore = 5u; + this.MatchJockers.Clear(); + this.m_matchItems.Clear(); + this.m_matchItems.AddRange(ntf.items); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = this.MatchResult != 8u; + if (flag2) + { + XSingleton.singleton.PlayUISound("Audio/UI/pukeshenli", true, AudioChannel.Action); + DlgBase.singleton.JokerStatus(2); + XSingleton.singleton.KillTimer(this.JokerToken); + this.JokerToken = XSingleton.singleton.SetTimer(1f, DlgBase.singleton.ResetJokerStatusCb, null); + } + else + { + XSingleton.singleton.PlayUISound("Audio/UI/pukeshibai", true, AudioChannel.Action); + DlgBase.singleton.JokerStatus(3); + XSingleton.singleton.KillTimer(this.JokerToken); + this.JokerToken = XSingleton.singleton.SetTimer(1f, DlgBase.singleton.ResetJokerStatusCb, null); + } + } + bool flag3 = !DlgBase.singleton.IsVisible(); + if (!flag3) + { + DlgBase.singleton.RefreshWhenShow(); + } + } + + private void ChangeJocker(GuildCardMatchNtf ntf) + { + this.wattingPTC = false; + this.m_matchResult = ntf.result; + bool flag = this.m_changeount > 0u; + if (flag) + { + this.m_changeount -= 1u; + } + uint oldJockerID = this.m_oldJockerID; + uint newCard = 0u; + int num = 0; + int i = 0; + int count = ntf.cards.Count; + while (i < count) + { + bool flag2 = !this.m_matchJokers.Contains(ntf.cards[i]); + if (flag2) + { + newCard = ntf.cards[i]; + num = this.m_matchJokers.IndexOf(this.m_oldJockerID); + bool flag3 = num > -1; + if (flag3) + { + this.m_matchJokers[num] = ntf.cards[i]; + } + break; + } + i++; + } + bool flag4 = !DlgBase.singleton.IsVisible(); + if (!flag4) + { + DlgBase.singleton.ChangeCard(oldJockerID, newCard, num); + DlgBase.singleton.SetGameCount(); + } + } + + public void SetBestJocker(List jockers, string name) + { + this.m_matchBestJockers.Clear(); + this.m_matchBestJockers.AddRange(jockers); + this.m_matchBestName = name; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetupBestCard(); + } + } + + private void ClearBestJoker() + { + this.m_matchBestJockers.Clear(); + this.m_matchBestName = string.Empty; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetupBestCard(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchDocument.cs.meta new file mode 100644 index 00000000..ece8775e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00a43b93469184245a7e49c03e2edfee +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchStep.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchStep.cs new file mode 100644 index 00000000..bcb9f44f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchStep.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum XGuildJockerMatchStep + { + BeforeGame, + InGame, + AfterGame + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchStep.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchStep.cs.meta new file mode 100644 index 00000000..de28d87f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchStep.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ff3e2b063f6e304cac77a488b9b4165 +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchView.cs new file mode 100644 index 00000000..b4dac759 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchView.cs @@ -0,0 +1,505 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildJockerMatchView : XGuildJokerCommonView + { + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildJokerMatchDlg"; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private CardMatchState MatchState + { + get + { + return this._Doc.MatchState; + } + } + + protected override string BestName + { + get + { + return this._Doc.MatchBestJockerName; + } + } + + protected override int CurrentCardCount + { + get + { + return this._Doc.MatchJockers.Count; + } + } + + protected override List CurrentCard + { + get + { + return this._Doc.MatchJockers; + } + } + + protected override uint CardResult + { + get + { + return this._Doc.MatchResult; + } + } + + protected override List BestCard + { + get + { + return this._Doc.MatchBestJockers; + } + } + + protected override int CurrentStore + { + get + { + return (int)this._Doc.MatchJockerStore; + } + } + + private XGuildJockerMatchDocument _Doc; + + private IXUILabel m_beginTime; + + private IXUILabel m_roundTime; + + private IXUIScrollView m_RankScrollView; + + private IXUIWrapContent m_RankWrapContent; + + private IXUILabel m_RuleTip; + + public XYuyinView _yuyinHandler; + + public Transform m_MyRank; + + public IXUILabel m_addCountPerRound; + + public IXUILabel m_GameTip2; + + private uint m_changeTimer = 0u; + + private XUIPool m_rewardPool; + + private Transform m_rewardTransform; + + private Transform m_TotalIncomeTransform; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + this.m_beginTime = (base.uiBehaviour.transform.Find("Bg/BeginTime").GetComponent("XUILabel") as IXUILabel); + this.m_roundTime = (base.uiBehaviour.transform.Find("Bg/RoundTime").GetComponent("XUILabel") as IXUILabel); + this.m_RankScrollView = (base.uiBehaviour.transform.Find("Bg/Ranking/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RankWrapContent = (base.uiBehaviour.transform.Find("Bg/Ranking/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnRankWrapItemUpdate)); + this.m_RuleTip = (base.uiBehaviour.transform.Find("Bg/Rule/Bg/RuleTip").GetComponent("XUILabel") as IXUILabel); + IXUIPanel ixuipanel = base.uiBehaviour.transform.GetComponent("XUIPanel") as IXUIPanel; + ixuipanel.SetDepth(2); + this.m_MyRank = base.uiBehaviour.transform.Find("Bg/Ranking/MyRank"); + this.m_addCountPerRound = (base.uiBehaviour.transform.Find("Bg/AddCount/Num").GetComponent("XUILabel") as IXUILabel); + this.m_GameTip2 = (base.uiBehaviour.transform.Find("Bg/GameTip2").GetComponent("XUILabel") as IXUILabel); + this.m_rewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_TotalIncomeTransform = base.uiBehaviour.transform.Find("Bg/TotalIncome"); + this.m_rewardTransform = base.uiBehaviour.transform.Find("Bg/TotalIncome/RewardList"); + Transform transform = base.uiBehaviour.transform.Find("Bg/TotalIncome/RewardList/Reward"); + this.m_rewardPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 4u, true); + } + + protected override SeqListRef GetCardReward(int index) + { + return XGuildJokerDocument._CardRewardTable.Table[index].matchreward; + } + + public void RefreshSelfRank(int score, int rank) + { + this.SetBaseInfo(this.m_MyRank, XSingleton.singleton.XPlayerData.Name, rank, score); + } + + public void SetRankInfo(int count) + { + this.m_RankWrapContent.SetContentCount(count, false); + this.m_RankScrollView.ResetPosition(); + } + + private void SetBaseInfo(Transform t, string name, int index, int score) + { + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Score").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("IndexSprite").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("IndexLabel").GetComponent("XUILabel") as IXUILabel; + bool flag = index == -1; + if (flag) + { + ixuilabel2.Alpha = 1f; + ixuisprite.SetAlpha(0f); + ixuilabel2.SetText(XSingleton.singleton.GetString("NoRank")); + } + else + { + bool flag2 = index < 3; + if (flag2) + { + ixuilabel2.Alpha = 0f; + ixuisprite.SetAlpha(1f); + ixuisprite.SetSprite(string.Format("N{0}", index + 1)); + } + else + { + ixuilabel2.Alpha = 1f; + ixuisprite.SetAlpha(0f); + ixuilabel2.SetText((index + 1).ToString()); + } + } + ixuilabel.SetText(score.ToString()); + ixuilabelSymbol.InputText = name; + } + + private void OnRankWrapItemUpdate(Transform t, int index) + { + this.SetBaseInfo(t, (index < this._Doc.MatchRankNames.Count) ? this._Doc.MatchRankNames[index].ToString() : string.Empty, index, (index < this._Doc.MatchRankScores.Count) ? this._Doc.MatchRankScores[index] : 0); + } + + public void SetGameCount() + { + base.uiBehaviour.m_GameCount.SetText(this._Doc.MatchRound.ToString()); + base.uiBehaviour.m_ChangeCount.SetText(this._Doc.ChangeCount.ToString()); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.wattingPTC = false; + base.SetupBestCard(); + this.RefreshWhenShow(); + this.SetRankInfo(this._Doc.MatchRankNames.Count); + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + showSettingArgs.position = 1; + showSettingArgs.needforceshow = true; + showSettingArgs.forceshow = true; + showSettingArgs.needdepth = true; + showSettingArgs.depth = 4; + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + this.m_RuleTip.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("GUILD_JOKER_MATCH_RULE_TIP"))); + this.m_addCountPerRound.SetText(XSingleton.singleton.GetValue("CardMatchChangeAdd")); + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Show(YuyinIconType.JOKER, 4); + this._yuyinHandler.Refresh(YuyinIconType.JOKER); + } + } + + public void RefreshWhenShow() + { + this.SetGameCount(); + base.SetCardStore(); + this.SetButtonState(); + this.ShowTimeClock(); + this.SetRoundInfo(); + this.SetRewardList(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshWhenShow(); + } + + private void ShowTimeClock() + { + bool flag = this.MatchState == CardMatchState.CardMatch_StateEnd; + if (flag) + { + this.ShowGameOver(); + } + else + { + bool flag2 = this.MatchState == CardMatchState.CardMatch_StateRoundBegin || this.MatchState == CardMatchState.CardMatch_StateRounding || this.MatchState == CardMatchState.CardMatch_StateRoundEnd; + if (flag2) + { + this.ShowRoundTime(); + } + else + { + this.ShowWattingTime(); + } + } + } + + public void SetRoundInfo() + { + base.RefreshCard(); + this.SetCurrentReward(); + this.SetGameCount(); + base.SetCardStore(); + } + + protected override void OnLoad() + { + base.OnLoad(); + DlgHandlerBase.EnsureCreate(ref this._yuyinHandler, base.uiBehaviour.transform, true, this); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._Doc.TimeLeft > 0.0; + if (flag) + { + string @string = XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_WAITTING_LABEL"); + bool flag2 = this.m_beginTime.IsVisible(); + if (flag2) + { + this.m_beginTime.SetText(string.Format(@string, XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.TimeLeft, 5))); + } + bool flag3 = this.m_roundTime.IsVisible(); + if (flag3) + { + this.m_roundTime.SetText(XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.TimeLeft, 5)); + } + } + } + + protected override void OnHide() + { + this._Doc.SendJokerMatchExit(); + XSingleton.singleton.KillTimer(this.m_changeTimer); + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + showSettingArgs.position = 0; + showSettingArgs.needforceshow = true; + showSettingArgs.forceshow = false; + showSettingArgs.needdepth = true; + showSettingArgs.depth = 0; + showSettingArgs.anim = false; + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + base.OnHide(); + } + + protected override void OnUnload() + { + bool flag = this.m_rewardPool != null; + if (flag) + { + this.m_rewardPool = null; + } + DlgHandlerBase.EnsureUnload(ref this._yuyinHandler); + base.OnUnload(); + } + + private void ShowWattingTime() + { + this.m_beginTime.SetVisible(true); + this.m_roundTime.SetVisible(false); + base.SetGameTipStatus(false); + base.uiBehaviour.m_CurrentRewardTransfrom.gameObject.SetActive(false); + } + + private void ShowRoundTime() + { + base.uiBehaviour.m_CurrentRewardTransfrom.gameObject.SetActive(true); + this.m_beginTime.SetVisible(false); + this.m_roundTime.SetVisible(true); + base.SetGameTipStatus(this.MatchState == CardMatchState.CardMatch_StateRounding || this.MatchState == CardMatchState.CardMatch_StateRoundBegin); + } + + private void SetButtonState() + { + this.m_GameTip2.SetVisible(false); + bool flag = this.MatchState == CardMatchState.CardMatch_StateRounding || this.MatchState == CardMatchState.CardMatch_StateRoundBegin; + if (flag) + { + base.uiBehaviour.m_StartGame.SetGrey(this.CurrentCard.Count > 0); + base.uiBehaviour.m_StartGame.SetVisible(true); + base.SetButtonTip("GUILD_JOCKER_MATCH_GET"); + } + else + { + bool flag2 = this.MatchState == CardMatchState.CardMatch_StateRoundWaiting; + if (flag2) + { + base.uiBehaviour.m_StartGame.SetGrey(true); + base.uiBehaviour.m_StartGame.SetVisible(true); + base.SetButtonTip("GUILD_JOCKER_MATCH_WAITTING"); + } + else + { + bool flag3 = this.MatchState == CardMatchState.CardMatch_StateRoundEnd; + if (flag3) + { + base.uiBehaviour.m_StartGame.SetVisible(true); + base.uiBehaviour.m_StartGame.SetGrey(false); + } + else + { + bool flag4 = this.MatchState == CardMatchState.CardMatch_StateEnd; + if (flag4) + { + base.uiBehaviour.m_StartGame.SetVisible(true); + base.uiBehaviour.m_StartGame.SetGrey(true); + base.SetButtonTip("GUILD_REDPACKET_DETAIL_EXIT"); + this.m_GameTip2.SetVisible(true); + this.m_GameTip2.SetText(XSingleton.singleton.GetString("GUILD_JOCKER_MATCH_TIP_END")); + } + else + { + this.m_GameTip2.SetVisible(true); + this.m_GameTip2.SetText(XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_TIP_START", new object[] + { + XSingleton.singleton.GetValue("CardMatchRound"), + XSingleton.singleton.GetValue("CardMatchRounding") + })); + base.uiBehaviour.m_StartGame.SetVisible(false); + } + } + } + } + } + + private void ShowGameOver() + { + XSingleton.singleton.KillTimer(this.m_changeTimer); + base.uiBehaviour.m_CurrentRewardTransfrom.gameObject.SetActive(false); + this.m_beginTime.SetVisible(false); + this.m_roundTime.SetVisible(false); + base.SetGameTipStatus(false); + } + + protected override bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + protected override bool OnStartGameClicked(IXUIButton button) + { + bool flag = (this.MatchState == CardMatchState.CardMatch_StateRounding || this.MatchState == CardMatchState.CardMatch_StateRoundBegin) && this.CurrentCard.Count > 0; + if (flag) + { + this._Doc.SetJokerMatchRoundOver(); + } + else + { + bool flag2 = this.MatchState == CardMatchState.CardMatch_StateEnd; + if (flag2) + { + this.SetVisibleWithAnimation(false, null); + } + } + return true; + } + + protected override void OnCardClick(IXUISprite sp) + { + bool flag = this._changeCardLock || this._cardLock; + if (!flag) + { + bool flag2 = false; + for (int i = 0; i < this._Doc.MatchJockers.Count; i++) + { + bool flag3 = this._Doc.MatchJockers[i] == base.CardReAnalyze((uint)sp.ID); + if (flag3) + { + flag2 = true; + } + } + bool flag4 = !flag2; + if (!flag4) + { + bool flag5 = this._Doc.ChangeCount > 0u; + if (flag5) + { + this._Doc.SendGuildCardMatchChange(base.CardReAnalyze((uint)sp.ID)); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_JOCKER_NOTFREECOUNT"), "fece00"); + } + } + } + } + + public override void SetCurrentReward() + { + string text = string.Format("{0}:", XStringDefineProxy.GetString("CURRENT_REWARD")); + bool flag = this._Doc.MatchJockers.Count == 0; + if (flag) + { + base.SetCurrentRewardStr(text); + } + else + { + bool flag2 = this.CurrentCard.Count == 0; + if (flag2) + { + base.SetCurrentRewardStr(text); + } + else + { + bool flag3 = (ulong)this._Doc.MatchResult >= (ulong)((long)XGuildJokerDocument._CardRewardTable.Table.Length); + if (flag3) + { + text = string.Format("{0} {1}", text, XStringDefineProxy.GetString("NONE")); + } + else + { + CardRewardTable.RowData rowData = XGuildJokerDocument._CardRewardTable.Table[(int)this._Doc.MatchResult]; + for (int i = 0; i < rowData.matchreward.Count; i++) + { + text = string.Format("{0} {1}{2}", text, XLabelSymbolHelper.FormatSmallIcon((int)rowData.matchreward[i, 0]), rowData.matchreward[i, 1]); + } + List stringList = XSingleton.singleton.GetStringList("CardPointIcon"); + text = string.Format("{0} {1}{2}", text, XLabelSymbolHelper.FormatImage(stringList[0], stringList[1]), rowData.point); + } + base.SetCurrentRewardStr(text); + base.RefreshCardSelect(); + } + } + } + + private void SetRewardList() + { + int count = this._Doc.MatchItems.Count; + this.m_TotalIncomeTransform.gameObject.SetActive(count > 0); + this.m_rewardPool.ReturnAll(false); + for (int i = 0; i < count; i++) + { + GameObject gameObject = this.m_rewardPool.FetchGameObject(false); + gameObject.transform.parent = this.m_rewardTransform; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)i * 28)); + ItemBrief itemBrief = this._Doc.MatchItems[i]; + IXUILabelSymbol ixuilabelSymbol = gameObject.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string text = string.Format("{0} X{1}", XLabelSymbolHelper.FormatSmallIcon((int)itemBrief.itemID), itemBrief.itemCount); + XSingleton.singleton.AddGreenLog("StrTemp:", text, null, null, null, null); + ixuilabelSymbol.InputText = text; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchView.cs.meta new file mode 100644 index 00000000..c47386ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJockerMatchView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e0143ed5bfa4b443ad8d586adc308b3 +timeCreated: 1611403508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs new file mode 100644 index 00000000..864c31c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs @@ -0,0 +1,97 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildJokerBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_ReCharge; + + public IXUIButton m_AddCoin; + + public Transform[] m_CardPos = new Transform[5]; + + public Transform m_CardBag; + + public Transform[,] m_Card = new Transform[4, 13]; + + public IXUILabel m_GameCount; + + public IXUILabel m_ChangeCount; + + public IXUIButton m_StartGame; + + public Transform m_CurrentRewardTransfrom; + + public IXUILabelSymbol m_CurrentReward; + + public IXUILabel m_JokerLabel; + + public Transform m_Rule; + + public XUIPool m_RuleItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_RuleScrollView; + + public IXUIButton m_RuleClose; + + public IXUILabel m_ButtonTip; + + public IXUILabel m_BestPlayerName; + + public IXUILabel[] m_BestCardNum1 = new IXUILabel[5]; + + public IXUILabel[] m_BestCardNum2 = new IXUILabel[5]; + + public IXUISprite[] m_BestCardColor = new IXUISprite[5]; + + public Transform m_FireWorks; + + public IXUITexture m_JokerPic; + + public Transform m_GameTip; + + protected void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_ReCharge = (base.transform.Find("Bg/InfoFrame/InfoDC").GetComponent("XUIButton") as IXUIButton); + this.m_AddCoin = (base.transform.Find("Bg/InfoFrame/InfoGold").GetComponent("XUIButton") as IXUIButton); + for (int i = 0; i < 5; i++) + { + this.m_CardPos[i] = base.transform.Find(string.Format("Bg/CardPoint/Card{0}Pos", i + 1)); + this.m_CardPos[i].gameObject.SetActive(false); + } + this.m_CardBag = base.transform.Find("Bg/CardPoint/CardBag"); + this.m_GameCount = (base.transform.Find("Bg/GameCount/Num").GetComponent("XUILabel") as IXUILabel); + this.m_ChangeCount = (base.transform.Find("Bg/FreeChangeCount/Num").GetComponent("XUILabel") as IXUILabel); + this.m_StartGame = (base.transform.Find("Bg/Button").GetComponent("XUIButton") as IXUIButton); + this.m_CurrentRewardTransfrom = base.transform.Find("Bg/CurrentReward"); + this.m_CurrentReward = (base.transform.Find("Bg/CurrentReward/Text").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_JokerLabel = (base.transform.Find("Bg/Talk/Text").GetComponent("XUILabel") as IXUILabel); + this.m_Rule = base.transform.Find("Bg/Rule"); + Transform transform = this.m_Rule.Find("Bg/RulePanel/Item"); + this.m_RuleItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 20u, false); + this.m_RuleClose = (this.m_Rule.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_RuleScrollView = (this.m_Rule.Find("Bg/RulePanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ButtonTip = (base.transform.Find("Bg/Button/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_BestPlayerName = (base.transform.Find("Bg/TodayBest/Name").GetComponent("XUILabel") as IXUILabel); + for (int j = 0; j < 5; j++) + { + this.m_BestCardColor[j] = (base.transform.Find(string.Format("Bg/TodayBest/Name/Card{0}/Color", j + 1)).GetComponent("XUISprite") as IXUISprite); + this.m_BestCardNum1[j] = (base.transform.Find(string.Format("Bg/TodayBest/Name/Card{0}/Num1", j + 1)).GetComponent("XUILabel") as IXUILabel); + this.m_BestCardNum2[j] = (base.transform.Find(string.Format("Bg/TodayBest/Name/Card{0}/Num2", j + 1)).GetComponent("XUILabel") as IXUILabel); + } + this.m_FireWorks = base.transform.Find("Bg/FireWorks"); + this.m_JokerPic = (base.transform.Find("Bg/Joker").GetComponent("XUITexture") as IXUITexture); + this.m_GameTip = base.transform.Find("Bg/GameTip"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs.meta new file mode 100644 index 00000000..1a69c764 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94d5ca18b2d70a040a0fed28aa15103b +timeCreated: 1611404156 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerCommonView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerCommonView.cs new file mode 100644 index 00000000..b95c4928 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerCommonView.cs @@ -0,0 +1,740 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildJokerCommonView : DlgBase where T : IXUIDlg, new() + { + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected virtual int CurrentStore + { + get + { + return 0; + } + } + + protected virtual int CurrentCardCount + { + get + { + return 0; + } + } + + protected virtual uint CardResult + { + get + { + return 0u; + } + } + + protected virtual List BestCard + { + get + { + return new List(); + } + } + + protected virtual string BestName + { + get + { + return string.Empty; + } + } + + protected virtual List CurrentCard + { + get + { + return new List(); + } + } + + protected uint _currentChangeCard; + + private uint _oldCardNum; + + private uint _oldCardType; + + private uint _newCardNum; + + private uint _newCardType; + + private int _cardChangeNum; + + protected bool _changeCardLock; + + protected bool _cardLock; + + public XTimerMgr.ElapsedEventHandler ResetJokerStatusCb = null; + + public XGuildJokerCommonView() + { + this.ResetJokerStatusCb = new XTimerMgr.ElapsedEventHandler(this.ResetJokerStatus); + } + + protected override void Init() + { + base.Init(); + this.CreateCard(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Rule.gameObject.SetActive(false); + this.ClearCard(); + this.SetGameTipStatus(false); + this.ResetJokerStatus(null); + this._cardLock = false; + this._changeCardLock = false; + } + + public virtual void SetCurrentReward() + { + } + + protected virtual bool OnCloseClick(IXUIButton button) + { + return false; + } + + protected virtual bool OnEndGameClicked(IXUIButton button) + { + return false; + } + + protected virtual bool OnStartGameClicked(IXUIButton button) + { + return false; + } + + protected virtual void OnCardClick(IXUISprite sp) + { + } + + protected override void OnHide() + { + base.OnHide(); + base.uiBehaviour.m_JokerPic.SetTexturePath(""); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClick)); + base.uiBehaviour.m_ReCharge.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRechargeClicked)); + base.uiBehaviour.m_AddCoin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddCoinClicked)); + base.uiBehaviour.m_StartGame.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartGameClicked)); + base.uiBehaviour.m_RuleClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRuleCloseClicked)); + } + + private bool OnRuleCloseClicked(IXUIButton sp) + { + base.uiBehaviour.m_Rule.gameObject.SetActive(false); + return true; + } + + private bool OnHelpClick(IXUIButton button) + { + base.uiBehaviour.m_Rule.gameObject.SetActive(true); + this.SetupRuleFrame(); + return true; + } + + private bool OnRechargeClicked(IXUIButton button) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Recharge, 0UL); + return true; + } + + private bool OnAddCoinClicked(IXUIButton button) + { + XPurchaseView singleton = DlgBase.singleton; + singleton.ReqQuickCommonPurchase(ItemEnum.GOLD); + return true; + } + + public void SetButtonTip(string tip) + { + base.uiBehaviour.m_ButtonTip.SetText(XStringDefineProxy.GetString(tip)); + } + + private void CreateCard() + { + for (int i = 0; i < 4; i++) + { + for (int j = 0; j < 13; j++) + { + string location = string.Format("UI/Guild/Card/Card{0}", j + 1); + base.uiBehaviour.m_Card[i, j] = (XSingleton.singleton.CreateFromPrefab(location, true, false) as GameObject).transform; + bool flag = i == 0; + if (flag) + { + base.uiBehaviour.m_Card[i, j].Find("T1").gameObject.SetActive(false); + (base.uiBehaviour.m_Card[i, j].Find("Hs").GetComponent("XUISprite") as IXUISprite).SetSprite("pk_01"); + } + else + { + bool flag2 = i == 1; + if (flag2) + { + base.uiBehaviour.m_Card[i, j].Find("T1").gameObject.SetActive(false); + (base.uiBehaviour.m_Card[i, j].Find("Hs").GetComponent("XUISprite") as IXUISprite).SetSprite("pk_02"); + } + else + { + bool flag3 = i == 2; + if (flag3) + { + base.uiBehaviour.m_Card[i, j].Find("T2").gameObject.SetActive(false); + (base.uiBehaviour.m_Card[i, j].Find("Hs").GetComponent("XUISprite") as IXUISprite).SetSprite("pk_03"); + } + else + { + bool flag4 = i == 3; + if (flag4) + { + base.uiBehaviour.m_Card[i, j].Find("T2").gameObject.SetActive(false); + (base.uiBehaviour.m_Card[i, j].Find("Hs").GetComponent("XUISprite") as IXUISprite).SetSprite("pk_04"); + } + } + } + } + base.uiBehaviour.m_Card[i, j].parent = base.uiBehaviour.m_CardBag; + base.uiBehaviour.m_Card[i, j].localScale = Vector3.one; + base.uiBehaviour.m_Card[i, j].name = (i * 13 + j).ToString(); + IXUISprite ixuisprite = base.uiBehaviour.m_Card[i, j].GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((j + 1) * 16 + i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCardClick)); + base.uiBehaviour.m_Card[i, j].gameObject.SetActive(false); + } + } + } + + public void ClearCard() + { + for (int i = 0; i < 4; i++) + { + for (int j = 0; j < 13; j++) + { + base.uiBehaviour.m_Card[i, j].gameObject.SetActive(false); + base.uiBehaviour.m_Card[i, j].gameObject.transform.Find("Back").gameObject.SetActive(false); + base.uiBehaviour.m_Card[i, j].gameObject.transform.Find("Select").gameObject.SetActive(false); + (base.uiBehaviour.m_Card[i, j].GetComponent("XUIPlayTween") as IXUITweenTool).ResetTween(true); + } + } + this._changeCardLock = false; + } + + public void RefreshCard() + { + this.ClearCard(); + XSingleton.singleton.AddGreenLog("RefreshCard Times ??????", this.CurrentCardCount.ToString(), null, null, null, null); + bool flag = this.CurrentCardCount != 0; + if (flag) + { + XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.SetupCard), 0); + this._cardLock = true; + } + else + { + this._cardLock = false; + } + } + + private void SetupCard(object o) + { + int num = (int)o; + bool flag = num >= this.CurrentCardCount; + if (!flag) + { + uint num2 = this.CardAnalyze(this.CurrentCard[num]); + uint num3 = num2 >> 4; + uint num4 = num2 % 16u; + base.uiBehaviour.m_Card[(int)num4, (int)(num3 - 1u)].gameObject.SetActive(true); + (base.uiBehaviour.m_Card[(int)num4, (int)(num3 - 1u)].GetComponent("XUIPlayTween") as IXUITweenTool).ResetTween(true); + base.uiBehaviour.m_Card[(int)num4, (int)(num3 - 1u)].transform.position = base.uiBehaviour.m_CardPos[num].position; + base.uiBehaviour.m_Card[(int)num4, (int)(num3 - 1u)].transform.rotation = base.uiBehaviour.m_CardPos[num].rotation; + this.OnCardTween4Finish(base.uiBehaviour.m_Card[(int)num4, (int)(num3 - 1u)].GetComponent("XUIPlayTween") as IXUITweenTool); + bool flag2 = num + 1 < this.CurrentCardCount; + if (flag2) + { + XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(this.SetupCard), num + 1); + } + else + { + this._cardLock = false; + } + } + } + + private uint CardAnalyze(uint cardNum) + { + uint num = cardNum >> 4; + uint num2 = cardNum % 16u; + bool flag = num == 14u; + if (flag) + { + num = 1u; + } + return (num << 4) + num2; + } + + protected uint CardReAnalyze(uint cardNum) + { + uint num = cardNum >> 4; + uint num2 = cardNum % 16u; + bool flag = num == 1u; + if (flag) + { + num = 14u; + } + return (num << 4) + num2; + } + + public void ChangeCard(uint oldCard, uint newCard, int cardNum) + { + bool flag = newCard == 0u || oldCard == 0u || cardNum == -1; + if (!flag) + { + uint num = this.CardAnalyze(oldCard); + uint num2 = this.CardAnalyze(newCard); + this._oldCardNum = num >> 4; + this._oldCardType = num % 16u; + this._newCardNum = num2 >> 4; + this._newCardType = num2 % 16u; + this._cardChangeNum = cardNum; + XSingleton.singleton.AddGreenLog("Change Card:", this._oldCardNum.ToString(), " ", this._oldCardType.ToString(), null, null); + bool flag2 = this._oldCardType < 4u && this._oldCardNum < 14u; + if (flag2) + { + this.ClearCardSelect(); + this.PlayCardTween(base.uiBehaviour.m_Card[(int)this._oldCardType, (int)(this._oldCardNum - 1u)].GetComponent("XUIPlayTween") as IXUITweenTool); + } + } + } + + public void SetCardStore() + { + bool flag = this.CurrentStore >= XGuildJokerDocument._CardStoreTable.Table.Length; + string jokerLabel; + if (flag) + { + jokerLabel = string.Format("{0}", XStringDefineProxy.GetString("NONE")); + } + else + { + jokerLabel = string.Format("{0}", XGuildJokerDocument._CardStoreTable.Table[this.CurrentStore].words); + } + this.SetJokerLabel(jokerLabel); + } + + protected void SetJokerLabel(string strTmp) + { + base.uiBehaviour.m_JokerLabel.SetText(strTmp); + } + + protected void SetCurrentRewardStr(string strTmp) + { + base.uiBehaviour.m_CurrentReward.InputText = strTmp; + } + + private void ClearCardSelect() + { + for (int i = 0; i < this.CurrentCardCount; i++) + { + uint num = this.CardAnalyze(this.CurrentCard[i]); + uint num2 = num >> 4; + uint num3 = num % 16u; + base.uiBehaviour.m_Card[(int)num3, (int)(num2 - 1u)].Find("Select").gameObject.SetActive(false); + } + } + + public void SetupBestCard() + { + bool flag = this.BestCard.Count == 0; + if (flag) + { + for (int i = 0; i < 5; i++) + { + base.uiBehaviour.m_BestCardColor[i].SetVisible(false); + base.uiBehaviour.m_BestCardNum1[i].SetVisible(false); + base.uiBehaviour.m_BestCardNum2[i].SetVisible(false); + } + } + for (int j = 0; j < this.BestCard.Count; j++) + { + uint num = this.CardAnalyze(this.BestCard[j]); + uint num2 = num >> 4; + uint num3 = num % 16u; + base.uiBehaviour.m_BestCardColor[j].SetVisible(true); + base.uiBehaviour.m_BestCardColor[j].SetSprite(string.Format("pk_0{0}", num3 + 1u)); + bool flag2 = num3 < 2u; + if (flag2) + { + base.uiBehaviour.m_BestCardNum1[j].SetVisible(false); + base.uiBehaviour.m_BestCardNum2[j].SetVisible(true); + bool flag3 = num2 > 1u && num2 < 11u; + if (flag3) + { + base.uiBehaviour.m_BestCardNum2[j].SetText(num2.ToString()); + } + else + { + bool flag4 = num2 == 1u; + if (flag4) + { + base.uiBehaviour.m_BestCardNum2[j].SetText("A"); + } + else + { + bool flag5 = num2 == 11u; + if (flag5) + { + base.uiBehaviour.m_BestCardNum2[j].SetText("J"); + } + else + { + bool flag6 = num2 == 12u; + if (flag6) + { + base.uiBehaviour.m_BestCardNum2[j].SetText("Q"); + } + else + { + bool flag7 = num2 == 13u; + if (flag7) + { + base.uiBehaviour.m_BestCardNum2[j].SetText("K"); + } + } + } + } + } + } + else + { + base.uiBehaviour.m_BestCardNum1[j].SetVisible(true); + base.uiBehaviour.m_BestCardNum2[j].SetVisible(false); + bool flag8 = num2 > 1u && num2 < 11u; + if (flag8) + { + base.uiBehaviour.m_BestCardNum1[j].SetText(num2.ToString()); + } + else + { + bool flag9 = num2 == 1u; + if (flag9) + { + base.uiBehaviour.m_BestCardNum1[j].SetText("A"); + } + else + { + bool flag10 = num2 == 11u; + if (flag10) + { + base.uiBehaviour.m_BestCardNum1[j].SetText("J"); + } + else + { + bool flag11 = num2 == 12u; + if (flag11) + { + base.uiBehaviour.m_BestCardNum1[j].SetText("Q"); + } + else + { + bool flag12 = num2 == 13u; + if (flag12) + { + base.uiBehaviour.m_BestCardNum1[j].SetText("K"); + } + } + } + } + } + } + } + base.uiBehaviour.m_BestPlayerName.SetText(this.BestName); + } + + protected virtual SeqListRef GetCardReward(int index) + { + return XGuildJokerDocument._CardRewardTable.Table[index].reward; + } + + public void SetupRuleFrame() + { + base.uiBehaviour.m_RuleItemPool.FakeReturnAll(); + for (int i = 0; i < XGuildJokerDocument._CardRewardTable.Table.Length; i++) + { + string text = string.Format("Bg/RulePanel/RuleTpl{0}/ScoreTip", i + 1); + IXUILabel ixuilabel = base.uiBehaviour.m_Rule.Find(text).GetComponent("XUILabel") as IXUILabel; + bool flag = ixuilabel != null; + if (flag) + { + ixuilabel.SetText(XGuildJokerDocument._CardRewardTable.Table[i].point.ToString()); + } + SeqListRef cardReward = this.GetCardReward(i); + for (int j = 0; j < cardReward.Count; j++) + { + GameObject gameObject = base.uiBehaviour.m_RuleItemPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)cardReward[j, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)cardReward[j, 0], (int)cardReward[j, 1], false); + gameObject.transform.localPosition = base.uiBehaviour.m_RuleItemPool.TplPos + new Vector3((float)(j * base.uiBehaviour.m_RuleItemPool.TplWidth), (float)(-(float)i * base.uiBehaviour.m_RuleItemPool.TplHeight)); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + base.uiBehaviour.m_RuleItemPool.ActualReturnAll(false); + base.uiBehaviour.m_RuleScrollView.ResetPosition(); + } + + private void PlayCardTween(IXUITweenTool cardTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.CurrentCardCount == 0; + if (!flag2) + { + XSingleton.singleton.PlayUISound("Audio/UI/puke", true, AudioChannel.Action); + this._changeCardLock = true; + cardTween.PlayTween(true, -1f); + cardTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnCardTween1Finish)); + } + } + } + + private void OnCardTween1Finish(IXUITweenTool cardTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.CurrentCardCount == 0; + if (!flag2) + { + Transform transform = cardTween.gameObject.transform.Find("Back"); + transform.gameObject.SetActive(true); + cardTween.PlayTween(false, -1f); + cardTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnCardTween2Finish)); + } + } + } + + private void PlayCardWaitTween(object o) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.CurrentCardCount == 0; + if (!flag2) + { + base.uiBehaviour.m_Card[(int)this._oldCardType, (int)(this._oldCardNum - 1u)].gameObject.SetActive(false); + base.uiBehaviour.m_Card[(int)this._newCardType, (int)(this._newCardNum - 1u)].gameObject.SetActive(true); + base.uiBehaviour.m_Card[(int)this._newCardType, (int)(this._newCardNum - 1u)].transform.position = base.uiBehaviour.m_CardPos[this._cardChangeNum].position; + base.uiBehaviour.m_Card[(int)this._newCardType, (int)(this._newCardNum - 1u)].transform.rotation = base.uiBehaviour.m_CardPos[this._cardChangeNum].rotation; + base.uiBehaviour.m_Card[(int)this._newCardType, (int)(this._newCardNum - 1u)].transform.Find("Back").gameObject.SetActive(true); + base.uiBehaviour.m_Card[(int)this._newCardType, (int)(this._newCardNum - 1u)].transform.Find("Select").gameObject.SetActive(false); + IXUITweenTool ixuitweenTool = base.uiBehaviour.m_Card[(int)this._newCardType, (int)(this._newCardNum - 1u)].GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.ResetTween(true); + ixuitweenTool.PlayTween(true, -1f); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnCardTween3Finish)); + } + } + } + + private void OnCardTween2Finish(IXUITweenTool cardTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.CurrentCardCount == 0; + if (!flag2) + { + XSingleton.singleton.SetTimer(0.3f, new XTimerMgr.ElapsedEventHandler(this.PlayCardWaitTween), cardTween); + cardTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnCardTween3Finish)); + } + } + } + + private void OnCardTween4Finish(IXUITweenTool cardTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.CurrentCardCount == 0; + if (!flag2) + { + cardTween.gameObject.transform.Find("Back").gameObject.SetActive(true); + cardTween.gameObject.transform.Find("Select").gameObject.SetActive(false); + XSingleton.singleton.PlayUISound("Audio/UI/puke", true, AudioChannel.Action); + this._changeCardLock = true; + cardTween.ResetTween(true); + cardTween.PlayTween(true, -1f); + cardTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnCardTween3Finish)); + } + } + } + + private void OnCardTween3Finish(IXUITweenTool cardTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.CurrentCardCount == 0; + if (!flag2) + { + Transform transform = cardTween.gameObject.transform.Find("Back"); + transform.gameObject.SetActive(false); + cardTween.PlayTween(false, -1f); + cardTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnCardTweenOver)); + } + } + } + + private void OnCardTweenOver(IXUITweenTool cardTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.CurrentCardCount == 0; + if (!flag2) + { + this._changeCardLock = false; + this.SetCurrentReward(); + } + } + } + + protected void RefreshCardSelect() + { + bool flag = this.CardResult == 0u || this.CardResult == 2u || this.CardResult == 3u || this.CardResult == 4u; + if (flag) + { + for (int i = 0; i < this.CurrentCardCount; i++) + { + uint num = this.CardAnalyze(this.CurrentCard[i]); + uint num2 = num >> 4; + uint type = num % 16u; + this.SetCardSelected(type, num2 - 1u); + } + } + else + { + for (int j = 0; j < this.CurrentCardCount; j++) + { + uint num3 = this.CardAnalyze(this.CurrentCard[j]); + uint num4 = num3 >> 4; + uint type2 = num3 % 16u; + for (int k = j + 1; k < this.CurrentCardCount; k++) + { + uint num5 = this.CardAnalyze(this.CurrentCard[k]); + uint num6 = num5 >> 4; + uint type3 = num5 % 16u; + bool flag2 = num4 == num6; + if (flag2) + { + this.SetCardSelected(type2, num4 - 1u); + this.SetCardSelected(type3, num6 - 1u); + } + } + } + } + } + + private void SetCardSelected(uint type, uint index) + { + bool flag = type >= 4u || index >= 13u; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("type == {0}, index={1}", type, index), null, null, null, null, null); + } + else + { + bool flag2 = base.uiBehaviour.m_Card[(int)type, (int)index] == null; + if (!flag2) + { + base.uiBehaviour.m_Card[(int)type, (int)index].Find("Select").gameObject.SetActive(true); + } + } + } + + public void JokerStatus(int status) + { + switch (status) + { + case 1: + base.uiBehaviour.m_JokerPic.SetTexturePath("atlas/UI/Social/gh_bg_xcpk_xc0"); + break; + case 2: + base.uiBehaviour.m_JokerPic.SetTexturePath("atlas/UI/Social/gh_bg_xcpk_xc1"); + break; + case 3: + base.uiBehaviour.m_JokerPic.SetTexturePath("atlas/UI/Social/gh_bg_xcpk_xc2"); + break; + } + } + + private void ResetJokerStatus(object o = null) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.JokerStatus(1); + } + } + + public void SetGameTipStatus(bool status) + { + base.uiBehaviour.m_GameTip.gameObject.SetActive(status); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerCommonView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerCommonView.cs.meta new file mode 100644 index 00000000..00250730 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerCommonView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b114e4d9d2f96145803606787b50e18 +timeCreated: 1611403685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerDocument.cs new file mode 100644 index 00000000..d4dfe1c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerDocument.cs @@ -0,0 +1,288 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildJokerDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildJokerDocument.uuID; + } + } + + public uint CardResult { get; set; } + + public uint CardStore { get; set; } + + public int GameCount { get; set; } + + public int ChangeCount { get; set; } + + public int BuyChangeCount { get; set; } + + public List RankNames + { + get + { + bool flag = this.m_RankNames == null; + if (flag) + { + this.m_RankNames = new List(); + } + return this.m_RankNames; + } + } + + public List RankScores + { + get + { + bool flag = this.m_RankScores == null; + if (flag) + { + this.m_RankScores = new List(); + } + return this.m_RankScores; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildJokerDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static CardRewardTable _CardRewardTable = new CardRewardTable(); + + public static CardStoreTable _CardStoreTable = new CardStoreTable(); + + public List CurrentCard = new List(); + + public List BestCard = new List(); + + public string BestName; + + public uint JokerToken; + + public bool WaitRpc = false; + + private float guildJokerStartTime = 0f; + + private List m_RankNames; + + private List m_RankScores; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildJokerDocument.AsyncLoader.AddTask("Table/CardReward", XGuildJokerDocument._CardRewardTable, false); + XGuildJokerDocument.AsyncLoader.AddTask("Table/CardStore", XGuildJokerDocument._CardStoreTable, false); + XGuildJokerDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.QueryGameCount(); + } + } + + public void QueryGameCount() + { + RpcC2G_QueryGuildCard rpc = new RpcC2G_QueryGuildCard(); + XSingleton.singleton.Send(rpc); + } + + public void SendJokerRank(uint type) + { + PtcC2M_GuildCardRankReq ptcC2M_GuildCardRankReq = new PtcC2M_GuildCardRankReq(); + ptcC2M_GuildCardRankReq.Data.type = type; + XSingleton.singleton.Send(ptcC2M_GuildCardRankReq); + } + + public void ReceiveJockerRank(List names, List scores) + { + this.m_RankNames = names; + this.m_RankScores = scores; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetRankData(names.Count); + } + } + + public void SendStartGame() + { + bool flag = Time.time - this.guildJokerStartTime < 2f; + if (!flag) + { + this.guildJokerStartTime = Time.time; + RpcC2G_StartGuildCard rpc = new RpcC2G_StartGuildCard(); + XSingleton.singleton.Send(rpc); + } + } + + public void SendChangeCard(uint card) + { + bool waitRpc = this.WaitRpc; + if (!waitRpc) + { + this.WaitRpc = true; + RpcC2G_ChangeGuildCard rpcC2G_ChangeGuildCard = new RpcC2G_ChangeGuildCard(); + rpcC2G_ChangeGuildCard.oArg.card = card; + XSingleton.singleton.Send(rpcC2G_ChangeGuildCard); + } + } + + public void SendGameEnd() + { + RpcC2G_EndGuildCard rpc = new RpcC2G_EndGuildCard(); + XSingleton.singleton.Send(rpc); + } + + public void SetGameCount(uint gameCount, uint changeCount, uint buyChangeCount) + { + this.GameCount = (int)gameCount; + this.ChangeCount = (int)changeCount; + this.BuyChangeCount = (int)buyChangeCount; + XGuildRelaxGameDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRelaxGameDocument.uuID); + specificDocument.RefreshRedPoint(); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildRelax_Joker, true); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetGameCount(); + } + } + + public void ShowCard(List card, uint result, uint store) + { + this.CardResult = result; + this.CardStore = store; + this.GameCount = Math.Max(0, this.GameCount - 1); + this.CurrentCard.Clear(); + for (int i = 0; i < card.Count; i++) + { + this.CurrentCard.Add(card[i]); + } + XGuildRelaxGameDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRelaxGameDocument.uuID); + specificDocument.RefreshRedPoint(); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshCard(); + DlgBase.singleton.SetCurrentReward(); + DlgBase.singleton.SetGameTipStatus(true); + DlgBase.singleton.SetGameCount(); + DlgBase.singleton.SetCardStore(); + bool flag2 = this.CardResult != 8u; + if (flag2) + { + DlgBase.singleton.SetButtonTip("GET_REWARD"); + } + else + { + DlgBase.singleton.SetButtonTip("END_GAME"); + } + } + } + + public void ChangeCard(uint oldCard, uint newCard, uint result) + { + this.WaitRpc = false; + bool flag = this.ChangeCount != 0; + if (flag) + { + this.ChangeCount--; + } + else + { + this.BuyChangeCount++; + } + this.CardResult = result; + int cardNum = 0; + for (int i = 0; i < this.CurrentCard.Count; i++) + { + bool flag2 = this.CurrentCard[i] != oldCard; + if (!flag2) + { + this.CurrentCard[i] = newCard; + cardNum = i; + } + } + bool flag3 = !DlgBase.singleton.IsVisible(); + if (!flag3) + { + DlgBase.singleton.ChangeCard(oldCard, newCard, cardNum); + DlgBase.singleton.SetGameCount(); + } + } + + public void EndCardGame(uint result) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshRank(); + bool flag2 = this.CardResult != 8u; + if (flag2) + { + XSingleton.singleton.PlayUISound("Audio/UI/pukeshenli", true, AudioChannel.Action); + DlgBase.singleton.JokerStatus(2); + XSingleton.singleton.KillTimer(this.JokerToken); + this.JokerToken = XSingleton.singleton.SetTimer(1f, DlgBase.singleton.ResetJokerStatusCb, null); + } + else + { + XSingleton.singleton.PlayUISound("Audio/UI/pukeshibai", true, AudioChannel.Action); + DlgBase.singleton.JokerStatus(3); + XSingleton.singleton.KillTimer(this.JokerToken); + this.JokerToken = XSingleton.singleton.SetTimer(1f, DlgBase.singleton.ResetJokerStatusCb, null); + } + } + this.CurrentCard.Clear(); + this.CardResult = 8u; + this.CardStore = 5u; + bool flag3 = !DlgBase.singleton.IsVisible(); + if (!flag3) + { + DlgBase.singleton.ClearCard(); + DlgBase.singleton.SetGameTipStatus(false); + DlgBase.singleton.SetButtonTip("START_GAME"); + DlgBase.singleton.SetCurrentReward(); + DlgBase.singleton.SetCardStore(); + } + } + + public void SetBestCard(List card, string name) + { + this.BestCard.Clear(); + for (int i = 0; i < card.Count; i++) + { + this.BestCard.Add(card[i]); + } + this.BestName = name; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetupBestCard(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.WaitRpc = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerDocument.cs.meta new file mode 100644 index 00000000..b68448bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ddefee189f7d07b459976e4ffc822af7 +timeCreated: 1611404684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerView.cs new file mode 100644 index 00000000..7d213864 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerView.cs @@ -0,0 +1,375 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildJokerView : XGuildJokerCommonView + { + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildJokerDlg"; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + protected override string BestName + { + get + { + return this._doc.BestName; + } + } + + protected override int CurrentCardCount + { + get + { + return this._doc.CurrentCard.Count; + } + } + + protected override List CurrentCard + { + get + { + return this._doc.CurrentCard; + } + } + + protected override uint CardResult + { + get + { + return this._doc.CardResult; + } + } + + protected override int CurrentStore + { + get + { + return (int)this._doc.CardStore; + } + } + + protected override List BestCard + { + get + { + return this._doc.BestCard; + } + } + + private XGuildJokerDocument _doc = null; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private IXUICheckBox m_TeamCheck; + + private IXUICheckBox m_GuildCheck; + + private XGuildJokerView.TabType m_CurrType = XGuildJokerView.TabType.Team; + + private IXUILabel m_RuleTip; + + public enum TabType + { + Team, + Guild + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + this.m_ScrollView = (base.uiBehaviour.transform.Find("Bg/Ranking/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.uiBehaviour.transform.Find("Bg/Ranking/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnRankWrapItemUpdate)); + this.m_TeamCheck = (base.uiBehaviour.transform.Find("Bg/Ranking/Team").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_GuildCheck = (base.uiBehaviour.transform.Find("Bg/Ranking/Guild").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RuleTip = (base.uiBehaviour.transform.Find("Bg/Rule/Bg/RuleTip").GetComponent("XUILabel") as IXUILabel); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.WaitRpc = false; + this._doc.CardStore = 5u; + this.m_TeamCheck.bChecked = true; + this._doc.QueryGameCount(); + this.RefreshRank(); + this.m_RuleTip.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("GUILD_JOKER_RULE_TIP"))); + this.WhenReturnShow(); + } + + protected override void OnHide() + { + bool flag = this._doc != null; + if (flag) + { + this._doc.CurrentCard.Clear(); + this._doc.WaitRpc = false; + } + base.OnHide(); + } + + private void WhenReturnShow() + { + bool flag = this._doc.CurrentCard.Count == 0; + if (flag) + { + base.SetButtonTip("START_GAME"); + } + else + { + bool flag2 = this.CardResult != 8u; + if (flag2) + { + base.SetButtonTip("GET_REWARD"); + } + else + { + base.SetButtonTip("END_GAME"); + } + } + base.SetCardStore(); + base.RefreshCard(); + this.SetGameCount(); + base.SetGameTipStatus(true); + this.SetCurrentReward(); + } + + protected override SeqListRef GetCardReward(int index) + { + return XGuildJokerDocument._CardRewardTable.Table[index].reward; + } + + public void SetRankData(int length) + { + this.m_WrapContent.SetContentCount(length, false); + this.m_ScrollView.ResetPosition(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_TeamCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.TeamCheckHandler)); + this.m_GuildCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.GuildCheckHandler)); + } + + private bool TeamCheckHandler(IXUICheckBox check) + { + this.m_WrapContent.SetContentCount(0, false); + bool flag = !check.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_CurrType = XGuildJokerView.TabType.Team; + this._doc.SendJokerRank(0u); + result = true; + } + return result; + } + + private bool GuildCheckHandler(IXUICheckBox check) + { + this.m_WrapContent.SetContentCount(0, false); + bool flag = !check.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_CurrType = XGuildJokerView.TabType.Guild; + this._doc.SendJokerRank(1u); + result = true; + } + return result; + } + + private void OnRankWrapItemUpdate(Transform t, int index) + { + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Score").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("IndexSprite").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("IndexLabel").GetComponent("XUILabel") as IXUILabel; + bool flag = index < 3; + if (flag) + { + ixuilabel2.Alpha = 0f; + ixuisprite.SetAlpha(1f); + ixuisprite.SetSprite(string.Format("N{0}", index + 1)); + } + else + { + ixuilabel2.Alpha = 1f; + ixuisprite.SetAlpha(0f); + ixuilabel2.SetText((index + 1).ToString()); + } + ixuilabel.SetText((index < this._doc.RankScores.Count) ? this._doc.RankScores[index].ToString() : "0"); + ixuilabelSymbol.InputText = ((index < this._doc.RankNames.Count) ? this._doc.RankNames[index].ToString() : string.Empty); + } + + private bool OnBuyChangeCount(IXUIButton button) + { + this._doc.SendChangeCard(base.CardReAnalyze(this._currentChangeCard)); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + protected override bool OnStartGameClicked(IXUIButton button) + { + bool flag = this._changeCardLock || this._cardLock; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._doc.CurrentCard.Count == 0; + if (flag2) + { + this._doc.SendStartGame(); + } + else + { + this._doc.SendGameEnd(); + } + result = true; + } + return result; + } + + public void RefreshRank() + { + bool flag = this.m_CurrType == XGuildJokerView.TabType.Team; + if (flag) + { + this._doc.SendJokerRank(0u); + } + bool flag2 = this.m_CurrType == XGuildJokerView.TabType.Guild; + if (flag2) + { + this._doc.SendJokerRank(1u); + } + } + + protected override bool OnEndGameClicked(IXUIButton button) + { + this._doc.SendGameEnd(); + DlgBase.singleton.SetVisible(false, true); + this.SetVisible(false, true); + return true; + } + + protected override bool OnCloseClick(IXUIButton button) + { + bool flag = this._doc.CurrentCard.Count != 0; + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("LEAVE_JOKER_CARD_GAME"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnEndGameClicked)); + } + else + { + this.SetVisible(false, true); + } + return true; + } + + public void SetGameCount() + { + base.uiBehaviour.m_GameCount.SetText(this._doc.GameCount.ToString()); + base.uiBehaviour.m_ChangeCount.SetText(this._doc.ChangeCount.ToString()); + } + + protected override void OnCardClick(IXUISprite sp) + { + bool flag = this._changeCardLock || this._cardLock; + if (!flag) + { + bool flag2 = false; + for (int i = 0; i < this._doc.CurrentCard.Count; i++) + { + bool flag3 = this._doc.CurrentCard[i] == base.CardReAnalyze((uint)sp.ID); + if (flag3) + { + flag2 = true; + } + } + bool flag4 = !flag2; + if (!flag4) + { + bool flag5 = this._doc.ChangeCount == 0; + if (flag5) + { + CostInfo costInfo = XSingleton.singleton.QueryCost("BuyCardChangeCost", this._doc.BuyChangeCount); + this._currentChangeCard = (uint)sp.ID; + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("CHANGE_CARD_COST", new object[] + { + XLabelSymbolHelper.FormatCostWithIcon((int)costInfo.count, ItemEnum.DRAGON_COIN), + costInfo.count + 1u + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnBuyChangeCount)); + } + else + { + this._doc.SendChangeCard(base.CardReAnalyze((uint)sp.ID)); + } + } + } + } + + public override void SetCurrentReward() + { + string text = string.Format("{0}:", XStringDefineProxy.GetString("CURRENT_REWARD")); + bool flag = this._doc.CurrentCard.Count == 0; + if (flag) + { + base.SetCurrentRewardStr(text); + } + else + { + bool flag2 = (ulong)this._doc.CardResult >= (ulong)((long)XGuildJokerDocument._CardRewardTable.Table.Length); + if (flag2) + { + text = string.Format("{0} {1}", text, XStringDefineProxy.GetString("NONE")); + DlgBase.singleton.SetButtonTip("END_GAME"); + } + else + { + for (int i = 0; i < XGuildJokerDocument._CardRewardTable.Table[(int)this._doc.CardResult].reward.Count; i++) + { + text = string.Format("{0} {1}{2}", text, XLabelSymbolHelper.FormatSmallIcon((int)XGuildJokerDocument._CardRewardTable.Table[(int)this._doc.CardResult].reward[i, 0]), XGuildJokerDocument._CardRewardTable.Table[(int)this._doc.CardResult].reward[i, 1]); + } + DlgBase.singleton.SetButtonTip("GET_REWARD"); + List stringList = XSingleton.singleton.GetStringList("CardPointIcon"); + text = string.Format("{0} {1}{2}", text, XLabelSymbolHelper.FormatImage(stringList[0], stringList[1]), XGuildJokerDocument._CardRewardTable.Table[(int)this._doc.CardResult].point); + } + base.SetCurrentRewardStr(text); + base.RefreshCardSelect(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerView.cs.meta new file mode 100644 index 00000000..70c5745e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildJokerView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8907a906c8b13441bfd2728c48a1f33 +timeCreated: 1611404893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLevelChangedEventArgs.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildLevelChangedEventArgs.cs new file mode 100644 index 00000000..7e5303a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLevelChangedEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XGuildLevelChangedEventArgs : XEventArgs + { + public uint level = 0u; + + public XGuildLevelChangedEventArgs() + { + this._eDefine = XEventDefine.XEvent_GuildLevelChanged; + } + + public override void Recycle() + { + base.Recycle(); + this.level = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLevelChangedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildLevelChangedEventArgs.cs.meta new file mode 100644 index 00000000..0d4c06c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLevelChangedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97a611a26b3a9dd4098f9b7ee51bacae +timeCreated: 1611404188 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildListData.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildListData.cs new file mode 100644 index 00000000..c602bd1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildListData.cs @@ -0,0 +1,33 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XGuildListData : XGuildBasicData + { + public bool bIsApplying; + + public bool bNeedApprove; + + public uint requiredPPT; + + public static int[] DefaultSortDirection = new int[] + { + 1, + 1, + -1, + -1, + -1, + 1, + 1 + }; + + public override void Init(GuildInfo info) + { + base.Init(info); + this.bIsApplying = info.isSendApplication; + this.requiredPPT = (uint)info.ppt; + this.bNeedApprove = (info.needapproval == 1); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildListData.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildListData.cs.meta new file mode 100644 index 00000000..c4c727fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildListData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 681744ba608cfaa44bec78b5fedfaec9 +timeCreated: 1611403881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildListDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildListDocument.cs new file mode 100644 index 00000000..f6bee6c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildListDocument.cs @@ -0,0 +1,307 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildListDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildListDocument.uuID; + } + } + + public XGuildListView GuildListView { get; set; } + + public List ListData + { + get + { + return this._ListData; + } + } + + public GuildSortType SortType + { + get + { + return this.m_SortType; + } + set + { + bool flag = this.m_SortType != value; + if (flag) + { + this.m_Direction = XGuildListData.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(value)]; + } + else + { + this.m_Direction = -this.m_Direction; + } + this.m_SortType = value; + } + } + + public int SortDirection + { + get + { + return this.m_Direction; + } + } + + public string SearchText { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildListDocument"); + + private static readonly int COUNT_PER_PULL = 5; + + private static readonly int COUNT_ALL = 500; + + private static readonly int NAME_LENGTH_LIMIT = 8; + + private List _ListData = new List(); + + private GuildSortType m_SortType = GuildSortType.GuildSortByLevel; + + private int m_Direction = XGuildListData.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(GuildSortType.GuildSortByLevel)]; + + private void _ClearAllList() + { + for (int i = 0; i < this._ListData.Count; i++) + { + this._ListData[i].Recycle(); + } + this._ListData.Clear(); + } + + private void _AddTail() + { + XGuildListData data = XDataPool.GetData(); + data.uid = 0UL; + this._ListData.Add(data); + } + + private void _RemoveTail() + { + bool flag = this._ListData.Count > 0 && this._ListData[this._ListData.Count - 1].uid == 0UL; + if (flag) + { + this._ListData[this._ListData.Count - 1].Recycle(); + this._ListData.RemoveAt(this._ListData.Count - 1); + } + } + + private void _ReqGuildList(int start, int count) + { + RpcC2M_ReqGuildList rpcC2M_ReqGuildList = new RpcC2M_ReqGuildList(); + rpcC2M_ReqGuildList.oArg.start = start; + rpcC2M_ReqGuildList.oArg.count = count; + rpcC2M_ReqGuildList.oArg.reason = 1; + rpcC2M_ReqGuildList.oArg.sortType = XFastEnumIntEqualityComparer.ToInt(this.m_SortType); + rpcC2M_ReqGuildList.oArg.name = this.SearchText; + rpcC2M_ReqGuildList.oArg.reverse = (this.m_Direction * XGuildListData.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(this.m_SortType)] != 1); + XSingleton.singleton.Send(rpcC2M_ReqGuildList); + } + + public void ReqGuildList() + { + this._ClearAllList(); + this._ReqGuildList(0, XGuildListDocument.COUNT_PER_PULL); + } + + public void OnGetGuildList(FetchGuildListArg oArg, FetchGuildListRes oRes) + { + int num = Math.Min(this._ListData.Count, oArg.start); + for (int i = 0; i < oRes.guilds.Count; i++) + { + GuildInfo guildInfo = oRes.guilds[i]; + for (int j = 0; j < num; j++) + { + bool flag = this._ListData[j].uid == guildInfo.id; + if (flag) + { + this._ClearAllList(); + this._ReqGuildList(0, oArg.start + oArg.count); + return; + } + } + int num2 = oArg.start + i; + bool flag2 = num2 < this._ListData.Count; + XGuildListData xguildListData; + if (flag2) + { + xguildListData = this._ListData[num2]; + } + else + { + xguildListData = XDataPool.GetData(); + this._ListData.Add(xguildListData); + } + xguildListData.Init(guildInfo); + } + bool flag3 = oRes.guilds.Count != 0 && oArg.count != XGuildListDocument.COUNT_ALL; + if (flag3) + { + this._AddTail(); + } + else + { + bool flag4 = this._ListData.Count > 0; + if (flag4) + { + bool flag5 = oArg.count != XGuildListDocument.COUNT_ALL; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_LIST_NO_MORE_GUILDS"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_LIST_NO_GUILDS"), "fece00"); + } + } + bool flag6 = this.GuildListView != null && this.GuildListView.IsVisible(); + if (flag6) + { + bool flag7 = oArg.start == 0 && (oArg.count == XGuildListDocument.COUNT_PER_PULL || oArg.count == XGuildListDocument.COUNT_ALL); + if (flag7) + { + this.GuildListView.RefreshPage(true); + } + else + { + this.GuildListView.NewContentAppended(); + } + return; + } + } + + public void ReqMoreGuilds() + { + this._RemoveTail(); + this._ReqGuildList(this._ListData.Count, XGuildListDocument.COUNT_PER_PULL); + } + + public void ReqQuickJoin() + { + this.ReqApplyGuild(0UL, ""); + } + + public void ReqSearch(string text) + { + this.SearchText = text; + this._ClearAllList(); + bool flag = this.SearchText != ""; + if (flag) + { + this._ReqGuildList(0, XGuildListDocument.COUNT_ALL); + } + else + { + this.ReqGuildList(); + } + } + + public void ReqCreateGuild(string name, int portraitIndex) + { + bool flag = name.Length > XGuildListDocument.NAME_LENGTH_LIMIT; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_NAME_LENGTH_LIMIT", new object[] + { + XGuildListDocument.NAME_LENGTH_LIMIT + }), "fece00"); + } + else + { + RpcC2M_CreateOrEnterGuild rpcC2M_CreateOrEnterGuild = new RpcC2M_CreateOrEnterGuild(); + rpcC2M_CreateOrEnterGuild.oArg.iscreate = true; + rpcC2M_CreateOrEnterGuild.oArg.gname = name; + rpcC2M_CreateOrEnterGuild.oArg.icon = portraitIndex; + XSingleton.singleton.Send(rpcC2M_CreateOrEnterGuild); + } + } + + public void OnCreateGuild(CreateOrJoinGuild oArg, CreateOrJoinGuildRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + DlgBase.singleton.SetVisibleWithAnimation(false, null); + XSingleton.singleton.OpenGuildSystem(XSysDefine.XSys_GuildHall); + } + } + + public void ReqApplyGuild(ulong uid, string name) + { + RpcC2M_CreateOrEnterGuild rpcC2M_CreateOrEnterGuild = new RpcC2M_CreateOrEnterGuild(); + rpcC2M_CreateOrEnterGuild.oArg.iscreate = false; + rpcC2M_CreateOrEnterGuild.oArg.gid = uid; + rpcC2M_CreateOrEnterGuild.oArg.gname = name; + XSingleton.singleton.Send(rpcC2M_CreateOrEnterGuild); + } + + public void OnApplyGuild(CreateOrJoinGuild oArg, CreateOrJoinGuildRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + bool flag2 = oRes.result != ErrorCode.ERR_GUILD_WAITAPPROVAL; + if (flag2) + { + return; + } + } + DlgBase.singleton.Hide(); + bool flag3 = oRes.result == ErrorCode.ERR_GUILD_WAITAPPROVAL; + if (flag3) + { + for (int i = 0; i < this._ListData.Count; i++) + { + bool flag4 = this._ListData[i].uid == oArg.gid; + if (flag4) + { + this._ListData[i].bIsApplying = true; + break; + } + } + bool flag5 = this.GuildListView != null && this.GuildListView.IsVisible(); + if (flag5) + { + this.GuildListView.RefreshPage(false); + } + } + else + { + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + DlgBase.singleton.SetVisibleWithAnimation(false, null); + XSingleton.singleton.OpenGuildSystem(XSysDefine.XSys_GuildHall); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildListDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildListDocument.cs.meta new file mode 100644 index 00000000..2abcfbff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildListDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89b3dd22c2f2766488f5518110368867 +timeCreated: 1611404089 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogAppoint.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogAppoint.cs new file mode 100644 index 00000000..7d57a7ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogAppoint.cs @@ -0,0 +1,32 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XGuildLogAppoint : XGuildLogBase + { + private GuildPosition position; + + public XGuildLogAppoint() + { + this.eType = GuildLogType.GLT_APPOINT; + } + + public override string GetContent() + { + return XLabelSymbolHelper.FormatName(this.name, this.uid, "00ffff") + XStringDefineProxy.GetString("GUILD_LOG_APPOINT") + XGuildDocument.GuildPP.GetPositionName(this.position, true); + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + + public override void SetData(GHisRecord data) + { + base.SetData(data); + this.position = (GuildPosition)data.position; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogAppoint.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogAppoint.cs.meta new file mode 100644 index 00000000..838ae615 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogAppoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c603db3cda53b143b9172da20f25654 +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBase.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBase.cs new file mode 100644 index 00000000..870c729a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBase.cs @@ -0,0 +1,79 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildLogBase : XDataBase, ILogData, IComparable + { + public GuildLogType eType; + + public ulong uid; + + public string name; + + public int time; + + public virtual string GetContent() + { + return ""; + } + + public string GetTime() + { + return XSingleton.singleton.TimeAgoFormatString(this.time); + } + + public virtual void SetData(GHisRecord data) + { + this.uid = data.roleid; + this.name = data.rolename; + this.time = (int)data.time; + } + + public static XGuildLogBase CreateLog(uint type) + { + XGuildLogBase result; + switch (type) + { + case 1u: + result = XDataPool.GetData(); + break; + case 2u: + result = XDataPool.GetData(); + break; + case 3u: + result = XDataPool.GetData(); + break; + default: + if (type != 9u) + { + result = null; + } + else + { + result = XDataPool.GetData(); + } + break; + } + return result; + } + + public int CompareTo(ILogData otherLog) + { + XGuildLogBase xguildLogBase = otherLog as XGuildLogBase; + bool flag = xguildLogBase.time == this.time; + int result; + if (flag) + { + result = this.uid.CompareTo(xguildLogBase.uid); + } + else + { + result = this.time.CompareTo(xguildLogBase.time); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBase.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBase.cs.meta new file mode 100644 index 00000000..f6b822a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46ed451f4e6a02e4ca5d4cb766c05557 +timeCreated: 1611403651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBossMVP.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBossMVP.cs new file mode 100644 index 00000000..80b2de6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBossMVP.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal class XGuildLogBossMVP : XGuildLogBase + { + public XGuildLogBossMVP() + { + this.eType = GuildLogType.GLT_MVP; + } + + public override string GetContent() + { + return XLabelSymbolHelper.FormatName(this.name, this.uid, "00ffff") + XStringDefineProxy.GetString("GUILD_LOG_MVP"); + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBossMVP.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBossMVP.cs.meta new file mode 100644 index 00000000..25c3651e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogBossMVP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8fe84d685ea59f4d90976f4d8ec1520 +timeCreated: 1611404897 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogJoin.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogJoin.cs new file mode 100644 index 00000000..3473851d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogJoin.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal class XGuildLogJoin : XGuildLogBase + { + public XGuildLogJoin() + { + this.eType = GuildLogType.GLT_JOIN; + } + + public override string GetContent() + { + return XLabelSymbolHelper.FormatName(this.name, this.uid, "00ffff") + XStringDefineProxy.GetString("GUILD_LOG_JOIN"); + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogJoin.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogJoin.cs.meta new file mode 100644 index 00000000..df09f7f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogJoin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 889c9d3b5a44f8e4fbb593205d0885d7 +timeCreated: 1611404085 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogLeave.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogLeave.cs new file mode 100644 index 00000000..b0f36d5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogLeave.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal class XGuildLogLeave : XGuildLogBase + { + public XGuildLogLeave() + { + this.eType = GuildLogType.GLT_LEAVE; + } + + public override string GetContent() + { + return XLabelSymbolHelper.FormatName(this.name, this.uid, "00ffff") + XStringDefineProxy.GetString("GUILD_LOG_LEAVE"); + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildLogLeave.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogLeave.cs.meta new file mode 100644 index 00000000..355522a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildLogLeave.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 561c51d268fd9e64cb69b84147d08752 +timeCreated: 1611403742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMember.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMember.cs new file mode 100644 index 00000000..6c3331c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMember.cs @@ -0,0 +1,114 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildMember : XGuildMemberBasicInfo, IComparable + { + public uint contribution; + + public bool canSend; + + public uint taskLuck; + + public uint taskScore; + + public bool canRefresh; + + public FetchState fetchState; + + public void Set(GuildMemberData data) + { + this.uid = data.roleid; + this.name = data.name; + this.position = (GuildPosition)data.position; + this.ppt = data.ppt; + this.contribution = data.contribute; + this.level = data.level; + this.profession = XFastEnumIntEqualityComparer.ToInt(data.profession); + this.time = (int)data.lastlogin; + this.vip = data.vip; + this.paymemberid = data.paymemberid; + this.isOnline = data.isonline; + this.liveness = data.activity; + this.taskLuck = data.task_luck; + this.taskScore = data.task_score; + this.canRefresh = data.can_refresh; + bool flag = data.lastlogin == 0u; + if (flag) + { + this.time = XGuildMemberBasicInfo.ONLINE_TIME; + } + this.titleID = data.title; + this.canSend = (((ulong)data.flag & (ulong)((long)XFastEnumIntEqualityComparer.ToInt(GuildMemberFlag.SEND_FATIGUE))) > 0UL); + bool flag2 = ((ulong)data.flag & (ulong)((long)XFastEnumIntEqualityComparer.ToInt(GuildMemberFlag.RECV_FATIGUE))) > 0UL; + if (flag2) + { + this.fetchState = FetchState.FS_CAN_FETCH; + } + else + { + bool flag3 = ((ulong)data.flag & (ulong)((long)XFastEnumIntEqualityComparer.ToInt(GuildMemberFlag.RECVED_FATIGUE))) > 0UL; + if (flag3) + { + this.fetchState = FetchState.FS_FETCHED; + } + else + { + this.fetchState = FetchState.FS_CANNOT_FETCH; + } + } + } + + public int CompareTo(XGuildMember other) + { + bool flag = XGuildMemberBasicInfo.playerID != 0UL && this.uid != other.uid; + if (flag) + { + bool flag2 = this.uid == XGuildMemberBasicInfo.playerID; + if (flag2) + { + return -1; + } + bool flag3 = other.uid == XGuildMemberBasicInfo.playerID; + if (flag3) + { + return 1; + } + } + int num = 0; + GuildMemberSortType sortType = XGuildMemberBasicInfo.sortType; + if (sortType != GuildMemberSortType.GMST_CONTRIBUTION) + { + if (sortType == GuildMemberSortType.GMST_TASKSCORE) + { + bool flag4 = this.canRefresh ^ other.canRefresh; + if (flag4) + { + num = (this.canRefresh ? -1 : 1); + } + else + { + num = (int)(this.taskScore - other.taskScore); + } + } + } + else + { + num = this.contribution.CompareTo(other.contribution); + } + bool flag5 = num == 0; + int result; + if (flag5) + { + result = base.CompareTo(other); + } + else + { + result = num * XGuildMemberBasicInfo.dir; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMember.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMember.cs.meta new file mode 100644 index 00000000..9168e285 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a22bf0b0392e90944999c31fc055bf30 +timeCreated: 1611404256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberBasicInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberBasicInfo.cs new file mode 100644 index 00000000..4891a8f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberBasicInfo.cs @@ -0,0 +1,119 @@ +using System; + +namespace XMainClient +{ + internal class XGuildMemberBasicInfo : IComparable + { + public static int ONLINE_TIME = -1; + + public ulong uid; + + public string name; + + public int profession = 1; + + public uint ppt; + + public uint level; + + public GuildPosition position; + + public int time; + + public uint vip; + + public bool isOnline; + + public uint liveness; + + public uint paymemberid; + + public uint titleID; + + public bool isInherit; + + public static GuildMemberSortType sortType = GuildMemberSortType.GMST_ID; + + public static ulong playerID = 0UL; + + public static int dir = -1; + + public static int[] DefaultSortDirection = new int[] + { + 1, + 1, + 1, + -1, + -1, + -1, + 1, + -1, + 1, + -1, + 1 + }; + + public string GetLiveness() + { + return this.liveness.ToString(); + } + + public int CompareTo(XGuildMemberBasicInfo other) + { + int num = 0; + bool flag = XGuildMemberBasicInfo.playerID != 0UL && this.uid != other.uid; + if (flag) + { + bool flag2 = this.uid == XGuildMemberBasicInfo.playerID; + if (flag2) + { + return -1; + } + bool flag3 = other.uid == XGuildMemberBasicInfo.playerID; + if (flag3) + { + return 1; + } + } + switch (XGuildMemberBasicInfo.sortType) + { + case GuildMemberSortType.GMST_NAME: + num = this.name.CompareTo(other.name); + break; + case GuildMemberSortType.GMST_PROFESSION: + num = this.profession.CompareTo(other.profession); + break; + case GuildMemberSortType.GMST_TITLE: + num = this.titleID.CompareTo(other.titleID); + break; + case GuildMemberSortType.GMST_LEVEL: + num = this.level.CompareTo(other.level); + break; + case GuildMemberSortType.GMST_POSITION: + num = -this.position.CompareTo(other.position); + break; + case GuildMemberSortType.GMST_TIME: + num = this.time.CompareTo(other.time); + break; + case GuildMemberSortType.GMST_ACTIVE: + num = this.liveness.CompareTo(other.liveness); + break; + case GuildMemberSortType.GMST_INHERIT: + num = this.isInherit.CompareTo(other.isInherit); + break; + case GuildMemberSortType.GMST_ONLINE: + num = this.isOnline.CompareTo(other.isOnline); + break; + case GuildMemberSortType.GMST_PPT: + num = this.ppt.CompareTo(other.ppt); + break; + } + bool flag4 = num == 0; + if (flag4) + { + num = this.uid.CompareTo(other.uid); + } + return num * XGuildMemberBasicInfo.dir; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberBasicInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberBasicInfo.cs.meta new file mode 100644 index 00000000..69befe8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberBasicInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a5a9bfc98e9f6645ba55f0966f02a9e +timeCreated: 1611404091 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberDocument.cs new file mode 100644 index 00000000..9cb2c82a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberDocument.cs @@ -0,0 +1,483 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildMemberDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildMemberDocument.uuID; + } + } + + public XGuildMembersView GuildMembersView { get; set; } + + public List MemberList + { + get + { + return this.m_MemberList; + } + } + + public GuildMemberSortType SortType + { + get + { + return this.m_SortType; + } + set + { + bool flag = this.m_SortType != value; + if (flag) + { + this.m_Direction = XGuildMemberBasicInfo.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(value)]; + } + else + { + this.m_Direction = -this.m_Direction; + } + this.m_SortType = value; + } + } + + public int SortDirection + { + get + { + return this.m_Direction; + } + } + + public uint MaxFatigue + { + get + { + return this.m_FatigueMax; + } + } + + public uint FetchedFatigue + { + get + { + return this.m_FatigueFetched; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildMemberDocument"); + + private List m_MemberList = new List(); + + private List m_GuildInheritUids = new List(); + + private GuildMemberSortType m_SortType = GuildMemberSortType.GMST_CONTRIBUTION; + + private int m_Direction = -1; + + private uint m_FatigueMax; + + private uint m_FatigueFetched; + + private int REDPOINT_FATIGUE_COUNT = 20; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.REDPOINT_FATIGUE_COUNT = XSingleton.singleton.GetInt("GuildFatigueRedPointCount"); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_GuildPositionChanged, new XComponent.XEventHandler(this.OnPositionChanged)); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnInGuildStateChanged)); + } + + protected bool OnPositionChanged(XEventArgs args) + { + bool flag = this.GuildMembersView != null && this.GuildMembersView.IsVisible(); + if (flag) + { + XGuildPositionChangedEventArgs xguildPositionChangedEventArgs = args as XGuildPositionChangedEventArgs; + ulong entityID = XSingleton.singleton.Player.Attributes.EntityID; + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag2 = this.m_MemberList[i].uid == entityID; + if (flag2) + { + this.m_MemberList[i].position = xguildPositionChangedEventArgs.position; + this.GuildMembersView.Refresh(); + break; + } + } + } + return true; + } + + public bool CheckGuildInheritUids(ulong uid) + { + return this.m_GuildInheritUids.Contains(uid); + } + + protected bool OnInGuildStateChanged(XEventArgs args) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = args as XInGuildStateChangedEventArgs; + bool flag = !xinGuildStateChangedEventArgs.bIsEnter; + if (flag) + { + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GuildHall_Member, false); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_Member, true); + } + return true; + } + + public void ReqMemberList() + { + RpcC2M_AskGuildMembers rpc = new RpcC2M_AskGuildMembers(); + XSingleton.singleton.Send(rpc); + } + + public void onGetMemberList(GuildMemberRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_GuildInheritUids.Clear(); + this.m_GuildInheritUids.AddRange(oRes.guildinheritid); + int num = oRes.members.Count - this.m_MemberList.Count; + for (int i = 0; i < num; i++) + { + XGuildMember item = new XGuildMember(); + this.m_MemberList.Add(item); + } + bool flag2 = num < 0; + if (flag2) + { + this.m_MemberList.RemoveRange(this.m_MemberList.Count + num, -num); + } + for (int j = 0; j < oRes.members.Count; j++) + { + bool flag3 = oRes.members[j] == null; + if (!flag3) + { + this.m_MemberList[j].Set(oRes.members[j]); + this.m_MemberList[j].isInherit = this.CheckGuildInheritUids(oRes.members[j].roleid); + } + } + this.m_FatigueMax = oRes.FatigueMax; + this.m_FatigueFetched = oRes.recvFatigue; + XSingleton.singleton.AddGreenLog("m_GuildInheritUids", oRes.guildinheritid.Count.ToString(), null, null, null, null); + bool flag4 = this.GuildMembersView != null && this.GuildMembersView.IsVisible(); + if (flag4) + { + this.GuildMembersView.RefreshFatigue(); + this.SortAndShow(); + } + this.RefreshRedPointState(); + XGuildMemberListEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } + + public void SortAndShow() + { + XGuildMemberBasicInfo.playerID = XSingleton.singleton.Player.Attributes.EntityID; + XGuildMemberBasicInfo.dir = this.m_Direction; + XGuildMemberBasicInfo.sortType = this.m_SortType; + CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; + Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo(XSingleton.singleton.GetValue("Culture")); + this.m_MemberList.Sort(); + Thread.CurrentThread.CurrentCulture = currentCulture; + bool flag = this.GuildMembersView != null && this.GuildMembersView.IsVisible(); + if (flag) + { + this.GuildMembersView.RefreshAll(true); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.GuildMembersView != null && this.GuildMembersView.IsVisible(); + if (flag) + { + this.ReqMemberList(); + } + } + + public void ReqChangePosition(ulong uid, bool bIncrease) + { + GuildPosition guildPosition = GuildPosition.GPOS_COUNT; + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag = this.m_MemberList[i].uid == uid; + if (flag) + { + guildPosition = this.m_MemberList[i].position; + break; + } + } + bool flag2 = guildPosition == GuildPosition.GPOS_COUNT; + if (!flag2) + { + RpcC2M_ChangeMemberPositionNew rpcC2M_ChangeMemberPositionNew = new RpcC2M_ChangeMemberPositionNew(); + rpcC2M_ChangeMemberPositionNew.oArg.roleid = uid; + rpcC2M_ChangeMemberPositionNew.oArg.position = (bIncrease ? XGuildDocument.GuildPP.GetHigherPosition(guildPosition) : XGuildDocument.GuildPP.GetLowerPosition(guildPosition)); + XSingleton.singleton.Send(rpcC2M_ChangeMemberPositionNew); + } + } + + public GuildPosition GetMemberPosition(ulong memberID) + { + GuildPosition result = GuildPosition.GPOS_COUNT; + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag = this.m_MemberList[i].uid == memberID; + if (flag) + { + result = this.m_MemberList[i].position; + break; + } + } + return result; + } + + public void ReqChangePosition(ulong uid, GuildPosition toPosition) + { + RpcC2M_ChangeMemberPositionNew rpcC2M_ChangeMemberPositionNew = new RpcC2M_ChangeMemberPositionNew(); + rpcC2M_ChangeMemberPositionNew.oArg.roleid = uid; + rpcC2M_ChangeMemberPositionNew.oArg.position = XFastEnumIntEqualityComparer.ToInt(toPosition); + XSingleton.singleton.Send(rpcC2M_ChangeMemberPositionNew); + } + + public void OnChangePosition(ChangeGuildPositionArg oArg, ChangeGuildPositionRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag2 = this.m_MemberList[i].uid == oArg.roleid; + if (flag2) + { + this.m_MemberList[i].position = (GuildPosition)oArg.position; + bool flag3 = this.GuildMembersView != null && this.GuildMembersView.IsVisible(); + if (flag3) + { + this.GuildMembersView.Refresh(); + } + break; + } + } + } + } + + public void ReqKickAss(ulong uid) + { + RpcC2M_LeaveFromGuild rpcC2M_LeaveFromGuild = new RpcC2M_LeaveFromGuild(); + rpcC2M_LeaveFromGuild.oArg.roleID = uid; + XSingleton.singleton.Send(rpcC2M_LeaveFromGuild); + } + + public void OnKickAss(LeaveGuildArg oArg, LeaveGuildRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag2 = this.m_MemberList[i].uid == oArg.roleID; + if (flag2) + { + this.m_MemberList.RemoveAt(i); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + specificDocument.BasicData.memberCount -= 1u; + bool flag3 = this.GuildMembersView != null && this.GuildMembersView.IsVisible(); + if (flag3) + { + this.GuildMembersView.RefreshAll(false); + } + break; + } + } + } + } + + public void RefreshRedPointState() + { + bool flag = (ulong)(this.MaxFatigue - this.FetchedFatigue) < (ulong)((long)this.REDPOINT_FATIGUE_COUNT); + if (flag) + { + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GuildHall_Member, false); + } + else + { + int num = 0; + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag2 = this.m_MemberList[i].fetchState == FetchState.FS_CAN_FETCH; + if (flag2) + { + num++; + } + } + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GuildHall_Member, num >= this.REDPOINT_FATIGUE_COUNT); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_Member, true); + } + + public void ReqSendFatigue(int index) + { + RpcC2M_GuildFatigueOPNew rpcC2M_GuildFatigueOPNew = new RpcC2M_GuildFatigueOPNew(); + bool flag = index < 0 || index >= this.m_MemberList.Count; + if (!flag) + { + rpcC2M_GuildFatigueOPNew.oArg.targetID = this.m_MemberList[index].uid; + rpcC2M_GuildFatigueOPNew.oArg.optype = 0; + XSingleton.singleton.Send(rpcC2M_GuildFatigueOPNew); + } + } + + public void ReqOneKeySendFatigue() + { + RpcC2M_GuildFatigueOPNew rpcC2M_GuildFatigueOPNew = new RpcC2M_GuildFatigueOPNew(); + rpcC2M_GuildFatigueOPNew.oArg.targetID = 0UL; + rpcC2M_GuildFatigueOPNew.oArg.optype = 0; + XSingleton.singleton.Send(rpcC2M_GuildFatigueOPNew); + } + + public void ReqReceiveFatigue(int index) + { + RpcC2M_GuildFatigueOPNew rpcC2M_GuildFatigueOPNew = new RpcC2M_GuildFatigueOPNew(); + bool flag = index < 0 || index >= this.m_MemberList.Count; + if (!flag) + { + rpcC2M_GuildFatigueOPNew.oArg.targetID = this.m_MemberList[index].uid; + rpcC2M_GuildFatigueOPNew.oArg.optype = 1; + XSingleton.singleton.Send(rpcC2M_GuildFatigueOPNew); + } + } + + public void ReqOneKeyReceiveFatigue() + { + RpcC2M_GuildFatigueOPNew rpcC2M_GuildFatigueOPNew = new RpcC2M_GuildFatigueOPNew(); + rpcC2M_GuildFatigueOPNew.oArg.targetID = 0UL; + rpcC2M_GuildFatigueOPNew.oArg.optype = 1; + XSingleton.singleton.Send(rpcC2M_GuildFatigueOPNew); + } + + public void OnOperateFatigue(GuildFatigueArg oArg, GuildFatigueRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag2 = oRes.totalrecv > 0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FATIGUE_RECEIVED", new object[] + { + oRes.totalrecv + }), "fece00"); + } + bool flag3 = oRes.totalsend > 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FATIGUE_SENT", new object[] + { + oRes.totalsend + }), "fece00"); + } + bool flag4 = oArg.targetID == 0UL; + if (flag4) + { + bool flag5 = oArg.optype == 0; + if (flag5) + { + for (int i = 0; i < this.m_MemberList.Count; i++) + { + this.m_MemberList[i].canSend = false; + } + } + else + { + this.ReqMemberList(); + } + } + else + { + for (int j = 0; j < this.m_MemberList.Count; j++) + { + bool flag6 = this.m_MemberList[j].uid == oArg.targetID; + if (flag6) + { + bool flag7 = oArg.optype == 0; + if (flag7) + { + this.m_MemberList[j].canSend = false; + } + else + { + bool flag8 = this.m_MemberList[j].fetchState == FetchState.FS_CAN_FETCH; + if (flag8) + { + this.m_MemberList[j].fetchState = FetchState.FS_FETCHED; + } + this.m_FatigueFetched += 1u; + bool flag9 = this.GuildMembersView != null && this.GuildMembersView.IsVisible(); + if (flag9) + { + this.GuildMembersView.RefreshFatigue(); + } + } + break; + } + } + } + bool flag10 = this.GuildMembersView != null && this.GuildMembersView.IsVisible(); + if (flag10) + { + this.GuildMembersView.Refresh(); + } + this.RefreshRedPointState(); + } + } + + public void RefreshMemberTaskScore(ulong roleid, uint score) + { + for (int i = 0; i < this.MemberList.Count; i++) + { + bool flag = this.MemberList[i].uid == roleid; + if (flag) + { + this.MemberList[i].taskScore = score; + break; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberDocument.cs.meta new file mode 100644 index 00000000..36082184 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d10d7aa9b2a2434a98c40cd4bc2048d +timeCreated: 1611403350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberListEventArgs.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberListEventArgs.cs new file mode 100644 index 00000000..8434546b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberListEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XGuildMemberListEventArgs : XEventArgs + { + public XGuildMemberListEventArgs() + { + this._eDefine = XEventDefine.XEvent_GuildMemberList; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberListEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberListEventArgs.cs.meta new file mode 100644 index 00000000..1937464e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberListEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ced1a9a955492e4ea53174f61577c1f +timeCreated: 1611403999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankInfo.cs new file mode 100644 index 00000000..bf605a0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankInfo.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XGuildMemberRankInfo : XBaseRankInfo + { + public void ProcessData(RoleGuildContribute info) + { + this.id = info.roleId; + this.value = (ulong)info.contribute; + this.name = info.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(0u, info.RoleName); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankInfo.cs.meta new file mode 100644 index 00000000..a9c9bc7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aac90b07f77d3524ca3839f8b8a56bdb +timeCreated: 1611404305 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankList.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankList.cs new file mode 100644 index 00000000..2273f353 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankList.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public class XGuildMemberRankList : XBaseRankList + { + public override XBaseRankInfo CreateNewInfo() + { + return new XGuildMemberRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankList.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankList.cs.meta new file mode 100644 index 00000000..22a82f1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMemberRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bccb31e1383b7274f9d42182ef796c90 +timeCreated: 1611404448 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMineBattleDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineBattleDocument.cs new file mode 100644 index 00000000..3edaf267 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineBattleDocument.cs @@ -0,0 +1,248 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildMineBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildMineBattleDocument.uuID; + } + } + + public XBetterDictionary UserIdToRole + { + get + { + return this._UserIdToRole; + } + } + + public uint MyTeam + { + get + { + return this._MyTeam; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildMineBattleDocument"); + + public GuildMinePVPBattleHandler BattleHandler = null; + + public GuildMinePVPInfoHandler InfoHandler = null; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private XBetterDictionary _UserIdToRole = new XBetterDictionary(0); + + private static GuildMineralBattleReward _GuildMineralBattleRewardTable = new GuildMineralBattleReward(); + + private uint _MyTeam = 0u; + + private bool _CanPlayAnim = false; + + public struct RoleData + { + public ulong uid; + + public string name; + + public uint teamID; + + public uint lv; + + public uint job; + + public uint ppt; + + public ulong guildID; + + public string guildname; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildMineBattleDocument.AsyncLoader.AddTask("Table/GuildMineralBattleReward", XGuildMineBattleDocument._GuildMineralBattleRewardTable, false); + XGuildMineBattleDocument.AsyncLoader.Execute(callback); + } + + public static GuildMineralBattleReward.RowData GetReward(uint rankId) + { + GuildMineralBattleReward.RowData rowData = null; + for (int i = 0; i < XGuildMineBattleDocument._GuildMineralBattleRewardTable.Table.Length; i++) + { + bool flag = XGuildMineBattleDocument._GuildMineralBattleRewardTable.Table[i].LevelSeal <= XLevelSealDocument.Doc.SealType && XGuildMineBattleDocument._GuildMineralBattleRewardTable.Table[i].Rank == rankId; + if (flag) + { + rowData = XGuildMineBattleDocument._GuildMineralBattleRewardTable.Table[i]; + } + } + bool flag2 = rowData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "_GuildMineralBattleRewardTable No Find\nSealType", + XLevelSealDocument.Doc.SealType, + " Rank:", + rankId + }), null, null, null, null, null); + } + return rowData; + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVE; + if (flag) + { + this.ReqGuildMinePVEAllInfo(); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVP; + if (flag) + { + this.ReqGuildMinePVPAllInfo(); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVE; + if (flag2) + { + this.ReqGuildMinePVEAllInfo(); + } + } + + private void PlayStartTween() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVP; + if (flag) + { + bool flag2 = this.InfoHandler == null; + if (!flag2) + { + bool canPlayAnim = this._CanPlayAnim; + if (canPlayAnim) + { + this.InfoHandler.PlayStartTween(); + this._CanPlayAnim = false; + } + } + } + } + + public void ReqGuildMinePVPAllInfo() + { + RpcC2G_ResWarAllInfoReqOne rpc = new RpcC2G_ResWarAllInfoReqOne(); + XSingleton.singleton.Send(rpc); + } + + public void ReqGuildMinePVEAllInfo() + { + RpcC2G_ResWarBuff rpc = new RpcC2G_ResWarBuff(); + XSingleton.singleton.Send(rpc); + } + + public void SetBattleTeamInfo(PtcG2C_ResWarTeamResOne roPtc) + { + XSingleton.singleton.AddGreenLog("PlayVSTween", null, null, null, null, null); + bool flag = roPtc.Data == null; + if (!flag) + { + this.SetBattleTeamInfo(roPtc.Data); + this._CanPlayAnim = true; + this.PlayStartTween(); + } + } + + public void SetBattleTeamInfo(ResWarAllTeamBaseInfo data) + { + bool flag = data == null; + if (!flag) + { + this._UserIdToRole.Clear(); + for (int i = 0; i < data.info.Count; i++) + { + XGuildMineBattleDocument.RoleData roleData; + roleData.uid = data.info[i].uid; + roleData.name = data.info[i].name; + roleData.job = data.info[i].job; + roleData.lv = data.info[i].lv; + roleData.teamID = data.info[i].teamid; + roleData.ppt = data.info[i].ppt; + roleData.guildID = data.info[i].guildid; + roleData.guildname = data.info[i].guildname; + this._UserIdToRole.Add(roleData.uid, roleData); + bool flag2 = XSingleton.singleton.XPlayerData.RoleID == roleData.uid; + if (flag2) + { + this._MyTeam = roleData.teamID; + } + } + bool flag3 = this._MyTeam == 0u; + if (flag3) + { + XSingleton.singleton.AddErrorLog("No Find My Team", null, null, null, null, null); + } + } + } + + public void SetBattleInfo(PtcG2C_ResWarBattleDataNtf roPtc) + { + this.SetBattleInfo(roPtc.Data); + } + + public void SetBattleInfo(ResWarAllInfo data) + { + bool flag = data == null; + if (!flag) + { + bool flag2 = this.BattleHandler == null; + if (!flag2) + { + this.BattleHandler.RefreshStatusTime(data.lefttime); + XSingleton.singleton.AddGreenLog("lefttime" + data.lefttime, null, null, null, null, null); + List groupdata = data.groupdata; + for (int i = 0; i < groupdata.Count; i++) + { + this.BattleHandler.SetDamage((ulong)groupdata[i].totaldamage, groupdata[i].teamid == this._MyTeam); + this.BattleHandler.SetScore(groupdata[i].killcount, groupdata[i].teamid == this._MyTeam); + } + } + } + } + + public void SetBattleAllInfo(ResWarArg oArg, ResWarRes oRes) + { + this.SetBattleTeamInfo(oRes.baseinfo); + this.SetBattleInfo(oRes.allinfo); + } + + public void HideVSInfo() + { + bool flag = this.InfoHandler != null; + if (flag) + { + XSingleton.singleton.AddGreenLog("HideVSInfo", null, null, null, null, null); + this.InfoHandler.CloseTween(null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMineBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineBattleDocument.cs.meta new file mode 100644 index 00000000..773759a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6beefbad7ed348745b165d6efa15670b +timeCreated: 1611403893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMineEntranceDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineEntranceDocument.cs new file mode 100644 index 00000000..6b07dfef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineEntranceDocument.cs @@ -0,0 +1,92 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildMineEntranceDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildMineEntranceDocument.uuID; + } + } + + public GuildMineEntranceView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildMineEntranceDocument"); + + private GuildMineEntranceView _view = null; + + public bool MainInterfaceState = false; + + public bool MainInterfaceStateEnd = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void SetMainInterfaceBtnState(bool state) + { + bool flag = !state && state != this.MainInterfaceState && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + this.MainInterfaceState = state; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bImmUpdateUI = XGuildDocument.GuildConfig.IsSysUnlock(XSysDefine.XSys_GuildMine, specificDocument.Level); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildMine, bImmUpdateUI); + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildMineMainInterface, true); + } + + public void SetMainInterfaceBtnStateEnd(bool state) + { + this.MainInterfaceStateEnd = state; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildMineEnd, true); + } + + public void ReqEnterMine() + { + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + RpcC2M_QueryResWar rpcC2M_QueryResWar = new RpcC2M_QueryResWar(); + XGuildResContentionBuffDocument.Doc.SendPersonalBuffOpReq(XSingleton.singleton.XPlayerData.RoleID, 0u, PersonalBuffOpType.PullMySelfOwned); + XGuildResContentionBuffDocument.Doc.SendPersonalBuffOpReq(XSingleton.singleton.XPlayerData.RoleID, 0u, PersonalBuffOpType.PullMySelfActing); + rpcC2M_QueryResWar.oArg.param = QueryResWarEnum.RESWAR_BATTLE; + XSingleton.singleton.Send(rpcC2M_QueryResWar); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMineEntranceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineEntranceDocument.cs.meta new file mode 100644 index 00000000..eba58689 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineEntranceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 712eece29eec9ec439ad1a8f3804912d +timeCreated: 1611403933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMineMainDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineMainDocument.cs new file mode 100644 index 00000000..a9b851ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineMainDocument.cs @@ -0,0 +1,432 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildMineMainDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildMineMainDocument.uuID; + } + } + + public GuildMineMainView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + internal List ResRankInfoList + { + get + { + return this._resRankInfoList; + } + set + { + this._resRankInfoList = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildMineMainDocument"); + + private GuildMineMainView _view = null; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GuildMineralBattle _GuildMineralBattleTable = new GuildMineralBattle(); + + private static GuildMineralBufflist _GuildMineralBufflistTable = new GuildMineralBufflist(); + + public GuildMineRankHandler GuildResRankHanler; + + public static readonly uint GUILD_NUM_MAX = 3u; + + public static readonly uint BOSS_NUM_MAX = 4u; + + public static readonly uint MINE_NUM_MAX = 5u; + + public bool IsNeedShowMainUI = false; + + private List _resRankInfoList = new List(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + bool flag = this.IsNeedShowMainUI && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + XGuildMineEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + bool mainInterfaceState = specificDocument.MainInterfaceState; + if (mainInterfaceState) + { + specificDocument.ReqEnterMine(); + } + this.IsNeedShowMainUI = false; + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_LeaveTeam, new XComponent.XEventHandler(this.OnLeaveTeam)); + base.RegisterEvent(XEventDefine.XEvent_TeamMemberCountChanged, new XComponent.XEventHandler(this.OnTeamMemberCountChanged)); + } + + public bool OnLeaveTeam(XEventArgs args) + { + this.ClearUI(); + return true; + } + + public bool OnTeamMemberCountChanged(XEventArgs args) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshMemberTips(); + } + return true; + } + + public void ClearUI() + { + DlgBase.singleton.BossMine.Clear(); + DlgBase.singleton.BossMineBuff.Clear(); + DlgBase.singleton.CanPlayNewFindAnim = true; + DlgBase.singleton.CurExploreLeftTime = 0f; + DlgBase.singleton.ExploreTimeMax = 0u; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshBoss(); + DlgBase.singleton.RefreshExploreTime(); + DlgBase.singleton.RefreshButton(); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildMineMainDocument.AsyncLoader.AddTask("Table/GuildMineralBattle", XGuildMineMainDocument._GuildMineralBattleTable, false); + XGuildMineMainDocument.AsyncLoader.AddTask("Table/GuildMineralBufflist", XGuildMineMainDocument._GuildMineralBufflistTable, false); + XGuildMineMainDocument.AsyncLoader.Execute(callback); + } + + public static GuildMineralBattle.RowData GetMineData(uint mineID) + { + return XGuildMineMainDocument._GuildMineralBattleTable.GetByID(mineID); + } + + public static GuildMineralBufflist.RowData GetMineBuffData(uint BuffID) + { + return XGuildMineMainDocument._GuildMineralBufflistTable.GetByBuffID(BuffID); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XGuildMineEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + specificDocument.ReqEnterMine(); + } + } + + public void ReqExplore(bool iscancel) + { + RpcC2M_ResWarExplore rpcC2M_ResWarExplore = new RpcC2M_ResWarExplore(); + rpcC2M_ResWarExplore.oArg.iscancel = iscancel; + XSingleton.singleton.Send(rpcC2M_ResWarExplore); + } + + public void ReqChallenge(int mineIndex) + { + RpcC2M_StartResWarPVE rpcC2M_StartResWarPVE = new RpcC2M_StartResWarPVE(); + rpcC2M_StartResWarPVE.oArg.mine = (uint)mineIndex; + XSingleton.singleton.Send(rpcC2M_StartResWarPVE); + } + + public void ReqResWarRank() + { + RpcC2M_QueryResWarRoleRank rpc = new RpcC2M_QueryResWarRoleRank(); + XSingleton.singleton.Send(rpc); + } + + public void SetAllInfo(QueryResWarArg arg, QueryResWarRes res) + { + bool flag = res.data == null || XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (!flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XGuildResContentionBuffDocument.Doc.OnGetBuffAllInfo(res.data); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + ResWarGuildBrief data = res.data; + bool flag2 = data.mineid.Count == this.View.BossMine.Count && data.mineid.Count != 0; + if (flag2) + { + for (int i = 0; i < data.mineid.Count; i++) + { + bool flag3 = data.mineid[i] != this.View.BossMine[i]; + if (flag3) + { + this.View.CanPlayNewFindAnim = true; + break; + } + } + } + else + { + this.View.CanPlayNewFindAnim = true; + } + bool flag4 = data.mineid.Count != data.buffid.Count; + if (flag4) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "GuildMine mineid.Count!=buffid.Count: ", + data.mineid.Count, + "!=", + data.buffid.Count + }), null, null, null, null, null); + } + this.View.BossMine.Clear(); + this.View.BossMineBuff.Clear(); + for (int j = 0; j < data.mineid.Count; j++) + { + bool flag5 = (long)j == (long)((ulong)XGuildMineMainDocument.BOSS_NUM_MAX); + if (flag5) + { + break; + } + this.View.BossMine.Add(data.mineid[j]); + } + for (int k = 0; k < data.buffid.Count; k++) + { + bool flag6 = (long)k == (long)((ulong)XGuildMineMainDocument.BOSS_NUM_MAX); + if (flag6) + { + break; + } + this.View.BossMineBuff.Add(data.buffid[k]); + } + bool cdSpecified = data.cdSpecified; + if (cdSpecified) + { + this.View.CurExploreLeftTime = res.data.cd; + } + else + { + this.View.CurExploreLeftTime = 0f; + } + bool totalcdSpecified = data.totalcdSpecified; + if (totalcdSpecified) + { + this.View.ExploreTimeMax = res.data.totalcd; + } + else + { + this.View.ExploreTimeMax = 0u; + } + bool timecoutdownSpecified = data.timecoutdownSpecified; + if (timecoutdownSpecified) + { + this.View.CurActivityLeftTime = data.timecoutdown; + } + else + { + this.View.CurActivityLeftTime = 0f; + } + bool timetypeSpecified = data.timetypeSpecified; + if (timetypeSpecified) + { + this.View.ActivityStatus = (GuildMineActivityStatus)data.timetype; + } + else + { + this.View.ActivityStatus = GuildMineActivityStatus.None; + } + this.View.RefreshUI(); + XSingleton.singleton.AddGreenLog("Open:" + this.View.CurExploreLeftTime.ToString(), null, null, null, null, null); + } + } + + public void SetNewInfo(PtcM2C_ResWarGuildBriefNtf roPtc) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + ResWarGuildBrief data = roPtc.Data; + bool flag = data.guildid == specificDocument.UID; + if (flag) + { + bool flag2 = data.mineid.Count != data.buffid.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "GuildMine mineid.Count!=buffid.Count: ", + data.mineid.Count, + "!=", + data.buffid.Count + }), null, null, null, null, null); + } + bool flag3 = DlgBase.singleton.BossMine.Count == 0 && data.mineid.Count != 0; + if (flag3) + { + for (int i = 0; i < data.mineid.Count; i++) + { + bool flag4 = (long)i == (long)((ulong)XGuildMineMainDocument.BOSS_NUM_MAX); + if (flag4) + { + break; + } + DlgBase.singleton.BossMine.Add(data.mineid[i]); + } + for (int j = 0; j < data.buffid.Count; j++) + { + bool flag5 = (long)j == (long)((ulong)XGuildMineMainDocument.BOSS_NUM_MAX); + if (flag5) + { + break; + } + DlgBase.singleton.BossMineBuff.Add(data.buffid[j]); + } + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.RefreshBoss(); + } + } + else + { + bool flag7 = DlgBase.singleton.BossMine.Count != 0 && data.mineid.Count == 0; + if (flag7) + { + DlgBase.singleton.BossMine.Clear(); + DlgBase.singleton.BossMineBuff.Clear(); + DlgBase.singleton.CanPlayNewFindAnim = true; + bool flag8 = DlgBase.singleton.IsVisible(); + if (flag8) + { + DlgBase.singleton.RefreshBoss(); + } + } + } + bool cdSpecified = data.cdSpecified; + if (cdSpecified) + { + DlgBase.singleton.CurExploreLeftTime = data.cd; + } + else + { + DlgBase.singleton.CurExploreLeftTime = 0f; + } + bool totalcdSpecified = data.totalcdSpecified; + if (totalcdSpecified) + { + DlgBase.singleton.ExploreTimeMax = data.totalcd; + } + else + { + DlgBase.singleton.ExploreTimeMax = 0u; + } + bool flag9 = DlgBase.singleton.IsVisible(); + if (flag9) + { + DlgBase.singleton.RefreshExploreTime(); + } + bool flag10 = DlgBase.singleton.IsVisible(); + if (flag10) + { + DlgBase.singleton.RefreshButton(); + } + bool timetypeSpecified = data.timetypeSpecified; + if (timetypeSpecified) + { + bool timecoutdownSpecified = data.timecoutdownSpecified; + if (timecoutdownSpecified) + { + DlgBase.singleton.CurActivityLeftTime = data.timecoutdown; + } + else + { + DlgBase.singleton.CurActivityLeftTime = 0f; + } + DlgBase.singleton.ActivityStatus = (GuildMineActivityStatus)data.timetype; + bool flag11 = DlgBase.singleton.IsVisible(); + if (flag11) + { + DlgBase.singleton.RefreshActivityTime(); + } + } + XSingleton.singleton.AddGreenLog("Refresh:" + DlgBase.singleton.CurExploreLeftTime.ToString(), null, null, null, null, null); + } + } + + public void ActivityStatusChange(PtcM2C_ResWarTimeNtf roPtc) + { + DlgBase.singleton.CurActivityLeftTime = roPtc.Data.nTime; + DlgBase.singleton.ActivityStatus = GuildMineActivityStatus.Start; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshActivityTime(); + } + } + + public void OnGetRankInfo(ResWarRoleRankRes oRes) + { + this._resRankInfoList.Clear(); + for (int i = 0; i < oRes.data.Count; i++) + { + ResWarRoleRank resWarRoleRank = oRes.data[i]; + this._resRankInfoList.Add(new ResRankInfo + { + guildName = resWarRoleRank.guildname, + roleID = resWarRoleRank.roleid, + roleName = resWarRoleRank.rolename, + donateValue = resWarRoleRank.res + }); + } + bool flag = this.GuildResRankHanler != null && this.GuildResRankHanler.IsVisible(); + if (flag) + { + this.GuildResRankHanler.RefreshUI(); + } + } + + public void TeamLeaderOperate(PtcM2C_ResWarStateNtf roPtc) + { + bool flag = roPtc.Data.state == ResWarState.ResWarExploreState; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_MINE_EXPLORE_LEADER_START"), "fece00"); + } + bool flag2 = roPtc.Data.state == ResWarState.ResWarCancelState; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_MINE_EXPLORE_LEADER_CANCEL"), "fece00"); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildMineMainDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineMainDocument.cs.meta new file mode 100644 index 00000000..85b21a4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildMineMainDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5199fec7802cd00448098ade1fcc8db9 +timeCreated: 1611403707 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildPP.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildPP.cs new file mode 100644 index 00000000..ac4ac63e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildPP.cs @@ -0,0 +1,195 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildPP + { + public static int POSITION_COUNT; + + private List PositionName = new List(); + + private List PositionColor = new List(); + + private List PositionNameWithColor = new List(); + + public static int PERMISSION_COUNT; + + private int[][] GuildPermissionMatrix; + + public static int PemissionNameToIndex(string pemstr) + { + return XGuildPP.Permission2Int((GuildPermission)Enum.Parse(typeof(GuildPermission), pemstr)); + } + + public void InitTable(GuildPermissionTable table) + { + this.PositionName.Clear(); + this.PositionColor.Clear(); + this.PositionNameWithColor.Clear(); + XGuildPP.POSITION_COUNT = XGuildPP.Position2Int(GuildPosition.GPOS_COUNT); + for (int i = 0; i < XGuildPP.POSITION_COUNT; i++) + { + GuildPosition guildPosition = (GuildPosition)i; + string @string = XStringDefineProxy.GetString(guildPosition.ToString()); + this.PositionName.Add(@string); + this.PositionColor.Add(XSingleton.singleton.GetItemQualityColor(XGuildPP.POSITION_COUNT - 1 - i)); + this.PositionNameWithColor.Add(string.Format("[{0}]{1}[-]", XSingleton.singleton.GetItemQualityRGB(XGuildPP.POSITION_COUNT - 1 - i), @string)); + } + XGuildPP.PERMISSION_COUNT = XGuildPP.Permission2Int(GuildPermission.GPEM_MAX); + this.GuildPermissionMatrix = new int[XGuildPP.PERMISSION_COUNT][]; + for (int j = 0; j < this.GuildPermissionMatrix.Length; j++) + { + this.GuildPermissionMatrix[j] = new int[XGuildPP.POSITION_COUNT]; + } + for (int k = 0; k < table.Table.Length; k++) + { + GuildPermissionTable.RowData rowData = table.Table[k]; + int num = XGuildPP.PemissionNameToIndex(rowData.GuildID); + this.GuildPermissionMatrix[num][XGuildPP.Position2Int(GuildPosition.GPOS_LEADER)] = rowData.GPOS_LEADER; + this.GuildPermissionMatrix[num][XGuildPP.Position2Int(GuildPosition.GPOS_VICELEADER)] = rowData.GPOS_VICELEADER; + this.GuildPermissionMatrix[num][XGuildPP.Position2Int(GuildPosition.GPOS_OFFICER)] = rowData.GPOS_OFFICER; + this.GuildPermissionMatrix[num][XGuildPP.Position2Int(GuildPosition.GPOS_ELITEMEMBER)] = rowData.GPOS_ELITEMEMBER; + this.GuildPermissionMatrix[num][XGuildPP.Position2Int(GuildPosition.GPOS_MEMBER)] = rowData.GPOS_MEMBER; + } + } + + public string GetPositionName(GuildPosition position, bool bWithColor = false) + { + bool flag = position == GuildPosition.GPOS_COUNT; + string result; + if (flag) + { + result = ""; + } + else + { + result = (bWithColor ? this.PositionNameWithColor[XGuildPP.Position2Int(position)] : this.PositionName[XGuildPP.Position2Int(position)]); + } + return result; + } + + public Color GetPositionColor(GuildPosition position) + { + bool flag = position == GuildPosition.GPOS_COUNT; + Color result; + if (flag) + { + result = Color.white; + } + else + { + result = this.PositionColor[XGuildPP.Position2Int(position)]; + } + return result; + } + + public bool HasPermission(GuildPosition pos, GuildPermission pem) + { + bool flag = pem == GuildPermission.GPEM_DONOTHING; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = pos == GuildPosition.GPOS_COUNT || pem == GuildPermission.GPEM_MAX || pos == GuildPosition.GPOS_INVALID || pem == GuildPermission.GPEM_INVALID; + result = (!flag2 && this.GuildPermissionMatrix[XGuildPP.Permission2Int(pem)][XGuildPP.Position2Int(pos)] == 1); + } + return result; + } + + public bool HasLowerPosition(GuildPosition pos) + { + int num = XFastEnumIntEqualityComparer.ToInt(pos); + bool flag = num >= XGuildPP.POSITION_COUNT - 1; + return !flag; + } + + public int GetLowerPosition(GuildPosition pos) + { + int num = XFastEnumIntEqualityComparer.ToInt(pos); + bool flag = num > XGuildPP.POSITION_COUNT - 1; + int result; + if (flag) + { + result = num; + } + else + { + result = num + 1; + } + return result; + } + + public bool HasHigherPosition(GuildPosition pos) + { + int num = XFastEnumIntEqualityComparer.ToInt(pos); + bool flag = num <= 0; + return !flag; + } + + public int GetHigherPosition(GuildPosition pos) + { + int num = XFastEnumIntEqualityComparer.ToInt(pos); + bool flag = num < 0; + int result; + if (flag) + { + result = num; + } + else + { + result = num - 1; + } + return result; + } + + public GuildPermission GetSetPositionPermission(GuildPosition higherPos, GuildPosition targetPos) + { + bool flag = targetPos == GuildPosition.GPOS_COUNT || targetPos == GuildPosition.GPOS_INVALID; + GuildPermission result; + if (flag) + { + result = GuildPermission.GPEM_MAX; + } + else + { + switch (higherPos) + { + case GuildPosition.GPOS_LEADER: + result = GuildPermission.GPEM_CHANGELEADER; + break; + case GuildPosition.GPOS_VICELEADER: + result = GuildPermission.GPEM_SET_VICELEADER; + break; + case GuildPosition.GPOS_OFFICER: + result = GuildPermission.GPEM_SET_OFFICER; + break; + case GuildPosition.GPOS_ELITEMEMBER: + case GuildPosition.GPOS_MEMBER: + result = GuildPermission.GPEM_SET_ELITEMEMBER; + break; + default: + result = GuildPermission.GPEM_MAX; + break; + } + } + return result; + } + + private static int Position2Int(GuildPosition pos) + { + return XFastEnumIntEqualityComparer.ToInt(pos); + } + + private static int Permission2Int(GuildPermission pem) + { + return XFastEnumIntEqualityComparer.ToInt(pem); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildPP.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildPP.cs.meta new file mode 100644 index 00000000..3675de8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildPP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51bd48e154e1cb0488a41aa07fd8bac5 +timeCreated: 1611403707 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildPositionChangedEventArgs.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildPositionChangedEventArgs.cs new file mode 100644 index 00000000..1b1df61e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildPositionChangedEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XGuildPositionChangedEventArgs : XEventArgs + { + public GuildPosition position = GuildPosition.GPOS_COUNT; + + public XGuildPositionChangedEventArgs() + { + this._eDefine = XEventDefine.XEvent_GuildPositionChanged; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + this.position = GuildPosition.GPOS_COUNT; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildPositionChangedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildPositionChangedEventArgs.cs.meta new file mode 100644 index 00000000..6677872b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildPositionChangedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee57be74e0c64714bae815065044096b +timeCreated: 1611404796 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildQualifierDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildQualifierDocument.cs new file mode 100644 index 00000000..7a840401 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildQualifierDocument.cs @@ -0,0 +1,319 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildQualifierDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildQualifierDocument.uuID; + } + } + + public bool ServerActive + { + get + { + return this.m_ServerActive; + } + } + + public double ActiveTime + { + get + { + return this.m_activeTime; + } + } + + public bool bHasAvailableLadderIcon + { + get + { + return this.m_bHasAvailableLadderIcon; + } + set + { + bool flag = this.m_bHasAvailableLadderIcon != value; + if (flag) + { + this.m_bHasAvailableLadderIcon = value; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildQualifier, true); + } + } + } + + public GuildQualifierDlg QualifierView { get; set; } + + public GuildQualifierSelect Select + { + get + { + return this.m_qualifierSelect; + } + set + { + this.m_qualifierSelect = value; + } + } + + public List GuildRoleRankList + { + get + { + this.m_SelectRoleRankList.Clear(); + bool flag = this.m_GuildRoleRankList != null; + if (flag) + { + bool flag2 = this.Select == GuildQualifierSelect.SELF; + if (flag2) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + ulong uid = specificDocument.BasicData.uid; + int i = 0; + int count = this.m_GuildRoleRankList.Count; + while (i < count) + { + bool flag3 = this.m_GuildRoleRankList[i].guildid == uid; + if (flag3) + { + this.m_SelectRoleRankList.Add(this.m_GuildRoleRankList[i]); + } + i++; + } + } + else + { + this.m_SelectRoleRankList.AddRange(this.m_GuildRoleRankList); + } + this.m_SelectRoleRankList.Sort(new Comparison(this.RankSortCompare)); + } + return this.m_SelectRoleRankList; + } + } + + public List GuildRankList + { + get + { + return this.m_GuildRankList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildQualifierDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static GuildPkRankReward m_GuildPKRankRewardTable = new GuildPkRankReward(); + + private List m_GuildRankList; + + private List m_GuildRoleRankList; + + private List m_SelectRoleRankList = new List(); + + private Dictionary m_GuildIconDic = new Dictionary(); + + private GuildQualifierSelect m_qualifierSelect = GuildQualifierSelect.ALL; + + private uint m_lastRewardCount = 3u; + + private bool m_sendState = false; + + private double m_ServerTime = 0.0; + + private double m_activeTime = 0.0; + + private bool m_ServerActive = false; + + private bool m_bHasAvailableLadderIcon; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.m_sendState = false; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendSelectQualifierList(); + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.m_activeTime > (double)fDeltaT; + if (flag) + { + this.m_activeTime -= (double)fDeltaT; + } + else + { + this.m_activeTime = 0.0; + } + } + + public uint GetLastRewardCount() + { + return this.m_lastRewardCount; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildQualifierDocument.AsyncLoader.AddTask("Table/GuildPkRankReward", XGuildQualifierDocument.m_GuildPKRankRewardTable, false); + XGuildQualifierDocument.AsyncLoader.Execute(callback); + } + + public static bool TryGetRankReward(int index, out GuildPkRankReward.RowData rewardData) + { + rewardData = XGuildQualifierDocument.m_GuildPKRankRewardTable.GetByrank((uint)index); + return rewardData != null; + } + + private int RankSortCompare(GuildLadderRoleRank r1, GuildLadderRoleRank r2) + { + return (int)(r2.wintimes - r1.wintimes); + } + + public bool TryGetGuildIcon(ulong guildID, out uint guildIcon) + { + return this.m_GuildIconDic.TryGetValue(guildID, out guildIcon); + } + + public bool CheckActive() + { + bool flag = this.m_ServerTime <= 0.0; + bool result; + if (flag) + { + result = false; + } + else + { + DateTime dateTime = XSingleton.singleton.TimeNow(this.m_ServerTime, true); + int num = dateTime.Hour * 3600 + dateTime.Minute * 60 + dateTime.Second; + XSingleton.singleton.AddGreenLog(XSingleton.singleton.StringCombine("ServerTime:", num.ToString()), null, null, null, null, null); + SeqList sequence3List = XSingleton.singleton.GetSequence3List("GuildLadderTime", true); + int i = 0; + int count = (int)sequence3List.Count; + while (i < count) + { + int num2 = sequence3List[i, 0]; + int num3 = sequence3List[i, 1]; + int num4 = sequence3List[i, 2]; + bool flag2 = XFastEnumIntEqualityComparer.ToInt(dateTime.DayOfWeek) == num2; + if (flag2) + { + int num5 = num3 / 100 * 3600 + num3 % 100 * 60; + int num6 = num4 / 100 * 3600 + num4 % 100 * 60; + bool flag3 = num >= num5 && num < num6; + if (flag3) + { + return true; + } + } + i++; + } + result = false; + } + return result; + } + + public void SendSelectQualifierList() + { + RpcC2M_ReqGuildLadderInfo rpcC2M_ReqGuildLadderInfo = new RpcC2M_ReqGuildLadderInfo(); + rpcC2M_ReqGuildLadderInfo.oArg.roleId = XSingleton.singleton.XPlayerData.RoleID; + XSingleton.singleton.Send(rpcC2M_ReqGuildLadderInfo); + } + + public void ReceiveSelectQualifierList(ReqGuildLadderInfoAgr oArg, ReqGuildLadderInfoRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + this.m_ServerActive = false; + } + else + { + this.m_ServerActive = true; + this.m_activeTime = oRes.lastTime; + this.m_lastRewardCount = oRes.lestRewardTimes; + this.m_GuildRoleRankList = oRes.roleRanks; + this.m_GuildRankList = oRes.guildRanks; + this.m_ServerTime = oRes.nowTime; + XSingleton.singleton.AddGreenLog("ServerTime:", XSingleton.singleton.TimeFormatSince1970((int)oRes.nowTime, "yyyy年MM月dd日HH点", true), null, null, null, null); + this.SetGuildIconDic(this.m_GuildRankList); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshData(); + } + } + + private void SetGuildIconDic(List list) + { + int i = 0; + int count = list.Count; + while (i < count) + { + bool flag = this.m_GuildIconDic.ContainsKey(list[i].guildid); + if (flag) + { + this.m_GuildIconDic[list[i].guildid] = list[i].icon; + } + else + { + this.m_GuildIconDic.Add(list[i].guildid, list[i].icon); + } + i++; + } + } + + public void SendGuildLadderRankInfo() + { + bool sendState = this.m_sendState; + if (!sendState) + { + RpcC2M_ReqGuildLadderRnakInfo rpcC2M_ReqGuildLadderRnakInfo = new RpcC2M_ReqGuildLadderRnakInfo(); + rpcC2M_ReqGuildLadderRnakInfo.oArg.roleid = XSingleton.singleton.XPlayerData.RoleID; + XSingleton.singleton.Send(rpcC2M_ReqGuildLadderRnakInfo); + this.m_sendState = true; + } + } + + public void ReceiveGuildLandderRankList(ReqGuildLadderRnakInfoArg arg, ReqGuildLadderRnakInfoRes res) + { + this.m_sendState = false; + bool flag = res.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + this.m_activeTime = res.lastTime; + this.m_ServerActive = true; + this.m_GuildRankList = res.guildrank; + this.SetGuildIconDic(this.m_GuildRankList); + } + else + { + bool flag2 = res.errorcode == ErrorCode.ERR_GUILD_LADDER_NOT_OPEN; + if (!flag2) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + return; + } + this.m_ServerActive = false; + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshGuildQualifier(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildQualifierDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildQualifierDocument.cs.meta new file mode 100644 index 00000000..ba8c86fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildQualifierDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 199d7235677035e4e80ca7d617ae7623 +timeCreated: 1611403303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRankDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankDocument.cs new file mode 100644 index 00000000..ba8cd65b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankDocument.cs @@ -0,0 +1,102 @@ +using System; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildRankDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildRankDocument.uuID; + } + } + + public uint EndTime + { + get + { + return this.m_EndTime; + } + } + + public uint KeepTime + { + get + { + return this.m_KeepTime; + } + } + + public uint RankIndex + { + get + { + return this.m_rankIndex; + } + } + + public int LastTime + { + get + { + return this.m_lastTime; + } + set + { + this.m_lastTime = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildRankDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static GuildRankRewardTable m_RankRewardTable = new GuildRankRewardTable(); + + private uint m_EndTime; + + private uint m_KeepTime; + + private uint m_rankIndex; + + public int m_lastTime = 0; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildRankDocument.AsyncLoader.AddTask("Table/GuildRankReward", XGuildRankDocument.m_RankRewardTable, false); + XGuildRankDocument.AsyncLoader.Execute(callback); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendGuildRankInfo(); + } + } + + public void SendGuildRankInfo() + { + RpcC2M_ReqGuildRankInfo rpc = new RpcC2M_ReqGuildRankInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveGuildRankInfo(ReqGuildRankInfoRes res) + { + this.m_EndTime = res.endTime; + this.m_KeepTime = res.keepTime; + this.m_rankIndex = res.rank; + this.LastTime = (int)(res.endTime - res.nowTime); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRankDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankDocument.cs.meta new file mode 100644 index 00000000..c00dd621 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 11c73dc1627c88b44a0deb6e99f1e54a +timeCreated: 1611403240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRankInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankInfo.cs new file mode 100644 index 00000000..19e30288 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XGuildRankInfo : XBaseRankInfo + { + public string formatname2; + + public string name2; + + public uint exp; + + public uint presitge; + + public void ProcessData(GuildInfo guildInfo) + { + this.id = guildInfo.id; + this.value = (ulong)guildInfo.level; + this.presitge = guildInfo.prestige; + this.name = guildInfo.name; + this.formatname = XBaseRankInfo.GetUnderLineName(this.name); + this.name2 = guildInfo.leaderName; + this.formatname2 = XTitleDocument.GetTitleWithFormat(0u, guildInfo.leaderName); + this.exp = guildInfo.guildExp; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankInfo.cs.meta new file mode 100644 index 00000000..68b55d89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9d0bb842f7c8844aa4c0812004e0590 +timeCreated: 1611404432 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRankList.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankList.cs new file mode 100644 index 00000000..0ab1f628 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XGuildRankList : XBaseRankList + { + public XGuildRankList() + { + this.type = XRankType.GuildRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XGuildRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRankList.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankList.cs.meta new file mode 100644 index 00000000..b1c18bd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb7b787fd9ae6234e895ac9871d3b4e0 +timeCreated: 1611404546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPackageSendBrief.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPackageSendBrief.cs new file mode 100644 index 00000000..f5de4284 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPackageSendBrief.cs @@ -0,0 +1,56 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildRedPackageSendBrief : IComparable + { + public uint typeID; + + public ulong uid; + + public uint itemid; + + public string senderName; + + public uint fetchedCount; + + public uint maxCount; + + public float endTime; + + public BonusSender senderType; + + public GuildBonusTable.RowData bonusInfo; + + public void SendData(GuildBonusAppear data) + { + this.typeID = data.bonusContentType; + this.uid = (ulong)data.bonusID; + this.itemid = data.bonusType; + this.senderName = data.sourceName; + this.fetchedCount = data.alreadyGetPeopleNum; + this.maxCount = data.maxPeopleNum; + this.endTime = Time.time + data.leftOpenTime; + this.bonusInfo = XGuildRedPacketDocument.GetRedPacketConfig(this.typeID); + this.senderType = ((XSingleton.singleton.XPlayerData.RoleID == data.sourceID) ? BonusSender.Bonus_Self : BonusSender.Bonus_Other); + } + + public int CompareTo(XGuildRedPackageSendBrief other) + { + bool flag = this.senderType == other.senderType; + int result; + if (flag) + { + result = this.endTime.CompareTo(other.endTime); + } + else + { + result = this.senderType.CompareTo(other.senderType); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPackageSendBrief.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPackageSendBrief.cs.meta new file mode 100644 index 00000000..bfab032e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPackageSendBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8bec5b4cf81a34b4eaeec54aa46a729b +timeCreated: 1611404097 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBehaviour.cs new file mode 100644 index 00000000..6315ecaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBehaviour.cs @@ -0,0 +1,32 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildRedPacketBehaviour : DlgBehaviourBase + { + public Transform m_root; + + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public GameObject m_Empty; + + private void Awake() + { + this.m_root = base.transform.Find("Bg"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_Empty = base.transform.Find("Bg/Empty").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBehaviour.cs.meta new file mode 100644 index 00000000..cde0a16f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92115eec10580d9458bf64d4949dfbc8 +timeCreated: 1611404145 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBrief.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBrief.cs new file mode 100644 index 00000000..810dc1a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBrief.cs @@ -0,0 +1,84 @@ +using System; +using KKSG; +using UnityEngine; + +namespace XMainClient +{ + internal class XGuildRedPacketBrief : IComparable + { + public uint typeid; + + public ulong uid; + + public int itemid; + + public string senderName; + + public uint fetchedCount; + + public uint maxCount; + + public float endTime; + + public string iconUrl; + + public ulong sourceID; + + public string sourceName; + + public FetchState fetchState; + + public void SetData(GuildBonusAppear data) + { + this.uid = (ulong)data.bonusID; + this.itemid = (int)data.bonusType; + this.senderName = data.sourceName; + this.fetchedCount = data.alreadyGetPeopleNum; + this.maxCount = data.maxPeopleNum; + this.iconUrl = data.iconUrl; + this.sourceID = data.sourceID; + this.sourceName = data.sourceName; + bool flag = data.bonusStatus == 0u; + if (flag) + { + this.fetchState = FetchState.FS_CAN_FETCH; + } + else + { + bool flag2 = data.bonusStatus == 1u; + if (flag2) + { + this.fetchState = FetchState.FS_CANNOT_FETCH; + } + else + { + bool flag3 = data.bonusStatus == 2u; + if (flag3) + { + this.fetchState = FetchState.FS_ALREADY_FETCH; + } + else + { + this.fetchState = FetchState.FS_FETCHED; + } + } + } + this.endTime = Time.time + data.leftOpenTime; + } + + public int CompareTo(XGuildRedPacketBrief other) + { + bool flag = this.fetchState == other.fetchState; + int result; + if (flag) + { + result = this.endTime.CompareTo(other.endTime); + } + else + { + result = this.fetchState.CompareTo(other.fetchState); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBrief.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBrief.cs.meta new file mode 100644 index 00000000..a807ab67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 420dd53d21934894d9aa4834b7a5736f +timeCreated: 1611403638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDetail.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDetail.cs new file mode 100644 index 00000000..a04b0f04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDetail.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XGuildRedPacketDetail + { + public XGuildRedPacketBrief brif = new XGuildRedPacketBrief(); + + public int itemTotalCount; + + public uint getTotalCount; + + public int getCount; + + public string content; + + public ulong leaderID; + + public ulong luckestID; + + public bool canThank; + + public List logList = new List(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDetail.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDetail.cs.meta new file mode 100644 index 00000000..a31f5be3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDetail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 114e548942873494c80bf0cc76e1093c +timeCreated: 1611403222 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDocument.cs new file mode 100644 index 00000000..21c3288f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDocument.cs @@ -0,0 +1,644 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildRedPacketDocument : XDocComponent, ILogSource + { + public override uint ID + { + get + { + return XGuildRedPacketDocument.uuID; + } + } + + public XGuildRedPacketView GuildRedPacketView { get; set; } + + public List PacketList + { + get + { + return this.m_PacketList; + } + } + + public XGuildRedPacketDetail PacketDetail + { + get + { + return this.m_PacketDetail; + } + } + + public XGuildCheckInBonusInfo GuildBonus + { + get + { + return this.m_guildBonus; + } + } + + public List GuildBonusSendList + { + get + { + return this.m_GuildBonusSendBriefList; + } + } + + public bool bHasAvailableRedPacket + { + get + { + return this._bHasAvailableRedPacket; + } + set + { + this._bHasAvailableRedPacket = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildRedPacket, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshRedPoint(); + } + } + } + + public bool bHasAvailableFixedRedPoint + { + get + { + return this._bHasAvailableFixedRedPoint; + } + set + { + this._bHasAvailableFixedRedPoint = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildBoon_FixedRedPacket, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshRedPoint(); + } + } + } + + public int bHasShowIconRedPacket + { + get + { + return this._bHasShowIconRedPacket; + } + set + { + bool flag = this._bHasShowIconRedPacket != value; + if (flag) + { + this._bHasShowIconRedPacket = value; + this._showIconTimer = (double)((this._bHasShowIconRedPacket > 0) ? 300 : 0); + SceneType sceneType = XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + bool flag2 = sceneType == SceneType.SCENE_HALL || sceneType == SceneType.SCENE_GUILD_HALL; + if (flag2) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildBoon_RedPacket, true); + } + } + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildRedPacketDocument"); + + private static GuildBonusTable m_BonusReader = new GuildBonusTable(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private List m_PacketList = new List(); + + private List m_bonusBriefInfos = new List(); + + private XGuildRedPacketDetail m_PacketDetail = new XGuildRedPacketDetail(); + + private XGuildCheckInBonusInfo m_guildBonus = new XGuildCheckInBonusInfo(); + + private List m_GuildBonusSendBriefList = new List(); + + private bool _bHasAvailableRedPacket = false; + + private bool _bHasAvailableFixedRedPoint = false; + + private int _bHasShowIconRedPacket = 0; + + private double _showIconTimer = 0.0; + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this._showIconTimer > (double)fDeltaT; + if (flag) + { + this._showIconTimer -= (double)fDeltaT; + bool flag2 = this._showIconTimer <= 0.0; + if (flag2) + { + this._showIconTimer = 0.0; + this.bHasShowIconRedPacket = 0; + } + } + bool flag3 = this.m_guildBonus == null; + if (!flag3) + { + this.m_guildBonus.timeofday += (double)fDeltaT; + bool flag4 = this.m_guildBonus.leftAskBonusTime > 0.0; + if (flag4) + { + this.m_guildBonus.leftAskBonusTime -= (double)fDeltaT; + } + else + { + this.m_guildBonus.leftAskBonusTime = 0.0; + } + } + } + + private void OnShowIconTimer(object o) + { + this.bHasShowIconRedPacket = 0; + } + + public bool CheckLeader(ulong uid) + { + return this.m_PacketDetail.leaderID == uid; + } + + public bool CheckLuckest(ulong uid) + { + return this.m_PacketDetail.luckestID == uid; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildRedPacketDocument.AsyncLoader.AddTask("Table/GuildBonus", XGuildRedPacketDocument.m_BonusReader, false); + XGuildRedPacketDocument.AsyncLoader.Execute(callback); + } + + public static GuildBonusTable.RowData GetRedPacketConfig(uint id) + { + for (int i = 0; i < XGuildRedPacketDocument.m_BonusReader.Table.Length; i++) + { + bool flag = XGuildRedPacketDocument.m_BonusReader.Table[i].GuildBonusID == id; + if (flag) + { + return XGuildRedPacketDocument.m_BonusReader.Table[i]; + } + } + return null; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._bHasAvailableRedPacket = false; + this._bHasShowIconRedPacket = 0; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnInGuildStateChanged)); + } + + protected bool OnInGuildStateChanged(XEventArgs args) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = args as XInGuildStateChangedEventArgs; + bool flag = !xinGuildStateChangedEventArgs.bIsEnter; + if (flag) + { + this.bHasAvailableRedPacket = false; + } + return true; + } + + public List GetLogList() + { + return this.m_PacketDetail.logList; + } + + public void CheckAvailableRedPackets() + { + bool bHasAvailableRedPacket = false; + for (int i = 0; i < this.m_PacketList.Count; i++) + { + bool flag = this.m_PacketList[i].fetchState == FetchState.FS_CAN_FETCH; + if (flag) + { + bHasAvailableRedPacket = true; + break; + } + } + this.bHasAvailableRedPacket = bHasAvailableRedPacket; + } + + public void GetGuildCheckInBonusInfo() + { + RpcC2G_GuildCheckInBonusInfo rpc = new RpcC2G_GuildCheckInBonusInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGuildCheckInBonusInfo(GuildCheckInBonusInfoRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + this.m_guildBonus.isCheckIn = oRes.isCheckedIn; + this.m_guildBonus.guildMemberNum = oRes.guildMemberNum; + this.m_guildBonus.checkInNumber = oRes.checkInNum; + this.m_guildBonus.onLineNum = oRes.onlineNum; + this.m_guildBonus.leftAskBonusTime = (double)oRes.leftAskBonusTime; + this.m_guildBonus.timeofday = (double)oRes.timeofday; + this.m_guildBonus.SetBonusBrief(oRes.checkInBonusInfo); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshSignInfo(); + } + } + } + + public void GetSendGuildBonus() + { + RpcC2G_SendGuildBonus rpc = new RpcC2G_SendGuildBonus(); + XSingleton.singleton.Send(rpc); + } + + public void OnSendGuildBonus(SendGuildBonusRes sRes) + { + bool flag = sRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(sRes.errorcode, "fece00"); + } + else + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + specificDocument.SendOpenSysInvitation(XSysDefine.XSys_GuildBoon_RedPacket, new ulong[0]); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("INVITATION_SENT_NOTIFICATION"), "fece00"); + this.GetGuildCheckInBonusInfo(); + } + } + + public void SendGuildBonusSendList() + { + RpcC2M_GetGuildBonusSendList rpc = new RpcC2M_GetGuildBonusSendList(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveGuildBonusSendList(GetGuildBonusSendListRes res) + { + bool flag = res.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(res.error); + } + else + { + this.m_GuildBonusSendBriefList.Clear(); + int i = 0; + int count = res.sendList.Count; + while (i < count) + { + XGuildRedPackageSendBrief xguildRedPackageSendBrief = new XGuildRedPackageSendBrief(); + xguildRedPackageSendBrief.SendData(res.sendList[i]); + this.m_GuildBonusSendBriefList.Add(xguildRedPackageSendBrief); + i++; + } + this.m_GuildBonusSendBriefList.Sort(); + this.UpdateSelfSend(); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.Refresh(); + } + } + } + + public void SendGuildBonusInSend(uint bonusID) + { + RpcC2M_SendGuildBonusInSendList rpcC2M_SendGuildBonusInSendList = new RpcC2M_SendGuildBonusInSendList(); + rpcC2M_SendGuildBonusInSendList.oArg.bonusID = bonusID; + XSingleton.singleton.Send(rpcC2M_SendGuildBonusInSendList); + } + + public void ReceiveGuildBonusInSend(SendGuildBonusInSendListArg arg, SendGuildBonusInSendListRes res) + { + bool flag = res.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(res.error); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("INVITATION_SENT_NOTIFICATION"), "fece00"); + bool flag2 = false; + int i = 0; + int count = this.m_GuildBonusSendBriefList.Count; + while (i < count) + { + bool flag3 = this.m_GuildBonusSendBriefList[i].uid == (ulong)arg.bonusID; + if (flag3) + { + flag2 = true; + this.m_GuildBonusSendBriefList.RemoveAt(i); + break; + } + i++; + } + this.UpdateSelfSend(); + this.ReqFetch(arg.bonusID); + bool flag4 = flag2 && DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.Refresh(); + } + } + } + + private void UpdateSelfSend() + { + bool bHasAvailableFixedRedPoint = false; + int i = 0; + int count = this.m_GuildBonusSendBriefList.Count; + while (i < count) + { + bool flag = this.m_GuildBonusSendBriefList[i].senderType == BonusSender.Bonus_Self; + if (flag) + { + bHasAvailableFixedRedPoint = true; + break; + } + i++; + } + this.bHasAvailableFixedRedPoint = bHasAvailableFixedRedPoint; + } + + public void ReqList() + { + RpcC2G_GetGuildBonusList rpc = new RpcC2G_GetGuildBonusList(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetList(GetGuildBonusListResult oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + int num = oRes.bonusList.Count - this.m_PacketList.Count; + for (int i = 0; i < num; i++) + { + this.m_PacketList.Add(new XGuildRedPacketBrief()); + } + bool flag2 = num < 0; + if (flag2) + { + this.m_PacketList.RemoveRange(this.m_PacketList.Count + num, -num); + } + for (int j = 0; j < this.m_PacketList.Count; j++) + { + this.m_PacketList[j].SetData(oRes.bonusList[j]); + } + this.m_PacketList.Sort(); + this.CheckAvailableRedPackets(); + bool flag3 = this.GuildRedPacketView != null && this.GuildRedPacketView.IsVisible(); + if (flag3) + { + this.GuildRedPacketView.Refresh(true); + } + } + } + + public void ReqDetail(uint uid) + { + bool flag = uid == 0u; + if (!flag) + { + RpcC2G_GetGuildBonusDetailInfo rpcC2G_GetGuildBonusDetailInfo = new RpcC2G_GetGuildBonusDetailInfo(); + rpcC2G_GetGuildBonusDetailInfo.oArg.bonusID = uid; + XSingleton.singleton.Send(rpcC2G_GetGuildBonusDetailInfo); + } + } + + public void OnGetDetail(GetGuildBonusDetailInfoResult oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag2 = oRes.bonusInfo == null; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + XSingleton.singleton.AddErrorLog("RedPackage bonus is null", oRes.leaderID.ToString(), null, null, null, null); + } + else + { + this.m_PacketDetail.brif.SetData(oRes.bonusInfo); + this.m_PacketDetail.brif.typeid = oRes.bonusContentType; + this.m_PacketDetail.itemTotalCount = (int)oRes.bonusNum; + this.m_PacketDetail.content = oRes.content; + this.m_PacketDetail.leaderID = oRes.leaderID; + this.m_PacketDetail.luckestID = oRes.luckestID; + this.m_PacketDetail.canThank = oRes.canThank; + this.m_PacketDetail.getCount = oRes.getBonusRoleList.Count; + int num = oRes.getBonusRoleList.Count - this.m_PacketDetail.logList.Count; + for (int i = 0; i < num; i++) + { + this.m_PacketDetail.logList.Add(new XGuildRedPacketLog()); + } + bool flag3 = num < 0; + if (flag3) + { + this.m_PacketDetail.logList.RemoveRange(this.m_PacketDetail.logList.Count + num, -num); + } + uint num2 = 0u; + for (int j = 0; j < this.m_PacketDetail.logList.Count; j++) + { + XGuildRedPacketLog xguildRedPacketLog = this.m_PacketDetail.logList[j] as XGuildRedPacketLog; + xguildRedPacketLog.SetData(oRes.getBonusRoleList[j]); + num2 += oRes.getBonusRoleList[j].getNum; + xguildRedPacketLog.itemid = this.m_PacketDetail.brif.itemid; + } + this.m_PacketDetail.getTotalCount = num2; + this.m_PacketDetail.logList.Sort(); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.Refresh(); + } + } + } + } + + public void SetCanThank(bool thank = false) + { + this.m_PacketDetail.canThank = thank; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(); + } + } + + public void ReqFetch(uint uid) + { + RpcC2G_GetGuildBonusReward rpcC2G_GetGuildBonusReward = new RpcC2G_GetGuildBonusReward(); + rpcC2G_GetGuildBonusReward.oArg.bonusID = uid; + XSingleton.singleton.Send(rpcC2G_GetGuildBonusReward); + } + + public void OnFetch(GetGuildBonusRewardArg oArg, GetGuildBonusRewardResult oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + bool flag2 = this.GuildRedPacketView != null && this.GuildRedPacketView.IsVisible(); + if (flag2) + { + this.GuildRedPacketView.ShowResult(null); + } + } + else + { + XGuildRedPacketBrief xguildRedPacketBrief = null; + for (int i = 0; i < this.m_PacketList.Count; i++) + { + bool flag3 = this.m_PacketList[i].uid == (ulong)oArg.bonusID; + if (flag3) + { + xguildRedPacketBrief = this.m_PacketList[i]; + xguildRedPacketBrief.fetchState = FetchState.FS_ALREADY_FETCH; + xguildRedPacketBrief.fetchedCount += 1u; + break; + } + } + this.CheckAvailableRedPackets(); + DlgBase.singleton.ShowEffect(true, oArg.bonusID); + bool flag4 = this.GuildRedPacketView != null && this.GuildRedPacketView.IsVisible(); + if (flag4) + { + this.ReqList(); + this.GuildRedPacketView.Refresh(false); + this.GuildRedPacketView.ShowResult(xguildRedPacketBrief); + } + } + } + + public void SendGuildBonuesLeft() + { + XSingleton.singleton.AddGreenLog("SendGuildBonuesLeft", null, null, null, null, null); + RpcC2G_GetGuildBonusLeft rpc = new RpcC2G_GetGuildBonusLeft(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveGuildBonusLeft(GetGuildBonusLeftRes res) + { + XSingleton.singleton.AddGreenLog("ReceiveGuildBonusLeft", null, null, null, null, null); + bool flag = res.errorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorCode, "fece00"); + } + else + { + this.m_bonusBriefInfos.Clear(); + this.m_bonusBriefInfos.AddRange(res.bonusInfos); + this.bHasShowIconRedPacket = this.m_bonusBriefInfos.Count; + } + } + + public void ReqGetLast() + { + uint num = 0u; + bool flag = this.m_bonusBriefInfos.Count > 0; + if (flag) + { + int sendTime = this.m_bonusBriefInfos[0].sendTime; + num = this.m_bonusBriefInfos[0].bonusID; + int i = 1; + int count = this.m_bonusBriefInfos.Count; + while (i < count) + { + bool flag2 = this.m_bonusBriefInfos[i].sendTime > sendTime; + if (flag2) + { + sendTime = this.m_bonusBriefInfos[i].sendTime; + num = this.m_bonusBriefInfos[i].bonusID; + } + i++; + } + } + bool flag3 = num > 0u; + if (flag3) + { + this.ReqFetch(num); + this.ReceiveGuildBonusGetAll(num); + } + } + + public void ReceiveGuildBonusGetAll(uint bonusID) + { + bool flag = false; + int i = 0; + int count = this.m_bonusBriefInfos.Count; + while (i < count) + { + bool flag2 = this.m_bonusBriefInfos[i].bonusID == bonusID; + if (flag2) + { + flag = true; + this.m_bonusBriefInfos.RemoveAt(i); + break; + } + i++; + } + bool flag3 = flag; + if (flag3) + { + this.bHasShowIconRedPacket = this.m_bonusBriefInfos.Count; + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.GuildRedPacketView != null && this.GuildRedPacketView.IsVisible(); + if (flag) + { + this.ReqList(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + this.GetGuildCheckInBonusInfo(); + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + this.SendGuildBonusSendList(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDocument.cs.meta new file mode 100644 index 00000000..24fec70f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f63322b78da087046b3b3cafd0584edc +timeCreated: 1611404880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketLog.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketLog.cs new file mode 100644 index 00000000..7ba1f2bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketLog.cs @@ -0,0 +1,58 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildRedPacketLog : ILogData, IComparable + { + public ulong uid; + + public string name; + + public int itemid; + + public int itemcount; + + public int time; + + public void SetData(GetGuildBonusInfo data) + { + this.uid = data.roleID; + this.name = data.roleName; + this.itemcount = (int)data.getNum; + this.time = (int)data.getTime; + } + + public string GetContent() + { + return XStringDefineProxy.GetString("GUILD_REDPACKET_LOG", new object[] + { + XLabelSymbolHelper.FormatName(this.name, this.uid, "00ffff"), + XLabelSymbolHelper.FormatCostWithIcon(this.itemcount, (ItemEnum)this.itemid) + }); + } + + public string GetTime() + { + return XSingleton.singleton.TimeAgoFormatString(this.time); + } + + public int CompareTo(ILogData otherLog) + { + XGuildRedPacketLog xguildRedPacketLog = otherLog as XGuildRedPacketLog; + bool flag = xguildRedPacketLog.time == this.time; + int result; + if (flag) + { + result = this.uid.CompareTo(xguildRedPacketLog.uid); + } + else + { + result = this.time.CompareTo(xguildRedPacketLog.time); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketLog.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketLog.cs.meta new file mode 100644 index 00000000..c405c02b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRedPacketLog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8e7637333cf9004591b13747996e5e0 +timeCreated: 1611404536 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameBehaviour.cs new file mode 100644 index 00000000..494d99eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameBehaviour.cs @@ -0,0 +1,24 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildRelaxGameBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public GameObject m_GameTemp; + + public IXUIScrollView m_GameScrollView; + + private void Awake() + { + this.m_GameTemp = base.transform.Find("Bg/GameList/GameTpl").gameObject; + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_GameScrollView = (base.transform.Find("Bg/GameList").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_GameTemp.gameObject.SetActive(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameBehaviour.cs.meta new file mode 100644 index 00000000..f5abfac1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c7e89bfeaabbef45898f1ed8a310805 +timeCreated: 1611403344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameDocument.cs new file mode 100644 index 00000000..e411898b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameDocument.cs @@ -0,0 +1,129 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildRelaxGameDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildRelaxGameDocument.uuID; + } + } + + public uint GuildVoiceQAState + { + get + { + return this._guildVoiceQAState; + } + } + + public float GuildVoiceQAWaitTime + { + get + { + return this._guildVoiceQAWaitTime; + } + } + + public bool RedPoint { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildRelaxGameDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static GuildRelaxGameList GameList = new GuildRelaxGameList(); + + private uint _guildVoiceQAState = 0u; + + private float _guildVoiceQAWaitTime = 0f; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildRelaxGameDocument.AsyncLoader.AddTask("Table/GuildRelaxGameList", XGuildRelaxGameDocument.GameList, false); + XGuildRelaxGameDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.GuildStatusChanged)); + } + + public bool GuildStatusChanged(XEventArgs args) + { + this.RefreshRedPoint(); + return true; + } + + public void OpenGuildVoiceQuery() + { + RpcC2G_OpenGuildQAReq rpc = new RpcC2G_OpenGuildQAReq(); + XSingleton.singleton.Send(rpc); + } + + public void GetGuildVoiceInfo() + { + RpcC2G_GetGuildQADataReq rpc = new RpcC2G_GetGuildQADataReq(); + XSingleton.singleton.Send(rpc); + } + + public void JoinGuildVoiceInfo() + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + bool isVoiceQAIng = specificDocument.IsVoiceQAIng; + if (isVoiceQAIng) + { + DlgBase.singleton.SetVisible(true, true); + } + else + { + specificDocument.VoiceQAJoinChoose(true, 3u); + } + } + + public void SetGuildVoiceInfo(uint state, float time) + { + this._guildVoiceQAState = state; + XSingleton.singleton.AddLog(string.Format("Get guild voice open state = {0} by server", state), null, null, null, null, null, XDebugColor.XDebug_None); + this._guildVoiceQAWaitTime = time; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(XSysDefine.XSys_GuildRelax_VoiceQA); + DlgBase.singleton.RefreshRedPoint(XSysDefine.XSys_GuildRelax_VoiceQA); + } + } + + public void RefreshRedPoint() + { + XGuildJokerDocument specificDocument = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + XGuildDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.RedPoint = false; + bool flag = !specificDocument2.bInGuild; + if (flag) + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildRelax_Joker, true); + } + else + { + this.RedPoint = (specificDocument.GameCount > 0); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildRelax_Joker, true); + bool flag2 = !DlgBase.singleton.IsVisible(); + if (!flag2) + { + DlgBase.singleton.RefreshRedPoint(XSysDefine.XSys_GuildRelax_VoiceQA); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameDocument.cs.meta new file mode 100644 index 00000000..7de0b727 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e26dfb8c5981f3a4c97b5e023fbbe70e +timeCreated: 1611404705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameView.cs new file mode 100644 index 00000000..6c38f39e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameView.cs @@ -0,0 +1,221 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildRelaxGameView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildRelaxGameDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private List m_realxSysList; + + private List m_relaxChildren; + + private int m_RelaxIndex = 0; + + protected override void Init() + { + base.Init(); + this.m_realxSysList = new List(); + this.m_relaxChildren = new List(); + this.m_RelaxIndex = 0; + this.RegisterHandler(XSysDefine.XSys_GuildRelax_VoiceQA); + this.RegisterHandler(XSysDefine.XSys_GuildRelax_JokerMatch); + this.RegisterHandler(XSysDefine.XSys_GuildCollect); + base.uiBehaviour.m_GameScrollView.ResetPosition(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + protected override void OnUnload() + { + this.RemoveHandler(XSysDefine.XSys_GuildRelax_VoiceQA); + this.RemoveHandler(XSysDefine.XSys_GuildRelax_JokerMatch); + this.RemoveHandler(XSysDefine.XSys_GuildCollect); + this.m_realxSysList.Clear(); + this.m_relaxChildren.Clear(); + this.m_realxSysList = null; + this.m_relaxChildren = null; + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + int i = 0; + int count = this.m_relaxChildren.Count; + while (i < count) + { + this.m_relaxChildren[i].StackRefresh(); + i++; + } + } + + public bool TryGetRelaxChild(XSysDefine define, out GuildRelaxChildHandler handler) + { + int num = this.m_realxSysList.IndexOf(define); + bool flag = num < 0; + bool result; + if (flag) + { + handler = null; + result = false; + } + else + { + handler = this.m_relaxChildren[num]; + result = true; + } + return result; + } + + protected override void OnHide() + { + int i = 0; + int count = this.m_relaxChildren.Count; + while (i < count) + { + this.m_relaxChildren[i].SetVisible(false); + i++; + } + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + int i = 0; + int count = this.m_relaxChildren.Count; + while (i < count) + { + this.m_relaxChildren[i].SetVisible(true); + i++; + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + int i = 0; + int count = this.m_relaxChildren.Count; + while (i < count) + { + this.m_relaxChildren[i].OnUpdate(); + i++; + } + } + + private void RegisterHandler(XSysDefine define) where T : GuildRelaxChildHandler, new() + { + bool flag = this.m_realxSysList.IndexOf(define) < 0; + if (flag) + { + T t = default(T); + GameObject gameObject = XCommon.Instantiate(base.uiBehaviour.m_GameTemp); + gameObject.SetActive(true); + gameObject.transform.parent = this.m_uiBehaviour.m_GameScrollView.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(-340 + this.m_RelaxIndex * 360), -28f, 0f); + gameObject.name = define.ToString(); + t = DlgHandlerBase.EnsureCreate(ref t, gameObject, null, false); + this.m_realxSysList.Add(define); + this.m_relaxChildren.Add(t); + t.SetGuildRelex(define); + this.m_RelaxIndex++; + } + } + + private void RemoveHandler(XSysDefine define) + { + int num = this.m_realxSysList.IndexOf(define); + bool flag = num < 0; + if (!flag) + { + GuildRelaxChildHandler guildRelaxChildHandler = this.m_relaxChildren[num]; + DlgHandlerBase.EnsureUnload(ref guildRelaxChildHandler); + this.m_relaxChildren.RemoveAt(num); + this.m_realxSysList.RemoveAt(num); + } + } + + public void Refresh(XSysDefine define) + { + GuildRelaxChildHandler guildRelaxChildHandler; + bool flag = this.TryGetRelaxChild(define, out guildRelaxChildHandler); + if (flag) + { + guildRelaxChildHandler.RefreshData(); + } + } + + public void RefreshRedPoint(XSysDefine define) + { + GuildRelaxChildHandler guildRelaxChildHandler; + bool flag = this.TryGetRelaxChild(define, out guildRelaxChildHandler); + if (flag) + { + guildRelaxChildHandler.RefreshRedPoint(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameView.cs.meta new file mode 100644 index 00000000..0c7605f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildRelaxGameView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c209863dcda8dc74db010b5267f16a79 +timeCreated: 1611404492 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildResContentionBuffDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildResContentionBuffDocument.cs new file mode 100644 index 00000000..8e45aa75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildResContentionBuffDocument.cs @@ -0,0 +1,676 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildResContentionBuffDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildResContentionBuffDocument.uuID; + } + } + + public static XGuildResContentionBuffDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XGuildResContentionBuffDocument.uuID) as XGuildResContentionBuffDocument; + } + } + + public static GuildBuffTable GuildBuffData + { + get + { + return XGuildResContentionBuffDocument._guildBuffTable; + } + } + + public static GuildMineralStorage GuildMineralStorageTable + { + get + { + return XGuildResContentionBuffDocument._guildMineralStorageTable; + } + } + + public uint GuildBuffCDTime + { + get + { + return this._guildBuffCDTime; + } + set + { + this._guildBuffCDTime = value; + } + } + + public ulong GuildID + { + get + { + return this._guildID; + } + set + { + this._guildID = value; + } + } + + public List MineUsedBuffRecordList + { + get + { + return this._guildBuffUsedRecords; + } + set + { + this._guildBuffUsedRecords = value; + } + } + + public uint GuildMaxResource + { + get + { + return this._guildMaxResource; + } + set + { + this._guildMaxResource = value; + } + } + + public List MyselfOwnedBuffs + { + get + { + return this._myselfOwnedBuffs; + } + set + { + this._myselfOwnedBuffs = value; + } + } + + public List MySelfActingBuffList + { + get + { + return this._mySelfActingBuffList; + } + set + { + this._mySelfActingBuffList = value; + } + } + + public List MyGuildOwnedBuffs + { + get + { + return this._myGuildOwnedBuffs; + } + set + { + this._myGuildOwnedBuffs = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildResContentionBuffDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GuildBuffTable _guildBuffTable = new GuildBuffTable(); + + private static GuildMineralStorage _guildMineralStorageTable = new GuildMineralStorage(); + + private List _myGuildOwnedBuffs = new List(); + + private List _myselfOwnedBuffs = new List(); + + private List _mySelfActingBuffList = new List(); + + private List _guildBuffUsedRecords = new List(); + + private List _guildInfoList = new List(); + + private Dictionary> _guildsBuffedInfos = new Dictionary>(); + + private uint _guildBuffCDTime = 0u; + + private ulong _guildID = 0UL; + + private uint _guildCdTimerID = 0u; + + private uint _guildMaxResource = 1u; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildResContentionBuffDocument.AsyncLoader.AddTask("Table/GuildBuff", XGuildResContentionBuffDocument._guildBuffTable, false); + XGuildResContentionBuffDocument.AsyncLoader.AddTask("Table/GuildMineralStorage", XGuildResContentionBuffDocument._guildMineralStorageTable, false); + XGuildResContentionBuffDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public GuildBuffTable.RowData GetGuildBuffDataByItemID(uint itemID) + { + for (int i = 0; i < XGuildResContentionBuffDocument._guildBuffTable.Table.Length; i++) + { + bool flag = XGuildResContentionBuffDocument._guildBuffTable.Table[i].itemid == itemID; + if (flag) + { + return XGuildResContentionBuffDocument._guildBuffTable.Table[i]; + } + } + return null; + } + + public GuildBuffTable.RowData GetGuildBuffDataByBuffID(uint buffID) + { + for (int i = 0; i < XGuildResContentionBuffDocument._guildBuffTable.Table.Length; i++) + { + bool flag = XGuildResContentionBuffDocument._guildBuffTable.Table[i].id == buffID; + if (flag) + { + return XGuildResContentionBuffDocument._guildBuffTable.Table[i]; + } + } + return null; + } + + public GuildMineralStorage.RowData GetMineralStorageByID(uint id) + { + for (int i = 0; i < XGuildResContentionBuffDocument._guildMineralStorageTable.Table.Length; i++) + { + bool flag = XGuildResContentionBuffDocument._guildMineralStorageTable.Table[i].itemid == id; + if (flag) + { + return XGuildResContentionBuffDocument._guildMineralStorageTable.Table[i]; + } + } + return null; + } + + public void SendGuildBuffReq(ulong guildID, uint itemID) + { + RpcC2M_UseGuildBuff rpcC2M_UseGuildBuff = new RpcC2M_UseGuildBuff(); + rpcC2M_UseGuildBuff.oArg.guildid = guildID; + rpcC2M_UseGuildBuff.oArg.itemid = itemID; + XSingleton.singleton.Send(rpcC2M_UseGuildBuff); + } + + public void SendPersonalBuffOpReq(ulong entityID, uint itemID, PersonalBuffOpType opType) + { + RpcC2G_ItemBuffOp rpcC2G_ItemBuffOp = new RpcC2G_ItemBuffOp(); + rpcC2G_ItemBuffOp.oArg.itemcount = 1u; + rpcC2G_ItemBuffOp.oArg.itemid = itemID; + rpcC2G_ItemBuffOp.oArg.op = (uint)opType; + XSingleton.singleton.Send(rpcC2G_ItemBuffOp); + } + + public void OnGetUseGuildBuffResult(UseGuildBuffArg oArg, UseGuildBuffRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("BuffUseSuc"), "fece00"); + this._guildBuffCDTime = oRes.cd; + DlgBase.singleton.RefreshOwnedBuffItem(oArg.itemid, this._guildBuffCDTime); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + + public void OnGetPersonalBuffOperationResult(ItemBuffOpArg oArg, ItemBuffOpRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = oArg.op == 0u; + if (flag2) + { + this._myselfOwnedBuffs.Clear(); + for (int i = 0; i < oRes.itemid.Count; i++) + { + this._myselfOwnedBuffs.Add(new GuildBuffInfo + { + itemID = oRes.itemid[i], + count = oRes.itemcount[i] + }); + } + } + else + { + bool flag3 = oArg.op == 1u; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("BuffUseSuc"), "fece00"); + for (int j = 0; j < this._myselfOwnedBuffs.Count; j++) + { + bool flag4 = this._myselfOwnedBuffs[j].itemID == oArg.itemid; + if (flag4) + { + bool flag5 = this._myselfOwnedBuffs[j].count <= 1u; + if (flag5) + { + this._myselfOwnedBuffs.RemoveAt(j); + } + else + { + this._myselfOwnedBuffs[j].count -= 1u; + } + break; + } + } + ItemBuffTable.RowData itembuffDataByID = XHomeCookAndPartyDocument.Doc.GetItembuffDataByID(oArg.itemid); + bool flag6 = itembuffDataByID != null; + if (flag6) + { + for (int k = 0; k < itembuffDataByID.Buffs.Count; k++) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)itembuffDataByID.Buffs[k, 0], (int)itembuffDataByID.Buffs[k, 1]); + bool flag7 = buffData.BuffDuration > 0f; + if (flag7) + { + bool flag8 = false; + for (int l = 0; l < this._mySelfActingBuffList.Count; l++) + { + bool flag9 = (ulong)this._mySelfActingBuffList[l].buffID == (ulong)((long)buffData.BuffID); + if (flag9) + { + this._mySelfActingBuffList[l].time = (uint)buffData.BuffDuration; + flag8 = true; + break; + } + } + bool flag10 = !flag8; + if (flag10) + { + this._mySelfActingBuffList.Add(new GuildUsingBuffInfo + { + buffID = (uint)buffData.BuffID, + time = (uint)buffData.BuffDuration + }); + } + } + } + } + bool flag11 = DlgBase.singleton.IsVisible(); + if (flag11) + { + DlgBase.singleton.RefreshOwnedBuffItem(oArg.itemid, 0u); + DlgBase.singleton.RefreshMySelfActingBuff(); + } + } + else + { + bool flag12 = oArg.op == 2u; + if (flag12) + { + this.MySelfActingBuffList.Clear(); + for (int m = 0; m < oRes.buffid.Count; m++) + { + this._mySelfActingBuffList.Add(new GuildUsingBuffInfo + { + buffID = oRes.buffid[m], + time = oRes.lefttime[m] + }); + } + bool flag13 = DlgBase.singleton.IsVisible(); + if (flag13) + { + DlgBase.singleton.RefreshMySelfActingBuff(); + } + } + else + { + bool flag14 = oArg.op == 3u; + if (flag14) + { + bool flag15 = XSingleton.singleton.SceneType == SceneType.SCENE_HORSE_RACE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING; + if (flag15) + { + XRaceDocument specificDocument = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + specificDocument.UseDoodad(oArg, oRes); + } + else + { + bool flag16 = XSingleton.singleton.SceneType == SceneType.SCENE_SURVIVE; + if (flag16) + { + } + } + } + } + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + + public void OnGetBuffAllInfo(ResWarGuildBrief res) + { + bool flag = res != null && res.error == ErrorCode.ERR_SUCCESS; + if (flag) + { + this.GuildBuffCDTime = res.cardcd; + this.GuildID = res.guildid; + this.GuildMaxResource = (uint)XSingleton.singleton.GetInt("GuildResMax"); + List item = res.item; + bool flag2 = item != null; + if (flag2) + { + this.UpdateOwnedBuffList(item); + } + this.OnGetGuildInfoList(res.rankinfo); + this.OnGetGuildBuffList(res.buffinfo); + this.UpdateBuffRecords(res.chatinfo); + } + } + + public WarResGuildInfo GetPKGuildInfos(int index) + { + bool flag = index < this._guildInfoList.Count; + WarResGuildInfo result; + if (flag) + { + result = this._guildInfoList[index]; + } + else + { + result = null; + } + return result; + } + + public List GetAllGuildInfos() + { + return this._guildInfoList; + } + + public List GetGuildUsedBuffList(ulong guildID) + { + List result = null; + foreach (KeyValuePair> keyValuePair in this._guildsBuffedInfos) + { + bool flag = keyValuePair.Key == guildID; + if (flag) + { + result = this._guildsBuffedInfos[keyValuePair.Key]; + return result; + } + } + return result; + } + + public GuildBuffInfo GetGuildOwnedSomeCardInfo(uint itemID) + { + for (int i = 0; i < this.MyGuildOwnedBuffs.Count; i++) + { + bool flag = this.MyGuildOwnedBuffs[i].itemID == itemID && this.MyGuildOwnedBuffs[i].count > 0u; + if (flag) + { + return this.MyGuildOwnedBuffs[i]; + } + } + return null; + } + + public GuildBuffInfo GetMyOwnedSomeCardInfo(uint itemID) + { + for (int i = 0; i < this._myselfOwnedBuffs.Count; i++) + { + bool flag = this._myselfOwnedBuffs[i].itemID == itemID; + if (flag) + { + return this._myselfOwnedBuffs[i]; + } + } + return null; + } + + public void StartCDTimer() + { + this.StopCDTimer(); + this._guildCdTimerID = XSingleton.singleton.SetTimerAccurate(1f, new XTimerMgr.AccurateElapsedEventHandler(this.RefreshCardCD), null); + } + + public void StopCDTimer() + { + XSingleton.singleton.KillTimer(this._guildCdTimerID); + this._guildCdTimerID = 0u; + } + + private void RefreshCardCD(object param, float delay) + { + this.MinusGuildBuffCDTime(); + this.RefreshUICD(); + this.StartCDTimer(); + } + + private void RefreshUICD() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshGuildBuffCD(); + DlgBase.singleton.RefreshMySelfActingBuff(); + } + GuildBuffOperationHandler guildBuffHandler = DlgBase.singleton.GuildBuffHandler; + bool flag2 = guildBuffHandler != null && guildBuffHandler.IsVisible(); + if (flag2) + { + guildBuffHandler.RefreshCardCd(); + } + } + + private void MinusGuildBuffCDTime() + { + this._guildBuffCDTime = ((this._guildBuffCDTime > 0u) ? (this._guildBuffCDTime - 1u) : 0u); + foreach (List list in this._guildsBuffedInfos.Values) + { + for (int i = 0; i < list.Count; i++) + { + list[i].time = ((list[i].time > 0u) ? (list[i].time - 1u) : 0u); + } + } + for (int j = this._mySelfActingBuffList.Count - 1; j >= 0; j--) + { + bool flag = this._mySelfActingBuffList[j].time == 0u; + if (flag) + { + this._mySelfActingBuffList.RemoveAt(j); + } + else + { + this._mySelfActingBuffList[j].time -= 1u; + } + } + } + + private void UpdateOwnedBuffList(List buffItems) + { + bool flag = buffItems == null; + if (!flag) + { + this.MyGuildOwnedBuffs.Clear(); + for (int i = 0; i < buffItems.Count; i++) + { + this.MyGuildOwnedBuffs.Add(new GuildBuffInfo + { + itemID = buffItems[i].itemid, + count = buffItems[i].count + }); + } + } + } + + private void UpdateBuffRecords(List usedBuffs) + { + bool flag = usedBuffs != null; + if (flag) + { + this._guildBuffUsedRecords.Clear(); + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + for (int i = 0; i < usedBuffs.Count; i++) + { + this._guildBuffUsedRecords.Add(new GuildBuffUsedRecordItem + { + MainMessage = specificDocument.ProcessText(usedBuffs[i]) + }); + } + } + } + + internal void OnGetGuildBuffList(List buffs) + { + bool flag = buffs == null; + if (!flag) + { + this._guildsBuffedInfos.Clear(); + for (int i = 0; i < buffs.Count; i++) + { + GuildBuffSimpleInfo guildBuffSimpleInfo = buffs[i]; + this._guildsBuffedInfos.Add(guildBuffSimpleInfo.guildid, new List()); + for (int j = 0; j < guildBuffSimpleInfo.buff.Count; j++) + { + this._guildsBuffedInfos[guildBuffSimpleInfo.guildid].Add(new GuildUsingBuffInfo + { + buffID = guildBuffSimpleInfo.buff[j].id, + time = guildBuffSimpleInfo.buff[j].time + }); + } + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshTopRightBuffs(); + } + } + } + + internal void OnGetGuildInfoList(ResWarRankSimpleInfo infos) + { + bool flag = infos.rank == null; + if (!flag) + { + this._guildInfoList.Clear(); + List rank = infos.rank; + for (int i = 0; i < rank.Count; i++) + { + ResWarRank resWarRank = rank[i]; + WarResGuildInfo warResGuildInfo = new WarResGuildInfo + { + guildID = resWarRank.id, + guildName = resWarRank.name, + resValue = resWarRank.value, + guildIcon = resWarRank.icon + }; + this.GuildMaxResource = Math.Max(this.GuildMaxResource, resWarRank.value); + this._guildInfoList.Add(warResGuildInfo); + bool flag2 = warResGuildInfo.guildID == this._guildID; + if (flag2) + { + this._guildInfoList[i] = this._guildInfoList[0]; + this._guildInfoList[0] = warResGuildInfo; + } + } + } + } + + internal void OnGetOwnedGuildBuffList(PtcM2C_GuildBuffSimpleItemNtf roPtc) + { + bool flag = roPtc.Data != null; + if (flag) + { + bool flag2 = roPtc.Data.guildid == this._guildID; + if (flag2) + { + this.UpdateOwnedBuffList(roPtc.Data.item); + this.UpdateBuffRecords(roPtc.Data.chatinfo); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshBuffsRecord(); + } + } + } + } + + public void OnGetGuildResUpdate(ResWarMineData data) + { + bool flag = data != null; + if (flag) + { + for (int i = 0; i < this._guildInfoList.Count; i++) + { + bool flag2 = this._guildInfoList[i].guildID == data.guildid; + if (flag2) + { + this.GuildMaxResource = Math.Max(this.GuildMaxResource, data.mine); + this._guildInfoList[i].resValue = data.mine; + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshTopRightBuffs(); + } + break; + } + } + } + } + + public void OnGetGuildBuffCD(GuildBuffCDParam data) + { + this._guildBuffCDTime = data.param; + bool flag = this._guildBuffCDTime > 0u; + if (flag) + { + GuildBuffOperationHandler guildBuffHandler = DlgBase.singleton.GuildBuffHandler; + bool flag2 = guildBuffHandler != null && guildBuffHandler.IsVisible(); + if (flag2) + { + guildBuffHandler.FoldByHasGuildBuffCd(); + guildBuffHandler.RefreshCardCd(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildResContentionBuffDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildResContentionBuffDocument.cs.meta new file mode 100644 index 00000000..34d2b948 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildResContentionBuffDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd571160702b02545ab23d47076de453 +timeCreated: 1611404554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryDocument.cs new file mode 100644 index 00000000..e68de93c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryDocument.cs @@ -0,0 +1,594 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSalaryDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildSalaryDocument.uuID; + } + } + + public List TopPlayers + { + get + { + return this.m_topPlayers; + } + } + + public bool HasRedPoint + { + get + { + return this.m_hasRedPoint; + } + set + { + this.m_hasRedPoint = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildBoon_Salay, true); + } + } + + public bool NotHasLastSalaryInfo + { + get + { + return this.m_lastLevel == 0u; + } + } + + public uint CurScore + { + get + { + return this.m_curScore; + } + } + + public XGuildSalaryInfo Activity + { + get + { + return this.m_activity; + } + } + + public XGuildSalaryInfo RoleNum + { + get + { + return this.m_roleNum; + } + } + + public XGuildSalaryInfo Prestige + { + get + { + return this.m_prestige; + } + } + + public XGuildSalaryInfo Exp + { + get + { + return this.m_exp; + } + } + + public uint CurGrade + { + get + { + return this.m_curGrade; + } + } + + public uint LastScore + { + get + { + return this.m_lastScore; + } + } + + public uint MulMaxScore + { + get + { + return this.m_mulMaxScore; + } + } + + public WageRewardState RewardState + { + get + { + return this.m_rewardState; + } + } + + public uint LastGrade + { + get + { + return this.m_lastGrade; + } + } + + public GuildPosition LastPosition + { + get + { + return this.m_lastPosition; + } + } + + public uint LastLevel + { + get + { + return this.m_lastLevel; + } + } + + public int SelectTabs { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildSalaryDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static GuildSalaryDesc m_guildSalaryDesc = new GuildSalaryDesc(); + + public static GuildSalaryTable m_guildSalaryTable = new GuildSalaryTable(); + + public static List TabIndexs = new List(); + + public static List TabNames = new List(); + + public static Dictionary> GuildSalaryDescDic = new Dictionary>(); + + private XGuildSalaryInfo m_activity = new XGuildSalaryInfo(); + + private XGuildSalaryInfo m_exp = new XGuildSalaryInfo(); + + private XGuildSalaryInfo m_roleNum = new XGuildSalaryInfo(); + + private XGuildSalaryInfo m_prestige = new XGuildSalaryInfo(); + + private List m_topPlayers; + + private uint m_curGrade; + + private uint m_curScore; + + private WageRewardState m_rewardState; + + private uint m_lastLevel; + + private uint m_lastGrade; + + private uint m_lastScore; + + private GuildPosition m_lastPosition; + + private uint m_mulMaxScore; + + private bool m_hasRedPoint = false; + + public uint CurMulScore; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildSalaryDocument.AsyncLoader.AddTask("Table/GuildSalaryDesc", XGuildSalaryDocument.m_guildSalaryDesc, false); + XGuildSalaryDocument.AsyncLoader.AddTask("Table/Guildsalary", XGuildSalaryDocument.m_guildSalaryTable, false); + XGuildSalaryDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XGuildSalaryDocument.TabIndexs.Clear(); + XGuildSalaryDocument.TabNames.Clear(); + XGuildSalaryDocument.GuildSalaryDescDic.Clear(); + int i = 0; + int num = XGuildSalaryDocument.m_guildSalaryDesc.Table.Length; + while (i < num) + { + bool flag = !XGuildSalaryDocument.TabIndexs.Contains(XGuildSalaryDocument.m_guildSalaryDesc.Table[i].Type); + if (flag) + { + XGuildSalaryDocument.TabIndexs.Add(XGuildSalaryDocument.m_guildSalaryDesc.Table[i].Type); + XGuildSalaryDocument.TabNames.Add(XSingleton.singleton.StringCombine("GuildSalaryTitle", XGuildSalaryDocument.m_guildSalaryDesc.Table[i].Type.ToString())); + } + List list; + bool flag2 = !XGuildSalaryDocument.GuildSalaryDescDic.TryGetValue(XGuildSalaryDocument.m_guildSalaryDesc.Table[i].Type, out list); + if (flag2) + { + list = new List(); + XGuildSalaryDocument.GuildSalaryDescDic.Add(XGuildSalaryDocument.m_guildSalaryDesc.Table[i].Type, list); + } + list.Add(XGuildSalaryDocument.m_guildSalaryDesc.Table[i]); + i++; + } + } + + public static string GetGrade(int grade) + { + int num = grade - 1; + List stringList = XSingleton.singleton.GetStringList("GuildGrade"); + bool flag = num < stringList.Count && num >= 0; + string result; + if (flag) + { + result = stringList[num]; + } + else + { + result = string.Empty; + } + return result; + } + + public static string GetGradeName(int grade) + { + int num = grade - 1; + List stringList = XSingleton.singleton.GetStringList("GuildGradeName"); + bool flag = num < stringList.Count && num >= 0; + string result; + if (flag) + { + result = stringList[num]; + } + else + { + result = string.Empty; + } + return result; + } + + public XGuildSalaryInfo GetValue(int type) + { + XGuildSalaryInfo result = null; + switch (type) + { + case 0: + result = this.m_roleNum; + break; + case 1: + result = this.m_prestige; + break; + case 2: + result = this.m_activity; + break; + case 3: + result = this.m_exp; + break; + } + return result; + } + + public bool TryGetGuildSalary(uint guildLevel, out GuildSalaryTable.RowData rowData) + { + rowData = XGuildSalaryDocument.m_guildSalaryTable.GetByGuildLevel(guildLevel); + return rowData != null; + } + + public void SendGuildWageReward() + { + bool flag = this.m_rewardState == WageRewardState.notreward; + if (flag) + { + RpcC2M_GetGuildWageReward rpc = new RpcC2M_GetGuildWageReward(); + XSingleton.singleton.Send(rpc); + } + } + + public void ReceiveGuildWageReward(GetGuildWageReward res) + { + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(res.errorcode); + } + else + { + this.HasRedPoint = false; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalSuccess"), "fece00"); + this.m_rewardState = WageRewardState.rewarded; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.Refresh(); + } + } + } + + public void SendAskGuildWageInfo() + { + RpcC2M_AskGuildWageInfo rpc = new RpcC2M_AskGuildWageInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveAskGuildWageInfo(AskGuildWageInfoRes res) + { + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(res.errorcode); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + uint level = specificDocument.BasicData.level; + GuildSalaryTable.RowData byGuildLevel = XGuildSalaryDocument.m_guildSalaryTable.GetByGuildLevel(level); + this.m_topPlayers = res.roles; + this.m_roleNum.Init(res.rolenum, byGuildLevel, 0u); + this.m_prestige.Init(res.prestige, byGuildLevel, 1u); + this.m_exp.Init(res.exp, byGuildLevel, 3u); + this.m_activity.Init(res.activity, byGuildLevel, 2u); + this.m_rewardState = res.rewardstate; + this.m_curScore = (this.m_roleNum.Score + this.m_prestige.Score + this.m_exp.Score + this.m_activity.Score) / 4u; + this.m_curGrade = this.CalculateGrade(byGuildLevel.GuildReview, this.CurScore); + this.m_lastScore = res.lastScore; + this.m_lastGrade = res.wagelvl; + this.m_lastLevel = res.guildlvl; + this.m_lastPosition = (GuildPosition)res.lastposition; + this.HasRedPoint = (res.rewardstate == WageRewardState.notreward); + uint num = this.CalculateGradeMaxScore(byGuildLevel.GuildReview, this.m_lastScore); + this.m_mulMaxScore = ((this.m_lastScore < num) ? (num - this.m_lastScore) : 0u); + num = this.CalculateGradeMaxScore(byGuildLevel.GuildReview, this.m_curScore); + this.CurMulScore = ((this.m_curScore < num) ? (num - this.m_curScore) : 0u); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.Refresh(); + } + } + } + + public uint GetNextGradeScore(uint GuildLevel, int Grade) + { + GuildSalaryTable.RowData byGuildLevel = XGuildSalaryDocument.m_guildSalaryTable.GetByGuildLevel(GuildLevel); + int num = 4 - Grade; + bool flag = num < 0; + uint result; + if (flag) + { + result = byGuildLevel.GuildReview[0]; + } + else + { + bool flag2 = num >= 4; + if (flag2) + { + result = 0u; + } + else + { + result = byGuildLevel.GuildReview[num]; + } + } + return result; + } + + public SeqListRef GetGuildSalayList(uint guildLevel, GuildPosition pos, uint grade) + { + GuildSalaryTable.RowData byGuildLevel = XGuildSalaryDocument.m_guildSalaryTable.GetByGuildLevel(guildLevel); + XSingleton.singleton.AddGreenLog("rowData == null ?", guildLevel.ToString(), pos.ToString(), grade.ToString(), null, null); + bool flag = byGuildLevel == null; + SeqListRef result; + if (flag) + { + result = default(SeqListRef); + } + else + { + bool flag2 = pos == GuildPosition.GPOS_LEADER; + if (flag2) + { + switch (grade) + { + case 1u: + result = byGuildLevel.SSalary1; + break; + case 2u: + result = byGuildLevel.ASalary1; + break; + case 3u: + result = byGuildLevel.BSalary1; + break; + case 4u: + result = byGuildLevel.CSalary1; + break; + case 5u: + result = byGuildLevel.DSalary1; + break; + default: + result = byGuildLevel.DSalary1; + break; + } + } + else + { + bool flag3 = pos == GuildPosition.GPOS_VICELEADER; + if (flag3) + { + switch (grade) + { + case 1u: + result = byGuildLevel.SSalary2; + break; + case 2u: + result = byGuildLevel.ASalary2; + break; + case 3u: + result = byGuildLevel.BSalary2; + break; + case 4u: + result = byGuildLevel.CSalary2; + break; + case 5u: + result = byGuildLevel.DSalary2; + break; + default: + result = byGuildLevel.DSalary2; + break; + } + } + else + { + bool flag4 = pos == GuildPosition.GPOS_OFFICER; + if (flag4) + { + switch (grade) + { + case 1u: + result = byGuildLevel.SSalary3; + break; + case 2u: + result = byGuildLevel.ASalary3; + break; + case 3u: + result = byGuildLevel.BSalary3; + break; + case 4u: + result = byGuildLevel.CSalary3; + break; + case 5u: + result = byGuildLevel.DSalary3; + break; + default: + result = byGuildLevel.DSalary3; + break; + } + } + else + { + bool flag5 = pos == GuildPosition.GPOS_ELITEMEMBER; + if (flag5) + { + switch (grade) + { + case 1u: + result = byGuildLevel.SSalary4; + break; + case 2u: + result = byGuildLevel.ASalary4; + break; + case 3u: + result = byGuildLevel.BSalary4; + break; + case 4u: + result = byGuildLevel.CSalary4; + break; + case 5u: + result = byGuildLevel.DSalary4; + break; + default: + result = byGuildLevel.DSalary4; + break; + } + } + else + { + bool flag6 = pos == GuildPosition.GPOS_MEMBER; + if (flag6) + { + switch (grade) + { + case 1u: + result = byGuildLevel.SSalary5; + break; + case 2u: + result = byGuildLevel.ASalary5; + break; + case 3u: + result = byGuildLevel.BSalary5; + break; + case 4u: + result = byGuildLevel.CSalary5; + break; + case 5u: + result = byGuildLevel.DSalary5; + break; + default: + result = byGuildLevel.DSalary5; + break; + } + } + else + { + result = default(SeqListRef); + } + } + } + } + } + } + return result; + } + + private uint CalculateGrade(uint[] scores, uint cur) + { + uint num = 1u; + bool flag = scores != null; + if (flag) + { + for (int i = scores.Length - 1; i >= 0; i--) + { + bool flag2 = cur < scores[i]; + if (!flag2) + { + break; + } + num += 1u; + } + } + return num; + } + + private uint CalculateGradeMaxScore(uint[] scores, uint cur) + { + bool flag = scores != null && scores.Length != 0; + uint result; + if (flag) + { + uint num = scores[scores.Length - 1]; + for (int i = scores.Length - 1; i >= 0; i--) + { + bool flag2 = cur < scores[i]; + if (!flag2) + { + break; + } + num = scores[i]; + } + result = num; + } + else + { + result = 0u; + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendAskGuildWageInfo(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryDocument.cs.meta new file mode 100644 index 00000000..7fe76548 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 399a40cac6cff4e46add5a226ccc6e43 +timeCreated: 1611403592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryInfo.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryInfo.cs new file mode 100644 index 00000000..e8ed5ef7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryInfo.cs @@ -0,0 +1,118 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XGuildSalaryInfo + { + public uint Score + { + get + { + return this.m_score; + } + } + + public uint TotalScore + { + get + { + return this.m_totalScore; + } + } + + public uint Grade + { + get + { + return this.m_grade; + } + } + + public uint Value + { + get + { + return this.m_value; + } + } + + public float Percent + { + get + { + return this.m_Percent; + } + } + + private uint m_score = 0u; + + private uint m_totalScore = 0u; + + private uint m_grade = 0u; + + private uint m_value; + + private float m_Percent = 0f; + + public void Init(uint value, GuildSalaryTable.RowData rowData, uint index) + { + this.m_value = value; + bool flag = rowData == null; + if (!flag) + { + switch (index) + { + case 0u: + this.CalculateScore(ref rowData.NumberTransformation, value); + break; + case 1u: + this.CalculateScore(ref rowData.PrestigeTransformation, value); + break; + case 2u: + this.CalculateScore(ref rowData.ActiveTransformation, value); + break; + case 3u: + this.CalculateScore(ref rowData.EXPTransformation, value); + break; + } + this.CalculateGrade(rowData.GuildReview, this.m_score); + } + } + + private void CalculateScore(ref SeqListRef transformation, uint value) + { + uint num = transformation[0, 0]; + uint num2 = transformation[0, 1]; + uint num3 = transformation[1, 0]; + uint num4 = transformation[1, 1]; + this.m_totalScore = num2; + bool flag = value > num2; + if (flag) + { + value = num2; + } + this.m_Percent = value / num2; + float num5 = this.m_Percent * num4; + this.m_score = (uint)Math.Floor((double)num5); + } + + private void CalculateGrade(uint[] scores, uint cur) + { + this.m_grade = 1u; + bool flag = scores != null; + if (flag) + { + for (int i = scores.Length - 1; i >= 0; i--) + { + bool flag2 = cur < scores[i]; + if (!flag2) + { + break; + } + this.m_grade += 1u; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryInfo.cs.meta new file mode 100644 index 00000000..1ae2e12d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSalaryInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0987453f80604344797f8326802e6125 +timeCreated: 1611403157 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInDocument.cs new file mode 100644 index 00000000..506d73b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInDocument.cs @@ -0,0 +1,333 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSignInDocument : XDocComponent, ILogSource + { + public override uint ID + { + get + { + return XGuildSignInDocument.uuID; + } + } + + public XGuildSignInView GuildSignInView { get; set; } + + public uint TotalCount { get; set; } + + public uint CurrentCount { get; set; } + + public uint SignInSelection + { + get + { + return this._SignInSelection; + } + set + { + this._SignInSelection = value; + this._CheckCanSignIn(); + } + } + + public uint Progress + { + get + { + return this._Progress; + } + } + + public int CanSignInSelection + { + get + { + return this._CanSignInSelection; + } + } + + public bool bHasAvailableChest + { + get + { + return this._bHasAvailableChest; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildSignInDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GuildCheckinTable m_SignInTable = new GuildCheckinTable(); + + private static GuildCheckinBoxTable m_BoxTable = new GuildCheckinBoxTable(); + + private List m_LogList = new List(); + + private uint _SignInSelection; + + private uint _Progress; + + private int _CanSignInSelection; + + private bool _bHasAvailableChest; + + private uint _BoxState; + + public List GetLogList() + { + return this.m_LogList; + } + + public void SetChestStateAndProgress(uint progress, uint chest) + { + this._BoxState = chest; + this._Progress = progress; + bool flag = this.CheckAvailableChest(); + if (flag) + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_SignIn, true); + } + bool flag2 = this.GuildSignInView != null && this.GuildSignInView.IsVisible(); + if (flag2) + { + this.GuildSignInView.RefreshProgress(); + } + } + + public int _CheckCanSignIn() + { + this._CanSignInSelection = 0; + bool flag = this.SignInSelection == 0u; + if (flag) + { + for (int i = XGuildSignInDocument.m_SignInTable.Table.Length - 1; i >= 0; i--) + { + GuildCheckinTable.RowData rowData = XGuildSignInDocument.m_SignInTable.Table[i]; + ulong virtualItemCount = XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount((ItemEnum)rowData.consume[0]); + bool flag2 = virtualItemCount >= (ulong)rowData.consume[1]; + if (flag2) + { + this._CanSignInSelection = i + 1; + break; + } + } + } + return this._CanSignInSelection; + } + + private bool CheckAvailableChest() + { + this._bHasAvailableChest = false; + for (int i = 0; i < XGuildSignInDocument.m_BoxTable.Table.Length; i++) + { + bool flag = XGuildSignInDocument.m_BoxTable.Table[i].process <= this._Progress && !this.IsBoxOpen(i); + if (flag) + { + this._bHasAvailableChest = true; + break; + } + } + return this._bHasAvailableChest; + } + + public bool IsBoxOpen(int index) + { + return ((ulong)this._BoxState & (ulong)(1L << (index & 31))) > 0UL; + } + + public void SetBoxOpen(int index) + { + this._BoxState |= 1u << index; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildSignInDocument.AsyncLoader.AddTask("Table/GuildCheckin", XGuildSignInDocument.m_SignInTable, false); + XGuildSignInDocument.AsyncLoader.AddTask("Table/GuildCheckinBox", XGuildSignInDocument.m_BoxTable, false); + XGuildSignInDocument.AsyncLoader.Execute(callback); + } + + public static GuildCheckinTable.RowData[] GetSignInTableData() + { + return XGuildSignInDocument.m_SignInTable.Table; + } + + public static GuildCheckinBoxTable.RowData[] GetBoxTableData() + { + return XGuildSignInDocument.m_BoxTable.Table; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._Progress = 0u; + this._BoxState = 0u; + this._bHasAvailableChest = false; + this.SignInSelection = 100u; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnInGuildStateChanged)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + } + + protected bool OnVirtualItemChanged(XEventArgs args) + { + bool flag = this.SignInSelection > 0u; + bool result; + if (flag) + { + result = true; + } + else + { + this._CheckCanSignIn(); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_SignIn, true); + result = true; + } + return result; + } + + protected bool OnInGuildStateChanged(XEventArgs args) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = args as XInGuildStateChangedEventArgs; + bool flag = !xinGuildStateChangedEventArgs.bIsEnter; + if (flag) + { + this.SignInSelection = 100u; + this._bHasAvailableChest = false; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_SignIn, true); + } + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.GuildSignInView != null && this.GuildSignInView.IsVisible(); + if (flag) + { + this.ReqAllInfo(); + } + } + + public void ReqAllInfo() + { + RpcC2M_QueryGuildCheckinNew rpc = new RpcC2M_QueryGuildCheckinNew(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetAllInfo(QueryGuildCheckinRes oRes) + { + this.SignInSelection = oRes.checkin; + this.CurrentCount = oRes.checkincount; + this.TotalCount = oRes.allcount; + this._BoxState = oRes.boxmask; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_SignIn, true); + bool flag = this.GuildSignInView != null && this.GuildSignInView.IsVisible(); + if (flag) + { + this.GuildSignInView.Refresh(); + } + } + + public void ReqFetchBox(uint index) + { + RpcC2G_GetGuildCheckinBox rpcC2G_GetGuildCheckinBox = new RpcC2G_GetGuildCheckinBox(); + rpcC2G_GetGuildCheckinBox.oArg.index = index; + XSingleton.singleton.Send(rpcC2G_GetGuildCheckinBox); + } + + public void OnFetchBox(GetGuildCheckinBoxArg oArg, GetGuildCheckinBoxRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + this.SetBoxOpen((int)oArg.index); + bool flag2 = this.GuildSignInView != null && this.GuildSignInView.IsVisible(); + if (flag2) + { + this.GuildSignInView.OpenBox((int)oArg.index); + } + bool flag3 = !this.CheckAvailableChest(); + if (flag3) + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_SignIn, true); + } + } + } + + public void ReqSignIn(uint index) + { + RpcC2M_GuildCheckinNew rpcC2M_GuildCheckinNew = new RpcC2M_GuildCheckinNew(); + rpcC2M_GuildCheckinNew.oArg.type = index; + XSingleton.singleton.Send(rpcC2M_GuildCheckinNew); + } + + public void OnSignIn(GuildCheckinArg oArg, GuildCheckinRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_SIGNIN_SUCCESS"), "fece00"); + this.SignInSelection = oArg.type; + uint currentCount = this.CurrentCount + 1u; + this.CurrentCount = currentCount; + bool flag2 = this.GuildSignInView != null && this.GuildSignInView.IsVisible(); + if (flag2) + { + this.GuildSignInView.Refresh(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_SignIn, true); + } + } + + public void ReqLogList() + { + RpcC2M_GetGuildCheckinRecordsNew rpc = new RpcC2M_GetGuildCheckinRecordsNew(); + XSingleton.singleton.Send(rpc); + } + + public void onGetLogList(GetGuildCheckinRecordsRes oRes) + { + int num = oRes.name.Count - this.m_LogList.Count; + for (int i = 0; i < num; i++) + { + this.m_LogList.Add(new XGuildSignInLog()); + } + bool flag = num < 0; + if (flag) + { + this.m_LogList.RemoveRange(this.m_LogList.Count + num, -num); + } + for (int j = 0; j < this.m_LogList.Count; j++) + { + XGuildSignInLog xguildSignInLog = this.m_LogList[this.m_LogList.Count - j - 1] as XGuildSignInLog; + xguildSignInLog.name = oRes.name[j]; + xguildSignInLog.uid = oRes.roleid[j]; + xguildSignInLog.type = oRes.type[j]; + xguildSignInLog.time = (int)oRes.timestamp[j]; + } + bool flag2 = this.GuildSignInView != null && this.GuildSignInView.IsVisible(); + if (flag2) + { + this.GuildSignInView.LogView.Refresh(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInDocument.cs.meta new file mode 100644 index 00000000..fd6014ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46f13386805a8654f83c03fdb413124a +timeCreated: 1611403651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInLog.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInLog.cs new file mode 100644 index 00000000..aa83e26e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInLog.cs @@ -0,0 +1,47 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSignInLog : ILogData, IComparable + { + public ulong uid; + + public string name; + + public uint type; + + public int time; + + public string GetContent() + { + return XStringDefineProxy.GetString("GUILD_SIGNIN_CONTENT", new object[] + { + XLabelSymbolHelper.FormatName(this.name, this.uid, "00ffff"), + XStringDefineProxy.GetString("GUILD_SIGNIN_TYPE" + this.type.ToString()) + }); + } + + public string GetTime() + { + return XSingleton.singleton.TimeAgoFormatString(this.time); + } + + public int CompareTo(ILogData otherLog) + { + XGuildSignInLog xguildSignInLog = otherLog as XGuildSignInLog; + bool flag = xguildSignInLog.time == this.time; + int result; + if (flag) + { + result = this.uid.CompareTo(xguildSignInLog.uid); + } + else + { + result = this.time.CompareTo(xguildSignInLog.time); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInLog.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInLog.cs.meta new file mode 100644 index 00000000..d21cc223 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignInLog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e565c4943d47610499c4b31b11f2dbb8 +timeCreated: 1611404742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSignNode.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignNode.cs new file mode 100644 index 00000000..cb0a8806 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignNode.cs @@ -0,0 +1,105 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class XGuildSignNode + { + public BonusState bonusState + { + get + { + return this.m_bonusState; + } + } + + private Transform m_ProgressGo; + + private Transform m_CircleGo; + + private IXUISlider m_slider; + + private IXUISprite m_Filled; + + private IXUISprite m_Packeton; + + private IXUISprite m_Finish; + + private IXUILabel m_SignNumber; + + public IXUISprite m_pressCircle; + + public IXUISprite m_redSprite; + + private BonusState m_bonusState; + + public XGuildSignNode(int key, Transform pGo, Transform cGo) + { + this.m_ProgressGo = pGo; + this.m_CircleGo = cGo; + this.m_pressCircle = (this.m_CircleGo.GetComponent("XUISprite") as IXUISprite); + this.m_pressCircle.ID = (ulong)((long)key); + this.m_slider = (this.m_ProgressGo.GetComponent("XUISlider") as IXUISlider); + this.m_Filled = (this.m_CircleGo.Find("filled").GetComponent("XUISprite") as IXUISprite); + this.m_Packeton = (this.m_CircleGo.Find("Packeton").GetComponent("XUISprite") as IXUISprite); + this.m_Finish = (this.m_CircleGo.Find("Sprite").GetComponent("XUISprite") as IXUISprite); + this.m_SignNumber = (this.m_CircleGo.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_redSprite = (this.m_CircleGo.Find("RedPoint").GetComponent("XUISprite") as IXUISprite); + this.Reset(); + } + + public void SetSignNumber(uint number) + { + this.m_SignNumber.SetText(number.ToString()); + } + + public void SetBonusProgress(float p) + { + float value = (p > 0f) ? (p * 0.9f + 0.1f) : 0f; + this.m_slider.Value = value; + } + + public void SetBonusStatu(BonusState _bonusState) + { + this.Reset(); + this.m_bonusState = _bonusState; + switch (_bonusState) + { + case BonusState.Bonus_Active: + this.m_Filled.SetVisible(true); + this.m_Finish.SetVisible(false); + this.m_Packeton.SetVisible(true); + this.m_redSprite.SetVisible(false); + break; + case BonusState.Bonus_UnActive: + this.m_Filled.SetVisible(false); + this.m_Packeton.SetVisible(false); + this.m_Finish.SetVisible(false); + this.m_redSprite.SetVisible(false); + break; + case BonusState.Bonus_Actived: + this.m_Filled.SetVisible(true); + this.m_Packeton.SetVisible(true); + this.m_Finish.SetVisible(false); + this.m_redSprite.SetVisible(true); + break; + case BonusState.Bouns_Over: + this.m_Filled.SetVisible(true); + this.m_Finish.SetVisible(true); + this.m_Packeton.SetVisible(true); + this.m_redSprite.SetVisible(false); + break; + } + } + + public void Reset() + { + this.m_slider.Value = 0f; + this.m_Filled.SetVisible(false); + this.m_Packeton.SetVisible(false); + this.m_Finish.SetVisible(false); + this.m_redSprite.SetVisible(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSignNode.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignNode.cs.meta new file mode 100644 index 00000000..c51a8052 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a8b96bf3e2feb0438bbcc26ff8e60cb +timeCreated: 1611403989 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSignRedPackageBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignRedPackageBehaviour.cs new file mode 100644 index 00000000..ce717a97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignRedPackageBehaviour.cs @@ -0,0 +1,81 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildSignRedPackageBehaviour : DlgBehaviourBase + { + public IXUILabel m_OnlineValue; + + public IXUILabel m_BufferValue; + + public IXUILabel m_SignValue; + + public IXUILabel m_CurSignValue; + + public IXUILabel m_AakLabel; + + public IXUILabel m_signLabel; + + public IXUILabel m_redNumber; + + public IXUILabel m_instructionTitle; + + public IXUIScrollView m_scrollView; + + public IXUILabel m_scrollContent; + + public IXUIButton m_Close; + + public IXUIButton m_History; + + public IXUIButton m_sign; + + public IXUIButton m_Ask; + + public IXUIButton m_Send; + + public IXUIButton m_Fiexd; + + public Transform m_redPoint; + + public Transform m_fixedRedPoint; + + public XGuildSignNode[] m_SignNodes = new XGuildSignNode[4]; + + public IXUISprite[] m_redPakages = new IXUISprite[4]; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_History = (base.transform.Find("Bg/History").GetComponent("XUIButton") as IXUIButton); + this.m_sign = (base.transform.Find("Bg/Bg/Dontbelazy").GetComponent("XUIButton") as IXUIButton); + this.m_Ask = (base.transform.Find("Bg/RedPacketFrame/p/Status/Ask").GetComponent("XUIButton") as IXUIButton); + this.m_Send = (base.transform.Find("Bg/RedPacketFrame/p/Status/Send").GetComponent("XUIButton") as IXUIButton); + this.m_Fiexd = (base.transform.Find("Bg/Fiexd").GetComponent("XUIButton") as IXUIButton); + this.m_fixedRedPoint = base.transform.Find("Bg/Fiexd/RedPoint"); + this.m_AakLabel = (base.transform.Find("Bg/RedPacketFrame/p/Status/Ask/Require").GetComponent("XUILabel") as IXUILabel); + this.m_signLabel = (base.transform.Find("Bg/Bg/Dontbelazy/Gogogo").GetComponent("XUILabel") as IXUILabel); + this.m_OnlineValue = (base.transform.Find("Bg/RedPacketFrame/p/Status/OnlineValue").GetComponent("XUILabel") as IXUILabel); + this.m_BufferValue = (base.transform.Find("Bg/RedPacketFrame/p/Status/Buff/Value").GetComponent("XUILabel") as IXUILabel); + this.m_SignValue = (base.transform.Find("Bg/Sign/Label").GetComponent("XUILabel") as IXUILabel); + this.m_CurSignValue = (base.transform.Find("Bg/ProgressBar/Thumb/CurrentNum/T").GetComponent("XUILabel") as IXUILabel); + this.m_redNumber = (base.transform.Find("Bg/RedPacketFrame/p/Status/Number/Label").GetComponent("XUILabel") as IXUILabel); + this.m_instructionTitle = (base.transform.Find("Bg/RedPacketFrame/p/Instruction/Title").GetComponent("XUILabel") as IXUILabel); + this.m_scrollView = (base.transform.Find("Bg/RedPacketFrame/p/Instruction/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_scrollContent = (base.transform.Find("Bg/RedPacketFrame/p/Instruction/ScrollView/Content").GetComponent("XUILabel") as IXUILabel); + this.m_redPoint = base.transform.Find("Bg/History/RedPoint"); + for (int i = 0; i < 4; i++) + { + int num = i + 1; + string text = string.Format("Bg/ProgressBar/BarBack/bar/progress{0}", num); + string text2 = string.Format("Bg/ProgressBar/BarBack/circle/circle{0}", num); + string text3 = string.Format("Bg/RedPacketFrame/p/Status/Panel/red{0}", num); + this.m_SignNodes[i] = new XGuildSignNode(i, base.transform.Find(text), base.transform.Find(text2)); + this.m_redPakages[i] = (base.transform.Find(text3).GetComponent("XUISprite") as IXUISprite); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSignRedPackageBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignRedPackageBehaviour.cs.meta new file mode 100644 index 00000000..26c74894 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSignRedPackageBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb16845c0572a3646a92abbd860a0dc4 +timeCreated: 1611404782 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs new file mode 100644 index 00000000..f5dc95b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs @@ -0,0 +1,73 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSkillBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabel m_GuildPoint; + + public IXUISprite m_DetailSkillIcon; + + public IXUILabel m_DetailSkillName; + + public IXUILabel m_DetailCurrLevel; + + public IXUILabel m_DetailNextLevel; + + public IXUILabel m_DetailCurrAttr; + + public IXUILabel m_DetailNextAttr; + + public IXUILabel m_DetailMaxLevelLabel; + + public IXUILabel m_DetailMaxLevel; + + public IXUIButton m_DetailUpMaxLevel; + + public IXUILabel m_DetailTip; + + public IXUILabelSymbol m_DetailCost; + + public IXUILabelSymbol m_DetailCostRed; + + public IXUIButton m_LevelUp; + + public IXUILabel m_LevelUpLabel; + + public Transform m_RedPoint; + + public XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_SkillScroll; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_GuildPoint = (base.transform.Find("Bg/Point/value").GetComponent("XUILabel") as IXUILabel); + this.m_DetailSkillIcon = (base.transform.Find("Bg/Detail/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_DetailSkillName = (base.transform.Find("Bg/Detail/Name").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCurrLevel = (base.transform.Find("Bg/Detail/CurrentLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailNextLevel = (base.transform.Find("Bg/Detail/CurrentLevel/NextLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCurrAttr = (base.transform.Find("Bg/Detail/CurrentAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailNextAttr = (base.transform.Find("Bg/Detail/CurrentAttr/NextAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailMaxLevel = (base.transform.Find("Bg/Detail/MaxLevel/NextAttr").GetComponent("XUILabel") as IXUILabel); + this.m_DetailMaxLevelLabel = (base.transform.Find("Bg/Detail/MaxLevel").GetComponent("XUILabel") as IXUILabel); + this.m_DetailUpMaxLevel = (base.transform.Find("Bg/Detail/MaxLevel/Study").GetComponent("XUIButton") as IXUIButton); + this.m_RedPoint = base.transform.Find("Bg/Detail/MaxLevel/Study/RedPoint"); + this.m_DetailTip = (base.transform.Find("Bg/Detail/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_DetailCost = (base.transform.Find("Bg/Detail/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_DetailCostRed = (base.transform.Find("Bg/Detail/CostRed").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_LevelUp = (base.transform.Find("Bg/Detail/Levelup").GetComponent("XUIButton") as IXUIButton); + this.m_LevelUpLabel = (base.transform.Find("Bg/Detail/Levelup/Text").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/SkillList/SkillTpl"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_SkillScroll = (base.transform.Find("Bg/SkillList").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs.meta new file mode 100644 index 00000000..9dacbd83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81d66cf59950e7240982b74906c9be2a +timeCreated: 1611404038 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillDocument.cs new file mode 100644 index 00000000..73a36893 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillDocument.cs @@ -0,0 +1,512 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSkillDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildSkillDocument.uuID; + } + } + + public XPlayerAttributes Player { get; set; } + + public XBagDocument BagDoc { get; set; } + + public XGuildDocument GuildDoc { get; set; } + + public uint CurrentSkillID { get; set; } + + public int LastGuildExp { get; set; } + + public bool RedPoint + { + get + { + return this.m_RedPoint; + } + set + { + this.m_RedPoint = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildSkillDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static GuildSkillTable m_guidlSkillTable = new GuildSkillTable(); + + public static Dictionary> GuildSkllDic = new Dictionary>(); + + private static Dictionary m_guildSkillMaxLevels = new Dictionary(); + + private static Dictionary m_guildSkillInitLevels = new Dictionary(); + + public static List GuildSkillIDs = new List(); + + private Dictionary m_guildSkillDataDic = new Dictionary(); + + private Dictionary m_curGuildSkillLevel = new Dictionary(); + + private static Dictionary _labSkillMaxLevel = new Dictionary(); + + private bool m_RedPoint = true; + + private bool m_SendPoint = false; + + public XGuildSkillView SKillView = null; + + public XGuildGrowthLabView LabView = null; + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.GuildPointChanged)); + base.RegisterEvent(XEventDefine.XEvent_GuildInfoChange, new XComponent.XEventHandler(this.GuildStatusChanged)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnPlayerLeaveGuild)); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildSkillDocument.AsyncLoader.AddTask("Table/GuildSkill", XGuildSkillDocument.m_guidlSkillTable, false); + XGuildSkillDocument.AsyncLoader.Execute(callback); + XGuildSkillDocument.m_guildSkillMaxLevels.Clear(); + XGuildSkillDocument.m_guildSkillInitLevels.Clear(); + XGuildSkillDocument.GuildSkllDic.Clear(); + } + + public static void OnTableLoaded() + { + XGuildSkillDocument.GuildSkllDic.Clear(); + XGuildSkillDocument._labSkillMaxLevel.Clear(); + int i = 0; + int num = XGuildSkillDocument.m_guidlSkillTable.Table.Length; + while (i < num) + { + GuildSkillTable.RowData rowData = XGuildSkillDocument.m_guidlSkillTable.Table[i]; + bool flag = rowData.needtype == 2u; + if (flag) + { + uint num2 = 0u; + bool flag2 = XGuildSkillDocument._labSkillMaxLevel.TryGetValue(rowData.skillid, out num2); + if (flag2) + { + bool flag3 = num2 < rowData.level; + if (flag3) + { + XGuildSkillDocument._labSkillMaxLevel[rowData.skillid] = rowData.level; + } + } + else + { + XGuildSkillDocument._labSkillMaxLevel.Add(rowData.skillid, rowData.level); + } + } + Dictionary dictionary; + bool flag4 = !XGuildSkillDocument.GuildSkllDic.TryGetValue(rowData.skillid, out dictionary); + if (flag4) + { + XGuildSkillDocument.GuildSkillIDs.Add(rowData.skillid); + dictionary = new Dictionary(); + XGuildSkillDocument.GuildSkllDic.Add(rowData.skillid, dictionary); + } + bool flag5 = !dictionary.ContainsKey(rowData.level); + if (flag5) + { + dictionary.Add(rowData.level, rowData); + bool flag6 = XGuildSkillDocument.m_guildSkillMaxLevels.ContainsKey(rowData.skillid); + if (flag6) + { + XGuildSkillDocument.m_guildSkillMaxLevels[rowData.skillid] = Math.Max(rowData.level, XGuildSkillDocument.m_guildSkillMaxLevels[rowData.skillid]); + } + else + { + XGuildSkillDocument.m_guildSkillMaxLevels.Add(rowData.skillid, rowData.level); + } + bool flag7 = rowData.glevel > 0u; + if (!flag7) + { + bool flag8 = XGuildSkillDocument.m_guildSkillInitLevels.ContainsKey(rowData.skillid); + if (flag8) + { + XGuildSkillDocument.m_guildSkillInitLevels[rowData.skillid] = Math.Max(rowData.level, XGuildSkillDocument.m_guildSkillInitLevels[rowData.skillid]); + } + else + { + XGuildSkillDocument.m_guildSkillInitLevels.Add(rowData.skillid, rowData.level); + } + } + } + else + { + XSingleton.singleton.AddErrorLog(string.Format("the skill[{0}] has same level[{1}] in GuildSKill.txt", rowData.skillid, rowData.level), null, null, null, null, null); + } + i++; + } + } + + public uint GetGuildSkillInitLevel(uint skillID) + { + uint num = 0u; + bool flag = XGuildSkillDocument.m_guildSkillInitLevels.TryGetValue(skillID, out num); + uint result; + if (flag) + { + result = num; + } + else + { + result = 0u; + } + return result; + } + + public uint GetGuildSkillMaxLevel(uint skillID) + { + uint num = 0u; + bool flag = XGuildSkillDocument.m_guildSkillMaxLevels.TryGetValue(skillID, out num); + uint result; + if (flag) + { + result = num; + } + else + { + result = 0u; + } + return result; + } + + public bool TryGetGuildSkillMaxLevel(uint skillID, out uint maxLevel) + { + return XGuildSkillDocument.m_guildSkillMaxLevels.TryGetValue(skillID, out maxLevel); + } + + public GuildSkillTable.RowData GetGuildSkill(uint skillID, uint level) + { + GuildSkillTable.RowData rowData; + bool flag = this.TryGetGuildSkill(skillID, level, out rowData); + GuildSkillTable.RowData result; + if (flag) + { + result = rowData; + } + else + { + result = null; + } + return result; + } + + public bool TryGetGuildSkill(uint skillID, uint level, out GuildSkillTable.RowData skillData) + { + skillData = null; + Dictionary dictionary; + bool flag = XGuildSkillDocument.GuildSkllDic.TryGetValue(skillID, out dictionary) && dictionary.TryGetValue(level, out skillData); + bool result = false;//! + if (flag) + { + result = true; + } + else + { + skillData = null; + result = false; + } + return result; + } + + public uint GetCurGuildSkillLevel(uint skillID) + { + uint result = 0u; + this.m_curGuildSkillLevel.TryGetValue(skillID, out result); + return result; + } + + public void SendLearnGuildSkill() + { + RpcC2G_LearnGuildSkill rpcC2G_LearnGuildSkill = new RpcC2G_LearnGuildSkill(); + rpcC2G_LearnGuildSkill.oArg.skillId = this.CurrentSkillID; + XSingleton.singleton.Send(rpcC2G_LearnGuildSkill); + this.m_SendPoint = true; + } + + public void ReceiveLearnGuildSKill(LearnGuildSkillAgr oArg, LearnGuildSkillRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + else + { + bool sendPoint = this.m_SendPoint; + if (sendPoint) + { + this.m_SendPoint = false; + this.SetRedPointValid(); + } + bool flag2 = this.m_curGuildSkillLevel.ContainsKey(oArg.skillId); + if (flag2) + { + uint value = this.m_curGuildSkillLevel[oArg.skillId] + 1u; + this.m_curGuildSkillLevel[oArg.skillId] = value; + } + else + { + this.m_curGuildSkillLevel.Add(oArg.skillId, 1u); + } + this.Refresh(); + } + } + + public void GetSkillList() + { + RpcC2M_AskGuildSkillInfoNew rpc = new RpcC2M_AskGuildSkillInfoNew(); + XSingleton.singleton.Send(rpc); + } + + public void OnSkillList(AskGuildSkillInfoReq org) + { + bool flag = org.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(org.errorcode, "fece00"); + } + else + { + this.LastGuildExp = org.LastGuildExp; + this.m_guildSkillDataDic.Clear(); + int i = 0; + int count = org.SkillLel.Count; + while (i < count) + { + this.m_guildSkillDataDic[(uint)org.SkillLel[i].SkillId] = (uint)org.SkillLel[i].MaxLvl; + i++; + } + this.m_curGuildSkillLevel.Clear(); + i = 0; + count = org.roleSkills.Count; + while (i < count) + { + this.m_curGuildSkillLevel[(uint)org.roleSkills[i].SkillId] = (uint)org.roleSkills[i].MaxLvl; + i++; + } + this.Refresh(); + } + } + + public void OnUpdateGuildSkillData(GuildSkillAllData org) + { + this.LastGuildExp = org.lastGuildExp; + int i = 0; + int count = org.skillLevel.Count; + while (i < count) + { + this.m_guildSkillDataDic[(uint)org.skillLevel[i].SkillId] = (uint)org.skillLevel[i].MaxLvl; + i++; + } + this.Refresh(); + } + + public void GetStudyGuildSkill(uint skillID) + { + RpcC2M_StudyGuildSkillNew rpcC2M_StudyGuildSkillNew = new RpcC2M_StudyGuildSkillNew(); + rpcC2M_StudyGuildSkillNew.oArg.skillId = skillID; + XSingleton.singleton.Send(rpcC2M_StudyGuildSkillNew); + } + + public void OnStudyGuildSkill(StudyGuildSkillRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + this.m_guildSkillDataDic[oRes.skillId] = oRes.skillLel; + this.LastGuildExp = (int)oRes.lastExp; + bool flag2 = DlgBase.singleton.IsVisible() && DlgBase.singleton._StudyHandle.active; + if (flag2) + { + DlgBase.singleton._StudyHandle.ShowEffectDetailInfo(); + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshList(true); + } + } + } + + public uint GetSkillMaxLevel(uint skillID) + { + uint result = 0u; + this.m_guildSkillDataDic.TryGetValue(skillID, out result); + return result; + } + + public uint GetLabSkillMaxLevel(uint skillID) + { + uint result = 0u; + XGuildSkillDocument._labSkillMaxLevel.TryGetValue(skillID, out result); + return result; + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + } + } + + public bool GuildPointChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + ItemEnum itemID = (ItemEnum)xvirtualItemChangedEventArgs.itemID; + bool flag = itemID != ItemEnum.GUILD_CONTRIBUTE; + bool result; + if (flag) + { + result = true; + } + else + { + this.RefreshRedPoint(); + result = true; + } + return result; + } + + public bool GuildStatusChanged(XEventArgs args) + { + this.RefreshRedPoint(); + return true; + } + + public void Refresh() + { + this.RefreshRedPoint(); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetupSkillList(false, false); + } + } + + public void RefreshRedPoint() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.m_RedPoint = false; + bool flag = !specificDocument.bInGuild; + if (flag) + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_Skill, true); + } + else + { + int num = (int)XDocuments.GetSpecificDocument(XBagDocument.uuID).VirtualItems[22]; + for (int i = 0; i < XGuildSkillDocument.GuildSkillIDs.Count; i++) + { + uint curGuildSkillLevel = this.GetCurGuildSkillLevel(XGuildSkillDocument.GuildSkillIDs[i]); + GuildSkillTable.RowData rowData; + bool flag2 = this.TryGetGuildSkill(XGuildSkillDocument.GuildSkillIDs[i], curGuildSkillLevel, out rowData); + if (flag2) + { + uint skillMaxLevel = this.GetSkillMaxLevel(XGuildSkillDocument.GuildSkillIDs[i]); + bool flag3 = this.GetRedPointValid() && curGuildSkillLevel < skillMaxLevel && (ulong)rowData.need[0, 1] <= (ulong)((long)num) && rowData.roleLevel <= XSingleton.singleton.XPlayerData.Level && rowData.glevel <= specificDocument.Level; + if (flag3) + { + this.m_RedPoint = true; + break; + } + bool flag4 = specificDocument.IHavePermission(GuildPermission.GPEM_STUDY_SKILL) && this.CanMaxLevelUp(XGuildSkillDocument.GuildSkillIDs[i], skillMaxLevel); + if (flag4) + { + this.m_RedPoint = true; + break; + } + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildHall_Skill, true); + } + } + + public bool GetRedPointValid() + { + return XDocuments.GetSpecificDocument(XOptionsDocument.uuID).GetValue(XOptionsDefine.OD_GUILD_SKILL_LOCK) == 1; + } + + public void SetRedPointValid() + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = specificDocument.GetValue(XOptionsDefine.OD_GUILD_SKILL_LOCK) == 1; + if (flag) + { + specificDocument.SetValue(XOptionsDefine.OD_GUILD_SKILL_LOCK, 0, false); + } + } + + public bool CanMaxLevelUp(uint skillId, uint skillLevel) + { + uint num; + bool flag = !this.TryGetGuildSkillMaxLevel(skillId, out num) || num <= skillLevel; + bool result; + if (flag) + { + result = false; + } + else + { + GuildSkillTable.RowData rowData; + bool flag2 = !this.TryGetGuildSkill(skillId, num, out rowData); + if (flag2) + { + result = false; + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + uint num2 = XGuildDocument.GuildConfig.GetTotalStudyCount((int)rowData.glevel, (int)specificDocument.Level) + this.GetGuildSkillInitLevel(skillId); + result = (num2 > num && (ulong)rowData.rexp <= (ulong)((long)this.LastGuildExp)); + } + } + return result; + } + + private bool OnPlayerLevelChange(XEventArgs args) + { + this.RefreshRedPoint(); + return true; + } + + private bool OnPlayerLeaveGuild(XEventArgs args) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = args as XInGuildStateChangedEventArgs; + bool bIsEnter = xinGuildStateChangedEventArgs.bIsEnter; + if (bIsEnter) + { + RpcC2M_AskGuildSkillInfoNew rpc = new RpcC2M_AskGuildSkillInfoNew(); + XSingleton.singleton.Send(rpc); + } + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillDocument.cs.meta new file mode 100644 index 00000000..2304405b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0eef0e5848e99249997a4185b1c49dd +timeCreated: 1611404354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillStudyHandle.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillStudyHandle.cs new file mode 100644 index 00000000..44245719 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillStudyHandle.cs @@ -0,0 +1,179 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSkillStudyHandle : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Guild/GuildGrowth/GuildBuffLevelupPanel"; + } + } + + private IXUISprite m_SkillIcon; + + private IXUILabel m_SkillName; + + private IXUILabel m_CurrentSkillLevel; + + private IXUILabel m_NextSkillLevel; + + private IXUILabel m_CurrentSkillAttr; + + private IXUILabel m_NextSkillAttr; + + private IXUILabel m_MaxSlillLevel; + + private IXUILabel m_UseGuildExp; + + private IXUILabel m_CurrentGuildExp; + + private IXUIButton m_StudyButton; + + private IXUISprite m_maskSprite; + + private IXUISlider m_costProgress; + + private XGuildSkillDocument _Doc = null; + + private bool m_onSend = false; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildSkillDocument.uuID); + this.m_SkillIcon = (base.PanelObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_SkillName = (base.PanelObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_CurrentSkillLevel = (base.PanelObject.transform.Find("CurrentLevel").GetComponent("XUILabel") as IXUILabel); + this.m_NextSkillLevel = (base.PanelObject.transform.Find("CurrentLevel/NextLevel").GetComponent("XUILabel") as IXUILabel); + this.m_MaxSlillLevel = (base.PanelObject.transform.Find("MaxLevel").GetComponent("XUILabel") as IXUILabel); + this.m_CurrentSkillAttr = (base.PanelObject.transform.Find("CurrentAttr").GetComponent("XUILabel") as IXUILabel); + this.m_NextSkillAttr = (base.PanelObject.transform.Find("CurrentAttr/NextAttr").GetComponent("XUILabel") as IXUILabel); + this.m_UseGuildExp = (base.PanelObject.transform.Find("UseExp").GetComponent("XUILabel") as IXUILabel); + this.m_CurrentGuildExp = (base.PanelObject.transform.Find("CostRed").GetComponent("XUILabel") as IXUILabel); + this.m_StudyButton = (base.PanelObject.transform.Find("Study").GetComponent("XUIButton") as IXUIButton); + this.m_maskSprite = (base.PanelObject.transform.Find("Mask").GetComponent("XUISprite") as IXUISprite); + this.m_costProgress = (base.PanelObject.transform.Find("CostRed/CostProgress").GetComponent("XUISlider") as IXUISlider); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_maskSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClick)); + this.m_StudyButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStudyClick)); + } + + public void ShowEffectDetailInfo() + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_qianghua_03", this.m_SkillIcon.gameObject.transform, Vector3.zero, Vector3.one, 1f, true, 1f, true); + this.SetDetailInfo(); + } + + public void SetDetailInfo() + { + uint currentSkillID = this._Doc.CurrentSkillID; + uint skillMaxLevel = this._Doc.GetSkillMaxLevel(currentSkillID); + uint level = this._Doc.GuildDoc.Level; + GuildSkillTable.RowData guildSkill = this._Doc.GetGuildSkill(currentSkillID, skillMaxLevel); + GuildSkillTable.RowData guildSkill2 = this._Doc.GetGuildSkill(currentSkillID, skillMaxLevel + 1u); + this.m_SkillIcon.SetSprite(guildSkill.icon, guildSkill.atlas, false); + this.m_SkillName.SetText(guildSkill.name); + this.m_CurrentSkillLevel.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("XAttr_Level"), skillMaxLevel)); + this.m_NextSkillLevel.SetText((skillMaxLevel + 1u).ToString()); + this.m_CurrentSkillAttr.SetText(string.Format(guildSkill.currentLevelDescription, guildSkill.attribute[0, 1])); + this.m_NextSkillAttr.SetText(guildSkill2.attribute[0, 1].ToString()); + uint num = XGuildDocument.GuildConfig.GetTotalStudyCount((int)guildSkill.glevel, (int)level) + this._Doc.GetGuildSkillInitLevel(guildSkill.skillid); + this.m_MaxSlillLevel.SetText(XStringDefineProxy.GetString("GUILD_SKILL_MAX_UP_VALUE", new object[] + { + num + })); + this.m_UseGuildExp.SetText(guildSkill2.rexp.ToString()); + this.SetGuildExp(this._Doc.GuildDoc.CurrentTotalExp, this._Doc.LastGuildExp); + uint maxLevel = XGuildDocument.GuildConfig.MaxLevel; + bool flag = skillMaxLevel < num; + if (flag) + { + int rexp = (int)guildSkill2.rexp; + bool flag2 = this._Doc.LastGuildExp < rexp; + if (flag2) + { + this.m_StudyButton.SetGrey(false); + } + else + { + this.m_StudyButton.SetGrey(true); + } + } + else + { + this.m_StudyButton.SetGrey(false); + } + this.m_onSend = true; + } + + private void SetGuildExp(uint totalExp, int curExp) + { + this.m_CurrentGuildExp.SetText(string.Format("{0}/{1}", curExp, totalExp)); + float value = (totalExp > 0u) ? ((float)curExp / totalExp) : 0f; + this.m_costProgress.Value = value; + } + + private void OnCloseClick(IXUISprite sprite) + { + base.SetVisible(false); + } + + private bool OnStudyClick(IXUIButton btn) + { + bool flag = !this.m_onSend; + bool result; + if (flag) + { + result = false; + } + else + { + uint maxLevel = XGuildDocument.GuildConfig.MaxLevel; + uint level = this._Doc.GuildDoc.Level; + uint skillMaxLevel = this._Doc.GetSkillMaxLevel(this._Doc.CurrentSkillID); + GuildSkillTable.RowData guildSkill = this._Doc.GetGuildSkill(this._Doc.CurrentSkillID, skillMaxLevel + 1u); + uint num = XGuildDocument.GuildConfig.GetTotalStudyCount((int)guildSkill.glevel, (int)level) + this._Doc.GetGuildSkillInitLevel(guildSkill.skillid); + bool flag2 = skillMaxLevel < num; + if (flag2) + { + int rexp = (int)guildSkill.rexp; + bool flag3 = this._Doc.LastGuildExp < rexp; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_SKILL_UNDER_EXP"), "fece00"); + } + else + { + this._Doc.GetStudyGuildSkill(this._Doc.CurrentSkillID); + this.m_onSend = false; + } + } + else + { + bool flag4 = maxLevel == level; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_SKILL_MAX_ALLMAX"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_SKILL_MAX_CURMAX"), "fece00"); + } + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillStudyHandle.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillStudyHandle.cs.meta new file mode 100644 index 00000000..c6d5d684 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillStudyHandle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 361e66ce63595dd4791c119249df2ca6 +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillView.cs new file mode 100644 index 00000000..d78f7781 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillView.cs @@ -0,0 +1,487 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSkillView : DlgBase + { + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildSkillDlg"; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public XGuildSkillDocument _doc = null; + + public XGuildSkillStudyHandle _StudyHandle = null; + + private Transform m_studyHandlePanel = null; + + private bool m_showEffect = false; + + protected override void OnLoad() + { + base.OnLoad(); + this.m_studyHandlePanel = base.uiBehaviour.transform.Find("Bg"); + this._StudyHandle = DlgHandlerBase.EnsureCreate(ref this._StudyHandle, this.m_studyHandlePanel, false, this); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._StudyHandle); + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XGuildSkillDocument.uuID); + this._doc.SKillView = this; + this._doc.Player = XSingleton.singleton.XPlayerData; + this._doc.BagDoc = XDocuments.GetSpecificDocument(XBagDocument.uuID); + this._doc.GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.GetSkillList(); + this.SetupSkillList(true, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_LevelUp.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLevelUpClick)); + base.uiBehaviour.m_DetailUpMaxLevel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnUpMaxLevelClick)); + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnUpMaxLevelClick(IXUIButton button) + { + this._StudyHandle.SetVisible(true); + this._StudyHandle.SetDetailInfo(); + return false; + } + + private bool OnLevelUpClick(IXUIButton button) + { + string empty = string.Empty; + uint currentSkillID = this._doc.CurrentSkillID; + uint curGuildSkillLevel = this._doc.GetCurGuildSkillLevel(currentSkillID); + GuildSkillTable.RowData rowData; + bool flag = !this._doc.TryGetGuildSkill(currentSkillID, curGuildSkillLevel, out rowData); + bool result; + if (flag) + { + result = false; + } + else + { + uint skillMaxLevel = this._doc.GetSkillMaxLevel(currentSkillID); + bool flag2 = curGuildSkillLevel < skillMaxLevel; + if (flag2) + { + this._doc.SendLearnGuildSkill(); + } + else + { + uint num = XGuildDocument.GuildConfig.GetTotalStudyCount((int)rowData.glevel, (int)this._doc.GuildDoc.Level) + this._doc.GetGuildSkillInitLevel(rowData.skillid); + bool flag3 = skillMaxLevel < num; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_GUILD_SKILL_STUDY_LEVEL_DOWN"), "fece00"); + } + else + { + bool flag4 = this._doc.GuildDoc.Level < XGuildDocument.GuildConfig.MaxLevel; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_GUILD_SKILL_GUILD_LEVEL_DOWN"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_GUILD_SKILL_LEVEL_FULL"), "fece00"); + } + } + } + result = true; + } + return result; + } + + private void OnSkillClick(IXUISprite sp) + { + bool flag = this._doc.CurrentSkillID == (uint)sp.ID; + if (!flag) + { + this._doc.CurrentSkillID = (uint)sp.ID; + this.RefreshSkillLight(); + this.SetupDetailSkill(); + } + } + + public void SetupSkillList(bool refresh = true, bool showEffect = false) + { + base.uiBehaviour.m_SkillPool.FakeReturnAll(); + this.m_showEffect = showEffect; + List guildSkillIDs = XGuildSkillDocument.GuildSkillIDs; + int num = base.uiBehaviour.m_SkillPool.TplWidth + 30; + guildSkillIDs.Sort(new Comparison(XGuildSkillView.SkillSortCompare)); + int num2 = 0; + for (int i = 0; i < guildSkillIDs.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_SkillPool.FetchGameObject(false); + gameObject.name = string.Format("Skill{0}", ++num2); + this.SetupSkill(gameObject, guildSkillIDs[i]); + gameObject.transform.localPosition = base.uiBehaviour.m_SkillPool.TplPos + new Vector3((float)(i % 2 * base.uiBehaviour.m_SkillPool.TplWidth), (float)(-(float)i / 2 * base.uiBehaviour.m_SkillPool.TplHeight)); + } + base.uiBehaviour.m_SkillPool.ActualReturnAll(false); + if (refresh) + { + this._doc.CurrentSkillID = guildSkillIDs[0]; + base.uiBehaviour.m_SkillScroll.ResetPosition(); + } + this.RefreshSkillLight(); + this.SetupDetailSkill(); + this.RefreshGuildPoint(); + } + + private void SetupSkill(GameObject go, uint skillID) + { + uint level = this._doc.GuildDoc.BasicData.level; + uint curGuildSkillLevel = this._doc.GetCurGuildSkillLevel(skillID); + GuildSkillTable.RowData rowData; + bool flag = !this._doc.TryGetGuildSkill(skillID, curGuildSkillLevel, out rowData); + if (!flag) + { + uint glevel = rowData.glevel; + uint skillMaxLevel = this._doc.GetSkillMaxLevel(skillID); + IXUISprite ixuisprite = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Attr").GetComponent("XUILabel") as IXUILabel; + Transform transform = go.transform.Find("Light"); + IXUISprite ixuisprite2 = go.GetComponent("XUISprite") as IXUISprite; + Transform transform2 = go.transform.Find("RedPoint"); + IXUISprite ixuisprite3 = go.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel4 = go.transform.Find("LevelText").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("GuildLevel").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite4 = go.transform.Find("Profecssion").GetComponent("XUISprite") as IXUISprite; + ixuilabel5.SetText(XStringDefineProxy.GetString("OPEN_AT_GUILD_LEVEL", new object[] + { + glevel + })); + bool flag2 = false; + bool flag3 = rowData.needtype == 2u; + if (flag3) + { + flag2 = true; + } + else + { + bool flag4 = rowData.profecssion != null; + if (flag4) + { + int i = 0; + int num = rowData.profecssion.Length; + while (i < num) + { + bool flag5 = XBagDocument.IsProfMatched(rowData.profecssion[i]); + if (flag5) + { + flag2 = true; + break; + } + i++; + } + } + } + ixuisprite4.SetVisible(flag2); + bool flag6 = flag2; + if (flag6) + { + bool flag7 = rowData.needtype == 2u; + if (flag7) + { + ixuisprite4.SetSprite("icon_yjs", "Social/Guild", false); + } + else + { + ixuisprite4.SetSprite("Recharge_tj", "ReCharge/ReCharge", false); + } + } + bool flag8 = curGuildSkillLevel == 0u; + if (flag8) + { + ixuisprite3.SetEnabled(false); + ixuisprite.SetEnabled(false); + ixuilabel.SetEnabled(false); + ixuilabel2.SetEnabled(false); + ixuilabel3.SetEnabled(false); + ixuilabel4.SetEnabled(false); + } + else + { + ixuisprite3.SetEnabled(true); + ixuisprite.SetEnabled(true); + ixuilabel.SetEnabled(true); + ixuilabel2.SetEnabled(true); + ixuilabel3.SetEnabled(true); + ixuilabel4.SetEnabled(true); + } + bool flag9 = this.m_showEffect && skillID == this._doc.CurrentSkillID; + if (flag9) + { + this.m_showEffect = false; + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_qianghua_03", ixuisprite.gameObject.transform, Vector3.zero, Vector3.one, 1f, true, 2f, true); + } + bool flag10 = level < glevel; + ixuilabel4.SetVisible(!flag10); + ixuilabel2.SetVisible(!flag10); + ixuilabel3.SetVisible(!flag10); + ixuilabel5.SetVisible(flag10); + transform.gameObject.SetActive(false); + ixuisprite.SetSprite(rowData.icon, rowData.atlas, false); + ixuilabel.SetText(rowData.name); + ixuilabel2.SetText(string.Format("{0}/{1}", curGuildSkillLevel.ToString(), skillMaxLevel)); + ixuilabel3.SetText(string.Format(string.Format(rowData.currentLevelDescription, rowData.attribute[0, 1]), new object[0])); + transform2.gameObject.SetActive(false); + ixuisprite2.ID = (ulong)skillID; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSkillClick)); + } + } + + public void SetupDetailSkill() + { + uint currentSkillID = this._doc.CurrentSkillID; + uint curGuildSkillLevel = this._doc.GetCurGuildSkillLevel(currentSkillID); + uint skillMaxLevel = this._doc.GetSkillMaxLevel(currentSkillID); + GuildSkillTable.RowData guildSkill = this._doc.GetGuildSkill(currentSkillID, curGuildSkillLevel); + GuildSkillTable.RowData guildSkill2 = this._doc.GetGuildSkill(currentSkillID, curGuildSkillLevel + 1u); + base.uiBehaviour.m_DetailSkillIcon.SetSprite(guildSkill.icon, guildSkill.atlas, false); + base.uiBehaviour.m_DetailSkillName.SetText(guildSkill.name); + base.uiBehaviour.m_DetailCurrLevel.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("XAttr_Level"), curGuildSkillLevel)); + base.uiBehaviour.m_DetailNextLevel.SetText((curGuildSkillLevel + 1u).ToString()); + base.uiBehaviour.m_DetailMaxLevel.SetText(skillMaxLevel.ToString()); + base.uiBehaviour.m_DetailCurrAttr.SetText(string.Format(guildSkill.currentLevelDescription, guildSkill.attribute[0, 1])); + base.uiBehaviour.m_DetailNextAttr.SetText(guildSkill2.attribute[0, 1].ToString()); + base.uiBehaviour.m_RedPoint.gameObject.SetActive(false); + string text = ""; + bool flag = false; + bool flag2 = !flag && !this.TryCheckRedGuildLevel(guildSkill, curGuildSkillLevel, out text); + if (flag2) + { + flag = true; + base.uiBehaviour.m_DetailSkillName.SetText(guildSkill.name); + } + else + { + base.uiBehaviour.m_DetailSkillName.SetText(string.Format("{0}({1}/{2})", guildSkill.name, curGuildSkillLevel, skillMaxLevel)); + } + bool flag3 = !flag && !this.TryCheckRoleLevel(guildSkill, curGuildSkillLevel, out text); + if (flag3) + { + } + base.uiBehaviour.m_DetailTip.SetText(text); + bool flag4 = this._doc.GuildDoc.IHavePermission(GuildPermission.GPEM_STUDY_SKILL) && guildSkill.needtype == 1u; + if (flag4) + { + base.uiBehaviour.m_DetailUpMaxLevel.SetVisible(true); + } + else + { + base.uiBehaviour.m_DetailUpMaxLevel.SetVisible(false); + } + string text2 = string.Empty; + bool flag5 = curGuildSkillLevel < skillMaxLevel; + bool flag6; + if (flag5) + { + text2 = XStringDefineProxy.GetString("GUILD_SKILL_UPDATE"); + flag6 = false; + } + else + { + flag6 = true; + uint num = XGuildDocument.GuildConfig.GetTotalStudyCount((int)guildSkill.glevel, (int)this._doc.GuildDoc.Level) + this._doc.GetGuildSkillInitLevel(currentSkillID); + bool flag7 = skillMaxLevel < num; + if (flag7) + { + text2 = XStringDefineProxy.GetString("GUILD_SKILL_STUDY_LEVEL_DOWN"); + } + else + { + bool flag8 = this._doc.GuildDoc.Level < XGuildDocument.GuildConfig.MaxLevel; + if (flag8) + { + text2 = XStringDefineProxy.GetString("GUILD_SKILL_GUILD_LEVEL_DOWN"); + } + else + { + text2 = XStringDefineProxy.GetString("GUILD_SKILL_LEVEL_FULL"); + } + } + } + base.uiBehaviour.m_LevelUpLabel.SetText(text2); + base.uiBehaviour.m_LevelUp.SetGrey(!flag6); + bool flag9 = this.TryCheckLevelUpCost(guildSkill, curGuildSkillLevel, out text); + if (flag9) + { + base.uiBehaviour.m_DetailCost.SetVisible(false); + base.uiBehaviour.m_DetailCostRed.SetVisible(true); + base.uiBehaviour.m_DetailCostRed.InputText = text; + } + else + { + base.uiBehaviour.m_DetailCost.SetVisible(true); + base.uiBehaviour.m_DetailCostRed.SetVisible(false); + base.uiBehaviour.m_DetailCost.InputText = text; + } + } + + private bool TryCheckFullLevel(GuildSkillTable.RowData currData, uint skillLevel, out string strTemp) + { + strTemp = string.Empty; + uint num = XGuildDocument.GuildConfig.GetTotalStudyCount((int)currData.glevel, (int)this._doc.GuildDoc.Level) + this._doc.GetGuildSkillInitLevel(currData.skillid); + bool flag = skillLevel >= num; + bool result; + if (flag) + { + strTemp = XStringDefineProxy.GetString("GUILD_SKILL_LEVEL_FULL"); + result = true; + } + else + { + result = false; + } + return result; + } + + private bool TryCheckLevelUpCost(GuildSkillTable.RowData currData, uint skillLevel, out string strTemp) + { + strTemp = ""; + uint num = currData.need[0, 1]; + strTemp = string.Format("{0}{1}", XLabelSymbolHelper.FormatSmallIcon(22), num); + return (ulong)num > (ulong)((long)((int)XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.GUILD_CONTRIBUTE))); + } + + private bool TryCheckRoleLevel(GuildSkillTable.RowData currData, uint skillLevel, out string strTemp) + { + strTemp = ""; + bool flag = currData.roleLevel > XSingleton.singleton.XPlayerData.Level; + bool result; + if (flag) + { + strTemp = string.Format("{0}{1}: {2}\n", strTemp, XStringDefineProxy.GetString("NEED_PLAYER_LEVEL"), currData.glevel); + result = false; + } + else + { + result = true; + } + return result; + } + + private bool TryCheckRedGuildLevel(GuildSkillTable.RowData currData, uint skillLevel, out string strTemp) + { + uint glevel = currData.glevel; + strTemp = ""; + bool flag = glevel > this._doc.GuildDoc.Level; + bool result; + if (flag) + { + strTemp = string.Format("{0}{1}: {2}\n", strTemp, XStringDefineProxy.GetString("NEED_GUILD_LEVEL"), glevel); + result = false; + } + else + { + result = true; + } + return result; + } + + private void RefreshSkillLight() + { + List list = ListPool.Get(); + base.uiBehaviour.m_SkillPool.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + IXUISprite ixuisprite = list[i].GetComponent("XUISprite") as IXUISprite; + bool flag = ixuisprite.ID == (ulong)this._doc.CurrentSkillID; + if (flag) + { + list[i].transform.Find("Light").gameObject.SetActive(true); + } + else + { + list[i].transform.Find("Light").gameObject.SetActive(false); + } + } + ListPool.Release(list); + } + + private void RefreshGuildPoint() + { + base.uiBehaviour.m_GuildPoint.SetText(this._doc.BagDoc.VirtualItems[22].ToString()); + } + + private static int SkillSortCompare(uint skill1, uint skill2) + { + return skill1.CompareTo(skill2); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillView.cs.meta new file mode 100644 index 00000000..23220f82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSkillView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 395a671b66c9810459bcd9918c1ba666 +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs new file mode 100644 index 00000000..b70f7552 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs @@ -0,0 +1,62 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSmallMonsterBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public Transform m_DetailFrame; + + public Transform m_RankFrame; + + public XUIPool m_DropItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_CurrentLevel; + + public IXUIButton m_BeginGame; + + public IXUILabel m_RemainTime; + + public IXUILabel m_lblWin; + + public IXUILabel m_lblThisday; + + public IXUILabel m_lblNextday; + + public IXUIButton m_btnrwdRank; + + public IXUIButton m_btnHelp; + + public IXUILabel m_lblEmpt; + + public IXUILabel m_lblType; + + public XUIPool m_KillRankPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_DetailFrame = base.transform.Find("Bg/DetailFrame"); + this.m_RankFrame = base.transform.Find("Bg/RankFrame"); + Transform transform = this.m_DetailFrame.Find("DropFrame/Item"); + this.m_DropItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_CurrentLevel = (this.m_DetailFrame.Find("CurrentLevel").GetComponent("XUILabel") as IXUILabel); + this.m_BeginGame = (this.m_DetailFrame.Find("BeginGame").GetComponent("XUIButton") as IXUIButton); + this.m_RemainTime = (this.m_DetailFrame.Find("Pic/RemainTime").GetComponent("XUILabel") as IXUILabel); + this.m_lblWin = (this.m_DetailFrame.Find("WinCondition").GetComponent("XUILabel") as IXUILabel); + this.m_lblThisday = (this.m_DetailFrame.Find("Pic/Name").GetComponent("XUILabel") as IXUILabel); + this.m_lblNextday = (this.m_DetailFrame.Find("Tomorrow").GetComponent("XUILabel") as IXUILabel); + this.m_btnrwdRank = (this.m_DetailFrame.Find("RwdRank").GetComponent("XUIButton") as IXUIButton); + this.m_btnHelp = (this.m_DetailFrame.Find("Help").GetComponent("XUIButton") as IXUIButton); + transform = this.m_RankFrame.Find("Bg/Panel/MemberTpl"); + this.m_KillRankPool.SetupPool(transform.parent.gameObject, transform.gameObject, 20u, false); + this.m_lblEmpt = (this.m_RankFrame.Find("Bg/Empty").GetComponent("XUILabel") as IXUILabel); + this.m_lblType = (this.m_RankFrame.Find("Bg/title/title2").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs.meta new file mode 100644 index 00000000..a3af0a78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f14c34ebcd3fa9642a2554ff62386182 +timeCreated: 1611404837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterDocument.cs new file mode 100644 index 00000000..b5121302 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterDocument.cs @@ -0,0 +1,250 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSmallMonsterDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildSmallMonsterDocument.uuID; + } + } + + public int LeftEnterCount + { + get + { + return this._leftEnterCount; + } + } + + public int DayLimit + { + get + { + return XSingleton.singleton.GetInt("GuildCampDayCount"); + } + } + + public GuildCamp.RowData currCamp + { + get + { + for (int i = 0; i < XGuildSmallMonsterDocument._guildCampTable.Table.Length; i++) + { + bool flag = (long)XGuildSmallMonsterDocument._guildCampTable.Table[i].ID == (long)((ulong)this.DNExpId); + if (flag) + { + return XGuildSmallMonsterDocument._guildCampTable.Table[i]; + } + } + return null; + } + } + + public GuildCamp.RowData nextCamp + { + get + { + for (int i = 0; i < XGuildSmallMonsterDocument._guildCampTable.Table.Length; i++) + { + bool flag = (long)XGuildSmallMonsterDocument._guildCampTable.Table[i].ID == (long)((ulong)this.NextdayDneId); + if (flag) + { + return XGuildSmallMonsterDocument._guildCampTable.Table[i]; + } + } + return null; + } + } + + public uint Small_Monster_SceneID + { + get + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID((int)this.DNExpId); + bool flag = expeditionDataByID != null; + if (flag) + { + List randomSceneList = specificDocument.GetRandomSceneList(expeditionDataByID.RandomSceneIDs[0]); + bool flag2 = randomSceneList.Count > 0; + if (flag2) + { + return randomSceneList[0]; + } + } + return 4500u; + } + } + + public List RankList + { + get + { + return this._rankList; + } + } + + public bool isKillType + { + get + { + bool flag = this.currCamp != null; + return flag && this.currCamp.Type == 2; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildSmallMonsterDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public uint DNExpId = 11u; + + public uint NextdayDneId = 12u; + + private int _leftEnterCount = 0; + + private List _rankList = new List(); + + public static GuildCamp _guildCampTable = new GuildCamp(); + + public static GuildCampRank _guildRankTable = new GuildCampRank(); + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildSmallMonsterDocument.AsyncLoader.AddTask("Table/GuildCamp", XGuildSmallMonsterDocument._guildCampTable, false); + XGuildSmallMonsterDocument.AsyncLoader.AddTask("Table/GuildCampRank", XGuildSmallMonsterDocument._guildRankTable, false); + XGuildSmallMonsterDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.GuildStateChanged)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public bool IsOpen(ExpeditionTable.RowData rowData) + { + return (long)rowData.DNExpeditionID == (long)((ulong)this.DNExpId); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.SendQuerySmallMonterInfo(); + } + } + + public bool CheckEnterLevel() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID((int)this.DNExpId); + return specificDocument.TeamCategoryMgr.IsExpOpened(expeditionDataByID); + } + + public int GetEnterLevel() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int expIDBySceneID = specificDocument.GetExpIDBySceneID(this.Small_Monster_SceneID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID(expIDBySceneID); + return (expeditionDataByID == null) ? 24 : expeditionDataByID.RequiredLevel; + } + + private bool GuildStateChanged(XEventArgs args) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = args as XInGuildStateChangedEventArgs; + bool bIsEnter = xinGuildStateChangedEventArgs.bIsEnter; + if (bIsEnter) + { + this.SendQuerySmallMonterInfo(); + } + else + { + this._leftEnterCount = 0; + } + return true; + } + + public void SendQuerySmallMonterInfo() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.bInGuild; + if (!flag) + { + bool flag2 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GuildDungeon_SmallMonter); + if (!flag2) + { + RpcC2M_GuildCampInfo rpc = new RpcC2M_GuildCampInfo(); + XSingleton.singleton.Send(rpc); + } + } + } + + public void SetGuildSmallMonsterInfo(int leftEnterCount, int currID, int nextID, List rankList) + { + this._leftEnterCount = leftEnterCount; + this._rankList.Clear(); + DlgBase.singleton.RefreshRedp(); + bool flag = currID != 0 && nextID != 0; + if (flag) + { + this.DNExpId = (uint)currID; + this.NextdayDneId = (uint)nextID; + } + else + { + XSingleton.singleton.AddGreenLog("currID is 0", null, null, null, null, null); + } + for (int i = 0; i < rankList.Count; i++) + { + GuildCampRankInfo guildCampRankInfo = new GuildCampRankInfo(); + guildCampRankInfo.rankVar = rankList[i].rankVar; + guildCampRankInfo.rank = rankList[i].rank; + guildCampRankInfo.roles.Clear(); + for (int j = 0; j < rankList[i].roles.Count; j++) + { + guildCampRankInfo.roles.Add(rankList[i].roles[j]); + } + this._rankList.Add(guildCampRankInfo); + } + bool flag2 = !DlgBase.singleton.IsVisible(); + if (!flag2) + { + DlgBase.singleton.SetupDetailFrame(); + DlgBase.singleton.SetupRankFrame(); + } + } + + public void OpenTeamView() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch((int)this.DNExpId); + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + this.SendQuerySmallMonterInfo(); + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.SendQuerySmallMonterInfo(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterDocument.cs.meta new file mode 100644 index 00000000..02195601 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6dde25c39bc7b3a4bab464ce39e9ea77 +timeCreated: 1611403903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterView.cs new file mode 100644 index 00000000..7bb667ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterView.cs @@ -0,0 +1,215 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildSmallMonsterView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildSmallMonsterDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XGuildSmallMonsterDocument _doc = null; + + private GuildCampRankHandler _rankHandler; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_BeginGame.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBeginGameClicked)); + base.uiBehaviour.m_btnrwdRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRwdRankClick)); + base.uiBehaviour.m_btnHelp.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClick)); + } + + protected override void OnLoad() + { + base.OnLoad(); + DlgHandlerBase.EnsureCreate(ref this._rankHandler, base.uiBehaviour.gameObject.transform, false, this); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._rankHandler); + base.OnUnload(); + } + + private bool OnCloseClicked(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnBeginGameClicked(IXUIButton button) + { + this._doc.OpenTeamView(); + return true; + } + + private bool OnRwdRankClick(IXUIButton button) + { + this._rankHandler.SetVisible(true); + return true; + } + + private bool OnHelpClick(IXUIButton button) + { + DlgBase.singleton.ShowHelp(this._doc.currCamp.Name, this._doc.currCamp.Description); + return true; + } + + public bool CloseRankHandler(IXUIButton btn) + { + this._rankHandler.SetVisible(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshRedp(); + this._doc.SendQuerySmallMonterInfo(); + this.SetupDetailFrame(); + this.SetupRankFrame(); + } + + public void SetupDetailFrame() + { + base.uiBehaviour.m_RemainTime.SetText(string.Format("{0}/{1}", this._doc.LeftEnterCount, this._doc.DayLimit)); + base.uiBehaviour.m_CurrentLevel.SetText(string.Format("Lv.{0}", 0)); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._doc.Small_Monster_SceneID); + base.uiBehaviour.m_DropItemPool.FakeReturnAll(); + bool flag = sceneData.ViewableDropList != null; + if (flag) + { + for (int i = 0; i < sceneData.ViewableDropList.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_DropItemPool.FetchGameObject(false); + gameObject.name = "drop" + sceneData.ViewableDropList[i]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, sceneData.ViewableDropList[i], 0, false); + gameObject.transform.localPosition = base.uiBehaviour.m_DropItemPool.TplPos + new Vector3((float)(i * base.uiBehaviour.m_DropItemPool.TplWidth), 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)sceneData.ViewableDropList[i]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + base.uiBehaviour.m_lblThisday.SetText(this._doc.currCamp.Name); + base.uiBehaviour.m_lblNextday.SetText(this._doc.nextCamp.Name); + base.uiBehaviour.m_lblWin.SetText(this._doc.currCamp.Condition); + base.uiBehaviour.m_DropItemPool.ActualReturnAll(false); + } + + public void SetupRankFrame() + { + base.uiBehaviour.m_KillRankPool.FakeReturnAll(); + base.uiBehaviour.m_lblEmpt.SetVisible(this._doc.RankList.Count <= 0); + base.uiBehaviour.m_lblType.SetText(this._doc.currCamp.RankDes); + for (int i = 0; i < this._doc.RankList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_KillRankPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Condition").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetVisible(i >= 3); + ixuilabel.SetText(string.Format("No.{0}", i + 1)); + ixuisprite.SetVisible(i < 3); + ixuisprite.SetSprite("N" + (i + 1)); + ixuisprite.MakePixelPerfect(); + string text = string.Empty; + for (int j = 0; j < this._doc.RankList[i].roles.Count; j++) + { + text += this._doc.RankList[i].roles[j].name; + bool flag = j < this._doc.RankList[i].roles.Count - 1; + if (flag) + { + text += "\n"; + } + } + ixuilabel2.SetText(text); + bool flag2 = this._doc.currCamp.Type == 2; + if (flag2) + { + ixuilabel3.SetText(this._doc.RankList[i].rankVar.ToString()); + } + else + { + int num = this._doc.RankList[i].rankVar / 60; + int num2 = this._doc.RankList[i].rankVar % 60; + string str = (num < 10) ? ("0" + num) : num.ToString(); + string str2 = (num2 < 10) ? ("0" + num2) : num2.ToString(); + ixuilabel3.SetText(str + ":" + str2); + } + gameObject.transform.localPosition = base.uiBehaviour.m_KillRankPool.TplPos - new Vector3(0f, (float)(i * base.uiBehaviour.m_KillRankPool.TplHeight)); + } + base.uiBehaviour.m_KillRankPool.ActualReturnAll(false); + } + + public void RefreshRedp() + { + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + } + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag2 = XGuildDocument.GuildConfig.IsSysUnlock(XSysDefine.XSys_GuildDungeon_SmallMonter, specificDocument.Level); + XSingleton.singleton.SetSysRedState(XSysDefine.XSys_GuildDungeon_SmallMonter, this._doc.LeftEnterCount > 0 && flag2 && this._doc.CheckEnterLevel()); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GuildDungeon_SmallMonter, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterView.cs.meta new file mode 100644 index 00000000..4ea75cf7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildSmallMonsterView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0a95e53ed7248744b5a5eeb36f1a0e8 +timeCreated: 1611404588 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlg.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlg.cs new file mode 100644 index 00000000..c35b8f4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlg.cs @@ -0,0 +1,151 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildTaskRefreshResultDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/DailyTaskResult"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public uint AfterScore { get; set; } + + public uint BeforeScore { get; set; } + + private XFx _fx1; + + private XFx _fx2; + + private uint _fx1Token; + + private uint _fx2Token; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this._fx1Token); + XSingleton.singleton.KillTimer(this._fx2Token); + this._fx1Token = 0u; + this._fx2Token = 0u; + bool flag = this._fx1 != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx1, true); + this._fx1 = null; + } + bool flag2 = this._fx2 != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._fx2, true); + this._fx2 = null; + } + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + base.uiBehaviour.blockBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.TweenGroup.ResetTween(true); + base.uiBehaviour.TweenGroup.PlayTween(true); + base.uiBehaviour.beforeSprite.SetSprite(base.uiBehaviour.beforeSprite.spriteName.Substring(0, base.uiBehaviour.beforeSprite.spriteName.Length - 1) + this.BeforeScore); + base.uiBehaviour.afterSprite.SetSprite(base.uiBehaviour.afterSprite.spriteName.Substring(0, base.uiBehaviour.afterSprite.spriteName.Length - 1) + this.AfterScore); + bool flag = this.BeforeScore < this.AfterScore; + if (flag) + { + base.uiBehaviour.resultLabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("DailyTaskRefreshUp"))); + } + else + { + bool flag2 = this.BeforeScore == this.AfterScore; + if (flag2) + { + base.uiBehaviour.resultLabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("DailyTaskRefreshEqual"))); + } + else + { + base.uiBehaviour.resultLabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("DailyTaskRefreshDown"))); + } + } + IXPositionGroup ixpositionGroup = base.uiBehaviour.transform.GetComponent("PositionGroup") as IXPositionGroup; + this._fx1Token = XSingleton.singleton.SetTimer(ixpositionGroup.GetGroup(0).x, new XTimerMgr.ElapsedEventHandler(this.DelayCreateFx), 1); + this._fx2Token = XSingleton.singleton.SetTimer(ixpositionGroup.GetGroup(1).x, new XTimerMgr.ElapsedEventHandler(this.DelayCreateFx), 2); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this._fx1Token); + XSingleton.singleton.KillTimer(this._fx2Token); + this._fx1Token = 0u; + this._fx2Token = 0u; + bool flag = this._fx1 != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx1, true); + this._fx1 = null; + } + bool flag2 = this._fx2 != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._fx2, true); + this._fx2 = null; + } + base.OnHide(); + } + + private void DelayCreateFx(object o = null) + { + int num = (int)o; + bool flag = num == 1; + if (flag) + { + this._fx1 = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_fptx_Clip01", base.uiBehaviour.m_FxDepth, false); + } + else + { + this._fx2 = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_fptx_Clip02", base.uiBehaviour.m_FxDepth2, false); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private bool OnClose(IXUIButton uiSprite) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlg.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlg.cs.meta new file mode 100644 index 00000000..60555e34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d1f4f350de608a4ba54106516039e3f +timeCreated: 1611403603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlgBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlgBehavior.cs new file mode 100644 index 00000000..807d6e66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlgBehavior.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XGuildTaskRefreshResultDlgBehavior : DlgBehaviourBase + { + public IXUISprite beforeSprite; + + public IXUISprite afterSprite; + + public IXUIButton blockBtn; + + public Transform m_FxDepth; + + public Transform m_FxDepth2; + + public IXUILabel resultLabel; + + public IXUIPlayTweenGroup TweenGroup; + + private void Awake() + { + this.beforeSprite = (base.transform.Find("P2/TaskLevelBefore").GetComponent("XUISprite") as IXUISprite); + this.afterSprite = (base.transform.Find("P2/TaskLevelAfter").GetComponent("XUISprite") as IXUISprite); + this.blockBtn = (base.transform.Find("Block").GetComponent("XUIButton") as IXUIButton); + this.resultLabel = (base.transform.Find("P2/ResultText").GetComponent("XUILabel") as IXUILabel); + this.m_FxDepth = base.transform.Find("Fx/FxDepth"); + this.m_FxDepth2 = base.transform.Find("Fx/FxDepth2"); + this.TweenGroup = (base.transform.Find("P2").GetComponent("XUIPlayTweenGroup") as IXUIPlayTweenGroup); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlgBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlgBehavior.cs.meta new file mode 100644 index 00000000..c01d014d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildTaskRefreshResultDlgBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a8e30566e5d298e4b8027366bd4bfc47 +timeCreated: 1611404296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildTerritoryDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildTerritoryDocument.cs new file mode 100644 index 00000000..897ec27d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildTerritoryDocument.cs @@ -0,0 +1,1220 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildTerritoryDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildTerritoryDocument.uuID; + } + } + + public uint bHavaTerritoryRecCount + { + get + { + return this.mHaveTerritoryCount; + } + set + { + this.mHaveTerritoryCount = value; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildTerritoryAllianceInterface, true); + } + } + + public XGuildTerritoryDocument.GuildTerritoryStyle TerritoryStyle + { + get + { + return this.mCurTerritoryStyle; + } + set + { + this.mCurTerritoryStyle = value; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildTerritoryIconInterface, true); + this.RefreshGuildTerritoryInfo(); + } + } + + public bool bHavaShowMessageIcon + { + get + { + return this.mShowMessageIcon; + } + set + { + this.mShowMessageIcon = value; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildTerritoryMessageInterface, true); + } + } + + public List GuildTerrChallList + { + get + { + return this.mGuildTerrChall; + } + } + + public List CityDataList + { + get + { + return this.mCityDataList; + } + } + + public List GuildTerrAllianceInfos + { + get + { + return this.mGuildTerritoryAllianceList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildTerritoryDocument"); + + public static readonly uint GAME_INFO = 1u; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static FightDesignation mGuildDestination = new FightDesignation(); + + public static GuildTransfer mGuildTransfer = new GuildTransfer(); + + public static TerritoryBattle mGuildTerritoryList = new TerritoryBattle(); + + public static TerritoryRewd mTerritoryRewd = new TerritoryRewd(); + + public XFx[] fxJvDians = new XFx[9]; + + public Vector3[] fxJvPos = new Vector3[3]; + + private float lastShowInfoTime; + + public Queue qInfo = new Queue(); + + public uint mapid = 0u; + + public List jvdians = new List(); + + public List guilds = new List(); + + public List roles = new List(); + + public List fields = new List(); + + public List rwds = new List(); + + public GCFRoleBrief mmyinfo = new GCFRoleBrief(); + + public uint feats = 0u; + + public GCFGuildBrief winguild; + + public uint ready_lefttime = 0u; + + public uint fight_lefttime = 0u; + + public uint territoryid = 0u; + + public bool myPostion = true; + + private uint[] maptoken = new uint[3]; + + private string[] fxs = new string[] + { + "Effects/FX_Particle/UIfx/UI_xdtts_white", + "Effects/FX_Particle/UIfx/UI_xdtts_bule", + "Effects/FX_Particle/UIfx/UI_xdtts_red" + }; + + private Dictionary mCityDataDic = new Dictionary(); + + private List mCityDataList = new List(); + + private List mGuildTerrChall = new List(); + + private List mGuildTerritoryAllianceList = new List(); + + private uint mHaveTerritoryCount = 0u; + + private XGuildTerritoryDocument.GuildTerritoryStyle mCurTerritoryStyle = XGuildTerritoryDocument.GuildTerritoryStyle.NONE; + + public ulong Allianceid = 0UL; + + public GUILDTERRTYPE CurrentType = GUILDTERRTYPE.TERR_NOT_OPEN; + + public uint SelfGuildTerritoryID = 0u; + + public uint SelfTargetTerritoryID = 0u; + + public List guildAllianceInfos; + + public bool mShowMessage = true; + + public bool mShowMessageIcon = false; + + public ulong SelfAllianceID = 0UL; + + public uint CurrentTerritoryID = 0u; + + public uint EnterBattleTime = 0u; + + public enum GuildTerritoryStyle + { + NONE, + INFORM, + ACTIVITY + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendGCFCommonReq(GCFReqType.GCF_FIGHT_REPORT); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildTerritoryDocument.AsyncLoader.AddTask("Table/TerritoryBattleDesignation", XGuildTerritoryDocument.mGuildDestination, false); + XGuildTerritoryDocument.AsyncLoader.AddTask("Table/TerritoryBattleTransfer", XGuildTerritoryDocument.mGuildTransfer, false); + XGuildTerritoryDocument.AsyncLoader.AddTask("Table/territorybattle", XGuildTerritoryDocument.mGuildTerritoryList, false); + XGuildTerritoryDocument.AsyncLoader.AddTask("Table/TerritoryRewd", XGuildTerritoryDocument.mTerritoryRewd, false); + XGuildTerritoryDocument.AsyncLoader.Execute(callback); + } + + public static void OnLoadcallback() + { + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag) + { + GuildMiniReportHandler.msgs.Clear(); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT; + if (flag2) + { + XSingleton.singleton.InitBoard(); + } + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT; + if (flag3) + { + for (int i = 0; i < this.fxJvDians.Length; i++) + { + bool flag4 = i % 3 == 0; + if (flag4) + { + this.fxJvDians[i] = XSingleton.singleton.CreateFx("Effects/FX_Particle/Roles/Lzg_Ty/Ty_ldzd_fanwei_grey", null, true); + } + else + { + bool flag5 = i % 3 == 1; + if (flag5) + { + this.fxJvDians[i] = XSingleton.singleton.CreateFx("Effects/FX_Particle/Roles/Lzg_Ty/Ty_ldzd_fanwei_red", null, true); + } + else + { + this.fxJvDians[i] = XSingleton.singleton.CreateFx("Effects/FX_Particle/Roles/Lzg_Ty/Ty_ldzd_fanwei_blue", null, true); + } + } + bool flag6 = i / 3 == 0; + if (flag6) + { + List floatList = XSingleton.singleton.GetFloatList("GuildTerritoryUpPos"); + Vector3 vector; + vector= new Vector3(floatList[0], floatList[1], floatList[2]); + float num = float.Parse(XSingleton.singleton.GetValue("TerritoryBattleUpRadius")) * float.Parse(XSingleton.singleton.GetValue("TerritoryBattleClientRadiusK")); + this.fxJvDians[i].Play(vector, Quaternion.identity, new Vector3(num, 1f, num), 1f); + this.fxJvPos[0] = vector; + } + else + { + bool flag7 = i / 3 == 1; + if (flag7) + { + List floatList2 = XSingleton.singleton.GetFloatList("GuildTerritoryMidPos"); + Vector3 vector2; + vector2= new Vector3(floatList2[0], floatList2[1], floatList2[2]); + float num2 = float.Parse(XSingleton.singleton.GetValue("TerritoryBattleMidRadius")) * float.Parse(XSingleton.singleton.GetValue("TerritoryBattleClientRadiusK")); + this.fxJvDians[i].Play(vector2, Quaternion.identity, new Vector3(num2, 1f, num2), 1f); + this.fxJvPos[1] = vector2; + } + else + { + List floatList3 = XSingleton.singleton.GetFloatList("GuildTerritoryBtmPos"); + Vector3 vector3; + vector3= new Vector3(floatList3[0], floatList3[1], floatList3[2]); + float num3 = float.Parse(XSingleton.singleton.GetValue("TerritoryBattleBtmRadius")) * float.Parse(XSingleton.singleton.GetValue("TerritoryBattleClientRadiusK")); + this.fxJvDians[i].Play(vector3, Quaternion.identity, new Vector3(num3, 1f, num3), 1f); + this.fxJvPos[2] = vector3; + } + } + } + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + this.CheckJvDianState(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SkillHandler.SetVisible(false); + } + } + bool flag3 = Process_RpcC2G_DoEnterScene.runstate > 0u; + if (flag3) + { + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT || XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT; + if (flag4) + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + bool flag5 = specificDocument != null; + if (flag5) + { + bool flag6 = DlgBase.singleton.IsLoaded(); + if (flag6) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + DlgBase.singleton.SetVisiblePure(false); + DlgBase.singleton.Show(false); + DlgBase.singleton.SetFakeHide(true); + } + specificDocument.ShowLevelReward(); + } + } + } + } + + public override void OnLeaveScene() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT; + if (flag) + { + XSingleton.singleton.ClearAll(); + bool flag2 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SkillHandler.SetVisible(true); + } + } + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT; + if (flag3) + { + for (int i = 0; i < this.fxJvDians.Length; i++) + { + bool flag4 = this.fxJvDians[i] != null; + if (flag4) + { + XSingleton.singleton.DestroyFx(this.fxJvDians[i], true); + } + this.fxJvDians[i] = null; + } + XBattleDocument.DelMiniMapFx(this.maptoken[0]); + XBattleDocument.DelMiniMapFx(this.maptoken[1]); + XBattleDocument.DelMiniMapFx(this.maptoken[2]); + } + base.OnLeaveScene(); + } + + public override void OnDetachFromHost() + { + this.jvdians.Clear(); + this.roles.Clear(); + this.guilds.Clear(); + this.rwds.Clear(); + base.OnDetachFromHost(); + } + + public override void PostUpdate(float fDeltaT) + { + base.PostUpdate(fDeltaT); + bool flag = Time.frameCount % 60 == 0; + if (flag) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT; + if (flag2) + { + this.SendGCFReadysInfo(); + this.SendGFCFightInfo(); + } + else + { + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT; + if (flag3) + { + this.SendGFCFightInfo(); + } + } + } + bool flag4 = Time.time > this.lastShowInfoTime + 10f; + if (flag4) + { + bool flag5 = this.qInfo.Count != 0; + if (flag5) + { + this.qInfo.Clear(); + } + bool flag6 = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_miniReportHandler != null; + if (flag6) + { + DlgBase.singleton.m_miniReportHandler.ShowBuffs(); + } + } + } + + public FightDesignation.RowData GetDesignation(uint hit) + { + FightDesignation.RowData[] table = XGuildTerritoryDocument.mGuildDestination.Table; + for (int i = table.Length - 1; i >= 0; i--) + { + bool flag = table[i].ID <= hit; + if (flag) + { + return table[i]; + } + } + return null; + } + + public void ActiveJvDian(GCFJvDianType type, int index) + { + bool flag = type == GCFJvDianType.GCF_JUDIAN_UP; + if (flag) + { + bool flag2 = this.fxJvDians[0] != null && this.fxJvDians[1] != null && this.fxJvDians[2] != null; + if (flag2) + { + this.fxJvDians[0].SetActive(index == 0); + this.fxJvDians[1].SetActive(index == 1); + this.fxJvDians[2].SetActive(index == 2); + } + } + else + { + bool flag3 = type == GCFJvDianType.GCF_JUDIAN_MID; + if (flag3) + { + bool flag4 = this.fxJvDians[3] != null && this.fxJvDians[4] != null && this.fxJvDians[5] != null; + if (flag4) + { + this.fxJvDians[3].SetActive(index == 0); + this.fxJvDians[4].SetActive(index == 1); + this.fxJvDians[5].SetActive(index == 2); + } + } + else + { + bool flag5 = this.fxJvDians[6] != null && this.fxJvDians[7] != null && this.fxJvDians[8] != null; + if (flag5) + { + this.fxJvDians[6].SetActive(index == 0); + this.fxJvDians[7].SetActive(index == 1); + this.fxJvDians[8].SetActive(index == 2); + } + } + } + } + + public void SendGCFEnterin(int index) + { + this.mapid = XGuildTerritoryDocument.mGuildTransfer.GetByid((uint)index).sceneid; + this.SendGCFCommonReq(GCFReqType.GCF_JOIN_FIGHT_SCENE); + } + + public void SendWaitScene(uint tid) + { + this.territoryid = tid; + this.SendGCFCommonReq(GCFReqType.GCF_JOIN_READY_SCENE); + } + + public void SendGCFCommonReq(GCFReqType type) + { + RpcC2M_GCFCommonReq rpcC2M_GCFCommonReq = new RpcC2M_GCFCommonReq(); + rpcC2M_GCFCommonReq.oArg.mapid = this.mapid; + rpcC2M_GCFCommonReq.oArg.reqtype = type; + rpcC2M_GCFCommonReq.oArg.territoryid = this.territoryid; + XSingleton.singleton.Send(rpcC2M_GCFCommonReq); + } + + public void RespGCFCommon(GCFReqType type, GCFCommonRes res) + { + this.jvdians = res.jvdians; + this.guilds.Clear(); + for (int i = 0; i < res.guilds.Count; i++) + { + GCFGuild gcfguild = new GCFGuild(); + gcfguild.brief = res.guilds[i]; + gcfguild.groupScore = this.GetGroupPoint(res.guilds, gcfguild.brief.group); + this.guilds.Add(gcfguild); + } + this.roles = res.roles; + this.rwds = res.rewards; + this.fields = res.fields; + this.mmyinfo = res.myinfo; + bool flag = this.mmyinfo != null; + if (flag) + { + this.feats = this.mmyinfo.feats; + } + this.territoryid = res.territoryid; + this.winguild = res.winguild; + bool flag2 = type == GCFReqType.GCF_FIGHT_REPORT; + if (flag2) + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshAll(); + } + } + else + { + bool flag4 = type == GCFReqType.GCF_JOIN_READY_SCENE; + if (!flag4) + { + bool flag5 = type == GCFReqType.GCF_FIGHT_RESULT; + if (flag5) + { + LevelRewardTerritoryHandler territoryHandler = DlgBase.singleton.GetTerritoryHandler(); + bool flag6 = territoryHandler != null; + if (flag6) + { + territoryHandler.RefreshAll(); + } + else + { + XSingleton.singleton.AddErrorLog("level reward is nil", null, null, null, null, null); + } + } + else + { + bool flag7 = type == GCFReqType.GCF_JOIN_FIGHT_SCENE; + if (flag7) + { + } + } + } + } + } + + public void SendGCFReadysInfo() + { + RpcC2M_GCFReadysInfoReq rpc = new RpcC2M_GCFReadysInfoReq(); + XSingleton.singleton.Send(rpc); + } + + public void RespGCFReadysInfo(GCFReadyInfoRes ores) + { + this.ready_lefttime = ores.lefttime; + bool flag = DlgBase.singleton.IsVisible() && !XSingleton.singleton.isOpen && this.ready_lefttime > 0u; + if (flag) + { + DlgBase.singleton.SetLeftTime(this.ready_lefttime, -1); + } + XSingleton.singleton.UpdateInfo(ores.allinfo); + } + + public void SendGFCFightInfo() + { + RpcC2M_GCFFightInfoReqC2M rpc = new RpcC2M_GCFFightInfoReqC2M(); + XSingleton.singleton.Send(rpc); + } + + public void RespGCFFightInfo(GCFFightInfoRes res) + { + this.fight_lefttime = res.lefttime; + bool flag = DlgBase.singleton.IsVisible() && XSingleton.singleton.isOpen && this.fight_lefttime > 0u; + if (flag) + { + DlgBase.singleton.SetLeftTime(this.fight_lefttime, -1); + } + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.guilds.Clear(); + for (int i = 0; i < res.guilds.Count; i++) + { + GCFGuild gcfguild = new GCFGuild(); + gcfguild.brief = res.guilds[i]; + gcfguild.groupScore = this.GetGroupPoint(res.guilds, gcfguild.brief.group); + gcfguild.isPartern = (res.guilds[i].group == res.mygroup); + bool flag2 = gcfguild.brief.guildid == specificDocument.UID; + if (flag2) + { + this.myPostion = gcfguild.isPartern; + } + this.guilds.Add(gcfguild); + } + this.jvdians = res.JvDians; + this.guilds.Sort(new Comparison(this.SortGuildsInfo)); + GuildBattleMiniRankHandler miniRankHandler = DlgBase.singleton.m_miniRankHandler; + bool flag3 = miniRankHandler != null; + if (flag3) + { + miniRankHandler.RefreshAll(); + } + this.CheckJvDianState(); + GuildMiniReportHandler miniReportHandler = DlgBase.singleton.m_miniReportHandler; + bool flag4 = miniReportHandler != null; + if (flag4) + { + miniReportHandler.RefreshMyInfo(res.myinfo); + } + } + + private uint GetGroupPoint(List guilds, int group) + { + uint num = 0u; + for (int i = 0; i < guilds.Count; i++) + { + bool flag = guilds[i].group == group; + if (flag) + { + num += guilds[i].point; + } + } + return num; + } + + private int SortGuildsInfo(GCFGuild x, GCFGuild y) + { + bool flag = x.groupScore != y.groupScore; + int result; + if (flag) + { + result = (int)(y.groupScore - x.groupScore); + } + else + { + result = (int)(y.brief.point - x.brief.point); + } + return result; + } + + public void OnFeatsChange(uint feat) + { + this.feats = feat; + } + + public void OnZhanLingNotify(GCFZhanLingPara data) + { + GCFZhanLingType zltype = data.zltype; + XEntity entity = XSingleton.singleton.GetEntity(data.roleID); + bool flag = entity == null || entity.Attributes == null; + if (!flag) + { + XTerritoryComponent xterritoryComponent = entity.GetXComponent(XTerritoryComponent.uuID) as XTerritoryComponent; + bool flag2 = zltype == GCFZhanLingType.GCFZL_BEGIN; + if (flag2) + { + xterritoryComponent.ToStart(); + } + else + { + bool flag3 = zltype == GCFZhanLingType.GCFZL_BREAK; + if (flag3) + { + xterritoryComponent.Interupt(); + } + else + { + bool flag4 = zltype == GCFZhanLingType.GCFZL_END; + if (flag4) + { + xterritoryComponent.Success(); + } + } + } + } + } + + public void ModifyMinimapState(GCFJvDianType type1, int index2) + { + int num = XFastEnumIntEqualityComparer.ToInt(type1); + Vector3 pos = this.fxJvPos[num - 1]; + string fx = this.fxs[index2]; + bool flag = type1 == GCFJvDianType.GCF_JUDIAN_UP; + if (flag) + { + XBattleDocument.DelMiniMapFx(this.maptoken[0]); + this.maptoken[0] = XBattleDocument.AddMiniMapFx(pos, fx); + } + else + { + bool flag2 = type1 == GCFJvDianType.GCF_JUDIAN_MID; + if (flag2) + { + XBattleDocument.DelMiniMapFx(this.maptoken[1]); + this.maptoken[1] = XBattleDocument.AddMiniMapFx(pos, fx); + } + else + { + XBattleDocument.DelMiniMapFx(this.maptoken[2]); + this.maptoken[2] = XBattleDocument.AddMiniMapFx(pos, fx); + } + } + } + + public void OnGCFSynG2CNtf(GCFG2CSynPara data) + { + GuildMiniReportHandler miniReportHandler = DlgBase.singleton.m_miniReportHandler; + bool flag = miniReportHandler != null; + if (flag) + { + miniReportHandler.Push(data.type, data); + } + bool flag2 = data.type == GCFG2CSynType.GCF_G2C_SYN_KILL_COUNT; + if (flag2) + { + XEntity entity = XSingleton.singleton.GetEntity(data.roleid); + bool flag3 = entity != null; + if (flag3) + { + bool flag4 = entity.BillBoard != null; + if (flag4) + { + entity.BillBoard.OnFightDesignationInfoChange(data.killcount); + } + } + } + } + + public void ReceiveBattleSkill(PvpBattleKill battleSkillInfo) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_CASTLE_FIGHT; + if (!flag) + { + GVGBattleSkill gvgbattleSkill = new GVGBattleSkill(); + gvgbattleSkill.killerID = battleSkillInfo.killID; + gvgbattleSkill.deadID = battleSkillInfo.deadID; + gvgbattleSkill.contiKillCount = battleSkillInfo.contiKillCount; + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(gvgbattleSkill.killerID); + XEntity entityConsiderDeath2 = XSingleton.singleton.GetEntityConsiderDeath(gvgbattleSkill.deadID); + bool flag2 = entityConsiderDeath == null || entityConsiderDeath2 == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("entity id: " + gvgbattleSkill.killerID, " dead id: " + gvgbattleSkill.deadID, null, null, null, null); + } + else + { + gvgbattleSkill.killerName = entityConsiderDeath.Name; + gvgbattleSkill.deadName = entityConsiderDeath2.Name; + bool flag3 = XSingleton.singleton.IsAlly(entityConsiderDeath); + gvgbattleSkill.killerPosition = (this.myPostion ? flag3 : (!flag3)); + DlgBase.singleton.AddBattleSkill(gvgbattleSkill); + XSingleton.singleton.AddGreenLog(string.Format("ReceiveBattleSkill:{0} --- ,{1} ,.... {2}", gvgbattleSkill.killerName, gvgbattleSkill.deadName, gvgbattleSkill.contiKillCount), null, null, null, null, null); + } + } + } + + private void CheckJvDianState() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT; + if (flag) + { + for (int i = 0; i < this.jvdians.Count; i++) + { + bool flag2 = string.IsNullOrEmpty(this.jvdians[i].guildname); + if (flag2) + { + this.ActiveJvDian(this.jvdians[i].type, 0); + this.ModifyMinimapState(this.jvdians[i].type, 0); + } + else + { + this.ActiveJvDian(this.jvdians[i].type, this.IsPartener(this.jvdians[i].guildname) ? 2 : 1); + this.ModifyMinimapState(this.jvdians[i].type, this.IsPartener(this.jvdians[i].guildname) ? 1 : 2); + } + } + } + } + + private bool IsPartener(string guildname) + { + for (int i = 0; i < this.guilds.Count; i++) + { + bool flag = this.guilds[i].brief.guildname == guildname; + if (flag) + { + return this.guilds[i].isPartern; + } + } + return false; + } + + public void OnAddBuff(ulong roleID, uint doodadID) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)doodadID, 1); + string text = string.Empty; + bool flag = buffData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("GuildTerritory: Buff data not found: [{0} {1}]", doodadID, 1), null, null, null, null, null); + } + else + { + text = buffData.BuffName; + } + XEntity entity = XSingleton.singleton.GetEntity(roleID); + bool flag2 = entity == null; + if (flag2) + { + XSingleton.singleton.AddWarningLog("entity is null", null, null, null, null, null); + } + else + { + string name = entity.Name; + StringBuilder stringBuilder = new StringBuilder(); + bool flag3 = false; + for (int i = 0; i < text.Length; i++) + { + bool flag4 = text[i] == '['; + if (flag4) + { + flag3 = true; + } + bool flag5 = text[i] == ')'; + if (flag5) + { + flag3 = false; + } + bool flag6 = flag3; + if (flag6) + { + stringBuilder.Append(text[i]); + } + bool flag7 = text[i] == '('; + if (flag7) + { + flag3 = true; + } + bool flag8 = text[i] == ']'; + if (flag8) + { + flag3 = false; + } + } + this.AddBuffInfo(name, stringBuilder.ToString()); + } + } + + private void AddBuffInfo(string left, string right) + { + this.lastShowInfoTime = Time.time; + XBattleCaptainPVPDocument.KillInfo item = default(XBattleCaptainPVPDocument.KillInfo); + item.KillName = left; + item.DeadName = right; + this.qInfo.Enqueue(item); + bool flag = (long)this.qInfo.Count > (long)((ulong)XGuildTerritoryDocument.GAME_INFO); + if (flag) + { + this.qInfo.Dequeue(); + } + bool flag2 = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_miniReportHandler != null; + if (flag2) + { + DlgBase.singleton.m_miniReportHandler.ShowBuffs(); + } + } + + public void OnClickTerritoryIcon() + { + XGuildTerritoryDocument.GuildTerritoryStyle territoryStyle = this.TerritoryStyle; + if (territoryStyle != XGuildTerritoryDocument.GuildTerritoryStyle.INFORM) + { + if (territoryStyle == XGuildTerritoryDocument.GuildTerritoryStyle.ACTIVITY) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + else + { + this.TerritoryStyle = XGuildTerritoryDocument.GuildTerritoryStyle.NONE; + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("NOTICE_TERRITORY_STRING"), XStringDefineProxy.GetString("NOTICE_TERRITORY_STRING_GO"), XStringDefineProxy.GetString("NOTICE_TERRITORY_STRING_ENSURE"), new ButtonClickEventHandler(this.OnInformClick)); + } + } + + private bool OnInformClick(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return false; + } + + public bool TryTerritoryAlliance(uint terriroryID, out int messageID) + { + bool result = false; + messageID = 0; + bool flag = terriroryID == this.SelfGuildTerritoryID; + if (flag) + { + messageID = 4; + } + else + { + uint targetTerrioryType = this.GetTargetTerrioryType(terriroryID); + uint targetTerrioryType2 = this.GetTargetTerrioryType(this.SelfGuildTerritoryID); + bool flag2 = targetTerrioryType == 0u; + if (flag2) + { + messageID = 0; + } + int num = (int)(targetTerrioryType - targetTerrioryType2); + bool flag3 = num > 1; + if (flag3) + { + bool flag4 = targetTerrioryType == 3u; + if (flag4) + { + messageID = 2; + } + else + { + bool flag5 = targetTerrioryType == 2u; + if (flag5) + { + messageID = 1; + } + } + } + else + { + bool flag6 = num < 1; + if (flag6) + { + bool flag7 = targetTerrioryType2 == 3u; + if (flag7) + { + messageID = 5; + } + else + { + messageID = 3; + } + } + else + { + result = true; + } + } + } + return result; + } + + public uint GetTargetTerrioryType(uint cityID) + { + uint result = 0u; + bool flag = cityID > 0u; + if (flag) + { + TerritoryBattle.RowData byID = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(cityID); + bool flag2 = byID != null; + if (flag2) + { + result = byID.territorylevel; + } + } + return result; + } + + public bool TryGetCityData(uint cityID, out CityData data) + { + return this.mCityDataDic.TryGetValue(cityID, out data); + } + + public void SendGuildTerritoryCityInfo() + { + RpcC2M_ReqGuildTerrCityInfo rpc = new RpcC2M_ReqGuildTerrCityInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveGuildTerritoryCityInfo(ReqGuildTerrCityInfo res) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.CurrentType = res.type; + this.SelfTargetTerritoryID = res.targetid; + this.SelfGuildTerritoryID = 0u; + this.SelfAllianceID = res.allianceId; + this.mCityDataList.Clear(); + XSingleton.singleton.AddGreenLog("ReceiveGuildTerritoryCityInfo:", this.CurrentType.ToString(), res.targetid.ToString(), res.cityinfo.Count.ToString(), null, null); + int i = 0; + int count = res.cityinfo.Count; + while (i < count) + { + bool flag = this.mCityDataDic.ContainsKey(res.cityinfo[i].id); + if (flag) + { + this.mCityDataDic[res.cityinfo[i].id] = res.cityinfo[i]; + } + else + { + this.mCityDataDic.Add(res.cityinfo[i].id, res.cityinfo[i]); + } + bool flag2 = res.cityinfo[i].guildid > 0UL; + if (flag2) + { + this.mCityDataList.Add(res.cityinfo[i]); + } + bool flag3 = specificDocument.BasicData.uid == res.cityinfo[i].guildid; + if (flag3) + { + this.SelfGuildTerritoryID = res.cityinfo[i].id; + } + i++; + } + this.mCityDataList.Sort(new Comparison(this.CompareCityData)); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshData(); + } + } + + public void SetGuildTerritoryCityInfo(uint cityID, ulong guildID) + { + this.RefreshGuildTerritoryInfo(); + } + + private int CompareCityData(CityData city1, CityData city2) + { + return (int)(city2.id - city1.id); + } + + public void RefreshGuildTerritoryInfo() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendGuildTerritoryCityInfo(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + this.SendGuildTerritoryChallInfo(this.CurrentTerritoryID); + } + } + + public void SendGuildTerritoryChallInfo(uint uid) + { + bool flag = uid == 0u; + if (!flag) + { + RpcC2M_ReqGuildTerrChallInfo rpcC2M_ReqGuildTerrChallInfo = new RpcC2M_ReqGuildTerrChallInfo(); + rpcC2M_ReqGuildTerrChallInfo.oArg.id = uid; + this.CurrentTerritoryID = uid; + XSingleton.singleton.Send(rpcC2M_ReqGuildTerrChallInfo); + } + } + + public void ReceiveGuildTerritoryChallInfo(ReqGuildTerrChallInfoArg arg, ReqGuildTerrChallInfoRes res) + { + XSingleton.singleton.AddGreenLog("ReceiveGuildTerritoryChallInfo:", res.challinfo.Count.ToString(), null, null, null, null); + this.mGuildTerrChall.Clear(); + this.mGuildTerrChall.AddRange(res.challinfo); + this.mGuildTerritoryAllianceList.Clear(); + this.EnterBattleTime = res.cdtime; + Dictionary dictionary = new Dictionary(); + int i = 0; + int count = res.challinfo.Count; + while (i < count) + { + bool flag = dictionary.ContainsKey(res.challinfo[i].allianceid); + if (flag) + { + dictionary[res.challinfo[i].allianceid].Add(res.challinfo[i]); + } + else + { + bool flag2 = !dictionary.ContainsKey(res.challinfo[i].guildid); + if (flag2) + { + GuildTerritoryAllianceInfo guildTerritoryAllianceInfo = new GuildTerritoryAllianceInfo(); + guildTerritoryAllianceInfo.Set(res.challinfo[i]); + dictionary.Add(res.challinfo[i].guildid, guildTerritoryAllianceInfo); + } + } + i++; + } + this.mGuildTerritoryAllianceList.AddRange(dictionary.Values); + bool flag3 = this.CurrentTerritoryID > 0u; + if (flag3) + { + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshWhenShow(); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + + public void SendReceiveTerritroyInfo() + { + RpcC2M_ReqGuildTerrIntellInfo rpc = new RpcC2M_ReqGuildTerrIntellInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveTerritoryInterllInfo(ReqGuildTerrIntellInfoRes oRes) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetNewInfo(oRes.intellInfo); + } + } + + public bool TryGetTerritoryGuildName(ulong guildid, out string guildName) + { + guildName = string.Empty; + int i = 0; + int count = this.mGuildTerrChall.Count; + while (i < count) + { + bool flag = this.mGuildTerrChall[i].guildid == guildid; + if (flag) + { + guildName = this.mGuildTerrChall[i].guildname; + return true; + } + i++; + } + return false; + } + + public void SendGuildTerrAllianceInfo() + { + RpcC2M_ReqGuildTerrAllianceInfo rpc = new RpcC2M_ReqGuildTerrAllianceInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveGuildTerrAllianceInfo(ReqGuildTerrAllianceInfoRes res) + { + this.Allianceid = res.allianceid; + this.guildAllianceInfos = res.allianceinfo; + DlgBase.singleton.RefreshData(); + } + + public void SendAllianceGuildTerr(uint territoryID) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = specificDocument.Position == GuildPosition.GPOS_LEADER || specificDocument.Position == GuildPosition.GPOS_VICELEADER; + if (flag) + { + RpcC2M_AllianceGuildTerr rpcC2M_AllianceGuildTerr = new RpcC2M_AllianceGuildTerr(); + rpcC2M_AllianceGuildTerr.oArg.id = territoryID; + XSingleton.singleton.Send(rpcC2M_AllianceGuildTerr); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TB_DECLEAR_NO_PERMISSON"), "fece00"); + } + } + + public void ReceiveAllianceGuildTerr(AllianceGuildTerrArg arg, AllianceGuildTerrRes res) + { + bool flag = res.errorcod > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcod, "fece00"); + bool flag2 = res.errorcod == ErrorCode.ERR_DECLAREWAR_OUT_TIME; + if (flag2) + { + this.RefreshGuildTerritoryInfo(); + } + } + else + { + this.RefreshGuildTerritoryInfo(); + } + } + + public void SendTryAlliance(ulong guildID) + { + XSingleton.singleton.AddGreenLog("SendTryAlliance", guildID.ToString(), null, null, null, null); + RpcC2M_TryAlliance rpcC2M_TryAlliance = new RpcC2M_TryAlliance(); + rpcC2M_TryAlliance.oArg.guild = guildID; + XSingleton.singleton.Send(rpcC2M_TryAlliance); + } + + public void ReceiveTryAlliance(TryAllianceArg arg, TryAlliance res) + { + XSingleton.singleton.AddGreenLog("ReceiveTryAlliance", null, null, null, null, null); + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + } + else + { + this.SendGuildTerritoryChallInfo(this.CurrentTerritoryID); + } + } + + public void SendRecAlliance(ulong guildID) + { + RpcC2M_RecAlliance rpcC2M_RecAlliance = new RpcC2M_RecAlliance(); + rpcC2M_RecAlliance.oArg.guildid = guildID; + XSingleton.singleton.Send(rpcC2M_RecAlliance); + } + + public void ReceiveRecAlliance(RecAllianceArg arg, RecAllianceRes res) + { + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + } + else + { + this.bHavaTerritoryRecCount = 0u; + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + + public void SendClearGuildTerrAlliance() + { + RpcC2M_ClearGuildTerrAlliance rpc = new RpcC2M_ClearGuildTerrAlliance(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveClearGuildTerrAlliance(ClearGuildTerrAllianceRes res) + { + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + } + else + { + this.bHavaTerritoryRecCount = 0u; + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildTerritoryDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildTerritoryDocument.cs.meta new file mode 100644 index 00000000..153fe97e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildTerritoryDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8fa2df8e10fc42046812629fdee8444e +timeCreated: 1611404135 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildViewDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildViewDocument.cs new file mode 100644 index 00000000..9ff9a979 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildViewDocument.cs @@ -0,0 +1,162 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildViewDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildViewDocument.uuID; + } + } + + public XGuildViewView GuildViewView { get; set; } + + public List MemberList + { + get + { + return this.m_MemberList; + } + } + + public XGuildBasicData BasicData + { + get + { + return this.m_BasicData; + } + } + + public GuildApproveSetting ApproveSetting + { + get + { + return this._ApproveSetting; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("GuildViewDocument"); + + private List m_MemberList = new List(); + + private XGuildBasicData m_BasicData = new XGuildBasicData(); + + private GuildApproveSetting _ApproveSetting = new GuildApproveSetting(); + + public void View(XGuildBasicData basicData) + { + this.m_BasicData = basicData; + this.ReqInfo(basicData.uid); + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + public void View(ulong id) + { + this.m_BasicData.uid = id; + this.ReqInfo(this.m_BasicData.uid); + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + public void ReqInfo(ulong uid) + { + RpcC2M_AskGuildBriefInfo rpcC2M_AskGuildBriefInfo = new RpcC2M_AskGuildBriefInfo(); + rpcC2M_AskGuildBriefInfo.oArg.guildid = uid; + XSingleton.singleton.Send(rpcC2M_AskGuildBriefInfo); + RpcC2M_AskGuildMembers rpcC2M_AskGuildMembers = new RpcC2M_AskGuildMembers(); + rpcC2M_AskGuildMembers.oArg.guildid = uid; + XSingleton.singleton.Send(rpcC2M_AskGuildMembers); + } + + public void OnGuildBrief(GuildBriefRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_BasicData.Init(oRes); + this.ApproveSetting.autoApprove = (oRes.needApproval == 0); + this.ApproveSetting.PPT = (int)oRes.recuritppt; + bool flag2 = this.GuildViewView != null && this.GuildViewView.IsVisible(); + if (flag2) + { + this.GuildViewView.RefreshBasicInfo(); + } + } + } + + public void onGetMemberList(GuildMemberRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + int num = oRes.members.Count - this.m_MemberList.Count; + for (int i = 0; i < num; i++) + { + XGuildMemberBasicInfo item = new XGuildMemberBasicInfo(); + this.m_MemberList.Add(item); + } + bool flag2 = num < 0; + if (flag2) + { + this.m_MemberList.RemoveRange(this.m_MemberList.Count + num, -num); + } + for (int j = 0; j < oRes.members.Count; j++) + { + XGuildMemberBasicInfo xguildMemberBasicInfo = this.m_MemberList[j]; + GuildMemberData guildMemberData = oRes.members[j]; + xguildMemberBasicInfo.uid = guildMemberData.roleid; + xguildMemberBasicInfo.name = guildMemberData.name; + xguildMemberBasicInfo.position = (GuildPosition)guildMemberData.position; + xguildMemberBasicInfo.profession = XFastEnumIntEqualityComparer.ToInt(guildMemberData.profession); + xguildMemberBasicInfo.level = guildMemberData.level; + xguildMemberBasicInfo.ppt = guildMemberData.ppt; + xguildMemberBasicInfo.time = (int)guildMemberData.lastlogin; + } + bool flag3 = this.GuildViewView != null && this.GuildViewView.IsVisible(); + if (flag3) + { + this.GuildViewView.RefreshMembers(); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.GuildViewView != null && this.GuildViewView.IsVisible(); + if (flag) + { + this.ReqInfo(this.m_BasicData.uid); + } + } + + public static void OnGuildHyperLinkClick(string param) + { + ulong id = ulong.Parse(param); + XGuildViewDocument specificDocument = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + specificDocument.View(id); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildViewDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildViewDocument.cs.meta new file mode 100644 index 00000000..1cbe500f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildViewDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c0f9c23f5d991448b6f1029ecc7a7e8 +timeCreated: 1611403501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs new file mode 100644 index 00000000..c0d1d61d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs @@ -0,0 +1,108 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildWeeklyBountyBehavior : DlgBehaviourBase + { + public XUIPool BountyItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform BountyListTrans; + + public IXUILabel TaskDecLabel; + + public IXUILabel GetLabel; + + public Transform RewardsParentTrans; + + public IXUIButton CloseBtn; + + public IXUIButton RefreshBtn; + + public IXUIButton HelpBtn; + + public IXUIButton CommitBtn; + + public IXUIButton GetBtn; + + public Transform ChestX; + + public IXUILabel ChestXExpLabel; + + public IXUILabel DragonCoinCostLabel; + + public IXUILabel WeeklyAskLabel; + + public IXUILabel CommitLabel; + + public IXUILabel HelpBtnLabel; + + public IXUILabel LeftTimeLabel; + + public IXUILabel CurrentValueLabel; + + public IXUILabel SingleTaskBountyLabel; + + public IXUILabel ProgressLabel; + + public IXUIScrollView BountyListScrollView; + + public IXUIButton AboutBtn; + + public GameObject FreeLabelObj; + + public Transform MailRoot; + + public Transform effectRoot; + + public IXUISprite MailCloseSprite; + + public IXUIWrapContent MailWrapContent; + + public IXUIScrollView MailScrollView; + + public IXUIButton SendGrateFulBtn; + + public GameObject CommitBtnRedpoint; + + public GameObject RightItem; + + private void Awake() + { + this.AboutBtn = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.BountyListTrans = base.transform.Find("BountyList"); + this.BountyItemPool.SetupPool(this.BountyListTrans.gameObject, this.BountyListTrans.Find("BountyItem").gameObject, 12u, false); + this.TaskDecLabel = (base.transform.Find("Text/TaskDec").GetComponent("XUILabel") as IXUILabel); + this.GetLabel = (base.transform.transform.Find("GetBtn/GetLabel").GetComponent("XUILabel") as IXUILabel); + this.RewardsParentTrans = base.transform.Find("TaskRewards"); + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.RefreshBtn = (base.transform.Find("RefreshBtn").GetComponent("XUIButton") as IXUIButton); + this.HelpBtn = (base.transform.Find("ReqHelp").GetComponent("XUIButton") as IXUIButton); + this.CommitBtn = (base.transform.Find("CommitBtn").GetComponent("XUIButton") as IXUIButton); + this.CommitBtnRedpoint = base.transform.Find("CommitBtn/RedPoint").gameObject; + this.GetBtn = (base.transform.Find("GetBtn").GetComponent("XUIButton") as IXUIButton); + this.ChestX = base.transform.transform.Find("ChestX"); + this.ChestXExpLabel = (this.ChestX.Find("Exp").GetComponent("XUILabel") as IXUILabel); + this.FreeLabelObj = base.transform.Find("RefreshBtn/FreeLabel").gameObject; + this.DragonCoinCostLabel = (base.transform.Find("RefreshBtn/godLabel").GetComponent("XUILabel") as IXUILabel); + this.WeeklyAskLabel = (base.transform.Find("AskTimesLabel").GetComponent("XUILabel") as IXUILabel); + this.CommitLabel = (base.transform.Find("CommitBtn/T").GetComponent("XUILabel") as IXUILabel); + this.HelpBtnLabel = (base.transform.Find("ReqHelp/GetLabel").GetComponent("XUILabel") as IXUILabel); + this.LeftTimeLabel = (base.transform.Find("LeftTimeLabel").GetComponent("XUILabel") as IXUILabel); + this.CurrentValueLabel = (base.transform.Find("CurrentOwnedNum").GetComponent("XUILabel") as IXUILabel); + this.SingleTaskBountyLabel = (base.transform.Find("SingleTaskBountyValue").GetComponent("XUILabel") as IXUILabel); + this.ProgressLabel = (base.transform.Find("SingleTaskBountyValue/t").GetComponent("XUILabel") as IXUILabel); + this.MailRoot = base.transform.Find("mail"); + this.MailCloseSprite = (this.MailRoot.Find("Bg/Black").GetComponent("XUISprite") as IXUISprite); + this.MailWrapContent = (this.MailRoot.Find("MailDlg/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.MailScrollView = (this.MailRoot.Find("MailDlg").GetComponent("XUIScrollView") as IXUIScrollView); + this.SendGrateFulBtn = (this.MailRoot.Find("OK").GetComponent("XUIButton") as IXUIButton); + this.BountyListScrollView = (this.BountyListTrans.GetComponent("XUIScrollView") as IXUIScrollView); + this.RightItem = base.transform.Find("RightItem").gameObject; + this.effectRoot = base.transform.Find("EffectPanel/Effect"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs.meta new file mode 100644 index 00000000..c4cf5e66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23ea9b775833e084ca4e9e0feae0f417 +timeCreated: 1611403458 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyDocument.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyDocument.cs new file mode 100644 index 00000000..28994f9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyDocument.cs @@ -0,0 +1,577 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildWeeklyBountyDocument : XDocComponent + { + public override uint ID + { + get + { + return XGuildWeeklyBountyDocument.uuID; + } + } + + public static XGuildWeeklyBountyDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XGuildWeeklyBountyDocument.uuID) as XGuildWeeklyBountyDocument; + } + } + + public List CurGuildWeeklyTaskList + { + get + { + return this._curGuildWeeklyTaskList; + } + } + + public List RewardedBoxList + { + get + { + return this._rewardedBoxList; + } + } + + public uint WeeklyScore + { + get + { + return this._weeklyScore; + } + } + + public uint WeeklyAskedHelpNum + { + get + { + return this._weeklyAskedHelpNum; + } + } + + public List ChestValueList + { + get + { + return this._chestValueList; + } + } + + public List TaskHelpInfoList + { + get + { + return this._taskHelpInfoList; + } + } + + public double ActivityLeftTime + { + get + { + return this._activityLeftTime; + } + set + { + this._activityLeftTime = value; + } + } + + public uint RemainedFreshTimes + { + get + { + return this._remainedFreshTimes; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGuildWeeklyBountyDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private uint _weeklyScore; + + private uint _weeklyAskedHelpNum; + + private uint _taskRoleLevel = 0u; + + private List _rewardedBoxList = new List(); + + private List _curGuildWeeklyTaskList = new List(); + + private Dictionary> _guildTaskRewardWithMap = new Dictionary>(); + + private List _chestValueList = new List(); + + private List _taskHelpInfoList = new List(); + + private double _activityLeftTime = 0.0; + + private uint _remainedFreshTimes = 0u; + + public static void Execute(OnLoadedCallback callback = null) + { + XGuildWeeklyBountyDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void SendGetWeeklyTaskInfo() + { + RpcC2G_GetWeeklyTaskInfo rpc = new RpcC2G_GetWeeklyTaskInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetWeeklyTaskInfo(GetWeeklyTaskInfoRes oRes) + { + this._weeklyScore = oRes.score; + this._weeklyAskedHelpNum = oRes.askhelp_num; + this._rewardedBoxList = oRes.rewarded_box; + this._taskHelpInfoList = oRes.helpinfo; + this._taskRoleLevel = oRes.accept_level; + this._activityLeftTime = oRes.lefttime; + this._remainedFreshTimes = oRes.remain_free_refresh_count; + this.UpdateTaskContent(oRes.task); + this.ResetRewardsMap(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshUI(); + } + } + + public bool HasFinishWeeklyTasks() + { + return this.IsAllBoxsReward() && this.IsAllTaskFinished(); + } + + public void SendToGetWeeklyTaskReward(uint type, uint value) + { + RpcC2G_GetWeeklyTaskReward rpcC2G_GetWeeklyTaskReward = new RpcC2G_GetWeeklyTaskReward(); + rpcC2G_GetWeeklyTaskReward.oArg.type = type; + rpcC2G_GetWeeklyTaskReward.oArg.value = value; + XSingleton.singleton.Send(rpcC2G_GetWeeklyTaskReward); + } + + public void OnGetWeeklyTaskReward(GetWeeklyTaskRewardArg oArg, GetWeeklyTaskRewardRes oRes) + { + bool flag = oArg.type == 1u && (ulong)oArg.value < (ulong)((long)this._curGuildWeeklyTaskList.Count); + if (flag) + { + this._weeklyScore = oRes.score; + for (int i = 0; i < this._curGuildWeeklyTaskList.Count; i++) + { + GuildWeeklyTaskInfo guildWeeklyTaskInfo = this._curGuildWeeklyTaskList[i]; + bool flag2 = guildWeeklyTaskInfo.originIndex == oArg.value; + if (flag2) + { + guildWeeklyTaskInfo.isRewarded = true; + break; + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshTaskList(false); + DlgBase.singleton.RefreshChestList(); + DlgBase.singleton.PlayCompleteEffect(); + } + } + else + { + bool flag4 = oArg.type == 2u; + if (flag4) + { + bool flag5 = !this._rewardedBoxList.Contains(oArg.value); + if (flag5) + { + this._rewardedBoxList.Add(oArg.value); + } + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.RefreshChestList(); + } + } + } + } + + private bool IsAllBoxsReward() + { + List chestValueList = XGuildWeeklyBountyDocument.Doc.ChestValueList; + for (int i = 0; i < chestValueList.Count; i++) + { + bool flag = !this.RewardedBoxList.Contains(chestValueList[i]); + if (flag) + { + return false; + } + } + return true; + } + + private bool IsAllTaskFinished() + { + for (int i = 0; i < this._curGuildWeeklyTaskList.Count; i++) + { + bool flag = !this._curGuildWeeklyTaskList[i].isRewarded; + if (flag) + { + return false; + } + } + return true; + } + + private void UpdateTaskContent(List task) + { + this.CurGuildWeeklyTaskList.Clear(); + for (int i = 0; i < task.Count; i++) + { + WeeklyTaskInfo weeklyTaskInfo = task[i]; + this.CurGuildWeeklyTaskList.Add(new GuildWeeklyTaskInfo + { + taskID = weeklyTaskInfo.id, + step = weeklyTaskInfo.step, + isRewarded = weeklyTaskInfo.is_rewarded, + hasAsked = weeklyTaskInfo.ask_help, + refreshedCount = weeklyTaskInfo.refresh_count, + originIndex = weeklyTaskInfo.index, + category = WeeklyTaskCategory.None + }); + } + this._curGuildWeeklyTaskList.Sort(new Comparison(this.SortWeeklyTaskList)); + } + + private int SortWeeklyTaskList(GuildWeeklyTaskInfo x, GuildWeeklyTaskInfo y) + { + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(x.taskID); + DailyTask.RowData dailyTaskTableInfoByID2 = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(y.taskID); + bool flag = dailyTaskTableInfoByID != null && dailyTaskTableInfoByID2 != null; + if (flag) + { + bool flag2 = x.isRewarded ^ y.isRewarded; + if (flag2) + { + bool isRewarded = x.isRewarded; + if (isRewarded) + { + return 1; + } + bool isRewarded2 = y.isRewarded; + if (isRewarded2) + { + return -1; + } + } + else + { + bool flag3 = !x.isRewarded && x.step >= dailyTaskTableInfoByID.conditionNum; + bool flag4 = !y.isRewarded && y.step >= dailyTaskTableInfoByID2.conditionNum; + bool flag5 = flag3 ^ flag4; + if (flag5) + { + bool flag6 = flag3; + if (flag6) + { + return -1; + } + bool flag7 = flag4; + if (flag7) + { + return 1; + } + } + else + { + bool flag8 = dailyTaskTableInfoByID.taskquality != dailyTaskTableInfoByID2.taskquality; + if (flag8) + { + return (int)(dailyTaskTableInfoByID2.taskquality - dailyTaskTableInfoByID.taskquality); + } + } + } + } + return (int)(x.taskID - y.taskID); + } + + private void ResetRewardsMap() + { + this._guildTaskRewardWithMap.Clear(); + this._chestValueList.Clear(); + for (int i = 0; i < XGuildDailyTaskDocument.DailyTaskRewardTable.Table.Length; i++) + { + DailyTaskReward.RowData rowData = XGuildDailyTaskDocument.DailyTaskRewardTable.Table[i]; + uint num = rowData.level[0]; + uint num2 = rowData.level[1]; + bool flag = this._taskRoleLevel >= num && this._taskRoleLevel <= num2; + if (flag) + { + uint mappingValueWithQualityAndType = XGuildDailyTaskDocument.GetMappingValueWithQualityAndType((GuildTaskType)rowData.category, rowData.tasktype, rowData.taskquality); + bool flag2 = rowData.category == 2u && !this._guildTaskRewardWithMap.ContainsKey(mappingValueWithQualityAndType); + if (flag2) + { + this._guildTaskRewardWithMap.Add(mappingValueWithQualityAndType, new List()); + for (int j = 0; j < rowData.taskreward.Count; j++) + { + this._guildTaskRewardWithMap[mappingValueWithQualityAndType].Add(new GuildTaskReward + { + itemID = rowData.taskreward[j, 0], + count = rowData.taskreward[j, 1] + }); + } + } + bool flag3 = rowData.category == 2u && rowData.tasktype == 2u; + if (flag3) + { + bool flag4 = !this._chestValueList.Contains(rowData.taskquality); + if (flag4) + { + this._chestValueList.Add(rowData.taskquality); + } + } + } + } + this._chestValueList.Sort(); + } + + public List GetSingleTaskRewardInfoByID(GuildTaskType type, uint taskID) + { + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(taskID); + bool flag = dailyTaskTableInfoByID != null; + if (flag) + { + uint mappingValueWithQualityAndType = XGuildDailyTaskDocument.GetMappingValueWithQualityAndType(type, 1u, dailyTaskTableInfoByID.taskquality); + List result = new List(); + bool flag2 = this._guildTaskRewardWithMap.TryGetValue(mappingValueWithQualityAndType, out result); + if (flag2) + { + return result; + } + } + return new List(); + } + + public List GetTotalTaskRewardInfo(GuildTaskType type, uint count) + { + uint mappingValueWithQualityAndType = XGuildDailyTaskDocument.GetMappingValueWithQualityAndType(type, 2u, count); + List list = new List(); + bool flag = this._guildTaskRewardWithMap.TryGetValue(mappingValueWithQualityAndType, out list); + List result; + if (flag) + { + result = list; + } + else + { + result = new List(); + } + return result; + } + + public void SendCommitWeeklyItem(uint index, List items) + { + RpcC2G_TurnOverWeeklyTaskItem rpcC2G_TurnOverWeeklyTaskItem = new RpcC2G_TurnOverWeeklyTaskItem(); + rpcC2G_TurnOverWeeklyTaskItem.oArg.index = index; + rpcC2G_TurnOverWeeklyTaskItem.oArg.itemuid.Clear(); + rpcC2G_TurnOverWeeklyTaskItem.oArg.itemuid.AddRange(items); + XSingleton.singleton.Send(rpcC2G_TurnOverWeeklyTaskItem); + } + + public void OnTurnOverWeeklyTaskReply(TurnOverWeeklyTaskItemArg oArg, TurnOverWeeklyTaskItemRes oRes) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("weeklyCommitSuccess"), "fece00"); + bool flag = (ulong)oArg.index < (ulong)((long)this._curGuildWeeklyTaskList.Count); + if (flag) + { + for (int i = 0; i < this._curGuildWeeklyTaskList.Count; i++) + { + bool flag2 = oArg.index == this._curGuildWeeklyTaskList[i].originIndex; + if (flag2) + { + GuildWeeklyTaskInfo guildWeeklyTaskInfo = this._curGuildWeeklyTaskList[i]; + guildWeeklyTaskInfo.step += (uint)oArg.itemuid.Count; + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshTaskList(false); + } + break; + } + } + } + } + + public void SendToRefreshTaskList(uint taskIndex) + { + RpcC2G_RefreshWeeklyTask rpcC2G_RefreshWeeklyTask = new RpcC2G_RefreshWeeklyTask(); + rpcC2G_RefreshWeeklyTask.oArg.index = taskIndex; + XSingleton.singleton.Send(rpcC2G_RefreshWeeklyTask); + } + + internal void OnRefreshTaskList(RefreshWeeklyTaskArg oArg, RefreshWeeklyTaskRes oRes) + { + bool flag = this._remainedFreshTimes > 0u; + if (flag) + { + this._remainedFreshTimes -= 1u; + } + for (int i = 0; i < this._curGuildWeeklyTaskList.Count; i++) + { + bool flag2 = this._curGuildWeeklyTaskList[i].originIndex == oArg.index; + if (flag2) + { + WeeklyTaskInfo task = oRes.task; + this.CurGuildWeeklyTaskList[i] = new GuildWeeklyTaskInfo + { + taskID = task.id, + step = task.step, + isRewarded = task.is_rewarded, + hasAsked = task.ask_help, + refreshedCount = task.refresh_count, + originIndex = task.index + }; + break; + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshTaskList(false); + DlgBase.singleton.PlayRefreshEffect(); + } + } + + public int GetTaskOriginalIndexByID(uint curSelectTaskID) + { + for (int i = 0; i < this._curGuildWeeklyTaskList.Count; i++) + { + bool flag = this._curGuildWeeklyTaskList[i].taskID == curSelectTaskID; + if (flag) + { + return (int)this._curGuildWeeklyTaskList[i].originIndex; + } + } + return -1; + } + + public GuildWeeklyTaskInfo GetTaskInfoByTaskID(uint curSelectTaskID) + { + for (int i = 0; i < this._curGuildWeeklyTaskList.Count; i++) + { + bool flag = this._curGuildWeeklyTaskList[i].taskID == curSelectTaskID; + if (flag) + { + return this._curGuildWeeklyTaskList[i]; + } + } + return null; + } + + public GuildWeeklyTaskInfo GetTaskInfoByIndex(uint curSelectIndex) + { + for (int i = 0; i < this._curGuildWeeklyTaskList.Count; i++) + { + bool flag = this._curGuildWeeklyTaskList[i].originIndex == curSelectIndex; + if (flag) + { + return this._curGuildWeeklyTaskList[i]; + } + } + return null; + } + + public int GetRewardedTaskCount() + { + int num = 0; + for (int i = 0; i < this._curGuildWeeklyTaskList.Count; i++) + { + bool isRewarded = this._curGuildWeeklyTaskList[i].isRewarded; + if (isRewarded) + { + num++; + } + } + return num; + } + + public void OnGetWeeklyHelpReply(DailyTaskAskHelpArg oArg, DailyTaskAskHelpRes oRes) + { + bool flag = oRes.code == ErrorCode.ERR_SUCCESS; + if (flag) + { + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(oArg.task_id); + GuildWeeklyTaskInfo taskInfoByTaskID = this.GetTaskInfoByTaskID(oArg.task_id); + bool flag2 = taskInfoByTaskID != null && dailyTaskTableInfoByID != null; + if (flag2) + { + bool flag3 = dailyTaskTableInfoByID.tasktype == 4u; + if (flag3) + { + XGuildDailyTaskDocument.Doc.SendGuildDonateReq(dailyTaskTableInfoByID.conditionNum - taskInfoByTaskID.step, dailyTaskTableInfoByID.BQ[0, 0], oRes.ask_uid, NoticeType.NT_GUILD_Weekly_DONATE_REQ); + } + else + { + XGuildDailyTaskDocument.Doc.SendGuildDonateReq(dailyTaskTableInfoByID.conditionNum - taskInfoByTaskID.step, dailyTaskTableInfoByID.conditionId[0], oRes.ask_uid, NoticeType.NT_GUILD_Weekly_DONATE_REQ); + } + taskInfoByTaskID.hasAsked = true; + this._weeklyAskedHelpNum += 1u; + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshTaskItem(); + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.code, "fece00"); + } + } + + public bool GoToTakeTask() + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + XTaskRecord taskRecord = specificDocument.TaskRecord; + for (int i = 0; i < taskRecord.Tasks.Count; i++) + { + bool flag = taskRecord.Tasks[i].Status == TaskStatus.TaskStatus_CanTake && taskRecord.Tasks[i].TableData.TaskType == 7u; + if (flag) + { + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyDocument.cs.meta new file mode 100644 index 00000000..364de64b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9a05f3cc96e5874aacdd8a331b5223a +timeCreated: 1611404539 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyView.cs b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyView.cs new file mode 100644 index 00000000..a0f16a28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyView.cs @@ -0,0 +1,917 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGuildWeeklyBountyView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildWeeklyBountyView"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return 904; + } + } + + private const int colNum = 4; + + private uint _curSelectIndex = 0u; + + private IXUICheckBox _selectCheck; + + private List _hasSendedIndex = new List(); + + private int _curSelectMailIndex = 0; + + private XFx _refreshTaskEffect; + + private XFx _completedTaskEffect; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + bool flag = this._refreshTaskEffect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._refreshTaskEffect, true); + } + bool flag2 = this._completedTaskEffect != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._completedTaskEffect, true); + } + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnHide() + { + this._curSelectIndex = 0u; + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this._completedTaskEffect != null; + if (flag) + { + this._completedTaskEffect.SetActive(false); + } + bool flag2 = this._refreshTaskEffect != null; + if (flag2) + { + this._completedTaskEffect.SetActive(false); + } + base.uiBehaviour.MailRoot.gameObject.SetActive(false); + XGuildWeeklyBountyDocument.Doc.SendGetWeeklyTaskInfo(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = this._completedTaskEffect != null; + if (flag) + { + this._completedTaskEffect.SetActive(false); + } + bool flag2 = this._refreshTaskEffect != null; + if (flag2) + { + this._refreshTaskEffect.SetActive(false); + } + base.uiBehaviour.MailRoot.gameObject.SetActive(false); + XGuildWeeklyBountyDocument.Doc.SendGetWeeklyTaskInfo(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + double num = XGuildWeeklyBountyDocument.Doc.ActivityLeftTime; + num -= (double)Time.deltaTime; + XGuildWeeklyBountyDocument.Doc.ActivityLeftTime = num; + bool flag = (int)num >= 1; + if (flag) + { + bool flag2 = num >= 43200.0; + string str; + if (flag2) + { + str = XSingleton.singleton.TimeDuarationFormatString((int)num, 4); + } + else + { + str = XSingleton.singleton.TimeDuarationFormatString((int)num, 5); + } + base.uiBehaviour.LeftTimeLabel.SetText(XStringDefineProxy.GetString("WeeklyTaskLeftTime") + str); + } + else + { + base.uiBehaviour.LeftTimeLabel.SetText(XStringDefineProxy.GetString("WeeklyTaskFinished")); + } + } + + public void RefreshUI() + { + this.RefreshMailInfo(); + this.RefreshTaskList(true); + this.RefreshChestList(); + } + + public void RefreshTaskItem() + { + GuildWeeklyTaskInfo taskInfoByIndex = XGuildWeeklyBountyDocument.Doc.GetTaskInfoByIndex(this._curSelectIndex); + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID((taskInfoByIndex == null) ? 0u : taskInfoByIndex.taskID); + bool flag = dailyTaskTableInfoByID == null; + if (!flag) + { + this.SetOpBtnState(taskInfoByIndex, dailyTaskTableInfoByID); + IXUISprite ixuisprite = base.uiBehaviour.RightItem.transform.Find("Quality").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = base.uiBehaviour.RightItem.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(ixuisprite.spriteName.Substring(0, ixuisprite.spriteName.Length - 1) + dailyTaskTableInfoByID.taskquality); + ixuisprite2.SetSprite(dailyTaskTableInfoByID.TaskIcon, dailyTaskTableInfoByID.AtlasName, false); + bool flag2 = dailyTaskTableInfoByID.tasktype == 1u || dailyTaskTableInfoByID.tasktype == 4u; + base.uiBehaviour.GetLabel.SetText(flag2 ? XSingleton.singleton.GetString("GotoObtain") : XSingleton.singleton.GetString("PVPActivity_Go")); + base.uiBehaviour.TaskDecLabel.SetText((dailyTaskTableInfoByID == null) ? "" : dailyTaskTableInfoByID.taskdescription); + int @int = XSingleton.singleton.GetInt("WeeklyTaskAskHelpNum"); + base.uiBehaviour.WeeklyAskLabel.SetText(string.Format(XStringDefineProxy.GetString("WeeklyAsk"), XGuildWeeklyBountyDocument.Doc.WeeklyAskedHelpNum, @int)); + base.uiBehaviour.HelpBtn.SetEnable(!taskInfoByIndex.hasAsked && (ulong)XGuildWeeklyBountyDocument.Doc.WeeklyAskedHelpNum < (ulong)((long)@int) && !taskInfoByIndex.isRewarded, false); + base.uiBehaviour.HelpBtn.gameObject.SetActive(flag2); + base.uiBehaviour.WeeklyAskLabel.gameObject.SetActive(flag2); + base.uiBehaviour.HelpBtn.ID = (ulong)dailyTaskTableInfoByID.taskID; + base.uiBehaviour.HelpBtnLabel.SetText(taskInfoByIndex.hasAsked ? XStringDefineProxy.GetString("DailyTaskGetted") : XStringDefineProxy.GetString("DailyTaskGet")); + int refreshedCount = (int)taskInfoByIndex.refreshedCount; + int int2 = XSingleton.singleton.GetInt("WeeklyTaskRefreshCount"); + base.uiBehaviour.RefreshBtn.SetEnable(refreshedCount < int2 && !taskInfoByIndex.isRewarded, false); + base.uiBehaviour.RefreshBtn.ID = (ulong)dailyTaskTableInfoByID.taskID; + int num = 0; + int int3 = XSingleton.singleton.GetInt("WeekyFreeRefreshNum"); + bool flag3 = XGuildWeeklyBountyDocument.Doc.RemainedFreshTimes == 0u; + if (flag3) + { + List intList = XSingleton.singleton.GetIntList("WeeklyTaskRefreshCost"); + num = intList[Mathf.Min(new int[] + { + refreshedCount, + int2, + intList.Count - 1 + })]; + } + string @string = XStringDefineProxy.GetString("WeeklyFreeRefresh"); + IXUILabel ixuilabel = base.uiBehaviour.FreeLabelObj.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Concat(new object[] + { + @string, + XGuildWeeklyBountyDocument.Doc.RemainedFreshTimes, + "/", + int3 + })); + base.uiBehaviour.FreeLabelObj.SetActive(num == 0); + base.uiBehaviour.DragonCoinCostLabel.SetText(string.Format(XStringDefineProxy.GetString("WeelyDragonCoinCost"), num)); + base.uiBehaviour.DragonCoinCostLabel.gameObject.SetActive(num > 0); + List singleTaskRewardInfoByID = XGuildWeeklyBountyDocument.Doc.GetSingleTaskRewardInfoByID(GuildTaskType.WeeklyTask, taskInfoByIndex.taskID); + int num2 = (singleTaskRewardInfoByID == null) ? 0 : singleTaskRewardInfoByID.Count; + int num3 = Mathf.Min(num2, base.uiBehaviour.RewardsParentTrans.childCount); + int i = 0; + bool flag4 = XActivityDocument.Doc.IsInnerDropTime(904u); + while (i < num3) + { + GameObject gameObject = base.uiBehaviour.RewardsParentTrans.GetChild(i).gameObject; + gameObject.SetActive(true); + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + bool flag5 = singleTaskRewardInfoByID[i].itemID == 4u && specificDocument.IsInLevelSeal(); + int itemCount; + if (flag5) + { + itemCount = (int)(singleTaskRewardInfoByID[i].count * 0.5); + } + else + { + itemCount = (int)singleTaskRewardInfoByID[i].count; + } + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)singleTaskRewardInfoByID[i].itemID, itemCount, true); + IXUISprite ixuisprite3 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)singleTaskRewardInfoByID[i].itemID; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + Transform transform = gameObject.transform.Find("Double"); + bool flag6 = transform != null; + if (flag6) + { + transform.gameObject.SetActive(flag4 && singleTaskRewardInfoByID[i].itemID != 4u); + } + i++; + } + while (i < base.uiBehaviour.RewardsParentTrans.childCount) + { + base.uiBehaviour.RewardsParentTrans.GetChild(i++).gameObject.SetActive(false); + } + base.uiBehaviour.ProgressLabel.SetText(taskInfoByIndex.step + "/" + dailyTaskTableInfoByID.conditionNum); + base.uiBehaviour.SingleTaskBountyLabel.SetText(XStringDefineProxy.GetString("CurrentTaskScoreText") + dailyTaskTableInfoByID.score); + } + } + + public void PlayRefreshEffect() + { + bool flag = this._refreshTaskEffect != null; + if (flag) + { + this._refreshTaskEffect.SetActive(true); + this._refreshTaskEffect.Play(base.uiBehaviour.effectRoot, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + public void PlayCompleteEffect() + { + bool flag = this._completedTaskEffect != null; + if (flag) + { + this._completedTaskEffect.SetActive(true); + this._completedTaskEffect.Play(base.uiBehaviour.effectRoot, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + public void RefreshTaskItemALL() + { + bool flag = this._selectCheck != null; + if (flag) + { + GuildWeeklyTaskInfo taskInfoByIndex = XGuildWeeklyBountyDocument.Doc.GetTaskInfoByIndex(this._curSelectIndex); + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID((taskInfoByIndex == null) ? 0u : taskInfoByIndex.taskID); + bool flag2 = dailyTaskTableInfoByID != null; + if (flag2) + { + IXUILabel ixuilabel = this._selectCheck.gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(taskInfoByIndex.step + "/" + dailyTaskTableInfoByID.conditionNum); + GameObject gameObject = this._selectCheck.gameObject.transform.Find("RedPoint").gameObject; + gameObject.SetActive(taskInfoByIndex.step >= dailyTaskTableInfoByID.conditionNum && !taskInfoByIndex.isRewarded); + } + } + this.RefreshTaskItem(); + } + + public void RefreshChestList() + { + List chestValueList = XGuildWeeklyBountyDocument.Doc.ChestValueList; + uint weeklyScore = XGuildWeeklyBountyDocument.Doc.WeeklyScore; + int i = 0; + bool flag = chestValueList != null && chestValueList.Count > 0; + if (flag) + { + while (i < chestValueList.Count - 1) + { + bool flag2 = weeklyScore >= chestValueList[i] && !XGuildWeeklyBountyDocument.Doc.RewardedBoxList.Contains(chestValueList[i]); + if (flag2) + { + break; + } + bool flag3 = weeklyScore < chestValueList[i]; + if (flag3) + { + break; + } + i++; + } + } + bool flag4 = i >= chestValueList.Count; + if (flag4) + { + i = chestValueList.Count - 1; + } + this.UpdateChestItem(base.uiBehaviour.ChestX.gameObject, i); + base.uiBehaviour.CurrentValueLabel.SetText(XStringDefineProxy.GetString("WeeklyTaskTotalScore") + XGuildWeeklyBountyDocument.Doc.WeeklyScore); + } + + private void InitProperties() + { + base.uiBehaviour.RefreshBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshTasks)); + base.uiBehaviour.GetBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetTaskItem)); + base.uiBehaviour.HelpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAskWeeklyHelp)); + base.uiBehaviour.CommitBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSummitTaskItem)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseView)); + base.uiBehaviour.MailRoot.gameObject.SetActive(true); + base.uiBehaviour.MailWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnMailWrapContentInit)); + base.uiBehaviour.MailWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnMailWrapContentUpdate)); + base.uiBehaviour.MailCloseSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseMailView)); + base.uiBehaviour.SendGrateFulBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSendGrateFulBtn)); + base.uiBehaviour.AboutBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowCommonHelpView)); + this._refreshTaskEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_xuanshang_Clip01", null, true); + this._refreshTaskEffect.SetActive(false); + this._completedTaskEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_wanchengxuanshang_Clip01", null, true); + this._completedTaskEffect.SetActive(false); + base.uiBehaviour.GetBtn.gameObject.SetActive(false); + } + + private bool OnShowCommonHelpView(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildWeeklyBountyTask); + return true; + } + + private void OnMailWrapContentInit(Transform itemTransform, int index) + { + } + + private bool OnSelectMailInfoItem(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this._curSelectMailIndex = (int)iXUICheckBox.ID; + base.uiBehaviour.SendGrateFulBtn.SetEnable(!this._hasSendedIndex.Contains(this._curSelectMailIndex), false); + } + return true; + } + + private bool OnClickSendGrateFulBtn(IXUIButton button) + { + List taskHelpInfoList = XGuildWeeklyBountyDocument.Doc.TaskHelpInfoList; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + XInvitationDocument specificDocument2 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + NoticeTable.RowData noticeData = specificDocument2.GetNoticeData(NoticeType.NT_GUILD_Weekly_Help_Thanks_REQ); + bool flag2 = noticeData == null; + if (flag2) + { + result = false; + } + else + { + List list = new List(); + ChatParam chatParam = new ChatParam(); + chatParam.link = new ChatParamLink(); + ChatParam chatParam2 = new ChatParam(); + chatParam2.role = new ChatParamRole(); + chatParam2.role.uniqueid = XSingleton.singleton.XPlayerData.RoleID; + chatParam2.role.name = XSingleton.singleton.XPlayerData.Name; + chatParam2.role.profession = XSingleton.singleton.XPlayerData.TypeID; + string text = ""; + List list2 = new List(); + for (int i = 0; i < taskHelpInfoList.Count; i++) + { + bool flag3 = !list2.Contains(taskHelpInfoList[i].rolename); + if (flag3) + { + list2.Add(taskHelpInfoList[i].rolename); + text = text + taskHelpInfoList[i].rolename + " "; + } + } + ChatParam chatParam3 = new ChatParam(); + chatParam3.role = new ChatParamRole(); + chatParam3.role.uniqueid = 0UL; + chatParam3.role.name = text; + chatParam3.role.profession = 0u; + list.Add(chatParam2); + list.Add(chatParam3); + list.Add(chatParam); + DlgBase.singleton.SendChatContent(noticeData.info, (ChatChannelType)noticeData.channel, true, list, true, 0UL, 0f, false, false); + this._hasSendedIndex.Add(this._curSelectMailIndex); + this.OnCloseMailView(null); + result = true; + } + } + return result; + } + + private void OnCloseMailView(IXUISprite uiSprite) + { + base.uiBehaviour.MailRoot.gameObject.SetActive(false); + List taskHelpInfoList = XGuildWeeklyBountyDocument.Doc.TaskHelpInfoList; + taskHelpInfoList.Clear(); + this._hasSendedIndex.Clear(); + } + + private bool OnCloseView(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + private void SetOpBtnState(GuildWeeklyTaskInfo selectTaskinfo, DailyTask.RowData taskInfo) + { + bool flag = taskInfo.tasktype == 1u || taskInfo.tasktype == 4u; + base.uiBehaviour.CommitBtn.SetEnable(!selectTaskinfo.isRewarded, false); + bool isRewarded = selectTaskinfo.isRewarded; + string @string; + if (isRewarded) + { + @string = XStringDefineProxy.GetString("WeeklyAreadyCommitted"); + } + else + { + bool flag2 = selectTaskinfo.step >= taskInfo.conditionNum; + if (flag2) + { + @string = XStringDefineProxy.GetString("WeeklyToCommit"); + } + else + { + bool flag3 = flag; + if (flag3) + { + bool flag4 = taskInfo.tasktype == 1u; + ulong num; + if (flag4) + { + num = XBagDocument.BagDoc.GetItemCount((int)taskInfo.conditionId[0]); + } + else + { + ItemType itemType = (ItemType)(taskInfo.conditionId[0] / 100u); + ItemQuality quality = (ItemQuality)(taskInfo.conditionId[0] % 100u); + num = (ulong)((long)XBagDocument.BagDoc.GetItemsByTypeAndQuality(1UL << (int)itemType, quality).Count); + } + bool flag5 = num <= 0UL; + if (flag5) + { + @string = XSingleton.singleton.GetString("GotoObtain"); + } + else + { + @string = XStringDefineProxy.GetString("WeeklyCommitItem"); + } + } + else + { + @string = XSingleton.singleton.GetString("PVPActivity_Go"); + } + } + } + base.uiBehaviour.CommitLabel.SetText(@string); + base.uiBehaviour.CommitBtnRedpoint.SetActive(!selectTaskinfo.isRewarded && selectTaskinfo.step >= taskInfo.conditionNum); + } + + private bool OnSummitTaskItem(IXUIButton button) + { + bool flag = this._curSelectIndex >= 0u; + if (flag) + { + GuildWeeklyTaskInfo taskInfoByIndex = XGuildWeeklyBountyDocument.Doc.GetTaskInfoByIndex(this._curSelectIndex); + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID((taskInfoByIndex == null) ? 0u : taskInfoByIndex.taskID); + bool flag2 = dailyTaskTableInfoByID != null; + if (flag2) + { + bool flag3 = taskInfoByIndex.step >= dailyTaskTableInfoByID.conditionNum; + if (flag3) + { + XGuildWeeklyBountyDocument.Doc.SendToGetWeeklyTaskReward(1u, this._curSelectIndex); + } + else + { + bool flag4 = dailyTaskTableInfoByID.tasktype == 1u || dailyTaskTableInfoByID.tasktype == 4u; + bool flag5 = flag4; + if (flag5) + { + bool flag6 = dailyTaskTableInfoByID.tasktype == 1u; + ulong num; + if (flag6) + { + num = XBagDocument.BagDoc.GetItemCount((int)dailyTaskTableInfoByID.conditionId[0]); + } + else + { + ItemType itemType = (ItemType)(dailyTaskTableInfoByID.conditionId[0] / 100u); + ItemQuality quality = (ItemQuality)(dailyTaskTableInfoByID.conditionId[0] % 100u); + num = (ulong)((long)XBagDocument.BagDoc.GetItemsByTypeAndQuality(1UL << (int)itemType, quality).Count); + } + bool flag7 = num == 0UL; + if (flag7) + { + this.OnGetTaskItem(null); + } + else + { + bool flag8 = dailyTaskTableInfoByID.tasktype == 4u; + if (flag8) + { + ItemType type = (ItemType)(dailyTaskTableInfoByID.conditionId[0] / 100u); + ItemQuality quality2 = (ItemQuality)(dailyTaskTableInfoByID.conditionId[0] % 100u); + DlgBase.singleton.ShowView(new XShowSameQualityItemsView.SelectItemsHandler(this.OnSelectQualityItem), type, quality2, XStringDefineProxy.GetString("WeelyCommitTip"), (int)dailyTaskTableInfoByID.conditionNum, (int)taskInfoByIndex.step); + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)dailyTaskTableInfoByID.conditionId[0]); + bool flag9 = itemConf != null; + if (flag9) + { + bool flag10 = itemConf.OverCnt == 1; + if (flag10) + { + List itemList; + XBagDocument.BagDoc.GetItemByItemId((int)dailyTaskTableInfoByID.conditionId[0], out itemList); + DlgBase.singleton.ShowView(new XShowSameQualityItemsView.SelectItemsHandler(this.OnSelectQualityItem), itemList, XStringDefineProxy.GetString("WeelyCommitTip"), (int)dailyTaskTableInfoByID.conditionNum, (int)taskInfoByIndex.step); + } + else + { + int num2 = (int)XBagDocument.BagDoc.GetItemCount((int)dailyTaskTableInfoByID.conditionId[0]); + XSingleton.singleton.ShowSettingNumberDialog(dailyTaskTableInfoByID.conditionId[0], XSingleton.singleton.GetString("WeeklyCommitItem"), 1u, (uint)Mathf.Min((float)num2, dailyTaskTableInfoByID.conditionNum - taskInfoByIndex.step), 1u, new ModalSettingNumberDlg.GetInputNumber(this.onSummitItemID), 50); + } + } + } + } + } + else + { + this.OnGetTaskItem(null); + } + } + } + } + return true; + } + + private void onSummitItemID(uint number) + { + bool flag = this._curSelectIndex >= 0u; + if (flag) + { + GuildWeeklyTaskInfo taskInfoByIndex = XGuildWeeklyBountyDocument.Doc.GetTaskInfoByIndex(this._curSelectIndex); + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID((taskInfoByIndex == null) ? 0u : taskInfoByIndex.taskID); + bool flag2 = dailyTaskTableInfoByID != null; + if (flag2) + { + List list = new List(); + List list2 = new List(); + bool itemByItemId = XBagDocument.BagDoc.GetItemByItemId((int)dailyTaskTableInfoByID.conditionId[0], out list2); + if (itemByItemId) + { + int num = Mathf.Min((int)number, list2.Count); + for (int i = 0; i < num; i++) + { + list.Add(list2[i].uid); + } + XGuildWeeklyBountyDocument.Doc.SendCommitWeeklyItem(this._curSelectIndex, list); + } + } + } + } + + private void OnSelectQualityItem(List itemList) + { + bool flag = itemList.Count > 0; + if (flag) + { + XGuildWeeklyBountyDocument.Doc.SendCommitWeeklyItem(this._curSelectIndex, itemList); + } + } + + private bool OnAskWeeklyHelp(IXUIButton button) + { + uint taskID = (uint)button.ID; + XGuildDailyTaskDocument.Doc.SendDailyTaskAskHelp(PeriodTaskType.PeriodTaskType_Weekly, taskID); + return true; + } + + private bool OnGetTaskItem(IXUIButton button) + { + GuildWeeklyTaskInfo taskInfoByIndex = XGuildWeeklyBountyDocument.Doc.GetTaskInfoByIndex(this._curSelectIndex); + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID((taskInfoByIndex == null) ? 0u : taskInfoByIndex.taskID); + bool flag = dailyTaskTableInfoByID == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = dailyTaskTableInfoByID.tasktype == 1u; + if (flag2) + { + XSingleton.singleton.ShowItemAccess((int)dailyTaskTableInfoByID.conditionId[0], null); + } + else + { + bool flag3 = dailyTaskTableInfoByID.tasktype == 4u; + if (flag3) + { + XSingleton.singleton.ShowItemAccess((int)dailyTaskTableInfoByID.BQ[0, 0], null); + } + else + { + bool flag4 = dailyTaskTableInfoByID.tasktype == 3u; + if (flag4) + { + List list = new List(); + List list2 = new List(); + for (int i = 0; i < dailyTaskTableInfoByID.BQ.Count; i++) + { + list.Add((int)dailyTaskTableInfoByID.BQ[i, 0]); + list2.Add((int)dailyTaskTableInfoByID.BQ[i, 1]); + } + DlgBase.singleton.ShowMonsterAccess(dailyTaskTableInfoByID.NPCID, list, list2, null); + } + else + { + XSingleton.singleton.OpenSystem((int)dailyTaskTableInfoByID.BQ[0, 0]); + } + } + } + result = true; + } + return result; + } + + private bool OnRefreshTasks(IXUIButton button) + { + uint num = (uint)button.ID; + GuildWeeklyTaskInfo taskInfoByIndex = XGuildWeeklyBountyDocument.Doc.GetTaskInfoByIndex(this._curSelectIndex); + bool flag = taskInfoByIndex != null; + if (flag) + { + bool flag2 = taskInfoByIndex.step > 0u; + if (flag2) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("DailyTaskStepProgressing"), new ButtonClickEventHandler(this.ConfirmToRefresh)); + } + else + { + this.ToRefreshTask(); + } + } + return true; + } + + private bool ConfirmToRefresh(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + this.ToRefreshTask(); + return true; + } + + private void ToRefreshTask() + { + GuildWeeklyTaskInfo taskInfoByIndex = XGuildWeeklyBountyDocument.Doc.GetTaskInfoByIndex(this._curSelectIndex); + bool flag = taskInfoByIndex == null; + if (!flag) + { + int num = 0; + bool flag2 = XGuildWeeklyBountyDocument.Doc.RemainedFreshTimes == 0u; + if (flag2) + { + int refreshedCount = (int)taskInfoByIndex.refreshedCount; + List intList = XSingleton.singleton.GetIntList("WeeklyTaskRefreshCost"); + num = intList[Mathf.Min(refreshedCount, intList.Count - 1)]; + } + ulong virtualItemCount = XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN); + bool flag3 = (ulong)num <= virtualItemCount; + if (flag3) + { + XGuildWeeklyBountyDocument.Doc.SendToRefreshTaskList(this._curSelectIndex); + } + else + { + DlgBase.singleton.ShowBorad(7); + } + } + } + + private void UpdateChestItem(GameObject chestItem, int index) + { + List chestValueList = XGuildWeeklyBountyDocument.Doc.ChestValueList; + bool flag = index >= 0 && index < chestValueList.Count; + if (flag) + { + uint num = chestValueList[index]; + IXUILabel ixuilabel = chestItem.transform.Find("Exp").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = chestItem.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickedChestBox)); + Transform transform = chestItem.transform.Find("RedPoint"); + bool flag2 = num <= XGuildWeeklyBountyDocument.Doc.WeeklyScore; + ixuisprite.SetEnabled(true); + SeqList stringSeqList = XSingleton.singleton.GetStringSeqList("RewardBoxArr"); + bool flag3 = XGuildWeeklyBountyDocument.Doc.RewardedBoxList.Contains(num); + if (flag3) + { + bool flag4 = index == chestValueList.Count - 1; + if (flag4) + { + ixuilabel.SetText(XStringDefineProxy.GetString("CompleteBounty")); + } + transform.gameObject.SetActive(false); + ixuisprite.SetSprite(stringSeqList[Mathf.Min(index, (int)(stringSeqList.Count - 1)), 1]); + } + else + { + bool flag5 = flag2; + if (flag5) + { + ixuilabel.SetText(XStringDefineProxy.GetString("ClickToGetBounty")); + } + else + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("BountyValueToGet"), num.ToString())); + } + string sprite = stringSeqList[Mathf.Min(index, (int)(stringSeqList.Count - 1)), 0]; + ixuisprite.SetSprite(sprite); + transform.gameObject.SetActive(flag2); + } + } + } + + private void OnClickedChestBox(IXUISprite uiSprite) + { + uint num = (uint)uiSprite.ID; + bool flag = XGuildWeeklyBountyDocument.Doc.WeeklyScore >= num && !XGuildWeeklyBountyDocument.Doc.RewardedBoxList.Contains(num); + if (flag) + { + XGuildWeeklyBountyDocument.Doc.SendToGetWeeklyTaskReward(2u, num); + } + else + { + List totalTaskRewardInfo = XGuildWeeklyBountyDocument.Doc.GetTotalTaskRewardInfo(GuildTaskType.WeeklyTask, num); + List list = new List(); + List list2 = new List(); + for (int i = 0; i < totalTaskRewardInfo.Count; i++) + { + list.Add(totalTaskRewardInfo[i].itemID); + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + bool flag2 = totalTaskRewardInfo[i].itemID == 4u && specificDocument.IsInLevelSeal(); + uint item; + if (flag2) + { + item = (uint)(totalTaskRewardInfo[i].count * 0.5); + } + else + { + item = totalTaskRewardInfo[i].count; + } + list2.Add(item); + } + DlgBase.singleton.Show(list, list2, false); + DlgBase.singleton.SetGlobalPosition(uiSprite.gameObject.transform.position); + } + } + + public void RefreshTaskList(bool init = true) + { + List curGuildWeeklyTaskList = XGuildWeeklyBountyDocument.Doc.CurGuildWeeklyTaskList; + base.uiBehaviour.BountyItemPool.ReturnAll(false); + this._selectCheck = null; + for (int i = 0; i < curGuildWeeklyTaskList.Count; i++) + { + DailyTask.RowData dailyTaskTableInfoByID = XGuildDailyTaskDocument.Doc.GetDailyTaskTableInfoByID(curGuildWeeklyTaskList[i].taskID); + bool flag = dailyTaskTableInfoByID != null; + if (flag) + { + GameObject gameObject = base.uiBehaviour.BountyItemPool.FetchGameObject(false); + int num = i; + int num2 = 0; + gameObject.transform.localPosition = base.uiBehaviour.BountyItemPool.TplPos + (float)(num * base.uiBehaviour.BountyItemPool.TplWidth) * Vector3.right + (float)(num2 * (base.uiBehaviour.BountyItemPool.TplHeight + 10)) * Vector3.down; + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)curGuildWeeklyTaskList[i].originIndex; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectBountyItem)); + bool flag2 = this._curSelectIndex == curGuildWeeklyTaskList[i].originIndex; + ixuicheckBox.ForceSetFlag(false); + if (init) + { + bool flag3 = i == 0; + if (flag3) + { + this._selectCheck = ixuicheckBox; + } + } + else + { + bool flag4 = flag2; + if (flag4) + { + this._selectCheck = ixuicheckBox; + } + } + IXUILabel ixuilabel = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + string text = curGuildWeeklyTaskList[i].step + "/" + dailyTaskTableInfoByID.conditionNum; + ixuilabel.SetText(text); + IXUISprite ixuisprite = gameObject.transform.Find("Quality").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(ixuisprite.spriteName.Substring(0, ixuisprite.spriteName.Length - 1) + dailyTaskTableInfoByID.taskquality); + ixuisprite2.SetSprite(dailyTaskTableInfoByID.TaskIcon, dailyTaskTableInfoByID.AtlasName, false); + GameObject gameObject2 = gameObject.transform.Find("RedPoint").gameObject; + gameObject2.SetActive(curGuildWeeklyTaskList[i].step >= dailyTaskTableInfoByID.conditionNum && !curGuildWeeklyTaskList[i].isRewarded); + Transform transform = gameObject.transform.Find("Complete"); + transform.gameObject.SetActive(curGuildWeeklyTaskList[i].isRewarded); + IXUIProgress ixuiprogress = gameObject.transform.Find("TaskProgress").GetComponent("XUIProgress") as IXUIProgress; + ixuiprogress.value = curGuildWeeklyTaskList[i].step / dailyTaskTableInfoByID.conditionNum; + } + } + bool flag5 = this._selectCheck != null; + if (flag5) + { + bool bChecked = this._selectCheck.bChecked; + if (bChecked) + { + this.OnSelectBountyItem(this._selectCheck); + } + else + { + this._selectCheck.bChecked = true; + } + } + if (init) + { + base.uiBehaviour.BountyListScrollView.ResetPosition(); + } + } + + private bool OnSelectBountyItem(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + uint curSelectIndex = (uint)iXUICheckBox.ID; + this._curSelectIndex = curSelectIndex; + this.RefreshTaskItem(); + } + return true; + } + + private void RefreshMailInfo() + { + List taskHelpInfoList = XGuildWeeklyBountyDocument.Doc.TaskHelpInfoList; + bool flag = taskHelpInfoList.Count > 0; + if (flag) + { + base.uiBehaviour.MailRoot.gameObject.SetActive(true); + base.uiBehaviour.MailWrapContent.SetContentCount(taskHelpInfoList.Count, false); + base.uiBehaviour.MailScrollView.ResetPosition(); + } + else + { + base.uiBehaviour.MailRoot.gameObject.SetActive(false); + } + } + + private void OnMailWrapContentUpdate(Transform itemTransform, int index) + { + List taskHelpInfoList = XGuildWeeklyBountyDocument.Doc.TaskHelpInfoList; + bool flag = index < taskHelpInfoList.Count; + if (flag) + { + TaskHelpInfo taskHelpInfo = taskHelpInfoList[index]; + IXUILabel ixuilabel = itemTransform.Find("Tip").GetComponent("XUILabel") as IXUILabel; + string rolename = taskHelpInfo.rolename; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)taskHelpInfo.itemid); + string text = " "; + bool flag2 = itemConf != null; + if (flag2) + { + text += itemConf.ItemName[0]; + } + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("weelyHelpItemTip"), rolename, taskHelpInfo.itemcount, text)); + IXUILabel ixuilabel2 = itemTransform.Find("Time").GetComponent("XUILabel") as IXUILabel; + string text2 = new DateTime(1970, 1, 1, 0, 0, 0).AddSeconds(taskHelpInfo.time).ToLocalTime().ToString("yyyy-MM-dd H:mm"); + ixuilabel2.SetText(text2); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyView.cs.meta b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyView.cs.meta new file mode 100644 index 00000000..ebe2c086 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Guild/XGuildWeeklyBountyView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 360102b0702b74a488a8b46263e684cf +timeCreated: 1611403561 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildApproveSetting.cs b/Client/Assets/Scripts/XMainClient/GuildApproveSetting.cs new file mode 100644 index 00000000..2c12b0de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildApproveSetting.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class GuildApproveSetting + { + public int PPT; + + public bool autoApprove; + + public string GetStrPPT() + { + bool flag = this.PPT == 0; + string result; + if (flag) + { + result = ""; + } + else + { + result = this.PPT.ToString(); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildApproveSetting.cs.meta b/Client/Assets/Scripts/XMainClient/GuildApproveSetting.cs.meta new file mode 100644 index 00000000..a6ad3d1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildApproveSetting.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6da02e4e8f3e58641b37385cf02a50d6 +timeCreated: 1611403902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildArenaBattlePattern.cs b/Client/Assets/Scripts/XMainClient/GuildArenaBattlePattern.cs new file mode 100644 index 00000000..7f080402 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildArenaBattlePattern.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum GuildArenaBattlePattern + { + GMF, + GPR, + GCF + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildArenaBattlePattern.cs.meta b/Client/Assets/Scripts/XMainClient/GuildArenaBattlePattern.cs.meta new file mode 100644 index 00000000..aa5ee717 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildArenaBattlePattern.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31e8e792e43e00440ba074d6d64cd549 +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatInfo.cs b/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatInfo.cs new file mode 100644 index 00000000..a22b6b96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatInfo.cs @@ -0,0 +1,83 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildArenaDuelCombatInfo + { + public ulong GuildID; + + public bool IsDo; + + public uint GuildScore; + + public string GuildName; + + public uint GuildIcon; + + public uint CombatTime; + + public bool Winner; + + public bool isShow = false; + + public IntegralState Step = IntegralState.integralready; + + public GVGDuelStatu gs = GVGDuelStatu.IDLE; + + public GuildArenaDuelCombatStatu Statu = GuildArenaDuelCombatStatu.Next; + + public uint AddScore = 0u; + + public string GetPortraitName() + { + return XGuildDocument.GetPortraitName((int)this.GuildIcon); + } + + public bool Pass() + { + return this.GuildID > 0UL; + } + + public void Convert(CrossGvgRoomState room) + { + switch (room) + { + case CrossGvgRoomState.CGRS_Idle: + this.gs = GVGDuelStatu.IDLE; + break; + case CrossGvgRoomState.CGRS_Fighting: + this.gs = GVGDuelStatu.FIGHTING; + break; + case CrossGvgRoomState.CGRS_Finish: + this.gs = GVGDuelStatu.FINISH; + break; + default: + this.gs = GVGDuelStatu.IDLE; + break; + } + } + + public string GetGuildName() + { + bool flag = this.GuildID > 0UL; + string result; + if (flag) + { + result = this.GuildName; + } + else + { + result = XStringDefineProxy.GetString("GUILD_ARENA_UNCOMBAT"); + } + return result; + } + + public string ToTimeString() + { + return XSingleton.singleton.TimeFormatSince1970((int)this.CombatTime, XStringDefineProxy.GetString("TIME_FORMAT_YYMMDD"), true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatInfo.cs.meta new file mode 100644 index 00000000..84f47c9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8b7dfc2d67ac294aa741c8fe85c1e41 +timeCreated: 1611404535 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatStatu.cs b/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatStatu.cs new file mode 100644 index 00000000..5cf02c2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatStatu.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum GuildArenaDuelCombatStatu + { + Used, + Current, + Next + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatStatu.cs.meta b/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatStatu.cs.meta new file mode 100644 index 00000000..24217758 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildArenaDuelCombatStatu.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c48a597c66e763b4fafb76e092f876f5 +timeCreated: 1611404502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildArenaTab.cs b/Client/Assets/Scripts/XMainClient/GuildArenaTab.cs new file mode 100644 index 00000000..66043aa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildArenaTab.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum GuildArenaTab + { + Hall = 1, + Duel, + Combat + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildArenaTab.cs.meta b/Client/Assets/Scripts/XMainClient/GuildArenaTab.cs.meta new file mode 100644 index 00000000..a1277761 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildArenaTab.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d1e8a35d05aac844940c2f64ee10197 +timeCreated: 1611403999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildBattleMiniRankHandler.cs b/Client/Assets/Scripts/XMainClient/GuildBattleMiniRankHandler.cs new file mode 100644 index 00000000..2c5bb167 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBattleMiniRankHandler.cs @@ -0,0 +1,221 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildBattleMiniRankHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/GuildTerritoryBattleDlg"; + } + } + + private IXUISprite m_sprClose; + + private IXUIButton m_btnOpen; + + private IXUICheckBox m_boxPoint; + + private IXUICheckBox m_boxTerritory; + + private IXUITweenTool m_tween; + + private IXUILabel m_lblTerritory; + + private IXUILabel m_lblFeats; + + private IXUIWrapContent m_wrapPoint; + + private IXUIWrapContent m_wrapTerritory; + + private List seal_list; + + protected override void Init() + { + base.Init(); + this.m_sprClose = (base.transform.Find("Bg/offset/LeftView/close").GetComponent("XUISprite") as IXUISprite); + this.m_btnOpen = (base.transform.Find("Bg/Open").GetComponent("XUIButton") as IXUIButton); + this.m_boxPoint = (base.transform.Find("Bg/offset/Tabs/Tab_Point").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_boxTerritory = (base.transform.Find("Bg/offset/Tabs/Tab_Territory").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_tween = (base.transform.Find("Bg/offset").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_lblTerritory = (base.transform.Find("Bg/offset/LeftView/TerritoryName").GetComponent("XUILabel") as IXUILabel); + this.m_lblFeats = (base.transform.Find("Bg/offset/LeftView/TerritoryFeats").GetComponent("XUILabel") as IXUILabel); + this.m_wrapPoint = (base.transform.Find("Bg/offset/LeftView/PointScrollView/wrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_wrapTerritory = (base.transform.Find("Bg/offset/LeftView/TerritoryScrollView/wrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_wrapPoint.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapPointUpdate)); + this.m_wrapTerritory.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapTorritoryUpdate)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_boxTerritory.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTerritoryClick)); + this.m_boxPoint.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabPointClick)); + this.m_sprClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClick)); + this.m_btnOpen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOpenClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.ChangeState(true); + this.ChangeTab(true); + } + + public void RefreshAll() + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + bool activeSelf = this.m_wrapPoint.gameObject.activeSelf; + if (activeSelf) + { + this.m_wrapPoint.SetContentCount(specificDocument.guilds.Count, false); + } + bool activeSelf2 = this.m_wrapTerritory.gameObject.activeSelf; + if (activeSelf2) + { + this.m_wrapTerritory.SetContentCount(specificDocument.jvdians.Count, false); + } + this.RefreshFeats(specificDocument); + } + + private void ChangeState(bool open) + { + this.m_btnOpen.SetVisible(!open); + this.m_sprClose.SetVisible(open); + } + + private void ChangeTab(bool isScoreTab) + { + this.m_wrapPoint.gameObject.SetActive(isScoreTab); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT; + this.m_wrapTerritory.gameObject.SetActive(!isScoreTab && !flag); + this.m_lblTerritory.SetVisible(!isScoreTab && flag); + } + + private bool OnTabPointClick(IXUICheckBox box) + { + bool bChecked = box.bChecked; + if (bChecked) + { + this.ChangeTab(true); + } + return true; + } + + private bool OnTerritoryClick(IXUICheckBox box) + { + bool bChecked = box.bChecked; + if (bChecked) + { + this.ChangeTab(false); + } + return true; + } + + private void OnCloseClick(IXUISprite sp) + { + this.ChangeState(false); + this.m_tween.ResetTween(true); + this.m_tween.PlayTween(true, -1f); + } + + private bool OnOpenClick(IXUIButton btn) + { + this.ChangeState(true); + this.m_tween.ResetTween(false); + this.m_tween.PlayTween(false, -1f); + return true; + } + + private void WrapPointUpdate(Transform t, int index) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + bool flag = specificDocument.guilds.Count > index; + if (flag) + { + GCFGuild gcfguild = specificDocument.guilds[index]; + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Num").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Score").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("BG_SELF").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = t.Find("BG_ENERMY").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText((index + 1).ToString()); + ixuisprite.SetSprite(XGuildDocument.GetPortraitName((int)gcfguild.brief.guildicon)); + ixuilabel2.SetText(gcfguild.brief.guildname); + ixuilabel3.SetText(gcfguild.brief.point.ToString()); + ixuisprite2.SetVisible(gcfguild.isPartern); + ixuisprite3.SetVisible(!gcfguild.isPartern); + } + } + + private void WrapTorritoryUpdate(Transform t, int index) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + bool flag = specificDocument.jvdians.Count > index; + if (flag) + { + GCFJvDianInfo gcfjvDianInfo = specificDocument.jvdians[index]; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("CheckPoint").GetComponent("XUILabel") as IXUILabel; + int num = XFastEnumIntEqualityComparer.ToInt(gcfjvDianInfo.type); + ixuilabel2.SetText(XStringDefineProxy.GetString("Territory_judian" + num)); + ixuilabel.SetText(string.IsNullOrEmpty(gcfjvDianInfo.guildname) ? "-" : gcfjvDianInfo.guildname); + } + } + + private void RefreshFeats(XGuildTerritoryDocument doc) + { + uint feats = doc.feats; + bool flag = this.seal_list == null; + if (flag) + { + this.CulResult(); + } + int num = 0; + for (int i = 0; i < this.seal_list.Count; i++) + { + bool flag2 = (long)this.seal_list[i] > (long)((ulong)feats); + if (flag2) + { + num = this.seal_list[i]; + break; + } + } + IXUILabel ixuilabel = this.m_lblFeats.gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + bool flag3 = num != 0; + if (flag3) + { + this.m_lblFeats.SetText(string.Format("{0}/{1}", feats, num)); + ixuilabel.Alpha = 1f; + } + else + { + this.m_lblFeats.SetText(XStringDefineProxy.GetString("BIG_MELEE_MAX_POINT_STAGE")); + ixuilabel.Alpha = 0f; + } + } + + private void CulResult() + { + this.seal_list = new List(); + int num = 0; + foreach (TerritoryRewd.RowData rowData in XGuildTerritoryDocument.mTerritoryRewd.Table) + { + bool flag = rowData.Point != num; + if (flag) + { + this.seal_list.Add(rowData.Point); + num = rowData.Point; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildBattleMiniRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildBattleMiniRankHandler.cs.meta new file mode 100644 index 00000000..862642e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBattleMiniRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a307e0a6232dd44da9f78d15b0eb8de +timeCreated: 1611403887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildBuffEffectType.cs b/Client/Assets/Scripts/XMainClient/GuildBuffEffectType.cs new file mode 100644 index 00000000..be1cecfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBuffEffectType.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public enum GuildBuffEffectType + { + None, + StolenRes, + ExtendExploreTime, + CutExploreTime, + ExpansionExploreRes, + RewriteExploreResult, + ClearSideEffectBuff + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildBuffEffectType.cs.meta b/Client/Assets/Scripts/XMainClient/GuildBuffEffectType.cs.meta new file mode 100644 index 00000000..7a830a9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBuffEffectType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 678bdb22f2aa7af45ad8316adf6d6dcb +timeCreated: 1611403858 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs b/Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs new file mode 100644 index 00000000..9444cac3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public class GuildBuffInfo + { + public uint itemID = 0u; + + public uint count = 0u; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs.meta new file mode 100644 index 00000000..cfd01a93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBuffInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73709faaf56e58d42a1f6ddcaa0dbb80 +timeCreated: 1611403940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildBuffTargetType.cs b/Client/Assets/Scripts/XMainClient/GuildBuffTargetType.cs new file mode 100644 index 00000000..06e9c3df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBuffTargetType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum GuildBuffTargetType + { + Personal, + SelfGuild, + OtherGuild + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildBuffTargetType.cs.meta b/Client/Assets/Scripts/XMainClient/GuildBuffTargetType.cs.meta new file mode 100644 index 00000000..59f17dfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBuffTargetType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d786c4c91e502e40804ed177385ac2e +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildBuffUsedRecordItem.cs b/Client/Assets/Scripts/XMainClient/GuildBuffUsedRecordItem.cs new file mode 100644 index 00000000..5aafd8da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBuffUsedRecordItem.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + public class GuildBuffUsedRecordItem + { + public string MainMessage; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildBuffUsedRecordItem.cs.meta b/Client/Assets/Scripts/XMainClient/GuildBuffUsedRecordItem.cs.meta new file mode 100644 index 00000000..ee9d4aad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildBuffUsedRecordItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc84a1b168e16be4593ebbb512b739cb +timeCreated: 1611404550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildCampRankHandler.cs b/Client/Assets/Scripts/XMainClient/GuildCampRankHandler.cs new file mode 100644 index 00000000..9467b4a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildCampRankHandler.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildCampRankHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Guild/GuildSystem/GuildRankFrame"; + } + } + + private XGuildSmallMonsterDocument _doc = null; + + private GameObject m_objTpl; + + private IXUIWrapContent m_wrapContent; + + private IXUIScrollView m_scrool; + + private IXUIButton m_btnClose; + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List list = new List(); + + protected override void Init() + { + base.Init(); + this.m_objTpl = base.transform.Find("Bg/Bg/ScrollView/wrapcontent/RewardTpl/Bg/tpl").gameObject; + this.m_btnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_scrool = (base.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_wrapContent = (base.transform.Find("Bg/Bg/ScrollView/wrapcontent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._doc = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + this.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.RefreshItems)); + this.m_RewardItemPool.SetupPool(base.transform.gameObject, this.m_objTpl, 30u, false); + } + + protected override void OnShow() + { + base.OnShow(); + this.DestroyItems(); + this.m_scrool.ResetPosition(); + this.m_wrapContent.SetContentCount(XGuildSmallMonsterDocument._guildRankTable.Table.Length, false); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(DlgBase.singleton.CloseRankHandler)); + } + + private void RefreshItems(Transform t, int index) + { + GuildCampRank.RowData[] table = XGuildSmallMonsterDocument._guildRankTable.Table; + GuildCampRank.RowData rowData = table[index]; + IXUILabel ixuilabel = t.Find("Bg/Rank/RankNum").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Rank.ToString()); + for (int i = 0; i < rowData.Reward.Count; i++) + { + GameObject gameObject = this.m_RewardItemPool.FetchGameObject(false); + gameObject.transform.parent = t; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(this.m_RewardItemPool.TplWidth * i) + this.m_RewardItemPool._tpl.transform.localPosition.x, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rowData.Reward[i, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.Reward[i, 0], (int)rowData.Reward[i, 1], false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + + private GameObject FetchItem() + { + GameObject gameObject = XCommon.Instantiate(this.m_objTpl); + gameObject.SetActive(true); + this.list.Add(gameObject); + return gameObject; + } + + private void DestroyItems() + { + for (int i = 0; i < this.list.Count; i++) + { + bool flag = this.list[i] != null; + if (flag) + { + UnityEngine.Object.Destroy(this.list[i]); + } + } + this.list.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildCampRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildCampRankHandler.cs.meta new file mode 100644 index 00000000..6fa4feb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildCampRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40754d7c63edcb84cb206946709eba4a +timeCreated: 1611403614 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildDailyTaskInfo.cs b/Client/Assets/Scripts/XMainClient/GuildDailyTaskInfo.cs new file mode 100644 index 00000000..7ac1f6dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDailyTaskInfo.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public class GuildDailyTaskInfo + { + public uint taskID; + + public uint step; + + public bool isRewarded; + + public bool hasAsked; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildDailyTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildDailyTaskInfo.cs.meta new file mode 100644 index 00000000..e0c14a5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDailyTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34301348de08cbe4b95ba1182ad4d652 +timeCreated: 1611403554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildDonateItemInfo.cs b/Client/Assets/Scripts/XMainClient/GuildDonateItemInfo.cs new file mode 100644 index 00000000..2318ae01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDonateItemInfo.cs @@ -0,0 +1,34 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class GuildDonateItemInfo + { + public string name; + + public uint profession; + + public uint id; + + public ulong roleID; + + public uint publishTime; + + public uint itemID; + + public uint needCount; + + public uint getCount; + + public uint taskID; + + public PeriodTaskType tasktype; + + public uint itemType; + + public uint itemQuality; + + public uint index; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildDonateItemInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildDonateItemInfo.cs.meta new file mode 100644 index 00000000..7fb6d010 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDonateItemInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18a1a92094393ef489f2ab00458b816f +timeCreated: 1611403298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildDonateRankInfo.cs b/Client/Assets/Scripts/XMainClient/GuildDonateRankInfo.cs new file mode 100644 index 00000000..dd448fbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDonateRankInfo.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + public class GuildDonateRankInfo + { + public ulong roleID; + + public uint todayCount; + + public uint totalCount; + + public uint lastTime; + + public string roleName; + + public uint level; + + public uint profession; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildDonateRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildDonateRankInfo.cs.meta new file mode 100644 index 00000000..34305154 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDonateRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cbaf7ed1cc2713a4b8a6a70239799f12 +timeCreated: 1611404546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildDonateType.cs b/Client/Assets/Scripts/XMainClient/GuildDonateType.cs new file mode 100644 index 00000000..ad25bcda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDonateType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum GuildDonateType + { + DailyDonate, + WeeklyDonate, + GrowthDonate + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildDonateType.cs.meta b/Client/Assets/Scripts/XMainClient/GuildDonateType.cs.meta new file mode 100644 index 00000000..abb4ffdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDonateType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5824d28e6b11546488bed1d2f78351e5 +timeCreated: 1611403753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildDragonChallengeResultBehaviour.cs b/Client/Assets/Scripts/XMainClient/GuildDragonChallengeResultBehaviour.cs new file mode 100644 index 00000000..996f55af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDragonChallengeResultBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class GuildDragonChallengeResultBehaviour : DlgBehaviourBase + { + public IXUILabel m_Desription; + + public IXUILabel m_Time; + + public IXUISprite m_ReturnBtn; + + private void Awake() + { + this.m_Desription = (base.transform.Find("Bg/Leader").GetComponent("XUILabel") as IXUILabel); + this.m_Time = (base.transform.Find("Bg/Leader/time").GetComponent("XUILabel") as IXUILabel); + this.m_ReturnBtn = (base.transform.Find("Bg/p").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildDragonChallengeResultBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GuildDragonChallengeResultBehaviour.cs.meta new file mode 100644 index 00000000..ee7ce641 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildDragonChallengeResultBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0865cda051f45f45bee2bc205a29adb +timeCreated: 1611404832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildFarmland.cs b/Client/Assets/Scripts/XMainClient/GuildFarmland.cs new file mode 100644 index 00000000..77242a8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildFarmland.cs @@ -0,0 +1,76 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildFarmland : Farmland + { + public override int BreakLevel + { + get + { + bool flag = this.m_breakLevel == -1; + if (flag) + { + this.m_breakLevel = 0; + SeqList sequenceList = XSingleton.singleton.GetSequenceList("BreakFarmlandLevel_Guild", true); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag2 = (long)sequenceList[i, 0] == (long)((ulong)this.m_farmlandId); + if (flag2) + { + this.m_breakLevel = sequenceList[i, 1]; + break; + } + } + } + return this.m_breakLevel; + } + } + + protected override Vector3 BoardRotation + { + get + { + return new Vector3(-90f, 30f, 0f); + } + } + + public GuildFarmland(uint farmlandId) : base(farmlandId) + { + } + + protected override void SetPerfab() + { + base.DestroyPerfab(); + bool flag = !base.IsLock || base.Doc.HomeType != HomeTypeEnum.GuildHome; + if (!flag) + { + XNpc npc = XSingleton.singleton.GetNpc(base.NpcId); + bool flag2 = npc == null; + if (!flag2) + { + string text = ""; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag3 = specificDocument.bInGuild && (long)this.BreakLevel > (long)((ulong)specificDocument.Level); + if (flag3) + { + text = XSingleton.singleton.GetValue("FarmBoardPath1"); + } + bool flag4 = string.IsNullOrEmpty(text); + if (!flag4) + { + this.m_boardGo = XSingleton.singleton.CreateFromPrefab(text, npc.EngineObject.Position, Quaternion.identity, true, false); + bool flag5 = this.m_boardGo != null; + if (flag5) + { + this.m_boardGo.transform.localEulerAngles = this.BoardRotation; + } + base.SetPerfab(); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildFarmland.cs.meta b/Client/Assets/Scripts/XMainClient/GuildFarmland.cs.meta new file mode 100644 index 00000000..6d8d6e99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildFarmland.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0325513f3ad2de47961845e732e0bc4 +timeCreated: 1611404248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildFiexdRedPackageBehaviour.cs b/Client/Assets/Scripts/XMainClient/GuildFiexdRedPackageBehaviour.cs new file mode 100644 index 00000000..7f7c2f1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildFiexdRedPackageBehaviour.cs @@ -0,0 +1,29 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class GuildFiexdRedPackageBehaviour : DlgBehaviourBase + { + public IXUIScrollView m_ScrollView; + + public IXUIButton m_Close; + + public IXUIWrapContent m_WrapContent; + + public IXUIButton m_HelpBtn; + + public Transform m_Empty; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/RightView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/RightView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_Empty = base.transform.Find("Bg/Empty"); + this.m_HelpBtn = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildFiexdRedPackageBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GuildFiexdRedPackageBehaviour.cs.meta new file mode 100644 index 00000000..82c0c906 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildFiexdRedPackageBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4004f3b1c9bc17479b5948e966d76b4 +timeCreated: 1611404735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs b/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs new file mode 100644 index 00000000..86f9d1aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs @@ -0,0 +1,45 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildInheritInfo + { + public ulong uid; + + public string name; + + public uint level; + + public uint time; + + public uint sceneId; + + public void Set(InheritData info) + { + this.uid = info.roleId; + this.name = info.name; + this.time = info.time; + this.level = info.lvl; + this.sceneId = 4u; + } + + public string GetLevelString() + { + return string.Format("Lv.{0}", this.level); + } + + public string GetTimeString() + { + return XSingleton.singleton.TimeAgoFormatString((int)this.time); + } + + public string GetSceneName() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this.sceneId); + return (sceneData == null) ? string.Empty : sceneData.Comment; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs.meta new file mode 100644 index 00000000..e6895ff0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildInheritInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a9c9c48d50813e459215e3a73d37bcd +timeCreated: 1611403165 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildLogType.cs b/Client/Assets/Scripts/XMainClient/GuildLogType.cs new file mode 100644 index 00000000..562bf04e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildLogType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum GuildLogType + { + GLT_JOIN, + GLT_LEAVE, + GLT_APPOINT, + GLT_MVP + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildLogType.cs.meta b/Client/Assets/Scripts/XMainClient/GuildLogType.cs.meta new file mode 100644 index 00000000..a6371501 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildLogType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4af111d569857bf43b6daff76bf9f4d1 +timeCreated: 1611403685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMemberSortType.cs b/Client/Assets/Scripts/XMainClient/GuildMemberSortType.cs new file mode 100644 index 00000000..e198c784 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMemberSortType.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal enum GuildMemberSortType + { + GMST_ID, + GMST_NAME, + GMST_PROFESSION, + GMST_TITLE, + GMST_LEVEL, + GMST_POSITION, + GMST_TIME, + GMST_CONTRIBUTION, + GMST_ACTIVE, + GMST_INHERIT, + GMST_TASKSCORE, + GMST_MAX, + GMST_ONLINE, + GMST_PPT + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMemberSortType.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMemberSortType.cs.meta new file mode 100644 index 00000000..7d4e1136 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMemberSortType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f9bfe1b5f5047f41a62ff04bd6fdadc +timeCreated: 1611403517 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMineActivityStatus.cs b/Client/Assets/Scripts/XMainClient/GuildMineActivityStatus.cs new file mode 100644 index 00000000..5d4d9a10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineActivityStatus.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum GuildMineActivityStatus + { + None, + Ready, + Start + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMineActivityStatus.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMineActivityStatus.cs.meta new file mode 100644 index 00000000..17dbfe3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineActivityStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4104b645a9d63144fb65fc94a3d9c418 +timeCreated: 1611403616 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMineEntranceBehaviour.cs b/Client/Assets/Scripts/XMainClient/GuildMineEntranceBehaviour.cs new file mode 100644 index 00000000..24a86296 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineEntranceBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMineEntranceBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_Join; + + public IXUILabel m_GameRule; + + public IXUILabel m_ActivityTime; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Join = (base.transform.Find("Bg/Join").GetComponent("XUIButton") as IXUIButton); + this.m_GameRule = (base.transform.Find("Bg/GameRule").GetComponent("XUILabel") as IXUILabel); + this.m_ActivityTime = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/ExReward/ListPanel/ItemTpl"); + this.m_RewardPool.SetupPool(null, transform.gameObject, 5u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMineEntranceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMineEntranceBehaviour.cs.meta new file mode 100644 index 00000000..43deccdb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineEntranceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b5260bc7bd892147a5e4b420944684c +timeCreated: 1611403798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMineEntranceView.cs b/Client/Assets/Scripts/XMainClient/GuildMineEntranceView.cs new file mode 100644 index 00000000..c92606e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineEntranceView.cs @@ -0,0 +1,173 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMineEntranceView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildMine/GuildMineEntrance"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildMine); + } + } + + private XGuildMineEntranceDocument doc = null; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + this.doc.View = this; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_Join.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildMine); + return true; + } + + private bool OnJoinClicked(IXUIButton btn) + { + this.doc.ReqEnterMine(); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.InitShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + this.doc.View = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + private void InitShow() + { + base.uiBehaviour.m_GameRule.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("GUILD_MINE_RLUE"))); + base.uiBehaviour.m_ActivityTime.SetText(XSingleton.singleton.GetString("GUILD_MINE_START_TIME")); + string[] array = XSingleton.singleton.GetValue("GuildMineReward").Split(new char[] + { + '|' + }); + string[] array2 = XSingleton.singleton.GetValue("GuildMineGuildReward").Split(new char[] + { + '|' + }); + base.uiBehaviour.m_RewardPool.FakeReturnAll(); + for (int i = 0; i < array.Length + array2.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(i * base.uiBehaviour.m_RewardPool.TplWidth), 0f, 0f) + base.uiBehaviour.m_RewardPool.TplPos; + bool flag = i < array.Length; + uint num; + if (flag) + { + num = uint.Parse(array[i]); + } + else + { + num = uint.Parse(array2[i - array.Length]); + } + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num, 0, false); + Transform transform = gameObject.transform.Find("Tag"); + transform.gameObject.SetActive(i >= array.Length); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + } + base.uiBehaviour.m_RewardPool.ActualReturnAll(false); + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMineEntranceView.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMineEntranceView.cs.meta new file mode 100644 index 00000000..9afa2010 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineEntranceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 851290c4790b8344f97f952908445417 +timeCreated: 1611404051 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMineMainBehaviour.cs b/Client/Assets/Scripts/XMainClient/GuildMineMainBehaviour.cs new file mode 100644 index 00000000..0e457d8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineMainBehaviour.cs @@ -0,0 +1,161 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMineMainBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_BtnExplore; + + public IXUIButton m_BtnChallenge; + + public IXUIButton m_BtnExploreAgain; + + public IXUIButton m_BtnWarehouse; + + public IXUIButton m_BtnRank; + + public IXUIButton m_BtnTeam; + + public IXUILabel m_MemberNum; + + public Transform m_PropsFrame; + + public Transform m_RankFrame; + + public IXUISprite m_RoleProtrait; + + public IXUILabel m_RoleName; + + public Transform m_selfBuffIcons; + + public IXUILabel m_TExplore; + + public IXUILabel m_ActivityTimeLabel; + + public IXUILabel m_ActivityTimeDescription; + + public XLeftTimeCounter m_ActivityCDCounter; + + public Transform m_Exploring; + + public IXUILabel m_ExploreTimeLabel; + + public IXUISlider m_ExploreTimeSlider; + + public XLeftTimeCounter m_ExploreCDCounter; + + public IXUITweenTool m_NewFindTween; + + public IXUITweenTool m_BossTween; + + public IXUIScrollView m_RecordScrollView; + + public XUIPool m_BossPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_BossMinePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_BuffTipPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_GuildBuffReviewPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_GuildBuffRecordPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform[] m_NoLook = new Transform[XGuildMineMainDocument.BOSS_NUM_MAX]; + + public Transform[] m_BossTpl = new Transform[XGuildMineMainDocument.BOSS_NUM_MAX]; + + public IXUILabel[] m_BossName = new IXUILabel[XGuildMineMainDocument.BOSS_NUM_MAX]; + + public IXUISprite[] m_BossSp = new IXUISprite[XGuildMineMainDocument.BOSS_NUM_MAX]; + + public IXUITexture[] m_BossTex = new IXUITexture[XGuildMineMainDocument.BOSS_NUM_MAX]; + + public Transform[] m_BossSelect = new Transform[XGuildMineMainDocument.BOSS_NUM_MAX]; + + public IXUILabel[] m_BossLevel = new IXUILabel[XGuildMineMainDocument.BOSS_NUM_MAX]; + + public Transform[,] m_BossMine = new Transform[(int)XGuildMineMainDocument.BOSS_NUM_MAX, (int)XGuildMineMainDocument.MINE_NUM_MAX]; + + public IXUISprite[] m_BossBuff = new IXUISprite[XGuildMineMainDocument.BOSS_NUM_MAX]; + + public IXUILabel[] m_BossBuffText = new IXUILabel[XGuildMineMainDocument.BOSS_NUM_MAX]; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_BtnExplore = (base.transform.Find("Bg/Btn/BtnExplore").GetComponent("XUIButton") as IXUIButton); + this.m_BtnChallenge = (base.transform.Find("Bg/Btn/BtnChallenge").GetComponent("XUIButton") as IXUIButton); + this.m_BtnExploreAgain = (base.transform.Find("Bg/Btn/BtnExploreAgain").GetComponent("XUIButton") as IXUIButton); + this.m_BtnWarehouse = (base.transform.Find("Bg/Btn/BtnCk").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRank = (base.transform.Find("Bg/Btn/BtnRank").GetComponent("XUIButton") as IXUIButton); + this.m_BtnTeam = (base.transform.Find("Bg/Btn/BtnTeam").GetComponent("XUIButton") as IXUIButton); + this.m_MemberNum = (this.m_BtnTeam.gameObject.transform.Find("MemberNum").GetComponent("XUILabel") as IXUILabel); + this.m_PropsFrame = base.transform.Find("Bg/PropsFrame"); + this.m_RankFrame = base.transform.Find("Bg/RankFrame"); + this.m_selfBuffIcons = base.transform.Find("Bg/InfoSelf/BuffIcons"); + this.m_RoleProtrait = (base.transform.Find("Bg/InfoSelf/P").GetComponent("XUISprite") as IXUISprite); + this.m_RoleName = (base.transform.Find("Bg/InfoSelf/T").GetComponent("XUILabel") as IXUILabel); + this.m_TExplore = (this.m_BtnExplore.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_ActivityTimeLabel = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_ActivityTimeDescription = (base.transform.Find("Bg/Time/T").GetComponent("XUILabel") as IXUILabel); + this.m_ActivityCDCounter = new XLeftTimeCounter(this.m_ActivityTimeLabel, false); + this.m_Exploring = base.transform.Find("Bg/Searching"); + this.m_ExploreTimeLabel = (base.transform.Find("Bg/Searching/Time").GetComponent("XUILabel") as IXUILabel); + this.m_ExploreTimeSlider = (base.transform.Find("Bg/Searching/LoadingProgress").GetComponent("XUISlider") as IXUISlider); + this.m_ExploreCDCounter = new XLeftTimeCounter(this.m_ExploreTimeLabel, false); + this.m_NewFindTween = (base.transform.Find("Bg/NewFind").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_BossTween = (base.transform.Find("Bg/PVE").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_RecordScrollView = (base.transform.Find("Bg/Log/BuffRecords").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_BuffTipPool.SetupPool(null, base.transform.Find("Bg/InfoBuff/InfoBuffTpl").gameObject, 4u, false); + this.m_GuildBuffReviewPool.SetupPool(base.transform.Find("Bg/InfoGuild").gameObject, base.transform.Find("Bg/InfoGuild/InfoGuildTpl").gameObject, 3u, false); + this.m_GuildBuffRecordPool.SetupPool(base.transform.Find("Bg/Log/BuffRecords").gameObject, base.transform.Find("Bg/Log/BuffRecords/LogItem").gameObject, 2u, false); + this.m_BossMinePool.SetupPool(null, base.transform.Find("Bg/PVE/BossTpl/Mine/MineTpl").gameObject, XGuildMineMainDocument.MINE_NUM_MAX, false); + this.m_BossMinePool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)XGuildMineMainDocument.MINE_NUM_MAX)) + { + GameObject gameObject = this.m_BossMinePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(((double)((float)num + 0.5f) - XGuildMineMainDocument.MINE_NUM_MAX / 2.0) * (double)this.m_BossMinePool.TplWidth), 0f, 0f); + gameObject.name = string.Format("Mine{0}", num); + num++; + } + this.m_BossMinePool.ActualReturnAll(false); + this.m_BossPool.SetupPool(null, base.transform.Find("Bg/PVE/BossTpl").gameObject, XGuildMineMainDocument.BOSS_NUM_MAX, false); + this.m_BossPool.FakeReturnAll(); + int num2 = 0; + while ((long)num2 < (long)((ulong)XGuildMineMainDocument.BOSS_NUM_MAX)) + { + GameObject gameObject2 = this.m_BossPool.FetchGameObject(false); + Transform transform = base.transform.Find(string.Format("Bg/PVE/Boss{0}", num2 + 1)); + XSingleton.singleton.AddChild(transform.gameObject, gameObject2); + this.m_BossTpl[num2] = gameObject2.transform; + this.m_BossName[num2] = (this.m_BossTpl[num2].Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_BossSp[num2] = (this.m_BossTpl[num2].Find("Boss").GetComponent("XUISprite") as IXUISprite); + this.m_BossTex[num2] = (this.m_BossTpl[num2].Find("Tex").GetComponent("XUITexture") as IXUITexture); + this.m_BossSelect[num2] = this.m_BossTpl[num2].Find("Select"); + this.m_BossLevel[num2] = (this.m_BossTpl[num2].Find("Grade").GetComponent("XUILabel") as IXUILabel); + this.m_NoLook[num2] = this.m_BossTpl[num2].Find("NoLook"); + int num3 = 0; + while ((long)num3 < (long)((ulong)XGuildMineMainDocument.MINE_NUM_MAX)) + { + this.m_BossMine[num2, num3] = this.m_BossTpl[num2].Find(string.Format("Mine/Mine{0}/Mine", num3)); + num3++; + } + this.m_BossBuff[num2] = (this.m_BossTpl[num2].Find("Buff").GetComponent("XUISprite") as IXUISprite); + this.m_BossBuffText[num2] = (this.m_BossTpl[num2].Find("Buff/T").GetComponent("XUILabel") as IXUILabel); + num2++; + } + this.m_BossPool.ActualReturnAll(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMineMainBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMineMainBehaviour.cs.meta new file mode 100644 index 00000000..68a63440 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineMainBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9c07cbb77115644fa19518818a3210c +timeCreated: 1611404540 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMineMainView.cs b/Client/Assets/Scripts/XMainClient/GuildMineMainView.cs new file mode 100644 index 00000000..15458d05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineMainView.cs @@ -0,0 +1,772 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMineMainView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildMine/GuildMineMain"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildMineMain); + } + } + + internal GuildBuffOperationHandler GuildBuffHandler + { + get + { + return this._guildBuffHandler; + } + set + { + this._guildBuffHandler = value; + } + } + + private XGuildMineMainDocument doc = null; + + private GuildBuffOperationHandler _guildBuffHandler; + + private GuildMineRankHandler _rankHanler; + + private XYuyinView _yuyinHandler; + + private Dictionary _guildReviewItemDic = new Dictionary(); + + private Dictionary _guildBuffChildrenDic = new Dictionary(); + + public string[] BossDifficult = XSingleton.singleton.GetValue("GuildMineBossDifficult").Split(new char[] + { + '|' + }); + + public string[] BossColor = XSingleton.singleton.GetValue("GuildMineBossColor").Split(new char[] + { + '|' + }); + + public int CurSelectMine; + + public bool CanPlayNewFindAnim = true; + + public float CurActivityLeftTime; + + public GuildMineActivityStatus ActivityStatus; + + public float CurExploreLeftTime; + + public uint ExploreTimeMax; + + public List BossMine = new List(); + + public List BossMineBuff = new List(); + + private ulong _pressedGuildID = 0UL; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + this.doc.View = this; + DlgHandlerBase.EnsureCreate(ref this._guildBuffHandler, base.uiBehaviour.m_PropsFrame, false, this); + DlgHandlerBase.EnsureCreate(ref this._rankHanler, base.uiBehaviour.m_RankFrame, false, this); + DlgHandlerBase.EnsureCreate(ref this._yuyinHandler, base.uiBehaviour.transform, true, this); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_BtnExplore.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnExploreClicked)); + base.uiBehaviour.m_BtnExploreAgain.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnExploreClicked)); + base.uiBehaviour.m_BtnChallenge.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnChallengeClicked)); + base.uiBehaviour.m_BtnTeam.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTeamClicked)); + base.uiBehaviour.m_BtnWarehouse.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickBuffStorage)); + base.uiBehaviour.m_BtnRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickRankBtn)); + } + + private bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildMine); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.InitShow(); + XGuildResContentionBuffDocument.Doc.StartCDTimer(); + this.ShowChat(); + this._yuyinHandler.Show(YuyinIconType.GuildResWar, 7); + this._yuyinHandler.Show(true); + } + + protected override void OnHide() + { + XGuildResContentionBuffDocument.Doc.StopCDTimer(); + this.HideBuffTips(); + this.HideChatMini(); + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + base.OnHide(); + } + + protected override void OnUnload() + { + this.HideBuffTips(); + XGuildResContentionBuffDocument.Doc.StopCDTimer(); + DlgHandlerBase.EnsureUnload(ref this._guildBuffHandler); + DlgHandlerBase.EnsureUnload(ref this._rankHanler); + DlgHandlerBase.EnsureUnload(ref this._yuyinHandler); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + base.uiBehaviour.m_ActivityCDCounter.Update(); + base.uiBehaviour.m_ExploreCDCounter.Update(); + float floatLeftTime = base.uiBehaviour.m_ExploreCDCounter.GetFloatLeftTime(); + bool flag = floatLeftTime > 0f; + if (flag) + { + bool flag2 = this.ExploreTimeMax > 0u; + if (flag2) + { + base.uiBehaviour.m_ExploreTimeSlider.Value = floatLeftTime / this.ExploreTimeMax; + } + else + { + base.uiBehaviour.m_ExploreTimeSlider.Value = 0f; + } + } + } + + private void InitShow() + { + base.uiBehaviour.m_BtnExplore.gameObject.SetActive(false); + base.uiBehaviour.m_BtnChallenge.gameObject.SetActive(false); + base.uiBehaviour.m_BtnExploreAgain.gameObject.SetActive(false); + base.uiBehaviour.m_NewFindTween.gameObject.SetActive(false); + base.uiBehaviour.m_Exploring.gameObject.SetActive(false); + } + + public override void StackRefresh() + { + base.StackRefresh(); + XGuildMineEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + bool flag = !specificDocument.MainInterfaceState; + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + this.RefreshUI(); + this.ShowChat(); + } + } + + public void RefreshUI() + { + this.RefreshButton(); + this.RefreshBoss(); + this.RefreshMemberTips(); + this.RefreshExploreTime(); + this.RefreshActivityTime(); + this.RefreshTopRightBuffs(); + this.RefreshRoleDetail(); + this.RefreshBuffsRecord(); + this.RefreshMySelfActingBuff(); + } + + private void RefreshRoleDetail() + { + base.uiBehaviour.m_RoleName.SetText(XSingleton.singleton.XPlayerData.Name); + int profID = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + string profHeadIcon = XSingleton.singleton.GetProfHeadIcon(profID); + base.uiBehaviour.m_RoleProtrait.SetSprite(profHeadIcon); + } + + public void HideChatMini() + { + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + showSettingArgs.needforceshow = true; + showSettingArgs.forceshow = false; + showSettingArgs.needdepth = true; + showSettingArgs.depth = 0; + showSettingArgs.anim = false; + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + } + + public void RefreshActivityTime() + { + base.uiBehaviour.m_ActivityCDCounter.SetLeftTime(this.CurActivityLeftTime, -1); + bool flag = this.ActivityStatus == GuildMineActivityStatus.Ready; + if (flag) + { + base.uiBehaviour.m_ActivityTimeDescription.SetText(XSingleton.singleton.GetString("GUILD_MINE_TIME_READY")); + } + else + { + bool flag2 = this.ActivityStatus == GuildMineActivityStatus.Start; + if (flag2) + { + base.uiBehaviour.m_ActivityTimeDescription.SetText(XSingleton.singleton.GetString("GUILD_MINE_TIME_START")); + } + else + { + XSingleton.singleton.AddErrorLog("GuildMineActivityStatus Is None", null, null, null, null, null); + } + } + } + + public void RefreshExploreTime() + { + bool flag = this.CurExploreLeftTime > 0f; + if (flag) + { + base.uiBehaviour.m_Exploring.gameObject.SetActive(true); + base.uiBehaviour.m_ExploreCDCounter.SetLeftTime(this.CurExploreLeftTime, -1); + bool flag2 = this.ExploreTimeMax > 0u; + if (flag2) + { + base.uiBehaviour.m_ExploreTimeSlider.Value = this.CurExploreLeftTime / this.ExploreTimeMax; + } + else + { + base.uiBehaviour.m_ExploreTimeSlider.Value = 0f; + } + } + else + { + base.uiBehaviour.m_Exploring.gameObject.SetActive(false); + } + } + + public void RefreshMemberTips() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = specificDocument.MyTeam != null && specificDocument.MyTeam.members.Count != 0; + if (flag) + { + base.uiBehaviour.m_MemberNum.gameObject.SetActive(true); + base.uiBehaviour.m_MemberNum.SetText(specificDocument.MyTeam.members.Count.ToString()); + } + else + { + base.uiBehaviour.m_MemberNum.gameObject.SetActive(false); + } + } + + private void _OnLeftTimeOver(object o) + { + } + + public void RefreshButton() + { + bool flag = this.BossMine.Count == 0; + if (flag) + { + base.uiBehaviour.m_BtnExplore.gameObject.SetActive(true); + base.uiBehaviour.m_BtnChallenge.gameObject.SetActive(false); + base.uiBehaviour.m_BtnExploreAgain.gameObject.SetActive(false); + bool flag2 = this.CurExploreLeftTime > 0f; + if (flag2) + { + base.uiBehaviour.m_TExplore.SetText(XSingleton.singleton.GetString("GUILD_MINE_EXPLORE_CANCEL")); + } + else + { + base.uiBehaviour.m_TExplore.SetText(XSingleton.singleton.GetString("GUILD_MINE_EXPLORE")); + } + } + else + { + base.uiBehaviour.m_BtnExplore.gameObject.SetActive(false); + base.uiBehaviour.m_BtnChallenge.gameObject.SetActive(true); + base.uiBehaviour.m_BtnExploreAgain.gameObject.SetActive(true); + } + } + + public void RefreshBoss() + { + base.uiBehaviour.m_BossTween.gameObject.SetActive(this.BossMine.Count != 0); + bool flag = this.CanPlayNewFindAnim && this.BossMine.Count != 0; + if (flag) + { + base.uiBehaviour.m_NewFindTween.PlayTween(true, -1f); + base.uiBehaviour.m_BossTween.PlayTween(true, -1f); + this.CanPlayNewFindAnim = false; + } + int num = 0; + while ((long)num < (long)((ulong)XGuildMineMainDocument.BOSS_NUM_MAX)) + { + bool flag2 = num < this.BossMine.Count; + if (flag2) + { + bool flag3 = this.BossMine[num] == 0u; + if (flag3) + { + base.uiBehaviour.m_NoLook[num].gameObject.SetActive(true); + base.uiBehaviour.m_BossSelect[num].gameObject.SetActive(this.CurSelectMine == num + 1); + } + else + { + base.uiBehaviour.m_NoLook[num].gameObject.SetActive(false); + base.uiBehaviour.m_BossSelect[num].gameObject.SetActive(this.CurSelectMine == num + 1); + GuildMineralBattle.RowData mineData = XGuildMineMainDocument.GetMineData(this.BossMine[num]); + bool flag4 = mineData == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("GuildMineralBattle MineId No Find:" + this.BossMine[num], null, null, null, null, null); + } + int num2 = mineData.DifficultLevel - 1; + bool flag5 = num2 < this.BossDifficult.Length && num2 < this.BossColor.Length; + if (flag5) + { + base.uiBehaviour.m_BossLevel[num].SetText(this.BossDifficult[num2]); + base.uiBehaviour.m_BossLevel[num].SetColor(XSingleton.singleton.ParseColor(this.BossColor[num2], 0)); + } + else + { + XSingleton.singleton.AddErrorLog("GuildMineBossDifficultIndex Error:" + num2, null, null, null, null, null); + base.uiBehaviour.m_BossLevel[num].SetText(""); + } + uint num3 = Math.Min(mineData.Mineralcounts, XGuildMineMainDocument.MINE_NUM_MAX); + int num4 = 0; + while ((long)num4 < (long)((ulong)XGuildMineMainDocument.MINE_NUM_MAX)) + { + base.uiBehaviour.m_BossMine[num, num4].gameObject.SetActive((long)num4 < (long)((ulong)num3)); + num4++; + } + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(mineData.BossID); + base.uiBehaviour.m_BossName[num].SetText(byID.Name); + base.uiBehaviour.m_BossName[num].SetColor(XSingleton.singleton.ParseColor(this.BossColor[num2], 0)); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + base.uiBehaviour.m_BossSp[num].SetSprite(byPresentID.Avatar, byPresentID.Atlas, false); + bool flag6 = num < this.BossMineBuff.Count; + if (flag6) + { + GuildMineralBufflist.RowData mineBuffData = XGuildMineMainDocument.GetMineBuffData(this.BossMineBuff[num]); + bool flag7 = mineBuffData == null; + if (flag7) + { + XSingleton.singleton.AddErrorLog("GuildMineralBufflist BuffId No Find:" + this.BossMineBuff[num], null, null, null, null, null); + } + uint num5 = mineBuffData.Quality - 1u; + base.uiBehaviour.m_BossBuff[num].SetSprite(mineBuffData.icon); + base.uiBehaviour.m_BossBuff[num].SetColor(XSingleton.singleton.ParseColor(this.BossColor[(int)num5], 0)); + base.uiBehaviour.m_BossBuffText[num].SetText(mineBuffData.ratestring); + base.uiBehaviour.m_BossBuffText[num].SetColor(XSingleton.singleton.ParseColor(this.BossColor[(int)num5], 0)); + } + } + base.uiBehaviour.m_BossTex[num].ID = (ulong)((long)(num + 1)); + base.uiBehaviour.m_BossTex[num].RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnBossClicked)); + } + else + { + base.uiBehaviour.m_NoLook[num].gameObject.SetActive(false); + } + num++; + } + } + + public void RefreshMySelfActingBuff() + { + List mySelfActingBuffList = XGuildResContentionBuffDocument.Doc.MySelfActingBuffList; + int num = Mathf.Min(mySelfActingBuffList.Count, base.uiBehaviour.m_selfBuffIcons.childCount); + int i; + for (i = 0; i < num; i++) + { + GuildUsingBuffInfo guildUsingBuffInfo = mySelfActingBuffList[i]; + Transform child = base.uiBehaviour.m_selfBuffIcons.GetChild(i); + child.gameObject.SetActive(true); + IXUISprite ixuisprite = child.Find("BuffIcon").GetComponent("XUISprite") as IXUISprite; + uint itemIDByBuffID = XHomeCookAndPartyDocument.Doc.GetItemIDByBuffID(guildUsingBuffInfo.buffID); + bool flag = itemIDByBuffID == 0u; + if (!flag) + { + GuildMineralStorage.RowData mineralStorageByID = XGuildResContentionBuffDocument.Doc.GetMineralStorageByID(itemIDByBuffID); + ixuisprite.spriteName = mineralStorageByID.bufficon; + IXUILabel ixuilabel = child.Find("CD").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(guildUsingBuffInfo.time.ToString()); + } + } + while (i < base.uiBehaviour.m_selfBuffIcons.childCount) + { + Transform child2 = base.uiBehaviour.m_selfBuffIcons.GetChild(i); + child2.gameObject.SetActive(false); + i++; + } + } + + public void RefreshBuffsRecord() + { + base.uiBehaviour.m_GuildBuffRecordPool.ReturnAll(false); + List mineUsedBuffRecordList = XGuildResContentionBuffDocument.Doc.MineUsedBuffRecordList; + for (int i = mineUsedBuffRecordList.Count - 1; i >= 0; i--) + { + Transform transform = base.uiBehaviour.m_GuildBuffRecordPool.FetchGameObject(false).transform; + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(mineUsedBuffRecordList[i].MainMessage); + ixuilabel.gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_GuildBuffRecordPool.TplPos.x, base.uiBehaviour.m_GuildBuffRecordPool.TplPos.y - (float)(i * base.uiBehaviour.m_GuildBuffRecordPool.TplHeight), 0f); + } + base.uiBehaviour.m_RecordScrollView.SetPosition(1f); + } + + private void ShowChat() + { + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + showSettingArgs.position = 0; + showSettingArgs.needforceshow = true; + showSettingArgs.forceshow = true; + showSettingArgs.needdepth = true; + showSettingArgs.depth = 6; + showSettingArgs.forceshow = true; + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + } + + public void RefreshOwnedBuffItem(uint itemID, uint cd) + { + bool flag = this._guildBuffHandler != null && this._guildBuffHandler.IsVisible(); + if (flag) + { + this._guildBuffHandler.RefreshOwnedBuffItem(itemID, cd); + } + } + + private bool OnExploreClicked(IXUIButton btn) + { + bool flag = this.ActivityStatus == GuildMineActivityStatus.Ready; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("GUILD_MINE_READY_TIP"), base.uiBehaviour.m_ActivityCDCounter.GetLeftTime().ToString()), "fece00"); + result = true; + } + else + { + this.CurSelectMine = 0; + bool flag2 = this.CurExploreLeftTime > 0f; + if (flag2) + { + this.doc.ReqExplore(true); + } + else + { + this.doc.ReqExplore(false); + } + result = true; + } + return result; + } + + private bool OnChallengeClicked(IXUIButton btn) + { + bool flag = this.CurSelectMine != 0; + if (flag) + { + this.doc.ReqChallenge(this.CurSelectMine); + this.CurSelectMine = 0; + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_MINE_NO_SELECT_TIP"), "fece00"); + } + return true; + } + + private bool OnTeamClicked(IXUIButton btn) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelGuildMine); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = expeditionList.Count > 0; + if (flag) + { + specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID); + this.HideChatMini(); + } + return true; + } + + private void OnBossClicked(IXUITexture tex) + { + this.CurSelectMine = (int)tex.ID; + int num = 0; + while ((long)num < (long)((ulong)XGuildMineMainDocument.BOSS_NUM_MAX)) + { + bool flag = num < this.BossMine.Count; + if (flag) + { + base.uiBehaviour.m_BossSelect[num].gameObject.SetActive(this.CurSelectMine == num + 1); + } + num++; + } + } + + private bool OnclickBuffStorage(IXUIButton button) + { + bool flag = this.GuildBuffHandler != null && !this.GuildBuffHandler.IsVisible(); + if (flag) + { + this.GuildBuffHandler.SetVisible(true); + } + return true; + } + + private bool OnclickRankBtn(IXUIButton button) + { + bool flag = this._rankHanler != null && !this._rankHanler.IsVisible(); + if (flag) + { + this._rankHanler.SetVisible(true); + } + return true; + } + + private bool OnPressGuildBuffs(IXUISprite uiSprite, bool isPressed) + { + if (isPressed) + { + this.ShowBuffTips(uiSprite.ID); + } + else + { + this.HideBuffTips(); + } + return true; + } + + public void RefreshTopRightBuffs() + { + this._guildReviewItemDic.Clear(); + base.uiBehaviour.m_GuildBuffReviewPool.ReturnAll(false); + List allGuildInfos = XGuildResContentionBuffDocument.Doc.GetAllGuildInfos(); + bool flag = allGuildInfos != null; + if (flag) + { + for (int i = 0; i < allGuildInfos.Count; i++) + { + Transform transform = base.uiBehaviour.m_GuildBuffReviewPool.FetchGameObject(false).transform; + this._guildReviewItemDic.Add(allGuildInfos[i].guildID, transform); + this.UpdateOneGuildBuff(transform, i); + } + } + } + + private void UpdateOneGuildBuff(Transform guildBuff, int i) + { + List allGuildInfos = XGuildResContentionBuffDocument.Doc.GetAllGuildInfos(); + guildBuff.localPosition = new Vector3(base.uiBehaviour.m_GuildBuffReviewPool.TplPos.x + (float)(i * base.uiBehaviour.m_GuildBuffReviewPool.TplWidth), base.uiBehaviour.m_GuildBuffReviewPool.TplPos.y, 0f); + IXUISprite ixuisprite = guildBuff.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = allGuildInfos[i].guildID; + ixuisprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnPressGuildBuffs)); + IXUISprite ixuisprite2 = guildBuff.Find("GuildIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(XGuildDocument.GetPortraitName((int)allGuildInfos[i].guildIcon)); + IXUILabel ixuilabel = guildBuff.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(allGuildInfos[i].guildName); + IXUILabel ixuilabel2 = guildBuff.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(allGuildInfos[i].resValue.ToString()); + List guildUsedBuffList = XGuildResContentionBuffDocument.Doc.GetGuildUsedBuffList(allGuildInfos[i].guildID); + Transform transform = guildBuff.Find("BuffIcon"); + int childCount = transform.childCount; + int num = (guildUsedBuffList == null) ? 0 : Math.Min(childCount, guildUsedBuffList.Count); + int j; + for (j = 0; j < num; j++) + { + uint buffID = guildUsedBuffList[j].buffID; + GuildBuffTable.RowData guildBuffDataByBuffID = XGuildResContentionBuffDocument.Doc.GetGuildBuffDataByBuffID(buffID); + GuildMineralStorage.RowData mineralStorageByID = XGuildResContentionBuffDocument.Doc.GetMineralStorageByID(guildBuffDataByBuffID.itemid); + Transform child = transform.GetChild(j); + IXUILabel ixuilabel3 = child.Find("CD").GetComponent("XUILabel") as IXUILabel; + child.gameObject.SetActive(true); + bool flag = string.IsNullOrEmpty(mineralStorageByID.bufficon); + if (flag) + { + child.gameObject.SetActive(false); + ixuilabel3.SetText(""); + } + else + { + IXUISprite ixuisprite3 = child.Find("BuffIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.spriteName = mineralStorageByID.bufficon; + ixuilabel3.SetText(guildUsedBuffList[j].time.ToString()); + } + } + while (j < childCount) + { + transform.GetChild(j).gameObject.SetActive(false); + j++; + } + } + + private void ShowBuffTips(ulong guildID) + { + this._pressedGuildID = guildID; + Transform transform = null; + bool flag = this._guildReviewItemDic.TryGetValue(this._pressedGuildID, out transform); + if (flag) + { + Transform parent = transform.Find("BuffsInfo"); + this._guildBuffChildrenDic.Clear(); + base.uiBehaviour.m_BuffTipPool.ReturnAll(false); + List guildUsedBuffList = XGuildResContentionBuffDocument.Doc.GetGuildUsedBuffList(this._pressedGuildID); + bool flag2 = guildUsedBuffList == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("invalid guildID" + guildID, null, null, null, null, null); + } + else + { + bool flag3 = guildUsedBuffList.Count > 0; + if (flag3) + { + for (int i = 0; i < guildUsedBuffList.Count; i++) + { + GuildUsingBuffInfo guildUsingBuffInfo = guildUsedBuffList[i]; + GameObject gameObject = base.uiBehaviour.m_BuffTipPool.FetchGameObject(false); + gameObject.transform.parent = parent; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)base.uiBehaviour.m_BuffTipPool.TplHeight * i), 0f); + this._guildBuffChildrenDic.Add(guildUsingBuffInfo.buffID, gameObject.transform); + this.UpdatePressedTip(gameObject, guildUsingBuffInfo); + } + } + } + } + } + + private void UpdatePressedTip(GameObject item, GuildUsingBuffInfo info) + { + GuildBuffTable.RowData guildBuffDataByBuffID = XGuildResContentionBuffDocument.Doc.GetGuildBuffDataByBuffID(info.buffID); + GuildMineralStorage.RowData mineralStorageByID = XGuildResContentionBuffDocument.Doc.GetMineralStorageByID(guildBuffDataByBuffID.itemid); + IXUISprite ixuisprite = item.transform.Find("BuffIcon/Tpl/BuffIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = mineralStorageByID.bufficon; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)mineralStorageByID.itemid); + IXUILabel ixuilabel = item.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(itemConf.ItemName[0]); + IXUILabel ixuilabel2 = item.transform.Find("Effect").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(mineralStorageByID.buffdescribe); + IXUILabel ixuilabel3 = item.transform.Find("Remain").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(info.time.ToString()); + } + + private void HideBuffTips() + { + this._pressedGuildID = 0UL; + this._guildBuffChildrenDic.Clear(); + base.uiBehaviour.m_BuffTipPool.ReturnAll(false); + } + + public void PlayNewFindAnim() + { + } + + public void RefreshGuildBuffCD() + { + List allGuildInfos = XGuildResContentionBuffDocument.Doc.GetAllGuildInfos(); + for (int i = 0; i < allGuildInfos.Count; i++) + { + Transform guildBuff = null; + bool flag = this._guildReviewItemDic.TryGetValue(allGuildInfos[i].guildID, out guildBuff); + if (flag) + { + this.UpdateOneGuildBuff(guildBuff, i); + } + } + bool flag2 = this._pressedGuildID > 0UL; + if (flag2) + { + List guildUsedBuffList = XGuildResContentionBuffDocument.Doc.GetGuildUsedBuffList(this._pressedGuildID); + bool flag3 = guildUsedBuffList == null; + if (!flag3) + { + bool flag4 = guildUsedBuffList.Count > 0; + if (flag4) + { + for (int j = 0; j < guildUsedBuffList.Count; j++) + { + GuildUsingBuffInfo guildUsingBuffInfo = guildUsedBuffList[j]; + Transform transform = null; + bool flag5 = this._guildBuffChildrenDic.TryGetValue(guildUsingBuffInfo.buffID, out transform); + if (flag5) + { + this.UpdatePressedTip(transform.gameObject, guildUsingBuffInfo); + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMineMainView.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMineMainView.cs.meta new file mode 100644 index 00000000..9e0daa97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineMainView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21aa3225be8e2404ca4760f60f8e4000 +timeCreated: 1611403414 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPBattleHandler.cs b/Client/Assets/Scripts/XMainClient/GuildMinePVPBattleHandler.cs new file mode 100644 index 00000000..4b02fc7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPBattleHandler.cs @@ -0,0 +1,115 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class GuildMinePVPBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/SkyArenaBattle"; + } + } + + private XGuildMineBattleDocument doc = null; + + private Transform m_Info; + + private IXUILabel m_BlueScore; + + private IXUILabel m_RedScore; + + private IXUILabel m_BlueDamage; + + private IXUILabel m_RedDamage; + + private IXUILabel m_TimeLabel; + + private IXUILabel m_RestTip; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XGuildMineBattleDocument.uuID); + this.doc.BattleHandler = this; + this.m_Info = base.transform.Find("Bg/Info"); + this.m_BlueScore = (base.transform.Find("Bg/Info/Blue/Score").GetComponent("XUILabel") as IXUILabel); + this.m_RedScore = (base.transform.Find("Bg/Info/Red/Score").GetComponent("XUILabel") as IXUILabel); + this.m_BlueDamage = (base.transform.Find("Bg/Info/Blue/Damage").GetComponent("XUILabel") as IXUILabel); + this.m_RedDamage = (base.transform.Find("Bg/Info/Red/Damage").GetComponent("XUILabel") as IXUILabel); + this.m_RestTip = (base.transform.Find("Bg/start").GetComponent("XUILabel") as IXUILabel); + this.m_TimeLabel = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this.doc.BattleHandler = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + private void RefreshInfo() + { + this.m_BlueScore.SetText("0"); + this.m_RedScore.SetText("0"); + this.m_BlueDamage.SetText("0"); + this.m_RedDamage.SetText("0"); + DlgBase.singleton.HideLeftTime(); + this.m_RestTip.gameObject.SetActive(false); + this.m_TimeLabel.gameObject.SetActive(false); + } + + public void SetScore(uint score, bool isBlue) + { + if (isBlue) + { + this.m_BlueScore.SetText(score.ToString()); + } + else + { + this.m_RedScore.SetText(score.ToString()); + } + } + + public void SetDamage(ulong damage, bool isBlue) + { + if (isBlue) + { + this.m_BlueDamage.SetText(damage.ToString()); + } + else + { + this.m_RedDamage.SetText(damage.ToString()); + } + } + + public void RefreshStatusTime(uint time) + { + DlgBase.singleton.SetLeftTime(time, -1); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMinePVPBattleHandler.cs.meta new file mode 100644 index 00000000..bf9590aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bad7311d4ef79894888cdb39d55beee0 +timeCreated: 1611404438 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginBehaviour.cs b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginBehaviour.cs new file mode 100644 index 00000000..c87ce4e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginBehaviour.cs @@ -0,0 +1,12 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class GuildMinePVPBeginBehaviour : DlgBehaviourBase + { + private void Awake() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginBehaviour.cs.meta new file mode 100644 index 00000000..26705e52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1203d08d6f4959548bac929148b6efab +timeCreated: 1611403241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs new file mode 100644 index 00000000..9924190d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs @@ -0,0 +1,83 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMinePVPBeginView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildMine/GuildMinePVPBegin"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isPopup + { + get + { + return true; + } + } + + private uint _TimerID = 0u; + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = XSingleton.singleton.SetTimer(10f, new XTimerMgr.ElapsedEventHandler(this.AutoClose), null); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + base.OnHide(); + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + base.OnUnload(); + } + + private void AutoClose(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ENTER_TIME_OUT"), "fece00"); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs.meta new file mode 100644 index 00000000..c7fe7375 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPBeginView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aed254a8793bbd343ae90396aed23c27 +timeCreated: 1611404341 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPInfoHandler.cs b/Client/Assets/Scripts/XMainClient/GuildMinePVPInfoHandler.cs new file mode 100644 index 00000000..0d7cd0f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPInfoHandler.cs @@ -0,0 +1,218 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMinePVPInfoHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/GuildMinePVPLoading"; + } + } + + private XGuildMineBattleDocument doc = null; + + private uint _AutoCloseTweenTimerID = 0u; + + public static readonly uint TEAM_MEMBER_NUM = 4u; + + private IXUITweenTool m_Tween; + + private IXUILabel m_Info; + + private XUIPool m_DetailLeftPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_DetailRightPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform[,] m_Detail = new Transform[2, (int)GuildMinePVPInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailLevel = new IXUILabel[2, (int)GuildMinePVPInfoHandler.TEAM_MEMBER_NUM]; + + private IXUISprite[,] m_DetailAvatar = new IXUISprite[2, (int)GuildMinePVPInfoHandler.TEAM_MEMBER_NUM]; + + private IXUISprite[,] m_DetailProfession = new IXUISprite[2, (int)GuildMinePVPInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailName = new IXUILabel[2, (int)GuildMinePVPInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[] m_DetailGuildName = new IXUILabel[2]; + + private XFx _fx = null; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XGuildMineBattleDocument.uuID); + this.doc.InfoHandler = this; + this.m_Tween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Info = (base.transform.Find("Bg/Info").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Left/DetailTpl"); + this.m_DetailLeftPool.SetupPool(null, transform.gameObject, GuildMinePVPInfoHandler.TEAM_MEMBER_NUM, false); + Transform transform2 = base.transform.Find("Bg/Right/DetailTpl"); + this.m_DetailRightPool.SetupPool(null, transform2.gameObject, GuildMinePVPInfoHandler.TEAM_MEMBER_NUM, false); + this.InitDetail(this.m_DetailLeftPool, 0); + this.InitDetail(this.m_DetailRightPool, 1); + this.m_DetailGuildName[0] = (base.transform.Find("Bg/Left/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_DetailGuildName[1] = (base.transform.Find("Bg/Right/GuildName").GetComponent("XUILabel") as IXUILabel); + this.CloseTween(null); + } + + private void InitDetail(XUIPool pool, int team) + { + pool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)GuildMinePVPInfoHandler.TEAM_MEMBER_NUM)) + { + GameObject gameObject = pool.FetchGameObject(false); + bool flag = team == 0; + if (flag) + { + this.m_Detail[team, num] = base.transform.Find(string.Format("Bg/Left/Detail{0}", num)); + } + bool flag2 = team == 1; + if (flag2) + { + this.m_Detail[team, num] = base.transform.Find(string.Format("Bg/Right/Detail{0}", num)); + } + XSingleton.singleton.AddChild(this.m_Detail[team, num], gameObject.transform); + this.m_DetailLevel[team, num] = (gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_DetailAvatar[team, num] = (gameObject.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_DetailProfession[team, num] = (gameObject.transform.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_DetailName[team, num] = (gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + num++; + } + pool.ActualReturnAll(false); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + this.ClearShow(); + this.m_Info.SetText(XSingleton.singleton.GetString("GUILD_MINE_BATTLE_VS_INFO")); + } + + private void ClearShow() + { + XSingleton.singleton.KillTimer(this._AutoCloseTweenTimerID); + this._AutoCloseTweenTimerID = 0u; + } + + protected override void OnHide() + { + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + this.ClearShow(); + base.OnHide(); + } + + public override void OnUnload() + { + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + this.doc.InfoHandler = null; + this.ClearShow(); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public void PlayStartTween() + { + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + } + this._fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_vs_Clip01", base.transform.Find("Fx"), false); + this.HideDetail(); + int num = 0; + int num2 = 0; + for (int i = 0; i < this.doc.UserIdToRole.BufferValues.Count; i++) + { + XGuildMineBattleDocument.RoleData roleData = this.doc.UserIdToRole.BufferValues[i]; + bool flag2 = roleData.teamID == this.doc.MyTeam; + if (flag2) + { + this.SetStartDetail(roleData, 0, num); + num++; + } + else + { + this.SetStartDetail(roleData, 1, num2); + num2++; + } + } + this.m_Tween.PlayTween(true, -1f); + float interval = float.Parse(XSingleton.singleton.GetValue("SkyArenaStartAnimTime")) + 1f; + this._AutoCloseTweenTimerID = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.CloseTween), null); + } + + private void SetStartDetail(XGuildMineBattleDocument.RoleData data, int team, int index) + { + bool flag = (long)index >= (long)((ulong)GuildMinePVPInfoHandler.TEAM_MEMBER_NUM); + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "index:", + index, + " >= ", + GuildMinePVPInfoHandler.TEAM_MEMBER_NUM + }), null, null, null, null, null); + } + else + { + this.m_Detail[team, index].gameObject.SetActive(true); + this.m_DetailLevel[team, index].SetText(data.lv.ToString()); + this.m_DetailAvatar[team, index].SetSprite(XSingleton.singleton.GetProfHeadIcon((int)data.job)); + this.m_DetailProfession[team, index].SetSprite(XSingleton.singleton.GetProfIcon((int)data.job)); + this.m_DetailName[team, index].SetText(data.name); + this.m_DetailGuildName[team].SetText(data.guildname); + } + } + + private void HideDetail() + { + for (int i = 0; i < 2; i++) + { + int num = 0; + while ((long)num < (long)((ulong)GuildMinePVPInfoHandler.TEAM_MEMBER_NUM)) + { + this.m_Detail[i, num].gameObject.SetActive(false); + num++; + } + } + } + + public void CloseTween(object param = null) + { + this.m_Tween.gameObject.SetActive(false); + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMinePVPInfoHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMinePVPInfoHandler.cs.meta new file mode 100644 index 00000000..9087a80f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMinePVPInfoHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b376f32bd3eb84048bb548e01efa9bc0 +timeCreated: 1611404389 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMineRankHandler.cs b/Client/Assets/Scripts/XMainClient/GuildMineRankHandler.cs new file mode 100644 index 00000000..f4b0744d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineRankHandler.cs @@ -0,0 +1,163 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMineRankHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Guild/GuildMine/GuildMineRank"; + } + } + + private XUIPool _curRankItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIWrapContent _wrapContent; + + private List _resList; + + private Transform _myRank; + + private Transform _noRankTag; + + private uint _myRankIndex = 0u; + + private IXUIScrollView _scrollview; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + this.InitUIPool(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument.GuildResRankHanler = this; + specificDocument.ReqResWarRank(); + } + + protected override void OnHide() + { + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument.GuildResRankHanler = null; + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void InitUIPool() + { + Transform transform = base.transform.Find("ScrollView/GuildList/Tpl"); + this._curRankItemPool.SetupPool(this._wrapContent.gameObject, transform.gameObject, 1u, false); + } + + private void InitProperties() + { + this._scrollview = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = base.transform.Find("ScrollView/GuildList"); + this._wrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent); + this._wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateContentItem)); + Transform transform2 = base.transform.Find("Bg/Close"); + IXUIButton ixuibutton = transform2.GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickCloseBtn)); + this._myRank = base.transform.Find("Self"); + this._noRankTag = base.transform.Find("Bg/EmptyRank"); + } + + private bool OnclickCloseBtn(IXUIButton button) + { + base.SetVisible(false); + return true; + } + + private void UpdateContentItem(Transform itemTransform, int index) + { + bool flag = index < this._resList.Count; + if (flag) + { + ResRankInfo resRankInfo = this._resList[index]; + IXUILabel ixuilabel = itemTransform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(resRankInfo.roleName); + IXUILabel ixuilabel2 = itemTransform.Find("GuildName").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(resRankInfo.guildName); + IXUILabel ixuilabel3 = itemTransform.Find("Mine").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(resRankInfo.donateValue.ToString()); + IXUISprite ixuisprite = itemTransform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel4 = itemTransform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + bool flag2 = index < 3; + if (flag2) + { + ixuisprite.gameObject.SetActive(true); + ixuisprite.spriteName = ixuisprite.spriteName.Substring(0, ixuisprite.spriteName.Length - 1) + (index + 1); + ixuilabel4.gameObject.SetActive(false); + } + else + { + ixuisprite.gameObject.SetActive(false); + ixuilabel4.gameObject.SetActive(true); + ixuilabel4.SetText((index + 1).ToString()); + } + } + } + + private uint GetMyRankIndex() + { + for (int i = 0; i < this._resList.Count; i++) + { + bool flag = this._resList[i].roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + return (uint)(i + 1); + } + } + return 0u; + } + + public void RefreshUI() + { + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + this._resList = specificDocument.ResRankInfoList; + this._myRankIndex = this.GetMyRankIndex(); + this._curRankItemPool.ReturnAll(false); + this._wrapContent.SetContentCount(this._resList.Count, false); + this._scrollview.ResetPosition(); + bool flag = this._resList.Count > 0; + if (flag) + { + this._noRankTag.gameObject.SetActive(false); + bool flag2 = this._myRankIndex > 0u; + if (flag2) + { + this._myRank.gameObject.SetActive(true); + this.UpdateContentItem(this._myRank, (int)(this._myRankIndex - 1u)); + } + else + { + this._myRank.gameObject.SetActive(false); + } + } + else + { + this._noRankTag.gameObject.SetActive(true); + this._myRank.gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMineRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMineRankHandler.cs.meta new file mode 100644 index 00000000..b4af3ee8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27e147d30b11f2a48a299c8fc90f7f2b +timeCreated: 1611403472 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMineRewardBehaviour.cs b/Client/Assets/Scripts/XMainClient/GuildMineRewardBehaviour.cs new file mode 100644 index 00000000..edd61534 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineRewardBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMineRewardBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public Transform m_Bg; + + public IXUIButton m_Rank; + + public IXUILabel m_Win; + + public XUIPool m_GuildPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Bg = base.transform.Find("Bg"); + this.m_Rank = (base.transform.Find("Bg/BtnRank").GetComponent("XUIButton") as IXUIButton); + this.m_Win = (base.transform.Find("Bg/GuildWin/Info").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Guild/GuildTpl"); + this.m_GuildPool.SetupPool(null, transform.gameObject, 3u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMineRewardBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMineRewardBehaviour.cs.meta new file mode 100644 index 00000000..d7cc8d93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineRewardBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c26ed64c3d0cae04da02cebf73e55a5b +timeCreated: 1611404493 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildMineRewardView.cs b/Client/Assets/Scripts/XMainClient/GuildMineRewardView.cs new file mode 100644 index 00000000..2cd6e38b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineRewardView.cs @@ -0,0 +1,217 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildMineRewardView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildMine/GuildMineResult"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildMine); + } + } + + private XGuildMineMainDocument doc = null; + + private GuildMineRankHandler m_rankHanler; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this.m_rankHanler, base.uiBehaviour.m_Bg, false, this); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_Rank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + DlgHandlerBase.EnsureUnload(ref this.m_rankHanler); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildMine); + return true; + } + + private bool OnRankClicked(IXUIButton btn) + { + this.m_rankHanler.SetVisible(true); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public void SetRewardInfo(QueryResWarRes res) + { + bool flag = res.finalrank == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("data is null", null, null, null, null, null); + } + else + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (!flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.HideChatMini(); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + uint num = 0u; + for (int i = 0; i < res.finalrank.data.Count; i++) + { + num = Math.Max(res.finalrank.data[i].res, num); + } + base.uiBehaviour.m_Win.SetText(string.Format(XSingleton.singleton.GetString("GUILD_MINE_WIN"), res.finalrank.data[0].guildname)); + base.uiBehaviour.m_GuildPool.FakeReturnAll(); + int num2 = 0; + while ((long)num2 < (long)((ulong)XGuildMineMainDocument.GUILD_NUM_MAX)) + { + bool flag3 = num2 >= res.finalrank.data.Count; + if (flag3) + { + XSingleton.singleton.AddErrorLog("GuildCount:" + res.finalrank.data.Count, null, null, null, null, null); + break; + } + GameObject gameObject = base.uiBehaviour.m_GuildPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num2 * base.uiBehaviour.m_GuildPool.TplWidth), 0f); + bool flag4 = specificDocument.UID == res.finalrank.data[num2].guildid; + IXUILabel ixuilabel; + if (flag4) + { + gameObject.transform.Find("GuildInfo/GuildName/OtherGuild").gameObject.SetActive(false); + ixuilabel = (gameObject.transform.Find("GuildInfo/GuildName/MyGuild").GetComponent("XUILabel") as IXUILabel); + gameObject.transform.Find("Bg/MyGuild").gameObject.SetActive(true); + } + else + { + gameObject.transform.Find("GuildInfo/GuildName/MyGuild").gameObject.SetActive(false); + ixuilabel = (gameObject.transform.Find("GuildInfo/GuildName/OtherGuild").GetComponent("XUILabel") as IXUILabel); + gameObject.transform.Find("Bg/MyGuild").gameObject.SetActive(false); + } + ixuilabel.SetText(res.finalrank.data[num2].guildname); + IXUILabel ixuilabel2 = gameObject.transform.Find("GuildInfo/MineNum").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(res.finalrank.data[num2].res.ToString()); + IXUISprite ixuisprite = gameObject.transform.Find("GuildInfo/Logo").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XGuildDocument.GetPortraitName((int)res.finalrank.data[num2].guildicon)); + IXUISlider ixuislider = gameObject.transform.Find("GuildInfo/Slider").GetComponent("XUISlider") as IXUISlider; + bool flag5 = num > 0u; + if (flag5) + { + ixuislider.Value = res.finalrank.data[num2].res / num; + } + else + { + ixuislider.Value = 0f; + } + IXUISprite ixuisprite2 = gameObject.transform.Find("Rank").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(string.Format("N{0}", num2 + 1)); + XUIPool xuipool = new XUIPool(XSingleton.singleton.m_uiTool); + Transform transform = gameObject.transform.Find("Reward/RewardTpl"); + xuipool.SetupPool(null, transform.gameObject, 3u, false); + xuipool.FakeReturnAll(); + GuildMineralBattleReward.RowData reward = XGuildMineBattleDocument.GetReward((uint)(num2 + 1)); + bool flag6 = reward != null; + if (flag6) + { + for (int j = 0; j < reward.RewardShow.Count; j++) + { + GameObject gameObject2 = xuipool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3((float)(j * xuipool.TplWidth), 0f, 0f); + int num3 = reward.RewardShow[j, 0]; + int itemCount = reward.RewardShow[j, 1]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, num3, itemCount, false); + IXUISprite ixuisprite3 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)((long)num3); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + } + } + xuipool.ActualReturnAll(false); + num2++; + } + base.uiBehaviour.m_GuildPool.ActualReturnAll(false); + } + } + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildMineRewardView.cs.meta b/Client/Assets/Scripts/XMainClient/GuildMineRewardView.cs.meta new file mode 100644 index 00000000..954548f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildMineRewardView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4e58b5e28cc14c459a18f67814231a3 +timeCreated: 1611404504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildPassBoard.cs b/Client/Assets/Scripts/XMainClient/GuildPassBoard.cs new file mode 100644 index 00000000..aa01a342 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildPassBoard.cs @@ -0,0 +1,169 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildPassBoard : MonoBehaviour + { + private GameObject _billboard = null; + + private GameObject _transfer = null; + + private GameObject _donghua = null; + + public uint index = 0u; + + public uint sceneid = 0u; + + private IXUILabel m_lblName; + + private IXUISprite m_sprName; + + private IXUILabel m_lblPoint; + + private IXUISprite m_sprPoint; + + private IXUILabel m_lblMember; + + private IXUISprite m_sprMember; + + private bool mOpen = false; + + private GameObject mGoParent; + + public static string BUBBLE_TEMPLATE = "UI/Guild/GuildTerritory/GuildTerritoryBillboard"; + + private void Awake() + { + this._billboard = XSingleton.singleton.CreateFromPrefab(GuildPassBoard.BUBBLE_TEMPLATE, Vector3.zero, base.transform.rotation, true, false); + this.m_lblName = (this._billboard.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_sprName = (this._billboard.transform.Find("Name/p").GetComponent("XUISprite") as IXUISprite); + this.m_lblPoint = (this._billboard.transform.Find("DoubleScore").GetComponent("XUILabel") as IXUILabel); + this.m_sprPoint = (this._billboard.transform.Find("DoubleScore/p").GetComponent("XUISprite") as IXUISprite); + this.m_lblMember = (this._billboard.transform.Find("PlayerNum").GetComponent("XUILabel") as IXUILabel); + this.m_sprMember = (this._billboard.transform.Find("PlayerNum/p").GetComponent("XUISprite") as IXUISprite); + } + + private void OnDestroy() + { + this.DestroyGameObjects(); + } + + private void LateUpdate() + { + bool flag = this._billboard != null && XSingleton.singleton.GameCamera.CameraTrans != null; + if (flag) + { + this._billboard.transform.localPosition = Vector3.zero; + this._billboard.transform.localScale = 0.01f * Vector3.one; + this._billboard.transform.rotation = XSingleton.singleton.GameCamera.CameraTrans.rotation; + } + bool flag2 = Time.frameCount % 15 == 0 && XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag2) + { + } + } + + public void Init(uint ix, uint scid, GameObject parent) + { + this.index = ix; + this.sceneid = scid; + this.mOpen = true; + this.mGoParent = parent; + this._billboard.transform.parent = parent.transform; + string name = XGuildTerritoryDocument.mGuildTransfer.GetByid(ix).name; + this._transfer = GameObject.Find("cankao/Blockwall" + this.index + "/TransferGuildWall"); + this._donghua = GameObject.Find("cankao/Blockwall" + this.index + "/kqq_zd_donghua"); + this.UpdateOpenState(false); + bool flag = this.m_lblName != null; + if (flag) + { + this.m_lblName.SetText(name); + } + this.m_lblPoint.gameObject.SetActive(false); + this.UpdateMember(0u, 8u); + } + + public void DestroyGameObjects() + { + XResourceLoaderMgr.SafeDestroy(ref this._billboard, true); + } + + public void UpdateBoard(GCFZhanChBriefInfo info) + { + this.UpdatePoint(info.multipoint); + this.UpdateMember(info.curusercount, info.maxusercount); + this.UpdateOpenState(info.isopen); + } + + public void UpdateOpenState(bool open) + { + bool flag = this.mOpen != open; + if (flag) + { + this._transfer.SetActive(open); + this._donghua.SetActive(!open); + this.mOpen = open; + } + } + + public void ResetOpenState() + { + bool flag = this._transfer != null; + if (flag) + { + this._transfer.SetActive(true); + } + bool flag2 = this._donghua != null; + if (flag2) + { + this._donghua.SetActive(true); + } + } + + private void UpdateMember(uint curr, uint cnt) + { + bool flag = this.m_lblMember != null; + if (flag) + { + this.m_lblMember.SetText(XSingleton.singleton.StringCombine(curr.ToString(), "/", cnt.ToString())); + } + } + + private void UpdatePoint(uint state) + { + bool flag = this.m_lblPoint != null; + if (flag) + { + this.m_lblPoint.gameObject.SetActive(state >= 2u); + this.m_lblPoint.SetText(XStringDefineProxy.GetString("Territtory_Score" + state)); + } + } + + private void SetBillBoardDepth(float dis = 0f) + { + int num = -(int)(dis * 100f); + bool flag = this.m_lblName != null && this.m_sprName != null; + if (flag) + { + this.m_lblName.spriteDepth = num + 1; + this.m_sprName.spriteDepth = num; + } + bool flag2 = this.m_lblMember != null && this.m_sprMember != null; + if (flag2) + { + this.m_lblMember.spriteDepth = num + 1; + this.m_sprMember.spriteDepth = num; + } + bool flag3 = this.m_lblPoint != null && this.m_sprPoint != null; + if (flag3) + { + this.m_lblPoint.spriteDepth = num + 1; + this.m_sprPoint.spriteDepth = num; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildPassBoard.cs.meta b/Client/Assets/Scripts/XMainClient/GuildPassBoard.cs.meta new file mode 100644 index 00000000..bfdde9b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildPassBoard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f95e3055e1de4474d9497817847e1019 +timeCreated: 1611404898 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildPassMgr.cs b/Client/Assets/Scripts/XMainClient/GuildPassMgr.cs new file mode 100644 index 00000000..35666e3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildPassMgr.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildPassMgr : XSingleton + { + public Dictionary attachDic; + + private const int cnt = 6; + + public bool isOpen = false; + + public GameObject m_wait_blue; + + public GameObject m_wait_red; + + public void InitBoard() + { + bool flag = this.attachDic == null; + if (flag) + { + this.attachDic = new Dictionary(); + } + this.ClearAll(); + this.isOpen = false; + for (uint num = 0u; num < 6u; num += 1u) + { + uint num2 = num + 1u; + GameObject gameObject = GameObject.Find("guadian/board" + num2); + GuildPassBoard guildPassBoard = gameObject.AddComponent(); + uint sceneid = XGuildTerritoryDocument.mGuildTransfer.GetByid(num2).sceneid; + guildPassBoard.Init(num2, sceneid, gameObject); + this.attachDic.Add(num2, guildPassBoard); + } + for (uint num3 = 0u; num3 < 6u; num3 += 1u) + { + uint num4 = num3 + 6u + 1u; + GameObject gameObject2 = GameObject.Find("guadian/board" + num4); + GuildPassBoard guildPassBoard2 = gameObject2.AddComponent(); + uint sceneid2 = XGuildTerritoryDocument.mGuildTransfer.GetByid(num4).sceneid; + guildPassBoard2.Init(num4, sceneid2, gameObject2); + this.attachDic.Add(num4, guildPassBoard2); + } + this.m_wait_blue = GameObject.Find("DynamicScene/wait_scene/wait_blue"); + this.m_wait_red = GameObject.Find("DynamicScene/wait_scene/wait_red"); + } + + public void UpdateInfo(List infos) + { + bool flag = infos != null; + if (flag) + { + for (int i = 0; i < infos.Count; i++) + { + foreach (KeyValuePair keyValuePair in this.attachDic) + { + bool flag2 = keyValuePair.Value.sceneid == infos[i].mapid; + if (flag2) + { + keyValuePair.Value.UpdateBoard(infos[i]); + this.isOpen = infos[i].isopen; + } + } + } + bool flag3 = this.m_wait_red != null && this.m_wait_blue != null; + if (flag3) + { + this.m_wait_blue.SetActive(!this.isOpen); + this.m_wait_red.SetActive(!this.isOpen); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + bool flag5 = DlgBase.singleton.m_miniReportHandler != null; + if (flag5) + { + DlgBase.singleton.m_miniReportHandler.ShowPrepare(!this.isOpen); + DlgBase.singleton.m_miniReportHandler.ShowBegin(this.isOpen); + } + } + } + } + + public void OpenAll() + { + foreach (KeyValuePair keyValuePair in this.attachDic) + { + keyValuePair.Value.UpdateOpenState(true); + } + } + + public void ClearAll() + { + bool flag = this.attachDic != null; + if (flag) + { + foreach (KeyValuePair keyValuePair in this.attachDic) + { + keyValuePair.Value.ResetOpenState(); + keyValuePair.Value.DestroyGameObjects(); + UnityEngine.Object.Destroy(keyValuePair.Value); + } + this.attachDic.Clear(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildPassMgr.cs.meta b/Client/Assets/Scripts/XMainClient/GuildPassMgr.cs.meta new file mode 100644 index 00000000..3f50a2d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildPassMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc952a351b3edd94089e05a8baeee8ca +timeCreated: 1611404936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildPermission.cs b/Client/Assets/Scripts/XMainClient/GuildPermission.cs new file mode 100644 index 00000000..05f0cacf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildPermission.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal enum GuildPermission + { + GPEM_DONOTHING = -10, + GPEM_INVALID = -1, + GPEM_DISMISS, + GPEM_CHANGELEADER, + GPEM_SET_VICELEADER, + GPEM_SET_OFFICER, + GPEM_SET_ELITEMEMBER, + GPEM_SETTINGS, + GPEM_ANNOUNCEMENT, + GPEM_APPROVAL, + GPEM_FIREMEMBER, + GPEM_SENDCHECKINBONUS, + GPEM_STUDY_SKILL, + GPEM_ADMINISTRATOR_REWAD, + GPEM_ADMINISTRATOR_DISTRIBUTION, + GPEM_SCHOOL_SKILL, + GPEM_HALL_BUFF, + GPEM_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildPermission.cs.meta b/Client/Assets/Scripts/XMainClient/GuildPermission.cs.meta new file mode 100644 index 00000000..9cf5d4b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildPermission.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acfe4011741083640b559bf1db764e67 +timeCreated: 1611404333 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildPosition.cs b/Client/Assets/Scripts/XMainClient/GuildPosition.cs new file mode 100644 index 00000000..96ba2819 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildPosition.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum GuildPosition + { + GPOS_INVALID = -1, + GPOS_LEADER, + GPOS_VICELEADER, + GPOS_OFFICER, + GPOS_ELITEMEMBER, + GPOS_MEMBER, + GPOS_COUNT + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildPosition.cs.meta b/Client/Assets/Scripts/XMainClient/GuildPosition.cs.meta new file mode 100644 index 00000000..2699b80f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dcdf3ac06bc2b5e4fb9708a4a5168a52 +timeCreated: 1611404680 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildQualifierSelect.cs b/Client/Assets/Scripts/XMainClient/GuildQualifierSelect.cs new file mode 100644 index 00000000..649855c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildQualifierSelect.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum GuildQualifierSelect + { + ALL, + SELF + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildQualifierSelect.cs.meta b/Client/Assets/Scripts/XMainClient/GuildQualifierSelect.cs.meta new file mode 100644 index 00000000..7206aa77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildQualifierSelect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 057f0afc97271ca4faa7c1e2a82dbf02 +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildRedPackageDetailBehaviour.cs b/Client/Assets/Scripts/XMainClient/GuildRedPackageDetailBehaviour.cs new file mode 100644 index 00000000..7223baed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRedPackageDetailBehaviour.cs @@ -0,0 +1,58 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class GuildRedPackageDetailBehaviour : DlgBehaviourBase + { + public Transform m_root; + + public GameObject m_LogPanel; + + public IXUILabelSymbol m_Reason; + + public IXUILabelSymbol m_Money; + + public IXUILabelSymbol m_Note; + + public IXUILabelSymbol m_SendName; + + public IXUITexture m_sendHeadTexture; + + public IXUISprite m_sendHeadSprite; + + public IXUILabel m_Count; + + public IXUILabel m_ReplyLabel; + + public IXUIButton m_Reply; + + public IXUISprite m_bgSprite; + + public IXUITweenTool m_playTween; + + private void Awake() + { + this.m_LogPanel = base.transform.Find("DetailMenu/LogPanel").gameObject; + this.m_root = base.transform.Find("DetailMenu"); + this.m_playTween = (this.m_root.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Reason = (base.transform.Find("DetailMenu/Reason").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Reason.InputText = ""; + this.m_Money = (base.transform.Find("DetailMenu/Money").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Money.InputText = ""; + this.m_Count = (base.transform.Find("DetailMenu/Count").GetComponent("XUILabel") as IXUILabel); + this.m_Count.SetText(""); + this.m_Note = (base.transform.Find("DetailMenu/Note").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Note.InputText = ""; + this.m_Reply = (base.transform.Find("DetailMenu/Reply").GetComponent("XUIButton") as IXUIButton); + this.m_SendName = (base.transform.Find("DetailMenu/Avatar/Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SendName.InputText = ""; + this.m_ReplyLabel = (base.transform.Find("DetailMenu/Reply/T").GetComponent("XUILabel") as IXUILabel); + this.m_bgSprite = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_sendHeadTexture = (base.transform.Find("DetailMenu/Avatar/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_sendHeadSprite = (base.transform.Find("DetailMenu/Avatar/GuildIcon").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildRedPackageDetailBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/GuildRedPackageDetailBehaviour.cs.meta new file mode 100644 index 00000000..46ffe994 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRedPackageDetailBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27bc7e9960311d34fab477997108f6fb +timeCreated: 1611403472 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxChildHandler.cs b/Client/Assets/Scripts/XMainClient/GuildRelaxChildHandler.cs new file mode 100644 index 00000000..1365eedd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxChildHandler.cs @@ -0,0 +1,111 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildRelaxChildHandler : DlgHandlerBase, IGuildRelexChildInterface + { + public int ModuleID + { + get + { + return this.m_moduleID; + } + } + + protected IXUILabel m_title; + + protected IXUITexture m_bg; + + protected IXUILabel m_tip; + + protected GameObject m_qa; + + protected GameObject m_redPoint; + + protected int m_moduleID; + + protected override void Init() + { + base.Init(); + this.m_title = (base.transform.Find("Title/Text").GetComponent("XUILabel") as IXUILabel); + this.m_bg = (base.transform.Find("Bg").GetComponent("XUITexture") as IXUITexture); + this.m_tip = (base.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.m_qa = base.transform.Find("QA").gameObject; + this.m_redPoint = base.transform.Find("Title/RedPoint").gameObject; + this.m_tip.SetVisible(false); + this.m_qa.SetActive(false); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + this.RefreshRedPoint(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshData(); + this.RefreshRedPoint(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_bg.RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnGameClick)); + } + + public override void OnUnload() + { + this.m_bg.SetTexturePath(""); + base.OnUnload(); + } + + public virtual void SetGuildRelex(XSysDefine define) + { + this.m_moduleID = XFastEnumIntEqualityComparer.ToInt(define); + GuildRelaxGameList.RowData byModuleID = XGuildRelaxGameDocument.GameList.GetByModuleID(this.m_moduleID); + this.m_bg.SetTexturePath(string.Format("atlas/UI/Social/{0}", byModuleID.GameBg)); + this.m_title.SetText(byModuleID.GameName); + } + + public virtual void SetUnLockLevel() + { + } + + protected virtual void OnGameClick(IXUITexture sp) + { + } + + public override void RefreshData() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel((XSysDefine)this.m_moduleID); + this.m_bg.ID = (ulong)((long)this.m_moduleID); + bool flag = unlockLevel <= specificDocument.Level; + if (flag) + { + this.m_bg.RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnGameClick)); + this.SetUnLockLevel(); + } + else + { + this.m_qa.SetActive(false); + this.m_tip.SetVisible(true); + this.m_bg.RegisterLabelClickEventHandler(null); + this.m_tip.SetText(XStringDefineProxy.GetString("OPEN_AT_GUILD_LEVEL", new object[] + { + unlockLevel + })); + } + } + + public virtual void RefreshRedPoint() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxChildHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildRelaxChildHandler.cs.meta new file mode 100644 index 00000000..df1815ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxChildHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2bc9ac17a061ec6458df95ac11ab27b7 +timeCreated: 1611403500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxCollectHandler.cs b/Client/Assets/Scripts/XMainClient/GuildRelaxCollectHandler.cs new file mode 100644 index 00000000..1fb1de69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxCollectHandler.cs @@ -0,0 +1,121 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildRelaxCollectHandler : GuildRelaxChildHandler + { + private XGuildCollectDocument _doc; + + private IXUIButton m_enterButton; + + private IXUIButton m_openButton; + + private IXUILabel m_timeLabel; + + private IXUILabel m_timeTips; + + private IXUILabel m_topLabel; + + private IXUILabel m_RefreshTime = null; + + private IXUILabel m_centerLabel; + + private IXUILabel m_enterLabel; + + private IXUILabel m_openLabel; + + protected override void Init() + { + base.Init(); + this.m_moduleID = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildCollect); + this._doc = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + this.m_qa.SetActive(true); + this.m_enterButton = (base.transform.Find("QA/Enter").GetComponent("XUIButton") as IXUIButton); + this.m_enterLabel = (base.transform.Find("QA/Enter/T1").GetComponent("XUILabel") as IXUILabel); + this.m_enterLabel.SetText(XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_JOIN")); + this.m_openButton = (base.transform.Find("QA/Open").GetComponent("XUIButton") as IXUIButton); + this.m_openLabel = (base.transform.Find("QA/Open/T1").GetComponent("XUILabel") as IXUILabel); + this.m_openLabel.SetText(XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_BEGION")); + this.m_timeLabel = (base.transform.Find("QA/Time").GetComponent("XUILabel") as IXUILabel); + this.m_timeTips = (base.transform.Find("QA/Time/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_topLabel = (base.transform.Find("QA/top").GetComponent("XUILabel") as IXUILabel); + this.m_centerLabel = (base.transform.Find("QA/center").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public override void SetUnLockLevel() + { + base.SetUnLockLevel(); + this.m_qa.SetActive(true); + this.m_tip.SetVisible(false); + this.SetUnEnable(); + this.m_centerLabel.SetVisible(true); + this.m_timeTips.SetVisible(true); + bool activityState = this._doc.ActivityState; + if (activityState) + { + this.m_centerLabel.SetText(XStringDefineProxy.GetString("ActivityRunning")); + this.m_timeLabel.SetVisible(true); + this.m_timeTips.SetText(string.Format(XStringDefineProxy.GetString("GuildCollectRewardTimeTips"), "")); + this.m_RefreshTime = this.m_timeLabel; + } + else + { + XActivityDocument doc = XActivityDocument.Doc; + MultiActivityList.RowData byID = doc.MulActivityTable.GetByID(17); + this.m_centerLabel.SetText(byID.OpenDayTips); + this.m_timeLabel.SetVisible(false); + this.m_RefreshTime = null; + } + } + + private void SetUnEnable() + { + this.m_enterButton.SetVisible(false); + this.m_openButton.SetVisible(false); + this.m_timeLabel.SetVisible(false); + this.m_timeTips.SetVisible(false); + this.m_topLabel.SetVisible(false); + this.m_centerLabel.SetVisible(false); + } + + public override void RefreshRedPoint() + { + this.m_redPoint.SetActive(false); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_RefreshTime == null; + if (!flag) + { + XGuildCollectDocument specificDocument = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + bool flag2 = !specificDocument.ActivityState; + if (!flag2) + { + int num = (int)(XSingleton.singleton.GetMachineTime() - specificDocument.SignTime); + num = (int)(specificDocument.LeftTime - (uint)num); + bool flag3 = num < 0; + if (flag3) + { + num = 0; + } + this.m_RefreshTime.SetText(XSingleton.singleton.TimeFormatString(num, 3, 3, 4, false, true)); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxCollectHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildRelaxCollectHandler.cs.meta new file mode 100644 index 00000000..a0134213 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxCollectHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc0506ba3f8029b4abc08f685e8c1584 +timeCreated: 1611404548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxJokerHandler.cs b/Client/Assets/Scripts/XMainClient/GuildRelaxJokerHandler.cs new file mode 100644 index 00000000..64dfe3d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxJokerHandler.cs @@ -0,0 +1,27 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildRelaxJokerHandler : GuildRelaxChildHandler + { + protected override void Init() + { + this.m_moduleID = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildRelax_Joker); + base.Init(); + } + + protected override void OnGameClick(IXUITexture sp) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + + public override void RefreshRedPoint() + { + XGuildJokerDocument specificDocument = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + this.m_redPoint.gameObject.SetActive(specificDocument.GameCount > 0); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxJokerHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildRelaxJokerHandler.cs.meta new file mode 100644 index 00000000..cba64d42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxJokerHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0246fd7076a64e7498f02653d1c3ff96 +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxJokerMatchHandler.cs b/Client/Assets/Scripts/XMainClient/GuildRelaxJokerMatchHandler.cs new file mode 100644 index 00000000..36a4810a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxJokerMatchHandler.cs @@ -0,0 +1,152 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildRelaxJokerMatchHandler : GuildRelaxChildHandler + { + private XGuildJockerMatchDocument _Doc; + + private IXUIButton m_enterButton; + + private IXUIButton m_openButton; + + private IXUILabel m_timeLabel; + + private IXUILabel m_timeTips; + + private IXUILabel m_topLabel; + + private IXUILabel m_centerLabel; + + private IXUILabel m_enterLabel; + + private IXUILabel m_openLabel; + + private bool m_repositionNow = false; + + protected override void Init() + { + base.Init(); + this.m_moduleID = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildRelax_JokerMatch); + this._Doc = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + this.m_qa.SetActive(true); + this.m_enterButton = (base.transform.Find("QA/Enter").GetComponent("XUIButton") as IXUIButton); + this.m_enterLabel = (base.transform.Find("QA/Enter/T1").GetComponent("XUILabel") as IXUILabel); + this.m_enterLabel.SetText(XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_JOIN")); + this.m_openButton = (base.transform.Find("QA/Open").GetComponent("XUIButton") as IXUIButton); + this.m_openLabel = (base.transform.Find("QA/Open/T1").GetComponent("XUILabel") as IXUILabel); + this.m_openLabel.SetText(XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_BEGION")); + this.m_timeLabel = (base.transform.Find("QA/Time").GetComponent("XUILabel") as IXUILabel); + this.m_timeTips = (base.transform.Find("QA/Time/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_topLabel = (base.transform.Find("QA/top").GetComponent("XUILabel") as IXUILabel); + this.m_centerLabel = (base.transform.Find("QA/center").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_enterButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterGameClick)); + this.m_openButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOpenGameClick)); + } + + private bool OnOpenGameClick(IXUIButton btn) + { + this._Doc.SendJokerMatchBegion(); + return false; + } + + private bool OnEnterGameClick(IXUIButton btn) + { + this._Doc.SendJokerMatchJoin(); + return false; + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendJokerMatchQuery(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this._Doc.SendJokerMatchQuery(); + } + + public override void SetUnLockLevel() + { + base.SetUnLockLevel(); + this.m_qa.SetActive(true); + this.m_tip.SetVisible(false); + this.SetUnEnable(); + bool isBegin = this._Doc.IsBegin; + if (isBegin) + { + this.m_enterButton.SetVisible(true); + } + else + { + bool isCanBegin = this._Doc.IsCanBegin; + if (isCanBegin) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.m_openButton.SetVisible(specificDocument.Position == GuildPosition.GPOS_LEADER || specificDocument.Position == GuildPosition.GPOS_VICELEADER); + this.m_centerLabel.SetVisible(specificDocument.Position != GuildPosition.GPOS_LEADER && specificDocument.Position != GuildPosition.GPOS_VICELEADER); + this.m_centerLabel.SetText(XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_STEP2")); + } + else + { + bool flag = this._Doc.TimeLeft > 0.0; + if (flag) + { + this.m_timeLabel.SetVisible(true); + this.m_timeLabel.SetText(XSingleton.singleton.TimeFormatString((int)this._Doc.TimeLeft, 3, 3, 4, false, true)); + this.m_repositionNow = true; + } + else + { + this.m_centerLabel.SetVisible(true); + this.m_centerLabel.SetText(XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_STEP1")); + } + } + } + } + + private void SetUnEnable() + { + this.m_enterButton.SetVisible(false); + this.m_openButton.SetVisible(false); + this.m_timeLabel.SetVisible(false); + this.m_timeTips.SetVisible(false); + this.m_topLabel.SetVisible(false); + this.m_centerLabel.SetVisible(false); + this.m_repositionNow = false; + } + + public override void RefreshRedPoint() + { + this.m_redPoint.SetActive(this._Doc.bAvaiableIconWhenShow); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = !this.m_repositionNow; + if (!flag) + { + bool flag2 = this._Doc.TimeLeft > 0.0; + if (flag2) + { + this.m_timeLabel.SetText(XSingleton.singleton.TimeFormatString((int)this._Doc.TimeLeft, 3, 3, 4, false, true)); + } + else + { + this.RefreshData(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxJokerMatchHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildRelaxJokerMatchHandler.cs.meta new file mode 100644 index 00000000..a26b1540 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxJokerMatchHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3227f6f177d3bad4eacd62451ef124da +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxVoiceHandler.cs b/Client/Assets/Scripts/XMainClient/GuildRelaxVoiceHandler.cs new file mode 100644 index 00000000..4968cc88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxVoiceHandler.cs @@ -0,0 +1,181 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class GuildRelaxVoiceHandler : GuildRelaxChildHandler + { + private IXUILabel timeLabel = null; + + private float targetTime = 0f; + + private XGuildRelaxGameDocument _doc = null; + + public override void SetUnLockLevel() + { + base.SetUnLockLevel(); + this.SetVoiceInfo(base.transform.gameObject); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.GetGuildVoiceInfo(); + } + + protected override void Init() + { + base.Init(); + this.m_moduleID = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildRelax_VoiceQA); + this._doc = XDocuments.GetSpecificDocument(XGuildRelaxGameDocument.uuID); + } + + public override void RefreshRedPoint() + { + this.m_redPoint.SetActive(false); + } + + private void SetVoiceInfo(GameObject go) + { + this.m_qa.SetActive(true); + IXUIButton ixuibutton = go.transform.Find("QA/Enter").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = go.transform.Find("QA/Open").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = go.transform.Find("QA/Time").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("QA/Time/Tips").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("QA/top").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("QA/center").GetComponent("XUILabel") as IXUILabel; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterVoiceQAClick)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOpenVoiceQAClick)); + this.SetVoiceTipFalse(go); + bool flag = this._doc.GuildVoiceQAState == 0u; + if (!flag) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag2 = specificDocument.Position == GuildPosition.GPOS_LEADER || specificDocument.Position == GuildPosition.GPOS_VICELEADER; + if (flag2) + { + switch (this._doc.GuildVoiceQAState) + { + case 1u: + ixuibutton2.gameObject.SetActive(true); + ixuibutton2.SetEnable(false, false); + ixuilabel.gameObject.SetActive(true); + this.timeLabel = ixuilabel; + this.targetTime = Time.time + this._doc.GuildVoiceQAWaitTime; + ixuilabel2.SetText(XStringDefineProxy.GetString("VoiceQA_Guild_Tips1")); + break; + case 2u: + ixuibutton2.gameObject.SetActive(true); + ixuibutton2.SetEnable(true, false); + ixuilabel.gameObject.SetActive(true); + this.timeLabel = ixuilabel; + this.targetTime = Time.time + this._doc.GuildVoiceQAWaitTime; + ixuilabel2.SetText(XStringDefineProxy.GetString("VoiceQA_Guild_Tips2")); + break; + case 3u: + ixuibutton.gameObject.SetActive(true); + break; + case 4u: + ixuilabel4.gameObject.SetActive(true); + ixuilabel4.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("VoiceQA_Guild_Tips3"))); + break; + case 5u: + { + ixuilabel4.gameObject.SetActive(true); + XActivityDocument doc = XActivityDocument.Doc; + MultiActivityList.RowData byID = doc.MulActivityTable.GetByID(4); + ixuilabel4.SetText(byID.OpenDayTips); + break; + } + } + } + else + { + switch (this._doc.GuildVoiceQAState) + { + case 1u: + case 2u: + ixuilabel4.gameObject.SetActive(true); + ixuilabel4.SetText(XStringDefineProxy.GetString("VoiceQA_Guild_Tips5")); + break; + case 3u: + ixuibutton.gameObject.SetActive(true); + break; + case 4u: + ixuilabel4.gameObject.SetActive(true); + ixuilabel4.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("VoiceQA_Guild_Tips3"))); + break; + case 5u: + { + ixuilabel4.gameObject.SetActive(true); + XActivityDocument doc2 = XActivityDocument.Doc; + MultiActivityList.RowData byID2 = doc2.MulActivityTable.GetByID(4); + ixuilabel4.SetText(byID2.OpenDayTips); + break; + } + } + } + } + } + + private void SetVoiceTipFalse(GameObject go) + { + GameObject gameObject = go.transform.Find("QA/Enter").gameObject; + GameObject gameObject2 = go.transform.Find("QA/Open").gameObject; + GameObject gameObject3 = go.transform.Find("QA/Time").gameObject; + GameObject gameObject4 = go.transform.Find("QA/top").gameObject; + GameObject gameObject5 = go.transform.Find("QA/center").gameObject; + gameObject.SetActive(false); + gameObject2.SetActive(false); + gameObject3.SetActive(false); + gameObject4.SetActive(false); + gameObject5.SetActive(false); + this.timeLabel = null; + } + + private bool OnEnterVoiceQAClick(IXUIButton btn) + { + this._doc.JoinGuildVoiceInfo(); + return true; + } + + private bool OnOpenVoiceQAClick(IXUIButton btn) + { + this._doc.OpenGuildVoiceQuery(); + return true; + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.timeLabel == null; + if (!flag) + { + int num = (int)(this.targetTime - Time.time); + bool flag2 = num < 0; + if (flag2) + { + this._doc.GetGuildVoiceInfo(); + } + bool flag3 = num < 0; + if (flag3) + { + this.timeLabel.SetText(XSingleton.singleton.TimeFormatString(0, 3, 3, 4, false, true)); + } + else + { + this.timeLabel.SetText(XSingleton.singleton.TimeFormatString(num, 3, 3, 4, false, true)); + } + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + this._doc.GetGuildVoiceInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildRelaxVoiceHandler.cs.meta b/Client/Assets/Scripts/XMainClient/GuildRelaxVoiceHandler.cs.meta new file mode 100644 index 00000000..bb09acde --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildRelaxVoiceHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4496151c13efe104b9d64e122a271d4f +timeCreated: 1611403645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildSceneState.cs b/Client/Assets/Scripts/XMainClient/GuildSceneState.cs new file mode 100644 index 00000000..7ed39977 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildSceneState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum GuildSceneState + { + GSS_InGuildScene, + GSS_NotGuildScene, + GSS_NoPermission + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildSceneState.cs.meta b/Client/Assets/Scripts/XMainClient/GuildSceneState.cs.meta new file mode 100644 index 00000000..8c09842d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildSceneState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7198ba610c37d024a8e70ef03cfe9292 +timeCreated: 1611403935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildTaskReward.cs b/Client/Assets/Scripts/XMainClient/GuildTaskReward.cs new file mode 100644 index 00000000..8246f3ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildTaskReward.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public class GuildTaskReward + { + public uint itemID; + + public uint count; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildTaskReward.cs.meta b/Client/Assets/Scripts/XMainClient/GuildTaskReward.cs.meta new file mode 100644 index 00000000..e3a859ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildTaskReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72657d2e8774d124a94514d750eea59f +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildTaskType.cs b/Client/Assets/Scripts/XMainClient/GuildTaskType.cs new file mode 100644 index 00000000..27bfc197 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildTaskType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum GuildTaskType + { + None, + DailyTask, + WeeklyTask + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildTaskType.cs.meta b/Client/Assets/Scripts/XMainClient/GuildTaskType.cs.meta new file mode 100644 index 00000000..576e7e7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildTaskType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cf3279c67c5e904aa27a0fc6d6a85fa +timeCreated: 1611403804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildTerritoryAllianceInfo.cs b/Client/Assets/Scripts/XMainClient/GuildTerritoryAllianceInfo.cs new file mode 100644 index 00000000..66683fe1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildTerritoryAllianceInfo.cs @@ -0,0 +1,64 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + public class GuildTerritoryAllianceInfo + { + public ulong GuildID; + + public string GuildName; + + public ulong AllianceGuildID; + + public string AllianceGuildName; + + public List TryAllianceIDs; + + public bool isAllicance = false; + + public void Set(GuildTerrChallInfo terr) + { + this.GuildID = terr.guildid; + this.GuildName = terr.guildname; + this.AllianceGuildID = terr.allianceid; + this.TryAllianceIDs = terr.tryallianceid; + XSingleton.singleton.AddGreenLog(this.GuildName, ":TryAllianceIDs:", this.TryAllianceIDs.Count.ToString(), null, null, null); + this.isAllicance = false; + } + + public void Add(GuildTerrChallInfo terr) + { + bool flag = this.AllianceGuildID == terr.guildid; + if (flag) + { + this.AllianceGuildID = terr.guildid; + this.AllianceGuildName = terr.guildname; + this.isAllicance = true; + } + } + + public bool Contains(ulong allianceid) + { + bool flag = this.TryAllianceIDs == null; + return !flag && this.TryAllianceIDs.Contains(allianceid); + } + + public string GetAllinceString() + { + bool flag = this.isAllicance; + string result; + if (flag) + { + result = string.Format("{0}&{1}", this.GuildName, this.AllianceGuildName); + } + else + { + result = this.GuildName; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildTerritoryAllianceInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildTerritoryAllianceInfo.cs.meta new file mode 100644 index 00000000..9ca519d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildTerritoryAllianceInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b67fefda5aaa49e4ea3f3105f1359bf4 +timeCreated: 1611404398 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildUsingBuffInfo.cs b/Client/Assets/Scripts/XMainClient/GuildUsingBuffInfo.cs new file mode 100644 index 00000000..dfbfeeef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildUsingBuffInfo.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public class GuildUsingBuffInfo + { + public uint buffID = 0u; + + public uint count = 0u; + + public uint time = 0u; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildUsingBuffInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildUsingBuffInfo.cs.meta new file mode 100644 index 00000000..dd7a38e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildUsingBuffInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13b748f8d747cb145ad5be435393b95c +timeCreated: 1611403250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/GuildWeeklyTaskInfo.cs b/Client/Assets/Scripts/XMainClient/GuildWeeklyTaskInfo.cs new file mode 100644 index 00000000..a1523d7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildWeeklyTaskInfo.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + public class GuildWeeklyTaskInfo + { + public uint taskID; + + public uint step; + + public bool isRewarded; + + public bool hasAsked; + + public uint refreshedCount; + + public uint originIndex; + + public WeeklyTaskCategory category; + } +} diff --git a/Client/Assets/Scripts/XMainClient/GuildWeeklyTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/GuildWeeklyTaskInfo.cs.meta new file mode 100644 index 00000000..7bb0af9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/GuildWeeklyTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9adba53f5eb30094bb2c1816eb25b902 +timeCreated: 1611404202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HallFameRoleInfo.cs b/Client/Assets/Scripts/XMainClient/HallFameRoleInfo.cs new file mode 100644 index 00000000..cf90a421 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HallFameRoleInfo.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class HallFameRoleInfo + { + public uint Rank = 0u; + + public string IconName; + + public string TeamName; + + public string RoleName; + + public RoleOutLookBrief OutLook; + + public ArenaStarHistData hisData; + + public List LastData = new List(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/HallFameRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/HallFameRoleInfo.cs.meta new file mode 100644 index 00000000..48e8450f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HallFameRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2d07839e21d7f14690d1c6330f560a5 +timeCreated: 1611404387 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleBehaviour.cs b/Client/Assets/Scripts/XMainClient/HeroBattleBehaviour.cs new file mode 100644 index 00000000..b9f31afe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleBehaviour.cs @@ -0,0 +1,156 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class HeroBattleBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_SkillPreViewBtn; + + public IXUIButton m_BuyBtn; + + public IXUILabel m_HeroDescription; + + public IXUILabel m_HeroName; + + public IXUILabel m_ExperienceTime; + + public Transform m_SkillPreViewTs; + + public GameObject m_BattleRecordFrame; + + public GameObject m_RewardPreViewFrame; + + public IUIDummy m_Snapshot; + + public IXUISprite m_SnapDrag; + + public IXUIButton m_BattleRecordBtn; + + public IXUIButton m_ShopBtn; + + public IXUIButton m_RewardPreViewBtn; + + public IXUIButton m_SingleMatch; + + public IXUIButton m_TeamMatch; + + public IXUILabel m_SingleMatchLabel; + + public IXUILabel m_BattleTotal; + + public IXUILabel m_BattleWin; + + public IXUILabel m_BattleLose; + + public IXUILabel m_BattleRate; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_WeekCurrentWin; + + public IXUISprite m_ClickGet; + + public GameObject m_HadGet; + + public IXUILabel m_BattleTips; + + public IXUILabel m_WeekBattleTips; + + public Transform m_WeekRewardTs; + + public Transform m_DayRewardTs; + + public IXUIButton m_RewardPreViewCloseBtn; + + public IXUILabel m_CurrentWinThisWeek; + + public XUIPool m_PreViewItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_PreViewBgPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITexture m_BgTex; + + public IXUIButton m_RankBtn; + + public GameObject m_RankFrame; + + public IXUIButton m_RankCloseBtn; + + public IXUIWrapContent m_RankWrapContent; + + public IXUIScrollView m_RankScrollView; + + public Transform m_MyRankTs; + + public GameObject m_OutOfRank; + + public IXUISprite m_PrivilegeIcon; + + public IXUILabel m_PrivilegeName; + + public IXUISprite m_Privilege; + + public IXUISprite m_ResearchBtn; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BattleRecordFrame = base.transform.Find("Bg/BattleRecordFrame").gameObject; + this.m_RewardPreViewFrame = base.transform.Find("Bg/RewardPreView").gameObject; + this.m_SkillPreViewTs = base.transform.Find("Bg/SkillPreViewParent"); + this.m_SkillPreViewBtn = (base.transform.Find("Bg/SkillBtn").GetComponent("XUIButton") as IXUIButton); + this.m_BuyBtn = (base.transform.Find("Bg/BuyBtn").GetComponent("XUIButton") as IXUIButton); + this.m_HeroDescription = (base.transform.Find("Bg/Description").GetComponent("XUILabel") as IXUILabel); + this.m_HeroName = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel); + this.m_ExperienceTime = (base.transform.Find("Bg/ExperienceTime").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/CharacterFrame"); + this.m_Snapshot = (transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_SnapDrag = (transform.Find("SnapDrag").GetComponent("XUISprite") as IXUISprite); + transform = base.transform.Find("Bg/Right"); + this.m_BattleRecordBtn = (transform.Find("RecordBtn").GetComponent("XUIButton") as IXUIButton); + this.m_ShopBtn = (transform.Find("ShopBtn").GetComponent("XUIButton") as IXUIButton); + this.m_RewardPreViewBtn = (transform.Find("RewardPreViewBtn").GetComponent("XUIButton") as IXUIButton); + this.m_SingleMatch = (transform.Find("SingleMatchBtn").GetComponent("XUIButton") as IXUIButton); + this.m_TeamMatch = (transform.Find("TeamMatchBtn").GetComponent("XUIButton") as IXUIButton); + this.m_SingleMatchLabel = (this.m_SingleMatch.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_BattleTotal = (transform.Find("BattleInfo/BattleInfo0").GetComponent("XUILabel") as IXUILabel); + this.m_BattleWin = (transform.Find("BattleInfo/BattleInfo2").GetComponent("XUILabel") as IXUILabel); + this.m_BattleLose = (transform.Find("BattleInfo/BattleInfo3").GetComponent("XUILabel") as IXUILabel); + this.m_BattleRate = (transform.Find("BattleInfo/BattleInfo1").GetComponent("XUILabel") as IXUILabel); + Transform transform2 = transform.Find("WeekReward/RewardTs/ItemTpl"); + this.m_RewardPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 6u, false); + this.m_WeekCurrentWin = (transform.Find("WeekReward/CurrentWin").GetComponent("XUILabel") as IXUILabel); + this.m_ClickGet = (transform.Find("WeekReward/ClickGet").GetComponent("XUISprite") as IXUISprite); + this.m_HadGet = transform.Find("WeekReward/HadGet").gameObject; + this.m_WeekBattleTips = (transform.Find("WeekReward/WeekTips").GetComponent("XUILabel") as IXUILabel); + this.m_BattleTips = (transform.Find("ExReward/BattleTips").GetComponent("XUILabel") as IXUILabel); + this.m_WeekRewardTs = transform.Find("WeekReward/RewardTs"); + this.m_DayRewardTs = transform.Find("ExReward/RewardTs"); + transform = base.transform.Find("Bg/RewardPreView"); + this.m_RewardPreViewCloseBtn = (transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_CurrentWinThisWeek = (transform.Find("Bg/CurrentWin/Text").GetComponent("XUILabel") as IXUILabel); + transform2 = transform.Find("Bg/Bg/ScrollView/ItemTpl"); + this.m_PreViewItemPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 16u, false); + transform2 = transform.Find("Bg/Bg/ScrollView/RewardTpl"); + this.m_PreViewBgPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 4u, false); + this.m_BgTex = (base.transform.Find("Bg/Bg").GetComponent("XUITexture") as IXUITexture); + this.m_RankBtn = (base.transform.Find("Bg/Right/RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_RankFrame = base.transform.Find("Bg/RankFrame").gameObject; + this.m_RankCloseBtn = (this.m_RankFrame.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_RankWrapContent = (this.m_RankFrame.transform.Find("Bg/Panel/QualifyList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankScrollView = (this.m_RankFrame.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_MyRankTs = this.m_RankFrame.transform.Find("Bg/MyRankFrame/QualifyList/Tpl"); + this.m_OutOfRank = this.m_RankFrame.transform.Find("Bg/MyRankFrame/QualifyList/OutOfRange").gameObject; + this.m_PrivilegeIcon = (base.transform.Find("Bg/tq").GetComponent("XUISprite") as IXUISprite); + this.m_PrivilegeName = (base.transform.Find("Bg/tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_Privilege = (base.transform.Find("Bg/tq/p").GetComponent("XUISprite") as IXUISprite); + this.m_ResearchBtn = (base.transform.Find("Bg/ResearchBtn").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/HeroBattleBehaviour.cs.meta new file mode 100644 index 00000000..a2a726ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 494d92f21f3185349997a69d7a482891 +timeCreated: 1611403661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleMVPBehaviour.cs b/Client/Assets/Scripts/XMainClient/HeroBattleMVPBehaviour.cs new file mode 100644 index 00000000..1acda97b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleMVPBehaviour.cs @@ -0,0 +1,53 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class HeroBattleMVPBehaviour : DlgBehaviourBase + { + public IXUILabel m_Name; + + public IXUILabel m_Kill; + + public IXUILabel m_Death; + + public IXUILabel m_Assit; + + public IXUIButton m_ShareBtn; + + public IXUISprite m_Close; + + public GameObject LogoWC; + + public GameObject LogoQQ; + + public GameObject LogoDN; + + public GameObject LogoTX; + + public IXUILabel m_HeroName; + + public IXUILabel m_HeroDesc; + + public IXUILabel m_HeroSay; + + private void Awake() + { + this.m_Name = (base.transform.Find("Bg/Board/Name").GetComponent("XUILabel") as IXUILabel); + this.m_Kill = (base.transform.Find("Bg/Board/Kill").GetComponent("XUILabel") as IXUILabel); + this.m_Death = (base.transform.Find("Bg/Board/Death").GetComponent("XUILabel") as IXUILabel); + this.m_Assit = (base.transform.Find("Bg/Board/Help").GetComponent("XUILabel") as IXUILabel); + this.m_ShareBtn = (base.transform.Find("Bg/ShareBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.LogoWC = base.transform.Find("Bg/LogoWC").gameObject; + this.LogoQQ = base.transform.Find("Bg/LogoQQ").gameObject; + this.LogoDN = base.transform.Find("Bg/p").gameObject; + this.LogoTX = base.transform.Find("Bg/gg").gameObject; + this.m_HeroName = (base.transform.Find("Bg/Board/HeroName").GetComponent("XUILabel") as IXUILabel); + this.m_HeroDesc = (base.transform.Find("Bg/Board/Desc").GetComponent("XUILabel") as IXUILabel); + this.m_HeroSay = (base.transform.Find("Bg/Board/Say").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleMVPBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/HeroBattleMVPBehaviour.cs.meta new file mode 100644 index 00000000..5340c989 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleMVPBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0ba15897bf324c40b3325245bca4f16 +timeCreated: 1611404353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleRankBehavior.cs b/Client/Assets/Scripts/XMainClient/HeroBattleRankBehavior.cs new file mode 100644 index 00000000..52e44afe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleRankBehavior.cs @@ -0,0 +1,29 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class HeroBattleRankBehavior : DlgBehaviourBase + { + public IXUIWrapContent m_RankWrapContent; + + public IXUIScrollView m_RankScrollView; + + public Transform m_MyRankTs; + + public GameObject m_OutOfRank; + + public IXUIButton m_CloseBtn; + + private void Awake() + { + this.m_OutOfRank = base.transform.Find("Bg/MyRankFrame/QualifyList/OutOfRange").gameObject; + this.m_MyRankTs = base.transform.Find("Bg/MyRankFrame/QualifyList/Tpl"); + this.m_RankWrapContent = (base.transform.Find("Bg/Panel/QualifyList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleRankBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/HeroBattleRankBehavior.cs.meta new file mode 100644 index 00000000..bbe36071 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleRankBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b23caf7ad225deb46ba6d5e0baf35912 +timeCreated: 1611404382 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleRankData.cs b/Client/Assets/Scripts/XMainClient/HeroBattleRankData.cs new file mode 100644 index 00000000..013e0e30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleRankData.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class HeroBattleRankData + { + public ulong roleID; + + public string name; + + public uint rank; + + public uint winTotal; + + public uint fightTotal; + + public uint maxContinue; + + public uint maxKills; + } +} diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleRankData.cs.meta b/Client/Assets/Scripts/XMainClient/HeroBattleRankData.cs.meta new file mode 100644 index 00000000..b5d2d83a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f01731e7abbc7f46bc9009b7589d827 +timeCreated: 1611403367 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleRankDlg.cs b/Client/Assets/Scripts/XMainClient/HeroBattleRankDlg.cs new file mode 100644 index 00000000..375b963b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleRankDlg.cs @@ -0,0 +1,144 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class HeroBattleRankDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/HeroBattleRankDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XHeroBattleDocument _doc = null; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + base.uiBehaviour.m_RankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapListUpdated)); + this._doc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + base.uiBehaviour.m_CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDlg)); + } + + private bool OnCloseDlg(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void SetupRankFrame() + { + this.SetRankTpl(base.uiBehaviour.m_MyRankTs, 0, true); + base.uiBehaviour.m_RankWrapContent.SetContentCount(this._doc.LastWeek_MainRankList.Count, false); + base.uiBehaviour.m_RankScrollView.ResetPosition(); + } + + public void WrapListUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.LastWeek_MainRankList.Count; + if (!flag) + { + this.SetRankTpl(t, index, false); + } + } + + public void SetRankTpl(Transform t, int index, bool isMy) + { + HeroBattleRankData heroBattleRankData = isMy ? this._doc.LastWeek_MyRankData : this._doc.LastWeek_MainRankList[index]; + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Value1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Value2").GetComponent("XUILabel") as IXUILabel; + bool flag = heroBattleRankData.rank < 3u; + if (flag) + { + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + ixuisprite.spriteName = string.Format("N{0}", heroBattleRankData.rank + 1u); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetVisible(true); + ixuilabel.SetText(string.Format("No.{0}", heroBattleRankData.rank + 1u)); + } + if (isMy) + { + bool flag2 = heroBattleRankData.rank == uint.MaxValue; + if (flag2) + { + base.uiBehaviour.m_OutOfRank.SetActive(true); + ixuisprite.SetVisible(false); + ixuilabel.SetVisible(false); + } + else + { + base.uiBehaviour.m_OutOfRank.SetActive(false); + } + } + bool flag3 = heroBattleRankData.fightTotal == 0u; + int num; + if (flag3) + { + num = 0; + } + else + { + num = (int)Mathf.Floor(heroBattleRankData.winTotal * 100u / heroBattleRankData.fightTotal); + } + ixuilabel2.SetText(heroBattleRankData.name); + ixuilabel3.SetText(string.Format("{0}%", num)); + ixuilabel4.SetText(heroBattleRankData.fightTotal.ToString()); + ixuilabel2.ID = heroBattleRankData.roleID; + ixuilabel2.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnPlayerInfoClick)); + } + + private void OnPlayerInfoClick(IXUILabel label) + { + bool flag = label.ID == 0UL; + if (!flag) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(label.ID, false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleRankDlg.cs.meta b/Client/Assets/Scripts/XMainClient/HeroBattleRankDlg.cs.meta new file mode 100644 index 00000000..2707c1b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleRankDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fb9adea49f12954d84c606e96aa59b4 +timeCreated: 1611403403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleRewardState.cs b/Client/Assets/Scripts/XMainClient/HeroBattleRewardState.cs new file mode 100644 index 00000000..237a7b50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleRewardState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum HeroBattleRewardState + { + CanNotGet, + CanGet, + GetEnd + } +} diff --git a/Client/Assets/Scripts/XMainClient/HeroBattleRewardState.cs.meta b/Client/Assets/Scripts/XMainClient/HeroBattleRewardState.cs.meta new file mode 100644 index 00000000..fcd66b9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HeroBattleRewardState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 626cbacbe3c03e347acf8db2c5a209ff +timeCreated: 1611403841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HistoryMaxStruct.cs b/Client/Assets/Scripts/XMainClient/HistoryMaxStruct.cs new file mode 100644 index 00000000..968e94c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HistoryMaxStruct.cs @@ -0,0 +1,22 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class HistoryMaxStruct + { + public uint PreLevel = 0u; + + private bool IsInit = false; + + public void Replace() + { + bool flag = !this.IsInit; + if (flag) + { + this.PreLevel = XSingleton.singleton.XPlayerData.Level; + this.IsInit = true; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HistoryMaxStruct.cs.meta b/Client/Assets/Scripts/XMainClient/HistoryMaxStruct.cs.meta new file mode 100644 index 00000000..a27e70f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HistoryMaxStruct.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2a774d18d84b4347b4fa82fab94b5f4 +timeCreated: 1611404844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HomeEventLog.cs b/Client/Assets/Scripts/XMainClient/HomeEventLog.cs new file mode 100644 index 00000000..7658089d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeEventLog.cs @@ -0,0 +1,381 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class HomeEventLog + { + public ulong RoleID + { + get + { + return this.m_roleId; + } + } + + public string Txt + { + get + { + return this.m_txt; + } + } + + public string Time + { + get + { + return this.m_time; + } + } + + private ulong m_roleId; + + private string m_txt; + + private string m_time; + + public HomeEventLog(GardenEventLog log, uint severTime) + { + bool flag = log == null; + if (!flag) + { + this.m_roleId = log.role_id; + this.SetTime((ulong)severTime, (ulong)log.occur_time); + this.SetTxt(log); + } + } + + private void SetTime(ulong endT, ulong startT) + { + ulong num = (endT > startT) ? (endT - startT) : 0UL; + bool flag = num < 60UL; + if (flag) + { + this.m_time = string.Format(XStringDefineProxy.GetString("Home_Second"), num); + } + else + { + num /= 60UL; + bool flag2 = num < 60UL; + if (flag2) + { + this.m_time = string.Format(XStringDefineProxy.GetString("Home_Min"), num); + } + else + { + num /= 60UL; + bool flag3 = num < 24UL; + if (flag3) + { + this.m_time = string.Format(XStringDefineProxy.GetString("Home_Hour"), num); + } + else + { + num /= 24UL; + bool flag4 = num < 7UL; + if (flag4) + { + this.m_time = string.Format(XStringDefineProxy.GetString("Home_Day"), num); + } + else + { + num /= 7UL; + this.m_time = string.Format(XStringDefineProxy.GetString("Home_Day"), num); + } + } + } + } + } + + private void SetTxt(GardenEventLog log) + { + switch (log.event_type) + { + case 1u: + { + PlantSeed.RowData seedRow = this.GetSeedRow(log.target); + bool result = log.result; + if (result) + { + bool flag = log.role_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + bool flag2 = seedRow != null; + if (flag2) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendWater_Right"), new object[] + { + log.role_name, + seedRow.PlantName, + 100, + seedRow.IncreaseGrowUpRate + }); + } + else + { + this.m_txt = "1"; + } + } + else + { + bool flag3 = seedRow != null; + if (flag3) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendWater_Right"), new object[] + { + XStringDefineProxy.GetString("Log_Me"), + seedRow.PlantName, + 100, + seedRow.IncreaseGrowUpRate + }); + } + else + { + this.m_txt = "1"; + } + } + } + else + { + bool flag4 = log.role_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag4) + { + bool flag5 = seedRow != null; + if (flag5) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendWater_Error"), log.role_name, seedRow.PlantName, seedRow.ReduceGrowUpRate); + } + else + { + this.m_txt = "1"; + } + } + else + { + bool flag6 = seedRow != null; + if (flag6) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendWater_Error"), XStringDefineProxy.GetString("Log_Me"), seedRow.PlantName, seedRow.ReduceGrowUpRate); + } + else + { + this.m_txt = "1"; + } + } + } + break; + } + case 2u: + { + PlantSeed.RowData seedRow2 = this.GetSeedRow(log.target); + bool result2 = log.result; + if (result2) + { + bool flag7 = log.role_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag7) + { + bool flag8 = seedRow2 != null; + if (flag8) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendDisinsection_Right"), new object[] + { + log.role_name, + seedRow2.PlantName, + 100, + seedRow2.IncreaseGrowUpRate + }); + } + else + { + this.m_txt = "1"; + } + } + else + { + bool flag9 = seedRow2 != null; + if (flag9) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendDisinsection_Right"), new object[] + { + XStringDefineProxy.GetString("Log_Me"), + seedRow2.PlantName, + 100, + seedRow2.IncreaseGrowUpRate + }); + } + else + { + this.m_txt = "1"; + } + } + } + else + { + bool flag10 = log.role_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag10) + { + bool flag11 = seedRow2 != null; + if (flag11) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendDisinsection_Error"), log.role_name, seedRow2.PlantName, seedRow2.ReduceGrowUpRate); + } + else + { + this.m_txt = "1"; + } + } + else + { + bool flag12 = seedRow2 != null; + if (flag12) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendDisinsection_Error"), XStringDefineProxy.GetString("Log_Me"), seedRow2.PlantName, seedRow2.ReduceGrowUpRate); + } + else + { + this.m_txt = "1"; + } + } + } + break; + } + case 3u: + { + PlantSeed.RowData seedRow3 = this.GetSeedRow(log.target); + bool result3 = log.result; + if (result3) + { + bool flag13 = log.role_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag13) + { + bool flag14 = seedRow3 != null; + if (flag14) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendFertilize_Right"), new object[] + { + log.role_name, + seedRow3.PlantName, + 100, + seedRow3.IncreaseGrowUpRate + }); + } + else + { + this.m_txt = "1"; + } + } + else + { + bool flag15 = seedRow3 != null; + if (flag15) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendFertilize_Right"), new object[] + { + XStringDefineProxy.GetString("Log_Me"), + seedRow3.PlantName, + 100, + seedRow3.IncreaseGrowUpRate + }); + } + else + { + this.m_txt = "1"; + } + } + } + else + { + bool flag16 = log.role_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag16) + { + bool flag17 = seedRow3 != null; + if (flag17) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendFertilize_Error"), log.role_name, seedRow3.PlantName, seedRow3.ReduceGrowUpRate); + } + else + { + this.m_txt = "1"; + } + } + else + { + bool flag18 = seedRow3 != null; + if (flag18) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendFertilize_Error"), XStringDefineProxy.GetString("Log_Me"), seedRow3.PlantName, seedRow3.ReduceGrowUpRate); + } + else + { + this.m_txt = "1"; + } + } + } + break; + } + case 4u: + { + PlantSeed.RowData seedRow4 = this.GetSeedRow(log.target); + bool flag19 = seedRow4 != null; + if (flag19) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendSteal"), log.role_name, seedRow4.StealAward[1], seedRow4.PlantName); + } + else + { + this.m_txt = "4"; + } + break; + } + case 5u: + this.m_txt = XStringDefineProxy.GetString("Log_SpriteTrouble"); + break; + case 6u: + { + bool flag20 = log.role_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag20) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_SpriteExpel"), log.role_name); + } + else + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_SpriteExpel"), XStringDefineProxy.GetString("Log_Me")); + } + break; + } + case 7u: + { + PlantSprite.RowData plantSprite = this.GetPlantSprite(log.target); + bool flag21 = plantSprite != null; + if (flag21) + { + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_SpriteDamageCrop"), plantSprite.ReduceGrowth); + } + else + { + this.m_txt = "7"; + } + break; + } + case 8u: + this.m_txt = string.Format(XStringDefineProxy.GetString("Log_FriendVist"), log.role_name); + break; + default: + this.m_txt = ""; + break; + } + } + + private PlantSeed.RowData GetSeedRow(uint seedId) + { + return HomePlantDocument.PlantSeedTable.GetBySeedID(seedId); + } + + private PlantSprite.RowData GetPlantSprite(uint spriteId) + { + return HomePlantDocument.PlantSpriteTable.GetBySpriteID(spriteId); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HomeEventLog.cs.meta b/Client/Assets/Scripts/XMainClient/HomeEventLog.cs.meta new file mode 100644 index 00000000..3bbc86c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeEventLog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9989692c0ccc484795b990ccb88fc43 +timeCreated: 1611404899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HomeFarmland.cs b/Client/Assets/Scripts/XMainClient/HomeFarmland.cs new file mode 100644 index 00000000..bc66f67c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeFarmland.cs @@ -0,0 +1,85 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class HomeFarmland : Farmland + { + public override int BreakLevel + { + get + { + bool flag = this.m_breakLevel == -1; + if (flag) + { + this.m_breakLevel = 0; + SeqList sequenceList = XSingleton.singleton.GetSequenceList("BreakFarmlandLevel", true); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag2 = (long)sequenceList[i, 0] == (long)((ulong)this.m_farmlandId); + if (flag2) + { + this.m_breakLevel = sequenceList[i, 1]; + break; + } + } + } + return this.m_breakLevel; + } + } + + protected override Vector3 BoardRotation + { + get + { + bool flag = this.m_farmlandId > 3u; + Vector3 result; + if (flag) + { + result = new Vector3(-90f, 120f, 0f); + } + else + { + result = new Vector3(-90f, -120f, 0f); + } + return result; + } + } + + public HomeFarmland(uint farmlandId) : base(farmlandId) + { + } + + protected override void SetPerfab() + { + base.DestroyPerfab(); + bool flag = !base.IsLock || base.Doc.HomeType != HomeTypeEnum.MyHome; + if (!flag) + { + XNpc npc = XSingleton.singleton.GetNpc(base.NpcId); + bool flag2 = npc == null; + if (!flag2) + { + bool flag3 = (long)this.BreakLevel > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + string value; + if (flag3) + { + value = XSingleton.singleton.GetValue("FarmBoardPath1"); + } + else + { + value = XSingleton.singleton.GetValue("FarmBoardPath"); + } + this.m_boardGo = XSingleton.singleton.CreateFromPrefab(value, npc.EngineObject.Position, Quaternion.identity, true, false); + bool flag4 = this.m_boardGo != null; + if (flag4) + { + this.m_boardGo.transform.localEulerAngles = this.BoardRotation; + } + base.SetPerfab(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HomeFarmland.cs.meta b/Client/Assets/Scripts/XMainClient/HomeFarmland.cs.meta new file mode 100644 index 00000000..04d915bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeFarmland.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c511e4ae998b104a8fe66849557a095 +timeCreated: 1611403172 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HomeFishingState.cs b/Client/Assets/Scripts/XMainClient/HomeFishingState.cs new file mode 100644 index 00000000..8070dc15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeFishingState.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public enum HomeFishingState + { + CAST, + WAIT, + WAITSERVER, + PULL, + GET + } +} diff --git a/Client/Assets/Scripts/XMainClient/HomeFishingState.cs.meta b/Client/Assets/Scripts/XMainClient/HomeFishingState.cs.meta new file mode 100644 index 00000000..c78eb0dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeFishingState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c677641f4e0bb44db48187888a07ff5 +timeCreated: 1611403343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HomeMainDocument.cs b/Client/Assets/Scripts/XMainClient/HomeMainDocument.cs new file mode 100644 index 00000000..d24f2163 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeMainDocument.cs @@ -0,0 +1,581 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class HomeMainDocument : XDocComponent + { + public override uint ID + { + get + { + return HomeMainDocument.uuID; + } + } + + public static HomeMainDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(HomeMainDocument.uuID) as HomeMainDocument; + } + } + + public bool HomeMainRedDot + { + get + { + return this.m_homeMainRedDot; + } + set + { + bool flag = this.m_homeMainRedDot != value; + if (flag) + { + this.m_homeMainRedDot = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Home, true); + } + } + } + + public bool IsHadRedDot + { + get + { + return this.m_hadTroublemaker | this.m_bHadHarvest; + } + } + + public uint VisitedTimes + { + get + { + return this.m_visitedTimes; + } + } + + public uint FishLevel + { + get + { + return this.m_fishLevel; + } + } + + public uint PlantAmount + { + get + { + return this.m_plantAmount; + } + } + + public uint MaxCanPlantAmount + { + get + { + return this.m_maxCanPlantAmount; + } + } + + public List HomeLogList + { + get + { + return this.m_homeLogList; + } + } + + public List PlantFriendList + { + get + { + return this.m_plantFriendList; + } + } + + public uint FishBaitNum + { + get + { + return this.m_fishBaitNum; + } + } + + public bool HadTroublemaker + { + get + { + return this.m_hadTroublemaker; + } + } + + public bool HadHarvest + { + get + { + return this.m_bHadHarvest; + } + } + + public bool HadSpecificState + { + get + { + return this.m_bHadSpecificState; + } + } + + public Farmland ShowFarm + { + get + { + return this.m_showFarm; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("HomeMainDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private bool m_homeMainRedDot = false; + + private uint _cookingLevel = 0u; + + private uint _cookingExp = 0u; + + private List _foodCookedInfoList = new List(); + + private bool m_bHadHarvest = false; + + private bool m_bHadSpecificState = false; + + private uint m_visitedTimes = 0u; + + private uint m_fishLevel = 0u; + + private uint m_plantAmount = 0u; + + private uint m_fishBaitNum = 0u; + + private uint m_maxCanPlantAmount = 0u; + + private bool m_hadTroublemaker = false; + + private Farmland m_showFarm; + + private List m_homeLogList = new List(); + + private List m_plantFriendList = new List(); + + public MyHomeHandler HomeHandler; + + public HomeFriendHandler HomeFriend; + + private float m_gapTime = 0f; + + public class FoodCookedInfo + { + public ulong food_id = 0UL; + + public uint cookedTimes = 0u; + } + + public static void Execute(OnLoadedCallback callback = null) + { + HomeMainDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag) + { + HomePlantDocument doc = HomePlantDocument.Doc; + doc.ClearFarmInfo(); + doc.HomeSprite.ClearInfo(); + HomePlantDocument.Doc.FetchPlantInfo(0u); + } + base.OnEnterSceneFinally(); + } + + public void ReqEnterHomeScene(ulong roleId, string name = "") + { + HomePlantDocument.Doc.GardenId = roleId; + HomePlantDocument.Doc.HomeOwnerName = name; + bool flag = XTeamDocument.GoSingleBattleBeforeNeed(new EventDelegate(this.ReqEnterHomeScene)); + if (!flag) + { + this.ReqEnterHomeScene(); + } + } + + public void ReqEnterHomeScene() + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = (uint)XSingleton.singleton.GetInt("HomeSceneID"); + ptcC2G_EnterSceneReq.Data.roleID = HomePlantDocument.Doc.GardenId; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + } + + public void ReqLeaveHome() + { + XSingleton.singleton.ReqLeaveScene(); + HomePlantDocument doc = HomePlantDocument.Doc; + doc.ClearFarmInfo(); + doc.HomeSprite.ClearInfo(); + doc.GardenId = 0UL; + } + + public void ReqGardenOverview() + { + RpcC2M_GardenOverview rpc = new RpcC2M_GardenOverview(); + XSingleton.singleton.Send(rpc); + } + + public void ReqPlantFriendList() + { + RpcC2M_FriendGardenPlantLog rpc = new RpcC2M_FriendGardenPlantLog(); + XSingleton.singleton.Send(rpc); + } + + public void RefreshCookingInfo(uint foodID, GardenCookingFoodRes res) + { + this._cookingLevel = res.cooking_level; + this._cookingExp = res.cooking_experiences; + foreach (HomeMainDocument.FoodCookedInfo foodCookedInfo in this._foodCookedInfoList) + { + bool flag = foodCookedInfo.food_id == (ulong)foodID; + if (flag) + { + foodCookedInfo.cookedTimes += 1u; + return; + } + } + bool flag2 = XHomeCookAndPartyDocument.Doc.GetCookInfoByCuisineID(foodID).Frequency > 0u; + if (flag2) + { + this._foodCookedInfoList.Add(new HomeMainDocument.FoodCookedInfo + { + food_id = (ulong)foodID, + cookedTimes = 1u + }); + } + } + + public bool IsInMyOwnHomeGarden() + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag = sceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag) + { + HomeTypeEnum homeType = HomePlantDocument.Doc.HomeType; + bool flag2 = homeType == HomeTypeEnum.MyHome; + if (flag2) + { + return true; + } + } + return false; + } + + public void OnGetGardenOverview(GardenOverviewRes oRes) + { + this._cookingLevel = oRes.cooking_level; + this._cookingExp = oRes.cooking_experiences; + int i = Math.Min(oRes.food_id.Count, this._foodCookedInfoList.Count); + for (int j = 0; j < i; j++) + { + this._foodCookedInfoList[j].food_id = oRes.food_id[j].key; + this._foodCookedInfoList[j].cookedTimes = oRes.food_id[j].value; + } + while (i < oRes.food_id.Count) + { + this._foodCookedInfoList.Add(new HomeMainDocument.FoodCookedInfo + { + food_id = oRes.food_id[i].key, + cookedTimes = oRes.food_id[i].value + }); + i++; + } + bool flag = i < this._foodCookedInfoList.Count; + if (flag) + { + this._foodCookedInfoList.RemoveRange(i, this._foodCookedInfoList.Count - i); + } + this.m_hadTroublemaker = (oRes.sprite_id > 0u); + this.m_visitedTimes = oRes.visited_times; + this.m_fishLevel = oRes.fish_level; + this.m_fishBaitNum = (uint)XBagDocument.BagDoc.GetItemCount(5500); + this.m_maxCanPlantAmount = oRes.plant_farmland_max; + this.m_plantAmount = (uint)oRes.plant_info.Count; + this.m_plantFriendList = oRes.friend_log; + this.SetHarvestTimeFarm(oRes.plant_info, oRes.server_time); + this.SetHomeLog(oRes.event_log, oRes.server_time); + this.SetHomeState(oRes.plant_info); + this.m_plantFriendList.Sort(new Comparison(this.FriendListCompare)); + this.RefreshUI(); + } + + private int FriendListCompare(FriendPlantLog left, FriendPlantLog right) + { + bool flag = left.abnormal_state | left.exist_sprite | left.mature; + int result; + if (flag) + { + bool flag2 = right.abnormal_state | right.exist_sprite | right.mature; + if (flag2) + { + result = 0; + } + else + { + result = -1; + } + } + else + { + bool flag3 = right.abnormal_state | right.exist_sprite | right.mature; + if (flag3) + { + result = 1; + } + else + { + result = 0; + } + } + return result; + } + + public void OnGetPlantFriendList(FriendGardenPlantLogRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_plantFriendList = oRes.frinend_plant_log; + this.m_plantFriendList.Sort(new Comparison(this.FriendListCompare)); + bool flag3 = this.HomeFriend != null && this.HomeFriend.IsVisible(); + if (flag3) + { + this.HomeFriend.RefreshUi(); + } + } + } + } + + private void RefreshUI() + { + bool flag = DlgBase.singleton.CurrentSysIs(XSysDefine.XSys_Home_MyHome); + if (flag) + { + bool flag2 = this.HomeHandler != null && this.HomeHandler.IsVisible(); + if (flag2) + { + this.HomeHandler.RefreshUi(); + } + } + else + { + bool flag3 = DlgBase.singleton.CurrentSysIs(XSysDefine.XSys_Home_Cooking); + if (flag3) + { + bool flag4 = DlgBase.singleton.HomeCookingHandler != null && DlgBase.singleton.HomeCookingHandler.IsVisible(); + if (flag4) + { + DlgBase.singleton.HomeCookingHandler.RefreshUI(); + } + } + else + { + bool flag5 = DlgBase.singleton.CurrentSysIs(XSysDefine.XSys_Home_Feast); + if (flag5) + { + bool flag6 = DlgBase.singleton.HomeFeastHandler != null && DlgBase.singleton.HomeFeastHandler.IsVisible(); + if (flag6) + { + DlgBase.singleton.HomeFeastHandler.RefreshUI(); + } + } + else + { + bool flag7 = DlgBase.singleton.CurrentSysIs(XSysDefine.XSys_Home_HomeFriends); + if (flag7) + { + bool flag8 = this.HomeFriend != null && this.HomeFriend.IsVisible(); + if (flag8) + { + this.HomeFriend.RefreshUi(); + } + } + } + } + } + } + + public uint GetCookingLevel() + { + return this._cookingLevel; + } + + public uint GetCookingExp() + { + return this._cookingExp; + } + + public bool IsFoodIDActive(uint foodId) + { + bool flag = XHomeCookAndPartyDocument.Doc.IsFoodIdActiveInTable(foodId); + bool result; + if (flag) + { + result = true; + } + else + { + for (int i = 0; i < this._foodCookedInfoList.Count; i++) + { + bool flag2 = this._foodCookedInfoList[i].food_id == (ulong)foodId; + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public uint GetFoodMakedTimes(uint foodId) + { + for (int i = 0; i < this._foodCookedInfoList.Count; i++) + { + bool flag = this._foodCookedInfoList[i].food_id == (ulong)foodId; + if (flag) + { + return this._foodCookedInfoList[i].cookedTimes; + } + } + return 0u; + } + + private void SetHomeLog(List lst, uint severTime) + { + this.m_homeLogList.Clear(); + for (int i = 0; i < lst.Count; i++) + { + HomeEventLog item = new HomeEventLog(lst[i], severTime); + this.m_homeLogList.Add(item); + } + } + + private void SetHomeState(List lst) + { + this.m_bHadHarvest = false; + this.m_bHadSpecificState = false; + for (int i = 0; i < lst.Count; i++) + { + bool flag = lst[i].plant_grow_state == PlantGrowState.growMature; + if (flag) + { + this.m_bHadHarvest = true; + } + else + { + bool flag2 = lst[i].plant_grow_state != PlantGrowState.growCD; + if (flag2) + { + this.m_bHadSpecificState = true; + } + } + } + } + + private void SetHarvestTimeFarm(List lst, uint severTime) + { + this.m_showFarm = null; + bool flag = lst == null || lst.Count == 0; + if (!flag) + { + for (int i = 0; i < lst.Count; i++) + { + Farmland farmland = new Farmland(lst[i].farmland_id); + farmland.SetFarmInfo(lst[i].seed_id, lst[i].growup_amount, lst[i].notice_times, (ulong)lst[i].start_time, lst[i].owner); + farmland.SetFarmlandLog(lst[i].event_log, severTime); + farmland.SetCropState(lst[i].plant_grow_state); + bool flag2 = farmland.Stage == GrowStage.Ripe; + if (flag2) + { + this.m_showFarm = farmland; + break; + } + bool flag3 = this.m_showFarm == null; + if (flag3) + { + this.m_showFarm = farmland; + } + else + { + bool flag4 = this.m_showFarm.GrowLeftTime() > farmland.GrowLeftTime(); + if (flag4) + { + this.m_showFarm = farmland; + } + } + } + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + this.m_gapTime += fDeltaT; + bool flag = this.m_gapTime < 60f; + if (!flag) + { + this.m_gapTime = 0f; + bool flag2 = this.m_showFarm == null || this.m_showFarm.IsFree; + if (!flag2) + { + this.m_showFarm.UpdateGrowth(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HomeMainDocument.cs.meta b/Client/Assets/Scripts/XMainClient/HomeMainDocument.cs.meta new file mode 100644 index 00000000..af588506 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeMainDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2810c0b6dcf2d44595f4de07309b365 +timeCreated: 1611404494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HomePlantDocument.cs b/Client/Assets/Scripts/XMainClient/HomePlantDocument.cs new file mode 100644 index 00000000..eee666e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomePlantDocument.cs @@ -0,0 +1,1041 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class HomePlantDocument : XDocComponent + { + public override uint ID + { + get + { + return HomePlantDocument.uuID; + } + } + + public static HomePlantDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(HomePlantDocument.uuID) as HomePlantDocument; + } + } + + public static PlantSeed PlantSeedTable + { + get + { + return HomePlantDocument.m_PlantSeedTable; + } + } + + public static PlantSprite PlantSpriteTable + { + get + { + return HomePlantDocument.m_PlantSpriteTable; + } + } + + public HomeTypeEnum HomeType + { + get + { + return this.m_homeType; + } + } + + public ulong GardenId + { + get + { + return this.m_gardenId; + } + set + { + this.m_gardenId = value; + this.SetHomeType(); + } + } + + public bool HadRedDot + { + get + { + return this.m_hadRedDot; + } + set + { + bool flag = this.m_hadRedDot != value; + if (flag) + { + this.m_hadRedDot = value; + bool flag2 = DlgBase.singleton._HomeHandler != null; + if (flag2) + { + DlgBase.singleton._HomeHandler.RefreshPlantRedDot(); + } + } + } + } + + public List HadSeedList + { + get + { + return this.m_hadSeedList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("HomePlantDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static PlantSeed m_PlantSeedTable = new PlantSeed(); + + private static PlantSprite m_PlantSpriteTable = new PlantSprite(); + + public Farm m_farm = new Farm(); + + public HomeSpriteClass HomeSprite = new HomeSpriteClass(); + + public string HomeOwnerName = ""; + + private bool m_bIsDriveingTroubleMaker = false; + + private HomeTypeEnum m_homeType = HomeTypeEnum.None; + + public static readonly string PlantEffectPath = "Effects/FX_Particle/UIfx/UI_jy_zz"; + + private ulong m_gardenId = 0UL; + + private bool m_hadRedDot = false; + + public HomePlantDlg View; + + private List m_hadSeedList = new List(); + + public uint CurFarmlandId = 1u; + + private SeqList HomeFarmlandIds; + + private SeqList GuildFarmlandIds; + + private bool m_bIsPlayingAction = false; + + private uint m_token; + + private bool m_bShouldUpdate = false; + + private float m_timeCounter = 0f; + + private XNpc m_targetNpc = null; + + private void SetHomeType() + { + bool flag = this.m_gardenId == 0UL; + if (flag) + { + this.m_homeType = HomeTypeEnum.None; + } + else + { + bool flag2 = this.GardenId == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.m_homeType = HomeTypeEnum.MyHome; + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag3 = specificDocument.bInGuild && specificDocument.UID == this.GardenId; + if (flag3) + { + this.m_homeType = HomeTypeEnum.GuildHome; + } + else + { + this.m_homeType = HomeTypeEnum.OtherHome; + } + } + } + } + + private Dictionary GetAllFarmland() + { + bool flag = this.HomeType == HomeTypeEnum.GuildHome; + Dictionary result; + if (flag) + { + result = this.m_farm.GuildFarmlandDic; + } + else + { + result = this.m_farm.HomeFarmlandDic; + } + return result; + } + + public static void Execute(OnLoadedCallback callback = null) + { + HomePlantDocument.AsyncLoader.AddTask("Table/PlantSeed", HomePlantDocument.m_PlantSeedTable, false); + HomePlantDocument.AsyncLoader.AddTask("Table/PlantSprite", HomePlantDocument.m_PlantSpriteTable, false); + HomePlantDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_GuildLevelChanged, new XComponent.XEventHandler(this.OnGuildLevelChanged)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + XSingleton.singleton.KillTimer(this.m_token); + this.m_bIsPlayingAction = false; + bool flag = this.HomeSprite != null; + if (flag) + { + this.HomeSprite.ClearInfo(); + } + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool bIsDriveingTroubleMaker = this.m_bIsDriveingTroubleMaker; + if (bIsDriveingTroubleMaker) + { + this.DriveTroubleMaker(); + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + protected bool OnGuildLevelChanged(XEventArgs args) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_GUILD_HALL && this.HomeType == HomeTypeEnum.GuildHome; + if (flag) + { + this.FetchPlantInfo(0u); + } + return true; + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_FAMILYGARDEN && (this.HomeType == HomeTypeEnum.MyHome || this.HomeType == HomeTypeEnum.OtherHome); + if (flag) + { + this.FetchPlantInfo(0u); + } + return true; + } + + public void StartPlant(uint farmlandID, uint seedID, bool isCancle = false) + { + RpcC2M_StartPlant rpcC2M_StartPlant = new RpcC2M_StartPlant(); + rpcC2M_StartPlant.oArg.farmland_id = farmlandID; + rpcC2M_StartPlant.oArg.seed_id = seedID; + rpcC2M_StartPlant.oArg.quest_type = this.GetQuestType(); + rpcC2M_StartPlant.oArg.garden_id = this.GardenId; + rpcC2M_StartPlant.oArg.cancel = isCancle; + XSingleton.singleton.Send(rpcC2M_StartPlant); + } + + public void FetchPlantInfo(uint farmId = 0u) + { + RpcC2M_FetchPlantInfo rpcC2M_FetchPlantInfo = new RpcC2M_FetchPlantInfo(); + rpcC2M_FetchPlantInfo.oArg.garden_id = this.GardenId; + rpcC2M_FetchPlantInfo.oArg.farmland_id = farmId; + rpcC2M_FetchPlantInfo.oArg.quest_type = this.GetQuestType(); + XSingleton.singleton.Send(rpcC2M_FetchPlantInfo); + } + + public void PlantCultivation(uint farmlandID, PlantGrowState type) + { + RpcC2M_PlantCultivation rpcC2M_PlantCultivation = new RpcC2M_PlantCultivation(); + rpcC2M_PlantCultivation.oArg.garden_id = this.GardenId; + rpcC2M_PlantCultivation.oArg.farmland_id = farmlandID; + rpcC2M_PlantCultivation.oArg.operate_type = type; + rpcC2M_PlantCultivation.oArg.quest_type = this.GetQuestType(); + XSingleton.singleton.Send(rpcC2M_PlantCultivation); + } + + public void PlantHarvest(uint farmlandID) + { + RpcC2M_PlantHarvest rpcC2M_PlantHarvest = new RpcC2M_PlantHarvest(); + rpcC2M_PlantHarvest.oArg.garden_id = this.GardenId; + rpcC2M_PlantHarvest.oArg.farmland_id = farmlandID; + rpcC2M_PlantHarvest.oArg.quest_type = this.GetQuestType(); + XSingleton.singleton.Send(rpcC2M_PlantHarvest); + } + + public void HomeSteal(uint farmlandID) + { + RpcC2M_GardenSteal rpcC2M_GardenSteal = new RpcC2M_GardenSteal(); + rpcC2M_GardenSteal.oArg.garden_id = this.GardenId; + rpcC2M_GardenSteal.oArg.farmland_id = farmlandID; + rpcC2M_GardenSteal.oArg.quest_type = this.GetQuestType(); + XSingleton.singleton.Send(rpcC2M_GardenSteal); + } + + public void DriveTroubleMaker() + { + bool flag = !this.HomeSprite.IsHadSprite; + if (!flag) + { + RpcC2M_GardenExpelSprite rpcC2M_GardenExpelSprite = new RpcC2M_GardenExpelSprite(); + rpcC2M_GardenExpelSprite.oArg.garden_id = this.GardenId; + rpcC2M_GardenExpelSprite.oArg.sprite_id = this.HomeSprite.SpriteId; + rpcC2M_GardenExpelSprite.oArg.quest_type = this.GetQuestType(); + XSingleton.singleton.Send(rpcC2M_GardenExpelSprite); + this.m_bIsDriveingTroubleMaker = true; + } + } + + public void ReqBreakNewFarmland(uint farmlandId) + { + RpcC2M_OPenGardenFarmland rpcC2M_OPenGardenFarmland = new RpcC2M_OPenGardenFarmland(); + rpcC2M_OPenGardenFarmland.oArg.garden_id = this.GardenId; + rpcC2M_OPenGardenFarmland.oArg.farmland_id = farmlandId; + rpcC2M_OPenGardenFarmland.oArg.quest_type = this.GetQuestType(); + XSingleton.singleton.Send(rpcC2M_OPenGardenFarmland); + } + + public void OnStartPlantBack(StartPlantArg oArg, StartPlantRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + Farmland farmland = this.GetFarmland(oArg.farmland_id); + bool cancel = oArg.cancel; + if (cancel) + { + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + this.View.SetVisible(false, true); + } + farmland.SetFarmlandFree(); + farmland.SetFxEffect(); + } + else + { + bool flag4 = farmland != null; + if (flag4) + { + farmland.SetFarmInfo(oArg.seed_id, 0f, 1u, 0UL, XSingleton.singleton.XPlayerData.RoleID); + farmland.SetCropState(oRes.grow_state); + farmland.SetFxEffect(); + } + bool flag5 = this.View != null && this.View.IsVisible(); + if (flag5) + { + this.View.RefreshUI(); + } + } + } + } + } + + public void OnFetchPlantInfoBack(uint farmId, FetchPlantInfoRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag2 = farmId > 0u; + if (flag2) + { + bool flag3 = false; + for (int i = 0; i < oRes.plant_info.Count; i++) + { + bool flag4 = oRes.plant_info[i].farmland_id == farmId; + if (flag4) + { + flag3 = true; + break; + } + } + bool flag5 = !flag3; + if (flag5) + { + Farmland farmland = this.GetFarmland(farmId); + bool flag6 = farmland != null; + if (flag6) + { + farmland.SetFarmlandFree(); + farmland.Destroy(); + } + } + } + for (int j = 0; j < oRes.plant_info.Count; j++) + { + Farmland farmland = this.GetFarmland(oRes.plant_info[j].farmland_id); + bool flag7 = farmland == null; + if (!flag7) + { + farmland.SetFarmInfo(oRes.plant_info[j].seed_id, oRes.plant_info[j].growup_amount, oRes.plant_info[j].notice_times, (ulong)oRes.plant_info[j].growup_cd, oRes.plant_info[j].owner); + farmland.SetFarmlandLog(oRes.plant_info[j].event_log, 0u); + farmland.SetCropState(oRes.plant_info[j].plant_grow_state); + } + } + bool flag8 = farmId == 0u; + if (flag8) + { + bool flag9 = this.HomeType == HomeTypeEnum.GuildHome; + if (flag9) + { + this.m_farm.SetGuildFarmlandLock(); + } + else + { + this.m_farm.SetHomeFarmlandLock(); + } + this.HomeSprite.SetSpriteInfo(oRes.sprite_id); + for (int k = 0; k < oRes.farmland_id.Count; k++) + { + Farmland farmland = this.GetFarmland(oRes.farmland_id[k]); + bool flag10 = farmland == null; + if (!flag10) + { + farmland.SetLockStatus(false); + } + } + } + bool flag11 = this.HomeType == HomeTypeEnum.GuildHome; + if (flag11) + { + this.m_farm.SetGuildFarmlandFxEffect(); + } + else + { + this.m_farm.SetHomeFarmlandFxEffect(); + } + bool flag12 = farmId > 0u; + if (flag12) + { + Farmland farmland2 = this.GetFarmland(this.CurFarmlandId); + HomeTypeEnum homeType = this.HomeType; + bool flag13 = farmland2 != null && farmland2.IsFree && homeType == HomeTypeEnum.OtherHome; + if (flag13) + { + bool flag14 = DlgBase.singleton.IsVisible(); + if (flag14) + { + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + bool flag15 = DlgBase.singleton.IsVisible(); + if (flag15) + { + DlgBase.singleton.RefreshUI(); + } + else + { + DlgBase.singleton.SetVisible(true, true); + } + } + } + else + { + bool flag16 = DlgBase.singleton.IsVisible(); + if (flag16) + { + DlgBase.singleton.RefreshUI(); + } + } + } + } + + public void OnPlantCultivationBack(PlantCultivationArg oArg, PlantCultivationRes oRes) + { + uint farmland_id = oArg.farmland_id; + bool flag = oRes.result != ErrorCode.ERR_SUCCESS && oRes.result != ErrorCode.ERR_GARDEN_PLANT_CUL_ERR; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_GARDEN_PLANT_CUL_ERR; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + Farmland farmland = this.GetFarmland(farmland_id); + bool flag3 = farmland != null; + if (flag3) + { + farmland.UpdateFarmInfo(oRes.growup_amount, oRes.notice_times); + farmland.SetCropState(PlantGrowState.growCD); + farmland.AddFarmlandLog(new GardenEventLog + { + role_id = XSingleton.singleton.XPlayerData.RoleID, + role_name = XSingleton.singleton.XPlayerData.Name, + target = farmland.SeedId, + event_type = (uint)oArg.operate_type, + result = (oRes.result != ErrorCode.ERR_GARDEN_PLANT_CUL_ERR) + }); + } + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.RefreshUI(); + } + } + } + + public void OnPlantHarvestBack(uint famland_id, PlantHarvestRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + Farmland farmland = this.GetFarmland(famland_id); + bool flag2 = farmland != null; + if (flag2) + { + bool flag3 = oRes.extra && farmland.Row != null; + if (flag3) + { + string arg = ""; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)farmland.Row.ExtraDropItem[0]); + bool flag4 = itemConf != null; + if (flag4) + { + arg = itemConf.ItemName[0]; + } + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("HomeExtraGet"), farmland.Row.ExtraDropItem[1], arg), "fece00"); + } + bool flag5 = oRes.harvest && farmland.Row != null; + if (flag5) + { + string arg2 = ""; + ItemList.RowData itemConf2 = XBagDocument.GetItemConf((int)farmland.Row.HarvestPlant[0]); + bool flag6 = itemConf2 != null; + if (flag6) + { + arg2 = itemConf2.ItemName[0]; + } + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("HomeHarvest"), farmland.Row.HarvestPlant[1], arg2), "fece00"); + } + farmland.SetFarmlandFree(); + farmland.SetFxEffect(); + } + this.SetHadRedDot(); + bool flag7 = this.View != null && this.View.IsVisible(); + if (flag7) + { + this.View.RefreshUI(); + } + } + } + + public void OnHomeStealBack(uint famland_id, GardenStealRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("StealSuccess"), "fece00"); + Farmland farmland = this.GetFarmland(famland_id); + bool flag2 = farmland != null; + if (flag2) + { + farmland.AddStolenUid(XSingleton.singleton.XPlayerData.RoleID); + } + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + this.View.SetVisible(false, true); + } + } + } + + public void OnDriveTroubleMakerBack(GardenExpelSpriteRes oRes) + { + this.m_bIsDriveingTroubleMaker = false; + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + bool flag4 = oRes.result != ErrorCode.ERR_GARDEN_EXPELSPRITE_MAX; + if (flag4) + { + return; + } + } + this.HomeSprite.ClearInfo(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DriveTroubleMakerSuccee"), "fece00"); + } + } + } + + public void OnBreakNewFarmlandBack(uint farmlandId, OpenGardenFarmlandRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + Farmland farmland = this.GetFarmland(farmlandId); + bool flag2 = farmland != null; + if (flag2) + { + farmland.SetLockStatus(false); + farmland.SetFxEffect(); + } + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BreakNewFarmlandSuccess"), "fece00"); + } + } + + public void OnGetHomeEventBack(PtcG2C_GardenPlantEventNotice roPtc) + { + bool flag = roPtc.Data.garden_id != this.GardenId; + if (!flag) + { + GardenPlayEventType event_type = roPtc.Data.event_type; + if (event_type != GardenPlayEventType.PLANT) + { + switch (event_type) + { + case GardenPlayEventType.PLANT_DELETE: + { + bool flag2 = this.HomeType == HomeTypeEnum.GuildHome; + if (flag2) + { + Farmland farmland = this.GetFarmland(roPtc.Data.farmland_id); + bool flag3 = farmland != null; + if (flag3) + { + farmland.SetFarmlandFree(); + farmland.SetFxEffect(); + } + } + break; + } + case GardenPlayEventType.PLANT_SPRITE: + { + bool exist = roPtc.Data.exist; + if (exist) + { + this.HomeSprite.SetSpriteInfo(roPtc.Data.sprite_id); + } + else + { + bool flag4 = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_npc != null && DlgBase.singleton.m_npc.NPCType == 3u; + if (flag4) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DriveTroubleMakerFaild"), "fece00"); + this.SetFarmlandBoxStatus(true); + } + this.HomeSprite.ClearInfo(); + } + break; + } + case GardenPlayEventType.PLANT_MATURE: + { + Farmland farmland2 = this.GetFarmland(roPtc.Data.farmland_id); + bool flag5 = farmland2 != null; + if (flag5) + { + farmland2.SetCropState(PlantGrowState.growMature); + } + break; + } + } + } + else + { + bool flag6 = this.HomeType == HomeTypeEnum.GuildHome; + if (flag6) + { + Farmland farmland3 = this.GetFarmland(roPtc.Data.farmland_id); + bool flag7 = farmland3 != null; + if (flag7) + { + farmland3.DestroyFxEffect(); + } + } + } + } + } + + public List GetHadSeedsList() + { + return this.HadSeedList; + } + + public void GetHadSeedList() + { + this.m_hadSeedList.Clear(); + HomeTypeEnum homeType = this.HomeType; + bool flag = homeType == HomeTypeEnum.GuildHome; + ulong typeFilter; + if (flag) + { + typeFilter = 2097152UL; + } + else + { + typeFilter = 1048576UL; + } + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.m_hadSeedList); + } + + public Farmland GetFarmland(uint farmlandId) + { + bool flag = this.HomeType == HomeTypeEnum.GuildHome; + Farmland result; + if (flag) + { + result = this.m_farm.GetGuildFarmland(farmlandId); + } + else + { + result = this.m_farm.GetHomeFarmland(farmlandId); + } + return result; + } + + public uint GetFarmlandIdByNpcId(uint npcId) + { + bool flag = this.HomeType == HomeTypeEnum.GuildHome; + uint result; + if (flag) + { + result = this.m_farm.GetGuildFarmlandIdByNpcId(npcId); + } + else + { + result = this.m_farm.GetHomeFarmlandIdByNpcId(npcId); + } + return result; + } + + private void GetFarmlandNpcIds(ref List lst) + { + bool flag = this.HomeType == HomeTypeEnum.GuildHome; + if (flag) + { + this.m_farm.GetGuildNpcIds(ref lst); + } + else + { + this.m_farm.GetHomeNpcIds(ref lst); + } + } + + public void SetHadRedDot() + { + bool flag = this.HomeType != HomeTypeEnum.MyHome; + if (flag) + { + this.HadRedDot = false; + } + else + { + bool flag2 = false; + Dictionary allFarmland = this.GetAllFarmland(); + foreach (KeyValuePair keyValuePair in allFarmland) + { + bool flag3 = keyValuePair.Value != null && keyValuePair.Value.Stage == GrowStage.Ripe; + if (flag3) + { + flag2 = true; + break; + } + } + this.HadRedDot = (flag2 | this.HomeSprite.IsHadSprite); + } + } + + public void SetFarmlandBoxStatus(bool status) + { + List list = new List(); + this.GetFarmlandNpcIds(ref list); + for (int i = 0; i < list.Count; i++) + { + XNpc npc = XSingleton.singleton.GetNpc(list[i]); + bool flag = npc != null; + if (flag) + { + npc.EngineObject.EnableBC = status; + } + } + } + + public void ClearFarmInfo() + { + bool flag = this.HomeType == HomeTypeEnum.GuildHome; + if (flag) + { + this.m_farm.ResetGuildFarmland(); + } + else + { + this.m_farm.ResetHomeFarmland(); + } + } + + public uint GetNpcIdByFarmId(uint farmId) + { + bool flag = this.HomeType == HomeTypeEnum.GuildHome; + SeqList seqList; + if (flag) + { + bool flag2 = this.GuildFarmlandIds == null; + if (flag2) + { + this.GuildFarmlandIds = XSingleton.singleton.GetSequenceList("NpcIdTransToFarmId_Guild", false); + } + seqList = this.GuildFarmlandIds; + } + else + { + bool flag3 = this.HomeFarmlandIds == null; + if (flag3) + { + this.HomeFarmlandIds = XSingleton.singleton.GetSequenceList("NpcIdTransToFarmId", false); + } + seqList = this.HomeFarmlandIds; + } + bool flag4 = seqList != null; + if (flag4) + { + for (int i = 0; i < (int)seqList.Count; i++) + { + bool flag5 = (long)seqList[i, 1] == (long)((ulong)farmId); + if (flag5) + { + return (uint)seqList[i, 0]; + } + } + } + return 0u; + } + + public bool GetBreakHomeFarmlandData(out int param0, out int param1) + { + param0 = 0; + param1 = 0; + SeqList sequenceList = XSingleton.singleton.GetSequenceList("BreakNewFarmlandCost", false); + int count = (int)XSingleton.singleton.GetSequenceList("BreakFarmlandLevel", false).Count; + int num = this.GetBreakFarmlandNum() - count; + bool flag = num >= 0 && num < (int)sequenceList.Count; + bool result; + if (flag) + { + param0 = sequenceList[num, 0]; + param1 = sequenceList[num, 1]; + result = true; + } + else + { + result = false; + } + return result; + } + + private int GetBreakFarmlandNum() + { + bool flag = this.HomeType == HomeTypeEnum.GuildHome; + int result; + if (flag) + { + result = this.m_farm.GetBreakGuildFarmlandNum(); + } + else + { + result = this.m_farm.GetBreakHomeFarmlandNum(); + } + return result; + } + + public PlantGrowState GrowStateTrans(CropState state) + { + PlantGrowState result; + switch (state) + { + case CropState.Disinsection: + result = PlantGrowState.growPest; + break; + case CropState.Watering: + result = PlantGrowState.growDrought; + break; + case CropState.Fertilizer: + result = PlantGrowState.growSluggish; + break; + default: + result = PlantGrowState.growCD; + break; + } + return result; + } + + private GardenQuestType GetQuestType() + { + GardenQuestType result; + switch (this.m_homeType) + { + case HomeTypeEnum.MyHome: + result = GardenQuestType.MYSELF; + break; + case HomeTypeEnum.OtherHome: + result = GardenQuestType.FRIEND; + break; + case HomeTypeEnum.GuildHome: + result = GardenQuestType.GUILD; + break; + default: + result = GardenQuestType.MYSELF; + break; + } + return result; + } + + public string GetHomePlantAction(ActionType type) + { + uint basicTypeID = XSingleton.singleton.XPlayerData.BasicTypeID; + string arg = ""; + switch (type) + { + case ActionType.Harvest: + arg = "harvest"; + break; + case ActionType.Plant: + case ActionType.Disinsection: + case ActionType.Fertilizer: + arg = "plant"; + break; + case ActionType.Watering: + arg = "watering"; + break; + case ActionType.DriveTroubleMaker: + arg = "ganyazi"; + break; + } + return string.Format("Player_{0}_{1}", XSingleton.singleton.GetLowerCaseWord(basicTypeID), arg); + } + + public void ClickFarmModle(XNpc npc) + { + bool bIsPlayingAction = this.m_bIsPlayingAction; + if (!bIsPlayingAction) + { + this.CurFarmlandId = this.GetFarmlandIdByNpcId(npc.TypeID); + DlgBase.singleton.Show(npc); + } + } + + public void CliclTroubleMakerModle(XNpc npc) + { + bool flag = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (!flag) + { + bool bIsPlayingAction = this.m_bIsPlayingAction; + if (!bIsPlayingAction) + { + this.m_bIsPlayingAction = true; + XSingleton.singleton.Player.PlaySpecifiedAnimation(this.GetHomePlantAction(ActionType.DriveTroubleMaker)); + XSingleton.singleton.KillTimer(this.m_token); + this.m_token = XSingleton.singleton.SetTimer(1.667f, new XTimerMgr.ElapsedEventHandler(this.PlayActionEnd), npc); + this.SetFarmlandBoxStatus(false); + this.HomeSprite.SetSpriteBoxStatus(false); + } + } + } + + private void PlayActionEnd(object o = null) + { + XNpc xnpc = o as XNpc; + bool flag = !XEntity.ValideEntity(xnpc); + if (!flag) + { + XSingleton.singleton.Player.PlayStateBack(); + DlgBase.singleton.ShowNpcDialog(xnpc); + this.m_bIsPlayingAction = false; + } + } + + public void PlayerActionEnd(XNpc npc) + { + this.m_targetNpc = npc; + this.m_timeCounter = 0f; + this.m_bShouldUpdate = true; + } + + public override void Update(float fDeltaT) + { + bool bShouldUpdate = this.m_bShouldUpdate; + if (bShouldUpdate) + { + this.m_timeCounter += fDeltaT; + bool flag = this.m_timeCounter >= 1.667f; + if (flag) + { + this.m_timeCounter = 0f; + this.m_bShouldUpdate = false; + bool flag2 = this.m_targetNpc != null; + if (flag2) + { + DlgBase.singleton.ShowNpcDialog(this.m_targetNpc); + } + } + } + base.Update(fDeltaT); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HomePlantDocument.cs.meta b/Client/Assets/Scripts/XMainClient/HomePlantDocument.cs.meta new file mode 100644 index 00000000..0e68e241 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomePlantDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da8cfc029d9bd144fab80f49b49db8e2 +timeCreated: 1611404648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HomeSpriteClass.cs b/Client/Assets/Scripts/XMainClient/HomeSpriteClass.cs new file mode 100644 index 00000000..4697b128 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeSpriteClass.cs @@ -0,0 +1,361 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class HomeSpriteClass + { + public PlantSprite.RowData Row + { + get + { + return this.m_row; + } + } + + public bool IsHadSprite + { + get + { + return this.m_spriteId > 0u; + } + } + + public uint SpriteId + { + get + { + return this.m_spriteId; + } + } + + public bool HadDriveEnd + { + get + { + bool flag = this.m_row != null && this.m_row.Dialogues != null; + return !flag || (ulong)this.m_driveTimes >= (ulong)((long)(this.m_row.Dialogues.Length - 1)); + } + } + + private PlantSprite.RowData m_row; + + private uint m_spriteId; + + private uint m_driveTimes = 0u; + + private Vector3 m_pos; + + private XNpc m_npc; + + private string m_fxPath = ""; + + private XFx m_fx; + + private string m_transmitPath = ""; + + private XFx m_transmitFx; + + private static List m_startPosList; + + private static List m_posList; + + private uint m_token = 0u; + + private bool animLoadCbValid = false; + + public HomeSpriteClass() + { + this.m_fxPath = "Effects/FX_Particle/Scene/Lzg_scene/rwts_01"; + this.m_transmitPath = "Effects/FX_Particle/NPC/Lzg_Boss/yjsf/yjsh_ss"; + } + + public void SetSpriteInfo(uint spriteId) + { + this.m_spriteId = spriteId; + this.m_driveTimes = 0u; + bool flag = spriteId > 0u; + if (flag) + { + HomePlantDocument.Doc.SetHadRedDot(); + this.m_row = HomePlantDocument.PlantSpriteTable.GetBySpriteID(spriteId); + bool flag2 = this.m_row == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("data error,spriteId =" + spriteId.ToString(), null, null, null, null, null); + } + this.GetStartPos(); + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag3 = sceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag3) + { + this.LoadNpc(); + } + } + } + + public void SetNextStepOperation() + { + HomePlantDocument.Doc.SetFarmlandBoxStatus(true); + bool hadDriveEnd = this.HadDriveEnd; + if (hadDriveEnd) + { + HomePlantDocument.Doc.DriveTroubleMaker(); + } + else + { + this.SetToNextPos(); + } + } + + public string GetDialogue() + { + bool flag = this.m_row == null && this.m_row.Dialogues != null; + string result; + if (flag) + { + result = ""; + } + else + { + bool flag2 = (ulong)this.m_driveTimes >= (ulong)((long)this.m_row.Dialogues.Length); + if (flag2) + { + result = ""; + } + else + { + result = this.m_row.Dialogues[(int)this.m_driveTimes]; + } + } + return result; + } + + public void ClearInfo() + { + this.m_driveTimes = 0u; + this.Destroy(); + this.animLoadCbValid = false; + XSingleton.singleton.KillTimer(this.m_token); + HomePlantDocument.Doc.SetHadRedDot(); + } + + public void SetSpriteBoxStatus(bool status) + { + bool flag = this.m_npc != null; + if (flag) + { + this.m_npc.EngineObject.EnableBC = status; + } + } + + private void AnimLoadCallback(XAnimationClip clip) + { + bool flag = this.animLoadCbValid; + if (flag) + { + float interval = 0f; + bool flag2 = clip != null; + if (flag2) + { + interval = clip.length - 0.034f; + } + this.m_token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.NpcMove), null); + this.animLoadCbValid = false; + } + } + + private void SetToNextPos() + { + bool flag = this.m_npc == null; + if (!flag) + { + bool flag2 = this.m_fx != null; + if (flag2) + { + this.m_fx.SetActive(false); + } + bool flag3 = this.m_transmitFx == null; + if (flag3) + { + this.m_transmitFx = XSingleton.singleton.CreateFx(this.m_transmitPath, null, true); + } + this.m_transmitFx.SetActive(true); + bool flag4 = this.m_transmitFx != null && this.m_npc != null; + if (flag4) + { + this.m_transmitFx.Play(this.m_npc.EngineObject, new Vector3(-0.05f, this.m_npc.Height, 0f), Vector3.one, 1f, false, false, "", 0f); + } + this.animLoadCbValid = true; + XSingleton.singleton.KillTimer(this.m_token); + this.m_npc.ShowUp(new OverrideAnimCallback(this.AnimLoadCallback)); + } + } + + private void NpcMove(object o = null) + { + this.AddDriveTimes(); + this.m_npc.EngineObject.Position = this.m_pos; + XSingleton.singleton.KillTimer(this.m_token); + bool flag = this.m_transmitFx != null && this.m_npc != null; + if (flag) + { + this.m_transmitFx.SetActive(false); + this.m_transmitFx.SetActive(true); + this.m_transmitFx.Play(this.m_npc.EngineObject, new Vector3(-0.05f, this.m_npc.Height, 0f), Vector3.one, 1f, false, false, "", 0f); + this.m_token = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.TransmitEffectEnd), null); + } + } + + private void TransmitEffectEnd(object o = null) + { + this.SetSpriteBoxStatus(true); + bool flag = this.m_transmitFx != null; + if (flag) + { + this.m_transmitFx.SetActive(false); + } + bool flag2 = this.m_fx != null; + if (flag2) + { + this.m_fx.SetActive(true); + bool flag3 = this.m_fx != null && this.m_npc != null; + if (flag3) + { + this.m_fx.Play(this.m_npc.EngineObject, new Vector3(-0.05f, this.m_npc.Height + 0.6f, 0f), Vector3.one, 1f, false, false, "", 0f); + } + } + } + + private void LoadNpc() + { + bool flag = this.m_npc != null; + if (flag) + { + XSingleton.singleton.DestroyNpc(this.m_spriteId); + this.m_npc = null; + } + this.m_npc = XSingleton.singleton.CreateNpc(this.m_spriteId, true); + bool flag2 = this.m_npc != null; + if (flag2) + { + this.m_npc.EngineObject.Position = this.m_pos; + } + bool flag3 = this.m_fx == null; + if (flag3) + { + this.m_fx = XSingleton.singleton.CreateFx(this.m_fxPath, null, true); + } + this.m_fx.SetActive(true); + bool flag4 = this.m_fx != null && this.m_npc != null; + if (flag4) + { + this.m_fx.Play(this.m_npc.EngineObject, new Vector3(-0.05f, this.m_npc.Height + 0.6f, 0f), Vector3.one, 1f, false, false, "", 0f); + } + } + + private void Destroy() + { + bool flag = this.m_npc != null; + if (flag) + { + XSingleton.singleton.DestroyNpc(this.m_spriteId); + this.m_npc = null; + this.m_spriteId = 0u; + } + bool flag2 = this.m_fx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + bool flag3 = this.m_transmitFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this.m_transmitFx, true); + this.m_transmitFx = null; + } + } + + private void AddDriveTimes() + { + bool hadDriveEnd = this.HadDriveEnd; + if (!hadDriveEnd) + { + this.m_driveTimes += 1u; + this.GetPos(); + } + } + + private void GetStartPos() + { + bool flag = HomeSpriteClass.m_startPosList == null || HomeSpriteClass.m_startPosList.Count == 0; + if (flag) + { + this.m_pos = Vector3.zero; + } + else + { + int index = UnityEngine.Random.Range(0, HomeSpriteClass.m_startPosList.Count); + this.m_pos = HomeSpriteClass.m_startPosList[index]; + } + } + + private void GetPos() + { + bool flag = HomeSpriteClass.m_startPosList == null || HomeSpriteClass.m_startPosList.Count == 0; + if (flag) + { + this.m_pos = Vector3.zero; + } + else + { + int index; + bool flag2; + do + { + index = UnityEngine.Random.Range(0, HomeSpriteClass.m_startPosList.Count); + flag2 = (this.m_pos != HomeSpriteClass.m_startPosList[index]); + } + while (!flag2); + this.m_pos = HomeSpriteClass.m_startPosList[index]; + } + } + + public static void InitPosList() + { + HomeSpriteClass.m_startPosList = new List(); + string value = XSingleton.singleton.GetValue("TroublemakerStartPos"); + string[] array = value.Split(XGlobalConfig.AllSeparators); + Vector3 zero = Vector3.zero; + for (int i = 0; i < array.Length; i += 3) + { + bool flag = !string.IsNullOrEmpty(array[i]) && !string.IsNullOrEmpty(array[i + 1]) && !string.IsNullOrEmpty(array[i + 2]); + if (flag) + { + zero.x = float.Parse(array[i]); + zero.y = float.Parse(array[i + 1]); + zero.z = float.Parse(array[i + 2]); + HomeSpriteClass.m_startPosList.Add(zero); + } + } + HomeSpriteClass.m_posList = new List(); + value = XSingleton.singleton.GetValue("TroublemakerPos"); + array = value.Split(XGlobalConfig.AllSeparators); + for (int j = 0; j < array.Length; j += 3) + { + bool flag2 = !string.IsNullOrEmpty(array[j]) && !string.IsNullOrEmpty(array[j + 1]) && !string.IsNullOrEmpty(array[j + 2]); + if (flag2) + { + zero.x = float.Parse(array[j]); + zero.y = float.Parse(array[j + 1]); + zero.z = float.Parse(array[j + 2]); + HomeSpriteClass.m_startPosList.Add(zero); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HomeSpriteClass.cs.meta b/Client/Assets/Scripts/XMainClient/HomeSpriteClass.cs.meta new file mode 100644 index 00000000..b7c1b036 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeSpriteClass.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d0036670beec48419359eff10578475 +timeCreated: 1611403603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs b/Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs new file mode 100644 index 00000000..ac10551a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum HomeTypeEnum + { + None, + MyHome, + OtherHome, + GuildHome + } +} diff --git a/Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs.meta b/Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs.meta new file mode 100644 index 00000000..11ec64dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HomeTypeEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 886a0a35b49295646a67699afcf08830 +timeCreated: 1611404083 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/HurtInfo.cs b/Client/Assets/Scripts/XMainClient/HurtInfo.cs new file mode 100644 index 00000000..f474ee90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HurtInfo.cs @@ -0,0 +1,105 @@ +using System; + +namespace XMainClient +{ + internal class HurtInfo : XDataBase + { + public long SkillToken + { + get + { + return this._skill_token; + } + set + { + this._skill_token = value; + } + } + + public XEntity Caster + { + get + { + return this._caster; + } + set + { + this._caster = value; + } + } + + public XEntity Target + { + get + { + return this._target; + } + set + { + this._target = value; + } + } + + public uint SkillID + { + get + { + return this._skill_id; + } + set + { + this._skill_id = value; + } + } + + public int HitPoint + { + get + { + return this._hitPoint; + } + set + { + this._hitPoint = value; + } + } + + private XEntity _caster; + + private XEntity _target; + + private int _hitPoint; + + private uint _skill_id; + + private long _skill_token; + + public SkillExternalCallback Callback; + + public HurtInfo() + { + this.Reset(); + } + + public void Reset() + { + this._caster = null; + this._target = null; + this._skill_id = 0u; + this._hitPoint = 0; + this._skill_token = 0L; + this.Callback = null; + } + + public override void Init() + { + base.Init(); + this.Reset(); + } + + public override void Recycle() + { + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/HurtInfo.cs.meta b/Client/Assets/Scripts/XMainClient/HurtInfo.cs.meta new file mode 100644 index 00000000..885ecc1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/HurtInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f993908115ab9f4a961f635ff16708a +timeCreated: 1611404031 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ICostHandler.cs b/Client/Assets/Scripts/XMainClient/ICostHandler.cs new file mode 100644 index 00000000..e5cbfccd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ICostHandler.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal interface ICostHandler + { + CostInfo GetCost(int i); + + bool ParseCostConfigString(string str); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ICostHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ICostHandler.cs.meta new file mode 100644 index 00000000..eba14d7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ICostHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df1335b117f01314a93e5b8510c7b397 +timeCreated: 1611404691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/IDlgHandlerMgr.cs b/Client/Assets/Scripts/XMainClient/IDlgHandlerMgr.cs new file mode 100644 index 00000000..d4972260 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IDlgHandlerMgr.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + public interface IDlgHandlerMgr + { + DlgHandlerMgr HandlerMgr { get; } + } +} diff --git a/Client/Assets/Scripts/XMainClient/IDlgHandlerMgr.cs.meta b/Client/Assets/Scripts/XMainClient/IDlgHandlerMgr.cs.meta new file mode 100644 index 00000000..a44b772c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IDlgHandlerMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e4fec7c18995424e9d43229de239499 +timeCreated: 1611403361 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/IFashionStorageSelect.cs b/Client/Assets/Scripts/XMainClient/IFashionStorageSelect.cs new file mode 100644 index 00000000..6593b1e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IFashionStorageSelect.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal interface IFashionStorageSelect + { + bool Active { get; } + + bool Select { get; set; } + + bool ActivateAll { get; } + + bool RedPoint { get; } + + int GetID(); + + int GetCount(); + + void SetCount(uint count); + + string GetName(); + + string GetLabel(); + + List GetItems(); + + uint[] GetFashionList(); + + List GetAttributeCharm(); + + void Refresh(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/IFashionStorageSelect.cs.meta b/Client/Assets/Scripts/XMainClient/IFashionStorageSelect.cs.meta new file mode 100644 index 00000000..a182ecc2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IFashionStorageSelect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3b28bb9c2671944699d1242bd5e85c9 +timeCreated: 1611404280 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/IGuildRelexChildInterface.cs b/Client/Assets/Scripts/XMainClient/IGuildRelexChildInterface.cs new file mode 100644 index 00000000..acffcdc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IGuildRelexChildInterface.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public interface IGuildRelexChildInterface + { + void SetGuildRelex(XSysDefine define); + + void RefreshData(); + + void RefreshRedPoint(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/IGuildRelexChildInterface.cs.meta b/Client/Assets/Scripts/XMainClient/IGuildRelexChildInterface.cs.meta new file mode 100644 index 00000000..847a66be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IGuildRelexChildInterface.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 921b600490a67114083d082eacbc52c2 +timeCreated: 1611404145 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ILogData.cs b/Client/Assets/Scripts/XMainClient/ILogData.cs new file mode 100644 index 00000000..3efde7a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ILogData.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal interface ILogData : IComparable + { + string GetContent(); + + string GetTime(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ILogData.cs.meta b/Client/Assets/Scripts/XMainClient/ILogData.cs.meta new file mode 100644 index 00000000..f4a7f0c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ILogData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d41bea49c51e4c4e938923f89d56b86 +timeCreated: 1611403351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ILogSource.cs b/Client/Assets/Scripts/XMainClient/ILogSource.cs new file mode 100644 index 00000000..3b6756c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ILogSource.cs @@ -0,0 +1,10 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal interface ILogSource + { + List GetLogList(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ILogSource.cs.meta b/Client/Assets/Scripts/XMainClient/ILogSource.cs.meta new file mode 100644 index 00000000..d0b1d9e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ILogSource.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71aec77b936cd614d8deeb48f10ac0f5 +timeCreated: 1611403935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ILuaNetEventData.cs b/Client/Assets/Scripts/XMainClient/ILuaNetEventData.cs new file mode 100644 index 00000000..217bd665 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ILuaNetEventData.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + public interface ILuaNetEventData + { + LuaNetNode node { get; set; } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ILuaNetEventData.cs.meta b/Client/Assets/Scripts/XMainClient/ILuaNetEventData.cs.meta new file mode 100644 index 00000000..5a554530 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ILuaNetEventData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12ca2b2a44981344798e94dfb18cec9c +timeCreated: 1611403243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ILuaNetProcess.cs b/Client/Assets/Scripts/XMainClient/ILuaNetProcess.cs new file mode 100644 index 00000000..b564ea07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ILuaNetProcess.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public interface ILuaNetProcess + { + void OnLuaProcessBuffer(NetEvent evt); + + void OnLuaProcess(NetEvent evt); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ILuaNetProcess.cs.meta b/Client/Assets/Scripts/XMainClient/ILuaNetProcess.cs.meta new file mode 100644 index 00000000..86ccf616 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ILuaNetProcess.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2c2642e3288bc74f9c2d0bbec4f2ef3 +timeCreated: 1611404845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/INetEventData.cs b/Client/Assets/Scripts/XMainClient/INetEventData.cs new file mode 100644 index 00000000..d214b317 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/INetEventData.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public interface INetEventData + { + Protocol protocol { get; set; } + + Rpc rpc { get; set; } + + void ManualReturnProtocol(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/INetEventData.cs.meta b/Client/Assets/Scripts/XMainClient/INetEventData.cs.meta new file mode 100644 index 00000000..ad71ee84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/INetEventData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 95fb01eacdb784b42858bc690f12958b +timeCreated: 1611404183 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/INetObserver.cs b/Client/Assets/Scripts/XMainClient/INetObserver.cs new file mode 100644 index 00000000..10c75beb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/INetObserver.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + public interface INetObserver + { + void OnConnect(bool bSuccess); + + void OnClosed(NetErrCode nErrCode); + + void OnReceive(uint dwType, int nLen); + } +} diff --git a/Client/Assets/Scripts/XMainClient/INetObserver.cs.meta b/Client/Assets/Scripts/XMainClient/INetObserver.cs.meta new file mode 100644 index 00000000..f4dc15d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/INetObserver.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83d4ef9423566d8429ab0a7ccaa676c6 +timeCreated: 1611404046 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/INetProcess.cs b/Client/Assets/Scripts/XMainClient/INetProcess.cs new file mode 100644 index 00000000..f4cdafd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/INetProcess.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public interface INetProcess + { + void OnConnect(bool bSuccess); + + void OnClosed(NetErrCode nErrCode); + + void OnPrePropress(NetEvent data); + + void OnProcess(NetEvent data); + + void OnPostProcess(NetEvent data); + } +} diff --git a/Client/Assets/Scripts/XMainClient/INetProcess.cs.meta b/Client/Assets/Scripts/XMainClient/INetProcess.cs.meta new file mode 100644 index 00000000..78dddfb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/INetProcess.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02ce4d73d2388c04395cf66bef358b5d +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/INetSender.cs b/Client/Assets/Scripts/XMainClient/INetSender.cs new file mode 100644 index 00000000..ff525743 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/INetSender.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public interface INetSender + { + bool Send(Protocol protocol); + + bool Send(Rpc rpc); + } +} diff --git a/Client/Assets/Scripts/XMainClient/INetSender.cs.meta b/Client/Assets/Scripts/XMainClient/INetSender.cs.meta new file mode 100644 index 00000000..1bf4508d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/INetSender.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 504fd04369deb7047b93549a80496274 +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/IPacketBreaker.cs b/Client/Assets/Scripts/XMainClient/IPacketBreaker.cs new file mode 100644 index 00000000..3c7f8fd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IPacketBreaker.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + public interface IPacketBreaker + { + int BreakPacket(byte[] data, int index, int len); + } +} diff --git a/Client/Assets/Scripts/XMainClient/IPacketBreaker.cs.meta b/Client/Assets/Scripts/XMainClient/IPacketBreaker.cs.meta new file mode 100644 index 00000000..48e87bd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IPacketBreaker.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec2407844abf74047928999f48296a56 +timeCreated: 1611404786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/IXStateTransform.cs b/Client/Assets/Scripts/XMainClient/IXStateTransform.cs new file mode 100644 index 00000000..aacab03e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IXStateTransform.cs @@ -0,0 +1,40 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal interface IXStateTransform : IXInterface + { + bool SyncPredicted { get; } + + bool IsUsingCurve { get; } + + float Speed { get; } + + XStateDefine SelfState { get; } + + bool ShouldBePresent { get; } + + string PresentCommand { get; } + + string PresentName { get; } + + bool IsFinished { get; } + + long Token { get; } + + int CollisionLayer { get; } + + bool IsPermitted(XStateDefine state); + + void OnRejected(XStateDefine current); + + void OnGetPermission(); + + void Stop(XStateDefine next); + + void StateUpdate(float deltaTime); + + string TriggerAnim(string pre); + } +} diff --git a/Client/Assets/Scripts/XMainClient/IXStateTransform.cs.meta b/Client/Assets/Scripts/XMainClient/IXStateTransform.cs.meta new file mode 100644 index 00000000..9ef0f045 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/IXStateTransform.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00eb53bf1a1f5224083b260464b600fa +timeCreated: 1611402952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/InGameADBehaviour.cs b/Client/Assets/Scripts/XMainClient/InGameADBehaviour.cs new file mode 100644 index 00000000..a3c56528 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InGameADBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class InGameADBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUITexture m_Tex; + + public IXUISprite m_BtnGo; + + private void Awake() + { + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_Tex = (base.transform.Find("Tex").GetComponent("XUITexture") as IXUITexture); + this.m_BtnGo = (base.transform.Find("BtnGo").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/InGameADBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/InGameADBehaviour.cs.meta new file mode 100644 index 00000000..b373acfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InGameADBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3fad482fc64e324cbafffdd754efe2c +timeCreated: 1611404391 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/InGameADView.cs b/Client/Assets/Scripts/XMainClient/InGameADView.cs new file mode 100644 index 00000000..c3366e94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InGameADView.cs @@ -0,0 +1,93 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class InGameADView : DlgBase + { + private uint npcID + { + get + { + return uint.Parse(XSingleton.singleton.GetValue("InGameADNPCID")); + } + } + + private string tex + { + get + { + return XSingleton.singleton.GetValue("InGameADTex"); + } + } + + public override string fileName + { + get + { + return "GameSystem/InGameAD"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_BtnGo.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGoClick)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public void OnGoClick(IXUISprite btn) + { + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc(this.npcID); + this.SetVisibleWithAnimation(false, null); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Tex.SetTexturePath(this.tex); + } + + protected override void OnHide() + { + base.uiBehaviour.m_Tex.SetTexturePath(""); + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/InGameADView.cs.meta b/Client/Assets/Scripts/XMainClient/InGameADView.cs.meta new file mode 100644 index 00000000..7133a17f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InGameADView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d1e20ca525c05044a7db61e6a710b23 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/InfoType.cs b/Client/Assets/Scripts/XMainClient/InfoType.cs new file mode 100644 index 00000000..9eb3c509 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InfoType.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public enum InfoType + { + TypeNone, + TypeId, + TypeBaseInfo, + TypePreWave, + TypeEditor, + TypeMonsterInfo, + TypeScript, + TypeExString, + TypeSpawnType + } +} diff --git a/Client/Assets/Scripts/XMainClient/InfoType.cs.meta b/Client/Assets/Scripts/XMainClient/InfoType.cs.meta new file mode 100644 index 00000000..49baabc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InfoType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0543f7acf704814491b09995e164ce8 +timeCreated: 1611404249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Input.meta b/Client/Assets/Scripts/XMainClient/Input.meta new file mode 100644 index 00000000..8155f1fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Input.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 4890079256a05274b9ce948b9045c7fa +folderAsset: yes +timeCreated: 1611549437 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Input/XTouch.cs b/Client/Assets/Scripts/XMainClient/Input/XTouch.cs new file mode 100644 index 00000000..25823344 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Input/XTouch.cs @@ -0,0 +1,140 @@ +using System; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTouch : XSingleton + { + public static int MultiTouchCount = 2; + + private bool _on_screen_save = false; + + private float _screenSave = 0f; + + private XTouchItem _touches = new XTouchItem(); + + public static bool PointOnUI(Vector3 point) + { + Ray ray = XSingleton.singleton.UICamera.ScreenPointToRay(point); + RaycastHit raycastHit; + bool flag = Physics.Raycast(ray, out raycastHit, float.PositiveInfinity, 32); + return flag && !raycastHit.collider.CompareTag("ChatUI"); + } + + public static bool IsActiveTouch(XTouchItem touch) + { + return (int) touch.Phase != 3 && (int)touch.Phase != 4; + } + + public void Update() + { + XSingleton.singleton.ClearOneHit(); + this.UpdateTouch(); + } + + private void UpdateTouch() + { + int num = 0; + while (num < Input.touchCount && num < XTouch.MultiTouchCount) + { + this._touches.Fake = false; + this._touches.touch = Input.GetTouch(num); + this.HandleTouch(this._touches); + num++; + } + bool enabled = XSingleton.singleton.Enabled; + if (enabled) + { + XSingleton.singleton.Update(); + for (int i = 0; i < XSingleton.singleton.touchCount; i++) + { + XTouchItem touchItem = XSingleton.singleton.GetTouch(i); + Debug.Log("touch=" + touchItem); + this.HandleTouch(touchItem); + } + } + bool enabled2 = XSingleton.singleton.Enabled; + if (enabled2) + { + XSingleton.singleton.Update(); + for (int j = 0; j < XSingleton.singleton.touchCount; j++) + { + this.HandleTouch(XSingleton.singleton.GetTouch(j)); + } + } + bool enabled3 = XSingleton.singleton.Enabled; + if (enabled3) + { + XSingleton.singleton.Update(); + for (int k = 0; k < XSingleton.singleton.touchCount; k++) + { + this.HandleTouch(XSingleton.singleton.GetTouch(k)); + } + } + this.UpdateScreenSave(); + } + + private void UpdateScreenSave() + { + bool on_screen_save = this._on_screen_save; + if (on_screen_save) + { + bool flag = Input.touchCount > 0; + if (flag) + { + XSingleton.singleton.XPlatform.ResetScreenLightness(); + this._on_screen_save = false; + this._screenSave = 0f; + } + } + else + { + bool flag2 = Input.touchCount == 0; + if (flag2) + { + this._screenSave += Time.unscaledDeltaTime; + } + else + { + this._screenSave = 0f; + } + } + bool flag3 = this._screenSave > XSingleton.singleton.ScreenSaveLimit; + if (flag3) + { + this._on_screen_save = true; + this._screenSave = 0f; + XSingleton.singleton.XPlatform.SetScreenLightness(XSingleton.singleton.ScreenSavePercentage); + } + } + + private void HandleTouch(XTouchItem touch) + { + bool flag = XTouch.PointOnUI(touch.Position); + bool flag2 = flag; + if (flag2) + { + switch (touch.Phase) + { + case 0: + { + bool fake = touch.Fake; + if (fake) + { + touch.faketouch.phase =(TouchPhase) 4; + } + else + { + touch.Convert2FakeTouch((TouchPhase)4); + } + break; + } + } + } + XSingleton.singleton.Feed(touch); + XSingleton.singleton.Feed(touch); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Input/XTouch.cs.meta b/Client/Assets/Scripts/XMainClient/Input/XTouch.cs.meta new file mode 100644 index 00000000..5514441d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Input/XTouch.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ba1f33f2f1ba684a90a3981e8ebfc73 +timeCreated: 1611403892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Input/XTouchItem.cs b/Client/Assets/Scripts/XMainClient/Input/XTouchItem.cs new file mode 100644 index 00000000..a360ddeb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Input/XTouchItem.cs @@ -0,0 +1,79 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XTouchItem + { + public bool Fake { get; set; } + + public float DeltaTime + { + get + { + return this.Fake ? this.faketouch.deltaTime : this.touch.deltaTime; + } + } + + public int FingerId + { + get + { + return this.Fake ? this.faketouch.fingerId : this.touch.fingerId; + } + } + + public TouchPhase Phase + { + get + { + return this.Fake ? this.faketouch.phase : this.touch.phase; + } + } + + public Vector2 Position + { + get + { + return this.Fake ? this.faketouch.position : this.touch.position; + } + } + + public Vector2 RawPosition + { + get + { + return this.Fake ? this.faketouch.rawPosition : this.touch.rawPosition; + } + } + + public int TapCount + { + get + { + return this.Fake ? this.faketouch.tapCount : this.touch.tapCount; + } + } + + public Touch touch; + + public XFakeTouch faketouch; + + public void Convert2FakeTouch(TouchPhase phase) + { + this.faketouch.fingerId = this.touch.fingerId; + this.faketouch.position = this.touch.position; + this.faketouch.deltaTime = this.touch.deltaTime; + this.faketouch.deltaPosition = this.touch.deltaPosition; + this.faketouch.phase = phase; + this.faketouch.tapCount = this.touch.tapCount; + this.Fake = true; + } + + public override string ToString() + { + return "DeltaTime=" + DeltaTime + ", FingerId=" + FingerId + ", Phase=" + Phase + ", Pos=" + Position + ", RawPos=" + RawPosition + ", TapCount=" + TapCount; + } + + } +} diff --git a/Client/Assets/Scripts/XMainClient/Input/XTouchItem.cs.meta b/Client/Assets/Scripts/XMainClient/Input/XTouchItem.cs.meta new file mode 100644 index 00000000..4ce1e6a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Input/XTouchItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a1c2055e959bd544b0b00d6514fb5bf +timeCreated: 1611404090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Input/XVirtualTab.cs b/Client/Assets/Scripts/XMainClient/Input/XVirtualTab.cs new file mode 100644 index 00000000..c68068e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Input/XVirtualTab.cs @@ -0,0 +1,266 @@ +using System; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XVirtualTab : XSingleton + { + public int FingerId + { + get + { + return this._finger_id; + } + } + + public bool Freezed + { + get + { + return this._bFreeze; + } + set + { + this._bFreeze = value; + this.Cancel(); + } + } + + public bool Feeding + { + get + { + return this._bFeeding && !this._bFreeze; + } + } + + public float DeadZone + { + get + { + return this._dead_zone; + } + } + + public float MaxDistance + { + get + { + return this._max_distance; + } + } + + public Vector3 Direction + { + get + { + bool flag = XSingleton.singleton.Player != null && XSingleton.singleton.Player.Buffs.IsBuffStateOn(XBuffType.XBuffType_Puzzled); + Vector3 result; + if (flag) + { + result = XSingleton.singleton.HorizontalRotateVetor3(this._direction, (float)XSingleton.singleton.Player.Buffs.GetStateParam(XBuffType.XBuffType_Puzzled), true); + } + else + { + result = this._direction; + } + return result; + } + } + + public float CentrifugalFactor + { + get + { + return this._velocity; + } + } + + private readonly float _dead_zone = 15f; + + private int _finger_id = -1; + + private bool _bTouch = false; + + private bool _bFeeding = false; + + private bool _bFreeze = false; + + private float _max_distance = 75f; + + private float _velocity = 0f; + + private float _outer_radius = 0f; + + private float _inner_radius = 0f; + + private Vector3 _direction = Vector3.zero; + + private Vector2 _center = Vector2.zero; + + private Vector2 _rocker_center = Vector2.zero; + + private Vector2 _tab_dir = Vector2.up; + + public void OnEnterScene() + { + this._outer_radius = DlgBase.singleton.GetPanelRadius(); + this._inner_radius = DlgBase.singleton.GetJoystickRadius(); + this._max_distance = (XSingleton.singleton.EditorMode ? 125f : (this._outer_radius + this._inner_radius)); + this.Cancel(); + this._bFreeze = false; + } + + public void Feed(XTouchItem touch) + { + bool newly = this._finger_id == -1 && touch.FingerId != XSingleton.singleton.FingerId; + bool keep = this._finger_id == touch.FingerId; + bool flag = !this._bFreeze && (newly || keep); + Debug.Log("newly=" + newly + ", keep=" + keep); + if (flag) + { + bool bFeeding = this._bFeeding; + if (bFeeding) + { + bool flag2 = XTouch.IsActiveTouch(touch); + if (flag2) + { + this.CalcMove(touch, false); + } + else + { + this.Cancel(); + } + } + else + { + bool bTouch = this._bTouch; + if (bTouch) + { + bool flag3 = XTouch.IsActiveTouch(touch); + if (flag3) + { + //bool flag4 = (touch.Position - this._center).sqrMagnitude > this._dead_zone * this._dead_zone; + //if (flag4) + //{ + this._bFeeding = true; + this.CalcMove(touch, true); + //} + } + else + { + this.Cancel(); + } + } + else + { + // 这里会导致没法使用虚拟摇杆 + //bool flag5 = touch.Phase == null && touch.Position.x < (float)Screen.width * 0.5f; + bool flag5 = touch.Phase == TouchPhase.Began && touch.Position.x < (float)Screen.width * 0.5f; + if (flag5) + { + this._bTouch = true; + this._center = new Vector2(touch.Position.x, touch.Position.y); + this._finger_id = touch.FingerId; + Debug.Log( "touch center = " + this._center); + } + } + } + } + } + + public void Cancel() + { + bool bTouch = this._bTouch; + if (bTouch) + { + this._bTouch = false; + this._bFeeding = false; + this._center = Vector2.zero; + this._finger_id = -1; + DlgBase.singleton.ShowPanel(false, default(Vector2)); + } + } + + private void CalcMove(XTouchItem touch, bool newly) + { + //c 这里把两个this.TabCulling()注释掉了 + + //this.TabCulling(); + Vector2 vector = touch.Position - this._center; + bool flag = !newly && XSingleton.singleton.EditorMode && touch.FingerId == 1; + if (flag) + { + float num = 480f * Time.deltaTime; + float num2 = Vector2.Angle(this._tab_dir, vector); + bool flag2 = num2 > num; + if (flag2) + { + bool flag3 = XSingleton.singleton.Clockwise(this._tab_dir, vector); + this._tab_dir = XSingleton.singleton.HorizontalRotateVetor2(this._tab_dir, flag3 ? num : (-num), false); + bool flag4 = XSingleton.singleton.Clockwise(this._tab_dir, vector); + bool flag5 = flag3 != flag4; + if (flag5) + { + this._tab_dir = vector; + } + } + else + { + this._tab_dir = vector; + } + } + else + { + this._tab_dir = vector; + } + float num3 = this._tab_dir.magnitude; + bool flag6 = num3 > this._max_distance; + if (flag6) + { + num3 = this._max_distance; + //this.TabCulling(); + } + this._velocity = 1f; + float num4 = Vector2.Angle(Vector2.up, this._tab_dir); + bool flag7 = XSingleton.singleton.Clockwise(Vector2.up, this._tab_dir); + bool flag8 = XSingleton.singleton.GameCamera == null || XSingleton.singleton.GameCamera.CameraTrans == null; + if (!flag8) + { + Vector3 forward = XSingleton.singleton.GameCamera.CameraTrans.forward; + forward.y = 0f; + forward.Normalize(); + this._direction = XSingleton.singleton.HorizontalRotateVetor3(forward, flag7 ? num4 : (-num4), true); + DlgBase.singleton.ShowPanel(true, this._center); + DlgBase.singleton.SetJoystickPos(num3, (flag7 ? num4 : (360f - num4)) - 90f); + } + } + + private void TabCulling() + { + bool flag = this._center.x - this._max_distance < 0f; + if (flag) + { + this._center.x = this._max_distance; + } + bool flag2 = this._center.y - this._max_distance < 0f; + if (flag2) + { + this._center.y = this._max_distance; + } + bool flag3 = this._center.x + this._max_distance > (float)Screen.width; + if (flag3) + { + this._center.x = (float)Screen.width - this._max_distance; + } + bool flag4 = this._center.y + this._max_distance > (float)Screen.height; + if (flag4) + { + this._center.y = (float)Screen.height - this._max_distance; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Input/XVirtualTab.cs.meta b/Client/Assets/Scripts/XMainClient/Input/XVirtualTab.cs.meta new file mode 100644 index 00000000..e4bb8a04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Input/XVirtualTab.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ecc24643af9abd4195051948af49ba5 +timeCreated: 1611403609 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/InputUIType.cs b/Client/Assets/Scripts/XMainClient/InputUIType.cs new file mode 100644 index 00000000..dbea2e19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InputUIType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum InputUIType + { + Normal, + Linked + } +} diff --git a/Client/Assets/Scripts/XMainClient/InputUIType.cs.meta b/Client/Assets/Scripts/XMainClient/InputUIType.cs.meta new file mode 100644 index 00000000..22237ba8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InputUIType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c9edca36a975274693fa8c0869e2f69 +timeCreated: 1611404100 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/InviteMemberInfo.cs b/Client/Assets/Scripts/XMainClient/InviteMemberInfo.cs new file mode 100644 index 00000000..11eb9971 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InviteMemberInfo.cs @@ -0,0 +1,39 @@ +using System; + +namespace XMainClient +{ + public class InviteMemberInfo + { + public ulong uid; + + public string name; + + public uint ppt; + + public uint level; + + public uint vip; + + public string guildname; + + public uint degree; + + public int sameGuild; + + public uint profession = 1u; + + public bool bSent; + + public override bool Equals(object obj) + { + InviteMemberInfo inviteMemberInfo = obj as InviteMemberInfo; + bool flag = inviteMemberInfo != null; + return flag && inviteMemberInfo.uid == this.uid; + } + + public override int GetHashCode() + { + return (int)this.uid; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/InviteMemberInfo.cs.meta b/Client/Assets/Scripts/XMainClient/InviteMemberInfo.cs.meta new file mode 100644 index 00000000..0e4d30c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/InviteMemberInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d80ac38297ffa74484def86700786f0 +timeCreated: 1611403696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemAttrCompareResult.cs b/Client/Assets/Scripts/XMainClient/ItemAttrCompareResult.cs new file mode 100644 index 00000000..b2642bc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemAttrCompareResult.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum ItemAttrCompareResult + { + IACR_NOT_COMPARABLE, + IACR_EQUAL, + IACR_SMALLER, + IACR_LARGER = 4 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemAttrCompareResult.cs.meta b/Client/Assets/Scripts/XMainClient/ItemAttrCompareResult.cs.meta new file mode 100644 index 00000000..4235911a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemAttrCompareResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4dd83ede25e21e4dab89c9c4a1e7582 +timeCreated: 1611404740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemAttrCompareType.cs b/Client/Assets/Scripts/XMainClient/ItemAttrCompareType.cs new file mode 100644 index 00000000..468a273f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemAttrCompareType.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum ItemAttrCompareType + { + IACT_BASIC = 1, + IACT_RANDOM, + IACT_ENHANCE = 4, + IACT_JADE = 8, + IACT_FORGE = 16, + IACT_SELF = 19, + IACT_TOTAL = 31 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemAttrCompareType.cs.meta b/Client/Assets/Scripts/XMainClient/ItemAttrCompareType.cs.meta new file mode 100644 index 00000000..6c2dc309 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemAttrCompareType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56d89639bed7eb941af971e83bd5e08d +timeCreated: 1611403745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemCornerType.cs b/Client/Assets/Scripts/XMainClient/ItemCornerType.cs new file mode 100644 index 00000000..77dc9dca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemCornerType.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal enum ItemCornerType + { + LeftDown, + LeftUp, + RightDown, + RightUp, + Center, + Prof + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemCornerType.cs.meta b/Client/Assets/Scripts/XMainClient/ItemCornerType.cs.meta new file mode 100644 index 00000000..be7bfa04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemCornerType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c18246933c77fa4db3c4fe3f3289133 +timeCreated: 1611403894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemDesc.cs b/Client/Assets/Scripts/XMainClient/ItemDesc.cs new file mode 100644 index 00000000..ee9f7bba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemDesc.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal struct ItemDesc + { + public int ItemID; + + public int ItemCount; + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemDesc.cs.meta b/Client/Assets/Scripts/XMainClient/ItemDesc.cs.meta new file mode 100644 index 00000000..bce511d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemDesc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c738d0961e10df4cb14c8360c4a745b +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemEnum.cs b/Client/Assets/Scripts/XMainClient/ItemEnum.cs new file mode 100644 index 00000000..836ab9fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemEnum.cs @@ -0,0 +1,31 @@ +using System; + +namespace XMainClient +{ + public enum ItemEnum + { + GOLD = 1, + SKILL_POINT_TWO, + EXP = 4, + SKILL_POINT, + FATIGUE, + DRAGON_COIN, + VIP_POINT, + DIAMOND, + PARTNERCOIN = 11, + AWAKE_POINT = 41, + AWAKE_SKILL_POINT, + AWAKE_SKILL_POINT_TWO, + HORNOR_POINT = 21, + GUILD_CONTRIBUTE, + DICE = 28, + CHAT_LANNIAO = 51, + VIRTUAL_ITEM_MAX = 50, + HAIR_COLORING = 52, + FINDBACK_ITEM = 70, + FLOWER_RED_ROSE = 90, + FLOWER_WHITE_ROSE, + FLOWER_BLUE_ENCHANTRESS, + FRIEND_GIFT = 160 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemEnum.cs.meta b/Client/Assets/Scripts/XMainClient/ItemEnum.cs.meta new file mode 100644 index 00000000..84f555b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 972125550638b3e48ae95209bfee7545 +timeCreated: 1611404187 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemListHandler.cs b/Client/Assets/Scripts/XMainClient/ItemListHandler.cs new file mode 100644 index 00000000..4eecaaed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemListHandler.cs @@ -0,0 +1,152 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ItemListHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/ItemListHandler"; + } + } + + private IXUIButton m_Close; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIScrollView m_ScrollView; + + private IXUITable m_Table; + + private List m_TypeList = new List(); + + private List> m_ItemID = new List>(); + + private List m_TypeTitle = new List(); + + protected override void Init() + { + this.m_TypeList.Clear(); + this.m_TypeTitle.Clear(); + this.m_Close = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + for (int i = 1; i < XFastEnumIntEqualityComparer.ToInt(ItemQuality.MAX); i++) + { + ItemQuality itemQuality = (ItemQuality)i; + string s = itemQuality.ToString(); + Transform item = base.PanelObject.transform.Find(XSingleton.singleton.StringCombine("Bg/ScrollView/Table/", s)); + this.m_TypeTitle.Add(item); + IXUIList ixuilist = base.PanelObject.transform.Find(XSingleton.singleton.StringCombine("Bg/ScrollView/Table/", s, "/Grid")).GetComponent("XUIList") as IXUIList; + ixuilist.RegisterRepositionHandle(new OnAfterRepostion(this.OnListRefreshFinished)); + this.m_TypeList.Add(ixuilist); + } + Transform transform = base.PanelObject.transform.Find("Bg/ScrollView/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_ScrollView = (base.PanelObject.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Table = (base.PanelObject.transform.Find("Bg/ScrollView/Table").GetComponent("XUITable") as IXUITable); + } + + private void OnListRefreshFinished() + { + this.m_Table.Reposition(); + this.m_ScrollView.ResetPosition(); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + private void ClassifySpritesByQuality(List itemList) + { + this.m_ItemID.Clear(); + List list = new List(); + List list2 = new List(); + List list3 = new List(); + List list4 = new List(); + List list5 = new List(); + for (int i = 0; i < itemList.Count; i++) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemList[i]); + switch (itemConf.ItemQuality) + { + case 1: + list5.Add(itemList[i]); + break; + case 2: + list4.Add(itemList[i]); + break; + case 3: + list3.Add(itemList[i]); + break; + case 4: + list2.Add(itemList[i]); + break; + case 5: + list.Add(itemList[i]); + break; + } + } + this.m_ItemID.Add(list5); + this.m_ItemID.Add(list4); + this.m_ItemID.Add(list3); + this.m_ItemID.Add(list2); + this.m_ItemID.Add(list); + } + + public void ShowItemList(List itemList) + { + base.SetVisible(true); + this.m_ScrollView.ResetPosition(); + this.ClassifySpritesByQuality(itemList); + this.m_ItemPool.FakeReturnAll(); + this.CreateItemIcon(ItemQuality.L); + this.CreateItemIcon(ItemQuality.S); + this.CreateItemIcon(ItemQuality.A); + this.CreateItemIcon(ItemQuality.B); + this.CreateItemIcon(ItemQuality.C); + this.m_ItemPool.ActualReturnAll(true); + } + + private void CreateItemIcon(ItemQuality quality) + { + int index = XFastEnumIntEqualityComparer.ToInt(quality) - 1; + IXUIList ixuilist = this.m_TypeList[index]; + List list = this.m_ItemID[index]; + this.m_TypeTitle[index].gameObject.SetActive(list.Count > 0); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = ixuilist.gameObject.transform; + this.SetitemInfo(gameObject, list[i]); + XSingleton.singleton.m_uiTool.ChangePanel(gameObject, ixuilist.GetParentUIRect(), ixuilist.GetParentPanel()); + } + ixuilist.Refresh(); + } + + private void SetitemInfo(GameObject obj, uint itemID) + { + IXUISprite ixuisprite = obj.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)itemID; + XSingleton.singleton.normalItemDrawer.DrawItem(obj, (int)itemID, 0, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + private string GetQualityFrame(uint quality) + { + return string.Format("kuang_dj_{0}", quality); + } + + private bool OnCloseClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemListHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ItemListHandler.cs.meta new file mode 100644 index 00000000..e7a03e5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemListHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bcbf89f87a6e37449bf44f6471594d4 +timeCreated: 1611403688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemQuality.cs b/Client/Assets/Scripts/XMainClient/ItemQuality.cs new file mode 100644 index 00000000..2f262fad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemQuality.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal enum ItemQuality + { + C = 1, + B, + A, + S, + L, + MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemQuality.cs.meta b/Client/Assets/Scripts/XMainClient/ItemQuality.cs.meta new file mode 100644 index 00000000..5bac8b30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemQuality.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eda5bc3b516061f4289d5e11a8a3aae5 +timeCreated: 1611404792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemType.cs b/Client/Assets/Scripts/XMainClient/ItemType.cs new file mode 100644 index 00000000..b3928eee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemType.cs @@ -0,0 +1,40 @@ +using System; + +namespace XMainClient +{ + public enum ItemType + { + EQUIP = 1, + PECK, + VIRTUAL_ITEM, + MATERAIL, + FASHION, + EMBLEM, + JADE, + FRAGMENT, + LOTTERY_BOX, + SUPPLEMENT, + FISH, + TEMPLATE, + PET_EGG, + PET_FOOD, + TICKET, + EMBLEM_MATERIAL, + SPRITEFOOD, + SPRITE, + CARD, + SEED, + GUILDSEED, + FOOD_MENU, + Food_Eaten, + PANDORA = 26, + PET_SKILL_BOOK = 28, + ENCHANT, + Hero_Experience_Ticket, + ARTIFACT, + GuildCollectCard = 33, + BagExpandTicket, + Tarja, + Inscription + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemType.cs.meta b/Client/Assets/Scripts/XMainClient/ItemType.cs.meta new file mode 100644 index 00000000..666418ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 582c5271156ebef48a77f9d5762bea88 +timeCreated: 1611403753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemUpdateHandler.cs b/Client/Assets/Scripts/XMainClient/ItemUpdateHandler.cs new file mode 100644 index 00000000..c000daa3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemUpdateHandler.cs @@ -0,0 +1,7 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal delegate void ItemUpdateHandler(Transform t, int index); +} diff --git a/Client/Assets/Scripts/XMainClient/ItemUpdateHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ItemUpdateHandler.cs.meta new file mode 100644 index 00000000..61f37d08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemUpdateHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: baaf7f6ca1d885d429e52d47c795a59d +timeCreated: 1611404438 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemUse.cs b/Client/Assets/Scripts/XMainClient/ItemUse.cs new file mode 100644 index 00000000..80209acc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemUse.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal enum ItemUse + { + BagFind, + BodyFind, + FashionWear, + FashionOff, + Composite, + FashionSuitWear, + FashionSuitOff, + FoodEaten, + FashionDisplayWear, + FashionDisplayOff, + FashionSuitDisplayWear, + FashionSuitDisplayOff, + ActivationFashion, + ActivationHairColor, + UseHairColor + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemUse.cs.meta b/Client/Assets/Scripts/XMainClient/ItemUse.cs.meta new file mode 100644 index 00000000..bb044d09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemUse.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b01e875a86cdc04cbb9cdb61bfe686e +timeCreated: 1611404093 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ItemUseMgr.cs b/Client/Assets/Scripts/XMainClient/ItemUseMgr.cs new file mode 100644 index 00000000..a0f70756 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemUseMgr.cs @@ -0,0 +1,13 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ItemUseMgr + { + public static uint GetItemUseValue(ItemUse type) + { + return (uint)XFastEnumIntEqualityComparer.ToInt(type); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ItemUseMgr.cs.meta b/Client/Assets/Scripts/XMainClient/ItemUseMgr.cs.meta new file mode 100644 index 00000000..a89db066 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ItemUseMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 678315422877a6b43931c70f11e7b189 +timeCreated: 1611403858 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/JokerKingMainView.cs b/Client/Assets/Scripts/XMainClient/JokerKingMainView.cs new file mode 100644 index 00000000..c9706439 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/JokerKingMainView.cs @@ -0,0 +1,239 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class JokerKingMainView : DlgBase + { + public override string fileName + { + get + { + return "OperatingActivity/JokerkingMain"; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private PokerTournamentReward.RowData[] Tournaments + { + get + { + return XJokerKingDocument.JokerTournamed.Table; + } + } + + private XJokerKingDocument _Doc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnItemUpdateWrapUpdate)); + base.uiBehaviour.m_RankList.gameObject.SetActive(false); + base.uiBehaviour.m_IntroText.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("KINGOFPOKER"))); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickHandler)); + base.uiBehaviour.m_BtnGo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGo)); + base.uiBehaviour.m_BtnDisable.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickJoin)); + base.uiBehaviour.m_BtnRankReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRankReward)); + base.uiBehaviour.m_BtnRankSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickRankRewardClose)); + } + + protected override void OnShow() + { + base.OnShow(); + this.InitRewardList(); + this._Doc.JokerKingMatchQuery(); + } + + public void RefreshData() + { + bool flag = this._Doc.MatchState == CardMatchState.CardMatch_StateDummy; + if (flag) + { + bool isSignUp = this._Doc.IsSignUp; + if (isSignUp) + { + this.SignMatching(); + } + else + { + this.SignBegioning(); + } + } + else + { + this.SignJoin(); + } + } + + private void SignJoin() + { + base.uiBehaviour.m_info.SetText(string.Empty); + base.uiBehaviour.m_BtnGo.SetVisible(false); + base.uiBehaviour.m_Matching.gameObject.SetActive(false); + base.uiBehaviour.m_BtnDisable.SetVisible(true); + } + + private void UnSignBegion() + { + base.uiBehaviour.m_info.SetText(XStringDefineProxy.GetString("JOKERKING_SIGN_NOT_BEGION")); + base.uiBehaviour.m_BtnGo.SetVisible(false); + base.uiBehaviour.m_Matching.gameObject.SetActive(false); + base.uiBehaviour.m_BtnDisable.SetVisible(false); + } + + private void SignBegioning() + { + int @int = XSingleton.singleton.GetInt("PokerTournamentSignUpNum"); + base.uiBehaviour.m_info.SetText(XStringDefineProxy.GetString("JOKERKING_SIGN_BEGION", new object[] + { + (long)@int - (long)((ulong)this._Doc.JokerKingTimes), + @int + })); + base.uiBehaviour.m_BtnGo.SetVisible(true); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("PokerTournamentSignUpCost", true); + base.uiBehaviour.m_LabelSymbol.InputText = XStringDefineProxy.GetString("JOKERKING_SIGN_UP", new object[] + { + XLabelSymbolHelper.FormatCostWithIcon(sequenceList[0, 1], ItemEnum.DRAGON_COIN) + }); + base.uiBehaviour.m_Matching.gameObject.SetActive(false); + base.uiBehaviour.m_BtnDisable.SetVisible(false); + } + + private void SignMatching() + { + base.uiBehaviour.m_info.SetText(string.Empty); + base.uiBehaviour.m_BtnGo.SetVisible(false); + base.uiBehaviour.m_Matching.gameObject.SetActive(true); + base.uiBehaviour.m_BtnDisable.SetVisible(false); + } + + private bool OnClickGo(IXUIButton btn) + { + this._Doc.JokerKingMatchSignUp(); + return true; + } + + private bool OnClickJoin(IXUIButton btn) + { + this._Doc.JokerKingMatchAdd(); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnClickHandler(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnClickRankReward(IXUIButton btn) + { + base.uiBehaviour.m_RankList.gameObject.SetActive(true); + this.SetItemListRewardList(); + return true; + } + + private void OnClickRankRewardClose(IXUISprite sprite) + { + base.uiBehaviour.m_RankList.gameObject.SetActive(false); + } + + private void SetItemListRewardList() + { + base.uiBehaviour.m_WrapContent.SetContentCount(this.Tournaments.Length, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + + private void OnItemUpdateWrapUpdate(Transform t, int index) + { + bool flag = index >= this.Tournaments.Length; + if (!flag) + { + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + PokerTournamentReward.RowData rowData = this.Tournaments[index]; + bool flag2 = rowData.Rank[0] == rowData.Rank[1]; + if (flag2) + { + bool flag3 = rowData.Rank[0] <= 3u; + if (flag3) + { + ixuisprite.SetSprite(string.Format("N{0}", rowData.Rank[0])); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetVisible(true); + ixuilabel.SetText(string.Format("No.", rowData.Rank[0])); + } + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetVisible(true); + ixuilabel.SetText(string.Format("{0}-{1}", rowData.Rank[0], rowData.Rank[1])); + } + for (int i = 0; i < 4; i++) + { + Transform transform = t.Find(XSingleton.singleton.StringCombine("Grid/Item", i.ToString())); + bool flag4 = i < rowData.Reward.Count; + if (flag4) + { + transform.gameObject.SetActive(true); + uint num = rowData.Reward[i, 0]; + uint itemCount = rowData.Reward[i, 1]; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)num); + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, itemConf, (int)itemCount, false); + IXUISprite ixuisprite2 = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)num; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + transform.gameObject.SetActive(false); + } + } + } + } + + private void InitRewardList() + { + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("PokerTournamentReward", XGlobalConfig.ListSeparator); + int num = andSeparateValue.Length; + base.uiBehaviour.m_RewardPool.ReturnAll(false); + for (int i = 0; i < num; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_Reward; + gameObject.transform.localPosition = new Vector3((float)(i * 90), 0f); + int num2 = int.Parse(andSeparateValue[i]); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, num2, 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Icon/Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Empty); + ixuisprite.ID = (ulong)((long)num2); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/JokerKingMainView.cs.meta b/Client/Assets/Scripts/XMainClient/JokerKingMainView.cs.meta new file mode 100644 index 00000000..c09cc992 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/JokerKingMainView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b27db25ba589c634d9eebd728b850075 +timeCreated: 1611404386 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/JokerKingMatchView.cs b/Client/Assets/Scripts/XMainClient/JokerKingMatchView.cs new file mode 100644 index 00000000..e63bf049 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/JokerKingMatchView.cs @@ -0,0 +1,500 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class JokerKingMatchView : XGuildJokerCommonView + { + public override string fileName + { + get + { + return "OperatingActivity/JokerkingDuelDlg"; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private CardMatchState MatchState + { + get + { + return this._Doc.MatchState; + } + } + + protected override int CurrentStore + { + get + { + return (int)this._Doc.MatchJockerStore; + } + } + + protected override int CurrentCardCount + { + get + { + return this._Doc.MatchJockers.Count; + } + } + + protected override uint CardResult + { + get + { + return this._Doc.MatchResult; + } + } + + protected override List BestCard + { + get + { + return this._Doc.MatchBestJockers; + } + } + + protected override string BestName + { + get + { + return this._Doc.MatchBestJockerName; + } + } + + protected override List CurrentCard + { + get + { + return this._Doc.MatchJockers; + } + } + + private XJokerKingDocument _Doc; + + private IXUILabel m_beginTime; + + private IXUILabel m_roundTime; + + private IXUIScrollView m_RankScrollView; + + private IXUIWrapContent m_RankWrapContent; + + private IXUILabel m_RuleTip; + + public XYuyinView _yuyinHandler; + + public Transform m_MyRank; + + public IXUILabel m_addCountPerRound; + + public IXUILabel m_GameTip2; + + private uint m_changeTimer = 0u; + + private XUIPool m_rewardPool; + + private Transform m_rewardTransform; + + private Transform m_TotalIncomeTransform; + + protected override void OnLoad() + { + base.OnLoad(); + DlgHandlerBase.EnsureCreate(ref this._yuyinHandler, base.uiBehaviour.transform, true, this); + } + + protected override void OnUnload() + { + bool flag = this.m_rewardPool != null; + if (flag) + { + this.m_rewardPool = null; + } + DlgHandlerBase.EnsureUnload(ref this._yuyinHandler); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._Doc.TimeLeft > 0.0; + if (flag) + { + string @string = XStringDefineProxy.GetString("GUILD_JOCKER_MATCH_WAITTING_LABEL"); + bool flag2 = this.m_beginTime.IsVisible(); + if (flag2) + { + this.m_beginTime.SetText(string.Format(@string, XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.TimeLeft, 5))); + } + bool flag3 = this.m_roundTime.IsVisible(); + if (flag3) + { + this.m_roundTime.SetText(XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.TimeLeft, 5)); + } + } + } + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + this.m_beginTime = (base.uiBehaviour.transform.Find("Bg/BeginTime").GetComponent("XUILabel") as IXUILabel); + this.m_roundTime = (base.uiBehaviour.transform.Find("Bg/RoundTime").GetComponent("XUILabel") as IXUILabel); + this.m_RankScrollView = (base.uiBehaviour.transform.Find("Bg/Ranking/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RankWrapContent = (base.uiBehaviour.transform.Find("Bg/Ranking/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnRankWrapItemUpdate)); + this.m_RuleTip = (base.uiBehaviour.transform.Find("Bg/Rule/Bg/RuleTip").GetComponent("XUILabel") as IXUILabel); + IXUIPanel ixuipanel = base.uiBehaviour.transform.GetComponent("XUIPanel") as IXUIPanel; + ixuipanel.SetDepth(2); + this.m_MyRank = base.uiBehaviour.transform.Find("Bg/Ranking/MyRank"); + this.m_addCountPerRound = (base.uiBehaviour.transform.Find("Bg/AddCount/Num").GetComponent("XUILabel") as IXUILabel); + this.m_GameTip2 = (base.uiBehaviour.transform.Find("Bg/GameTip2").GetComponent("XUILabel") as IXUILabel); + this.m_rewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_TotalIncomeTransform = base.uiBehaviour.transform.Find("Bg/TotalIncome"); + this.m_rewardTransform = base.uiBehaviour.transform.Find("Bg/TotalIncome/RewardList"); + Transform transform = base.uiBehaviour.transform.Find("Bg/TotalIncome/RewardList/Reward"); + this.m_rewardPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 4u, true); + } + + protected override bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + base.OnShow(); + this._Doc.wattingPTC = false; + base.SetupBestCard(); + this.RefreshWhenShow(); + this.SetRankInfo(this._Doc.MatchRankNames.Count); + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + showSettingArgs.position = 1; + showSettingArgs.needforceshow = true; + showSettingArgs.forceshow = true; + showSettingArgs.needdepth = true; + showSettingArgs.depth = 4; + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + this.m_RuleTip.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("GUILD_JOKER_MATCH_RULE_TIP"))); + this.m_addCountPerRound.SetText(XSingleton.singleton.GetValue("PokerTournamentChangeAdd")); + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Show(YuyinIconType.JOKER, 4); + this._yuyinHandler.Refresh(YuyinIconType.JOKER); + } + } + + public void SetRankInfo(int count) + { + this.m_RankWrapContent.SetContentCount(count, false); + this.m_RankScrollView.ResetPosition(); + } + + public void RefreshSelfRank(int score, int rank) + { + this.SetBaseInfo(this.m_MyRank, XSingleton.singleton.XPlayerData.Name, rank, score); + } + + protected override SeqListRef GetCardReward(int index) + { + return XGuildJokerDocument._CardRewardTable.Table[index].jokerreward; + } + + private void SetBaseInfo(Transform t, string name, int index, int score) + { + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Score").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("IndexSprite").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("IndexLabel").GetComponent("XUILabel") as IXUILabel; + bool flag = index == -1; + if (flag) + { + ixuilabel2.Alpha = 1f; + ixuisprite.SetAlpha(0f); + ixuilabel2.SetText(XSingleton.singleton.GetString("NoRank")); + } + else + { + bool flag2 = index < 3; + if (flag2) + { + ixuilabel2.Alpha = 0f; + ixuisprite.SetAlpha(1f); + ixuisprite.SetSprite(string.Format("N{0}", index + 1)); + } + else + { + ixuilabel2.Alpha = 1f; + ixuisprite.SetAlpha(0f); + ixuilabel2.SetText((index + 1).ToString()); + } + } + ixuilabel.SetText(score.ToString()); + ixuilabelSymbol.InputText = name; + } + + private void OnRankWrapItemUpdate(Transform t, int index) + { + this.SetBaseInfo(t, (index < this._Doc.MatchRankNames.Count) ? this._Doc.MatchRankNames[index].ToString() : string.Empty, index, (index < this._Doc.MatchRankScores.Count) ? this._Doc.MatchRankScores[index] : 0); + } + + protected override void OnHide() + { + this._Doc.JokerKingMatchExit(); + XSingleton.singleton.KillTimer(this.m_changeTimer); + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + showSettingArgs.position = 0; + showSettingArgs.needforceshow = true; + showSettingArgs.forceshow = false; + showSettingArgs.needdepth = true; + showSettingArgs.depth = 0; + showSettingArgs.anim = false; + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + base.OnHide(); + } + + private void ShowTimeClock() + { + bool flag = this.MatchState == CardMatchState.CardMatch_StateEnd; + if (flag) + { + this.ShowGameOver(); + } + else + { + bool flag2 = this.MatchState == CardMatchState.CardMatch_StateRoundBegin || this.MatchState == CardMatchState.CardMatch_StateRounding || this.MatchState == CardMatchState.CardMatch_StateRoundEnd; + if (flag2) + { + this.ShowRoundTime(); + } + else + { + this.ShowWattingTime(); + } + } + } + + protected override void OnCardClick(IXUISprite sp) + { + bool flag = this._changeCardLock || this._cardLock; + if (!flag) + { + bool flag2 = false; + for (int i = 0; i < this._Doc.MatchJockers.Count; i++) + { + bool flag3 = this._Doc.MatchJockers[i] == base.CardReAnalyze((uint)sp.ID); + if (flag3) + { + flag2 = true; + } + } + bool flag4 = !flag2; + if (!flag4) + { + bool flag5 = this._Doc.ChangeCount > 0u; + if (flag5) + { + this._Doc.JokerKingRoundChange(base.CardReAnalyze((uint)sp.ID)); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_JOCKER_NOTFREECOUNT"), "fece00"); + } + } + } + } + + private void ShowWattingTime() + { + this.m_beginTime.SetVisible(true); + this.m_roundTime.SetVisible(false); + base.SetGameTipStatus(false); + base.uiBehaviour.m_CurrentRewardTransfrom.gameObject.SetActive(false); + } + + private void ShowRoundTime() + { + base.uiBehaviour.m_CurrentRewardTransfrom.gameObject.SetActive(true); + this.m_beginTime.SetVisible(false); + this.m_roundTime.SetVisible(true); + base.SetGameTipStatus(this.MatchState == CardMatchState.CardMatch_StateRounding || this.MatchState == CardMatchState.CardMatch_StateRoundBegin); + } + + protected override bool OnStartGameClicked(IXUIButton button) + { + bool flag = (this.MatchState == CardMatchState.CardMatch_StateRounding || this.MatchState == CardMatchState.CardMatch_StateRoundBegin) && this.CurrentCard.Count > 0; + if (flag) + { + this._Doc.JokerKingRoundOver(); + } + else + { + bool flag2 = this.MatchState == CardMatchState.CardMatch_StateEnd; + if (flag2) + { + this.SetVisibleWithAnimation(false, null); + } + } + return true; + } + + private void ShowGameOver() + { + XSingleton.singleton.KillTimer(this.m_changeTimer); + base.uiBehaviour.m_CurrentRewardTransfrom.gameObject.SetActive(false); + this.m_beginTime.SetVisible(false); + this.m_roundTime.SetVisible(false); + base.SetGameTipStatus(false); + } + + public void SetGameCount() + { + base.uiBehaviour.m_GameCount.SetText(this._Doc.MatchRound.ToString()); + base.uiBehaviour.m_ChangeCount.SetText(this._Doc.ChangeCount.ToString()); + } + + public void SetRoundInfo() + { + base.RefreshCard(); + this.SetCurrentReward(); + this.SetGameCount(); + base.SetCardStore(); + } + + private void SetButtonState() + { + this.m_GameTip2.SetVisible(false); + bool flag = this.MatchState == CardMatchState.CardMatch_StateRounding || this.MatchState == CardMatchState.CardMatch_StateRoundBegin; + if (flag) + { + base.uiBehaviour.m_StartGame.SetGrey(this.CurrentCard.Count > 0); + base.uiBehaviour.m_StartGame.SetVisible(true); + base.SetButtonTip("GUILD_JOCKER_MATCH_GET"); + } + else + { + bool flag2 = this.MatchState == CardMatchState.CardMatch_StateRoundWaiting; + if (flag2) + { + base.uiBehaviour.m_StartGame.SetGrey(true); + base.uiBehaviour.m_StartGame.SetVisible(true); + base.SetButtonTip("GUILD_JOCKER_MATCH_WAITTING"); + } + else + { + bool flag3 = this.MatchState == CardMatchState.CardMatch_StateRoundEnd; + if (flag3) + { + base.uiBehaviour.m_StartGame.SetVisible(true); + base.uiBehaviour.m_StartGame.SetGrey(false); + } + else + { + bool flag4 = this.MatchState == CardMatchState.CardMatch_StateEnd; + if (flag4) + { + base.uiBehaviour.m_StartGame.SetVisible(true); + base.uiBehaviour.m_StartGame.SetGrey(true); + base.SetButtonTip("GUILD_REDPACKET_DETAIL_EXIT"); + this.m_GameTip2.SetVisible(true); + this.m_GameTip2.SetText(XSingleton.singleton.GetString("GUILD_JOCKER_MATCH_TIP_END")); + } + else + { + this.m_GameTip2.SetVisible(true); + this.m_GameTip2.SetText(XStringDefineProxy.GetString("JOKERKING_MESSAGE", new object[] + { + XSingleton.singleton.GetValue("PokerTournamentRound"), + XSingleton.singleton.GetValue("PokerTournamentRounding") + })); + base.uiBehaviour.m_StartGame.SetVisible(false); + } + } + } + } + } + + public void RefreshWhenShow() + { + this.SetGameCount(); + base.SetCardStore(); + this.SetButtonState(); + this.ShowTimeClock(); + this.SetRoundInfo(); + this.SetRewardList(); + } + + public override void SetCurrentReward() + { + string text = string.Format("{0}:", XStringDefineProxy.GetString("CURRENT_REWARD")); + bool flag = this._Doc.MatchJockers.Count == 0; + if (flag) + { + base.SetCurrentRewardStr(text); + } + else + { + bool flag2 = this.CurrentCard.Count == 0; + if (flag2) + { + base.SetCurrentRewardStr(text); + } + else + { + bool flag3 = (ulong)this._Doc.MatchResult >= (ulong)((long)XGuildJokerDocument._CardRewardTable.Table.Length); + if (flag3) + { + text = string.Format("{0} {1}", text, XStringDefineProxy.GetString("NONE")); + } + else + { + CardRewardTable.RowData rowData = XGuildJokerDocument._CardRewardTable.Table[(int)this._Doc.MatchResult]; + for (int i = 0; i < rowData.jokerreward.Count; i++) + { + text = string.Format("{0} {1}{2}", text, XLabelSymbolHelper.FormatSmallIcon((int)rowData.jokerreward[i, 0]), rowData.jokerreward[i, 1]); + } + List stringList = XSingleton.singleton.GetStringList("CardPointIcon"); + text = string.Format("{0} {1}{2}", text, XLabelSymbolHelper.FormatImage(stringList[0], stringList[1]), rowData.point); + } + base.SetCurrentRewardStr(text); + base.RefreshCardSelect(); + } + } + } + + private void SetRewardList() + { + int count = this._Doc.MatchItems.Count; + this.m_rewardPool.ReturnAll(false); + this.m_TotalIncomeTransform.gameObject.SetActive(count > 0); + for (int i = 0; i < count; i++) + { + GameObject gameObject = this.m_rewardPool.FetchGameObject(false); + gameObject.transform.parent = this.m_rewardTransform; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)i * 28)); + ItemBrief itemBrief = this._Doc.MatchItems[i]; + IXUILabelSymbol ixuilabelSymbol = gameObject.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string text = string.Format("{0} X{1}", XLabelSymbolHelper.FormatSmallIcon((int)itemBrief.itemID), itemBrief.itemCount); + XSingleton.singleton.AddGreenLog("StrTemp:", text, null, null, null, null); + ixuilabelSymbol.InputText = text; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/JokerKingMatchView.cs.meta b/Client/Assets/Scripts/XMainClient/JokerKingMatchView.cs.meta new file mode 100644 index 00000000..dfeff757 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/JokerKingMatchView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2284f3ad981e17c49978d47c1aa80f31 +timeCreated: 1611403422 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG.meta b/Client/Assets/Scripts/XMainClient/KKSG.meta new file mode 100644 index 00000000..88a9a32e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 20545d03d6d01b745b5217446fee8fb8 +folderAsset: yes +timeCreated: 1611402942 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs new file mode 100644 index 00000000..b6ad0616 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AIDebugMsg")] + [Serializable] + public class AIDebugMsg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "msg", DataFormat = DataFormat.Default)] + public string msg + { + get + { + return this._msg ?? ""; + } + set + { + this._msg = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool msgSpecified + { + get + { + return this._msg != null; + } + set + { + bool flag = value == (this._msg == null); + if (flag) + { + this._msg = (value ? this.msg : null); + } + } + } + + private int? _level; + + private string _msg; + + private IExtension extensionObject; + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializemsg() + { + return this.msgSpecified; + } + + private void Resetmsg() + { + this.msgSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs.meta new file mode 100644 index 00000000..157c6fc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AIDebugMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f03f11e2e77dd5946ae9ccbd0a5c8571 +timeCreated: 1611404830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs new file mode 100644 index 00000000..bedfaf67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AbsEnterSceneArg")] + [Serializable] + public class AbsEnterSceneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs.meta new file mode 100644 index 00000000..37b66d83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce893ef61240e3c40a48f6482c33c677 +timeCreated: 1611404579 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs new file mode 100644 index 00000000..493b4904 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AbsEnterSceneRes")] + [Serializable] + public class AbsEnterSceneRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs.meta new file mode 100644 index 00000000..d353bac7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbsEnterSceneRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d19ce7856a8727542a0480faa356cd69 +timeCreated: 1611404592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyBase.cs b/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyBase.cs new file mode 100644 index 00000000..380e24b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyBase.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AbsPartyBase")] + [Serializable] + public class AbsPartyBase : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "diff", DataFormat = DataFormat.TwosComplement)] + public uint diff + { + get + { + return this._diff ?? 0u; + } + set + { + this._diff = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool diffSpecified + { + get + { + return this._diff != null; + } + set + { + bool flag = value == (this._diff == null); + if (flag) + { + this._diff = (value ? new uint?(this.diff) : null); + } + } + } + + private uint? _type; + + private uint? _diff; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializediff() + { + return this.diffSpecified; + } + + private void Resetdiff() + { + this.diffSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyBase.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyBase.cs.meta new file mode 100644 index 00000000..260fe054 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a27c0ec6f5f59af4cb616fd80946ada6 +timeCreated: 1611404257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyInfo.cs new file mode 100644 index 00000000..019ff8b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyInfo.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AbsPartyInfo")] + [Serializable] + public class AbsPartyInfo : IExtensible + { + [ProtoMember(1, Name = "aby", DataFormat = DataFormat.Default)] + public List aby + { + get + { + return this._aby; + } + } + + [ProtoMember(2, IsRequired = false, Name = "abyssmailtime", DataFormat = DataFormat.TwosComplement)] + public uint abyssmailtime + { + get + { + return this._abyssmailtime ?? 0u; + } + set + { + this._abyssmailtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool abyssmailtimeSpecified + { + get + { + return this._abyssmailtime != null; + } + set + { + bool flag = value == (this._abyssmailtime == null); + if (flag) + { + this._abyssmailtime = (value ? new uint?(this.abyssmailtime) : null); + } + } + } + + private readonly List _aby = new List(); + + private uint? _abyssmailtime; + + private IExtension extensionObject; + + private bool ShouldSerializeabyssmailtime() + { + return this.abyssmailtimeSpecified; + } + + private void Resetabyssmailtime() + { + this.abyssmailtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyInfo.cs.meta new file mode 100644 index 00000000..6456f378 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbsPartyInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: afd164dcf8306ff42a91f77f0e507327 +timeCreated: 1611404347 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbyssFlameStage.cs b/Client/Assets/Scripts/XMainClient/KKSG/AbyssFlameStage.cs new file mode 100644 index 00000000..9eb7d31f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbyssFlameStage.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AbyssFlameStage")] + public enum AbyssFlameStage + { + [ProtoEnum(Name = "ABYSS_NONE_FLAME", Value = 1)] + ABYSS_NONE_FLAME = 1, + [ProtoEnum(Name = "ABYSS_ON_FLAME", Value = 2)] + ABYSS_ON_FLAME, + [ProtoEnum(Name = "ABYSS_WIN_FLAME", Value = 3)] + ABYSS_WIN_FLAME + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AbyssFlameStage.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AbyssFlameStage.cs.meta new file mode 100644 index 00000000..51615ee3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AbyssFlameStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ed51302d57a1d54ca9a43f2a3cd2411 +timeCreated: 1611404243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritArg.cs new file mode 100644 index 00000000..f531b546 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AceptGuildInheritArg")] + [Serializable] + public class AceptGuildInheritArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleId", DataFormat = DataFormat.TwosComplement)] + public ulong roleId + { + get + { + return this._roleId ?? 0UL; + } + set + { + this._roleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIdSpecified + { + get + { + return this._roleId != null; + } + set + { + bool flag = value == (this._roleId == null); + if (flag) + { + this._roleId = (value ? new ulong?(this.roleId) : null); + } + } + } + + private ulong? _roleId; + + private IExtension extensionObject; + + private bool ShouldSerializeroleId() + { + return this.roleIdSpecified; + } + + private void ResetroleId() + { + this.roleIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritArg.cs.meta new file mode 100644 index 00000000..26aaa787 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06a058b85362ecf46b2a4c70c0ae59cf +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritRes.cs new file mode 100644 index 00000000..ffb05bd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AceptGuildInheritRes")] + [Serializable] + public class AceptGuildInheritRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritRes.cs.meta new file mode 100644 index 00000000..58e99978 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AceptGuildInheritRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e429c454a30c93b418cf59be17c7026f +timeCreated: 1611404736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AchieveBriefInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/AchieveBriefInfo.cs new file mode 100644 index 00000000..d5839376 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AchieveBriefInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AchieveBriefInfo")] + [Serializable] + public class AchieveBriefInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "achieveClassifyType", DataFormat = DataFormat.TwosComplement)] + public uint achieveClassifyType + { + get + { + return this._achieveClassifyType ?? 0u; + } + set + { + this._achieveClassifyType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool achieveClassifyTypeSpecified + { + get + { + return this._achieveClassifyType != null; + } + set + { + bool flag = value == (this._achieveClassifyType == null); + if (flag) + { + this._achieveClassifyType = (value ? new uint?(this.achieveClassifyType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "achievePoint", DataFormat = DataFormat.TwosComplement)] + public uint achievePoint + { + get + { + return this._achievePoint ?? 0u; + } + set + { + this._achievePoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool achievePointSpecified + { + get + { + return this._achievePoint != null; + } + set + { + bool flag = value == (this._achievePoint == null); + if (flag) + { + this._achievePoint = (value ? new uint?(this.achievePoint) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "maxAchievePoint", DataFormat = DataFormat.TwosComplement)] + public uint maxAchievePoint + { + get + { + return this._maxAchievePoint ?? 0u; + } + set + { + this._maxAchievePoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxAchievePointSpecified + { + get + { + return this._maxAchievePoint != null; + } + set + { + bool flag = value == (this._maxAchievePoint == null); + if (flag) + { + this._maxAchievePoint = (value ? new uint?(this.maxAchievePoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "canRewardCount", DataFormat = DataFormat.TwosComplement)] + public uint canRewardCount + { + get + { + return this._canRewardCount ?? 0u; + } + set + { + this._canRewardCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canRewardCountSpecified + { + get + { + return this._canRewardCount != null; + } + set + { + bool flag = value == (this._canRewardCount == null); + if (flag) + { + this._canRewardCount = (value ? new uint?(this.canRewardCount) : null); + } + } + } + + private uint? _achieveClassifyType; + + private uint? _achievePoint; + + private uint? _maxAchievePoint; + + private uint? _canRewardCount; + + private IExtension extensionObject; + + private bool ShouldSerializeachieveClassifyType() + { + return this.achieveClassifyTypeSpecified; + } + + private void ResetachieveClassifyType() + { + this.achieveClassifyTypeSpecified = false; + } + + private bool ShouldSerializeachievePoint() + { + return this.achievePointSpecified; + } + + private void ResetachievePoint() + { + this.achievePointSpecified = false; + } + + private bool ShouldSerializemaxAchievePoint() + { + return this.maxAchievePointSpecified; + } + + private void ResetmaxAchievePoint() + { + this.maxAchievePointSpecified = false; + } + + private bool ShouldSerializecanRewardCount() + { + return this.canRewardCountSpecified; + } + + private void ResetcanRewardCount() + { + this.canRewardCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AchieveBriefInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AchieveBriefInfo.cs.meta new file mode 100644 index 00000000..7ad22360 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AchieveBriefInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e9fc5edd7cc7a64581d011219372ce0 +timeCreated: 1611403810 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AchieveDbInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/AchieveDbInfo.cs new file mode 100644 index 00000000..8cc2bdc0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AchieveDbInfo.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AchieveDbInfo")] + [Serializable] + public class AchieveDbInfo : IExtensible + { + [ProtoMember(1, Name = "achieveData", DataFormat = DataFormat.Default)] + public List achieveData + { + get + { + return this._achieveData; + } + } + + [ProtoMember(2, Name = "achieveAward", DataFormat = DataFormat.Default)] + public List achieveAward + { + get + { + return this._achieveAward; + } + } + + [ProtoMember(3, Name = "oldachievement", DataFormat = DataFormat.Default)] + public List oldachievement + { + get + { + return this._oldachievement; + } + } + + private readonly List _achieveData = new List(); + + private readonly List _achieveAward = new List(); + + private readonly List _oldachievement = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AchieveDbInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AchieveDbInfo.cs.meta new file mode 100644 index 00000000..3191011b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AchieveDbInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 205768a9fd8a79b4bbe9086e39bc0d8f +timeCreated: 1611403405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AchieveType.cs b/Client/Assets/Scripts/XMainClient/KKSG/AchieveType.cs new file mode 100644 index 00000000..0d09b963 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AchieveType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AchieveType")] + public enum AchieveType + { + [ProtoEnum(Name = "ACHIEVE_TYPE_COMMON", Value = 1)] + ACHIEVE_TYPE_COMMON = 1, + [ProtoEnum(Name = "ACHIEVE_TYPE_RAID", Value = 2)] + ACHIEVE_TYPE_RAID, + [ProtoEnum(Name = "ACHIEVE_TYPE_NEST", Value = 3)] + ACHIEVE_TYPE_NEST, + [ProtoEnum(Name = "ACHIEVE_TYPE_BATTLE", Value = 4)] + ACHIEVE_TYPE_BATTLE, + [ProtoEnum(Name = "ACHIEVE_TYPE_ACTIVITY", Value = 5)] + ACHIEVE_TYPE_ACTIVITY + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AchieveType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AchieveType.cs.meta new file mode 100644 index 00000000..d877671a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AchieveType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2af1478d3b9274e46b1de4652644dc9b +timeCreated: 1611403497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AchivementInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/AchivementInfo.cs new file mode 100644 index 00000000..10aa62e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AchivementInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AchivementInfo")] + [Serializable] + public class AchivementInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "achivementID", DataFormat = DataFormat.TwosComplement)] + public uint achivementID + { + get + { + return this._achivementID ?? 0u; + } + set + { + this._achivementID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool achivementIDSpecified + { + get + { + return this._achivementID != null; + } + set + { + bool flag = value == (this._achivementID == null); + if (flag) + { + this._achivementID = (value ? new uint?(this.achivementID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + private uint? _achivementID; + + private uint? _state; + + private IExtension extensionObject; + + private bool ShouldSerializeachivementID() + { + return this.achivementIDSpecified; + } + + private void ResetachivementID() + { + this.achivementIDSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AchivementInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AchivementInfo.cs.meta new file mode 100644 index 00000000..75d451c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AchivementInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ec14b8ee02b9b04e96b7ae0d37767bf +timeCreated: 1611403906 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActOpenState.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActOpenState.cs new file mode 100644 index 00000000..b0c25ebc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActOpenState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActOpenState")] + public enum ActOpenState + { + [ProtoEnum(Name = "ActOpenState_NotOpen", Value = 1)] + ActOpenState_NotOpen = 1, + [ProtoEnum(Name = "ActOpenState_Prepare", Value = 2)] + ActOpenState_Prepare, + [ProtoEnum(Name = "ActOpenState_Running", Value = 3)] + ActOpenState_Running, + [ProtoEnum(Name = "ActOpenState_Over", Value = 4)] + ActOpenState_Over + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActOpenState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActOpenState.cs.meta new file mode 100644 index 00000000..951e764e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActOpenState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16205d8824b3d1d45a95c742d557be9c +timeCreated: 1611403287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasArg.cs new file mode 100644 index 00000000..55887c99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivatAtlasArg")] + [Serializable] + public class ActivatAtlasArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + private uint? _teamid; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasArg.cs.meta new file mode 100644 index 00000000..eb35e76c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c9de86ba7c9b564faeb42912174c5ba +timeCreated: 1611403175 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasRes.cs new file mode 100644 index 00000000..c84865c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivatAtlasRes")] + [Serializable] + public class ActivatAtlasRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasRes.cs.meta new file mode 100644 index 00000000..bac753c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivatAtlasRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4d96368bd768384c8893fa4c2e010b2 +timeCreated: 1611404604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionArg.cs new file mode 100644 index 00000000..3f4f8af9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivateFashionArg")] + [Serializable] + public class ActivateFashionArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "suit_id", DataFormat = DataFormat.TwosComplement)] + public uint suit_id + { + get + { + return this._suit_id ?? 0u; + } + set + { + this._suit_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool suit_idSpecified + { + get + { + return this._suit_id != null; + } + set + { + bool flag = value == (this._suit_id == null); + if (flag) + { + this._suit_id = (value ? new uint?(this.suit_id) : null); + } + } + } + + private uint? _suit_id; + + private IExtension extensionObject; + + private bool ShouldSerializesuit_id() + { + return this.suit_idSpecified; + } + + private void Resetsuit_id() + { + this.suit_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionArg.cs.meta new file mode 100644 index 00000000..c3e68ea5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80b4fb52b139e8e41889c7c7ee0ca07c +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionCharm.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionCharm.cs new file mode 100644 index 00000000..1ce51b82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionCharm.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivateFashionCharm")] + [Serializable] + public class ActivateFashionCharm : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "suit_id", DataFormat = DataFormat.TwosComplement)] + public uint suit_id + { + get + { + return this._suit_id ?? 0u; + } + set + { + this._suit_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool suit_idSpecified + { + get + { + return this._suit_id != null; + } + set + { + bool flag = value == (this._suit_id == null); + if (flag) + { + this._suit_id = (value ? new uint?(this.suit_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "activate_count", DataFormat = DataFormat.TwosComplement)] + public uint activate_count + { + get + { + return this._activate_count ?? 0u; + } + set + { + this._activate_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activate_countSpecified + { + get + { + return this._activate_count != null; + } + set + { + bool flag = value == (this._activate_count == null); + if (flag) + { + this._activate_count = (value ? new uint?(this.activate_count) : null); + } + } + } + + [ProtoMember(3, Name = "items", DataFormat = DataFormat.TwosComplement)] + public List items + { + get + { + return this._items; + } + } + + private uint? _suit_id; + + private uint? _activate_count; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializesuit_id() + { + return this.suit_idSpecified; + } + + private void Resetsuit_id() + { + this.suit_idSpecified = false; + } + + private bool ShouldSerializeactivate_count() + { + return this.activate_countSpecified; + } + + private void Resetactivate_count() + { + this.activate_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionCharm.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionCharm.cs.meta new file mode 100644 index 00000000..1836711c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionCharm.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e83e9a0cd9216bb4d8f13af6725d2bda +timeCreated: 1611404752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionRes.cs new file mode 100644 index 00000000..1ffcc275 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivateFashionRes")] + [Serializable] + public class ActivateFashionRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "active_count", DataFormat = DataFormat.TwosComplement)] + public uint active_count + { + get + { + return this._active_count ?? 0u; + } + set + { + this._active_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool active_countSpecified + { + get + { + return this._active_count != null; + } + set + { + bool flag = value == (this._active_count == null); + if (flag) + { + this._active_count = (value ? new uint?(this.active_count) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _active_count; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeactive_count() + { + return this.active_countSpecified; + } + + private void Resetactive_count() + { + this.active_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionRes.cs.meta new file mode 100644 index 00000000..8a1afc8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateFashionRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 512d2cc9c83cd344abaae0a08a5387bc +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColor.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColor.cs new file mode 100644 index 00000000..9815f6df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColor.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivateHairColor")] + [Serializable] + public class ActivateHairColor : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hair_id", DataFormat = DataFormat.TwosComplement)] + public uint hair_id + { + get + { + return this._hair_id ?? 0u; + } + set + { + this._hair_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hair_idSpecified + { + get + { + return this._hair_id != null; + } + set + { + bool flag = value == (this._hair_id == null); + if (flag) + { + this._hair_id = (value ? new uint?(this.hair_id) : null); + } + } + } + + [ProtoMember(2, Name = "hair_color_id", DataFormat = DataFormat.TwosComplement)] + public List hair_color_id + { + get + { + return this._hair_color_id; + } + } + + private uint? _hair_id; + + private readonly List _hair_color_id = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializehair_id() + { + return this.hair_idSpecified; + } + + private void Resethair_id() + { + this.hair_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColor.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColor.cs.meta new file mode 100644 index 00000000..fc5b2431 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9c27b0493b45c1459ab1eefd62c2738 +timeCreated: 1611404301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorArg.cs new file mode 100644 index 00000000..0ff5b77b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivateHairColorArg")] + [Serializable] + public class ActivateHairColorArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hair_id", DataFormat = DataFormat.TwosComplement)] + public uint hair_id + { + get + { + return this._hair_id ?? 0u; + } + set + { + this._hair_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hair_idSpecified + { + get + { + return this._hair_id != null; + } + set + { + bool flag = value == (this._hair_id == null); + if (flag) + { + this._hair_id = (value ? new uint?(this.hair_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hair_color_id", DataFormat = DataFormat.TwosComplement)] + public uint hair_color_id + { + get + { + return this._hair_color_id ?? 0u; + } + set + { + this._hair_color_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hair_color_idSpecified + { + get + { + return this._hair_color_id != null; + } + set + { + bool flag = value == (this._hair_color_id == null); + if (flag) + { + this._hair_color_id = (value ? new uint?(this.hair_color_id) : null); + } + } + } + + private uint? _hair_id; + + private uint? _hair_color_id; + + private IExtension extensionObject; + + private bool ShouldSerializehair_id() + { + return this.hair_idSpecified; + } + + private void Resethair_id() + { + this.hair_idSpecified = false; + } + + private bool ShouldSerializehair_color_id() + { + return this.hair_color_idSpecified; + } + + private void Resethair_color_id() + { + this.hair_color_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorArg.cs.meta new file mode 100644 index 00000000..54433678 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2745e2c649ed8094987dda9445e978e2 +timeCreated: 1611403470 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorRes.cs new file mode 100644 index 00000000..18b699aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivateHairColorRes")] + [Serializable] + public class ActivateHairColorRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hair_id", DataFormat = DataFormat.TwosComplement)] + public uint hair_id + { + get + { + return this._hair_id ?? 0u; + } + set + { + this._hair_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hair_idSpecified + { + get + { + return this._hair_id != null; + } + set + { + bool flag = value == (this._hair_id == null); + if (flag) + { + this._hair_id = (value ? new uint?(this.hair_id) : null); + } + } + } + + [ProtoMember(3, Name = "hair_colorid_list", DataFormat = DataFormat.TwosComplement)] + public List hair_colorid_list + { + get + { + return this._hair_colorid_list; + } + } + + private ErrorCode? _result; + + private uint? _hair_id; + + private readonly List _hair_colorid_list = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializehair_id() + { + return this.hair_idSpecified; + } + + private void Resethair_id() + { + this.hair_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorRes.cs.meta new file mode 100644 index 00000000..77b77a92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivateHairColorRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5768d3b921d05de49861535451c77cfa +timeCreated: 1611403749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowArg.cs new file mode 100644 index 00000000..93f31a01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivatePreShowArg")] + [Serializable] + public class ActivatePreShowArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowArg.cs.meta new file mode 100644 index 00000000..57eb89fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 50e6fe90c2d92144c864a8185ba28fc7 +timeCreated: 1611403704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowRes.cs new file mode 100644 index 00000000..01658b9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivatePreShowRes")] + [Serializable] + public class ActivatePreShowRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowRes.cs.meta new file mode 100644 index 00000000..01ab95b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivatePreShowRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9687976b0486fad4b80f1cdcb6399e74 +timeCreated: 1611404185 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookArg.cs new file mode 100644 index 00000000..8cdb89bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActiveCookbookArg")] + [Serializable] + public class ActiveCookbookArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "cook_book_id", DataFormat = DataFormat.TwosComplement)] + public uint cook_book_id + { + get + { + return this._cook_book_id ?? 0u; + } + set + { + this._cook_book_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cook_book_idSpecified + { + get + { + return this._cook_book_id != null; + } + set + { + bool flag = value == (this._cook_book_id == null); + if (flag) + { + this._cook_book_id = (value ? new uint?(this.cook_book_id) : null); + } + } + } + + private ulong? _garden_id; + + private uint? _cook_book_id; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializecook_book_id() + { + return this.cook_book_idSpecified; + } + + private void Resetcook_book_id() + { + this.cook_book_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookArg.cs.meta new file mode 100644 index 00000000..3fb2b049 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b622d2aaedc24b43902dd4b5c397492 +timeCreated: 1611403168 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookRes.cs new file mode 100644 index 00000000..3dad93cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActiveCookbookRes")] + [Serializable] + public class ActiveCookbookRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "food_id", DataFormat = DataFormat.TwosComplement)] + public uint food_id + { + get + { + return this._food_id ?? 0u; + } + set + { + this._food_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool food_idSpecified + { + get + { + return this._food_id != null; + } + set + { + bool flag = value == (this._food_id == null); + if (flag) + { + this._food_id = (value ? new uint?(this.food_id) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _food_id; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializefood_id() + { + return this.food_idSpecified; + } + + private void Resetfood_id() + { + this.food_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookRes.cs.meta new file mode 100644 index 00000000..b8b74680 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActiveCookbookRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d6ec9dce0517e24f8b3227eef014c4d +timeCreated: 1611403805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivityRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivityRecord.cs new file mode 100644 index 00000000..0aacbfed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivityRecord.cs @@ -0,0 +1,311 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivityRecord")] + [Serializable] + public class ActivityRecord : IExtensible + { + [ProtoMember(1, Name = "ActivityId", DataFormat = DataFormat.TwosComplement)] + public List ActivityId + { + get + { + return this._ActivityId; + } + } + + [ProtoMember(2, Name = "FinishCount", DataFormat = DataFormat.TwosComplement)] + public List FinishCount + { + get + { + return this._FinishCount; + } + } + + [ProtoMember(3, IsRequired = false, Name = "ActivityAllValue", DataFormat = DataFormat.TwosComplement)] + public uint ActivityAllValue + { + get + { + return this._ActivityAllValue ?? 0u; + } + set + { + this._ActivityAllValue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ActivityAllValueSpecified + { + get + { + return this._ActivityAllValue != null; + } + set + { + bool flag = value == (this._ActivityAllValue == null); + if (flag) + { + this._ActivityAllValue = (value ? new uint?(this.ActivityAllValue) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "DoubleActivityId", DataFormat = DataFormat.TwosComplement)] + public uint DoubleActivityId + { + get + { + return this._DoubleActivityId ?? 0u; + } + set + { + this._DoubleActivityId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DoubleActivityIdSpecified + { + get + { + return this._DoubleActivityId != null; + } + set + { + bool flag = value == (this._DoubleActivityId == null); + if (flag) + { + this._DoubleActivityId = (value ? new uint?(this.DoubleActivityId) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ChestGetInfo", DataFormat = DataFormat.TwosComplement)] + public uint ChestGetInfo + { + get + { + return this._ChestGetInfo ?? 0u; + } + set + { + this._ChestGetInfo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ChestGetInfoSpecified + { + get + { + return this._ChestGetInfo != null; + } + set + { + bool flag = value == (this._ChestGetInfo == null); + if (flag) + { + this._ChestGetInfo = (value ? new uint?(this.ChestGetInfo) : null); + } + } + } + + [ProtoMember(6, Name = "NeedFinishCount", DataFormat = DataFormat.TwosComplement)] + public List NeedFinishCount + { + get + { + return this._NeedFinishCount; + } + } + + [ProtoMember(7, IsRequired = false, Name = "activityWeekValue", DataFormat = DataFormat.TwosComplement)] + public uint activityWeekValue + { + get + { + return this._activityWeekValue ?? 0u; + } + set + { + this._activityWeekValue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activityWeekValueSpecified + { + get + { + return this._activityWeekValue != null; + } + set + { + bool flag = value == (this._activityWeekValue == null); + if (flag) + { + this._activityWeekValue = (value ? new uint?(this.activityWeekValue) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "LastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public ulong LastUpdateTime + { + get + { + return this._LastUpdateTime ?? 0UL; + } + set + { + this._LastUpdateTime = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LastUpdateTimeSpecified + { + get + { + return this._LastUpdateTime != null; + } + set + { + bool flag = value == (this._LastUpdateTime == null); + if (flag) + { + this._LastUpdateTime = (value ? new ulong?(this.LastUpdateTime) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "guildladdertime", DataFormat = DataFormat.TwosComplement)] + public uint guildladdertime + { + get + { + return this._guildladdertime ?? 0u; + } + set + { + this._guildladdertime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildladdertimeSpecified + { + get + { + return this._guildladdertime != null; + } + set + { + bool flag = value == (this._guildladdertime == null); + if (flag) + { + this._guildladdertime = (value ? new uint?(this.guildladdertime) : null); + } + } + } + + private readonly List _ActivityId = new List(); + + private readonly List _FinishCount = new List(); + + private uint? _ActivityAllValue; + + private uint? _DoubleActivityId; + + private uint? _ChestGetInfo; + + private readonly List _NeedFinishCount = new List(); + + private uint? _activityWeekValue; + + private ulong? _LastUpdateTime; + + private uint? _guildladdertime; + + private IExtension extensionObject; + + private bool ShouldSerializeActivityAllValue() + { + return this.ActivityAllValueSpecified; + } + + private void ResetActivityAllValue() + { + this.ActivityAllValueSpecified = false; + } + + private bool ShouldSerializeDoubleActivityId() + { + return this.DoubleActivityIdSpecified; + } + + private void ResetDoubleActivityId() + { + this.DoubleActivityIdSpecified = false; + } + + private bool ShouldSerializeChestGetInfo() + { + return this.ChestGetInfoSpecified; + } + + private void ResetChestGetInfo() + { + this.ChestGetInfoSpecified = false; + } + + private bool ShouldSerializeactivityWeekValue() + { + return this.activityWeekValueSpecified; + } + + private void ResetactivityWeekValue() + { + this.activityWeekValueSpecified = false; + } + + private bool ShouldSerializeLastUpdateTime() + { + return this.LastUpdateTimeSpecified; + } + + private void ResetLastUpdateTime() + { + this.LastUpdateTimeSpecified = false; + } + + private bool ShouldSerializeguildladdertime() + { + return this.guildladdertimeSpecified; + } + + private void Resetguildladdertime() + { + this.guildladdertimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivityRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivityRecord.cs.meta new file mode 100644 index 00000000..2f248474 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivityRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e2c5604b36fe9948a9d82726f852053 +timeCreated: 1611404240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivityRoleNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/ActivityRoleNotify.cs new file mode 100644 index 00000000..22ce678e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivityRoleNotify.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ActivityRoleNotify")] + [Serializable] + public class ActivityRoleNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ActivityRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ActivityRecord ActivityRecord + { + get + { + return this._ActivityRecord; + } + set + { + this._ActivityRecord = value; + } + } + + private ActivityRecord _ActivityRecord = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ActivityRoleNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ActivityRoleNotify.cs.meta new file mode 100644 index 00000000..379f21c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ActivityRoleNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a56d288d159c16a45a7f8a14cc643246 +timeCreated: 1611404286 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddAttrCount.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddAttrCount.cs new file mode 100644 index 00000000..c4417c43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddAttrCount.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddAttrCount")] + [Serializable] + public class AddAttrCount : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddAttrCount.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddAttrCount.cs.meta new file mode 100644 index 00000000..67ec7508 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddAttrCount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4eb4204a40aefd740b3c74418bbb29d5 +timeCreated: 1611403699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListArg.cs new file mode 100644 index 00000000..b19a9806 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddBlackListArg")] + [Serializable] + public class AddBlackListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "otherroleid", DataFormat = DataFormat.TwosComplement)] + public ulong otherroleid + { + get + { + return this._otherroleid ?? 0UL; + } + set + { + this._otherroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool otherroleidSpecified + { + get + { + return this._otherroleid != null; + } + set + { + bool flag = value == (this._otherroleid == null); + if (flag) + { + this._otherroleid = (value ? new ulong?(this.otherroleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ulong? _otherroleid; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeotherroleid() + { + return this.otherroleidSpecified; + } + + private void Resetotherroleid() + { + this.otherroleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListArg.cs.meta new file mode 100644 index 00000000..88014ba7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36ceaa9f755551c4e80920427d18ed86 +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListRes.cs new file mode 100644 index 00000000..0530cbd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddBlackListRes")] + [Serializable] + public class AddBlackListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "black", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Friend2Client black + { + get + { + return this._black; + } + set + { + this._black = value; + } + } + + private ErrorCode? _errorcode; + + private Friend2Client _black = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListRes.cs.meta new file mode 100644 index 00000000..56be78cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddBlackListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31eab9ae04e4a354095cfab0fcd78395 +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddFriendArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddFriendArg.cs new file mode 100644 index 00000000..93430cf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddFriendArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddFriendArg")] + [Serializable] + public class AddFriendArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "friendroleid", DataFormat = DataFormat.TwosComplement)] + public ulong friendroleid + { + get + { + return this._friendroleid ?? 0UL; + } + set + { + this._friendroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool friendroleidSpecified + { + get + { + return this._friendroleid != null; + } + set + { + bool flag = value == (this._friendroleid == null); + if (flag) + { + this._friendroleid = (value ? new ulong?(this.friendroleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ulong? _friendroleid; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializefriendroleid() + { + return this.friendroleidSpecified; + } + + private void Resetfriendroleid() + { + this.friendroleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddFriendArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddFriendArg.cs.meta new file mode 100644 index 00000000..356f8bd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddFriendArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d994ec03bc22b74fbfd35d58f7420a5 +timeCreated: 1611403197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddFriendRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddFriendRes.cs new file mode 100644 index 00000000..45e20292 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddFriendRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddFriendRes")] + [Serializable] + public class AddFriendRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "frienddata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Friend2Client frienddata + { + get + { + return this._frienddata; + } + set + { + this._frienddata = value; + } + } + + private ErrorCode? _errorcode; + + private Friend2Client _frienddata = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddFriendRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddFriendRes.cs.meta new file mode 100644 index 00000000..007fadb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddFriendRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5704fb25c96ceb4eafac7934410779a +timeCreated: 1611404876 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritArg.cs new file mode 100644 index 00000000..0fe27cdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddGuildInheritArg")] + [Serializable] + public class AddGuildInheritArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqRoleId", DataFormat = DataFormat.TwosComplement)] + public ulong reqRoleId + { + get + { + return this._reqRoleId ?? 0UL; + } + set + { + this._reqRoleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqRoleIdSpecified + { + get + { + return this._reqRoleId != null; + } + set + { + bool flag = value == (this._reqRoleId == null); + if (flag) + { + this._reqRoleId = (value ? new ulong?(this.reqRoleId) : null); + } + } + } + + private ulong? _reqRoleId; + + private IExtension extensionObject; + + private bool ShouldSerializereqRoleId() + { + return this.reqRoleIdSpecified; + } + + private void ResetreqRoleId() + { + this.reqRoleIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritArg.cs.meta new file mode 100644 index 00000000..c2fadcca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e18198664b2b55f458fc5f81ad1e0098 +timeCreated: 1611404702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritRes.cs new file mode 100644 index 00000000..378f9185 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddGuildInheritRes")] + [Serializable] + public class AddGuildInheritRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritRes.cs.meta new file mode 100644 index 00000000..582e553a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddGuildInheritRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c94612ae165418b46a2a660479a276eb +timeCreated: 1611404538 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddLevelScriptExtString.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddLevelScriptExtString.cs new file mode 100644 index 00000000..8a7d449e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddLevelScriptExtString.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddLevelScriptExtString")] + [Serializable] + public class AddLevelScriptExtString : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "extString", DataFormat = DataFormat.Default)] + public string extString + { + get + { + return this._extString ?? ""; + } + set + { + this._extString = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extStringSpecified + { + get + { + return this._extString != null; + } + set + { + bool flag = value == (this._extString == null); + if (flag) + { + this._extString = (value ? this.extString : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sceneTempID", DataFormat = DataFormat.TwosComplement)] + public uint sceneTempID + { + get + { + return this._sceneTempID ?? 0u; + } + set + { + this._sceneTempID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneTempIDSpecified + { + get + { + return this._sceneTempID != null; + } + set + { + bool flag = value == (this._sceneTempID == null); + if (flag) + { + this._sceneTempID = (value ? new uint?(this.sceneTempID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "waveID", DataFormat = DataFormat.TwosComplement)] + public int waveID + { + get + { + return this._waveID ?? 0; + } + set + { + this._waveID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool waveIDSpecified + { + get + { + return this._waveID != null; + } + set + { + bool flag = value == (this._waveID == null); + if (flag) + { + this._waveID = (value ? new int?(this.waveID) : null); + } + } + } + + private string _extString; + + private uint? _sceneTempID; + + private int? _waveID; + + private IExtension extensionObject; + + private bool ShouldSerializeextString() + { + return this.extStringSpecified; + } + + private void ResetextString() + { + this.extStringSpecified = false; + } + + private bool ShouldSerializesceneTempID() + { + return this.sceneTempIDSpecified; + } + + private void ResetsceneTempID() + { + this.sceneTempIDSpecified = false; + } + + private bool ShouldSerializewaveID() + { + return this.waveIDSpecified; + } + + private void ResetwaveID() + { + this.waveIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddLevelScriptExtString.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddLevelScriptExtString.cs.meta new file mode 100644 index 00000000..3f8dba5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddLevelScriptExtString.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1896403ca141874080ff35c7384f4a6 +timeCreated: 1611404591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrArg.cs new file mode 100644 index 00000000..53f1c8df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddTempAttrArg")] + [Serializable] + public class AddTempAttrArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrArg.cs.meta new file mode 100644 index 00000000..5f1abf6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee34504f1fc83f24da3c4ee136f29516 +timeCreated: 1611404795 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrRes.cs new file mode 100644 index 00000000..7672316a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AddTempAttrRes")] + [Serializable] + public class AddTempAttrRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrRes.cs.meta new file mode 100644 index 00000000..3174c273 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AddTempAttrRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39568b3b456d9e54f9770e69f3188b9d +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs new file mode 100644 index 00000000..c213b23c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AdjustGuildArenaRolePosArg")] + [Serializable] + public class AdjustGuildArenaRolePosArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] + public uint pos + { + get + { + return this._pos ?? 0u; + } + set + { + this._pos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posSpecified + { + get + { + return this._pos != null; + } + set + { + bool flag = value == (this._pos == null); + if (flag) + { + this._pos = (value ? new uint?(this.pos) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleId", DataFormat = DataFormat.TwosComplement)] + public ulong roleId + { + get + { + return this._roleId ?? 0UL; + } + set + { + this._roleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIdSpecified + { + get + { + return this._roleId != null; + } + set + { + bool flag = value == (this._roleId == null); + if (flag) + { + this._roleId = (value ? new ulong?(this.roleId) : null); + } + } + } + + private uint? _pos; + + private ulong? _roleId; + + private IExtension extensionObject; + + private bool ShouldSerializepos() + { + return this.posSpecified; + } + + private void Resetpos() + { + this.posSpecified = false; + } + + private bool ShouldSerializeroleId() + { + return this.roleIdSpecified; + } + + private void ResetroleId() + { + this.roleIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs.meta new file mode 100644 index 00000000..97cd4a74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e620578116ecab45b93cf7d73cf5810 +timeCreated: 1611403607 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs new file mode 100644 index 00000000..26b821b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AdjustGuildArenaRolePosRes")] + [Serializable] + public class AdjustGuildArenaRolePosRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, Name = "fightunits", DataFormat = DataFormat.Default)] + public List fightunits + { + get + { + return this._fightunits; + } + } + + private ErrorCode? _errorCode; + + private readonly List _fightunits = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs.meta new file mode 100644 index 00000000..1400b582 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AdjustGuildArenaRolePosRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cb0c91e8d5f0334797ce82fc0f474c5 +timeCreated: 1611403503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs new file mode 100644 index 00000000..b6fc79bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AgreeQAReq")] + [Serializable] + public class AgreeQAReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "agree", DataFormat = DataFormat.Default)] + public bool agree + { + get + { + return this._agree ?? false; + } + set + { + this._agree = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool agreeSpecified + { + get + { + return this._agree != null; + } + set + { + bool flag = value == (this._agree == null); + if (flag) + { + this._agree = (value ? new bool?(this.agree) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private bool? _agree; + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeagree() + { + return this.agreeSpecified; + } + + private void Resetagree() + { + this.agreeSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs.meta new file mode 100644 index 00000000..ec4455c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AgreeQAReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1bb8cfd340ed79246bfaf92ae2dcd9b4 +timeCreated: 1611403338 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs new file mode 100644 index 00000000..0f4e82a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AgreeQARes")] + [Serializable] + public class AgreeQARes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs.meta new file mode 100644 index 00000000..09d88c78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AgreeQARes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe6e8dd2f1f0d6549bbbfa8b733e731e +timeCreated: 1611404940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllBuffsInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/AllBuffsInfo.cs new file mode 100644 index 00000000..7839ac1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllBuffsInfo.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AllBuffsInfo")] + [Serializable] + public class AllBuffsInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "BuffState", DataFormat = DataFormat.TwosComplement)] + public uint BuffState + { + get + { + return this._BuffState ?? 0u; + } + set + { + this._BuffState = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BuffStateSpecified + { + get + { + return this._BuffState != null; + } + set + { + bool flag = value == (this._BuffState == null); + if (flag) + { + this._BuffState = (value ? new uint?(this.BuffState) : null); + } + } + } + + [ProtoMember(2, Name = "StateParamIndex", DataFormat = DataFormat.TwosComplement)] + public List StateParamIndex + { + get + { + return this._StateParamIndex; + } + } + + [ProtoMember(3, Name = "StateParamValues", DataFormat = DataFormat.TwosComplement)] + public List StateParamValues + { + get + { + return this._StateParamValues; + } + } + + private uint? _BuffState; + + private readonly List _StateParamIndex = new List(); + + private readonly List _StateParamValues = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeBuffState() + { + return this.BuffStateSpecified; + } + + private void ResetBuffState() + { + this.BuffStateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllBuffsInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AllBuffsInfo.cs.meta new file mode 100644 index 00000000..bd13ce6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllBuffsInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a01c8614fc03a04e8536980b9adacfa +timeCreated: 1611403307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllGiftIBItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/AllGiftIBItem.cs new file mode 100644 index 00000000..60cc1a12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllGiftIBItem.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AllGiftIBItem")] + [Serializable] + public class AllGiftIBItem : IExtensible + { + [ProtoMember(1, Name = "gift", DataFormat = DataFormat.Default)] + public List gift + { + get + { + return this._gift; + } + } + + private readonly List _gift = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllGiftIBItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AllGiftIBItem.cs.meta new file mode 100644 index 00000000..ab212540 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllGiftIBItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48ee0b97eeb6c6943baa36b0db18c370 +timeCreated: 1611403659 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllSynCardAttr.cs b/Client/Assets/Scripts/XMainClient/KKSG/AllSynCardAttr.cs new file mode 100644 index 00000000..680447b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllSynCardAttr.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AllSynCardAttr")] + [Serializable] + public class AllSynCardAttr : IExtensible + { + [ProtoMember(1, Name = "allAttrs", DataFormat = DataFormat.Default)] + public List allAttrs + { + get + { + return this._allAttrs; + } + } + + private readonly List _allAttrs = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllSynCardAttr.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AllSynCardAttr.cs.meta new file mode 100644 index 00000000..aa04f889 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllSynCardAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15bfb290d93996d428ba473239bf16c5 +timeCreated: 1611403264 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrArg.cs new file mode 100644 index 00000000..69aa5b11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AllianceGuildTerrArg")] + [Serializable] + public class AllianceGuildTerrArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrArg.cs.meta new file mode 100644 index 00000000..816a3e89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da937bdc06e69b644bc2296b60f65c07 +timeCreated: 1611404648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrRes.cs new file mode 100644 index 00000000..9c70af79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AllianceGuildTerrRes")] + [Serializable] + public class AllianceGuildTerrRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcod", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcod + { + get + { + return this._errorcod ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcod = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodSpecified + { + get + { + return this._errorcod != null; + } + set + { + bool flag = value == (this._errorcod == null); + if (flag) + { + this._errorcod = (value ? new ErrorCode?(this.errorcod) : null); + } + } + } + + private ErrorCode? _errorcod; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcod() + { + return this.errorcodSpecified; + } + + private void Reseterrorcod() + { + this.errorcodSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrRes.cs.meta new file mode 100644 index 00000000..f969179e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllianceGuildTerrRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f578757697bba74aa4d1f3d3b054d6e +timeCreated: 1611404029 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllyMatchRoleID.cs b/Client/Assets/Scripts/XMainClient/KKSG/AllyMatchRoleID.cs new file mode 100644 index 00000000..090b4393 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllyMatchRoleID.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AllyMatchRoleID")] + [Serializable] + public class AllyMatchRoleID : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "allyID", DataFormat = DataFormat.TwosComplement)] + public ulong allyID + { + get + { + return this._allyID ?? 0UL; + } + set + { + this._allyID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allyIDSpecified + { + get + { + return this._allyID != null; + } + set + { + bool flag = value == (this._allyID == null); + if (flag) + { + this._allyID = (value ? new ulong?(this.allyID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + private ulong? _allyID; + + private ulong? _roleID; + + private IExtension extensionObject; + + private bool ShouldSerializeallyID() + { + return this.allyIDSpecified; + } + + private void ResetallyID() + { + this.allyIDSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AllyMatchRoleID.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AllyMatchRoleID.cs.meta new file mode 100644 index 00000000..a89852c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AllyMatchRoleID.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a99f575f83069ff46b4cd2583e1b9f40 +timeCreated: 1611404299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AncientTimes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimes.cs new file mode 100644 index 00000000..1fe68e2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AncientTimes")] + [Serializable] + public class AncientTimes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "award", DataFormat = DataFormat.TwosComplement)] + public uint award + { + get + { + return this._award ?? 0u; + } + set + { + this._award = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool awardSpecified + { + get + { + return this._award != null; + } + set + { + bool flag = value == (this._award == null); + if (flag) + { + this._award = (value ? new uint?(this.award) : null); + } + } + } + + private uint? _award; + + private IExtension extensionObject; + + private bool ShouldSerializeaward() + { + return this.awardSpecified; + } + + private void Resetaward() + { + this.awardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AncientTimes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimes.cs.meta new file mode 100644 index 00000000..3d2b0278 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e99be7d626fed324a81766d22b2038c0 +timeCreated: 1611404757 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesArg.cs new file mode 100644 index 00000000..1da44c18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AncientTimesArg")] + [Serializable] + public class AncientTimesArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] + public uint pos + { + get + { + return this._pos ?? 0u; + } + set + { + this._pos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posSpecified + { + get + { + return this._pos != null; + } + set + { + bool flag = value == (this._pos == null); + if (flag) + { + this._pos = (value ? new uint?(this.pos) : null); + } + } + } + + private uint? _pos; + + private IExtension extensionObject; + + private bool ShouldSerializepos() + { + return this.posSpecified; + } + + private void Resetpos() + { + this.posSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesArg.cs.meta new file mode 100644 index 00000000..240bfb96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15ba801db7c81e44784ae8b4f7b54e79 +timeCreated: 1611403264 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesRes.cs new file mode 100644 index 00000000..d9b3070d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AncientTimesRes")] + [Serializable] + public class AncientTimesRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "reward", DataFormat = DataFormat.TwosComplement)] + public uint reward + { + get + { + return this._reward ?? 0u; + } + set + { + this._reward = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardSpecified + { + get + { + return this._reward != null; + } + set + { + bool flag = value == (this._reward == null); + if (flag) + { + this._reward = (value ? new uint?(this.reward) : null); + } + } + } + + private ErrorCode? _error; + + private uint? _reward; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializereward() + { + return this.rewardSpecified; + } + + private void Resetreward() + { + this.rewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesRes.cs.meta new file mode 100644 index 00000000..dc0d75a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AncientTimesRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9bbc4f62e274c64ea53225970f30073 +timeCreated: 1611404645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AnswerAckNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/AnswerAckNtf.cs new file mode 100644 index 00000000..a0496a71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AnswerAckNtf.cs @@ -0,0 +1,492 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AnswerAckNtf")] + [Serializable] + public class AnswerAckNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleId", DataFormat = DataFormat.TwosComplement)] + public ulong roleId + { + get + { + return this._roleId ?? 0UL; + } + set + { + this._roleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIdSpecified + { + get + { + return this._roleId != null; + } + set + { + bool flag = value == (this._roleId == null); + if (flag) + { + this._roleId = (value ? new ulong?(this.roleId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "answer", DataFormat = DataFormat.Default)] + public string answer + { + get + { + return this._answer ?? ""; + } + set + { + this._answer = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool answerSpecified + { + get + { + return this._answer != null; + } + set + { + bool flag = value == (this._answer == null); + if (flag) + { + this._answer = (value ? this.answer : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "correct", DataFormat = DataFormat.Default)] + public bool correct + { + get + { + return this._correct ?? false; + } + set + { + this._correct = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool correctSpecified + { + get + { + return this._correct != null; + } + set + { + bool flag = value == (this._correct == null); + if (flag) + { + this._correct = (value ? new bool?(this.correct) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "times", DataFormat = DataFormat.TwosComplement)] + public uint times + { + get + { + return this._times ?? 0u; + } + set + { + this._times = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timesSpecified + { + get + { + return this._times != null; + } + set + { + bool flag = value == (this._times == null); + if (flag) + { + this._times = (value ? new uint?(this.times) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "audioUid", DataFormat = DataFormat.TwosComplement)] + public ulong audioUid + { + get + { + return this._audioUid ?? 0UL; + } + set + { + this._audioUid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioUidSpecified + { + get + { + return this._audioUid != null; + } + set + { + bool flag = value == (this._audioUid == null); + if (flag) + { + this._audioUid = (value ? new ulong?(this.audioUid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "answertime", DataFormat = DataFormat.TwosComplement)] + public uint answertime + { + get + { + return this._answertime ?? 0u; + } + set + { + this._answertime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool answertimeSpecified + { + get + { + return this._answertime != null; + } + set + { + bool flag = value == (this._answertime == null); + if (flag) + { + this._answertime = (value ? new uint?(this.answertime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "userName", DataFormat = DataFormat.Default)] + public string userName + { + get + { + return this._userName ?? ""; + } + set + { + this._userName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool userNameSpecified + { + get + { + return this._userName != null; + } + set + { + bool flag = value == (this._userName == null); + if (flag) + { + this._userName = (value ? this.userName : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "coverDesignationId", DataFormat = DataFormat.TwosComplement)] + public uint coverDesignationId + { + get + { + return this._coverDesignationId ?? 0u; + } + set + { + this._coverDesignationId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool coverDesignationIdSpecified + { + get + { + return this._coverDesignationId != null; + } + set + { + bool flag = value == (this._coverDesignationId == null); + if (flag) + { + this._coverDesignationId = (value ? new uint?(this.coverDesignationId) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "audioTime", DataFormat = DataFormat.TwosComplement)] + public uint audioTime + { + get + { + return this._audioTime ?? 0u; + } + set + { + this._audioTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioTimeSpecified + { + get + { + return this._audioTime != null; + } + set + { + bool flag = value == (this._audioTime == null); + if (flag) + { + this._audioTime = (value ? new uint?(this.audioTime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + private ulong? _roleId; + + private string _answer; + + private bool? _correct; + + private uint? _times; + + private uint? _rank; + + private ulong? _audioUid; + + private uint? _answertime; + + private string _userName; + + private uint? _coverDesignationId; + + private uint? _audioTime; + + private uint? _profession; + + private IExtension extensionObject; + + private bool ShouldSerializeroleId() + { + return this.roleIdSpecified; + } + + private void ResetroleId() + { + this.roleIdSpecified = false; + } + + private bool ShouldSerializeanswer() + { + return this.answerSpecified; + } + + private void Resetanswer() + { + this.answerSpecified = false; + } + + private bool ShouldSerializecorrect() + { + return this.correctSpecified; + } + + private void Resetcorrect() + { + this.correctSpecified = false; + } + + private bool ShouldSerializetimes() + { + return this.timesSpecified; + } + + private void Resettimes() + { + this.timesSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeaudioUid() + { + return this.audioUidSpecified; + } + + private void ResetaudioUid() + { + this.audioUidSpecified = false; + } + + private bool ShouldSerializeanswertime() + { + return this.answertimeSpecified; + } + + private void Resetanswertime() + { + this.answertimeSpecified = false; + } + + private bool ShouldSerializeuserName() + { + return this.userNameSpecified; + } + + private void ResetuserName() + { + this.userNameSpecified = false; + } + + private bool ShouldSerializecoverDesignationId() + { + return this.coverDesignationIdSpecified; + } + + private void ResetcoverDesignationId() + { + this.coverDesignationIdSpecified = false; + } + + private bool ShouldSerializeaudioTime() + { + return this.audioTimeSpecified; + } + + private void ResetaudioTime() + { + this.audioTimeSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AnswerAckNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AnswerAckNtf.cs.meta new file mode 100644 index 00000000..2707169e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AnswerAckNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6fe20faabc8d3a447bdd2d367d9553b6 +timeCreated: 1611403929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionRemindInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionRemindInfo.cs new file mode 100644 index 00000000..d9cde0b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionRemindInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AntiAddictionRemindInfo")] + [Serializable] + public class AntiAddictionRemindInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public AntiAddictionReportType type + { + get + { + return this._type ?? AntiAddictionReportType.ReportTypeSingle; + } + set + { + this._type = new AntiAddictionReportType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new AntiAddictionReportType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "remindmsg", DataFormat = DataFormat.Default)] + public string remindmsg + { + get + { + return this._remindmsg ?? ""; + } + set + { + this._remindmsg = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool remindmsgSpecified + { + get + { + return this._remindmsg != null; + } + set + { + bool flag = value == (this._remindmsg == null); + if (flag) + { + this._remindmsg = (value ? this.remindmsg : null); + } + } + } + + private AntiAddictionReportType? _type; + + private string _remindmsg; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeremindmsg() + { + return this.remindmsgSpecified; + } + + private void Resetremindmsg() + { + this.remindmsgSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionRemindInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionRemindInfo.cs.meta new file mode 100644 index 00000000..4ebaac54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionRemindInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bea7b7977454755428aba5dbe4f9d3e7 +timeCreated: 1611404480 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionReportType.cs b/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionReportType.cs new file mode 100644 index 00000000..e5a5e576 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionReportType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AntiAddictionReportType")] + public enum AntiAddictionReportType + { + [ProtoEnum(Name = "ReportTypeSingle", Value = 1)] + ReportTypeSingle = 1, + [ProtoEnum(Name = "ReportTypeTotal", Value = 2)] + ReportTypeTotal + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionReportType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionReportType.cs.meta new file mode 100644 index 00000000..1bc7bf15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AntiAddictionReportType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd4e747894286ed4785d3ee9b2be6c45 +timeCreated: 1611404682 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs new file mode 100644 index 00000000..3b1290df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaRecord")] + [Serializable] + public class ArenaRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "OptimalRank", DataFormat = DataFormat.TwosComplement)] + public uint OptimalRank + { + get + { + return this._OptimalRank ?? 0u; + } + set + { + this._OptimalRank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OptimalRankSpecified + { + get + { + return this._OptimalRank != null; + } + set + { + bool flag = value == (this._OptimalRank == null); + if (flag) + { + this._OptimalRank = (value ? new uint?(this.OptimalRank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dayupdate", DataFormat = DataFormat.TwosComplement)] + public uint dayupdate + { + get + { + return this._dayupdate ?? 0u; + } + set + { + this._dayupdate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dayupdateSpecified + { + get + { + return this._dayupdate != null; + } + set + { + bool flag = value == (this._dayupdate == null); + if (flag) + { + this._dayupdate = (value ? new uint?(this.dayupdate) : null); + } + } + } + + [ProtoMember(4, Name = "pointreward", DataFormat = DataFormat.TwosComplement)] + public List pointreward + { + get + { + return this._pointreward; + } + } + + [ProtoMember(5, Name = "rankreward", DataFormat = DataFormat.TwosComplement)] + public List rankreward + { + get + { + return this._rankreward; + } + } + + private uint? _OptimalRank; + + private uint? _point; + + private uint? _dayupdate; + + private readonly List _pointreward = new List(); + + private readonly List _rankreward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeOptimalRank() + { + return this.OptimalRankSpecified; + } + + private void ResetOptimalRank() + { + this.OptimalRankSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializedayupdate() + { + return this.dayupdateSpecified; + } + + private void Resetdayupdate() + { + this.dayupdateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs.meta new file mode 100644 index 00000000..9bd55e87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 433ac22cf6bfb4c4db27277d7132c751 +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarHistData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarHistData.cs new file mode 100644 index 00000000..a47407a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarHistData.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaStarHistData")] + [Serializable] + public class ArenaStarHistData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rankOneNum", DataFormat = DataFormat.TwosComplement)] + public uint rankOneNum + { + get + { + return this._rankOneNum ?? 0u; + } + set + { + this._rankOneNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankOneNumSpecified + { + get + { + return this._rankOneNum != null; + } + set + { + bool flag = value == (this._rankOneNum == null); + if (flag) + { + this._rankOneNum = (value ? new uint?(this.rankOneNum) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rankTenNum", DataFormat = DataFormat.TwosComplement)] + public uint rankTenNum + { + get + { + return this._rankTenNum ?? 0u; + } + set + { + this._rankTenNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankTenNumSpecified + { + get + { + return this._rankTenNum != null; + } + set + { + bool flag = value == (this._rankTenNum == null); + if (flag) + { + this._rankTenNum = (value ? new uint?(this.rankTenNum) : null); + } + } + } + + [ProtoMember(3, Name = "rankRecent", DataFormat = DataFormat.Default)] + public List rankRecent + { + get + { + return this._rankRecent; + } + } + + private uint? _rankOneNum; + + private uint? _rankTenNum; + + private readonly List _rankRecent = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializerankOneNum() + { + return this.rankOneNumSpecified; + } + + private void ResetrankOneNum() + { + this.rankOneNumSpecified = false; + } + + private bool ShouldSerializerankTenNum() + { + return this.rankTenNumSpecified; + } + + private void ResetrankTenNum() + { + this.rankTenNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarHistData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarHistData.cs.meta new file mode 100644 index 00000000..09e3076a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarHistData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cd7619d1227f7b4eb1ad45881737c69 +timeCreated: 1611403803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarPara.cs new file mode 100644 index 00000000..bc390c2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarPara.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaStarPara")] + [Serializable] + public class ArenaStarPara : IExtensible + { + [ProtoMember(1, Name = "newdata", DataFormat = DataFormat.TwosComplement)] + public List newdata + { + get + { + return this._newdata; + } + } + + private readonly List _newdata = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarPara.cs.meta new file mode 100644 index 00000000..ebb1fd9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f8ad986831e2e142b2168de20b5e591 +timeCreated: 1611403209 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqArg.cs new file mode 100644 index 00000000..3e8f058d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaStarReqArg")] + [Serializable] + public class ArenaStarReqArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)] + public ArenaStarReqType reqtype + { + get + { + return this._reqtype ?? ArenaStarReqType.ASRT_ROLEDATA; + } + set + { + this._reqtype = new ArenaStarReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqtypeSpecified + { + get + { + return this._reqtype != null; + } + set + { + bool flag = value == (this._reqtype == null); + if (flag) + { + this._reqtype = (value ? new ArenaStarReqType?(this.reqtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "zantype", DataFormat = DataFormat.TwosComplement)] + public ArenaStarType zantype + { + get + { + return this._zantype ?? ArenaStarType.AST_PK; + } + set + { + this._zantype = new ArenaStarType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool zantypeSpecified + { + get + { + return this._zantype != null; + } + set + { + bool flag = value == (this._zantype == null); + if (flag) + { + this._zantype = (value ? new ArenaStarType?(this.zantype) : null); + } + } + } + + private ArenaStarReqType? _reqtype; + + private ulong? _roleid; + + private ArenaStarType? _zantype; + + private IExtension extensionObject; + + private bool ShouldSerializereqtype() + { + return this.reqtypeSpecified; + } + + private void Resetreqtype() + { + this.reqtypeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializezantype() + { + return this.zantypeSpecified; + } + + private void Resetzantype() + { + this.zantypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqArg.cs.meta new file mode 100644 index 00000000..9902413e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cb81339b23d4074ea55e0f94abfac0a +timeCreated: 1611403692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs new file mode 100644 index 00000000..de18fa6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaStarReqRes")] + [Serializable] + public class ArenaStarReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "toproledata", DataFormat = DataFormat.Default)] + public List toproledata + { + get + { + return this._toproledata; + } + } + + [ProtoMember(3, IsRequired = false, Name = "seasonbegintime", DataFormat = DataFormat.TwosComplement)] + public uint seasonbegintime + { + get + { + return this._seasonbegintime ?? 0u; + } + set + { + this._seasonbegintime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool seasonbegintimeSpecified + { + get + { + return this._seasonbegintime != null; + } + set + { + bool flag = value == (this._seasonbegintime == null); + if (flag) + { + this._seasonbegintime = (value ? new uint?(this.seasonbegintime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "seasonendtime", DataFormat = DataFormat.TwosComplement)] + public uint seasonendtime + { + get + { + return this._seasonendtime ?? 0u; + } + set + { + this._seasonendtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool seasonendtimeSpecified + { + get + { + return this._seasonendtime != null; + } + set + { + bool flag = value == (this._seasonendtime == null); + if (flag) + { + this._seasonendtime = (value ? new uint?(this.seasonendtime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "season_num", DataFormat = DataFormat.TwosComplement)] + public uint season_num + { + get + { + return this._season_num ?? 0u; + } + set + { + this._season_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool season_numSpecified + { + get + { + return this._season_num != null; + } + set + { + bool flag = value == (this._season_num == null); + if (flag) + { + this._season_num = (value ? new uint?(this.season_num) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _toproledata = new List(); + + private uint? _seasonbegintime; + + private uint? _seasonendtime; + + private uint? _season_num; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeseasonbegintime() + { + return this.seasonbegintimeSpecified; + } + + private void Resetseasonbegintime() + { + this.seasonbegintimeSpecified = false; + } + + private bool ShouldSerializeseasonendtime() + { + return this.seasonendtimeSpecified; + } + + private void Resetseasonendtime() + { + this.seasonendtimeSpecified = false; + } + + private bool ShouldSerializeseason_num() + { + return this.season_numSpecified; + } + + private void Resetseason_num() + { + this.season_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs.meta new file mode 100644 index 00000000..c6e3bdf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e95ab0d7658d00e4c896c5bc161cc570 +timeCreated: 1611404756 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqType.cs new file mode 100644 index 00000000..20f55058 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaStarReqType")] + public enum ArenaStarReqType + { + [ProtoEnum(Name = "ASRT_ROLEDATA", Value = 1)] + ASRT_ROLEDATA = 1, + [ProtoEnum(Name = "ASRT_DIANZAN", Value = 2)] + ASRT_DIANZAN + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqType.cs.meta new file mode 100644 index 00000000..4701d2b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7949a92f0a711040ada8d4cb9dd86e7 +timeCreated: 1611404888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarTopRoleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarTopRoleData.cs new file mode 100644 index 00000000..93f9d8fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarTopRoleData.cs @@ -0,0 +1,137 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaStarTopRoleData")] + [Serializable] + public class ArenaStarTopRoleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "historydata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ArenaStarHistData historydata + { + get + { + return this._historydata; + } + set + { + this._historydata = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "outlook", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleOutLookBrief outlook + { + get + { + return this._outlook; + } + set + { + this._outlook = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "season", DataFormat = DataFormat.TwosComplement)] + public uint season + { + get + { + return this._season ?? 0u; + } + set + { + this._season = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool seasonSpecified + { + get + { + return this._season != null; + } + set + { + bool flag = value == (this._season == null); + if (flag) + { + this._season = (value ? new uint?(this.season) : null); + } + } + } + + private ArenaStarHistData _historydata = null; + + private RoleOutLookBrief _outlook = null; + + private uint? _rank; + + private uint? _season; + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeseason() + { + return this.seasonSpecified; + } + + private void Resetseason() + { + this.seasonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarTopRoleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarTopRoleData.cs.meta new file mode 100644 index 00000000..29b15176 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarTopRoleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1a6f6476823b4b4d9de0ae7f71d21f4 +timeCreated: 1611404491 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarType.cs new file mode 100644 index 00000000..951fa508 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArenaStarType")] + public enum ArenaStarType + { + [ProtoEnum(Name = "AST_PK", Value = 1)] + AST_PK = 1, + [ProtoEnum(Name = "AST_HEROBATTLE", Value = 2)] + AST_HEROBATTLE, + [ProtoEnum(Name = "AST_WEEKNEST", Value = 3)] + AST_WEEKNEST, + [ProtoEnum(Name = "AST_LEAGUE", Value = 4)] + AST_LEAGUE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarType.cs.meta new file mode 100644 index 00000000..f46ef52d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArenaStarType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21b1e5d8731c8844eac92cf44b25b09c +timeCreated: 1611403415 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityArg.cs new file mode 100644 index 00000000..c5beb012 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArgentaActivityArg")] + [Serializable] + public class ArgentaActivityArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _type; + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityArg.cs.meta new file mode 100644 index 00000000..9971e55d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7c911312ddf77b419699f6a58e4fbb5 +timeCreated: 1611404750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityRes.cs new file mode 100644 index 00000000..6c12ddd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArgentaActivityRes")] + [Serializable] + public class ArgentaActivityRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public uint leftTime + { + get + { + return this._leftTime ?? 0u; + } + set + { + this._leftTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new uint?(this.leftTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, Name = "getRewardIDs", DataFormat = DataFormat.TwosComplement)] + public List getRewardIDs + { + get + { + return this._getRewardIDs; + } + } + + private ErrorCode? _errorcode; + + private uint? _leftTime; + + private uint? _level; + + private readonly List _getRewardIDs = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityRes.cs.meta new file mode 100644 index 00000000..45d9d221 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaActivityRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6cfc3ef3a7cad5046890001a53066bf9 +timeCreated: 1611403900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs new file mode 100644 index 00000000..2b123d56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArgentaData")] + [Serializable] + public class ArgentaData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "argentaStartTime", DataFormat = DataFormat.TwosComplement)] + public uint argentaStartTime + { + get + { + return this._argentaStartTime ?? 0u; + } + set + { + this._argentaStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool argentaStartTimeSpecified + { + get + { + return this._argentaStartTime != null; + } + set + { + bool flag = value == (this._argentaStartTime == null); + if (flag) + { + this._argentaStartTime = (value ? new uint?(this.argentaStartTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateTime + { + get + { + return this._lastUpdateTime ?? 0u; + } + set + { + this._lastUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateTimeSpecified + { + get + { + return this._lastUpdateTime != null; + } + set + { + bool flag = value == (this._lastUpdateTime == null); + if (flag) + { + this._lastUpdateTime = (value ? new uint?(this.lastUpdateTime) : null); + } + } + } + + [ProtoMember(4, Name = "getDailyRewards", DataFormat = DataFormat.TwosComplement)] + public List getDailyRewards + { + get + { + return this._getDailyRewards; + } + } + + private uint? _argentaStartTime; + + private uint? _level; + + private uint? _lastUpdateTime; + + private readonly List _getDailyRewards = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeargentaStartTime() + { + return this.argentaStartTimeSpecified; + } + + private void ResetargentaStartTime() + { + this.argentaStartTimeSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializelastUpdateTime() + { + return this.lastUpdateTimeSpecified; + } + + private void ResetlastUpdateTime() + { + this.lastUpdateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs.meta new file mode 100644 index 00000000..852e5935 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4a0907d760a7fa48ac41c22baad1cff +timeCreated: 1611404855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaPreData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaPreData.cs new file mode 100644 index 00000000..2739fdc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaPreData.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArgentaPreData")] + [Serializable] + public class ArgentaPreData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateTime + { + get + { + return this._lastUpdateTime ?? 0u; + } + set + { + this._lastUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateTimeSpecified + { + get + { + return this._lastUpdateTime != null; + } + set + { + bool flag = value == (this._lastUpdateTime == null); + if (flag) + { + this._lastUpdateTime = (value ? new uint?(this.lastUpdateTime) : null); + } + } + } + + [ProtoMember(2, Name = "activityPoint", DataFormat = DataFormat.TwosComplement)] + public List activityPoint + { + get + { + return this._activityPoint; + } + } + + [ProtoMember(3, Name = "finishNestCount", DataFormat = DataFormat.TwosComplement)] + public List finishNestCount + { + get + { + return this._finishNestCount; + } + } + + private uint? _lastUpdateTime; + + private readonly List _activityPoint = new List(); + + private readonly List _finishNestCount = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializelastUpdateTime() + { + return this.lastUpdateTimeSpecified; + } + + private void ResetlastUpdateTime() + { + this.lastUpdateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArgentaPreData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaPreData.cs.meta new file mode 100644 index 00000000..4874bee1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArgentaPreData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3290b0fb4dc2c084cb4fac5b47307f46 +timeCreated: 1611403549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeArg.cs new file mode 100644 index 00000000..3dfe0841 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeArg.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArtifactComposeArg")] + [Serializable] + public class ArtifactComposeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public ArtifactComposeType type + { + get + { + return this._type ?? ArtifactComposeType.ArtifactCompose_Single; + } + set + { + this._type = new ArtifactComposeType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new ArtifactComposeType?(this.type) : null); + } + } + } + + [ProtoMember(2, Name = "uids", DataFormat = DataFormat.TwosComplement)] + public List uids + { + get + { + return this._uids; + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, Name = "qualitys", DataFormat = DataFormat.TwosComplement)] + public List qualitys + { + get + { + return this._qualitys; + } + } + + private ArtifactComposeType? _type; + + private readonly List _uids = new List(); + + private uint? _level; + + private readonly List _qualitys = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeArg.cs.meta new file mode 100644 index 00000000..761b2cf6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4c6c97d668cfe84ab82c7944f799539 +timeCreated: 1611404503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeRes.cs new file mode 100644 index 00000000..41f2a9c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArtifactComposeRes")] + [Serializable] + public class ArtifactComposeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "newuid", DataFormat = DataFormat.TwosComplement)] + public ulong newuid + { + get + { + return this._newuid ?? 0UL; + } + set + { + this._newuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool newuidSpecified + { + get + { + return this._newuid != null; + } + set + { + bool flag = value == (this._newuid == null); + if (flag) + { + this._newuid = (value ? new ulong?(this.newuid) : null); + } + } + } + + [ProtoMember(3, Name = "newuids", DataFormat = DataFormat.TwosComplement)] + public List newuids + { + get + { + return this._newuids; + } + } + + private ErrorCode? _errorcode; + + private ulong? _newuid; + + private readonly List _newuids = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializenewuid() + { + return this.newuidSpecified; + } + + private void Resetnewuid() + { + this.newuidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeRes.cs.meta new file mode 100644 index 00000000..011c2141 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec1a723ad050f064186593f73510ac9c +timeCreated: 1611404786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeType.cs new file mode 100644 index 00000000..1ddb10a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArtifactComposeType")] + public enum ArtifactComposeType + { + [ProtoEnum(Name = "ArtifactCompose_Single", Value = 1)] + ArtifactCompose_Single = 1, + [ProtoEnum(Name = "ArtifactCompose_Multi", Value = 2)] + ArtifactCompose_Multi + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeType.cs.meta new file mode 100644 index 00000000..77d7a4aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactComposeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 453a6c63f71e8f9418ae4f8df8d71561 +timeCreated: 1611403647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpArg.cs new file mode 100644 index 00000000..562fcd8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArtifactDeityStoveOpArg")] + [Serializable] + public class ArtifactDeityStoveOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public ArtifactDeityStoveOpType type + { + get + { + return this._type ?? ArtifactDeityStoveOpType.ArtifactDeityStove_Recast; + } + set + { + this._type = new ArtifactDeityStoveOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new ArtifactDeityStoveOpType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid1", DataFormat = DataFormat.TwosComplement)] + public ulong uid1 + { + get + { + return this._uid1 ?? 0UL; + } + set + { + this._uid1 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uid1Specified + { + get + { + return this._uid1 != null; + } + set + { + bool flag = value == (this._uid1 == null); + if (flag) + { + this._uid1 = (value ? new ulong?(this.uid1) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "uid2", DataFormat = DataFormat.TwosComplement)] + public ulong uid2 + { + get + { + return this._uid2 ?? 0UL; + } + set + { + this._uid2 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uid2Specified + { + get + { + return this._uid2 != null; + } + set + { + bool flag = value == (this._uid2 == null); + if (flag) + { + this._uid2 = (value ? new ulong?(this.uid2) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isUsedStone", DataFormat = DataFormat.Default)] + public bool isUsedStone + { + get + { + return this._isUsedStone ?? false; + } + set + { + this._isUsedStone = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isUsedStoneSpecified + { + get + { + return this._isUsedStone != null; + } + set + { + bool flag = value == (this._isUsedStone == null); + if (flag) + { + this._isUsedStone = (value ? new bool?(this.isUsedStone) : null); + } + } + } + + private ArtifactDeityStoveOpType? _type; + + private ulong? _uid1; + + private ulong? _uid2; + + private bool? _isUsedStone; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeuid1() + { + return this.uid1Specified; + } + + private void Resetuid1() + { + this.uid1Specified = false; + } + + private bool ShouldSerializeuid2() + { + return this.uid2Specified; + } + + private void Resetuid2() + { + this.uid2Specified = false; + } + + private bool ShouldSerializeisUsedStone() + { + return this.isUsedStoneSpecified; + } + + private void ResetisUsedStone() + { + this.isUsedStoneSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpArg.cs.meta new file mode 100644 index 00000000..5820d0fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f2d0a8cfd4800f44ababa33c829eb35 +timeCreated: 1611403207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpRes.cs new file mode 100644 index 00000000..65c715c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArtifactDeityStoveOpRes")] + [Serializable] + public class ArtifactDeityStoveOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpRes.cs.meta new file mode 100644 index 00000000..65b9edf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 956d44e8964d2b845ad21ed716b72759 +timeCreated: 1611404181 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpType.cs new file mode 100644 index 00000000..2a1dfc50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ArtifactDeityStoveOpType")] + public enum ArtifactDeityStoveOpType + { + [ProtoEnum(Name = "ArtifactDeityStove_Recast", Value = 1)] + ArtifactDeityStove_Recast = 1, + [ProtoEnum(Name = "ArtifactDeityStove_Fuse", Value = 2)] + ArtifactDeityStove_Fuse, + [ProtoEnum(Name = "ArtifactDeityStove_Inscription", Value = 3)] + ArtifactDeityStove_Inscription, + [ProtoEnum(Name = "ArtifactDeityStove_Refine", Value = 4)] + ArtifactDeityStove_Refine, + [ProtoEnum(Name = "ArtifactDeityStove_RefineRetain", Value = 5)] + ArtifactDeityStove_RefineRetain, + [ProtoEnum(Name = "ArtifactDeityStove_RefineReplace", Value = 6)] + ArtifactDeityStove_RefineReplace + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpType.cs.meta new file mode 100644 index 00000000..4ffd4f84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ArtifactDeityStoveOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ecc4f4cef7e67940ab3b96313058d6e +timeCreated: 1611403810 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusArg.cs new file mode 100644 index 00000000..e98b779a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskForCheckInBonusArg")] + [Serializable] + public class AskForCheckInBonusArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusArg.cs.meta new file mode 100644 index 00000000..b2936a68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0feea1c8a6ccbad41815197470c843da +timeCreated: 1611403215 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusRes.cs new file mode 100644 index 00000000..8ea001e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskForCheckInBonusRes")] + [Serializable] + public class AskForCheckInBonusRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusRes.cs.meta new file mode 100644 index 00000000..d66632ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskForCheckInBonusRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66062a7842612bc4a95521fd572c648c +timeCreated: 1611403852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoArg.cs new file mode 100644 index 00000000..d21dbc5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildArenaInfoArg")] + [Serializable] + public class AskGuildArenaInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoArg.cs.meta new file mode 100644 index 00000000..75b7023b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6796923485fcaf40a0935a0971cd4a4 +timeCreated: 1611404288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs new file mode 100644 index 00000000..b92d607b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildArenaInfoReq")] + [Serializable] + public class AskGuildArenaInfoReq : IExtensible + { + [ProtoMember(1, Name = "warData", DataFormat = DataFormat.Default)] + public List warData + { + get + { + return this._warData; + } + } + + [ProtoMember(2, Name = "allguildInfo", DataFormat = DataFormat.Default)] + public List allguildInfo + { + get + { + return this._allguildInfo; + } + } + + [ProtoMember(3, IsRequired = false, Name = "timeState", DataFormat = DataFormat.TwosComplement)] + public GuildArenaState timeState + { + get + { + return this._timeState ?? GuildArenaState.GUILD_ARENA_NOT_BEGIN; + } + set + { + this._timeState = new GuildArenaState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeStateSpecified + { + get + { + return this._timeState != null; + } + set + { + bool flag = value == (this._timeState == null); + if (flag) + { + this._timeState = (value ? new GuildArenaState?(this.timeState) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _warData = new List(); + + private readonly List _allguildInfo = new List(); + + private GuildArenaState? _timeState; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializetimeState() + { + return this.timeStateSpecified; + } + + private void ResettimeState() + { + this.timeStateSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs.meta new file mode 100644 index 00000000..9d9ab486 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8767f0e171d8a794f992c29014643d97 +timeCreated: 1611404078 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs new file mode 100644 index 00000000..0095e315 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildArenaTeamInfoArg")] + [Serializable] + public class AskGuildArenaTeamInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs.meta new file mode 100644 index 00000000..0545468f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 470f815d7076d524d9da38f20d88617a +timeCreated: 1611403652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs new file mode 100644 index 00000000..79ca7bd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildArenaTeamInfoRes")] + [Serializable] + public class AskGuildArenaTeamInfoRes : IExtensible + { + [ProtoMember(1, Name = "fightUnit", DataFormat = DataFormat.Default)] + public List fightUnit + { + get + { + return this._fightUnit; + } + } + + [ProtoMember(2, Name = "guildMember", DataFormat = DataFormat.Default)] + public List guildMember + { + get + { + return this._guildMember; + } + } + + [ProtoMember(3, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _fightUnit = new List(); + + private readonly List _guildMember = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs.meta new file mode 100644 index 00000000..ccbb59b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildArenaTeamInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf816d7beb29cab45b2c43f5c2337802 +timeCreated: 1611404483 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoArg.cs new file mode 100644 index 00000000..bab6227e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildBossInfoArg")] + [Serializable] + public class AskGuildBossInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoArg.cs.meta new file mode 100644 index 00000000..d4661f65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 399d2fe5ced51bf438223b2fa5e51848 +timeCreated: 1611403593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs new file mode 100644 index 00000000..a3f380a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildBossInfoRes")] + [Serializable] + public class AskGuildBossInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "bossId", DataFormat = DataFormat.TwosComplement)] + public uint bossId + { + get + { + return this._bossId ?? 0u; + } + set + { + this._bossId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bossIdSpecified + { + get + { + return this._bossId != null; + } + set + { + bool flag = value == (this._bossId == null); + if (flag) + { + this._bossId = (value ? new uint?(this.bossId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "needKillBossId", DataFormat = DataFormat.TwosComplement)] + public uint needKillBossId + { + get + { + return this._needKillBossId ?? 0u; + } + set + { + this._needKillBossId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needKillBossIdSpecified + { + get + { + return this._needKillBossId != null; + } + set + { + bool flag = value == (this._needKillBossId == null); + if (flag) + { + this._needKillBossId = (value ? new uint?(this.needKillBossId) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isFirstKill", DataFormat = DataFormat.Default)] + public bool isFirstKill + { + get + { + return this._isFirstKill ?? false; + } + set + { + this._isFirstKill = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFirstKillSpecified + { + get + { + return this._isFirstKill != null; + } + set + { + bool flag = value == (this._isFirstKill == null); + if (flag) + { + this._isFirstKill = (value ? new bool?(this.isFirstKill) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isLeader", DataFormat = DataFormat.Default)] + public bool isLeader + { + get + { + return this._isLeader ?? false; + } + set + { + this._isLeader = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isLeaderSpecified + { + get + { + return this._isLeader != null; + } + set + { + bool flag = value == (this._isLeader == null); + if (flag) + { + this._isLeader = (value ? new bool?(this.isLeader) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "needguildlvl", DataFormat = DataFormat.TwosComplement)] + public uint needguildlvl + { + get + { + return this._needguildlvl ?? 0u; + } + set + { + this._needguildlvl = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needguildlvlSpecified + { + get + { + return this._needguildlvl != null; + } + set + { + bool flag = value == (this._needguildlvl == null); + if (flag) + { + this._needguildlvl = (value ? new uint?(this.needguildlvl) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _bossId; + + private uint? _needKillBossId; + + private bool? _isFirstKill; + + private bool? _isLeader; + + private uint? _needguildlvl; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializebossId() + { + return this.bossIdSpecified; + } + + private void ResetbossId() + { + this.bossIdSpecified = false; + } + + private bool ShouldSerializeneedKillBossId() + { + return this.needKillBossIdSpecified; + } + + private void ResetneedKillBossId() + { + this.needKillBossIdSpecified = false; + } + + private bool ShouldSerializeisFirstKill() + { + return this.isFirstKillSpecified; + } + + private void ResetisFirstKill() + { + this.isFirstKillSpecified = false; + } + + private bool ShouldSerializeisLeader() + { + return this.isLeaderSpecified; + } + + private void ResetisLeader() + { + this.isLeaderSpecified = false; + } + + private bool ShouldSerializeneedguildlvl() + { + return this.needguildlvlSpecified; + } + + private void Resetneedguildlvl() + { + this.needguildlvlSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs.meta new file mode 100644 index 00000000..e39d33b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildBossInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d791e18235a6918459e236b6e40446a1 +timeCreated: 1611404636 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoArg.cs new file mode 100644 index 00000000..7e6c39e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildSkillInfoArg")] + [Serializable] + public class AskGuildSkillInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoArg.cs.meta new file mode 100644 index 00000000..201bd34e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91343674c2fcd2a4fb3ed38f57f7f4b4 +timeCreated: 1611404142 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoReq.cs new file mode 100644 index 00000000..7755e3f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoReq.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildSkillInfoReq")] + [Serializable] + public class AskGuildSkillInfoReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "SkillLel", DataFormat = DataFormat.Default)] + public List SkillLel + { + get + { + return this._SkillLel; + } + } + + [ProtoMember(3, IsRequired = false, Name = "LastGuildExp", DataFormat = DataFormat.TwosComplement)] + public int LastGuildExp + { + get + { + return this._LastGuildExp ?? 0; + } + set + { + this._LastGuildExp = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LastGuildExpSpecified + { + get + { + return this._LastGuildExp != null; + } + set + { + bool flag = value == (this._LastGuildExp == null); + if (flag) + { + this._LastGuildExp = (value ? new int?(this.LastGuildExp) : null); + } + } + } + + [ProtoMember(4, Name = "roleSkills", DataFormat = DataFormat.Default)] + public List roleSkills + { + get + { + return this._roleSkills; + } + } + + private ErrorCode? _errorcode; + + private readonly List _SkillLel = new List(); + + private int? _LastGuildExp; + + private readonly List _roleSkills = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeLastGuildExp() + { + return this.LastGuildExpSpecified; + } + + private void ResetLastGuildExp() + { + this.LastGuildExpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoReq.cs.meta new file mode 100644 index 00000000..bc234279 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildSkillInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e474b1792f9496340bdfcb3684ce36c8 +timeCreated: 1611404738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoArg.cs new file mode 100644 index 00000000..e4484dfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildWageInfoArg")] + [Serializable] + public class AskGuildWageInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoArg.cs.meta new file mode 100644 index 00000000..51d6496d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21307baa714f2ee4f926704c03c2399b +timeCreated: 1611403412 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoRes.cs new file mode 100644 index 00000000..71855243 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoRes.cs @@ -0,0 +1,472 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AskGuildWageInfoRes")] + [Serializable] + public class AskGuildWageInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "activity", DataFormat = DataFormat.TwosComplement)] + public uint activity + { + get + { + return this._activity ?? 0u; + } + set + { + this._activity = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activitySpecified + { + get + { + return this._activity != null; + } + set + { + bool flag = value == (this._activity == null); + if (flag) + { + this._activity = (value ? new uint?(this.activity) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolenum", DataFormat = DataFormat.TwosComplement)] + public uint rolenum + { + get + { + return this._rolenum ?? 0u; + } + set + { + this._rolenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenumSpecified + { + get + { + return this._rolenum != null; + } + set + { + bool flag = value == (this._rolenum == null); + if (flag) + { + this._rolenum = (value ? new uint?(this.rolenum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "prestige", DataFormat = DataFormat.TwosComplement)] + public uint prestige + { + get + { + return this._prestige ?? 0u; + } + set + { + this._prestige = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool prestigeSpecified + { + get + { + return this._prestige != null; + } + set + { + bool flag = value == (this._prestige == null); + if (flag) + { + this._prestige = (value ? new uint?(this.prestige) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "lastScore", DataFormat = DataFormat.TwosComplement)] + public uint lastScore + { + get + { + return this._lastScore ?? 0u; + } + set + { + this._lastScore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastScoreSpecified + { + get + { + return this._lastScore != null; + } + set + { + bool flag = value == (this._lastScore == null); + if (flag) + { + this._lastScore = (value ? new uint?(this.lastScore) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "rewardstate", DataFormat = DataFormat.TwosComplement)] + public WageRewardState rewardstate + { + get + { + return this._rewardstate ?? WageRewardState.cannot; + } + set + { + this._rewardstate = new WageRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardstateSpecified + { + get + { + return this._rewardstate != null; + } + set + { + bool flag = value == (this._rewardstate == null); + if (flag) + { + this._rewardstate = (value ? new WageRewardState?(this.rewardstate) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "wagelvl", DataFormat = DataFormat.TwosComplement)] + public uint wagelvl + { + get + { + return this._wagelvl ?? 0u; + } + set + { + this._wagelvl = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wagelvlSpecified + { + get + { + return this._wagelvl != null; + } + set + { + bool flag = value == (this._wagelvl == null); + if (flag) + { + this._wagelvl = (value ? new uint?(this.wagelvl) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "guildlvl", DataFormat = DataFormat.TwosComplement)] + public uint guildlvl + { + get + { + return this._guildlvl ?? 0u; + } + set + { + this._guildlvl = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildlvlSpecified + { + get + { + return this._guildlvl != null; + } + set + { + bool flag = value == (this._guildlvl == null); + if (flag) + { + this._guildlvl = (value ? new uint?(this.guildlvl) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "lastposition", DataFormat = DataFormat.TwosComplement)] + public uint lastposition + { + get + { + return this._lastposition ?? 0u; + } + set + { + this._lastposition = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastpositionSpecified + { + get + { + return this._lastposition != null; + } + set + { + bool flag = value == (this._lastposition == null); + if (flag) + { + this._lastposition = (value ? new uint?(this.lastposition) : null); + } + } + } + + [ProtoMember(11, Name = "name", DataFormat = DataFormat.Default)] + public List name + { + get + { + return this._name; + } + } + + [ProtoMember(12, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + private uint? _activity; + + private uint? _rolenum; + + private uint? _prestige; + + private uint? _exp; + + private uint? _lastScore; + + private WageRewardState? _rewardstate; + + private uint? _wagelvl; + + private uint? _guildlvl; + + private ErrorCode? _errorcode; + + private uint? _lastposition; + + private readonly List _name = new List(); + + private readonly List _roles = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeactivity() + { + return this.activitySpecified; + } + + private void Resetactivity() + { + this.activitySpecified = false; + } + + private bool ShouldSerializerolenum() + { + return this.rolenumSpecified; + } + + private void Resetrolenum() + { + this.rolenumSpecified = false; + } + + private bool ShouldSerializeprestige() + { + return this.prestigeSpecified; + } + + private void Resetprestige() + { + this.prestigeSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializelastScore() + { + return this.lastScoreSpecified; + } + + private void ResetlastScore() + { + this.lastScoreSpecified = false; + } + + private bool ShouldSerializerewardstate() + { + return this.rewardstateSpecified; + } + + private void Resetrewardstate() + { + this.rewardstateSpecified = false; + } + + private bool ShouldSerializewagelvl() + { + return this.wagelvlSpecified; + } + + private void Resetwagelvl() + { + this.wagelvlSpecified = false; + } + + private bool ShouldSerializeguildlvl() + { + return this.guildlvlSpecified; + } + + private void Resetguildlvl() + { + this.guildlvlSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializelastposition() + { + return this.lastpositionSpecified; + } + + private void Resetlastposition() + { + this.lastpositionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoRes.cs.meta new file mode 100644 index 00000000..f0d9e9b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AskGuildWageInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df491b58d5fbd1e4fa5814bfa65cd702 +timeCreated: 1611404692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarArg.cs new file mode 100644 index 00000000..b0c60e81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AtlasUpStarArg")] + [Serializable] + public class AtlasUpStarArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public uint groupid + { + get + { + return this._groupid ?? 0u; + } + set + { + this._groupid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupidSpecified + { + get + { + return this._groupid != null; + } + set + { + bool flag = value == (this._groupid == null); + if (flag) + { + this._groupid = (value ? new uint?(this.groupid) : null); + } + } + } + + private uint? _groupid; + + private IExtension extensionObject; + + private bool ShouldSerializegroupid() + { + return this.groupidSpecified; + } + + private void Resetgroupid() + { + this.groupidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarArg.cs.meta new file mode 100644 index 00000000..7332627b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8cc2e84b58d04a448f55c6d69c06ede +timeCreated: 1611404406 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarRes.cs new file mode 100644 index 00000000..0b50b9f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AtlasUpStarRes")] + [Serializable] + public class AtlasUpStarRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public uint groupid + { + get + { + return this._groupid ?? 0u; + } + set + { + this._groupid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupidSpecified + { + get + { + return this._groupid != null; + } + set + { + bool flag = value == (this._groupid == null); + if (flag) + { + this._groupid = (value ? new uint?(this.groupid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "star", DataFormat = DataFormat.TwosComplement)] + public uint star + { + get + { + return this._star ?? 0u; + } + set + { + this._star = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool starSpecified + { + get + { + return this._star != null; + } + set + { + bool flag = value == (this._star == null); + if (flag) + { + this._star = (value ? new uint?(this.star) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _groupid; + + private uint? _star; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializegroupid() + { + return this.groupidSpecified; + } + + private void Resetgroupid() + { + this.groupidSpecified = false; + } + + private bool ShouldSerializestar() + { + return this.starSpecified; + } + + private void Resetstar() + { + this.starSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarRes.cs.meta new file mode 100644 index 00000000..b354855e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AtlasUpStarRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62e4f891d887cfd418c163192d5f6dcd +timeCreated: 1611403842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Attribute.cs b/Client/Assets/Scripts/XMainClient/KKSG/Attribute.cs new file mode 100644 index 00000000..a2150d21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Attribute.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Attribute")] + [Serializable] + public class Attribute : IExtensible + { + [ProtoMember(1, Name = "basicAttribute", DataFormat = DataFormat.TwosComplement)] + public List basicAttribute + { + get + { + return this._basicAttribute; + } + } + + [ProtoMember(2, Name = "percentAttribute", DataFormat = DataFormat.TwosComplement)] + public List percentAttribute + { + get + { + return this._percentAttribute; + } + } + + [ProtoMember(3, Name = "attrID", DataFormat = DataFormat.TwosComplement)] + public List attrID + { + get + { + return this._attrID; + } + } + + private readonly List _basicAttribute = new List(); + + private readonly List _percentAttribute = new List(); + + private readonly List _attrID = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Attribute.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Attribute.cs.meta new file mode 100644 index 00000000..9684f301 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Attribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe9587965e37ca54693f13757c220391 +timeCreated: 1611404942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AttributeInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/AttributeInfo.cs new file mode 100644 index 00000000..d029f1ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AttributeInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AttributeInfo")] + [Serializable] + public class AttributeInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)] + public uint value + { + get + { + return this._value ?? 0u; + } + set + { + this._value = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool valueSpecified + { + get + { + return this._value != null; + } + set + { + bool flag = value == (this._value == null); + if (flag) + { + this._value = (value ? new uint?(this.value) : null); + } + } + } + + private uint? _id; + + private uint? _value; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializevalue() + { + return this.valueSpecified; + } + + private void Resetvalue() + { + this.valueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AttributeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AttributeInfo.cs.meta new file mode 100644 index 00000000..2be0e699 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AttributeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2d03ec42eda98f41995fd8a15ca9b85 +timeCreated: 1611404496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctDBDataOperate.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctDBDataOperate.cs new file mode 100644 index 00000000..c861d8db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctDBDataOperate.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctDBDataOperate")] + public enum AuctDBDataOperate + { + [ProtoEnum(Name = "AUCTDBDATA_INSERT", Value = 1)] + AUCTDBDATA_INSERT = 1, + [ProtoEnum(Name = "AUCTDBDATA_UPDATE", Value = 2)] + AUCTDBDATA_UPDATE, + [ProtoEnum(Name = "AUCTDBDATA_DELETE", Value = 3)] + AUCTDBDATA_DELETE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctDBDataOperate.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctDBDataOperate.cs.meta new file mode 100644 index 00000000..5acb1694 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctDBDataOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1e23f6872f1c474dbedc32e65ddf54d +timeCreated: 1611404492 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctItemBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctItemBrief.cs new file mode 100644 index 00000000..856bb1e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctItemBrief.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctItemBrief")] + [Serializable] + public class AuctItemBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _itemid; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctItemBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctItemBrief.cs.meta new file mode 100644 index 00000000..cd375da6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctItemBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 555e965d0e970fd42930b9ef88dd23b7 +timeCreated: 1611403737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs new file mode 100644 index 00000000..36ed85d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctOverlapData")] + [Serializable] + public class AuctOverlapData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "overlapid", DataFormat = DataFormat.TwosComplement)] + public ulong overlapid + { + get + { + return this._overlapid ?? 0UL; + } + set + { + this._overlapid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool overlapidSpecified + { + get + { + return this._overlapid != null; + } + set + { + bool flag = value == (this._overlapid == null); + if (flag) + { + this._overlapid = (value ? new ulong?(this.overlapid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "perprice", DataFormat = DataFormat.TwosComplement)] + public uint perprice + { + get + { + return this._perprice ?? 0u; + } + set + { + this._perprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool perpriceSpecified + { + get + { + return this._perprice != null; + } + set + { + bool flag = value == (this._perprice == null); + if (flag) + { + this._perprice = (value ? new uint?(this.perprice) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemdata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Item itemdata + { + get + { + return this._itemdata; + } + set + { + this._itemdata = value; + } + } + + private ulong? _overlapid; + + private uint? _perprice; + + private Item _itemdata = null; + + private IExtension extensionObject; + + private bool ShouldSerializeoverlapid() + { + return this.overlapidSpecified; + } + + private void Resetoverlapid() + { + this.overlapidSpecified = false; + } + + private bool ShouldSerializeperprice() + { + return this.perpriceSpecified; + } + + private void Resetperprice() + { + this.perpriceSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs.meta new file mode 100644 index 00000000..fc5dba6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctOverlapData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d02d0ee38dca1ca4d9029da1d2d7db4a +timeCreated: 1611404585 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionAccountType.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAccountType.cs new file mode 100644 index 00000000..a631e79f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAccountType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctionAccountType")] + public enum AuctionAccountType + { + [ProtoEnum(Name = "AUCTACCOUNT_SALE_FAIL", Value = 1)] + AUCTACCOUNT_SALE_FAIL = 1, + [ProtoEnum(Name = "AUCTACCOUNT_SALE_SUCCESS", Value = 2)] + AUCTACCOUNT_SALE_SUCCESS, + [ProtoEnum(Name = "AUCTACCOUNT_BUY_FAIL", Value = 3)] + AUCTACCOUNT_BUY_FAIL, + [ProtoEnum(Name = "AUCTACCOUNT_BUY_SUCCESS", Value = 4)] + AUCTACCOUNT_BUY_SUCCESS + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionAccountType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAccountType.cs.meta new file mode 100644 index 00000000..bfa717b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAccountType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06608ecec0b30d34fa08add2b4e20c1c +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqArg.cs new file mode 100644 index 00000000..20234dec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqArg.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctionAllReqArg")] + [Serializable] + public class AuctionAllReqArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)] + public AuctionAllReqType reqtype + { + get + { + return this._reqtype ?? AuctionAllReqType.ART_REQSALE; + } + set + { + this._reqtype = new AuctionAllReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqtypeSpecified + { + get + { + return this._reqtype != null; + } + set + { + bool flag = value == (this._reqtype == null); + if (flag) + { + this._reqtype = (value ? new AuctionAllReqType?(this.reqtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemuniqueid", DataFormat = DataFormat.TwosComplement)] + public ulong itemuniqueid + { + get + { + return this._itemuniqueid ?? 0UL; + } + set + { + this._itemuniqueid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemuniqueidSpecified + { + get + { + return this._itemuniqueid != null; + } + set + { + bool flag = value == (this._itemuniqueid == null); + if (flag) + { + this._itemuniqueid = (value ? new ulong?(this.itemuniqueid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "perprice", DataFormat = DataFormat.TwosComplement)] + public uint perprice + { + get + { + return this._perprice ?? 0u; + } + set + { + this._perprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool perpriceSpecified + { + get + { + return this._perprice != null; + } + set + { + bool flag = value == (this._perprice == null); + if (flag) + { + this._perprice = (value ? new uint?(this.perprice) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "overlapid", DataFormat = DataFormat.TwosComplement)] + public ulong overlapid + { + get + { + return this._overlapid ?? 0UL; + } + set + { + this._overlapid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool overlapidSpecified + { + get + { + return this._overlapid != null; + } + set + { + bool flag = value == (this._overlapid == null); + if (flag) + { + this._overlapid = (value ? new ulong?(this.overlapid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "auctuid", DataFormat = DataFormat.TwosComplement)] + public ulong auctuid + { + get + { + return this._auctuid ?? 0UL; + } + set + { + this._auctuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool auctuidSpecified + { + get + { + return this._auctuid != null; + } + set + { + bool flag = value == (this._auctuid == null); + if (flag) + { + this._auctuid = (value ? new ulong?(this.auctuid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "istreasure", DataFormat = DataFormat.Default)] + public bool istreasure + { + get + { + return this._istreasure ?? false; + } + set + { + this._istreasure = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool istreasureSpecified + { + get + { + return this._istreasure != null; + } + set + { + bool flag = value == (this._istreasure == null); + if (flag) + { + this._istreasure = (value ? new bool?(this.istreasure) : null); + } + } + } + + private AuctionAllReqType? _reqtype; + + private uint? _itemid; + + private ulong? _itemuniqueid; + + private uint? _itemcount; + + private uint? _perprice; + + private ulong? _overlapid; + + private ulong? _auctuid; + + private bool? _istreasure; + + private IExtension extensionObject; + + private bool ShouldSerializereqtype() + { + return this.reqtypeSpecified; + } + + private void Resetreqtype() + { + this.reqtypeSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemuniqueid() + { + return this.itemuniqueidSpecified; + } + + private void Resetitemuniqueid() + { + this.itemuniqueidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + private bool ShouldSerializeperprice() + { + return this.perpriceSpecified; + } + + private void Resetperprice() + { + this.perpriceSpecified = false; + } + + private bool ShouldSerializeoverlapid() + { + return this.overlapidSpecified; + } + + private void Resetoverlapid() + { + this.overlapidSpecified = false; + } + + private bool ShouldSerializeauctuid() + { + return this.auctuidSpecified; + } + + private void Resetauctuid() + { + this.auctuidSpecified = false; + } + + private bool ShouldSerializeistreasure() + { + return this.istreasureSpecified; + } + + private void Resetistreasure() + { + this.istreasureSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqArg.cs.meta new file mode 100644 index 00000000..bf36cbf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be3c8028f8d8c9640a5c5cb2007ffa87 +timeCreated: 1611404460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqRes.cs new file mode 100644 index 00000000..f26fa4df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqRes.cs @@ -0,0 +1,354 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctionAllReqRes")] + [Serializable] + public class AuctionAllReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(2, Name = "itembrief", DataFormat = DataFormat.Default)] + public List itembrief + { + get + { + return this._itembrief; + } + } + + [ProtoMember(3, Name = "overlapdata", DataFormat = DataFormat.Default)] + public List overlapdata + { + get + { + return this._overlapdata; + } + } + + [ProtoMember(4, Name = "saledata", DataFormat = DataFormat.Default)] + public List saledata + { + get + { + return this._saledata; + } + } + + [ProtoMember(5, IsRequired = false, Name = "autorefreshlefttime", DataFormat = DataFormat.TwosComplement)] + public uint autorefreshlefttime + { + get + { + return this._autorefreshlefttime ?? 0u; + } + set + { + this._autorefreshlefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool autorefreshlefttimeSpecified + { + get + { + return this._autorefreshlefttime != null; + } + set + { + bool flag = value == (this._autorefreshlefttime == null); + if (flag) + { + this._autorefreshlefttime = (value ? new uint?(this.autorefreshlefttime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "tradeprice", DataFormat = DataFormat.TwosComplement)] + public uint tradeprice + { + get + { + return this._tradeprice ?? 0u; + } + set + { + this._tradeprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tradepriceSpecified + { + get + { + return this._tradeprice != null; + } + set + { + bool flag = value == (this._tradeprice == null); + if (flag) + { + this._tradeprice = (value ? new uint?(this.tradeprice) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "leftfreerefreshcount", DataFormat = DataFormat.TwosComplement)] + public uint leftfreerefreshcount + { + get + { + return this._leftfreerefreshcount ?? 0u; + } + set + { + this._leftfreerefreshcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftfreerefreshcountSpecified + { + get + { + return this._leftfreerefreshcount != null; + } + set + { + bool flag = value == (this._leftfreerefreshcount == null); + if (flag) + { + this._leftfreerefreshcount = (value ? new uint?(this.leftfreerefreshcount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "itemleftcount", DataFormat = DataFormat.TwosComplement)] + public uint itemleftcount + { + get + { + return this._itemleftcount ?? 0u; + } + set + { + this._itemleftcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemleftcountSpecified + { + get + { + return this._itemleftcount != null; + } + set + { + bool flag = value == (this._itemleftcount == null); + if (flag) + { + this._itemleftcount = (value ? new uint?(this.itemleftcount) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "freerefreshlefttime", DataFormat = DataFormat.TwosComplement)] + public uint freerefreshlefttime + { + get + { + return this._freerefreshlefttime ?? 0u; + } + set + { + this._freerefreshlefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freerefreshlefttimeSpecified + { + get + { + return this._freerefreshlefttime != null; + } + set + { + bool flag = value == (this._freerefreshlefttime == null); + if (flag) + { + this._freerefreshlefttime = (value ? new uint?(this.freerefreshlefttime) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "need_copyitem", DataFormat = DataFormat.Default)] + public bool need_copyitem + { + get + { + return this._need_copyitem ?? false; + } + set + { + this._need_copyitem = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool need_copyitemSpecified + { + get + { + return this._need_copyitem != null; + } + set + { + bool flag = value == (this._need_copyitem == null); + if (flag) + { + this._need_copyitem = (value ? new bool?(this.need_copyitem) : null); + } + } + } + + private ErrorCode? _errcode; + + private readonly List _itembrief = new List(); + + private readonly List _overlapdata = new List(); + + private readonly List _saledata = new List(); + + private uint? _autorefreshlefttime; + + private uint? _tradeprice; + + private uint? _leftfreerefreshcount; + + private uint? _itemleftcount; + + private uint? _freerefreshlefttime; + + private bool? _need_copyitem; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + private bool ShouldSerializeautorefreshlefttime() + { + return this.autorefreshlefttimeSpecified; + } + + private void Resetautorefreshlefttime() + { + this.autorefreshlefttimeSpecified = false; + } + + private bool ShouldSerializetradeprice() + { + return this.tradepriceSpecified; + } + + private void Resettradeprice() + { + this.tradepriceSpecified = false; + } + + private bool ShouldSerializeleftfreerefreshcount() + { + return this.leftfreerefreshcountSpecified; + } + + private void Resetleftfreerefreshcount() + { + this.leftfreerefreshcountSpecified = false; + } + + private bool ShouldSerializeitemleftcount() + { + return this.itemleftcountSpecified; + } + + private void Resetitemleftcount() + { + this.itemleftcountSpecified = false; + } + + private bool ShouldSerializefreerefreshlefttime() + { + return this.freerefreshlefttimeSpecified; + } + + private void Resetfreerefreshlefttime() + { + this.freerefreshlefttimeSpecified = false; + } + + private bool ShouldSerializeneed_copyitem() + { + return this.need_copyitemSpecified; + } + + private void Resetneed_copyitem() + { + this.need_copyitemSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqRes.cs.meta new file mode 100644 index 00000000..7ed9d7db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9701b6ac3f843045965552669251be4 +timeCreated: 1611404538 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqType.cs new file mode 100644 index 00000000..c9e0911b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqType.cs @@ -0,0 +1,32 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctionAllReqType")] + public enum AuctionAllReqType + { + [ProtoEnum(Name = "ART_REQSALE", Value = 1)] + ART_REQSALE = 1, + [ProtoEnum(Name = "ART_QUITSALE", Value = 2)] + ART_QUITSALE, + [ProtoEnum(Name = "ART_RESALE", Value = 3)] + ART_RESALE, + [ProtoEnum(Name = "ART_ALLITEMBRIEF", Value = 4)] + ART_ALLITEMBRIEF, + [ProtoEnum(Name = "ART_ITEMDATA", Value = 5)] + ART_ITEMDATA, + [ProtoEnum(Name = "ART_MYSALE", Value = 6)] + ART_MYSALE, + [ProtoEnum(Name = "ART_BUY", Value = 7)] + ART_BUY, + [ProtoEnum(Name = "ART_REFRESH_FREE", Value = 8)] + ART_REFRESH_FREE, + [ProtoEnum(Name = "ART_REFRESH_PAY", Value = 9)] + ART_REFRESH_PAY, + [ProtoEnum(Name = "ART_TRADE_PRICE", Value = 10)] + ART_TRADE_PRICE, + [ProtoEnum(Name = "ART_REFRESH_AUTO", Value = 11)] + ART_REFRESH_AUTO + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqType.cs.meta new file mode 100644 index 00000000..6c1e7a95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionAllReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6f502019017d354b98d309ffa630f17 +timeCreated: 1611404400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctionReqType.cs new file mode 100644 index 00000000..3424e184 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionReqType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctionReqType")] + public enum AuctionReqType + { + [ProtoEnum(Name = "AUCTION_ONSALE", Value = 1)] + AUCTION_ONSALE = 1, + [ProtoEnum(Name = "AUCTION_OUTSALE", Value = 2)] + AUCTION_OUTSALE, + [ProtoEnum(Name = "AUCTION_BUYNOW", Value = 3)] + AUCTION_BUYNOW + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctionReqType.cs.meta new file mode 100644 index 00000000..96408ff9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d533d033a28417b49b243c920b499f70 +timeCreated: 1611404626 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionSaleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctionSaleData.cs new file mode 100644 index 00000000..0539d996 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionSaleData.cs @@ -0,0 +1,164 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctionSaleData")] + [Serializable] + public class AuctionSaleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "perprice", DataFormat = DataFormat.TwosComplement)] + public uint perprice + { + get + { + return this._perprice ?? 0u; + } + set + { + this._perprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool perpriceSpecified + { + get + { + return this._perprice != null; + } + set + { + bool flag = value == (this._perprice == null); + if (flag) + { + this._perprice = (value ? new uint?(this.perprice) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "duelefttime", DataFormat = DataFormat.TwosComplement)] + public uint duelefttime + { + get + { + return this._duelefttime ?? 0u; + } + set + { + this._duelefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool duelefttimeSpecified + { + get + { + return this._duelefttime != null; + } + set + { + bool flag = value == (this._duelefttime == null); + if (flag) + { + this._duelefttime = (value ? new uint?(this.duelefttime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "itemdata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Item itemdata + { + get + { + return this._itemdata; + } + set + { + this._itemdata = value; + } + } + + private ulong? _uid; + + private uint? _perprice; + + private uint? _duelefttime; + + private Item _itemdata = null; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeperprice() + { + return this.perpriceSpecified; + } + + private void Resetperprice() + { + this.perpriceSpecified = false; + } + + private bool ShouldSerializeduelefttime() + { + return this.duelefttimeSpecified; + } + + private void Resetduelefttime() + { + this.duelefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionSaleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctionSaleData.cs.meta new file mode 100644 index 00000000..3f5b2c60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionSaleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51790cff8aa0a8942a380cb08e3a64c7 +timeCreated: 1611403706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionSortType.cs b/Client/Assets/Scripts/XMainClient/KKSG/AuctionSortType.cs new file mode 100644 index 00000000..a79fa77f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionSortType.cs @@ -0,0 +1,34 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AuctionSortType")] + public enum AuctionSortType + { + [ProtoEnum(Name = "AUCTIONSORT_QUALITY_LESS", Value = 1)] + AUCTIONSORT_QUALITY_LESS = 1, + [ProtoEnum(Name = "AUCTIONSORT_QUALITY_GREATER", Value = 2)] + AUCTIONSORT_QUALITY_GREATER, + [ProtoEnum(Name = "AUCTIONSORT_LEVLE_LESS", Value = 3)] + AUCTIONSORT_LEVLE_LESS, + [ProtoEnum(Name = "AUCTIONSORT_LEVEL_GREATER", Value = 4)] + AUCTIONSORT_LEVEL_GREATER, + [ProtoEnum(Name = "AUCTIONSORT_LEFTTIME_LESS", Value = 5)] + AUCTIONSORT_LEFTTIME_LESS, + [ProtoEnum(Name = "AUCTIONSORT_LEFTTIME_GREATER", Value = 6)] + AUCTIONSORT_LEFTTIME_GREATER, + [ProtoEnum(Name = "AUCTIONSORT_BUYNOW_LESS", Value = 7)] + AUCTIONSORT_BUYNOW_LESS, + [ProtoEnum(Name = "AUCTIONSORT_BUYNOW_GREATER", Value = 8)] + AUCTIONSORT_BUYNOW_GREATER, + [ProtoEnum(Name = "AUCTIONSORT_BIDDING_LESS", Value = 9)] + AUCTIONSORT_BIDDING_LESS, + [ProtoEnum(Name = "AUCITONSORT_BIDDING_GREATER", Value = 10)] + AUCITONSORT_BIDDING_GREATER, + [ProtoEnum(Name = "AUCTIONSORT_PERPRICE_LESS", Value = 11)] + AUCTIONSORT_PERPRICE_LESS, + [ProtoEnum(Name = "AUCTIONSORT_PERPRICE_GREATER", Value = 12)] + AUCTIONSORT_PERPRICE_GREATER + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AuctionSortType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AuctionSortType.cs.meta new file mode 100644 index 00000000..f4d9fe42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AuctionSortType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19454cd1851075544ae3bb016938d8df +timeCreated: 1611403301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs new file mode 100644 index 00000000..9f7906fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AudioAuthKeyArg")] + [Serializable] + public class AudioAuthKeyArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "open_id", DataFormat = DataFormat.Default)] + public string open_id + { + get + { + return this._open_id ?? ""; + } + set + { + this._open_id = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool open_idSpecified + { + get + { + return this._open_id != null; + } + set + { + bool flag = value == (this._open_id == null); + if (flag) + { + this._open_id = (value ? this.open_id : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ip", DataFormat = DataFormat.Default)] + public string ip + { + get + { + return this._ip ?? ""; + } + set + { + this._ip = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ipSpecified + { + get + { + return this._ip != null; + } + set + { + bool flag = value == (this._ip == null); + if (flag) + { + this._ip = (value ? this.ip : null); + } + } + } + + private string _open_id; + + private string _ip; + + private IExtension extensionObject; + + private bool ShouldSerializeopen_id() + { + return this.open_idSpecified; + } + + private void Resetopen_id() + { + this.open_idSpecified = false; + } + + private bool ShouldSerializeip() + { + return this.ipSpecified; + } + + private void Resetip() + { + this.ipSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs.meta new file mode 100644 index 00000000..32df90c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1046727d8cecd314ca2e9f4f189509fb +timeCreated: 1611403216 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs new file mode 100644 index 00000000..2175dd2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AudioAuthKeyRes")] + [Serializable] + public class AudioAuthKeyRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "dwMainSvrId", DataFormat = DataFormat.TwosComplement)] + public uint dwMainSvrId + { + get + { + return this._dwMainSvrId ?? 0u; + } + set + { + this._dwMainSvrId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dwMainSvrIdSpecified + { + get + { + return this._dwMainSvrId != null; + } + set + { + bool flag = value == (this._dwMainSvrId == null); + if (flag) + { + this._dwMainSvrId = (value ? new uint?(this.dwMainSvrId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dwMainSvrUrl1", DataFormat = DataFormat.TwosComplement)] + public uint dwMainSvrUrl1 + { + get + { + return this._dwMainSvrUrl1 ?? 0u; + } + set + { + this._dwMainSvrUrl1 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dwMainSvrUrl1Specified + { + get + { + return this._dwMainSvrUrl1 != null; + } + set + { + bool flag = value == (this._dwMainSvrUrl1 == null); + if (flag) + { + this._dwMainSvrUrl1 = (value ? new uint?(this.dwMainSvrUrl1) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "dwMainSvrUrl2", DataFormat = DataFormat.TwosComplement)] + public uint dwMainSvrUrl2 + { + get + { + return this._dwMainSvrUrl2 ?? 0u; + } + set + { + this._dwMainSvrUrl2 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dwMainSvrUrl2Specified + { + get + { + return this._dwMainSvrUrl2 != null; + } + set + { + bool flag = value == (this._dwMainSvrUrl2 == null); + if (flag) + { + this._dwMainSvrUrl2 = (value ? new uint?(this.dwMainSvrUrl2) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "dwSlaveSvrId", DataFormat = DataFormat.TwosComplement)] + public uint dwSlaveSvrId + { + get + { + return this._dwSlaveSvrId ?? 0u; + } + set + { + this._dwSlaveSvrId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dwSlaveSvrIdSpecified + { + get + { + return this._dwSlaveSvrId != null; + } + set + { + bool flag = value == (this._dwSlaveSvrId == null); + if (flag) + { + this._dwSlaveSvrId = (value ? new uint?(this.dwSlaveSvrId) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "dwSlaveSvrUrl1", DataFormat = DataFormat.TwosComplement)] + public uint dwSlaveSvrUrl1 + { + get + { + return this._dwSlaveSvrUrl1 ?? 0u; + } + set + { + this._dwSlaveSvrUrl1 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dwSlaveSvrUrl1Specified + { + get + { + return this._dwSlaveSvrUrl1 != null; + } + set + { + bool flag = value == (this._dwSlaveSvrUrl1 == null); + if (flag) + { + this._dwSlaveSvrUrl1 = (value ? new uint?(this.dwSlaveSvrUrl1) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "dwSlaveSvrUrl2", DataFormat = DataFormat.TwosComplement)] + public uint dwSlaveSvrUrl2 + { + get + { + return this._dwSlaveSvrUrl2 ?? 0u; + } + set + { + this._dwSlaveSvrUrl2 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dwSlaveSvrUrl2Specified + { + get + { + return this._dwSlaveSvrUrl2 != null; + } + set + { + bool flag = value == (this._dwSlaveSvrUrl2 == null); + if (flag) + { + this._dwSlaveSvrUrl2 = (value ? new uint?(this.dwSlaveSvrUrl2) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "szAuthKey", DataFormat = DataFormat.Default)] + public string szAuthKey + { + get + { + return this._szAuthKey ?? ""; + } + set + { + this._szAuthKey = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool szAuthKeySpecified + { + get + { + return this._szAuthKey != null; + } + set + { + bool flag = value == (this._szAuthKey == null); + if (flag) + { + this._szAuthKey = (value ? this.szAuthKey : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "dwExpireIn", DataFormat = DataFormat.TwosComplement)] + public uint dwExpireIn + { + get + { + return this._dwExpireIn ?? 0u; + } + set + { + this._dwExpireIn = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dwExpireInSpecified + { + get + { + return this._dwExpireIn != null; + } + set + { + bool flag = value == (this._dwExpireIn == null); + if (flag) + { + this._dwExpireIn = (value ? new uint?(this.dwExpireIn) : null); + } + } + } + + private ErrorCode? _error; + + private uint? _dwMainSvrId; + + private uint? _dwMainSvrUrl1; + + private uint? _dwMainSvrUrl2; + + private uint? _dwSlaveSvrId; + + private uint? _dwSlaveSvrUrl1; + + private uint? _dwSlaveSvrUrl2; + + private string _szAuthKey; + + private uint? _dwExpireIn; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializedwMainSvrId() + { + return this.dwMainSvrIdSpecified; + } + + private void ResetdwMainSvrId() + { + this.dwMainSvrIdSpecified = false; + } + + private bool ShouldSerializedwMainSvrUrl1() + { + return this.dwMainSvrUrl1Specified; + } + + private void ResetdwMainSvrUrl1() + { + this.dwMainSvrUrl1Specified = false; + } + + private bool ShouldSerializedwMainSvrUrl2() + { + return this.dwMainSvrUrl2Specified; + } + + private void ResetdwMainSvrUrl2() + { + this.dwMainSvrUrl2Specified = false; + } + + private bool ShouldSerializedwSlaveSvrId() + { + return this.dwSlaveSvrIdSpecified; + } + + private void ResetdwSlaveSvrId() + { + this.dwSlaveSvrIdSpecified = false; + } + + private bool ShouldSerializedwSlaveSvrUrl1() + { + return this.dwSlaveSvrUrl1Specified; + } + + private void ResetdwSlaveSvrUrl1() + { + this.dwSlaveSvrUrl1Specified = false; + } + + private bool ShouldSerializedwSlaveSvrUrl2() + { + return this.dwSlaveSvrUrl2Specified; + } + + private void ResetdwSlaveSvrUrl2() + { + this.dwSlaveSvrUrl2Specified = false; + } + + private bool ShouldSerializeszAuthKey() + { + return this.szAuthKeySpecified; + } + + private void ResetszAuthKey() + { + this.szAuthKeySpecified = false; + } + + private bool ShouldSerializedwExpireIn() + { + return this.dwExpireInSpecified; + } + + private void ResetdwExpireIn() + { + this.dwExpireInSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs.meta new file mode 100644 index 00000000..43957713 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioAuthKeyRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d1754d95112f014cbab08f8ecf87f95 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/AudioBrief.cs new file mode 100644 index 00000000..9c281c67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioBrief.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AudioBrief")] + [Serializable] + public class AudioBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "audioUid", DataFormat = DataFormat.TwosComplement)] + public ulong audioUid + { + get + { + return this._audioUid ?? 0UL; + } + set + { + this._audioUid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioUidSpecified + { + get + { + return this._audioUid != null; + } + set + { + bool flag = value == (this._audioUid == null); + if (flag) + { + this._audioUid = (value ? new ulong?(this.audioUid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "audio", DataFormat = DataFormat.Default)] + public byte[] audio + { + get + { + return this._audio ?? null; + } + set + { + this._audio = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioSpecified + { + get + { + return this._audio != null; + } + set + { + bool flag = value == (this._audio == null); + if (flag) + { + this._audio = (value ? this.audio : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "text", DataFormat = DataFormat.Default)] + public byte[] text + { + get + { + return this._text ?? null; + } + set + { + this._text = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool textSpecified + { + get + { + return this._text != null; + } + set + { + bool flag = value == (this._text == null); + if (flag) + { + this._text = (value ? this.text : null); + } + } + } + + private ulong? _audioUid; + + private byte[] _audio; + + private byte[] _text; + + private IExtension extensionObject; + + private bool ShouldSerializeaudioUid() + { + return this.audioUidSpecified; + } + + private void ResetaudioUid() + { + this.audioUidSpecified = false; + } + + private bool ShouldSerializeaudio() + { + return this.audioSpecified; + } + + private void Resetaudio() + { + this.audioSpecified = false; + } + + private bool ShouldSerializetext() + { + return this.textSpecified; + } + + private void Resettext() + { + this.textSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AudioBrief.cs.meta new file mode 100644 index 00000000..233642ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66495e20f48b4ac46862520469a49cdc +timeCreated: 1611403853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioTextArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AudioTextArg.cs new file mode 100644 index 00000000..71c058a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioTextArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AudioTextArg")] + [Serializable] + public class AudioTextArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "file_id", DataFormat = DataFormat.Default)] + public string file_id + { + get + { + return this._file_id ?? ""; + } + set + { + this._file_id = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool file_idSpecified + { + get + { + return this._file_id != null; + } + set + { + bool flag = value == (this._file_id == null); + if (flag) + { + this._file_id = (value ? this.file_id : null); + } + } + } + + private string _file_id; + + private IExtension extensionObject; + + private bool ShouldSerializefile_id() + { + return this.file_idSpecified; + } + + private void Resetfile_id() + { + this.file_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioTextArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AudioTextArg.cs.meta new file mode 100644 index 00000000..ad3b6b5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioTextArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df83e4438cd5aa74891fa79c6032f1b3 +timeCreated: 1611404693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioTextRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AudioTextRes.cs new file mode 100644 index 00000000..b705a9ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioTextRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AudioTextRes")] + [Serializable] + public class AudioTextRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "file_text", DataFormat = DataFormat.Default)] + public string file_text + { + get + { + return this._file_text ?? ""; + } + set + { + this._file_text = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool file_textSpecified + { + get + { + return this._file_text != null; + } + set + { + bool flag = value == (this._file_text == null); + if (flag) + { + this._file_text = (value ? this.file_text : null); + } + } + } + + private ErrorCode? _error; + + private string _file_text; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializefile_text() + { + return this.file_textSpecified; + } + + private void Resetfile_text() + { + this.file_textSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AudioTextRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AudioTextRes.cs.meta new file mode 100644 index 00000000..e812544f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AudioTextRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f91ec3d6760e7c41a50e5b605bace86 +timeCreated: 1611403928 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs new file mode 100644 index 00000000..4aa9fa48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AutoBreakAtlasArg")] + [Serializable] + public class AutoBreakAtlasArg : IExtensible + { + [ProtoMember(1, Name = "quilts", DataFormat = DataFormat.TwosComplement)] + public List quilts + { + get + { + return this._quilts; + } + } + + [ProtoMember(2, IsRequired = false, Name = "groupId", DataFormat = DataFormat.TwosComplement)] + public uint groupId + { + get + { + return this._groupId ?? 0u; + } + set + { + this._groupId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupIdSpecified + { + get + { + return this._groupId != null; + } + set + { + bool flag = value == (this._groupId == null); + if (flag) + { + this._groupId = (value ? new uint?(this.groupId) : null); + } + } + } + + private readonly List _quilts = new List(); + + private uint? _groupId; + + private IExtension extensionObject; + + private bool ShouldSerializegroupId() + { + return this.groupIdSpecified; + } + + private void ResetgroupId() + { + this.groupIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs.meta new file mode 100644 index 00000000..0cf8d786 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4f11070ed689a5438eda32be872fad7 +timeCreated: 1611404605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs new file mode 100644 index 00000000..737d8efd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AutoBreakAtlasRes")] + [Serializable] + public class AutoBreakAtlasRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs.meta new file mode 100644 index 00000000..d93b8c0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AutoBreakAtlasRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af523b762e594bf4f9ba333955f65036 +timeCreated: 1611404344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AutoFight.cs b/Client/Assets/Scripts/XMainClient/KKSG/AutoFight.cs new file mode 100644 index 00000000..60959b68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AutoFight.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "AutoFight")] + [Serializable] + public class AutoFight : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "autof", DataFormat = DataFormat.Default)] + public bool autof + { + get + { + return this._autof ?? false; + } + set + { + this._autof = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool autofSpecified + { + get + { + return this._autof != null; + } + set + { + bool flag = value == (this._autof == null); + if (flag) + { + this._autof = (value ? new bool?(this.autof) : null); + } + } + } + + private bool? _autof; + + private IExtension extensionObject; + + private bool ShouldSerializeautof() + { + return this.autofSpecified; + } + + private void Resetautof() + { + this.autofSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/AutoFight.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/AutoFight.cs.meta new file mode 100644 index 00000000..995a57b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/AutoFight.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 231b59f141c9cb14c94f2639b27c37ae +timeCreated: 1611403426 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BFFightTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/BFFightTime.cs new file mode 100644 index 00000000..1dc7ddfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BFFightTime.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BFFightTime")] + [Serializable] + public class BFFightTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BFFightTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BFFightTime.cs.meta new file mode 100644 index 00000000..eb301436 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BFFightTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f312fa1635a17040989121b710a3135 +timeCreated: 1611404029 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BMFightTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/BMFightTime.cs new file mode 100644 index 00000000..b6219c28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BMFightTime.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BMFightTime")] + [Serializable] + public class BMFightTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _type; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BMFightTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BMFightTime.cs.meta new file mode 100644 index 00000000..90b7bf5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BMFightTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0b6db7dee647f54fbb9b69dbf0b825e +timeCreated: 1611404588 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs new file mode 100644 index 00000000..7cba45c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BMReadyTime")] + [Serializable] + public class BMReadyTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs.meta new file mode 100644 index 00000000..4391d963 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BMReadyTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8cb664db6966ea647a9f7164c174b6de +timeCreated: 1611404100 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs b/Client/Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs new file mode 100644 index 00000000..72ec5166 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BMRoleEnter")] + [Serializable] + public class BMRoleEnter : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "gsline", DataFormat = DataFormat.TwosComplement)] + public uint gsline + { + get + { + return this._gsline ?? 0u; + } + set + { + this._gsline = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gslineSpecified + { + get + { + return this._gsline != null; + } + set + { + bool flag = value == (this._gsline == null); + if (flag) + { + this._gsline = (value ? new uint?(this.gsline) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _sceneid; + + private uint? _gsline; + + private uint? _level; + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + private bool ShouldSerializegsline() + { + return this.gslineSpecified; + } + + private void Resetgsline() + { + this.gslineSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs.meta new file mode 100644 index 00000000..c9c8717f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BMRoleEnter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3645faa4ff132345a5eac336d5b87ef +timeCreated: 1611404599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BMRoleSceneSync.cs b/Client/Assets/Scripts/XMainClient/KKSG/BMRoleSceneSync.cs new file mode 100644 index 00000000..0ffa896b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BMRoleSceneSync.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BMRoleSceneSync")] + [Serializable] + public class BMRoleSceneSync : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "games", DataFormat = DataFormat.TwosComplement)] + public uint games + { + get + { + return this._games ?? 0u; + } + set + { + this._games = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gamesSpecified + { + get + { + return this._games != null; + } + set + { + bool flag = value == (this._games == null); + if (flag) + { + this._games = (value ? new uint?(this.games) : null); + } + } + } + + [ProtoMember(2, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + private uint? _games; + + private readonly List _roles = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializegames() + { + return this.gamesSpecified; + } + + private void Resetgames() + { + this.gamesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BMRoleSceneSync.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BMRoleSceneSync.cs.meta new file mode 100644 index 00000000..0fb72451 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BMRoleSceneSync.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7aa8b405a159bbc4e8425272f466bdd3 +timeCreated: 1611403990 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs b/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs new file mode 100644 index 00000000..33181750 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BRRankState")] + [Serializable] + public class BRRankState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "confid", DataFormat = DataFormat.TwosComplement)] + public int confid + { + get + { + return this._confid ?? 0; + } + set + { + this._confid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool confidSpecified + { + get + { + return this._confid != null; + } + set + { + bool flag = value == (this._confid == null); + if (flag) + { + this._confid = (value ? new int?(this.confid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "brbid1", DataFormat = DataFormat.TwosComplement)] + public int brbid1 + { + get + { + return this._brbid1 ?? 0; + } + set + { + this._brbid1 = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool brbid1Specified + { + get + { + return this._brbid1 != null; + } + set + { + bool flag = value == (this._brbid1 == null); + if (flag) + { + this._brbid1 = (value ? new int?(this.brbid1) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "brbid2", DataFormat = DataFormat.TwosComplement)] + public int brbid2 + { + get + { + return this._brbid2 ?? 0; + } + set + { + this._brbid2 = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool brbid2Specified + { + get + { + return this._brbid2 != null; + } + set + { + bool flag = value == (this._brbid2 == null); + if (flag) + { + this._brbid2 = (value ? new int?(this.brbid2) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + private int? _confid; + + private int? _brbid1; + + private int? _brbid2; + + private int? _rank; + + private IExtension extensionObject; + + private bool ShouldSerializeconfid() + { + return this.confidSpecified; + } + + private void Resetconfid() + { + this.confidSpecified = false; + } + + private bool ShouldSerializebrbid1() + { + return this.brbid1Specified; + } + + private void Resetbrbid1() + { + this.brbid1Specified = false; + } + + private bool ShouldSerializebrbid2() + { + return this.brbid2Specified; + } + + private void Resetbrbid2() + { + this.brbid2Specified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs.meta new file mode 100644 index 00000000..35bb3b5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BRRankState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27f78ebafb741514999698097444ff4c +timeCreated: 1611403473 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActOp.cs new file mode 100644 index 00000000..4b252da1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActOp.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowActOp")] + public enum BackFlowActOp + { + [ProtoEnum(Name = "BackFlowAct_TreasureData", Value = 1)] + BackFlowAct_TreasureData = 1, + [ProtoEnum(Name = "BackFlowAct_GetTreasure", Value = 2)] + BackFlowAct_GetTreasure, + [ProtoEnum(Name = "BackFlowAct_ShopData", Value = 3)] + BackFlowAct_ShopData, + [ProtoEnum(Name = "BackFlowAct_ShopBuy", Value = 4)] + BackFlowAct_ShopBuy, + [ProtoEnum(Name = "BackFlowAct_ShopUpdate", Value = 5)] + BackFlowAct_ShopUpdate + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActOp.cs.meta new file mode 100644 index 00000000..624e8b38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 267c9a5a490a5124fbf591953500c3d8 +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationArg.cs new file mode 100644 index 00000000..658733ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowActivityOperationArg")] + [Serializable] + public class BackFlowActivityOperationArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public BackFlowActOp type + { + get + { + return this._type ?? BackFlowActOp.BackFlowAct_TreasureData; + } + set + { + this._type = new BackFlowActOp?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new BackFlowActOp?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "arg", DataFormat = DataFormat.TwosComplement)] + public uint arg + { + get + { + return this._arg ?? 0u; + } + set + { + this._arg = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool argSpecified + { + get + { + return this._arg != null; + } + set + { + bool flag = value == (this._arg == null); + if (flag) + { + this._arg = (value ? new uint?(this.arg) : null); + } + } + } + + private BackFlowActOp? _type; + + private uint? _arg; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializearg() + { + return this.argSpecified; + } + + private void Resetarg() + { + this.argSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationArg.cs.meta new file mode 100644 index 00000000..5e7dc40c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4938610eb480c743b73cc9919fd9c30 +timeCreated: 1611404603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationRes.cs new file mode 100644 index 00000000..d246a7c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationRes.cs @@ -0,0 +1,305 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowActivityOperationRes")] + [Serializable] + public class BackFlowActivityOperationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, Name = "alreadyGet", DataFormat = DataFormat.TwosComplement)] + public List alreadyGet + { + get + { + return this._alreadyGet; + } + } + + [ProtoMember(4, IsRequired = false, Name = "shop", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BackFlowShopData shop + { + get + { + return this._shop; + } + set + { + this._shop = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "shopLeftTime", DataFormat = DataFormat.TwosComplement)] + public uint shopLeftTime + { + get + { + return this._shopLeftTime ?? 0u; + } + set + { + this._shopLeftTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool shopLeftTimeSpecified + { + get + { + return this._shopLeftTime != null; + } + set + { + bool flag = value == (this._shopLeftTime == null); + if (flag) + { + this._shopLeftTime = (value ? new uint?(this.shopLeftTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "activityLeftTime", DataFormat = DataFormat.TwosComplement)] + public uint activityLeftTime + { + get + { + return this._activityLeftTime ?? 0u; + } + set + { + this._activityLeftTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activityLeftTimeSpecified + { + get + { + return this._activityLeftTime != null; + } + set + { + bool flag = value == (this._activityLeftTime == null); + if (flag) + { + this._activityLeftTime = (value ? new uint?(this.activityLeftTime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "leftSmallDragonCount", DataFormat = DataFormat.TwosComplement)] + public uint leftSmallDragonCount + { + get + { + return this._leftSmallDragonCount ?? 0u; + } + set + { + this._leftSmallDragonCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftSmallDragonCountSpecified + { + get + { + return this._leftSmallDragonCount != null; + } + set + { + bool flag = value == (this._leftSmallDragonCount == null); + if (flag) + { + this._leftSmallDragonCount = (value ? new uint?(this.leftSmallDragonCount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "leftNestCount", DataFormat = DataFormat.TwosComplement)] + public uint leftNestCount + { + get + { + return this._leftNestCount ?? 0u; + } + set + { + this._leftNestCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftNestCountSpecified + { + get + { + return this._leftNestCount != null; + } + set + { + bool flag = value == (this._leftNestCount == null); + if (flag) + { + this._leftNestCount = (value ? new uint?(this.leftNestCount) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _point; + + private readonly List _alreadyGet = new List(); + + private BackFlowShopData _shop = null; + + private uint? _shopLeftTime; + + private uint? _activityLeftTime; + + private uint? _leftSmallDragonCount; + + private uint? _leftNestCount; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializeshopLeftTime() + { + return this.shopLeftTimeSpecified; + } + + private void ResetshopLeftTime() + { + this.shopLeftTimeSpecified = false; + } + + private bool ShouldSerializeactivityLeftTime() + { + return this.activityLeftTimeSpecified; + } + + private void ResetactivityLeftTime() + { + this.activityLeftTimeSpecified = false; + } + + private bool ShouldSerializeleftSmallDragonCount() + { + return this.leftSmallDragonCountSpecified; + } + + private void ResetleftSmallDragonCount() + { + this.leftSmallDragonCountSpecified = false; + } + + private bool ShouldSerializeleftNestCount() + { + return this.leftNestCountSpecified; + } + + private void ResetleftNestCount() + { + this.leftNestCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationRes.cs.meta new file mode 100644 index 00000000..071cec30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowActivityOperationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 580a9891947dc1940b54a0c76b3c2708 +timeCreated: 1611403751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs new file mode 100644 index 00000000..f46e70be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowBuy")] + [Serializable] + public class BackFlowBuy : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "day", DataFormat = DataFormat.TwosComplement)] + public uint day + { + get + { + return this._day ?? 0u; + } + set + { + this._day = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daySpecified + { + get + { + return this._day != null; + } + set + { + bool flag = value == (this._day == null); + if (flag) + { + this._day = (value ? new uint?(this.day) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _index; + + private uint? _day; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializeday() + { + return this.daySpecified; + } + + private void Resetday() + { + this.daySpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs.meta new file mode 100644 index 00000000..9823ae32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb46a9669bc178f4fa1632e37b60f5c6 +timeCreated: 1611404783 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs new file mode 100644 index 00000000..12a79d52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowBuyOpArg")] + [Serializable] + public class BackFlowBuyOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public int op + { + get + { + return this._op ?? 0; + } + set + { + this._op = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new int?(this.op) : null); + } + } + } + + private int? _op; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs.meta new file mode 100644 index 00000000..0ccc9d5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55c368f06ff94ac448bb21ef5491c3cc +timeCreated: 1611403738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs new file mode 100644 index 00000000..b5f4901d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowBuyOpRes")] + [Serializable] + public class BackFlowBuyOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "countleft", DataFormat = DataFormat.TwosComplement)] + public int countleft + { + get + { + return this._countleft ?? 0; + } + set + { + this._countleft = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countleftSpecified + { + get + { + return this._countleft != null; + } + set + { + bool flag = value == (this._countleft == null); + if (flag) + { + this._countleft = (value ? new int?(this.countleft) : null); + } + } + } + + [ProtoMember(3, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(4, IsRequired = false, Name = "countmax", DataFormat = DataFormat.TwosComplement)] + public int countmax + { + get + { + return this._countmax ?? 0; + } + set + { + this._countmax = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countmaxSpecified + { + get + { + return this._countmax != null; + } + set + { + bool flag = value == (this._countmax == null); + if (flag) + { + this._countmax = (value ? new int?(this.countmax) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "cost", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief cost + { + get + { + return this._cost; + } + set + { + this._cost = value; + } + } + + private ErrorCode? _errorcode; + + private int? _countleft; + + private readonly List _items = new List(); + + private int? _countmax; + + private ItemBrief _cost = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecountleft() + { + return this.countleftSpecified; + } + + private void Resetcountleft() + { + this.countleftSpecified = false; + } + + private bool ShouldSerializecountmax() + { + return this.countmaxSpecified; + } + + private void Resetcountmax() + { + this.countmaxSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs.meta new file mode 100644 index 00000000..fbf974fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowBuyOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3996f905d6a5dcb4f8c8eb9f3d1caea4 +timeCreated: 1611403592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs new file mode 100644 index 00000000..231e566a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs @@ -0,0 +1,370 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowData")] + [Serializable] + public class BackFlowData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "worldlevel", DataFormat = DataFormat.TwosComplement)] + public uint worldlevel + { + get + { + return this._worldlevel ?? 0u; + } + set + { + this._worldlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool worldlevelSpecified + { + get + { + return this._worldlevel != null; + } + set + { + bool flag = value == (this._worldlevel == null); + if (flag) + { + this._worldlevel = (value ? new uint?(this.worldlevel) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, Name = "alreadyGet", DataFormat = DataFormat.TwosComplement)] + public List alreadyGet + { + get + { + return this._alreadyGet; + } + } + + [ProtoMember(4, Name = "payGiftType", DataFormat = DataFormat.Default)] + public List payGiftType + { + get + { + return this._payGiftType; + } + } + + [ProtoMember(5, Name = "payGiftCount", DataFormat = DataFormat.TwosComplement)] + public List payGiftCount + { + get + { + return this._payGiftCount; + } + } + + [ProtoMember(6, IsRequired = false, Name = "lostDay", DataFormat = DataFormat.TwosComplement)] + public uint lostDay + { + get + { + return this._lostDay ?? 0u; + } + set + { + this._lostDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lostDaySpecified + { + get + { + return this._lostDay != null; + } + set + { + bool flag = value == (this._lostDay == null); + if (flag) + { + this._lostDay = (value ? new uint?(this.lostDay) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "shop", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BackFlowShopData shop + { + get + { + return this._shop; + } + set + { + this._shop = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "lastSmallDragonFinishTime", DataFormat = DataFormat.TwosComplement)] + public uint lastSmallDragonFinishTime + { + get + { + return this._lastSmallDragonFinishTime ?? 0u; + } + set + { + this._lastSmallDragonFinishTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastSmallDragonFinishTimeSpecified + { + get + { + return this._lastSmallDragonFinishTime != null; + } + set + { + bool flag = value == (this._lastSmallDragonFinishTime == null); + if (flag) + { + this._lastSmallDragonFinishTime = (value ? new uint?(this.lastSmallDragonFinishTime) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "isFinishBackFlowScene", DataFormat = DataFormat.Default)] + public bool isFinishBackFlowScene + { + get + { + return this._isFinishBackFlowScene ?? false; + } + set + { + this._isFinishBackFlowScene = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFinishBackFlowSceneSpecified + { + get + { + return this._isFinishBackFlowScene != null; + } + set + { + bool flag = value == (this._isFinishBackFlowScene == null); + if (flag) + { + this._isFinishBackFlowScene = (value ? new bool?(this.isFinishBackFlowScene) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "lastNestFinishTime", DataFormat = DataFormat.TwosComplement)] + public uint lastNestFinishTime + { + get + { + return this._lastNestFinishTime ?? 0u; + } + set + { + this._lastNestFinishTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastNestFinishTimeSpecified + { + get + { + return this._lastNestFinishTime != null; + } + set + { + bool flag = value == (this._lastNestFinishTime == null); + if (flag) + { + this._lastNestFinishTime = (value ? new uint?(this.lastNestFinishTime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "nestFinishCount", DataFormat = DataFormat.TwosComplement)] + public uint nestFinishCount + { + get + { + return this._nestFinishCount ?? 0u; + } + set + { + this._nestFinishCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nestFinishCountSpecified + { + get + { + return this._nestFinishCount != null; + } + set + { + bool flag = value == (this._nestFinishCount == null); + if (flag) + { + this._nestFinishCount = (value ? new uint?(this.nestFinishCount) : null); + } + } + } + + private uint? _worldlevel; + + private uint? _point; + + private readonly List _alreadyGet = new List(); + + private readonly List _payGiftType = new List(); + + private readonly List _payGiftCount = new List(); + + private uint? _lostDay; + + private BackFlowShopData _shop = null; + + private uint? _lastSmallDragonFinishTime; + + private bool? _isFinishBackFlowScene; + + private uint? _lastNestFinishTime; + + private uint? _nestFinishCount; + + private IExtension extensionObject; + + private bool ShouldSerializeworldlevel() + { + return this.worldlevelSpecified; + } + + private void Resetworldlevel() + { + this.worldlevelSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializelostDay() + { + return this.lostDaySpecified; + } + + private void ResetlostDay() + { + this.lostDaySpecified = false; + } + + private bool ShouldSerializelastSmallDragonFinishTime() + { + return this.lastSmallDragonFinishTimeSpecified; + } + + private void ResetlastSmallDragonFinishTime() + { + this.lastSmallDragonFinishTimeSpecified = false; + } + + private bool ShouldSerializeisFinishBackFlowScene() + { + return this.isFinishBackFlowSceneSpecified; + } + + private void ResetisFinishBackFlowScene() + { + this.isFinishBackFlowSceneSpecified = false; + } + + private bool ShouldSerializelastNestFinishTime() + { + return this.lastNestFinishTimeSpecified; + } + + private void ResetlastNestFinishTime() + { + this.lastNestFinishTimeSpecified = false; + } + + private bool ShouldSerializenestFinishCount() + { + return this.nestFinishCountSpecified; + } + + private void ResetnestFinishCount() + { + this.nestFinishCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs.meta new file mode 100644 index 00000000..d4d50060 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2a3cd0093f653d47b9184263a8da632 +timeCreated: 1611404844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs new file mode 100644 index 00000000..3a80680b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowOpenNtf")] + [Serializable] + public class BackFlowOpenNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isopen", DataFormat = DataFormat.Default)] + public bool isopen + { + get + { + return this._isopen ?? false; + } + set + { + this._isopen = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isopenSpecified + { + get + { + return this._isopen != null; + } + set + { + bool flag = value == (this._isopen == null); + if (flag) + { + this._isopen = (value ? new bool?(this.isopen) : null); + } + } + } + + private bool? _isopen; + + private IExtension extensionObject; + + private bool ShouldSerializeisopen() + { + return this.isopenSpecified; + } + + private void Resetisopen() + { + this.isopenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs.meta new file mode 100644 index 00000000..4a592d8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowOpenNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f7c4d2340197ab44bba387f90c15e81 +timeCreated: 1611404134 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowPreData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowPreData.cs new file mode 100644 index 00000000..fd05e736 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowPreData.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowPreData")] + [Serializable] + public class BackFlowPreData : IExtensible + { + [ProtoMember(1, Name = "isOnline", DataFormat = DataFormat.Default)] + public List isOnline + { + get + { + return this._isOnline; + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateTime + { + get + { + return this._lastUpdateTime ?? 0u; + } + set + { + this._lastUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateTimeSpecified + { + get + { + return this._lastUpdateTime != null; + } + set + { + bool flag = value == (this._lastUpdateTime == null); + if (flag) + { + this._lastUpdateTime = (value ? new uint?(this.lastUpdateTime) : null); + } + } + } + + private readonly List _isOnline = new List(); + + private uint? _lastUpdateTime; + + private IExtension extensionObject; + + private bool ShouldSerializelastUpdateTime() + { + return this.lastUpdateTimeSpecified; + } + + private void ResetlastUpdateTime() + { + this.lastUpdateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowPreData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowPreData.cs.meta new file mode 100644 index 00000000..ab47009a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowPreData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d098bccd2886c6d47a1fd78613fdedf7 +timeCreated: 1611404588 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopData.cs new file mode 100644 index 00000000..2bb23325 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopData.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowShopData")] + [Serializable] + public class BackFlowShopData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateTime + { + get + { + return this._lastUpdateTime ?? 0u; + } + set + { + this._lastUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateTimeSpecified + { + get + { + return this._lastUpdateTime != null; + } + set + { + bool flag = value == (this._lastUpdateTime == null); + if (flag) + { + this._lastUpdateTime = (value ? new uint?(this.lastUpdateTime) : null); + } + } + } + + [ProtoMember(2, Name = "goods", DataFormat = DataFormat.Default)] + public List goods + { + get + { + return this._goods; + } + } + + [ProtoMember(3, IsRequired = false, Name = "freshCount", DataFormat = DataFormat.TwosComplement)] + public uint freshCount + { + get + { + return this._freshCount ?? 0u; + } + set + { + this._freshCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freshCountSpecified + { + get + { + return this._freshCount != null; + } + set + { + bool flag = value == (this._freshCount == null); + if (flag) + { + this._freshCount = (value ? new uint?(this.freshCount) : null); + } + } + } + + private uint? _lastUpdateTime; + + private readonly List _goods = new List(); + + private uint? _freshCount; + + private IExtension extensionObject; + + private bool ShouldSerializelastUpdateTime() + { + return this.lastUpdateTimeSpecified; + } + + private void ResetlastUpdateTime() + { + this.lastUpdateTimeSpecified = false; + } + + private bool ShouldSerializefreshCount() + { + return this.freshCountSpecified; + } + + private void ResetfreshCount() + { + this.freshCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopData.cs.meta new file mode 100644 index 00000000..ef727b1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2605141ad330664cad71a078345c08e +timeCreated: 1611404843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs new file mode 100644 index 00000000..c6ca68a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BackFlowShopGood")] + [Serializable] + public class BackFlowShopGood : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "GoodID", DataFormat = DataFormat.TwosComplement)] + public uint GoodID + { + get + { + return this._GoodID ?? 0u; + } + set + { + this._GoodID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool GoodIDSpecified + { + get + { + return this._GoodID != null; + } + set + { + bool flag = value == (this._GoodID == null); + if (flag) + { + this._GoodID = (value ? new uint?(this.GoodID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "IsBuy", DataFormat = DataFormat.Default)] + public bool IsBuy + { + get + { + return this._IsBuy ?? false; + } + set + { + this._IsBuy = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IsBuySpecified + { + get + { + return this._IsBuy != null; + } + set + { + bool flag = value == (this._IsBuy == null); + if (flag) + { + this._IsBuy = (value ? new bool?(this.IsBuy) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "LockTime", DataFormat = DataFormat.TwosComplement)] + public uint LockTime + { + get + { + return this._LockTime ?? 0u; + } + set + { + this._LockTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LockTimeSpecified + { + get + { + return this._LockTime != null; + } + set + { + bool flag = value == (this._LockTime == null); + if (flag) + { + this._LockTime = (value ? new uint?(this.LockTime) : null); + } + } + } + + private uint? _GoodID; + + private bool? _IsBuy; + + private uint? _LockTime; + + private IExtension extensionObject; + + private bool ShouldSerializeGoodID() + { + return this.GoodIDSpecified; + } + + private void ResetGoodID() + { + this.GoodIDSpecified = false; + } + + private bool ShouldSerializeIsBuy() + { + return this.IsBuySpecified; + } + + private void ResetIsBuy() + { + this.IsBuySpecified = false; + } + + private bool ShouldSerializeLockTime() + { + return this.LockTimeSpecified; + } + + private void ResetLockTime() + { + this.LockTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs.meta new file mode 100644 index 00000000..b414237e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BackFlowShopGood.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e029e58abfaedc34eaa8e048ec2a22a4 +timeCreated: 1611404696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BagContent.cs b/Client/Assets/Scripts/XMainClient/KKSG/BagContent.cs new file mode 100644 index 00000000..adb82673 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BagContent.cs @@ -0,0 +1,258 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BagContent")] + [Serializable] + public class BagContent : IExtensible + { + [ProtoMember(1, Name = "Equips", DataFormat = DataFormat.Default)] + public List Equips + { + get + { + return this._Equips; + } + } + + [ProtoMember(2, Name = "Emblems", DataFormat = DataFormat.Default)] + public List Emblems + { + get + { + return this._Emblems; + } + } + + [ProtoMember(3, Name = "Items", DataFormat = DataFormat.Default)] + public List Items + { + get + { + return this._Items; + } + } + + [ProtoMember(4, IsRequired = false, Name = "enhanceSuit", DataFormat = DataFormat.TwosComplement)] + public uint enhanceSuit + { + get + { + return this._enhanceSuit ?? 0u; + } + set + { + this._enhanceSuit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enhanceSuitSpecified + { + get + { + return this._enhanceSuit != null; + } + set + { + bool flag = value == (this._enhanceSuit == null); + if (flag) + { + this._enhanceSuit = (value ? new uint?(this.enhanceSuit) : null); + } + } + } + + [ProtoMember(5, Name = "virtualitems", DataFormat = DataFormat.TwosComplement)] + public List virtualitems + { + get + { + return this._virtualitems; + } + } + + [ProtoMember(6, Name = "Artifacts", DataFormat = DataFormat.Default)] + public List Artifacts + { + get + { + return this._Artifacts; + } + } + + [ProtoMember(7, IsRequired = false, Name = "extraSkillEbSlotNum", DataFormat = DataFormat.TwosComplement)] + public uint extraSkillEbSlotNum + { + get + { + return this._extraSkillEbSlotNum ?? 0u; + } + set + { + this._extraSkillEbSlotNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extraSkillEbSlotNumSpecified + { + get + { + return this._extraSkillEbSlotNum != null; + } + set + { + bool flag = value == (this._extraSkillEbSlotNum == null); + if (flag) + { + this._extraSkillEbSlotNum = (value ? new uint?(this.extraSkillEbSlotNum) : null); + } + } + } + + [ProtoMember(8, Name = "expand", DataFormat = DataFormat.Default)] + public List expand + { + get + { + return this._expand; + } + } + + [ProtoMember(9, IsRequired = false, Name = "FuseCompensation", DataFormat = DataFormat.Default)] + public bool FuseCompensation + { + get + { + return this._FuseCompensation ?? false; + } + set + { + this._FuseCompensation = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FuseCompensationSpecified + { + get + { + return this._FuseCompensation != null; + } + set + { + bool flag = value == (this._FuseCompensation == null); + if (flag) + { + this._FuseCompensation = (value ? new bool?(this.FuseCompensation) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "ForgeCompensation", DataFormat = DataFormat.Default)] + public bool ForgeCompensation + { + get + { + return this._ForgeCompensation ?? false; + } + set + { + this._ForgeCompensation = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ForgeCompensationSpecified + { + get + { + return this._ForgeCompensation != null; + } + set + { + bool flag = value == (this._ForgeCompensation == null); + if (flag) + { + this._ForgeCompensation = (value ? new bool?(this.ForgeCompensation) : null); + } + } + } + + private readonly List _Equips = new List(); + + private readonly List _Emblems = new List(); + + private readonly List _Items = new List(); + + private uint? _enhanceSuit; + + private readonly List _virtualitems = new List(); + + private readonly List _Artifacts = new List(); + + private uint? _extraSkillEbSlotNum; + + private readonly List _expand = new List(); + + private bool? _FuseCompensation; + + private bool? _ForgeCompensation; + + private IExtension extensionObject; + + private bool ShouldSerializeenhanceSuit() + { + return this.enhanceSuitSpecified; + } + + private void ResetenhanceSuit() + { + this.enhanceSuitSpecified = false; + } + + private bool ShouldSerializeextraSkillEbSlotNum() + { + return this.extraSkillEbSlotNumSpecified; + } + + private void ResetextraSkillEbSlotNum() + { + this.extraSkillEbSlotNumSpecified = false; + } + + private bool ShouldSerializeFuseCompensation() + { + return this.FuseCompensationSpecified; + } + + private void ResetFuseCompensation() + { + this.FuseCompensationSpecified = false; + } + + private bool ShouldSerializeForgeCompensation() + { + return this.ForgeCompensationSpecified; + } + + private void ResetForgeCompensation() + { + this.ForgeCompensationSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BagContent.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BagContent.cs.meta new file mode 100644 index 00000000..ddc0fed1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BagContent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20b344004dd6d8843b8793f3466c4759 +timeCreated: 1611403407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BagExpandData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BagExpandData.cs new file mode 100644 index 00000000..6c95f9bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BagExpandData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BagExpandData")] + [Serializable] + public class BagExpandData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public BagType type + { + get + { + return this._type ?? BagType.EquipBag; + } + set + { + this._type = new BagType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new BagType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private BagType? _type; + + private uint? _num; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BagExpandData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BagExpandData.cs.meta new file mode 100644 index 00000000..e8d2600b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BagExpandData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a2ce206f82dd574a83dfcfb88faa003 +timeCreated: 1611403664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BagType.cs b/Client/Assets/Scripts/XMainClient/KKSG/BagType.cs new file mode 100644 index 00000000..01694676 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BagType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BagType")] + public enum BagType + { + [ProtoEnum(Name = "EquipBag", Value = 1)] + EquipBag = 1, + [ProtoEnum(Name = "EmblemBag", Value = 2)] + EmblemBag, + [ProtoEnum(Name = "ArtifactBag", Value = 3)] + ArtifactBag, + [ProtoEnum(Name = "ItemBag", Value = 4)] + ItemBag + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BagType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BagType.cs.meta new file mode 100644 index 00000000..949ba971 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BagType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9aa8baec522904045bb05cef2c326440 +timeCreated: 1611404202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardArg.cs new file mode 100644 index 00000000..8f35a7fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BanquetAwardArg")] + [Serializable] + public class BanquetAwardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Banquet_id", DataFormat = DataFormat.TwosComplement)] + public uint Banquet_id + { + get + { + return this._Banquet_id ?? 0u; + } + set + { + this._Banquet_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool Banquet_idSpecified + { + get + { + return this._Banquet_id != null; + } + set + { + bool flag = value == (this._Banquet_id == null); + if (flag) + { + this._Banquet_id = (value ? new uint?(this.Banquet_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + private uint? _Banquet_id; + + private ulong? _garden_id; + + private IExtension extensionObject; + + private bool ShouldSerializeBanquet_id() + { + return this.Banquet_idSpecified; + } + + private void ResetBanquet_id() + { + this.Banquet_idSpecified = false; + } + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardArg.cs.meta new file mode 100644 index 00000000..e285004e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5b9c14adbb850347aee5265cff61e03 +timeCreated: 1611404628 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardRes.cs new file mode 100644 index 00000000..c90d8393 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BanquetAwardRes")] + [Serializable] + public class BanquetAwardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "banquet_id", DataFormat = DataFormat.TwosComplement)] + public uint banquet_id + { + get + { + return this._banquet_id ?? 0u; + } + set + { + this._banquet_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banquet_idSpecified + { + get + { + return this._banquet_id != null; + } + set + { + bool flag = value == (this._banquet_id == null); + if (flag) + { + this._banquet_id = (value ? new uint?(this.banquet_id) : null); + } + } + } + + [ProtoMember(3, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private ErrorCode? _result; + + private uint? _banquet_id; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializebanquet_id() + { + return this.banquet_idSpecified; + } + + private void Resetbanquet_id() + { + this.banquet_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardRes.cs.meta new file mode 100644 index 00000000..e566fde0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BanquetAwardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b55d25c30cec46645b4f09623af0bc63 +timeCreated: 1611404395 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BanquetNtfArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BanquetNtfArg.cs new file mode 100644 index 00000000..abb44140 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BanquetNtfArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BanquetNtfArg")] + [Serializable] + public class BanquetNtfArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "banquet_id", DataFormat = DataFormat.TwosComplement)] + public uint banquet_id + { + get + { + return this._banquet_id ?? 0u; + } + set + { + this._banquet_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banquet_idSpecified + { + get + { + return this._banquet_id != null; + } + set + { + bool flag = value == (this._banquet_id == null); + if (flag) + { + this._banquet_id = (value ? new uint?(this.banquet_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + private uint? _banquet_id; + + private ulong? _garden_id; + + private IExtension extensionObject; + + private bool ShouldSerializebanquet_id() + { + return this.banquet_idSpecified; + } + + private void Resetbanquet_id() + { + this.banquet_idSpecified = false; + } + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BanquetNtfArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BanquetNtfArg.cs.meta new file mode 100644 index 00000000..7e5f71da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BanquetNtfArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: beb2c5fa262c1b64bb39f17789236add +timeCreated: 1611404481 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleChestRewardType.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleChestRewardType.cs new file mode 100644 index 00000000..f6130b91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleChestRewardType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleChestRewardType")] + public enum BattleChestRewardType + { + [ProtoEnum(Name = "GOLD_CHEST", Value = 1)] + GOLD_CHEST = 1, + [ProtoEnum(Name = "SILVER_CHEST", Value = 2)] + SILVER_CHEST, + [ProtoEnum(Name = "COPPER_CHEST", Value = 3)] + COPPER_CHEST, + [ProtoEnum(Name = "WOOD_CHEST", Value = 4)] + WOOD_CHEST + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleChestRewardType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleChestRewardType.cs.meta new file mode 100644 index 00000000..4605557c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleChestRewardType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9641aeef24d2b9d46a659aaae28d13e9 +timeCreated: 1611404184 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleData.cs new file mode 100644 index 00000000..1a11933a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleData.cs @@ -0,0 +1,451 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleData")] + [Serializable] + public class BattleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "timespan", DataFormat = DataFormat.TwosComplement)] + public int timespan + { + get + { + return this._timespan ?? 0; + } + set + { + this._timespan = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timespanSpecified + { + get + { + return this._timespan != null; + } + set + { + bool flag = value == (this._timespan == null); + if (flag) + { + this._timespan = (value ? new int?(this.timespan) : null); + } + } + } + + [ProtoMember(2, Name = "pickDoodadWaveID", DataFormat = DataFormat.TwosComplement)] + public List pickDoodadWaveID + { + get + { + return this._pickDoodadWaveID; + } + } + + [ProtoMember(3, IsRequired = false, Name = "Combo", DataFormat = DataFormat.TwosComplement)] + public int Combo + { + get + { + return this._Combo ?? 0; + } + set + { + this._Combo = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ComboSpecified + { + get + { + return this._Combo != null; + } + set + { + bool flag = value == (this._Combo == null); + if (flag) + { + this._Combo = (value ? new int?(this.Combo) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "BeHit", DataFormat = DataFormat.TwosComplement)] + public int BeHit + { + get + { + return this._BeHit ?? 0; + } + set + { + this._BeHit = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BeHitSpecified + { + get + { + return this._BeHit != null; + } + set + { + bool flag = value == (this._BeHit == null); + if (flag) + { + this._BeHit = (value ? new int?(this.BeHit) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "hppercent", DataFormat = DataFormat.TwosComplement)] + public uint hppercent + { + get + { + return this._hppercent ?? 0u; + } + set + { + this._hppercent = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hppercentSpecified + { + get + { + return this._hppercent != null; + } + set + { + bool flag = value == (this._hppercent == null); + if (flag) + { + this._hppercent = (value ? new uint?(this.hppercent) : null); + } + } + } + + [ProtoMember(6, Name = "smallmonster", DataFormat = DataFormat.TwosComplement)] + public List smallmonster + { + get + { + return this._smallmonster; + } + } + + [ProtoMember(7, Name = "bossrush", DataFormat = DataFormat.TwosComplement)] + public List bossrush + { + get + { + return this._bossrush; + } + } + + [ProtoMember(8, IsRequired = false, Name = "OpenChest", DataFormat = DataFormat.TwosComplement)] + public int OpenChest + { + get + { + return this._OpenChest ?? 0; + } + set + { + this._OpenChest = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OpenChestSpecified + { + get + { + return this._OpenChest != null; + } + set + { + bool flag = value == (this._OpenChest == null); + if (flag) + { + this._OpenChest = (value ? new int?(this.OpenChest) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "anticheatInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CliAntiCheatInfo anticheatInfo + { + get + { + return this._anticheatInfo; + } + set + { + this._anticheatInfo = value; + } + } + + [ProtoMember(10, IsRequired = false, Name = "isfailed", DataFormat = DataFormat.Default)] + public bool isfailed + { + get + { + return this._isfailed ?? false; + } + set + { + this._isfailed = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isfailedSpecified + { + get + { + return this._isfailed != null; + } + set + { + bool flag = value == (this._isfailed == null); + if (flag) + { + this._isfailed = (value ? new bool?(this.isfailed) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "failedinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BattleFailedData failedinfo + { + get + { + return this._failedinfo; + } + set + { + this._failedinfo = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "found", DataFormat = DataFormat.TwosComplement)] + public uint found + { + get + { + return this._found ?? 0u; + } + set + { + this._found = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool foundSpecified + { + get + { + return this._found != null; + } + set + { + bool flag = value == (this._found == null); + if (flag) + { + this._found = (value ? new uint?(this.found) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "npchp", DataFormat = DataFormat.TwosComplement)] + public uint npchp + { + get + { + return this._npchp ?? 0u; + } + set + { + this._npchp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool npchpSpecified + { + get + { + return this._npchp != null; + } + set + { + bool flag = value == (this._npchp == null); + if (flag) + { + this._npchp = (value ? new uint?(this.npchp) : null); + } + } + } + + [ProtoMember(14, Name = "monster_id", DataFormat = DataFormat.TwosComplement)] + public List monster_id + { + get + { + return this._monster_id; + } + } + + [ProtoMember(15, Name = "monster_num", DataFormat = DataFormat.TwosComplement)] + public List monster_num + { + get + { + return this._monster_num; + } + } + + private int? _timespan; + + private readonly List _pickDoodadWaveID = new List(); + + private int? _Combo; + + private int? _BeHit; + + private uint? _hppercent; + + private readonly List _smallmonster = new List(); + + private readonly List _bossrush = new List(); + + private int? _OpenChest; + + private CliAntiCheatInfo _anticheatInfo = null; + + private bool? _isfailed; + + private BattleFailedData _failedinfo = null; + + private uint? _found; + + private uint? _npchp; + + private readonly List _monster_id = new List(); + + private readonly List _monster_num = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetimespan() + { + return this.timespanSpecified; + } + + private void Resettimespan() + { + this.timespanSpecified = false; + } + + private bool ShouldSerializeCombo() + { + return this.ComboSpecified; + } + + private void ResetCombo() + { + this.ComboSpecified = false; + } + + private bool ShouldSerializeBeHit() + { + return this.BeHitSpecified; + } + + private void ResetBeHit() + { + this.BeHitSpecified = false; + } + + private bool ShouldSerializehppercent() + { + return this.hppercentSpecified; + } + + private void Resethppercent() + { + this.hppercentSpecified = false; + } + + private bool ShouldSerializeOpenChest() + { + return this.OpenChestSpecified; + } + + private void ResetOpenChest() + { + this.OpenChestSpecified = false; + } + + private bool ShouldSerializeisfailed() + { + return this.isfailedSpecified; + } + + private void Resetisfailed() + { + this.isfailedSpecified = false; + } + + private bool ShouldSerializefound() + { + return this.foundSpecified; + } + + private void Resetfound() + { + this.foundSpecified = false; + } + + private bool ShouldSerializenpchp() + { + return this.npchpSpecified; + } + + private void Resetnpchp() + { + this.npchpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleData.cs.meta new file mode 100644 index 00000000..2b0a2ca7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa7e6a26b15b2d547a97afe546bfb587 +timeCreated: 1611404903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs new file mode 100644 index 00000000..d5ab64b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFailedData")] + [Serializable] + public class BattleFailedData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "timespan", DataFormat = DataFormat.TwosComplement)] + public uint timespan + { + get + { + return this._timespan ?? 0u; + } + set + { + this._timespan = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timespanSpecified + { + get + { + return this._timespan != null; + } + set + { + bool flag = value == (this._timespan == null); + if (flag) + { + this._timespan = (value ? new uint?(this.timespan) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hppercent", DataFormat = DataFormat.TwosComplement)] + public uint hppercent + { + get + { + return this._hppercent ?? 0u; + } + set + { + this._hppercent = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hppercentSpecified + { + get + { + return this._hppercent != null; + } + set + { + bool flag = value == (this._hppercent == null); + if (flag) + { + this._hppercent = (value ? new uint?(this.hppercent) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "deathcount", DataFormat = DataFormat.TwosComplement)] + public uint deathcount + { + get + { + return this._deathcount ?? 0u; + } + set + { + this._deathcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathcountSpecified + { + get + { + return this._deathcount != null; + } + set + { + bool flag = value == (this._deathcount == null); + if (flag) + { + this._deathcount = (value ? new uint?(this.deathcount) : null); + } + } + } + + private uint? _timespan; + + private uint? _hppercent; + + private uint? _deathcount; + + private IExtension extensionObject; + + private bool ShouldSerializetimespan() + { + return this.timespanSpecified; + } + + private void Resettimespan() + { + this.timespanSpecified = false; + } + + private bool ShouldSerializehppercent() + { + return this.hppercentSpecified; + } + + private void Resethppercent() + { + this.hppercentSpecified = false; + } + + private bool ShouldSerializedeathcount() + { + return this.deathcountSpecified; + } + + private void Resetdeathcount() + { + this.deathcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs.meta new file mode 100644 index 00000000..0915bee1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFailedData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a776a0b9e22d49d44a9817f0320d5b9f +timeCreated: 1611404292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumArg.cs new file mode 100644 index 00000000..a464f1ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldAwardNumArg")] + [Serializable] + public class BattleFieldAwardNumArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumArg.cs.meta new file mode 100644 index 00000000..b789cbb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8171504454dc5349951a55112ce01bb +timeCreated: 1611404891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumRes.cs new file mode 100644 index 00000000..150b0389 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumRes.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldAwardNumRes")] + [Serializable] + public class BattleFieldAwardNumRes : IExtensible + { + [ProtoMember(1, Name = "award", DataFormat = DataFormat.Default)] + public List award + { + get + { + return this._award; + } + } + + private readonly List _award = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumRes.cs.meta new file mode 100644 index 00000000..7cd1f6ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldAwardNumRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b43d29ae1958edc4fb48298b8a635476 +timeCreated: 1611404392 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs new file mode 100644 index 00000000..589bcfad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs @@ -0,0 +1,504 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldBattleResult")] + [Serializable] + public class BattleFieldBattleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "killer", DataFormat = DataFormat.TwosComplement)] + public uint killer + { + get + { + return this._killer ?? 0u; + } + set + { + this._killer = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killerSpecified + { + get + { + return this._killer != null; + } + set + { + bool flag = value == (this._killer == null); + if (flag) + { + this._killer = (value ? new uint?(this.killer) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "death", DataFormat = DataFormat.TwosComplement)] + public uint death + { + get + { + return this._death ?? 0u; + } + set + { + this._death = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathSpecified + { + get + { + return this._death != null; + } + set + { + bool flag = value == (this._death == null); + if (flag) + { + this._death = (value ? new uint?(this.death) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "svrname", DataFormat = DataFormat.Default)] + public string svrname + { + get + { + return this._svrname ?? ""; + } + set + { + this._svrname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool svrnameSpecified + { + get + { + return this._svrname != null; + } + set + { + bool flag = value == (this._svrname == null); + if (flag) + { + this._svrname = (value ? this.svrname : null); + } + } + } + + [ProtoMember(7, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(8, IsRequired = false, Name = "ismvp", DataFormat = DataFormat.Default)] + public bool ismvp + { + get + { + return this._ismvp ?? false; + } + set + { + this._ismvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismvpSpecified + { + get + { + return this._ismvp != null; + } + set + { + bool flag = value == (this._ismvp == null); + if (flag) + { + this._ismvp = (value ? new bool?(this.ismvp) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "hurt", DataFormat = DataFormat.TwosComplement)] + public double hurt + { + get + { + return this._hurt ?? 0.0; + } + set + { + this._hurt = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hurtSpecified + { + get + { + return this._hurt != null; + } + set + { + bool flag = value == (this._hurt == null); + if (flag) + { + this._hurt = (value ? new double?(this.hurt) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] + public uint job + { + get + { + return this._job ?? 0u; + } + set + { + this._job = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jobSpecified + { + get + { + return this._job != null; + } + set + { + bool flag = value == (this._job == null); + if (flag) + { + this._job = (value ? new uint?(this.job) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "killstreak", DataFormat = DataFormat.TwosComplement)] + public uint killstreak + { + get + { + return this._killstreak ?? 0u; + } + set + { + this._killstreak = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killstreakSpecified + { + get + { + return this._killstreak != null; + } + set + { + bool flag = value == (this._killstreak == null); + if (flag) + { + this._killstreak = (value ? new uint?(this.killstreak) : null); + } + } + } + + private ulong? _roleid; + + private uint? _rank; + + private uint? _point; + + private uint? _killer; + + private uint? _death; + + private string _svrname; + + private readonly List _items = new List(); + + private bool? _ismvp; + + private double? _hurt; + + private string _name; + + private uint? _job; + + private uint? _killstreak; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializekiller() + { + return this.killerSpecified; + } + + private void Resetkiller() + { + this.killerSpecified = false; + } + + private bool ShouldSerializedeath() + { + return this.deathSpecified; + } + + private void Resetdeath() + { + this.deathSpecified = false; + } + + private bool ShouldSerializesvrname() + { + return this.svrnameSpecified; + } + + private void Resetsvrname() + { + this.svrnameSpecified = false; + } + + private bool ShouldSerializeismvp() + { + return this.ismvpSpecified; + } + + private void Resetismvp() + { + this.ismvpSpecified = false; + } + + private bool ShouldSerializehurt() + { + return this.hurtSpecified; + } + + private void Resethurt() + { + this.hurtSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializejob() + { + return this.jobSpecified; + } + + private void Resetjob() + { + this.jobSpecified = false; + } + + private bool ShouldSerializekillstreak() + { + return this.killstreakSpecified; + } + + private void Resetkillstreak() + { + this.killstreakSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs.meta new file mode 100644 index 00000000..065556e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldBattleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 539f96a770490dd41b17e85cb8b274d6 +timeCreated: 1611403712 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs new file mode 100644 index 00000000..32b13015 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs @@ -0,0 +1,305 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldData")] + [Serializable] + public class BattleFieldData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "firstrankcount", DataFormat = DataFormat.TwosComplement)] + public uint firstrankcount + { + get + { + return this._firstrankcount ?? 0u; + } + set + { + this._firstrankcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstrankcountSpecified + { + get + { + return this._firstrankcount != null; + } + set + { + bool flag = value == (this._firstrankcount == null); + if (flag) + { + this._firstrankcount = (value ? new uint?(this.firstrankcount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "totalkillcount", DataFormat = DataFormat.TwosComplement)] + public uint totalkillcount + { + get + { + return this._totalkillcount ?? 0u; + } + set + { + this._totalkillcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalkillcountSpecified + { + get + { + return this._totalkillcount != null; + } + set + { + bool flag = value == (this._totalkillcount == null); + if (flag) + { + this._totalkillcount = (value ? new uint?(this.totalkillcount) : null); + } + } + } + + [ProtoMember(3, Name = "point", DataFormat = DataFormat.Default)] + public List point + { + get + { + return this._point; + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastupdatetime", DataFormat = DataFormat.TwosComplement)] + public uint lastupdatetime + { + get + { + return this._lastupdatetime ?? 0u; + } + set + { + this._lastupdatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastupdatetimeSpecified + { + get + { + return this._lastupdatetime != null; + } + set + { + bool flag = value == (this._lastupdatetime == null); + if (flag) + { + this._lastupdatetime = (value ? new uint?(this.lastupdatetime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "hell", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HellDropInfoAll hell + { + get + { + return this._hell; + } + set + { + this._hell = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "weekpoint", DataFormat = DataFormat.TwosComplement)] + public uint weekpoint + { + get + { + return this._weekpoint ?? 0u; + } + set + { + this._weekpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekpointSpecified + { + get + { + return this._weekpoint != null; + } + set + { + bool flag = value == (this._weekpoint == null); + if (flag) + { + this._weekpoint = (value ? new uint?(this.weekpoint) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "dayupdatetime", DataFormat = DataFormat.TwosComplement)] + public uint dayupdatetime + { + get + { + return this._dayupdatetime ?? 0u; + } + set + { + this._dayupdatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dayupdatetimeSpecified + { + get + { + return this._dayupdatetime != null; + } + set + { + bool flag = value == (this._dayupdatetime == null); + if (flag) + { + this._dayupdatetime = (value ? new uint?(this.dayupdatetime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "version", DataFormat = DataFormat.TwosComplement)] + public uint version + { + get + { + return this._version ?? 0u; + } + set + { + this._version = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool versionSpecified + { + get + { + return this._version != null; + } + set + { + bool flag = value == (this._version == null); + if (flag) + { + this._version = (value ? new uint?(this.version) : null); + } + } + } + + private uint? _firstrankcount; + + private uint? _totalkillcount; + + private readonly List _point = new List(); + + private uint? _lastupdatetime; + + private HellDropInfoAll _hell = null; + + private uint? _weekpoint; + + private uint? _dayupdatetime; + + private uint? _version; + + private IExtension extensionObject; + + private bool ShouldSerializefirstrankcount() + { + return this.firstrankcountSpecified; + } + + private void Resetfirstrankcount() + { + this.firstrankcountSpecified = false; + } + + private bool ShouldSerializetotalkillcount() + { + return this.totalkillcountSpecified; + } + + private void Resettotalkillcount() + { + this.totalkillcountSpecified = false; + } + + private bool ShouldSerializelastupdatetime() + { + return this.lastupdatetimeSpecified; + } + + private void Resetlastupdatetime() + { + this.lastupdatetimeSpecified = false; + } + + private bool ShouldSerializeweekpoint() + { + return this.weekpointSpecified; + } + + private void Resetweekpoint() + { + this.weekpointSpecified = false; + } + + private bool ShouldSerializedayupdatetime() + { + return this.dayupdatetimeSpecified; + } + + private void Resetdayupdatetime() + { + this.dayupdatetimeSpecified = false; + } + + private bool ShouldSerializeversion() + { + return this.versionSpecified; + } + + private void Resetversion() + { + this.versionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs.meta new file mode 100644 index 00000000..a254e8af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d67a7b7296c0a4248893b2ece83d15c7 +timeCreated: 1611404631 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldLeftAward.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldLeftAward.cs new file mode 100644 index 00000000..a3882d55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldLeftAward.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldLeftAward")] + [Serializable] + public class BattleFieldLeftAward : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _id; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldLeftAward.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldLeftAward.cs.meta new file mode 100644 index 00000000..308be17a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldLeftAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e465ac8ce25c37438fc4972f8e43d1f +timeCreated: 1611403904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldPoint.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldPoint.cs new file mode 100644 index 00000000..6d9e8562 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldPoint.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldPoint")] + [Serializable] + public class BattleFieldPoint : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _id; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldPoint.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldPoint.cs.meta new file mode 100644 index 00000000..44ebe0b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldPoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7437e1bfe76858a429f73aafc28710fd +timeCreated: 1611403942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRank.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRank.cs new file mode 100644 index 00000000..a75d2d3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRank.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldRank")] + [Serializable] + public class BattleFieldRank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _point; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRank.cs.meta new file mode 100644 index 00000000..66ed719c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80cbdabb11fd606499c4ce35bf8c0bf0 +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankArg.cs new file mode 100644 index 00000000..005fbfad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldRankArg")] + [Serializable] + public class BattleFieldRankArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankArg.cs.meta new file mode 100644 index 00000000..ca8de336 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abe0d844c3ce6be4583c6ba2ca488824 +timeCreated: 1611404308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankRes.cs new file mode 100644 index 00000000..5d2d62b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankRes.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldRankRes")] + [Serializable] + public class BattleFieldRankRes : IExtensible + { + [ProtoMember(1, Name = "ranks", DataFormat = DataFormat.Default)] + public List ranks + { + get + { + return this._ranks; + } + } + + private readonly List _ranks = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankRes.cs.meta new file mode 100644 index 00000000..bf29086e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRankRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 352b49c59fb85d240bd3faf605c02621 +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReadyInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReadyInfo.cs new file mode 100644 index 00000000..bf7e86f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReadyInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldReadyInfo")] + [Serializable] + public class BattleFieldReadyInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "round", DataFormat = DataFormat.TwosComplement)] + public uint round + { + get + { + return this._round ?? 0u; + } + set + { + this._round = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roundSpecified + { + get + { + return this._round != null; + } + set + { + bool flag = value == (this._round == null); + if (flag) + { + this._round = (value ? new uint?(this.round) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "failed", DataFormat = DataFormat.Default)] + public bool failed + { + get + { + return this._failed ?? false; + } + set + { + this._failed = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool failedSpecified + { + get + { + return this._failed != null; + } + set + { + bool flag = value == (this._failed == null); + if (flag) + { + this._failed = (value ? new bool?(this.failed) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "end", DataFormat = DataFormat.Default)] + public bool end + { + get + { + return this._end ?? false; + } + set + { + this._end = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endSpecified + { + get + { + return this._end != null; + } + set + { + bool flag = value == (this._end == null); + if (flag) + { + this._end = (value ? new bool?(this.end) : null); + } + } + } + + private uint? _round; + + private uint? _time; + + private bool? _failed; + + private bool? _end; + + private IExtension extensionObject; + + private bool ShouldSerializeround() + { + return this.roundSpecified; + } + + private void Resetround() + { + this.roundSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializefailed() + { + return this.failedSpecified; + } + + private void Resetfailed() + { + this.failedSpecified = false; + } + + private bool ShouldSerializeend() + { + return this.endSpecified; + } + + private void Resetend() + { + this.endSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReadyInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReadyInfo.cs.meta new file mode 100644 index 00000000..2d3a0bc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReadyInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f25863e0574cc44d93b9324caace452 +timeCreated: 1611403207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReliveInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReliveInfo.cs new file mode 100644 index 00000000..8262a67e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReliveInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldReliveInfo")] + [Serializable] + public class BattleFieldReliveInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReliveInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReliveInfo.cs.meta new file mode 100644 index 00000000..5c3d9164 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldReliveInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74133db36d6972347992a3453de0b11c +timeCreated: 1611403942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainst.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainst.cs new file mode 100644 index 00000000..bcdffcb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainst.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldRoleAgainst")] + [Serializable] + public class BattleFieldRoleAgainst : IExtensible + { + [ProtoMember(1, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + private readonly List _roles = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainst.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainst.cs.meta new file mode 100644 index 00000000..f444c144 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainst.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bae5e4d0015429409b6d22740e79b39 +timeCreated: 1611403688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainstArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainstArg.cs new file mode 100644 index 00000000..e8b9ce92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainstArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldRoleAgainstArg")] + [Serializable] + public class BattleFieldRoleAgainstArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainstArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainstArg.cs.meta new file mode 100644 index 00000000..eebfae83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleAgainstArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee4878201a162cc4c913fa1f3c3a3939 +timeCreated: 1611404795 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs new file mode 100644 index 00000000..50d9e622 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldRoleSimpleInfo")] + [Serializable] + public class BattleFieldRoleSimpleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs.meta new file mode 100644 index 00000000..53c8ffb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldRoleSimpleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8d0cc3600681b64a907f77d7d068257 +timeCreated: 1611404640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldType.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldType.cs new file mode 100644 index 00000000..28d2c0db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleFieldType")] + public enum BattleFieldType + { + [ProtoEnum(Name = "BATTLE_FIELD_READY_ENTER", Value = 1)] + BATTLE_FIELD_READY_ENTER = 1, + [ProtoEnum(Name = "BATTLE_FIELD_READY_LEAVE", Value = 2)] + BATTLE_FIELD_READY_LEAVE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldType.cs.meta new file mode 100644 index 00000000..1a3ecb14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleFieldType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7815f56b12813b049af0a6ec04a3cebb +timeCreated: 1611403957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleLogReport.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleLogReport.cs new file mode 100644 index 00000000..90d110c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleLogReport.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleLogReport")] + [Serializable] + public class BattleLogReport : IExtensible + { + [ProtoMember(1, Name = "key", DataFormat = DataFormat.Default)] + public List key + { + get + { + return this._key; + } + } + + [ProtoMember(2, Name = "value", DataFormat = DataFormat.Default)] + public List value + { + get + { + return this._value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private readonly List _key = new List(); + + private readonly List _value = new List(); + + private uint? _type; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleLogReport.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleLogReport.cs.meta new file mode 100644 index 00000000..3456043b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleLogReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8bdc5d89ae60834db7520df81e54feb +timeCreated: 1611404895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs new file mode 100644 index 00000000..f57795b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleRewardChest")] + [Serializable] + public class BattleRewardChest : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "chestType", DataFormat = DataFormat.TwosComplement)] + public int chestType + { + get + { + return this._chestType ?? 0; + } + set + { + this._chestType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chestTypeSpecified + { + get + { + return this._chestType != null; + } + set + { + bool flag = value == (this._chestType == null); + if (flag) + { + this._chestType = (value ? new int?(this.chestType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public int itemID + { + get + { + return this._itemID ?? 0; + } + set + { + this._itemID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new int?(this.itemID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemCount", DataFormat = DataFormat.TwosComplement)] + public int itemCount + { + get + { + return this._itemCount ?? 0; + } + set + { + this._itemCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemCountSpecified + { + get + { + return this._itemCount != null; + } + set + { + bool flag = value == (this._itemCount == null); + if (flag) + { + this._itemCount = (value ? new int?(this.itemCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isbind", DataFormat = DataFormat.Default)] + public bool isbind + { + get + { + return this._isbind ?? false; + } + set + { + this._isbind = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbindSpecified + { + get + { + return this._isbind != null; + } + set + { + bool flag = value == (this._isbind == null); + if (flag) + { + this._isbind = (value ? new bool?(this.isbind) : null); + } + } + } + + private int? _chestType; + + private int? _itemID; + + private int? _itemCount; + + private bool? _isbind; + + private IExtension extensionObject; + + private bool ShouldSerializechestType() + { + return this.chestTypeSpecified; + } + + private void ResetchestType() + { + this.chestTypeSpecified = false; + } + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializeitemCount() + { + return this.itemCountSpecified; + } + + private void ResetitemCount() + { + this.itemCountSpecified = false; + } + + private bool ShouldSerializeisbind() + { + return this.isbindSpecified; + } + + private void Resetisbind() + { + this.isbindSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs.meta new file mode 100644 index 00000000..8eab6095 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleRewardChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 009d72dea86b68e46b2aebcfbd9abb38 +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleStarData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleStarData.cs new file mode 100644 index 00000000..d802550e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleStarData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleStarData")] + [Serializable] + public class BattleStarData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "star", DataFormat = DataFormat.TwosComplement)] + public uint star + { + get + { + return this._star ?? 0u; + } + set + { + this._star = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool starSpecified + { + get + { + return this._star != null; + } + set + { + bool flag = value == (this._star == null); + if (flag) + { + this._star = (value ? new uint?(this.star) : null); + } + } + } + + private ulong? _roleid; + + private uint? _star; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializestar() + { + return this.starSpecified; + } + + private void Resetstar() + { + this.starSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleStarData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleStarData.cs.meta new file mode 100644 index 00000000..16b15ee5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleStarData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d768595e59d7ea49bda6b4db8eb8aff +timeCreated: 1611403901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsData.cs new file mode 100644 index 00000000..0e033c38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsData.cs @@ -0,0 +1,492 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleStatisticsData")] + [Serializable] + public class BattleStatisticsData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "damageall", DataFormat = DataFormat.TwosComplement)] + public double damageall + { + get + { + return this._damageall ?? 0.0; + } + set + { + this._damageall = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool damageallSpecified + { + get + { + return this._damageall != null; + } + set + { + bool flag = value == (this._damageall == null); + if (flag) + { + this._damageall = (value ? new double?(this.damageall) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "deadcount", DataFormat = DataFormat.TwosComplement)] + public uint deadcount + { + get + { + return this._deadcount ?? 0u; + } + set + { + this._deadcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deadcountSpecified + { + get + { + return this._deadcount != null; + } + set + { + bool flag = value == (this._deadcount == null); + if (flag) + { + this._deadcount = (value ? new uint?(this.deadcount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public uint killcount + { + get + { + return this._killcount ?? 0u; + } + set + { + this._killcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new uint?(this.killcount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "killcontinue", DataFormat = DataFormat.TwosComplement)] + public uint killcontinue + { + get + { + return this._killcontinue ?? 0u; + } + set + { + this._killcontinue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcontinueSpecified + { + get + { + return this._killcontinue != null; + } + set + { + bool flag = value == (this._killcontinue == null); + if (flag) + { + this._killcontinue = (value ? new uint?(this.killcontinue) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "treatcount", DataFormat = DataFormat.TwosComplement)] + public uint treatcount + { + get + { + return this._treatcount ?? 0u; + } + set + { + this._treatcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool treatcountSpecified + { + get + { + return this._treatcount != null; + } + set + { + bool flag = value == (this._treatcount == null); + if (flag) + { + this._treatcount = (value ? new uint?(this.treatcount) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "combomax", DataFormat = DataFormat.TwosComplement)] + public uint combomax + { + get + { + return this._combomax ?? 0u; + } + set + { + this._combomax = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool combomaxSpecified + { + get + { + return this._combomax != null; + } + set + { + bool flag = value == (this._combomax == null); + if (flag) + { + this._combomax = (value ? new uint?(this.combomax) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "assitnum", DataFormat = DataFormat.TwosComplement)] + public uint assitnum + { + get + { + return this._assitnum ?? 0u; + } + set + { + this._assitnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool assitnumSpecified + { + get + { + return this._assitnum != null; + } + set + { + bool flag = value == (this._assitnum == null); + if (flag) + { + this._assitnum = (value ? new uint?(this.assitnum) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _type; + + private uint? _profession; + + private double? _damageall; + + private uint? _deadcount; + + private uint? _killcount; + + private uint? _killcontinue; + + private uint? _treatcount; + + private uint? _combomax; + + private uint? _assitnum; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializedamageall() + { + return this.damageallSpecified; + } + + private void Resetdamageall() + { + this.damageallSpecified = false; + } + + private bool ShouldSerializedeadcount() + { + return this.deadcountSpecified; + } + + private void Resetdeadcount() + { + this.deadcountSpecified = false; + } + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializekillcontinue() + { + return this.killcontinueSpecified; + } + + private void Resetkillcontinue() + { + this.killcontinueSpecified = false; + } + + private bool ShouldSerializetreatcount() + { + return this.treatcountSpecified; + } + + private void Resettreatcount() + { + this.treatcountSpecified = false; + } + + private bool ShouldSerializecombomax() + { + return this.combomaxSpecified; + } + + private void Resetcombomax() + { + this.combomaxSpecified = false; + } + + private bool ShouldSerializeassitnum() + { + return this.assitnumSpecified; + } + + private void Resetassitnum() + { + this.assitnumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsData.cs.meta new file mode 100644 index 00000000..237edf0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 310654eb2e9667446a1e16e33a9eb967 +timeCreated: 1611403523 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsNtf.cs new file mode 100644 index 00000000..de957bee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsNtf.cs @@ -0,0 +1,84 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleStatisticsNtf")] + [Serializable] + public class BattleStatisticsNtf : IExtensible + { + [ProtoMember(1, Name = "skillID", DataFormat = DataFormat.TwosComplement)] + public List skillID + { + get + { + return this._skillID; + } + } + + [ProtoMember(2, Name = "skillCount", DataFormat = DataFormat.TwosComplement)] + public List skillCount + { + get + { + return this._skillCount; + } + } + + [ProtoMember(3, Name = "skillValue", DataFormat = DataFormat.TwosComplement)] + public List skillValue + { + get + { + return this._skillValue; + } + } + + [ProtoMember(4, Name = "mobID", DataFormat = DataFormat.TwosComplement)] + public List mobID + { + get + { + return this._mobID; + } + } + + [ProtoMember(5, Name = "mobCount", DataFormat = DataFormat.TwosComplement)] + public List mobCount + { + get + { + return this._mobCount; + } + } + + [ProtoMember(6, Name = "mobValue", DataFormat = DataFormat.TwosComplement)] + public List mobValue + { + get + { + return this._mobValue; + } + } + + private readonly List _skillID = new List(); + + private readonly List _skillCount = new List(); + + private readonly List _skillValue = new List(); + + private readonly List _mobID = new List(); + + private readonly List _mobCount = new List(); + + private readonly List _mobValue = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsNtf.cs.meta new file mode 100644 index 00000000..0377eac4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleStatisticsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01a00fc746ed5e64c9fae06e96a0fd8d +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleWatcherNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/BattleWatcherNtf.cs new file mode 100644 index 00000000..5282c83b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleWatcherNtf.cs @@ -0,0 +1,187 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BattleWatcherNtf")] + [Serializable] + public class BattleWatcherNtf : IExtensible + { + [ProtoMember(1, Name = "data", DataFormat = DataFormat.Default)] + public List data + { + get + { + return this._data; + } + } + + [ProtoMember(2, IsRequired = false, Name = "watchinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public StageWatchInfo watchinfo + { + get + { + return this._watchinfo; + } + set + { + this._watchinfo = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "mvp", DataFormat = DataFormat.TwosComplement)] + public ulong mvp + { + get + { + return this._mvp ?? 0UL; + } + set + { + this._mvp = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mvpSpecified + { + get + { + return this._mvp != null; + } + set + { + bool flag = value == (this._mvp == null); + if (flag) + { + this._mvp = (value ? new ulong?(this.mvp) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "winuid", DataFormat = DataFormat.TwosComplement)] + public ulong winuid + { + get + { + return this._winuid ?? 0UL; + } + set + { + this._winuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winuidSpecified + { + get + { + return this._winuid != null; + } + set + { + bool flag = value == (this._winuid == null); + if (flag) + { + this._winuid = (value ? new ulong?(this.winuid) : null); + } + } + } + + [ProtoMember(5, Name = "star", DataFormat = DataFormat.Default)] + public List star + { + get + { + return this._star; + } + } + + [ProtoMember(6, IsRequired = false, Name = "scenetype", DataFormat = DataFormat.TwosComplement)] + public uint scenetype + { + get + { + return this._scenetype ?? 0u; + } + set + { + this._scenetype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scenetypeSpecified + { + get + { + return this._scenetype != null; + } + set + { + bool flag = value == (this._scenetype == null); + if (flag) + { + this._scenetype = (value ? new uint?(this.scenetype) : null); + } + } + } + + private readonly List _data = new List(); + + private StageWatchInfo _watchinfo = null; + + private ulong? _mvp; + + private ulong? _winuid; + + private readonly List _star = new List(); + + private uint? _scenetype; + + private IExtension extensionObject; + + private bool ShouldSerializemvp() + { + return this.mvpSpecified; + } + + private void Resetmvp() + { + this.mvpSpecified = false; + } + + private bool ShouldSerializewinuid() + { + return this.winuidSpecified; + } + + private void Resetwinuid() + { + this.winuidSpecified = false; + } + + private bool ShouldSerializescenetype() + { + return this.scenetypeSpecified; + } + + private void Resetscenetype() + { + this.scenetypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BattleWatcherNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BattleWatcherNtf.cs.meta new file mode 100644 index 00000000..ab7a7a9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BattleWatcherNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ccc657f6afd79a84a84d9da322a9df80 +timeCreated: 1611404552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeBattleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeBattleResult.cs new file mode 100644 index 00000000..22c8b4fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeBattleResult.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BigMeleeBattleResult")] + [Serializable] + public class BigMeleeBattleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "kill", DataFormat = DataFormat.TwosComplement)] + public uint kill + { + get + { + return this._kill ?? 0u; + } + set + { + this._kill = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killSpecified + { + get + { + return this._kill != null; + } + set + { + bool flag = value == (this._kill == null); + if (flag) + { + this._kill = (value ? new uint?(this.kill) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "death", DataFormat = DataFormat.TwosComplement)] + public uint death + { + get + { + return this._death ?? 0u; + } + set + { + this._death = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathSpecified + { + get + { + return this._death != null; + } + set + { + bool flag = value == (this._death == null); + if (flag) + { + this._death = (value ? new uint?(this.death) : null); + } + } + } + + [ProtoMember(6, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private ulong? _roleid; + + private uint? _rank; + + private uint? _score; + + private uint? _kill; + + private uint? _death; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializekill() + { + return this.killSpecified; + } + + private void Resetkill() + { + this.killSpecified = false; + } + + private bool ShouldSerializedeath() + { + return this.deathSpecified; + } + + private void Resetdeath() + { + this.deathSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeBattleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeBattleResult.cs.meta new file mode 100644 index 00000000..03b4822d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeBattleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81e0429756c1dea489382c726a64afc7 +timeCreated: 1611404038 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePoint.cs b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePoint.cs new file mode 100644 index 00000000..80380125 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePoint.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BigMeleePoint")] + [Serializable] + public class BigMeleePoint : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "posxz", DataFormat = DataFormat.TwosComplement)] + public uint posxz + { + get + { + return this._posxz ?? 0u; + } + set + { + this._posxz = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posxzSpecified + { + get + { + return this._posxz != null; + } + set + { + bool flag = value == (this._posxz == null); + if (flag) + { + this._posxz = (value ? new uint?(this.posxz) : null); + } + } + } + + private uint? _point; + + private uint? _posxz; + + private IExtension extensionObject; + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializeposxz() + { + return this.posxzSpecified; + } + + private void Resetposxz() + { + this.posxzSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePoint.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePoint.cs.meta new file mode 100644 index 00000000..1a18f64b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b195be503f3df4546acccee3e2d335d3 +timeCreated: 1611404356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePointOutLook.cs b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePointOutLook.cs new file mode 100644 index 00000000..5c564960 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePointOutLook.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BigMeleePointOutLook")] + [Serializable] + public class BigMeleePointOutLook : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + private ulong? _roleid; + + private uint? _point; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePointOutLook.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePointOutLook.cs.meta new file mode 100644 index 00000000..3b8ecd51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleePointOutLook.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25c91b3e978a6da47b9b3479f1c932f1 +timeCreated: 1611403466 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeRelive.cs b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeRelive.cs new file mode 100644 index 00000000..bb64e2b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeRelive.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BigMeleeRelive")] + [Serializable] + public class BigMeleeRelive : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeRelive.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeRelive.cs.meta new file mode 100644 index 00000000..a3f8ab4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BigMeleeRelive.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d7c9efff9bc11f44e88c5a5ff2002656 +timeCreated: 1611404637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BindSkillRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BindSkillRes.cs new file mode 100644 index 00000000..1e1b7397 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BindSkillRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BindSkillRes")] + [Serializable] + public class BindSkillRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "skillslot", DataFormat = DataFormat.TwosComplement)] + public List skillslot + { + get + { + return this._skillslot; + } + } + + private ErrorCode? _errorcode; + + private readonly List _skillslot = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BindSkillRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BindSkillRes.cs.meta new file mode 100644 index 00000000..280fde0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BindSkillRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d320e611fd7bc9644ac5b1ae6a772ee4 +timeCreated: 1611404598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BingSkillArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BingSkillArg.cs new file mode 100644 index 00000000..07fbf2a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BingSkillArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BingSkillArg")] + [Serializable] + public class BingSkillArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public int slot + { + get + { + return this._slot ?? 0; + } + set + { + this._slot = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new int?(this.slot) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "skillhash", DataFormat = DataFormat.TwosComplement)] + public uint skillhash + { + get + { + return this._skillhash ?? 0u; + } + set + { + this._skillhash = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillhashSpecified + { + get + { + return this._skillhash != null; + } + set + { + bool flag = value == (this._skillhash == null); + if (flag) + { + this._skillhash = (value ? new uint?(this.skillhash) : null); + } + } + } + + private int? _slot; + + private uint? _skillhash; + + private IExtension extensionObject; + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + private bool ShouldSerializeskillhash() + { + return this.skillhashSpecified; + } + + private void Resetskillhash() + { + this.skillhashSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BingSkillArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BingSkillArg.cs.meta new file mode 100644 index 00000000..894fbc0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BingSkillArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa907ae279c007742abd09dd064a680a +timeCreated: 1611404303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BlackListNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/BlackListNtf.cs new file mode 100644 index 00000000..076e9768 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BlackListNtf.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BlackListNtf")] + [Serializable] + public class BlackListNtf : IExtensible + { + [ProtoMember(1, Name = "blacklist", DataFormat = DataFormat.Default)] + public List blacklist + { + get + { + return this._blacklist; + } + } + + private readonly List _blacklist = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BlackListNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BlackListNtf.cs.meta new file mode 100644 index 00000000..3c8895ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BlackListNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9ff0f20a0769f94cb0d2c730b4d91ba +timeCreated: 1611404433 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BlackListReport.cs b/Client/Assets/Scripts/XMainClient/KKSG/BlackListReport.cs new file mode 100644 index 00000000..ffd83788 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BlackListReport.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BlackListReport")] + [Serializable] + public class BlackListReport : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BlackListReport.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BlackListReport.cs.meta new file mode 100644 index 00000000..782da596 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BlackListReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d24809a78fbaf9b4da696ce2d18bb1f0 +timeCreated: 1611404595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BossRushArg.cs new file mode 100644 index 00000000..ee701f5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BossRushArg")] + [Serializable] + public class BossRushArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public BossRushReqStatus type + { + get + { + return this._type ?? BossRushReqStatus.BOSSRUSH_RESULT_WIN; + } + set + { + this._type = new BossRushReqStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new BossRushReqStatus?(this.type) : null); + } + } + } + + private BossRushReqStatus? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BossRushArg.cs.meta new file mode 100644 index 00000000..d624165e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a4205d62d23b5344af8b5ff649a62e7 +timeCreated: 1611403664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BossRushData.cs new file mode 100644 index 00000000..7c03d100 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushData.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BossRushData")] + [Serializable] + public class BossRushData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "confid", DataFormat = DataFormat.TwosComplement)] + public int confid + { + get + { + return this._confid ?? 0; + } + set + { + this._confid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool confidSpecified + { + get + { + return this._confid != null; + } + set + { + bool flag = value == (this._confid == null); + if (flag) + { + this._confid = (value ? new int?(this.confid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "buffid1", DataFormat = DataFormat.TwosComplement)] + public int buffid1 + { + get + { + return this._buffid1 ?? 0; + } + set + { + this._buffid1 = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buffid1Specified + { + get + { + return this._buffid1 != null; + } + set + { + bool flag = value == (this._buffid1 == null); + if (flag) + { + this._buffid1 = (value ? new int?(this.buffid1) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "buffid2", DataFormat = DataFormat.TwosComplement)] + public int buffid2 + { + get + { + return this._buffid2 ?? 0; + } + set + { + this._buffid2 = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buffid2Specified + { + get + { + return this._buffid2 != null; + } + set + { + bool flag = value == (this._buffid2 == null); + if (flag) + { + this._buffid2 = (value ? new int?(this.buffid2) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "currank", DataFormat = DataFormat.TwosComplement)] + public int currank + { + get + { + return this._currank ?? 0; + } + set + { + this._currank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currankSpecified + { + get + { + return this._currank != null; + } + set + { + bool flag = value == (this._currank == null); + if (flag) + { + this._currank = (value ? new int?(this.currank) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "maxrank", DataFormat = DataFormat.TwosComplement)] + public int maxrank + { + get + { + return this._maxrank ?? 0; + } + set + { + this._maxrank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxrankSpecified + { + get + { + return this._maxrank != null; + } + set + { + bool flag = value == (this._maxrank == null); + if (flag) + { + this._maxrank = (value ? new int?(this.maxrank) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "currefreshcount", DataFormat = DataFormat.TwosComplement)] + public int currefreshcount + { + get + { + return this._currefreshcount ?? 0; + } + set + { + this._currefreshcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currefreshcountSpecified + { + get + { + return this._currefreshcount != null; + } + set + { + bool flag = value == (this._currefreshcount == null); + if (flag) + { + this._currefreshcount = (value ? new int?(this.currefreshcount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "maxrefreshcount", DataFormat = DataFormat.TwosComplement)] + public int maxrefreshcount + { + get + { + return this._maxrefreshcount ?? 0; + } + set + { + this._maxrefreshcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxrefreshcountSpecified + { + get + { + return this._maxrefreshcount != null; + } + set + { + bool flag = value == (this._maxrefreshcount == null); + if (flag) + { + this._maxrefreshcount = (value ? new int?(this.maxrefreshcount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "joincounttoday", DataFormat = DataFormat.TwosComplement)] + public int joincounttoday + { + get + { + return this._joincounttoday ?? 0; + } + set + { + this._joincounttoday = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joincounttodaySpecified + { + get + { + return this._joincounttoday != null; + } + set + { + bool flag = value == (this._joincounttoday == null); + if (flag) + { + this._joincounttoday = (value ? new int?(this.joincounttoday) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "joincountmax", DataFormat = DataFormat.TwosComplement)] + public int joincountmax + { + get + { + return this._joincountmax ?? 0; + } + set + { + this._joincountmax = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joincountmaxSpecified + { + get + { + return this._joincountmax != null; + } + set + { + bool flag = value == (this._joincountmax == null); + if (flag) + { + this._joincountmax = (value ? new int?(this.joincountmax) : null); + } + } + } + + private int? _confid; + + private int? _buffid1; + + private int? _buffid2; + + private int? _currank; + + private int? _maxrank; + + private int? _currefreshcount; + + private int? _maxrefreshcount; + + private int? _joincounttoday; + + private int? _joincountmax; + + private IExtension extensionObject; + + private bool ShouldSerializeconfid() + { + return this.confidSpecified; + } + + private void Resetconfid() + { + this.confidSpecified = false; + } + + private bool ShouldSerializebuffid1() + { + return this.buffid1Specified; + } + + private void Resetbuffid1() + { + this.buffid1Specified = false; + } + + private bool ShouldSerializebuffid2() + { + return this.buffid2Specified; + } + + private void Resetbuffid2() + { + this.buffid2Specified = false; + } + + private bool ShouldSerializecurrank() + { + return this.currankSpecified; + } + + private void Resetcurrank() + { + this.currankSpecified = false; + } + + private bool ShouldSerializemaxrank() + { + return this.maxrankSpecified; + } + + private void Resetmaxrank() + { + this.maxrankSpecified = false; + } + + private bool ShouldSerializecurrefreshcount() + { + return this.currefreshcountSpecified; + } + + private void Resetcurrefreshcount() + { + this.currefreshcountSpecified = false; + } + + private bool ShouldSerializemaxrefreshcount() + { + return this.maxrefreshcountSpecified; + } + + private void Resetmaxrefreshcount() + { + this.maxrefreshcountSpecified = false; + } + + private bool ShouldSerializejoincounttoday() + { + return this.joincounttodaySpecified; + } + + private void Resetjoincounttoday() + { + this.joincounttodaySpecified = false; + } + + private bool ShouldSerializejoincountmax() + { + return this.joincountmaxSpecified; + } + + private void Resetjoincountmax() + { + this.joincountmaxSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BossRushData.cs.meta new file mode 100644 index 00000000..fed645c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90b5c71e47053914c8567df092a6bab7 +timeCreated: 1611404140 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs new file mode 100644 index 00000000..01bc2554 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BossRushPara")] + [Serializable] + public class BossRushPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "win", DataFormat = DataFormat.Default)] + public bool win + { + get + { + return this._win ?? false; + } + set + { + this._win = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winSpecified + { + get + { + return this._win != null; + } + set + { + bool flag = value == (this._win == null); + if (flag) + { + this._win = (value ? new bool?(this.win) : null); + } + } + } + + private int? _rank; + + private bool? _win; + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializewin() + { + return this.winSpecified; + } + + private void Resetwin() + { + this.winSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs.meta new file mode 100644 index 00000000..ca67520f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92c1fe95cf481df4ab7c6f71f2fc3ed4 +timeCreated: 1611404148 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushReqStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/BossRushReqStatus.cs new file mode 100644 index 00000000..f2020d67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushReqStatus.cs @@ -0,0 +1,24 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BossRushReqStatus")] + public enum BossRushReqStatus + { + [ProtoEnum(Name = "BOSSRUSH_RESULT_WIN", Value = 1)] + BOSSRUSH_RESULT_WIN = 1, + [ProtoEnum(Name = "BOSSRUSH_RESULT_FAILED", Value = 2)] + BOSSRUSH_RESULT_FAILED, + [ProtoEnum(Name = "BOSSRUSH_REQ_BASEDATA", Value = 3)] + BOSSRUSH_REQ_BASEDATA, + [ProtoEnum(Name = "BOSSRUSH_REQ_REFRESH", Value = 4)] + BOSSRUSH_REQ_REFRESH, + [ProtoEnum(Name = "BOSSRUSH_REQ_APPEARANCE", Value = 5)] + BOSSRUSH_REQ_APPEARANCE, + [ProtoEnum(Name = "BOSSRUSH_REQ_LEFTCOUNT", Value = 6)] + BOSSRUSH_REQ_LEFTCOUNT, + [ProtoEnum(Name = "BOSSRUSH_REQ_CONTINUE", Value = 7)] + BOSSRUSH_REQ_CONTINUE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushReqStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BossRushReqStatus.cs.meta new file mode 100644 index 00000000..ebb60f2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushReqStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 100f96e1515d09a4d9cd1788df6385a1 +timeCreated: 1611403216 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BossRushRes.cs new file mode 100644 index 00000000..a2834e48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushRes.cs @@ -0,0 +1,137 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BossRushRes")] + [Serializable] + public class BossRushRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ret", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ret + { + get + { + return this._ret ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ret = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool retSpecified + { + get + { + return this._ret != null; + } + set + { + bool flag = value == (this._ret == null); + if (flag) + { + this._ret = (value ? new ErrorCode?(this.ret) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BossRushData data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "bossApp", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearance bossApp + { + get + { + return this._bossApp; + } + set + { + this._bossApp = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "leftcount", DataFormat = DataFormat.TwosComplement)] + public int leftcount + { + get + { + return this._leftcount ?? 0; + } + set + { + this._leftcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftcountSpecified + { + get + { + return this._leftcount != null; + } + set + { + bool flag = value == (this._leftcount == null); + if (flag) + { + this._leftcount = (value ? new int?(this.leftcount) : null); + } + } + } + + private ErrorCode? _ret; + + private BossRushData _data = null; + + private UnitAppearance _bossApp = null; + + private int? _leftcount; + + private IExtension extensionObject; + + private bool ShouldSerializeret() + { + return this.retSpecified; + } + + private void Resetret() + { + this.retSpecified = false; + } + + private bool ShouldSerializeleftcount() + { + return this.leftcountSpecified; + } + + private void Resetleftcount() + { + this.leftcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BossRushRes.cs.meta new file mode 100644 index 00000000..ad5951e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d6d2d6aca598454eaecde7b0be2c5b2 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/BossRushResult.cs new file mode 100644 index 00000000..64ad69a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushResult.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BossRushResult")] + [Serializable] + public class BossRushResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "currentmax", DataFormat = DataFormat.TwosComplement)] + public uint currentmax + { + get + { + return this._currentmax ?? 0u; + } + set + { + this._currentmax = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currentmaxSpecified + { + get + { + return this._currentmax != null; + } + set + { + bool flag = value == (this._currentmax == null); + if (flag) + { + this._currentmax = (value ? new uint?(this.currentmax) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastmax", DataFormat = DataFormat.TwosComplement)] + public uint lastmax + { + get + { + return this._lastmax ?? 0u; + } + set + { + this._lastmax = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastmaxSpecified + { + get + { + return this._lastmax != null; + } + set + { + bool flag = value == (this._lastmax == null); + if (flag) + { + this._lastmax = (value ? new uint?(this.lastmax) : null); + } + } + } + + private uint? _currentmax; + + private uint? _lastmax; + + private IExtension extensionObject; + + private bool ShouldSerializecurrentmax() + { + return this.currentmaxSpecified; + } + + private void Resetcurrentmax() + { + this.currentmaxSpecified = false; + } + + private bool ShouldSerializelastmax() + { + return this.lastmaxSpecified; + } + + private void Resetlastmax() + { + this.lastmaxSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BossRushResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BossRushResult.cs.meta new file mode 100644 index 00000000..ab86f83d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BossRushResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3b1e5e6092502248aa8f8b9cb90ac7b +timeCreated: 1611404279 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs b/Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs new file mode 100644 index 00000000..b4d96a61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BoxInfos")] + [Serializable] + public class BoxInfos : IExtensible + { + [ProtoMember(1, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(2, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(4, Name = "type", DataFormat = DataFormat.TwosComplement)] + public List type + { + get + { + return this._type; + } + } + + private readonly List _items = new List(); + + private uint? _index; + + private ulong? _roleid; + + private readonly List _type = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs.meta new file mode 100644 index 00000000..5bb7247a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BoxInfos.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b2be57eca8d94f49af4e44b0c679c9e +timeCreated: 1611404204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs b/Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs new file mode 100644 index 00000000..df17abb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BoxType")] + public enum BoxType + { + [ProtoEnum(Name = "BOX_TYPE_NONE", Value = 0)] + BOX_TYPE_NONE, + [ProtoEnum(Name = "BOX_TYPE_GOLD", Value = 3)] + BOX_TYPE_GOLD = 3, + [ProtoEnum(Name = "BOX_TYPE_SILVER", Value = 2)] + BOX_TYPE_SILVER = 2, + [ProtoEnum(Name = "BOX_TYPE_COPPER", Value = 1)] + BOX_TYPE_COPPER = 1, + [ProtoEnum(Name = "BOX_TYPE_DIAMOND", Value = 4)] + BOX_TYPE_DIAMOND = 4 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs.meta new file mode 100644 index 00000000..2cc861e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BoxType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90db596675fcb6948a10f1e5ffc40267 +timeCreated: 1611404140 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BroadCastG2RType.cs b/Client/Assets/Scripts/XMainClient/KKSG/BroadCastG2RType.cs new file mode 100644 index 00000000..ebee3161 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BroadCastG2RType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BroadCastG2RType")] + public enum BroadCastG2RType + { + [ProtoEnum(Name = "BroadCastG2RType_MS", Value = 1)] + BroadCastG2RType_MS = 1, + [ProtoEnum(Name = "BroadCastG2RType_NS", Value = 2)] + BroadCastG2RType_NS, + [ProtoEnum(Name = "BroadCastG2RType_DB", Value = 3)] + BroadCastG2RType_DB + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BroadCastG2RType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BroadCastG2RType.cs.meta new file mode 100644 index 00000000..a42bf91a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BroadCastG2RType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc8b8056c3f843047893692a7905d87f +timeCreated: 1611404447 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BroadCastType.cs b/Client/Assets/Scripts/XMainClient/KKSG/BroadCastType.cs new file mode 100644 index 00000000..d1d2ece3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BroadCastType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BroadCastType")] + public enum BroadCastType + { + [ProtoEnum(Name = "BroadCastToAll", Value = 1)] + BroadCastToAll = 1, + [ProtoEnum(Name = "BroadCastMax", Value = 2)] + BroadCastMax + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BroadCastType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BroadCastType.cs.meta new file mode 100644 index 00000000..90b2d808 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BroadCastType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce260ad8df760a4478b0acaad617c70a +timeCreated: 1611404577 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Buff.cs b/Client/Assets/Scripts/XMainClient/KKSG/Buff.cs new file mode 100644 index 00000000..5d56e1a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Buff.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Buff")] + [Serializable] + public class Buff : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "buffID", DataFormat = DataFormat.TwosComplement)] + public int buffID + { + get + { + return this._buffID ?? 0; + } + set + { + this._buffID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buffIDSpecified + { + get + { + return this._buffID != null; + } + set + { + bool flag = value == (this._buffID == null); + if (flag) + { + this._buffID = (value ? new int?(this.buffID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "buffLevel", DataFormat = DataFormat.TwosComplement)] + public int buffLevel + { + get + { + return this._buffLevel ?? 0; + } + set + { + this._buffLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buffLevelSpecified + { + get + { + return this._buffLevel != null; + } + set + { + bool flag = value == (this._buffLevel == null); + if (flag) + { + this._buffLevel = (value ? new int?(this.buffLevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "effecttime", DataFormat = DataFormat.TwosComplement)] + public uint effecttime + { + get + { + return this._effecttime ?? 0u; + } + set + { + this._effecttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool effecttimeSpecified + { + get + { + return this._effecttime != null; + } + set + { + bool flag = value == (this._effecttime == null); + if (flag) + { + this._effecttime = (value ? new uint?(this.effecttime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "skillID", DataFormat = DataFormat.TwosComplement)] + public uint skillID + { + get + { + return this._skillID ?? 0u; + } + set + { + this._skillID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillIDSpecified + { + get + { + return this._skillID != null; + } + set + { + bool flag = value == (this._skillID == null); + if (flag) + { + this._skillID = (value ? new uint?(this.skillID) : null); + } + } + } + + private int? _buffID; + + private int? _buffLevel; + + private uint? _effecttime; + + private uint? _skillID; + + private IExtension extensionObject; + + private bool ShouldSerializebuffID() + { + return this.buffIDSpecified; + } + + private void ResetbuffID() + { + this.buffIDSpecified = false; + } + + private bool ShouldSerializebuffLevel() + { + return this.buffLevelSpecified; + } + + private void ResetbuffLevel() + { + this.buffLevelSpecified = false; + } + + private bool ShouldSerializeeffecttime() + { + return this.effecttimeSpecified; + } + + private void Reseteffecttime() + { + this.effecttimeSpecified = false; + } + + private bool ShouldSerializeskillID() + { + return this.skillIDSpecified; + } + + private void ResetskillID() + { + this.skillIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Buff.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Buff.cs.meta new file mode 100644 index 00000000..c6c496b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Buff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e55687a9034f134aaa03feabefa2917 +timeCreated: 1611403362 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs new file mode 100644 index 00000000..63c7096a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuffInfo")] + [Serializable] + public class BuffInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "BuffID", DataFormat = DataFormat.TwosComplement)] + public uint BuffID + { + get + { + return this._BuffID ?? 0u; + } + set + { + this._BuffID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BuffIDSpecified + { + get + { + return this._BuffID != null; + } + set + { + bool flag = value == (this._BuffID == null); + if (flag) + { + this._BuffID = (value ? new uint?(this.BuffID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "BuffLevel", DataFormat = DataFormat.TwosComplement)] + public uint BuffLevel + { + get + { + return this._BuffLevel ?? 0u; + } + set + { + this._BuffLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BuffLevelSpecified + { + get + { + return this._BuffLevel != null; + } + set + { + bool flag = value == (this._BuffLevel == null); + if (flag) + { + this._BuffLevel = (value ? new uint?(this.BuffLevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "LeftTime", DataFormat = DataFormat.TwosComplement)] + public uint LeftTime + { + get + { + return this._LeftTime ?? 0u; + } + set + { + this._LeftTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LeftTimeSpecified + { + get + { + return this._LeftTime != null; + } + set + { + bool flag = value == (this._LeftTime == null); + if (flag) + { + this._LeftTime = (value ? new uint?(this.LeftTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "MobUID", DataFormat = DataFormat.TwosComplement)] + public ulong MobUID + { + get + { + return this._MobUID ?? 0UL; + } + set + { + this._MobUID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool MobUIDSpecified + { + get + { + return this._MobUID != null; + } + set + { + bool flag = value == (this._MobUID == null); + if (flag) + { + this._MobUID = (value ? new ulong?(this.MobUID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "MaxHP", DataFormat = DataFormat.TwosComplement)] + public double MaxHP + { + get + { + return this._MaxHP ?? 0.0; + } + set + { + this._MaxHP = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool MaxHPSpecified + { + get + { + return this._MaxHP != null; + } + set + { + bool flag = value == (this._MaxHP == null); + if (flag) + { + this._MaxHP = (value ? new double?(this.MaxHP) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "CurHP", DataFormat = DataFormat.TwosComplement)] + public double CurHP + { + get + { + return this._CurHP ?? 0.0; + } + set + { + this._CurHP = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CurHPSpecified + { + get + { + return this._CurHP != null; + } + set + { + bool flag = value == (this._CurHP == null); + if (flag) + { + this._CurHP = (value ? new double?(this.CurHP) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "StackCount", DataFormat = DataFormat.TwosComplement)] + public uint StackCount + { + get + { + return this._StackCount ?? 0u; + } + set + { + this._StackCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool StackCountSpecified + { + get + { + return this._StackCount != null; + } + set + { + bool flag = value == (this._StackCount == null); + if (flag) + { + this._StackCount = (value ? new uint?(this.StackCount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "bReduceCD", DataFormat = DataFormat.Default)] + public bool bReduceCD + { + get + { + return this._bReduceCD ?? false; + } + set + { + this._bReduceCD = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bReduceCDSpecified + { + get + { + return this._bReduceCD != null; + } + set + { + bool flag = value == (this._bReduceCD == null); + if (flag) + { + this._bReduceCD = (value ? new bool?(this.bReduceCD) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "TransformID", DataFormat = DataFormat.TwosComplement)] + public int TransformID + { + get + { + return this._TransformID ?? 0; + } + set + { + this._TransformID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TransformIDSpecified + { + get + { + return this._TransformID != null; + } + set + { + bool flag = value == (this._TransformID == null); + if (flag) + { + this._TransformID = (value ? new int?(this.TransformID) : null); + } + } + } + + private uint? _BuffID; + + private uint? _BuffLevel; + + private uint? _LeftTime; + + private ulong? _MobUID; + + private double? _MaxHP; + + private double? _CurHP; + + private uint? _StackCount; + + private bool? _bReduceCD; + + private int? _TransformID; + + private IExtension extensionObject; + + private bool ShouldSerializeBuffID() + { + return this.BuffIDSpecified; + } + + private void ResetBuffID() + { + this.BuffIDSpecified = false; + } + + private bool ShouldSerializeBuffLevel() + { + return this.BuffLevelSpecified; + } + + private void ResetBuffLevel() + { + this.BuffLevelSpecified = false; + } + + private bool ShouldSerializeLeftTime() + { + return this.LeftTimeSpecified; + } + + private void ResetLeftTime() + { + this.LeftTimeSpecified = false; + } + + private bool ShouldSerializeMobUID() + { + return this.MobUIDSpecified; + } + + private void ResetMobUID() + { + this.MobUIDSpecified = false; + } + + private bool ShouldSerializeMaxHP() + { + return this.MaxHPSpecified; + } + + private void ResetMaxHP() + { + this.MaxHPSpecified = false; + } + + private bool ShouldSerializeCurHP() + { + return this.CurHPSpecified; + } + + private void ResetCurHP() + { + this.CurHPSpecified = false; + } + + private bool ShouldSerializeStackCount() + { + return this.StackCountSpecified; + } + + private void ResetStackCount() + { + this.StackCountSpecified = false; + } + + private bool ShouldSerializebReduceCD() + { + return this.bReduceCDSpecified; + } + + private void ResetbReduceCD() + { + this.bReduceCDSpecified = false; + } + + private bool ShouldSerializeTransformID() + { + return this.TransformIDSpecified; + } + + private void ResetTransformID() + { + this.TransformIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs.meta new file mode 100644 index 00000000..23c64c96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuffInfo.2.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06e3a1bef6633644fa779f9fec9764ba +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs new file mode 100644 index 00000000..1658a4ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuffItem")] + [Serializable] + public class BuffItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "expiretime", DataFormat = DataFormat.TwosComplement)] + public uint expiretime + { + get + { + return this._expiretime ?? 0u; + } + set + { + this._expiretime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expiretimeSpecified + { + get + { + return this._expiretime != null; + } + set + { + bool flag = value == (this._expiretime == null); + if (flag) + { + this._expiretime = (value ? new uint?(this.expiretime) : null); + } + } + } + + private uint? _itemid; + + private uint? _itemcount; + + private uint? _expiretime; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + private bool ShouldSerializeexpiretime() + { + return this.expiretimeSpecified; + } + + private void Resetexpiretime() + { + this.expiretimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs.meta new file mode 100644 index 00000000..5b870651 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuffItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33412f19d4f008243a9871125434b367 +timeCreated: 1611403551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs new file mode 100644 index 00000000..bed0be23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuffList")] + [Serializable] + public class BuffList : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, Name = "buffs", DataFormat = DataFormat.Default)] + public List buffs + { + get + { + return this._buffs; + } + } + + [ProtoMember(3, IsRequired = false, Name = "casterid", DataFormat = DataFormat.TwosComplement)] + public ulong casterid + { + get + { + return this._casterid ?? 0UL; + } + set + { + this._casterid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool casteridSpecified + { + get + { + return this._casterid != null; + } + set + { + bool flag = value == (this._casterid == null); + if (flag) + { + this._casterid = (value ? new ulong?(this.casterid) : null); + } + } + } + + private ulong? _roleid; + + private readonly List _buffs = new List(); + + private ulong? _casterid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializecasterid() + { + return this.casteridSpecified; + } + + private void Resetcasterid() + { + this.casteridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs.meta new file mode 100644 index 00000000..c75b9149 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuffList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dcb299ae1ce46fd409401da82becf905 +timeCreated: 1611404679 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BulletUnitData.cs b/Client/Assets/Scripts/XMainClient/KKSG/BulletUnitData.cs new file mode 100644 index 00000000..7e6aae68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BulletUnitData.cs @@ -0,0 +1,336 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BulletUnitData")] + [Serializable] + public class BulletUnitData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SkillId", DataFormat = DataFormat.TwosComplement)] + public uint SkillId + { + get + { + return this._SkillId ?? 0u; + } + set + { + this._SkillId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillIdSpecified + { + get + { + return this._SkillId != null; + } + set + { + bool flag = value == (this._SkillId == null); + if (flag) + { + this._SkillId = (value ? new uint?(this.SkillId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "TriggerTime", DataFormat = DataFormat.TwosComplement)] + public int TriggerTime + { + get + { + return this._TriggerTime ?? 0; + } + set + { + this._TriggerTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TriggerTimeSpecified + { + get + { + return this._TriggerTime != null; + } + set + { + bool flag = value == (this._TriggerTime == null); + if (flag) + { + this._TriggerTime = (value ? new int?(this.TriggerTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ResultToken", DataFormat = DataFormat.TwosComplement)] + public int ResultToken + { + get + { + return this._ResultToken ?? 0; + } + set + { + this._ResultToken = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ResultTokenSpecified + { + get + { + return this._ResultToken != null; + } + set + { + bool flag = value == (this._ResultToken == null); + if (flag) + { + this._ResultToken = (value ? new int?(this.ResultToken) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "Pos", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 Pos + { + get + { + return this._Pos; + } + set + { + this._Pos = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "Face", DataFormat = DataFormat.FixedSize)] + public float Face + { + get + { + return this._Face ?? 0f; + } + set + { + this._Face = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FaceSpecified + { + get + { + return this._Face != null; + } + set + { + bool flag = value == (this._Face == null); + if (flag) + { + this._Face = (value ? new float?(this.Face) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "AdditionalDegree", DataFormat = DataFormat.TwosComplement)] + public int AdditionalDegree + { + get + { + return this._AdditionalDegree ?? 0; + } + set + { + this._AdditionalDegree = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool AdditionalDegreeSpecified + { + get + { + return this._AdditionalDegree != null; + } + set + { + bool flag = value == (this._AdditionalDegree == null); + if (flag) + { + this._AdditionalDegree = (value ? new int?(this.AdditionalDegree) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "BulletToken", DataFormat = DataFormat.TwosComplement)] + public ulong BulletToken + { + get + { + return this._BulletToken ?? 0UL; + } + set + { + this._BulletToken = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BulletTokenSpecified + { + get + { + return this._BulletToken != null; + } + set + { + bool flag = value == (this._BulletToken == null); + if (flag) + { + this._BulletToken = (value ? new ulong?(this.BulletToken) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "Target", DataFormat = DataFormat.TwosComplement)] + public ulong Target + { + get + { + return this._Target ?? 0UL; + } + set + { + this._Target = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TargetSpecified + { + get + { + return this._Target != null; + } + set + { + bool flag = value == (this._Target == null); + if (flag) + { + this._Target = (value ? new ulong?(this.Target) : null); + } + } + } + + private uint? _SkillId; + + private int? _TriggerTime; + + private int? _ResultToken; + + private Vec3 _Pos = null; + + private float? _Face; + + private int? _AdditionalDegree; + + private ulong? _BulletToken; + + private ulong? _Target; + + private IExtension extensionObject; + + private bool ShouldSerializeSkillId() + { + return this.SkillIdSpecified; + } + + private void ResetSkillId() + { + this.SkillIdSpecified = false; + } + + private bool ShouldSerializeTriggerTime() + { + return this.TriggerTimeSpecified; + } + + private void ResetTriggerTime() + { + this.TriggerTimeSpecified = false; + } + + private bool ShouldSerializeResultToken() + { + return this.ResultTokenSpecified; + } + + private void ResetResultToken() + { + this.ResultTokenSpecified = false; + } + + private bool ShouldSerializeFace() + { + return this.FaceSpecified; + } + + private void ResetFace() + { + this.FaceSpecified = false; + } + + private bool ShouldSerializeAdditionalDegree() + { + return this.AdditionalDegreeSpecified; + } + + private void ResetAdditionalDegree() + { + this.AdditionalDegreeSpecified = false; + } + + private bool ShouldSerializeBulletToken() + { + return this.BulletTokenSpecified; + } + + private void ResetBulletToken() + { + this.BulletTokenSpecified = false; + } + + private bool ShouldSerializeTarget() + { + return this.TargetSpecified; + } + + private void ResetTarget() + { + this.TargetSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BulletUnitData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BulletUnitData.cs.meta new file mode 100644 index 00000000..e0d4803f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BulletUnitData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 401e090042cec4d49b45b7a7285f1084 +timeCreated: 1611403613 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemArg.cs new file mode 100644 index 00000000..7bc19a64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyDragonGuildShopItemArg")] + [Serializable] + public class BuyDragonGuildShopItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _id; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemArg.cs.meta new file mode 100644 index 00000000..f8f8227c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae1574ee009a4184ea3a3baa06f2d621 +timeCreated: 1611404337 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemRes.cs new file mode 100644 index 00000000..7ffdf0d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyDragonGuildShopItemRes")] + [Serializable] + public class BuyDragonGuildShopItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemRes.cs.meta new file mode 100644 index 00000000..8779159b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyDragonGuildShopItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d7d355978a09da4393a69d0fc1db266 +timeCreated: 1611403196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs new file mode 100644 index 00000000..4cba5e3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyDrawReq")] + [Serializable] + public class BuyDrawReq : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs.meta new file mode 100644 index 00000000..d4c21a5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc55164c17e47c247aaa7df17392804a +timeCreated: 1611404550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs new file mode 100644 index 00000000..30e334b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyDrawRes")] + [Serializable] + public class BuyDrawRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs.meta new file mode 100644 index 00000000..616a0e75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyDrawRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ecfee0e1ee217a4da82464c7cce6bf1 +timeCreated: 1611404006 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs new file mode 100644 index 00000000..fb6c9506 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyExtraSkillEmblemSlotArg")] + [Serializable] + public class BuyExtraSkillEmblemSlotArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs.meta new file mode 100644 index 00000000..8e4e7bac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0296bd71f40b4a1419e29bb7413f0f9b +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs new file mode 100644 index 00000000..c1d1df1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyExtraSkillEmblemSlotRes")] + [Serializable] + public class BuyExtraSkillEmblemSlotRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "extraSkillEmblemSlot", DataFormat = DataFormat.TwosComplement)] + public uint extraSkillEmblemSlot + { + get + { + return this._extraSkillEmblemSlot ?? 0u; + } + set + { + this._extraSkillEmblemSlot = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extraSkillEmblemSlotSpecified + { + get + { + return this._extraSkillEmblemSlot != null; + } + set + { + bool flag = value == (this._extraSkillEmblemSlot == null); + if (flag) + { + this._extraSkillEmblemSlot = (value ? new uint?(this.extraSkillEmblemSlot) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _extraSkillEmblemSlot; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeextraSkillEmblemSlot() + { + return this.extraSkillEmblemSlotSpecified; + } + + private void ResetextraSkillEmblemSlot() + { + this.extraSkillEmblemSlotSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs.meta new file mode 100644 index 00000000..b4ff796a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyExtraSkillEmblemSlotRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa6979a9121fcab47aaccbe989ce5b27 +timeCreated: 1611404303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueArg.cs new file mode 100644 index 00000000..2ff5f689 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyGoldAndFatigueArg")] + [Serializable] + public class BuyGoldAndFatigueArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public buyextype type + { + get + { + return this._type ?? buyextype.DIAMONE_BUY_DRAGONCOIN; + } + set + { + this._type = new buyextype?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new buyextype?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fatigueID", DataFormat = DataFormat.TwosComplement)] + public uint fatigueID + { + get + { + return this._fatigueID ?? 0u; + } + set + { + this._fatigueID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fatigueIDSpecified + { + get + { + return this._fatigueID != null; + } + set + { + bool flag = value == (this._fatigueID == null); + if (flag) + { + this._fatigueID = (value ? new uint?(this.fatigueID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private buyextype? _type; + + private uint? _fatigueID; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializefatigueID() + { + return this.fatigueIDSpecified; + } + + private void ResetfatigueID() + { + this.fatigueIDSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueArg.cs.meta new file mode 100644 index 00000000..7454b3cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e49d9fa18bff10247a81f4f230412d64 +timeCreated: 1611404739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueRes.cs new file mode 100644 index 00000000..618a959c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyGoldAndFatigueRes")] + [Serializable] + public class BuyGoldAndFatigueRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueRes.cs.meta new file mode 100644 index 00000000..b34e1f77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldAndFatigueRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6fdb2ed95881654e9b0a75e46245e8c +timeCreated: 1611404748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs new file mode 100644 index 00000000..be0e398f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyGoldFatInfo")] + [Serializable] + public class BuyGoldFatInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "day", DataFormat = DataFormat.TwosComplement)] + public uint day + { + get + { + return this._day ?? 0u; + } + set + { + this._day = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daySpecified + { + get + { + return this._day != null; + } + set + { + bool flag = value == (this._day == null); + if (flag) + { + this._day = (value ? new uint?(this.day) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "BuyGoldCount", DataFormat = DataFormat.TwosComplement)] + public int BuyGoldCount + { + get + { + return this._BuyGoldCount ?? 0; + } + set + { + this._BuyGoldCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BuyGoldCountSpecified + { + get + { + return this._BuyGoldCount != null; + } + set + { + bool flag = value == (this._BuyGoldCount == null); + if (flag) + { + this._BuyGoldCount = (value ? new int?(this.BuyGoldCount) : null); + } + } + } + + [ProtoMember(3, Name = "BuyFatigueCount", DataFormat = DataFormat.TwosComplement)] + public List BuyFatigueCount + { + get + { + return this._BuyFatigueCount; + } + } + + [ProtoMember(4, IsRequired = false, Name = "BuyDragonCount", DataFormat = DataFormat.TwosComplement)] + public int BuyDragonCount + { + get + { + return this._BuyDragonCount ?? 0; + } + set + { + this._BuyDragonCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BuyDragonCountSpecified + { + get + { + return this._BuyDragonCount != null; + } + set + { + bool flag = value == (this._BuyDragonCount == null); + if (flag) + { + this._BuyDragonCount = (value ? new int?(this.BuyDragonCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "backflow", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BackFlowBuy backflow + { + get + { + return this._backflow; + } + set + { + this._backflow = value; + } + } + + private uint? _day; + + private int? _BuyGoldCount; + + private readonly List _BuyFatigueCount = new List(); + + private int? _BuyDragonCount; + + private BackFlowBuy _backflow = null; + + private IExtension extensionObject; + + private bool ShouldSerializeday() + { + return this.daySpecified; + } + + private void Resetday() + { + this.daySpecified = false; + } + + private bool ShouldSerializeBuyGoldCount() + { + return this.BuyGoldCountSpecified; + } + + private void ResetBuyGoldCount() + { + this.BuyGoldCountSpecified = false; + } + + private bool ShouldSerializeBuyDragonCount() + { + return this.BuyDragonCountSpecified; + } + + private void ResetBuyDragonCount() + { + this.BuyDragonCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs.meta new file mode 100644 index 00000000..d7e9a960 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyGoldFatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b6bac49fe0064d4c8c032c0da36fbd6 +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleArg.cs new file mode 100644 index 00000000..f919928d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyHeroInHeroBattleArg")] + [Serializable] + public class BuyHeroInHeroBattleArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + private uint? _heroid; + + private IExtension extensionObject; + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleArg.cs.meta new file mode 100644 index 00000000..cce95e5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7265a3b8bc372a649a8550204050ac5f +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleRes.cs new file mode 100644 index 00000000..dd19b3e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyHeroInHeroBattleRes")] + [Serializable] + public class BuyHeroInHeroBattleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleRes.cs.meta new file mode 100644 index 00000000..4058d5ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyHeroInHeroBattleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40f5afdda80cfa24389d89b39538de56 +timeCreated: 1611403616 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs new file mode 100644 index 00000000..a2b317e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyJadeSlotArg")] + [Serializable] + public class BuyJadeSlotArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "EquipUId", DataFormat = DataFormat.TwosComplement)] + public ulong EquipUId + { + get + { + return this._EquipUId ?? 0UL; + } + set + { + this._EquipUId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EquipUIdSpecified + { + get + { + return this._EquipUId != null; + } + set + { + bool flag = value == (this._EquipUId == null); + if (flag) + { + this._EquipUId = (value ? new ulong?(this.EquipUId) : null); + } + } + } + + private ulong? _EquipUId; + + private IExtension extensionObject; + + private bool ShouldSerializeEquipUId() + { + return this.EquipUIdSpecified; + } + + private void ResetEquipUId() + { + this.EquipUIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs.meta new file mode 100644 index 00000000..787a01a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30bfce76c818e224e807d7452251be2a +timeCreated: 1611403522 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs new file mode 100644 index 00000000..597e615d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyJadeSlotNewArg")] + [Serializable] + public class BuyJadeSlotNewArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "EquipUId", DataFormat = DataFormat.Default)] + public string EquipUId + { + get + { + return this._EquipUId ?? ""; + } + set + { + this._EquipUId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EquipUIdSpecified + { + get + { + return this._EquipUId != null; + } + set + { + bool flag = value == (this._EquipUId == null); + if (flag) + { + this._EquipUId = (value ? this.EquipUId : null); + } + } + } + + private string _EquipUId; + + private IExtension extensionObject; + + private bool ShouldSerializeEquipUId() + { + return this.EquipUIdSpecified; + } + + private void ResetEquipUId() + { + this.EquipUIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs.meta new file mode 100644 index 00000000..4bbf9ceb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79a7cf8c9f6b2744dae600668be3a5eb +timeCreated: 1611403986 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs new file mode 100644 index 00000000..69fafdf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyJadeSlotNewRes")] + [Serializable] + public class BuyJadeSlotNewRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs.meta new file mode 100644 index 00000000..630bcab7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotNewRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2f3777f0b4bed549acd81689c7903db +timeCreated: 1611404846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs new file mode 100644 index 00000000..e1f677ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyJadeSlotRes")] + [Serializable] + public class BuyJadeSlotRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs.meta new file mode 100644 index 00000000..e431bccf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyJadeSlotRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96abb4541e5ab2047b1a8665b0eb9102 +timeCreated: 1611404186 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemArg.cs new file mode 100644 index 00000000..bf15824f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyPartnerShopItemArg")] + [Serializable] + public class BuyPartnerShopItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _id; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemArg.cs.meta new file mode 100644 index 00000000..2eddd266 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a41ae32debae28e46831b4f1fe46ef9c +timeCreated: 1611404281 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemRes.cs new file mode 100644 index 00000000..fedb2ac3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyPartnerShopItemRes")] + [Serializable] + public class BuyPartnerShopItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemRes.cs.meta new file mode 100644 index 00000000..e679c809 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyPartnerShopItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4734e35d762c1f54ab393725fce95432 +timeCreated: 1611403653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemArg.cs new file mode 100644 index 00000000..c0371fc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyShopItemArg")] + [Serializable] + public class BuyShopItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ItemUniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong ItemUniqueId + { + get + { + return this._ItemUniqueId ?? 0UL; + } + set + { + this._ItemUniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ItemUniqueIdSpecified + { + get + { + return this._ItemUniqueId != null; + } + set + { + bool flag = value == (this._ItemUniqueId == null); + if (flag) + { + this._ItemUniqueId = (value ? new ulong?(this.ItemUniqueId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private ulong? _ItemUniqueId; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeItemUniqueId() + { + return this.ItemUniqueIdSpecified; + } + + private void ResetItemUniqueId() + { + this.ItemUniqueIdSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemArg.cs.meta new file mode 100644 index 00000000..85c3a633 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce052bf5d60f1dc4db0d109ad02d6928 +timeCreated: 1611404577 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemRes.cs new file mode 100644 index 00000000..c558ff57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyShopItemRes")] + [Serializable] + public class BuyShopItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemRes.cs.meta new file mode 100644 index 00000000..c8bf4a29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyShopItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48ac55644e05dbf40961158f0d3fd827 +timeCreated: 1611403659 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggArg.cs new file mode 100644 index 00000000..dff9a178 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuySpriteEggArg")] + [Serializable] + public class BuySpriteEggArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggArg.cs.meta new file mode 100644 index 00000000..65bacfb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31ceb4932469b8a48a56a8199bcd7bfa +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs new file mode 100644 index 00000000..7309668d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuySpriteEggRes")] + [Serializable] + public class BuySpriteEggRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + [ProtoMember(3, IsRequired = false, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public uint cooldown + { + get + { + return this._cooldown ?? 0u; + } + set + { + this._cooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldownSpecified + { + get + { + return this._cooldown != null; + } + set + { + bool flag = value == (this._cooldown == null); + if (flag) + { + this._cooldown = (value ? new uint?(this.cooldown) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "goldfreebuycount", DataFormat = DataFormat.TwosComplement)] + public uint goldfreebuycount + { + get + { + return this._goldfreebuycount ?? 0u; + } + set + { + this._goldfreebuycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldfreebuycountSpecified + { + get + { + return this._goldfreebuycount != null; + } + set + { + bool flag = value == (this._goldfreebuycount == null); + if (flag) + { + this._goldfreebuycount = (value ? new uint?(this.goldfreebuycount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "goldfreebuycooldown", DataFormat = DataFormat.TwosComplement)] + public uint goldfreebuycooldown + { + get + { + return this._goldfreebuycooldown ?? 0u; + } + set + { + this._goldfreebuycooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldfreebuycooldownSpecified + { + get + { + return this._goldfreebuycooldown != null; + } + set + { + bool flag = value == (this._goldfreebuycooldown == null); + if (flag) + { + this._goldfreebuycooldown = (value ? new uint?(this.goldfreebuycooldown) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _item = new List(); + + private uint? _cooldown; + + private uint? _goldfreebuycount; + + private uint? _goldfreebuycooldown; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecooldown() + { + return this.cooldownSpecified; + } + + private void Resetcooldown() + { + this.cooldownSpecified = false; + } + + private bool ShouldSerializegoldfreebuycount() + { + return this.goldfreebuycountSpecified; + } + + private void Resetgoldfreebuycount() + { + this.goldfreebuycountSpecified = false; + } + + private bool ShouldSerializegoldfreebuycooldown() + { + return this.goldfreebuycooldownSpecified; + } + + private void Resetgoldfreebuycooldown() + { + this.goldfreebuycooldownSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs.meta new file mode 100644 index 00000000..c9edeeba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuySpriteEggRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 239bd55d53099d043a43340ac161a72a +timeCreated: 1611403456 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs new file mode 100644 index 00000000..3583b2bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyTeamSceneCountP")] + [Serializable] + public class BuyTeamSceneCountP : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + private int? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs.meta new file mode 100644 index 00000000..0064d6e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9af945f9be06975409f4086c59e326e0 +timeCreated: 1611404203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountRet.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountRet.cs new file mode 100644 index 00000000..72a25fa3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountRet.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyTeamSceneCountRet")] + [Serializable] + public class BuyTeamSceneCountRet : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "maxcount", DataFormat = DataFormat.TwosComplement)] + public uint maxcount + { + get + { + return this._maxcount ?? 0u; + } + set + { + this._maxcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxcountSpecified + { + get + { + return this._maxcount != null; + } + set + { + bool flag = value == (this._maxcount == null); + if (flag) + { + this._maxcount = (value ? new uint?(this.maxcount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "buycount", DataFormat = DataFormat.TwosComplement)] + public uint buycount + { + get + { + return this._buycount ?? 0u; + } + set + { + this._buycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buycountSpecified + { + get + { + return this._buycount != null; + } + set + { + bool flag = value == (this._buycount == null); + if (flag) + { + this._buycount = (value ? new uint?(this.buycount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "entercount", DataFormat = DataFormat.TwosComplement)] + public uint entercount + { + get + { + return this._entercount ?? 0u; + } + set + { + this._entercount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool entercountSpecified + { + get + { + return this._entercount != null; + } + set + { + bool flag = value == (this._entercount == null); + if (flag) + { + this._entercount = (value ? new uint?(this.entercount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private uint? _maxcount; + + private uint? _buycount; + + private uint? _entercount; + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializemaxcount() + { + return this.maxcountSpecified; + } + + private void Resetmaxcount() + { + this.maxcountSpecified = false; + } + + private bool ShouldSerializebuycount() + { + return this.buycountSpecified; + } + + private void Resetbuycount() + { + this.buycountSpecified = false; + } + + private bool ShouldSerializeentercount() + { + return this.entercountSpecified; + } + + private void Resetentercount() + { + this.entercountSpecified = false; + } + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountRet.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountRet.cs.meta new file mode 100644 index 00000000..8c941c25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyTeamSceneCountRet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9ac4bf00d116684aae2680084811e61 +timeCreated: 1611404300 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs new file mode 100644 index 00000000..826d55e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyVipLevelGiftArg")] + [Serializable] + public class BuyVipLevelGiftArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "vipLevel", DataFormat = DataFormat.TwosComplement)] + public int vipLevel + { + get + { + return this._vipLevel ?? 0; + } + set + { + this._vipLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipLevelSpecified + { + get + { + return this._vipLevel != null; + } + set + { + bool flag = value == (this._vipLevel == null); + if (flag) + { + this._vipLevel = (value ? new int?(this.vipLevel) : null); + } + } + } + + private int? _vipLevel; + + private IExtension extensionObject; + + private bool ShouldSerializevipLevel() + { + return this.vipLevelSpecified; + } + + private void ResetvipLevel() + { + this.vipLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs.meta new file mode 100644 index 00000000..92e1fcf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dad8cc54e0da1e845b86a651bb47a75f +timeCreated: 1611404649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs new file mode 100644 index 00000000..2df1d10c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "BuyVipLevelGiftRes")] + [Serializable] + public class BuyVipLevelGiftRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(2, Name = "VipLevelGift", DataFormat = DataFormat.TwosComplement)] + public List VipLevelGift + { + get + { + return this._VipLevelGift; + } + } + + private ErrorCode? _errcode; + + private readonly List _VipLevelGift = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs.meta new file mode 100644 index 00000000..c33d0495 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/BuyVipLevelGiftRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f73b6208dd538b347abcbed2a811d076 +timeCreated: 1611404886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CallData.cs b/Client/Assets/Scripts/XMainClient/KKSG/CallData.cs new file mode 100644 index 00000000..5a060eee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CallData.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CallData")] + [Serializable] + public class CallData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "skillid", DataFormat = DataFormat.TwosComplement)] + public uint skillid + { + get + { + return this._skillid ?? 0u; + } + set + { + this._skillid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillidSpecified + { + get + { + return this._skillid != null; + } + set + { + bool flag = value == (this._skillid == null); + if (flag) + { + this._skillid = (value ? new uint?(this.skillid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sequence", DataFormat = DataFormat.TwosComplement)] + public int sequence + { + get + { + return this._sequence ?? 0; + } + set + { + this._sequence = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sequenceSpecified + { + get + { + return this._sequence != null; + } + set + { + bool flag = value == (this._sequence == null); + if (flag) + { + this._sequence = (value ? new int?(this.sequence) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public int slot + { + get + { + return this._slot ?? 0; + } + set + { + this._slot = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new int?(this.slot) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "leftrunningtime", DataFormat = DataFormat.TwosComplement)] + public int leftrunningtime + { + get + { + return this._leftrunningtime ?? 0; + } + set + { + this._leftrunningtime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftrunningtimeSpecified + { + get + { + return this._leftrunningtime != null; + } + set + { + bool flag = value == (this._leftrunningtime == null); + if (flag) + { + this._leftrunningtime = (value ? new int?(this.leftrunningtime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "onsyntonic", DataFormat = DataFormat.Default)] + public bool onsyntonic + { + get + { + return this._onsyntonic ?? false; + } + set + { + this._onsyntonic = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onsyntonicSpecified + { + get + { + return this._onsyntonic != null; + } + set + { + bool flag = value == (this._onsyntonic == null); + if (flag) + { + this._onsyntonic = (value ? new bool?(this.onsyntonic) : null); + } + } + } + + private uint? _skillid; + + private int? _sequence; + + private int? _slot; + + private int? _leftrunningtime; + + private bool? _onsyntonic; + + private IExtension extensionObject; + + private bool ShouldSerializeskillid() + { + return this.skillidSpecified; + } + + private void Resetskillid() + { + this.skillidSpecified = false; + } + + private bool ShouldSerializesequence() + { + return this.sequenceSpecified; + } + + private void Resetsequence() + { + this.sequenceSpecified = false; + } + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + private bool ShouldSerializeleftrunningtime() + { + return this.leftrunningtimeSpecified; + } + + private void Resetleftrunningtime() + { + this.leftrunningtimeSpecified = false; + } + + private bool ShouldSerializeonsyntonic() + { + return this.onsyntonicSpecified; + } + + private void Resetonsyntonic() + { + this.onsyntonicSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CallData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CallData.cs.meta new file mode 100644 index 00000000..6161a63e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CallData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a7393978a85bd743ae4878f2b39da34 +timeCreated: 1611403665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationArg.cs new file mode 100644 index 00000000..07256e23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampDuelActivityOperationArg")] + [Serializable] + public class CampDuelActivityOperationArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "arg", DataFormat = DataFormat.TwosComplement)] + public uint arg + { + get + { + return this._arg ?? 0u; + } + set + { + this._arg = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool argSpecified + { + get + { + return this._arg != null; + } + set + { + bool flag = value == (this._arg == null); + if (flag) + { + this._arg = (value ? new uint?(this.arg) : null); + } + } + } + + private uint? _type; + + private uint? _arg; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializearg() + { + return this.argSpecified; + } + + private void Resetarg() + { + this.argSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationArg.cs.meta new file mode 100644 index 00000000..19823b04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77bcf51eeda471e4e9f724e027020927 +timeCreated: 1611403955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationRes.cs new file mode 100644 index 00000000..e113a752 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationRes.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampDuelActivityOperationRes")] + [Serializable] + public class CampDuelActivityOperationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CampDuelData data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "precedeCampID", DataFormat = DataFormat.TwosComplement)] + public uint precedeCampID + { + get + { + return this._precedeCampID ?? 0u; + } + set + { + this._precedeCampID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool precedeCampIDSpecified + { + get + { + return this._precedeCampID != null; + } + set + { + bool flag = value == (this._precedeCampID == null); + if (flag) + { + this._precedeCampID = (value ? new uint?(this.precedeCampID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "campDuelPoint1", DataFormat = DataFormat.TwosComplement)] + public uint campDuelPoint1 + { + get + { + return this._campDuelPoint1 ?? 0u; + } + set + { + this._campDuelPoint1 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool campDuelPoint1Specified + { + get + { + return this._campDuelPoint1 != null; + } + set + { + bool flag = value == (this._campDuelPoint1 == null); + if (flag) + { + this._campDuelPoint1 = (value ? new uint?(this.campDuelPoint1) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "campDuelPoint2", DataFormat = DataFormat.TwosComplement)] + public uint campDuelPoint2 + { + get + { + return this._campDuelPoint2 ?? 0u; + } + set + { + this._campDuelPoint2 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool campDuelPoint2Specified + { + get + { + return this._campDuelPoint2 != null; + } + set + { + bool flag = value == (this._campDuelPoint2 == null); + if (flag) + { + this._campDuelPoint2 = (value ? new uint?(this.campDuelPoint2) : null); + } + } + } + + private ErrorCode? _errorcode; + + private CampDuelData _data = null; + + private uint? _precedeCampID; + + private uint? _campDuelPoint1; + + private uint? _campDuelPoint2; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeprecedeCampID() + { + return this.precedeCampIDSpecified; + } + + private void ResetprecedeCampID() + { + this.precedeCampIDSpecified = false; + } + + private bool ShouldSerializecampDuelPoint1() + { + return this.campDuelPoint1Specified; + } + + private void ResetcampDuelPoint1() + { + this.campDuelPoint1Specified = false; + } + + private bool ShouldSerializecampDuelPoint2() + { + return this.campDuelPoint2Specified; + } + + private void ResetcampDuelPoint2() + { + this.campDuelPoint2Specified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationRes.cs.meta new file mode 100644 index 00000000..c3bb01b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelActivityOperationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7114acb1e690724690f986f7020da85 +timeCreated: 1611404401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampDuelData.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelData.cs new file mode 100644 index 00000000..008b831f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelData.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampDuelData")] + [Serializable] + public class CampDuelData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "campid", DataFormat = DataFormat.TwosComplement)] + public uint campid + { + get + { + return this._campid ?? 0u; + } + set + { + this._campid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool campidSpecified + { + get + { + return this._campid != null; + } + set + { + bool flag = value == (this._campid == null); + if (flag) + { + this._campid = (value ? new uint?(this.campid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateTime + { + get + { + return this._lastUpdateTime ?? 0u; + } + set + { + this._lastUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateTimeSpecified + { + get + { + return this._lastUpdateTime != null; + } + set + { + bool flag = value == (this._lastUpdateTime == null); + if (flag) + { + this._lastUpdateTime = (value ? new uint?(this.lastUpdateTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "freeInspireCount", DataFormat = DataFormat.TwosComplement)] + public uint freeInspireCount + { + get + { + return this._freeInspireCount ?? 0u; + } + set + { + this._freeInspireCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freeInspireCountSpecified + { + get + { + return this._freeInspireCount != null; + } + set + { + bool flag = value == (this._freeInspireCount == null); + if (flag) + { + this._freeInspireCount = (value ? new uint?(this.freeInspireCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "dragonCoinInspireCount", DataFormat = DataFormat.TwosComplement)] + public uint dragonCoinInspireCount + { + get + { + return this._dragonCoinInspireCount ?? 0u; + } + set + { + this._dragonCoinInspireCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonCoinInspireCountSpecified + { + get + { + return this._dragonCoinInspireCount != null; + } + set + { + bool flag = value == (this._dragonCoinInspireCount == null); + if (flag) + { + this._dragonCoinInspireCount = (value ? new uint?(this.dragonCoinInspireCount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "isGiveReward", DataFormat = DataFormat.Default)] + public bool isGiveReward + { + get + { + return this._isGiveReward ?? false; + } + set + { + this._isGiveReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isGiveRewardSpecified + { + get + { + return this._isGiveReward != null; + } + set + { + bool flag = value == (this._isGiveReward == null); + if (flag) + { + this._isGiveReward = (value ? new bool?(this.isGiveReward) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "isSendEmail", DataFormat = DataFormat.Default)] + public bool isSendEmail + { + get + { + return this._isSendEmail ?? false; + } + set + { + this._isSendEmail = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isSendEmailSpecified + { + get + { + return this._isSendEmail != null; + } + set + { + bool flag = value == (this._isSendEmail == null); + if (flag) + { + this._isSendEmail = (value ? new bool?(this.isSendEmail) : null); + } + } + } + + private uint? _campid; + + private uint? _point; + + private uint? _lastUpdateTime; + + private uint? _freeInspireCount; + + private uint? _dragonCoinInspireCount; + + private bool? _isGiveReward; + + private bool? _isSendEmail; + + private IExtension extensionObject; + + private bool ShouldSerializecampid() + { + return this.campidSpecified; + } + + private void Resetcampid() + { + this.campidSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializelastUpdateTime() + { + return this.lastUpdateTimeSpecified; + } + + private void ResetlastUpdateTime() + { + this.lastUpdateTimeSpecified = false; + } + + private bool ShouldSerializefreeInspireCount() + { + return this.freeInspireCountSpecified; + } + + private void ResetfreeInspireCount() + { + this.freeInspireCountSpecified = false; + } + + private bool ShouldSerializedragonCoinInspireCount() + { + return this.dragonCoinInspireCountSpecified; + } + + private void ResetdragonCoinInspireCount() + { + this.dragonCoinInspireCountSpecified = false; + } + + private bool ShouldSerializeisGiveReward() + { + return this.isGiveRewardSpecified; + } + + private void ResetisGiveReward() + { + this.isGiveRewardSpecified = false; + } + + private bool ShouldSerializeisSendEmail() + { + return this.isSendEmailSpecified; + } + + private void ResetisSendEmail() + { + this.isSendEmailSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampDuelData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelData.cs.meta new file mode 100644 index 00000000..412f694b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampDuelData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22156b455d7442c4bbb0113b6deab364 +timeCreated: 1611403418 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampID.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampID.cs new file mode 100644 index 00000000..eebe2859 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampID.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampID")] + public enum CampID + { + [ProtoEnum(Name = "CAMP_DRAGON", Value = 1)] + CAMP_DRAGON = 1, + [ProtoEnum(Name = "CAMP_KNIGHT", Value = 2)] + CAMP_KNIGHT, + [ProtoEnum(Name = "CAMP_ADVENTURER", Value = 3)] + CAMP_ADVENTURER + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampID.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampID.cs.meta new file mode 100644 index 00000000..7f13a76d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampID.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1046521e71248c34498875c521a7bff7 +timeCreated: 1611403216 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampRoleRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampRoleRecord.cs new file mode 100644 index 00000000..40ac91c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampRoleRecord.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampRoleRecord")] + [Serializable] + public class CampRoleRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastCampID", DataFormat = DataFormat.TwosComplement)] + public uint lastCampID + { + get + { + return this._lastCampID ?? 0u; + } + set + { + this._lastCampID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastCampIDSpecified + { + get + { + return this._lastCampID != null; + } + set + { + bool flag = value == (this._lastCampID == null); + if (flag) + { + this._lastCampID = (value ? new uint?(this.lastCampID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "taskInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CampTaskInfo2DB taskInfo + { + get + { + return this._taskInfo; + } + set + { + this._taskInfo = value; + } + } + + private uint? _lastCampID; + + private CampTaskInfo2DB _taskInfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializelastCampID() + { + return this.lastCampIDSpecified; + } + + private void ResetlastCampID() + { + this.lastCampIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampRoleRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampRoleRecord.cs.meta new file mode 100644 index 00000000..d0d6e389 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampRoleRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57909a17746ad5e4890cd864845643fc +timeCreated: 1611403750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo.cs new file mode 100644 index 00000000..c3ad5171 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampTaskInfo")] + [Serializable] + public class CampTaskInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "taskID", DataFormat = DataFormat.TwosComplement)] + public uint taskID + { + get + { + return this._taskID ?? 0u; + } + set + { + this._taskID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskIDSpecified + { + get + { + return this._taskID != null; + } + set + { + bool flag = value == (this._taskID == null); + if (flag) + { + this._taskID = (value ? new uint?(this.taskID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "taskStatus", DataFormat = DataFormat.TwosComplement)] + public int taskStatus + { + get + { + return this._taskStatus ?? 0; + } + set + { + this._taskStatus = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskStatusSpecified + { + get + { + return this._taskStatus != null; + } + set + { + bool flag = value == (this._taskStatus == null); + if (flag) + { + this._taskStatus = (value ? new int?(this.taskStatus) : null); + } + } + } + + private uint? _taskID; + + private int? _taskStatus; + + private IExtension extensionObject; + + private bool ShouldSerializetaskID() + { + return this.taskIDSpecified; + } + + private void ResettaskID() + { + this.taskIDSpecified = false; + } + + private bool ShouldSerializetaskStatus() + { + return this.taskStatusSpecified; + } + + private void ResettaskStatus() + { + this.taskStatusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo.cs.meta new file mode 100644 index 00000000..63386daf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d91676331ef06ef4894841e1a7b841ed +timeCreated: 1611404642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs new file mode 100644 index 00000000..985353d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampTaskInfo2DB")] + [Serializable] + public class CampTaskInfo2DB : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "resetTime", DataFormat = DataFormat.TwosComplement)] + public int resetTime + { + get + { + return this._resetTime ?? 0; + } + set + { + this._resetTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resetTimeSpecified + { + get + { + return this._resetTime != null; + } + set + { + bool flag = value == (this._resetTime == null); + if (flag) + { + this._resetTime = (value ? new int?(this.resetTime) : null); + } + } + } + + [ProtoMember(2, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + [ProtoMember(3, IsRequired = false, Name = "refreshTimes", DataFormat = DataFormat.TwosComplement)] + public int refreshTimes + { + get + { + return this._refreshTimes ?? 0; + } + set + { + this._refreshTimes = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshTimesSpecified + { + get + { + return this._refreshTimes != null; + } + set + { + bool flag = value == (this._refreshTimes == null); + if (flag) + { + this._refreshTimes = (value ? new int?(this.refreshTimes) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rewardTimes", DataFormat = DataFormat.TwosComplement)] + public int rewardTimes + { + get + { + return this._rewardTimes ?? 0; + } + set + { + this._rewardTimes = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardTimesSpecified + { + get + { + return this._rewardTimes != null; + } + set + { + bool flag = value == (this._rewardTimes == null); + if (flag) + { + this._rewardTimes = (value ? new int?(this.rewardTimes) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "rewardTime", DataFormat = DataFormat.TwosComplement)] + public int rewardTime + { + get + { + return this._rewardTime ?? 0; + } + set + { + this._rewardTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardTimeSpecified + { + get + { + return this._rewardTime != null; + } + set + { + bool flag = value == (this._rewardTime == null); + if (flag) + { + this._rewardTime = (value ? new int?(this.rewardTime) : null); + } + } + } + + private int? _resetTime; + + private readonly List _infos = new List(); + + private int? _refreshTimes; + + private int? _rewardTimes; + + private int? _rewardTime; + + private IExtension extensionObject; + + private bool ShouldSerializeresetTime() + { + return this.resetTimeSpecified; + } + + private void ResetresetTime() + { + this.resetTimeSpecified = false; + } + + private bool ShouldSerializerefreshTimes() + { + return this.refreshTimesSpecified; + } + + private void ResetrefreshTimes() + { + this.refreshTimesSpecified = false; + } + + private bool ShouldSerializerewardTimes() + { + return this.rewardTimesSpecified; + } + + private void ResetrewardTimes() + { + this.rewardTimesSpecified = false; + } + + private bool ShouldSerializerewardTime() + { + return this.rewardTimeSpecified; + } + + private void ResetrewardTime() + { + this.rewardTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs.meta new file mode 100644 index 00000000..a2808148 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskInfo2DB.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34e3eb5da703b1f439decf42d764ee53 +timeCreated: 1611403556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskStatus.cs new file mode 100644 index 00000000..2d05b2be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskStatus.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampTaskStatus")] + public enum CampTaskStatus + { + [ProtoEnum(Name = "CAMPTASK_GET", Value = 1)] + CAMPTASK_GET = 1, + [ProtoEnum(Name = "CAMPTASK_VIEW", Value = 2)] + CAMPTASK_VIEW, + [ProtoEnum(Name = "CAMPTASK_FINISH", Value = 3)] + CAMPTASK_FINISH, + [ProtoEnum(Name = "CAMPTASK_REWARD", Value = 4)] + CAMPTASK_REWARD + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskStatus.cs.meta new file mode 100644 index 00000000..3e1af537 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d03d2cb65f4f15740a973f16323e3bb4 +timeCreated: 1611404585 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskType.cs b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskType.cs new file mode 100644 index 00000000..4ddc34e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CampTaskType")] + public enum CampTaskType + { + [ProtoEnum(Name = "CAMPTASK_ITEM", Value = 1)] + CAMPTASK_ITEM = 1, + [ProtoEnum(Name = "CAMPTASK_SCENE", Value = 2)] + CAMPTASK_SCENE, + [ProtoEnum(Name = "CAMPTASK_PATROL", Value = 3)] + CAMPTASK_PATROL, + [ProtoEnum(Name = "CAMPTASK_SPY", Value = 4)] + CAMPTASK_SPY + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CampTaskType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskType.cs.meta new file mode 100644 index 00000000..36e3dbdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CampTaskType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34c2573c395523a4f9248023e1eb590c +timeCreated: 1611403556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerArg.cs new file mode 100644 index 00000000..36c6dc22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CancelLeavePartnerArg")] + [Serializable] + public class CancelLeavePartnerArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerArg.cs.meta new file mode 100644 index 00000000..469f82c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7b9c3d5e33e50646bbe009e421dc24c +timeCreated: 1611404292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerRes.cs new file mode 100644 index 00000000..9e7bae9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CancelLeavePartnerRes")] + [Serializable] + public class CancelLeavePartnerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerRes.cs.meta new file mode 100644 index 00000000..9f257d9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CancelLeavePartnerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3125db89662199142ba08d1303ac0997 +timeCreated: 1611403542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CancelRedDot.cs b/Client/Assets/Scripts/XMainClient/KKSG/CancelRedDot.cs new file mode 100644 index 00000000..447b3520 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CancelRedDot.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CancelRedDot")] + [Serializable] + public class CancelRedDot : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "systemid", DataFormat = DataFormat.TwosComplement)] + public uint systemid + { + get + { + return this._systemid ?? 0u; + } + set + { + this._systemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool systemidSpecified + { + get + { + return this._systemid != null; + } + set + { + bool flag = value == (this._systemid == null); + if (flag) + { + this._systemid = (value ? new uint?(this.systemid) : null); + } + } + } + + private uint? _systemid; + + private IExtension extensionObject; + + private bool ShouldSerializesystemid() + { + return this.systemidSpecified; + } + + private void Resetsystemid() + { + this.systemidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CancelRedDot.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CancelRedDot.cs.meta new file mode 100644 index 00000000..b732419c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CancelRedDot.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ea6199d981f27348b2d37874ef7cb3e +timeCreated: 1611403608 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs b/Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs new file mode 100644 index 00000000..c70c944e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CardAttr")] + [Serializable] + public class CardAttr : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + private uint? _id; + + private uint? _num; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs.meta new file mode 100644 index 00000000..e69567cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CardAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e998a11ac4e2754e9e266b14d9e107a +timeCreated: 1611403905 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs new file mode 100644 index 00000000..63c0d1a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs @@ -0,0 +1,30 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CardMatchOp")] + public enum CardMatchOp + { + [ProtoEnum(Name = "CardMatch_Begin", Value = 0)] + CardMatch_Begin, + [ProtoEnum(Name = "CardMatch_Add", Value = 2)] + CardMatch_Add = 2, + [ProtoEnum(Name = "CardMatch_Del", Value = 3)] + CardMatch_Del, + [ProtoEnum(Name = "CardMatch_RoundBegin", Value = 4)] + CardMatch_RoundBegin, + [ProtoEnum(Name = "CardMatch_RoundChange", Value = 5)] + CardMatch_RoundChange, + [ProtoEnum(Name = "CardMatch_RoundEnd", Value = 6)] + CardMatch_RoundEnd, + [ProtoEnum(Name = "CardMatch_End", Value = 7)] + CardMatch_End, + [ProtoEnum(Name = "CardMatch_Query", Value = 8)] + CardMatch_Query, + [ProtoEnum(Name = "CardMatch_RoundWaiting", Value = 9)] + CardMatch_RoundWaiting, + [ProtoEnum(Name = "CardMatch_SignUp", Value = 10)] + CardMatch_SignUp + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs.meta new file mode 100644 index 00000000..6bbabbf7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CardMatchOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9159147aecde594fa62ca7596421f46 +timeCreated: 1611404537 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CardMatchState.cs b/Client/Assets/Scripts/XMainClient/KKSG/CardMatchState.cs new file mode 100644 index 00000000..057fab2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CardMatchState.cs @@ -0,0 +1,26 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CardMatchState")] + public enum CardMatchState + { + [ProtoEnum(Name = "CardMatch_StateBegin", Value = 0)] + CardMatch_StateBegin, + [ProtoEnum(Name = "CardMatch_StateWaiting", Value = 1)] + CardMatch_StateWaiting, + [ProtoEnum(Name = "CardMatch_StateRoundWaiting", Value = 2)] + CardMatch_StateRoundWaiting, + [ProtoEnum(Name = "CardMatch_StateRoundBegin", Value = 3)] + CardMatch_StateRoundBegin, + [ProtoEnum(Name = "CardMatch_StateRounding", Value = 4)] + CardMatch_StateRounding, + [ProtoEnum(Name = "CardMatch_StateRoundEnd", Value = 5)] + CardMatch_StateRoundEnd, + [ProtoEnum(Name = "CardMatch_StateEnd", Value = 6)] + CardMatch_StateEnd, + [ProtoEnum(Name = "CardMatch_StateDummy", Value = 7)] + CardMatch_StateDummy + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CardMatchState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CardMatchState.cs.meta new file mode 100644 index 00000000..5d93427e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CardMatchState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eed3b18887daa8f4a931a23b6b34b120 +timeCreated: 1611404800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CareerData.cs b/Client/Assets/Scripts/XMainClient/KKSG/CareerData.cs new file mode 100644 index 00000000..bf485b87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CareerData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CareerData")] + [Serializable] + public class CareerData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public CarrerDataType type + { + get + { + return this._type ?? CarrerDataType.CARRER_DATA_LEVEL; + } + set + { + this._type = new CarrerDataType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new CarrerDataType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "para1", DataFormat = DataFormat.TwosComplement)] + public uint para1 + { + get + { + return this._para1 ?? 0u; + } + set + { + this._para1 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool para1Specified + { + get + { + return this._para1 != null; + } + set + { + bool flag = value == (this._para1 == null); + if (flag) + { + this._para1 = (value ? new uint?(this.para1) : null); + } + } + } + + private CarrerDataType? _type; + + private uint? _time; + + private uint? _para1; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializepara1() + { + return this.para1Specified; + } + + private void Resetpara1() + { + this.para1Specified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CareerData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CareerData.cs.meta new file mode 100644 index 00000000..519a3c40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CareerData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6fc7100e874c794891deab1065bfe20 +timeCreated: 1611404528 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CarrerDataType.cs b/Client/Assets/Scripts/XMainClient/KKSG/CarrerDataType.cs new file mode 100644 index 00000000..7ead53fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CarrerDataType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CarrerDataType")] + public enum CarrerDataType + { + [ProtoEnum(Name = "CARRER_DATA_LEVEL", Value = 1)] + CARRER_DATA_LEVEL = 1, + [ProtoEnum(Name = "CARRER_DATA_NEST", Value = 2)] + CARRER_DATA_NEST, + [ProtoEnum(Name = "CARRER_DATA_DRAGON", Value = 3)] + CARRER_DATA_DRAGON, + [ProtoEnum(Name = "CARRER_DATA_CREATEROLE", Value = 4)] + CARRER_DATA_CREATEROLE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CarrerDataType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CarrerDataType.cs.meta new file mode 100644 index 00000000..bbd05c4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CarrerDataType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 142eef2b7a9a1934499d11803a532bf4 +timeCreated: 1611403254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationArg.cs new file mode 100644 index 00000000..6bc7ab74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeDeclarationArg")] + [Serializable] + public class ChangeDeclarationArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "declaration", DataFormat = DataFormat.Default)] + public string declaration + { + get + { + return this._declaration ?? ""; + } + set + { + this._declaration = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool declarationSpecified + { + get + { + return this._declaration != null; + } + set + { + bool flag = value == (this._declaration == null); + if (flag) + { + this._declaration = (value ? this.declaration : null); + } + } + } + + private string _declaration; + + private IExtension extensionObject; + + private bool ShouldSerializedeclaration() + { + return this.declarationSpecified; + } + + private void Resetdeclaration() + { + this.declarationSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationArg.cs.meta new file mode 100644 index 00000000..3f0e273d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0faefa59eec233246a7b27582205af89 +timeCreated: 1611403211 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationRes.cs new file mode 100644 index 00000000..aba70ae3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeDeclarationRes")] + [Serializable] + public class ChangeDeclarationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "declaration", DataFormat = DataFormat.Default)] + public string declaration + { + get + { + return this._declaration ?? ""; + } + set + { + this._declaration = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool declarationSpecified + { + get + { + return this._declaration != null; + } + set + { + bool flag = value == (this._declaration == null); + if (flag) + { + this._declaration = (value ? this.declaration : null); + } + } + } + + private ErrorCode? _result; + + private string _declaration; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializedeclaration() + { + return this.declarationSpecified; + } + + private void Resetdeclaration() + { + this.declarationSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationRes.cs.meta new file mode 100644 index 00000000..31e80337 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDeclarationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6f3d4a4c32ffcb4d825b02bf553d6f8 +timeCreated: 1611404884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionArg.cs new file mode 100644 index 00000000..7347d933 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeDragonGuildPositionArg")] + [Serializable] + public class ChangeDragonGuildPositionArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public uint position + { + get + { + return this._position ?? 0u; + } + set + { + this._position = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new uint?(this.position) : null); + } + } + } + + private ulong? _roleid; + + private uint? _position; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionArg.cs.meta new file mode 100644 index 00000000..2d213f26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 52b45e69eca469b418940cdb346e1574 +timeCreated: 1611403709 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionRes.cs new file mode 100644 index 00000000..88be07b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeDragonGuildPositionRes")] + [Serializable] + public class ChangeDragonGuildPositionRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionRes.cs.meta new file mode 100644 index 00000000..f1d9e09b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildPositionRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9bef0d9c4aa516745bd9865a33bef042 +timeCreated: 1611404207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs new file mode 100644 index 00000000..2e0f57ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeDragonGuildSettingArg")] + [Serializable] + public class ChangeDragonGuildSettingArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "powerpoint", DataFormat = DataFormat.TwosComplement)] + public uint powerpoint + { + get + { + return this._powerpoint ?? 0u; + } + set + { + this._powerpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerpointSpecified + { + get + { + return this._powerpoint != null; + } + set + { + bool flag = value == (this._powerpoint == null); + if (flag) + { + this._powerpoint = (value ? new uint?(this.powerpoint) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "needapproval", DataFormat = DataFormat.TwosComplement)] + public uint needapproval + { + get + { + return this._needapproval ?? 0u; + } + set + { + this._needapproval = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needapprovalSpecified + { + get + { + return this._needapproval != null; + } + set + { + bool flag = value == (this._needapproval == null); + if (flag) + { + this._needapproval = (value ? new uint?(this.needapproval) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "annoucement", DataFormat = DataFormat.Default)] + public string annoucement + { + get + { + return this._annoucement ?? ""; + } + set + { + this._annoucement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool annoucementSpecified + { + get + { + return this._annoucement != null; + } + set + { + bool flag = value == (this._annoucement == null); + if (flag) + { + this._annoucement = (value ? this.annoucement : null); + } + } + } + + private uint? _powerpoint; + + private uint? _needapproval; + + private string _annoucement; + + private IExtension extensionObject; + + private bool ShouldSerializepowerpoint() + { + return this.powerpointSpecified; + } + + private void Resetpowerpoint() + { + this.powerpointSpecified = false; + } + + private bool ShouldSerializeneedapproval() + { + return this.needapprovalSpecified; + } + + private void Resetneedapproval() + { + this.needapprovalSpecified = false; + } + + private bool ShouldSerializeannoucement() + { + return this.annoucementSpecified; + } + + private void Resetannoucement() + { + this.annoucementSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs.meta new file mode 100644 index 00000000..08a07593 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d8a9af4208d69641a3db964c2f5f6dd +timeCreated: 1611403901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingRes.cs new file mode 100644 index 00000000..82b37394 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeDragonGuildSettingRes")] + [Serializable] + public class ChangeDragonGuildSettingRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingRes.cs.meta new file mode 100644 index 00000000..2439b50f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeDragonGuildSettingRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abe2540a69d648348a27437dfd1831b7 +timeCreated: 1611404308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs new file mode 100644 index 00000000..4c2287ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeGuildCardArg")] + [Serializable] + public class ChangeGuildCardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "card", DataFormat = DataFormat.TwosComplement)] + public uint card + { + get + { + return this._card ?? 0u; + } + set + { + this._card = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cardSpecified + { + get + { + return this._card != null; + } + set + { + bool flag = value == (this._card == null); + if (flag) + { + this._card = (value ? new uint?(this.card) : null); + } + } + } + + private uint? _card; + + private IExtension extensionObject; + + private bool ShouldSerializecard() + { + return this.cardSpecified; + } + + private void Resetcard() + { + this.cardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs.meta new file mode 100644 index 00000000..806d856f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d76cf36ad48da18459df383ff9edbf29 +timeCreated: 1611404635 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs new file mode 100644 index 00000000..65eeaeee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeGuildCardRes")] + [Serializable] + public class ChangeGuildCardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "card", DataFormat = DataFormat.TwosComplement)] + public uint card + { + get + { + return this._card ?? 0u; + } + set + { + this._card = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cardSpecified + { + get + { + return this._card != null; + } + set + { + bool flag = value == (this._card == null); + if (flag) + { + this._card = (value ? new uint?(this.card) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public uint result + { + get + { + return this._result ?? 0u; + } + set + { + this._result = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new uint?(this.result) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _card; + + private uint? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecard() + { + return this.cardSpecified; + } + + private void Resetcard() + { + this.cardSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs.meta new file mode 100644 index 00000000..33f0b52a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildCardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c19d0e17117382442aa696281cd00d32 +timeCreated: 1611404490 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionArg.cs new file mode 100644 index 00000000..98cf26fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeGuildPositionArg")] + [Serializable] + public class ChangeGuildPositionArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public int position + { + get + { + return this._position ?? 0; + } + set + { + this._position = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new int?(this.position) : null); + } + } + } + + private ulong? _roleid; + + private int? _position; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionArg.cs.meta new file mode 100644 index 00000000..0fde08e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47f5560c605667f45b21bee28ab5e58f +timeCreated: 1611403655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionRes.cs new file mode 100644 index 00000000..3b78c00d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeGuildPositionRes")] + [Serializable] + public class ChangeGuildPositionRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionRes.cs.meta new file mode 100644 index 00000000..e69ca7d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildPositionRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a683cbf6ee0be541923d7e0ba0a61c9 +timeCreated: 1611404200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingArg.cs new file mode 100644 index 00000000..59ca22d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeGuildSettingArg")] + [Serializable] + public class ChangeGuildSettingArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Icon", DataFormat = DataFormat.TwosComplement)] + public int Icon + { + get + { + return this._Icon ?? 0; + } + set + { + this._Icon = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IconSpecified + { + get + { + return this._Icon != null; + } + set + { + bool flag = value == (this._Icon == null); + if (flag) + { + this._Icon = (value ? new int?(this.Icon) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "powerpoint", DataFormat = DataFormat.TwosComplement)] + public int powerpoint + { + get + { + return this._powerpoint ?? 0; + } + set + { + this._powerpoint = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerpointSpecified + { + get + { + return this._powerpoint != null; + } + set + { + bool flag = value == (this._powerpoint == null); + if (flag) + { + this._powerpoint = (value ? new int?(this.powerpoint) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "needapproval", DataFormat = DataFormat.TwosComplement)] + public int needapproval + { + get + { + return this._needapproval ?? 0; + } + set + { + this._needapproval = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needapprovalSpecified + { + get + { + return this._needapproval != null; + } + set + { + bool flag = value == (this._needapproval == null); + if (flag) + { + this._needapproval = (value ? new int?(this.needapproval) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "annoucement", DataFormat = DataFormat.Default)] + public string annoucement + { + get + { + return this._annoucement ?? ""; + } + set + { + this._annoucement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool annoucementSpecified + { + get + { + return this._annoucement != null; + } + set + { + bool flag = value == (this._annoucement == null); + if (flag) + { + this._annoucement = (value ? this.annoucement : null); + } + } + } + + private int? _Icon; + + private int? _powerpoint; + + private int? _needapproval; + + private string _annoucement; + + private IExtension extensionObject; + + private bool ShouldSerializeIcon() + { + return this.IconSpecified; + } + + private void ResetIcon() + { + this.IconSpecified = false; + } + + private bool ShouldSerializepowerpoint() + { + return this.powerpointSpecified; + } + + private void Resetpowerpoint() + { + this.powerpointSpecified = false; + } + + private bool ShouldSerializeneedapproval() + { + return this.needapprovalSpecified; + } + + private void Resetneedapproval() + { + this.needapprovalSpecified = false; + } + + private bool ShouldSerializeannoucement() + { + return this.annoucementSpecified; + } + + private void Resetannoucement() + { + this.annoucementSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingArg.cs.meta new file mode 100644 index 00000000..b6e20bd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 143030fd876425b4fb3c4efd592495ca +timeCreated: 1611403254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingRes.cs new file mode 100644 index 00000000..59a71ff1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeGuildSettingRes")] + [Serializable] + public class ChangeGuildSettingRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingRes.cs.meta new file mode 100644 index 00000000..e5ae7a46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeGuildSettingRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 036dc2ed9a8096045b9fc77abf3315ef +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleArg.cs new file mode 100644 index 00000000..6bcd3f03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeLiveVisibleArg")] + [Serializable] + public class ChangeLiveVisibleArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "visible", DataFormat = DataFormat.Default)] + public bool visible + { + get + { + return this._visible ?? false; + } + set + { + this._visible = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool visibleSpecified + { + get + { + return this._visible != null; + } + set + { + bool flag = value == (this._visible == null); + if (flag) + { + this._visible = (value ? new bool?(this.visible) : null); + } + } + } + + private bool? _visible; + + private IExtension extensionObject; + + private bool ShouldSerializevisible() + { + return this.visibleSpecified; + } + + private void Resetvisible() + { + this.visibleSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleArg.cs.meta new file mode 100644 index 00000000..4361df7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: deafe089f3681b747ab71e8860e43fd2 +timeCreated: 1611404687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleRes.cs new file mode 100644 index 00000000..92e8d97d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeLiveVisibleRes")] + [Serializable] + public class ChangeLiveVisibleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleRes.cs.meta new file mode 100644 index 00000000..12d0318d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeLiveVisibleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac586646db71df04c9defecfe8c01835 +timeCreated: 1611404330 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameArg.cs new file mode 100644 index 00000000..964a3f14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeNameArg")] + [Serializable] + public class ChangeNameArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "iscostitem", DataFormat = DataFormat.Default)] + public bool iscostitem + { + get + { + return this._iscostitem ?? false; + } + set + { + this._iscostitem = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscostitemSpecified + { + get + { + return this._iscostitem != null; + } + set + { + bool flag = value == (this._iscostitem == null); + if (flag) + { + this._iscostitem = (value ? new bool?(this.iscostitem) : null); + } + } + } + + private string _name; + + private bool? _iscostitem; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeiscostitem() + { + return this.iscostitemSpecified; + } + + private void Resetiscostitem() + { + this.iscostitemSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameArg.cs.meta new file mode 100644 index 00000000..f70ce0ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c443b046eee0ba541819c36edf083bc0 +timeCreated: 1611404500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs new file mode 100644 index 00000000..6a068f01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeNameCountNtf")] + [Serializable] + public class ChangeNameCountNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs.meta new file mode 100644 index 00000000..5a2ff02e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameCountNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af75ddad7ae0468418be54aa203596f0 +timeCreated: 1611404344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameRes.cs new file mode 100644 index 00000000..a1ca766c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeNameRes")] + [Serializable] + public class ChangeNameRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameRes.cs.meta new file mode 100644 index 00000000..b987f3ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeNameRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e61b18c632fcfd146933759dda4b5c3d +timeCreated: 1611404745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs new file mode 100644 index 00000000..d82c217c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeOutLookOpArg")] + [Serializable] + public class ChangeOutLookOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookOp op + { + get + { + return this._op; + } + set + { + this._op = value; + } + } + + private OutLookOp _op = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs.meta new file mode 100644 index 00000000..2d24cecd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41de6d8e205c00642a57885453cfcb4b +timeCreated: 1611403637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs new file mode 100644 index 00000000..ef164dae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeOutLookOpRes")] + [Serializable] + public class ChangeOutLookOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs.meta new file mode 100644 index 00000000..490824db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeOutLookOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d0fce2bb2ee48c45b64a8019e842084 +timeCreated: 1611404103 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionArg.cs new file mode 100644 index 00000000..e0ff29ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeProfessionArg")] + [Serializable] + public class ChangeProfessionArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pro", DataFormat = DataFormat.TwosComplement)] + public uint pro + { + get + { + return this._pro ?? 0u; + } + set + { + this._pro = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool proSpecified + { + get + { + return this._pro != null; + } + set + { + bool flag = value == (this._pro == null); + if (flag) + { + this._pro = (value ? new uint?(this.pro) : null); + } + } + } + + private uint? _pro; + + private IExtension extensionObject; + + private bool ShouldSerializepro() + { + return this.proSpecified; + } + + private void Resetpro() + { + this.proSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionArg.cs.meta new file mode 100644 index 00000000..4306f4c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 939fe7ee9150e6e498e3428df4721a97 +timeCreated: 1611404152 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionRes.cs new file mode 100644 index 00000000..bd2e1f40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeProfessionRes")] + [Serializable] + public class ChangeProfessionRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionRes.cs.meta new file mode 100644 index 00000000..1a7ae22e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeProfessionRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0f1f2098530d9f47ae56e6834523651 +timeCreated: 1611404488 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateArg.cs new file mode 100644 index 00000000..8780d486 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeRiskBoxStateArg")] + [Serializable] + public class ChangeRiskBoxStateArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "destState", DataFormat = DataFormat.TwosComplement)] + public RiskBoxState destState + { + get + { + return this._destState ?? RiskBoxState.RISK_BOX_LOCKED; + } + set + { + this._destState = new RiskBoxState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool destStateSpecified + { + get + { + return this._destState != null; + } + set + { + bool flag = value == (this._destState == null); + if (flag) + { + this._destState = (value ? new RiskBoxState?(this.destState) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public int slot + { + get + { + return this._slot ?? 0; + } + set + { + this._slot = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new int?(this.slot) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "mapID", DataFormat = DataFormat.TwosComplement)] + public int mapID + { + get + { + return this._mapID ?? 0; + } + set + { + this._mapID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapIDSpecified + { + get + { + return this._mapID != null; + } + set + { + bool flag = value == (this._mapID == null); + if (flag) + { + this._mapID = (value ? new int?(this.mapID) : null); + } + } + } + + private RiskBoxState? _destState; + + private int? _slot; + + private int? _mapID; + + private IExtension extensionObject; + + private bool ShouldSerializedestState() + { + return this.destStateSpecified; + } + + private void ResetdestState() + { + this.destStateSpecified = false; + } + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + private bool ShouldSerializemapID() + { + return this.mapIDSpecified; + } + + private void ResetmapID() + { + this.mapIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateArg.cs.meta new file mode 100644 index 00000000..4ff0d444 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8820c97d94150db4aab592061674659f +timeCreated: 1611404082 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateRes.cs new file mode 100644 index 00000000..2c23a135 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeRiskBoxStateRes")] + [Serializable] + public class ChangeRiskBoxStateRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "openBoxRewards", DataFormat = DataFormat.Default)] + public List openBoxRewards + { + get + { + return this._openBoxRewards; + } + } + + private ErrorCode? _error; + + private readonly List _openBoxRewards = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateRes.cs.meta new file mode 100644 index 00000000..1145bc19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeRiskBoxStateRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 127ea2e7f55037d45868dce3ddd2bec4 +timeCreated: 1611403242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs new file mode 100644 index 00000000..b00374a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeSkillSetArg")] + [Serializable] + public class ChangeSkillSetArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs.meta new file mode 100644 index 00000000..44695591 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d9738cff9873be4380462aad36bfe99 +timeCreated: 1611403506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs new file mode 100644 index 00000000..789080c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeSkillSetRes")] + [Serializable] + public class ChangeSkillSetRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "record", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkillRecord record + { + get + { + return this._record; + } + set + { + this._record = value; + } + } + + private ErrorCode? _errorcode; + + private SkillRecord _record = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs.meta new file mode 100644 index 00000000..9ffbbfa0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSkillSetRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6bb9c7e6ce3d71941967b046de96ed7a +timeCreated: 1611403893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementNtf.cs new file mode 100644 index 00000000..8318ba2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementNtf.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeSupplementNtf")] + [Serializable] + public class ChangeSupplementNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "uniqueids", DataFormat = DataFormat.TwosComplement)] + public List uniqueids + { + get + { + return this._uniqueids; + } + } + + private ErrorCode? _errorcode; + + private readonly List _uniqueids = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementNtf.cs.meta new file mode 100644 index 00000000..633f0f22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d1d63323180e4643bc8d535f9bc2941 +timeCreated: 1611403193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementReport.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementReport.cs new file mode 100644 index 00000000..ca9674e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementReport.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeSupplementReport")] + [Serializable] + public class ChangeSupplementReport : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uniqueid", DataFormat = DataFormat.TwosComplement)] + public ulong uniqueid + { + get + { + return this._uniqueid ?? 0UL; + } + set + { + this._uniqueid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uniqueidSpecified + { + get + { + return this._uniqueid != null; + } + set + { + bool flag = value == (this._uniqueid == null); + if (flag) + { + this._uniqueid = (value ? new ulong?(this.uniqueid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public uint slot + { + get + { + return this._slot ?? 0u; + } + set + { + this._slot = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new uint?(this.slot) : null); + } + } + } + + private ulong? _uniqueid; + + private uint? _slot; + + private IExtension extensionObject; + + private bool ShouldSerializeuniqueid() + { + return this.uniqueidSpecified; + } + + private void Resetuniqueid() + { + this.uniqueidSpecified = false; + } + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementReport.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementReport.cs.meta new file mode 100644 index 00000000..e427ff70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeSupplementReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 545bf3814d56f2b4ab2e53ec4de23528 +timeCreated: 1611403734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs new file mode 100644 index 00000000..41329254 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeWatchRoleArg")] + [Serializable] + public class ChangeWatchRoleArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + private ulong? _roleID; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs.meta new file mode 100644 index 00000000..52a75af8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e6476bd418168d4e9685c9ba273da00 +timeCreated: 1611404128 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs new file mode 100644 index 00000000..2a6505a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangeWatchRoleRes")] + [Serializable] + public class ChangeWatchRoleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs.meta new file mode 100644 index 00000000..eeb2068d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangeWatchRoleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67c24c5960415684c9d7a84c7054c3ae +timeCreated: 1611403880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangedAttribute.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChangedAttribute.cs new file mode 100644 index 00000000..ba0895a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangedAttribute.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChangedAttribute")] + [Serializable] + public class ChangedAttribute : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public ulong time + { + get + { + return this._time ?? 0UL; + } + set + { + this._time = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new ulong?(this.time) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uID", DataFormat = DataFormat.TwosComplement)] + public ulong uID + { + get + { + return this._uID ?? 0UL; + } + set + { + this._uID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uIDSpecified + { + get + { + return this._uID != null; + } + set + { + bool flag = value == (this._uID == null); + if (flag) + { + this._uID = (value ? new ulong?(this.uID) : null); + } + } + } + + [ProtoMember(3, Name = "AttrID", DataFormat = DataFormat.TwosComplement)] + public List AttrID + { + get + { + return this._AttrID; + } + } + + [ProtoMember(4, Name = "AttrValue", DataFormat = DataFormat.TwosComplement)] + public List AttrValue + { + get + { + return this._AttrValue; + } + } + + [ProtoMember(5, IsRequired = false, Name = "showHUD", DataFormat = DataFormat.Default)] + public bool showHUD + { + get + { + return this._showHUD ?? false; + } + set + { + this._showHUD = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool showHUDSpecified + { + get + { + return this._showHUD != null; + } + set + { + bool flag = value == (this._showHUD == null); + if (flag) + { + this._showHUD = (value ? new bool?(this.showHUD) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "needHUD", DataFormat = DataFormat.Default)] + public bool needHUD + { + get + { + return this._needHUD ?? false; + } + set + { + this._needHUD = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needHUDSpecified + { + get + { + return this._needHUD != null; + } + set + { + bool flag = value == (this._needHUD == null); + if (flag) + { + this._needHUD = (value ? new bool?(this.needHUD) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "CasterID", DataFormat = DataFormat.TwosComplement)] + public ulong CasterID + { + get + { + return this._CasterID ?? 0UL; + } + set + { + this._CasterID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CasterIDSpecified + { + get + { + return this._CasterID != null; + } + set + { + bool flag = value == (this._CasterID == null); + if (flag) + { + this._CasterID = (value ? new ulong?(this.CasterID) : null); + } + } + } + + private ulong? _time; + + private ulong? _uID; + + private readonly List _AttrID = new List(); + + private readonly List _AttrValue = new List(); + + private bool? _showHUD; + + private bool? _needHUD; + + private ulong? _CasterID; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeuID() + { + return this.uIDSpecified; + } + + private void ResetuID() + { + this.uIDSpecified = false; + } + + private bool ShouldSerializeshowHUD() + { + return this.showHUDSpecified; + } + + private void ResetshowHUD() + { + this.showHUDSpecified = false; + } + + private bool ShouldSerializeneedHUD() + { + return this.needHUDSpecified; + } + + private void ResetneedHUD() + { + this.needHUDSpecified = false; + } + + private bool ShouldSerializeCasterID() + { + return this.CasterIDSpecified; + } + + private void ResetCasterID() + { + this.CasterIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChangedAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChangedAttribute.cs.meta new file mode 100644 index 00000000..72bd3488 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChangedAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae182628c10b7d348ab0a272beea0e43 +timeCreated: 1611404337 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs new file mode 100644 index 00000000..1aa414da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatArg")] + [Serializable] + public class ChatArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "chatinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatInfo chatinfo + { + get + { + return this._chatinfo; + } + set + { + this._chatinfo = value; + } + } + + private ChatInfo _chatinfo = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs.meta new file mode 100644 index 00000000..c38e4ea3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3cfc820aa32ebc45a468124f2602a73 +timeCreated: 1611404390 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatChannel.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatChannel.cs new file mode 100644 index 00000000..a750ed0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatChannel.cs @@ -0,0 +1,38 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatChannel")] + public enum ChatChannel + { + [ProtoEnum(Name = "WorldChannel", Value = 1)] + WorldChannel = 1, + [ProtoEnum(Name = "GuildChannel", Value = 2)] + GuildChannel, + [ProtoEnum(Name = "PrivateChannel", Value = 3)] + PrivateChannel, + [ProtoEnum(Name = "SystemChannel", Value = 4)] + SystemChannel, + [ProtoEnum(Name = "LampShortChannel", Value = 5)] + LampShortChannel, + [ProtoEnum(Name = "LampLongChannel", Value = 6)] + LampLongChannel, + [ProtoEnum(Name = "TeamChannel", Value = 7)] + TeamChannel, + [ProtoEnum(Name = "CampChannel", Value = 8)] + CampChannel, + [ProtoEnum(Name = "SpectateChannel", Value = 9)] + SpectateChannel, + [ProtoEnum(Name = "CurrentChannel", Value = 10)] + CurrentChannel, + [ProtoEnum(Name = "PartnerChannel", Value = 11)] + PartnerChannel, + [ProtoEnum(Name = "AudioChannel", Value = 12)] + AudioChannel, + [ProtoEnum(Name = "BattleChannel", Value = 13)] + BattleChannel, + [ProtoEnum(Name = "GroupChatChannel", Value = 14)] + GroupChatChannel + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatChannel.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatChannel.cs.meta new file mode 100644 index 00000000..f7e4e802 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatChannel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12279bed568519e49b4bec713b525751 +timeCreated: 1611403241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs new file mode 100644 index 00000000..fff5aa55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatDest")] + [Serializable] + public class ChatDest : IExtensible + { + [ProtoMember(1, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + private readonly List _roleid = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs.meta new file mode 100644 index 00000000..b28dcc68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatDest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cae7dc6b9b1f014aaa0c2945bdcd4bb +timeCreated: 1611403998 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs new file mode 100644 index 00000000..ee5f3226 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs @@ -0,0 +1,622 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatInfo")] + [Serializable] + public class ChatInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "channel", DataFormat = DataFormat.TwosComplement)] + public uint channel + { + get + { + return this._channel ?? 0u; + } + set + { + this._channel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool channelSpecified + { + get + { + return this._channel != null; + } + set + { + bool flag = value == (this._channel == null); + if (flag) + { + this._channel = (value ? new uint?(this.channel) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "source", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatSource source + { + get + { + return this._source; + } + set + { + this._source = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "dest", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatDest dest + { + get + { + return this._dest; + } + set + { + this._dest = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + public string info + { + get + { + return this._info ?? ""; + } + set + { + this._info = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool infoSpecified + { + get + { + return this._info != null; + } + set + { + bool flag = value == (this._info == null); + if (flag) + { + this._info = (value ? this.info : null); + } + } + } + + [ProtoMember(5, Name = "param", DataFormat = DataFormat.Default)] + public List param + { + get + { + return this._param; + } + } + + [ProtoMember(6, IsRequired = false, Name = "priority", DataFormat = DataFormat.TwosComplement)] + public uint priority + { + get + { + return this._priority ?? 0u; + } + set + { + this._priority = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool prioritySpecified + { + get + { + return this._priority != null; + } + set + { + bool flag = value == (this._priority == null); + if (flag) + { + this._priority = (value ? new uint?(this.priority) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "issystem", DataFormat = DataFormat.Default)] + public bool issystem + { + get + { + return this._issystem ?? false; + } + set + { + this._issystem = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool issystemSpecified + { + get + { + return this._issystem != null; + } + set + { + bool flag = value == (this._issystem == null); + if (flag) + { + this._issystem = (value ? new bool?(this.issystem) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "storeKeyId", DataFormat = DataFormat.TwosComplement)] + public ulong storeKeyId + { + get + { + return this._storeKeyId ?? 0UL; + } + set + { + this._storeKeyId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool storeKeyIdSpecified + { + get + { + return this._storeKeyId != null; + } + set + { + bool flag = value == (this._storeKeyId == null); + if (flag) + { + this._storeKeyId = (value ? new ulong?(this.storeKeyId) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "audioUid", DataFormat = DataFormat.TwosComplement)] + public ulong audioUid + { + get + { + return this._audioUid ?? 0UL; + } + set + { + this._audioUid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioUidSpecified + { + get + { + return this._audioUid != null; + } + set + { + bool flag = value == (this._audioUid == null); + if (flag) + { + this._audioUid = (value ? new ulong?(this.audioUid) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "audioLen", DataFormat = DataFormat.TwosComplement)] + public uint audioLen + { + get + { + return this._audioLen ?? 0u; + } + set + { + this._audioLen = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioLenSpecified + { + get + { + return this._audioLen != null; + } + set + { + bool flag = value == (this._audioLen == null); + if (flag) + { + this._audioLen = (value ? new uint?(this.audioLen) : null); + } + } + } + + [ProtoMember(12, Name = "destList", DataFormat = DataFormat.Default)] + public List destList + { + get + { + return this._destList; + } + } + + [ProtoMember(13, IsRequired = false, Name = "isbroadcast", DataFormat = DataFormat.Default)] + public bool isbroadcast + { + get + { + return this._isbroadcast ?? false; + } + set + { + this._isbroadcast = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbroadcastSpecified + { + get + { + return this._isbroadcast != null; + } + set + { + bool flag = value == (this._isbroadcast == null); + if (flag) + { + this._isbroadcast = (value ? new bool?(this.isbroadcast) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "isRecruit", DataFormat = DataFormat.Default)] + public bool isRecruit + { + get + { + return this._isRecruit ?? false; + } + set + { + this._isRecruit = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isRecruitSpecified + { + get + { + return this._isRecruit != null; + } + set + { + bool flag = value == (this._isRecruit == null); + if (flag) + { + this._isRecruit = (value ? new bool?(this.isRecruit) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "isDragonGuildRecruit", DataFormat = DataFormat.Default)] + public bool isDragonGuildRecruit + { + get + { + return this._isDragonGuildRecruit ?? false; + } + set + { + this._isDragonGuildRecruit = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isDragonGuildRecruitSpecified + { + get + { + return this._isDragonGuildRecruit != null; + } + set + { + bool flag = value == (this._isDragonGuildRecruit == null); + if (flag) + { + this._isDragonGuildRecruit = (value ? new bool?(this.isDragonGuildRecruit) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "groupchatinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GroupChatTeamInfo groupchatinfo + { + get + { + return this._groupchatinfo; + } + set + { + this._groupchatinfo = value; + } + } + + [ProtoMember(18, IsRequired = false, Name = "groupchatnewrole", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatSource groupchatnewrole + { + get + { + return this._groupchatnewrole; + } + set + { + this._groupchatnewrole = value; + } + } + + private uint? _channel; + + private ChatSource _source = null; + + private ChatDest _dest = null; + + private string _info; + + private readonly List _param = new List(); + + private uint? _priority; + + private uint? _time; + + private bool? _issystem; + + private ulong? _storeKeyId; + + private ulong? _audioUid; + + private uint? _audioLen; + + private readonly List _destList = new List(); + + private bool? _isbroadcast; + + private uint? _level; + + private bool? _isRecruit; + + private bool? _isDragonGuildRecruit; + + private GroupChatTeamInfo _groupchatinfo = null; + + private ChatSource _groupchatnewrole = null; + + private IExtension extensionObject; + + private bool ShouldSerializechannel() + { + return this.channelSpecified; + } + + private void Resetchannel() + { + this.channelSpecified = false; + } + + private bool ShouldSerializeinfo() + { + return this.infoSpecified; + } + + private void Resetinfo() + { + this.infoSpecified = false; + } + + private bool ShouldSerializepriority() + { + return this.prioritySpecified; + } + + private void Resetpriority() + { + this.prioritySpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeissystem() + { + return this.issystemSpecified; + } + + private void Resetissystem() + { + this.issystemSpecified = false; + } + + private bool ShouldSerializestoreKeyId() + { + return this.storeKeyIdSpecified; + } + + private void ResetstoreKeyId() + { + this.storeKeyIdSpecified = false; + } + + private bool ShouldSerializeaudioUid() + { + return this.audioUidSpecified; + } + + private void ResetaudioUid() + { + this.audioUidSpecified = false; + } + + private bool ShouldSerializeaudioLen() + { + return this.audioLenSpecified; + } + + private void ResetaudioLen() + { + this.audioLenSpecified = false; + } + + private bool ShouldSerializeisbroadcast() + { + return this.isbroadcastSpecified; + } + + private void Resetisbroadcast() + { + this.isbroadcastSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeisRecruit() + { + return this.isRecruitSpecified; + } + + private void ResetisRecruit() + { + this.isRecruitSpecified = false; + } + + private bool ShouldSerializeisDragonGuildRecruit() + { + return this.isDragonGuildRecruitSpecified; + } + + private void ResetisDragonGuildRecruit() + { + this.isDragonGuildRecruitSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs.meta new file mode 100644 index 00000000..5d8417a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ccdc04215ed39f04e930f5a3843238d8 +timeCreated: 1611404552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatNotify.cs new file mode 100644 index 00000000..63bfba14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatNotify.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatNotify")] + [Serializable] + public class ChatNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "chatinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatInfo chatinfo + { + get + { + return this._chatinfo; + } + set + { + this._chatinfo = value; + } + } + + private ChatInfo _chatinfo = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatNotify.cs.meta new file mode 100644 index 00000000..c5db8569 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a93819c3d5c7952449d5d9a6dcf0dc92 +timeCreated: 1611404297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatOfflineNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatOfflineNotify.cs new file mode 100644 index 00000000..349293c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatOfflineNotify.cs @@ -0,0 +1,101 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatOfflineNotify")] + [Serializable] + public class ChatOfflineNotify : IExtensible + { + [ProtoMember(1, Name = "rolechat", DataFormat = DataFormat.Default)] + public List rolechat + { + get + { + return this._rolechat; + } + } + + [ProtoMember(2, Name = "guildchat", DataFormat = DataFormat.Default)] + public List guildchat + { + get + { + return this._guildchat; + } + } + + [ProtoMember(3, Name = "worldchat", DataFormat = DataFormat.Default)] + public List worldchat + { + get + { + return this._worldchat; + } + } + + [ProtoMember(4, Name = "teamchat", DataFormat = DataFormat.Default)] + public List teamchat + { + get + { + return this._teamchat; + } + } + + [ProtoMember(5, IsRequired = false, Name = "privatechatlist", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PrivateChatList privatechatlist + { + get + { + return this._privatechatlist; + } + set + { + this._privatechatlist = value; + } + } + + [ProtoMember(6, Name = "partnerchat", DataFormat = DataFormat.Default)] + public List partnerchat + { + get + { + return this._partnerchat; + } + } + + [ProtoMember(7, Name = "groupchat", DataFormat = DataFormat.Default)] + public List groupchat + { + get + { + return this._groupchat; + } + } + + private readonly List _rolechat = new List(); + + private readonly List _guildchat = new List(); + + private readonly List _worldchat = new List(); + + private readonly List _teamchat = new List(); + + private PrivateChatList _privatechatlist = null; + + private readonly List _partnerchat = new List(); + + private readonly List _groupchat = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatOfflineNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatOfflineNotify.cs.meta new file mode 100644 index 00000000..1fc341a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatOfflineNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d22de5bcf96542b4bb914fd6c5286477 +timeCreated: 1611404594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParam.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParam.cs new file mode 100644 index 00000000..5f7cffa0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParam.cs @@ -0,0 +1,146 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParam")] + [Serializable] + public class ChatParam : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "role", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatParamRole role + { + get + { + return this._role; + } + set + { + this._role = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "item", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatParamItem item + { + get + { + return this._item; + } + set + { + this._item = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "num", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatParamNum num + { + get + { + return this._num; + } + set + { + this._num = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "guild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatParamGuild guild + { + get + { + return this._guild; + } + set + { + this._guild = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "team", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatParamTeam team + { + get + { + return this._team; + } + set + { + this._team = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "link", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatParamLink link + { + get + { + return this._link; + } + set + { + this._link = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "spectate", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatParamSpectate spectate + { + get + { + return this._spectate; + } + set + { + this._spectate = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "dragonguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ChatParamDragonGuild dragonguild + { + get + { + return this._dragonguild; + } + set + { + this._dragonguild = value; + } + } + + private ChatParamRole _role = null; + + private ChatParamItem _item = null; + + private ChatParamNum _num = null; + + private ChatParamGuild _guild = null; + + private ChatParamTeam _team = null; + + private ChatParamLink _link = null; + + private ChatParamSpectate _spectate = null; + + private ChatParamDragonGuild _dragonguild = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParam.cs.meta new file mode 100644 index 00000000..0a50b302 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9a28d119f0c2af4491f221a9a947e9f +timeCreated: 1611404900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamDragonGuild.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamDragonGuild.cs new file mode 100644 index 00000000..c7532edd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamDragonGuild.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParamDragonGuild")] + [Serializable] + public class ChatParamDragonGuild : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dragonguildId", DataFormat = DataFormat.TwosComplement)] + public ulong dragonguildId + { + get + { + return this._dragonguildId ?? 0UL; + } + set + { + this._dragonguildId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonguildIdSpecified + { + get + { + return this._dragonguildId != null; + } + set + { + bool flag = value == (this._dragonguildId == null); + if (flag) + { + this._dragonguildId = (value ? new ulong?(this.dragonguildId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "dragonguildname", DataFormat = DataFormat.Default)] + public string dragonguildname + { + get + { + return this._dragonguildname ?? ""; + } + set + { + this._dragonguildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonguildnameSpecified + { + get + { + return this._dragonguildname != null; + } + set + { + bool flag = value == (this._dragonguildname == null); + if (flag) + { + this._dragonguildname = (value ? this.dragonguildname : null); + } + } + } + + private ulong? _dragonguildId; + + private string _dragonguildname; + + private IExtension extensionObject; + + private bool ShouldSerializedragonguildId() + { + return this.dragonguildIdSpecified; + } + + private void ResetdragonguildId() + { + this.dragonguildIdSpecified = false; + } + + private bool ShouldSerializedragonguildname() + { + return this.dragonguildnameSpecified; + } + + private void Resetdragonguildname() + { + this.dragonguildnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamDragonGuild.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamDragonGuild.cs.meta new file mode 100644 index 00000000..36f4be69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamDragonGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4942bad71afb62641a2650b5765d154f +timeCreated: 1611403661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamGuild.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamGuild.cs new file mode 100644 index 00000000..b211e9ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamGuild.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParamGuild")] + [Serializable] + public class ChatParamGuild : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + private ulong? _guildid; + + private string _guildname; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamGuild.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamGuild.cs.meta new file mode 100644 index 00000000..6b9d101c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9afedde4c7df3214a84ad2405c5e8e02 +timeCreated: 1611404203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamItem.cs new file mode 100644 index 00000000..60a3a8fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamItem.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParamItem")] + [Serializable] + public class ChatParamItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "item", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief item + { + get + { + return this._item; + } + set + { + this._item = value; + } + } + + private ItemBrief _item = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamItem.cs.meta new file mode 100644 index 00000000..4c0b68c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c918d0db4c7e36d44a4adb03920fdadc +timeCreated: 1611404537 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamLink.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamLink.cs new file mode 100644 index 00000000..adb67fab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamLink.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParamLink")] + [Serializable] + public class ChatParamLink : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "content", DataFormat = DataFormat.Default)] + public string content + { + get + { + return this._content ?? ""; + } + set + { + this._content = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contentSpecified + { + get + { + return this._content != null; + } + set + { + bool flag = value == (this._content == null); + if (flag) + { + this._content = (value ? this.content : null); + } + } + } + + [ProtoMember(3, Name = "param", DataFormat = DataFormat.TwosComplement)] + public List param + { + get + { + return this._param; + } + } + + private uint? _id; + + private string _content; + + private readonly List _param = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecontent() + { + return this.contentSpecified; + } + + private void Resetcontent() + { + this.contentSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamLink.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamLink.cs.meta new file mode 100644 index 00000000..b63faaa1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamLink.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc1bb52b5a800c149ab8593a48ce84b4 +timeCreated: 1611404933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamNum.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamNum.cs new file mode 100644 index 00000000..ac89b77d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamNum.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParamNum")] + [Serializable] + public class ChatParamNum : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + private uint? _num; + + private IExtension extensionObject; + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamNum.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamNum.cs.meta new file mode 100644 index 00000000..58326bc0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamNum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3314df503958b64a98c71452d413b0e +timeCreated: 1611404497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamRole.cs new file mode 100644 index 00000000..994c2331 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamRole.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParamRole")] + [Serializable] + public class ChatParamRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uniqueid", DataFormat = DataFormat.TwosComplement)] + public ulong uniqueid + { + get + { + return this._uniqueid ?? 0UL; + } + set + { + this._uniqueid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uniqueidSpecified + { + get + { + return this._uniqueid != null; + } + set + { + bool flag = value == (this._uniqueid == null); + if (flag) + { + this._uniqueid = (value ? new ulong?(this.uniqueid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + private ulong? _uniqueid; + + private string _name; + + private uint? _profession; + + private IExtension extensionObject; + + private bool ShouldSerializeuniqueid() + { + return this.uniqueidSpecified; + } + + private void Resetuniqueid() + { + this.uniqueidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamRole.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamRole.cs.meta new file mode 100644 index 00000000..29d103fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d9d8eeb87af6d44aba981cf7e3bbaa7 +timeCreated: 1611404237 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamSpectate.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamSpectate.cs new file mode 100644 index 00000000..2d5178e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamSpectate.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParamSpectate")] + [Serializable] + public class ChatParamSpectate : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "liveid", DataFormat = DataFormat.TwosComplement)] + public uint liveid + { + get + { + return this._liveid ?? 0u; + } + set + { + this._liveid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveidSpecified + { + get + { + return this._liveid != null; + } + set + { + bool flag = value == (this._liveid == null); + if (flag) + { + this._liveid = (value ? new uint?(this.liveid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "livetype", DataFormat = DataFormat.TwosComplement)] + public uint livetype + { + get + { + return this._livetype ?? 0u; + } + set + { + this._livetype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool livetypeSpecified + { + get + { + return this._livetype != null; + } + set + { + bool flag = value == (this._livetype == null); + if (flag) + { + this._livetype = (value ? new uint?(this.livetype) : null); + } + } + } + + private uint? _liveid; + + private uint? _livetype; + + private IExtension extensionObject; + + private bool ShouldSerializeliveid() + { + return this.liveidSpecified; + } + + private void Resetliveid() + { + this.liveidSpecified = false; + } + + private bool ShouldSerializelivetype() + { + return this.livetypeSpecified; + } + + private void Resetlivetype() + { + this.livetypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamSpectate.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamSpectate.cs.meta new file mode 100644 index 00000000..ae10906f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamSpectate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0ea5959a8238d348bea008615cb4d7c +timeCreated: 1611404354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamTeam.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamTeam.cs new file mode 100644 index 00000000..ee87939a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamTeam.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatParamTeam")] + [Serializable] + public class ChatParamTeam : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "expeditionid", DataFormat = DataFormat.TwosComplement)] + public uint expeditionid + { + get + { + return this._expeditionid ?? 0u; + } + set + { + this._expeditionid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expeditionidSpecified + { + get + { + return this._expeditionid != null; + } + set + { + bool flag = value == (this._expeditionid == null); + if (flag) + { + this._expeditionid = (value ? new uint?(this.expeditionid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "teamname", DataFormat = DataFormat.Default)] + public string teamname + { + get + { + return this._teamname ?? ""; + } + set + { + this._teamname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamnameSpecified + { + get + { + return this._teamname != null; + } + set + { + bool flag = value == (this._teamname == null); + if (flag) + { + this._teamname = (value ? this.teamname : null); + } + } + } + + private uint? _teamid; + + private uint? _expeditionid; + + private string _teamname; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializeexpeditionid() + { + return this.expeditionidSpecified; + } + + private void Resetexpeditionid() + { + this.expeditionidSpecified = false; + } + + private bool ShouldSerializeteamname() + { + return this.teamnameSpecified; + } + + private void Resetteamname() + { + this.teamnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatParamTeam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamTeam.cs.meta new file mode 100644 index 00000000..04ecbe83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatParamTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90eb4ddbfe1331e478fbf75486ab643e +timeCreated: 1611404141 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs new file mode 100644 index 00000000..495b8444 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatRes")] + [Serializable] + public class ChatRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public uint cooldown + { + get + { + return this._cooldown ?? 0u; + } + set + { + this._cooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldownSpecified + { + get + { + return this._cooldown != null; + } + set + { + bool flag = value == (this._cooldown == null); + if (flag) + { + this._cooldown = (value ? new uint?(this.cooldown) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _cooldown; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecooldown() + { + return this.cooldownSpecified; + } + + private void Resetcooldown() + { + this.cooldownSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs.meta new file mode 100644 index 00000000..ed986d5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b727092f9dcd7a41a92e52d6fef38e7 +timeCreated: 1611403686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatSource.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChatSource.cs new file mode 100644 index 00000000..db6f7593 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatSource.cs @@ -0,0 +1,551 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChatSource")] + [Serializable] + public class ChatSource : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "viplevel", DataFormat = DataFormat.TwosComplement)] + public uint viplevel + { + get + { + return this._viplevel ?? 0u; + } + set + { + this._viplevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool viplevelSpecified + { + get + { + return this._viplevel != null; + } + set + { + bool flag = value == (this._viplevel == null); + if (flag) + { + this._viplevel = (value ? new uint?(this.viplevel) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "powerpoint", DataFormat = DataFormat.TwosComplement)] + public uint powerpoint + { + get + { + return this._powerpoint ?? 0u; + } + set + { + this._powerpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerpointSpecified + { + get + { + return this._powerpoint != null; + } + set + { + bool flag = value == (this._powerpoint == null); + if (flag) + { + this._powerpoint = (value ? new uint?(this.powerpoint) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "coverDesignationID", DataFormat = DataFormat.TwosComplement)] + public uint coverDesignationID + { + get + { + return this._coverDesignationID ?? 0u; + } + set + { + this._coverDesignationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool coverDesignationIDSpecified + { + get + { + return this._coverDesignationID != null; + } + set + { + bool flag = value == (this._coverDesignationID == null); + if (flag) + { + this._coverDesignationID = (value ? new uint?(this.coverDesignationID) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "military_rank", DataFormat = DataFormat.TwosComplement)] + public uint military_rank + { + get + { + return this._military_rank ?? 0u; + } + set + { + this._military_rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_rankSpecified + { + get + { + return this._military_rank != null; + } + set + { + bool flag = value == (this._military_rank == null); + if (flag) + { + this._military_rank = (value ? new uint?(this.military_rank) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "desname", DataFormat = DataFormat.Default)] + public string desname + { + get + { + return this._desname ?? ""; + } + set + { + this._desname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool desnameSpecified + { + get + { + return this._desname != null; + } + set + { + bool flag = value == (this._desname == null); + if (flag) + { + this._desname = (value ? this.desname : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "pre", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayConsume pre + { + get + { + return this._pre; + } + set + { + this._pre = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "isBackFlow", DataFormat = DataFormat.Default)] + public bool isBackFlow + { + get + { + return this._isBackFlow ?? false; + } + set + { + this._isBackFlow = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isBackFlowSpecified + { + get + { + return this._isBackFlow != null; + } + set + { + bool flag = value == (this._isBackFlow == null); + if (flag) + { + this._isBackFlow = (value ? new bool?(this.isBackFlow) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "campDuelID", DataFormat = DataFormat.TwosComplement)] + public uint campDuelID + { + get + { + return this._campDuelID ?? 0u; + } + set + { + this._campDuelID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool campDuelIDSpecified + { + get + { + return this._campDuelID != null; + } + set + { + bool flag = value == (this._campDuelID == null); + if (flag) + { + this._campDuelID = (value ? new uint?(this.campDuelID) : null); + } + } + } + + private ulong? _roleid; + + private uint? _profession; + + private string _name; + + private uint? _viplevel; + + private uint? _powerpoint; + + private uint? _coverDesignationID; + + private uint? _paymemberid; + + private uint? _military_rank; + + private uint? _heroid; + + private string _desname; + + private PayConsume _pre = null; + + private bool? _isBackFlow; + + private uint? _campDuelID; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeviplevel() + { + return this.viplevelSpecified; + } + + private void Resetviplevel() + { + this.viplevelSpecified = false; + } + + private bool ShouldSerializepowerpoint() + { + return this.powerpointSpecified; + } + + private void Resetpowerpoint() + { + this.powerpointSpecified = false; + } + + private bool ShouldSerializecoverDesignationID() + { + return this.coverDesignationIDSpecified; + } + + private void ResetcoverDesignationID() + { + this.coverDesignationIDSpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + private bool ShouldSerializemilitary_rank() + { + return this.military_rankSpecified; + } + + private void Resetmilitary_rank() + { + this.military_rankSpecified = false; + } + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + private bool ShouldSerializedesname() + { + return this.desnameSpecified; + } + + private void Resetdesname() + { + this.desnameSpecified = false; + } + + private bool ShouldSerializeisBackFlow() + { + return this.isBackFlowSpecified; + } + + private void ResetisBackFlow() + { + this.isBackFlowSpecified = false; + } + + private bool ShouldSerializecampDuelID() + { + return this.campDuelIDSpecified; + } + + private void ResetcampDuelID() + { + this.campDuelIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChatSource.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChatSource.cs.meta new file mode 100644 index 00000000..fbcd4b96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChatSource.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32eeb098b44c51b4a802ca101ad09b1b +timeCreated: 1611403550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingNtf.cs new file mode 100644 index 00000000..3ce5a9c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingNtf.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckQueuingNtf")] + [Serializable] + public class CheckQueuingNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rolecount", DataFormat = DataFormat.TwosComplement)] + public uint rolecount + { + get + { + return this._rolecount ?? 0u; + } + set + { + this._rolecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolecountSpecified + { + get + { + return this._rolecount != null; + } + set + { + bool flag = value == (this._rolecount == null); + if (flag) + { + this._rolecount = (value ? new uint?(this.rolecount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public uint timeleft + { + get + { + return this._timeleft ?? 0u; + } + set + { + this._timeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new uint?(this.timeleft) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private uint? _rolecount; + + private uint? _timeleft; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializerolecount() + { + return this.rolecountSpecified; + } + + private void Resetrolecount() + { + this.rolecountSpecified = false; + } + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingNtf.cs.meta new file mode 100644 index 00000000..453f1d50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2291bc9d16cb39b4cb765173aef148af +timeCreated: 1611403423 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingReq.cs new file mode 100644 index 00000000..df00065f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckQueuingReq")] + [Serializable] + public class CheckQueuingReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "iscancel", DataFormat = DataFormat.Default)] + public bool iscancel + { + get + { + return this._iscancel ?? false; + } + set + { + this._iscancel = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscancelSpecified + { + get + { + return this._iscancel != null; + } + set + { + bool flag = value == (this._iscancel == null); + if (flag) + { + this._iscancel = (value ? new bool?(this.iscancel) : null); + } + } + } + + private bool? _iscancel; + + private IExtension extensionObject; + + private bool ShouldSerializeiscancel() + { + return this.iscancelSpecified; + } + + private void Resetiscancel() + { + this.iscancelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingReq.cs.meta new file mode 100644 index 00000000..8ce2a034 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckQueuingReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0796876bf7f9805448ee99095b6480f0 +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayArg.cs new file mode 100644 index 00000000..d497fd49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckRoleBeforePayArg")] + [Serializable] + public class CheckRoleBeforePayArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + private ulong? _roleid; + + private uint? _serverid; + + private string _openid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayArg.cs.meta new file mode 100644 index 00000000..06ee8df5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 734f07453e3880043b2f15592e18d7df +timeCreated: 1611403940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayRes.cs new file mode 100644 index 00000000..af47aded --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckRoleBeforePayRes")] + [Serializable] + public class CheckRoleBeforePayRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayRes.cs.meta new file mode 100644 index 00000000..ca35ace5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckRoleBeforePayRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac028d262477d7e4081b30774f27ea0e +timeCreated: 1611404309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckinArg.cs new file mode 100644 index 00000000..7ac75c6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckinArg")] + [Serializable] + public class CheckinArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CheckinArg.cs.meta new file mode 100644 index 00000000..8db61384 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f21eaf2974e51734791374063e813c24 +timeCreated: 1611404841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinInfoNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckinInfoNotify.cs new file mode 100644 index 00000000..49642d74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinInfoNotify.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckinInfoNotify")] + [Serializable] + public class CheckinInfoNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "DayCheckInfo", DataFormat = DataFormat.TwosComplement)] + public uint DayCheckInfo + { + get + { + return this._DayCheckInfo ?? 0u; + } + set + { + this._DayCheckInfo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DayCheckInfoSpecified + { + get + { + return this._DayCheckInfo != null; + } + set + { + bool flag = value == (this._DayCheckInfo == null); + if (flag) + { + this._DayCheckInfo = (value ? new uint?(this.DayCheckInfo) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "DayCanCheck", DataFormat = DataFormat.TwosComplement)] + public uint DayCanCheck + { + get + { + return this._DayCanCheck ?? 0u; + } + set + { + this._DayCanCheck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DayCanCheckSpecified + { + get + { + return this._DayCanCheck != null; + } + set + { + bool flag = value == (this._DayCanCheck == null); + if (flag) + { + this._DayCanCheck = (value ? new uint?(this.DayCanCheck) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "DayMakeUp", DataFormat = DataFormat.TwosComplement)] + public uint DayMakeUp + { + get + { + return this._DayMakeUp ?? 0u; + } + set + { + this._DayMakeUp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DayMakeUpSpecified + { + get + { + return this._DayMakeUp != null; + } + set + { + bool flag = value == (this._DayMakeUp == null); + if (flag) + { + this._DayMakeUp = (value ? new uint?(this.DayMakeUp) : null); + } + } + } + + [ProtoMember(4, Name = "ItemId", DataFormat = DataFormat.TwosComplement)] + public List ItemId + { + get + { + return this._ItemId; + } + } + + [ProtoMember(5, Name = "ItemCount", DataFormat = DataFormat.TwosComplement)] + public List ItemCount + { + get + { + return this._ItemCount; + } + } + + [ProtoMember(6, IsRequired = false, Name = "StartDay", DataFormat = DataFormat.TwosComplement)] + public uint StartDay + { + get + { + return this._StartDay ?? 0u; + } + set + { + this._StartDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool StartDaySpecified + { + get + { + return this._StartDay != null; + } + set + { + bool flag = value == (this._StartDay == null); + if (flag) + { + this._StartDay = (value ? new uint?(this.StartDay) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "IsOddMonth", DataFormat = DataFormat.Default)] + public bool IsOddMonth + { + get + { + return this._IsOddMonth ?? false; + } + set + { + this._IsOddMonth = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IsOddMonthSpecified + { + get + { + return this._IsOddMonth != null; + } + set + { + bool flag = value == (this._IsOddMonth == null); + if (flag) + { + this._IsOddMonth = (value ? new bool?(this.IsOddMonth) : null); + } + } + } + + private uint? _DayCheckInfo; + + private uint? _DayCanCheck; + + private uint? _DayMakeUp; + + private readonly List _ItemId = new List(); + + private readonly List _ItemCount = new List(); + + private uint? _StartDay; + + private bool? _IsOddMonth; + + private IExtension extensionObject; + + private bool ShouldSerializeDayCheckInfo() + { + return this.DayCheckInfoSpecified; + } + + private void ResetDayCheckInfo() + { + this.DayCheckInfoSpecified = false; + } + + private bool ShouldSerializeDayCanCheck() + { + return this.DayCanCheckSpecified; + } + + private void ResetDayCanCheck() + { + this.DayCanCheckSpecified = false; + } + + private bool ShouldSerializeDayMakeUp() + { + return this.DayMakeUpSpecified; + } + + private void ResetDayMakeUp() + { + this.DayMakeUpSpecified = false; + } + + private bool ShouldSerializeStartDay() + { + return this.StartDaySpecified; + } + + private void ResetStartDay() + { + this.StartDaySpecified = false; + } + + private bool ShouldSerializeIsOddMonth() + { + return this.IsOddMonthSpecified; + } + + private void ResetIsOddMonth() + { + this.IsOddMonthSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinInfoNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CheckinInfoNotify.cs.meta new file mode 100644 index 00000000..efe6fd1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinInfoNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3811766d004a6df49a0f2c303d9bf61b +timeCreated: 1611403569 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs new file mode 100644 index 00000000..fa0d9420 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckinRecord")] + [Serializable] + public class CheckinRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "CheckinInfo", DataFormat = DataFormat.TwosComplement)] + public uint CheckinInfo + { + get + { + return this._CheckinInfo ?? 0u; + } + set + { + this._CheckinInfo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CheckinInfoSpecified + { + get + { + return this._CheckinInfo != null; + } + set + { + bool flag = value == (this._CheckinInfo == null); + if (flag) + { + this._CheckinInfo = (value ? new uint?(this.CheckinInfo) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "CheckinTime", DataFormat = DataFormat.TwosComplement)] + public uint CheckinTime + { + get + { + return this._CheckinTime ?? 0u; + } + set + { + this._CheckinTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CheckinTimeSpecified + { + get + { + return this._CheckinTime != null; + } + set + { + bool flag = value == (this._CheckinTime == null); + if (flag) + { + this._CheckinTime = (value ? new uint?(this.CheckinTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "CheckinCount", DataFormat = DataFormat.TwosComplement)] + public uint CheckinCount + { + get + { + return this._CheckinCount ?? 0u; + } + set + { + this._CheckinCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CheckinCountSpecified + { + get + { + return this._CheckinCount != null; + } + set + { + bool flag = value == (this._CheckinCount == null); + if (flag) + { + this._CheckinCount = (value ? new uint?(this.CheckinCount) : null); + } + } + } + + private uint? _CheckinInfo; + + private uint? _CheckinTime; + + private uint? _CheckinCount; + + private IExtension extensionObject; + + private bool ShouldSerializeCheckinInfo() + { + return this.CheckinInfoSpecified; + } + + private void ResetCheckinInfo() + { + this.CheckinInfoSpecified = false; + } + + private bool ShouldSerializeCheckinTime() + { + return this.CheckinTimeSpecified; + } + + private void ResetCheckinTime() + { + this.CheckinTimeSpecified = false; + } + + private bool ShouldSerializeCheckinCount() + { + return this.CheckinCountSpecified; + } + + private void ResetCheckinCount() + { + this.CheckinCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs.meta new file mode 100644 index 00000000..2dd3de39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9227a23e3cbdcd0458dad066f768c076 +timeCreated: 1611404145 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRes.cs new file mode 100644 index 00000000..4b7d92ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRes.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CheckinRes")] + [Serializable] + public class CheckinRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "DayCheckInfo", DataFormat = DataFormat.TwosComplement)] + public uint DayCheckInfo + { + get + { + return this._DayCheckInfo ?? 0u; + } + set + { + this._DayCheckInfo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DayCheckInfoSpecified + { + get + { + return this._DayCheckInfo != null; + } + set + { + bool flag = value == (this._DayCheckInfo == null); + if (flag) + { + this._DayCheckInfo = (value ? new uint?(this.DayCheckInfo) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "DayCanCheck", DataFormat = DataFormat.TwosComplement)] + public uint DayCanCheck + { + get + { + return this._DayCanCheck ?? 0u; + } + set + { + this._DayCanCheck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DayCanCheckSpecified + { + get + { + return this._DayCanCheck != null; + } + set + { + bool flag = value == (this._DayCanCheck == null); + if (flag) + { + this._DayCanCheck = (value ? new uint?(this.DayCanCheck) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "DayMakeUp", DataFormat = DataFormat.TwosComplement)] + public uint DayMakeUp + { + get + { + return this._DayMakeUp ?? 0u; + } + set + { + this._DayMakeUp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DayMakeUpSpecified + { + get + { + return this._DayMakeUp != null; + } + set + { + bool flag = value == (this._DayMakeUp == null); + if (flag) + { + this._DayMakeUp = (value ? new uint?(this.DayMakeUp) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "Bonus", DataFormat = DataFormat.TwosComplement)] + public uint Bonus + { + get + { + return this._Bonus ?? 0u; + } + set + { + this._Bonus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BonusSpecified + { + get + { + return this._Bonus != null; + } + set + { + bool flag = value == (this._Bonus == null); + if (flag) + { + this._Bonus = (value ? new uint?(this.Bonus) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "StartDay", DataFormat = DataFormat.TwosComplement)] + public uint StartDay + { + get + { + return this._StartDay ?? 0u; + } + set + { + this._StartDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool StartDaySpecified + { + get + { + return this._StartDay != null; + } + set + { + bool flag = value == (this._StartDay == null); + if (flag) + { + this._StartDay = (value ? new uint?(this.StartDay) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private uint? _DayCheckInfo; + + private uint? _DayCanCheck; + + private uint? _DayMakeUp; + + private uint? _Bonus; + + private uint? _StartDay; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeDayCheckInfo() + { + return this.DayCheckInfoSpecified; + } + + private void ResetDayCheckInfo() + { + this.DayCheckInfoSpecified = false; + } + + private bool ShouldSerializeDayCanCheck() + { + return this.DayCanCheckSpecified; + } + + private void ResetDayCanCheck() + { + this.DayCanCheckSpecified = false; + } + + private bool ShouldSerializeDayMakeUp() + { + return this.DayMakeUpSpecified; + } + + private void ResetDayMakeUp() + { + this.DayMakeUpSpecified = false; + } + + private bool ShouldSerializeBonus() + { + return this.BonusSpecified; + } + + private void ResetBonus() + { + this.BonusSpecified = false; + } + + private bool ShouldSerializeStartDay() + { + return this.StartDaySpecified; + } + + private void ResetStartDay() + { + this.StartDaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CheckinRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRes.cs.meta new file mode 100644 index 00000000..afa203d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CheckinRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1958ca8ee47d25f4085eb958a247ced3 +timeCreated: 1611403302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfArg.cs new file mode 100644 index 00000000..031fbaa4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChooseProfArg")] + [Serializable] + public class ChooseProfArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "prof", DataFormat = DataFormat.TwosComplement)] + public RoleType prof + { + get + { + return this._prof ?? RoleType.Role_INVALID; + } + set + { + this._prof = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profSpecified + { + get + { + return this._prof != null; + } + set + { + bool flag = value == (this._prof == null); + if (flag) + { + this._prof = (value ? new RoleType?(this.prof) : null); + } + } + } + + private RoleType? _prof; + + private IExtension extensionObject; + + private bool ShouldSerializeprof() + { + return this.profSpecified; + } + + private void Resetprof() + { + this.profSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfArg.cs.meta new file mode 100644 index 00000000..86561453 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00c52dbedb142c24e8d5055a20e36d05 +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfRes.cs new file mode 100644 index 00000000..786c2bfc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChooseProfRes")] + [Serializable] + public class ChooseProfRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfRes.cs.meta new file mode 100644 index 00000000..b8314041 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseProfRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f37dbaff96fa245439d184117695eb41 +timeCreated: 1611404849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqArg.cs new file mode 100644 index 00000000..2ba44508 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqArg.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChooseRollReqArg")] + [Serializable] + public class ChooseRollReqArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "chooseType", DataFormat = DataFormat.TwosComplement)] + public int chooseType + { + get + { + return this._chooseType ?? 0; + } + set + { + this._chooseType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chooseTypeSpecified + { + get + { + return this._chooseType != null; + } + set + { + bool flag = value == (this._chooseType == null); + if (flag) + { + this._chooseType = (value ? new int?(this.chooseType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public EnemyDoodadInfo info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private int? _chooseType; + + private EnemyDoodadInfo _info = null; + + private IExtension extensionObject; + + private bool ShouldSerializechooseType() + { + return this.chooseTypeSpecified; + } + + private void ResetchooseType() + { + this.chooseTypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqArg.cs.meta new file mode 100644 index 00000000..3e1c2344 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce43334d18711a346ab24d77670d3e34 +timeCreated: 1611404578 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqRes.cs new file mode 100644 index 00000000..0106d56e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChooseRollReqRes")] + [Serializable] + public class ChooseRollReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqRes.cs.meta new file mode 100644 index 00000000..ef3ff42c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseRollReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c43b87e6eb322384983e0426717b24d9 +timeCreated: 1611404500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsArg.cs new file mode 100644 index 00000000..7ad31606 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChooseSpecialEffectsArg")] + [Serializable] + public class ChooseSpecialEffectsArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "special_effects_id", DataFormat = DataFormat.TwosComplement)] + public uint special_effects_id + { + get + { + return this._special_effects_id ?? 0u; + } + set + { + this._special_effects_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool special_effects_idSpecified + { + get + { + return this._special_effects_id != null; + } + set + { + bool flag = value == (this._special_effects_id == null); + if (flag) + { + this._special_effects_id = (value ? new uint?(this.special_effects_id) : null); + } + } + } + + private uint? _special_effects_id; + + private IExtension extensionObject; + + private bool ShouldSerializespecial_effects_id() + { + return this.special_effects_idSpecified; + } + + private void Resetspecial_effects_id() + { + this.special_effects_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsArg.cs.meta new file mode 100644 index 00000000..f2bb5f2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e81c9959ec723e745af8894ffe592185 +timeCreated: 1611404752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsRes.cs new file mode 100644 index 00000000..acae94b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ChooseSpecialEffectsRes")] + [Serializable] + public class ChooseSpecialEffectsRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsRes.cs.meta new file mode 100644 index 00000000..e15bafad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ChooseSpecialEffectsRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1e59726096c2fb44ba0e500b89c7d40 +timeCreated: 1611404703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawData.cs b/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawData.cs new file mode 100644 index 00000000..4c7442af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CircleDrawData")] + [Serializable] + public class CircleDrawData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "prob", DataFormat = DataFormat.TwosComplement)] + public uint prob + { + get + { + return this._prob ?? 0u; + } + set + { + this._prob = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool probSpecified + { + get + { + return this._prob != null; + } + set + { + bool flag = value == (this._prob == null); + if (flag) + { + this._prob = (value ? new uint?(this.prob) : null); + } + } + } + + private uint? _index; + + private uint? _itemid; + + private uint? _itemcount; + + private uint? _prob; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + private bool ShouldSerializeprob() + { + return this.probSpecified; + } + + private void Resetprob() + { + this.probSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawData.cs.meta new file mode 100644 index 00000000..0d51bae0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 795dc16faa2072346b8227983f34f342 +timeCreated: 1611403985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawGive.cs b/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawGive.cs new file mode 100644 index 00000000..904088a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawGive.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CircleDrawGive")] + [Serializable] + public class CircleDrawGive : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _itemid; + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawGive.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawGive.cs.meta new file mode 100644 index 00000000..cd664fd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CircleDrawGive.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ec2e0e1105567b449039b8f8803a935 +timeCreated: 1611403511 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CityData.cs b/Client/Assets/Scripts/XMainClient/KKSG/CityData.cs new file mode 100644 index 00000000..609411c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CityData.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CityData")] + [Serializable] + public class CityData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isGetToday", DataFormat = DataFormat.Default)] + public bool isGetToday + { + get + { + return this._isGetToday ?? false; + } + set + { + this._isGetToday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isGetTodaySpecified + { + get + { + return this._isGetToday != null; + } + set + { + bool flag = value == (this._isGetToday == null); + if (flag) + { + this._isGetToday = (value ? new bool?(this.isGetToday) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public GUILDTERRTYPE type + { + get + { + return this._type ?? GUILDTERRTYPE.TERR_NOT_OPEN; + } + set + { + this._type = new GUILDTERRTYPE?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new GUILDTERRTYPE?(this.type) : null); + } + } + } + + private uint? _id; + + private ulong? _guildid; + + private string _guildname; + + private uint? _time; + + private bool? _isGetToday; + + private GUILDTERRTYPE? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeisGetToday() + { + return this.isGetTodaySpecified; + } + + private void ResetisGetToday() + { + this.isGetTodaySpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CityData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CityData.cs.meta new file mode 100644 index 00000000..5d12df8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CityData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf7c5204e219ac74abb08cae93ef3011 +timeCreated: 1611404581 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceArg.cs new file mode 100644 index 00000000..ed29d8c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClearGuildTerrAllianceArg")] + [Serializable] + public class ClearGuildTerrAllianceArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceArg.cs.meta new file mode 100644 index 00000000..82eb5492 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29a1d4bd12db4054caa12d8409136beb +timeCreated: 1611403477 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceRes.cs new file mode 100644 index 00000000..af263bf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClearGuildTerrAllianceRes")] + [Serializable] + public class ClearGuildTerrAllianceRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceRes.cs.meta new file mode 100644 index 00000000..e6b74aa5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClearGuildTerrAllianceRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a9d434e7ad6c734aa95c31682adecc9 +timeCreated: 1611404201 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListArg.cs new file mode 100644 index 00000000..8186d94a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClearPrivateChatListArg")] + [Serializable] + public class ClearPrivateChatListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private uint? _type; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListArg.cs.meta new file mode 100644 index 00000000..f12d46fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea28cf90fcfd1bd4e9aa0d026c6cd97b +timeCreated: 1611404777 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListRes.cs new file mode 100644 index 00000000..ef3818b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClearPrivateChatListRes")] + [Serializable] + public class ClearPrivateChatListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListRes.cs.meta new file mode 100644 index 00000000..e4142b56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClearPrivateChatListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c06fd980ea002064398a72588947b09e +timeCreated: 1611404486 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs new file mode 100644 index 00000000..d422dc68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CliAntiCheatInfo")] + [Serializable] + public class CliAntiCheatInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "currentHp", DataFormat = DataFormat.TwosComplement)] + public uint currentHp + { + get + { + return this._currentHp ?? 0u; + } + set + { + this._currentHp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currentHpSpecified + { + get + { + return this._currentHp != null; + } + set + { + bool flag = value == (this._currentHp == null); + if (flag) + { + this._currentHp = (value ? new uint?(this.currentHp) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "totalDamage", DataFormat = DataFormat.TwosComplement)] + public uint totalDamage + { + get + { + return this._totalDamage ?? 0u; + } + set + { + this._totalDamage = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalDamageSpecified + { + get + { + return this._totalDamage != null; + } + set + { + bool flag = value == (this._totalDamage == null); + if (flag) + { + this._totalDamage = (value ? new uint?(this.totalDamage) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totalHurt", DataFormat = DataFormat.TwosComplement)] + public uint totalHurt + { + get + { + return this._totalHurt ?? 0u; + } + set + { + this._totalHurt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalHurtSpecified + { + get + { + return this._totalHurt != null; + } + set + { + bool flag = value == (this._totalHurt == null); + if (flag) + { + this._totalHurt = (value ? new uint?(this.totalHurt) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "totalRecovery", DataFormat = DataFormat.TwosComplement)] + public uint totalRecovery + { + get + { + return this._totalRecovery ?? 0u; + } + set + { + this._totalRecovery = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalRecoverySpecified + { + get + { + return this._totalRecovery != null; + } + set + { + bool flag = value == (this._totalRecovery == null); + if (flag) + { + this._totalRecovery = (value ? new uint?(this.totalRecovery) : null); + } + } + } + + [ProtoMember(5, Name = "monsterRfsTimes", DataFormat = DataFormat.TwosComplement)] + public List monsterRfsTimes + { + get + { + return this._monsterRfsTimes; + } + } + + [ProtoMember(6, IsRequired = false, Name = "battleStamp", DataFormat = DataFormat.Default)] + public string battleStamp + { + get + { + return this._battleStamp ?? ""; + } + set + { + this._battleStamp = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool battleStampSpecified + { + get + { + return this._battleStamp != null; + } + set + { + bool flag = value == (this._battleStamp == null); + if (flag) + { + this._battleStamp = (value ? this.battleStamp : null); + } + } + } + + private uint? _currentHp; + + private uint? _totalDamage; + + private uint? _totalHurt; + + private uint? _totalRecovery; + + private readonly List _monsterRfsTimes = new List(); + + private string _battleStamp; + + private IExtension extensionObject; + + private bool ShouldSerializecurrentHp() + { + return this.currentHpSpecified; + } + + private void ResetcurrentHp() + { + this.currentHpSpecified = false; + } + + private bool ShouldSerializetotalDamage() + { + return this.totalDamageSpecified; + } + + private void ResettotalDamage() + { + this.totalDamageSpecified = false; + } + + private bool ShouldSerializetotalHurt() + { + return this.totalHurtSpecified; + } + + private void ResettotalHurt() + { + this.totalHurtSpecified = false; + } + + private bool ShouldSerializetotalRecovery() + { + return this.totalRecoverySpecified; + } + + private void ResettotalRecovery() + { + this.totalRecoverySpecified = false; + } + + private bool ShouldSerializebattleStamp() + { + return this.battleStampSpecified; + } + + private void ResetbattleStamp() + { + this.battleStampSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs.meta new file mode 100644 index 00000000..4abaf236 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CliAntiCheatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71899388fe6199944870107efe3c9da6 +timeCreated: 1611403935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClickGuildCampArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClickGuildCampArg.cs new file mode 100644 index 00000000..a7619dfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClickGuildCampArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClickGuildCampArg")] + [Serializable] + public class ClickGuildCampArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClickGuildCampArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClickGuildCampArg.cs.meta new file mode 100644 index 00000000..656d1b6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClickGuildCampArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2bb603f8b0bcddc4e927ff4523152f08 +timeCreated: 1611403500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs new file mode 100644 index 00000000..d46ba42d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClickNewNoticeArg")] + [Serializable] + public class ClickNewNoticeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatNotice info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private PlatNotice _info = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs.meta new file mode 100644 index 00000000..0eb2ee64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02438d6f2879cb94a9520521db0b5acc +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs new file mode 100644 index 00000000..45180f8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClickNewNoticeRes")] + [Serializable] + public class ClickNewNoticeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs.meta new file mode 100644 index 00000000..47c699a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClickNewNoticeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a83e7f7ab839fa14799afdabd89d4104 +timeCreated: 1611404294 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClientInfo.cs new file mode 100644 index 00000000..4a6ba0b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientInfo.cs @@ -0,0 +1,879 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClientInfo")] + [Serializable] + public class ClientInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "PlatID", DataFormat = DataFormat.TwosComplement)] + public int PlatID + { + get + { + return this._PlatID ?? 0; + } + set + { + this._PlatID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PlatIDSpecified + { + get + { + return this._PlatID != null; + } + set + { + bool flag = value == (this._PlatID == null); + if (flag) + { + this._PlatID = (value ? new int?(this.PlatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ClientVersion", DataFormat = DataFormat.Default)] + public string ClientVersion + { + get + { + return this._ClientVersion ?? ""; + } + set + { + this._ClientVersion = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ClientVersionSpecified + { + get + { + return this._ClientVersion != null; + } + set + { + bool flag = value == (this._ClientVersion == null); + if (flag) + { + this._ClientVersion = (value ? this.ClientVersion : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "SystemSoftware", DataFormat = DataFormat.Default)] + public string SystemSoftware + { + get + { + return this._SystemSoftware ?? ""; + } + set + { + this._SystemSoftware = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SystemSoftwareSpecified + { + get + { + return this._SystemSoftware != null; + } + set + { + bool flag = value == (this._SystemSoftware == null); + if (flag) + { + this._SystemSoftware = (value ? this.SystemSoftware : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "SystemHardware", DataFormat = DataFormat.Default)] + public string SystemHardware + { + get + { + return this._SystemHardware ?? ""; + } + set + { + this._SystemHardware = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SystemHardwareSpecified + { + get + { + return this._SystemHardware != null; + } + set + { + bool flag = value == (this._SystemHardware == null); + if (flag) + { + this._SystemHardware = (value ? this.SystemHardware : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "TelecomOper", DataFormat = DataFormat.Default)] + public string TelecomOper + { + get + { + return this._TelecomOper ?? ""; + } + set + { + this._TelecomOper = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TelecomOperSpecified + { + get + { + return this._TelecomOper != null; + } + set + { + bool flag = value == (this._TelecomOper == null); + if (flag) + { + this._TelecomOper = (value ? this.TelecomOper : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "Network", DataFormat = DataFormat.Default)] + public string Network + { + get + { + return this._Network ?? ""; + } + set + { + this._Network = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool NetworkSpecified + { + get + { + return this._Network != null; + } + set + { + bool flag = value == (this._Network == null); + if (flag) + { + this._Network = (value ? this.Network : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "ScreenWidth", DataFormat = DataFormat.TwosComplement)] + public int ScreenWidth + { + get + { + return this._ScreenWidth ?? 0; + } + set + { + this._ScreenWidth = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ScreenWidthSpecified + { + get + { + return this._ScreenWidth != null; + } + set + { + bool flag = value == (this._ScreenWidth == null); + if (flag) + { + this._ScreenWidth = (value ? new int?(this.ScreenWidth) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "ScreenHight", DataFormat = DataFormat.TwosComplement)] + public int ScreenHight + { + get + { + return this._ScreenHight ?? 0; + } + set + { + this._ScreenHight = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ScreenHightSpecified + { + get + { + return this._ScreenHight != null; + } + set + { + bool flag = value == (this._ScreenHight == null); + if (flag) + { + this._ScreenHight = (value ? new int?(this.ScreenHight) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "Density", DataFormat = DataFormat.FixedSize)] + public float Density + { + get + { + return this._Density ?? 0f; + } + set + { + this._Density = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DensitySpecified + { + get + { + return this._Density != null; + } + set + { + bool flag = value == (this._Density == null); + if (flag) + { + this._Density = (value ? new float?(this.Density) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "LoginChannel", DataFormat = DataFormat.Default)] + public string LoginChannel + { + get + { + return this._LoginChannel ?? ""; + } + set + { + this._LoginChannel = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LoginChannelSpecified + { + get + { + return this._LoginChannel != null; + } + set + { + bool flag = value == (this._LoginChannel == null); + if (flag) + { + this._LoginChannel = (value ? this.LoginChannel : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "CpuHardware", DataFormat = DataFormat.Default)] + public string CpuHardware + { + get + { + return this._CpuHardware ?? ""; + } + set + { + this._CpuHardware = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CpuHardwareSpecified + { + get + { + return this._CpuHardware != null; + } + set + { + bool flag = value == (this._CpuHardware == null); + if (flag) + { + this._CpuHardware = (value ? this.CpuHardware : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "Memory", DataFormat = DataFormat.TwosComplement)] + public int Memory + { + get + { + return this._Memory ?? 0; + } + set + { + this._Memory = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool MemorySpecified + { + get + { + return this._Memory != null; + } + set + { + bool flag = value == (this._Memory == null); + if (flag) + { + this._Memory = (value ? new int?(this.Memory) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "GLRender", DataFormat = DataFormat.Default)] + public string GLRender + { + get + { + return this._GLRender ?? ""; + } + set + { + this._GLRender = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool GLRenderSpecified + { + get + { + return this._GLRender != null; + } + set + { + bool flag = value == (this._GLRender == null); + if (flag) + { + this._GLRender = (value ? this.GLRender : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "GLVersion", DataFormat = DataFormat.Default)] + public string GLVersion + { + get + { + return this._GLVersion ?? ""; + } + set + { + this._GLVersion = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool GLVersionSpecified + { + get + { + return this._GLVersion != null; + } + set + { + bool flag = value == (this._GLVersion == null); + if (flag) + { + this._GLVersion = (value ? this.GLVersion : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "DeviceId", DataFormat = DataFormat.Default)] + public string DeviceId + { + get + { + return this._DeviceId ?? ""; + } + set + { + this._DeviceId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DeviceIdSpecified + { + get + { + return this._DeviceId != null; + } + set + { + bool flag = value == (this._DeviceId == null); + if (flag) + { + this._DeviceId = (value ? this.DeviceId : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "ip", DataFormat = DataFormat.Default)] + public string ip + { + get + { + return this._ip ?? ""; + } + set + { + this._ip = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ipSpecified + { + get + { + return this._ip != null; + } + set + { + bool flag = value == (this._ip == null); + if (flag) + { + this._ip = (value ? this.ip : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "pf", DataFormat = DataFormat.Default)] + public string pf + { + get + { + return this._pf ?? ""; + } + set + { + this._pf = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pfSpecified + { + get + { + return this._pf != null; + } + set + { + bool flag = value == (this._pf == null); + if (flag) + { + this._pf = (value ? this.pf : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "starttype", DataFormat = DataFormat.TwosComplement)] + public StartUpType starttype + { + get + { + return this._starttype ?? StartUpType.StartUp_Normal; + } + set + { + this._starttype = new StartUpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool starttypeSpecified + { + get + { + return this._starttype != null; + } + set + { + bool flag = value == (this._starttype == null); + if (flag) + { + this._starttype = (value ? new StartUpType?(this.starttype) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "logintype", DataFormat = DataFormat.TwosComplement)] + public LoginType logintype + { + get + { + return this._logintype ?? LoginType.LOGIN_PASSWORD; + } + set + { + this._logintype = new LoginType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool logintypeSpecified + { + get + { + return this._logintype != null; + } + set + { + bool flag = value == (this._logintype == null); + if (flag) + { + this._logintype = (value ? new LoginType?(this.logintype) : null); + } + } + } + + private int? _PlatID; + + private string _ClientVersion; + + private string _SystemSoftware; + + private string _SystemHardware; + + private string _TelecomOper; + + private string _Network; + + private int? _ScreenWidth; + + private int? _ScreenHight; + + private float? _Density; + + private string _LoginChannel; + + private string _CpuHardware; + + private int? _Memory; + + private string _GLRender; + + private string _GLVersion; + + private string _DeviceId; + + private string _ip; + + private string _pf; + + private StartUpType? _starttype; + + private string _token; + + private LoginType? _logintype; + + private IExtension extensionObject; + + private bool ShouldSerializePlatID() + { + return this.PlatIDSpecified; + } + + private void ResetPlatID() + { + this.PlatIDSpecified = false; + } + + private bool ShouldSerializeClientVersion() + { + return this.ClientVersionSpecified; + } + + private void ResetClientVersion() + { + this.ClientVersionSpecified = false; + } + + private bool ShouldSerializeSystemSoftware() + { + return this.SystemSoftwareSpecified; + } + + private void ResetSystemSoftware() + { + this.SystemSoftwareSpecified = false; + } + + private bool ShouldSerializeSystemHardware() + { + return this.SystemHardwareSpecified; + } + + private void ResetSystemHardware() + { + this.SystemHardwareSpecified = false; + } + + private bool ShouldSerializeTelecomOper() + { + return this.TelecomOperSpecified; + } + + private void ResetTelecomOper() + { + this.TelecomOperSpecified = false; + } + + private bool ShouldSerializeNetwork() + { + return this.NetworkSpecified; + } + + private void ResetNetwork() + { + this.NetworkSpecified = false; + } + + private bool ShouldSerializeScreenWidth() + { + return this.ScreenWidthSpecified; + } + + private void ResetScreenWidth() + { + this.ScreenWidthSpecified = false; + } + + private bool ShouldSerializeScreenHight() + { + return this.ScreenHightSpecified; + } + + private void ResetScreenHight() + { + this.ScreenHightSpecified = false; + } + + private bool ShouldSerializeDensity() + { + return this.DensitySpecified; + } + + private void ResetDensity() + { + this.DensitySpecified = false; + } + + private bool ShouldSerializeLoginChannel() + { + return this.LoginChannelSpecified; + } + + private void ResetLoginChannel() + { + this.LoginChannelSpecified = false; + } + + private bool ShouldSerializeCpuHardware() + { + return this.CpuHardwareSpecified; + } + + private void ResetCpuHardware() + { + this.CpuHardwareSpecified = false; + } + + private bool ShouldSerializeMemory() + { + return this.MemorySpecified; + } + + private void ResetMemory() + { + this.MemorySpecified = false; + } + + private bool ShouldSerializeGLRender() + { + return this.GLRenderSpecified; + } + + private void ResetGLRender() + { + this.GLRenderSpecified = false; + } + + private bool ShouldSerializeGLVersion() + { + return this.GLVersionSpecified; + } + + private void ResetGLVersion() + { + this.GLVersionSpecified = false; + } + + private bool ShouldSerializeDeviceId() + { + return this.DeviceIdSpecified; + } + + private void ResetDeviceId() + { + this.DeviceIdSpecified = false; + } + + private bool ShouldSerializeip() + { + return this.ipSpecified; + } + + private void Resetip() + { + this.ipSpecified = false; + } + + private bool ShouldSerializepf() + { + return this.pfSpecified; + } + + private void Resetpf() + { + this.pfSpecified = false; + } + + private bool ShouldSerializestarttype() + { + return this.starttypeSpecified; + } + + private void Resetstarttype() + { + this.starttypeSpecified = false; + } + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + private bool ShouldSerializelogintype() + { + return this.logintypeSpecified; + } + + private void Resetlogintype() + { + this.logintypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClientInfo.cs.meta new file mode 100644 index 00000000..124b1ce2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3159e399d1248d4db1f72e7c717ea03 +timeCreated: 1611404387 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListArg.cs new file mode 100644 index 00000000..c2896aa9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListArg.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClientQueryRankListArg")] + [Serializable] + public class ClientQueryRankListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "RankType", DataFormat = DataFormat.TwosComplement)] + public uint RankType + { + get + { + return this._RankType ?? 0u; + } + set + { + this._RankType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RankTypeSpecified + { + get + { + return this._RankType != null; + } + set + { + bool flag = value == (this._RankType == null); + if (flag) + { + this._RankType = (value ? new uint?(this.RankType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "TimeStamp", DataFormat = DataFormat.TwosComplement)] + public uint TimeStamp + { + get + { + return this._TimeStamp ?? 0u; + } + set + { + this._TimeStamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TimeStampSpecified + { + get + { + return this._TimeStamp != null; + } + set + { + bool flag = value == (this._TimeStamp == null); + if (flag) + { + this._TimeStamp = (value ? new uint?(this.TimeStamp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "firstPassID", DataFormat = DataFormat.TwosComplement)] + public int firstPassID + { + get + { + return this._firstPassID ?? 0; + } + set + { + this._firstPassID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstPassIDSpecified + { + get + { + return this._firstPassID != null; + } + set + { + bool flag = value == (this._firstPassID == null); + if (flag) + { + this._firstPassID = (value ? new int?(this.firstPassID) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "sendPunishData", DataFormat = DataFormat.TwosComplement)] + public uint sendPunishData + { + get + { + return this._sendPunishData ?? 0u; + } + set + { + this._sendPunishData = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sendPunishDataSpecified + { + get + { + return this._sendPunishData != null; + } + set + { + bool flag = value == (this._sendPunishData == null); + if (flag) + { + this._sendPunishData = (value ? new uint?(this.sendPunishData) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "onlySelfData", DataFormat = DataFormat.Default)] + public bool onlySelfData + { + get + { + return this._onlySelfData ?? false; + } + set + { + this._onlySelfData = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onlySelfDataSpecified + { + get + { + return this._onlySelfData != null; + } + set + { + bool flag = value == (this._onlySelfData == null); + if (flag) + { + this._onlySelfData = (value ? new bool?(this.onlySelfData) : null); + } + } + } + + private uint? _RankType; + + private uint? _TimeStamp; + + private uint? _profession; + + private ulong? _guildid; + + private int? _firstPassID; + + private uint? _sendPunishData; + + private bool? _onlySelfData; + + private IExtension extensionObject; + + private bool ShouldSerializeRankType() + { + return this.RankTypeSpecified; + } + + private void ResetRankType() + { + this.RankTypeSpecified = false; + } + + private bool ShouldSerializeTimeStamp() + { + return this.TimeStampSpecified; + } + + private void ResetTimeStamp() + { + this.TimeStampSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializefirstPassID() + { + return this.firstPassIDSpecified; + } + + private void ResetfirstPassID() + { + this.firstPassIDSpecified = false; + } + + private bool ShouldSerializesendPunishData() + { + return this.sendPunishDataSpecified; + } + + private void ResetsendPunishData() + { + this.sendPunishDataSpecified = false; + } + + private bool ShouldSerializeonlySelfData() + { + return this.onlySelfDataSpecified; + } + + private void ResetonlySelfData() + { + this.onlySelfDataSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListArg.cs.meta new file mode 100644 index 00000000..2cc82073 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9461796adbc36264191f0efd8118e1e2 +timeCreated: 1611404154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs new file mode 100644 index 00000000..b9130b35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs @@ -0,0 +1,223 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClientQueryRankListRes")] + [Serializable] + public class ClientQueryRankListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "RankType", DataFormat = DataFormat.TwosComplement)] + public uint RankType + { + get + { + return this._RankType ?? 0u; + } + set + { + this._RankType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RankTypeSpecified + { + get + { + return this._RankType != null; + } + set + { + bool flag = value == (this._RankType == null); + if (flag) + { + this._RankType = (value ? new uint?(this.RankType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "TimeStamp", DataFormat = DataFormat.TwosComplement)] + public uint TimeStamp + { + get + { + return this._TimeStamp ?? 0u; + } + set + { + this._TimeStamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TimeStampSpecified + { + get + { + return this._TimeStamp != null; + } + set + { + bool flag = value == (this._TimeStamp == null); + if (flag) + { + this._TimeStamp = (value ? new uint?(this.TimeStamp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "RankList", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RankList RankList + { + get + { + return this._RankList; + } + set + { + this._RankList = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "RoleRankData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RankData RoleRankData + { + get + { + return this._RoleRankData; + } + set + { + this._RoleRankData = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "RankAllCount", DataFormat = DataFormat.TwosComplement)] + public uint RankAllCount + { + get + { + return this._RankAllCount ?? 0u; + } + set + { + this._RankAllCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RankAllCountSpecified + { + get + { + return this._RankAllCount != null; + } + set + { + bool flag = value == (this._RankAllCount == null); + if (flag) + { + this._RankAllCount = (value ? new uint?(this.RankAllCount) : null); + } + } + } + + private uint? _RankType; + + private uint? _TimeStamp; + + private RankList _RankList = null; + + private ErrorCode? _ErrorCode; + + private RankData _RoleRankData = null; + + private uint? _RankAllCount; + + private IExtension extensionObject; + + private bool ShouldSerializeRankType() + { + return this.RankTypeSpecified; + } + + private void ResetRankType() + { + this.RankTypeSpecified = false; + } + + private bool ShouldSerializeTimeStamp() + { + return this.TimeStampSpecified; + } + + private void ResetTimeStamp() + { + this.TimeStampSpecified = false; + } + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeRankAllCount() + { + return this.RankAllCountSpecified; + } + + private void ResetRankAllCount() + { + this.RankAllCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs.meta new file mode 100644 index 00000000..b3cb30f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientQueryRankListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6fe30d0d5a5c04846ba4aa32a1153057 +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientReviveInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClientReviveInfo.cs new file mode 100644 index 00000000..8ddc037e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientReviveInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClientReviveInfo")] + [Serializable] + public class ClientReviveInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "islimit", DataFormat = DataFormat.Default)] + public bool islimit + { + get + { + return this._islimit ?? false; + } + set + { + this._islimit = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool islimitSpecified + { + get + { + return this._islimit != null; + } + set + { + bool flag = value == (this._islimit == null); + if (flag) + { + this._islimit = (value ? new bool?(this.islimit) : null); + } + } + } + + private bool? _islimit; + + private IExtension extensionObject; + + private bool ShouldSerializeislimit() + { + return this.islimitSpecified; + } + + private void Resetislimit() + { + this.islimitSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientReviveInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClientReviveInfo.cs.meta new file mode 100644 index 00000000..a709d9d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientReviveInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d41d7a70f21ef7f4fb11feef722dfcd8 +timeCreated: 1611404601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientUpdatePackageData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ClientUpdatePackageData.cs new file mode 100644 index 00000000..926ed3d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientUpdatePackageData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ClientUpdatePackageData")] + [Serializable] + public class ClientUpdatePackageData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "version", DataFormat = DataFormat.Default)] + public string version + { + get + { + return this._version ?? ""; + } + set + { + this._version = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool versionSpecified + { + get + { + return this._version != null; + } + set + { + bool flag = value == (this._version == null); + if (flag) + { + this._version = (value ? this.version : null); + } + } + } + + private string _version; + + private IExtension extensionObject; + + private bool ShouldSerializeversion() + { + return this.versionSpecified; + } + + private void Resetversion() + { + this.versionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ClientUpdatePackageData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ClientUpdatePackageData.cs.meta new file mode 100644 index 00000000..68a75a75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ClientUpdatePackageData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db8d7f36b985a5845b28dfbc01e96035 +timeCreated: 1611404653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CloseHintNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CloseHintNtf.cs new file mode 100644 index 00000000..8c051f45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CloseHintNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CloseHintNtf")] + [Serializable] + public class CloseHintNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "systemid", DataFormat = DataFormat.TwosComplement)] + public uint systemid + { + get + { + return this._systemid ?? 0u; + } + set + { + this._systemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool systemidSpecified + { + get + { + return this._systemid != null; + } + set + { + bool flag = value == (this._systemid == null); + if (flag) + { + this._systemid = (value ? new uint?(this.systemid) : null); + } + } + } + + private uint? _systemid; + + private IExtension extensionObject; + + private bool ShouldSerializesystemid() + { + return this.systemidSpecified; + } + + private void Resetsystemid() + { + this.systemidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CloseHintNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CloseHintNtf.cs.meta new file mode 100644 index 00000000..48d156b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CloseHintNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2fdc47f1b2e7934fa8e4631014820ec +timeCreated: 1611404387 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs new file mode 100644 index 00000000..c28b032e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CloseLeagueEleNtf")] + [Serializable] + public class CloseLeagueEleNtf : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs.meta new file mode 100644 index 00000000..a6644d99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CloseLeagueEleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd54963cb7e39f34b8453658ae8a63a9 +timeCreated: 1611404682 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CloseSkyCraftEliNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CloseSkyCraftEliNtf.cs new file mode 100644 index 00000000..2cd489a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CloseSkyCraftEliNtf.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CloseSkyCraftEliNtf")] + [Serializable] + public class CloseSkyCraftEliNtf : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CloseSkyCraftEliNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CloseSkyCraftEliNtf.cs.meta new file mode 100644 index 00000000..8288077d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CloseSkyCraftEliNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbc3187086e32e04dbcb93d853ff846c +timeCreated: 1611404655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs b/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs new file mode 100644 index 00000000..fe24293f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ComAgate")] + [Serializable] + public class ComAgate : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemId", DataFormat = DataFormat.TwosComplement)] + public uint itemId + { + get + { + return this._itemId ?? 0u; + } + set + { + this._itemId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIdSpecified + { + get + { + return this._itemId != null; + } + set + { + bool flag = value == (this._itemId == null); + if (flag) + { + this._itemId = (value ? new uint?(this.itemId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "comNum", DataFormat = DataFormat.TwosComplement)] + public uint comNum + { + get + { + return this._comNum ?? 0u; + } + set + { + this._comNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool comNumSpecified + { + get + { + return this._comNum != null; + } + set + { + bool flag = value == (this._comNum == null); + if (flag) + { + this._comNum = (value ? new uint?(this.comNum) : null); + } + } + } + + private uint? _itemId; + + private uint? _comNum; + + private IExtension extensionObject; + + private bool ShouldSerializeitemId() + { + return this.itemIdSpecified; + } + + private void ResetitemId() + { + this.itemIdSpecified = false; + } + + private bool ShouldSerializecomNum() + { + return this.comNumSpecified; + } + + private void ResetcomNum() + { + this.comNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs.meta new file mode 100644 index 00000000..fd4a85fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ComAgate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8fbb8d56a621dfa4fb7db82254c532c6 +timeCreated: 1611404136 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassArg.cs new file mode 100644 index 00000000..f362bcc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CommendFirstPassArg")] + [Serializable] + public class CommendFirstPassArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "firstPassID", DataFormat = DataFormat.TwosComplement)] + public int firstPassID + { + get + { + return this._firstPassID ?? 0; + } + set + { + this._firstPassID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstPassIDSpecified + { + get + { + return this._firstPassID != null; + } + set + { + bool flag = value == (this._firstPassID == null); + if (flag) + { + this._firstPassID = (value ? new int?(this.firstPassID) : null); + } + } + } + + private int? _firstPassID; + + private IExtension extensionObject; + + private bool ShouldSerializefirstPassID() + { + return this.firstPassIDSpecified; + } + + private void ResetfirstPassID() + { + this.firstPassIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassArg.cs.meta new file mode 100644 index 00000000..fb68e894 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18cd00ff040312b478ac53816d406d64 +timeCreated: 1611403299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs new file mode 100644 index 00000000..bd8c8068 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CommendFirstPassRes")] + [Serializable] + public class CommendFirstPassRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "commendNum", DataFormat = DataFormat.TwosComplement)] + public int commendNum + { + get + { + return this._commendNum ?? 0; + } + set + { + this._commendNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool commendNumSpecified + { + get + { + return this._commendNum != null; + } + set + { + bool flag = value == (this._commendNum == null); + if (flag) + { + this._commendNum = (value ? new int?(this.commendNum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "starLevel", DataFormat = DataFormat.TwosComplement)] + public int starLevel + { + get + { + return this._starLevel ?? 0; + } + set + { + this._starLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool starLevelSpecified + { + get + { + return this._starLevel != null; + } + set + { + bool flag = value == (this._starLevel == null); + if (flag) + { + this._starLevel = (value ? new int?(this.starLevel) : null); + } + } + } + + private ErrorCode? _error; + + private int? _commendNum; + + private int? _starLevel; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecommendNum() + { + return this.commendNumSpecified; + } + + private void ResetcommendNum() + { + this.commendNumSpecified = false; + } + + private bool ShouldSerializestarLevel() + { + return this.starLevelSpecified; + } + + private void ResetstarLevel() + { + this.starLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs.meta new file mode 100644 index 00000000..694f6931 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendFirstPassRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b85e205b62a6d8419665eaf06f03723 +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleArg.cs new file mode 100644 index 00000000..81a8b2e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CommendWatchBattleArg")] + [Serializable] + public class CommendWatchBattleArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleArg.cs.meta new file mode 100644 index 00000000..889e3913 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a092e2cb70d236c4e9beb0a1f3921e24 +timeCreated: 1611404249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleRes.cs new file mode 100644 index 00000000..802a8235 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CommendWatchBattleRes")] + [Serializable] + public class CommendWatchBattleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleRes.cs.meta new file mode 100644 index 00000000..2562f947 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommendWatchBattleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19ec2ce62a1beeb47ad62f6c4088aefb +timeCreated: 1611403306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommentType.cs b/Client/Assets/Scripts/XMainClient/KKSG/CommentType.cs new file mode 100644 index 00000000..a3af0549 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommentType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CommentType")] + public enum CommentType + { + [ProtoEnum(Name = "COMMENT_NEST", Value = 1)] + COMMENT_NEST = 1, + [ProtoEnum(Name = "COMMENT_DRAGON", Value = 2)] + COMMENT_DRAGON, + [ProtoEnum(Name = "COMMENT_LADDER", Value = 3)] + COMMENT_LADDER, + [ProtoEnum(Name = "COMMENT_ATLAS", Value = 4)] + COMMENT_ATLAS, + [ProtoEnum(Name = "COMMENT_PANDORA", Value = 5)] + COMMENT_PANDORA, + [ProtoEnum(Name = "COMMENT_SPRITE", Value = 6)] + COMMENT_SPRITE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommentType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CommentType.cs.meta new file mode 100644 index 00000000..6a42746e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommentType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 086ef494ed609894e8026dfaa65b0adf +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommitAnswerNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CommitAnswerNtf.cs new file mode 100644 index 00000000..2df59cb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommitAnswerNtf.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CommitAnswerNtf")] + [Serializable] + public class CommitAnswerNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "audiouid", DataFormat = DataFormat.TwosComplement)] + public ulong audiouid + { + get + { + return this._audiouid ?? 0UL; + } + set + { + this._audiouid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audiouidSpecified + { + get + { + return this._audiouid != null; + } + set + { + bool flag = value == (this._audiouid == null); + if (flag) + { + this._audiouid = (value ? new ulong?(this.audiouid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "answer", DataFormat = DataFormat.Default)] + public string answer + { + get + { + return this._answer ?? ""; + } + set + { + this._answer = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool answerSpecified + { + get + { + return this._answer != null; + } + set + { + bool flag = value == (this._answer == null); + if (flag) + { + this._answer = (value ? this.answer : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "audiotime", DataFormat = DataFormat.TwosComplement)] + public uint audiotime + { + get + { + return this._audiotime ?? 0u; + } + set + { + this._audiotime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audiotimeSpecified + { + get + { + return this._audiotime != null; + } + set + { + bool flag = value == (this._audiotime == null); + if (flag) + { + this._audiotime = (value ? new uint?(this.audiotime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "qid", DataFormat = DataFormat.TwosComplement)] + public uint qid + { + get + { + return this._qid ?? 0u; + } + set + { + this._qid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qidSpecified + { + get + { + return this._qid != null; + } + set + { + bool flag = value == (this._qid == null); + if (flag) + { + this._qid = (value ? new uint?(this.qid) : null); + } + } + } + + private ulong? _audiouid; + + private string _answer; + + private uint? _audiotime; + + private uint? _qid; + + private IExtension extensionObject; + + private bool ShouldSerializeaudiouid() + { + return this.audiouidSpecified; + } + + private void Resetaudiouid() + { + this.audiouidSpecified = false; + } + + private bool ShouldSerializeanswer() + { + return this.answerSpecified; + } + + private void Resetanswer() + { + this.answerSpecified = false; + } + + private bool ShouldSerializeaudiotime() + { + return this.audiotimeSpecified; + } + + private void Resetaudiotime() + { + this.audiotimeSpecified = false; + } + + private bool ShouldSerializeqid() + { + return this.qidSpecified; + } + + private void Resetqid() + { + this.qidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CommitAnswerNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CommitAnswerNtf.cs.meta new file mode 100644 index 00000000..a4e36f08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CommitAnswerNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b1ee17cc15d82f4ca3ba2dcf5fc685d +timeCreated: 1611403314 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonInfo2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonInfo2DB.cs new file mode 100644 index 00000000..d31dcc5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonInfo2DB.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CompeteDragonInfo2DB")] + [Serializable] + public class CompeteDragonInfo2DB : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "updateDay", DataFormat = DataFormat.TwosComplement)] + public int updateDay + { + get + { + return this._updateDay ?? 0; + } + set + { + this._updateDay = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateDaySpecified + { + get + { + return this._updateDay != null; + } + set + { + bool flag = value == (this._updateDay == null); + if (flag) + { + this._updateDay = (value ? new int?(this.updateDay) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "throughCount", DataFormat = DataFormat.TwosComplement)] + public uint throughCount + { + get + { + return this._throughCount ?? 0u; + } + set + { + this._throughCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool throughCountSpecified + { + get + { + return this._throughCount != null; + } + set + { + bool flag = value == (this._throughCount == null); + if (flag) + { + this._throughCount = (value ? new uint?(this.throughCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "getRewardCount", DataFormat = DataFormat.TwosComplement)] + public uint getRewardCount + { + get + { + return this._getRewardCount ?? 0u; + } + set + { + this._getRewardCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getRewardCountSpecified + { + get + { + return this._getRewardCount != null; + } + set + { + bool flag = value == (this._getRewardCount == null); + if (flag) + { + this._getRewardCount = (value ? new uint?(this.getRewardCount) : null); + } + } + } + + private int? _updateDay; + + private uint? _throughCount; + + private uint? _getRewardCount; + + private IExtension extensionObject; + + private bool ShouldSerializeupdateDay() + { + return this.updateDaySpecified; + } + + private void ResetupdateDay() + { + this.updateDaySpecified = false; + } + + private bool ShouldSerializethroughCount() + { + return this.throughCountSpecified; + } + + private void ResetthroughCount() + { + this.throughCountSpecified = false; + } + + private bool ShouldSerializegetRewardCount() + { + return this.getRewardCountSpecified; + } + + private void ResetgetRewardCount() + { + this.getRewardCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonInfo2DB.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonInfo2DB.cs.meta new file mode 100644 index 00000000..d8791bbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonInfo2DB.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e1eadc3ae269734f8e9f098c3d94aa6 +timeCreated: 1611403606 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs new file mode 100644 index 00000000..190c749d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CompeteDragonOpArg")] + public enum CompeteDragonOpArg + { + [ProtoEnum(Name = "CompeteDragon_GetInfo", Value = 1)] + CompeteDragon_GetInfo = 1, + [ProtoEnum(Name = "CompeteDragon_GetReward", Value = 2)] + CompeteDragon_GetReward + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs.meta new file mode 100644 index 00000000..70cab6ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CompeteDragonOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b771ed1c0d58d264cb9b79f026328487 +timeCreated: 1611404402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CountDownNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CountDownNtf.cs new file mode 100644 index 00000000..1b13e482 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CountDownNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CountDownNtf")] + [Serializable] + public class CountDownNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CountDownNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CountDownNtf.cs.meta new file mode 100644 index 00000000..99594c6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CountDownNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3349b4536f2a60a4583b5fbd39655a4f +timeCreated: 1611403551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CoverDesignationNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CoverDesignationNtf.cs new file mode 100644 index 00000000..01b6d236 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CoverDesignationNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CoverDesignationNtf")] + [Serializable] + public class CoverDesignationNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "designationID", DataFormat = DataFormat.TwosComplement)] + public uint designationID + { + get + { + return this._designationID ?? 0u; + } + set + { + this._designationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool designationIDSpecified + { + get + { + return this._designationID != null; + } + set + { + bool flag = value == (this._designationID == null); + if (flag) + { + this._designationID = (value ? new uint?(this.designationID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "desname", DataFormat = DataFormat.Default)] + public string desname + { + get + { + return this._desname ?? ""; + } + set + { + this._desname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool desnameSpecified + { + get + { + return this._desname != null; + } + set + { + bool flag = value == (this._desname == null); + if (flag) + { + this._desname = (value ? this.desname : null); + } + } + } + + private uint? _designationID; + + private string _desname; + + private IExtension extensionObject; + + private bool ShouldSerializedesignationID() + { + return this.designationIDSpecified; + } + + private void ResetdesignationID() + { + this.designationIDSpecified = false; + } + + private bool ShouldSerializedesname() + { + return this.desnameSpecified; + } + + private void Resetdesname() + { + this.desnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CoverDesignationNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CoverDesignationNtf.cs.meta new file mode 100644 index 00000000..25f33542 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CoverDesignationNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cbca79d796d4858469ec917a51ee0f57 +timeCreated: 1611404547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneArg.cs new file mode 100644 index 00000000..a4f4e3e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneArg.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateCrossBattleSceneArg")] + [Serializable] + public class CreateCrossBattleSceneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mapID", DataFormat = DataFormat.TwosComplement)] + public uint mapID + { + get + { + return this._mapID ?? 0u; + } + set + { + this._mapID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapIDSpecified + { + get + { + return this._mapID != null; + } + set + { + bool flag = value == (this._mapID == null); + if (flag) + { + this._mapID = (value ? new uint?(this.mapID) : null); + } + } + } + + [ProtoMember(2, Name = "createInfos", DataFormat = DataFormat.Default)] + public List createInfos + { + get + { + return this._createInfos; + } + } + + [ProtoMember(3, IsRequired = false, Name = "smallInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public InvFightBefESpara smallInfo + { + get + { + return this._smallInfo; + } + set + { + this._smallInfo = value; + } + } + + private uint? _mapID; + + private readonly List _createInfos = new List(); + + private InvFightBefESpara _smallInfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializemapID() + { + return this.mapIDSpecified; + } + + private void ResetmapID() + { + this.mapIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneArg.cs.meta new file mode 100644 index 00000000..7fade92c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f2a22d6b1866314bba66817cb6a3efe +timeCreated: 1611403908 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneData.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneData.cs new file mode 100644 index 00000000..410fc8df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateCrossBattleSceneData")] + [Serializable] + public class CreateCrossBattleSceneData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + private ulong? _roleid; + + private uint? _serverid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneData.cs.meta new file mode 100644 index 00000000..6963e462 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateCrossBattleSceneData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae829fed13bfdcf4584fffaefdeda5a5 +timeCreated: 1611404340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs new file mode 100644 index 00000000..d13f6c00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateOrJoinDragonGuildArg")] + [Serializable] + public class CreateOrJoinDragonGuildArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "iscreate", DataFormat = DataFormat.Default)] + public bool iscreate + { + get + { + return this._iscreate ?? false; + } + set + { + this._iscreate = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscreateSpecified + { + get + { + return this._iscreate != null; + } + set + { + bool flag = value == (this._iscreate == null); + if (flag) + { + this._iscreate = (value ? new bool?(this.iscreate) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "dgid", DataFormat = DataFormat.TwosComplement)] + public ulong dgid + { + get + { + return this._dgid ?? 0UL; + } + set + { + this._dgid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dgidSpecified + { + get + { + return this._dgid != null; + } + set + { + bool flag = value == (this._dgid == null); + if (flag) + { + this._dgid = (value ? new ulong?(this.dgid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dgname", DataFormat = DataFormat.Default)] + public string dgname + { + get + { + return this._dgname ?? ""; + } + set + { + this._dgname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dgnameSpecified + { + get + { + return this._dgname != null; + } + set + { + bool flag = value == (this._dgname == null); + if (flag) + { + this._dgname = (value ? this.dgname : null); + } + } + } + + private bool? _iscreate; + + private ulong? _dgid; + + private string _dgname; + + private IExtension extensionObject; + + private bool ShouldSerializeiscreate() + { + return this.iscreateSpecified; + } + + private void Resetiscreate() + { + this.iscreateSpecified = false; + } + + private bool ShouldSerializedgid() + { + return this.dgidSpecified; + } + + private void Resetdgid() + { + this.dgidSpecified = false; + } + + private bool ShouldSerializedgname() + { + return this.dgnameSpecified; + } + + private void Resetdgname() + { + this.dgnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs.meta new file mode 100644 index 00000000..14f64b0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85b60b36b1813504f86f7063190a2846 +timeCreated: 1611404052 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs new file mode 100644 index 00000000..47ff17e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateOrJoinDragonGuildRes")] + [Serializable] + public class CreateOrJoinDragonGuildRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "dgid", DataFormat = DataFormat.TwosComplement)] + public ulong dgid + { + get + { + return this._dgid ?? 0UL; + } + set + { + this._dgid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dgidSpecified + { + get + { + return this._dgid != null; + } + set + { + bool flag = value == (this._dgid == null); + if (flag) + { + this._dgid = (value ? new ulong?(this.dgid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cdtime", DataFormat = DataFormat.TwosComplement)] + public uint cdtime + { + get + { + return this._cdtime ?? 0u; + } + set + { + this._cdtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cdtimeSpecified + { + get + { + return this._cdtime != null; + } + set + { + bool flag = value == (this._cdtime == null); + if (flag) + { + this._cdtime = (value ? new uint?(this.cdtime) : null); + } + } + } + + private ErrorCode? _result; + + private ulong? _dgid; + + private string _name; + + private uint? _cdtime; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializedgid() + { + return this.dgidSpecified; + } + + private void Resetdgid() + { + this.dgidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializecdtime() + { + return this.cdtimeSpecified; + } + + private void Resetcdtime() + { + this.cdtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs.meta new file mode 100644 index 00000000..f5dedead --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinDragonGuildRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e93d29896755f19448b780008ed38077 +timeCreated: 1611404755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs new file mode 100644 index 00000000..a7e3edd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateOrJoinGuild")] + [Serializable] + public class CreateOrJoinGuild : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "iscreate", DataFormat = DataFormat.Default)] + public bool iscreate + { + get + { + return this._iscreate ?? false; + } + set + { + this._iscreate = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscreateSpecified + { + get + { + return this._iscreate != null; + } + set + { + bool flag = value == (this._iscreate == null); + if (flag) + { + this._iscreate = (value ? new bool?(this.iscreate) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "gid", DataFormat = DataFormat.TwosComplement)] + public ulong gid + { + get + { + return this._gid ?? 0UL; + } + set + { + this._gid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gidSpecified + { + get + { + return this._gid != null; + } + set + { + bool flag = value == (this._gid == null); + if (flag) + { + this._gid = (value ? new ulong?(this.gid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "gname", DataFormat = DataFormat.Default)] + public string gname + { + get + { + return this._gname ?? ""; + } + set + { + this._gname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gnameSpecified + { + get + { + return this._gname != null; + } + set + { + bool flag = value == (this._gname == null); + if (flag) + { + this._gname = (value ? this.gname : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public int icon + { + get + { + return this._icon ?? 0; + } + set + { + this._icon = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new int?(this.icon) : null); + } + } + } + + private bool? _iscreate; + + private ulong? _gid; + + private string _gname; + + private int? _icon; + + private IExtension extensionObject; + + private bool ShouldSerializeiscreate() + { + return this.iscreateSpecified; + } + + private void Resetiscreate() + { + this.iscreateSpecified = false; + } + + private bool ShouldSerializegid() + { + return this.gidSpecified; + } + + private void Resetgid() + { + this.gidSpecified = false; + } + + private bool ShouldSerializegname() + { + return this.gnameSpecified; + } + + private void Resetgname() + { + this.gnameSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs.meta new file mode 100644 index 00000000..a4c48bb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fecb9404efe1fb4b93d2fcd8b6fcaf3 +timeCreated: 1611403215 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuildRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuildRes.cs new file mode 100644 index 00000000..c5c58553 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuildRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateOrJoinGuildRes")] + [Serializable] + public class CreateOrJoinGuildRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "gid", DataFormat = DataFormat.TwosComplement)] + public ulong gid + { + get + { + return this._gid ?? 0UL; + } + set + { + this._gid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gidSpecified + { + get + { + return this._gid != null; + } + set + { + bool flag = value == (this._gid == null); + if (flag) + { + this._gid = (value ? new ulong?(this.gid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ErrorCode? _result; + + private ulong? _gid; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializegid() + { + return this.gidSpecified; + } + + private void Resetgid() + { + this.gidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuildRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuildRes.cs.meta new file mode 100644 index 00000000..60cfab21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateOrJoinGuildRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0cafb742ba75c2244b588b86a028529a +timeCreated: 1611403175 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewArg.cs new file mode 100644 index 00000000..11740db6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateRoleNewArg")] + [Serializable] + public class CreateRoleNewArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public RoleType type + { + get + { + return this._type ?? RoleType.Role_INVALID; + } + set + { + this._type = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new RoleType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private RoleType? _type; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewArg.cs.meta new file mode 100644 index 00000000..3b6d3695 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ba8ae012c1f6d2499ff52aefc98f4c8 +timeCreated: 1611403500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewRes.cs new file mode 100644 index 00000000..69592160 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CreateRoleNewRes")] + [Serializable] + public class CreateRoleNewRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleAllInfo roleData + { + get + { + return this._roleData; + } + set + { + this._roleData = value; + } + } + + private ErrorCode? _result; + + private RoleAllInfo _roleData = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewRes.cs.meta new file mode 100644 index 00000000..a9010a6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CreateRoleNewRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60779a9b123d70f429e679cd1648dadf +timeCreated: 1611403834 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgBattleType.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgBattleType.cs new file mode 100644 index 00000000..a4b0c210 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgBattleType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgBattleType")] + public enum CrossGvgBattleType + { + [ProtoEnum(Name = "CGBT_PointRace", Value = 1)] + CGBT_PointRace = 1, + [ProtoEnum(Name = "CGBT_Knockout", Value = 2)] + CGBT_Knockout + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgBattleType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgBattleType.cs.meta new file mode 100644 index 00000000..4adb1e24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgBattleType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cadaa3f61c49314aa9961c48cbe98e5 +timeCreated: 1611403692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs new file mode 100644 index 00000000..fb393498 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs @@ -0,0 +1,449 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgGuildInfo")] + [Serializable] + public class CrossGvgGuildInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "killnum", DataFormat = DataFormat.TwosComplement)] + public uint killnum + { + get + { + return this._killnum ?? 0u; + } + set + { + this._killnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killnumSpecified + { + get + { + return this._killnum != null; + } + set + { + bool flag = value == (this._killnum == null); + if (flag) + { + this._killnum = (value ? new uint?(this.killnum) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public uint icon + { + get + { + return this._icon ?? 0u; + } + set + { + this._icon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new uint?(this.icon) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "prestige", DataFormat = DataFormat.TwosComplement)] + public uint prestige + { + get + { + return this._prestige ?? 0u; + } + set + { + this._prestige = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool prestigeSpecified + { + get + { + return this._prestige != null; + } + set + { + bool flag = value == (this._prestige == null); + if (flag) + { + this._prestige = (value ? new uint?(this.prestige) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private ulong? _guildid; + + private string _guildname; + + private uint? _serverid; + + private string _servername; + + private uint? _score; + + private uint? _killnum; + + private uint? _icon; + + private uint? _prestige; + + private uint? _level; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializekillnum() + { + return this.killnumSpecified; + } + + private void Resetkillnum() + { + this.killnumSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + private bool ShouldSerializeprestige() + { + return this.prestigeSpecified; + } + + private void Resetprestige() + { + this.prestigeSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs.meta new file mode 100644 index 00000000..41c61185 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad68a32203de79c42bf3724040073f2e +timeCreated: 1611404334 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperArg.cs new file mode 100644 index 00000000..51c9c708 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgOperArg")] + [Serializable] + public class CrossGvgOperArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public CrossGvgOperType type + { + get + { + return this._type ?? CrossGvgOperType.CGOT_EnterPointRace; + } + set + { + this._type = new CrossGvgOperType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new CrossGvgOperType?(this.type) : null); + } + } + } + + [ProtoMember(2, Name = "support_guildid", DataFormat = DataFormat.TwosComplement)] + public List support_guildid + { + get + { + return this._support_guildid; + } + } + + private CrossGvgOperType? _type; + + private readonly List _support_guildid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperArg.cs.meta new file mode 100644 index 00000000..c6da87aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4c570c7185c9804bb8ec9d0cf013d02 +timeCreated: 1611404856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperRes.cs new file mode 100644 index 00000000..0032750c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgOperRes")] + [Serializable] + public class CrossGvgOperRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperRes.cs.meta new file mode 100644 index 00000000..1536117b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d9b993047f39a542a2c4a7d9c392438 +timeCreated: 1611403902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperType.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperType.cs new file mode 100644 index 00000000..c8f0421f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgOperType")] + public enum CrossGvgOperType + { + [ProtoEnum(Name = "CGOT_EnterPointRace", Value = 1)] + CGOT_EnterPointRace = 1, + [ProtoEnum(Name = "CGOT_EnterKnockout", Value = 2)] + CGOT_EnterKnockout, + [ProtoEnum(Name = "CGOT_SupportGuild", Value = 3)] + CGOT_SupportGuild, + [ProtoEnum(Name = "CGOT_LeaveUI", Value = 4)] + CGOT_LeaveUI + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperType.cs.meta new file mode 100644 index 00000000..3c8a7d56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgOperType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57aaa3fa9c89fc34196de9f85fa9c3c0 +timeCreated: 1611403751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRacePointRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRacePointRecord.cs new file mode 100644 index 00000000..9669c844 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRacePointRecord.cs @@ -0,0 +1,250 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgRacePointRecord")] + [Serializable] + public class CrossGvgRacePointRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "opponent", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CrossGvgGuildInfo opponent + { + get + { + return this._opponent; + } + set + { + this._opponent = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public CrossGvgRoomState state + { + get + { + return this._state ?? CrossGvgRoomState.CGRS_Idle; + } + set + { + this._state = new CrossGvgRoomState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new CrossGvgRoomState?(this.state) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "iswin", DataFormat = DataFormat.Default)] + public bool iswin + { + get + { + return this._iswin ?? false; + } + set + { + this._iswin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iswinSpecified + { + get + { + return this._iswin != null; + } + set + { + bool flag = value == (this._iswin == null); + if (flag) + { + this._iswin = (value ? new bool?(this.iswin) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "addscore", DataFormat = DataFormat.TwosComplement)] + public uint addscore + { + get + { + return this._addscore ?? 0u; + } + set + { + this._addscore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool addscoreSpecified + { + get + { + return this._addscore != null; + } + set + { + bool flag = value == (this._addscore == null); + if (flag) + { + this._addscore = (value ? new uint?(this.addscore) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "roomid", DataFormat = DataFormat.TwosComplement)] + public uint roomid + { + get + { + return this._roomid ?? 0u; + } + set + { + this._roomid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomidSpecified + { + get + { + return this._roomid != null; + } + set + { + bool flag = value == (this._roomid == null); + if (flag) + { + this._roomid = (value ? new uint?(this.roomid) : null); + } + } + } + + private uint? _time; + + private CrossGvgGuildInfo _opponent = null; + + private CrossGvgRoomState? _state; + + private bool? _iswin; + + private uint? _addscore; + + private uint? _roomid; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeiswin() + { + return this.iswinSpecified; + } + + private void Resetiswin() + { + this.iswinSpecified = false; + } + + private bool ShouldSerializeaddscore() + { + return this.addscoreSpecified; + } + + private void Resetaddscore() + { + this.addscoreSpecified = false; + } + + private bool ShouldSerializeroomid() + { + return this.roomidSpecified; + } + + private void Resetroomid() + { + this.roomidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRacePointRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRacePointRecord.cs.meta new file mode 100644 index 00000000..63ef4ae8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRacePointRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 11b3af7b83d6b5b4badcf184dbaa639c +timeCreated: 1611403240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs new file mode 100644 index 00000000..ebf59b64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs @@ -0,0 +1,535 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgRoomInfo")] + [Serializable] + public class CrossGvgRoomInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roomid", DataFormat = DataFormat.TwosComplement)] + public uint roomid + { + get + { + return this._roomid ?? 0u; + } + set + { + this._roomid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomidSpecified + { + get + { + return this._roomid != null; + } + set + { + bool flag = value == (this._roomid == null); + if (flag) + { + this._roomid = (value ? new uint?(this.roomid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guild1", DataFormat = DataFormat.TwosComplement)] + public ulong guild1 + { + get + { + return this._guild1 ?? 0UL; + } + set + { + this._guild1 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guild1Specified + { + get + { + return this._guild1 != null; + } + set + { + bool flag = value == (this._guild1 == null); + if (flag) + { + this._guild1 = (value ? new ulong?(this.guild1) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guild2", DataFormat = DataFormat.TwosComplement)] + public ulong guild2 + { + get + { + return this._guild2 ?? 0UL; + } + set + { + this._guild2 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guild2Specified + { + get + { + return this._guild2 != null; + } + set + { + bool flag = value == (this._guild2 == null); + if (flag) + { + this._guild2 = (value ? new ulong?(this.guild2) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public CrossGvgRoomState state + { + get + { + return this._state ?? CrossGvgRoomState.CGRS_Idle; + } + set + { + this._state = new CrossGvgRoomState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new CrossGvgRoomState?(this.state) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "winguildid", DataFormat = DataFormat.TwosComplement)] + public ulong winguildid + { + get + { + return this._winguildid ?? 0UL; + } + set + { + this._winguildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winguildidSpecified + { + get + { + return this._winguildid != null; + } + set + { + bool flag = value == (this._winguildid == null); + if (flag) + { + this._winguildid = (value ? new ulong?(this.winguildid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "liveid", DataFormat = DataFormat.TwosComplement)] + public uint liveid + { + get + { + return this._liveid ?? 0u; + } + set + { + this._liveid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveidSpecified + { + get + { + return this._liveid != null; + } + set + { + bool flag = value == (this._liveid == null); + if (flag) + { + this._liveid = (value ? new uint?(this.liveid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "gsline", DataFormat = DataFormat.TwosComplement)] + public uint gsline + { + get + { + return this._gsline ?? 0u; + } + set + { + this._gsline = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gslineSpecified + { + get + { + return this._gsline != null; + } + set + { + bool flag = value == (this._gsline == null); + if (flag) + { + this._gsline = (value ? new uint?(this.gsline) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "win_score", DataFormat = DataFormat.TwosComplement)] + public int win_score + { + get + { + return this._win_score ?? 0; + } + set + { + this._win_score = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool win_scoreSpecified + { + get + { + return this._win_score != null; + } + set + { + bool flag = value == (this._win_score == null); + if (flag) + { + this._win_score = (value ? new int?(this.win_score) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "lose_score", DataFormat = DataFormat.TwosComplement)] + public int lose_score + { + get + { + return this._lose_score ?? 0; + } + set + { + this._lose_score = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lose_scoreSpecified + { + get + { + return this._lose_score != null; + } + set + { + bool flag = value == (this._lose_score == null); + if (flag) + { + this._lose_score = (value ? new int?(this.lose_score) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "in_ready", DataFormat = DataFormat.Default)] + public bool in_ready + { + get + { + return this._in_ready ?? false; + } + set + { + this._in_ready = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool in_readySpecified + { + get + { + return this._in_ready != null; + } + set + { + bool flag = value == (this._in_ready == null); + if (flag) + { + this._in_ready = (value ? new bool?(this.in_ready) : null); + } + } + } + + private uint? _roomid; + + private ulong? _guild1; + + private ulong? _guild2; + + private CrossGvgRoomState? _state; + + private ulong? _winguildid; + + private uint? _liveid; + + private uint? _sceneid; + + private uint? _gsline; + + private uint? _time; + + private int? _win_score; + + private int? _lose_score; + + private bool? _in_ready; + + private IExtension extensionObject; + + private bool ShouldSerializeroomid() + { + return this.roomidSpecified; + } + + private void Resetroomid() + { + this.roomidSpecified = false; + } + + private bool ShouldSerializeguild1() + { + return this.guild1Specified; + } + + private void Resetguild1() + { + this.guild1Specified = false; + } + + private bool ShouldSerializeguild2() + { + return this.guild2Specified; + } + + private void Resetguild2() + { + this.guild2Specified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializewinguildid() + { + return this.winguildidSpecified; + } + + private void Resetwinguildid() + { + this.winguildidSpecified = false; + } + + private bool ShouldSerializeliveid() + { + return this.liveidSpecified; + } + + private void Resetliveid() + { + this.liveidSpecified = false; + } + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + private bool ShouldSerializegsline() + { + return this.gslineSpecified; + } + + private void Resetgsline() + { + this.gslineSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializewin_score() + { + return this.win_scoreSpecified; + } + + private void Resetwin_score() + { + this.win_scoreSpecified = false; + } + + private bool ShouldSerializelose_score() + { + return this.lose_scoreSpecified; + } + + private void Resetlose_score() + { + this.lose_scoreSpecified = false; + } + + private bool ShouldSerializein_ready() + { + return this.in_readySpecified; + } + + private void Resetin_ready() + { + this.in_readySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs.meta new file mode 100644 index 00000000..5314f9c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6fd545f712c167746aad467f33e2945b +timeCreated: 1611403929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomState.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomState.cs new file mode 100644 index 00000000..520a4225 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomState.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgRoomState")] + public enum CrossGvgRoomState + { + [ProtoEnum(Name = "CGRS_Idle", Value = 1)] + CGRS_Idle = 1, + [ProtoEnum(Name = "CGRS_Fighting", Value = 2)] + CGRS_Fighting, + [ProtoEnum(Name = "CGRS_Finish", Value = 3)] + CGRS_Finish + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomState.cs.meta new file mode 100644 index 00000000..a384f196 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2aa0fc882da303940ade155e647dbfe8 +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomStateNtf.cs new file mode 100644 index 00000000..663bee3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomStateNtf.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgRoomStateNtf")] + [Serializable] + public class CrossGvgRoomStateNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "room", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CrossGvgRoomInfo room + { + get + { + return this._room; + } + set + { + this._room = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "record", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CrossGvgRacePointRecord record + { + get + { + return this._record; + } + set + { + this._record = value; + } + } + + private CrossGvgRoomInfo _room = null; + + private CrossGvgRacePointRecord _record = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomStateNtf.cs.meta new file mode 100644 index 00000000..232c090b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgRoomStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b6cea50e2876ff4eb2b2ba2d577f6a8 +timeCreated: 1611404206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs new file mode 100644 index 00000000..032e025b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgStateNtf")] + [Serializable] + public class CrossGvgStateNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public CrossGvgTimeState state + { + get + { + return this._state ?? CrossGvgTimeState.CGVG_NotOpen; + } + set + { + this._state = new CrossGvgTimeState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new CrossGvgTimeState?(this.state) : null); + } + } + } + + private CrossGvgTimeState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs.meta new file mode 100644 index 00000000..2e631f1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4d804031382ae8439d3615f203959e6 +timeCreated: 1611404504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgTimeState.cs b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgTimeState.cs new file mode 100644 index 00000000..c1d227fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgTimeState.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CrossGvgTimeState")] + public enum CrossGvgTimeState + { + [ProtoEnum(Name = "CGVG_NotOpen", Value = 1)] + CGVG_NotOpen = 1, + [ProtoEnum(Name = "CGVG_Select", Value = 2)] + CGVG_Select, + [ProtoEnum(Name = "CGVG_PointRace", Value = 3)] + CGVG_PointRace, + [ProtoEnum(Name = "CGVG_Guess", Value = 4)] + CGVG_Guess, + [ProtoEnum(Name = "CGVG_Knockout", Value = 5)] + CGVG_Knockout, + [ProtoEnum(Name = "CGVG_SeasonEnd", Value = 6)] + CGVG_SeasonEnd + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgTimeState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgTimeState.cs.meta new file mode 100644 index 00000000..cff79aba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CrossGvgTimeState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20676f8b1b122c84ab40e88d6af94fc7 +timeCreated: 1611403406 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleClientInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleClientInfo.cs new file mode 100644 index 00000000..00e91f40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleClientInfo.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleClientInfo")] + [Serializable] + public class CustomBattleClientInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "queryinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleQueryInfo queryinfo + { + get + { + return this._queryinfo; + } + set + { + this._queryinfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "createinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleDataRole createinfo + { + get + { + return this._createinfo; + } + set + { + this._createinfo = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "joininfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleDataRole joininfo + { + get + { + return this._joininfo; + } + set + { + this._joininfo = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(5, Name = "searchinfo", DataFormat = DataFormat.Default)] + public List searchinfo + { + get + { + return this._searchinfo; + } + } + + private CustomBattleQueryInfo _queryinfo = null; + + private CustomBattleDataRole _createinfo = null; + + private CustomBattleDataRole _joininfo = null; + + private uint? _rank; + + private readonly List _searchinfo = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleClientInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleClientInfo.cs.meta new file mode 100644 index 00000000..9d211def --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleClientInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da3d83d35ea5d8141aa850a084aaf523 +timeCreated: 1611404647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleConfig.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleConfig.cs new file mode 100644 index 00000000..25546a72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleConfig.cs @@ -0,0 +1,879 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleConfig")] + [Serializable] + public class CustomBattleConfig : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "tagtype", DataFormat = DataFormat.TwosComplement)] + public uint tagtype + { + get + { + return this._tagtype ?? 0u; + } + set + { + this._tagtype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tagtypeSpecified + { + get + { + return this._tagtype != null; + } + set + { + bool flag = value == (this._tagtype == null); + if (flag) + { + this._tagtype = (value ? new uint?(this.tagtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "configid", DataFormat = DataFormat.TwosComplement)] + public uint configid + { + get + { + return this._configid ?? 0u; + } + set + { + this._configid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool configidSpecified + { + get + { + return this._configid != null; + } + set + { + bool flag = value == (this._configid == null); + if (flag) + { + this._configid = (value ? new uint?(this.configid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "scalemask", DataFormat = DataFormat.TwosComplement)] + public uint scalemask + { + get + { + return this._scalemask ?? 0u; + } + set + { + this._scalemask = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scalemaskSpecified + { + get + { + return this._scalemask != null; + } + set + { + bool flag = value == (this._scalemask == null); + if (flag) + { + this._scalemask = (value ? new uint?(this.scalemask) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "desc", DataFormat = DataFormat.Default)] + public string desc + { + get + { + return this._desc ?? ""; + } + set + { + this._desc = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool descSpecified + { + get + { + return this._desc != null; + } + set + { + bool flag = value == (this._desc == null); + if (flag) + { + this._desc = (value ? this.desc : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "haspassword", DataFormat = DataFormat.Default)] + public bool haspassword + { + get + { + return this._haspassword ?? false; + } + set + { + this._haspassword = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool haspasswordSpecified + { + get + { + return this._haspassword != null; + } + set + { + bool flag = value == (this._haspassword == null); + if (flag) + { + this._haspassword = (value ? new bool?(this.haspassword) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "password", DataFormat = DataFormat.Default)] + public string password + { + get + { + return this._password ?? ""; + } + set + { + this._password = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passwordSpecified + { + get + { + return this._password != null; + } + set + { + bool flag = value == (this._password == null); + if (flag) + { + this._password = (value ? this.password : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "isfair", DataFormat = DataFormat.Default)] + public bool isfair + { + get + { + return this._isfair ?? false; + } + set + { + this._isfair = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isfairSpecified + { + get + { + return this._isfair != null; + } + set + { + bool flag = value == (this._isfair == null); + if (flag) + { + this._isfair = (value ? new bool?(this.isfair) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "battletime", DataFormat = DataFormat.TwosComplement)] + public uint battletime + { + get + { + return this._battletime ?? 0u; + } + set + { + this._battletime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool battletimeSpecified + { + get + { + return this._battletime != null; + } + set + { + bool flag = value == (this._battletime == null); + if (flag) + { + this._battletime = (value ? new uint?(this.battletime) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "canjoincount", DataFormat = DataFormat.TwosComplement)] + public uint canjoincount + { + get + { + return this._canjoincount ?? 0u; + } + set + { + this._canjoincount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canjoincountSpecified + { + get + { + return this._canjoincount != null; + } + set + { + bool flag = value == (this._canjoincount == null); + if (flag) + { + this._canjoincount = (value ? new uint?(this.canjoincount) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "creator", DataFormat = DataFormat.TwosComplement)] + public ulong creator + { + get + { + return this._creator ?? 0UL; + } + set + { + this._creator = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool creatorSpecified + { + get + { + return this._creator != null; + } + set + { + bool flag = value == (this._creator == null); + if (flag) + { + this._creator = (value ? new ulong?(this.creator) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "creatorname", DataFormat = DataFormat.Default)] + public string creatorname + { + get + { + return this._creatorname ?? ""; + } + set + { + this._creatorname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool creatornameSpecified + { + get + { + return this._creatorname != null; + } + set + { + bool flag = value == (this._creatorname == null); + if (flag) + { + this._creatorname = (value ? this.creatorname : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public CustomBattleState state + { + get + { + return this._state ?? CustomBattleState.CustomBattle_Ready; + } + set + { + this._state = new CustomBattleState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new CustomBattleState?(this.state) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "readytime", DataFormat = DataFormat.TwosComplement)] + public uint readytime + { + get + { + return this._readytime ?? 0u; + } + set + { + this._readytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool readytimeSpecified + { + get + { + return this._readytime != null; + } + set + { + bool flag = value == (this._readytime == null); + if (flag) + { + this._readytime = (value ? new uint?(this.readytime) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "issystem", DataFormat = DataFormat.Default)] + public bool issystem + { + get + { + return this._issystem ?? false; + } + set + { + this._issystem = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool issystemSpecified + { + get + { + return this._issystem != null; + } + set + { + bool flag = value == (this._issystem == null); + if (flag) + { + this._issystem = (value ? new bool?(this.issystem) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "hasjoincount", DataFormat = DataFormat.TwosComplement)] + public uint hasjoincount + { + get + { + return this._hasjoincount ?? 0u; + } + set + { + this._hasjoincount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasjoincountSpecified + { + get + { + return this._hasjoincount != null; + } + set + { + bool flag = value == (this._hasjoincount == null); + if (flag) + { + this._hasjoincount = (value ? new uint?(this.hasjoincount) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "battletimeconf", DataFormat = DataFormat.TwosComplement)] + public uint battletimeconf + { + get + { + return this._battletimeconf ?? 0u; + } + set + { + this._battletimeconf = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool battletimeconfSpecified + { + get + { + return this._battletimeconf != null; + } + set + { + bool flag = value == (this._battletimeconf == null); + if (flag) + { + this._battletimeconf = (value ? new uint?(this.battletimeconf) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "tagmask", DataFormat = DataFormat.TwosComplement)] + public uint tagmask + { + get + { + return this._tagmask ?? 0u; + } + set + { + this._tagmask = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tagmaskSpecified + { + get + { + return this._tagmask != null; + } + set + { + bool flag = value == (this._tagmask == null); + if (flag) + { + this._tagmask = (value ? new uint?(this.tagmask) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "fighttype", DataFormat = DataFormat.TwosComplement)] + public CustomBattleType fighttype + { + get + { + return this._fighttype ?? CustomBattleType.CustomBattle_PK_Normal; + } + set + { + this._fighttype = new CustomBattleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fighttypeSpecified + { + get + { + return this._fighttype != null; + } + set + { + bool flag = value == (this._fighttype == null); + if (flag) + { + this._fighttype = (value ? new CustomBattleType?(this.fighttype) : null); + } + } + } + + private uint? _tagtype; + + private uint? _configid; + + private uint? _scalemask; + + private string _name; + + private string _desc; + + private bool? _haspassword; + + private string _password; + + private bool? _isfair; + + private uint? _battletime; + + private uint? _canjoincount; + + private ulong? _creator; + + private string _creatorname; + + private CustomBattleState? _state; + + private uint? _readytime; + + private bool? _issystem; + + private uint? _hasjoincount; + + private string _token; + + private uint? _battletimeconf; + + private uint? _tagmask; + + private CustomBattleType? _fighttype; + + private IExtension extensionObject; + + private bool ShouldSerializetagtype() + { + return this.tagtypeSpecified; + } + + private void Resettagtype() + { + this.tagtypeSpecified = false; + } + + private bool ShouldSerializeconfigid() + { + return this.configidSpecified; + } + + private void Resetconfigid() + { + this.configidSpecified = false; + } + + private bool ShouldSerializescalemask() + { + return this.scalemaskSpecified; + } + + private void Resetscalemask() + { + this.scalemaskSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializedesc() + { + return this.descSpecified; + } + + private void Resetdesc() + { + this.descSpecified = false; + } + + private bool ShouldSerializehaspassword() + { + return this.haspasswordSpecified; + } + + private void Resethaspassword() + { + this.haspasswordSpecified = false; + } + + private bool ShouldSerializepassword() + { + return this.passwordSpecified; + } + + private void Resetpassword() + { + this.passwordSpecified = false; + } + + private bool ShouldSerializeisfair() + { + return this.isfairSpecified; + } + + private void Resetisfair() + { + this.isfairSpecified = false; + } + + private bool ShouldSerializebattletime() + { + return this.battletimeSpecified; + } + + private void Resetbattletime() + { + this.battletimeSpecified = false; + } + + private bool ShouldSerializecanjoincount() + { + return this.canjoincountSpecified; + } + + private void Resetcanjoincount() + { + this.canjoincountSpecified = false; + } + + private bool ShouldSerializecreator() + { + return this.creatorSpecified; + } + + private void Resetcreator() + { + this.creatorSpecified = false; + } + + private bool ShouldSerializecreatorname() + { + return this.creatornameSpecified; + } + + private void Resetcreatorname() + { + this.creatornameSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializereadytime() + { + return this.readytimeSpecified; + } + + private void Resetreadytime() + { + this.readytimeSpecified = false; + } + + private bool ShouldSerializeissystem() + { + return this.issystemSpecified; + } + + private void Resetissystem() + { + this.issystemSpecified = false; + } + + private bool ShouldSerializehasjoincount() + { + return this.hasjoincountSpecified; + } + + private void Resethasjoincount() + { + this.hasjoincountSpecified = false; + } + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + private bool ShouldSerializebattletimeconf() + { + return this.battletimeconfSpecified; + } + + private void Resetbattletimeconf() + { + this.battletimeconfSpecified = false; + } + + private bool ShouldSerializetagmask() + { + return this.tagmaskSpecified; + } + + private void Resettagmask() + { + this.tagmaskSpecified = false; + } + + private bool ShouldSerializefighttype() + { + return this.fighttypeSpecified; + } + + private void Resetfighttype() + { + this.fighttypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleConfig.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleConfig.cs.meta new file mode 100644 index 00000000..84d4ff09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleConfig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: caf885f21e907094e8c5f31aad6730fc +timeCreated: 1611404544 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleData.cs new file mode 100644 index 00000000..ae740997 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleData.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleData")] + [Serializable] + public class CustomBattleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "config", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleConfig config + { + get + { + return this._config; + } + set + { + this._config = value; + } + } + + [ProtoMember(3, Name = "rank", DataFormat = DataFormat.Default)] + public List rank + { + get + { + return this._rank; + } + } + + private ulong? _uid; + + private CustomBattleConfig _config = null; + + private readonly List _rank = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleData.cs.meta new file mode 100644 index 00000000..d8d59eb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8154ed160425044f91d3dfb12dc779d +timeCreated: 1611404751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleDataRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleDataRole.cs new file mode 100644 index 00000000..0c4c6877 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleDataRole.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleDataRole")] + [Serializable] + public class CustomBattleDataRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleData data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "role", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleRole role + { + get + { + return this._role; + } + set + { + this._role = value; + } + } + + private CustomBattleData _data = null; + + private CustomBattleRole _role = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleDataRole.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleDataRole.cs.meta new file mode 100644 index 00000000..5ae16986 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleDataRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e71125a3f47842f4f9b80336c0bed022 +timeCreated: 1611404748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleGMNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleGMNotify.cs new file mode 100644 index 00000000..4fa7918c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleGMNotify.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleGMNotify")] + [Serializable] + public class CustomBattleGMNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isgmcreate", DataFormat = DataFormat.Default)] + public bool isgmcreate + { + get + { + return this._isgmcreate ?? false; + } + set + { + this._isgmcreate = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isgmcreateSpecified + { + get + { + return this._isgmcreate != null; + } + set + { + bool flag = value == (this._isgmcreate == null); + if (flag) + { + this._isgmcreate = (value ? new bool?(this.isgmcreate) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isgmjoin", DataFormat = DataFormat.Default)] + public bool isgmjoin + { + get + { + return this._isgmjoin ?? false; + } + set + { + this._isgmjoin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isgmjoinSpecified + { + get + { + return this._isgmjoin != null; + } + set + { + bool flag = value == (this._isgmjoin == null); + if (flag) + { + this._isgmjoin = (value ? new bool?(this.isgmjoin) : null); + } + } + } + + private bool? _isgmcreate; + + private bool? _isgmjoin; + + private IExtension extensionObject; + + private bool ShouldSerializeisgmcreate() + { + return this.isgmcreateSpecified; + } + + private void Resetisgmcreate() + { + this.isgmcreateSpecified = false; + } + + private bool ShouldSerializeisgmjoin() + { + return this.isgmjoinSpecified; + } + + private void Resetisgmjoin() + { + this.isgmjoinSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleGMNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleGMNotify.cs.meta new file mode 100644 index 00000000..3d5976cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleGMNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05b5f0af937ef43488956e3aff4d9d84 +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleLoadingNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleLoadingNtf.cs new file mode 100644 index 00000000..bdf6675c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleLoadingNtf.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleLoadingNtf")] + [Serializable] + public class CustomBattleLoadingNtf : IExtensible + { + [ProtoMember(1, Name = "roleinfos", DataFormat = DataFormat.Default)] + public List roleinfos + { + get + { + return this._roleinfos; + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public CustomBattleType type + { + get + { + return this._type ?? CustomBattleType.CustomBattle_PK_Normal; + } + set + { + this._type = new CustomBattleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new CustomBattleType?(this.type) : null); + } + } + } + + private readonly List _roleinfos = new List(); + + private CustomBattleType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleLoadingNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleLoadingNtf.cs.meta new file mode 100644 index 00000000..a36052df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleLoadingNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c1d9e4d0685a904290527bb262c3c41 +timeCreated: 1611404098 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleMatchRoleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleMatchRoleInfo.cs new file mode 100644 index 00000000..6bcf3728 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleMatchRoleInfo.cs @@ -0,0 +1,429 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleMatchRoleInfo")] + [Serializable] + public class CustomBattleMatchRoleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "win", DataFormat = DataFormat.TwosComplement)] + public uint win + { + get + { + return this._win ?? 0u; + } + set + { + this._win = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winSpecified + { + get + { + return this._win != null; + } + set + { + bool flag = value == (this._win == null); + if (flag) + { + this._win = (value ? new uint?(this.win) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "lose", DataFormat = DataFormat.TwosComplement)] + public uint lose + { + get + { + return this._lose ?? 0u; + } + set + { + this._lose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loseSpecified + { + get + { + return this._lose != null; + } + set + { + bool flag = value == (this._lose == null); + if (flag) + { + this._lose = (value ? new uint?(this.lose) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "draw", DataFormat = DataFormat.TwosComplement)] + public uint draw + { + get + { + return this._draw ?? 0u; + } + set + { + this._draw = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool drawSpecified + { + get + { + return this._draw != null; + } + set + { + bool flag = value == (this._draw == null); + if (flag) + { + this._draw = (value ? new uint?(this.draw) : null); + } + } + } + + [ProtoMember(8, Name = "records", DataFormat = DataFormat.TwosComplement)] + public List records + { + get + { + return this._records; + } + } + + [ProtoMember(9, IsRequired = false, Name = "timestamp", DataFormat = DataFormat.TwosComplement)] + public uint timestamp + { + get + { + return this._timestamp ?? 0u; + } + set + { + this._timestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timestampSpecified + { + get + { + return this._timestamp != null; + } + set + { + bool flag = value == (this._timestamp == null); + if (flag) + { + this._timestamp = (value ? new uint?(this.timestamp) : null); + } + } + } + + [ProtoMember(10, Name = "stages", DataFormat = DataFormat.Default)] + public List stages + { + get + { + return this._stages; + } + } + + [ProtoMember(11, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + private ulong? _roleid; + + private uint? _profession; + + private string _rolename; + + private uint? _serverid; + + private uint? _win; + + private uint? _lose; + + private uint? _draw; + + private readonly List _records = new List(); + + private uint? _timestamp; + + private readonly List _stages = new List(); + + private uint? _point; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializewin() + { + return this.winSpecified; + } + + private void Resetwin() + { + this.winSpecified = false; + } + + private bool ShouldSerializelose() + { + return this.loseSpecified; + } + + private void Resetlose() + { + this.loseSpecified = false; + } + + private bool ShouldSerializedraw() + { + return this.drawSpecified; + } + + private void Resetdraw() + { + this.drawSpecified = false; + } + + private bool ShouldSerializetimestamp() + { + return this.timestampSpecified; + } + + private void Resettimestamp() + { + this.timestampSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleMatchRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleMatchRoleInfo.cs.meta new file mode 100644 index 00000000..fef48446 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleMatchRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c72e4d32ce20762438e393354484b784 +timeCreated: 1611404529 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOp.cs new file mode 100644 index 00000000..2fc32572 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOp.cs @@ -0,0 +1,46 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleOp")] + public enum CustomBattleOp + { + [ProtoEnum(Name = "CustomBattle_Query", Value = 1)] + CustomBattle_Query = 1, + [ProtoEnum(Name = "CustomBattle_Create", Value = 2)] + CustomBattle_Create, + [ProtoEnum(Name = "CustomBattle_Join", Value = 3)] + CustomBattle_Join, + [ProtoEnum(Name = "CustomBattle_Match", Value = 4)] + CustomBattle_Match, + [ProtoEnum(Name = "CustomBattle_Reward", Value = 5)] + CustomBattle_Reward, + [ProtoEnum(Name = "CustomBattle_ClearCD", Value = 6)] + CustomBattle_ClearCD, + [ProtoEnum(Name = "CustomBattle_QueryRandom", Value = 7)] + CustomBattle_QueryRandom, + [ProtoEnum(Name = "CustomBattle_QueryOne", Value = 8)] + CustomBattle_QueryOne, + [ProtoEnum(Name = "CustomBattle_DoCreate", Value = 9)] + CustomBattle_DoCreate, + [ProtoEnum(Name = "CustomBattle_DoJoin", Value = 10)] + CustomBattle_DoJoin, + [ProtoEnum(Name = "CustomBattle_UnJoin", Value = 11)] + CustomBattle_UnJoin, + [ProtoEnum(Name = "CustomBattle_UnMatch", Value = 12)] + CustomBattle_UnMatch, + [ProtoEnum(Name = "CustomBattle_Modify", Value = 13)] + CustomBattle_Modify, + [ProtoEnum(Name = "CustomBattle_QuerySelf", Value = 14)] + CustomBattle_QuerySelf, + [ProtoEnum(Name = "CustomBattle_StartNow", Value = 15)] + CustomBattle_StartNow, + [ProtoEnum(Name = "CustomBattle_DoClearCD", Value = 16)] + CustomBattle_DoClearCD, + [ProtoEnum(Name = "CustomBattle_Drop", Value = 17)] + CustomBattle_Drop, + [ProtoEnum(Name = "CustomBattle_Search", Value = 18)] + CustomBattle_Search + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOp.cs.meta new file mode 100644 index 00000000..a8041658 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c096dde65290c7b468808a6a7772c39f +timeCreated: 1611404487 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs new file mode 100644 index 00000000..84b2e1a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs @@ -0,0 +1,293 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleOpArg")] + [Serializable] + public class CustomBattleOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public CustomBattleOp op + { + get + { + return this._op ?? CustomBattleOp.CustomBattle_Query; + } + set + { + this._op = new CustomBattleOp?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new CustomBattleOp?(this.op) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "config", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleConfig config + { + get + { + return this._config; + } + set + { + this._config = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "password", DataFormat = DataFormat.Default)] + public string password + { + get + { + return this._password ?? ""; + } + set + { + this._password = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passwordSpecified + { + get + { + return this._password != null; + } + set + { + bool flag = value == (this._password == null); + if (flag) + { + this._password = (value ? this.password : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "querycross", DataFormat = DataFormat.Default)] + public bool querycross + { + get + { + return this._querycross ?? false; + } + set + { + this._querycross = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool querycrossSpecified + { + get + { + return this._querycross != null; + } + set + { + bool flag = value == (this._querycross == null); + if (flag) + { + this._querycross = (value ? new bool?(this.querycross) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private CustomBattleOp? _op; + + private ulong? _uid; + + private CustomBattleConfig _config = null; + + private string _password; + + private string _token; + + private bool? _querycross; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializepassword() + { + return this.passwordSpecified; + } + + private void Resetpassword() + { + this.passwordSpecified = false; + } + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + private bool ShouldSerializequerycross() + { + return this.querycrossSpecified; + } + + private void Resetquerycross() + { + this.querycrossSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs.meta new file mode 100644 index 00000000..a26afa9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b6c10b686a39fc4f8aeb6753beb3a4c +timeCreated: 1611404205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs new file mode 100644 index 00000000..5df333d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleOpRes")] + [Serializable] + public class CustomBattleOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleClientInfo info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private ErrorCode? _errorcode; + + private CustomBattleClientInfo _info = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs.meta new file mode 100644 index 00000000..bae7bc3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79426a3b959a12e4ca651372bad55eb9 +timeCreated: 1611403984 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleQueryInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleQueryInfo.cs new file mode 100644 index 00000000..9e5aca07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleQueryInfo.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleQueryInfo")] + [Serializable] + public class CustomBattleQueryInfo : IExtensible + { + [ProtoMember(1, Name = "battlesystem", DataFormat = DataFormat.Default)] + public List battlesystem + { + get + { + return this._battlesystem; + } + } + + [ProtoMember(2, Name = "battlerandom", DataFormat = DataFormat.Default)] + public List battlerandom + { + get + { + return this._battlerandom; + } + } + + [ProtoMember(3, IsRequired = false, Name = "battleone", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleDataRole battleone + { + get + { + return this._battleone; + } + set + { + this._battleone = value; + } + } + + private readonly List _battlesystem = new List(); + + private readonly List _battlerandom = new List(); + + private CustomBattleDataRole _battleone = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleQueryInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleQueryInfo.cs.meta new file mode 100644 index 00000000..397c9dad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleQueryInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e59b6f608c56fb4b9c24d741b12b1df +timeCreated: 1611403697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRank.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRank.cs new file mode 100644 index 00000000..36fd1e0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRank.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleRank")] + [Serializable] + public class CustomBattleRank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rewardcd", DataFormat = DataFormat.TwosComplement)] + public uint rewardcd + { + get + { + return this._rewardcd ?? 0u; + } + set + { + this._rewardcd = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardcdSpecified + { + get + { + return this._rewardcd != null; + } + set + { + bool flag = value == (this._rewardcd == null); + if (flag) + { + this._rewardcd = (value ? new uint?(this.rewardcd) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "istakenreward", DataFormat = DataFormat.Default)] + public bool istakenreward + { + get + { + return this._istakenreward ?? false; + } + set + { + this._istakenreward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool istakenrewardSpecified + { + get + { + return this._istakenreward != null; + } + set + { + bool flag = value == (this._istakenreward == null); + if (flag) + { + this._istakenreward = (value ? new bool?(this.istakenreward) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "timestamp", DataFormat = DataFormat.TwosComplement)] + public uint timestamp + { + get + { + return this._timestamp ?? 0u; + } + set + { + this._timestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timestampSpecified + { + get + { + return this._timestamp != null; + } + set + { + bool flag = value == (this._timestamp == null); + if (flag) + { + this._timestamp = (value ? new uint?(this.timestamp) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _point; + + private uint? _rewardcd; + + private bool? _istakenreward; + + private uint? _timestamp; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializerewardcd() + { + return this.rewardcdSpecified; + } + + private void Resetrewardcd() + { + this.rewardcdSpecified = false; + } + + private bool ShouldSerializeistakenreward() + { + return this.istakenrewardSpecified; + } + + private void Resetistakenreward() + { + this.istakenrewardSpecified = false; + } + + private bool ShouldSerializetimestamp() + { + return this.timestampSpecified; + } + + private void Resettimestamp() + { + this.timestampSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRank.cs.meta new file mode 100644 index 00000000..fd4d017d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22f4d922cdad06446a639908b2db7efb +timeCreated: 1611403425 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleResult.cs new file mode 100644 index 00000000..6abc8260 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleResult.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleResult")] + [Serializable] + public class CustomBattleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public PkResultType result + { + get + { + return this._result ?? PkResultType.PkResult_Win; + } + set + { + this._result = new PkResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new PkResultType?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public CustomBattleType type + { + get + { + return this._type ?? CustomBattleType.CustomBattle_PK_Normal; + } + set + { + this._type = new CustomBattleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new CustomBattleType?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public int point + { + get + { + return this._point ?? 0; + } + set + { + this._point = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new int?(this.point) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "fightgroup", DataFormat = DataFormat.TwosComplement)] + public uint fightgroup + { + get + { + return this._fightgroup ?? 0u; + } + set + { + this._fightgroup = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightgroupSpecified + { + get + { + return this._fightgroup != null; + } + set + { + bool flag = value == (this._fightgroup == null); + if (flag) + { + this._fightgroup = (value ? new uint?(this.fightgroup) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "ismvp", DataFormat = DataFormat.Default)] + public bool ismvp + { + get + { + return this._ismvp ?? false; + } + set + { + this._ismvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismvpSpecified + { + get + { + return this._ismvp != null; + } + set + { + bool flag = value == (this._ismvp == null); + if (flag) + { + this._ismvp = (value ? new bool?(this.ismvp) : null); + } + } + } + + private PkResultType? _result; + + private CustomBattleType? _type; + + private int? _point; + + private int? _rank; + + private uint? _fightgroup; + + private bool? _ismvp; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializefightgroup() + { + return this.fightgroupSpecified; + } + + private void Resetfightgroup() + { + this.fightgroupSpecified = false; + } + + private bool ShouldSerializeismvp() + { + return this.ismvpSpecified; + } + + private void Resetismvp() + { + this.ismvpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleResult.cs.meta new file mode 100644 index 00000000..9f4d7e28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8618ed84f9cd41546a3768c2ad34f3cc +timeCreated: 1611404053 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRole.cs new file mode 100644 index 00000000..2b121321 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRole.cs @@ -0,0 +1,418 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleRole")] + [Serializable] + public class CustomBattleRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "configid", DataFormat = DataFormat.TwosComplement)] + public uint configid + { + get + { + return this._configid ?? 0u; + } + set + { + this._configid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool configidSpecified + { + get + { + return this._configid != null; + } + set + { + bool flag = value == (this._configid == null); + if (flag) + { + this._configid = (value ? new uint?(this.configid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lose", DataFormat = DataFormat.TwosComplement)] + public uint lose + { + get + { + return this._lose ?? 0u; + } + set + { + this._lose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loseSpecified + { + get + { + return this._lose != null; + } + set + { + bool flag = value == (this._lose == null); + if (flag) + { + this._lose = (value ? new uint?(this.lose) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "win", DataFormat = DataFormat.TwosComplement)] + public uint win + { + get + { + return this._win ?? 0u; + } + set + { + this._win = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winSpecified + { + get + { + return this._win != null; + } + set + { + bool flag = value == (this._win == null); + if (flag) + { + this._win = (value ? new uint?(this.win) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public CustomBattleRoleState state + { + get + { + return this._state ?? CustomBattleRoleState.CustomBattle_RoleState_Ready; + } + set + { + this._state = new CustomBattleRoleState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new CustomBattleRoleState?(this.state) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "rewardcd", DataFormat = DataFormat.TwosComplement)] + public uint rewardcd + { + get + { + return this._rewardcd ?? 0u; + } + set + { + this._rewardcd = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardcdSpecified + { + get + { + return this._rewardcd != null; + } + set + { + bool flag = value == (this._rewardcd == null); + if (flag) + { + this._rewardcd = (value ? new uint?(this.rewardcd) : null); + } + } + } + + [ProtoMember(9, Name = "records", DataFormat = DataFormat.TwosComplement)] + public List records + { + get + { + return this._records; + } + } + + [ProtoMember(10, IsRequired = false, Name = "draw", DataFormat = DataFormat.TwosComplement)] + public uint draw + { + get + { + return this._draw ?? 0u; + } + set + { + this._draw = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool drawSpecified + { + get + { + return this._draw != null; + } + set + { + bool flag = value == (this._draw == null); + if (flag) + { + this._draw = (value ? new uint?(this.draw) : null); + } + } + } + + private ulong? _uid; + + private uint? _configid; + + private uint? _lose; + + private uint? _win; + + private uint? _point; + + private uint? _rank; + + private CustomBattleRoleState? _state; + + private uint? _rewardcd; + + private readonly List _records = new List(); + + private uint? _draw; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeconfigid() + { + return this.configidSpecified; + } + + private void Resetconfigid() + { + this.configidSpecified = false; + } + + private bool ShouldSerializelose() + { + return this.loseSpecified; + } + + private void Resetlose() + { + this.loseSpecified = false; + } + + private bool ShouldSerializewin() + { + return this.winSpecified; + } + + private void Resetwin() + { + this.winSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializerewardcd() + { + return this.rewardcdSpecified; + } + + private void Resetrewardcd() + { + this.rewardcdSpecified = false; + } + + private bool ShouldSerializedraw() + { + return this.drawSpecified; + } + + private void Resetdraw() + { + this.drawSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRole.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRole.cs.meta new file mode 100644 index 00000000..a68516c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c311d9335a92324499d8d46bab5a5a22 +timeCreated: 1611404496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRoleState.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRoleState.cs new file mode 100644 index 00000000..d1496bbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRoleState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleRoleState")] + public enum CustomBattleRoleState + { + [ProtoEnum(Name = "CustomBattle_RoleState_Ready", Value = 1)] + CustomBattle_RoleState_Ready = 1, + [ProtoEnum(Name = "CustomBattle_RoleState_Join", Value = 2)] + CustomBattle_RoleState_Join, + [ProtoEnum(Name = "CustomBattle_RoleState_Reward", Value = 3)] + CustomBattle_RoleState_Reward, + [ProtoEnum(Name = "Custombattle_RoleState_Taken", Value = 4)] + Custombattle_RoleState_Taken + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRoleState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRoleState.cs.meta new file mode 100644 index 00000000..6da06d7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleRoleState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59e8e07230956b3468f5884776ddca06 +timeCreated: 1611403789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleScale.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleScale.cs new file mode 100644 index 00000000..fb03496c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleScale.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleScale")] + public enum CustomBattleScale + { + [ProtoEnum(Name = "CustomBattle_Scale_Friend", Value = 1)] + CustomBattle_Scale_Friend = 1, + [ProtoEnum(Name = "CustomBattle_Scale_Guild", Value = 2)] + CustomBattle_Scale_Guild, + [ProtoEnum(Name = "CustomBattle_Scale_Server", Value = 3)] + CustomBattle_Scale_Server, + [ProtoEnum(Name = "CustomBattle_Scale_All", Value = 4)] + CustomBattle_Scale_All + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleScale.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleScale.cs.meta new file mode 100644 index 00000000..a177e21e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleScale.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8756c71dabc8e8b4fb702797d2aeb6d0 +timeCreated: 1611404078 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleState.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleState.cs new file mode 100644 index 00000000..d72accb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleState")] + public enum CustomBattleState + { + [ProtoEnum(Name = "CustomBattle_Ready", Value = 1)] + CustomBattle_Ready = 1, + [ProtoEnum(Name = "CustomBattle_Going", Value = 2)] + CustomBattle_Going, + [ProtoEnum(Name = "CustomBattle_End", Value = 3)] + CustomBattle_End, + [ProtoEnum(Name = "CustomBattle_Destory", Value = 4)] + CustomBattle_Destory + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleState.cs.meta new file mode 100644 index 00000000..3ed3a0d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 702dcf71d9708404ea04a315495aec83 +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleTag.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleTag.cs new file mode 100644 index 00000000..b92b21a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleTag.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleTag")] + public enum CustomBattleTag + { + [ProtoEnum(Name = "CustomBattle_Tag_Friend", Value = 1)] + CustomBattle_Tag_Friend = 1, + [ProtoEnum(Name = "CustomBattle_Tag_Guild", Value = 2)] + CustomBattle_Tag_Guild, + [ProtoEnum(Name = "CustomBattle_Tag_Cross", Value = 3)] + CustomBattle_Tag_Cross, + [ProtoEnum(Name = "CustomBattle_Tag_GM", Value = 4)] + CustomBattle_Tag_GM + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleTag.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleTag.cs.meta new file mode 100644 index 00000000..26fe82c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleTag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f63d44336e5e82b4dab1bd3eb46d23e0 +timeCreated: 1611404881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleType.cs b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleType.cs new file mode 100644 index 00000000..094d4035 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "CustomBattleType")] + public enum CustomBattleType + { + [ProtoEnum(Name = "CustomBattle_PK_Normal", Value = 1)] + CustomBattle_PK_Normal = 1, + [ProtoEnum(Name = "CustomBattle_PKTwo_Normal", Value = 2)] + CustomBattle_PKTwo_Normal + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleType.cs.meta new file mode 100644 index 00000000..28439eed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/CustomBattleType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8d6fe6859e06a04e8dd2c6f07e8f271 +timeCreated: 1611404754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DBOperType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DBOperType.cs new file mode 100644 index 00000000..8e68b993 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DBOperType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DBOperType")] + public enum DBOperType + { + [ProtoEnum(Name = "DBOper_Insert", Value = 1)] + DBOper_Insert = 1, + [ProtoEnum(Name = "DBOper_Update", Value = 2)] + DBOper_Update, + [ProtoEnum(Name = "DBOper_Del", Value = 3)] + DBOper_Del, + [ProtoEnum(Name = "DBOper_DelAll", Value = 4)] + DBOper_DelAll, + [ProtoEnum(Name = "DBOper_ReplaceId", Value = 5)] + DBOper_ReplaceId + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DBOperType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DBOperType.cs.meta new file mode 100644 index 00000000..b3fc036d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DBOperType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4684a49644b70e445bab2fe325a3879b +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEProgress.cs b/Client/Assets/Scripts/XMainClient/KKSG/DEProgress.cs new file mode 100644 index 00000000..44f2e9b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEProgress.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DEProgress")] + [Serializable] + public class DEProgress : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public uint sceneID + { + get + { + return this._sceneID ?? 0u; + } + set + { + this._sceneID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new uint?(this.sceneID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "bossavghppercent", DataFormat = DataFormat.TwosComplement)] + public int bossavghppercent + { + get + { + return this._bossavghppercent ?? 0; + } + set + { + this._bossavghppercent = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bossavghppercentSpecified + { + get + { + return this._bossavghppercent != null; + } + set + { + bool flag = value == (this._bossavghppercent == null); + if (flag) + { + this._bossavghppercent = (value ? new int?(this.bossavghppercent) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public DEProgressState state + { + get + { + return this._state ?? DEProgressState.DEPS_FINISH; + } + set + { + this._state = new DEProgressState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new DEProgressState?(this.state) : null); + } + } + } + + private uint? _sceneID; + + private int? _bossavghppercent; + + private DEProgressState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializebossavghppercent() + { + return this.bossavghppercentSpecified; + } + + private void Resetbossavghppercent() + { + this.bossavghppercentSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEProgress.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DEProgress.cs.meta new file mode 100644 index 00000000..a46fe273 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEProgress.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5455efb1d7446974e9ae07dfd3af35fa +timeCreated: 1611403714 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEProgressArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressArg.cs new file mode 100644 index 00000000..29daf5b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DEProgressArg")] + [Serializable] + public class DEProgressArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEProgressArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressArg.cs.meta new file mode 100644 index 00000000..48539d62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 774c1ac4d1fdf1143bef4ad73b13f935 +timeCreated: 1611403953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEProgressRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressRes.cs new file mode 100644 index 00000000..6cb646a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DEProgressRes")] + [Serializable] + public class DEProgressRes : IExtensible + { + [ProtoMember(1, Name = "allpro", DataFormat = DataFormat.Default)] + public List allpro + { + get + { + return this._allpro; + } + } + + [ProtoMember(2, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)] + public int allcount + { + get + { + return this._allcount ?? 0; + } + set + { + this._allcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allcountSpecified + { + get + { + return this._allcount != null; + } + set + { + bool flag = value == (this._allcount == null); + if (flag) + { + this._allcount = (value ? new int?(this.allcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "leftcount", DataFormat = DataFormat.TwosComplement)] + public int leftcount + { + get + { + return this._leftcount ?? 0; + } + set + { + this._leftcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftcountSpecified + { + get + { + return this._leftcount != null; + } + set + { + bool flag = value == (this._leftcount == null); + if (flag) + { + this._leftcount = (value ? new int?(this.leftcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "serverseallevel", DataFormat = DataFormat.TwosComplement)] + public uint serverseallevel + { + get + { + return this._serverseallevel ?? 0u; + } + set + { + this._serverseallevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serverseallevelSpecified + { + get + { + return this._serverseallevel != null; + } + set + { + bool flag = value == (this._serverseallevel == null); + if (flag) + { + this._serverseallevel = (value ? new uint?(this.serverseallevel) : null); + } + } + } + + private readonly List _allpro = new List(); + + private int? _allcount; + + private int? _leftcount; + + private ErrorCode? _errcode; + + private uint? _serverseallevel; + + private IExtension extensionObject; + + private bool ShouldSerializeallcount() + { + return this.allcountSpecified; + } + + private void Resetallcount() + { + this.allcountSpecified = false; + } + + private bool ShouldSerializeleftcount() + { + return this.leftcountSpecified; + } + + private void Resetleftcount() + { + this.leftcountSpecified = false; + } + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + private bool ShouldSerializeserverseallevel() + { + return this.serverseallevelSpecified; + } + + private void Resetserverseallevel() + { + this.serverseallevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEProgressRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressRes.cs.meta new file mode 100644 index 00000000..b07d3b1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 155fde88f04385d40979e51d75fd267a +timeCreated: 1611403263 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEProgressState.cs b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressState.cs new file mode 100644 index 00000000..a34cd4ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressState.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DEProgressState")] + public enum DEProgressState + { + [ProtoEnum(Name = "DEPS_FINISH", Value = 1)] + DEPS_FINISH = 1, + [ProtoEnum(Name = "DEPS_FIGHT", Value = 2)] + DEPS_FIGHT, + [ProtoEnum(Name = "DEPS_NOTOPEN", Value = 3)] + DEPS_NOTOPEN + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEProgressState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressState.cs.meta new file mode 100644 index 00000000..b66223e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEProgressState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b175e7261d39d134bb7365e99e3e3852 +timeCreated: 1611404355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERank.cs b/Client/Assets/Scripts/XMainClient/KKSG/DERank.cs new file mode 100644 index 00000000..c6ff26ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERank.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DERank")] + [Serializable] + public class DERank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "progress", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DEProgress progress + { + get + { + return this._progress; + } + set + { + this._progress = value; + } + } + + [ProtoMember(5, Name = "reward", DataFormat = DataFormat.Default)] + public List reward + { + get + { + return this._reward; + } + } + + private int? _rank; + + private ulong? _roleID; + + private string _rolename; + + private DEProgress _progress = null; + + private readonly List _reward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DERank.cs.meta new file mode 100644 index 00000000..1994880d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae47d6478a966f64e8dc29802280fc3b +timeCreated: 1611404339 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERankArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DERankArg.cs new file mode 100644 index 00000000..e33b9364 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERankArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DERankArg")] + [Serializable] + public class DERankArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERankArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DERankArg.cs.meta new file mode 100644 index 00000000..16c27e58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERankArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6bc514513a9fa343a4af95a2afc28b7 +timeCreated: 1611404747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs b/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs new file mode 100644 index 00000000..dd6d661b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DERankChangePara")] + [Serializable] + public class DERankChangePara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "oldrank", DataFormat = DataFormat.TwosComplement)] + public int oldrank + { + get + { + return this._oldrank ?? 0; + } + set + { + this._oldrank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool oldrankSpecified + { + get + { + return this._oldrank != null; + } + set + { + bool flag = value == (this._oldrank == null); + if (flag) + { + this._oldrank = (value ? new int?(this.oldrank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "newrank", DataFormat = DataFormat.TwosComplement)] + public int newrank + { + get + { + return this._newrank ?? 0; + } + set + { + this._newrank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool newrankSpecified + { + get + { + return this._newrank != null; + } + set + { + bool flag = value == (this._newrank == null); + if (flag) + { + this._newrank = (value ? new int?(this.newrank) : null); + } + } + } + + private int? _oldrank; + + private int? _newrank; + + private IExtension extensionObject; + + private bool ShouldSerializeoldrank() + { + return this.oldrankSpecified; + } + + private void Resetoldrank() + { + this.oldrankSpecified = false; + } + + private bool ShouldSerializenewrank() + { + return this.newrankSpecified; + } + + private void Resetnewrank() + { + this.newrankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs.meta new file mode 100644 index 00000000..892be570 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERankChangePara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4235430020ecd3d4bbe84477e18ec512 +timeCreated: 1611403639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERankRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DERankRes.cs new file mode 100644 index 00000000..8b78da21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERankRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DERankRes")] + [Serializable] + public class DERankRes : IExtensible + { + [ProtoMember(1, Name = "ranks", DataFormat = DataFormat.Default)] + public List ranks + { + get + { + return this._ranks; + } + } + + [ProtoMember(2, IsRequired = false, Name = "rewardlefttime", DataFormat = DataFormat.TwosComplement)] + public uint rewardlefttime + { + get + { + return this._rewardlefttime ?? 0u; + } + set + { + this._rewardlefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardlefttimeSpecified + { + get + { + return this._rewardlefttime != null; + } + set + { + bool flag = value == (this._rewardlefttime == null); + if (flag) + { + this._rewardlefttime = (value ? new uint?(this.rewardlefttime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private readonly List _ranks = new List(); + + private uint? _rewardlefttime; + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializerewardlefttime() + { + return this.rewardlefttimeSpecified; + } + + private void Resetrewardlefttime() + { + this.rewardlefttimeSpecified = false; + } + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DERankRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DERankRes.cs.meta new file mode 100644 index 00000000..72f460f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DERankRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4278416bf17d8c646b8580957f8c2cee +timeCreated: 1611403639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEStageProgress.cs b/Client/Assets/Scripts/XMainClient/KKSG/DEStageProgress.cs new file mode 100644 index 00000000..681242bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEStageProgress.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DEStageProgress")] + [Serializable] + public class DEStageProgress : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + [ProtoMember(2, Name = "bossids", DataFormat = DataFormat.TwosComplement)] + public List bossids + { + get + { + return this._bossids; + } + } + + [ProtoMember(3, Name = "bosshppercenet", DataFormat = DataFormat.TwosComplement)] + public List bosshppercenet + { + get + { + return this._bosshppercenet; + } + } + + private uint? _sceneid; + + private readonly List _bossids = new List(); + + private readonly List _bosshppercenet = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DEStageProgress.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DEStageProgress.cs.meta new file mode 100644 index 00000000..5eb4a697 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DEStageProgress.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07a7dd8c09f92b94da1530a0f8edaff8 +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs new file mode 100644 index 00000000..cad373ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DHRArg")] + [Serializable] + public class DHRArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public DHRReqOp op + { + get + { + return this._op ?? DHRReqOp.DHR_OP_LIST; + } + set + { + this._op = new DHRReqOp?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new DHRReqOp?(this.op) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public int id + { + get + { + return this._id ?? 0; + } + set + { + this._id = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new int?(this.id) : null); + } + } + } + + private DHRReqOp? _op; + + private int? _id; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs.meta new file mode 100644 index 00000000..707f4127 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60ebba585b582d447b2159488a207ed6 +timeCreated: 1611403836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs new file mode 100644 index 00000000..cc95fda9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DHRReqOp")] + public enum DHRReqOp + { + [ProtoEnum(Name = "DHR_OP_LIST", Value = 1)] + DHR_OP_LIST = 1, + [ProtoEnum(Name = "DHR_OP_FETCH_REWARD", Value = 2)] + DHR_OP_FETCH_REWARD, + [ProtoEnum(Name = "DHR_OP_WANT_BE_HELP", Value = 3)] + DHR_OP_WANT_BE_HELP, + [ProtoEnum(Name = "DHR_OP_WANT_NOT_HELP", Value = 4)] + DHR_OP_WANT_NOT_HELP + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs.meta new file mode 100644 index 00000000..4421503f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRReqOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2536ecffb6f7eca4ca8597302d4f6fce +timeCreated: 1611403464 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs new file mode 100644 index 00000000..fdd862be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DHRRes")] + [Serializable] + public class DHRRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "rewstate", DataFormat = DataFormat.Default)] + public List rewstate + { + get + { + return this._rewstate; + } + } + + [ProtoMember(3, IsRequired = false, Name = "helpcount", DataFormat = DataFormat.TwosComplement)] + public uint helpcount + { + get + { + return this._helpcount ?? 0u; + } + set + { + this._helpcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool helpcountSpecified + { + get + { + return this._helpcount != null; + } + set + { + bool flag = value == (this._helpcount == null); + if (flag) + { + this._helpcount = (value ? new uint?(this.helpcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "wanthelp", DataFormat = DataFormat.Default)] + public bool wanthelp + { + get + { + return this._wanthelp ?? false; + } + set + { + this._wanthelp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wanthelpSpecified + { + get + { + return this._wanthelp != null; + } + set + { + bool flag = value == (this._wanthelp == null); + if (flag) + { + this._wanthelp = (value ? new bool?(this.wanthelp) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _rewstate = new List(); + + private uint? _helpcount; + + private bool? _wanthelp; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializehelpcount() + { + return this.helpcountSpecified; + } + + private void Resethelpcount() + { + this.helpcountSpecified = false; + } + + private bool ShouldSerializewanthelp() + { + return this.wanthelpSpecified; + } + + private void Resetwanthelp() + { + this.wanthelpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs.meta new file mode 100644 index 00000000..517bc731 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88674c011a139f346b2dc6f6ac4ca922 +timeCreated: 1611404083 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs b/Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs new file mode 100644 index 00000000..64b035ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DHRState")] + public enum DHRState + { + [ProtoEnum(Name = "DHR_CANNOT", Value = 1)] + DHR_CANNOT = 1, + [ProtoEnum(Name = "DHR_CAN_HAVEHOT", Value = 2)] + DHR_CAN_HAVEHOT, + [ProtoEnum(Name = "DHR_CAN_HAVE", Value = 3)] + DHR_CAN_HAVE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs.meta new file mode 100644 index 00000000..41d68558 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c0cb0c589eaa7648a19a68d9f0f48ef +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRewrad2State.cs b/Client/Assets/Scripts/XMainClient/KKSG/DHRewrad2State.cs new file mode 100644 index 00000000..b5580f43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRewrad2State.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DHRewrad2State")] + [Serializable] + public class DHRewrad2State : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public int id + { + get + { + return this._id ?? 0; + } + set + { + this._id = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new int?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public DHRState state + { + get + { + return this._state ?? DHRState.DHR_CANNOT; + } + set + { + this._state = new DHRState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new DHRState?(this.state) : null); + } + } + } + + private int? _id; + + private DHRState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DHRewrad2State.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DHRewrad2State.cs.meta new file mode 100644 index 00000000..829fc22f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DHRewrad2State.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6baf17c022ac1949a47939245779559 +timeCreated: 1611404399 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DPSNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/DPSNotify.cs new file mode 100644 index 00000000..88466928 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DPSNotify.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DPSNotify")] + [Serializable] + public class DPSNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dps", DataFormat = DataFormat.FixedSize)] + public float dps + { + get + { + return this._dps ?? 0f; + } + set + { + this._dps = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dpsSpecified + { + get + { + return this._dps != null; + } + set + { + bool flag = value == (this._dps == null); + if (flag) + { + this._dps = (value ? new float?(this.dps) : null); + } + } + } + + private float? _dps; + + private IExtension extensionObject; + + private bool ShouldSerializedps() + { + return this.dpsSpecified; + } + + private void Resetdps() + { + this.dpsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DPSNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DPSNotify.cs.meta new file mode 100644 index 00000000..996692de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DPSNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9fdde093dcae8d643a91e5983038a715 +timeCreated: 1611404247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyRefreshOperType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyRefreshOperType.cs new file mode 100644 index 00000000..58a99604 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyRefreshOperType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyRefreshOperType")] + public enum DailyRefreshOperType + { + [ProtoEnum(Name = "DROT_Refresh", Value = 1)] + DROT_Refresh = 1, + [ProtoEnum(Name = "DROT_Refuse", Value = 2)] + DROT_Refuse, + [ProtoEnum(Name = "DROT_BuyCount", Value = 3)] + DROT_BuyCount, + [ProtoEnum(Name = "DROT_AskHelp", Value = 4)] + DROT_AskHelp + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyRefreshOperType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyRefreshOperType.cs.meta new file mode 100644 index 00000000..28462199 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyRefreshOperType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: adcdccc43981c414bb0b84adf7ac0ea7 +timeCreated: 1611404336 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs new file mode 100644 index 00000000..9fbdb8c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskAskHelpArg")] + [Serializable] + public class DailyTaskAskHelpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "task_id", DataFormat = DataFormat.TwosComplement)] + public uint task_id + { + get + { + return this._task_id ?? 0u; + } + set + { + this._task_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool task_idSpecified + { + get + { + return this._task_id != null; + } + set + { + bool flag = value == (this._task_id == null); + if (flag) + { + this._task_id = (value ? new uint?(this.task_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "task_type", DataFormat = DataFormat.TwosComplement)] + public PeriodTaskType task_type + { + get + { + return this._task_type ?? PeriodTaskType.PeriodTaskType_Daily; + } + set + { + this._task_type = new PeriodTaskType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool task_typeSpecified + { + get + { + return this._task_type != null; + } + set + { + bool flag = value == (this._task_type == null); + if (flag) + { + this._task_type = (value ? new PeriodTaskType?(this.task_type) : null); + } + } + } + + private uint? _task_id; + + private PeriodTaskType? _task_type; + + private IExtension extensionObject; + + private bool ShouldSerializetask_id() + { + return this.task_idSpecified; + } + + private void Resettask_id() + { + this.task_idSpecified = false; + } + + private bool ShouldSerializetask_type() + { + return this.task_typeSpecified; + } + + private void Resettask_type() + { + this.task_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs.meta new file mode 100644 index 00000000..5c95c767 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6bea6f7c68f9b8845b529f76c819b408 +timeCreated: 1611403893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpRes.cs new file mode 100644 index 00000000..b9ad99b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskAskHelpRes")] + [Serializable] + public class DailyTaskAskHelpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "code", DataFormat = DataFormat.TwosComplement)] + public ErrorCode code + { + get + { + return this._code ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._code = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool codeSpecified + { + get + { + return this._code != null; + } + set + { + bool flag = value == (this._code == null); + if (flag) + { + this._code = (value ? new ErrorCode?(this.code) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ask_uid", DataFormat = DataFormat.TwosComplement)] + public uint ask_uid + { + get + { + return this._ask_uid ?? 0u; + } + set + { + this._ask_uid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ask_uidSpecified + { + get + { + return this._ask_uid != null; + } + set + { + bool flag = value == (this._ask_uid == null); + if (flag) + { + this._ask_uid = (value ? new uint?(this.ask_uid) : null); + } + } + } + + private ErrorCode? _code; + + private uint? _ask_uid; + + private IExtension extensionObject; + + private bool ShouldSerializecode() + { + return this.codeSpecified; + } + + private void Resetcode() + { + this.codeSpecified = false; + } + + private bool ShouldSerializeask_uid() + { + return this.ask_uidSpecified; + } + + private void Resetask_uid() + { + this.ask_uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpRes.cs.meta new file mode 100644 index 00000000..dc0fe8c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskAskHelpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e47627198cb1134bb9ae48398b68bd9 +timeCreated: 1611403202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs new file mode 100644 index 00000000..b1425e14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskEventNtf")] + [Serializable] + public class DailyTaskEventNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public DailyTaskIconType type + { + get + { + return this._type ?? DailyTaskIconType.DailyTaskIcon_AskHelp; + } + set + { + this._type = new DailyTaskIconType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new DailyTaskIconType?(this.type) : null); + } + } + } + + private DailyTaskIconType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs.meta new file mode 100644 index 00000000..8de7b282 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskEventNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e9e3809c5361868408f17ce766a88a38 +timeCreated: 1611404758 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs new file mode 100644 index 00000000..a1c0989a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskGiveUpArg")] + [Serializable] + public class DailyTaskGiveUpArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs.meta new file mode 100644 index 00000000..be5a64ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a653df4d4ffbf9479bf9797fd119669 +timeCreated: 1611403309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs new file mode 100644 index 00000000..87a450ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskGiveUpRes")] + [Serializable] + public class DailyTaskGiveUpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs.meta new file mode 100644 index 00000000..17b00da9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskGiveUpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 951ce458d8395654e9b3a1c29fc1402a +timeCreated: 1611404180 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskIconType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskIconType.cs new file mode 100644 index 00000000..c290dd8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskIconType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskIconType")] + public enum DailyTaskIconType + { + [ProtoEnum(Name = "DailyTaskIcon_AskHelp", Value = 1)] + DailyTaskIcon_AskHelp = 1, + [ProtoEnum(Name = "DailyTaskIcon_BeHelp", Value = 2)] + DailyTaskIcon_BeHelp, + [ProtoEnum(Name = "DailyTaskIcon_AskHelpDispear", Value = 3)] + DailyTaskIcon_AskHelpDispear + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskIconType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskIconType.cs.meta new file mode 100644 index 00000000..e5d19dd8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskIconType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef95140f943e76b4a9703475b2f47a75 +timeCreated: 1611404804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskInfo.cs new file mode 100644 index 00000000..41eefd05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskInfo")] + [Serializable] + public class DailyTaskInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "step", DataFormat = DataFormat.TwosComplement)] + public uint step + { + get + { + return this._step ?? 0u; + } + set + { + this._step = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stepSpecified + { + get + { + return this._step != null; + } + set + { + bool flag = value == (this._step == null); + if (flag) + { + this._step = (value ? new uint?(this.step) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "is_rewarded", DataFormat = DataFormat.Default)] + public bool is_rewarded + { + get + { + return this._is_rewarded ?? false; + } + set + { + this._is_rewarded = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_rewardedSpecified + { + get + { + return this._is_rewarded != null; + } + set + { + bool flag = value == (this._is_rewarded == null); + if (flag) + { + this._is_rewarded = (value ? new bool?(this.is_rewarded) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "ask_help", DataFormat = DataFormat.Default)] + public bool ask_help + { + get + { + return this._ask_help ?? false; + } + set + { + this._ask_help = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ask_helpSpecified + { + get + { + return this._ask_help != null; + } + set + { + bool flag = value == (this._ask_help == null); + if (flag) + { + this._ask_help = (value ? new bool?(this.ask_help) : null); + } + } + } + + private uint? _id; + + private uint? _step; + + private bool? _is_rewarded; + + private bool? _ask_help; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializestep() + { + return this.stepSpecified; + } + + private void Resetstep() + { + this.stepSpecified = false; + } + + private bool ShouldSerializeis_rewarded() + { + return this.is_rewardedSpecified; + } + + private void Resetis_rewarded() + { + this.is_rewardedSpecified = false; + } + + private bool ShouldSerializeask_help() + { + return this.ask_helpSpecified; + } + + private void Resetask_help() + { + this.ask_helpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskInfo.cs.meta new file mode 100644 index 00000000..3048924e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37f04f974a5892440954c6074c9d993f +timeCreated: 1611403568 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshInfo.cs new file mode 100644 index 00000000..dcfabde3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskRefreshInfo")] + [Serializable] + public class DailyTaskRefreshInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isnew", DataFormat = DataFormat.Default)] + public bool isnew + { + get + { + return this._isnew ?? false; + } + set + { + this._isnew = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isnewSpecified + { + get + { + return this._isnew != null; + } + set + { + bool flag = value == (this._isnew == null); + if (flag) + { + this._isnew = (value ? new bool?(this.isnew) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "old_score", DataFormat = DataFormat.TwosComplement)] + public uint old_score + { + get + { + return this._old_score ?? 0u; + } + set + { + this._old_score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool old_scoreSpecified + { + get + { + return this._old_score != null; + } + set + { + bool flag = value == (this._old_score == null); + if (flag) + { + this._old_score = (value ? new uint?(this.old_score) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _score; + + private bool? _isnew; + + private uint? _time; + + private uint? _old_score; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializeisnew() + { + return this.isnewSpecified; + } + + private void Resetisnew() + { + this.isnewSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeold_score() + { + return this.old_scoreSpecified; + } + + private void Resetold_score() + { + this.old_scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshInfo.cs.meta new file mode 100644 index 00000000..f7d00951 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a542eed653d3d5488f8eeb8399fa0a0 +timeCreated: 1611403790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperArg.cs new file mode 100644 index 00000000..098c98c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskRefreshOperArg")] + [Serializable] + public class DailyTaskRefreshOperArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public DailyRefreshOperType type + { + get + { + return this._type ?? DailyRefreshOperType.DROT_Refresh; + } + set + { + this._type = new DailyRefreshOperType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new DailyRefreshOperType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private DailyRefreshOperType? _type; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperArg.cs.meta new file mode 100644 index 00000000..1ecae94a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5bccf2514fe6ab4db0867f4806c1a15 +timeCreated: 1611404877 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperRes.cs new file mode 100644 index 00000000..c9c9ff69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskRefreshOperRes")] + [Serializable] + public class DailyTaskRefreshOperRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "oldscore", DataFormat = DataFormat.TwosComplement)] + public uint oldscore + { + get + { + return this._oldscore ?? 0u; + } + set + { + this._oldscore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool oldscoreSpecified + { + get + { + return this._oldscore != null; + } + set + { + bool flag = value == (this._oldscore == null); + if (flag) + { + this._oldscore = (value ? new uint?(this.oldscore) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _score; + + private uint? _oldscore; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializeoldscore() + { + return this.oldscoreSpecified; + } + + private void Resetoldscore() + { + this.oldscoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperRes.cs.meta new file mode 100644 index 00000000..d22ee7e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshOperRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb3c8b0e32759854fa1346ec3a88117a +timeCreated: 1611404440 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs new file mode 100644 index 00000000..d512edec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs @@ -0,0 +1,492 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DailyTaskRefreshRoleInfo")] + [Serializable] + public class DailyTaskRefreshRoleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public RoleType profession + { + get + { + return this._profession ?? RoleType.Role_INVALID; + } + set + { + this._profession = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new RoleType?(this.profession) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "luck", DataFormat = DataFormat.TwosComplement)] + public uint luck + { + get + { + return this._luck ?? 0u; + } + set + { + this._luck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool luckSpecified + { + get + { + return this._luck != null; + } + set + { + bool flag = value == (this._luck == null); + if (flag) + { + this._luck = (value ? new uint?(this.luck) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "refresh_num", DataFormat = DataFormat.TwosComplement)] + public uint refresh_num + { + get + { + return this._refresh_num ?? 0u; + } + set + { + this._refresh_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refresh_numSpecified + { + get + { + return this._refresh_num != null; + } + set + { + bool flag = value == (this._refresh_num == null); + if (flag) + { + this._refresh_num = (value ? new uint?(this.refresh_num) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "already_ask", DataFormat = DataFormat.Default)] + public bool already_ask + { + get + { + return this._already_ask ?? false; + } + set + { + this._already_ask = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool already_askSpecified + { + get + { + return this._already_ask != null; + } + set + { + bool flag = value == (this._already_ask == null); + if (flag) + { + this._already_ask = (value ? new bool?(this.already_ask) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "already_refused", DataFormat = DataFormat.Default)] + public bool already_refused + { + get + { + return this._already_refused ?? false; + } + set + { + this._already_refused = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool already_refusedSpecified + { + get + { + return this._already_refused != null; + } + set + { + bool flag = value == (this._already_refused == null); + if (flag) + { + this._already_refused = (value ? new bool?(this.already_refused) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "already_helped", DataFormat = DataFormat.Default)] + public bool already_helped + { + get + { + return this._already_helped ?? false; + } + set + { + this._already_helped = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool already_helpedSpecified + { + get + { + return this._already_helped != null; + } + set + { + bool flag = value == (this._already_helped == null); + if (flag) + { + this._already_helped = (value ? new bool?(this.already_helped) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "is_online", DataFormat = DataFormat.Default)] + public bool is_online + { + get + { + return this._is_online ?? false; + } + set + { + this._is_online = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_onlineSpecified + { + get + { + return this._is_online != null; + } + set + { + bool flag = value == (this._is_online == null); + if (flag) + { + this._is_online = (value ? new bool?(this.is_online) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private RoleType? _profession; + + private uint? _luck; + + private uint? _refresh_num; + + private bool? _already_ask; + + private bool? _already_refused; + + private bool? _already_helped; + + private uint? _score; + + private uint? _time; + + private bool? _is_online; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializeluck() + { + return this.luckSpecified; + } + + private void Resetluck() + { + this.luckSpecified = false; + } + + private bool ShouldSerializerefresh_num() + { + return this.refresh_numSpecified; + } + + private void Resetrefresh_num() + { + this.refresh_numSpecified = false; + } + + private bool ShouldSerializealready_ask() + { + return this.already_askSpecified; + } + + private void Resetalready_ask() + { + this.already_askSpecified = false; + } + + private bool ShouldSerializealready_refused() + { + return this.already_refusedSpecified; + } + + private void Resetalready_refused() + { + this.already_refusedSpecified = false; + } + + private bool ShouldSerializealready_helped() + { + return this.already_helpedSpecified; + } + + private void Resetalready_helped() + { + this.already_helpedSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeis_online() + { + return this.is_onlineSpecified; + } + + private void Resetis_online() + { + this.is_onlineSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs.meta new file mode 100644 index 00000000..bb1e4a03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DailyTaskRefreshRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d32be6d802657e419f2327c9fc29963 +timeCreated: 1611404103 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DamageResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/DamageResult.cs new file mode 100644 index 00000000..b3bc0981 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DamageResult.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DamageResult")] + [Serializable] + public class DamageResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Result", DataFormat = DataFormat.TwosComplement)] + public uint Result + { + get + { + return this._Result ?? 0u; + } + set + { + this._Result = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ResultSpecified + { + get + { + return this._Result != null; + } + set + { + bool flag = value == (this._Result == null); + if (flag) + { + this._Result = (value ? new uint?(this.Result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "Value", DataFormat = DataFormat.TwosComplement)] + public double Value + { + get + { + return this._Value ?? 0.0; + } + set + { + this._Value = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ValueSpecified + { + get + { + return this._Value != null; + } + set + { + bool flag = value == (this._Value == null); + if (flag) + { + this._Value = (value ? new double?(this.Value) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "Flag", DataFormat = DataFormat.TwosComplement)] + public int Flag + { + get + { + return this._Flag ?? 0; + } + set + { + this._Flag = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FlagSpecified + { + get + { + return this._Flag != null; + } + set + { + bool flag = value == (this._Flag == null); + if (flag) + { + this._Flag = (value ? new int?(this.Flag) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "DamageType", DataFormat = DataFormat.TwosComplement)] + public uint DamageType + { + get + { + return this._DamageType ?? 0u; + } + set + { + this._DamageType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DamageTypeSpecified + { + get + { + return this._DamageType != null; + } + set + { + bool flag = value == (this._DamageType == null); + if (flag) + { + this._DamageType = (value ? new uint?(this.DamageType) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ElementType", DataFormat = DataFormat.TwosComplement)] + public int ElementType + { + get + { + return this._ElementType ?? 0; + } + set + { + this._ElementType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ElementTypeSpecified + { + get + { + return this._ElementType != null; + } + set + { + bool flag = value == (this._ElementType == null); + if (flag) + { + this._ElementType = (value ? new int?(this.ElementType) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "IsTargetDead", DataFormat = DataFormat.Default)] + public bool IsTargetDead + { + get + { + return this._IsTargetDead ?? false; + } + set + { + this._IsTargetDead = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IsTargetDeadSpecified + { + get + { + return this._IsTargetDead != null; + } + set + { + bool flag = value == (this._IsTargetDead == null); + if (flag) + { + this._IsTargetDead = (value ? new bool?(this.IsTargetDead) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "ComboCount", DataFormat = DataFormat.TwosComplement)] + public int ComboCount + { + get + { + return this._ComboCount ?? 0; + } + set + { + this._ComboCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ComboCountSpecified + { + get + { + return this._ComboCount != null; + } + set + { + bool flag = value == (this._ComboCount == null); + if (flag) + { + this._ComboCount = (value ? new int?(this.ComboCount) : null); + } + } + } + + private uint? _Result; + + private double? _Value; + + private int? _Flag; + + private uint? _DamageType; + + private int? _ElementType; + + private bool? _IsTargetDead; + + private int? _ComboCount; + + private IExtension extensionObject; + + private bool ShouldSerializeResult() + { + return this.ResultSpecified; + } + + private void ResetResult() + { + this.ResultSpecified = false; + } + + private bool ShouldSerializeValue() + { + return this.ValueSpecified; + } + + private void ResetValue() + { + this.ValueSpecified = false; + } + + private bool ShouldSerializeFlag() + { + return this.FlagSpecified; + } + + private void ResetFlag() + { + this.FlagSpecified = false; + } + + private bool ShouldSerializeDamageType() + { + return this.DamageTypeSpecified; + } + + private void ResetDamageType() + { + this.DamageTypeSpecified = false; + } + + private bool ShouldSerializeElementType() + { + return this.ElementTypeSpecified; + } + + private void ResetElementType() + { + this.ElementTypeSpecified = false; + } + + private bool ShouldSerializeIsTargetDead() + { + return this.IsTargetDeadSpecified; + } + + private void ResetIsTargetDead() + { + this.IsTargetDeadSpecified = false; + } + + private bool ShouldSerializeComboCount() + { + return this.ComboCountSpecified; + } + + private void ResetComboCount() + { + this.ComboCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DamageResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DamageResult.cs.meta new file mode 100644 index 00000000..96c516ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DamageResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9017ab3391471a149906e7c0d407b87e +timeCreated: 1611404137 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs new file mode 100644 index 00000000..80ef1632 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DeathInfo")] + [Serializable] + public class DeathInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Killer", DataFormat = DataFormat.TwosComplement)] + public ulong Killer + { + get + { + return this._Killer ?? 0UL; + } + set + { + this._Killer = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool KillerSpecified + { + get + { + return this._Killer != null; + } + set + { + bool flag = value == (this._Killer == null); + if (flag) + { + this._Killer = (value ? new ulong?(this.Killer) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uID", DataFormat = DataFormat.TwosComplement)] + public ulong uID + { + get + { + return this._uID ?? 0UL; + } + set + { + this._uID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uIDSpecified + { + get + { + return this._uID != null; + } + set + { + bool flag = value == (this._uID == null); + if (flag) + { + this._uID = (value ? new ulong?(this.uID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "showSlowCamera", DataFormat = DataFormat.Default)] + public bool showSlowCamera + { + get + { + return this._showSlowCamera ?? false; + } + set + { + this._showSlowCamera = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool showSlowCameraSpecified + { + get + { + return this._showSlowCamera != null; + } + set + { + bool flag = value == (this._showSlowCamera == null); + if (flag) + { + this._showSlowCamera = (value ? new bool?(this.showSlowCamera) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public ReviveType type + { + get + { + return this._type ?? ReviveType.ReviveNone; + } + set + { + this._type = new ReviveType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new ReviveType?(this.type) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "revivecount", DataFormat = DataFormat.TwosComplement)] + public uint revivecount + { + get + { + return this._revivecount ?? 0u; + } + set + { + this._revivecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool revivecountSpecified + { + get + { + return this._revivecount != null; + } + set + { + bool flag = value == (this._revivecount == null); + if (flag) + { + this._revivecount = (value ? new uint?(this.revivecount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "costrevivecount", DataFormat = DataFormat.TwosComplement)] + public uint costrevivecount + { + get + { + return this._costrevivecount ?? 0u; + } + set + { + this._costrevivecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costrevivecountSpecified + { + get + { + return this._costrevivecount != null; + } + set + { + bool flag = value == (this._costrevivecount == null); + if (flag) + { + this._costrevivecount = (value ? new uint?(this.costrevivecount) : null); + } + } + } + + private ulong? _Killer; + + private ulong? _uID; + + private bool? _showSlowCamera; + + private ReviveType? _type; + + private uint? _revivecount; + + private uint? _costrevivecount; + + private IExtension extensionObject; + + private bool ShouldSerializeKiller() + { + return this.KillerSpecified; + } + + private void ResetKiller() + { + this.KillerSpecified = false; + } + + private bool ShouldSerializeuID() + { + return this.uIDSpecified; + } + + private void ResetuID() + { + this.uIDSpecified = false; + } + + private bool ShouldSerializeshowSlowCamera() + { + return this.showSlowCameraSpecified; + } + + private void ResetshowSlowCamera() + { + this.showSlowCameraSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializerevivecount() + { + return this.revivecountSpecified; + } + + private void Resetrevivecount() + { + this.revivecountSpecified = false; + } + + private bool ShouldSerializecostrevivecount() + { + return this.costrevivecountSpecified; + } + + private void Resetcostrevivecount() + { + this.costrevivecountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs.meta new file mode 100644 index 00000000..ba9897b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DeathInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6411d3721bbbea14b893d0493af7a0ad +timeCreated: 1611403846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentArg.cs new file mode 100644 index 00000000..84d3be88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentArg.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DecomposeEquipmentArg")] + [Serializable] + public class DecomposeEquipmentArg : IExtensible + { + [ProtoMember(1, Name = "equipuniqueid", DataFormat = DataFormat.TwosComplement)] + public List equipuniqueid + { + get + { + return this._equipuniqueid; + } + } + + [ProtoMember(2, Name = "count", DataFormat = DataFormat.TwosComplement)] + public List count + { + get + { + return this._count; + } + } + + private readonly List _equipuniqueid = new List(); + + private readonly List _count = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentArg.cs.meta new file mode 100644 index 00000000..418a836f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2696b1e937b2c15469a4382328b895cb +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentRes.cs new file mode 100644 index 00000000..896c4a1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DecomposeEquipmentRes")] + [Serializable] + public class DecomposeEquipmentRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, Name = "param", DataFormat = DataFormat.FixedSize)] + public List param + { + get + { + return this._param; + } + } + + private ErrorCode? _ErrorCode; + + private readonly List _param = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentRes.cs.meta new file mode 100644 index 00000000..97da2b84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DecomposeEquipmentRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79c2bbfcd2449dc458738d0f297f7cdf +timeCreated: 1611403987 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritArg.cs new file mode 100644 index 00000000..acb3eb5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DelGuildInheritArg")] + [Serializable] + public class DelGuildInheritArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritArg.cs.meta new file mode 100644 index 00000000..276cb5c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba1d325adcc72af489d8aacb713664f9 +timeCreated: 1611404434 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritRes.cs new file mode 100644 index 00000000..6b32080a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DelGuildInheritRes")] + [Serializable] + public class DelGuildInheritRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + private ErrorCode? _errorCode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritRes.cs.meta new file mode 100644 index 00000000..213181ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DelGuildInheritRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e028c87d9c3b9ed468a6fdecb3f3aad8 +timeCreated: 1611404696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DelayInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DelayInfo.cs new file mode 100644 index 00000000..5cbbbfd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DelayInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DelayInfo")] + [Serializable] + public class DelayInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "delay", DataFormat = DataFormat.TwosComplement)] + public uint delay + { + get + { + return this._delay ?? 0u; + } + set + { + this._delay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool delaySpecified + { + get + { + return this._delay != null; + } + set + { + bool flag = value == (this._delay == null); + if (flag) + { + this._delay = (value ? new uint?(this.delay) : null); + } + } + } + + private uint? _delay; + + private IExtension extensionObject; + + private bool ShouldSerializedelay() + { + return this.delaySpecified; + } + + private void Resetdelay() + { + this.delaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DelayInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DelayInfo.cs.meta new file mode 100644 index 00000000..a4a41f83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DelayInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4b917211b531c8478bd63d0857edb21 +timeCreated: 1611404856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Designation2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/Designation2DB.cs new file mode 100644 index 00000000..81432746 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Designation2DB.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Designation2DB")] + [Serializable] + public class Designation2DB : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "coverDesignationID", DataFormat = DataFormat.TwosComplement)] + public uint coverDesignationID + { + get + { + return this._coverDesignationID ?? 0u; + } + set + { + this._coverDesignationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool coverDesignationIDSpecified + { + get + { + return this._coverDesignationID != null; + } + set + { + bool flag = value == (this._coverDesignationID == null); + if (flag) + { + this._coverDesignationID = (value ? new uint?(this.coverDesignationID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "abilityDesignationID", DataFormat = DataFormat.TwosComplement)] + public uint abilityDesignationID + { + get + { + return this._abilityDesignationID ?? 0u; + } + set + { + this._abilityDesignationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool abilityDesignationIDSpecified + { + get + { + return this._abilityDesignationID != null; + } + set + { + bool flag = value == (this._abilityDesignationID == null); + if (flag) + { + this._abilityDesignationID = (value ? new uint?(this.abilityDesignationID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "maxAbilityDesignationID", DataFormat = DataFormat.TwosComplement)] + public uint maxAbilityDesignationID + { + get + { + return this._maxAbilityDesignationID ?? 0u; + } + set + { + this._maxAbilityDesignationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxAbilityDesignationIDSpecified + { + get + { + return this._maxAbilityDesignationID != null; + } + set + { + bool flag = value == (this._maxAbilityDesignationID == null); + if (flag) + { + this._maxAbilityDesignationID = (value ? new uint?(this.maxAbilityDesignationID) : null); + } + } + } + + [ProtoMember(4, Name = "designationData", DataFormat = DataFormat.Default)] + public List designationData + { + get + { + return this._designationData; + } + } + + private uint? _coverDesignationID; + + private uint? _abilityDesignationID; + + private uint? _maxAbilityDesignationID; + + private readonly List _designationData = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializecoverDesignationID() + { + return this.coverDesignationIDSpecified; + } + + private void ResetcoverDesignationID() + { + this.coverDesignationIDSpecified = false; + } + + private bool ShouldSerializeabilityDesignationID() + { + return this.abilityDesignationIDSpecified; + } + + private void ResetabilityDesignationID() + { + this.abilityDesignationIDSpecified = false; + } + + private bool ShouldSerializemaxAbilityDesignationID() + { + return this.maxAbilityDesignationIDSpecified; + } + + private void ResetmaxAbilityDesignationID() + { + this.maxAbilityDesignationIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Designation2DB.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Designation2DB.cs.meta new file mode 100644 index 00000000..db6cd86f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Designation2DB.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db665056eebd34e4a8a7321136fdf68d +timeCreated: 1611404652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DesignationType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DesignationType.cs new file mode 100644 index 00000000..d3dc0a19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DesignationType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DesignationType")] + public enum DesignationType + { + [ProtoEnum(Name = "DESIGNATION_TYPE_COMMON", Value = 1)] + DESIGNATION_TYPE_COMMON = 1, + [ProtoEnum(Name = "DESIGNATION_TYPE_RAID", Value = 2)] + DESIGNATION_TYPE_RAID, + [ProtoEnum(Name = "DESIGNATION_TYPE_NEST", Value = 3)] + DESIGNATION_TYPE_NEST, + [ProtoEnum(Name = "DESIGNATION_TYPE_BATTLE", Value = 4)] + DESIGNATION_TYPE_BATTLE, + [ProtoEnum(Name = "DESIGNATION_TYPE_ACTIVITY", Value = 5)] + DESIGNATION_TYPE_ACTIVITY + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DesignationType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DesignationType.cs.meta new file mode 100644 index 00000000..2371b931 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DesignationType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff09ccb7ae5f448429929b0d23bbe6ee +timeCreated: 1611404944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs new file mode 100644 index 00000000..f0b9b406 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DisplayAddItemArg")] + [Serializable] + public class DisplayAddItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "add_item_id", DataFormat = DataFormat.TwosComplement)] + public uint add_item_id + { + get + { + return this._add_item_id ?? 0u; + } + set + { + this._add_item_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool add_item_idSpecified + { + get + { + return this._add_item_id != null; + } + set + { + bool flag = value == (this._add_item_id == null); + if (flag) + { + this._add_item_id = (value ? new uint?(this.add_item_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "del_item_id", DataFormat = DataFormat.TwosComplement)] + public uint del_item_id + { + get + { + return this._del_item_id ?? 0u; + } + set + { + this._del_item_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool del_item_idSpecified + { + get + { + return this._del_item_id != null; + } + set + { + bool flag = value == (this._del_item_id == null); + if (flag) + { + this._del_item_id = (value ? new uint?(this.del_item_id) : null); + } + } + } + + private uint? _add_item_id; + + private uint? _del_item_id; + + private IExtension extensionObject; + + private bool ShouldSerializeadd_item_id() + { + return this.add_item_idSpecified; + } + + private void Resetadd_item_id() + { + this.add_item_idSpecified = false; + } + + private bool ShouldSerializedel_item_id() + { + return this.del_item_idSpecified; + } + + private void Resetdel_item_id() + { + this.del_item_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs.meta new file mode 100644 index 00000000..1884caab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DisplayAddItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a59d54fb7cb91ef4f850493a8fd3a5dd +timeCreated: 1611404286 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DneRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/DneRecord.cs new file mode 100644 index 00000000..1ff53ffa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DneRecord.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DneRecord")] + [Serializable] + public class DneRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dneid", DataFormat = DataFormat.TwosComplement)] + public uint dneid + { + get + { + return this._dneid ?? 0u; + } + set + { + this._dneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dneidSpecified + { + get + { + return this._dneid != null; + } + set + { + bool flag = value == (this._dneid == null); + if (flag) + { + this._dneid = (value ? new uint?(this.dneid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _dneid; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializedneid() + { + return this.dneidSpecified; + } + + private void Resetdneid() + { + this.dneidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DneRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DneRecord.cs.meta new file mode 100644 index 00000000..9cfe4658 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DneRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ee5cf58f60b9944099fc3f94df0420c +timeCreated: 1611403512 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendArg.cs new file mode 100644 index 00000000..3e3ad640 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoAddFriendArg")] + [Serializable] + public class DoAddFriendArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public FriendOpType op + { + get + { + return this._op ?? FriendOpType.Friend_AgreeApply; + } + set + { + this._op = new FriendOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new FriendOpType?(this.op) : null); + } + } + } + + [ProtoMember(2, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + private FriendOpType? _op; + + private readonly List _roleid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendArg.cs.meta new file mode 100644 index 00000000..cb9d6105 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a57a99931191ecc4bae11fcd8a554e9c +timeCreated: 1611404286 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendRes.cs new file mode 100644 index 00000000..082b7b03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoAddFriendRes")] + [Serializable] + public class DoAddFriendRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "failedlist", DataFormat = DataFormat.TwosComplement)] + public List failedlist + { + get + { + return this._failedlist; + } + } + + private ErrorCode? _errorcode; + + private readonly List _failedlist = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendRes.cs.meta new file mode 100644 index 00000000..0a1aa909 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoAddFriendRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29ae21f24f3090c4d93764856922b51e +timeCreated: 1611403477 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneArg.cs new file mode 100644 index 00000000..9f618843 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoEnterSceneArg")] + [Serializable] + public class DoEnterSceneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + private uint? _sceneid; + + private IExtension extensionObject; + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneArg.cs.meta new file mode 100644 index 00000000..768ed8a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86b2a1b6c509f4047885afac6848fc80 +timeCreated: 1611404055 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneRes.cs new file mode 100644 index 00000000..d6e8079d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneRes.cs @@ -0,0 +1,439 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoEnterSceneRes")] + [Serializable] + public class DoEnterSceneRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "fightgroup", DataFormat = DataFormat.TwosComplement)] + public uint fightgroup + { + get + { + return this._fightgroup ?? 0u; + } + set + { + this._fightgroup = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightgroupSpecified + { + get + { + return this._fightgroup != null; + } + set + { + bool flag = value == (this._fightgroup == null); + if (flag) + { + this._fightgroup = (value ? new uint?(this.fightgroup) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "face", DataFormat = DataFormat.FixedSize)] + public float face + { + get + { + return this._face ?? 0f; + } + set + { + this._face = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool faceSpecified + { + get + { + return this._face != null; + } + set + { + bool flag = value == (this._face == null); + if (flag) + { + this._face = (value ? new float?(this.face) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "pos", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 pos + { + get + { + return this._pos; + } + set + { + this._pos = value; + } + } + + [ProtoMember(4, Name = "otherunits", DataFormat = DataFormat.Default)] + public List otherunits + { + get + { + return this._otherunits; + } + } + + [ProtoMember(5, IsRequired = false, Name = "iswatchend", DataFormat = DataFormat.Default)] + public bool iswatchend + { + get + { + return this._iswatchend ?? false; + } + set + { + this._iswatchend = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iswatchendSpecified + { + get + { + return this._iswatchend != null; + } + set + { + bool flag = value == (this._iswatchend == null); + if (flag) + { + this._iswatchend = (value ? new bool?(this.iswatchend) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "state", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookState state + { + get + { + return this._state; + } + set + { + this._state = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "is_cross", DataFormat = DataFormat.Default)] + public bool is_cross + { + get + { + return this._is_cross ?? false; + } + set + { + this._is_cross = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_crossSpecified + { + get + { + return this._is_cross != null; + } + set + { + bool flag = value == (this._is_cross == null); + if (flag) + { + this._is_cross = (value ? new bool?(this.is_cross) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "battlestamp", DataFormat = DataFormat.Default)] + public string battlestamp + { + get + { + return this._battlestamp ?? ""; + } + set + { + this._battlestamp = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool battlestampSpecified + { + get + { + return this._battlestamp != null; + } + set + { + bool flag = value == (this._battlestamp == null); + if (flag) + { + this._battlestamp = (value ? this.battlestamp : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "specialstate", DataFormat = DataFormat.TwosComplement)] + public uint specialstate + { + get + { + return this._specialstate ?? 0u; + } + set + { + this._specialstate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool specialstateSpecified + { + get + { + return this._specialstate != null; + } + set + { + bool flag = value == (this._specialstate == null); + if (flag) + { + this._specialstate = (value ? new uint?(this.specialstate) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "scenestate", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SSceneState scenestate + { + get + { + return this._scenestate; + } + set + { + this._scenestate = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "lrdata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LoginReconnectEnterSceneData lrdata + { + get + { + return this._lrdata; + } + set + { + this._lrdata = value; + } + } + + [ProtoMember(13, IsRequired = false, Name = "initface", DataFormat = DataFormat.FixedSize)] + public float initface + { + get + { + return this._initface ?? 0f; + } + set + { + this._initface = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool initfaceSpecified + { + get + { + return this._initface != null; + } + set + { + bool flag = value == (this._initface == null); + if (flag) + { + this._initface = (value ? new float?(this.initface) : null); + } + } + } + + private uint? _fightgroup; + + private float? _face; + + private Vec3 _pos = null; + + private readonly List _otherunits = new List(); + + private bool? _iswatchend; + + private ErrorCode? _errorcode; + + private OutLookState _state = null; + + private bool? _is_cross; + + private string _battlestamp; + + private uint? _specialstate; + + private SSceneState _scenestate = null; + + private LoginReconnectEnterSceneData _lrdata = null; + + private float? _initface; + + private IExtension extensionObject; + + private bool ShouldSerializefightgroup() + { + return this.fightgroupSpecified; + } + + private void Resetfightgroup() + { + this.fightgroupSpecified = false; + } + + private bool ShouldSerializeface() + { + return this.faceSpecified; + } + + private void Resetface() + { + this.faceSpecified = false; + } + + private bool ShouldSerializeiswatchend() + { + return this.iswatchendSpecified; + } + + private void Resetiswatchend() + { + this.iswatchendSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeis_cross() + { + return this.is_crossSpecified; + } + + private void Resetis_cross() + { + this.is_crossSpecified = false; + } + + private bool ShouldSerializebattlestamp() + { + return this.battlestampSpecified; + } + + private void Resetbattlestamp() + { + this.battlestampSpecified = false; + } + + private bool ShouldSerializespecialstate() + { + return this.specialstateSpecified; + } + + private void Resetspecialstate() + { + this.specialstateSpecified = false; + } + + private bool ShouldSerializeinitface() + { + return this.initfaceSpecified; + } + + private void Resetinitface() + { + this.initfaceSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneRes.cs.meta new file mode 100644 index 00000000..77c4bf70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoEnterSceneRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae3fbfec5aa294b44bb82c65c2e0eb29 +timeCreated: 1611404338 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemArg.cs new file mode 100644 index 00000000..45d621ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemArg.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DonateMemberItemArg")] + [Serializable] + public class DonateMemberItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(3, Name = "itemuid", DataFormat = DataFormat.TwosComplement)] + public List itemuid + { + get + { + return this._itemuid; + } + } + + private uint? _id; + + private uint? _count; + + private readonly List _itemuid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemArg.cs.meta new file mode 100644 index 00000000..6b786a27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db97206118ee24346ad5fdd80592b5f9 +timeCreated: 1611404654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs new file mode 100644 index 00000000..29d9ed97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DonateMemberItemRes")] + [Serializable] + public class DonateMemberItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "dailycount", DataFormat = DataFormat.TwosComplement)] + public uint dailycount + { + get + { + return this._dailycount ?? 0u; + } + set + { + this._dailycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dailycountSpecified + { + get + { + return this._dailycount != null; + } + set + { + bool flag = value == (this._dailycount == null); + if (flag) + { + this._dailycount = (value ? new uint?(this.dailycount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totalcount", DataFormat = DataFormat.TwosComplement)] + public uint totalcount + { + get + { + return this._totalcount ?? 0u; + } + set + { + this._totalcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalcountSpecified + { + get + { + return this._totalcount != null; + } + set + { + bool flag = value == (this._totalcount == null); + if (flag) + { + this._totalcount = (value ? new uint?(this.totalcount) : null); + } + } + } + + [ProtoMember(4, Name = "rankitem", DataFormat = DataFormat.Default)] + public List rankitem + { + get + { + return this._rankitem; + } + } + + [ProtoMember(5, IsRequired = false, Name = "getcount", DataFormat = DataFormat.TwosComplement)] + public uint getcount + { + get + { + return this._getcount ?? 0u; + } + set + { + this._getcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getcountSpecified + { + get + { + return this._getcount != null; + } + set + { + bool flag = value == (this._getcount == null); + if (flag) + { + this._getcount = (value ? new uint?(this.getcount) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _dailycount; + + private uint? _totalcount; + + private readonly List _rankitem = new List(); + + private uint? _getcount; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializedailycount() + { + return this.dailycountSpecified; + } + + private void Resetdailycount() + { + this.dailycountSpecified = false; + } + + private bool ShouldSerializetotalcount() + { + return this.totalcountSpecified; + } + + private void Resettotalcount() + { + this.totalcountSpecified = false; + } + + private bool ShouldSerializegetcount() + { + return this.getcountSpecified; + } + + private void Resetgetcount() + { + this.getcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs.meta new file mode 100644 index 00000000..192c1e70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DonateMemberItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dce78e75b99b84e4fbf213e869c509c3 +timeCreated: 1611404681 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs new file mode 100644 index 00000000..b4759d71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoodadInfo")] + [Serializable] + public class DoodadInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "waveid", DataFormat = DataFormat.TwosComplement)] + public int waveid + { + get + { + return this._waveid ?? 0; + } + set + { + this._waveid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool waveidSpecified + { + get + { + return this._waveid != null; + } + set + { + bool flag = value == (this._waveid == null); + if (flag) + { + this._waveid = (value ? new int?(this.waveid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private int? _waveid; + + private int? _type; + + private uint? _id; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializewaveid() + { + return this.waveidSpecified; + } + + private void Resetwaveid() + { + this.waveidSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs.meta new file mode 100644 index 00000000..4fc5701a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2dc35dae6c902f44b8d7fa59fde21ceb +timeCreated: 1611403507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs new file mode 100644 index 00000000..f5377b5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoodadItemAddNtf")] + [Serializable] + public class DoodadItemAddNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _itemid; + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs.meta new file mode 100644 index 00000000..8e28d4f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAddNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f6dc0e832181874399a15c8c86cc1da +timeCreated: 1611403516 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs new file mode 100644 index 00000000..82ed04c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoodadItemAllSkill")] + [Serializable] + public class DoodadItemAllSkill : IExtensible + { + [ProtoMember(1, Name = "skills", DataFormat = DataFormat.Default)] + public List skills + { + get + { + return this._skills; + } + } + + private readonly List _skills = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs.meta new file mode 100644 index 00000000..13476eac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemAllSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b14af1820aa4b3b4492090ed4b1dc945 +timeCreated: 1611404355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemSkill.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemSkill.cs new file mode 100644 index 00000000..bd0a68da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemSkill.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoodadItemSkill")] + [Serializable] + public class DoodadItemSkill : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _index; + + private uint? _itemid; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemSkill.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemSkill.cs.meta new file mode 100644 index 00000000..f8e3249c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eee9f5aa4d1a41442b2168e721c91bba +timeCreated: 1611404800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs new file mode 100644 index 00000000..c6d08415 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoodadItemUseNtf")] + [Serializable] + public class DoodadItemUseNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "buffid", DataFormat = DataFormat.TwosComplement)] + public uint buffid + { + get + { + return this._buffid ?? 0u; + } + set + { + this._buffid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buffidSpecified + { + get + { + return this._buffid != null; + } + set + { + bool flag = value == (this._buffid == null); + if (flag) + { + this._buffid = (value ? new uint?(this.buffid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private uint? _buffid; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializebuffid() + { + return this.buffidSpecified; + } + + private void Resetbuffid() + { + this.buffidSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs.meta new file mode 100644 index 00000000..e276f71b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoodadItemUseNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1454378cef7dd024289fc2f84cccbeec +timeCreated: 1611403256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoorState.cs b/Client/Assets/Scripts/XMainClient/KKSG/DoorState.cs new file mode 100644 index 00000000..5201451b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoorState.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DoorState")] + [Serializable] + public class DoorState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isOn", DataFormat = DataFormat.Default)] + public bool isOn + { + get + { + return this._isOn ?? false; + } + set + { + this._isOn = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isOnSpecified + { + get + { + return this._isOn != null; + } + set + { + bool flag = value == (this._isOn == null); + if (flag) + { + this._isOn = (value ? new bool?(this.isOn) : null); + } + } + } + + private string _name; + + private bool? _isOn; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeisOn() + { + return this.isOnSpecified; + } + + private void ResetisOn() + { + this.isOnSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DoorState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DoorState.cs.meta new file mode 100644 index 00000000..01c3c16c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DoorState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa0882873ba682045a87340abcf3b7af +timeCreated: 1611404901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonExpResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonExpResult.cs new file mode 100644 index 00000000..ba91b9a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonExpResult.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonExpResult")] + [Serializable] + public class DragonExpResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "iswin", DataFormat = DataFormat.Default)] + public bool iswin + { + get + { + return this._iswin ?? false; + } + set + { + this._iswin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iswinSpecified + { + get + { + return this._iswin != null; + } + set + { + bool flag = value == (this._iswin == null); + if (flag) + { + this._iswin = (value ? new bool?(this.iswin) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "bosshurthp", DataFormat = DataFormat.TwosComplement)] + public int bosshurthp + { + get + { + return this._bosshurthp ?? 0; + } + set + { + this._bosshurthp = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bosshurthpSpecified + { + get + { + return this._bosshurthp != null; + } + set + { + bool flag = value == (this._bosshurthp == null); + if (flag) + { + this._bosshurthp = (value ? new int?(this.bosshurthp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "bosslefthp", DataFormat = DataFormat.TwosComplement)] + public int bosslefthp + { + get + { + return this._bosslefthp ?? 0; + } + set + { + this._bosslefthp = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bosslefthpSpecified + { + get + { + return this._bosslefthp != null; + } + set + { + bool flag = value == (this._bosslefthp == null); + if (flag) + { + this._bosslefthp = (value ? new int?(this.bosslefthp) : null); + } + } + } + + [ProtoMember(4, Name = "joinreward", DataFormat = DataFormat.Default)] + public List joinreward + { + get + { + return this._joinreward; + } + } + + [ProtoMember(5, Name = "winreward", DataFormat = DataFormat.Default)] + public List winreward + { + get + { + return this._winreward; + } + } + + [ProtoMember(6, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + private bool? _iswin; + + private int? _bosshurthp; + + private int? _bosslefthp; + + private readonly List _joinreward = new List(); + + private readonly List _winreward = new List(); + + private uint? _sceneid; + + private IExtension extensionObject; + + private bool ShouldSerializeiswin() + { + return this.iswinSpecified; + } + + private void Resetiswin() + { + this.iswinSpecified = false; + } + + private bool ShouldSerializebosshurthp() + { + return this.bosshurthpSpecified; + } + + private void Resetbosshurthp() + { + this.bosshurthpSpecified = false; + } + + private bool ShouldSerializebosslefthp() + { + return this.bosslefthpSpecified; + } + + private void Resetbosslefthp() + { + this.bosslefthpSpecified = false; + } + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonExpResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonExpResult.cs.meta new file mode 100644 index 00000000..cd9c0547 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonExpResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d72507cfb15de9429f4da67c36724e8 +timeCreated: 1611403805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupDB.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupDB.cs new file mode 100644 index 00000000..fe416870 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupDB.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGroupDB")] + [Serializable] + public class DragonGroupDB : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "record", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DragonGroupRecordS2C record + { + get + { + return this._record; + } + set + { + this._record = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolelist", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DragonGroupRoleListS2C rolelist + { + get + { + return this._rolelist; + } + set + { + this._rolelist = value; + } + } + + private DragonGroupRecordS2C _record = null; + + private DragonGroupRoleListS2C _rolelist = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupDB.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupDB.cs.meta new file mode 100644 index 00000000..710137fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupDB.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 731a412fa12729446a9c84fd797673b1 +timeCreated: 1611403939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordC2S.cs new file mode 100644 index 00000000..2b8ee40f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordC2S.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGroupRecordC2S")] + [Serializable] + public class DragonGroupRecordC2S : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordC2S.cs.meta new file mode 100644 index 00000000..bd93ca4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74201dfcbd3a8d044a09fa68556a2a14 +timeCreated: 1611403942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordInfoList.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordInfoList.cs new file mode 100644 index 00000000..064d810b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordInfoList.cs @@ -0,0 +1,461 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGroupRecordInfoList")] + [Serializable] + public class DragonGroupRecordInfoList : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "stageid", DataFormat = DataFormat.TwosComplement)] + public uint stageid + { + get + { + return this._stageid ?? 0u; + } + set + { + this._stageid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageidSpecified + { + get + { + return this._stageid != null; + } + set + { + bool flag = value == (this._stageid == null); + if (flag) + { + this._stageid = (value ? new uint?(this.stageid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "costtime", DataFormat = DataFormat.TwosComplement)] + public uint costtime + { + get + { + return this._costtime ?? 0u; + } + set + { + this._costtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costtimeSpecified + { + get + { + return this._costtime != null; + } + set + { + bool flag = value == (this._costtime == null); + if (flag) + { + this._costtime = (value ? new uint?(this.costtime) : null); + } + } + } + + [ProtoMember(4, Name = "roleinfo", DataFormat = DataFormat.Default)] + public List roleinfo + { + get + { + return this._roleinfo; + } + } + + [ProtoMember(5, IsRequired = false, Name = "iswin", DataFormat = DataFormat.Default)] + public bool iswin + { + get + { + return this._iswin ?? false; + } + set + { + this._iswin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iswinSpecified + { + get + { + return this._iswin != null; + } + set + { + bool flag = value == (this._iswin == null); + if (flag) + { + this._iswin = (value ? new bool?(this.iswin) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "isFirstPass", DataFormat = DataFormat.Default)] + public bool isFirstPass + { + get + { + return this._isFirstPass ?? false; + } + set + { + this._isFirstPass = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFirstPassSpecified + { + get + { + return this._isFirstPass != null; + } + set + { + bool flag = value == (this._isFirstPass == null); + if (flag) + { + this._isFirstPass = (value ? new bool?(this.isFirstPass) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "isServerFirstPass", DataFormat = DataFormat.Default)] + public bool isServerFirstPass + { + get + { + return this._isServerFirstPass ?? false; + } + set + { + this._isServerFirstPass = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isServerFirstPassSpecified + { + get + { + return this._isServerFirstPass != null; + } + set + { + bool flag = value == (this._isServerFirstPass == null); + if (flag) + { + this._isServerFirstPass = (value ? new bool?(this.isServerFirstPass) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "commendnum", DataFormat = DataFormat.TwosComplement)] + public uint commendnum + { + get + { + return this._commendnum ?? 0u; + } + set + { + this._commendnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool commendnumSpecified + { + get + { + return this._commendnum != null; + } + set + { + bool flag = value == (this._commendnum == null); + if (flag) + { + this._commendnum = (value ? new uint?(this.commendnum) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "watchnum", DataFormat = DataFormat.TwosComplement)] + public uint watchnum + { + get + { + return this._watchnum ?? 0u; + } + set + { + this._watchnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool watchnumSpecified + { + get + { + return this._watchnum != null; + } + set + { + bool flag = value == (this._watchnum == null); + if (flag) + { + this._watchnum = (value ? new uint?(this.watchnum) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "ismostcommendnum", DataFormat = DataFormat.Default)] + public bool ismostcommendnum + { + get + { + return this._ismostcommendnum ?? false; + } + set + { + this._ismostcommendnum = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismostcommendnumSpecified + { + get + { + return this._ismostcommendnum != null; + } + set + { + bool flag = value == (this._ismostcommendnum == null); + if (flag) + { + this._ismostcommendnum = (value ? new bool?(this.ismostcommendnum) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "ismostwatchnum", DataFormat = DataFormat.Default)] + public bool ismostwatchnum + { + get + { + return this._ismostwatchnum ?? false; + } + set + { + this._ismostwatchnum = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismostwatchnumSpecified + { + get + { + return this._ismostwatchnum != null; + } + set + { + bool flag = value == (this._ismostwatchnum == null); + if (flag) + { + this._ismostwatchnum = (value ? new bool?(this.ismostwatchnum) : null); + } + } + } + + private uint? _stageid; + + private uint? _time; + + private uint? _costtime; + + private readonly List _roleinfo = new List(); + + private bool? _iswin; + + private bool? _isFirstPass; + + private bool? _isServerFirstPass; + + private uint? _commendnum; + + private uint? _watchnum; + + private bool? _ismostcommendnum; + + private bool? _ismostwatchnum; + + private IExtension extensionObject; + + private bool ShouldSerializestageid() + { + return this.stageidSpecified; + } + + private void Resetstageid() + { + this.stageidSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializecosttime() + { + return this.costtimeSpecified; + } + + private void Resetcosttime() + { + this.costtimeSpecified = false; + } + + private bool ShouldSerializeiswin() + { + return this.iswinSpecified; + } + + private void Resetiswin() + { + this.iswinSpecified = false; + } + + private bool ShouldSerializeisFirstPass() + { + return this.isFirstPassSpecified; + } + + private void ResetisFirstPass() + { + this.isFirstPassSpecified = false; + } + + private bool ShouldSerializeisServerFirstPass() + { + return this.isServerFirstPassSpecified; + } + + private void ResetisServerFirstPass() + { + this.isServerFirstPassSpecified = false; + } + + private bool ShouldSerializecommendnum() + { + return this.commendnumSpecified; + } + + private void Resetcommendnum() + { + this.commendnumSpecified = false; + } + + private bool ShouldSerializewatchnum() + { + return this.watchnumSpecified; + } + + private void Resetwatchnum() + { + this.watchnumSpecified = false; + } + + private bool ShouldSerializeismostcommendnum() + { + return this.ismostcommendnumSpecified; + } + + private void Resetismostcommendnum() + { + this.ismostcommendnumSpecified = false; + } + + private bool ShouldSerializeismostwatchnum() + { + return this.ismostwatchnumSpecified; + } + + private void Resetismostwatchnum() + { + this.ismostwatchnumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordInfoList.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordInfoList.cs.meta new file mode 100644 index 00000000..62cfa808 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordInfoList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9159e29095d81064f9fe582583872a13 +timeCreated: 1611404142 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordS2C.cs new file mode 100644 index 00000000..32b9675c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordS2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGroupRecordS2C")] + [Serializable] + public class DragonGroupRecordS2C : IExtensible + { + [ProtoMember(1, Name = "recordlist", DataFormat = DataFormat.Default)] + public List recordlist + { + get + { + return this._recordlist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _recordlist = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordS2C.cs.meta new file mode 100644 index 00000000..ac093cf4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRecordS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5aa5de6324bc8a64493605b722eb3819 +timeCreated: 1611403791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleInfo.cs new file mode 100644 index 00000000..a4c0d041 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleInfo.cs @@ -0,0 +1,508 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGroupRoleInfo")] + [Serializable] + public class DragonGroupRoleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "title", DataFormat = DataFormat.TwosComplement)] + public uint title + { + get + { + return this._title ?? 0u; + } + set + { + this._title = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? new uint?(this.title) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "fighting", DataFormat = DataFormat.TwosComplement)] + public uint fighting + { + get + { + return this._fighting ?? 0u; + } + set + { + this._fighting = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightingSpecified + { + get + { + return this._fighting != null; + } + set + { + bool flag = value == (this._fighting == null); + if (flag) + { + this._fighting = (value ? new uint?(this.fighting) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "guild", DataFormat = DataFormat.Default)] + public string guild + { + get + { + return this._guild ?? ""; + } + set + { + this._guild = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildSpecified + { + get + { + return this._guild != null; + } + set + { + bool flag = value == (this._guild == null); + if (flag) + { + this._guild = (value ? this.guild : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public uint uid + { + get + { + return this._uid ?? 0u; + } + set + { + this._uid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new uint?(this.uid) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "stageID", DataFormat = DataFormat.TwosComplement)] + public uint stageID + { + get + { + return this._stageID ?? 0u; + } + set + { + this._stageID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageIDSpecified + { + get + { + return this._stageID != null; + } + set + { + bool flag = value == (this._stageID == null); + if (flag) + { + this._stageID = (value ? new uint?(this.stageID) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "stageTime", DataFormat = DataFormat.TwosComplement)] + public uint stageTime + { + get + { + return this._stageTime ?? 0u; + } + set + { + this._stageTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageTimeSpecified + { + get + { + return this._stageTime != null; + } + set + { + bool flag = value == (this._stageTime == null); + if (flag) + { + this._stageTime = (value ? new uint?(this.stageTime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "stageCount", DataFormat = DataFormat.TwosComplement)] + public uint stageCount + { + get + { + return this._stageCount ?? 0u; + } + set + { + this._stageCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageCountSpecified + { + get + { + return this._stageCount != null; + } + set + { + bool flag = value == (this._stageCount == null); + if (flag) + { + this._stageCount = (value ? new uint?(this.stageCount) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "pre", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayConsume pre + { + get + { + return this._pre; + } + set + { + this._pre = value; + } + } + + private ulong? _roleid; + + private string _rolename; + + private uint? _profession; + + private uint? _title; + + private uint? _level; + + private uint? _fighting; + + private string _guild; + + private uint? _uid; + + private uint? _stageID; + + private uint? _stageTime; + + private uint? _stageCount; + + private PayConsume _pre = null; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializefighting() + { + return this.fightingSpecified; + } + + private void Resetfighting() + { + this.fightingSpecified = false; + } + + private bool ShouldSerializeguild() + { + return this.guildSpecified; + } + + private void Resetguild() + { + this.guildSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializestageID() + { + return this.stageIDSpecified; + } + + private void ResetstageID() + { + this.stageIDSpecified = false; + } + + private bool ShouldSerializestageTime() + { + return this.stageTimeSpecified; + } + + private void ResetstageTime() + { + this.stageTimeSpecified = false; + } + + private bool ShouldSerializestageCount() + { + return this.stageCountSpecified; + } + + private void ResetstageCount() + { + this.stageCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleInfo.cs.meta new file mode 100644 index 00000000..e156b6cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12c3c71864effa848a27a130a0850b27 +timeCreated: 1611403243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListC2S.cs new file mode 100644 index 00000000..aa0a047d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListC2S.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGroupRoleListC2S")] + [Serializable] + public class DragonGroupRoleListC2S : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListC2S.cs.meta new file mode 100644 index 00000000..b5c35154 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c239835be138f94298f1232427c2390 +timeCreated: 1611403690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListS2C.cs new file mode 100644 index 00000000..777be4b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListS2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGroupRoleListS2C")] + [Serializable] + public class DragonGroupRoleListS2C : IExtensible + { + [ProtoMember(1, Name = "rolelist", DataFormat = DataFormat.Default)] + public List rolelist + { + get + { + return this._rolelist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _rolelist = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListS2C.cs.meta new file mode 100644 index 00000000..36289c85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGroupRoleListS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4ec09f077ab62c49aa99bf0c3cbf0b3 +timeCreated: 1611404875 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalArg.cs new file mode 100644 index 00000000..9b45f391 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildApprovalArg")] + [Serializable] + public class DragonGuildApprovalArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private ulong? _roleid; + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalArg.cs.meta new file mode 100644 index 00000000..e3006ed9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80d75a3946e91954fabffd2b1c46ffc4 +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalRes.cs new file mode 100644 index 00000000..11cf979e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildApprovalRes")] + [Serializable] + public class DragonGuildApprovalRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalRes.cs.meta new file mode 100644 index 00000000..231cda26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildApprovalRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8501c101f8dc05c45a1aad4d63760e55 +timeCreated: 1611404050 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindReq.cs new file mode 100644 index 00000000..0862f3d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildBindReq")] + [Serializable] + public class DragonGuildBindReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindReq.cs.meta new file mode 100644 index 00000000..903c48a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e18e2f1cf371ba4f82b79782bb53db7 +timeCreated: 1611404240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindRes.cs new file mode 100644 index 00000000..d76cead3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildBindRes")] + [Serializable] + public class DragonGuildBindRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "group_name", DataFormat = DataFormat.Default)] + public string group_name + { + get + { + return this._group_name ?? ""; + } + set + { + this._group_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group_nameSpecified + { + get + { + return this._group_name != null; + } + set + { + bool flag = value == (this._group_name == null); + if (flag) + { + this._group_name = (value ? this.group_name : null); + } + } + } + + private ErrorCode? _result; + + private string _group_name; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializegroup_name() + { + return this.group_nameSpecified; + } + + private void Resetgroup_name() + { + this.group_nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindRes.cs.meta new file mode 100644 index 00000000..1212402d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildBindRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9dcef6c2147648a4e94ee6ba0d5d04f7 +timeCreated: 1611404238 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildInfo.cs new file mode 100644 index 00000000..9a2d1972 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildInfo.cs @@ -0,0 +1,664 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildInfo")] + [Serializable] + public class DragonGuildInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leaderId", DataFormat = DataFormat.TwosComplement)] + public ulong leaderId + { + get + { + return this._leaderId ?? 0UL; + } + set + { + this._leaderId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderIdSpecified + { + get + { + return this._leaderId != null; + } + set + { + bool flag = value == (this._leaderId == null); + if (flag) + { + this._leaderId = (value ? new ulong?(this.leaderId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "leadername", DataFormat = DataFormat.Default)] + public string leadername + { + get + { + return this._leadername ?? ""; + } + set + { + this._leadername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leadernameSpecified + { + get + { + return this._leadername != null; + } + set + { + bool flag = value == (this._leadername == null); + if (flag) + { + this._leadername = (value ? this.leadername : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "membercounts", DataFormat = DataFormat.TwosComplement)] + public uint membercounts + { + get + { + return this._membercounts ?? 0u; + } + set + { + this._membercounts = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool membercountsSpecified + { + get + { + return this._membercounts != null; + } + set + { + bool flag = value == (this._membercounts == null); + if (flag) + { + this._membercounts = (value ? new uint?(this.membercounts) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "isSendApplication", DataFormat = DataFormat.Default)] + public bool isSendApplication + { + get + { + return this._isSendApplication ?? false; + } + set + { + this._isSendApplication = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isSendApplicationSpecified + { + get + { + return this._isSendApplication != null; + } + set + { + bool flag = value == (this._isSendApplication == null); + if (flag) + { + this._isSendApplication = (value ? new bool?(this.isSendApplication) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public ulong id + { + get + { + return this._id ?? 0UL; + } + set + { + this._id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new ulong?(this.id) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "recruitppt", DataFormat = DataFormat.TwosComplement)] + public uint recruitppt + { + get + { + return this._recruitppt ?? 0u; + } + set + { + this._recruitppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool recruitpptSpecified + { + get + { + return this._recruitppt != null; + } + set + { + bool flag = value == (this._recruitppt == null); + if (flag) + { + this._recruitppt = (value ? new uint?(this.recruitppt) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "needapproval", DataFormat = DataFormat.Default)] + public bool needapproval + { + get + { + return this._needapproval ?? false; + } + set + { + this._needapproval = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needapprovalSpecified + { + get + { + return this._needapproval != null; + } + set + { + bool flag = value == (this._needapproval == null); + if (flag) + { + this._needapproval = (value ? new bool?(this.needapproval) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "capacity", DataFormat = DataFormat.TwosComplement)] + public uint capacity + { + get + { + return this._capacity ?? 0u; + } + set + { + this._capacity = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool capacitySpecified + { + get + { + return this._capacity != null; + } + set + { + bool flag = value == (this._capacity == null); + if (flag) + { + this._capacity = (value ? new uint?(this.capacity) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "announcement", DataFormat = DataFormat.Default)] + public string announcement + { + get + { + return this._announcement ?? ""; + } + set + { + this._announcement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool announcementSpecified + { + get + { + return this._announcement != null; + } + set + { + bool flag = value == (this._announcement == null); + if (flag) + { + this._announcement = (value ? this.announcement : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "guildExp", DataFormat = DataFormat.TwosComplement)] + public uint guildExp + { + get + { + return this._guildExp ?? 0u; + } + set + { + this._guildExp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildExpSpecified + { + get + { + return this._guildExp != null; + } + set + { + bool flag = value == (this._guildExp == null); + if (flag) + { + this._guildExp = (value ? new uint?(this.guildExp) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "totalPPT", DataFormat = DataFormat.TwosComplement)] + public ulong totalPPT + { + get + { + return this._totalPPT ?? 0UL; + } + set + { + this._totalPPT = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalPPTSpecified + { + get + { + return this._totalPPT != null; + } + set + { + bool flag = value == (this._totalPPT == null); + if (flag) + { + this._totalPPT = (value ? new ulong?(this.totalPPT) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "sceneId", DataFormat = DataFormat.TwosComplement)] + public uint sceneId + { + get + { + return this._sceneId ?? 0u; + } + set + { + this._sceneId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIdSpecified + { + get + { + return this._sceneId != null; + } + set + { + bool flag = value == (this._sceneId == null); + if (flag) + { + this._sceneId = (value ? new uint?(this.sceneId) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "sceneCnt", DataFormat = DataFormat.TwosComplement)] + public uint sceneCnt + { + get + { + return this._sceneCnt ?? 0u; + } + set + { + this._sceneCnt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneCntSpecified + { + get + { + return this._sceneCnt != null; + } + set + { + bool flag = value == (this._sceneCnt == null); + if (flag) + { + this._sceneCnt = (value ? new uint?(this.sceneCnt) : null); + } + } + } + + private string _name; + + private ulong? _leaderId; + + private string _leadername; + + private uint? _level; + + private uint? _membercounts; + + private bool? _isSendApplication; + + private ulong? _id; + + private uint? _recruitppt; + + private bool? _needapproval; + + private uint? _capacity; + + private string _announcement; + + private uint? _guildExp; + + private ulong? _totalPPT; + + private uint? _sceneId; + + private uint? _sceneCnt; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeleaderId() + { + return this.leaderIdSpecified; + } + + private void ResetleaderId() + { + this.leaderIdSpecified = false; + } + + private bool ShouldSerializeleadername() + { + return this.leadernameSpecified; + } + + private void Resetleadername() + { + this.leadernameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializemembercounts() + { + return this.membercountsSpecified; + } + + private void Resetmembercounts() + { + this.membercountsSpecified = false; + } + + private bool ShouldSerializeisSendApplication() + { + return this.isSendApplicationSpecified; + } + + private void ResetisSendApplication() + { + this.isSendApplicationSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializerecruitppt() + { + return this.recruitpptSpecified; + } + + private void Resetrecruitppt() + { + this.recruitpptSpecified = false; + } + + private bool ShouldSerializeneedapproval() + { + return this.needapprovalSpecified; + } + + private void Resetneedapproval() + { + this.needapprovalSpecified = false; + } + + private bool ShouldSerializecapacity() + { + return this.capacitySpecified; + } + + private void Resetcapacity() + { + this.capacitySpecified = false; + } + + private bool ShouldSerializeannouncement() + { + return this.announcementSpecified; + } + + private void Resetannouncement() + { + this.announcementSpecified = false; + } + + private bool ShouldSerializeguildExp() + { + return this.guildExpSpecified; + } + + private void ResetguildExp() + { + this.guildExpSpecified = false; + } + + private bool ShouldSerializetotalPPT() + { + return this.totalPPTSpecified; + } + + private void ResettotalPPT() + { + this.totalPPTSpecified = false; + } + + private bool ShouldSerializesceneId() + { + return this.sceneIdSpecified; + } + + private void ResetsceneId() + { + this.sceneIdSpecified = false; + } + + private bool ShouldSerializesceneCnt() + { + return this.sceneCntSpecified; + } + + private void ResetsceneCnt() + { + this.sceneCntSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildInfo.cs.meta new file mode 100644 index 00000000..d26002f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30388ea8d31959b419a0ee427704e9a9 +timeCreated: 1611403520 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupArg.cs new file mode 100644 index 00000000..b5b0438e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildJoinBindGroupArg")] + [Serializable] + public class DragonGuildJoinBindGroupArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupArg.cs.meta new file mode 100644 index 00000000..568b2e8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39bd96e21b9ad6f46ad9d4792c75e415 +timeCreated: 1611403593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupRes.cs new file mode 100644 index 00000000..96d51de9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildJoinBindGroupRes")] + [Serializable] + public class DragonGuildJoinBindGroupRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupRes.cs.meta new file mode 100644 index 00000000..64ff9aa1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildJoinBindGroupRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72eb13e790ac7a9499c25b8c48d26307 +timeCreated: 1611403939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberArg.cs new file mode 100644 index 00000000..b151ffdb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildMemberArg")] + [Serializable] + public class DragonGuildMemberArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildId", DataFormat = DataFormat.TwosComplement)] + public ulong guildId + { + get + { + return this._guildId ?? 0UL; + } + set + { + this._guildId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildIdSpecified + { + get + { + return this._guildId != null; + } + set + { + bool flag = value == (this._guildId == null); + if (flag) + { + this._guildId = (value ? new ulong?(this.guildId) : null); + } + } + } + + private ulong? _guildId; + + private IExtension extensionObject; + + private bool ShouldSerializeguildId() + { + return this.guildIdSpecified; + } + + private void ResetguildId() + { + this.guildIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberArg.cs.meta new file mode 100644 index 00000000..737a8988 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9b1de1c06cf5254880deea0e748da8d +timeCreated: 1611404644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberRes.cs new file mode 100644 index 00000000..3e44b0aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildMemberRes")] + [Serializable] + public class DragonGuildMemberRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + private ErrorCode? _result; + + private readonly List _members = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberRes.cs.meta new file mode 100644 index 00000000..13dfaee2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMemberRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30ff222b3d2e3374bbb1d0ae5c1449b1 +timeCreated: 1611403523 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMembersInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMembersInfo.cs new file mode 100644 index 00000000..da6fbcb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMembersInfo.cs @@ -0,0 +1,621 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildMembersInfo")] + [Serializable] + public class DragonGuildMembersInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public int position + { + get + { + return this._position ?? 0; + } + set + { + this._position = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new int?(this.position) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "contribute", DataFormat = DataFormat.TwosComplement)] + public uint contribute + { + get + { + return this._contribute ?? 0u; + } + set + { + this._contribute = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contributeSpecified + { + get + { + return this._contribute != null; + } + set + { + bool flag = value == (this._contribute == null); + if (flag) + { + this._contribute = (value ? new uint?(this.contribute) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "flag", DataFormat = DataFormat.TwosComplement)] + public uint flag + { + get + { + return this._flag ?? 0u; + } + set + { + this._flag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool flagSpecified + { + get + { + return this._flag != null; + } + set + { + bool flag = value == (this._flag == null); + if (flag) + { + this._flag = (value ? new uint?(this.flag) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public RoleType profession + { + get + { + return this._profession ?? RoleType.Role_INVALID; + } + set + { + this._profession = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new RoleType?(this.profession) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "lastlogin", DataFormat = DataFormat.TwosComplement)] + public uint lastlogin + { + get + { + return this._lastlogin ?? 0u; + } + set + { + this._lastlogin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastloginSpecified + { + get + { + return this._lastlogin != null; + } + set + { + bool flag = value == (this._lastlogin == null); + if (flag) + { + this._lastlogin = (value ? new uint?(this.lastlogin) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "vip", DataFormat = DataFormat.TwosComplement)] + public uint vip + { + get + { + return this._vip ?? 0u; + } + set + { + this._vip = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipSpecified + { + get + { + return this._vip != null; + } + set + { + bool flag = value == (this._vip == null); + if (flag) + { + this._vip = (value ? new uint?(this.vip) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "isonline", DataFormat = DataFormat.Default)] + public bool isonline + { + get + { + return this._isonline ?? false; + } + set + { + this._isonline = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isonlineSpecified + { + get + { + return this._isonline != null; + } + set + { + bool flag = value == (this._isonline == null); + if (flag) + { + this._isonline = (value ? new bool?(this.isonline) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "activity", DataFormat = DataFormat.TwosComplement)] + public uint activity + { + get + { + return this._activity ?? 0u; + } + set + { + this._activity = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activitySpecified + { + get + { + return this._activity != null; + } + set + { + bool flag = value == (this._activity == null); + if (flag) + { + this._activity = (value ? new uint?(this.activity) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "title", DataFormat = DataFormat.TwosComplement)] + public uint title + { + get + { + return this._title ?? 0u; + } + set + { + this._title = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? new uint?(this.title) : null); + } + } + } + + private string _name; + + private ulong? _roleid; + + private int? _position; + + private uint? _contribute; + + private uint? _ppt; + + private uint? _flag; + + private uint? _level; + + private RoleType? _profession; + + private uint? _lastlogin; + + private uint? _vip; + + private bool? _isonline; + + private uint? _activity; + + private uint? _paymemberid; + + private uint? _title; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializecontribute() + { + return this.contributeSpecified; + } + + private void Resetcontribute() + { + this.contributeSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializeflag() + { + return this.flagSpecified; + } + + private void Resetflag() + { + this.flagSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializelastlogin() + { + return this.lastloginSpecified; + } + + private void Resetlastlogin() + { + this.lastloginSpecified = false; + } + + private bool ShouldSerializevip() + { + return this.vipSpecified; + } + + private void Resetvip() + { + this.vipSpecified = false; + } + + private bool ShouldSerializeisonline() + { + return this.isonlineSpecified; + } + + private void Resetisonline() + { + this.isonlineSpecified = false; + } + + private bool ShouldSerializeactivity() + { + return this.activitySpecified; + } + + private void Resetactivity() + { + this.activitySpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMembersInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMembersInfo.cs.meta new file mode 100644 index 00000000..02f1cb14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildMembersInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bfb0ac17d02f664ba15e775c97758c2 +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs new file mode 100644 index 00000000..c8bd5a30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildNameNtf")] + [Serializable] + public class DragonGuildNameNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs.meta new file mode 100644 index 00000000..df178904 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildNameNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb8c06025ed28e3468d639031ba15c52 +timeCreated: 1611404931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRecordData.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRecordData.cs new file mode 100644 index 00000000..abc90ee1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRecordData.cs @@ -0,0 +1,300 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildRecordData")] + [Serializable] + public class DragonGuildRecordData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dragonguildid", DataFormat = DataFormat.TwosComplement)] + public ulong dragonguildid + { + get + { + return this._dragonguildid ?? 0UL; + } + set + { + this._dragonguildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonguildidSpecified + { + get + { + return this._dragonguildid != null; + } + set + { + bool flag = value == (this._dragonguildid == null); + if (flag) + { + this._dragonguildid = (value ? new ulong?(this.dragonguildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "taked_chest", DataFormat = DataFormat.TwosComplement)] + public uint taked_chest + { + get + { + return this._taked_chest ?? 0u; + } + set + { + this._taked_chest = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taked_chestSpecified + { + get + { + return this._taked_chest != null; + } + set + { + bool flag = value == (this._taked_chest == null); + if (flag) + { + this._taked_chest = (value ? new uint?(this.taked_chest) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "chest_redpoint", DataFormat = DataFormat.Default)] + public bool chest_redpoint + { + get + { + return this._chest_redpoint ?? false; + } + set + { + this._chest_redpoint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chest_redpointSpecified + { + get + { + return this._chest_redpoint != null; + } + set + { + bool flag = value == (this._chest_redpoint == null); + if (flag) + { + this._chest_redpoint = (value ? new bool?(this.chest_redpoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "last_update_time", DataFormat = DataFormat.TwosComplement)] + public uint last_update_time + { + get + { + return this._last_update_time ?? 0u; + } + set + { + this._last_update_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_update_timeSpecified + { + get + { + return this._last_update_time != null; + } + set + { + bool flag = value == (this._last_update_time == null); + if (flag) + { + this._last_update_time = (value ? new uint?(this.last_update_time) : null); + } + } + } + + [ProtoMember(5, Name = "tasks", DataFormat = DataFormat.Default)] + public List tasks + { + get + { + return this._tasks; + } + } + + [ProtoMember(6, Name = "achivements", DataFormat = DataFormat.Default)] + public List achivements + { + get + { + return this._achivements; + } + } + + [ProtoMember(7, IsRequired = false, Name = "ReceiveCount", DataFormat = DataFormat.TwosComplement)] + public uint ReceiveCount + { + get + { + return this._ReceiveCount ?? 0u; + } + set + { + this._ReceiveCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ReceiveCountSpecified + { + get + { + return this._ReceiveCount != null; + } + set + { + bool flag = value == (this._ReceiveCount == null); + if (flag) + { + this._ReceiveCount = (value ? new uint?(this.ReceiveCount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "taskRefreshTime", DataFormat = DataFormat.TwosComplement)] + public uint taskRefreshTime + { + get + { + return this._taskRefreshTime ?? 0u; + } + set + { + this._taskRefreshTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskRefreshTimeSpecified + { + get + { + return this._taskRefreshTime != null; + } + set + { + bool flag = value == (this._taskRefreshTime == null); + if (flag) + { + this._taskRefreshTime = (value ? new uint?(this.taskRefreshTime) : null); + } + } + } + + private ulong? _dragonguildid; + + private uint? _taked_chest; + + private bool? _chest_redpoint; + + private uint? _last_update_time; + + private readonly List _tasks = new List(); + + private readonly List _achivements = new List(); + + private uint? _ReceiveCount; + + private uint? _taskRefreshTime; + + private IExtension extensionObject; + + private bool ShouldSerializedragonguildid() + { + return this.dragonguildidSpecified; + } + + private void Resetdragonguildid() + { + this.dragonguildidSpecified = false; + } + + private bool ShouldSerializetaked_chest() + { + return this.taked_chestSpecified; + } + + private void Resettaked_chest() + { + this.taked_chestSpecified = false; + } + + private bool ShouldSerializechest_redpoint() + { + return this.chest_redpointSpecified; + } + + private void Resetchest_redpoint() + { + this.chest_redpointSpecified = false; + } + + private bool ShouldSerializelast_update_time() + { + return this.last_update_timeSpecified; + } + + private void Resetlast_update_time() + { + this.last_update_timeSpecified = false; + } + + private bool ShouldSerializeReceiveCount() + { + return this.ReceiveCountSpecified; + } + + private void ResetReceiveCount() + { + this.ReceiveCountSpecified = false; + } + + private bool ShouldSerializetaskRefreshTime() + { + return this.taskRefreshTimeSpecified; + } + + private void ResettaskRefreshTime() + { + this.taskRefreshTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRecordData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRecordData.cs.meta new file mode 100644 index 00000000..78d552e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRecordData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2e4e48877ef90f468a50f7d92528fe0 +timeCreated: 1611404387 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRoleTaskItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRoleTaskItem.cs new file mode 100644 index 00000000..a0f7a549 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRoleTaskItem.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildRoleTaskItem")] + [Serializable] + public class DragonGuildRoleTaskItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "taskid", DataFormat = DataFormat.TwosComplement)] + public uint taskid + { + get + { + return this._taskid ?? 0u; + } + set + { + this._taskid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskidSpecified + { + get + { + return this._taskid != null; + } + set + { + bool flag = value == (this._taskid == null); + if (flag) + { + this._taskid = (value ? new uint?(this.taskid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "received", DataFormat = DataFormat.Default)] + public bool received + { + get + { + return this._received ?? false; + } + set + { + this._received = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool receivedSpecified + { + get + { + return this._received != null; + } + set + { + bool flag = value == (this._received == null); + if (flag) + { + this._received = (value ? new bool?(this.received) : null); + } + } + } + + private uint? _taskid; + + private bool? _received; + + private IExtension extensionObject; + + private bool ShouldSerializetaskid() + { + return this.taskidSpecified; + } + + private void Resettaskid() + { + this.taskidSpecified = false; + } + + private bool ShouldSerializereceived() + { + return this.receivedSpecified; + } + + private void Resetreceived() + { + this.receivedSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRoleTaskItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRoleTaskItem.cs.meta new file mode 100644 index 00000000..7d77421b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildRoleTaskItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4fed168122418c42994d032bdb24b1c +timeCreated: 1611404394 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs new file mode 100644 index 00000000..581bbbf2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildSettingChanged")] + [Serializable] + public class DragonGuildSettingChanged : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "recuitPPT", DataFormat = DataFormat.TwosComplement)] + public uint recuitPPT + { + get + { + return this._recuitPPT ?? 0u; + } + set + { + this._recuitPPT = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool recuitPPTSpecified + { + get + { + return this._recuitPPT != null; + } + set + { + bool flag = value == (this._recuitPPT == null); + if (flag) + { + this._recuitPPT = (value ? new uint?(this.recuitPPT) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "needApproval", DataFormat = DataFormat.TwosComplement)] + public uint needApproval + { + get + { + return this._needApproval ?? 0u; + } + set + { + this._needApproval = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needApprovalSpecified + { + get + { + return this._needApproval != null; + } + set + { + bool flag = value == (this._needApproval == null); + if (flag) + { + this._needApproval = (value ? new uint?(this.needApproval) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "annoucement", DataFormat = DataFormat.Default)] + public string annoucement + { + get + { + return this._annoucement ?? ""; + } + set + { + this._annoucement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool annoucementSpecified + { + get + { + return this._annoucement != null; + } + set + { + bool flag = value == (this._annoucement == null); + if (flag) + { + this._annoucement = (value ? this.annoucement : null); + } + } + } + + private uint? _recuitPPT; + + private uint? _needApproval; + + private string _annoucement; + + private IExtension extensionObject; + + private bool ShouldSerializerecuitPPT() + { + return this.recuitPPTSpecified; + } + + private void ResetrecuitPPT() + { + this.recuitPPTSpecified = false; + } + + private bool ShouldSerializeneedApproval() + { + return this.needApprovalSpecified; + } + + private void ResetneedApproval() + { + this.needApprovalSpecified = false; + } + + private bool ShouldSerializeannoucement() + { + return this.annoucementSpecified; + } + + private void Resetannoucement() + { + this.annoucementSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs.meta new file mode 100644 index 00000000..6138f531 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSettingChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2a9718e4a1ba6947ac7f61c52e4f486 +timeCreated: 1611404844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopItemClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopItemClient.cs new file mode 100644 index 00000000..b46cbcea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopItemClient.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildShopItemClient")] + [Serializable] + public class DragonGuildShopItemClient : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "buy_count", DataFormat = DataFormat.TwosComplement)] + public uint buy_count + { + get + { + return this._buy_count ?? 0u; + } + set + { + this._buy_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buy_countSpecified + { + get + { + return this._buy_count != null; + } + set + { + bool flag = value == (this._buy_count == null); + if (flag) + { + this._buy_count = (value ? new uint?(this.buy_count) : null); + } + } + } + + private uint? _id; + + private uint? _itemid; + + private uint? _buy_count; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializebuy_count() + { + return this.buy_countSpecified; + } + + private void Resetbuy_count() + { + this.buy_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopItemClient.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopItemClient.cs.meta new file mode 100644 index 00000000..15734839 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopItemClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e97bad7d310e28e4ea859b16374994f7 +timeCreated: 1611404756 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopRecordItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopRecordItem.cs new file mode 100644 index 00000000..980876a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopRecordItem.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildShopRecordItem")] + [Serializable] + public class DragonGuildShopRecordItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "titleId", DataFormat = DataFormat.TwosComplement)] + public uint titleId + { + get + { + return this._titleId ?? 0u; + } + set + { + this._titleId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleIdSpecified + { + get + { + return this._titleId != null; + } + set + { + bool flag = value == (this._titleId == null); + if (flag) + { + this._titleId = (value ? new uint?(this.titleId) : null); + } + } + } + + private ulong? _roleid; + + private uint? _itemid; + + private uint? _itemcount; + + private uint? _time; + + private string _name; + + private uint? _titleId; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetitleId() + { + return this.titleIdSpecified; + } + + private void ResettitleId() + { + this.titleIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopRecordItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopRecordItem.cs.meta new file mode 100644 index 00000000..6a98fab0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildShopRecordItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7193e20b5c73efe4ab2f972a307d6775 +timeCreated: 1611403935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSortType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSortType.cs new file mode 100644 index 00000000..bd10e208 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSortType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildSortType")] + public enum DragonGuildSortType + { + [ProtoEnum(Name = "DragonGuildSortByLevel", Value = 1)] + DragonGuildSortByLevel = 1, + [ProtoEnum(Name = "DragonGuildSortByMemberCount", Value = 2)] + DragonGuildSortByMemberCount, + [ProtoEnum(Name = "DragongGuildSortByTotalPPT", Value = 3)] + DragongGuildSortByTotalPPT, + [ProtoEnum(Name = "DragonGuildSortBySceneID", Value = 4)] + DragonGuildSortBySceneID, + [ProtoEnum(Name = "DragonGuildSortByName", Value = 5)] + DragonGuildSortByName, + [ProtoEnum(Name = "DragonGuildSortByLeaderName", Value = 6)] + DragonGuildSortByLeaderName + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSortType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSortType.cs.meta new file mode 100644 index 00000000..7c32122b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildSortType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebafc50ee1b43b149aab118de582b7d0 +timeCreated: 1611404784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskConditionType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskConditionType.cs new file mode 100644 index 00000000..93d51e9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskConditionType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildTaskConditionType")] + public enum DragonGuildTaskConditionType + { + [ProtoEnum(Name = "TASK_PASS_SCENE", Value = 1)] + TASK_PASS_SCENE = 1, + [ProtoEnum(Name = "TASK_PASS_NODIE", Value = 2)] + TASK_PASS_NODIE, + [ProtoEnum(Name = "TASK_TIME_SPAN", Value = 3)] + TASK_TIME_SPAN, + [ProtoEnum(Name = "TASK_PASS_PARTNER_COUNT", Value = 4)] + TASK_PASS_PARTNER_COUNT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskConditionType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskConditionType.cs.meta new file mode 100644 index 00000000..925cb4ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskConditionType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f25ea5d978f45854e8d7e78fd5bad31c +timeCreated: 1611404842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskInfo.cs new file mode 100644 index 00000000..39e07e8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildTaskInfo")] + [Serializable] + public class DragonGuildTaskInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "taskID", DataFormat = DataFormat.TwosComplement)] + public uint taskID + { + get + { + return this._taskID ?? 0u; + } + set + { + this._taskID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskIDSpecified + { + get + { + return this._taskID != null; + } + set + { + bool flag = value == (this._taskID == null); + if (flag) + { + this._taskID = (value ? new uint?(this.taskID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "finishCount", DataFormat = DataFormat.TwosComplement)] + public uint finishCount + { + get + { + return this._finishCount ?? 0u; + } + set + { + this._finishCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool finishCountSpecified + { + get + { + return this._finishCount != null; + } + set + { + bool flag = value == (this._finishCount == null); + if (flag) + { + this._finishCount = (value ? new uint?(this.finishCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "receiveCount", DataFormat = DataFormat.TwosComplement)] + public uint receiveCount + { + get + { + return this._receiveCount ?? 0u; + } + set + { + this._receiveCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool receiveCountSpecified + { + get + { + return this._receiveCount != null; + } + set + { + bool flag = value == (this._receiveCount == null); + if (flag) + { + this._receiveCount = (value ? new uint?(this.receiveCount) : null); + } + } + } + + private uint? _taskID; + + private uint? _finishCount; + + private uint? _receiveCount; + + private IExtension extensionObject; + + private bool ShouldSerializetaskID() + { + return this.taskIDSpecified; + } + + private void ResettaskID() + { + this.taskIDSpecified = false; + } + + private bool ShouldSerializefinishCount() + { + return this.finishCountSpecified; + } + + private void ResetfinishCount() + { + this.finishCountSpecified = false; + } + + private bool ShouldSerializereceiveCount() + { + return this.receiveCountSpecified; + } + + private void ResetreceiveCount() + { + this.receiveCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskInfo.cs.meta new file mode 100644 index 00000000..3d386c8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39c4aebfd0eb0e34180673e3871d9472 +timeCreated: 1611403593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskType.cs new file mode 100644 index 00000000..10e3114a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildTaskType")] + public enum DragonGuildTaskType + { + [ProtoEnum(Name = "TASK_NORMAL", Value = 1)] + TASK_NORMAL = 1, + [ProtoEnum(Name = "TASK_ACHIVEMENT", Value = 2)] + TASK_ACHIVEMENT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskType.cs.meta new file mode 100644 index 00000000..4123f623 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildTaskType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8796bb62bb103c9429f1462072574dc3 +timeCreated: 1611404080 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupArg.cs new file mode 100644 index 00000000..18ad0d1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildUnBindGroupArg")] + [Serializable] + public class DragonGuildUnBindGroupArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupArg.cs.meta new file mode 100644 index 00000000..cdfe5b30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e05a4c1564402d47a47799ecf1b39bb +timeCreated: 1611404106 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupRes.cs new file mode 100644 index 00000000..e7f51464 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildUnBindGroupRes")] + [Serializable] + public class DragonGuildUnBindGroupRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupRes.cs.meta new file mode 100644 index 00000000..4397d476 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUnBindGroupRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9af9e51c7da48f1449e37f0ff3e148e5 +timeCreated: 1611404203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUpdateType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUpdateType.cs new file mode 100644 index 00000000..c2d38776 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUpdateType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonGuildUpdateType")] + public enum DragonGuildUpdateType + { + [ProtoEnum(Name = "DUType_AddMember", Value = 1)] + DUType_AddMember = 1, + [ProtoEnum(Name = "DUType_LeaveMember", Value = 2)] + DUType_LeaveMember, + [ProtoEnum(Name = "DUType_Dissmiss", Value = 3)] + DUType_Dissmiss, + [ProtoEnum(Name = "DUType_ShopRefresh", Value = 4)] + DUType_ShopRefresh, + [ProtoEnum(Name = "DUType_Level", Value = 5)] + DUType_Level + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUpdateType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUpdateType.cs.meta new file mode 100644 index 00000000..a0f7f678 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonGuildUpdateType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62d73560964682f41b161c108cca0a08 +timeCreated: 1611403842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonInfo2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonInfo2Client.cs new file mode 100644 index 00000000..fd00d214 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonInfo2Client.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonInfo2Client")] + [Serializable] + public class DragonInfo2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dragonType", DataFormat = DataFormat.TwosComplement)] + public int dragonType + { + get + { + return this._dragonType ?? 0; + } + set + { + this._dragonType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonTypeSpecified + { + get + { + return this._dragonType != null; + } + set + { + bool flag = value == (this._dragonType == null); + if (flag) + { + this._dragonType = (value ? new int?(this.dragonType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hardLevel", DataFormat = DataFormat.TwosComplement)] + public int hardLevel + { + get + { + return this._hardLevel ?? 0; + } + set + { + this._hardLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hardLevelSpecified + { + get + { + return this._hardLevel != null; + } + set + { + bool flag = value == (this._hardLevel == null); + if (flag) + { + this._hardLevel = (value ? new int?(this.hardLevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "curFloor", DataFormat = DataFormat.TwosComplement)] + public int curFloor + { + get + { + return this._curFloor ?? 0; + } + set + { + this._curFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curFloorSpecified + { + get + { + return this._curFloor != null; + } + set + { + bool flag = value == (this._curFloor == null); + if (flag) + { + this._curFloor = (value ? new int?(this.curFloor) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "refreshTimes", DataFormat = DataFormat.TwosComplement)] + public int refreshTimes + { + get + { + return this._refreshTimes ?? 0; + } + set + { + this._refreshTimes = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshTimesSpecified + { + get + { + return this._refreshTimes != null; + } + set + { + bool flag = value == (this._refreshTimes == null); + if (flag) + { + this._refreshTimes = (value ? new int?(this.refreshTimes) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "weakType", DataFormat = DataFormat.TwosComplement)] + public DragonWeakType weakType + { + get + { + return this._weakType ?? DragonWeakType.DragonWeakType_Null; + } + set + { + this._weakType = new DragonWeakType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weakTypeSpecified + { + get + { + return this._weakType != null; + } + set + { + bool flag = value == (this._weakType == null); + if (flag) + { + this._weakType = (value ? new DragonWeakType?(this.weakType) : null); + } + } + } + + private int? _dragonType; + + private int? _hardLevel; + + private int? _curFloor; + + private int? _refreshTimes; + + private DragonWeakType? _weakType; + + private IExtension extensionObject; + + private bool ShouldSerializedragonType() + { + return this.dragonTypeSpecified; + } + + private void ResetdragonType() + { + this.dragonTypeSpecified = false; + } + + private bool ShouldSerializehardLevel() + { + return this.hardLevelSpecified; + } + + private void ResethardLevel() + { + this.hardLevelSpecified = false; + } + + private bool ShouldSerializecurFloor() + { + return this.curFloorSpecified; + } + + private void ResetcurFloor() + { + this.curFloorSpecified = false; + } + + private bool ShouldSerializerefreshTimes() + { + return this.refreshTimesSpecified; + } + + private void ResetrefreshTimes() + { + this.refreshTimesSpecified = false; + } + + private bool ShouldSerializeweakType() + { + return this.weakTypeSpecified; + } + + private void ResetweakType() + { + this.weakTypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonInfo2Client.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonInfo2Client.cs.meta new file mode 100644 index 00000000..f0027b66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonInfo2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2cf8fc90d5706a48a16408cf50ff17a +timeCreated: 1611404258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord.cs new file mode 100644 index 00000000..591f8299 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonRecord")] + [Serializable] + public class DragonRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dragonType", DataFormat = DataFormat.TwosComplement)] + public int dragonType + { + get + { + return this._dragonType ?? 0; + } + set + { + this._dragonType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonTypeSpecified + { + get + { + return this._dragonType != null; + } + set + { + bool flag = value == (this._dragonType == null); + if (flag) + { + this._dragonType = (value ? new int?(this.dragonType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hardLevel", DataFormat = DataFormat.TwosComplement)] + public int hardLevel + { + get + { + return this._hardLevel ?? 0; + } + set + { + this._hardLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hardLevelSpecified + { + get + { + return this._hardLevel != null; + } + set + { + bool flag = value == (this._hardLevel == null); + if (flag) + { + this._hardLevel = (value ? new int?(this.hardLevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "curFloor", DataFormat = DataFormat.TwosComplement)] + public int curFloor + { + get + { + return this._curFloor ?? 0; + } + set + { + this._curFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curFloorSpecified + { + get + { + return this._curFloor != null; + } + set + { + bool flag = value == (this._curFloor == null); + if (flag) + { + this._curFloor = (value ? new int?(this.curFloor) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public int updateTime + { + get + { + return this._updateTime ?? 0; + } + set + { + this._updateTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new int?(this.updateTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "dragonDiamondBoxTimes", DataFormat = DataFormat.TwosComplement)] + public int dragonDiamondBoxTimes + { + get + { + return this._dragonDiamondBoxTimes ?? 0; + } + set + { + this._dragonDiamondBoxTimes = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonDiamondBoxTimesSpecified + { + get + { + return this._dragonDiamondBoxTimes != null; + } + set + { + bool flag = value == (this._dragonDiamondBoxTimes == null); + if (flag) + { + this._dragonDiamondBoxTimes = (value ? new int?(this.dragonDiamondBoxTimes) : null); + } + } + } + + private int? _dragonType; + + private int? _hardLevel; + + private int? _curFloor; + + private int? _updateTime; + + private int? _dragonDiamondBoxTimes; + + private IExtension extensionObject; + + private bool ShouldSerializedragonType() + { + return this.dragonTypeSpecified; + } + + private void ResetdragonType() + { + this.dragonTypeSpecified = false; + } + + private bool ShouldSerializehardLevel() + { + return this.hardLevelSpecified; + } + + private void ResethardLevel() + { + this.hardLevelSpecified = false; + } + + private bool ShouldSerializecurFloor() + { + return this.curFloorSpecified; + } + + private void ResetcurFloor() + { + this.curFloorSpecified = false; + } + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + private bool ShouldSerializedragonDiamondBoxTimes() + { + return this.dragonDiamondBoxTimesSpecified; + } + + private void ResetdragonDiamondBoxTimes() + { + this.dragonDiamondBoxTimesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord.cs.meta new file mode 100644 index 00000000..52dffdb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1aef381e0fc610345a19b3f414a70c97 +timeCreated: 1611403312 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord2DB.cs new file mode 100644 index 00000000..2e6f99df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord2DB.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonRecord2DB")] + [Serializable] + public class DragonRecord2DB : IExtensible + { + [ProtoMember(1, Name = "record", DataFormat = DataFormat.Default)] + public List record + { + get + { + return this._record; + } + } + + [ProtoMember(2, IsRequired = false, Name = "updateDay", DataFormat = DataFormat.TwosComplement)] + public int updateDay + { + get + { + return this._updateDay ?? 0; + } + set + { + this._updateDay = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateDaySpecified + { + get + { + return this._updateDay != null; + } + set + { + bool flag = value == (this._updateDay == null); + if (flag) + { + this._updateDay = (value ? new int?(this.updateDay) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "updateHardDragonDay", DataFormat = DataFormat.TwosComplement)] + public int updateHardDragonDay + { + get + { + return this._updateHardDragonDay ?? 0; + } + set + { + this._updateHardDragonDay = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateHardDragonDaySpecified + { + get + { + return this._updateHardDragonDay != null; + } + set + { + bool flag = value == (this._updateHardDragonDay == null); + if (flag) + { + this._updateHardDragonDay = (value ? new int?(this.updateHardDragonDay) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "updateSmallDragonDay", DataFormat = DataFormat.TwosComplement)] + public int updateSmallDragonDay + { + get + { + return this._updateSmallDragonDay ?? 0; + } + set + { + this._updateSmallDragonDay = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateSmallDragonDaySpecified + { + get + { + return this._updateSmallDragonDay != null; + } + set + { + bool flag = value == (this._updateSmallDragonDay == null); + if (flag) + { + this._updateSmallDragonDay = (value ? new int?(this.updateSmallDragonDay) : null); + } + } + } + + private readonly List _record = new List(); + + private int? _updateDay; + + private int? _updateHardDragonDay; + + private int? _updateSmallDragonDay; + + private IExtension extensionObject; + + private bool ShouldSerializeupdateDay() + { + return this.updateDaySpecified; + } + + private void ResetupdateDay() + { + this.updateDaySpecified = false; + } + + private bool ShouldSerializeupdateHardDragonDay() + { + return this.updateHardDragonDaySpecified; + } + + private void ResetupdateHardDragonDay() + { + this.updateHardDragonDaySpecified = false; + } + + private bool ShouldSerializeupdateSmallDragonDay() + { + return this.updateSmallDragonDaySpecified; + } + + private void ResetupdateSmallDragonDay() + { + this.updateSmallDragonDaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord2DB.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord2DB.cs.meta new file mode 100644 index 00000000..463dcb3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonRecord2DB.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 905fe7c5feb5b1e4292b14c8575f2b1c +timeCreated: 1611404138 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonWeakType.cs b/Client/Assets/Scripts/XMainClient/KKSG/DragonWeakType.cs new file mode 100644 index 00000000..3e20a46b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonWeakType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DragonWeakType")] + public enum DragonWeakType + { + [ProtoEnum(Name = "DragonWeakType_Null", Value = 1)] + DragonWeakType_Null = 1, + [ProtoEnum(Name = "DragonWeakType_Pass", Value = 2)] + DragonWeakType_Pass, + [ProtoEnum(Name = "DragonWeakType_NotPass", Value = 3)] + DragonWeakType_NotPass, + [ProtoEnum(Name = "DragonWeakType_Max", Value = 4)] + DragonWeakType_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DragonWeakType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DragonWeakType.cs.meta new file mode 100644 index 00000000..dce1df92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DragonWeakType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b74e0e89095ed345997e5ad9135c521 +timeCreated: 1611404095 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryArg.cs new file mode 100644 index 00000000..e6e7dcdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DrawLotteryArg")] + [Serializable] + public class DrawLotteryArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryArg.cs.meta new file mode 100644 index 00000000..80b5299a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78fd7de24d994fa40b08a32c69403657 +timeCreated: 1611403983 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryRes.cs new file mode 100644 index 00000000..d504ae3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "DrawLotteryRes")] + [Serializable] + public class DrawLotteryRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "Items", DataFormat = DataFormat.Default)] + public List Items + { + get + { + return this._Items; + } + } + + [ProtoMember(3, IsRequired = false, Name = "nextgoodcount", DataFormat = DataFormat.TwosComplement)] + public uint nextgoodcount + { + get + { + return this._nextgoodcount ?? 0u; + } + set + { + this._nextgoodcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nextgoodcountSpecified + { + get + { + return this._nextgoodcount != null; + } + set + { + bool flag = value == (this._nextgoodcount == null); + if (flag) + { + this._nextgoodcount = (value ? new uint?(this.nextgoodcount) : null); + } + } + } + + [ProtoMember(4, Name = "spriteppt", DataFormat = DataFormat.TwosComplement)] + public List spriteppt + { + get + { + return this._spriteppt; + } + } + + private ErrorCode? _errorcode; + + private readonly List _Items = new List(); + + private uint? _nextgoodcount; + + private readonly List _spriteppt = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializenextgoodcount() + { + return this.nextgoodcountSpecified; + } + + private void Resetnextgoodcount() + { + this.nextgoodcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryRes.cs.meta new file mode 100644 index 00000000..d79707e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/DrawLotteryRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c038b0df9ee09b43a087b5fee9b91c3 +timeCreated: 1611403893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EMentorMsgOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/EMentorMsgOpType.cs new file mode 100644 index 00000000..14152f0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EMentorMsgOpType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EMentorMsgOpType")] + public enum EMentorMsgOpType + { + [ProtoEnum(Name = "EMentorMsgOp_Get", Value = 1)] + EMentorMsgOp_Get = 1, + [ProtoEnum(Name = "EMentorMsgOpType_Clear", Value = 2)] + EMentorMsgOpType_Clear, + [ProtoEnum(Name = "EMentorMsgOpType_Agree", Value = 3)] + EMentorMsgOpType_Agree, + [ProtoEnum(Name = "EMentorMsgOpType_Reject", Value = 4)] + EMentorMsgOpType_Reject, + [ProtoEnum(Name = "EMentorMsgOpType_Max", Value = 5)] + EMentorMsgOpType_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EMentorMsgOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EMentorMsgOpType.cs.meta new file mode 100644 index 00000000..f7896413 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EMentorMsgOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 924670dcfad33c94bbdc8af2af41a8d1 +timeCreated: 1611404147 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EMentorRelationPosition.cs b/Client/Assets/Scripts/XMainClient/KKSG/EMentorRelationPosition.cs new file mode 100644 index 00000000..7132d261 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EMentorRelationPosition.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EMentorRelationPosition")] + public enum EMentorRelationPosition + { + [ProtoEnum(Name = "EMentorPosMaster", Value = 1)] + EMentorPosMaster = 1, + [ProtoEnum(Name = "EMentorPosStudent", Value = 2)] + EMentorPosStudent, + [ProtoEnum(Name = "EMentorPosMax", Value = 3)] + EMentorPosMax + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EMentorRelationPosition.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EMentorRelationPosition.cs.meta new file mode 100644 index 00000000..8a0d0b84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EMentorRelationPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 064f3270e4b46ac41a58c434af0e2dec +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EMentorTaskStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/EMentorTaskStatus.cs new file mode 100644 index 00000000..99e0dd7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EMentorTaskStatus.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EMentorTaskStatus")] + public enum EMentorTaskStatus + { + [ProtoEnum(Name = "EMentorTask_UnComplete", Value = 1)] + EMentorTask_UnComplete = 1, + [ProtoEnum(Name = "EMentorTask_CanReport", Value = 2)] + EMentorTask_CanReport, + [ProtoEnum(Name = "EMentorTask_AlreadyReport", Value = 3)] + EMentorTask_AlreadyReport, + [ProtoEnum(Name = "EMentorTask_ConfirmReport", Value = 4)] + EMentorTask_ConfirmReport, + [ProtoEnum(Name = "EMentorTask_CompleteBefore", Value = 5)] + EMentorTask_CompleteBefore, + [ProtoEnum(Name = "EMentorTask_Max", Value = 6)] + EMentorTask_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EMentorTaskStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EMentorTaskStatus.cs.meta new file mode 100644 index 00000000..1720fc1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EMentorTaskStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21b607f013730254f9a081dd99269226 +timeCreated: 1611403415 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EffectData.cs b/Client/Assets/Scripts/XMainClient/KKSG/EffectData.cs new file mode 100644 index 00000000..25883ef8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EffectData.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EffectData")] + [Serializable] + public class EffectData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "effectID", DataFormat = DataFormat.TwosComplement)] + public uint effectID + { + get + { + return this._effectID ?? 0u; + } + set + { + this._effectID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool effectIDSpecified + { + get + { + return this._effectID != null; + } + set + { + bool flag = value == (this._effectID == null); + if (flag) + { + this._effectID = (value ? new uint?(this.effectID) : null); + } + } + } + + [ProtoMember(2, Name = "multiParams", DataFormat = DataFormat.Default)] + public List multiParams + { + get + { + return this._multiParams; + } + } + + [ProtoMember(3, IsRequired = false, Name = "isWork", DataFormat = DataFormat.Default)] + public bool isWork + { + get + { + return this._isWork ?? false; + } + set + { + this._isWork = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isWorkSpecified + { + get + { + return this._isWork != null; + } + set + { + bool flag = value == (this._isWork == null); + if (flag) + { + this._isWork = (value ? new bool?(this.isWork) : null); + } + } + } + + private uint? _effectID; + + private readonly List _multiParams = new List(); + + private bool? _isWork; + + private IExtension extensionObject; + + private bool ShouldSerializeeffectID() + { + return this.effectIDSpecified; + } + + private void ReseteffectID() + { + this.effectIDSpecified = false; + } + + private bool ShouldSerializeisWork() + { + return this.isWorkSpecified; + } + + private void ResetisWork() + { + this.isWorkSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EffectData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EffectData.cs.meta new file mode 100644 index 00000000..7df610d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EffectData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77acf336f1b1e3e44b19de1ef98a9555 +timeCreated: 1611403955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EffectMultiParams.cs b/Client/Assets/Scripts/XMainClient/KKSG/EffectMultiParams.cs new file mode 100644 index 00000000..88abf015 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EffectMultiParams.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EffectMultiParams")] + [Serializable] + public class EffectMultiParams : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "IDType", DataFormat = DataFormat.TwosComplement)] + public uint IDType + { + get + { + return this._IDType ?? 0u; + } + set + { + this._IDType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IDTypeSpecified + { + get + { + return this._IDType != null; + } + set + { + bool flag = value == (this._IDType == null); + if (flag) + { + this._IDType = (value ? new uint?(this.IDType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ID", DataFormat = DataFormat.TwosComplement)] + public uint ID + { + get + { + return this._ID ?? 0u; + } + set + { + this._ID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IDSpecified + { + get + { + return this._ID != null; + } + set + { + bool flag = value == (this._ID == null); + if (flag) + { + this._ID = (value ? new uint?(this.ID) : null); + } + } + } + + [ProtoMember(3, Name = "effectParams", DataFormat = DataFormat.TwosComplement)] + public List effectParams + { + get + { + return this._effectParams; + } + } + + private uint? _IDType; + + private uint? _ID; + + private readonly List _effectParams = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeIDType() + { + return this.IDTypeSpecified; + } + + private void ResetIDType() + { + this.IDTypeSpecified = false; + } + + private bool ShouldSerializeID() + { + return this.IDSpecified; + } + + private void ResetID() + { + this.IDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EffectMultiParams.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EffectMultiParams.cs.meta new file mode 100644 index 00000000..0daa5a91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EffectMultiParams.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08a5af4fbe5bba049b5c6ac3fe77413e +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs new file mode 100644 index 00000000..a7bd97bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EmblemLevelUpArg")] + [Serializable] + public class EmblemLevelUpArg : IExtensible + { + [ProtoMember(1, Name = "EmblemUniqueId", DataFormat = DataFormat.TwosComplement)] + public List EmblemUniqueId + { + get + { + return this._EmblemUniqueId; + } + } + + private readonly List _EmblemUniqueId = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs.meta new file mode 100644 index 00000000..180dfe32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69e6bd053113f254e886188ef3d51c26 +timeCreated: 1611403887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs new file mode 100644 index 00000000..44182f14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EmblemLevelUpRes")] + [Serializable] + public class EmblemLevelUpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "islevelup", DataFormat = DataFormat.Default)] + public bool islevelup + { + get + { + return this._islevelup ?? false; + } + set + { + this._islevelup = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool islevelupSpecified + { + get + { + return this._islevelup != null; + } + set + { + bool flag = value == (this._islevelup == null); + if (flag) + { + this._islevelup = (value ? new bool?(this.islevelup) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private bool? _islevelup; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeislevelup() + { + return this.islevelupSpecified; + } + + private void Resetislevelup() + { + this.islevelupSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs.meta new file mode 100644 index 00000000..7b7478f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EmblemLevelUpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bd41ccf16396da4ab1c9ee811a91395 +timeCreated: 1611403688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EmblemSlotType.cs b/Client/Assets/Scripts/XMainClient/KKSG/EmblemSlotType.cs new file mode 100644 index 00000000..2f0a5c5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EmblemSlotType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EmblemSlotType")] + public enum EmblemSlotType + { + [ProtoEnum(Name = "EmblemSlotType_None", Value = 0)] + EmblemSlotType_None, + [ProtoEnum(Name = "EmblemSlotType_Attri", Value = 1)] + EmblemSlotType_Attri, + [ProtoEnum(Name = "EmblemSlotType_Skill", Value = 2)] + EmblemSlotType_Skill, + [ProtoEnum(Name = "EmblemSlotType_ExtraSkill", Value = 3)] + EmblemSlotType_ExtraSkill + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EmblemSlotType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EmblemSlotType.cs.meta new file mode 100644 index 00000000..8b6a928b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EmblemSlotType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d59ee433a6fba4a438f609f7000e8587 +timeCreated: 1611404628 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EmptyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/EmptyData.cs new file mode 100644 index 00000000..9088c2e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EmptyData.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EmptyData")] + [Serializable] + public class EmptyData : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EmptyData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EmptyData.cs.meta new file mode 100644 index 00000000..3189d9c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EmptyData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07dd714086894ac4a800444cf93513ad +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeArg.cs new file mode 100644 index 00000000..84aaa77b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnchantActiveAttributeArg")] + [Serializable] + public class EnchantActiveAttributeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "attrID", DataFormat = DataFormat.TwosComplement)] + public uint attrID + { + get + { + return this._attrID ?? 0u; + } + set + { + this._attrID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool attrIDSpecified + { + get + { + return this._attrID != null; + } + set + { + bool flag = value == (this._attrID == null); + if (flag) + { + this._attrID = (value ? new uint?(this.attrID) : null); + } + } + } + + private ulong? _uid; + + private uint? _attrID; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeattrID() + { + return this.attrIDSpecified; + } + + private void ResetattrID() + { + this.attrIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeArg.cs.meta new file mode 100644 index 00000000..f751fb51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1aefaf3644b793940a9ecf432489848b +timeCreated: 1611403313 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeRes.cs new file mode 100644 index 00000000..4df79f7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnchantActiveAttributeRes")] + [Serializable] + public class EnchantActiveAttributeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeRes.cs.meta new file mode 100644 index 00000000..b0f54bae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantActiveAttributeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15dad54fb44c6c14ab04a9702dfed1fe +timeCreated: 1611403265 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipArg.cs new file mode 100644 index 00000000..ec7d6e0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnchantEquipArg")] + [Serializable] + public class EnchantEquipArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "enchantid", DataFormat = DataFormat.TwosComplement)] + public uint enchantid + { + get + { + return this._enchantid ?? 0u; + } + set + { + this._enchantid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enchantidSpecified + { + get + { + return this._enchantid != null; + } + set + { + bool flag = value == (this._enchantid == null); + if (flag) + { + this._enchantid = (value ? new uint?(this.enchantid) : null); + } + } + } + + private ulong? _uid; + + private uint? _enchantid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeenchantid() + { + return this.enchantidSpecified; + } + + private void Resetenchantid() + { + this.enchantidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipArg.cs.meta new file mode 100644 index 00000000..605f6198 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31439873f07ff62438a7ffccb55d8baf +timeCreated: 1611403542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipRes.cs new file mode 100644 index 00000000..900df98a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnchantEquipRes")] + [Serializable] + public class EnchantEquipRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "attr", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AttributeInfo attr + { + get + { + return this._attr; + } + set + { + this._attr = value; + } + } + + private ErrorCode? _errorcode; + + private AttributeInfo _attr = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipRes.cs.meta new file mode 100644 index 00000000..c4e51dfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantEquipRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a6b377c70344b84a9c54f2836d55032 +timeCreated: 1611403664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferArg.cs new file mode 100644 index 00000000..e03d4e97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnchantTransferArg")] + [Serializable] + public class EnchantTransferArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "originuid", DataFormat = DataFormat.TwosComplement)] + public ulong originuid + { + get + { + return this._originuid ?? 0UL; + } + set + { + this._originuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool originuidSpecified + { + get + { + return this._originuid != null; + } + set + { + bool flag = value == (this._originuid == null); + if (flag) + { + this._originuid = (value ? new ulong?(this.originuid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "destuid", DataFormat = DataFormat.TwosComplement)] + public ulong destuid + { + get + { + return this._destuid ?? 0UL; + } + set + { + this._destuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool destuidSpecified + { + get + { + return this._destuid != null; + } + set + { + bool flag = value == (this._destuid == null); + if (flag) + { + this._destuid = (value ? new ulong?(this.destuid) : null); + } + } + } + + private ulong? _originuid; + + private ulong? _destuid; + + private IExtension extensionObject; + + private bool ShouldSerializeoriginuid() + { + return this.originuidSpecified; + } + + private void Resetoriginuid() + { + this.originuidSpecified = false; + } + + private bool ShouldSerializedestuid() + { + return this.destuidSpecified; + } + + private void Resetdestuid() + { + this.destuidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferArg.cs.meta new file mode 100644 index 00000000..0c5fba9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5aab7e9d8419f347aac878006bd966b +timeCreated: 1611404507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferRes.cs new file mode 100644 index 00000000..7bdd2ca4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnchantTransferRes")] + [Serializable] + public class EnchantTransferRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferRes.cs.meta new file mode 100644 index 00000000..e6c309fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnchantTransferRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 953b4e5e6444ae84fa64a3dd34c88616 +timeCreated: 1611404181 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardArg.cs new file mode 100644 index 00000000..87156920 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EndGuildCardArg")] + [Serializable] + public class EndGuildCardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardArg.cs.meta new file mode 100644 index 00000000..d7af06d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 82fd4732b0baaa841a8616981f270215 +timeCreated: 1611404042 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardRes.cs new file mode 100644 index 00000000..fd802eb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EndGuildCardRes")] + [Serializable] + public class EndGuildCardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public uint result + { + get + { + return this._result ?? 0u; + } + set + { + this._result = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new uint?(this.result) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardRes.cs.meta new file mode 100644 index 00000000..ded3f66b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EndGuildCardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2b168e611d26e646b1a17882ac0ed7d +timeCreated: 1611404844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs new file mode 100644 index 00000000..5a0aa9b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs @@ -0,0 +1,336 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnemyDoodadInfo")] + [Serializable] + public class EnemyDoodadInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "waveid", DataFormat = DataFormat.TwosComplement)] + public int waveid + { + get + { + return this._waveid ?? 0; + } + set + { + this._waveid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool waveidSpecified + { + get + { + return this._waveid != null; + } + set + { + bool flag = value == (this._waveid == null); + if (flag) + { + this._waveid = (value ? new int?(this.waveid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "pos", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 pos + { + get + { + return this._pos; + } + set + { + this._pos = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "dropperTemplateID", DataFormat = DataFormat.TwosComplement)] + public uint dropperTemplateID + { + get + { + return this._dropperTemplateID ?? 0u; + } + set + { + this._dropperTemplateID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dropperTemplateIDSpecified + { + get + { + return this._dropperTemplateID != null; + } + set + { + bool flag = value == (this._dropperTemplateID == null); + if (flag) + { + this._dropperTemplateID = (value ? new uint?(this.dropperTemplateID) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private int? _waveid; + + private int? _type; + + private uint? _id; + + private uint? _count; + + private Vec3 _pos = null; + + private uint? _index; + + private uint? _dropperTemplateID; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializewaveid() + { + return this.waveidSpecified; + } + + private void Resetwaveid() + { + this.waveidSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializedropperTemplateID() + { + return this.dropperTemplateIDSpecified; + } + + private void ResetdropperTemplateID() + { + this.dropperTemplateIDSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs.meta new file mode 100644 index 00000000..a53f03fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnemyDoodadInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e32c403e51d9305448f47393bbde4253 +timeCreated: 1611404732 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnemyDropDoodadInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnemyDropDoodadInfo.cs new file mode 100644 index 00000000..a25b49cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnemyDropDoodadInfo.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnemyDropDoodadInfo")] + [Serializable] + public class EnemyDropDoodadInfo : IExtensible + { + [ProtoMember(1, Name = "doodadInfo", DataFormat = DataFormat.Default)] + public List doodadInfo + { + get + { + return this._doodadInfo; + } + } + + private readonly List _doodadInfo = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnemyDropDoodadInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnemyDropDoodadInfo.cs.meta new file mode 100644 index 00000000..e4976d17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnemyDropDoodadInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43d58dba2f1ccdd4cb5b7eebf86847c9 +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemArg.cs new file mode 100644 index 00000000..68916710 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnhanceItemArg")] + [Serializable] + public class EnhanceItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "UniqueItemId", DataFormat = DataFormat.TwosComplement)] + public ulong UniqueItemId + { + get + { + return this._UniqueItemId ?? 0UL; + } + set + { + this._UniqueItemId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool UniqueItemIdSpecified + { + get + { + return this._UniqueItemId != null; + } + set + { + bool flag = value == (this._UniqueItemId == null); + if (flag) + { + this._UniqueItemId = (value ? new ulong?(this.UniqueItemId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ProtectType", DataFormat = DataFormat.TwosComplement)] + public uint ProtectType + { + get + { + return this._ProtectType ?? 0u; + } + set + { + this._ProtectType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ProtectTypeSpecified + { + get + { + return this._ProtectType != null; + } + set + { + bool flag = value == (this._ProtectType == null); + if (flag) + { + this._ProtectType = (value ? new uint?(this.ProtectType) : null); + } + } + } + + private ulong? _UniqueItemId; + + private uint? _ProtectType; + + private IExtension extensionObject; + + private bool ShouldSerializeUniqueItemId() + { + return this.UniqueItemIdSpecified; + } + + private void ResetUniqueItemId() + { + this.UniqueItemIdSpecified = false; + } + + private bool ShouldSerializeProtectType() + { + return this.ProtectTypeSpecified; + } + + private void ResetProtectType() + { + this.ProtectTypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemArg.cs.meta new file mode 100644 index 00000000..ca64e595 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18283388469f40e4db68e3a2b85608ec +timeCreated: 1611403296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemRes.cs new file mode 100644 index 00000000..8e6c820c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnhanceItemRes")] + [Serializable] + public class EnhanceItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, Name = "comagates", DataFormat = DataFormat.Default)] + public List comagates + { + get + { + return this._comagates; + } + } + + [ProtoMember(3, IsRequired = false, Name = "isEnd", DataFormat = DataFormat.Default)] + public bool isEnd + { + get + { + return this._isEnd ?? false; + } + set + { + this._isEnd = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isEndSpecified + { + get + { + return this._isEnd != null; + } + set + { + bool flag = value == (this._isEnd == null); + if (flag) + { + this._isEnd = (value ? new bool?(this.isEnd) : null); + } + } + } + + [ProtoMember(4, Name = "nextAttrs", DataFormat = DataFormat.Default)] + public List nextAttrs + { + get + { + return this._nextAttrs; + } + } + + private ErrorCode? _ErrorCode; + + private readonly List _comagates = new List(); + + private bool? _isEnd; + + private readonly List _nextAttrs = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeisEnd() + { + return this.isEndSpecified; + } + + private void ResetisEnd() + { + this.isEndSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemRes.cs.meta new file mode 100644 index 00000000..0d1b0f37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db58d601aafa109418c2c6fc94bccadb +timeCreated: 1611404652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterArg.cs new file mode 100644 index 00000000..0a319a46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnhanceTransterArg")] + [Serializable] + public class EnhanceTransterArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "originuid", DataFormat = DataFormat.TwosComplement)] + public ulong originuid + { + get + { + return this._originuid ?? 0UL; + } + set + { + this._originuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool originuidSpecified + { + get + { + return this._originuid != null; + } + set + { + bool flag = value == (this._originuid == null); + if (flag) + { + this._originuid = (value ? new ulong?(this.originuid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "destuid", DataFormat = DataFormat.TwosComplement)] + public ulong destuid + { + get + { + return this._destuid ?? 0UL; + } + set + { + this._destuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool destuidSpecified + { + get + { + return this._destuid != null; + } + set + { + bool flag = value == (this._destuid == null); + if (flag) + { + this._destuid = (value ? new ulong?(this.destuid) : null); + } + } + } + + private ulong? _originuid; + + private ulong? _destuid; + + private IExtension extensionObject; + + private bool ShouldSerializeoriginuid() + { + return this.originuidSpecified; + } + + private void Resetoriginuid() + { + this.originuidSpecified = false; + } + + private bool ShouldSerializedestuid() + { + return this.destuidSpecified; + } + + private void Resetdestuid() + { + this.destuidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterArg.cs.meta new file mode 100644 index 00000000..b102812d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4fe1038a66dd994ba01f586f21721cb +timeCreated: 1611404504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterRes.cs new file mode 100644 index 00000000..a2f2dd13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnhanceTransterRes")] + [Serializable] + public class EnhanceTransterRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isperfect", DataFormat = DataFormat.Default)] + public bool isperfect + { + get + { + return this._isperfect ?? false; + } + set + { + this._isperfect = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isperfectSpecified + { + get + { + return this._isperfect != null; + } + set + { + bool flag = value == (this._isperfect == null); + if (flag) + { + this._isperfect = (value ? new bool?(this.isperfect) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private bool? _isperfect; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeisperfect() + { + return this.isperfectSpecified; + } + + private void Resetisperfect() + { + this.isperfectSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterRes.cs.meta new file mode 100644 index 00000000..fc344f6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnhanceTransterRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44b5fae190b357c4fa099a768e8ef140 +timeCreated: 1611403646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneArg.cs new file mode 100644 index 00000000..89d86e05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterBMReadySceneArg")] + [Serializable] + public class EnterBMReadySceneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public int param + { + get + { + return this._param ?? 0; + } + set + { + this._param = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new int?(this.param) : null); + } + } + } + + private int? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneArg.cs.meta new file mode 100644 index 00000000..5baa1f19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8b7c2da51fd54248a9b342da76e357e +timeCreated: 1611404640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneRes.cs new file mode 100644 index 00000000..63bd0875 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterBMReadySceneRes")] + [Serializable] + public class EnterBMReadySceneRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "group", DataFormat = DataFormat.TwosComplement)] + public uint group + { + get + { + return this._group ?? 0u; + } + set + { + this._group = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupSpecified + { + get + { + return this._group != null; + } + set + { + bool flag = value == (this._group == null); + if (flag) + { + this._group = (value ? new uint?(this.group) : null); + } + } + } + + private ErrorCode? _error; + + private uint? _group; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializegroup() + { + return this.groupSpecified; + } + + private void Resetgroup() + { + this.groupSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneRes.cs.meta new file mode 100644 index 00000000..5cc92ad5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterBMReadySceneRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de2743619727ec245a4f5fac80d8704b +timeCreated: 1611404685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneArg.cs new file mode 100644 index 00000000..764f24bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterBattleReadySceneArg")] + [Serializable] + public class EnterBattleReadySceneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneArg.cs.meta new file mode 100644 index 00000000..cfc7a193 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6c513dd6296ad04ca341d9d2b30f7d9 +timeCreated: 1611404399 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneRes.cs new file mode 100644 index 00000000..0ccd3676 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterBattleReadySceneRes")] + [Serializable] + public class EnterBattleReadySceneRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneRes.cs.meta new file mode 100644 index 00000000..dc96ad5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterBattleReadySceneRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c17987f6f4c1a24e98668d2872f7c5a +timeCreated: 1611404098 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneArg.cs new file mode 100644 index 00000000..82858c9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterLeisureSceneArg")] + [Serializable] + public class EnterLeisureSceneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public int index + { + get + { + return this._index ?? 0; + } + set + { + this._index = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new int?(this.index) : null); + } + } + } + + private int? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneArg.cs.meta new file mode 100644 index 00000000..bd303703 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 042f986a2fd2de349a73f5bf7c4ba0cc +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneRes.cs new file mode 100644 index 00000000..2d7faa69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterLeisureSceneRes")] + [Serializable] + public class EnterLeisureSceneRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneRes.cs.meta new file mode 100644 index 00000000..e781c0f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterLeisureSceneRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b435257ab7353644e9f80dd01dd27e0b +timeCreated: 1611404392 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownNotify.cs new file mode 100644 index 00000000..18bb6581 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownNotify.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterSceneCoolDownNotify")] + [Serializable] + public class EnterSceneCoolDownNotify : IExtensible + { + [ProtoMember(1, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public List groupid + { + get + { + return this._groupid; + } + } + + [ProtoMember(2, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public List cooldown + { + get + { + return this._cooldown; + } + } + + private readonly List _groupid = new List(); + + private readonly List _cooldown = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownNotify.cs.meta new file mode 100644 index 00000000..22829d9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2fb68f9278dee04faf92989afc4be89 +timeCreated: 1611404846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownQuery.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownQuery.cs new file mode 100644 index 00000000..9d92381c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownQuery.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterSceneCoolDownQuery")] + [Serializable] + public class EnterSceneCoolDownQuery : IExtensible + { + [ProtoMember(1, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public List groupid + { + get + { + return this._groupid; + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private readonly List _groupid = new List(); + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownQuery.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownQuery.cs.meta new file mode 100644 index 00000000..f046c2f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneCoolDownQuery.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8df83251fec04f04dbddb5e443213760 +timeCreated: 1611404106 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneType.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneType.cs new file mode 100644 index 00000000..a0723e46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterSceneType")] + public enum EnterSceneType + { + [ProtoEnum(Name = "ENTER_SCENE_SELECT_ROLE", Value = 1)] + ENTER_SCENE_SELECT_ROLE = 1, + [ProtoEnum(Name = "ENTER_SCENE_SWITCH", Value = 2)] + ENTER_SCENE_SWITCH + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneType.cs.meta new file mode 100644 index 00000000..f2bb5b32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterSceneType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dff46554856bfd144bbb5d11f164f6d0 +timeCreated: 1611404695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs new file mode 100644 index 00000000..056cf238 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterWatchBattleArg")] + [Serializable] + public class EnterWatchBattleArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "liveID", DataFormat = DataFormat.TwosComplement)] + public uint liveID + { + get + { + return this._liveID ?? 0u; + } + set + { + this._liveID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveIDSpecified + { + get + { + return this._liveID != null; + } + set + { + bool flag = value == (this._liveID == null); + if (flag) + { + this._liveID = (value ? new uint?(this.liveID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LiveType type + { + get + { + return this._type ?? LiveType.LIVE_RECOMMEND; + } + set + { + this._type = new LiveType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LiveType?(this.type) : null); + } + } + } + + private uint? _liveID; + + private LiveType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeliveID() + { + return this.liveIDSpecified; + } + + private void ResetliveID() + { + this.liveIDSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs.meta new file mode 100644 index 00000000..ad91d3c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d8deef12e513b64c918c1ab4d01a3d4 +timeCreated: 1611403355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleRes.cs new file mode 100644 index 00000000..001c50fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterWatchBattleRes")] + [Serializable] + public class EnterWatchBattleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "liveInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OneLiveRecordInfo liveInfo + { + get + { + return this._liveInfo; + } + set + { + this._liveInfo = value; + } + } + + private ErrorCode? _error; + + private OneLiveRecordInfo _liveInfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleRes.cs.meta new file mode 100644 index 00000000..9a7794b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWatchBattleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb16ab881bcf7ae42bfe9e7108e79d2c +timeCreated: 1611404545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneArg.cs new file mode 100644 index 00000000..4ea89bbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterWeddingSceneArg")] + [Serializable] + public class EnterWeddingSceneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "weddingid", DataFormat = DataFormat.TwosComplement)] + public ulong weddingid + { + get + { + return this._weddingid ?? 0UL; + } + set + { + this._weddingid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weddingidSpecified + { + get + { + return this._weddingid != null; + } + set + { + bool flag = value == (this._weddingid == null); + if (flag) + { + this._weddingid = (value ? new ulong?(this.weddingid) : null); + } + } + } + + private ulong? _weddingid; + + private IExtension extensionObject; + + private bool ShouldSerializeweddingid() + { + return this.weddingidSpecified; + } + + private void Resetweddingid() + { + this.weddingidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneArg.cs.meta new file mode 100644 index 00000000..8a8e415b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d31fd120c6713294e82abbcccaa6a837 +timeCreated: 1611404598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneRes.cs new file mode 100644 index 00000000..6cb9acdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnterWeddingSceneRes")] + [Serializable] + public class EnterWeddingSceneRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneRes.cs.meta new file mode 100644 index 00000000..7f310c78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnterWeddingSceneRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f5b4caab62fe7940ad84458dc22bd1e +timeCreated: 1611403402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EntityCategory.cs b/Client/Assets/Scripts/XMainClient/KKSG/EntityCategory.cs new file mode 100644 index 00000000..368ea230 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EntityCategory.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EntityCategory")] + public enum EntityCategory + { + [ProtoEnum(Name = "Category_Role", Value = 0)] + Category_Role, + [ProtoEnum(Name = "Category_Enemy", Value = 1)] + Category_Enemy, + [ProtoEnum(Name = "Category_Neutral", Value = 2)] + Category_Neutral, + [ProtoEnum(Name = "Category_DummyRole", Value = 3)] + Category_DummyRole, + [ProtoEnum(Name = "Category_Others", Value = 4)] + Category_Others + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EntityCategory.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EntityCategory.cs.meta new file mode 100644 index 00000000..eb3b7680 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EntityCategory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1b9601edc9c2b444aac57d33f501239 +timeCreated: 1611404491 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EntitySpecies.cs b/Client/Assets/Scripts/XMainClient/KKSG/EntitySpecies.cs new file mode 100644 index 00000000..544cce80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EntitySpecies.cs @@ -0,0 +1,30 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EntitySpecies")] + public enum EntitySpecies + { + [ProtoEnum(Name = "Species_Boss", Value = 1)] + Species_Boss = 1, + [ProtoEnum(Name = "Species_Opposer", Value = 2)] + Species_Opposer, + [ProtoEnum(Name = "Species_Puppet", Value = 3)] + Species_Puppet, + [ProtoEnum(Name = "Species_Npc", Value = 7)] + Species_Npc = 7, + [ProtoEnum(Name = "Species_Role", Value = 10)] + Species_Role = 10, + [ProtoEnum(Name = "Species_Empty", Value = 8)] + Species_Empty = 8, + [ProtoEnum(Name = "Species_Dummy", Value = 9)] + Species_Dummy, + [ProtoEnum(Name = "Species_Substance", Value = 5)] + Species_Substance = 5, + [ProtoEnum(Name = "Species_Affiliate", Value = 11)] + Species_Affiliate = 11, + [ProtoEnum(Name = "Species_Elite", Value = 6)] + Species_Elite = 6 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EntitySpecies.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EntitySpecies.cs.meta new file mode 100644 index 00000000..1545652d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EntitySpecies.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7dd07e668fa3f0546935d8a59ced11d5 +timeCreated: 1611404002 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EntityTargetData.cs b/Client/Assets/Scripts/XMainClient/KKSG/EntityTargetData.cs new file mode 100644 index 00000000..ea559f9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EntityTargetData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EntityTargetData")] + [Serializable] + public class EntityTargetData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "entityUID", DataFormat = DataFormat.TwosComplement)] + public ulong entityUID + { + get + { + return this._entityUID ?? 0UL; + } + set + { + this._entityUID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool entityUIDSpecified + { + get + { + return this._entityUID != null; + } + set + { + bool flag = value == (this._entityUID == null); + if (flag) + { + this._entityUID = (value ? new ulong?(this.entityUID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "targetUID", DataFormat = DataFormat.TwosComplement)] + public ulong targetUID + { + get + { + return this._targetUID ?? 0UL; + } + set + { + this._targetUID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool targetUIDSpecified + { + get + { + return this._targetUID != null; + } + set + { + bool flag = value == (this._targetUID == null); + if (flag) + { + this._targetUID = (value ? new ulong?(this.targetUID) : null); + } + } + } + + private ulong? _entityUID; + + private ulong? _targetUID; + + private IExtension extensionObject; + + private bool ShouldSerializeentityUID() + { + return this.entityUIDSpecified; + } + + private void ResetentityUID() + { + this.entityUIDSpecified = false; + } + + private bool ShouldSerializetargetUID() + { + return this.targetUIDSpecified; + } + + private void ResettargetUID() + { + this.targetUIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EntityTargetData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EntityTargetData.cs.meta new file mode 100644 index 00000000..456a9932 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EntityTargetData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e556984be634b2240b9c4d79f776068c +timeCreated: 1611404742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnumServerState.cs b/Client/Assets/Scripts/XMainClient/KKSG/EnumServerState.cs new file mode 100644 index 00000000..58f7d6eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnumServerState.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EnumServerState")] + public enum EnumServerState + { + [ProtoEnum(Name = "ServerState_Maintain", Value = 0)] + ServerState_Maintain, + [ProtoEnum(Name = "ServerState_Smooth", Value = 1)] + ServerState_Smooth, + [ProtoEnum(Name = "ServerState_Hot", Value = 2)] + ServerState_Hot, + [ProtoEnum(Name = "ServerState_Full", Value = 3)] + ServerState_Full, + [ProtoEnum(Name = "ServerState_Recommend", Value = 4)] + ServerState_Recommend, + [ProtoEnum(Name = "ServerState_Auto", Value = 5)] + ServerState_Auto + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EnumServerState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EnumServerState.cs.meta new file mode 100644 index 00000000..85813652 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EnumServerState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a480607814a6614482c07af5edc7867 +timeCreated: 1611403790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ErrorCode.cs b/Client/Assets/Scripts/XMainClient/KKSG/ErrorCode.cs new file mode 100644 index 00000000..2c935be1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ErrorCode.cs @@ -0,0 +1,1706 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ErrorCode")] + public enum ErrorCode + { + [ProtoEnum(Name = "ERR_SUCCESS", Value = 0)] + ERR_SUCCESS, + [ProtoEnum(Name = "ERR_UNKNOWN", Value = 1)] + ERR_UNKNOWN, + [ProtoEnum(Name = "ERR_PASSWORD_ERROR", Value = 2)] + ERR_PASSWORD_ERROR, + [ProtoEnum(Name = "ERR_RELOGIN", Value = 3)] + ERR_RELOGIN, + [ProtoEnum(Name = "ERR_ACCOUNT_NOT_EXIST", Value = 4)] + ERR_ACCOUNT_NOT_EXIST, + [ProtoEnum(Name = "ERR_NAME_EXIST", Value = 5)] + ERR_NAME_EXIST, + [ProtoEnum(Name = "ERR_INVALID_NAME", Value = 6)] + ERR_INVALID_NAME, + [ProtoEnum(Name = "ERR_STATE_ERROR", Value = 7)] + ERR_STATE_ERROR, + [ProtoEnum(Name = "ERR_PROFESSION_TYPE", Value = 8)] + ERR_PROFESSION_TYPE, + [ProtoEnum(Name = "ERR_FAILED", Value = 9)] + ERR_FAILED, + [ProtoEnum(Name = "ERR_ACCOUNT_ROLE_FULL", Value = 10)] + ERR_ACCOUNT_ROLE_FULL, + [ProtoEnum(Name = "ERR_ACCOUNT_DATA_ERROR", Value = 11)] + ERR_ACCOUNT_DATA_ERROR, + [ProtoEnum(Name = "ERR_TIMEOUT", Value = 12)] + ERR_TIMEOUT, + [ProtoEnum(Name = "ERR_SKILL_CONFIGERROR", Value = 13)] + ERR_SKILL_CONFIGERROR, + [ProtoEnum(Name = "ERR_SKILL_LEVELREQ", Value = 14)] + ERR_SKILL_LEVELREQ, + [ProtoEnum(Name = "ERR_SKILL_ITEMREQ", Value = 15)] + ERR_SKILL_ITEMREQ, + [ProtoEnum(Name = "ERR_ACHIVE_NOTCOMPLETE", Value = 16)] + ERR_ACHIVE_NOTCOMPLETE, + [ProtoEnum(Name = "ERR_ACHIVE_NOTCONFIG", Value = 17)] + ERR_ACHIVE_NOTCONFIG, + [ProtoEnum(Name = "ERR_SKILL_POINT", Value = 18)] + ERR_SKILL_POINT, + [ProtoEnum(Name = "ERR_PROF_ERROR", Value = 19)] + ERR_PROF_ERROR, + [ProtoEnum(Name = "ERR_PROF_LEVELREQ", Value = 20)] + ERR_PROF_LEVELREQ, + [ProtoEnum(Name = "ERR_PROF_LEVELREQ2", Value = 21)] + ERR_PROF_LEVELREQ2, + [ProtoEnum(Name = "ERR_BIND_SKILL_OUTRANGE", Value = 22)] + ERR_BIND_SKILL_OUTRANGE, + [ProtoEnum(Name = "ERR_BIND_SKILL_NOT_LEARN", Value = 23)] + ERR_BIND_SKILL_NOT_LEARN, + [ProtoEnum(Name = "ERR_BIND_SKILL_MISSSLOT", Value = 24)] + ERR_BIND_SKILL_MISSSLOT, + [ProtoEnum(Name = "ERR_ENHANCE_ERROR", Value = 25)] + ERR_ENHANCE_ERROR, + [ProtoEnum(Name = "ERR_ENHANCE_LACKITEM", Value = 26)] + ERR_ENHANCE_LACKITEM, + [ProtoEnum(Name = "ERR_ENHANCE_FAILED", Value = 27)] + ERR_ENHANCE_FAILED, + [ProtoEnum(Name = "ERR_ENHANCE_SUCCEED", Value = 28)] + ERR_ENHANCE_SUCCEED, + [ProtoEnum(Name = "ERR_ENHANCE_MAX", Value = 29)] + ERR_ENHANCE_MAX, + [ProtoEnum(Name = "ERR_ARENA_ERROR", Value = 30)] + ERR_ARENA_ERROR, + [ProtoEnum(Name = "ERR_ARENA_COUNTLIMIT", Value = 31)] + ERR_ARENA_COUNTLIMIT, + [ProtoEnum(Name = "ERR_DECOMPOSE_FAILED", Value = 32)] + ERR_DECOMPOSE_FAILED, + [ProtoEnum(Name = "ERR_DECOMPOSE_CANNOT", Value = 33)] + ERR_DECOMPOSE_CANNOT, + [ProtoEnum(Name = "ERR_DECOMPOSE_NOTFIND", Value = 34)] + ERR_DECOMPOSE_NOTFIND, + [ProtoEnum(Name = "ERR_SCENE_LEVELREQ", Value = 35)] + ERR_SCENE_LEVELREQ, + [ProtoEnum(Name = "ERR_SCENE_NOFATIGUE", Value = 36)] + ERR_SCENE_NOFATIGUE, + [ProtoEnum(Name = "ERR_SCENE_TODYCOUNTLIMIT", Value = 37)] + ERR_SCENE_TODYCOUNTLIMIT, + [ProtoEnum(Name = "ERR_SCENE_NEEDPREVCOMPLETE", Value = 38)] + ERR_SCENE_NEEDPREVCOMPLETE, + [ProtoEnum(Name = "ERR_ITEM_NOTEXIST", Value = 39)] + ERR_ITEM_NOTEXIST, + [ProtoEnum(Name = "ERR_ITEM_LEVELLIMIT", Value = 40)] + ERR_ITEM_LEVELLIMIT, + [ProtoEnum(Name = "ERR_ITEM_CANNOTBEEQUIPED", Value = 41)] + ERR_ITEM_CANNOTBEEQUIPED, + [ProtoEnum(Name = "ERR_EMBLEM_NOEMPTYSLOT", Value = 42)] + ERR_EMBLEM_NOEMPTYSLOT, + [ProtoEnum(Name = "ERR_ITEM_NOT_ENOUGH", Value = 43)] + ERR_ITEM_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_EMBLEM_MAXLEVEL", Value = 44)] + ERR_EMBLEM_MAXLEVEL, + [ProtoEnum(Name = "ERR_JADE_MAXLEVEL", Value = 45)] + ERR_JADE_MAXLEVEL, + [ProtoEnum(Name = "ERR_JADECOMPOSE_NOTFIND", Value = 46)] + ERR_JADECOMPOSE_NOTFIND, + [ProtoEnum(Name = "ERR_JADEATTACH_NOEMPTYSLOT", Value = 47)] + ERR_JADEATTACH_NOEMPTYSLOT, + [ProtoEnum(Name = "ERR_JADE_COUNTNOTENOUGH", Value = 48)] + ERR_JADE_COUNTNOTENOUGH, + [ProtoEnum(Name = "ERR_CHECKIN_FULL", Value = 49)] + ERR_CHECKIN_FULL, + [ProtoEnum(Name = "ERR_CHECKIN_LACKDRAGONCOIN", Value = 50)] + ERR_CHECKIN_LACKDRAGONCOIN, + [ProtoEnum(Name = "ERR_ACTIVITY_NOCHESTINDEX", Value = 51)] + ERR_ACTIVITY_NOCHESTINDEX, + [ProtoEnum(Name = "ERR_ACTIVITY_HASGETCHEST", Value = 52)] + ERR_ACTIVITY_HASGETCHEST, + [ProtoEnum(Name = "ERR_ACTIVITY_NOTENOUGHVALUE", Value = 53)] + ERR_ACTIVITY_NOTENOUGHVALUE, + [ProtoEnum(Name = "ERR_ACTIVITY_SPECIALCHESTCOUNTLIMIT", Value = 54)] + ERR_ACTIVITY_SPECIALCHESTCOUNTLIMIT, + [ProtoEnum(Name = "ERR_ARENA_ADDCOUNTLACKCOIN", Value = 55)] + ERR_ARENA_ADDCOUNTLACKCOIN, + [ProtoEnum(Name = "ERR_JADE_OPENJADELACKCOIN", Value = 56)] + ERR_JADE_OPENJADELACKCOIN, + [ProtoEnum(Name = "ERR_JADE_NOEMPTYSLOT", Value = 57)] + ERR_JADE_NOEMPTYSLOT, + [ProtoEnum(Name = "ERR_ITEM_NEED_DRAGONCOIN", Value = 58)] + ERR_ITEM_NEED_DRAGONCOIN, + [ProtoEnum(Name = "ERR_BUY_LIMIT", Value = 59)] + ERR_BUY_LIMIT, + [ProtoEnum(Name = "ERR_SWEEP_NOT_THREE_STAR", Value = 60)] + ERR_SWEEP_NOT_THREE_STAR, + [ProtoEnum(Name = "ERR_SHOP_ITEMNOTEXIST", Value = 61)] + ERR_SHOP_ITEMNOTEXIST, + [ProtoEnum(Name = "ERR_SHOP_LACKMONEY", Value = 62)] + ERR_SHOP_LACKMONEY, + [ProtoEnum(Name = "ERR_TEAM_ALREADY_INTEAM", Value = 63)] + ERR_TEAM_ALREADY_INTEAM, + [ProtoEnum(Name = "ERR_TEAM_NOT_EXIST", Value = 64)] + ERR_TEAM_NOT_EXIST, + [ProtoEnum(Name = "ERR_TEAM_FULL", Value = 65)] + ERR_TEAM_FULL, + [ProtoEnum(Name = "ERR_TEAM_WRONG_PASSWORD", Value = 66)] + ERR_TEAM_WRONG_PASSWORD, + [ProtoEnum(Name = "ERR_SCENE_TIMELIMIT", Value = 67)] + ERR_SCENE_TIMELIMIT, + [ProtoEnum(Name = "ERR_TEAM_EXPEDITIONID_NOT_EXIST", Value = 68)] + ERR_TEAM_EXPEDITIONID_NOT_EXIST, + [ProtoEnum(Name = "ERR_TEAM_LEVEL_REQUARE", Value = 69)] + ERR_TEAM_LEVEL_REQUARE, + [ProtoEnum(Name = "ERR_SCENE_COOLDOWN", Value = 70)] + ERR_SCENE_COOLDOWN, + [ProtoEnum(Name = "ERR_SKILL_MAXLEVEL", Value = 71)] + ERR_SKILL_MAXLEVEL, + [ProtoEnum(Name = "ERR_WORLDBOSS_DEAD", Value = 72)] + ERR_WORLDBOSS_DEAD, + [ProtoEnum(Name = "ERR_REINFORCE_LEVELLIMIT", Value = 73)] + ERR_REINFORCE_LEVELLIMIT, + [ProtoEnum(Name = "ERR_REINFORCE_LACKMONEY", Value = 74)] + ERR_REINFORCE_LACKMONEY, + [ProtoEnum(Name = "ERR_ARENA_REWARDTAKEN", Value = 75)] + ERR_ARENA_REWARDTAKEN, + [ProtoEnum(Name = "ERR_SKILL_PROFESSION_ERROR", Value = 76)] + ERR_SKILL_PROFESSION_ERROR, + [ProtoEnum(Name = "ERR_SKILL_NEED_PRESKILL", Value = 77)] + ERR_SKILL_NEED_PRESKILL, + [ProtoEnum(Name = "ERR_LOGIN_TIMEOUT", Value = 78)] + ERR_LOGIN_TIMEOUT, + [ProtoEnum(Name = "ERR_LOGIN_NOSERVER", Value = 79)] + ERR_LOGIN_NOSERVER, + [ProtoEnum(Name = "ERR_SHOP_LEVELLIMIT", Value = 80)] + ERR_SHOP_LEVELLIMIT, + [ProtoEnum(Name = "ERR_SHOP_PPTLIMIT", Value = 81)] + ERR_SHOP_PPTLIMIT, + [ProtoEnum(Name = "ERR_SHOP_COUNTLIMIT", Value = 82)] + ERR_SHOP_COUNTLIMIT, + [ProtoEnum(Name = "ERR_SHOP_DAILYCOUNTLIMIT", Value = 83)] + ERR_SHOP_DAILYCOUNTLIMIT, + [ProtoEnum(Name = "ERR_CHAT_LEVELLIMIT", Value = 84)] + ERR_CHAT_LEVELLIMIT, + [ProtoEnum(Name = "ERR_CHAT_LENGTHLIMIT", Value = 85)] + ERR_CHAT_LENGTHLIMIT, + [ProtoEnum(Name = "ERR_CHAT_TIMELIMIT", Value = 86)] + ERR_CHAT_TIMELIMIT, + [ProtoEnum(Name = "ERR_FASHOIN_ALREADY_EXIST", Value = 87)] + ERR_FASHOIN_ALREADY_EXIST, + [ProtoEnum(Name = "ERR_FASHION_NOT_EXIST", Value = 88)] + ERR_FASHION_NOT_EXIST, + [ProtoEnum(Name = "ERR_FRIEND_MAX", Value = 89)] + ERR_FRIEND_MAX, + [ProtoEnum(Name = "ERR_FRIEND_REPEATED", Value = 90)] + ERR_FRIEND_REPEATED, + [ProtoEnum(Name = "ERR_FRIEND_NOTEXIST", Value = 91)] + ERR_FRIEND_NOTEXIST, + [ProtoEnum(Name = "ERR_BLACK_INSELF", Value = 92)] + ERR_BLACK_INSELF, + [ProtoEnum(Name = "ERR_BLACK_INOTHER", Value = 93)] + ERR_BLACK_INOTHER, + [ProtoEnum(Name = "ERR_BLACK_NOTEXIST", Value = 94)] + ERR_BLACK_NOTEXIST, + [ProtoEnum(Name = "ERR_LOGIN_VERIFY_FAILED", Value = 95)] + ERR_LOGIN_VERIFY_FAILED, + [ProtoEnum(Name = "ERR_GUILD_NOT_EXIST", Value = 96)] + ERR_GUILD_NOT_EXIST, + [ProtoEnum(Name = "ERR_GUILD_NAME_EXIST", Value = 97)] + ERR_GUILD_NAME_EXIST, + [ProtoEnum(Name = "ERR_GUILD_NOT_IN_GUILD", Value = 98)] + ERR_GUILD_NOT_IN_GUILD, + [ProtoEnum(Name = "ERR_GUILD_ALREADY_IN_GUILD", Value = 99)] + ERR_GUILD_ALREADY_IN_GUILD, + [ProtoEnum(Name = "ERR_GUILD_NO_PERMISSION", Value = 100)] + ERR_GUILD_NO_PERMISSION, + [ProtoEnum(Name = "ERR_CHAPTERCHEST_ALREADY_FETCHED", Value = 101)] + ERR_CHAPTERCHEST_ALREADY_FETCHED, + [ProtoEnum(Name = "ERR_CHAPTERCHEST_NEEDSTAR", Value = 102)] + ERR_CHAPTERCHEST_NEEDSTAR, + [ProtoEnum(Name = "ERR_SESSION_KICKOFF", Value = 103)] + ERR_SESSION_KICKOFF, + [ProtoEnum(Name = "ERR_ALIVE_TIMEOUT", Value = 104)] + ERR_ALIVE_TIMEOUT, + [ProtoEnum(Name = "ERR_GS_CLOSED", Value = 105)] + ERR_GS_CLOSED, + [ProtoEnum(Name = "ERR_FASHIONCOMPOSE_LEVEL_REQ", Value = 106)] + ERR_FASHIONCOMPOSE_LEVEL_REQ, + [ProtoEnum(Name = "ERR_GUILD_FULL", Value = 107)] + ERR_GUILD_FULL, + [ProtoEnum(Name = "ERR_GUILD_PPT_REQ", Value = 108)] + ERR_GUILD_PPT_REQ, + [ProtoEnum(Name = "ERR_GUILD_WAITAPPROVAL", Value = 109)] + ERR_GUILD_WAITAPPROVAL, + [ProtoEnum(Name = "ERR_GUILD_MEMBER_NOT_EXIST", Value = 110)] + ERR_GUILD_MEMBER_NOT_EXIST, + [ProtoEnum(Name = "ERR_FLOWER_SELF", Value = 111)] + ERR_FLOWER_SELF, + [ProtoEnum(Name = "ERR_FLOWER_COUNTLIMIT", Value = 112)] + ERR_FLOWER_COUNTLIMIT, + [ProtoEnum(Name = "ERR_FLOWER_ROLELIMIT", Value = 113)] + ERR_FLOWER_ROLELIMIT, + [ProtoEnum(Name = "ERR_FLOWER_COSTLIMIT", Value = 114)] + ERR_FLOWER_COSTLIMIT, + [ProtoEnum(Name = "ERR_GUILDCARD_ALLCOUNTLIMIT", Value = 115)] + ERR_GUILDCARD_ALLCOUNTLIMIT, + [ProtoEnum(Name = "ERR_GUILDCARD_COUNTLIMIT", Value = 116)] + ERR_GUILDCARD_COUNTLIMIT, + [ProtoEnum(Name = "ERR_GUILDCARD_CHANGELIMIT", Value = 117)] + ERR_GUILDCARD_CHANGELIMIT, + [ProtoEnum(Name = "ERR_GUILDCHECKIN_LIMIT", Value = 118)] + ERR_GUILDCHECKIN_LIMIT, + [ProtoEnum(Name = "ERR_GUILDCHECKIN_MONEY", Value = 119)] + ERR_GUILDCHECKIN_MONEY, + [ProtoEnum(Name = "ERR_GUILDCHECKIN_TAKEN", Value = 120)] + ERR_GUILDCHECKIN_TAKEN, + [ProtoEnum(Name = "ERR_GUILDCHECKIN_BOXLIMIT", Value = 121)] + ERR_GUILDCHECKIN_BOXLIMIT, + [ProtoEnum(Name = "ERR_SCENE_NEED_PRESCENE", Value = 122)] + ERR_SCENE_NEED_PRESCENE, + [ProtoEnum(Name = "ERR_GUILDBONUS_NOTEXIST", Value = 123)] + ERR_GUILDBONUS_NOTEXIST, + [ProtoEnum(Name = "ERR_GUILDBONUS_ALREADYGET", Value = 124)] + ERR_GUILDBONUS_ALREADYGET, + [ProtoEnum(Name = "ERR_GUILDBONUS_EXCEED", Value = 125)] + ERR_GUILDBONUS_EXCEED, + [ProtoEnum(Name = "ERR_GUILD_OPENLIMIT", Value = 126)] + ERR_GUILD_OPENLIMIT, + [ProtoEnum(Name = "ERR_SHOP_OPENLIMIT", Value = 127)] + ERR_SHOP_OPENLIMIT, + [ProtoEnum(Name = "ERR_GUILDCHECKIN_ALLCOUNT", Value = 128)] + ERR_GUILDCHECKIN_ALLCOUNT, + [ProtoEnum(Name = "ERR_TEAM_EXPEDITION_DAYCOUNT", Value = 129)] + ERR_TEAM_EXPEDITION_DAYCOUNT, + [ProtoEnum(Name = "ERR_TEAM_GUILD_DAYCOUNT", Value = 130)] + ERR_TEAM_GUILD_DAYCOUNT, + [ProtoEnum(Name = "ERR_TEAM_NEST_DAYCOUNT", Value = 131)] + ERR_TEAM_NEST_DAYCOUNT, + [ProtoEnum(Name = "ERR_GUILD_LEVEL_REQ", Value = 132)] + ERR_GUILD_LEVEL_REQ, + [ProtoEnum(Name = "ERR_TEAM_NOT_OPENTIME", Value = 133)] + ERR_TEAM_NOT_OPENTIME, + [ProtoEnum(Name = "ERR_TEAM_NEED_ATLEAST_2_MEMBER", Value = 134)] + ERR_TEAM_NEED_ATLEAST_2_MEMBER, + [ProtoEnum(Name = "ERR_TEAM_ONLY_LEADER_CAN_KICK", Value = 135)] + ERR_TEAM_ONLY_LEADER_CAN_KICK, + [ProtoEnum(Name = "ERR_TEAM_MEMBER_NOT_EXIST", Value = 136)] + ERR_TEAM_MEMBER_NOT_EXIST, + [ProtoEnum(Name = "ERR_SKILL_GUILD_CONTRIBUTE", Value = 137)] + ERR_SKILL_GUILD_CONTRIBUTE, + [ProtoEnum(Name = "ERR_REWARD_TAKEN", Value = 138)] + ERR_REWARD_TAKEN, + [ProtoEnum(Name = "ERR_REWARD_LIMIT", Value = 139)] + ERR_REWARD_LIMIT, + [ProtoEnum(Name = "ERR_REWARD_NOTEXIST", Value = 140)] + ERR_REWARD_NOTEXIST, + [ProtoEnum(Name = "ERR_GUILD_VICE_FULL", Value = 141)] + ERR_GUILD_VICE_FULL, + [ProtoEnum(Name = "ERR_GUILD_OFFICER_FULL", Value = 142)] + ERR_GUILD_OFFICER_FULL, + [ProtoEnum(Name = "ERR_GUILD_ELITE_FULL", Value = 143)] + ERR_GUILD_ELITE_FULL, + [ProtoEnum(Name = "ERR_TEAM_MEMBER_NOT_ONLINE", Value = 144)] + ERR_TEAM_MEMBER_NOT_ONLINE, + [ProtoEnum(Name = "ERR_TEAM_DISAGREE_BATTLE", Value = 145)] + ERR_TEAM_DISAGREE_BATTLE, + [ProtoEnum(Name = "ERR_TEAM_ONLY_LEADER_CAN_STARTBATTLE", Value = 146)] + ERR_TEAM_ONLY_LEADER_CAN_STARTBATTLE, + [ProtoEnum(Name = "ERR_TEAM_MATCHING", Value = 147)] + ERR_TEAM_MATCHING, + [ProtoEnum(Name = "ERR_ROLE_NOT_ONLINE", Value = 148)] + ERR_ROLE_NOT_ONLINE, + [ProtoEnum(Name = "ERR_TEAM_ONLY_LEADER_CAN_DO", Value = 149)] + ERR_TEAM_ONLY_LEADER_CAN_DO, + [ProtoEnum(Name = "ERR_LACKCOIN", Value = 150)] + ERR_LACKCOIN, + [ProtoEnum(Name = "ERR_LACKDIAMOND", Value = 151)] + ERR_LACKDIAMOND, + [ProtoEnum(Name = "ERR_SMELTING_INVALID", Value = 152)] + ERR_SMELTING_INVALID, + [ProtoEnum(Name = "ERR_SMELTING_TRANSINVALID", Value = 153)] + ERR_SMELTING_TRANSINVALID, + [ProtoEnum(Name = "ERR_GUILD_NAME_TOO_SHORT", Value = 154)] + ERR_GUILD_NAME_TOO_SHORT, + [ProtoEnum(Name = "ERR_GUILD_NAME_TOO_LONG", Value = 155)] + ERR_GUILD_NAME_TOO_LONG, + [ProtoEnum(Name = "ERR_TEAM_NOT_IN_HALL", Value = 156)] + ERR_TEAM_NOT_IN_HALL, + [ProtoEnum(Name = "ERR_TEAM_IN_BATTLE", Value = 157)] + ERR_TEAM_IN_BATTLE, + [ProtoEnum(Name = "ERR_TEAM_VOTE", Value = 158)] + ERR_TEAM_VOTE, + [ProtoEnum(Name = "ERR_TEAM_STATE_ERROR", Value = 159)] + ERR_TEAM_STATE_ERROR, + [ProtoEnum(Name = "ERR_TEAM_INVITE_ROLE_IS_IN_BATTLE", Value = 160)] + ERR_TEAM_INVITE_ROLE_IS_IN_BATTLE, + [ProtoEnum(Name = "ERR_ITEM_COOLDOWN", Value = 161)] + ERR_ITEM_COOLDOWN, + [ProtoEnum(Name = "ERR_LOGIN_FORBID", Value = 162)] + ERR_LOGIN_FORBID, + [ProtoEnum(Name = "ERR_LOGIN_MAXNUM", Value = 163)] + ERR_LOGIN_MAXNUM, + [ProtoEnum(Name = "ERR_SCENE_NEED_PRETASK", Value = 164)] + ERR_SCENE_NEED_PRETASK, + [ProtoEnum(Name = "ERR_NAME_HAS_INVALID_CHAR", Value = 165)] + ERR_NAME_HAS_INVALID_CHAR, + [ProtoEnum(Name = "ERR_SMELTING_LACKMONEY", Value = 166)] + ERR_SMELTING_LACKMONEY, + [ProtoEnum(Name = "ERR_OTHER_GAOJIGU_NOTOPEN", Value = 167)] + ERR_OTHER_GAOJIGU_NOTOPEN, + [ProtoEnum(Name = "ERR_FISHING_NUMNOTENOUGH", Value = 168)] + ERR_FISHING_NUMNOTENOUGH, + [ProtoEnum(Name = "ERR_FISHING_ALREADYSEAT", Value = 169)] + ERR_FISHING_ALREADYSEAT, + [ProtoEnum(Name = "ERR_FISHING_SEATNOTEMPTY", Value = 170)] + ERR_FISHING_SEATNOTEMPTY, + [ProtoEnum(Name = "ERR_SLOTATTR_NOEQUIP", Value = 171)] + ERR_SLOTATTR_NOEQUIP, + [ProtoEnum(Name = "ERR_SLOTATTR_MONEYLIMIT", Value = 172)] + ERR_SLOTATTR_MONEYLIMIT, + [ProtoEnum(Name = "ERR_SLOTATTR_LEVELLIMIT", Value = 173)] + ERR_SLOTATTR_LEVELLIMIT, + [ProtoEnum(Name = "ERR_PK_NOMATCH", Value = 174)] + ERR_PK_NOMATCH, + [ProtoEnum(Name = "ERR_ITEM_WRONG_PROFESSION", Value = 175)] + ERR_ITEM_WRONG_PROFESSION, + [ProtoEnum(Name = "ERR_SKILL_NOT_MATCH", Value = 176)] + ERR_SKILL_NOT_MATCH, + [ProtoEnum(Name = "ERR_TSHOW_LEVEL_NOTENOUGH", Value = 177)] + ERR_TSHOW_LEVEL_NOTENOUGH, + [ProtoEnum(Name = "ERR_TRANSFER_LACKMONEY", Value = 178)] + ERR_TRANSFER_LACKMONEY, + [ProtoEnum(Name = "ERR_AUCT_HAVEBIDDING", Value = 179)] + ERR_AUCT_HAVEBIDDING, + [ProtoEnum(Name = "ERR_AUCT_ITEMOUTSALE", Value = 180)] + ERR_AUCT_ITEMOUTSALE, + [ProtoEnum(Name = "ERR_AUCT_PRICECHAGE", Value = 181)] + ERR_AUCT_PRICECHAGE, + [ProtoEnum(Name = "ERR_AUCT_SURPASSSELF", Value = 182)] + ERR_AUCT_SURPASSSELF, + [ProtoEnum(Name = "ERR_AUCT_POINTLESS", Value = 183)] + ERR_AUCT_POINTLESS, + [ProtoEnum(Name = "ERR_AUCT_DRAGONCOINLESS", Value = 184)] + ERR_AUCT_DRAGONCOINLESS, + [ProtoEnum(Name = "ERR_AUCT_BUYSELF", Value = 185)] + ERR_AUCT_BUYSELF, + [ProtoEnum(Name = "ERR_ALREADY_IN_CAMP", Value = 186)] + ERR_ALREADY_IN_CAMP, + [ProtoEnum(Name = "ERR_NOT_IN_CAMP", Value = 187)] + ERR_NOT_IN_CAMP, + [ProtoEnum(Name = "ERR_AUCT_ONSALEMAX", Value = 188)] + ERR_AUCT_ONSALEMAX, + [ProtoEnum(Name = "ERR_AUCT_COMMONERR", Value = 189)] + ERR_AUCT_COMMONERR, + [ProtoEnum(Name = "ERR_AUCT_ITEMSALED", Value = 190)] + ERR_AUCT_ITEMSALED, + [ProtoEnum(Name = "ERR_SCENE_NOT_IN_CONFIG", Value = 191)] + ERR_SCENE_NOT_IN_CONFIG, + [ProtoEnum(Name = "ERR_GAOJIGU_MODEL_DUPLICATE_FASHIONID", Value = 192)] + ERR_GAOJIGU_MODEL_DUPLICATE_FASHIONID, + [ProtoEnum(Name = "ERR_TEAMBUY_COUNT_MAX", Value = 193)] + ERR_TEAMBUY_COUNT_MAX, + [ProtoEnum(Name = "ERR_TEAMBUY_DIAMOND_LESS", Value = 194)] + ERR_TEAMBUY_DIAMOND_LESS, + [ProtoEnum(Name = "ERR_ADDFRIEND_DUMMYROLE", Value = 195)] + ERR_ADDFRIEND_DUMMYROLE, + [ProtoEnum(Name = "ERR_VERSION_FAILED", Value = 196)] + ERR_VERSION_FAILED, + [ProtoEnum(Name = "ERR_EXPBACK_ALREADYGET", Value = 197)] + ERR_EXPBACK_ALREADYGET, + [ProtoEnum(Name = "ERR_PK_OPENTIME", Value = 198)] + ERR_PK_OPENTIME, + [ProtoEnum(Name = "ERR_ITEM_NEED_DIAMOND", Value = 199)] + ERR_ITEM_NEED_DIAMOND, + [ProtoEnum(Name = "ERR_WORD_FORBID", Value = 200)] + ERR_WORD_FORBID, + [ProtoEnum(Name = "ERR_TEAM_TOWER_DAYCOUNT", Value = 201)] + ERR_TEAM_TOWER_DAYCOUNT, + [ProtoEnum(Name = "ERR_AUCTGOLDLESS", Value = 202)] + ERR_AUCTGOLDLESS, + [ProtoEnum(Name = "ERR_ILLEGAL_CODE", Value = 203)] + ERR_ILLEGAL_CODE, + [ProtoEnum(Name = "ERR_GUILD_CHECKINBONUS_TIMEERROR", Value = 204)] + ERR_GUILD_CHECKINBONUS_TIMEERROR, + [ProtoEnum(Name = "ERR_GUILD_CHECKINBONUS_ASKTOOMUCH", Value = 205)] + ERR_GUILD_CHECKINBONUS_ASKTOOMUCH, + [ProtoEnum(Name = "ERR_TEAM_NOJOININBATTLE", Value = 206)] + ERR_TEAM_NOJOININBATTLE, + [ProtoEnum(Name = "ERR_REGISTER_NUM_LIMIT", Value = 207)] + ERR_REGISTER_NUM_LIMIT, + [ProtoEnum(Name = "ERR_FRIEND_MAXOTHER", Value = 208)] + ERR_FRIEND_MAXOTHER, + [ProtoEnum(Name = "ERR_FRIEND_SENDLIMIT", Value = 209)] + ERR_FRIEND_SENDLIMIT, + [ProtoEnum(Name = "ERR_FRIEND_TAKENLIMIT", Value = 210)] + ERR_FRIEND_TAKENLIMIT, + [ProtoEnum(Name = "ERR_ROLE_NOTEXIST", Value = 211)] + ERR_ROLE_NOTEXIST, + [ProtoEnum(Name = "ERR_RANDOMFRIEND_CD", Value = 212)] + ERR_RANDOMFRIEND_CD, + [ProtoEnum(Name = "ERR_ENHANCE_TRANSLEVEL", Value = 213)] + ERR_ENHANCE_TRANSLEVEL, + [ProtoEnum(Name = "ERR_ENHANCE_TRANSPOS", Value = 214)] + ERR_ENHANCE_TRANSPOS, + [ProtoEnum(Name = "ERR_GUILD_LVL_LIMIT", Value = 215)] + ERR_GUILD_LVL_LIMIT, + [ProtoEnum(Name = "ERR_FRIEND_HASSEND", Value = 216)] + ERR_FRIEND_HASSEND, + [ProtoEnum(Name = "ERR_GUILD_APPLYFULL", Value = 217)] + ERR_GUILD_APPLYFULL, + [ProtoEnum(Name = "ERR_BLACK_CHAT", Value = 218)] + ERR_BLACK_CHAT, + [ProtoEnum(Name = "ERR_PVP_ROLE_INBATTLE", Value = 219)] + ERR_PVP_ROLE_INBATTLE, + [ProtoEnum(Name = "ERR_FRIEND_SELF", Value = 220)] + ERR_FRIEND_SELF, + [ProtoEnum(Name = "ERR_BLACK_MAX", Value = 221)] + ERR_BLACK_MAX, + [ProtoEnum(Name = "ERR_EMBLEM_NOIDENTIFY", Value = 222)] + ERR_EMBLEM_NOIDENTIFY, + [ProtoEnum(Name = "ERR_EMBLEM_NOTHIRDSLOT", Value = 223)] + ERR_EMBLEM_NOTHIRDSLOT, + [ProtoEnum(Name = "ERR_EMBLEM_CANTIDENTIFY", Value = 224)] + ERR_EMBLEM_CANTIDENTIFY, + [ProtoEnum(Name = "GUILD_SKILL_STUDY_LEVEL_LIMIT", Value = 225)] + GUILD_SKILL_STUDY_LEVEL_LIMIT, + [ProtoEnum(Name = "GUILD_SKILL_GUILD_LEVEL_LIMIT", Value = 226)] + GUILD_SKILL_GUILD_LEVEL_LIMIT, + [ProtoEnum(Name = "ERR_GUILD_EXP_LIMIT", Value = 227)] + ERR_GUILD_EXP_LIMIT, + [ProtoEnum(Name = "ERR_REVIVE_MAXNUM", Value = 228)] + ERR_REVIVE_MAXNUM, + [ProtoEnum(Name = "ERR_QA_OVER_NAME_TIME", Value = 229)] + ERR_QA_OVER_NAME_TIME, + [ProtoEnum(Name = "ERR_QA_IN_OTHER_TYPE", Value = 230)] + ERR_QA_IN_OTHER_TYPE, + [ProtoEnum(Name = "ERR_JADE_MINEQUIPLEVEL", Value = 231)] + ERR_JADE_MINEQUIPLEVEL, + [ProtoEnum(Name = "ERR_SWEEP_POWERPOINT_LESS", Value = 232)] + ERR_SWEEP_POWERPOINT_LESS, + [ProtoEnum(Name = "ERR_SWEEP_TICKET_LESS", Value = 233)] + ERR_SWEEP_TICKET_LESS, + [ProtoEnum(Name = "ERR_ACCOUNT_INVALID", Value = 234)] + ERR_ACCOUNT_INVALID, + [ProtoEnum(Name = "ERR_JADE_WRONGTYPE", Value = 235)] + ERR_JADE_WRONGTYPE, + [ProtoEnum(Name = "ERR_SHOP_TIMELIMIT", Value = 236)] + ERR_SHOP_TIMELIMIT, + [ProtoEnum(Name = "ERR_SHOP_VIPLIMIT", Value = 237)] + ERR_SHOP_VIPLIMIT, + [ProtoEnum(Name = "ERR_SHOP_ARENALIMIT", Value = 238)] + ERR_SHOP_ARENALIMIT, + [ProtoEnum(Name = "ERR_SHOP_PKLIMIT", Value = 239)] + ERR_SHOP_PKLIMIT, + [ProtoEnum(Name = "ERR_SHOP_GUILDLIMIT", Value = 240)] + ERR_SHOP_GUILDLIMIT, + [ProtoEnum(Name = "ERR_AUDIO_NOT_EXIST", Value = 241)] + ERR_AUDIO_NOT_EXIST, + [ProtoEnum(Name = "ERR_SHOP_INVALID", Value = 242)] + ERR_SHOP_INVALID, + [ProtoEnum(Name = "ERR_WATCH_LIVEISOVER", Value = 243)] + ERR_WATCH_LIVEISOVER, + [ProtoEnum(Name = "ERR_WATCH_LIVEISFULL", Value = 244)] + ERR_WATCH_LIVEISFULL, + [ProtoEnum(Name = "ERR_TOWER_INSWEEP", Value = 245)] + ERR_TOWER_INSWEEP, + [ProtoEnum(Name = "ERR_TOWER_FLOOR_NOTENOUGH", Value = 246)] + ERR_TOWER_FLOOR_NOTENOUGH, + [ProtoEnum(Name = "ERR_DRAGON_TICKET_NOTENOUGH", Value = 247)] + ERR_DRAGON_TICKET_NOTENOUGH, + [ProtoEnum(Name = "ERR_WATCH_WAIT", Value = 248)] + ERR_WATCH_WAIT, + [ProtoEnum(Name = "ERR_OP_EXP_NOT_OPEN", Value = 249)] + ERR_OP_EXP_NOT_OPEN, + [ProtoEnum(Name = "ERR_TEAM_GODDESS_DAYCOUNT", Value = 250)] + ERR_TEAM_GODDESS_DAYCOUNT, + [ProtoEnum(Name = "ERR_TEAM_SEAL_TYPE", Value = 251)] + ERR_TEAM_SEAL_TYPE, + [ProtoEnum(Name = "ERR_DRAGON_PROGRESS_INVALID", Value = 252)] + ERR_DRAGON_PROGRESS_INVALID, + [ProtoEnum(Name = "ERR_TEAMBUY_DRAGONCOIN_LESS", Value = 253)] + ERR_TEAMBUY_DRAGONCOIN_LESS, + [ProtoEnum(Name = "ERR_JADE_REPLACE", Value = 254)] + ERR_JADE_REPLACE, + [ProtoEnum(Name = "ERR_PVP_TEAM_MATCH", Value = 255)] + ERR_PVP_TEAM_MATCH, + [ProtoEnum(Name = "ERR_GS_UNREADY", Value = 256)] + ERR_GS_UNREADY, + [ProtoEnum(Name = "ERR_INVALID_REQUEST", Value = 257)] + ERR_INVALID_REQUEST, + [ProtoEnum(Name = "ERR_PET_NOT_EXIST", Value = 258)] + ERR_PET_NOT_EXIST, + [ProtoEnum(Name = "ERR_PE_CAN_NOT_RELEASE", Value = 259)] + ERR_PE_CAN_NOT_RELEASE, + [ProtoEnum(Name = "ERR_PETSYS_NOT_OPEN", Value = 260)] + ERR_PETSYS_NOT_OPEN, + [ProtoEnum(Name = "ERR_PET_SEAT_NOT_ENOUGH", Value = 261)] + ERR_PET_SEAT_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_ACCOUNT_QUEUING", Value = 262)] + ERR_ACCOUNT_QUEUING, + [ProtoEnum(Name = "ERR_TITLE_MAX", Value = 263)] + ERR_TITLE_MAX, + [ProtoEnum(Name = "ERR_TITLE_LACKITEM", Value = 264)] + ERR_TITLE_LACKITEM, + [ProtoEnum(Name = "ERR_TITLE_PPTLIMIT", Value = 265)] + ERR_TITLE_PPTLIMIT, + [ProtoEnum(Name = "ERR_BLACK_REPEATED", Value = 266)] + ERR_BLACK_REPEATED, + [ProtoEnum(Name = "ERR_BLACK_SELF", Value = 267)] + ERR_BLACK_SELF, + [ProtoEnum(Name = "ERR_TEAM_LEADER_NOTHELPER", Value = 268)] + ERR_TEAM_LEADER_NOTHELPER, + [ProtoEnum(Name = "ERR_PET_IS_FULL", Value = 269)] + ERR_PET_IS_FULL, + [ProtoEnum(Name = "ERR_IBSHOP_LACKGOODS", Value = 270)] + ERR_IBSHOP_LACKGOODS, + [ProtoEnum(Name = "ERR_IBSHOP_LIMITCOUNT", Value = 271)] + ERR_IBSHOP_LIMITCOUNT, + [ProtoEnum(Name = "ERR_IBSHOP_LACKDIAMOND", Value = 272)] + ERR_IBSHOP_LACKDIAMOND, + [ProtoEnum(Name = "ERR_IBSHOP_LACKDRAGON", Value = 273)] + ERR_IBSHOP_LACKDRAGON, + [ProtoEnum(Name = "ERR_CHAT_PUNISH", Value = 274)] + ERR_CHAT_PUNISH, + [ProtoEnum(Name = "ERR_LOCKED_ROLE", Value = 275)] + ERR_LOCKED_ROLE, + [ProtoEnum(Name = "ERR_IBSHOP_ERRPARAM", Value = 276)] + ERR_IBSHOP_ERRPARAM, + [ProtoEnum(Name = "ERR_IBSHOP_BUYLV", Value = 277)] + ERR_IBSHOP_BUYLV, + [ProtoEnum(Name = "ERR_SPRITE_NOTFIND", Value = 278)] + ERR_SPRITE_NOTFIND, + [ProtoEnum(Name = "ERR_SPRITE_LEVELMAX", Value = 279)] + ERR_SPRITE_LEVELMAX, + [ProtoEnum(Name = "ERR_SPRITE_EVOLUTION_LEVELMAX", Value = 280)] + ERR_SPRITE_EVOLUTION_LEVELMAX, + [ProtoEnum(Name = "ERR_SPRITE_EVOLUTION_LEVELLIMIT", Value = 281)] + ERR_SPRITE_EVOLUTION_LEVELLIMIT, + [ProtoEnum(Name = "ERR_SPRITE_EVOLUTION_LACKOFCOST", Value = 282)] + ERR_SPRITE_EVOLUTION_LACKOFCOST, + [ProtoEnum(Name = "ERR_SPRITE_AWAKE_LACKOFCOST", Value = 283)] + ERR_SPRITE_AWAKE_LACKOFCOST, + [ProtoEnum(Name = "ERR_SPRITE_LEVELUP_LACKOFCOST", Value = 284)] + ERR_SPRITE_LEVELUP_LACKOFCOST, + [ProtoEnum(Name = "ERR_SPRITE_ALREADY_INFIGHT", Value = 285)] + ERR_SPRITE_ALREADY_INFIGHT, + [ProtoEnum(Name = "ERR_SPRITE_INFIGHT_FULL", Value = 286)] + ERR_SPRITE_INFIGHT_FULL, + [ProtoEnum(Name = "ERR_SPRITE_ALREADY_OUTFIGHT", Value = 287)] + ERR_SPRITE_ALREADY_OUTFIGHT, + [ProtoEnum(Name = "ERR_REVIVE_ITEMLIMIT", Value = 288)] + ERR_REVIVE_ITEMLIMIT, + [ProtoEnum(Name = "ERR_REVIVE_MONEYLIMIT", Value = 289)] + ERR_REVIVE_MONEYLIMIT, + [ProtoEnum(Name = "ERR_ENHANCE_NO_EQUIP_CAN_TRANSFORM", Value = 290)] + ERR_ENHANCE_NO_EQUIP_CAN_TRANSFORM, + [ProtoEnum(Name = "ERR_IBSHOP_VIPLEVEL", Value = 291)] + ERR_IBSHOP_VIPLEVEL, + [ProtoEnum(Name = "ERR_IBSHOP_OPENGROUP", Value = 292)] + ERR_IBSHOP_OPENGROUP, + [ProtoEnum(Name = "ERR_SPRITE_INFIGHT_SAMETYPE", Value = 293)] + ERR_SPRITE_INFIGHT_SAMETYPE, + [ProtoEnum(Name = "ERR_SMELT_MINLEVEL", Value = 294)] + ERR_SMELT_MINLEVEL, + [ProtoEnum(Name = "ERR_JADE_GOLDNOTENOUGH", Value = 295)] + ERR_JADE_GOLDNOTENOUGH, + [ProtoEnum(Name = "ATLAS_CARD_NOT_ENOUGH", Value = 296)] + ATLAS_CARD_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_AUCT_ITEM_LESS", Value = 297)] + ERR_AUCT_ITEM_LESS, + [ProtoEnum(Name = "ERR_AUCT_ITEM_LOCK", Value = 298)] + ERR_AUCT_ITEM_LOCK, + [ProtoEnum(Name = "ERR_AUCT_PRICE_NOTCHANGE", Value = 299)] + ERR_AUCT_PRICE_NOTCHANGE, + [ProtoEnum(Name = "ERR_LEVELSEAL_PROP_NOT_ENGOUTH", Value = 300)] + ERR_LEVELSEAL_PROP_NOT_ENGOUTH, + [ProtoEnum(Name = "ERR_AUCT_AUTOREFRESH_TIME", Value = 301)] + ERR_AUCT_AUTOREFRESH_TIME, + [ProtoEnum(Name = "ERR_ATLAS_NOT_BREAK", Value = 302)] + ERR_ATLAS_NOT_BREAK, + [ProtoEnum(Name = "ERR_LOGIN_NOT_IN_WHITE_LIST", Value = 303)] + ERR_LOGIN_NOT_IN_WHITE_LIST, + [ProtoEnum(Name = "ERR_TEAM_NOT_PASS", Value = 304)] + ERR_TEAM_NOT_PASS, + [ProtoEnum(Name = "ERR_QA_ALEADY_IN_ROOM", Value = 500)] + ERR_QA_ALEADY_IN_ROOM = 500, + [ProtoEnum(Name = "ERR_QA_NO_DATA", Value = 501)] + ERR_QA_NO_DATA, + [ProtoEnum(Name = "ERR_QA_LEVEL_NOT_ENOUGH", Value = 502)] + ERR_QA_LEVEL_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_QA_NOT_IN_TIME", Value = 503)] + ERR_QA_NOT_IN_TIME, + [ProtoEnum(Name = "ERR_QA_NO_GUILD", Value = 504)] + ERR_QA_NO_GUILD, + [ProtoEnum(Name = "ERR_QA_NO_COUNT", Value = 505)] + ERR_QA_NO_COUNT, + [ProtoEnum(Name = "ERR_TASK_NOT_ACCEPT", Value = 510)] + ERR_TASK_NOT_ACCEPT = 510, + [ProtoEnum(Name = "ERR_TASK_ALREADY_TAKE", Value = 511)] + ERR_TASK_ALREADY_TAKE, + [ProtoEnum(Name = "ERR_TASK_NOT_FOUND", Value = 512)] + ERR_TASK_NOT_FOUND, + [ProtoEnum(Name = "ERR_TASK_NOT_FINISH", Value = 513)] + ERR_TASK_NOT_FINISH, + [ProtoEnum(Name = "ERR_TASK_NO_TABLE", Value = 514)] + ERR_TASK_NO_TABLE, + [ProtoEnum(Name = "ERR_GUILD_LADDER_NOT_OPEN", Value = 515)] + ERR_GUILD_LADDER_NOT_OPEN, + [ProtoEnum(Name = "ERR_GARDEN_NOTEXIST_FARMLAND", Value = 516)] + ERR_GARDEN_NOTEXIST_FARMLAND, + [ProtoEnum(Name = "ERR_GARDEN_NOHARVESTSTATE", Value = 517)] + ERR_GARDEN_NOHARVESTSTATE, + [ProtoEnum(Name = "ERR_GARDEN_STEALEDTIMES_EXCEED", Value = 518)] + ERR_GARDEN_STEALEDTIMES_EXCEED, + [ProtoEnum(Name = "ERR_GARDEN_NOTEXIST_SEEDID", Value = 519)] + ERR_GARDEN_NOTEXIST_SEEDID, + [ProtoEnum(Name = "ERR_GARDEN_NOTEXIST_SPRITE", Value = 520)] + ERR_GARDEN_NOTEXIST_SPRITE, + [ProtoEnum(Name = "ERR_SKYCITY_NOT_OPEN", Value = 521)] + ERR_SKYCITY_NOT_OPEN, + [ProtoEnum(Name = "ERR_GMF_UP_INCOOL", Value = 522)] + ERR_GMF_UP_INCOOL, + [ProtoEnum(Name = "ERR_GMF_UP_FULL", Value = 523)] + ERR_GMF_UP_FULL, + [ProtoEnum(Name = "ERR_QA_NO_GUILD_ROOM", Value = 524)] + ERR_QA_NO_GUILD_ROOM, + [ProtoEnum(Name = "ERR_TEAM_ALREADY_INOTHERTEAM", Value = 525)] + ERR_TEAM_ALREADY_INOTHERTEAM, + [ProtoEnum(Name = "ERR_TEAM_IDIP", Value = 526)] + ERR_TEAM_IDIP, + [ProtoEnum(Name = "ERR_COMMENDWATCH_COUNTLIMIT", Value = 527)] + ERR_COMMENDWATCH_COUNTLIMIT, + [ProtoEnum(Name = "ERR_CARDMATCH_BEGINFAILED", Value = 528)] + ERR_CARDMATCH_BEGINFAILED, + [ProtoEnum(Name = "ERR_CARDMATCH_NOBEGIN", Value = 529)] + ERR_CARDMATCH_NOBEGIN, + [ProtoEnum(Name = "ERR_CARDMATCH_ENDSOON", Value = 530)] + ERR_CARDMATCH_ENDSOON, + [ProtoEnum(Name = "ERR_CARDMATCH_CHANGELIMIT", Value = 531)] + ERR_CARDMATCH_CHANGELIMIT, + [ProtoEnum(Name = "ERR_SKILL_PREPOINTLIMIT", Value = 532)] + ERR_SKILL_PREPOINTLIMIT, + [ProtoEnum(Name = "ERR_SPACTIVITY_TASK_NOT_COMPLETE", Value = 533)] + ERR_SPACTIVITY_TASK_NOT_COMPLETE, + [ProtoEnum(Name = "ERR_SPACTIVITY_TASK_GET", Value = 534)] + ERR_SPACTIVITY_TASK_GET, + [ProtoEnum(Name = "ERR_SPACTIVITY_NOPRIZE", Value = 535)] + ERR_SPACTIVITY_NOPRIZE, + [ProtoEnum(Name = "ERR_SPACTIVITY_NOTPRIZETIME", Value = 536)] + ERR_SPACTIVITY_NOTPRIZETIME, + [ProtoEnum(Name = "ERR_SPACTIVITY_NOTENOUGH_MONEY", Value = 537)] + ERR_SPACTIVITY_NOTENOUGH_MONEY, + [ProtoEnum(Name = "ERR_SPACTIVITY_PRIZE_GET", Value = 538)] + ERR_SPACTIVITY_PRIZE_GET, + [ProtoEnum(Name = "ERR_GARDEN_PLANT_CD", Value = 539)] + ERR_GARDEN_PLANT_CD, + [ProtoEnum(Name = "ERR_GARDEN_COOKING_EXCEED", Value = 540)] + ERR_GARDEN_COOKING_EXCEED, + [ProtoEnum(Name = "ERR_GARDEN_COOKINGLEVEL_LOW", Value = 541)] + ERR_GARDEN_COOKINGLEVEL_LOW, + [ProtoEnum(Name = "ERR_GARDEN_PLANT_CUL_ERR", Value = 542)] + ERR_GARDEN_PLANT_CUL_ERR, + [ProtoEnum(Name = "ERR_GARDEN_ERR_SEED", Value = 543)] + ERR_GARDEN_ERR_SEED, + [ProtoEnum(Name = "ERR_GARDEN_NOSEED", Value = 544)] + ERR_GARDEN_NOSEED, + [ProtoEnum(Name = "ERR_GARDEN_NOALLOW", Value = 545)] + ERR_GARDEN_NOALLOW, + [ProtoEnum(Name = "ERR_GMF_NOPOWER_KICK_LEADER", Value = 546)] + ERR_GMF_NOPOWER_KICK_LEADER, + [ProtoEnum(Name = "ERR_SPRITE_ALREADY_ISLEADER", Value = 547)] + ERR_SPRITE_ALREADY_ISLEADER, + [ProtoEnum(Name = "ERR_SPRITE_AWAKE_ROLE_LEVELLIMIT", Value = 548)] + ERR_SPRITE_AWAKE_ROLE_LEVELLIMIT, + [ProtoEnum(Name = "ERR_SPRITE_EVOLUTION_ROLE_LEVELLIMIT", Value = 549)] + ERR_SPRITE_EVOLUTION_ROLE_LEVELLIMIT, + [ProtoEnum(Name = "ERR_GUILD_ALREADY_BIND", Value = 550)] + ERR_GUILD_ALREADY_BIND, + [ProtoEnum(Name = "ERR_GUILD_NOT_BIND", Value = 551)] + ERR_GUILD_NOT_BIND, + [ProtoEnum(Name = "ERR_ALREADY_IN_QQGROUP", Value = 552)] + ERR_ALREADY_IN_QQGROUP, + [ProtoEnum(Name = "ERR_INSPIRE_COOLDOWN", Value = 553)] + ERR_INSPIRE_COOLDOWN, + [ProtoEnum(Name = "ERR_SKYCITY_IN_TEAM", Value = 554)] + ERR_SKYCITY_IN_TEAM, + [ProtoEnum(Name = "ERR_SKYCITY_TEAM_OUTTIME", Value = 555)] + ERR_SKYCITY_TEAM_OUTTIME, + [ProtoEnum(Name = "ERR_GMF_DOWN_FIGHTING", Value = 556)] + ERR_GMF_DOWN_FIGHTING, + [ProtoEnum(Name = "ERR_GMF_DOWN_HAVEFAILED", Value = 557)] + ERR_GMF_DOWN_HAVEFAILED, + [ProtoEnum(Name = "ERR_JADE_SAME_TYPE", Value = 558)] + ERR_JADE_SAME_TYPE, + [ProtoEnum(Name = "ERR_CHAT_BLACK_INSELF", Value = 559)] + ERR_CHAT_BLACK_INSELF, + [ProtoEnum(Name = "ERR_CHAT_BLACK_INOTHER", Value = 560)] + ERR_CHAT_BLACK_INOTHER, + [ProtoEnum(Name = "ERR_GARDEN_QUESTS_NOENOUGH", Value = 561)] + ERR_GARDEN_QUESTS_NOENOUGH, + [ProtoEnum(Name = "ERR_GARDEN_NOTINGARDEN", Value = 562)] + ERR_GARDEN_NOTINGARDEN, + [ProtoEnum(Name = "ERR_GARDEN_FOODBOOK_ACTIVED", Value = 563)] + ERR_GARDEN_FOODBOOK_ACTIVED, + [ProtoEnum(Name = "ERR_ROLE_LOGOUT", Value = 564)] + ERR_ROLE_LOGOUT, + [ProtoEnum(Name = "ERR_TEAM_INV_LOGOUT", Value = 565)] + ERR_TEAM_INV_LOGOUT, + [ProtoEnum(Name = "ERR_SKYCITY_LV", Value = 566)] + ERR_SKYCITY_LV, + [ProtoEnum(Name = "ERR_RESWAR_TEAM", Value = 567)] + ERR_RESWAR_TEAM, + [ProtoEnum(Name = "ERR_RESWAR_ACTIVITY", Value = 568)] + ERR_RESWAR_ACTIVITY, + [ProtoEnum(Name = "ERR_RESWAR_GROUP", Value = 569)] + ERR_RESWAR_GROUP, + [ProtoEnum(Name = "ERR_RESWAR_STATE", Value = 570)] + ERR_RESWAR_STATE, + [ProtoEnum(Name = "ERR_RESWAR_CD", Value = 571)] + ERR_RESWAR_CD, + [ProtoEnum(Name = "ERR_BAG_FULL", Value = 572)] + ERR_BAG_FULL, + [ProtoEnum(Name = "ERR_BAG_FULL_TAKEOFF_EQUIP", Value = 573)] + ERR_BAG_FULL_TAKEOFF_EQUIP, + [ProtoEnum(Name = "ERR_BAG_FULL_TAKEOFF_FASHION", Value = 574)] + ERR_BAG_FULL_TAKEOFF_FASHION, + [ProtoEnum(Name = "ERR_BAG_FULL_TAKEOFF_EMBLEM", Value = 575)] + ERR_BAG_FULL_TAKEOFF_EMBLEM, + [ProtoEnum(Name = "ERR_BAG_FULL_TAKEOFF_JADE", Value = 576)] + ERR_BAG_FULL_TAKEOFF_JADE, + [ProtoEnum(Name = "ERR_BAG_FULL_GIVE_MAIL_REWARD", Value = 577)] + ERR_BAG_FULL_GIVE_MAIL_REWARD, + [ProtoEnum(Name = "ERR_AUCT_PRICE_CHANGE", Value = 578)] + ERR_AUCT_PRICE_CHANGE, + [ProtoEnum(Name = "ERR_GMF_UPBATTLE_REPEAT", Value = 579)] + ERR_GMF_UPBATTLE_REPEAT, + [ProtoEnum(Name = "ERR_PANDORA_LACKOF_FIRE", Value = 580)] + ERR_PANDORA_LACKOF_FIRE, + [ProtoEnum(Name = "ERR_AUCT_AUCTOVER", Value = 581)] + ERR_AUCT_AUCTOVER, + [ProtoEnum(Name = "ERR_GOLDCLICK_LIMIT", Value = 582)] + ERR_GOLDCLICK_LIMIT, + [ProtoEnum(Name = "ERR_DRAGONCOIN_LIMIT", Value = 583)] + ERR_DRAGONCOIN_LIMIT, + [ProtoEnum(Name = "ERR_NOTGUILD", Value = 584)] + ERR_NOTGUILD, + [ProtoEnum(Name = "ERR_SCENE_NOT_PET", Value = 585)] + ERR_SCENE_NOT_PET, + [ProtoEnum(Name = "ERR_GUILDBONUS_ALLGET", Value = 586)] + ERR_GUILDBONUS_ALLGET, + [ProtoEnum(Name = "ERR_GUILDBUFF_GUILD", Value = 587)] + ERR_GUILDBUFF_GUILD, + [ProtoEnum(Name = "ERR_GUILDBUFF_POS", Value = 588)] + ERR_GUILDBUFF_POS, + [ProtoEnum(Name = "ERR_GUILDBUFF_CD", Value = 589)] + ERR_GUILDBUFF_CD, + [ProtoEnum(Name = "ERR_GUILDBUFF_ITEM", Value = 590)] + ERR_GUILDBUFF_ITEM, + [ProtoEnum(Name = "ERR_RESWAR_LEADER", Value = 591)] + ERR_RESWAR_LEADER, + [ProtoEnum(Name = "ERR_RESWAR_LACKPLAYER", Value = 592)] + ERR_RESWAR_LACKPLAYER, + [ProtoEnum(Name = "ERR_TEAM_INV_IN_FAMILY", Value = 593)] + ERR_TEAM_INV_IN_FAMILY, + [ProtoEnum(Name = "ERR_TASK_NO_ASK_HELPNUM", Value = 594)] + ERR_TASK_NO_ASK_HELPNUM, + [ProtoEnum(Name = "ERR_TASK_CANNOT_HELP", Value = 595)] + ERR_TASK_CANNOT_HELP, + [ProtoEnum(Name = "ERR_TASK_ALREADY_FINISH", Value = 596)] + ERR_TASK_ALREADY_FINISH, + [ProtoEnum(Name = "ERR_TASK_ALREADY_ASKED", Value = 597)] + ERR_TASK_ALREADY_ASKED, + [ProtoEnum(Name = "ERR_GARDEN_NOEXIST_FOODID", Value = 598)] + ERR_GARDEN_NOEXIST_FOODID, + [ProtoEnum(Name = "ERR_GARDEN_FOOD_NOALLOW", Value = 599)] + ERR_GARDEN_FOOD_NOALLOW, + [ProtoEnum(Name = "ERR_TASK_NO_ASKINFO", Value = 600)] + ERR_TASK_NO_ASKINFO, + [ProtoEnum(Name = "ERR_TASK_ASKITEM_REFRESH", Value = 601)] + ERR_TASK_ASKITEM_REFRESH, + [ProtoEnum(Name = "ERR_ANTI_CHEAT_DETECTED", Value = 305)] + ERR_ANTI_CHEAT_DETECTED = 305, + [ProtoEnum(Name = "ERR_MS_UNREADY", Value = 306)] + ERR_MS_UNREADY, + [ProtoEnum(Name = "ERR_PET_EXP_EQUAL", Value = 602)] + ERR_PET_EXP_EQUAL = 602, + [ProtoEnum(Name = "ERR_TASK_CANNT_HELPSELF", Value = 603)] + ERR_TASK_CANNT_HELPSELF, + [ProtoEnum(Name = "CanNotDelInGuildArena", Value = 604)] + CanNotDelInGuildArena, + [ProtoEnum(Name = "ERR_RESWAR_TEAMFIGHTING", Value = 605)] + ERR_RESWAR_TEAMFIGHTING, + [ProtoEnum(Name = "ERR_TASK_CANNOT_GIVEUP", Value = 606)] + ERR_TASK_CANNOT_GIVEUP, + [ProtoEnum(Name = "ERR_GUILD_INHERIT_NOT_EXIT", Value = 607)] + ERR_GUILD_INHERIT_NOT_EXIT, + [ProtoEnum(Name = "ERR_GUILD_INHERIT_GAP", Value = 608)] + ERR_GUILD_INHERIT_GAP, + [ProtoEnum(Name = "ERR_GUILD_INHERIT_LVL", Value = 609)] + ERR_GUILD_INHERIT_LVL, + [ProtoEnum(Name = "ERR_GUILD_INHERIT_TIMES", Value = 610)] + ERR_GUILD_INHERIT_TIMES, + [ProtoEnum(Name = "ERR_GUILD_INHERIT_MAP_WRONG", Value = 611)] + ERR_GUILD_INHERIT_MAP_WRONG, + [ProtoEnum(Name = "ERR_TEAMCOST_DIAMOND", Value = 612)] + ERR_TEAMCOST_DIAMOND, + [ProtoEnum(Name = "ERR_TEAMCOST_DRAGON", Value = 613)] + ERR_TEAMCOST_DRAGON, + [ProtoEnum(Name = "ERR_TEAM_PPTLIMIT", Value = 614)] + ERR_TEAM_PPTLIMIT, + [ProtoEnum(Name = "ERR_GUILD_INHERIT_CD_TIME", Value = 615)] + ERR_GUILD_INHERIT_CD_TIME, + [ProtoEnum(Name = "ERR_MS_UNNORMAL", Value = 616)] + ERR_MS_UNNORMAL, + [ProtoEnum(Name = "ERR_TEAMCOST_NUMLIMIT", Value = 617)] + ERR_TEAMCOST_NUMLIMIT, + [ProtoEnum(Name = "ERR_STATE_CANTCHANGE", Value = 618)] + ERR_STATE_CANTCHANGE, + [ProtoEnum(Name = "ERR_TEAM_MEMCOUNT_OVER", Value = 619)] + ERR_TEAM_MEMCOUNT_OVER, + [ProtoEnum(Name = "ERR_GUILD_INHERIT_CAN_NOT", Value = 620)] + ERR_GUILD_INHERIT_CAN_NOT, + [ProtoEnum(Name = "ERR_SYS_NOTOPEN", Value = 621)] + ERR_SYS_NOTOPEN, + [ProtoEnum(Name = "ERR_NAME_ALLNUM", Value = 622)] + ERR_NAME_ALLNUM, + [ProtoEnum(Name = "ERR_NAME_TOO_LONG", Value = 623)] + ERR_NAME_TOO_LONG, + [ProtoEnum(Name = "ERR_NAME_TOO_SHORT", Value = 624)] + ERR_NAME_TOO_SHORT, + [ProtoEnum(Name = "ERR_GUILD_INHERIT_OTHER_TIMES", Value = 625)] + ERR_GUILD_INHERIT_OTHER_TIMES, + [ProtoEnum(Name = "ERR_NEED_FIRST_PROMOTE", Value = 626)] + ERR_NEED_FIRST_PROMOTE, + [ProtoEnum(Name = "ERR_FM_NOANCHOR", Value = 627)] + ERR_FM_NOANCHOR, + [ProtoEnum(Name = "ERR_CAN_NOT_USE_PET_SKILL_BOOK", Value = 628)] + ERR_CAN_NOT_USE_PET_SKILL_BOOK, + [ProtoEnum(Name = "ERR_ENCHANT_MINLEVEL", Value = 629)] + ERR_ENCHANT_MINLEVEL, + [ProtoEnum(Name = "ERR_ENCHANT_LACKITEM", Value = 631)] + ERR_ENCHANT_LACKITEM = 631, + [ProtoEnum(Name = "ERR_ENCHANT_WRONGPOS", Value = 632)] + ERR_ENCHANT_WRONGPOS, + [ProtoEnum(Name = "ERR_PARTNER_NUM_INVALID", Value = 650)] + ERR_PARTNER_NUM_INVALID = 650, + [ProtoEnum(Name = "ERR_PARTNER_FDEGREE_NOT_ENOUGH", Value = 651)] + ERR_PARTNER_FDEGREE_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_PARTNER_NOT_IN_MAIN_HALL", Value = 652)] + ERR_PARTNER_NOT_IN_MAIN_HALL, + [ProtoEnum(Name = "ERR_PARTNER_NOT_ENOUGH_DRAGON", Value = 653)] + ERR_PARTNER_NOT_ENOUGH_DRAGON, + [ProtoEnum(Name = "ERR_PARTNER_CD_NOT_OK", Value = 654)] + ERR_PARTNER_CD_NOT_OK, + [ProtoEnum(Name = "ERR_HORSE_ACTIVITY", Value = 655)] + ERR_HORSE_ACTIVITY, + [ProtoEnum(Name = "ERR_TEAM_WEEK_NEST_EXP", Value = 656)] + ERR_TEAM_WEEK_NEST_EXP, + [ProtoEnum(Name = "ERR_PARTNER_CHEST_TAKED", Value = 657)] + ERR_PARTNER_CHEST_TAKED, + [ProtoEnum(Name = "ERR_PARTNER_NO_PARTNER", Value = 658)] + ERR_PARTNER_NO_PARTNER, + [ProtoEnum(Name = "ERR_PARTNER_LN_NOT_ENOUGH", Value = 659)] + ERR_PARTNER_LN_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_PARTNER_ALREADY_HAS", Value = 660)] + ERR_PARTNER_ALREADY_HAS, + [ProtoEnum(Name = "ERR_PARTNER_ALREADY_APPLY_LEAVE", Value = 661)] + ERR_PARTNER_ALREADY_APPLY_LEAVE, + [ProtoEnum(Name = "ERR_PARTNER_NOT_APPLY_LEAVE", Value = 662)] + ERR_PARTNER_NOT_APPLY_LEAVE, + [ProtoEnum(Name = "ERR_INVFIGHT_ROLE_LOGOUT", Value = 663)] + ERR_INVFIGHT_ROLE_LOGOUT, + [ProtoEnum(Name = "ERR_INVFIGHT_ME_LEVEL", Value = 664)] + ERR_INVFIGHT_ME_LEVEL, + [ProtoEnum(Name = "ERR_INVFIGHT_ME_SCENE", Value = 665)] + ERR_INVFIGHT_ME_SCENE, + [ProtoEnum(Name = "ERR_INVFIGHT_OTHER_LEVEL", Value = 666)] + ERR_INVFIGHT_OTHER_LEVEL, + [ProtoEnum(Name = "ERR_INVFIGHT_OTHER_SCENE", Value = 667)] + ERR_INVFIGHT_OTHER_SCENE, + [ProtoEnum(Name = "ERR_INVFIGHT_INV_REPEAT", Value = 668)] + ERR_INVFIGHT_INV_REPEAT, + [ProtoEnum(Name = "ERR_INVFIGHT_INV_COUNT_MAX", Value = 669)] + ERR_INVFIGHT_INV_COUNT_MAX, + [ProtoEnum(Name = "ERR_INVFIGHT_INV_TIME_OVER", Value = 670)] + ERR_INVFIGHT_INV_TIME_OVER, + [ProtoEnum(Name = "ERR_INVFIGHT_INV_DELAY", Value = 671)] + ERR_INVFIGHT_INV_DELAY, + [ProtoEnum(Name = "ERR_DOODAD_FULL", Value = 672)] + ERR_DOODAD_FULL, + [ProtoEnum(Name = "ERR_INVFIGHT_INV_TO_COUNT_MAX", Value = 673)] + ERR_INVFIGHT_INV_TO_COUNT_MAX, + [ProtoEnum(Name = "ERR_PARTNER_ITEM_NOT_FOUND", Value = 674)] + ERR_PARTNER_ITEM_NOT_FOUND, + [ProtoEnum(Name = "ERR_PARTNER_OTHER_BUYING", Value = 675)] + ERR_PARTNER_OTHER_BUYING, + [ProtoEnum(Name = "ERR_PARTNER_SHOP_NO_COUNT", Value = 676)] + ERR_PARTNER_SHOP_NO_COUNT, + [ProtoEnum(Name = "ERR_FRIEND_IS_PARTNER", Value = 677)] + ERR_FRIEND_IS_PARTNER, + [ProtoEnum(Name = "ERR_PANDORA_LACKOF_HEART", Value = 678)] + ERR_PANDORA_LACKOF_HEART, + [ProtoEnum(Name = "ERR_SELF_HAS_ALLIANCE", Value = 679)] + ERR_SELF_HAS_ALLIANCE, + [ProtoEnum(Name = "ERR_OTHER_HAS_ALLIANCE", Value = 680)] + ERR_OTHER_HAS_ALLIANCE, + [ProtoEnum(Name = "ERR_AUDIOTXT", Value = 681)] + ERR_AUDIOTXT, + [ProtoEnum(Name = "ERR_MENTOR_ASKMAXTODAY", Value = 682)] + ERR_MENTOR_ASKMAXTODAY, + [ProtoEnum(Name = "ERR_MENTOR_REFRESHTOOFAST", Value = 683)] + ERR_MENTOR_REFRESHTOOFAST, + [ProtoEnum(Name = "ERR_MENTOR_OTHER_ONLINE", Value = 684)] + ERR_MENTOR_OTHER_ONLINE, + [ProtoEnum(Name = "ERR_PARTNER_LEVEL_NOT_ENOUGH", Value = 685)] + ERR_PARTNER_LEVEL_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_GCASTLE_NOT_IN_ACT", Value = 686)] + ERR_GCASTLE_NOT_IN_ACT, + [ProtoEnum(Name = "ERR_GCASTLE_NOT_IN_FIGHT", Value = 687)] + ERR_GCASTLE_NOT_IN_FIGHT, + [ProtoEnum(Name = "ERR_GCASTLE_ROLE_FULL", Value = 688)] + ERR_GCASTLE_ROLE_FULL, + [ProtoEnum(Name = "ERR_CARDMATCH_SIGNUP_LIMIT", Value = 689)] + ERR_CARDMATCH_SIGNUP_LIMIT, + [ProtoEnum(Name = "ERR_GUILDAUCT_PUBLIC_TIME", Value = 690)] + ERR_GUILDAUCT_PUBLIC_TIME, + [ProtoEnum(Name = "ERR_FASHIONCOMPOSE_TIMELIMIT", Value = 691)] + ERR_FASHIONCOMPOSE_TIMELIMIT, + [ProtoEnum(Name = "ERR_FASHIONCOMPOSE_QUALITY", Value = 692)] + ERR_FASHIONCOMPOSE_QUALITY, + [ProtoEnum(Name = "ERR_FASHIONCOMPOSE_FAILED", Value = 693)] + ERR_FASHIONCOMPOSE_FAILED, + [ProtoEnum(Name = "ERR_FASHIONCOMPOSE_POS", Value = 694)] + ERR_FASHIONCOMPOSE_POS, + [ProtoEnum(Name = "ERR_RESWAR_LEAVETEAM", Value = 695)] + ERR_RESWAR_LEAVETEAM, + [ProtoEnum(Name = "ERR_RECONNECT_FAIL", Value = 696)] + ERR_RECONNECT_FAIL, + [ProtoEnum(Name = "ERR_CANTCHOOSEHERO", Value = 697)] + ERR_CANTCHOOSEHERO, + [ProtoEnum(Name = "ERR_HERO_INVALID", Value = 698)] + ERR_HERO_INVALID, + [ProtoEnum(Name = "ERR_TEAM_SERVER_OPEN_TIME", Value = 699)] + ERR_TEAM_SERVER_OPEN_TIME, + [ProtoEnum(Name = "ERR_AUDIO_CHAT", Value = 700)] + ERR_AUDIO_CHAT, + [ProtoEnum(Name = "ERR_HERO_LACKMONEY", Value = 701)] + ERR_HERO_LACKMONEY, + [ProtoEnum(Name = "ERR_HEROBATTLE_CANTGETPRIZE", Value = 702)] + ERR_HEROBATTLE_CANTGETPRIZE, + [ProtoEnum(Name = "ERR_HEROBATTLE_ALREADYGET", Value = 703)] + ERR_HEROBATTLE_ALREADYGET, + [ProtoEnum(Name = "ERR_CAN_NOT_DEL_IN_GUILD_TERRITOYR", Value = 704)] + ERR_CAN_NOT_DEL_IN_GUILD_TERRITOYR, + [ProtoEnum(Name = "ERR_HORSE_TEAM", Value = 705)] + ERR_HORSE_TEAM, + [ProtoEnum(Name = "ERR_GCASTLE_ROLE_LEVEL", Value = 706)] + ERR_GCASTLE_ROLE_LEVEL, + [ProtoEnum(Name = "ERR_CAN_INGORE", Value = 707)] + ERR_CAN_INGORE, + [ProtoEnum(Name = "ERR_LEAGUE_NOT_IN_TEAM", Value = 708)] + ERR_LEAGUE_NOT_IN_TEAM, + [ProtoEnum(Name = "ERR_LEAGUE_ALREADY_HAS_TEAM", Value = 709)] + ERR_LEAGUE_ALREADY_HAS_TEAM, + [ProtoEnum(Name = "ERR_LEAGUE_TEAM_ROLE_NUM_INVALID", Value = 710)] + ERR_LEAGUE_TEAM_ROLE_NUM_INVALID, + [ProtoEnum(Name = "ERR_LEAGUE_HAS_NO_TEAM", Value = 711)] + ERR_LEAGUE_HAS_NO_TEAM, + [ProtoEnum(Name = "ERR_LEAGUE_TEAM_NOT_EXIST", Value = 712)] + ERR_LEAGUE_TEAM_NOT_EXIST, + [ProtoEnum(Name = "ERR_GARDEN_STEAL_LIMIT", Value = 713)] + ERR_GARDEN_STEAL_LIMIT, + [ProtoEnum(Name = "ERR_LEAGUE_TEAM_IN_MATCH", Value = 714)] + ERR_LEAGUE_TEAM_IN_MATCH, + [ProtoEnum(Name = "ERR_LEAGUE_TEAM_NOT_IN_MATCH", Value = 715)] + ERR_LEAGUE_TEAM_NOT_IN_MATCH, + [ProtoEnum(Name = "ERR_SKILL_NEED_EXPRESKILL", Value = 716)] + ERR_SKILL_NEED_EXPRESKILL, + [ProtoEnum(Name = "ERR_EQUIP_CANTFORGE", Value = 717)] + ERR_EQUIP_CANTFORGE, + [ProtoEnum(Name = "ERR_EQUIP_FORGE_LACK_ITEM", Value = 718)] + ERR_EQUIP_FORGE_LACK_ITEM, + [ProtoEnum(Name = "ERR_EQUIP_FORGE_LACK_STONE", Value = 719)] + ERR_EQUIP_FORGE_LACK_STONE, + [ProtoEnum(Name = "ERR_LEAGUE_ROLE_ALREADY_UP", Value = 720)] + ERR_LEAGUE_ROLE_ALREADY_UP, + [ProtoEnum(Name = "ERR_LEAGUE_ROLE_FIGHTING", Value = 721)] + ERR_LEAGUE_ROLE_FIGHTING, + [ProtoEnum(Name = "ERR_LEAGUE_ROLE_ALREADY_BATTLE", Value = 722)] + ERR_LEAGUE_ROLE_ALREADY_BATTLE, + [ProtoEnum(Name = "ERR_REQUEST_REPEAT", Value = 723)] + ERR_REQUEST_REPEAT, + [ProtoEnum(Name = "ERR_EQUIP_FORGE_FAILED", Value = 724)] + ERR_EQUIP_FORGE_FAILED, + [ProtoEnum(Name = "ERR_NOMAIL_GETREWARD", Value = 725)] + ERR_NOMAIL_GETREWARD, + [ProtoEnum(Name = "ERR_MIDAS_FAILED", Value = 726)] + ERR_MIDAS_FAILED, + [ProtoEnum(Name = "ERR_LEAGUE_TEAM_IN_BATTLE", Value = 727)] + ERR_LEAGUE_TEAM_IN_BATTLE, + [ProtoEnum(Name = "ERR_ENCHANT_NOTHAVE", Value = 728)] + ERR_ENCHANT_NOTHAVE, + [ProtoEnum(Name = "ERR_ENCHANT_ALREADYHAVE", Value = 729)] + ERR_ENCHANT_ALREADYHAVE, + [ProtoEnum(Name = "ERR_ENCHANT_TRANSFER_LEVEL_LIMIT", Value = 730)] + ERR_ENCHANT_TRANSFER_LEVEL_LIMIT, + [ProtoEnum(Name = "ERR_FM_NOINAUDIO", Value = 731)] + ERR_FM_NOINAUDIO, + [ProtoEnum(Name = "ERR_FM_NOINROOM", Value = 732)] + ERR_FM_NOINROOM, + [ProtoEnum(Name = "ERR_CHANGEPRO_LEVEL", Value = 733)] + ERR_CHANGEPRO_LEVEL, + [ProtoEnum(Name = "ERR_CHANGEPRO_TIME", Value = 734)] + ERR_CHANGEPRO_TIME, + [ProtoEnum(Name = "ERR_CHANGEPRO_COUNT", Value = 735)] + ERR_CHANGEPRO_COUNT, + [ProtoEnum(Name = "ERR_CHANGEPRO_INVALID", Value = 736)] + ERR_CHANGEPRO_INVALID, + [ProtoEnum(Name = "ERR_CHANGEPRO_SAMEPRO", Value = 737)] + ERR_CHANGEPRO_SAMEPRO, + [ProtoEnum(Name = "ERR_CHANGEPRO_ITEMLIMIT", Value = 738)] + ERR_CHANGEPRO_ITEMLIMIT, + [ProtoEnum(Name = "ERR_SMELT_MAXVALUE", Value = 739)] + ERR_SMELT_MAXVALUE, + [ProtoEnum(Name = "ERR_SPRITE_AWAKE_MAX", Value = 740)] + ERR_SPRITE_AWAKE_MAX, + [ProtoEnum(Name = "ERR_CHANGEPRO_KICK", Value = 741)] + ERR_CHANGEPRO_KICK, + [ProtoEnum(Name = "ERR_LEAGUE_NOT_IN_MATCH_TIME", Value = 742)] + ERR_LEAGUE_NOT_IN_MATCH_TIME, + [ProtoEnum(Name = "ERR_LEAGUE_TEAM_NOT_IN_BATTLE", Value = 743)] + ERR_LEAGUE_TEAM_NOT_IN_BATTLE, + [ProtoEnum(Name = "ERR_SPRITE_TRAIN_MAX", Value = 744)] + ERR_SPRITE_TRAIN_MAX, + [ProtoEnum(Name = "ERR_SPRITE_TRAIN_CHOOSEMAX", Value = 745)] + ERR_SPRITE_TRAIN_CHOOSEMAX, + [ProtoEnum(Name = "ERR_SPRITE_TRAIN_LACKITEM", Value = 746)] + ERR_SPRITE_TRAIN_LACKITEM, + [ProtoEnum(Name = "ERR_SPRITE_NOTTRAIN", Value = 747)] + ERR_SPRITE_NOTTRAIN, + [ProtoEnum(Name = "ERR_SPRITE_RESETTRAIN_LACKITEM", Value = 748)] + ERR_SPRITE_RESETTRAIN_LACKITEM, + [ProtoEnum(Name = "ERR_LEAGUE_ALREADY_FIGHTED", Value = 749)] + ERR_LEAGUE_ALREADY_FIGHTED, + [ProtoEnum(Name = "ERR_LEAGUE_NOT_IN_APPLY_TIME", Value = 750)] + ERR_LEAGUE_NOT_IN_APPLY_TIME, + [ProtoEnum(Name = "ERR_HORSE_INTEAM", Value = 751)] + ERR_HORSE_INTEAM, + [ProtoEnum(Name = "ERR_LEAGUE_INV_NOT_IN_TEAM", Value = 752)] + ERR_LEAGUE_INV_NOT_IN_TEAM, + [ProtoEnum(Name = "ERR_LEAGUE_INV_ALREADY_HAS_TEAM", Value = 753)] + ERR_LEAGUE_INV_ALREADY_HAS_TEAM, + [ProtoEnum(Name = "ERR_SPRITE_TRAIN_NOT_ENOUGH", Value = 754)] + ERR_SPRITE_TRAIN_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_DECLAREWAR_OUT_TIME", Value = 756)] + ERR_DECLAREWAR_OUT_TIME = 756, + [ProtoEnum(Name = "ERR_LEAGUE_TEAM_CANNOT_CROSS", Value = 757)] + ERR_LEAGUE_TEAM_CANNOT_CROSS, + [ProtoEnum(Name = "ERR_DECLARATION_TOO_LONG", Value = 758)] + ERR_DECLARATION_TOO_LONG, + [ProtoEnum(Name = "ERR_CROSS_ZONE_UNUSABLE", Value = 759)] + ERR_CROSS_ZONE_UNUSABLE, + [ProtoEnum(Name = "ERR_NOT_DEL_GUILD_IN_TERR", Value = 760)] + ERR_NOT_DEL_GUILD_IN_TERR, + [ProtoEnum(Name = "ERR_GCASTLE_FIGHT_END", Value = 761)] + ERR_GCASTLE_FIGHT_END, + [ProtoEnum(Name = "ERR_CAREER_PVP_NOTOPEN", Value = 762)] + ERR_CAREER_PVP_NOTOPEN, + [ProtoEnum(Name = "ERR_APOLLO_CDN", Value = 763)] + ERR_APOLLO_CDN, + [ProtoEnum(Name = "ERR_LEAGUE_HAS_MEMBER_NOT_TEAM", Value = 764)] + ERR_LEAGUE_HAS_MEMBER_NOT_TEAM, + [ProtoEnum(Name = "ERR_POK_MATCH_ENDSOON", Value = 765)] + ERR_POK_MATCH_ENDSOON, + [ProtoEnum(Name = "ERR_QUESTCAREER_NOT_ONLINE", Value = 766)] + ERR_QUESTCAREER_NOT_ONLINE, + [ProtoEnum(Name = "ERR_MIDAS_BALANCE_NOTENOUTH", Value = 767)] + ERR_MIDAS_BALANCE_NOTENOUTH, + [ProtoEnum(Name = "ERR_HAS_JOIN_OTHER_GUILD_BOSS", Value = 768)] + ERR_HAS_JOIN_OTHER_GUILD_BOSS, + [ProtoEnum(Name = "ERR_AUTH_TOKEN_INVALID", Value = 769)] + ERR_AUTH_TOKEN_INVALID, + [ProtoEnum(Name = "ERR_TEAM_TICKET_LESS", Value = 770)] + ERR_TEAM_TICKET_LESS, + [ProtoEnum(Name = "ERR_TEAM_USE_TICKET_COUNT_LESS", Value = 771)] + ERR_TEAM_USE_TICKET_COUNT_LESS, + [ProtoEnum(Name = "ERR_TEAM_TICKET_CONFIG", Value = 772)] + ERR_TEAM_TICKET_CONFIG, + [ProtoEnum(Name = "ERR_TEAM_TICKET_SEAL", Value = 773)] + ERR_TEAM_TICKET_SEAL, + [ProtoEnum(Name = "ERR_INVALID_IBBUY", Value = 774)] + ERR_INVALID_IBBUY, + [ProtoEnum(Name = "ERR_CROSS_IBBUY", Value = 775)] + ERR_CROSS_IBBUY, + [ProtoEnum(Name = "ERR_GUILD_NAME_NULL", Value = 776)] + ERR_GUILD_NAME_NULL, + [ProtoEnum(Name = "ERR_GUILD_LOCK_NAME", Value = 777)] + ERR_GUILD_LOCK_NAME, + [ProtoEnum(Name = "ERR_ARGENTA_DAILY_GET", Value = 778)] + ERR_ARGENTA_DAILY_GET, + [ProtoEnum(Name = "ERR_WORLDBOSSGUILD_COUNTLIMIT", Value = 779)] + ERR_WORLDBOSSGUILD_COUNTLIMIT, + [ProtoEnum(Name = "ERR_WORLDBOSSGUILD_UNMATCH", Value = 780)] + ERR_WORLDBOSSGUILD_UNMATCH, + [ProtoEnum(Name = "ERR_HERO_EXPERIENCE_HAVE", Value = 781)] + ERR_HERO_EXPERIENCE_HAVE, + [ProtoEnum(Name = "ERR_PLATSHARE_FAILED", Value = 782)] + ERR_PLATSHARE_FAILED, + [ProtoEnum(Name = "ERR_HERO_ALREADY_CHOSEN", Value = 783)] + ERR_HERO_ALREADY_CHOSEN, + [ProtoEnum(Name = "ERR_SKY_NOT_TEAM_MEMBER", Value = 784)] + ERR_SKY_NOT_TEAM_MEMBER, + [ProtoEnum(Name = "ERR_SKY_ALREADY_HAS_TEAM", Value = 785)] + ERR_SKY_ALREADY_HAS_TEAM, + [ProtoEnum(Name = "ERR_SKY_HAS_NO_TEAM", Value = 786)] + ERR_SKY_HAS_NO_TEAM, + [ProtoEnum(Name = "ERR_SKY_INV_NOT_TEAM_MEMBER", Value = 787)] + ERR_SKY_INV_NOT_TEAM_MEMBER, + [ProtoEnum(Name = "ERR_SKY_TEAM_IN_MATCH", Value = 788)] + ERR_SKY_TEAM_IN_MATCH, + [ProtoEnum(Name = "ERR_SKY_INV_ALREADY_HAS_TEAM", Value = 789)] + ERR_SKY_INV_ALREADY_HAS_TEAM, + [ProtoEnum(Name = "ERR_SKY_TEAM_ROLE_NUM_INVALID", Value = 790)] + ERR_SKY_TEAM_ROLE_NUM_INVALID, + [ProtoEnum(Name = "ERR_SKY_TEAM_IN_BATTLE", Value = 791)] + ERR_SKY_TEAM_IN_BATTLE, + [ProtoEnum(Name = "ERR_SKY_HAS_NOT_TEAM_MEMBER", Value = 792)] + ERR_SKY_HAS_NOT_TEAM_MEMBER, + [ProtoEnum(Name = "ERR_MENTOR_COMPLETE_OTHER_OFFLINE_NEED_DAYS", Value = 793)] + ERR_MENTOR_COMPLETE_OTHER_OFFLINE_NEED_DAYS, + [ProtoEnum(Name = "ERR_MENTOR_COMPLETE_IN_RELATION_NEED_DAYS", Value = 794)] + ERR_MENTOR_COMPLETE_IN_RELATION_NEED_DAYS, + [ProtoEnum(Name = "ERR_TRANSFERR_OTHER_ROLES_LEAVE", Value = 795)] + ERR_TRANSFERR_OTHER_ROLES_LEAVE, + [ProtoEnum(Name = "ERR_PLAT_BANACC", Value = 796)] + ERR_PLAT_BANACC, + [ProtoEnum(Name = "ERR_RESWAR_DIFF_GUILD", Value = 797)] + ERR_RESWAR_DIFF_GUILD, + [ProtoEnum(Name = "ERR_SKY_ALREADY_FIGHTED", Value = 798)] + ERR_SKY_ALREADY_FIGHTED, + [ProtoEnum(Name = "ERR_SKY_TEAM_NO_DAILY_NUM", Value = 799)] + ERR_SKY_TEAM_NO_DAILY_NUM, + [ProtoEnum(Name = "ERR_IBGIFT_NOT_ENOUCH", Value = 800)] + ERR_IBGIFT_NOT_ENOUCH, + [ProtoEnum(Name = "ERR_IBGIFT_DAY_MAXBUYCOUNT", Value = 801)] + ERR_IBGIFT_DAY_MAXBUYCOUNT, + [ProtoEnum(Name = "ERR_IBGIFT_FRIEND", Value = 802)] + ERR_IBGIFT_FRIEND, + [ProtoEnum(Name = "ERR_ALREADY_BUYAILEEN", Value = 803)] + ERR_ALREADY_BUYAILEEN, + [ProtoEnum(Name = "ERR_GUILDACMPPATY_NOTOPEN", Value = 804)] + ERR_GUILDACMPPATY_NOTOPEN, + [ProtoEnum(Name = "ERR_GUILDACMPPATY_ERRSTAGE", Value = 805)] + ERR_GUILDACMPPATY_ERRSTAGE, + [ProtoEnum(Name = "ERR_GUILDACMPPATY_DISTANCE", Value = 806)] + ERR_GUILDACMPPATY_DISTANCE, + [ProtoEnum(Name = "ERR_MENTOR_ALREADY_INRELATION", Value = 807)] + ERR_MENTOR_ALREADY_INRELATION, + [ProtoEnum(Name = "ERR_GUILDACMPPATY_SPRITE_ONTEXIST", Value = 808)] + ERR_GUILDACMPPATY_SPRITE_ONTEXIST, + [ProtoEnum(Name = "ERR_BAG_FULL_CANT_COMPOSE", Value = 809)] + ERR_BAG_FULL_CANT_COMPOSE, + [ProtoEnum(Name = "ERR_BAG_FULL_TAKEOFF_ARTIFACT", Value = 810)] + ERR_BAG_FULL_TAKEOFF_ARTIFACT, + [ProtoEnum(Name = "ERR_GIFTIB_NOTGOODS", Value = 811)] + ERR_GIFTIB_NOTGOODS, + [ProtoEnum(Name = "ERR_ARTIFACT_COMPOSE_LEVELNOTEQUAL", Value = 812)] + ERR_ARTIFACT_COMPOSE_LEVELNOTEQUAL, + [ProtoEnum(Name = "ERR_ARTIFACT_COMPOSE_QUALITYNOTEQUAL", Value = 813)] + ERR_ARTIFACT_COMPOSE_QUALITYNOTEQUAL, + [ProtoEnum(Name = "ERR_ARTIFACT_COMPOSE_NUMBER", Value = 814)] + ERR_ARTIFACT_COMPOSE_NUMBER, + [ProtoEnum(Name = "ERR_ARTIFACT_COMPOSE_CANTCOMPOSE", Value = 815)] + ERR_ARTIFACT_COMPOSE_CANTCOMPOSE, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_INVALIDREQUEST", Value = 816)] + ERR_CUSTOMBATTLE_INVALIDREQUEST, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_WORLDNOTOPEN", Value = 817)] + ERR_CUSTOMBATTLE_WORLDNOTOPEN, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_HASJOIN", Value = 818)] + ERR_CUSTOMBATTLE_HASJOIN, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_NOTJOIN", Value = 819)] + ERR_CUSTOMBATTLE_NOTJOIN, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_CREATFAILED", Value = 820)] + ERR_CUSTOMBATTLE_CREATFAILED, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_LEVELLIMIT", Value = 821)] + ERR_CUSTOMBATTLE_LEVELLIMIT, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_ROELNOTEXIST", Value = 822)] + ERR_CUSTOMBATTLE_ROELNOTEXIST, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_CREATECONFINVALID", Value = 823)] + ERR_CUSTOMBATTLE_CREATECONFINVALID, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_JOINNOTRELATED", Value = 824)] + ERR_CUSTOMBATTLE_JOINNOTRELATED, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_JOINNOTINREADYTIME", Value = 825)] + ERR_CUSTOMBATTLE_JOINNOTINREADYTIME, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_JOINFULL", Value = 826)] + ERR_CUSTOMBATTLE_JOINFULL, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_JOININVALIDPASSWORD", Value = 827)] + ERR_CUSTOMBATTLE_JOININVALIDPASSWORD, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_JOINFAILED", Value = 828)] + ERR_CUSTOMBATTLE_JOINFAILED, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_NOTCREATER", Value = 829)] + ERR_CUSTOMBATTLE_NOTCREATER, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_BATTLENOTFIND", Value = 830)] + ERR_CUSTOMBATTLE_BATTLENOTFIND, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_MATCHFAILED", Value = 831)] + ERR_CUSTOMBATTLE_MATCHFAILED, + [ProtoEnum(Name = "ERR_IBGIFT_MAX_COUNT", Value = 832)] + ERR_IBGIFT_MAX_COUNT, + [ProtoEnum(Name = "ERR_ENCHANT_NOTHAVEATTRID", Value = 833)] + ERR_ENCHANT_NOTHAVEATTRID, + [ProtoEnum(Name = "ERR_EXTRA_EMBLEM_SLOT_FULL", Value = 834)] + ERR_EXTRA_EMBLEM_SLOT_FULL, + [ProtoEnum(Name = "ERR_EXTRA_EMBLEM_SLOT_LEVEL", Value = 835)] + ERR_EXTRA_EMBLEM_SLOT_LEVEL, + [ProtoEnum(Name = "ERR_IBGIFT_OVERMAXUNRECV", Value = 836)] + ERR_IBGIFT_OVERMAXUNRECV, + [ProtoEnum(Name = "ERR_TEAM_CANNOT_FORNOW", Value = 837)] + ERR_TEAM_CANNOT_FORNOW, + [ProtoEnum(Name = "ERR_ALREADY_REPORTED", Value = 838)] + ERR_ALREADY_REPORTED, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_REWARDCD", Value = 839)] + ERR_CUSTOMBATTLE_REWARDCD, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_REWARDCANGET", Value = 840)] + ERR_CUSTOMBATTLE_REWARDCANGET, + [ProtoEnum(Name = "ERR_FASHION_ITEM_NOT_ENOUGH", Value = 841)] + ERR_FASHION_ITEM_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_GUILDPARTY_TRADIING", Value = 842)] + ERR_GUILDPARTY_TRADIING, + [ProtoEnum(Name = "ERR_SPACTIVITY_NOTOPEN", Value = 843)] + ERR_SPACTIVITY_NOTOPEN, + [ProtoEnum(Name = "ERR_BAGEXPAND_LESSITEM", Value = 844)] + ERR_BAGEXPAND_LESSITEM, + [ProtoEnum(Name = "ERR_BAGEXPAND_MAXCOUNT", Value = 845)] + ERR_BAGEXPAND_MAXCOUNT, + [ProtoEnum(Name = "ERR_SHOP_WEEKCOUNTLIMIT", Value = 846)] + ERR_SHOP_WEEKCOUNTLIMIT, + [ProtoEnum(Name = "ERR_GUILDBONUS_MAXNUM", Value = 847)] + ERR_GUILDBONUS_MAXNUM, + [ProtoEnum(Name = "ERR_SELF_GIFT_SELF", Value = 848)] + ERR_SELF_GIFT_SELF, + [ProtoEnum(Name = "ERR_IBSHOP_BUSY", Value = 849)] + ERR_IBSHOP_BUSY, + [ProtoEnum(Name = "ERR_ABYSS_LEVEL", Value = 850)] + ERR_ABYSS_LEVEL, + [ProtoEnum(Name = "ERR_GUILDCAMP_SELF_NOTIN", Value = 851)] + ERR_GUILDCAMP_SELF_NOTIN, + [ProtoEnum(Name = "ERR_GUILDCAMP_OTHER_NOTIN", Value = 852)] + ERR_GUILDCAMP_OTHER_NOTIN, + [ProtoEnum(Name = "ERR_SMELTCOUNT_ZERO", Value = 853)] + ERR_SMELTCOUNT_ZERO, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_REWARDHASGET", Value = 854)] + ERR_CUSTOMBATTLE_REWARDHASGET, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_PASSWORDINVALID", Value = 855)] + ERR_CUSTOMBATTLE_PASSWORDINVALID, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_CREATORLEAVE", Value = 856)] + ERR_CUSTOMBATTLE_CREATORLEAVE, + [ProtoEnum(Name = "ERR_GUILDCAMP_SPRITE_NOTEXIST", Value = 857)] + ERR_GUILDCAMP_SPRITE_NOTEXIST, + [ProtoEnum(Name = "ERR_TEAM_INV_TIMEOUT", Value = 858)] + ERR_TEAM_INV_TIMEOUT, + [ProtoEnum(Name = "ERR_FORGE_NOREPLACE", Value = 859)] + ERR_FORGE_NOREPLACE, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_NAMEMAX", Value = 860)] + ERR_CUSTOMBATTLE_NAMEMAX, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_NAMEMIN", Value = 861)] + ERR_CUSTOMBATTLE_NAMEMIN, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_NAMEINVALID", Value = 862)] + ERR_CUSTOMBATTLE_NAMEINVALID, + [ProtoEnum(Name = "ERR_REPORT_FORBID", Value = 863)] + ERR_REPORT_FORBID, + [ProtoEnum(Name = "ERR_TEAM_COST_CANCEL", Value = 864)] + ERR_TEAM_COST_CANCEL, + [ProtoEnum(Name = "ERR_TEAM_COST_WIN", Value = 865)] + ERR_TEAM_COST_WIN, + [ProtoEnum(Name = "ERR_CUSTOM_NOTOPEN", Value = 866)] + ERR_CUSTOM_NOTOPEN, + [ProtoEnum(Name = "ERR_CUSTOM_GMLIMIT", Value = 867)] + ERR_CUSTOM_GMLIMIT, + [ProtoEnum(Name = "ERR_MILITARY_TRIGGER_CHECK", Value = 868)] + ERR_MILITARY_TRIGGER_CHECK, + [ProtoEnum(Name = "ERR_MENTOR_INHERIT_ING", Value = 869)] + ERR_MENTOR_INHERIT_ING, + [ProtoEnum(Name = "ERR_MOBA_UPGRADENUM_EMPTY", Value = 870)] + ERR_MOBA_UPGRADENUM_EMPTY, + [ProtoEnum(Name = "ERR_FASHION_ERROR_COLOR", Value = 871)] + ERR_FASHION_ERROR_COLOR, + [ProtoEnum(Name = "ERR_FASHION_COLOR_UNLOOK", Value = 872)] + ERR_FASHION_COLOR_UNLOOK, + [ProtoEnum(Name = "ERR_FASHION_NO_HAIR", Value = 873)] + ERR_FASHION_NO_HAIR, + [ProtoEnum(Name = "ERR_FASHION_COLOR_LOOK", Value = 874)] + ERR_FASHION_COLOR_LOOK, + [ProtoEnum(Name = "ERR_MOBA_SIGNAL_TOOFAST", Value = 875)] + ERR_MOBA_SIGNAL_TOOFAST, + [ProtoEnum(Name = "ERR_NOT_BESPEAK", Value = 876)] + ERR_NOT_BESPEAK, + [ProtoEnum(Name = "ERR_PAIRPET_OUTRANGE", Value = 877)] + ERR_PAIRPET_OUTRANGE, + [ProtoEnum(Name = "ERR_PAIRPET_INVITEINVALID", Value = 878)] + ERR_PAIRPET_INVITEINVALID, + [ProtoEnum(Name = "ERR_ROLE_IN_OTHER_SERVER", Value = 879)] + ERR_ROLE_IN_OTHER_SERVER, + [ProtoEnum(Name = "ERR_MOBA_CANTMATCH", Value = 880)] + ERR_MOBA_CANTMATCH, + [ProtoEnum(Name = "ERR_PAIRPET_INVITEREPEAT", Value = 881)] + ERR_PAIRPET_INVITEREPEAT, + [ProtoEnum(Name = "ERR_PAIRPET_SCENEINVALID", Value = 882)] + ERR_PAIRPET_SCENEINVALID, + [ProtoEnum(Name = "ERR_PAIRPET_SELF", Value = 883)] + ERR_PAIRPET_SELF, + [ProtoEnum(Name = "ERR_PAIRPET_OTHER", Value = 884)] + ERR_PAIRPET_OTHER, + [ProtoEnum(Name = "ERR_PAIRPET_OTHERNOTIN", Value = 885)] + ERR_PAIRPET_OTHERNOTIN, + [ProtoEnum(Name = "ERR_MENTOR_OTHER_APPLY_BREAK", Value = 886)] + ERR_MENTOR_OTHER_APPLY_BREAK, + [ProtoEnum(Name = "ERR_MENTOR_ALREADY_COMPLETE_MENTOR", Value = 887)] + ERR_MENTOR_ALREADY_COMPLETE_MENTOR, + [ProtoEnum(Name = "ERR_MENTOR_OTHER_ALREADY_APPLY_INHERIT", Value = 888)] + ERR_MENTOR_OTHER_ALREADY_APPLY_INHERIT, + [ProtoEnum(Name = "ERR_MENTOR_CUR_STATUS_CANNOT_BREAK", Value = 889)] + ERR_MENTOR_CUR_STATUS_CANNOT_BREAK, + [ProtoEnum(Name = "ERR_CUSTOM_SAMEMATCH", Value = 890)] + ERR_CUSTOM_SAMEMATCH, + [ProtoEnum(Name = "ERR_CUSTOM_NOMATCHING", Value = 891)] + ERR_CUSTOM_NOMATCHING, + [ProtoEnum(Name = "ERR_MENTOR_CUR_STATUS_CANNOT_APPLYSTUDENT", Value = 892)] + ERR_MENTOR_CUR_STATUS_CANNOT_APPLYSTUDENT, + [ProtoEnum(Name = "ERR_MENTOR_CUR_STATUS_CANNOT_APPLYMASTER", Value = 893)] + ERR_MENTOR_CUR_STATUS_CANNOT_APPLYMASTER, + [ProtoEnum(Name = "ERR_TEAM_DIAMOND_COST_LIMIT", Value = 894)] + ERR_TEAM_DIAMOND_COST_LIMIT, + [ProtoEnum(Name = "ERR_ACT_NOT_OPEN", Value = 895)] + ERR_ACT_NOT_OPEN, + [ProtoEnum(Name = "ERR_MOBA_MOBMAXLEVEL", Value = 896)] + ERR_MOBA_MOBMAXLEVEL, + [ProtoEnum(Name = "ERR_ACTIVITY", Value = 897)] + ERR_ACTIVITY, + [ProtoEnum(Name = "ERR_NOCONDITION", Value = 898)] + ERR_NOCONDITION, + [ProtoEnum(Name = "ERR_SERVER_UNNORMAL", Value = 899)] + ERR_SERVER_UNNORMAL, + [ProtoEnum(Name = "ERR_CUSTOMBATTLE_BOUNTYMODE_NOTOPEN", Value = 900)] + ERR_CUSTOMBATTLE_BOUNTYMODE_NOTOPEN, + [ProtoEnum(Name = "ERR_GROUPCHAT_FULLGROUP", Value = 901)] + ERR_GROUPCHAT_FULLGROUP, + [ProtoEnum(Name = "ERR_GROUPCHAT_ROLENOCOUNT", Value = 902)] + ERR_GROUPCHAT_ROLENOCOUNT, + [ProtoEnum(Name = "ERR_GROUPCHAT_LEADERNOCOUNT", Value = 903)] + ERR_GROUPCHAT_LEADERNOCOUNT, + [ProtoEnum(Name = "ERR_GROUPCHAT_GROUPFULLMEMBERS", Value = 904)] + ERR_GROUPCHAT_GROUPFULLMEMBERS, + [ProtoEnum(Name = "ERR_UNUSE1", Value = 905)] + ERR_UNUSE1, + [ProtoEnum(Name = "ERR_HAVE_GOT_AWARD", Value = 906)] + ERR_HAVE_GOT_AWARD, + [ProtoEnum(Name = "ERR_ANCIENTPOWER_LESSPOINT", Value = 907)] + ERR_ANCIENTPOWER_LESSPOINT, + [ProtoEnum(Name = "ERR_ANCIENTPOWER_DEAD", Value = 908)] + ERR_ANCIENTPOWER_DEAD, + [ProtoEnum(Name = "ERR_JADE_DRAGONNOTENOUGH", Value = 909)] + ERR_JADE_DRAGONNOTENOUGH, + [ProtoEnum(Name = "ERR_WEDDING_NOT_EXISTS", Value = 910)] + ERR_WEDDING_NOT_EXISTS, + [ProtoEnum(Name = "ERR_WEDDING_ALREADY_INVITE", Value = 911)] + ERR_WEDDING_ALREADY_INVITE, + [ProtoEnum(Name = "ERR_WEDDING_NOT_INVITE", Value = 912)] + ERR_WEDDING_NOT_INVITE, + [ProtoEnum(Name = "ERR_WEDDING_NOT_APPLY", Value = 913)] + ERR_WEDDING_NOT_APPLY, + [ProtoEnum(Name = "ERR_MARRIAGE_LEVEL_NOTENOUGH", Value = 914)] + ERR_MARRIAGE_LEVEL_NOTENOUGH, + [ProtoEnum(Name = "ERR_MARRIAGE_NEED_TWO_NOTMARRY", Value = 915)] + ERR_MARRIAGE_NEED_TWO_NOTMARRY, + [ProtoEnum(Name = "ERR_MARRIAGE_DISTANCE_TOOFAR", Value = 916)] + ERR_MARRIAGE_DISTANCE_TOOFAR, + [ProtoEnum(Name = "ERR_WEDDING_OPER_CD", Value = 917)] + ERR_WEDDING_OPER_CD, + [ProtoEnum(Name = "ERR_WEDDING_ALREADY_VOWS", Value = 918)] + ERR_WEDDING_ALREADY_VOWS, + [ProtoEnum(Name = "ERR_WEDDING_HP_NOT_ENOUGH", Value = 919)] + ERR_WEDDING_HP_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_WEDDING_NOT_OWNER", Value = 920)] + ERR_WEDDING_NOT_OWNER, + [ProtoEnum(Name = "ERR_MARRIAGE_NOTINMARRIAGE", Value = 921)] + ERR_MARRIAGE_NOTINMARRIAGE, + [ProtoEnum(Name = "ERR_MARRIAGE_ALREADY_APPLYDIVORCE", Value = 922)] + ERR_MARRIAGE_ALREADY_APPLYDIVORCE, + [ProtoEnum(Name = "ERR_MARRIAGE_NOT_DIVORCESTATUS", Value = 923)] + ERR_MARRIAGE_NOT_DIVORCESTATUS, + [ProtoEnum(Name = "ERR_MARRIAGE_ONLY_APPLIER_CANCLEDIVORCE", Value = 924)] + ERR_MARRIAGE_ONLY_APPLIER_CANCLEDIVORCE, + [ProtoEnum(Name = "ERR_FRIEND_DEGREE_NOTENOUGH", Value = 925)] + ERR_FRIEND_DEGREE_NOTENOUGH, + [ProtoEnum(Name = "ERR_WEDDING_ALREADY_HOLDED", Value = 926)] + ERR_WEDDING_ALREADY_HOLDED, + [ProtoEnum(Name = "ERR_WEDDING_ALREADY_TAKECAR", Value = 927)] + ERR_WEDDING_ALREADY_TAKECAR, + [ProtoEnum(Name = "ERR_INVALID_PAYROLE", Value = 928)] + ERR_INVALID_PAYROLE, + [ProtoEnum(Name = "ERR_WEDDING_IS_HOLDING", Value = 929)] + ERR_WEDDING_IS_HOLDING, + [ProtoEnum(Name = "ERR_WEDDING_NOT_RUNNING", Value = 930)] + ERR_WEDDING_NOT_RUNNING, + [ProtoEnum(Name = "ERR_LIVENESS_NOT_ENOUGH", Value = 931)] + ERR_LIVENESS_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_CHEST_TAKED", Value = 932)] + ERR_CHEST_TAKED, + [ProtoEnum(Name = "ERR_WEDDING_ALREADY_APPLY", Value = 933)] + ERR_WEDDING_ALREADY_APPLY, + [ProtoEnum(Name = "ERR_GROUPCHAT_FULLGROUP_OTHER", Value = 934)] + ERR_GROUPCHAT_FULLGROUP_OTHER, + [ProtoEnum(Name = "ERR_GROUPCHAT_TIMEOUT", Value = 935)] + ERR_GROUPCHAT_TIMEOUT, + [ProtoEnum(Name = "ERR_GROUPCHAT_NO_MANAGER", Value = 936)] + ERR_GROUPCHAT_NO_MANAGER, + [ProtoEnum(Name = "ERR_ITEM_NOT_ENOUGH_COMMON", Value = 937)] + ERR_ITEM_NOT_ENOUGH_COMMON, + [ProtoEnum(Name = "ERR_WEDDINGCAR_CANT_IN_PET", Value = 938)] + ERR_WEDDINGCAR_CANT_IN_PET, + [ProtoEnum(Name = "ERR_WEDDINGCAR_OTHER_RUNNING", Value = 939)] + ERR_WEDDINGCAR_OTHER_RUNNING, + [ProtoEnum(Name = "ERR_ARTIFACT_CANTRECAST", Value = 940)] + ERR_ARTIFACT_CANTRECAST, + [ProtoEnum(Name = "ERR_ARTIFACT_CANTFUSE", Value = 941)] + ERR_ARTIFACT_CANTFUSE, + [ProtoEnum(Name = "ERR_ARTIFACT_FUSEFAILED", Value = 942)] + ERR_ARTIFACT_FUSEFAILED, + [ProtoEnum(Name = "ERR_ARTIFACT_FUSE_CONDITION", Value = 943)] + ERR_ARTIFACT_FUSE_CONDITION, + [ProtoEnum(Name = "ERR_ARTIFACT_CANTINSCRIPTION", Value = 944)] + ERR_ARTIFACT_CANTINSCRIPTION, + [ProtoEnum(Name = "ERR_WEDDING_ALREADY_REFUSE", Value = 945)] + ERR_WEDDING_ALREADY_REFUSE, + [ProtoEnum(Name = "ERR_WEDDING_NEED_TWO_MARRIAGE", Value = 946)] + ERR_WEDDING_NEED_TWO_MARRIAGE, + [ProtoEnum(Name = "ERR_SPRITE_NOTREBIRTH", Value = 947)] + ERR_SPRITE_NOTREBIRTH, + [ProtoEnum(Name = "ERR_TEAM_FASTMATCH_BUFF", Value = 948)] + ERR_TEAM_FASTMATCH_BUFF, + [ProtoEnum(Name = "ERR_TEAM_SERVER_NOT_MATCH", Value = 949)] + ERR_TEAM_SERVER_NOT_MATCH, + [ProtoEnum(Name = "ERR_DAILY_WEDDY_CANDY_OVERMAX", Value = 950)] + ERR_DAILY_WEDDY_CANDY_OVERMAX, + [ProtoEnum(Name = "ERR_MARRIAGE_NEED_TEAM", Value = 951)] + ERR_MARRIAGE_NEED_TEAM, + [ProtoEnum(Name = "ERR_BACKFLOW_BUYEND", Value = 952)] + ERR_BACKFLOW_BUYEND, + [ProtoEnum(Name = "ERR_NEED_MARRIAGE_TEAM", Value = 953)] + ERR_NEED_MARRIAGE_TEAM, + [ProtoEnum(Name = "ERR_DOENTERSCENE_FAILED", Value = 954)] + ERR_DOENTERSCENE_FAILED, + [ProtoEnum(Name = "ERR_WEDDING_INVITE_OVERMAX", Value = 955)] + ERR_WEDDING_INVITE_OVERMAX, + [ProtoEnum(Name = "ERR_ARTIFACT_INSCRIPTION_LEVEL", Value = 956)] + ERR_ARTIFACT_INSCRIPTION_LEVEL, + [ProtoEnum(Name = "ERR_TRANS_PASSIVE", Value = 957)] + ERR_TRANS_PASSIVE, + [ProtoEnum(Name = "ERR_TRANS_NONE", Value = 958)] + ERR_TRANS_NONE, + [ProtoEnum(Name = "ERR_TRANS_OTHERNOTEXIST", Value = 959)] + ERR_TRANS_OTHERNOTEXIST, + [ProtoEnum(Name = "ERR_TRANS_ITEMNOTENOUGH", Value = 960)] + ERR_TRANS_ITEMNOTENOUGH, + [ProtoEnum(Name = "ERR_TRANS_STATE_FAILED", Value = 961)] + ERR_TRANS_STATE_FAILED, + [ProtoEnum(Name = "ERR_TRANS_SCENE_INVALID", Value = 962)] + ERR_TRANS_SCENE_INVALID, + [ProtoEnum(Name = "ERR_GARDEN_EXPELSPRITE_MAX", Value = 963)] + ERR_GARDEN_EXPELSPRITE_MAX, + [ProtoEnum(Name = "ERR_OP_ROLE_LEAVE", Value = 964)] + ERR_OP_ROLE_LEAVE, + [ProtoEnum(Name = "ERR_BATTLEFIELD_NOT_OPEN", Value = 965)] + ERR_BATTLEFIELD_NOT_OPEN, + [ProtoEnum(Name = "ERR_BATTLEFIELD_LEVEL", Value = 966)] + ERR_BATTLEFIELD_LEVEL, + [ProtoEnum(Name = "ERR_TASK_NO_REFRESH_COUNT", Value = 967)] + ERR_TASK_NO_REFRESH_COUNT, + [ProtoEnum(Name = "ERR_CANT_FUSE", Value = 968)] + ERR_CANT_FUSE, + [ProtoEnum(Name = "ERR_FUSE_MAX", Value = 969)] + ERR_FUSE_MAX, + [ProtoEnum(Name = "ERR_TASK_NOT_TASK_ITEM", Value = 970)] + ERR_TASK_NOT_TASK_ITEM, + [ProtoEnum(Name = "ERR_COMPETEDRAGON_WRONG_DNID", Value = 971)] + ERR_COMPETEDRAGON_WRONG_DNID, + [ProtoEnum(Name = "ERR_CANNOT_PICK_THIS_ITEM", Value = 972)] + ERR_CANNOT_PICK_THIS_ITEM, + [ProtoEnum(Name = "ERR_NPCFL_NEED_REFRESH", Value = 973)] + ERR_NPCFL_NEED_REFRESH, + [ProtoEnum(Name = "ERR_NPCFL_NPC_LEVEL_MAX", Value = 974)] + ERR_NPCFL_NPC_LEVEL_MAX, + [ProtoEnum(Name = "ERR_NPCFL_ITEM_LESS", Value = 975)] + ERR_NPCFL_ITEM_LESS, + [ProtoEnum(Name = "ERR_NPCFL_EXP_LESS", Value = 976)] + ERR_NPCFL_EXP_LESS, + [ProtoEnum(Name = "ERR_NPCFL_UNITE_LEVEL_LESS", Value = 977)] + ERR_NPCFL_UNITE_LEVEL_LESS, + [ProtoEnum(Name = "ERR_NPCFL_GIVE_GIFT_COUNT_LESS", Value = 978)] + ERR_NPCFL_GIVE_GIFT_COUNT_LESS, + [ProtoEnum(Name = "ERR_NPCFL_BUY_GG_COUNT_LESS", Value = 979)] + ERR_NPCFL_BUY_GG_COUNT_LESS, + [ProtoEnum(Name = "ERR_NPCFL_DRAGON_COIN_LESS", Value = 980)] + ERR_NPCFL_DRAGON_COIN_LESS, + [ProtoEnum(Name = "ERR_DAILY_TASK_NO_REFRESH_COUNT", Value = 981)] + ERR_DAILY_TASK_NO_REFRESH_COUNT, + [ProtoEnum(Name = "ERR_DAILY_TASK_CANNT_REFRESH", Value = 982)] + ERR_DAILY_TASK_CANNT_REFRESH, + [ProtoEnum(Name = "ERR_DAILY_TASK_NO_BUY_COUNT", Value = 983)] + ERR_DAILY_TASK_NO_BUY_COUNT, + [ProtoEnum(Name = "ERR_DAILY_TASK_QUALITY_MAX", Value = 984)] + ERR_DAILY_TASK_QUALITY_MAX, + [ProtoEnum(Name = "ERR_DG_ALREADY_IN_DG", Value = 985)] + ERR_DG_ALREADY_IN_DG, + [ProtoEnum(Name = "ERR_DG_DGNAME_EXIST", Value = 986)] + ERR_DG_DGNAME_EXIST, + [ProtoEnum(Name = "ERR_DG_DGUILD_NOT_EXIST", Value = 987)] + ERR_DG_DGUILD_NOT_EXIST, + [ProtoEnum(Name = "ERR_DG_FULL", Value = 988)] + ERR_DG_FULL, + [ProtoEnum(Name = "ERR_DG_PPT_REQ", Value = 989)] + ERR_DG_PPT_REQ, + [ProtoEnum(Name = "ERR_DG_WAITAPPROVAL", Value = 990)] + ERR_DG_WAITAPPROVAL, + [ProtoEnum(Name = "ERR_DG_NOT_IN_GUILD", Value = 991)] + ERR_DG_NOT_IN_GUILD, + [ProtoEnum(Name = "ERR_DG_NO_PERMISSION", Value = 992)] + ERR_DG_NO_PERMISSION, + [ProtoEnum(Name = "ERR_DG_LOCK_NAME", Value = 993)] + ERR_DG_LOCK_NAME, + [ProtoEnum(Name = "ERR_DG_APPLY_FULL", Value = 994)] + ERR_DG_APPLY_FULL, + [ProtoEnum(Name = "ERR_DG_IN_CD", Value = 995)] + ERR_DG_IN_CD, + [ProtoEnum(Name = "ERR_DG_ITEM_NOT_FOUND", Value = 996)] + ERR_DG_ITEM_NOT_FOUND, + [ProtoEnum(Name = "ERR_DG_OTHER_BUYING", Value = 997)] + ERR_DG_OTHER_BUYING, + [ProtoEnum(Name = "ERR_DG_SHOP_NO_COUNT", Value = 998)] + ERR_DG_SHOP_NO_COUNT, + [ProtoEnum(Name = "ERR_DG_NOT_IN_SAME", Value = 999)] + ERR_DG_NOT_IN_SAME, + [ProtoEnum(Name = "ERR_DG_POSITION_FULL", Value = 1000)] + ERR_DG_POSITION_FULL, + [ProtoEnum(Name = "ERR_DAILY_TASK_OTHER_NO_HELPCOUNT", Value = 1001)] + ERR_DAILY_TASK_OTHER_NO_HELPCOUNT, + [ProtoEnum(Name = "ERR_UNOPEN_FUNCTION", Value = 1002)] + ERR_UNOPEN_FUNCTION, + [ProtoEnum(Name = "ERR_QUERYBOX_TIMELEFT", Value = 1003)] + ERR_QUERYBOX_TIMELEFT, + [ProtoEnum(Name = "ERR_GUILDPARTY_ENDING", Value = 1004)] + ERR_GUILDPARTY_ENDING, + [ProtoEnum(Name = "ERR_GUILDPARTY_HAVESUMMON", Value = 1005)] + ERR_GUILDPARTY_HAVESUMMON, + [ProtoEnum(Name = "ERR_KINGBACK_REWARD_COUNT_LIMIT", Value = 1006)] + ERR_KINGBACK_REWARD_COUNT_LIMIT, + [ProtoEnum(Name = "ERR_DG_NOT_IN_APPROVAL", Value = 1007)] + ERR_DG_NOT_IN_APPROVAL, + [ProtoEnum(Name = "ERR_GUILDPARTY_SUMMONING", Value = 1008)] + ERR_GUILDPARTY_SUMMONING, + [ProtoEnum(Name = "ERR_HG_FORBID", Value = 1009)] + ERR_HG_FORBID, + [ProtoEnum(Name = "ERR_FASHION_NOEXIST_EFFECTS", Value = 1010)] + ERR_FASHION_NOEXIST_EFFECTS, + [ProtoEnum(Name = "ERR_BACKFLOW_ALREADYGET", Value = 1011)] + ERR_BACKFLOW_ALREADYGET, + [ProtoEnum(Name = "ERR_BACKFLOW_LESSPOINT", Value = 1012)] + ERR_BACKFLOW_LESSPOINT, + [ProtoEnum(Name = "ERR_TEAM_CROSS_TEAM_CHANGE_EXP", Value = 1013)] + ERR_TEAM_CROSS_TEAM_CHANGE_EXP, + [ProtoEnum(Name = "ERR_TEAM_CHANGE_EXP_TO_CROSS", Value = 1014)] + ERR_TEAM_CHANGE_EXP_TO_CROSS, + [ProtoEnum(Name = "ERR_INVALID_STATE", Value = 1015)] + ERR_INVALID_STATE, + [ProtoEnum(Name = "ERR_CHANGE_SAMESCENE", Value = 1016)] + ERR_CHANGE_SAMESCENE, + [ProtoEnum(Name = "ERR_BACKFLOWSHOP_LESSFRESHCOUNT", Value = 1017)] + ERR_BACKFLOWSHOP_LESSFRESHCOUNT, + [ProtoEnum(Name = "ERR_BACKFLOWSHOP_NOTHAVEGOOD", Value = 1018)] + ERR_BACKFLOWSHOP_NOTHAVEGOOD, + [ProtoEnum(Name = "ERR_BACKFLOWSHOP_LACKDIAMOND", Value = 1019)] + ERR_BACKFLOWSHOP_LACKDIAMOND, + [ProtoEnum(Name = "ERR_BACKFLOWSHOP_LACKDRAGONCOIN", Value = 1020)] + ERR_BACKFLOWSHOP_LACKDRAGONCOIN, + [ProtoEnum(Name = "ERR_BACKFLOWSHOP_ALREADYBUY", Value = 1021)] + ERR_BACKFLOWSHOP_ALREADYBUY, + [ProtoEnum(Name = "ERR_BACKFLOWSHOP_SHOPCLOSE", Value = 1022)] + ERR_BACKFLOWSHOP_SHOPCLOSE, + [ProtoEnum(Name = "ERR_ALREADY_CHARGE_BACK", Value = 1023)] + ERR_ALREADY_CHARGE_BACK, + [ProtoEnum(Name = "ERR_FUSE_EXPMAX", Value = 1024)] + ERR_FUSE_EXPMAX, + [ProtoEnum(Name = "ERR_FUSE_BREAKLACKEXP", Value = 1025)] + ERR_FUSE_BREAKLACKEXP, + [ProtoEnum(Name = "ERR_KINGDOM_NOT_OPEN", Value = 1026)] + ERR_KINGDOM_NOT_OPEN, + [ProtoEnum(Name = "ERR_SWEEP_NOTPASS", Value = 1027)] + ERR_SWEEP_NOTPASS, + [ProtoEnum(Name = "ERR_SWEEP_DRAGONHARD_NOTPASS", Value = 1028)] + ERR_SWEEP_DRAGONHARD_NOTPASS, + [ProtoEnum(Name = "ERR_GCF_UP_PROFESSION_REPEAT", Value = 1029)] + ERR_GCF_UP_PROFESSION_REPEAT, + [ProtoEnum(Name = "ERR_INVALID_REQUEST_CROSS", Value = 1030)] + ERR_INVALID_REQUEST_CROSS, + [ProtoEnum(Name = "ERR_SWEEP_IN_TEAM", Value = 1031)] + ERR_SWEEP_IN_TEAM, + [ProtoEnum(Name = "ERR_CAMPDUEL_ALREADY_CHOSEN_CAMP", Value = 1032)] + ERR_CAMPDUEL_ALREADY_CHOSEN_CAMP, + [ProtoEnum(Name = "ERR_CAMPDUEL_NOCAMPID", Value = 1033)] + ERR_CAMPDUEL_NOCAMPID, + [ProtoEnum(Name = "ERR_CAMPDUEL_FREEINSPIRE_ZERO", Value = 1034)] + ERR_CAMPDUEL_FREEINSPIRE_ZERO, + [ProtoEnum(Name = "ERR_CAMPDUEL_MONEYINSPIRE_ZERO", Value = 1035)] + ERR_CAMPDUEL_MONEYINSPIRE_ZERO, + [ProtoEnum(Name = "ERR_CAMPDUEL_MONEYINSPIRE_LESSMONEY", Value = 1036)] + ERR_CAMPDUEL_MONEYINSPIRE_LESSMONEY, + [ProtoEnum(Name = "ERR_TEAM_DONOT_HANDLE", Value = 1037)] + ERR_TEAM_DONOT_HANDLE, + [ProtoEnum(Name = "ERR_GUILD_JZ_HALLPEM", Value = 1038)] + ERR_GUILD_JZ_HALLPEM, + [ProtoEnum(Name = "ERR_ARTIFACT_CANTREFINE", Value = 1039)] + ERR_ARTIFACT_CANTREFINE, + [ProtoEnum(Name = "ERR_TEAM_RIFT_CHANGE_LEADER", Value = 1040)] + ERR_TEAM_RIFT_CHANGE_LEADER, + [ProtoEnum(Name = "ERR_TEAM_RIFT_MATCH", Value = 1041)] + ERR_TEAM_RIFT_MATCH, + [ProtoEnum(Name = "ERR_TEAM_RIFT_CHANGE_EXP", Value = 1042)] + ERR_TEAM_RIFT_CHANGE_EXP, + [ProtoEnum(Name = "ERR_GUILD_JZ_LEVEL_NOTENOUGH", Value = 1043)] + ERR_GUILD_JZ_LEVEL_NOTENOUGH, + [ProtoEnum(Name = "ERR_GUILD_JZ_HALLPOINT_NOTENOUGH", Value = 1044)] + ERR_GUILD_JZ_HALLPOINT_NOTENOUGH, + [ProtoEnum(Name = "ERR_GUILD_JZ_SCHOOLPOINT_NOTENOUGH", Value = 1045)] + ERR_GUILD_JZ_SCHOOLPOINT_NOTENOUGH, + [ProtoEnum(Name = "ERR_GUILD_JZ_ROLE_FULLSCHOOL", Value = 1046)] + ERR_GUILD_JZ_ROLE_FULLSCHOOL, + [ProtoEnum(Name = "ERR_GUILD_JZ_ROLE_FULLHALL", Value = 1047)] + ERR_GUILD_JZ_ROLE_FULLHALL, + [ProtoEnum(Name = "ERR_GUILD_JZ_GUILD_FULLSCHOOL", Value = 1048)] + ERR_GUILD_JZ_GUILD_FULLSCHOOL, + [ProtoEnum(Name = "ERR_GUILD_JZ_GUILD_FULLHALL", Value = 1049)] + ERR_GUILD_JZ_GUILD_FULLHALL, + [ProtoEnum(Name = "ERR_RIFT_DIFFERENT_ID", Value = 1050)] + ERR_RIFT_DIFFERENT_ID, + [ProtoEnum(Name = "ERR_RIFT_FLOOR_NOT_ENOUGH", Value = 1051)] + ERR_RIFT_FLOOR_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_AWAKE_NOTOPEN", Value = 1052)] + ERR_AWAKE_NOTOPEN, + [ProtoEnum(Name = "ERR_COUNT_NOT_ENOUGH", Value = 1053)] + ERR_COUNT_NOT_ENOUGH, + [ProtoEnum(Name = "ERR_PARTICIPATE_TIME_LIMIT", Value = 1054)] + ERR_PARTICIPATE_TIME_LIMIT, + [ProtoEnum(Name = "ERR_NEED_SECOND_PROMOTE", Value = 1055)] + ERR_NEED_SECOND_PROMOTE, + [ProtoEnum(Name = "ERR_TASK_NO_HELP_COUNT", Value = 1056)] + ERR_TASK_NO_HELP_COUNT, + [ProtoEnum(Name = "ERR_TEAM_RIFT_MAX_FLOOR", Value = 1057)] + ERR_TEAM_RIFT_MAX_FLOOR, + [ProtoEnum(Name = "ERR_TEAM_RIFT_WRONG_FLOOR", Value = 1058)] + ERR_TEAM_RIFT_WRONG_FLOOR, + [ProtoEnum(Name = "ERR_JZ_FULL_LEVEL", Value = 1059)] + ERR_JZ_FULL_LEVEL, + [ProtoEnum(Name = "ERR_TEAM_COSTITEM_LESS", Value = 1060)] + ERR_TEAM_COSTITEM_LESS, + [ProtoEnum(Name = "ERR_COMPETE_DRAGON_TICKET_NOTENGOUTH", Value = 1061)] + ERR_COMPETE_DRAGON_TICKET_NOTENGOUTH, + [ProtoEnum(Name = "ERR_SHADOWCAT_CANTGET", Value = 1062)] + ERR_SHADOWCAT_CANTGET, + [ProtoEnum(Name = "ERR_SHADOWCAT_ALREADYGET", Value = 1063)] + ERR_SHADOWCAT_ALREADYGET + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ErrorCode.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ErrorCode.cs.meta new file mode 100644 index 00000000..6bb59aa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ErrorCode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94bc34fc097754d45ba1a82610891d65 +timeCreated: 1611404156 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs new file mode 100644 index 00000000..22c039ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ErrorInfo")] + [Serializable] + public class ErrorInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorno", DataFormat = DataFormat.TwosComplement)] + public uint errorno + { + get + { + return this._errorno ?? 0u; + } + set + { + this._errorno = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errornoSpecified + { + get + { + return this._errorno != null; + } + set + { + bool flag = value == (this._errorno == null); + if (flag) + { + this._errorno = (value ? new uint?(this.errorno) : null); + } + } + } + + [ProtoMember(2, Name = "param", DataFormat = DataFormat.TwosComplement)] + public List param + { + get + { + return this._param; + } + } + + [ProtoMember(3, IsRequired = false, Name = "param64", DataFormat = DataFormat.TwosComplement)] + public ulong param64 + { + get + { + return this._param64 ?? 0UL; + } + set + { + this._param64 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool param64Specified + { + get + { + return this._param64 != null; + } + set + { + bool flag = value == (this._param64 == null); + if (flag) + { + this._param64 = (value ? new ulong?(this.param64) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "istip", DataFormat = DataFormat.Default)] + public bool istip + { + get + { + return this._istip ?? false; + } + set + { + this._istip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool istipSpecified + { + get + { + return this._istip != null; + } + set + { + bool flag = value == (this._istip == null); + if (flag) + { + this._istip = (value ? new bool?(this.istip) : null); + } + } + } + + private uint? _errorno; + + private readonly List _param = new List(); + + private ulong? _param64; + + private bool? _istip; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorno() + { + return this.errornoSpecified; + } + + private void Reseterrorno() + { + this.errornoSpecified = false; + } + + private bool ShouldSerializeparam64() + { + return this.param64Specified; + } + + private void Resetparam64() + { + this.param64Specified = false; + } + + private bool ShouldSerializeistip() + { + return this.istipSpecified; + } + + private void Resetistip() + { + this.istipSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs.meta new file mode 100644 index 00000000..870e3bcf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ErrorInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c8880e7a8eddea448f72229190472c5 +timeCreated: 1611403802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs new file mode 100644 index 00000000..0ea4459b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "EventNotify")] + [Serializable] + public class EventNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "notify", DataFormat = DataFormat.Default)] + public string notify + { + get + { + return this._notify ?? ""; + } + set + { + this._notify = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool notifySpecified + { + get + { + return this._notify != null; + } + set + { + bool flag = value == (this._notify == null); + if (flag) + { + this._notify = (value ? this.notify : null); + } + } + } + + private string _notify; + + private IExtension extensionObject; + + private bool ShouldSerializenotify() + { + return this.notifySpecified; + } + + private void Resetnotify() + { + this.notifySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs.meta new file mode 100644 index 00000000..3310e081 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/EventNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5adb666fe39f94344b0b42b5f2eb8156 +timeCreated: 1611403793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExecuteLevelScriptNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/ExecuteLevelScriptNtf.cs new file mode 100644 index 00000000..97ebbaab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExecuteLevelScriptNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ExecuteLevelScriptNtf")] + [Serializable] + public class ExecuteLevelScriptNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "script", DataFormat = DataFormat.Default)] + public string script + { + get + { + return this._script ?? ""; + } + set + { + this._script = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scriptSpecified + { + get + { + return this._script != null; + } + set + { + bool flag = value == (this._script == null); + if (flag) + { + this._script = (value ? this.script : null); + } + } + } + + private string _script; + + private IExtension extensionObject; + + private bool ShouldSerializescript() + { + return this.scriptSpecified; + } + + private void Resetscript() + { + this.scriptSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExecuteLevelScriptNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ExecuteLevelScriptNtf.cs.meta new file mode 100644 index 00000000..4a70c31f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExecuteLevelScriptNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d694155c6d2e2f49a8b679f6bff19c7 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpBackType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ExpBackType.cs new file mode 100644 index 00000000..f23ba489 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpBackType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ExpBackType")] + public enum ExpBackType + { + [ProtoEnum(Name = "EXPBACK_ABYSSS", Value = 1)] + EXPBACK_ABYSSS = 1, + [ProtoEnum(Name = "EXPBACK_NEST", Value = 2)] + EXPBACK_NEST, + [ProtoEnum(Name = "EXPBACK_CAMPTASK", Value = 3)] + EXPBACK_CAMPTASK + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpBackType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ExpBackType.cs.meta new file mode 100644 index 00000000..108601ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpBackType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca8f1d7a19152dc4b975e7712051e987 +timeCreated: 1611404542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackArg.cs new file mode 100644 index 00000000..b1679ddf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ExpFindBackArg")] + [Serializable] + public class ExpFindBackArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isFree", DataFormat = DataFormat.Default)] + public bool isFree + { + get + { + return this._isFree ?? false; + } + set + { + this._isFree = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFreeSpecified + { + get + { + return this._isFree != null; + } + set + { + bool flag = value == (this._isFree == null); + if (flag) + { + this._isFree = (value ? new bool?(this.isFree) : null); + } + } + } + + private bool? _isFree; + + private IExtension extensionObject; + + private bool ShouldSerializeisFree() + { + return this.isFreeSpecified; + } + + private void ResetisFree() + { + this.isFreeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackArg.cs.meta new file mode 100644 index 00000000..402e572a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af50a8df0731b2440b6359888bbf84bb +timeCreated: 1611404344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackData.cs new file mode 100644 index 00000000..219ca9b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackData.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ExpFindBackData")] + [Serializable] + public class ExpFindBackData : IExtensible + { + [ProtoMember(1, Name = "expBackInfos", DataFormat = DataFormat.Default)] + public List expBackInfos + { + get + { + return this._expBackInfos; + } + } + + private readonly List _expBackInfos = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackData.cs.meta new file mode 100644 index 00000000..3c2402f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4cb421fd872c174da9b649fd2ba31e9 +timeCreated: 1611404393 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackInfo.cs new file mode 100644 index 00000000..0edfe755 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ExpFindBackInfo")] + [Serializable] + public class ExpFindBackInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public ExpBackType type + { + get + { + return this._type ?? ExpBackType.EXPBACK_ABYSSS; + } + set + { + this._type = new ExpBackType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new ExpBackType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "usedCount", DataFormat = DataFormat.TwosComplement)] + public int usedCount + { + get + { + return this._usedCount ?? 0; + } + set + { + this._usedCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedCountSpecified + { + get + { + return this._usedCount != null; + } + set + { + bool flag = value == (this._usedCount == null); + if (flag) + { + this._usedCount = (value ? new int?(this.usedCount) : null); + } + } + } + + private ExpBackType? _type; + + private int? _usedCount; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeusedCount() + { + return this.usedCountSpecified; + } + + private void ResetusedCount() + { + this.usedCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackInfo.cs.meta new file mode 100644 index 00000000..087058e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 132e34e88dd69fb4fb5a9aee7b2cd1e0 +timeCreated: 1611403245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackRes.cs new file mode 100644 index 00000000..e0b68525 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ExpFindBackRes")] + [Serializable] + public class ExpFindBackRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackRes.cs.meta new file mode 100644 index 00000000..2fa601f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpFindBackRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab82697ac9fcf0f43aeb4a7e1d95dca2 +timeCreated: 1611404307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpTeamMemberState.cs b/Client/Assets/Scripts/XMainClient/KKSG/ExpTeamMemberState.cs new file mode 100644 index 00000000..3ab7905d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpTeamMemberState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ExpTeamMemberState")] + public enum ExpTeamMemberState + { + [ProtoEnum(Name = "EXPTEAM_IDLE", Value = 0)] + EXPTEAM_IDLE, + [ProtoEnum(Name = "EXPTEAM_READY", Value = 1)] + EXPTEAM_READY, + [ProtoEnum(Name = "EXPTEAM_DISAGREE", Value = 2)] + EXPTEAM_DISAGREE, + [ProtoEnum(Name = "EXPTEAM_FINISH", Value = 3)] + EXPTEAM_FINISH + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ExpTeamMemberState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ExpTeamMemberState.cs.meta new file mode 100644 index 00000000..2aac9337 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ExpTeamMemberState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0395b0a67fea6b42b8262c2c752fa00 +timeCreated: 1611404349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs new file mode 100644 index 00000000..c26e73a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FMBArg")] + [Serializable] + public class FMBArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs.meta new file mode 100644 index 00000000..a70b1b0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FMBArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4887c4bb1e4b8a843ba5cf7f63dde082 +timeCreated: 1611403657 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs new file mode 100644 index 00000000..090be474 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FMBRes")] + [Serializable] + public class FMBRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "refuse", DataFormat = DataFormat.Default)] + public bool refuse + { + get + { + return this._refuse ?? false; + } + set + { + this._refuse = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refuseSpecified + { + get + { + return this._refuse != null; + } + set + { + bool flag = value == (this._refuse == null); + if (flag) + { + this._refuse = (value ? new bool?(this.refuse) : null); + } + } + } + + private bool? _refuse; + + private IExtension extensionObject; + + private bool ShouldSerializerefuse() + { + return this.refuseSpecified; + } + + private void Resetrefuse() + { + this.refuseSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs.meta new file mode 100644 index 00000000..fdbc496b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FMBRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a09de93a45540e24abf7ec074b6e70d1 +timeCreated: 1611404250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs new file mode 100644 index 00000000..0c0c08d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FMDArg")] + [Serializable] + public class FMDArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "quitRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong quitRoleID + { + get + { + return this._quitRoleID ?? 0UL; + } + set + { + this._quitRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quitRoleIDSpecified + { + get + { + return this._quitRoleID != null; + } + set + { + bool flag = value == (this._quitRoleID == null); + if (flag) + { + this._quitRoleID = (value ? new ulong?(this.quitRoleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "quitRoleName", DataFormat = DataFormat.Default)] + public string quitRoleName + { + get + { + return this._quitRoleName ?? ""; + } + set + { + this._quitRoleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quitRoleNameSpecified + { + get + { + return this._quitRoleName != null; + } + set + { + bool flag = value == (this._quitRoleName == null); + if (flag) + { + this._quitRoleName = (value ? this.quitRoleName : null); + } + } + } + + private ulong? _quitRoleID; + + private string _quitRoleName; + + private IExtension extensionObject; + + private bool ShouldSerializequitRoleID() + { + return this.quitRoleIDSpecified; + } + + private void ResetquitRoleID() + { + this.quitRoleIDSpecified = false; + } + + private bool ShouldSerializequitRoleName() + { + return this.quitRoleNameSpecified; + } + + private void ResetquitRoleName() + { + this.quitRoleNameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs.meta new file mode 100644 index 00000000..0bd31114 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FMDArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1bb2277268c3c1d4fa0b225bc8c8f459 +timeCreated: 1611403317 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionChanged.cs new file mode 100644 index 00000000..a23c93ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionChanged.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionChanged")] + [Serializable] + public class FashionChanged : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, Name = "position", DataFormat = DataFormat.TwosComplement)] + public List position + { + get + { + return this._position; + } + } + + [ProtoMember(3, Name = "newItemID", DataFormat = DataFormat.TwosComplement)] + public List newItemID + { + get + { + return this._newItemID; + } + } + + private ulong? _roleID; + + private readonly List _position = new List(); + + private readonly List _newItemID = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionChanged.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionChanged.cs.meta new file mode 100644 index 00000000..e9d7e30f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 38f39f74510a8a14ea57c883e491e580 +timeCreated: 1611403590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs new file mode 100644 index 00000000..90de5559 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionChangedData")] + [Serializable] + public class FashionChangedData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "changeType", DataFormat = DataFormat.TwosComplement)] + public FashionNTFType changeType + { + get + { + return this._changeType ?? FashionNTFType.ADD_FASHION; + } + set + { + this._changeType = new FashionNTFType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool changeTypeSpecified + { + get + { + return this._changeType != null; + } + set + { + bool flag = value == (this._changeType == null); + if (flag) + { + this._changeType = (value ? new FashionNTFType?(this.changeType) : null); + } + } + } + + [ProtoMember(2, Name = "fashion", DataFormat = DataFormat.Default)] + public List fashion + { + get + { + return this._fashion; + } + } + + [ProtoMember(3, IsRequired = false, Name = "special_effects_id", DataFormat = DataFormat.TwosComplement)] + public uint special_effects_id + { + get + { + return this._special_effects_id ?? 0u; + } + set + { + this._special_effects_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool special_effects_idSpecified + { + get + { + return this._special_effects_id != null; + } + set + { + bool flag = value == (this._special_effects_id == null); + if (flag) + { + this._special_effects_id = (value ? new uint?(this.special_effects_id) : null); + } + } + } + + private FashionNTFType? _changeType; + + private readonly List _fashion = new List(); + + private uint? _special_effects_id; + + private IExtension extensionObject; + + private bool ShouldSerializechangeType() + { + return this.changeTypeSpecified; + } + + private void ResetchangeType() + { + this.changeTypeSpecified = false; + } + + private bool ShouldSerializespecial_effects_id() + { + return this.special_effects_idSpecified; + } + + private void Resetspecial_effects_id() + { + this.special_effects_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs.meta new file mode 100644 index 00000000..0ddc6230 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionChangedData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2375a1412ef2ebe41939bafbef86af2c +timeCreated: 1611403454 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeArg.cs new file mode 100644 index 00000000..22095242 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionComposeArg")] + [Serializable] + public class FashionComposeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "fashion_id", DataFormat = DataFormat.TwosComplement)] + public uint fashion_id + { + get + { + return this._fashion_id ?? 0u; + } + set + { + this._fashion_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fashion_idSpecified + { + get + { + return this._fashion_id != null; + } + set + { + bool flag = value == (this._fashion_id == null); + if (flag) + { + this._fashion_id = (value ? new uint?(this.fashion_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid1", DataFormat = DataFormat.Default)] + public string uid1 + { + get + { + return this._uid1 ?? ""; + } + set + { + this._uid1 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uid1Specified + { + get + { + return this._uid1 != null; + } + set + { + bool flag = value == (this._uid1 == null); + if (flag) + { + this._uid1 = (value ? this.uid1 : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "uid2", DataFormat = DataFormat.Default)] + public string uid2 + { + get + { + return this._uid2 ?? ""; + } + set + { + this._uid2 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uid2Specified + { + get + { + return this._uid2 != null; + } + set + { + bool flag = value == (this._uid2 == null); + if (flag) + { + this._uid2 = (value ? this.uid2 : null); + } + } + } + + private uint? _fashion_id; + + private string _uid1; + + private string _uid2; + + private IExtension extensionObject; + + private bool ShouldSerializefashion_id() + { + return this.fashion_idSpecified; + } + + private void Resetfashion_id() + { + this.fashion_idSpecified = false; + } + + private bool ShouldSerializeuid1() + { + return this.uid1Specified; + } + + private void Resetuid1() + { + this.uid1Specified = false; + } + + private bool ShouldSerializeuid2() + { + return this.uid2Specified; + } + + private void Resetuid2() + { + this.uid2Specified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeArg.cs.meta new file mode 100644 index 00000000..f2d6ab66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: add8f2da4c8912a41a6caca5147d0d6d +timeCreated: 1611404336 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeRes.cs new file mode 100644 index 00000000..18b4c5a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionComposeRes")] + [Serializable] + public class FashionComposeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeRes.cs.meta new file mode 100644 index 00000000..7a4314d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionComposeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0d6e598d88a0774e8543640d08bcd3d +timeCreated: 1611404835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs new file mode 100644 index 00000000..ea521dbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionData")] + [Serializable] + public class FashionData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public uint itemID + { + get + { + return this._itemID ?? 0u; + } + set + { + this._itemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new uint?(this.itemID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public uint timeleft + { + get + { + return this._timeleft ?? 0u; + } + set + { + this._timeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new uint?(this.timeleft) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] + public uint pos + { + get + { + return this._pos ?? 0u; + } + set + { + this._pos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posSpecified + { + get + { + return this._pos != null; + } + set + { + bool flag = value == (this._pos == null); + if (flag) + { + this._pos = (value ? new uint?(this.pos) : null); + } + } + } + + [ProtoMember(6, Name = "attrs", DataFormat = DataFormat.Default)] + public List attrs + { + get + { + return this._attrs; + } + } + + [ProtoMember(7, IsRequired = false, Name = "timeend", DataFormat = DataFormat.TwosComplement)] + public uint timeend + { + get + { + return this._timeend ?? 0u; + } + set + { + this._timeend = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeendSpecified + { + get + { + return this._timeend != null; + } + set + { + bool flag = value == (this._timeend == null); + if (flag) + { + this._timeend = (value ? new uint?(this.timeend) : null); + } + } + } + + private uint? _itemID; + + private uint? _level; + + private ulong? _uid; + + private uint? _timeleft; + + private uint? _pos; + + private readonly List _attrs = new List(); + + private uint? _timeend; + + private IExtension extensionObject; + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + private bool ShouldSerializepos() + { + return this.posSpecified; + } + + private void Resetpos() + { + this.posSpecified = false; + } + + private bool ShouldSerializetimeend() + { + return this.timeendSpecified; + } + + private void Resettimeend() + { + this.timeendSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs.meta new file mode 100644 index 00000000..44d3aed6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3372a1187094eb74f820402dbdda74dc +timeCreated: 1611403552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyArg.cs new file mode 100644 index 00000000..cd815ac4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyArg.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionIBShopBuyArg")] + [Serializable] + public class FashionIBShopBuyArg : IExtensible + { + [ProtoMember(1, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + private readonly List _item = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyArg.cs.meta new file mode 100644 index 00000000..5f39de35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad6c5d2642efbac4783d024646e6acea +timeCreated: 1611404334 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyRes.cs new file mode 100644 index 00000000..363d522e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionIBShopBuyRes")] + [Serializable] + public class FashionIBShopBuyRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyRes.cs.meta new file mode 100644 index 00000000..56683508 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionIBShopBuyRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 268e91fefbf62d944bac16dc987c4c81 +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionNTFType.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionNTFType.cs new file mode 100644 index 00000000..d9e11b34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionNTFType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionNTFType")] + public enum FashionNTFType + { + [ProtoEnum(Name = "ADD_FASHION", Value = 1)] + ADD_FASHION = 1, + [ProtoEnum(Name = "UPGRADE_FASHION", Value = 2)] + UPGRADE_FASHION, + [ProtoEnum(Name = "WEAR_FASHION", Value = 3)] + WEAR_FASHION, + [ProtoEnum(Name = "DELBODY_FASHION", Value = 4)] + DELBODY_FASHION, + [ProtoEnum(Name = "DELBAG_FASHION", Value = 5)] + DELBAG_FASHION + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionNTFType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionNTFType.cs.meta new file mode 100644 index 00000000..0445753c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionNTFType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aaf299fab49859243bfe27033b2890e5 +timeCreated: 1611404306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionRecord.cs new file mode 100644 index 00000000..09a9a33c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionRecord.cs @@ -0,0 +1,431 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionRecord")] + [Serializable] + public class FashionRecord : IExtensible + { + [ProtoMember(1, Name = "bodyfashion", DataFormat = DataFormat.Default)] + public List bodyfashion + { + get + { + return this._bodyfashion; + } + } + + [ProtoMember(2, Name = "bagfashion", DataFormat = DataFormat.Default)] + public List bagfashion + { + get + { + return this._bagfashion; + } + } + + [ProtoMember(3, Name = "collected", DataFormat = DataFormat.TwosComplement)] + public List collected + { + get + { + return this._collected; + } + } + + [ProtoMember(4, Name = "display_fashion", DataFormat = DataFormat.TwosComplement)] + public List display_fashion + { + get + { + return this._display_fashion; + } + } + + [ProtoMember(5, Name = "own_fashins", DataFormat = DataFormat.Default)] + public List own_fashins + { + get + { + return this._own_fashins; + } + } + + [ProtoMember(6, Name = "own_display_items", DataFormat = DataFormat.TwosComplement)] + public List own_display_items + { + get + { + return this._own_display_items; + } + } + + [ProtoMember(7, IsRequired = false, Name = "conversion", DataFormat = DataFormat.Default)] + public bool conversion + { + get + { + return this._conversion ?? false; + } + set + { + this._conversion = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool conversionSpecified + { + get + { + return this._conversion != null; + } + set + { + bool flag = value == (this._conversion == null); + if (flag) + { + this._conversion = (value ? new bool?(this.conversion) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "hair_color_id", DataFormat = DataFormat.TwosComplement)] + public uint hair_color_id + { + get + { + return this._hair_color_id ?? 0u; + } + set + { + this._hair_color_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hair_color_idSpecified + { + get + { + return this._hair_color_id != null; + } + set + { + bool flag = value == (this._hair_color_id == null); + if (flag) + { + this._hair_color_id = (value ? new uint?(this.hair_color_id) : null); + } + } + } + + [ProtoMember(9, Name = "hair_color_info", DataFormat = DataFormat.Default)] + public List hair_color_info + { + get + { + return this._hair_color_info; + } + } + + [ProtoMember(10, Name = "fashionsynthersis_fail_info", DataFormat = DataFormat.Default)] + public List fashionsynthersis_fail_info + { + get + { + return this._fashionsynthersis_fail_info; + } + } + + [ProtoMember(11, IsRequired = false, Name = "fashioncompose_time", DataFormat = DataFormat.TwosComplement)] + public uint fashioncompose_time + { + get + { + return this._fashioncompose_time ?? 0u; + } + set + { + this._fashioncompose_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fashioncompose_timeSpecified + { + get + { + return this._fashioncompose_time != null; + } + set + { + bool flag = value == (this._fashioncompose_time == null); + if (flag) + { + this._fashioncompose_time = (value ? new uint?(this.fashioncompose_time) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "fashionibshop_buy_time", DataFormat = DataFormat.TwosComplement)] + public uint fashionibshop_buy_time + { + get + { + return this._fashionibshop_buy_time ?? 0u; + } + set + { + this._fashionibshop_buy_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fashionibshop_buy_timeSpecified + { + get + { + return this._fashionibshop_buy_time != null; + } + set + { + bool flag = value == (this._fashionibshop_buy_time == null); + if (flag) + { + this._fashionibshop_buy_time = (value ? new uint?(this.fashionibshop_buy_time) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "special_effects_id", DataFormat = DataFormat.TwosComplement)] + public uint special_effects_id + { + get + { + return this._special_effects_id ?? 0u; + } + set + { + this._special_effects_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool special_effects_idSpecified + { + get + { + return this._special_effects_id != null; + } + set + { + bool flag = value == (this._special_effects_id == null); + if (flag) + { + this._special_effects_id = (value ? new uint?(this.special_effects_id) : null); + } + } + } + + [ProtoMember(14, Name = "special_effects_list", DataFormat = DataFormat.TwosComplement)] + public List special_effects_list + { + get + { + return this._special_effects_list; + } + } + + [ProtoMember(15, IsRequired = false, Name = "compose_success_num", DataFormat = DataFormat.TwosComplement)] + public uint compose_success_num + { + get + { + return this._compose_success_num ?? 0u; + } + set + { + this._compose_success_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool compose_success_numSpecified + { + get + { + return this._compose_success_num != null; + } + set + { + bool flag = value == (this._compose_success_num == null); + if (flag) + { + this._compose_success_num = (value ? new uint?(this.compose_success_num) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "compose_failed_num", DataFormat = DataFormat.TwosComplement)] + public uint compose_failed_num + { + get + { + return this._compose_failed_num ?? 0u; + } + set + { + this._compose_failed_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool compose_failed_numSpecified + { + get + { + return this._compose_failed_num != null; + } + set + { + bool flag = value == (this._compose_failed_num == null); + if (flag) + { + this._compose_failed_num = (value ? new uint?(this.compose_failed_num) : null); + } + } + } + + [ProtoMember(17, Name = "quality_num_list", DataFormat = DataFormat.Default)] + public List quality_num_list + { + get + { + return this._quality_num_list; + } + } + + private readonly List _bodyfashion = new List(); + + private readonly List _bagfashion = new List(); + + private readonly List _collected = new List(); + + private readonly List _display_fashion = new List(); + + private readonly List _own_fashins = new List(); + + private readonly List _own_display_items = new List(); + + private bool? _conversion; + + private uint? _hair_color_id; + + private readonly List _hair_color_info = new List(); + + private readonly List _fashionsynthersis_fail_info = new List(); + + private uint? _fashioncompose_time; + + private uint? _fashionibshop_buy_time; + + private uint? _special_effects_id; + + private readonly List _special_effects_list = new List(); + + private uint? _compose_success_num; + + private uint? _compose_failed_num; + + private readonly List _quality_num_list = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeconversion() + { + return this.conversionSpecified; + } + + private void Resetconversion() + { + this.conversionSpecified = false; + } + + private bool ShouldSerializehair_color_id() + { + return this.hair_color_idSpecified; + } + + private void Resethair_color_id() + { + this.hair_color_idSpecified = false; + } + + private bool ShouldSerializefashioncompose_time() + { + return this.fashioncompose_timeSpecified; + } + + private void Resetfashioncompose_time() + { + this.fashioncompose_timeSpecified = false; + } + + private bool ShouldSerializefashionibshop_buy_time() + { + return this.fashionibshop_buy_timeSpecified; + } + + private void Resetfashionibshop_buy_time() + { + this.fashionibshop_buy_timeSpecified = false; + } + + private bool ShouldSerializespecial_effects_id() + { + return this.special_effects_idSpecified; + } + + private void Resetspecial_effects_id() + { + this.special_effects_idSpecified = false; + } + + private bool ShouldSerializecompose_success_num() + { + return this.compose_success_numSpecified; + } + + private void Resetcompose_success_num() + { + this.compose_success_numSpecified = false; + } + + private bool ShouldSerializecompose_failed_num() + { + return this.compose_failed_numSpecified; + } + + private void Resetcompose_failed_num() + { + this.compose_failed_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionRecord.cs.meta new file mode 100644 index 00000000..81e4d521 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f787c2bb95593ac4b85edab94efdeccf +timeCreated: 1611404888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoArg.cs new file mode 100644 index 00000000..c74337dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionSynthesisInfoArg")] + [Serializable] + public class FashionSynthesisInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "fashion_id", DataFormat = DataFormat.TwosComplement)] + public uint fashion_id + { + get + { + return this._fashion_id ?? 0u; + } + set + { + this._fashion_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fashion_idSpecified + { + get + { + return this._fashion_id != null; + } + set + { + bool flag = value == (this._fashion_id == null); + if (flag) + { + this._fashion_id = (value ? new uint?(this.fashion_id) : null); + } + } + } + + private uint? _fashion_id; + + private IExtension extensionObject; + + private bool ShouldSerializefashion_id() + { + return this.fashion_idSpecified; + } + + private void Resetfashion_id() + { + this.fashion_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoArg.cs.meta new file mode 100644 index 00000000..364c1688 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efe226c6b03e88644bb174954f6cdd31 +timeCreated: 1611404805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoRes.cs new file mode 100644 index 00000000..bd2274bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FashionSynthesisInfoRes")] + [Serializable] + public class FashionSynthesisInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "fashion_id", DataFormat = DataFormat.TwosComplement)] + public uint fashion_id + { + get + { + return this._fashion_id ?? 0u; + } + set + { + this._fashion_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fashion_idSpecified + { + get + { + return this._fashion_id != null; + } + set + { + bool flag = value == (this._fashion_id == null); + if (flag) + { + this._fashion_id = (value ? new uint?(this.fashion_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "add_succes_rate", DataFormat = DataFormat.TwosComplement)] + public uint add_succes_rate + { + get + { + return this._add_succes_rate ?? 0u; + } + set + { + this._add_succes_rate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool add_succes_rateSpecified + { + get + { + return this._add_succes_rate != null; + } + set + { + bool flag = value == (this._add_succes_rate == null); + if (flag) + { + this._add_succes_rate = (value ? new uint?(this.add_succes_rate) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private uint? _fashion_id; + + private uint? _add_succes_rate; + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializefashion_id() + { + return this.fashion_idSpecified; + } + + private void Resetfashion_id() + { + this.fashion_idSpecified = false; + } + + private bool ShouldSerializeadd_succes_rate() + { + return this.add_succes_rateSpecified; + } + + private void Resetadd_succes_rate() + { + this.add_succes_rateSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoRes.cs.meta new file mode 100644 index 00000000..9363a0eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FashionSynthesisInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72472dcab2b4e3a4bbf825942a24cd16 +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FatigueRecoverTimeInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/FatigueRecoverTimeInfo.cs new file mode 100644 index 00000000..cd934325 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FatigueRecoverTimeInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FatigueRecoverTimeInfo")] + [Serializable] + public class FatigueRecoverTimeInfo : IExtensible + { + [ProtoMember(1, Name = "fatigueID", DataFormat = DataFormat.TwosComplement)] + public List fatigueID + { + get + { + return this._fatigueID; + } + } + + [ProtoMember(2, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public List timeleft + { + get + { + return this._timeleft; + } + } + + private readonly List _fatigueID = new List(); + + private readonly List _timeleft = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FatigueRecoverTimeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FatigueRecoverTimeInfo.cs.meta new file mode 100644 index 00000000..5b77c5d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FatigueRecoverTimeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc55cf2bbe099b942b3c5682a587e3a9 +timeCreated: 1611404678 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs new file mode 100644 index 00000000..dfff9c92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Festival520Data")] + [Serializable] + public class Festival520Data : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "loveValue", DataFormat = DataFormat.TwosComplement)] + public uint loveValue + { + get + { + return this._loveValue ?? 0u; + } + set + { + this._loveValue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loveValueSpecified + { + get + { + return this._loveValue != null; + } + set + { + bool flag = value == (this._loveValue == null); + if (flag) + { + this._loveValue = (value ? new uint?(this.loveValue) : null); + } + } + } + + [ProtoMember(2, Name = "alreadyGet", DataFormat = DataFormat.Default)] + public List alreadyGet + { + get + { + return this._alreadyGet; + } + } + + private uint? _loveValue; + + private readonly List _alreadyGet = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeloveValue() + { + return this.loveValueSpecified; + } + + private void ResetloveValue() + { + this.loveValueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs.meta new file mode 100644 index 00000000..348aeea8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Data.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f70988ce6885934ea1eebf9d9be8722 +timeCreated: 1611403909 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Festival520Type.cs b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Type.cs new file mode 100644 index 00000000..ab3e132f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Type.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Festival520Type")] + public enum Festival520Type + { + [ProtoEnum(Name = "Festival520_NormalDonate", Value = 1)] + Festival520_NormalDonate = 1, + [ProtoEnum(Name = "Festival520_PreciousDonate", Value = 2)] + Festival520_PreciousDonate, + [ProtoEnum(Name = "Festival520_GetPrize", Value = 3)] + Festival520_GetPrize, + [ProtoEnum(Name = "Festival520_GetInfo", Value = 4)] + Festival520_GetInfo + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Festival520Type.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Type.cs.meta new file mode 100644 index 00000000..3f04ec15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Festival520Type.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b69d740d6bb2e344f96af976370c6155 +timeCreated: 1611404398 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveArg.cs new file mode 100644 index 00000000..29f88966 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchAchiveArg")] + [Serializable] + public class FetchAchiveArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "AchivementID", DataFormat = DataFormat.TwosComplement)] + public uint AchivementID + { + get + { + return this._AchivementID ?? 0u; + } + set + { + this._AchivementID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool AchivementIDSpecified + { + get + { + return this._AchivementID != null; + } + set + { + bool flag = value == (this._AchivementID == null); + if (flag) + { + this._AchivementID = (value ? new uint?(this.AchivementID) : null); + } + } + } + + private uint? _AchivementID; + + private IExtension extensionObject; + + private bool ShouldSerializeAchivementID() + { + return this.AchivementIDSpecified; + } + + private void ResetAchivementID() + { + this.AchivementIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveArg.cs.meta new file mode 100644 index 00000000..a8cca5c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a01595c79074e764e85403c24e8fd423 +timeCreated: 1611404247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveRes.cs new file mode 100644 index 00000000..9b8fb26c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchAchiveRes")] + [Serializable] + public class FetchAchiveRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode Result + { + get + { + return this._Result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._Result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ResultSpecified + { + get + { + return this._Result != null; + } + set + { + bool flag = value == (this._Result == null); + if (flag) + { + this._Result = (value ? new ErrorCode?(this.Result) : null); + } + } + } + + private ErrorCode? _Result; + + private IExtension extensionObject; + + private bool ShouldSerializeResult() + { + return this.ResultSpecified; + } + + private void ResetResult() + { + this.ResultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveRes.cs.meta new file mode 100644 index 00000000..bf74daf4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchAchiveRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21d8cb6179fb4c147bfbeda17d357167 +timeCreated: 1611403416 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestArg.cs new file mode 100644 index 00000000..6e8a82a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchChapterChestArg")] + [Serializable] + public class FetchChapterChestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "chapterID", DataFormat = DataFormat.TwosComplement)] + public int chapterID + { + get + { + return this._chapterID ?? 0; + } + set + { + this._chapterID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chapterIDSpecified + { + get + { + return this._chapterID != null; + } + set + { + bool flag = value == (this._chapterID == null); + if (flag) + { + this._chapterID = (value ? new int?(this.chapterID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "chestID", DataFormat = DataFormat.TwosComplement)] + public int chestID + { + get + { + return this._chestID ?? 0; + } + set + { + this._chestID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chestIDSpecified + { + get + { + return this._chestID != null; + } + set + { + bool flag = value == (this._chestID == null); + if (flag) + { + this._chestID = (value ? new int?(this.chestID) : null); + } + } + } + + private int? _chapterID; + + private int? _chestID; + + private IExtension extensionObject; + + private bool ShouldSerializechapterID() + { + return this.chapterIDSpecified; + } + + private void ResetchapterID() + { + this.chapterIDSpecified = false; + } + + private bool ShouldSerializechestID() + { + return this.chestIDSpecified; + } + + private void ResetchestID() + { + this.chestIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestArg.cs.meta new file mode 100644 index 00000000..d2adbe97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d894de261e855b40b12dc4f551e5045 +timeCreated: 1611404105 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestRes.cs new file mode 100644 index 00000000..6a5848e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchChapterChestRes")] + [Serializable] + public class FetchChapterChestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestRes.cs.meta new file mode 100644 index 00000000..f8d420e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchChapterChestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9aee53e427e5ed74298fcfac360d0565 +timeCreated: 1611404203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppArg.cs new file mode 100644 index 00000000..261a044a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchDGAppArg")] + [Serializable] + public class FetchDGAppArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppArg.cs.meta new file mode 100644 index 00000000..cac0cf8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad5ae70309a1e3749a69d0fb7fec628b +timeCreated: 1611404334 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppRes.cs new file mode 100644 index 00000000..03c78e68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppRes.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchDGAppRes")] + [Serializable] + public class FetchDGAppRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + [ProtoMember(3, Name = "rolename", DataFormat = DataFormat.Default)] + public List rolename + { + get + { + return this._rolename; + } + } + + [ProtoMember(4, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public List ppt + { + get + { + return this._ppt; + } + } + + [ProtoMember(5, Name = "time", DataFormat = DataFormat.TwosComplement)] + public List time + { + get + { + return this._time; + } + } + + [ProtoMember(6, Name = "level", DataFormat = DataFormat.TwosComplement)] + public List level + { + get + { + return this._level; + } + } + + [ProtoMember(7, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public List profession + { + get + { + return this._profession; + } + } + + private ErrorCode? _result; + + private readonly List _roleid = new List(); + + private readonly List _rolename = new List(); + + private readonly List _ppt = new List(); + + private readonly List _time = new List(); + + private readonly List _level = new List(); + + private readonly List _profession = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppRes.cs.meta new file mode 100644 index 00000000..eb296999 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchDGAppRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89e1cc840373957459fd22f0c8b87e00 +timeCreated: 1611404089 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildListArg.cs new file mode 100644 index 00000000..63addcff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildListArg.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchDragonGuildListArg")] + [Serializable] + public class FetchDragonGuildListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "start", DataFormat = DataFormat.TwosComplement)] + public int start + { + get + { + return this._start ?? 0; + } + set + { + this._start = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startSpecified + { + get + { + return this._start != null; + } + set + { + bool flag = value == (this._start == null); + if (flag) + { + this._start = (value ? new int?(this.start) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public int count + { + get + { + return this._count ?? 0; + } + set + { + this._count = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new int?(this.count) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "reason", DataFormat = DataFormat.TwosComplement)] + public int reason + { + get + { + return this._reason ?? 0; + } + set + { + this._reason = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? new int?(this.reason) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "sortType", DataFormat = DataFormat.TwosComplement)] + public int sortType + { + get + { + return this._sortType ?? 0; + } + set + { + this._sortType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sortTypeSpecified + { + get + { + return this._sortType != null; + } + set + { + bool flag = value == (this._sortType == null); + if (flag) + { + this._sortType = (value ? new int?(this.sortType) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "reverse", DataFormat = DataFormat.Default)] + public bool reverse + { + get + { + return this._reverse ?? false; + } + set + { + this._reverse = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reverseSpecified + { + get + { + return this._reverse != null; + } + set + { + bool flag = value == (this._reverse == null); + if (flag) + { + this._reverse = (value ? new bool?(this.reverse) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private int? _start; + + private int? _count; + + private int? _reason; + + private int? _sortType; + + private bool? _reverse; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializestart() + { + return this.startSpecified; + } + + private void Resetstart() + { + this.startSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + private bool ShouldSerializesortType() + { + return this.sortTypeSpecified; + } + + private void ResetsortType() + { + this.sortTypeSpecified = false; + } + + private bool ShouldSerializereverse() + { + return this.reverseSpecified; + } + + private void Resetreverse() + { + this.reverseSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildListArg.cs.meta new file mode 100644 index 00000000..2d5bb65d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e876058985bb63419cc0b4afce0b232 +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildRes.cs new file mode 100644 index 00000000..3c610a26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchDragonGuildRes")] + [Serializable] + public class FetchDragonGuildRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "dragonguilds", DataFormat = DataFormat.Default)] + public List dragonguilds + { + get + { + return this._dragonguilds; + } + } + + private ErrorCode? _result; + + private readonly List _dragonguilds = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildRes.cs.meta new file mode 100644 index 00000000..fa740ec6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchDragonGuildRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d022c2a67a0cfc342abc18eb4e4d25ba +timeCreated: 1611404584 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPArg.cs new file mode 100644 index 00000000..37a17c9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchGAPPArg")] + [Serializable] + public class FetchGAPPArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPArg.cs.meta new file mode 100644 index 00000000..557a3e40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e279ddc004b6ab14ea1740955795129f +timeCreated: 1611404706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPRes.cs new file mode 100644 index 00000000..f3a9effd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPRes.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchGAPPRes")] + [Serializable] + public class FetchGAPPRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + [ProtoMember(3, Name = "rolename", DataFormat = DataFormat.Default)] + public List rolename + { + get + { + return this._rolename; + } + } + + [ProtoMember(4, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public List ppt + { + get + { + return this._ppt; + } + } + + [ProtoMember(5, Name = "time", DataFormat = DataFormat.TwosComplement)] + public List time + { + get + { + return this._time; + } + } + + [ProtoMember(6, Name = "level", DataFormat = DataFormat.TwosComplement)] + public List level + { + get + { + return this._level; + } + } + + [ProtoMember(7, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public List profession + { + get + { + return this._profession; + } + } + + private ErrorCode? _result; + + private readonly List _roleid = new List(); + + private readonly List _rolename = new List(); + + private readonly List _ppt = new List(); + + private readonly List _time = new List(); + + private readonly List _level = new List(); + + private readonly List _profession = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPRes.cs.meta new file mode 100644 index 00000000..65366d99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchGAPPRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76c14a0632f44ed49a754a2eefc29258 +timeCreated: 1611403950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListArg.cs new file mode 100644 index 00000000..c46809e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListArg.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchGuildListArg")] + [Serializable] + public class FetchGuildListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "start", DataFormat = DataFormat.TwosComplement)] + public int start + { + get + { + return this._start ?? 0; + } + set + { + this._start = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startSpecified + { + get + { + return this._start != null; + } + set + { + bool flag = value == (this._start == null); + if (flag) + { + this._start = (value ? new int?(this.start) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public int count + { + get + { + return this._count ?? 0; + } + set + { + this._count = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new int?(this.count) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "reason", DataFormat = DataFormat.TwosComplement)] + public int reason + { + get + { + return this._reason ?? 0; + } + set + { + this._reason = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? new int?(this.reason) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "sortType", DataFormat = DataFormat.TwosComplement)] + public int sortType + { + get + { + return this._sortType ?? 0; + } + set + { + this._sortType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sortTypeSpecified + { + get + { + return this._sortType != null; + } + set + { + bool flag = value == (this._sortType == null); + if (flag) + { + this._sortType = (value ? new int?(this.sortType) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "reverse", DataFormat = DataFormat.Default)] + public bool reverse + { + get + { + return this._reverse ?? false; + } + set + { + this._reverse = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reverseSpecified + { + get + { + return this._reverse != null; + } + set + { + bool flag = value == (this._reverse == null); + if (flag) + { + this._reverse = (value ? new bool?(this.reverse) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private int? _start; + + private int? _count; + + private int? _reason; + + private int? _sortType; + + private bool? _reverse; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializestart() + { + return this.startSpecified; + } + + private void Resetstart() + { + this.startSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + private bool ShouldSerializesortType() + { + return this.sortTypeSpecified; + } + + private void ResetsortType() + { + this.sortTypeSpecified = false; + } + + private bool ShouldSerializereverse() + { + return this.reverseSpecified; + } + + private void Resetreverse() + { + this.reverseSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListArg.cs.meta new file mode 100644 index 00000000..5ce64168 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 869ffc476a6d3fb4b93b6987874ffc51 +timeCreated: 1611404055 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListRes.cs new file mode 100644 index 00000000..4d6353bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchGuildListRes")] + [Serializable] + public class FetchGuildListRes : IExtensible + { + [ProtoMember(1, Name = "guilds", DataFormat = DataFormat.Default)] + public List guilds + { + get + { + return this._guilds; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _guilds = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListRes.cs.meta new file mode 100644 index 00000000..afd760c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchGuildListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d68bf8b20dac2a949bac6a08dc094b79 +timeCreated: 1611404632 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchMailArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchMailArg.cs new file mode 100644 index 00000000..3c4c7429 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchMailArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchMailArg")] + [Serializable] + public class FetchMailArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "page", DataFormat = DataFormat.TwosComplement)] + public uint page + { + get + { + return this._page ?? 0u; + } + set + { + this._page = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pageSpecified + { + get + { + return this._page != null; + } + set + { + bool flag = value == (this._page == null); + if (flag) + { + this._page = (value ? new uint?(this.page) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _page; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializepage() + { + return this.pageSpecified; + } + + private void Resetpage() + { + this.pageSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchMailArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchMailArg.cs.meta new file mode 100644 index 00000000..1b64faf4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchMailArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dccd4ffbbc263314c8b1cb7c278612f3 +timeCreated: 1611404680 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchMailRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchMailRes.cs new file mode 100644 index 00000000..67fbe990 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchMailRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchMailRes")] + [Serializable] + public class FetchMailRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "page", DataFormat = DataFormat.TwosComplement)] + public uint page + { + get + { + return this._page ?? 0u; + } + set + { + this._page = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pageSpecified + { + get + { + return this._page != null; + } + set + { + bool flag = value == (this._page == null); + if (flag) + { + this._page = (value ? new uint?(this.page) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "pagecount", DataFormat = DataFormat.TwosComplement)] + public uint pagecount + { + get + { + return this._pagecount ?? 0u; + } + set + { + this._pagecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pagecountSpecified + { + get + { + return this._pagecount != null; + } + set + { + bool flag = value == (this._pagecount == null); + if (flag) + { + this._pagecount = (value ? new uint?(this.pagecount) : null); + } + } + } + + [ProtoMember(3, Name = "mails", DataFormat = DataFormat.Default)] + public List mails + { + get + { + return this._mails; + } + } + + private uint? _page; + + private uint? _pagecount; + + private readonly List _mails = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializepage() + { + return this.pageSpecified; + } + + private void Resetpage() + { + this.pageSpecified = false; + } + + private bool ShouldSerializepagecount() + { + return this.pagecountSpecified; + } + + private void Resetpagecount() + { + this.pagecountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchMailRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchMailRes.cs.meta new file mode 100644 index 00000000..49935ca2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchMailRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32a47f0d33425e94abb9b64ff227449c +timeCreated: 1611403549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs new file mode 100644 index 00000000..1d620091 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchPlantInfoArg")] + [Serializable] + public class FetchPlantInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public uint farmland_id + { + get + { + return this._farmland_id ?? 0u; + } + set + { + this._farmland_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool farmland_idSpecified + { + get + { + return this._farmland_id != null; + } + set + { + bool flag = value == (this._farmland_id == null); + if (flag) + { + this._farmland_id = (value ? new uint?(this.farmland_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public GardenQuestType quest_type + { + get + { + return this._quest_type ?? GardenQuestType.MYSELF; + } + set + { + this._quest_type = new GardenQuestType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new GardenQuestType?(this.quest_type) : null); + } + } + } + + private ulong? _garden_id; + + private uint? _farmland_id; + + private GardenQuestType? _quest_type; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializefarmland_id() + { + return this.farmland_idSpecified; + } + + private void Resetfarmland_id() + { + this.farmland_idSpecified = false; + } + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs.meta new file mode 100644 index 00000000..9dff5eee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07b6686653a47054a803623ee812edba +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs new file mode 100644 index 00000000..8a780a2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchPlantInfoRes")] + [Serializable] + public class FetchPlantInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "plant_info", DataFormat = DataFormat.Default)] + public List plant_info + { + get + { + return this._plant_info; + } + } + + [ProtoMember(3, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)] + public uint sprite_id + { + get + { + return this._sprite_id ?? 0u; + } + set + { + this._sprite_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sprite_idSpecified + { + get + { + return this._sprite_id != null; + } + set + { + bool flag = value == (this._sprite_id == null); + if (flag) + { + this._sprite_id = (value ? new uint?(this.sprite_id) : null); + } + } + } + + [ProtoMember(4, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public List farmland_id + { + get + { + return this._farmland_id; + } + } + + private ErrorCode? _result; + + private readonly List _plant_info = new List(); + + private uint? _sprite_id; + + private readonly List _farmland_id = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializesprite_id() + { + return this.sprite_idSpecified; + } + + private void Resetsprite_id() + { + this.sprite_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs.meta new file mode 100644 index 00000000..ea6e93b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlantInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a26875b9cbcfef24bb557b5af6449bc2 +timeCreated: 1611404257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs new file mode 100644 index 00000000..1551e7c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchPlatNoticeArg")] + [Serializable] + public class FetchPlatNoticeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LoginType type + { + get + { + return this._type ?? LoginType.LOGIN_PASSWORD; + } + set + { + this._type = new LoginType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LoginType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "platid", DataFormat = DataFormat.TwosComplement)] + public PlatType platid + { + get + { + return this._platid ?? PlatType.PLAT_IOS; + } + set + { + this._platid = new PlatType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool platidSpecified + { + get + { + return this._platid != null; + } + set + { + bool flag = value == (this._platid == null); + if (flag) + { + this._platid = (value ? new PlatType?(this.platid) : null); + } + } + } + + private LoginType? _type; + + private PlatType? _platid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeplatid() + { + return this.platidSpecified; + } + + private void Resetplatid() + { + this.platidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs.meta new file mode 100644 index 00000000..8a74c342 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7907a02a7646194591b46f5bcf6d26a +timeCreated: 1611404402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs new file mode 100644 index 00000000..064552a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchPlatNoticeRes")] + [Serializable] + public class FetchPlatNoticeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "notice", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatNotice notice + { + get + { + return this._notice; + } + set + { + this._notice = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(3, Name = "data", DataFormat = DataFormat.Default)] + public List data + { + get + { + return this._data; + } + } + + private PlatNotice _notice = null; + + private ErrorCode? _result; + + private readonly List _data = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs.meta new file mode 100644 index 00000000..fff84168 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchPlatNoticeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 593caaefac20b2c478f28b9f5c316075 +timeCreated: 1611403782 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListArg.cs new file mode 100644 index 00000000..cbe7b937 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchTeamListArg")] + [Serializable] + public class FetchTeamListArg : IExtensible + { + [ProtoMember(1, Name = "categoryID", DataFormat = DataFormat.TwosComplement)] + public List categoryID + { + get + { + return this._categoryID; + } + } + + [ProtoMember(2, IsRequired = false, Name = "expID", DataFormat = DataFormat.TwosComplement)] + public uint expID + { + get + { + return this._expID ?? 0u; + } + set + { + this._expID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expIDSpecified + { + get + { + return this._expID != null; + } + set + { + bool flag = value == (this._expID == null); + if (flag) + { + this._expID = (value ? new uint?(this.expID) : null); + } + } + } + + private readonly List _categoryID = new List(); + + private uint? _expID; + + private IExtension extensionObject; + + private bool ShouldSerializeexpID() + { + return this.expIDSpecified; + } + + private void ResetexpID() + { + this.expIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListArg.cs.meta new file mode 100644 index 00000000..d554c7d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6e0dadd3382ea942bcc9c7748d1d38a +timeCreated: 1611404527 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs new file mode 100644 index 00000000..b6eb2186 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FetchTeamListRes")] + [Serializable] + public class FetchTeamListRes : IExtensible + { + [ProtoMember(1, Name = "teams", DataFormat = DataFormat.Default)] + public List teams + { + get + { + return this._teams; + } + } + + [ProtoMember(2, Name = "TheTeams", DataFormat = DataFormat.Default)] + public List TheTeams + { + get + { + return this._TheTeams; + } + } + + [ProtoMember(3, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private readonly List _teams = new List(); + + private readonly List _TheTeams = new List(); + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs.meta new file mode 100644 index 00000000..1c04199d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86e306c0a764e4643af088385af0c20d +timeCreated: 1611404056 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FightGroupChangeNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/FightGroupChangeNtf.cs new file mode 100644 index 00000000..a03e4195 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FightGroupChangeNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FightGroupChangeNtf")] + [Serializable] + public class FightGroupChangeNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fightgroup", DataFormat = DataFormat.TwosComplement)] + public uint fightgroup + { + get + { + return this._fightgroup ?? 0u; + } + set + { + this._fightgroup = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightgroupSpecified + { + get + { + return this._fightgroup != null; + } + set + { + bool flag = value == (this._fightgroup == null); + if (flag) + { + this._fightgroup = (value ? new uint?(this.fightgroup) : null); + } + } + } + + private ulong? _uid; + + private uint? _fightgroup; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializefightgroup() + { + return this.fightgroupSpecified; + } + + private void Resetfightgroup() + { + this.fightgroupSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FightGroupChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FightGroupChangeNtf.cs.meta new file mode 100644 index 00000000..75500940 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FightGroupChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 578df60d7bb7f9b4b8898b8664b9561d +timeCreated: 1611403750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FightGroupType.cs b/Client/Assets/Scripts/XMainClient/KKSG/FightGroupType.cs new file mode 100644 index 00000000..99fa383d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FightGroupType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FightGroupType")] + public enum FightGroupType + { + [ProtoEnum(Name = "FightEnemy", Value = 0)] + FightEnemy, + [ProtoEnum(Name = "FightRole", Value = 1)] + FightRole, + [ProtoEnum(Name = "FightNeutral", Value = 2)] + FightNeutral, + [ProtoEnum(Name = "FightHostility", Value = 3)] + FightHostility, + [ProtoEnum(Name = "FightDummy", Value = 10)] + FightDummy = 10 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FightGroupType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FightGroupType.cs.meta new file mode 100644 index 00000000..5b2995fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FightGroupType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aca4605e383d1f84d9b018ac68a452fc +timeCreated: 1611404331 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FinishStateInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/FinishStateInfo.cs new file mode 100644 index 00000000..789b625c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FinishStateInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FinishStateInfo")] + [Serializable] + public class FinishStateInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public SceneFinishState state + { + get + { + return this._state ?? SceneFinishState.SCENE_FINISH_NONE; + } + set + { + this._state = new SceneFinishState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new SceneFinishState?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "countdown", DataFormat = DataFormat.TwosComplement)] + public int countdown + { + get + { + return this._countdown ?? 0; + } + set + { + this._countdown = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countdownSpecified + { + get + { + return this._countdown != null; + } + set + { + bool flag = value == (this._countdown == null); + if (flag) + { + this._countdown = (value ? new int?(this.countdown) : null); + } + } + } + + private SceneFinishState? _state; + + private int? _countdown; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializecountdown() + { + return this.countdownSpecified; + } + + private void Resetcountdown() + { + this.countdownSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FinishStateInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FinishStateInfo.cs.meta new file mode 100644 index 00000000..c4550715 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FinishStateInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 072a7c6379059bc4e87b2addf66cbf2f +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs new file mode 100644 index 00000000..c136c165 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FirstPassGetTopRoleInfoArg")] + [Serializable] + public class FirstPassGetTopRoleInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "firstPassID", DataFormat = DataFormat.TwosComplement)] + public int firstPassID + { + get + { + return this._firstPassID ?? 0; + } + set + { + this._firstPassID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstPassIDSpecified + { + get + { + return this._firstPassID != null; + } + set + { + bool flag = value == (this._firstPassID == null); + if (flag) + { + this._firstPassID = (value ? new int?(this.firstPassID) : null); + } + } + } + + private int? _firstPassID; + + private IExtension extensionObject; + + private bool ShouldSerializefirstPassID() + { + return this.firstPassIDSpecified; + } + + private void ResetfirstPassID() + { + this.firstPassIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs.meta new file mode 100644 index 00000000..f718afe7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d4fb4a420ff3bb4bb17fcdd5bc7502c +timeCreated: 1611403901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs new file mode 100644 index 00000000..8193b515 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FirstPassGetTopRoleInfoRes")] + [Serializable] + public class FirstPassGetTopRoleInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + [ProtoMember(3, IsRequired = false, Name = "commendNum", DataFormat = DataFormat.TwosComplement)] + public int commendNum + { + get + { + return this._commendNum ?? 0; + } + set + { + this._commendNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool commendNumSpecified + { + get + { + return this._commendNum != null; + } + set + { + bool flag = value == (this._commendNum == null); + if (flag) + { + this._commendNum = (value ? new int?(this.commendNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public int time + { + get + { + return this._time ?? 0; + } + set + { + this._time = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new int?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "starLevel", DataFormat = DataFormat.TwosComplement)] + public int starLevel + { + get + { + return this._starLevel ?? 0; + } + set + { + this._starLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool starLevelSpecified + { + get + { + return this._starLevel != null; + } + set + { + bool flag = value == (this._starLevel == null); + if (flag) + { + this._starLevel = (value ? new int?(this.starLevel) : null); + } + } + } + + private ErrorCode? _error; + + private readonly List _infos = new List(); + + private int? _commendNum; + + private int? _time; + + private int? _starLevel; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecommendNum() + { + return this.commendNumSpecified; + } + + private void ResetcommendNum() + { + this.commendNumSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializestarLevel() + { + return this.starLevelSpecified; + } + + private void ResetstarLevel() + { + this.starLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs.meta new file mode 100644 index 00000000..8405ad07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassGetTopRoleInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e380164bc023bb4cbc2b9bbd80ed4be +timeCreated: 1611404240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqArg.cs new file mode 100644 index 00000000..d71e4765 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FirstPassInfoReqArg")] + [Serializable] + public class FirstPassInfoReqArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqArg.cs.meta new file mode 100644 index 00000000..761f56cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee4fba15941425249866b6faefcfb939 +timeCreated: 1611404796 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqRes.cs new file mode 100644 index 00000000..b15f277b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FirstPassInfoReqRes")] + [Serializable] + public class FirstPassInfoReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "stageInfos", DataFormat = DataFormat.Default)] + public List stageInfos + { + get + { + return this._stageInfos; + } + } + + private ErrorCode? _error; + + private readonly List _stageInfos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqRes.cs.meta new file mode 100644 index 00000000..c8d3dfd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassInfoReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d839f84f8b6bef47a08120376ae8cdf +timeCreated: 1611403506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRecord.cs new file mode 100644 index 00000000..ce73fac3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRecord.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FirstPassRecord")] + [Serializable] + public class FirstPassRecord : IExtensible + { + [ProtoMember(1, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + private readonly List _infos = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRecord.cs.meta new file mode 100644 index 00000000..a206b0bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87492ffd43313d849b622dbce64c51b4 +timeCreated: 1611404078 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRewardNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRewardNtfData.cs new file mode 100644 index 00000000..7a1a74b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRewardNtfData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FirstPassRewardNtfData")] + [Serializable] + public class FirstPassRewardNtfData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hasFirstPassReward", DataFormat = DataFormat.Default)] + public bool hasFirstPassReward + { + get + { + return this._hasFirstPassReward ?? false; + } + set + { + this._hasFirstPassReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasFirstPassRewardSpecified + { + get + { + return this._hasFirstPassReward != null; + } + set + { + bool flag = value == (this._hasFirstPassReward == null); + if (flag) + { + this._hasFirstPassReward = (value ? new bool?(this.hasFirstPassReward) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hasCommendReward", DataFormat = DataFormat.Default)] + public bool hasCommendReward + { + get + { + return this._hasCommendReward ?? false; + } + set + { + this._hasCommendReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasCommendRewardSpecified + { + get + { + return this._hasCommendReward != null; + } + set + { + bool flag = value == (this._hasCommendReward == null); + if (flag) + { + this._hasCommendReward = (value ? new bool?(this.hasCommendReward) : null); + } + } + } + + private bool? _hasFirstPassReward; + + private bool? _hasCommendReward; + + private IExtension extensionObject; + + private bool ShouldSerializehasFirstPassReward() + { + return this.hasFirstPassRewardSpecified; + } + + private void ResethasFirstPassReward() + { + this.hasFirstPassRewardSpecified = false; + } + + private bool ShouldSerializehasCommendReward() + { + return this.hasCommendRewardSpecified; + } + + private void ResethasCommendReward() + { + this.hasCommendRewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRewardNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRewardNtfData.cs.meta new file mode 100644 index 00000000..800e023c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassRewardNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb9edf39a71b1574482e46a394dc8679 +timeCreated: 1611404931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo.cs new file mode 100644 index 00000000..5143189c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FirstPassStageInfo")] + [Serializable] + public class FirstPassStageInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "firstPassID", DataFormat = DataFormat.TwosComplement)] + public int firstPassID + { + get + { + return this._firstPassID ?? 0; + } + set + { + this._firstPassID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstPassIDSpecified + { + get + { + return this._firstPassID != null; + } + set + { + bool flag = value == (this._firstPassID == null); + if (flag) + { + this._firstPassID = (value ? new int?(this.firstPassID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isGetReward", DataFormat = DataFormat.Default)] + public bool isGetReward + { + get + { + return this._isGetReward ?? false; + } + set + { + this._isGetReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isGetRewardSpecified + { + get + { + return this._isGetReward != null; + } + set + { + bool flag = value == (this._isGetReward == null); + if (flag) + { + this._isGetReward = (value ? new bool?(this.isGetReward) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "hasCommended", DataFormat = DataFormat.Default)] + public bool hasCommended + { + get + { + return this._hasCommended ?? false; + } + set + { + this._hasCommended = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasCommendedSpecified + { + get + { + return this._hasCommended != null; + } + set + { + bool flag = value == (this._hasCommended == null); + if (flag) + { + this._hasCommended = (value ? new bool?(this.hasCommended) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "totalRank", DataFormat = DataFormat.TwosComplement)] + public int totalRank + { + get + { + return this._totalRank ?? 0; + } + set + { + this._totalRank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalRankSpecified + { + get + { + return this._totalRank != null; + } + set + { + bool flag = value == (this._totalRank == null); + if (flag) + { + this._totalRank = (value ? new int?(this.totalRank) : null); + } + } + } + + [ProtoMember(6, Name = "commendedStarLevels", DataFormat = DataFormat.TwosComplement)] + public List commendedStarLevels + { + get + { + return this._commendedStarLevels; + } + } + + private int? _firstPassID; + + private bool? _isGetReward; + + private int? _rank; + + private bool? _hasCommended; + + private int? _totalRank; + + private readonly List _commendedStarLevels = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializefirstPassID() + { + return this.firstPassIDSpecified; + } + + private void ResetfirstPassID() + { + this.firstPassIDSpecified = false; + } + + private bool ShouldSerializeisGetReward() + { + return this.isGetRewardSpecified; + } + + private void ResetisGetReward() + { + this.isGetRewardSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializehasCommended() + { + return this.hasCommendedSpecified; + } + + private void ResethasCommended() + { + this.hasCommendedSpecified = false; + } + + private bool ShouldSerializetotalRank() + { + return this.totalRankSpecified; + } + + private void ResettotalRank() + { + this.totalRankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo.cs.meta new file mode 100644 index 00000000..4fe579d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc3d5f7358c20a64db9a4e8887b6436e +timeCreated: 1611404677 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo2Client.cs new file mode 100644 index 00000000..b6c0bfb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo2Client.cs @@ -0,0 +1,206 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FirstPassStageInfo2Client")] + [Serializable] + public class FirstPassStageInfo2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "firstPassID", DataFormat = DataFormat.TwosComplement)] + public int firstPassID + { + get + { + return this._firstPassID ?? 0; + } + set + { + this._firstPassID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstPassIDSpecified + { + get + { + return this._firstPassID != null; + } + set + { + bool flag = value == (this._firstPassID == null); + if (flag) + { + this._firstPassID = (value ? new int?(this.firstPassID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isGetReward", DataFormat = DataFormat.Default)] + public bool isGetReward + { + get + { + return this._isGetReward ?? false; + } + set + { + this._isGetReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isGetRewardSpecified + { + get + { + return this._isGetReward != null; + } + set + { + bool flag = value == (this._isGetReward == null); + if (flag) + { + this._isGetReward = (value ? new bool?(this.isGetReward) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "myRank", DataFormat = DataFormat.TwosComplement)] + public int myRank + { + get + { + return this._myRank ?? 0; + } + set + { + this._myRank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool myRankSpecified + { + get + { + return this._myRank != null; + } + set + { + bool flag = value == (this._myRank == null); + if (flag) + { + this._myRank = (value ? new int?(this.myRank) : null); + } + } + } + + [ProtoMember(4, IsRequired = true, Name = "totalRank", DataFormat = DataFormat.TwosComplement)] + public int totalRank + { + get + { + return this._totalRank; + } + set + { + this._totalRank = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "hasCommended", DataFormat = DataFormat.Default)] + public bool hasCommended + { + get + { + return this._hasCommended ?? false; + } + set + { + this._hasCommended = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasCommendedSpecified + { + get + { + return this._hasCommended != null; + } + set + { + bool flag = value == (this._hasCommended == null); + if (flag) + { + this._hasCommended = (value ? new bool?(this.hasCommended) : null); + } + } + } + + private int? _firstPassID; + + private bool? _isGetReward; + + private int? _myRank; + + private int _totalRank; + + private bool? _hasCommended; + + private IExtension extensionObject; + + private bool ShouldSerializefirstPassID() + { + return this.firstPassIDSpecified; + } + + private void ResetfirstPassID() + { + this.firstPassIDSpecified = false; + } + + private bool ShouldSerializeisGetReward() + { + return this.isGetRewardSpecified; + } + + private void ResetisGetReward() + { + this.isGetRewardSpecified = false; + } + + private bool ShouldSerializemyRank() + { + return this.myRankSpecified; + } + + private void ResetmyRank() + { + this.myRankSpecified = false; + } + + private bool ShouldSerializehasCommended() + { + return this.hasCommendedSpecified; + } + + private void ResethasCommended() + { + this.hasCommendedSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo2Client.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo2Client.cs.meta new file mode 100644 index 00000000..afd4a546 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FirstPassStageInfo2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bcfcdbf29ed4e544ebf2967f07af004a +timeCreated: 1611404449 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FishingState.cs b/Client/Assets/Scripts/XMainClient/KKSG/FishingState.cs new file mode 100644 index 00000000..b038de12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FishingState.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FishingState")] + public enum FishingState + { + [ProtoEnum(Name = "LEAVE", Value = 1)] + LEAVE = 1, + [ProtoEnum(Name = "SITDOWN", Value = 2)] + SITDOWN, + [ProtoEnum(Name = "CAST", Value = 3)] + CAST, + [ProtoEnum(Name = "WAIT", Value = 4)] + WAIT, + [ProtoEnum(Name = "PULL", Value = 5)] + PULL + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FishingState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FishingState.cs.meta new file mode 100644 index 00000000..55f9afd8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FishingState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a8d368834fa50f4a90cbe3aef6147ab +timeCreated: 1611404200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs new file mode 100644 index 00000000..c2d3459b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FiveRewardRes")] + [Serializable] + public class FiveRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "twoday", DataFormat = DataFormat.Default)] + public bool twoday + { + get + { + return this._twoday ?? false; + } + set + { + this._twoday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool twodaySpecified + { + get + { + return this._twoday != null; + } + set + { + bool flag = value == (this._twoday == null); + if (flag) + { + this._twoday = (value ? new bool?(this.twoday) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fiveday", DataFormat = DataFormat.Default)] + public bool fiveday + { + get + { + return this._fiveday ?? false; + } + set + { + this._fiveday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fivedaySpecified + { + get + { + return this._fiveday != null; + } + set + { + bool flag = value == (this._fiveday == null); + if (flag) + { + this._fiveday = (value ? new bool?(this.fiveday) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "threeday", DataFormat = DataFormat.Default)] + public bool threeday + { + get + { + return this._threeday ?? false; + } + set + { + this._threeday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool threedaySpecified + { + get + { + return this._threeday != null; + } + set + { + bool flag = value == (this._threeday == null); + if (flag) + { + this._threeday = (value ? new bool?(this.threeday) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "sevenday", DataFormat = DataFormat.Default)] + public bool sevenday + { + get + { + return this._sevenday ?? false; + } + set + { + this._sevenday = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sevendaySpecified + { + get + { + return this._sevenday != null; + } + set + { + bool flag = value == (this._sevenday == null); + if (flag) + { + this._sevenday = (value ? new bool?(this.sevenday) : null); + } + } + } + + private bool? _twoday; + + private bool? _fiveday; + + private bool? _threeday; + + private bool? _sevenday; + + private IExtension extensionObject; + + private bool ShouldSerializetwoday() + { + return this.twodaySpecified; + } + + private void Resettwoday() + { + this.twodaySpecified = false; + } + + private bool ShouldSerializefiveday() + { + return this.fivedaySpecified; + } + + private void Resetfiveday() + { + this.fivedaySpecified = false; + } + + private bool ShouldSerializethreeday() + { + return this.threedaySpecified; + } + + private void Resetthreeday() + { + this.threedaySpecified = false; + } + + private bool ShouldSerializesevenday() + { + return this.sevendaySpecified; + } + + private void Resetsevenday() + { + this.sevendaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs.meta new file mode 100644 index 00000000..1e3fcbe0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf4b60c428e75ef4a860c223e5a6c35d +timeCreated: 1611404483 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRet.cs b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRet.cs new file mode 100644 index 00000000..b8fed4fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRet.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FiveRewardRet")] + [Serializable] + public class FiveRewardRet : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ret", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ret + { + get + { + return this._ret ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ret = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool retSpecified + { + get + { + return this._ret != null; + } + set + { + bool flag = value == (this._ret == null); + if (flag) + { + this._ret = (value ? new ErrorCode?(this.ret) : null); + } + } + } + + private ErrorCode? _ret; + + private IExtension extensionObject; + + private bool ShouldSerializeret() + { + return this.retSpecified; + } + + private void Resetret() + { + this.retSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRet.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRet.cs.meta new file mode 100644 index 00000000..36f17eff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardRet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f09d431d7c7a05349b496b6232644e55 +timeCreated: 1611404833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs new file mode 100644 index 00000000..22f9919f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FiveRewardState")] + [Serializable] + public class FiveRewardState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "logindaycount", DataFormat = DataFormat.TwosComplement)] + public uint logindaycount + { + get + { + return this._logindaycount ?? 0u; + } + set + { + this._logindaycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool logindaycountSpecified + { + get + { + return this._logindaycount != null; + } + set + { + bool flag = value == (this._logindaycount == null); + if (flag) + { + this._logindaycount = (value ? new uint?(this.logindaycount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fivedayRS", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState fivedayRS + { + get + { + return this._fivedayRS ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._fivedayRS = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fivedayRSSpecified + { + get + { + return this._fivedayRS != null; + } + set + { + bool flag = value == (this._fivedayRS == null); + if (flag) + { + this._fivedayRS = (value ? new LoginRewardState?(this.fivedayRS) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "twodayRS", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState twodayRS + { + get + { + return this._twodayRS ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._twodayRS = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool twodayRSSpecified + { + get + { + return this._twodayRS != null; + } + set + { + bool flag = value == (this._twodayRS == null); + if (flag) + { + this._twodayRS = (value ? new LoginRewardState?(this.twodayRS) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "threedayRS", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState threedayRS + { + get + { + return this._threedayRS ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._threedayRS = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool threedayRSSpecified + { + get + { + return this._threedayRS != null; + } + set + { + bool flag = value == (this._threedayRS == null); + if (flag) + { + this._threedayRS = (value ? new LoginRewardState?(this.threedayRS) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "sevendayRS", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState sevendayRS + { + get + { + return this._sevendayRS ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._sevendayRS = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sevendayRSSpecified + { + get + { + return this._sevendayRS != null; + } + set + { + bool flag = value == (this._sevendayRS == null); + if (flag) + { + this._sevendayRS = (value ? new LoginRewardState?(this.sevendayRS) : null); + } + } + } + + private uint? _logindaycount; + + private LoginRewardState? _fivedayRS; + + private LoginRewardState? _twodayRS; + + private LoginRewardState? _threedayRS; + + private LoginRewardState? _sevendayRS; + + private IExtension extensionObject; + + private bool ShouldSerializelogindaycount() + { + return this.logindaycountSpecified; + } + + private void Resetlogindaycount() + { + this.logindaycountSpecified = false; + } + + private bool ShouldSerializefivedayRS() + { + return this.fivedayRSSpecified; + } + + private void ResetfivedayRS() + { + this.fivedayRSSpecified = false; + } + + private bool ShouldSerializetwodayRS() + { + return this.twodayRSSpecified; + } + + private void ResettwodayRS() + { + this.twodayRSSpecified = false; + } + + private bool ShouldSerializethreedayRS() + { + return this.threedayRSSpecified; + } + + private void ResetthreedayRS() + { + this.threedayRSSpecified = false; + } + + private bool ShouldSerializesevendayRS() + { + return this.sevendayRSSpecified; + } + + private void ResetsevendayRS() + { + this.sevendayRSSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs.meta new file mode 100644 index 00000000..94842c64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FiveRewardState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7dc6f5e4db0fd2640a075f54f7719ae9 +timeCreated: 1611404002 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FlowerInfo2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/FlowerInfo2Client.cs new file mode 100644 index 00000000..bd195816 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FlowerInfo2Client.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FlowerInfo2Client")] + [Serializable] + public class FlowerInfo2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public uint itemID + { + get + { + return this._itemID ?? 0u; + } + set + { + this._itemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new uint?(this.itemID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "timestamp", DataFormat = DataFormat.TwosComplement)] + public uint timestamp + { + get + { + return this._timestamp ?? 0u; + } + set + { + this._timestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timestampSpecified + { + get + { + return this._timestamp != null; + } + set + { + bool flag = value == (this._timestamp == null); + if (flag) + { + this._timestamp = (value ? new uint?(this.timestamp) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + private ulong? _roleID; + + private uint? _itemID; + + private uint? _count; + + private uint? _timestamp; + + private string _roleName; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializetimestamp() + { + return this.timestampSpecified; + } + + private void Resettimestamp() + { + this.timestampSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FlowerInfo2Client.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FlowerInfo2Client.cs.meta new file mode 100644 index 00000000..bc4d5193 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FlowerInfo2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 624b7d3b58b37574990a795974fa338c +timeCreated: 1611403840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs new file mode 100644 index 00000000..2b4f17df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FlowerRecord")] + [Serializable] + public class FlowerRecord : IExtensible + { + [ProtoMember(1, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + [ProtoMember(2, Name = "count", DataFormat = DataFormat.TwosComplement)] + public List count + { + get + { + return this._count; + } + } + + [ProtoMember(3, IsRequired = false, Name = "updateday", DataFormat = DataFormat.TwosComplement)] + public uint updateday + { + get + { + return this._updateday ?? 0u; + } + set + { + this._updateday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatedaySpecified + { + get + { + return this._updateday != null; + } + set + { + bool flag = value == (this._updateday == null); + if (flag) + { + this._updateday = (value ? new uint?(this.updateday) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "getRankReward", DataFormat = DataFormat.Default)] + public bool getRankReward + { + get + { + return this._getRankReward ?? false; + } + set + { + this._getRankReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getRankRewardSpecified + { + get + { + return this._getRankReward != null; + } + set + { + bool flag = value == (this._getRankReward == null); + if (flag) + { + this._getRankReward = (value ? new bool?(this.getRankReward) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "getFlowerTime", DataFormat = DataFormat.TwosComplement)] + public uint getFlowerTime + { + get + { + return this._getFlowerTime ?? 0u; + } + set + { + this._getFlowerTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getFlowerTimeSpecified + { + get + { + return this._getFlowerTime != null; + } + set + { + bool flag = value == (this._getFlowerTime == null); + if (flag) + { + this._getFlowerTime = (value ? new uint?(this.getFlowerTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "getFlowerNum", DataFormat = DataFormat.TwosComplement)] + public uint getFlowerNum + { + get + { + return this._getFlowerNum ?? 0u; + } + set + { + this._getFlowerNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getFlowerNumSpecified + { + get + { + return this._getFlowerNum != null; + } + set + { + bool flag = value == (this._getFlowerNum == null); + if (flag) + { + this._getFlowerNum = (value ? new uint?(this.getFlowerNum) : null); + } + } + } + + private readonly List _roleid = new List(); + + private readonly List _count = new List(); + + private uint? _updateday; + + private bool? _getRankReward; + + private uint? _getFlowerTime; + + private uint? _getFlowerNum; + + private IExtension extensionObject; + + private bool ShouldSerializeupdateday() + { + return this.updatedaySpecified; + } + + private void Resetupdateday() + { + this.updatedaySpecified = false; + } + + private bool ShouldSerializegetRankReward() + { + return this.getRankRewardSpecified; + } + + private void ResetgetRankReward() + { + this.getRankRewardSpecified = false; + } + + private bool ShouldSerializegetFlowerTime() + { + return this.getFlowerTimeSpecified; + } + + private void ResetgetFlowerTime() + { + this.getFlowerTimeSpecified = false; + } + + private bool ShouldSerializegetFlowerNum() + { + return this.getFlowerNumSpecified; + } + + private void ResetgetFlowerNum() + { + this.getFlowerNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs.meta new file mode 100644 index 00000000..d9e04812 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FlowerRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39e07de3a08648643bda02df56592224 +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipArg.cs new file mode 100644 index 00000000..d479b889 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ForgeEquipArg")] + [Serializable] + public class ForgeEquipArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isUsedStone", DataFormat = DataFormat.Default)] + public bool isUsedStone + { + get + { + return this._isUsedStone ?? false; + } + set + { + this._isUsedStone = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isUsedStoneSpecified + { + get + { + return this._isUsedStone != null; + } + set + { + bool flag = value == (this._isUsedStone == null); + if (flag) + { + this._isUsedStone = (value ? new bool?(this.isUsedStone) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public ForgeOpType type + { + get + { + return this._type ?? ForgeOpType.Forge_Equip; + } + set + { + this._type = new ForgeOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new ForgeOpType?(this.type) : null); + } + } + } + + private ulong? _uid; + + private bool? _isUsedStone; + + private ForgeOpType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeisUsedStone() + { + return this.isUsedStoneSpecified; + } + + private void ResetisUsedStone() + { + this.isUsedStoneSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipArg.cs.meta new file mode 100644 index 00000000..5e1de3bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e5da66de1bee8b46b1f6bfe816e5dac +timeCreated: 1611403904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipRes.cs new file mode 100644 index 00000000..6fd3297c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ForgeEquipRes")] + [Serializable] + public class ForgeEquipRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipRes.cs.meta new file mode 100644 index 00000000..abfeeb50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ForgeEquipRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c2c4b1b298ad5f489846cd5ffc5c1fc +timeCreated: 1611403172 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs new file mode 100644 index 00000000..e22e8161 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ForgeOpType")] + public enum ForgeOpType + { + [ProtoEnum(Name = "Forge_Equip", Value = 1)] + Forge_Equip = 1, + [ProtoEnum(Name = "Forge_Replace", Value = 2)] + Forge_Replace, + [ProtoEnum(Name = "Forge_Retain", Value = 3)] + Forge_Retain + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs.meta new file mode 100644 index 00000000..034deffb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ForgeOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 430c3fb153bc3a14ea517d392cd8976c +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FortStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/FortStatus.cs new file mode 100644 index 00000000..2de51477 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FortStatus.cs @@ -0,0 +1,12 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FortStatus")] + public enum FortStatus + { + [ProtoEnum(Name = "FORTSTATUS_MAX", Value = 1)] + FORTSTATUS_MAX = 1 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FortStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FortStatus.cs.meta new file mode 100644 index 00000000..766ee4f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FortStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34e7ff9a92af182409e4a67ca5d0f862 +timeCreated: 1611403557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FortType.cs b/Client/Assets/Scripts/XMainClient/KKSG/FortType.cs new file mode 100644 index 00000000..61e6a7e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FortType.cs @@ -0,0 +1,12 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FortType")] + public enum FortType + { + [ProtoEnum(Name = "FORTTYPE_MAX", Value = 1)] + FORTTYPE_MAX = 1 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FortType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FortType.cs.meta new file mode 100644 index 00000000..d2d0763a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FortType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ddb8e00cb0bc9e44a69fb678e65f2af +timeCreated: 1611404238 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Friend2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/Friend2Client.cs new file mode 100644 index 00000000..a1296736 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Friend2Client.cs @@ -0,0 +1,1067 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Friend2Client")] + [Serializable] + public class Friend2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "powerpoint", DataFormat = DataFormat.TwosComplement)] + public uint powerpoint + { + get + { + return this._powerpoint ?? 0u; + } + set + { + this._powerpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerpointSpecified + { + get + { + return this._powerpoint != null; + } + set + { + bool flag = value == (this._powerpoint == null); + if (flag) + { + this._powerpoint = (value ? new uint?(this.powerpoint) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "viplevel", DataFormat = DataFormat.TwosComplement)] + public uint viplevel + { + get + { + return this._viplevel ?? 0u; + } + set + { + this._viplevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool viplevelSpecified + { + get + { + return this._viplevel != null; + } + set + { + bool flag = value == (this._viplevel == null); + if (flag) + { + this._viplevel = (value ? new uint?(this.viplevel) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "lastlogin", DataFormat = DataFormat.TwosComplement)] + public uint lastlogin + { + get + { + return this._lastlogin ?? 0u; + } + set + { + this._lastlogin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastloginSpecified + { + get + { + return this._lastlogin != null; + } + set + { + bool flag = value == (this._lastlogin == null); + if (flag) + { + this._lastlogin = (value ? new uint?(this.lastlogin) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "roleaudioid", DataFormat = DataFormat.TwosComplement)] + public uint roleaudioid + { + get + { + return this._roleaudioid ?? 0u; + } + set + { + this._roleaudioid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleaudioidSpecified + { + get + { + return this._roleaudioid != null; + } + set + { + bool flag = value == (this._roleaudioid == null); + if (flag) + { + this._roleaudioid = (value ? new uint?(this.roleaudioid) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "audioid", DataFormat = DataFormat.TwosComplement)] + public uint audioid + { + get + { + return this._audioid ?? 0u; + } + set + { + this._audioid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioidSpecified + { + get + { + return this._audioid != null; + } + set + { + bool flag = value == (this._audioid == null); + if (flag) + { + this._audioid = (value ? new uint?(this.audioid) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "degreelevel", DataFormat = DataFormat.TwosComplement)] + public uint degreelevel + { + get + { + return this._degreelevel ?? 0u; + } + set + { + this._degreelevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool degreelevelSpecified + { + get + { + return this._degreelevel != null; + } + set + { + bool flag = value == (this._degreelevel == null); + if (flag) + { + this._degreelevel = (value ? new uint?(this.degreelevel) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "degreeleft", DataFormat = DataFormat.TwosComplement)] + public uint degreeleft + { + get + { + return this._degreeleft ?? 0u; + } + set + { + this._degreeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool degreeleftSpecified + { + get + { + return this._degreeleft != null; + } + set + { + bool flag = value == (this._degreeleft == null); + if (flag) + { + this._degreeleft = (value ? new uint?(this.degreeleft) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "daydegree", DataFormat = DataFormat.TwosComplement)] + public uint daydegree + { + get + { + return this._daydegree ?? 0u; + } + set + { + this._daydegree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daydegreeSpecified + { + get + { + return this._daydegree != null; + } + set + { + bool flag = value == (this._daydegree == null); + if (flag) + { + this._daydegree = (value ? new uint?(this.daydegree) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "receivegiftstate", DataFormat = DataFormat.TwosComplement)] + public uint receivegiftstate + { + get + { + return this._receivegiftstate ?? 0u; + } + set + { + this._receivegiftstate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool receivegiftstateSpecified + { + get + { + return this._receivegiftstate != null; + } + set + { + bool flag = value == (this._receivegiftstate == null); + if (flag) + { + this._receivegiftstate = (value ? new uint?(this.receivegiftstate) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "sendgiftstate", DataFormat = DataFormat.TwosComplement)] + public uint sendgiftstate + { + get + { + return this._sendgiftstate ?? 0u; + } + set + { + this._sendgiftstate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sendgiftstateSpecified + { + get + { + return this._sendgiftstate != null; + } + set + { + bool flag = value == (this._sendgiftstate == null); + if (flag) + { + this._sendgiftstate = (value ? new uint?(this.sendgiftstate) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "alldegree", DataFormat = DataFormat.TwosComplement)] + public uint alldegree + { + get + { + return this._alldegree ?? 0u; + } + set + { + this._alldegree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool alldegreeSpecified + { + get + { + return this._alldegree != null; + } + set + { + bool flag = value == (this._alldegree == null); + if (flag) + { + this._alldegree = (value ? new uint?(this.alldegree) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "receiveall", DataFormat = DataFormat.TwosComplement)] + public uint receiveall + { + get + { + return this._receiveall ?? 0u; + } + set + { + this._receiveall = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool receiveallSpecified + { + get + { + return this._receiveall != null; + } + set + { + bool flag = value == (this._receiveall == null); + if (flag) + { + this._receiveall = (value ? new uint?(this.receiveall) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "receivetime", DataFormat = DataFormat.TwosComplement)] + public uint receivetime + { + get + { + return this._receivetime ?? 0u; + } + set + { + this._receivetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool receivetimeSpecified + { + get + { + return this._receivetime != null; + } + set + { + bool flag = value == (this._receivetime == null); + if (flag) + { + this._receivetime = (value ? new uint?(this.receivetime) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "nickid", DataFormat = DataFormat.TwosComplement)] + public uint nickid + { + get + { + return this._nickid ?? 0u; + } + set + { + this._nickid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nickidSpecified + { + get + { + return this._nickid != null; + } + set + { + bool flag = value == (this._nickid == null); + if (flag) + { + this._nickid = (value ? new uint?(this.nickid) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "titleid", DataFormat = DataFormat.TwosComplement)] + public uint titleid + { + get + { + return this._titleid ?? 0u; + } + set + { + this._titleid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleidSpecified + { + get + { + return this._titleid != null; + } + set + { + bool flag = value == (this._titleid == null); + if (flag) + { + this._titleid = (value ? new uint?(this.titleid) : null); + } + } + } + + [ProtoMember(21, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + [ProtoMember(22, IsRequired = false, Name = "mentortype", DataFormat = DataFormat.TwosComplement)] + public EMentorRelationPosition mentortype + { + get + { + return this._mentortype ?? EMentorRelationPosition.EMentorPosMaster; + } + set + { + this._mentortype = new EMentorRelationPosition?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mentortypeSpecified + { + get + { + return this._mentortype != null; + } + set + { + bool flag = value == (this._mentortype == null); + if (flag) + { + this._mentortype = (value ? new EMentorRelationPosition?(this.mentortype) : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(24, IsRequired = false, Name = "nickname", DataFormat = DataFormat.Default)] + public string nickname + { + get + { + return this._nickname ?? ""; + } + set + { + this._nickname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nicknameSpecified + { + get + { + return this._nickname != null; + } + set + { + bool flag = value == (this._nickname == null); + if (flag) + { + this._nickname = (value ? this.nickname : null); + } + } + } + + [ProtoMember(25, IsRequired = false, Name = "pre", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayConsume pre + { + get + { + return this._pre; + } + set + { + this._pre = value; + } + } + + private ulong? _roleid; + + private uint? _profession; + + private uint? _level; + + private uint? _powerpoint; + + private uint? _viplevel; + + private uint? _lastlogin; + + private string _name; + + private uint? _roleaudioid; + + private uint? _audioid; + + private uint? _degreelevel; + + private uint? _degreeleft; + + private uint? _daydegree; + + private uint? _receivegiftstate; + + private uint? _sendgiftstate; + + private uint? _alldegree; + + private uint? _receiveall; + + private string _guildname; + + private uint? _receivetime; + + private uint? _nickid; + + private uint? _titleid; + + private uint? _paymemberid; + + private EMentorRelationPosition? _mentortype; + + private string _openid; + + private string _nickname; + + private PayConsume _pre = null; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializepowerpoint() + { + return this.powerpointSpecified; + } + + private void Resetpowerpoint() + { + this.powerpointSpecified = false; + } + + private bool ShouldSerializeviplevel() + { + return this.viplevelSpecified; + } + + private void Resetviplevel() + { + this.viplevelSpecified = false; + } + + private bool ShouldSerializelastlogin() + { + return this.lastloginSpecified; + } + + private void Resetlastlogin() + { + this.lastloginSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeroleaudioid() + { + return this.roleaudioidSpecified; + } + + private void Resetroleaudioid() + { + this.roleaudioidSpecified = false; + } + + private bool ShouldSerializeaudioid() + { + return this.audioidSpecified; + } + + private void Resetaudioid() + { + this.audioidSpecified = false; + } + + private bool ShouldSerializedegreelevel() + { + return this.degreelevelSpecified; + } + + private void Resetdegreelevel() + { + this.degreelevelSpecified = false; + } + + private bool ShouldSerializedegreeleft() + { + return this.degreeleftSpecified; + } + + private void Resetdegreeleft() + { + this.degreeleftSpecified = false; + } + + private bool ShouldSerializedaydegree() + { + return this.daydegreeSpecified; + } + + private void Resetdaydegree() + { + this.daydegreeSpecified = false; + } + + private bool ShouldSerializereceivegiftstate() + { + return this.receivegiftstateSpecified; + } + + private void Resetreceivegiftstate() + { + this.receivegiftstateSpecified = false; + } + + private bool ShouldSerializesendgiftstate() + { + return this.sendgiftstateSpecified; + } + + private void Resetsendgiftstate() + { + this.sendgiftstateSpecified = false; + } + + private bool ShouldSerializealldegree() + { + return this.alldegreeSpecified; + } + + private void Resetalldegree() + { + this.alldegreeSpecified = false; + } + + private bool ShouldSerializereceiveall() + { + return this.receiveallSpecified; + } + + private void Resetreceiveall() + { + this.receiveallSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializereceivetime() + { + return this.receivetimeSpecified; + } + + private void Resetreceivetime() + { + this.receivetimeSpecified = false; + } + + private bool ShouldSerializenickid() + { + return this.nickidSpecified; + } + + private void Resetnickid() + { + this.nickidSpecified = false; + } + + private bool ShouldSerializetitleid() + { + return this.titleidSpecified; + } + + private void Resettitleid() + { + this.titleidSpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + private bool ShouldSerializementortype() + { + return this.mentortypeSpecified; + } + + private void Resetmentortype() + { + this.mentortypeSpecified = false; + } + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializenickname() + { + return this.nicknameSpecified; + } + + private void Resetnickname() + { + this.nicknameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Friend2Client.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Friend2Client.cs.meta new file mode 100644 index 00000000..b6f79437 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Friend2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ded50fa596ad21a4788d656443200514 +timeCreated: 1611404687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs new file mode 100644 index 00000000..b5840b8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendDegreeUpNtf")] + [Serializable] + public class FriendDegreeUpNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "friendname", DataFormat = DataFormat.Default)] + public string friendname + { + get + { + return this._friendname ?? ""; + } + set + { + this._friendname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool friendnameSpecified + { + get + { + return this._friendname != null; + } + set + { + bool flag = value == (this._friendname == null); + if (flag) + { + this._friendname = (value ? this.friendname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "orginlevel", DataFormat = DataFormat.TwosComplement)] + public uint orginlevel + { + get + { + return this._orginlevel ?? 0u; + } + set + { + this._orginlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool orginlevelSpecified + { + get + { + return this._orginlevel != null; + } + set + { + bool flag = value == (this._orginlevel == null); + if (flag) + { + this._orginlevel = (value ? new uint?(this.orginlevel) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "currentlevel", DataFormat = DataFormat.TwosComplement)] + public uint currentlevel + { + get + { + return this._currentlevel ?? 0u; + } + set + { + this._currentlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currentlevelSpecified + { + get + { + return this._currentlevel != null; + } + set + { + bool flag = value == (this._currentlevel == null); + if (flag) + { + this._currentlevel = (value ? new uint?(this.currentlevel) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "currentleft", DataFormat = DataFormat.TwosComplement)] + public uint currentleft + { + get + { + return this._currentleft ?? 0u; + } + set + { + this._currentleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currentleftSpecified + { + get + { + return this._currentleft != null; + } + set + { + bool flag = value == (this._currentleft == null); + if (flag) + { + this._currentleft = (value ? new uint?(this.currentleft) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "daydegree", DataFormat = DataFormat.TwosComplement)] + public uint daydegree + { + get + { + return this._daydegree ?? 0u; + } + set + { + this._daydegree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daydegreeSpecified + { + get + { + return this._daydegree != null; + } + set + { + bool flag = value == (this._daydegree == null); + if (flag) + { + this._daydegree = (value ? new uint?(this.daydegree) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "alldegree", DataFormat = DataFormat.TwosComplement)] + public uint alldegree + { + get + { + return this._alldegree ?? 0u; + } + set + { + this._alldegree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool alldegreeSpecified + { + get + { + return this._alldegree != null; + } + set + { + bool flag = value == (this._alldegree == null); + if (flag) + { + this._alldegree = (value ? new uint?(this.alldegree) : null); + } + } + } + + private ulong? _roleid; + + private string _friendname; + + private uint? _orginlevel; + + private uint? _currentlevel; + + private uint? _currentleft; + + private uint? _daydegree; + + private uint? _alldegree; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializefriendname() + { + return this.friendnameSpecified; + } + + private void Resetfriendname() + { + this.friendnameSpecified = false; + } + + private bool ShouldSerializeorginlevel() + { + return this.orginlevelSpecified; + } + + private void Resetorginlevel() + { + this.orginlevelSpecified = false; + } + + private bool ShouldSerializecurrentlevel() + { + return this.currentlevelSpecified; + } + + private void Resetcurrentlevel() + { + this.currentlevelSpecified = false; + } + + private bool ShouldSerializecurrentleft() + { + return this.currentleftSpecified; + } + + private void Resetcurrentleft() + { + this.currentleftSpecified = false; + } + + private bool ShouldSerializedaydegree() + { + return this.daydegreeSpecified; + } + + private void Resetdaydegree() + { + this.daydegreeSpecified = false; + } + + private bool ShouldSerializealldegree() + { + return this.alldegreeSpecified; + } + + private void Resetalldegree() + { + this.alldegreeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs.meta new file mode 100644 index 00000000..ebbf68dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendDegreeUpNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66492efb6fdd5864e955491ddf370fa4 +timeCreated: 1611403853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogArg.cs new file mode 100644 index 00000000..57eb5b51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendGardenPlantLogArg")] + [Serializable] + public class FriendGardenPlantLogArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogArg.cs.meta new file mode 100644 index 00000000..f29e28c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20f681df6c4ad8640b4f1e89f490db41 +timeCreated: 1611403410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogRes.cs new file mode 100644 index 00000000..f6a85a37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendGardenPlantLogRes")] + [Serializable] + public class FriendGardenPlantLogRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "frinend_plant_log", DataFormat = DataFormat.Default)] + public List frinend_plant_log + { + get + { + return this._frinend_plant_log; + } + } + + private ErrorCode? _result; + + private readonly List _frinend_plant_log = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogRes.cs.meta new file mode 100644 index 00000000..65abe1be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGardenPlantLogRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abbdbd69dc95da64c8d5c52c152dbd4a +timeCreated: 1611404308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGift.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendGift.cs new file mode 100644 index 00000000..5ad2cf49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGift.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendGift")] + [Serializable] + public class FriendGift : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SendLeft", DataFormat = DataFormat.TwosComplement)] + public uint SendLeft + { + get + { + return this._SendLeft ?? 0u; + } + set + { + this._SendLeft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SendLeftSpecified + { + get + { + return this._SendLeft != null; + } + set + { + bool flag = value == (this._SendLeft == null); + if (flag) + { + this._SendLeft = (value ? new uint?(this.SendLeft) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ReceiveLeft", DataFormat = DataFormat.TwosComplement)] + public uint ReceiveLeft + { + get + { + return this._ReceiveLeft ?? 0u; + } + set + { + this._ReceiveLeft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ReceiveLeftSpecified + { + get + { + return this._ReceiveLeft != null; + } + set + { + bool flag = value == (this._ReceiveLeft == null); + if (flag) + { + this._ReceiveLeft = (value ? new uint?(this.ReceiveLeft) : null); + } + } + } + + private uint? _SendLeft; + + private uint? _ReceiveLeft; + + private IExtension extensionObject; + + private bool ShouldSerializeSendLeft() + { + return this.SendLeftSpecified; + } + + private void ResetSendLeft() + { + this.SendLeftSpecified = false; + } + + private bool ShouldSerializeReceiveLeft() + { + return this.ReceiveLeftSpecified; + } + + private void ResetReceiveLeft() + { + this.ReceiveLeftSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGift.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendGift.cs.meta new file mode 100644 index 00000000..452bd6ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGift.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e2c1048549748845a2dbeb437cc87be +timeCreated: 1611403606 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpArg.cs new file mode 100644 index 00000000..c97da5d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendGiftOpArg")] + [Serializable] + public class FriendGiftOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public FriendOpType op + { + get + { + return this._op ?? FriendOpType.Friend_AgreeApply; + } + set + { + this._op = new FriendOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new FriendOpType?(this.op) : null); + } + } + } + + [ProtoMember(2, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + private FriendOpType? _op; + + private readonly List _roleid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpArg.cs.meta new file mode 100644 index 00000000..366beaba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54772edd7b34d6d499372ab30d23059d +timeCreated: 1611403735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpRes.cs new file mode 100644 index 00000000..aa20543d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendGiftOpRes")] + [Serializable] + public class FriendGiftOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpRes.cs.meta new file mode 100644 index 00000000..c16c0fa7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: feda878fbe23ad34cb1a6ccb568a08d4 +timeCreated: 1611404943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftReceive.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftReceive.cs new file mode 100644 index 00000000..34cef464 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftReceive.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendGiftReceive")] + public enum FriendGiftReceive + { + [ProtoEnum(Name = "FriendGift_ReceiveNone", Value = 0)] + FriendGift_ReceiveNone, + [ProtoEnum(Name = "FriendGift_Received", Value = 1)] + FriendGift_Received, + [ProtoEnum(Name = "FriendGift_ReceiveTaken", Value = 2)] + FriendGift_ReceiveTaken + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftReceive.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftReceive.cs.meta new file mode 100644 index 00000000..0f87a42d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftReceive.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb61134a38b4f4648bdd887007c8f3d2 +timeCreated: 1611404783 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftSend.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftSend.cs new file mode 100644 index 00000000..cc75d1dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftSend.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendGiftSend")] + public enum FriendGiftSend + { + [ProtoEnum(Name = "FriendGift_SendNone", Value = 0)] + FriendGift_SendNone, + [ProtoEnum(Name = "FriendGift_Sended", Value = 1)] + FriendGift_Sended + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftSend.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftSend.cs.meta new file mode 100644 index 00000000..6b0ab8b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendGiftSend.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03d1d38eb68d1304ab22e482cd24a5a4 +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendOpNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendOpNotify.cs new file mode 100644 index 00000000..9b04cf69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendOpNotify.cs @@ -0,0 +1,145 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendOpNotify")] + [Serializable] + public class FriendOpNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public FriendOpType op + { + get + { + return this._op ?? FriendOpType.Friend_AgreeApply; + } + set + { + this._op = new FriendOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new FriendOpType?(this.op) : null); + } + } + } + + [ProtoMember(2, Name = "friendlist", DataFormat = DataFormat.Default)] + public List friendlist + { + get + { + return this._friendlist; + } + } + + [ProtoMember(3, Name = "applylist", DataFormat = DataFormat.Default)] + public List applylist + { + get + { + return this._applylist; + } + } + + [ProtoMember(4, Name = "deletelist", DataFormat = DataFormat.TwosComplement)] + public List deletelist + { + get + { + return this._deletelist; + } + } + + [ProtoMember(5, Name = "deleteapplylist", DataFormat = DataFormat.TwosComplement)] + public List deleteapplylist + { + get + { + return this._deleteapplylist; + } + } + + [ProtoMember(6, Name = "senderid", DataFormat = DataFormat.TwosComplement)] + public List senderid + { + get + { + return this._senderid; + } + } + + [ProtoMember(7, IsRequired = false, Name = "giftcount", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public FriendGift giftcount + { + get + { + return this._giftcount; + } + set + { + this._giftcount = value; + } + } + + [ProtoMember(8, Name = "receivedtime", DataFormat = DataFormat.TwosComplement)] + public List receivedtime + { + get + { + return this._receivedtime; + } + } + + private FriendOpType? _op; + + private readonly List _friendlist = new List(); + + private readonly List _applylist = new List(); + + private readonly List _deletelist = new List(); + + private readonly List _deleteapplylist = new List(); + + private readonly List _senderid = new List(); + + private FriendGift _giftcount = null; + + private readonly List _receivedtime = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendOpNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendOpNotify.cs.meta new file mode 100644 index 00000000..7862222a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendOpNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a4bc068feac3b940afaa0cba71c21f0 +timeCreated: 1611403495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendOpType.cs new file mode 100644 index 00000000..e47cc7ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendOpType.cs @@ -0,0 +1,34 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendOpType")] + public enum FriendOpType + { + [ProtoEnum(Name = "Friend_AgreeApply", Value = 1)] + Friend_AgreeApply = 1, + [ProtoEnum(Name = "Friend_IgnoreApply", Value = 2)] + Friend_IgnoreApply, + [ProtoEnum(Name = "Friend_FriendAll", Value = 3)] + Friend_FriendAll, + [ProtoEnum(Name = "Friend_ApplyAll", Value = 4)] + Friend_ApplyAll, + [ProtoEnum(Name = "Friend_FriendAdd", Value = 5)] + Friend_FriendAdd, + [ProtoEnum(Name = "Friend_FriendDelete", Value = 6)] + Friend_FriendDelete, + [ProtoEnum(Name = "Friend_ApplyAdd", Value = 7)] + Friend_ApplyAdd, + [ProtoEnum(Name = "Friend_ApplyDelete", Value = 8)] + Friend_ApplyDelete, + [ProtoEnum(Name = "Friend_ReveiveGift", Value = 9)] + Friend_ReveiveGift, + [ProtoEnum(Name = "Friend_SendGift", Value = 10)] + Friend_SendGift, + [ProtoEnum(Name = "Friend_TakeGift", Value = 11)] + Friend_TakeGift, + [ProtoEnum(Name = "Friend_GiftInfo", Value = 12)] + Friend_GiftInfo + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendOpType.cs.meta new file mode 100644 index 00000000..0748a3ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99a9a76a0abacd04bb55d874b872a460 +timeCreated: 1611404196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendPlantLog.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendPlantLog.cs new file mode 100644 index 00000000..e735201a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendPlantLog.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendPlantLog")] + [Serializable] + public class FriendPlantLog : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "role_id", DataFormat = DataFormat.TwosComplement)] + public ulong role_id + { + get + { + return this._role_id ?? 0UL; + } + set + { + this._role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role_idSpecified + { + get + { + return this._role_id != null; + } + set + { + bool flag = value == (this._role_id == null); + if (flag) + { + this._role_id = (value ? new ulong?(this.role_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "role_name", DataFormat = DataFormat.Default)] + public string role_name + { + get + { + return this._role_name ?? ""; + } + set + { + this._role_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role_nameSpecified + { + get + { + return this._role_name != null; + } + set + { + bool flag = value == (this._role_name == null); + if (flag) + { + this._role_name = (value ? this.role_name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession_id", DataFormat = DataFormat.TwosComplement)] + public uint profession_id + { + get + { + return this._profession_id ?? 0u; + } + set + { + this._profession_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profession_idSpecified + { + get + { + return this._profession_id != null; + } + set + { + bool flag = value == (this._profession_id == null); + if (flag) + { + this._profession_id = (value ? new uint?(this.profession_id) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "exist_sprite", DataFormat = DataFormat.Default)] + public bool exist_sprite + { + get + { + return this._exist_sprite ?? false; + } + set + { + this._exist_sprite = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool exist_spriteSpecified + { + get + { + return this._exist_sprite != null; + } + set + { + bool flag = value == (this._exist_sprite == null); + if (flag) + { + this._exist_sprite = (value ? new bool?(this.exist_sprite) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "mature", DataFormat = DataFormat.Default)] + public bool mature + { + get + { + return this._mature ?? false; + } + set + { + this._mature = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool matureSpecified + { + get + { + return this._mature != null; + } + set + { + bool flag = value == (this._mature == null); + if (flag) + { + this._mature = (value ? new bool?(this.mature) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "abnormal_state", DataFormat = DataFormat.Default)] + public bool abnormal_state + { + get + { + return this._abnormal_state ?? false; + } + set + { + this._abnormal_state = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool abnormal_stateSpecified + { + get + { + return this._abnormal_state != null; + } + set + { + bool flag = value == (this._abnormal_state == null); + if (flag) + { + this._abnormal_state = (value ? new bool?(this.abnormal_state) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "help_times", DataFormat = DataFormat.TwosComplement)] + public uint help_times + { + get + { + return this._help_times ?? 0u; + } + set + { + this._help_times = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool help_timesSpecified + { + get + { + return this._help_times != null; + } + set + { + bool flag = value == (this._help_times == null); + if (flag) + { + this._help_times = (value ? new uint?(this.help_times) : null); + } + } + } + + private ulong? _role_id; + + private string _role_name; + + private uint? _profession_id; + + private bool? _exist_sprite; + + private bool? _mature; + + private bool? _abnormal_state; + + private uint? _help_times; + + private IExtension extensionObject; + + private bool ShouldSerializerole_id() + { + return this.role_idSpecified; + } + + private void Resetrole_id() + { + this.role_idSpecified = false; + } + + private bool ShouldSerializerole_name() + { + return this.role_nameSpecified; + } + + private void Resetrole_name() + { + this.role_nameSpecified = false; + } + + private bool ShouldSerializeprofession_id() + { + return this.profession_idSpecified; + } + + private void Resetprofession_id() + { + this.profession_idSpecified = false; + } + + private bool ShouldSerializeexist_sprite() + { + return this.exist_spriteSpecified; + } + + private void Resetexist_sprite() + { + this.exist_spriteSpecified = false; + } + + private bool ShouldSerializemature() + { + return this.matureSpecified; + } + + private void Resetmature() + { + this.matureSpecified = false; + } + + private bool ShouldSerializeabnormal_state() + { + return this.abnormal_stateSpecified; + } + + private void Resetabnormal_state() + { + this.abnormal_stateSpecified = false; + } + + private bool ShouldSerializehelp_times() + { + return this.help_timesSpecified; + } + + private void Resethelp_times() + { + this.help_timesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendPlantLog.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendPlantLog.cs.meta new file mode 100644 index 00000000..19312874 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendPlantLog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf776bc2fe08edb4183c7af219340c0c +timeCreated: 1611404483 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendQueryReportNew.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendQueryReportNew.cs new file mode 100644 index 00000000..7d4a16b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendQueryReportNew.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendQueryReportNew")] + [Serializable] + public class FriendQueryReportNew : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public FriendOpType op + { + get + { + return this._op ?? FriendOpType.Friend_AgreeApply; + } + set + { + this._op = new FriendOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new FriendOpType?(this.op) : null); + } + } + } + + private FriendOpType? _op; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendQueryReportNew.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendQueryReportNew.cs.meta new file mode 100644 index 00000000..dd02dc9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendQueryReportNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3106aa67f1e638a4aa297b509fcb3ecf +timeCreated: 1611403540 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendVipInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/FriendVipInfo.cs new file mode 100644 index 00000000..a531fee9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendVipInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FriendVipInfo")] + [Serializable] + public class FriendVipInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "is_vip", DataFormat = DataFormat.Default)] + public bool is_vip + { + get + { + return this._is_vip ?? false; + } + set + { + this._is_vip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_vipSpecified + { + get + { + return this._is_vip != null; + } + set + { + bool flag = value == (this._is_vip == null); + if (flag) + { + this._is_vip = (value ? new bool?(this.is_vip) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "is_svip", DataFormat = DataFormat.Default)] + public bool is_svip + { + get + { + return this._is_svip ?? false; + } + set + { + this._is_svip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_svipSpecified + { + get + { + return this._is_svip != null; + } + set + { + bool flag = value == (this._is_svip == null); + if (flag) + { + this._is_svip = (value ? new bool?(this.is_svip) : null); + } + } + } + + private string _openid; + + private bool? _is_vip; + + private bool? _is_svip; + + private IExtension extensionObject; + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializeis_vip() + { + return this.is_vipSpecified; + } + + private void Resetis_vip() + { + this.is_vipSpecified = false; + } + + private bool ShouldSerializeis_svip() + { + return this.is_svipSpecified; + } + + private void Resetis_svip() + { + this.is_svipSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FriendVipInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FriendVipInfo.cs.meta new file mode 100644 index 00000000..9988412c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FriendVipInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79f8db42b45bac34b92ecb7f688f7e75 +timeCreated: 1611403987 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FunctionId.cs b/Client/Assets/Scripts/XMainClient/KKSG/FunctionId.cs new file mode 100644 index 00000000..f42c34d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FunctionId.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FunctionId")] + public enum FunctionId + { + [ProtoEnum(Name = "FunctionId_QQVip", Value = 0)] + FunctionId_QQVip, + [ProtoEnum(Name = "FunctionId_IOSCheck", Value = 1)] + FunctionId_IOSCheck, + [ProtoEnum(Name = "FunctionId_StartPrivilege", Value = 2)] + FunctionId_StartPrivilege + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FunctionId.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FunctionId.cs.meta new file mode 100644 index 00000000..40689a2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FunctionId.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5062ad7624864d5458b3534cc7e3e07f +timeCreated: 1611403703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipArg.cs new file mode 100644 index 00000000..e34cf913 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FuseEquipArg")] + [Serializable] + public class FuseEquipArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public uint itemID + { + get + { + return this._itemID ?? 0u; + } + set + { + this._itemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new uint?(this.itemID) : null); + } + } + } + + private uint? _type; + + private ulong? _uid; + + private uint? _itemID; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipArg.cs.meta new file mode 100644 index 00000000..8509118d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ffd93527f72cad348a7ea2901d87a10a +timeCreated: 1611404948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipRes.cs new file mode 100644 index 00000000..bf652491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "FuseEquipRes")] + [Serializable] + public class FuseEquipRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipRes.cs.meta new file mode 100644 index 00000000..8791ccf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FuseEquipRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b06f8cac7aa1209489d653f777a60274 +timeCreated: 1611404351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs new file mode 100644 index 00000000..f961b0c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "G2M_MarriageOpType")] + public enum G2M_MarriageOpType + { + [ProtoEnum(Name = "G2M_MarriageOpType_ReqInfo", Value = 1)] + G2M_MarriageOpType_ReqInfo = 1, + [ProtoEnum(Name = "G2M_MarriageOpType_AddLevelValue", Value = 2)] + G2M_MarriageOpType_AddLevelValue + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs.meta new file mode 100644 index 00000000..2feeb157 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/G2M_MarriageOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c9eb2780db64b244a5834c18aac3c87 +timeCreated: 1611403802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs b/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs new file mode 100644 index 00000000..5dfdee25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GASaleHistory")] + [Serializable] + public class GASaleHistory : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "acttype", DataFormat = DataFormat.TwosComplement)] + public int acttype + { + get + { + return this._acttype ?? 0; + } + set + { + this._acttype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool acttypeSpecified + { + get + { + return this._acttype != null; + } + set + { + bool flag = value == (this._acttype == null); + if (flag) + { + this._acttype = (value ? new int?(this.acttype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "saletime", DataFormat = DataFormat.TwosComplement)] + public uint saletime + { + get + { + return this._saletime ?? 0u; + } + set + { + this._saletime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool saletimeSpecified + { + get + { + return this._saletime != null; + } + set + { + bool flag = value == (this._saletime == null); + if (flag) + { + this._saletime = (value ? new uint?(this.saletime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "saleprice", DataFormat = DataFormat.TwosComplement)] + public uint saleprice + { + get + { + return this._saleprice ?? 0u; + } + set + { + this._saleprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool salepriceSpecified + { + get + { + return this._saleprice != null; + } + set + { + bool flag = value == (this._saleprice == null); + if (flag) + { + this._saleprice = (value ? new uint?(this.saleprice) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "auctresult", DataFormat = DataFormat.TwosComplement)] + public GuildAuctResultType auctresult + { + get + { + return this._auctresult ?? GuildAuctResultType.GA_RESULT_BUY_NOW; + } + set + { + this._auctresult = new GuildAuctResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool auctresultSpecified + { + get + { + return this._auctresult != null; + } + set + { + bool flag = value == (this._auctresult == null); + if (flag) + { + this._auctresult = (value ? new GuildAuctResultType?(this.auctresult) : null); + } + } + } + + private int? _acttype; + + private uint? _saletime; + + private uint? _itemid; + + private uint? _saleprice; + + private GuildAuctResultType? _auctresult; + + private IExtension extensionObject; + + private bool ShouldSerializeacttype() + { + return this.acttypeSpecified; + } + + private void Resetacttype() + { + this.acttypeSpecified = false; + } + + private bool ShouldSerializesaletime() + { + return this.saletimeSpecified; + } + + private void Resetsaletime() + { + this.saletimeSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializesaleprice() + { + return this.salepriceSpecified; + } + + private void Resetsaleprice() + { + this.salepriceSpecified = false; + } + + private bool ShouldSerializeauctresult() + { + return this.auctresultSpecified; + } + + private void Resetauctresult() + { + this.auctresultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs.meta new file mode 100644 index 00000000..2e70e7cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GASaleHistory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be588df0d390682409702ca7be00c787 +timeCreated: 1611404460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GASaleItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/GASaleItem.cs new file mode 100644 index 00000000..baa52e1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GASaleItem.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GASaleItem")] + [Serializable] + public class GASaleItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "acttype", DataFormat = DataFormat.TwosComplement)] + public int acttype + { + get + { + return this._acttype ?? 0; + } + set + { + this._acttype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool acttypeSpecified + { + get + { + return this._acttype != null; + } + set + { + bool flag = value == (this._acttype == null); + if (flag) + { + this._acttype = (value ? new int?(this.acttype) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "auctroleid", DataFormat = DataFormat.TwosComplement)] + public ulong auctroleid + { + get + { + return this._auctroleid ?? 0UL; + } + set + { + this._auctroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool auctroleidSpecified + { + get + { + return this._auctroleid != null; + } + set + { + bool flag = value == (this._auctroleid == null); + if (flag) + { + this._auctroleid = (value ? new ulong?(this.auctroleid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "curauctprice", DataFormat = DataFormat.TwosComplement)] + public uint curauctprice + { + get + { + return this._curauctprice ?? 0u; + } + set + { + this._curauctprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curauctpriceSpecified + { + get + { + return this._curauctprice != null; + } + set + { + bool flag = value == (this._curauctprice == null); + if (flag) + { + this._curauctprice = (value ? new uint?(this.curauctprice) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "maxprice", DataFormat = DataFormat.TwosComplement)] + public uint maxprice + { + get + { + return this._maxprice ?? 0u; + } + set + { + this._maxprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxpriceSpecified + { + get + { + return this._maxprice != null; + } + set + { + bool flag = value == (this._maxprice == null); + if (flag) + { + this._maxprice = (value ? new uint?(this.maxprice) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "display", DataFormat = DataFormat.Default)] + public bool display + { + get + { + return this._display ?? false; + } + set + { + this._display = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool displaySpecified + { + get + { + return this._display != null; + } + set + { + bool flag = value == (this._display == null); + if (flag) + { + this._display = (value ? new bool?(this.display) : null); + } + } + } + + private ulong? _uid; + + private int? _acttype; + + private uint? _itemid; + + private ulong? _auctroleid; + + private uint? _curauctprice; + + private uint? _maxprice; + + private uint? _lefttime; + + private bool? _display; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeacttype() + { + return this.acttypeSpecified; + } + + private void Resetacttype() + { + this.acttypeSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeauctroleid() + { + return this.auctroleidSpecified; + } + + private void Resetauctroleid() + { + this.auctroleidSpecified = false; + } + + private bool ShouldSerializecurauctprice() + { + return this.curauctpriceSpecified; + } + + private void Resetcurauctprice() + { + this.curauctpriceSpecified = false; + } + + private bool ShouldSerializemaxprice() + { + return this.maxpriceSpecified; + } + + private void Resetmaxprice() + { + this.maxpriceSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + private bool ShouldSerializedisplay() + { + return this.displaySpecified; + } + + private void Resetdisplay() + { + this.displaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GASaleItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GASaleItem.cs.meta new file mode 100644 index 00000000..a50496de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GASaleItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af2844ae67dc8364d9aed025fa29d7e9 +timeCreated: 1611404342 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs new file mode 100644 index 00000000..ed96ff41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFBattleField")] + [Serializable] + public class GCFBattleField : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mapid", DataFormat = DataFormat.TwosComplement)] + public uint mapid + { + get + { + return this._mapid ?? 0u; + } + set + { + this._mapid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapidSpecified + { + get + { + return this._mapid != null; + } + set + { + bool flag = value == (this._mapid == null); + if (flag) + { + this._mapid = (value ? new uint?(this.mapid) : null); + } + } + } + + [ProtoMember(2, Name = "jvdians", DataFormat = DataFormat.Default)] + public List jvdians + { + get + { + return this._jvdians; + } + } + + [ProtoMember(3, IsRequired = false, Name = "zhanchinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GCFZhanChBriefInfo zhanchinfo + { + get + { + return this._zhanchinfo; + } + set + { + this._zhanchinfo = value; + } + } + + private uint? _mapid; + + private readonly List _jvdians = new List(); + + private GCFZhanChBriefInfo _zhanchinfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializemapid() + { + return this.mapidSpecified; + } + + private void Resetmapid() + { + this.mapidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs.meta new file mode 100644 index 00000000..0e7c6ed4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFBattleField.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b707b0c6a03649c40a2492aeb6853a3c +timeCreated: 1611404401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs new file mode 100644 index 00000000..d85cc0f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFCommonArg")] + [Serializable] + public class GCFCommonArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)] + public GCFReqType reqtype + { + get + { + return this._reqtype ?? GCFReqType.GCF_JOIN_READY_SCENE; + } + set + { + this._reqtype = new GCFReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqtypeSpecified + { + get + { + return this._reqtype != null; + } + set + { + bool flag = value == (this._reqtype == null); + if (flag) + { + this._reqtype = (value ? new GCFReqType?(this.reqtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "mapid", DataFormat = DataFormat.TwosComplement)] + public uint mapid + { + get + { + return this._mapid ?? 0u; + } + set + { + this._mapid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapidSpecified + { + get + { + return this._mapid != null; + } + set + { + bool flag = value == (this._mapid == null); + if (flag) + { + this._mapid = (value ? new uint?(this.mapid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "territoryid", DataFormat = DataFormat.TwosComplement)] + public uint territoryid + { + get + { + return this._territoryid ?? 0u; + } + set + { + this._territoryid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool territoryidSpecified + { + get + { + return this._territoryid != null; + } + set + { + bool flag = value == (this._territoryid == null); + if (flag) + { + this._territoryid = (value ? new uint?(this.territoryid) : null); + } + } + } + + private GCFReqType? _reqtype; + + private uint? _mapid; + + private uint? _territoryid; + + private IExtension extensionObject; + + private bool ShouldSerializereqtype() + { + return this.reqtypeSpecified; + } + + private void Resetreqtype() + { + this.reqtypeSpecified = false; + } + + private bool ShouldSerializemapid() + { + return this.mapidSpecified; + } + + private void Resetmapid() + { + this.mapidSpecified = false; + } + + private bool ShouldSerializeterritoryid() + { + return this.territoryidSpecified; + } + + private void Resetterritoryid() + { + this.territoryidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs.meta new file mode 100644 index 00000000..b7575f46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad1f6eec1457b11478170ade8c991ab9 +timeCreated: 1611404334 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs new file mode 100644 index 00000000..4998b751 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs @@ -0,0 +1,236 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFCommonRes")] + [Serializable] + public class GCFCommonRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "jvdians", DataFormat = DataFormat.Default)] + public List jvdians + { + get + { + return this._jvdians; + } + } + + [ProtoMember(3, Name = "guilds", DataFormat = DataFormat.Default)] + public List guilds + { + get + { + return this._guilds; + } + } + + [ProtoMember(4, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + [ProtoMember(5, IsRequired = false, Name = "myinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GCFRoleBrief myinfo + { + get + { + return this._myinfo; + } + set + { + this._myinfo = value; + } + } + + [ProtoMember(6, Name = "rewards", DataFormat = DataFormat.Default)] + public List rewards + { + get + { + return this._rewards; + } + } + + [ProtoMember(7, IsRequired = false, Name = "territoryid", DataFormat = DataFormat.TwosComplement)] + public uint territoryid + { + get + { + return this._territoryid ?? 0u; + } + set + { + this._territoryid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool territoryidSpecified + { + get + { + return this._territoryid != null; + } + set + { + bool flag = value == (this._territoryid == null); + if (flag) + { + this._territoryid = (value ? new uint?(this.territoryid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "winguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GCFGuildBrief winguild + { + get + { + return this._winguild; + } + set + { + this._winguild = value; + } + } + + [ProtoMember(9, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(10, Name = "fields", DataFormat = DataFormat.Default)] + public List fields + { + get + { + return this._fields; + } + } + + private ErrorCode? _errorcode; + + private readonly List _jvdians = new List(); + + private readonly List _guilds = new List(); + + private readonly List _roles = new List(); + + private GCFRoleBrief _myinfo = null; + + private readonly List _rewards = new List(); + + private uint? _territoryid; + + private GCFGuildBrief _winguild = null; + + private uint? _lefttime; + + private readonly List _fields = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeterritoryid() + { + return this.territoryidSpecified; + } + + private void Resetterritoryid() + { + this.territoryidSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs.meta new file mode 100644 index 00000000..b3789060 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFCommonRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b8376972583b4741a1a416dac096a83 +timeCreated: 1611403687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoArg.cs new file mode 100644 index 00000000..c12f3b35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFFightInfoArg")] + [Serializable] + public class GCFFightInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoArg.cs.meta new file mode 100644 index 00000000..72019f01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f691538adf2dd5d4c90586e4dd8d4c50 +timeCreated: 1611404883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoRes.cs new file mode 100644 index 00000000..6652db5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoRes.cs @@ -0,0 +1,144 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFFightInfoRes")] + [Serializable] + public class GCFFightInfoRes : IExtensible + { + [ProtoMember(1, Name = "guilds", DataFormat = DataFormat.Default)] + public List guilds + { + get + { + return this._guilds; + } + } + + [ProtoMember(2, Name = "JvDians", DataFormat = DataFormat.Default)] + public List JvDians + { + get + { + return this._JvDians; + } + } + + [ProtoMember(3, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "mygroup", DataFormat = DataFormat.TwosComplement)] + public int mygroup + { + get + { + return this._mygroup ?? 0; + } + set + { + this._mygroup = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mygroupSpecified + { + get + { + return this._mygroup != null; + } + set + { + bool flag = value == (this._mygroup == null); + if (flag) + { + this._mygroup = (value ? new int?(this.mygroup) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "myinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GCFRoleBrief myinfo + { + get + { + return this._myinfo; + } + set + { + this._myinfo = value; + } + } + + private readonly List _guilds = new List(); + + private readonly List _JvDians = new List(); + + private uint? _lefttime; + + private int? _mygroup; + + private GCFRoleBrief _myinfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + private bool ShouldSerializemygroup() + { + return this.mygroupSpecified; + } + + private void Resetmygroup() + { + this.mygroupSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoRes.cs.meta new file mode 100644 index 00000000..44a01fb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFFightInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 277778e5d29ac1d43a75411cec6d4556 +timeCreated: 1611403471 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynPara.cs new file mode 100644 index 00000000..a831519c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynPara.cs @@ -0,0 +1,379 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFG2CSynPara")] + [Serializable] + public class GCFG2CSynPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public GCFG2CSynType type + { + get + { + return this._type ?? GCFG2CSynType.GCF_G2C_SYN_KILL_ONE; + } + set + { + this._type = new GCFG2CSynType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new GCFG2CSynType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public uint killcount + { + get + { + return this._killcount ?? 0u; + } + set + { + this._killcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new uint?(this.killcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "killname", DataFormat = DataFormat.Default)] + public string killname + { + get + { + return this._killname ?? ""; + } + set + { + this._killname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killnameSpecified + { + get + { + return this._killname != null; + } + set + { + bool flag = value == (this._killname == null); + if (flag) + { + this._killname = (value ? this.killname : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "deadname", DataFormat = DataFormat.Default)] + public string deadname + { + get + { + return this._deadname ?? ""; + } + set + { + this._deadname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deadnameSpecified + { + get + { + return this._deadname != null; + } + set + { + bool flag = value == (this._deadname == null); + if (flag) + { + this._deadname = (value ? this.deadname : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "mapid", DataFormat = DataFormat.TwosComplement)] + public uint mapid + { + get + { + return this._mapid ?? 0u; + } + set + { + this._mapid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapidSpecified + { + get + { + return this._mapid != null; + } + set + { + bool flag = value == (this._mapid == null); + if (flag) + { + this._mapid = (value ? new uint?(this.mapid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "mulpoint", DataFormat = DataFormat.TwosComplement)] + public uint mulpoint + { + get + { + return this._mulpoint ?? 0u; + } + set + { + this._mulpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mulpointSpecified + { + get + { + return this._mulpoint != null; + } + set + { + bool flag = value == (this._mulpoint == null); + if (flag) + { + this._mulpoint = (value ? new uint?(this.mulpoint) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "jvdian", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GCFJvDianInfo jvdian + { + get + { + return this._jvdian; + } + set + { + this._jvdian = value; + } + } + + [ProtoMember(9, IsRequired = false, Name = "territoryid", DataFormat = DataFormat.TwosComplement)] + public uint territoryid + { + get + { + return this._territoryid ?? 0u; + } + set + { + this._territoryid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool territoryidSpecified + { + get + { + return this._territoryid != null; + } + set + { + bool flag = value == (this._territoryid == null); + if (flag) + { + this._territoryid = (value ? new uint?(this.territoryid) : null); + } + } + } + + private GCFG2CSynType? _type; + + private ulong? _roleid; + + private uint? _killcount; + + private string _killname; + + private string _deadname; + + private uint? _mapid; + + private uint? _mulpoint; + + private GCFJvDianInfo _jvdian = null; + + private uint? _territoryid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializekillname() + { + return this.killnameSpecified; + } + + private void Resetkillname() + { + this.killnameSpecified = false; + } + + private bool ShouldSerializedeadname() + { + return this.deadnameSpecified; + } + + private void Resetdeadname() + { + this.deadnameSpecified = false; + } + + private bool ShouldSerializemapid() + { + return this.mapidSpecified; + } + + private void Resetmapid() + { + this.mapidSpecified = false; + } + + private bool ShouldSerializemulpoint() + { + return this.mulpointSpecified; + } + + private void Resetmulpoint() + { + this.mulpointSpecified = false; + } + + private bool ShouldSerializeterritoryid() + { + return this.territoryidSpecified; + } + + private void Resetterritoryid() + { + this.territoryidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynPara.cs.meta new file mode 100644 index 00000000..c4804dcc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af1e6c8add08f4243a957e2f59b7b3de +timeCreated: 1611404342 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynType.cs new file mode 100644 index 00000000..45cafc3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFG2CSynType")] + public enum GCFG2CSynType + { + [ProtoEnum(Name = "GCF_G2C_SYN_KILL_ONE", Value = 1)] + GCF_G2C_SYN_KILL_ONE = 1, + [ProtoEnum(Name = "GCF_G2C_SYN_MUL_POINT", Value = 2)] + GCF_G2C_SYN_MUL_POINT, + [ProtoEnum(Name = "GCF_G2C_SYN_OCCUPY", Value = 3)] + GCF_G2C_SYN_OCCUPY, + [ProtoEnum(Name = "GCF_G2C_SYN_KILL_COUNT", Value = 4)] + GCF_G2C_SYN_KILL_COUNT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynType.cs.meta new file mode 100644 index 00000000..182c410a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFG2CSynType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce514385b3ff2ed4789aa4abf6327d76 +timeCreated: 1611404578 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFGuildBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFGuildBrief.cs new file mode 100644 index 00000000..065a2f56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFGuildBrief.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFGuildBrief")] + [Serializable] + public class GCFGuildBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildicon", DataFormat = DataFormat.TwosComplement)] + public uint guildicon + { + get + { + return this._guildicon ?? 0u; + } + set + { + this._guildicon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildiconSpecified + { + get + { + return this._guildicon != null; + } + set + { + bool flag = value == (this._guildicon == null); + if (flag) + { + this._guildicon = (value ? new uint?(this.guildicon) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "group", DataFormat = DataFormat.TwosComplement)] + public int group + { + get + { + return this._group ?? 0; + } + set + { + this._group = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupSpecified + { + get + { + return this._group != null; + } + set + { + bool flag = value == (this._group == null); + if (flag) + { + this._group = (value ? new int?(this.group) : null); + } + } + } + + private ulong? _guildid; + + private string _guildname; + + private uint? _guildicon; + + private uint? _point; + + private int? _group; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializeguildicon() + { + return this.guildiconSpecified; + } + + private void Resetguildicon() + { + this.guildiconSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializegroup() + { + return this.groupSpecified; + } + + private void Resetgroup() + { + this.groupSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFGuildBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFGuildBrief.cs.meta new file mode 100644 index 00000000..52024f5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFGuildBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b708c77c2fe349498641a8a5df4470a +timeCreated: 1611403168 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianInfo.cs new file mode 100644 index 00000000..dc511c01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFJvDianInfo")] + [Serializable] + public class GCFJvDianInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public GCFJvDianType type + { + get + { + return this._type ?? GCFJvDianType.GCF_JUDIAN_UP; + } + set + { + this._type = new GCFJvDianType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new GCFJvDianType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + private GCFJvDianType? _type; + + private string _guildname; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianInfo.cs.meta new file mode 100644 index 00000000..41c71a2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b5346d1cb480534ca1f7d001539ef18 +timeCreated: 1611403315 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianType.cs new file mode 100644 index 00000000..6683eb4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFJvDianType")] + public enum GCFJvDianType + { + [ProtoEnum(Name = "GCF_JUDIAN_UP", Value = 1)] + GCF_JUDIAN_UP = 1, + [ProtoEnum(Name = "GCF_JUDIAN_MID", Value = 2)] + GCF_JUDIAN_MID, + [ProtoEnum(Name = "GCF_JUDIAN_DOWN", Value = 3)] + GCF_JUDIAN_DOWN + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianType.cs.meta new file mode 100644 index 00000000..ef6123dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFJvDianType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e78297e022534942bf0e3a1d0461302 +timeCreated: 1611403905 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs new file mode 100644 index 00000000..dab46cfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFReadyInfoArg")] + [Serializable] + public class GCFReadyInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs.meta new file mode 100644 index 00000000..0ddd904f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c777ee47f76736048a3392b450ccfcb2 +timeCreated: 1611404530 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs new file mode 100644 index 00000000..bfd432e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFReadyInfoRes")] + [Serializable] + public class GCFReadyInfoRes : IExtensible + { + [ProtoMember(1, Name = "allinfo", DataFormat = DataFormat.Default)] + public List allinfo + { + get + { + return this._allinfo; + } + } + + [ProtoMember(2, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + private readonly List _allinfo = new List(); + + private uint? _lefttime; + + private IExtension extensionObject; + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs.meta new file mode 100644 index 00000000..146420ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFReadyInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49ea8cbdc51ee1842afc162c7adbd497 +timeCreated: 1611403663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFReqType.cs new file mode 100644 index 00000000..2e5552a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFReqType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFReqType")] + public enum GCFReqType + { + [ProtoEnum(Name = "GCF_JOIN_READY_SCENE", Value = 1)] + GCF_JOIN_READY_SCENE = 1, + [ProtoEnum(Name = "GCF_FIGHT_REPORT", Value = 2)] + GCF_FIGHT_REPORT, + [ProtoEnum(Name = "GCF_FIGHT_RESULT", Value = 3)] + GCF_FIGHT_RESULT, + [ProtoEnum(Name = "GCF_JOIN_FIGHT_SCENE", Value = 4)] + GCF_JOIN_FIGHT_SCENE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFReqType.cs.meta new file mode 100644 index 00000000..45c26437 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 651d279b863259644be1a7e36277c836 +timeCreated: 1611403849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFRoleBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFRoleBrief.cs new file mode 100644 index 00000000..0d5b04e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFRoleBrief.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFRoleBrief")] + [Serializable] + public class GCFRoleBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public uint killcount + { + get + { + return this._killcount ?? 0u; + } + set + { + this._killcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new uint?(this.killcount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "occupycount", DataFormat = DataFormat.TwosComplement)] + public uint occupycount + { + get + { + return this._occupycount ?? 0u; + } + set + { + this._occupycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool occupycountSpecified + { + get + { + return this._occupycount != null; + } + set + { + bool flag = value == (this._occupycount == null); + if (flag) + { + this._occupycount = (value ? new uint?(this.occupycount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "feats", DataFormat = DataFormat.TwosComplement)] + public uint feats + { + get + { + return this._feats ?? 0u; + } + set + { + this._feats = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool featsSpecified + { + get + { + return this._feats != null; + } + set + { + bool flag = value == (this._feats == null); + if (flag) + { + this._feats = (value ? new uint?(this.feats) : null); + } + } + } + + private uint? _rank; + + private ulong? _roleID; + + private string _rolename; + + private uint? _killcount; + + private uint? _occupycount; + + private uint? _feats; + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializeoccupycount() + { + return this.occupycountSpecified; + } + + private void Resetoccupycount() + { + this.occupycountSpecified = false; + } + + private bool ShouldSerializefeats() + { + return this.featsSpecified; + } + + private void Resetfeats() + { + this.featsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFRoleBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFRoleBrief.cs.meta new file mode 100644 index 00000000..737a69be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFRoleBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f9a717161f319d4dbbcb60cb045bede +timeCreated: 1611404031 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs new file mode 100644 index 00000000..9295b7bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFZhanChBriefInfo")] + [Serializable] + public class GCFZhanChBriefInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mapid", DataFormat = DataFormat.TwosComplement)] + public uint mapid + { + get + { + return this._mapid ?? 0u; + } + set + { + this._mapid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapidSpecified + { + get + { + return this._mapid != null; + } + set + { + bool flag = value == (this._mapid == null); + if (flag) + { + this._mapid = (value ? new uint?(this.mapid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "multipoint", DataFormat = DataFormat.TwosComplement)] + public uint multipoint + { + get + { + return this._multipoint ?? 0u; + } + set + { + this._multipoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool multipointSpecified + { + get + { + return this._multipoint != null; + } + set + { + bool flag = value == (this._multipoint == null); + if (flag) + { + this._multipoint = (value ? new uint?(this.multipoint) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "curusercount", DataFormat = DataFormat.TwosComplement)] + public uint curusercount + { + get + { + return this._curusercount ?? 0u; + } + set + { + this._curusercount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curusercountSpecified + { + get + { + return this._curusercount != null; + } + set + { + bool flag = value == (this._curusercount == null); + if (flag) + { + this._curusercount = (value ? new uint?(this.curusercount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "maxusercount", DataFormat = DataFormat.TwosComplement)] + public uint maxusercount + { + get + { + return this._maxusercount ?? 0u; + } + set + { + this._maxusercount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxusercountSpecified + { + get + { + return this._maxusercount != null; + } + set + { + bool flag = value == (this._maxusercount == null); + if (flag) + { + this._maxusercount = (value ? new uint?(this.maxusercount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isopen", DataFormat = DataFormat.Default)] + public bool isopen + { + get + { + return this._isopen ?? false; + } + set + { + this._isopen = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isopenSpecified + { + get + { + return this._isopen != null; + } + set + { + bool flag = value == (this._isopen == null); + if (flag) + { + this._isopen = (value ? new bool?(this.isopen) : null); + } + } + } + + private uint? _mapid; + + private uint? _multipoint; + + private uint? _curusercount; + + private uint? _maxusercount; + + private bool? _isopen; + + private IExtension extensionObject; + + private bool ShouldSerializemapid() + { + return this.mapidSpecified; + } + + private void Resetmapid() + { + this.mapidSpecified = false; + } + + private bool ShouldSerializemultipoint() + { + return this.multipointSpecified; + } + + private void Resetmultipoint() + { + this.multipointSpecified = false; + } + + private bool ShouldSerializecurusercount() + { + return this.curusercountSpecified; + } + + private void Resetcurusercount() + { + this.curusercountSpecified = false; + } + + private bool ShouldSerializemaxusercount() + { + return this.maxusercountSpecified; + } + + private void Resetmaxusercount() + { + this.maxusercountSpecified = false; + } + + private bool ShouldSerializeisopen() + { + return this.isopenSpecified; + } + + private void Resetisopen() + { + this.isopenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs.meta new file mode 100644 index 00000000..fa5070ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanChBriefInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91c98c9006a66954cbd36f7adc34ea8d +timeCreated: 1611404143 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingPara.cs new file mode 100644 index 00000000..825d9acc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingPara.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFZhanLingPara")] + [Serializable] + public class GCFZhanLingPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "zltype", DataFormat = DataFormat.TwosComplement)] + public GCFZhanLingType zltype + { + get + { + return this._zltype ?? GCFZhanLingType.GCFZL_BEGIN; + } + set + { + this._zltype = new GCFZhanLingType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool zltypeSpecified + { + get + { + return this._zltype != null; + } + set + { + bool flag = value == (this._zltype == null); + if (flag) + { + this._zltype = (value ? new GCFZhanLingType?(this.zltype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "jdtype", DataFormat = DataFormat.TwosComplement)] + public GCFJvDianType jdtype + { + get + { + return this._jdtype ?? GCFJvDianType.GCF_JUDIAN_UP; + } + set + { + this._jdtype = new GCFJvDianType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jdtypeSpecified + { + get + { + return this._jdtype != null; + } + set + { + bool flag = value == (this._jdtype == null); + if (flag) + { + this._jdtype = (value ? new GCFJvDianType?(this.jdtype) : null); + } + } + } + + private GCFZhanLingType? _zltype; + + private ulong? _roleID; + + private GCFJvDianType? _jdtype; + + private IExtension extensionObject; + + private bool ShouldSerializezltype() + { + return this.zltypeSpecified; + } + + private void Resetzltype() + { + this.zltypeSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializejdtype() + { + return this.jdtypeSpecified; + } + + private void Resetjdtype() + { + this.jdtypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingPara.cs.meta new file mode 100644 index 00000000..56cdf4aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 726bc97a4f7c47641821649874b3279e +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingType.cs new file mode 100644 index 00000000..be25a5d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFZhanLingType")] + public enum GCFZhanLingType + { + [ProtoEnum(Name = "GCFZL_BEGIN", Value = 1)] + GCFZL_BEGIN = 1, + [ProtoEnum(Name = "GCFZL_BREAK", Value = 2)] + GCFZL_BREAK, + [ProtoEnum(Name = "GCFZL_END", Value = 3)] + GCFZL_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingType.cs.meta new file mode 100644 index 00000000..9090a231 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFZhanLingType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8376880655aeeb64696337d5761f6bc9 +timeCreated: 1611404044 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFsynType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GCFsynType.cs new file mode 100644 index 00000000..d70b404f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFsynType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GCFsynType")] + public enum GCFsynType + { + [ProtoEnum(Name = "GCF_SYN_KILL", Value = 1)] + GCF_SYN_KILL = 1, + [ProtoEnum(Name = "GCF_SYN_LEAVE_BATTLE", Value = 2)] + GCF_SYN_LEAVE_BATTLE, + [ProtoEnum(Name = "GCF_SYN_OCCUPY", Value = 3)] + GCF_SYN_OCCUPY, + [ProtoEnum(Name = "GCF_SYN_MUL_POINT", Value = 4)] + GCF_SYN_MUL_POINT, + [ProtoEnum(Name = "GCF_SYN_FIGHT_END", Value = 5)] + GCF_SYN_FIGHT_END, + [ProtoEnum(Name = "GCF_SYN_BACK_TO_READY", Value = 6)] + GCF_SYN_BACK_TO_READY + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GCFsynType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GCFsynType.cs.meta new file mode 100644 index 00000000..c4ccee5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GCFsynType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b563935aee412f4c9f58a6684c09012 +timeCreated: 1611403315 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GHisRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/GHisRecord.cs new file mode 100644 index 00000000..8ea197a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GHisRecord.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GHisRecord")] + [Serializable] + public class GHisRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public uint position + { + get + { + return this._position ?? 0u; + } + set + { + this._position = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new uint?(this.position) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + private uint? _type; + + private uint? _time; + + private uint? _position; + + private ulong? _roleid; + + private string _rolename; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GHisRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GHisRecord.cs.meta new file mode 100644 index 00000000..87fd6e7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GHisRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f5766b8da01f3146abd35cc734d0517 +timeCreated: 1611403700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs new file mode 100644 index 00000000..e8ecad0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GMCmdArg")] + [Serializable] + public class GMCmdArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "cmd", DataFormat = DataFormat.Default)] + public string cmd + { + get + { + return this._cmd ?? ""; + } + set + { + this._cmd = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cmdSpecified + { + get + { + return this._cmd != null; + } + set + { + bool flag = value == (this._cmd == null); + if (flag) + { + this._cmd = (value ? this.cmd : null); + } + } + } + + [ProtoMember(2, Name = "args", DataFormat = DataFormat.Default)] + public List args + { + get + { + return this._args; + } + } + + private string _cmd; + + private readonly List _args = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializecmd() + { + return this.cmdSpecified; + } + + private void Resetcmd() + { + this.cmdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs.meta new file mode 100644 index 00000000..2dcc0fd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cb38c1c2e91aa845abe34039fef8cb4 +timeCreated: 1611403503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs new file mode 100644 index 00000000..476a5ea4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GMCmdRes")] + [Serializable] + public class GMCmdRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.Default)] + public bool result + { + get + { + return this._result ?? false; + } + set + { + this._result = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new bool?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "outputMessage", DataFormat = DataFormat.Default)] + public string outputMessage + { + get + { + return this._outputMessage ?? ""; + } + set + { + this._outputMessage = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool outputMessageSpecified + { + get + { + return this._outputMessage != null; + } + set + { + bool flag = value == (this._outputMessage == null); + if (flag) + { + this._outputMessage = (value ? this.outputMessage : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "datablob", DataFormat = DataFormat.Default)] + public byte[] datablob + { + get + { + return this._datablob ?? null; + } + set + { + this._datablob = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool datablobSpecified + { + get + { + return this._datablob != null; + } + set + { + bool flag = value == (this._datablob == null); + if (flag) + { + this._datablob = (value ? this.datablob : null); + } + } + } + + private bool? _result; + + private string _outputMessage; + + private byte[] _datablob; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeoutputMessage() + { + return this.outputMessageSpecified; + } + + private void ResetoutputMessage() + { + this.outputMessageSpecified = false; + } + + private bool ShouldSerializedatablob() + { + return this.datablobSpecified; + } + + private void Resetdatablob() + { + this.datablobSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs.meta new file mode 100644 index 00000000..81bb5ec5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMCmdRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cfdb0ade77a1e7498fea2efc6877329 +timeCreated: 1611403694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMFFailReason.cs b/Client/Assets/Scripts/XMainClient/KKSG/GMFFailReason.cs new file mode 100644 index 00000000..37e69c8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMFFailReason.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GMFFailReason")] + public enum GMFFailReason + { + [ProtoEnum(Name = "GMF_FAIL_NONE", Value = 0)] + GMF_FAIL_NONE, + [ProtoEnum(Name = "GMF_FAIL_DIE", Value = 1)] + GMF_FAIL_DIE, + [ProtoEnum(Name = "GMF_FAIL_TIMEOVER", Value = 2)] + GMF_FAIL_TIMEOVER, + [ProtoEnum(Name = "GMF_FAIL_QUIT", Value = 3)] + GMF_FAIL_QUIT, + [ProtoEnum(Name = "GMF_FAIL_REFRESE", Value = 4)] + GMF_FAIL_REFRESE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMFFailReason.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GMFFailReason.cs.meta new file mode 100644 index 00000000..0a0bab9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMFFailReason.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbcf5cb5386d2dc4a8c0b859a7456078 +timeCreated: 1611404655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMFReadyType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GMFReadyType.cs new file mode 100644 index 00000000..31c87fc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMFReadyType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GMFReadyType")] + public enum GMFReadyType + { + [ProtoEnum(Name = "GMF_READY_UP", Value = 1)] + GMF_READY_UP = 1, + [ProtoEnum(Name = "GMF_READY_DOWN", Value = 2)] + GMF_READY_DOWN, + [ProtoEnum(Name = "GMF_READY_KICK", Value = 3)] + GMF_READY_KICK + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMFReadyType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GMFReadyType.cs.meta new file mode 100644 index 00000000..ba823a56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMFReadyType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f9c1b2332b9e774b95bc76b6f4ddbba +timeCreated: 1611403928 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs b/Client/Assets/Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs new file mode 100644 index 00000000..ec988ec9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GMF_FINAL_WIN_TYPE")] + public enum GMF_FINAL_WIN_TYPE + { + [ProtoEnum(Name = "GMF_FWY_NORMAL", Value = 1)] + GMF_FWY_NORMAL = 1, + [ProtoEnum(Name = "GMF_FWY_OPNONE", Value = 2)] + GMF_FWY_OPNONE, + [ProtoEnum(Name = "GMF_FWY_RANK", Value = 3)] + GMF_FWY_RANK + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs.meta new file mode 100644 index 00000000..01d21757 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GMF_FINAL_WIN_TYPE.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f75847d5b86c86a419dbc316c7c8a2ba +timeCreated: 1611404887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs b/Client/Assets/Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs new file mode 100644 index 00000000..88f966f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GUILDTERRTYPE")] + public enum GUILDTERRTYPE + { + [ProtoEnum(Name = "TERR_NOT_OPEN", Value = 1)] + TERR_NOT_OPEN = 1, + [ProtoEnum(Name = "ALLIANCE", Value = 2)] + ALLIANCE, + [ProtoEnum(Name = "TERR_WARING", Value = 3)] + TERR_WARING, + [ProtoEnum(Name = "TERR_END", Value = 4)] + TERR_END, + [ProtoEnum(Name = "WAITING", Value = 5)] + WAITING + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs.meta new file mode 100644 index 00000000..6bb12992 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GUILDTERRTYPE.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 267bfe31c08785c47b0d5453005dff74 +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GameAppType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GameAppType.cs new file mode 100644 index 00000000..0df900ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GameAppType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GameAppType")] + public enum GameAppType + { + [ProtoEnum(Name = "GAME_APP_WECHAT", Value = 1)] + GAME_APP_WECHAT = 1, + [ProtoEnum(Name = "GAME_APP_QQ", Value = 2)] + GAME_APP_QQ + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GameAppType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GameAppType.cs.meta new file mode 100644 index 00000000..c456d155 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GameAppType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55c278b0a47832d44a8c265ed95b7a66 +timeCreated: 1611403738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetArg.cs new file mode 100644 index 00000000..97f44a84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenBanquetArg")] + [Serializable] + public class GardenBanquetArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "banquet_id", DataFormat = DataFormat.TwosComplement)] + public uint banquet_id + { + get + { + return this._banquet_id ?? 0u; + } + set + { + this._banquet_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banquet_idSpecified + { + get + { + return this._banquet_id != null; + } + set + { + bool flag = value == (this._banquet_id == null); + if (flag) + { + this._banquet_id = (value ? new uint?(this.banquet_id) : null); + } + } + } + + private uint? _banquet_id; + + private IExtension extensionObject; + + private bool ShouldSerializebanquet_id() + { + return this.banquet_idSpecified; + } + + private void Resetbanquet_id() + { + this.banquet_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetArg.cs.meta new file mode 100644 index 00000000..0d8cad1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e679a4331bdb9344ba44c49b8a8d75c4 +timeCreated: 1611404746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetNtf.cs new file mode 100644 index 00000000..dd3781bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetNtf.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenBanquetNtf")] + [Serializable] + public class GardenBanquetNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "banquet_id", DataFormat = DataFormat.TwosComplement)] + public uint banquet_id + { + get + { + return this._banquet_id ?? 0u; + } + set + { + this._banquet_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banquet_idSpecified + { + get + { + return this._banquet_id != null; + } + set + { + bool flag = value == (this._banquet_id == null); + if (flag) + { + this._banquet_id = (value ? new uint?(this.banquet_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "banquet_stage", DataFormat = DataFormat.TwosComplement)] + public uint banquet_stage + { + get + { + return this._banquet_stage ?? 0u; + } + set + { + this._banquet_stage = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banquet_stageSpecified + { + get + { + return this._banquet_stage != null; + } + set + { + bool flag = value == (this._banquet_stage == null); + if (flag) + { + this._banquet_stage = (value ? new uint?(this.banquet_stage) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "timesTSWK", DataFormat = DataFormat.TwosComplement)] + public uint timesTSWK + { + get + { + return this._timesTSWK ?? 0u; + } + set + { + this._timesTSWK = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timesTSWKSpecified + { + get + { + return this._timesTSWK != null; + } + set + { + bool flag = value == (this._timesTSWK == null); + if (flag) + { + this._timesTSWK = (value ? new uint?(this.timesTSWK) : null); + } + } + } + + private ulong? _garden_id; + + private uint? _banquet_id; + + private uint? _banquet_stage; + + private uint? _timesTSWK; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializebanquet_id() + { + return this.banquet_idSpecified; + } + + private void Resetbanquet_id() + { + this.banquet_idSpecified = false; + } + + private bool ShouldSerializebanquet_stage() + { + return this.banquet_stageSpecified; + } + + private void Resetbanquet_stage() + { + this.banquet_stageSpecified = false; + } + + private bool ShouldSerializetimesTSWK() + { + return this.timesTSWKSpecified; + } + + private void ResettimesTSWK() + { + this.timesTSWKSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetNtf.cs.meta new file mode 100644 index 00000000..3be029e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e181213aad07f148aa784f25de590a1 +timeCreated: 1611403606 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetRes.cs new file mode 100644 index 00000000..388de941 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenBanquetRes")] + [Serializable] + public class GardenBanquetRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "banquet_id", DataFormat = DataFormat.TwosComplement)] + public uint banquet_id + { + get + { + return this._banquet_id ?? 0u; + } + set + { + this._banquet_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banquet_idSpecified + { + get + { + return this._banquet_id != null; + } + set + { + bool flag = value == (this._banquet_id == null); + if (flag) + { + this._banquet_id = (value ? new uint?(this.banquet_id) : null); + } + } + } + + [ProtoMember(3, Name = "guests", DataFormat = DataFormat.TwosComplement)] + public List guests + { + get + { + return this._guests; + } + } + + private ErrorCode? _result; + + private uint? _banquet_id; + + private readonly List _guests = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializebanquet_id() + { + return this.banquet_idSpecified; + } + + private void Resetbanquet_id() + { + this.banquet_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetRes.cs.meta new file mode 100644 index 00000000..5e61785a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenBanquetRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d7c2e6c9245c2fb488c8de272a6671a3 +timeCreated: 1611404637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodArg.cs new file mode 100644 index 00000000..eafe3b60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenCookingFoodArg")] + [Serializable] + public class GardenCookingFoodArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "food_id", DataFormat = DataFormat.TwosComplement)] + public uint food_id + { + get + { + return this._food_id ?? 0u; + } + set + { + this._food_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool food_idSpecified + { + get + { + return this._food_id != null; + } + set + { + bool flag = value == (this._food_id == null); + if (flag) + { + this._food_id = (value ? new uint?(this.food_id) : null); + } + } + } + + private uint? _food_id; + + private IExtension extensionObject; + + private bool ShouldSerializefood_id() + { + return this.food_idSpecified; + } + + private void Resetfood_id() + { + this.food_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodArg.cs.meta new file mode 100644 index 00000000..bcd59d56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1dfbb5013e5efbd4eb057937bdd27c92 +timeCreated: 1611403360 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs new file mode 100644 index 00000000..f25f0047 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenCookingFoodRes")] + [Serializable] + public class GardenCookingFoodRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(3, IsRequired = false, Name = "cooking_level", DataFormat = DataFormat.TwosComplement)] + public uint cooking_level + { + get + { + return this._cooking_level ?? 0u; + } + set + { + this._cooking_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooking_levelSpecified + { + get + { + return this._cooking_level != null; + } + set + { + bool flag = value == (this._cooking_level == null); + if (flag) + { + this._cooking_level = (value ? new uint?(this.cooking_level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cooking_experiences", DataFormat = DataFormat.TwosComplement)] + public uint cooking_experiences + { + get + { + return this._cooking_experiences ?? 0u; + } + set + { + this._cooking_experiences = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooking_experiencesSpecified + { + get + { + return this._cooking_experiences != null; + } + set + { + bool flag = value == (this._cooking_experiences == null); + if (flag) + { + this._cooking_experiences = (value ? new uint?(this.cooking_experiences) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _items = new List(); + + private uint? _cooking_level; + + private uint? _cooking_experiences; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializecooking_level() + { + return this.cooking_levelSpecified; + } + + private void Resetcooking_level() + { + this.cooking_levelSpecified = false; + } + + private bool ShouldSerializecooking_experiences() + { + return this.cooking_experiencesSpecified; + } + + private void Resetcooking_experiences() + { + this.cooking_experiencesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs.meta new file mode 100644 index 00000000..d4b9fb96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenCookingFoodRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: feb16f1d7de3ee44380217840c70d480 +timeCreated: 1611404942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenEventLog.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenEventLog.cs new file mode 100644 index 00000000..aa87cfec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenEventLog.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenEventLog")] + [Serializable] + public class GardenEventLog : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "role_id", DataFormat = DataFormat.TwosComplement)] + public ulong role_id + { + get + { + return this._role_id ?? 0UL; + } + set + { + this._role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role_idSpecified + { + get + { + return this._role_id != null; + } + set + { + bool flag = value == (this._role_id == null); + if (flag) + { + this._role_id = (value ? new ulong?(this.role_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "role_name", DataFormat = DataFormat.Default)] + public string role_name + { + get + { + return this._role_name ?? ""; + } + set + { + this._role_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role_nameSpecified + { + get + { + return this._role_name != null; + } + set + { + bool flag = value == (this._role_name == null); + if (flag) + { + this._role_name = (value ? this.role_name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "occur_time", DataFormat = DataFormat.TwosComplement)] + public uint occur_time + { + get + { + return this._occur_time ?? 0u; + } + set + { + this._occur_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool occur_timeSpecified + { + get + { + return this._occur_time != null; + } + set + { + bool flag = value == (this._occur_time == null); + if (flag) + { + this._occur_time = (value ? new uint?(this.occur_time) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "event_type", DataFormat = DataFormat.TwosComplement)] + public uint event_type + { + get + { + return this._event_type ?? 0u; + } + set + { + this._event_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool event_typeSpecified + { + get + { + return this._event_type != null; + } + set + { + bool flag = value == (this._event_type == null); + if (flag) + { + this._event_type = (value ? new uint?(this.event_type) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "target", DataFormat = DataFormat.TwosComplement)] + public uint target + { + get + { + return this._target ?? 0u; + } + set + { + this._target = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool targetSpecified + { + get + { + return this._target != null; + } + set + { + bool flag = value == (this._target == null); + if (flag) + { + this._target = (value ? new uint?(this.target) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "result", DataFormat = DataFormat.Default)] + public bool result + { + get + { + return this._result ?? false; + } + set + { + this._result = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new bool?(this.result) : null); + } + } + } + + private ulong? _role_id; + + private string _role_name; + + private uint? _occur_time; + + private uint? _event_type; + + private uint? _target; + + private bool? _result; + + private IExtension extensionObject; + + private bool ShouldSerializerole_id() + { + return this.role_idSpecified; + } + + private void Resetrole_id() + { + this.role_idSpecified = false; + } + + private bool ShouldSerializerole_name() + { + return this.role_nameSpecified; + } + + private void Resetrole_name() + { + this.role_nameSpecified = false; + } + + private bool ShouldSerializeoccur_time() + { + return this.occur_timeSpecified; + } + + private void Resetoccur_time() + { + this.occur_timeSpecified = false; + } + + private bool ShouldSerializeevent_type() + { + return this.event_typeSpecified; + } + + private void Resetevent_type() + { + this.event_typeSpecified = false; + } + + private bool ShouldSerializetarget() + { + return this.targetSpecified; + } + + private void Resettarget() + { + this.targetSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenEventLog.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenEventLog.cs.meta new file mode 100644 index 00000000..b5872a30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenEventLog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62f9a247d48070843bbf0564a8eba6cc +timeCreated: 1611403843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteArg.cs new file mode 100644 index 00000000..8175e9ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenExpelSpriteArg")] + [Serializable] + public class GardenExpelSpriteArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)] + public uint sprite_id + { + get + { + return this._sprite_id ?? 0u; + } + set + { + this._sprite_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sprite_idSpecified + { + get + { + return this._sprite_id != null; + } + set + { + bool flag = value == (this._sprite_id == null); + if (flag) + { + this._sprite_id = (value ? new uint?(this.sprite_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public GardenQuestType quest_type + { + get + { + return this._quest_type ?? GardenQuestType.MYSELF; + } + set + { + this._quest_type = new GardenQuestType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new GardenQuestType?(this.quest_type) : null); + } + } + } + + private ulong? _garden_id; + + private uint? _sprite_id; + + private GardenQuestType? _quest_type; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializesprite_id() + { + return this.sprite_idSpecified; + } + + private void Resetsprite_id() + { + this.sprite_idSpecified = false; + } + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteArg.cs.meta new file mode 100644 index 00000000..44385fba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5870db1106ce134298b77256cb8376f +timeCreated: 1611404506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteRes.cs new file mode 100644 index 00000000..da135287 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenExpelSpriteRes")] + [Serializable] + public class GardenExpelSpriteRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private ErrorCode? _result; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteRes.cs.meta new file mode 100644 index 00000000..7e12ce1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenExpelSpriteRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db872bf56b5de754eadccbcbfe0d5180 +timeCreated: 1611404653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoArg.cs new file mode 100644 index 00000000..61bc45a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenFishInfoArg")] + [Serializable] + public class GardenFishInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + private ulong? _garden_id; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoArg.cs.meta new file mode 100644 index 00000000..4a2cacb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73b94f1cfd2e6c74588599159e9fb2ea +timeCreated: 1611403941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs new file mode 100644 index 00000000..9c99426f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenFishInfoRes")] + [Serializable] + public class GardenFishInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fish_level", DataFormat = DataFormat.TwosComplement)] + public uint fish_level + { + get + { + return this._fish_level ?? 0u; + } + set + { + this._fish_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fish_levelSpecified + { + get + { + return this._fish_level != null; + } + set + { + bool flag = value == (this._fish_level == null); + if (flag) + { + this._fish_level = (value ? new uint?(this.fish_level) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "experiences", DataFormat = DataFormat.TwosComplement)] + public uint experiences + { + get + { + return this._experiences ?? 0u; + } + set + { + this._experiences = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool experiencesSpecified + { + get + { + return this._experiences != null; + } + set + { + bool flag = value == (this._experiences == null); + if (flag) + { + this._experiences = (value ? new uint?(this.experiences) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _fish_level; + + private uint? _experiences; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializefish_level() + { + return this.fish_levelSpecified; + } + + private void Resetfish_level() + { + this.fish_levelSpecified = false; + } + + private bool ShouldSerializeexperiences() + { + return this.experiencesSpecified; + } + + private void Resetexperiences() + { + this.experiencesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs.meta new file mode 100644 index 00000000..5178c0a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1bdb41c1099c33840a656ba04543d378 +timeCreated: 1611403340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenFishStopArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishStopArg.cs new file mode 100644 index 00000000..61405fe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishStopArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenFishStopArg")] + [Serializable] + public class GardenFishStopArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + private ulong? _garden_id; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenFishStopArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishStopArg.cs.meta new file mode 100644 index 00000000..2e5c590c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenFishStopArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9ff933057f11fd4a843ac305cebf0b2 +timeCreated: 1611404646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewArg.cs new file mode 100644 index 00000000..95d69aa1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenOverviewArg")] + [Serializable] + public class GardenOverviewArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewArg.cs.meta new file mode 100644 index 00000000..2ccb82a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 516328977244b3343a8582991eb27aae +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewRes.cs new file mode 100644 index 00000000..3f1c9e80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewRes.cs @@ -0,0 +1,494 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenOverviewRes")] + [Serializable] + public class GardenOverviewRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "visited_times", DataFormat = DataFormat.TwosComplement)] + public uint visited_times + { + get + { + return this._visited_times ?? 0u; + } + set + { + this._visited_times = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool visited_timesSpecified + { + get + { + return this._visited_times != null; + } + set + { + bool flag = value == (this._visited_times == null); + if (flag) + { + this._visited_times = (value ? new uint?(this.visited_times) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "fish_level", DataFormat = DataFormat.TwosComplement)] + public uint fish_level + { + get + { + return this._fish_level ?? 0u; + } + set + { + this._fish_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fish_levelSpecified + { + get + { + return this._fish_level != null; + } + set + { + bool flag = value == (this._fish_level == null); + if (flag) + { + this._fish_level = (value ? new uint?(this.fish_level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "fish_experiences", DataFormat = DataFormat.TwosComplement)] + public uint fish_experiences + { + get + { + return this._fish_experiences ?? 0u; + } + set + { + this._fish_experiences = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fish_experiencesSpecified + { + get + { + return this._fish_experiences != null; + } + set + { + bool flag = value == (this._fish_experiences == null); + if (flag) + { + this._fish_experiences = (value ? new uint?(this.fish_experiences) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "cooking_level", DataFormat = DataFormat.TwosComplement)] + public uint cooking_level + { + get + { + return this._cooking_level ?? 0u; + } + set + { + this._cooking_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooking_levelSpecified + { + get + { + return this._cooking_level != null; + } + set + { + bool flag = value == (this._cooking_level == null); + if (flag) + { + this._cooking_level = (value ? new uint?(this.cooking_level) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "cooking_experiences", DataFormat = DataFormat.TwosComplement)] + public uint cooking_experiences + { + get + { + return this._cooking_experiences ?? 0u; + } + set + { + this._cooking_experiences = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooking_experiencesSpecified + { + get + { + return this._cooking_experiences != null; + } + set + { + bool flag = value == (this._cooking_experiences == null); + if (flag) + { + this._cooking_experiences = (value ? new uint?(this.cooking_experiences) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "plant_amount", DataFormat = DataFormat.TwosComplement)] + public uint plant_amount + { + get + { + return this._plant_amount ?? 0u; + } + set + { + this._plant_amount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool plant_amountSpecified + { + get + { + return this._plant_amount != null; + } + set + { + bool flag = value == (this._plant_amount == null); + if (flag) + { + this._plant_amount = (value ? new uint?(this.plant_amount) : null); + } + } + } + + [ProtoMember(8, Name = "friend_log", DataFormat = DataFormat.Default)] + public List friend_log + { + get + { + return this._friend_log; + } + } + + [ProtoMember(9, Name = "event_log", DataFormat = DataFormat.Default)] + public List event_log + { + get + { + return this._event_log; + } + } + + [ProtoMember(10, Name = "plant_info", DataFormat = DataFormat.Default)] + public List plant_info + { + get + { + return this._plant_info; + } + } + + [ProtoMember(11, Name = "food_id", DataFormat = DataFormat.Default)] + public List food_id + { + get + { + return this._food_id; + } + } + + [ProtoMember(12, IsRequired = false, Name = "server_time", DataFormat = DataFormat.TwosComplement)] + public uint server_time + { + get + { + return this._server_time ?? 0u; + } + set + { + this._server_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool server_timeSpecified + { + get + { + return this._server_time != null; + } + set + { + bool flag = value == (this._server_time == null); + if (flag) + { + this._server_time = (value ? new uint?(this.server_time) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "plant_farmland_max", DataFormat = DataFormat.TwosComplement)] + public uint plant_farmland_max + { + get + { + return this._plant_farmland_max ?? 0u; + } + set + { + this._plant_farmland_max = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool plant_farmland_maxSpecified + { + get + { + return this._plant_farmland_max != null; + } + set + { + bool flag = value == (this._plant_farmland_max == null); + if (flag) + { + this._plant_farmland_max = (value ? new uint?(this.plant_farmland_max) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)] + public uint sprite_id + { + get + { + return this._sprite_id ?? 0u; + } + set + { + this._sprite_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sprite_idSpecified + { + get + { + return this._sprite_id != null; + } + set + { + bool flag = value == (this._sprite_id == null); + if (flag) + { + this._sprite_id = (value ? new uint?(this.sprite_id) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _visited_times; + + private uint? _fish_level; + + private uint? _fish_experiences; + + private uint? _cooking_level; + + private uint? _cooking_experiences; + + private uint? _plant_amount; + + private readonly List _friend_log = new List(); + + private readonly List _event_log = new List(); + + private readonly List _plant_info = new List(); + + private readonly List _food_id = new List(); + + private uint? _server_time; + + private uint? _plant_farmland_max; + + private uint? _sprite_id; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializevisited_times() + { + return this.visited_timesSpecified; + } + + private void Resetvisited_times() + { + this.visited_timesSpecified = false; + } + + private bool ShouldSerializefish_level() + { + return this.fish_levelSpecified; + } + + private void Resetfish_level() + { + this.fish_levelSpecified = false; + } + + private bool ShouldSerializefish_experiences() + { + return this.fish_experiencesSpecified; + } + + private void Resetfish_experiences() + { + this.fish_experiencesSpecified = false; + } + + private bool ShouldSerializecooking_level() + { + return this.cooking_levelSpecified; + } + + private void Resetcooking_level() + { + this.cooking_levelSpecified = false; + } + + private bool ShouldSerializecooking_experiences() + { + return this.cooking_experiencesSpecified; + } + + private void Resetcooking_experiences() + { + this.cooking_experiencesSpecified = false; + } + + private bool ShouldSerializeplant_amount() + { + return this.plant_amountSpecified; + } + + private void Resetplant_amount() + { + this.plant_amountSpecified = false; + } + + private bool ShouldSerializeserver_time() + { + return this.server_timeSpecified; + } + + private void Resetserver_time() + { + this.server_timeSpecified = false; + } + + private bool ShouldSerializeplant_farmland_max() + { + return this.plant_farmland_maxSpecified; + } + + private void Resetplant_farmland_max() + { + this.plant_farmland_maxSpecified = false; + } + + private bool ShouldSerializesprite_id() + { + return this.sprite_idSpecified; + } + + private void Resetsprite_id() + { + this.sprite_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewRes.cs.meta new file mode 100644 index 00000000..72972eb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenOverviewRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dcd52d04b234502459850b68146a5d4c +timeCreated: 1611404680 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenPlantEventNoticeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenPlantEventNoticeArg.cs new file mode 100644 index 00000000..08af7a63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenPlantEventNoticeArg.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenPlantEventNoticeArg")] + [Serializable] + public class GardenPlantEventNoticeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "event_type", DataFormat = DataFormat.TwosComplement)] + public GardenPlayEventType event_type + { + get + { + return this._event_type ?? GardenPlayEventType.PLANT; + } + set + { + this._event_type = new GardenPlayEventType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool event_typeSpecified + { + get + { + return this._event_type != null; + } + set + { + bool flag = value == (this._event_type == null); + if (flag) + { + this._event_type = (value ? new GardenPlayEventType?(this.event_type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public uint farmland_id + { + get + { + return this._farmland_id ?? 0u; + } + set + { + this._farmland_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool farmland_idSpecified + { + get + { + return this._farmland_id != null; + } + set + { + bool flag = value == (this._farmland_id == null); + if (flag) + { + this._farmland_id = (value ? new uint?(this.farmland_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)] + public uint sprite_id + { + get + { + return this._sprite_id ?? 0u; + } + set + { + this._sprite_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sprite_idSpecified + { + get + { + return this._sprite_id != null; + } + set + { + bool flag = value == (this._sprite_id == null); + if (flag) + { + this._sprite_id = (value ? new uint?(this.sprite_id) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "exist", DataFormat = DataFormat.Default)] + public bool exist + { + get + { + return this._exist ?? false; + } + set + { + this._exist = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool existSpecified + { + get + { + return this._exist != null; + } + set + { + bool flag = value == (this._exist == null); + if (flag) + { + this._exist = (value ? new bool?(this.exist) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "role_id", DataFormat = DataFormat.TwosComplement)] + public ulong role_id + { + get + { + return this._role_id ?? 0UL; + } + set + { + this._role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role_idSpecified + { + get + { + return this._role_id != null; + } + set + { + bool flag = value == (this._role_id == null); + if (flag) + { + this._role_id = (value ? new ulong?(this.role_id) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "fish_result", DataFormat = DataFormat.Default)] + public bool fish_result + { + get + { + return this._fish_result ?? false; + } + set + { + this._fish_result = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fish_resultSpecified + { + get + { + return this._fish_result != null; + } + set + { + bool flag = value == (this._fish_result == null); + if (flag) + { + this._fish_result = (value ? new bool?(this.fish_result) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "fish_stop", DataFormat = DataFormat.Default)] + public bool fish_stop + { + get + { + return this._fish_stop ?? false; + } + set + { + this._fish_stop = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fish_stopSpecified + { + get + { + return this._fish_stop != null; + } + set + { + bool flag = value == (this._fish_stop == null); + if (flag) + { + this._fish_stop = (value ? new bool?(this.fish_stop) : null); + } + } + } + + private GardenPlayEventType? _event_type; + + private uint? _farmland_id; + + private uint? _sprite_id; + + private ulong? _garden_id; + + private bool? _exist; + + private ulong? _role_id; + + private bool? _fish_result; + + private bool? _fish_stop; + + private IExtension extensionObject; + + private bool ShouldSerializeevent_type() + { + return this.event_typeSpecified; + } + + private void Resetevent_type() + { + this.event_typeSpecified = false; + } + + private bool ShouldSerializefarmland_id() + { + return this.farmland_idSpecified; + } + + private void Resetfarmland_id() + { + this.farmland_idSpecified = false; + } + + private bool ShouldSerializesprite_id() + { + return this.sprite_idSpecified; + } + + private void Resetsprite_id() + { + this.sprite_idSpecified = false; + } + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializeexist() + { + return this.existSpecified; + } + + private void Resetexist() + { + this.existSpecified = false; + } + + private bool ShouldSerializerole_id() + { + return this.role_idSpecified; + } + + private void Resetrole_id() + { + this.role_idSpecified = false; + } + + private bool ShouldSerializefish_result() + { + return this.fish_resultSpecified; + } + + private void Resetfish_result() + { + this.fish_resultSpecified = false; + } + + private bool ShouldSerializefish_stop() + { + return this.fish_stopSpecified; + } + + private void Resetfish_stop() + { + this.fish_stopSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenPlantEventNoticeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenPlantEventNoticeArg.cs.meta new file mode 100644 index 00000000..9d9ce753 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenPlantEventNoticeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1168d5da714eef499bc105803adfab7 +timeCreated: 1611404252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenPlayEventType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenPlayEventType.cs new file mode 100644 index 00000000..44082669 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenPlayEventType.cs @@ -0,0 +1,32 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenPlayEventType")] + public enum GardenPlayEventType + { + [ProtoEnum(Name = "PLANT", Value = 1)] + PLANT = 1, + [ProtoEnum(Name = "PLANT_STAGE", Value = 2)] + PLANT_STAGE, + [ProtoEnum(Name = "PLANT_STATE_CHANGE", Value = 3)] + PLANT_STATE_CHANGE, + [ProtoEnum(Name = "BANQUET", Value = 4)] + BANQUET, + [ProtoEnum(Name = "BANQUET_STAGE", Value = 5)] + BANQUET_STAGE, + [ProtoEnum(Name = "PLANT_DELETE", Value = 6)] + PLANT_DELETE, + [ProtoEnum(Name = "PLANT_SPRITE", Value = 7)] + PLANT_SPRITE, + [ProtoEnum(Name = "PLANT_MATURE", Value = 8)] + PLANT_MATURE, + [ProtoEnum(Name = "FISH_FACE", Value = 9)] + FISH_FACE, + [ProtoEnum(Name = "FISH_RESULT", Value = 10)] + FISH_RESULT, + [ProtoEnum(Name = "FISH_STOP", Value = 11)] + FISH_STOP + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenPlayEventType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenPlayEventType.cs.meta new file mode 100644 index 00000000..cd7624af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenPlayEventType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf90b88dc3556c54eb517b278a47eb57 +timeCreated: 1611404581 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenQuestType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenQuestType.cs new file mode 100644 index 00000000..e7f5001d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenQuestType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenQuestType")] + public enum GardenQuestType + { + [ProtoEnum(Name = "MYSELF", Value = 1)] + MYSELF = 1, + [ProtoEnum(Name = "FRIEND", Value = 2)] + FRIEND, + [ProtoEnum(Name = "GUILD", Value = 3)] + GUILD + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenQuestType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenQuestType.cs.meta new file mode 100644 index 00000000..88170986 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenQuestType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e2e039cd5ccbd741b186ac772f11ba7 +timeCreated: 1611403606 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenStealArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenStealArg.cs new file mode 100644 index 00000000..9dea7f1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenStealArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenStealArg")] + [Serializable] + public class GardenStealArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public uint farmland_id + { + get + { + return this._farmland_id ?? 0u; + } + set + { + this._farmland_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool farmland_idSpecified + { + get + { + return this._farmland_id != null; + } + set + { + bool flag = value == (this._farmland_id == null); + if (flag) + { + this._farmland_id = (value ? new uint?(this.farmland_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public GardenQuestType quest_type + { + get + { + return this._quest_type ?? GardenQuestType.MYSELF; + } + set + { + this._quest_type = new GardenQuestType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new GardenQuestType?(this.quest_type) : null); + } + } + } + + private ulong? _garden_id; + + private uint? _farmland_id; + + private GardenQuestType? _quest_type; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializefarmland_id() + { + return this.farmland_idSpecified; + } + + private void Resetfarmland_id() + { + this.farmland_idSpecified = false; + } + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenStealArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenStealArg.cs.meta new file mode 100644 index 00000000..d180c5ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenStealArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65d5f97b38e320041852fefce38cc3ab +timeCreated: 1611403852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenStealRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GardenStealRes.cs new file mode 100644 index 00000000..9ff039f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenStealRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GardenStealRes")] + [Serializable] + public class GardenStealRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private ErrorCode? _result; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GardenStealRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GardenStealRes.cs.meta new file mode 100644 index 00000000..18e55fe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GardenStealRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe5f4f967ca12304292704bbbc32e656 +timeCreated: 1611404940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Get520FestivalRedPacket.cs b/Client/Assets/Scripts/XMainClient/KKSG/Get520FestivalRedPacket.cs new file mode 100644 index 00000000..a01f736e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Get520FestivalRedPacket.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Get520FestivalRedPacket")] + [Serializable] + public class Get520FestivalRedPacket : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "headpic", DataFormat = DataFormat.Default)] + public string headpic + { + get + { + return this._headpic ?? ""; + } + set + { + this._headpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool headpicSpecified + { + get + { + return this._headpic != null; + } + set + { + bool flag = value == (this._headpic == null); + if (flag) + { + this._headpic = (value ? this.headpic : null); + } + } + } + + private uint? _type; + + private uint? _num; + + private string _name; + + private string _headpic; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeheadpic() + { + return this.headpicSpecified; + } + + private void Resetheadpic() + { + this.headpicSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Get520FestivalRedPacket.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Get520FestivalRedPacket.cs.meta new file mode 100644 index 00000000..3e10dc66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Get520FestivalRedPacket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41c593a3fb9930644a6a2352ca9c7b1a +timeCreated: 1611403618 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoReq.cs new file mode 100644 index 00000000..390837be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoReq.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAchieveBrifInfoReq")] + [Serializable] + public class GetAchieveBrifInfoReq : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoReq.cs.meta new file mode 100644 index 00000000..6763b904 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1697e742137af6f4db0532a38d3e15bb +timeCreated: 1611403289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoRes.cs new file mode 100644 index 00000000..964dd90b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAchieveBrifInfoRes")] + [Serializable] + public class GetAchieveBrifInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "achievePoint", DataFormat = DataFormat.TwosComplement)] + public uint achievePoint + { + get + { + return this._achievePoint ?? 0u; + } + set + { + this._achievePoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool achievePointSpecified + { + get + { + return this._achievePoint != null; + } + set + { + bool flag = value == (this._achievePoint == null); + if (flag) + { + this._achievePoint = (value ? new uint?(this.achievePoint) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "maxAchievePoint", DataFormat = DataFormat.TwosComplement)] + public uint maxAchievePoint + { + get + { + return this._maxAchievePoint ?? 0u; + } + set + { + this._maxAchievePoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxAchievePointSpecified + { + get + { + return this._maxAchievePoint != null; + } + set + { + bool flag = value == (this._maxAchievePoint == null); + if (flag) + { + this._maxAchievePoint = (value ? new uint?(this.maxAchievePoint) : null); + } + } + } + + [ProtoMember(4, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + [ProtoMember(5, IsRequired = false, Name = "rewardId", DataFormat = DataFormat.TwosComplement)] + public uint rewardId + { + get + { + return this._rewardId ?? 0u; + } + set + { + this._rewardId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardIdSpecified + { + get + { + return this._rewardId != null; + } + set + { + bool flag = value == (this._rewardId == null); + if (flag) + { + this._rewardId = (value ? new uint?(this.rewardId) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _achievePoint; + + private uint? _maxAchievePoint; + + private readonly List _dataList = new List(); + + private uint? _rewardId; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeachievePoint() + { + return this.achievePointSpecified; + } + + private void ResetachievePoint() + { + this.achievePointSpecified = false; + } + + private bool ShouldSerializemaxAchievePoint() + { + return this.maxAchievePointSpecified; + } + + private void ResetmaxAchievePoint() + { + this.maxAchievePointSpecified = false; + } + + private bool ShouldSerializerewardId() + { + return this.rewardIdSpecified; + } + + private void ResetrewardId() + { + this.rewardIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoRes.cs.meta new file mode 100644 index 00000000..e41717fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveBrifInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71dfd4c02bf5b01429cc2d283233ba21 +timeCreated: 1611403936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoReq.cs new file mode 100644 index 00000000..b29f6ce0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAchieveClassifyInfoReq")] + [Serializable] + public class GetAchieveClassifyInfoReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoReq.cs.meta new file mode 100644 index 00000000..d291a7a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cd24bcee26d450469351b349d6b6d8f +timeCreated: 1611403802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoRes.cs new file mode 100644 index 00000000..3fb3c4fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAchieveClassifyInfoRes")] + [Serializable] + public class GetAchieveClassifyInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + private ErrorCode? _result; + + private readonly List _dataList = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoRes.cs.meta new file mode 100644 index 00000000..54c3a1c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveClassifyInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1195f77c471937142a31e3cb431dfa56 +timeCreated: 1611403239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardReq.cs new file mode 100644 index 00000000..c798bd08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAchievePointRewardReq")] + [Serializable] + public class GetAchievePointRewardReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rewardId", DataFormat = DataFormat.TwosComplement)] + public uint rewardId + { + get + { + return this._rewardId ?? 0u; + } + set + { + this._rewardId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardIdSpecified + { + get + { + return this._rewardId != null; + } + set + { + bool flag = value == (this._rewardId == null); + if (flag) + { + this._rewardId = (value ? new uint?(this.rewardId) : null); + } + } + } + + private uint? _rewardId; + + private IExtension extensionObject; + + private bool ShouldSerializerewardId() + { + return this.rewardIdSpecified; + } + + private void ResetrewardId() + { + this.rewardIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardReq.cs.meta new file mode 100644 index 00000000..58060388 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7287e51bad7f05746aeba00160c82cf3 +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardRes.cs new file mode 100644 index 00000000..74700a1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAchievePointRewardRes")] + [Serializable] + public class GetAchievePointRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardRes.cs.meta new file mode 100644 index 00000000..67637397 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchievePointRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07720b98405f32e44bb39ead6e6ca4f8 +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardReq.cs new file mode 100644 index 00000000..efe455b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAchieveRewardReq")] + [Serializable] + public class GetAchieveRewardReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "achieveID", DataFormat = DataFormat.TwosComplement)] + public uint achieveID + { + get + { + return this._achieveID ?? 0u; + } + set + { + this._achieveID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool achieveIDSpecified + { + get + { + return this._achieveID != null; + } + set + { + bool flag = value == (this._achieveID == null); + if (flag) + { + this._achieveID = (value ? new uint?(this.achieveID) : null); + } + } + } + + private uint? _achieveID; + + private IExtension extensionObject; + + private bool ShouldSerializeachieveID() + { + return this.achieveIDSpecified; + } + + private void ResetachieveID() + { + this.achieveIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardReq.cs.meta new file mode 100644 index 00000000..801c4dcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91a7cbca546660b4b9e435428fed3dcc +timeCreated: 1611404143 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardRes.cs new file mode 100644 index 00000000..ab9a20ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAchieveRewardRes")] + [Serializable] + public class GetAchieveRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardRes.cs.meta new file mode 100644 index 00000000..19b5c79b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAchieveRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b43b020391a1a3468812eee81ffb106 +timeCreated: 1611404205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestArg.cs new file mode 100644 index 00000000..fbc0d099 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetActivityChestArg")] + [Serializable] + public class GetActivityChestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ChestIndex", DataFormat = DataFormat.TwosComplement)] + public uint ChestIndex + { + get + { + return this._ChestIndex ?? 0u; + } + set + { + this._ChestIndex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ChestIndexSpecified + { + get + { + return this._ChestIndex != null; + } + set + { + bool flag = value == (this._ChestIndex == null); + if (flag) + { + this._ChestIndex = (value ? new uint?(this.ChestIndex) : null); + } + } + } + + private uint? _ChestIndex; + + private IExtension extensionObject; + + private bool ShouldSerializeChestIndex() + { + return this.ChestIndexSpecified; + } + + private void ResetChestIndex() + { + this.ChestIndexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestArg.cs.meta new file mode 100644 index 00000000..9669f23b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5983c665e0ef9eb42aa5f4a553e5cd0e +timeCreated: 1611403785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs new file mode 100644 index 00000000..9e72e2d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetActivityChestRes")] + [Serializable] + public class GetActivityChestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ChestGetInfo", DataFormat = DataFormat.TwosComplement)] + public uint ChestGetInfo + { + get + { + return this._ChestGetInfo ?? 0u; + } + set + { + this._ChestGetInfo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ChestGetInfoSpecified + { + get + { + return this._ChestGetInfo != null; + } + set + { + bool flag = value == (this._ChestGetInfo == null); + if (flag) + { + this._ChestGetInfo = (value ? new uint?(this.ChestGetInfo) : null); + } + } + } + + [ProtoMember(3, Name = "ItemId", DataFormat = DataFormat.TwosComplement)] + public List ItemId + { + get + { + return this._ItemId; + } + } + + [ProtoMember(4, Name = "ItemCount", DataFormat = DataFormat.TwosComplement)] + public List ItemCount + { + get + { + return this._ItemCount; + } + } + + private ErrorCode? _ErrorCode; + + private uint? _ChestGetInfo; + + private readonly List _ItemId = new List(); + + private readonly List _ItemCount = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeChestGetInfo() + { + return this.ChestGetInfoSpecified; + } + + private void ResetChestGetInfo() + { + this.ChestGetInfoSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs.meta new file mode 100644 index 00000000..134a8960 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityChestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f66ab6e37a1e5da4b8f819a69458ba4e +timeCreated: 1611404881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoArg.cs new file mode 100644 index 00000000..04e7ded0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetActivityInfoArg")] + [Serializable] + public class GetActivityInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoArg.cs.meta new file mode 100644 index 00000000..2ee727e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a5a69cff8a469f4f97e3d0cdc7be307 +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoRes.cs new file mode 100644 index 00000000..2a8fa608 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetActivityInfoRes")] + [Serializable] + public class GetActivityInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "Record", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ActivityRecord Record + { + get + { + return this._Record; + } + set + { + this._Record = value; + } + } + + private ErrorCode? _errorcode; + + private ActivityRecord _Record = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoRes.cs.meta new file mode 100644 index 00000000..4362abeb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetActivityInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fab213d4518ce84dba1af744b3dede2 +timeCreated: 1611403518 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoArg.cs new file mode 100644 index 00000000..d3189883 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAllWeddingInfoArg")] + [Serializable] + public class GetAllWeddingInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoArg.cs.meta new file mode 100644 index 00000000..897d3f9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dec5397d2c07e0345a11289e2d2f3b90 +timeCreated: 1611404687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoRes.cs new file mode 100644 index 00000000..f861c440 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoRes.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAllWeddingInfoRes")] + [Serializable] + public class GetAllWeddingInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "can_enter", DataFormat = DataFormat.Default)] + public List can_enter + { + get + { + return this._can_enter; + } + } + + [ProtoMember(3, Name = "can_apply", DataFormat = DataFormat.Default)] + public List can_apply + { + get + { + return this._can_apply; + } + } + + [ProtoMember(4, Name = "is_apply", DataFormat = DataFormat.Default)] + public List is_apply + { + get + { + return this._is_apply; + } + } + + private ErrorCode? _result; + + private readonly List _can_enter = new List(); + + private readonly List _can_apply = new List(); + + private readonly List _is_apply = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoRes.cs.meta new file mode 100644 index 00000000..394aeb4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAllWeddingInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca352489d677d5740a1a636a30509593 +timeCreated: 1611404541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListReq.cs new file mode 100644 index 00000000..f5dce595 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListReq.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAudioListReq")] + [Serializable] + public class GetAudioListReq : IExtensible + { + [ProtoMember(1, Name = "audioUidList", DataFormat = DataFormat.TwosComplement)] + public List audioUidList + { + get + { + return this._audioUidList; + } + } + + [ProtoMember(2, IsRequired = false, Name = "rpcid", DataFormat = DataFormat.TwosComplement)] + public uint rpcid + { + get + { + return this._rpcid ?? 0u; + } + set + { + this._rpcid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rpcidSpecified + { + get + { + return this._rpcid != null; + } + set + { + bool flag = value == (this._rpcid == null); + if (flag) + { + this._rpcid = (value ? new uint?(this.rpcid) : null); + } + } + } + + private readonly List _audioUidList = new List(); + + private uint? _rpcid; + + private IExtension extensionObject; + + private bool ShouldSerializerpcid() + { + return this.rpcidSpecified; + } + + private void Resetrpcid() + { + this.rpcidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListReq.cs.meta new file mode 100644 index 00000000..c4679af8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb74cefde6bc44945a626267737a9b09 +timeCreated: 1611404546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListRes.cs new file mode 100644 index 00000000..b11ec0e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetAudioListRes")] + [Serializable] + public class GetAudioListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + private ErrorCode? _result; + + private readonly List _dataList = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListRes.cs.meta new file mode 100644 index 00000000..97ef178c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetAudioListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f73f64b8e53317245a4284e16db1fd9d +timeCreated: 1611404886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeArg.cs new file mode 100644 index 00000000..65f364d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetBackFlowSpActTimeArg")] + [Serializable] + public class GetBackFlowSpActTimeArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeArg.cs.meta new file mode 100644 index 00000000..39744519 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96582ac986c1f3649be1e82c09144ede +timeCreated: 1611404184 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeRes.cs new file mode 100644 index 00000000..2c3e883b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetBackFlowSpActTimeRes")] + [Serializable] + public class GetBackFlowSpActTimeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.Default)] + public string lefttime + { + get + { + return this._lefttime ?? ""; + } + set + { + this._lefttime = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? this.lefttime : null); + } + } + } + + private ErrorCode? _errorcode; + + private string _lefttime; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeRes.cs.meta new file mode 100644 index 00000000..86b6dffc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetBackFlowSpActTimeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0dd66efea5011b342880110ca0bb2b3c +timeCreated: 1611403198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationReq.cs new file mode 100644 index 00000000..7153504a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetClassifyDesignationReq")] + [Serializable] + public class GetClassifyDesignationReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationReq.cs.meta new file mode 100644 index 00000000..3c10ad53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 788ba44776dbb48489fb80965dfd70cc +timeCreated: 1611403981 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationRes.cs new file mode 100644 index 00000000..f0fe1caf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetClassifyDesignationRes")] + [Serializable] + public class GetClassifyDesignationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + private ErrorCode? _result; + + private readonly List _dataList = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationRes.cs.meta new file mode 100644 index 00000000..dbf5d7cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetClassifyDesignationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa172e8974c479a44bf379f85e4bae36 +timeCreated: 1611404902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoArg.cs new file mode 100644 index 00000000..e3ab3b78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetCompeteDragonInfoArg")] + [Serializable] + public class GetCompeteDragonInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "opArg", DataFormat = DataFormat.TwosComplement)] + public CompeteDragonOpArg opArg + { + get + { + return this._opArg ?? CompeteDragonOpArg.CompeteDragon_GetInfo; + } + set + { + this._opArg = new CompeteDragonOpArg?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opArgSpecified + { + get + { + return this._opArg != null; + } + set + { + bool flag = value == (this._opArg == null); + if (flag) + { + this._opArg = (value ? new CompeteDragonOpArg?(this.opArg) : null); + } + } + } + + private CompeteDragonOpArg? _opArg; + + private IExtension extensionObject; + + private bool ShouldSerializeopArg() + { + return this.opArgSpecified; + } + + private void ResetopArg() + { + this.opArgSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoArg.cs.meta new file mode 100644 index 00000000..8b5a0a5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ce3d66f7800b544ba571bf829c341d1 +timeCreated: 1611403603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs new file mode 100644 index 00000000..7e68d4c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetCompeteDragonInfoRes")] + [Serializable] + public class GetCompeteDragonInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftRewardCount", DataFormat = DataFormat.TwosComplement)] + public int leftRewardCount + { + get + { + return this._leftRewardCount ?? 0; + } + set + { + this._leftRewardCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftRewardCountSpecified + { + get + { + return this._leftRewardCount != null; + } + set + { + bool flag = value == (this._leftRewardCount == null); + if (flag) + { + this._leftRewardCount = (value ? new int?(this.leftRewardCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totalRewardCount", DataFormat = DataFormat.TwosComplement)] + public int totalRewardCount + { + get + { + return this._totalRewardCount ?? 0; + } + set + { + this._totalRewardCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalRewardCountSpecified + { + get + { + return this._totalRewardCount != null; + } + set + { + bool flag = value == (this._totalRewardCount == null); + if (flag) + { + this._totalRewardCount = (value ? new int?(this.totalRewardCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "canCanGetRewardCount", DataFormat = DataFormat.TwosComplement)] + public int canCanGetRewardCount + { + get + { + return this._canCanGetRewardCount ?? 0; + } + set + { + this._canCanGetRewardCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canCanGetRewardCountSpecified + { + get + { + return this._canCanGetRewardCount != null; + } + set + { + bool flag = value == (this._canCanGetRewardCount == null); + if (flag) + { + this._canCanGetRewardCount = (value ? new int?(this.canCanGetRewardCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "curDNExpID", DataFormat = DataFormat.TwosComplement)] + public uint curDNExpID + { + get + { + return this._curDNExpID ?? 0u; + } + set + { + this._curDNExpID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curDNExpIDSpecified + { + get + { + return this._curDNExpID != null; + } + set + { + bool flag = value == (this._curDNExpID == null); + if (flag) + { + this._curDNExpID = (value ? new uint?(this.curDNExpID) : null); + } + } + } + + private ErrorCode? _error; + + private int? _leftRewardCount; + + private int? _totalRewardCount; + + private int? _canCanGetRewardCount; + + private uint? _curDNExpID; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeleftRewardCount() + { + return this.leftRewardCountSpecified; + } + + private void ResetleftRewardCount() + { + this.leftRewardCountSpecified = false; + } + + private bool ShouldSerializetotalRewardCount() + { + return this.totalRewardCountSpecified; + } + + private void ResettotalRewardCount() + { + this.totalRewardCountSpecified = false; + } + + private bool ShouldSerializecanCanGetRewardCount() + { + return this.canCanGetRewardCountSpecified; + } + + private void ResetcanCanGetRewardCount() + { + this.canCanGetRewardCountSpecified = false; + } + + private bool ShouldSerializecurDNExpID() + { + return this.curDNExpIDSpecified; + } + + private void ResetcurDNExpID() + { + this.curDNExpIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs.meta new file mode 100644 index 00000000..572aad4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCompeteDragonInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0b325dd6729eb54fa7afef50a500f40 +timeCreated: 1611404699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs new file mode 100644 index 00000000..39d464e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetCrossGvgDataArg")] + [Serializable] + public class GetCrossGvgDataArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs.meta new file mode 100644 index 00000000..7b4c40ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1b28530480405947b238e436fddb2c4 +timeCreated: 1611404702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs new file mode 100644 index 00000000..c61d1e81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs @@ -0,0 +1,193 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetCrossGvgDataRes")] + [Serializable] + public class GetCrossGvgDataRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "rank", DataFormat = DataFormat.Default)] + public List rank + { + get + { + return this._rank; + } + } + + [ProtoMember(3, Name = "record", DataFormat = DataFormat.Default)] + public List record + { + get + { + return this._record; + } + } + + [ProtoMember(4, Name = "rooms", DataFormat = DataFormat.Default)] + public List rooms + { + get + { + return this._rooms; + } + } + + [ProtoMember(5, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public GuildArenaState state + { + get + { + return this._state ?? GuildArenaState.GUILD_ARENA_NOT_BEGIN; + } + set + { + this._state = new GuildArenaState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new GuildArenaState?(this.state) : null); + } + } + } + + [ProtoMember(6, Name = "support_guildid", DataFormat = DataFormat.TwosComplement)] + public List support_guildid + { + get + { + return this._support_guildid; + } + } + + [ProtoMember(7, IsRequired = false, Name = "season_num", DataFormat = DataFormat.TwosComplement)] + public uint season_num + { + get + { + return this._season_num ?? 0u; + } + set + { + this._season_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool season_numSpecified + { + get + { + return this._season_num != null; + } + set + { + bool flag = value == (this._season_num == null); + if (flag) + { + this._season_num = (value ? new uint?(this.season_num) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _rank = new List(); + + private readonly List _record = new List(); + + private readonly List _rooms = new List(); + + private GuildArenaState? _state; + + private readonly List _support_guildid = new List(); + + private uint? _season_num; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeseason_num() + { + return this.season_numSpecified; + } + + private void Resetseason_num() + { + this.season_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs.meta new file mode 100644 index 00000000..e771f0b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetCrossGvgDataRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f491e59577d6da243b67d7ebf6ca19b1 +timeCreated: 1611404854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpArg.cs new file mode 100644 index 00000000..37589dc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskAskHelpArg")] + [Serializable] + public class GetDailyTaskAskHelpArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpArg.cs.meta new file mode 100644 index 00000000..feac5f12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98e00c2fdf5430d499996abc44242897 +timeCreated: 1611404192 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpRes.cs new file mode 100644 index 00000000..c9586d93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskAskHelpRes")] + [Serializable] + public class GetDailyTaskAskHelpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "help_num", DataFormat = DataFormat.TwosComplement)] + public uint help_num + { + get + { + return this._help_num ?? 0u; + } + set + { + this._help_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool help_numSpecified + { + get + { + return this._help_num != null; + } + set + { + bool flag = value == (this._help_num == null); + if (flag) + { + this._help_num = (value ? new uint?(this.help_num) : null); + } + } + } + + [ProtoMember(3, Name = "askinfos", DataFormat = DataFormat.Default)] + public List askinfos + { + get + { + return this._askinfos; + } + } + + [ProtoMember(4, IsRequired = false, Name = "luck", DataFormat = DataFormat.TwosComplement)] + public uint luck + { + get + { + return this._luck ?? 0u; + } + set + { + this._luck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool luckSpecified + { + get + { + return this._luck != null; + } + set + { + bool flag = value == (this._luck == null); + if (flag) + { + this._luck = (value ? new uint?(this.luck) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _help_num; + + private readonly List _askinfos = new List(); + + private uint? _luck; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializehelp_num() + { + return this.help_numSpecified; + } + + private void Resethelp_num() + { + this.help_numSpecified = false; + } + + private bool ShouldSerializeluck() + { + return this.luckSpecified; + } + + private void Resetluck() + { + this.luckSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpRes.cs.meta new file mode 100644 index 00000000..bd748a5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskAskHelpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a01e3806989075468de5f95b88093d8 +timeCreated: 1611403160 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoArg.cs new file mode 100644 index 00000000..ff447bfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskInfoArg")] + [Serializable] + public class GetDailyTaskInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoArg.cs.meta new file mode 100644 index 00000000..278c663b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e88653cadebe4c94ab5466c2a9583726 +timeCreated: 1611404753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs new file mode 100644 index 00000000..a4a99690 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskInfoRes")] + [Serializable] + public class GetDailyTaskInfoRes : IExtensible + { + [ProtoMember(1, Name = "task", DataFormat = DataFormat.Default)] + public List task + { + get + { + return this._task; + } + } + + [ProtoMember(2, IsRequired = false, Name = "is_rewarded", DataFormat = DataFormat.Default)] + public bool is_rewarded + { + get + { + return this._is_rewarded ?? false; + } + set + { + this._is_rewarded = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_rewardedSpecified + { + get + { + return this._is_rewarded != null; + } + set + { + bool flag = value == (this._is_rewarded == null); + if (flag) + { + this._is_rewarded = (value ? new bool?(this.is_rewarded) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "accept_level", DataFormat = DataFormat.TwosComplement)] + public uint accept_level + { + get + { + return this._accept_level ?? 0u; + } + set + { + this._accept_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accept_levelSpecified + { + get + { + return this._accept_level != null; + } + set + { + bool flag = value == (this._accept_level == null); + if (flag) + { + this._accept_level = (value ? new uint?(this.accept_level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "askhelp_num", DataFormat = DataFormat.TwosComplement)] + public uint askhelp_num + { + get + { + return this._askhelp_num ?? 0u; + } + set + { + this._askhelp_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool askhelp_numSpecified + { + get + { + return this._askhelp_num != null; + } + set + { + bool flag = value == (this._askhelp_num == null); + if (flag) + { + this._askhelp_num = (value ? new uint?(this.askhelp_num) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "remain_refresh_count", DataFormat = DataFormat.TwosComplement)] + public uint remain_refresh_count + { + get + { + return this._remain_refresh_count ?? 0u; + } + set + { + this._remain_refresh_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool remain_refresh_countSpecified + { + get + { + return this._remain_refresh_count != null; + } + set + { + bool flag = value == (this._remain_refresh_count == null); + if (flag) + { + this._remain_refresh_count = (value ? new uint?(this.remain_refresh_count) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "luck", DataFormat = DataFormat.TwosComplement)] + public uint luck + { + get + { + return this._luck ?? 0u; + } + set + { + this._luck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool luckSpecified + { + get + { + return this._luck != null; + } + set + { + bool flag = value == (this._luck == null); + if (flag) + { + this._luck = (value ? new uint?(this.luck) : null); + } + } + } + + private readonly List _task = new List(); + + private bool? _is_rewarded; + + private uint? _count; + + private uint? _accept_level; + + private uint? _askhelp_num; + + private uint? _score; + + private uint? _remain_refresh_count; + + private uint? _luck; + + private IExtension extensionObject; + + private bool ShouldSerializeis_rewarded() + { + return this.is_rewardedSpecified; + } + + private void Resetis_rewarded() + { + this.is_rewardedSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializeaccept_level() + { + return this.accept_levelSpecified; + } + + private void Resetaccept_level() + { + this.accept_levelSpecified = false; + } + + private bool ShouldSerializeaskhelp_num() + { + return this.askhelp_numSpecified; + } + + private void Resetaskhelp_num() + { + this.askhelp_numSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializeremain_refresh_count() + { + return this.remain_refresh_countSpecified; + } + + private void Resetremain_refresh_count() + { + this.remain_refresh_countSpecified = false; + } + + private bool ShouldSerializeluck() + { + return this.luckSpecified; + } + + private void Resetluck() + { + this.luckSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs.meta new file mode 100644 index 00000000..b10eb574 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37e58ae5343950d459a541f17ef77b7c +timeCreated: 1611403567 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs new file mode 100644 index 00000000..ef70a788 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskRefreshInfoArg")] + [Serializable] + public class GetDailyTaskRefreshInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs.meta new file mode 100644 index 00000000..bbd11c97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d01ece5d0f5d8944d82c359d3b9f783d +timeCreated: 1611404584 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs new file mode 100644 index 00000000..1968c28b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskRefreshInfoRes")] + [Serializable] + public class GetDailyTaskRefreshInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "luck", DataFormat = DataFormat.TwosComplement)] + public uint luck + { + get + { + return this._luck ?? 0u; + } + set + { + this._luck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool luckSpecified + { + get + { + return this._luck != null; + } + set + { + bool flag = value == (this._luck == null); + if (flag) + { + this._luck = (value ? new uint?(this.luck) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "refresh_num", DataFormat = DataFormat.TwosComplement)] + public uint refresh_num + { + get + { + return this._refresh_num ?? 0u; + } + set + { + this._refresh_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refresh_numSpecified + { + get + { + return this._refresh_num != null; + } + set + { + bool flag = value == (this._refresh_num == null); + if (flag) + { + this._refresh_num = (value ? new uint?(this.refresh_num) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "extra_refresh_num", DataFormat = DataFormat.TwosComplement)] + public uint extra_refresh_num + { + get + { + return this._extra_refresh_num ?? 0u; + } + set + { + this._extra_refresh_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extra_refresh_numSpecified + { + get + { + return this._extra_refresh_num != null; + } + set + { + bool flag = value == (this._extra_refresh_num == null); + if (flag) + { + this._extra_refresh_num = (value ? new uint?(this.extra_refresh_num) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "today_buy_num", DataFormat = DataFormat.TwosComplement)] + public uint today_buy_num + { + get + { + return this._today_buy_num ?? 0u; + } + set + { + this._today_buy_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool today_buy_numSpecified + { + get + { + return this._today_buy_num != null; + } + set + { + bool flag = value == (this._today_buy_num == null); + if (flag) + { + this._today_buy_num = (value ? new uint?(this.today_buy_num) : null); + } + } + } + + [ProtoMember(6, Name = "friendinfo", DataFormat = DataFormat.Default)] + public List friendinfo + { + get + { + return this._friendinfo; + } + } + + private ErrorCode? _result; + + private uint? _luck; + + private uint? _refresh_num; + + private uint? _extra_refresh_num; + + private uint? _today_buy_num; + + private readonly List _friendinfo = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeluck() + { + return this.luckSpecified; + } + + private void Resetluck() + { + this.luckSpecified = false; + } + + private bool ShouldSerializerefresh_num() + { + return this.refresh_numSpecified; + } + + private void Resetrefresh_num() + { + this.refresh_numSpecified = false; + } + + private bool ShouldSerializeextra_refresh_num() + { + return this.extra_refresh_numSpecified; + } + + private void Resetextra_refresh_num() + { + this.extra_refresh_numSpecified = false; + } + + private bool ShouldSerializetoday_buy_num() + { + return this.today_buy_numSpecified; + } + + private void Resettoday_buy_num() + { + this.today_buy_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs.meta new file mode 100644 index 00000000..0f3f3aab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2407b2fe8e56b4a4a831e6dcc3179c04 +timeCreated: 1611403459 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordArg.cs new file mode 100644 index 00000000..fa1de60a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskRefreshRecordArg")] + [Serializable] + public class GetDailyTaskRefreshRecordArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordArg.cs.meta new file mode 100644 index 00000000..d291ca34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ed146e661b437a46873ceab17694db8 +timeCreated: 1611404243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordRes.cs new file mode 100644 index 00000000..f91989f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskRefreshRecordRes")] + [Serializable] + public class GetDailyTaskRefreshRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "records", DataFormat = DataFormat.Default)] + public List records + { + get + { + return this._records; + } + } + + private ErrorCode? _result; + + private readonly List _records = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordRes.cs.meta new file mode 100644 index 00000000..5b4a9f34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRefreshRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1679dad247d8c114c8e1826bc5e0d30e +timeCreated: 1611403288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardArg.cs new file mode 100644 index 00000000..049007f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskRewardArg")] + [Serializable] + public class GetDailyTaskRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _type; + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardArg.cs.meta new file mode 100644 index 00000000..8d6e7a45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d04f2c3b3a4ef52499eeaf23f3ceb667 +timeCreated: 1611404586 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardRes.cs new file mode 100644 index 00000000..842d4777 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDailyTaskRewardRes")] + [Serializable] + public class GetDailyTaskRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "code", DataFormat = DataFormat.TwosComplement)] + public ErrorCode code + { + get + { + return this._code ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._code = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool codeSpecified + { + get + { + return this._code != null; + } + set + { + bool flag = value == (this._code == null); + if (flag) + { + this._code = (value ? new ErrorCode?(this.code) : null); + } + } + } + + [ProtoMember(2, Name = "task", DataFormat = DataFormat.Default)] + public List task + { + get + { + return this._task; + } + } + + private ErrorCode? _code; + + private readonly List _task = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializecode() + { + return this.codeSpecified; + } + + private void Resetcode() + { + this.codeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardRes.cs.meta new file mode 100644 index 00000000..88f9a46d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDailyTaskRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1b3f73bdd19ddb43a4e745ec35b169a +timeCreated: 1611404491 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsArg.cs new file mode 100644 index 00000000..476e5bea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsArg.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDanceIdsArg")] + [Serializable] + public class GetDanceIdsArg : IExtensible + { + [ProtoMember(1, Name = "danceid", DataFormat = DataFormat.TwosComplement)] + public List danceid + { + get + { + return this._danceid; + } + } + + private readonly List _danceid = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsArg.cs.meta new file mode 100644 index 00000000..e95af32c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15890c4940010ca4bad30cf802a06e60 +timeCreated: 1611403263 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsRes.cs new file mode 100644 index 00000000..e58fde65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsRes.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDanceIdsRes")] + [Serializable] + public class GetDanceIdsRes : IExtensible + { + [ProtoMember(1, Name = "danceid", DataFormat = DataFormat.TwosComplement)] + public List danceid + { + get + { + return this._danceid; + } + } + + [ProtoMember(2, Name = "valid", DataFormat = DataFormat.TwosComplement)] + public List valid + { + get + { + return this._valid; + } + } + + private readonly List _danceid = new List(); + + private readonly List _valid = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsRes.cs.meta new file mode 100644 index 00000000..5b6885af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDanceIdsRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fb5fb4677ce93e468faf433a192ecc1 +timeCreated: 1611403518 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationReq.cs new file mode 100644 index 00000000..ecbcacf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationReq.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDesignationReq")] + [Serializable] + public class GetDesignationReq : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationReq.cs.meta new file mode 100644 index 00000000..1c9d5e25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca51ee37cdcf23947b018837dfc4d49c +timeCreated: 1611404541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationRes.cs new file mode 100644 index 00000000..7208f31c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationRes.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDesignationRes")] + [Serializable] + public class GetDesignationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "coverDesignationID", DataFormat = DataFormat.TwosComplement)] + public uint coverDesignationID + { + get + { + return this._coverDesignationID ?? 0u; + } + set + { + this._coverDesignationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool coverDesignationIDSpecified + { + get + { + return this._coverDesignationID != null; + } + set + { + bool flag = value == (this._coverDesignationID == null); + if (flag) + { + this._coverDesignationID = (value ? new uint?(this.coverDesignationID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "abilityDesignationID", DataFormat = DataFormat.TwosComplement)] + public uint abilityDesignationID + { + get + { + return this._abilityDesignationID ?? 0u; + } + set + { + this._abilityDesignationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool abilityDesignationIDSpecified + { + get + { + return this._abilityDesignationID != null; + } + set + { + bool flag = value == (this._abilityDesignationID == null); + if (flag) + { + this._abilityDesignationID = (value ? new uint?(this.abilityDesignationID) : null); + } + } + } + + [ProtoMember(4, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + [ProtoMember(5, IsRequired = false, Name = "maxPPT", DataFormat = DataFormat.TwosComplement)] + public uint maxPPT + { + get + { + return this._maxPPT ?? 0u; + } + set + { + this._maxPPT = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxPPTSpecified + { + get + { + return this._maxPPT != null; + } + set + { + bool flag = value == (this._maxPPT == null); + if (flag) + { + this._maxPPT = (value ? new uint?(this.maxPPT) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ErrorCode? _result; + + private uint? _coverDesignationID; + + private uint? _abilityDesignationID; + + private readonly List _dataList = new List(); + + private uint? _maxPPT; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializecoverDesignationID() + { + return this.coverDesignationIDSpecified; + } + + private void ResetcoverDesignationID() + { + this.coverDesignationIDSpecified = false; + } + + private bool ShouldSerializeabilityDesignationID() + { + return this.abilityDesignationIDSpecified; + } + + private void ResetabilityDesignationID() + { + this.abilityDesignationIDSpecified = false; + } + + private bool ShouldSerializemaxPPT() + { + return this.maxPPTSpecified; + } + + private void ResetmaxPPT() + { + this.maxPPTSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationRes.cs.meta new file mode 100644 index 00000000..285d3672 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDesignationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 437a86ff048645d429a053255333c0e0 +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoArg.cs new file mode 100644 index 00000000..15f69134 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildBindInfoArg")] + [Serializable] + public class GetDragonGuildBindInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoArg.cs.meta new file mode 100644 index 00000000..619ef3ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 45b5fe265b01eaa4c9a3d540ccb2a354 +timeCreated: 1611403648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoRes.cs new file mode 100644 index 00000000..770dd1c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildBindInfoRes")] + [Serializable] + public class GetDragonGuildBindInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bind_status", DataFormat = DataFormat.TwosComplement)] + public GuildBindStatus bind_status + { + get + { + return this._bind_status ?? GuildBindStatus.GBS_NotBind; + } + set + { + this._bind_status = new GuildBindStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bind_statusSpecified + { + get + { + return this._bind_status != null; + } + set + { + bool flag = value == (this._bind_status == null); + if (flag) + { + this._bind_status = (value ? new GuildBindStatus?(this.bind_status) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "group_name", DataFormat = DataFormat.Default)] + public string group_name + { + get + { + return this._group_name ?? ""; + } + set + { + this._group_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group_nameSpecified + { + get + { + return this._group_name != null; + } + set + { + bool flag = value == (this._group_name == null); + if (flag) + { + this._group_name = (value ? this.group_name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private GuildBindStatus? _bind_status; + + private string _group_name; + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializebind_status() + { + return this.bind_statusSpecified; + } + + private void Resetbind_status() + { + this.bind_statusSpecified = false; + } + + private bool ShouldSerializegroup_name() + { + return this.group_nameSpecified; + } + + private void Resetgroup_name() + { + this.group_nameSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoRes.cs.meta new file mode 100644 index 00000000..8d28adbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildBindInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34fdac65f332f64479290368adc344cd +timeCreated: 1611403557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopArg.cs new file mode 100644 index 00000000..7ec96b3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildShopArg")] + [Serializable] + public class GetDragonGuildShopArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopArg.cs.meta new file mode 100644 index 00000000..317afc45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abe638745a1c03f429453f50eeeaf25b +timeCreated: 1611404309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordArg.cs new file mode 100644 index 00000000..d7e8f17d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildShopRecordArg")] + [Serializable] + public class GetDragonGuildShopRecordArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordArg.cs.meta new file mode 100644 index 00000000..8f62a967 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea9ed49bd2c5c82449df10fc56517084 +timeCreated: 1611404780 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordRes.cs new file mode 100644 index 00000000..615f7199 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildShopRecordRes")] + [Serializable] + public class GetDragonGuildShopRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "record", DataFormat = DataFormat.Default)] + public List record + { + get + { + return this._record; + } + } + + private ErrorCode? _result; + + private readonly List _record = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordRes.cs.meta new file mode 100644 index 00000000..e1d37415 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 787db5a7879e78d42b0e193bfe937d1b +timeCreated: 1611403980 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRes.cs new file mode 100644 index 00000000..297e2ff7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildShopRes")] + [Serializable] + public class GetDragonGuildShopRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private ErrorCode? _result; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRes.cs.meta new file mode 100644 index 00000000..14068b89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildShopRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93884d38e0cf97c4ba770bd79daf990f +timeCreated: 1611404151 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestArg.cs new file mode 100644 index 00000000..e62d66fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildTaskChestArg")] + [Serializable] + public class GetDragonGuildTaskChestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public DragonGuildTaskType type + { + get + { + return this._type ?? DragonGuildTaskType.TASK_NORMAL; + } + set + { + this._type = new DragonGuildTaskType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new DragonGuildTaskType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "taskid", DataFormat = DataFormat.TwosComplement)] + public uint taskid + { + get + { + return this._taskid ?? 0u; + } + set + { + this._taskid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskidSpecified + { + get + { + return this._taskid != null; + } + set + { + bool flag = value == (this._taskid == null); + if (flag) + { + this._taskid = (value ? new uint?(this.taskid) : null); + } + } + } + + private DragonGuildTaskType? _type; + + private uint? _taskid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetaskid() + { + return this.taskidSpecified; + } + + private void Resettaskid() + { + this.taskidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestArg.cs.meta new file mode 100644 index 00000000..f9ebaa48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa7d54f590ce7a24d85b63534c3bf909 +timeCreated: 1611404303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestRes.cs new file mode 100644 index 00000000..9b6c712e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildTaskChestRes")] + [Serializable] + public class GetDragonGuildTaskChestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public List itemid + { + get + { + return this._itemid; + } + } + + [ProtoMember(3, Name = "itemCount", DataFormat = DataFormat.TwosComplement)] + public List itemCount + { + get + { + return this._itemCount; + } + } + + [ProtoMember(4, IsRequired = false, Name = "guildexp", DataFormat = DataFormat.TwosComplement)] + public uint guildexp + { + get + { + return this._guildexp ?? 0u; + } + set + { + this._guildexp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildexpSpecified + { + get + { + return this._guildexp != null; + } + set + { + bool flag = value == (this._guildexp == null); + if (flag) + { + this._guildexp = (value ? new uint?(this.guildexp) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _itemid = new List(); + + private readonly List _itemCount = new List(); + + private uint? _guildexp; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeguildexp() + { + return this.guildexpSpecified; + } + + private void Resetguildexp() + { + this.guildexpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestRes.cs.meta new file mode 100644 index 00000000..9a393a66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskChestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cce0e362b106ba47a5aeff0ae6f3c0a +timeCreated: 1611403998 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs new file mode 100644 index 00000000..4efcaa4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildTaskInfoArg")] + [Serializable] + public class GetDragonGuildTaskInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs.meta new file mode 100644 index 00000000..1fc8c995 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6dc65da5ad55da64485ee43c1af47dc7 +timeCreated: 1611403903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs new file mode 100644 index 00000000..2dee7c91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs @@ -0,0 +1,193 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonGuildTaskInfoRes")] + [Serializable] + public class GetDragonGuildTaskInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + [ProtoMember(3, Name = "taskrecord", DataFormat = DataFormat.Default)] + public List taskrecord + { + get + { + return this._taskrecord; + } + } + + [ProtoMember(4, Name = "taskcompleted", DataFormat = DataFormat.Default)] + public List taskcompleted + { + get + { + return this._taskcompleted; + } + } + + [ProtoMember(5, Name = "achiverecord", DataFormat = DataFormat.Default)] + public List achiverecord + { + get + { + return this._achiverecord; + } + } + + [ProtoMember(6, Name = "achivecompleted", DataFormat = DataFormat.Default)] + public List achivecompleted + { + get + { + return this._achivecompleted; + } + } + + [ProtoMember(7, IsRequired = false, Name = "task_refreshtime", DataFormat = DataFormat.Default)] + public string task_refreshtime + { + get + { + return this._task_refreshtime ?? ""; + } + set + { + this._task_refreshtime = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool task_refreshtimeSpecified + { + get + { + return this._task_refreshtime != null; + } + set + { + bool flag = value == (this._task_refreshtime == null); + if (flag) + { + this._task_refreshtime = (value ? this.task_refreshtime : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _exp; + + private readonly List _taskrecord = new List(); + + private readonly List _taskcompleted = new List(); + + private readonly List _achiverecord = new List(); + + private readonly List _achivecompleted = new List(); + + private string _task_refreshtime; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializetask_refreshtime() + { + return this.task_refreshtimeSpecified; + } + + private void Resettask_refreshtime() + { + this.task_refreshtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs.meta new file mode 100644 index 00000000..e9dbaa1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonGuildTaskInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69d6a6a247f75134b92f2bf5254480c0 +timeCreated: 1611403887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoArg.cs new file mode 100644 index 00000000..ff2e08ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonTopInfoArg")] + [Serializable] + public class GetDragonTopInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoArg.cs.meta new file mode 100644 index 00000000..e071ec2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1fed6eb570c436418435edc5554afea +timeCreated: 1611404255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoRes.cs new file mode 100644 index 00000000..7bcf59a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetDragonTopInfoRes")] + [Serializable] + public class GetDragonTopInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, Name = "dragonInfo", DataFormat = DataFormat.Default)] + public List dragonInfo + { + get + { + return this._dragonInfo; + } + } + + private ErrorCode? _errorCode; + + private readonly List _dragonInfo = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoRes.cs.meta new file mode 100644 index 00000000..255a9311 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetDragonTopInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54095a2dc83c1aa44a9bf7945f98dccc +timeCreated: 1611403713 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs new file mode 100644 index 00000000..4ad1cab8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetEnhanceAttrArg")] + [Serializable] + public class GetEnhanceAttrArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "prof", DataFormat = DataFormat.TwosComplement)] + public uint prof + { + get + { + return this._prof ?? 0u; + } + set + { + this._prof = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profSpecified + { + get + { + return this._prof != null; + } + set + { + bool flag = value == (this._prof == null); + if (flag) + { + this._prof = (value ? new uint?(this.prof) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "equippos", DataFormat = DataFormat.TwosComplement)] + public uint equippos + { + get + { + return this._equippos ?? 0u; + } + set + { + this._equippos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool equipposSpecified + { + get + { + return this._equippos != null; + } + set + { + bool flag = value == (this._equippos == null); + if (flag) + { + this._equippos = (value ? new uint?(this.equippos) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "enhancelevel", DataFormat = DataFormat.TwosComplement)] + public uint enhancelevel + { + get + { + return this._enhancelevel ?? 0u; + } + set + { + this._enhancelevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enhancelevelSpecified + { + get + { + return this._enhancelevel != null; + } + set + { + bool flag = value == (this._enhancelevel == null); + if (flag) + { + this._enhancelevel = (value ? new uint?(this.enhancelevel) : null); + } + } + } + + private uint? _prof; + + private uint? _equippos; + + private uint? _enhancelevel; + + private IExtension extensionObject; + + private bool ShouldSerializeprof() + { + return this.profSpecified; + } + + private void Resetprof() + { + this.profSpecified = false; + } + + private bool ShouldSerializeequippos() + { + return this.equipposSpecified; + } + + private void Resetequippos() + { + this.equipposSpecified = false; + } + + private bool ShouldSerializeenhancelevel() + { + return this.enhancelevelSpecified; + } + + private void Resetenhancelevel() + { + this.enhancelevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs.meta new file mode 100644 index 00000000..47be65f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58a04a54568c1f849a2f9deec424c39f +timeCreated: 1611403758 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs new file mode 100644 index 00000000..626cf1e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetEnhanceAttrRes")] + [Serializable] + public class GetEnhanceAttrRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isEnd", DataFormat = DataFormat.Default)] + public bool isEnd + { + get + { + return this._isEnd ?? false; + } + set + { + this._isEnd = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isEndSpecified + { + get + { + return this._isEnd != null; + } + set + { + bool flag = value == (this._isEnd == null); + if (flag) + { + this._isEnd = (value ? new bool?(this.isEnd) : null); + } + } + } + + [ProtoMember(2, Name = "attrs", DataFormat = DataFormat.Default)] + public List attrs + { + get + { + return this._attrs; + } + } + + private bool? _isEnd; + + private readonly List _attrs = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeisEnd() + { + return this.isEndSpecified; + } + + private void ResetisEnd() + { + this.isEndSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs.meta new file mode 100644 index 00000000..07b09ae3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetEnhanceAttrRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5bbb9f169c3d6fb47a6f7daaee8f9463 +timeCreated: 1611403799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardArg.cs new file mode 100644 index 00000000..093df9e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFirstPassRewardArg")] + [Serializable] + public class GetFirstPassRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "firstPassID", DataFormat = DataFormat.TwosComplement)] + public int firstPassID + { + get + { + return this._firstPassID ?? 0; + } + set + { + this._firstPassID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstPassIDSpecified + { + get + { + return this._firstPassID != null; + } + set + { + bool flag = value == (this._firstPassID == null); + if (flag) + { + this._firstPassID = (value ? new int?(this.firstPassID) : null); + } + } + } + + private int? _firstPassID; + + private IExtension extensionObject; + + private bool ShouldSerializefirstPassID() + { + return this.firstPassIDSpecified; + } + + private void ResetfirstPassID() + { + this.firstPassIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardArg.cs.meta new file mode 100644 index 00000000..116eb3f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24d663127601b7d4a8a190fecb28c510 +timeCreated: 1611403462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardRes.cs new file mode 100644 index 00000000..eceb7670 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFirstPassRewardRes")] + [Serializable] + public class GetFirstPassRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardRes.cs.meta new file mode 100644 index 00000000..00b5f433 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFirstPassRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ac66be03df217f4da8edf5ccc4ad4d2 +timeCreated: 1611403165 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardArg.cs new file mode 100644 index 00000000..0ebd27ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerActivityRewardArg")] + [Serializable] + public class GetFlowerActivityRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardArg.cs.meta new file mode 100644 index 00000000..442f0660 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e48fcdb966f064b49ba186ad9ca0baa6 +timeCreated: 1611404738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardRes.cs new file mode 100644 index 00000000..00089792 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerActivityRewardRes")] + [Serializable] + public class GetFlowerActivityRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardRes.cs.meta new file mode 100644 index 00000000..9b9c8c04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerActivityRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8dec9d82f559d2043826b6e49339f1ca +timeCreated: 1611404106 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerArg.cs new file mode 100644 index 00000000..511b9dda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerArg")] + [Serializable] + public class GetFlowerArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerArg.cs.meta new file mode 100644 index 00000000..3d23842e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91091dd309c98734fba0a8cf6528b14b +timeCreated: 1611404141 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeArg.cs new file mode 100644 index 00000000..5ff521ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerLeftTimeArg")] + [Serializable] + public class GetFlowerLeftTimeArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeArg.cs.meta new file mode 100644 index 00000000..b3e56c03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a6e49c90d57756479d33abbcfe428ec +timeCreated: 1611403596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs new file mode 100644 index 00000000..569c19ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerLeftTimeRes")] + [Serializable] + public class GetFlowerLeftTimeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public int leftTime + { + get + { + return this._leftTime ?? 0; + } + set + { + this._leftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new int?(this.leftTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "canGet", DataFormat = DataFormat.Default)] + public bool canGet + { + get + { + return this._canGet ?? false; + } + set + { + this._canGet = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canGetSpecified + { + get + { + return this._canGet != null; + } + set + { + bool flag = value == (this._canGet == null); + if (flag) + { + this._canGet = (value ? new bool?(this.canGet) : null); + } + } + } + + private ErrorCode? _errorCode; + + private int? _leftTime; + + private bool? _canGet; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + private bool ShouldSerializecanGet() + { + return this.canGetSpecified; + } + + private void ResetcanGet() + { + this.canGetSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs.meta new file mode 100644 index 00000000..f88a22d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerLeftTimeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f8a19a8a1aae084aa291a2c65d3e9d7 +timeCreated: 1611403209 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRes.cs new file mode 100644 index 00000000..f9d5df8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerRes")] + [Serializable] + public class GetFlowerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public int leftTime + { + get + { + return this._leftTime ?? 0; + } + set + { + this._leftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new int?(this.leftTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "canGet", DataFormat = DataFormat.Default)] + public bool canGet + { + get + { + return this._canGet ?? false; + } + set + { + this._canGet = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canGetSpecified + { + get + { + return this._canGet != null; + } + set + { + bool flag = value == (this._canGet == null); + if (flag) + { + this._canGet = (value ? new bool?(this.canGet) : null); + } + } + } + + private ErrorCode? _errorCode; + + private int? _leftTime; + + private bool? _canGet; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + private bool ShouldSerializecanGet() + { + return this.canGetSpecified; + } + + private void ResetcanGet() + { + this.canGetSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRes.cs.meta new file mode 100644 index 00000000..555c5474 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 012f277a8e2878f488bc6314311ae3dc +timeCreated: 1611402952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs new file mode 100644 index 00000000..d6f7370c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerRewardArg")] + [Serializable] + public class GetFlowerRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs.meta new file mode 100644 index 00000000..256176f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b2a2b48a3b54af4abe56e996569920a +timeCreated: 1611403597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListArg.cs new file mode 100644 index 00000000..d0765328 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerRewardListArg")] + [Serializable] + public class GetFlowerRewardListArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListArg.cs.meta new file mode 100644 index 00000000..b4824554 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: baecf1e75ceb8b44baef48744828ae68 +timeCreated: 1611404439 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListRes.cs new file mode 100644 index 00000000..b7726d47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerRewardListRes")] + [Serializable] + public class GetFlowerRewardListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, Name = "briefList", DataFormat = DataFormat.Default)] + public List briefList + { + get + { + return this._briefList; + } + } + + [ProtoMember(3, IsRequired = false, Name = "canGetReward", DataFormat = DataFormat.Default)] + public bool canGetReward + { + get + { + return this._canGetReward ?? false; + } + set + { + this._canGetReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canGetRewardSpecified + { + get + { + return this._canGetReward != null; + } + set + { + bool flag = value == (this._canGetReward == null); + if (flag) + { + this._canGetReward = (value ? new bool?(this.canGetReward) : null); + } + } + } + + private ErrorCode? _errorCode; + + private readonly List _briefList = new List(); + + private bool? _canGetReward; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + private bool ShouldSerializecanGetReward() + { + return this.canGetRewardSpecified; + } + + private void ResetcanGetReward() + { + this.canGetRewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListRes.cs.meta new file mode 100644 index 00000000..eead51a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a8053e322a7bc5141b1d88bfdf4fdc6c +timeCreated: 1611404294 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs new file mode 100644 index 00000000..164424dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetFlowerRewardRes")] + [Serializable] + public class GetFlowerRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + private ErrorCode? _errorCode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs.meta new file mode 100644 index 00000000..1818cb72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetFlowerRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c2564813f0e46c41ab79d1eaa072d0c +timeCreated: 1611403894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsArg.cs new file mode 100644 index 00000000..ca1e7673 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGoddessTrialRewardsArg")] + [Serializable] + public class GetGoddessTrialRewardsArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsArg.cs.meta new file mode 100644 index 00000000..e39b530d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 764ead00141bfc54499fb556002ee8d0 +timeCreated: 1611403949 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsRes.cs new file mode 100644 index 00000000..b18d9470 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGoddessTrialRewardsRes")] + [Serializable] + public class GetGoddessTrialRewardsRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftGoddessReward", DataFormat = DataFormat.TwosComplement)] + public uint leftGoddessReward + { + get + { + return this._leftGoddessReward ?? 0u; + } + set + { + this._leftGoddessReward = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftGoddessRewardSpecified + { + get + { + return this._leftGoddessReward != null; + } + set + { + bool flag = value == (this._leftGoddessReward == null); + if (flag) + { + this._leftGoddessReward = (value ? new uint?(this.leftGoddessReward) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _leftGoddessReward; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeleftGoddessReward() + { + return this.leftGoddessRewardSpecified; + } + + private void ResetleftGoddessReward() + { + this.leftGoddessRewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsRes.cs.meta new file mode 100644 index 00000000..88762553 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGoddessTrialRewardsRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71500e7d8c5718b4ab50fc15f23958ed +timeCreated: 1611403934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeArg.cs new file mode 100644 index 00000000..5a13db9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGrowthFundTimeArg")] + [Serializable] + public class GetGrowthFundTimeArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeArg.cs.meta new file mode 100644 index 00000000..a03158a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 791f41cdef927fb4db0331fe50b70eb5 +timeCreated: 1611403983 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeRes.cs new file mode 100644 index 00000000..9002e840 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGrowthFundTimeRes")] + [Serializable] + public class GetGrowthFundTimeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "err", DataFormat = DataFormat.TwosComplement)] + public ErrorCode err + { + get + { + return this._err ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._err = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errSpecified + { + get + { + return this._err != null; + } + set + { + bool flag = value == (this._err == null); + if (flag) + { + this._err = (value ? new ErrorCode?(this.err) : null); + } + } + } + + private uint? _lefttime; + + private ErrorCode? _err; + + private IExtension extensionObject; + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + private bool ShouldSerializeerr() + { + return this.errSpecified; + } + + private void Reseterr() + { + this.errSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeRes.cs.meta new file mode 100644 index 00000000..f1f5852a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGrowthFundTimeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a1905e3f255cdf49a92e8ba7f9352df +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoReq.cs new file mode 100644 index 00000000..d21f5a10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBindInfoReq")] + [Serializable] + public class GetGuildBindInfoReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoReq.cs.meta new file mode 100644 index 00000000..a121cd9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 275d95269f515434ca81495ee9e71f27 +timeCreated: 1611403471 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoRes.cs new file mode 100644 index 00000000..95a48b42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBindInfoRes")] + [Serializable] + public class GetGuildBindInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bind_status", DataFormat = DataFormat.TwosComplement)] + public GuildBindStatus bind_status + { + get + { + return this._bind_status ?? GuildBindStatus.GBS_NotBind; + } + set + { + this._bind_status = new GuildBindStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bind_statusSpecified + { + get + { + return this._bind_status != null; + } + set + { + bool flag = value == (this._bind_status == null); + if (flag) + { + this._bind_status = (value ? new GuildBindStatus?(this.bind_status) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "group_name", DataFormat = DataFormat.Default)] + public string group_name + { + get + { + return this._group_name ?? ""; + } + set + { + this._group_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group_nameSpecified + { + get + { + return this._group_name != null; + } + set + { + bool flag = value == (this._group_name == null); + if (flag) + { + this._group_name = (value ? this.group_name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private GuildBindStatus? _bind_status; + + private string _group_name; + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializebind_status() + { + return this.bind_statusSpecified; + } + + private void Resetbind_status() + { + this.bind_statusSpecified = false; + } + + private bool ShouldSerializegroup_name() + { + return this.group_nameSpecified; + } + + private void Resetgroup_name() + { + this.group_nameSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoRes.cs.meta new file mode 100644 index 00000000..40efc051 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBindInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d7d963f77d763a14ca044d7fc93db0b6 +timeCreated: 1611404637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs new file mode 100644 index 00000000..001e8560 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusDetailInfoArg")] + [Serializable] + public class GetGuildBonusDetailInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusID", DataFormat = DataFormat.TwosComplement)] + public uint bonusID + { + get + { + return this._bonusID ?? 0u; + } + set + { + this._bonusID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusIDSpecified + { + get + { + return this._bonusID != null; + } + set + { + bool flag = value == (this._bonusID == null); + if (flag) + { + this._bonusID = (value ? new uint?(this.bonusID) : null); + } + } + } + + private uint? _bonusID; + + private IExtension extensionObject; + + private bool ShouldSerializebonusID() + { + return this.bonusIDSpecified; + } + + private void ResetbonusID() + { + this.bonusIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs.meta new file mode 100644 index 00000000..2ef45223 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ee5c15e4bae99f418d31ee566ea3d7f +timeCreated: 1611403609 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoResult.cs new file mode 100644 index 00000000..09032bfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoResult.cs @@ -0,0 +1,348 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusDetailInfoResult")] + [Serializable] + public class GetGuildBonusDetailInfoResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GuildBonusAppear bonusInfo + { + get + { + return this._bonusInfo; + } + set + { + this._bonusInfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "content", DataFormat = DataFormat.Default)] + public string content + { + get + { + return this._content ?? ""; + } + set + { + this._content = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contentSpecified + { + get + { + return this._content != null; + } + set + { + bool flag = value == (this._content == null); + if (flag) + { + this._content = (value ? this.content : null); + } + } + } + + [ProtoMember(3, Name = "getBonusRoleList", DataFormat = DataFormat.Default)] + public List getBonusRoleList + { + get + { + return this._getBonusRoleList; + } + } + + [ProtoMember(4, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "bonusNum", DataFormat = DataFormat.TwosComplement)] + public uint bonusNum + { + get + { + return this._bonusNum ?? 0u; + } + set + { + this._bonusNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusNumSpecified + { + get + { + return this._bonusNum != null; + } + set + { + bool flag = value == (this._bonusNum == null); + if (flag) + { + this._bonusNum = (value ? new uint?(this.bonusNum) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "bonusContentType", DataFormat = DataFormat.TwosComplement)] + public uint bonusContentType + { + get + { + return this._bonusContentType ?? 0u; + } + set + { + this._bonusContentType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusContentTypeSpecified + { + get + { + return this._bonusContentType != null; + } + set + { + bool flag = value == (this._bonusContentType == null); + if (flag) + { + this._bonusContentType = (value ? new uint?(this.bonusContentType) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "leaderID", DataFormat = DataFormat.TwosComplement)] + public ulong leaderID + { + get + { + return this._leaderID ?? 0UL; + } + set + { + this._leaderID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderIDSpecified + { + get + { + return this._leaderID != null; + } + set + { + bool flag = value == (this._leaderID == null); + if (flag) + { + this._leaderID = (value ? new ulong?(this.leaderID) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "luckestID", DataFormat = DataFormat.TwosComplement)] + public ulong luckestID + { + get + { + return this._luckestID ?? 0UL; + } + set + { + this._luckestID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool luckestIDSpecified + { + get + { + return this._luckestID != null; + } + set + { + bool flag = value == (this._luckestID == null); + if (flag) + { + this._luckestID = (value ? new ulong?(this.luckestID) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "canThank", DataFormat = DataFormat.Default)] + public bool canThank + { + get + { + return this._canThank ?? false; + } + set + { + this._canThank = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canThankSpecified + { + get + { + return this._canThank != null; + } + set + { + bool flag = value == (this._canThank == null); + if (flag) + { + this._canThank = (value ? new bool?(this.canThank) : null); + } + } + } + + private GuildBonusAppear _bonusInfo = null; + + private string _content; + + private readonly List _getBonusRoleList = new List(); + + private ErrorCode? _errorcode; + + private uint? _bonusNum; + + private uint? _bonusContentType; + + private ulong? _leaderID; + + private ulong? _luckestID; + + private bool? _canThank; + + private IExtension extensionObject; + + private bool ShouldSerializecontent() + { + return this.contentSpecified; + } + + private void Resetcontent() + { + this.contentSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializebonusNum() + { + return this.bonusNumSpecified; + } + + private void ResetbonusNum() + { + this.bonusNumSpecified = false; + } + + private bool ShouldSerializebonusContentType() + { + return this.bonusContentTypeSpecified; + } + + private void ResetbonusContentType() + { + this.bonusContentTypeSpecified = false; + } + + private bool ShouldSerializeleaderID() + { + return this.leaderIDSpecified; + } + + private void ResetleaderID() + { + this.leaderIDSpecified = false; + } + + private bool ShouldSerializeluckestID() + { + return this.luckestIDSpecified; + } + + private void ResetluckestID() + { + this.luckestIDSpecified = false; + } + + private bool ShouldSerializecanThank() + { + return this.canThankSpecified; + } + + private void ResetcanThank() + { + this.canThankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoResult.cs.meta new file mode 100644 index 00000000..71ea0de3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusDetailInfoResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32f609c21937c50478c73cf9176a4dbf +timeCreated: 1611403550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs new file mode 100644 index 00000000..a78e7f35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusInfo")] + [Serializable] + public class GetGuildBonusInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "getNum", DataFormat = DataFormat.TwosComplement)] + public uint getNum + { + get + { + return this._getNum ?? 0u; + } + set + { + this._getNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getNumSpecified + { + get + { + return this._getNum != null; + } + set + { + bool flag = value == (this._getNum == null); + if (flag) + { + this._getNum = (value ? new uint?(this.getNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "getTime", DataFormat = DataFormat.TwosComplement)] + public uint getTime + { + get + { + return this._getTime ?? 0u; + } + set + { + this._getTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getTimeSpecified + { + get + { + return this._getTime != null; + } + set + { + bool flag = value == (this._getTime == null); + if (flag) + { + this._getTime = (value ? new uint?(this.getTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "canThank", DataFormat = DataFormat.Default)] + public bool canThank + { + get + { + return this._canThank ?? false; + } + set + { + this._canThank = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canThankSpecified + { + get + { + return this._canThank != null; + } + set + { + bool flag = value == (this._canThank == null); + if (flag) + { + this._canThank = (value ? new bool?(this.canThank) : null); + } + } + } + + private ulong? _roleID; + + private string _roleName; + + private uint? _getNum; + + private uint? _getTime; + + private bool? _canThank; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + private bool ShouldSerializegetNum() + { + return this.getNumSpecified; + } + + private void ResetgetNum() + { + this.getNumSpecified = false; + } + + private bool ShouldSerializegetTime() + { + return this.getTimeSpecified; + } + + private void ResetgetTime() + { + this.getTimeSpecified = false; + } + + private bool ShouldSerializecanThank() + { + return this.canThankSpecified; + } + + private void ResetcanThank() + { + this.canThankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs.meta new file mode 100644 index 00000000..60b31aa0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2c6b13a560f4324b9e9082b5e2d8296 +timeCreated: 1611404596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftArg.cs new file mode 100644 index 00000000..18def1da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusLeftArg")] + [Serializable] + public class GetGuildBonusLeftArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftArg.cs.meta new file mode 100644 index 00000000..81dcfb2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d8509a8422bcf647b0b2c91c1e4e695 +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs new file mode 100644 index 00000000..24fe048d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusLeftRes")] + [Serializable] + public class GetGuildBonusLeftRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, Name = "bonusInfos", DataFormat = DataFormat.Default)] + public List bonusInfos + { + get + { + return this._bonusInfos; + } + } + + private ErrorCode? _errorCode; + + private readonly List _bonusInfos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs.meta new file mode 100644 index 00000000..9e0b017b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa79aaae2a5bb154d9477eef4ed84165 +timeCreated: 1611404303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListArg.cs new file mode 100644 index 00000000..e23193ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusListArg")] + [Serializable] + public class GetGuildBonusListArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListArg.cs.meta new file mode 100644 index 00000000..ecc70656 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: facb1924509dad3459d6a5bb71eeb8df +timeCreated: 1611404928 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListResult.cs new file mode 100644 index 00000000..4817f6b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListResult.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusListResult")] + [Serializable] + public class GetGuildBonusListResult : IExtensible + { + [ProtoMember(1, Name = "bonusList", DataFormat = DataFormat.Default)] + public List bonusList + { + get + { + return this._bonusList; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _bonusList = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListResult.cs.meta new file mode 100644 index 00000000..6f986783 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusListResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d23e9be5929d98428525a933738dacb +timeCreated: 1611403999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardArg.cs new file mode 100644 index 00000000..beb6334e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusRewardArg")] + [Serializable] + public class GetGuildBonusRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusID", DataFormat = DataFormat.TwosComplement)] + public uint bonusID + { + get + { + return this._bonusID ?? 0u; + } + set + { + this._bonusID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusIDSpecified + { + get + { + return this._bonusID != null; + } + set + { + bool flag = value == (this._bonusID == null); + if (flag) + { + this._bonusID = (value ? new uint?(this.bonusID) : null); + } + } + } + + private uint? _bonusID; + + private IExtension extensionObject; + + private bool ShouldSerializebonusID() + { + return this.bonusIDSpecified; + } + + private void ResetbonusID() + { + this.bonusIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardArg.cs.meta new file mode 100644 index 00000000..97e977be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3644038c47ca9942b5438febd7f8ef2 +timeCreated: 1611404497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardResult.cs new file mode 100644 index 00000000..a430bb2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardResult.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusRewardResult")] + [Serializable] + public class GetGuildBonusRewardResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "getValue", DataFormat = DataFormat.TwosComplement)] + public uint getValue + { + get + { + return this._getValue ?? 0u; + } + set + { + this._getValue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getValueSpecified + { + get + { + return this._getValue != null; + } + set + { + bool flag = value == (this._getValue == null); + if (flag) + { + this._getValue = (value ? new uint?(this.getValue) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "bonusType", DataFormat = DataFormat.TwosComplement)] + public int bonusType + { + get + { + return this._bonusType ?? 0; + } + set + { + this._bonusType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusTypeSpecified + { + get + { + return this._bonusType != null; + } + set + { + bool flag = value == (this._bonusType == null); + if (flag) + { + this._bonusType = (value ? new int?(this.bonusType) : null); + } + } + } + + private uint? _getValue; + + private ErrorCode? _errorcode; + + private int? _bonusType; + + private IExtension extensionObject; + + private bool ShouldSerializegetValue() + { + return this.getValueSpecified; + } + + private void ResetgetValue() + { + this.getValueSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializebonusType() + { + return this.bonusTypeSpecified; + } + + private void ResetbonusType() + { + this.bonusTypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardResult.cs.meta new file mode 100644 index 00000000..7944a8b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusRewardResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0202b4d2d78d45d4f8d40090f96f54e0 +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListArg.cs new file mode 100644 index 00000000..aca96c01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusSendListArg")] + [Serializable] + public class GetGuildBonusSendListArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListArg.cs.meta new file mode 100644 index 00000000..030e6e2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb6870569ee9e05459493c3d6acb931f +timeCreated: 1611404930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListRes.cs new file mode 100644 index 00000000..2b1c8335 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildBonusSendListRes")] + [Serializable] + public class GetGuildBonusSendListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "sendList", DataFormat = DataFormat.Default)] + public List sendList + { + get + { + return this._sendList; + } + } + + private ErrorCode? _error; + + private readonly List _sendList = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListRes.cs.meta new file mode 100644 index 00000000..8b05a934 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusSendListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c4716b088e556046a7337503270e140 +timeCreated: 1611403996 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemArg.cs new file mode 100644 index 00000000..8614261b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCamPartyRandItemArg")] + [Serializable] + public class GetGuildCamPartyRandItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "query_type", DataFormat = DataFormat.TwosComplement)] + public uint query_type + { + get + { + return this._query_type ?? 0u; + } + set + { + this._query_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool query_typeSpecified + { + get + { + return this._query_type != null; + } + set + { + bool flag = value == (this._query_type == null); + if (flag) + { + this._query_type = (value ? new uint?(this.query_type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "npc_id", DataFormat = DataFormat.TwosComplement)] + public uint npc_id + { + get + { + return this._npc_id ?? 0u; + } + set + { + this._npc_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool npc_idSpecified + { + get + { + return this._npc_id != null; + } + set + { + bool flag = value == (this._npc_id == null); + if (flag) + { + this._npc_id = (value ? new uint?(this.npc_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)] + public uint sprite_id + { + get + { + return this._sprite_id ?? 0u; + } + set + { + this._sprite_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sprite_idSpecified + { + get + { + return this._sprite_id != null; + } + set + { + bool flag = value == (this._sprite_id == null); + if (flag) + { + this._sprite_id = (value ? new uint?(this.sprite_id) : null); + } + } + } + + private uint? _query_type; + + private uint? _npc_id; + + private uint? _sprite_id; + + private IExtension extensionObject; + + private bool ShouldSerializequery_type() + { + return this.query_typeSpecified; + } + + private void Resetquery_type() + { + this.query_typeSpecified = false; + } + + private bool ShouldSerializenpc_id() + { + return this.npc_idSpecified; + } + + private void Resetnpc_id() + { + this.npc_idSpecified = false; + } + + private bool ShouldSerializesprite_id() + { + return this.sprite_idSpecified; + } + + private void Resetsprite_id() + { + this.sprite_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemArg.cs.meta new file mode 100644 index 00000000..8fde6cb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81663723e3087d34887dc66803c84fec +timeCreated: 1611404037 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemRes.cs new file mode 100644 index 00000000..7c30c412 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCamPartyRandItemRes")] + [Serializable] + public class GetGuildCamPartyRandItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "random_items", DataFormat = DataFormat.Default)] + public List random_items + { + get + { + return this._random_items; + } + } + + private ErrorCode? _result; + + private readonly List _random_items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemRes.cs.meta new file mode 100644 index 00000000..47e142df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCamPartyRandItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80bb2a882d94dc24f90855d60559d9bd +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoArg.cs new file mode 100644 index 00000000..ea4c0c51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCampPartyExchangeInfoArg")] + [Serializable] + public class GetGuildCampPartyExchangeInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoArg.cs.meta new file mode 100644 index 00000000..1b1fa150 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f4806df3d7cf41428277e49bccbfd2c +timeCreated: 1611403909 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoRes.cs new file mode 100644 index 00000000..c9d9578f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCampPartyExchangeInfoRes")] + [Serializable] + public class GetGuildCampPartyExchangeInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + private ErrorCode? _result; + + private readonly List _infos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoRes.cs.meta new file mode 100644 index 00000000..be2813f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyExchangeInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31bd9278c49306b4eaedcb42f009b67a +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardArg.cs new file mode 100644 index 00000000..8bba2467 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCampPartyRewardArg")] + [Serializable] + public class GetGuildCampPartyRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reward_id", DataFormat = DataFormat.TwosComplement)] + public uint reward_id + { + get + { + return this._reward_id ?? 0u; + } + set + { + this._reward_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reward_idSpecified + { + get + { + return this._reward_id != null; + } + set + { + bool flag = value == (this._reward_id == null); + if (flag) + { + this._reward_id = (value ? new uint?(this.reward_id) : null); + } + } + } + + private uint? _reward_id; + + private IExtension extensionObject; + + private bool ShouldSerializereward_id() + { + return this.reward_idSpecified; + } + + private void Resetreward_id() + { + this.reward_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardArg.cs.meta new file mode 100644 index 00000000..9e0d633d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: edd6a757a1755614cbd222dd441ad56e +timeCreated: 1611404793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardRes.cs new file mode 100644 index 00000000..e359f965 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCampPartyRewardRes")] + [Serializable] + public class GetGuildCampPartyRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private ErrorCode? _result; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardRes.cs.meta new file mode 100644 index 00000000..1918c587 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCampPartyRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca25d61dfad454f41966c0a370c036f4 +timeCreated: 1611404540 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxArg.cs new file mode 100644 index 00000000..25009f3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCheckinBoxArg")] + [Serializable] + public class GetGuildCheckinBoxArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxArg.cs.meta new file mode 100644 index 00000000..336d9259 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e51ecb5f769598e4e99de1788d8434a3 +timeCreated: 1611404742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxRes.cs new file mode 100644 index 00000000..a8e519cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCheckinBoxRes")] + [Serializable] + public class GetGuildCheckinBoxRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxRes.cs.meta new file mode 100644 index 00000000..ad847d0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinBoxRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8798438967a3e9b4096cb2f5315c2834 +timeCreated: 1611404080 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsArg.cs new file mode 100644 index 00000000..9a7896b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCheckinRecordsArg")] + [Serializable] + public class GetGuildCheckinRecordsArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsArg.cs.meta new file mode 100644 index 00000000..c6631435 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f245be08a4ca26449b1a6346fe30ab9e +timeCreated: 1611404842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsRes.cs new file mode 100644 index 00000000..53c7e6f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsRes.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildCheckinRecordsRes")] + [Serializable] + public class GetGuildCheckinRecordsRes : IExtensible + { + [ProtoMember(1, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + [ProtoMember(2, Name = "name", DataFormat = DataFormat.Default)] + public List name + { + get + { + return this._name; + } + } + + [ProtoMember(3, Name = "type", DataFormat = DataFormat.TwosComplement)] + public List type + { + get + { + return this._type; + } + } + + [ProtoMember(4, Name = "timestamp", DataFormat = DataFormat.TwosComplement)] + public List timestamp + { + get + { + return this._timestamp; + } + } + + [ProtoMember(5, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _roleid = new List(); + + private readonly List _name = new List(); + + private readonly List _type = new List(); + + private readonly List _timestamp = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsRes.cs.meta new file mode 100644 index 00000000..6747190a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildCheckinRecordsRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 263a722f81841a04c82ab6334c545b4c +timeCreated: 1611403467 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoArg.cs new file mode 100644 index 00000000..bc1db679 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildDonateInfoArg")] + [Serializable] + public class GetGuildDonateInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoArg.cs.meta new file mode 100644 index 00000000..618ce114 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c4f4b0d994fdf34bbf1e2e26a955e16 +timeCreated: 1611404231 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoRes.cs new file mode 100644 index 00000000..66c769f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildDonateInfoRes")] + [Serializable] + public class GetGuildDonateInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "info", DataFormat = DataFormat.Default)] + public List info + { + get + { + return this._info; + } + } + + [ProtoMember(3, Name = "rankitem", DataFormat = DataFormat.Default)] + public List rankitem + { + get + { + return this._rankitem; + } + } + + [ProtoMember(4, IsRequired = false, Name = "donatenum", DataFormat = DataFormat.TwosComplement)] + public uint donatenum + { + get + { + return this._donatenum ?? 0u; + } + set + { + this._donatenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool donatenumSpecified + { + get + { + return this._donatenum != null; + } + set + { + bool flag = value == (this._donatenum == null); + if (flag) + { + this._donatenum = (value ? new uint?(this.donatenum) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _info = new List(); + + private readonly List _rankitem = new List(); + + private uint? _donatenum; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializedonatenum() + { + return this.donatenumSpecified; + } + + private void Resetdonatenum() + { + this.donatenumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoRes.cs.meta new file mode 100644 index 00000000..fbb4918e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildDonateInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d55b2b3abd4d368479f11b0ee4425501 +timeCreated: 1611404627 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoArg.cs new file mode 100644 index 00000000..7f938e31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildIntegralInfoArg")] + [Serializable] + public class GetGuildIntegralInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoArg.cs.meta new file mode 100644 index 00000000..f9575cc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 270bee33e0582f44990f0ca79f85e8b7 +timeCreated: 1611403469 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoRes.cs new file mode 100644 index 00000000..2def99fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildIntegralInfoRes")] + [Serializable] + public class GetGuildIntegralInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "battletype", DataFormat = DataFormat.TwosComplement)] + public GuildArenaType battletype + { + get + { + return this._battletype ?? GuildArenaType.battleone; + } + set + { + this._battletype = new GuildArenaType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool battletypeSpecified + { + get + { + return this._battletype != null; + } + set + { + bool flag = value == (this._battletype == null); + if (flag) + { + this._battletype = (value ? new GuildArenaType?(this.battletype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "applytime", DataFormat = DataFormat.TwosComplement)] + public uint applytime + { + get + { + return this._applytime ?? 0u; + } + set + { + this._applytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool applytimeSpecified + { + get + { + return this._applytime != null; + } + set + { + bool flag = value == (this._applytime == null); + if (flag) + { + this._applytime = (value ? new uint?(this.applytime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isapply", DataFormat = DataFormat.Default)] + public bool isapply + { + get + { + return this._isapply ?? false; + } + set + { + this._isapply = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isapplySpecified + { + get + { + return this._isapply != null; + } + set + { + bool flag = value == (this._isapply == null); + if (flag) + { + this._isapply = (value ? new bool?(this.isapply) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "curturn", DataFormat = DataFormat.TwosComplement)] + public uint curturn + { + get + { + return this._curturn ?? 0u; + } + set + { + this._curturn = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curturnSpecified + { + get + { + return this._curturn != null; + } + set + { + bool flag = value == (this._curturn == null); + if (flag) + { + this._curturn = (value ? new uint?(this.curturn) : null); + } + } + } + + private GuildArenaType? _battletype; + + private uint? _applytime; + + private bool? _isapply; + + private uint? _curturn; + + private IExtension extensionObject; + + private bool ShouldSerializebattletype() + { + return this.battletypeSpecified; + } + + private void Resetbattletype() + { + this.battletypeSpecified = false; + } + + private bool ShouldSerializeapplytime() + { + return this.applytimeSpecified; + } + + private void Resetapplytime() + { + this.applytimeSpecified = false; + } + + private bool ShouldSerializeisapply() + { + return this.isapplySpecified; + } + + private void Resetisapply() + { + this.isapplySpecified = false; + } + + private bool ShouldSerializecurturn() + { + return this.curturnSpecified; + } + + private void Resetcurturn() + { + this.curturnSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoRes.cs.meta new file mode 100644 index 00000000..fd051fbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildIntegralInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c216bc85225a883449fc39675edaf4d2 +timeCreated: 1611404493 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoArg.cs new file mode 100644 index 00000000..012febad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildPartyReceiveInfoArg")] + [Serializable] + public class GetGuildPartyReceiveInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoArg.cs.meta new file mode 100644 index 00000000..2c1ddc09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d32d51c47c74b744afd8caaad4a7e84 +timeCreated: 1611404235 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoRes.cs new file mode 100644 index 00000000..7636fce3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildPartyReceiveInfoRes")] + [Serializable] + public class GetGuildPartyReceiveInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "receives", DataFormat = DataFormat.Default)] + public List receives + { + get + { + return this._receives; + } + } + + private ErrorCode? _result; + + private readonly List _receives = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoRes.cs.meta new file mode 100644 index 00000000..c73d4bb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildPartyReceiveInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ec9e05e3aeca754f82f438d3a66f49c +timeCreated: 1611403366 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataReq.cs new file mode 100644 index 00000000..e5eae026 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataReq.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildQADataReq")] + [Serializable] + public class GetGuildQADataReq : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataReq.cs.meta new file mode 100644 index 00000000..4fbd4793 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8aa7a9bf93530834487367b668929069 +timeCreated: 1611404092 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataRes.cs new file mode 100644 index 00000000..094f4d94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildQADataRes")] + [Serializable] + public class GetGuildQADataRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "status", DataFormat = DataFormat.TwosComplement)] + public uint status + { + get + { + return this._status ?? 0u; + } + set + { + this._status = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statusSpecified + { + get + { + return this._status != null; + } + set + { + bool flag = value == (this._status == null); + if (flag) + { + this._status = (value ? new uint?(this.status) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _status; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializestatus() + { + return this.statusSpecified; + } + + private void Resetstatus() + { + this.statusSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataRes.cs.meta new file mode 100644 index 00000000..1fd07f21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildQADataRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9335da4ae909f214c86658b47f295d08 +timeCreated: 1611404149 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageReward.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageReward.cs new file mode 100644 index 00000000..925002b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageReward.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildWageReward")] + [Serializable] + public class GetGuildWageReward : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageReward.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageReward.cs.meta new file mode 100644 index 00000000..c3b32268 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecfa6b02ff957ab48be91c3319814d72 +timeCreated: 1611404789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageRewardArg.cs new file mode 100644 index 00000000..2cae9927 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetGuildWageRewardArg")] + [Serializable] + public class GetGuildWageRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageRewardArg.cs.meta new file mode 100644 index 00000000..c172617f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildWageRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ce6ab72d5759634aa06c2e834773e87 +timeCreated: 1611403803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordArg.cs new file mode 100644 index 00000000..738496e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetHeroBattleGameRecordArg")] + [Serializable] + public class GetHeroBattleGameRecordArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordArg.cs.meta new file mode 100644 index 00000000..05dfc6f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc832063b79fee948ab687b6ff08c575 +timeCreated: 1611404935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordRes.cs new file mode 100644 index 00000000..99a94506 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetHeroBattleGameRecordRes")] + [Serializable] + public class GetHeroBattleGameRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "games", DataFormat = DataFormat.Default)] + public List games + { + get + { + return this._games; + } + } + + private ErrorCode? _errorcode; + + private readonly List _games = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordRes.cs.meta new file mode 100644 index 00000000..d1cdf730 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleGameRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 670761071ce32fd49a2db8344195d72a +timeCreated: 1611403856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoArg.cs new file mode 100644 index 00000000..033abf3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetHeroBattleInfoArg")] + [Serializable] + public class GetHeroBattleInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoArg.cs.meta new file mode 100644 index 00000000..133e4b5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f270c5d331213d0408463a031701c520 +timeCreated: 1611404843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoRes.cs new file mode 100644 index 00000000..88093298 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoRes.cs @@ -0,0 +1,408 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetHeroBattleInfoRes")] + [Serializable] + public class GetHeroBattleInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "havehero", DataFormat = DataFormat.TwosComplement)] + public List havehero + { + get + { + return this._havehero; + } + } + + [ProtoMember(3, Name = "weekhero", DataFormat = DataFormat.TwosComplement)] + public List weekhero + { + get + { + return this._weekhero; + } + } + + [ProtoMember(4, IsRequired = false, Name = "winthisweek", DataFormat = DataFormat.TwosComplement)] + public uint winthisweek + { + get + { + return this._winthisweek ?? 0u; + } + set + { + this._winthisweek = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winthisweekSpecified + { + get + { + return this._winthisweek != null; + } + set + { + bool flag = value == (this._winthisweek == null); + if (flag) + { + this._winthisweek = (value ? new uint?(this.winthisweek) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "totalnum", DataFormat = DataFormat.TwosComplement)] + public uint totalnum + { + get + { + return this._totalnum ?? 0u; + } + set + { + this._totalnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalnumSpecified + { + get + { + return this._totalnum != null; + } + set + { + bool flag = value == (this._totalnum == null); + if (flag) + { + this._totalnum = (value ? new uint?(this.totalnum) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "winnum", DataFormat = DataFormat.TwosComplement)] + public uint winnum + { + get + { + return this._winnum ?? 0u; + } + set + { + this._winnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winnumSpecified + { + get + { + return this._winnum != null; + } + set + { + bool flag = value == (this._winnum == null); + if (flag) + { + this._winnum = (value ? new uint?(this.winnum) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "losenum", DataFormat = DataFormat.TwosComplement)] + public uint losenum + { + get + { + return this._losenum ?? 0u; + } + set + { + this._losenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losenumSpecified + { + get + { + return this._losenum != null; + } + set + { + bool flag = value == (this._losenum == null); + if (flag) + { + this._losenum = (value ? new uint?(this.losenum) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "todaygetspcount", DataFormat = DataFormat.TwosComplement)] + public uint todaygetspcount + { + get + { + return this._todaygetspcount ?? 0u; + } + set + { + this._todaygetspcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool todaygetspcountSpecified + { + get + { + return this._todaygetspcount != null; + } + set + { + bool flag = value == (this._todaygetspcount == null); + if (flag) + { + this._todaygetspcount = (value ? new uint?(this.todaygetspcount) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "weekprize", DataFormat = DataFormat.TwosComplement)] + public uint weekprize + { + get + { + return this._weekprize ?? 0u; + } + set + { + this._weekprize = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekprizeSpecified + { + get + { + return this._weekprize != null; + } + set + { + bool flag = value == (this._weekprize == null); + if (flag) + { + this._weekprize = (value ? new uint?(this.weekprize) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "cangetprize", DataFormat = DataFormat.Default)] + public bool cangetprize + { + get + { + return this._cangetprize ?? false; + } + set + { + this._cangetprize = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cangetprizeSpecified + { + get + { + return this._cangetprize != null; + } + set + { + bool flag = value == (this._cangetprize == null); + if (flag) + { + this._cangetprize = (value ? new bool?(this.cangetprize) : null); + } + } + } + + [ProtoMember(11, Name = "experiencehero", DataFormat = DataFormat.TwosComplement)] + public List experiencehero + { + get + { + return this._experiencehero; + } + } + + [ProtoMember(12, Name = "experienceherolefttime", DataFormat = DataFormat.TwosComplement)] + public List experienceherolefttime + { + get + { + return this._experienceherolefttime; + } + } + + private ErrorCode? _errorcode; + + private readonly List _havehero = new List(); + + private readonly List _weekhero = new List(); + + private uint? _winthisweek; + + private uint? _totalnum; + + private uint? _winnum; + + private uint? _losenum; + + private uint? _todaygetspcount; + + private uint? _weekprize; + + private bool? _cangetprize; + + private readonly List _experiencehero = new List(); + + private readonly List _experienceherolefttime = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializewinthisweek() + { + return this.winthisweekSpecified; + } + + private void Resetwinthisweek() + { + this.winthisweekSpecified = false; + } + + private bool ShouldSerializetotalnum() + { + return this.totalnumSpecified; + } + + private void Resettotalnum() + { + this.totalnumSpecified = false; + } + + private bool ShouldSerializewinnum() + { + return this.winnumSpecified; + } + + private void Resetwinnum() + { + this.winnumSpecified = false; + } + + private bool ShouldSerializelosenum() + { + return this.losenumSpecified; + } + + private void Resetlosenum() + { + this.losenumSpecified = false; + } + + private bool ShouldSerializetodaygetspcount() + { + return this.todaygetspcountSpecified; + } + + private void Resettodaygetspcount() + { + this.todaygetspcountSpecified = false; + } + + private bool ShouldSerializeweekprize() + { + return this.weekprizeSpecified; + } + + private void Resetweekprize() + { + this.weekprizeSpecified = false; + } + + private bool ShouldSerializecangetprize() + { + return this.cangetprizeSpecified; + } + + private void Resetcangetprize() + { + this.cangetprizeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoRes.cs.meta new file mode 100644 index 00000000..e1d6433f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 052185a2814fcc74cb953a02ca6f85f4 +timeCreated: 1611402962 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs new file mode 100644 index 00000000..9854e287 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetHeroBattleWeekRewardArg")] + [Serializable] + public class GetHeroBattleWeekRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs.meta new file mode 100644 index 00000000..6d1f4dad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac1289b7091192f49a610ce8c9d70cfe +timeCreated: 1611404328 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs new file mode 100644 index 00000000..3534215a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetHeroBattleWeekRewardRes")] + [Serializable] + public class GetHeroBattleWeekRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "weekprize", DataFormat = DataFormat.TwosComplement)] + public uint weekprize + { + get + { + return this._weekprize ?? 0u; + } + set + { + this._weekprize = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekprizeSpecified + { + get + { + return this._weekprize != null; + } + set + { + bool flag = value == (this._weekprize == null); + if (flag) + { + this._weekprize = (value ? new uint?(this.weekprize) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "getnextweekprize", DataFormat = DataFormat.Default)] + public bool getnextweekprize + { + get + { + return this._getnextweekprize ?? false; + } + set + { + this._getnextweekprize = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getnextweekprizeSpecified + { + get + { + return this._getnextweekprize != null; + } + set + { + bool flag = value == (this._getnextweekprize == null); + if (flag) + { + this._getnextweekprize = (value ? new bool?(this.getnextweekprize) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _weekprize; + + private bool? _getnextweekprize; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeweekprize() + { + return this.weekprizeSpecified; + } + + private void Resetweekprize() + { + this.weekprizeSpecified = false; + } + + private bool ShouldSerializegetnextweekprize() + { + return this.getnextweekprizeSpecified; + } + + private void Resetgetnextweekprize() + { + this.getnextweekprizeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs.meta new file mode 100644 index 00000000..4440bc3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHeroBattleWeekRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a3c8f0dff7ff7e4d8bc313c9a34c2ab +timeCreated: 1611403309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoArg.cs new file mode 100644 index 00000000..34e196f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetHolidayStageInfoArg")] + [Serializable] + public class GetHolidayStageInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoArg.cs.meta new file mode 100644 index 00000000..ca9868f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0e0929cb02e1834fbae1c07a04d3b74 +timeCreated: 1611404699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoRes.cs new file mode 100644 index 00000000..f1c35667 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetHolidayStageInfoRes")] + [Serializable] + public class GetHolidayStageInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "holidayid", DataFormat = DataFormat.TwosComplement)] + public uint holidayid + { + get + { + return this._holidayid ?? 0u; + } + set + { + this._holidayid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool holidayidSpecified + { + get + { + return this._holidayid != null; + } + set + { + bool flag = value == (this._holidayid == null); + if (flag) + { + this._holidayid = (value ? new uint?(this.holidayid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lasttime", DataFormat = DataFormat.TwosComplement)] + public uint lasttime + { + get + { + return this._lasttime ?? 0u; + } + set + { + this._lasttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lasttimeSpecified + { + get + { + return this._lasttime != null; + } + set + { + bool flag = value == (this._lasttime == null); + if (flag) + { + this._lasttime = (value ? new uint?(this.lasttime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "havetimes", DataFormat = DataFormat.TwosComplement)] + public uint havetimes + { + get + { + return this._havetimes ?? 0u; + } + set + { + this._havetimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool havetimesSpecified + { + get + { + return this._havetimes != null; + } + set + { + bool flag = value == (this._havetimes == null); + if (flag) + { + this._havetimes = (value ? new uint?(this.havetimes) : null); + } + } + } + + private uint? _holidayid; + + private uint? _sceneid; + + private uint? _lasttime; + + private uint? _havetimes; + + private IExtension extensionObject; + + private bool ShouldSerializeholidayid() + { + return this.holidayidSpecified; + } + + private void Resetholidayid() + { + this.holidayidSpecified = false; + } + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + private bool ShouldSerializelasttime() + { + return this.lasttimeSpecified; + } + + private void Resetlasttime() + { + this.lasttimeSpecified = false; + } + + private bool ShouldSerializehavetimes() + { + return this.havetimesSpecified; + } + + private void Resethavetimes() + { + this.havetimesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoRes.cs.meta new file mode 100644 index 00000000..fad2c990 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetHolidayStageInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff594bde1376deb43ad8827016c2c818 +timeCreated: 1611404947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoArg.cs new file mode 100644 index 00000000..14021347 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetJadeSealAllInfoArg")] + [Serializable] + public class GetJadeSealAllInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "equipPos", DataFormat = DataFormat.TwosComplement)] + public int equipPos + { + get + { + return this._equipPos ?? 0; + } + set + { + this._equipPos = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool equipPosSpecified + { + get + { + return this._equipPos != null; + } + set + { + bool flag = value == (this._equipPos == null); + if (flag) + { + this._equipPos = (value ? new int?(this.equipPos) : null); + } + } + } + + private int? _equipPos; + + private IExtension extensionObject; + + private bool ShouldSerializeequipPos() + { + return this.equipPosSpecified; + } + + private void ResetequipPos() + { + this.equipPosSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoArg.cs.meta new file mode 100644 index 00000000..486565f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d494e51d26ed9324fa3c2d672e39e208 +timeCreated: 1611404603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoRes.cs new file mode 100644 index 00000000..0a1211bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetJadeSealAllInfoRes")] + [Serializable] + public class GetJadeSealAllInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, Name = "jadeSealInfo", DataFormat = DataFormat.Default)] + public List jadeSealInfo + { + get + { + return this._jadeSealInfo; + } + } + + private ErrorCode? _errorCode; + + private readonly List _jadeSealInfo = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoRes.cs.meta new file mode 100644 index 00000000..9ed8f5e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetJadeSealAllInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d83e016bef979b4f85cb3b31444cf02 +timeCreated: 1611403806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoArg.cs new file mode 100644 index 00000000..01262a09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueBattleInfoArg")] + [Serializable] + public class GetLeagueBattleInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoArg.cs.meta new file mode 100644 index 00000000..fc63fb76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23a8a8d0ad1db7e4e98abae863d42de1 +timeCreated: 1611403456 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoRes.cs new file mode 100644 index 00000000..330cf48c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoRes.cs @@ -0,0 +1,676 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueBattleInfoRes")] + [Serializable] + public class GetLeagueBattleInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "today_state", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleTimeState today_state + { + get + { + return this._today_state ?? LeagueBattleTimeState.LBTS_BeforeOpen; + } + set + { + this._today_state = new LeagueBattleTimeState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool today_stateSpecified + { + get + { + return this._today_state != null; + } + set + { + bool flag = value == (this._today_state == null); + if (flag) + { + this._today_state = (value ? new LeagueBattleTimeState?(this.today_state) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "timestamp", DataFormat = DataFormat.TwosComplement)] + public uint timestamp + { + get + { + return this._timestamp ?? 0u; + } + set + { + this._timestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timestampSpecified + { + get + { + return this._timestamp != null; + } + set + { + bool flag = value == (this._timestamp == null); + if (flag) + { + this._timestamp = (value ? new uint?(this.timestamp) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "league_teamname", DataFormat = DataFormat.Default)] + public string league_teamname + { + get + { + return this._league_teamname ?? ""; + } + set + { + this._league_teamname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamnameSpecified + { + get + { + return this._league_teamname != null; + } + set + { + bool flag = value == (this._league_teamname == null); + if (flag) + { + this._league_teamname = (value ? this.league_teamname : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "battlenum", DataFormat = DataFormat.TwosComplement)] + public uint battlenum + { + get + { + return this._battlenum ?? 0u; + } + set + { + this._battlenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool battlenumSpecified + { + get + { + return this._battlenum != null; + } + set + { + bool flag = value == (this._battlenum == null); + if (flag) + { + this._battlenum = (value ? new uint?(this.battlenum) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "week_battlenum", DataFormat = DataFormat.TwosComplement)] + public uint week_battlenum + { + get + { + return this._week_battlenum ?? 0u; + } + set + { + this._week_battlenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool week_battlenumSpecified + { + get + { + return this._week_battlenum != null; + } + set + { + bool flag = value == (this._week_battlenum == null); + if (flag) + { + this._week_battlenum = (value ? new uint?(this.week_battlenum) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "winrate", DataFormat = DataFormat.FixedSize)] + public float winrate + { + get + { + return this._winrate ?? 0f; + } + set + { + this._winrate = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winrateSpecified + { + get + { + return this._winrate != null; + } + set + { + bool flag = value == (this._winrate == null); + if (flag) + { + this._winrate = (value ? new float?(this.winrate) : null); + } + } + } + + [ProtoMember(10, Name = "member", DataFormat = DataFormat.Default)] + public List member + { + get + { + return this._member; + } + } + + [ProtoMember(11, IsRequired = false, Name = "matchlefttime", DataFormat = DataFormat.TwosComplement)] + public uint matchlefttime + { + get + { + return this._matchlefttime ?? 0u; + } + set + { + this._matchlefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool matchlefttimeSpecified + { + get + { + return this._matchlefttime != null; + } + set + { + bool flag = value == (this._matchlefttime == null); + if (flag) + { + this._matchlefttime = (value ? new uint?(this.matchlefttime) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "rankreward_lefttime", DataFormat = DataFormat.TwosComplement)] + public uint rankreward_lefttime + { + get + { + return this._rankreward_lefttime ?? 0u; + } + set + { + this._rankreward_lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankreward_lefttimeSpecified + { + get + { + return this._rankreward_lefttime != null; + } + set + { + bool flag = value == (this._rankreward_lefttime == null); + if (flag) + { + this._rankreward_lefttime = (value ? new uint?(this.rankreward_lefttime) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "crossrankreward_lefttime", DataFormat = DataFormat.TwosComplement)] + public uint crossrankreward_lefttime + { + get + { + return this._crossrankreward_lefttime ?? 0u; + } + set + { + this._crossrankreward_lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool crossrankreward_lefttimeSpecified + { + get + { + return this._crossrankreward_lefttime != null; + } + set + { + bool flag = value == (this._crossrankreward_lefttime == null); + if (flag) + { + this._crossrankreward_lefttime = (value ? new uint?(this.crossrankreward_lefttime) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "eli_type", DataFormat = DataFormat.TwosComplement)] + public LeagueEliType eli_type + { + get + { + return this._eli_type ?? LeagueEliType.LeagueEliType_None; + } + set + { + this._eli_type = new LeagueEliType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool eli_typeSpecified + { + get + { + return this._eli_type != null; + } + set + { + bool flag = value == (this._eli_type == null); + if (flag) + { + this._eli_type = (value ? new LeagueEliType?(this.eli_type) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "is_cross", DataFormat = DataFormat.Default)] + public bool is_cross + { + get + { + return this._is_cross ?? false; + } + set + { + this._is_cross = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_crossSpecified + { + get + { + return this._is_cross != null; + } + set + { + bool flag = value == (this._is_cross == null); + if (flag) + { + this._is_cross = (value ? new bool?(this.is_cross) : null); + } + } + } + + private ErrorCode? _result; + + private LeagueBattleTimeState? _today_state; + + private uint? _timestamp; + + private ulong? _league_teamid; + + private string _league_teamname; + + private uint? _score; + + private uint? _battlenum; + + private uint? _week_battlenum; + + private float? _winrate; + + private readonly List _member = new List(); + + private uint? _matchlefttime; + + private uint? _rankreward_lefttime; + + private uint? _crossrankreward_lefttime; + + private uint? _rank; + + private LeagueEliType? _eli_type; + + private bool? _is_cross; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializetoday_state() + { + return this.today_stateSpecified; + } + + private void Resettoday_state() + { + this.today_stateSpecified = false; + } + + private bool ShouldSerializetimestamp() + { + return this.timestampSpecified; + } + + private void Resettimestamp() + { + this.timestampSpecified = false; + } + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializeleague_teamname() + { + return this.league_teamnameSpecified; + } + + private void Resetleague_teamname() + { + this.league_teamnameSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializebattlenum() + { + return this.battlenumSpecified; + } + + private void Resetbattlenum() + { + this.battlenumSpecified = false; + } + + private bool ShouldSerializeweek_battlenum() + { + return this.week_battlenumSpecified; + } + + private void Resetweek_battlenum() + { + this.week_battlenumSpecified = false; + } + + private bool ShouldSerializewinrate() + { + return this.winrateSpecified; + } + + private void Resetwinrate() + { + this.winrateSpecified = false; + } + + private bool ShouldSerializematchlefttime() + { + return this.matchlefttimeSpecified; + } + + private void Resetmatchlefttime() + { + this.matchlefttimeSpecified = false; + } + + private bool ShouldSerializerankreward_lefttime() + { + return this.rankreward_lefttimeSpecified; + } + + private void Resetrankreward_lefttime() + { + this.rankreward_lefttimeSpecified = false; + } + + private bool ShouldSerializecrossrankreward_lefttime() + { + return this.crossrankreward_lefttimeSpecified; + } + + private void Resetcrossrankreward_lefttime() + { + this.crossrankreward_lefttimeSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeeli_type() + { + return this.eli_typeSpecified; + } + + private void Reseteli_type() + { + this.eli_typeSpecified = false; + } + + private bool ShouldSerializeis_cross() + { + return this.is_crossSpecified; + } + + private void Resetis_cross() + { + this.is_crossSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoRes.cs.meta new file mode 100644 index 00000000..737f6a08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f227eaaa57a93a449784f2ae94b8726 +timeCreated: 1611404028 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordArg.cs new file mode 100644 index 00000000..08f0e722 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueBattleRecordArg")] + [Serializable] + public class GetLeagueBattleRecordArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordArg.cs.meta new file mode 100644 index 00000000..d6f103d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ca2a142da5d1c64fa80c47caf3ebe0a +timeCreated: 1611404100 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs new file mode 100644 index 00000000..9902b30f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueBattleRecordRes")] + [Serializable] + public class GetLeagueBattleRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "winnum", DataFormat = DataFormat.TwosComplement)] + public uint winnum + { + get + { + return this._winnum ?? 0u; + } + set + { + this._winnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winnumSpecified + { + get + { + return this._winnum != null; + } + set + { + bool flag = value == (this._winnum == null); + if (flag) + { + this._winnum = (value ? new uint?(this.winnum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "losenum", DataFormat = DataFormat.TwosComplement)] + public uint losenum + { + get + { + return this._losenum ?? 0u; + } + set + { + this._losenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losenumSpecified + { + get + { + return this._losenum != null; + } + set + { + bool flag = value == (this._losenum == null); + if (flag) + { + this._losenum = (value ? new uint?(this.losenum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "winrate", DataFormat = DataFormat.FixedSize)] + public float winrate + { + get + { + return this._winrate ?? 0f; + } + set + { + this._winrate = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winrateSpecified + { + get + { + return this._winrate != null; + } + set + { + bool flag = value == (this._winrate == null); + if (flag) + { + this._winrate = (value ? new float?(this.winrate) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "max_continuewin", DataFormat = DataFormat.TwosComplement)] + public uint max_continuewin + { + get + { + return this._max_continuewin ?? 0u; + } + set + { + this._max_continuewin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_continuewinSpecified + { + get + { + return this._max_continuewin != null; + } + set + { + bool flag = value == (this._max_continuewin == null); + if (flag) + { + this._max_continuewin = (value ? new uint?(this.max_continuewin) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "max_continuelose", DataFormat = DataFormat.TwosComplement)] + public uint max_continuelose + { + get + { + return this._max_continuelose ?? 0u; + } + set + { + this._max_continuelose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_continueloseSpecified + { + get + { + return this._max_continuelose != null; + } + set + { + bool flag = value == (this._max_continuelose == null); + if (flag) + { + this._max_continuelose = (value ? new uint?(this.max_continuelose) : null); + } + } + } + + [ProtoMember(7, Name = "records", DataFormat = DataFormat.Default)] + public List records + { + get + { + return this._records; + } + } + + private ErrorCode? _result; + + private uint? _winnum; + + private uint? _losenum; + + private float? _winrate; + + private uint? _max_continuewin; + + private uint? _max_continuelose; + + private readonly List _records = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializewinnum() + { + return this.winnumSpecified; + } + + private void Resetwinnum() + { + this.winnumSpecified = false; + } + + private bool ShouldSerializelosenum() + { + return this.losenumSpecified; + } + + private void Resetlosenum() + { + this.losenumSpecified = false; + } + + private bool ShouldSerializewinrate() + { + return this.winrateSpecified; + } + + private void Resetwinrate() + { + this.winrateSpecified = false; + } + + private bool ShouldSerializemax_continuewin() + { + return this.max_continuewinSpecified; + } + + private void Resetmax_continuewin() + { + this.max_continuewinSpecified = false; + } + + private bool ShouldSerializemax_continuelose() + { + return this.max_continueloseSpecified; + } + + private void Resetmax_continuelose() + { + this.max_continueloseSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs.meta new file mode 100644 index 00000000..74b8433f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueBattleRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c322ac3f1b87739439d1632084fc0b5e +timeCreated: 1611404496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoArg.cs new file mode 100644 index 00000000..e832d741 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueEleInfoArg")] + [Serializable] + public class GetLeagueEleInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoArg.cs.meta new file mode 100644 index 00000000..7e08226d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8feec1a1f579b8744994020ad0c92604 +timeCreated: 1611404136 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoRes.cs new file mode 100644 index 00000000..58ae1229 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoRes.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueEleInfoRes")] + [Serializable] + public class GetLeagueEleInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "rounds", DataFormat = DataFormat.Default)] + public List rounds + { + get + { + return this._rounds; + } + } + + [ProtoMember(3, IsRequired = false, Name = "chamption", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueTeamDetail chamption + { + get + { + return this._chamption; + } + set + { + this._chamption = value; + } + } + + private ErrorCode? _result; + + private readonly List _rounds = new List(); + + private LeagueTeamDetail _chamption = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoRes.cs.meta new file mode 100644 index 00000000..1b5b0e59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueEleInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba6f6905ff394914283fce6ad6a96ddb +timeCreated: 1611404436 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoArg.cs new file mode 100644 index 00000000..39193417 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueTeamInfoArg")] + [Serializable] + public class GetLeagueTeamInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + private ulong? _league_teamid; + + private IExtension extensionObject; + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoArg.cs.meta new file mode 100644 index 00000000..e2a35d62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc8a1effc761fbe4e9a06cae5ca0963d +timeCreated: 1611404679 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoRes.cs new file mode 100644 index 00000000..3f825a6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLeagueTeamInfoRes")] + [Serializable] + public class GetLeagueTeamInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "team", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueTeamDetail team + { + get + { + return this._team; + } + set + { + this._team = value; + } + } + + private ErrorCode? _result; + + private LeagueTeamDetail _team = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoRes.cs.meta new file mode 100644 index 00000000..3ef59430 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLeagueTeamInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 361cd47790abbc44a9e61abbdfb44695 +timeCreated: 1611403561 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoArg.cs new file mode 100644 index 00000000..2eed0ab7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLevelSealInfoArg")] + [Serializable] + public class GetLevelSealInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoArg.cs.meta new file mode 100644 index 00000000..611ce873 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c950cf927e6030418a57b7b8d21888d +timeCreated: 1611403346 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoRes.cs new file mode 100644 index 00000000..845c0273 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLevelSealInfoRes")] + [Serializable] + public class GetLevelSealInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "levelSealData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LevelSealInfo levelSealData + { + get + { + return this._levelSealData; + } + set + { + this._levelSealData = value; + } + } + + private ErrorCode? _errorcode; + + private LevelSealInfo _levelSealData = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoRes.cs.meta new file mode 100644 index 00000000..07c5187d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7d3a02b69edbb248826bffe02031f3a +timeCreated: 1611404889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSealGiftArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSealGiftArg.cs new file mode 100644 index 00000000..492a4111 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSealGiftArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLevelSealSealGiftArg")] + [Serializable] + public class GetLevelSealSealGiftArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSealGiftArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSealGiftArg.cs.meta new file mode 100644 index 00000000..e0bbefdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSealGiftArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ecd24fa4b819eb49b69c933d32e6c62 +timeCreated: 1611404131 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSelfGiftRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSelfGiftRes.cs new file mode 100644 index 00000000..46c1a7c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSelfGiftRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLevelSealSelfGiftRes")] + [Serializable] + public class GetLevelSealSelfGiftRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSelfGiftRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSelfGiftRes.cs.meta new file mode 100644 index 00000000..0f289534 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLevelSealSelfGiftRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a9945186db1e4a4ba4aa103242223b5 +timeCreated: 1611404201 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeArg.cs new file mode 100644 index 00000000..5114be43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetListSubscribeArg")] + [Serializable] + public class GetListSubscribeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeArg.cs.meta new file mode 100644 index 00000000..4081ccf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53409e0725c661e449521746986f6f45 +timeCreated: 1611403710 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeRes.cs new file mode 100644 index 00000000..ccb72dae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetListSubscribeRes")] + [Serializable] + public class GetListSubscribeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "list", DataFormat = DataFormat.Default)] + public List list + { + get + { + return this._list; + } + } + + [ProtoMember(3, IsRequired = false, Name = "more", DataFormat = DataFormat.Default)] + public bool more + { + get + { + return this._more ?? false; + } + set + { + this._more = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool moreSpecified + { + get + { + return this._more != null; + } + set + { + bool flag = value == (this._more == null); + if (flag) + { + this._more = (value ? new bool?(this.more) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _list = new List(); + + private bool? _more; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializemore() + { + return this.moreSpecified; + } + + private void Resetmore() + { + this.moreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeRes.cs.meta new file mode 100644 index 00000000..152c10ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetListSubscribeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8ed08806da278042b7001c77c0159f5 +timeCreated: 1611404754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoArg.cs new file mode 100644 index 00000000..4351db7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLuckyActivityInfoArg")] + [Serializable] + public class GetLuckyActivityInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoArg.cs.meta new file mode 100644 index 00000000..8bdc8367 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2068b9e426ddec4c8ef8296f3aa2f6e +timeCreated: 1611404492 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs new file mode 100644 index 00000000..db1b8384 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetLuckyActivityInfoRes")] + [Serializable] + public class GetLuckyActivityInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "itemrecord", DataFormat = DataFormat.Default)] + public List itemrecord + { + get + { + return this._itemrecord; + } + } + + [ProtoMember(3, IsRequired = false, Name = "currencytype", DataFormat = DataFormat.TwosComplement)] + public uint currencytype + { + get + { + return this._currencytype ?? 0u; + } + set + { + this._currencytype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currencytypeSpecified + { + get + { + return this._currencytype != null; + } + set + { + bool flag = value == (this._currencytype == null); + if (flag) + { + this._currencytype = (value ? new uint?(this.currencytype) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "price", DataFormat = DataFormat.TwosComplement)] + public uint price + { + get + { + return this._price ?? 0u; + } + set + { + this._price = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool priceSpecified + { + get + { + return this._price != null; + } + set + { + bool flag = value == (this._price == null); + if (flag) + { + this._price = (value ? new uint?(this.price) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ispay", DataFormat = DataFormat.Default)] + public bool ispay + { + get + { + return this._ispay ?? false; + } + set + { + this._ispay = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ispaySpecified + { + get + { + return this._ispay != null; + } + set + { + bool flag = value == (this._ispay == null); + if (flag) + { + this._ispay = (value ? new bool?(this.ispay) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _itemrecord = new List(); + + private uint? _currencytype; + + private uint? _price; + + private bool? _ispay; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecurrencytype() + { + return this.currencytypeSpecified; + } + + private void Resetcurrencytype() + { + this.currencytypeSpecified = false; + } + + private bool ShouldSerializeprice() + { + return this.priceSpecified; + } + + private void Resetprice() + { + this.priceSpecified = false; + } + + private bool ShouldSerializeispay() + { + return this.ispaySpecified; + } + + private void Resetispay() + { + this.ispaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs.meta new file mode 100644 index 00000000..f14e7d83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetLuckyActivityInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c662ad50cf967b3408e32d3f902829c2 +timeCreated: 1611404509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessArg.cs new file mode 100644 index 00000000..d1b8a1ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMarriageLivenessArg")] + [Serializable] + public class GetMarriageLivenessArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessArg.cs.meta new file mode 100644 index 00000000..dc0c82a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 375b529229d77094abbadc0fc0bca416 +timeCreated: 1611403565 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessRes.cs new file mode 100644 index 00000000..8f1c0cad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMarriageLivenessRes")] + [Serializable] + public class GetMarriageLivenessRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "liveness", DataFormat = DataFormat.TwosComplement)] + public uint liveness + { + get + { + return this._liveness ?? 0u; + } + set + { + this._liveness = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool livenessSpecified + { + get + { + return this._liveness != null; + } + set + { + bool flag = value == (this._liveness == null); + if (flag) + { + this._liveness = (value ? new uint?(this.liveness) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "takedchest", DataFormat = DataFormat.TwosComplement)] + public uint takedchest + { + get + { + return this._takedchest ?? 0u; + } + set + { + this._takedchest = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool takedchestSpecified + { + get + { + return this._takedchest != null; + } + set + { + bool flag = value == (this._takedchest == null); + if (flag) + { + this._takedchest = (value ? new uint?(this.takedchest) : null); + } + } + } + + [ProtoMember(4, Name = "record", DataFormat = DataFormat.Default)] + public List record + { + get + { + return this._record; + } + } + + private ErrorCode? _result; + + private uint? _liveness; + + private uint? _takedchest; + + private readonly List _record = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeliveness() + { + return this.livenessSpecified; + } + + private void Resetliveness() + { + this.livenessSpecified = false; + } + + private bool ShouldSerializetakedchest() + { + return this.takedchestSpecified; + } + + private void Resettakedchest() + { + this.takedchestSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessRes.cs.meta new file mode 100644 index 00000000..e3cccabb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageLivenessRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6b7ef5ece3d7fa48a136c98778e8b7f +timeCreated: 1611404289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeArg.cs new file mode 100644 index 00000000..3e59f8b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMarriagePrivilegeArg")] + [Serializable] + public class GetMarriagePrivilegeArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeArg.cs.meta new file mode 100644 index 00000000..18f15edc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d9bafd23d3b83e44929c342b51f90bd +timeCreated: 1611404237 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeRes.cs new file mode 100644 index 00000000..90bc9ff6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMarriagePrivilegeRes")] + [Serializable] + public class GetMarriagePrivilegeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeRes.cs.meta new file mode 100644 index 00000000..73307eea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriagePrivilegeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb052d691cc411745b709a89dabbba3b +timeCreated: 1611404781 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationArg.cs new file mode 100644 index 00000000..42b8cdbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMarriageRelationArg")] + [Serializable] + public class GetMarriageRelationArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationArg.cs.meta new file mode 100644 index 00000000..44df547e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a776fa9daaf4d54e855e78b74238e3d +timeCreated: 1611403665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationRes.cs new file mode 100644 index 00000000..c2b5005f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationRes.cs @@ -0,0 +1,305 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMarriageRelationRes")] + [Serializable] + public class GetMarriageRelationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + [ProtoMember(3, IsRequired = false, Name = "marriageStatus", DataFormat = DataFormat.TwosComplement)] + public MarriageStatus marriageStatus + { + get + { + return this._marriageStatus ?? MarriageStatus.MarriageStatus_Null; + } + set + { + this._marriageStatus = new MarriageStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool marriageStatusSpecified + { + get + { + return this._marriageStatus != null; + } + set + { + bool flag = value == (this._marriageStatus == null); + if (flag) + { + this._marriageStatus = (value ? new MarriageStatus?(this.marriageStatus) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeddingType type + { + get + { + return this._type ?? WeddingType.WeddingType_Normal; + } + set + { + this._type = new WeddingType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeddingType?(this.type) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "leftDivorceTime", DataFormat = DataFormat.TwosComplement)] + public int leftDivorceTime + { + get + { + return this._leftDivorceTime ?? 0; + } + set + { + this._leftDivorceTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftDivorceTimeSpecified + { + get + { + return this._leftDivorceTime != null; + } + set + { + bool flag = value == (this._leftDivorceTime == null); + if (flag) + { + this._leftDivorceTime = (value ? new int?(this.leftDivorceTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "applyDivorceID", DataFormat = DataFormat.TwosComplement)] + public ulong applyDivorceID + { + get + { + return this._applyDivorceID ?? 0UL; + } + set + { + this._applyDivorceID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool applyDivorceIDSpecified + { + get + { + return this._applyDivorceID != null; + } + set + { + bool flag = value == (this._applyDivorceID == null); + if (flag) + { + this._applyDivorceID = (value ? new ulong?(this.applyDivorceID) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "coupleOfflineTime", DataFormat = DataFormat.TwosComplement)] + public int coupleOfflineTime + { + get + { + return this._coupleOfflineTime ?? 0; + } + set + { + this._coupleOfflineTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool coupleOfflineTimeSpecified + { + get + { + return this._coupleOfflineTime != null; + } + set + { + bool flag = value == (this._coupleOfflineTime == null); + if (flag) + { + this._coupleOfflineTime = (value ? new int?(this.coupleOfflineTime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "marriageLevel", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MarriageLevelInfo marriageLevel + { + get + { + return this._marriageLevel; + } + set + { + this._marriageLevel = value; + } + } + + private ErrorCode? _error; + + private readonly List _infos = new List(); + + private MarriageStatus? _marriageStatus; + + private WeddingType? _type; + + private int? _leftDivorceTime; + + private ulong? _applyDivorceID; + + private int? _coupleOfflineTime; + + private MarriageLevelInfo _marriageLevel = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializemarriageStatus() + { + return this.marriageStatusSpecified; + } + + private void ResetmarriageStatus() + { + this.marriageStatusSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeleftDivorceTime() + { + return this.leftDivorceTimeSpecified; + } + + private void ResetleftDivorceTime() + { + this.leftDivorceTimeSpecified = false; + } + + private bool ShouldSerializeapplyDivorceID() + { + return this.applyDivorceIDSpecified; + } + + private void ResetapplyDivorceID() + { + this.applyDivorceIDSpecified = false; + } + + private bool ShouldSerializecoupleOfflineTime() + { + return this.coupleOfflineTimeSpecified; + } + + private void ResetcoupleOfflineTime() + { + this.coupleOfflineTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationRes.cs.meta new file mode 100644 index 00000000..85863fb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMarriageRelationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b9ab1ecf6bc8134085beb02bb036a70 +timeCreated: 1611403799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordArg.cs new file mode 100644 index 00000000..30b93786 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMobaBattleBriefRecordArg")] + [Serializable] + public class GetMobaBattleBriefRecordArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordArg.cs.meta new file mode 100644 index 00000000..53b2939d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d815db45df1fcaf4c980fd9a3460aa83 +timeCreated: 1611404638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordRes.cs new file mode 100644 index 00000000..a6b1ec38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMobaBattleBriefRecordRes")] + [Serializable] + public class GetMobaBattleBriefRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "totalnum", DataFormat = DataFormat.TwosComplement)] + public uint totalnum + { + get + { + return this._totalnum ?? 0u; + } + set + { + this._totalnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalnumSpecified + { + get + { + return this._totalnum != null; + } + set + { + bool flag = value == (this._totalnum == null); + if (flag) + { + this._totalnum = (value ? new uint?(this.totalnum) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "winnum", DataFormat = DataFormat.TwosComplement)] + public uint winnum + { + get + { + return this._winnum ?? 0u; + } + set + { + this._winnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winnumSpecified + { + get + { + return this._winnum != null; + } + set + { + bool flag = value == (this._winnum == null); + if (flag) + { + this._winnum = (value ? new uint?(this.winnum) : null); + } + } + } + + [ProtoMember(3, Name = "brief", DataFormat = DataFormat.Default)] + public List brief + { + get + { + return this._brief; + } + } + + private uint? _totalnum; + + private uint? _winnum; + + private readonly List _brief = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetotalnum() + { + return this.totalnumSpecified; + } + + private void Resettotalnum() + { + this.totalnumSpecified = false; + } + + private bool ShouldSerializewinnum() + { + return this.winnumSpecified; + } + + private void Resetwinnum() + { + this.winnumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordRes.cs.meta new file mode 100644 index 00000000..e0cf55ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleBriefRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 974e548573b36eb4d8b7a3560d52977b +timeCreated: 1611404188 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordArg.cs new file mode 100644 index 00000000..4978dae3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMobaBattleGameRecordArg")] + [Serializable] + public class GetMobaBattleGameRecordArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "tag", DataFormat = DataFormat.TwosComplement)] + public uint tag + { + get + { + return this._tag ?? 0u; + } + set + { + this._tag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tagSpecified + { + get + { + return this._tag != null; + } + set + { + bool flag = value == (this._tag == null); + if (flag) + { + this._tag = (value ? new uint?(this.tag) : null); + } + } + } + + private uint? _tag; + + private IExtension extensionObject; + + private bool ShouldSerializetag() + { + return this.tagSpecified; + } + + private void Resettag() + { + this.tagSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordArg.cs.meta new file mode 100644 index 00000000..6749516d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bcb52c23a59c9d44ea8468474410c9e0 +timeCreated: 1611404448 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordRes.cs new file mode 100644 index 00000000..2af0159b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordRes.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMobaBattleGameRecordRes")] + [Serializable] + public class GetMobaBattleGameRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "record", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MobaBattleOneGame record + { + get + { + return this._record; + } + set + { + this._record = value; + } + } + + private MobaBattleOneGame _record = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordRes.cs.meta new file mode 100644 index 00000000..e4872514 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleGameRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 134f179353b2b544198a1b834f8367cb +timeCreated: 1611403247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoArg.cs new file mode 100644 index 00000000..43540341 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMobaBattleInfoArg")] + [Serializable] + public class GetMobaBattleInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoArg.cs.meta new file mode 100644 index 00000000..bc09684e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f16579899cfaea4eba1407a66312796 +timeCreated: 1611403514 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoRes.cs new file mode 100644 index 00000000..540c211f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMobaBattleInfoRes")] + [Serializable] + public class GetMobaBattleInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "winthisweek", DataFormat = DataFormat.TwosComplement)] + public uint winthisweek + { + get + { + return this._winthisweek ?? 0u; + } + set + { + this._winthisweek = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winthisweekSpecified + { + get + { + return this._winthisweek != null; + } + set + { + bool flag = value == (this._winthisweek == null); + if (flag) + { + this._winthisweek = (value ? new uint?(this.winthisweek) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "weekprize", DataFormat = DataFormat.TwosComplement)] + public uint weekprize + { + get + { + return this._weekprize ?? 0u; + } + set + { + this._weekprize = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekprizeSpecified + { + get + { + return this._weekprize != null; + } + set + { + bool flag = value == (this._weekprize == null); + if (flag) + { + this._weekprize = (value ? new uint?(this.weekprize) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "getnextweekprize", DataFormat = DataFormat.Default)] + public bool getnextweekprize + { + get + { + return this._getnextweekprize ?? false; + } + set + { + this._getnextweekprize = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getnextweekprizeSpecified + { + get + { + return this._getnextweekprize != null; + } + set + { + bool flag = value == (this._getnextweekprize == null); + if (flag) + { + this._getnextweekprize = (value ? new bool?(this.getnextweekprize) : null); + } + } + } + + private uint? _winthisweek; + + private uint? _weekprize; + + private bool? _getnextweekprize; + + private IExtension extensionObject; + + private bool ShouldSerializewinthisweek() + { + return this.winthisweekSpecified; + } + + private void Resetwinthisweek() + { + this.winthisweekSpecified = false; + } + + private bool ShouldSerializeweekprize() + { + return this.weekprizeSpecified; + } + + private void Resetweekprize() + { + this.weekprizeSpecified = false; + } + + private bool ShouldSerializegetnextweekprize() + { + return this.getnextweekprizeSpecified; + } + + private void Resetgetnextweekprize() + { + this.getnextweekprizeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoRes.cs.meta new file mode 100644 index 00000000..05b085d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b46dee9d9cbd07548937f33d988315bb +timeCreated: 1611404392 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs new file mode 100644 index 00000000..bf6c4041 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMobaBattleWeekRewardArg")] + [Serializable] + public class GetMobaBattleWeekRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs.meta new file mode 100644 index 00000000..4c49f4cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 947e013df19812147a282bb7e7a4a368 +timeCreated: 1611404154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs new file mode 100644 index 00000000..87a1513f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMobaBattleWeekRewardRes")] + [Serializable] + public class GetMobaBattleWeekRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "weekprize", DataFormat = DataFormat.TwosComplement)] + public uint weekprize + { + get + { + return this._weekprize ?? 0u; + } + set + { + this._weekprize = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekprizeSpecified + { + get + { + return this._weekprize != null; + } + set + { + bool flag = value == (this._weekprize == null); + if (flag) + { + this._weekprize = (value ? new uint?(this.weekprize) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "getnextweekprize", DataFormat = DataFormat.Default)] + public bool getnextweekprize + { + get + { + return this._getnextweekprize ?? false; + } + set + { + this._getnextweekprize = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getnextweekprizeSpecified + { + get + { + return this._getnextweekprize != null; + } + set + { + bool flag = value == (this._getnextweekprize == null); + if (flag) + { + this._getnextweekprize = (value ? new bool?(this.getnextweekprize) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _weekprize; + + private bool? _getnextweekprize; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeweekprize() + { + return this.weekprizeSpecified; + } + + private void Resetweekprize() + { + this.weekprizeSpecified = false; + } + + private bool ShouldSerializegetnextweekprize() + { + return this.getnextweekprizeSpecified; + } + + private void Resetgetnextweekprize() + { + this.getnextweekprizeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs.meta new file mode 100644 index 00000000..a605f58f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMobaBattleWeekRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 493496b6d2e8da34eaff2cf95913c136 +timeCreated: 1611403660 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoArg.cs new file mode 100644 index 00000000..13546574 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyApplyMasterInfoArg")] + [Serializable] + public class GetMyApplyMasterInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isRefresh", DataFormat = DataFormat.Default)] + public bool isRefresh + { + get + { + return this._isRefresh ?? false; + } + set + { + this._isRefresh = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isRefreshSpecified + { + get + { + return this._isRefresh != null; + } + set + { + bool flag = value == (this._isRefresh == null); + if (flag) + { + this._isRefresh = (value ? new bool?(this.isRefresh) : null); + } + } + } + + private bool? _isRefresh; + + private IExtension extensionObject; + + private bool ShouldSerializeisRefresh() + { + return this.isRefreshSpecified; + } + + private void ResetisRefresh() + { + this.isRefreshSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoArg.cs.meta new file mode 100644 index 00000000..d93545bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e0a5dc882361a34993caf9f7a39f5c1 +timeCreated: 1611403809 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoRes.cs new file mode 100644 index 00000000..2c71c44f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyApplyMasterInfoRes")] + [Serializable] + public class GetMyApplyMasterInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "canApplyMasters", DataFormat = DataFormat.Default)] + public List canApplyMasters + { + get + { + return this._canApplyMasters; + } + } + + [ProtoMember(3, IsRequired = false, Name = "leftRefreshTime", DataFormat = DataFormat.TwosComplement)] + public int leftRefreshTime + { + get + { + return this._leftRefreshTime ?? 0; + } + set + { + this._leftRefreshTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftRefreshTimeSpecified + { + get + { + return this._leftRefreshTime != null; + } + set + { + bool flag = value == (this._leftRefreshTime == null); + if (flag) + { + this._leftRefreshTime = (value ? new int?(this.leftRefreshTime) : null); + } + } + } + + private ErrorCode? _error; + + private readonly List _canApplyMasters = new List(); + + private int? _leftRefreshTime; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeleftRefreshTime() + { + return this.leftRefreshTimeSpecified; + } + + private void ResetleftRefreshTime() + { + this.leftRefreshTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoRes.cs.meta new file mode 100644 index 00000000..309e1513 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyMasterInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0053811efd30aa24293186d0142b24be +timeCreated: 1611402949 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoArg.cs new file mode 100644 index 00000000..4145c4e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyApplyStudentInfoArg")] + [Serializable] + public class GetMyApplyStudentInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isRefresh", DataFormat = DataFormat.Default)] + public bool isRefresh + { + get + { + return this._isRefresh ?? false; + } + set + { + this._isRefresh = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isRefreshSpecified + { + get + { + return this._isRefresh != null; + } + set + { + bool flag = value == (this._isRefresh == null); + if (flag) + { + this._isRefresh = (value ? new bool?(this.isRefresh) : null); + } + } + } + + private bool? _isRefresh; + + private IExtension extensionObject; + + private bool ShouldSerializeisRefresh() + { + return this.isRefreshSpecified; + } + + private void ResetisRefresh() + { + this.isRefreshSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoArg.cs.meta new file mode 100644 index 00000000..8c9a04cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a27c9c6ab49d3545970379353ad7d8b +timeCreated: 1611403595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoRes.cs new file mode 100644 index 00000000..a45dde7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyApplyStudentInfoRes")] + [Serializable] + public class GetMyApplyStudentInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "canApplyList", DataFormat = DataFormat.Default)] + public List canApplyList + { + get + { + return this._canApplyList; + } + } + + [ProtoMember(3, IsRequired = false, Name = "leftRefreshTime", DataFormat = DataFormat.TwosComplement)] + public int leftRefreshTime + { + get + { + return this._leftRefreshTime ?? 0; + } + set + { + this._leftRefreshTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftRefreshTimeSpecified + { + get + { + return this._leftRefreshTime != null; + } + set + { + bool flag = value == (this._leftRefreshTime == null); + if (flag) + { + this._leftRefreshTime = (value ? new int?(this.leftRefreshTime) : null); + } + } + } + + private ErrorCode? _error; + + private readonly List _canApplyList = new List(); + + private int? _leftRefreshTime; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeleftRefreshTime() + { + return this.leftRefreshTimeSpecified; + } + + private void ResetleftRefreshTime() + { + this.leftRefreshTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoRes.cs.meta new file mode 100644 index 00000000..45908778 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyApplyStudentInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b4da0ff380c1894882b7ec6f835fc24 +timeCreated: 1611403798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs new file mode 100644 index 00000000..686af609 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyMentorInfoArg")] + [Serializable] + public class GetMyMentorInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs.meta new file mode 100644 index 00000000..bf3f9a6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 731006ed6ce7f79439998a0c345bb4c4 +timeCreated: 1611403939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs new file mode 100644 index 00000000..ce5e4ce4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs @@ -0,0 +1,262 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyMentorInfoRes")] + [Serializable] + public class GetMyMentorInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "mentorRelationList", DataFormat = DataFormat.Default)] + public List mentorRelationList + { + get + { + return this._mentorRelationList; + } + } + + [ProtoMember(3, IsRequired = false, Name = "mentorSelfInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MentorSelfInfo mentorSelfInfo + { + get + { + return this._mentorSelfInfo; + } + set + { + this._mentorSelfInfo = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "curTime", DataFormat = DataFormat.TwosComplement)] + public int curTime + { + get + { + return this._curTime ?? 0; + } + set + { + this._curTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curTimeSpecified + { + get + { + return this._curTime != null; + } + set + { + bool flag = value == (this._curTime == null); + if (flag) + { + this._curTime = (value ? new int?(this.curTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "audioID", DataFormat = DataFormat.TwosComplement)] + public ulong audioID + { + get + { + return this._audioID ?? 0UL; + } + set + { + this._audioID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioIDSpecified + { + get + { + return this._audioID != null; + } + set + { + bool flag = value == (this._audioID == null); + if (flag) + { + this._audioID = (value ? new ulong?(this.audioID) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "mentorWords", DataFormat = DataFormat.Default)] + public string mentorWords + { + get + { + return this._mentorWords ?? ""; + } + set + { + this._mentorWords = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mentorWordsSpecified + { + get + { + return this._mentorWords != null; + } + set + { + bool flag = value == (this._mentorWords == null); + if (flag) + { + this._mentorWords = (value ? this.mentorWords : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "isNeedStudent", DataFormat = DataFormat.Default)] + public bool isNeedStudent + { + get + { + return this._isNeedStudent ?? false; + } + set + { + this._isNeedStudent = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isNeedStudentSpecified + { + get + { + return this._isNeedStudent != null; + } + set + { + bool flag = value == (this._isNeedStudent == null); + if (flag) + { + this._isNeedStudent = (value ? new bool?(this.isNeedStudent) : null); + } + } + } + + private ErrorCode? _error; + + private readonly List _mentorRelationList = new List(); + + private MentorSelfInfo _mentorSelfInfo = null; + + private int? _curTime; + + private ulong? _audioID; + + private string _mentorWords; + + private bool? _isNeedStudent; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecurTime() + { + return this.curTimeSpecified; + } + + private void ResetcurTime() + { + this.curTimeSpecified = false; + } + + private bool ShouldSerializeaudioID() + { + return this.audioIDSpecified; + } + + private void ResetaudioID() + { + this.audioIDSpecified = false; + } + + private bool ShouldSerializementorWords() + { + return this.mentorWordsSpecified; + } + + private void ResetmentorWords() + { + this.mentorWordsSpecified = false; + } + + private bool ShouldSerializeisNeedStudent() + { + return this.isNeedStudentSpecified; + } + + private void ResetisNeedStudent() + { + this.isNeedStudentSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs.meta new file mode 100644 index 00000000..5f63c6dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyMentorInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d12177453885e05419b717cfbb388837 +timeCreated: 1611404590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs new file mode 100644 index 00000000..1bc35bf5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyRiftInfoArg")] + [Serializable] + public class GetMyRiftInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs.meta new file mode 100644 index 00000000..0b3722bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51b693b585fb24a4fad5cc93e5c8c329 +timeCreated: 1611403707 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs new file mode 100644 index 00000000..f44ff037 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyRiftInfoRes")] + [Serializable] + public class GetMyRiftInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "curRiftID", DataFormat = DataFormat.TwosComplement)] + public int curRiftID + { + get + { + return this._curRiftID ?? 0; + } + set + { + this._curRiftID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curRiftIDSpecified + { + get + { + return this._curRiftID != null; + } + set + { + bool flag = value == (this._curRiftID == null); + if (flag) + { + this._curRiftID = (value ? new int?(this.curRiftID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "curRiftFloor", DataFormat = DataFormat.TwosComplement)] + public int curRiftFloor + { + get + { + return this._curRiftFloor ?? 0; + } + set + { + this._curRiftFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curRiftFloorSpecified + { + get + { + return this._curRiftFloor != null; + } + set + { + bool flag = value == (this._curRiftFloor == null); + if (flag) + { + this._curRiftFloor = (value ? new int?(this.curRiftFloor) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "curSceneID", DataFormat = DataFormat.TwosComplement)] + public int curSceneID + { + get + { + return this._curSceneID ?? 0; + } + set + { + this._curSceneID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curSceneIDSpecified + { + get + { + return this._curSceneID != null; + } + set + { + bool flag = value == (this._curSceneID == null); + if (flag) + { + this._curSceneID = (value ? new int?(this.curSceneID) : null); + } + } + } + + [ProtoMember(5, Name = "buffIDs", DataFormat = DataFormat.Default)] + public List buffIDs + { + get + { + return this._buffIDs; + } + } + + [ProtoMember(6, Name = "gotItemsCount", DataFormat = DataFormat.Default)] + public List gotItemsCount + { + get + { + return this._gotItemsCount; + } + } + + [ProtoMember(7, IsRequired = false, Name = "isInActiviyTime", DataFormat = DataFormat.Default)] + public bool isInActiviyTime + { + get + { + return this._isInActiviyTime ?? false; + } + set + { + this._isInActiviyTime = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isInActiviyTimeSpecified + { + get + { + return this._isInActiviyTime != null; + } + set + { + bool flag = value == (this._isInActiviyTime == null); + if (flag) + { + this._isInActiviyTime = (value ? new bool?(this.isInActiviyTime) : null); + } + } + } + + private ErrorCode? _error; + + private int? _curRiftID; + + private int? _curRiftFloor; + + private int? _curSceneID; + + private readonly List _buffIDs = new List(); + + private readonly List _gotItemsCount = new List(); + + private bool? _isInActiviyTime; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecurRiftID() + { + return this.curRiftIDSpecified; + } + + private void ResetcurRiftID() + { + this.curRiftIDSpecified = false; + } + + private bool ShouldSerializecurRiftFloor() + { + return this.curRiftFloorSpecified; + } + + private void ResetcurRiftFloor() + { + this.curRiftFloorSpecified = false; + } + + private bool ShouldSerializecurSceneID() + { + return this.curSceneIDSpecified; + } + + private void ResetcurSceneID() + { + this.curSceneIDSpecified = false; + } + + private bool ShouldSerializeisInActiviyTime() + { + return this.isInActiviyTimeSpecified; + } + + private void ResetisInActiviyTime() + { + this.isInActiviyTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs.meta new file mode 100644 index 00000000..46ea210c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyRiftInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 606a560e580be1846b149de8d2516fb3 +timeCreated: 1611403834 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordArg.cs new file mode 100644 index 00000000..ebfe4ba6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyWatchRecordArg")] + [Serializable] + public class GetMyWatchRecordArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordArg.cs.meta new file mode 100644 index 00000000..83fcfab8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9eafb8934e9edcf48870b704c05561fb +timeCreated: 1611404242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordRes.cs new file mode 100644 index 00000000..4d26136a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordRes.cs @@ -0,0 +1,235 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetMyWatchRecordRes")] + [Serializable] + public class GetMyWatchRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "myCommendedNum", DataFormat = DataFormat.TwosComplement)] + public int myCommendedNum + { + get + { + return this._myCommendedNum ?? 0; + } + set + { + this._myCommendedNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool myCommendedNumSpecified + { + get + { + return this._myCommendedNum != null; + } + set + { + bool flag = value == (this._myCommendedNum == null); + if (flag) + { + this._myCommendedNum = (value ? new int?(this.myCommendedNum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "myWatchedNum", DataFormat = DataFormat.TwosComplement)] + public int myWatchedNum + { + get + { + return this._myWatchedNum ?? 0; + } + set + { + this._myWatchedNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool myWatchedNumSpecified + { + get + { + return this._myWatchedNum != null; + } + set + { + bool flag = value == (this._myWatchedNum == null); + if (flag) + { + this._myWatchedNum = (value ? new int?(this.myWatchedNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "myMostWatchedRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OneLiveRecordInfo myMostWatchedRecord + { + get + { + return this._myMostWatchedRecord; + } + set + { + this._myMostWatchedRecord = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "myMostCommendedRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OneLiveRecordInfo myMostCommendedRecord + { + get + { + return this._myMostCommendedRecord; + } + set + { + this._myMostCommendedRecord = value; + } + } + + [ProtoMember(6, Name = "myRecentRecords", DataFormat = DataFormat.Default)] + public List myRecentRecords + { + get + { + return this._myRecentRecords; + } + } + + [ProtoMember(7, IsRequired = false, Name = "visibleSetting", DataFormat = DataFormat.Default)] + public bool visibleSetting + { + get + { + return this._visibleSetting ?? false; + } + set + { + this._visibleSetting = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool visibleSettingSpecified + { + get + { + return this._visibleSetting != null; + } + set + { + bool flag = value == (this._visibleSetting == null); + if (flag) + { + this._visibleSetting = (value ? new bool?(this.visibleSetting) : null); + } + } + } + + private ErrorCode? _error; + + private int? _myCommendedNum; + + private int? _myWatchedNum; + + private OneLiveRecordInfo _myMostWatchedRecord = null; + + private OneLiveRecordInfo _myMostCommendedRecord = null; + + private readonly List _myRecentRecords = new List(); + + private bool? _visibleSetting; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializemyCommendedNum() + { + return this.myCommendedNumSpecified; + } + + private void ResetmyCommendedNum() + { + this.myCommendedNumSpecified = false; + } + + private bool ShouldSerializemyWatchedNum() + { + return this.myWatchedNumSpecified; + } + + private void ResetmyWatchedNum() + { + this.myWatchedNumSpecified = false; + } + + private bool ShouldSerializevisibleSetting() + { + return this.visibleSettingSpecified; + } + + private void ResetvisibleSetting() + { + this.visibleSettingSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordRes.cs.meta new file mode 100644 index 00000000..a656dedc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetMyWatchRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9dd9f472d8763304dab6f9fd6170e455 +timeCreated: 1611404238 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitArg.cs new file mode 100644 index 00000000..13534e2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetNewZoneBenefitArg")] + [Serializable] + public class GetNewZoneBenefitArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitArg.cs.meta new file mode 100644 index 00000000..a26da5cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0bd888e3a2a91ce4eb150d115844bac4 +timeCreated: 1611403170 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitRes.cs new file mode 100644 index 00000000..e696f32b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitRes.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetNewZoneBenefitRes")] + [Serializable] + public class GetNewZoneBenefitRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "is_open", DataFormat = DataFormat.Default)] + public bool is_open + { + get + { + return this._is_open ?? false; + } + set + { + this._is_open = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_openSpecified + { + get + { + return this._is_open != null; + } + set + { + bool flag = value == (this._is_open == null); + if (flag) + { + this._is_open = (value ? new bool?(this.is_open) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "has_select", DataFormat = DataFormat.Default)] + public bool has_select + { + get + { + return this._has_select ?? false; + } + set + { + this._has_select = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool has_selectSpecified + { + get + { + return this._has_select != null; + } + set + { + bool flag = value == (this._has_select == null); + if (flag) + { + this._has_select = (value ? new bool?(this.has_select) : null); + } + } + } + + [ProtoMember(4, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + [ProtoMember(5, IsRequired = false, Name = "select_roleid", DataFormat = DataFormat.TwosComplement)] + public ulong select_roleid + { + get + { + return this._select_roleid ?? 0UL; + } + set + { + this._select_roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool select_roleidSpecified + { + get + { + return this._select_roleid != null; + } + set + { + bool flag = value == (this._select_roleid == null); + if (flag) + { + this._select_roleid = (value ? new ulong?(this.select_roleid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "total_paycnt", DataFormat = DataFormat.TwosComplement)] + public uint total_paycnt + { + get + { + return this._total_paycnt ?? 0u; + } + set + { + this._total_paycnt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool total_paycntSpecified + { + get + { + return this._total_paycnt != null; + } + set + { + bool flag = value == (this._total_paycnt == null); + if (flag) + { + this._total_paycnt = (value ? new uint?(this.total_paycnt) : null); + } + } + } + + private ErrorCode? _result; + + private bool? _is_open; + + private bool? _has_select; + + private readonly List _roles = new List(); + + private ulong? _select_roleid; + + private uint? _total_paycnt; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeis_open() + { + return this.is_openSpecified; + } + + private void Resetis_open() + { + this.is_openSpecified = false; + } + + private bool ShouldSerializehas_select() + { + return this.has_selectSpecified; + } + + private void Resethas_select() + { + this.has_selectSpecified = false; + } + + private bool ShouldSerializeselect_roleid() + { + return this.select_roleidSpecified; + } + + private void Resetselect_roleid() + { + this.select_roleidSpecified = false; + } + + private bool ShouldSerializetotal_paycnt() + { + return this.total_paycntSpecified; + } + + private void Resettotal_paycnt() + { + this.total_paycntSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitRes.cs.meta new file mode 100644 index 00000000..c275fa38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetNewZoneBenefitRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 311e440b81757964bbe98bf4ac6d8c1d +timeCreated: 1611403541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardArg.cs new file mode 100644 index 00000000..3f798180 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetNextDayRewardArg")] + [Serializable] + public class GetNextDayRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardArg.cs.meta new file mode 100644 index 00000000..9655bbce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69234ce3f6055fa4a8cbadea92e71d74 +timeCreated: 1611403884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardRes.cs new file mode 100644 index 00000000..3b0efebe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetNextDayRewardRes")] + [Serializable] + public class GetNextDayRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardRes.cs.meta new file mode 100644 index 00000000..93d15b66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetNextDayRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 191559b2b737c4c46ae0387074af0a54 +timeCreated: 1611403300 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs new file mode 100644 index 00000000..4d4700ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetOnlineRewardArg")] + [Serializable] + public class GetOnlineRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs.meta new file mode 100644 index 00000000..55d4f440 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25371c54c66a7b24494b9f1e8d72d2ad +timeCreated: 1611403464 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs new file mode 100644 index 00000000..77322703 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetOnlineRewardRes")] + [Serializable] + public class GetOnlineRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs.meta new file mode 100644 index 00000000..3a2d47bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOnlineRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ce440c8966836e4a99eae59ce2267a7 +timeCreated: 1611403803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefArg.cs new file mode 100644 index 00000000..fe110b02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetOtherGuildBriefArg")] + [Serializable] + public class GetOtherGuildBriefArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefArg.cs.meta new file mode 100644 index 00000000..0ddf83cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9609be9588b70a747815194f227715b0 +timeCreated: 1611404183 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefRes.cs new file mode 100644 index 00000000..2fd43222 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefRes.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetOtherGuildBriefRes")] + [Serializable] + public class GetOtherGuildBriefRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "leadername", DataFormat = DataFormat.Default)] + public string leadername + { + get + { + return this._leadername ?? ""; + } + set + { + this._leadername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leadernameSpecified + { + get + { + return this._leadername != null; + } + set + { + bool flag = value == (this._leadername == null); + if (flag) + { + this._leadername = (value ? this.leadername : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "leaderid", DataFormat = DataFormat.TwosComplement)] + public ulong leaderid + { + get + { + return this._leaderid ?? 0UL; + } + set + { + this._leaderid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderidSpecified + { + get + { + return this._leaderid != null; + } + set + { + bool flag = value == (this._leaderid == null); + if (flag) + { + this._leaderid = (value ? new ulong?(this.leaderid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "guildlevel", DataFormat = DataFormat.TwosComplement)] + public uint guildlevel + { + get + { + return this._guildlevel ?? 0u; + } + set + { + this._guildlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildlevelSpecified + { + get + { + return this._guildlevel != null; + } + set + { + bool flag = value == (this._guildlevel == null); + if (flag) + { + this._guildlevel = (value ? new uint?(this.guildlevel) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public uint icon + { + get + { + return this._icon ?? 0u; + } + set + { + this._icon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new uint?(this.icon) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "announcement", DataFormat = DataFormat.Default)] + public string announcement + { + get + { + return this._announcement ?? ""; + } + set + { + this._announcement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool announcementSpecified + { + get + { + return this._announcement != null; + } + set + { + bool flag = value == (this._announcement == null); + if (flag) + { + this._announcement = (value ? this.announcement : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "currentcount", DataFormat = DataFormat.TwosComplement)] + public uint currentcount + { + get + { + return this._currentcount ?? 0u; + } + set + { + this._currentcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currentcountSpecified + { + get + { + return this._currentcount != null; + } + set + { + bool flag = value == (this._currentcount == null); + if (flag) + { + this._currentcount = (value ? new uint?(this.currentcount) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)] + public uint allcount + { + get + { + return this._allcount ?? 0u; + } + set + { + this._allcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allcountSpecified + { + get + { + return this._allcount != null; + } + set + { + bool flag = value == (this._allcount == null); + if (flag) + { + this._allcount = (value ? new uint?(this.allcount) : null); + } + } + } + + private ErrorCode? _errorcode; + + private string _guildname; + + private string _leadername; + + private ulong? _leaderid; + + private uint? _guildlevel; + + private uint? _icon; + + private string _announcement; + + private uint? _currentcount; + + private uint? _allcount; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializeleadername() + { + return this.leadernameSpecified; + } + + private void Resetleadername() + { + this.leadernameSpecified = false; + } + + private bool ShouldSerializeleaderid() + { + return this.leaderidSpecified; + } + + private void Resetleaderid() + { + this.leaderidSpecified = false; + } + + private bool ShouldSerializeguildlevel() + { + return this.guildlevelSpecified; + } + + private void Resetguildlevel() + { + this.guildlevelSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + private bool ShouldSerializeannouncement() + { + return this.announcementSpecified; + } + + private void Resetannouncement() + { + this.announcementSpecified = false; + } + + private bool ShouldSerializecurrentcount() + { + return this.currentcountSpecified; + } + + private void Resetcurrentcount() + { + this.currentcountSpecified = false; + } + + private bool ShouldSerializeallcount() + { + return this.allcountSpecified; + } + + private void Resetallcount() + { + this.allcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefRes.cs.meta new file mode 100644 index 00000000..0d434236 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherGuildBriefRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 52c121fd805c4524583d120f0353addd +timeCreated: 1611403709 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusArg.cs new file mode 100644 index 00000000..6e2d0ffa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetOtherMentorStatusArg")] + [Serializable] + public class GetOtherMentorStatusArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusArg.cs.meta new file mode 100644 index 00000000..48e74a67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2c2d97c2d5e30144b720c5f0763151c +timeCreated: 1611404845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusRes.cs new file mode 100644 index 00000000..d5b9b8d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetOtherMentorStatusRes")] + [Serializable] + public class GetOtherMentorStatusRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "status", DataFormat = DataFormat.TwosComplement)] + public MentorApplyStatus status + { + get + { + return this._status ?? MentorApplyStatus.MentorApplyMaster; + } + set + { + this._status = new MentorApplyStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statusSpecified + { + get + { + return this._status != null; + } + set + { + bool flag = value == (this._status == null); + if (flag) + { + this._status = (value ? new MentorApplyStatus?(this.status) : null); + } + } + } + + private ErrorCode? _error; + + private MentorApplyStatus? _status; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializestatus() + { + return this.statusSpecified; + } + + private void Resetstatus() + { + this.statusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusRes.cs.meta new file mode 100644 index 00000000..aef9278c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetOtherMentorStatusRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58b693707e0c13a45a0a541d5366a092 +timeCreated: 1611403759 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoArg.cs new file mode 100644 index 00000000..884a7b16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerDetailInfoArg")] + [Serializable] + public class GetPartnerDetailInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoArg.cs.meta new file mode 100644 index 00000000..e3d36ace --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d20e137fb06ff224e999a7dbd916876c +timeCreated: 1611404593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoRes.cs new file mode 100644 index 00000000..029b2b23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoRes.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerDetailInfoRes")] + [Serializable] + public class GetPartnerDetailInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + [ProtoMember(3, IsRequired = false, Name = "shop_redpoint", DataFormat = DataFormat.Default)] + public bool shop_redpoint + { + get + { + return this._shop_redpoint ?? false; + } + set + { + this._shop_redpoint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool shop_redpointSpecified + { + get + { + return this._shop_redpoint != null; + } + set + { + bool flag = value == (this._shop_redpoint == null); + if (flag) + { + this._shop_redpoint = (value ? new bool?(this.shop_redpoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "liveness_redpoint", DataFormat = DataFormat.Default)] + public bool liveness_redpoint + { + get + { + return this._liveness_redpoint ?? false; + } + set + { + this._liveness_redpoint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveness_redpointSpecified + { + get + { + return this._liveness_redpoint != null; + } + set + { + bool flag = value == (this._liveness_redpoint == null); + if (flag) + { + this._liveness_redpoint = (value ? new bool?(this.liveness_redpoint) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "degree", DataFormat = DataFormat.TwosComplement)] + public uint degree + { + get + { + return this._degree ?? 0u; + } + set + { + this._degree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool degreeSpecified + { + get + { + return this._degree != null; + } + set + { + bool flag = value == (this._degree == null); + if (flag) + { + this._degree = (value ? new uint?(this.degree) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "partnerid", DataFormat = DataFormat.TwosComplement)] + public ulong partnerid + { + get + { + return this._partnerid ?? 0UL; + } + set + { + this._partnerid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool partneridSpecified + { + get + { + return this._partnerid != null; + } + set + { + bool flag = value == (this._partnerid == null); + if (flag) + { + this._partnerid = (value ? new ulong?(this.partnerid) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _members = new List(); + + private bool? _shop_redpoint; + + private bool? _liveness_redpoint; + + private uint? _degree; + + private uint? _level; + + private ulong? _partnerid; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeshop_redpoint() + { + return this.shop_redpointSpecified; + } + + private void Resetshop_redpoint() + { + this.shop_redpointSpecified = false; + } + + private bool ShouldSerializeliveness_redpoint() + { + return this.liveness_redpointSpecified; + } + + private void Resetliveness_redpoint() + { + this.liveness_redpointSpecified = false; + } + + private bool ShouldSerializedegree() + { + return this.degreeSpecified; + } + + private void Resetdegree() + { + this.degreeSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializepartnerid() + { + return this.partneridSpecified; + } + + private void Resetpartnerid() + { + this.partneridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoRes.cs.meta new file mode 100644 index 00000000..06d70747 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerDetailInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ebf00ea157a1584d8bfab3ad7e89bfe +timeCreated: 1611403206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs new file mode 100644 index 00000000..2bb103fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerInfoArg")] + [Serializable] + public class GetPartnerInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs.meta new file mode 100644 index 00000000..7dbc3bba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85285e7f3a4fee1408426d05ec92e37d +timeCreated: 1611404051 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs new file mode 100644 index 00000000..488bd587 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerInfoRes")] + [Serializable] + public class GetPartnerInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public ulong id + { + get + { + return this._id ?? 0UL; + } + set + { + this._id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new ulong?(this.id) : null); + } + } + } + + [ProtoMember(2, Name = "memberids", DataFormat = DataFormat.TwosComplement)] + public List memberids + { + get + { + return this._memberids; + } + } + + [ProtoMember(3, IsRequired = false, Name = "degree", DataFormat = DataFormat.TwosComplement)] + public uint degree + { + get + { + return this._degree ?? 0u; + } + set + { + this._degree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool degreeSpecified + { + get + { + return this._degree != null; + } + set + { + bool flag = value == (this._degree == null); + if (flag) + { + this._degree = (value ? new uint?(this.degree) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "last_leave_time", DataFormat = DataFormat.TwosComplement)] + public uint last_leave_time + { + get + { + return this._last_leave_time ?? 0u; + } + set + { + this._last_leave_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_leave_timeSpecified + { + get + { + return this._last_leave_time != null; + } + set + { + bool flag = value == (this._last_leave_time == null); + if (flag) + { + this._last_leave_time = (value ? new uint?(this.last_leave_time) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "shop_redpoint", DataFormat = DataFormat.Default)] + public bool shop_redpoint + { + get + { + return this._shop_redpoint ?? false; + } + set + { + this._shop_redpoint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool shop_redpointSpecified + { + get + { + return this._shop_redpoint != null; + } + set + { + bool flag = value == (this._shop_redpoint == null); + if (flag) + { + this._shop_redpoint = (value ? new bool?(this.shop_redpoint) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "liveness_redpoint", DataFormat = DataFormat.Default)] + public bool liveness_redpoint + { + get + { + return this._liveness_redpoint ?? false; + } + set + { + this._liveness_redpoint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveness_redpointSpecified + { + get + { + return this._liveness_redpoint != null; + } + set + { + bool flag = value == (this._liveness_redpoint == null); + if (flag) + { + this._liveness_redpoint = (value ? new bool?(this.liveness_redpoint) : null); + } + } + } + + private ulong? _id; + + private readonly List _memberids = new List(); + + private uint? _degree; + + private uint? _level; + + private uint? _last_leave_time; + + private bool? _shop_redpoint; + + private bool? _liveness_redpoint; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializedegree() + { + return this.degreeSpecified; + } + + private void Resetdegree() + { + this.degreeSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializelast_leave_time() + { + return this.last_leave_timeSpecified; + } + + private void Resetlast_leave_time() + { + this.last_leave_timeSpecified = false; + } + + private bool ShouldSerializeshop_redpoint() + { + return this.shop_redpointSpecified; + } + + private void Resetshop_redpoint() + { + this.shop_redpointSpecified = false; + } + + private bool ShouldSerializeliveness_redpoint() + { + return this.liveness_redpointSpecified; + } + + private void Resetliveness_redpoint() + { + this.liveness_redpointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs.meta new file mode 100644 index 00000000..62225613 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c803c057d44c8cb4ca1b8fe83c494559 +timeCreated: 1611404533 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessArg.cs new file mode 100644 index 00000000..6ef82752 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerLivenessArg")] + [Serializable] + public class GetPartnerLivenessArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessArg.cs.meta new file mode 100644 index 00000000..6f5569cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98a322ca0245855488e4f30ad29eb719 +timeCreated: 1611404191 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessRes.cs new file mode 100644 index 00000000..a7a8140a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerLivenessRes")] + [Serializable] + public class GetPartnerLivenessRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "liveness", DataFormat = DataFormat.TwosComplement)] + public uint liveness + { + get + { + return this._liveness ?? 0u; + } + set + { + this._liveness = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool livenessSpecified + { + get + { + return this._liveness != null; + } + set + { + bool flag = value == (this._liveness == null); + if (flag) + { + this._liveness = (value ? new uint?(this.liveness) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "takedchest", DataFormat = DataFormat.TwosComplement)] + public uint takedchest + { + get + { + return this._takedchest ?? 0u; + } + set + { + this._takedchest = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool takedchestSpecified + { + get + { + return this._takedchest != null; + } + set + { + bool flag = value == (this._takedchest == null); + if (flag) + { + this._takedchest = (value ? new uint?(this.takedchest) : null); + } + } + } + + [ProtoMember(4, Name = "record", DataFormat = DataFormat.Default)] + public List record + { + get + { + return this._record; + } + } + + private ErrorCode? _result; + + private uint? _liveness; + + private uint? _takedchest; + + private readonly List _record = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeliveness() + { + return this.livenessSpecified; + } + + private void Resetliveness() + { + this.livenessSpecified = false; + } + + private bool ShouldSerializetakedchest() + { + return this.takedchestSpecified; + } + + private void Resettakedchest() + { + this.takedchestSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessRes.cs.meta new file mode 100644 index 00000000..c04186a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerLivenessRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 304e66bf881ae1941bfc61e776dbcaf2 +timeCreated: 1611403520 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopArg.cs new file mode 100644 index 00000000..dca47995 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerShopArg")] + [Serializable] + public class GetPartnerShopArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopArg.cs.meta new file mode 100644 index 00000000..aafcf0af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 211b57147f99e68458e8a559e28a9017 +timeCreated: 1611403412 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordArg.cs new file mode 100644 index 00000000..5b31e97c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerShopRecordArg")] + [Serializable] + public class GetPartnerShopRecordArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordArg.cs.meta new file mode 100644 index 00000000..7ae85c5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b92a46ef2fa0e4741b6d3dee07686764 +timeCreated: 1611404409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordRes.cs new file mode 100644 index 00000000..813abac6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerShopRecordRes")] + [Serializable] + public class GetPartnerShopRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "record", DataFormat = DataFormat.Default)] + public List record + { + get + { + return this._record; + } + } + + private ErrorCode? _result; + + private readonly List _record = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordRes.cs.meta new file mode 100644 index 00000000..fb915ecd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b359b428a180af42b5e88f89603e775 +timeCreated: 1611404204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRes.cs new file mode 100644 index 00000000..4d7f97cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPartnerShopRes")] + [Serializable] + public class GetPartnerShopRes : IExtensible + { + [ProtoMember(1, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + [ProtoMember(2, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private readonly List _item = new List(); + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRes.cs.meta new file mode 100644 index 00000000..1580f62b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPartnerShopRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c222a5fedbbb23c4492e5d1c8c2b4c96 +timeCreated: 1611404493 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs new file mode 100644 index 00000000..14d1c186 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPayAllInfoArg")] + [Serializable] + public class GetPayAllInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs.meta new file mode 100644 index 00000000..ee539740 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7b60785c73d0524abdf9280d0e0e82c +timeCreated: 1611404532 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs new file mode 100644 index 00000000..61453a2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPayAllInfoRes")] + [Serializable] + public class GetPayAllInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayAllInfo info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private ErrorCode? _errcode; + + private PayAllInfo _info = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs.meta new file mode 100644 index 00000000..f5965bb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPayAllInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec73825255d94fa4cb10a0792d694e0d +timeCreated: 1611404787 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardArg.cs new file mode 100644 index 00000000..2839fcfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPayRewardArg")] + [Serializable] + public class GetPayRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardArg.cs.meta new file mode 100644 index 00000000..e8dd1f13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d29451109d24f5409718d5358c19d11 +timeCreated: 1611404103 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardRes.cs new file mode 100644 index 00000000..fd69d586 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPayRewardRes")] + [Serializable] + public class GetPayRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "cdTime", DataFormat = DataFormat.TwosComplement)] + public uint cdTime + { + get + { + return this._cdTime ?? 0u; + } + set + { + this._cdTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cdTimeSpecified + { + get + { + return this._cdTime != null; + } + set + { + bool flag = value == (this._cdTime == null); + if (flag) + { + this._cdTime = (value ? new uint?(this.cdTime) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _cdTime; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecdTime() + { + return this.cdTimeSpecified; + } + + private void ResetcdTime() + { + this.cdTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardRes.cs.meta new file mode 100644 index 00000000..0c8fe473 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPayRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d8a66a9fb15203438be1850e71f5470 +timeCreated: 1611403696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardArg.cs new file mode 100644 index 00000000..8bf812af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPlatShareAwardArg")] + [Serializable] + public class GetPlatShareAwardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "scene_id", DataFormat = DataFormat.TwosComplement)] + public uint scene_id + { + get + { + return this._scene_id ?? 0u; + } + set + { + this._scene_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scene_idSpecified + { + get + { + return this._scene_id != null; + } + set + { + bool flag = value == (this._scene_id == null); + if (flag) + { + this._scene_id = (value ? new uint?(this.scene_id) : null); + } + } + } + + private uint? _scene_id; + + private IExtension extensionObject; + + private bool ShouldSerializescene_id() + { + return this.scene_idSpecified; + } + + private void Resetscene_id() + { + this.scene_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardArg.cs.meta new file mode 100644 index 00000000..16120953 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2abd715ed808114388cafe1cef6f559 +timeCreated: 1611404728 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardRes.cs new file mode 100644 index 00000000..8254585a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPlatShareAwardRes")] + [Serializable] + public class GetPlatShareAwardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardRes.cs.meta new file mode 100644 index 00000000..3cb89d8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatShareAwardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e36d0e232f0011a46baf95495ab3a004 +timeCreated: 1611404733 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestArg.cs new file mode 100644 index 00000000..dd1cf491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPlatformShareChestArg")] + [Serializable] + public class GetPlatformShareChestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "box_id", DataFormat = DataFormat.TwosComplement)] + public uint box_id + { + get + { + return this._box_id ?? 0u; + } + set + { + this._box_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool box_idSpecified + { + get + { + return this._box_id != null; + } + set + { + bool flag = value == (this._box_id == null); + if (flag) + { + this._box_id = (value ? new uint?(this.box_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "open_key", DataFormat = DataFormat.Default)] + public string open_key + { + get + { + return this._open_key ?? ""; + } + set + { + this._open_key = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool open_keySpecified + { + get + { + return this._open_key != null; + } + set + { + bool flag = value == (this._open_key == null); + if (flag) + { + this._open_key = (value ? this.open_key : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "share_type", DataFormat = DataFormat.TwosComplement)] + public uint share_type + { + get + { + return this._share_type ?? 0u; + } + set + { + this._share_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool share_typeSpecified + { + get + { + return this._share_type != null; + } + set + { + bool flag = value == (this._share_type == null); + if (flag) + { + this._share_type = (value ? new uint?(this.share_type) : null); + } + } + } + + private uint? _box_id; + + private string _open_key; + + private uint? _share_type; + + private IExtension extensionObject; + + private bool ShouldSerializebox_id() + { + return this.box_idSpecified; + } + + private void Resetbox_id() + { + this.box_idSpecified = false; + } + + private bool ShouldSerializeopen_key() + { + return this.open_keySpecified; + } + + private void Resetopen_key() + { + this.open_keySpecified = false; + } + + private bool ShouldSerializeshare_type() + { + return this.share_typeSpecified; + } + + private void Resetshare_type() + { + this.share_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestArg.cs.meta new file mode 100644 index 00000000..f2be2e8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4472af032b9e8914c8a7728f121c05e0 +timeCreated: 1611403644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestRes.cs new file mode 100644 index 00000000..51dbbf0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetPlatformShareChestRes")] + [Serializable] + public class GetPlatformShareChestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "boxid", DataFormat = DataFormat.Default)] + public string boxid + { + get + { + return this._boxid ?? ""; + } + set + { + this._boxid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool boxidSpecified + { + get + { + return this._boxid != null; + } + set + { + bool flag = value == (this._boxid == null); + if (flag) + { + this._boxid = (value ? this.boxid : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "act_id", DataFormat = DataFormat.TwosComplement)] + public uint act_id + { + get + { + return this._act_id ?? 0u; + } + set + { + this._act_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool act_idSpecified + { + get + { + return this._act_id != null; + } + set + { + bool flag = value == (this._act_id == null); + if (flag) + { + this._act_id = (value ? new uint?(this.act_id) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "url", DataFormat = DataFormat.Default)] + public string url + { + get + { + return this._url ?? ""; + } + set + { + this._url = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool urlSpecified + { + get + { + return this._url != null; + } + set + { + bool flag = value == (this._url == null); + if (flag) + { + this._url = (value ? this.url : null); + } + } + } + + private ErrorCode? _errorcode; + + private string _boxid; + + private uint? _act_id; + + private string _url; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeboxid() + { + return this.boxidSpecified; + } + + private void Resetboxid() + { + this.boxidSpecified = false; + } + + private bool ShouldSerializeact_id() + { + return this.act_idSpecified; + } + + private void Resetact_id() + { + this.act_idSpecified = false; + } + + private bool ShouldSerializeurl() + { + return this.urlSpecified; + } + + private void Reseturl() + { + this.urlSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestRes.cs.meta new file mode 100644 index 00000000..9b30c255 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetPlatformShareChestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81b3e33386256fd4ba06acd36938fa08 +timeCreated: 1611404037 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetQADataReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetQADataReq.cs new file mode 100644 index 00000000..2c24eb9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetQADataReq.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetQADataReq")] + [Serializable] + public class GetQADataReq : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetQADataReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetQADataReq.cs.meta new file mode 100644 index 00000000..4fba18a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetQADataReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e2868198a0cff841aaccacd22f40946 +timeCreated: 1611403509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetQADataRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetQADataRes.cs new file mode 100644 index 00000000..1fa32190 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetQADataRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetQADataRes")] + [Serializable] + public class GetQADataRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "qid", DataFormat = DataFormat.TwosComplement)] + public uint qid + { + get + { + return this._qid ?? 0u; + } + set + { + this._qid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qidSpecified + { + get + { + return this._qid != null; + } + set + { + bool flag = value == (this._qid == null); + if (flag) + { + this._qid = (value ? new uint?(this.qid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "serialnum", DataFormat = DataFormat.TwosComplement)] + public uint serialnum + { + get + { + return this._serialnum ?? 0u; + } + set + { + this._serialnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serialnumSpecified + { + get + { + return this._serialnum != null; + } + set + { + bool flag = value == (this._serialnum == null); + if (flag) + { + this._serialnum = (value ? new uint?(this.serialnum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public uint leftTime + { + get + { + return this._leftTime ?? 0u; + } + set + { + this._leftTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new uint?(this.leftTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private uint? _qid; + + private uint? _serialnum; + + private uint? _leftTime; + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeqid() + { + return this.qidSpecified; + } + + private void Resetqid() + { + this.qidSpecified = false; + } + + private bool ShouldSerializeserialnum() + { + return this.serialnumSpecified; + } + + private void Resetserialnum() + { + this.serialnumSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetQADataRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetQADataRes.cs.meta new file mode 100644 index 00000000..6ee8c7cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetQADataRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 337127d9ba7ba00489bc422f928f3d37 +timeCreated: 1611403552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankArg.cs new file mode 100644 index 00000000..7bed97a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetRiftGuildRankArg")] + [Serializable] + public class GetRiftGuildRankArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankArg.cs.meta new file mode 100644 index 00000000..819cce8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99567fcf3509cc245b252b9b3f435bda +timeCreated: 1611404195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankRes.cs new file mode 100644 index 00000000..2923d2f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetRiftGuildRankRes")] + [Serializable] + public class GetRiftGuildRankRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "curRiftID", DataFormat = DataFormat.TwosComplement)] + public int curRiftID + { + get + { + return this._curRiftID ?? 0; + } + set + { + this._curRiftID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curRiftIDSpecified + { + get + { + return this._curRiftID != null; + } + set + { + bool flag = value == (this._curRiftID == null); + if (flag) + { + this._curRiftID = (value ? new int?(this.curRiftID) : null); + } + } + } + + [ProtoMember(3, Name = "buffIDs", DataFormat = DataFormat.Default)] + public List buffIDs + { + get + { + return this._buffIDs; + } + } + + [ProtoMember(4, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + private ErrorCode? _error; + + private int? _curRiftID; + + private readonly List _buffIDs = new List(); + + private readonly List _infos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecurRiftID() + { + return this.curRiftIDSpecified; + } + + private void ResetcurRiftID() + { + this.curRiftIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankRes.cs.meta new file mode 100644 index 00000000..b89b9972 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetRiftGuildRankRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebe72afbd8749624f98c0f61b4825324 +timeCreated: 1611404785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs new file mode 100644 index 00000000..daf8d263 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetRiskMapInfosArg")] + [Serializable] + public class GetRiskMapInfosArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mapID", DataFormat = DataFormat.TwosComplement)] + public int mapID + { + get + { + return this._mapID ?? 0; + } + set + { + this._mapID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapIDSpecified + { + get + { + return this._mapID != null; + } + set + { + bool flag = value == (this._mapID == null); + if (flag) + { + this._mapID = (value ? new int?(this.mapID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isRefresh", DataFormat = DataFormat.Default)] + public bool isRefresh + { + get + { + return this._isRefresh ?? false; + } + set + { + this._isRefresh = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isRefreshSpecified + { + get + { + return this._isRefresh != null; + } + set + { + bool flag = value == (this._isRefresh == null); + if (flag) + { + this._isRefresh = (value ? new bool?(this.isRefresh) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "onlyCountInfo", DataFormat = DataFormat.Default)] + public bool onlyCountInfo + { + get + { + return this._onlyCountInfo ?? false; + } + set + { + this._onlyCountInfo = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onlyCountInfoSpecified + { + get + { + return this._onlyCountInfo != null; + } + set + { + bool flag = value == (this._onlyCountInfo == null); + if (flag) + { + this._onlyCountInfo = (value ? new bool?(this.onlyCountInfo) : null); + } + } + } + + private int? _mapID; + + private bool? _isRefresh; + + private bool? _onlyCountInfo; + + private IExtension extensionObject; + + private bool ShouldSerializemapID() + { + return this.mapIDSpecified; + } + + private void ResetmapID() + { + this.mapIDSpecified = false; + } + + private bool ShouldSerializeisRefresh() + { + return this.isRefreshSpecified; + } + + private void ResetisRefresh() + { + this.isRefreshSpecified = false; + } + + private bool ShouldSerializeonlyCountInfo() + { + return this.onlyCountInfoSpecified; + } + + private void ResetonlyCountInfo() + { + this.onlyCountInfoSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs.meta new file mode 100644 index 00000000..6c614b58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0ea5c43928531945b86c651d24121ec +timeCreated: 1611404488 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs new file mode 100644 index 00000000..4eede452 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetRiskMapInfosRes")] + [Serializable] + public class GetRiskMapInfosRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "mapInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RiskMapInfos mapInfo + { + get + { + return this._mapInfo; + } + set + { + this._mapInfo = value; + } + } + + private ErrorCode? _error; + + private RiskMapInfos _mapInfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs.meta new file mode 100644 index 00000000..716d603f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetRiskMapInfosRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfda78db9be740047a1273e100d849a2 +timeCreated: 1611404695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoArg.cs new file mode 100644 index 00000000..d884d6a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSkyCraftEliInfoArg")] + [Serializable] + public class GetSkyCraftEliInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoArg.cs.meta new file mode 100644 index 00000000..2a53715e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e8460e3874e61349b7e3f79971983d8 +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoRes.cs new file mode 100644 index 00000000..0e4ac965 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoRes.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSkyCraftEliInfoRes")] + [Serializable] + public class GetSkyCraftEliInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "rounds", DataFormat = DataFormat.Default)] + public List rounds + { + get + { + return this._rounds; + } + } + + [ProtoMember(3, IsRequired = false, Name = "chamption", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkyTeamDetail chamption + { + get + { + return this._chamption; + } + set + { + this._chamption = value; + } + } + + private ErrorCode? _result; + + private readonly List _rounds = new List(); + + private SkyTeamDetail _chamption = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoRes.cs.meta new file mode 100644 index 00000000..b47ec37a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftEliInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d57d153cfe9c4645adb005b5af062d0 +timeCreated: 1611404104 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs new file mode 100644 index 00000000..d265c89e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSkyCraftInfoArg")] + [Serializable] + public class GetSkyCraftInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs.meta new file mode 100644 index 00000000..badb6cd1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 223adcbd7b406eb45a3b8993577900b2 +timeCreated: 1611403421 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs new file mode 100644 index 00000000..f94a5750 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSkyCraftInfoRes")] + [Serializable] + public class GetSkyCraftInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "stid", DataFormat = DataFormat.TwosComplement)] + public ulong stid + { + get + { + return this._stid ?? 0UL; + } + set + { + this._stid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stidSpecified + { + get + { + return this._stid != null; + } + set + { + bool flag = value == (this._stid == null); + if (flag) + { + this._stid = (value ? new ulong?(this.stid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "total_num", DataFormat = DataFormat.TwosComplement)] + public uint total_num + { + get + { + return this._total_num ?? 0u; + } + set + { + this._total_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool total_numSpecified + { + get + { + return this._total_num != null; + } + set + { + bool flag = value == (this._total_num == null); + if (flag) + { + this._total_num = (value ? new uint?(this.total_num) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "winrate", DataFormat = DataFormat.FixedSize)] + public float winrate + { + get + { + return this._winrate ?? 0f; + } + set + { + this._winrate = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winrateSpecified + { + get + { + return this._winrate != null; + } + set + { + bool flag = value == (this._winrate == null); + if (flag) + { + this._winrate = (value ? new float?(this.winrate) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(7, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + [ProtoMember(8, IsRequired = false, Name = "today_num", DataFormat = DataFormat.TwosComplement)] + public uint today_num + { + get + { + return this._today_num ?? 0u; + } + set + { + this._today_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool today_numSpecified + { + get + { + return this._today_num != null; + } + set + { + bool flag = value == (this._today_num == null); + if (flag) + { + this._today_num = (value ? new uint?(this.today_num) : null); + } + } + } + + private ErrorCode? _result; + + private ulong? _stid; + + private string _name; + + private uint? _total_num; + + private float? _winrate; + + private uint? _rank; + + private readonly List _members = new List(); + + private uint? _today_num; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializestid() + { + return this.stidSpecified; + } + + private void Resetstid() + { + this.stidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetotal_num() + { + return this.total_numSpecified; + } + + private void Resettotal_num() + { + this.total_numSpecified = false; + } + + private bool ShouldSerializewinrate() + { + return this.winrateSpecified; + } + + private void Resetwinrate() + { + this.winrateSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializetoday_num() + { + return this.today_numSpecified; + } + + private void Resettoday_num() + { + this.today_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs.meta new file mode 100644 index 00000000..726f3952 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b096cc7fd5a747747a5a079f1727674b +timeCreated: 1611404352 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordArg.cs new file mode 100644 index 00000000..7ae2a635 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSkyCraftRecordArg")] + [Serializable] + public class GetSkyCraftRecordArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordArg.cs.meta new file mode 100644 index 00000000..e352daa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a085e15c703e0f4e8d25b810539e4ab +timeCreated: 1611403887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordRes.cs new file mode 100644 index 00000000..2031db5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordRes.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSkyCraftRecordRes")] + [Serializable] + public class GetSkyCraftRecordRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "winnum", DataFormat = DataFormat.TwosComplement)] + public uint winnum + { + get + { + return this._winnum ?? 0u; + } + set + { + this._winnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winnumSpecified + { + get + { + return this._winnum != null; + } + set + { + bool flag = value == (this._winnum == null); + if (flag) + { + this._winnum = (value ? new uint?(this.winnum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "losenum", DataFormat = DataFormat.TwosComplement)] + public uint losenum + { + get + { + return this._losenum ?? 0u; + } + set + { + this._losenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losenumSpecified + { + get + { + return this._losenum != null; + } + set + { + bool flag = value == (this._losenum == null); + if (flag) + { + this._losenum = (value ? new uint?(this.losenum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "winrate", DataFormat = DataFormat.FixedSize)] + public float winrate + { + get + { + return this._winrate ?? 0f; + } + set + { + this._winrate = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winrateSpecified + { + get + { + return this._winrate != null; + } + set + { + bool flag = value == (this._winrate == null); + if (flag) + { + this._winrate = (value ? new float?(this.winrate) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "max_continuewin", DataFormat = DataFormat.TwosComplement)] + public uint max_continuewin + { + get + { + return this._max_continuewin ?? 0u; + } + set + { + this._max_continuewin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_continuewinSpecified + { + get + { + return this._max_continuewin != null; + } + set + { + bool flag = value == (this._max_continuewin == null); + if (flag) + { + this._max_continuewin = (value ? new uint?(this.max_continuewin) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "max_continuelose", DataFormat = DataFormat.TwosComplement)] + public uint max_continuelose + { + get + { + return this._max_continuelose ?? 0u; + } + set + { + this._max_continuelose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_continueloseSpecified + { + get + { + return this._max_continuelose != null; + } + set + { + bool flag = value == (this._max_continuelose == null); + if (flag) + { + this._max_continuelose = (value ? new uint?(this.max_continuelose) : null); + } + } + } + + [ProtoMember(7, Name = "records", DataFormat = DataFormat.Default)] + public List records + { + get + { + return this._records; + } + } + + private ErrorCode? _result; + + private uint? _winnum; + + private uint? _losenum; + + private float? _winrate; + + private uint? _max_continuewin; + + private uint? _max_continuelose; + + private readonly List _records = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializewinnum() + { + return this.winnumSpecified; + } + + private void Resetwinnum() + { + this.winnumSpecified = false; + } + + private bool ShouldSerializelosenum() + { + return this.losenumSpecified; + } + + private void Resetlosenum() + { + this.losenumSpecified = false; + } + + private bool ShouldSerializewinrate() + { + return this.winrateSpecified; + } + + private void Resetwinrate() + { + this.winrateSpecified = false; + } + + private bool ShouldSerializemax_continuewin() + { + return this.max_continuewinSpecified; + } + + private void Resetmax_continuewin() + { + this.max_continuewinSpecified = false; + } + + private bool ShouldSerializemax_continuelose() + { + return this.max_continueloseSpecified; + } + + private void Resetmax_continuelose() + { + this.max_continueloseSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordRes.cs.meta new file mode 100644 index 00000000..afa1fd98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftRecordRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09ae8a0d8c42cbc4f85c84cf093115c1 +timeCreated: 1611403158 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs new file mode 100644 index 00000000..9c275c04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSkyCraftTeamInfoArg")] + [Serializable] + public class GetSkyCraftTeamInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "stid", DataFormat = DataFormat.TwosComplement)] + public ulong stid + { + get + { + return this._stid ?? 0UL; + } + set + { + this._stid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stidSpecified + { + get + { + return this._stid != null; + } + set + { + bool flag = value == (this._stid == null); + if (flag) + { + this._stid = (value ? new ulong?(this.stid) : null); + } + } + } + + private ulong? _stid; + + private IExtension extensionObject; + + private bool ShouldSerializestid() + { + return this.stidSpecified; + } + + private void Resetstid() + { + this.stidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs.meta new file mode 100644 index 00000000..c7dd5f8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e3f9f0dcb05986d489239bc1acd2468f +timeCreated: 1611404735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs new file mode 100644 index 00000000..7006103b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSkyCraftTeamInfoRes")] + [Serializable] + public class GetSkyCraftTeamInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "team", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkyTeamDetail team + { + get + { + return this._team; + } + set + { + this._team = value; + } + } + + private ErrorCode? _result; + + private SkyTeamDetail _team = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs.meta new file mode 100644 index 00000000..f47ca11a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSkyCraftTeamInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47c19dc021f0df842b424ba22265495b +timeCreated: 1611403655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeArg.cs new file mode 100644 index 00000000..8c735c2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSpActivityBigPrizeArg")] + [Serializable] + public class GetSpActivityBigPrizeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + private uint? _actid; + + private IExtension extensionObject; + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeArg.cs.meta new file mode 100644 index 00000000..b1d005a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba57b9aafae91194fb86272e0fab5529 +timeCreated: 1611404435 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeRes.cs new file mode 100644 index 00000000..d04bfbfc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSpActivityBigPrizeRes")] + [Serializable] + public class GetSpActivityBigPrizeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeRes.cs.meta new file mode 100644 index 00000000..8dd7705f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityBigPrizeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5168bdffc5bde74b97dba7b5998c434 +timeCreated: 1611404625 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardArg.cs new file mode 100644 index 00000000..60432c3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSpActivityRewardArg")] + [Serializable] + public class GetSpActivityRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "taskid", DataFormat = DataFormat.TwosComplement)] + public uint taskid + { + get + { + return this._taskid ?? 0u; + } + set + { + this._taskid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskidSpecified + { + get + { + return this._taskid != null; + } + set + { + bool flag = value == (this._taskid == null); + if (flag) + { + this._taskid = (value ? new uint?(this.taskid) : null); + } + } + } + + private uint? _actid; + + private uint? _taskid; + + private IExtension extensionObject; + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + private bool ShouldSerializetaskid() + { + return this.taskidSpecified; + } + + private void Resettaskid() + { + this.taskidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardArg.cs.meta new file mode 100644 index 00000000..216d1ee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5df482a59351c4a45bf4081635901f2b +timeCreated: 1611403808 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardRes.cs new file mode 100644 index 00000000..415a379f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSpActivityRewardRes")] + [Serializable] + public class GetSpActivityRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardRes.cs.meta new file mode 100644 index 00000000..b6b5f1da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSpActivityRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23d68dd6d5a902f438e2688543fc9776 +timeCreated: 1611403458 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardArg.cs new file mode 100644 index 00000000..ac837576 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSweepTowerRewardArg")] + [Serializable] + public class GetSweepTowerRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardArg.cs.meta new file mode 100644 index 00000000..d787c535 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb727a843dcec3e4ea92ab7db6cb4aad +timeCreated: 1611404441 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardRes.cs new file mode 100644 index 00000000..cead3d4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSweepTowerRewardRes")] + [Serializable] + public class GetSweepTowerRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardRes.cs.meta new file mode 100644 index 00000000..7ff88ec9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSweepTowerRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a11fc8ab1084b4428c60cd57e3820c1 +timeCreated: 1611403663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardArg.cs new file mode 100644 index 00000000..44fb54e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSystemRewardArg")] + [Serializable] + public class GetSystemRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "RewardUniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong RewardUniqueId + { + get + { + return this._RewardUniqueId ?? 0UL; + } + set + { + this._RewardUniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RewardUniqueIdSpecified + { + get + { + return this._RewardUniqueId != null; + } + set + { + bool flag = value == (this._RewardUniqueId == null); + if (flag) + { + this._RewardUniqueId = (value ? new ulong?(this.RewardUniqueId) : null); + } + } + } + + private ulong? _RewardUniqueId; + + private IExtension extensionObject; + + private bool ShouldSerializeRewardUniqueId() + { + return this.RewardUniqueIdSpecified; + } + + private void ResetRewardUniqueId() + { + this.RewardUniqueIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardArg.cs.meta new file mode 100644 index 00000000..80084522 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe0e4ee4998574545b36f0da0dbd30e2 +timeCreated: 1611404939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardRes.cs new file mode 100644 index 00000000..ced5e6cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetSystemRewardRes")] + [Serializable] + public class GetSystemRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardRes.cs.meta new file mode 100644 index 00000000..ab6b930b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetSystemRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 939def4e2e35aa747b8cb8866ffc0061 +timeCreated: 1611404152 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopArg.cs new file mode 100644 index 00000000..48d03207 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetTowerActivityTopArg")] + [Serializable] + public class GetTowerActivityTopArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopArg.cs.meta new file mode 100644 index 00000000..c6ba36dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b9c07c54f3e4e149947e7b58e4d0a29 +timeCreated: 1611404206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopRes.cs new file mode 100644 index 00000000..e7490202 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetTowerActivityTopRes")] + [Serializable] + public class GetTowerActivityTopRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + [ProtoMember(3, IsRequired = false, Name = "leftResetCount", DataFormat = DataFormat.TwosComplement)] + public int leftResetCount + { + get + { + return this._leftResetCount ?? 0; + } + set + { + this._leftResetCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftResetCountSpecified + { + get + { + return this._leftResetCount != null; + } + set + { + bool flag = value == (this._leftResetCount == null); + if (flag) + { + this._leftResetCount = (value ? new int?(this.leftResetCount) : null); + } + } + } + + private ErrorCode? _error; + + private readonly List _infos = new List(); + + private int? _leftResetCount; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeleftResetCount() + { + return this.leftResetCountSpecified; + } + + private void ResetleftResetCount() + { + this.leftResetCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopRes.cs.meta new file mode 100644 index 00000000..75372258 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerActivityTopRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b8021a784d953e468d3197c08b192a1 +timeCreated: 1611404206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardArg.cs new file mode 100644 index 00000000..c3ee9d06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetTowerFirstPassRewardArg")] + [Serializable] + public class GetTowerFirstPassRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public int floor + { + get + { + return this._floor ?? 0; + } + set + { + this._floor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new int?(this.floor) : null); + } + } + } + + private int? _floor; + + private IExtension extensionObject; + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardArg.cs.meta new file mode 100644 index 00000000..94679e6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75ed62f14cfcb744d8514120c62bd203 +timeCreated: 1611403948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardRes.cs new file mode 100644 index 00000000..975bfb7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetTowerFirstPassRewardRes")] + [Serializable] + public class GetTowerFirstPassRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardRes.cs.meta new file mode 100644 index 00000000..05f0fc48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetTowerFirstPassRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 28575e4849e8f1c4da66b6e6a7b90d6f +timeCreated: 1611403474 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceArg.cs new file mode 100644 index 00000000..dda7d5a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetUnitAppearanceArg")] + [Serializable] + public class GetUnitAppearanceArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "mask", DataFormat = DataFormat.TwosComplement)] + public int mask + { + get + { + return this._mask ?? 0; + } + set + { + this._mask = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maskSpecified + { + get + { + return this._mask != null; + } + set + { + bool flag = value == (this._mask == null); + if (flag) + { + this._mask = (value ? new int?(this.mask) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "petId", DataFormat = DataFormat.TwosComplement)] + public ulong petId + { + get + { + return this._petId ?? 0UL; + } + set + { + this._petId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petIdSpecified + { + get + { + return this._petId != null; + } + set + { + bool flag = value == (this._petId == null); + if (flag) + { + this._petId = (value ? new ulong?(this.petId) : null); + } + } + } + + private ulong? _roleid; + + private int? _mask; + + private uint? _type; + + private ulong? _petId; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializemask() + { + return this.maskSpecified; + } + + private void Resetmask() + { + this.maskSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializepetId() + { + return this.petIdSpecified; + } + + private void ResetpetId() + { + this.petIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceArg.cs.meta new file mode 100644 index 00000000..fa3955f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81e99ea49143d494b8b9ae2856d4237b +timeCreated: 1611404038 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceRes.cs new file mode 100644 index 00000000..2b070591 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetUnitAppearanceRes")] + [Serializable] + public class GetUnitAppearanceRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "UnitAppearance", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearance UnitAppearance + { + get + { + return this._UnitAppearance; + } + set + { + this._UnitAppearance = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private UnitAppearance _UnitAppearance = null; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceRes.cs.meta new file mode 100644 index 00000000..e768754d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetUnitAppearanceRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 943824cd13265354d9247c0bfe117d38 +timeCreated: 1611404154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDArg.cs new file mode 100644 index 00000000..20c242b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWatchInfoByIDArg")] + [Serializable] + public class GetWatchInfoByIDArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + private int? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDArg.cs.meta new file mode 100644 index 00000000..8aa874ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c8b56bb6d88c874fac212f69843ffb9 +timeCreated: 1611403174 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDRes.cs new file mode 100644 index 00000000..939eeba9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWatchInfoByIDRes")] + [Serializable] + public class GetWatchInfoByIDRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "curTime", DataFormat = DataFormat.TwosComplement)] + public int curTime + { + get + { + return this._curTime ?? 0; + } + set + { + this._curTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curTimeSpecified + { + get + { + return this._curTime != null; + } + set + { + bool flag = value == (this._curTime == null); + if (flag) + { + this._curTime = (value ? new int?(this.curTime) : null); + } + } + } + + [ProtoMember(3, Name = "liveRecords", DataFormat = DataFormat.Default)] + public List liveRecords + { + get + { + return this._liveRecords; + } + } + + private ErrorCode? _error; + + private int? _curTime; + + private readonly List _liveRecords = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecurTime() + { + return this.curTimeSpecified; + } + + private void ResetcurTime() + { + this.curTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDRes.cs.meta new file mode 100644 index 00000000..bbf90bf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWatchInfoByIDRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 633877af59a480343a8b163e67f6d977 +timeCreated: 1611403844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoArg.cs new file mode 100644 index 00000000..ec084a33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWeddingInviteInfoArg")] + [Serializable] + public class GetWeddingInviteInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoArg.cs.meta new file mode 100644 index 00000000..dc67ef79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a96ec62886705d344a5a9d970adf7bf8 +timeCreated: 1611404298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoRes.cs new file mode 100644 index 00000000..11da2152 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoRes.cs @@ -0,0 +1,204 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWeddingInviteInfoRes")] + [Serializable] + public class GetWeddingInviteInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "permitstranger", DataFormat = DataFormat.Default)] + public bool permitstranger + { + get + { + return this._permitstranger ?? false; + } + set + { + this._permitstranger = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool permitstrangerSpecified + { + get + { + return this._permitstranger != null; + } + set + { + bool flag = value == (this._permitstranger == null); + if (flag) + { + this._permitstranger = (value ? new bool?(this.permitstranger) : null); + } + } + } + + [ProtoMember(3, Name = "friends", DataFormat = DataFormat.Default)] + public List friends + { + get + { + return this._friends; + } + } + + [ProtoMember(4, Name = "guildmembers", DataFormat = DataFormat.Default)] + public List guildmembers + { + get + { + return this._guildmembers; + } + } + + [ProtoMember(5, Name = "invitelist", DataFormat = DataFormat.Default)] + public List invitelist + { + get + { + return this._invitelist; + } + } + + [ProtoMember(6, Name = "invite_enter", DataFormat = DataFormat.Default)] + public List invite_enter + { + get + { + return this._invite_enter; + } + } + + [ProtoMember(7, Name = "applylist", DataFormat = DataFormat.Default)] + public List applylist + { + get + { + return this._applylist; + } + } + + [ProtoMember(8, IsRequired = false, Name = "weddingid", DataFormat = DataFormat.TwosComplement)] + public ulong weddingid + { + get + { + return this._weddingid ?? 0UL; + } + set + { + this._weddingid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weddingidSpecified + { + get + { + return this._weddingid != null; + } + set + { + bool flag = value == (this._weddingid == null); + if (flag) + { + this._weddingid = (value ? new ulong?(this.weddingid) : null); + } + } + } + + private ErrorCode? _result; + + private bool? _permitstranger; + + private readonly List _friends = new List(); + + private readonly List _guildmembers = new List(); + + private readonly List _invitelist = new List(); + + private readonly List _invite_enter = new List(); + + private readonly List _applylist = new List(); + + private ulong? _weddingid; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializepermitstranger() + { + return this.permitstrangerSpecified; + } + + private void Resetpermitstranger() + { + this.permitstrangerSpecified = false; + } + + private bool ShouldSerializeweddingid() + { + return this.weddingidSpecified; + } + + private void Resetweddingid() + { + this.weddingidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoRes.cs.meta new file mode 100644 index 00000000..53f7a8b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeddingInviteInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77e11799871ac824f810c14b2618cdf5 +timeCreated: 1611403956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoArg.cs new file mode 100644 index 00000000..c923fb4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWeeklyTaskInfoArg")] + [Serializable] + public class GetWeeklyTaskInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoArg.cs.meta new file mode 100644 index 00000000..424233b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98ed3ba875603b148beddcfba3c3d67f +timeCreated: 1611404192 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoRes.cs new file mode 100644 index 00000000..075ca32a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoRes.cs @@ -0,0 +1,311 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWeeklyTaskInfoRes")] + [Serializable] + public class GetWeeklyTaskInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "task", DataFormat = DataFormat.Default)] + public List task + { + get + { + return this._task; + } + } + + [ProtoMember(3, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "askhelp_num", DataFormat = DataFormat.TwosComplement)] + public uint askhelp_num + { + get + { + return this._askhelp_num ?? 0u; + } + set + { + this._askhelp_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool askhelp_numSpecified + { + get + { + return this._askhelp_num != null; + } + set + { + bool flag = value == (this._askhelp_num == null); + if (flag) + { + this._askhelp_num = (value ? new uint?(this.askhelp_num) : null); + } + } + } + + [ProtoMember(5, Name = "rewarded_box", DataFormat = DataFormat.TwosComplement)] + public List rewarded_box + { + get + { + return this._rewarded_box; + } + } + + [ProtoMember(6, IsRequired = false, Name = "accept_level", DataFormat = DataFormat.TwosComplement)] + public uint accept_level + { + get + { + return this._accept_level ?? 0u; + } + set + { + this._accept_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accept_levelSpecified + { + get + { + return this._accept_level != null; + } + set + { + bool flag = value == (this._accept_level == null); + if (flag) + { + this._accept_level = (value ? new uint?(this.accept_level) : null); + } + } + } + + [ProtoMember(7, Name = "helpinfo", DataFormat = DataFormat.Default)] + public List helpinfo + { + get + { + return this._helpinfo; + } + } + + [ProtoMember(8, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "remain_free_refresh_count", DataFormat = DataFormat.TwosComplement)] + public uint remain_free_refresh_count + { + get + { + return this._remain_free_refresh_count ?? 0u; + } + set + { + this._remain_free_refresh_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool remain_free_refresh_countSpecified + { + get + { + return this._remain_free_refresh_count != null; + } + set + { + bool flag = value == (this._remain_free_refresh_count == null); + if (flag) + { + this._remain_free_refresh_count = (value ? new uint?(this.remain_free_refresh_count) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _task = new List(); + + private uint? _score; + + private uint? _askhelp_num; + + private readonly List _rewarded_box = new List(); + + private uint? _accept_level; + + private readonly List _helpinfo = new List(); + + private uint? _lefttime; + + private uint? _remain_free_refresh_count; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializeaskhelp_num() + { + return this.askhelp_numSpecified; + } + + private void Resetaskhelp_num() + { + this.askhelp_numSpecified = false; + } + + private bool ShouldSerializeaccept_level() + { + return this.accept_levelSpecified; + } + + private void Resetaccept_level() + { + this.accept_levelSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + private bool ShouldSerializeremain_free_refresh_count() + { + return this.remain_free_refresh_countSpecified; + } + + private void Resetremain_free_refresh_count() + { + this.remain_free_refresh_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoRes.cs.meta new file mode 100644 index 00000000..919a27aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c85241502020114ebd631c0f35edf6b +timeCreated: 1611403602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardArg.cs new file mode 100644 index 00000000..24d395f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWeeklyTaskRewardArg")] + [Serializable] + public class GetWeeklyTaskRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)] + public uint value + { + get + { + return this._value ?? 0u; + } + set + { + this._value = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool valueSpecified + { + get + { + return this._value != null; + } + set + { + bool flag = value == (this._value == null); + if (flag) + { + this._value = (value ? new uint?(this.value) : null); + } + } + } + + private uint? _type; + + private uint? _value; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializevalue() + { + return this.valueSpecified; + } + + private void Resetvalue() + { + this.valueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardArg.cs.meta new file mode 100644 index 00000000..86842a3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 794898e7618f68748a9abd6254809c85 +timeCreated: 1611403985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardRes.cs new file mode 100644 index 00000000..6b150128 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWeeklyTaskRewardRes")] + [Serializable] + public class GetWeeklyTaskRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardRes.cs.meta new file mode 100644 index 00000000..e2ddbb62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWeeklyTaskRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d74ddfd85a208a84a94f71e91965c9e5 +timeCreated: 1611404634 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateArg.cs new file mode 100644 index 00000000..808018b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWorldBossStateArg")] + [Serializable] + public class GetWorldBossStateArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateArg.cs.meta new file mode 100644 index 00000000..05fc508b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d22ca2af996762c49838f6005a24f663 +timeCreated: 1611404594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs new file mode 100644 index 00000000..55b41c02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWorldBossStateRes")] + [Serializable] + public class GetWorldBossStateRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "TimeLeft", DataFormat = DataFormat.TwosComplement)] + public uint TimeLeft + { + get + { + return this._TimeLeft ?? 0u; + } + set + { + this._TimeLeft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TimeLeftSpecified + { + get + { + return this._TimeLeft != null; + } + set + { + bool flag = value == (this._TimeLeft == null); + if (flag) + { + this._TimeLeft = (value ? new uint?(this.TimeLeft) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "BossHp", DataFormat = DataFormat.TwosComplement)] + public uint BossHp + { + get + { + return this._BossHp ?? 0u; + } + set + { + this._BossHp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BossHpSpecified + { + get + { + return this._BossHp != null; + } + set + { + bool flag = value == (this._BossHp == null); + if (flag) + { + this._BossHp = (value ? new uint?(this.BossHp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "BossId", DataFormat = DataFormat.TwosComplement)] + public uint BossId + { + get + { + return this._BossId ?? 0u; + } + set + { + this._BossId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BossIdSpecified + { + get + { + return this._BossId != null; + } + set + { + bool flag = value == (this._BossId == null); + if (flag) + { + this._BossId = (value ? new uint?(this.BossId) : null); + } + } + } + + private uint? _TimeLeft; + + private uint? _BossHp; + + private uint? _BossId; + + private IExtension extensionObject; + + private bool ShouldSerializeTimeLeft() + { + return this.TimeLeftSpecified; + } + + private void ResetTimeLeft() + { + this.TimeLeftSpecified = false; + } + + private bool ShouldSerializeBossHp() + { + return this.BossHpSpecified; + } + + private void ResetBossHp() + { + this.BossHpSpecified = false; + } + + private bool ShouldSerializeBossId() + { + return this.BossIdSpecified; + } + + private void ResetBossId() + { + this.BossIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs.meta new file mode 100644 index 00000000..5ba1db80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossStateRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53c0222e296b8e3469ab8072f1fdee9c +timeCreated: 1611403712 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftArg.cs new file mode 100644 index 00000000..90a37b36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWorldBossTimeLeftArg")] + [Serializable] + public class GetWorldBossTimeLeftArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftArg.cs.meta new file mode 100644 index 00000000..0f6cc130 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4862600073fe78e4d935f28a81c2ba6e +timeCreated: 1611403657 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftRes.cs new file mode 100644 index 00000000..65c3482d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GetWorldBossTimeLeftRes")] + [Serializable] + public class GetWorldBossTimeLeftRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public uint timeleft + { + get + { + return this._timeleft ?? 0u; + } + set + { + this._timeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new uint?(this.timeleft) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildrolecount", DataFormat = DataFormat.TwosComplement)] + public uint guildrolecount + { + get + { + return this._guildrolecount ?? 0u; + } + set + { + this._guildrolecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildrolecountSpecified + { + get + { + return this._guildrolecount != null; + } + set + { + bool flag = value == (this._guildrolecount == null); + if (flag) + { + this._guildrolecount = (value ? new uint?(this.guildrolecount) : null); + } + } + } + + private uint? _timeleft; + + private uint? _guildrolecount; + + private IExtension extensionObject; + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + private bool ShouldSerializeguildrolecount() + { + return this.guildrolecountSpecified; + } + + private void Resetguildrolecount() + { + this.guildrolecountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftRes.cs.meta new file mode 100644 index 00000000..408b6269 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GetWorldBossTimeLeftRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0580bc5f96d89a4186e5bea2881aeef +timeCreated: 1611404586 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIBBackInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GiftIBBackInfo.cs new file mode 100644 index 00000000..bb65c907 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIBBackInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GiftIBBackInfo")] + [Serializable] + public class GiftIBBackInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private string _openid; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIBBackInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GiftIBBackInfo.cs.meta new file mode 100644 index 00000000..eb1b8d11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIBBackInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d79f43d73b6ecc64ca8739d87aad0414 +timeCreated: 1611404636 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs new file mode 100644 index 00000000..9bbd905c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GiftIbItem")] + [Serializable] + public class GiftIbItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "item", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief item + { + get + { + return this._item; + } + set + { + this._item = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "text", DataFormat = DataFormat.Default)] + public string text + { + get + { + return this._text ?? ""; + } + set + { + this._text = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool textSpecified + { + get + { + return this._text != null; + } + set + { + bool flag = value == (this._text == null); + if (flag) + { + this._text = (value ? this.text : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "orderid", DataFormat = DataFormat.Default)] + public string orderid + { + get + { + return this._orderid ?? ""; + } + set + { + this._orderid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool orderidSpecified + { + get + { + return this._orderid != null; + } + set + { + bool flag = value == (this._orderid == null); + if (flag) + { + this._orderid = (value ? this.orderid : null); + } + } + } + + private string _openid; + + private string _name; + + private ItemBrief _item = null; + + private string _text; + + private string _orderid; + + private IExtension extensionObject; + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetext() + { + return this.textSpecified; + } + + private void Resettext() + { + this.textSpecified = false; + } + + private bool ShouldSerializeorderid() + { + return this.orderidSpecified; + } + + private void Resetorderid() + { + this.orderidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs.meta new file mode 100644 index 00000000..5765c3b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f8acf3237f71bd40a4e4446adffd28a +timeCreated: 1611403517 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItemState.cs b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItemState.cs new file mode 100644 index 00000000..dfb30668 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItemState.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GiftIbItemState")] + public enum GiftIbItemState + { + [ProtoEnum(Name = "GiftIbWaitingReceipt", Value = 1)] + GiftIbWaitingReceipt = 1, + [ProtoEnum(Name = "GiftIbReply", Value = 2)] + GiftIbReply + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItemState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItemState.cs.meta new file mode 100644 index 00000000..7fbf5d2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbItemState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5927066c1ead23b469f55fb80e4b23a1 +timeCreated: 1611403761 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs new file mode 100644 index 00000000..9f2288e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GiftIbReqGoodsArg")] + [Serializable] + public class GiftIbReqGoodsArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "orderid", DataFormat = DataFormat.Default)] + public string orderid + { + get + { + return this._orderid ?? ""; + } + set + { + this._orderid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool orderidSpecified + { + get + { + return this._orderid != null; + } + set + { + bool flag = value == (this._orderid == null); + if (flag) + { + this._orderid = (value ? this.orderid : null); + } + } + } + + private string _orderid; + + private IExtension extensionObject; + + private bool ShouldSerializeorderid() + { + return this.orderidSpecified; + } + + private void Resetorderid() + { + this.orderidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs.meta new file mode 100644 index 00000000..cc79553a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00a304018b2d0db46a988809ceb21a31 +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs new file mode 100644 index 00000000..e109a183 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GiftIbReqGoodsRes")] + [Serializable] + public class GiftIbReqGoodsRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs.meta new file mode 100644 index 00000000..e95fe359 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbReqGoodsRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b5d10691f4a81945b2c8b2b58be4692 +timeCreated: 1611404205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbShipStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbShipStatus.cs new file mode 100644 index 00000000..52dbbb88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbShipStatus.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GiftIbShipStatus")] + public enum GiftIbShipStatus + { + [ProtoEnum(Name = "GIFTIB_NOT_SHIPPED", Value = 0)] + GIFTIB_NOT_SHIPPED, + [ProtoEnum(Name = "GIFTIB_BEING_SHIPPED", Value = 1)] + GIFTIB_BEING_SHIPPED, + [ProtoEnum(Name = "GIFTIB_FINISH_SHIPPED", Value = 2)] + GIFTIB_FINISH_SHIPPED + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiftIbShipStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbShipStatus.cs.meta new file mode 100644 index 00000000..66b6ec90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiftIbShipStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8a9688597ca9a04182475ef1f9c0010 +timeCreated: 1611404405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs new file mode 100644 index 00000000..f2478bd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GiveUpQuestionNtf")] + [Serializable] + public class GiveUpQuestionNtf : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs.meta new file mode 100644 index 00000000..75c70afc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GiveUpQuestionNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b57bd72745faa84fbbab125b9365c50 +timeCreated: 1611404095 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GlobalRiftFloorInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GlobalRiftFloorInfo.cs new file mode 100644 index 00000000..cb5c3038 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GlobalRiftFloorInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GlobalRiftFloorInfo")] + [Serializable] + public class GlobalRiftFloorInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public int floor + { + get + { + return this._floor ?? 0; + } + set + { + this._floor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new int?(this.floor) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + [ProtoMember(3, Name = "buffs", DataFormat = DataFormat.Default)] + public List buffs + { + get + { + return this._buffs; + } + } + + private int? _floor; + + private uint? _sceneid; + + private readonly List _buffs = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GlobalRiftFloorInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GlobalRiftFloorInfo.cs.meta new file mode 100644 index 00000000..589762b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GlobalRiftFloorInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 999be04c3008c1e4eb086f2f02d11fb1 +timeCreated: 1611404196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfAllFightEnd.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfAllFightEnd.cs new file mode 100644 index 00000000..4ac591a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfAllFightEnd.cs @@ -0,0 +1,94 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfAllFightEnd")] + [Serializable] + public class GmfAllFightEnd : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "winguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief winguild + { + get + { + return this._winguild; + } + set + { + this._winguild = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "loseguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief loseguild + { + get + { + return this._loseguild; + } + set + { + this._loseguild = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "wintype", DataFormat = DataFormat.TwosComplement)] + public GMF_FINAL_WIN_TYPE wintype + { + get + { + return this._wintype ?? GMF_FINAL_WIN_TYPE.GMF_FWY_NORMAL; + } + set + { + this._wintype = new GMF_FINAL_WIN_TYPE?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wintypeSpecified + { + get + { + return this._wintype != null; + } + set + { + bool flag = value == (this._wintype == null); + if (flag) + { + this._wintype = (value ? new GMF_FINAL_WIN_TYPE?(this.wintype) : null); + } + } + } + + private GmfGuildBrief _winguild = null; + + private GmfGuildBrief _loseguild = null; + + private GMF_FINAL_WIN_TYPE? _wintype; + + private IExtension extensionObject; + + private bool ShouldSerializewintype() + { + return this.wintypeSpecified; + } + + private void Resetwintype() + { + this.wintypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfAllFightEnd.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfAllFightEnd.cs.meta new file mode 100644 index 00000000..556698cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfAllFightEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 144f56a9b4c02024c92e6acebc228032 +timeCreated: 1611403255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs new file mode 100644 index 00000000..faa23062 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfBatlleStatePara")] + [Serializable] + public class GmfBatlleStatePara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public GmfBattleState state + { + get + { + return this._state ?? GmfBattleState.GMF_BS_NONE; + } + set + { + this._state = new GmfBattleState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new GmfBattleState?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + private GmfBattleState? _state; + + private uint? _lefttime; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs.meta new file mode 100644 index 00000000..a19c7447 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfBatlleStatePara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4c323a3b79340c4d9e17b29af074c3b +timeCreated: 1611404740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfBattleState.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfBattleState.cs new file mode 100644 index 00000000..5cd54bcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfBattleState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfBattleState")] + public enum GmfBattleState + { + [ProtoEnum(Name = "GMF_BS_NONE", Value = 4)] + GMF_BS_NONE = 4, + [ProtoEnum(Name = "GMF_BS_WAIT", Value = 1)] + GMF_BS_WAIT = 1, + [ProtoEnum(Name = "GMF_BS_FIGHT", Value = 2)] + GMF_BS_FIGHT, + [ProtoEnum(Name = "GMF_BS_RESULT", Value = 3)] + GMF_BS_RESULT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfBattleState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfBattleState.cs.meta new file mode 100644 index 00000000..695c2ddd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfBattleState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c9568e65885d9c448c5a62f45fd0988 +timeCreated: 1611404100 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfCombat.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfCombat.cs new file mode 100644 index 00000000..bfb8db51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfCombat.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfCombat")] + [Serializable] + public class GmfCombat : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public uint killcount + { + get + { + return this._killcount ?? 0u; + } + set + { + this._killcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new uint?(this.killcount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "damage", DataFormat = DataFormat.TwosComplement)] + public double damage + { + get + { + return this._damage ?? 0.0; + } + set + { + this._damage = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool damageSpecified + { + get + { + return this._damage != null; + } + set + { + bool flag = value == (this._damage == null); + if (flag) + { + this._damage = (value ? new double?(this.damage) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "deadcount", DataFormat = DataFormat.TwosComplement)] + public uint deadcount + { + get + { + return this._deadcount ?? 0u; + } + set + { + this._deadcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deadcountSpecified + { + get + { + return this._deadcount != null; + } + set + { + bool flag = value == (this._deadcount == null); + if (flag) + { + this._deadcount = (value ? new uint?(this.deadcount) : null); + } + } + } + + private uint? _killcount; + + private double? _damage; + + private uint? _deadcount; + + private IExtension extensionObject; + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializedamage() + { + return this.damageSpecified; + } + + private void Resetdamage() + { + this.damageSpecified = false; + } + + private bool ShouldSerializedeadcount() + { + return this.deadcountSpecified; + } + + private void Resetdeadcount() + { + this.deadcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfCombat.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfCombat.cs.meta new file mode 100644 index 00000000..d608b371 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfCombat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 014ac27f644738b46bbbeda3c02ebe9e +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildBrief.cs new file mode 100644 index 00000000..97e26281 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildBrief.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfGuildBrief")] + [Serializable] + public class GmfGuildBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildicon", DataFormat = DataFormat.TwosComplement)] + public uint guildicon + { + get + { + return this._guildicon ?? 0u; + } + set + { + this._guildicon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildiconSpecified + { + get + { + return this._guildicon != null; + } + set + { + bool flag = value == (this._guildicon == null); + if (flag) + { + this._guildicon = (value ? new uint?(this.guildicon) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + private ulong? _guildid; + + private string _guildname; + + private uint? _guildicon; + + private uint? _serverid; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializeguildicon() + { + return this.guildiconSpecified; + } + + private void Resetguildicon() + { + this.guildiconSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildBrief.cs.meta new file mode 100644 index 00000000..0771f909 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81d0075127161a942995190727ea94e9 +timeCreated: 1611404037 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombat.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombat.cs new file mode 100644 index 00000000..3f6a59d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombat.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfGuildCombat")] + [Serializable] + public class GmfGuildCombat : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "gmfguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief gmfguild + { + get + { + return this._gmfguild; + } + set + { + this._gmfguild = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "combat", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfCombat combat + { + get + { + return this._combat; + } + set + { + this._combat = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(4, Name = "rolecombat", DataFormat = DataFormat.Default)] + public List rolecombat + { + get + { + return this._rolecombat; + } + } + + private GmfGuildBrief _gmfguild = null; + + private GmfCombat _combat = null; + + private uint? _score; + + private readonly List _rolecombat = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombat.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombat.cs.meta new file mode 100644 index 00000000..d67b4074 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cac1dc11a0ba534db502eb7add105f4 +timeCreated: 1611403692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs new file mode 100644 index 00000000..86ba2d15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfGuildCombatPara")] + [Serializable] + public class GmfGuildCombatPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildcombat11", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildCombat guildcombat11 + { + get + { + return this._guildcombat11; + } + set + { + this._guildcombat11 = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildcombat22", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildCombat guildcombat22 + { + get + { + return this._guildcombat22; + } + set + { + this._guildcombat22 = value; + } + } + + private GmfGuildCombat _guildcombat11 = null; + + private GmfGuildCombat _guildcombat22 = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs.meta new file mode 100644 index 00000000..c3063010 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfGuildCombatPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a305a5c6a732f294790d6a7ca6407eb3 +timeCreated: 1611404259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfHalfRoles.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfHalfRoles.cs new file mode 100644 index 00000000..36a95fac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfHalfRoles.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfHalfRoles")] + [Serializable] + public class GmfHalfRoles : IExtensible + { + [ProtoMember(1, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildb", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief guildb + { + get + { + return this._guildb; + } + set + { + this._guildb = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "inspire", DataFormat = DataFormat.TwosComplement)] + public uint inspire + { + get + { + return this._inspire ?? 0u; + } + set + { + this._inspire = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inspireSpecified + { + get + { + return this._inspire != null; + } + set + { + bool flag = value == (this._inspire == null); + if (flag) + { + this._inspire = (value ? new uint?(this.inspire) : null); + } + } + } + + private readonly List _roles = new List(); + + private GmfGuildBrief _guildb = null; + + private uint? _inspire; + + private IExtension extensionObject; + + private bool ShouldSerializeinspire() + { + return this.inspireSpecified; + } + + private void Resetinspire() + { + this.inspireSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfHalfRoles.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfHalfRoles.cs.meta new file mode 100644 index 00000000..b16af1b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfHalfRoles.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7c74d788826c7547b6479fb67698f68 +timeCreated: 1611404292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs new file mode 100644 index 00000000..a44de3ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfJoinBattleArg")] + [Serializable] + public class GmfJoinBattleArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public uint leftTime + { + get + { + return this._leftTime ?? 0u; + } + set + { + this._leftTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new uint?(this.leftTime) : null); + } + } + } + + private uint? _leftTime; + + private IExtension extensionObject; + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs.meta new file mode 100644 index 00000000..6ba28df2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d401dc2e0abf9254a98f2061af006809 +timeCreated: 1611404600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs new file mode 100644 index 00000000..1108705d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfJoinBattleRes")] + [Serializable] + public class GmfJoinBattleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "join", DataFormat = DataFormat.Default)] + public bool join + { + get + { + return this._join ?? false; + } + set + { + this._join = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joinSpecified + { + get + { + return this._join != null; + } + set + { + bool flag = value == (this._join == null); + if (flag) + { + this._join = (value ? new bool?(this.join) : null); + } + } + } + + private bool? _join; + + private IExtension extensionObject; + + private bool ShouldSerializejoin() + { + return this.joinSpecified; + } + + private void Resetjoin() + { + this.joinSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs.meta new file mode 100644 index 00000000..9f646157 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfJoinBattleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea5934e5cc4ac5c4fab05c3ceceb6ca6 +timeCreated: 1611404778 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs new file mode 100644 index 00000000..68644ef9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfKickRes")] + [Serializable] + public class GmfKickRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "cooldowntime", DataFormat = DataFormat.TwosComplement)] + public uint cooldowntime + { + get + { + return this._cooldowntime ?? 0u; + } + set + { + this._cooldowntime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldowntimeSpecified + { + get + { + return this._cooldowntime != null; + } + set + { + bool flag = value == (this._cooldowntime == null); + if (flag) + { + this._cooldowntime = (value ? new uint?(this.cooldowntime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leaderkick", DataFormat = DataFormat.TwosComplement)] + public int leaderkick + { + get + { + return this._leaderkick ?? 0; + } + set + { + this._leaderkick = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderkickSpecified + { + get + { + return this._leaderkick != null; + } + set + { + bool flag = value == (this._leaderkick == null); + if (flag) + { + this._leaderkick = (value ? new int?(this.leaderkick) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "kickname", DataFormat = DataFormat.Default)] + public string kickname + { + get + { + return this._kickname ?? ""; + } + set + { + this._kickname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kicknameSpecified + { + get + { + return this._kickname != null; + } + set + { + bool flag = value == (this._kickname == null); + if (flag) + { + this._kickname = (value ? this.kickname : null); + } + } + } + + private uint? _cooldowntime; + + private int? _leaderkick; + + private string _kickname; + + private IExtension extensionObject; + + private bool ShouldSerializecooldowntime() + { + return this.cooldowntimeSpecified; + } + + private void Resetcooldowntime() + { + this.cooldowntimeSpecified = false; + } + + private bool ShouldSerializeleaderkick() + { + return this.leaderkickSpecified; + } + + private void Resetleaderkick() + { + this.leaderkickSpecified = false; + } + + private bool ShouldSerializekickname() + { + return this.kicknameSpecified; + } + + private void Resetkickname() + { + this.kicknameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs.meta new file mode 100644 index 00000000..92aae2a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfKickRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6120d7699a8eb904e8fd371b32f10330 +timeCreated: 1611403837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs new file mode 100644 index 00000000..9a55af93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs @@ -0,0 +1,126 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfOneBattleEnd")] + [Serializable] + public class GmfOneBattleEnd : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reason", DataFormat = DataFormat.TwosComplement)] + public GMFFailReason reason + { + get + { + return this._reason ?? GMFFailReason.GMF_FAIL_NONE; + } + set + { + this._reason = new GMFFailReason?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? new GMFFailReason?(this.reason) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "winrole", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfRoleBrief winrole + { + get + { + return this._winrole; + } + set + { + this._winrole = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "loselrole", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfRoleBrief loselrole + { + get + { + return this._loselrole; + } + set + { + this._loselrole = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "winguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief winguild + { + get + { + return this._winguild; + } + set + { + this._winguild = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "loseguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief loseguild + { + get + { + return this._loseguild; + } + set + { + this._loseguild = value; + } + } + + private GMFFailReason? _reason; + + private GmfRoleBrief _winrole = null; + + private GmfRoleBrief _loselrole = null; + + private GmfGuildBrief _winguild = null; + + private GmfGuildBrief _loseguild = null; + + private IExtension extensionObject; + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs.meta new file mode 100644 index 00000000..ff254d3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfOneBattleEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f68202a817a3764d8d18e8fac4f6f03 +timeCreated: 1611404133 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs new file mode 100644 index 00000000..b361e920 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfReadyArg")] + [Serializable] + public class GmfReadyArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public GMFReadyType type + { + get + { + return this._type ?? GMFReadyType.GMF_READY_UP; + } + set + { + this._type = new GMFReadyType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new GMFReadyType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private GMFReadyType? _type; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs.meta new file mode 100644 index 00000000..d08bc1ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7997ccdc15e8cd34b8c2d9eb6b9d32ed +timeCreated: 1611403986 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs new file mode 100644 index 00000000..74b6a96a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfReadyRes")] + [Serializable] + public class GmfReadyRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public uint cooldown + { + get + { + return this._cooldown ?? 0u; + } + set + { + this._cooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldownSpecified + { + get + { + return this._cooldown != null; + } + set + { + bool flag = value == (this._cooldown == null); + if (flag) + { + this._cooldown = (value ? new uint?(this.cooldown) : null); + } + } + } + + private ErrorCode? _errcode; + + private uint? _cooldown; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + private bool ShouldSerializecooldown() + { + return this.cooldownSpecified; + } + + private void Resetcooldown() + { + this.cooldownSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs.meta new file mode 100644 index 00000000..24f848ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfReadyRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4e6663a77f6bcc4abed9ae8432ef625 +timeCreated: 1611404741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs new file mode 100644 index 00000000..4c8c59b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfRole")] + [Serializable] + public class GmfRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "pkpoint", DataFormat = DataFormat.TwosComplement)] + public uint pkpoint + { + get + { + return this._pkpoint ?? 0u; + } + set + { + this._pkpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pkpointSpecified + { + get + { + return this._pkpoint != null; + } + set + { + bool flag = value == (this._pkpoint == null); + if (flag) + { + this._pkpoint = (value ? new uint?(this.pkpoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public int index + { + get + { + return this._index ?? 0; + } + set + { + this._index = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new int?(this.index) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public GuildMatchFightState state + { + get + { + return this._state ?? GuildMatchFightState.GUILD_MF_NONE; + } + set + { + this._state = new GuildMatchFightState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new GuildMatchFightState?(this.state) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "guildpos", DataFormat = DataFormat.TwosComplement)] + public int guildpos + { + get + { + return this._guildpos ?? 0; + } + set + { + this._guildpos = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildposSpecified + { + get + { + return this._guildpos != null; + } + set + { + bool flag = value == (this._guildpos == null); + if (flag) + { + this._guildpos = (value ? new int?(this.guildpos) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public int profession + { + get + { + return this._profession ?? 0; + } + set + { + this._profession = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new int?(this.profession) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + private ulong? _roleID; + + private string _rolename; + + private uint? _pkpoint; + + private int? _index; + + private GuildMatchFightState? _state; + + private int? _guildpos; + + private int? _profession; + + private uint? _ppt; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializepkpoint() + { + return this.pkpointSpecified; + } + + private void Resetpkpoint() + { + this.pkpointSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeguildpos() + { + return this.guildposSpecified; + } + + private void Resetguildpos() + { + this.guildposSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs.meta new file mode 100644 index 00000000..8c825ba5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f465ee11472948447a601007f5d03b64 +timeCreated: 1611404854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleBrief.cs new file mode 100644 index 00000000..2d7bd4fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleBrief.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfRoleBrief")] + [Serializable] + public class GmfRoleBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + private ulong? _roleid; + + private string _rolename; + + private uint? _profession; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleBrief.cs.meta new file mode 100644 index 00000000..8996c9ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29067242f43987b4cb8fea6a656d6c0d +timeCreated: 1611403475 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleCombat.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleCombat.cs new file mode 100644 index 00000000..27bcec1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleCombat.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfRoleCombat")] + [Serializable] + public class GmfRoleCombat : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "gmfrole", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfRoleBrief gmfrole + { + get + { + return this._gmfrole; + } + set + { + this._gmfrole = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "combat", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfCombat combat + { + get + { + return this._combat; + } + set + { + this._combat = value; + } + } + + private GmfRoleBrief _gmfrole = null; + + private GmfCombat _combat = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleCombat.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleCombat.cs.meta new file mode 100644 index 00000000..46ebecc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleCombat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4b065905817bc24cb94ac03a6e15de3 +timeCreated: 1611404604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleDatas.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleDatas.cs new file mode 100644 index 00000000..c613e6b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleDatas.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfRoleDatas")] + [Serializable] + public class GmfRoleDatas : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "halfrole11", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfHalfRoles halfrole11 + { + get + { + return this._halfrole11; + } + set + { + this._halfrole11 = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "halfrole22", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfHalfRoles halfrole22 + { + get + { + return this._halfrole22; + } + set + { + this._halfrole22 = value; + } + } + + private GmfHalfRoles _halfrole11 = null; + + private GmfHalfRoles _halfrole22 = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleDatas.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleDatas.cs.meta new file mode 100644 index 00000000..6824d34b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfRoleDatas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a800c8ed59750a94db1497bbcdfb9f25 +timeCreated: 1611404293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitFightArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitFightArg.cs new file mode 100644 index 00000000..798dd07b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitFightArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfWaitFightArg")] + [Serializable] + public class GmfWaitFightArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + private uint? _lefttime; + + private IExtension extensionObject; + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitFightArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitFightArg.cs.meta new file mode 100644 index 00000000..b81d8eed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitFightArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebd58e192113f4b45b7dd7a74d3fc75d +timeCreated: 1611404785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs new file mode 100644 index 00000000..1e5655f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GmfWaitOtherArg")] + [Serializable] + public class GmfWaitOtherArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + private uint? _lefttime; + + private IExtension extensionObject; + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs.meta new file mode 100644 index 00000000..699f4789 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GmfWaitOtherArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0f7bd1c9f5299642910e1a01c10390b +timeCreated: 1611404251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoBackReadyScene.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoBackReadyScene.cs new file mode 100644 index 00000000..cc7b551d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoBackReadyScene.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoBackReadyScene")] + [Serializable] + public class GoBackReadyScene : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoBackReadyScene.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoBackReadyScene.cs.meta new file mode 100644 index 00000000..0cfa9f57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoBackReadyScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8117f41587357864f86fa1eda6b8abe8 +timeCreated: 1611404035 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs new file mode 100644 index 00000000..c2872608 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoalAwardsGetAwards_C2M")] + [Serializable] + public class GoalAwardsGetAwards_C2M : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "goalAwardsID", DataFormat = DataFormat.TwosComplement)] + public uint goalAwardsID + { + get + { + return this._goalAwardsID ?? 0u; + } + set + { + this._goalAwardsID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goalAwardsIDSpecified + { + get + { + return this._goalAwardsID != null; + } + set + { + bool flag = value == (this._goalAwardsID == null); + if (flag) + { + this._goalAwardsID = (value ? new uint?(this.goalAwardsID) : null); + } + } + } + + private uint? _goalAwardsID; + + private IExtension extensionObject; + + private bool ShouldSerializegoalAwardsID() + { + return this.goalAwardsIDSpecified; + } + + private void ResetgoalAwardsID() + { + this.goalAwardsIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs.meta new file mode 100644 index 00000000..1c45cd8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_C2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ed9f1cb426d189449f829e7e933b657 +timeCreated: 1611404006 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs new file mode 100644 index 00000000..cff647b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoalAwardsGetAwards_M2C")] + [Serializable] + public class GoalAwardsGetAwards_M2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "gottenAwardsIndex", DataFormat = DataFormat.TwosComplement)] + public uint gottenAwardsIndex + { + get + { + return this._gottenAwardsIndex ?? 0u; + } + set + { + this._gottenAwardsIndex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gottenAwardsIndexSpecified + { + get + { + return this._gottenAwardsIndex != null; + } + set + { + bool flag = value == (this._gottenAwardsIndex == null); + if (flag) + { + this._gottenAwardsIndex = (value ? new uint?(this.gottenAwardsIndex) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private uint? _gottenAwardsIndex; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializegottenAwardsIndex() + { + return this.gottenAwardsIndexSpecified; + } + + private void ResetgottenAwardsIndex() + { + this.gottenAwardsIndexSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs.meta new file mode 100644 index 00000000..bbd89f08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetAwards_M2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 600ada1fa37c35948bdecf2c05d032f7 +timeCreated: 1611403831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_C2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_C2M.cs new file mode 100644 index 00000000..00b77a58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_C2M.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoalAwardsGetList_C2M")] + [Serializable] + public class GoalAwardsGetList_C2M : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_C2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_C2M.cs.meta new file mode 100644 index 00000000..3abb2b14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_C2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5dec9ec2f8ad02489c638ca6fb5cd53 +timeCreated: 1611404878 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_M2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_M2C.cs new file mode 100644 index 00000000..b0b6d17d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_M2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoalAwardsGetList_M2C")] + [Serializable] + public class GoalAwardsGetList_M2C : IExtensible + { + [ProtoMember(1, Name = "goalAwardsList", DataFormat = DataFormat.Default)] + public List goalAwardsList + { + get + { + return this._goalAwardsList; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _goalAwardsList = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_M2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_M2C.cs.meta new file mode 100644 index 00000000..4874215d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsGetList_M2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cdedc4589c65854e8066b7e2cb3b98b +timeCreated: 1611403999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsInfo.cs new file mode 100644 index 00000000..e113fbfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsInfo.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoalAwardsInfo")] + [Serializable] + public class GoalAwardsInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "goalAwardsID", DataFormat = DataFormat.TwosComplement)] + public uint goalAwardsID + { + get + { + return this._goalAwardsID ?? 0u; + } + set + { + this._goalAwardsID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goalAwardsIDSpecified + { + get + { + return this._goalAwardsID != null; + } + set + { + bool flag = value == (this._goalAwardsID == null); + if (flag) + { + this._goalAwardsID = (value ? new uint?(this.goalAwardsID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "doneIndex", DataFormat = DataFormat.TwosComplement)] + public uint doneIndex + { + get + { + return this._doneIndex ?? 0u; + } + set + { + this._doneIndex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool doneIndexSpecified + { + get + { + return this._doneIndex != null; + } + set + { + bool flag = value == (this._doneIndex == null); + if (flag) + { + this._doneIndex = (value ? new uint?(this.doneIndex) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "gottenAwardsIndex", DataFormat = DataFormat.TwosComplement)] + public uint gottenAwardsIndex + { + get + { + return this._gottenAwardsIndex ?? 0u; + } + set + { + this._gottenAwardsIndex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gottenAwardsIndexSpecified + { + get + { + return this._gottenAwardsIndex != null; + } + set + { + bool flag = value == (this._gottenAwardsIndex == null); + if (flag) + { + this._gottenAwardsIndex = (value ? new uint?(this.gottenAwardsIndex) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "totalvalue", DataFormat = DataFormat.TwosComplement)] + public double totalvalue + { + get + { + return this._totalvalue ?? 0.0; + } + set + { + this._totalvalue = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalvalueSpecified + { + get + { + return this._totalvalue != null; + } + set + { + bool flag = value == (this._totalvalue == null); + if (flag) + { + this._totalvalue = (value ? new double?(this.totalvalue) : null); + } + } + } + + [ProtoMember(5, Name = "gkidvalue", DataFormat = DataFormat.Default)] + public List gkidvalue + { + get + { + return this._gkidvalue; + } + } + + private uint? _goalAwardsID; + + private uint? _doneIndex; + + private uint? _gottenAwardsIndex; + + private double? _totalvalue; + + private readonly List _gkidvalue = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializegoalAwardsID() + { + return this.goalAwardsIDSpecified; + } + + private void ResetgoalAwardsID() + { + this.goalAwardsIDSpecified = false; + } + + private bool ShouldSerializedoneIndex() + { + return this.doneIndexSpecified; + } + + private void ResetdoneIndex() + { + this.doneIndexSpecified = false; + } + + private bool ShouldSerializegottenAwardsIndex() + { + return this.gottenAwardsIndexSpecified; + } + + private void ResetgottenAwardsIndex() + { + this.gottenAwardsIndexSpecified = false; + } + + private bool ShouldSerializetotalvalue() + { + return this.totalvalueSpecified; + } + + private void Resettotalvalue() + { + this.totalvalueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsInfo.cs.meta new file mode 100644 index 00000000..3dc55b57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aee4074b468b8b34888ae4c0cc4b17b2 +timeCreated: 1611404341 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsRedPointNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsRedPointNtf.cs new file mode 100644 index 00000000..c935d062 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsRedPointNtf.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoalAwardsRedPointNtf")] + [Serializable] + public class GoalAwardsRedPointNtf : IExtensible + { + [ProtoMember(1, Name = "typelist", DataFormat = DataFormat.TwosComplement)] + public List typelist + { + get + { + return this._typelist; + } + } + + private readonly List _typelist = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsRedPointNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsRedPointNtf.cs.meta new file mode 100644 index 00000000..bdef2599 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsRedPointNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 907a2ece4d0664443b057b9f9e1aae84 +timeCreated: 1611404139 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsValue.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsValue.cs new file mode 100644 index 00000000..6d1dd1bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsValue.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoalAwardsValue")] + [Serializable] + public class GoalAwardsValue : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "gkid", DataFormat = DataFormat.TwosComplement)] + public uint gkid + { + get + { + return this._gkid ?? 0u; + } + set + { + this._gkid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gkidSpecified + { + get + { + return this._gkid != null; + } + set + { + bool flag = value == (this._gkid == null); + if (flag) + { + this._gkid = (value ? new uint?(this.gkid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "gkvalue", DataFormat = DataFormat.TwosComplement)] + public double gkvalue + { + get + { + return this._gkvalue ?? 0.0; + } + set + { + this._gkvalue = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gkvalueSpecified + { + get + { + return this._gkvalue != null; + } + set + { + bool flag = value == (this._gkvalue == null); + if (flag) + { + this._gkvalue = (value ? new double?(this.gkvalue) : null); + } + } + } + + private uint? _gkid; + + private double? _gkvalue; + + private IExtension extensionObject; + + private bool ShouldSerializegkid() + { + return this.gkidSpecified; + } + + private void Resetgkid() + { + this.gkidSpecified = false; + } + + private bool ShouldSerializegkvalue() + { + return this.gkvalueSpecified; + } + + private void Resetgkvalue() + { + this.gkvalueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsValue.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsValue.cs.meta new file mode 100644 index 00000000..abfabe36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoalAwardsValue.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd833ca775e552343bdb303f4ab3d3c6 +timeCreated: 1611404454 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoldClickArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoldClickArg.cs new file mode 100644 index 00000000..04ca6744 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoldClickArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoldClickArg")] + [Serializable] + public class GoldClickArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _type; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoldClickArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoldClickArg.cs.meta new file mode 100644 index 00000000..00bafc05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoldClickArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1a2d2ad793780a4fb1ea60dd18b2ed5 +timeCreated: 1611404592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoldClickRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GoldClickRes.cs new file mode 100644 index 00000000..e24d9ae8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoldClickRes.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GoldClickRes")] + [Serializable] + public class GoldClickRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "results", DataFormat = DataFormat.TwosComplement)] + public List results + { + get + { + return this._results; + } + } + + [ProtoMember(3, IsRequired = false, Name = "freetimeleft", DataFormat = DataFormat.TwosComplement)] + public uint freetimeleft + { + get + { + return this._freetimeleft ?? 0u; + } + set + { + this._freetimeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freetimeleftSpecified + { + get + { + return this._freetimeleft != null; + } + set + { + bool flag = value == (this._freetimeleft == null); + if (flag) + { + this._freetimeleft = (value ? new uint?(this.freetimeleft) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "freecount", DataFormat = DataFormat.TwosComplement)] + public uint freecount + { + get + { + return this._freecount ?? 0u; + } + set + { + this._freecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freecountSpecified + { + get + { + return this._freecount != null; + } + set + { + bool flag = value == (this._freecount == null); + if (flag) + { + this._freecount = (value ? new uint?(this.freecount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "freeallcount", DataFormat = DataFormat.TwosComplement)] + public uint freeallcount + { + get + { + return this._freeallcount ?? 0u; + } + set + { + this._freeallcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freeallcountSpecified + { + get + { + return this._freeallcount != null; + } + set + { + bool flag = value == (this._freeallcount == null); + if (flag) + { + this._freeallcount = (value ? new uint?(this.freeallcount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)] + public uint allcount + { + get + { + return this._allcount ?? 0u; + } + set + { + this._allcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allcountSpecified + { + get + { + return this._allcount != null; + } + set + { + bool flag = value == (this._allcount == null); + if (flag) + { + this._allcount = (value ? new uint?(this.allcount) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _results = new List(); + + private uint? _freetimeleft; + + private uint? _freecount; + + private uint? _freeallcount; + + private uint? _count; + + private uint? _allcount; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializefreetimeleft() + { + return this.freetimeleftSpecified; + } + + private void Resetfreetimeleft() + { + this.freetimeleftSpecified = false; + } + + private bool ShouldSerializefreecount() + { + return this.freecountSpecified; + } + + private void Resetfreecount() + { + this.freecountSpecified = false; + } + + private bool ShouldSerializefreeallcount() + { + return this.freeallcountSpecified; + } + + private void Resetfreeallcount() + { + this.freeallcountSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializeallcount() + { + return this.allcountSpecified; + } + + private void Resetallcount() + { + this.allcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GoldClickRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GoldClickRes.cs.meta new file mode 100644 index 00000000..bb4214e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GoldClickRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37b6848b5b63d6b4c9a8ad6c9c1dbdce +timeCreated: 1611403567 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs b/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs new file mode 100644 index 00000000..92df84c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs @@ -0,0 +1,137 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GprAllFightEnd")] + [Serializable] + public class GprAllFightEnd : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "winguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief winguild + { + get + { + return this._winguild; + } + set + { + this._winguild = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "loseguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief loseguild + { + get + { + return this._loseguild; + } + set + { + this._loseguild = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "winscore", DataFormat = DataFormat.TwosComplement)] + public uint winscore + { + get + { + return this._winscore ?? 0u; + } + set + { + this._winscore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winscoreSpecified + { + get + { + return this._winscore != null; + } + set + { + bool flag = value == (this._winscore == null); + if (flag) + { + this._winscore = (value ? new uint?(this.winscore) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "losescore", DataFormat = DataFormat.TwosComplement)] + public uint losescore + { + get + { + return this._losescore ?? 0u; + } + set + { + this._losescore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losescoreSpecified + { + get + { + return this._losescore != null; + } + set + { + bool flag = value == (this._losescore == null); + if (flag) + { + this._losescore = (value ? new uint?(this.losescore) : null); + } + } + } + + private GmfGuildBrief _winguild = null; + + private GmfGuildBrief _loseguild = null; + + private uint? _winscore; + + private uint? _losescore; + + private IExtension extensionObject; + + private bool ShouldSerializewinscore() + { + return this.winscoreSpecified; + } + + private void Resetwinscore() + { + this.winscoreSpecified = false; + } + + private bool ShouldSerializelosescore() + { + return this.losescoreSpecified; + } + + private void Resetlosescore() + { + this.losescoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs.meta new file mode 100644 index 00000000..fd6cf8c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GprAllFightEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 757b7bd3126bd5b4d8489feeafcafc42 +timeCreated: 1611403947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GprOneBattleEnd.cs b/Client/Assets/Scripts/XMainClient/KKSG/GprOneBattleEnd.cs new file mode 100644 index 00000000..1cc3ef68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GprOneBattleEnd.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GprOneBattleEnd")] + [Serializable] + public class GprOneBattleEnd : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "winguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief winguild + { + get + { + return this._winguild; + } + set + { + this._winguild = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "loseguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GmfGuildBrief loseguild + { + get + { + return this._loseguild; + } + set + { + this._loseguild = value; + } + } + + [ProtoMember(3, Name = "winrolecombat", DataFormat = DataFormat.Default)] + public List winrolecombat + { + get + { + return this._winrolecombat; + } + } + + [ProtoMember(4, Name = "loserolecombat", DataFormat = DataFormat.Default)] + public List loserolecombat + { + get + { + return this._loserolecombat; + } + } + + private GmfGuildBrief _winguild = null; + + private GmfGuildBrief _loseguild = null; + + private readonly List _winrolecombat = new List(); + + private readonly List _loserolecombat = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GprOneBattleEnd.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GprOneBattleEnd.cs.meta new file mode 100644 index 00000000..247d8db2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GprOneBattleEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1605cacd220751d4cbab0f7d394f45d9 +timeCreated: 1611403268 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs new file mode 100644 index 00000000..8a4ca647 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatApplyNtf")] + [Serializable] + public class GroupChatApplyNtf : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs.meta new file mode 100644 index 00000000..6f583c1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatApplyNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c655087e4a9acad4a877203c087a5541 +timeCreated: 1611404509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameC2S.cs new file mode 100644 index 00000000..8f6652fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameC2S.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatChangeNameC2S")] + [Serializable] + public class GroupChatChangeNameC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "newname", DataFormat = DataFormat.Default)] + public string newname + { + get + { + return this._newname ?? ""; + } + set + { + this._newname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool newnameSpecified + { + get + { + return this._newname != null; + } + set + { + bool flag = value == (this._newname == null); + if (flag) + { + this._newname = (value ? this.newname : null); + } + } + } + + private ulong? _groupchatID; + + private string _newname; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializenewname() + { + return this.newnameSpecified; + } + + private void Resetnewname() + { + this.newnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameC2S.cs.meta new file mode 100644 index 00000000..7f372ac5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87a77dbdb027d0e42a3baa9b9abc34fa +timeCreated: 1611404080 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameS2C.cs new file mode 100644 index 00000000..e2ee6368 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatChangeNameS2C")] + [Serializable] + public class GroupChatChangeNameS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameS2C.cs.meta new file mode 100644 index 00000000..93f7ac1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatChangeNameS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee57bdd0f83ec894fab00dc39e9c3ba5 +timeCreated: 1611404796 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearC2S.cs new file mode 100644 index 00000000..186f291d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearC2S.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatClearC2S")] + [Serializable] + public class GroupChatClearC2S : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearC2S.cs.meta new file mode 100644 index 00000000..0af40d80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2bbbab46040d30543b78ff9346153c3b +timeCreated: 1611403500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearS2C.cs new file mode 100644 index 00000000..95796f38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatClearS2C")] + [Serializable] + public class GroupChatClearS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearS2C.cs.meta new file mode 100644 index 00000000..9074e166 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatClearS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e79bfec6be42fa64bb04b58c74b5984d +timeCreated: 1611404749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs new file mode 100644 index 00000000..cb209013 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatCreateC2S")] + [Serializable] + public class GroupChatCreateC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatName", DataFormat = DataFormat.Default)] + public string groupchatName + { + get + { + return this._groupchatName ?? ""; + } + set + { + this._groupchatName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatNameSpecified + { + get + { + return this._groupchatName != null; + } + set + { + bool flag = value == (this._groupchatName == null); + if (flag) + { + this._groupchatName = (value ? this.groupchatName : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "createtype", DataFormat = DataFormat.TwosComplement)] + public uint createtype + { + get + { + return this._createtype ?? 0u; + } + set + { + this._createtype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool createtypeSpecified + { + get + { + return this._createtype != null; + } + set + { + bool flag = value == (this._createtype == null); + if (flag) + { + this._createtype = (value ? new uint?(this.createtype) : null); + } + } + } + + private string _groupchatName; + + private uint? _createtype; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatName() + { + return this.groupchatNameSpecified; + } + + private void ResetgroupchatName() + { + this.groupchatNameSpecified = false; + } + + private bool ShouldSerializecreatetype() + { + return this.createtypeSpecified; + } + + private void Resetcreatetype() + { + this.createtypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs.meta new file mode 100644 index 00000000..667e7437 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 123b29aab832bc342872e40c4f2f42a7 +timeCreated: 1611403241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs new file mode 100644 index 00000000..0938a80c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatCreateS2C")] + [Serializable] + public class GroupChatCreateS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ulong? _groupchatID; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs.meta new file mode 100644 index 00000000..4367a9e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatCreateS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 743a808f8c770f94cad58f926d55bbfe +timeCreated: 1611403943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatDismissPtc.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatDismissPtc.cs new file mode 100644 index 00000000..b78b4a7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatDismissPtc.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatDismissPtc")] + [Serializable] + public class GroupChatDismissPtc : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _groupchatID; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatDismissPtc.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatDismissPtc.cs.meta new file mode 100644 index 00000000..ef4a8a26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatDismissPtc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 676c2db642d62f6478b7010a5a0dc744 +timeCreated: 1611403857 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfo.cs new file mode 100644 index 00000000..27a9b515 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfo.cs @@ -0,0 +1,535 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatFindRoleInfo")] + [Serializable] + public class GroupChatFindRoleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "groupchatName", DataFormat = DataFormat.Default)] + public string groupchatName + { + get + { + return this._groupchatName ?? ""; + } + set + { + this._groupchatName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatNameSpecified + { + get + { + return this._groupchatName != null; + } + set + { + bool flag = value == (this._groupchatName == null); + if (flag) + { + this._groupchatName = (value ? this.groupchatName : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "issueIndex", DataFormat = DataFormat.TwosComplement)] + public ulong issueIndex + { + get + { + return this._issueIndex ?? 0UL; + } + set + { + this._issueIndex = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool issueIndexSpecified + { + get + { + return this._issueIndex != null; + } + set + { + bool flag = value == (this._issueIndex == null); + if (flag) + { + this._issueIndex = (value ? new ulong?(this.issueIndex) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "stageID", DataFormat = DataFormat.TwosComplement)] + public uint stageID + { + get + { + return this._stageID ?? 0u; + } + set + { + this._stageID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageIDSpecified + { + get + { + return this._stageID != null; + } + set + { + bool flag = value == (this._stageID == null); + if (flag) + { + this._stageID = (value ? new uint?(this.stageID) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "fighting", DataFormat = DataFormat.TwosComplement)] + public uint fighting + { + get + { + return this._fighting ?? 0u; + } + set + { + this._fighting = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightingSpecified + { + get + { + return this._fighting != null; + } + set + { + bool flag = value == (this._fighting == null); + if (flag) + { + this._fighting = (value ? new uint?(this.fighting) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "issuetime", DataFormat = DataFormat.TwosComplement)] + public uint issuetime + { + get + { + return this._issuetime ?? 0u; + } + set + { + this._issuetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool issuetimeSpecified + { + get + { + return this._issuetime != null; + } + set + { + bool flag = value == (this._issuetime == null); + if (flag) + { + this._issuetime = (value ? new uint?(this.issuetime) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "roleprofession", DataFormat = DataFormat.TwosComplement)] + public uint roleprofession + { + get + { + return this._roleprofession ?? 0u; + } + set + { + this._roleprofession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleprofessionSpecified + { + get + { + return this._roleprofession != null; + } + set + { + bool flag = value == (this._roleprofession == null); + if (flag) + { + this._roleprofession = (value ? new uint?(this.roleprofession) : null); + } + } + } + + private ulong? _roleid; + + private string _rolename; + + private ulong? _groupchatID; + + private string _groupchatName; + + private ulong? _issueIndex; + + private uint? _stageID; + + private uint? _fighting; + + private uint? _type; + + private uint? _time; + + private uint? _state; + + private uint? _issuetime; + + private uint? _roleprofession; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializegroupchatName() + { + return this.groupchatNameSpecified; + } + + private void ResetgroupchatName() + { + this.groupchatNameSpecified = false; + } + + private bool ShouldSerializeissueIndex() + { + return this.issueIndexSpecified; + } + + private void ResetissueIndex() + { + this.issueIndexSpecified = false; + } + + private bool ShouldSerializestageID() + { + return this.stageIDSpecified; + } + + private void ResetstageID() + { + this.stageIDSpecified = false; + } + + private bool ShouldSerializefighting() + { + return this.fightingSpecified; + } + + private void Resetfighting() + { + this.fightingSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeissuetime() + { + return this.issuetimeSpecified; + } + + private void Resetissuetime() + { + this.issuetimeSpecified = false; + } + + private bool ShouldSerializeroleprofession() + { + return this.roleprofessionSpecified; + } + + private void Resetroleprofession() + { + this.roleprofessionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfo.cs.meta new file mode 100644 index 00000000..53623f65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51d1f1842a7674a4789d73504999519f +timeCreated: 1611403707 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListC2S.cs new file mode 100644 index 00000000..4b8f9f54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListC2S.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatFindRoleInfoListC2S")] + [Serializable] + public class GroupChatFindRoleInfoListC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListC2S.cs.meta new file mode 100644 index 00000000..9c92179d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39b4a84e180a8d14783d5b663393ec83 +timeCreated: 1611403593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListS2C.cs new file mode 100644 index 00000000..e9c9b0b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListS2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatFindRoleInfoListS2C")] + [Serializable] + public class GroupChatFindRoleInfoListS2C : IExtensible + { + [ProtoMember(1, Name = "rolelist", DataFormat = DataFormat.Default)] + public List rolelist + { + get + { + return this._rolelist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _rolelist = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListS2C.cs.meta new file mode 100644 index 00000000..dc2339c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindRoleInfoListS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35691c23cd91aa7478d4acd4f441e577 +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfo.cs new file mode 100644 index 00000000..1e72d43f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfo.cs @@ -0,0 +1,492 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatFindTeamInfo")] + [Serializable] + public class GroupChatFindTeamInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "groupchatName", DataFormat = DataFormat.Default)] + public string groupchatName + { + get + { + return this._groupchatName ?? ""; + } + set + { + this._groupchatName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatNameSpecified + { + get + { + return this._groupchatName != null; + } + set + { + bool flag = value == (this._groupchatName == null); + if (flag) + { + this._groupchatName = (value ? this.groupchatName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "issueIndex", DataFormat = DataFormat.TwosComplement)] + public ulong issueIndex + { + get + { + return this._issueIndex ?? 0UL; + } + set + { + this._issueIndex = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool issueIndexSpecified + { + get + { + return this._issueIndex != null; + } + set + { + bool flag = value == (this._issueIndex == null); + if (flag) + { + this._issueIndex = (value ? new ulong?(this.issueIndex) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "stageID", DataFormat = DataFormat.TwosComplement)] + public uint stageID + { + get + { + return this._stageID ?? 0u; + } + set + { + this._stageID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageIDSpecified + { + get + { + return this._stageID != null; + } + set + { + bool flag = value == (this._stageID == null); + if (flag) + { + this._stageID = (value ? new uint?(this.stageID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "fighting", DataFormat = DataFormat.TwosComplement)] + public uint fighting + { + get + { + return this._fighting ?? 0u; + } + set + { + this._fighting = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightingSpecified + { + get + { + return this._fighting != null; + } + set + { + bool flag = value == (this._fighting == null); + if (flag) + { + this._fighting = (value ? new uint?(this.fighting) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "issuetime", DataFormat = DataFormat.TwosComplement)] + public uint issuetime + { + get + { + return this._issuetime ?? 0u; + } + set + { + this._issuetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool issuetimeSpecified + { + get + { + return this._issuetime != null; + } + set + { + bool flag = value == (this._issuetime == null); + if (flag) + { + this._issuetime = (value ? new uint?(this.issuetime) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "leaderroleid", DataFormat = DataFormat.TwosComplement)] + public ulong leaderroleid + { + get + { + return this._leaderroleid ?? 0UL; + } + set + { + this._leaderroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderroleidSpecified + { + get + { + return this._leaderroleid != null; + } + set + { + bool flag = value == (this._leaderroleid == null); + if (flag) + { + this._leaderroleid = (value ? new ulong?(this.leaderroleid) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "isselfingroup", DataFormat = DataFormat.Default)] + public bool isselfingroup + { + get + { + return this._isselfingroup ?? false; + } + set + { + this._isselfingroup = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isselfingroupSpecified + { + get + { + return this._isselfingroup != null; + } + set + { + bool flag = value == (this._isselfingroup == null); + if (flag) + { + this._isselfingroup = (value ? new bool?(this.isselfingroup) : null); + } + } + } + + private ulong? _groupchatID; + + private string _groupchatName; + + private ulong? _issueIndex; + + private uint? _stageID; + + private uint? _fighting; + + private uint? _type; + + private uint? _time; + + private uint? _state; + + private uint? _issuetime; + + private ulong? _leaderroleid; + + private bool? _isselfingroup; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializegroupchatName() + { + return this.groupchatNameSpecified; + } + + private void ResetgroupchatName() + { + this.groupchatNameSpecified = false; + } + + private bool ShouldSerializeissueIndex() + { + return this.issueIndexSpecified; + } + + private void ResetissueIndex() + { + this.issueIndexSpecified = false; + } + + private bool ShouldSerializestageID() + { + return this.stageIDSpecified; + } + + private void ResetstageID() + { + this.stageIDSpecified = false; + } + + private bool ShouldSerializefighting() + { + return this.fightingSpecified; + } + + private void Resetfighting() + { + this.fightingSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeissuetime() + { + return this.issuetimeSpecified; + } + + private void Resetissuetime() + { + this.issuetimeSpecified = false; + } + + private bool ShouldSerializeleaderroleid() + { + return this.leaderroleidSpecified; + } + + private void Resetleaderroleid() + { + this.leaderroleidSpecified = false; + } + + private bool ShouldSerializeisselfingroup() + { + return this.isselfingroupSpecified; + } + + private void Resetisselfingroup() + { + this.isselfingroupSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfo.cs.meta new file mode 100644 index 00000000..594ba988 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3488d6dc71d4a44dafca646221a9dc0 +timeCreated: 1611404847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListC2S.cs new file mode 100644 index 00000000..d5c6486b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListC2S.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatFindTeamInfoListC2S")] + [Serializable] + public class GroupChatFindTeamInfoListC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListC2S.cs.meta new file mode 100644 index 00000000..dd533402 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77a52b965f956a3479eb9399eefdb4f0 +timeCreated: 1611403955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListS2C.cs new file mode 100644 index 00000000..e7c61817 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListS2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatFindTeamInfoListS2C")] + [Serializable] + public class GroupChatFindTeamInfoListS2C : IExtensible + { + [ProtoMember(1, Name = "teamlist", DataFormat = DataFormat.Default)] + public List teamlist + { + get + { + return this._teamlist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _teamlist = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListS2C.cs.meta new file mode 100644 index 00000000..58408ab3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatFindTeamInfoListS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ac815f6828ee8e4ab531eada075e388 +timeCreated: 1611403889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs new file mode 100644 index 00000000..820629c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatGetGroupInfoC2S")] + [Serializable] + public class GroupChatGetGroupInfoC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + private ulong? _groupchatID; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs.meta new file mode 100644 index 00000000..a2e5fc11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f851caa9525f5243bb78a7aa43d76dc +timeCreated: 1611404245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs new file mode 100644 index 00000000..d784f01f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatGetGroupInfoS2C")] + [Serializable] + public class GroupChatGetGroupInfoS2C : IExtensible + { + [ProtoMember(1, Name = "playerlist", DataFormat = DataFormat.Default)] + public List playerlist + { + get + { + return this._playerlist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _playerlist = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs.meta new file mode 100644 index 00000000..ceb98b12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatGetGroupInfoS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67d8087eed9e1f842a90f01447b40db7 +timeCreated: 1611403880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatIssueCountNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatIssueCountNtf.cs new file mode 100644 index 00000000..7c8156f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatIssueCountNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatIssueCountNtf")] + [Serializable] + public class GroupChatIssueCountNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rolecount", DataFormat = DataFormat.TwosComplement)] + public uint rolecount + { + get + { + return this._rolecount ?? 0u; + } + set + { + this._rolecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolecountSpecified + { + get + { + return this._rolecount != null; + } + set + { + bool flag = value == (this._rolecount == null); + if (flag) + { + this._rolecount = (value ? new uint?(this.rolecount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "groupcount", DataFormat = DataFormat.TwosComplement)] + public uint groupcount + { + get + { + return this._groupcount ?? 0u; + } + set + { + this._groupcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupcountSpecified + { + get + { + return this._groupcount != null; + } + set + { + bool flag = value == (this._groupcount == null); + if (flag) + { + this._groupcount = (value ? new uint?(this.groupcount) : null); + } + } + } + + private uint? _rolecount; + + private uint? _groupcount; + + private IExtension extensionObject; + + private bool ShouldSerializerolecount() + { + return this.rolecountSpecified; + } + + private void Resetrolecount() + { + this.rolecountSpecified = false; + } + + private bool ShouldSerializegroupcount() + { + return this.groupcountSpecified; + } + + private void Resetgroupcount() + { + this.groupcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatIssueCountNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatIssueCountNtf.cs.meta new file mode 100644 index 00000000..f4b10a0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatIssueCountNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b73d2e55bddcc2459d84c3c9a2e6e20 +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs new file mode 100644 index 00000000..b1850a22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatLeaderAddRoleC2S")] + [Serializable] + public class GroupChatLeaderAddRoleC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleIssueIndex", DataFormat = DataFormat.TwosComplement)] + public ulong roleIssueIndex + { + get + { + return this._roleIssueIndex ?? 0UL; + } + set + { + this._roleIssueIndex = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIssueIndexSpecified + { + get + { + return this._roleIssueIndex != null; + } + set + { + bool flag = value == (this._roleIssueIndex == null); + if (flag) + { + this._roleIssueIndex = (value ? new ulong?(this.roleIssueIndex) : null); + } + } + } + + private ulong? _groupchatID; + + private ulong? _roleid; + + private ulong? _roleIssueIndex; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeroleIssueIndex() + { + return this.roleIssueIndexSpecified; + } + + private void ResetroleIssueIndex() + { + this.roleIssueIndexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs.meta new file mode 100644 index 00000000..ccfc7083 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 559a4baea3a9a3a419e12bbf858a9fb2 +timeCreated: 1611403738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs new file mode 100644 index 00000000..142c279b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatLeaderAddRoleS2C")] + [Serializable] + public class GroupChatLeaderAddRoleS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs.meta new file mode 100644 index 00000000..2a432dc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderAddRoleS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 278425eef1191e342a5980a3a4009135 +timeCreated: 1611403471 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoC2S.cs new file mode 100644 index 00000000..7964aa2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoC2S.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatLeaderIssueInfoC2S")] + [Serializable] + public class GroupChatLeaderIssueInfoC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teaminfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GroupChatFindTeamInfo teaminfo + { + get + { + return this._teaminfo; + } + set + { + this._teaminfo = value; + } + } + + private GroupChatFindTeamInfo _teaminfo = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoC2S.cs.meta new file mode 100644 index 00000000..ea8a935f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 796c139eb5aa1da49b6e4343a57899d1 +timeCreated: 1611403985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoS2C.cs new file mode 100644 index 00000000..5cee86dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatLeaderIssueInfoS2C")] + [Serializable] + public class GroupChatLeaderIssueInfoS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoS2C.cs.meta new file mode 100644 index 00000000..3e625184 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderIssueInfoS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0ff1a66299b39f44b1cc7da9a55ee58 +timeCreated: 1611404835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewC2S.cs new file mode 100644 index 00000000..e1c32d7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewC2S.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatLeaderReviewC2S")] + [Serializable] + public class GroupChatLeaderReviewC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "issueIndex", DataFormat = DataFormat.TwosComplement)] + public ulong issueIndex + { + get + { + return this._issueIndex ?? 0UL; + } + set + { + this._issueIndex = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool issueIndexSpecified + { + get + { + return this._issueIndex != null; + } + set + { + bool flag = value == (this._issueIndex == null); + if (flag) + { + this._issueIndex = (value ? new ulong?(this.issueIndex) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isAgree", DataFormat = DataFormat.Default)] + public bool isAgree + { + get + { + return this._isAgree ?? false; + } + set + { + this._isAgree = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isAgreeSpecified + { + get + { + return this._isAgree != null; + } + set + { + bool flag = value == (this._isAgree == null); + if (flag) + { + this._isAgree = (value ? new bool?(this.isAgree) : null); + } + } + } + + private ulong? _groupchatID; + + private ulong? _issueIndex; + + private ulong? _roleid; + + private bool? _isAgree; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializeissueIndex() + { + return this.issueIndexSpecified; + } + + private void ResetissueIndex() + { + this.issueIndexSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeisAgree() + { + return this.isAgreeSpecified; + } + + private void ResetisAgree() + { + this.isAgreeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewC2S.cs.meta new file mode 100644 index 00000000..67157b05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e999210734a557a46932f9d7bc86afb4 +timeCreated: 1611404757 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListC2S.cs new file mode 100644 index 00000000..cd357112 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListC2S.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatLeaderReviewListC2S")] + [Serializable] + public class GroupChatLeaderReviewListC2S : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListC2S.cs.meta new file mode 100644 index 00000000..32630a49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 037d5e7c897e03c48b8f6dbb736a7047 +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListS2C.cs new file mode 100644 index 00000000..bccde485 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListS2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatLeaderReviewListS2C")] + [Serializable] + public class GroupChatLeaderReviewListS2C : IExtensible + { + [ProtoMember(1, Name = "roleinfolist", DataFormat = DataFormat.Default)] + public List roleinfolist + { + get + { + return this._roleinfolist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _roleinfolist = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListS2C.cs.meta new file mode 100644 index 00000000..c00d4e76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewListS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1836ec185006444ab2dc895c27003fa +timeCreated: 1611404254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewS2C.cs new file mode 100644 index 00000000..0e42a035 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatLeaderReviewS2C")] + [Serializable] + public class GroupChatLeaderReviewS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewS2C.cs.meta new file mode 100644 index 00000000..76419631 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatLeaderReviewS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b2e25a87cbe19c4694e77422f9f073e +timeCreated: 1611403992 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerC2S.cs new file mode 100644 index 00000000..0f455364 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerC2S.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatManagerC2S")] + [Serializable] + public class GroupChatManagerC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, Name = "subrolelist", DataFormat = DataFormat.TwosComplement)] + public List subrolelist + { + get + { + return this._subrolelist; + } + } + + [ProtoMember(3, Name = "addrolelist", DataFormat = DataFormat.TwosComplement)] + public List addrolelist + { + get + { + return this._addrolelist; + } + } + + private ulong? _groupchatID; + + private readonly List _subrolelist = new List(); + + private readonly List _addrolelist = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerC2S.cs.meta new file mode 100644 index 00000000..9dfc70c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e28a7b9a24db46a468322aafec10e84e +timeCreated: 1611404728 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerPtc.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerPtc.cs new file mode 100644 index 00000000..d39f85e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerPtc.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatManagerPtc")] + [Serializable] + public class GroupChatManagerPtc : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, Name = "addrolelist", DataFormat = DataFormat.Default)] + public List addrolelist + { + get + { + return this._addrolelist; + } + } + + [ProtoMember(3, Name = "subrolelist", DataFormat = DataFormat.TwosComplement)] + public List subrolelist + { + get + { + return this._subrolelist; + } + } + + private ulong? _groupchatID; + + private readonly List _addrolelist = new List(); + + private readonly List _subrolelist = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerPtc.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerPtc.cs.meta new file mode 100644 index 00000000..87239828 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerPtc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80314b0960528be47b20a38d8ad12f1d +timeCreated: 1611404033 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerS2C.cs new file mode 100644 index 00000000..47373c33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatManagerS2C")] + [Serializable] + public class GroupChatManagerS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerS2C.cs.meta new file mode 100644 index 00000000..b72b0fbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatManagerS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed8a5446920e241438e3db9ea98dc3b6 +timeCreated: 1611404791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyC2S.cs new file mode 100644 index 00000000..fbe0f780 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyC2S.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatPlayerApplyC2S")] + [Serializable] + public class GroupChatPlayerApplyC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "issueIndex", DataFormat = DataFormat.TwosComplement)] + public ulong issueIndex + { + get + { + return this._issueIndex ?? 0UL; + } + set + { + this._issueIndex = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool issueIndexSpecified + { + get + { + return this._issueIndex != null; + } + set + { + bool flag = value == (this._issueIndex == null); + if (flag) + { + this._issueIndex = (value ? new ulong?(this.issueIndex) : null); + } + } + } + + private ulong? _groupchatID; + + private ulong? _issueIndex; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializeissueIndex() + { + return this.issueIndexSpecified; + } + + private void ResetissueIndex() + { + this.issueIndexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyC2S.cs.meta new file mode 100644 index 00000000..f81248f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f3872e10871f6b43afa6280c284a416 +timeCreated: 1611403401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyS2C.cs new file mode 100644 index 00000000..09c2489c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatPlayerApplyS2C")] + [Serializable] + public class GroupChatPlayerApplyS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyS2C.cs.meta new file mode 100644 index 00000000..3edfb374 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerApplyS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f8f9a5ac9e24f54c939472f7b1cdccd +timeCreated: 1611403517 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerInfo.cs new file mode 100644 index 00000000..ae370980 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerInfo.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatPlayerInfo")] + [Serializable] + public class GroupChatPlayerInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "title", DataFormat = DataFormat.TwosComplement)] + public uint title + { + get + { + return this._title ?? 0u; + } + set + { + this._title = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? new uint?(this.title) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "fighting", DataFormat = DataFormat.TwosComplement)] + public uint fighting + { + get + { + return this._fighting ?? 0u; + } + set + { + this._fighting = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightingSpecified + { + get + { + return this._fighting != null; + } + set + { + bool flag = value == (this._fighting == null); + if (flag) + { + this._fighting = (value ? new uint?(this.fighting) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "guild", DataFormat = DataFormat.Default)] + public string guild + { + get + { + return this._guild ?? ""; + } + set + { + this._guild = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildSpecified + { + get + { + return this._guild != null; + } + set + { + bool flag = value == (this._guild == null); + if (flag) + { + this._guild = (value ? this.guild : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "joingrouptime", DataFormat = DataFormat.TwosComplement)] + public uint joingrouptime + { + get + { + return this._joingrouptime ?? 0u; + } + set + { + this._joingrouptime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joingrouptimeSpecified + { + get + { + return this._joingrouptime != null; + } + set + { + bool flag = value == (this._joingrouptime == null); + if (flag) + { + this._joingrouptime = (value ? new uint?(this.joingrouptime) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public uint uid + { + get + { + return this._uid ?? 0u; + } + set + { + this._uid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new uint?(this.uid) : null); + } + } + } + + private ulong? _roleid; + + private string _rolename; + + private uint? _profession; + + private uint? _title; + + private uint? _level; + + private uint? _fighting; + + private string _guild; + + private uint? _joingrouptime; + + private uint? _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializefighting() + { + return this.fightingSpecified; + } + + private void Resetfighting() + { + this.fightingSpecified = false; + } + + private bool ShouldSerializeguild() + { + return this.guildSpecified; + } + + private void Resetguild() + { + this.guildSpecified = false; + } + + private bool ShouldSerializejoingrouptime() + { + return this.joingrouptimeSpecified; + } + + private void Resetjoingrouptime() + { + this.joingrouptimeSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerInfo.cs.meta new file mode 100644 index 00000000..123969a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 952b14896c52b074e8ee898cb9250d89 +timeCreated: 1611404180 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoC2S.cs new file mode 100644 index 00000000..be446c41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoC2S.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatPlayerIssueInfoC2S")] + [Serializable] + public class GroupChatPlayerIssueInfoC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GroupChatFindRoleInfo roleinfo + { + get + { + return this._roleinfo; + } + set + { + this._roleinfo = value; + } + } + + private GroupChatFindRoleInfo _roleinfo = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoC2S.cs.meta new file mode 100644 index 00000000..35b29220 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc85d4b7988aad7459b7ab91e2b97410 +timeCreated: 1611404447 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoS2C.cs new file mode 100644 index 00000000..1bd7ca10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatPlayerIssueInfoS2C")] + [Serializable] + public class GroupChatPlayerIssueInfoS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoS2C.cs.meta new file mode 100644 index 00000000..a82df9e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatPlayerIssueInfoS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ee0ad8b8b05ded499b6e382fc7fa2bf +timeCreated: 1611404006 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs new file mode 100644 index 00000000..d1c2d74b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatQuitC2S")] + [Serializable] + public class GroupChatQuitC2S : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + private ulong? _groupchatID; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs.meta new file mode 100644 index 00000000..55846ee5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitC2S.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 134aeade2e3686a458b2913c76e7ae4c +timeCreated: 1611403247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs new file mode 100644 index 00000000..a1065051 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatQuitPtc")] + [Serializable] + public class GroupChatQuitPtc : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _groupchatID; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs.meta new file mode 100644 index 00000000..f42f7ead --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitPtc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: edb595a52917d1b48ad7800dd74f7d4a +timeCreated: 1611404792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs new file mode 100644 index 00000000..35975395 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatQuitS2C")] + [Serializable] + public class GroupChatQuitS2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs.meta new file mode 100644 index 00000000..c501d83e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatQuitS2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ffed6d8c25c5fe84e9ffec17f38c3310 +timeCreated: 1611404948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs new file mode 100644 index 00000000..29c66207 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GroupChatTeamInfo")] + [Serializable] + public class GroupChatTeamInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupchatID", DataFormat = DataFormat.TwosComplement)] + public ulong groupchatID + { + get + { + return this._groupchatID ?? 0UL; + } + set + { + this._groupchatID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatIDSpecified + { + get + { + return this._groupchatID != null; + } + set + { + bool flag = value == (this._groupchatID == null); + if (flag) + { + this._groupchatID = (value ? new ulong?(this.groupchatID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leaderRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong leaderRoleID + { + get + { + return this._leaderRoleID ?? 0UL; + } + set + { + this._leaderRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderRoleIDSpecified + { + get + { + return this._leaderRoleID != null; + } + set + { + bool flag = value == (this._leaderRoleID == null); + if (flag) + { + this._leaderRoleID = (value ? new ulong?(this.leaderRoleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "groupchatName", DataFormat = DataFormat.Default)] + public string groupchatName + { + get + { + return this._groupchatName ?? ""; + } + set + { + this._groupchatName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupchatNameSpecified + { + get + { + return this._groupchatName != null; + } + set + { + bool flag = value == (this._groupchatName == null); + if (flag) + { + this._groupchatName = (value ? this.groupchatName : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "createtype", DataFormat = DataFormat.TwosComplement)] + public uint createtype + { + get + { + return this._createtype ?? 0u; + } + set + { + this._createtype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool createtypeSpecified + { + get + { + return this._createtype != null; + } + set + { + bool flag = value == (this._createtype == null); + if (flag) + { + this._createtype = (value ? new uint?(this.createtype) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "rolecount", DataFormat = DataFormat.TwosComplement)] + public uint rolecount + { + get + { + return this._rolecount ?? 0u; + } + set + { + this._rolecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolecountSpecified + { + get + { + return this._rolecount != null; + } + set + { + bool flag = value == (this._rolecount == null); + if (flag) + { + this._rolecount = (value ? new uint?(this.rolecount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "groupcreatetime", DataFormat = DataFormat.TwosComplement)] + public uint groupcreatetime + { + get + { + return this._groupcreatetime ?? 0u; + } + set + { + this._groupcreatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupcreatetimeSpecified + { + get + { + return this._groupcreatetime != null; + } + set + { + bool flag = value == (this._groupcreatetime == null); + if (flag) + { + this._groupcreatetime = (value ? new uint?(this.groupcreatetime) : null); + } + } + } + + private ulong? _groupchatID; + + private ulong? _leaderRoleID; + + private string _groupchatName; + + private uint? _createtype; + + private uint? _rolecount; + + private uint? _groupcreatetime; + + private IExtension extensionObject; + + private bool ShouldSerializegroupchatID() + { + return this.groupchatIDSpecified; + } + + private void ResetgroupchatID() + { + this.groupchatIDSpecified = false; + } + + private bool ShouldSerializeleaderRoleID() + { + return this.leaderRoleIDSpecified; + } + + private void ResetleaderRoleID() + { + this.leaderRoleIDSpecified = false; + } + + private bool ShouldSerializegroupchatName() + { + return this.groupchatNameSpecified; + } + + private void ResetgroupchatName() + { + this.groupchatNameSpecified = false; + } + + private bool ShouldSerializecreatetype() + { + return this.createtypeSpecified; + } + + private void Resetcreatetype() + { + this.createtypeSpecified = false; + } + + private bool ShouldSerializerolecount() + { + return this.rolecountSpecified; + } + + private void Resetrolecount() + { + this.rolecountSpecified = false; + } + + private bool ShouldSerializegroupcreatetime() + { + return this.groupcreatetimeSpecified; + } + + private void Resetgroupcreatetime() + { + this.groupcreatetimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs.meta new file mode 100644 index 00000000..4eacf97f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GroupChatTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0d5fb0582f51d8439ee186792ec7441 +timeCreated: 1611404834 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs new file mode 100644 index 00000000..8465b352 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GrowthFundAwardArg")] + [Serializable] + public class GrowthFundAwardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)] + public int value + { + get + { + return this._value ?? 0; + } + set + { + this._value = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool valueSpecified + { + get + { + return this._value != null; + } + set + { + bool flag = value == (this._value == null); + if (flag) + { + this._value = (value ? new int?(this.value) : null); + } + } + } + + private int? _type; + + private int? _value; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializevalue() + { + return this.valueSpecified; + } + + private void Resetvalue() + { + this.valueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs.meta new file mode 100644 index 00000000..72978a42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd24d272fff09e440b6fc0c73e07f2aa +timeCreated: 1611404553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs new file mode 100644 index 00000000..b2faec94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GrowthFundAwardRes")] + [Serializable] + public class GrowthFundAwardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(2, Name = "growthFundLevelInfo", DataFormat = DataFormat.TwosComplement)] + public List growthFundLevelInfo + { + get + { + return this._growthFundLevelInfo; + } + } + + [ProtoMember(3, Name = "growthFundLoginInfo", DataFormat = DataFormat.TwosComplement)] + public List growthFundLoginInfo + { + get + { + return this._growthFundLoginInfo; + } + } + + private ErrorCode? _errcode; + + private readonly List _growthFundLevelInfo = new List(); + + private readonly List _growthFundLoginInfo = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs.meta new file mode 100644 index 00000000..22253ce7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GrowthFundAwardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91164f06ff1d5364ab4401bca38a272f +timeCreated: 1611404141 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildActivityRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildActivityRole.cs new file mode 100644 index 00000000..54a2a7b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildActivityRole.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildActivityRole")] + [Serializable] + public class GuildActivityRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildActivityRole.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildActivityRole.cs.meta new file mode 100644 index 00000000..a7376f4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildActivityRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a128d7db863b1442a06e7411b2de264 +timeCreated: 1611403663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalArg.cs new file mode 100644 index 00000000..970fed4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildApprovalArg")] + [Serializable] + public class GuildApprovalArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + private ulong? _roleid; + + private int? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalArg.cs.meta new file mode 100644 index 00000000..36deab90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9abfe95e9bc12740a69279367dfd0ea +timeCreated: 1611404300 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalRes.cs new file mode 100644 index 00000000..fe2efea3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildApprovalRes")] + [Serializable] + public class GuildApprovalRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalRes.cs.meta new file mode 100644 index 00000000..b3035052 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildApprovalRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b26005b811c4ae4dbf36f1a2539fa5c +timeCreated: 1611403597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaGroupData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaGroupData.cs new file mode 100644 index 00000000..887a7039 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaGroupData.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildArenaGroupData")] + [Serializable] + public class GuildArenaGroupData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "battleId", DataFormat = DataFormat.TwosComplement)] + public uint battleId + { + get + { + return this._battleId ?? 0u; + } + set + { + this._battleId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool battleIdSpecified + { + get + { + return this._battleId != null; + } + set + { + bool flag = value == (this._battleId == null); + if (flag) + { + this._battleId = (value ? new uint?(this.battleId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildOneId", DataFormat = DataFormat.TwosComplement)] + public ulong guildOneId + { + get + { + return this._guildOneId ?? 0UL; + } + set + { + this._guildOneId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildOneIdSpecified + { + get + { + return this._guildOneId != null; + } + set + { + bool flag = value == (this._guildOneId == null); + if (flag) + { + this._guildOneId = (value ? new ulong?(this.guildOneId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildTwoId", DataFormat = DataFormat.TwosComplement)] + public ulong guildTwoId + { + get + { + return this._guildTwoId ?? 0UL; + } + set + { + this._guildTwoId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildTwoIdSpecified + { + get + { + return this._guildTwoId != null; + } + set + { + bool flag = value == (this._guildTwoId == null); + if (flag) + { + this._guildTwoId = (value ? new ulong?(this.guildTwoId) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "winerId", DataFormat = DataFormat.TwosComplement)] + public ulong winerId + { + get + { + return this._winerId ?? 0UL; + } + set + { + this._winerId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winerIdSpecified + { + get + { + return this._winerId != null; + } + set + { + bool flag = value == (this._winerId == null); + if (flag) + { + this._winerId = (value ? new ulong?(this.winerId) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "warstate", DataFormat = DataFormat.TwosComplement)] + public uint warstate + { + get + { + return this._warstate ?? 0u; + } + set + { + this._warstate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool warstateSpecified + { + get + { + return this._warstate != null; + } + set + { + bool flag = value == (this._warstate == null); + if (flag) + { + this._warstate = (value ? new uint?(this.warstate) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "watchId", DataFormat = DataFormat.TwosComplement)] + public uint watchId + { + get + { + return this._watchId ?? 0u; + } + set + { + this._watchId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool watchIdSpecified + { + get + { + return this._watchId != null; + } + set + { + bool flag = value == (this._watchId == null); + if (flag) + { + this._watchId = (value ? new uint?(this.watchId) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + private uint? _battleId; + + private ulong? _guildOneId; + + private ulong? _guildTwoId; + + private ulong? _winerId; + + private uint? _warstate; + + private uint? _watchId; + + private uint? _state; + + private IExtension extensionObject; + + private bool ShouldSerializebattleId() + { + return this.battleIdSpecified; + } + + private void ResetbattleId() + { + this.battleIdSpecified = false; + } + + private bool ShouldSerializeguildOneId() + { + return this.guildOneIdSpecified; + } + + private void ResetguildOneId() + { + this.guildOneIdSpecified = false; + } + + private bool ShouldSerializeguildTwoId() + { + return this.guildTwoIdSpecified; + } + + private void ResetguildTwoId() + { + this.guildTwoIdSpecified = false; + } + + private bool ShouldSerializewinerId() + { + return this.winerIdSpecified; + } + + private void ResetwinerId() + { + this.winerIdSpecified = false; + } + + private bool ShouldSerializewarstate() + { + return this.warstateSpecified; + } + + private void Resetwarstate() + { + this.warstateSpecified = false; + } + + private bool ShouldSerializewatchId() + { + return this.watchIdSpecified; + } + + private void ResetwatchId() + { + this.watchIdSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaGroupData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaGroupData.cs.meta new file mode 100644 index 00000000..64a64030 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaGroupData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8c863b6f1644b54b92d5b74416c92f0 +timeCreated: 1611404754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs new file mode 100644 index 00000000..17eccd73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildArenaHistory")] + [Serializable] + public class GuildArenaHistory : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "first", DataFormat = DataFormat.Default)] + public string first + { + get + { + return this._first ?? ""; + } + set + { + this._first = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstSpecified + { + get + { + return this._first != null; + } + set + { + bool flag = value == (this._first == null); + if (flag) + { + this._first = (value ? this.first : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "second", DataFormat = DataFormat.Default)] + public string second + { + get + { + return this._second ?? ""; + } + set + { + this._second = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool secondSpecified + { + get + { + return this._second != null; + } + set + { + bool flag = value == (this._second == null); + if (flag) + { + this._second = (value ? this.second : null); + } + } + } + + private string _first; + + private string _second; + + private IExtension extensionObject; + + private bool ShouldSerializefirst() + { + return this.firstSpecified; + } + + private void Resetfirst() + { + this.firstSpecified = false; + } + + private bool ShouldSerializesecond() + { + return this.secondSpecified; + } + + private void Resetsecond() + { + this.secondSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs.meta new file mode 100644 index 00000000..4e7ba0c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaHistory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ed446d4203502342927422ab65705c7 +timeCreated: 1611404131 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployArg.cs new file mode 100644 index 00000000..344ef0c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildArenaSimpleDeployArg")] + [Serializable] + public class GuildArenaSimpleDeployArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployArg.cs.meta new file mode 100644 index 00000000..6727f96d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abc4765cf31589e4a9be8243937cbfb4 +timeCreated: 1611404308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployRes.cs new file mode 100644 index 00000000..98f097f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildArenaSimpleDeployRes")] + [Serializable] + public class GuildArenaSimpleDeployRes : IExtensible + { + [ProtoMember(1, Name = "fightunit", DataFormat = DataFormat.Default)] + public List fightunit + { + get + { + return this._fightunit; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _fightunit = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployRes.cs.meta new file mode 100644 index 00000000..4ad7c1ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaSimpleDeployRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ca7427c8a54ca84a8833b897c2a6df9 +timeCreated: 1611403997 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaState.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaState.cs new file mode 100644 index 00000000..dbc72cef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaState.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildArenaState")] + public enum GuildArenaState + { + [ProtoEnum(Name = "GUILD_ARENA_NOT_BEGIN", Value = 1)] + GUILD_ARENA_NOT_BEGIN = 1, + [ProtoEnum(Name = "GUILD_ARENA_BEGIN", Value = 2)] + GUILD_ARENA_BEGIN, + [ProtoEnum(Name = "GUILD_ARENA_BATTLE_ONE", Value = 3)] + GUILD_ARENA_BATTLE_ONE, + [ProtoEnum(Name = "GUILD_ARENA_BATTLE_TWO", Value = 4)] + GUILD_ARENA_BATTLE_TWO, + [ProtoEnum(Name = "GUILD_ARENA_BATTLE_FINAL", Value = 5)] + GUILD_ARENA_BATTLE_FINAL, + [ProtoEnum(Name = "GUILD_ARENA_END", Value = 6)] + GUILD_ARENA_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaState.cs.meta new file mode 100644 index 00000000..b3d1c63a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0679b5d97394eaf4688e6560a6df9d01 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaType.cs new file mode 100644 index 00000000..90b5bf6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaType.cs @@ -0,0 +1,26 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildArenaType")] + public enum GuildArenaType + { + [ProtoEnum(Name = "battleone", Value = 1)] + battleone = 1, + [ProtoEnum(Name = "battletwo", Value = 2)] + battletwo, + [ProtoEnum(Name = "battlethree", Value = 3)] + battlethree, + [ProtoEnum(Name = "battlefour", Value = 4)] + battlefour, + [ProtoEnum(Name = "battlefinal", Value = 5)] + battlefinal, + [ProtoEnum(Name = "apply", Value = 6)] + apply, + [ProtoEnum(Name = "resttime", Value = 0)] + resttime = 0, + [ProtoEnum(Name = "notopen", Value = 7)] + notopen = 7 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaType.cs.meta new file mode 100644 index 00000000..749d291c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildArenaType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02f3b943edd09fe43a2041b94b8d36fb +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctItemTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctItemTime.cs new file mode 100644 index 00000000..1b4d2750 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctItemTime.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildAuctItemTime")] + [Serializable] + public class GuildAuctItemTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "auct_type", DataFormat = DataFormat.TwosComplement)] + public uint auct_type + { + get + { + return this._auct_type ?? 0u; + } + set + { + this._auct_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool auct_typeSpecified + { + get + { + return this._auct_type != null; + } + set + { + bool flag = value == (this._auct_type == null); + if (flag) + { + this._auct_type = (value ? new uint?(this.auct_type) : null); + } + } + } + + private uint? _auct_type; + + private IExtension extensionObject; + + private bool ShouldSerializeauct_type() + { + return this.auct_typeSpecified; + } + + private void Resetauct_type() + { + this.auct_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctItemTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctItemTime.cs.meta new file mode 100644 index 00000000..353ba836 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctItemTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7926dd3118fffa14a80f1f83241a97a6 +timeCreated: 1611403984 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqArg.cs new file mode 100644 index 00000000..d3bdb141 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildAuctReqArg")] + [Serializable] + public class GuildAuctReqArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)] + public GuildAuctReqType reqtype + { + get + { + return this._reqtype ?? GuildAuctReqType.GART_ACT_TYPE; + } + set + { + this._reqtype = new GuildAuctReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqtypeSpecified + { + get + { + return this._reqtype != null; + } + set + { + bool flag = value == (this._reqtype == null); + if (flag) + { + this._reqtype = (value ? new GuildAuctReqType?(this.reqtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "acttype", DataFormat = DataFormat.TwosComplement)] + public int acttype + { + get + { + return this._acttype ?? 0; + } + set + { + this._acttype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool acttypeSpecified + { + get + { + return this._acttype != null; + } + set + { + bool flag = value == (this._acttype == null); + if (flag) + { + this._acttype = (value ? new int?(this.acttype) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "itemtype", DataFormat = DataFormat.TwosComplement)] + public int itemtype + { + get + { + return this._itemtype ?? 0; + } + set + { + this._itemtype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemtypeSpecified + { + get + { + return this._itemtype != null; + } + set + { + bool flag = value == (this._itemtype == null); + if (flag) + { + this._itemtype = (value ? new int?(this.itemtype) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "curauctprice", DataFormat = DataFormat.TwosComplement)] + public uint curauctprice + { + get + { + return this._curauctprice ?? 0u; + } + set + { + this._curauctprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curauctpriceSpecified + { + get + { + return this._curauctprice != null; + } + set + { + bool flag = value == (this._curauctprice == null); + if (flag) + { + this._curauctprice = (value ? new uint?(this.curauctprice) : null); + } + } + } + + private GuildAuctReqType? _reqtype; + + private ulong? _uid; + + private int? _acttype; + + private int? _itemtype; + + private uint? _curauctprice; + + private IExtension extensionObject; + + private bool ShouldSerializereqtype() + { + return this.reqtypeSpecified; + } + + private void Resetreqtype() + { + this.reqtypeSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeacttype() + { + return this.acttypeSpecified; + } + + private void Resetacttype() + { + this.acttypeSpecified = false; + } + + private bool ShouldSerializeitemtype() + { + return this.itemtypeSpecified; + } + + private void Resetitemtype() + { + this.itemtypeSpecified = false; + } + + private bool ShouldSerializecurauctprice() + { + return this.curauctpriceSpecified; + } + + private void Resetcurauctprice() + { + this.curauctpriceSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqArg.cs.meta new file mode 100644 index 00000000..6d806550 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ffd2f318b40f514997546cd1eedf6f1 +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs new file mode 100644 index 00000000..e62d7a54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildAuctReqRes")] + [Serializable] + public class GuildAuctReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "curauctprice", DataFormat = DataFormat.TwosComplement)] + public uint curauctprice + { + get + { + return this._curauctprice ?? 0u; + } + set + { + this._curauctprice = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curauctpriceSpecified + { + get + { + return this._curauctprice != null; + } + set + { + bool flag = value == (this._curauctprice == null); + if (flag) + { + this._curauctprice = (value ? new uint?(this.curauctprice) : null); + } + } + } + + [ProtoMember(3, Name = "saleitems", DataFormat = DataFormat.Default)] + public List saleitems + { + get + { + return this._saleitems; + } + } + + [ProtoMember(4, Name = "salehistorys", DataFormat = DataFormat.Default)] + public List salehistorys + { + get + { + return this._salehistorys; + } + } + + [ProtoMember(5, IsRequired = false, Name = "profit", DataFormat = DataFormat.TwosComplement)] + public uint profit + { + get + { + return this._profit ?? 0u; + } + set + { + this._profit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profitSpecified + { + get + { + return this._profit != null; + } + set + { + bool flag = value == (this._profit == null); + if (flag) + { + this._profit = (value ? new uint?(this.profit) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _curauctprice; + + private readonly List _saleitems = new List(); + + private readonly List _salehistorys = new List(); + + private uint? _profit; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecurauctprice() + { + return this.curauctpriceSpecified; + } + + private void Resetcurauctprice() + { + this.curauctpriceSpecified = false; + } + + private bool ShouldSerializeprofit() + { + return this.profitSpecified; + } + + private void Resetprofit() + { + this.profitSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs.meta new file mode 100644 index 00000000..222e9f19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb9ffe74cc6ffaa43ad307be481c0461 +timeCreated: 1611404931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqType.cs new file mode 100644 index 00000000..6f06fef5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildAuctReqType")] + public enum GuildAuctReqType + { + [ProtoEnum(Name = "GART_ACT_TYPE", Value = 1)] + GART_ACT_TYPE = 1, + [ProtoEnum(Name = "GART_ITEM_TYPE", Value = 2)] + GART_ITEM_TYPE, + [ProtoEnum(Name = "GART_BUY_AUCT", Value = 5)] + GART_BUY_AUCT = 5, + [ProtoEnum(Name = "GART_BUY_NOW", Value = 6)] + GART_BUY_NOW, + [ProtoEnum(Name = "GART_AUCT_GUILD_HISTORY", Value = 7)] + GART_AUCT_GUILD_HISTORY, + [ProtoEnum(Name = "GART_AUCT_WORLD_HISTORY", Value = 8)] + GART_AUCT_WORLD_HISTORY + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqType.cs.meta new file mode 100644 index 00000000..e3572ba6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df340155470e9af4ba4fb241307fd41f +timeCreated: 1611404691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctResultType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctResultType.cs new file mode 100644 index 00000000..c7c26e89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctResultType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildAuctResultType")] + public enum GuildAuctResultType + { + [ProtoEnum(Name = "GA_RESULT_BUY_NOW", Value = 1)] + GA_RESULT_BUY_NOW = 1, + [ProtoEnum(Name = "GA_RESULT_BUY_AUCT", Value = 2)] + GA_RESULT_BUY_AUCT, + [ProtoEnum(Name = "GA_RESULT_TO_WORLD", Value = 3)] + GA_RESULT_TO_WORLD + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctResultType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctResultType.cs.meta new file mode 100644 index 00000000..009350c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildAuctResultType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d30b30b0a8bed747b7fb5cfe8a36517 +timeCreated: 1611403804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs new file mode 100644 index 00000000..134f5836 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBestCardsNtf")] + [Serializable] + public class GuildBestCardsNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bestresult", DataFormat = DataFormat.TwosComplement)] + public uint bestresult + { + get + { + return this._bestresult ?? 0u; + } + set + { + this._bestresult = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bestresultSpecified + { + get + { + return this._bestresult != null; + } + set + { + bool flag = value == (this._bestresult == null); + if (flag) + { + this._bestresult = (value ? new uint?(this.bestresult) : null); + } + } + } + + [ProtoMember(2, Name = "bestcards", DataFormat = DataFormat.TwosComplement)] + public List bestcards + { + get + { + return this._bestcards; + } + } + + [ProtoMember(3, IsRequired = false, Name = "bestrole", DataFormat = DataFormat.Default)] + public string bestrole + { + get + { + return this._bestrole ?? ""; + } + set + { + this._bestrole = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bestroleSpecified + { + get + { + return this._bestrole != null; + } + set + { + bool flag = value == (this._bestrole == null); + if (flag) + { + this._bestrole = (value ? this.bestrole : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "match_type", DataFormat = DataFormat.TwosComplement)] + public uint match_type + { + get + { + return this._match_type ?? 0u; + } + set + { + this._match_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool match_typeSpecified + { + get + { + return this._match_type != null; + } + set + { + bool flag = value == (this._match_type == null); + if (flag) + { + this._match_type = (value ? new uint?(this.match_type) : null); + } + } + } + + private uint? _bestresult; + + private readonly List _bestcards = new List(); + + private string _bestrole; + + private uint? _type; + + private uint? _match_type; + + private IExtension extensionObject; + + private bool ShouldSerializebestresult() + { + return this.bestresultSpecified; + } + + private void Resetbestresult() + { + this.bestresultSpecified = false; + } + + private bool ShouldSerializebestrole() + { + return this.bestroleSpecified; + } + + private void Resetbestrole() + { + this.bestroleSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializematch_type() + { + return this.match_typeSpecified; + } + + private void Resetmatch_type() + { + this.match_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs.meta new file mode 100644 index 00000000..74b5b8f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBestCardsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e070ca3de0eda7e4ea0d60ee11332098 +timeCreated: 1611404697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupReq.cs new file mode 100644 index 00000000..537e9b2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBindGroupReq")] + [Serializable] + public class GuildBindGroupReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupReq.cs.meta new file mode 100644 index 00000000..cd5cae12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6129f2bf1ab44e34686ab99347489c24 +timeCreated: 1611403837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupRes.cs new file mode 100644 index 00000000..aa75aada --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBindGroupRes")] + [Serializable] + public class GuildBindGroupRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "group_name", DataFormat = DataFormat.Default)] + public string group_name + { + get + { + return this._group_name ?? ""; + } + set + { + this._group_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group_nameSpecified + { + get + { + return this._group_name != null; + } + set + { + bool flag = value == (this._group_name == null); + if (flag) + { + this._group_name = (value ? this.group_name : null); + } + } + } + + private ErrorCode? _result; + + private string _group_name; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializegroup_name() + { + return this.group_nameSpecified; + } + + private void Resetgroup_name() + { + this.group_nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupRes.cs.meta new file mode 100644 index 00000000..93212e09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindGroupRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4f48089b0be3874e977749be700eb12 +timeCreated: 1611404741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBindStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindStatus.cs new file mode 100644 index 00000000..cd47bc00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindStatus.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBindStatus")] + public enum GuildBindStatus + { + [ProtoEnum(Name = "GBS_NotBind", Value = 1)] + GBS_NotBind = 1, + [ProtoEnum(Name = "GBS_Owner", Value = 2)] + GBS_Owner, + [ProtoEnum(Name = "GBS_Admin", Value = 3)] + GBS_Admin, + [ProtoEnum(Name = "GBS_Member", Value = 4)] + GBS_Member, + [ProtoEnum(Name = "GBS_NotMember", Value = 5)] + GBS_NotMember + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBindStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindStatus.cs.meta new file mode 100644 index 00000000..b8553255 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBindStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d258d812b6b6c949977dd1bb95536ae +timeCreated: 1611403350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusAppear.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusAppear.cs new file mode 100644 index 00000000..424fd2d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusAppear.cs @@ -0,0 +1,535 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBonusAppear")] + [Serializable] + public class GuildBonusAppear : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusID", DataFormat = DataFormat.TwosComplement)] + public uint bonusID + { + get + { + return this._bonusID ?? 0u; + } + set + { + this._bonusID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusIDSpecified + { + get + { + return this._bonusID != null; + } + set + { + bool flag = value == (this._bonusID == null); + if (flag) + { + this._bonusID = (value ? new uint?(this.bonusID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "bonusType", DataFormat = DataFormat.TwosComplement)] + public uint bonusType + { + get + { + return this._bonusType ?? 0u; + } + set + { + this._bonusType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusTypeSpecified + { + get + { + return this._bonusType != null; + } + set + { + bool flag = value == (this._bonusType == null); + if (flag) + { + this._bonusType = (value ? new uint?(this.bonusType) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "maxPeopleNum", DataFormat = DataFormat.TwosComplement)] + public uint maxPeopleNum + { + get + { + return this._maxPeopleNum ?? 0u; + } + set + { + this._maxPeopleNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxPeopleNumSpecified + { + get + { + return this._maxPeopleNum != null; + } + set + { + bool flag = value == (this._maxPeopleNum == null); + if (flag) + { + this._maxPeopleNum = (value ? new uint?(this.maxPeopleNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "bonusStatus", DataFormat = DataFormat.TwosComplement)] + public uint bonusStatus + { + get + { + return this._bonusStatus ?? 0u; + } + set + { + this._bonusStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusStatusSpecified + { + get + { + return this._bonusStatus != null; + } + set + { + bool flag = value == (this._bonusStatus == null); + if (flag) + { + this._bonusStatus = (value ? new uint?(this.bonusStatus) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "leftOpenTime", DataFormat = DataFormat.TwosComplement)] + public uint leftOpenTime + { + get + { + return this._leftOpenTime ?? 0u; + } + set + { + this._leftOpenTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftOpenTimeSpecified + { + get + { + return this._leftOpenTime != null; + } + set + { + bool flag = value == (this._leftOpenTime == null); + if (flag) + { + this._leftOpenTime = (value ? new uint?(this.leftOpenTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "leftBringBackTime", DataFormat = DataFormat.TwosComplement)] + public uint leftBringBackTime + { + get + { + return this._leftBringBackTime ?? 0u; + } + set + { + this._leftBringBackTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftBringBackTimeSpecified + { + get + { + return this._leftBringBackTime != null; + } + set + { + bool flag = value == (this._leftBringBackTime == null); + if (flag) + { + this._leftBringBackTime = (value ? new uint?(this.leftBringBackTime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "sourceName", DataFormat = DataFormat.Default)] + public string sourceName + { + get + { + return this._sourceName ?? ""; + } + set + { + this._sourceName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sourceNameSpecified + { + get + { + return this._sourceName != null; + } + set + { + bool flag = value == (this._sourceName == null); + if (flag) + { + this._sourceName = (value ? this.sourceName : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "alreadyGetPeopleNum", DataFormat = DataFormat.TwosComplement)] + public uint alreadyGetPeopleNum + { + get + { + return this._alreadyGetPeopleNum ?? 0u; + } + set + { + this._alreadyGetPeopleNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool alreadyGetPeopleNumSpecified + { + get + { + return this._alreadyGetPeopleNum != null; + } + set + { + bool flag = value == (this._alreadyGetPeopleNum == null); + if (flag) + { + this._alreadyGetPeopleNum = (value ? new uint?(this.alreadyGetPeopleNum) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "needCheckInNum", DataFormat = DataFormat.TwosComplement)] + public uint needCheckInNum + { + get + { + return this._needCheckInNum ?? 0u; + } + set + { + this._needCheckInNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needCheckInNumSpecified + { + get + { + return this._needCheckInNum != null; + } + set + { + bool flag = value == (this._needCheckInNum == null); + if (flag) + { + this._needCheckInNum = (value ? new uint?(this.needCheckInNum) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "bonusContentType", DataFormat = DataFormat.TwosComplement)] + public uint bonusContentType + { + get + { + return this._bonusContentType ?? 0u; + } + set + { + this._bonusContentType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusContentTypeSpecified + { + get + { + return this._bonusContentType != null; + } + set + { + bool flag = value == (this._bonusContentType == null); + if (flag) + { + this._bonusContentType = (value ? new uint?(this.bonusContentType) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "sourceID", DataFormat = DataFormat.TwosComplement)] + public ulong sourceID + { + get + { + return this._sourceID ?? 0UL; + } + set + { + this._sourceID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sourceIDSpecified + { + get + { + return this._sourceID != null; + } + set + { + bool flag = value == (this._sourceID == null); + if (flag) + { + this._sourceID = (value ? new ulong?(this.sourceID) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "iconUrl", DataFormat = DataFormat.Default)] + public string iconUrl + { + get + { + return this._iconUrl ?? ""; + } + set + { + this._iconUrl = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconUrlSpecified + { + get + { + return this._iconUrl != null; + } + set + { + bool flag = value == (this._iconUrl == null); + if (flag) + { + this._iconUrl = (value ? this.iconUrl : null); + } + } + } + + private uint? _bonusID; + + private uint? _bonusType; + + private uint? _maxPeopleNum; + + private uint? _bonusStatus; + + private uint? _leftOpenTime; + + private uint? _leftBringBackTime; + + private string _sourceName; + + private uint? _alreadyGetPeopleNum; + + private uint? _needCheckInNum; + + private uint? _bonusContentType; + + private ulong? _sourceID; + + private string _iconUrl; + + private IExtension extensionObject; + + private bool ShouldSerializebonusID() + { + return this.bonusIDSpecified; + } + + private void ResetbonusID() + { + this.bonusIDSpecified = false; + } + + private bool ShouldSerializebonusType() + { + return this.bonusTypeSpecified; + } + + private void ResetbonusType() + { + this.bonusTypeSpecified = false; + } + + private bool ShouldSerializemaxPeopleNum() + { + return this.maxPeopleNumSpecified; + } + + private void ResetmaxPeopleNum() + { + this.maxPeopleNumSpecified = false; + } + + private bool ShouldSerializebonusStatus() + { + return this.bonusStatusSpecified; + } + + private void ResetbonusStatus() + { + this.bonusStatusSpecified = false; + } + + private bool ShouldSerializeleftOpenTime() + { + return this.leftOpenTimeSpecified; + } + + private void ResetleftOpenTime() + { + this.leftOpenTimeSpecified = false; + } + + private bool ShouldSerializeleftBringBackTime() + { + return this.leftBringBackTimeSpecified; + } + + private void ResetleftBringBackTime() + { + this.leftBringBackTimeSpecified = false; + } + + private bool ShouldSerializesourceName() + { + return this.sourceNameSpecified; + } + + private void ResetsourceName() + { + this.sourceNameSpecified = false; + } + + private bool ShouldSerializealreadyGetPeopleNum() + { + return this.alreadyGetPeopleNumSpecified; + } + + private void ResetalreadyGetPeopleNum() + { + this.alreadyGetPeopleNumSpecified = false; + } + + private bool ShouldSerializeneedCheckInNum() + { + return this.needCheckInNumSpecified; + } + + private void ResetneedCheckInNum() + { + this.needCheckInNumSpecified = false; + } + + private bool ShouldSerializebonusContentType() + { + return this.bonusContentTypeSpecified; + } + + private void ResetbonusContentType() + { + this.bonusContentTypeSpecified = false; + } + + private bool ShouldSerializesourceID() + { + return this.sourceIDSpecified; + } + + private void ResetsourceID() + { + this.sourceIDSpecified = false; + } + + private bool ShouldSerializeiconUrl() + { + return this.iconUrlSpecified; + } + + private void ReseticonUrl() + { + this.iconUrlSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusAppear.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusAppear.cs.meta new file mode 100644 index 00000000..33569122 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusAppear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 372881389464bfe4bb10449618d871e9 +timeCreated: 1611403564 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusBriefInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusBriefInfo.cs new file mode 100644 index 00000000..9c6fede3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusBriefInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBonusBriefInfo")] + [Serializable] + public class GuildBonusBriefInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusID", DataFormat = DataFormat.TwosComplement)] + public uint bonusID + { + get + { + return this._bonusID ?? 0u; + } + set + { + this._bonusID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusIDSpecified + { + get + { + return this._bonusID != null; + } + set + { + bool flag = value == (this._bonusID == null); + if (flag) + { + this._bonusID = (value ? new uint?(this.bonusID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sendTime", DataFormat = DataFormat.TwosComplement)] + public int sendTime + { + get + { + return this._sendTime ?? 0; + } + set + { + this._sendTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sendTimeSpecified + { + get + { + return this._sendTime != null; + } + set + { + bool flag = value == (this._sendTime == null); + if (flag) + { + this._sendTime = (value ? new int?(this.sendTime) : null); + } + } + } + + private uint? _bonusID; + + private int? _sendTime; + + private IExtension extensionObject; + + private bool ShouldSerializebonusID() + { + return this.bonusIDSpecified; + } + + private void ResetbonusID() + { + this.bonusIDSpecified = false; + } + + private bool ShouldSerializesendTime() + { + return this.sendTimeSpecified; + } + + private void ResetsendTime() + { + this.sendTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusBriefInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusBriefInfo.cs.meta new file mode 100644 index 00000000..aebcff13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusBriefInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99d02fe40ce4d3f4f8d5f8de1fd9d68e +timeCreated: 1611404197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusGetAllData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusGetAllData.cs new file mode 100644 index 00000000..14aaf8aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusGetAllData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBonusGetAllData")] + [Serializable] + public class GuildBonusGetAllData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusID", DataFormat = DataFormat.TwosComplement)] + public uint bonusID + { + get + { + return this._bonusID ?? 0u; + } + set + { + this._bonusID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusIDSpecified + { + get + { + return this._bonusID != null; + } + set + { + bool flag = value == (this._bonusID == null); + if (flag) + { + this._bonusID = (value ? new uint?(this.bonusID) : null); + } + } + } + + private uint? _bonusID; + + private IExtension extensionObject; + + private bool ShouldSerializebonusID() + { + return this.bonusIDSpecified; + } + + private void ResetbonusID() + { + this.bonusIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusGetAllData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusGetAllData.cs.meta new file mode 100644 index 00000000..bb67d046 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusGetAllData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2b766ebbf55f52459561df3fdc2ced7 +timeCreated: 1611404495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusType.cs new file mode 100644 index 00000000..4d7d1c9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusType.cs @@ -0,0 +1,66 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBonusType")] + public enum GuildBonusType + { + [ProtoEnum(Name = "GBONUS_LEVELUP", Value = 1)] + GBONUS_LEVELUP = 1, + [ProtoEnum(Name = "GBONUS_CARDREWARD", Value = 2)] + GBONUS_CARDREWARD, + [ProtoEnum(Name = "GBONUS_KILLDRAGON", Value = 3)] + GBONUS_KILLDRAGON, + [ProtoEnum(Name = "GBONUS_GUILDGOBLIN", Value = 4)] + GBONUS_GUILDGOBLIN, + [ProtoEnum(Name = "GBONUS_GUILDGOBLIN_LEVELUP", Value = 5)] + GBONUS_GUILDGOBLIN_LEVELUP, + [ProtoEnum(Name = "GBONUS_CHECKIN", Value = 6)] + GBONUS_CHECKIN, + [ProtoEnum(Name = "GBONUS_TIANTIRANK", Value = 7)] + GBONUS_TIANTIRANK, + [ProtoEnum(Name = "GBONUS_KILLSTAGEDRAGON", Value = 8)] + GBONUS_KILLSTAGEDRAGON, + [ProtoEnum(Name = "GBONUS_CHARGETIMES", Value = 9)] + GBONUS_CHARGETIMES, + [ProtoEnum(Name = "GBONUS_VIPLEVEL", Value = 10)] + GBONUS_VIPLEVEL, + [ProtoEnum(Name = "GBONUS_DRAWLOTTERY_TEN", Value = 11)] + GBONUS_DRAWLOTTERY_TEN, + [ProtoEnum(Name = "GBONUS_TITLE", Value = 12)] + GBONUS_TITLE, + [ProtoEnum(Name = "GBONUS_STRENGTHEN", Value = 13)] + GBONUS_STRENGTHEN, + [ProtoEnum(Name = "GBONUS_TOWER", Value = 14)] + GBONUS_TOWER, + [ProtoEnum(Name = "GBONUS_TIMEBONUS", Value = 15)] + GBONUS_TIMEBONUS, + [ProtoEnum(Name = "GBONUS_CHARGEPRIVILEGE", Value = 16)] + GBONUS_CHARGEPRIVILEGE, + [ProtoEnum(Name = "GBONUS_PURCHASEFUND", Value = 17)] + GBONUS_PURCHASEFUND, + [ProtoEnum(Name = "GBONUS_DRAGONJADEL_ALLLEVEL", Value = 18)] + GBONUS_DRAGONJADEL_ALLLEVEL, + [ProtoEnum(Name = "GBONUS_SKYARENA_FLOOR", Value = 19)] + GBONUS_SKYARENA_FLOOR, + [ProtoEnum(Name = "GBONUS_HORSE_QUALITY", Value = 20)] + GBONUS_HORSE_QUALITY, + [ProtoEnum(Name = "GBONUS_DRAGONNEST_SCENE", Value = 21)] + GBONUS_DRAGONNEST_SCENE, + [ProtoEnum(Name = "GBONUS_GMF_RANK", Value = 22)] + GBONUS_GMF_RANK, + [ProtoEnum(Name = "GBONUS_BOSSRUSH", Value = 23)] + GBONUS_BOSSRUSH, + [ProtoEnum(Name = "GBONUS_BUYIBSHOP", Value = 24)] + GBONUS_BUYIBSHOP, + [ProtoEnum(Name = "GBONUS_MAYHEMRANK", Value = 25)] + GBONUS_MAYHEMRANK, + [ProtoEnum(Name = "GBONUS_USETHREESUIT", Value = 26)] + GBONUS_USETHREESUIT, + [ProtoEnum(Name = "GBONUS_USEITEM", Value = 27)] + GBONUS_USEITEM, + [ProtoEnum(Name = "GBONUS_MAX", Value = 28)] + GBONUS_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusType.cs.meta new file mode 100644 index 00000000..c8f093dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBonusType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae65d16a2698f9f4dbc9c2d9e2804eaa +timeCreated: 1611404339 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBossTimeOut.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBossTimeOut.cs new file mode 100644 index 00000000..2c38038e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBossTimeOut.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBossTimeOut")] + [Serializable] + public class GuildBossTimeOut : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBossTimeOut.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBossTimeOut.cs.meta new file mode 100644 index 00000000..76335c37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBossTimeOut.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f69626ea9063076449353a8dc409e641 +timeCreated: 1611404883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefArg.cs new file mode 100644 index 00000000..00b6411d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBriefArg")] + [Serializable] + public class GuildBriefArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + private ulong? _guildid; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefArg.cs.meta new file mode 100644 index 00000000..a73c3098 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b105013e386bfc4488315fe32122662c +timeCreated: 1611404354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefRes.cs new file mode 100644 index 00000000..bf18a9f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefRes.cs @@ -0,0 +1,879 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBriefRes")] + [Serializable] + public class GuildBriefRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leaderName", DataFormat = DataFormat.Default)] + public string leaderName + { + get + { + return this._leaderName ?? ""; + } + set + { + this._leaderName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderNameSpecified + { + get + { + return this._leaderName != null; + } + set + { + bool flag = value == (this._leaderName == null); + if (flag) + { + this._leaderName = (value ? this.leaderName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "annoucement", DataFormat = DataFormat.Default)] + public string annoucement + { + get + { + return this._annoucement ?? ""; + } + set + { + this._annoucement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool annoucementSpecified + { + get + { + return this._annoucement != null; + } + set + { + bool flag = value == (this._annoucement == null); + if (flag) + { + this._annoucement = (value ? this.annoucement : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "leaderID", DataFormat = DataFormat.TwosComplement)] + public ulong leaderID + { + get + { + return this._leaderID ?? 0UL; + } + set + { + this._leaderID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderIDSpecified + { + get + { + return this._leaderID != null; + } + set + { + bool flag = value == (this._leaderID == null); + if (flag) + { + this._leaderID = (value ? new ulong?(this.leaderID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "membercount", DataFormat = DataFormat.TwosComplement)] + public int membercount + { + get + { + return this._membercount ?? 0; + } + set + { + this._membercount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool membercountSpecified + { + get + { + return this._membercount != null; + } + set + { + bool flag = value == (this._membercount == null); + if (flag) + { + this._membercount = (value ? new int?(this.membercount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "capacity", DataFormat = DataFormat.TwosComplement)] + public int capacity + { + get + { + return this._capacity ?? 0; + } + set + { + this._capacity = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool capacitySpecified + { + get + { + return this._capacity != null; + } + set + { + bool flag = value == (this._capacity == null); + if (flag) + { + this._capacity = (value ? new int?(this.capacity) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public int icon + { + get + { + return this._icon ?? 0; + } + set + { + this._icon = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new int?(this.icon) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "recuritppt", DataFormat = DataFormat.TwosComplement)] + public uint recuritppt + { + get + { + return this._recuritppt ?? 0u; + } + set + { + this._recuritppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool recuritpptSpecified + { + get + { + return this._recuritppt != null; + } + set + { + bool flag = value == (this._recuritppt == null); + if (flag) + { + this._recuritppt = (value ? new uint?(this.recuritppt) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "needApproval", DataFormat = DataFormat.TwosComplement)] + public int needApproval + { + get + { + return this._needApproval ?? 0; + } + set + { + this._needApproval = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needApprovalSpecified + { + get + { + return this._needApproval != null; + } + set + { + bool flag = value == (this._needApproval == null); + if (flag) + { + this._needApproval = (value ? new int?(this.needApproval) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "activity", DataFormat = DataFormat.TwosComplement)] + public uint activity + { + get + { + return this._activity ?? 0u; + } + set + { + this._activity = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activitySpecified + { + get + { + return this._activity != null; + } + set + { + bool flag = value == (this._activity == null); + if (flag) + { + this._activity = (value ? new uint?(this.activity) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "activityOne", DataFormat = DataFormat.TwosComplement)] + public uint activityOne + { + get + { + return this._activityOne ?? 0u; + } + set + { + this._activityOne = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activityOneSpecified + { + get + { + return this._activityOne != null; + } + set + { + bool flag = value == (this._activityOne == null); + if (flag) + { + this._activityOne = (value ? new uint?(this.activityOne) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "activityTwo", DataFormat = DataFormat.TwosComplement)] + public uint activityTwo + { + get + { + return this._activityTwo ?? 0u; + } + set + { + this._activityTwo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activityTwoSpecified + { + get + { + return this._activityTwo != null; + } + set + { + bool flag = value == (this._activityTwo == null); + if (flag) + { + this._activityTwo = (value ? new uint?(this.activityTwo) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "activityThree", DataFormat = DataFormat.TwosComplement)] + public uint activityThree + { + get + { + return this._activityThree ?? 0u; + } + set + { + this._activityThree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activityThreeSpecified + { + get + { + return this._activityThree != null; + } + set + { + bool flag = value == (this._activityThree == null); + if (flag) + { + this._activityThree = (value ? new uint?(this.activityThree) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "prestige", DataFormat = DataFormat.TwosComplement)] + public uint prestige + { + get + { + return this._prestige ?? 0u; + } + set + { + this._prestige = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool prestigeSpecified + { + get + { + return this._prestige != null; + } + set + { + bool flag = value == (this._prestige == null); + if (flag) + { + this._prestige = (value ? new uint?(this.prestige) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "schoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint schoolpoint + { + get + { + return this._schoolpoint ?? 0u; + } + set + { + this._schoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool schoolpointSpecified + { + get + { + return this._schoolpoint != null; + } + set + { + bool flag = value == (this._schoolpoint == null); + if (flag) + { + this._schoolpoint = (value ? new uint?(this.schoolpoint) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "hallpoint", DataFormat = DataFormat.TwosComplement)] + public uint hallpoint + { + get + { + return this._hallpoint ?? 0u; + } + set + { + this._hallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hallpointSpecified + { + get + { + return this._hallpoint != null; + } + set + { + bool flag = value == (this._hallpoint == null); + if (flag) + { + this._hallpoint = (value ? new uint?(this.hallpoint) : null); + } + } + } + + private string _name; + + private string _leaderName; + + private string _annoucement; + + private ulong? _leaderID; + + private int? _level; + + private int? _membercount; + + private int? _capacity; + + private int? _icon; + + private ErrorCode? _result; + + private uint? _recuritppt; + + private int? _needApproval; + + private uint? _exp; + + private int? _rank; + + private uint? _activity; + + private uint? _activityOne; + + private uint? _activityTwo; + + private uint? _activityThree; + + private uint? _prestige; + + private uint? _schoolpoint; + + private uint? _hallpoint; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeleaderName() + { + return this.leaderNameSpecified; + } + + private void ResetleaderName() + { + this.leaderNameSpecified = false; + } + + private bool ShouldSerializeannoucement() + { + return this.annoucementSpecified; + } + + private void Resetannoucement() + { + this.annoucementSpecified = false; + } + + private bool ShouldSerializeleaderID() + { + return this.leaderIDSpecified; + } + + private void ResetleaderID() + { + this.leaderIDSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializemembercount() + { + return this.membercountSpecified; + } + + private void Resetmembercount() + { + this.membercountSpecified = false; + } + + private bool ShouldSerializecapacity() + { + return this.capacitySpecified; + } + + private void Resetcapacity() + { + this.capacitySpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializerecuritppt() + { + return this.recuritpptSpecified; + } + + private void Resetrecuritppt() + { + this.recuritpptSpecified = false; + } + + private bool ShouldSerializeneedApproval() + { + return this.needApprovalSpecified; + } + + private void ResetneedApproval() + { + this.needApprovalSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeactivity() + { + return this.activitySpecified; + } + + private void Resetactivity() + { + this.activitySpecified = false; + } + + private bool ShouldSerializeactivityOne() + { + return this.activityOneSpecified; + } + + private void ResetactivityOne() + { + this.activityOneSpecified = false; + } + + private bool ShouldSerializeactivityTwo() + { + return this.activityTwoSpecified; + } + + private void ResetactivityTwo() + { + this.activityTwoSpecified = false; + } + + private bool ShouldSerializeactivityThree() + { + return this.activityThreeSpecified; + } + + private void ResetactivityThree() + { + this.activityThreeSpecified = false; + } + + private bool ShouldSerializeprestige() + { + return this.prestigeSpecified; + } + + private void Resetprestige() + { + this.prestigeSpecified = false; + } + + private bool ShouldSerializeschoolpoint() + { + return this.schoolpointSpecified; + } + + private void Resetschoolpoint() + { + this.schoolpointSpecified = false; + } + + private bool ShouldSerializehallpoint() + { + return this.hallpointSpecified; + } + + private void Resethallpoint() + { + this.hallpointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefRes.cs.meta new file mode 100644 index 00000000..0b5b893b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBriefRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb963ece7780e7c4694d3929c3f5467d +timeCreated: 1611404442 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuff.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuff.cs new file mode 100644 index 00000000..239e231e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuff.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBuff")] + [Serializable] + public class GuildBuff : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _id; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuff.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuff.cs.meta new file mode 100644 index 00000000..8535b269 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de96f29470c950b4b8775705a94ba2d0 +timeCreated: 1611404687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffCDParam.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffCDParam.cs new file mode 100644 index 00000000..9820e069 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffCDParam.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBuffCDParam")] + [Serializable] + public class GuildBuffCDParam : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffCDParam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffCDParam.cs.meta new file mode 100644 index 00000000..e41a42bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffCDParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 292135e7bcb0b11499e926b7cdd843de +timeCreated: 1611403476 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffItem.cs new file mode 100644 index 00000000..205a1279 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffItem.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBuffItem")] + [Serializable] + public class GuildBuffItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private uint? _itemid; + + private uint? _count; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffItem.cs.meta new file mode 100644 index 00000000..cdbdf512 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b946d2ce8bf31144f90eca67b5ad28d7 +timeCreated: 1611404409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffRecord.cs new file mode 100644 index 00000000..547d718b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffRecord.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBuffRecord")] + [Serializable] + public class GuildBuffRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _id; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffRecord.cs.meta new file mode 100644 index 00000000..d48a72a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b20c83188214642409f4d01f1e9fdef2 +timeCreated: 1611404357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleAllInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleAllInfo.cs new file mode 100644 index 00000000..f6123747 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleAllInfo.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBuffSimpleAllInfo")] + [Serializable] + public class GuildBuffSimpleAllInfo : IExtensible + { + [ProtoMember(1, Name = "buff", DataFormat = DataFormat.Default)] + public List buff + { + get + { + return this._buff; + } + } + + private readonly List _buff = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleAllInfo.cs.meta new file mode 100644 index 00000000..718cc6a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b1bc290ae9cfcf749b46c617e1c9519d +timeCreated: 1611404357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleInfo.cs new file mode 100644 index 00000000..37c7da4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleInfo.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBuffSimpleInfo")] + [Serializable] + public class GuildBuffSimpleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, Name = "buff", DataFormat = DataFormat.Default)] + public List buff + { + get + { + return this._buff; + } + } + + private ulong? _guildid; + + private readonly List _buff = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleInfo.cs.meta new file mode 100644 index 00000000..6977689f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 489332b7f7fa7164fbe617e2f66bf5b1 +timeCreated: 1611403658 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleItem.cs new file mode 100644 index 00000000..9c7f9298 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleItem.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildBuffSimpleItem")] + [Serializable] + public class GuildBuffSimpleItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + [ProtoMember(3, Name = "chatinfo", DataFormat = DataFormat.Default)] + public List chatinfo + { + get + { + return this._chatinfo; + } + } + + private ulong? _guildid; + + private readonly List _item = new List(); + + private readonly List _chatinfo = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleItem.cs.meta new file mode 100644 index 00000000..e789cc4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildBuffSimpleItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2d446faba1f4154880c9afd68b76de9 +timeCreated: 1611404730 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs new file mode 100644 index 00000000..a9cd4902 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampChatInfo")] + [Serializable] + public class GuildCampChatInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "audio_id", DataFormat = DataFormat.TwosComplement)] + public ulong audio_id + { + get + { + return this._audio_id ?? 0UL; + } + set + { + this._audio_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audio_idSpecified + { + get + { + return this._audio_id != null; + } + set + { + bool flag = value == (this._audio_id == null); + if (flag) + { + this._audio_id = (value ? new ulong?(this.audio_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "audio_time", DataFormat = DataFormat.TwosComplement)] + public uint audio_time + { + get + { + return this._audio_time ?? 0u; + } + set + { + this._audio_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audio_timeSpecified + { + get + { + return this._audio_time != null; + } + set + { + bool flag = value == (this._audio_time == null); + if (flag) + { + this._audio_time = (value ? new uint?(this.audio_time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "chat_text", DataFormat = DataFormat.Default)] + public string chat_text + { + get + { + return this._chat_text ?? ""; + } + set + { + this._chat_text = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chat_textSpecified + { + get + { + return this._chat_text != null; + } + set + { + bool flag = value == (this._chat_text == null); + if (flag) + { + this._chat_text = (value ? this.chat_text : null); + } + } + } + + private ulong? _audio_id; + + private uint? _audio_time; + + private string _chat_text; + + private IExtension extensionObject; + + private bool ShouldSerializeaudio_id() + { + return this.audio_idSpecified; + } + + private void Resetaudio_id() + { + this.audio_idSpecified = false; + } + + private bool ShouldSerializeaudio_time() + { + return this.audio_timeSpecified; + } + + private void Resetaudio_time() + { + this.audio_timeSpecified = false; + } + + private bool ShouldSerializechat_text() + { + return this.chat_textSpecified; + } + + private void Resetchat_text() + { + this.chat_textSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs.meta new file mode 100644 index 00000000..75c0f342 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampChatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a00911485193a84eae3e7aa4bccc2ea +timeCreated: 1611403987 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateArg.cs new file mode 100644 index 00000000..2c81b670 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateArg.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampExchangeOperateArg")] + [Serializable] + public class GuildCampExchangeOperateArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "operate_type", DataFormat = DataFormat.TwosComplement)] + public GuildCampItemOperate operate_type + { + get + { + return this._operate_type ?? GuildCampItemOperate.SWINGUPITEM; + } + set + { + this._operate_type = new GuildCampItemOperate?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool operate_typeSpecified + { + get + { + return this._operate_type != null; + } + set + { + bool flag = value == (this._operate_type == null); + if (flag) + { + this._operate_type = (value ? new GuildCampItemOperate?(this.operate_type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "item_uid", DataFormat = DataFormat.TwosComplement)] + public ulong item_uid + { + get + { + return this._item_uid ?? 0UL; + } + set + { + this._item_uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool item_uidSpecified + { + get + { + return this._item_uid != null; + } + set + { + bool flag = value == (this._item_uid == null); + if (flag) + { + this._item_uid = (value ? new ulong?(this.item_uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "confirm", DataFormat = DataFormat.Default)] + public bool confirm + { + get + { + return this._confirm ?? false; + } + set + { + this._confirm = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool confirmSpecified + { + get + { + return this._confirm != null; + } + set + { + bool flag = value == (this._confirm == null); + if (flag) + { + this._confirm = (value ? new bool?(this.confirm) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "audio_id", DataFormat = DataFormat.TwosComplement)] + public ulong audio_id + { + get + { + return this._audio_id ?? 0UL; + } + set + { + this._audio_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audio_idSpecified + { + get + { + return this._audio_id != null; + } + set + { + bool flag = value == (this._audio_id == null); + if (flag) + { + this._audio_id = (value ? new ulong?(this.audio_id) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "audio_time", DataFormat = DataFormat.TwosComplement)] + public uint audio_time + { + get + { + return this._audio_time ?? 0u; + } + set + { + this._audio_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audio_timeSpecified + { + get + { + return this._audio_time != null; + } + set + { + bool flag = value == (this._audio_time == null); + if (flag) + { + this._audio_time = (value ? new uint?(this.audio_time) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "chat_text", DataFormat = DataFormat.Default)] + public string chat_text + { + get + { + return this._chat_text ?? ""; + } + set + { + this._chat_text = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chat_textSpecified + { + get + { + return this._chat_text != null; + } + set + { + bool flag = value == (this._chat_text == null); + if (flag) + { + this._chat_text = (value ? this.chat_text : null); + } + } + } + + private GuildCampItemOperate? _operate_type; + + private ulong? _item_uid; + + private bool? _confirm; + + private ulong? _audio_id; + + private uint? _audio_time; + + private string _chat_text; + + private IExtension extensionObject; + + private bool ShouldSerializeoperate_type() + { + return this.operate_typeSpecified; + } + + private void Resetoperate_type() + { + this.operate_typeSpecified = false; + } + + private bool ShouldSerializeitem_uid() + { + return this.item_uidSpecified; + } + + private void Resetitem_uid() + { + this.item_uidSpecified = false; + } + + private bool ShouldSerializeconfirm() + { + return this.confirmSpecified; + } + + private void Resetconfirm() + { + this.confirmSpecified = false; + } + + private bool ShouldSerializeaudio_id() + { + return this.audio_idSpecified; + } + + private void Resetaudio_id() + { + this.audio_idSpecified = false; + } + + private bool ShouldSerializeaudio_time() + { + return this.audio_timeSpecified; + } + + private void Resetaudio_time() + { + this.audio_timeSpecified = false; + } + + private bool ShouldSerializechat_text() + { + return this.chat_textSpecified; + } + + private void Resetchat_text() + { + this.chat_textSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateArg.cs.meta new file mode 100644 index 00000000..d0e8b854 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4eba5621d283be54186242e32b9bb8ee +timeCreated: 1611403699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateRes.cs new file mode 100644 index 00000000..4330c6b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampExchangeOperateRes")] + [Serializable] + public class GuildCampExchangeOperateRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateRes.cs.meta new file mode 100644 index 00000000..6bc062a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampExchangeOperateRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3fa285a41bc7e6a4c821c16183405309 +timeCreated: 1611403612 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoArg.cs new file mode 100644 index 00000000..f3a08dfc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampInfoArg")] + [Serializable] + public class GuildCampInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoArg.cs.meta new file mode 100644 index 00000000..18d4207f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7403c3c76572a743ae6a7f51237ddc7 +timeCreated: 1611404529 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoRes.cs new file mode 100644 index 00000000..5d53a239 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampInfoRes")] + [Serializable] + public class GuildCampInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "rankInfos", DataFormat = DataFormat.Default)] + public List rankInfos + { + get + { + return this._rankInfos; + } + } + + [ProtoMember(3, IsRequired = false, Name = "curCampID", DataFormat = DataFormat.TwosComplement)] + public int curCampID + { + get + { + return this._curCampID ?? 0; + } + set + { + this._curCampID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curCampIDSpecified + { + get + { + return this._curCampID != null; + } + set + { + bool flag = value == (this._curCampID == null); + if (flag) + { + this._curCampID = (value ? new int?(this.curCampID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "nextCampID", DataFormat = DataFormat.TwosComplement)] + public int nextCampID + { + get + { + return this._nextCampID ?? 0; + } + set + { + this._nextCampID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nextCampIDSpecified + { + get + { + return this._nextCampID != null; + } + set + { + bool flag = value == (this._nextCampID == null); + if (flag) + { + this._nextCampID = (value ? new int?(this.nextCampID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "leftCount", DataFormat = DataFormat.TwosComplement)] + public int leftCount + { + get + { + return this._leftCount ?? 0; + } + set + { + this._leftCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftCountSpecified + { + get + { + return this._leftCount != null; + } + set + { + bool flag = value == (this._leftCount == null); + if (flag) + { + this._leftCount = (value ? new int?(this.leftCount) : null); + } + } + } + + private ErrorCode? _error; + + private readonly List _rankInfos = new List(); + + private int? _curCampID; + + private int? _nextCampID; + + private int? _leftCount; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecurCampID() + { + return this.curCampIDSpecified; + } + + private void ResetcurCampID() + { + this.curCampIDSpecified = false; + } + + private bool ShouldSerializenextCampID() + { + return this.nextCampIDSpecified; + } + + private void ResetnextCampID() + { + this.nextCampIDSpecified = false; + } + + private bool ShouldSerializeleftCount() + { + return this.leftCountSpecified; + } + + private void ResetleftCount() + { + this.leftCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoRes.cs.meta new file mode 100644 index 00000000..07371b49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d1b3ed6a04cf8b45887675e7cd271cc +timeCreated: 1611403900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampItemOperate.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampItemOperate.cs new file mode 100644 index 00000000..6bbec3ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampItemOperate.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampItemOperate")] + public enum GuildCampItemOperate + { + [ProtoEnum(Name = "SWINGUPITEM", Value = 1)] + SWINGUPITEM = 1, + [ProtoEnum(Name = "SWINGDOWNITEM", Value = 2)] + SWINGDOWNITEM, + [ProtoEnum(Name = "CANCEL", Value = 3)] + CANCEL, + [ProtoEnum(Name = "CONFIRM", Value = 4)] + CONFIRM, + [ProtoEnum(Name = "AUDIOCHAT", Value = 5)] + AUDIOCHAT, + [ProtoEnum(Name = "TEXTCHAT", Value = 6)] + TEXTCHAT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampItemOperate.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampItemOperate.cs.meta new file mode 100644 index 00000000..a4fe2f90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampItemOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4ac0885b3a73214da6ab05f3691c393 +timeCreated: 1611404855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeReq.cs new file mode 100644 index 00000000..d58de16e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampPartyReqExchangeReq")] + [Serializable] + public class GuildCampPartyReqExchangeReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "role_id", DataFormat = DataFormat.TwosComplement)] + public ulong role_id + { + get + { + return this._role_id ?? 0UL; + } + set + { + this._role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role_idSpecified + { + get + { + return this._role_id != null; + } + set + { + bool flag = value == (this._role_id == null); + if (flag) + { + this._role_id = (value ? new ulong?(this.role_id) : null); + } + } + } + + private ulong? _role_id; + + private IExtension extensionObject; + + private bool ShouldSerializerole_id() + { + return this.role_idSpecified; + } + + private void Resetrole_id() + { + this.role_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeReq.cs.meta new file mode 100644 index 00000000..ffdff8aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5899fac724821d346b0cf3440e3c2ed3 +timeCreated: 1611403756 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeRes.cs new file mode 100644 index 00000000..400c9e3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampPartyReqExchangeRes")] + [Serializable] + public class GuildCampPartyReqExchangeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeRes.cs.meta new file mode 100644 index 00000000..3bd367c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyReqExchangeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d74f95b8849ccf147bde9f48c22b8a38 +timeCreated: 1611404634 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeNotifyArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeNotifyArg.cs new file mode 100644 index 00000000..65851536 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeNotifyArg.cs @@ -0,0 +1,696 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampPartyTradeNotifyArg")] + [Serializable] + public class GuildCampPartyTradeNotifyArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "notify_type", DataFormat = DataFormat.TwosComplement)] + public GuildCampPartyTradeType notify_type + { + get + { + return this._notify_type ?? GuildCampPartyTradeType.TRADE_INVITATION; + } + set + { + this._notify_type = new GuildCampPartyTradeType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool notify_typeSpecified + { + get + { + return this._notify_type != null; + } + set + { + bool flag = value == (this._notify_type == null); + if (flag) + { + this._notify_type = (value ? new GuildCampPartyTradeType?(this.notify_type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lauch_role_id", DataFormat = DataFormat.TwosComplement)] + public ulong lauch_role_id + { + get + { + return this._lauch_role_id ?? 0UL; + } + set + { + this._lauch_role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_role_idSpecified + { + get + { + return this._lauch_role_id != null; + } + set + { + bool flag = value == (this._lauch_role_id == null); + if (flag) + { + this._lauch_role_id = (value ? new ulong?(this.lauch_role_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lauch_item_id", DataFormat = DataFormat.TwosComplement)] + public uint lauch_item_id + { + get + { + return this._lauch_item_id ?? 0u; + } + set + { + this._lauch_item_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_item_idSpecified + { + get + { + return this._lauch_item_id != null; + } + set + { + bool flag = value == (this._lauch_item_id == null); + if (flag) + { + this._lauch_item_id = (value ? new uint?(this.lauch_item_id) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lauch_item_uid", DataFormat = DataFormat.TwosComplement)] + public ulong lauch_item_uid + { + get + { + return this._lauch_item_uid ?? 0UL; + } + set + { + this._lauch_item_uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_item_uidSpecified + { + get + { + return this._lauch_item_uid != null; + } + set + { + bool flag = value == (this._lauch_item_uid == null); + if (flag) + { + this._lauch_item_uid = (value ? new ulong?(this.lauch_item_uid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "lauch_confirm", DataFormat = DataFormat.Default)] + public bool lauch_confirm + { + get + { + return this._lauch_confirm ?? false; + } + set + { + this._lauch_confirm = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_confirmSpecified + { + get + { + return this._lauch_confirm != null; + } + set + { + bool flag = value == (this._lauch_confirm == null); + if (flag) + { + this._lauch_confirm = (value ? new bool?(this.lauch_confirm) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "target_role_id", DataFormat = DataFormat.TwosComplement)] + public ulong target_role_id + { + get + { + return this._target_role_id ?? 0UL; + } + set + { + this._target_role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_role_idSpecified + { + get + { + return this._target_role_id != null; + } + set + { + bool flag = value == (this._target_role_id == null); + if (flag) + { + this._target_role_id = (value ? new ulong?(this.target_role_id) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "target_item_id", DataFormat = DataFormat.TwosComplement)] + public uint target_item_id + { + get + { + return this._target_item_id ?? 0u; + } + set + { + this._target_item_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_item_idSpecified + { + get + { + return this._target_item_id != null; + } + set + { + bool flag = value == (this._target_item_id == null); + if (flag) + { + this._target_item_id = (value ? new uint?(this.target_item_id) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "target_item_uid", DataFormat = DataFormat.TwosComplement)] + public ulong target_item_uid + { + get + { + return this._target_item_uid ?? 0UL; + } + set + { + this._target_item_uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_item_uidSpecified + { + get + { + return this._target_item_uid != null; + } + set + { + bool flag = value == (this._target_item_uid == null); + if (flag) + { + this._target_item_uid = (value ? new ulong?(this.target_item_uid) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "target_confirm", DataFormat = DataFormat.Default)] + public bool target_confirm + { + get + { + return this._target_confirm ?? false; + } + set + { + this._target_confirm = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_confirmSpecified + { + get + { + return this._target_confirm != null; + } + set + { + bool flag = value == (this._target_confirm == null); + if (flag) + { + this._target_confirm = (value ? new bool?(this.target_confirm) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "lauch_count", DataFormat = DataFormat.TwosComplement)] + public uint lauch_count + { + get + { + return this._lauch_count ?? 0u; + } + set + { + this._lauch_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_countSpecified + { + get + { + return this._lauch_count != null; + } + set + { + bool flag = value == (this._lauch_count == null); + if (flag) + { + this._lauch_count = (value ? new uint?(this.lauch_count) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "open_trade", DataFormat = DataFormat.Default)] + public bool open_trade + { + get + { + return this._open_trade ?? false; + } + set + { + this._open_trade = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool open_tradeSpecified + { + get + { + return this._open_trade != null; + } + set + { + bool flag = value == (this._open_trade == null); + if (flag) + { + this._open_trade = (value ? new bool?(this.open_trade) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "lauch_name", DataFormat = DataFormat.Default)] + public string lauch_name + { + get + { + return this._lauch_name ?? ""; + } + set + { + this._lauch_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_nameSpecified + { + get + { + return this._lauch_name != null; + } + set + { + bool flag = value == (this._lauch_name == null); + if (flag) + { + this._lauch_name = (value ? this.lauch_name : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "lauch_profession", DataFormat = DataFormat.TwosComplement)] + public uint lauch_profession + { + get + { + return this._lauch_profession ?? 0u; + } + set + { + this._lauch_profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_professionSpecified + { + get + { + return this._lauch_profession != null; + } + set + { + bool flag = value == (this._lauch_profession == null); + if (flag) + { + this._lauch_profession = (value ? new uint?(this.lauch_profession) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "target_name", DataFormat = DataFormat.Default)] + public string target_name + { + get + { + return this._target_name ?? ""; + } + set + { + this._target_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_nameSpecified + { + get + { + return this._target_name != null; + } + set + { + bool flag = value == (this._target_name == null); + if (flag) + { + this._target_name = (value ? this.target_name : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "target_profession", DataFormat = DataFormat.TwosComplement)] + public uint target_profession + { + get + { + return this._target_profession ?? 0u; + } + set + { + this._target_profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_professionSpecified + { + get + { + return this._target_profession != null; + } + set + { + bool flag = value == (this._target_profession == null); + if (flag) + { + this._target_profession = (value ? new uint?(this.target_profession) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "lauch_chat_info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GuildCampChatInfo lauch_chat_info + { + get + { + return this._lauch_chat_info; + } + set + { + this._lauch_chat_info = value; + } + } + + [ProtoMember(17, IsRequired = false, Name = "target_chat_info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GuildCampChatInfo target_chat_info + { + get + { + return this._target_chat_info; + } + set + { + this._target_chat_info = value; + } + } + + private GuildCampPartyTradeType? _notify_type; + + private ulong? _lauch_role_id; + + private uint? _lauch_item_id; + + private ulong? _lauch_item_uid; + + private bool? _lauch_confirm; + + private ulong? _target_role_id; + + private uint? _target_item_id; + + private ulong? _target_item_uid; + + private bool? _target_confirm; + + private uint? _lauch_count; + + private bool? _open_trade; + + private string _lauch_name; + + private uint? _lauch_profession; + + private string _target_name; + + private uint? _target_profession; + + private GuildCampChatInfo _lauch_chat_info = null; + + private GuildCampChatInfo _target_chat_info = null; + + private IExtension extensionObject; + + private bool ShouldSerializenotify_type() + { + return this.notify_typeSpecified; + } + + private void Resetnotify_type() + { + this.notify_typeSpecified = false; + } + + private bool ShouldSerializelauch_role_id() + { + return this.lauch_role_idSpecified; + } + + private void Resetlauch_role_id() + { + this.lauch_role_idSpecified = false; + } + + private bool ShouldSerializelauch_item_id() + { + return this.lauch_item_idSpecified; + } + + private void Resetlauch_item_id() + { + this.lauch_item_idSpecified = false; + } + + private bool ShouldSerializelauch_item_uid() + { + return this.lauch_item_uidSpecified; + } + + private void Resetlauch_item_uid() + { + this.lauch_item_uidSpecified = false; + } + + private bool ShouldSerializelauch_confirm() + { + return this.lauch_confirmSpecified; + } + + private void Resetlauch_confirm() + { + this.lauch_confirmSpecified = false; + } + + private bool ShouldSerializetarget_role_id() + { + return this.target_role_idSpecified; + } + + private void Resettarget_role_id() + { + this.target_role_idSpecified = false; + } + + private bool ShouldSerializetarget_item_id() + { + return this.target_item_idSpecified; + } + + private void Resettarget_item_id() + { + this.target_item_idSpecified = false; + } + + private bool ShouldSerializetarget_item_uid() + { + return this.target_item_uidSpecified; + } + + private void Resettarget_item_uid() + { + this.target_item_uidSpecified = false; + } + + private bool ShouldSerializetarget_confirm() + { + return this.target_confirmSpecified; + } + + private void Resettarget_confirm() + { + this.target_confirmSpecified = false; + } + + private bool ShouldSerializelauch_count() + { + return this.lauch_countSpecified; + } + + private void Resetlauch_count() + { + this.lauch_countSpecified = false; + } + + private bool ShouldSerializeopen_trade() + { + return this.open_tradeSpecified; + } + + private void Resetopen_trade() + { + this.open_tradeSpecified = false; + } + + private bool ShouldSerializelauch_name() + { + return this.lauch_nameSpecified; + } + + private void Resetlauch_name() + { + this.lauch_nameSpecified = false; + } + + private bool ShouldSerializelauch_profession() + { + return this.lauch_professionSpecified; + } + + private void Resetlauch_profession() + { + this.lauch_professionSpecified = false; + } + + private bool ShouldSerializetarget_name() + { + return this.target_nameSpecified; + } + + private void Resettarget_name() + { + this.target_nameSpecified = false; + } + + private bool ShouldSerializetarget_profession() + { + return this.target_professionSpecified; + } + + private void Resettarget_profession() + { + this.target_professionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeNotifyArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeNotifyArg.cs.meta new file mode 100644 index 00000000..4d04a008 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeNotifyArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93312ce332d0b2f418132ad96bcc123b +timeCreated: 1611404149 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeType.cs new file mode 100644 index 00000000..77b3bdcc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampPartyTradeType")] + public enum GuildCampPartyTradeType + { + [ProtoEnum(Name = "TRADE_INVITATION", Value = 1)] + TRADE_INVITATION = 1, + [ProtoEnum(Name = "UPDATA_TRADE_STATUS", Value = 2)] + UPDATA_TRADE_STATUS + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeType.cs.meta new file mode 100644 index 00000000..ac89cd31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampPartyTradeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e1c1e39df5564e4dab841c6c5350721 +timeCreated: 1611404127 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampRankInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampRankInfo.cs new file mode 100644 index 00000000..9fd741a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampRankInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampRankInfo")] + [Serializable] + public class GuildCampRankInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rankVar", DataFormat = DataFormat.TwosComplement)] + public int rankVar + { + get + { + return this._rankVar ?? 0; + } + set + { + this._rankVar = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankVarSpecified + { + get + { + return this._rankVar != null; + } + set + { + bool flag = value == (this._rankVar == null); + if (flag) + { + this._rankVar = (value ? new int?(this.rankVar) : null); + } + } + } + + [ProtoMember(3, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + private int? _rank; + + private int? _rankVar; + + private readonly List _roles = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializerankVar() + { + return this.rankVarSpecified; + } + + private void ResetrankVar() + { + this.rankVarSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampRankInfo.cs.meta new file mode 100644 index 00000000..2766d3cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6612f8f167403ae4a922c89921b83660 +timeCreated: 1611403853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampSpriteInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampSpriteInfo.cs new file mode 100644 index 00000000..34dd31fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampSpriteInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCampSpriteInfo")] + [Serializable] + public class GuildCampSpriteInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)] + public uint sprite_id + { + get + { + return this._sprite_id ?? 0u; + } + set + { + this._sprite_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sprite_idSpecified + { + get + { + return this._sprite_id != null; + } + set + { + bool flag = value == (this._sprite_id == null); + if (flag) + { + this._sprite_id = (value ? new uint?(this.sprite_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public int position + { + get + { + return this._position ?? 0; + } + set + { + this._position = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new int?(this.position) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "summoner", DataFormat = DataFormat.Default)] + public string summoner + { + get + { + return this._summoner ?? ""; + } + set + { + this._summoner = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool summonerSpecified + { + get + { + return this._summoner != null; + } + set + { + bool flag = value == (this._summoner == null); + if (flag) + { + this._summoner = (value ? this.summoner : null); + } + } + } + + private uint? _sprite_id; + + private int? _position; + + private string _summoner; + + private IExtension extensionObject; + + private bool ShouldSerializesprite_id() + { + return this.sprite_idSpecified; + } + + private void Resetsprite_id() + { + this.sprite_idSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializesummoner() + { + return this.summonerSpecified; + } + + private void Resetsummoner() + { + this.summonerSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCampSpriteInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampSpriteInfo.cs.meta new file mode 100644 index 00000000..a53503c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCampSpriteInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de9f50e13e5040f48ab4709fb82c1a36 +timeCreated: 1611404687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs new file mode 100644 index 00000000..5e086a6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs @@ -0,0 +1,601 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCardMatchNtf")] + [Serializable] + public class GuildCardMatchNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public CardMatchOp op + { + get + { + return this._op ?? CardMatchOp.CardMatch_Begin; + } + set + { + this._op = new CardMatchOp?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new CardMatchOp?(this.op) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public uint timeleft + { + get + { + return this._timeleft ?? 0u; + } + set + { + this._timeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new uint?(this.timeleft) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "changecount", DataFormat = DataFormat.TwosComplement)] + public uint changecount + { + get + { + return this._changecount ?? 0u; + } + set + { + this._changecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool changecountSpecified + { + get + { + return this._changecount != null; + } + set + { + bool flag = value == (this._changecount == null); + if (flag) + { + this._changecount = (value ? new uint?(this.changecount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "round", DataFormat = DataFormat.TwosComplement)] + public uint round + { + get + { + return this._round ?? 0u; + } + set + { + this._round = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roundSpecified + { + get + { + return this._round != null; + } + set + { + bool flag = value == (this._round == null); + if (flag) + { + this._round = (value ? new uint?(this.round) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public uint result + { + get + { + return this._result ?? 0u; + } + set + { + this._result = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new uint?(this.result) : null); + } + } + } + + [ProtoMember(7, Name = "cards", DataFormat = DataFormat.TwosComplement)] + public List cards + { + get + { + return this._cards; + } + } + + [ProtoMember(8, IsRequired = false, Name = "iscanbegin", DataFormat = DataFormat.Default)] + public bool iscanbegin + { + get + { + return this._iscanbegin ?? false; + } + set + { + this._iscanbegin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscanbeginSpecified + { + get + { + return this._iscanbegin != null; + } + set + { + bool flag = value == (this._iscanbegin == null); + if (flag) + { + this._iscanbegin = (value ? new bool?(this.iscanbegin) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "isbegin", DataFormat = DataFormat.Default)] + public bool isbegin + { + get + { + return this._isbegin ?? false; + } + set + { + this._isbegin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbeginSpecified + { + get + { + return this._isbegin != null; + } + set + { + bool flag = value == (this._isbegin == null); + if (flag) + { + this._isbegin = (value ? new bool?(this.isbegin) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public CardMatchState state + { + get + { + return this._state ?? CardMatchState.CardMatch_StateBegin; + } + set + { + this._state = new CardMatchState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new CardMatchState?(this.state) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "store", DataFormat = DataFormat.TwosComplement)] + public uint store + { + get + { + return this._store ?? 0u; + } + set + { + this._store = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool storeSpecified + { + get + { + return this._store != null; + } + set + { + bool flag = value == (this._store == null); + if (flag) + { + this._store = (value ? new uint?(this.store) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "sign_up", DataFormat = DataFormat.Default)] + public bool sign_up + { + get + { + return this._sign_up ?? false; + } + set + { + this._sign_up = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sign_upSpecified + { + get + { + return this._sign_up != null; + } + set + { + bool flag = value == (this._sign_up == null); + if (flag) + { + this._sign_up = (value ? new bool?(this.sign_up) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "match_type", DataFormat = DataFormat.TwosComplement)] + public uint match_type + { + get + { + return this._match_type ?? 0u; + } + set + { + this._match_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool match_typeSpecified + { + get + { + return this._match_type != null; + } + set + { + bool flag = value == (this._match_type == null); + if (flag) + { + this._match_type = (value ? new uint?(this.match_type) : null); + } + } + } + + [ProtoMember(14, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(15, IsRequired = false, Name = "sign_up_num", DataFormat = DataFormat.TwosComplement)] + public uint sign_up_num + { + get + { + return this._sign_up_num ?? 0u; + } + set + { + this._sign_up_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sign_up_numSpecified + { + get + { + return this._sign_up_num != null; + } + set + { + bool flag = value == (this._sign_up_num == null); + if (flag) + { + this._sign_up_num = (value ? new uint?(this.sign_up_num) : null); + } + } + } + + private ErrorCode? _errorcode; + + private CardMatchOp? _op; + + private uint? _timeleft; + + private uint? _changecount; + + private uint? _round; + + private uint? _result; + + private readonly List _cards = new List(); + + private bool? _iscanbegin; + + private bool? _isbegin; + + private CardMatchState? _state; + + private uint? _store; + + private bool? _sign_up; + + private uint? _match_type; + + private readonly List _items = new List(); + + private uint? _sign_up_num; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + private bool ShouldSerializechangecount() + { + return this.changecountSpecified; + } + + private void Resetchangecount() + { + this.changecountSpecified = false; + } + + private bool ShouldSerializeround() + { + return this.roundSpecified; + } + + private void Resetround() + { + this.roundSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeiscanbegin() + { + return this.iscanbeginSpecified; + } + + private void Resetiscanbegin() + { + this.iscanbeginSpecified = false; + } + + private bool ShouldSerializeisbegin() + { + return this.isbeginSpecified; + } + + private void Resetisbegin() + { + this.isbeginSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializestore() + { + return this.storeSpecified; + } + + private void Resetstore() + { + this.storeSpecified = false; + } + + private bool ShouldSerializesign_up() + { + return this.sign_upSpecified; + } + + private void Resetsign_up() + { + this.sign_upSpecified = false; + } + + private bool ShouldSerializematch_type() + { + return this.match_typeSpecified; + } + + private void Resetmatch_type() + { + this.match_typeSpecified = false; + } + + private bool ShouldSerializesign_up_num() + { + return this.sign_up_numSpecified; + } + + private void Resetsign_up_num() + { + this.sign_up_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs.meta new file mode 100644 index 00000000..8146f399 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a8fc604a0ca3506498fb9173dbfdf0f9 +timeCreated: 1611404296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchReq.cs new file mode 100644 index 00000000..66a95892 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchReq.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCardMatchReq")] + [Serializable] + public class GuildCardMatchReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public CardMatchOp op + { + get + { + return this._op ?? CardMatchOp.CardMatch_Begin; + } + set + { + this._op = new CardMatchOp?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new CardMatchOp?(this.op) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "card", DataFormat = DataFormat.TwosComplement)] + public uint card + { + get + { + return this._card ?? 0u; + } + set + { + this._card = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cardSpecified + { + get + { + return this._card != null; + } + set + { + bool flag = value == (this._card == null); + if (flag) + { + this._card = (value ? new uint?(this.card) : null); + } + } + } + + private CardMatchOp? _op; + + private uint? _card; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializecard() + { + return this.cardSpecified; + } + + private void Resetcard() + { + this.cardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchReq.cs.meta new file mode 100644 index 00000000..82208f38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardMatchReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66b1a2ea306207745b9d8b2e42f96826 +timeCreated: 1611403855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs new file mode 100644 index 00000000..12b180e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCardOp")] + public enum GuildCardOp + { + [ProtoEnum(Name = "GuildCard_Query", Value = 1)] + GuildCard_Query = 1, + [ProtoEnum(Name = "GuildCard_Start", Value = 2)] + GuildCard_Start, + [ProtoEnum(Name = "GuildCard_Change", Value = 3)] + GuildCard_Change, + [ProtoEnum(Name = "GuildCard_End", Value = 4)] + GuildCard_End + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs.meta new file mode 100644 index 00000000..d2e0b352 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bba71799e346ce340ad6df2f53326d57 +timeCreated: 1611404442 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankNtf.cs new file mode 100644 index 00000000..96ec78ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankNtf.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCardRankNtf")] + [Serializable] + public class GuildCardRankNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, Name = "name", DataFormat = DataFormat.Default)] + public List name + { + get + { + return this._name; + } + } + + [ProtoMember(3, Name = "point", DataFormat = DataFormat.TwosComplement)] + public List point + { + get + { + return this._point; + } + } + + private uint? _type; + + private readonly List _name = new List(); + + private readonly List _point = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankNtf.cs.meta new file mode 100644 index 00000000..df6e1ea9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 227ed577a27551145b68a55e46e5c428 +timeCreated: 1611403422 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankReq.cs new file mode 100644 index 00000000..4d0f6e74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCardRankReq")] + [Serializable] + public class GuildCardRankReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankReq.cs.meta new file mode 100644 index 00000000..75036bf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCardRankReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53748340130d7124ba07e77ca445263a +timeCreated: 1611403711 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCastFeats.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCastFeats.cs new file mode 100644 index 00000000..b256dfe5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCastFeats.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCastFeats")] + [Serializable] + public class GuildCastFeats : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "feats", DataFormat = DataFormat.TwosComplement)] + public uint feats + { + get + { + return this._feats ?? 0u; + } + set + { + this._feats = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool featsSpecified + { + get + { + return this._feats != null; + } + set + { + bool flag = value == (this._feats == null); + if (flag) + { + this._feats = (value ? new uint?(this.feats) : null); + } + } + } + + private ulong? _roleid; + + private uint? _feats; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializefeats() + { + return this.featsSpecified; + } + + private void Resetfeats() + { + this.featsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCastFeats.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCastFeats.cs.meta new file mode 100644 index 00000000..5d082f68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCastFeats.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cd6bc3b2068e6d4cb4a4e975765a4dc +timeCreated: 1611403503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoArg.cs new file mode 100644 index 00000000..d0d9f3e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCheckInBonusInfoArg")] + [Serializable] + public class GuildCheckInBonusInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoArg.cs.meta new file mode 100644 index 00000000..0e7c0b20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 356395202f21f6342aaae7e9cd27cb64 +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoRes.cs new file mode 100644 index 00000000..701b1fbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoRes.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCheckInBonusInfoRes")] + [Serializable] + public class GuildCheckInBonusInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isCheckedIn", DataFormat = DataFormat.Default)] + public bool isCheckedIn + { + get + { + return this._isCheckedIn ?? false; + } + set + { + this._isCheckedIn = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isCheckedInSpecified + { + get + { + return this._isCheckedIn != null; + } + set + { + bool flag = value == (this._isCheckedIn == null); + if (flag) + { + this._isCheckedIn = (value ? new bool?(this.isCheckedIn) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "checkInNum", DataFormat = DataFormat.TwosComplement)] + public int checkInNum + { + get + { + return this._checkInNum ?? 0; + } + set + { + this._checkInNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool checkInNumSpecified + { + get + { + return this._checkInNum != null; + } + set + { + bool flag = value == (this._checkInNum == null); + if (flag) + { + this._checkInNum = (value ? new int?(this.checkInNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "onlineNum", DataFormat = DataFormat.TwosComplement)] + public int onlineNum + { + get + { + return this._onlineNum ?? 0; + } + set + { + this._onlineNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onlineNumSpecified + { + get + { + return this._onlineNum != null; + } + set + { + bool flag = value == (this._onlineNum == null); + if (flag) + { + this._onlineNum = (value ? new int?(this.onlineNum) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "guildMemberNum", DataFormat = DataFormat.TwosComplement)] + public int guildMemberNum + { + get + { + return this._guildMemberNum ?? 0; + } + set + { + this._guildMemberNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildMemberNumSpecified + { + get + { + return this._guildMemberNum != null; + } + set + { + bool flag = value == (this._guildMemberNum == null); + if (flag) + { + this._guildMemberNum = (value ? new int?(this.guildMemberNum) : null); + } + } + } + + [ProtoMember(6, Name = "checkInBonusInfo", DataFormat = DataFormat.Default)] + public List checkInBonusInfo + { + get + { + return this._checkInBonusInfo; + } + } + + [ProtoMember(7, IsRequired = false, Name = "leftAskBonusTime", DataFormat = DataFormat.TwosComplement)] + public int leftAskBonusTime + { + get + { + return this._leftAskBonusTime ?? 0; + } + set + { + this._leftAskBonusTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftAskBonusTimeSpecified + { + get + { + return this._leftAskBonusTime != null; + } + set + { + bool flag = value == (this._leftAskBonusTime == null); + if (flag) + { + this._leftAskBonusTime = (value ? new int?(this.leftAskBonusTime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "timeofday", DataFormat = DataFormat.TwosComplement)] + public int timeofday + { + get + { + return this._timeofday ?? 0; + } + set + { + this._timeofday = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeofdaySpecified + { + get + { + return this._timeofday != null; + } + set + { + bool flag = value == (this._timeofday == null); + if (flag) + { + this._timeofday = (value ? new int?(this.timeofday) : null); + } + } + } + + private ErrorCode? _errorcode; + + private bool? _isCheckedIn; + + private int? _checkInNum; + + private int? _onlineNum; + + private int? _guildMemberNum; + + private readonly List _checkInBonusInfo = new List(); + + private int? _leftAskBonusTime; + + private int? _timeofday; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeisCheckedIn() + { + return this.isCheckedInSpecified; + } + + private void ResetisCheckedIn() + { + this.isCheckedInSpecified = false; + } + + private bool ShouldSerializecheckInNum() + { + return this.checkInNumSpecified; + } + + private void ResetcheckInNum() + { + this.checkInNumSpecified = false; + } + + private bool ShouldSerializeonlineNum() + { + return this.onlineNumSpecified; + } + + private void ResetonlineNum() + { + this.onlineNumSpecified = false; + } + + private bool ShouldSerializeguildMemberNum() + { + return this.guildMemberNumSpecified; + } + + private void ResetguildMemberNum() + { + this.guildMemberNumSpecified = false; + } + + private bool ShouldSerializeleftAskBonusTime() + { + return this.leftAskBonusTimeSpecified; + } + + private void ResetleftAskBonusTime() + { + this.leftAskBonusTimeSpecified = false; + } + + private bool ShouldSerializetimeofday() + { + return this.timeofdaySpecified; + } + + private void Resettimeofday() + { + this.timeofdaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoRes.cs.meta new file mode 100644 index 00000000..0fbb8c9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckInBonusInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fc625199076975419544cf709818e2e +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinArg.cs new file mode 100644 index 00000000..132d6234 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCheckinArg")] + [Serializable] + public class GuildCheckinArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinArg.cs.meta new file mode 100644 index 00000000..1e345d70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0e9f58bc7c9af541a80dd771602e5da +timeCreated: 1611404488 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs new file mode 100644 index 00000000..23056e0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCheckinBoxNtf")] + [Serializable] + public class GuildCheckinBoxNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "processbar", DataFormat = DataFormat.TwosComplement)] + public uint processbar + { + get + { + return this._processbar ?? 0u; + } + set + { + this._processbar = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool processbarSpecified + { + get + { + return this._processbar != null; + } + set + { + bool flag = value == (this._processbar == null); + if (flag) + { + this._processbar = (value ? new uint?(this.processbar) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "boxmask", DataFormat = DataFormat.TwosComplement)] + public uint boxmask + { + get + { + return this._boxmask ?? 0u; + } + set + { + this._boxmask = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool boxmaskSpecified + { + get + { + return this._boxmask != null; + } + set + { + bool flag = value == (this._boxmask == null); + if (flag) + { + this._boxmask = (value ? new uint?(this.boxmask) : null); + } + } + } + + private uint? _processbar; + + private uint? _boxmask; + + private IExtension extensionObject; + + private bool ShouldSerializeprocessbar() + { + return this.processbarSpecified; + } + + private void Resetprocessbar() + { + this.processbarSpecified = false; + } + + private bool ShouldSerializeboxmask() + { + return this.boxmaskSpecified; + } + + private void Resetboxmask() + { + this.boxmaskSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs.meta new file mode 100644 index 00000000..93ff55ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinBoxNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 745d6050070f5c247b0033f1a225a794 +timeCreated: 1611403943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinRes.cs new file mode 100644 index 00000000..88bd3594 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildCheckinRes")] + [Serializable] + public class GuildCheckinRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinRes.cs.meta new file mode 100644 index 00000000..b2b7ef7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildCheckinRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eedd385011e43f640ae2f1867a62ed7b +timeCreated: 1611404800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildDarenaUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildDarenaUnit.cs new file mode 100644 index 00000000..9338d2a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildDarenaUnit.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildDarenaUnit")] + [Serializable] + public class GuildDarenaUnit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleId", DataFormat = DataFormat.TwosComplement)] + public ulong roleId + { + get + { + return this._roleId ?? 0UL; + } + set + { + this._roleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIdSpecified + { + get + { + return this._roleId != null; + } + set + { + bool flag = value == (this._roleId == null); + if (flag) + { + this._roleId = (value ? new ulong?(this.roleId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + private ulong? _roleId; + + private uint? _state; + + private IExtension extensionObject; + + private bool ShouldSerializeroleId() + { + return this.roleIdSpecified; + } + + private void ResetroleId() + { + this.roleIdSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildDarenaUnit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildDarenaUnit.cs.meta new file mode 100644 index 00000000..4a7776da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildDarenaUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e68521ed58dd3e14e8f84fdde322bd90 +timeCreated: 1611404746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueArg.cs new file mode 100644 index 00000000..c2039191 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildFatigueArg")] + [Serializable] + public class GuildFatigueArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "optype", DataFormat = DataFormat.TwosComplement)] + public int optype + { + get + { + return this._optype ?? 0; + } + set + { + this._optype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool optypeSpecified + { + get + { + return this._optype != null; + } + set + { + bool flag = value == (this._optype == null); + if (flag) + { + this._optype = (value ? new int?(this.optype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "targetID", DataFormat = DataFormat.TwosComplement)] + public ulong targetID + { + get + { + return this._targetID ?? 0UL; + } + set + { + this._targetID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool targetIDSpecified + { + get + { + return this._targetID != null; + } + set + { + bool flag = value == (this._targetID == null); + if (flag) + { + this._targetID = (value ? new ulong?(this.targetID) : null); + } + } + } + + private int? _optype; + + private ulong? _targetID; + + private IExtension extensionObject; + + private bool ShouldSerializeoptype() + { + return this.optypeSpecified; + } + + private void Resetoptype() + { + this.optypeSpecified = false; + } + + private bool ShouldSerializetargetID() + { + return this.targetIDSpecified; + } + + private void ResettargetID() + { + this.targetIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueArg.cs.meta new file mode 100644 index 00000000..33c82928 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c222564aee58c943a33a95b7820b25a +timeCreated: 1611403171 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueRes.cs new file mode 100644 index 00000000..d4f19d84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildFatigueRes")] + [Serializable] + public class GuildFatigueRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "totalsend", DataFormat = DataFormat.TwosComplement)] + public int totalsend + { + get + { + return this._totalsend ?? 0; + } + set + { + this._totalsend = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalsendSpecified + { + get + { + return this._totalsend != null; + } + set + { + bool flag = value == (this._totalsend == null); + if (flag) + { + this._totalsend = (value ? new int?(this.totalsend) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totalrecv", DataFormat = DataFormat.TwosComplement)] + public int totalrecv + { + get + { + return this._totalrecv ?? 0; + } + set + { + this._totalrecv = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalrecvSpecified + { + get + { + return this._totalrecv != null; + } + set + { + bool flag = value == (this._totalrecv == null); + if (flag) + { + this._totalrecv = (value ? new int?(this.totalrecv) : null); + } + } + } + + private ErrorCode? _result; + + private int? _totalsend; + + private int? _totalrecv; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializetotalsend() + { + return this.totalsendSpecified; + } + + private void Resettotalsend() + { + this.totalsendSpecified = false; + } + + private bool ShouldSerializetotalrecv() + { + return this.totalrecvSpecified; + } + + private void Resettotalrecv() + { + this.totalrecvSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueRes.cs.meta new file mode 100644 index 00000000..17f11b5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildFatigueRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e31943ff85cbb8e449c9498acf487b9b +timeCreated: 1611404731 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs new file mode 100644 index 00000000..963fce03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildGoblinInfoArg")] + [Serializable] + public class GuildGoblinInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs.meta new file mode 100644 index 00000000..32a970d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e3ae8e9cf10107458116d1bb673e32e +timeCreated: 1611404004 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs new file mode 100644 index 00000000..88194fb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildGoblinInfoRes")] + [Serializable] + public class GuildGoblinInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftEnterCount", DataFormat = DataFormat.TwosComplement)] + public int leftEnterCount + { + get + { + return this._leftEnterCount ?? 0; + } + set + { + this._leftEnterCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftEnterCountSpecified + { + get + { + return this._leftEnterCount != null; + } + set + { + bool flag = value == (this._leftEnterCount == null); + if (flag) + { + this._leftEnterCount = (value ? new int?(this.leftEnterCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildTotalKillCount", DataFormat = DataFormat.TwosComplement)] + public int guildTotalKillCount + { + get + { + return this._guildTotalKillCount ?? 0; + } + set + { + this._guildTotalKillCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildTotalKillCountSpecified + { + get + { + return this._guildTotalKillCount != null; + } + set + { + bool flag = value == (this._guildTotalKillCount == null); + if (flag) + { + this._guildTotalKillCount = (value ? new int?(this.guildTotalKillCount) : null); + } + } + } + + [ProtoMember(4, Name = "memberRankInfo", DataFormat = DataFormat.Default)] + public List memberRankInfo + { + get + { + return this._memberRankInfo; + } + } + + [ProtoMember(5, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + private int? _level; + + private int? _leftEnterCount; + + private int? _guildTotalKillCount; + + private readonly List _memberRankInfo = new List(); + + private ErrorCode? _errorCode; + + private IExtension extensionObject; + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeleftEnterCount() + { + return this.leftEnterCountSpecified; + } + + private void ResetleftEnterCount() + { + this.leftEnterCountSpecified = false; + } + + private bool ShouldSerializeguildTotalKillCount() + { + return this.guildTotalKillCountSpecified; + } + + private void ResetguildTotalKillCount() + { + this.guildTotalKillCountSpecified = false; + } + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs.meta new file mode 100644 index 00000000..7abf4403 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b903062c0ebf7a74a879e8c965e61c0b +timeCreated: 1611404408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinResult.cs new file mode 100644 index 00000000..5c086555 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinResult.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildGoblinResult")] + [Serializable] + public class GuildGoblinResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "getGuildBonus", DataFormat = DataFormat.Default)] + public bool getGuildBonus + { + get + { + return this._getGuildBonus ?? false; + } + set + { + this._getGuildBonus = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getGuildBonusSpecified + { + get + { + return this._getGuildBonus != null; + } + set + { + bool flag = value == (this._getGuildBonus == null); + if (flag) + { + this._getGuildBonus = (value ? new bool?(this.getGuildBonus) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "curRank", DataFormat = DataFormat.TwosComplement)] + public int curRank + { + get + { + return this._curRank ?? 0; + } + set + { + this._curRank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curRankSpecified + { + get + { + return this._curRank != null; + } + set + { + bool flag = value == (this._curRank == null); + if (flag) + { + this._curRank = (value ? new int?(this.curRank) : null); + } + } + } + + private bool? _getGuildBonus; + + private int? _curRank; + + private IExtension extensionObject; + + private bool ShouldSerializegetGuildBonus() + { + return this.getGuildBonusSpecified; + } + + private void ResetgetGuildBonus() + { + this.getGuildBonusSpecified = false; + } + + private bool ShouldSerializecurRank() + { + return this.curRankSpecified; + } + + private void ResetcurRank() + { + this.curRankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinResult.cs.meta new file mode 100644 index 00000000..0186abb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25d8b24857568964d9e13578281c3576 +timeCreated: 1611403466 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinRoleKillInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinRoleKillInfo.cs new file mode 100644 index 00000000..f9f33d66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinRoleKillInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildGoblinRoleKillInfo")] + [Serializable] + public class GuildGoblinRoleKillInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "killNum", DataFormat = DataFormat.TwosComplement)] + public int killNum + { + get + { + return this._killNum ?? 0; + } + set + { + this._killNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killNumSpecified + { + get + { + return this._killNum != null; + } + set + { + bool flag = value == (this._killNum == null); + if (flag) + { + this._killNum = (value ? new int?(this.killNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "ability", DataFormat = DataFormat.TwosComplement)] + public int ability + { + get + { + return this._ability ?? 0; + } + set + { + this._ability = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool abilitySpecified + { + get + { + return this._ability != null; + } + set + { + bool flag = value == (this._ability == null); + if (flag) + { + this._ability = (value ? new int?(this.ability) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "roleLevel", DataFormat = DataFormat.TwosComplement)] + public int roleLevel + { + get + { + return this._roleLevel ?? 0; + } + set + { + this._roleLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleLevelSpecified + { + get + { + return this._roleLevel != null; + } + set + { + bool flag = value == (this._roleLevel == null); + if (flag) + { + this._roleLevel = (value ? new int?(this.roleLevel) : null); + } + } + } + + private ulong? _roleID; + + private string _roleName; + + private int? _killNum; + + private int? _ability; + + private int? _roleLevel; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + private bool ShouldSerializekillNum() + { + return this.killNumSpecified; + } + + private void ResetkillNum() + { + this.killNumSpecified = false; + } + + private bool ShouldSerializeability() + { + return this.abilitySpecified; + } + + private void Resetability() + { + this.abilitySpecified = false; + } + + private bool ShouldSerializeroleLevel() + { + return this.roleLevelSpecified; + } + + private void ResetroleLevel() + { + this.roleLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinRoleKillInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinRoleKillInfo.cs.meta new file mode 100644 index 00000000..768da636 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinRoleKillInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9aef883c3a2cb64db65d2a9f3f20e38 +timeCreated: 1611404411 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinSceneInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinSceneInfo.cs new file mode 100644 index 00000000..1a0c05e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinSceneInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildGoblinSceneInfo")] + [Serializable] + public class GuildGoblinSceneInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "killNum", DataFormat = DataFormat.TwosComplement)] + public int killNum + { + get + { + return this._killNum ?? 0; + } + set + { + this._killNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killNumSpecified + { + get + { + return this._killNum != null; + } + set + { + bool flag = value == (this._killNum == null); + if (flag) + { + this._killNum = (value ? new int?(this.killNum) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "contribute", DataFormat = DataFormat.TwosComplement)] + public int contribute + { + get + { + return this._contribute ?? 0; + } + set + { + this._contribute = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contributeSpecified + { + get + { + return this._contribute != null; + } + set + { + bool flag = value == (this._contribute == null); + if (flag) + { + this._contribute = (value ? new int?(this.contribute) : null); + } + } + } + + private int? _killNum; + + private int? _contribute; + + private IExtension extensionObject; + + private bool ShouldSerializekillNum() + { + return this.killNumSpecified; + } + + private void ResetkillNum() + { + this.killNumSpecified = false; + } + + private bool ShouldSerializecontribute() + { + return this.contributeSpecified; + } + + private void Resetcontribute() + { + this.contributeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinSceneInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinSceneInfo.cs.meta new file mode 100644 index 00000000..4a176c3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildGoblinSceneInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59f51ae07e9b3ae4d8e227cf04eae9c7 +timeCreated: 1611403789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallBuffData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallBuffData.cs new file mode 100644 index 00000000..d4f20e8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallBuffData.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHallBuffData")] + [Serializable] + public class GuildHallBuffData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "buffid", DataFormat = DataFormat.TwosComplement)] + public uint buffid + { + get + { + return this._buffid ?? 0u; + } + set + { + this._buffid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buffidSpecified + { + get + { + return this._buffid != null; + } + set + { + bool flag = value == (this._buffid == null); + if (flag) + { + this._buffid = (value ? new uint?(this.buffid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "maxlevel", DataFormat = DataFormat.TwosComplement)] + public uint maxlevel + { + get + { + return this._maxlevel ?? 0u; + } + set + { + this._maxlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxlevelSpecified + { + get + { + return this._maxlevel != null; + } + set + { + bool flag = value == (this._maxlevel == null); + if (flag) + { + this._maxlevel = (value ? new uint?(this.maxlevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isenable", DataFormat = DataFormat.Default)] + public bool isenable + { + get + { + return this._isenable ?? false; + } + set + { + this._isenable = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isenableSpecified + { + get + { + return this._isenable != null; + } + set + { + bool flag = value == (this._isenable == null); + if (flag) + { + this._isenable = (value ? new bool?(this.isenable) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "dailybegintime", DataFormat = DataFormat.TwosComplement)] + public uint dailybegintime + { + get + { + return this._dailybegintime ?? 0u; + } + set + { + this._dailybegintime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dailybegintimeSpecified + { + get + { + return this._dailybegintime != null; + } + set + { + bool flag = value == (this._dailybegintime == null); + if (flag) + { + this._dailybegintime = (value ? new uint?(this.dailybegintime) : null); + } + } + } + + private uint? _buffid; + + private uint? _maxlevel; + + private uint? _level; + + private bool? _isenable; + + private uint? _dailybegintime; + + private IExtension extensionObject; + + private bool ShouldSerializebuffid() + { + return this.buffidSpecified; + } + + private void Resetbuffid() + { + this.buffidSpecified = false; + } + + private bool ShouldSerializemaxlevel() + { + return this.maxlevelSpecified; + } + + private void Resetmaxlevel() + { + this.maxlevelSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeisenable() + { + return this.isenableSpecified; + } + + private void Resetisenable() + { + this.isenableSpecified = false; + } + + private bool ShouldSerializedailybegintime() + { + return this.dailybegintimeSpecified; + } + + private void Resetdailybegintime() + { + this.dailybegintimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallBuffData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallBuffData.cs.meta new file mode 100644 index 00000000..a4f4c886 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallBuffData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5419381f355adca4a9c5af1b42b85c32 +timeCreated: 1611403714 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_C2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_C2M.cs new file mode 100644 index 00000000..070745e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_C2M.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHallGetBuffList_C2M")] + [Serializable] + public class GuildHallGetBuffList_C2M : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_C2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_C2M.cs.meta new file mode 100644 index 00000000..08661dc2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_C2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24ffe488ec1cef046bd294508c63c7ad +timeCreated: 1611403463 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_M2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_M2C.cs new file mode 100644 index 00000000..81231ce8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_M2C.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHallGetBuffList_M2C")] + [Serializable] + public class GuildHallGetBuffList_M2C : IExtensible + { + [ProtoMember(1, Name = "bufflist", DataFormat = DataFormat.Default)] + public List bufflist + { + get + { + return this._bufflist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "enableUpdate", DataFormat = DataFormat.Default)] + public bool enableUpdate + { + get + { + return this._enableUpdate ?? false; + } + set + { + this._enableUpdate = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enableUpdateSpecified + { + get + { + return this._enableUpdate != null; + } + set + { + bool flag = value == (this._enableUpdate == null); + if (flag) + { + this._enableUpdate = (value ? new bool?(this.enableUpdate) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ec", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ec + { + get + { + return this._ec ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ec = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ecSpecified + { + get + { + return this._ec != null; + } + set + { + bool flag = value == (this._ec == null); + if (flag) + { + this._ec = (value ? new ErrorCode?(this.ec) : null); + } + } + } + + private readonly List _bufflist = new List(); + + private bool? _enableUpdate; + + private ErrorCode? _ec; + + private IExtension extensionObject; + + private bool ShouldSerializeenableUpdate() + { + return this.enableUpdateSpecified; + } + + private void ResetenableUpdate() + { + this.enableUpdateSpecified = false; + } + + private bool ShouldSerializeec() + { + return this.ecSpecified; + } + + private void Resetec() + { + this.ecSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_M2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_M2C.cs.meta new file mode 100644 index 00000000..19e242bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallGetBuffList_M2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09556fa8c8901ec46a42ba1597e5f623 +timeCreated: 1611403155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs new file mode 100644 index 00000000..63316a50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHallUpdateBuff_C2M")] + [Serializable] + public class GuildHallUpdateBuff_C2M : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "buffid", DataFormat = DataFormat.TwosComplement)] + public uint buffid + { + get + { + return this._buffid ?? 0u; + } + set + { + this._buffid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buffidSpecified + { + get + { + return this._buffid != null; + } + set + { + bool flag = value == (this._buffid == null); + if (flag) + { + this._buffid = (value ? new uint?(this.buffid) : null); + } + } + } + + private uint? _buffid; + + private IExtension extensionObject; + + private bool ShouldSerializebuffid() + { + return this.buffidSpecified; + } + + private void Resetbuffid() + { + this.buffidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs.meta new file mode 100644 index 00000000..e782b008 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_C2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53fa9077e162f474d8ba24065e0b4d89 +timeCreated: 1611403713 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs new file mode 100644 index 00000000..d9966f3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHallUpdateBuff_M2C")] + [Serializable] + public class GuildHallUpdateBuff_M2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "buffdata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GuildHallBuffData buffdata + { + get + { + return this._buffdata; + } + set + { + this._buffdata = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "ec", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ec + { + get + { + return this._ec ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ec = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ecSpecified + { + get + { + return this._ec != null; + } + set + { + bool flag = value == (this._ec == null); + if (flag) + { + this._ec = (value ? new ErrorCode?(this.ec) : null); + } + } + } + + private GuildHallBuffData _buffdata = null; + + private ErrorCode? _ec; + + private IExtension extensionObject; + + private bool ShouldSerializeec() + { + return this.ecSpecified; + } + + private void Resetec() + { + this.ecSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs.meta new file mode 100644 index 00000000..5f54c6f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdateBuff_M2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b90bae0bb0f3be44d94fb10756b3dbdc +timeCreated: 1611404408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs new file mode 100644 index 00000000..686f9a14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHallUpdatePoint")] + [Serializable] + public class GuildHallUpdatePoint : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "schoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint schoolpoint + { + get + { + return this._schoolpoint ?? 0u; + } + set + { + this._schoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool schoolpointSpecified + { + get + { + return this._schoolpoint != null; + } + set + { + bool flag = value == (this._schoolpoint == null); + if (flag) + { + this._schoolpoint = (value ? new uint?(this.schoolpoint) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hallpoint", DataFormat = DataFormat.TwosComplement)] + public uint hallpoint + { + get + { + return this._hallpoint ?? 0u; + } + set + { + this._hallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hallpointSpecified + { + get + { + return this._hallpoint != null; + } + set + { + bool flag = value == (this._hallpoint == null); + if (flag) + { + this._hallpoint = (value ? new uint?(this.hallpoint) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "deltaschoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint deltaschoolpoint + { + get + { + return this._deltaschoolpoint ?? 0u; + } + set + { + this._deltaschoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deltaschoolpointSpecified + { + get + { + return this._deltaschoolpoint != null; + } + set + { + bool flag = value == (this._deltaschoolpoint == null); + if (flag) + { + this._deltaschoolpoint = (value ? new uint?(this.deltaschoolpoint) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "deltahallpoint", DataFormat = DataFormat.TwosComplement)] + public uint deltahallpoint + { + get + { + return this._deltahallpoint ?? 0u; + } + set + { + this._deltahallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deltahallpointSpecified + { + get + { + return this._deltahallpoint != null; + } + set + { + bool flag = value == (this._deltahallpoint == null); + if (flag) + { + this._deltahallpoint = (value ? new uint?(this.deltahallpoint) : null); + } + } + } + + private uint? _schoolpoint; + + private uint? _hallpoint; + + private ulong? _roleid; + + private uint? _deltaschoolpoint; + + private uint? _deltahallpoint; + + private IExtension extensionObject; + + private bool ShouldSerializeschoolpoint() + { + return this.schoolpointSpecified; + } + + private void Resetschoolpoint() + { + this.schoolpointSpecified = false; + } + + private bool ShouldSerializehallpoint() + { + return this.hallpointSpecified; + } + + private void Resethallpoint() + { + this.hallpointSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializedeltaschoolpoint() + { + return this.deltaschoolpointSpecified; + } + + private void Resetdeltaschoolpoint() + { + this.deltaschoolpointSpecified = false; + } + + private bool ShouldSerializedeltahallpoint() + { + return this.deltahallpointSpecified; + } + + private void Resetdeltahallpoint() + { + this.deltahallpointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs.meta new file mode 100644 index 00000000..2e1d5c57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHallUpdatePoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 969e83f4283501c4bb6cab3cad48a01b +timeCreated: 1611404186 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryArg.cs new file mode 100644 index 00000000..bb1e29ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHistoryArg")] + [Serializable] + public class GuildHistoryArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryArg.cs.meta new file mode 100644 index 00000000..7e15e7ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e73755446406014d894b93c068d5881 +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryRes.cs new file mode 100644 index 00000000..0f0088a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildHistoryRes")] + [Serializable] + public class GuildHistoryRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "records", DataFormat = DataFormat.Default)] + public List records + { + get + { + return this._records; + } + } + + private ErrorCode? _result; + + private readonly List _records = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryRes.cs.meta new file mode 100644 index 00000000..132facdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildHistoryRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d17ca93a19bde549b796950354127e0 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildInfo.cs new file mode 100644 index 00000000..9f859c1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildInfo.cs @@ -0,0 +1,664 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildInfo")] + [Serializable] + public class GuildInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leaderID", DataFormat = DataFormat.TwosComplement)] + public ulong leaderID + { + get + { + return this._leaderID ?? 0UL; + } + set + { + this._leaderID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderIDSpecified + { + get + { + return this._leaderID != null; + } + set + { + bool flag = value == (this._leaderID == null); + if (flag) + { + this._leaderID = (value ? new ulong?(this.leaderID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "leaderName", DataFormat = DataFormat.Default)] + public string leaderName + { + get + { + return this._leaderName ?? ""; + } + set + { + this._leaderName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderNameSpecified + { + get + { + return this._leaderName != null; + } + set + { + bool flag = value == (this._leaderName == null); + if (flag) + { + this._leaderName = (value ? this.leaderName : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "memberCount", DataFormat = DataFormat.TwosComplement)] + public int memberCount + { + get + { + return this._memberCount ?? 0; + } + set + { + this._memberCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberCountSpecified + { + get + { + return this._memberCount != null; + } + set + { + bool flag = value == (this._memberCount == null); + if (flag) + { + this._memberCount = (value ? new int?(this.memberCount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "isSendApplication", DataFormat = DataFormat.Default)] + public bool isSendApplication + { + get + { + return this._isSendApplication ?? false; + } + set + { + this._isSendApplication = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isSendApplicationSpecified + { + get + { + return this._isSendApplication != null; + } + set + { + bool flag = value == (this._isSendApplication == null); + if (flag) + { + this._isSendApplication = (value ? new bool?(this.isSendApplication) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public ulong id + { + get + { + return this._id ?? 0UL; + } + set + { + this._id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new ulong?(this.id) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public int ppt + { + get + { + return this._ppt ?? 0; + } + set + { + this._ppt = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new int?(this.ppt) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "needapproval", DataFormat = DataFormat.TwosComplement)] + public int needapproval + { + get + { + return this._needapproval ?? 0; + } + set + { + this._needapproval = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needapprovalSpecified + { + get + { + return this._needapproval != null; + } + set + { + bool flag = value == (this._needapproval == null); + if (flag) + { + this._needapproval = (value ? new int?(this.needapproval) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public int icon + { + get + { + return this._icon ?? 0; + } + set + { + this._icon = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new int?(this.icon) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "capacity", DataFormat = DataFormat.TwosComplement)] + public int capacity + { + get + { + return this._capacity ?? 0; + } + set + { + this._capacity = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool capacitySpecified + { + get + { + return this._capacity != null; + } + set + { + bool flag = value == (this._capacity == null); + if (flag) + { + this._capacity = (value ? new int?(this.capacity) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "annoucement", DataFormat = DataFormat.Default)] + public string annoucement + { + get + { + return this._annoucement ?? ""; + } + set + { + this._annoucement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool annoucementSpecified + { + get + { + return this._annoucement != null; + } + set + { + bool flag = value == (this._annoucement == null); + if (flag) + { + this._annoucement = (value ? this.annoucement : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "guildExp", DataFormat = DataFormat.TwosComplement)] + public uint guildExp + { + get + { + return this._guildExp ?? 0u; + } + set + { + this._guildExp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildExpSpecified + { + get + { + return this._guildExp != null; + } + set + { + bool flag = value == (this._guildExp == null); + if (flag) + { + this._guildExp = (value ? new uint?(this.guildExp) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "titleID", DataFormat = DataFormat.TwosComplement)] + public uint titleID + { + get + { + return this._titleID ?? 0u; + } + set + { + this._titleID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleIDSpecified + { + get + { + return this._titleID != null; + } + set + { + bool flag = value == (this._titleID == null); + if (flag) + { + this._titleID = (value ? new uint?(this.titleID) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "prestige", DataFormat = DataFormat.TwosComplement)] + public uint prestige + { + get + { + return this._prestige ?? 0u; + } + set + { + this._prestige = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool prestigeSpecified + { + get + { + return this._prestige != null; + } + set + { + bool flag = value == (this._prestige == null); + if (flag) + { + this._prestige = (value ? new uint?(this.prestige) : null); + } + } + } + + private string _name; + + private ulong? _leaderID; + + private string _leaderName; + + private int? _level; + + private int? _memberCount; + + private bool? _isSendApplication; + + private ulong? _id; + + private int? _ppt; + + private int? _needapproval; + + private int? _icon; + + private int? _capacity; + + private string _annoucement; + + private uint? _guildExp; + + private uint? _titleID; + + private uint? _prestige; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeleaderID() + { + return this.leaderIDSpecified; + } + + private void ResetleaderID() + { + this.leaderIDSpecified = false; + } + + private bool ShouldSerializeleaderName() + { + return this.leaderNameSpecified; + } + + private void ResetleaderName() + { + this.leaderNameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializememberCount() + { + return this.memberCountSpecified; + } + + private void ResetmemberCount() + { + this.memberCountSpecified = false; + } + + private bool ShouldSerializeisSendApplication() + { + return this.isSendApplicationSpecified; + } + + private void ResetisSendApplication() + { + this.isSendApplicationSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializeneedapproval() + { + return this.needapprovalSpecified; + } + + private void Resetneedapproval() + { + this.needapprovalSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + private bool ShouldSerializecapacity() + { + return this.capacitySpecified; + } + + private void Resetcapacity() + { + this.capacitySpecified = false; + } + + private bool ShouldSerializeannoucement() + { + return this.annoucementSpecified; + } + + private void Resetannoucement() + { + this.annoucementSpecified = false; + } + + private bool ShouldSerializeguildExp() + { + return this.guildExpSpecified; + } + + private void ResetguildExp() + { + this.guildExpSpecified = false; + } + + private bool ShouldSerializetitleID() + { + return this.titleIDSpecified; + } + + private void ResettitleID() + { + this.titleIDSpecified = false; + } + + private bool ShouldSerializeprestige() + { + return this.prestigeSpecified; + } + + private void Resetprestige() + { + this.prestigeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildInfo.cs.meta new file mode 100644 index 00000000..585a209f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3124ce607d1202a498102b5c354eba50 +timeCreated: 1611403541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupReq.cs new file mode 100644 index 00000000..c67e440b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildJoinBindGroupReq")] + [Serializable] + public class GuildJoinBindGroupReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupReq.cs.meta new file mode 100644 index 00000000..3d0e6fc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7706b84c1e9a584ea6b2caa9bc79c58 +timeCreated: 1611404402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupRes.cs new file mode 100644 index 00000000..7d2fced8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildJoinBindGroupRes")] + [Serializable] + public class GuildJoinBindGroupRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupRes.cs.meta new file mode 100644 index 00000000..a2516b1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildJoinBindGroupRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 317919f75f28c1b40b0f455945fd2ad8 +timeCreated: 1611403545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRank.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRank.cs new file mode 100644 index 00000000..bdf2f771 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRank.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildLadderRank")] + [Serializable] + public class GuildLadderRank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "wintimes", DataFormat = DataFormat.TwosComplement)] + public uint wintimes + { + get + { + return this._wintimes ?? 0u; + } + set + { + this._wintimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wintimesSpecified + { + get + { + return this._wintimes != null; + } + set + { + bool flag = value == (this._wintimes == null); + if (flag) + { + this._wintimes = (value ? new uint?(this.wintimes) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public uint icon + { + get + { + return this._icon ?? 0u; + } + set + { + this._icon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new uint?(this.icon) : null); + } + } + } + + private ulong? _guildid; + + private string _guildname; + + private uint? _wintimes; + + private uint? _icon; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializewintimes() + { + return this.wintimesSpecified; + } + + private void Resetwintimes() + { + this.wintimesSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRank.cs.meta new file mode 100644 index 00000000..020d0a6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6cadc6ad0aeb514fbfce6f60a09717d +timeCreated: 1611404527 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRoleRank.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRoleRank.cs new file mode 100644 index 00000000..34bf2fe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRoleRank.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildLadderRoleRank")] + [Serializable] + public class GuildLadderRoleRank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "wintimes", DataFormat = DataFormat.TwosComplement)] + public uint wintimes + { + get + { + return this._wintimes ?? 0u; + } + set + { + this._wintimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wintimesSpecified + { + get + { + return this._wintimes != null; + } + set + { + bool flag = value == (this._wintimes == null); + if (flag) + { + this._wintimes = (value ? new uint?(this.wintimes) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _wintimes; + + private ulong? _guildid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializewintimes() + { + return this.wintimesSpecified; + } + + private void Resetwintimes() + { + this.wintimesSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRoleRank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRoleRank.cs.meta new file mode 100644 index 00000000..512622a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildLadderRoleRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16f4593051d554349ad1dedb04d9ede2 +timeCreated: 1611403290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildLogEnum.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildLogEnum.cs new file mode 100644 index 00000000..4650e621 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildLogEnum.cs @@ -0,0 +1,30 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildLogEnum")] + public enum GuildLogEnum + { + [ProtoEnum(Name = "GUILDLOG_MEMBER_START", Value = 0)] + GUILDLOG_MEMBER_START, + [ProtoEnum(Name = "GuildLog_Join", Value = 1)] + GuildLog_Join, + [ProtoEnum(Name = "GuildLog_Leave", Value = 2)] + GuildLog_Leave, + [ProtoEnum(Name = "GuildLog_ChangePosition", Value = 3)] + GuildLog_ChangePosition, + [ProtoEnum(Name = "GUILDLOG_MEMBER_END", Value = 4)] + GUILDLOG_MEMBER_END, + [ProtoEnum(Name = "GUILDLOG_CHECKIN_START", Value = 5)] + GUILDLOG_CHECKIN_START, + [ProtoEnum(Name = "GUILDLOG_CHECKIN_END", Value = 6)] + GUILDLOG_CHECKIN_END, + [ProtoEnum(Name = "GUILDLOG_REDBONUS_START", Value = 7)] + GUILDLOG_REDBONUS_START, + [ProtoEnum(Name = "GUILDLOG_REDBONUS_END", Value = 8)] + GUILDLOG_REDBONUS_END, + [ProtoEnum(Name = "GuildLog_BossDps", Value = 9)] + GuildLog_BossDps + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildLogEnum.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildLogEnum.cs.meta new file mode 100644 index 00000000..5612f304 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildLogEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 081f2acb90dbbae48ad25175bba274da +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildLogType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildLogType.cs new file mode 100644 index 00000000..b5c86d1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildLogType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildLogType")] + public enum GuildLogType + { + [ProtoEnum(Name = "GLog_Member", Value = 1)] + GLog_Member = 1, + [ProtoEnum(Name = "GLog_CheckIn", Value = 2)] + GLog_CheckIn, + [ProtoEnum(Name = "GLog_RedBonus", Value = 3)] + GLog_RedBonus + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildLogType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildLogType.cs.meta new file mode 100644 index 00000000..53b2d9aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildLogType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf0ae6d23b8a005498c6af8dc2cab643 +timeCreated: 1611404482 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMatchFightState.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMatchFightState.cs new file mode 100644 index 00000000..f703a8d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMatchFightState.cs @@ -0,0 +1,26 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMatchFightState")] + public enum GuildMatchFightState + { + [ProtoEnum(Name = "GUILD_MF_NONE", Value = 1)] + GUILD_MF_NONE = 1, + [ProtoEnum(Name = "GUILD_MF_WAITING", Value = 2)] + GUILD_MF_WAITING, + [ProtoEnum(Name = "GUILD_MF_REFUSE", Value = 3)] + GUILD_MF_REFUSE, + [ProtoEnum(Name = "GUILD_MF_LEAVE", Value = 4)] + GUILD_MF_LEAVE, + [ProtoEnum(Name = "GUILD_MF_FIGHTING", Value = 5)] + GUILD_MF_FIGHTING, + [ProtoEnum(Name = "GUILD_MF_FAILED", Value = 6)] + GUILD_MF_FAILED, + [ProtoEnum(Name = "GUILD_MF_WIN", Value = 7)] + GUILD_MF_WIN, + [ProtoEnum(Name = "GUILD_MF_ERR", Value = 100)] + GUILD_MF_ERR = 100 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMatchFightState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMatchFightState.cs.meta new file mode 100644 index 00000000..12779734 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMatchFightState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 932437554c59ef348ad41a301972029c +timeCreated: 1611404149 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberArg.cs new file mode 100644 index 00000000..84e99041 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberArg")] + [Serializable] + public class GuildMemberArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + private ulong? _guildid; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberArg.cs.meta new file mode 100644 index 00000000..5f8ba0d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9bfe2568da99d9d40b101608e7fb68ae +timeCreated: 1611404208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs new file mode 100644 index 00000000..333cd42f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberAskInfo")] + [Serializable] + public class GuildMemberAskInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "item", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GuildMemberAskItem item + { + get + { + return this._item; + } + set + { + this._item = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + private GuildMemberAskItem _item = null; + + private string _name; + + private uint? _profession; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs.meta new file mode 100644 index 00000000..5aa8a4fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8fd4cd989cc5e94799965cc1b3568cc +timeCreated: 1611404536 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskItem.cs new file mode 100644 index 00000000..889dc796 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskItem.cs @@ -0,0 +1,578 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberAskItem")] + [Serializable] + public class GuildMemberAskItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "publishtime", DataFormat = DataFormat.TwosComplement)] + public uint publishtime + { + get + { + return this._publishtime ?? 0u; + } + set + { + this._publishtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool publishtimeSpecified + { + get + { + return this._publishtime != null; + } + set + { + bool flag = value == (this._publishtime == null); + if (flag) + { + this._publishtime = (value ? new uint?(this.publishtime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "needCount", DataFormat = DataFormat.TwosComplement)] + public uint needCount + { + get + { + return this._needCount ?? 0u; + } + set + { + this._needCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needCountSpecified + { + get + { + return this._needCount != null; + } + set + { + bool flag = value == (this._needCount == null); + if (flag) + { + this._needCount = (value ? new uint?(this.needCount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "getCount", DataFormat = DataFormat.TwosComplement)] + public uint getCount + { + get + { + return this._getCount ?? 0u; + } + set + { + this._getCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getCountSpecified + { + get + { + return this._getCount != null; + } + set + { + bool flag = value == (this._getCount == null); + if (flag) + { + this._getCount = (value ? new uint?(this.getCount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "quality", DataFormat = DataFormat.TwosComplement)] + public uint quality + { + get + { + return this._quality ?? 0u; + } + set + { + this._quality = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qualitySpecified + { + get + { + return this._quality != null; + } + set + { + bool flag = value == (this._quality == null); + if (flag) + { + this._quality = (value ? new uint?(this.quality) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "taskid", DataFormat = DataFormat.TwosComplement)] + public uint taskid + { + get + { + return this._taskid ?? 0u; + } + set + { + this._taskid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskidSpecified + { + get + { + return this._taskid != null; + } + set + { + bool flag = value == (this._taskid == null); + if (flag) + { + this._taskid = (value ? new uint?(this.taskid) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "tasktype", DataFormat = DataFormat.TwosComplement)] + public PeriodTaskType tasktype + { + get + { + return this._tasktype ?? PeriodTaskType.PeriodTaskType_Daily; + } + set + { + this._tasktype = new PeriodTaskType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tasktypeSpecified + { + get + { + return this._tasktype != null; + } + set + { + bool flag = value == (this._tasktype == null); + if (flag) + { + this._tasktype = (value ? new PeriodTaskType?(this.tasktype) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "itemtype", DataFormat = DataFormat.TwosComplement)] + public uint itemtype + { + get + { + return this._itemtype ?? 0u; + } + set + { + this._itemtype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemtypeSpecified + { + get + { + return this._itemtype != null; + } + set + { + bool flag = value == (this._itemtype == null); + if (flag) + { + this._itemtype = (value ? new uint?(this.itemtype) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "itemquality", DataFormat = DataFormat.TwosComplement)] + public uint itemquality + { + get + { + return this._itemquality ?? 0u; + } + set + { + this._itemquality = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemqualitySpecified + { + get + { + return this._itemquality != null; + } + set + { + bool flag = value == (this._itemquality == null); + if (flag) + { + this._itemquality = (value ? new uint?(this.itemquality) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _id; + + private ulong? _roleid; + + private uint? _publishtime; + + private uint? _itemid; + + private uint? _needCount; + + private uint? _getCount; + + private uint? _level; + + private uint? _quality; + + private uint? _taskid; + + private PeriodTaskType? _tasktype; + + private uint? _itemtype; + + private uint? _itemquality; + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializepublishtime() + { + return this.publishtimeSpecified; + } + + private void Resetpublishtime() + { + this.publishtimeSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeneedCount() + { + return this.needCountSpecified; + } + + private void ResetneedCount() + { + this.needCountSpecified = false; + } + + private bool ShouldSerializegetCount() + { + return this.getCountSpecified; + } + + private void ResetgetCount() + { + this.getCountSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializequality() + { + return this.qualitySpecified; + } + + private void Resetquality() + { + this.qualitySpecified = false; + } + + private bool ShouldSerializetaskid() + { + return this.taskidSpecified; + } + + private void Resettaskid() + { + this.taskidSpecified = false; + } + + private bool ShouldSerializetasktype() + { + return this.tasktypeSpecified; + } + + private void Resettasktype() + { + this.tasktypeSpecified = false; + } + + private bool ShouldSerializeitemtype() + { + return this.itemtypeSpecified; + } + + private void Resetitemtype() + { + this.itemtypeSpecified = false; + } + + private bool ShouldSerializeitemquality() + { + return this.itemqualitySpecified; + } + + private void Resetitemquality() + { + this.itemqualitySpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskItem.cs.meta new file mode 100644 index 00000000..64a51760 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberAskItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be92fcb519dd17047a3cfe0067ce0c1f +timeCreated: 1611404462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberData.cs new file mode 100644 index 00000000..1a105fee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberData.cs @@ -0,0 +1,750 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberData")] + [Serializable] + public class GuildMemberData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public int position + { + get + { + return this._position ?? 0; + } + set + { + this._position = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new int?(this.position) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "contribute", DataFormat = DataFormat.TwosComplement)] + public uint contribute + { + get + { + return this._contribute ?? 0u; + } + set + { + this._contribute = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contributeSpecified + { + get + { + return this._contribute != null; + } + set + { + bool flag = value == (this._contribute == null); + if (flag) + { + this._contribute = (value ? new uint?(this.contribute) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "flag", DataFormat = DataFormat.TwosComplement)] + public uint flag + { + get + { + return this._flag ?? 0u; + } + set + { + this._flag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool flagSpecified + { + get + { + return this._flag != null; + } + set + { + bool flag = value == (this._flag == null); + if (flag) + { + this._flag = (value ? new uint?(this.flag) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public RoleType profession + { + get + { + return this._profession ?? RoleType.Role_INVALID; + } + set + { + this._profession = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new RoleType?(this.profession) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "lastlogin", DataFormat = DataFormat.TwosComplement)] + public uint lastlogin + { + get + { + return this._lastlogin ?? 0u; + } + set + { + this._lastlogin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastloginSpecified + { + get + { + return this._lastlogin != null; + } + set + { + bool flag = value == (this._lastlogin == null); + if (flag) + { + this._lastlogin = (value ? new uint?(this.lastlogin) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "vip", DataFormat = DataFormat.TwosComplement)] + public uint vip + { + get + { + return this._vip ?? 0u; + } + set + { + this._vip = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipSpecified + { + get + { + return this._vip != null; + } + set + { + bool flag = value == (this._vip == null); + if (flag) + { + this._vip = (value ? new uint?(this.vip) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "isonline", DataFormat = DataFormat.Default)] + public bool isonline + { + get + { + return this._isonline ?? false; + } + set + { + this._isonline = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isonlineSpecified + { + get + { + return this._isonline != null; + } + set + { + bool flag = value == (this._isonline == null); + if (flag) + { + this._isonline = (value ? new bool?(this.isonline) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "activity", DataFormat = DataFormat.TwosComplement)] + public uint activity + { + get + { + return this._activity ?? 0u; + } + set + { + this._activity = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activitySpecified + { + get + { + return this._activity != null; + } + set + { + bool flag = value == (this._activity == null); + if (flag) + { + this._activity = (value ? new uint?(this.activity) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "title", DataFormat = DataFormat.TwosComplement)] + public uint title + { + get + { + return this._title ?? 0u; + } + set + { + this._title = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? new uint?(this.title) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "task_luck", DataFormat = DataFormat.TwosComplement)] + public uint task_luck + { + get + { + return this._task_luck ?? 0u; + } + set + { + this._task_luck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool task_luckSpecified + { + get + { + return this._task_luck != null; + } + set + { + bool flag = value == (this._task_luck == null); + if (flag) + { + this._task_luck = (value ? new uint?(this.task_luck) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "task_score", DataFormat = DataFormat.TwosComplement)] + public uint task_score + { + get + { + return this._task_score ?? 0u; + } + set + { + this._task_score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool task_scoreSpecified + { + get + { + return this._task_score != null; + } + set + { + bool flag = value == (this._task_score == null); + if (flag) + { + this._task_score = (value ? new uint?(this.task_score) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "can_refresh", DataFormat = DataFormat.Default)] + public bool can_refresh + { + get + { + return this._can_refresh ?? false; + } + set + { + this._can_refresh = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool can_refreshSpecified + { + get + { + return this._can_refresh != null; + } + set + { + bool flag = value == (this._can_refresh == null); + if (flag) + { + this._can_refresh = (value ? new bool?(this.can_refresh) : null); + } + } + } + + private string _name; + + private ulong? _roleid; + + private int? _position; + + private uint? _contribute; + + private uint? _ppt; + + private uint? _flag; + + private uint? _level; + + private RoleType? _profession; + + private uint? _lastlogin; + + private uint? _vip; + + private bool? _isonline; + + private uint? _activity; + + private uint? _paymemberid; + + private uint? _title; + + private uint? _task_luck; + + private uint? _task_score; + + private bool? _can_refresh; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializecontribute() + { + return this.contributeSpecified; + } + + private void Resetcontribute() + { + this.contributeSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializeflag() + { + return this.flagSpecified; + } + + private void Resetflag() + { + this.flagSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializelastlogin() + { + return this.lastloginSpecified; + } + + private void Resetlastlogin() + { + this.lastloginSpecified = false; + } + + private bool ShouldSerializevip() + { + return this.vipSpecified; + } + + private void Resetvip() + { + this.vipSpecified = false; + } + + private bool ShouldSerializeisonline() + { + return this.isonlineSpecified; + } + + private void Resetisonline() + { + this.isonlineSpecified = false; + } + + private bool ShouldSerializeactivity() + { + return this.activitySpecified; + } + + private void Resetactivity() + { + this.activitySpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + private bool ShouldSerializetask_luck() + { + return this.task_luckSpecified; + } + + private void Resettask_luck() + { + this.task_luckSpecified = false; + } + + private bool ShouldSerializetask_score() + { + return this.task_scoreSpecified; + } + + private void Resettask_score() + { + this.task_scoreSpecified = false; + } + + private bool ShouldSerializecan_refresh() + { + return this.can_refreshSpecified; + } + + private void Resetcan_refresh() + { + this.can_refreshSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberData.cs.meta new file mode 100644 index 00000000..e3fb7636 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 319b2eca1783d494cb05fd5e156d3e2f +timeCreated: 1611403546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberDonateRankItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberDonateRankItem.cs new file mode 100644 index 00000000..810a28c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberDonateRankItem.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberDonateRankItem")] + [Serializable] + public class GuildMemberDonateRankItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "todaycount", DataFormat = DataFormat.TwosComplement)] + public uint todaycount + { + get + { + return this._todaycount ?? 0u; + } + set + { + this._todaycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool todaycountSpecified + { + get + { + return this._todaycount != null; + } + set + { + bool flag = value == (this._todaycount == null); + if (flag) + { + this._todaycount = (value ? new uint?(this.todaycount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totalcount", DataFormat = DataFormat.TwosComplement)] + public uint totalcount + { + get + { + return this._totalcount ?? 0u; + } + set + { + this._totalcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalcountSpecified + { + get + { + return this._totalcount != null; + } + set + { + bool flag = value == (this._totalcount == null); + if (flag) + { + this._totalcount = (value ? new uint?(this.totalcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lasttime", DataFormat = DataFormat.TwosComplement)] + public uint lasttime + { + get + { + return this._lasttime ?? 0u; + } + set + { + this._lasttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lasttimeSpecified + { + get + { + return this._lasttime != null; + } + set + { + bool flag = value == (this._lasttime == null); + if (flag) + { + this._lasttime = (value ? new uint?(this.lasttime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + private ulong? _roleid; + + private uint? _todaycount; + + private uint? _totalcount; + + private uint? _lasttime; + + private string _name; + + private uint? _level; + + private uint? _profession; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializetodaycount() + { + return this.todaycountSpecified; + } + + private void Resettodaycount() + { + this.todaycountSpecified = false; + } + + private bool ShouldSerializetotalcount() + { + return this.totalcountSpecified; + } + + private void Resettotalcount() + { + this.totalcountSpecified = false; + } + + private bool ShouldSerializelasttime() + { + return this.lasttimeSpecified; + } + + private void Resetlasttime() + { + this.lasttimeSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberDonateRankItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberDonateRankItem.cs.meta new file mode 100644 index 00000000..ce47f417 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberDonateRankItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfc09a4f4b4ff6c49a242e2ce16c1a30 +timeCreated: 1611404582 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberFlag.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberFlag.cs new file mode 100644 index 00000000..0ee3276e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberFlag.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberFlag")] + public enum GuildMemberFlag + { + [ProtoEnum(Name = "SEND_FATIGUE", Value = 1)] + SEND_FATIGUE = 1, + [ProtoEnum(Name = "RECV_FATIGUE", Value = 2)] + RECV_FATIGUE, + [ProtoEnum(Name = "RECVED_FATIGUE", Value = 4)] + RECVED_FATIGUE = 4, + [ProtoEnum(Name = "ONLINE", Value = 8)] + ONLINE = 8 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberFlag.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberFlag.cs.meta new file mode 100644 index 00000000..822e6218 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberFlag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebf7240709797734db857b0a5d828bb5 +timeCreated: 1611404785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs new file mode 100644 index 00000000..4fff95b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs @@ -0,0 +1,633 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberInfo")] + [Serializable] + public class GuildMemberInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public int position + { + get + { + return this._position ?? 0; + } + set + { + this._position = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new int?(this.position) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "contribute", DataFormat = DataFormat.TwosComplement)] + public int contribute + { + get + { + return this._contribute ?? 0; + } + set + { + this._contribute = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contributeSpecified + { + get + { + return this._contribute != null; + } + set + { + bool flag = value == (this._contribute == null); + if (flag) + { + this._contribute = (value ? new int?(this.contribute) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public uint updateTime + { + get + { + return this._updateTime ?? 0u; + } + set + { + this._updateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new uint?(this.updateTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "groupFightContribute", DataFormat = DataFormat.TwosComplement)] + public uint groupFightContribute + { + get + { + return this._groupFightContribute ?? 0u; + } + set + { + this._groupFightContribute = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupFightContributeSpecified + { + get + { + return this._groupFightContribute != null; + } + set + { + bool flag = value == (this._groupFightContribute == null); + if (flag) + { + this._groupFightContribute = (value ? new uint?(this.groupFightContribute) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "joinTime", DataFormat = DataFormat.TwosComplement)] + public uint joinTime + { + get + { + return this._joinTime ?? 0u; + } + set + { + this._joinTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joinTimeSpecified + { + get + { + return this._joinTime != null; + } + set + { + bool flag = value == (this._joinTime == null); + if (flag) + { + this._joinTime = (value ? new uint?(this.joinTime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "bind_status", DataFormat = DataFormat.TwosComplement)] + public GuildBindStatus bind_status + { + get + { + return this._bind_status ?? GuildBindStatus.GBS_NotBind; + } + set + { + this._bind_status = new GuildBindStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bind_statusSpecified + { + get + { + return this._bind_status != null; + } + set + { + bool flag = value == (this._bind_status == null); + if (flag) + { + this._bind_status = (value ? new GuildBindStatus?(this.bind_status) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "update_bind_time", DataFormat = DataFormat.TwosComplement)] + public uint update_bind_time + { + get + { + return this._update_bind_time ?? 0u; + } + set + { + this._update_bind_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool update_bind_timeSpecified + { + get + { + return this._update_bind_time != null; + } + set + { + bool flag = value == (this._update_bind_time == null); + if (flag) + { + this._update_bind_time = (value ? new uint?(this.update_bind_time) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "weeklyschoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint weeklyschoolpoint + { + get + { + return this._weeklyschoolpoint ?? 0u; + } + set + { + this._weeklyschoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyschoolpointSpecified + { + get + { + return this._weeklyschoolpoint != null; + } + set + { + bool flag = value == (this._weeklyschoolpoint == null); + if (flag) + { + this._weeklyschoolpoint = (value ? new uint?(this.weeklyschoolpoint) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "weeklyschooltime", DataFormat = DataFormat.TwosComplement)] + public uint weeklyschooltime + { + get + { + return this._weeklyschooltime ?? 0u; + } + set + { + this._weeklyschooltime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyschooltimeSpecified + { + get + { + return this._weeklyschooltime != null; + } + set + { + bool flag = value == (this._weeklyschooltime == null); + if (flag) + { + this._weeklyschooltime = (value ? new uint?(this.weeklyschooltime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "weeklyhallpoint", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhallpoint + { + get + { + return this._weeklyhallpoint ?? 0u; + } + set + { + this._weeklyhallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhallpointSpecified + { + get + { + return this._weeklyhallpoint != null; + } + set + { + bool flag = value == (this._weeklyhallpoint == null); + if (flag) + { + this._weeklyhallpoint = (value ? new uint?(this.weeklyhallpoint) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "weeklyhalltime", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhalltime + { + get + { + return this._weeklyhalltime ?? 0u; + } + set + { + this._weeklyhalltime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhalltimeSpecified + { + get + { + return this._weeklyhalltime != null; + } + set + { + bool flag = value == (this._weeklyhalltime == null); + if (flag) + { + this._weeklyhalltime = (value ? new uint?(this.weeklyhalltime) : null); + } + } + } + + [ProtoMember(13, Name = "itemlist", DataFormat = DataFormat.Default)] + public List itemlist + { + get + { + return this._itemlist; + } + } + + [ProtoMember(14, IsRequired = false, Name = "weeklyhuntcount", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhuntcount + { + get + { + return this._weeklyhuntcount ?? 0u; + } + set + { + this._weeklyhuntcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhuntcountSpecified + { + get + { + return this._weeklyhuntcount != null; + } + set + { + bool flag = value == (this._weeklyhuntcount == null); + if (flag) + { + this._weeklyhuntcount = (value ? new uint?(this.weeklyhuntcount) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "weeklyhunttime", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhunttime + { + get + { + return this._weeklyhunttime ?? 0u; + } + set + { + this._weeklyhunttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhunttimeSpecified + { + get + { + return this._weeklyhunttime != null; + } + set + { + bool flag = value == (this._weeklyhunttime == null); + if (flag) + { + this._weeklyhunttime = (value ? new uint?(this.weeklyhunttime) : null); + } + } + } + + private ulong? _roleid; + + private int? _position; + + private int? _contribute; + + private uint? _updateTime; + + private uint? _groupFightContribute; + + private uint? _joinTime; + + private GuildBindStatus? _bind_status; + + private uint? _update_bind_time; + + private uint? _weeklyschoolpoint; + + private uint? _weeklyschooltime; + + private uint? _weeklyhallpoint; + + private uint? _weeklyhalltime; + + private readonly List _itemlist = new List(); + + private uint? _weeklyhuntcount; + + private uint? _weeklyhunttime; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializecontribute() + { + return this.contributeSpecified; + } + + private void Resetcontribute() + { + this.contributeSpecified = false; + } + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + private bool ShouldSerializegroupFightContribute() + { + return this.groupFightContributeSpecified; + } + + private void ResetgroupFightContribute() + { + this.groupFightContributeSpecified = false; + } + + private bool ShouldSerializejoinTime() + { + return this.joinTimeSpecified; + } + + private void ResetjoinTime() + { + this.joinTimeSpecified = false; + } + + private bool ShouldSerializebind_status() + { + return this.bind_statusSpecified; + } + + private void Resetbind_status() + { + this.bind_statusSpecified = false; + } + + private bool ShouldSerializeupdate_bind_time() + { + return this.update_bind_timeSpecified; + } + + private void Resetupdate_bind_time() + { + this.update_bind_timeSpecified = false; + } + + private bool ShouldSerializeweeklyschoolpoint() + { + return this.weeklyschoolpointSpecified; + } + + private void Resetweeklyschoolpoint() + { + this.weeklyschoolpointSpecified = false; + } + + private bool ShouldSerializeweeklyschooltime() + { + return this.weeklyschooltimeSpecified; + } + + private void Resetweeklyschooltime() + { + this.weeklyschooltimeSpecified = false; + } + + private bool ShouldSerializeweeklyhallpoint() + { + return this.weeklyhallpointSpecified; + } + + private void Resetweeklyhallpoint() + { + this.weeklyhallpointSpecified = false; + } + + private bool ShouldSerializeweeklyhalltime() + { + return this.weeklyhalltimeSpecified; + } + + private void Resetweeklyhalltime() + { + this.weeklyhalltimeSpecified = false; + } + + private bool ShouldSerializeweeklyhuntcount() + { + return this.weeklyhuntcountSpecified; + } + + private void Resetweeklyhuntcount() + { + this.weeklyhuntcountSpecified = false; + } + + private bool ShouldSerializeweeklyhunttime() + { + return this.weeklyhunttimeSpecified; + } + + private void Resetweeklyhunttime() + { + this.weeklyhunttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs.meta new file mode 100644 index 00000000..63fe45c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc3975db23eeb654d914a7833a99451f +timeCreated: 1611404934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs new file mode 100644 index 00000000..2cad2f37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildMemberRes")] + [Serializable] + public class GuildMemberRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + [ProtoMember(3, IsRequired = false, Name = "recvFatigue", DataFormat = DataFormat.TwosComplement)] + public uint recvFatigue + { + get + { + return this._recvFatigue ?? 0u; + } + set + { + this._recvFatigue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool recvFatigueSpecified + { + get + { + return this._recvFatigue != null; + } + set + { + bool flag = value == (this._recvFatigue == null); + if (flag) + { + this._recvFatigue = (value ? new uint?(this.recvFatigue) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "FatigueMax", DataFormat = DataFormat.TwosComplement)] + public uint FatigueMax + { + get + { + return this._FatigueMax ?? 0u; + } + set + { + this._FatigueMax = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FatigueMaxSpecified + { + get + { + return this._FatigueMax != null; + } + set + { + bool flag = value == (this._FatigueMax == null); + if (flag) + { + this._FatigueMax = (value ? new uint?(this.FatigueMax) : null); + } + } + } + + [ProtoMember(5, Name = "guildinheritid", DataFormat = DataFormat.TwosComplement)] + public List guildinheritid + { + get + { + return this._guildinheritid; + } + } + + private ErrorCode? _result; + + private readonly List _members = new List(); + + private uint? _recvFatigue; + + private uint? _FatigueMax; + + private readonly List _guildinheritid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializerecvFatigue() + { + return this.recvFatigueSpecified; + } + + private void ResetrecvFatigue() + { + this.recvFatigueSpecified = false; + } + + private bool ShouldSerializeFatigueMax() + { + return this.FatigueMaxSpecified; + } + + private void ResetFatigueMax() + { + this.FatigueMaxSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs.meta new file mode 100644 index 00000000..508679b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildMemberRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90e507497cb342148981e00a7b37e9f5 +timeCreated: 1611404140 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildOpType.cs new file mode 100644 index 00000000..54423b23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildOpType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildOpType")] + public enum GuildOpType + { + [ProtoEnum(Name = "STUDY_SKILL", Value = 1)] + STUDY_SKILL = 1, + [ProtoEnum(Name = "GUILD_DARE_INFO", Value = 2)] + GUILD_DARE_INFO + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildOpType.cs.meta new file mode 100644 index 00000000..73668d63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca819f0617329ff4e999e6b16c82a62f +timeCreated: 1611404542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritArg.cs new file mode 100644 index 00000000..2c9e1434 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildPartySummonSpiritArg")] + [Serializable] + public class GuildPartySummonSpiritArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritArg.cs.meta new file mode 100644 index 00000000..627c145b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 947f7d4c80f347f42af22de226b1a833 +timeCreated: 1611404155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritRes.cs new file mode 100644 index 00000000..5b893d59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildPartySummonSpiritRes")] + [Serializable] + public class GuildPartySummonSpiritRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritRes.cs.meta new file mode 100644 index 00000000..2852cfd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildPartySummonSpiritRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40401067665e1f242ba1aa4b47e1d9ed +timeCreated: 1611403613 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildQAType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildQAType.cs new file mode 100644 index 00000000..cf150687 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildQAType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildQAType")] + public enum GuildQAType + { + [ProtoEnum(Name = "NO_GUILD", Value = 0)] + NO_GUILD, + [ProtoEnum(Name = "BEFORE_OPEN", Value = 1)] + BEFORE_OPEN, + [ProtoEnum(Name = "IN_TIME_NOT_OPEN", Value = 2)] + IN_TIME_NOT_OPEN, + [ProtoEnum(Name = "IN_TIME_OPENING", Value = 3)] + IN_TIME_OPENING, + [ProtoEnum(Name = "AFTER_OPEN", Value = 4)] + AFTER_OPEN, + [ProtoEnum(Name = "NOT_OPEN_DAY", Value = 5)] + NOT_OPEN_DAY + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildQAType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildQAType.cs.meta new file mode 100644 index 00000000..9a8f814a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildQAType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81f56da488bd332478c3d28a22797104 +timeCreated: 1611404038 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildRecord.cs new file mode 100644 index 00000000..d7bb5a85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildRecord.cs @@ -0,0 +1,714 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildRecord")] + [Serializable] + public class GuildRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "cardplaycount", DataFormat = DataFormat.TwosComplement)] + public uint cardplaycount + { + get + { + return this._cardplaycount ?? 0u; + } + set + { + this._cardplaycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cardplaycountSpecified + { + get + { + return this._cardplaycount != null; + } + set + { + bool flag = value == (this._cardplaycount == null); + if (flag) + { + this._cardplaycount = (value ? new uint?(this.cardplaycount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "cardchangecount", DataFormat = DataFormat.TwosComplement)] + public uint cardchangecount + { + get + { + return this._cardchangecount ?? 0u; + } + set + { + this._cardchangecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cardchangecountSpecified + { + get + { + return this._cardchangecount != null; + } + set + { + bool flag = value == (this._cardchangecount == null); + if (flag) + { + this._cardchangecount = (value ? new uint?(this.cardchangecount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "updateday", DataFormat = DataFormat.TwosComplement)] + public uint updateday + { + get + { + return this._updateday ?? 0u; + } + set + { + this._updateday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatedaySpecified + { + get + { + return this._updateday != null; + } + set + { + bool flag = value == (this._updateday == null); + if (flag) + { + this._updateday = (value ? new uint?(this.updateday) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "checkin", DataFormat = DataFormat.TwosComplement)] + public uint checkin + { + get + { + return this._checkin ?? 0u; + } + set + { + this._checkin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool checkinSpecified + { + get + { + return this._checkin != null; + } + set + { + bool flag = value == (this._checkin == null); + if (flag) + { + this._checkin = (value ? new uint?(this.checkin) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "boxmask", DataFormat = DataFormat.TwosComplement)] + public uint boxmask + { + get + { + return this._boxmask ?? 0u; + } + set + { + this._boxmask = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool boxmaskSpecified + { + get + { + return this._boxmask != null; + } + set + { + bool flag = value == (this._boxmask == null); + if (flag) + { + this._boxmask = (value ? new uint?(this.boxmask) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "cardbuychangecount", DataFormat = DataFormat.TwosComplement)] + public uint cardbuychangecount + { + get + { + return this._cardbuychangecount ?? 0u; + } + set + { + this._cardbuychangecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cardbuychangecountSpecified + { + get + { + return this._cardbuychangecount != null; + } + set + { + bool flag = value == (this._cardbuychangecount == null); + if (flag) + { + this._cardbuychangecount = (value ? new uint?(this.cardbuychangecount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "recvFatigue", DataFormat = DataFormat.TwosComplement)] + public uint recvFatigue + { + get + { + return this._recvFatigue ?? 0u; + } + set + { + this._recvFatigue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool recvFatigueSpecified + { + get + { + return this._recvFatigue != null; + } + set + { + bool flag = value == (this._recvFatigue == null); + if (flag) + { + this._recvFatigue = (value ? new uint?(this.recvFatigue) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "askBonusTime", DataFormat = DataFormat.TwosComplement)] + public uint askBonusTime + { + get + { + return this._askBonusTime ?? 0u; + } + set + { + this._askBonusTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool askBonusTimeSpecified + { + get + { + return this._askBonusTime != null; + } + set + { + bool flag = value == (this._askBonusTime == null); + if (flag) + { + this._askBonusTime = (value ? new uint?(this.askBonusTime) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "getCheckInBonusNum", DataFormat = DataFormat.TwosComplement)] + public uint getCheckInBonusNum + { + get + { + return this._getCheckInBonusNum ?? 0u; + } + set + { + this._getCheckInBonusNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getCheckInBonusNumSpecified + { + get + { + return this._getCheckInBonusNum != null; + } + set + { + bool flag = value == (this._getCheckInBonusNum == null); + if (flag) + { + this._getCheckInBonusNum = (value ? new uint?(this.getCheckInBonusNum) : null); + } + } + } + + [ProtoMember(10, Name = "darereward", DataFormat = DataFormat.TwosComplement)] + public List darereward + { + get + { + return this._darereward; + } + } + + [ProtoMember(11, IsRequired = false, Name = "ishintcard", DataFormat = DataFormat.Default)] + public bool ishintcard + { + get + { + return this._ishintcard ?? false; + } + set + { + this._ishintcard = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ishintcardSpecified + { + get + { + return this._ishintcard != null; + } + set + { + bool flag = value == (this._ishintcard == null); + if (flag) + { + this._ishintcard = (value ? new bool?(this.ishintcard) : null); + } + } + } + + [ProtoMember(12, Name = "guildskills", DataFormat = DataFormat.Default)] + public List guildskills + { + get + { + return this._guildskills; + } + } + + [ProtoMember(13, IsRequired = false, Name = "cardmatchid", DataFormat = DataFormat.TwosComplement)] + public ulong cardmatchid + { + get + { + return this._cardmatchid ?? 0UL; + } + set + { + this._cardmatchid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cardmatchidSpecified + { + get + { + return this._cardmatchid != null; + } + set + { + bool flag = value == (this._cardmatchid == null); + if (flag) + { + this._cardmatchid = (value ? new ulong?(this.cardmatchid) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "inheritTeaTime", DataFormat = DataFormat.TwosComplement)] + public uint inheritTeaTime + { + get + { + return this._inheritTeaTime ?? 0u; + } + set + { + this._inheritTeaTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inheritTeaTimeSpecified + { + get + { + return this._inheritTeaTime != null; + } + set + { + bool flag = value == (this._inheritTeaTime == null); + if (flag) + { + this._inheritTeaTime = (value ? new uint?(this.inheritTeaTime) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "inheritStuTime", DataFormat = DataFormat.TwosComplement)] + public uint inheritStuTime + { + get + { + return this._inheritStuTime ?? 0u; + } + set + { + this._inheritStuTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inheritStuTimeSpecified + { + get + { + return this._inheritStuTime != null; + } + set + { + bool flag = value == (this._inheritStuTime == null); + if (flag) + { + this._inheritStuTime = (value ? new uint?(this.inheritStuTime) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "bonusData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleGuildBonusData bonusData + { + get + { + return this._bonusData; + } + set + { + this._bonusData = value; + } + } + + [ProtoMember(17, IsRequired = false, Name = "guildinheritcdtime", DataFormat = DataFormat.TwosComplement)] + public uint guildinheritcdtime + { + get + { + return this._guildinheritcdtime ?? 0u; + } + set + { + this._guildinheritcdtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildinheritcdtimeSpecified + { + get + { + return this._guildinheritcdtime != null; + } + set + { + bool flag = value == (this._guildinheritcdtime == null); + if (flag) + { + this._guildinheritcdtime = (value ? new uint?(this.guildinheritcdtime) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "teacherinherittime", DataFormat = DataFormat.TwosComplement)] + public uint teacherinherittime + { + get + { + return this._teacherinherittime ?? 0u; + } + set + { + this._teacherinherittime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teacherinherittimeSpecified + { + get + { + return this._teacherinherittime != null; + } + set + { + bool flag = value == (this._teacherinherittime == null); + if (flag) + { + this._teacherinherittime = (value ? new uint?(this.teacherinherittime) : null); + } + } + } + + [ProtoMember(19, Name = "partyreward", DataFormat = DataFormat.Default)] + public List partyreward + { + get + { + return this._partyreward; + } + } + + private uint? _cardplaycount; + + private uint? _cardchangecount; + + private uint? _updateday; + + private uint? _checkin; + + private uint? _boxmask; + + private uint? _cardbuychangecount; + + private uint? _recvFatigue; + + private uint? _askBonusTime; + + private uint? _getCheckInBonusNum; + + private readonly List _darereward = new List(); + + private bool? _ishintcard; + + private readonly List _guildskills = new List(); + + private ulong? _cardmatchid; + + private uint? _inheritTeaTime; + + private uint? _inheritStuTime; + + private RoleGuildBonusData _bonusData = null; + + private uint? _guildinheritcdtime; + + private uint? _teacherinherittime; + + private readonly List _partyreward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializecardplaycount() + { + return this.cardplaycountSpecified; + } + + private void Resetcardplaycount() + { + this.cardplaycountSpecified = false; + } + + private bool ShouldSerializecardchangecount() + { + return this.cardchangecountSpecified; + } + + private void Resetcardchangecount() + { + this.cardchangecountSpecified = false; + } + + private bool ShouldSerializeupdateday() + { + return this.updatedaySpecified; + } + + private void Resetupdateday() + { + this.updatedaySpecified = false; + } + + private bool ShouldSerializecheckin() + { + return this.checkinSpecified; + } + + private void Resetcheckin() + { + this.checkinSpecified = false; + } + + private bool ShouldSerializeboxmask() + { + return this.boxmaskSpecified; + } + + private void Resetboxmask() + { + this.boxmaskSpecified = false; + } + + private bool ShouldSerializecardbuychangecount() + { + return this.cardbuychangecountSpecified; + } + + private void Resetcardbuychangecount() + { + this.cardbuychangecountSpecified = false; + } + + private bool ShouldSerializerecvFatigue() + { + return this.recvFatigueSpecified; + } + + private void ResetrecvFatigue() + { + this.recvFatigueSpecified = false; + } + + private bool ShouldSerializeaskBonusTime() + { + return this.askBonusTimeSpecified; + } + + private void ResetaskBonusTime() + { + this.askBonusTimeSpecified = false; + } + + private bool ShouldSerializegetCheckInBonusNum() + { + return this.getCheckInBonusNumSpecified; + } + + private void ResetgetCheckInBonusNum() + { + this.getCheckInBonusNumSpecified = false; + } + + private bool ShouldSerializeishintcard() + { + return this.ishintcardSpecified; + } + + private void Resetishintcard() + { + this.ishintcardSpecified = false; + } + + private bool ShouldSerializecardmatchid() + { + return this.cardmatchidSpecified; + } + + private void Resetcardmatchid() + { + this.cardmatchidSpecified = false; + } + + private bool ShouldSerializeinheritTeaTime() + { + return this.inheritTeaTimeSpecified; + } + + private void ResetinheritTeaTime() + { + this.inheritTeaTimeSpecified = false; + } + + private bool ShouldSerializeinheritStuTime() + { + return this.inheritStuTimeSpecified; + } + + private void ResetinheritStuTime() + { + this.inheritStuTimeSpecified = false; + } + + private bool ShouldSerializeguildinheritcdtime() + { + return this.guildinheritcdtimeSpecified; + } + + private void Resetguildinheritcdtime() + { + this.guildinheritcdtimeSpecified = false; + } + + private bool ShouldSerializeteacherinherittime() + { + return this.teacherinherittimeSpecified; + } + + private void Resetteacherinherittime() + { + this.teacherinherittimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildRecord.cs.meta new file mode 100644 index 00000000..36e27a50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bfb33c6f876f94489a4379b32baec58 +timeCreated: 1611403689 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_C2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_C2M.cs new file mode 100644 index 00000000..4213de29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_C2M.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildSchoolHallGetRankList_C2M")] + [Serializable] + public class GuildSchoolHallGetRankList_C2M : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_C2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_C2M.cs.meta new file mode 100644 index 00000000..4990c839 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_C2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 339d4bad0de211e45930c617f9866bb2 +timeCreated: 1611403552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_M2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_M2C.cs new file mode 100644 index 00000000..b8cbe976 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_M2C.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildSchoolHallGetRankList_M2C")] + [Serializable] + public class GuildSchoolHallGetRankList_M2C : IExtensible + { + [ProtoMember(1, Name = "unranklist", DataFormat = DataFormat.Default)] + public List unranklist + { + get + { + return this._unranklist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildweeklyschoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint guildweeklyschoolpoint + { + get + { + return this._guildweeklyschoolpoint ?? 0u; + } + set + { + this._guildweeklyschoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildweeklyschoolpointSpecified + { + get + { + return this._guildweeklyschoolpoint != null; + } + set + { + bool flag = value == (this._guildweeklyschoolpoint == null); + if (flag) + { + this._guildweeklyschoolpoint = (value ? new uint?(this.guildweeklyschoolpoint) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildweeklyhallpoint", DataFormat = DataFormat.TwosComplement)] + public uint guildweeklyhallpoint + { + get + { + return this._guildweeklyhallpoint ?? 0u; + } + set + { + this._guildweeklyhallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildweeklyhallpointSpecified + { + get + { + return this._guildweeklyhallpoint != null; + } + set + { + bool flag = value == (this._guildweeklyhallpoint == null); + if (flag) + { + this._guildweeklyhallpoint = (value ? new uint?(this.guildweeklyhallpoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "ec", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ec + { + get + { + return this._ec ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ec = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ecSpecified + { + get + { + return this._ec != null; + } + set + { + bool flag = value == (this._ec == null); + if (flag) + { + this._ec = (value ? new ErrorCode?(this.ec) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "guildweeklyhuntingcount", DataFormat = DataFormat.TwosComplement)] + public uint guildweeklyhuntingcount + { + get + { + return this._guildweeklyhuntingcount ?? 0u; + } + set + { + this._guildweeklyhuntingcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildweeklyhuntingcountSpecified + { + get + { + return this._guildweeklyhuntingcount != null; + } + set + { + bool flag = value == (this._guildweeklyhuntingcount == null); + if (flag) + { + this._guildweeklyhuntingcount = (value ? new uint?(this.guildweeklyhuntingcount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "guildweeklydonatecount", DataFormat = DataFormat.TwosComplement)] + public uint guildweeklydonatecount + { + get + { + return this._guildweeklydonatecount ?? 0u; + } + set + { + this._guildweeklydonatecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildweeklydonatecountSpecified + { + get + { + return this._guildweeklydonatecount != null; + } + set + { + bool flag = value == (this._guildweeklydonatecount == null); + if (flag) + { + this._guildweeklydonatecount = (value ? new uint?(this.guildweeklydonatecount) : null); + } + } + } + + private readonly List _unranklist = new List(); + + private uint? _guildweeklyschoolpoint; + + private uint? _guildweeklyhallpoint; + + private ErrorCode? _ec; + + private uint? _guildweeklyhuntingcount; + + private uint? _guildweeklydonatecount; + + private IExtension extensionObject; + + private bool ShouldSerializeguildweeklyschoolpoint() + { + return this.guildweeklyschoolpointSpecified; + } + + private void Resetguildweeklyschoolpoint() + { + this.guildweeklyschoolpointSpecified = false; + } + + private bool ShouldSerializeguildweeklyhallpoint() + { + return this.guildweeklyhallpointSpecified; + } + + private void Resetguildweeklyhallpoint() + { + this.guildweeklyhallpointSpecified = false; + } + + private bool ShouldSerializeec() + { + return this.ecSpecified; + } + + private void Resetec() + { + this.ecSpecified = false; + } + + private bool ShouldSerializeguildweeklyhuntingcount() + { + return this.guildweeklyhuntingcountSpecified; + } + + private void Resetguildweeklyhuntingcount() + { + this.guildweeklyhuntingcountSpecified = false; + } + + private bool ShouldSerializeguildweeklydonatecount() + { + return this.guildweeklydonatecountSpecified; + } + + private void Resetguildweeklydonatecount() + { + this.guildweeklydonatecountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_M2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_M2C.cs.meta new file mode 100644 index 00000000..05b8cd95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallGetRankList_M2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 752b9fdf3f7ab1f4ea9867e3681267bf +timeCreated: 1611403946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallRankData.cs new file mode 100644 index 00000000..6b08eb22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallRankData.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildSchoolHallRankData")] + [Serializable] + public class GuildSchoolHallRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleprofession", DataFormat = DataFormat.TwosComplement)] + public uint roleprofession + { + get + { + return this._roleprofession ?? 0u; + } + set + { + this._roleprofession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleprofessionSpecified + { + get + { + return this._roleprofession != null; + } + set + { + bool flag = value == (this._roleprofession == null); + if (flag) + { + this._roleprofession = (value ? new uint?(this.roleprofession) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "weeklyschoolpoint", DataFormat = DataFormat.TwosComplement)] + public uint weeklyschoolpoint + { + get + { + return this._weeklyschoolpoint ?? 0u; + } + set + { + this._weeklyschoolpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyschoolpointSpecified + { + get + { + return this._weeklyschoolpoint != null; + } + set + { + bool flag = value == (this._weeklyschoolpoint == null); + if (flag) + { + this._weeklyschoolpoint = (value ? new uint?(this.weeklyschoolpoint) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "weeklyhallpoint", DataFormat = DataFormat.TwosComplement)] + public uint weeklyhallpoint + { + get + { + return this._weeklyhallpoint ?? 0u; + } + set + { + this._weeklyhallpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklyhallpointSpecified + { + get + { + return this._weeklyhallpoint != null; + } + set + { + bool flag = value == (this._weeklyhallpoint == null); + if (flag) + { + this._weeklyhallpoint = (value ? new uint?(this.weeklyhallpoint) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "updatetime", DataFormat = DataFormat.TwosComplement)] + public uint updatetime + { + get + { + return this._updatetime ?? 0u; + } + set + { + this._updatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatetimeSpecified + { + get + { + return this._updatetime != null; + } + set + { + bool flag = value == (this._updatetime == null); + if (flag) + { + this._updatetime = (value ? new uint?(this.updatetime) : null); + } + } + } + + private ulong? _roleid; + + private string _rolename; + + private uint? _roleprofession; + + private uint? _weeklyschoolpoint; + + private uint? _weeklyhallpoint; + + private uint? _updatetime; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeroleprofession() + { + return this.roleprofessionSpecified; + } + + private void Resetroleprofession() + { + this.roleprofessionSpecified = false; + } + + private bool ShouldSerializeweeklyschoolpoint() + { + return this.weeklyschoolpointSpecified; + } + + private void Resetweeklyschoolpoint() + { + this.weeklyschoolpointSpecified = false; + } + + private bool ShouldSerializeweeklyhallpoint() + { + return this.weeklyhallpointSpecified; + } + + private void Resetweeklyhallpoint() + { + this.weeklyhallpointSpecified = false; + } + + private bool ShouldSerializeupdatetime() + { + return this.updatetimeSpecified; + } + + private void Resetupdatetime() + { + this.updatetimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallRankData.cs.meta new file mode 100644 index 00000000..e33a1396 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSchoolHallRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9dd03fe1efe27104680a009e88377752 +timeCreated: 1611404238 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSettingChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildSettingChanged.cs new file mode 100644 index 00000000..c09954cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSettingChanged.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildSettingChanged")] + [Serializable] + public class GuildSettingChanged : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Icon", DataFormat = DataFormat.TwosComplement)] + public int Icon + { + get + { + return this._Icon ?? 0; + } + set + { + this._Icon = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IconSpecified + { + get + { + return this._Icon != null; + } + set + { + bool flag = value == (this._Icon == null); + if (flag) + { + this._Icon = (value ? new int?(this.Icon) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "RecuitPPT", DataFormat = DataFormat.TwosComplement)] + public int RecuitPPT + { + get + { + return this._RecuitPPT ?? 0; + } + set + { + this._RecuitPPT = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RecuitPPTSpecified + { + get + { + return this._RecuitPPT != null; + } + set + { + bool flag = value == (this._RecuitPPT == null); + if (flag) + { + this._RecuitPPT = (value ? new int?(this.RecuitPPT) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "needApproval", DataFormat = DataFormat.TwosComplement)] + public int needApproval + { + get + { + return this._needApproval ?? 0; + } + set + { + this._needApproval = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needApprovalSpecified + { + get + { + return this._needApproval != null; + } + set + { + bool flag = value == (this._needApproval == null); + if (flag) + { + this._needApproval = (value ? new int?(this.needApproval) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "annoucement", DataFormat = DataFormat.Default)] + public string annoucement + { + get + { + return this._annoucement ?? ""; + } + set + { + this._annoucement = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool annoucementSpecified + { + get + { + return this._annoucement != null; + } + set + { + bool flag = value == (this._annoucement == null); + if (flag) + { + this._annoucement = (value ? this.annoucement : null); + } + } + } + + private int? _Icon; + + private int? _RecuitPPT; + + private int? _needApproval; + + private string _annoucement; + + private IExtension extensionObject; + + private bool ShouldSerializeIcon() + { + return this.IconSpecified; + } + + private void ResetIcon() + { + this.IconSpecified = false; + } + + private bool ShouldSerializeRecuitPPT() + { + return this.RecuitPPTSpecified; + } + + private void ResetRecuitPPT() + { + this.RecuitPPTSpecified = false; + } + + private bool ShouldSerializeneedApproval() + { + return this.needApprovalSpecified; + } + + private void ResetneedApproval() + { + this.needApprovalSpecified = false; + } + + private bool ShouldSerializeannoucement() + { + return this.annoucementSpecified; + } + + private void Resetannoucement() + { + this.annoucementSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSettingChanged.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildSettingChanged.cs.meta new file mode 100644 index 00000000..0bfbffe3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSettingChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 718f88acafd28414c9664c5a236acacc +timeCreated: 1611403935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSkill.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkill.cs new file mode 100644 index 00000000..da0680e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkill.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildSkill")] + [Serializable] + public class GuildSkill : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "skillId", DataFormat = DataFormat.TwosComplement)] + public uint skillId + { + get + { + return this._skillId ?? 0u; + } + set + { + this._skillId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillIdSpecified + { + get + { + return this._skillId != null; + } + set + { + bool flag = value == (this._skillId == null); + if (flag) + { + this._skillId = (value ? new uint?(this.skillId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "skillLvl", DataFormat = DataFormat.TwosComplement)] + public uint skillLvl + { + get + { + return this._skillLvl ?? 0u; + } + set + { + this._skillLvl = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillLvlSpecified + { + get + { + return this._skillLvl != null; + } + set + { + bool flag = value == (this._skillLvl == null); + if (flag) + { + this._skillLvl = (value ? new uint?(this.skillLvl) : null); + } + } + } + + private uint? _skillId; + + private uint? _skillLvl; + + private IExtension extensionObject; + + private bool ShouldSerializeskillId() + { + return this.skillIdSpecified; + } + + private void ResetskillId() + { + this.skillIdSpecified = false; + } + + private bool ShouldSerializeskillLvl() + { + return this.skillLvlSpecified; + } + + private void ResetskillLvl() + { + this.skillLvlSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSkill.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkill.cs.meta new file mode 100644 index 00000000..ab787f73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a5df764d2afb6104a8e864ff8fd79ed1 +timeCreated: 1611404287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillAllData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillAllData.cs new file mode 100644 index 00000000..aabc3ad3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillAllData.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildSkillAllData")] + [Serializable] + public class GuildSkillAllData : IExtensible + { + [ProtoMember(1, Name = "skillLevel", DataFormat = DataFormat.Default)] + public List skillLevel + { + get + { + return this._skillLevel; + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastGuildExp", DataFormat = DataFormat.TwosComplement)] + public int lastGuildExp + { + get + { + return this._lastGuildExp ?? 0; + } + set + { + this._lastGuildExp = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastGuildExpSpecified + { + get + { + return this._lastGuildExp != null; + } + set + { + bool flag = value == (this._lastGuildExp == null); + if (flag) + { + this._lastGuildExp = (value ? new int?(this.lastGuildExp) : null); + } + } + } + + private readonly List _skillLevel = new List(); + + private int? _lastGuildExp; + + private IExtension extensionObject; + + private bool ShouldSerializelastGuildExp() + { + return this.lastGuildExpSpecified; + } + + private void ResetlastGuildExp() + { + this.lastGuildExpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillAllData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillAllData.cs.meta new file mode 100644 index 00000000..45e1d6ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillAllData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63c243ef1a3006b4c881e02bee21dd3d +timeCreated: 1611403845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillData.cs new file mode 100644 index 00000000..236cfdd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildSkillData")] + [Serializable] + public class GuildSkillData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SkillId", DataFormat = DataFormat.TwosComplement)] + public int SkillId + { + get + { + return this._SkillId ?? 0; + } + set + { + this._SkillId = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillIdSpecified + { + get + { + return this._SkillId != null; + } + set + { + bool flag = value == (this._SkillId == null); + if (flag) + { + this._SkillId = (value ? new int?(this.SkillId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "MaxLvl", DataFormat = DataFormat.TwosComplement)] + public int MaxLvl + { + get + { + return this._MaxLvl ?? 0; + } + set + { + this._MaxLvl = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool MaxLvlSpecified + { + get + { + return this._MaxLvl != null; + } + set + { + bool flag = value == (this._MaxLvl == null); + if (flag) + { + this._MaxLvl = (value ? new int?(this.MaxLvl) : null); + } + } + } + + private int? _SkillId; + + private int? _MaxLvl; + + private IExtension extensionObject; + + private bool ShouldSerializeSkillId() + { + return this.SkillIdSpecified; + } + + private void ResetSkillId() + { + this.SkillIdSpecified = false; + } + + private bool ShouldSerializeMaxLvl() + { + return this.MaxLvlSpecified; + } + + private void ResetMaxLvl() + { + this.MaxLvlSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillData.cs.meta new file mode 100644 index 00000000..e81022f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSkillData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ceee4c91b609d245a1258237616d29d +timeCreated: 1611403804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSortType.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildSortType.cs new file mode 100644 index 00000000..02276e61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSortType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildSortType")] + public enum GuildSortType + { + [ProtoEnum(Name = "GuildSortByLevel", Value = 1)] + GuildSortByLevel = 1, + [ProtoEnum(Name = "GuildSortByMemberCount", Value = 2)] + GuildSortByMemberCount, + [ProtoEnum(Name = "GuildSortByName", Value = 3)] + GuildSortByName, + [ProtoEnum(Name = "GuildSortByExp", Value = 4)] + GuildSortByExp, + [ProtoEnum(Name = "GuildSortByPrestige", Value = 5)] + GuildSortByPrestige + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildSortType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildSortType.cs.meta new file mode 100644 index 00000000..2e5ad39e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildSortType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c553bd5dab2c4694f855dc4e78b35fde +timeCreated: 1611404505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs new file mode 100644 index 00000000..b4eaf80c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildTerrAllianceInfo")] + [Serializable] + public class GuildTerrAllianceInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildlvl", DataFormat = DataFormat.TwosComplement)] + public uint guildlvl + { + get + { + return this._guildlvl ?? 0u; + } + set + { + this._guildlvl = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildlvlSpecified + { + get + { + return this._guildlvl != null; + } + set + { + bool flag = value == (this._guildlvl == null); + if (flag) + { + this._guildlvl = (value ? new uint?(this.guildlvl) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildRoleNum", DataFormat = DataFormat.TwosComplement)] + public uint guildRoleNum + { + get + { + return this._guildRoleNum ?? 0u; + } + set + { + this._guildRoleNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildRoleNumSpecified + { + get + { + return this._guildRoleNum != null; + } + set + { + bool flag = value == (this._guildRoleNum == null); + if (flag) + { + this._guildRoleNum = (value ? new uint?(this.guildRoleNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "guildId", DataFormat = DataFormat.TwosComplement)] + public ulong guildId + { + get + { + return this._guildId ?? 0UL; + } + set + { + this._guildId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildIdSpecified + { + get + { + return this._guildId != null; + } + set + { + bool flag = value == (this._guildId == null); + if (flag) + { + this._guildId = (value ? new ulong?(this.guildId) : null); + } + } + } + + private string _guildname; + + private uint? _guildlvl; + + private uint? _guildRoleNum; + + private uint? _time; + + private ulong? _guildId; + + private IExtension extensionObject; + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializeguildlvl() + { + return this.guildlvlSpecified; + } + + private void Resetguildlvl() + { + this.guildlvlSpecified = false; + } + + private bool ShouldSerializeguildRoleNum() + { + return this.guildRoleNumSpecified; + } + + private void ResetguildRoleNum() + { + this.guildRoleNumSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeguildId() + { + return this.guildIdSpecified; + } + + private void ResetguildId() + { + this.guildIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs.meta new file mode 100644 index 00000000..46ddf213 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrAllianceInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6505519fd4a858641a04157ea63a8769 +timeCreated: 1611403849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs new file mode 100644 index 00000000..3efbf9bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildTerrChallInfo")] + [Serializable] + public class GuildTerrChallInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "allianceid", DataFormat = DataFormat.TwosComplement)] + public ulong allianceid + { + get + { + return this._allianceid ?? 0UL; + } + set + { + this._allianceid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allianceidSpecified + { + get + { + return this._allianceid != null; + } + set + { + bool flag = value == (this._allianceid == null); + if (flag) + { + this._allianceid = (value ? new ulong?(this.allianceid) : null); + } + } + } + + [ProtoMember(4, Name = "tryallianceid", DataFormat = DataFormat.TwosComplement)] + public List tryallianceid + { + get + { + return this._tryallianceid; + } + } + + private ulong? _guildid; + + private string _guildname; + + private ulong? _allianceid; + + private readonly List _tryallianceid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializeallianceid() + { + return this.allianceidSpecified; + } + + private void Resetallianceid() + { + this.allianceidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs.meta new file mode 100644 index 00000000..97fc49f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildTerrChallInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e6c6f12de356d14d847f0a559f031d8 +timeCreated: 1611404241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupReq.cs new file mode 100644 index 00000000..ca7b0cb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildUnBindGroupReq")] + [Serializable] + public class GuildUnBindGroupReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupReq.cs.meta new file mode 100644 index 00000000..49ea5a7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 452d79afcb1016a4a80cdc9a9ee9542d +timeCreated: 1611403647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupRes.cs new file mode 100644 index 00000000..48f29717 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildUnBindGroupRes")] + [Serializable] + public class GuildUnBindGroupRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupRes.cs.meta new file mode 100644 index 00000000..a708e987 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildUnBindGroupRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c96b75e9a113bb4cba16ab46a49ae63 +timeCreated: 1611404100 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistoryData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistoryData.cs new file mode 100644 index 00000000..e5205b83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistoryData.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildZiCaiDonateHistoryData")] + [Serializable] + public class GuildZiCaiDonateHistoryData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _itemid; + + private ulong? _roleid; + + private string _rolename; + + private uint? _profession; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistoryData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistoryData.cs.meta new file mode 100644 index 00000000..801cf8ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistoryData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1055252e83c6474ebc7be945dbd6853 +timeCreated: 1611404488 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_C2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_C2M.cs new file mode 100644 index 00000000..a2533084 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_C2M.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildZiCaiDonateHistory_C2M")] + [Serializable] + public class GuildZiCaiDonateHistory_C2M : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_C2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_C2M.cs.meta new file mode 100644 index 00000000..00d86a80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_C2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67992cbe7eba6e841b4a38edfc860ced +timeCreated: 1611403859 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_M2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_M2C.cs new file mode 100644 index 00000000..114c7b6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_M2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildZiCaiDonateHistory_M2C")] + [Serializable] + public class GuildZiCaiDonateHistory_M2C : IExtensible + { + [ProtoMember(1, Name = "datalist", DataFormat = DataFormat.Default)] + public List datalist + { + get + { + return this._datalist; + } + } + + [ProtoMember(2, IsRequired = false, Name = "ec", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ec + { + get + { + return this._ec ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ec = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ecSpecified + { + get + { + return this._ec != null; + } + set + { + bool flag = value == (this._ec == null); + if (flag) + { + this._ec = (value ? new ErrorCode?(this.ec) : null); + } + } + } + + private readonly List _datalist = new List(); + + private ErrorCode? _ec; + + private IExtension extensionObject; + + private bool ShouldSerializeec() + { + return this.ecSpecified; + } + + private void Resetec() + { + this.ecSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_M2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_M2C.cs.meta new file mode 100644 index 00000000..0cb94a43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonateHistory_M2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b09d6e0b8fe8e044c86ef52ef7a4699e +timeCreated: 1611404352 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_C2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_C2M.cs new file mode 100644 index 00000000..323000b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_C2M.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildZiCaiDonate_C2M")] + [Serializable] + public class GuildZiCaiDonate_C2M : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + private uint? _itemid; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_C2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_C2M.cs.meta new file mode 100644 index 00000000..6d5efea9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_C2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc7ef822bc2800449b9224d88f5b0315 +timeCreated: 1611404550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_M2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_M2C.cs new file mode 100644 index 00000000..db596be1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_M2C.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildZiCaiDonate_M2C")] + [Serializable] + public class GuildZiCaiDonate_M2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ec", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ec + { + get + { + return this._ec ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ec = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ecSpecified + { + get + { + return this._ec != null; + } + set + { + bool flag = value == (this._ec == null); + if (flag) + { + this._ec = (value ? new ErrorCode?(this.ec) : null); + } + } + } + + private ErrorCode? _ec; + + private IExtension extensionObject; + + private bool ShouldSerializeec() + { + return this.ecSpecified; + } + + private void Resetec() + { + this.ecSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_M2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_M2C.cs.meta new file mode 100644 index 00000000..a4a4752a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiDonate_M2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 870cba98f524c44409333b2c1e391c84 +timeCreated: 1611404077 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_C2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_C2M.cs new file mode 100644 index 00000000..11b35182 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_C2M.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildZiCaiGetList_C2M")] + [Serializable] + public class GuildZiCaiGetList_C2M : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_C2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_C2M.cs.meta new file mode 100644 index 00000000..8acc41e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_C2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08b89735d5dc0aa458036209bf4fb857 +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_M2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_M2C.cs new file mode 100644 index 00000000..27eb55c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_M2C.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildZiCaiGetList_M2C")] + [Serializable] + public class GuildZiCaiGetList_M2C : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ec", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ec + { + get + { + return this._ec ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ec = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ecSpecified + { + get + { + return this._ec != null; + } + set + { + bool flag = value == (this._ec == null); + if (flag) + { + this._ec = (value ? new ErrorCode?(this.ec) : null); + } + } + } + + [ProtoMember(2, Name = "itemlist", DataFormat = DataFormat.Default)] + public List itemlist + { + get + { + return this._itemlist; + } + } + + private ErrorCode? _ec; + + private readonly List _itemlist = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeec() + { + return this.ecSpecified; + } + + private void Resetec() + { + this.ecSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_M2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_M2C.cs.meta new file mode 100644 index 00000000..aad9175b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiGetList_M2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2af5bfd803ce5a4d8356707b27ecb85 +timeCreated: 1611404495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs new file mode 100644 index 00000000..42a1281e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "GuildZiCaiItemData")] + [Serializable] + public class GuildZiCaiItemData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _itemid; + + private uint? _num; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs.meta new file mode 100644 index 00000000..5b072f85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/GuildZiCaiItemData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69785ad909f4b624c83111ceec7e4baf +timeCreated: 1611403886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs new file mode 100644 index 00000000..d2f0e82c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HallIconPara")] + [Serializable] + public class HallIconPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public HallIconState state + { + get + { + return this._state ?? HallIconState.HICONS_BEGIN; + } + set + { + this._state = new HallIconState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new HallIconState?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "systemid", DataFormat = DataFormat.TwosComplement)] + public int systemid + { + get + { + return this._systemid ?? 0; + } + set + { + this._systemid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool systemidSpecified + { + get + { + return this._systemid != null; + } + set + { + bool flag = value == (this._systemid == null); + if (flag) + { + this._systemid = (value ? new int?(this.systemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "liveInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LiveIconData liveInfo + { + get + { + return this._liveInfo; + } + set + { + this._liveInfo = value; + } + } + + private HallIconState? _state; + + private int? _systemid; + + private LiveIconData _liveInfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializesystemid() + { + return this.systemidSpecified; + } + + private void Resetsystemid() + { + this.systemidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs.meta new file mode 100644 index 00000000..84d8e4d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HallIconPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6206f6e962c39ee4fa9a578412f19fb9 +timeCreated: 1611403839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HallIconState.cs b/Client/Assets/Scripts/XMainClient/KKSG/HallIconState.cs new file mode 100644 index 00000000..9f597723 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HallIconState.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HallIconState")] + public enum HallIconState + { + [ProtoEnum(Name = "HICONS_BEGIN", Value = 1)] + HICONS_BEGIN = 1, + [ProtoEnum(Name = "HICONS_END", Value = 2)] + HICONS_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HallIconState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HallIconState.cs.meta new file mode 100644 index 00000000..c5f37124 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HallIconState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f8ffc802542bf045a44aafd8ee20ab2 +timeCreated: 1611403209 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HandleMicphoneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/HandleMicphoneArg.cs new file mode 100644 index 00000000..0fd6feb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HandleMicphoneArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HandleMicphoneArg")] + [Serializable] + public class HandleMicphoneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.Default)] + public bool param + { + get + { + return this._param ?? false; + } + set + { + this._param = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new bool?(this.param) : null); + } + } + } + + private bool? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HandleMicphoneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HandleMicphoneArg.cs.meta new file mode 100644 index 00000000..d5e59727 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HandleMicphoneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78e517749bcc31a438cc52131c145a30 +timeCreated: 1611403982 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfo.cs new file mode 100644 index 00000000..81f360dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HellDropInfo")] + [Serializable] + public class HellDropInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "common", DataFormat = DataFormat.TwosComplement)] + public uint common + { + get + { + return this._common ?? 0u; + } + set + { + this._common = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool commonSpecified + { + get + { + return this._common != null; + } + set + { + bool flag = value == (this._common == null); + if (flag) + { + this._common = (value ? new uint?(this.common) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "worse", DataFormat = DataFormat.TwosComplement)] + public uint worse + { + get + { + return this._worse ?? 0u; + } + set + { + this._worse = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool worseSpecified + { + get + { + return this._worse != null; + } + set + { + bool flag = value == (this._worse == null); + if (flag) + { + this._worse = (value ? new uint?(this.worse) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "worst", DataFormat = DataFormat.TwosComplement)] + public uint worst + { + get + { + return this._worst ?? 0u; + } + set + { + this._worst = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool worstSpecified + { + get + { + return this._worst != null; + } + set + { + bool flag = value == (this._worst == null); + if (flag) + { + this._worst = (value ? new uint?(this.worst) : null); + } + } + } + + private uint? _id; + + private uint? _common; + + private uint? _count; + + private uint? _time; + + private uint? _worse; + + private uint? _worst; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializecommon() + { + return this.commonSpecified; + } + + private void Resetcommon() + { + this.commonSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeworse() + { + return this.worseSpecified; + } + + private void Resetworse() + { + this.worseSpecified = false; + } + + private bool ShouldSerializeworst() + { + return this.worstSpecified; + } + + private void Resetworst() + { + this.worstSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfo.cs.meta new file mode 100644 index 00000000..df5574a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b4c931c32178424290903125d85835c +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfoAll.cs b/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfoAll.cs new file mode 100644 index 00000000..0b9a8d9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfoAll.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HellDropInfoAll")] + [Serializable] + public class HellDropInfoAll : IExtensible + { + [ProtoMember(1, Name = "all", DataFormat = DataFormat.Default)] + public List all + { + get + { + return this._all; + } + } + + [ProtoMember(2, IsRequired = false, Name = "version", DataFormat = DataFormat.TwosComplement)] + public uint version + { + get + { + return this._version ?? 0u; + } + set + { + this._version = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool versionSpecified + { + get + { + return this._version != null; + } + set + { + bool flag = value == (this._version == null); + if (flag) + { + this._version = (value ? new uint?(this.version) : null); + } + } + } + + private readonly List _all = new List(); + + private uint? _version; + + private IExtension extensionObject; + + private bool ShouldSerializeversion() + { + return this.versionSpecified; + } + + private void Resetversion() + { + this.versionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfoAll.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfoAll.cs.meta new file mode 100644 index 00000000..643afc29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HellDropInfoAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b0194789047e424e80dd84b68a36d5b +timeCreated: 1611403166 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleAncientPowerData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleAncientPowerData.cs new file mode 100644 index 00000000..c19cce76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleAncientPowerData.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleAncientPowerData")] + [Serializable] + public class HeroBattleAncientPowerData : IExtensible + { + [ProtoMember(1, Name = "roleids", DataFormat = DataFormat.TwosComplement)] + public List roleids + { + get + { + return this._roleids; + } + } + + [ProtoMember(2, Name = "ancientpower", DataFormat = DataFormat.TwosComplement)] + public List ancientpower + { + get + { + return this._ancientpower; + } + } + + private readonly List _roleids = new List(); + + private readonly List _ancientpower = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleAncientPowerData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleAncientPowerData.cs.meta new file mode 100644 index 00000000..e372c374 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleAncientPowerData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e69754db0a7bd1048badccfcb22e2e26 +timeCreated: 1611404747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleCanUseHeroData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleCanUseHeroData.cs new file mode 100644 index 00000000..4ba4b4d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleCanUseHeroData.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleCanUseHeroData")] + [Serializable] + public class HeroBattleCanUseHeroData : IExtensible + { + [ProtoMember(1, Name = "havehero", DataFormat = DataFormat.TwosComplement)] + public List havehero + { + get + { + return this._havehero; + } + } + + [ProtoMember(2, Name = "freehero", DataFormat = DataFormat.TwosComplement)] + public List freehero + { + get + { + return this._freehero; + } + } + + [ProtoMember(3, Name = "experiencehero", DataFormat = DataFormat.TwosComplement)] + public List experiencehero + { + get + { + return this._experiencehero; + } + } + + [ProtoMember(4, IsRequired = false, Name = "leftChooseTime", DataFormat = DataFormat.TwosComplement)] + public uint leftChooseTime + { + get + { + return this._leftChooseTime ?? 0u; + } + set + { + this._leftChooseTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftChooseTimeSpecified + { + get + { + return this._leftChooseTime != null; + } + set + { + bool flag = value == (this._leftChooseTime == null); + if (flag) + { + this._leftChooseTime = (value ? new uint?(this.leftChooseTime) : null); + } + } + } + + private readonly List _havehero = new List(); + + private readonly List _freehero = new List(); + + private readonly List _experiencehero = new List(); + + private uint? _leftChooseTime; + + private IExtension extensionObject; + + private bool ShouldSerializeleftChooseTime() + { + return this.leftChooseTimeSpecified; + } + + private void ResetleftChooseTime() + { + this.leftChooseTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleCanUseHeroData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleCanUseHeroData.cs.meta new file mode 100644 index 00000000..26d600b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleCanUseHeroData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d1a99be3f3d0024abb35388fa9fad5a +timeCreated: 1611403350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleData.cs new file mode 100644 index 00000000..e9fb7524 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleData.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleData")] + [Serializable] + public class HeroBattleData : IExtensible + { + [ProtoMember(1, Name = "groupData", DataFormat = DataFormat.Default)] + public List groupData + { + get + { + return this._groupData; + } + } + + [ProtoMember(2, IsRequired = false, Name = "occupant", DataFormat = DataFormat.TwosComplement)] + public uint occupant + { + get + { + return this._occupant ?? 0u; + } + set + { + this._occupant = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool occupantSpecified + { + get + { + return this._occupant != null; + } + set + { + bool flag = value == (this._occupant == null); + if (flag) + { + this._occupant = (value ? new uint?(this.occupant) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lootTeam", DataFormat = DataFormat.TwosComplement)] + public uint lootTeam + { + get + { + return this._lootTeam ?? 0u; + } + set + { + this._lootTeam = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lootTeamSpecified + { + get + { + return this._lootTeam != null; + } + set + { + bool flag = value == (this._lootTeam == null); + if (flag) + { + this._lootTeam = (value ? new uint?(this.lootTeam) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lootProgress", DataFormat = DataFormat.FixedSize)] + public float lootProgress + { + get + { + return this._lootProgress ?? 0f; + } + set + { + this._lootProgress = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lootProgressSpecified + { + get + { + return this._lootProgress != null; + } + set + { + bool flag = value == (this._lootProgress == null); + if (flag) + { + this._lootProgress = (value ? new float?(this.lootProgress) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isInfight", DataFormat = DataFormat.Default)] + public bool isInfight + { + get + { + return this._isInfight ?? false; + } + set + { + this._isInfight = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isInfightSpecified + { + get + { + return this._isInfight != null; + } + set + { + bool flag = value == (this._isInfight == null); + if (flag) + { + this._isInfight = (value ? new bool?(this.isInfight) : null); + } + } + } + + [ProtoMember(6, Name = "roleInCircle", DataFormat = DataFormat.TwosComplement)] + public List roleInCircle + { + get + { + return this._roleInCircle; + } + } + + private readonly List _groupData = new List(); + + private uint? _occupant; + + private uint? _lootTeam; + + private float? _lootProgress; + + private bool? _isInfight; + + private readonly List _roleInCircle = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeoccupant() + { + return this.occupantSpecified; + } + + private void Resetoccupant() + { + this.occupantSpecified = false; + } + + private bool ShouldSerializelootTeam() + { + return this.lootTeamSpecified; + } + + private void ResetlootTeam() + { + this.lootTeamSpecified = false; + } + + private bool ShouldSerializelootProgress() + { + return this.lootProgressSpecified; + } + + private void ResetlootProgress() + { + this.lootProgressSpecified = false; + } + + private bool ShouldSerializeisInfight() + { + return this.isInfightSpecified; + } + + private void ResetisInfight() + { + this.isInfightSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleData.cs.meta new file mode 100644 index 00000000..f3eb751d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bbeb7efa34917e4789139275b9c7bf1 +timeCreated: 1611403688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleGroupData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleGroupData.cs new file mode 100644 index 00000000..8f871130 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleGroupData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleGroupData")] + [Serializable] + public class HeroBattleGroupData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "headcount", DataFormat = DataFormat.TwosComplement)] + public uint headcount + { + get + { + return this._headcount ?? 0u; + } + set + { + this._headcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool headcountSpecified + { + get + { + return this._headcount != null; + } + set + { + bool flag = value == (this._headcount == null); + if (flag) + { + this._headcount = (value ? new uint?(this.headcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + private uint? _teamid; + + private uint? _headcount; + + private uint? _point; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializeheadcount() + { + return this.headcountSpecified; + } + + private void Resetheadcount() + { + this.headcountSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleGroupData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleGroupData.cs.meta new file mode 100644 index 00000000..58d18172 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleGroupData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ca2483912c768449be7919dbe5794f9 +timeCreated: 1611403347 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleInCircle.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleInCircle.cs new file mode 100644 index 00000000..69fe0c1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleInCircle.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleInCircle")] + [Serializable] + public class HeroBattleInCircle : IExtensible + { + [ProtoMember(1, Name = "roleInCircle", DataFormat = DataFormat.TwosComplement)] + public List roleInCircle + { + get + { + return this._roleInCircle; + } + } + + private readonly List _roleInCircle = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleInCircle.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleInCircle.cs.meta new file mode 100644 index 00000000..661ca501 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleInCircle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b9d68f07edeebd4e9615caee81b5c4b +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOneGame.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOneGame.cs new file mode 100644 index 00000000..5e4bc2b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOneGame.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleOneGame")] + [Serializable] + public class HeroBattleOneGame : IExtensible + { + [ProtoMember(1, Name = "team1", DataFormat = DataFormat.Default)] + public List team1 + { + get + { + return this._team1; + } + } + + [ProtoMember(2, Name = "team2", DataFormat = DataFormat.Default)] + public List team2 + { + get + { + return this._team2; + } + } + + [ProtoMember(3, IsRequired = false, Name = "over", DataFormat = DataFormat.TwosComplement)] + public HeroBattleOver over + { + get + { + return this._over ?? HeroBattleOver.HeroBattleOver_Win; + } + set + { + this._over = new HeroBattleOver?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool overSpecified + { + get + { + return this._over != null; + } + set + { + bool flag = value == (this._over == null); + if (flag) + { + this._over = (value ? new HeroBattleOver?(this.over) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "mvpid", DataFormat = DataFormat.TwosComplement)] + public ulong mvpid + { + get + { + return this._mvpid ?? 0UL; + } + set + { + this._mvpid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mvpidSpecified + { + get + { + return this._mvpid != null; + } + set + { + bool flag = value == (this._mvpid == null); + if (flag) + { + this._mvpid = (value ? new ulong?(this.mvpid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "exploit", DataFormat = DataFormat.TwosComplement)] + public uint exploit + { + get + { + return this._exploit ?? 0u; + } + set + { + this._exploit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool exploitSpecified + { + get + { + return this._exploit != null; + } + set + { + bool flag = value == (this._exploit == null); + if (flag) + { + this._exploit = (value ? new uint?(this.exploit) : null); + } + } + } + + private readonly List _team1 = new List(); + + private readonly List _team2 = new List(); + + private HeroBattleOver? _over; + + private ulong? _mvpid; + + private uint? _exploit; + + private IExtension extensionObject; + + private bool ShouldSerializeover() + { + return this.overSpecified; + } + + private void Resetover() + { + this.overSpecified = false; + } + + private bool ShouldSerializemvpid() + { + return this.mvpidSpecified; + } + + private void Resetmvpid() + { + this.mvpidSpecified = false; + } + + private bool ShouldSerializeexploit() + { + return this.exploitSpecified; + } + + private void Resetexploit() + { + this.exploitSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOneGame.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOneGame.cs.meta new file mode 100644 index 00000000..25f67dc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOneGame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4816ec60bb300624db99f53387d523e4 +timeCreated: 1611403656 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOver.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOver.cs new file mode 100644 index 00000000..a7f6646c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOver.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleOver")] + public enum HeroBattleOver + { + [ProtoEnum(Name = "HeroBattleOver_Win", Value = 1)] + HeroBattleOver_Win = 1, + [ProtoEnum(Name = "HeroBattleOver_Lose", Value = 2)] + HeroBattleOver_Lose, + [ProtoEnum(Name = "HeroBattleOver_Draw", Value = 3)] + HeroBattleOver_Draw + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOver.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOver.cs.meta new file mode 100644 index 00000000..face3b79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOver.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b33f38ba46643b443bb15092c0c8718c +timeCreated: 1611404388 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOverTimeData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOverTimeData.cs new file mode 100644 index 00000000..8ee54423 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOverTimeData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleOverTimeData")] + [Serializable] + public class HeroBattleOverTimeData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "millisecond", DataFormat = DataFormat.TwosComplement)] + public ulong millisecond + { + get + { + return this._millisecond ?? 0UL; + } + set + { + this._millisecond = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool millisecondSpecified + { + get + { + return this._millisecond != null; + } + set + { + bool flag = value == (this._millisecond == null); + if (flag) + { + this._millisecond = (value ? new ulong?(this.millisecond) : null); + } + } + } + + private ulong? _millisecond; + + private IExtension extensionObject; + + private bool ShouldSerializemillisecond() + { + return this.millisecondSpecified; + } + + private void Resetmillisecond() + { + this.millisecondSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOverTimeData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOverTimeData.cs.meta new file mode 100644 index 00000000..06737138 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleOverTimeData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 681b0f51c1f391245a8da87c23af9548 +timeCreated: 1611403881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleRecord.cs new file mode 100644 index 00000000..64b98c37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleRecord.cs @@ -0,0 +1,720 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleRecord")] + [Serializable] + public class HeroBattleRecord : IExtensible + { + [ProtoMember(1, Name = "havehero", DataFormat = DataFormat.TwosComplement)] + public List havehero + { + get + { + return this._havehero; + } + } + + [ProtoMember(2, IsRequired = false, Name = "cangetprize", DataFormat = DataFormat.Default)] + public bool cangetprize + { + get + { + return this._cangetprize ?? false; + } + set + { + this._cangetprize = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cangetprizeSpecified + { + get + { + return this._cangetprize != null; + } + set + { + bool flag = value == (this._cangetprize == null); + if (flag) + { + this._cangetprize = (value ? new bool?(this.cangetprize) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "alreadygetprize", DataFormat = DataFormat.Default)] + public bool alreadygetprize + { + get + { + return this._alreadygetprize ?? false; + } + set + { + this._alreadygetprize = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool alreadygetprizeSpecified + { + get + { + return this._alreadygetprize != null; + } + set + { + bool flag = value == (this._alreadygetprize == null); + if (flag) + { + this._alreadygetprize = (value ? new bool?(this.alreadygetprize) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "totalnum", DataFormat = DataFormat.TwosComplement)] + public uint totalnum + { + get + { + return this._totalnum ?? 0u; + } + set + { + this._totalnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalnumSpecified + { + get + { + return this._totalnum != null; + } + set + { + bool flag = value == (this._totalnum == null); + if (flag) + { + this._totalnum = (value ? new uint?(this.totalnum) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "winnum", DataFormat = DataFormat.TwosComplement)] + public uint winnum + { + get + { + return this._winnum ?? 0u; + } + set + { + this._winnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winnumSpecified + { + get + { + return this._winnum != null; + } + set + { + bool flag = value == (this._winnum == null); + if (flag) + { + this._winnum = (value ? new uint?(this.winnum) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "losenum", DataFormat = DataFormat.TwosComplement)] + public uint losenum + { + get + { + return this._losenum ?? 0u; + } + set + { + this._losenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losenumSpecified + { + get + { + return this._losenum != null; + } + set + { + bool flag = value == (this._losenum == null); + if (flag) + { + this._losenum = (value ? new uint?(this.losenum) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "winthisweek", DataFormat = DataFormat.TwosComplement)] + public uint winthisweek + { + get + { + return this._winthisweek ?? 0u; + } + set + { + this._winthisweek = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winthisweekSpecified + { + get + { + return this._winthisweek != null; + } + set + { + bool flag = value == (this._winthisweek == null); + if (flag) + { + this._winthisweek = (value ? new uint?(this.winthisweek) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "lastupdatetime", DataFormat = DataFormat.TwosComplement)] + public uint lastupdatetime + { + get + { + return this._lastupdatetime ?? 0u; + } + set + { + this._lastupdatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastupdatetimeSpecified + { + get + { + return this._lastupdatetime != null; + } + set + { + bool flag = value == (this._lastupdatetime == null); + if (flag) + { + this._lastupdatetime = (value ? new uint?(this.lastupdatetime) : null); + } + } + } + + [ProtoMember(9, Name = "gamerecord", DataFormat = DataFormat.Default)] + public List gamerecord + { + get + { + return this._gamerecord; + } + } + + [ProtoMember(10, IsRequired = false, Name = "todayspcount", DataFormat = DataFormat.TwosComplement)] + public uint todayspcount + { + get + { + return this._todayspcount ?? 0u; + } + set + { + this._todayspcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool todayspcountSpecified + { + get + { + return this._todayspcount != null; + } + set + { + bool flag = value == (this._todayspcount == null); + if (flag) + { + this._todayspcount = (value ? new uint?(this.todayspcount) : null); + } + } + } + + [ProtoMember(11, Name = "freeweekhero", DataFormat = DataFormat.TwosComplement)] + public List freeweekhero + { + get + { + return this._freeweekhero; + } + } + + [ProtoMember(12, IsRequired = false, Name = "bigrewardcount", DataFormat = DataFormat.TwosComplement)] + public uint bigrewardcount + { + get + { + return this._bigrewardcount ?? 0u; + } + set + { + this._bigrewardcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bigrewardcountSpecified + { + get + { + return this._bigrewardcount != null; + } + set + { + bool flag = value == (this._bigrewardcount == null); + if (flag) + { + this._bigrewardcount = (value ? new uint?(this.bigrewardcount) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "weekprize", DataFormat = DataFormat.TwosComplement)] + public uint weekprize + { + get + { + return this._weekprize ?? 0u; + } + set + { + this._weekprize = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekprizeSpecified + { + get + { + return this._weekprize != null; + } + set + { + bool flag = value == (this._weekprize == null); + if (flag) + { + this._weekprize = (value ? new uint?(this.weekprize) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "elopoint", DataFormat = DataFormat.TwosComplement)] + public double elopoint + { + get + { + return this._elopoint ?? 0.0; + } + set + { + this._elopoint = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool elopointSpecified + { + get + { + return this._elopoint != null; + } + set + { + bool flag = value == (this._elopoint == null); + if (flag) + { + this._elopoint = (value ? new double?(this.elopoint) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "daytime", DataFormat = DataFormat.TwosComplement)] + public uint daytime + { + get + { + return this._daytime ?? 0u; + } + set + { + this._daytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daytimeSpecified + { + get + { + return this._daytime != null; + } + set + { + bool flag = value == (this._daytime == null); + if (flag) + { + this._daytime = (value ? new uint?(this.daytime) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "daytimes", DataFormat = DataFormat.TwosComplement)] + public uint daytimes + { + get + { + return this._daytimes ?? 0u; + } + set + { + this._daytimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daytimesSpecified + { + get + { + return this._daytimes != null; + } + set + { + bool flag = value == (this._daytimes == null); + if (flag) + { + this._daytimes = (value ? new uint?(this.daytimes) : null); + } + } + } + + [ProtoMember(17, Name = "experiencehero", DataFormat = DataFormat.TwosComplement)] + public List experiencehero + { + get + { + return this._experiencehero; + } + } + + [ProtoMember(18, Name = "experienceherotime", DataFormat = DataFormat.TwosComplement)] + public List experienceherotime + { + get + { + return this._experienceherotime; + } + } + + [ProtoMember(19, IsRequired = false, Name = "continuewinnum", DataFormat = DataFormat.TwosComplement)] + public uint continuewinnum + { + get + { + return this._continuewinnum ?? 0u; + } + set + { + this._continuewinnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool continuewinnumSpecified + { + get + { + return this._continuewinnum != null; + } + set + { + bool flag = value == (this._continuewinnum == null); + if (flag) + { + this._continuewinnum = (value ? new uint?(this.continuewinnum) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "maxkillnum", DataFormat = DataFormat.TwosComplement)] + public uint maxkillnum + { + get + { + return this._maxkillnum ?? 0u; + } + set + { + this._maxkillnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxkillnumSpecified + { + get + { + return this._maxkillnum != null; + } + set + { + bool flag = value == (this._maxkillnum == null); + if (flag) + { + this._maxkillnum = (value ? new uint?(this.maxkillnum) : null); + } + } + } + + private readonly List _havehero = new List(); + + private bool? _cangetprize; + + private bool? _alreadygetprize; + + private uint? _totalnum; + + private uint? _winnum; + + private uint? _losenum; + + private uint? _winthisweek; + + private uint? _lastupdatetime; + + private readonly List _gamerecord = new List(); + + private uint? _todayspcount; + + private readonly List _freeweekhero = new List(); + + private uint? _bigrewardcount; + + private uint? _weekprize; + + private double? _elopoint; + + private uint? _daytime; + + private uint? _daytimes; + + private readonly List _experiencehero = new List(); + + private readonly List _experienceherotime = new List(); + + private uint? _continuewinnum; + + private uint? _maxkillnum; + + private IExtension extensionObject; + + private bool ShouldSerializecangetprize() + { + return this.cangetprizeSpecified; + } + + private void Resetcangetprize() + { + this.cangetprizeSpecified = false; + } + + private bool ShouldSerializealreadygetprize() + { + return this.alreadygetprizeSpecified; + } + + private void Resetalreadygetprize() + { + this.alreadygetprizeSpecified = false; + } + + private bool ShouldSerializetotalnum() + { + return this.totalnumSpecified; + } + + private void Resettotalnum() + { + this.totalnumSpecified = false; + } + + private bool ShouldSerializewinnum() + { + return this.winnumSpecified; + } + + private void Resetwinnum() + { + this.winnumSpecified = false; + } + + private bool ShouldSerializelosenum() + { + return this.losenumSpecified; + } + + private void Resetlosenum() + { + this.losenumSpecified = false; + } + + private bool ShouldSerializewinthisweek() + { + return this.winthisweekSpecified; + } + + private void Resetwinthisweek() + { + this.winthisweekSpecified = false; + } + + private bool ShouldSerializelastupdatetime() + { + return this.lastupdatetimeSpecified; + } + + private void Resetlastupdatetime() + { + this.lastupdatetimeSpecified = false; + } + + private bool ShouldSerializetodayspcount() + { + return this.todayspcountSpecified; + } + + private void Resettodayspcount() + { + this.todayspcountSpecified = false; + } + + private bool ShouldSerializebigrewardcount() + { + return this.bigrewardcountSpecified; + } + + private void Resetbigrewardcount() + { + this.bigrewardcountSpecified = false; + } + + private bool ShouldSerializeweekprize() + { + return this.weekprizeSpecified; + } + + private void Resetweekprize() + { + this.weekprizeSpecified = false; + } + + private bool ShouldSerializeelopoint() + { + return this.elopointSpecified; + } + + private void Resetelopoint() + { + this.elopointSpecified = false; + } + + private bool ShouldSerializedaytime() + { + return this.daytimeSpecified; + } + + private void Resetdaytime() + { + this.daytimeSpecified = false; + } + + private bool ShouldSerializedaytimes() + { + return this.daytimesSpecified; + } + + private void Resetdaytimes() + { + this.daytimesSpecified = false; + } + + private bool ShouldSerializecontinuewinnum() + { + return this.continuewinnumSpecified; + } + + private void Resetcontinuewinnum() + { + this.continuewinnumSpecified = false; + } + + private bool ShouldSerializemaxkillnum() + { + return this.maxkillnumSpecified; + } + + private void Resetmaxkillnum() + { + this.maxkillnumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleRecord.cs.meta new file mode 100644 index 00000000..11605b19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2290da8c4c7ec5e47bceaea92e559a0e +timeCreated: 1611403423 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleResult.cs new file mode 100644 index 00000000..06a98dfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleResult.cs @@ -0,0 +1,300 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleResult")] + [Serializable] + public class HeroBattleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "over", DataFormat = DataFormat.TwosComplement)] + public HeroBattleOver over + { + get + { + return this._over ?? HeroBattleOver.HeroBattleOver_Win; + } + set + { + this._over = new HeroBattleOver?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool overSpecified + { + get + { + return this._over != null; + } + set + { + bool flag = value == (this._over == null); + if (flag) + { + this._over = (value ? new HeroBattleOver?(this.over) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "mvpid", DataFormat = DataFormat.TwosComplement)] + public ulong mvpid + { + get + { + return this._mvpid ?? 0UL; + } + set + { + this._mvpid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mvpidSpecified + { + get + { + return this._mvpid != null; + } + set + { + bool flag = value == (this._mvpid == null); + if (flag) + { + this._mvpid = (value ? new ulong?(this.mvpid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "mvpheroid", DataFormat = DataFormat.TwosComplement)] + public uint mvpheroid + { + get + { + return this._mvpheroid ?? 0u; + } + set + { + this._mvpheroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mvpheroidSpecified + { + get + { + return this._mvpheroid != null; + } + set + { + bool flag = value == (this._mvpheroid == null); + if (flag) + { + this._mvpheroid = (value ? new uint?(this.mvpheroid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(5, Name = "dayjoinreward", DataFormat = DataFormat.Default)] + public List dayjoinreward + { + get + { + return this._dayjoinreward; + } + } + + [ProtoMember(6, Name = "winreward", DataFormat = DataFormat.Default)] + public List winreward + { + get + { + return this._winreward; + } + } + + [ProtoMember(7, IsRequired = false, Name = "losemvpid", DataFormat = DataFormat.TwosComplement)] + public ulong losemvpid + { + get + { + return this._losemvpid ?? 0UL; + } + set + { + this._losemvpid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losemvpidSpecified + { + get + { + return this._losemvpid != null; + } + set + { + bool flag = value == (this._losemvpid == null); + if (flag) + { + this._losemvpid = (value ? new ulong?(this.losemvpid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "kda", DataFormat = DataFormat.FixedSize)] + public float kda + { + get + { + return this._kda ?? 0f; + } + set + { + this._kda = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kdaSpecified + { + get + { + return this._kda != null; + } + set + { + bool flag = value == (this._kda == null); + if (flag) + { + this._kda = (value ? new float?(this.kda) : null); + } + } + } + + private HeroBattleOver? _over; + + private ulong? _mvpid; + + private uint? _mvpheroid; + + private uint? _teamid; + + private readonly List _dayjoinreward = new List(); + + private readonly List _winreward = new List(); + + private ulong? _losemvpid; + + private float? _kda; + + private IExtension extensionObject; + + private bool ShouldSerializeover() + { + return this.overSpecified; + } + + private void Resetover() + { + this.overSpecified = false; + } + + private bool ShouldSerializemvpid() + { + return this.mvpidSpecified; + } + + private void Resetmvpid() + { + this.mvpidSpecified = false; + } + + private bool ShouldSerializemvpheroid() + { + return this.mvpheroidSpecified; + } + + private void Resetmvpheroid() + { + this.mvpheroidSpecified = false; + } + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializelosemvpid() + { + return this.losemvpidSpecified; + } + + private void Resetlosemvpid() + { + this.losemvpidSpecified = false; + } + + private bool ShouldSerializekda() + { + return this.kdaSpecified; + } + + private void Resetkda() + { + this.kdaSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleResult.cs.meta new file mode 100644 index 00000000..26b4e191 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eaa28a3760ac9304e97f98156472445b +timeCreated: 1611404780 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleSyncData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleSyncData.cs new file mode 100644 index 00000000..c0dcd6ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleSyncData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleSyncData")] + [Serializable] + public class HeroBattleSyncData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "occupant", DataFormat = DataFormat.TwosComplement)] + public uint occupant + { + get + { + return this._occupant ?? 0u; + } + set + { + this._occupant = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool occupantSpecified + { + get + { + return this._occupant != null; + } + set + { + bool flag = value == (this._occupant == null); + if (flag) + { + this._occupant = (value ? new uint?(this.occupant) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lootTeam", DataFormat = DataFormat.TwosComplement)] + public uint lootTeam + { + get + { + return this._lootTeam ?? 0u; + } + set + { + this._lootTeam = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lootTeamSpecified + { + get + { + return this._lootTeam != null; + } + set + { + bool flag = value == (this._lootTeam == null); + if (flag) + { + this._lootTeam = (value ? new uint?(this.lootTeam) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lootProgress", DataFormat = DataFormat.FixedSize)] + public float lootProgress + { + get + { + return this._lootProgress ?? 0f; + } + set + { + this._lootProgress = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lootProgressSpecified + { + get + { + return this._lootProgress != null; + } + set + { + bool flag = value == (this._lootProgress == null); + if (flag) + { + this._lootProgress = (value ? new float?(this.lootProgress) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isInFight", DataFormat = DataFormat.Default)] + public bool isInFight + { + get + { + return this._isInFight ?? false; + } + set + { + this._isInFight = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isInFightSpecified + { + get + { + return this._isInFight != null; + } + set + { + bool flag = value == (this._isInFight == null); + if (flag) + { + this._isInFight = (value ? new bool?(this.isInFight) : null); + } + } + } + + private uint? _occupant; + + private uint? _lootTeam; + + private float? _lootProgress; + + private bool? _isInFight; + + private IExtension extensionObject; + + private bool ShouldSerializeoccupant() + { + return this.occupantSpecified; + } + + private void Resetoccupant() + { + this.occupantSpecified = false; + } + + private bool ShouldSerializelootTeam() + { + return this.lootTeamSpecified; + } + + private void ResetlootTeam() + { + this.lootTeamSpecified = false; + } + + private bool ShouldSerializelootProgress() + { + return this.lootProgressSpecified; + } + + private void ResetlootProgress() + { + this.lootProgressSpecified = false; + } + + private bool ShouldSerializeisInFight() + { + return this.isInFightSpecified; + } + + private void ResetisInFight() + { + this.isInFightSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleSyncData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleSyncData.cs.meta new file mode 100644 index 00000000..98b53568 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleSyncData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 311d45eee622d724d9db53964fcd1d53 +timeCreated: 1611403541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamData.cs new file mode 100644 index 00000000..60ee65a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleTeamData")] + [Serializable] + public class HeroBattleTeamData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "headcount", DataFormat = DataFormat.TwosComplement)] + public uint headcount + { + get + { + return this._headcount ?? 0u; + } + set + { + this._headcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool headcountSpecified + { + get + { + return this._headcount != null; + } + set + { + bool flag = value == (this._headcount == null); + if (flag) + { + this._headcount = (value ? new uint?(this.headcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + private uint? _teamid; + + private uint? _headcount; + + private uint? _point; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializeheadcount() + { + return this.headcountSpecified; + } + + private void Resetheadcount() + { + this.headcountSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamData.cs.meta new file mode 100644 index 00000000..d625912f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: faafa45fd6f2db94abfe348b45008fcb +timeCreated: 1611404904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs new file mode 100644 index 00000000..5f6b5f61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleTeamMember")] + [Serializable] + public class HeroBattleTeamMember : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "killnum", DataFormat = DataFormat.TwosComplement)] + public uint killnum + { + get + { + return this._killnum ?? 0u; + } + set + { + this._killnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killnumSpecified + { + get + { + return this._killnum != null; + } + set + { + bool flag = value == (this._killnum == null); + if (flag) + { + this._killnum = (value ? new uint?(this.killnum) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "deathnum", DataFormat = DataFormat.TwosComplement)] + public uint deathnum + { + get + { + return this._deathnum ?? 0u; + } + set + { + this._deathnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathnumSpecified + { + get + { + return this._deathnum != null; + } + set + { + bool flag = value == (this._deathnum == null); + if (flag) + { + this._deathnum = (value ? new uint?(this.deathnum) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "assitnum", DataFormat = DataFormat.TwosComplement)] + public uint assitnum + { + get + { + return this._assitnum ?? 0u; + } + set + { + this._assitnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool assitnumSpecified + { + get + { + return this._assitnum != null; + } + set + { + bool flag = value == (this._assitnum == null); + if (flag) + { + this._assitnum = (value ? new uint?(this.assitnum) : null); + } + } + } + + private ulong? _uid; + + private uint? _heroid; + + private string _name; + + private uint? _killnum; + + private uint? _deathnum; + + private uint? _assitnum; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializekillnum() + { + return this.killnumSpecified; + } + + private void Resetkillnum() + { + this.killnumSpecified = false; + } + + private bool ShouldSerializedeathnum() + { + return this.deathnumSpecified; + } + + private void Resetdeathnum() + { + this.deathnumSpecified = false; + } + + private bool ShouldSerializeassitnum() + { + return this.assitnumSpecified; + } + + private void Resetassitnum() + { + this.assitnumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs.meta new file mode 100644 index 00000000..030410ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bebfda6c7309d1540987a600c011b181 +timeCreated: 1611404481 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs new file mode 100644 index 00000000..c03dff00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleTeamMsg")] + [Serializable] + public class HeroBattleTeamMsg : IExtensible + { + [ProtoMember(1, Name = "teamdata", DataFormat = DataFormat.Default)] + public List teamdata + { + get + { + return this._teamdata; + } + } + + private readonly List _teamdata = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs.meta new file mode 100644 index 00000000..3e702aaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4b0c66ca58149b45b623d4c9314d373 +timeCreated: 1611404283 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamRoleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamRoleData.cs new file mode 100644 index 00000000..2a36753b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamRoleData.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleTeamRoleData")] + [Serializable] + public class HeroBattleTeamRoleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "team1", DataFormat = DataFormat.TwosComplement)] + public uint team1 + { + get + { + return this._team1 ?? 0u; + } + set + { + this._team1 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool team1Specified + { + get + { + return this._team1 != null; + } + set + { + bool flag = value == (this._team1 == null); + if (flag) + { + this._team1 = (value ? new uint?(this.team1) : null); + } + } + } + + [ProtoMember(2, Name = "members1", DataFormat = DataFormat.Default)] + public List members1 + { + get + { + return this._members1; + } + } + + [ProtoMember(3, IsRequired = false, Name = "team2", DataFormat = DataFormat.TwosComplement)] + public uint team2 + { + get + { + return this._team2 ?? 0u; + } + set + { + this._team2 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool team2Specified + { + get + { + return this._team2 != null; + } + set + { + bool flag = value == (this._team2 == null); + if (flag) + { + this._team2 = (value ? new uint?(this.team2) : null); + } + } + } + + [ProtoMember(4, Name = "members2", DataFormat = DataFormat.Default)] + public List members2 + { + get + { + return this._members2; + } + } + + private uint? _team1; + + private readonly List _members1 = new List(); + + private uint? _team2; + + private readonly List _members2 = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeteam1() + { + return this.team1Specified; + } + + private void Resetteam1() + { + this.team1Specified = false; + } + + private bool ShouldSerializeteam2() + { + return this.team2Specified; + } + + private void Resetteam2() + { + this.team2Specified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamRoleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamRoleData.cs.meta new file mode 100644 index 00000000..15411c38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTeamRoleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15de1c9b0a3a1ac4a8fc6abaa6ec709e +timeCreated: 1611403265 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTipsData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTipsData.cs new file mode 100644 index 00000000..2b00cf48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTipsData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroBattleTipsData")] + [Serializable] + public class HeroBattleTipsData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTipsData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTipsData.cs.meta new file mode 100644 index 00000000..bf382d36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroBattleTipsData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9565ed0be4bf4b64f8e2c8263a2f032e +timeCreated: 1611404181 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs new file mode 100644 index 00000000..b367ade9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs @@ -0,0 +1,149 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroKillNotifyData")] + [Serializable] + public class HeroKillNotifyData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "killer", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HeroKillUnit killer + { + get + { + return this._killer; + } + set + { + this._killer = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "dead", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HeroKillUnit dead + { + get + { + return this._dead; + } + set + { + this._dead = value; + } + } + + [ProtoMember(3, Name = "assists", DataFormat = DataFormat.Default)] + public List assists + { + get + { + return this._assists; + } + } + + [ProtoMember(4, IsRequired = false, Name = "multiKill", DataFormat = DataFormat.TwosComplement)] + public uint multiKill + { + get + { + return this._multiKill ?? 0u; + } + set + { + this._multiKill = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool multiKillSpecified + { + get + { + return this._multiKill != null; + } + set + { + bool flag = value == (this._multiKill == null); + if (flag) + { + this._multiKill = (value ? new uint?(this.multiKill) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isFirstBlood", DataFormat = DataFormat.Default)] + public bool isFirstBlood + { + get + { + return this._isFirstBlood ?? false; + } + set + { + this._isFirstBlood = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFirstBloodSpecified + { + get + { + return this._isFirstBlood != null; + } + set + { + bool flag = value == (this._isFirstBlood == null); + if (flag) + { + this._isFirstBlood = (value ? new bool?(this.isFirstBlood) : null); + } + } + } + + private HeroKillUnit _killer = null; + + private HeroKillUnit _dead = null; + + private readonly List _assists = new List(); + + private uint? _multiKill; + + private bool? _isFirstBlood; + + private IExtension extensionObject; + + private bool ShouldSerializemultiKill() + { + return this.multiKillSpecified; + } + + private void ResetmultiKill() + { + this.multiKillSpecified = false; + } + + private bool ShouldSerializeisFirstBlood() + { + return this.isFirstBloodSpecified; + } + + private void ResetisFirstBlood() + { + this.isFirstBloodSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs.meta new file mode 100644 index 00000000..1bf06044 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillNotifyData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2321e8eb2303a364fb1cb109b7ded6d7 +timeCreated: 1611403450 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnit.cs new file mode 100644 index 00000000..0001cae9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnit.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroKillUnit")] + [Serializable] + public class HeroKillUnit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public HeroKillUnitType type + { + get + { + return this._type ?? HeroKillUnitType.HeroKillUnit_Hero; + } + set + { + this._type = new HeroKillUnitType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new HeroKillUnitType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "continueCounts", DataFormat = DataFormat.TwosComplement)] + public uint continueCounts + { + get + { + return this._continueCounts ?? 0u; + } + set + { + this._continueCounts = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool continueCountsSpecified + { + get + { + return this._continueCounts != null; + } + set + { + bool flag = value == (this._continueCounts == null); + if (flag) + { + this._continueCounts = (value ? new uint?(this.continueCounts) : null); + } + } + } + + private HeroKillUnitType? _type; + + private uint? _id; + + private uint? _teamid; + + private uint? _continueCounts; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializecontinueCounts() + { + return this.continueCountsSpecified; + } + + private void ResetcontinueCounts() + { + this.continueCountsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnit.cs.meta new file mode 100644 index 00000000..c51890af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0954678476c8f6642814fcd590202416 +timeCreated: 1611403154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnitType.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnitType.cs new file mode 100644 index 00000000..f60bfcb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnitType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroKillUnitType")] + public enum HeroKillUnitType + { + [ProtoEnum(Name = "HeroKillUnit_Hero", Value = 1)] + HeroKillUnit_Hero = 1, + [ProtoEnum(Name = "HeroKillUnit_Enemy", Value = 2)] + HeroKillUnit_Enemy + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnitType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnitType.cs.meta new file mode 100644 index 00000000..30366b24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroKillUnitType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 791d43dd1062ca1408aa465696a385e3 +timeCreated: 1611403983 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/HeroRankData.cs new file mode 100644 index 00000000..bf10171f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroRankData.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HeroRankData")] + [Serializable] + public class HeroRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "eloPoint", DataFormat = DataFormat.TwosComplement)] + public double eloPoint + { + get + { + return this._eloPoint ?? 0.0; + } + set + { + this._eloPoint = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool eloPointSpecified + { + get + { + return this._eloPoint != null; + } + set + { + bool flag = value == (this._eloPoint == null); + if (flag) + { + this._eloPoint = (value ? new double?(this.eloPoint) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "totalNum", DataFormat = DataFormat.TwosComplement)] + public uint totalNum + { + get + { + return this._totalNum ?? 0u; + } + set + { + this._totalNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalNumSpecified + { + get + { + return this._totalNum != null; + } + set + { + bool flag = value == (this._totalNum == null); + if (flag) + { + this._totalNum = (value ? new uint?(this.totalNum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "winNum", DataFormat = DataFormat.TwosComplement)] + public uint winNum + { + get + { + return this._winNum ?? 0u; + } + set + { + this._winNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winNumSpecified + { + get + { + return this._winNum != null; + } + set + { + bool flag = value == (this._winNum == null); + if (flag) + { + this._winNum = (value ? new uint?(this.winNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "continueWinNum", DataFormat = DataFormat.TwosComplement)] + public uint continueWinNum + { + get + { + return this._continueWinNum ?? 0u; + } + set + { + this._continueWinNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool continueWinNumSpecified + { + get + { + return this._continueWinNum != null; + } + set + { + bool flag = value == (this._continueWinNum == null); + if (flag) + { + this._continueWinNum = (value ? new uint?(this.continueWinNum) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "maxKillNum", DataFormat = DataFormat.TwosComplement)] + public uint maxKillNum + { + get + { + return this._maxKillNum ?? 0u; + } + set + { + this._maxKillNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxKillNumSpecified + { + get + { + return this._maxKillNum != null; + } + set + { + bool flag = value == (this._maxKillNum == null); + if (flag) + { + this._maxKillNum = (value ? new uint?(this.maxKillNum) : null); + } + } + } + + private double? _eloPoint; + + private uint? _totalNum; + + private uint? _winNum; + + private uint? _continueWinNum; + + private uint? _maxKillNum; + + private IExtension extensionObject; + + private bool ShouldSerializeeloPoint() + { + return this.eloPointSpecified; + } + + private void ReseteloPoint() + { + this.eloPointSpecified = false; + } + + private bool ShouldSerializetotalNum() + { + return this.totalNumSpecified; + } + + private void ResettotalNum() + { + this.totalNumSpecified = false; + } + + private bool ShouldSerializewinNum() + { + return this.winNumSpecified; + } + + private void ResetwinNum() + { + this.winNumSpecified = false; + } + + private bool ShouldSerializecontinueWinNum() + { + return this.continueWinNumSpecified; + } + + private void ResetcontinueWinNum() + { + this.continueWinNumSpecified = false; + } + + private bool ShouldSerializemaxKillNum() + { + return this.maxKillNumSpecified; + } + + private void ResetmaxKillNum() + { + this.maxKillNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HeroRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HeroRankData.cs.meta new file mode 100644 index 00000000..659db88b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HeroRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02479601aaf7f634da62bfb6b5c80541 +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HintNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/HintNotify.cs new file mode 100644 index 00000000..4bd74029 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HintNotify.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HintNotify")] + [Serializable] + public class HintNotify : IExtensible + { + [ProtoMember(1, Name = "systemid", DataFormat = DataFormat.TwosComplement)] + public List systemid + { + get + { + return this._systemid; + } + } + + [ProtoMember(2, IsRequired = false, Name = "isremove", DataFormat = DataFormat.Default)] + public bool isremove + { + get + { + return this._isremove ?? false; + } + set + { + this._isremove = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isremoveSpecified + { + get + { + return this._isremove != null; + } + set + { + bool flag = value == (this._isremove == null); + if (flag) + { + this._isremove = (value ? new bool?(this.isremove) : null); + } + } + } + + private readonly List _systemid = new List(); + + private bool? _isremove; + + private IExtension extensionObject; + + private bool ShouldSerializeisremove() + { + return this.isremoveSpecified; + } + + private void Resetisremove() + { + this.isremoveSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HintNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HintNotify.cs.meta new file mode 100644 index 00000000..05d9f946 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HintNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f606f0d516688c4abc90f2bbfd9344c +timeCreated: 1611403515 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingReq.cs new file mode 100644 index 00000000..95fed973 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingReq.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HoldWeddingReq")] + [Serializable] + public class HoldWeddingReq : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingReq.cs.meta new file mode 100644 index 00000000..c5475377 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 534bf6c5739b3914bae71ba3d91ea907 +timeCreated: 1611403710 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingRes.cs new file mode 100644 index 00000000..3cc2a36c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HoldWeddingRes")] + [Serializable] + public class HoldWeddingRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "briedf", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeddingBrief briedf + { + get + { + return this._briedf; + } + set + { + this._briedf = value; + } + } + + private ErrorCode? _result; + + private WeddingBrief _briedf = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingRes.cs.meta new file mode 100644 index 00000000..5d1b070e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HoldWeddingRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67831a76d9311154caccb1743103ac27 +timeCreated: 1611403858 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseAnimation.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseAnimation.cs new file mode 100644 index 00000000..537a3b90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseAnimation.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseAnimation")] + [Serializable] + public class HorseAnimation : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public ulong time + { + get + { + return this._time ?? 0UL; + } + set + { + this._time = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new ulong?(this.time) : null); + } + } + } + + private ulong? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseAnimation.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseAnimation.cs.meta new file mode 100644 index 00000000..b422b958 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseAnimation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f15b327300e6827439143d947803adf1 +timeCreated: 1611404837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseAward.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseAward.cs new file mode 100644 index 00000000..1de2e74b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseAward.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseAward")] + [Serializable] + public class HorseAward : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "horse", DataFormat = DataFormat.TwosComplement)] + public uint horse + { + get + { + return this._horse ?? 0u; + } + set + { + this._horse = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool horseSpecified + { + get + { + return this._horse != null; + } + set + { + bool flag = value == (this._horse == null); + if (flag) + { + this._horse = (value ? new uint?(this.horse) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + private uint? _time; + + private uint? _horse; + + private uint? _rank; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializehorse() + { + return this.horseSpecified; + } + + private void Resethorse() + { + this.horseSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseAward.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseAward.cs.meta new file mode 100644 index 00000000..97928871 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03ac15e395c5edb48a7582100c631ce0 +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseAwardAll.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseAwardAll.cs new file mode 100644 index 00000000..fb253292 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseAwardAll.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseAwardAll")] + [Serializable] + public class HorseAwardAll : IExtensible + { + [ProtoMember(1, Name = "award", DataFormat = DataFormat.Default)] + public List award + { + get + { + return this._award; + } + } + + private readonly List _award = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseAwardAll.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseAwardAll.cs.meta new file mode 100644 index 00000000..6f050081 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseAwardAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bdea20f528a0614d940e1b468165d20 +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseCountDownTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseCountDownTime.cs new file mode 100644 index 00000000..7f8753a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseCountDownTime.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseCountDownTime")] + [Serializable] + public class HorseCountDownTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public ulong time + { + get + { + return this._time ?? 0UL; + } + set + { + this._time = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new ulong?(this.time) : null); + } + } + } + + private ulong? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseCountDownTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseCountDownTime.cs.meta new file mode 100644 index 00000000..b90594e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseCountDownTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84a5a2fce7a22704bba0e06016ba0ee7 +timeCreated: 1611404049 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseFinal.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseFinal.cs new file mode 100644 index 00000000..9b9bf238 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseFinal.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseFinal")] + [Serializable] + public class HorseFinal : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "turns", DataFormat = DataFormat.TwosComplement)] + public uint turns + { + get + { + return this._turns ?? 0u; + } + set + { + this._turns = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool turnsSpecified + { + get + { + return this._turns != null; + } + set + { + bool flag = value == (this._turns == null); + if (flag) + { + this._turns = (value ? new uint?(this.turns) : null); + } + } + } + + private uint? _time; + + private uint? _rank; + + private uint? _turns; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeturns() + { + return this.turnsSpecified; + } + + private void Resetturns() + { + this.turnsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseFinal.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseFinal.cs.meta new file mode 100644 index 00000000..7aa1bc7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseFinal.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 144d927e18311d646bebfb3499e53856 +timeCreated: 1611403255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseRank.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseRank.cs new file mode 100644 index 00000000..72ba21d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseRank.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseRank")] + [Serializable] + public class HorseRank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "turns", DataFormat = DataFormat.TwosComplement)] + public uint turns + { + get + { + return this._turns ?? 0u; + } + set + { + this._turns = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool turnsSpecified + { + get + { + return this._turns != null; + } + set + { + bool flag = value == (this._turns == null); + if (flag) + { + this._turns = (value ? new uint?(this.turns) : null); + } + } + } + + private uint? _rank; + + private uint? _turns; + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeturns() + { + return this.turnsSpecified; + } + + private void Resetturns() + { + this.turnsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseRank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseRank.cs.meta new file mode 100644 index 00000000..9a7ea551 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a030025f207f94348917e4617e69d8ba +timeCreated: 1611404248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectArg.cs new file mode 100644 index 00000000..6f7a8751 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseReConnectArg")] + [Serializable] + public class HorseReConnectArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectArg.cs.meta new file mode 100644 index 00000000..a265a78d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 967dd9f410618094c916b1d025f3282c +timeCreated: 1611404185 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectRes.cs new file mode 100644 index 00000000..24248425 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectRes.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseReConnectRes")] + [Serializable] + public class HorseReConnectRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HorseRank rank + { + get + { + return this._rank; + } + set + { + this._rank = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "selfarrive", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HorseFinal selfarrive + { + get + { + return this._selfarrive; + } + set + { + this._selfarrive = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "otherreach", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HorseAnimation otherreach + { + get + { + return this._otherreach; + } + set + { + this._otherreach = value; + } + } + + [ProtoMember(5, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + private ErrorCode? _error; + + private HorseRank _rank = null; + + private HorseFinal _selfarrive = null; + + private HorseAnimation _otherreach = null; + + private readonly List _item = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectRes.cs.meta new file mode 100644 index 00000000..cdb3ef1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseReConnectRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 712c61d627838034aa7f4ed8cb0ee046 +timeCreated: 1611403933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseWaitTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/HorseWaitTime.cs new file mode 100644 index 00000000..23e10c02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseWaitTime.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "HorseWaitTime")] + [Serializable] + public class HorseWaitTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/HorseWaitTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/HorseWaitTime.cs.meta new file mode 100644 index 00000000..f1d9349b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/HorseWaitTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b17cdf15b37ba140bc4c0e8696e1d43 +timeCreated: 1611403166 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemReq.cs new file mode 100644 index 00000000..e2cf8791 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemReq.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBBuyItemReq")] + [Serializable] + public class IBBuyItemReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "goodsid", DataFormat = DataFormat.TwosComplement)] + public uint goodsid + { + get + { + return this._goodsid ?? 0u; + } + set + { + this._goodsid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goodsidSpecified + { + get + { + return this._goodsid != null; + } + set + { + bool flag = value == (this._goodsid == null); + if (flag) + { + this._goodsid = (value ? new uint?(this.goodsid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _goodsid; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializegoodsid() + { + return this.goodsidSpecified; + } + + private void Resetgoodsid() + { + this.goodsidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemReq.cs.meta new file mode 100644 index 00000000..5768232f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78a3f44fa8748d14280055849bc58b01 +timeCreated: 1611403982 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemRes.cs new file mode 100644 index 00000000..49db2c45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBBuyItemRes")] + [Serializable] + public class IBBuyItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemRes.cs.meta new file mode 100644 index 00000000..cee1554e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBBuyItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: addc6f44299d1114fa357985a5513f25 +timeCreated: 1611404336 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs new file mode 100644 index 00000000..f268f9a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBGiftHistAllItem")] + [Serializable] + public class IBGiftHistAllItem : IExtensible + { + [ProtoMember(1, Name = "allitem", DataFormat = DataFormat.Default)] + public List allitem + { + get + { + return this._allitem; + } + } + + private readonly List _allitem = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs.meta new file mode 100644 index 00000000..99dee3fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 589691c16401ce347a007a7293b327fc +timeCreated: 1611403756 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemArg.cs new file mode 100644 index 00000000..c96e1d18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBGiftHistAllItemArg")] + [Serializable] + public class IBGiftHistAllItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemArg.cs.meta new file mode 100644 index 00000000..dee92caa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8a478806d11dc243bed5c85e08d47c8 +timeCreated: 1611404894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemRes.cs new file mode 100644 index 00000000..6e9d6859 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBGiftHistAllItemRes")] + [Serializable] + public class IBGiftHistAllItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "gift", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public IBGiftHistAllItem gift + { + get + { + return this._gift; + } + set + { + this._gift = value; + } + } + + private ErrorCode? _errorcode; + + private IBGiftHistAllItem _gift = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemRes.cs.meta new file mode 100644 index 00000000..46214b2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistAllItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e88002d8abdc84f428731c5c21800f5c +timeCreated: 1611404753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistItem.cs new file mode 100644 index 00000000..d68b142c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistItem.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBGiftHistItem")] + [Serializable] + public class IBGiftHistItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "item", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief item + { + get + { + return this._item; + } + set + { + this._item = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private string _name; + + private ItemBrief _item = null; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistItem.cs.meta new file mode 100644 index 00000000..ab53d330 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftHistItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4527ba32244e0b4a8d08861c56c1917 +timeCreated: 1611404737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs new file mode 100644 index 00000000..f2c0566b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBGiftIcon")] + [Serializable] + public class IBGiftIcon : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "status", DataFormat = DataFormat.Default)] + public bool status + { + get + { + return this._status ?? false; + } + set + { + this._status = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statusSpecified + { + get + { + return this._status != null; + } + set + { + bool flag = value == (this._status == null); + if (flag) + { + this._status = (value ? new bool?(this.status) : null); + } + } + } + + private bool? _status; + + private IExtension extensionObject; + + private bool ShouldSerializestatus() + { + return this.statusSpecified; + } + + private void Resetstatus() + { + this.statusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs.meta new file mode 100644 index 00000000..9cf95d38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e47a4ca7e1451634ab4c0d819b975dcf +timeCreated: 1611404738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs new file mode 100644 index 00000000..31e7e2a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBGiftOrder")] + [Serializable] + public class IBGiftOrder : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "orderid", DataFormat = DataFormat.Default)] + public string orderid + { + get + { + return this._orderid ?? ""; + } + set + { + this._orderid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool orderidSpecified + { + get + { + return this._orderid != null; + } + set + { + bool flag = value == (this._orderid == null); + if (flag) + { + this._orderid = (value ? this.orderid : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private string _orderid; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeorderid() + { + return this.orderidSpecified; + } + + private void Resetorderid() + { + this.orderidSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs.meta new file mode 100644 index 00000000..bf2a82fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f09941787dbcbfc4e9b9d62cc6f7fb6f +timeCreated: 1611404833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs new file mode 100644 index 00000000..be43d9ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBGiftTips")] + [Serializable] + public class IBGiftTips : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "orderid", DataFormat = DataFormat.Default)] + public string orderid + { + get + { + return this._orderid ?? ""; + } + set + { + this._orderid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool orderidSpecified + { + get + { + return this._orderid != null; + } + set + { + bool flag = value == (this._orderid == null); + if (flag) + { + this._orderid = (value ? this.orderid : null); + } + } + } + + private string _orderid; + + private IExtension extensionObject; + + private bool ShouldSerializeorderid() + { + return this.orderidSpecified; + } + + private void Resetorderid() + { + this.orderidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs.meta new file mode 100644 index 00000000..ac0fc8d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftTips.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b37a6be51b9c2c45b23a84e84557be2 +timeCreated: 1611404205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemReq.cs new file mode 100644 index 00000000..48147ccd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemReq.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBQueryItemReq")] + [Serializable] + public class IBQueryItemReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "subtype", DataFormat = DataFormat.TwosComplement)] + public uint subtype + { + get + { + return this._subtype ?? 0u; + } + set + { + this._subtype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool subtypeSpecified + { + get + { + return this._subtype != null; + } + set + { + bool flag = value == (this._subtype == null); + if (flag) + { + this._subtype = (value ? new uint?(this.subtype) : null); + } + } + } + + private uint? _type; + + private uint? _subtype; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializesubtype() + { + return this.subtypeSpecified; + } + + private void Resetsubtype() + { + this.subtypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemReq.cs.meta new file mode 100644 index 00000000..7335305b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cb99db340620c641b34b335e1fd839f +timeCreated: 1611403692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemRes.cs new file mode 100644 index 00000000..bcfee8e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBQueryItemRes")] + [Serializable] + public class IBQueryItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "iteminfo", DataFormat = DataFormat.Default)] + public List iteminfo + { + get + { + return this._iteminfo; + } + } + + [ProtoMember(3, Name = "newproducts", DataFormat = DataFormat.TwosComplement)] + public List newproducts + { + get + { + return this._newproducts; + } + } + + [ProtoMember(4, IsRequired = false, Name = "viptab", DataFormat = DataFormat.Default)] + public bool viptab + { + get + { + return this._viptab ?? false; + } + set + { + this._viptab = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool viptabSpecified + { + get + { + return this._viptab != null; + } + set + { + bool flag = value == (this._viptab == null); + if (flag) + { + this._viptab = (value ? new bool?(this.viptab) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _iteminfo = new List(); + + private readonly List _newproducts = new List(); + + private bool? _viptab; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeviptab() + { + return this.viptabSpecified; + } + + private void Resetviptab() + { + this.viptabSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemRes.cs.meta new file mode 100644 index 00000000..93086c06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBQueryItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59c3a5eefc072dc41a9a8f5651ff76a3 +timeCreated: 1611403786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopAllRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBShopAllRecord.cs new file mode 100644 index 00000000..defaf521 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopAllRecord.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBShopAllRecord")] + [Serializable] + public class IBShopAllRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "nLastTime", DataFormat = DataFormat.TwosComplement)] + public uint nLastTime + { + get + { + return this._nLastTime ?? 0u; + } + set + { + this._nLastTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nLastTimeSpecified + { + get + { + return this._nLastTime != null; + } + set + { + bool flag = value == (this._nLastTime == null); + if (flag) + { + this._nLastTime = (value ? new uint?(this.nLastTime) : null); + } + } + } + + [ProtoMember(2, Name = "allIBShopItems", DataFormat = DataFormat.Default)] + public List allIBShopItems + { + get + { + return this._allIBShopItems; + } + } + + [ProtoMember(3, IsRequired = false, Name = "nVipLv", DataFormat = DataFormat.TwosComplement)] + public uint nVipLv + { + get + { + return this._nVipLv ?? 0u; + } + set + { + this._nVipLv = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nVipLvSpecified + { + get + { + return this._nVipLv != null; + } + set + { + bool flag = value == (this._nVipLv == null); + if (flag) + { + this._nVipLv = (value ? new uint?(this.nVipLv) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "bLimitHot", DataFormat = DataFormat.Default)] + public bool bLimitHot + { + get + { + return this._bLimitHot ?? false; + } + set + { + this._bLimitHot = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bLimitHotSpecified + { + get + { + return this._bLimitHot != null; + } + set + { + bool flag = value == (this._bLimitHot == null); + if (flag) + { + this._bLimitHot = (value ? new bool?(this.bLimitHot) : null); + } + } + } + + [ProtoMember(5, Name = "orders", DataFormat = DataFormat.Default)] + public List orders + { + get + { + return this._orders; + } + } + + [ProtoMember(6, IsRequired = false, Name = "paydegree", DataFormat = DataFormat.TwosComplement)] + public uint paydegree + { + get + { + return this._paydegree ?? 0u; + } + set + { + this._paydegree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paydegreeSpecified + { + get + { + return this._paydegree != null; + } + set + { + bool flag = value == (this._paydegree == null); + if (flag) + { + this._paydegree = (value ? new uint?(this.paydegree) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "daytime", DataFormat = DataFormat.TwosComplement)] + public uint daytime + { + get + { + return this._daytime ?? 0u; + } + set + { + this._daytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daytimeSpecified + { + get + { + return this._daytime != null; + } + set + { + bool flag = value == (this._daytime == null); + if (flag) + { + this._daytime = (value ? new uint?(this.daytime) : null); + } + } + } + + private uint? _nLastTime; + + private readonly List _allIBShopItems = new List(); + + private uint? _nVipLv; + + private bool? _bLimitHot; + + private readonly List _orders = new List(); + + private uint? _paydegree; + + private uint? _daytime; + + private IExtension extensionObject; + + private bool ShouldSerializenLastTime() + { + return this.nLastTimeSpecified; + } + + private void ResetnLastTime() + { + this.nLastTimeSpecified = false; + } + + private bool ShouldSerializenVipLv() + { + return this.nVipLvSpecified; + } + + private void ResetnVipLv() + { + this.nVipLvSpecified = false; + } + + private bool ShouldSerializebLimitHot() + { + return this.bLimitHotSpecified; + } + + private void ResetbLimitHot() + { + this.bLimitHotSpecified = false; + } + + private bool ShouldSerializepaydegree() + { + return this.paydegreeSpecified; + } + + private void Resetpaydegree() + { + this.paydegreeSpecified = false; + } + + private bool ShouldSerializedaytime() + { + return this.daytimeSpecified; + } + + private void Resetdaytime() + { + this.daytimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopAllRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBShopAllRecord.cs.meta new file mode 100644 index 00000000..65798911 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopAllRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1a3c76ab986e7a4e87b4dce2d6c1e48 +timeCreated: 1611404491 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopHasBuy.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBShopHasBuy.cs new file mode 100644 index 00000000..2c2fc9c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopHasBuy.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBShopHasBuy")] + [Serializable] + public class IBShopHasBuy : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "goodsid", DataFormat = DataFormat.TwosComplement)] + public uint goodsid + { + get + { + return this._goodsid ?? 0u; + } + set + { + this._goodsid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goodsidSpecified + { + get + { + return this._goodsid != null; + } + set + { + bool flag = value == (this._goodsid == null); + if (flag) + { + this._goodsid = (value ? new uint?(this.goodsid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _goodsid; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializegoodsid() + { + return this.goodsidSpecified; + } + + private void Resetgoodsid() + { + this.goodsidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopHasBuy.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBShopHasBuy.cs.meta new file mode 100644 index 00000000..ec671edc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopHasBuy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d7feffcbbd224e14c81f7764af57d784 +timeCreated: 1611404638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs new file mode 100644 index 00000000..680a1199 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBShopIcon")] + [Serializable] + public class IBShopIcon : IExtensible + { + [ProtoMember(1, Name = "viptag", DataFormat = DataFormat.TwosComplement)] + public List viptag + { + get + { + return this._viptag; + } + } + + [ProtoMember(2, IsRequired = false, Name = "limittag", DataFormat = DataFormat.Default)] + public bool limittag + { + get + { + return this._limittag ?? false; + } + set + { + this._limittag = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool limittagSpecified + { + get + { + return this._limittag != null; + } + set + { + bool flag = value == (this._limittag == null); + if (flag) + { + this._limittag = (value ? new bool?(this.limittag) : null); + } + } + } + + private readonly List _viptag = new List(); + + private bool? _limittag; + + private IExtension extensionObject; + + private bool ShouldSerializelimittag() + { + return this.limittagSpecified; + } + + private void Resetlimittag() + { + this.limittagSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs.meta new file mode 100644 index 00000000..ee013bed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb900250de1669e4ca4fb5fc7f7495bd +timeCreated: 1611404931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopItemInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBShopItemInfo.cs new file mode 100644 index 00000000..28db91dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopItemInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBShopItemInfo")] + [Serializable] + public class IBShopItemInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "goodsid", DataFormat = DataFormat.TwosComplement)] + public uint goodsid + { + get + { + return this._goodsid ?? 0u; + } + set + { + this._goodsid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goodsidSpecified + { + get + { + return this._goodsid != null; + } + set + { + bool flag = value == (this._goodsid == null); + if (flag) + { + this._goodsid = (value ? new uint?(this.goodsid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "nlimittime", DataFormat = DataFormat.TwosComplement)] + public uint nlimittime + { + get + { + return this._nlimittime ?? 0u; + } + set + { + this._nlimittime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nlimittimeSpecified + { + get + { + return this._nlimittime != null; + } + set + { + bool flag = value == (this._nlimittime == null); + if (flag) + { + this._nlimittime = (value ? new uint?(this.nlimittime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "nlimitcount", DataFormat = DataFormat.TwosComplement)] + public uint nlimitcount + { + get + { + return this._nlimitcount ?? 0u; + } + set + { + this._nlimitcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nlimitcountSpecified + { + get + { + return this._nlimitcount != null; + } + set + { + bool flag = value == (this._nlimitcount == null); + if (flag) + { + this._nlimitcount = (value ? new uint?(this.nlimitcount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "nbuycount", DataFormat = DataFormat.TwosComplement)] + public uint nbuycount + { + get + { + return this._nbuycount ?? 0u; + } + set + { + this._nbuycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nbuycountSpecified + { + get + { + return this._nbuycount != null; + } + set + { + bool flag = value == (this._nbuycount == null); + if (flag) + { + this._nbuycount = (value ? new uint?(this.nbuycount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "gift", DataFormat = DataFormat.Default)] + public bool gift + { + get + { + return this._gift ?? false; + } + set + { + this._gift = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool giftSpecified + { + get + { + return this._gift != null; + } + set + { + bool flag = value == (this._gift == null); + if (flag) + { + this._gift = (value ? new bool?(this.gift) : null); + } + } + } + + private uint? _goodsid; + + private uint? _itemid; + + private uint? _nlimittime; + + private uint? _nlimitcount; + + private uint? _nbuycount; + + private bool? _gift; + + private IExtension extensionObject; + + private bool ShouldSerializegoodsid() + { + return this.goodsidSpecified; + } + + private void Resetgoodsid() + { + this.goodsidSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializenlimittime() + { + return this.nlimittimeSpecified; + } + + private void Resetnlimittime() + { + this.nlimittimeSpecified = false; + } + + private bool ShouldSerializenlimitcount() + { + return this.nlimitcountSpecified; + } + + private void Resetnlimitcount() + { + this.nlimitcountSpecified = false; + } + + private bool ShouldSerializenbuycount() + { + return this.nbuycountSpecified; + } + + private void Resetnbuycount() + { + this.nbuycountSpecified = false; + } + + private bool ShouldSerializegift() + { + return this.giftSpecified; + } + + private void Resetgift() + { + this.giftSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopItemInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBShopItemInfo.cs.meta new file mode 100644 index 00000000..3efe5af5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopItemInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7deeac4f9a4ee5448fda3a9d58a4b5d +timeCreated: 1611404293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopOneRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBShopOneRecord.cs new file mode 100644 index 00000000..5c3a4b7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopOneRecord.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IBShopOneRecord")] + [Serializable] + public class IBShopOneRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "nGoodsID", DataFormat = DataFormat.TwosComplement)] + public uint nGoodsID + { + get + { + return this._nGoodsID ?? 0u; + } + set + { + this._nGoodsID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nGoodsIDSpecified + { + get + { + return this._nGoodsID != null; + } + set + { + bool flag = value == (this._nGoodsID == null); + if (flag) + { + this._nGoodsID = (value ? new uint?(this.nGoodsID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "activity", DataFormat = DataFormat.TwosComplement)] + public uint activity + { + get + { + return this._activity ?? 0u; + } + set + { + this._activity = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activitySpecified + { + get + { + return this._activity != null; + } + set + { + bool flag = value == (this._activity == null); + if (flag) + { + this._activity = (value ? new uint?(this.activity) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "activitytime", DataFormat = DataFormat.TwosComplement)] + public uint activitytime + { + get + { + return this._activitytime ?? 0u; + } + set + { + this._activitytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activitytimeSpecified + { + get + { + return this._activitytime != null; + } + set + { + bool flag = value == (this._activitytime == null); + if (flag) + { + this._activitytime = (value ? new uint?(this.activitytime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "nItemCount", DataFormat = DataFormat.TwosComplement)] + public uint nItemCount + { + get + { + return this._nItemCount ?? 0u; + } + set + { + this._nItemCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nItemCountSpecified + { + get + { + return this._nItemCount != null; + } + set + { + bool flag = value == (this._nItemCount == null); + if (flag) + { + this._nItemCount = (value ? new uint?(this.nItemCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "nUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint nUpdateTime + { + get + { + return this._nUpdateTime ?? 0u; + } + set + { + this._nUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nUpdateTimeSpecified + { + get + { + return this._nUpdateTime != null; + } + set + { + bool flag = value == (this._nUpdateTime == null); + if (flag) + { + this._nUpdateTime = (value ? new uint?(this.nUpdateTime) : null); + } + } + } + + private uint? _nGoodsID; + + private uint? _activity; + + private uint? _activitytime; + + private uint? _nItemCount; + + private uint? _nUpdateTime; + + private IExtension extensionObject; + + private bool ShouldSerializenGoodsID() + { + return this.nGoodsIDSpecified; + } + + private void ResetnGoodsID() + { + this.nGoodsIDSpecified = false; + } + + private bool ShouldSerializeactivity() + { + return this.activitySpecified; + } + + private void Resetactivity() + { + this.activitySpecified = false; + } + + private bool ShouldSerializeactivitytime() + { + return this.activitytimeSpecified; + } + + private void Resetactivitytime() + { + this.activitytimeSpecified = false; + } + + private bool ShouldSerializenItemCount() + { + return this.nItemCountSpecified; + } + + private void ResetnItemCount() + { + this.nItemCountSpecified = false; + } + + private bool ShouldSerializenUpdateTime() + { + return this.nUpdateTimeSpecified; + } + + private void ResetnUpdateTime() + { + this.nUpdateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBShopOneRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IBShopOneRecord.cs.meta new file mode 100644 index 00000000..cff103ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBShopOneRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff4f62955a070ba4abcc158709f3b4c5 +timeCreated: 1611404946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IconWatchListNum.cs b/Client/Assets/Scripts/XMainClient/KKSG/IconWatchListNum.cs new file mode 100644 index 00000000..39240f94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IconWatchListNum.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IconWatchListNum")] + [Serializable] + public class IconWatchListNum : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + private uint? _num; + + private IExtension extensionObject; + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IconWatchListNum.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IconWatchListNum.cs.meta new file mode 100644 index 00000000..74fba535 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IconWatchListNum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ab3cd3fd321a544497107d0cf2be9d7 +timeCreated: 1611403666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs new file mode 100644 index 00000000..1beb9d09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdentifyEmblemArg")] + [Serializable] + public class IdentifyEmblemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + private ulong? _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs.meta new file mode 100644 index 00000000..73b6450a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b61a0054c191294cafa63f3bb647045 +timeCreated: 1611403686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs new file mode 100644 index 00000000..2d952e95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdentifyEmblemRes")] + [Serializable] + public class IdentifyEmblemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs.meta new file mode 100644 index 00000000..38aefedc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdentifyEmblemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15f1d8691601d744ea1ecf59723e67f5 +timeCreated: 1611403266 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipClearChatInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdipClearChatInfo.cs new file mode 100644 index 00000000..be66f2eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipClearChatInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdipClearChatInfo")] + [Serializable] + public class IdipClearChatInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipClearChatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IdipClearChatInfo.cs.meta new file mode 100644 index 00000000..386ebb46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipClearChatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a5ea2e481b1b7746a5f30e3bdbd3ad5 +timeCreated: 1611404091 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs new file mode 100644 index 00000000..99f2d51c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs @@ -0,0 +1,510 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdipData")] + [Serializable] + public class IdipData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mess", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public IdipMessage mess + { + get + { + return this._mess; + } + set + { + this._mess = value; + } + } + + [ProtoMember(2, Name = "punishInfo", DataFormat = DataFormat.Default)] + public List punishInfo + { + get + { + return this._punishInfo; + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastSendAntiAddictionTime", DataFormat = DataFormat.TwosComplement)] + public uint lastSendAntiAddictionTime + { + get + { + return this._lastSendAntiAddictionTime ?? 0u; + } + set + { + this._lastSendAntiAddictionTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastSendAntiAddictionTimeSpecified + { + get + { + return this._lastSendAntiAddictionTime != null; + } + set + { + bool flag = value == (this._lastSendAntiAddictionTime == null); + if (flag) + { + this._lastSendAntiAddictionTime = (value ? new uint?(this.lastSendAntiAddictionTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isSendAntiAddictionRemind", DataFormat = DataFormat.Default)] + public bool isSendAntiAddictionRemind + { + get + { + return this._isSendAntiAddictionRemind ?? false; + } + set + { + this._isSendAntiAddictionRemind = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isSendAntiAddictionRemindSpecified + { + get + { + return this._isSendAntiAddictionRemind != null; + } + set + { + bool flag = value == (this._isSendAntiAddictionRemind == null); + if (flag) + { + this._isSendAntiAddictionRemind = (value ? new bool?(this.isSendAntiAddictionRemind) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "picUrl", DataFormat = DataFormat.Default)] + public string picUrl + { + get + { + return this._picUrl ?? ""; + } + set + { + this._picUrl = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool picUrlSpecified + { + get + { + return this._picUrl != null; + } + set + { + bool flag = value == (this._picUrl == null); + if (flag) + { + this._picUrl = (value ? this.picUrl : null); + } + } + } + + [ProtoMember(6, Name = "notice", DataFormat = DataFormat.Default)] + public List notice + { + get + { + return this._notice; + } + } + + [ProtoMember(7, IsRequired = false, Name = "xinyue_hint", DataFormat = DataFormat.Default)] + public bool xinyue_hint + { + get + { + return this._xinyue_hint ?? false; + } + set + { + this._xinyue_hint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool xinyue_hintSpecified + { + get + { + return this._xinyue_hint != null; + } + set + { + bool flag = value == (this._xinyue_hint == null); + if (flag) + { + this._xinyue_hint = (value ? new bool?(this.xinyue_hint) : null); + } + } + } + + [ProtoMember(8, Name = "hintdata", DataFormat = DataFormat.Default)] + public List hintdata + { + get + { + return this._hintdata; + } + } + + [ProtoMember(9, IsRequired = false, Name = "AntiAddictionRemindCount", DataFormat = DataFormat.TwosComplement)] + public uint AntiAddictionRemindCount + { + get + { + return this._AntiAddictionRemindCount ?? 0u; + } + set + { + this._AntiAddictionRemindCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool AntiAddictionRemindCountSpecified + { + get + { + return this._AntiAddictionRemindCount != null; + } + set + { + bool flag = value == (this._AntiAddictionRemindCount == null); + if (flag) + { + this._AntiAddictionRemindCount = (value ? new uint?(this.AntiAddictionRemindCount) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "AdultType", DataFormat = DataFormat.TwosComplement)] + public int AdultType + { + get + { + return this._AdultType ?? 0; + } + set + { + this._AdultType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool AdultTypeSpecified + { + get + { + return this._AdultType != null; + } + set + { + bool flag = value == (this._AdultType == null); + if (flag) + { + this._AdultType = (value ? new int?(this.AdultType) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "hgFlag", DataFormat = DataFormat.TwosComplement)] + public int hgFlag + { + get + { + return this._hgFlag ?? 0; + } + set + { + this._hgFlag = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hgFlagSpecified + { + get + { + return this._hgFlag != null; + } + set + { + bool flag = value == (this._hgFlag == null); + if (flag) + { + this._hgFlag = (value ? new int?(this.hgFlag) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "hgBanTime", DataFormat = DataFormat.TwosComplement)] + public uint hgBanTime + { + get + { + return this._hgBanTime ?? 0u; + } + set + { + this._hgBanTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hgBanTimeSpecified + { + get + { + return this._hgBanTime != null; + } + set + { + bool flag = value == (this._hgBanTime == null); + if (flag) + { + this._hgBanTime = (value ? new uint?(this.hgBanTime) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "hgGameTime", DataFormat = DataFormat.TwosComplement)] + public uint hgGameTime + { + get + { + return this._hgGameTime ?? 0u; + } + set + { + this._hgGameTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hgGameTimeSpecified + { + get + { + return this._hgGameTime != null; + } + set + { + bool flag = value == (this._hgGameTime == null); + if (flag) + { + this._hgGameTime = (value ? new uint?(this.hgGameTime) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "isGetHg", DataFormat = DataFormat.Default)] + public bool isGetHg + { + get + { + return this._isGetHg ?? false; + } + set + { + this._isGetHg = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isGetHgSpecified + { + get + { + return this._isGetHg != null; + } + set + { + bool flag = value == (this._isGetHg == null); + if (flag) + { + this._isGetHg = (value ? new bool?(this.isGetHg) : null); + } + } + } + + [ProtoMember(15, Name = "resume", DataFormat = DataFormat.Default)] + public List resume + { + get + { + return this._resume; + } + } + + private IdipMessage _mess = null; + + private readonly List _punishInfo = new List(); + + private uint? _lastSendAntiAddictionTime; + + private bool? _isSendAntiAddictionRemind; + + private string _picUrl; + + private readonly List _notice = new List(); + + private bool? _xinyue_hint; + + private readonly List _hintdata = new List(); + + private uint? _AntiAddictionRemindCount; + + private int? _AdultType; + + private int? _hgFlag; + + private uint? _hgBanTime; + + private uint? _hgGameTime; + + private bool? _isGetHg; + + private readonly List _resume = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializelastSendAntiAddictionTime() + { + return this.lastSendAntiAddictionTimeSpecified; + } + + private void ResetlastSendAntiAddictionTime() + { + this.lastSendAntiAddictionTimeSpecified = false; + } + + private bool ShouldSerializeisSendAntiAddictionRemind() + { + return this.isSendAntiAddictionRemindSpecified; + } + + private void ResetisSendAntiAddictionRemind() + { + this.isSendAntiAddictionRemindSpecified = false; + } + + private bool ShouldSerializepicUrl() + { + return this.picUrlSpecified; + } + + private void ResetpicUrl() + { + this.picUrlSpecified = false; + } + + private bool ShouldSerializexinyue_hint() + { + return this.xinyue_hintSpecified; + } + + private void Resetxinyue_hint() + { + this.xinyue_hintSpecified = false; + } + + private bool ShouldSerializeAntiAddictionRemindCount() + { + return this.AntiAddictionRemindCountSpecified; + } + + private void ResetAntiAddictionRemindCount() + { + this.AntiAddictionRemindCountSpecified = false; + } + + private bool ShouldSerializeAdultType() + { + return this.AdultTypeSpecified; + } + + private void ResetAdultType() + { + this.AdultTypeSpecified = false; + } + + private bool ShouldSerializehgFlag() + { + return this.hgFlagSpecified; + } + + private void ResethgFlag() + { + this.hgFlagSpecified = false; + } + + private bool ShouldSerializehgBanTime() + { + return this.hgBanTimeSpecified; + } + + private void ResethgBanTime() + { + this.hgBanTimeSpecified = false; + } + + private bool ShouldSerializehgGameTime() + { + return this.hgGameTimeSpecified; + } + + private void ResethgGameTime() + { + this.hgGameTimeSpecified = false; + } + + private bool ShouldSerializeisGetHg() + { + return this.isGetHgSpecified; + } + + private void ResetisGetHg() + { + this.isGetHgSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs.meta new file mode 100644 index 00000000..e328f18c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f71d463f63f527f458cdb67a1da02f46 +timeCreated: 1611404885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipHintData.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdipHintData.cs new file mode 100644 index 00000000..10e0798f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipHintData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdipHintData")] + [Serializable] + public class IdipHintData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "systemid", DataFormat = DataFormat.TwosComplement)] + public uint systemid + { + get + { + return this._systemid ?? 0u; + } + set + { + this._systemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool systemidSpecified + { + get + { + return this._systemid != null; + } + set + { + bool flag = value == (this._systemid == null); + if (flag) + { + this._systemid = (value ? new uint?(this.systemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ishint", DataFormat = DataFormat.Default)] + public bool ishint + { + get + { + return this._ishint ?? false; + } + set + { + this._ishint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ishintSpecified + { + get + { + return this._ishint != null; + } + set + { + bool flag = value == (this._ishint == null); + if (flag) + { + this._ishint = (value ? new bool?(this.ishint) : null); + } + } + } + + private uint? _systemid; + + private bool? _ishint; + + private IExtension extensionObject; + + private bool ShouldSerializesystemid() + { + return this.systemidSpecified; + } + + private void Resetsystemid() + { + this.systemidSpecified = false; + } + + private bool ShouldSerializeishint() + { + return this.ishintSpecified; + } + + private void Resetishint() + { + this.ishintSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipHintData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IdipHintData.cs.meta new file mode 100644 index 00000000..36705b22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipHintData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b84570d4af584a84bbd596b001df0395 +timeCreated: 1611404404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipMessage.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdipMessage.cs new file mode 100644 index 00000000..a475f650 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipMessage.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdipMessage")] + [Serializable] + public class IdipMessage : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "message", DataFormat = DataFormat.Default)] + public string message + { + get + { + return this._message ?? ""; + } + set + { + this._message = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool messageSpecified + { + get + { + return this._message != null; + } + set + { + bool flag = value == (this._message == null); + if (flag) + { + this._message = (value ? this.message : null); + } + } + } + + private string _message; + + private IExtension extensionObject; + + private bool ShouldSerializemessage() + { + return this.messageSpecified; + } + + private void Resetmessage() + { + this.messageSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipMessage.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IdipMessage.cs.meta new file mode 100644 index 00000000..ee2d4109 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipMessage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c71eefcc625fb984196cde97205c1f1e +timeCreated: 1611404529 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs new file mode 100644 index 00000000..43fca884 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdipPunishData")] + [Serializable] + public class IdipPunishData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "punishTime", DataFormat = DataFormat.TwosComplement)] + public int punishTime + { + get + { + return this._punishTime ?? 0; + } + set + { + this._punishTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool punishTimeSpecified + { + get + { + return this._punishTime != null; + } + set + { + bool flag = value == (this._punishTime == null); + if (flag) + { + this._punishTime = (value ? new int?(this.punishTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "banTime", DataFormat = DataFormat.TwosComplement)] + public int banTime + { + get + { + return this._banTime ?? 0; + } + set + { + this._banTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banTimeSpecified + { + get + { + return this._banTime != null; + } + set + { + bool flag = value == (this._banTime == null); + if (flag) + { + this._banTime = (value ? new int?(this.banTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "reason", DataFormat = DataFormat.Default)] + public string reason + { + get + { + return this._reason ?? ""; + } + set + { + this._reason = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? this.reason : null); + } + } + } + + private int? _type; + + private int? _punishTime; + + private int? _banTime; + + private string _reason; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializepunishTime() + { + return this.punishTimeSpecified; + } + + private void ResetpunishTime() + { + this.punishTimeSpecified = false; + } + + private bool ShouldSerializebanTime() + { + return this.banTimeSpecified; + } + + private void ResetbanTime() + { + this.banTimeSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs.meta new file mode 100644 index 00000000..6eba3646 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9cc4082291a50e645adaa1ab417b2c5e +timeCreated: 1611404233 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishInfo.cs new file mode 100644 index 00000000..36c96646 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IdipPunishInfo")] + [Serializable] + public class IdipPunishInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "endTime", DataFormat = DataFormat.TwosComplement)] + public int endTime + { + get + { + return this._endTime ?? 0; + } + set + { + this._endTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endTimeSpecified + { + get + { + return this._endTime != null; + } + set + { + bool flag = value == (this._endTime == null); + if (flag) + { + this._endTime = (value ? new int?(this.endTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "banTime", DataFormat = DataFormat.TwosComplement)] + public int banTime + { + get + { + return this._banTime ?? 0; + } + set + { + this._banTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banTimeSpecified + { + get + { + return this._banTime != null; + } + set + { + bool flag = value == (this._banTime == null); + if (flag) + { + this._banTime = (value ? new int?(this.banTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public int leftTime + { + get + { + return this._leftTime ?? 0; + } + set + { + this._leftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new int?(this.leftTime) : null); + } + } + } + + private int? _type; + + private int? _endTime; + + private int? _banTime; + + private int? _leftTime; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeendTime() + { + return this.endTimeSpecified; + } + + private void ResetendTime() + { + this.endTimeSpecified = false; + } + + private bool ShouldSerializebanTime() + { + return this.banTimeSpecified; + } + + private void ResetbanTime() + { + this.banTimeSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishInfo.cs.meta new file mode 100644 index 00000000..50aa131c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IdipPunishInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 593b00dd758be124684e9b60ff54360f +timeCreated: 1611403782 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InheritData.cs b/Client/Assets/Scripts/XMainClient/KKSG/InheritData.cs new file mode 100644 index 00000000..d61c7b19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InheritData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InheritData")] + [Serializable] + public class InheritData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lvl", DataFormat = DataFormat.TwosComplement)] + public uint lvl + { + get + { + return this._lvl ?? 0u; + } + set + { + this._lvl = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lvlSpecified + { + get + { + return this._lvl != null; + } + set + { + bool flag = value == (this._lvl == null); + if (flag) + { + this._lvl = (value ? new uint?(this.lvl) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleId", DataFormat = DataFormat.TwosComplement)] + public ulong roleId + { + get + { + return this._roleId ?? 0UL; + } + set + { + this._roleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIdSpecified + { + get + { + return this._roleId != null; + } + set + { + bool flag = value == (this._roleId == null); + if (flag) + { + this._roleId = (value ? new ulong?(this.roleId) : null); + } + } + } + + private string _name; + + private uint? _lvl; + + private uint? _time; + + private ulong? _roleId; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelvl() + { + return this.lvlSpecified; + } + + private void Resetlvl() + { + this.lvlSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeroleId() + { + return this.roleIdSpecified; + } + + private void ResetroleId() + { + this.roleIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InheritData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InheritData.cs.meta new file mode 100644 index 00000000..5b0d6aef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InheritData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c3ecc39d4c3dcf409405662c7df415c +timeCreated: 1611403502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeArg.cs new file mode 100644 index 00000000..c57fc0ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InlayAllJadeArg")] + [Serializable] + public class InlayAllJadeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.Default)] + public string uid + { + get + { + return this._uid ?? ""; + } + set + { + this._uid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? this.uid : null); + } + } + } + + private string _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeArg.cs.meta new file mode 100644 index 00000000..382a2253 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 670fbcddd9c825043b14416ca77ff35f +timeCreated: 1611403856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeRes.cs new file mode 100644 index 00000000..58d67d62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InlayAllJadeRes")] + [Serializable] + public class InlayAllJadeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "jadeSealID", DataFormat = DataFormat.TwosComplement)] + public uint jadeSealID + { + get + { + return this._jadeSealID ?? 0u; + } + set + { + this._jadeSealID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jadeSealIDSpecified + { + get + { + return this._jadeSealID != null; + } + set + { + bool flag = value == (this._jadeSealID == null); + if (flag) + { + this._jadeSealID = (value ? new uint?(this.jadeSealID) : null); + } + } + } + + private ErrorCode? _errorCode; + + private uint? _jadeSealID; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + private bool ShouldSerializejadeSealID() + { + return this.jadeSealIDSpecified; + } + + private void ResetjadeSealID() + { + this.jadeSealIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeRes.cs.meta new file mode 100644 index 00000000..b5c907d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InlayAllJadeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eeebac7a6a7defe41979ab53bcdcb9e9 +timeCreated: 1611404801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InspireArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/InspireArg.cs new file mode 100644 index 00000000..3d61f31b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InspireArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InspireArg")] + [Serializable] + public class InspireArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InspireArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InspireArg.cs.meta new file mode 100644 index 00000000..1899c630 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InspireArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1089f28197de0f41b2e6338b15b52a7 +timeCreated: 1611404700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InspireRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/InspireRes.cs new file mode 100644 index 00000000..d2b4d442 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InspireRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InspireRes")] + [Serializable] + public class InspireRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "cooldowntime", DataFormat = DataFormat.TwosComplement)] + public uint cooldowntime + { + get + { + return this._cooldowntime ?? 0u; + } + set + { + this._cooldowntime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldowntimeSpecified + { + get + { + return this._cooldowntime != null; + } + set + { + bool flag = value == (this._cooldowntime == null); + if (flag) + { + this._cooldowntime = (value ? new uint?(this.cooldowntime) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private uint? _count; + + private uint? _cooldowntime; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializecooldowntime() + { + return this.cooldowntimeSpecified; + } + + private void Resetcooldowntime() + { + this.cooldowntimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InspireRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InspireRes.cs.meta new file mode 100644 index 00000000..c12c5a56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InspireRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e825dcd62f855ed4e8e693a0e55a1035 +timeCreated: 1611404752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IntegralBattle.cs b/Client/Assets/Scripts/XMainClient/KKSG/IntegralBattle.cs new file mode 100644 index 00000000..244303f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IntegralBattle.cs @@ -0,0 +1,492 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IntegralBattle")] + [Serializable] + public class IntegralBattle : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildone", DataFormat = DataFormat.TwosComplement)] + public ulong guildone + { + get + { + return this._guildone ?? 0UL; + } + set + { + this._guildone = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildoneSpecified + { + get + { + return this._guildone != null; + } + set + { + bool flag = value == (this._guildone == null); + if (flag) + { + this._guildone = (value ? new ulong?(this.guildone) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildtwo", DataFormat = DataFormat.TwosComplement)] + public ulong guildtwo + { + get + { + return this._guildtwo ?? 0UL; + } + set + { + this._guildtwo = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildtwoSpecified + { + get + { + return this._guildtwo != null; + } + set + { + bool flag = value == (this._guildtwo == null); + if (flag) + { + this._guildtwo = (value ? new ulong?(this.guildtwo) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isdo", DataFormat = DataFormat.Default)] + public bool isdo + { + get + { + return this._isdo ?? false; + } + set + { + this._isdo = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isdoSpecified + { + get + { + return this._isdo != null; + } + set + { + bool flag = value == (this._isdo == null); + if (flag) + { + this._isdo = (value ? new bool?(this.isdo) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "guildonescore", DataFormat = DataFormat.TwosComplement)] + public uint guildonescore + { + get + { + return this._guildonescore ?? 0u; + } + set + { + this._guildonescore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildonescoreSpecified + { + get + { + return this._guildonescore != null; + } + set + { + bool flag = value == (this._guildonescore == null); + if (flag) + { + this._guildonescore = (value ? new uint?(this.guildonescore) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "guildtwoscore", DataFormat = DataFormat.TwosComplement)] + public uint guildtwoscore + { + get + { + return this._guildtwoscore ?? 0u; + } + set + { + this._guildtwoscore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildtwoscoreSpecified + { + get + { + return this._guildtwoscore != null; + } + set + { + bool flag = value == (this._guildtwoscore == null); + if (flag) + { + this._guildtwoscore = (value ? new uint?(this.guildtwoscore) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "nameone", DataFormat = DataFormat.Default)] + public string nameone + { + get + { + return this._nameone ?? ""; + } + set + { + this._nameone = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameoneSpecified + { + get + { + return this._nameone != null; + } + set + { + bool flag = value == (this._nameone == null); + if (flag) + { + this._nameone = (value ? this.nameone : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "nametwo", DataFormat = DataFormat.Default)] + public string nametwo + { + get + { + return this._nametwo ?? ""; + } + set + { + this._nametwo = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nametwoSpecified + { + get + { + return this._nametwo != null; + } + set + { + bool flag = value == (this._nametwo == null); + if (flag) + { + this._nametwo = (value ? this.nametwo : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "iconone", DataFormat = DataFormat.TwosComplement)] + public uint iconone + { + get + { + return this._iconone ?? 0u; + } + set + { + this._iconone = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool icononeSpecified + { + get + { + return this._iconone != null; + } + set + { + bool flag = value == (this._iconone == null); + if (flag) + { + this._iconone = (value ? new uint?(this.iconone) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "icontwo", DataFormat = DataFormat.TwosComplement)] + public uint icontwo + { + get + { + return this._icontwo ?? 0u; + } + set + { + this._icontwo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool icontwoSpecified + { + get + { + return this._icontwo != null; + } + set + { + bool flag = value == (this._icontwo == null); + if (flag) + { + this._icontwo = (value ? new uint?(this.icontwo) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "wartime", DataFormat = DataFormat.TwosComplement)] + public uint wartime + { + get + { + return this._wartime ?? 0u; + } + set + { + this._wartime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wartimeSpecified + { + get + { + return this._wartime != null; + } + set + { + bool flag = value == (this._wartime == null); + if (flag) + { + this._wartime = (value ? new uint?(this.wartime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public IntegralState state + { + get + { + return this._state ?? IntegralState.integralready; + } + set + { + this._state = new IntegralState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new IntegralState?(this.state) : null); + } + } + } + + private ulong? _guildone; + + private ulong? _guildtwo; + + private bool? _isdo; + + private uint? _guildonescore; + + private uint? _guildtwoscore; + + private string _nameone; + + private string _nametwo; + + private uint? _iconone; + + private uint? _icontwo; + + private uint? _wartime; + + private IntegralState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializeguildone() + { + return this.guildoneSpecified; + } + + private void Resetguildone() + { + this.guildoneSpecified = false; + } + + private bool ShouldSerializeguildtwo() + { + return this.guildtwoSpecified; + } + + private void Resetguildtwo() + { + this.guildtwoSpecified = false; + } + + private bool ShouldSerializeisdo() + { + return this.isdoSpecified; + } + + private void Resetisdo() + { + this.isdoSpecified = false; + } + + private bool ShouldSerializeguildonescore() + { + return this.guildonescoreSpecified; + } + + private void Resetguildonescore() + { + this.guildonescoreSpecified = false; + } + + private bool ShouldSerializeguildtwoscore() + { + return this.guildtwoscoreSpecified; + } + + private void Resetguildtwoscore() + { + this.guildtwoscoreSpecified = false; + } + + private bool ShouldSerializenameone() + { + return this.nameoneSpecified; + } + + private void Resetnameone() + { + this.nameoneSpecified = false; + } + + private bool ShouldSerializenametwo() + { + return this.nametwoSpecified; + } + + private void Resetnametwo() + { + this.nametwoSpecified = false; + } + + private bool ShouldSerializeiconone() + { + return this.icononeSpecified; + } + + private void Reseticonone() + { + this.icononeSpecified = false; + } + + private bool ShouldSerializeicontwo() + { + return this.icontwoSpecified; + } + + private void Reseticontwo() + { + this.icontwoSpecified = false; + } + + private bool ShouldSerializewartime() + { + return this.wartimeSpecified; + } + + private void Resetwartime() + { + this.wartimeSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IntegralBattle.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IntegralBattle.cs.meta new file mode 100644 index 00000000..3e33ba39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IntegralBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fee54a23d94d13240a997d3cea976d3f +timeCreated: 1611404943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IntegralState.cs b/Client/Assets/Scripts/XMainClient/KKSG/IntegralState.cs new file mode 100644 index 00000000..e5c346b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IntegralState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "IntegralState")] + public enum IntegralState + { + [ProtoEnum(Name = "integralready", Value = 1)] + integralready = 1, + [ProtoEnum(Name = "integralenterscene", Value = 2)] + integralenterscene, + [ProtoEnum(Name = "integralwatch", Value = 3)] + integralwatch, + [ProtoEnum(Name = "integralend", Value = 4)] + integralend + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IntegralState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/IntegralState.cs.meta new file mode 100644 index 00000000..e3cb82ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IntegralState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6135d95ea6792c749ac1d3528ca22f9e +timeCreated: 1611403837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Integralunit.cs b/Client/Assets/Scripts/XMainClient/KKSG/Integralunit.cs new file mode 100644 index 00000000..00409b7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Integralunit.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Integralunit")] + [Serializable] + public class Integralunit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildscore", DataFormat = DataFormat.TwosComplement)] + public uint guildscore + { + get + { + return this._guildscore ?? 0u; + } + set + { + this._guildscore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildscoreSpecified + { + get + { + return this._guildscore != null; + } + set + { + bool flag = value == (this._guildscore == null); + if (flag) + { + this._guildscore = (value ? new uint?(this.guildscore) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "guildicon", DataFormat = DataFormat.TwosComplement)] + public uint guildicon + { + get + { + return this._guildicon ?? 0u; + } + set + { + this._guildicon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildiconSpecified + { + get + { + return this._guildicon != null; + } + set + { + bool flag = value == (this._guildicon == null); + if (flag) + { + this._guildicon = (value ? new uint?(this.guildicon) : null); + } + } + } + + private ulong? _guildid; + + private uint? _guildscore; + + private string _name; + + private uint? _guildicon; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildscore() + { + return this.guildscoreSpecified; + } + + private void Resetguildscore() + { + this.guildscoreSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeguildicon() + { + return this.guildiconSpecified; + } + + private void Resetguildicon() + { + this.guildiconSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Integralunit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Integralunit.cs.meta new file mode 100644 index 00000000..ac54aa68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Integralunit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2debb33b4b4e774428ab3101e9b5766c +timeCreated: 1611403508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightAgainPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightAgainPara.cs new file mode 100644 index 00000000..f8d28557 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightAgainPara.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightAgainPara")] + [Serializable] + public class InvFightAgainPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CreateCrossBattleSceneArg data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + private CreateCrossBattleSceneArg _data = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightAgainPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightAgainPara.cs.meta new file mode 100644 index 00000000..4f58be9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightAgainPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51075bb4b4dce134eada465fd1886d03 +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs new file mode 100644 index 00000000..8fb52847 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightArg")] + [Serializable] + public class InvFightArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)] + public InvFightReqType reqtype + { + get + { + return this._reqtype ?? InvFightReqType.IFRT_INV_ONE; + } + set + { + this._reqtype = new InvFightReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqtypeSpecified + { + get + { + return this._reqtype != null; + } + set + { + bool flag = value == (this._reqtype == null); + if (flag) + { + this._reqtype = (value ? new InvFightReqType?(this.reqtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "invid", DataFormat = DataFormat.TwosComplement)] + public ulong invid + { + get + { + return this._invid ?? 0UL; + } + set + { + this._invid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invidSpecified + { + get + { + return this._invid != null; + } + set + { + bool flag = value == (this._invid == null); + if (flag) + { + this._invid = (value ? new ulong?(this.invid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "iscross", DataFormat = DataFormat.Default)] + public bool iscross + { + get + { + return this._iscross ?? false; + } + set + { + this._iscross = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscrossSpecified + { + get + { + return this._iscross != null; + } + set + { + bool flag = value == (this._iscross == null); + if (flag) + { + this._iscross = (value ? new bool?(this.iscross) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "account", DataFormat = DataFormat.Default)] + public string account + { + get + { + return this._account ?? ""; + } + set + { + this._account = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountSpecified + { + get + { + return this._account != null; + } + set + { + bool flag = value == (this._account == null); + if (flag) + { + this._account = (value ? this.account : null); + } + } + } + + private InvFightReqType? _reqtype; + + private ulong? _roleid; + + private ulong? _invid; + + private bool? _iscross; + + private string _account; + + private IExtension extensionObject; + + private bool ShouldSerializereqtype() + { + return this.reqtypeSpecified; + } + + private void Resetreqtype() + { + this.reqtypeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeinvid() + { + return this.invidSpecified; + } + + private void Resetinvid() + { + this.invidSpecified = false; + } + + private bool ShouldSerializeiscross() + { + return this.iscrossSpecified; + } + + private void Resetiscross() + { + this.iscrossSpecified = false; + } + + private bool ShouldSerializeaccount() + { + return this.accountSpecified; + } + + private void Resetaccount() + { + this.accountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs.meta new file mode 100644 index 00000000..11b89b1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20d885f12eea6d048b5b7103d95ead16 +timeCreated: 1611403409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightBattleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightBattleResult.cs new file mode 100644 index 00000000..ec32ee89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightBattleResult.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightBattleResult")] + [Serializable] + public class InvFightBattleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "resulttype", DataFormat = DataFormat.TwosComplement)] + public PkResultType resulttype + { + get + { + return this._resulttype ?? PkResultType.PkResult_Win; + } + set + { + this._resulttype = new PkResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resulttypeSpecified + { + get + { + return this._resulttype != null; + } + set + { + bool flag = value == (this._resulttype == null); + if (flag) + { + this._resulttype = (value ? new PkResultType?(this.resulttype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "opname", DataFormat = DataFormat.Default)] + public string opname + { + get + { + return this._opname ?? ""; + } + set + { + this._opname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opnameSpecified + { + get + { + return this._opname != null; + } + set + { + bool flag = value == (this._opname == null); + if (flag) + { + this._opname = (value ? this.opname : null); + } + } + } + + private PkResultType? _resulttype; + + private string _opname; + + private IExtension extensionObject; + + private bool ShouldSerializeresulttype() + { + return this.resulttypeSpecified; + } + + private void Resetresulttype() + { + this.resulttypeSpecified = false; + } + + private bool ShouldSerializeopname() + { + return this.opnameSpecified; + } + + private void Resetopname() + { + this.opnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightBattleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightBattleResult.cs.meta new file mode 100644 index 00000000..555794d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightBattleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da7ce23965f547e459d3de1f98f9da33 +timeCreated: 1611404648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightBefESpara.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightBefESpara.cs new file mode 100644 index 00000000..0ae22772 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightBefESpara.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightBefESpara")] + [Serializable] + public class InvFightBefESpara : IExtensible + { + [ProtoMember(1, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + private readonly List _roles = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightBefESpara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightBefESpara.cs.meta new file mode 100644 index 00000000..640accba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightBefESpara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 149db444ac89fa548b5d6cd9e6c351bf +timeCreated: 1611403259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightNotifyType.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightNotifyType.cs new file mode 100644 index 00000000..5a6427e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightNotifyType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightNotifyType")] + public enum InvFightNotifyType + { + [ProtoEnum(Name = "IFNT_REFUSE_ME", Value = 1)] + IFNT_REFUSE_ME = 1, + [ProtoEnum(Name = "IFNT_INVITE_ME", Value = 2)] + IFNT_INVITE_ME + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightNotifyType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightNotifyType.cs.meta new file mode 100644 index 00000000..56cfc543 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightNotifyType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83e6d9a46746de847ae7f45705b99898 +timeCreated: 1611404046 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightPara.cs new file mode 100644 index 00000000..8e6640bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightPara.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightPara")] + [Serializable] + public class InvFightPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ntftype", DataFormat = DataFormat.TwosComplement)] + public InvFightNotifyType ntftype + { + get + { + return this._ntftype ?? InvFightNotifyType.IFNT_REFUSE_ME; + } + set + { + this._ntftype = new InvFightNotifyType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ntftypeSpecified + { + get + { + return this._ntftype != null; + } + set + { + bool flag = value == (this._ntftype == null); + if (flag) + { + this._ntftype = (value ? new InvFightNotifyType?(this.ntftype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private InvFightNotifyType? _ntftype; + + private string _name; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializentftype() + { + return this.ntftypeSpecified; + } + + private void Resetntftype() + { + this.ntftypeSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightPara.cs.meta new file mode 100644 index 00000000..501d3221 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 362fb2529467f654ba0cc1211ec29679 +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightReqType.cs new file mode 100644 index 00000000..11c7a0ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightReqType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightReqType")] + public enum InvFightReqType + { + [ProtoEnum(Name = "IFRT_INV_ONE", Value = 1)] + IFRT_INV_ONE = 1, + [ProtoEnum(Name = "IFRT_REFUSH_ONE", Value = 2)] + IFRT_REFUSH_ONE, + [ProtoEnum(Name = "IFRT_IGNORE_ALL", Value = 3)] + IFRT_IGNORE_ALL, + [ProtoEnum(Name = "IFRT_REQ_LIST", Value = 4)] + IFRT_REQ_LIST, + [ProtoEnum(Name = "IFRT_ACCEPT_ONE", Value = 5)] + IFRT_ACCEPT_ONE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightReqType.cs.meta new file mode 100644 index 00000000..e85d2579 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa5cd2ca794f2aa4e8bf5c0dfadc7a5b +timeCreated: 1611404902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightRes.cs new file mode 100644 index 00000000..0b487544 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightRes")] + [Serializable] + public class InvFightRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "roles", DataFormat = DataFormat.Default)] + public List roles + { + get + { + return this._roles; + } + } + + [ProtoMember(3, IsRequired = false, Name = "isPlatFriendOnline", DataFormat = DataFormat.Default)] + public bool isPlatFriendOnline + { + get + { + return this._isPlatFriendOnline ?? false; + } + set + { + this._isPlatFriendOnline = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isPlatFriendOnlineSpecified + { + get + { + return this._isPlatFriendOnline != null; + } + set + { + bool flag = value == (this._isPlatFriendOnline == null); + if (flag) + { + this._isPlatFriendOnline = (value ? new bool?(this.isPlatFriendOnline) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _roles = new List(); + + private bool? _isPlatFriendOnline; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeisPlatFriendOnline() + { + return this.isPlatFriendOnlineSpecified; + } + + private void ResetisPlatFriendOnline() + { + this.isPlatFriendOnlineSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightRes.cs.meta new file mode 100644 index 00000000..e0a8c97c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7894593f48b48d048b3f18f35cd6ece8 +timeCreated: 1611403981 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightRoleBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvFightRoleBrief.cs new file mode 100644 index 00000000..47e09700 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightRoleBrief.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvFightRoleBrief")] + [Serializable] + public class InvFightRoleBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "invID", DataFormat = DataFormat.TwosComplement)] + public ulong invID + { + get + { + return this._invID ?? 0UL; + } + set + { + this._invID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invIDSpecified + { + get + { + return this._invID != null; + } + set + { + bool flag = value == (this._invID == null); + if (flag) + { + this._invID = (value ? new ulong?(this.invID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "title", DataFormat = DataFormat.TwosComplement)] + public uint title + { + get + { + return this._title ?? 0u; + } + set + { + this._title = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? new uint?(this.title) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "ctime", DataFormat = DataFormat.TwosComplement)] + public uint ctime + { + get + { + return this._ctime ?? 0u; + } + set + { + this._ctime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ctimeSpecified + { + get + { + return this._ctime != null; + } + set + { + bool flag = value == (this._ctime == null); + if (flag) + { + this._ctime = (value ? new uint?(this.ctime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "isplatfriend", DataFormat = DataFormat.Default)] + public bool isplatfriend + { + get + { + return this._isplatfriend ?? false; + } + set + { + this._isplatfriend = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isplatfriendSpecified + { + get + { + return this._isplatfriend != null; + } + set + { + bool flag = value == (this._isplatfriend == null); + if (flag) + { + this._isplatfriend = (value ? new bool?(this.isplatfriend) : null); + } + } + } + + private ulong? _invID; + + private uint? _title; + + private string _name; + + private uint? _level; + + private uint? _profession; + + private uint? _ctime; + + private bool? _isplatfriend; + + private IExtension extensionObject; + + private bool ShouldSerializeinvID() + { + return this.invIDSpecified; + } + + private void ResetinvID() + { + this.invIDSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializectime() + { + return this.ctimeSpecified; + } + + private void Resetctime() + { + this.ctimeSpecified = false; + } + + private bool ShouldSerializeisplatfriend() + { + return this.isplatfriendSpecified; + } + + private void Resetisplatfriend() + { + this.isplatfriendSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvFightRoleBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvFightRoleBrief.cs.meta new file mode 100644 index 00000000..2c2ed206 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvFightRoleBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d89b46d40ba8c574a94783076d5a00ad +timeCreated: 1611404640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvHReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvHReqType.cs new file mode 100644 index 00000000..6af2b354 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvHReqType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvHReqType")] + public enum InvHReqType + { + [ProtoEnum(Name = "INVH_REQ_UNF_LIST", Value = 1)] + INVH_REQ_UNF_LIST = 1, + [ProtoEnum(Name = "INVH_UNF_IGNORE_ALL", Value = 2)] + INVH_UNF_IGNORE_ALL, + [ProtoEnum(Name = "INVH_REFUSE_FORNOW", Value = 3)] + INVH_REFUSE_FORNOW + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvHReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvHReqType.cs.meta new file mode 100644 index 00000000..84513539 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvHReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e392aa2a6d804bd478711a09235dc3cc +timeCreated: 1611404734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryArg.cs new file mode 100644 index 00000000..61f7bfb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvHistoryArg")] + [Serializable] + public class InvHistoryArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public InvHReqType type + { + get + { + return this._type ?? InvHReqType.INVH_REQ_UNF_LIST; + } + set + { + this._type = new InvHReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new InvHReqType?(this.type) : null); + } + } + } + + private InvHReqType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryArg.cs.meta new file mode 100644 index 00000000..3d63f878 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88c3bbcd45161194da7f7dff0c9396c5 +timeCreated: 1611404086 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryRes.cs new file mode 100644 index 00000000..fe842090 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvHistoryRes")] + [Serializable] + public class InvHistoryRes : IExtensible + { + [ProtoMember(1, Name = "invUnfH", DataFormat = DataFormat.Default)] + public List invUnfH + { + get + { + return this._invUnfH; + } + } + + [ProtoMember(2, IsRequired = false, Name = "ret", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ret + { + get + { + return this._ret ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ret = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool retSpecified + { + get + { + return this._ret != null; + } + set + { + bool flag = value == (this._ret == null); + if (flag) + { + this._ret = (value ? new ErrorCode?(this.ret) : null); + } + } + } + + private readonly List _invUnfH = new List(); + + private ErrorCode? _ret; + + private IExtension extensionObject; + + private bool ShouldSerializeret() + { + return this.retSpecified; + } + + private void Resetret() + { + this.retSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryRes.cs.meta new file mode 100644 index 00000000..1acc0f03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvHistoryRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb734d8c2975bdb42a7b51cf153e9e6e +timeCreated: 1611404931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvUnfState.cs b/Client/Assets/Scripts/XMainClient/KKSG/InvUnfState.cs new file mode 100644 index 00000000..38dc4d11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvUnfState.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InvUnfState")] + [Serializable] + public class InvUnfState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "inviteID", DataFormat = DataFormat.TwosComplement)] + public int inviteID + { + get + { + return this._inviteID ?? 0; + } + set + { + this._inviteID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inviteIDSpecified + { + get + { + return this._inviteID != null; + } + set + { + bool flag = value == (this._inviteID == null); + if (flag) + { + this._inviteID = (value ? new int?(this.inviteID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isdeleted", DataFormat = DataFormat.Default)] + public bool isdeleted + { + get + { + return this._isdeleted ?? false; + } + set + { + this._isdeleted = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isdeletedSpecified + { + get + { + return this._isdeleted != null; + } + set + { + bool flag = value == (this._isdeleted == null); + if (flag) + { + this._isdeleted = (value ? new bool?(this.isdeleted) : null); + } + } + } + + private int? _inviteID; + + private bool? _isdeleted; + + private IExtension extensionObject; + + private bool ShouldSerializeinviteID() + { + return this.inviteIDSpecified; + } + + private void ResetinviteID() + { + this.inviteIDSpecified = false; + } + + private bool ShouldSerializeisdeleted() + { + return this.isdeletedSpecified; + } + + private void Resetisdeleted() + { + this.isdeletedSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InvUnfState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InvUnfState.cs.meta new file mode 100644 index 00000000..c99b5448 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InvUnfState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1eab9739a07fd8644845a333360800da +timeCreated: 1611403365 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InviteRufuse.cs b/Client/Assets/Scripts/XMainClient/KKSG/InviteRufuse.cs new file mode 100644 index 00000000..46f5580f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InviteRufuse.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "InviteRufuse")] + [Serializable] + public class InviteRufuse : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/InviteRufuse.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/InviteRufuse.cs.meta new file mode 100644 index 00000000..ad2477de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/InviteRufuse.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a6b6bc3fe1b7bb438aae25e007cb719 +timeCreated: 1611403989 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Item.cs b/Client/Assets/Scripts/XMainClient/KKSG/Item.cs new file mode 100644 index 00000000..dfbd3be3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Item.cs @@ -0,0 +1,741 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Item")] + [Serializable] + public class Item : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ItemType", DataFormat = DataFormat.TwosComplement)] + public uint ItemType + { + get + { + return this._ItemType ?? 0u; + } + set + { + this._ItemType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ItemTypeSpecified + { + get + { + return this._ItemType != null; + } + set + { + bool flag = value == (this._ItemType == null); + if (flag) + { + this._ItemType = (value ? new uint?(this.ItemType) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ItemID", DataFormat = DataFormat.TwosComplement)] + public uint ItemID + { + get + { + return this._ItemID ?? 0u; + } + set + { + this._ItemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ItemIDSpecified + { + get + { + return this._ItemID != null; + } + set + { + bool flag = value == (this._ItemID == null); + if (flag) + { + this._ItemID = (value ? new uint?(this.ItemID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "ItemCount", DataFormat = DataFormat.TwosComplement)] + public uint ItemCount + { + get + { + return this._ItemCount ?? 0u; + } + set + { + this._ItemCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ItemCountSpecified + { + get + { + return this._ItemCount != null; + } + set + { + bool flag = value == (this._ItemCount == null); + if (flag) + { + this._ItemCount = (value ? new uint?(this.ItemCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isbind", DataFormat = DataFormat.Default)] + public bool isbind + { + get + { + return this._isbind ?? false; + } + set + { + this._isbind = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbindSpecified + { + get + { + return this._isbind != null; + } + set + { + bool flag = value == (this._isbind == null); + if (flag) + { + this._isbind = (value ? new bool?(this.isbind) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public uint cooldown + { + get + { + return this._cooldown ?? 0u; + } + set + { + this._cooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldownSpecified + { + get + { + return this._cooldown != null; + } + set + { + bool flag = value == (this._cooldown == null); + if (flag) + { + this._cooldown = (value ? new uint?(this.cooldown) : null); + } + } + } + + [ProtoMember(7, Name = "AttrID", DataFormat = DataFormat.TwosComplement)] + public List AttrID + { + get + { + return this._AttrID; + } + } + + [ProtoMember(8, Name = "AttrValue", DataFormat = DataFormat.TwosComplement)] + public List AttrValue + { + get + { + return this._AttrValue; + } + } + + [ProtoMember(9, Name = "EnhanceAttrId", DataFormat = DataFormat.TwosComplement)] + public List EnhanceAttrId + { + get + { + return this._EnhanceAttrId; + } + } + + [ProtoMember(10, Name = "EnhanceAttrValue", DataFormat = DataFormat.TwosComplement)] + public List EnhanceAttrValue + { + get + { + return this._EnhanceAttrValue; + } + } + + [ProtoMember(11, IsRequired = false, Name = "EnhanceLevel", DataFormat = DataFormat.TwosComplement)] + public uint EnhanceLevel + { + get + { + return this._EnhanceLevel ?? 0u; + } + set + { + this._EnhanceLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EnhanceLevelSpecified + { + get + { + return this._EnhanceLevel != null; + } + set + { + bool flag = value == (this._EnhanceLevel == null); + if (flag) + { + this._EnhanceLevel = (value ? new uint?(this.EnhanceLevel) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "EnhanceCount", DataFormat = DataFormat.TwosComplement)] + public uint EnhanceCount + { + get + { + return this._EnhanceCount ?? 0u; + } + set + { + this._EnhanceCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EnhanceCountSpecified + { + get + { + return this._EnhanceCount != null; + } + set + { + bool flag = value == (this._EnhanceCount == null); + if (flag) + { + this._EnhanceCount = (value ? new uint?(this.EnhanceCount) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "ItemJade", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemJade ItemJade + { + get + { + return this._ItemJade; + } + set + { + this._ItemJade = value; + } + } + + [ProtoMember(14, IsRequired = false, Name = "FashionLevel", DataFormat = DataFormat.TwosComplement)] + public uint FashionLevel + { + get + { + return this._FashionLevel ?? 0u; + } + set + { + this._FashionLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FashionLevelSpecified + { + get + { + return this._FashionLevel != null; + } + set + { + bool flag = value == (this._FashionLevel == null); + if (flag) + { + this._FashionLevel = (value ? new uint?(this.FashionLevel) : null); + } + } + } + + [ProtoMember(15, Name = "circleDrawDatas", DataFormat = DataFormat.Default)] + public List circleDrawDatas + { + get + { + return this._circleDrawDatas; + } + } + + [ProtoMember(16, IsRequired = false, Name = "EmblemThirdSlot", DataFormat = DataFormat.TwosComplement)] + public uint EmblemThirdSlot + { + get + { + return this._EmblemThirdSlot ?? 0u; + } + set + { + this._EmblemThirdSlot = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EmblemThirdSlotSpecified + { + get + { + return this._EmblemThirdSlot != null; + } + set + { + bool flag = value == (this._EmblemThirdSlot == null); + if (flag) + { + this._EmblemThirdSlot = (value ? new uint?(this.EmblemThirdSlot) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "enchant", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemEnchant enchant + { + get + { + return this._enchant; + } + set + { + this._enchant = value; + } + } + + [ProtoMember(18, IsRequired = false, Name = "randAttr", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemRandAttr randAttr + { + get + { + return this._randAttr; + } + set + { + this._randAttr = value; + } + } + + [ProtoMember(19, IsRequired = false, Name = "forge", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemForge forge + { + get + { + return this._forge; + } + set + { + this._forge = value; + } + } + + [ProtoMember(20, Name = "effects", DataFormat = DataFormat.Default)] + public List effects + { + get + { + return this._effects; + } + } + + [ProtoMember(21, IsRequired = false, Name = "ebslottype", DataFormat = DataFormat.TwosComplement)] + public EmblemSlotType ebslottype + { + get + { + return this._ebslottype ?? EmblemSlotType.EmblemSlotType_None; + } + set + { + this._ebslottype = new EmblemSlotType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ebslottypeSpecified + { + get + { + return this._ebslottype != null; + } + set + { + bool flag = value == (this._ebslottype == null); + if (flag) + { + this._ebslottype = (value ? new EmblemSlotType?(this.ebslottype) : null); + } + } + } + + [ProtoMember(22, IsRequired = false, Name = "smeltCount", DataFormat = DataFormat.TwosComplement)] + public uint smeltCount + { + get + { + return this._smeltCount ?? 0u; + } + set + { + this._smeltCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool smeltCountSpecified + { + get + { + return this._smeltCount != null; + } + set + { + bool flag = value == (this._smeltCount == null); + if (flag) + { + this._smeltCount = (value ? new uint?(this.smeltCount) : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "expirationTime", DataFormat = DataFormat.TwosComplement)] + public uint expirationTime + { + get + { + return this._expirationTime ?? 0u; + } + set + { + this._expirationTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expirationTimeSpecified + { + get + { + return this._expirationTime != null; + } + set + { + bool flag = value == (this._expirationTime == null); + if (flag) + { + this._expirationTime = (value ? new uint?(this.expirationTime) : null); + } + } + } + + [ProtoMember(24, IsRequired = false, Name = "fuse", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemFuse fuse + { + get + { + return this._fuse; + } + set + { + this._fuse = value; + } + } + + [ProtoMember(25, IsRequired = false, Name = "artifact", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemArtifact artifact + { + get + { + return this._artifact; + } + set + { + this._artifact = value; + } + } + + private ulong? _uid; + + private uint? _ItemType; + + private uint? _ItemID; + + private uint? _ItemCount; + + private bool? _isbind; + + private uint? _cooldown; + + private readonly List _AttrID = new List(); + + private readonly List _AttrValue = new List(); + + private readonly List _EnhanceAttrId = new List(); + + private readonly List _EnhanceAttrValue = new List(); + + private uint? _EnhanceLevel; + + private uint? _EnhanceCount; + + private ItemJade _ItemJade = null; + + private uint? _FashionLevel; + + private readonly List _circleDrawDatas = new List(); + + private uint? _EmblemThirdSlot; + + private ItemEnchant _enchant = null; + + private ItemRandAttr _randAttr = null; + + private ItemForge _forge = null; + + private readonly List _effects = new List(); + + private EmblemSlotType? _ebslottype; + + private uint? _smeltCount; + + private uint? _expirationTime; + + private ItemFuse _fuse = null; + + private ItemArtifact _artifact = null; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeItemType() + { + return this.ItemTypeSpecified; + } + + private void ResetItemType() + { + this.ItemTypeSpecified = false; + } + + private bool ShouldSerializeItemID() + { + return this.ItemIDSpecified; + } + + private void ResetItemID() + { + this.ItemIDSpecified = false; + } + + private bool ShouldSerializeItemCount() + { + return this.ItemCountSpecified; + } + + private void ResetItemCount() + { + this.ItemCountSpecified = false; + } + + private bool ShouldSerializeisbind() + { + return this.isbindSpecified; + } + + private void Resetisbind() + { + this.isbindSpecified = false; + } + + private bool ShouldSerializecooldown() + { + return this.cooldownSpecified; + } + + private void Resetcooldown() + { + this.cooldownSpecified = false; + } + + private bool ShouldSerializeEnhanceLevel() + { + return this.EnhanceLevelSpecified; + } + + private void ResetEnhanceLevel() + { + this.EnhanceLevelSpecified = false; + } + + private bool ShouldSerializeEnhanceCount() + { + return this.EnhanceCountSpecified; + } + + private void ResetEnhanceCount() + { + this.EnhanceCountSpecified = false; + } + + private bool ShouldSerializeFashionLevel() + { + return this.FashionLevelSpecified; + } + + private void ResetFashionLevel() + { + this.FashionLevelSpecified = false; + } + + private bool ShouldSerializeEmblemThirdSlot() + { + return this.EmblemThirdSlotSpecified; + } + + private void ResetEmblemThirdSlot() + { + this.EmblemThirdSlotSpecified = false; + } + + private bool ShouldSerializeebslottype() + { + return this.ebslottypeSpecified; + } + + private void Resetebslottype() + { + this.ebslottypeSpecified = false; + } + + private bool ShouldSerializesmeltCount() + { + return this.smeltCountSpecified; + } + + private void ResetsmeltCount() + { + this.smeltCountSpecified = false; + } + + private bool ShouldSerializeexpirationTime() + { + return this.expirationTimeSpecified; + } + + private void ResetexpirationTime() + { + this.expirationTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Item.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Item.cs.meta new file mode 100644 index 00000000..944734c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Item.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17cceade24b46cb4abab9f68075286af +timeCreated: 1611403294 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemArtifact.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemArtifact.cs new file mode 100644 index 00000000..b21d8170 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemArtifact.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemArtifact")] + [Serializable] + public class ItemArtifact : IExtensible + { + [ProtoMember(1, Name = "unReplacedAttr", DataFormat = DataFormat.Default)] + public List unReplacedAttr + { + get + { + return this._unReplacedAttr; + } + } + + private readonly List _unReplacedAttr = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemArtifact.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemArtifact.cs.meta new file mode 100644 index 00000000..645115c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemArtifact.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a86b5ece1fcc93f469bb753a47235f7e +timeCreated: 1611404295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemBrief.cs new file mode 100644 index 00000000..a00d59ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemBrief.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemBrief")] + [Serializable] + public class ItemBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public uint itemID + { + get + { + return this._itemID ?? 0u; + } + set + { + this._itemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new uint?(this.itemID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemCount", DataFormat = DataFormat.TwosComplement)] + public uint itemCount + { + get + { + return this._itemCount ?? 0u; + } + set + { + this._itemCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemCountSpecified + { + get + { + return this._itemCount != null; + } + set + { + bool flag = value == (this._itemCount == null); + if (flag) + { + this._itemCount = (value ? new uint?(this.itemCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isbind", DataFormat = DataFormat.Default)] + public bool isbind + { + get + { + return this._isbind ?? false; + } + set + { + this._isbind = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbindSpecified + { + get + { + return this._isbind != null; + } + set + { + bool flag = value == (this._isbind == null); + if (flag) + { + this._isbind = (value ? new bool?(this.isbind) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public uint cooldown + { + get + { + return this._cooldown ?? 0u; + } + set + { + this._cooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldownSpecified + { + get + { + return this._cooldown != null; + } + set + { + bool flag = value == (this._cooldown == null); + if (flag) + { + this._cooldown = (value ? new uint?(this.cooldown) : null); + } + } + } + + private uint? _itemID; + + private uint? _itemCount; + + private bool? _isbind; + + private uint? _cooldown; + + private IExtension extensionObject; + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializeitemCount() + { + return this.itemCountSpecified; + } + + private void ResetitemCount() + { + this.itemCountSpecified = false; + } + + private bool ShouldSerializeisbind() + { + return this.isbindSpecified; + } + + private void Resetisbind() + { + this.isbindSpecified = false; + } + + private bool ShouldSerializecooldown() + { + return this.cooldownSpecified; + } + + private void Resetcooldown() + { + this.cooldownSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemBrief.cs.meta new file mode 100644 index 00000000..0470443f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc89a449800430c4a99f1e1296f09170 +timeCreated: 1611404447 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpArg.cs new file mode 100644 index 00000000..e3e58b33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemBuffOpArg")] + [Serializable] + public class ItemBuffOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public uint op + { + get + { + return this._op ?? 0u; + } + set + { + this._op = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new uint?(this.op) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _itemid; + + private uint? _itemcount; + + private uint? _op; + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpArg.cs.meta new file mode 100644 index 00000000..46f78188 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8de37197f6a9b4f4da87b1a0d5ccc703 +timeCreated: 1611404106 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpRes.cs new file mode 100644 index 00000000..1e38f8e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpRes.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemBuffOpRes")] + [Serializable] + public class ItemBuffOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public List itemid + { + get + { + return this._itemid; + } + } + + [ProtoMember(3, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public List itemcount + { + get + { + return this._itemcount; + } + } + + [ProtoMember(4, Name = "buffid", DataFormat = DataFormat.TwosComplement)] + public List buffid + { + get + { + return this._buffid; + } + } + + [ProtoMember(5, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public List lefttime + { + get + { + return this._lefttime; + } + } + + private ErrorCode? _errorcode; + + private readonly List _itemid = new List(); + + private readonly List _itemcount = new List(); + + private readonly List _buffid = new List(); + + private readonly List _lefttime = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpRes.cs.meta new file mode 100644 index 00000000..d0b5c647 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemBuffOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d64d3497a26995f449f16ecc8c3d42d5 +timeCreated: 1611404631 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemChanged.cs new file mode 100644 index 00000000..3b679006 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemChanged.cs @@ -0,0 +1,162 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemChanged")] + [Serializable] + public class ItemChanged : IExtensible + { + [ProtoMember(1, Name = "NewItems", DataFormat = DataFormat.Default)] + public List NewItems + { + get + { + return this._NewItems; + } + } + + [ProtoMember(2, Name = "AttrChangeItems", DataFormat = DataFormat.Default)] + public List AttrChangeItems + { + get + { + return this._AttrChangeItems; + } + } + + [ProtoMember(3, Name = "RemoveItems", DataFormat = DataFormat.TwosComplement)] + public List RemoveItems + { + get + { + return this._RemoveItems; + } + } + + [ProtoMember(4, Name = "SwapItems", DataFormat = DataFormat.TwosComplement)] + public List SwapItems + { + get + { + return this._SwapItems; + } + } + + [ProtoMember(5, Name = "ChangeItems", DataFormat = DataFormat.TwosComplement)] + public List ChangeItems + { + get + { + return this._ChangeItems; + } + } + + [ProtoMember(6, Name = "VirtualItemID", DataFormat = DataFormat.TwosComplement)] + public List VirtualItemID + { + get + { + return this._VirtualItemID; + } + } + + [ProtoMember(7, Name = "VirtualItemCount", DataFormat = DataFormat.TwosComplement)] + public List VirtualItemCount + { + get + { + return this._VirtualItemCount; + } + } + + [ProtoMember(8, Name = "recyleadditems", DataFormat = DataFormat.Default)] + public List recyleadditems + { + get + { + return this._recyleadditems; + } + } + + [ProtoMember(9, Name = "recylechangeitems", DataFormat = DataFormat.TwosComplement)] + public List recylechangeitems + { + get + { + return this._recylechangeitems; + } + } + + [ProtoMember(10, IsRequired = false, Name = "IsRearrange", DataFormat = DataFormat.Default)] + public bool IsRearrange + { + get + { + return this._IsRearrange ?? false; + } + set + { + this._IsRearrange = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IsRearrangeSpecified + { + get + { + return this._IsRearrange != null; + } + set + { + bool flag = value == (this._IsRearrange == null); + if (flag) + { + this._IsRearrange = (value ? new bool?(this.IsRearrange) : null); + } + } + } + + private readonly List _NewItems = new List(); + + private readonly List _AttrChangeItems = new List(); + + private readonly List _RemoveItems = new List(); + + private readonly List _SwapItems = new List(); + + private readonly List _ChangeItems = new List(); + + private readonly List _VirtualItemID = new List(); + + private readonly List _VirtualItemCount = new List(); + + private readonly List _recyleadditems = new List(); + + private readonly List _recylechangeitems = new List(); + + private bool? _IsRearrange; + + private IExtension extensionObject; + + private bool ShouldSerializeIsRearrange() + { + return this.IsRearrangeSpecified; + } + + private void ResetIsRearrange() + { + this.IsRearrangeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemChanged.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemChanged.cs.meta new file mode 100644 index 00000000..0b08a97e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be7dc3c45a5317846be4f0c31f20edbc +timeCreated: 1611404461 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeArg.cs new file mode 100644 index 00000000..c25fc3f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemComposeArg")] + [Serializable] + public class ItemComposeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.Default)] + public string uid + { + get + { + return this._uid ?? ""; + } + set + { + this._uid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? this.uid : null); + } + } + } + + private string _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeArg.cs.meta new file mode 100644 index 00000000..e0520e04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0bfbc28e952b3d54fb6bfbfaa5875ddb +timeCreated: 1611403171 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeRes.cs new file mode 100644 index 00000000..a4b1d55c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemComposeRes")] + [Serializable] + public class ItemComposeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeRes.cs.meta new file mode 100644 index 00000000..38a23302 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemComposeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 210cf91c1959b3140addc56d3ec5934d +timeCreated: 1611403411 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs new file mode 100644 index 00000000..74a18a11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs @@ -0,0 +1,161 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemEnchant")] + [Serializable] + public class ItemEnchant : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "enchantid", DataFormat = DataFormat.TwosComplement)] + public uint enchantid + { + get + { + return this._enchantid ?? 0u; + } + set + { + this._enchantid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enchantidSpecified + { + get + { + return this._enchantid != null; + } + set + { + bool flag = value == (this._enchantid == null); + if (flag) + { + this._enchantid = (value ? new uint?(this.enchantid) : null); + } + } + } + + [ProtoMember(2, Name = "attrs", DataFormat = DataFormat.Default)] + public List attrs + { + get + { + return this._attrs; + } + } + + [ProtoMember(3, IsRequired = false, Name = "chooseAttrid", DataFormat = DataFormat.TwosComplement)] + public uint chooseAttrid + { + get + { + return this._chooseAttrid ?? 0u; + } + set + { + this._chooseAttrid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chooseAttridSpecified + { + get + { + return this._chooseAttrid != null; + } + set + { + bool flag = value == (this._chooseAttrid == null); + if (flag) + { + this._chooseAttrid = (value ? new uint?(this.chooseAttrid) : null); + } + } + } + + [ProtoMember(4, Name = "enchantids", DataFormat = DataFormat.TwosComplement)] + public List enchantids + { + get + { + return this._enchantids; + } + } + + [ProtoMember(5, Name = "allAttrs", DataFormat = DataFormat.Default)] + public List allAttrs + { + get + { + return this._allAttrs; + } + } + + [ProtoMember(6, Name = "enchantBaodi", DataFormat = DataFormat.TwosComplement)] + public List enchantBaodi + { + get + { + return this._enchantBaodi; + } + } + + [ProtoMember(7, Name = "baodiCount", DataFormat = DataFormat.TwosComplement)] + public List baodiCount + { + get + { + return this._baodiCount; + } + } + + private uint? _enchantid; + + private readonly List _attrs = new List(); + + private uint? _chooseAttrid; + + private readonly List _enchantids = new List(); + + private readonly List _allAttrs = new List(); + + private readonly List _enchantBaodi = new List(); + + private readonly List _baodiCount = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeenchantid() + { + return this.enchantidSpecified; + } + + private void Resetenchantid() + { + this.enchantidSpecified = false; + } + + private bool ShouldSerializechooseAttrid() + { + return this.chooseAttridSpecified; + } + + private void ResetchooseAttrid() + { + this.chooseAttridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs.meta new file mode 100644 index 00000000..a665c04e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnchant.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12a3694b19b2ad5408f58cec6b728110 +timeCreated: 1611403242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs new file mode 100644 index 00000000..b65c13a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs @@ -0,0 +1,12 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemEnum")] + public enum ItemEnum + { + [ProtoEnum(Name = "Virtual_Max", Value = 50)] + Virtual_Max = 50 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs.meta new file mode 100644 index 00000000..fb0520b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecca09329c7b53147aaa220926f4af0c +timeCreated: 1611404789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackArg.cs new file mode 100644 index 00000000..7f18cfae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFindBackArg")] + [Serializable] + public class ItemFindBackArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public ItemFindBackType id + { + get + { + return this._id ?? ItemFindBackType.TOWER; + } + set + { + this._id = new ItemFindBackType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new ItemFindBackType?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "findBackCount", DataFormat = DataFormat.TwosComplement)] + public int findBackCount + { + get + { + return this._findBackCount ?? 0; + } + set + { + this._findBackCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool findBackCountSpecified + { + get + { + return this._findBackCount != null; + } + set + { + bool flag = value == (this._findBackCount == null); + if (flag) + { + this._findBackCount = (value ? new int?(this.findBackCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "backType", DataFormat = DataFormat.TwosComplement)] + public int backType + { + get + { + return this._backType ?? 0; + } + set + { + this._backType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool backTypeSpecified + { + get + { + return this._backType != null; + } + set + { + bool flag = value == (this._backType == null); + if (flag) + { + this._backType = (value ? new int?(this.backType) : null); + } + } + } + + private ItemFindBackType? _id; + + private int? _findBackCount; + + private int? _backType; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializefindBackCount() + { + return this.findBackCountSpecified; + } + + private void ResetfindBackCount() + { + this.findBackCountSpecified = false; + } + + private bool ShouldSerializebackType() + { + return this.backTypeSpecified; + } + + private void ResetbackType() + { + this.backTypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackArg.cs.meta new file mode 100644 index 00000000..1497541d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 441886b182ca1544ab5eb7200d80c525 +timeCreated: 1611403643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackData.cs new file mode 100644 index 00000000..46718236 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFindBackData")] + [Serializable] + public class ItemFindBackData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isDayFirstNofity", DataFormat = DataFormat.Default)] + public bool isDayFirstNofity + { + get + { + return this._isDayFirstNofity ?? false; + } + set + { + this._isDayFirstNofity = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isDayFirstNofitySpecified + { + get + { + return this._isDayFirstNofity != null; + } + set + { + bool flag = value == (this._isDayFirstNofity == null); + if (flag) + { + this._isDayFirstNofity = (value ? new bool?(this.isDayFirstNofity) : null); + } + } + } + + private bool? _isDayFirstNofity; + + private IExtension extensionObject; + + private bool ShouldSerializeisDayFirstNofity() + { + return this.isDayFirstNofitySpecified; + } + + private void ResetisDayFirstNofity() + { + this.isDayFirstNofitySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackData.cs.meta new file mode 100644 index 00000000..447d2061 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e906d6863d75f10418dd88c347527a01 +timeCreated: 1611404755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo.cs new file mode 100644 index 00000000..2d406cda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFindBackInfo")] + [Serializable] + public class ItemFindBackInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public ItemFindBackType id + { + get + { + return this._id ?? ItemFindBackType.TOWER; + } + set + { + this._id = new ItemFindBackType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new ItemFindBackType?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "subtype", DataFormat = DataFormat.TwosComplement)] + public int subtype + { + get + { + return this._subtype ?? 0; + } + set + { + this._subtype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool subtypeSpecified + { + get + { + return this._subtype != null; + } + set + { + bool flag = value == (this._subtype == null); + if (flag) + { + this._subtype = (value ? new int?(this.subtype) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "useCount", DataFormat = DataFormat.TwosComplement)] + public int useCount + { + get + { + return this._useCount ?? 0; + } + set + { + this._useCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool useCountSpecified + { + get + { + return this._useCount != null; + } + set + { + bool flag = value == (this._useCount == null); + if (flag) + { + this._useCount = (value ? new int?(this.useCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "towerLevel", DataFormat = DataFormat.TwosComplement)] + public int towerLevel + { + get + { + return this._towerLevel ?? 0; + } + set + { + this._towerLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool towerLevelSpecified + { + get + { + return this._towerLevel != null; + } + set + { + bool flag = value == (this._towerLevel == null); + if (flag) + { + this._towerLevel = (value ? new int?(this.towerLevel) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "dayTime", DataFormat = DataFormat.TwosComplement)] + public int dayTime + { + get + { + return this._dayTime ?? 0; + } + set + { + this._dayTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dayTimeSpecified + { + get + { + return this._dayTime != null; + } + set + { + bool flag = value == (this._dayTime == null); + if (flag) + { + this._dayTime = (value ? new int?(this.dayTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "findBackCount", DataFormat = DataFormat.TwosComplement)] + public int findBackCount + { + get + { + return this._findBackCount ?? 0; + } + set + { + this._findBackCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool findBackCountSpecified + { + get + { + return this._findBackCount != null; + } + set + { + bool flag = value == (this._findBackCount == null); + if (flag) + { + this._findBackCount = (value ? new int?(this.findBackCount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + [ProtoMember(8, Name = "onceBackExp", DataFormat = DataFormat.Default)] + public List onceBackExp + { + get + { + return this._onceBackExp; + } + } + + private ItemFindBackType? _id; + + private int? _subtype; + + private int? _useCount; + + private int? _towerLevel; + + private int? _dayTime; + + private int? _findBackCount; + + private int? _level; + + private readonly List _onceBackExp = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializesubtype() + { + return this.subtypeSpecified; + } + + private void Resetsubtype() + { + this.subtypeSpecified = false; + } + + private bool ShouldSerializeuseCount() + { + return this.useCountSpecified; + } + + private void ResetuseCount() + { + this.useCountSpecified = false; + } + + private bool ShouldSerializetowerLevel() + { + return this.towerLevelSpecified; + } + + private void ResettowerLevel() + { + this.towerLevelSpecified = false; + } + + private bool ShouldSerializedayTime() + { + return this.dayTimeSpecified; + } + + private void ResetdayTime() + { + this.dayTimeSpecified = false; + } + + private bool ShouldSerializefindBackCount() + { + return this.findBackCountSpecified; + } + + private void ResetfindBackCount() + { + this.findBackCountSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo.cs.meta new file mode 100644 index 00000000..d7fb7125 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40c12bd6c0ceff147be96e416df66726 +timeCreated: 1611403615 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo2Client.cs new file mode 100644 index 00000000..e429fb9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo2Client.cs @@ -0,0 +1,300 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFindBackInfo2Client")] + [Serializable] + public class ItemFindBackInfo2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public ItemFindBackType id + { + get + { + return this._id ?? ItemFindBackType.TOWER; + } + set + { + this._id = new ItemFindBackType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new ItemFindBackType?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "findBackCount", DataFormat = DataFormat.TwosComplement)] + public int findBackCount + { + get + { + return this._findBackCount ?? 0; + } + set + { + this._findBackCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool findBackCountSpecified + { + get + { + return this._findBackCount != null; + } + set + { + bool flag = value == (this._findBackCount == null); + if (flag) + { + this._findBackCount = (value ? new int?(this.findBackCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dragonCoinCost", DataFormat = DataFormat.TwosComplement)] + public int dragonCoinCost + { + get + { + return this._dragonCoinCost ?? 0; + } + set + { + this._dragonCoinCost = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonCoinCostSpecified + { + get + { + return this._dragonCoinCost != null; + } + set + { + bool flag = value == (this._dragonCoinCost == null); + if (flag) + { + this._dragonCoinCost = (value ? new int?(this.dragonCoinCost) : null); + } + } + } + + [ProtoMember(4, Name = "dragonCoinFindBackItems", DataFormat = DataFormat.Default)] + public List dragonCoinFindBackItems + { + get + { + return this._dragonCoinFindBackItems; + } + } + + [ProtoMember(5, IsRequired = false, Name = "goldCoinCost", DataFormat = DataFormat.TwosComplement)] + public int goldCoinCost + { + get + { + return this._goldCoinCost ?? 0; + } + set + { + this._goldCoinCost = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldCoinCostSpecified + { + get + { + return this._goldCoinCost != null; + } + set + { + bool flag = value == (this._goldCoinCost == null); + if (flag) + { + this._goldCoinCost = (value ? new int?(this.goldCoinCost) : null); + } + } + } + + [ProtoMember(6, Name = "goldCoinFindBackItems", DataFormat = DataFormat.Default)] + public List goldCoinFindBackItems + { + get + { + return this._goldCoinFindBackItems; + } + } + + [ProtoMember(7, IsRequired = false, Name = "dayTime", DataFormat = DataFormat.TwosComplement)] + public int dayTime + { + get + { + return this._dayTime ?? 0; + } + set + { + this._dayTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dayTimeSpecified + { + get + { + return this._dayTime != null; + } + set + { + bool flag = value == (this._dayTime == null); + if (flag) + { + this._dayTime = (value ? new int?(this.dayTime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "roleLevel", DataFormat = DataFormat.TwosComplement)] + public int roleLevel + { + get + { + return this._roleLevel ?? 0; + } + set + { + this._roleLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleLevelSpecified + { + get + { + return this._roleLevel != null; + } + set + { + bool flag = value == (this._roleLevel == null); + if (flag) + { + this._roleLevel = (value ? new int?(this.roleLevel) : null); + } + } + } + + private ItemFindBackType? _id; + + private int? _findBackCount; + + private int? _dragonCoinCost; + + private readonly List _dragonCoinFindBackItems = new List(); + + private int? _goldCoinCost; + + private readonly List _goldCoinFindBackItems = new List(); + + private int? _dayTime; + + private int? _roleLevel; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializefindBackCount() + { + return this.findBackCountSpecified; + } + + private void ResetfindBackCount() + { + this.findBackCountSpecified = false; + } + + private bool ShouldSerializedragonCoinCost() + { + return this.dragonCoinCostSpecified; + } + + private void ResetdragonCoinCost() + { + this.dragonCoinCostSpecified = false; + } + + private bool ShouldSerializegoldCoinCost() + { + return this.goldCoinCostSpecified; + } + + private void ResetgoldCoinCost() + { + this.goldCoinCostSpecified = false; + } + + private bool ShouldSerializedayTime() + { + return this.dayTimeSpecified; + } + + private void ResetdayTime() + { + this.dayTimeSpecified = false; + } + + private bool ShouldSerializeroleLevel() + { + return this.roleLevelSpecified; + } + + private void ResetroleLevel() + { + this.roleLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo2Client.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo2Client.cs.meta new file mode 100644 index 00000000..8486e3db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfo2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2ff97b61c0901e4ab7f0c725da55479 +timeCreated: 1611404597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoArg.cs new file mode 100644 index 00000000..4a3c3340 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFindBackInfoArg")] + [Serializable] + public class ItemFindBackInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoArg.cs.meta new file mode 100644 index 00000000..daf0848e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: edae985bc8b5d1a47922eaa8b9e422c7 +timeCreated: 1611404792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoRes.cs new file mode 100644 index 00000000..228367fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFindBackInfoRes")] + [Serializable] + public class ItemFindBackInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "backInfo", DataFormat = DataFormat.Default)] + public List backInfo + { + get + { + return this._backInfo; + } + } + + [ProtoMember(3, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public int time + { + get + { + return this._time ?? 0; + } + set + { + this._time = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new int?(this.time) : null); + } + } + } + + private ErrorCode? _error; + + private readonly List _backInfo = new List(); + + private int? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoRes.cs.meta new file mode 100644 index 00000000..d54f2fbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22a80f3a64f48f14f8829eb6aad39851 +timeCreated: 1611403424 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackRes.cs new file mode 100644 index 00000000..1c10c826 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFindBackRes")] + [Serializable] + public class ItemFindBackRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackRes.cs.meta new file mode 100644 index 00000000..5c0b0902 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 284123a7ef25706478a6a94574ad76d2 +timeCreated: 1611403473 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackType.cs new file mode 100644 index 00000000..86dc328c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackType.cs @@ -0,0 +1,42 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFindBackType")] + public enum ItemFindBackType + { + [ProtoEnum(Name = "TOWER", Value = 1)] + TOWER = 1, + [ProtoEnum(Name = "NVSHENSHILIAN", Value = 2)] + NVSHENSHILIAN, + [ProtoEnum(Name = "GUILDACTIVITY", Value = 3)] + GUILDACTIVITY, + [ProtoEnum(Name = "FATIGUE_RECOVER", Value = 4)] + FATIGUE_RECOVER, + [ProtoEnum(Name = "FATIGUE_GET", Value = 5)] + FATIGUE_GET, + [ProtoEnum(Name = "FATIGUE_BUY", Value = 6)] + FATIGUE_BUY, + [ProtoEnum(Name = "DICE_BACK", Value = 7)] + DICE_BACK, + [ProtoEnum(Name = "WUJINSHENYUAN_BACK", Value = 8)] + WUJINSHENYUAN_BACK, + [ProtoEnum(Name = "DRAGONEXP_BACK", Value = 9)] + DRAGONEXP_BACK, + [ProtoEnum(Name = "QAMULTI_BACK", Value = 10)] + QAMULTI_BACK, + [ProtoEnum(Name = "GUILDCHECKIN_BACK", Value = 11)] + GUILDCHECKIN_BACK, + [ProtoEnum(Name = "GUILD_VOICE", Value = 12)] + GUILD_VOICE, + [ProtoEnum(Name = "COMMERCETASK_BACK", Value = 13)] + COMMERCETASK_BACK, + [ProtoEnum(Name = "DayActiveBack", Value = 14)] + DayActiveBack, + [ProtoEnum(Name = "NestBack", Value = 15)] + NestBack, + [ProtoEnum(Name = "FINDBACK_MAX", Value = 16)] + FINDBACK_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackType.cs.meta new file mode 100644 index 00000000..e841cdf5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFindBackType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d338a627dfc3c145b77d13ceee4fa57 +timeCreated: 1611403351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs new file mode 100644 index 00000000..e0b67a90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemForge")] + [Serializable] + public class ItemForge : IExtensible + { + [ProtoMember(1, Name = "attrs", DataFormat = DataFormat.Default)] + public List attrs + { + get + { + return this._attrs; + } + } + + [ProtoMember(2, IsRequired = false, Name = "unReplacedAttr", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AttributeInfo unReplacedAttr + { + get + { + return this._unReplacedAttr; + } + set + { + this._unReplacedAttr = value; + } + } + + [ProtoMember(3, Name = "haveAttrs", DataFormat = DataFormat.TwosComplement)] + public List haveAttrs + { + get + { + return this._haveAttrs; + } + } + + private readonly List _attrs = new List(); + + private AttributeInfo _unReplacedAttr = null; + + private readonly List _haveAttrs = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs.meta new file mode 100644 index 00000000..821470d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemForge.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d742544b7484b245954cafb0f9c7139 +timeCreated: 1611403506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs new file mode 100644 index 00000000..369c33f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemFuse")] + [Serializable] + public class ItemFuse : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "fuseLevel", DataFormat = DataFormat.TwosComplement)] + public uint fuseLevel + { + get + { + return this._fuseLevel ?? 0u; + } + set + { + this._fuseLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fuseLevelSpecified + { + get + { + return this._fuseLevel != null; + } + set + { + bool flag = value == (this._fuseLevel == null); + if (flag) + { + this._fuseLevel = (value ? new uint?(this.fuseLevel) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fuseExpCount", DataFormat = DataFormat.TwosComplement)] + public uint fuseExpCount + { + get + { + return this._fuseExpCount ?? 0u; + } + set + { + this._fuseExpCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fuseExpCountSpecified + { + get + { + return this._fuseExpCount != null; + } + set + { + bool flag = value == (this._fuseExpCount == null); + if (flag) + { + this._fuseExpCount = (value ? new uint?(this.fuseExpCount) : null); + } + } + } + + private uint? _fuseLevel; + + private uint? _fuseExpCount; + + private IExtension extensionObject; + + private bool ShouldSerializefuseLevel() + { + return this.fuseLevelSpecified; + } + + private void ResetfuseLevel() + { + this.fuseLevelSpecified = false; + } + + private bool ShouldSerializefuseExpCount() + { + return this.fuseExpCountSpecified; + } + + private void ResetfuseExpCount() + { + this.fuseExpCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs.meta new file mode 100644 index 00000000..465505a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemFuse.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe6b9bc20a08e9a4e97a2ad592ed4483 +timeCreated: 1611404940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs new file mode 100644 index 00000000..d4b3f31d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemJade")] + [Serializable] + public class ItemJade : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SlotInfo", DataFormat = DataFormat.TwosComplement)] + public uint SlotInfo + { + get + { + return this._SlotInfo ?? 0u; + } + set + { + this._SlotInfo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SlotInfoSpecified + { + get + { + return this._SlotInfo != null; + } + set + { + bool flag = value == (this._SlotInfo == null); + if (flag) + { + this._SlotInfo = (value ? new uint?(this.SlotInfo) : null); + } + } + } + + [ProtoMember(2, Name = "ItemJadeSingle", DataFormat = DataFormat.Default)] + public List ItemJadeSingle + { + get + { + return this._ItemJadeSingle; + } + } + + private uint? _SlotInfo; + + private readonly List _ItemJadeSingle = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeSlotInfo() + { + return this.SlotInfoSpecified; + } + + private void ResetSlotInfo() + { + this.SlotInfoSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs.meta new file mode 100644 index 00000000..2b8e71e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemJade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cbdcc1d87b4f6e4aadf1fe9cdfc8238 +timeCreated: 1611403802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemJadeSingle.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemJadeSingle.cs new file mode 100644 index 00000000..509f6076 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemJadeSingle.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemJadeSingle")] + [Serializable] + public class ItemJadeSingle : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SlotPos", DataFormat = DataFormat.TwosComplement)] + public uint SlotPos + { + get + { + return this._SlotPos ?? 0u; + } + set + { + this._SlotPos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SlotPosSpecified + { + get + { + return this._SlotPos != null; + } + set + { + bool flag = value == (this._SlotPos == null); + if (flag) + { + this._SlotPos = (value ? new uint?(this.SlotPos) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ItemId", DataFormat = DataFormat.TwosComplement)] + public uint ItemId + { + get + { + return this._ItemId ?? 0u; + } + set + { + this._ItemId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ItemIdSpecified + { + get + { + return this._ItemId != null; + } + set + { + bool flag = value == (this._ItemId == null); + if (flag) + { + this._ItemId = (value ? new uint?(this.ItemId) : null); + } + } + } + + [ProtoMember(3, Name = "AttrId", DataFormat = DataFormat.TwosComplement)] + public List AttrId + { + get + { + return this._AttrId; + } + } + + [ProtoMember(4, Name = "AttrValue", DataFormat = DataFormat.TwosComplement)] + public List AttrValue + { + get + { + return this._AttrValue; + } + } + + private uint? _SlotPos; + + private uint? _ItemId; + + private readonly List _AttrId = new List(); + + private readonly List _AttrValue = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeSlotPos() + { + return this.SlotPosSpecified; + } + + private void ResetSlotPos() + { + this.SlotPosSpecified = false; + } + + private bool ShouldSerializeItemId() + { + return this.ItemIdSpecified; + } + + private void ResetItemId() + { + this.ItemIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemJadeSingle.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemJadeSingle.cs.meta new file mode 100644 index 00000000..53c2c32e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemJadeSingle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d191a2018e01714584bed68e7e9aaf4 +timeCreated: 1611403603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemRandAttr.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemRandAttr.cs new file mode 100644 index 00000000..98848428 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemRandAttr.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemRandAttr")] + [Serializable] + public class ItemRandAttr : IExtensible + { + [ProtoMember(1, Name = "attrs", DataFormat = DataFormat.Default)] + public List attrs + { + get + { + return this._attrs; + } + } + + private readonly List _attrs = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemRandAttr.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemRandAttr.cs.meta new file mode 100644 index 00000000..804993d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemRandAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55f2323dfe3b36d40a944fabfba3defb +timeCreated: 1611403740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs new file mode 100644 index 00000000..4e2b2d4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemRecord")] + [Serializable] + public class ItemRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public uint itemID + { + get + { + return this._itemID ?? 0u; + } + set + { + this._itemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new uint?(this.itemID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemCount", DataFormat = DataFormat.TwosComplement)] + public uint itemCount + { + get + { + return this._itemCount ?? 0u; + } + set + { + this._itemCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemCountSpecified + { + get + { + return this._itemCount != null; + } + set + { + bool flag = value == (this._itemCount == null); + if (flag) + { + this._itemCount = (value ? new uint?(this.itemCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isreceive", DataFormat = DataFormat.Default)] + public bool isreceive + { + get + { + return this._isreceive ?? false; + } + set + { + this._isreceive = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isreceiveSpecified + { + get + { + return this._isreceive != null; + } + set + { + bool flag = value == (this._isreceive == null); + if (flag) + { + this._isreceive = (value ? new bool?(this.isreceive) : null); + } + } + } + + private uint? _itemID; + + private uint? _itemCount; + + private bool? _isreceive; + + private IExtension extensionObject; + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializeitemCount() + { + return this.itemCountSpecified; + } + + private void ResetitemCount() + { + this.itemCountSpecified = false; + } + + private bool ShouldSerializeisreceive() + { + return this.isreceiveSpecified; + } + + private void Resetisreceive() + { + this.isreceiveSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs.meta new file mode 100644 index 00000000..21028015 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00bdbc19194b692489cb0344b35c3b3d +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs new file mode 100644 index 00000000..3d0a127b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemSellArg")] + [Serializable] + public class ItemSellArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + private ulong? _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs.meta new file mode 100644 index 00000000..29b66d35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemSellArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9a765568b4d93049a6103a9e2a46cc1 +timeCreated: 1611404900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs new file mode 100644 index 00000000..7472f5ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemSellRes")] + [Serializable] + public class ItemSellRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs.meta new file mode 100644 index 00000000..f11cdaec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemSellRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66db3cf06522e704a9b62d6f630d6acc +timeCreated: 1611403855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs new file mode 100644 index 00000000..2ff2f057 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs @@ -0,0 +1,40 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ItemUseOp")] + public enum ItemUseOp + { + [ProtoEnum(Name = "BagFind", Value = 0)] + BagFind, + [ProtoEnum(Name = "BodyFind", Value = 1)] + BodyFind, + [ProtoEnum(Name = "FashionWear", Value = 2)] + FashionWear, + [ProtoEnum(Name = "FashionOff", Value = 3)] + FashionOff, + [ProtoEnum(Name = "Composite", Value = 4)] + Composite, + [ProtoEnum(Name = "FashionSuitWear", Value = 5)] + FashionSuitWear, + [ProtoEnum(Name = "FashionSuitOff", Value = 6)] + FashionSuitOff, + [ProtoEnum(Name = "ItemBuffAdd", Value = 7)] + ItemBuffAdd, + [ProtoEnum(Name = "FashionDisplayWear", Value = 8)] + FashionDisplayWear, + [ProtoEnum(Name = "FashionDisplayOff", Value = 9)] + FashionDisplayOff, + [ProtoEnum(Name = "FashionSuitDisplayWear", Value = 10)] + FashionSuitDisplayWear, + [ProtoEnum(Name = "FashionSuitDisplayOff", Value = 11)] + FashionSuitDisplayOff, + [ProtoEnum(Name = "ActivationFashion", Value = 12)] + ActivationFashion, + [ProtoEnum(Name = "ActivationHairColor", Value = 13)] + ActivationHairColor, + [ProtoEnum(Name = "UseHairColor", Value = 14)] + UseHairColor + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs.meta new file mode 100644 index 00000000..ed029e72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ItemUseOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 617f05eaf53c0e84987918b0001d2cd6 +timeCreated: 1611403839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs new file mode 100644 index 00000000..259358b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeComposeArg")] + [Serializable] + public class JadeComposeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ComposeType", DataFormat = DataFormat.TwosComplement)] + public uint ComposeType + { + get + { + return this._ComposeType ?? 0u; + } + set + { + this._ComposeType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ComposeTypeSpecified + { + get + { + return this._ComposeType != null; + } + set + { + bool flag = value == (this._ComposeType == null); + if (flag) + { + this._ComposeType = (value ? new uint?(this.ComposeType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "JadeUniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong JadeUniqueId + { + get + { + return this._JadeUniqueId ?? 0UL; + } + set + { + this._JadeUniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool JadeUniqueIdSpecified + { + get + { + return this._JadeUniqueId != null; + } + set + { + bool flag = value == (this._JadeUniqueId == null); + if (flag) + { + this._JadeUniqueId = (value ? new ulong?(this.JadeUniqueId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "EquipUniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong EquipUniqueId + { + get + { + return this._EquipUniqueId ?? 0UL; + } + set + { + this._EquipUniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EquipUniqueIdSpecified + { + get + { + return this._EquipUniqueId != null; + } + set + { + bool flag = value == (this._EquipUniqueId == null); + if (flag) + { + this._EquipUniqueId = (value ? new ulong?(this.EquipUniqueId) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "SlotPos", DataFormat = DataFormat.TwosComplement)] + public uint SlotPos + { + get + { + return this._SlotPos ?? 0u; + } + set + { + this._SlotPos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SlotPosSpecified + { + get + { + return this._SlotPos != null; + } + set + { + bool flag = value == (this._SlotPos == null); + if (flag) + { + this._SlotPos = (value ? new uint?(this.SlotPos) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "AddLevel", DataFormat = DataFormat.TwosComplement)] + public uint AddLevel + { + get + { + return this._AddLevel ?? 0u; + } + set + { + this._AddLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool AddLevelSpecified + { + get + { + return this._AddLevel != null; + } + set + { + bool flag = value == (this._AddLevel == null); + if (flag) + { + this._AddLevel = (value ? new uint?(this.AddLevel) : null); + } + } + } + + private uint? _ComposeType; + + private ulong? _JadeUniqueId; + + private ulong? _EquipUniqueId; + + private uint? _SlotPos; + + private uint? _AddLevel; + + private IExtension extensionObject; + + private bool ShouldSerializeComposeType() + { + return this.ComposeTypeSpecified; + } + + private void ResetComposeType() + { + this.ComposeTypeSpecified = false; + } + + private bool ShouldSerializeJadeUniqueId() + { + return this.JadeUniqueIdSpecified; + } + + private void ResetJadeUniqueId() + { + this.JadeUniqueIdSpecified = false; + } + + private bool ShouldSerializeEquipUniqueId() + { + return this.EquipUniqueIdSpecified; + } + + private void ResetEquipUniqueId() + { + this.EquipUniqueIdSpecified = false; + } + + private bool ShouldSerializeSlotPos() + { + return this.SlotPosSpecified; + } + + private void ResetSlotPos() + { + this.SlotPosSpecified = false; + } + + private bool ShouldSerializeAddLevel() + { + return this.AddLevelSpecified; + } + + private void ResetAddLevel() + { + this.AddLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs.meta new file mode 100644 index 00000000..57ede7a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f74365e975df1414f9b99eb37ad6b8db +timeCreated: 1611404887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewArg.cs new file mode 100644 index 00000000..b34333ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeComposeNewArg")] + [Serializable] + public class JadeComposeNewArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ComposeType", DataFormat = DataFormat.TwosComplement)] + public uint ComposeType + { + get + { + return this._ComposeType ?? 0u; + } + set + { + this._ComposeType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ComposeTypeSpecified + { + get + { + return this._ComposeType != null; + } + set + { + bool flag = value == (this._ComposeType == null); + if (flag) + { + this._ComposeType = (value ? new uint?(this.ComposeType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "JadeUniqueId", DataFormat = DataFormat.Default)] + public string JadeUniqueId + { + get + { + return this._JadeUniqueId ?? ""; + } + set + { + this._JadeUniqueId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool JadeUniqueIdSpecified + { + get + { + return this._JadeUniqueId != null; + } + set + { + bool flag = value == (this._JadeUniqueId == null); + if (flag) + { + this._JadeUniqueId = (value ? this.JadeUniqueId : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "EquipUniqueId", DataFormat = DataFormat.Default)] + public string EquipUniqueId + { + get + { + return this._EquipUniqueId ?? ""; + } + set + { + this._EquipUniqueId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EquipUniqueIdSpecified + { + get + { + return this._EquipUniqueId != null; + } + set + { + bool flag = value == (this._EquipUniqueId == null); + if (flag) + { + this._EquipUniqueId = (value ? this.EquipUniqueId : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "SlotPos", DataFormat = DataFormat.TwosComplement)] + public uint SlotPos + { + get + { + return this._SlotPos ?? 0u; + } + set + { + this._SlotPos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SlotPosSpecified + { + get + { + return this._SlotPos != null; + } + set + { + bool flag = value == (this._SlotPos == null); + if (flag) + { + this._SlotPos = (value ? new uint?(this.SlotPos) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "AddLevel", DataFormat = DataFormat.TwosComplement)] + public uint AddLevel + { + get + { + return this._AddLevel ?? 0u; + } + set + { + this._AddLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool AddLevelSpecified + { + get + { + return this._AddLevel != null; + } + set + { + bool flag = value == (this._AddLevel == null); + if (flag) + { + this._AddLevel = (value ? new uint?(this.AddLevel) : null); + } + } + } + + private uint? _ComposeType; + + private string _JadeUniqueId; + + private string _EquipUniqueId; + + private uint? _SlotPos; + + private uint? _AddLevel; + + private IExtension extensionObject; + + private bool ShouldSerializeComposeType() + { + return this.ComposeTypeSpecified; + } + + private void ResetComposeType() + { + this.ComposeTypeSpecified = false; + } + + private bool ShouldSerializeJadeUniqueId() + { + return this.JadeUniqueIdSpecified; + } + + private void ResetJadeUniqueId() + { + this.JadeUniqueIdSpecified = false; + } + + private bool ShouldSerializeEquipUniqueId() + { + return this.EquipUniqueIdSpecified; + } + + private void ResetEquipUniqueId() + { + this.EquipUniqueIdSpecified = false; + } + + private bool ShouldSerializeSlotPos() + { + return this.SlotPosSpecified; + } + + private void ResetSlotPos() + { + this.SlotPosSpecified = false; + } + + private bool ShouldSerializeAddLevel() + { + return this.AddLevelSpecified; + } + + private void ResetAddLevel() + { + this.AddLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewArg.cs.meta new file mode 100644 index 00000000..3348a366 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c057c3d5c17afdd48b1865bfe6ba5390 +timeCreated: 1611404485 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewRes.cs new file mode 100644 index 00000000..7daab45d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeComposeNewRes")] + [Serializable] + public class JadeComposeNewRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "jadeSealID", DataFormat = DataFormat.TwosComplement)] + public uint jadeSealID + { + get + { + return this._jadeSealID ?? 0u; + } + set + { + this._jadeSealID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jadeSealIDSpecified + { + get + { + return this._jadeSealID != null; + } + set + { + bool flag = value == (this._jadeSealID == null); + if (flag) + { + this._jadeSealID = (value ? new uint?(this.jadeSealID) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private uint? _jadeSealID; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializejadeSealID() + { + return this.jadeSealIDSpecified; + } + + private void ResetjadeSealID() + { + this.jadeSealIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewRes.cs.meta new file mode 100644 index 00000000..9dac1f6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeNewRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80f67f9262690dd4492efa7378419dd2 +timeCreated: 1611404035 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeRes.cs new file mode 100644 index 00000000..a28ff290 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeComposeRes")] + [Serializable] + public class JadeComposeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeRes.cs.meta new file mode 100644 index 00000000..f2105d32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeComposeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29a6cc590bb78be4bab897677d7d2f97 +timeCreated: 1611403477 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationArg.cs new file mode 100644 index 00000000..3a7b026d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeOperationArg")] + [Serializable] + public class JadeOperationArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "OperationType", DataFormat = DataFormat.TwosComplement)] + public uint OperationType + { + get + { + return this._OperationType ?? 0u; + } + set + { + this._OperationType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OperationTypeSpecified + { + get + { + return this._OperationType != null; + } + set + { + bool flag = value == (this._OperationType == null); + if (flag) + { + this._OperationType = (value ? new uint?(this.OperationType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "EquipUniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong EquipUniqueId + { + get + { + return this._EquipUniqueId ?? 0UL; + } + set + { + this._EquipUniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EquipUniqueIdSpecified + { + get + { + return this._EquipUniqueId != null; + } + set + { + bool flag = value == (this._EquipUniqueId == null); + if (flag) + { + this._EquipUniqueId = (value ? new ulong?(this.EquipUniqueId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "JadeUniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong JadeUniqueId + { + get + { + return this._JadeUniqueId ?? 0UL; + } + set + { + this._JadeUniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool JadeUniqueIdSpecified + { + get + { + return this._JadeUniqueId != null; + } + set + { + bool flag = value == (this._JadeUniqueId == null); + if (flag) + { + this._JadeUniqueId = (value ? new ulong?(this.JadeUniqueId) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "Pos", DataFormat = DataFormat.TwosComplement)] + public uint Pos + { + get + { + return this._Pos ?? 0u; + } + set + { + this._Pos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PosSpecified + { + get + { + return this._Pos != null; + } + set + { + bool flag = value == (this._Pos == null); + if (flag) + { + this._Pos = (value ? new uint?(this.Pos) : null); + } + } + } + + private uint? _OperationType; + + private ulong? _EquipUniqueId; + + private ulong? _JadeUniqueId; + + private uint? _Pos; + + private IExtension extensionObject; + + private bool ShouldSerializeOperationType() + { + return this.OperationTypeSpecified; + } + + private void ResetOperationType() + { + this.OperationTypeSpecified = false; + } + + private bool ShouldSerializeEquipUniqueId() + { + return this.EquipUniqueIdSpecified; + } + + private void ResetEquipUniqueId() + { + this.EquipUniqueIdSpecified = false; + } + + private bool ShouldSerializeJadeUniqueId() + { + return this.JadeUniqueIdSpecified; + } + + private void ResetJadeUniqueId() + { + this.JadeUniqueIdSpecified = false; + } + + private bool ShouldSerializePos() + { + return this.PosSpecified; + } + + private void ResetPos() + { + this.PosSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationArg.cs.meta new file mode 100644 index 00000000..dc41de7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f828b6266ec05994da938fb6d1d5b9ae +timeCreated: 1611404891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs new file mode 100644 index 00000000..5a25bfca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeOperationNewArg")] + [Serializable] + public class JadeOperationNewArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "OperationType", DataFormat = DataFormat.TwosComplement)] + public uint OperationType + { + get + { + return this._OperationType ?? 0u; + } + set + { + this._OperationType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OperationTypeSpecified + { + get + { + return this._OperationType != null; + } + set + { + bool flag = value == (this._OperationType == null); + if (flag) + { + this._OperationType = (value ? new uint?(this.OperationType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "EquipUniqueId", DataFormat = DataFormat.Default)] + public string EquipUniqueId + { + get + { + return this._EquipUniqueId ?? ""; + } + set + { + this._EquipUniqueId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EquipUniqueIdSpecified + { + get + { + return this._EquipUniqueId != null; + } + set + { + bool flag = value == (this._EquipUniqueId == null); + if (flag) + { + this._EquipUniqueId = (value ? this.EquipUniqueId : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "JadeUniqueId", DataFormat = DataFormat.Default)] + public string JadeUniqueId + { + get + { + return this._JadeUniqueId ?? ""; + } + set + { + this._JadeUniqueId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool JadeUniqueIdSpecified + { + get + { + return this._JadeUniqueId != null; + } + set + { + bool flag = value == (this._JadeUniqueId == null); + if (flag) + { + this._JadeUniqueId = (value ? this.JadeUniqueId : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "Pos", DataFormat = DataFormat.TwosComplement)] + public uint Pos + { + get + { + return this._Pos ?? 0u; + } + set + { + this._Pos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PosSpecified + { + get + { + return this._Pos != null; + } + set + { + bool flag = value == (this._Pos == null); + if (flag) + { + this._Pos = (value ? new uint?(this.Pos) : null); + } + } + } + + private uint? _OperationType; + + private string _EquipUniqueId; + + private string _JadeUniqueId; + + private uint? _Pos; + + private IExtension extensionObject; + + private bool ShouldSerializeOperationType() + { + return this.OperationTypeSpecified; + } + + private void ResetOperationType() + { + this.OperationTypeSpecified = false; + } + + private bool ShouldSerializeEquipUniqueId() + { + return this.EquipUniqueIdSpecified; + } + + private void ResetEquipUniqueId() + { + this.EquipUniqueIdSpecified = false; + } + + private bool ShouldSerializeJadeUniqueId() + { + return this.JadeUniqueIdSpecified; + } + + private void ResetJadeUniqueId() + { + this.JadeUniqueIdSpecified = false; + } + + private bool ShouldSerializePos() + { + return this.PosSpecified; + } + + private void ResetPos() + { + this.PosSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs.meta new file mode 100644 index 00000000..7e8f32e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f295ad508820a4d43af2ecbf2620642e +timeCreated: 1611404843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewRes.cs new file mode 100644 index 00000000..befb93aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeOperationNewRes")] + [Serializable] + public class JadeOperationNewRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "jadeSealID", DataFormat = DataFormat.TwosComplement)] + public uint jadeSealID + { + get + { + return this._jadeSealID ?? 0u; + } + set + { + this._jadeSealID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jadeSealIDSpecified + { + get + { + return this._jadeSealID != null; + } + set + { + bool flag = value == (this._jadeSealID == null); + if (flag) + { + this._jadeSealID = (value ? new uint?(this.jadeSealID) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private uint? _jadeSealID; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializejadeSealID() + { + return this.jadeSealIDSpecified; + } + + private void ResetjadeSealID() + { + this.jadeSealIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewRes.cs.meta new file mode 100644 index 00000000..a820537e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationNewRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1e552f75ec369143843db0e17dd777a +timeCreated: 1611404593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationRes.cs new file mode 100644 index 00000000..a778e129 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeOperationRes")] + [Serializable] + public class JadeOperationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + private ErrorCode? _ErrorCode; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationRes.cs.meta new file mode 100644 index 00000000..6d220673 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeOperationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a87b13cdfa7602d45befd97f7767e931 +timeCreated: 1611404295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeSealInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeSealInfo.cs new file mode 100644 index 00000000..8a756071 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeSealInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeSealInfo")] + [Serializable] + public class JadeSealInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "equipPos", DataFormat = DataFormat.TwosComplement)] + public uint equipPos + { + get + { + return this._equipPos ?? 0u; + } + set + { + this._equipPos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool equipPosSpecified + { + get + { + return this._equipPos != null; + } + set + { + bool flag = value == (this._equipPos == null); + if (flag) + { + this._equipPos = (value ? new uint?(this.equipPos) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "jadeSealID", DataFormat = DataFormat.TwosComplement)] + public uint jadeSealID + { + get + { + return this._jadeSealID ?? 0u; + } + set + { + this._jadeSealID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jadeSealIDSpecified + { + get + { + return this._jadeSealID != null; + } + set + { + bool flag = value == (this._jadeSealID == null); + if (flag) + { + this._jadeSealID = (value ? new uint?(this.jadeSealID) : null); + } + } + } + + private uint? _equipPos; + + private uint? _jadeSealID; + + private IExtension extensionObject; + + private bool ShouldSerializeequipPos() + { + return this.equipPosSpecified; + } + + private void ResetequipPos() + { + this.equipPosSpecified = false; + } + + private bool ShouldSerializejadeSealID() + { + return this.jadeSealIDSpecified; + } + + private void ResetjadeSealID() + { + this.jadeSealIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeSealInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeSealInfo.cs.meta new file mode 100644 index 00000000..5cf09ebf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeSealInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3832f956fe793e44a96358ddf7d40500 +timeCreated: 1611403570 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeSlotInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/JadeSlotInfo.cs new file mode 100644 index 00000000..d12716ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeSlotInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JadeSlotInfo")] + [Serializable] + public class JadeSlotInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "operatorType", DataFormat = DataFormat.TwosComplement)] + public uint operatorType + { + get + { + return this._operatorType ?? 0u; + } + set + { + this._operatorType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool operatorTypeSpecified + { + get + { + return this._operatorType != null; + } + set + { + bool flag = value == (this._operatorType == null); + if (flag) + { + this._operatorType = (value ? new uint?(this.operatorType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "jadeSlot", DataFormat = DataFormat.TwosComplement)] + public uint jadeSlot + { + get + { + return this._jadeSlot ?? 0u; + } + set + { + this._jadeSlot = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jadeSlotSpecified + { + get + { + return this._jadeSlot != null; + } + set + { + bool flag = value == (this._jadeSlot == null); + if (flag) + { + this._jadeSlot = (value ? new uint?(this.jadeSlot) : null); + } + } + } + + private uint? _operatorType; + + private uint? _jadeSlot; + + private IExtension extensionObject; + + private bool ShouldSerializeoperatorType() + { + return this.operatorTypeSpecified; + } + + private void ResetoperatorType() + { + this.operatorTypeSpecified = false; + } + + private bool ShouldSerializejadeSlot() + { + return this.jadeSlotSpecified; + } + + private void ResetjadeSlot() + { + this.jadeSlotSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JadeSlotInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JadeSlotInfo.cs.meta new file mode 100644 index 00000000..4900584e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JadeSlotInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e48c1215db367947b0ef6071a61e808 +timeCreated: 1611404128 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs new file mode 100644 index 00000000..5eaba7f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JoinLargeRoomArg")] + [Serializable] + public class JoinLargeRoomArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "plat", DataFormat = DataFormat.TwosComplement)] + public uint plat + { + get + { + return this._plat ?? 0u; + } + set + { + this._plat = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool platSpecified + { + get + { + return this._plat != null; + } + set + { + bool flag = value == (this._plat == null); + if (flag) + { + this._plat = (value ? new uint?(this.plat) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "ip", DataFormat = DataFormat.Default)] + public string ip + { + get + { + return this._ip ?? ""; + } + set + { + this._ip = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ipSpecified + { + get + { + return this._ip != null; + } + set + { + bool flag = value == (this._ip == null); + if (flag) + { + this._ip = (value ? this.ip : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "acc", DataFormat = DataFormat.Default)] + public string acc + { + get + { + return this._acc ?? ""; + } + set + { + this._acc = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accSpecified + { + get + { + return this._acc != null; + } + set + { + bool flag = value == (this._acc == null); + if (flag) + { + this._acc = (value ? this.acc : null); + } + } + } + + private uint? _param; + + private ulong? _roleid; + + private uint? _plat; + + private string _ip; + + private string _acc; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeplat() + { + return this.platSpecified; + } + + private void Resetplat() + { + this.platSpecified = false; + } + + private bool ShouldSerializeip() + { + return this.ipSpecified; + } + + private void Resetip() + { + this.ipSpecified = false; + } + + private bool ShouldSerializeacc() + { + return this.accSpecified; + } + + private void Resetacc() + { + this.accSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs.meta new file mode 100644 index 00000000..629d47b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 097e35a714e69134d9fde131433175b9 +timeCreated: 1611403156 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs new file mode 100644 index 00000000..6e34e29c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JoinLargeRoomReply")] + [Serializable] + public class JoinLargeRoomReply : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "url", DataFormat = DataFormat.Default)] + public string url + { + get + { + return this._url ?? ""; + } + set + { + this._url = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool urlSpecified + { + get + { + return this._url != null; + } + set + { + bool flag = value == (this._url == null); + if (flag) + { + this._url = (value ? this.url : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "key", DataFormat = DataFormat.TwosComplement)] + public uint key + { + get + { + return this._key ?? 0u; + } + set + { + this._key = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool keySpecified + { + get + { + return this._key != null; + } + set + { + bool flag = value == (this._key == null); + if (flag) + { + this._key = (value ? new uint?(this.key) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "bussniessid", DataFormat = DataFormat.TwosComplement)] + public uint bussniessid + { + get + { + return this._bussniessid ?? 0u; + } + set + { + this._bussniessid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bussniessidSpecified + { + get + { + return this._bussniessid != null; + } + set + { + bool flag = value == (this._bussniessid == null); + if (flag) + { + this._bussniessid = (value ? new uint?(this.bussniessid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roomid", DataFormat = DataFormat.TwosComplement)] + public ulong roomid + { + get + { + return this._roomid ?? 0UL; + } + set + { + this._roomid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomidSpecified + { + get + { + return this._roomid != null; + } + set + { + bool flag = value == (this._roomid == null); + if (flag) + { + this._roomid = (value ? new ulong?(this.roomid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "roomkey", DataFormat = DataFormat.TwosComplement)] + public ulong roomkey + { + get + { + return this._roomkey ?? 0UL; + } + set + { + this._roomkey = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomkeySpecified + { + get + { + return this._roomkey != null; + } + set + { + bool flag = value == (this._roomkey == null); + if (flag) + { + this._roomkey = (value ? new ulong?(this.roomkey) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "memberid", DataFormat = DataFormat.TwosComplement)] + public uint memberid + { + get + { + return this._memberid ?? 0u; + } + set + { + this._memberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberidSpecified + { + get + { + return this._memberid != null; + } + set + { + bool flag = value == (this._memberid == null); + if (flag) + { + this._memberid = (value ? new uint?(this.memberid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private string _url; + + private uint? _key; + + private uint? _bussniessid; + + private ulong? _roomid; + + private ulong? _roomkey; + + private uint? _memberid; + + private ulong? _roleid; + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeurl() + { + return this.urlSpecified; + } + + private void Reseturl() + { + this.urlSpecified = false; + } + + private bool ShouldSerializekey() + { + return this.keySpecified; + } + + private void Resetkey() + { + this.keySpecified = false; + } + + private bool ShouldSerializebussniessid() + { + return this.bussniessidSpecified; + } + + private void Resetbussniessid() + { + this.bussniessidSpecified = false; + } + + private bool ShouldSerializeroomid() + { + return this.roomidSpecified; + } + + private void Resetroomid() + { + this.roomidSpecified = false; + } + + private bool ShouldSerializeroomkey() + { + return this.roomkeySpecified; + } + + private void Resetroomkey() + { + this.roomkeySpecified = false; + } + + private bool ShouldSerializememberid() + { + return this.memberidSpecified; + } + + private void Resetmemberid() + { + this.memberidSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs.meta new file mode 100644 index 00000000..4222597d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomReply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3808836d6c97bd14fb09b0060385a753 +timeCreated: 1611403568 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs new file mode 100644 index 00000000..1a21cc0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JoinLargeRoomRes")] + [Serializable] + public class JoinLargeRoomRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public JoinLargeRoomReply data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + private ErrorCode? _error; + + private JoinLargeRoomReply _data = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs.meta new file mode 100644 index 00000000..d1d7f405 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLargeRoomRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22a3f383b70a00d40bcec59148bf07e3 +timeCreated: 1611403424 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleArg.cs new file mode 100644 index 00000000..734cd3e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JoinLeagueEleBattleArg")] + [Serializable] + public class JoinLeagueEleBattleArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleArg.cs.meta new file mode 100644 index 00000000..e34aa592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c782d95a5b2cf9b46abe50c331422230 +timeCreated: 1611404531 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleRes.cs new file mode 100644 index 00000000..0513a02a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JoinLeagueEleBattleRes")] + [Serializable] + public class JoinLeagueEleBattleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleRes.cs.meta new file mode 100644 index 00000000..4ccca906 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinLeagueEleBattleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be90a659d5dfaac48949da8d3c51e1cc +timeCreated: 1611404462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs b/Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs new file mode 100644 index 00000000..952ffe5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JoinRoom")] + [Serializable] + public class JoinRoom : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs.meta new file mode 100644 index 00000000..dc5e2740 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinRoom.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3d677f05622a5e4cbfdf7e658349618 +timeCreated: 1611404600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinRoomReply.cs b/Client/Assets/Scripts/XMainClient/KKSG/JoinRoomReply.cs new file mode 100644 index 00000000..3686946d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinRoomReply.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JoinRoomReply")] + [Serializable] + public class JoinRoomReply : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "url1", DataFormat = DataFormat.Default)] + public string url1 + { + get + { + return this._url1 ?? ""; + } + set + { + this._url1 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool url1Specified + { + get + { + return this._url1 != null; + } + set + { + bool flag = value == (this._url1 == null); + if (flag) + { + this._url1 = (value ? this.url1 : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "url2", DataFormat = DataFormat.Default)] + public string url2 + { + get + { + return this._url2 ?? ""; + } + set + { + this._url2 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool url2Specified + { + get + { + return this._url2 != null; + } + set + { + bool flag = value == (this._url2 == null); + if (flag) + { + this._url2 = (value ? this.url2 : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "url3", DataFormat = DataFormat.Default)] + public string url3 + { + get + { + return this._url3 ?? ""; + } + set + { + this._url3 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool url3Specified + { + get + { + return this._url3 != null; + } + set + { + bool flag = value == (this._url3 == null); + if (flag) + { + this._url3 = (value ? this.url3 : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roomID", DataFormat = DataFormat.TwosComplement)] + public long roomID + { + get + { + return this._roomID ?? 0L; + } + set + { + this._roomID = new long?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomIDSpecified + { + get + { + return this._roomID != null; + } + set + { + bool flag = value == (this._roomID == null); + if (flag) + { + this._roomID = (value ? new long?(this.roomID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "roomKey", DataFormat = DataFormat.TwosComplement)] + public long roomKey + { + get + { + return this._roomKey ?? 0L; + } + set + { + this._roomKey = new long?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomKeySpecified + { + get + { + return this._roomKey != null; + } + set + { + bool flag = value == (this._roomKey == null); + if (flag) + { + this._roomKey = (value ? new long?(this.roomKey) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "memberID", DataFormat = DataFormat.TwosComplement)] + public int memberID + { + get + { + return this._memberID ?? 0; + } + set + { + this._memberID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberIDSpecified + { + get + { + return this._memberID != null; + } + set + { + bool flag = value == (this._memberID == null); + if (flag) + { + this._memberID = (value ? new int?(this.memberID) : null); + } + } + } + + private string _url1; + + private string _url2; + + private string _url3; + + private long? _roomID; + + private long? _roomKey; + + private int? _memberID; + + private IExtension extensionObject; + + private bool ShouldSerializeurl1() + { + return this.url1Specified; + } + + private void Reseturl1() + { + this.url1Specified = false; + } + + private bool ShouldSerializeurl2() + { + return this.url2Specified; + } + + private void Reseturl2() + { + this.url2Specified = false; + } + + private bool ShouldSerializeurl3() + { + return this.url3Specified; + } + + private void Reseturl3() + { + this.url3Specified = false; + } + + private bool ShouldSerializeroomID() + { + return this.roomIDSpecified; + } + + private void ResetroomID() + { + this.roomIDSpecified = false; + } + + private bool ShouldSerializeroomKey() + { + return this.roomKeySpecified; + } + + private void ResetroomKey() + { + this.roomKeySpecified = false; + } + + private bool ShouldSerializememberID() + { + return this.memberIDSpecified; + } + + private void ResetmemberID() + { + this.memberIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JoinRoomReply.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JoinRoomReply.cs.meta new file mode 100644 index 00000000..c752ba79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JoinRoomReply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1f47df3dcf8b2e4bb55fa73eb8010bc +timeCreated: 1611404255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JustDanceArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/JustDanceArg.cs new file mode 100644 index 00000000..35c518d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JustDanceArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JustDanceArg")] + [Serializable] + public class JustDanceArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "danceid", DataFormat = DataFormat.TwosComplement)] + public uint danceid + { + get + { + return this._danceid ?? 0u; + } + set + { + this._danceid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool danceidSpecified + { + get + { + return this._danceid != null; + } + set + { + bool flag = value == (this._danceid == null); + if (flag) + { + this._danceid = (value ? new uint?(this.danceid) : null); + } + } + } + + private uint? _type; + + private uint? _danceid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializedanceid() + { + return this.danceidSpecified; + } + + private void Resetdanceid() + { + this.danceidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JustDanceArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JustDanceArg.cs.meta new file mode 100644 index 00000000..15ad187f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JustDanceArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30e0287a966a455438b5376c737a3bb6 +timeCreated: 1611403523 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JustDanceRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/JustDanceRes.cs new file mode 100644 index 00000000..8b6253ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JustDanceRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "JustDanceRes")] + [Serializable] + public class JustDanceRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/JustDanceRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/JustDanceRes.cs.meta new file mode 100644 index 00000000..b546b512 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/JustDanceRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6369da903cb7b254280b52989634da30 +timeCreated: 1611403845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KKVsRoleState.cs b/Client/Assets/Scripts/XMainClient/KKSG/KKVsRoleState.cs new file mode 100644 index 00000000..0b8cc53d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KKVsRoleState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "KKVsRoleState")] + public enum KKVsRoleState + { + [ProtoEnum(Name = "KK_VS_ROLE_UNLOAD", Value = 1)] + KK_VS_ROLE_UNLOAD = 1, + [ProtoEnum(Name = "KK_VS_ROLE_NORMAL", Value = 2)] + KK_VS_ROLE_NORMAL, + [ProtoEnum(Name = "KK_VS_ROLE_DIE", Value = 3)] + KK_VS_ROLE_DIE, + [ProtoEnum(Name = "KK_VS_ROLE_QUIT", Value = 4)] + KK_VS_ROLE_QUIT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KKVsRoleState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/KKVsRoleState.cs.meta new file mode 100644 index 00000000..1f7049f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KKVsRoleState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44e4727b661860b4eb24699bfd29df5c +timeCreated: 1611403646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonArg.cs new file mode 100644 index 00000000..92da178a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "KMatchCommonArg")] + [Serializable] + public class KMatchCommonArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public KMatchType type + { + get + { + return this._type ?? KMatchType.KMT_NONE; + } + set + { + this._type = new KMatchType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new KMatchType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public KMatchOp op + { + get + { + return this._op ?? KMatchOp.KMATCH_OP_START; + } + set + { + this._op = new KMatchOp?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new KMatchOp?(this.op) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isteam", DataFormat = DataFormat.Default)] + public bool isteam + { + get + { + return this._isteam ?? false; + } + set + { + this._isteam = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isteamSpecified + { + get + { + return this._isteam != null; + } + set + { + bool flag = value == (this._isteam == null); + if (flag) + { + this._isteam = (value ? new bool?(this.isteam) : null); + } + } + } + + private KMatchType? _type; + + private KMatchOp? _op; + + private bool? _isteam; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializeisteam() + { + return this.isteamSpecified; + } + + private void Resetisteam() + { + this.isteamSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonArg.cs.meta new file mode 100644 index 00000000..6234ef4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e104053266f6ee49987b1d9a77d9b34 +timeCreated: 1611403200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonRes.cs new file mode 100644 index 00000000..e96b5f73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "KMatchCommonRes")] + [Serializable] + public class KMatchCommonRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "problem_name", DataFormat = DataFormat.Default)] + public string problem_name + { + get + { + return this._problem_name ?? ""; + } + set + { + this._problem_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool problem_nameSpecified + { + get + { + return this._problem_name != null; + } + set + { + bool flag = value == (this._problem_name == null); + if (flag) + { + this._problem_name = (value ? this.problem_name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "endtime", DataFormat = DataFormat.TwosComplement)] + public uint endtime + { + get + { + return this._endtime ?? 0u; + } + set + { + this._endtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endtimeSpecified + { + get + { + return this._endtime != null; + } + set + { + bool flag = value == (this._endtime == null); + if (flag) + { + this._endtime = (value ? new uint?(this.endtime) : null); + } + } + } + + private ErrorCode? _errorcode; + + private string _problem_name; + + private uint? _endtime; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeproblem_name() + { + return this.problem_nameSpecified; + } + + private void Resetproblem_name() + { + this.problem_nameSpecified = false; + } + + private bool ShouldSerializeendtime() + { + return this.endtimeSpecified; + } + + private void Resetendtime() + { + this.endtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonRes.cs.meta new file mode 100644 index 00000000..0208507b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KMatchCommonRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e08636f2d10595441a94dc6a08e8b12a +timeCreated: 1611404698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs new file mode 100644 index 00000000..b0dc6e11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "KMatchOp")] + public enum KMatchOp + { + [ProtoEnum(Name = "KMATCH_OP_START", Value = 1)] + KMATCH_OP_START = 1, + [ProtoEnum(Name = "KMATCH_OP_STOP", Value = 2)] + KMATCH_OP_STOP + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs.meta new file mode 100644 index 00000000..25a4121e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KMatchOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9198bd58c3d0b2548b63b7aa62aaad3a +timeCreated: 1611404143 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KMatchType.cs b/Client/Assets/Scripts/XMainClient/KKSG/KMatchType.cs new file mode 100644 index 00000000..501f7729 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KMatchType.cs @@ -0,0 +1,34 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "KMatchType")] + public enum KMatchType + { + [ProtoEnum(Name = "KMT_NONE", Value = 0)] + KMT_NONE, + [ProtoEnum(Name = "KMT_EXP", Value = 1)] + KMT_EXP, + [ProtoEnum(Name = "KMT_PVP", Value = 2)] + KMT_PVP, + [ProtoEnum(Name = "KMT_HERO", Value = 3)] + KMT_HERO, + [ProtoEnum(Name = "KMT_PK", Value = 4)] + KMT_PK, + [ProtoEnum(Name = "KMT_LEAGUE", Value = 5)] + KMT_LEAGUE, + [ProtoEnum(Name = "KMT_SKYCRAFT", Value = 6)] + KMT_SKYCRAFT, + [ProtoEnum(Name = "KMT_PKTWO", Value = 7)] + KMT_PKTWO, + [ProtoEnum(Name = "KMT_MOBA", Value = 8)] + KMT_MOBA, + [ProtoEnum(Name = "KMT_WEEKEND_ACT", Value = 9)] + KMT_WEEKEND_ACT, + [ProtoEnum(Name = "KMT_CUSTOM_PKTWO", Value = 10)] + KMT_CUSTOM_PKTWO, + [ProtoEnum(Name = "KMT_SURVIVE", Value = 11)] + KMT_SURVIVE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KMatchType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/KMatchType.cs.meta new file mode 100644 index 00000000..69830e62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KMatchType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1a21b96205a47746aa8a18c99d7bead +timeCreated: 1611404254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs b/Client/Assets/Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs new file mode 100644 index 00000000..536e3a83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "KickAccountJkydMsg")] + [Serializable] + public class KickAccountJkydMsg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "msg", DataFormat = DataFormat.Default)] + public string msg + { + get + { + return this._msg ?? ""; + } + set + { + this._msg = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool msgSpecified + { + get + { + return this._msg != null; + } + set + { + bool flag = value == (this._msg == null); + if (flag) + { + this._msg = (value ? this.msg : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "kt", DataFormat = DataFormat.TwosComplement)] + public KickType kt + { + get + { + return this._kt ?? KickType.KICK_NORMAL; + } + set + { + this._kt = new KickType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ktSpecified + { + get + { + return this._kt != null; + } + set + { + bool flag = value == (this._kt == null); + if (flag) + { + this._kt = (value ? new KickType?(this.kt) : null); + } + } + } + + private string _msg; + + private KickType? _kt; + + private IExtension extensionObject; + + private bool ShouldSerializemsg() + { + return this.msgSpecified; + } + + private void Resetmsg() + { + this.msgSpecified = false; + } + + private bool ShouldSerializekt() + { + return this.ktSpecified; + } + + private void Resetkt() + { + this.ktSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs.meta new file mode 100644 index 00000000..03785621 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KickAccountJkydMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fe302544adde484ebdb687139f521b2 +timeCreated: 1611403404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KickType.cs b/Client/Assets/Scripts/XMainClient/KKSG/KickType.cs new file mode 100644 index 00000000..3e16606f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KickType.cs @@ -0,0 +1,24 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "KickType")] + public enum KickType + { + [ProtoEnum(Name = "KICK_NORMAL", Value = 0)] + KICK_NORMAL, + [ProtoEnum(Name = "KICK_RELOGIN", Value = 1)] + KICK_RELOGIN, + [ProtoEnum(Name = "KICK_GMFORBID", Value = 2)] + KICK_GMFORBID, + [ProtoEnum(Name = "KICK_SERVER_SHUTDOWN", Value = 3)] + KICK_SERVER_SHUTDOWN, + [ProtoEnum(Name = "KICK_DEL_ROLE", Value = 4)] + KICK_DEL_ROLE, + [ProtoEnum(Name = "KICK_CHANGE_PROFESSION", Value = 5)] + KICK_CHANGE_PROFESSION, + [ProtoEnum(Name = "KICK_HG", Value = 6)] + KICK_HG + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KickType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/KickType.cs.meta new file mode 100644 index 00000000..fb25401d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KickType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a32311ff17d12ca46b1a9d91d6b4690b +timeCreated: 1611404260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KillEnemyScoreData.cs b/Client/Assets/Scripts/XMainClient/KKSG/KillEnemyScoreData.cs new file mode 100644 index 00000000..7782798c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KillEnemyScoreData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "KillEnemyScoreData")] + [Serializable] + public class KillEnemyScoreData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public int score + { + get + { + return this._score ?? 0; + } + set + { + this._score = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new int?(this.score) : null); + } + } + } + + private int? _score; + + private IExtension extensionObject; + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/KillEnemyScoreData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/KillEnemyScoreData.cs.meta new file mode 100644 index 00000000..a7c084dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/KillEnemyScoreData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19a2ccd493379534aac2bd9a3b55916d +timeCreated: 1611403304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs new file mode 100644 index 00000000..2e5f0e3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs @@ -0,0 +1,223 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LBEleRoomInfo")] + [Serializable] + public class LBEleRoomInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roomid", DataFormat = DataFormat.TwosComplement)] + public uint roomid + { + get + { + return this._roomid ?? 0u; + } + set + { + this._roomid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomidSpecified + { + get + { + return this._roomid != null; + } + set + { + bool flag = value == (this._roomid == null); + if (flag) + { + this._roomid = (value ? new uint?(this.roomid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "team1", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LBEleTeamInfo team1 + { + get + { + return this._team1; + } + set + { + this._team1 = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "team2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LBEleTeamInfo team2 + { + get + { + return this._team2; + } + set + { + this._team2 = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public LBEleRoomState state + { + get + { + return this._state ?? LBEleRoomState.LBEleRoomState_Idle; + } + set + { + this._state = new LBEleRoomState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new LBEleRoomState?(this.state) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "winleagueid", DataFormat = DataFormat.TwosComplement)] + public ulong winleagueid + { + get + { + return this._winleagueid ?? 0UL; + } + set + { + this._winleagueid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winleagueidSpecified + { + get + { + return this._winleagueid != null; + } + set + { + bool flag = value == (this._winleagueid == null); + if (flag) + { + this._winleagueid = (value ? new ulong?(this.winleagueid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "liveid", DataFormat = DataFormat.TwosComplement)] + public uint liveid + { + get + { + return this._liveid ?? 0u; + } + set + { + this._liveid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveidSpecified + { + get + { + return this._liveid != null; + } + set + { + bool flag = value == (this._liveid == null); + if (flag) + { + this._liveid = (value ? new uint?(this.liveid) : null); + } + } + } + + private uint? _roomid; + + private LBEleTeamInfo _team1 = null; + + private LBEleTeamInfo _team2 = null; + + private LBEleRoomState? _state; + + private ulong? _winleagueid; + + private uint? _liveid; + + private IExtension extensionObject; + + private bool ShouldSerializeroomid() + { + return this.roomidSpecified; + } + + private void Resetroomid() + { + this.roomidSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializewinleagueid() + { + return this.winleagueidSpecified; + } + + private void Resetwinleagueid() + { + this.winleagueidSpecified = false; + } + + private bool ShouldSerializeliveid() + { + return this.liveidSpecified; + } + + private void Resetliveid() + { + this.liveidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs.meta new file mode 100644 index 00000000..f72a1f38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7fa0e8adb07825245b457d2528488de8 +timeCreated: 1611404031 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomState.cs b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomState.cs new file mode 100644 index 00000000..044b865c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomState.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LBEleRoomState")] + public enum LBEleRoomState + { + [ProtoEnum(Name = "LBEleRoomState_Idle", Value = 1)] + LBEleRoomState_Idle = 1, + [ProtoEnum(Name = "LBEleRoomState_Fighting", Value = 2)] + LBEleRoomState_Fighting, + [ProtoEnum(Name = "LBEleRoomState_Finish", Value = 3)] + LBEleRoomState_Finish + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomState.cs.meta new file mode 100644 index 00000000..3068d26b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoomState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df6b5f07591a60a41966c93981d6b515 +timeCreated: 1611404692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs new file mode 100644 index 00000000..88dbbf23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LBEleRoundInfo")] + [Serializable] + public class LBEleRoundInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "round", DataFormat = DataFormat.TwosComplement)] + public uint round + { + get + { + return this._round ?? 0u; + } + set + { + this._round = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roundSpecified + { + get + { + return this._round != null; + } + set + { + bool flag = value == (this._round == null); + if (flag) + { + this._round = (value ? new uint?(this.round) : null); + } + } + } + + [ProtoMember(2, Name = "rooms", DataFormat = DataFormat.Default)] + public List rooms + { + get + { + return this._rooms; + } + } + + private uint? _round; + + private readonly List _rooms = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeround() + { + return this.roundSpecified; + } + + private void Resetround() + { + this.roundSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs.meta new file mode 100644 index 00000000..0a2eba54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleRoundInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2071f0e0024946944947043dd8e0e6c3 +timeCreated: 1611403407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleTeamInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/LBEleTeamInfo.cs new file mode 100644 index 00000000..e1ba1106 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleTeamInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LBEleTeamInfo")] + [Serializable] + public class LBEleTeamInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "leagueid", DataFormat = DataFormat.TwosComplement)] + public ulong leagueid + { + get + { + return this._leagueid ?? 0UL; + } + set + { + this._leagueid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leagueidSpecified + { + get + { + return this._leagueid != null; + } + set + { + bool flag = value == (this._leagueid == null); + if (flag) + { + this._leagueid = (value ? new ulong?(this.leagueid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "zonename", DataFormat = DataFormat.Default)] + public string zonename + { + get + { + return this._zonename ?? ""; + } + set + { + this._zonename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool zonenameSpecified + { + get + { + return this._zonename != null; + } + set + { + bool flag = value == (this._zonename == null); + if (flag) + { + this._zonename = (value ? this.zonename : null); + } + } + } + + private ulong? _leagueid; + + private string _name; + + private uint? _serverid; + + private string _servername; + + private string _zonename; + + private IExtension extensionObject; + + private bool ShouldSerializeleagueid() + { + return this.leagueidSpecified; + } + + private void Resetleagueid() + { + this.leagueidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializezonename() + { + return this.zonenameSpecified; + } + + private void Resetzonename() + { + this.zonenameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LBEleTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LBEleTeamInfo.cs.meta new file mode 100644 index 00000000..008c1257 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LBEleTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2ecd75c849f3e14a967643b0d3c4638 +timeCreated: 1611404259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomLoginParam.cs b/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomLoginParam.cs new file mode 100644 index 00000000..adee01a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomLoginParam.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LargeRoomLoginParam")] + [Serializable] + public class LargeRoomLoginParam : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "speaker", DataFormat = DataFormat.Default)] + public bool speaker + { + get + { + return this._speaker ?? false; + } + set + { + this._speaker = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool speakerSpecified + { + get + { + return this._speaker != null; + } + set + { + bool flag = value == (this._speaker == null); + if (flag) + { + this._speaker = (value ? new bool?(this.speaker) : null); + } + } + } + + private bool? _speaker; + + private IExtension extensionObject; + + private bool ShouldSerializespeaker() + { + return this.speakerSpecified; + } + + private void Resetspeaker() + { + this.speakerSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomLoginParam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomLoginParam.cs.meta new file mode 100644 index 00000000..fa69ba34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomLoginParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8048236d70c22fa4494e858eb5dcc1e3 +timeCreated: 1611404033 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs b/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs new file mode 100644 index 00000000..ee5e4f00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LargeRoomRoleParam")] + [Serializable] + public class LargeRoomRoleParam : IExtensible + { + [ProtoMember(1, Name = "name", DataFormat = DataFormat.Default)] + public List name + { + get + { + return this._name; + } + } + + [ProtoMember(2, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + private readonly List _name = new List(); + + private readonly List _roleid = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs.meta new file mode 100644 index 00000000..7e971821 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LargeRoomRoleParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c0a1311975686d48baa07bfca66ade5 +timeCreated: 1611403501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleBaseDataNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleBaseDataNtf.cs new file mode 100644 index 00000000..a6e41487 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleBaseDataNtf.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleBaseDataNtf")] + [Serializable] + public class LeagueBattleBaseDataNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "team1", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleOneTeam team1 + { + get + { + return this._team1; + } + set + { + this._team1 = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "team2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleOneTeam team2 + { + get + { + return this._team2; + } + set + { + this._team2 = value; + } + } + + private LeagueBattleOneTeam _team1 = null; + + private LeagueBattleOneTeam _team2 = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleBaseDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleBaseDataNtf.cs.meta new file mode 100644 index 00000000..498453e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleBaseDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eaf787c3f7343934c909d22feeb02044 +timeCreated: 1611404781 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleFightState.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleFightState.cs new file mode 100644 index 00000000..c4877dce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleFightState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleFightState")] + public enum LeagueBattleFightState + { + [ProtoEnum(Name = "LBFight_None", Value = 1)] + LBFight_None = 1, + [ProtoEnum(Name = "LBFight_Wait", Value = 2)] + LBFight_Wait, + [ProtoEnum(Name = "LBFight_Fight", Value = 3)] + LBFight_Fight, + [ProtoEnum(Name = "LBFight_Result", Value = 4)] + LBFight_Result + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleFightState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleFightState.cs.meta new file mode 100644 index 00000000..0ff82d05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleFightState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2235d5354cbb8b24bb098c8830f6684d +timeCreated: 1611403420 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs new file mode 100644 index 00000000..3f5194e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs @@ -0,0 +1,94 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleLoadInfoNtf")] + [Serializable] + public class LeagueBattleLoadInfoNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleType type + { + get + { + return this._type ?? LeagueBattleType.LeagueBattleType_RacePoint; + } + set + { + this._type = new LeagueBattleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LeagueBattleType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "team1", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleTeamData team1 + { + get + { + return this._team1; + } + set + { + this._team1 = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "team2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleTeamData team2 + { + get + { + return this._team2; + } + set + { + this._team2 = value; + } + } + + private LeagueBattleType? _type; + + private LeagueBattleTeamData _team1 = null; + + private LeagueBattleTeamData _team2 = null; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs.meta new file mode 100644 index 00000000..cb0ec5d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleLoadInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a856fc776e996e4cb9d1ba081ec35fb +timeCreated: 1611404091 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleMatchTimeoutNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleMatchTimeoutNtf.cs new file mode 100644 index 00000000..1a62e511 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleMatchTimeoutNtf.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleMatchTimeoutNtf")] + [Serializable] + public class LeagueBattleMatchTimeoutNtf : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleMatchTimeoutNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleMatchTimeoutNtf.cs.meta new file mode 100644 index 00000000..7f6e0ba6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleMatchTimeoutNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9ca7a92b17524c4081fbb6785a6d5d2 +timeCreated: 1611404901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRecord.cs new file mode 100644 index 00000000..16ca4eb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRecord.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleOneRecord")] + [Serializable] + public class LeagueBattleOneRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "other_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong other_teamid + { + get + { + return this._other_teamid ?? 0UL; + } + set + { + this._other_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool other_teamidSpecified + { + get + { + return this._other_teamid != null; + } + set + { + bool flag = value == (this._other_teamid == null); + if (flag) + { + this._other_teamid = (value ? new ulong?(this.other_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "other_teamname", DataFormat = DataFormat.Default)] + public string other_teamname + { + get + { + return this._other_teamname ?? ""; + } + set + { + this._other_teamname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool other_teamnameSpecified + { + get + { + return this._other_teamname != null; + } + set + { + bool flag = value == (this._other_teamname == null); + if (flag) + { + this._other_teamname = (value ? this.other_teamname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "score_change", DataFormat = DataFormat.TwosComplement)] + public int score_change + { + get + { + return this._score_change ?? 0; + } + set + { + this._score_change = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool score_changeSpecified + { + get + { + return this._score_change != null; + } + set + { + bool flag = value == (this._score_change == null); + if (flag) + { + this._score_change = (value ? new int?(this.score_change) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public PkResultType result + { + get + { + return this._result ?? PkResultType.PkResult_Win; + } + set + { + this._result = new PkResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new PkResultType?(this.result) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleType type + { + get + { + return this._type ?? LeagueBattleType.LeagueBattleType_RacePoint; + } + set + { + this._type = new LeagueBattleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LeagueBattleType?(this.type) : null); + } + } + } + + private ulong? _other_teamid; + + private string _other_teamname; + + private string _servername; + + private uint? _serverid; + + private int? _score_change; + + private PkResultType? _result; + + private uint? _time; + + private LeagueBattleType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeother_teamid() + { + return this.other_teamidSpecified; + } + + private void Resetother_teamid() + { + this.other_teamidSpecified = false; + } + + private bool ShouldSerializeother_teamname() + { + return this.other_teamnameSpecified; + } + + private void Resetother_teamname() + { + this.other_teamnameSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializescore_change() + { + return this.score_changeSpecified; + } + + private void Resetscore_change() + { + this.score_changeSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRecord.cs.meta new file mode 100644 index 00000000..6d289ccf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71c80c85f2187464eb986207eb147fd0 +timeCreated: 1611403936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs new file mode 100644 index 00000000..5c310b30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs @@ -0,0 +1,137 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleOneResultNtf")] + [Serializable] + public class LeagueBattleOneResultNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "winrole", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleRoleBrief winrole + { + get + { + return this._winrole; + } + set + { + this._winrole = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "loserole", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleRoleBrief loserole + { + get + { + return this._loserole; + } + set + { + this._loserole = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "winhppercent", DataFormat = DataFormat.FixedSize)] + public float winhppercent + { + get + { + return this._winhppercent ?? 0f; + } + set + { + this._winhppercent = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winhppercentSpecified + { + get + { + return this._winhppercent != null; + } + set + { + bool flag = value == (this._winhppercent == null); + if (flag) + { + this._winhppercent = (value ? new float?(this.winhppercent) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "losehppercent", DataFormat = DataFormat.FixedSize)] + public float losehppercent + { + get + { + return this._losehppercent ?? 0f; + } + set + { + this._losehppercent = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losehppercentSpecified + { + get + { + return this._losehppercent != null; + } + set + { + bool flag = value == (this._losehppercent == null); + if (flag) + { + this._losehppercent = (value ? new float?(this.losehppercent) : null); + } + } + } + + private LeagueBattleRoleBrief _winrole = null; + + private LeagueBattleRoleBrief _loserole = null; + + private float? _winhppercent; + + private float? _losehppercent; + + private IExtension extensionObject; + + private bool ShouldSerializewinhppercent() + { + return this.winhppercentSpecified; + } + + private void Resetwinhppercent() + { + this.winhppercentSpecified = false; + } + + private bool ShouldSerializelosehppercent() + { + return this.losehppercentSpecified; + } + + private void Resetlosehppercent() + { + this.losehppercentSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs.meta new file mode 100644 index 00000000..cfd0229a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneResultNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef4943bf071070d49b560bdc455a4308 +timeCreated: 1611404803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRole.cs new file mode 100644 index 00000000..e93397e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRole.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleOneRole")] + [Serializable] + public class LeagueBattleOneRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "basedata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleRoleBrief basedata + { + get + { + return this._basedata; + } + set + { + this._basedata = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleRoleState state + { + get + { + return this._state ?? LeagueBattleRoleState.LBRoleState_None; + } + set + { + this._state = new LeagueBattleRoleState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new LeagueBattleRoleState?(this.state) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public int index + { + get + { + return this._index ?? 0; + } + set + { + this._index = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new int?(this.index) : null); + } + } + } + + private LeagueBattleRoleBrief _basedata = null; + + private LeagueBattleRoleState? _state; + + private int? _index; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRole.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRole.cs.meta new file mode 100644 index 00000000..597be747 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd9e16b2d9b49ad409cd3ab71f7cf59b +timeCreated: 1611404455 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneTeam.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneTeam.cs new file mode 100644 index 00000000..c900234c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneTeam.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleOneTeam")] + [Serializable] + public class LeagueBattleOneTeam : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(5, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + private ulong? _league_teamid; + + private string _name; + + private uint? _serverid; + + private uint? _score; + + private readonly List _members = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneTeam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneTeam.cs.meta new file mode 100644 index 00000000..0af7a155 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleOneTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7503479773b58a64685c5c71b6c6f018 +timeCreated: 1611403945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyOper.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyOper.cs new file mode 100644 index 00000000..31193965 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyOper.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleReadyOper")] + public enum LeagueBattleReadyOper + { + [ProtoEnum(Name = "LBReady_Up", Value = 1)] + LBReady_Up = 1, + [ProtoEnum(Name = "LBReady_Down", Value = 2)] + LBReady_Down + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyOper.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyOper.cs.meta new file mode 100644 index 00000000..9331b522 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyOper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6433e768be71b744686b1255f37c10f3 +timeCreated: 1611403847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqArg.cs new file mode 100644 index 00000000..0d3b90c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleReadyReqArg")] + [Serializable] + public class LeagueBattleReadyReqArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleReadyOper type + { + get + { + return this._type ?? LeagueBattleReadyOper.LBReady_Up; + } + set + { + this._type = new LeagueBattleReadyOper?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LeagueBattleReadyOper?(this.type) : null); + } + } + } + + private LeagueBattleReadyOper? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqArg.cs.meta new file mode 100644 index 00000000..f5138785 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34cfcb4e4fb149449ba073e99ffd5978 +timeCreated: 1611403556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqRes.cs new file mode 100644 index 00000000..a7d37d31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleReadyReqRes")] + [Serializable] + public class LeagueBattleReadyReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqRes.cs.meta new file mode 100644 index 00000000..809c3152 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReadyReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36c54a7f8cee0f24fadaec7bc7de7853 +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs new file mode 100644 index 00000000..fa39009e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleReqArg")] + [Serializable] + public class LeagueBattleReqArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleReqType type + { + get + { + return this._type ?? LeagueBattleReqType.LBReqType_Match; + } + set + { + this._type = new LeagueBattleReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LeagueBattleReqType?(this.type) : null); + } + } + } + + private LeagueBattleReqType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs.meta new file mode 100644 index 00000000..c58a54d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8c3ffd8f86c4e84c832efc0a9a67e6e +timeCreated: 1611404535 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs new file mode 100644 index 00000000..9b8d832e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleReqRes")] + [Serializable] + public class LeagueBattleReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs.meta new file mode 100644 index 00000000..4d9d0255 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 828876f2f47ead24f862bf5b00e683bc +timeCreated: 1611404041 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqType.cs new file mode 100644 index 00000000..a95cb18f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleReqType")] + public enum LeagueBattleReqType + { + [ProtoEnum(Name = "LBReqType_Match", Value = 1)] + LBReqType_Match = 1, + [ProtoEnum(Name = "LBReqType_CancelMatch", Value = 2)] + LBReqType_CancelMatch + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqType.cs.meta new file mode 100644 index 00000000..ada0a7e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03986d498716c6f49a32bae1ee84b0bc +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultNtf.cs new file mode 100644 index 00000000..3713ee5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultNtf.cs @@ -0,0 +1,94 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleResultNtf")] + [Serializable] + public class LeagueBattleResultNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleType type + { + get + { + return this._type ?? LeagueBattleType.LeagueBattleType_RacePoint; + } + set + { + this._type = new LeagueBattleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LeagueBattleType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "winteam", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleResultTeam winteam + { + get + { + return this._winteam; + } + set + { + this._winteam = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "loseteam", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleResultTeam loseteam + { + get + { + return this._loseteam; + } + set + { + this._loseteam = value; + } + } + + private LeagueBattleType? _type; + + private LeagueBattleResultTeam _winteam = null; + + private LeagueBattleResultTeam _loseteam = null; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultNtf.cs.meta new file mode 100644 index 00000000..0eaf6752 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb202a61b383cb04c9f0936ae29d1cdf +timeCreated: 1611404930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs new file mode 100644 index 00000000..ca51d983 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleResultRole")] + [Serializable] + public class LeagueBattleResultRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "basedata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueBattleRoleBrief basedata + { + get + { + return this._basedata; + } + set + { + this._basedata = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "killnum", DataFormat = DataFormat.TwosComplement)] + public uint killnum + { + get + { + return this._killnum ?? 0u; + } + set + { + this._killnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killnumSpecified + { + get + { + return this._killnum != null; + } + set + { + bool flag = value == (this._killnum == null); + if (flag) + { + this._killnum = (value ? new uint?(this.killnum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "is_up", DataFormat = DataFormat.Default)] + public bool is_up + { + get + { + return this._is_up ?? false; + } + set + { + this._is_up = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_upSpecified + { + get + { + return this._is_up != null; + } + set + { + bool flag = value == (this._is_up == null); + if (flag) + { + this._is_up = (value ? new bool?(this.is_up) : null); + } + } + } + + private LeagueBattleRoleBrief _basedata = null; + + private uint? _killnum; + + private bool? _is_up; + + private IExtension extensionObject; + + private bool ShouldSerializekillnum() + { + return this.killnumSpecified; + } + + private void Resetkillnum() + { + this.killnumSpecified = false; + } + + private bool ShouldSerializeis_up() + { + return this.is_upSpecified; + } + + private void Resetis_up() + { + this.is_upSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs.meta new file mode 100644 index 00000000..97f63778 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05e5c68b993ed4c409d914295511cb7b +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultTeam.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultTeam.cs new file mode 100644 index 00000000..fac0096e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultTeam.cs @@ -0,0 +1,418 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleResultTeam")] + [Serializable] + public class LeagueBattleResultTeam : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(5, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + [ProtoMember(6, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "score_change", DataFormat = DataFormat.TwosComplement)] + public int score_change + { + get + { + return this._score_change ?? 0; + } + set + { + this._score_change = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool score_changeSpecified + { + get + { + return this._score_change != null; + } + set + { + bool flag = value == (this._score_change == null); + if (flag) + { + this._score_change = (value ? new int?(this.score_change) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "honorpoint", DataFormat = DataFormat.TwosComplement)] + public uint honorpoint + { + get + { + return this._honorpoint ?? 0u; + } + set + { + this._honorpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool honorpointSpecified + { + get + { + return this._honorpoint != null; + } + set + { + bool flag = value == (this._honorpoint == null); + if (flag) + { + this._honorpoint = (value ? new uint?(this.honorpoint) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "rank_change", DataFormat = DataFormat.TwosComplement)] + public int rank_change + { + get + { + return this._rank_change ?? 0; + } + set + { + this._rank_change = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rank_changeSpecified + { + get + { + return this._rank_change != null; + } + set + { + bool flag = value == (this._rank_change == null); + if (flag) + { + this._rank_change = (value ? new int?(this.rank_change) : null); + } + } + } + + private ulong? _league_teamid; + + private string _name; + + private uint? _serverid; + + private string _servername; + + private readonly List _members = new List(); + + private uint? _rank; + + private uint? _score; + + private int? _score_change; + + private uint? _honorpoint; + + private int? _rank_change; + + private IExtension extensionObject; + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializescore_change() + { + return this.score_changeSpecified; + } + + private void Resetscore_change() + { + this.score_changeSpecified = false; + } + + private bool ShouldSerializehonorpoint() + { + return this.honorpointSpecified; + } + + private void Resethonorpoint() + { + this.honorpointSpecified = false; + } + + private bool ShouldSerializerank_change() + { + return this.rank_changeSpecified; + } + + private void Resetrank_change() + { + this.rank_changeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultTeam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultTeam.cs.meta new file mode 100644 index 00000000..a65472da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleResultTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 026e34691cc9bf541bc326feb71dc8bc +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleBrief.cs new file mode 100644 index 00000000..9f01ddc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleBrief.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleRoleBrief")] + [Serializable] + public class LeagueBattleRoleBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "pkpoint", DataFormat = DataFormat.TwosComplement)] + public uint pkpoint + { + get + { + return this._pkpoint ?? 0u; + } + set + { + this._pkpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pkpointSpecified + { + get + { + return this._pkpoint != null; + } + set + { + bool flag = value == (this._pkpoint == null); + if (flag) + { + this._pkpoint = (value ? new uint?(this.pkpoint) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "account", DataFormat = DataFormat.Default)] + public string account + { + get + { + return this._account ?? ""; + } + set + { + this._account = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountSpecified + { + get + { + return this._account != null; + } + set + { + bool flag = value == (this._account == null); + if (flag) + { + this._account = (value ? this.account : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _level; + + private uint? _serverid; + + private uint? _profession; + + private uint? _ppt; + + private uint? _pkpoint; + + private string _account; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializepkpoint() + { + return this.pkpointSpecified; + } + + private void Resetpkpoint() + { + this.pkpointSpecified = false; + } + + private bool ShouldSerializeaccount() + { + return this.accountSpecified; + } + + private void Resetaccount() + { + this.accountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleBrief.cs.meta new file mode 100644 index 00000000..b365d883 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdfc476655bdc0e43b98dde0c08fece3 +timeCreated: 1611404577 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleState.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleState.cs new file mode 100644 index 00000000..3d206930 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleState.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleRoleState")] + public enum LeagueBattleRoleState + { + [ProtoEnum(Name = "LBRoleState_None", Value = 1)] + LBRoleState_None = 1, + [ProtoEnum(Name = "LBRoleState_Waiting", Value = 2)] + LBRoleState_Waiting, + [ProtoEnum(Name = "LBRoleState_Leave", Value = 3)] + LBRoleState_Leave, + [ProtoEnum(Name = "LBRoleState_Fighting", Value = 4)] + LBRoleState_Fighting, + [ProtoEnum(Name = "LBRoleState_Win", Value = 5)] + LBRoleState_Win, + [ProtoEnum(Name = "LBRoleState_Failed", Value = 6)] + LBRoleState_Failed + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleState.cs.meta new file mode 100644 index 00000000..a9cae089 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleRoleState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4a60c1d962d6e04a8b8c8c31bb1f18e +timeCreated: 1611404502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStartMatchNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStartMatchNtf.cs new file mode 100644 index 00000000..d00491e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStartMatchNtf.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleStartMatchNtf")] + [Serializable] + public class LeagueBattleStartMatchNtf : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStartMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStartMatchNtf.cs.meta new file mode 100644 index 00000000..4d8447eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStartMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 104dee2f24eee2d4ba82debfe21cc049 +timeCreated: 1611403216 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStateNtf.cs new file mode 100644 index 00000000..93332d6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStateNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleStateNtf")] + [Serializable] + public class LeagueBattleStateNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleFightState state + { + get + { + return this._state ?? LeagueBattleFightState.LBFight_None; + } + set + { + this._state = new LeagueBattleFightState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new LeagueBattleFightState?(this.state) : null); + } + } + } + + private uint? _lefttime; + + private LeagueBattleFightState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStateNtf.cs.meta new file mode 100644 index 00000000..b229d1c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb538cf85e1bb074a83e9e5a449705fc +timeCreated: 1611404930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStopMatchNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStopMatchNtf.cs new file mode 100644 index 00000000..2a4a2245 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStopMatchNtf.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleStopMatchNtf")] + [Serializable] + public class LeagueBattleStopMatchNtf : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStopMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStopMatchNtf.cs.meta new file mode 100644 index 00000000..d63d6717 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleStopMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4388b2dfdb174024799bf9e34c278ab5 +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTeamData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTeamData.cs new file mode 100644 index 00000000..9009f7e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTeamData.cs @@ -0,0 +1,375 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleTeamData")] + [Serializable] + public class LeagueBattleTeamData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "total_num", DataFormat = DataFormat.TwosComplement)] + public uint total_num + { + get + { + return this._total_num ?? 0u; + } + set + { + this._total_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool total_numSpecified + { + get + { + return this._total_num != null; + } + set + { + bool flag = value == (this._total_num == null); + if (flag) + { + this._total_num = (value ? new uint?(this.total_num) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "total_win", DataFormat = DataFormat.TwosComplement)] + public uint total_win + { + get + { + return this._total_win ?? 0u; + } + set + { + this._total_win = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool total_winSpecified + { + get + { + return this._total_win != null; + } + set + { + bool flag = value == (this._total_win == null); + if (flag) + { + this._total_win = (value ? new uint?(this.total_win) : null); + } + } + } + + [ProtoMember(9, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + private ulong? _league_teamid; + + private string _name; + + private uint? _serverid; + + private string _servername; + + private uint? _score; + + private uint? _rank; + + private uint? _total_num; + + private uint? _total_win; + + private readonly List _members = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializetotal_num() + { + return this.total_numSpecified; + } + + private void Resettotal_num() + { + this.total_numSpecified = false; + } + + private bool ShouldSerializetotal_win() + { + return this.total_winSpecified; + } + + private void Resettotal_win() + { + this.total_winSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTeamData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTeamData.cs.meta new file mode 100644 index 00000000..74dbceed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTeamData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf7d8f3bf71e55a4b99111412323fce2 +timeCreated: 1611404483 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTimeState.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTimeState.cs new file mode 100644 index 00000000..e9e628d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTimeState.cs @@ -0,0 +1,28 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleTimeState")] + public enum LeagueBattleTimeState + { + [ProtoEnum(Name = "LBTS_BeforeOpen", Value = 1)] + LBTS_BeforeOpen = 1, + [ProtoEnum(Name = "LBTS_Apply", Value = 2)] + LBTS_Apply, + [ProtoEnum(Name = "LBTS_Idle", Value = 3)] + LBTS_Idle, + [ProtoEnum(Name = "LBTS_PointRace", Value = 4)] + LBTS_PointRace, + [ProtoEnum(Name = "LBTS_Elimination", Value = 5)] + LBTS_Elimination, + [ProtoEnum(Name = "LBTS_CrossIdle", Value = 6)] + LBTS_CrossIdle, + [ProtoEnum(Name = "LBTS_CrossPointRace", Value = 7)] + LBTS_CrossPointRace, + [ProtoEnum(Name = "LBTS_CrossElimination", Value = 8)] + LBTS_CrossElimination, + [ProtoEnum(Name = "LBTS_SeasonEnd", Value = 9)] + LBTS_SeasonEnd + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTimeState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTimeState.cs.meta new file mode 100644 index 00000000..47922cea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleTimeState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1505a81ad05cf884db349b389d7265c1 +timeCreated: 1611403261 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleType.cs new file mode 100644 index 00000000..5d7492d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueBattleType")] + public enum LeagueBattleType + { + [ProtoEnum(Name = "LeagueBattleType_RacePoint", Value = 1)] + LeagueBattleType_RacePoint = 1, + [ProtoEnum(Name = "LeagueBattleType_Eliminate", Value = 2)] + LeagueBattleType_Eliminate, + [ProtoEnum(Name = "LeagueBattleType_CrossRacePoint", Value = 3)] + LeagueBattleType_CrossRacePoint, + [ProtoEnum(Name = "LeagueBattleType_CrossEliminate", Value = 4)] + LeagueBattleType_CrossEliminate + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleType.cs.meta new file mode 100644 index 00000000..3f7aa3d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueBattleType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b11bad0f4d087734682f7089f08bdc56 +timeCreated: 1611404354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueEliType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueEliType.cs new file mode 100644 index 00000000..4b51c66c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueEliType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueEliType")] + public enum LeagueEliType + { + [ProtoEnum(Name = "LeagueEliType_None", Value = 1)] + LeagueEliType_None = 1, + [ProtoEnum(Name = "LeagueEliType_Self", Value = 2)] + LeagueEliType_Self, + [ProtoEnum(Name = "LeagueEliType_Cross", Value = 3)] + LeagueEliType_Cross + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueEliType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueEliType.cs.meta new file mode 100644 index 00000000..eb96a56a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueEliType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2ec3883a322b4b4390f860a77846c5d +timeCreated: 1611404387 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueRankData.cs new file mode 100644 index 00000000..9c83b937 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueRankData.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueRankData")] + [Serializable] + public class LeagueRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "teamname", DataFormat = DataFormat.Default)] + public string teamname + { + get + { + return this._teamname ?? ""; + } + set + { + this._teamname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamnameSpecified + { + get + { + return this._teamname != null; + } + set + { + bool flag = value == (this._teamname == null); + if (flag) + { + this._teamname = (value ? this.teamname : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "winnum", DataFormat = DataFormat.TwosComplement)] + public uint winnum + { + get + { + return this._winnum ?? 0u; + } + set + { + this._winnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winnumSpecified + { + get + { + return this._winnum != null; + } + set + { + bool flag = value == (this._winnum == null); + if (flag) + { + this._winnum = (value ? new uint?(this.winnum) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "winrate", DataFormat = DataFormat.FixedSize)] + public float winrate + { + get + { + return this._winrate ?? 0f; + } + set + { + this._winrate = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winrateSpecified + { + get + { + return this._winrate != null; + } + set + { + bool flag = value == (this._winrate == null); + if (flag) + { + this._winrate = (value ? new float?(this.winrate) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "continuewin", DataFormat = DataFormat.TwosComplement)] + public uint continuewin + { + get + { + return this._continuewin ?? 0u; + } + set + { + this._continuewin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool continuewinSpecified + { + get + { + return this._continuewin != null; + } + set + { + bool flag = value == (this._continuewin == null); + if (flag) + { + this._continuewin = (value ? new uint?(this.continuewin) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "joincount", DataFormat = DataFormat.TwosComplement)] + public uint joincount + { + get + { + return this._joincount ?? 0u; + } + set + { + this._joincount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joincountSpecified + { + get + { + return this._joincount != null; + } + set + { + bool flag = value == (this._joincount == null); + if (flag) + { + this._joincount = (value ? new uint?(this.joincount) : null); + } + } + } + + private ulong? _league_teamid; + + private uint? _serverid; + + private string _servername; + + private string _teamname; + + private uint? _point; + + private uint? _winnum; + + private float? _winrate; + + private uint? _continuewin; + + private uint? _joincount; + + private IExtension extensionObject; + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializeteamname() + { + return this.teamnameSpecified; + } + + private void Resetteamname() + { + this.teamnameSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializewinnum() + { + return this.winnumSpecified; + } + + private void Resetwinnum() + { + this.winnumSpecified = false; + } + + private bool ShouldSerializewinrate() + { + return this.winrateSpecified; + } + + private void Resetwinrate() + { + this.winrateSpecified = false; + } + + private bool ShouldSerializecontinuewin() + { + return this.continuewinSpecified; + } + + private void Resetcontinuewin() + { + this.continuewinSpecified = false; + } + + private bool ShouldSerializejoincount() + { + return this.joincountSpecified; + } + + private void Resetjoincount() + { + this.joincountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueRankData.cs.meta new file mode 100644 index 00000000..ca5d45fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4219a7e0242d35e4597ab91b8e9a81eb +timeCreated: 1611403638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs new file mode 100644 index 00000000..525d5bf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueTeamDetail")] + [Serializable] + public class LeagueTeamDetail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "teamname", DataFormat = DataFormat.Default)] + public string teamname + { + get + { + return this._teamname ?? ""; + } + set + { + this._teamname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamnameSpecified + { + get + { + return this._teamname != null; + } + set + { + bool flag = value == (this._teamname == null); + if (flag) + { + this._teamname = (value ? this.teamname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "zonename", DataFormat = DataFormat.Default)] + public string zonename + { + get + { + return this._zonename ?? ""; + } + set + { + this._zonename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool zonenameSpecified + { + get + { + return this._zonename != null; + } + set + { + bool flag = value == (this._zonename == null); + if (flag) + { + this._zonename = (value ? this.zonename : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(6, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + [ProtoMember(7, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private ulong? _league_teamid; + + private string _teamname; + + private uint? _serverid; + + private string _zonename; + + private string _servername; + + private readonly List _members = new List(); + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializeteamname() + { + return this.teamnameSpecified; + } + + private void Resetteamname() + { + this.teamnameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializezonename() + { + return this.zonenameSpecified; + } + + private void Resetzonename() + { + this.zonenameSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs.meta new file mode 100644 index 00000000..9f639b78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamDetail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d216b18ebe85abf4c82f416b435058e8 +timeCreated: 1611404594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamMemberDetail.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamMemberDetail.cs new file mode 100644 index 00000000..09edf6c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamMemberDetail.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueTeamMemberDetail")] + [Serializable] + public class LeagueTeamMemberDetail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "brief", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleOutLookBrief brief + { + get + { + return this._brief; + } + set + { + this._brief = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "pkpoint", DataFormat = DataFormat.TwosComplement)] + public uint pkpoint + { + get + { + return this._pkpoint ?? 0u; + } + set + { + this._pkpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pkpointSpecified + { + get + { + return this._pkpoint != null; + } + set + { + bool flag = value == (this._pkpoint == null); + if (flag) + { + this._pkpoint = (value ? new uint?(this.pkpoint) : null); + } + } + } + + private RoleOutLookBrief _brief = null; + + private uint? _pkpoint; + + private IExtension extensionObject; + + private bool ShouldSerializepkpoint() + { + return this.pkpointSpecified; + } + + private void Resetpkpoint() + { + this.pkpointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamMemberDetail.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamMemberDetail.cs.meta new file mode 100644 index 00000000..09fd75b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamMemberDetail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8c548d0faceeeb409649079cc8d2185 +timeCreated: 1611404406 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamState.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamState.cs new file mode 100644 index 00000000..d852b016 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamState.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeagueTeamState")] + public enum LeagueTeamState + { + [ProtoEnum(Name = "LeagueTeamState_Idle", Value = 1)] + LeagueTeamState_Idle = 1, + [ProtoEnum(Name = "LeagueTeamState_Match", Value = 2)] + LeagueTeamState_Match, + [ProtoEnum(Name = "LeagueTeamState_Battle", Value = 3)] + LeagueTeamState_Battle + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamState.cs.meta new file mode 100644 index 00000000..96423c34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeagueTeamState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1b0cdade97628440bf154fcd09c0d0b +timeCreated: 1611404254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs b/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs new file mode 100644 index 00000000..9b1b2927 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LearnGuildSkillAgr")] + [Serializable] + public class LearnGuildSkillAgr : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "skillId", DataFormat = DataFormat.TwosComplement)] + public uint skillId + { + get + { + return this._skillId ?? 0u; + } + set + { + this._skillId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillIdSpecified + { + get + { + return this._skillId != null; + } + set + { + bool flag = value == (this._skillId == null); + if (flag) + { + this._skillId = (value ? new uint?(this.skillId) : null); + } + } + } + + private uint? _skillId; + + private IExtension extensionObject; + + private bool ShouldSerializeskillId() + { + return this.skillIdSpecified; + } + + private void ResetskillId() + { + this.skillIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs.meta new file mode 100644 index 00000000..8c0b42eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillAgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: adfe84307486eb74487bcd6feef0c9d8 +timeCreated: 1611404337 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs new file mode 100644 index 00000000..437a401c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LearnGuildSkillRes")] + [Serializable] + public class LearnGuildSkillRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs.meta new file mode 100644 index 00000000..92009a2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LearnGuildSkillRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c121e54ec3ab9448a99c8bd21917a00 +timeCreated: 1611403995 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildArg.cs new file mode 100644 index 00000000..7dece889 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveDragonGuildArg")] + [Serializable] + public class LeaveDragonGuildArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildArg.cs.meta new file mode 100644 index 00000000..4d7dc3fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53626fae03bc038449ea1c47c0221bb3 +timeCreated: 1611403711 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildRes.cs new file mode 100644 index 00000000..ec2eae44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveDragonGuildRes")] + [Serializable] + public class LeaveDragonGuildRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildRes.cs.meta new file mode 100644 index 00000000..5e5ecc1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveDragonGuildRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fdc63c225985a20448825fa3878aa233 +timeCreated: 1611404938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildArg.cs new file mode 100644 index 00000000..edda431f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveGuildArg")] + [Serializable] + public class LeaveGuildArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + private ulong? _roleID; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildArg.cs.meta new file mode 100644 index 00000000..a63027f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3572029f83c2b445ac4556994d30c53 +timeCreated: 1611404598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildRes.cs new file mode 100644 index 00000000..c987fdec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveGuildRes")] + [Serializable] + public class LeaveGuildRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildRes.cs.meta new file mode 100644 index 00000000..80c641b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveGuildRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eacfc657b48d20041a21eedff0bfa07d +timeCreated: 1611404781 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveLargeRoomParam.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLargeRoomParam.cs new file mode 100644 index 00000000..f22af447 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLargeRoomParam.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveLargeRoomParam")] + [Serializable] + public class LeaveLargeRoomParam : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveLargeRoomParam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLargeRoomParam.cs.meta new file mode 100644 index 00000000..01f76dd1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLargeRoomParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3625829aa73b1a49829911b7ba251ae +timeCreated: 1611404389 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs new file mode 100644 index 00000000..caf1adaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveLeagueTeamArg")] + [Serializable] + public class LeaveLeagueTeamArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs.meta new file mode 100644 index 00000000..bcd06fbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 212e2b0132fc7744ca345b3ed8d88cb4 +timeCreated: 1611403412 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs new file mode 100644 index 00000000..ec1e00a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveLeagueTeamRes")] + [Serializable] + public class LeaveLeagueTeamRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs.meta new file mode 100644 index 00000000..c191c92c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveLeagueTeamRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25f405e9ed6b771469a5dec8afea44c8 +timeCreated: 1611403466 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerArg.cs new file mode 100644 index 00000000..6e0e700e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeavePartnerArg")] + [Serializable] + public class LeavePartnerArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerArg.cs.meta new file mode 100644 index 00000000..518876d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f74f5f0a86e0cb4aa132d6deacd87eb +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerRes.cs new file mode 100644 index 00000000..7a21c2b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeavePartnerRes")] + [Serializable] + public class LeavePartnerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerRes.cs.meta new file mode 100644 index 00000000..d51a2d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeavePartnerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a85e4749c1823f34bb563192b95b0bff +timeCreated: 1611404295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveSceneType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSceneType.cs new file mode 100644 index 00000000..180013fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSceneType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveSceneType")] + public enum LeaveSceneType + { + [ProtoEnum(Name = "LEAVE_SCENE_LOGOUT", Value = 1)] + LEAVE_SCENE_LOGOUT = 1, + [ProtoEnum(Name = "LEAVE_SCENE_SWITCH", Value = 2)] + LEAVE_SCENE_SWITCH + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveSceneType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSceneType.cs.meta new file mode 100644 index 00000000..368b2eaf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSceneType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13846c08965cf494893d2cc9db69f163 +timeCreated: 1611403249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs new file mode 100644 index 00000000..9113c735 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveSkyTeamArg")] + [Serializable] + public class LeaveSkyTeamArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs.meta new file mode 100644 index 00000000..13bf51b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7640f63ba2f0a944f976e8000d503360 +timeCreated: 1611403949 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs new file mode 100644 index 00000000..ec802f27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveSkyTeamRes")] + [Serializable] + public class LeaveSkyTeamRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs.meta new file mode 100644 index 00000000..c121d130 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveSkyTeamRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea2f728172e9eac48b6d2fb86584dd65 +timeCreated: 1611404777 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveTeamType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LeaveTeamType.cs new file mode 100644 index 00000000..e10cbb71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveTeamType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LeaveTeamType")] + public enum LeaveTeamType + { + [ProtoEnum(Name = "LTT_BY_SELF", Value = 0)] + LTT_BY_SELF, + [ProtoEnum(Name = "LTT_KICK", Value = 1)] + LTT_KICK, + [ProtoEnum(Name = "LTT_DEL_ROBOT", Value = 2)] + LTT_DEL_ROBOT, + [ProtoEnum(Name = "LTT_MS_CRASH", Value = 3)] + LTT_MS_CRASH, + [ProtoEnum(Name = "LLT_LEADER_TIMEOVER", Value = 4)] + LLT_LEADER_TIMEOVER + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LeaveTeamType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LeaveTeamType.cs.meta new file mode 100644 index 00000000..c60d757a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LeaveTeamType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c73e1cd93b086348b270203256fb68a +timeCreated: 1611403898 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs new file mode 100644 index 00000000..7fe47f51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs @@ -0,0 +1,182 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelChanged")] + [Serializable] + public class LevelChanged : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public ulong exp + { + get + { + return this._exp ?? 0UL; + } + set + { + this._exp = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new ulong?(this.exp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "maxexp", DataFormat = DataFormat.TwosComplement)] + public ulong maxexp + { + get + { + return this._maxexp ?? 0UL; + } + set + { + this._maxexp = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxexpSpecified + { + get + { + return this._maxexp != null; + } + set + { + bool flag = value == (this._maxexp == null); + if (flag) + { + this._maxexp = (value ? new ulong?(this.maxexp) : null); + } + } + } + + [ProtoMember(4, Name = "attrid", DataFormat = DataFormat.TwosComplement)] + public List attrid + { + get + { + return this._attrid; + } + } + + [ProtoMember(5, Name = "attroldvalue", DataFormat = DataFormat.TwosComplement)] + public List attroldvalue + { + get + { + return this._attroldvalue; + } + } + + [ProtoMember(6, Name = "attrnewvalue", DataFormat = DataFormat.TwosComplement)] + public List attrnewvalue + { + get + { + return this._attrnewvalue; + } + } + + private uint? _level; + + private ulong? _exp; + + private ulong? _maxexp; + + private readonly List _attrid = new List(); + + private readonly List _attroldvalue = new List(); + + private readonly List _attrnewvalue = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializemaxexp() + { + return this.maxexpSpecified; + } + + private void Resetmaxexp() + { + this.maxexpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs.meta new file mode 100644 index 00000000..e84ac659 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f044db0528b6fbc4c81209355f43c0e6 +timeCreated: 1611404831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelScriptStateData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelScriptStateData.cs new file mode 100644 index 00000000..61952f6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelScriptStateData.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelScriptStateData")] + [Serializable] + public class LevelScriptStateData : IExtensible + { + [ProtoMember(1, Name = "doorStates", DataFormat = DataFormat.Default)] + public List doorStates + { + get + { + return this._doorStates; + } + } + + private readonly List _doorStates = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelScriptStateData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelScriptStateData.cs.meta new file mode 100644 index 00000000..d4b6d4a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelScriptStateData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3b1d93b8a886504486cf44777d87352 +timeCreated: 1611404850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealButtonType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealButtonType.cs new file mode 100644 index 00000000..1cede8b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealButtonType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelSealButtonType")] + public enum LevelSealButtonType + { + [ProtoEnum(Name = "BUTTON_STATUS_NONE", Value = 0)] + BUTTON_STATUS_NONE, + [ProtoEnum(Name = "BUTTON_STATUS_LOCKED", Value = 1)] + BUTTON_STATUS_LOCKED, + [ProtoEnum(Name = "BUTTON_STATUS_UNLOCKED", Value = 2)] + BUTTON_STATUS_UNLOCKED + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealButtonType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealButtonType.cs.meta new file mode 100644 index 00000000..8b810b5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealButtonType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 566c3d41babb85f40ad33f4da3aaf325 +timeCreated: 1611403743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeArg.cs new file mode 100644 index 00000000..79a243ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelSealExchangeArg")] + [Serializable] + public class LevelSealExchangeArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeArg.cs.meta new file mode 100644 index 00000000..06c90774 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07937d4e562a0c447868324d5a573682 +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeRes.cs new file mode 100644 index 00000000..fffacfd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelSealExchangeRes")] + [Serializable] + public class LevelSealExchangeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeRes.cs.meta new file mode 100644 index 00000000..ff426aae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealExchangeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 401d7bbb8eba0b541beb21df789ae85b +timeCreated: 1611403613 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealInfo.cs new file mode 100644 index 00000000..818b284e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealInfo.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelSealInfo")] + [Serializable] + public class LevelSealInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "endTime", DataFormat = DataFormat.TwosComplement)] + public uint endTime + { + get + { + return this._endTime ?? 0u; + } + set + { + this._endTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endTimeSpecified + { + get + { + return this._endTime != null; + } + set + { + bool flag = value == (this._endTime == null); + if (flag) + { + this._endTime = (value ? new uint?(this.endTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "unLockBossCount", DataFormat = DataFormat.TwosComplement)] + public uint unLockBossCount + { + get + { + return this._unLockBossCount ?? 0u; + } + set + { + this._unLockBossCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unLockBossCountSpecified + { + get + { + return this._unLockBossCount != null; + } + set + { + bool flag = value == (this._unLockBossCount == null); + if (flag) + { + this._unLockBossCount = (value ? new uint?(this.unLockBossCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "status", DataFormat = DataFormat.TwosComplement)] + public uint status + { + get + { + return this._status ?? 0u; + } + set + { + this._status = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statusSpecified + { + get + { + return this._status != null; + } + set + { + bool flag = value == (this._status == null); + if (flag) + { + this._status = (value ? new uint?(this.status) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "totalCollectCount", DataFormat = DataFormat.TwosComplement)] + public uint totalCollectCount + { + get + { + return this._totalCollectCount ?? 0u; + } + set + { + this._totalCollectCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalCollectCountSpecified + { + get + { + return this._totalCollectCount != null; + } + set + { + bool flag = value == (this._totalCollectCount == null); + if (flag) + { + this._totalCollectCount = (value ? new uint?(this.totalCollectCount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "selfCollectCount", DataFormat = DataFormat.TwosComplement)] + public uint selfCollectCount + { + get + { + return this._selfCollectCount ?? 0u; + } + set + { + this._selfCollectCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selfCollectCountSpecified + { + get + { + return this._selfCollectCount != null; + } + set + { + bool flag = value == (this._selfCollectCount == null); + if (flag) + { + this._selfCollectCount = (value ? new uint?(this.selfCollectCount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "selfAwardCountIndex", DataFormat = DataFormat.TwosComplement)] + public int selfAwardCountIndex + { + get + { + return this._selfAwardCountIndex ?? 0; + } + set + { + this._selfAwardCountIndex = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selfAwardCountIndexSpecified + { + get + { + return this._selfAwardCountIndex != null; + } + set + { + bool flag = value == (this._selfAwardCountIndex == null); + if (flag) + { + this._selfAwardCountIndex = (value ? new int?(this.selfAwardCountIndex) : null); + } + } + } + + private uint? _type; + + private uint? _endTime; + + private uint? _unLockBossCount; + + private uint? _status; + + private uint? _totalCollectCount; + + private uint? _selfCollectCount; + + private int? _selfAwardCountIndex; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeendTime() + { + return this.endTimeSpecified; + } + + private void ResetendTime() + { + this.endTimeSpecified = false; + } + + private bool ShouldSerializeunLockBossCount() + { + return this.unLockBossCountSpecified; + } + + private void ResetunLockBossCount() + { + this.unLockBossCountSpecified = false; + } + + private bool ShouldSerializestatus() + { + return this.statusSpecified; + } + + private void Resetstatus() + { + this.statusSpecified = false; + } + + private bool ShouldSerializetotalCollectCount() + { + return this.totalCollectCountSpecified; + } + + private void ResettotalCollectCount() + { + this.totalCollectCountSpecified = false; + } + + private bool ShouldSerializeselfCollectCount() + { + return this.selfCollectCountSpecified; + } + + private void ResetselfCollectCount() + { + this.selfCollectCountSpecified = false; + } + + private bool ShouldSerializeselfAwardCountIndex() + { + return this.selfAwardCountIndexSpecified; + } + + private void ResetselfAwardCountIndex() + { + this.selfAwardCountIndexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealInfo.cs.meta new file mode 100644 index 00000000..5786c553 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1e515ad1809a8f4396d5b298f78b8e1 +timeCreated: 1611404840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpArg.cs new file mode 100644 index 00000000..d29a88e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelSealOverExpArg")] + [Serializable] + public class LevelSealOverExpArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpArg.cs.meta new file mode 100644 index 00000000..90dd0a56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a449686cec1b40d42a07c69199ad4f40 +timeCreated: 1611404282 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpRes.cs new file mode 100644 index 00000000..df5f9dd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelSealOverExpRes")] + [Serializable] + public class LevelSealOverExpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "m_uStatus", DataFormat = DataFormat.TwosComplement)] + public uint m_uStatus + { + get + { + return this._m_uStatus ?? 0u; + } + set + { + this._m_uStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool m_uStatusSpecified + { + get + { + return this._m_uStatus != null; + } + set + { + bool flag = value == (this._m_uStatus == null); + if (flag) + { + this._m_uStatus = (value ? new uint?(this.m_uStatus) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _m_uStatus; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializem_uStatus() + { + return this.m_uStatusSpecified; + } + + private void Resetm_uStatus() + { + this.m_uStatusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpRes.cs.meta new file mode 100644 index 00000000..35c22b83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealOverExpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1028dd44c2729f84685a88a2ba42be5e +timeCreated: 1611403216 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealRecord.cs new file mode 100644 index 00000000..d21e1694 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealRecord.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelSealRecord")] + [Serializable] + public class LevelSealRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "selfCollectCount", DataFormat = DataFormat.TwosComplement)] + public uint selfCollectCount + { + get + { + return this._selfCollectCount ?? 0u; + } + set + { + this._selfCollectCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selfCollectCountSpecified + { + get + { + return this._selfCollectCount != null; + } + set + { + bool flag = value == (this._selfCollectCount == null); + if (flag) + { + this._selfCollectCount = (value ? new uint?(this.selfCollectCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "selfAwardCountIndex", DataFormat = DataFormat.TwosComplement)] + public int selfAwardCountIndex + { + get + { + return this._selfAwardCountIndex ?? 0; + } + set + { + this._selfAwardCountIndex = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selfAwardCountIndexSpecified + { + get + { + return this._selfAwardCountIndex != null; + } + set + { + bool flag = value == (this._selfAwardCountIndex == null); + if (flag) + { + this._selfAwardCountIndex = (value ? new int?(this.selfAwardCountIndex) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "LevelSealButtonStatus", DataFormat = DataFormat.TwosComplement)] + public uint LevelSealButtonStatus + { + get + { + return this._LevelSealButtonStatus ?? 0u; + } + set + { + this._LevelSealButtonStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LevelSealButtonStatusSpecified + { + get + { + return this._LevelSealButtonStatus != null; + } + set + { + bool flag = value == (this._LevelSealButtonStatus == null); + if (flag) + { + this._LevelSealButtonStatus = (value ? new uint?(this.LevelSealButtonStatus) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "lastLevelSealStatus", DataFormat = DataFormat.Default)] + public bool lastLevelSealStatus + { + get + { + return this._lastLevelSealStatus ?? false; + } + set + { + this._lastLevelSealStatus = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastLevelSealStatusSpecified + { + get + { + return this._lastLevelSealStatus != null; + } + set + { + bool flag = value == (this._lastLevelSealStatus == null); + if (flag) + { + this._lastLevelSealStatus = (value ? new bool?(this.lastLevelSealStatus) : null); + } + } + } + + private uint? _type; + + private uint? _selfCollectCount; + + private int? _selfAwardCountIndex; + + private uint? _LevelSealButtonStatus; + + private bool? _lastLevelSealStatus; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeselfCollectCount() + { + return this.selfCollectCountSpecified; + } + + private void ResetselfCollectCount() + { + this.selfCollectCountSpecified = false; + } + + private bool ShouldSerializeselfAwardCountIndex() + { + return this.selfAwardCountIndexSpecified; + } + + private void ResetselfAwardCountIndex() + { + this.selfAwardCountIndexSpecified = false; + } + + private bool ShouldSerializeLevelSealButtonStatus() + { + return this.LevelSealButtonStatusSpecified; + } + + private void ResetLevelSealButtonStatus() + { + this.LevelSealButtonStatusSpecified = false; + } + + private bool ShouldSerializelastLevelSealStatus() + { + return this.lastLevelSealStatusSpecified; + } + + private void ResetlastLevelSealStatus() + { + this.lastLevelSealStatusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelSealRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealRecord.cs.meta new file mode 100644 index 00000000..84e36262 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelSealRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b900727330384b041a352a84b1e717c9 +timeCreated: 1611404408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs new file mode 100644 index 00000000..26bcf337 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelUpSlotAttrArg")] + [Serializable] + public class LevelUpSlotAttrArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public uint slot + { + get + { + return this._slot ?? 0u; + } + set + { + this._slot = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new uint?(this.slot) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _slot; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs.meta new file mode 100644 index 00000000..5b5d23c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa8f4ce809ac04a4188ff1e2ecdbd8b7 +timeCreated: 1611404303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs new file mode 100644 index 00000000..4b8d15da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LevelUpSlotAttrRes")] + [Serializable] + public class LevelUpSlotAttrRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "uplevels", DataFormat = DataFormat.TwosComplement)] + public List uplevels + { + get + { + return this._uplevels; + } + } + + private ErrorCode? _errorcode; + + private readonly List _uplevels = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs.meta new file mode 100644 index 00000000..9bbcb466 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LevelUpSlotAttrRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41e66b219fc015340b03f0fe87fa22b8 +timeCreated: 1611403637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LiveIconData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LiveIconData.cs new file mode 100644 index 00000000..43fc321f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LiveIconData.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LiveIconData")] + [Serializable] + public class LiveIconData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "liveType", DataFormat = DataFormat.TwosComplement)] + public int liveType + { + get + { + return this._liveType ?? 0; + } + set + { + this._liveType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveTypeSpecified + { + get + { + return this._liveType != null; + } + set + { + bool flag = value == (this._liveType == null); + if (flag) + { + this._liveType = (value ? new int?(this.liveType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "liveID", DataFormat = DataFormat.TwosComplement)] + public int liveID + { + get + { + return this._liveID ?? 0; + } + set + { + this._liveID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveIDSpecified + { + get + { + return this._liveID != null; + } + set + { + bool flag = value == (this._liveID == null); + if (flag) + { + this._liveID = (value ? new int?(this.liveID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "liveInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OneLiveRecordInfo liveInfo + { + get + { + return this._liveInfo; + } + set + { + this._liveInfo = value; + } + } + + private int? _liveType; + + private int? _liveID; + + private OneLiveRecordInfo _liveInfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeliveType() + { + return this.liveTypeSpecified; + } + + private void ResetliveType() + { + this.liveTypeSpecified = false; + } + + private bool ShouldSerializeliveID() + { + return this.liveIDSpecified; + } + + private void ResetliveID() + { + this.liveIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LiveIconData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LiveIconData.cs.meta new file mode 100644 index 00000000..816cc9a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LiveIconData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0eb5271b2ec68b84183c34ada0c8bee3 +timeCreated: 1611403205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LiveNameInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/LiveNameInfo.cs new file mode 100644 index 00000000..b72a066d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LiveNameInfo.cs @@ -0,0 +1,379 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LiveNameInfo")] + [Serializable] + public class LiveNameInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildID", DataFormat = DataFormat.TwosComplement)] + public ulong guildID + { + get + { + return this._guildID ?? 0UL; + } + set + { + this._guildID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildIDSpecified + { + get + { + return this._guildID != null; + } + set + { + bool flag = value == (this._guildID == null); + if (flag) + { + this._guildID = (value ? new ulong?(this.guildID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildName", DataFormat = DataFormat.Default)] + public string guildName + { + get + { + return this._guildName ?? ""; + } + set + { + this._guildName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildNameSpecified + { + get + { + return this._guildName != null; + } + set + { + bool flag = value == (this._guildName == null); + if (flag) + { + this._guildName = (value ? this.guildName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "guildIcon", DataFormat = DataFormat.TwosComplement)] + public int guildIcon + { + get + { + return this._guildIcon ?? 0; + } + set + { + this._guildIcon = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildIconSpecified + { + get + { + return this._guildIcon != null; + } + set + { + bool flag = value == (this._guildIcon == null); + if (flag) + { + this._guildIcon = (value ? new int?(this.guildIcon) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBriefInfo roleInfo + { + get + { + return this._roleInfo; + } + set + { + this._roleInfo = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "teamLeaderName", DataFormat = DataFormat.Default)] + public string teamLeaderName + { + get + { + return this._teamLeaderName ?? ""; + } + set + { + this._teamLeaderName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamLeaderNameSpecified + { + get + { + return this._teamLeaderName != null; + } + set + { + bool flag = value == (this._teamLeaderName == null); + if (flag) + { + this._teamLeaderName = (value ? this.teamLeaderName : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "isLeft", DataFormat = DataFormat.Default)] + public bool isLeft + { + get + { + return this._isLeft ?? false; + } + set + { + this._isLeft = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isLeftSpecified + { + get + { + return this._isLeft != null; + } + set + { + bool flag = value == (this._isLeft == null); + if (flag) + { + this._isLeft = (value ? new bool?(this.isLeft) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "teamName", DataFormat = DataFormat.Default)] + public string teamName + { + get + { + return this._teamName ?? ""; + } + set + { + this._teamName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamNameSpecified + { + get + { + return this._teamName != null; + } + set + { + bool flag = value == (this._teamName == null); + if (flag) + { + this._teamName = (value ? this.teamName : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "leagueID", DataFormat = DataFormat.TwosComplement)] + public ulong leagueID + { + get + { + return this._leagueID ?? 0UL; + } + set + { + this._leagueID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leagueIDSpecified + { + get + { + return this._leagueID != null; + } + set + { + bool flag = value == (this._leagueID == null); + if (flag) + { + this._leagueID = (value ? new ulong?(this.leagueID) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + private ulong? _guildID; + + private string _guildName; + + private int? _guildIcon; + + private RoleBriefInfo _roleInfo = null; + + private string _teamLeaderName; + + private bool? _isLeft; + + private string _teamName; + + private ulong? _leagueID; + + private uint? _serverid; + + private IExtension extensionObject; + + private bool ShouldSerializeguildID() + { + return this.guildIDSpecified; + } + + private void ResetguildID() + { + this.guildIDSpecified = false; + } + + private bool ShouldSerializeguildName() + { + return this.guildNameSpecified; + } + + private void ResetguildName() + { + this.guildNameSpecified = false; + } + + private bool ShouldSerializeguildIcon() + { + return this.guildIconSpecified; + } + + private void ResetguildIcon() + { + this.guildIconSpecified = false; + } + + private bool ShouldSerializeteamLeaderName() + { + return this.teamLeaderNameSpecified; + } + + private void ResetteamLeaderName() + { + this.teamLeaderNameSpecified = false; + } + + private bool ShouldSerializeisLeft() + { + return this.isLeftSpecified; + } + + private void ResetisLeft() + { + this.isLeftSpecified = false; + } + + private bool ShouldSerializeteamName() + { + return this.teamNameSpecified; + } + + private void ResetteamName() + { + this.teamNameSpecified = false; + } + + private bool ShouldSerializeleagueID() + { + return this.leagueIDSpecified; + } + + private void ResetleagueID() + { + this.leagueIDSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LiveNameInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LiveNameInfo.cs.meta new file mode 100644 index 00000000..7c58dd95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LiveNameInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46fb846f1d3da074f91428cce7ea1fdf +timeCreated: 1611403651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LiveRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/LiveRecord.cs new file mode 100644 index 00000000..c651833f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LiveRecord.cs @@ -0,0 +1,192 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LiveRecord")] + [Serializable] + public class LiveRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mostViewedRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OneLiveRecordInfo mostViewedRecord + { + get + { + return this._mostViewedRecord; + } + set + { + this._mostViewedRecord = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "mostCommendedRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OneLiveRecordInfo mostCommendedRecord + { + get + { + return this._mostCommendedRecord; + } + set + { + this._mostCommendedRecord = value; + } + } + + [ProtoMember(3, Name = "recentRecords", DataFormat = DataFormat.Default)] + public List recentRecords + { + get + { + return this._recentRecords; + } + } + + [ProtoMember(4, IsRequired = false, Name = "myTotalCommendedNum", DataFormat = DataFormat.TwosComplement)] + public uint myTotalCommendedNum + { + get + { + return this._myTotalCommendedNum ?? 0u; + } + set + { + this._myTotalCommendedNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool myTotalCommendedNumSpecified + { + get + { + return this._myTotalCommendedNum != null; + } + set + { + bool flag = value == (this._myTotalCommendedNum == null); + if (flag) + { + this._myTotalCommendedNum = (value ? new uint?(this.myTotalCommendedNum) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "myTotalViewedNum", DataFormat = DataFormat.TwosComplement)] + public uint myTotalViewedNum + { + get + { + return this._myTotalViewedNum ?? 0u; + } + set + { + this._myTotalViewedNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool myTotalViewedNumSpecified + { + get + { + return this._myTotalViewedNum != null; + } + set + { + bool flag = value == (this._myTotalViewedNum == null); + if (flag) + { + this._myTotalViewedNum = (value ? new uint?(this.myTotalViewedNum) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "livevisible", DataFormat = DataFormat.Default)] + public bool livevisible + { + get + { + return this._livevisible ?? false; + } + set + { + this._livevisible = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool livevisibleSpecified + { + get + { + return this._livevisible != null; + } + set + { + bool flag = value == (this._livevisible == null); + if (flag) + { + this._livevisible = (value ? new bool?(this.livevisible) : null); + } + } + } + + private OneLiveRecordInfo _mostViewedRecord = null; + + private OneLiveRecordInfo _mostCommendedRecord = null; + + private readonly List _recentRecords = new List(); + + private uint? _myTotalCommendedNum; + + private uint? _myTotalViewedNum; + + private bool? _livevisible; + + private IExtension extensionObject; + + private bool ShouldSerializemyTotalCommendedNum() + { + return this.myTotalCommendedNumSpecified; + } + + private void ResetmyTotalCommendedNum() + { + this.myTotalCommendedNumSpecified = false; + } + + private bool ShouldSerializemyTotalViewedNum() + { + return this.myTotalViewedNumSpecified; + } + + private void ResetmyTotalViewedNum() + { + this.myTotalViewedNumSpecified = false; + } + + private bool ShouldSerializelivevisible() + { + return this.livevisibleSpecified; + } + + private void Resetlivevisible() + { + this.livevisibleSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LiveRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LiveRecord.cs.meta new file mode 100644 index 00000000..0e35e4cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LiveRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7941853264e208749b081cca37d2c588 +timeCreated: 1611403984 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs new file mode 100644 index 00000000..1b2876d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs @@ -0,0 +1,40 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LiveType")] + public enum LiveType + { + [ProtoEnum(Name = "LIVE_RECOMMEND", Value = 1)] + LIVE_RECOMMEND = 1, + [ProtoEnum(Name = "LIVE_PVP", Value = 2)] + LIVE_PVP, + [ProtoEnum(Name = "LIVE_NEST", Value = 3)] + LIVE_NEST, + [ProtoEnum(Name = "LIVE_PROTECTCAPTAIN", Value = 4)] + LIVE_PROTECTCAPTAIN, + [ProtoEnum(Name = "LIVE_GUILDBATTLE", Value = 5)] + LIVE_GUILDBATTLE, + [ProtoEnum(Name = "LIVE_DRAGON", Value = 6)] + LIVE_DRAGON, + [ProtoEnum(Name = "LIVE_FRIEND", Value = 7)] + LIVE_FRIEND, + [ProtoEnum(Name = "LIVE_GUILD", Value = 8)] + LIVE_GUILD, + [ProtoEnum(Name = "LIVE_FRIENDANDGUILD", Value = 9)] + LIVE_FRIENDANDGUILD, + [ProtoEnum(Name = "LIVE_HEROBATTLE", Value = 10)] + LIVE_HEROBATTLE, + [ProtoEnum(Name = "LIVE_LEAGUEBATTLE", Value = 11)] + LIVE_LEAGUEBATTLE, + [ProtoEnum(Name = "LIVE_PVP2", Value = 12)] + LIVE_PVP2, + [ProtoEnum(Name = "LIVE_CUSTOMPK", Value = 13)] + LIVE_CUSTOMPK, + [ProtoEnum(Name = "LIVE_CROSSGVG", Value = 14)] + LIVE_CROSSGVG, + [ProtoEnum(Name = "LIVE_MAX", Value = 15)] + LIVE_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs.meta new file mode 100644 index 00000000..2dd38ca9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LiveType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 411f0b59b13230044b7dd30d4d132c92 +timeCreated: 1611403616 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoadAccountData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoadAccountData.cs new file mode 100644 index 00000000..c5e864a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoadAccountData.cs @@ -0,0 +1,492 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoadAccountData")] + [Serializable] + public class LoadAccountData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "account", DataFormat = DataFormat.Default)] + public string account + { + get + { + return this._account ?? ""; + } + set + { + this._account = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountSpecified + { + get + { + return this._account != null; + } + set + { + bool flag = value == (this._account == null); + if (flag) + { + this._account = (value ? this.account : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "role1", DataFormat = DataFormat.Default)] + public byte[] role1 + { + get + { + return this._role1 ?? null; + } + set + { + this._role1 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role1Specified + { + get + { + return this._role1 != null; + } + set + { + bool flag = value == (this._role1 == null); + if (flag) + { + this._role1 = (value ? this.role1 : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "role2", DataFormat = DataFormat.Default)] + public byte[] role2 + { + get + { + return this._role2 ?? null; + } + set + { + this._role2 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role2Specified + { + get + { + return this._role2 != null; + } + set + { + bool flag = value == (this._role2 == null); + if (flag) + { + this._role2 = (value ? this.role2 : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "role3", DataFormat = DataFormat.Default)] + public byte[] role3 + { + get + { + return this._role3 ?? null; + } + set + { + this._role3 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role3Specified + { + get + { + return this._role3 != null; + } + set + { + bool flag = value == (this._role3 == null); + if (flag) + { + this._role3 = (value ? this.role3 : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "role4", DataFormat = DataFormat.Default)] + public byte[] role4 + { + get + { + return this._role4 ?? null; + } + set + { + this._role4 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role4Specified + { + get + { + return this._role4 != null; + } + set + { + bool flag = value == (this._role4 == null); + if (flag) + { + this._role4 = (value ? this.role4 : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "selectSlot", DataFormat = DataFormat.TwosComplement)] + public uint selectSlot + { + get + { + return this._selectSlot ?? 0u; + } + set + { + this._selectSlot = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selectSlotSpecified + { + get + { + return this._selectSlot != null; + } + set + { + bool flag = value == (this._selectSlot == null); + if (flag) + { + this._selectSlot = (value ? new uint?(this.selectSlot) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "role5", DataFormat = DataFormat.Default)] + public byte[] role5 + { + get + { + return this._role5 ?? null; + } + set + { + this._role5 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role5Specified + { + get + { + return this._role5 != null; + } + set + { + bool flag = value == (this._role5 == null); + if (flag) + { + this._role5 = (value ? this.role5 : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "role6", DataFormat = DataFormat.Default)] + public byte[] role6 + { + get + { + return this._role6 ?? null; + } + set + { + this._role6 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role6Specified + { + get + { + return this._role6 != null; + } + set + { + bool flag = value == (this._role6 == null); + if (flag) + { + this._role6 = (value ? this.role6 : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "role7", DataFormat = DataFormat.Default)] + public byte[] role7 + { + get + { + return this._role7 ?? null; + } + set + { + this._role7 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role7Specified + { + get + { + return this._role7 != null; + } + set + { + bool flag = value == (this._role7 == null); + if (flag) + { + this._role7 = (value ? this.role7 : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "role8", DataFormat = DataFormat.Default)] + public byte[] role8 + { + get + { + return this._role8 ?? null; + } + set + { + this._role8 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role8Specified + { + get + { + return this._role8 != null; + } + set + { + bool flag = value == (this._role8 == null); + if (flag) + { + this._role8 = (value ? this.role8 : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "role9", DataFormat = DataFormat.Default)] + public byte[] role9 + { + get + { + return this._role9 ?? null; + } + set + { + this._role9 = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role9Specified + { + get + { + return this._role9 != null; + } + set + { + bool flag = value == (this._role9 == null); + if (flag) + { + this._role9 = (value ? this.role9 : null); + } + } + } + + private string _account; + + private byte[] _role1; + + private byte[] _role2; + + private byte[] _role3; + + private byte[] _role4; + + private uint? _selectSlot; + + private byte[] _role5; + + private byte[] _role6; + + private byte[] _role7; + + private byte[] _role8; + + private byte[] _role9; + + private IExtension extensionObject; + + private bool ShouldSerializeaccount() + { + return this.accountSpecified; + } + + private void Resetaccount() + { + this.accountSpecified = false; + } + + private bool ShouldSerializerole1() + { + return this.role1Specified; + } + + private void Resetrole1() + { + this.role1Specified = false; + } + + private bool ShouldSerializerole2() + { + return this.role2Specified; + } + + private void Resetrole2() + { + this.role2Specified = false; + } + + private bool ShouldSerializerole3() + { + return this.role3Specified; + } + + private void Resetrole3() + { + this.role3Specified = false; + } + + private bool ShouldSerializerole4() + { + return this.role4Specified; + } + + private void Resetrole4() + { + this.role4Specified = false; + } + + private bool ShouldSerializeselectSlot() + { + return this.selectSlotSpecified; + } + + private void ResetselectSlot() + { + this.selectSlotSpecified = false; + } + + private bool ShouldSerializerole5() + { + return this.role5Specified; + } + + private void Resetrole5() + { + this.role5Specified = false; + } + + private bool ShouldSerializerole6() + { + return this.role6Specified; + } + + private void Resetrole6() + { + this.role6Specified = false; + } + + private bool ShouldSerializerole7() + { + return this.role7Specified; + } + + private void Resetrole7() + { + this.role7Specified = false; + } + + private bool ShouldSerializerole8() + { + return this.role8Specified; + } + + private void Resetrole8() + { + this.role8Specified = false; + } + + private bool ShouldSerializerole9() + { + return this.role9Specified; + } + + private void Resetrole9() + { + this.role9Specified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoadAccountData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoadAccountData.cs.meta new file mode 100644 index 00000000..7d267dd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoadAccountData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5706e571b8b0c0747a502b96cbbae727 +timeCreated: 1611403746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs new file mode 100644 index 00000000..2c56fa6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoadOffLineChatNtf")] + [Serializable] + public class LoadOffLineChatNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + private ulong? _roleID; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs.meta new file mode 100644 index 00000000..d0db52a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoadOffLineChatNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a2f1b12e72086548875b34bbb05498a +timeCreated: 1611403162 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LogDBType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LogDBType.cs new file mode 100644 index 00000000..dbdab6ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LogDBType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LogDBType")] + public enum LogDBType + { + [ProtoEnum(Name = "LOG_DB_NORMAL", Value = 0)] + LOG_DB_NORMAL, + [ProtoEnum(Name = "LOG_DB_TENCENT", Value = 1)] + LOG_DB_TENCENT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LogDBType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LogDBType.cs.meta new file mode 100644 index 00000000..aeef3a55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LogDBType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f908cafbf3e2bd409dbb5add4df1186 +timeCreated: 1611403210 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityArg.cs new file mode 100644 index 00000000..fa17e202 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginActivityArg")] + [Serializable] + public class LoginActivityArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityArg.cs.meta new file mode 100644 index 00000000..4a628db6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93bac48ac4260d74da17cd4669260192 +timeCreated: 1611404152 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityRes.cs new file mode 100644 index 00000000..e3e17d6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginActivityRes")] + [Serializable] + public class LoginActivityRes : IExtensible + { + [ProtoMember(1, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private readonly List _items = new List(); + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityRes.cs.meta new file mode 100644 index 00000000..8401603f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fb96b96a8f01d24d8f62b51c88b5cd8 +timeCreated: 1611403519 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityStatus.cs new file mode 100644 index 00000000..4ee8bcb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityStatus.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginActivityStatus")] + [Serializable] + public class LoginActivityStatus : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.Default)] + public bool state + { + get + { + return this._state ?? false; + } + set + { + this._state = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new bool?(this.state) : null); + } + } + } + + private bool? _state; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityStatus.cs.meta new file mode 100644 index 00000000..7090cd05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginActivityStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 316b0354276ce934c9e0c038620551db +timeCreated: 1611403545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs new file mode 100644 index 00000000..93019a77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs @@ -0,0 +1,336 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginArg")] + [Serializable] + public class LoginArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "gameserverid", DataFormat = DataFormat.TwosComplement)] + public uint gameserverid + { + get + { + return this._gameserverid ?? 0u; + } + set + { + this._gameserverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gameserveridSpecified + { + get + { + return this._gameserverid != null; + } + set + { + bool flag = value == (this._gameserverid == null); + if (flag) + { + this._gameserverid = (value ? new uint?(this.gameserverid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public byte[] token + { + get + { + return this._token ?? null; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ios", DataFormat = DataFormat.Default)] + public string ios + { + get + { + return this._ios ?? ""; + } + set + { + this._ios = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iosSpecified + { + get + { + return this._ios != null; + } + set + { + bool flag = value == (this._ios == null); + if (flag) + { + this._ios = (value ? this.ios : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "android", DataFormat = DataFormat.Default)] + public string android + { + get + { + return this._android ?? ""; + } + set + { + this._android = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool androidSpecified + { + get + { + return this._android != null; + } + set + { + bool flag = value == (this._android == null); + if (flag) + { + this._android = (value ? this.android : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "pc", DataFormat = DataFormat.Default)] + public string pc + { + get + { + return this._pc ?? ""; + } + set + { + this._pc = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pcSpecified + { + get + { + return this._pc != null; + } + set + { + bool flag = value == (this._pc == null); + if (flag) + { + this._pc = (value ? this.pc : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "clientInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ClientInfo clientInfo + { + get + { + return this._clientInfo; + } + set + { + this._clientInfo = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "loginzoneid", DataFormat = DataFormat.TwosComplement)] + public uint loginzoneid + { + get + { + return this._loginzoneid ?? 0u; + } + set + { + this._loginzoneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loginzoneidSpecified + { + get + { + return this._loginzoneid != null; + } + set + { + bool flag = value == (this._loginzoneid == null); + if (flag) + { + this._loginzoneid = (value ? new uint?(this.loginzoneid) : null); + } + } + } + + private uint? _gameserverid; + + private byte[] _token; + + private string _ios; + + private string _android; + + private string _pc; + + private string _openid; + + private ClientInfo _clientInfo = null; + + private uint? _loginzoneid; + + private IExtension extensionObject; + + private bool ShouldSerializegameserverid() + { + return this.gameserveridSpecified; + } + + private void Resetgameserverid() + { + this.gameserveridSpecified = false; + } + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + private bool ShouldSerializeios() + { + return this.iosSpecified; + } + + private void Resetios() + { + this.iosSpecified = false; + } + + private bool ShouldSerializeandroid() + { + return this.androidSpecified; + } + + private void Resetandroid() + { + this.androidSpecified = false; + } + + private bool ShouldSerializepc() + { + return this.pcSpecified; + } + + private void Resetpc() + { + this.pcSpecified = false; + } + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializeloginzoneid() + { + return this.loginzoneidSpecified; + } + + private void Resetloginzoneid() + { + this.loginzoneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs.meta new file mode 100644 index 00000000..867bab4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 751eb3944806b434bb9cabb4a176e48a +timeCreated: 1611403945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginChallenge.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginChallenge.cs new file mode 100644 index 00000000..51977927 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginChallenge.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginChallenge")] + [Serializable] + public class LoginChallenge : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "challenge", DataFormat = DataFormat.Default)] + public string challenge + { + get + { + return this._challenge ?? ""; + } + set + { + this._challenge = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool challengeSpecified + { + get + { + return this._challenge != null; + } + set + { + bool flag = value == (this._challenge == null); + if (flag) + { + this._challenge = (value ? this.challenge : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "session", DataFormat = DataFormat.TwosComplement)] + public ulong session + { + get + { + return this._session ?? 0UL; + } + set + { + this._session = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sessionSpecified + { + get + { + return this._session != null; + } + set + { + bool flag = value == (this._session == null); + if (flag) + { + this._session = (value ? new ulong?(this.session) : null); + } + } + } + + private string _challenge; + + private ulong? _session; + + private IExtension extensionObject; + + private bool ShouldSerializechallenge() + { + return this.challengeSpecified; + } + + private void Resetchallenge() + { + this.challengeSpecified = false; + } + + private bool ShouldSerializesession() + { + return this.sessionSpecified; + } + + private void Resetsession() + { + this.sessionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginChallenge.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginChallenge.cs.meta new file mode 100644 index 00000000..7741a727 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginChallenge.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 352373abe2df7db479a74364ade31e67 +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginExtraData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginExtraData.cs new file mode 100644 index 00000000..3cd4a2d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginExtraData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginExtraData")] + [Serializable] + public class LoginExtraData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "is_backflow_server", DataFormat = DataFormat.Default)] + public bool is_backflow_server + { + get + { + return this._is_backflow_server ?? false; + } + set + { + this._is_backflow_server = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_backflow_serverSpecified + { + get + { + return this._is_backflow_server != null; + } + set + { + bool flag = value == (this._is_backflow_server == null); + if (flag) + { + this._is_backflow_server = (value ? new bool?(this.is_backflow_server) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "backflow_level", DataFormat = DataFormat.TwosComplement)] + public uint backflow_level + { + get + { + return this._backflow_level ?? 0u; + } + set + { + this._backflow_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool backflow_levelSpecified + { + get + { + return this._backflow_level != null; + } + set + { + bool flag = value == (this._backflow_level == null); + if (flag) + { + this._backflow_level = (value ? new uint?(this.backflow_level) : null); + } + } + } + + private bool? _is_backflow_server; + + private uint? _backflow_level; + + private IExtension extensionObject; + + private bool ShouldSerializeis_backflow_server() + { + return this.is_backflow_serverSpecified; + } + + private void Resetis_backflow_server() + { + this.is_backflow_serverSpecified = false; + } + + private bool ShouldSerializebackflow_level() + { + return this.backflow_levelSpecified; + } + + private void Resetbackflow_level() + { + this.backflow_levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginExtraData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginExtraData.cs.meta new file mode 100644 index 00000000..75aff37e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginExtraData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31825059ce27d6449a1ed0293e2e5b47 +timeCreated: 1611403545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginGateData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginGateData.cs new file mode 100644 index 00000000..f971551c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginGateData.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginGateData")] + [Serializable] + public class LoginGateData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ip", DataFormat = DataFormat.Default)] + public string ip + { + get + { + return this._ip ?? ""; + } + set + { + this._ip = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ipSpecified + { + get + { + return this._ip != null; + } + set + { + bool flag = value == (this._ip == null); + if (flag) + { + this._ip = (value ? this.ip : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "zonename", DataFormat = DataFormat.Default)] + public string zonename + { + get + { + return this._zonename ?? ""; + } + set + { + this._zonename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool zonenameSpecified + { + get + { + return this._zonename != null; + } + set + { + bool flag = value == (this._zonename == null); + if (flag) + { + this._zonename = (value ? this.zonename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "port", DataFormat = DataFormat.TwosComplement)] + public int port + { + get + { + return this._port ?? 0; + } + set + { + this._port = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool portSpecified + { + get + { + return this._port != null; + } + set + { + bool flag = value == (this._port == null); + if (flag) + { + this._port = (value ? new int?(this.port) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public int serverid + { + get + { + return this._serverid ?? 0; + } + set + { + this._serverid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new int?(this.serverid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "flag", DataFormat = DataFormat.TwosComplement)] + public uint flag + { + get + { + return this._flag ?? 0u; + } + set + { + this._flag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool flagSpecified + { + get + { + return this._flag != null; + } + set + { + bool flag = value == (this._flag == null); + if (flag) + { + this._flag = (value ? new uint?(this.flag) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "isbackflow", DataFormat = DataFormat.Default)] + public bool isbackflow + { + get + { + return this._isbackflow ?? false; + } + set + { + this._isbackflow = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbackflowSpecified + { + get + { + return this._isbackflow != null; + } + set + { + bool flag = value == (this._isbackflow == null); + if (flag) + { + this._isbackflow = (value ? new bool?(this.isbackflow) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "backflowlevel", DataFormat = DataFormat.TwosComplement)] + public uint backflowlevel + { + get + { + return this._backflowlevel ?? 0u; + } + set + { + this._backflowlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool backflowlevelSpecified + { + get + { + return this._backflowlevel != null; + } + set + { + bool flag = value == (this._backflowlevel == null); + if (flag) + { + this._backflowlevel = (value ? new uint?(this.backflowlevel) : null); + } + } + } + + private string _ip; + + private string _zonename; + + private string _servername; + + private int? _port; + + private int? _serverid; + + private uint? _state; + + private uint? _flag; + + private bool? _isbackflow; + + private uint? _backflowlevel; + + private IExtension extensionObject; + + private bool ShouldSerializeip() + { + return this.ipSpecified; + } + + private void Resetip() + { + this.ipSpecified = false; + } + + private bool ShouldSerializezonename() + { + return this.zonenameSpecified; + } + + private void Resetzonename() + { + this.zonenameSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializeport() + { + return this.portSpecified; + } + + private void Resetport() + { + this.portSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeflag() + { + return this.flagSpecified; + } + + private void Resetflag() + { + this.flagSpecified = false; + } + + private bool ShouldSerializeisbackflow() + { + return this.isbackflowSpecified; + } + + private void Resetisbackflow() + { + this.isbackflowSpecified = false; + } + + private bool ShouldSerializebackflowlevel() + { + return this.backflowlevelSpecified; + } + + private void Resetbackflowlevel() + { + this.backflowlevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginGateData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginGateData.cs.meta new file mode 100644 index 00000000..de6a43b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginGateData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af199366d0063284c94bb7f164b30c06 +timeCreated: 1611404342 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs new file mode 100644 index 00000000..2cb8cbdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs @@ -0,0 +1,94 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginReconnectEnterSceneData")] + [Serializable] + public class LoginReconnectEnterSceneData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "selfAppearance", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearance selfAppearance + { + get + { + return this._selfAppearance; + } + set + { + this._selfAppearance = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "deathinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DeathInfo deathinfo + { + get + { + return this._deathinfo; + } + set + { + this._deathinfo = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "isautofight", DataFormat = DataFormat.Default)] + public bool isautofight + { + get + { + return this._isautofight ?? false; + } + set + { + this._isautofight = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isautofightSpecified + { + get + { + return this._isautofight != null; + } + set + { + bool flag = value == (this._isautofight == null); + if (flag) + { + this._isautofight = (value ? new bool?(this.isautofight) : null); + } + } + } + + private UnitAppearance _selfAppearance = null; + + private DeathInfo _deathinfo = null; + + private bool? _isautofight; + + private IExtension extensionObject; + + private bool ShouldSerializeisautofight() + { + return this.isautofightSpecified; + } + + private void Resetisautofight() + { + this.isautofightSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs.meta new file mode 100644 index 00000000..6390b301 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectEnterSceneData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 909b5eab1885ad34bbe6a0b9ef6529ef +timeCreated: 1611404139 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectInfo.cs new file mode 100644 index 00000000..259f4ce6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginReconnectInfo")] + [Serializable] + public class LoginReconnectInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "scenetemplateid", DataFormat = DataFormat.TwosComplement)] + public uint scenetemplateid + { + get + { + return this._scenetemplateid ?? 0u; + } + set + { + this._scenetemplateid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scenetemplateidSpecified + { + get + { + return this._scenetemplateid != null; + } + set + { + bool flag = value == (this._scenetemplateid == null); + if (flag) + { + this._scenetemplateid = (value ? new uint?(this.scenetemplateid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "scenetime", DataFormat = DataFormat.TwosComplement)] + public uint scenetime + { + get + { + return this._scenetime ?? 0u; + } + set + { + this._scenetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scenetimeSpecified + { + get + { + return this._scenetime != null; + } + set + { + bool flag = value == (this._scenetime == null); + if (flag) + { + this._scenetime = (value ? new uint?(this.scenetime) : null); + } + } + } + + private uint? _scenetemplateid; + + private uint? _scenetime; + + private IExtension extensionObject; + + private bool ShouldSerializescenetemplateid() + { + return this.scenetemplateidSpecified; + } + + private void Resetscenetemplateid() + { + this.scenetemplateidSpecified = false; + } + + private bool ShouldSerializescenetime() + { + return this.scenetimeSpecified; + } + + private void Resetscenetime() + { + this.scenetimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectInfo.cs.meta new file mode 100644 index 00000000..32fae7c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef05ab77c55f47147af67083536a0dcc +timeCreated: 1611404802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqArg.cs new file mode 100644 index 00000000..645e9080 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginReconnectReqArg")] + [Serializable] + public class LoginReconnectReqArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reconnect", DataFormat = DataFormat.Default)] + public bool reconnect + { + get + { + return this._reconnect ?? false; + } + set + { + this._reconnect = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reconnectSpecified + { + get + { + return this._reconnect != null; + } + set + { + bool flag = value == (this._reconnect == null); + if (flag) + { + this._reconnect = (value ? new bool?(this.reconnect) : null); + } + } + } + + private bool? _reconnect; + + private IExtension extensionObject; + + private bool ShouldSerializereconnect() + { + return this.reconnectSpecified; + } + + private void Resetreconnect() + { + this.reconnectSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqArg.cs.meta new file mode 100644 index 00000000..e51df150 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 878e306b8a851e4499af4d9f06a5a533 +timeCreated: 1611404079 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqRes.cs new file mode 100644 index 00000000..ed7045e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginReconnectReqRes")] + [Serializable] + public class LoginReconnectReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqRes.cs.meta new file mode 100644 index 00000000..1aa16ee0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReconnectReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8826eb382b6ab548a7e7a291c23e940 +timeCreated: 1611404893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs new file mode 100644 index 00000000..acbd907e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginRecord")] + [Serializable] + public class LoginRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "loginDayCount", DataFormat = DataFormat.TwosComplement)] + public uint loginDayCount + { + get + { + return this._loginDayCount ?? 0u; + } + set + { + this._loginDayCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loginDayCountSpecified + { + get + { + return this._loginDayCount != null; + } + set + { + bool flag = value == (this._loginDayCount == null); + if (flag) + { + this._loginDayCount = (value ? new uint?(this.loginDayCount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "logindayforloginreward", DataFormat = DataFormat.TwosComplement)] + public uint logindayforloginreward + { + get + { + return this._logindayforloginreward ?? 0u; + } + set + { + this._logindayforloginreward = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool logindayforloginrewardSpecified + { + get + { + return this._logindayforloginreward != null; + } + set + { + bool flag = value == (this._logindayforloginreward == null); + if (flag) + { + this._logindayforloginreward = (value ? new uint?(this.logindayforloginreward) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastUpdateDay", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateDay + { + get + { + return this._lastUpdateDay ?? 0u; + } + set + { + this._lastUpdateDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateDaySpecified + { + get + { + return this._lastUpdateDay != null; + } + set + { + bool flag = value == (this._lastUpdateDay == null); + if (flag) + { + this._lastUpdateDay = (value ? new uint?(this.lastUpdateDay) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lrostate", DataFormat = DataFormat.TwosComplement)] + public int lrostate + { + get + { + return this._lrostate ?? 0; + } + set + { + this._lrostate = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lrostateSpecified + { + get + { + return this._lrostate != null; + } + set + { + bool flag = value == (this._lrostate == null); + if (flag) + { + this._lrostate = (value ? new int?(this.lrostate) : null); + } + } + } + + [ProtoMember(5, Name = "loginRewards", DataFormat = DataFormat.Default)] + public List loginRewards + { + get + { + return this._loginRewards; + } + } + + private uint? _loginDayCount; + + private uint? _logindayforloginreward; + + private uint? _lastUpdateDay; + + private int? _lrostate; + + private readonly List _loginRewards = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeloginDayCount() + { + return this.loginDayCountSpecified; + } + + private void ResetloginDayCount() + { + this.loginDayCountSpecified = false; + } + + private bool ShouldSerializelogindayforloginreward() + { + return this.logindayforloginrewardSpecified; + } + + private void Resetlogindayforloginreward() + { + this.logindayforloginrewardSpecified = false; + } + + private bool ShouldSerializelastUpdateDay() + { + return this.lastUpdateDaySpecified; + } + + private void ResetlastUpdateDay() + { + this.lastUpdateDaySpecified = false; + } + + private bool ShouldSerializelrostate() + { + return this.lrostateSpecified; + } + + private void Resetlrostate() + { + this.lrostateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs.meta new file mode 100644 index 00000000..c5917a71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b04e49c1dd587ef4a8778f17265601b6 +timeCreated: 1611404350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs new file mode 100644 index 00000000..3de47c19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs @@ -0,0 +1,196 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginRes")] + [Serializable] + public class LoginRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "version", DataFormat = DataFormat.Default)] + public string version + { + get + { + return this._version ?? ""; + } + set + { + this._version = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool versionSpecified + { + get + { + return this._version != null; + } + set + { + bool flag = value == (this._version == null); + if (flag) + { + this._version = (value ? this.version : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "accountData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LoadAccountData accountData + { + get + { + return this._accountData; + } + set + { + this._accountData = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "function_open", DataFormat = DataFormat.TwosComplement)] + public uint function_open + { + get + { + return this._function_open ?? 0u; + } + set + { + this._function_open = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool function_openSpecified + { + get + { + return this._function_open != null; + } + set + { + bool flag = value == (this._function_open == null); + if (flag) + { + this._function_open = (value ? new uint?(this.function_open) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LoginExtraData data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "rinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LoginReconnectInfo rinfo + { + get + { + return this._rinfo; + } + set + { + this._rinfo = value; + } + } + + private ErrorCode? _result; + + private string _version; + + private LoadAccountData _accountData = null; + + private uint? _function_open; + + private LoginExtraData _data = null; + + private LoginReconnectInfo _rinfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeversion() + { + return this.versionSpecified; + } + + private void Resetversion() + { + this.versionSpecified = false; + } + + private bool ShouldSerializefunction_open() + { + return this.function_openSpecified; + } + + private void Resetfunction_open() + { + this.function_openSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs.meta new file mode 100644 index 00000000..fe66447c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 104ebb7a75b0c1c4c9463834c26154fc +timeCreated: 1611403217 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReward.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginReward.cs new file mode 100644 index 00000000..e1255f8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReward.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginReward")] + [Serializable] + public class LoginReward : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "day", DataFormat = DataFormat.TwosComplement)] + public int day + { + get + { + return this._day ?? 0; + } + set + { + this._day = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daySpecified + { + get + { + return this._day != null; + } + set + { + bool flag = value == (this._day == null); + if (flag) + { + this._day = (value ? new int?(this.day) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public uint itemID + { + get + { + return this._itemID ?? 0u; + } + set + { + this._itemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new uint?(this.itemID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public LoginRewardState state + { + get + { + return this._state ?? LoginRewardState.LOGINRS_CANNOT; + } + set + { + this._state = new LoginRewardState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new LoginRewardState?(this.state) : null); + } + } + } + + [ProtoMember(4, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private int? _day; + + private uint? _itemID; + + private LoginRewardState? _state; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeday() + { + return this.daySpecified; + } + + private void Resetday() + { + this.daySpecified = false; + } + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginReward.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginReward.cs.meta new file mode 100644 index 00000000..aeba8867 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae7451d5feb31d14384c4c93c1ecd986 +timeCreated: 1611404340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetReq.cs new file mode 100644 index 00000000..6d60825a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginRewardGetReq")] + [Serializable] + public class LoginRewardGetReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "day", DataFormat = DataFormat.TwosComplement)] + public int day + { + get + { + return this._day ?? 0; + } + set + { + this._day = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daySpecified + { + get + { + return this._day != null; + } + set + { + bool flag = value == (this._day == null); + if (flag) + { + this._day = (value ? new int?(this.day) : null); + } + } + } + + private int? _day; + + private IExtension extensionObject; + + private bool ShouldSerializeday() + { + return this.daySpecified; + } + + private void Resetday() + { + this.daySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetReq.cs.meta new file mode 100644 index 00000000..153601db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9c28cf1669969d4f9df9754c12e2bd3 +timeCreated: 1611404301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetRet.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetRet.cs new file mode 100644 index 00000000..eddfdfb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetRet.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginRewardGetRet")] + [Serializable] + public class LoginRewardGetRet : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ret", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ret + { + get + { + return this._ret ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ret = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool retSpecified + { + get + { + return this._ret != null; + } + set + { + bool flag = value == (this._ret == null); + if (flag) + { + this._ret = (value ? new ErrorCode?(this.ret) : null); + } + } + } + + private ErrorCode? _ret; + + private IExtension extensionObject; + + private bool ShouldSerializeret() + { + return this.retSpecified; + } + + private void Resetret() + { + this.retSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetRet.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetRet.cs.meta new file mode 100644 index 00000000..d0ce056a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardGetRet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18eaf2200b7dbab4b99a3ad186d5fdfc +timeCreated: 1611403299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs new file mode 100644 index 00000000..18431514 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginRewardRet")] + [Serializable] + public class LoginRewardRet : IExtensible + { + [ProtoMember(1, Name = "rewards", DataFormat = DataFormat.Default)] + public List rewards + { + get + { + return this._rewards; + } + } + + [ProtoMember(2, IsRequired = false, Name = "open", DataFormat = DataFormat.Default)] + public bool open + { + get + { + return this._open ?? false; + } + set + { + this._open = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openSpecified + { + get + { + return this._open != null; + } + set + { + bool flag = value == (this._open == null); + if (flag) + { + this._open = (value ? new bool?(this.open) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "logindayforreward", DataFormat = DataFormat.TwosComplement)] + public uint logindayforreward + { + get + { + return this._logindayforreward ?? 0u; + } + set + { + this._logindayforreward = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool logindayforrewardSpecified + { + get + { + return this._logindayforreward != null; + } + set + { + bool flag = value == (this._logindayforreward == null); + if (flag) + { + this._logindayforreward = (value ? new uint?(this.logindayforreward) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "sectoday", DataFormat = DataFormat.TwosComplement)] + public uint sectoday + { + get + { + return this._sectoday ?? 0u; + } + set + { + this._sectoday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sectodaySpecified + { + get + { + return this._sectoday != null; + } + set + { + bool flag = value == (this._sectoday == null); + if (flag) + { + this._sectoday = (value ? new uint?(this.sectoday) : null); + } + } + } + + private readonly List _rewards = new List(); + + private bool? _open; + + private uint? _logindayforreward; + + private uint? _sectoday; + + private IExtension extensionObject; + + private bool ShouldSerializeopen() + { + return this.openSpecified; + } + + private void Resetopen() + { + this.openSpecified = false; + } + + private bool ShouldSerializelogindayforreward() + { + return this.logindayforrewardSpecified; + } + + private void Resetlogindayforreward() + { + this.logindayforrewardSpecified = false; + } + + private bool ShouldSerializesectoday() + { + return this.sectodaySpecified; + } + + private void Resetsectoday() + { + this.sectodaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs.meta new file mode 100644 index 00000000..7db69a25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardRet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4665fe8a80c9344b9344486b8045ad7 +timeCreated: 1611404737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardState.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardState.cs new file mode 100644 index 00000000..1843efa3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardState.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginRewardState")] + public enum LoginRewardState + { + [ProtoEnum(Name = "LOGINRS_CANNOT", Value = 1)] + LOGINRS_CANNOT = 1, + [ProtoEnum(Name = "LOGINRS_HAVEHOT", Value = 2)] + LOGINRS_HAVEHOT, + [ProtoEnum(Name = "LOGINRS_HAVE", Value = 3)] + LOGINRS_HAVE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardState.cs.meta new file mode 100644 index 00000000..15bcc12c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginRewardState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6fe556b908ca34e498228f5962f7fc16 +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LoginType.cs new file mode 100644 index 00000000..4d37fd25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LoginType")] + public enum LoginType + { + [ProtoEnum(Name = "LOGIN_PASSWORD", Value = 0)] + LOGIN_PASSWORD, + [ProtoEnum(Name = "LOGIN_SNDA_PF", Value = 1)] + LOGIN_SNDA_PF, + [ProtoEnum(Name = "LOGIN_QQ_PF", Value = 2)] + LOGIN_QQ_PF, + [ProtoEnum(Name = "LGOIN_WECHAT_PF", Value = 3)] + LGOIN_WECHAT_PF, + [ProtoEnum(Name = "LOGIN_IOS_GUEST", Value = 4)] + LOGIN_IOS_GUEST, + [ProtoEnum(Name = "LOGIN_IOS_AUDIT", Value = 5)] + LOGIN_IOS_AUDIT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LoginType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LoginType.cs.meta new file mode 100644 index 00000000..c8d41d24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LoginType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 564eb0f406cd446438ca092c656fada5 +timeCreated: 1611403743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LogoutType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LogoutType.cs new file mode 100644 index 00000000..9a5fce6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LogoutType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LogoutType")] + public enum LogoutType + { + [ProtoEnum(Name = "LOGOUT_ACCOUNT_NORMAL", Value = 1)] + LOGOUT_ACCOUNT_NORMAL = 1, + [ProtoEnum(Name = "LOGOUT_RELOGIN_KICK_ACCOUNT", Value = 2)] + LOGOUT_RELOGIN_KICK_ACCOUNT, + [ProtoEnum(Name = "LOGOUT_IDIP_KICK_ACCOUNT", Value = 3)] + LOGOUT_IDIP_KICK_ACCOUNT, + [ProtoEnum(Name = "LOGOUT_RETURN_SELECT_ROLE", Value = 4)] + LOGOUT_RETURN_SELECT_ROLE, + [ProtoEnum(Name = "LOGOUT_CHANGEPROFESSION", Value = 5)] + LOGOUT_CHANGEPROFESSION + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LogoutType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LogoutType.cs.meta new file mode 100644 index 00000000..e877abcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LogoutType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 363b88e94eb8a0e4a8222d0cb8ed78b4 +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawReq.cs new file mode 100644 index 00000000..f5a9a2e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawReq.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LotteryDrawReq")] + [Serializable] + public class LotteryDrawReq : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawReq.cs.meta new file mode 100644 index 00000000..ad963caa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4ba40c0b106cc344ab72deb07f67366 +timeCreated: 1611404283 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs new file mode 100644 index 00000000..534b87d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LotteryDrawRes")] + [Serializable] + public class LotteryDrawRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "itemrecord", DataFormat = DataFormat.Default)] + public List itemrecord + { + get + { + return this._itemrecord; + } + } + + [ProtoMember(3, IsRequired = false, Name = "price", DataFormat = DataFormat.TwosComplement)] + public uint price + { + get + { + return this._price ?? 0u; + } + set + { + this._price = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool priceSpecified + { + get + { + return this._price != null; + } + set + { + bool flag = value == (this._price == null); + if (flag) + { + this._price = (value ? new uint?(this.price) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "currencytype", DataFormat = DataFormat.TwosComplement)] + public uint currencytype + { + get + { + return this._currencytype ?? 0u; + } + set + { + this._currencytype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool currencytypeSpecified + { + get + { + return this._currencytype != null; + } + set + { + bool flag = value == (this._currencytype == null); + if (flag) + { + this._currencytype = (value ? new uint?(this.currencytype) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _itemrecord = new List(); + + private uint? _price; + + private uint? _index; + + private uint? _currencytype; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeprice() + { + return this.priceSpecified; + } + + private void Resetprice() + { + this.priceSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializecurrencytype() + { + return this.currencytypeSpecified; + } + + private void Resetcurrencytype() + { + this.currencytypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs.meta new file mode 100644 index 00000000..9cd925fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27d0359a116ccc64b8d9d1fb3223e065 +timeCreated: 1611403472 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LotteryType.cs b/Client/Assets/Scripts/XMainClient/KKSG/LotteryType.cs new file mode 100644 index 00000000..b9af775d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LotteryType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LotteryType")] + public enum LotteryType + { + [ProtoEnum(Name = "Sprite_Draw_One", Value = 1)] + Sprite_Draw_One = 1, + [ProtoEnum(Name = "Sprite_Draw_Ten", Value = 2)] + Sprite_Draw_Ten, + [ProtoEnum(Name = "Sprite_Draw_One_Free", Value = 3)] + Sprite_Draw_One_Free, + [ProtoEnum(Name = "Sprite_GoldDraw_One", Value = 4)] + Sprite_GoldDraw_One, + [ProtoEnum(Name = "Sprite_GoldDraw_Ten", Value = 5)] + Sprite_GoldDraw_Ten, + [ProtoEnum(Name = "Sprite_GoldDraw_One_Free", Value = 6)] + Sprite_GoldDraw_One_Free + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LotteryType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LotteryType.cs.meta new file mode 100644 index 00000000..7ecabd89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LotteryType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a526c931c02d70478dc81e0ec9a0cb7 +timeCreated: 1611404199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs b/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs new file mode 100644 index 00000000..ff3e0898 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "LuckyActivity")] + [Serializable] + public class LuckyActivity : IExtensible + { + [ProtoMember(1, Name = "itemrecord", DataFormat = DataFormat.Default)] + public List itemrecord + { + get + { + return this._itemrecord; + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ispay", DataFormat = DataFormat.Default)] + public bool ispay + { + get + { + return this._ispay ?? false; + } + set + { + this._ispay = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ispaySpecified + { + get + { + return this._ispay != null; + } + set + { + bool flag = value == (this._ispay == null); + if (flag) + { + this._ispay = (value ? new bool?(this.ispay) : null); + } + } + } + + private readonly List _itemrecord = new List(); + + private uint? _state; + + private bool? _ispay; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeispay() + { + return this.ispaySpecified; + } + + private void Resetispay() + { + this.ispaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs.meta new file mode 100644 index 00000000..aeb12675 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LuckyActivity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8950928ae921faf428e988b96c277d60 +timeCreated: 1611404087 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MSGiveItemType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MSGiveItemType.cs new file mode 100644 index 00000000..0699ce73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MSGiveItemType.cs @@ -0,0 +1,12 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MSGiveItemType")] + public enum MSGiveItemType + { + [ProtoEnum(Name = "MSItem_FriendGift", Value = 1)] + MSItem_FriendGift = 1 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MSGiveItemType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MSGiveItemType.cs.meta new file mode 100644 index 00000000..5f033509 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MSGiveItemType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1bfc39aaca1e0b42990ba6ec4b52414 +timeCreated: 1611404255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MSUseSumamryType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MSUseSumamryType.cs new file mode 100644 index 00000000..fd922331 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MSUseSumamryType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MSUseSumamryType")] + public enum MSUseSumamryType + { + [ProtoEnum(Name = "MSUS_GET", Value = 1)] + MSUS_GET = 1, + [ProtoEnum(Name = "MSUS_FREE", Value = 2)] + MSUS_FREE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MSUseSumamryType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MSUseSumamryType.cs.meta new file mode 100644 index 00000000..601d1869 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MSUseSumamryType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4841c7be8ab01d43be2f247af98c107 +timeCreated: 1611404283 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MailOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/MailOpArg.cs new file mode 100644 index 00000000..17cd3a15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MailOpArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MailOpArg")] + [Serializable] + public class MailOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "optype", DataFormat = DataFormat.TwosComplement)] + public uint optype + { + get + { + return this._optype ?? 0u; + } + set + { + this._optype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool optypeSpecified + { + get + { + return this._optype != null; + } + set + { + bool flag = value == (this._optype == null); + if (flag) + { + this._optype = (value ? new uint?(this.optype) : null); + } + } + } + + [ProtoMember(2, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public List uid + { + get + { + return this._uid; + } + } + + private uint? _optype; + + private readonly List _uid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeoptype() + { + return this.optypeSpecified; + } + + private void Resetoptype() + { + this.optypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MailOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MailOpArg.cs.meta new file mode 100644 index 00000000..1bb69d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MailOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37f75970b1aba114daf1f34c55708078 +timeCreated: 1611403568 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MailOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/MailOpRes.cs new file mode 100644 index 00000000..d2599b8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MailOpRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MailOpRes")] + [Serializable] + public class MailOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "expireuid", DataFormat = DataFormat.TwosComplement)] + public List expireuid + { + get + { + return this._expireuid; + } + } + + private ErrorCode? _errorcode; + + private readonly List _expireuid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MailOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MailOpRes.cs.meta new file mode 100644 index 00000000..7068db6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MailOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80048439e31b6bd4eaac38b92b27c66d +timeCreated: 1611404032 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MailOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MailOpType.cs new file mode 100644 index 00000000..65e14754 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MailOpType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MailOpType")] + public enum MailOpType + { + [ProtoEnum(Name = "MAIL_OP_ADD", Value = 1)] + MAIL_OP_ADD = 1, + [ProtoEnum(Name = "MAIL_OP_UPDATE", Value = 2)] + MAIL_OP_UPDATE, + [ProtoEnum(Name = "MAIL_OP_DELETE", Value = 3)] + MAIL_OP_DELETE, + [ProtoEnum(Name = "MAIL_OP_DELETE_ALL", Value = 4)] + MAIL_OP_DELETE_ALL + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MailOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MailOpType.cs.meta new file mode 100644 index 00000000..ffd99f93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MailOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f19c566fb8665ad4091723a4f6a95610 +timeCreated: 1611404839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MakePartnerResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/MakePartnerResult.cs new file mode 100644 index 00000000..4c494841 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MakePartnerResult.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MakePartnerResult")] + [Serializable] + public class MakePartnerResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "err_roleid", DataFormat = DataFormat.TwosComplement)] + public ulong err_roleid + { + get + { + return this._err_roleid ?? 0UL; + } + set + { + this._err_roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool err_roleidSpecified + { + get + { + return this._err_roleid != null; + } + set + { + bool flag = value == (this._err_roleid == null); + if (flag) + { + this._err_roleid = (value ? new ulong?(this.err_roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "err_rolename", DataFormat = DataFormat.Default)] + public string err_rolename + { + get + { + return this._err_rolename ?? ""; + } + set + { + this._err_rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool err_rolenameSpecified + { + get + { + return this._err_rolename != null; + } + set + { + bool flag = value == (this._err_rolename == null); + if (flag) + { + this._err_rolename = (value ? this.err_rolename : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "partnerid", DataFormat = DataFormat.TwosComplement)] + public ulong partnerid + { + get + { + return this._partnerid ?? 0UL; + } + set + { + this._partnerid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool partneridSpecified + { + get + { + return this._partnerid != null; + } + set + { + bool flag = value == (this._partnerid == null); + if (flag) + { + this._partnerid = (value ? new ulong?(this.partnerid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "degree", DataFormat = DataFormat.TwosComplement)] + public uint degree + { + get + { + return this._degree ?? 0u; + } + set + { + this._degree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool degreeSpecified + { + get + { + return this._degree != null; + } + set + { + bool flag = value == (this._degree == null); + if (flag) + { + this._degree = (value ? new uint?(this.degree) : null); + } + } + } + + [ProtoMember(7, Name = "memberid", DataFormat = DataFormat.TwosComplement)] + public List memberid + { + get + { + return this._memberid; + } + } + + private ErrorCode? _result; + + private ulong? _err_roleid; + + private string _err_rolename; + + private ulong? _partnerid; + + private uint? _level; + + private uint? _degree; + + private readonly List _memberid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeerr_roleid() + { + return this.err_roleidSpecified; + } + + private void Reseterr_roleid() + { + this.err_roleidSpecified = false; + } + + private bool ShouldSerializeerr_rolename() + { + return this.err_rolenameSpecified; + } + + private void Reseterr_rolename() + { + this.err_rolenameSpecified = false; + } + + private bool ShouldSerializepartnerid() + { + return this.partneridSpecified; + } + + private void Resetpartnerid() + { + this.partneridSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializedegree() + { + return this.degreeSpecified; + } + + private void Resetdegree() + { + this.degreeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MakePartnerResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MakePartnerResult.cs.meta new file mode 100644 index 00000000..08dd931e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MakePartnerResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc826c1e4e1fee5448316a00f79e9082 +timeCreated: 1611404678 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MapIntItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/MapIntItem.cs new file mode 100644 index 00000000..e3cd150d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MapIntItem.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MapIntItem")] + [Serializable] + public class MapIntItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "key", DataFormat = DataFormat.TwosComplement)] + public ulong key + { + get + { + return this._key ?? 0UL; + } + set + { + this._key = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool keySpecified + { + get + { + return this._key != null; + } + set + { + bool flag = value == (this._key == null); + if (flag) + { + this._key = (value ? new ulong?(this.key) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)] + public uint value + { + get + { + return this._value ?? 0u; + } + set + { + this._value = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool valueSpecified + { + get + { + return this._value != null; + } + set + { + bool flag = value == (this._value == null); + if (flag) + { + this._value = (value ? new uint?(this.value) : null); + } + } + } + + private ulong? _key; + + private uint? _value; + + private IExtension extensionObject; + + private bool ShouldSerializekey() + { + return this.keySpecified; + } + + private void Resetkey() + { + this.keySpecified = false; + } + + private bool ShouldSerializevalue() + { + return this.valueSpecified; + } + + private void Resetvalue() + { + this.valueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MapIntItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MapIntItem.cs.meta new file mode 100644 index 00000000..cd9e8dbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MapIntItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88fb09c34d12c2f45ba8b36c690eab61 +timeCreated: 1611404086 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs b/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs new file mode 100644 index 00000000..ee78b505 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MapKeyValue")] + [Serializable] + public class MapKeyValue : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "key", DataFormat = DataFormat.TwosComplement)] + public ulong key + { + get + { + return this._key ?? 0UL; + } + set + { + this._key = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool keySpecified + { + get + { + return this._key != null; + } + set + { + bool flag = value == (this._key == null); + if (flag) + { + this._key = (value ? new ulong?(this.key) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)] + public ulong value + { + get + { + return this._value ?? 0UL; + } + set + { + this._value = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool valueSpecified + { + get + { + return this._value != null; + } + set + { + bool flag = value == (this._value == null); + if (flag) + { + this._value = (value ? new ulong?(this.value) : null); + } + } + } + + private ulong? _key; + + private ulong? _value; + + private IExtension extensionObject; + + private bool ShouldSerializekey() + { + return this.keySpecified; + } + + private void Resetkey() + { + this.keySpecified = false; + } + + private bool ShouldSerializevalue() + { + return this.valueSpecified; + } + + private void Resetvalue() + { + this.valueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs.meta new file mode 100644 index 00000000..9b5a57bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MapKeyValue.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f00f2795a3d1e794ebec79e3ce546c78 +timeCreated: 1611404828 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyInfo.cs new file mode 100644 index 00000000..45039016 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageApplyInfo")] + [Serializable] + public class MarriageApplyInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "applyRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong applyRoleID + { + get + { + return this._applyRoleID ?? 0UL; + } + set + { + this._applyRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool applyRoleIDSpecified + { + get + { + return this._applyRoleID != null; + } + set + { + bool flag = value == (this._applyRoleID == null); + if (flag) + { + this._applyRoleID = (value ? new ulong?(this.applyRoleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "applyName", DataFormat = DataFormat.Default)] + public string applyName + { + get + { + return this._applyName ?? ""; + } + set + { + this._applyName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool applyNameSpecified + { + get + { + return this._applyName != null; + } + set + { + bool flag = value == (this._applyName == null); + if (flag) + { + this._applyName = (value ? this.applyName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeddingType type + { + get + { + return this._type ?? WeddingType.WeddingType_Normal; + } + set + { + this._type = new WeddingType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeddingType?(this.type) : null); + } + } + } + + private ulong? _applyRoleID; + + private string _applyName; + + private WeddingType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeapplyRoleID() + { + return this.applyRoleIDSpecified; + } + + private void ResetapplyRoleID() + { + this.applyRoleIDSpecified = false; + } + + private bool ShouldSerializeapplyName() + { + return this.applyNameSpecified; + } + + private void ResetapplyName() + { + this.applyNameSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyInfo.cs.meta new file mode 100644 index 00000000..88adf12a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be90374bafd9d174f93abfadc7bd4862 +timeCreated: 1611404462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyResponse.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyResponse.cs new file mode 100644 index 00000000..f9d5ccdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyResponse.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageApplyResponse")] + [Serializable] + public class MarriageApplyResponse : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isAgree", DataFormat = DataFormat.Default)] + public bool isAgree + { + get + { + return this._isAgree ?? false; + } + set + { + this._isAgree = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isAgreeSpecified + { + get + { + return this._isAgree != null; + } + set + { + bool flag = value == (this._isAgree == null); + if (flag) + { + this._isAgree = (value ? new bool?(this.isAgree) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + private bool? _isAgree; + + private ulong? _roleID; + + private string _roleName; + + private IExtension extensionObject; + + private bool ShouldSerializeisAgree() + { + return this.isAgreeSpecified; + } + + private void ResetisAgree() + { + this.isAgreeSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyResponse.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyResponse.cs.meta new file mode 100644 index 00000000..9db9b455 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageApplyResponse.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f038346a2d218e549b3fbad4c3105bb6 +timeCreated: 1611404829 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelInfo.cs new file mode 100644 index 00000000..4893eab0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageLevelInfo")] + [Serializable] + public class MarriageLevelInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "marriageLevel", DataFormat = DataFormat.TwosComplement)] + public int marriageLevel + { + get + { + return this._marriageLevel ?? 0; + } + set + { + this._marriageLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool marriageLevelSpecified + { + get + { + return this._marriageLevel != null; + } + set + { + bool flag = value == (this._marriageLevel == null); + if (flag) + { + this._marriageLevel = (value ? new int?(this.marriageLevel) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "marriageLevelValue", DataFormat = DataFormat.TwosComplement)] + public int marriageLevelValue + { + get + { + return this._marriageLevelValue ?? 0; + } + set + { + this._marriageLevelValue = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool marriageLevelValueSpecified + { + get + { + return this._marriageLevelValue != null; + } + set + { + bool flag = value == (this._marriageLevelValue == null); + if (flag) + { + this._marriageLevelValue = (value ? new int?(this.marriageLevelValue) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "canGetPrivilegeReward", DataFormat = DataFormat.TwosComplement)] + public int canGetPrivilegeReward + { + get + { + return this._canGetPrivilegeReward ?? 0; + } + set + { + this._canGetPrivilegeReward = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canGetPrivilegeRewardSpecified + { + get + { + return this._canGetPrivilegeReward != null; + } + set + { + bool flag = value == (this._canGetPrivilegeReward == null); + if (flag) + { + this._canGetPrivilegeReward = (value ? new int?(this.canGetPrivilegeReward) : null); + } + } + } + + private int? _marriageLevel; + + private int? _marriageLevelValue; + + private int? _canGetPrivilegeReward; + + private IExtension extensionObject; + + private bool ShouldSerializemarriageLevel() + { + return this.marriageLevelSpecified; + } + + private void ResetmarriageLevel() + { + this.marriageLevelSpecified = false; + } + + private bool ShouldSerializemarriageLevelValue() + { + return this.marriageLevelValueSpecified; + } + + private void ResetmarriageLevelValue() + { + this.marriageLevelValueSpecified = false; + } + + private bool ShouldSerializecanGetPrivilegeReward() + { + return this.canGetPrivilegeRewardSpecified; + } + + private void ResetcanGetPrivilegeReward() + { + this.canGetPrivilegeRewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelInfo.cs.meta new file mode 100644 index 00000000..cd228567 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1449ac6c8e49aa2419f11890d9a78204 +timeCreated: 1611403255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelValueNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelValueNtfData.cs new file mode 100644 index 00000000..7cdc3867 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelValueNtfData.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageLevelValueNtfData")] + [Serializable] + public class MarriageLevelValueNtfData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MarriageLevelInfo info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private MarriageLevelInfo _info = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelValueNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelValueNtfData.cs.meta new file mode 100644 index 00000000..418aeebc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageLevelValueNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f522a57ad5bb0744b9695b55e687bde5 +timeCreated: 1611404875 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageNewPrivilegeNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageNewPrivilegeNtfData.cs new file mode 100644 index 00000000..4497cbe9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageNewPrivilegeNtfData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageNewPrivilegeNtfData")] + [Serializable] + public class MarriageNewPrivilegeNtfData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "marriageLevel", DataFormat = DataFormat.TwosComplement)] + public int marriageLevel + { + get + { + return this._marriageLevel ?? 0; + } + set + { + this._marriageLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool marriageLevelSpecified + { + get + { + return this._marriageLevel != null; + } + set + { + bool flag = value == (this._marriageLevel == null); + if (flag) + { + this._marriageLevel = (value ? new int?(this.marriageLevel) : null); + } + } + } + + private int? _marriageLevel; + + private IExtension extensionObject; + + private bool ShouldSerializemarriageLevel() + { + return this.marriageLevelSpecified; + } + + private void ResetmarriageLevel() + { + this.marriageLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageNewPrivilegeNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageNewPrivilegeNtfData.cs.meta new file mode 100644 index 00000000..60c180d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageNewPrivilegeNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 874047a2aa1fdbc459f628fee7a162d7 +timeCreated: 1611404077 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageOpType.cs new file mode 100644 index 00000000..8e622d54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageOpType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageOpType")] + public enum MarriageOpType + { + [ProtoEnum(Name = "MarriageOpType_MarryApply", Value = 1)] + MarriageOpType_MarryApply = 1, + [ProtoEnum(Name = "MarriageOpType_MarryAgree", Value = 2)] + MarriageOpType_MarryAgree, + [ProtoEnum(Name = "MarriageOpType_MarryRefuse", Value = 3)] + MarriageOpType_MarryRefuse, + [ProtoEnum(Name = "MarriageOpType_Divorce", Value = 4)] + MarriageOpType_Divorce, + [ProtoEnum(Name = "MarriageOpType_DivorceCancel", Value = 5)] + MarriageOpType_DivorceCancel, + [ProtoEnum(Name = "MarriageOpType_Max", Value = 6)] + MarriageOpType_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageOpType.cs.meta new file mode 100644 index 00000000..2a604082 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 596ff866601c4944b9d1bffa0e78d342 +timeCreated: 1611403784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriagePos.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriagePos.cs new file mode 100644 index 00000000..2dd29251 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriagePos.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriagePos")] + public enum MarriagePos + { + [ProtoEnum(Name = "MarriagePos_Null", Value = 1)] + MarriagePos_Null = 1, + [ProtoEnum(Name = "MarriagePos_Husband", Value = 2)] + MarriagePos_Husband, + [ProtoEnum(Name = "MarriagePos_Wife", Value = 3)] + MarriagePos_Wife, + [ProtoEnum(Name = "Marriage_Max", Value = 4)] + Marriage_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriagePos.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriagePos.cs.meta new file mode 100644 index 00000000..099e2e00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriagePos.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba30068078219d9479ec1c0b7223ccad +timeCreated: 1611404434 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpArg.cs new file mode 100644 index 00000000..50f6d2a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageRelationOpArg")] + [Serializable] + public class MarriageRelationOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "opType", DataFormat = DataFormat.TwosComplement)] + public MarriageOpType opType + { + get + { + return this._opType ?? MarriageOpType.MarriageOpType_MarryApply; + } + set + { + this._opType = new MarriageOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opTypeSpecified + { + get + { + return this._opType != null; + } + set + { + bool flag = value == (this._opType == null); + if (flag) + { + this._opType = (value ? new MarriageOpType?(this.opType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeddingType type + { + get + { + return this._type ?? WeddingType.WeddingType_Normal; + } + set + { + this._type = new WeddingType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeddingType?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "destRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong destRoleID + { + get + { + return this._destRoleID ?? 0UL; + } + set + { + this._destRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool destRoleIDSpecified + { + get + { + return this._destRoleID != null; + } + set + { + bool flag = value == (this._destRoleID == null); + if (flag) + { + this._destRoleID = (value ? new ulong?(this.destRoleID) : null); + } + } + } + + private MarriageOpType? _opType; + + private WeddingType? _type; + + private ulong? _destRoleID; + + private IExtension extensionObject; + + private bool ShouldSerializeopType() + { + return this.opTypeSpecified; + } + + private void ResetopType() + { + this.opTypeSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializedestRoleID() + { + return this.destRoleIDSpecified; + } + + private void ResetdestRoleID() + { + this.destRoleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpArg.cs.meta new file mode 100644 index 00000000..278954d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59605d430c7f7494bbfb6d07ab7ee8cb +timeCreated: 1611403784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpRes.cs new file mode 100644 index 00000000..17b4cd1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageRelationOpRes")] + [Serializable] + public class MarriageRelationOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "oppoRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong oppoRoleID + { + get + { + return this._oppoRoleID ?? 0UL; + } + set + { + this._oppoRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool oppoRoleIDSpecified + { + get + { + return this._oppoRoleID != null; + } + set + { + bool flag = value == (this._oppoRoleID == null); + if (flag) + { + this._oppoRoleID = (value ? new ulong?(this.oppoRoleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "oppoRoleName", DataFormat = DataFormat.Default)] + public string oppoRoleName + { + get + { + return this._oppoRoleName ?? ""; + } + set + { + this._oppoRoleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool oppoRoleNameSpecified + { + get + { + return this._oppoRoleName != null; + } + set + { + bool flag = value == (this._oppoRoleName == null); + if (flag) + { + this._oppoRoleName = (value ? this.oppoRoleName : null); + } + } + } + + private ErrorCode? _error; + + private ulong? _oppoRoleID; + + private string _oppoRoleName; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeoppoRoleID() + { + return this.oppoRoleIDSpecified; + } + + private void ResetoppoRoleID() + { + this.oppoRoleIDSpecified = false; + } + + private bool ShouldSerializeoppoRoleName() + { + return this.oppoRoleNameSpecified; + } + + private void ResetoppoRoleName() + { + this.oppoRoleNameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpRes.cs.meta new file mode 100644 index 00000000..887113cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageRelationOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0716802b8760dc048a5fd8e003dfbca1 +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/MarriageStatus.cs new file mode 100644 index 00000000..1df75d89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageStatus.cs @@ -0,0 +1,30 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MarriageStatus")] + public enum MarriageStatus + { + [ProtoEnum(Name = "MarriageStatus_Null", Value = 1)] + MarriageStatus_Null = 1, + [ProtoEnum(Name = "MarriageStatus_Marriaged", Value = 2)] + MarriageStatus_Marriaged, + [ProtoEnum(Name = "MarriageStatus_WeddingHoldingNoCar", Value = 3)] + MarriageStatus_WeddingHoldingNoCar, + [ProtoEnum(Name = "MarriageStatus_WeddingHoldedNoCar", Value = 4)] + MarriageStatus_WeddingHoldedNoCar, + [ProtoEnum(Name = "MarriageStatus_WeddingCarNoWedding", Value = 5)] + MarriageStatus_WeddingCarNoWedding, + [ProtoEnum(Name = "MarriageStatus_WeddingHoldingAndCar", Value = 6)] + MarriageStatus_WeddingHoldingAndCar, + [ProtoEnum(Name = "MarriageStatus_WeddingHoldedAndCar", Value = 7)] + MarriageStatus_WeddingHoldedAndCar, + [ProtoEnum(Name = "MarriageStatus_DivorceApply", Value = 8)] + MarriageStatus_DivorceApply, + [ProtoEnum(Name = "MarriageStatus_Divorced", Value = 9)] + MarriageStatus_Divorced, + [ProtoEnum(Name = "MarriageStatus_Max", Value = 10)] + MarriageStatus_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MarriageStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MarriageStatus.cs.meta new file mode 100644 index 00000000..42476e89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MarriageStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8f058a3247d8ba4492ed0e949e221c4 +timeCreated: 1611404407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MatchToWorldType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MatchToWorldType.cs new file mode 100644 index 00000000..a247dacf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MatchToWorldType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MatchToWorldType")] + public enum MatchToWorldType + { + [ProtoEnum(Name = "MTWT_ADD", Value = 1)] + MTWT_ADD = 1, + [ProtoEnum(Name = "MTWT_DEL", Value = 2)] + MTWT_DEL, + [ProtoEnum(Name = "MTWT_MATCH_INWORLD", Value = 3)] + MTWT_MATCH_INWORLD + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MatchToWorldType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MatchToWorldType.cs.meta new file mode 100644 index 00000000..998d74b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MatchToWorldType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 150e60ed7c568d94a922085d9ba7a257 +timeCreated: 1611403261 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MayhemRankInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MayhemRankInfo.cs new file mode 100644 index 00000000..2e543f1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MayhemRankInfo.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MayhemRankInfo")] + [Serializable] + public class MayhemRankInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public uint killcount + { + get + { + return this._killcount ?? 0u; + } + set + { + this._killcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new uint?(this.killcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "svrname", DataFormat = DataFormat.Default)] + public string svrname + { + get + { + return this._svrname ?? ""; + } + set + { + this._svrname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool svrnameSpecified + { + get + { + return this._svrname != null; + } + set + { + bool flag = value == (this._svrname == null); + if (flag) + { + this._svrname = (value ? this.svrname : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "pro", DataFormat = DataFormat.TwosComplement)] + public uint pro + { + get + { + return this._pro ?? 0u; + } + set + { + this._pro = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool proSpecified + { + get + { + return this._pro != null; + } + set + { + bool flag = value == (this._pro == null); + if (flag) + { + this._pro = (value ? new uint?(this.pro) : null); + } + } + } + + private ulong? _roleid; + + private uint? _point; + + private uint? _killcount; + + private uint? _time; + + private uint? _serverid; + + private string _name; + + private string _svrname; + + private uint? _pro; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializesvrname() + { + return this.svrnameSpecified; + } + + private void Resetsvrname() + { + this.svrnameSpecified = false; + } + + private bool ShouldSerializepro() + { + return this.proSpecified; + } + + private void Resetpro() + { + this.proSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MayhemRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MayhemRankInfo.cs.meta new file mode 100644 index 00000000..0a60df99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MayhemRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93f33c3f039a3db4e80df3584e63eed5 +timeCreated: 1611404152 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorApplyStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorApplyStatus.cs new file mode 100644 index 00000000..ae1ee8e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorApplyStatus.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorApplyStatus")] + public enum MentorApplyStatus + { + [ProtoEnum(Name = "MentorApplyMaster", Value = 1)] + MentorApplyMaster = 1, + [ProtoEnum(Name = "MentorApplyStudent", Value = 2)] + MentorApplyStudent, + [ProtoEnum(Name = "MentorApplyHas", Value = 3)] + MentorApplyHas, + [ProtoEnum(Name = "MentorApplyStatusMax", Value = 4)] + MentorApplyStatusMax + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorApplyStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorApplyStatus.cs.meta new file mode 100644 index 00000000..7eb080bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorApplyStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d03dbae22d685e94fb0cc38f0be00e13 +timeCreated: 1611404585 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorBreakApplyInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorBreakApplyInfo.cs new file mode 100644 index 00000000..9ef66fe2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorBreakApplyInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorBreakApplyInfo")] + [Serializable] + public class MentorBreakApplyInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] + public EMentorRelationPosition pos + { + get + { + return this._pos ?? EMentorRelationPosition.EMentorPosMaster; + } + set + { + this._pos = new EMentorRelationPosition?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posSpecified + { + get + { + return this._pos != null; + } + set + { + bool flag = value == (this._pos == null); + if (flag) + { + this._pos = (value ? new EMentorRelationPosition?(this.pos) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "breakTime", DataFormat = DataFormat.TwosComplement)] + public int breakTime + { + get + { + return this._breakTime ?? 0; + } + set + { + this._breakTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool breakTimeSpecified + { + get + { + return this._breakTime != null; + } + set + { + bool flag = value == (this._breakTime == null); + if (flag) + { + this._breakTime = (value ? new int?(this.breakTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + private EMentorRelationPosition? _pos; + + private int? _breakTime; + + private ulong? _roleID; + + private string _roleName; + + private IExtension extensionObject; + + private bool ShouldSerializepos() + { + return this.posSpecified; + } + + private void Resetpos() + { + this.posSpecified = false; + } + + private bool ShouldSerializebreakTime() + { + return this.breakTimeSpecified; + } + + private void ResetbreakTime() + { + this.breakTimeSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorBreakApplyInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorBreakApplyInfo.cs.meta new file mode 100644 index 00000000..c1110c66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorBreakApplyInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 589cc75a198024945a045455e0d2d762 +timeCreated: 1611403757 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorMsgApplyType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorMsgApplyType.cs new file mode 100644 index 00000000..e3e83144 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorMsgApplyType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorMsgApplyType")] + public enum MentorMsgApplyType + { + [ProtoEnum(Name = "MentorMsgApplyMaster", Value = 1)] + MentorMsgApplyMaster = 1, + [ProtoEnum(Name = "MentorMsgApplyStudent", Value = 2)] + MentorMsgApplyStudent, + [ProtoEnum(Name = "MentorMsgApplyInherit", Value = 3)] + MentorMsgApplyInherit, + [ProtoEnum(Name = "MentorMsgApplyReportTask", Value = 4)] + MentorMsgApplyReportTask, + [ProtoEnum(Name = "MentorMsgApplyBreak", Value = 5)] + MentorMsgApplyBreak, + [ProtoEnum(Name = "MentorMsgApplyMax", Value = 6)] + MentorMsgApplyMax + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorMsgApplyType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorMsgApplyType.cs.meta new file mode 100644 index 00000000..03fc5eaf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorMsgApplyType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1d0dec2d7d312a4c9e83309e0354405 +timeCreated: 1611404840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs new file mode 100644 index 00000000..ee435009 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorMyBeAppliedMsgArg")] + [Serializable] + public class MentorMyBeAppliedMsgArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "operation", DataFormat = DataFormat.TwosComplement)] + public EMentorMsgOpType operation + { + get + { + return this._operation ?? EMentorMsgOpType.EMentorMsgOp_Get; + } + set + { + this._operation = new EMentorMsgOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool operationSpecified + { + get + { + return this._operation != null; + } + set + { + bool flag = value == (this._operation == null); + if (flag) + { + this._operation = (value ? new EMentorMsgOpType?(this.operation) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "msgType", DataFormat = DataFormat.TwosComplement)] + public MentorMsgApplyType msgType + { + get + { + return this._msgType ?? MentorMsgApplyType.MentorMsgApplyMaster; + } + set + { + this._msgType = new MentorMsgApplyType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool msgTypeSpecified + { + get + { + return this._msgType != null; + } + set + { + bool flag = value == (this._msgType == null); + if (flag) + { + this._msgType = (value ? new MentorMsgApplyType?(this.msgType) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "taskID", DataFormat = DataFormat.TwosComplement)] + public int taskID + { + get + { + return this._taskID ?? 0; + } + set + { + this._taskID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskIDSpecified + { + get + { + return this._taskID != null; + } + set + { + bool flag = value == (this._taskID == null); + if (flag) + { + this._taskID = (value ? new int?(this.taskID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "operatingAllTask", DataFormat = DataFormat.Default)] + public bool operatingAllTask + { + get + { + return this._operatingAllTask ?? false; + } + set + { + this._operatingAllTask = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool operatingAllTaskSpecified + { + get + { + return this._operatingAllTask != null; + } + set + { + bool flag = value == (this._operatingAllTask == null); + if (flag) + { + this._operatingAllTask = (value ? new bool?(this.operatingAllTask) : null); + } + } + } + + private EMentorMsgOpType? _operation; + + private ulong? _roleID; + + private MentorMsgApplyType? _msgType; + + private int? _taskID; + + private bool? _operatingAllTask; + + private IExtension extensionObject; + + private bool ShouldSerializeoperation() + { + return this.operationSpecified; + } + + private void Resetoperation() + { + this.operationSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializemsgType() + { + return this.msgTypeSpecified; + } + + private void ResetmsgType() + { + this.msgTypeSpecified = false; + } + + private bool ShouldSerializetaskID() + { + return this.taskIDSpecified; + } + + private void ResettaskID() + { + this.taskIDSpecified = false; + } + + private bool ShouldSerializeoperatingAllTask() + { + return this.operatingAllTaskSpecified; + } + + private void ResetoperatingAllTask() + { + this.operatingAllTaskSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs.meta new file mode 100644 index 00000000..b51b1830 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b345e131e893cd4a82d9ffb7331523e +timeCreated: 1611404094 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs new file mode 100644 index 00000000..b787bf0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorMyBeAppliedMsgRes")] + [Serializable] + public class MentorMyBeAppliedMsgRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "msgList", DataFormat = DataFormat.Default)] + public List msgList + { + get + { + return this._msgList; + } + } + + private ErrorCode? _error; + + private readonly List _msgList = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs.meta new file mode 100644 index 00000000..1282d3dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorMyBeAppliedMsgRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c27cf8fba70811340881359b09900331 +timeCreated: 1611404493 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpArg.cs new file mode 100644 index 00000000..0593a10d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorRelationOpArg")] + [Serializable] + public class MentorRelationOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "operation", DataFormat = DataFormat.TwosComplement)] + public MentorRelationOpType operation + { + get + { + return this._operation ?? MentorRelationOpType.MentorRelationOp_ApplyMaster; + } + set + { + this._operation = new MentorRelationOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool operationSpecified + { + get + { + return this._operation != null; + } + set + { + bool flag = value == (this._operation == null); + if (flag) + { + this._operation = (value ? new MentorRelationOpType?(this.operation) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "destRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong destRoleID + { + get + { + return this._destRoleID ?? 0UL; + } + set + { + this._destRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool destRoleIDSpecified + { + get + { + return this._destRoleID != null; + } + set + { + bool flag = value == (this._destRoleID == null); + if (flag) + { + this._destRoleID = (value ? new ulong?(this.destRoleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "reportTaskID", DataFormat = DataFormat.TwosComplement)] + public int reportTaskID + { + get + { + return this._reportTaskID ?? 0; + } + set + { + this._reportTaskID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reportTaskIDSpecified + { + get + { + return this._reportTaskID != null; + } + set + { + bool flag = value == (this._reportTaskID == null); + if (flag) + { + this._reportTaskID = (value ? new int?(this.reportTaskID) : null); + } + } + } + + private MentorRelationOpType? _operation; + + private ulong? _destRoleID; + + private int? _reportTaskID; + + private IExtension extensionObject; + + private bool ShouldSerializeoperation() + { + return this.operationSpecified; + } + + private void Resetoperation() + { + this.operationSpecified = false; + } + + private bool ShouldSerializedestRoleID() + { + return this.destRoleIDSpecified; + } + + private void ResetdestRoleID() + { + this.destRoleIDSpecified = false; + } + + private bool ShouldSerializereportTaskID() + { + return this.reportTaskIDSpecified; + } + + private void ResetreportTaskID() + { + this.reportTaskIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpArg.cs.meta new file mode 100644 index 00000000..42aaee19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0faf33696718f940b73275080cbda23 +timeCreated: 1611404251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpRes.cs new file mode 100644 index 00000000..577906a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorRelationOpRes")] + [Serializable] + public class MentorRelationOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "curTime", DataFormat = DataFormat.TwosComplement)] + public int curTime + { + get + { + return this._curTime ?? 0; + } + set + { + this._curTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curTimeSpecified + { + get + { + return this._curTime != null; + } + set + { + bool flag = value == (this._curTime == null); + if (flag) + { + this._curTime = (value ? new int?(this.curTime) : null); + } + } + } + + private ErrorCode? _error; + + private int? _curTime; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecurTime() + { + return this.curTimeSpecified; + } + + private void ResetcurTime() + { + this.curTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpRes.cs.meta new file mode 100644 index 00000000..f867381b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 52943c1261174224a92a4f0567d7fdb2 +timeCreated: 1611403708 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpType.cs new file mode 100644 index 00000000..12b55bc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpType.cs @@ -0,0 +1,30 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorRelationOpType")] + public enum MentorRelationOpType + { + [ProtoEnum(Name = "MentorRelationOp_ApplyMaster", Value = 1)] + MentorRelationOp_ApplyMaster = 1, + [ProtoEnum(Name = "MentorRelationOp_ApplyStudent", Value = 2)] + MentorRelationOp_ApplyStudent, + [ProtoEnum(Name = "MentorRelationOp_Inherit", Value = 3)] + MentorRelationOp_Inherit, + [ProtoEnum(Name = "MentorRelationOp_ReportTask", Value = 4)] + MentorRelationOp_ReportTask, + [ProtoEnum(Name = "MentorRelationOp_ReportAllTask", Value = 5)] + MentorRelationOp_ReportAllTask, + [ProtoEnum(Name = "MentorRelationOp_Break", Value = 6)] + MentorRelationOp_Break, + [ProtoEnum(Name = "MentorRelationOp_BreakCancel", Value = 7)] + MentorRelationOp_BreakCancel, + [ProtoEnum(Name = "MentorRelationOp_NormalComplete", Value = 8)] + MentorRelationOp_NormalComplete, + [ProtoEnum(Name = "MentorRelationOp_ForceComplete", Value = 9)] + MentorRelationOp_ForceComplete, + [ProtoEnum(Name = "MentorRelationOp_Max", Value = 10)] + MentorRelationOp_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpType.cs.meta new file mode 100644 index 00000000..2573448f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f42a15bf561a1642847fdbbdf6bd4bd +timeCreated: 1611403700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatus.cs new file mode 100644 index 00000000..8e3e8ce9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatus.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorRelationStatus")] + public enum MentorRelationStatus + { + [ProtoEnum(Name = "MentorRelationIn", Value = 1)] + MentorRelationIn = 1, + [ProtoEnum(Name = "MentorRelationComplete", Value = 2)] + MentorRelationComplete, + [ProtoEnum(Name = "MentorRelationBreakApply", Value = 3)] + MentorRelationBreakApply, + [ProtoEnum(Name = "MentorRelationBreak", Value = 4)] + MentorRelationBreak, + [ProtoEnum(Name = "MentorRelationMax", Value = 5)] + MentorRelationMax + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatus.cs.meta new file mode 100644 index 00000000..33305517 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8cd672b9284b1a846a30246e1c6eb03b +timeCreated: 1611404101 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatusData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatusData.cs new file mode 100644 index 00000000..f6e8a47b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatusData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorRelationStatusData")] + [Serializable] + public class MentorRelationStatusData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "status", DataFormat = DataFormat.TwosComplement)] + public uint status + { + get + { + return this._status ?? 0u; + } + set + { + this._status = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statusSpecified + { + get + { + return this._status != null; + } + set + { + bool flag = value == (this._status == null); + if (flag) + { + this._status = (value ? new uint?(this.status) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _status; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializestatus() + { + return this.statusSpecified; + } + + private void Resetstatus() + { + this.statusSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatusData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatusData.cs.meta new file mode 100644 index 00000000..3316aa4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorRelationStatusData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5c65e7ead62bd74c9af6f8208b3eb19 +timeCreated: 1611404877 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorSelfInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorSelfInfo.cs new file mode 100644 index 00000000..94e218af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorSelfInfo.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorSelfInfo")] + [Serializable] + public class MentorSelfInfo : IExtensible + { + [ProtoMember(1, Name = "selfTaskList", DataFormat = DataFormat.Default)] + public List selfTaskList + { + get + { + return this._selfTaskList; + } + } + + private readonly List _selfTaskList = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorSelfInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorSelfInfo.cs.meta new file mode 100644 index 00000000..59b3c09e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorSelfInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ca2782ddfb97ca4aa3cb10012180a42 +timeCreated: 1611404100 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorTaskType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MentorTaskType.cs new file mode 100644 index 00000000..8ef15d73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorTaskType.cs @@ -0,0 +1,72 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MentorTaskType")] + public enum MentorTaskType + { + [ProtoEnum(Name = "MentorTask_JoinGuild", Value = 1)] + MentorTask_JoinGuild = 1, + [ProtoEnum(Name = "MentorTask_Jade", Value = 2)] + MentorTask_Jade, + [ProtoEnum(Name = "MentorTask_Title", Value = 3)] + MentorTask_Title, + [ProtoEnum(Name = "MentorTask_Pandora", Value = 4)] + MentorTask_Pandora, + [ProtoEnum(Name = "MentorTask_StageTypeCount", Value = 5)] + MentorTask_StageTypeCount, + [ProtoEnum(Name = "MentorTask_GuildCheckIn", Value = 6)] + MentorTask_GuildCheckIn, + [ProtoEnum(Name = "MentorTask_GuildAuctBenefit", Value = 7)] + MentorTask_GuildAuctBenefit, + [ProtoEnum(Name = "MentorTask_RiskStage", Value = 8)] + MentorTask_RiskStage, + [ProtoEnum(Name = "MentorTask_ProtectCaptain", Value = 9)] + MentorTask_ProtectCaptain, + [ProtoEnum(Name = "MentorTask_TianTi", Value = 10)] + MentorTask_TianTi, + [ProtoEnum(Name = "MentorTask_Emblem", Value = 11)] + MentorTask_Emblem, + [ProtoEnum(Name = "MentorTask_DailyActive", Value = 12)] + MentorTask_DailyActive, + [ProtoEnum(Name = "MentorTask_WorldBossCount", Value = 13)] + MentorTask_WorldBossCount, + [ProtoEnum(Name = "MentorTask_BossRush", Value = 14)] + MentorTask_BossRush, + [ProtoEnum(Name = "MentorTask_StageStar", Value = 15)] + MentorTask_StageStar, + [ProtoEnum(Name = "MentorTask_SkyFloor", Value = 16)] + MentorTask_SkyFloor, + [ProtoEnum(Name = "MentorTask_TowerFloor", Value = 17)] + MentorTask_TowerFloor, + [ProtoEnum(Name = "MentorTask_WorldBossRank", Value = 18)] + MentorTask_WorldBossRank, + [ProtoEnum(Name = "MentorTask_GuildBossCount", Value = 19)] + MentorTask_GuildBossCount, + [ProtoEnum(Name = "MentorTask_DailyTask", Value = 20)] + MentorTask_DailyTask, + [ProtoEnum(Name = "MentorTask_SkyCount", Value = 21)] + MentorTask_SkyCount, + [ProtoEnum(Name = "MentorTask_AllEquipStengthen", Value = 22)] + MentorTask_AllEquipStengthen, + [ProtoEnum(Name = "MentorTask_GuildTianTiCount", Value = 23)] + MentorTask_GuildTianTiCount, + [ProtoEnum(Name = "MentorTask_MentorIntimacy", Value = 24)] + MentorTask_MentorIntimacy, + [ProtoEnum(Name = "MentorTask_IBShopBuy", Value = 25)] + MentorTask_IBShopBuy, + [ProtoEnum(Name = "MentorTask_BuyPrivilege", Value = 26)] + MentorTask_BuyPrivilege, + [ProtoEnum(Name = "MentorTask_BuyFund", Value = 27)] + MentorTask_BuyFund, + [ProtoEnum(Name = "MentorTask_BuyGift", Value = 28)] + MentorTask_BuyGift, + [ProtoEnum(Name = "MentorTask_AllEquipQuality", Value = 29)] + MentorTask_AllEquipQuality, + [ProtoEnum(Name = "MentorTask_AuctBuy", Value = 30)] + MentorTask_AuctBuy, + [ProtoEnum(Name = "MentorTask_AuctSale", Value = 31)] + MentorTask_AuctSale + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MentorTaskType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MentorTaskType.cs.meta new file mode 100644 index 00000000..9a52d8cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MentorTaskType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c06d298cf51b2443852094f30eaeae3 +timeCreated: 1611403995 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MidasExceptionInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MidasExceptionInfo.cs new file mode 100644 index 00000000..3c399421 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MidasExceptionInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MidasExceptionInfo")] + [Serializable] + public class MidasExceptionInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MidasExceptionInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MidasExceptionInfo.cs.meta new file mode 100644 index 00000000..65e3c195 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MidasExceptionInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1372c41925633ca4faefb4ce7dc10b13 +timeCreated: 1611403248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRankData.cs new file mode 100644 index 00000000..fc891a20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRankData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MilitaryRankData")] + [Serializable] + public class MilitaryRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "military_exploit", DataFormat = DataFormat.TwosComplement)] + public uint military_exploit + { + get + { + return this._military_exploit ?? 0u; + } + set + { + this._military_exploit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_exploitSpecified + { + get + { + return this._military_exploit != null; + } + set + { + bool flag = value == (this._military_exploit == null); + if (flag) + { + this._military_exploit = (value ? new uint?(this.military_exploit) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "military_rank", DataFormat = DataFormat.TwosComplement)] + public uint military_rank + { + get + { + return this._military_rank ?? 0u; + } + set + { + this._military_rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_rankSpecified + { + get + { + return this._military_rank != null; + } + set + { + bool flag = value == (this._military_rank == null); + if (flag) + { + this._military_rank = (value ? new uint?(this.military_rank) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "total_num", DataFormat = DataFormat.TwosComplement)] + public uint total_num + { + get + { + return this._total_num ?? 0u; + } + set + { + this._total_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool total_numSpecified + { + get + { + return this._total_num != null; + } + set + { + bool flag = value == (this._total_num == null); + if (flag) + { + this._total_num = (value ? new uint?(this.total_num) : null); + } + } + } + + private uint? _military_exploit; + + private uint? _military_rank; + + private uint? _total_num; + + private IExtension extensionObject; + + private bool ShouldSerializemilitary_exploit() + { + return this.military_exploitSpecified; + } + + private void Resetmilitary_exploit() + { + this.military_exploitSpecified = false; + } + + private bool ShouldSerializemilitary_rank() + { + return this.military_rankSpecified; + } + + private void Resetmilitary_rank() + { + this.military_rankSpecified = false; + } + + private bool ShouldSerializetotal_num() + { + return this.total_numSpecified; + } + + private void Resettotal_num() + { + this.total_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRankData.cs.meta new file mode 100644 index 00000000..5bed6127 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44d50e0c0482a6e40b8e86c9a6314209 +timeCreated: 1611403646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRecord.cs new file mode 100644 index 00000000..6c4f48b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRecord.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MilitaryRecord")] + [Serializable] + public class MilitaryRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "military_rank", DataFormat = DataFormat.TwosComplement)] + public uint military_rank + { + get + { + return this._military_rank ?? 0u; + } + set + { + this._military_rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_rankSpecified + { + get + { + return this._military_rank != null; + } + set + { + bool flag = value == (this._military_rank == null); + if (flag) + { + this._military_rank = (value ? new uint?(this.military_rank) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "military_rank_his", DataFormat = DataFormat.TwosComplement)] + public uint military_rank_his + { + get + { + return this._military_rank_his ?? 0u; + } + set + { + this._military_rank_his = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_rank_hisSpecified + { + get + { + return this._military_rank_his != null; + } + set + { + bool flag = value == (this._military_rank_his == null); + if (flag) + { + this._military_rank_his = (value ? new uint?(this.military_rank_his) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "military_exploit", DataFormat = DataFormat.TwosComplement)] + public uint military_exploit + { + get + { + return this._military_exploit ?? 0u; + } + set + { + this._military_exploit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_exploitSpecified + { + get + { + return this._military_exploit != null; + } + set + { + bool flag = value == (this._military_exploit == null); + if (flag) + { + this._military_exploit = (value ? new uint?(this.military_exploit) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "military_exploit_his", DataFormat = DataFormat.TwosComplement)] + public uint military_exploit_his + { + get + { + return this._military_exploit_his ?? 0u; + } + set + { + this._military_exploit_his = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_exploit_hisSpecified + { + get + { + return this._military_exploit_his != null; + } + set + { + bool flag = value == (this._military_exploit_his == null); + if (flag) + { + this._military_exploit_his = (value ? new uint?(this.military_exploit_his) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "last_update_time", DataFormat = DataFormat.TwosComplement)] + public uint last_update_time + { + get + { + return this._last_update_time ?? 0u; + } + set + { + this._last_update_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_update_timeSpecified + { + get + { + return this._last_update_time != null; + } + set + { + bool flag = value == (this._last_update_time == null); + if (flag) + { + this._last_update_time = (value ? new uint?(this.last_update_time) : null); + } + } + } + + [ProtoMember(6, Name = "achieve_rank", DataFormat = DataFormat.TwosComplement)] + public List achieve_rank + { + get + { + return this._achieve_rank; + } + } + + private uint? _military_rank; + + private uint? _military_rank_his; + + private uint? _military_exploit; + + private uint? _military_exploit_his; + + private uint? _last_update_time; + + private readonly List _achieve_rank = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializemilitary_rank() + { + return this.military_rankSpecified; + } + + private void Resetmilitary_rank() + { + this.military_rankSpecified = false; + } + + private bool ShouldSerializemilitary_rank_his() + { + return this.military_rank_hisSpecified; + } + + private void Resetmilitary_rank_his() + { + this.military_rank_hisSpecified = false; + } + + private bool ShouldSerializemilitary_exploit() + { + return this.military_exploitSpecified; + } + + private void Resetmilitary_exploit() + { + this.military_exploitSpecified = false; + } + + private bool ShouldSerializemilitary_exploit_his() + { + return this.military_exploit_hisSpecified; + } + + private void Resetmilitary_exploit_his() + { + this.military_exploit_hisSpecified = false; + } + + private bool ShouldSerializelast_update_time() + { + return this.last_update_timeSpecified; + } + + private void Resetlast_update_time() + { + this.last_update_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRecord.cs.meta new file mode 100644 index 00000000..ca597c90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MilitaryRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d8e8f7d57424b34ebe04d343cbf9c6e +timeCreated: 1611403506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaAddExpData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaAddExpData.cs new file mode 100644 index 00000000..7625b1ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaAddExpData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaAddExpData")] + [Serializable] + public class MobaAddExpData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "addexp", DataFormat = DataFormat.TwosComplement)] + public double addexp + { + get + { + return this._addexp ?? 0.0; + } + set + { + this._addexp = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool addexpSpecified + { + get + { + return this._addexp != null; + } + set + { + bool flag = value == (this._addexp == null); + if (flag) + { + this._addexp = (value ? new double?(this.addexp) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "posxz", DataFormat = DataFormat.TwosComplement)] + public uint posxz + { + get + { + return this._posxz ?? 0u; + } + set + { + this._posxz = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posxzSpecified + { + get + { + return this._posxz != null; + } + set + { + bool flag = value == (this._posxz == null); + if (flag) + { + this._posxz = (value ? new uint?(this.posxz) : null); + } + } + } + + private double? _addexp; + + private uint? _posxz; + + private IExtension extensionObject; + + private bool ShouldSerializeaddexp() + { + return this.addexpSpecified; + } + + private void Resetaddexp() + { + this.addexpSpecified = false; + } + + private bool ShouldSerializeposxz() + { + return this.posxzSpecified; + } + + private void Resetposxz() + { + this.posxzSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaAddExpData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaAddExpData.cs.meta new file mode 100644 index 00000000..913b6fc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaAddExpData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58b7bee0defb1134791dce53dccd5913 +timeCreated: 1611403760 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGame.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGame.cs new file mode 100644 index 00000000..9c4df52d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGame.cs @@ -0,0 +1,386 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleOneGame")] + [Serializable] + public class MobaBattleOneGame : IExtensible + { + [ProtoMember(1, Name = "team1", DataFormat = DataFormat.Default)] + public List team1 + { + get + { + return this._team1; + } + } + + [ProtoMember(2, Name = "team2", DataFormat = DataFormat.Default)] + public List team2 + { + get + { + return this._team2; + } + } + + [ProtoMember(3, IsRequired = false, Name = "tag", DataFormat = DataFormat.TwosComplement)] + public uint tag + { + get + { + return this._tag ?? 0u; + } + set + { + this._tag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tagSpecified + { + get + { + return this._tag != null; + } + set + { + bool flag = value == (this._tag == null); + if (flag) + { + this._tag = (value ? new uint?(this.tag) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "date", DataFormat = DataFormat.TwosComplement)] + public uint date + { + get + { + return this._date ?? 0u; + } + set + { + this._date = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dateSpecified + { + get + { + return this._date != null; + } + set + { + bool flag = value == (this._date == null); + if (flag) + { + this._date = (value ? new uint?(this.date) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "timeSpan", DataFormat = DataFormat.TwosComplement)] + public uint timeSpan + { + get + { + return this._timeSpan ?? 0u; + } + set + { + this._timeSpan = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpanSpecified + { + get + { + return this._timeSpan != null; + } + set + { + bool flag = value == (this._timeSpan == null); + if (flag) + { + this._timeSpan = (value ? new uint?(this.timeSpan) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "winteamid", DataFormat = DataFormat.TwosComplement)] + public uint winteamid + { + get + { + return this._winteamid ?? 0u; + } + set + { + this._winteamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winteamidSpecified + { + get + { + return this._winteamid != null; + } + set + { + bool flag = value == (this._winteamid == null); + if (flag) + { + this._winteamid = (value ? new uint?(this.winteamid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "mvpid", DataFormat = DataFormat.TwosComplement)] + public ulong mvpid + { + get + { + return this._mvpid ?? 0UL; + } + set + { + this._mvpid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mvpidSpecified + { + get + { + return this._mvpid != null; + } + set + { + bool flag = value == (this._mvpid == null); + if (flag) + { + this._mvpid = (value ? new ulong?(this.mvpid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "losemvpid", DataFormat = DataFormat.TwosComplement)] + public ulong losemvpid + { + get + { + return this._losemvpid ?? 0UL; + } + set + { + this._losemvpid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losemvpidSpecified + { + get + { + return this._losemvpid != null; + } + set + { + bool flag = value == (this._losemvpid == null); + if (flag) + { + this._losemvpid = (value ? new ulong?(this.losemvpid) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "damagemaxid", DataFormat = DataFormat.TwosComplement)] + public ulong damagemaxid + { + get + { + return this._damagemaxid ?? 0UL; + } + set + { + this._damagemaxid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool damagemaxidSpecified + { + get + { + return this._damagemaxid != null; + } + set + { + bool flag = value == (this._damagemaxid == null); + if (flag) + { + this._damagemaxid = (value ? new ulong?(this.damagemaxid) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "behitdamagemaxid", DataFormat = DataFormat.TwosComplement)] + public ulong behitdamagemaxid + { + get + { + return this._behitdamagemaxid ?? 0UL; + } + set + { + this._behitdamagemaxid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool behitdamagemaxidSpecified + { + get + { + return this._behitdamagemaxid != null; + } + set + { + bool flag = value == (this._behitdamagemaxid == null); + if (flag) + { + this._behitdamagemaxid = (value ? new ulong?(this.behitdamagemaxid) : null); + } + } + } + + private readonly List _team1 = new List(); + + private readonly List _team2 = new List(); + + private uint? _tag; + + private uint? _date; + + private uint? _timeSpan; + + private uint? _winteamid; + + private ulong? _mvpid; + + private ulong? _losemvpid; + + private ulong? _damagemaxid; + + private ulong? _behitdamagemaxid; + + private IExtension extensionObject; + + private bool ShouldSerializetag() + { + return this.tagSpecified; + } + + private void Resettag() + { + this.tagSpecified = false; + } + + private bool ShouldSerializedate() + { + return this.dateSpecified; + } + + private void Resetdate() + { + this.dateSpecified = false; + } + + private bool ShouldSerializetimeSpan() + { + return this.timeSpanSpecified; + } + + private void ResettimeSpan() + { + this.timeSpanSpecified = false; + } + + private bool ShouldSerializewinteamid() + { + return this.winteamidSpecified; + } + + private void Resetwinteamid() + { + this.winteamidSpecified = false; + } + + private bool ShouldSerializemvpid() + { + return this.mvpidSpecified; + } + + private void Resetmvpid() + { + this.mvpidSpecified = false; + } + + private bool ShouldSerializelosemvpid() + { + return this.losemvpidSpecified; + } + + private void Resetlosemvpid() + { + this.losemvpidSpecified = false; + } + + private bool ShouldSerializedamagemaxid() + { + return this.damagemaxidSpecified; + } + + private void Resetdamagemaxid() + { + this.damagemaxidSpecified = false; + } + + private bool ShouldSerializebehitdamagemaxid() + { + return this.behitdamagemaxidSpecified; + } + + private void Resetbehitdamagemaxid() + { + this.behitdamagemaxidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGame.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGame.cs.meta new file mode 100644 index 00000000..26169f1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee985bd7e03ef5943a41c0f2666efca3 +timeCreated: 1611404798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameBrief.cs new file mode 100644 index 00000000..197e5b39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameBrief.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleOneGameBrief")] + [Serializable] + public class MobaBattleOneGameBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "tag", DataFormat = DataFormat.TwosComplement)] + public uint tag + { + get + { + return this._tag ?? 0u; + } + set + { + this._tag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tagSpecified + { + get + { + return this._tag != null; + } + set + { + bool flag = value == (this._tag == null); + if (flag) + { + this._tag = (value ? new uint?(this.tag) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "date", DataFormat = DataFormat.TwosComplement)] + public uint date + { + get + { + return this._date ?? 0u; + } + set + { + this._date = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dateSpecified + { + get + { + return this._date != null; + } + set + { + bool flag = value == (this._date == null); + if (flag) + { + this._date = (value ? new uint?(this.date) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "iswin", DataFormat = DataFormat.Default)] + public bool iswin + { + get + { + return this._iswin ?? false; + } + set + { + this._iswin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iswinSpecified + { + get + { + return this._iswin != null; + } + set + { + bool flag = value == (this._iswin == null); + if (flag) + { + this._iswin = (value ? new bool?(this.iswin) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isescape", DataFormat = DataFormat.Default)] + public bool isescape + { + get + { + return this._isescape ?? false; + } + set + { + this._isescape = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isescapeSpecified + { + get + { + return this._isescape != null; + } + set + { + bool flag = value == (this._isescape == null); + if (flag) + { + this._isescape = (value ? new bool?(this.isescape) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "ismvp", DataFormat = DataFormat.Default)] + public bool ismvp + { + get + { + return this._ismvp ?? false; + } + set + { + this._ismvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismvpSpecified + { + get + { + return this._ismvp != null; + } + set + { + bool flag = value == (this._ismvp == null); + if (flag) + { + this._ismvp = (value ? new bool?(this.ismvp) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "islosemvp", DataFormat = DataFormat.Default)] + public bool islosemvp + { + get + { + return this._islosemvp ?? false; + } + set + { + this._islosemvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool islosemvpSpecified + { + get + { + return this._islosemvp != null; + } + set + { + bool flag = value == (this._islosemvp == null); + if (flag) + { + this._islosemvp = (value ? new bool?(this.islosemvp) : null); + } + } + } + + private uint? _tag; + + private uint? _date; + + private uint? _heroid; + + private bool? _iswin; + + private bool? _isescape; + + private bool? _ismvp; + + private bool? _islosemvp; + + private IExtension extensionObject; + + private bool ShouldSerializetag() + { + return this.tagSpecified; + } + + private void Resettag() + { + this.tagSpecified = false; + } + + private bool ShouldSerializedate() + { + return this.dateSpecified; + } + + private void Resetdate() + { + this.dateSpecified = false; + } + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + private bool ShouldSerializeiswin() + { + return this.iswinSpecified; + } + + private void Resetiswin() + { + this.iswinSpecified = false; + } + + private bool ShouldSerializeisescape() + { + return this.isescapeSpecified; + } + + private void Resetisescape() + { + this.isescapeSpecified = false; + } + + private bool ShouldSerializeismvp() + { + return this.ismvpSpecified; + } + + private void Resetismvp() + { + this.ismvpSpecified = false; + } + + private bool ShouldSerializeislosemvp() + { + return this.islosemvpSpecified; + } + + private void Resetislosemvp() + { + this.islosemvpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameBrief.cs.meta new file mode 100644 index 00000000..4253ed40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d8fb04a400a4e84ba39da6ea512a7d9 +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameRole.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameRole.cs new file mode 100644 index 00000000..0a0d5838 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameRole.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleOneGameRole")] + [Serializable] + public class MobaBattleOneGameRole : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public uint killcount + { + get + { + return this._killcount ?? 0u; + } + set + { + this._killcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new uint?(this.killcount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "deathcount", DataFormat = DataFormat.TwosComplement)] + public uint deathcount + { + get + { + return this._deathcount ?? 0u; + } + set + { + this._deathcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathcountSpecified + { + get + { + return this._deathcount != null; + } + set + { + bool flag = value == (this._deathcount == null); + if (flag) + { + this._deathcount = (value ? new uint?(this.deathcount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "assistcount", DataFormat = DataFormat.TwosComplement)] + public uint assistcount + { + get + { + return this._assistcount ?? 0u; + } + set + { + this._assistcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool assistcountSpecified + { + get + { + return this._assistcount != null; + } + set + { + bool flag = value == (this._assistcount == null); + if (flag) + { + this._assistcount = (value ? new uint?(this.assistcount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "multikillcount", DataFormat = DataFormat.TwosComplement)] + public uint multikillcount + { + get + { + return this._multikillcount ?? 0u; + } + set + { + this._multikillcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool multikillcountSpecified + { + get + { + return this._multikillcount != null; + } + set + { + bool flag = value == (this._multikillcount == null); + if (flag) + { + this._multikillcount = (value ? new uint?(this.multikillcount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "kda", DataFormat = DataFormat.FixedSize)] + public float kda + { + get + { + return this._kda ?? 0f; + } + set + { + this._kda = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kdaSpecified + { + get + { + return this._kda != null; + } + set + { + bool flag = value == (this._kda == null); + if (flag) + { + this._kda = (value ? new float?(this.kda) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "isescape", DataFormat = DataFormat.Default)] + public bool isescape + { + get + { + return this._isescape ?? false; + } + set + { + this._isescape = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isescapeSpecified + { + get + { + return this._isescape != null; + } + set + { + bool flag = value == (this._isescape == null); + if (flag) + { + this._isescape = (value ? new bool?(this.isescape) : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _heroid; + + private uint? _killcount; + + private uint? _deathcount; + + private uint? _assistcount; + + private uint? _multikillcount; + + private float? _kda; + + private bool? _isescape; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializedeathcount() + { + return this.deathcountSpecified; + } + + private void Resetdeathcount() + { + this.deathcountSpecified = false; + } + + private bool ShouldSerializeassistcount() + { + return this.assistcountSpecified; + } + + private void Resetassistcount() + { + this.assistcountSpecified = false; + } + + private bool ShouldSerializemultikillcount() + { + return this.multikillcountSpecified; + } + + private void Resetmultikillcount() + { + this.multikillcountSpecified = false; + } + + private bool ShouldSerializekda() + { + return this.kdaSpecified; + } + + private void Resetkda() + { + this.kdaSpecified = false; + } + + private bool ShouldSerializeisescape() + { + return this.isescapeSpecified; + } + + private void Resetisescape() + { + this.isescapeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameRole.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameRole.cs.meta new file mode 100644 index 00000000..ca87eaed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleOneGameRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a12982b5066193e4aa1422d0f068a6ea +timeCreated: 1611404252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleResult.cs new file mode 100644 index 00000000..26f358b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleResult.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleResult")] + [Serializable] + public class MobaBattleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mvpid", DataFormat = DataFormat.TwosComplement)] + public ulong mvpid + { + get + { + return this._mvpid ?? 0UL; + } + set + { + this._mvpid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mvpidSpecified + { + get + { + return this._mvpid != null; + } + set + { + bool flag = value == (this._mvpid == null); + if (flag) + { + this._mvpid = (value ? new ulong?(this.mvpid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "losemvpid", DataFormat = DataFormat.TwosComplement)] + public ulong losemvpid + { + get + { + return this._losemvpid ?? 0UL; + } + set + { + this._losemvpid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losemvpidSpecified + { + get + { + return this._losemvpid != null; + } + set + { + bool flag = value == (this._losemvpid == null); + if (flag) + { + this._losemvpid = (value ? new ulong?(this.losemvpid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "damagemaxid", DataFormat = DataFormat.TwosComplement)] + public ulong damagemaxid + { + get + { + return this._damagemaxid ?? 0UL; + } + set + { + this._damagemaxid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool damagemaxidSpecified + { + get + { + return this._damagemaxid != null; + } + set + { + bool flag = value == (this._damagemaxid == null); + if (flag) + { + this._damagemaxid = (value ? new ulong?(this.damagemaxid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "behitdamagemaxid", DataFormat = DataFormat.TwosComplement)] + public ulong behitdamagemaxid + { + get + { + return this._behitdamagemaxid ?? 0UL; + } + set + { + this._behitdamagemaxid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool behitdamagemaxidSpecified + { + get + { + return this._behitdamagemaxid != null; + } + set + { + bool flag = value == (this._behitdamagemaxid == null); + if (flag) + { + this._behitdamagemaxid = (value ? new ulong?(this.behitdamagemaxid) : null); + } + } + } + + private ulong? _mvpid; + + private ulong? _losemvpid; + + private ulong? _damagemaxid; + + private ulong? _behitdamagemaxid; + + private IExtension extensionObject; + + private bool ShouldSerializemvpid() + { + return this.mvpidSpecified; + } + + private void Resetmvpid() + { + this.mvpidSpecified = false; + } + + private bool ShouldSerializelosemvpid() + { + return this.losemvpidSpecified; + } + + private void Resetlosemvpid() + { + this.losemvpidSpecified = false; + } + + private bool ShouldSerializedamagemaxid() + { + return this.damagemaxidSpecified; + } + + private void Resetdamagemaxid() + { + this.damagemaxidSpecified = false; + } + + private bool ShouldSerializebehitdamagemaxid() + { + return this.behitdamagemaxidSpecified; + } + + private void Resetbehitdamagemaxid() + { + this.behitdamagemaxidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleResult.cs.meta new file mode 100644 index 00000000..f951ed7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e811dc368bb7ebe4fa5dc21073887b0b +timeCreated: 1611404751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs new file mode 100644 index 00000000..539246dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleRoleResult")] + [Serializable] + public class MobaBattleRoleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isWin", DataFormat = DataFormat.Default)] + public bool isWin + { + get + { + return this._isWin ?? false; + } + set + { + this._isWin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isWinSpecified + { + get + { + return this._isWin != null; + } + set + { + bool flag = value == (this._isWin == null); + if (flag) + { + this._isWin = (value ? new bool?(this.isWin) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "kda", DataFormat = DataFormat.FixedSize)] + public float kda + { + get + { + return this._kda ?? 0f; + } + set + { + this._kda = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kdaSpecified + { + get + { + return this._kda != null; + } + set + { + bool flag = value == (this._kda == null); + if (flag) + { + this._kda = (value ? new float?(this.kda) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isescape", DataFormat = DataFormat.Default)] + public bool isescape + { + get + { + return this._isescape ?? false; + } + set + { + this._isescape = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isescapeSpecified + { + get + { + return this._isescape != null; + } + set + { + bool flag = value == (this._isescape == null); + if (flag) + { + this._isescape = (value ? new bool?(this.isescape) : null); + } + } + } + + [ProtoMember(5, Name = "winreward", DataFormat = DataFormat.Default)] + public List winreward + { + get + { + return this._winreward; + } + } + + private bool? _isWin; + + private uint? _heroid; + + private float? _kda; + + private bool? _isescape; + + private readonly List _winreward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeisWin() + { + return this.isWinSpecified; + } + + private void ResetisWin() + { + this.isWinSpecified = false; + } + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + private bool ShouldSerializekda() + { + return this.kdaSpecified; + } + + private void Resetkda() + { + this.kdaSpecified = false; + } + + private bool ShouldSerializeisescape() + { + return this.isescapeSpecified; + } + + private void Resetisescape() + { + this.isescapeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs.meta new file mode 100644 index 00000000..136f4259 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleRoleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f586a69163f9b6458ea78146a181e63 +timeCreated: 1611403515 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamData.cs new file mode 100644 index 00000000..f3f63be9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleTeamData")] + [Serializable] + public class MobaBattleTeamData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "grouplevel", DataFormat = DataFormat.TwosComplement)] + public uint grouplevel + { + get + { + return this._grouplevel ?? 0u; + } + set + { + this._grouplevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool grouplevelSpecified + { + get + { + return this._grouplevel != null; + } + set + { + bool flag = value == (this._grouplevel == null); + if (flag) + { + this._grouplevel = (value ? new uint?(this.grouplevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "headcount", DataFormat = DataFormat.TwosComplement)] + public uint headcount + { + get + { + return this._headcount ?? 0u; + } + set + { + this._headcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool headcountSpecified + { + get + { + return this._headcount != null; + } + set + { + bool flag = value == (this._headcount == null); + if (flag) + { + this._headcount = (value ? new uint?(this.headcount) : null); + } + } + } + + private uint? _teamid; + + private uint? _grouplevel; + + private uint? _headcount; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializegrouplevel() + { + return this.grouplevelSpecified; + } + + private void Resetgrouplevel() + { + this.grouplevelSpecified = false; + } + + private bool ShouldSerializeheadcount() + { + return this.headcountSpecified; + } + + private void Resetheadcount() + { + this.headcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamData.cs.meta new file mode 100644 index 00000000..e1f2e6b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03775c9e794a1dd4a93dca68a2bb45bf +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs new file mode 100644 index 00000000..a6303d79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleTeamMsg")] + [Serializable] + public class MobaBattleTeamMsg : IExtensible + { + [ProtoMember(1, Name = "teamdata", DataFormat = DataFormat.Default)] + public List teamdata + { + get + { + return this._teamdata; + } + } + + private readonly List _teamdata = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs.meta new file mode 100644 index 00000000..f1541c83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b21cfd0d33d61c640a8294c262f85b9a +timeCreated: 1611404358 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamRoleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamRoleData.cs new file mode 100644 index 00000000..17eea2f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamRoleData.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaBattleTeamRoleData")] + [Serializable] + public class MobaBattleTeamRoleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "team1", DataFormat = DataFormat.TwosComplement)] + public uint team1 + { + get + { + return this._team1 ?? 0u; + } + set + { + this._team1 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool team1Specified + { + get + { + return this._team1 != null; + } + set + { + bool flag = value == (this._team1 == null); + if (flag) + { + this._team1 = (value ? new uint?(this.team1) : null); + } + } + } + + [ProtoMember(2, Name = "datalist1", DataFormat = DataFormat.Default)] + public List datalist1 + { + get + { + return this._datalist1; + } + } + + [ProtoMember(3, IsRequired = false, Name = "team2", DataFormat = DataFormat.TwosComplement)] + public uint team2 + { + get + { + return this._team2 ?? 0u; + } + set + { + this._team2 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool team2Specified + { + get + { + return this._team2 != null; + } + set + { + bool flag = value == (this._team2 == null); + if (flag) + { + this._team2 = (value ? new uint?(this.team2) : null); + } + } + } + + [ProtoMember(4, Name = "datalist2", DataFormat = DataFormat.Default)] + public List datalist2 + { + get + { + return this._datalist2; + } + } + + private uint? _team1; + + private readonly List _datalist1 = new List(); + + private uint? _team2; + + private readonly List _datalist2 = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeteam1() + { + return this.team1Specified; + } + + private void Resetteam1() + { + this.team1Specified = false; + } + + private bool ShouldSerializeteam2() + { + return this.team2Specified; + } + + private void Resetteam2() + { + this.team2Specified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamRoleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamRoleData.cs.meta new file mode 100644 index 00000000..a34355cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaBattleTeamRoleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6f061731f2b14542a459b7f02f3e435 +timeCreated: 1611404290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs new file mode 100644 index 00000000..2c3e23c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaHintNtf")] + [Serializable] + public class MobaHintNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public int index + { + get + { + return this._index ?? 0; + } + set + { + this._index = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new int?(this.index) : null); + } + } + } + + private int? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs.meta new file mode 100644 index 00000000..0334c5a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaHintNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01f2d9b9ac7bff84dbcfe4d0a0cb6cfa +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaMiniMapData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaMiniMapData.cs new file mode 100644 index 00000000..acfa96df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaMiniMapData.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaMiniMapData")] + [Serializable] + public class MobaMiniMapData : IExtensible + { + [ProtoMember(1, Name = "canSeePosIndex", DataFormat = DataFormat.TwosComplement)] + public List canSeePosIndex + { + get + { + return this._canSeePosIndex; + } + } + + private readonly List _canSeePosIndex = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaMiniMapData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaMiniMapData.cs.meta new file mode 100644 index 00000000..8d6122e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaMiniMapData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df97a37064e806c409f5e16c1129238e +timeCreated: 1611404693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs new file mode 100644 index 00000000..c60a8a74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaOp")] + public enum MobaOp + { + [ProtoEnum(Name = "MobaOp_LevelSkill", Value = 1)] + MobaOp_LevelSkill = 1, + [ProtoEnum(Name = "MobaOp_Upgrade", Value = 2)] + MobaOp_Upgrade + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs.meta new file mode 100644 index 00000000..f9101242 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71fbd69c51a11ae4495a71f159cb3448 +timeCreated: 1611403936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleChangeData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleChangeData.cs new file mode 100644 index 00000000..afe44a6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleChangeData.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaRoleChangeData")] + [Serializable] + public class MobaRoleChangeData : IExtensible + { + [ProtoMember(1, Name = "changeRole", DataFormat = DataFormat.Default)] + public List changeRole + { + get + { + return this._changeRole; + } + } + + private readonly List _changeRole = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleChangeData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleChangeData.cs.meta new file mode 100644 index 00000000..26ab38a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleChangeData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0396125d678c6c4f806058cde3ef736 +timeCreated: 1611404485 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleData.cs new file mode 100644 index 00000000..84559340 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleData.cs @@ -0,0 +1,535 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaRoleData")] + [Serializable] + public class MobaRoleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public double exp + { + get + { + return this._exp ?? 0.0; + } + set + { + this._exp = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new double?(this.exp) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "upgradeNum", DataFormat = DataFormat.TwosComplement)] + public uint upgradeNum + { + get + { + return this._upgradeNum ?? 0u; + } + set + { + this._upgradeNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool upgradeNumSpecified + { + get + { + return this._upgradeNum != null; + } + set + { + bool flag = value == (this._upgradeNum == null); + if (flag) + { + this._upgradeNum = (value ? new uint?(this.upgradeNum) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "killNum", DataFormat = DataFormat.TwosComplement)] + public uint killNum + { + get + { + return this._killNum ?? 0u; + } + set + { + this._killNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killNumSpecified + { + get + { + return this._killNum != null; + } + set + { + bool flag = value == (this._killNum == null); + if (flag) + { + this._killNum = (value ? new uint?(this.killNum) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "deathNum", DataFormat = DataFormat.TwosComplement)] + public uint deathNum + { + get + { + return this._deathNum ?? 0u; + } + set + { + this._deathNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathNumSpecified + { + get + { + return this._deathNum != null; + } + set + { + bool flag = value == (this._deathNum == null); + if (flag) + { + this._deathNum = (value ? new uint?(this.deathNum) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "assistNum", DataFormat = DataFormat.TwosComplement)] + public uint assistNum + { + get + { + return this._assistNum ?? 0u; + } + set + { + this._assistNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool assistNumSpecified + { + get + { + return this._assistNum != null; + } + set + { + bool flag = value == (this._assistNum == null); + if (flag) + { + this._assistNum = (value ? new uint?(this.assistNum) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "attackLevel", DataFormat = DataFormat.TwosComplement)] + public uint attackLevel + { + get + { + return this._attackLevel ?? 0u; + } + set + { + this._attackLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool attackLevelSpecified + { + get + { + return this._attackLevel != null; + } + set + { + bool flag = value == (this._attackLevel == null); + if (flag) + { + this._attackLevel = (value ? new uint?(this.attackLevel) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "defenseLevel", DataFormat = DataFormat.TwosComplement)] + public uint defenseLevel + { + get + { + return this._defenseLevel ?? 0u; + } + set + { + this._defenseLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool defenseLevelSpecified + { + get + { + return this._defenseLevel != null; + } + set + { + bool flag = value == (this._defenseLevel == null); + if (flag) + { + this._defenseLevel = (value ? new uint?(this.defenseLevel) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "reviveTime", DataFormat = DataFormat.TwosComplement)] + public uint reviveTime + { + get + { + return this._reviveTime ?? 0u; + } + set + { + this._reviveTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reviveTimeSpecified + { + get + { + return this._reviveTime != null; + } + set + { + bool flag = value == (this._reviveTime == null); + if (flag) + { + this._reviveTime = (value ? new uint?(this.reviveTime) : null); + } + } + } + + private ulong? _uid; + + private string _name; + + private double? _exp; + + private uint? _level; + + private uint? _upgradeNum; + + private uint? _heroid; + + private uint? _killNum; + + private uint? _deathNum; + + private uint? _assistNum; + + private uint? _attackLevel; + + private uint? _defenseLevel; + + private uint? _reviveTime; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeupgradeNum() + { + return this.upgradeNumSpecified; + } + + private void ResetupgradeNum() + { + this.upgradeNumSpecified = false; + } + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + private bool ShouldSerializekillNum() + { + return this.killNumSpecified; + } + + private void ResetkillNum() + { + this.killNumSpecified = false; + } + + private bool ShouldSerializedeathNum() + { + return this.deathNumSpecified; + } + + private void ResetdeathNum() + { + this.deathNumSpecified = false; + } + + private bool ShouldSerializeassistNum() + { + return this.assistNumSpecified; + } + + private void ResetassistNum() + { + this.assistNumSpecified = false; + } + + private bool ShouldSerializeattackLevel() + { + return this.attackLevelSpecified; + } + + private void ResetattackLevel() + { + this.attackLevelSpecified = false; + } + + private bool ShouldSerializedefenseLevel() + { + return this.defenseLevelSpecified; + } + + private void ResetdefenseLevel() + { + this.defenseLevelSpecified = false; + } + + private bool ShouldSerializereviveTime() + { + return this.reviveTimeSpecified; + } + + private void ResetreviveTime() + { + this.reviveTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleData.cs.meta new file mode 100644 index 00000000..bd7ba4c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaRoleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08b2f7a1ebed0aa4ebc1d75c5cfcbfd4 +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalBroadcastData.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalBroadcastData.cs new file mode 100644 index 00000000..61bb4a0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalBroadcastData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaSignalBroadcastData")] + [Serializable] + public class MobaSignalBroadcastData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "posxz", DataFormat = DataFormat.TwosComplement)] + public uint posxz + { + get + { + return this._posxz ?? 0u; + } + set + { + this._posxz = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posxzSpecified + { + get + { + return this._posxz != null; + } + set + { + bool flag = value == (this._posxz == null); + if (flag) + { + this._posxz = (value ? new uint?(this.posxz) : null); + } + } + } + + private uint? _type; + + private ulong? _uid; + + private uint? _posxz; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeposxz() + { + return this.posxzSpecified; + } + + private void Resetposxz() + { + this.posxzSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalBroadcastData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalBroadcastData.cs.meta new file mode 100644 index 00000000..b2216b25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalBroadcastData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88d8085300860764e83d7e15515cc5b6 +timeCreated: 1611404086 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingArg.cs new file mode 100644 index 00000000..a148eb89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaSignalingArg")] + [Serializable] + public class MobaSignalingArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingArg.cs.meta new file mode 100644 index 00000000..848d3db4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4594bcfe51f23fd46ae97ec57fe4e7b3 +timeCreated: 1611403647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingRes.cs new file mode 100644 index 00000000..5ddffb65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MobaSignalingRes")] + [Serializable] + public class MobaSignalingRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingRes.cs.meta new file mode 100644 index 00000000..e603d012 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MobaSignalingRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b2df6a0ce3a7bb45a55ba17145bb088 +timeCreated: 1611403498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ModifyArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ModifyArg.cs new file mode 100644 index 00000000..493ad825 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ModifyArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ModifyArg")] + [Serializable] + public class ModifyArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ModifyArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ModifyArg.cs.meta new file mode 100644 index 00000000..3e9ac87a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ModifyArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdae81880a677f041a704b5d7063b1c3 +timeCreated: 1611404556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameArg.cs new file mode 100644 index 00000000..4bad3313 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ModifyDragonGuildNameArg")] + [Serializable] + public class ModifyDragonGuildNameArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameArg.cs.meta new file mode 100644 index 00000000..2cc2128e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8db34d08ec85c045baac7729c59ab2c +timeCreated: 1611404407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameRes.cs new file mode 100644 index 00000000..527fc2e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ModifyDragonGuildNameRes")] + [Serializable] + public class ModifyDragonGuildNameRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameRes.cs.meta new file mode 100644 index 00000000..8cc535e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ModifyDragonGuildNameRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6f896293f302ec45a1d4b60e3cf51d8 +timeCreated: 1611404290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ModifyRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ModifyRes.cs new file mode 100644 index 00000000..1591bc3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ModifyRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ModifyRes")] + [Serializable] + public class ModifyRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ModifyRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ModifyRes.cs.meta new file mode 100644 index 00000000..f6bfa69d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ModifyRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a8ae774ddf80be478203642c656b016 +timeCreated: 1611403311 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs new file mode 100644 index 00000000..1e7d69dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MoveInfo")] + [Serializable] + public class MoveInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Common", DataFormat = DataFormat.TwosComplement)] + public int Common + { + get + { + return this._Common ?? 0; + } + set + { + this._Common = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CommonSpecified + { + get + { + return this._Common != null; + } + set + { + bool flag = value == (this._Common == null); + if (flag) + { + this._Common = (value ? new int?(this.Common) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "PosXZ", DataFormat = DataFormat.TwosComplement)] + public int PosXZ + { + get + { + return this._PosXZ ?? 0; + } + set + { + this._PosXZ = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PosXZSpecified + { + get + { + return this._PosXZ != null; + } + set + { + bool flag = value == (this._PosXZ == null); + if (flag) + { + this._PosXZ = (value ? new int?(this.PosXZ) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "DesXZ", DataFormat = DataFormat.TwosComplement)] + public int DesXZ + { + get + { + return this._DesXZ ?? 0; + } + set + { + this._DesXZ = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DesXZSpecified + { + get + { + return this._DesXZ != null; + } + set + { + bool flag = value == (this._DesXZ == null); + if (flag) + { + this._DesXZ = (value ? new int?(this.DesXZ) : null); + } + } + } + + private int? _Common; + + private int? _PosXZ; + + private int? _DesXZ; + + private IExtension extensionObject; + + private bool ShouldSerializeCommon() + { + return this.CommonSpecified; + } + + private void ResetCommon() + { + this.CommonSpecified = false; + } + + private bool ShouldSerializePosXZ() + { + return this.PosXZSpecified; + } + + private void ResetPosXZ() + { + this.PosXZSpecified = false; + } + + private bool ShouldSerializeDesXZ() + { + return this.DesXZSpecified; + } + + private void ResetDesXZ() + { + this.DesXZSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs.meta new file mode 100644 index 00000000..fd021b67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MoveInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6b991890b99e9045bbd9653acbc8207 +timeCreated: 1611404633 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivitInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/MulActivitInfo.cs new file mode 100644 index 00000000..8f04b097 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivitInfo.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MulActivitInfo")] + [Serializable] + public class MulActivitInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public int id + { + get + { + return this._id ?? 0; + } + set + { + this._id = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new int?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "openstate", DataFormat = DataFormat.TwosComplement)] + public MulActivityTimeState openstate + { + get + { + return this._openstate ?? MulActivityTimeState.MULACTIVITY_BEfOREOPEN; + } + set + { + this._openstate = new MulActivityTimeState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openstateSpecified + { + get + { + return this._openstate != null; + } + set + { + bool flag = value == (this._openstate == null); + if (flag) + { + this._openstate = (value ? new MulActivityTimeState?(this.openstate) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "dayjoincount", DataFormat = DataFormat.TwosComplement)] + public int dayjoincount + { + get + { + return this._dayjoincount ?? 0; + } + set + { + this._dayjoincount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dayjoincountSpecified + { + get + { + return this._dayjoincount != null; + } + set + { + bool flag = value == (this._dayjoincount == null); + if (flag) + { + this._dayjoincount = (value ? new int?(this.dayjoincount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "beginmin", DataFormat = DataFormat.TwosComplement)] + public uint beginmin + { + get + { + return this._beginmin ?? 0u; + } + set + { + this._beginmin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool beginminSpecified + { + get + { + return this._beginmin != null; + } + set + { + bool flag = value == (this._beginmin == null); + if (flag) + { + this._beginmin = (value ? new uint?(this.beginmin) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "endmin", DataFormat = DataFormat.TwosComplement)] + public uint endmin + { + get + { + return this._endmin ?? 0u; + } + set + { + this._endmin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endminSpecified + { + get + { + return this._endmin != null; + } + set + { + bool flag = value == (this._endmin == null); + if (flag) + { + this._endmin = (value ? new uint?(this.endmin) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "real_open_state", DataFormat = DataFormat.TwosComplement)] + public ActOpenState real_open_state + { + get + { + return this._real_open_state ?? ActOpenState.ActOpenState_NotOpen; + } + set + { + this._real_open_state = new ActOpenState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool real_open_stateSpecified + { + get + { + return this._real_open_state != null; + } + set + { + bool flag = value == (this._real_open_state == null); + if (flag) + { + this._real_open_state = (value ? new ActOpenState?(this.real_open_state) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "is_playing", DataFormat = DataFormat.Default)] + public bool is_playing + { + get + { + return this._is_playing ?? false; + } + set + { + this._is_playing = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_playingSpecified + { + get + { + return this._is_playing != null; + } + set + { + bool flag = value == (this._is_playing == null); + if (flag) + { + this._is_playing = (value ? new bool?(this.is_playing) : null); + } + } + } + + private int? _id; + + private MulActivityTimeState? _openstate; + + private uint? _lefttime; + + private int? _dayjoincount; + + private uint? _beginmin; + + private uint? _endmin; + + private ActOpenState? _real_open_state; + + private bool? _is_playing; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeopenstate() + { + return this.openstateSpecified; + } + + private void Resetopenstate() + { + this.openstateSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + private bool ShouldSerializedayjoincount() + { + return this.dayjoincountSpecified; + } + + private void Resetdayjoincount() + { + this.dayjoincountSpecified = false; + } + + private bool ShouldSerializebeginmin() + { + return this.beginminSpecified; + } + + private void Resetbeginmin() + { + this.beginminSpecified = false; + } + + private bool ShouldSerializeendmin() + { + return this.endminSpecified; + } + + private void Resetendmin() + { + this.endminSpecified = false; + } + + private bool ShouldSerializereal_open_state() + { + return this.real_open_stateSpecified; + } + + private void Resetreal_open_state() + { + this.real_open_stateSpecified = false; + } + + private bool ShouldSerializeis_playing() + { + return this.is_playingSpecified; + } + + private void Resetis_playing() + { + this.is_playingSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivitInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MulActivitInfo.cs.meta new file mode 100644 index 00000000..f8f9e9b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivitInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed33cd32c6012a64b86879efe71b4594 +timeCreated: 1611404790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityArg.cs new file mode 100644 index 00000000..0b71f683 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MulActivityArg")] + [Serializable] + public class MulActivityArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "acid", DataFormat = DataFormat.TwosComplement)] + public int acid + { + get + { + return this._acid ?? 0; + } + set + { + this._acid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool acidSpecified + { + get + { + return this._acid != null; + } + set + { + bool flag = value == (this._acid == null); + if (flag) + { + this._acid = (value ? new int?(this.acid) : null); + } + } + } + + private int? _acid; + + private IExtension extensionObject; + + private bool ShouldSerializeacid() + { + return this.acidSpecified; + } + + private void Resetacid() + { + this.acidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityArg.cs.meta new file mode 100644 index 00000000..cfdbe851 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0e3887d37d3a15408f06a6b629badeb +timeCreated: 1611404251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityCha.cs b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityCha.cs new file mode 100644 index 00000000..f916ff3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityCha.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MulActivityCha")] + [Serializable] + public class MulActivityCha : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "opencount", DataFormat = DataFormat.TwosComplement)] + public int opencount + { + get + { + return this._opencount ?? 0; + } + set + { + this._opencount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opencountSpecified + { + get + { + return this._opencount != null; + } + set + { + bool flag = value == (this._opencount == null); + if (flag) + { + this._opencount = (value ? new int?(this.opencount) : null); + } + } + } + + [ProtoMember(2, Name = "changeInfo", DataFormat = DataFormat.Default)] + public List changeInfo + { + get + { + return this._changeInfo; + } + } + + private int? _opencount; + + private readonly List _changeInfo = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeopencount() + { + return this.opencountSpecified; + } + + private void Resetopencount() + { + this.opencountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityCha.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityCha.cs.meta new file mode 100644 index 00000000..9f499133 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityCha.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7f3fb91ac5593040b4e3fd96e917741 +timeCreated: 1611404533 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityIconSys.cs b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityIconSys.cs new file mode 100644 index 00000000..cee2163d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityIconSys.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MulActivityIconSys")] + [Serializable] + public class MulActivityIconSys : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityIconSys.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityIconSys.cs.meta new file mode 100644 index 00000000..97ba6cfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityIconSys.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ad953e57c7e0964a85fe6d53accad70 +timeCreated: 1611403497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityRes.cs new file mode 100644 index 00000000..b70ef41a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MulActivityRes")] + [Serializable] + public class MulActivityRes : IExtensible + { + [ProtoMember(1, Name = "actinfo", DataFormat = DataFormat.Default)] + public List actinfo + { + get + { + return this._actinfo; + } + } + + [ProtoMember(2, IsRequired = false, Name = "myguildlevel", DataFormat = DataFormat.TwosComplement)] + public int myguildlevel + { + get + { + return this._myguildlevel ?? 0; + } + set + { + this._myguildlevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool myguildlevelSpecified + { + get + { + return this._myguildlevel != null; + } + set + { + bool flag = value == (this._myguildlevel == null); + if (flag) + { + this._myguildlevel = (value ? new int?(this.myguildlevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private readonly List _actinfo = new List(); + + private int? _myguildlevel; + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializemyguildlevel() + { + return this.myguildlevelSpecified; + } + + private void Resetmyguildlevel() + { + this.myguildlevelSpecified = false; + } + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityRes.cs.meta new file mode 100644 index 00000000..247a6884 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a794eef7226d79b4e824bc2a775a2527 +timeCreated: 1611404292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityTimeState.cs b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityTimeState.cs new file mode 100644 index 00000000..be5e13a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityTimeState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MulActivityTimeState")] + public enum MulActivityTimeState + { + [ProtoEnum(Name = "MULACTIVITY_BEfOREOPEN", Value = 1)] + MULACTIVITY_BEfOREOPEN = 1, + [ProtoEnum(Name = "MULACTIVITY_RUNNING", Value = 2)] + MULACTIVITY_RUNNING, + [ProtoEnum(Name = "MULACTIVITY_END", Value = 3)] + MULACTIVITY_END, + [ProtoEnum(Name = "MULACTIVITY_UNOPEN_TODAY", Value = 4)] + MULACTIVITY_UNOPEN_TODAY + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MulActivityTimeState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityTimeState.cs.meta new file mode 100644 index 00000000..36af4c12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MulActivityTimeState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f7555e59ab21a24ba864ccdb849cff6 +timeCreated: 1611403516 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MyDragonGuild.cs b/Client/Assets/Scripts/XMainClient/KKSG/MyDragonGuild.cs new file mode 100644 index 00000000..2fa0b4fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MyDragonGuild.cs @@ -0,0 +1,492 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MyDragonGuild")] + [Serializable] + public class MyDragonGuild : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dgid", DataFormat = DataFormat.TwosComplement)] + public ulong dgid + { + get + { + return this._dgid ?? 0UL; + } + set + { + this._dgid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dgidSpecified + { + get + { + return this._dgid != null; + } + set + { + bool flag = value == (this._dgid == null); + if (flag) + { + this._dgid = (value ? new ulong?(this.dgid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public uint position + { + get + { + return this._position ?? 0u; + } + set + { + this._position = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new uint?(this.position) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "totalPPT", DataFormat = DataFormat.TwosComplement)] + public ulong totalPPT + { + get + { + return this._totalPPT ?? 0UL; + } + set + { + this._totalPPT = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalPPTSpecified + { + get + { + return this._totalPPT != null; + } + set + { + bool flag = value == (this._totalPPT == null); + if (flag) + { + this._totalPPT = (value ? new ulong?(this.totalPPT) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "capacity", DataFormat = DataFormat.TwosComplement)] + public uint capacity + { + get + { + return this._capacity ?? 0u; + } + set + { + this._capacity = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool capacitySpecified + { + get + { + return this._capacity != null; + } + set + { + bool flag = value == (this._capacity == null); + if (flag) + { + this._capacity = (value ? new uint?(this.capacity) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "memberCount", DataFormat = DataFormat.TwosComplement)] + public uint memberCount + { + get + { + return this._memberCount ?? 0u; + } + set + { + this._memberCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberCountSpecified + { + get + { + return this._memberCount != null; + } + set + { + bool flag = value == (this._memberCount == null); + if (flag) + { + this._memberCount = (value ? new uint?(this.memberCount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "mapId", DataFormat = DataFormat.TwosComplement)] + public uint mapId + { + get + { + return this._mapId ?? 0u; + } + set + { + this._mapId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapIdSpecified + { + get + { + return this._mapId != null; + } + set + { + bool flag = value == (this._mapId == null); + if (flag) + { + this._mapId = (value ? new uint?(this.mapId) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "mapCnt", DataFormat = DataFormat.TwosComplement)] + public uint mapCnt + { + get + { + return this._mapCnt ?? 0u; + } + set + { + this._mapCnt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapCntSpecified + { + get + { + return this._mapCnt != null; + } + set + { + bool flag = value == (this._mapCnt == null); + if (flag) + { + this._mapCnt = (value ? new uint?(this.mapCnt) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "firstPassTime", DataFormat = DataFormat.TwosComplement)] + public uint firstPassTime + { + get + { + return this._firstPassTime ?? 0u; + } + set + { + this._firstPassTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstPassTimeSpecified + { + get + { + return this._firstPassTime != null; + } + set + { + bool flag = value == (this._firstPassTime == null); + if (flag) + { + this._firstPassTime = (value ? new uint?(this.firstPassTime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + private ulong? _dgid; + + private uint? _position; + + private uint? _level; + + private string _name; + + private ulong? _totalPPT; + + private uint? _capacity; + + private uint? _memberCount; + + private uint? _mapId; + + private uint? _mapCnt; + + private uint? _firstPassTime; + + private uint? _exp; + + private IExtension extensionObject; + + private bool ShouldSerializedgid() + { + return this.dgidSpecified; + } + + private void Resetdgid() + { + this.dgidSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetotalPPT() + { + return this.totalPPTSpecified; + } + + private void ResettotalPPT() + { + this.totalPPTSpecified = false; + } + + private bool ShouldSerializecapacity() + { + return this.capacitySpecified; + } + + private void Resetcapacity() + { + this.capacitySpecified = false; + } + + private bool ShouldSerializememberCount() + { + return this.memberCountSpecified; + } + + private void ResetmemberCount() + { + this.memberCountSpecified = false; + } + + private bool ShouldSerializemapId() + { + return this.mapIdSpecified; + } + + private void ResetmapId() + { + this.mapIdSpecified = false; + } + + private bool ShouldSerializemapCnt() + { + return this.mapCntSpecified; + } + + private void ResetmapCnt() + { + this.mapCntSpecified = false; + } + + private bool ShouldSerializefirstPassTime() + { + return this.firstPassTimeSpecified; + } + + private void ResetfirstPassTime() + { + this.firstPassTimeSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MyDragonGuild.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MyDragonGuild.cs.meta new file mode 100644 index 00000000..da15bca3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MyDragonGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 432d1f94a11b37f43b93849d81c764a4 +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs b/Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs new file mode 100644 index 00000000..962918ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MyGuild")] + [Serializable] + public class MyGuild : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "gid", DataFormat = DataFormat.TwosComplement)] + public ulong gid + { + get + { + return this._gid ?? 0UL; + } + set + { + this._gid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gidSpecified + { + get + { + return this._gid != null; + } + set + { + bool flag = value == (this._gid == null); + if (flag) + { + this._gid = (value ? new ulong?(this.gid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public int position + { + get + { + return this._position ?? 0; + } + set + { + this._position = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new int?(this.position) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public uint icon + { + get + { + return this._icon ?? 0u; + } + set + { + this._icon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new uint?(this.icon) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ulong? _gid; + + private int? _position; + + private int? _level; + + private uint? _icon; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializegid() + { + return this.gidSpecified; + } + + private void Resetgid() + { + this.gidSpecified = false; + } + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs.meta new file mode 100644 index 00000000..f3b20045 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MyGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 408f749b8716720459656a12aa428154 +timeCreated: 1611403614 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs new file mode 100644 index 00000000..4f608e76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MysqlOpType")] + public enum MysqlOpType + { + [ProtoEnum(Name = "MYSQL_OP_ADD", Value = 1)] + MYSQL_OP_ADD = 1, + [ProtoEnum(Name = "MYSQL_OP_UPDATE", Value = 2)] + MYSQL_OP_UPDATE, + [ProtoEnum(Name = "MYSQL_OP_DELETE", Value = 3)] + MYSQL_OP_DELETE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs.meta new file mode 100644 index 00000000..4c4374e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MysqlOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87a1b067e9264d84988c8f9be12c491a +timeCreated: 1611404080 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MythShopOP.cs b/Client/Assets/Scripts/XMainClient/KKSG/MythShopOP.cs new file mode 100644 index 00000000..f2b2bf0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MythShopOP.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "MythShopOP")] + public enum MythShopOP + { + [ProtoEnum(Name = "MythShopQuery", Value = 1)] + MythShopQuery = 1, + [ProtoEnum(Name = "MythShopBuy", Value = 2)] + MythShopBuy, + [ProtoEnum(Name = "MythShopRefresh", Value = 3)] + MythShopRefresh + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/MythShopOP.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/MythShopOP.cs.meta new file mode 100644 index 00000000..467acf06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/MythShopOP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc179473b21af6c4e81b369937d15b61 +timeCreated: 1611404549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NewBattleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/NewBattleResult.cs new file mode 100644 index 00000000..b4df1d68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NewBattleResult.cs @@ -0,0 +1,181 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NewBattleResult")] + [Serializable] + public class NewBattleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "stageInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public StageResultInfo stageInfo + { + get + { + return this._stageInfo; + } + set + { + this._stageInfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "specialStage", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SpecialStageInfo specialStage + { + get + { + return this._specialStage; + } + set + { + this._specialStage = value; + } + } + + [ProtoMember(3, Name = "roleReward", DataFormat = DataFormat.Default)] + public List roleReward + { + get + { + return this._roleReward; + } + } + + [ProtoMember(4, IsRequired = false, Name = "isFinalResult", DataFormat = DataFormat.Default)] + public bool isFinalResult + { + get + { + return this._isFinalResult ?? false; + } + set + { + this._isFinalResult = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFinalResultSpecified + { + get + { + return this._isFinalResult != null; + } + set + { + bool flag = value == (this._isFinalResult == null); + if (flag) + { + this._isFinalResult = (value ? new bool?(this.isFinalResult) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "watchinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public StageWatchInfo watchinfo + { + get + { + return this._watchinfo; + } + set + { + this._watchinfo = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "guildinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public StageGuildInfo guildinfo + { + get + { + return this._guildinfo; + } + set + { + this._guildinfo = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "isexpseal", DataFormat = DataFormat.Default)] + public bool isexpseal + { + get + { + return this._isexpseal ?? false; + } + set + { + this._isexpseal = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isexpsealSpecified + { + get + { + return this._isexpseal != null; + } + set + { + bool flag = value == (this._isexpseal == null); + if (flag) + { + this._isexpseal = (value ? new bool?(this.isexpseal) : null); + } + } + } + + private StageResultInfo _stageInfo = null; + + private SpecialStageInfo _specialStage = null; + + private readonly List _roleReward = new List(); + + private bool? _isFinalResult; + + private StageWatchInfo _watchinfo = null; + + private StageGuildInfo _guildinfo = null; + + private bool? _isexpseal; + + private IExtension extensionObject; + + private bool ShouldSerializeisFinalResult() + { + return this.isFinalResultSpecified; + } + + private void ResetisFinalResult() + { + this.isFinalResultSpecified = false; + } + + private bool ShouldSerializeisexpseal() + { + return this.isexpsealSpecified; + } + + private void Resetisexpseal() + { + this.isexpsealSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NewBattleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NewBattleResult.cs.meta new file mode 100644 index 00000000..135d80df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NewBattleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5dd7492e698c9b14f8e4ea590ebd8155 +timeCreated: 1611403808 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListArg.cs new file mode 100644 index 00000000..571e4790 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NewGetFlowerRewardListArg")] + [Serializable] + public class NewGetFlowerRewardListArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListArg.cs.meta new file mode 100644 index 00000000..a207ef19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15e5621dbfc70314283f70ff20230c2d +timeCreated: 1611403266 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListRes.cs new file mode 100644 index 00000000..54b30cab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NewGetFlowerRewardListRes")] + [Serializable] + public class NewGetFlowerRewardListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorCode + { + get + { + return this._errorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorCodeSpecified + { + get + { + return this._errorCode != null; + } + set + { + bool flag = value == (this._errorCode == null); + if (flag) + { + this._errorCode = (value ? new ErrorCode?(this.errorCode) : null); + } + } + } + + [ProtoMember(2, Name = "briefList", DataFormat = DataFormat.Default)] + public List briefList + { + get + { + return this._briefList; + } + } + + [ProtoMember(3, IsRequired = false, Name = "canGetReward", DataFormat = DataFormat.Default)] + public bool canGetReward + { + get + { + return this._canGetReward ?? false; + } + set + { + this._canGetReward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canGetRewardSpecified + { + get + { + return this._canGetReward != null; + } + set + { + bool flag = value == (this._canGetReward == null); + if (flag) + { + this._canGetReward = (value ? new bool?(this.canGetReward) : null); + } + } + } + + private ErrorCode? _errorCode; + + private readonly List _briefList = new List(); + + private bool? _canGetReward; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorCode() + { + return this.errorCodeSpecified; + } + + private void ReseterrorCode() + { + this.errorCodeSpecified = false; + } + + private bool ShouldSerializecanGetReward() + { + return this.canGetRewardSpecified; + } + + private void ResetcanGetReward() + { + this.canGetRewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListRes.cs.meta new file mode 100644 index 00000000..36671bae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NewGetFlowerRewardListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3eba76e67607e7b4995c0f6b6a3235cf +timeCreated: 1611403608 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NewGuildBonusData.cs b/Client/Assets/Scripts/XMainClient/KKSG/NewGuildBonusData.cs new file mode 100644 index 00000000..101d4bcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NewGuildBonusData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NewGuildBonusData")] + [Serializable] + public class NewGuildBonusData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "showIconInScreen", DataFormat = DataFormat.Default)] + public bool showIconInScreen + { + get + { + return this._showIconInScreen ?? false; + } + set + { + this._showIconInScreen = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool showIconInScreenSpecified + { + get + { + return this._showIconInScreen != null; + } + set + { + bool flag = value == (this._showIconInScreen == null); + if (flag) + { + this._showIconInScreen = (value ? new bool?(this.showIconInScreen) : null); + } + } + } + + private bool? _showIconInScreen; + + private IExtension extensionObject; + + private bool ShouldSerializeshowIconInScreen() + { + return this.showIconInScreenSpecified; + } + + private void ResetshowIconInScreen() + { + this.showIconInScreenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NewGuildBonusData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NewGuildBonusData.cs.meta new file mode 100644 index 00000000..40d86cc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NewGuildBonusData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b798e6a65ede5e04ea1df04045f2ef26 +timeCreated: 1611404402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardNtf.cs new file mode 100644 index 00000000..58371359 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NextDayRewardNtf")] + [Serializable] + public class NextDayRewardNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public uint timeleft + { + get + { + return this._timeleft ?? 0u; + } + set + { + this._timeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new uint?(this.timeleft) : null); + } + } + } + + private uint? _state; + + private uint? _timeleft; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardNtf.cs.meta new file mode 100644 index 00000000..89a51804 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 950b50bd01d037b4488a3812b755fe88 +timeCreated: 1611404157 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardReport.cs b/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardReport.cs new file mode 100644 index 00000000..80a4a41a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardReport.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NextDayRewardReport")] + [Serializable] + public class NextDayRewardReport : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardReport.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardReport.cs.meta new file mode 100644 index 00000000..c1e55190 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NextDayRewardReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff85ceef3e8489843b210745c7ffa76f +timeCreated: 1611404947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeDoingGuildInherit.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeDoingGuildInherit.cs new file mode 100644 index 00000000..fa923638 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeDoingGuildInherit.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeDoingGuildInherit")] + [Serializable] + public class NoticeDoingGuildInherit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleOne", DataFormat = DataFormat.TwosComplement)] + public ulong roleOne + { + get + { + return this._roleOne ?? 0UL; + } + set + { + this._roleOne = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleOneSpecified + { + get + { + return this._roleOne != null; + } + set + { + bool flag = value == (this._roleOne == null); + if (flag) + { + this._roleOne = (value ? new ulong?(this.roleOne) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleTwo", DataFormat = DataFormat.TwosComplement)] + public ulong roleTwo + { + get + { + return this._roleTwo ?? 0UL; + } + set + { + this._roleTwo = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleTwoSpecified + { + get + { + return this._roleTwo != null; + } + set + { + bool flag = value == (this._roleTwo == null); + if (flag) + { + this._roleTwo = (value ? new ulong?(this.roleTwo) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private ulong? _roleOne; + + private ulong? _roleTwo; + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeroleOne() + { + return this.roleOneSpecified; + } + + private void ResetroleOne() + { + this.roleOneSpecified = false; + } + + private bool ShouldSerializeroleTwo() + { + return this.roleTwoSpecified; + } + + private void ResetroleTwo() + { + this.roleTwoSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeDoingGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeDoingGuildInherit.cs.meta new file mode 100644 index 00000000..0af30dc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeDoingGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c33c07fc33f7d2c498d27562c8dbe842 +timeCreated: 1611404497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaBegin.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaBegin.cs new file mode 100644 index 00000000..96b1e240 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaBegin.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildArenaBegin")] + [Serializable] + public class NoticeGuildArenaBegin : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isstart", DataFormat = DataFormat.Default)] + public bool isstart + { + get + { + return this._isstart ?? false; + } + set + { + this._isstart = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isstartSpecified + { + get + { + return this._isstart != null; + } + set + { + bool flag = value == (this._isstart == null); + if (flag) + { + this._isstart = (value ? new bool?(this.isstart) : null); + } + } + } + + private bool? _isstart; + + private IExtension extensionObject; + + private bool ShouldSerializeisstart() + { + return this.isstartSpecified; + } + + private void Resetisstart() + { + this.isstartSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaBegin.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaBegin.cs.meta new file mode 100644 index 00000000..ca5043e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaBegin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c8d04343cad4d04eaa1ecfade4c93eb +timeCreated: 1611403345 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaNextTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaNextTime.cs new file mode 100644 index 00000000..7705b676 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaNextTime.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildArenaNextTime")] + [Serializable] + public class NoticeGuildArenaNextTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public GuildArenaState state + { + get + { + return this._state ?? GuildArenaState.GUILD_ARENA_NOT_BEGIN; + } + set + { + this._state = new GuildArenaState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new GuildArenaState?(this.state) : null); + } + } + } + + private GuildArenaState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaNextTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaNextTime.cs.meta new file mode 100644 index 00000000..673c5488 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildArenaNextTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4750c4af8cbb7af4b9b56544969d36f5 +timeCreated: 1611403653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs new file mode 100644 index 00000000..0899436f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildBossEnd")] + [Serializable] + public class NoticeGuildBossEnd : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isWin", DataFormat = DataFormat.Default)] + public bool isWin + { + get + { + return this._isWin ?? false; + } + set + { + this._isWin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isWinSpecified + { + get + { + return this._isWin != null; + } + set + { + bool flag = value == (this._isWin == null); + if (flag) + { + this._isWin = (value ? new bool?(this.isWin) : null); + } + } + } + + private bool? _isWin; + + private IExtension extensionObject; + + private bool ShouldSerializeisWin() + { + return this.isWinSpecified; + } + + private void ResetisWin() + { + this.isWinSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs.meta new file mode 100644 index 00000000..072ddc60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildBossEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85982741c57b243498f0a25c3e7250eb +timeCreated: 1611404052 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildLadderStart.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildLadderStart.cs new file mode 100644 index 00000000..b903b7b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildLadderStart.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildLadderStart")] + [Serializable] + public class NoticeGuildLadderStart : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isstart", DataFormat = DataFormat.Default)] + public bool isstart + { + get + { + return this._isstart ?? false; + } + set + { + this._isstart = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isstartSpecified + { + get + { + return this._isstart != null; + } + set + { + bool flag = value == (this._isstart == null); + if (flag) + { + this._isstart = (value ? new bool?(this.isstart) : null); + } + } + } + + private bool? _isstart; + + private IExtension extensionObject; + + private bool ShouldSerializeisstart() + { + return this.isstartSpecified; + } + + private void Resetisstart() + { + this.isstartSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildLadderStart.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildLadderStart.cs.meta new file mode 100644 index 00000000..99d04eb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildLadderStart.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6137453323184ed4bbdb78c599f3cfab +timeCreated: 1611403837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBattleWin.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBattleWin.cs new file mode 100644 index 00000000..031eae68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBattleWin.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildTerrBattleWin")] + [Serializable] + public class NoticeGuildTerrBattleWin : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + private uint? _id; + + private ulong? _guildid; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBattleWin.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBattleWin.cs.meta new file mode 100644 index 00000000..a67d0b1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBattleWin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 667ae53ad4799324488698522292c93f +timeCreated: 1611403854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBigIcon.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBigIcon.cs new file mode 100644 index 00000000..2e86378d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBigIcon.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildTerrBigIcon")] + [Serializable] + public class NoticeGuildTerrBigIcon : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isnow", DataFormat = DataFormat.Default)] + public bool isnow + { + get + { + return this._isnow ?? false; + } + set + { + this._isnow = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isnowSpecified + { + get + { + return this._isnow != null; + } + set + { + bool flag = value == (this._isnow == null); + if (flag) + { + this._isnow = (value ? new bool?(this.isnow) : null); + } + } + } + + private bool? _isnow; + + private IExtension extensionObject; + + private bool ShouldSerializeisnow() + { + return this.isnowSpecified; + } + + private void Resetisnow() + { + this.isnowSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBigIcon.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBigIcon.cs.meta new file mode 100644 index 00000000..8f3d10be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrBigIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ac6ac9c1dd2de946ba9839aba063dd3 +timeCreated: 1611403312 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs new file mode 100644 index 00000000..f69aeb21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildTerrEnd")] + [Serializable] + public class NoticeGuildTerrEnd : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs.meta new file mode 100644 index 00000000..44324dfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3df39da908260984eb93918d17d70b69 +timeCreated: 1611403605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs new file mode 100644 index 00000000..297e8e1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildTerrWar")] + [Serializable] + public class NoticeGuildTerrWar : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isbegin", DataFormat = DataFormat.Default)] + public bool isbegin + { + get + { + return this._isbegin ?? false; + } + set + { + this._isbegin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbeginSpecified + { + get + { + return this._isbegin != null; + } + set + { + bool flag = value == (this._isbegin == null); + if (flag) + { + this._isbegin = (value ? new bool?(this.isbegin) : null); + } + } + } + + private bool? _isbegin; + + private IExtension extensionObject; + + private bool ShouldSerializeisbegin() + { + return this.isbeginSpecified; + } + + private void Resetisbegin() + { + this.isbeginSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs.meta new file mode 100644 index 00000000..22d3d828 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrWar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab2a6f51e218f84438060c1823605303 +timeCreated: 1611404306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs new file mode 100644 index 00000000..ff8801ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildTerrall")] + [Serializable] + public class NoticeGuildTerrall : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + private uint? _num; + + private IExtension extensionObject; + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs.meta new file mode 100644 index 00000000..5b0713d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildTerrall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd54be48cd37eb54f8391e7bdade403a +timeCreated: 1611404554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildWageReward.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildWageReward.cs new file mode 100644 index 00000000..be58caa7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildWageReward.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeGuildWageReward")] + [Serializable] + public class NoticeGuildWageReward : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildWageReward.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildWageReward.cs.meta new file mode 100644 index 00000000..67edd77a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeGuildWageReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dcac5f4afb414184fb137a630b064794 +timeCreated: 1611404679 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeHungryDown.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeHungryDown.cs new file mode 100644 index 00000000..41743b56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeHungryDown.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeHungryDown")] + [Serializable] + public class NoticeHungryDown : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "petid", DataFormat = DataFormat.TwosComplement)] + public ulong petid + { + get + { + return this._petid ?? 0UL; + } + set + { + this._petid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petidSpecified + { + get + { + return this._petid != null; + } + set + { + bool flag = value == (this._petid == null); + if (flag) + { + this._petid = (value ? new ulong?(this.petid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hungry", DataFormat = DataFormat.TwosComplement)] + public uint hungry + { + get + { + return this._hungry ?? 0u; + } + set + { + this._hungry = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hungrySpecified + { + get + { + return this._hungry != null; + } + set + { + bool flag = value == (this._hungry == null); + if (flag) + { + this._hungry = (value ? new uint?(this.hungry) : null); + } + } + } + + private ulong? _petid; + + private uint? _hungry; + + private IExtension extensionObject; + + private bool ShouldSerializepetid() + { + return this.petidSpecified; + } + + private void Resetpetid() + { + this.petidSpecified = false; + } + + private bool ShouldSerializehungry() + { + return this.hungrySpecified; + } + + private void Resethungry() + { + this.hungrySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeHungryDown.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeHungryDown.cs.meta new file mode 100644 index 00000000..7d45d97e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeHungryDown.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 729bf5d5d5122e94f83ba2bcbc1b931e +timeCreated: 1611403938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeType.cs b/Client/Assets/Scripts/XMainClient/KKSG/NoticeType.cs new file mode 100644 index 00000000..55908b85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NoticeType")] + public enum NoticeType + { + [ProtoEnum(Name = "Notice_Role", Value = 1)] + Notice_Role = 1, + [ProtoEnum(Name = "Notice_Team", Value = 2)] + Notice_Team, + [ProtoEnum(Name = "Notice_Guild", Value = 3)] + Notice_Guild, + [ProtoEnum(Name = "Notice_World", Value = 4)] + Notice_World, + [ProtoEnum(Name = "Notice_Partner", Value = 5)] + Notice_Partner, + [ProtoEnum(Name = "Notice_Server", Value = 6)] + Notice_Server + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NoticeType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NoticeType.cs.meta new file mode 100644 index 00000000..b74e5d80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NoticeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37f1d150b55248b48b94fcea023bc7ac +timeCreated: 1611403568 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnemyEnterFight.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnemyEnterFight.cs new file mode 100644 index 00000000..b1aaf6b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnemyEnterFight.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyEnemyEnterFight")] + [Serializable] + public class NotifyEnemyEnterFight : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "enterfight", DataFormat = DataFormat.Default)] + public bool enterfight + { + get + { + return this._enterfight ?? false; + } + set + { + this._enterfight = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enterfightSpecified + { + get + { + return this._enterfight != null; + } + set + { + bool flag = value == (this._enterfight == null); + if (flag) + { + this._enterfight = (value ? new bool?(this.enterfight) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "enemyid", DataFormat = DataFormat.TwosComplement)] + public ulong enemyid + { + get + { + return this._enemyid ?? 0UL; + } + set + { + this._enemyid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enemyidSpecified + { + get + { + return this._enemyid != null; + } + set + { + bool flag = value == (this._enemyid == null); + if (flag) + { + this._enemyid = (value ? new ulong?(this.enemyid) : null); + } + } + } + + private bool? _enterfight; + + private ulong? _enemyid; + + private IExtension extensionObject; + + private bool ShouldSerializeenterfight() + { + return this.enterfightSpecified; + } + + private void Resetenterfight() + { + this.enterfightSpecified = false; + } + + private bool ShouldSerializeenemyid() + { + return this.enemyidSpecified; + } + + private void Resetenemyid() + { + this.enemyidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnemyEnterFight.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnemyEnterFight.cs.meta new file mode 100644 index 00000000..74e3fc81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnemyEnterFight.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83b405f45d3030c4a944cf8dff431779 +timeCreated: 1611404045 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs new file mode 100644 index 00000000..d9261f91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyEnhanceSuit")] + [Serializable] + public class NotifyEnhanceSuit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "enhanceSuit", DataFormat = DataFormat.TwosComplement)] + public uint enhanceSuit + { + get + { + return this._enhanceSuit ?? 0u; + } + set + { + this._enhanceSuit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enhanceSuitSpecified + { + get + { + return this._enhanceSuit != null; + } + set + { + bool flag = value == (this._enhanceSuit == null); + if (flag) + { + this._enhanceSuit = (value ? new uint?(this.enhanceSuit) : null); + } + } + } + + private uint? _enhanceSuit; + + private IExtension extensionObject; + + private bool ShouldSerializeenhanceSuit() + { + return this.enhanceSuitSpecified; + } + + private void ResetenhanceSuit() + { + this.enhanceSuitSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs.meta new file mode 100644 index 00000000..33de5f4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyEnhanceSuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9eba99a2f06803b4ebc027d452342b17 +timeCreated: 1611404242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamCreate.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamCreate.cs new file mode 100644 index 00000000..03b9cd8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamCreate.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyLeagueTeamCreate")] + [Serializable] + public class NotifyLeagueTeamCreate : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, Name = "members", DataFormat = DataFormat.TwosComplement)] + public List members + { + get + { + return this._members; + } + } + + private ulong? _league_teamid; + + private string _name; + + private readonly List _members = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamCreate.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamCreate.cs.meta new file mode 100644 index 00000000..bc408dd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamCreate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cddc7b98045a91b49a8561d7551f75ce +timeCreated: 1611404576 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamDissolve.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamDissolve.cs new file mode 100644 index 00000000..a4130f14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamDissolve.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyLeagueTeamDissolve")] + [Serializable] + public class NotifyLeagueTeamDissolve : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "leave_roleid", DataFormat = DataFormat.TwosComplement)] + public ulong leave_roleid + { + get + { + return this._leave_roleid ?? 0UL; + } + set + { + this._leave_roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leave_roleidSpecified + { + get + { + return this._leave_roleid != null; + } + set + { + bool flag = value == (this._leave_roleid == null); + if (flag) + { + this._leave_roleid = (value ? new ulong?(this.leave_roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leave_rolename", DataFormat = DataFormat.Default)] + public string leave_rolename + { + get + { + return this._leave_rolename ?? ""; + } + set + { + this._leave_rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leave_rolenameSpecified + { + get + { + return this._leave_rolename != null; + } + set + { + bool flag = value == (this._leave_rolename == null); + if (flag) + { + this._leave_rolename = (value ? this.leave_rolename : null); + } + } + } + + private ulong? _leave_roleid; + + private string _leave_rolename; + + private IExtension extensionObject; + + private bool ShouldSerializeleave_roleid() + { + return this.leave_roleidSpecified; + } + + private void Resetleave_roleid() + { + this.leave_roleidSpecified = false; + } + + private bool ShouldSerializeleave_rolename() + { + return this.leave_rolenameSpecified; + } + + private void Resetleave_rolename() + { + this.leave_rolenameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamDissolve.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamDissolve.cs.meta new file mode 100644 index 00000000..440e50ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyLeagueTeamDissolve.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2bf82897b5a16c40a6a24a27f9890c5 +timeCreated: 1611404495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageApplyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageApplyData.cs new file mode 100644 index 00000000..df5f134e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageApplyData.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyMarriageApplyData")] + [Serializable] + public class NotifyMarriageApplyData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "applyInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MarriageApplyInfo applyInfo + { + get + { + return this._applyInfo; + } + set + { + this._applyInfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "response", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MarriageApplyResponse response + { + get + { + return this._response; + } + set + { + this._response = value; + } + } + + private MarriageApplyInfo _applyInfo = null; + + private MarriageApplyResponse _response = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageApplyData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageApplyData.cs.meta new file mode 100644 index 00000000..041804f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageApplyData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e78f87ba1b3b7d143b82fc5f55da247b +timeCreated: 1611404749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageDivorceApplyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageDivorceApplyData.cs new file mode 100644 index 00000000..f96459c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageDivorceApplyData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyMarriageDivorceApplyData")] + [Serializable] + public class NotifyMarriageDivorceApplyData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isApplyCancel", DataFormat = DataFormat.Default)] + public bool isApplyCancel + { + get + { + return this._isApplyCancel ?? false; + } + set + { + this._isApplyCancel = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isApplyCancelSpecified + { + get + { + return this._isApplyCancel != null; + } + set + { + bool flag = value == (this._isApplyCancel == null); + if (flag) + { + this._isApplyCancel = (value ? new bool?(this.isApplyCancel) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public int leftTime + { + get + { + return this._leftTime ?? 0; + } + set + { + this._leftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new int?(this.leftTime) : null); + } + } + } + + private bool? _isApplyCancel; + + private ulong? _roleID; + + private string _name; + + private int? _leftTime; + + private IExtension extensionObject; + + private bool ShouldSerializeisApplyCancel() + { + return this.isApplyCancelSpecified; + } + + private void ResetisApplyCancel() + { + this.isApplyCancelSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageDivorceApplyData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageDivorceApplyData.cs.meta new file mode 100644 index 00000000..7842c2f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMarriageDivorceApplyData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d9a6177bb884f64ba9c178b75320c1b +timeCreated: 1611404237 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs new file mode 100644 index 00000000..5d6e8ce7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyMentorApplyData")] + [Serializable] + public class NotifyMentorApplyData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] + public EMentorRelationPosition pos + { + get + { + return this._pos ?? EMentorRelationPosition.EMentorPosMaster; + } + set + { + this._pos = new EMentorRelationPosition?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posSpecified + { + get + { + return this._pos != null; + } + set + { + bool flag = value == (this._pos == null); + if (flag) + { + this._pos = (value ? new EMentorRelationPosition?(this.pos) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hasInheritOrReportTask", DataFormat = DataFormat.Default)] + public bool hasInheritOrReportTask + { + get + { + return this._hasInheritOrReportTask ?? false; + } + set + { + this._hasInheritOrReportTask = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasInheritOrReportTaskSpecified + { + get + { + return this._hasInheritOrReportTask != null; + } + set + { + bool flag = value == (this._hasInheritOrReportTask == null); + if (flag) + { + this._hasInheritOrReportTask = (value ? new bool?(this.hasInheritOrReportTask) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "hasMsg", DataFormat = DataFormat.Default)] + public bool hasMsg + { + get + { + return this._hasMsg ?? false; + } + set + { + this._hasMsg = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasMsgSpecified + { + get + { + return this._hasMsg != null; + } + set + { + bool flag = value == (this._hasMsg == null); + if (flag) + { + this._hasMsg = (value ? new bool?(this.hasMsg) : null); + } + } + } + + [ProtoMember(4, Name = "appliedBreakInfos", DataFormat = DataFormat.Default)] + public List appliedBreakInfos + { + get + { + return this._appliedBreakInfos; + } + } + + private EMentorRelationPosition? _pos; + + private bool? _hasInheritOrReportTask; + + private bool? _hasMsg; + + private readonly List _appliedBreakInfos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializepos() + { + return this.posSpecified; + } + + private void Resetpos() + { + this.posSpecified = false; + } + + private bool ShouldSerializehasInheritOrReportTask() + { + return this.hasInheritOrReportTaskSpecified; + } + + private void ResethasInheritOrReportTask() + { + this.hasInheritOrReportTaskSpecified = false; + } + + private bool ShouldSerializehasMsg() + { + return this.hasMsgSpecified; + } + + private void ResethasMsg() + { + this.hasMsgSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs.meta new file mode 100644 index 00000000..bbe6ae15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyMentorApplyData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbf08c349dbc89644a8c58deb1f7314c +timeCreated: 1611404444 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyPlatShareResultArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyPlatShareResultArg.cs new file mode 100644 index 00000000..16cb2faf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyPlatShareResultArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyPlatShareResultArg")] + [Serializable] + public class NotifyPlatShareResultArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "scene_id", DataFormat = DataFormat.TwosComplement)] + public uint scene_id + { + get + { + return this._scene_id ?? 0u; + } + set + { + this._scene_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scene_idSpecified + { + get + { + return this._scene_id != null; + } + set + { + bool flag = value == (this._scene_id == null); + if (flag) + { + this._scene_id = (value ? new uint?(this.scene_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "redpoint_disappear", DataFormat = DataFormat.Default)] + public bool redpoint_disappear + { + get + { + return this._redpoint_disappear ?? false; + } + set + { + this._redpoint_disappear = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool redpoint_disappearSpecified + { + get + { + return this._redpoint_disappear != null; + } + set + { + bool flag = value == (this._redpoint_disappear == null); + if (flag) + { + this._redpoint_disappear = (value ? new bool?(this.redpoint_disappear) : null); + } + } + } + + private uint? _scene_id; + + private bool? _redpoint_disappear; + + private IExtension extensionObject; + + private bool ShouldSerializescene_id() + { + return this.scene_idSpecified; + } + + private void Resetscene_id() + { + this.scene_idSpecified = false; + } + + private bool ShouldSerializeredpoint_disappear() + { + return this.redpoint_disappearSpecified; + } + + private void Resetredpoint_disappear() + { + this.redpoint_disappearSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyPlatShareResultArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyPlatShareResultArg.cs.meta new file mode 100644 index 00000000..3a1bd2c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyPlatShareResultArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc5d5a53fb4c66f4caaa1ec37156e0d6 +timeCreated: 1611404445 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifySkyTeamCreate.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifySkyTeamCreate.cs new file mode 100644 index 00000000..1b3766e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifySkyTeamCreate.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifySkyTeamCreate")] + [Serializable] + public class NotifySkyTeamCreate : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sky_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong sky_teamid + { + get + { + return this._sky_teamid ?? 0UL; + } + set + { + this._sky_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sky_teamidSpecified + { + get + { + return this._sky_teamid != null; + } + set + { + bool flag = value == (this._sky_teamid == null); + if (flag) + { + this._sky_teamid = (value ? new ulong?(this.sky_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ulong? _sky_teamid; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializesky_teamid() + { + return this.sky_teamidSpecified; + } + + private void Resetsky_teamid() + { + this.sky_teamidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifySkyTeamCreate.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifySkyTeamCreate.cs.meta new file mode 100644 index 00000000..a61bcc5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifySkyTeamCreate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 623546a3031e7814ca57738f1f11c181 +timeCreated: 1611403840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyStartUpTypeToClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyStartUpTypeToClient.cs new file mode 100644 index 00000000..356c971d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyStartUpTypeToClient.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyStartUpTypeToClient")] + [Serializable] + public class NotifyStartUpTypeToClient : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public StartUpType type + { + get + { + return this._type ?? StartUpType.StartUp_Normal; + } + set + { + this._type = new StartUpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new StartUpType?(this.type) : null); + } + } + } + + private StartUpType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyStartUpTypeToClient.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyStartUpTypeToClient.cs.meta new file mode 100644 index 00000000..6f97281a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyStartUpTypeToClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99b4f4ea1af2c2b4e9b1677d8554676c +timeCreated: 1611404197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyTransferWall.cs b/Client/Assets/Scripts/XMainClient/KKSG/NotifyTransferWall.cs new file mode 100644 index 00000000..6bc13265 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyTransferWall.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NotifyTransferWall")] + [Serializable] + public class NotifyTransferWall : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "transfer", DataFormat = DataFormat.Default)] + public bool transfer + { + get + { + return this._transfer ?? false; + } + set + { + this._transfer = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool transferSpecified + { + get + { + return this._transfer != null; + } + set + { + bool flag = value == (this._transfer == null); + if (flag) + { + this._transfer = (value ? new bool?(this.transfer) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "wallid", DataFormat = DataFormat.TwosComplement)] + public int wallid + { + get + { + return this._wallid ?? 0; + } + set + { + this._wallid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wallidSpecified + { + get + { + return this._wallid != null; + } + set + { + bool flag = value == (this._wallid == null); + if (flag) + { + this._wallid = (value ? new int?(this.wallid) : null); + } + } + } + + private bool? _transfer; + + private int? _wallid; + + private IExtension extensionObject; + + private bool ShouldSerializetransfer() + { + return this.transferSpecified; + } + + private void Resettransfer() + { + this.transferSpecified = false; + } + + private bool ShouldSerializewallid() + { + return this.wallidSpecified; + } + + private void Resetwallid() + { + this.wallidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NotifyTransferWall.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NotifyTransferWall.cs.meta new file mode 100644 index 00000000..9a67e5fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NotifyTransferWall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0274cfd745ec0ff4993acf2c3d7a0f71 +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs new file mode 100644 index 00000000..8956de2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFeelingOneNpc")] + [Serializable] + public class NpcFeelingOneNpc : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "npcid", DataFormat = DataFormat.TwosComplement)] + public uint npcid + { + get + { + return this._npcid ?? 0u; + } + set + { + this._npcid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool npcidSpecified + { + get + { + return this._npcid != null; + } + set + { + bool flag = value == (this._npcid == null); + if (flag) + { + this._npcid = (value ? new uint?(this.npcid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + [ProtoMember(4, Name = "likeitem", DataFormat = DataFormat.Default)] + public List likeitem + { + get + { + return this._likeitem; + } + } + + [ProtoMember(5, Name = "exchange", DataFormat = DataFormat.Default)] + public List exchange + { + get + { + return this._exchange; + } + } + + [ProtoMember(6, IsRequired = false, Name = "isnew", DataFormat = DataFormat.Default)] + public bool isnew + { + get + { + return this._isnew ?? false; + } + set + { + this._isnew = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isnewSpecified + { + get + { + return this._isnew != null; + } + set + { + bool flag = value == (this._isnew == null); + if (flag) + { + this._isnew = (value ? new bool?(this.isnew) : null); + } + } + } + + private uint? _npcid; + + private uint? _level; + + private uint? _exp; + + private readonly List _likeitem = new List(); + + private readonly List _exchange = new List(); + + private bool? _isnew; + + private IExtension extensionObject; + + private bool ShouldSerializenpcid() + { + return this.npcidSpecified; + } + + private void Resetnpcid() + { + this.npcidSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializeisnew() + { + return this.isnewSpecified; + } + + private void Resetisnew() + { + this.isnewSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs.meta new file mode 100644 index 00000000..35f2348c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingOneNpc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56209ec75b295a24db5475ffea13fdf4 +timeCreated: 1611403742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs new file mode 100644 index 00000000..e9fa51a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs @@ -0,0 +1,365 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFeelingRecord")] + [Serializable] + public class NpcFeelingRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastupdaytime", DataFormat = DataFormat.TwosComplement)] + public uint lastupdaytime + { + get + { + return this._lastupdaytime ?? 0u; + } + set + { + this._lastupdaytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastupdaytimeSpecified + { + get + { + return this._lastupdaytime != null; + } + set + { + bool flag = value == (this._lastupdaytime == null); + if (flag) + { + this._lastupdaytime = (value ? new uint?(this.lastupdaytime) : null); + } + } + } + + [ProtoMember(2, Name = "npclist", DataFormat = DataFormat.Default)] + public List npclist + { + get + { + return this._npclist; + } + } + + [ProtoMember(3, Name = "unitelist", DataFormat = DataFormat.Default)] + public List unitelist + { + get + { + return this._unitelist; + } + } + + [ProtoMember(4, IsRequired = false, Name = "exchangecount", DataFormat = DataFormat.TwosComplement)] + public uint exchangecount + { + get + { + return this._exchangecount ?? 0u; + } + set + { + this._exchangecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool exchangecountSpecified + { + get + { + return this._exchangecount != null; + } + set + { + bool flag = value == (this._exchangecount == null); + if (flag) + { + this._exchangecount = (value ? new uint?(this.exchangecount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "returncount", DataFormat = DataFormat.TwosComplement)] + public uint returncount + { + get + { + return this._returncount ?? 0u; + } + set + { + this._returncount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool returncountSpecified + { + get + { + return this._returncount != null; + } + set + { + bool flag = value == (this._returncount == null); + if (flag) + { + this._returncount = (value ? new uint?(this.returncount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "givecount", DataFormat = DataFormat.TwosComplement)] + public uint givecount + { + get + { + return this._givecount ?? 0u; + } + set + { + this._givecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool givecountSpecified + { + get + { + return this._givecount != null; + } + set + { + bool flag = value == (this._givecount == null); + if (flag) + { + this._givecount = (value ? new uint?(this.givecount) : null); + } + } + } + + [ProtoMember(7, Name = "nouse", DataFormat = DataFormat.Default)] + public List nouse + { + get + { + return this._nouse; + } + } + + [ProtoMember(8, Name = "returndrop", DataFormat = DataFormat.Default)] + public List returndrop + { + get + { + return this._returndrop; + } + } + + [ProtoMember(9, IsRequired = false, Name = "buycount", DataFormat = DataFormat.TwosComplement)] + public uint buycount + { + get + { + return this._buycount ?? 0u; + } + set + { + this._buycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buycountSpecified + { + get + { + return this._buycount != null; + } + set + { + bool flag = value == (this._buycount == null); + if (flag) + { + this._buycount = (value ? new uint?(this.buycount) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "triggerfavorcount", DataFormat = DataFormat.TwosComplement)] + public uint triggerfavorcount + { + get + { + return this._triggerfavorcount ?? 0u; + } + set + { + this._triggerfavorcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool triggerfavorcountSpecified + { + get + { + return this._triggerfavorcount != null; + } + set + { + bool flag = value == (this._triggerfavorcount == null); + if (flag) + { + this._triggerfavorcount = (value ? new uint?(this.triggerfavorcount) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "giveleftaddcount", DataFormat = DataFormat.TwosComplement)] + public uint giveleftaddcount + { + get + { + return this._giveleftaddcount ?? 0u; + } + set + { + this._giveleftaddcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool giveleftaddcountSpecified + { + get + { + return this._giveleftaddcount != null; + } + set + { + bool flag = value == (this._giveleftaddcount == null); + if (flag) + { + this._giveleftaddcount = (value ? new uint?(this.giveleftaddcount) : null); + } + } + } + + private uint? _lastupdaytime; + + private readonly List _npclist = new List(); + + private readonly List _unitelist = new List(); + + private uint? _exchangecount; + + private uint? _returncount; + + private uint? _givecount; + + private readonly List _nouse = new List(); + + private readonly List _returndrop = new List(); + + private uint? _buycount; + + private uint? _triggerfavorcount; + + private uint? _giveleftaddcount; + + private IExtension extensionObject; + + private bool ShouldSerializelastupdaytime() + { + return this.lastupdaytimeSpecified; + } + + private void Resetlastupdaytime() + { + this.lastupdaytimeSpecified = false; + } + + private bool ShouldSerializeexchangecount() + { + return this.exchangecountSpecified; + } + + private void Resetexchangecount() + { + this.exchangecountSpecified = false; + } + + private bool ShouldSerializereturncount() + { + return this.returncountSpecified; + } + + private void Resetreturncount() + { + this.returncountSpecified = false; + } + + private bool ShouldSerializegivecount() + { + return this.givecountSpecified; + } + + private void Resetgivecount() + { + this.givecountSpecified = false; + } + + private bool ShouldSerializebuycount() + { + return this.buycountSpecified; + } + + private void Resetbuycount() + { + this.buycountSpecified = false; + } + + private bool ShouldSerializetriggerfavorcount() + { + return this.triggerfavorcountSpecified; + } + + private void Resettriggerfavorcount() + { + this.triggerfavorcountSpecified = false; + } + + private bool ShouldSerializegiveleftaddcount() + { + return this.giveleftaddcountSpecified; + } + + private void Resetgiveleftaddcount() + { + this.giveleftaddcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs.meta new file mode 100644 index 00000000..c9b6162a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79db54154a7fee84d9772509fd5bf21d +timeCreated: 1611403987 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingUnite.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingUnite.cs new file mode 100644 index 00000000..19ab3e8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingUnite.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFeelingUnite")] + [Serializable] + public class NpcFeelingUnite : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + private uint? _id; + + private uint? _level; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingUnite.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingUnite.cs.meta new file mode 100644 index 00000000..79874c40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFeelingUnite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37c12df49e2d32a418a7562af4dff1a7 +timeCreated: 1611403567 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs new file mode 100644 index 00000000..c8e54f05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs @@ -0,0 +1,239 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFlArg")] + [Serializable] + public class NpcFlArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)] + public NpcFlReqType reqtype + { + get + { + return this._reqtype ?? NpcFlReqType.NPCFL_GIVE_GIFT; + } + set + { + this._reqtype = new NpcFlReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqtypeSpecified + { + get + { + return this._reqtype != null; + } + set + { + bool flag = value == (this._reqtype == null); + if (flag) + { + this._reqtype = (value ? new NpcFlReqType?(this.reqtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "likeitem", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public NpcLikeItem likeitem + { + get + { + return this._likeitem; + } + set + { + this._likeitem = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "npcid", DataFormat = DataFormat.TwosComplement)] + public uint npcid + { + get + { + return this._npcid ?? 0u; + } + set + { + this._npcid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool npcidSpecified + { + get + { + return this._npcid != null; + } + set + { + bool flag = value == (this._npcid == null); + if (flag) + { + this._npcid = (value ? new uint?(this.npcid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "role2npc", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief role2npc + { + get + { + return this._role2npc; + } + set + { + this._role2npc = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "npc2role", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief npc2role + { + get + { + return this._npc2role; + } + set + { + this._npc2role = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "uniteid", DataFormat = DataFormat.TwosComplement)] + public uint uniteid + { + get + { + return this._uniteid ?? 0u; + } + set + { + this._uniteid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uniteidSpecified + { + get + { + return this._uniteid != null; + } + set + { + bool flag = value == (this._uniteid == null); + if (flag) + { + this._uniteid = (value ? new uint?(this.uniteid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + private NpcFlReqType? _reqtype; + + private NpcLikeItem _likeitem = null; + + private uint? _npcid; + + private ItemBrief _role2npc = null; + + private ItemBrief _npc2role = null; + + private uint? _uniteid; + + private uint? _level; + + private IExtension extensionObject; + + private bool ShouldSerializereqtype() + { + return this.reqtypeSpecified; + } + + private void Resetreqtype() + { + this.reqtypeSpecified = false; + } + + private bool ShouldSerializenpcid() + { + return this.npcidSpecified; + } + + private void Resetnpcid() + { + this.npcidSpecified = false; + } + + private bool ShouldSerializeuniteid() + { + return this.uniteidSpecified; + } + + private void Resetuniteid() + { + this.uniteidSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs.meta new file mode 100644 index 00000000..a1efdeb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f6ac8417c847fe4c8b0804430e4fcd1 +timeCreated: 1611404030 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlItemType.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlItemType.cs new file mode 100644 index 00000000..4da1ec48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlItemType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFlItemType")] + public enum NpcFlItemType + { + [ProtoEnum(Name = "NPCFL_ITEM_NORMAL", Value = 1)] + NPCFL_ITEM_NORMAL = 1, + [ProtoEnum(Name = "NPCFL_ITEM_RANDOM", Value = 2)] + NPCFL_ITEM_RANDOM, + [ProtoEnum(Name = "NPCFL_ITEM_TRIGGER_FAVOR", Value = 3)] + NPCFL_ITEM_TRIGGER_FAVOR + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlItemType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlItemType.cs.meta new file mode 100644 index 00000000..c350c328 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlItemType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f04c32ae4dde6948bd0c0ace6f72d2a +timeCreated: 1611403368 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs new file mode 100644 index 00000000..13939081 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFlNpc2Role")] + [Serializable] + public class NpcFlNpc2Role : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "npcid", DataFormat = DataFormat.TwosComplement)] + public uint npcid + { + get + { + return this._npcid ?? 0u; + } + set + { + this._npcid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool npcidSpecified + { + get + { + return this._npcid != null; + } + set + { + bool flag = value == (this._npcid == null); + if (flag) + { + this._npcid = (value ? new uint?(this.npcid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "role", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public NpcFlRoleExp role + { + get + { + return this._role; + } + set + { + this._role = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + private uint? _npcid; + + private NpcFlRoleExp _role = null; + + private string _rolename; + + private IExtension extensionObject; + + private bool ShouldSerializenpcid() + { + return this.npcidSpecified; + } + + private void Resetnpcid() + { + this.npcidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs.meta new file mode 100644 index 00000000..8ce51acb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlNpc2Role.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 878fc89dba7d317418490efcdd8f6fdb +timeCreated: 1611404080 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReqType.cs new file mode 100644 index 00000000..9593bcd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReqType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFlReqType")] + public enum NpcFlReqType + { + [ProtoEnum(Name = "NPCFL_GIVE_GIFT", Value = 1)] + NPCFL_GIVE_GIFT = 1, + [ProtoEnum(Name = "NPCFL_EXCHANGE", Value = 2)] + NPCFL_EXCHANGE, + [ProtoEnum(Name = "NPCFL_BASE_DATA", Value = 3)] + NPCFL_BASE_DATA, + [ProtoEnum(Name = "NPCFL_NPC_LEVEL_UP", Value = 4)] + NPCFL_NPC_LEVEL_UP, + [ProtoEnum(Name = "NPCFL_UNITE_ACT", Value = 5)] + NPCFL_UNITE_ACT, + [ProtoEnum(Name = "NPCFL_BUY_GIFT_COUNT", Value = 6)] + NPCFL_BUY_GIFT_COUNT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReqType.cs.meta new file mode 100644 index 00000000..216bfa48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 233c64710820b9a4f8484d034577d695 +timeCreated: 1611403450 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs new file mode 100644 index 00000000..e067f3de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs @@ -0,0 +1,322 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFlRes")] + [Serializable] + public class NpcFlRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "npclist", DataFormat = DataFormat.Default)] + public List npclist + { + get + { + return this._npclist; + } + } + + [ProtoMember(3, Name = "unitelist", DataFormat = DataFormat.Default)] + public List unitelist + { + get + { + return this._unitelist; + } + } + + [ProtoMember(4, IsRequired = false, Name = "giveleftcount", DataFormat = DataFormat.TwosComplement)] + public uint giveleftcount + { + get + { + return this._giveleftcount ?? 0u; + } + set + { + this._giveleftcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool giveleftcountSpecified + { + get + { + return this._giveleftcount != null; + } + set + { + bool flag = value == (this._giveleftcount == null); + if (flag) + { + this._giveleftcount = (value ? new uint?(this.giveleftcount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "buyleftcount", DataFormat = DataFormat.TwosComplement)] + public uint buyleftcount + { + get + { + return this._buyleftcount ?? 0u; + } + set + { + this._buyleftcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buyleftcountSpecified + { + get + { + return this._buyleftcount != null; + } + set + { + bool flag = value == (this._buyleftcount == null); + if (flag) + { + this._buyleftcount = (value ? new uint?(this.buyleftcount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "buycost", DataFormat = DataFormat.TwosComplement)] + public uint buycost + { + get + { + return this._buycost ?? 0u; + } + set + { + this._buycost = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buycostSpecified + { + get + { + return this._buycost != null; + } + set + { + bool flag = value == (this._buycost == null); + if (flag) + { + this._buycost = (value ? new uint?(this.buycost) : null); + } + } + } + + [ProtoMember(7, Name = "npcfavorrole", DataFormat = DataFormat.Default)] + public List npcfavorrole + { + get + { + return this._npcfavorrole; + } + } + + [ProtoMember(8, Name = "changenpclist", DataFormat = DataFormat.Default)] + public List changenpclist + { + get + { + return this._changenpclist; + } + } + + [ProtoMember(9, Name = "changeunitelist", DataFormat = DataFormat.Default)] + public List changeunitelist + { + get + { + return this._changeunitelist; + } + } + + [ProtoMember(10, IsRequired = false, Name = "role2npc", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief role2npc + { + get + { + return this._role2npc; + } + set + { + this._role2npc = value; + } + } + + [ProtoMember(11, IsRequired = false, Name = "npc2role", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief npc2role + { + get + { + return this._npc2role; + } + set + { + this._npc2role = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "npcflleveltop", DataFormat = DataFormat.TwosComplement)] + public uint npcflleveltop + { + get + { + return this._npcflleveltop ?? 0u; + } + set + { + this._npcflleveltop = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool npcflleveltopSpecified + { + get + { + return this._npcflleveltop != null; + } + set + { + bool flag = value == (this._npcflleveltop == null); + if (flag) + { + this._npcflleveltop = (value ? new uint?(this.npcflleveltop) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _npclist = new List(); + + private readonly List _unitelist = new List(); + + private uint? _giveleftcount; + + private uint? _buyleftcount; + + private uint? _buycost; + + private readonly List _npcfavorrole = new List(); + + private readonly List _changenpclist = new List(); + + private readonly List _changeunitelist = new List(); + + private ItemBrief _role2npc = null; + + private ItemBrief _npc2role = null; + + private uint? _npcflleveltop; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializegiveleftcount() + { + return this.giveleftcountSpecified; + } + + private void Resetgiveleftcount() + { + this.giveleftcountSpecified = false; + } + + private bool ShouldSerializebuyleftcount() + { + return this.buyleftcountSpecified; + } + + private void Resetbuyleftcount() + { + this.buyleftcountSpecified = false; + } + + private bool ShouldSerializebuycost() + { + return this.buycostSpecified; + } + + private void Resetbuycost() + { + this.buycostSpecified = false; + } + + private bool ShouldSerializenpcflleveltop() + { + return this.npcflleveltopSpecified; + } + + private void Resetnpcflleveltop() + { + this.npcflleveltopSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs.meta new file mode 100644 index 00000000..dd518786 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 008374940a08aa743b2911ff7b76b909 +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs new file mode 100644 index 00000000..934408ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFlReturn")] + [Serializable] + public class NpcFlReturn : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dropid", DataFormat = DataFormat.TwosComplement)] + public uint dropid + { + get + { + return this._dropid ?? 0u; + } + set + { + this._dropid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dropidSpecified + { + get + { + return this._dropid != null; + } + set + { + bool flag = value == (this._dropid == null); + if (flag) + { + this._dropid = (value ? new uint?(this.dropid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "gtime", DataFormat = DataFormat.TwosComplement)] + public uint gtime + { + get + { + return this._gtime ?? 0u; + } + set + { + this._gtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gtimeSpecified + { + get + { + return this._gtime != null; + } + set + { + bool flag = value == (this._gtime == null); + if (flag) + { + this._gtime = (value ? new uint?(this.gtime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "mailconfid", DataFormat = DataFormat.TwosComplement)] + public uint mailconfid + { + get + { + return this._mailconfid ?? 0u; + } + set + { + this._mailconfid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mailconfidSpecified + { + get + { + return this._mailconfid != null; + } + set + { + bool flag = value == (this._mailconfid == null); + if (flag) + { + this._mailconfid = (value ? new uint?(this.mailconfid) : null); + } + } + } + + private uint? _dropid; + + private uint? _gtime; + + private uint? _mailconfid; + + private IExtension extensionObject; + + private bool ShouldSerializedropid() + { + return this.dropidSpecified; + } + + private void Resetdropid() + { + this.dropidSpecified = false; + } + + private bool ShouldSerializegtime() + { + return this.gtimeSpecified; + } + + private void Resetgtime() + { + this.gtimeSpecified = false; + } + + private bool ShouldSerializemailconfid() + { + return this.mailconfidSpecified; + } + + private void Resetmailconfid() + { + this.mailconfidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs.meta new file mode 100644 index 00000000..b54645b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlReturn.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ce9b6780ffd5b749b6a89c958b8936d +timeCreated: 1611403504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRoleExp.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRoleExp.cs new file mode 100644 index 00000000..10bfd1d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRoleExp.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcFlRoleExp")] + [Serializable] + public class NpcFlRoleExp : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + private ulong? _roleid; + + private uint? _exp; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRoleExp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRoleExp.cs.meta new file mode 100644 index 00000000..42d7f926 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcFlRoleExp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bed98b311f3f7e547b630d3f8eff5a6e +timeCreated: 1611404482 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs new file mode 100644 index 00000000..1380298c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "NpcLikeItem")] + [Serializable] + public class NpcLikeItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "addexp", DataFormat = DataFormat.TwosComplement)] + public uint addexp + { + get + { + return this._addexp ?? 0u; + } + set + { + this._addexp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool addexpSpecified + { + get + { + return this._addexp != null; + } + set + { + bool flag = value == (this._addexp == null); + if (flag) + { + this._addexp = (value ? new uint?(this.addexp) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public NpcFlItemType type + { + get + { + return this._type ?? NpcFlItemType.NPCFL_ITEM_NORMAL; + } + set + { + this._type = new NpcFlItemType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new NpcFlItemType?(this.type) : null); + } + } + } + + private uint? _itemid; + + private uint? _itemcount; + + private uint? _addexp; + + private NpcFlItemType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + private bool ShouldSerializeaddexp() + { + return this.addexpSpecified; + } + + private void Resetaddexp() + { + this.addexpSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs.meta new file mode 100644 index 00000000..ea358939 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/NpcLikeItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4278b81217978c4d9f5278fb00467d1 +timeCreated: 1611404852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs new file mode 100644 index 00000000..e108075b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs @@ -0,0 +1,676 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OneLiveRecordInfo")] + [Serializable] + public class OneLiveRecordInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "liveID", DataFormat = DataFormat.TwosComplement)] + public uint liveID + { + get + { + return this._liveID ?? 0u; + } + set + { + this._liveID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveIDSpecified + { + get + { + return this._liveID != null; + } + set + { + bool flag = value == (this._liveID == null); + if (flag) + { + this._liveID = (value ? new uint?(this.liveID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "DNExpID", DataFormat = DataFormat.TwosComplement)] + public int DNExpID + { + get + { + return this._DNExpID ?? 0; + } + set + { + this._DNExpID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool DNExpIDSpecified + { + get + { + return this._DNExpID != null; + } + set + { + bool flag = value == (this._DNExpID == null); + if (flag) + { + this._DNExpID = (value ? new int?(this.DNExpID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "watchNum", DataFormat = DataFormat.TwosComplement)] + public int watchNum + { + get + { + return this._watchNum ?? 0; + } + set + { + this._watchNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool watchNumSpecified + { + get + { + return this._watchNum != null; + } + set + { + bool flag = value == (this._watchNum == null); + if (flag) + { + this._watchNum = (value ? new int?(this.watchNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "commendNum", DataFormat = DataFormat.TwosComplement)] + public int commendNum + { + get + { + return this._commendNum ?? 0; + } + set + { + this._commendNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool commendNumSpecified + { + get + { + return this._commendNum != null; + } + set + { + bool flag = value == (this._commendNum == null); + if (flag) + { + this._commendNum = (value ? new int?(this.commendNum) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "hasFriend", DataFormat = DataFormat.Default)] + public bool hasFriend + { + get + { + return this._hasFriend ?? false; + } + set + { + this._hasFriend = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasFriendSpecified + { + get + { + return this._hasFriend != null; + } + set + { + bool flag = value == (this._hasFriend == null); + if (flag) + { + this._hasFriend = (value ? new bool?(this.hasFriend) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "beginTime", DataFormat = DataFormat.TwosComplement)] + public int beginTime + { + get + { + return this._beginTime ?? 0; + } + set + { + this._beginTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool beginTimeSpecified + { + get + { + return this._beginTime != null; + } + set + { + bool flag = value == (this._beginTime == null); + if (flag) + { + this._beginTime = (value ? new int?(this.beginTime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "tianTiLevel", DataFormat = DataFormat.TwosComplement)] + public int tianTiLevel + { + get + { + return this._tianTiLevel ?? 0; + } + set + { + this._tianTiLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tianTiLevelSpecified + { + get + { + return this._tianTiLevel != null; + } + set + { + bool flag = value == (this._tianTiLevel == null); + if (flag) + { + this._tianTiLevel = (value ? new int?(this.tianTiLevel) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "guildBattleLevel", DataFormat = DataFormat.TwosComplement)] + public int guildBattleLevel + { + get + { + return this._guildBattleLevel ?? 0; + } + set + { + this._guildBattleLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildBattleLevelSpecified + { + get + { + return this._guildBattleLevel != null; + } + set + { + bool flag = value == (this._guildBattleLevel == null); + if (flag) + { + this._guildBattleLevel = (value ? new int?(this.guildBattleLevel) : null); + } + } + } + + [ProtoMember(9, Name = "nameInfos", DataFormat = DataFormat.Default)] + public List nameInfos + { + get + { + return this._nameInfos; + } + } + + [ProtoMember(10, IsRequired = false, Name = "liveType", DataFormat = DataFormat.TwosComplement)] + public LiveType liveType + { + get + { + return this._liveType ?? LiveType.LIVE_RECOMMEND; + } + set + { + this._liveType = new LiveType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveTypeSpecified + { + get + { + return this._liveType != null; + } + set + { + bool flag = value == (this._liveType == null); + if (flag) + { + this._liveType = (value ? new LiveType?(this.liveType) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "hasGuild", DataFormat = DataFormat.Default)] + public bool hasGuild + { + get + { + return this._hasGuild ?? false; + } + set + { + this._hasGuild = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasGuildSpecified + { + get + { + return this._hasGuild != null; + } + set + { + bool flag = value == (this._hasGuild == null); + if (flag) + { + this._hasGuild = (value ? new bool?(this.hasGuild) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "canEnter", DataFormat = DataFormat.Default)] + public bool canEnter + { + get + { + return this._canEnter ?? false; + } + set + { + this._canEnter = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canEnterSpecified + { + get + { + return this._canEnter != null; + } + set + { + bool flag = value == (this._canEnter == null); + if (flag) + { + this._canEnter = (value ? new bool?(this.canEnter) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public uint sceneID + { + get + { + return this._sceneID ?? 0u; + } + set + { + this._sceneID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new uint?(this.sceneID) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "curWatchNum", DataFormat = DataFormat.TwosComplement)] + public uint curWatchNum + { + get + { + return this._curWatchNum ?? 0u; + } + set + { + this._curWatchNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curWatchNumSpecified + { + get + { + return this._curWatchNum != null; + } + set + { + bool flag = value == (this._curWatchNum == null); + if (flag) + { + this._curWatchNum = (value ? new uint?(this.curWatchNum) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "mapID", DataFormat = DataFormat.TwosComplement)] + public uint mapID + { + get + { + return this._mapID ?? 0u; + } + set + { + this._mapID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapIDSpecified + { + get + { + return this._mapID != null; + } + set + { + bool flag = value == (this._mapID == null); + if (flag) + { + this._mapID = (value ? new uint?(this.mapID) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "isCross", DataFormat = DataFormat.Default)] + public bool isCross + { + get + { + return this._isCross ?? false; + } + set + { + this._isCross = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isCrossSpecified + { + get + { + return this._isCross != null; + } + set + { + bool flag = value == (this._isCross == null); + if (flag) + { + this._isCross = (value ? new bool?(this.isCross) : null); + } + } + } + + private uint? _liveID; + + private int? _DNExpID; + + private int? _watchNum; + + private int? _commendNum; + + private bool? _hasFriend; + + private int? _beginTime; + + private int? _tianTiLevel; + + private int? _guildBattleLevel; + + private readonly List _nameInfos = new List(); + + private LiveType? _liveType; + + private bool? _hasGuild; + + private bool? _canEnter; + + private uint? _sceneID; + + private uint? _curWatchNum; + + private uint? _mapID; + + private bool? _isCross; + + private IExtension extensionObject; + + private bool ShouldSerializeliveID() + { + return this.liveIDSpecified; + } + + private void ResetliveID() + { + this.liveIDSpecified = false; + } + + private bool ShouldSerializeDNExpID() + { + return this.DNExpIDSpecified; + } + + private void ResetDNExpID() + { + this.DNExpIDSpecified = false; + } + + private bool ShouldSerializewatchNum() + { + return this.watchNumSpecified; + } + + private void ResetwatchNum() + { + this.watchNumSpecified = false; + } + + private bool ShouldSerializecommendNum() + { + return this.commendNumSpecified; + } + + private void ResetcommendNum() + { + this.commendNumSpecified = false; + } + + private bool ShouldSerializehasFriend() + { + return this.hasFriendSpecified; + } + + private void ResethasFriend() + { + this.hasFriendSpecified = false; + } + + private bool ShouldSerializebeginTime() + { + return this.beginTimeSpecified; + } + + private void ResetbeginTime() + { + this.beginTimeSpecified = false; + } + + private bool ShouldSerializetianTiLevel() + { + return this.tianTiLevelSpecified; + } + + private void ResettianTiLevel() + { + this.tianTiLevelSpecified = false; + } + + private bool ShouldSerializeguildBattleLevel() + { + return this.guildBattleLevelSpecified; + } + + private void ResetguildBattleLevel() + { + this.guildBattleLevelSpecified = false; + } + + private bool ShouldSerializeliveType() + { + return this.liveTypeSpecified; + } + + private void ResetliveType() + { + this.liveTypeSpecified = false; + } + + private bool ShouldSerializehasGuild() + { + return this.hasGuildSpecified; + } + + private void ResethasGuild() + { + this.hasGuildSpecified = false; + } + + private bool ShouldSerializecanEnter() + { + return this.canEnterSpecified; + } + + private void ResetcanEnter() + { + this.canEnterSpecified = false; + } + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializecurWatchNum() + { + return this.curWatchNumSpecified; + } + + private void ResetcurWatchNum() + { + this.curWatchNumSpecified = false; + } + + private bool ShouldSerializemapID() + { + return this.mapIDSpecified; + } + + private void ResetmapID() + { + this.mapIDSpecified = false; + } + + private bool ShouldSerializeisCross() + { + return this.isCrossSpecified; + } + + private void ResetisCross() + { + this.isCrossSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs.meta new file mode 100644 index 00000000..8ca4b998 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneLiveRecordInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6284a60d46de45b44a1dee2c033e4f80 +timeCreated: 1611403841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyMasterShow.cs b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyMasterShow.cs new file mode 100644 index 00000000..46a4c981 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyMasterShow.cs @@ -0,0 +1,164 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OneMentorApplyMasterShow")] + [Serializable] + public class OneMentorApplyMasterShow : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "oneMaster", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBriefInfo oneMaster + { + get + { + return this._oneMaster; + } + set + { + this._oneMaster = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "audioID", DataFormat = DataFormat.TwosComplement)] + public ulong audioID + { + get + { + return this._audioID ?? 0UL; + } + set + { + this._audioID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioIDSpecified + { + get + { + return this._audioID != null; + } + set + { + bool flag = value == (this._audioID == null); + if (flag) + { + this._audioID = (value ? new ulong?(this.audioID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "applyWords", DataFormat = DataFormat.Default)] + public string applyWords + { + get + { + return this._applyWords ?? ""; + } + set + { + this._applyWords = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool applyWordsSpecified + { + get + { + return this._applyWords != null; + } + set + { + bool flag = value == (this._applyWords == null); + if (flag) + { + this._applyWords = (value ? this.applyWords : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "hasApply", DataFormat = DataFormat.Default)] + public bool hasApply + { + get + { + return this._hasApply ?? false; + } + set + { + this._hasApply = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasApplySpecified + { + get + { + return this._hasApply != null; + } + set + { + bool flag = value == (this._hasApply == null); + if (flag) + { + this._hasApply = (value ? new bool?(this.hasApply) : null); + } + } + } + + private RoleBriefInfo _oneMaster = null; + + private ulong? _audioID; + + private string _applyWords; + + private bool? _hasApply; + + private IExtension extensionObject; + + private bool ShouldSerializeaudioID() + { + return this.audioIDSpecified; + } + + private void ResetaudioID() + { + this.audioIDSpecified = false; + } + + private bool ShouldSerializeapplyWords() + { + return this.applyWordsSpecified; + } + + private void ResetapplyWords() + { + this.applyWordsSpecified = false; + } + + private bool ShouldSerializehasApply() + { + return this.hasApplySpecified; + } + + private void ResethasApply() + { + this.hasApplySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyMasterShow.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyMasterShow.cs.meta new file mode 100644 index 00000000..33c1962e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyMasterShow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5085736d26bcb0e4391fc2de7ba6dcfc +timeCreated: 1611403703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs new file mode 100644 index 00000000..736227ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OneMentorApplyStudentShow")] + [Serializable] + public class OneMentorApplyStudentShow : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "oneStudent", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBriefInfo oneStudent + { + get + { + return this._oneStudent; + } + set + { + this._oneStudent = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "hasApply", DataFormat = DataFormat.Default)] + public bool hasApply + { + get + { + return this._hasApply ?? false; + } + set + { + this._hasApply = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasApplySpecified + { + get + { + return this._hasApply != null; + } + set + { + bool flag = value == (this._hasApply == null); + if (flag) + { + this._hasApply = (value ? new bool?(this.hasApply) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "applyWords", DataFormat = DataFormat.Default)] + public string applyWords + { + get + { + return this._applyWords ?? ""; + } + set + { + this._applyWords = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool applyWordsSpecified + { + get + { + return this._applyWords != null; + } + set + { + bool flag = value == (this._applyWords == null); + if (flag) + { + this._applyWords = (value ? this.applyWords : null); + } + } + } + + private RoleBriefInfo _oneStudent = null; + + private bool? _hasApply; + + private string _applyWords; + + private IExtension extensionObject; + + private bool ShouldSerializehasApply() + { + return this.hasApplySpecified; + } + + private void ResethasApply() + { + this.hasApplySpecified = false; + } + + private bool ShouldSerializeapplyWords() + { + return this.applyWordsSpecified; + } + + private void ResetapplyWords() + { + this.applyWordsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs.meta new file mode 100644 index 00000000..3045a925 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5af53c95427fdd3438f2d4b5b8b2adf6 +timeCreated: 1611403795 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorBeAppliedMsg.cs b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorBeAppliedMsg.cs new file mode 100644 index 00000000..dbeaf148 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorBeAppliedMsg.cs @@ -0,0 +1,164 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OneMentorBeAppliedMsg")] + [Serializable] + public class OneMentorBeAppliedMsg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public MentorMsgApplyType type + { + get + { + return this._type ?? MentorMsgApplyType.MentorMsgApplyMaster; + } + set + { + this._type = new MentorMsgApplyType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new MentorMsgApplyType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public int time + { + get + { + return this._time ?? 0; + } + set + { + this._time = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new int?(this.time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleBrief", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBriefInfo roleBrief + { + get + { + return this._roleBrief; + } + set + { + this._roleBrief = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "reportTaskID", DataFormat = DataFormat.TwosComplement)] + public int reportTaskID + { + get + { + return this._reportTaskID ?? 0; + } + set + { + this._reportTaskID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reportTaskIDSpecified + { + get + { + return this._reportTaskID != null; + } + set + { + bool flag = value == (this._reportTaskID == null); + if (flag) + { + this._reportTaskID = (value ? new int?(this.reportTaskID) : null); + } + } + } + + private MentorMsgApplyType? _type; + + private int? _time; + + private RoleBriefInfo _roleBrief = null; + + private int? _reportTaskID; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializereportTaskID() + { + return this.reportTaskIDSpecified; + } + + private void ResetreportTaskID() + { + this.reportTaskIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorBeAppliedMsg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorBeAppliedMsg.cs.meta new file mode 100644 index 00000000..95210246 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorBeAppliedMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff2ec16a27abbf943908e9ec5db624fa +timeCreated: 1611404946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorRelationInfo2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorRelationInfo2Client.cs new file mode 100644 index 00000000..3c360c19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorRelationInfo2Client.cs @@ -0,0 +1,273 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OneMentorRelationInfo2Client")] + [Serializable] + public class OneMentorRelationInfo2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBriefInfo roleInfo + { + get + { + return this._roleInfo; + } + set + { + this._roleInfo = value; + } + } + + [ProtoMember(2, Name = "relationlist", DataFormat = DataFormat.Default)] + public List relationlist + { + get + { + return this._relationlist; + } + } + + [ProtoMember(3, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] + public int pos + { + get + { + return this._pos ?? 0; + } + set + { + this._pos = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posSpecified + { + get + { + return this._pos != null; + } + set + { + bool flag = value == (this._pos == null); + if (flag) + { + this._pos = (value ? new int?(this.pos) : null); + } + } + } + + [ProtoMember(4, Name = "studentTaskList", DataFormat = DataFormat.Default)] + public List studentTaskList + { + get + { + return this._studentTaskList; + } + } + + [ProtoMember(5, IsRequired = false, Name = "inheritStatus", DataFormat = DataFormat.TwosComplement)] + public EMentorTaskStatus inheritStatus + { + get + { + return this._inheritStatus ?? EMentorTaskStatus.EMentorTask_UnComplete; + } + set + { + this._inheritStatus = new EMentorTaskStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inheritStatusSpecified + { + get + { + return this._inheritStatus != null; + } + set + { + bool flag = value == (this._inheritStatus == null); + if (flag) + { + this._inheritStatus = (value ? new EMentorTaskStatus?(this.inheritStatus) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "inheritApplyRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong inheritApplyRoleID + { + get + { + return this._inheritApplyRoleID ?? 0UL; + } + set + { + this._inheritApplyRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inheritApplyRoleIDSpecified + { + get + { + return this._inheritApplyRoleID != null; + } + set + { + bool flag = value == (this._inheritApplyRoleID == null); + if (flag) + { + this._inheritApplyRoleID = (value ? new ulong?(this.inheritApplyRoleID) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "curStatus", DataFormat = DataFormat.TwosComplement)] + public MentorRelationStatus curStatus + { + get + { + return this._curStatus ?? MentorRelationStatus.MentorRelationIn; + } + set + { + this._curStatus = new MentorRelationStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curStatusSpecified + { + get + { + return this._curStatus != null; + } + set + { + bool flag = value == (this._curStatus == null); + if (flag) + { + this._curStatus = (value ? new MentorRelationStatus?(this.curStatus) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "breakApplyRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong breakApplyRoleID + { + get + { + return this._breakApplyRoleID ?? 0UL; + } + set + { + this._breakApplyRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool breakApplyRoleIDSpecified + { + get + { + return this._breakApplyRoleID != null; + } + set + { + bool flag = value == (this._breakApplyRoleID == null); + if (flag) + { + this._breakApplyRoleID = (value ? new ulong?(this.breakApplyRoleID) : null); + } + } + } + + private RoleBriefInfo _roleInfo = null; + + private readonly List _relationlist = new List(); + + private int? _pos; + + private readonly List _studentTaskList = new List(); + + private EMentorTaskStatus? _inheritStatus; + + private ulong? _inheritApplyRoleID; + + private MentorRelationStatus? _curStatus; + + private ulong? _breakApplyRoleID; + + private IExtension extensionObject; + + private bool ShouldSerializepos() + { + return this.posSpecified; + } + + private void Resetpos() + { + this.posSpecified = false; + } + + private bool ShouldSerializeinheritStatus() + { + return this.inheritStatusSpecified; + } + + private void ResetinheritStatus() + { + this.inheritStatusSpecified = false; + } + + private bool ShouldSerializeinheritApplyRoleID() + { + return this.inheritApplyRoleIDSpecified; + } + + private void ResetinheritApplyRoleID() + { + this.inheritApplyRoleIDSpecified = false; + } + + private bool ShouldSerializecurStatus() + { + return this.curStatusSpecified; + } + + private void ResetcurStatus() + { + this.curStatusSpecified = false; + } + + private bool ShouldSerializebreakApplyRoleID() + { + return this.breakApplyRoleIDSpecified; + } + + private void ResetbreakApplyRoleID() + { + this.breakApplyRoleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorRelationInfo2Client.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorRelationInfo2Client.cs.meta new file mode 100644 index 00000000..bfce3662 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorRelationInfo2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23f40064cb277c0479e69f960c1fe2b4 +timeCreated: 1611403458 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs new file mode 100644 index 00000000..bbcc7de7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OneMentorTaskInfo")] + [Serializable] + public class OneMentorTaskInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "taskID", DataFormat = DataFormat.TwosComplement)] + public int taskID + { + get + { + return this._taskID ?? 0; + } + set + { + this._taskID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskIDSpecified + { + get + { + return this._taskID != null; + } + set + { + bool flag = value == (this._taskID == null); + if (flag) + { + this._taskID = (value ? new int?(this.taskID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "completeProgress", DataFormat = DataFormat.TwosComplement)] + public int completeProgress + { + get + { + return this._completeProgress ?? 0; + } + set + { + this._completeProgress = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool completeProgressSpecified + { + get + { + return this._completeProgress != null; + } + set + { + bool flag = value == (this._completeProgress == null); + if (flag) + { + this._completeProgress = (value ? new int?(this.completeProgress) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "completeTime", DataFormat = DataFormat.TwosComplement)] + public int completeTime + { + get + { + return this._completeTime ?? 0; + } + set + { + this._completeTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool completeTimeSpecified + { + get + { + return this._completeTime != null; + } + set + { + bool flag = value == (this._completeTime == null); + if (flag) + { + this._completeTime = (value ? new int?(this.completeTime) : null); + } + } + } + + [ProtoMember(4, Name = "taskApplyStatus", DataFormat = DataFormat.Default)] + public List taskApplyStatus + { + get + { + return this._taskApplyStatus; + } + } + + [ProtoMember(5, IsRequired = false, Name = "taskType", DataFormat = DataFormat.TwosComplement)] + public uint taskType + { + get + { + return this._taskType ?? 0u; + } + set + { + this._taskType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskTypeSpecified + { + get + { + return this._taskType != null; + } + set + { + bool flag = value == (this._taskType == null); + if (flag) + { + this._taskType = (value ? new uint?(this.taskType) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "taskVar", DataFormat = DataFormat.TwosComplement)] + public ulong taskVar + { + get + { + return this._taskVar ?? 0UL; + } + set + { + this._taskVar = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskVarSpecified + { + get + { + return this._taskVar != null; + } + set + { + bool flag = value == (this._taskVar == null); + if (flag) + { + this._taskVar = (value ? new ulong?(this.taskVar) : null); + } + } + } + + private int? _taskID; + + private int? _completeProgress; + + private int? _completeTime; + + private readonly List _taskApplyStatus = new List(); + + private uint? _taskType; + + private ulong? _taskVar; + + private IExtension extensionObject; + + private bool ShouldSerializetaskID() + { + return this.taskIDSpecified; + } + + private void ResettaskID() + { + this.taskIDSpecified = false; + } + + private bool ShouldSerializecompleteProgress() + { + return this.completeProgressSpecified; + } + + private void ResetcompleteProgress() + { + this.completeProgressSpecified = false; + } + + private bool ShouldSerializecompleteTime() + { + return this.completeTimeSpecified; + } + + private void ResetcompleteTime() + { + this.completeTimeSpecified = false; + } + + private bool ShouldSerializetaskType() + { + return this.taskTypeSpecified; + } + + private void ResettaskType() + { + this.taskTypeSpecified = false; + } + + private bool ShouldSerializetaskVar() + { + return this.taskVarSpecified; + } + + private void ResettaskVar() + { + this.taskVarSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs.meta new file mode 100644 index 00000000..4da40b89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b27b4252bae29d40aab7f665405a488 +timeCreated: 1611403686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardNtf.cs new file mode 100644 index 00000000..3ad38b54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardNtf.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OnlineRewardNtf")] + [Serializable] + public class OnlineRewardNtf : IExtensible + { + [ProtoMember(1, Name = "state", DataFormat = DataFormat.TwosComplement)] + public List state + { + get + { + return this._state; + } + } + + [ProtoMember(2, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public List timeleft + { + get + { + return this._timeleft; + } + } + + private readonly List _state = new List(); + + private readonly List _timeleft = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardNtf.cs.meta new file mode 100644 index 00000000..d852a164 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 180b62bdfb8c2b146a600083fdd7d4a0 +timeCreated: 1611403296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardReport.cs b/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardReport.cs new file mode 100644 index 00000000..2251c8e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardReport.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OnlineRewardReport")] + [Serializable] + public class OnlineRewardReport : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardReport.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardReport.cs.meta new file mode 100644 index 00000000..f70e2d26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OnlineRewardReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54ea53fabe336f54f826e823112e41a6 +timeCreated: 1611403736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OnlyOnceGuildBonusData.cs b/Client/Assets/Scripts/XMainClient/KKSG/OnlyOnceGuildBonusData.cs new file mode 100644 index 00000000..a1e9a1ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OnlyOnceGuildBonusData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OnlyOnceGuildBonusData")] + [Serializable] + public class OnlyOnceGuildBonusData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusType", DataFormat = DataFormat.TwosComplement)] + public uint bonusType + { + get + { + return this._bonusType ?? 0u; + } + set + { + this._bonusType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusTypeSpecified + { + get + { + return this._bonusType != null; + } + set + { + bool flag = value == (this._bonusType == null); + if (flag) + { + this._bonusType = (value ? new uint?(this.bonusType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "bonusVar", DataFormat = DataFormat.TwosComplement)] + public uint bonusVar + { + get + { + return this._bonusVar ?? 0u; + } + set + { + this._bonusVar = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusVarSpecified + { + get + { + return this._bonusVar != null; + } + set + { + bool flag = value == (this._bonusVar == null); + if (flag) + { + this._bonusVar = (value ? new uint?(this.bonusVar) : null); + } + } + } + + private uint? _bonusType; + + private uint? _bonusVar; + + private IExtension extensionObject; + + private bool ShouldSerializebonusType() + { + return this.bonusTypeSpecified; + } + + private void ResetbonusType() + { + this.bonusTypeSpecified = false; + } + + private bool ShouldSerializebonusVar() + { + return this.bonusVarSpecified; + } + + private void ResetbonusVar() + { + this.bonusVarSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OnlyOnceGuildBonusData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OnlyOnceGuildBonusData.cs.meta new file mode 100644 index 00000000..edbc914f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OnlyOnceGuildBonusData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a488ce4114cb24c44b62d2736371d86a +timeCreated: 1611404283 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketArg.cs new file mode 100644 index 00000000..609b40be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Open520FestivityRedPacketArg")] + [Serializable] + public class Open520FestivityRedPacketArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private uint? _num; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketArg.cs.meta new file mode 100644 index 00000000..24ce0b93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f72fa743c7e250e409a0aa7c54614453 +timeCreated: 1611404886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketRes.cs new file mode 100644 index 00000000..5c7df423 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketRes.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Open520FestivityRedPacketRes")] + [Serializable] + public class Open520FestivityRedPacketRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "stillHavePacket", DataFormat = DataFormat.Default)] + public bool stillHavePacket + { + get + { + return this._stillHavePacket ?? false; + } + set + { + this._stillHavePacket = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stillHavePacketSpecified + { + get + { + return this._stillHavePacket != null; + } + set + { + bool flag = value == (this._stillHavePacket == null); + if (flag) + { + this._stillHavePacket = (value ? new bool?(this.stillHavePacket) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "headpic", DataFormat = DataFormat.Default)] + public string headpic + { + get + { + return this._headpic ?? ""; + } + set + { + this._headpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool headpicSpecified + { + get + { + return this._headpic != null; + } + set + { + bool flag = value == (this._headpic == null); + if (flag) + { + this._headpic = (value ? this.headpic : null); + } + } + } + + private ErrorCode? _errorcode; + + private bool? _stillHavePacket; + + private uint? _num; + + private string _name; + + private string _headpic; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializestillHavePacket() + { + return this.stillHavePacketSpecified; + } + + private void ResetstillHavePacket() + { + this.stillHavePacketSpecified = false; + } + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeheadpic() + { + return this.headpicSpecified; + } + + private void Resetheadpic() + { + this.headpicSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketRes.cs.meta new file mode 100644 index 00000000..396620fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Open520FestivityRedPacketRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34f9db10e53ed70428d9921969729394 +timeCreated: 1611403557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandArg.cs new file mode 100644 index 00000000..562fa707 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OpenGardenFarmlandArg")] + [Serializable] + public class OpenGardenFarmlandArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public uint farmland_id + { + get + { + return this._farmland_id ?? 0u; + } + set + { + this._farmland_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool farmland_idSpecified + { + get + { + return this._farmland_id != null; + } + set + { + bool flag = value == (this._farmland_id == null); + if (flag) + { + this._farmland_id = (value ? new uint?(this.farmland_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public GardenQuestType quest_type + { + get + { + return this._quest_type ?? GardenQuestType.MYSELF; + } + set + { + this._quest_type = new GardenQuestType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new GardenQuestType?(this.quest_type) : null); + } + } + } + + private ulong? _garden_id; + + private uint? _farmland_id; + + private GardenQuestType? _quest_type; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializefarmland_id() + { + return this.farmland_idSpecified; + } + + private void Resetfarmland_id() + { + this.farmland_idSpecified = false; + } + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandArg.cs.meta new file mode 100644 index 00000000..f0d36ca6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7752973076d7282459bb69a6a6b70f1b +timeCreated: 1611403953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandRes.cs new file mode 100644 index 00000000..1fe4349b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OpenGardenFarmlandRes")] + [Serializable] + public class OpenGardenFarmlandRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandRes.cs.meta new file mode 100644 index 00000000..c551bb36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenGardenFarmlandRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 829112eee8ef90a479564bd28b77b280 +timeCreated: 1611404041 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQAReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQAReq.cs new file mode 100644 index 00000000..18d888b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQAReq.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OpenGuildQAReq")] + [Serializable] + public class OpenGuildQAReq : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQAReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQAReq.cs.meta new file mode 100644 index 00000000..1f947ff2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQAReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25f93c8775186b34aa2141e9f7d88881 +timeCreated: 1611403466 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQARes.cs b/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQARes.cs new file mode 100644 index 00000000..f82aa8be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQARes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OpenGuildQARes")] + [Serializable] + public class OpenGuildQARes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQARes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQARes.cs.meta new file mode 100644 index 00000000..9641be12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenGuildQARes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ce9816b21a0b564cbff4b75f5ec726b +timeCreated: 1611404102 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenPrivateChat.cs b/Client/Assets/Scripts/XMainClient/KKSG/OpenPrivateChat.cs new file mode 100644 index 00000000..fb4146e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenPrivateChat.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OpenPrivateChat")] + [Serializable] + public class OpenPrivateChat : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenPrivateChat.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OpenPrivateChat.cs.meta new file mode 100644 index 00000000..9e830207 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenPrivateChat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d88e9549d08ebb4e81c19bca3d4ebb5 +timeCreated: 1611404236 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestArg.cs new file mode 100644 index 00000000..bcab6cfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OpenSceneChestArg")] + [Serializable] + public class OpenSceneChestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public uint sceneID + { + get + { + return this._sceneID ?? 0u; + } + set + { + this._sceneID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new uint?(this.sceneID) : null); + } + } + } + + private uint? _sceneID; + + private IExtension extensionObject; + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestArg.cs.meta new file mode 100644 index 00000000..01259d11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 555ef071c66cc6b47a2f85fd4a67490a +timeCreated: 1611403737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestRes.cs new file mode 100644 index 00000000..cb86a652 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OpenSceneChestRes")] + [Serializable] + public class OpenSceneChestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestRes.cs.meta new file mode 100644 index 00000000..329a32ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenSceneChestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6da4fdefbc95ba44eb86037d0f89641a +timeCreated: 1611403902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenSpriteEgg.cs b/Client/Assets/Scripts/XMainClient/KKSG/OpenSpriteEgg.cs new file mode 100644 index 00000000..3691c7fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenSpriteEgg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OpenSpriteEgg")] + [Serializable] + public class OpenSpriteEgg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + private uint? _itemid; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OpenSpriteEgg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OpenSpriteEgg.cs.meta new file mode 100644 index 00000000..379c4274 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OpenSpriteEgg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d929821893259984aa5e7a3dbe7a2a3f +timeCreated: 1611404643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs new file mode 100644 index 00000000..c6243b55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OperateRecord")] + [Serializable] + public class OperateRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "position", DataFormat = DataFormat.TwosComplement)] + public uint position + { + get + { + return this._position ?? 0u; + } + set + { + this._position = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool positionSpecified + { + get + { + return this._position != null; + } + set + { + bool flag = value == (this._position == null); + if (flag) + { + this._position = (value ? new uint?(this.position) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "arg", DataFormat = DataFormat.Default)] + public string arg + { + get + { + return this._arg ?? ""; + } + set + { + this._arg = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool argSpecified + { + get + { + return this._arg != null; + } + set + { + bool flag = value == (this._arg == null); + if (flag) + { + this._arg = (value ? this.arg : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "account", DataFormat = DataFormat.Default)] + public string account + { + get + { + return this._account ?? ""; + } + set + { + this._account = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountSpecified + { + get + { + return this._account != null; + } + set + { + bool flag = value == (this._account == null); + if (flag) + { + this._account = (value ? this.account : null); + } + } + } + + private uint? _position; + + private string _arg; + + private string _account; + + private IExtension extensionObject; + + private bool ShouldSerializeposition() + { + return this.positionSpecified; + } + + private void Resetposition() + { + this.positionSpecified = false; + } + + private bool ShouldSerializearg() + { + return this.argSpecified; + } + + private void Resetarg() + { + this.argSpecified = false; + } + + private bool ShouldSerializeaccount() + { + return this.accountSpecified; + } + + private void Resetaccount() + { + this.accountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs.meta new file mode 100644 index 00000000..1185551d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OperateRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1dd3f98819c75cf499b9bc26ef5d56a3 +timeCreated: 1611403359 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalArg.cs new file mode 100644 index 00000000..a9387940 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Operation520FestivalArg")] + [Serializable] + public class Operation520FestivalArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public Festival520Type type + { + get + { + return this._type ?? Festival520Type.Festival520_NormalDonate; + } + set + { + this._type = new Festival520Type?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new Festival520Type?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + private Festival520Type? _type; + + private uint? _num; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalArg.cs.meta new file mode 100644 index 00000000..867f197f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35af177180cb1484884b51d4e697c149 +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalRes.cs new file mode 100644 index 00000000..f6e20302 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalRes.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Operation520FestivalRes")] + [Serializable] + public class Operation520FestivalRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Festival520Data data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "totalLoveValue", DataFormat = DataFormat.TwosComplement)] + public uint totalLoveValue + { + get + { + return this._totalLoveValue ?? 0u; + } + set + { + this._totalLoveValue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalLoveValueSpecified + { + get + { + return this._totalLoveValue != null; + } + set + { + bool flag = value == (this._totalLoveValue == null); + if (flag) + { + this._totalLoveValue = (value ? new uint?(this.totalLoveValue) : null); + } + } + } + + private ErrorCode? _errorcode; + + private Festival520Data _data = null; + + private uint? _totalLoveValue; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializetotalLoveValue() + { + return this.totalLoveValueSpecified; + } + + private void ResettotalLoveValue() + { + this.totalLoveValueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalRes.cs.meta new file mode 100644 index 00000000..cbc09319 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Operation520FestivalRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8f9748e328b91d4c8dbcdd685a5b782 +timeCreated: 1611404755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OtherFetchDoodadRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/OtherFetchDoodadRes.cs new file mode 100644 index 00000000..dfea3c6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OtherFetchDoodadRes.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OtherFetchDoodadRes")] + [Serializable] + public class OtherFetchDoodadRes : IExtensible + { + [ProtoMember(1, Name = "rollInfos", DataFormat = DataFormat.Default)] + public List rollInfos + { + get + { + return this._rollInfos; + } + } + + [ProtoMember(2, IsRequired = false, Name = "doodadInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public EnemyDoodadInfo doodadInfo + { + get + { + return this._doodadInfo; + } + set + { + this._doodadInfo = value; + } + } + + private readonly List _rollInfos = new List(); + + private EnemyDoodadInfo _doodadInfo = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OtherFetchDoodadRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OtherFetchDoodadRes.cs.meta new file mode 100644 index 00000000..6567fdb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OtherFetchDoodadRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e0fa52edd6cc1843a4c47130cd69419 +timeCreated: 1611403361 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs new file mode 100644 index 00000000..ea3ca40b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs @@ -0,0 +1,178 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLook")] + [Serializable] + public class OutLook : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookGuild guild + { + get + { + return this._guild; + } + set + { + this._guild = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "designation", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookDesignation designation + { + get + { + return this._designation; + } + set + { + this._designation = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "equips", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookEquip equips + { + get + { + return this._equips; + } + set + { + this._equips = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "title", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookTitle title + { + get + { + return this._title; + } + set + { + this._title = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "op", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookOp op + { + get + { + return this._op; + } + set + { + this._op = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "sprite", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookSprite sprite + { + get + { + return this._sprite; + } + set + { + this._sprite = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "state", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookState state + { + get + { + return this._state; + } + set + { + this._state = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "military", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookMilitaryRank military + { + get + { + return this._military; + } + set + { + this._military = value; + } + } + + [ProtoMember(9, IsRequired = false, Name = "display_fashion", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookDisplayFashion display_fashion + { + get + { + return this._display_fashion; + } + set + { + this._display_fashion = value; + } + } + + [ProtoMember(10, IsRequired = false, Name = "pre", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookConsumePre pre + { + get + { + return this._pre; + } + set + { + this._pre = value; + } + } + + private OutLookGuild _guild = null; + + private OutLookDesignation _designation = null; + + private OutLookEquip _equips = null; + + private OutLookTitle _title = null; + + private OutLookOp _op = null; + + private OutLookSprite _sprite = null; + + private OutLookState _state = null; + + private OutLookMilitaryRank _military = null; + + private OutLookDisplayFashion _display_fashion = null; + + private OutLookConsumePre _pre = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs.meta new file mode 100644 index 00000000..7d7e72d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLook.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 701a087f744d5b447936824b4aaf1aec +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookChange.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookChange.cs new file mode 100644 index 00000000..e8d15d5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookChange.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookChange")] + [Serializable] + public class OutLookChange : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "outlook", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLook outlook + { + get + { + return this._outlook; + } + set + { + this._outlook = value; + } + } + + private ulong? _roleid; + + private OutLook _outlook = null; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookChange.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookChange.cs.meta new file mode 100644 index 00000000..1a026111 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47630ef5de55bcb4eab2c5137c11f4c7 +timeCreated: 1611403653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookConsumePre.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookConsumePre.cs new file mode 100644 index 00000000..43d49eb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookConsumePre.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookConsumePre")] + [Serializable] + public class OutLookConsumePre : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(2, Name = "setid", DataFormat = DataFormat.TwosComplement)] + public List setid + { + get + { + return this._setid; + } + } + + private uint? _score; + + private readonly List _setid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookConsumePre.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookConsumePre.cs.meta new file mode 100644 index 00000000..3f760b79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookConsumePre.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c169e6b38d4b7441a5861ac2533f814 +timeCreated: 1611404208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookDesignation.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookDesignation.cs new file mode 100644 index 00000000..8e151075 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookDesignation.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookDesignation")] + [Serializable] + public class OutLookDesignation : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private uint? _id; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookDesignation.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookDesignation.cs.meta new file mode 100644 index 00000000..4a674243 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookDesignation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80f4730cb62be924e8dc435df34fe97d +timeCreated: 1611404035 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookDisplayFashion.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookDisplayFashion.cs new file mode 100644 index 00000000..1526e9e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookDisplayFashion.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookDisplayFashion")] + [Serializable] + public class OutLookDisplayFashion : IExtensible + { + [ProtoMember(1, Name = "display_fashions", DataFormat = DataFormat.TwosComplement)] + public List display_fashions + { + get + { + return this._display_fashions; + } + } + + [ProtoMember(2, IsRequired = false, Name = "hair_color_id", DataFormat = DataFormat.TwosComplement)] + public uint hair_color_id + { + get + { + return this._hair_color_id ?? 0u; + } + set + { + this._hair_color_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hair_color_idSpecified + { + get + { + return this._hair_color_id != null; + } + set + { + bool flag = value == (this._hair_color_id == null); + if (flag) + { + this._hair_color_id = (value ? new uint?(this.hair_color_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "special_effects_id", DataFormat = DataFormat.TwosComplement)] + public uint special_effects_id + { + get + { + return this._special_effects_id ?? 0u; + } + set + { + this._special_effects_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool special_effects_idSpecified + { + get + { + return this._special_effects_id != null; + } + set + { + bool flag = value == (this._special_effects_id == null); + if (flag) + { + this._special_effects_id = (value ? new uint?(this.special_effects_id) : null); + } + } + } + + private readonly List _display_fashions = new List(); + + private uint? _hair_color_id; + + private uint? _special_effects_id; + + private IExtension extensionObject; + + private bool ShouldSerializehair_color_id() + { + return this.hair_color_idSpecified; + } + + private void Resethair_color_id() + { + this.hair_color_idSpecified = false; + } + + private bool ShouldSerializespecial_effects_id() + { + return this.special_effects_idSpecified; + } + + private void Resetspecial_effects_id() + { + this.special_effects_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookDisplayFashion.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookDisplayFashion.cs.meta new file mode 100644 index 00000000..61078f58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookDisplayFashion.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 600cd3f83c826144da452b9c42f4b088 +timeCreated: 1611403832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs new file mode 100644 index 00000000..e08e7cf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookEquip")] + [Serializable] + public class OutLookEquip : IExtensible + { + [ProtoMember(1, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public List itemid + { + get + { + return this._itemid; + } + } + + [ProtoMember(2, Name = "enhancelevel", DataFormat = DataFormat.TwosComplement)] + public List enhancelevel + { + get + { + return this._enhancelevel; + } + } + + [ProtoMember(3, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public List slot + { + get + { + return this._slot; + } + } + + [ProtoMember(4, IsRequired = false, Name = "enhancemaster", DataFormat = DataFormat.TwosComplement)] + public uint enhancemaster + { + get + { + return this._enhancemaster ?? 0u; + } + set + { + this._enhancemaster = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enhancemasterSpecified + { + get + { + return this._enhancemaster != null; + } + set + { + bool flag = value == (this._enhancemaster == null); + if (flag) + { + this._enhancemaster = (value ? new uint?(this.enhancemaster) : null); + } + } + } + + private readonly List _itemid = new List(); + + private readonly List _enhancelevel = new List(); + + private readonly List _slot = new List(); + + private uint? _enhancemaster; + + private IExtension extensionObject; + + private bool ShouldSerializeenhancemaster() + { + return this.enhancemasterSpecified; + } + + private void Resetenhancemaster() + { + this.enhancemasterSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs.meta new file mode 100644 index 00000000..0231ec35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b263db7122fd3d047b82c71461018723 +timeCreated: 1611404385 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookGuild.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookGuild.cs new file mode 100644 index 00000000..e003b8b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookGuild.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookGuild")] + [Serializable] + public class OutLookGuild : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public uint icon + { + get + { + return this._icon ?? 0u; + } + set + { + this._icon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new uint?(this.icon) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public ulong id + { + get + { + return this._id ?? 0UL; + } + set + { + this._id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new ulong?(this.id) : null); + } + } + } + + private string _name; + + private uint? _icon; + + private ulong? _id; + + private IExtension extensionObject; + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookGuild.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookGuild.cs.meta new file mode 100644 index 00000000..37395568 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b24c4471d1e0a24597582bfb586d058 +timeCreated: 1611403685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookMilitaryRank.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookMilitaryRank.cs new file mode 100644 index 00000000..0e74ac62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookMilitaryRank.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookMilitaryRank")] + [Serializable] + public class OutLookMilitaryRank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "military_rank", DataFormat = DataFormat.TwosComplement)] + public uint military_rank + { + get + { + return this._military_rank ?? 0u; + } + set + { + this._military_rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_rankSpecified + { + get + { + return this._military_rank != null; + } + set + { + bool flag = value == (this._military_rank == null); + if (flag) + { + this._military_rank = (value ? new uint?(this.military_rank) : null); + } + } + } + + private uint? _military_rank; + + private IExtension extensionObject; + + private bool ShouldSerializemilitary_rank() + { + return this.military_rankSpecified; + } + + private void Resetmilitary_rank() + { + this.military_rankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookMilitaryRank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookMilitaryRank.cs.meta new file mode 100644 index 00000000..2af1c050 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookMilitaryRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eef8dc0240f30cd4e9f4e8fb9896d3d1 +timeCreated: 1611404801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookOp.cs new file mode 100644 index 00000000..6bfca915 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookOp.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookOp")] + [Serializable] + public class OutLookOp : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "weapon", DataFormat = DataFormat.TwosComplement)] + public OutLookType weapon + { + get + { + return this._weapon ?? OutLookType.OutLook_Fashion; + } + set + { + this._weapon = new OutLookType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weaponSpecified + { + get + { + return this._weapon != null; + } + set + { + bool flag = value == (this._weapon == null); + if (flag) + { + this._weapon = (value ? new OutLookType?(this.weapon) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "clothes", DataFormat = DataFormat.TwosComplement)] + public OutLookType clothes + { + get + { + return this._clothes ?? OutLookType.OutLook_Fashion; + } + set + { + this._clothes = new OutLookType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool clothesSpecified + { + get + { + return this._clothes != null; + } + set + { + bool flag = value == (this._clothes == null); + if (flag) + { + this._clothes = (value ? new OutLookType?(this.clothes) : null); + } + } + } + + private OutLookType? _weapon; + + private OutLookType? _clothes; + + private IExtension extensionObject; + + private bool ShouldSerializeweapon() + { + return this.weaponSpecified; + } + + private void Resetweapon() + { + this.weaponSpecified = false; + } + + private bool ShouldSerializeclothes() + { + return this.clothesSpecified; + } + + private void Resetclothes() + { + this.clothesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookOp.cs.meta new file mode 100644 index 00000000..3eed21d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4b037fab25ea994f9d0b88c9b95ec94 +timeCreated: 1611404603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookSprite.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookSprite.cs new file mode 100644 index 00000000..65068498 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookSprite.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookSprite")] + [Serializable] + public class OutLookSprite : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "leaderid", DataFormat = DataFormat.TwosComplement)] + public uint leaderid + { + get + { + return this._leaderid ?? 0u; + } + set + { + this._leaderid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderidSpecified + { + get + { + return this._leaderid != null; + } + set + { + bool flag = value == (this._leaderid == null); + if (flag) + { + this._leaderid = (value ? new uint?(this.leaderid) : null); + } + } + } + + private uint? _leaderid; + + private IExtension extensionObject; + + private bool ShouldSerializeleaderid() + { + return this.leaderidSpecified; + } + + private void Resetleaderid() + { + this.leaderidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookSprite.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookSprite.cs.meta new file mode 100644 index 00000000..14a7d03b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookSprite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f9c4dc74bbffac40b50c487dff2eba6 +timeCreated: 1611404135 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookState.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookState.cs new file mode 100644 index 00000000..9626f0df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookState.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookState")] + [Serializable] + public class OutLookState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "statetype", DataFormat = DataFormat.TwosComplement)] + public OutLookStateType statetype + { + get + { + return this._statetype ?? OutLookStateType.OutLook_Normal; + } + set + { + this._statetype = new OutLookStateType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statetypeSpecified + { + get + { + return this._statetype != null; + } + set + { + bool flag = value == (this._statetype == null); + if (flag) + { + this._statetype = (value ? new OutLookStateType?(this.statetype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "paramother", DataFormat = DataFormat.TwosComplement)] + public ulong paramother + { + get + { + return this._paramother ?? 0UL; + } + set + { + this._paramother = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramotherSpecified + { + get + { + return this._paramother != null; + } + set + { + bool flag = value == (this._paramother == null); + if (flag) + { + this._paramother = (value ? new ulong?(this.paramother) : null); + } + } + } + + private OutLookStateType? _statetype; + + private uint? _param; + + private ulong? _paramother; + + private IExtension extensionObject; + + private bool ShouldSerializestatetype() + { + return this.statetypeSpecified; + } + + private void Resetstatetype() + { + this.statetypeSpecified = false; + } + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + private bool ShouldSerializeparamother() + { + return this.paramotherSpecified; + } + + private void Resetparamother() + { + this.paramotherSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookState.cs.meta new file mode 100644 index 00000000..5b8b4ed1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae736b0fb0c2d684ca3f62843ab9f300 +timeCreated: 1611404339 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookStateType.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookStateType.cs new file mode 100644 index 00000000..e72d8517 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookStateType.cs @@ -0,0 +1,26 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookStateType")] + public enum OutLookStateType + { + [ProtoEnum(Name = "OutLook_Normal", Value = 0)] + OutLook_Normal, + [ProtoEnum(Name = "OutLook_Sit", Value = 1)] + OutLook_Sit, + [ProtoEnum(Name = "OutLook_Dance", Value = 2)] + OutLook_Dance, + [ProtoEnum(Name = "OutLook_RidePet", Value = 3)] + OutLook_RidePet, + [ProtoEnum(Name = "OutLook_Inherit", Value = 4)] + OutLook_Inherit, + [ProtoEnum(Name = "OutLook_Fish", Value = 5)] + OutLook_Fish, + [ProtoEnum(Name = "OutLook_RidePetCopilot", Value = 6)] + OutLook_RidePetCopilot, + [ProtoEnum(Name = "OutLook_Trans", Value = 7)] + OutLook_Trans + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookStateType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookStateType.cs.meta new file mode 100644 index 00000000..fde31f9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookStateType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2d75976d01b02d4aace064114a180fa +timeCreated: 1611404258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookTitle.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookTitle.cs new file mode 100644 index 00000000..52edbd48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookTitle.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookTitle")] + [Serializable] + public class OutLookTitle : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "titleID", DataFormat = DataFormat.TwosComplement)] + public uint titleID + { + get + { + return this._titleID ?? 0u; + } + set + { + this._titleID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleIDSpecified + { + get + { + return this._titleID != null; + } + set + { + bool flag = value == (this._titleID == null); + if (flag) + { + this._titleID = (value ? new uint?(this.titleID) : null); + } + } + } + + private uint? _titleID; + + private IExtension extensionObject; + + private bool ShouldSerializetitleID() + { + return this.titleIDSpecified; + } + + private void ResettitleID() + { + this.titleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookTitle.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookTitle.cs.meta new file mode 100644 index 00000000..529ffd7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookTitle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1351b3625513be84494e2a6ca6037be0 +timeCreated: 1611403247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookType.cs b/Client/Assets/Scripts/XMainClient/KKSG/OutLookType.cs new file mode 100644 index 00000000..71f36c36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OutLookType")] + public enum OutLookType + { + [ProtoEnum(Name = "OutLook_Fashion", Value = 0)] + OutLook_Fashion, + [ProtoEnum(Name = "OutLook_Equip", Value = 1)] + OutLook_Equip + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OutLookType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/OutLookType.cs.meta new file mode 100644 index 00000000..1663793f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OutLookType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fcdc3590b775c1b47a8ad14915b75143 +timeCreated: 1611404936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PKInformation.cs b/Client/Assets/Scripts/XMainClient/KKSG/PKInformation.cs new file mode 100644 index 00000000..d26c4595 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PKInformation.cs @@ -0,0 +1,379 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PKInformation")] + [Serializable] + public class PKInformation : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pk_record", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkRecord pk_record + { + get + { + return this._pk_record; + } + set + { + this._pk_record = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "pk_rank", DataFormat = DataFormat.TwosComplement)] + public uint pk_rank + { + get + { + return this._pk_rank ?? 0u; + } + set + { + this._pk_rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pk_rankSpecified + { + get + { + return this._pk_rank != null; + } + set + { + bool flag = value == (this._pk_rank == null); + if (flag) + { + this._pk_rank = (value ? new uint?(this.pk_rank) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "pk_profession_rank", DataFormat = DataFormat.TwosComplement)] + public uint pk_profession_rank + { + get + { + return this._pk_profession_rank ?? 0u; + } + set + { + this._pk_profession_rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pk_profession_rankSpecified + { + get + { + return this._pk_profession_rank != null; + } + set + { + bool flag = value == (this._pk_profession_rank == null); + if (flag) + { + this._pk_profession_rank = (value ? new uint?(this.pk_profession_rank) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "pk_max_score", DataFormat = DataFormat.TwosComplement)] + public uint pk_max_score + { + get + { + return this._pk_max_score ?? 0u; + } + set + { + this._pk_max_score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pk_max_scoreSpecified + { + get + { + return this._pk_max_score != null; + } + set + { + bool flag = value == (this._pk_max_score == null); + if (flag) + { + this._pk_max_score = (value ? new uint?(this.pk_max_score) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "pk_all_roles_rate", DataFormat = DataFormat.Default)] + public string pk_all_roles_rate + { + get + { + return this._pk_all_roles_rate ?? ""; + } + set + { + this._pk_all_roles_rate = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pk_all_roles_rateSpecified + { + get + { + return this._pk_all_roles_rate != null; + } + set + { + bool flag = value == (this._pk_all_roles_rate == null); + if (flag) + { + this._pk_all_roles_rate = (value ? this.pk_all_roles_rate : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "pk_warrior_rate", DataFormat = DataFormat.Default)] + public string pk_warrior_rate + { + get + { + return this._pk_warrior_rate ?? ""; + } + set + { + this._pk_warrior_rate = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pk_warrior_rateSpecified + { + get + { + return this._pk_warrior_rate != null; + } + set + { + bool flag = value == (this._pk_warrior_rate == null); + if (flag) + { + this._pk_warrior_rate = (value ? this.pk_warrior_rate : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "pk_archer_rate", DataFormat = DataFormat.Default)] + public string pk_archer_rate + { + get + { + return this._pk_archer_rate ?? ""; + } + set + { + this._pk_archer_rate = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pk_archer_rateSpecified + { + get + { + return this._pk_archer_rate != null; + } + set + { + bool flag = value == (this._pk_archer_rate == null); + if (flag) + { + this._pk_archer_rate = (value ? this.pk_archer_rate : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "pk_minister_rate", DataFormat = DataFormat.Default)] + public string pk_minister_rate + { + get + { + return this._pk_minister_rate ?? ""; + } + set + { + this._pk_minister_rate = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pk_minister_rateSpecified + { + get + { + return this._pk_minister_rate != null; + } + set + { + bool flag = value == (this._pk_minister_rate == null); + if (flag) + { + this._pk_minister_rate = (value ? this.pk_minister_rate : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "pk_master_rate", DataFormat = DataFormat.Default)] + public string pk_master_rate + { + get + { + return this._pk_master_rate ?? ""; + } + set + { + this._pk_master_rate = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pk_master_rateSpecified + { + get + { + return this._pk_master_rate != null; + } + set + { + bool flag = value == (this._pk_master_rate == null); + if (flag) + { + this._pk_master_rate = (value ? this.pk_master_rate : null); + } + } + } + + private PkRecord _pk_record = null; + + private uint? _pk_rank; + + private uint? _pk_profession_rank; + + private uint? _pk_max_score; + + private string _pk_all_roles_rate; + + private string _pk_warrior_rate; + + private string _pk_archer_rate; + + private string _pk_minister_rate; + + private string _pk_master_rate; + + private IExtension extensionObject; + + private bool ShouldSerializepk_rank() + { + return this.pk_rankSpecified; + } + + private void Resetpk_rank() + { + this.pk_rankSpecified = false; + } + + private bool ShouldSerializepk_profession_rank() + { + return this.pk_profession_rankSpecified; + } + + private void Resetpk_profession_rank() + { + this.pk_profession_rankSpecified = false; + } + + private bool ShouldSerializepk_max_score() + { + return this.pk_max_scoreSpecified; + } + + private void Resetpk_max_score() + { + this.pk_max_scoreSpecified = false; + } + + private bool ShouldSerializepk_all_roles_rate() + { + return this.pk_all_roles_rateSpecified; + } + + private void Resetpk_all_roles_rate() + { + this.pk_all_roles_rateSpecified = false; + } + + private bool ShouldSerializepk_warrior_rate() + { + return this.pk_warrior_rateSpecified; + } + + private void Resetpk_warrior_rate() + { + this.pk_warrior_rateSpecified = false; + } + + private bool ShouldSerializepk_archer_rate() + { + return this.pk_archer_rateSpecified; + } + + private void Resetpk_archer_rate() + { + this.pk_archer_rateSpecified = false; + } + + private bool ShouldSerializepk_minister_rate() + { + return this.pk_minister_rateSpecified; + } + + private void Resetpk_minister_rate() + { + this.pk_minister_rateSpecified = false; + } + + private bool ShouldSerializepk_master_rate() + { + return this.pk_master_rateSpecified; + } + + private void Resetpk_master_rate() + { + this.pk_master_rateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PKInformation.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PKInformation.cs.meta new file mode 100644 index 00000000..e115091f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PKInformation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d03d8153f03b5b4b86b93608f9df3a8 +timeCreated: 1611403192 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PVPInformation.cs b/Client/Assets/Scripts/XMainClient/KKSG/PVPInformation.cs new file mode 100644 index 00000000..ce047a70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PVPInformation.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PVPInformation")] + [Serializable] + public class PVPInformation : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pk_info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PKInformation pk_info + { + get + { + return this._pk_info; + } + set + { + this._pk_info = value; + } + } + + private PKInformation _pk_info = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PVPInformation.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PVPInformation.cs.meta new file mode 100644 index 00000000..f0d713b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PVPInformation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9c0163c222ccb042aae0c961798accd +timeCreated: 1611404300 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PVPResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/PVPResult.cs new file mode 100644 index 00000000..40d60758 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PVPResult.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PVPResult")] + [Serializable] + public class PVPResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mygroup", DataFormat = DataFormat.TwosComplement)] + public int mygroup + { + get + { + return this._mygroup ?? 0; + } + set + { + this._mygroup = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mygroupSpecified + { + get + { + return this._mygroup != null; + } + set + { + bool flag = value == (this._mygroup == null); + if (flag) + { + this._mygroup = (value ? new int?(this.mygroup) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "wingroup", DataFormat = DataFormat.TwosComplement)] + public int wingroup + { + get + { + return this._wingroup ?? 0; + } + set + { + this._wingroup = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wingroupSpecified + { + get + { + return this._wingroup != null; + } + set + { + bool flag = value == (this._wingroup == null); + if (flag) + { + this._wingroup = (value ? new int?(this.wingroup) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "killleadercount", DataFormat = DataFormat.TwosComplement)] + public int killleadercount + { + get + { + return this._killleadercount ?? 0; + } + set + { + this._killleadercount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killleadercountSpecified + { + get + { + return this._killleadercount != null; + } + set + { + bool flag = value == (this._killleadercount == null); + if (flag) + { + this._killleadercount = (value ? new int?(this.killleadercount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "ismvp", DataFormat = DataFormat.Default)] + public bool ismvp + { + get + { + return this._ismvp ?? false; + } + set + { + this._ismvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismvpSpecified + { + get + { + return this._ismvp != null; + } + set + { + bool flag = value == (this._ismvp == null); + if (flag) + { + this._ismvp = (value ? new bool?(this.ismvp) : null); + } + } + } + + [ProtoMember(5, Name = "dayjoinreward", DataFormat = DataFormat.Default)] + public List dayjoinreward + { + get + { + return this._dayjoinreward; + } + } + + [ProtoMember(6, Name = "winreward", DataFormat = DataFormat.Default)] + public List winreward + { + get + { + return this._winreward; + } + } + + private int? _mygroup; + + private int? _wingroup; + + private int? _killleadercount; + + private bool? _ismvp; + + private readonly List _dayjoinreward = new List(); + + private readonly List _winreward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializemygroup() + { + return this.mygroupSpecified; + } + + private void Resetmygroup() + { + this.mygroupSpecified = false; + } + + private bool ShouldSerializewingroup() + { + return this.wingroupSpecified; + } + + private void Resetwingroup() + { + this.wingroupSpecified = false; + } + + private bool ShouldSerializekillleadercount() + { + return this.killleadercountSpecified; + } + + private void Resetkillleadercount() + { + this.killleadercountSpecified = false; + } + + private bool ShouldSerializeismvp() + { + return this.ismvpSpecified; + } + + private void Resetismvp() + { + this.ismvpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PVPResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PVPResult.cs.meta new file mode 100644 index 00000000..a50f88df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PVPResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b62300f77779a764fa177995f923183b +timeCreated: 1611404397 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs b/Client/Assets/Scripts/XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs new file mode 100644 index 00000000..2c599967 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PVP_ONEGAMEEND_REASON")] + public enum PVP_ONEGAMEEND_REASON + { + [ProtoEnum(Name = "PVP_OGE_LEADER_DIE", Value = 1)] + PVP_OGE_LEADER_DIE = 1, + [ProtoEnum(Name = "PVP_OGE_LEADER_QUIT", Value = 2)] + PVP_OGE_LEADER_QUIT, + [ProtoEnum(Name = "PVP_OGE_TIMELIMIT", Value = 3)] + PVP_OGE_TIMELIMIT, + [ProtoEnum(Name = "PVP_OGE_ROLE_QUIT", Value = 4)] + PVP_OGE_ROLE_QUIT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs.meta new file mode 100644 index 00000000..170848b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PVP_ONEGAMEEND_REASON.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e37606d6be7cbfb40bae5d5972e8fccf +timeCreated: 1611404733 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs b/Client/Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs new file mode 100644 index 00000000..cc1f4d9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PandoraDrop")] + [Serializable] + public class PandoraDrop : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pandoraDropID", DataFormat = DataFormat.TwosComplement)] + public uint pandoraDropID + { + get + { + return this._pandoraDropID ?? 0u; + } + set + { + this._pandoraDropID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pandoraDropIDSpecified + { + get + { + return this._pandoraDropID != null; + } + set + { + bool flag = value == (this._pandoraDropID == null); + if (flag) + { + this._pandoraDropID = (value ? new uint?(this.pandoraDropID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "betterDropTimes", DataFormat = DataFormat.TwosComplement)] + public uint betterDropTimes + { + get + { + return this._betterDropTimes ?? 0u; + } + set + { + this._betterDropTimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool betterDropTimesSpecified + { + get + { + return this._betterDropTimes != null; + } + set + { + bool flag = value == (this._betterDropTimes == null); + if (flag) + { + this._betterDropTimes = (value ? new uint?(this.betterDropTimes) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "noUsedBestDropTimes", DataFormat = DataFormat.TwosComplement)] + public uint noUsedBestDropTimes + { + get + { + return this._noUsedBestDropTimes ?? 0u; + } + set + { + this._noUsedBestDropTimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool noUsedBestDropTimesSpecified + { + get + { + return this._noUsedBestDropTimes != null; + } + set + { + bool flag = value == (this._noUsedBestDropTimes == null); + if (flag) + { + this._noUsedBestDropTimes = (value ? new uint?(this.noUsedBestDropTimes) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "nextBetterDropTimes", DataFormat = DataFormat.TwosComplement)] + public uint nextBetterDropTimes + { + get + { + return this._nextBetterDropTimes ?? 0u; + } + set + { + this._nextBetterDropTimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nextBetterDropTimesSpecified + { + get + { + return this._nextBetterDropTimes != null; + } + set + { + bool flag = value == (this._nextBetterDropTimes == null); + if (flag) + { + this._nextBetterDropTimes = (value ? new uint?(this.nextBetterDropTimes) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "noUsedNextBestDropTimes", DataFormat = DataFormat.TwosComplement)] + public uint noUsedNextBestDropTimes + { + get + { + return this._noUsedNextBestDropTimes ?? 0u; + } + set + { + this._noUsedNextBestDropTimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool noUsedNextBestDropTimesSpecified + { + get + { + return this._noUsedNextBestDropTimes != null; + } + set + { + bool flag = value == (this._noUsedNextBestDropTimes == null); + if (flag) + { + this._noUsedNextBestDropTimes = (value ? new uint?(this.noUsedNextBestDropTimes) : null); + } + } + } + + [ProtoMember(6, Name = "bestDropTimes", DataFormat = DataFormat.TwosComplement)] + public List bestDropTimes + { + get + { + return this._bestDropTimes; + } + } + + [ProtoMember(7, Name = "nextBestDropTimes", DataFormat = DataFormat.TwosComplement)] + public List nextBestDropTimes + { + get + { + return this._nextBestDropTimes; + } + } + + private uint? _pandoraDropID; + + private uint? _betterDropTimes; + + private uint? _noUsedBestDropTimes; + + private uint? _nextBetterDropTimes; + + private uint? _noUsedNextBestDropTimes; + + private readonly List _bestDropTimes = new List(); + + private readonly List _nextBestDropTimes = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializepandoraDropID() + { + return this.pandoraDropIDSpecified; + } + + private void ResetpandoraDropID() + { + this.pandoraDropIDSpecified = false; + } + + private bool ShouldSerializebetterDropTimes() + { + return this.betterDropTimesSpecified; + } + + private void ResetbetterDropTimes() + { + this.betterDropTimesSpecified = false; + } + + private bool ShouldSerializenoUsedBestDropTimes() + { + return this.noUsedBestDropTimesSpecified; + } + + private void ResetnoUsedBestDropTimes() + { + this.noUsedBestDropTimesSpecified = false; + } + + private bool ShouldSerializenextBetterDropTimes() + { + return this.nextBetterDropTimesSpecified; + } + + private void ResetnextBetterDropTimes() + { + this.nextBetterDropTimesSpecified = false; + } + + private bool ShouldSerializenoUsedNextBestDropTimes() + { + return this.noUsedNextBestDropTimesSpecified; + } + + private void ResetnoUsedNextBestDropTimes() + { + this.noUsedNextBestDropTimesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs.meta new file mode 100644 index 00000000..1622d739 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PandoraDrop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d459db57d1124a44b9840ee860e896c0 +timeCreated: 1611404601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryArg.cs new file mode 100644 index 00000000..02e4e568 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PandoraLotteryArg")] + [Serializable] + public class PandoraLotteryArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pandoraid", DataFormat = DataFormat.TwosComplement)] + public uint pandoraid + { + get + { + return this._pandoraid ?? 0u; + } + set + { + this._pandoraid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pandoraidSpecified + { + get + { + return this._pandoraid != null; + } + set + { + bool flag = value == (this._pandoraid == null); + if (flag) + { + this._pandoraid = (value ? new uint?(this.pandoraid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isOneLottery", DataFormat = DataFormat.Default)] + public bool isOneLottery + { + get + { + return this._isOneLottery ?? false; + } + set + { + this._isOneLottery = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isOneLotterySpecified + { + get + { + return this._isOneLottery != null; + } + set + { + bool flag = value == (this._isOneLottery == null); + if (flag) + { + this._isOneLottery = (value ? new bool?(this.isOneLottery) : null); + } + } + } + + private uint? _pandoraid; + + private bool? _isOneLottery; + + private IExtension extensionObject; + + private bool ShouldSerializepandoraid() + { + return this.pandoraidSpecified; + } + + private void Resetpandoraid() + { + this.pandoraidSpecified = false; + } + + private bool ShouldSerializeisOneLottery() + { + return this.isOneLotterySpecified; + } + + private void ResetisOneLottery() + { + this.isOneLotterySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryArg.cs.meta new file mode 100644 index 00000000..d80d2b87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 901399dc170bd4e438d7ed32323bf6e7 +timeCreated: 1611404137 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryRes.cs new file mode 100644 index 00000000..89fa9bac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PandoraLotteryRes")] + [Serializable] + public class PandoraLotteryRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private ErrorCode? _errorcode; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryRes.cs.meta new file mode 100644 index 00000000..4f008195 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PandoraLotteryRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ddbc12ba7e251bb4bbe9ffb26420efff +timeCreated: 1611404684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerLivenessItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/PartnerLivenessItem.cs new file mode 100644 index 00000000..50f5c242 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerLivenessItem.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PartnerLivenessItem")] + [Serializable] + public class PartnerLivenessItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)] + public uint value + { + get + { + return this._value ?? 0u; + } + set + { + this._value = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool valueSpecified + { + get + { + return this._value != null; + } + set + { + bool flag = value == (this._value == null); + if (flag) + { + this._value = (value ? new uint?(this.value) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ulong? _roleid; + + private uint? _actid; + + private uint? _value; + + private uint? _time; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + private bool ShouldSerializevalue() + { + return this.valueSpecified; + } + + private void Resetvalue() + { + this.valueSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerLivenessItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PartnerLivenessItem.cs.meta new file mode 100644 index 00000000..f93c3cf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerLivenessItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b5365aa54b8d5444491c2c5a7faee3b3 +timeCreated: 1611404395 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerMemberDetail.cs b/Client/Assets/Scripts/XMainClient/KKSG/PartnerMemberDetail.cs new file mode 100644 index 00000000..e7633364 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerMemberDetail.cs @@ -0,0 +1,434 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PartnerMemberDetail")] + [Serializable] + public class PartnerMemberDetail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "memberid", DataFormat = DataFormat.TwosComplement)] + public ulong memberid + { + get + { + return this._memberid ?? 0UL; + } + set + { + this._memberid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberidSpecified + { + get + { + return this._memberid != null; + } + set + { + bool flag = value == (this._memberid == null); + if (flag) + { + this._memberid = (value ? new ulong?(this.memberid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public RoleType profession + { + get + { + return this._profession ?? RoleType.Role_INVALID; + } + set + { + this._profession = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new RoleType?(this.profession) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(6, Name = "fashion", DataFormat = DataFormat.TwosComplement)] + public List fashion + { + get + { + return this._fashion; + } + } + + [ProtoMember(7, IsRequired = false, Name = "outlook", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLook outlook + { + get + { + return this._outlook; + } + set + { + this._outlook = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "viplevel", DataFormat = DataFormat.TwosComplement)] + public uint viplevel + { + get + { + return this._viplevel ?? 0u; + } + set + { + this._viplevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool viplevelSpecified + { + get + { + return this._viplevel != null; + } + set + { + bool flag = value == (this._viplevel == null); + if (flag) + { + this._viplevel = (value ? new uint?(this.viplevel) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "is_apply_leave", DataFormat = DataFormat.Default)] + public bool is_apply_leave + { + get + { + return this._is_apply_leave ?? false; + } + set + { + this._is_apply_leave = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_apply_leaveSpecified + { + get + { + return this._is_apply_leave != null; + } + set + { + bool flag = value == (this._is_apply_leave == null); + if (flag) + { + this._is_apply_leave = (value ? new bool?(this.is_apply_leave) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "left_leave_time", DataFormat = DataFormat.TwosComplement)] + public uint left_leave_time + { + get + { + return this._left_leave_time ?? 0u; + } + set + { + this._left_leave_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool left_leave_timeSpecified + { + get + { + return this._left_leave_time != null; + } + set + { + bool flag = value == (this._left_leave_time == null); + if (flag) + { + this._left_leave_time = (value ? new uint?(this.left_leave_time) : null); + } + } + } + + private ulong? _memberid; + + private RoleType? _profession; + + private string _name; + + private uint? _level; + + private uint? _ppt; + + private readonly List _fashion = new List(); + + private OutLook _outlook = null; + + private uint? _viplevel; + + private uint? _paymemberid; + + private bool? _is_apply_leave; + + private uint? _left_leave_time; + + private IExtension extensionObject; + + private bool ShouldSerializememberid() + { + return this.memberidSpecified; + } + + private void Resetmemberid() + { + this.memberidSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializeviplevel() + { + return this.viplevelSpecified; + } + + private void Resetviplevel() + { + this.viplevelSpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + private bool ShouldSerializeis_apply_leave() + { + return this.is_apply_leaveSpecified; + } + + private void Resetis_apply_leave() + { + this.is_apply_leaveSpecified = false; + } + + private bool ShouldSerializeleft_leave_time() + { + return this.left_leave_timeSpecified; + } + + private void Resetleft_leave_time() + { + this.left_leave_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerMemberDetail.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PartnerMemberDetail.cs.meta new file mode 100644 index 00000000..b8bb5bf7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerMemberDetail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a0b3eb1ef516e54ab43ea1d94ac2242 +timeCreated: 1611403887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerOperType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PartnerOperType.cs new file mode 100644 index 00000000..62c094e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerOperType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PartnerOperType")] + public enum PartnerOperType + { + [ProtoEnum(Name = "POT_Normal", Value = 1)] + POT_Normal = 1, + [ProtoEnum(Name = "POT_Liveness", Value = 2)] + POT_Liveness, + [ProtoEnum(Name = "POT_Leave", Value = 3)] + POT_Leave, + [ProtoEnum(Name = "POT_ApplyLeave", Value = 4)] + POT_ApplyLeave, + [ProtoEnum(Name = "POT_CancelLeave", Value = 5)] + POT_CancelLeave, + [ProtoEnum(Name = "POT_Dissolve", Value = 6)] + POT_Dissolve + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerOperType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PartnerOperType.cs.meta new file mode 100644 index 00000000..4de6b670 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerOperType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d0bd7357a1f3ae44bdf345eace8ea10 +timeCreated: 1611404103 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs new file mode 100644 index 00000000..f490a6fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PartnerShopItemClient")] + [Serializable] + public class PartnerShopItemClient : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "buy_count", DataFormat = DataFormat.TwosComplement)] + public uint buy_count + { + get + { + return this._buy_count ?? 0u; + } + set + { + this._buy_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buy_countSpecified + { + get + { + return this._buy_count != null; + } + set + { + bool flag = value == (this._buy_count == null); + if (flag) + { + this._buy_count = (value ? new uint?(this.buy_count) : null); + } + } + } + + private uint? _id; + + private uint? _itemid; + + private uint? _buy_count; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializebuy_count() + { + return this.buy_countSpecified; + } + + private void Resetbuy_count() + { + this.buy_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs.meta new file mode 100644 index 00000000..902f8e8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopItemClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b01d783a23d359f439c92a85b9c85a35 +timeCreated: 1611404349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopRecordItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopRecordItem.cs new file mode 100644 index 00000000..ae079360 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopRecordItem.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PartnerShopRecordItem")] + [Serializable] + public class PartnerShopRecordItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "titleid", DataFormat = DataFormat.TwosComplement)] + public uint titleid + { + get + { + return this._titleid ?? 0u; + } + set + { + this._titleid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleidSpecified + { + get + { + return this._titleid != null; + } + set + { + bool flag = value == (this._titleid == null); + if (flag) + { + this._titleid = (value ? new uint?(this.titleid) : null); + } + } + } + + private ulong? _roleid; + + private uint? _itemid; + + private uint? _itemcount; + + private uint? _time; + + private string _name; + + private uint? _titleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetitleid() + { + return this.titleidSpecified; + } + + private void Resettitleid() + { + this.titleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopRecordItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopRecordItem.cs.meta new file mode 100644 index 00000000..64aae82e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerShopRecordItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56bf1ee6b0b70e946a4f80c46aaa9467 +timeCreated: 1611403745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerUpdateType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PartnerUpdateType.cs new file mode 100644 index 00000000..293bf831 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerUpdateType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PartnerUpdateType")] + public enum PartnerUpdateType + { + [ProtoEnum(Name = "PUType_Normal", Value = 1)] + PUType_Normal = 1, + [ProtoEnum(Name = "PUType_Leave", Value = 2)] + PUType_Leave, + [ProtoEnum(Name = "PUType_Dissolve", Value = 3)] + PUType_Dissolve, + [ProtoEnum(Name = "PUType_Shop", Value = 4)] + PUType_Shop + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartnerUpdateType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PartnerUpdateType.cs.meta new file mode 100644 index 00000000..908447b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartnerUpdateType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0da4dab21d70f9e4da79fa2d2204b2f0 +timeCreated: 1611403197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartyExchangeItemInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PartyExchangeItemInfo.cs new file mode 100644 index 00000000..a5f71a2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartyExchangeItemInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PartyExchangeItemInfo")] + [Serializable] + public class PartyExchangeItemInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "role_id", DataFormat = DataFormat.TwosComplement)] + public ulong role_id + { + get + { + return this._role_id ?? 0UL; + } + set + { + this._role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role_idSpecified + { + get + { + return this._role_id != null; + } + set + { + bool flag = value == (this._role_id == null); + if (flag) + { + this._role_id = (value ? new ulong?(this.role_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "profession_id", DataFormat = DataFormat.TwosComplement)] + public uint profession_id + { + get + { + return this._profession_id ?? 0u; + } + set + { + this._profession_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profession_idSpecified + { + get + { + return this._profession_id != null; + } + set + { + bool flag = value == (this._profession_id == null); + if (flag) + { + this._profession_id = (value ? new uint?(this.profession_id) : null); + } + } + } + + private ulong? _role_id; + + private uint? _time; + + private uint? _level; + + private string _name; + + private uint? _profession_id; + + private IExtension extensionObject; + + private bool ShouldSerializerole_id() + { + return this.role_idSpecified; + } + + private void Resetrole_id() + { + this.role_idSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeprofession_id() + { + return this.profession_idSpecified; + } + + private void Resetprofession_id() + { + this.profession_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PartyExchangeItemInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PartyExchangeItemInfo.cs.meta new file mode 100644 index 00000000..3906df7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PartyExchangeItemInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d17a77c76298d6344b7ec67b5eb3d05d +timeCreated: 1611404591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAccessDataType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayAccessDataType.cs new file mode 100644 index 00000000..f3aafea2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAccessDataType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayAccessDataType")] + public enum PayAccessDataType + { + [ProtoEnum(Name = "PayAccess_SaveAmt", Value = 1)] + PayAccess_SaveAmt = 1, + [ProtoEnum(Name = "PayAccess_Other", Value = 2)] + PayAccess_Other, + [ProtoEnum(Name = "PayAccess_Send", Value = 3)] + PayAccess_Send, + [ProtoEnum(Name = "PayAccess_Consume", Value = 4)] + PayAccess_Consume, + [ProtoEnum(Name = "PayAccess_ALL", Value = 5)] + PayAccess_ALL + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAccessDataType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayAccessDataType.cs.meta new file mode 100644 index 00000000..21b50ad3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAccessDataType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1470be09a1fc0141bea09738ed29286 +timeCreated: 1611404490 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAileen.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayAileen.cs new file mode 100644 index 00000000..3bead167 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAileen.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayAileen")] + [Serializable] + public class PayAileen : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "remainedTime", DataFormat = DataFormat.TwosComplement)] + public uint remainedTime + { + get + { + return this._remainedTime ?? 0u; + } + set + { + this._remainedTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool remainedTimeSpecified + { + get + { + return this._remainedTime != null; + } + set + { + bool flag = value == (this._remainedTime == null); + if (flag) + { + this._remainedTime = (value ? new uint?(this.remainedTime) : null); + } + } + } + + [ProtoMember(2, Name = "AileenInfo", DataFormat = DataFormat.Default)] + public List AileenInfo + { + get + { + return this._AileenInfo; + } + } + + [ProtoMember(3, IsRequired = false, Name = "weekDays", DataFormat = DataFormat.TwosComplement)] + public uint weekDays + { + get + { + return this._weekDays ?? 0u; + } + set + { + this._weekDays = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekDaysSpecified + { + get + { + return this._weekDays != null; + } + set + { + bool flag = value == (this._weekDays == null); + if (flag) + { + this._weekDays = (value ? new uint?(this.weekDays) : null); + } + } + } + + private uint? _remainedTime; + + private readonly List _AileenInfo = new List(); + + private uint? _weekDays; + + private IExtension extensionObject; + + private bool ShouldSerializeremainedTime() + { + return this.remainedTimeSpecified; + } + + private void ResetremainedTime() + { + this.remainedTimeSpecified = false; + } + + private bool ShouldSerializeweekDays() + { + return this.weekDaysSpecified; + } + + private void ResetweekDays() + { + this.weekDaysSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAileen.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayAileen.cs.meta new file mode 100644 index 00000000..cbaf5fd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAileen.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41536a805fb961f448ee6f0dda7ae8c5 +timeCreated: 1611403617 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAileenInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayAileenInfo.cs new file mode 100644 index 00000000..fdd513ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAileenInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayAileenInfo")] + [Serializable] + public class PayAileenInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "paramID", DataFormat = DataFormat.Default)] + public string paramID + { + get + { + return this._paramID ?? ""; + } + set + { + this._paramID = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramIDSpecified + { + get + { + return this._paramID != null; + } + set + { + bool flag = value == (this._paramID == null); + if (flag) + { + this._paramID = (value ? this.paramID : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public int itemID + { + get + { + return this._itemID ?? 0; + } + set + { + this._itemID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new int?(this.itemID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isBuy", DataFormat = DataFormat.Default)] + public bool isBuy + { + get + { + return this._isBuy ?? false; + } + set + { + this._isBuy = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isBuySpecified + { + get + { + return this._isBuy != null; + } + set + { + bool flag = value == (this._isBuy == null); + if (flag) + { + this._isBuy = (value ? new bool?(this.isBuy) : null); + } + } + } + + private string _paramID; + + private int? _itemID; + + private bool? _isBuy; + + private IExtension extensionObject; + + private bool ShouldSerializeparamID() + { + return this.paramIDSpecified; + } + + private void ResetparamID() + { + this.paramIDSpecified = false; + } + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializeisBuy() + { + return this.isBuySpecified; + } + + private void ResetisBuy() + { + this.isBuySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAileenInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayAileenInfo.cs.meta new file mode 100644 index 00000000..646937cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAileenInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4487140a317fae242bdcd1b011357c2b +timeCreated: 1611403645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAileenRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayAileenRecord.cs new file mode 100644 index 00000000..8ae99fbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAileenRecord.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayAileenRecord")] + [Serializable] + public class PayAileenRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "paramID", DataFormat = DataFormat.Default)] + public string paramID + { + get + { + return this._paramID ?? ""; + } + set + { + this._paramID = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramIDSpecified + { + get + { + return this._paramID != null; + } + set + { + bool flag = value == (this._paramID == null); + if (flag) + { + this._paramID = (value ? this.paramID : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public int itemID + { + get + { + return this._itemID ?? 0; + } + set + { + this._itemID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new int?(this.itemID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastBuyTime", DataFormat = DataFormat.TwosComplement)] + public uint lastBuyTime + { + get + { + return this._lastBuyTime ?? 0u; + } + set + { + this._lastBuyTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastBuyTimeSpecified + { + get + { + return this._lastBuyTime != null; + } + set + { + bool flag = value == (this._lastBuyTime == null); + if (flag) + { + this._lastBuyTime = (value ? new uint?(this.lastBuyTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "detail", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PaytssInfo detail + { + get + { + return this._detail; + } + set + { + this._detail = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "lastdelivertime", DataFormat = DataFormat.TwosComplement)] + public uint lastdelivertime + { + get + { + return this._lastdelivertime ?? 0u; + } + set + { + this._lastdelivertime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastdelivertimeSpecified + { + get + { + return this._lastdelivertime != null; + } + set + { + bool flag = value == (this._lastdelivertime == null); + if (flag) + { + this._lastdelivertime = (value ? new uint?(this.lastdelivertime) : null); + } + } + } + + private string _paramID; + + private int? _itemID; + + private uint? _lastBuyTime; + + private PaytssInfo _detail = null; + + private uint? _lastdelivertime; + + private IExtension extensionObject; + + private bool ShouldSerializeparamID() + { + return this.paramIDSpecified; + } + + private void ResetparamID() + { + this.paramIDSpecified = false; + } + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializelastBuyTime() + { + return this.lastBuyTimeSpecified; + } + + private void ResetlastBuyTime() + { + this.lastBuyTimeSpecified = false; + } + + private bool ShouldSerializelastdelivertime() + { + return this.lastdelivertimeSpecified; + } + + private void Resetlastdelivertime() + { + this.lastdelivertimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAileenRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayAileenRecord.cs.meta new file mode 100644 index 00000000..80f264c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAileenRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31ce8a25e3760dc4ba24e9b590ba1d36 +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs new file mode 100644 index 00000000..eedd0a27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs @@ -0,0 +1,661 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayAllInfo")] + [Serializable] + public class PayAllInfo : IExtensible + { + [ProtoMember(1, Name = "pay", DataFormat = DataFormat.Default)] + public List pay + { + get + { + return this._pay; + } + } + + [ProtoMember(2, Name = "card", DataFormat = DataFormat.Default)] + public List card + { + get + { + return this._card; + } + } + + [ProtoMember(3, IsRequired = false, Name = "aileen", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayAileen aileen + { + get + { + return this._aileen; + } + set + { + this._aileen = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "vipLevel", DataFormat = DataFormat.TwosComplement)] + public uint vipLevel + { + get + { + return this._vipLevel ?? 0u; + } + set + { + this._vipLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipLevelSpecified + { + get + { + return this._vipLevel != null; + } + set + { + bool flag = value == (this._vipLevel == null); + if (flag) + { + this._vipLevel = (value ? new uint?(this.vipLevel) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "totalPay", DataFormat = DataFormat.TwosComplement)] + public uint totalPay + { + get + { + return this._totalPay ?? 0u; + } + set + { + this._totalPay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalPaySpecified + { + get + { + return this._totalPay != null; + } + set + { + bool flag = value == (this._totalPay == null); + if (flag) + { + this._totalPay = (value ? new uint?(this.totalPay) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "payCardFirstClick", DataFormat = DataFormat.Default)] + public bool payCardFirstClick + { + get + { + return this._payCardFirstClick ?? false; + } + set + { + this._payCardFirstClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payCardFirstClickSpecified + { + get + { + return this._payCardFirstClick != null; + } + set + { + bool flag = value == (this._payCardFirstClick == null); + if (flag) + { + this._payCardFirstClick = (value ? new bool?(this.payCardFirstClick) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "payAileenFirstClick", DataFormat = DataFormat.Default)] + public bool payAileenFirstClick + { + get + { + return this._payAileenFirstClick ?? false; + } + set + { + this._payAileenFirstClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payAileenFirstClickSpecified + { + get + { + return this._payAileenFirstClick != null; + } + set + { + bool flag = value == (this._payAileenFirstClick == null); + if (flag) + { + this._payAileenFirstClick = (value ? new bool?(this.payAileenFirstClick) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "payFirstAward", DataFormat = DataFormat.Default)] + public bool payFirstAward + { + get + { + return this._payFirstAward ?? false; + } + set + { + this._payFirstAward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payFirstAwardSpecified + { + get + { + return this._payFirstAward != null; + } + set + { + bool flag = value == (this._payFirstAward == null); + if (flag) + { + this._payFirstAward = (value ? new bool?(this.payFirstAward) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "payFirstAwardClick", DataFormat = DataFormat.Default)] + public bool payFirstAwardClick + { + get + { + return this._payFirstAwardClick ?? false; + } + set + { + this._payFirstAwardClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payFirstAwardClickSpecified + { + get + { + return this._payFirstAwardClick != null; + } + set + { + bool flag = value == (this._payFirstAwardClick == null); + if (flag) + { + this._payFirstAwardClick = (value ? new bool?(this.payFirstAwardClick) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "buyGrowthFund", DataFormat = DataFormat.Default)] + public bool buyGrowthFund + { + get + { + return this._buyGrowthFund ?? false; + } + set + { + this._buyGrowthFund = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buyGrowthFundSpecified + { + get + { + return this._buyGrowthFund != null; + } + set + { + bool flag = value == (this._buyGrowthFund == null); + if (flag) + { + this._buyGrowthFund = (value ? new bool?(this.buyGrowthFund) : null); + } + } + } + + [ProtoMember(11, Name = "growthFundLevelInfo", DataFormat = DataFormat.TwosComplement)] + public List growthFundLevelInfo + { + get + { + return this._growthFundLevelInfo; + } + } + + [ProtoMember(12, Name = "growthFundLoginInfo", DataFormat = DataFormat.TwosComplement)] + public List growthFundLoginInfo + { + get + { + return this._growthFundLoginInfo; + } + } + + [ProtoMember(13, IsRequired = false, Name = "growthFundClick", DataFormat = DataFormat.Default)] + public bool growthFundClick + { + get + { + return this._growthFundClick ?? false; + } + set + { + this._growthFundClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool growthFundClickSpecified + { + get + { + return this._growthFundClick != null; + } + set + { + bool flag = value == (this._growthFundClick == null); + if (flag) + { + this._growthFundClick = (value ? new bool?(this.growthFundClick) : null); + } + } + } + + [ProtoMember(14, Name = "VipLevelGift", DataFormat = DataFormat.TwosComplement)] + public List VipLevelGift + { + get + { + return this._VipLevelGift; + } + } + + [ProtoMember(15, IsRequired = false, Name = "payCardRemainTime", DataFormat = DataFormat.TwosComplement)] + public uint payCardRemainTime + { + get + { + return this._payCardRemainTime ?? 0u; + } + set + { + this._payCardRemainTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payCardRemainTimeSpecified + { + get + { + return this._payCardRemainTime != null; + } + set + { + bool flag = value == (this._payCardRemainTime == null); + if (flag) + { + this._payCardRemainTime = (value ? new uint?(this.payCardRemainTime) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "totalLoginDays", DataFormat = DataFormat.TwosComplement)] + public uint totalLoginDays + { + get + { + return this._totalLoginDays ?? 0u; + } + set + { + this._totalLoginDays = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalLoginDaysSpecified + { + get + { + return this._totalLoginDays != null; + } + set + { + bool flag = value == (this._totalLoginDays == null); + if (flag) + { + this._totalLoginDays = (value ? new uint?(this.totalLoginDays) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "payType", DataFormat = DataFormat.TwosComplement)] + public int payType + { + get + { + return this._payType ?? 0; + } + set + { + this._payType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payTypeSpecified + { + get + { + return this._payType != null; + } + set + { + bool flag = value == (this._payType == null); + if (flag) + { + this._payType = (value ? new int?(this.payType) : null); + } + } + } + + [ProtoMember(18, Name = "payMemberInfo", DataFormat = DataFormat.Default)] + public List payMemberInfo + { + get + { + return this._payMemberInfo; + } + } + + [ProtoMember(19, IsRequired = false, Name = "isIosOpen", DataFormat = DataFormat.Default)] + public bool isIosOpen + { + get + { + return this._isIosOpen ?? false; + } + set + { + this._isIosOpen = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isIosOpenSpecified + { + get + { + return this._isIosOpen != null; + } + set + { + bool flag = value == (this._isIosOpen == null); + if (flag) + { + this._isIosOpen = (value ? new bool?(this.isIosOpen) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "rewardCoolTime", DataFormat = DataFormat.TwosComplement)] + public uint rewardCoolTime + { + get + { + return this._rewardCoolTime ?? 0u; + } + set + { + this._rewardCoolTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardCoolTimeSpecified + { + get + { + return this._rewardCoolTime != null; + } + set + { + bool flag = value == (this._rewardCoolTime == null); + if (flag) + { + this._rewardCoolTime = (value ? new uint?(this.rewardCoolTime) : null); + } + } + } + + private readonly List _pay = new List(); + + private readonly List _card = new List(); + + private PayAileen _aileen = null; + + private uint? _vipLevel; + + private uint? _totalPay; + + private bool? _payCardFirstClick; + + private bool? _payAileenFirstClick; + + private bool? _payFirstAward; + + private bool? _payFirstAwardClick; + + private bool? _buyGrowthFund; + + private readonly List _growthFundLevelInfo = new List(); + + private readonly List _growthFundLoginInfo = new List(); + + private bool? _growthFundClick; + + private readonly List _VipLevelGift = new List(); + + private uint? _payCardRemainTime; + + private uint? _totalLoginDays; + + private int? _payType; + + private readonly List _payMemberInfo = new List(); + + private bool? _isIosOpen; + + private uint? _rewardCoolTime; + + private IExtension extensionObject; + + private bool ShouldSerializevipLevel() + { + return this.vipLevelSpecified; + } + + private void ResetvipLevel() + { + this.vipLevelSpecified = false; + } + + private bool ShouldSerializetotalPay() + { + return this.totalPaySpecified; + } + + private void ResettotalPay() + { + this.totalPaySpecified = false; + } + + private bool ShouldSerializepayCardFirstClick() + { + return this.payCardFirstClickSpecified; + } + + private void ResetpayCardFirstClick() + { + this.payCardFirstClickSpecified = false; + } + + private bool ShouldSerializepayAileenFirstClick() + { + return this.payAileenFirstClickSpecified; + } + + private void ResetpayAileenFirstClick() + { + this.payAileenFirstClickSpecified = false; + } + + private bool ShouldSerializepayFirstAward() + { + return this.payFirstAwardSpecified; + } + + private void ResetpayFirstAward() + { + this.payFirstAwardSpecified = false; + } + + private bool ShouldSerializepayFirstAwardClick() + { + return this.payFirstAwardClickSpecified; + } + + private void ResetpayFirstAwardClick() + { + this.payFirstAwardClickSpecified = false; + } + + private bool ShouldSerializebuyGrowthFund() + { + return this.buyGrowthFundSpecified; + } + + private void ResetbuyGrowthFund() + { + this.buyGrowthFundSpecified = false; + } + + private bool ShouldSerializegrowthFundClick() + { + return this.growthFundClickSpecified; + } + + private void ResetgrowthFundClick() + { + this.growthFundClickSpecified = false; + } + + private bool ShouldSerializepayCardRemainTime() + { + return this.payCardRemainTimeSpecified; + } + + private void ResetpayCardRemainTime() + { + this.payCardRemainTimeSpecified = false; + } + + private bool ShouldSerializetotalLoginDays() + { + return this.totalLoginDaysSpecified; + } + + private void ResettotalLoginDays() + { + this.totalLoginDaysSpecified = false; + } + + private bool ShouldSerializepayType() + { + return this.payTypeSpecified; + } + + private void ResetpayType() + { + this.payTypeSpecified = false; + } + + private bool ShouldSerializeisIosOpen() + { + return this.isIosOpenSpecified; + } + + private void ResetisIosOpen() + { + this.isIosOpenSpecified = false; + } + + private bool ShouldSerializerewardCoolTime() + { + return this.rewardCoolTimeSpecified; + } + + private void ResetrewardCoolTime() + { + this.rewardCoolTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs.meta new file mode 100644 index 00000000..e89d53e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3960b16ec26e7742ade4c4662864185 +timeCreated: 1611404599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAwardRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayAwardRecord.cs new file mode 100644 index 00000000..f925c727 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAwardRecord.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayAwardRecord")] + [Serializable] + public class PayAwardRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public int id + { + get + { + return this._id ?? 0; + } + set + { + this._id = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new int?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastGetAwardTime", DataFormat = DataFormat.TwosComplement)] + public uint lastGetAwardTime + { + get + { + return this._lastGetAwardTime ?? 0u; + } + set + { + this._lastGetAwardTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastGetAwardTimeSpecified + { + get + { + return this._lastGetAwardTime != null; + } + set + { + bool flag = value == (this._lastGetAwardTime == null); + if (flag) + { + this._lastGetAwardTime = (value ? new uint?(this.lastGetAwardTime) : null); + } + } + } + + private int? _id; + + private uint? _lastGetAwardTime; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializelastGetAwardTime() + { + return this.lastGetAwardTimeSpecified; + } + + private void ResetlastGetAwardTime() + { + this.lastGetAwardTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayAwardRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayAwardRecord.cs.meta new file mode 100644 index 00000000..385f64d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayAwardRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7d544455a8c8cc44ac53b4b8b138b56 +timeCreated: 1611404292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs new file mode 100644 index 00000000..bcc44630 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayBaseInfo")] + [Serializable] + public class PayBaseInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "paramID", DataFormat = DataFormat.Default)] + public string paramID + { + get + { + return this._paramID ?? ""; + } + set + { + this._paramID = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramIDSpecified + { + get + { + return this._paramID != null; + } + set + { + bool flag = value == (this._paramID == null); + if (flag) + { + this._paramID = (value ? this.paramID : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isPay", DataFormat = DataFormat.Default)] + public bool isPay + { + get + { + return this._isPay ?? false; + } + set + { + this._isPay = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isPaySpecified + { + get + { + return this._isPay != null; + } + set + { + bool flag = value == (this._isPay == null); + if (flag) + { + this._isPay = (value ? new bool?(this.isPay) : null); + } + } + } + + private string _paramID; + + private bool? _isPay; + + private IExtension extensionObject; + + private bool ShouldSerializeparamID() + { + return this.paramIDSpecified; + } + + private void ResetparamID() + { + this.paramIDSpecified = false; + } + + private bool ShouldSerializeisPay() + { + return this.isPaySpecified; + } + + private void ResetisPay() + { + this.isPaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs.meta new file mode 100644 index 00000000..3f3fbdb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayBaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a6d268bbb496fd4e904be3190519f02 +timeCreated: 1611403989 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayButtonStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayButtonStatus.cs new file mode 100644 index 00000000..5324f553 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayButtonStatus.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayButtonStatus")] + public enum PayButtonStatus + { + [ProtoEnum(Name = "PAY_BUTTON_NONE", Value = 0)] + PAY_BUTTON_NONE, + [ProtoEnum(Name = "PAY_BUTTON_OPEN", Value = 1)] + PAY_BUTTON_OPEN, + [ProtoEnum(Name = "PAY_BUTTON_CLICK", Value = 2)] + PAY_BUTTON_CLICK + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayButtonStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayButtonStatus.cs.meta new file mode 100644 index 00000000..c3360752 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayButtonStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74873562483f0ec4abe4f082b3957f94 +timeCreated: 1611403943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs new file mode 100644 index 00000000..aaac9161 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayBuyGoodsFail")] + [Serializable] + public class PayBuyGoodsFail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs.meta new file mode 100644 index 00000000..34cf7b28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayBuyGoodsFail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a70da285be152c48a3cb83fd2f7614e +timeCreated: 1611403596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs new file mode 100644 index 00000000..0ec72884 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayCard")] + [Serializable] + public class PayCard : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "remainedCount", DataFormat = DataFormat.TwosComplement)] + public uint remainedCount + { + get + { + return this._remainedCount ?? 0u; + } + set + { + this._remainedCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool remainedCountSpecified + { + get + { + return this._remainedCount != null; + } + set + { + bool flag = value == (this._remainedCount == null); + if (flag) + { + this._remainedCount = (value ? new uint?(this.remainedCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isGet", DataFormat = DataFormat.Default)] + public bool isGet + { + get + { + return this._isGet ?? false; + } + set + { + this._isGet = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isGetSpecified + { + get + { + return this._isGet != null; + } + set + { + bool flag = value == (this._isGet == null); + if (flag) + { + this._isGet = (value ? new bool?(this.isGet) : null); + } + } + } + + private uint? _type; + + private uint? _remainedCount; + + private bool? _isGet; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeremainedCount() + { + return this.remainedCountSpecified; + } + + private void ResetremainedCount() + { + this.remainedCountSpecified = false; + } + + private bool ShouldSerializeisGet() + { + return this.isGetSpecified; + } + + private void ResetisGet() + { + this.isGetSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs.meta new file mode 100644 index 00000000..a9487a45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cca47a346592e584689d75279211c0f3 +timeCreated: 1611404551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardArg.cs new file mode 100644 index 00000000..6522fc9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayCardAwardArg")] + [Serializable] + public class PayCardAwardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + private int? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardArg.cs.meta new file mode 100644 index 00000000..11f29991 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 561514a569c33d747a8ee563df148b71 +timeCreated: 1611403741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardRes.cs new file mode 100644 index 00000000..dc6a2d12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayCardAwardRes")] + [Serializable] + public class PayCardAwardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayCard info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private ErrorCode? _errcode; + + private PayCard _info = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardRes.cs.meta new file mode 100644 index 00000000..98d96686 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayCardAwardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9486c465dbd29564c8556633b6728ca3 +timeCreated: 1611404155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayCardType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayCardType.cs new file mode 100644 index 00000000..c9d11b99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayCardType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayCardType")] + public enum PayCardType + { + [ProtoEnum(Name = "WEEK_CARD", Value = 1)] + WEEK_CARD = 1, + [ProtoEnum(Name = "MONTH_CARD", Value = 2)] + MONTH_CARD + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayCardType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayCardType.cs.meta new file mode 100644 index 00000000..98d59972 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayCardType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 956bf2a9865c7e240b6f0cd4aa46e4e1 +timeCreated: 1611404181 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs new file mode 100644 index 00000000..a4e530b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayClickArg")] + [Serializable] + public class PayClickArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "buttonType", DataFormat = DataFormat.TwosComplement)] + public int buttonType + { + get + { + return this._buttonType ?? 0; + } + set + { + this._buttonType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buttonTypeSpecified + { + get + { + return this._buttonType != null; + } + set + { + bool flag = value == (this._buttonType == null); + if (flag) + { + this._buttonType = (value ? new int?(this.buttonType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "memberid", DataFormat = DataFormat.TwosComplement)] + public int memberid + { + get + { + return this._memberid ?? 0; + } + set + { + this._memberid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberidSpecified + { + get + { + return this._memberid != null; + } + set + { + bool flag = value == (this._memberid == null); + if (flag) + { + this._memberid = (value ? new int?(this.memberid) : null); + } + } + } + + private int? _buttonType; + + private int? _memberid; + + private IExtension extensionObject; + + private bool ShouldSerializebuttonType() + { + return this.buttonTypeSpecified; + } + + private void ResetbuttonType() + { + this.buttonTypeSpecified = false; + } + + private bool ShouldSerializememberid() + { + return this.memberidSpecified; + } + + private void Resetmemberid() + { + this.memberidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs.meta new file mode 100644 index 00000000..d9919448 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayClickArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cb1dcf2796a8c346bea74c71afd7840 +timeCreated: 1611403347 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayClickRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayClickRes.cs new file mode 100644 index 00000000..6f3b9f64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayClickRes.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayClickRes")] + [Serializable] + public class PayClickRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "payCardFirstClick", DataFormat = DataFormat.Default)] + public bool payCardFirstClick + { + get + { + return this._payCardFirstClick ?? false; + } + set + { + this._payCardFirstClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payCardFirstClickSpecified + { + get + { + return this._payCardFirstClick != null; + } + set + { + bool flag = value == (this._payCardFirstClick == null); + if (flag) + { + this._payCardFirstClick = (value ? new bool?(this.payCardFirstClick) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "payAileenFirstClick", DataFormat = DataFormat.Default)] + public bool payAileenFirstClick + { + get + { + return this._payAileenFirstClick ?? false; + } + set + { + this._payAileenFirstClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payAileenFirstClickSpecified + { + get + { + return this._payAileenFirstClick != null; + } + set + { + bool flag = value == (this._payAileenFirstClick == null); + if (flag) + { + this._payAileenFirstClick = (value ? new bool?(this.payAileenFirstClick) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "payFirstAwardClick", DataFormat = DataFormat.Default)] + public bool payFirstAwardClick + { + get + { + return this._payFirstAwardClick ?? false; + } + set + { + this._payFirstAwardClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payFirstAwardClickSpecified + { + get + { + return this._payFirstAwardClick != null; + } + set + { + bool flag = value == (this._payFirstAwardClick == null); + if (flag) + { + this._payFirstAwardClick = (value ? new bool?(this.payFirstAwardClick) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "growthFundClick", DataFormat = DataFormat.Default)] + public bool growthFundClick + { + get + { + return this._growthFundClick ?? false; + } + set + { + this._growthFundClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool growthFundClickSpecified + { + get + { + return this._growthFundClick != null; + } + set + { + bool flag = value == (this._growthFundClick == null); + if (flag) + { + this._growthFundClick = (value ? new bool?(this.growthFundClick) : null); + } + } + } + + [ProtoMember(6, Name = "info", DataFormat = DataFormat.Default)] + public List info + { + get + { + return this._info; + } + } + + private ErrorCode? _errcode; + + private bool? _payCardFirstClick; + + private bool? _payAileenFirstClick; + + private bool? _payFirstAwardClick; + + private bool? _growthFundClick; + + private readonly List _info = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + private bool ShouldSerializepayCardFirstClick() + { + return this.payCardFirstClickSpecified; + } + + private void ResetpayCardFirstClick() + { + this.payCardFirstClickSpecified = false; + } + + private bool ShouldSerializepayAileenFirstClick() + { + return this.payAileenFirstClickSpecified; + } + + private void ResetpayAileenFirstClick() + { + this.payAileenFirstClickSpecified = false; + } + + private bool ShouldSerializepayFirstAwardClick() + { + return this.payFirstAwardClickSpecified; + } + + private void ResetpayFirstAwardClick() + { + this.payFirstAwardClickSpecified = false; + } + + private bool ShouldSerializegrowthFundClick() + { + return this.growthFundClickSpecified; + } + + private void ResetgrowthFundClick() + { + this.growthFundClickSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayClickRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayClickRes.cs.meta new file mode 100644 index 00000000..6a24db3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayClickRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71c3960f6cc6075458270f316ef7a202 +timeCreated: 1611403936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayConsume.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayConsume.cs new file mode 100644 index 00000000..3c1fcdeb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayConsume.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayConsume")] + [Serializable] + public class PayConsume : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastconsumetime", DataFormat = DataFormat.TwosComplement)] + public uint lastconsumetime + { + get + { + return this._lastconsumetime ?? 0u; + } + set + { + this._lastconsumetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastconsumetimeSpecified + { + get + { + return this._lastconsumetime != null; + } + set + { + bool flag = value == (this._lastconsumetime == null); + if (flag) + { + this._lastconsumetime = (value ? new uint?(this.lastconsumetime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "consumescore", DataFormat = DataFormat.TwosComplement)] + public uint consumescore + { + get + { + return this._consumescore ?? 0u; + } + set + { + this._consumescore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consumescoreSpecified + { + get + { + return this._consumescore != null; + } + set + { + bool flag = value == (this._consumescore == null); + if (flag) + { + this._consumescore = (value ? new uint?(this.consumescore) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "maxconsumelv", DataFormat = DataFormat.TwosComplement)] + public uint maxconsumelv + { + get + { + return this._maxconsumelv ?? 0u; + } + set + { + this._maxconsumelv = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxconsumelvSpecified + { + get + { + return this._maxconsumelv != null; + } + set + { + bool flag = value == (this._maxconsumelv == null); + if (flag) + { + this._maxconsumelv = (value ? new uint?(this.maxconsumelv) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "thismonthcost", DataFormat = DataFormat.TwosComplement)] + public uint thismonthcost + { + get + { + return this._thismonthcost ?? 0u; + } + set + { + this._thismonthcost = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool thismonthcostSpecified + { + get + { + return this._thismonthcost != null; + } + set + { + bool flag = value == (this._thismonthcost == null); + if (flag) + { + this._thismonthcost = (value ? new uint?(this.thismonthcost) : null); + } + } + } + + [ProtoMember(5, Name = "setid", DataFormat = DataFormat.TwosComplement)] + public List setid + { + get + { + return this._setid; + } + } + + [ProtoMember(6, IsRequired = false, Name = "lastcheckdowntime", DataFormat = DataFormat.TwosComplement)] + public uint lastcheckdowntime + { + get + { + return this._lastcheckdowntime ?? 0u; + } + set + { + this._lastcheckdowntime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastcheckdowntimeSpecified + { + get + { + return this._lastcheckdowntime != null; + } + set + { + bool flag = value == (this._lastcheckdowntime == null); + if (flag) + { + this._lastcheckdowntime = (value ? new uint?(this.lastcheckdowntime) : null); + } + } + } + + [ProtoMember(7, Name = "activateid", DataFormat = DataFormat.TwosComplement)] + public List activateid + { + get + { + return this._activateid; + } + } + + private uint? _lastconsumetime; + + private uint? _consumescore; + + private uint? _maxconsumelv; + + private uint? _thismonthcost; + + private readonly List _setid = new List(); + + private uint? _lastcheckdowntime; + + private readonly List _activateid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializelastconsumetime() + { + return this.lastconsumetimeSpecified; + } + + private void Resetlastconsumetime() + { + this.lastconsumetimeSpecified = false; + } + + private bool ShouldSerializeconsumescore() + { + return this.consumescoreSpecified; + } + + private void Resetconsumescore() + { + this.consumescoreSpecified = false; + } + + private bool ShouldSerializemaxconsumelv() + { + return this.maxconsumelvSpecified; + } + + private void Resetmaxconsumelv() + { + this.maxconsumelvSpecified = false; + } + + private bool ShouldSerializethismonthcost() + { + return this.thismonthcostSpecified; + } + + private void Resetthismonthcost() + { + this.thismonthcostSpecified = false; + } + + private bool ShouldSerializelastcheckdowntime() + { + return this.lastcheckdowntimeSpecified; + } + + private void Resetlastcheckdowntime() + { + this.lastcheckdowntimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayConsume.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayConsume.cs.meta new file mode 100644 index 00000000..3e507108 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayConsume.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0f62b62ec8011942bd620516c76eae8 +timeCreated: 1611404590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayConsumeRebate.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayConsumeRebate.cs new file mode 100644 index 00000000..64c68ca2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayConsumeRebate.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayConsumeRebate")] + [Serializable] + public class PayConsumeRebate : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "consumenum", DataFormat = DataFormat.TwosComplement)] + public uint consumenum + { + get + { + return this._consumenum ?? 0u; + } + set + { + this._consumenum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consumenumSpecified + { + get + { + return this._consumenum != null; + } + set + { + bool flag = value == (this._consumenum == null); + if (flag) + { + this._consumenum = (value ? new uint?(this.consumenum) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastconsumetime", DataFormat = DataFormat.TwosComplement)] + public uint lastconsumetime + { + get + { + return this._lastconsumetime ?? 0u; + } + set + { + this._lastconsumetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastconsumetimeSpecified + { + get + { + return this._lastconsumetime != null; + } + set + { + bool flag = value == (this._lastconsumetime == null); + if (flag) + { + this._lastconsumetime = (value ? new uint?(this.lastconsumetime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rate", DataFormat = DataFormat.TwosComplement)] + public uint rate + { + get + { + return this._rate ?? 0u; + } + set + { + this._rate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rateSpecified + { + get + { + return this._rate != null; + } + set + { + bool flag = value == (this._rate == null); + if (flag) + { + this._rate = (value ? new uint?(this.rate) : null); + } + } + } + + private uint? _consumenum; + + private uint? _lastconsumetime; + + private uint? _rate; + + private IExtension extensionObject; + + private bool ShouldSerializeconsumenum() + { + return this.consumenumSpecified; + } + + private void Resetconsumenum() + { + this.consumenumSpecified = false; + } + + private bool ShouldSerializelastconsumetime() + { + return this.lastconsumetimeSpecified; + } + + private void Resetlastconsumetime() + { + this.lastconsumetimeSpecified = false; + } + + private bool ShouldSerializerate() + { + return this.rateSpecified; + } + + private void Resetrate() + { + this.rateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayConsumeRebate.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayConsumeRebate.cs.meta new file mode 100644 index 00000000..f2f48acc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayConsumeRebate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f49610e005e3bb4bb2d51dc134250cd +timeCreated: 1611403610 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardArg.cs new file mode 100644 index 00000000..5da5bcd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayFirstAwardArg")] + [Serializable] + public class PayFirstAwardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardArg.cs.meta new file mode 100644 index 00000000..f7780f7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84d5803cbe6200645b31c0924823617a +timeCreated: 1611404050 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardRes.cs new file mode 100644 index 00000000..1c0707ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayFirstAwardRes")] + [Serializable] + public class PayFirstAwardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardRes.cs.meta new file mode 100644 index 00000000..852e7f60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFirstAwardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 232c1fa061c0f5c4fb0a46b1a9516cfe +timeCreated: 1611403450 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemArg.cs new file mode 100644 index 00000000..6ac0b150 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemArg.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayFriendItemArg")] + [Serializable] + public class PayFriendItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "payparam", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayParameterInfo payparam + { + get + { + return this._payparam; + } + set + { + this._payparam = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "goodsid", DataFormat = DataFormat.TwosComplement)] + public uint goodsid + { + get + { + return this._goodsid ?? 0u; + } + set + { + this._goodsid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goodsidSpecified + { + get + { + return this._goodsid != null; + } + set + { + bool flag = value == (this._goodsid == null); + if (flag) + { + this._goodsid = (value ? new uint?(this.goodsid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "toroleid", DataFormat = DataFormat.TwosComplement)] + public ulong toroleid + { + get + { + return this._toroleid ?? 0UL; + } + set + { + this._toroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool toroleidSpecified + { + get + { + return this._toroleid != null; + } + set + { + bool flag = value == (this._toroleid == null); + if (flag) + { + this._toroleid = (value ? new ulong?(this.toroleid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "text", DataFormat = DataFormat.Default)] + public string text + { + get + { + return this._text ?? ""; + } + set + { + this._text = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool textSpecified + { + get + { + return this._text != null; + } + set + { + bool flag = value == (this._text == null); + if (flag) + { + this._text = (value ? this.text : null); + } + } + } + + private PayParameterInfo _payparam = null; + + private uint? _goodsid; + + private uint? _count; + + private ulong? _toroleid; + + private string _text; + + private IExtension extensionObject; + + private bool ShouldSerializegoodsid() + { + return this.goodsidSpecified; + } + + private void Resetgoodsid() + { + this.goodsidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializetoroleid() + { + return this.toroleidSpecified; + } + + private void Resettoroleid() + { + this.toroleidSpecified = false; + } + + private bool ShouldSerializetext() + { + return this.textSpecified; + } + + private void Resettext() + { + this.textSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemArg.cs.meta new file mode 100644 index 00000000..20b2d724 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 893a4e65506a7824aa91b6fd178aa897 +timeCreated: 1611404087 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs new file mode 100644 index 00000000..7fa6fee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayFriendItemRes")] + [Serializable] + public class PayFriendItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ret", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ret + { + get + { + return this._ret ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ret = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool retSpecified + { + get + { + return this._ret != null; + } + set + { + bool flag = value == (this._ret == null); + if (flag) + { + this._ret = (value ? new ErrorCode?(this.ret) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "url_param", DataFormat = DataFormat.Default)] + public string url_param + { + get + { + return this._url_param ?? ""; + } + set + { + this._url_param = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool url_paramSpecified + { + get + { + return this._url_param != null; + } + set + { + bool flag = value == (this._url_param == null); + if (flag) + { + this._url_param = (value ? this.url_param : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "billno", DataFormat = DataFormat.Default)] + public string billno + { + get + { + return this._billno ?? ""; + } + set + { + this._billno = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool billnoSpecified + { + get + { + return this._billno != null; + } + set + { + bool flag = value == (this._billno == null); + if (flag) + { + this._billno = (value ? this.billno : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "paramid", DataFormat = DataFormat.Default)] + public string paramid + { + get + { + return this._paramid ?? ""; + } + set + { + this._paramid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramidSpecified + { + get + { + return this._paramid != null; + } + set + { + bool flag = value == (this._paramid == null); + if (flag) + { + this._paramid = (value ? this.paramid : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "price", DataFormat = DataFormat.TwosComplement)] + public uint price + { + get + { + return this._price ?? 0u; + } + set + { + this._price = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool priceSpecified + { + get + { + return this._price != null; + } + set + { + bool flag = value == (this._price == null); + if (flag) + { + this._price = (value ? new uint?(this.price) : null); + } + } + } + + private ErrorCode? _ret; + + private string _token; + + private string _url_param; + + private string _billno; + + private string _paramid; + + private uint? _price; + + private IExtension extensionObject; + + private bool ShouldSerializeret() + { + return this.retSpecified; + } + + private void Resetret() + { + this.retSpecified = false; + } + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + private bool ShouldSerializeurl_param() + { + return this.url_paramSpecified; + } + + private void Reseturl_param() + { + this.url_paramSpecified = false; + } + + private bool ShouldSerializebillno() + { + return this.billnoSpecified; + } + + private void Resetbillno() + { + this.billnoSpecified = false; + } + + private bool ShouldSerializeparamid() + { + return this.paramidSpecified; + } + + private void Resetparamid() + { + this.paramidSpecified = false; + } + + private bool ShouldSerializeprice() + { + return this.priceSpecified; + } + + private void Resetprice() + { + this.priceSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs.meta new file mode 100644 index 00000000..d2e4c711 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayFriendItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db0b95451bf04da4b94d03fd3533dbc7 +timeCreated: 1611404651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayGiftIbStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftIbStatus.cs new file mode 100644 index 00000000..a5daaf36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftIbStatus.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayGiftIbStatus")] + public enum PayGiftIbStatus + { + [ProtoEnum(Name = "PayGiftIbStatus_CreateBill", Value = 1)] + PayGiftIbStatus_CreateBill = 1, + [ProtoEnum(Name = "PayGiftIbStatus_Fail", Value = 2)] + PayGiftIbStatus_Fail, + [ProtoEnum(Name = "PayGiftIbStatus_Success", Value = 3)] + PayGiftIbStatus_Success, + [ProtoEnum(Name = "PayGiftIbStatus_SuccessNotAddItem", Value = 4)] + PayGiftIbStatus_SuccessNotAddItem + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayGiftIbStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftIbStatus.cs.meta new file mode 100644 index 00000000..0476257d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftIbStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: afa559ec1942e4c41bca595aee9fa191 +timeCreated: 1611404346 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayGiftNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftNtfData.cs new file mode 100644 index 00000000..a96c4f84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftNtfData.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayGiftNtfData")] + [Serializable] + public class PayGiftNtfData : IExtensible + { + [ProtoMember(1, Name = "gift", DataFormat = DataFormat.Default)] + public List gift + { + get + { + return this._gift; + } + } + + [ProtoMember(2, IsRequired = false, Name = "isShowDetail", DataFormat = DataFormat.Default)] + public bool isShowDetail + { + get + { + return this._isShowDetail ?? false; + } + set + { + this._isShowDetail = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isShowDetailSpecified + { + get + { + return this._isShowDetail != null; + } + set + { + bool flag = value == (this._isShowDetail == null); + if (flag) + { + this._isShowDetail = (value ? new bool?(this.isShowDetail) : null); + } + } + } + + private readonly List _gift = new List(); + + private bool? _isShowDetail; + + private IExtension extensionObject; + + private bool ShouldSerializeisShowDetail() + { + return this.isShowDetailSpecified; + } + + private void ResetisShowDetail() + { + this.isShowDetailSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayGiftNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftNtfData.cs.meta new file mode 100644 index 00000000..0351293d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ddaa8e1e3d6ec4489f85ad6e2f2e88e +timeCreated: 1611403507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs new file mode 100644 index 00000000..2f109e78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayGiftRecord")] + [Serializable] + public class PayGiftRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "buycount", DataFormat = DataFormat.TwosComplement)] + public uint buycount + { + get + { + return this._buycount ?? 0u; + } + set + { + this._buycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buycountSpecified + { + get + { + return this._buycount != null; + } + set + { + bool flag = value == (this._buycount == null); + if (flag) + { + this._buycount = (value ? new uint?(this.buycount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastBuyTime", DataFormat = DataFormat.TwosComplement)] + public uint lastBuyTime + { + get + { + return this._lastBuyTime ?? 0u; + } + set + { + this._lastBuyTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastBuyTimeSpecified + { + get + { + return this._lastBuyTime != null; + } + set + { + bool flag = value == (this._lastBuyTime == null); + if (flag) + { + this._lastBuyTime = (value ? new uint?(this.lastBuyTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "reqTime", DataFormat = DataFormat.TwosComplement)] + public uint reqTime + { + get + { + return this._reqTime ?? 0u; + } + set + { + this._reqTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqTimeSpecified + { + get + { + return this._reqTime != null; + } + set + { + bool flag = value == (this._reqTime == null); + if (flag) + { + this._reqTime = (value ? new uint?(this.reqTime) : null); + } + } + } + + private uint? _id; + + private uint? _buycount; + + private uint? _lastBuyTime; + + private uint? _reqTime; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializebuycount() + { + return this.buycountSpecified; + } + + private void Resetbuycount() + { + this.buycountSpecified = false; + } + + private bool ShouldSerializelastBuyTime() + { + return this.lastBuyTimeSpecified; + } + + private void ResetlastBuyTime() + { + this.lastBuyTimeSpecified = false; + } + + private bool ShouldSerializereqTime() + { + return this.reqTimeSpecified; + } + + private void ResetreqTime() + { + this.reqTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs.meta new file mode 100644 index 00000000..942b9bc0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayGiftRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f89178dfd04e38b47aeea79bd953cbff +timeCreated: 1611404893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs new file mode 100644 index 00000000..790b5c63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayInfo")] + [Serializable] + public class PayInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "TotalPay", DataFormat = DataFormat.TwosComplement)] + public ulong TotalPay + { + get + { + return this._TotalPay ?? 0UL; + } + set + { + this._TotalPay = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TotalPaySpecified + { + get + { + return this._TotalPay != null; + } + set + { + bool flag = value == (this._TotalPay == null); + if (flag) + { + this._TotalPay = (value ? new ulong?(this.TotalPay) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "PayIDFlag", DataFormat = DataFormat.TwosComplement)] + public uint PayIDFlag + { + get + { + return this._PayIDFlag ?? 0u; + } + set + { + this._PayIDFlag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PayIDFlagSpecified + { + get + { + return this._PayIDFlag != null; + } + set + { + bool flag = value == (this._PayIDFlag == null); + if (flag) + { + this._PayIDFlag = (value ? new uint?(this.PayIDFlag) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "MonthCardLeftDay", DataFormat = DataFormat.TwosComplement)] + public uint MonthCardLeftDay + { + get + { + return this._MonthCardLeftDay ?? 0u; + } + set + { + this._MonthCardLeftDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool MonthCardLeftDaySpecified + { + get + { + return this._MonthCardLeftDay != null; + } + set + { + bool flag = value == (this._MonthCardLeftDay == null); + if (flag) + { + this._MonthCardLeftDay = (value ? new uint?(this.MonthCardLeftDay) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "LastMonthCardTimeStamp", DataFormat = DataFormat.TwosComplement)] + public uint LastMonthCardTimeStamp + { + get + { + return this._LastMonthCardTimeStamp ?? 0u; + } + set + { + this._LastMonthCardTimeStamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LastMonthCardTimeStampSpecified + { + get + { + return this._LastMonthCardTimeStamp != null; + } + set + { + bool flag = value == (this._LastMonthCardTimeStamp == null); + if (flag) + { + this._LastMonthCardTimeStamp = (value ? new uint?(this.LastMonthCardTimeStamp) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "vipLevel", DataFormat = DataFormat.TwosComplement)] + public uint vipLevel + { + get + { + return this._vipLevel ?? 0u; + } + set + { + this._vipLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipLevelSpecified + { + get + { + return this._vipLevel != null; + } + set + { + bool flag = value == (this._vipLevel == null); + if (flag) + { + this._vipLevel = (value ? new uint?(this.vipLevel) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "vippoint", DataFormat = DataFormat.TwosComplement)] + public uint vippoint + { + get + { + return this._vippoint ?? 0u; + } + set + { + this._vippoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vippointSpecified + { + get + { + return this._vippoint != null; + } + set + { + bool flag = value == (this._vippoint == null); + if (flag) + { + this._vippoint = (value ? new uint?(this.vippoint) : null); + } + } + } + + private ulong? _TotalPay; + + private uint? _PayIDFlag; + + private uint? _MonthCardLeftDay; + + private uint? _LastMonthCardTimeStamp; + + private uint? _vipLevel; + + private uint? _vippoint; + + private IExtension extensionObject; + + private bool ShouldSerializeTotalPay() + { + return this.TotalPaySpecified; + } + + private void ResetTotalPay() + { + this.TotalPaySpecified = false; + } + + private bool ShouldSerializePayIDFlag() + { + return this.PayIDFlagSpecified; + } + + private void ResetPayIDFlag() + { + this.PayIDFlagSpecified = false; + } + + private bool ShouldSerializeMonthCardLeftDay() + { + return this.MonthCardLeftDaySpecified; + } + + private void ResetMonthCardLeftDay() + { + this.MonthCardLeftDaySpecified = false; + } + + private bool ShouldSerializeLastMonthCardTimeStamp() + { + return this.LastMonthCardTimeStampSpecified; + } + + private void ResetLastMonthCardTimeStamp() + { + this.LastMonthCardTimeStampSpecified = false; + } + + private bool ShouldSerializevipLevel() + { + return this.vipLevelSpecified; + } + + private void ResetvipLevel() + { + this.vipLevelSpecified = false; + } + + private bool ShouldSerializevippoint() + { + return this.vippointSpecified; + } + + private void Resetvippoint() + { + this.vippointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs.meta new file mode 100644 index 00000000..6190f7a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff33f43e6b5a45146939e94f48df31ae +timeCreated: 1611404946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs new file mode 100644 index 00000000..6258f3cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayMember")] + [Serializable] + public class PayMember : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ID", DataFormat = DataFormat.TwosComplement)] + public int ID + { + get + { + return this._ID ?? 0; + } + set + { + this._ID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IDSpecified + { + get + { + return this._ID != null; + } + set + { + bool flag = value == (this._ID == null); + if (flag) + { + this._ID = (value ? new int?(this.ID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ExpireTime", DataFormat = DataFormat.TwosComplement)] + public int ExpireTime + { + get + { + return this._ExpireTime ?? 0; + } + set + { + this._ExpireTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ExpireTimeSpecified + { + get + { + return this._ExpireTime != null; + } + set + { + bool flag = value == (this._ExpireTime == null); + if (flag) + { + this._ExpireTime = (value ? new int?(this.ExpireTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isClick", DataFormat = DataFormat.Default)] + public bool isClick + { + get + { + return this._isClick ?? false; + } + set + { + this._isClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isClickSpecified + { + get + { + return this._isClick != null; + } + set + { + bool flag = value == (this._isClick == null); + if (flag) + { + this._isClick = (value ? new bool?(this.isClick) : null); + } + } + } + + private int? _ID; + + private int? _ExpireTime; + + private bool? _isClick; + + private IExtension extensionObject; + + private bool ShouldSerializeID() + { + return this.IDSpecified; + } + + private void ResetID() + { + this.IDSpecified = false; + } + + private bool ShouldSerializeExpireTime() + { + return this.ExpireTimeSpecified; + } + + private void ResetExpireTime() + { + this.ExpireTimeSpecified = false; + } + + private bool ShouldSerializeisClick() + { + return this.isClickSpecified; + } + + private void ResetisClick() + { + this.isClickSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs.meta new file mode 100644 index 00000000..9b6301c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48a0db99dfc2f6f4f9dc37e3d4a3e75c +timeCreated: 1611403658 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayMemberPrivilege.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayMemberPrivilege.cs new file mode 100644 index 00000000..ee8dd2c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayMemberPrivilege.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayMemberPrivilege")] + [Serializable] + public class PayMemberPrivilege : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "usedReviveCount", DataFormat = DataFormat.TwosComplement)] + public int usedReviveCount + { + get + { + return this._usedReviveCount ?? 0; + } + set + { + this._usedReviveCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedReviveCountSpecified + { + get + { + return this._usedReviveCount != null; + } + set + { + bool flag = value == (this._usedReviveCount == null); + if (flag) + { + this._usedReviveCount = (value ? new int?(this.usedReviveCount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "usedChatCount", DataFormat = DataFormat.TwosComplement)] + public int usedChatCount + { + get + { + return this._usedChatCount ?? 0; + } + set + { + this._usedChatCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedChatCountSpecified + { + get + { + return this._usedChatCount != null; + } + set + { + bool flag = value == (this._usedChatCount == null); + if (flag) + { + this._usedChatCount = (value ? new int?(this.usedChatCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "usedAbyssCount", DataFormat = DataFormat.TwosComplement)] + public int usedAbyssCount + { + get + { + return this._usedAbyssCount ?? 0; + } + set + { + this._usedAbyssCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedAbyssCountSpecified + { + get + { + return this._usedAbyssCount != null; + } + set + { + bool flag = value == (this._usedAbyssCount == null); + if (flag) + { + this._usedAbyssCount = (value ? new int?(this.usedAbyssCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "usedBossRushCount", DataFormat = DataFormat.TwosComplement)] + public int usedBossRushCount + { + get + { + return this._usedBossRushCount ?? 0; + } + set + { + this._usedBossRushCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedBossRushCountSpecified + { + get + { + return this._usedBossRushCount != null; + } + set + { + bool flag = value == (this._usedBossRushCount == null); + if (flag) + { + this._usedBossRushCount = (value ? new int?(this.usedBossRushCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "usedBuyGreenAgateCount", DataFormat = DataFormat.TwosComplement)] + public int usedBuyGreenAgateCount + { + get + { + return this._usedBuyGreenAgateCount ?? 0; + } + set + { + this._usedBuyGreenAgateCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedBuyGreenAgateCountSpecified + { + get + { + return this._usedBuyGreenAgateCount != null; + } + set + { + bool flag = value == (this._usedBuyGreenAgateCount == null); + if (flag) + { + this._usedBuyGreenAgateCount = (value ? new int?(this.usedBuyGreenAgateCount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "usedSuperRiskCount", DataFormat = DataFormat.TwosComplement)] + public int usedSuperRiskCount + { + get + { + return this._usedSuperRiskCount ?? 0; + } + set + { + this._usedSuperRiskCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedSuperRiskCountSpecified + { + get + { + return this._usedSuperRiskCount != null; + } + set + { + bool flag = value == (this._usedSuperRiskCount == null); + if (flag) + { + this._usedSuperRiskCount = (value ? new int?(this.usedSuperRiskCount) : null); + } + } + } + + [ProtoMember(7, Name = "usedPrivilegeShop", DataFormat = DataFormat.Default)] + public List usedPrivilegeShop + { + get + { + return this._usedPrivilegeShop; + } + } + + [ProtoMember(8, IsRequired = false, Name = "usedRefreshShopCount", DataFormat = DataFormat.TwosComplement)] + public int usedRefreshShopCount + { + get + { + return this._usedRefreshShopCount ?? 0; + } + set + { + this._usedRefreshShopCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedRefreshShopCountSpecified + { + get + { + return this._usedRefreshShopCount != null; + } + set + { + bool flag = value == (this._usedRefreshShopCount == null); + if (flag) + { + this._usedRefreshShopCount = (value ? new int?(this.usedRefreshShopCount) : null); + } + } + } + + private int? _usedReviveCount; + + private int? _usedChatCount; + + private int? _usedAbyssCount; + + private int? _usedBossRushCount; + + private int? _usedBuyGreenAgateCount; + + private int? _usedSuperRiskCount; + + private readonly List _usedPrivilegeShop = new List(); + + private int? _usedRefreshShopCount; + + private IExtension extensionObject; + + private bool ShouldSerializeusedReviveCount() + { + return this.usedReviveCountSpecified; + } + + private void ResetusedReviveCount() + { + this.usedReviveCountSpecified = false; + } + + private bool ShouldSerializeusedChatCount() + { + return this.usedChatCountSpecified; + } + + private void ResetusedChatCount() + { + this.usedChatCountSpecified = false; + } + + private bool ShouldSerializeusedAbyssCount() + { + return this.usedAbyssCountSpecified; + } + + private void ResetusedAbyssCount() + { + this.usedAbyssCountSpecified = false; + } + + private bool ShouldSerializeusedBossRushCount() + { + return this.usedBossRushCountSpecified; + } + + private void ResetusedBossRushCount() + { + this.usedBossRushCountSpecified = false; + } + + private bool ShouldSerializeusedBuyGreenAgateCount() + { + return this.usedBuyGreenAgateCountSpecified; + } + + private void ResetusedBuyGreenAgateCount() + { + this.usedBuyGreenAgateCountSpecified = false; + } + + private bool ShouldSerializeusedSuperRiskCount() + { + return this.usedSuperRiskCountSpecified; + } + + private void ResetusedSuperRiskCount() + { + this.usedSuperRiskCountSpecified = false; + } + + private bool ShouldSerializeusedRefreshShopCount() + { + return this.usedRefreshShopCountSpecified; + } + + private void ResetusedRefreshShopCount() + { + this.usedRefreshShopCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayMemberPrivilege.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayMemberPrivilege.cs.meta new file mode 100644 index 00000000..899dffab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayMemberPrivilege.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bfe3ff9c1645144aa68a678279476ff +timeCreated: 1611403689 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayMemberRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayMemberRecord.cs new file mode 100644 index 00000000..45540019 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayMemberRecord.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayMemberRecord")] + [Serializable] + public class PayMemberRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ID", DataFormat = DataFormat.TwosComplement)] + public int ID + { + get + { + return this._ID ?? 0; + } + set + { + this._ID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IDSpecified + { + get + { + return this._ID != null; + } + set + { + bool flag = value == (this._ID == null); + if (flag) + { + this._ID = (value ? new int?(this.ID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ExpireTime", DataFormat = DataFormat.TwosComplement)] + public int ExpireTime + { + get + { + return this._ExpireTime ?? 0; + } + set + { + this._ExpireTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ExpireTimeSpecified + { + get + { + return this._ExpireTime != null; + } + set + { + bool flag = value == (this._ExpireTime == null); + if (flag) + { + this._ExpireTime = (value ? new int?(this.ExpireTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isClick", DataFormat = DataFormat.Default)] + public bool isClick + { + get + { + return this._isClick ?? false; + } + set + { + this._isClick = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isClickSpecified + { + get + { + return this._isClick != null; + } + set + { + bool flag = value == (this._isClick == null); + if (flag) + { + this._isClick = (value ? new bool?(this.isClick) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "buttonStatus", DataFormat = DataFormat.TwosComplement)] + public int buttonStatus + { + get + { + return this._buttonStatus ?? 0; + } + set + { + this._buttonStatus = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buttonStatusSpecified + { + get + { + return this._buttonStatus != null; + } + set + { + bool flag = value == (this._buttonStatus == null); + if (flag) + { + this._buttonStatus = (value ? new int?(this.buttonStatus) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "lastDragonFlowerTime", DataFormat = DataFormat.TwosComplement)] + public int lastDragonFlowerTime + { + get + { + return this._lastDragonFlowerTime ?? 0; + } + set + { + this._lastDragonFlowerTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastDragonFlowerTimeSpecified + { + get + { + return this._lastDragonFlowerTime != null; + } + set + { + bool flag = value == (this._lastDragonFlowerTime == null); + if (flag) + { + this._lastDragonFlowerTime = (value ? new int?(this.lastDragonFlowerTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "isNotifyExpire", DataFormat = DataFormat.Default)] + public bool isNotifyExpire + { + get + { + return this._isNotifyExpire ?? false; + } + set + { + this._isNotifyExpire = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isNotifyExpireSpecified + { + get + { + return this._isNotifyExpire != null; + } + set + { + bool flag = value == (this._isNotifyExpire == null); + if (flag) + { + this._isNotifyExpire = (value ? new bool?(this.isNotifyExpire) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "begintime", DataFormat = DataFormat.TwosComplement)] + public int begintime + { + get + { + return this._begintime ?? 0; + } + set + { + this._begintime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool begintimeSpecified + { + get + { + return this._begintime != null; + } + set + { + bool flag = value == (this._begintime == null); + if (flag) + { + this._begintime = (value ? new int?(this.begintime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "isNotifyExpireSoon", DataFormat = DataFormat.Default)] + public bool isNotifyExpireSoon + { + get + { + return this._isNotifyExpireSoon ?? false; + } + set + { + this._isNotifyExpireSoon = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isNotifyExpireSoonSpecified + { + get + { + return this._isNotifyExpireSoon != null; + } + set + { + bool flag = value == (this._isNotifyExpireSoon == null); + if (flag) + { + this._isNotifyExpireSoon = (value ? new bool?(this.isNotifyExpireSoon) : null); + } + } + } + + private int? _ID; + + private int? _ExpireTime; + + private bool? _isClick; + + private int? _buttonStatus; + + private int? _lastDragonFlowerTime; + + private bool? _isNotifyExpire; + + private int? _begintime; + + private bool? _isNotifyExpireSoon; + + private IExtension extensionObject; + + private bool ShouldSerializeID() + { + return this.IDSpecified; + } + + private void ResetID() + { + this.IDSpecified = false; + } + + private bool ShouldSerializeExpireTime() + { + return this.ExpireTimeSpecified; + } + + private void ResetExpireTime() + { + this.ExpireTimeSpecified = false; + } + + private bool ShouldSerializeisClick() + { + return this.isClickSpecified; + } + + private void ResetisClick() + { + this.isClickSpecified = false; + } + + private bool ShouldSerializebuttonStatus() + { + return this.buttonStatusSpecified; + } + + private void ResetbuttonStatus() + { + this.buttonStatusSpecified = false; + } + + private bool ShouldSerializelastDragonFlowerTime() + { + return this.lastDragonFlowerTimeSpecified; + } + + private void ResetlastDragonFlowerTime() + { + this.lastDragonFlowerTimeSpecified = false; + } + + private bool ShouldSerializeisNotifyExpire() + { + return this.isNotifyExpireSpecified; + } + + private void ResetisNotifyExpire() + { + this.isNotifyExpireSpecified = false; + } + + private bool ShouldSerializebegintime() + { + return this.begintimeSpecified; + } + + private void Resetbegintime() + { + this.begintimeSpecified = false; + } + + private bool ShouldSerializeisNotifyExpireSoon() + { + return this.isNotifyExpireSoonSpecified; + } + + private void ResetisNotifyExpireSoon() + { + this.isNotifyExpireSoonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayMemberRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayMemberRecord.cs.meta new file mode 100644 index 00000000..e263bbe4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayMemberRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1425534f805cd1a4a93d10e9eeda2659 +timeCreated: 1611403252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyArg.cs new file mode 100644 index 00000000..42315e51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyArg.cs @@ -0,0 +1,336 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayNotifyArg")] + [Serializable] + public class PayNotifyArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "p", DataFormat = DataFormat.Default)] + public string p + { + get + { + return this._p ?? ""; + } + set + { + this._p = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pSpecified + { + get + { + return this._p != null; + } + set + { + bool flag = value == (this._p == null); + if (flag) + { + this._p = (value ? this.p : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "v", DataFormat = DataFormat.Default)] + public string v + { + get + { + return this._v ?? ""; + } + set + { + this._v = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vSpecified + { + get + { + return this._v != null; + } + set + { + bool flag = value == (this._v == null); + if (flag) + { + this._v = (value ? this.v : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ext", DataFormat = DataFormat.Default)] + public string ext + { + get + { + return this._ext ?? ""; + } + set + { + this._ext = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extSpecified + { + get + { + return this._ext != null; + } + set + { + bool flag = value == (this._ext == null); + if (flag) + { + this._ext = (value ? this.ext : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public PayParamType type + { + get + { + return this._type ?? PayParamType.PAY_PARAM_NONE; + } + set + { + this._type = new PayParamType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new PayParamType?(this.type) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "paramid", DataFormat = DataFormat.Default)] + public string paramid + { + get + { + return this._paramid ?? ""; + } + set + { + this._paramid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramidSpecified + { + get + { + return this._paramid != null; + } + set + { + bool flag = value == (this._paramid == null); + if (flag) + { + this._paramid = (value ? this.paramid : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "amount", DataFormat = DataFormat.TwosComplement)] + public int amount + { + get + { + return this._amount ?? 0; + } + set + { + this._amount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool amountSpecified + { + get + { + return this._amount != null; + } + set + { + bool flag = value == (this._amount == null); + if (flag) + { + this._amount = (value ? new int?(this.amount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayParameterInfo data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public int count + { + get + { + return this._count ?? 0; + } + set + { + this._count = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new int?(this.count) : null); + } + } + } + + private string _p; + + private string _v; + + private string _ext; + + private PayParamType? _type; + + private string _paramid; + + private int? _amount; + + private PayParameterInfo _data = null; + + private int? _count; + + private IExtension extensionObject; + + private bool ShouldSerializep() + { + return this.pSpecified; + } + + private void Resetp() + { + this.pSpecified = false; + } + + private bool ShouldSerializev() + { + return this.vSpecified; + } + + private void Resetv() + { + this.vSpecified = false; + } + + private bool ShouldSerializeext() + { + return this.extSpecified; + } + + private void Resetext() + { + this.extSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeparamid() + { + return this.paramidSpecified; + } + + private void Resetparamid() + { + this.paramidSpecified = false; + } + + private bool ShouldSerializeamount() + { + return this.amountSpecified; + } + + private void Resetamount() + { + this.amountSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyArg.cs.meta new file mode 100644 index 00000000..6772d3c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4333cf88f7f5c67469864bdcd0fa8d0b +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyRes.cs new file mode 100644 index 00000000..20148aca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayNotifyRes")] + [Serializable] + public class PayNotifyRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "result", DataFormat = DataFormat.Default)] + public string result + { + get + { + return this._result ?? ""; + } + set + { + this._result = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? this.result : null); + } + } + } + + private ErrorCode? _errcode; + + private string _result; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyRes.cs.meta new file mode 100644 index 00000000..f3b10f69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayNotifyRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac22663e12ef7c1449dd14c108ede74f +timeCreated: 1611404329 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayParamType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayParamType.cs new file mode 100644 index 00000000..bc5586c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayParamType.cs @@ -0,0 +1,24 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayParamType")] + public enum PayParamType + { + [ProtoEnum(Name = "PAY_PARAM_NONE", Value = 0)] + PAY_PARAM_NONE, + [ProtoEnum(Name = "PAY_PARAM_LIST", Value = 1)] + PAY_PARAM_LIST, + [ProtoEnum(Name = "PAY_PARAM_AILEEN", Value = 2)] + PAY_PARAM_AILEEN, + [ProtoEnum(Name = "PAY_PARAM_CARD", Value = 3)] + PAY_PARAM_CARD, + [ProtoEnum(Name = "PAY_PARAM_FIRSTAWARD", Value = 4)] + PAY_PARAM_FIRSTAWARD, + [ProtoEnum(Name = "PAY_PARAM_GROWTH_FUND", Value = 5)] + PAY_PARAM_GROWTH_FUND, + [ProtoEnum(Name = "PAY_PARAM_MEMBER", Value = 6)] + PAY_PARAM_MEMBER + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayParamType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayParamType.cs.meta new file mode 100644 index 00000000..a633dfe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayParamType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae9a782b58adf3e4f88f2447a6a1c56a +timeCreated: 1611404340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayParameterInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayParameterInfo.cs new file mode 100644 index 00000000..746451ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayParameterInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayParameterInfo")] + [Serializable] + public class PayParameterInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openkey", DataFormat = DataFormat.Default)] + public string openkey + { + get + { + return this._openkey ?? ""; + } + set + { + this._openkey = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openkeySpecified + { + get + { + return this._openkey != null; + } + set + { + bool flag = value == (this._openkey == null); + if (flag) + { + this._openkey = (value ? this.openkey : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sessionId", DataFormat = DataFormat.Default)] + public string sessionId + { + get + { + return this._sessionId ?? ""; + } + set + { + this._sessionId = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sessionIdSpecified + { + get + { + return this._sessionId != null; + } + set + { + bool flag = value == (this._sessionId == null); + if (flag) + { + this._sessionId = (value ? this.sessionId : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "sessionType", DataFormat = DataFormat.Default)] + public string sessionType + { + get + { + return this._sessionType ?? ""; + } + set + { + this._sessionType = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sessionTypeSpecified + { + get + { + return this._sessionType != null; + } + set + { + bool flag = value == (this._sessionType == null); + if (flag) + { + this._sessionType = (value ? this.sessionType : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "pf", DataFormat = DataFormat.Default)] + public string pf + { + get + { + return this._pf ?? ""; + } + set + { + this._pf = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pfSpecified + { + get + { + return this._pf != null; + } + set + { + bool flag = value == (this._pf == null); + if (flag) + { + this._pf = (value ? this.pf : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "pfKey", DataFormat = DataFormat.Default)] + public string pfKey + { + get + { + return this._pfKey ?? ""; + } + set + { + this._pfKey = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pfKeySpecified + { + get + { + return this._pfKey != null; + } + set + { + bool flag = value == (this._pfKey == null); + if (flag) + { + this._pfKey = (value ? this.pfKey : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "appid", DataFormat = DataFormat.Default)] + public string appid + { + get + { + return this._appid ?? ""; + } + set + { + this._appid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool appidSpecified + { + get + { + return this._appid != null; + } + set + { + bool flag = value == (this._appid == null); + if (flag) + { + this._appid = (value ? this.appid : null); + } + } + } + + private string _openkey; + + private string _sessionId; + + private string _sessionType; + + private string _pf; + + private string _pfKey; + + private string _appid; + + private IExtension extensionObject; + + private bool ShouldSerializeopenkey() + { + return this.openkeySpecified; + } + + private void Resetopenkey() + { + this.openkeySpecified = false; + } + + private bool ShouldSerializesessionId() + { + return this.sessionIdSpecified; + } + + private void ResetsessionId() + { + this.sessionIdSpecified = false; + } + + private bool ShouldSerializesessionType() + { + return this.sessionTypeSpecified; + } + + private void ResetsessionType() + { + this.sessionTypeSpecified = false; + } + + private bool ShouldSerializepf() + { + return this.pfSpecified; + } + + private void Resetpf() + { + this.pfSpecified = false; + } + + private bool ShouldSerializepfKey() + { + return this.pfKeySpecified; + } + + private void ResetpfKey() + { + this.pfKeySpecified = false; + } + + private bool ShouldSerializeappid() + { + return this.appidSpecified; + } + + private void Resetappid() + { + this.appidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayParameterInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayParameterInfo.cs.meta new file mode 100644 index 00000000..984cd1c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayParameterInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb06d8494f7f7444e882e10c02e916e1 +timeCreated: 1611404782 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayPrivilegeShop.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayPrivilegeShop.cs new file mode 100644 index 00000000..85a7dca4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayPrivilegeShop.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayPrivilegeShop")] + [Serializable] + public class PayPrivilegeShop : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "goodsID", DataFormat = DataFormat.TwosComplement)] + public int goodsID + { + get + { + return this._goodsID ?? 0; + } + set + { + this._goodsID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goodsIDSpecified + { + get + { + return this._goodsID != null; + } + set + { + bool flag = value == (this._goodsID == null); + if (flag) + { + this._goodsID = (value ? new int?(this.goodsID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "totalCount", DataFormat = DataFormat.TwosComplement)] + public int totalCount + { + get + { + return this._totalCount ?? 0; + } + set + { + this._totalCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalCountSpecified + { + get + { + return this._totalCount != null; + } + set + { + bool flag = value == (this._totalCount == null); + if (flag) + { + this._totalCount = (value ? new int?(this.totalCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "usedCount", DataFormat = DataFormat.TwosComplement)] + public int usedCount + { + get + { + return this._usedCount ?? 0; + } + set + { + this._usedCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usedCountSpecified + { + get + { + return this._usedCount != null; + } + set + { + bool flag = value == (this._usedCount == null); + if (flag) + { + this._usedCount = (value ? new int?(this.usedCount) : null); + } + } + } + + private int? _goodsID; + + private int? _totalCount; + + private int? _usedCount; + + private IExtension extensionObject; + + private bool ShouldSerializegoodsID() + { + return this.goodsIDSpecified; + } + + private void ResetgoodsID() + { + this.goodsIDSpecified = false; + } + + private bool ShouldSerializetotalCount() + { + return this.totalCountSpecified; + } + + private void ResettotalCount() + { + this.totalCountSpecified = false; + } + + private bool ShouldSerializeusedCount() + { + return this.usedCountSpecified; + } + + private void ResetusedCount() + { + this.usedCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayPrivilegeShop.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayPrivilegeShop.cs.meta new file mode 100644 index 00000000..5ae3541e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayPrivilegeShop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9c17b92a1032054abd6a712640cc463 +timeCreated: 1611404901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayScoreData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayScoreData.cs new file mode 100644 index 00000000..a4f873a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayScoreData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayScoreData")] + [Serializable] + public class PayScoreData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayScoreData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayScoreData.cs.meta new file mode 100644 index 00000000..298a9955 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayScoreData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fc064d521dbe7847888d13af16b41c9 +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayV2Record.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayV2Record.cs new file mode 100644 index 00000000..a277593a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayV2Record.cs @@ -0,0 +1,720 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayV2Record")] + [Serializable] + public class PayV2Record : IExtensible + { + [ProtoMember(1, Name = "pay", DataFormat = DataFormat.Default)] + public List pay + { + get + { + return this._pay; + } + } + + [ProtoMember(2, Name = "aileen", DataFormat = DataFormat.Default)] + public List aileen + { + get + { + return this._aileen; + } + } + + [ProtoMember(3, IsRequired = false, Name = "vipPoint", DataFormat = DataFormat.TwosComplement)] + public uint vipPoint + { + get + { + return this._vipPoint ?? 0u; + } + set + { + this._vipPoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipPointSpecified + { + get + { + return this._vipPoint != null; + } + set + { + bool flag = value == (this._vipPoint == null); + if (flag) + { + this._vipPoint = (value ? new uint?(this.vipPoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "vipLevel", DataFormat = DataFormat.TwosComplement)] + public uint vipLevel + { + get + { + return this._vipLevel ?? 0u; + } + set + { + this._vipLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipLevelSpecified + { + get + { + return this._vipLevel != null; + } + set + { + bool flag = value == (this._vipLevel == null); + if (flag) + { + this._vipLevel = (value ? new uint?(this.vipLevel) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "totalPay", DataFormat = DataFormat.TwosComplement)] + public uint totalPay + { + get + { + return this._totalPay ?? 0u; + } + set + { + this._totalPay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalPaySpecified + { + get + { + return this._totalPay != null; + } + set + { + bool flag = value == (this._totalPay == null); + if (flag) + { + this._totalPay = (value ? new uint?(this.totalPay) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "payCardButtonStatus", DataFormat = DataFormat.TwosComplement)] + public uint payCardButtonStatus + { + get + { + return this._payCardButtonStatus ?? 0u; + } + set + { + this._payCardButtonStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payCardButtonStatusSpecified + { + get + { + return this._payCardButtonStatus != null; + } + set + { + bool flag = value == (this._payCardButtonStatus == null); + if (flag) + { + this._payCardButtonStatus = (value ? new uint?(this.payCardButtonStatus) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "payAileenButtonStatus", DataFormat = DataFormat.TwosComplement)] + public uint payAileenButtonStatus + { + get + { + return this._payAileenButtonStatus ?? 0u; + } + set + { + this._payAileenButtonStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payAileenButtonStatusSpecified + { + get + { + return this._payAileenButtonStatus != null; + } + set + { + bool flag = value == (this._payAileenButtonStatus == null); + if (flag) + { + this._payAileenButtonStatus = (value ? new uint?(this.payAileenButtonStatus) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "lastFirstPayAwardTime", DataFormat = DataFormat.TwosComplement)] + public uint lastFirstPayAwardTime + { + get + { + return this._lastFirstPayAwardTime ?? 0u; + } + set + { + this._lastFirstPayAwardTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastFirstPayAwardTimeSpecified + { + get + { + return this._lastFirstPayAwardTime != null; + } + set + { + bool flag = value == (this._lastFirstPayAwardTime == null); + if (flag) + { + this._lastFirstPayAwardTime = (value ? new uint?(this.lastFirstPayAwardTime) : null); + } + } + } + + [ProtoMember(9, Name = "growthFundLevelInfo", DataFormat = DataFormat.Default)] + public List growthFundLevelInfo + { + get + { + return this._growthFundLevelInfo; + } + } + + [ProtoMember(10, Name = "growthFundLoginInfo", DataFormat = DataFormat.Default)] + public List growthFundLoginInfo + { + get + { + return this._growthFundLoginInfo; + } + } + + [ProtoMember(11, Name = "vipLevelGiftInfo", DataFormat = DataFormat.Default)] + public List vipLevelGiftInfo + { + get + { + return this._vipLevelGiftInfo; + } + } + + [ProtoMember(12, IsRequired = false, Name = "payFirstAwardButtonStatus", DataFormat = DataFormat.TwosComplement)] + public uint payFirstAwardButtonStatus + { + get + { + return this._payFirstAwardButtonStatus ?? 0u; + } + set + { + this._payFirstAwardButtonStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool payFirstAwardButtonStatusSpecified + { + get + { + return this._payFirstAwardButtonStatus != null; + } + set + { + bool flag = value == (this._payFirstAwardButtonStatus == null); + if (flag) + { + this._payFirstAwardButtonStatus = (value ? new uint?(this.payFirstAwardButtonStatus) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "growthFundButtonStatus", DataFormat = DataFormat.TwosComplement)] + public uint growthFundButtonStatus + { + get + { + return this._growthFundButtonStatus ?? 0u; + } + set + { + this._growthFundButtonStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool growthFundButtonStatusSpecified + { + get + { + return this._growthFundButtonStatus != null; + } + set + { + bool flag = value == (this._growthFundButtonStatus == null); + if (flag) + { + this._growthFundButtonStatus = (value ? new uint?(this.growthFundButtonStatus) : null); + } + } + } + + [ProtoMember(14, Name = "payMemberInfo", DataFormat = DataFormat.Default)] + public List payMemberInfo + { + get + { + return this._payMemberInfo; + } + } + + [ProtoMember(15, IsRequired = false, Name = "privilege", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayMemberPrivilege privilege + { + get + { + return this._privilege; + } + set + { + this._privilege = value; + } + } + + [ProtoMember(16, IsRequired = false, Name = "lastUpdateDay", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateDay + { + get + { + return this._lastUpdateDay ?? 0u; + } + set + { + this._lastUpdateDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateDaySpecified + { + get + { + return this._lastUpdateDay != null; + } + set + { + bool flag = value == (this._lastUpdateDay == null); + if (flag) + { + this._lastUpdateDay = (value ? new uint?(this.lastUpdateDay) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "isEverPay", DataFormat = DataFormat.Default)] + public bool isEverPay + { + get + { + return this._isEverPay ?? false; + } + set + { + this._isEverPay = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isEverPaySpecified + { + get + { + return this._isEverPay != null; + } + set + { + bool flag = value == (this._isEverPay == null); + if (flag) + { + this._isEverPay = (value ? new bool?(this.isEverPay) : null); + } + } + } + + [ProtoMember(18, Name = "consumelist", DataFormat = DataFormat.Default)] + public List consumelist + { + get + { + return this._consumelist; + } + } + + [ProtoMember(19, IsRequired = false, Name = "weekcard", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PaytssInfo weekcard + { + get + { + return this._weekcard; + } + set + { + this._weekcard = value; + } + } + + [ProtoMember(20, IsRequired = false, Name = "monthcard", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PaytssInfo monthcard + { + get + { + return this._monthcard; + } + set + { + this._monthcard = value; + } + } + + [ProtoMember(21, IsRequired = false, Name = "growthfund", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PaytssInfo growthfund + { + get + { + return this._growthfund; + } + set + { + this._growthfund = value; + } + } + + [ProtoMember(22, IsRequired = false, Name = "rewardTime", DataFormat = DataFormat.TwosComplement)] + public uint rewardTime + { + get + { + return this._rewardTime ?? 0u; + } + set + { + this._rewardTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardTimeSpecified + { + get + { + return this._rewardTime != null; + } + set + { + bool flag = value == (this._rewardTime == null); + if (flag) + { + this._rewardTime = (value ? new uint?(this.rewardTime) : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "growthfundnotifytime", DataFormat = DataFormat.TwosComplement)] + public uint growthfundnotifytime + { + get + { + return this._growthfundnotifytime ?? 0u; + } + set + { + this._growthfundnotifytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool growthfundnotifytimeSpecified + { + get + { + return this._growthfundnotifytime != null; + } + set + { + bool flag = value == (this._growthfundnotifytime == null); + if (flag) + { + this._growthfundnotifytime = (value ? new uint?(this.growthfundnotifytime) : null); + } + } + } + + [ProtoMember(24, IsRequired = false, Name = "consume", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayConsume consume + { + get + { + return this._consume; + } + set + { + this._consume = value; + } + } + + [ProtoMember(25, IsRequired = false, Name = "rebate", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayConsumeRebate rebate + { + get + { + return this._rebate; + } + set + { + this._rebate = value; + } + } + + [ProtoMember(26, Name = "paygift", DataFormat = DataFormat.Default)] + public List paygift + { + get + { + return this._paygift; + } + } + + private readonly List _pay = new List(); + + private readonly List _aileen = new List(); + + private uint? _vipPoint; + + private uint? _vipLevel; + + private uint? _totalPay; + + private uint? _payCardButtonStatus; + + private uint? _payAileenButtonStatus; + + private uint? _lastFirstPayAwardTime; + + private readonly List _growthFundLevelInfo = new List(); + + private readonly List _growthFundLoginInfo = new List(); + + private readonly List _vipLevelGiftInfo = new List(); + + private uint? _payFirstAwardButtonStatus; + + private uint? _growthFundButtonStatus; + + private readonly List _payMemberInfo = new List(); + + private PayMemberPrivilege _privilege = null; + + private uint? _lastUpdateDay; + + private bool? _isEverPay; + + private readonly List _consumelist = new List(); + + private PaytssInfo _weekcard = null; + + private PaytssInfo _monthcard = null; + + private PaytssInfo _growthfund = null; + + private uint? _rewardTime; + + private uint? _growthfundnotifytime; + + private PayConsume _consume = null; + + private PayConsumeRebate _rebate = null; + + private readonly List _paygift = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializevipPoint() + { + return this.vipPointSpecified; + } + + private void ResetvipPoint() + { + this.vipPointSpecified = false; + } + + private bool ShouldSerializevipLevel() + { + return this.vipLevelSpecified; + } + + private void ResetvipLevel() + { + this.vipLevelSpecified = false; + } + + private bool ShouldSerializetotalPay() + { + return this.totalPaySpecified; + } + + private void ResettotalPay() + { + this.totalPaySpecified = false; + } + + private bool ShouldSerializepayCardButtonStatus() + { + return this.payCardButtonStatusSpecified; + } + + private void ResetpayCardButtonStatus() + { + this.payCardButtonStatusSpecified = false; + } + + private bool ShouldSerializepayAileenButtonStatus() + { + return this.payAileenButtonStatusSpecified; + } + + private void ResetpayAileenButtonStatus() + { + this.payAileenButtonStatusSpecified = false; + } + + private bool ShouldSerializelastFirstPayAwardTime() + { + return this.lastFirstPayAwardTimeSpecified; + } + + private void ResetlastFirstPayAwardTime() + { + this.lastFirstPayAwardTimeSpecified = false; + } + + private bool ShouldSerializepayFirstAwardButtonStatus() + { + return this.payFirstAwardButtonStatusSpecified; + } + + private void ResetpayFirstAwardButtonStatus() + { + this.payFirstAwardButtonStatusSpecified = false; + } + + private bool ShouldSerializegrowthFundButtonStatus() + { + return this.growthFundButtonStatusSpecified; + } + + private void ResetgrowthFundButtonStatus() + { + this.growthFundButtonStatusSpecified = false; + } + + private bool ShouldSerializelastUpdateDay() + { + return this.lastUpdateDaySpecified; + } + + private void ResetlastUpdateDay() + { + this.lastUpdateDaySpecified = false; + } + + private bool ShouldSerializeisEverPay() + { + return this.isEverPaySpecified; + } + + private void ResetisEverPay() + { + this.isEverPaySpecified = false; + } + + private bool ShouldSerializerewardTime() + { + return this.rewardTimeSpecified; + } + + private void ResetrewardTime() + { + this.rewardTimeSpecified = false; + } + + private bool ShouldSerializegrowthfundnotifytime() + { + return this.growthfundnotifytimeSpecified; + } + + private void Resetgrowthfundnotifytime() + { + this.growthfundnotifytimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayV2Record.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayV2Record.cs.meta new file mode 100644 index 00000000..c21bbdf6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayV2Record.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 631ba18ac8bc70444abb21959cda17f2 +timeCreated: 1611403843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayconsumeBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/PayconsumeBrief.cs new file mode 100644 index 00000000..0fd84fc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayconsumeBrief.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PayconsumeBrief")] + [Serializable] + public class PayconsumeBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ts", DataFormat = DataFormat.TwosComplement)] + public uint ts + { + get + { + return this._ts ?? 0u; + } + set + { + this._ts = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tsSpecified + { + get + { + return this._ts != null; + } + set + { + bool flag = value == (this._ts == null); + if (flag) + { + this._ts = (value ? new uint?(this.ts) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "billno", DataFormat = DataFormat.Default)] + public string billno + { + get + { + return this._billno ?? ""; + } + set + { + this._billno = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool billnoSpecified + { + get + { + return this._billno != null; + } + set + { + bool flag = value == (this._billno == null); + if (flag) + { + this._billno = (value ? this.billno : null); + } + } + } + + private uint? _ts; + + private string _billno; + + private IExtension extensionObject; + + private bool ShouldSerializets() + { + return this.tsSpecified; + } + + private void Resetts() + { + this.tsSpecified = false; + } + + private bool ShouldSerializebillno() + { + return this.billnoSpecified; + } + + private void Resetbillno() + { + this.billnoSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PayconsumeBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PayconsumeBrief.cs.meta new file mode 100644 index 00000000..e4a23314 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PayconsumeBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c11181fc162c98478dfd6e750ff6ab7 +timeCreated: 1611403171 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs new file mode 100644 index 00000000..e85f684d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PaytssInfo")] + [Serializable] + public class PaytssInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "begintime", DataFormat = DataFormat.TwosComplement)] + public int begintime + { + get + { + return this._begintime ?? 0; + } + set + { + this._begintime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool begintimeSpecified + { + get + { + return this._begintime != null; + } + set + { + bool flag = value == (this._begintime == null); + if (flag) + { + this._begintime = (value ? new int?(this.begintime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "endtime", DataFormat = DataFormat.TwosComplement)] + public int endtime + { + get + { + return this._endtime ?? 0; + } + set + { + this._endtime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endtimeSpecified + { + get + { + return this._endtime != null; + } + set + { + bool flag = value == (this._endtime == null); + if (flag) + { + this._endtime = (value ? new int?(this.endtime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastGetAwardTime", DataFormat = DataFormat.TwosComplement)] + public int lastGetAwardTime + { + get + { + return this._lastGetAwardTime ?? 0; + } + set + { + this._lastGetAwardTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastGetAwardTimeSpecified + { + get + { + return this._lastGetAwardTime != null; + } + set + { + bool flag = value == (this._lastGetAwardTime == null); + if (flag) + { + this._lastGetAwardTime = (value ? new int?(this.lastGetAwardTime) : null); + } + } + } + + private int? _begintime; + + private int? _endtime; + + private int? _lastGetAwardTime; + + private IExtension extensionObject; + + private bool ShouldSerializebegintime() + { + return this.begintimeSpecified; + } + + private void Resetbegintime() + { + this.begintimeSpecified = false; + } + + private bool ShouldSerializeendtime() + { + return this.endtimeSpecified; + } + + private void Resetendtime() + { + this.endtimeSpecified = false; + } + + private bool ShouldSerializelastGetAwardTime() + { + return this.lastGetAwardTimeSpecified; + } + + private void ResetlastGetAwardTime() + { + this.lastGetAwardTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs.meta new file mode 100644 index 00000000..ad2cd0e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PaytssInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a65008616d9ced5489ab2018247ab5ec +timeCreated: 1611404288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs new file mode 100644 index 00000000..b40992cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PeerBoxArg")] + [Serializable] + public class PeerBoxArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs.meta new file mode 100644 index 00000000..e8477e82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa862fd3ca2c5504eab426efd32f6ddb +timeCreated: 1611404303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs new file mode 100644 index 00000000..5bf05085 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PeerBoxRes")] + [Serializable] + public class PeerBoxRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "item", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief item + { + get + { + return this._item; + } + set + { + this._item = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private ErrorCode? _errorcode; + + private ItemBrief _item = null; + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs.meta new file mode 100644 index 00000000..3182184a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PeerBoxRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 930f1802c6d0e9d43bd52177ab945208 +timeCreated: 1611404149 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PeriodTaskType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PeriodTaskType.cs new file mode 100644 index 00000000..07ee3db1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PeriodTaskType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PeriodTaskType")] + public enum PeriodTaskType + { + [ProtoEnum(Name = "PeriodTaskType_Daily", Value = 1)] + PeriodTaskType_Daily = 1, + [ProtoEnum(Name = "PeriodTaskType_Weekly", Value = 2)] + PeriodTaskType_Weekly + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PeriodTaskType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PeriodTaskType.cs.meta new file mode 100644 index 00000000..43cc29ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PeriodTaskType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f626fcf5100c9d49a0a8920218b597b +timeCreated: 1611404245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerArg.cs new file mode 100644 index 00000000..41cfa399 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PersonalCareerArg")] + [Serializable] + public class PersonalCareerArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public PersonalCarrerReqType quest_type + { + get + { + return this._quest_type ?? PersonalCarrerReqType.PCRT_HOME_PAGE; + } + set + { + this._quest_type = new PersonalCarrerReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new PersonalCarrerReqType?(this.quest_type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "role_id", DataFormat = DataFormat.TwosComplement)] + public ulong role_id + { + get + { + return this._role_id ?? 0UL; + } + set + { + this._role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool role_idSpecified + { + get + { + return this._role_id != null; + } + set + { + bool flag = value == (this._role_id == null); + if (flag) + { + this._role_id = (value ? new ulong?(this.role_id) : null); + } + } + } + + private PersonalCarrerReqType? _quest_type; + + private ulong? _role_id; + + private IExtension extensionObject; + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + private bool ShouldSerializerole_id() + { + return this.role_idSpecified; + } + + private void Resetrole_id() + { + this.role_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerArg.cs.meta new file mode 100644 index 00000000..d411f163 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8b1c068de36df441b53a38faa0817cd +timeCreated: 1611404895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerRes.cs new file mode 100644 index 00000000..e0c42502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerRes.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PersonalCareerRes")] + [Serializable] + public class PersonalCareerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "home_page", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PersonalHomePage home_page + { + get + { + return this._home_page; + } + set + { + this._home_page = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "pvp_info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PVPInformation pvp_info + { + get + { + return this._pvp_info; + } + set + { + this._pvp_info = value; + } + } + + [ProtoMember(4, Name = "system_status", DataFormat = DataFormat.Default)] + public List system_status + { + get + { + return this._system_status; + } + } + + [ProtoMember(5, IsRequired = false, Name = "trophy_data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public StageTrophy trophy_data + { + get + { + return this._trophy_data; + } + set + { + this._trophy_data = value; + } + } + + private ErrorCode? _result; + + private PersonalHomePage _home_page = null; + + private PVPInformation _pvp_info = null; + + private readonly List _system_status = new List(); + + private StageTrophy _trophy_data = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerRes.cs.meta new file mode 100644 index 00000000..8cb1d28f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCareerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2972b833c38947c499022fac61c5f509 +timeCreated: 1611403476 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PersonalCarrerReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCarrerReqType.cs new file mode 100644 index 00000000..1adcb37b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCarrerReqType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PersonalCarrerReqType")] + public enum PersonalCarrerReqType + { + [ProtoEnum(Name = "PCRT_HOME_PAGE", Value = 1)] + PCRT_HOME_PAGE = 1, + [ProtoEnum(Name = "PCRT_PVP_PKINFO", Value = 2)] + PCRT_PVP_PKINFO, + [ProtoEnum(Name = "PCRT_TROPHY", Value = 3)] + PCRT_TROPHY + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PersonalCarrerReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCarrerReqType.cs.meta new file mode 100644 index 00000000..bc0193d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PersonalCarrerReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5d297b6a0dc38143a75c7c5aa333a67 +timeCreated: 1611404629 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PersonalHomePage.cs b/Client/Assets/Scripts/XMainClient/KKSG/PersonalHomePage.cs new file mode 100644 index 00000000..b2da60ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PersonalHomePage.cs @@ -0,0 +1,547 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PersonalHomePage")] + [Serializable] + public class PersonalHomePage : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "qq_vip", DataFormat = DataFormat.TwosComplement)] + public uint qq_vip + { + get + { + return this._qq_vip ?? 0u; + } + set + { + this._qq_vip = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_vipSpecified + { + get + { + return this._qq_vip != null; + } + set + { + bool flag = value == (this._qq_vip == null); + if (flag) + { + this._qq_vip = (value ? new uint?(this.qq_vip) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "paymember_id", DataFormat = DataFormat.TwosComplement)] + public uint paymember_id + { + get + { + return this._paymember_id ?? 0u; + } + set + { + this._paymember_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymember_idSpecified + { + get + { + return this._paymember_id != null; + } + set + { + bool flag = value == (this._paymember_id == null); + if (flag) + { + this._paymember_id = (value ? new uint?(this.paymember_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "play_name", DataFormat = DataFormat.Default)] + public string play_name + { + get + { + return this._play_name ?? ""; + } + set + { + this._play_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool play_nameSpecified + { + get + { + return this._play_name != null; + } + set + { + bool flag = value == (this._play_name == null); + if (flag) + { + this._play_name = (value ? this.play_name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public uint uid + { + get + { + return this._uid ?? 0u; + } + set + { + this._uid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new uint?(this.uid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "declaration", DataFormat = DataFormat.Default)] + public string declaration + { + get + { + return this._declaration ?? ""; + } + set + { + this._declaration = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool declarationSpecified + { + get + { + return this._declaration != null; + } + set + { + bool flag = value == (this._declaration == null); + if (flag) + { + this._declaration = (value ? this.declaration : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "server_name", DataFormat = DataFormat.Default)] + public string server_name + { + get + { + return this._server_name ?? ""; + } + set + { + this._server_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool server_nameSpecified + { + get + { + return this._server_name != null; + } + set + { + bool flag = value == (this._server_name == null); + if (flag) + { + this._server_name = (value ? this.server_name : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "profession_id", DataFormat = DataFormat.TwosComplement)] + public uint profession_id + { + get + { + return this._profession_id ?? 0u; + } + set + { + this._profession_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profession_idSpecified + { + get + { + return this._profession_id != null; + } + set + { + bool flag = value == (this._profession_id == null); + if (flag) + { + this._profession_id = (value ? new uint?(this.profession_id) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "guild_name", DataFormat = DataFormat.Default)] + public string guild_name + { + get + { + return this._guild_name ?? ""; + } + set + { + this._guild_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guild_nameSpecified + { + get + { + return this._guild_name != null; + } + set + { + bool flag = value == (this._guild_name == null); + if (flag) + { + this._guild_name = (value ? this.guild_name : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "power", DataFormat = DataFormat.TwosComplement)] + public double power + { + get + { + return this._power ?? 0.0; + } + set + { + this._power = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerSpecified + { + get + { + return this._power != null; + } + set + { + bool flag = value == (this._power == null); + if (flag) + { + this._power = (value ? new double?(this.power) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "continue_login_time", DataFormat = DataFormat.TwosComplement)] + public uint continue_login_time + { + get + { + return this._continue_login_time ?? 0u; + } + set + { + this._continue_login_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool continue_login_timeSpecified + { + get + { + return this._continue_login_time != null; + } + set + { + bool flag = value == (this._continue_login_time == null); + if (flag) + { + this._continue_login_time = (value ? new uint?(this.continue_login_time) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "online_time", DataFormat = DataFormat.TwosComplement)] + public uint online_time + { + get + { + return this._online_time ?? 0u; + } + set + { + this._online_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool online_timeSpecified + { + get + { + return this._online_time != null; + } + set + { + bool flag = value == (this._online_time == null); + if (flag) + { + this._online_time = (value ? new uint?(this.online_time) : null); + } + } + } + + [ProtoMember(13, Name = "carrer_data", DataFormat = DataFormat.Default)] + public List carrer_data + { + get + { + return this._carrer_data; + } + } + + private uint? _qq_vip; + + private uint? _paymember_id; + + private string _play_name; + + private uint? _uid; + + private string _declaration; + + private string _server_name; + + private uint? _level; + + private uint? _profession_id; + + private string _guild_name; + + private double? _power; + + private uint? _continue_login_time; + + private uint? _online_time; + + private readonly List _carrer_data = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeqq_vip() + { + return this.qq_vipSpecified; + } + + private void Resetqq_vip() + { + this.qq_vipSpecified = false; + } + + private bool ShouldSerializepaymember_id() + { + return this.paymember_idSpecified; + } + + private void Resetpaymember_id() + { + this.paymember_idSpecified = false; + } + + private bool ShouldSerializeplay_name() + { + return this.play_nameSpecified; + } + + private void Resetplay_name() + { + this.play_nameSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializedeclaration() + { + return this.declarationSpecified; + } + + private void Resetdeclaration() + { + this.declarationSpecified = false; + } + + private bool ShouldSerializeserver_name() + { + return this.server_nameSpecified; + } + + private void Resetserver_name() + { + this.server_nameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeprofession_id() + { + return this.profession_idSpecified; + } + + private void Resetprofession_id() + { + this.profession_idSpecified = false; + } + + private bool ShouldSerializeguild_name() + { + return this.guild_nameSpecified; + } + + private void Resetguild_name() + { + this.guild_nameSpecified = false; + } + + private bool ShouldSerializepower() + { + return this.powerSpecified; + } + + private void Resetpower() + { + this.powerSpecified = false; + } + + private bool ShouldSerializecontinue_login_time() + { + return this.continue_login_timeSpecified; + } + + private void Resetcontinue_login_time() + { + this.continue_login_timeSpecified = false; + } + + private bool ShouldSerializeonline_time() + { + return this.online_timeSpecified; + } + + private void Resetonline_time() + { + this.online_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PersonalHomePage.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PersonalHomePage.cs.meta new file mode 100644 index 00000000..04508db7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PersonalHomePage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fe9a15f2a53cb84c9070d5365eadda8 +timeCreated: 1611403215 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs new file mode 100644 index 00000000..e7e94656 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetChangeNotfiy")] + [Serializable] + public class PetChangeNotfiy : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public PetOP type + { + get + { + return this._type ?? PetOP.PetFellow; + } + set + { + this._type = new PetOP?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new PetOP?(this.type) : null); + } + } + } + + [ProtoMember(2, Name = "pet", DataFormat = DataFormat.Default)] + public List pet + { + get + { + return this._pet; + } + } + + [ProtoMember(3, IsRequired = false, Name = "delexp", DataFormat = DataFormat.TwosComplement)] + public uint delexp + { + get + { + return this._delexp ?? 0u; + } + set + { + this._delexp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool delexpSpecified + { + get + { + return this._delexp != null; + } + set + { + bool flag = value == (this._delexp == null); + if (flag) + { + this._delexp = (value ? new uint?(this.delexp) : null); + } + } + } + + [ProtoMember(4, Name = "getskills", DataFormat = DataFormat.Default)] + public List getskills + { + get + { + return this._getskills; + } + } + + [ProtoMember(5, IsRequired = false, Name = "delskillid", DataFormat = DataFormat.TwosComplement)] + public uint delskillid + { + get + { + return this._delskillid ?? 0u; + } + set + { + this._delskillid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool delskillidSpecified + { + get + { + return this._delskillid != null; + } + set + { + bool flag = value == (this._delskillid == null); + if (flag) + { + this._delskillid = (value ? new uint?(this.delskillid) : null); + } + } + } + + private PetOP? _type; + + private readonly List _pet = new List(); + + private uint? _delexp; + + private readonly List _getskills = new List(); + + private uint? _delskillid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializedelexp() + { + return this.delexpSpecified; + } + + private void Resetdelexp() + { + this.delexpSpecified = false; + } + + private bool ShouldSerializedelskillid() + { + return this.delskillidSpecified; + } + + private void Resetdelskillid() + { + this.delskillidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs.meta new file mode 100644 index 00000000..f8ad6659 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetChangeNotfiy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d490d17ed7da75f4e91428c5c5ff47f6 +timeCreated: 1611404602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs new file mode 100644 index 00000000..8f71a3d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetInviteInfo")] + [Serializable] + public class PetInviteInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "petuid", DataFormat = DataFormat.TwosComplement)] + public ulong petuid + { + get + { + return this._petuid ?? 0UL; + } + set + { + this._petuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petuidSpecified + { + get + { + return this._petuid != null; + } + set + { + bool flag = value == (this._petuid == null); + if (flag) + { + this._petuid = (value ? new ulong?(this.petuid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "petconfigid", DataFormat = DataFormat.TwosComplement)] + public uint petconfigid + { + get + { + return this._petconfigid ?? 0u; + } + set + { + this._petconfigid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petconfigidSpecified + { + get + { + return this._petconfigid != null; + } + set + { + bool flag = value == (this._petconfigid == null); + if (flag) + { + this._petconfigid = (value ? new uint?(this.petconfigid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "petppt", DataFormat = DataFormat.TwosComplement)] + public uint petppt + { + get + { + return this._petppt ?? 0u; + } + set + { + this._petppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petpptSpecified + { + get + { + return this._petppt != null; + } + set + { + bool flag = value == (this._petppt == null); + if (flag) + { + this._petppt = (value ? new uint?(this.petppt) : null); + } + } + } + + private ulong? _roleid; + + private ulong? _petuid; + + private uint? _petconfigid; + + private string _rolename; + + private uint? _profession; + + private uint? _ppt; + + private uint? _petppt; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializepetuid() + { + return this.petuidSpecified; + } + + private void Resetpetuid() + { + this.petuidSpecified = false; + } + + private bool ShouldSerializepetconfigid() + { + return this.petconfigidSpecified; + } + + private void Resetpetconfigid() + { + this.petconfigidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializepetppt() + { + return this.petpptSpecified; + } + + private void Resetpetppt() + { + this.petpptSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs.meta new file mode 100644 index 00000000..bbae48e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bad6c6f36daa044baf49220bf622257 +timeCreated: 1611403599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs new file mode 100644 index 00000000..896e674a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetInviteNtf")] + [Serializable] + public class PetInviteNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PetInviteInfo info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)] + public uint allcount + { + get + { + return this._allcount ?? 0u; + } + set + { + this._allcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allcountSpecified + { + get + { + return this._allcount != null; + } + set + { + bool flag = value == (this._allcount == null); + if (flag) + { + this._allcount = (value ? new uint?(this.allcount) : null); + } + } + } + + private PetInviteInfo _info = null; + + private uint? _allcount; + + private IExtension extensionObject; + + private bool ShouldSerializeallcount() + { + return this.allcountSpecified; + } + + private void Resetallcount() + { + this.allcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs.meta new file mode 100644 index 00000000..ca69b24d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetInviteNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04c562d9c78e6314bbac6f0de885d927 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs new file mode 100644 index 00000000..2b7fa7a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs @@ -0,0 +1,38 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetOP")] + public enum PetOP + { + [ProtoEnum(Name = "PetFellow", Value = 1)] + PetFellow = 1, + [ProtoEnum(Name = "PetFight", Value = 2)] + PetFight, + [ProtoEnum(Name = "PetFeed", Value = 3)] + PetFeed, + [ProtoEnum(Name = "PetTouch", Value = 4)] + PetTouch, + [ProtoEnum(Name = "PetBorn", Value = 5)] + PetBorn, + [ProtoEnum(Name = "PetUpdate", Value = 6)] + PetUpdate, + [ProtoEnum(Name = "PetRelease", Value = 7)] + PetRelease, + [ProtoEnum(Name = "ExpandSeat", Value = 8)] + ExpandSeat, + [ProtoEnum(Name = "PetExpTransfer", Value = 9)] + PetExpTransfer, + [ProtoEnum(Name = "useskillbook", Value = 10)] + useskillbook, + [ProtoEnum(Name = "SetPetPairRide", Value = 11)] + SetPetPairRide, + [ProtoEnum(Name = "QueryPetPairRideInvite", Value = 12)] + QueryPetPairRideInvite, + [ProtoEnum(Name = "OffPetPairRide", Value = 13)] + OffPetPairRide, + [ProtoEnum(Name = "IgnorePetPairRideInvite", Value = 14)] + IgnorePetPairRideInvite + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs.meta new file mode 100644 index 00000000..8e56ea44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 28e1e3aa31d838d47a3dfbf342702130 +timeCreated: 1611403475 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs new file mode 100644 index 00000000..f7d19d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetOperationArg")] + [Serializable] + public class PetOperationArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public PetOP type + { + get + { + return this._type ?? PetOP.PetFellow; + } + set + { + this._type = new PetOP?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new PetOP?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "food", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief food + { + get + { + return this._food; + } + set + { + this._food = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "destpet_id", DataFormat = DataFormat.TwosComplement)] + public ulong destpet_id + { + get + { + return this._destpet_id ?? 0UL; + } + set + { + this._destpet_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool destpet_idSpecified + { + get + { + return this._destpet_id != null; + } + set + { + bool flag = value == (this._destpet_id == null); + if (flag) + { + this._destpet_id = (value ? new ulong?(this.destpet_id) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "setpairride", DataFormat = DataFormat.Default)] + public bool setpairride + { + get + { + return this._setpairride ?? false; + } + set + { + this._setpairride = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool setpairrideSpecified + { + get + { + return this._setpairride != null; + } + set + { + bool flag = value == (this._setpairride == null); + if (flag) + { + this._setpairride = (value ? new bool?(this.setpairride) : null); + } + } + } + + private PetOP? _type; + + private ulong? _uid; + + private ItemBrief _food = null; + + private ulong? _destpet_id; + + private bool? _setpairride; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializedestpet_id() + { + return this.destpet_idSpecified; + } + + private void Resetdestpet_id() + { + this.destpet_idSpecified = false; + } + + private bool ShouldSerializesetpairride() + { + return this.setpairrideSpecified; + } + + private void Resetsetpairride() + { + this.setpairrideSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs.meta new file mode 100644 index 00000000..76b76bcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f12cc52b64b2d1428c59ae47d0418eb +timeCreated: 1611403699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherArg.cs new file mode 100644 index 00000000..cde436e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetOperationOtherArg")] + [Serializable] + public class PetOperationOtherArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public PetOtherOp op + { + get + { + return this._op ?? PetOtherOp.DoPetPairRide; + } + set + { + this._op = new PetOtherOp?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new PetOtherOp?(this.op) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "otherroleid", DataFormat = DataFormat.TwosComplement)] + public ulong otherroleid + { + get + { + return this._otherroleid ?? 0UL; + } + set + { + this._otherroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool otherroleidSpecified + { + get + { + return this._otherroleid != null; + } + set + { + bool flag = value == (this._otherroleid == null); + if (flag) + { + this._otherroleid = (value ? new ulong?(this.otherroleid) : null); + } + } + } + + private PetOtherOp? _op; + + private ulong? _otherroleid; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializeotherroleid() + { + return this.otherroleidSpecified; + } + + private void Resetotherroleid() + { + this.otherroleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherArg.cs.meta new file mode 100644 index 00000000..45db28bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f850d3019c9e84649b9c3d7dd8dbe951 +timeCreated: 1611404892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherRes.cs new file mode 100644 index 00000000..a14bf12f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetOperationOtherRes")] + [Serializable] + public class PetOperationOtherRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherRes.cs.meta new file mode 100644 index 00000000..cf2636df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationOtherRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76cc23c4d84b15c458ec7b54da7c5d08 +timeCreated: 1611403950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs new file mode 100644 index 00000000..ab126b7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetOperationRes")] + [Serializable] + public class PetOperationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "followpetid", DataFormat = DataFormat.TwosComplement)] + public ulong followpetid + { + get + { + return this._followpetid ?? 0UL; + } + set + { + this._followpetid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool followpetidSpecified + { + get + { + return this._followpetid != null; + } + set + { + bool flag = value == (this._followpetid == null); + if (flag) + { + this._followpetid = (value ? new ulong?(this.followpetid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ismoodup", DataFormat = DataFormat.Default)] + public bool ismoodup + { + get + { + return this._ismoodup ?? false; + } + set + { + this._ismoodup = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismoodupSpecified + { + get + { + return this._ismoodup != null; + } + set + { + bool flag = value == (this._ismoodup == null); + if (flag) + { + this._ismoodup = (value ? new bool?(this.ismoodup) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "ishuneryup", DataFormat = DataFormat.Default)] + public bool ishuneryup + { + get + { + return this._ishuneryup ?? false; + } + set + { + this._ishuneryup = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ishuneryupSpecified + { + get + { + return this._ishuneryup != null; + } + set + { + bool flag = value == (this._ishuneryup == null); + if (flag) + { + this._ishuneryup = (value ? new bool?(this.ishuneryup) : null); + } + } + } + + [ProtoMember(5, Name = "invite", DataFormat = DataFormat.Default)] + public List invite + { + get + { + return this._invite; + } + } + + private ErrorCode? _errorcode; + + private ulong? _followpetid; + + private bool? _ismoodup; + + private bool? _ishuneryup; + + private readonly List _invite = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializefollowpetid() + { + return this.followpetidSpecified; + } + + private void Resetfollowpetid() + { + this.followpetidSpecified = false; + } + + private bool ShouldSerializeismoodup() + { + return this.ismoodupSpecified; + } + + private void Resetismoodup() + { + this.ismoodupSpecified = false; + } + + private bool ShouldSerializeishuneryup() + { + return this.ishuneryupSpecified; + } + + private void Resetishuneryup() + { + this.ishuneryupSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs.meta new file mode 100644 index 00000000..fc4e7486 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a94d87d3f5f2447438e1e18c6e43e4ed +timeCreated: 1611404298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs new file mode 100644 index 00000000..f3191702 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetOtherOp")] + public enum PetOtherOp + { + [ProtoEnum(Name = "DoPetPairRide", Value = 1)] + DoPetPairRide = 1, + [ProtoEnum(Name = "InvitePetPairRide", Value = 2)] + InvitePetPairRide, + [ProtoEnum(Name = "AgreePetPairRide", Value = 3)] + AgreePetPairRide + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs.meta new file mode 100644 index 00000000..257444aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOtherOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 334f90c13e881724a969414777bb9c82 +timeCreated: 1611403551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetSingle.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetSingle.cs new file mode 100644 index 00000000..ec543bec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetSingle.cs @@ -0,0 +1,488 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetSingle")] + [Serializable] + public class PetSingle : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "petid", DataFormat = DataFormat.TwosComplement)] + public uint petid + { + get + { + return this._petid ?? 0u; + } + set + { + this._petid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petidSpecified + { + get + { + return this._petid != null; + } + set + { + bool flag = value == (this._petid == null); + if (flag) + { + this._petid = (value ? new uint?(this.petid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "sex", DataFormat = DataFormat.TwosComplement)] + public uint sex + { + get + { + return this._sex ?? 0u; + } + set + { + this._sex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sexSpecified + { + get + { + return this._sex != null; + } + set + { + bool flag = value == (this._sex == null); + if (flag) + { + this._sex = (value ? new uint?(this.sex) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "power", DataFormat = DataFormat.TwosComplement)] + public uint power + { + get + { + return this._power ?? 0u; + } + set + { + this._power = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerSpecified + { + get + { + return this._power != null; + } + set + { + bool flag = value == (this._power == null); + if (flag) + { + this._power = (value ? new uint?(this.power) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "mood", DataFormat = DataFormat.TwosComplement)] + public uint mood + { + get + { + return this._mood ?? 0u; + } + set + { + this._mood = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool moodSpecified + { + get + { + return this._mood != null; + } + set + { + bool flag = value == (this._mood == null); + if (flag) + { + this._mood = (value ? new uint?(this.mood) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "hungry", DataFormat = DataFormat.TwosComplement)] + public uint hungry + { + get + { + return this._hungry ?? 0u; + } + set + { + this._hungry = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hungrySpecified + { + get + { + return this._hungry != null; + } + set + { + bool flag = value == (this._hungry == null); + if (flag) + { + this._hungry = (value ? new uint?(this.hungry) : null); + } + } + } + + [ProtoMember(9, Name = "fixedskills", DataFormat = DataFormat.TwosComplement)] + public List fixedskills + { + get + { + return this._fixedskills; + } + } + + [ProtoMember(10, Name = "randskills", DataFormat = DataFormat.TwosComplement)] + public List randskills + { + get + { + return this._randskills; + } + } + + [ProtoMember(11, IsRequired = false, Name = "record", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SPetRecord record + { + get + { + return this._record; + } + set + { + this._record = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "max_level", DataFormat = DataFormat.TwosComplement)] + public uint max_level + { + get + { + return this._max_level ?? 0u; + } + set + { + this._max_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_levelSpecified + { + get + { + return this._max_level != null; + } + set + { + bool flag = value == (this._max_level == null); + if (flag) + { + this._max_level = (value ? new uint?(this.max_level) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "canpairride", DataFormat = DataFormat.Default)] + public bool canpairride + { + get + { + return this._canpairride ?? false; + } + set + { + this._canpairride = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canpairrideSpecified + { + get + { + return this._canpairride != null; + } + set + { + bool flag = value == (this._canpairride == null); + if (flag) + { + this._canpairride = (value ? new bool?(this.canpairride) : null); + } + } + } + + private ulong? _uid; + + private uint? _petid; + + private uint? _level; + + private uint? _exp; + + private uint? _sex; + + private uint? _power; + + private uint? _mood; + + private uint? _hungry; + + private readonly List _fixedskills = new List(); + + private readonly List _randskills = new List(); + + private SPetRecord _record = null; + + private uint? _max_level; + + private bool? _canpairride; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializepetid() + { + return this.petidSpecified; + } + + private void Resetpetid() + { + this.petidSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializesex() + { + return this.sexSpecified; + } + + private void Resetsex() + { + this.sexSpecified = false; + } + + private bool ShouldSerializepower() + { + return this.powerSpecified; + } + + private void Resetpower() + { + this.powerSpecified = false; + } + + private bool ShouldSerializemood() + { + return this.moodSpecified; + } + + private void Resetmood() + { + this.moodSpecified = false; + } + + private bool ShouldSerializehungry() + { + return this.hungrySpecified; + } + + private void Resethungry() + { + this.hungrySpecified = false; + } + + private bool ShouldSerializemax_level() + { + return this.max_levelSpecified; + } + + private void Resetmax_level() + { + this.max_levelSpecified = false; + } + + private bool ShouldSerializecanpairride() + { + return this.canpairrideSpecified; + } + + private void Resetcanpairride() + { + this.canpairrideSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetSingle.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetSingle.cs.meta new file mode 100644 index 00000000..4f6fbf60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetSingle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 50afac1de37529041a6215a8ce9a4312 +timeCreated: 1611403704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetSysData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetSysData.cs new file mode 100644 index 00000000..2d66ba43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetSysData.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PetSysData")] + [Serializable] + public class PetSysData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "fightid", DataFormat = DataFormat.TwosComplement)] + public ulong fightid + { + get + { + return this._fightid ?? 0UL; + } + set + { + this._fightid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightidSpecified + { + get + { + return this._fightid != null; + } + set + { + bool flag = value == (this._fightid == null); + if (flag) + { + this._fightid = (value ? new ulong?(this.fightid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "followid", DataFormat = DataFormat.TwosComplement)] + public ulong followid + { + get + { + return this._followid ?? 0UL; + } + set + { + this._followid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool followidSpecified + { + get + { + return this._followid != null; + } + set + { + bool flag = value == (this._followid == null); + if (flag) + { + this._followid = (value ? new ulong?(this.followid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "petseats", DataFormat = DataFormat.TwosComplement)] + public uint petseats + { + get + { + return this._petseats ?? 0u; + } + set + { + this._petseats = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petseatsSpecified + { + get + { + return this._petseats != null; + } + set + { + bool flag = value == (this._petseats == null); + if (flag) + { + this._petseats = (value ? new uint?(this.petseats) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastfollowid", DataFormat = DataFormat.TwosComplement)] + public ulong lastfollowid + { + get + { + return this._lastfollowid ?? 0UL; + } + set + { + this._lastfollowid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastfollowidSpecified + { + get + { + return this._lastfollowid != null; + } + set + { + bool flag = value == (this._lastfollowid == null); + if (flag) + { + this._lastfollowid = (value ? new ulong?(this.lastfollowid) : null); + } + } + } + + [ProtoMember(5, Name = "pets", DataFormat = DataFormat.Default)] + public List pets + { + get + { + return this._pets; + } + } + + private ulong? _fightid; + + private ulong? _followid; + + private uint? _petseats; + + private ulong? _lastfollowid; + + private readonly List _pets = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializefightid() + { + return this.fightidSpecified; + } + + private void Resetfightid() + { + this.fightidSpecified = false; + } + + private bool ShouldSerializefollowid() + { + return this.followidSpecified; + } + + private void Resetfollowid() + { + this.followidSpecified = false; + } + + private bool ShouldSerializepetseats() + { + return this.petseatsSpecified; + } + + private void Resetpetseats() + { + this.petseatsSpecified = false; + } + + private bool ShouldSerializelastfollowid() + { + return this.lastfollowidSpecified; + } + + private void Resetlastfollowid() + { + this.lastfollowidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetSysData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PetSysData.cs.meta new file mode 100644 index 00000000..6eb919b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PetSysData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54f38ec9a7f68ee4a8e88a7442c6392d +timeCreated: 1611403736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffect.cs b/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffect.cs new file mode 100644 index 00000000..274e2c64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffect.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PhotographEffect")] + [Serializable] + public class PhotographEffect : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "photograph_effect", DataFormat = DataFormat.TwosComplement)] + public List photograph_effect + { + get + { + return this._photograph_effect; + } + } + + [ProtoMember(3, IsRequired = false, Name = "charm", DataFormat = DataFormat.TwosComplement)] + public uint charm + { + get + { + return this._charm ?? 0u; + } + set + { + this._charm = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool charmSpecified + { + get + { + return this._charm != null; + } + set + { + bool flag = value == (this._charm == null); + if (flag) + { + this._charm = (value ? new uint?(this.charm) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _photograph_effect = new List(); + + private uint? _charm; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializecharm() + { + return this.charmSpecified; + } + + private void Resetcharm() + { + this.charmSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffect.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffect.cs.meta new file mode 100644 index 00000000..dcf597d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85a425e1fe5af0a4188f4d5b4cb8d536 +timeCreated: 1611404052 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffectArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffectArg.cs new file mode 100644 index 00000000..559d6c13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffectArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PhotographEffectArg")] + [Serializable] + public class PhotographEffectArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffectArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffectArg.cs.meta new file mode 100644 index 00000000..d2cff6c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PhotographEffectArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7adcb7b6f6002242b3eaab13fb25b92 +timeCreated: 1611404531 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs new file mode 100644 index 00000000..2631e864 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PicUrlInfo")] + [Serializable] + public class PicUrlInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "url", DataFormat = DataFormat.Default)] + public string url + { + get + { + return this._url ?? ""; + } + set + { + this._url = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool urlSpecified + { + get + { + return this._url != null; + } + set + { + bool flag = value == (this._url == null); + if (flag) + { + this._url = (value ? this.url : null); + } + } + } + + private string _url; + + private IExtension extensionObject; + + private bool ShouldSerializeurl() + { + return this.urlSpecified; + } + + private void Reseturl() + { + this.urlSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs.meta new file mode 100644 index 00000000..70f003ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PicUrlInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5e9b99510ccc90438ebef9da6703273 +timeCreated: 1611404878 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs new file mode 100644 index 00000000..8036b4f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkBaseHist")] + [Serializable] + public class PkBaseHist : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "win", DataFormat = DataFormat.TwosComplement)] + public uint win + { + get + { + return this._win ?? 0u; + } + set + { + this._win = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winSpecified + { + get + { + return this._win != null; + } + set + { + bool flag = value == (this._win == null); + if (flag) + { + this._win = (value ? new uint?(this.win) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lose", DataFormat = DataFormat.TwosComplement)] + public uint lose + { + get + { + return this._lose ?? 0u; + } + set + { + this._lose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loseSpecified + { + get + { + return this._lose != null; + } + set + { + bool flag = value == (this._lose == null); + if (flag) + { + this._lose = (value ? new uint?(this.lose) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "draw", DataFormat = DataFormat.TwosComplement)] + public uint draw + { + get + { + return this._draw ?? 0u; + } + set + { + this._draw = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool drawSpecified + { + get + { + return this._draw != null; + } + set + { + bool flag = value == (this._draw == null); + if (flag) + { + this._draw = (value ? new uint?(this.draw) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastwin", DataFormat = DataFormat.TwosComplement)] + public uint lastwin + { + get + { + return this._lastwin ?? 0u; + } + set + { + this._lastwin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastwinSpecified + { + get + { + return this._lastwin != null; + } + set + { + bool flag = value == (this._lastwin == null); + if (flag) + { + this._lastwin = (value ? new uint?(this.lastwin) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "lastlose", DataFormat = DataFormat.TwosComplement)] + public uint lastlose + { + get + { + return this._lastlose ?? 0u; + } + set + { + this._lastlose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastloseSpecified + { + get + { + return this._lastlose != null; + } + set + { + bool flag = value == (this._lastlose == null); + if (flag) + { + this._lastlose = (value ? new uint?(this.lastlose) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "continuewin", DataFormat = DataFormat.TwosComplement)] + public uint continuewin + { + get + { + return this._continuewin ?? 0u; + } + set + { + this._continuewin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool continuewinSpecified + { + get + { + return this._continuewin != null; + } + set + { + bool flag = value == (this._continuewin == null); + if (flag) + { + this._continuewin = (value ? new uint?(this.continuewin) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "continuelose", DataFormat = DataFormat.TwosComplement)] + public uint continuelose + { + get + { + return this._continuelose ?? 0u; + } + set + { + this._continuelose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool continueloseSpecified + { + get + { + return this._continuelose != null; + } + set + { + bool flag = value == (this._continuelose == null); + if (flag) + { + this._continuelose = (value ? new uint?(this.continuelose) : null); + } + } + } + + private uint? _win; + + private uint? _lose; + + private uint? _draw; + + private uint? _lastwin; + + private uint? _lastlose; + + private uint? _continuewin; + + private uint? _continuelose; + + private IExtension extensionObject; + + private bool ShouldSerializewin() + { + return this.winSpecified; + } + + private void Resetwin() + { + this.winSpecified = false; + } + + private bool ShouldSerializelose() + { + return this.loseSpecified; + } + + private void Resetlose() + { + this.loseSpecified = false; + } + + private bool ShouldSerializedraw() + { + return this.drawSpecified; + } + + private void Resetdraw() + { + this.drawSpecified = false; + } + + private bool ShouldSerializelastwin() + { + return this.lastwinSpecified; + } + + private void Resetlastwin() + { + this.lastwinSpecified = false; + } + + private bool ShouldSerializelastlose() + { + return this.lastloseSpecified; + } + + private void Resetlastlose() + { + this.lastloseSpecified = false; + } + + private bool ShouldSerializecontinuewin() + { + return this.continuewinSpecified; + } + + private void Resetcontinuewin() + { + this.continuewinSpecified = false; + } + + private bool ShouldSerializecontinuelose() + { + return this.continueloseSpecified; + } + + private void Resetcontinuelose() + { + this.continueloseSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs.meta new file mode 100644 index 00000000..6456c453 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkBaseHist.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8171f9413e783245ab358a5f72294ee +timeCreated: 1611404751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkMatchStage.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkMatchStage.cs new file mode 100644 index 00000000..60a410fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkMatchStage.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkMatchStage")] + [Serializable] + public class PkMatchStage : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ctime", DataFormat = DataFormat.TwosComplement)] + public uint ctime + { + get + { + return this._ctime ?? 0u; + } + set + { + this._ctime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ctimeSpecified + { + get + { + return this._ctime != null; + } + set + { + bool flag = value == (this._ctime == null); + if (flag) + { + this._ctime = (value ? new uint?(this.ctime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "span", DataFormat = DataFormat.TwosComplement)] + public uint span + { + get + { + return this._span ?? 0u; + } + set + { + this._span = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool spanSpecified + { + get + { + return this._span != null; + } + set + { + bool flag = value == (this._span == null); + if (flag) + { + this._span = (value ? new uint?(this.span) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "robotpercent", DataFormat = DataFormat.TwosComplement)] + public uint robotpercent + { + get + { + return this._robotpercent ?? 0u; + } + set + { + this._robotpercent = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool robotpercentSpecified + { + get + { + return this._robotpercent != null; + } + set + { + bool flag = value == (this._robotpercent == null); + if (flag) + { + this._robotpercent = (value ? new uint?(this.robotpercent) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lookupid", DataFormat = DataFormat.TwosComplement)] + public int lookupid + { + get + { + return this._lookupid ?? 0; + } + set + { + this._lookupid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lookupidSpecified + { + get + { + return this._lookupid != null; + } + set + { + bool flag = value == (this._lookupid == null); + if (flag) + { + this._lookupid = (value ? new int?(this.lookupid) : null); + } + } + } + + private uint? _ctime; + + private uint? _span; + + private uint? _robotpercent; + + private int? _lookupid; + + private IExtension extensionObject; + + private bool ShouldSerializectime() + { + return this.ctimeSpecified; + } + + private void Resetctime() + { + this.ctimeSpecified = false; + } + + private bool ShouldSerializespan() + { + return this.spanSpecified; + } + + private void Resetspan() + { + this.spanSpecified = false; + } + + private bool ShouldSerializerobotpercent() + { + return this.robotpercentSpecified; + } + + private void Resetrobotpercent() + { + this.robotpercentSpecified = false; + } + + private bool ShouldSerializelookupid() + { + return this.lookupidSpecified; + } + + private void Resetlookupid() + { + this.lookupidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkMatchStage.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkMatchStage.cs.meta new file mode 100644 index 00000000..a33694ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkMatchStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f237b7a00631bd4c84d81e44ac3d423 +timeCreated: 1611404244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkNVNType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkNVNType.cs new file mode 100644 index 00000000..5d0ca770 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkNVNType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkNVNType")] + public enum PkNVNType + { + [ProtoEnum(Name = "PK_1v1", Value = 1)] + PK_1v1 = 1, + [ProtoEnum(Name = "PK_2v2", Value = 2)] + PK_2v2 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkNVNType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkNVNType.cs.meta new file mode 100644 index 00000000..5ccec405 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkNVNType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a8537db94c7bed340a5d15241df91c95 +timeCreated: 1611404294 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs new file mode 100644 index 00000000..fe20d03d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkOneRec")] + [Serializable] + public class PkOneRec : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ret", DataFormat = DataFormat.TwosComplement)] + public PkResultType ret + { + get + { + return this._ret ?? PkResultType.PkResult_Win; + } + set + { + this._ret = new PkResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool retSpecified + { + get + { + return this._ret != null; + } + set + { + bool flag = value == (this._ret == null); + if (flag) + { + this._ret = (value ? new PkResultType?(this.ret) : null); + } + } + } + + [ProtoMember(2, Name = "myside", DataFormat = DataFormat.Default)] + public List myside + { + get + { + return this._myside; + } + } + + [ProtoMember(3, Name = "opside", DataFormat = DataFormat.Default)] + public List opside + { + get + { + return this._opside; + } + } + + [ProtoMember(4, IsRequired = false, Name = "cpoint", DataFormat = DataFormat.TwosComplement)] + public int cpoint + { + get + { + return this._cpoint ?? 0; + } + set + { + this._cpoint = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cpointSpecified + { + get + { + return this._cpoint != null; + } + set + { + bool flag = value == (this._cpoint == null); + if (flag) + { + this._cpoint = (value ? new int?(this.cpoint) : null); + } + } + } + + private PkResultType? _ret; + + private readonly List _myside = new List(); + + private readonly List _opside = new List(); + + private int? _cpoint; + + private IExtension extensionObject; + + private bool ShouldSerializeret() + { + return this.retSpecified; + } + + private void Resetret() + { + this.retSpecified = false; + } + + private bool ShouldSerializecpoint() + { + return this.cpointSpecified; + } + + private void Resetcpoint() + { + this.cpointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs.meta new file mode 100644 index 00000000..2806b002 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRec.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a94caa8389bd06488afaa63302d1335 +timeCreated: 1611403889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs new file mode 100644 index 00000000..e7009960 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkOneRecord")] + [Serializable] + public class PkOneRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "opposer", DataFormat = DataFormat.TwosComplement)] + public ulong opposer + { + get + { + return this._opposer ?? 0UL; + } + set + { + this._opposer = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opposerSpecified + { + get + { + return this._opposer != null; + } + set + { + bool flag = value == (this._opposer == null); + if (flag) + { + this._opposer = (value ? new ulong?(this.opposer) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public int point + { + get + { + return this._point ?? 0; + } + set + { + this._point = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new int?(this.point) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "honorpoint", DataFormat = DataFormat.TwosComplement)] + public uint honorpoint + { + get + { + return this._honorpoint ?? 0u; + } + set + { + this._honorpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool honorpointSpecified + { + get + { + return this._honorpoint != null; + } + set + { + bool flag = value == (this._honorpoint == null); + if (flag) + { + this._honorpoint = (value ? new uint?(this.honorpoint) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public PkResultType result + { + get + { + return this._result ?? PkResultType.PkResult_Win; + } + set + { + this._result = new PkResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new PkResultType?(this.result) : null); + } + } + } + + private ulong? _opposer; + + private uint? _profession; + + private string _name; + + private int? _point; + + private uint? _honorpoint; + + private PkResultType? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeopposer() + { + return this.opposerSpecified; + } + + private void Resetopposer() + { + this.opposerSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializehonorpoint() + { + return this.honorpointSpecified; + } + + private void Resethonorpoint() + { + this.honorpointSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs.meta new file mode 100644 index 00000000..5df45384 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkOneRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fd987e82d6637a46b14a2dc993d489b +timeCreated: 1611403214 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkPrepareNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkPrepareNtf.cs new file mode 100644 index 00000000..436ba239 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkPrepareNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkPrepareNtf")] + [Serializable] + public class PkPrepareNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "beginorend", DataFormat = DataFormat.TwosComplement)] + public uint beginorend + { + get + { + return this._beginorend ?? 0u; + } + set + { + this._beginorend = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool beginorendSpecified + { + get + { + return this._beginorend != null; + } + set + { + bool flag = value == (this._beginorend == null); + if (flag) + { + this._beginorend = (value ? new uint?(this.beginorend) : null); + } + } + } + + private uint? _beginorend; + + private IExtension extensionObject; + + private bool ShouldSerializebeginorend() + { + return this.beginorendSpecified; + } + + private void Resetbeginorend() + { + this.beginorendSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkPrepareNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkPrepareNtf.cs.meta new file mode 100644 index 00000000..db9cc802 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkPrepareNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: becf7ba888fbf9c43a5b51ba8d527284 +timeCreated: 1611404481 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRankExtraData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkRankExtraData.cs new file mode 100644 index 00000000..79acafad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRankExtraData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkRankExtraData")] + [Serializable] + public class PkRankExtraData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "joincount", DataFormat = DataFormat.TwosComplement)] + public uint joincount + { + get + { + return this._joincount ?? 0u; + } + set + { + this._joincount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joincountSpecified + { + get + { + return this._joincount != null; + } + set + { + bool flag = value == (this._joincount == null); + if (flag) + { + this._joincount = (value ? new uint?(this.joincount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "winrate", DataFormat = DataFormat.FixedSize)] + public float winrate + { + get + { + return this._winrate ?? 0f; + } + set + { + this._winrate = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winrateSpecified + { + get + { + return this._winrate != null; + } + set + { + bool flag = value == (this._winrate == null); + if (flag) + { + this._winrate = (value ? new float?(this.winrate) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "continuewin", DataFormat = DataFormat.TwosComplement)] + public uint continuewin + { + get + { + return this._continuewin ?? 0u; + } + set + { + this._continuewin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool continuewinSpecified + { + get + { + return this._continuewin != null; + } + set + { + bool flag = value == (this._continuewin == null); + if (flag) + { + this._continuewin = (value ? new uint?(this.continuewin) : null); + } + } + } + + private uint? _joincount; + + private float? _winrate; + + private uint? _continuewin; + + private IExtension extensionObject; + + private bool ShouldSerializejoincount() + { + return this.joincountSpecified; + } + + private void Resetjoincount() + { + this.joincountSpecified = false; + } + + private bool ShouldSerializewinrate() + { + return this.winrateSpecified; + } + + private void Resetwinrate() + { + this.winrateSpecified = false; + } + + private bool ShouldSerializecontinuewin() + { + return this.continuewinSpecified; + } + + private void Resetcontinuewin() + { + this.continuewinSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRankExtraData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkRankExtraData.cs.meta new file mode 100644 index 00000000..16cd5644 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRankExtraData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5bf21245e095eb74cac379b4465f0b19 +timeCreated: 1611403800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs new file mode 100644 index 00000000..0fc695d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs @@ -0,0 +1,956 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkRecord")] + [Serializable] + public class PkRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "week", DataFormat = DataFormat.TwosComplement)] + public uint week + { + get + { + return this._week ?? 0u; + } + set + { + this._week = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekSpecified + { + get + { + return this._week != null; + } + set + { + bool flag = value == (this._week == null); + if (flag) + { + this._week = (value ? new uint?(this.week) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "unused_win", DataFormat = DataFormat.TwosComplement)] + public uint unused_win + { + get + { + return this._unused_win ?? 0u; + } + set + { + this._unused_win = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unused_winSpecified + { + get + { + return this._unused_win != null; + } + set + { + bool flag = value == (this._unused_win == null); + if (flag) + { + this._unused_win = (value ? new uint?(this.unused_win) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "unused_lose", DataFormat = DataFormat.TwosComplement)] + public uint unused_lose + { + get + { + return this._unused_lose ?? 0u; + } + set + { + this._unused_lose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unused_loseSpecified + { + get + { + return this._unused_lose != null; + } + set + { + bool flag = value == (this._unused_lose == null); + if (flag) + { + this._unused_lose = (value ? new uint?(this.unused_lose) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "unused_continuewin", DataFormat = DataFormat.TwosComplement)] + public uint unused_continuewin + { + get + { + return this._unused_continuewin ?? 0u; + } + set + { + this._unused_continuewin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unused_continuewinSpecified + { + get + { + return this._unused_continuewin != null; + } + set + { + bool flag = value == (this._unused_continuewin == null); + if (flag) + { + this._unused_continuewin = (value ? new uint?(this.unused_continuewin) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "honorpoint", DataFormat = DataFormat.TwosComplement)] + public uint honorpoint + { + get + { + return this._honorpoint ?? 0u; + } + set + { + this._honorpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool honorpointSpecified + { + get + { + return this._honorpoint != null; + } + set + { + bool flag = value == (this._honorpoint == null); + if (flag) + { + this._honorpoint = (value ? new uint?(this.honorpoint) : null); + } + } + } + + [ProtoMember(7, Name = "boxtaken", DataFormat = DataFormat.TwosComplement)] + public List boxtaken + { + get + { + return this._boxtaken; + } + } + + [ProtoMember(8, Name = "records", DataFormat = DataFormat.Default)] + public List records + { + get + { + return this._records; + } + } + + [ProtoMember(9, IsRequired = false, Name = "unused_continuelose", DataFormat = DataFormat.TwosComplement)] + public uint unused_continuelose + { + get + { + return this._unused_continuelose ?? 0u; + } + set + { + this._unused_continuelose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unused_continueloseSpecified + { + get + { + return this._unused_continuelose != null; + } + set + { + bool flag = value == (this._unused_continuelose == null); + if (flag) + { + this._unused_continuelose = (value ? new uint?(this.unused_continuelose) : null); + } + } + } + + [ProtoMember(10, Name = "prowin", DataFormat = DataFormat.TwosComplement)] + public List prowin + { + get + { + return this._prowin; + } + } + + [ProtoMember(11, Name = "prolose", DataFormat = DataFormat.TwosComplement)] + public List prolose + { + get + { + return this._prolose; + } + } + + [ProtoMember(12, IsRequired = false, Name = "unused_lastwin", DataFormat = DataFormat.TwosComplement)] + public uint unused_lastwin + { + get + { + return this._unused_lastwin ?? 0u; + } + set + { + this._unused_lastwin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unused_lastwinSpecified + { + get + { + return this._unused_lastwin != null; + } + set + { + bool flag = value == (this._unused_lastwin == null); + if (flag) + { + this._unused_lastwin = (value ? new uint?(this.unused_lastwin) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "unused_lastlose", DataFormat = DataFormat.TwosComplement)] + public uint unused_lastlose + { + get + { + return this._unused_lastlose ?? 0u; + } + set + { + this._unused_lastlose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unused_lastloseSpecified + { + get + { + return this._unused_lastlose != null; + } + set + { + bool flag = value == (this._unused_lastlose == null); + if (flag) + { + this._unused_lastlose = (value ? new uint?(this.unused_lastlose) : null); + } + } + } + + [ProtoMember(14, Name = "prodraw", DataFormat = DataFormat.TwosComplement)] + public List prodraw + { + get + { + return this._prodraw; + } + } + + [ProtoMember(15, IsRequired = false, Name = "unused_draw", DataFormat = DataFormat.TwosComplement)] + public uint unused_draw + { + get + { + return this._unused_draw ?? 0u; + } + set + { + this._unused_draw = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unused_drawSpecified + { + get + { + return this._unused_draw != null; + } + set + { + bool flag = value == (this._unused_draw == null); + if (flag) + { + this._unused_draw = (value ? new uint?(this.unused_draw) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "pointlastlose", DataFormat = DataFormat.TwosComplement)] + public uint pointlastlose + { + get + { + return this._pointlastlose ?? 0u; + } + set + { + this._pointlastlose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointlastloseSpecified + { + get + { + return this._pointlastlose != null; + } + set + { + bool flag = value == (this._pointlastlose == null); + if (flag) + { + this._pointlastlose = (value ? new uint?(this.pointlastlose) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "day", DataFormat = DataFormat.TwosComplement)] + public uint day + { + get + { + return this._day ?? 0u; + } + set + { + this._day = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daySpecified + { + get + { + return this._day != null; + } + set + { + bool flag = value == (this._day == null); + if (flag) + { + this._day = (value ? new uint?(this.day) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "rewardcounttoday", DataFormat = DataFormat.TwosComplement)] + public uint rewardcounttoday + { + get + { + return this._rewardcounttoday ?? 0u; + } + set + { + this._rewardcounttoday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardcounttodaySpecified + { + get + { + return this._rewardcounttoday != null; + } + set + { + bool flag = value == (this._rewardcounttoday == null); + if (flag) + { + this._rewardcounttoday = (value ? new uint?(this.rewardcounttoday) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "todayplaytime", DataFormat = DataFormat.TwosComplement)] + public uint todayplaytime + { + get + { + return this._todayplaytime ?? 0u; + } + set + { + this._todayplaytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool todayplaytimeSpecified + { + get + { + return this._todayplaytime != null; + } + set + { + bool flag = value == (this._todayplaytime == null); + if (flag) + { + this._todayplaytime = (value ? new uint?(this.todayplaytime) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "histweek", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkBaseHist histweek + { + get + { + return this._histweek; + } + set + { + this._histweek = value; + } + } + + [ProtoMember(21, IsRequired = false, Name = "histall", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkBaseHist histall + { + get + { + return this._histall; + } + set + { + this._histall = value; + } + } + + [ProtoMember(22, IsRequired = false, Name = "pkdaytimes", DataFormat = DataFormat.TwosComplement)] + public uint pkdaytimes + { + get + { + return this._pkdaytimes ?? 0u; + } + set + { + this._pkdaytimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pkdaytimesSpecified + { + get + { + return this._pkdaytimes != null; + } + set + { + bool flag = value == (this._pkdaytimes == null); + if (flag) + { + this._pkdaytimes = (value ? new uint?(this.pkdaytimes) : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "weektimes", DataFormat = DataFormat.TwosComplement)] + public uint weektimes + { + get + { + return this._weektimes ?? 0u; + } + set + { + this._weektimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weektimesSpecified + { + get + { + return this._weektimes != null; + } + set + { + bool flag = value == (this._weektimes == null); + if (flag) + { + this._weektimes = (value ? new uint?(this.weektimes) : null); + } + } + } + + [ProtoMember(24, IsRequired = false, Name = "last7daystime", DataFormat = DataFormat.TwosComplement)] + public uint last7daystime + { + get + { + return this._last7daystime ?? 0u; + } + set + { + this._last7daystime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last7daystimeSpecified + { + get + { + return this._last7daystime != null; + } + set + { + bool flag = value == (this._last7daystime == null); + if (flag) + { + this._last7daystime = (value ? new uint?(this.last7daystime) : null); + } + } + } + + [ProtoMember(25, IsRequired = false, Name = "info2v2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkRecordSubInfo info2v2 + { + get + { + return this._info2v2; + } + set + { + this._info2v2 = value; + } + } + + [ProtoMember(26, IsRequired = false, Name = "oneweekresettime", DataFormat = DataFormat.TwosComplement)] + public uint oneweekresettime + { + get + { + return this._oneweekresettime ?? 0u; + } + set + { + this._oneweekresettime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool oneweekresettimeSpecified + { + get + { + return this._oneweekresettime != null; + } + set + { + bool flag = value == (this._oneweekresettime == null); + if (flag) + { + this._oneweekresettime = (value ? new uint?(this.oneweekresettime) : null); + } + } + } + + [ProtoMember(27, IsRequired = false, Name = "lastweekpoint", DataFormat = DataFormat.TwosComplement)] + public uint lastweekpoint + { + get + { + return this._lastweekpoint ?? 0u; + } + set + { + this._lastweekpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastweekpointSpecified + { + get + { + return this._lastweekpoint != null; + } + set + { + bool flag = value == (this._lastweekpoint == null); + if (flag) + { + this._lastweekpoint = (value ? new uint?(this.lastweekpoint) : null); + } + } + } + + [ProtoMember(28, IsRequired = false, Name = "histday", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkBaseHist histday + { + get + { + return this._histday; + } + set + { + this._histday = value; + } + } + + private uint? _point; + + private uint? _week; + + private uint? _unused_win; + + private uint? _unused_lose; + + private uint? _unused_continuewin; + + private uint? _honorpoint; + + private readonly List _boxtaken = new List(); + + private readonly List _records = new List(); + + private uint? _unused_continuelose; + + private readonly List _prowin = new List(); + + private readonly List _prolose = new List(); + + private uint? _unused_lastwin; + + private uint? _unused_lastlose; + + private readonly List _prodraw = new List(); + + private uint? _unused_draw; + + private uint? _pointlastlose; + + private uint? _day; + + private uint? _rewardcounttoday; + + private uint? _todayplaytime; + + private PkBaseHist _histweek = null; + + private PkBaseHist _histall = null; + + private uint? _pkdaytimes; + + private uint? _weektimes; + + private uint? _last7daystime; + + private PkRecordSubInfo _info2v2 = null; + + private uint? _oneweekresettime; + + private uint? _lastweekpoint; + + private PkBaseHist _histday = null; + + private IExtension extensionObject; + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializeweek() + { + return this.weekSpecified; + } + + private void Resetweek() + { + this.weekSpecified = false; + } + + private bool ShouldSerializeunused_win() + { + return this.unused_winSpecified; + } + + private void Resetunused_win() + { + this.unused_winSpecified = false; + } + + private bool ShouldSerializeunused_lose() + { + return this.unused_loseSpecified; + } + + private void Resetunused_lose() + { + this.unused_loseSpecified = false; + } + + private bool ShouldSerializeunused_continuewin() + { + return this.unused_continuewinSpecified; + } + + private void Resetunused_continuewin() + { + this.unused_continuewinSpecified = false; + } + + private bool ShouldSerializehonorpoint() + { + return this.honorpointSpecified; + } + + private void Resethonorpoint() + { + this.honorpointSpecified = false; + } + + private bool ShouldSerializeunused_continuelose() + { + return this.unused_continueloseSpecified; + } + + private void Resetunused_continuelose() + { + this.unused_continueloseSpecified = false; + } + + private bool ShouldSerializeunused_lastwin() + { + return this.unused_lastwinSpecified; + } + + private void Resetunused_lastwin() + { + this.unused_lastwinSpecified = false; + } + + private bool ShouldSerializeunused_lastlose() + { + return this.unused_lastloseSpecified; + } + + private void Resetunused_lastlose() + { + this.unused_lastloseSpecified = false; + } + + private bool ShouldSerializeunused_draw() + { + return this.unused_drawSpecified; + } + + private void Resetunused_draw() + { + this.unused_drawSpecified = false; + } + + private bool ShouldSerializepointlastlose() + { + return this.pointlastloseSpecified; + } + + private void Resetpointlastlose() + { + this.pointlastloseSpecified = false; + } + + private bool ShouldSerializeday() + { + return this.daySpecified; + } + + private void Resetday() + { + this.daySpecified = false; + } + + private bool ShouldSerializerewardcounttoday() + { + return this.rewardcounttodaySpecified; + } + + private void Resetrewardcounttoday() + { + this.rewardcounttodaySpecified = false; + } + + private bool ShouldSerializetodayplaytime() + { + return this.todayplaytimeSpecified; + } + + private void Resettodayplaytime() + { + this.todayplaytimeSpecified = false; + } + + private bool ShouldSerializepkdaytimes() + { + return this.pkdaytimesSpecified; + } + + private void Resetpkdaytimes() + { + this.pkdaytimesSpecified = false; + } + + private bool ShouldSerializeweektimes() + { + return this.weektimesSpecified; + } + + private void Resetweektimes() + { + this.weektimesSpecified = false; + } + + private bool ShouldSerializelast7daystime() + { + return this.last7daystimeSpecified; + } + + private void Resetlast7daystime() + { + this.last7daystimeSpecified = false; + } + + private bool ShouldSerializeoneweekresettime() + { + return this.oneweekresettimeSpecified; + } + + private void Resetoneweekresettime() + { + this.oneweekresettimeSpecified = false; + } + + private bool ShouldSerializelastweekpoint() + { + return this.lastweekpointSpecified; + } + + private void Resetlastweekpoint() + { + this.lastweekpointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs.meta new file mode 100644 index 00000000..ce8859b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c52c7cd29e5a7c5488e48d260aa9a3b6 +timeCreated: 1611404505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRecordSubInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkRecordSubInfo.cs new file mode 100644 index 00000000..e59d737e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRecordSubInfo.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkRecordSubInfo")] + [Serializable] + public class PkRecordSubInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rewardcount", DataFormat = DataFormat.TwosComplement)] + public uint rewardcount + { + get + { + return this._rewardcount ?? 0u; + } + set + { + this._rewardcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardcountSpecified + { + get + { + return this._rewardcount != null; + } + set + { + bool flag = value == (this._rewardcount == null); + if (flag) + { + this._rewardcount = (value ? new uint?(this.rewardcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "seasondata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkBaseHist seasondata + { + get + { + return this._seasondata; + } + set + { + this._seasondata = value; + } + } + + [ProtoMember(4, Name = "recs", DataFormat = DataFormat.Default)] + public List recs + { + get + { + return this._recs; + } + } + + private uint? _point; + + private uint? _rewardcount; + + private PkBaseHist _seasondata = null; + + private readonly List _recs = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializerewardcount() + { + return this.rewardcountSpecified; + } + + private void Resetrewardcount() + { + this.rewardcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRecordSubInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkRecordSubInfo.cs.meta new file mode 100644 index 00000000..3a0d2a77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRecordSubInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ce0bd93c07e2e341bbbbbac77507393 +timeCreated: 1611403504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs new file mode 100644 index 00000000..b7614162 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkReqArg")] + [Serializable] + public class PkReqArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public PkReqType type + { + get + { + return this._type ?? PkReqType.PKREQ_ADDPK; + } + set + { + this._type = new PkReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new PkReqType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "nvntype", DataFormat = DataFormat.TwosComplement)] + public PkNVNType nvntype + { + get + { + return this._nvntype ?? PkNVNType.PK_1v1; + } + set + { + this._nvntype = new PkNVNType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nvntypeSpecified + { + get + { + return this._nvntype != null; + } + set + { + bool flag = value == (this._nvntype == null); + if (flag) + { + this._nvntype = (value ? new PkNVNType?(this.nvntype) : null); + } + } + } + + private PkReqType? _type; + + private uint? _index; + + private PkNVNType? _nvntype; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializenvntype() + { + return this.nvntypeSpecified; + } + + private void Resetnvntype() + { + this.nvntypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs.meta new file mode 100644 index 00000000..6bf7f298 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae1ae5c305c52874abd476fb1212df35 +timeCreated: 1611404338 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs new file mode 100644 index 00000000..e7c666df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkReqRes")] + [Serializable] + public class PkReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "allinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public QueryPkInfoRes allinfo + { + get + { + return this._allinfo; + } + set + { + this._allinfo = value; + } + } + + private ErrorCode? _errorcode; + + private uint? _time; + + private QueryPkInfoRes _allinfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs.meta new file mode 100644 index 00000000..28cce468 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 298740c5a6fb16546bfb16d8dfc2d3b8 +timeCreated: 1611403477 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkReqType.cs new file mode 100644 index 00000000..fa987926 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkReqType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkReqType")] + public enum PkReqType + { + [ProtoEnum(Name = "PKREQ_ADDPK", Value = 1)] + PKREQ_ADDPK = 1, + [ProtoEnum(Name = "PKREQ_REMOVEPK", Value = 2)] + PKREQ_REMOVEPK, + [ProtoEnum(Name = "PKREQ_ALLINFO", Value = 3)] + PKREQ_ALLINFO, + [ProtoEnum(Name = "PKREQ_FETCHPOINTREWARD", Value = 4)] + PKREQ_FETCHPOINTREWARD + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkReqType.cs.meta new file mode 100644 index 00000000..4b0dd9e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6507a93582dd5141a46008763e78cbe +timeCreated: 1611404745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs new file mode 100644 index 00000000..54e6dfe7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs @@ -0,0 +1,375 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkResult")] + [Serializable] + public class PkResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public PkResultType result + { + get + { + return this._result ?? PkResultType.PkResult_Win; + } + set + { + this._result = new PkResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new PkResultType?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "winpoint", DataFormat = DataFormat.TwosComplement)] + public int winpoint + { + get + { + return this._winpoint ?? 0; + } + set + { + this._winpoint = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winpointSpecified + { + get + { + return this._winpoint != null; + } + set + { + bool flag = value == (this._winpoint == null); + if (flag) + { + this._winpoint = (value ? new int?(this.winpoint) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "honorpoint", DataFormat = DataFormat.TwosComplement)] + public uint honorpoint + { + get + { + return this._honorpoint ?? 0u; + } + set + { + this._honorpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool honorpointSpecified + { + get + { + return this._honorpoint != null; + } + set + { + bool flag = value == (this._honorpoint == null); + if (flag) + { + this._honorpoint = (value ? new uint?(this.honorpoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public int rank + { + get + { + return this._rank ?? 0; + } + set + { + this._rank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new int?(this.rank) : null); + } + } + } + + [ProtoMember(5, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(6, IsRequired = false, Name = "firstrank", DataFormat = DataFormat.TwosComplement)] + public int firstrank + { + get + { + return this._firstrank ?? 0; + } + set + { + this._firstrank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firstrankSpecified + { + get + { + return this._firstrank != null; + } + set + { + bool flag = value == (this._firstrank == null); + if (flag) + { + this._firstrank = (value ? new int?(this.firstrank) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "dragoncount", DataFormat = DataFormat.TwosComplement)] + public uint dragoncount + { + get + { + return this._dragoncount ?? 0u; + } + set + { + this._dragoncount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragoncountSpecified + { + get + { + return this._dragoncount != null; + } + set + { + bool flag = value == (this._dragoncount == null); + if (flag) + { + this._dragoncount = (value ? new uint?(this.dragoncount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "mystate", DataFormat = DataFormat.TwosComplement)] + public KKVsRoleState mystate + { + get + { + return this._mystate ?? KKVsRoleState.KK_VS_ROLE_UNLOAD; + } + set + { + this._mystate = new KKVsRoleState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mystateSpecified + { + get + { + return this._mystate != null; + } + set + { + bool flag = value == (this._mystate == null); + if (flag) + { + this._mystate = (value ? new KKVsRoleState?(this.mystate) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "opstate", DataFormat = DataFormat.TwosComplement)] + public KKVsRoleState opstate + { + get + { + return this._opstate ?? KKVsRoleState.KK_VS_ROLE_UNLOAD; + } + set + { + this._opstate = new KKVsRoleState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opstateSpecified + { + get + { + return this._opstate != null; + } + set + { + bool flag = value == (this._opstate == null); + if (flag) + { + this._opstate = (value ? new KKVsRoleState?(this.opstate) : null); + } + } + } + + private PkResultType? _result; + + private int? _winpoint; + + private uint? _honorpoint; + + private int? _rank; + + private readonly List _items = new List(); + + private int? _firstrank; + + private uint? _dragoncount; + + private KKVsRoleState? _mystate; + + private KKVsRoleState? _opstate; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializewinpoint() + { + return this.winpointSpecified; + } + + private void Resetwinpoint() + { + this.winpointSpecified = false; + } + + private bool ShouldSerializehonorpoint() + { + return this.honorpointSpecified; + } + + private void Resethonorpoint() + { + this.honorpointSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializefirstrank() + { + return this.firstrankSpecified; + } + + private void Resetfirstrank() + { + this.firstrankSpecified = false; + } + + private bool ShouldSerializedragoncount() + { + return this.dragoncountSpecified; + } + + private void Resetdragoncount() + { + this.dragoncountSpecified = false; + } + + private bool ShouldSerializemystate() + { + return this.mystateSpecified; + } + + private void Resetmystate() + { + this.mystateSpecified = false; + } + + private bool ShouldSerializeopstate() + { + return this.opstateSpecified; + } + + private void Resetopstate() + { + this.opstateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs.meta new file mode 100644 index 00000000..21d24e5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2245cbdcda8a57d41a71dec278988577 +timeCreated: 1611403422 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkResultType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkResultType.cs new file mode 100644 index 00000000..16cc8ae9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkResultType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkResultType")] + public enum PkResultType + { + [ProtoEnum(Name = "PkResult_Win", Value = 1)] + PkResult_Win = 1, + [ProtoEnum(Name = "PkResult_Lose", Value = 2)] + PkResult_Lose, + [ProtoEnum(Name = "PkResult_Draw", Value = 3)] + PkResult_Draw + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkResultType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkResultType.cs.meta new file mode 100644 index 00000000..6ae585b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkResultType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c071a3f609d1284ba028004287d9d2e +timeCreated: 1611404097 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs new file mode 100644 index 00000000..4b1ada0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs @@ -0,0 +1,94 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkRoleInfo")] + [Serializable] + public class PkRoleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pkrec", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkRoleRec pkrec + { + get + { + return this._pkrec; + } + set + { + this._pkrec = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolebrief", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleSmallInfo rolebrief + { + get + { + return this._rolebrief; + } + set + { + this._rolebrief = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + private PkRoleRec _pkrec = null; + + private RoleSmallInfo _rolebrief = null; + + private uint? _serverid; + + private IExtension extensionObject; + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs.meta new file mode 100644 index 00000000..0b437892 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: faf759287cc65f446837315c9c6d021a +timeCreated: 1611404929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs new file mode 100644 index 00000000..8688c6f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkRoleInfoNtf")] + [Serializable] + public class PkRoleInfoNtf : IExtensible + { + [ProtoMember(1, Name = "pkroleinfo", DataFormat = DataFormat.Default)] + public List pkroleinfo + { + get + { + return this._pkroleinfo; + } + } + + private readonly List _pkroleinfo = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs.meta new file mode 100644 index 00000000..c05ccb74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c81921e41abb36048817cfe17a11387c +timeCreated: 1611404533 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs new file mode 100644 index 00000000..19531b61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkRoleRec")] + [Serializable] + public class PkRoleRec : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "win", DataFormat = DataFormat.TwosComplement)] + public uint win + { + get + { + return this._win ?? 0u; + } + set + { + this._win = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winSpecified + { + get + { + return this._win != null; + } + set + { + bool flag = value == (this._win == null); + if (flag) + { + this._win = (value ? new uint?(this.win) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lose", DataFormat = DataFormat.TwosComplement)] + public uint lose + { + get + { + return this._lose ?? 0u; + } + set + { + this._lose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loseSpecified + { + get + { + return this._lose != null; + } + set + { + bool flag = value == (this._lose == null); + if (flag) + { + this._lose = (value ? new uint?(this.lose) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "draw", DataFormat = DataFormat.TwosComplement)] + public uint draw + { + get + { + return this._draw ?? 0u; + } + set + { + this._draw = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool drawSpecified + { + get + { + return this._draw != null; + } + set + { + bool flag = value == (this._draw == null); + if (flag) + { + this._draw = (value ? new uint?(this.draw) : null); + } + } + } + + [ProtoMember(5, Name = "records", DataFormat = DataFormat.TwosComplement)] + public List records + { + get + { + return this._records; + } + } + + private uint? _point; + + private uint? _win; + + private uint? _lose; + + private uint? _draw; + + private readonly List _records = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializewin() + { + return this.winSpecified; + } + + private void Resetwin() + { + this.winSpecified = false; + } + + private bool ShouldSerializelose() + { + return this.loseSpecified; + } + + private void Resetlose() + { + this.loseSpecified = false; + } + + private bool ShouldSerializedraw() + { + return this.drawSpecified; + } + + private void Resetdraw() + { + this.drawSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs.meta new file mode 100644 index 00000000..88021761 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkRoleRec.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 167457c1d231f3e4893428ad48b16ec4 +timeCreated: 1611403288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkTimeoutNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/PkTimeoutNtf.cs new file mode 100644 index 00000000..6c2900b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkTimeoutNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PkTimeoutNtf")] + [Serializable] + public class PkTimeoutNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "timeout", DataFormat = DataFormat.TwosComplement)] + public uint timeout + { + get + { + return this._timeout ?? 0u; + } + set + { + this._timeout = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeoutSpecified + { + get + { + return this._timeout != null; + } + set + { + bool flag = value == (this._timeout == null); + if (flag) + { + this._timeout = (value ? new uint?(this.timeout) : null); + } + } + } + + private uint? _timeout; + + private IExtension extensionObject; + + private bool ShouldSerializetimeout() + { + return this.timeoutSpecified; + } + + private void Resettimeout() + { + this.timeoutSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PkTimeoutNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PkTimeoutNtf.cs.meta new file mode 100644 index 00000000..a89447a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PkTimeoutNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8067bf0ac23c56b4baed0f0e818cec86 +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationArg.cs new file mode 100644 index 00000000..996a8a5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlantCultivationArg")] + [Serializable] + public class PlantCultivationArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public uint farmland_id + { + get + { + return this._farmland_id ?? 0u; + } + set + { + this._farmland_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool farmland_idSpecified + { + get + { + return this._farmland_id != null; + } + set + { + bool flag = value == (this._farmland_id == null); + if (flag) + { + this._farmland_id = (value ? new uint?(this.farmland_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "operate_type", DataFormat = DataFormat.TwosComplement)] + public PlantGrowState operate_type + { + get + { + return this._operate_type ?? PlantGrowState.growDrought; + } + set + { + this._operate_type = new PlantGrowState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool operate_typeSpecified + { + get + { + return this._operate_type != null; + } + set + { + bool flag = value == (this._operate_type == null); + if (flag) + { + this._operate_type = (value ? new PlantGrowState?(this.operate_type) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public GardenQuestType quest_type + { + get + { + return this._quest_type ?? GardenQuestType.MYSELF; + } + set + { + this._quest_type = new GardenQuestType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new GardenQuestType?(this.quest_type) : null); + } + } + } + + private ulong? _garden_id; + + private uint? _farmland_id; + + private PlantGrowState? _operate_type; + + private GardenQuestType? _quest_type; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializefarmland_id() + { + return this.farmland_idSpecified; + } + + private void Resetfarmland_id() + { + this.farmland_idSpecified = false; + } + + private bool ShouldSerializeoperate_type() + { + return this.operate_typeSpecified; + } + + private void Resetoperate_type() + { + this.operate_typeSpecified = false; + } + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationArg.cs.meta new file mode 100644 index 00000000..99cdffe1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16a9af905d544bd40b793799dee80f8b +timeCreated: 1611403289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationRes.cs new file mode 100644 index 00000000..b46ea6bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlantCultivationRes")] + [Serializable] + public class PlantCultivationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "growup_amount", DataFormat = DataFormat.FixedSize)] + public float growup_amount + { + get + { + return this._growup_amount ?? 0f; + } + set + { + this._growup_amount = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool growup_amountSpecified + { + get + { + return this._growup_amount != null; + } + set + { + bool flag = value == (this._growup_amount == null); + if (flag) + { + this._growup_amount = (value ? new float?(this.growup_amount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "notice_times", DataFormat = DataFormat.TwosComplement)] + public uint notice_times + { + get + { + return this._notice_times ?? 0u; + } + set + { + this._notice_times = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool notice_timesSpecified + { + get + { + return this._notice_times != null; + } + set + { + bool flag = value == (this._notice_times == null); + if (flag) + { + this._notice_times = (value ? new uint?(this.notice_times) : null); + } + } + } + + private ErrorCode? _result; + + private float? _growup_amount; + + private uint? _notice_times; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializegrowup_amount() + { + return this.growup_amountSpecified; + } + + private void Resetgrowup_amount() + { + this.growup_amountSpecified = false; + } + + private bool ShouldSerializenotice_times() + { + return this.notice_timesSpecified; + } + + private void Resetnotice_times() + { + this.notice_timesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationRes.cs.meta new file mode 100644 index 00000000..641bd4dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantCultivationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c1366e2cff36344199bf257d8ead33b +timeCreated: 1611403690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantGrowState.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlantGrowState.cs new file mode 100644 index 00000000..6329a453 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantGrowState.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlantGrowState")] + public enum PlantGrowState + { + [ProtoEnum(Name = "growDrought", Value = 1)] + growDrought = 1, + [ProtoEnum(Name = "growPest", Value = 2)] + growPest, + [ProtoEnum(Name = "growSluggish", Value = 3)] + growSluggish, + [ProtoEnum(Name = "growCD", Value = 4)] + growCD, + [ProtoEnum(Name = "growMature", Value = 5)] + growMature, + [ProtoEnum(Name = "growCorrect", Value = 6)] + growCorrect + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantGrowState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlantGrowState.cs.meta new file mode 100644 index 00000000..4f2e02ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantGrowState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a573143b5d6f544db6e1b2395556323 +timeCreated: 1611404091 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestArg.cs new file mode 100644 index 00000000..2dd87c63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlantHarvestArg")] + [Serializable] + public class PlantHarvestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public uint farmland_id + { + get + { + return this._farmland_id ?? 0u; + } + set + { + this._farmland_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool farmland_idSpecified + { + get + { + return this._farmland_id != null; + } + set + { + bool flag = value == (this._farmland_id == null); + if (flag) + { + this._farmland_id = (value ? new uint?(this.farmland_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public GardenQuestType quest_type + { + get + { + return this._quest_type ?? GardenQuestType.MYSELF; + } + set + { + this._quest_type = new GardenQuestType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new GardenQuestType?(this.quest_type) : null); + } + } + } + + private ulong? _garden_id; + + private uint? _farmland_id; + + private GardenQuestType? _quest_type; + + private IExtension extensionObject; + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializefarmland_id() + { + return this.farmland_idSpecified; + } + + private void Resetfarmland_id() + { + this.farmland_idSpecified = false; + } + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestArg.cs.meta new file mode 100644 index 00000000..b1ce9e8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df77a4b75b69602429cd6abab7bb72d1 +timeCreated: 1611404692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestRes.cs new file mode 100644 index 00000000..a1fbc249 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlantHarvestRes")] + [Serializable] + public class PlantHarvestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(3, IsRequired = false, Name = "harvest", DataFormat = DataFormat.Default)] + public bool harvest + { + get + { + return this._harvest ?? false; + } + set + { + this._harvest = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool harvestSpecified + { + get + { + return this._harvest != null; + } + set + { + bool flag = value == (this._harvest == null); + if (flag) + { + this._harvest = (value ? new bool?(this.harvest) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "extra", DataFormat = DataFormat.Default)] + public bool extra + { + get + { + return this._extra ?? false; + } + set + { + this._extra = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extraSpecified + { + get + { + return this._extra != null; + } + set + { + bool flag = value == (this._extra == null); + if (flag) + { + this._extra = (value ? new bool?(this.extra) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _items = new List(); + + private bool? _harvest; + + private bool? _extra; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeharvest() + { + return this.harvestSpecified; + } + + private void Resetharvest() + { + this.harvestSpecified = false; + } + + private bool ShouldSerializeextra() + { + return this.extraSpecified; + } + + private void Resetextra() + { + this.extraSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestRes.cs.meta new file mode 100644 index 00000000..6ba87c8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantHarvestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9903eb7aa48da4241a998e005f02af01 +timeCreated: 1611404193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlantInfo.cs new file mode 100644 index 00000000..61c17cd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantInfo.cs @@ -0,0 +1,504 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlantInfo")] + [Serializable] + public class PlantInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public uint farmland_id + { + get + { + return this._farmland_id ?? 0u; + } + set + { + this._farmland_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool farmland_idSpecified + { + get + { + return this._farmland_id != null; + } + set + { + bool flag = value == (this._farmland_id == null); + if (flag) + { + this._farmland_id = (value ? new uint?(this.farmland_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "seed_id", DataFormat = DataFormat.TwosComplement)] + public uint seed_id + { + get + { + return this._seed_id ?? 0u; + } + set + { + this._seed_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool seed_idSpecified + { + get + { + return this._seed_id != null; + } + set + { + bool flag = value == (this._seed_id == null); + if (flag) + { + this._seed_id = (value ? new uint?(this.seed_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "plant_grow_state", DataFormat = DataFormat.TwosComplement)] + public PlantGrowState plant_grow_state + { + get + { + return this._plant_grow_state ?? PlantGrowState.growDrought; + } + set + { + this._plant_grow_state = new PlantGrowState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool plant_grow_stateSpecified + { + get + { + return this._plant_grow_state != null; + } + set + { + bool flag = value == (this._plant_grow_state == null); + if (flag) + { + this._plant_grow_state = (value ? new PlantGrowState?(this.plant_grow_state) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "grow_times", DataFormat = DataFormat.TwosComplement)] + public uint grow_times + { + get + { + return this._grow_times ?? 0u; + } + set + { + this._grow_times = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool grow_timesSpecified + { + get + { + return this._grow_times != null; + } + set + { + bool flag = value == (this._grow_times == null); + if (flag) + { + this._grow_times = (value ? new uint?(this.grow_times) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "growup_amount", DataFormat = DataFormat.FixedSize)] + public float growup_amount + { + get + { + return this._growup_amount ?? 0f; + } + set + { + this._growup_amount = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool growup_amountSpecified + { + get + { + return this._growup_amount != null; + } + set + { + bool flag = value == (this._growup_amount == null); + if (flag) + { + this._growup_amount = (value ? new float?(this.growup_amount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "mature_duration", DataFormat = DataFormat.TwosComplement)] + public uint mature_duration + { + get + { + return this._mature_duration ?? 0u; + } + set + { + this._mature_duration = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mature_durationSpecified + { + get + { + return this._mature_duration != null; + } + set + { + bool flag = value == (this._mature_duration == null); + if (flag) + { + this._mature_duration = (value ? new uint?(this.mature_duration) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "start_time", DataFormat = DataFormat.TwosComplement)] + public uint start_time + { + get + { + return this._start_time ?? 0u; + } + set + { + this._start_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool start_timeSpecified + { + get + { + return this._start_time != null; + } + set + { + bool flag = value == (this._start_time == null); + if (flag) + { + this._start_time = (value ? new uint?(this.start_time) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "stealed_times", DataFormat = DataFormat.TwosComplement)] + public uint stealed_times + { + get + { + return this._stealed_times ?? 0u; + } + set + { + this._stealed_times = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stealed_timesSpecified + { + get + { + return this._stealed_times != null; + } + set + { + bool flag = value == (this._stealed_times == null); + if (flag) + { + this._stealed_times = (value ? new uint?(this.stealed_times) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "growup_cd", DataFormat = DataFormat.TwosComplement)] + public uint growup_cd + { + get + { + return this._growup_cd ?? 0u; + } + set + { + this._growup_cd = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool growup_cdSpecified + { + get + { + return this._growup_cd != null; + } + set + { + bool flag = value == (this._growup_cd == null); + if (flag) + { + this._growup_cd = (value ? new uint?(this.growup_cd) : null); + } + } + } + + [ProtoMember(10, Name = "event_log", DataFormat = DataFormat.Default)] + public List event_log + { + get + { + return this._event_log; + } + } + + [ProtoMember(11, IsRequired = false, Name = "notice_times", DataFormat = DataFormat.TwosComplement)] + public uint notice_times + { + get + { + return this._notice_times ?? 0u; + } + set + { + this._notice_times = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool notice_timesSpecified + { + get + { + return this._notice_times != null; + } + set + { + bool flag = value == (this._notice_times == null); + if (flag) + { + this._notice_times = (value ? new uint?(this.notice_times) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "owner", DataFormat = DataFormat.TwosComplement)] + public ulong owner + { + get + { + return this._owner ?? 0UL; + } + set + { + this._owner = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ownerSpecified + { + get + { + return this._owner != null; + } + set + { + bool flag = value == (this._owner == null); + if (flag) + { + this._owner = (value ? new ulong?(this.owner) : null); + } + } + } + + private uint? _farmland_id; + + private uint? _seed_id; + + private PlantGrowState? _plant_grow_state; + + private uint? _grow_times; + + private float? _growup_amount; + + private uint? _mature_duration; + + private uint? _start_time; + + private uint? _stealed_times; + + private uint? _growup_cd; + + private readonly List _event_log = new List(); + + private uint? _notice_times; + + private ulong? _owner; + + private IExtension extensionObject; + + private bool ShouldSerializefarmland_id() + { + return this.farmland_idSpecified; + } + + private void Resetfarmland_id() + { + this.farmland_idSpecified = false; + } + + private bool ShouldSerializeseed_id() + { + return this.seed_idSpecified; + } + + private void Resetseed_id() + { + this.seed_idSpecified = false; + } + + private bool ShouldSerializeplant_grow_state() + { + return this.plant_grow_stateSpecified; + } + + private void Resetplant_grow_state() + { + this.plant_grow_stateSpecified = false; + } + + private bool ShouldSerializegrow_times() + { + return this.grow_timesSpecified; + } + + private void Resetgrow_times() + { + this.grow_timesSpecified = false; + } + + private bool ShouldSerializegrowup_amount() + { + return this.growup_amountSpecified; + } + + private void Resetgrowup_amount() + { + this.growup_amountSpecified = false; + } + + private bool ShouldSerializemature_duration() + { + return this.mature_durationSpecified; + } + + private void Resetmature_duration() + { + this.mature_durationSpecified = false; + } + + private bool ShouldSerializestart_time() + { + return this.start_timeSpecified; + } + + private void Resetstart_time() + { + this.start_timeSpecified = false; + } + + private bool ShouldSerializestealed_times() + { + return this.stealed_timesSpecified; + } + + private void Resetstealed_times() + { + this.stealed_timesSpecified = false; + } + + private bool ShouldSerializegrowup_cd() + { + return this.growup_cdSpecified; + } + + private void Resetgrowup_cd() + { + this.growup_cdSpecified = false; + } + + private bool ShouldSerializenotice_times() + { + return this.notice_timesSpecified; + } + + private void Resetnotice_times() + { + this.notice_timesSpecified = false; + } + + private bool ShouldSerializeowner() + { + return this.ownerSpecified; + } + + private void Resetowner() + { + this.ownerSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlantInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlantInfo.cs.meta new file mode 100644 index 00000000..3beafbe4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlantInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3443b034e79ae4d4ba577ad56fb060d5 +timeCreated: 1611403554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatBanAccount.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatBanAccount.cs new file mode 100644 index 00000000..ea95364b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatBanAccount.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatBanAccount")] + [Serializable] + public class PlatBanAccount : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reason", DataFormat = DataFormat.Default)] + public string reason + { + get + { + return this._reason ?? ""; + } + set + { + this._reason = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? this.reason : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "endtime", DataFormat = DataFormat.TwosComplement)] + public uint endtime + { + get + { + return this._endtime ?? 0u; + } + set + { + this._endtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endtimeSpecified + { + get + { + return this._endtime != null; + } + set + { + bool flag = value == (this._endtime == null); + if (flag) + { + this._endtime = (value ? new uint?(this.endtime) : null); + } + } + } + + private string _reason; + + private uint? _endtime; + + private IExtension extensionObject; + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + private bool ShouldSerializeendtime() + { + return this.endtimeSpecified; + } + + private void Resetendtime() + { + this.endtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatBanAccount.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlatBanAccount.cs.meta new file mode 100644 index 00000000..4c349d17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatBanAccount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b4c7fdd0ad6a114f9633df5e93712a9 +timeCreated: 1611403993 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs new file mode 100644 index 00000000..5326dd99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatFriend")] + [Serializable] + public class PlatFriend : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "nickname", DataFormat = DataFormat.Default)] + public string nickname + { + get + { + return this._nickname ?? ""; + } + set + { + this._nickname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nicknameSpecified + { + get + { + return this._nickname != null; + } + set + { + bool flag = value == (this._nickname == null); + if (flag) + { + this._nickname = (value ? this.nickname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "bigpic", DataFormat = DataFormat.Default)] + public string bigpic + { + get + { + return this._bigpic ?? ""; + } + set + { + this._bigpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bigpicSpecified + { + get + { + return this._bigpic != null; + } + set + { + bool flag = value == (this._bigpic == null); + if (flag) + { + this._bigpic = (value ? this.bigpic : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "midpic", DataFormat = DataFormat.Default)] + public string midpic + { + get + { + return this._midpic ?? ""; + } + set + { + this._midpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool midpicSpecified + { + get + { + return this._midpic != null; + } + set + { + bool flag = value == (this._midpic == null); + if (flag) + { + this._midpic = (value ? this.midpic : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "smallpic", DataFormat = DataFormat.Default)] + public string smallpic + { + get + { + return this._smallpic ?? ""; + } + set + { + this._smallpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool smallpicSpecified + { + get + { + return this._smallpic != null; + } + set + { + bool flag = value == (this._smallpic == null); + if (flag) + { + this._smallpic = (value ? this.smallpic : null); + } + } + } + + private string _openid; + + private string _nickname; + + private string _bigpic; + + private string _midpic; + + private string _smallpic; + + private IExtension extensionObject; + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializenickname() + { + return this.nicknameSpecified; + } + + private void Resetnickname() + { + this.nicknameSpecified = false; + } + + private bool ShouldSerializebigpic() + { + return this.bigpicSpecified; + } + + private void Resetbigpic() + { + this.bigpicSpecified = false; + } + + private bool ShouldSerializemidpic() + { + return this.midpicSpecified; + } + + private void Resetmidpic() + { + this.midpicSpecified = false; + } + + private bool ShouldSerializesmallpic() + { + return this.smallpicSpecified; + } + + private void Resetsmallpic() + { + this.smallpicSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs.meta new file mode 100644 index 00000000..e8e9afdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7e421b0fb7b10341a3861b9750c9dfc +timeCreated: 1611404889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs new file mode 100644 index 00000000..a1fa1b1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs @@ -0,0 +1,395 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatFriendRankInfo2Client")] + [Serializable] + public class PlatFriendRankInfo2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "platfriendBaseInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatFriend platfriendBaseInfo + { + get + { + return this._platfriendBaseInfo; + } + set + { + this._platfriendBaseInfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "hasGiveGift", DataFormat = DataFormat.Default)] + public bool hasGiveGift + { + get + { + return this._hasGiveGift ?? false; + } + set + { + this._hasGiveGift = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasGiveGiftSpecified + { + get + { + return this._hasGiveGift != null; + } + set + { + bool flag = value == (this._hasGiveGift == null); + if (flag) + { + this._hasGiveGift = (value ? new bool?(this.hasGiveGift) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "maxAbility", DataFormat = DataFormat.TwosComplement)] + public uint maxAbility + { + get + { + return this._maxAbility ?? 0u; + } + set + { + this._maxAbility = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxAbilitySpecified + { + get + { + return this._maxAbility != null; + } + set + { + bool flag = value == (this._maxAbility == null); + if (flag) + { + this._maxAbility = (value ? new uint?(this.maxAbility) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "vipLevel", DataFormat = DataFormat.TwosComplement)] + public uint vipLevel + { + get + { + return this._vipLevel ?? 0u; + } + set + { + this._vipLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipLevelSpecified + { + get + { + return this._vipLevel != null; + } + set + { + bool flag = value == (this._vipLevel == null); + if (flag) + { + this._vipLevel = (value ? new uint?(this.vipLevel) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "isOnline", DataFormat = DataFormat.Default)] + public bool isOnline + { + get + { + return this._isOnline ?? false; + } + set + { + this._isOnline = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isOnlineSpecified + { + get + { + return this._isOnline != null; + } + set + { + bool flag = value == (this._isOnline == null); + if (flag) + { + this._isOnline = (value ? new bool?(this.isOnline) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "startType", DataFormat = DataFormat.TwosComplement)] + public int startType + { + get + { + return this._startType ?? 0; + } + set + { + this._startType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startTypeSpecified + { + get + { + return this._startType != null; + } + set + { + bool flag = value == (this._startType == null); + if (flag) + { + this._startType = (value ? new int?(this.startType) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public int profession + { + get + { + return this._profession ?? 0; + } + set + { + this._profession = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new int?(this.profession) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "pre", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayConsume pre + { + get + { + return this._pre; + } + set + { + this._pre = value; + } + } + + private PlatFriend _platfriendBaseInfo = null; + + private uint? _rank; + + private bool? _hasGiveGift; + + private uint? _maxAbility; + + private uint? _vipLevel; + + private uint? _level; + + private bool? _isOnline; + + private int? _startType; + + private int? _profession; + + private PayConsume _pre = null; + + private IExtension extensionObject; + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializehasGiveGift() + { + return this.hasGiveGiftSpecified; + } + + private void ResethasGiveGift() + { + this.hasGiveGiftSpecified = false; + } + + private bool ShouldSerializemaxAbility() + { + return this.maxAbilitySpecified; + } + + private void ResetmaxAbility() + { + this.maxAbilitySpecified = false; + } + + private bool ShouldSerializevipLevel() + { + return this.vipLevelSpecified; + } + + private void ResetvipLevel() + { + this.vipLevelSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeisOnline() + { + return this.isOnlineSpecified; + } + + private void ResetisOnline() + { + this.isOnlineSpecified = false; + } + + private bool ShouldSerializestartType() + { + return this.startTypeSpecified; + } + + private void ResetstartType() + { + this.startTypeSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs.meta new file mode 100644 index 00000000..86e223fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendRankInfo2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47b06dc0c8842fc46aa6a62528ced84a +timeCreated: 1611403655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs new file mode 100644 index 00000000..70cd1476 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatFriendServer")] + [Serializable] + public class PlatFriendServer : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public int serverid + { + get + { + return this._serverid ?? 0; + } + set + { + this._serverid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new int?(this.serverid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + private string _openid; + + private int? _serverid; + + private string _rolename; + + private int? _level; + + private IExtension extensionObject; + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs.meta new file mode 100644 index 00000000..c10b966b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriendServer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9292f566eb3f4e42be8b5b4b7ab178d +timeCreated: 1611404537 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs new file mode 100644 index 00000000..d8ffe38f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatNotice")] + [Serializable] + public class PlatNotice : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "noticeid", DataFormat = DataFormat.TwosComplement)] + public uint noticeid + { + get + { + return this._noticeid ?? 0u; + } + set + { + this._noticeid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool noticeidSpecified + { + get + { + return this._noticeid != null; + } + set + { + bool flag = value == (this._noticeid == null); + if (flag) + { + this._noticeid = (value ? new uint?(this.noticeid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isopen", DataFormat = DataFormat.Default)] + public bool isopen + { + get + { + return this._isopen ?? false; + } + set + { + this._isopen = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isopenSpecified + { + get + { + return this._isopen != null; + } + set + { + bool flag = value == (this._isopen == null); + if (flag) + { + this._isopen = (value ? new bool?(this.isopen) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "areaid", DataFormat = DataFormat.TwosComplement)] + public uint areaid + { + get + { + return this._areaid ?? 0u; + } + set + { + this._areaid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool areaidSpecified + { + get + { + return this._areaid != null; + } + set + { + bool flag = value == (this._areaid == null); + if (flag) + { + this._areaid = (value ? new uint?(this.areaid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "platid", DataFormat = DataFormat.TwosComplement)] + public uint platid + { + get + { + return this._platid ?? 0u; + } + set + { + this._platid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool platidSpecified + { + get + { + return this._platid != null; + } + set + { + bool flag = value == (this._platid == null); + if (flag) + { + this._platid = (value ? new uint?(this.platid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "content", DataFormat = DataFormat.Default)] + public string content + { + get + { + return this._content ?? ""; + } + set + { + this._content = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contentSpecified + { + get + { + return this._content != null; + } + set + { + bool flag = value == (this._content == null); + if (flag) + { + this._content = (value ? this.content : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "updatetime", DataFormat = DataFormat.TwosComplement)] + public uint updatetime + { + get + { + return this._updatetime ?? 0u; + } + set + { + this._updatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatetimeSpecified + { + get + { + return this._updatetime != null; + } + set + { + bool flag = value == (this._updatetime == null); + if (flag) + { + this._updatetime = (value ? new uint?(this.updatetime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "isnew", DataFormat = DataFormat.Default)] + public bool isnew + { + get + { + return this._isnew ?? false; + } + set + { + this._isnew = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isnewSpecified + { + get + { + return this._isnew != null; + } + set + { + bool flag = value == (this._isnew == null); + if (flag) + { + this._isnew = (value ? new bool?(this.isnew) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "title", DataFormat = DataFormat.Default)] + public string title + { + get + { + return this._title ?? ""; + } + set + { + this._title = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? this.title : null); + } + } + } + + private uint? _type; + + private uint? _noticeid; + + private bool? _isopen; + + private uint? _areaid; + + private uint? _platid; + + private string _content; + + private uint? _updatetime; + + private bool? _isnew; + + private string _title; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializenoticeid() + { + return this.noticeidSpecified; + } + + private void Resetnoticeid() + { + this.noticeidSpecified = false; + } + + private bool ShouldSerializeisopen() + { + return this.isopenSpecified; + } + + private void Resetisopen() + { + this.isopenSpecified = false; + } + + private bool ShouldSerializeareaid() + { + return this.areaidSpecified; + } + + private void Resetareaid() + { + this.areaidSpecified = false; + } + + private bool ShouldSerializeplatid() + { + return this.platidSpecified; + } + + private void Resetplatid() + { + this.platidSpecified = false; + } + + private bool ShouldSerializecontent() + { + return this.contentSpecified; + } + + private void Resetcontent() + { + this.contentSpecified = false; + } + + private bool ShouldSerializeupdatetime() + { + return this.updatetimeSpecified; + } + + private void Resetupdatetime() + { + this.updatetimeSpecified = false; + } + + private bool ShouldSerializeisnew() + { + return this.isnewSpecified; + } + + private void Resetisnew() + { + this.isnewSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs.meta new file mode 100644 index 00000000..7e4326de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 584749060965c974695c68b2bfddb695 +timeCreated: 1611403754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs new file mode 100644 index 00000000..af0247db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatType")] + public enum PlatType + { + [ProtoEnum(Name = "PLAT_IOS", Value = 0)] + PLAT_IOS, + [ProtoEnum(Name = "PLAT_ANDROID", Value = 1)] + PLAT_ANDROID + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs.meta new file mode 100644 index 00000000..9dc897ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5e877c0491aed342bb956bd93cf8cf0 +timeCreated: 1611404878 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareAwardPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareAwardPara.cs new file mode 100644 index 00000000..c3551810 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareAwardPara.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatformShareAwardPara")] + [Serializable] + public class PlatformShareAwardPara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "share_scene_id", DataFormat = DataFormat.TwosComplement)] + public uint share_scene_id + { + get + { + return this._share_scene_id ?? 0u; + } + set + { + this._share_scene_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool share_scene_idSpecified + { + get + { + return this._share_scene_id != null; + } + set + { + bool flag = value == (this._share_scene_id == null); + if (flag) + { + this._share_scene_id = (value ? new uint?(this.share_scene_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "weekly_share_number", DataFormat = DataFormat.TwosComplement)] + public uint weekly_share_number + { + get + { + return this._weekly_share_number ?? 0u; + } + set + { + this._weekly_share_number = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekly_share_numberSpecified + { + get + { + return this._weekly_share_number != null; + } + set + { + bool flag = value == (this._weekly_share_number == null); + if (flag) + { + this._weekly_share_number = (value ? new uint?(this.weekly_share_number) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "weekly_award", DataFormat = DataFormat.Default)] + public bool weekly_award + { + get + { + return this._weekly_award ?? false; + } + set + { + this._weekly_award = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekly_awardSpecified + { + get + { + return this._weekly_award != null; + } + set + { + bool flag = value == (this._weekly_award == null); + if (flag) + { + this._weekly_award = (value ? new bool?(this.weekly_award) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "disappear_redpoint", DataFormat = DataFormat.Default)] + public bool disappear_redpoint + { + get + { + return this._disappear_redpoint ?? false; + } + set + { + this._disappear_redpoint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool disappear_redpointSpecified + { + get + { + return this._disappear_redpoint != null; + } + set + { + bool flag = value == (this._disappear_redpoint == null); + if (flag) + { + this._disappear_redpoint = (value ? new bool?(this.disappear_redpoint) : null); + } + } + } + + private uint? _share_scene_id; + + private uint? _weekly_share_number; + + private bool? _weekly_award; + + private bool? _disappear_redpoint; + + private IExtension extensionObject; + + private bool ShouldSerializeshare_scene_id() + { + return this.share_scene_idSpecified; + } + + private void Resetshare_scene_id() + { + this.share_scene_idSpecified = false; + } + + private bool ShouldSerializeweekly_share_number() + { + return this.weekly_share_numberSpecified; + } + + private void Resetweekly_share_number() + { + this.weekly_share_numberSpecified = false; + } + + private bool ShouldSerializeweekly_award() + { + return this.weekly_awardSpecified; + } + + private void Resetweekly_award() + { + this.weekly_awardSpecified = false; + } + + private bool ShouldSerializedisappear_redpoint() + { + return this.disappear_redpointSpecified; + } + + private void Resetdisappear_redpoint() + { + this.disappear_redpointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareAwardPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareAwardPara.cs.meta new file mode 100644 index 00000000..c2e52d06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareAwardPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f07dc515951cf846b44002c21268377 +timeCreated: 1611403514 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareResult.cs new file mode 100644 index 00000000..60deaea1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareResult.cs @@ -0,0 +1,601 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatformShareResult")] + [Serializable] + public class PlatformShareResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "last_update_time", DataFormat = DataFormat.TwosComplement)] + public uint last_update_time + { + get + { + return this._last_update_time ?? 0u; + } + set + { + this._last_update_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_update_timeSpecified + { + get + { + return this._last_update_time != null; + } + set + { + bool flag = value == (this._last_update_time == null); + if (flag) + { + this._last_update_time = (value ? new uint?(this.last_update_time) : null); + } + } + } + + [ProtoMember(2, Name = "firstpass_share_list", DataFormat = DataFormat.Default)] + public List firstpass_share_list + { + get + { + return this._firstpass_share_list; + } + } + + [ProtoMember(3, IsRequired = false, Name = "weekly_share_number", DataFormat = DataFormat.TwosComplement)] + public uint weekly_share_number + { + get + { + return this._weekly_share_number ?? 0u; + } + set + { + this._weekly_share_number = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekly_share_numberSpecified + { + get + { + return this._weekly_share_number != null; + } + set + { + bool flag = value == (this._weekly_share_number == null); + if (flag) + { + this._weekly_share_number = (value ? new uint?(this.weekly_share_number) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "weekly_award", DataFormat = DataFormat.Default)] + public bool weekly_award + { + get + { + return this._weekly_award ?? false; + } + set + { + this._weekly_award = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekly_awardSpecified + { + get + { + return this._weekly_award != null; + } + set + { + bool flag = value == (this._weekly_award == null); + if (flag) + { + this._weekly_award = (value ? new bool?(this.weekly_award) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "disappear_redpoint", DataFormat = DataFormat.Default)] + public bool disappear_redpoint + { + get + { + return this._disappear_redpoint ?? false; + } + set + { + this._disappear_redpoint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool disappear_redpointSpecified + { + get + { + return this._disappear_redpoint != null; + } + set + { + bool flag = value == (this._disappear_redpoint == null); + if (flag) + { + this._disappear_redpoint = (value ? new bool?(this.disappear_redpoint) : null); + } + } + } + + [ProtoMember(6, Name = "have_notify_scene", DataFormat = DataFormat.TwosComplement)] + public List have_notify_scene + { + get + { + return this._have_notify_scene; + } + } + + [ProtoMember(7, IsRequired = false, Name = "consume_dragoncoins_now", DataFormat = DataFormat.TwosComplement)] + public ulong consume_dragoncoins_now + { + get + { + return this._consume_dragoncoins_now ?? 0UL; + } + set + { + this._consume_dragoncoins_now = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consume_dragoncoins_nowSpecified + { + get + { + return this._consume_dragoncoins_now != null; + } + set + { + bool flag = value == (this._consume_dragoncoins_now == null); + if (flag) + { + this._consume_dragoncoins_now = (value ? new ulong?(this.consume_dragoncoins_now) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "consume_dragoncoins_before_1", DataFormat = DataFormat.TwosComplement)] + public ulong consume_dragoncoins_before_1 + { + get + { + return this._consume_dragoncoins_before_1 ?? 0UL; + } + set + { + this._consume_dragoncoins_before_1 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consume_dragoncoins_before_1Specified + { + get + { + return this._consume_dragoncoins_before_1 != null; + } + set + { + bool flag = value == (this._consume_dragoncoins_before_1 == null); + if (flag) + { + this._consume_dragoncoins_before_1 = (value ? new ulong?(this.consume_dragoncoins_before_1) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "consume_dragoncoins_before_2", DataFormat = DataFormat.TwosComplement)] + public ulong consume_dragoncoins_before_2 + { + get + { + return this._consume_dragoncoins_before_2 ?? 0UL; + } + set + { + this._consume_dragoncoins_before_2 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consume_dragoncoins_before_2Specified + { + get + { + return this._consume_dragoncoins_before_2 != null; + } + set + { + bool flag = value == (this._consume_dragoncoins_before_2 == null); + if (flag) + { + this._consume_dragoncoins_before_2 = (value ? new ulong?(this.consume_dragoncoins_before_2) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "consume_dragoncoins_before_3", DataFormat = DataFormat.TwosComplement)] + public ulong consume_dragoncoins_before_3 + { + get + { + return this._consume_dragoncoins_before_3 ?? 0UL; + } + set + { + this._consume_dragoncoins_before_3 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consume_dragoncoins_before_3Specified + { + get + { + return this._consume_dragoncoins_before_3 != null; + } + set + { + bool flag = value == (this._consume_dragoncoins_before_3 == null); + if (flag) + { + this._consume_dragoncoins_before_3 = (value ? new ulong?(this.consume_dragoncoins_before_3) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "consume_dragoncoins_before_4", DataFormat = DataFormat.TwosComplement)] + public ulong consume_dragoncoins_before_4 + { + get + { + return this._consume_dragoncoins_before_4 ?? 0UL; + } + set + { + this._consume_dragoncoins_before_4 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consume_dragoncoins_before_4Specified + { + get + { + return this._consume_dragoncoins_before_4 != null; + } + set + { + bool flag = value == (this._consume_dragoncoins_before_4 == null); + if (flag) + { + this._consume_dragoncoins_before_4 = (value ? new ulong?(this.consume_dragoncoins_before_4) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "consume_dragoncoins_before_5", DataFormat = DataFormat.TwosComplement)] + public ulong consume_dragoncoins_before_5 + { + get + { + return this._consume_dragoncoins_before_5 ?? 0UL; + } + set + { + this._consume_dragoncoins_before_5 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consume_dragoncoins_before_5Specified + { + get + { + return this._consume_dragoncoins_before_5 != null; + } + set + { + bool flag = value == (this._consume_dragoncoins_before_5 == null); + if (flag) + { + this._consume_dragoncoins_before_5 = (value ? new ulong?(this.consume_dragoncoins_before_5) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "consume_dragoncoins_before_6", DataFormat = DataFormat.TwosComplement)] + public ulong consume_dragoncoins_before_6 + { + get + { + return this._consume_dragoncoins_before_6 ?? 0UL; + } + set + { + this._consume_dragoncoins_before_6 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consume_dragoncoins_before_6Specified + { + get + { + return this._consume_dragoncoins_before_6 != null; + } + set + { + bool flag = value == (this._consume_dragoncoins_before_6 == null); + if (flag) + { + this._consume_dragoncoins_before_6 = (value ? new ulong?(this.consume_dragoncoins_before_6) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "consume_dragoncoins_before_7", DataFormat = DataFormat.TwosComplement)] + public ulong consume_dragoncoins_before_7 + { + get + { + return this._consume_dragoncoins_before_7 ?? 0UL; + } + set + { + this._consume_dragoncoins_before_7 = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool consume_dragoncoins_before_7Specified + { + get + { + return this._consume_dragoncoins_before_7 != null; + } + set + { + bool flag = value == (this._consume_dragoncoins_before_7 == null); + if (flag) + { + this._consume_dragoncoins_before_7 = (value ? new ulong?(this.consume_dragoncoins_before_7) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "last_update_consume", DataFormat = DataFormat.TwosComplement)] + public uint last_update_consume + { + get + { + return this._last_update_consume ?? 0u; + } + set + { + this._last_update_consume = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_update_consumeSpecified + { + get + { + return this._last_update_consume != null; + } + set + { + bool flag = value == (this._last_update_consume == null); + if (flag) + { + this._last_update_consume = (value ? new uint?(this.last_update_consume) : null); + } + } + } + + private uint? _last_update_time; + + private readonly List _firstpass_share_list = new List(); + + private uint? _weekly_share_number; + + private bool? _weekly_award; + + private bool? _disappear_redpoint; + + private readonly List _have_notify_scene = new List(); + + private ulong? _consume_dragoncoins_now; + + private ulong? _consume_dragoncoins_before_1; + + private ulong? _consume_dragoncoins_before_2; + + private ulong? _consume_dragoncoins_before_3; + + private ulong? _consume_dragoncoins_before_4; + + private ulong? _consume_dragoncoins_before_5; + + private ulong? _consume_dragoncoins_before_6; + + private ulong? _consume_dragoncoins_before_7; + + private uint? _last_update_consume; + + private IExtension extensionObject; + + private bool ShouldSerializelast_update_time() + { + return this.last_update_timeSpecified; + } + + private void Resetlast_update_time() + { + this.last_update_timeSpecified = false; + } + + private bool ShouldSerializeweekly_share_number() + { + return this.weekly_share_numberSpecified; + } + + private void Resetweekly_share_number() + { + this.weekly_share_numberSpecified = false; + } + + private bool ShouldSerializeweekly_award() + { + return this.weekly_awardSpecified; + } + + private void Resetweekly_award() + { + this.weekly_awardSpecified = false; + } + + private bool ShouldSerializedisappear_redpoint() + { + return this.disappear_redpointSpecified; + } + + private void Resetdisappear_redpoint() + { + this.disappear_redpointSpecified = false; + } + + private bool ShouldSerializeconsume_dragoncoins_now() + { + return this.consume_dragoncoins_nowSpecified; + } + + private void Resetconsume_dragoncoins_now() + { + this.consume_dragoncoins_nowSpecified = false; + } + + private bool ShouldSerializeconsume_dragoncoins_before_1() + { + return this.consume_dragoncoins_before_1Specified; + } + + private void Resetconsume_dragoncoins_before_1() + { + this.consume_dragoncoins_before_1Specified = false; + } + + private bool ShouldSerializeconsume_dragoncoins_before_2() + { + return this.consume_dragoncoins_before_2Specified; + } + + private void Resetconsume_dragoncoins_before_2() + { + this.consume_dragoncoins_before_2Specified = false; + } + + private bool ShouldSerializeconsume_dragoncoins_before_3() + { + return this.consume_dragoncoins_before_3Specified; + } + + private void Resetconsume_dragoncoins_before_3() + { + this.consume_dragoncoins_before_3Specified = false; + } + + private bool ShouldSerializeconsume_dragoncoins_before_4() + { + return this.consume_dragoncoins_before_4Specified; + } + + private void Resetconsume_dragoncoins_before_4() + { + this.consume_dragoncoins_before_4Specified = false; + } + + private bool ShouldSerializeconsume_dragoncoins_before_5() + { + return this.consume_dragoncoins_before_5Specified; + } + + private void Resetconsume_dragoncoins_before_5() + { + this.consume_dragoncoins_before_5Specified = false; + } + + private bool ShouldSerializeconsume_dragoncoins_before_6() + { + return this.consume_dragoncoins_before_6Specified; + } + + private void Resetconsume_dragoncoins_before_6() + { + this.consume_dragoncoins_before_6Specified = false; + } + + private bool ShouldSerializeconsume_dragoncoins_before_7() + { + return this.consume_dragoncoins_before_7Specified; + } + + private void Resetconsume_dragoncoins_before_7() + { + this.consume_dragoncoins_before_7Specified = false; + } + + private bool ShouldSerializelast_update_consume() + { + return this.last_update_consumeSpecified; + } + + private void Resetlast_update_consume() + { + this.last_update_consumeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareResult.cs.meta new file mode 100644 index 00000000..2570d83e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatformShareResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c5ecf6d093a8a9498927b48ae29cee7 +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceNtfData.cs new file mode 100644 index 00000000..af6849a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceNtfData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlayDiceNtfData")] + [Serializable] + public class PlayDiceNtfData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isDiceFull", DataFormat = DataFormat.Default)] + public bool isDiceFull + { + get + { + return this._isDiceFull ?? false; + } + set + { + this._isDiceFull = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isDiceFullSpecified + { + get + { + return this._isDiceFull != null; + } + set + { + bool flag = value == (this._isDiceFull == null); + if (flag) + { + this._isDiceFull = (value ? new bool?(this.isDiceFull) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "mapID", DataFormat = DataFormat.TwosComplement)] + public int mapID + { + get + { + return this._mapID ?? 0; + } + set + { + this._mapID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapIDSpecified + { + get + { + return this._mapID != null; + } + set + { + bool flag = value == (this._mapID == null); + if (flag) + { + this._mapID = (value ? new int?(this.mapID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public int slot + { + get + { + return this._slot ?? 0; + } + set + { + this._slot = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new int?(this.slot) : null); + } + } + } + + private bool? _isDiceFull; + + private int? _mapID; + + private int? _slot; + + private IExtension extensionObject; + + private bool ShouldSerializeisDiceFull() + { + return this.isDiceFullSpecified; + } + + private void ResetisDiceFull() + { + this.isDiceFullSpecified = false; + } + + private bool ShouldSerializemapID() + { + return this.mapIDSpecified; + } + + private void ResetmapID() + { + this.mapIDSpecified = false; + } + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceNtfData.cs.meta new file mode 100644 index 00000000..0331532f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ab59a665bd9e9a43980654e4d9f86e4 +timeCreated: 1611403792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverArg.cs new file mode 100644 index 00000000..c5c01246 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlayDiceOverArg")] + [Serializable] + public class PlayDiceOverArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverArg.cs.meta new file mode 100644 index 00000000..1ec8ab15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16949a4b872a3a140a5e44269455454f +timeCreated: 1611403288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverData.cs new file mode 100644 index 00000000..65c16bb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverData.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlayDiceOverData")] + [Serializable] + public class PlayDiceOverData : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverData.cs.meta new file mode 100644 index 00000000..b8eebfa3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57e4e490b0401a545ba211234fb4e292 +timeCreated: 1611403751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs new file mode 100644 index 00000000..552f5842 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs @@ -0,0 +1,164 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlayDiceOverRes")] + [Serializable] + public class PlayDiceOverRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "mapID", DataFormat = DataFormat.TwosComplement)] + public int mapID + { + get + { + return this._mapID ?? 0; + } + set + { + this._mapID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapIDSpecified + { + get + { + return this._mapID != null; + } + set + { + bool flag = value == (this._mapID == null); + if (flag) + { + this._mapID = (value ? new int?(this.mapID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "addBoxInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RiskBoxInfo addBoxInfo + { + get + { + return this._addBoxInfo; + } + set + { + this._addBoxInfo = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "hasTriggerBuy", DataFormat = DataFormat.Default)] + public bool hasTriggerBuy + { + get + { + return this._hasTriggerBuy ?? false; + } + set + { + this._hasTriggerBuy = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasTriggerBuySpecified + { + get + { + return this._hasTriggerBuy != null; + } + set + { + bool flag = value == (this._hasTriggerBuy == null); + if (flag) + { + this._hasTriggerBuy = (value ? new bool?(this.hasTriggerBuy) : null); + } + } + } + + private ErrorCode? _error; + + private int? _mapID; + + private RiskBoxInfo _addBoxInfo = null; + + private bool? _hasTriggerBuy; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializemapID() + { + return this.mapIDSpecified; + } + + private void ResetmapID() + { + this.mapIDSpecified = false; + } + + private bool ShouldSerializehasTriggerBuy() + { + return this.hasTriggerBuySpecified; + } + + private void ResethasTriggerBuy() + { + this.hasTriggerBuySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs.meta new file mode 100644 index 00000000..cdbbf9f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceOverRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03489bde66b4cd64cbde4b91d7cc2cd7 +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs new file mode 100644 index 00000000..d23720a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlayDiceRequestArg")] + [Serializable] + public class PlayDiceRequestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mapid", DataFormat = DataFormat.TwosComplement)] + public int mapid + { + get + { + return this._mapid ?? 0; + } + set + { + this._mapid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapidSpecified + { + get + { + return this._mapid != null; + } + set + { + bool flag = value == (this._mapid == null); + if (flag) + { + this._mapid = (value ? new int?(this.mapid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "randValue", DataFormat = DataFormat.TwosComplement)] + public int randValue + { + get + { + return this._randValue ?? 0; + } + set + { + this._randValue = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool randValueSpecified + { + get + { + return this._randValue != null; + } + set + { + bool flag = value == (this._randValue == null); + if (flag) + { + this._randValue = (value ? new int?(this.randValue) : null); + } + } + } + + private int? _mapid; + + private int? _randValue; + + private IExtension extensionObject; + + private bool ShouldSerializemapid() + { + return this.mapidSpecified; + } + + private void Resetmapid() + { + this.mapidSpecified = false; + } + + private bool ShouldSerializerandValue() + { + return this.randValueSpecified; + } + + private void ResetrandValue() + { + this.randValueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs.meta new file mode 100644 index 00000000..73dcbd9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 474cc9d4fda047b478715f2e51a9fe3a +timeCreated: 1611403653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs new file mode 100644 index 00000000..09bfba47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlayDiceRequestRes")] + [Serializable] + public class PlayDiceRequestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "getValue", DataFormat = DataFormat.TwosComplement)] + public int getValue + { + get + { + return this._getValue ?? 0; + } + set + { + this._getValue = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getValueSpecified + { + get + { + return this._getValue != null; + } + set + { + bool flag = value == (this._getValue == null); + if (flag) + { + this._getValue = (value ? new int?(this.getValue) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "leftDiceTime", DataFormat = DataFormat.TwosComplement)] + public int leftDiceTime + { + get + { + return this._leftDiceTime ?? 0; + } + set + { + this._leftDiceTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftDiceTimeSpecified + { + get + { + return this._leftDiceTime != null; + } + set + { + bool flag = value == (this._leftDiceTime == null); + if (flag) + { + this._leftDiceTime = (value ? new int?(this.leftDiceTime) : null); + } + } + } + + private ErrorCode? _error; + + private int? _getValue; + + private int? _leftDiceTime; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializegetValue() + { + return this.getValueSpecified; + } + + private void ResetgetValue() + { + this.getValueSpecified = false; + } + + private bool ShouldSerializeleftDiceTime() + { + return this.leftDiceTimeSpecified; + } + + private void ResetleftDiceTime() + { + this.leftDiceTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs.meta new file mode 100644 index 00000000..28857c26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlayDiceRequestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a6e8cacb640d7d46a276ae5bf390aec +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PokerTournamentEndReFundMsg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PokerTournamentEndReFundMsg.cs new file mode 100644 index 00000000..72ef7c5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PokerTournamentEndReFundMsg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PokerTournamentEndReFundMsg")] + [Serializable] + public class PokerTournamentEndReFundMsg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PokerTournamentEndReFundMsg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PokerTournamentEndReFundMsg.cs.meta new file mode 100644 index 00000000..a1ee4aae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PokerTournamentEndReFundMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e905fc5ea547d04487645334c06edbd +timeCreated: 1611403905 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Position.cs b/Client/Assets/Scripts/XMainClient/KKSG/Position.cs new file mode 100644 index 00000000..8e750d88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Position.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Position")] + [Serializable] + public class Position : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "pos_x", DataFormat = DataFormat.TwosComplement)] + public int pos_x + { + get + { + return this._pos_x ?? 0; + } + set + { + this._pos_x = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pos_xSpecified + { + get + { + return this._pos_x != null; + } + set + { + bool flag = value == (this._pos_x == null); + if (flag) + { + this._pos_x = (value ? new int?(this.pos_x) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "pos_y", DataFormat = DataFormat.TwosComplement)] + public int pos_y + { + get + { + return this._pos_y ?? 0; + } + set + { + this._pos_y = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pos_ySpecified + { + get + { + return this._pos_y != null; + } + set + { + bool flag = value == (this._pos_y == null); + if (flag) + { + this._pos_y = (value ? new int?(this.pos_y) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "pos_z", DataFormat = DataFormat.TwosComplement)] + public int pos_z + { + get + { + return this._pos_z ?? 0; + } + set + { + this._pos_z = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pos_zSpecified + { + get + { + return this._pos_z != null; + } + set + { + bool flag = value == (this._pos_z == null); + if (flag) + { + this._pos_z = (value ? new int?(this.pos_z) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "face", DataFormat = DataFormat.TwosComplement)] + public int face + { + get + { + return this._face ?? 0; + } + set + { + this._face = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool faceSpecified + { + get + { + return this._face != null; + } + set + { + bool flag = value == (this._face == null); + if (flag) + { + this._face = (value ? new int?(this.face) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "bTransfer", DataFormat = DataFormat.Default)] + public bool bTransfer + { + get + { + return this._bTransfer ?? false; + } + set + { + this._bTransfer = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bTransferSpecified + { + get + { + return this._bTransfer != null; + } + set + { + bool flag = value == (this._bTransfer == null); + if (flag) + { + this._bTransfer = (value ? new bool?(this.bTransfer) : null); + } + } + } + + private ulong? _uid; + + private int? _pos_x; + + private int? _pos_y; + + private int? _pos_z; + + private int? _face; + + private bool? _bTransfer; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializepos_x() + { + return this.pos_xSpecified; + } + + private void Resetpos_x() + { + this.pos_xSpecified = false; + } + + private bool ShouldSerializepos_y() + { + return this.pos_ySpecified; + } + + private void Resetpos_y() + { + this.pos_ySpecified = false; + } + + private bool ShouldSerializepos_z() + { + return this.pos_zSpecified; + } + + private void Resetpos_z() + { + this.pos_zSpecified = false; + } + + private bool ShouldSerializeface() + { + return this.faceSpecified; + } + + private void Resetface() + { + this.faceSpecified = false; + } + + private bool ShouldSerializebTransfer() + { + return this.bTransferSpecified; + } + + private void ResetbTransfer() + { + this.bTransferSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Position.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Position.cs.meta new file mode 100644 index 00000000..3153bd35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Position.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9df9d51c124e4464ea22415bb85fce4a +timeCreated: 1611404239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PositionCheck.cs b/Client/Assets/Scripts/XMainClient/KKSG/PositionCheck.cs new file mode 100644 index 00000000..124fd128 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PositionCheck.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PositionCheck")] + [Serializable] + public class PositionCheck : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "position", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 position + { + get + { + return this._position; + } + set + { + this._position = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "face", DataFormat = DataFormat.FixedSize)] + public float face + { + get + { + return this._face ?? 0f; + } + set + { + this._face = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool faceSpecified + { + get + { + return this._face != null; + } + set + { + bool flag = value == (this._face == null); + if (flag) + { + this._face = (value ? new float?(this.face) : null); + } + } + } + + private ulong? _uid; + + private Vec3 _position = null; + + private float? _face; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeface() + { + return this.faceSpecified; + } + + private void Resetface() + { + this.faceSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PositionCheck.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PositionCheck.cs.meta new file mode 100644 index 00000000..2a794dca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PositionCheck.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2af92a7b82922f41af1a60fbbe581d6 +timeCreated: 1611404844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PositionCheckList.cs b/Client/Assets/Scripts/XMainClient/KKSG/PositionCheckList.cs new file mode 100644 index 00000000..5cd3e9c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PositionCheckList.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PositionCheckList")] + [Serializable] + public class PositionCheckList : IExtensible + { + [ProtoMember(1, Name = "positions", DataFormat = DataFormat.Default)] + public List positions + { + get + { + return this._positions; + } + } + + private readonly List _positions = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PositionCheckList.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PositionCheckList.cs.meta new file mode 100644 index 00000000..901e92ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PositionCheckList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c468029ecab78874fb835b8b13cce204 +timeCreated: 1611404501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PrivateChatList.cs b/Client/Assets/Scripts/XMainClient/KKSG/PrivateChatList.cs new file mode 100644 index 00000000..0322e28b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PrivateChatList.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PrivateChatList")] + [Serializable] + public class PrivateChatList : IExtensible + { + [ProtoMember(1, Name = "rolelist", DataFormat = DataFormat.Default)] + public List rolelist + { + get + { + return this._rolelist; + } + } + + [ProtoMember(2, Name = "hasOfflineChat", DataFormat = DataFormat.Default)] + public List hasOfflineChat + { + get + { + return this._hasOfflineChat; + } + } + + [ProtoMember(3, Name = "lastChatTime", DataFormat = DataFormat.TwosComplement)] + public List lastChatTime + { + get + { + return this._lastChatTime; + } + } + + private readonly List _rolelist = new List(); + + private readonly List _hasOfflineChat = new List(); + + private readonly List _lastChatTime = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PrivateChatList.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PrivateChatList.cs.meta new file mode 100644 index 00000000..bbdb4368 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PrivateChatList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f614392b516ee4c478d3eed80c700a17 +timeCreated: 1611404880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PunishDataType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PunishDataType.cs new file mode 100644 index 00000000..4a0db414 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PunishDataType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PunishDataType")] + public enum PunishDataType + { + [ProtoEnum(Name = "PUNISH_DATA_UPATE", Value = 1)] + PUNISH_DATA_UPATE = 1, + [ProtoEnum(Name = "PUNISH_DATA_DELETE", Value = 2)] + PUNISH_DATA_DELETE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PunishDataType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PunishDataType.cs.meta new file mode 100644 index 00000000..1cd9c715 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PunishDataType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85b8736ad08097c4da857dbcc85f34d1 +timeCreated: 1611404052 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PunishType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PunishType.cs new file mode 100644 index 00000000..fee4f320 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PunishType.cs @@ -0,0 +1,42 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PunishType")] + public enum PunishType + { + [ProtoEnum(Name = "PUNISH_NONE", Value = 0)] + PUNISH_NONE, + [ProtoEnum(Name = "PUNISH_USER_LOGIN", Value = 1)] + PUNISH_USER_LOGIN, + [ProtoEnum(Name = "PUNISH_USER_CHAT", Value = 2)] + PUNISH_USER_CHAT, + [ProtoEnum(Name = "PUNISH_USER_TEMP", Value = 3)] + PUNISH_USER_TEMP, + [ProtoEnum(Name = "PUNISH_USER_WORLDBOSS_RANK", Value = 4)] + PUNISH_USER_WORLDBOSS_RANK, + [ProtoEnum(Name = "PUNISH_USER_ROLE_GUILDBOSS", Value = 5)] + PUNISH_USER_ROLE_GUILDBOSS, + [ProtoEnum(Name = "PUNISH_USER_PK_RANK", Value = 6)] + PUNISH_USER_PK_RANK, + [ProtoEnum(Name = "PUNISH_USER_ARENA_RANK", Value = 7)] + PUNISH_USER_ARENA_RANK, + [ProtoEnum(Name = "PUNISH_USER_TOWER", Value = 8)] + PUNISH_USER_TOWER, + [ProtoEnum(Name = "PUNISH_USER_FLOWER_RANK", Value = 9)] + PUNISH_USER_FLOWER_RANK, + [ProtoEnum(Name = "PUNISH_USER_GUILD_RANK", Value = 10)] + PUNISH_USER_GUILD_RANK, + [ProtoEnum(Name = "PUNISH_USER_GUILDBOSS_RANK", Value = 11)] + PUNISH_USER_GUILDBOSS_RANK, + [ProtoEnum(Name = "PUNISH_USER_ZERO_PROFIT", Value = 12)] + PUNISH_USER_ZERO_PROFIT, + [ProtoEnum(Name = "PUNISH_USER_DAILY_PLAY", Value = 13)] + PUNISH_USER_DAILY_PLAY, + [ProtoEnum(Name = "PUNISH_USER_MULTI_ACTIVITY", Value = 14)] + PUNISH_USER_MULTI_ACTIVITY, + [ProtoEnum(Name = "PUNISH_USER_HG", Value = 15)] + PUNISH_USER_HG + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PunishType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PunishType.cs.meta new file mode 100644 index 00000000..7344137c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PunishType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e0e82c28675c5741a2122a1f4652e1a +timeCreated: 1611403606 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs b/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs new file mode 100644 index 00000000..04e7948f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PushConfig")] + [Serializable] + public class PushConfig : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "forbid", DataFormat = DataFormat.Default)] + public bool forbid + { + get + { + return this._forbid ?? false; + } + set + { + this._forbid = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool forbidSpecified + { + get + { + return this._forbid != null; + } + set + { + bool flag = value == (this._forbid == null); + if (flag) + { + this._forbid = (value ? new bool?(this.forbid) : null); + } + } + } + + private uint? _type; + + private bool? _forbid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeforbid() + { + return this.forbidSpecified; + } + + private void Resetforbid() + { + this.forbidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs.meta new file mode 100644 index 00000000..3856ae15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushConfig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6ef2f9b90bb3c74eae89d9a361ee1bf +timeCreated: 1611404528 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs new file mode 100644 index 00000000..ca90e223 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PushInfo")] + [Serializable] + public class PushInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sub_type", DataFormat = DataFormat.TwosComplement)] + public uint sub_type + { + get + { + return this._sub_type ?? 0u; + } + set + { + this._sub_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sub_typeSpecified + { + get + { + return this._sub_type != null; + } + set + { + bool flag = value == (this._sub_type == null); + if (flag) + { + this._sub_type = (value ? new uint?(this.sub_type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _type; + + private uint? _sub_type; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializesub_type() + { + return this.sub_typeSpecified; + } + + private void Resetsub_type() + { + this.sub_typeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs.meta new file mode 100644 index 00000000..bb3143b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec909d0254b325f4ca0c0e59129c24ec +timeCreated: 1611404787 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushPraise.cs b/Client/Assets/Scripts/XMainClient/KKSG/PushPraise.cs new file mode 100644 index 00000000..441684ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushPraise.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PushPraise")] + [Serializable] + public class PushPraise : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public CommentType type + { + get + { + return this._type ?? CommentType.COMMENT_NEST; + } + set + { + this._type = new CommentType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new CommentType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "spriteid", DataFormat = DataFormat.TwosComplement)] + public uint spriteid + { + get + { + return this._spriteid ?? 0u; + } + set + { + this._spriteid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool spriteidSpecified + { + get + { + return this._spriteid != null; + } + set + { + bool flag = value == (this._spriteid == null); + if (flag) + { + this._spriteid = (value ? new uint?(this.spriteid) : null); + } + } + } + + private CommentType? _type; + + private uint? _spriteid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializespriteid() + { + return this.spriteidSpecified; + } + + private void Resetspriteid() + { + this.spriteidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushPraise.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PushPraise.cs.meta new file mode 100644 index 00000000..e8fb74dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushPraise.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f33d622f829d9f44aa17f63c03943f6 +timeCreated: 1611403610 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs new file mode 100644 index 00000000..a9209af4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PushQuestionNtf")] + [Serializable] + public class PushQuestionNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "qid", DataFormat = DataFormat.TwosComplement)] + public uint qid + { + get + { + return this._qid ?? 0u; + } + set + { + this._qid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qidSpecified + { + get + { + return this._qid != null; + } + set + { + bool flag = value == (this._qid == null); + if (flag) + { + this._qid = (value ? new uint?(this.qid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "serialNum", DataFormat = DataFormat.TwosComplement)] + public uint serialNum + { + get + { + return this._serialNum ?? 0u; + } + set + { + this._serialNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serialNumSpecified + { + get + { + return this._serialNum != null; + } + set + { + bool flag = value == (this._serialNum == null); + if (flag) + { + this._serialNum = (value ? new uint?(this.serialNum) : null); + } + } + } + + private uint? _qid; + + private uint? _serialNum; + + private IExtension extensionObject; + + private bool ShouldSerializeqid() + { + return this.qidSpecified; + } + + private void Resetqid() + { + this.qidSpecified = false; + } + + private bool ShouldSerializeserialNum() + { + return this.serialNumSpecified; + } + + private void ResetserialNum() + { + this.serialNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs.meta new file mode 100644 index 00000000..8bdec322 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PushQuestionNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9fb407ca3195ce84594443e9c0748580 +timeCreated: 1611404246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs new file mode 100644 index 00000000..e15be154 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpArg")] + [Serializable] + public class PvpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public PvpReqType type + { + get + { + return this._type ?? PvpReqType.PVP_REQ_IN_MATCH; + } + set + { + this._type = new PvpReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new PvpReqType?(this.type) : null); + } + } + } + + private PvpReqType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs.meta new file mode 100644 index 00000000..2e089336 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32ae517c7857c6b46934ecd1d0b74534 +timeCreated: 1611403550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs new file mode 100644 index 00000000..da733329 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpBaseData")] + [Serializable] + public class PvpBaseData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "wincountall", DataFormat = DataFormat.TwosComplement)] + public int wincountall + { + get + { + return this._wincountall ?? 0; + } + set + { + this._wincountall = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wincountallSpecified + { + get + { + return this._wincountall != null; + } + set + { + bool flag = value == (this._wincountall == null); + if (flag) + { + this._wincountall = (value ? new int?(this.wincountall) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "losecountall", DataFormat = DataFormat.TwosComplement)] + public int losecountall + { + get + { + return this._losecountall ?? 0; + } + set + { + this._losecountall = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losecountallSpecified + { + get + { + return this._losecountall != null; + } + set + { + bool flag = value == (this._losecountall == null); + if (flag) + { + this._losecountall = (value ? new int?(this.losecountall) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "drawcountall", DataFormat = DataFormat.TwosComplement)] + public int drawcountall + { + get + { + return this._drawcountall ?? 0; + } + set + { + this._drawcountall = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool drawcountallSpecified + { + get + { + return this._drawcountall != null; + } + set + { + bool flag = value == (this._drawcountall == null); + if (flag) + { + this._drawcountall = (value ? new int?(this.drawcountall) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "wincountthisweek", DataFormat = DataFormat.TwosComplement)] + public int wincountthisweek + { + get + { + return this._wincountthisweek ?? 0; + } + set + { + this._wincountthisweek = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wincountthisweekSpecified + { + get + { + return this._wincountthisweek != null; + } + set + { + bool flag = value == (this._wincountthisweek == null); + if (flag) + { + this._wincountthisweek = (value ? new int?(this.wincountthisweek) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "wincountweekmax", DataFormat = DataFormat.TwosComplement)] + public int wincountweekmax + { + get + { + return this._wincountweekmax ?? 0; + } + set + { + this._wincountweekmax = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wincountweekmaxSpecified + { + get + { + return this._wincountweekmax != null; + } + set + { + bool flag = value == (this._wincountweekmax == null); + if (flag) + { + this._wincountweekmax = (value ? new int?(this.wincountweekmax) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "jointodayintime", DataFormat = DataFormat.TwosComplement)] + public int jointodayintime + { + get + { + return this._jointodayintime ?? 0; + } + set + { + this._jointodayintime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jointodayintimeSpecified + { + get + { + return this._jointodayintime != null; + } + set + { + bool flag = value == (this._jointodayintime == null); + if (flag) + { + this._jointodayintime = (value ? new int?(this.jointodayintime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "jointodayintimemax", DataFormat = DataFormat.TwosComplement)] + public int jointodayintimemax + { + get + { + return this._jointodayintimemax ?? 0; + } + set + { + this._jointodayintimemax = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jointodayintimemaxSpecified + { + get + { + return this._jointodayintimemax != null; + } + set + { + bool flag = value == (this._jointodayintimemax == null); + if (flag) + { + this._jointodayintimemax = (value ? new int?(this.jointodayintimemax) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "matchingcount", DataFormat = DataFormat.TwosComplement)] + public int matchingcount + { + get + { + return this._matchingcount ?? 0; + } + set + { + this._matchingcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool matchingcountSpecified + { + get + { + return this._matchingcount != null; + } + set + { + bool flag = value == (this._matchingcount == null); + if (flag) + { + this._matchingcount = (value ? new int?(this.matchingcount) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "weekRewardHaveGet", DataFormat = DataFormat.Default)] + public bool weekRewardHaveGet + { + get + { + return this._weekRewardHaveGet ?? false; + } + set + { + this._weekRewardHaveGet = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekRewardHaveGetSpecified + { + get + { + return this._weekRewardHaveGet != null; + } + set + { + bool flag = value == (this._weekRewardHaveGet == null); + if (flag) + { + this._weekRewardHaveGet = (value ? new bool?(this.weekRewardHaveGet) : null); + } + } + } + + private int? _wincountall; + + private int? _losecountall; + + private int? _drawcountall; + + private int? _wincountthisweek; + + private int? _wincountweekmax; + + private int? _jointodayintime; + + private int? _jointodayintimemax; + + private int? _matchingcount; + + private bool? _weekRewardHaveGet; + + private IExtension extensionObject; + + private bool ShouldSerializewincountall() + { + return this.wincountallSpecified; + } + + private void Resetwincountall() + { + this.wincountallSpecified = false; + } + + private bool ShouldSerializelosecountall() + { + return this.losecountallSpecified; + } + + private void Resetlosecountall() + { + this.losecountallSpecified = false; + } + + private bool ShouldSerializedrawcountall() + { + return this.drawcountallSpecified; + } + + private void Resetdrawcountall() + { + this.drawcountallSpecified = false; + } + + private bool ShouldSerializewincountthisweek() + { + return this.wincountthisweekSpecified; + } + + private void Resetwincountthisweek() + { + this.wincountthisweekSpecified = false; + } + + private bool ShouldSerializewincountweekmax() + { + return this.wincountweekmaxSpecified; + } + + private void Resetwincountweekmax() + { + this.wincountweekmaxSpecified = false; + } + + private bool ShouldSerializejointodayintime() + { + return this.jointodayintimeSpecified; + } + + private void Resetjointodayintime() + { + this.jointodayintimeSpecified = false; + } + + private bool ShouldSerializejointodayintimemax() + { + return this.jointodayintimemaxSpecified; + } + + private void Resetjointodayintimemax() + { + this.jointodayintimemaxSpecified = false; + } + + private bool ShouldSerializematchingcount() + { + return this.matchingcountSpecified; + } + + private void Resetmatchingcount() + { + this.matchingcountSpecified = false; + } + + private bool ShouldSerializeweekRewardHaveGet() + { + return this.weekRewardHaveGetSpecified; + } + + private void ResetweekRewardHaveGet() + { + this.weekRewardHaveGetSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs.meta new file mode 100644 index 00000000..a955a123 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBaseData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dadd36704eafae14ba79ebb097ae9304 +timeCreated: 1611404649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleBeginData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleBeginData.cs new file mode 100644 index 00000000..e347038e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleBeginData.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpBattleBeginData")] + [Serializable] + public class PvpBattleBeginData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "thisGameCount", DataFormat = DataFormat.TwosComplement)] + public int thisGameCount + { + get + { + return this._thisGameCount ?? 0; + } + set + { + this._thisGameCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool thisGameCountSpecified + { + get + { + return this._thisGameCount != null; + } + set + { + bool flag = value == (this._thisGameCount == null); + if (flag) + { + this._thisGameCount = (value ? new int?(this.thisGameCount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "allGameCount", DataFormat = DataFormat.TwosComplement)] + public int allGameCount + { + get + { + return this._allGameCount ?? 0; + } + set + { + this._allGameCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allGameCountSpecified + { + get + { + return this._allGameCount != null; + } + set + { + bool flag = value == (this._allGameCount == null); + if (flag) + { + this._allGameCount = (value ? new int?(this.allGameCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "group1Leader", DataFormat = DataFormat.TwosComplement)] + public ulong group1Leader + { + get + { + return this._group1Leader ?? 0UL; + } + set + { + this._group1Leader = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group1LeaderSpecified + { + get + { + return this._group1Leader != null; + } + set + { + bool flag = value == (this._group1Leader == null); + if (flag) + { + this._group1Leader = (value ? new ulong?(this.group1Leader) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "group2Leader", DataFormat = DataFormat.TwosComplement)] + public ulong group2Leader + { + get + { + return this._group2Leader ?? 0UL; + } + set + { + this._group2Leader = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group2LeaderSpecified + { + get + { + return this._group2Leader != null; + } + set + { + bool flag = value == (this._group2Leader == null); + if (flag) + { + this._group2Leader = (value ? new ulong?(this.group2Leader) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "contiTime", DataFormat = DataFormat.TwosComplement)] + public uint contiTime + { + get + { + return this._contiTime ?? 0u; + } + set + { + this._contiTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contiTimeSpecified + { + get + { + return this._contiTime != null; + } + set + { + bool flag = value == (this._contiTime == null); + if (flag) + { + this._contiTime = (value ? new uint?(this.contiTime) : null); + } + } + } + + private int? _thisGameCount; + + private int? _allGameCount; + + private ulong? _group1Leader; + + private ulong? _group2Leader; + + private uint? _contiTime; + + private IExtension extensionObject; + + private bool ShouldSerializethisGameCount() + { + return this.thisGameCountSpecified; + } + + private void ResetthisGameCount() + { + this.thisGameCountSpecified = false; + } + + private bool ShouldSerializeallGameCount() + { + return this.allGameCountSpecified; + } + + private void ResetallGameCount() + { + this.allGameCountSpecified = false; + } + + private bool ShouldSerializegroup1Leader() + { + return this.group1LeaderSpecified; + } + + private void Resetgroup1Leader() + { + this.group1LeaderSpecified = false; + } + + private bool ShouldSerializegroup2Leader() + { + return this.group2LeaderSpecified; + } + + private void Resetgroup2Leader() + { + this.group2LeaderSpecified = false; + } + + private bool ShouldSerializecontiTime() + { + return this.contiTimeSpecified; + } + + private void ResetcontiTime() + { + this.contiTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleBeginData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleBeginData.cs.meta new file mode 100644 index 00000000..55329b24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleBeginData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad85abaa3f1a31a46b53ed7519fe1854 +timeCreated: 1611404335 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleEndData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleEndData.cs new file mode 100644 index 00000000..19c579c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleEndData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpBattleEndData")] + [Serializable] + public class PvpBattleEndData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "wingroup", DataFormat = DataFormat.TwosComplement)] + public int wingroup + { + get + { + return this._wingroup ?? 0; + } + set + { + this._wingroup = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wingroupSpecified + { + get + { + return this._wingroup != null; + } + set + { + bool flag = value == (this._wingroup == null); + if (flag) + { + this._wingroup = (value ? new int?(this.wingroup) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isAllEnd", DataFormat = DataFormat.Default)] + public bool isAllEnd + { + get + { + return this._isAllEnd ?? false; + } + set + { + this._isAllEnd = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isAllEndSpecified + { + get + { + return this._isAllEnd != null; + } + set + { + bool flag = value == (this._isAllEnd == null); + if (flag) + { + this._isAllEnd = (value ? new bool?(this.isAllEnd) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "reason", DataFormat = DataFormat.TwosComplement)] + public PVP_ONEGAMEEND_REASON reason + { + get + { + return this._reason ?? PVP_ONEGAMEEND_REASON.PVP_OGE_LEADER_DIE; + } + set + { + this._reason = new PVP_ONEGAMEEND_REASON?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? new PVP_ONEGAMEEND_REASON?(this.reason) : null); + } + } + } + + private int? _wingroup; + + private bool? _isAllEnd; + + private PVP_ONEGAMEEND_REASON? _reason; + + private IExtension extensionObject; + + private bool ShouldSerializewingroup() + { + return this.wingroupSpecified; + } + + private void Resetwingroup() + { + this.wingroupSpecified = false; + } + + private bool ShouldSerializeisAllEnd() + { + return this.isAllEndSpecified; + } + + private void ResetisAllEnd() + { + this.isAllEndSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleEndData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleEndData.cs.meta new file mode 100644 index 00000000..792db28c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleEndData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77e88aa5f12c99d4f981ea8a88df4bf7 +timeCreated: 1611403956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs new file mode 100644 index 00000000..2fe4b57f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpBattleKill")] + [Serializable] + public class PvpBattleKill : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "killID", DataFormat = DataFormat.TwosComplement)] + public ulong killID + { + get + { + return this._killID ?? 0UL; + } + set + { + this._killID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killIDSpecified + { + get + { + return this._killID != null; + } + set + { + bool flag = value == (this._killID == null); + if (flag) + { + this._killID = (value ? new ulong?(this.killID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "deadID", DataFormat = DataFormat.TwosComplement)] + public ulong deadID + { + get + { + return this._deadID ?? 0UL; + } + set + { + this._deadID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deadIDSpecified + { + get + { + return this._deadID != null; + } + set + { + bool flag = value == (this._deadID == null); + if (flag) + { + this._deadID = (value ? new ulong?(this.deadID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "reviveTime", DataFormat = DataFormat.TwosComplement)] + public uint reviveTime + { + get + { + return this._reviveTime ?? 0u; + } + set + { + this._reviveTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reviveTimeSpecified + { + get + { + return this._reviveTime != null; + } + set + { + bool flag = value == (this._reviveTime == null); + if (flag) + { + this._reviveTime = (value ? new uint?(this.reviveTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "contiKillCount", DataFormat = DataFormat.TwosComplement)] + public int contiKillCount + { + get + { + return this._contiKillCount ?? 0; + } + set + { + this._contiKillCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contiKillCountSpecified + { + get + { + return this._contiKillCount != null; + } + set + { + bool flag = value == (this._contiKillCount == null); + if (flag) + { + this._contiKillCount = (value ? new int?(this.contiKillCount) : null); + } + } + } + + [ProtoMember(5, Name = "assitids", DataFormat = DataFormat.TwosComplement)] + public List assitids + { + get + { + return this._assitids; + } + } + + private ulong? _killID; + + private ulong? _deadID; + + private uint? _reviveTime; + + private int? _contiKillCount; + + private readonly List _assitids = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializekillID() + { + return this.killIDSpecified; + } + + private void ResetkillID() + { + this.killIDSpecified = false; + } + + private bool ShouldSerializedeadID() + { + return this.deadIDSpecified; + } + + private void ResetdeadID() + { + this.deadIDSpecified = false; + } + + private bool ShouldSerializereviveTime() + { + return this.reviveTimeSpecified; + } + + private void ResetreviveTime() + { + this.reviveTimeSpecified = false; + } + + private bool ShouldSerializecontiKillCount() + { + return this.contiKillCountSpecified; + } + + private void ResetcontiKillCount() + { + this.contiKillCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs.meta new file mode 100644 index 00000000..1ef11f26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpBattleKill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bf1e0985692e75439cf2c526790bc4d +timeCreated: 1611403689 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs new file mode 100644 index 00000000..49cda54a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs @@ -0,0 +1,461 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpData")] + [Serializable] + public class PvpData : IExtensible + { + [ProtoMember(1, Name = "pvprecs", DataFormat = DataFormat.Default)] + public List pvprecs + { + get + { + return this._pvprecs; + } + } + + [ProtoMember(2, IsRequired = false, Name = "wincountall", DataFormat = DataFormat.TwosComplement)] + public int wincountall + { + get + { + return this._wincountall ?? 0; + } + set + { + this._wincountall = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wincountallSpecified + { + get + { + return this._wincountall != null; + } + set + { + bool flag = value == (this._wincountall == null); + if (flag) + { + this._wincountall = (value ? new int?(this.wincountall) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "losecountall", DataFormat = DataFormat.TwosComplement)] + public int losecountall + { + get + { + return this._losecountall ?? 0; + } + set + { + this._losecountall = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losecountallSpecified + { + get + { + return this._losecountall != null; + } + set + { + bool flag = value == (this._losecountall == null); + if (flag) + { + this._losecountall = (value ? new int?(this.losecountall) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "drawcountall", DataFormat = DataFormat.TwosComplement)] + public int drawcountall + { + get + { + return this._drawcountall ?? 0; + } + set + { + this._drawcountall = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool drawcountallSpecified + { + get + { + return this._drawcountall != null; + } + set + { + bool flag = value == (this._drawcountall == null); + if (flag) + { + this._drawcountall = (value ? new int?(this.drawcountall) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "joincounttodayint", DataFormat = DataFormat.TwosComplement)] + public int joincounttodayint + { + get + { + return this._joincounttodayint ?? 0; + } + set + { + this._joincounttodayint = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joincounttodayintSpecified + { + get + { + return this._joincounttodayint != null; + } + set + { + bool flag = value == (this._joincounttodayint == null); + if (flag) + { + this._joincounttodayint = (value ? new int?(this.joincounttodayint) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "wincountthisweek", DataFormat = DataFormat.TwosComplement)] + public int wincountthisweek + { + get + { + return this._wincountthisweek ?? 0; + } + set + { + this._wincountthisweek = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wincountthisweekSpecified + { + get + { + return this._wincountthisweek != null; + } + set + { + bool flag = value == (this._wincountthisweek == null); + if (flag) + { + this._wincountthisweek = (value ? new int?(this.wincountthisweek) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "lastdayupt", DataFormat = DataFormat.TwosComplement)] + public uint lastdayupt + { + get + { + return this._lastdayupt ?? 0u; + } + set + { + this._lastdayupt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastdayuptSpecified + { + get + { + return this._lastdayupt != null; + } + set + { + bool flag = value == (this._lastdayupt == null); + if (flag) + { + this._lastdayupt = (value ? new uint?(this.lastdayupt) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "lastweekupt", DataFormat = DataFormat.TwosComplement)] + public uint lastweekupt + { + get + { + return this._lastweekupt ?? 0u; + } + set + { + this._lastweekupt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastweekuptSpecified + { + get + { + return this._lastweekupt != null; + } + set + { + bool flag = value == (this._lastweekupt == null); + if (flag) + { + this._lastweekupt = (value ? new uint?(this.lastweekupt) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "weekrewardhaveget", DataFormat = DataFormat.Default)] + public bool weekrewardhaveget + { + get + { + return this._weekrewardhaveget ?? false; + } + set + { + this._weekrewardhaveget = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekrewardhavegetSpecified + { + get + { + return this._weekrewardhaveget != null; + } + set + { + bool flag = value == (this._weekrewardhaveget == null); + if (flag) + { + this._weekrewardhaveget = (value ? new bool?(this.weekrewardhaveget) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "todayplaytime", DataFormat = DataFormat.TwosComplement)] + public uint todayplaytime + { + get + { + return this._todayplaytime ?? 0u; + } + set + { + this._todayplaytime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool todayplaytimeSpecified + { + get + { + return this._todayplaytime != null; + } + set + { + bool flag = value == (this._todayplaytime == null); + if (flag) + { + this._todayplaytime = (value ? new uint?(this.todayplaytime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "todayplaytimes", DataFormat = DataFormat.TwosComplement)] + public uint todayplaytimes + { + get + { + return this._todayplaytimes ?? 0u; + } + set + { + this._todayplaytimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool todayplaytimesSpecified + { + get + { + return this._todayplaytimes != null; + } + set + { + bool flag = value == (this._todayplaytimes == null); + if (flag) + { + this._todayplaytimes = (value ? new uint?(this.todayplaytimes) : null); + } + } + } + + private readonly List _pvprecs = new List(); + + private int? _wincountall; + + private int? _losecountall; + + private int? _drawcountall; + + private int? _joincounttodayint; + + private int? _wincountthisweek; + + private uint? _lastdayupt; + + private uint? _lastweekupt; + + private bool? _weekrewardhaveget; + + private uint? _todayplaytime; + + private uint? _todayplaytimes; + + private IExtension extensionObject; + + private bool ShouldSerializewincountall() + { + return this.wincountallSpecified; + } + + private void Resetwincountall() + { + this.wincountallSpecified = false; + } + + private bool ShouldSerializelosecountall() + { + return this.losecountallSpecified; + } + + private void Resetlosecountall() + { + this.losecountallSpecified = false; + } + + private bool ShouldSerializedrawcountall() + { + return this.drawcountallSpecified; + } + + private void Resetdrawcountall() + { + this.drawcountallSpecified = false; + } + + private bool ShouldSerializejoincounttodayint() + { + return this.joincounttodayintSpecified; + } + + private void Resetjoincounttodayint() + { + this.joincounttodayintSpecified = false; + } + + private bool ShouldSerializewincountthisweek() + { + return this.wincountthisweekSpecified; + } + + private void Resetwincountthisweek() + { + this.wincountthisweekSpecified = false; + } + + private bool ShouldSerializelastdayupt() + { + return this.lastdayuptSpecified; + } + + private void Resetlastdayupt() + { + this.lastdayuptSpecified = false; + } + + private bool ShouldSerializelastweekupt() + { + return this.lastweekuptSpecified; + } + + private void Resetlastweekupt() + { + this.lastweekuptSpecified = false; + } + + private bool ShouldSerializeweekrewardhaveget() + { + return this.weekrewardhavegetSpecified; + } + + private void Resetweekrewardhaveget() + { + this.weekrewardhavegetSpecified = false; + } + + private bool ShouldSerializetodayplaytime() + { + return this.todayplaytimeSpecified; + } + + private void Resettodayplaytime() + { + this.todayplaytimeSpecified = false; + } + + private bool ShouldSerializetodayplaytimes() + { + return this.todayplaytimesSpecified; + } + + private void Resettodayplaytimes() + { + this.todayplaytimesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs.meta new file mode 100644 index 00000000..665ac4d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 947c2abc6b4455840b01f86bdedca9ff +timeCreated: 1611404154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpHistory.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpHistory.cs new file mode 100644 index 00000000..508499ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpHistory.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpHistory")] + [Serializable] + public class PvpHistory : IExtensible + { + [ProtoMember(1, Name = "recs", DataFormat = DataFormat.Default)] + public List recs + { + get + { + return this._recs; + } + } + + private readonly List _recs = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpHistory.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpHistory.cs.meta new file mode 100644 index 00000000..cfbd4668 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpHistory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2777827dbae0734e99f7f67f161e020 +timeCreated: 1611404257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpNowGameData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpNowGameData.cs new file mode 100644 index 00000000..370fccc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpNowGameData.cs @@ -0,0 +1,375 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpNowGameData")] + [Serializable] + public class PvpNowGameData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "group1WinCount", DataFormat = DataFormat.TwosComplement)] + public int group1WinCount + { + get + { + return this._group1WinCount ?? 0; + } + set + { + this._group1WinCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group1WinCountSpecified + { + get + { + return this._group1WinCount != null; + } + set + { + bool flag = value == (this._group1WinCount == null); + if (flag) + { + this._group1WinCount = (value ? new int?(this.group1WinCount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "group2WinCount", DataFormat = DataFormat.TwosComplement)] + public int group2WinCount + { + get + { + return this._group2WinCount ?? 0; + } + set + { + this._group2WinCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group2WinCountSpecified + { + get + { + return this._group2WinCount != null; + } + set + { + bool flag = value == (this._group2WinCount == null); + if (flag) + { + this._group2WinCount = (value ? new int?(this.group2WinCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "drawWinCount", DataFormat = DataFormat.TwosComplement)] + public int drawWinCount + { + get + { + return this._drawWinCount ?? 0; + } + set + { + this._drawWinCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool drawWinCountSpecified + { + get + { + return this._drawWinCount != null; + } + set + { + bool flag = value == (this._drawWinCount == null); + if (flag) + { + this._drawWinCount = (value ? new int?(this.drawWinCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "LeftTime", DataFormat = DataFormat.TwosComplement)] + public uint LeftTime + { + get + { + return this._LeftTime ?? 0u; + } + set + { + this._LeftTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LeftTimeSpecified + { + get + { + return this._LeftTime != null; + } + set + { + bool flag = value == (this._LeftTime == null); + if (flag) + { + this._LeftTime = (value ? new uint?(this.LeftTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isAllEnd", DataFormat = DataFormat.Default)] + public bool isAllEnd + { + get + { + return this._isAllEnd ?? false; + } + set + { + this._isAllEnd = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isAllEndSpecified + { + get + { + return this._isAllEnd != null; + } + set + { + bool flag = value == (this._isAllEnd == null); + if (flag) + { + this._isAllEnd = (value ? new bool?(this.isAllEnd) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "group1Leader", DataFormat = DataFormat.TwosComplement)] + public ulong group1Leader + { + get + { + return this._group1Leader ?? 0UL; + } + set + { + this._group1Leader = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group1LeaderSpecified + { + get + { + return this._group1Leader != null; + } + set + { + bool flag = value == (this._group1Leader == null); + if (flag) + { + this._group1Leader = (value ? new ulong?(this.group1Leader) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "group2Leader", DataFormat = DataFormat.TwosComplement)] + public ulong group2Leader + { + get + { + return this._group2Leader ?? 0UL; + } + set + { + this._group2Leader = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool group2LeaderSpecified + { + get + { + return this._group2Leader != null; + } + set + { + bool flag = value == (this._group2Leader == null); + if (flag) + { + this._group2Leader = (value ? new ulong?(this.group2Leader) : null); + } + } + } + + [ProtoMember(8, Name = "nowUnitdData", DataFormat = DataFormat.Default)] + public List nowUnitdData + { + get + { + return this._nowUnitdData; + } + } + + [ProtoMember(9, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private int? _group1WinCount; + + private int? _group2WinCount; + + private int? _drawWinCount; + + private uint? _LeftTime; + + private bool? _isAllEnd; + + private ulong? _group1Leader; + + private ulong? _group2Leader; + + private readonly List _nowUnitdData = new List(); + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializegroup1WinCount() + { + return this.group1WinCountSpecified; + } + + private void Resetgroup1WinCount() + { + this.group1WinCountSpecified = false; + } + + private bool ShouldSerializegroup2WinCount() + { + return this.group2WinCountSpecified; + } + + private void Resetgroup2WinCount() + { + this.group2WinCountSpecified = false; + } + + private bool ShouldSerializedrawWinCount() + { + return this.drawWinCountSpecified; + } + + private void ResetdrawWinCount() + { + this.drawWinCountSpecified = false; + } + + private bool ShouldSerializeLeftTime() + { + return this.LeftTimeSpecified; + } + + private void ResetLeftTime() + { + this.LeftTimeSpecified = false; + } + + private bool ShouldSerializeisAllEnd() + { + return this.isAllEndSpecified; + } + + private void ResetisAllEnd() + { + this.isAllEndSpecified = false; + } + + private bool ShouldSerializegroup1Leader() + { + return this.group1LeaderSpecified; + } + + private void Resetgroup1Leader() + { + this.group1LeaderSpecified = false; + } + + private bool ShouldSerializegroup2Leader() + { + return this.group2LeaderSpecified; + } + + private void Resetgroup2Leader() + { + this.group2LeaderSpecified = false; + } + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpNowGameData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpNowGameData.cs.meta new file mode 100644 index 00000000..666708a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpNowGameData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8f4ed9771300414aa4600e1734b4f15 +timeCreated: 1611404536 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpNowUnitData.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpNowUnitData.cs new file mode 100644 index 00000000..db93ba3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpNowUnitData.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpNowUnitData")] + [Serializable] + public class PvpNowUnitData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleLevel", DataFormat = DataFormat.TwosComplement)] + public uint roleLevel + { + get + { + return this._roleLevel ?? 0u; + } + set + { + this._roleLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleLevelSpecified + { + get + { + return this._roleLevel != null; + } + set + { + bool flag = value == (this._roleLevel == null); + if (flag) + { + this._roleLevel = (value ? new uint?(this.roleLevel) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleProfession", DataFormat = DataFormat.TwosComplement)] + public uint roleProfession + { + get + { + return this._roleProfession ?? 0u; + } + set + { + this._roleProfession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleProfessionSpecified + { + get + { + return this._roleProfession != null; + } + set + { + bool flag = value == (this._roleProfession == null); + if (flag) + { + this._roleProfession = (value ? new uint?(this.roleProfession) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "killCount", DataFormat = DataFormat.TwosComplement)] + public int killCount + { + get + { + return this._killCount ?? 0; + } + set + { + this._killCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killCountSpecified + { + get + { + return this._killCount != null; + } + set + { + bool flag = value == (this._killCount == null); + if (flag) + { + this._killCount = (value ? new int?(this.killCount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "dieCount", DataFormat = DataFormat.TwosComplement)] + public int dieCount + { + get + { + return this._dieCount ?? 0; + } + set + { + this._dieCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dieCountSpecified + { + get + { + return this._dieCount != null; + } + set + { + bool flag = value == (this._dieCount == null); + if (flag) + { + this._dieCount = (value ? new int?(this.dieCount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public int groupid + { + get + { + return this._groupid ?? 0; + } + set + { + this._groupid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupidSpecified + { + get + { + return this._groupid != null; + } + set + { + bool flag = value == (this._groupid == null); + if (flag) + { + this._groupid = (value ? new int?(this.groupid) : null); + } + } + } + + private ulong? _roleID; + + private string _roleName; + + private uint? _roleLevel; + + private uint? _roleProfession; + + private int? _killCount; + + private int? _dieCount; + + private int? _groupid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + private bool ShouldSerializeroleLevel() + { + return this.roleLevelSpecified; + } + + private void ResetroleLevel() + { + this.roleLevelSpecified = false; + } + + private bool ShouldSerializeroleProfession() + { + return this.roleProfessionSpecified; + } + + private void ResetroleProfession() + { + this.roleProfessionSpecified = false; + } + + private bool ShouldSerializekillCount() + { + return this.killCountSpecified; + } + + private void ResetkillCount() + { + this.killCountSpecified = false; + } + + private bool ShouldSerializedieCount() + { + return this.dieCountSpecified; + } + + private void ResetdieCount() + { + this.dieCountSpecified = false; + } + + private bool ShouldSerializegroupid() + { + return this.groupidSpecified; + } + + private void Resetgroupid() + { + this.groupidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpNowUnitData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpNowUnitData.cs.meta new file mode 100644 index 00000000..14d7f122 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpNowUnitData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 092e3acc33b883148a19046123fe93ca +timeCreated: 1611403150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs new file mode 100644 index 00000000..da6c60f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpOneRec")] + [Serializable] + public class PvpOneRec : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "wincount", DataFormat = DataFormat.TwosComplement)] + public int wincount + { + get + { + return this._wincount ?? 0; + } + set + { + this._wincount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wincountSpecified + { + get + { + return this._wincount != null; + } + set + { + bool flag = value == (this._wincount == null); + if (flag) + { + this._wincount = (value ? new int?(this.wincount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "losecount", DataFormat = DataFormat.TwosComplement)] + public int losecount + { + get + { + return this._losecount ?? 0; + } + set + { + this._losecount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool losecountSpecified + { + get + { + return this._losecount != null; + } + set + { + bool flag = value == (this._losecount == null); + if (flag) + { + this._losecount = (value ? new int?(this.losecount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "drawcount", DataFormat = DataFormat.TwosComplement)] + public int drawcount + { + get + { + return this._drawcount ?? 0; + } + set + { + this._drawcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool drawcountSpecified + { + get + { + return this._drawcount != null; + } + set + { + bool flag = value == (this._drawcount == null); + if (flag) + { + this._drawcount = (value ? new int?(this.drawcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "mvpID", DataFormat = DataFormat.TwosComplement)] + public ulong mvpID + { + get + { + return this._mvpID ?? 0UL; + } + set + { + this._mvpID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mvpIDSpecified + { + get + { + return this._mvpID != null; + } + set + { + bool flag = value == (this._mvpID == null); + if (flag) + { + this._mvpID = (value ? new ulong?(this.mvpID) : null); + } + } + } + + [ProtoMember(5, Name = "myside", DataFormat = DataFormat.Default)] + public List myside + { + get + { + return this._myside; + } + } + + [ProtoMember(6, Name = "opside", DataFormat = DataFormat.Default)] + public List opside + { + get + { + return this._opside; + } + } + + [ProtoMember(7, IsRequired = false, Name = "military", DataFormat = DataFormat.TwosComplement)] + public uint military + { + get + { + return this._military ?? 0u; + } + set + { + this._military = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool militarySpecified + { + get + { + return this._military != null; + } + set + { + bool flag = value == (this._military == null); + if (flag) + { + this._military = (value ? new uint?(this.military) : null); + } + } + } + + private int? _wincount; + + private int? _losecount; + + private int? _drawcount; + + private ulong? _mvpID; + + private readonly List _myside = new List(); + + private readonly List _opside = new List(); + + private uint? _military; + + private IExtension extensionObject; + + private bool ShouldSerializewincount() + { + return this.wincountSpecified; + } + + private void Resetwincount() + { + this.wincountSpecified = false; + } + + private bool ShouldSerializelosecount() + { + return this.losecountSpecified; + } + + private void Resetlosecount() + { + this.losecountSpecified = false; + } + + private bool ShouldSerializedrawcount() + { + return this.drawcountSpecified; + } + + private void Resetdrawcount() + { + this.drawcountSpecified = false; + } + + private bool ShouldSerializemvpID() + { + return this.mvpIDSpecified; + } + + private void ResetmvpID() + { + this.mvpIDSpecified = false; + } + + private bool ShouldSerializemilitary() + { + return this.militarySpecified; + } + + private void Resetmilitary() + { + this.militarySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs.meta new file mode 100644 index 00000000..07139880 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpOneRec.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1affe2ccc9728574db67f9def826b5be +timeCreated: 1611403313 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpReqType.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpReqType.cs new file mode 100644 index 00000000..6cb87d84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpReqType.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpReqType")] + public enum PvpReqType + { + [ProtoEnum(Name = "PVP_REQ_IN_MATCH", Value = 1)] + PVP_REQ_IN_MATCH = 1, + [ProtoEnum(Name = "PVP_REQ_OUT_MATCH", Value = 2)] + PVP_REQ_OUT_MATCH, + [ProtoEnum(Name = "PVP_REQ_BASE_DATA", Value = 3)] + PVP_REQ_BASE_DATA, + [ProtoEnum(Name = "PVP_REQ_HISTORY_REC", Value = 4)] + PVP_REQ_HISTORY_REC, + [ProtoEnum(Name = "PVP_REQ_GET_WEEKREWARD", Value = 5)] + PVP_REQ_GET_WEEKREWARD + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpReqType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpReqType.cs.meta new file mode 100644 index 00000000..b3a0777f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpReqType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c97a885ffb29334daadb6761d76666c +timeCreated: 1611404233 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs new file mode 100644 index 00000000..c1614491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs @@ -0,0 +1,137 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpRes")] + [Serializable] + public class PvpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "basedata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PvpBaseData basedata + { + get + { + return this._basedata; + } + set + { + this._basedata = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "history", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PvpHistory history + { + get + { + return this._history; + } + set + { + this._history = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "reqtype", DataFormat = DataFormat.TwosComplement)] + public PvpReqType reqtype + { + get + { + return this._reqtype ?? PvpReqType.PVP_REQ_IN_MATCH; + } + set + { + this._reqtype = new PvpReqType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqtypeSpecified + { + get + { + return this._reqtype != null; + } + set + { + bool flag = value == (this._reqtype == null); + if (flag) + { + this._reqtype = (value ? new PvpReqType?(this.reqtype) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "err", DataFormat = DataFormat.TwosComplement)] + public ErrorCode err + { + get + { + return this._err ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._err = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errSpecified + { + get + { + return this._err != null; + } + set + { + bool flag = value == (this._err == null); + if (flag) + { + this._err = (value ? new ErrorCode?(this.err) : null); + } + } + } + + private PvpBaseData _basedata = null; + + private PvpHistory _history = null; + + private PvpReqType? _reqtype; + + private ErrorCode? _err; + + private IExtension extensionObject; + + private bool ShouldSerializereqtype() + { + return this.reqtypeSpecified; + } + + private void Resetreqtype() + { + this.reqtypeSpecified = false; + } + + private bool ShouldSerializeerr() + { + return this.errSpecified; + } + + private void Reseterr() + { + this.errSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs.meta new file mode 100644 index 00000000..8829c185 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56eb246fce201bf4ca2e813e641defe5 +timeCreated: 1611403746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpRoleBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/PvpRoleBrief.cs new file mode 100644 index 00000000..fe60779e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpRoleBrief.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PvpRoleBrief")] + [Serializable] + public class PvpRoleBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rolelevel", DataFormat = DataFormat.TwosComplement)] + public uint rolelevel + { + get + { + return this._rolelevel ?? 0u; + } + set + { + this._rolelevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolelevelSpecified + { + get + { + return this._rolelevel != null; + } + set + { + bool flag = value == (this._rolelevel == null); + if (flag) + { + this._rolelevel = (value ? new uint?(this.rolelevel) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleprofession", DataFormat = DataFormat.TwosComplement)] + public uint roleprofession + { + get + { + return this._roleprofession ?? 0u; + } + set + { + this._roleprofession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleprofessionSpecified + { + get + { + return this._roleprofession != null; + } + set + { + bool flag = value == (this._roleprofession == null); + if (flag) + { + this._roleprofession = (value ? new uint?(this.roleprofession) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "roleserverid", DataFormat = DataFormat.TwosComplement)] + public uint roleserverid + { + get + { + return this._roleserverid ?? 0u; + } + set + { + this._roleserverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleserveridSpecified + { + get + { + return this._roleserverid != null; + } + set + { + bool flag = value == (this._roleserverid == null); + if (flag) + { + this._roleserverid = (value ? new uint?(this.roleserverid) : null); + } + } + } + + private ulong? _roleid; + + private string _rolename; + + private uint? _rolelevel; + + private uint? _roleprofession; + + private uint? _roleserverid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializerolelevel() + { + return this.rolelevelSpecified; + } + + private void Resetrolelevel() + { + this.rolelevelSpecified = false; + } + + private bool ShouldSerializeroleprofession() + { + return this.roleprofessionSpecified; + } + + private void Resetroleprofession() + { + this.roleprofessionSpecified = false; + } + + private bool ShouldSerializeroleserverid() + { + return this.roleserveridSpecified; + } + + private void Resetroleserverid() + { + this.roleserveridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PvpRoleBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/PvpRoleBrief.cs.meta new file mode 100644 index 00000000..139b426d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PvpRoleBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ddb7e77291046fe4a8496549fec00456 +timeCreated: 1611404684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs new file mode 100644 index 00000000..06a33b9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QAEnterRoomNtf")] + [Serializable] + public class QAEnterRoomNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "vip", DataFormat = DataFormat.TwosComplement)] + public uint vip + { + get + { + return this._vip ?? 0u; + } + set + { + this._vip = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipSpecified + { + get + { + return this._vip != null; + } + set + { + bool flag = value == (this._vip == null); + if (flag) + { + this._vip = (value ? new uint?(this.vip) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "coverDesignationID", DataFormat = DataFormat.TwosComplement)] + public uint coverDesignationID + { + get + { + return this._coverDesignationID ?? 0u; + } + set + { + this._coverDesignationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool coverDesignationIDSpecified + { + get + { + return this._coverDesignationID != null; + } + set + { + bool flag = value == (this._coverDesignationID == null); + if (flag) + { + this._coverDesignationID = (value ? new uint?(this.coverDesignationID) : null); + } + } + } + + private ulong? _roleID; + + private string _name; + + private uint? _profession; + + private uint? _vip; + + private uint? _time; + + private uint? _coverDesignationID; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializevip() + { + return this.vipSpecified; + } + + private void Resetvip() + { + this.vipSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializecoverDesignationID() + { + return this.coverDesignationIDSpecified; + } + + private void ResetcoverDesignationID() + { + this.coverDesignationIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs.meta new file mode 100644 index 00000000..513ebe6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QAEnterRoomNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66b4f5957bb0f494899bd22a3815c3b0 +timeCreated: 1611403855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs b/Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs new file mode 100644 index 00000000..e93b37d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QAIDName")] + [Serializable] + public class QAIDName : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uuid", DataFormat = DataFormat.TwosComplement)] + public ulong uuid + { + get + { + return this._uuid ?? 0UL; + } + set + { + this._uuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uuidSpecified + { + get + { + return this._uuid != null; + } + set + { + bool flag = value == (this._uuid == null); + if (flag) + { + this._uuid = (value ? new ulong?(this.uuid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ulong? _uuid; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeuuid() + { + return this.uuidSpecified; + } + + private void Resetuuid() + { + this.uuidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs.meta new file mode 100644 index 00000000..89cca5b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QAIDName.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d7c00a273041974899c18d8b8596246 +timeCreated: 1611403354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QAIDNameList.cs b/Client/Assets/Scripts/XMainClient/KKSG/QAIDNameList.cs new file mode 100644 index 00000000..ee73226e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QAIDNameList.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QAIDNameList")] + [Serializable] + public class QAIDNameList : IExtensible + { + [ProtoMember(1, Name = "idname", DataFormat = DataFormat.Default)] + public List idname + { + get + { + return this._idname; + } + } + + private readonly List _idname = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QAIDNameList.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QAIDNameList.cs.meta new file mode 100644 index 00000000..4dcadfff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QAIDNameList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e1d3c2d8cfdec84aa7661aafde5e372 +timeCreated: 1611403361 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs new file mode 100644 index 00000000..88e0c83e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QANotify")] + [Serializable] + public class QANotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "is_playing", DataFormat = DataFormat.Default)] + public bool is_playing + { + get + { + return this._is_playing ?? false; + } + set + { + this._is_playing = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_playingSpecified + { + get + { + return this._is_playing != null; + } + set + { + bool flag = value == (this._is_playing == null); + if (flag) + { + this._is_playing = (value ? new bool?(this.is_playing) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "is_over", DataFormat = DataFormat.Default)] + public bool is_over + { + get + { + return this._is_over ?? false; + } + set + { + this._is_over = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_overSpecified + { + get + { + return this._is_over != null; + } + set + { + bool flag = value == (this._is_over == null); + if (flag) + { + this._is_over = (value ? new bool?(this.is_over) : null); + } + } + } + + private uint? _type; + + private bool? _is_playing; + + private bool? _is_over; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeis_playing() + { + return this.is_playingSpecified; + } + + private void Resetis_playing() + { + this.is_playingSpecified = false; + } + + private bool ShouldSerializeis_over() + { + return this.is_overSpecified; + } + + private void Resetis_over() + { + this.is_overSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs.meta new file mode 100644 index 00000000..c4669d23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QANotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6c2c05e4fb29444d86bcbb7505ddaa7 +timeCreated: 1611404290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs new file mode 100644 index 00000000..211550fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QAOverNtf")] + [Serializable] + public class QAOverNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "total", DataFormat = DataFormat.TwosComplement)] + public uint total + { + get + { + return this._total ?? 0u; + } + set + { + this._total = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalSpecified + { + get + { + return this._total != null; + } + set + { + bool flag = value == (this._total == null); + if (flag) + { + this._total = (value ? new uint?(this.total) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "correct", DataFormat = DataFormat.TwosComplement)] + public uint correct + { + get + { + return this._correct ?? 0u; + } + set + { + this._correct = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool correctSpecified + { + get + { + return this._correct != null; + } + set + { + bool flag = value == (this._correct == null); + if (flag) + { + this._correct = (value ? new uint?(this.correct) : null); + } + } + } + + [ProtoMember(3, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + private uint? _total; + + private uint? _correct; + + private readonly List _dataList = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetotal() + { + return this.totalSpecified; + } + + private void Resettotal() + { + this.totalSpecified = false; + } + + private bool ShouldSerializecorrect() + { + return this.correctSpecified; + } + + private void Resetcorrect() + { + this.correctSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs.meta new file mode 100644 index 00000000..f1cf4578 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QAOverNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22fbc3ba2eaf17840ba5a178d170c339 +timeCreated: 1611403425 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankData.cs new file mode 100644 index 00000000..a2f3cdc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QARoomRankData")] + [Serializable] + public class QARoomRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uuid", DataFormat = DataFormat.TwosComplement)] + public ulong uuid + { + get + { + return this._uuid ?? 0UL; + } + set + { + this._uuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uuidSpecified + { + get + { + return this._uuid != null; + } + set + { + bool flag = value == (this._uuid == null); + if (flag) + { + this._uuid = (value ? new ulong?(this.uuid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private ulong? _uuid; + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializeuuid() + { + return this.uuidSpecified; + } + + private void Resetuuid() + { + this.uuidSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankData.cs.meta new file mode 100644 index 00000000..9b942fce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b5a354142fdb6d42bc9b11697c867a5 +timeCreated: 1611403891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankNtf.cs new file mode 100644 index 00000000..37859116 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankNtf.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QARoomRankNtf")] + [Serializable] + public class QARoomRankNtf : IExtensible + { + [ProtoMember(1, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + [ProtoMember(2, IsRequired = false, Name = "myscore", DataFormat = DataFormat.TwosComplement)] + public uint myscore + { + get + { + return this._myscore ?? 0u; + } + set + { + this._myscore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool myscoreSpecified + { + get + { + return this._myscore != null; + } + set + { + bool flag = value == (this._myscore == null); + if (flag) + { + this._myscore = (value ? new uint?(this.myscore) : null); + } + } + } + + private readonly List _dataList = new List(); + + private uint? _myscore; + + private IExtension extensionObject; + + private bool ShouldSerializemyscore() + { + return this.myscoreSpecified; + } + + private void Resetmyscore() + { + this.myscoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankNtf.cs.meta new file mode 100644 index 00000000..e43fab16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QARoomRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e6a5f8e7a12b984f922e4a3dee9692f +timeCreated: 1611404241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs new file mode 100644 index 00000000..30a57234 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs @@ -0,0 +1,535 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QQVipInfo")] + [Serializable] + public class QQVipInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "is_vip", DataFormat = DataFormat.Default)] + public bool is_vip + { + get + { + return this._is_vip ?? false; + } + set + { + this._is_vip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_vipSpecified + { + get + { + return this._is_vip != null; + } + set + { + bool flag = value == (this._is_vip == null); + if (flag) + { + this._is_vip = (value ? new bool?(this.is_vip) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "is_svip", DataFormat = DataFormat.Default)] + public bool is_svip + { + get + { + return this._is_svip ?? false; + } + set + { + this._is_svip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_svipSpecified + { + get + { + return this._is_svip != null; + } + set + { + bool flag = value == (this._is_svip == null); + if (flag) + { + this._is_svip = (value ? new bool?(this.is_svip) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "is_year_vip", DataFormat = DataFormat.Default)] + public bool is_year_vip + { + get + { + return this._is_year_vip ?? false; + } + set + { + this._is_year_vip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_year_vipSpecified + { + get + { + return this._is_year_vip != null; + } + set + { + bool flag = value == (this._is_year_vip == null); + if (flag) + { + this._is_year_vip = (value ? new bool?(this.is_year_vip) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "qq_vip_start", DataFormat = DataFormat.TwosComplement)] + public uint qq_vip_start + { + get + { + return this._qq_vip_start ?? 0u; + } + set + { + this._qq_vip_start = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_vip_startSpecified + { + get + { + return this._qq_vip_start != null; + } + set + { + bool flag = value == (this._qq_vip_start == null); + if (flag) + { + this._qq_vip_start = (value ? new uint?(this.qq_vip_start) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "qq_vip_end", DataFormat = DataFormat.TwosComplement)] + public uint qq_vip_end + { + get + { + return this._qq_vip_end ?? 0u; + } + set + { + this._qq_vip_end = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_vip_endSpecified + { + get + { + return this._qq_vip_end != null; + } + set + { + bool flag = value == (this._qq_vip_end == null); + if (flag) + { + this._qq_vip_end = (value ? new uint?(this.qq_vip_end) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "qq_svip_start", DataFormat = DataFormat.TwosComplement)] + public uint qq_svip_start + { + get + { + return this._qq_svip_start ?? 0u; + } + set + { + this._qq_svip_start = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_svip_startSpecified + { + get + { + return this._qq_svip_start != null; + } + set + { + bool flag = value == (this._qq_svip_start == null); + if (flag) + { + this._qq_svip_start = (value ? new uint?(this.qq_svip_start) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "qq_svip_end", DataFormat = DataFormat.TwosComplement)] + public uint qq_svip_end + { + get + { + return this._qq_svip_end ?? 0u; + } + set + { + this._qq_svip_end = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_svip_endSpecified + { + get + { + return this._qq_svip_end != null; + } + set + { + bool flag = value == (this._qq_svip_end == null); + if (flag) + { + this._qq_svip_end = (value ? new uint?(this.qq_svip_end) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "qq_year_vip_start", DataFormat = DataFormat.TwosComplement)] + public uint qq_year_vip_start + { + get + { + return this._qq_year_vip_start ?? 0u; + } + set + { + this._qq_year_vip_start = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_year_vip_startSpecified + { + get + { + return this._qq_year_vip_start != null; + } + set + { + bool flag = value == (this._qq_year_vip_start == null); + if (flag) + { + this._qq_year_vip_start = (value ? new uint?(this.qq_year_vip_start) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "qq_year_vip_end", DataFormat = DataFormat.TwosComplement)] + public uint qq_year_vip_end + { + get + { + return this._qq_year_vip_end ?? 0u; + } + set + { + this._qq_year_vip_end = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_year_vip_endSpecified + { + get + { + return this._qq_year_vip_end != null; + } + set + { + bool flag = value == (this._qq_year_vip_end == null); + if (flag) + { + this._qq_year_vip_end = (value ? new uint?(this.qq_year_vip_end) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "vip_newbie_rewarded", DataFormat = DataFormat.Default)] + public bool vip_newbie_rewarded + { + get + { + return this._vip_newbie_rewarded ?? false; + } + set + { + this._vip_newbie_rewarded = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vip_newbie_rewardedSpecified + { + get + { + return this._vip_newbie_rewarded != null; + } + set + { + bool flag = value == (this._vip_newbie_rewarded == null); + if (flag) + { + this._vip_newbie_rewarded = (value ? new bool?(this.vip_newbie_rewarded) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "svip_newbie_rewarded", DataFormat = DataFormat.Default)] + public bool svip_newbie_rewarded + { + get + { + return this._svip_newbie_rewarded ?? false; + } + set + { + this._svip_newbie_rewarded = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool svip_newbie_rewardedSpecified + { + get + { + return this._svip_newbie_rewarded != null; + } + set + { + bool flag = value == (this._svip_newbie_rewarded == null); + if (flag) + { + this._svip_newbie_rewarded = (value ? new bool?(this.svip_newbie_rewarded) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "is_xinyue_vip", DataFormat = DataFormat.Default)] + public bool is_xinyue_vip + { + get + { + return this._is_xinyue_vip ?? false; + } + set + { + this._is_xinyue_vip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_xinyue_vipSpecified + { + get + { + return this._is_xinyue_vip != null; + } + set + { + bool flag = value == (this._is_xinyue_vip == null); + if (flag) + { + this._is_xinyue_vip = (value ? new bool?(this.is_xinyue_vip) : null); + } + } + } + + private bool? _is_vip; + + private bool? _is_svip; + + private bool? _is_year_vip; + + private uint? _qq_vip_start; + + private uint? _qq_vip_end; + + private uint? _qq_svip_start; + + private uint? _qq_svip_end; + + private uint? _qq_year_vip_start; + + private uint? _qq_year_vip_end; + + private bool? _vip_newbie_rewarded; + + private bool? _svip_newbie_rewarded; + + private bool? _is_xinyue_vip; + + private IExtension extensionObject; + + private bool ShouldSerializeis_vip() + { + return this.is_vipSpecified; + } + + private void Resetis_vip() + { + this.is_vipSpecified = false; + } + + private bool ShouldSerializeis_svip() + { + return this.is_svipSpecified; + } + + private void Resetis_svip() + { + this.is_svipSpecified = false; + } + + private bool ShouldSerializeis_year_vip() + { + return this.is_year_vipSpecified; + } + + private void Resetis_year_vip() + { + this.is_year_vipSpecified = false; + } + + private bool ShouldSerializeqq_vip_start() + { + return this.qq_vip_startSpecified; + } + + private void Resetqq_vip_start() + { + this.qq_vip_startSpecified = false; + } + + private bool ShouldSerializeqq_vip_end() + { + return this.qq_vip_endSpecified; + } + + private void Resetqq_vip_end() + { + this.qq_vip_endSpecified = false; + } + + private bool ShouldSerializeqq_svip_start() + { + return this.qq_svip_startSpecified; + } + + private void Resetqq_svip_start() + { + this.qq_svip_startSpecified = false; + } + + private bool ShouldSerializeqq_svip_end() + { + return this.qq_svip_endSpecified; + } + + private void Resetqq_svip_end() + { + this.qq_svip_endSpecified = false; + } + + private bool ShouldSerializeqq_year_vip_start() + { + return this.qq_year_vip_startSpecified; + } + + private void Resetqq_year_vip_start() + { + this.qq_year_vip_startSpecified = false; + } + + private bool ShouldSerializeqq_year_vip_end() + { + return this.qq_year_vip_endSpecified; + } + + private void Resetqq_year_vip_end() + { + this.qq_year_vip_endSpecified = false; + } + + private bool ShouldSerializevip_newbie_rewarded() + { + return this.vip_newbie_rewardedSpecified; + } + + private void Resetvip_newbie_rewarded() + { + this.vip_newbie_rewardedSpecified = false; + } + + private bool ShouldSerializesvip_newbie_rewarded() + { + return this.svip_newbie_rewardedSpecified; + } + + private void Resetsvip_newbie_rewarded() + { + this.svip_newbie_rewardedSpecified = false; + } + + private bool ShouldSerializeis_xinyue_vip() + { + return this.is_xinyue_vipSpecified; + } + + private void Resetis_xinyue_vip() + { + this.is_xinyue_vipSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs.meta new file mode 100644 index 00000000..f13417df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b37e89f32439cb43b3f66ff135dc8d4 +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfoClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfoClient.cs new file mode 100644 index 00000000..072e05bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfoClient.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QQVipInfoClient")] + [Serializable] + public class QQVipInfoClient : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "is_vip", DataFormat = DataFormat.Default)] + public bool is_vip + { + get + { + return this._is_vip ?? false; + } + set + { + this._is_vip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_vipSpecified + { + get + { + return this._is_vip != null; + } + set + { + bool flag = value == (this._is_vip == null); + if (flag) + { + this._is_vip = (value ? new bool?(this.is_vip) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "is_svip", DataFormat = DataFormat.Default)] + public bool is_svip + { + get + { + return this._is_svip ?? false; + } + set + { + this._is_svip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_svipSpecified + { + get + { + return this._is_svip != null; + } + set + { + bool flag = value == (this._is_svip == null); + if (flag) + { + this._is_svip = (value ? new bool?(this.is_svip) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "qq_vip_end", DataFormat = DataFormat.TwosComplement)] + public uint qq_vip_end + { + get + { + return this._qq_vip_end ?? 0u; + } + set + { + this._qq_vip_end = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_vip_endSpecified + { + get + { + return this._qq_vip_end != null; + } + set + { + bool flag = value == (this._qq_vip_end == null); + if (flag) + { + this._qq_vip_end = (value ? new uint?(this.qq_vip_end) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "qq_svip_end", DataFormat = DataFormat.TwosComplement)] + public uint qq_svip_end + { + get + { + return this._qq_svip_end ?? 0u; + } + set + { + this._qq_svip_end = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qq_svip_endSpecified + { + get + { + return this._qq_svip_end != null; + } + set + { + bool flag = value == (this._qq_svip_end == null); + if (flag) + { + this._qq_svip_end = (value ? new uint?(this.qq_svip_end) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "is_bigger_one_month", DataFormat = DataFormat.Default)] + public bool is_bigger_one_month + { + get + { + return this._is_bigger_one_month ?? false; + } + set + { + this._is_bigger_one_month = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_bigger_one_monthSpecified + { + get + { + return this._is_bigger_one_month != null; + } + set + { + bool flag = value == (this._is_bigger_one_month == null); + if (flag) + { + this._is_bigger_one_month = (value ? new bool?(this.is_bigger_one_month) : null); + } + } + } + + private bool? _is_vip; + + private bool? _is_svip; + + private uint? _qq_vip_end; + + private uint? _qq_svip_end; + + private bool? _is_bigger_one_month; + + private IExtension extensionObject; + + private bool ShouldSerializeis_vip() + { + return this.is_vipSpecified; + } + + private void Resetis_vip() + { + this.is_vipSpecified = false; + } + + private bool ShouldSerializeis_svip() + { + return this.is_svipSpecified; + } + + private void Resetis_svip() + { + this.is_svipSpecified = false; + } + + private bool ShouldSerializeqq_vip_end() + { + return this.qq_vip_endSpecified; + } + + private void Resetqq_vip_end() + { + this.qq_vip_endSpecified = false; + } + + private bool ShouldSerializeqq_svip_end() + { + return this.qq_svip_endSpecified; + } + + private void Resetqq_svip_end() + { + this.qq_svip_endSpecified = false; + } + + private bool ShouldSerializeis_bigger_one_month() + { + return this.is_bigger_one_monthSpecified; + } + + private void Resetis_bigger_one_month() + { + this.is_bigger_one_monthSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfoClient.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfoClient.cs.meta new file mode 100644 index 00000000..711e0028 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QQVipInfoClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 237c58ada1eaec640857b1bf73d842fe +timeCreated: 1611403454 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QTEOperation.cs b/Client/Assets/Scripts/XMainClient/KKSG/QTEOperation.cs new file mode 100644 index 00000000..1cb4b76b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QTEOperation.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QTEOperation")] + [Serializable] + public class QTEOperation : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "monsterid", DataFormat = DataFormat.TwosComplement)] + public ulong monsterid + { + get + { + return this._monsterid ?? 0UL; + } + set + { + this._monsterid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool monsteridSpecified + { + get + { + return this._monsterid != null; + } + set + { + bool flag = value == (this._monsterid == null); + if (flag) + { + this._monsterid = (value ? new ulong?(this.monsterid) : null); + } + } + } + + private uint? _type; + + private ulong? _monsterid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializemonsterid() + { + return this.monsteridSpecified; + } + + private void Resetmonsterid() + { + this.monsteridSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QTEOperation.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QTEOperation.cs.meta new file mode 100644 index 00000000..550c49f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QTEOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 144af1416beb44d4bbd86aae5d9440c7 +timeCreated: 1611403255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsArg.cs new file mode 100644 index 00000000..8400c7c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryBoxsArg")] + [Serializable] + public class QueryBoxsArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsArg.cs.meta new file mode 100644 index 00000000..629208bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1390bea97f4d38c4c856b09407c726b6 +timeCreated: 1611403250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsRes.cs new file mode 100644 index 00000000..449eb7f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryBoxsRes")] + [Serializable] + public class QueryBoxsRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public uint timeleft + { + get + { + return this._timeleft ?? 0u; + } + set + { + this._timeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new uint?(this.timeleft) : null); + } + } + } + + [ProtoMember(3, Name = "boxinfos", DataFormat = DataFormat.Default)] + public List boxinfos + { + get + { + return this._boxinfos; + } + } + + private ErrorCode? _errorcode; + + private uint? _timeleft; + + private readonly List _boxinfos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsRes.cs.meta new file mode 100644 index 00000000..86f50627 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryBoxsRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e97d05ace5fdd046bd01b8cb8900589 +timeCreated: 1611404130 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpArg.cs new file mode 100644 index 00000000..17c81c33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryClientIpArg")] + [Serializable] + public class QueryClientIpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpArg.cs.meta new file mode 100644 index 00000000..ea10b664 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 186e9db50525d624d97f574e1b4ed39d +timeCreated: 1611403297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpRes.cs new file mode 100644 index 00000000..581dcd0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryClientIpRes")] + [Serializable] + public class QueryClientIpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ip", DataFormat = DataFormat.Default)] + public string ip + { + get + { + return this._ip ?? ""; + } + set + { + this._ip = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ipSpecified + { + get + { + return this._ip != null; + } + set + { + bool flag = value == (this._ip == null); + if (flag) + { + this._ip = (value ? this.ip : null); + } + } + } + + private string _ip; + + private IExtension extensionObject; + + private bool ShouldSerializeip() + { + return this.ipSpecified; + } + + private void Resetip() + { + this.ipSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpRes.cs.meta new file mode 100644 index 00000000..05a79e3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryClientIpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb19e52240eb3544297b4060e7bf9322 +timeCreated: 1611404929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs new file mode 100644 index 00000000..a0d6d9cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryGateArg")] + [Serializable] + public class QueryGateArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "account", DataFormat = DataFormat.Default)] + public string account + { + get + { + return this._account ?? ""; + } + set + { + this._account = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountSpecified + { + get + { + return this._account != null; + } + set + { + bool flag = value == (this._account == null); + if (flag) + { + this._account = (value ? this.account : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "password", DataFormat = DataFormat.Default)] + public string password + { + get + { + return this._password ?? ""; + } + set + { + this._password = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passwordSpecified + { + get + { + return this._password != null; + } + set + { + bool flag = value == (this._password == null); + if (flag) + { + this._password = (value ? this.password : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public LoginType type + { + get + { + return this._type ?? LoginType.LOGIN_PASSWORD; + } + set + { + this._type = new LoginType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new LoginType?(this.type) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "pf", DataFormat = DataFormat.Default)] + public string pf + { + get + { + return this._pf ?? ""; + } + set + { + this._pf = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pfSpecified + { + get + { + return this._pf != null; + } + set + { + bool flag = value == (this._pf == null); + if (flag) + { + this._pf = (value ? this.pf : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "platid", DataFormat = DataFormat.TwosComplement)] + public PlatType platid + { + get + { + return this._platid ?? PlatType.PLAT_IOS; + } + set + { + this._platid = new PlatType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool platidSpecified + { + get + { + return this._platid != null; + } + set + { + bool flag = value == (this._platid == null); + if (flag) + { + this._platid = (value ? new PlatType?(this.platid) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "version", DataFormat = DataFormat.Default)] + public string version + { + get + { + return this._version ?? ""; + } + set + { + this._version = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool versionSpecified + { + get + { + return this._version != null; + } + set + { + bool flag = value == (this._version == null); + if (flag) + { + this._version = (value ? this.version : null); + } + } + } + + private string _token; + + private string _account; + + private string _password; + + private LoginType? _type; + + private string _pf; + + private string _openid; + + private PlatType? _platid; + + private string _version; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + private bool ShouldSerializeaccount() + { + return this.accountSpecified; + } + + private void Resetaccount() + { + this.accountSpecified = false; + } + + private bool ShouldSerializepassword() + { + return this.passwordSpecified; + } + + private void Resetpassword() + { + this.passwordSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializepf() + { + return this.pfSpecified; + } + + private void Resetpf() + { + this.pfSpecified = false; + } + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializeplatid() + { + return this.platidSpecified; + } + + private void Resetplatid() + { + this.platidSpecified = false; + } + + private bool ShouldSerializeversion() + { + return this.versionSpecified; + } + + private void Resetversion() + { + this.versionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs.meta new file mode 100644 index 00000000..aaa16c29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef49bdb0e55e46649895cd551b09cf62 +timeCreated: 1611404803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGateRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateRes.cs new file mode 100644 index 00000000..46b3c3d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateRes.cs @@ -0,0 +1,456 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryGateRes")] + [Serializable] + public class QueryGateRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "loginToken", DataFormat = DataFormat.Default)] + public byte[] loginToken + { + get + { + return this._loginToken ?? null; + } + set + { + this._loginToken = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loginTokenSpecified + { + get + { + return this._loginToken != null; + } + set + { + bool flag = value == (this._loginToken == null); + if (flag) + { + this._loginToken = (value ? this.loginToken : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "gateconfig", DataFormat = DataFormat.Default)] + public byte[] gateconfig + { + get + { + return this._gateconfig ?? null; + } + set + { + this._gateconfig = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gateconfigSpecified + { + get + { + return this._gateconfig != null; + } + set + { + bool flag = value == (this._gateconfig == null); + if (flag) + { + this._gateconfig = (value ? this.gateconfig : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "userphone", DataFormat = DataFormat.Default)] + public string userphone + { + get + { + return this._userphone ?? ""; + } + set + { + this._userphone = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool userphoneSpecified + { + get + { + return this._userphone != null; + } + set + { + bool flag = value == (this._userphone == null); + if (flag) + { + this._userphone = (value ? this.userphone : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "RecommandGate", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LoginGateData RecommandGate + { + get + { + return this._RecommandGate; + } + set + { + this._RecommandGate = value; + } + } + + [ProtoMember(5, Name = "servers", DataFormat = DataFormat.Default)] + public List servers + { + get + { + return this._servers; + } + } + + [ProtoMember(6, IsRequired = false, Name = "loginzoneid", DataFormat = DataFormat.TwosComplement)] + public uint loginzoneid + { + get + { + return this._loginzoneid ?? 0u; + } + set + { + this._loginzoneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loginzoneidSpecified + { + get + { + return this._loginzoneid != null; + } + set + { + bool flag = value == (this._loginzoneid == null); + if (flag) + { + this._loginzoneid = (value ? new uint?(this.loginzoneid) : null); + } + } + } + + [ProtoMember(7, Name = "allservers", DataFormat = DataFormat.Default)] + public List allservers + { + get + { + return this._allservers; + } + } + + [ProtoMember(8, IsRequired = false, Name = "in_white_list", DataFormat = DataFormat.Default)] + public bool in_white_list + { + get + { + return this._in_white_list ?? false; + } + set + { + this._in_white_list = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool in_white_listSpecified + { + get + { + return this._in_white_list != null; + } + set + { + bool flag = value == (this._in_white_list == null); + if (flag) + { + this._in_white_list = (value ? new bool?(this.in_white_list) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "notice", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatNotice notice + { + get + { + return this._notice; + } + set + { + this._notice = value; + } + } + + [ProtoMember(10, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "baninfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatBanAccount baninfo + { + get + { + return this._baninfo; + } + set + { + this._baninfo = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "freeflow", DataFormat = DataFormat.Default)] + public bool freeflow + { + get + { + return this._freeflow ?? false; + } + set + { + this._freeflow = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freeflowSpecified + { + get + { + return this._freeflow != null; + } + set + { + bool flag = value == (this._freeflow == null); + if (flag) + { + this._freeflow = (value ? new bool?(this.freeflow) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "cctype", DataFormat = DataFormat.TwosComplement)] + public int cctype + { + get + { + return this._cctype ?? 0; + } + set + { + this._cctype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cctypeSpecified + { + get + { + return this._cctype != null; + } + set + { + bool flag = value == (this._cctype == null); + if (flag) + { + this._cctype = (value ? new int?(this.cctype) : null); + } + } + } + + [ProtoMember(14, Name = "platFriendServers", DataFormat = DataFormat.Default)] + public List platFriendServers + { + get + { + return this._platFriendServers; + } + } + + [ProtoMember(15, Name = "bespeakserverids", DataFormat = DataFormat.TwosComplement)] + public List bespeakserverids + { + get + { + return this._bespeakserverids; + } + } + + private byte[] _loginToken; + + private byte[] _gateconfig; + + private string _userphone; + + private LoginGateData _RecommandGate = null; + + private readonly List _servers = new List(); + + private uint? _loginzoneid; + + private readonly List _allservers = new List(); + + private bool? _in_white_list; + + private PlatNotice _notice = null; + + private ErrorCode? _error; + + private PlatBanAccount _baninfo = null; + + private bool? _freeflow; + + private int? _cctype; + + private readonly List _platFriendServers = new List(); + + private readonly List _bespeakserverids = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeloginToken() + { + return this.loginTokenSpecified; + } + + private void ResetloginToken() + { + this.loginTokenSpecified = false; + } + + private bool ShouldSerializegateconfig() + { + return this.gateconfigSpecified; + } + + private void Resetgateconfig() + { + this.gateconfigSpecified = false; + } + + private bool ShouldSerializeuserphone() + { + return this.userphoneSpecified; + } + + private void Resetuserphone() + { + this.userphoneSpecified = false; + } + + private bool ShouldSerializeloginzoneid() + { + return this.loginzoneidSpecified; + } + + private void Resetloginzoneid() + { + this.loginzoneidSpecified = false; + } + + private bool ShouldSerializein_white_list() + { + return this.in_white_listSpecified; + } + + private void Resetin_white_list() + { + this.in_white_listSpecified = false; + } + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializefreeflow() + { + return this.freeflowSpecified; + } + + private void Resetfreeflow() + { + this.freeflowSpecified = false; + } + + private bool ShouldSerializecctype() + { + return this.cctypeSpecified; + } + + private void Resetcctype() + { + this.cctypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGateRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateRes.cs.meta new file mode 100644 index 00000000..e80659bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGateRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d349c18bc9cd6047ba037b9579e44bf +timeCreated: 1611403900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardArg.cs new file mode 100644 index 00000000..a9dc11b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryGuildCardArg")] + [Serializable] + public class QueryGuildCardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardArg.cs.meta new file mode 100644 index 00000000..258c53d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 70ff9f5f7261cf24080829a09dcf849c +timeCreated: 1611403932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardRes.cs new file mode 100644 index 00000000..33f92bbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardRes.cs @@ -0,0 +1,461 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryGuildCardRes")] + [Serializable] + public class QueryGuildCardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "playcount", DataFormat = DataFormat.TwosComplement)] + public uint playcount + { + get + { + return this._playcount ?? 0u; + } + set + { + this._playcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool playcountSpecified + { + get + { + return this._playcount != null; + } + set + { + bool flag = value == (this._playcount == null); + if (flag) + { + this._playcount = (value ? new uint?(this.playcount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "changecount", DataFormat = DataFormat.TwosComplement)] + public uint changecount + { + get + { + return this._changecount ?? 0u; + } + set + { + this._changecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool changecountSpecified + { + get + { + return this._changecount != null; + } + set + { + bool flag = value == (this._changecount == null); + if (flag) + { + this._changecount = (value ? new uint?(this.changecount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "canplaycount", DataFormat = DataFormat.TwosComplement)] + public uint canplaycount + { + get + { + return this._canplaycount ?? 0u; + } + set + { + this._canplaycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canplaycountSpecified + { + get + { + return this._canplaycount != null; + } + set + { + bool flag = value == (this._canplaycount == null); + if (flag) + { + this._canplaycount = (value ? new uint?(this.canplaycount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "canchangecount", DataFormat = DataFormat.TwosComplement)] + public uint canchangecount + { + get + { + return this._canchangecount ?? 0u; + } + set + { + this._canchangecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canchangecountSpecified + { + get + { + return this._canchangecount != null; + } + set + { + bool flag = value == (this._canchangecount == null); + if (flag) + { + this._canchangecount = (value ? new uint?(this.canchangecount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)] + public uint allcount + { + get + { + return this._allcount ?? 0u; + } + set + { + this._allcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allcountSpecified + { + get + { + return this._allcount != null; + } + set + { + bool flag = value == (this._allcount == null); + if (flag) + { + this._allcount = (value ? new uint?(this.allcount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "canallcount", DataFormat = DataFormat.TwosComplement)] + public uint canallcount + { + get + { + return this._canallcount ?? 0u; + } + set + { + this._canallcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canallcountSpecified + { + get + { + return this._canallcount != null; + } + set + { + bool flag = value == (this._canallcount == null); + if (flag) + { + this._canallcount = (value ? new uint?(this.canallcount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "bestresult", DataFormat = DataFormat.TwosComplement)] + public uint bestresult + { + get + { + return this._bestresult ?? 0u; + } + set + { + this._bestresult = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bestresultSpecified + { + get + { + return this._bestresult != null; + } + set + { + bool flag = value == (this._bestresult == null); + if (flag) + { + this._bestresult = (value ? new uint?(this.bestresult) : null); + } + } + } + + [ProtoMember(8, Name = "bestcards", DataFormat = DataFormat.TwosComplement)] + public List bestcards + { + get + { + return this._bestcards; + } + } + + [ProtoMember(9, IsRequired = false, Name = "buychangcount", DataFormat = DataFormat.TwosComplement)] + public uint buychangcount + { + get + { + return this._buychangcount ?? 0u; + } + set + { + this._buychangcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buychangcountSpecified + { + get + { + return this._buychangcount != null; + } + set + { + bool flag = value == (this._buychangcount == null); + if (flag) + { + this._buychangcount = (value ? new uint?(this.buychangcount) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "bestrole", DataFormat = DataFormat.Default)] + public string bestrole + { + get + { + return this._bestrole ?? ""; + } + set + { + this._bestrole = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bestroleSpecified + { + get + { + return this._bestrole != null; + } + set + { + bool flag = value == (this._bestrole == null); + if (flag) + { + this._bestrole = (value ? this.bestrole : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private uint? _playcount; + + private uint? _changecount; + + private uint? _canplaycount; + + private uint? _canchangecount; + + private uint? _allcount; + + private uint? _canallcount; + + private uint? _bestresult; + + private readonly List _bestcards = new List(); + + private uint? _buychangcount; + + private string _bestrole; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeplaycount() + { + return this.playcountSpecified; + } + + private void Resetplaycount() + { + this.playcountSpecified = false; + } + + private bool ShouldSerializechangecount() + { + return this.changecountSpecified; + } + + private void Resetchangecount() + { + this.changecountSpecified = false; + } + + private bool ShouldSerializecanplaycount() + { + return this.canplaycountSpecified; + } + + private void Resetcanplaycount() + { + this.canplaycountSpecified = false; + } + + private bool ShouldSerializecanchangecount() + { + return this.canchangecountSpecified; + } + + private void Resetcanchangecount() + { + this.canchangecountSpecified = false; + } + + private bool ShouldSerializeallcount() + { + return this.allcountSpecified; + } + + private void Resetallcount() + { + this.allcountSpecified = false; + } + + private bool ShouldSerializecanallcount() + { + return this.canallcountSpecified; + } + + private void Resetcanallcount() + { + this.canallcountSpecified = false; + } + + private bool ShouldSerializebestresult() + { + return this.bestresultSpecified; + } + + private void Resetbestresult() + { + this.bestresultSpecified = false; + } + + private bool ShouldSerializebuychangcount() + { + return this.buychangcountSpecified; + } + + private void Resetbuychangcount() + { + this.buychangcountSpecified = false; + } + + private bool ShouldSerializebestrole() + { + return this.bestroleSpecified; + } + + private void Resetbestrole() + { + this.bestroleSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardRes.cs.meta new file mode 100644 index 00000000..549c8474 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5fbd37d7a7143f249b1fe2347dbf70d2 +timeCreated: 1611403830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinArg.cs new file mode 100644 index 00000000..38e2ad32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryGuildCheckinArg")] + [Serializable] + public class QueryGuildCheckinArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinArg.cs.meta new file mode 100644 index 00000000..3d01bb5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cd63f57e35b26e4bb71ae8afacc5dd1 +timeCreated: 1611403348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinRes.cs new file mode 100644 index 00000000..2db5eaef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinRes.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryGuildCheckinRes")] + [Serializable] + public class QueryGuildCheckinRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "checkincount", DataFormat = DataFormat.TwosComplement)] + public uint checkincount + { + get + { + return this._checkincount ?? 0u; + } + set + { + this._checkincount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool checkincountSpecified + { + get + { + return this._checkincount != null; + } + set + { + bool flag = value == (this._checkincount == null); + if (flag) + { + this._checkincount = (value ? new uint?(this.checkincount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)] + public uint allcount + { + get + { + return this._allcount ?? 0u; + } + set + { + this._allcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allcountSpecified + { + get + { + return this._allcount != null; + } + set + { + bool flag = value == (this._allcount == null); + if (flag) + { + this._allcount = (value ? new uint?(this.allcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "checkin", DataFormat = DataFormat.TwosComplement)] + public uint checkin + { + get + { + return this._checkin ?? 0u; + } + set + { + this._checkin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool checkinSpecified + { + get + { + return this._checkin != null; + } + set + { + bool flag = value == (this._checkin == null); + if (flag) + { + this._checkin = (value ? new uint?(this.checkin) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "boxmask", DataFormat = DataFormat.TwosComplement)] + public uint boxmask + { + get + { + return this._boxmask ?? 0u; + } + set + { + this._boxmask = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool boxmaskSpecified + { + get + { + return this._boxmask != null; + } + set + { + bool flag = value == (this._boxmask == null); + if (flag) + { + this._boxmask = (value ? new uint?(this.boxmask) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private uint? _checkincount; + + private uint? _allcount; + + private uint? _checkin; + + private uint? _boxmask; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializecheckincount() + { + return this.checkincountSpecified; + } + + private void Resetcheckincount() + { + this.checkincountSpecified = false; + } + + private bool ShouldSerializeallcount() + { + return this.allcountSpecified; + } + + private void Resetallcount() + { + this.allcountSpecified = false; + } + + private bool ShouldSerializecheckin() + { + return this.checkinSpecified; + } + + private void Resetcheckin() + { + this.checkinSpecified = false; + } + + private bool ShouldSerializeboxmask() + { + return this.boxmaskSpecified; + } + + private void Resetboxmask() + { + this.boxmaskSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinRes.cs.meta new file mode 100644 index 00000000..d6b56f9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryGuildCheckinRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4730761a164ed7146a6f553a6496d3dd +timeCreated: 1611403652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs new file mode 100644 index 00000000..0e81fc51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryLotteryCDArg")] + [Serializable] + public class QueryLotteryCDArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs.meta new file mode 100644 index 00000000..68514cce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a70013e8c2b776a40b79938507e93201 +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs new file mode 100644 index 00000000..bfe05022 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryLotteryCDRes")] + [Serializable] + public class QueryLotteryCDRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public uint cooldown + { + get + { + return this._cooldown ?? 0u; + } + set + { + this._cooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooldownSpecified + { + get + { + return this._cooldown != null; + } + set + { + bool flag = value == (this._cooldown == null); + if (flag) + { + this._cooldown = (value ? new uint?(this.cooldown) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "goldbuycount", DataFormat = DataFormat.TwosComplement)] + public uint goldbuycount + { + get + { + return this._goldbuycount ?? 0u; + } + set + { + this._goldbuycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldbuycountSpecified + { + get + { + return this._goldbuycount != null; + } + set + { + bool flag = value == (this._goldbuycount == null); + if (flag) + { + this._goldbuycount = (value ? new uint?(this.goldbuycount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "goldbuycooldown", DataFormat = DataFormat.TwosComplement)] + public uint goldbuycooldown + { + get + { + return this._goldbuycooldown ?? 0u; + } + set + { + this._goldbuycooldown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldbuycooldownSpecified + { + get + { + return this._goldbuycooldown != null; + } + set + { + bool flag = value == (this._goldbuycooldown == null); + if (flag) + { + this._goldbuycooldown = (value ? new uint?(this.goldbuycooldown) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "goldbaodi", DataFormat = DataFormat.TwosComplement)] + public uint goldbaodi + { + get + { + return this._goldbaodi ?? 0u; + } + set + { + this._goldbaodi = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldbaodiSpecified + { + get + { + return this._goldbaodi != null; + } + set + { + bool flag = value == (this._goldbaodi == null); + if (flag) + { + this._goldbaodi = (value ? new uint?(this.goldbaodi) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "coinbaodi", DataFormat = DataFormat.TwosComplement)] + public uint coinbaodi + { + get + { + return this._coinbaodi ?? 0u; + } + set + { + this._coinbaodi = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool coinbaodiSpecified + { + get + { + return this._coinbaodi != null; + } + set + { + bool flag = value == (this._coinbaodi == null); + if (flag) + { + this._coinbaodi = (value ? new uint?(this.coinbaodi) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _cooldown; + + private uint? _goldbuycount; + + private uint? _goldbuycooldown; + + private uint? _goldbaodi; + + private uint? _coinbaodi; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializecooldown() + { + return this.cooldownSpecified; + } + + private void Resetcooldown() + { + this.cooldownSpecified = false; + } + + private bool ShouldSerializegoldbuycount() + { + return this.goldbuycountSpecified; + } + + private void Resetgoldbuycount() + { + this.goldbuycountSpecified = false; + } + + private bool ShouldSerializegoldbuycooldown() + { + return this.goldbuycooldownSpecified; + } + + private void Resetgoldbuycooldown() + { + this.goldbuycooldownSpecified = false; + } + + private bool ShouldSerializegoldbaodi() + { + return this.goldbaodiSpecified; + } + + private void Resetgoldbaodi() + { + this.goldbaodiSpecified = false; + } + + private bool ShouldSerializecoinbaodi() + { + return this.coinbaodiSpecified; + } + + private void Resetcoinbaodi() + { + this.coinbaodiSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs.meta new file mode 100644 index 00000000..1edf9fe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryLotteryCDRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e80da44152f58444c99de8d400bd5222 +timeCreated: 1611404751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs new file mode 100644 index 00000000..22a84881 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryMayhemRankArg")] + [Serializable] + public class QueryMayhemRankArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public int count + { + get + { + return this._count ?? 0; + } + set + { + this._count = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new int?(this.count) : null); + } + } + } + + private int? _count; + + private IExtension extensionObject; + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs.meta new file mode 100644 index 00000000..80c8e206 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8fe802b206cb05b478ced2c23646214f +timeCreated: 1611404136 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs new file mode 100644 index 00000000..da0aa6d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs @@ -0,0 +1,219 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryMayhemRankRes")] + [Serializable] + public class QueryMayhemRankRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "err", DataFormat = DataFormat.TwosComplement)] + public ErrorCode err + { + get + { + return this._err ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._err = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errSpecified + { + get + { + return this._err != null; + } + set + { + bool flag = value == (this._err == null); + if (flag) + { + this._err = (value ? new ErrorCode?(this.err) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "selfrank", DataFormat = DataFormat.TwosComplement)] + public int selfrank + { + get + { + return this._selfrank ?? 0; + } + set + { + this._selfrank = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selfrankSpecified + { + get + { + return this._selfrank != null; + } + set + { + bool flag = value == (this._selfrank == null); + if (flag) + { + this._selfrank = (value ? new int?(this.selfrank) : null); + } + } + } + + [ProtoMember(3, Name = "rank", DataFormat = DataFormat.Default)] + public List rank + { + get + { + return this._rank; + } + } + + [ProtoMember(4, IsRequired = false, Name = "infight", DataFormat = DataFormat.Default)] + public bool infight + { + get + { + return this._infight ?? false; + } + set + { + this._infight = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool infightSpecified + { + get + { + return this._infight != null; + } + set + { + bool flag = value == (this._infight == null); + if (flag) + { + this._infight = (value ? new bool?(this.infight) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "selfinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MayhemRankInfo selfinfo + { + get + { + return this._selfinfo; + } + set + { + this._selfinfo = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "gamezoneid", DataFormat = DataFormat.TwosComplement)] + public uint gamezoneid + { + get + { + return this._gamezoneid ?? 0u; + } + set + { + this._gamezoneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gamezoneidSpecified + { + get + { + return this._gamezoneid != null; + } + set + { + bool flag = value == (this._gamezoneid == null); + if (flag) + { + this._gamezoneid = (value ? new uint?(this.gamezoneid) : null); + } + } + } + + private ErrorCode? _err; + + private int? _selfrank; + + private readonly List _rank = new List(); + + private bool? _infight; + + private MayhemRankInfo _selfinfo = null; + + private uint? _gamezoneid; + + private IExtension extensionObject; + + private bool ShouldSerializeerr() + { + return this.errSpecified; + } + + private void Reseterr() + { + this.errSpecified = false; + } + + private bool ShouldSerializeselfrank() + { + return this.selfrankSpecified; + } + + private void Resetselfrank() + { + this.selfrankSpecified = false; + } + + private bool ShouldSerializeinfight() + { + return this.infightSpecified; + } + + private void Resetinfight() + { + this.infightSpecified = false; + } + + private bool ShouldSerializegamezoneid() + { + return this.gamezoneidSpecified; + } + + private void Resetgamezoneid() + { + this.gamezoneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs.meta new file mode 100644 index 00000000..23bc76de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryMayhemRankRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0c4485089540bb43bde6bb48b566206 +timeCreated: 1611404353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameArg.cs new file mode 100644 index 00000000..1aedbd59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryOpenGameArg")] + [Serializable] + public class QueryOpenGameArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameArg.cs.meta new file mode 100644 index 00000000..bbc94c73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af85a91b5e931c14c845173c52153d68 +timeCreated: 1611404345 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameRes.cs new file mode 100644 index 00000000..2b80506b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryOpenGameRes")] + [Serializable] + public class QueryOpenGameRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "timeLeft", DataFormat = DataFormat.TwosComplement)] + public uint timeLeft + { + get + { + return this._timeLeft ?? 0u; + } + set + { + this._timeLeft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeLeftSpecified + { + get + { + return this._timeLeft != null; + } + set + { + bool flag = value == (this._timeLeft == null); + if (flag) + { + this._timeLeft = (value ? new uint?(this.timeLeft) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private uint? _timeLeft; + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializetimeLeft() + { + return this.timeLeftSpecified; + } + + private void ResettimeLeft() + { + this.timeLeftSpecified = false; + } + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameRes.cs.meta new file mode 100644 index 00000000..e47837df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryOpenGameRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0473c3e927129c4e92b7660325d5015 +timeCreated: 1611404586 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryPkInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryPkInfoRes.cs new file mode 100644 index 00000000..87d869f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryPkInfoRes.cs @@ -0,0 +1,250 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryPkInfoRes")] + [Serializable] + public class QueryPkInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rank1v1", DataFormat = DataFormat.TwosComplement)] + public uint rank1v1 + { + get + { + return this._rank1v1 ?? 0u; + } + set + { + this._rank1v1 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rank1v1Specified + { + get + { + return this._rank1v1 != null; + } + set + { + bool flag = value == (this._rank1v1 == null); + if (flag) + { + this._rank1v1 = (value ? new uint?(this.rank1v1) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rewardcount", DataFormat = DataFormat.TwosComplement)] + public uint rewardcount + { + get + { + return this._rewardcount ?? 0u; + } + set + { + this._rewardcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardcountSpecified + { + get + { + return this._rewardcount != null; + } + set + { + bool flag = value == (this._rewardcount == null); + if (flag) + { + this._rewardcount = (value ? new uint?(this.rewardcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkRecord info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "timelimit", DataFormat = DataFormat.TwosComplement)] + public uint timelimit + { + get + { + return this._timelimit ?? 0u; + } + set + { + this._timelimit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timelimitSpecified + { + get + { + return this._timelimit != null; + } + set + { + bool flag = value == (this._timelimit == null); + if (flag) + { + this._timelimit = (value ? new uint?(this.timelimit) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "rankrewardleftT", DataFormat = DataFormat.TwosComplement)] + public uint rankrewardleftT + { + get + { + return this._rankrewardleftT ?? 0u; + } + set + { + this._rankrewardleftT = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankrewardleftTSpecified + { + get + { + return this._rankrewardleftT != null; + } + set + { + bool flag = value == (this._rankrewardleftT == null); + if (flag) + { + this._rankrewardleftT = (value ? new uint?(this.rankrewardleftT) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "rank2v2", DataFormat = DataFormat.TwosComplement)] + public uint rank2v2 + { + get + { + return this._rank2v2 ?? 0u; + } + set + { + this._rank2v2 = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rank2v2Specified + { + get + { + return this._rank2v2 != null; + } + set + { + bool flag = value == (this._rank2v2 == null); + if (flag) + { + this._rank2v2 = (value ? new uint?(this.rank2v2) : null); + } + } + } + + private uint? _rank1v1; + + private uint? _rewardcount; + + private PkRecord _info = null; + + private uint? _timelimit; + + private uint? _rankrewardleftT; + + private uint? _rank2v2; + + private IExtension extensionObject; + + private bool ShouldSerializerank1v1() + { + return this.rank1v1Specified; + } + + private void Resetrank1v1() + { + this.rank1v1Specified = false; + } + + private bool ShouldSerializerewardcount() + { + return this.rewardcountSpecified; + } + + private void Resetrewardcount() + { + this.rewardcountSpecified = false; + } + + private bool ShouldSerializetimelimit() + { + return this.timelimitSpecified; + } + + private void Resettimelimit() + { + this.timelimitSpecified = false; + } + + private bool ShouldSerializerankrewardleftT() + { + return this.rankrewardleftTSpecified; + } + + private void ResetrankrewardleftT() + { + this.rankrewardleftTSpecified = false; + } + + private bool ShouldSerializerank2v2() + { + return this.rank2v2Specified; + } + + private void Resetrank2v2() + { + this.rank2v2Specified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryPkInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryPkInfoRes.cs.meta new file mode 100644 index 00000000..0e0dbb48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryPkInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ae1afe44a84ed1439457df41a805dbc +timeCreated: 1611403497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointArg.cs new file mode 100644 index 00000000..2fd8a713 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryPowerPointArg")] + [Serializable] + public class QueryPowerPointArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointArg.cs.meta new file mode 100644 index 00000000..8eae3126 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37597bf32fd286d43a85f53bb378a5b4 +timeCreated: 1611403565 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointRes.cs new file mode 100644 index 00000000..d3748352 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointRes.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryPowerPointRes")] + [Serializable] + public class QueryPowerPointRes : IExtensible + { + [ProtoMember(1, Name = "bqID", DataFormat = DataFormat.TwosComplement)] + public List bqID + { + get + { + return this._bqID; + } + } + + [ProtoMember(2, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public List ppt + { + get + { + return this._ppt; + } + } + + [ProtoMember(3, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _bqID = new List(); + + private readonly List _ppt = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointRes.cs.meta new file mode 100644 index 00000000..211d065b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryPowerPointRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea325bc494a35144b88a9f57187e9d02 +timeCreated: 1611404778 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs new file mode 100644 index 00000000..343a381f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryQQFriendsVipInfoArg")] + [Serializable] + public class QueryQQFriendsVipInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + [ProtoMember(2, Name = "friendopenids", DataFormat = DataFormat.Default)] + public List friendopenids + { + get + { + return this._friendopenids; + } + } + + private string _token; + + private readonly List _friendopenids = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs.meta new file mode 100644 index 00000000..b3bcd4e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44298105410d85849af294224724712c +timeCreated: 1611403644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs new file mode 100644 index 00000000..a1de926e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryQQFriendsVipInfoRes")] + [Serializable] + public class QueryQQFriendsVipInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "info", DataFormat = DataFormat.Default)] + public List info + { + get + { + return this._info; + } + } + + private ErrorCode? _result; + + private readonly List _info = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs.meta new file mode 100644 index 00000000..c4727ef7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQFriendsVipInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97c32c9084175bb4f8093f64de2d9e8d +timeCreated: 1611404189 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs new file mode 100644 index 00000000..a2f803b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryQQVipInfoArg")] + [Serializable] + public class QueryQQVipInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs.meta new file mode 100644 index 00000000..72f45dd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5eccf45f8bae42b43ab550f0f73430cd +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs new file mode 100644 index 00000000..b2f0f90d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryQQVipInfoRes")] + [Serializable] + public class QueryQQVipInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public QQVipInfoClient info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private ErrorCode? _result; + + private QQVipInfoClient _info = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs.meta new file mode 100644 index 00000000..bd2afa2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryQQVipInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86a4e8a6d4837d245912a9535074426e +timeCreated: 1611404055 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarArg.cs new file mode 100644 index 00000000..c4c0dcfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryResWarArg")] + [Serializable] + public class QueryResWarArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public QueryResWarEnum param + { + get + { + return this._param ?? QueryResWarEnum.RESWAR_FLOWAWARD; + } + set + { + this._param = new QueryResWarEnum?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new QueryResWarEnum?(this.param) : null); + } + } + } + + private QueryResWarEnum? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarArg.cs.meta new file mode 100644 index 00000000..8c7ddcee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a5ef4906e111ddd46895e2b3c1406191 +timeCreated: 1611404287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarEnum.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarEnum.cs new file mode 100644 index 00000000..818ce410 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarEnum.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryResWarEnum")] + public enum QueryResWarEnum + { + [ProtoEnum(Name = "RESWAR_FLOWAWARD", Value = 1)] + RESWAR_FLOWAWARD = 1, + [ProtoEnum(Name = "RESWAR_BATTLE", Value = 2)] + RESWAR_BATTLE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarEnum.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarEnum.cs.meta new file mode 100644 index 00000000..d115b24f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7384fd57ffe1ec740bcceed478b55568 +timeCreated: 1611403940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarRes.cs new file mode 100644 index 00000000..edb269ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarRes.cs @@ -0,0 +1,94 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryResWarRes")] + [Serializable] + public class QueryResWarRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ResWarGuildBrief data + { + get + { + return this._data; + } + set + { + this._data = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "finalrank", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ResWarFinalAll finalrank + { + get + { + return this._finalrank; + } + set + { + this._finalrank = value; + } + } + + private ResWarGuildBrief _data = null; + + private ErrorCode? _error; + + private ResWarFinalAll _finalrank = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarRes.cs.meta new file mode 100644 index 00000000..3197354a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryResWarRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68941f72113017e49ba479edc01a8418 +timeCreated: 1611403882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateAck.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateAck.cs new file mode 100644 index 00000000..b3fb452b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateAck.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryRoleStateAck")] + [Serializable] + public class QueryRoleStateAck : IExtensible + { + [ProtoMember(1, Name = "roleids", DataFormat = DataFormat.TwosComplement)] + public List roleids + { + get + { + return this._roleids; + } + } + + [ProtoMember(2, Name = "state", DataFormat = DataFormat.TwosComplement)] + public List state + { + get + { + return this._state; + } + } + + private readonly List _roleids = new List(); + + private readonly List _state = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateAck.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateAck.cs.meta new file mode 100644 index 00000000..ee92df9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateAck.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15b84785b03ad5740becec4b7ec60bf7 +timeCreated: 1611403264 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateReq.cs new file mode 100644 index 00000000..33074f6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateReq.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryRoleStateReq")] + [Serializable] + public class QueryRoleStateReq : IExtensible + { + [ProtoMember(1, Name = "roleids", DataFormat = DataFormat.TwosComplement)] + public List roleids + { + get + { + return this._roleids; + } + } + + private readonly List _roleids = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateReq.cs.meta new file mode 100644 index 00000000..c96aea03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryRoleStateReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be385c3f91eef5b40b94dd31bdb432d2 +timeCreated: 1611404459 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountArg.cs new file mode 100644 index 00000000..40bc4f42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QuerySceneDayCountArg")] + [Serializable] + public class QuerySceneDayCountArg : IExtensible + { + [ProtoMember(1, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public List groupid + { + get + { + return this._groupid; + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private readonly List _groupid = new List(); + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountArg.cs.meta new file mode 100644 index 00000000..d88c3a06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d84ebc844c8f0784ca142871974a6a98 +timeCreated: 1611404639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountRes.cs new file mode 100644 index 00000000..88162360 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountRes.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QuerySceneDayCountRes")] + [Serializable] + public class QuerySceneDayCountRes : IExtensible + { + [ProtoMember(1, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public List sceneid + { + get + { + return this._sceneid; + } + } + + [ProtoMember(2, Name = "scenecout", DataFormat = DataFormat.TwosComplement)] + public List scenecout + { + get + { + return this._scenecout; + } + } + + [ProtoMember(3, Name = "scenebuycount", DataFormat = DataFormat.TwosComplement)] + public List scenebuycount + { + get + { + return this._scenebuycount; + } + } + + [ProtoMember(4, Name = "chestOpenedScene", DataFormat = DataFormat.TwosComplement)] + public List chestOpenedScene + { + get + { + return this._chestOpenedScene; + } + } + + [ProtoMember(5, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private readonly List _sceneid = new List(); + + private readonly List _scenecout = new List(); + + private readonly List _scenebuycount = new List(); + + private readonly List _chestOpenedScene = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountRes.cs.meta new file mode 100644 index 00000000..9372c462 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneDayCountRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4330a48027aedaa429d72045bc7181eb +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs new file mode 100644 index 00000000..ac7d0e4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QuerySceneTimeArg")] + [Serializable] + public class QuerySceneTimeArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs.meta new file mode 100644 index 00000000..d3d5a6e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f640c8ee11b395c44955196a9e9488d4 +timeCreated: 1611404881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs new file mode 100644 index 00000000..91eca8c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QuerySceneTimeRes")] + [Serializable] + public class QuerySceneTimeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public int time + { + get + { + return this._time ?? 0; + } + set + { + this._time = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new int?(this.time) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private int? _time; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs.meta new file mode 100644 index 00000000..3d849658 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuerySceneTimeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 197a0ba2d23a15e4fa7dd833e4f904de +timeCreated: 1611403302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemArg.cs new file mode 100644 index 00000000..a8d87292 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryShopItemArg")] + [Serializable] + public class QueryShopItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isrefresh", DataFormat = DataFormat.Default)] + public bool isrefresh + { + get + { + return this._isrefresh ?? false; + } + set + { + this._isrefresh = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isrefreshSpecified + { + get + { + return this._isrefresh != null; + } + set + { + bool flag = value == (this._isrefresh == null); + if (flag) + { + this._isrefresh = (value ? new bool?(this.isrefresh) : null); + } + } + } + + private uint? _type; + + private bool? _isrefresh; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeisrefresh() + { + return this.isrefreshSpecified; + } + + private void Resetisrefresh() + { + this.isrefreshSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemArg.cs.meta new file mode 100644 index 00000000..5029042d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4809625ced13f9c419b676aaf12cfdc6 +timeCreated: 1611403656 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemRes.cs new file mode 100644 index 00000000..60e48175 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QueryShopItemRes")] + [Serializable] + public class QueryShopItemRes : IExtensible + { + [ProtoMember(1, Name = "ShopItem", DataFormat = DataFormat.Default)] + public List ShopItem + { + get + { + return this._ShopItem; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "refreshcount", DataFormat = DataFormat.TwosComplement)] + public uint refreshcount + { + get + { + return this._refreshcount ?? 0u; + } + set + { + this._refreshcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshcountSpecified + { + get + { + return this._refreshcount != null; + } + set + { + bool flag = value == (this._refreshcount == null); + if (flag) + { + this._refreshcount = (value ? new uint?(this.refreshcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cooklevel", DataFormat = DataFormat.TwosComplement)] + public uint cooklevel + { + get + { + return this._cooklevel ?? 0u; + } + set + { + this._cooklevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cooklevelSpecified + { + get + { + return this._cooklevel != null; + } + set + { + bool flag = value == (this._cooklevel == null); + if (flag) + { + this._cooklevel = (value ? new uint?(this.cooklevel) : null); + } + } + } + + private readonly List _ShopItem = new List(); + + private ErrorCode? _errorcode; + + private uint? _refreshcount; + + private uint? _cooklevel; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializerefreshcount() + { + return this.refreshcountSpecified; + } + + private void Resetrefreshcount() + { + this.refreshcountSpecified = false; + } + + private bool ShouldSerializecooklevel() + { + return this.cooklevelSpecified; + } + + private void Resetcooklevel() + { + this.cooklevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemRes.cs.meta new file mode 100644 index 00000000..34392978 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QueryShopItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad74c26b1359c594388b44a75bb42ab0 +timeCreated: 1611404334 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs b/Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs new file mode 100644 index 00000000..07eb82ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "QuitRoom")] + [Serializable] + public class QuitRoom : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roomID", DataFormat = DataFormat.TwosComplement)] + public long roomID + { + get + { + return this._roomID ?? 0L; + } + set + { + this._roomID = new long?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomIDSpecified + { + get + { + return this._roomID != null; + } + set + { + bool flag = value == (this._roomID == null); + if (flag) + { + this._roomID = (value ? new long?(this.roomID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "memberID", DataFormat = DataFormat.TwosComplement)] + public int memberID + { + get + { + return this._memberID ?? 0; + } + set + { + this._memberID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberIDSpecified + { + get + { + return this._memberID != null; + } + set + { + bool flag = value == (this._memberID == null); + if (flag) + { + this._memberID = (value ? new int?(this.memberID) : null); + } + } + } + + private long? _roomID; + + private int? _memberID; + + private IExtension extensionObject; + + private bool ShouldSerializeroomID() + { + return this.roomIDSpecified; + } + + private void ResetroomID() + { + this.roomIDSpecified = false; + } + + private bool ShouldSerializememberID() + { + return this.memberIDSpecified; + } + + private void ResetmemberID() + { + this.memberIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs.meta new file mode 100644 index 00000000..90ef1410 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/QuitRoom.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c1aa665e98285748888360c3896baf9 +timeCreated: 1611403501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListArg.cs new file mode 100644 index 00000000..2c26b4d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RandomFriendWaitListArg")] + [Serializable] + public class RandomFriendWaitListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "match", DataFormat = DataFormat.Default)] + public string match + { + get + { + return this._match ?? ""; + } + set + { + this._match = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool matchSpecified + { + get + { + return this._match != null; + } + set + { + bool flag = value == (this._match == null); + if (flag) + { + this._match = (value ? this.match : null); + } + } + } + + private string _match; + + private IExtension extensionObject; + + private bool ShouldSerializematch() + { + return this.matchSpecified; + } + + private void Resetmatch() + { + this.matchSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListArg.cs.meta new file mode 100644 index 00000000..9c52639b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d5d667061abba3478f408848c5f17a9 +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListRes.cs new file mode 100644 index 00000000..5e14c7b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListRes.cs @@ -0,0 +1,184 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RandomFriendWaitListRes")] + [Serializable] + public class RandomFriendWaitListRes : IExtensible + { + [ProtoMember(1, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + [ProtoMember(2, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public List profession + { + get + { + return this._profession; + } + } + + [ProtoMember(3, Name = "name", DataFormat = DataFormat.Default)] + public List name + { + get + { + return this._name; + } + } + + [ProtoMember(4, Name = "level", DataFormat = DataFormat.TwosComplement)] + public List level + { + get + { + return this._level; + } + } + + [ProtoMember(5, Name = "powerpoint", DataFormat = DataFormat.TwosComplement)] + public List powerpoint + { + get + { + return this._powerpoint; + } + } + + [ProtoMember(6, Name = "viplevel", DataFormat = DataFormat.TwosComplement)] + public List viplevel + { + get + { + return this._viplevel; + } + } + + [ProtoMember(7, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(8, Name = "lastlogin", DataFormat = DataFormat.TwosComplement)] + public List lastlogin + { + get + { + return this._lastlogin; + } + } + + [ProtoMember(9, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public List guildid + { + get + { + return this._guildid; + } + } + + [ProtoMember(10, Name = "guildname", DataFormat = DataFormat.Default)] + public List guildname + { + get + { + return this._guildname; + } + } + + [ProtoMember(11, Name = "nickid", DataFormat = DataFormat.TwosComplement)] + public List nickid + { + get + { + return this._nickid; + } + } + + [ProtoMember(12, Name = "titleid", DataFormat = DataFormat.TwosComplement)] + public List titleid + { + get + { + return this._titleid; + } + } + + private readonly List _roleid = new List(); + + private readonly List _profession = new List(); + + private readonly List _name = new List(); + + private readonly List _level = new List(); + + private readonly List _powerpoint = new List(); + + private readonly List _viplevel = new List(); + + private ErrorCode? _errorcode; + + private readonly List _lastlogin = new List(); + + private readonly List _guildid = new List(); + + private readonly List _guildname = new List(); + + private readonly List _nickid = new List(); + + private readonly List _titleid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListRes.cs.meta new file mode 100644 index 00000000..686e4b7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RandomFriendWaitListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: beabb4a429a56924e89c15fa48ab000f +timeCreated: 1611404480 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RankData.cs new file mode 100644 index 00000000..e6c28d27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RankData.cs @@ -0,0 +1,1713 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RankData")] + [Serializable] + public class RankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "RoleId", DataFormat = DataFormat.TwosComplement)] + public ulong RoleId + { + get + { + return this._RoleId ?? 0UL; + } + set + { + this._RoleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RoleIdSpecified + { + get + { + return this._RoleId != null; + } + set + { + bool flag = value == (this._RoleId == null); + if (flag) + { + this._RoleId = (value ? new ulong?(this.RoleId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "RoleName", DataFormat = DataFormat.Default)] + public string RoleName + { + get + { + return this._RoleName ?? ""; + } + set + { + this._RoleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RoleNameSpecified + { + get + { + return this._RoleName != null; + } + set + { + bool flag = value == (this._RoleName == null); + if (flag) + { + this._RoleName = (value ? this.RoleName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "RoleLevel", DataFormat = DataFormat.TwosComplement)] + public uint RoleLevel + { + get + { + return this._RoleLevel ?? 0u; + } + set + { + this._RoleLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RoleLevelSpecified + { + get + { + return this._RoleLevel != null; + } + set + { + bool flag = value == (this._RoleLevel == null); + if (flag) + { + this._RoleLevel = (value ? new uint?(this.RoleLevel) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "damage", DataFormat = DataFormat.FixedSize)] + public float damage + { + get + { + return this._damage ?? 0f; + } + set + { + this._damage = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool damageSpecified + { + get + { + return this._damage != null; + } + set + { + bool flag = value == (this._damage == null); + if (flag) + { + this._damage = (value ? new float?(this.damage) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "powerpoint", DataFormat = DataFormat.TwosComplement)] + public uint powerpoint + { + get + { + return this._powerpoint ?? 0u; + } + set + { + this._powerpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerpointSpecified + { + get + { + return this._powerpoint != null; + } + set + { + bool flag = value == (this._powerpoint == null); + if (flag) + { + this._powerpoint = (value ? new uint?(this.powerpoint) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "flowercount", DataFormat = DataFormat.TwosComplement)] + public uint flowercount + { + get + { + return this._flowercount ?? 0u; + } + set + { + this._flowercount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool flowercountSpecified + { + get + { + return this._flowercount != null; + } + set + { + bool flag = value == (this._flowercount == null); + if (flag) + { + this._flowercount = (value ? new uint?(this.flowercount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "Rank", DataFormat = DataFormat.TwosComplement)] + public uint Rank + { + get + { + return this._Rank ?? 0u; + } + set + { + this._Rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RankSpecified + { + get + { + return this._Rank != null; + } + set + { + bool flag = value == (this._Rank == null); + if (flag) + { + this._Rank = (value ? new uint?(this.Rank) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "guildicon", DataFormat = DataFormat.TwosComplement)] + public uint guildicon + { + get + { + return this._guildicon ?? 0u; + } + set + { + this._guildicon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildiconSpecified + { + get + { + return this._guildicon != null; + } + set + { + bool flag = value == (this._guildicon == null); + if (flag) + { + this._guildicon = (value ? new uint?(this.guildicon) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "pkpoint", DataFormat = DataFormat.TwosComplement)] + public uint pkpoint + { + get + { + return this._pkpoint ?? 0u; + } + set + { + this._pkpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pkpointSpecified + { + get + { + return this._pkpoint != null; + } + set + { + bool flag = value == (this._pkpoint == null); + if (flag) + { + this._pkpoint = (value ? new uint?(this.pkpoint) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "tshowvotecount", DataFormat = DataFormat.TwosComplement)] + public uint tshowvotecount + { + get + { + return this._tshowvotecount ?? 0u; + } + set + { + this._tshowvotecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tshowvotecountSpecified + { + get + { + return this._tshowvotecount != null; + } + set + { + bool flag = value == (this._tshowvotecount == null); + if (flag) + { + this._tshowvotecount = (value ? new uint?(this.tshowvotecount) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "intervaltimestamp", DataFormat = DataFormat.TwosComplement)] + public uint intervaltimestamp + { + get + { + return this._intervaltimestamp ?? 0u; + } + set + { + this._intervaltimestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool intervaltimestampSpecified + { + get + { + return this._intervaltimestamp != null; + } + set + { + bool flag = value == (this._intervaltimestamp == null); + if (flag) + { + this._intervaltimestamp = (value ? new uint?(this.intervaltimestamp) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(15, Name = "RoleIds", DataFormat = DataFormat.TwosComplement)] + public List RoleIds + { + get + { + return this._RoleIds; + } + } + + [ProtoMember(16, Name = "RoleNames", DataFormat = DataFormat.Default)] + public List RoleNames + { + get + { + return this._RoleNames; + } + } + + [ProtoMember(17, IsRequired = false, Name = "towerHardLevel", DataFormat = DataFormat.TwosComplement)] + public uint towerHardLevel + { + get + { + return this._towerHardLevel ?? 0u; + } + set + { + this._towerHardLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool towerHardLevelSpecified + { + get + { + return this._towerHardLevel != null; + } + set + { + bool flag = value == (this._towerHardLevel == null); + if (flag) + { + this._towerHardLevel = (value ? new uint?(this.towerHardLevel) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "towerFloor", DataFormat = DataFormat.TwosComplement)] + public uint towerFloor + { + get + { + return this._towerFloor ?? 0u; + } + set + { + this._towerFloor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool towerFloorSpecified + { + get + { + return this._towerFloor != null; + } + set + { + bool flag = value == (this._towerFloor == null); + if (flag) + { + this._towerFloor = (value ? new uint?(this.towerFloor) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "towerThroughTime", DataFormat = DataFormat.TwosComplement)] + public uint towerThroughTime + { + get + { + return this._towerThroughTime ?? 0u; + } + set + { + this._towerThroughTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool towerThroughTimeSpecified + { + get + { + return this._towerThroughTime != null; + } + set + { + bool flag = value == (this._towerThroughTime == null); + if (flag) + { + this._towerThroughTime = (value ? new uint?(this.towerThroughTime) : null); + } + } + } + + [ProtoMember(20, Name = "receiveFlowers", DataFormat = DataFormat.Default)] + public List receiveFlowers + { + get + { + return this._receiveFlowers; + } + } + + [ProtoMember(21, IsRequired = false, Name = "guildBossIndex", DataFormat = DataFormat.TwosComplement)] + public uint guildBossIndex + { + get + { + return this._guildBossIndex ?? 0u; + } + set + { + this._guildBossIndex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildBossIndexSpecified + { + get + { + return this._guildBossIndex != null; + } + set + { + bool flag = value == (this._guildBossIndex == null); + if (flag) + { + this._guildBossIndex = (value ? new uint?(this.guildBossIndex) : null); + } + } + } + + [ProtoMember(22, IsRequired = false, Name = "guildBossName", DataFormat = DataFormat.Default)] + public string guildBossName + { + get + { + return this._guildBossName ?? ""; + } + set + { + this._guildBossName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildBossNameSpecified + { + get + { + return this._guildBossName != null; + } + set + { + bool flag = value == (this._guildBossName == null); + if (flag) + { + this._guildBossName = (value ? this.guildBossName : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "guildBossDpsMax", DataFormat = DataFormat.Default)] + public string guildBossDpsMax + { + get + { + return this._guildBossDpsMax ?? ""; + } + set + { + this._guildBossDpsMax = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildBossDpsMaxSpecified + { + get + { + return this._guildBossDpsMax != null; + } + set + { + bool flag = value == (this._guildBossDpsMax == null); + if (flag) + { + this._guildBossDpsMax = (value ? this.guildBossDpsMax : null); + } + } + } + + [ProtoMember(24, IsRequired = false, Name = "titleID", DataFormat = DataFormat.TwosComplement)] + public uint titleID + { + get + { + return this._titleID ?? 0u; + } + set + { + this._titleID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleIDSpecified + { + get + { + return this._titleID != null; + } + set + { + bool flag = value == (this._titleID == null); + if (flag) + { + this._titleID = (value ? new uint?(this.titleID) : null); + } + } + } + + [ProtoMember(25, Name = "titleIDs", DataFormat = DataFormat.TwosComplement)] + public List titleIDs + { + get + { + return this._titleIDs; + } + } + + [ProtoMember(26, IsRequired = false, Name = "commendNum", DataFormat = DataFormat.TwosComplement)] + public int commendNum + { + get + { + return this._commendNum ?? 0; + } + set + { + this._commendNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool commendNumSpecified + { + get + { + return this._commendNum != null; + } + set + { + bool flag = value == (this._commendNum == null); + if (flag) + { + this._commendNum = (value ? new int?(this.commendNum) : null); + } + } + } + + [ProtoMember(27, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + [ProtoMember(28, IsRequired = false, Name = "bossavghppercent", DataFormat = DataFormat.TwosComplement)] + public uint bossavghppercent + { + get + { + return this._bossavghppercent ?? 0u; + } + set + { + this._bossavghppercent = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bossavghppercentSpecified + { + get + { + return this._bossavghppercent != null; + } + set + { + bool flag = value == (this._bossavghppercent == null); + if (flag) + { + this._bossavghppercent = (value ? new uint?(this.bossavghppercent) : null); + } + } + } + + [ProtoMember(29, IsRequired = false, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public int groupid + { + get + { + return this._groupid ?? 0; + } + set + { + this._groupid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupidSpecified + { + get + { + return this._groupid != null; + } + set + { + bool flag = value == (this._groupid == null); + if (flag) + { + this._groupid = (value ? new int?(this.groupid) : null); + } + } + } + + [ProtoMember(30, IsRequired = false, Name = "petuid", DataFormat = DataFormat.TwosComplement)] + public ulong petuid + { + get + { + return this._petuid ?? 0UL; + } + set + { + this._petuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petuidSpecified + { + get + { + return this._petuid != null; + } + set + { + bool flag = value == (this._petuid == null); + if (flag) + { + this._petuid = (value ? new ulong?(this.petuid) : null); + } + } + } + + [ProtoMember(31, IsRequired = false, Name = "petid", DataFormat = DataFormat.TwosComplement)] + public uint petid + { + get + { + return this._petid ?? 0u; + } + set + { + this._petid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petidSpecified + { + get + { + return this._petid != null; + } + set + { + bool flag = value == (this._petid == null); + if (flag) + { + this._petid = (value ? new uint?(this.petid) : null); + } + } + } + + [ProtoMember(32, IsRequired = false, Name = "headpic", DataFormat = DataFormat.Default)] + public string headpic + { + get + { + return this._headpic ?? ""; + } + set + { + this._headpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool headpicSpecified + { + get + { + return this._headpic != null; + } + set + { + bool flag = value == (this._headpic == null); + if (flag) + { + this._headpic = (value ? this.headpic : null); + } + } + } + + [ProtoMember(33, IsRequired = false, Name = "starttype", DataFormat = DataFormat.TwosComplement)] + public StartUpType starttype + { + get + { + return this._starttype ?? StartUpType.StartUp_Normal; + } + set + { + this._starttype = new StartUpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool starttypeSpecified + { + get + { + return this._starttype != null; + } + set + { + bool flag = value == (this._starttype == null); + if (flag) + { + this._starttype = (value ? new StartUpType?(this.starttype) : null); + } + } + } + + [ProtoMember(34, IsRequired = false, Name = "is_vip", DataFormat = DataFormat.Default)] + public bool is_vip + { + get + { + return this._is_vip ?? false; + } + set + { + this._is_vip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_vipSpecified + { + get + { + return this._is_vip != null; + } + set + { + bool flag = value == (this._is_vip == null); + if (flag) + { + this._is_vip = (value ? new bool?(this.is_vip) : null); + } + } + } + + [ProtoMember(35, IsRequired = false, Name = "is_svip", DataFormat = DataFormat.Default)] + public bool is_svip + { + get + { + return this._is_svip ?? false; + } + set + { + this._is_svip = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_svipSpecified + { + get + { + return this._is_svip != null; + } + set + { + bool flag = value == (this._is_svip == null); + if (flag) + { + this._is_svip = (value ? new bool?(this.is_svip) : null); + } + } + } + + [ProtoMember(36, IsRequired = false, Name = "usetime", DataFormat = DataFormat.TwosComplement)] + public uint usetime + { + get + { + return this._usetime ?? 0u; + } + set + { + this._usetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usetimeSpecified + { + get + { + return this._usetime != null; + } + set + { + bool flag = value == (this._usetime == null); + if (flag) + { + this._usetime = (value ? new uint?(this.usetime) : null); + } + } + } + + [ProtoMember(37, IsRequired = false, Name = "leagueinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LeagueRankData leagueinfo + { + get + { + return this._leagueinfo; + } + set + { + this._leagueinfo = value; + } + } + + [ProtoMember(38, IsRequired = false, Name = "heroinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HeroRankData heroinfo + { + get + { + return this._heroinfo; + } + set + { + this._heroinfo = value; + } + } + + [ProtoMember(39, IsRequired = false, Name = "strRoleid", DataFormat = DataFormat.Default)] + public string strRoleid + { + get + { + return this._strRoleid ?? ""; + } + set + { + this._strRoleid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool strRoleidSpecified + { + get + { + return this._strRoleid != null; + } + set + { + bool flag = value == (this._strRoleid == null); + if (flag) + { + this._strRoleid = (value ? this.strRoleid : null); + } + } + } + + [ProtoMember(40, IsRequired = false, Name = "starlevel", DataFormat = DataFormat.TwosComplement)] + public uint starlevel + { + get + { + return this._starlevel ?? 0u; + } + set + { + this._starlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool starlevelSpecified + { + get + { + return this._starlevel != null; + } + set + { + bool flag = value == (this._starlevel == null); + if (flag) + { + this._starlevel = (value ? new uint?(this.starlevel) : null); + } + } + } + + [ProtoMember(41, IsRequired = false, Name = "usectime", DataFormat = DataFormat.TwosComplement)] + public uint usectime + { + get + { + return this._usectime ?? 0u; + } + set + { + this._usectime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool usectimeSpecified + { + get + { + return this._usectime != null; + } + set + { + bool flag = value == (this._usectime == null); + if (flag) + { + this._usectime = (value ? new uint?(this.usectime) : null); + } + } + } + + [ProtoMember(42, IsRequired = false, Name = "military_info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MilitaryRankData military_info + { + get + { + return this._military_info; + } + set + { + this._military_info = value; + } + } + + [ProtoMember(43, IsRequired = false, Name = "pkextradata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkRankExtraData pkextradata + { + get + { + return this._pkextradata; + } + set + { + this._pkextradata = value; + } + } + + [ProtoMember(44, IsRequired = false, Name = "scdata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkyCraftRankData scdata + { + get + { + return this._scdata; + } + set + { + this._scdata = value; + } + } + + [ProtoMember(45, IsRequired = false, Name = "survive", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SurviveRankData survive + { + get + { + return this._survive; + } + set + { + this._survive = value; + } + } + + [ProtoMember(46, IsRequired = false, Name = "skycity", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkyCityRankData skycity + { + get + { + return this._skycity; + } + set + { + this._skycity = value; + } + } + + [ProtoMember(47, IsRequired = false, Name = "riftRankData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RiftRankData riftRankData + { + get + { + return this._riftRankData; + } + set + { + this._riftRankData = value; + } + } + + [ProtoMember(48, IsRequired = false, Name = "pre", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayConsume pre + { + get + { + return this._pre; + } + set + { + this._pre = value; + } + } + + private ulong? _RoleId; + + private string _RoleName; + + private uint? _RoleLevel; + + private uint? _time; + + private float? _damage; + + private uint? _powerpoint; + + private uint? _flowercount; + + private uint? _Rank; + + private uint? _guildicon; + + private string _guildname; + + private uint? _pkpoint; + + private uint? _tshowvotecount; + + private uint? _intervaltimestamp; + + private uint? _profession; + + private readonly List _RoleIds = new List(); + + private readonly List _RoleNames = new List(); + + private uint? _towerHardLevel; + + private uint? _towerFloor; + + private uint? _towerThroughTime; + + private readonly List _receiveFlowers = new List(); + + private uint? _guildBossIndex; + + private string _guildBossName; + + private string _guildBossDpsMax; + + private uint? _titleID; + + private readonly List _titleIDs = new List(); + + private int? _commendNum; + + private uint? _sceneid; + + private uint? _bossavghppercent; + + private int? _groupid; + + private ulong? _petuid; + + private uint? _petid; + + private string _headpic; + + private StartUpType? _starttype; + + private bool? _is_vip; + + private bool? _is_svip; + + private uint? _usetime; + + private LeagueRankData _leagueinfo = null; + + private HeroRankData _heroinfo = null; + + private string _strRoleid; + + private uint? _starlevel; + + private uint? _usectime; + + private MilitaryRankData _military_info = null; + + private PkRankExtraData _pkextradata = null; + + private SkyCraftRankData _scdata = null; + + private SurviveRankData _survive = null; + + private SkyCityRankData _skycity = null; + + private RiftRankData _riftRankData = null; + + private PayConsume _pre = null; + + private IExtension extensionObject; + + private bool ShouldSerializeRoleId() + { + return this.RoleIdSpecified; + } + + private void ResetRoleId() + { + this.RoleIdSpecified = false; + } + + private bool ShouldSerializeRoleName() + { + return this.RoleNameSpecified; + } + + private void ResetRoleName() + { + this.RoleNameSpecified = false; + } + + private bool ShouldSerializeRoleLevel() + { + return this.RoleLevelSpecified; + } + + private void ResetRoleLevel() + { + this.RoleLevelSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializedamage() + { + return this.damageSpecified; + } + + private void Resetdamage() + { + this.damageSpecified = false; + } + + private bool ShouldSerializepowerpoint() + { + return this.powerpointSpecified; + } + + private void Resetpowerpoint() + { + this.powerpointSpecified = false; + } + + private bool ShouldSerializeflowercount() + { + return this.flowercountSpecified; + } + + private void Resetflowercount() + { + this.flowercountSpecified = false; + } + + private bool ShouldSerializeRank() + { + return this.RankSpecified; + } + + private void ResetRank() + { + this.RankSpecified = false; + } + + private bool ShouldSerializeguildicon() + { + return this.guildiconSpecified; + } + + private void Resetguildicon() + { + this.guildiconSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializepkpoint() + { + return this.pkpointSpecified; + } + + private void Resetpkpoint() + { + this.pkpointSpecified = false; + } + + private bool ShouldSerializetshowvotecount() + { + return this.tshowvotecountSpecified; + } + + private void Resettshowvotecount() + { + this.tshowvotecountSpecified = false; + } + + private bool ShouldSerializeintervaltimestamp() + { + return this.intervaltimestampSpecified; + } + + private void Resetintervaltimestamp() + { + this.intervaltimestampSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializetowerHardLevel() + { + return this.towerHardLevelSpecified; + } + + private void ResettowerHardLevel() + { + this.towerHardLevelSpecified = false; + } + + private bool ShouldSerializetowerFloor() + { + return this.towerFloorSpecified; + } + + private void ResettowerFloor() + { + this.towerFloorSpecified = false; + } + + private bool ShouldSerializetowerThroughTime() + { + return this.towerThroughTimeSpecified; + } + + private void ResettowerThroughTime() + { + this.towerThroughTimeSpecified = false; + } + + private bool ShouldSerializeguildBossIndex() + { + return this.guildBossIndexSpecified; + } + + private void ResetguildBossIndex() + { + this.guildBossIndexSpecified = false; + } + + private bool ShouldSerializeguildBossName() + { + return this.guildBossNameSpecified; + } + + private void ResetguildBossName() + { + this.guildBossNameSpecified = false; + } + + private bool ShouldSerializeguildBossDpsMax() + { + return this.guildBossDpsMaxSpecified; + } + + private void ResetguildBossDpsMax() + { + this.guildBossDpsMaxSpecified = false; + } + + private bool ShouldSerializetitleID() + { + return this.titleIDSpecified; + } + + private void ResettitleID() + { + this.titleIDSpecified = false; + } + + private bool ShouldSerializecommendNum() + { + return this.commendNumSpecified; + } + + private void ResetcommendNum() + { + this.commendNumSpecified = false; + } + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + private bool ShouldSerializebossavghppercent() + { + return this.bossavghppercentSpecified; + } + + private void Resetbossavghppercent() + { + this.bossavghppercentSpecified = false; + } + + private bool ShouldSerializegroupid() + { + return this.groupidSpecified; + } + + private void Resetgroupid() + { + this.groupidSpecified = false; + } + + private bool ShouldSerializepetuid() + { + return this.petuidSpecified; + } + + private void Resetpetuid() + { + this.petuidSpecified = false; + } + + private bool ShouldSerializepetid() + { + return this.petidSpecified; + } + + private void Resetpetid() + { + this.petidSpecified = false; + } + + private bool ShouldSerializeheadpic() + { + return this.headpicSpecified; + } + + private void Resetheadpic() + { + this.headpicSpecified = false; + } + + private bool ShouldSerializestarttype() + { + return this.starttypeSpecified; + } + + private void Resetstarttype() + { + this.starttypeSpecified = false; + } + + private bool ShouldSerializeis_vip() + { + return this.is_vipSpecified; + } + + private void Resetis_vip() + { + this.is_vipSpecified = false; + } + + private bool ShouldSerializeis_svip() + { + return this.is_svipSpecified; + } + + private void Resetis_svip() + { + this.is_svipSpecified = false; + } + + private bool ShouldSerializeusetime() + { + return this.usetimeSpecified; + } + + private void Resetusetime() + { + this.usetimeSpecified = false; + } + + private bool ShouldSerializestrRoleid() + { + return this.strRoleidSpecified; + } + + private void ResetstrRoleid() + { + this.strRoleidSpecified = false; + } + + private bool ShouldSerializestarlevel() + { + return this.starlevelSpecified; + } + + private void Resetstarlevel() + { + this.starlevelSpecified = false; + } + + private bool ShouldSerializeusectime() + { + return this.usectimeSpecified; + } + + private void Resetusectime() + { + this.usectimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RankData.cs.meta new file mode 100644 index 00000000..6e264bd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63f053ffd1997c643b6078b3c08f315e +timeCreated: 1611403846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RankList.cs b/Client/Assets/Scripts/XMainClient/KKSG/RankList.cs new file mode 100644 index 00000000..cb5029c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RankList.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RankList")] + [Serializable] + public class RankList : IExtensible + { + [ProtoMember(1, Name = "RankData", DataFormat = DataFormat.Default)] + public List RankData + { + get + { + return this._RankData; + } + } + + private readonly List _RankData = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RankList.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RankList.cs.meta new file mode 100644 index 00000000..1fa84ca3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a50d9cd824ab1641a8dd2c79c0fbf85 +timeCreated: 1611403163 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs b/Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs new file mode 100644 index 00000000..f237901b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RankOnce")] + [Serializable] + public class RankOnce : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "season", DataFormat = DataFormat.TwosComplement)] + public uint season + { + get + { + return this._season ?? 0u; + } + set + { + this._season = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool seasonSpecified + { + get + { + return this._season != null; + } + set + { + bool flag = value == (this._season == null); + if (flag) + { + this._season = (value ? new uint?(this.season) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + private uint? _season; + + private uint? _rank; + + private IExtension extensionObject; + + private bool ShouldSerializeseason() + { + return this.seasonSpecified; + } + + private void Resetseason() + { + this.seasonSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs.meta new file mode 100644 index 00000000..dec22c25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RankOnce.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1411560235d5ea94ba4c24787a268e1f +timeCreated: 1611403252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RankeType.cs b/Client/Assets/Scripts/XMainClient/KKSG/RankeType.cs new file mode 100644 index 00000000..c8fa52ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RankeType.cs @@ -0,0 +1,96 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RankeType")] + public enum RankeType + { + [ProtoEnum(Name = "RealTimeArenaRank", Value = 0)] + RealTimeArenaRank, + [ProtoEnum(Name = "ArenaRank", Value = 1)] + ArenaRank, + [ProtoEnum(Name = "WorldBossGuildRank", Value = 2)] + WorldBossGuildRank, + [ProtoEnum(Name = "WorldBossDamageRank", Value = 3)] + WorldBossDamageRank, + [ProtoEnum(Name = "PowerPointRank", Value = 4)] + PowerPointRank, + [ProtoEnum(Name = "LevelRank", Value = 5)] + LevelRank, + [ProtoEnum(Name = "FlowerRank", Value = 6)] + FlowerRank, + [ProtoEnum(Name = "GuildBossRank", Value = 7)] + GuildBossRank, + [ProtoEnum(Name = "GuildBossRoleRank", Value = 8)] + GuildBossRoleRank, + [ProtoEnum(Name = "PkRealTimeRank", Value = 9)] + PkRealTimeRank, + [ProtoEnum(Name = "PkRank", Value = 10)] + PkRank, + [ProtoEnum(Name = "FashionPowerPointRank", Value = 11)] + FashionPowerPointRank, + [ProtoEnum(Name = "TShowVoteCountRank", Value = 12)] + TShowVoteCountRank, + [ProtoEnum(Name = "TowerRank", Value = 13)] + TowerRank, + [ProtoEnum(Name = "FlowerYesterdayRank", Value = 14)] + FlowerYesterdayRank, + [ProtoEnum(Name = "FlowerTotalRank", Value = 15)] + FlowerTotalRank, + [ProtoEnum(Name = "FirstPassRank", Value = 16)] + FirstPassRank, + [ProtoEnum(Name = "DEProgressRank", Value = 17)] + DEProgressRank, + [ProtoEnum(Name = "SpritePowerPointRank", Value = 18)] + SpritePowerPointRank, + [ProtoEnum(Name = "PetPowerPointRank", Value = 19)] + PetPowerPointRank, + [ProtoEnum(Name = "FlowerThisWeekRank", Value = 20)] + FlowerThisWeekRank, + [ProtoEnum(Name = "NestWeekRank", Value = 21)] + NestWeekRank, + [ProtoEnum(Name = "LeagueTeamRank", Value = 22)] + LeagueTeamRank, + [ProtoEnum(Name = "CrossLeagueRank", Value = 23)] + CrossLeagueRank, + [ProtoEnum(Name = "HeroBattleRank", Value = 24)] + HeroBattleRank, + [ProtoEnum(Name = "MilitaryRank", Value = 25)] + MilitaryRank, + [ProtoEnum(Name = "LastWeek_PkRank", Value = 26)] + LastWeek_PkRank, + [ProtoEnum(Name = "LastWeek_NestWeekRank", Value = 27)] + LastWeek_NestWeekRank, + [ProtoEnum(Name = "LastWeek_HeroBattleRank", Value = 28)] + LastWeek_HeroBattleRank, + [ProtoEnum(Name = "LastWeek_LeagueTeamRank", Value = 29)] + LastWeek_LeagueTeamRank, + [ProtoEnum(Name = "SkyCraftRank", Value = 30)] + SkyCraftRank, + [ProtoEnum(Name = "PkRank2v2", Value = 31)] + PkRank2v2, + [ProtoEnum(Name = "FlowerActivityRank", Value = 32)] + FlowerActivityRank, + [ProtoEnum(Name = "BigMeleeRank", Value = 33)] + BigMeleeRank, + [ProtoEnum(Name = "BioHelllRank", Value = 34)] + BioHelllRank, + [ProtoEnum(Name = "CompeteDragonRank", Value = 35)] + CompeteDragonRank, + [ProtoEnum(Name = "SurviveRank", Value = 36)] + SurviveRank, + [ProtoEnum(Name = "SkyCityRank", Value = 37)] + SkyCityRank, + [ProtoEnum(Name = "WorldBossGuildRoleRank", Value = 38)] + WorldBossGuildRoleRank, + [ProtoEnum(Name = "RiftRank", Value = 39)] + RiftRank, + [ProtoEnum(Name = "CampDuelRank1", Value = 40)] + CampDuelRank1, + [ProtoEnum(Name = "CampDuelRank2", Value = 41)] + CampDuelRank2, + [ProtoEnum(Name = "Festival520Rank", Value = 42)] + Festival520Rank + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RankeType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RankeType.cs.meta new file mode 100644 index 00000000..d2c9474a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RankeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e23705363ba5704439a5ebc78eea1bcd +timeCreated: 1611404705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleArg.cs new file mode 100644 index 00000000..6bb86c3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReEnterRiskBattleArg")] + [Serializable] + public class ReEnterRiskBattleArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleArg.cs.meta new file mode 100644 index 00000000..1c9d04c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fc0192bc5608a843a4d248815acbbde +timeCreated: 1611403213 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleRes.cs new file mode 100644 index 00000000..6ca11109 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReEnterRiskBattleRes")] + [Serializable] + public class ReEnterRiskBattleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleRes.cs.meta new file mode 100644 index 00000000..654b34a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReEnterRiskBattleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4e9712ad1d701a41a275d1d04f8efd4 +timeCreated: 1611404874 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReachAchieveNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReachAchieveNtf.cs new file mode 100644 index 00000000..35c131ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReachAchieveNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReachAchieveNtf")] + [Serializable] + public class ReachAchieveNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "achieveID", DataFormat = DataFormat.TwosComplement)] + public uint achieveID + { + get + { + return this._achieveID ?? 0u; + } + set + { + this._achieveID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool achieveIDSpecified + { + get + { + return this._achieveID != null; + } + set + { + bool flag = value == (this._achieveID == null); + if (flag) + { + this._achieveID = (value ? new uint?(this.achieveID) : null); + } + } + } + + private uint? _achieveID; + + private IExtension extensionObject; + + private bool ShouldSerializeachieveID() + { + return this.achieveIDSpecified; + } + + private void ResetachieveID() + { + this.achieveIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReachAchieveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReachAchieveNtf.cs.meta new file mode 100644 index 00000000..16e48e62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReachAchieveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e734b6a54538c94cb3a741494b456e5 +timeCreated: 1611403203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReachDesignationNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReachDesignationNtf.cs new file mode 100644 index 00000000..6ca7d269 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReachDesignationNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReachDesignationNtf")] + [Serializable] + public class ReachDesignationNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "designationID", DataFormat = DataFormat.TwosComplement)] + public uint designationID + { + get + { + return this._designationID ?? 0u; + } + set + { + this._designationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool designationIDSpecified + { + get + { + return this._designationID != null; + } + set + { + bool flag = value == (this._designationID == null); + if (flag) + { + this._designationID = (value ? new uint?(this.designationID) : null); + } + } + } + + private uint? _designationID; + + private IExtension extensionObject; + + private bool ShouldSerializedesignationID() + { + return this.designationIDSpecified; + } + + private void ResetdesignationID() + { + this.designationIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReachDesignationNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReachDesignationNtf.cs.meta new file mode 100644 index 00000000..08b8c5ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReachDesignationNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df7f83b1598818e42be0c811f177f07d +timeCreated: 1611404693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReadAccountDataType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReadAccountDataType.cs new file mode 100644 index 00000000..634b5379 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReadAccountDataType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReadAccountDataType")] + public enum ReadAccountDataType + { + [ProtoEnum(Name = "READ_ACCOUNT_DATA_LOGIN", Value = 1)] + READ_ACCOUNT_DATA_LOGIN = 1, + [ProtoEnum(Name = "READ_ACCOUNT_DATA_RETURN_SELECT_ROLE", Value = 2)] + READ_ACCOUNT_DATA_RETURN_SELECT_ROLE, + [ProtoEnum(Name = "READ_ACCOUNT_DATA_IDIP", Value = 3)] + READ_ACCOUNT_DATA_IDIP + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReadAccountDataType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReadAccountDataType.cs.meta new file mode 100644 index 00000000..8aaa1159 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReadAccountDataType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8067217680873743b4af267c28a3921 +timeCreated: 1611404533 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceArg.cs new file mode 100644 index 00000000..cd14ac11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RecAllianceArg")] + [Serializable] + public class RecAllianceArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + private ulong? _guildid; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceArg.cs.meta new file mode 100644 index 00000000..d5e54900 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8bc696eaf0cc9a343932f48dbe3fdd5e +timeCreated: 1611404097 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceRes.cs new file mode 100644 index 00000000..fad6c16b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RecAllianceRes")] + [Serializable] + public class RecAllianceRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "allianceId", DataFormat = DataFormat.TwosComplement)] + public ulong allianceId + { + get + { + return this._allianceId ?? 0UL; + } + set + { + this._allianceId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allianceIdSpecified + { + get + { + return this._allianceId != null; + } + set + { + bool flag = value == (this._allianceId == null); + if (flag) + { + this._allianceId = (value ? new ulong?(this.allianceId) : null); + } + } + } + + private ErrorCode? _errorcode; + + private ulong? _allianceId; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeallianceId() + { + return this.allianceIdSpecified; + } + + private void ResetallianceId() + { + this.allianceIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceRes.cs.meta new file mode 100644 index 00000000..cfe43cd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RecAllianceRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f862845089a88064585565aa07e9ed78 +timeCreated: 1611404892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReceiveFlowerData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReceiveFlowerData.cs new file mode 100644 index 00000000..27c728ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReceiveFlowerData.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReceiveFlowerData")] + [Serializable] + public class ReceiveFlowerData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public int itemID + { + get + { + return this._itemID ?? 0; + } + set + { + this._itemID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new int?(this.itemID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemCount", DataFormat = DataFormat.TwosComplement)] + public int itemCount + { + get + { + return this._itemCount ?? 0; + } + set + { + this._itemCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemCountSpecified + { + get + { + return this._itemCount != null; + } + set + { + bool flag = value == (this._itemCount == null); + if (flag) + { + this._itemCount = (value ? new int?(this.itemCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "sendRoleID", DataFormat = DataFormat.TwosComplement)] + public ulong sendRoleID + { + get + { + return this._sendRoleID ?? 0UL; + } + set + { + this._sendRoleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sendRoleIDSpecified + { + get + { + return this._sendRoleID != null; + } + set + { + bool flag = value == (this._sendRoleID == null); + if (flag) + { + this._sendRoleID = (value ? new ulong?(this.sendRoleID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "sendName", DataFormat = DataFormat.Default)] + public string sendName + { + get + { + return this._sendName ?? ""; + } + set + { + this._sendName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sendNameSpecified + { + get + { + return this._sendName != null; + } + set + { + bool flag = value == (this._sendName == null); + if (flag) + { + this._sendName = (value ? this.sendName : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "power", DataFormat = DataFormat.TwosComplement)] + public int power + { + get + { + return this._power ?? 0; + } + set + { + this._power = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerSpecified + { + get + { + return this._power != null; + } + set + { + bool flag = value == (this._power == null); + if (flag) + { + this._power = (value ? new int?(this.power) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public int profession + { + get + { + return this._profession ?? 0; + } + set + { + this._profession = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new int?(this.profession) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "vip", DataFormat = DataFormat.TwosComplement)] + public int vip + { + get + { + return this._vip ?? 0; + } + set + { + this._vip = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipSpecified + { + get + { + return this._vip != null; + } + set + { + bool flag = value == (this._vip == null); + if (flag) + { + this._vip = (value ? new int?(this.vip) : null); + } + } + } + + private int? _itemID; + + private int? _itemCount; + + private ulong? _sendRoleID; + + private string _sendName; + + private int? _power; + + private int? _profession; + + private int? _vip; + + private IExtension extensionObject; + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializeitemCount() + { + return this.itemCountSpecified; + } + + private void ResetitemCount() + { + this.itemCountSpecified = false; + } + + private bool ShouldSerializesendRoleID() + { + return this.sendRoleIDSpecified; + } + + private void ResetsendRoleID() + { + this.sendRoleIDSpecified = false; + } + + private bool ShouldSerializesendName() + { + return this.sendNameSpecified; + } + + private void ResetsendName() + { + this.sendNameSpecified = false; + } + + private bool ShouldSerializepower() + { + return this.powerSpecified; + } + + private void Resetpower() + { + this.powerSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializevip() + { + return this.vipSpecified; + } + + private void Resetvip() + { + this.vipSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReceiveFlowerData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReceiveFlowerData.cs.meta new file mode 100644 index 00000000..df071641 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReceiveFlowerData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 477a92c92d53c744e81124f74cbf7128 +timeCreated: 1611403654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReceiveRoleFlowerInfo2Client.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReceiveRoleFlowerInfo2Client.cs new file mode 100644 index 00000000..9bd7d7e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReceiveRoleFlowerInfo2Client.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReceiveRoleFlowerInfo2Client")] + [Serializable] + public class ReceiveRoleFlowerInfo2Client : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + [ProtoMember(3, Name = "flowers", DataFormat = DataFormat.Default)] + public List flowers + { + get + { + return this._flowers; + } + } + + private ulong? _roleID; + + private string _roleName; + + private readonly List _flowers = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReceiveRoleFlowerInfo2Client.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReceiveRoleFlowerInfo2Client.cs.meta new file mode 100644 index 00000000..500f4c3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReceiveRoleFlowerInfo2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfa8398c7561e33449e87f6d28f3e07a +timeCreated: 1611404694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs new file mode 100644 index 00000000..01e06a83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReconectSync")] + [Serializable] + public class ReconectSync : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "self", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleAllInfo self + { + get + { + return this._self; + } + set + { + this._self = value; + } + } + + [ProtoMember(2, Name = "units", DataFormat = DataFormat.Default)] + public List units + { + get + { + return this._units; + } + } + + [ProtoMember(3, IsRequired = false, Name = "selfAppearance", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearance selfAppearance + { + get + { + return this._selfAppearance; + } + set + { + this._selfAppearance = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "deathinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DeathInfo deathinfo + { + get + { + return this._deathinfo; + } + set + { + this._deathinfo = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "isautofight", DataFormat = DataFormat.Default)] + public bool isautofight + { + get + { + return this._isautofight ?? false; + } + set + { + this._isautofight = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isautofightSpecified + { + get + { + return this._isautofight != null; + } + set + { + bool flag = value == (this._isautofight == null); + if (flag) + { + this._isautofight = (value ? new bool?(this.isautofight) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "scene", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ReconnectScene scene + { + get + { + return this._scene; + } + set + { + this._scene = value; + } + } + + private RoleAllInfo _self = null; + + private readonly List _units = new List(); + + private UnitAppearance _selfAppearance = null; + + private DeathInfo _deathinfo = null; + + private bool? _isautofight; + + private ReconnectScene _scene = null; + + private IExtension extensionObject; + + private bool ShouldSerializeisautofight() + { + return this.isautofightSpecified; + } + + private void Resetisautofight() + { + this.isautofightSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs.meta new file mode 100644 index 00000000..c08e58c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconectSync.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ad2f5ed6f79b1445a38eadc5186d88c +timeCreated: 1611403597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconnArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReconnArg.cs new file mode 100644 index 00000000..02a4747e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconnArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReconnArg")] + [Serializable] + public class ReconnArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "session", DataFormat = DataFormat.TwosComplement)] + public ulong session + { + get + { + return this._session ?? 0UL; + } + set + { + this._session = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sessionSpecified + { + get + { + return this._session != null; + } + set + { + bool flag = value == (this._session == null); + if (flag) + { + this._session = (value ? new ulong?(this.session) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _session; + + private uint? _sceneid; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializesession() + { + return this.sessionSpecified; + } + + private void Resetsession() + { + this.sessionSpecified = false; + } + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconnArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReconnArg.cs.meta new file mode 100644 index 00000000..2bcb81e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconnArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe7b25357f2bee84ea37e5762135c267 +timeCreated: 1611404941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconnRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReconnRes.cs new file mode 100644 index 00000000..e796b962 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconnRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReconnRes")] + [Serializable] + public class ReconnRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconnRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReconnRes.cs.meta new file mode 100644 index 00000000..6fa3921f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconnRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac39df54bfdc508469da38bc43951c63 +timeCreated: 1611404329 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconnectScene.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReconnectScene.cs new file mode 100644 index 00000000..fff666ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconnectScene.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReconnectScene")] + [Serializable] + public class ReconnectScene : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isready", DataFormat = DataFormat.Default)] + public bool isready + { + get + { + return this._isready ?? false; + } + set + { + this._isready = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isreadySpecified + { + get + { + return this._isready != null; + } + set + { + bool flag = value == (this._isready == null); + if (flag) + { + this._isready = (value ? new bool?(this.isready) : null); + } + } + } + + private uint? _sceneid; + + private bool? _isready; + + private IExtension extensionObject; + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + private bool ShouldSerializeisready() + { + return this.isreadySpecified; + } + + private void Resetisready() + { + this.isreadySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReconnectScene.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReconnectScene.cs.meta new file mode 100644 index 00000000..5c0a090d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReconnectScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ff3253ee3f93054abf7e0f98b511515 +timeCreated: 1611404247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardArg.cs new file mode 100644 index 00000000..015da11f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RefreshSweepRewardArg")] + [Serializable] + public class RefreshSweepRewardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardArg.cs.meta new file mode 100644 index 00000000..0b0690e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f136c879a33e36f48b52bd62b4c6506f +timeCreated: 1611404836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardRes.cs new file mode 100644 index 00000000..dc6a9f74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RefreshSweepRewardRes")] + [Serializable] + public class RefreshSweepRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "refreshResult", DataFormat = DataFormat.TwosComplement)] + public int refreshResult + { + get + { + return this._refreshResult ?? 0; + } + set + { + this._refreshResult = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshResultSpecified + { + get + { + return this._refreshResult != null; + } + set + { + bool flag = value == (this._refreshResult == null); + if (flag) + { + this._refreshResult = (value ? new int?(this.refreshResult) : null); + } + } + } + + private ErrorCode? _error; + + private int? _refreshResult; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializerefreshResult() + { + return this.refreshResultSpecified; + } + + private void ResetrefreshResult() + { + this.refreshResultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardRes.cs.meta new file mode 100644 index 00000000..59c4ca99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RefreshSweepRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebc5265f936995447bf1018499b1cd26 +timeCreated: 1611404784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskArg.cs new file mode 100644 index 00000000..13f6aac3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RefreshWeeklyTaskArg")] + [Serializable] + public class RefreshWeeklyTaskArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskArg.cs.meta new file mode 100644 index 00000000..6f4a577c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 890a3ab0f9f7a074aa0fca8040fd39aa +timeCreated: 1611404086 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskRes.cs new file mode 100644 index 00000000..310cab80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskRes.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RefreshWeeklyTaskRes")] + [Serializable] + public class RefreshWeeklyTaskRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "task", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeeklyTaskInfo task + { + get + { + return this._task; + } + set + { + this._task = value; + } + } + + private ErrorCode? _result; + + private WeeklyTaskInfo _task = null; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskRes.cs.meta new file mode 100644 index 00000000..feca4403 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RefreshWeeklyTaskRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17dae84ed2b2fc54dbc0c89911518a63 +timeCreated: 1611403295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListArg.cs new file mode 100644 index 00000000..449a4cb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RemoveBlackListArg")] + [Serializable] + public class RemoveBlackListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "otherroleid", DataFormat = DataFormat.TwosComplement)] + public ulong otherroleid + { + get + { + return this._otherroleid ?? 0UL; + } + set + { + this._otherroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool otherroleidSpecified + { + get + { + return this._otherroleid != null; + } + set + { + bool flag = value == (this._otherroleid == null); + if (flag) + { + this._otherroleid = (value ? new ulong?(this.otherroleid) : null); + } + } + } + + private ulong? _otherroleid; + + private IExtension extensionObject; + + private bool ShouldSerializeotherroleid() + { + return this.otherroleidSpecified; + } + + private void Resetotherroleid() + { + this.otherroleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListArg.cs.meta new file mode 100644 index 00000000..5521318a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c6f18c2fd1bea24b8caaf2c627e691c +timeCreated: 1611403895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListRes.cs new file mode 100644 index 00000000..450f8326 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RemoveBlackListRes")] + [Serializable] + public class RemoveBlackListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListRes.cs.meta new file mode 100644 index 00000000..12b418fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveBlackListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 309156d600816034182177e317266fb8 +timeCreated: 1611403522 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendArg.cs new file mode 100644 index 00000000..d5bf3cd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RemoveFriendArg")] + [Serializable] + public class RemoveFriendArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "friendroleid", DataFormat = DataFormat.TwosComplement)] + public ulong friendroleid + { + get + { + return this._friendroleid ?? 0UL; + } + set + { + this._friendroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool friendroleidSpecified + { + get + { + return this._friendroleid != null; + } + set + { + bool flag = value == (this._friendroleid == null); + if (flag) + { + this._friendroleid = (value ? new ulong?(this.friendroleid) : null); + } + } + } + + private ulong? _friendroleid; + + private IExtension extensionObject; + + private bool ShouldSerializefriendroleid() + { + return this.friendroleidSpecified; + } + + private void Resetfriendroleid() + { + this.friendroleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendArg.cs.meta new file mode 100644 index 00000000..19913b8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b17d52eb7446a9a4a8f9ec887dbaa904 +timeCreated: 1611404356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendRes.cs new file mode 100644 index 00000000..c5e87733 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RemoveFriendRes")] + [Serializable] + public class RemoveFriendRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendRes.cs.meta new file mode 100644 index 00000000..0fd2c550 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveFriendRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0386be585fe67ec48ae74196e23c5214 +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs b/Client/Assets/Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs new file mode 100644 index 00000000..0721a407 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RemoveIBShopIcon")] + [Serializable] + public class RemoveIBShopIcon : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "nData", DataFormat = DataFormat.TwosComplement)] + public uint nData + { + get + { + return this._nData ?? 0u; + } + set + { + this._nData = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nDataSpecified + { + get + { + return this._nData != null; + } + set + { + bool flag = value == (this._nData == null); + if (flag) + { + this._nData = (value ? new uint?(this.nData) : null); + } + } + } + + private uint? _nData; + + private IExtension extensionObject; + + private bool ShouldSerializenData() + { + return this.nDataSpecified; + } + + private void ResetnData() + { + this.nDataSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs.meta new file mode 100644 index 00000000..a937f107 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RemoveIBShopIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6888b6b71ebfa0347888911758d7b409 +timeCreated: 1611403882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptArg.cs new file mode 100644 index 00000000..2829cb05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReplyPartyExchangeItemOptArg")] + [Serializable] + public class ReplyPartyExchangeItemOptArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "operate_type", DataFormat = DataFormat.TwosComplement)] + public uint operate_type + { + get + { + return this._operate_type ?? 0u; + } + set + { + this._operate_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool operate_typeSpecified + { + get + { + return this._operate_type != null; + } + set + { + bool flag = value == (this._operate_type == null); + if (flag) + { + this._operate_type = (value ? new uint?(this.operate_type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lauch_role_id", DataFormat = DataFormat.TwosComplement)] + public ulong lauch_role_id + { + get + { + return this._lauch_role_id ?? 0UL; + } + set + { + this._lauch_role_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_role_idSpecified + { + get + { + return this._lauch_role_id != null; + } + set + { + bool flag = value == (this._lauch_role_id == null); + if (flag) + { + this._lauch_role_id = (value ? new ulong?(this.lauch_role_id) : null); + } + } + } + + private uint? _operate_type; + + private ulong? _lauch_role_id; + + private IExtension extensionObject; + + private bool ShouldSerializeoperate_type() + { + return this.operate_typeSpecified; + } + + private void Resetoperate_type() + { + this.operate_typeSpecified = false; + } + + private bool ShouldSerializelauch_role_id() + { + return this.lauch_role_idSpecified; + } + + private void Resetlauch_role_id() + { + this.lauch_role_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptArg.cs.meta new file mode 100644 index 00000000..09ed7d24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aae3ece16d749ad46a8f7942e6ad5362 +timeCreated: 1611404305 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptRes.cs new file mode 100644 index 00000000..f27bb72e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptRes.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReplyPartyExchangeItemOptRes")] + [Serializable] + public class ReplyPartyExchangeItemOptRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lauch_role_id", DataFormat = DataFormat.TwosComplement)] + public uint lauch_role_id + { + get + { + return this._lauch_role_id ?? 0u; + } + set + { + this._lauch_role_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_role_idSpecified + { + get + { + return this._lauch_role_id != null; + } + set + { + bool flag = value == (this._lauch_role_id == null); + if (flag) + { + this._lauch_role_id = (value ? new uint?(this.lauch_role_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lauch_item_id", DataFormat = DataFormat.TwosComplement)] + public uint lauch_item_id + { + get + { + return this._lauch_item_id ?? 0u; + } + set + { + this._lauch_item_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_item_idSpecified + { + get + { + return this._lauch_item_id != null; + } + set + { + bool flag = value == (this._lauch_item_id == null); + if (flag) + { + this._lauch_item_id = (value ? new uint?(this.lauch_item_id) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lauch_status", DataFormat = DataFormat.Default)] + public bool lauch_status + { + get + { + return this._lauch_status ?? false; + } + set + { + this._lauch_status = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lauch_statusSpecified + { + get + { + return this._lauch_status != null; + } + set + { + bool flag = value == (this._lauch_status == null); + if (flag) + { + this._lauch_status = (value ? new bool?(this.lauch_status) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "target_role_id", DataFormat = DataFormat.TwosComplement)] + public uint target_role_id + { + get + { + return this._target_role_id ?? 0u; + } + set + { + this._target_role_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_role_idSpecified + { + get + { + return this._target_role_id != null; + } + set + { + bool flag = value == (this._target_role_id == null); + if (flag) + { + this._target_role_id = (value ? new uint?(this.target_role_id) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "target_item_id", DataFormat = DataFormat.TwosComplement)] + public uint target_item_id + { + get + { + return this._target_item_id ?? 0u; + } + set + { + this._target_item_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_item_idSpecified + { + get + { + return this._target_item_id != null; + } + set + { + bool flag = value == (this._target_item_id == null); + if (flag) + { + this._target_item_id = (value ? new uint?(this.target_item_id) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "target_status", DataFormat = DataFormat.TwosComplement)] + public uint target_status + { + get + { + return this._target_status ?? 0u; + } + set + { + this._target_status = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool target_statusSpecified + { + get + { + return this._target_status != null; + } + set + { + bool flag = value == (this._target_status == null); + if (flag) + { + this._target_status = (value ? new uint?(this.target_status) : null); + } + } + } + + private ErrorCode? _result; + + private uint? _lauch_role_id; + + private uint? _lauch_item_id; + + private bool? _lauch_status; + + private uint? _target_role_id; + + private uint? _target_item_id; + + private uint? _target_status; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializelauch_role_id() + { + return this.lauch_role_idSpecified; + } + + private void Resetlauch_role_id() + { + this.lauch_role_idSpecified = false; + } + + private bool ShouldSerializelauch_item_id() + { + return this.lauch_item_idSpecified; + } + + private void Resetlauch_item_id() + { + this.lauch_item_idSpecified = false; + } + + private bool ShouldSerializelauch_status() + { + return this.lauch_statusSpecified; + } + + private void Resetlauch_status() + { + this.lauch_statusSpecified = false; + } + + private bool ShouldSerializetarget_role_id() + { + return this.target_role_idSpecified; + } + + private void Resettarget_role_id() + { + this.target_role_idSpecified = false; + } + + private bool ShouldSerializetarget_item_id() + { + return this.target_item_idSpecified; + } + + private void Resettarget_item_id() + { + this.target_item_idSpecified = false; + } + + private bool ShouldSerializetarget_status() + { + return this.target_statusSpecified; + } + + private void Resettarget_status() + { + this.target_statusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptRes.cs.meta new file mode 100644 index 00000000..7cef5756 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReplyPartyExchangeItemOptRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2eee45553ca5f2f429a494946530ec07 +timeCreated: 1611403513 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs new file mode 100644 index 00000000..8a2daf53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReportBadPlayerArg")] + [Serializable] + public class ReportBadPlayerArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "scenetype", DataFormat = DataFormat.TwosComplement)] + public uint scenetype + { + get + { + return this._scenetype ?? 0u; + } + set + { + this._scenetype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scenetypeSpecified + { + get + { + return this._scenetype != null; + } + set + { + bool flag = value == (this._scenetype == null); + if (flag) + { + this._scenetype = (value ? new uint?(this.scenetype) : null); + } + } + } + + [ProtoMember(3, Name = "reason", DataFormat = DataFormat.TwosComplement)] + public List reason + { + get + { + return this._reason; + } + } + + private ulong? _roleid; + + private uint? _scenetype; + + private readonly List _reason = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializescenetype() + { + return this.scenetypeSpecified; + } + + private void Resetscenetype() + { + this.scenetypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs.meta new file mode 100644 index 00000000..2e65ba1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5db30434655a3df4db077966912569cc +timeCreated: 1611403807 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs new file mode 100644 index 00000000..2143b17a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReportBadPlayerRes")] + [Serializable] + public class ReportBadPlayerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs.meta new file mode 100644 index 00000000..9d557813 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportBadPlayerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd291c6cb99291341ba0318cb4abe4f5 +timeCreated: 1611404450 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleArg.cs new file mode 100644 index 00000000..0c97039e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleArg.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReportBattleArg")] + [Serializable] + public class ReportBattleArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "battledata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BattleData battledata + { + get + { + return this._battledata; + } + set + { + this._battledata = value; + } + } + + private BattleData _battledata = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleArg.cs.meta new file mode 100644 index 00000000..11277494 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ee7c68908863144bb87d6fd7d5c6ea8 +timeCreated: 1611403206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleRes.cs new file mode 100644 index 00000000..7a8cf401 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReportBattleRes")] + [Serializable] + public class ReportBattleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleRes.cs.meta new file mode 100644 index 00000000..1854672a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportBattleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94d5a7e9f5afcf94b9db6567884059b1 +timeCreated: 1611404156 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportDataRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReportDataRecord.cs new file mode 100644 index 00000000..6e1dcde4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportDataRecord.cs @@ -0,0 +1,676 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReportDataRecord")] + [Serializable] + public class ReportDataRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "weeklogindays", DataFormat = DataFormat.TwosComplement)] + public uint weeklogindays + { + get + { + return this._weeklogindays ?? 0u; + } + set + { + this._weeklogindays = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeklogindaysSpecified + { + get + { + return this._weeklogindays != null; + } + set + { + bool flag = value == (this._weeklogindays == null); + if (flag) + { + this._weeklogindays = (value ? new uint?(this.weeklogindays) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "within20minsdays", DataFormat = DataFormat.TwosComplement)] + public uint within20minsdays + { + get + { + return this._within20minsdays ?? 0u; + } + set + { + this._within20minsdays = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool within20minsdaysSpecified + { + get + { + return this._within20minsdays != null; + } + set + { + bool flag = value == (this._within20minsdays == null); + if (flag) + { + this._within20minsdays = (value ? new uint?(this.within20minsdays) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastdayonlinetime", DataFormat = DataFormat.TwosComplement)] + public uint lastdayonlinetime + { + get + { + return this._lastdayonlinetime ?? 0u; + } + set + { + this._lastdayonlinetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastdayonlinetimeSpecified + { + get + { + return this._lastdayonlinetime != null; + } + set + { + bool flag = value == (this._lastdayonlinetime == null); + if (flag) + { + this._lastdayonlinetime = (value ? new uint?(this.lastdayonlinetime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastdayupdate", DataFormat = DataFormat.TwosComplement)] + public uint lastdayupdate + { + get + { + return this._lastdayupdate ?? 0u; + } + set + { + this._lastdayupdate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastdayupdateSpecified + { + get + { + return this._lastdayupdate != null; + } + set + { + bool flag = value == (this._lastdayupdate == null); + if (flag) + { + this._lastdayupdate = (value ? new uint?(this.lastdayupdate) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "lastweekupdate", DataFormat = DataFormat.TwosComplement)] + public uint lastweekupdate + { + get + { + return this._lastweekupdate ?? 0u; + } + set + { + this._lastweekupdate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastweekupdateSpecified + { + get + { + return this._lastweekupdate != null; + } + set + { + bool flag = value == (this._lastweekupdate == null); + if (flag) + { + this._lastweekupdate = (value ? new uint?(this.lastweekupdate) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "weeknestfasttime", DataFormat = DataFormat.TwosComplement)] + public uint weeknestfasttime + { + get + { + return this._weeknestfasttime ?? 0u; + } + set + { + this._weeknestfasttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeknestfasttimeSpecified + { + get + { + return this._weeknestfasttime != null; + } + set + { + bool flag = value == (this._weeknestfasttime == null); + if (flag) + { + this._weeknestfasttime = (value ? new uint?(this.weeknestfasttime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "weekactivedays", DataFormat = DataFormat.TwosComplement)] + public uint weekactivedays + { + get + { + return this._weekactivedays ?? 0u; + } + set + { + this._weekactivedays = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekactivedaysSpecified + { + get + { + return this._weekactivedays != null; + } + set + { + bool flag = value == (this._weekactivedays == null); + if (flag) + { + this._weekactivedays = (value ? new uint?(this.weekactivedays) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "weeknestdaytimes", DataFormat = DataFormat.TwosComplement)] + public uint weeknestdaytimes + { + get + { + return this._weeknestdaytimes ?? 0u; + } + set + { + this._weeknestdaytimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeknestdaytimesSpecified + { + get + { + return this._weeknestdaytimes != null; + } + set + { + bool flag = value == (this._weeknestdaytimes == null); + if (flag) + { + this._weeknestdaytimes = (value ? new uint?(this.weeknestdaytimes) : null); + } + } + } + + [ProtoMember(9, Name = "wxdata", DataFormat = DataFormat.Default)] + public List wxdata + { + get + { + return this._wxdata; + } + } + + [ProtoMember(10, IsRequired = false, Name = "lastrecommondtime", DataFormat = DataFormat.TwosComplement)] + public uint lastrecommondtime + { + get + { + return this._lastrecommondtime ?? 0u; + } + set + { + this._lastrecommondtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastrecommondtimeSpecified + { + get + { + return this._lastrecommondtime != null; + } + set + { + bool flag = value == (this._lastrecommondtime == null); + if (flag) + { + this._lastrecommondtime = (value ? new uint?(this.lastrecommondtime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "abyssdaycount", DataFormat = DataFormat.TwosComplement)] + public uint abyssdaycount + { + get + { + return this._abyssdaycount ?? 0u; + } + set + { + this._abyssdaycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool abyssdaycountSpecified + { + get + { + return this._abyssdaycount != null; + } + set + { + bool flag = value == (this._abyssdaycount == null); + if (flag) + { + this._abyssdaycount = (value ? new uint?(this.abyssdaycount) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "superrisktodaycount", DataFormat = DataFormat.TwosComplement)] + public uint superrisktodaycount + { + get + { + return this._superrisktodaycount ?? 0u; + } + set + { + this._superrisktodaycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool superrisktodaycountSpecified + { + get + { + return this._superrisktodaycount != null; + } + set + { + bool flag = value == (this._superrisktodaycount == null); + if (flag) + { + this._superrisktodaycount = (value ? new uint?(this.superrisktodaycount) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "buyibshopcount", DataFormat = DataFormat.TwosComplement)] + public uint buyibshopcount + { + get + { + return this._buyibshopcount ?? 0u; + } + set + { + this._buyibshopcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buyibshopcountSpecified + { + get + { + return this._buyibshopcount != null; + } + set + { + bool flag = value == (this._buyibshopcount == null); + if (flag) + { + this._buyibshopcount = (value ? new uint?(this.buyibshopcount) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "pokercount", DataFormat = DataFormat.TwosComplement)] + public uint pokercount + { + get + { + return this._pokercount ?? 0u; + } + set + { + this._pokercount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pokercountSpecified + { + get + { + return this._pokercount != null; + } + set + { + bool flag = value == (this._pokercount == null); + if (flag) + { + this._pokercount = (value ? new uint?(this.pokercount) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "lastpokertime", DataFormat = DataFormat.TwosComplement)] + public uint lastpokertime + { + get + { + return this._lastpokertime ?? 0u; + } + set + { + this._lastpokertime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastpokertimeSpecified + { + get + { + return this._lastpokertime != null; + } + set + { + bool flag = value == (this._lastpokertime == null); + if (flag) + { + this._lastpokertime = (value ? new uint?(this.lastpokertime) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "horsemacthcount", DataFormat = DataFormat.TwosComplement)] + public uint horsemacthcount + { + get + { + return this._horsemacthcount ?? 0u; + } + set + { + this._horsemacthcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool horsemacthcountSpecified + { + get + { + return this._horsemacthcount != null; + } + set + { + bool flag = value == (this._horsemacthcount == null); + if (flag) + { + this._horsemacthcount = (value ? new uint?(this.horsemacthcount) : null); + } + } + } + + private uint? _weeklogindays; + + private uint? _within20minsdays; + + private uint? _lastdayonlinetime; + + private uint? _lastdayupdate; + + private uint? _lastweekupdate; + + private uint? _weeknestfasttime; + + private uint? _weekactivedays; + + private uint? _weeknestdaytimes; + + private readonly List _wxdata = new List(); + + private uint? _lastrecommondtime; + + private uint? _abyssdaycount; + + private uint? _superrisktodaycount; + + private uint? _buyibshopcount; + + private uint? _pokercount; + + private uint? _lastpokertime; + + private uint? _horsemacthcount; + + private IExtension extensionObject; + + private bool ShouldSerializeweeklogindays() + { + return this.weeklogindaysSpecified; + } + + private void Resetweeklogindays() + { + this.weeklogindaysSpecified = false; + } + + private bool ShouldSerializewithin20minsdays() + { + return this.within20minsdaysSpecified; + } + + private void Resetwithin20minsdays() + { + this.within20minsdaysSpecified = false; + } + + private bool ShouldSerializelastdayonlinetime() + { + return this.lastdayonlinetimeSpecified; + } + + private void Resetlastdayonlinetime() + { + this.lastdayonlinetimeSpecified = false; + } + + private bool ShouldSerializelastdayupdate() + { + return this.lastdayupdateSpecified; + } + + private void Resetlastdayupdate() + { + this.lastdayupdateSpecified = false; + } + + private bool ShouldSerializelastweekupdate() + { + return this.lastweekupdateSpecified; + } + + private void Resetlastweekupdate() + { + this.lastweekupdateSpecified = false; + } + + private bool ShouldSerializeweeknestfasttime() + { + return this.weeknestfasttimeSpecified; + } + + private void Resetweeknestfasttime() + { + this.weeknestfasttimeSpecified = false; + } + + private bool ShouldSerializeweekactivedays() + { + return this.weekactivedaysSpecified; + } + + private void Resetweekactivedays() + { + this.weekactivedaysSpecified = false; + } + + private bool ShouldSerializeweeknestdaytimes() + { + return this.weeknestdaytimesSpecified; + } + + private void Resetweeknestdaytimes() + { + this.weeknestdaytimesSpecified = false; + } + + private bool ShouldSerializelastrecommondtime() + { + return this.lastrecommondtimeSpecified; + } + + private void Resetlastrecommondtime() + { + this.lastrecommondtimeSpecified = false; + } + + private bool ShouldSerializeabyssdaycount() + { + return this.abyssdaycountSpecified; + } + + private void Resetabyssdaycount() + { + this.abyssdaycountSpecified = false; + } + + private bool ShouldSerializesuperrisktodaycount() + { + return this.superrisktodaycountSpecified; + } + + private void Resetsuperrisktodaycount() + { + this.superrisktodaycountSpecified = false; + } + + private bool ShouldSerializebuyibshopcount() + { + return this.buyibshopcountSpecified; + } + + private void Resetbuyibshopcount() + { + this.buyibshopcountSpecified = false; + } + + private bool ShouldSerializepokercount() + { + return this.pokercountSpecified; + } + + private void Resetpokercount() + { + this.pokercountSpecified = false; + } + + private bool ShouldSerializelastpokertime() + { + return this.lastpokertimeSpecified; + } + + private void Resetlastpokertime() + { + this.lastpokertimeSpecified = false; + } + + private bool ShouldSerializehorsemacthcount() + { + return this.horsemacthcountSpecified; + } + + private void Resethorsemacthcount() + { + this.horsemacthcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReportDataRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReportDataRecord.cs.meta new file mode 100644 index 00000000..92eb7f92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReportDataRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1466194442b7f9b41b1860582c248520 +timeCreated: 1611403257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs new file mode 100644 index 00000000..36843fe5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqAutoPlay")] + [Serializable] + public class ReqAutoPlay : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isautoplay", DataFormat = DataFormat.Default)] + public bool isautoplay + { + get + { + return this._isautoplay ?? false; + } + set + { + this._isautoplay = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isautoplaySpecified + { + get + { + return this._isautoplay != null; + } + set + { + bool flag = value == (this._isautoplay == null); + if (flag) + { + this._isautoplay = (value ? new bool?(this.isautoplay) : null); + } + } + } + + private bool? _isautoplay; + + private IExtension extensionObject; + + private bool ShouldSerializeisautoplay() + { + return this.isautoplaySpecified; + } + + private void Resetisautoplay() + { + this.isautoplaySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs.meta new file mode 100644 index 00000000..2cfbbfd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqAutoPlay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8aeb75e5d6d6a942a82c9d73ceb5f04 +timeCreated: 1611404754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRes.cs new file mode 100644 index 00000000..4a029840 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRes.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildArenaHistoryRes")] + [Serializable] + public class ReqGuildArenaHistoryRes : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRes.cs.meta new file mode 100644 index 00000000..cc6b16e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a874e11769c09b438308ec7db184791 +timeCreated: 1611404091 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRse.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRse.cs new file mode 100644 index 00000000..19ca3a44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRse.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildArenaHistoryRse")] + [Serializable] + public class ReqGuildArenaHistoryRse : IExtensible + { + [ProtoMember(1, Name = "history", DataFormat = DataFormat.Default)] + public List history + { + get + { + return this._history; + } + } + + private readonly List _history = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRse.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRse.cs.meta new file mode 100644 index 00000000..16981fdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildArenaHistoryRse.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8688c184a7259a943bf477b701fdcdd9 +timeCreated: 1611404054 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoArg.cs new file mode 100644 index 00000000..f133374f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildInheritInfoArg")] + [Serializable] + public class ReqGuildInheritInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoArg.cs.meta new file mode 100644 index 00000000..472da7f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea8a9d01055ab394e9f0fd29cea2a056 +timeCreated: 1611404779 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoRes.cs new file mode 100644 index 00000000..43989f5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoRes.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildInheritInfoRes")] + [Serializable] + public class ReqGuildInheritInfoRes : IExtensible + { + [ProtoMember(1, Name = "data", DataFormat = DataFormat.Default)] + public List data + { + get + { + return this._data; + } + } + + private readonly List _data = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoRes.cs.meta new file mode 100644 index 00000000..a740096b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildInheritInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41deabd2846f22849b4b7bac8e74cfa6 +timeCreated: 1611403637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoAgr.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoAgr.cs new file mode 100644 index 00000000..31d520ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoAgr.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildLadderInfoAgr")] + [Serializable] + public class ReqGuildLadderInfoAgr : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleId", DataFormat = DataFormat.TwosComplement)] + public ulong roleId + { + get + { + return this._roleId ?? 0UL; + } + set + { + this._roleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIdSpecified + { + get + { + return this._roleId != null; + } + set + { + bool flag = value == (this._roleId == null); + if (flag) + { + this._roleId = (value ? new ulong?(this.roleId) : null); + } + } + } + + private ulong? _roleId; + + private IExtension extensionObject; + + private bool ShouldSerializeroleId() + { + return this.roleIdSpecified; + } + + private void ResetroleId() + { + this.roleIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoAgr.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoAgr.cs.meta new file mode 100644 index 00000000..d27ca3d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoAgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fbf02d20b233ed54eb48287cfa6b52ed +timeCreated: 1611404933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoRes.cs new file mode 100644 index 00000000..f92c025d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoRes.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildLadderInfoRes")] + [Serializable] + public class ReqGuildLadderInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lestRewardTimes", DataFormat = DataFormat.TwosComplement)] + public uint lestRewardTimes + { + get + { + return this._lestRewardTimes ?? 0u; + } + set + { + this._lestRewardTimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lestRewardTimesSpecified + { + get + { + return this._lestRewardTimes != null; + } + set + { + bool flag = value == (this._lestRewardTimes == null); + if (flag) + { + this._lestRewardTimes = (value ? new uint?(this.lestRewardTimes) : null); + } + } + } + + [ProtoMember(2, Name = "roleRanks", DataFormat = DataFormat.Default)] + public List roleRanks + { + get + { + return this._roleRanks; + } + } + + [ProtoMember(3, Name = "guildRanks", DataFormat = DataFormat.Default)] + public List guildRanks + { + get + { + return this._guildRanks; + } + } + + [ProtoMember(4, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "nowTime", DataFormat = DataFormat.TwosComplement)] + public uint nowTime + { + get + { + return this._nowTime ?? 0u; + } + set + { + this._nowTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nowTimeSpecified + { + get + { + return this._nowTime != null; + } + set + { + bool flag = value == (this._nowTime == null); + if (flag) + { + this._nowTime = (value ? new uint?(this.nowTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "lastTime", DataFormat = DataFormat.TwosComplement)] + public uint lastTime + { + get + { + return this._lastTime ?? 0u; + } + set + { + this._lastTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastTimeSpecified + { + get + { + return this._lastTime != null; + } + set + { + bool flag = value == (this._lastTime == null); + if (flag) + { + this._lastTime = (value ? new uint?(this.lastTime) : null); + } + } + } + + private uint? _lestRewardTimes; + + private readonly List _roleRanks = new List(); + + private readonly List _guildRanks = new List(); + + private ErrorCode? _errorcode; + + private uint? _nowTime; + + private uint? _lastTime; + + private IExtension extensionObject; + + private bool ShouldSerializelestRewardTimes() + { + return this.lestRewardTimesSpecified; + } + + private void ResetlestRewardTimes() + { + this.lestRewardTimesSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializenowTime() + { + return this.nowTimeSpecified; + } + + private void ResetnowTime() + { + this.nowTimeSpecified = false; + } + + private bool ShouldSerializelastTime() + { + return this.lastTimeSpecified; + } + + private void ResetlastTime() + { + this.lastTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoRes.cs.meta new file mode 100644 index 00000000..0f003059 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cc5cb5e387123341a01e24281891081 +timeCreated: 1611403998 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs new file mode 100644 index 00000000..55cd3f9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildLadderRnakInfoArg")] + [Serializable] + public class ReqGuildLadderRnakInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs.meta new file mode 100644 index 00000000..ab76f86a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a078df4ffb464540822465406567cac +timeCreated: 1611403987 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs new file mode 100644 index 00000000..25b7c2a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildLadderRnakInfoRes")] + [Serializable] + public class ReqGuildLadderRnakInfoRes : IExtensible + { + [ProtoMember(1, Name = "guildrank", DataFormat = DataFormat.Default)] + public List guildrank + { + get + { + return this._guildrank; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastTime", DataFormat = DataFormat.TwosComplement)] + public uint lastTime + { + get + { + return this._lastTime ?? 0u; + } + set + { + this._lastTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastTimeSpecified + { + get + { + return this._lastTime != null; + } + set + { + bool flag = value == (this._lastTime == null); + if (flag) + { + this._lastTime = (value ? new uint?(this.lastTime) : null); + } + } + } + + private readonly List _guildrank = new List(); + + private ErrorCode? _errorcode; + + private uint? _lastTime; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializelastTime() + { + return this.lastTimeSpecified; + } + + private void ResetlastTime() + { + this.lastTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs.meta new file mode 100644 index 00000000..db93235b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildLadderRnakInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63bf3656925dc814f941ddd59730fb2c +timeCreated: 1611403845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoArg.cs new file mode 100644 index 00000000..8527e0f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildRankInfoArg")] + [Serializable] + public class ReqGuildRankInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoArg.cs.meta new file mode 100644 index 00000000..c109cf68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d782b42bd330d640a587dbe738a49a6 +timeCreated: 1611403195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoRes.cs new file mode 100644 index 00000000..0a4ad38e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildRankInfoRes")] + [Serializable] + public class ReqGuildRankInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "endTime", DataFormat = DataFormat.TwosComplement)] + public uint endTime + { + get + { + return this._endTime ?? 0u; + } + set + { + this._endTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endTimeSpecified + { + get + { + return this._endTime != null; + } + set + { + bool flag = value == (this._endTime == null); + if (flag) + { + this._endTime = (value ? new uint?(this.endTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "keepTime", DataFormat = DataFormat.TwosComplement)] + public uint keepTime + { + get + { + return this._keepTime ?? 0u; + } + set + { + this._keepTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool keepTimeSpecified + { + get + { + return this._keepTime != null; + } + set + { + bool flag = value == (this._keepTime == null); + if (flag) + { + this._keepTime = (value ? new uint?(this.keepTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "nowTime", DataFormat = DataFormat.TwosComplement)] + public uint nowTime + { + get + { + return this._nowTime ?? 0u; + } + set + { + this._nowTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nowTimeSpecified + { + get + { + return this._nowTime != null; + } + set + { + bool flag = value == (this._nowTime == null); + if (flag) + { + this._nowTime = (value ? new uint?(this.nowTime) : null); + } + } + } + + private uint? _endTime; + + private uint? _rank; + + private uint? _keepTime; + + private uint? _nowTime; + + private IExtension extensionObject; + + private bool ShouldSerializeendTime() + { + return this.endTimeSpecified; + } + + private void ResetendTime() + { + this.endTimeSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializekeepTime() + { + return this.keepTimeSpecified; + } + + private void ResetkeepTime() + { + this.keepTimeSpecified = false; + } + + private bool ShouldSerializenowTime() + { + return this.nowTimeSpecified; + } + + private void ResetnowTime() + { + this.nowTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoRes.cs.meta new file mode 100644 index 00000000..2180a08e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildRankInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51979c02960fe8d4b9dfb2d0f7079ae1 +timeCreated: 1611403706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoArg.cs new file mode 100644 index 00000000..09dfb1cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildTerrAllianceInfoArg")] + [Serializable] + public class ReqGuildTerrAllianceInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoArg.cs.meta new file mode 100644 index 00000000..0a9dc7f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e97e972257cb3094882fc3bff11496c6 +timeCreated: 1611404757 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoRes.cs new file mode 100644 index 00000000..2d22c228 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildTerrAllianceInfoRes")] + [Serializable] + public class ReqGuildTerrAllianceInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "allianceid", DataFormat = DataFormat.TwosComplement)] + public ulong allianceid + { + get + { + return this._allianceid ?? 0UL; + } + set + { + this._allianceid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allianceidSpecified + { + get + { + return this._allianceid != null; + } + set + { + bool flag = value == (this._allianceid == null); + if (flag) + { + this._allianceid = (value ? new ulong?(this.allianceid) : null); + } + } + } + + [ProtoMember(2, Name = "allianceinfo", DataFormat = DataFormat.Default)] + public List allianceinfo + { + get + { + return this._allianceinfo; + } + } + + private ulong? _allianceid; + + private readonly List _allianceinfo = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeallianceid() + { + return this.allianceidSpecified; + } + + private void Resetallianceid() + { + this.allianceidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoRes.cs.meta new file mode 100644 index 00000000..0f37d135 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrAllianceInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05454cd01b2132e4581e384f1ceb1160 +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs new file mode 100644 index 00000000..757cae14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildTerrChallInfoArg")] + [Serializable] + public class ReqGuildTerrChallInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs.meta new file mode 100644 index 00000000..151d2235 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0f98b946eaf9984e89a55116f0e19cc +timeCreated: 1611404590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs new file mode 100644 index 00000000..cdaaf23a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildTerrChallInfoRes")] + [Serializable] + public class ReqGuildTerrChallInfoRes : IExtensible + { + [ProtoMember(1, Name = "challinfo", DataFormat = DataFormat.Default)] + public List challinfo + { + get + { + return this._challinfo; + } + } + + [ProtoMember(2, IsRequired = false, Name = "cdtime", DataFormat = DataFormat.TwosComplement)] + public uint cdtime + { + get + { + return this._cdtime ?? 0u; + } + set + { + this._cdtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cdtimeSpecified + { + get + { + return this._cdtime != null; + } + set + { + bool flag = value == (this._cdtime == null); + if (flag) + { + this._cdtime = (value ? new uint?(this.cdtime) : null); + } + } + } + + private readonly List _challinfo = new List(); + + private uint? _cdtime; + + private IExtension extensionObject; + + private bool ShouldSerializecdtime() + { + return this.cdtimeSpecified; + } + + private void Resetcdtime() + { + this.cdtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs.meta new file mode 100644 index 00000000..b616da78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrChallInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c2085dabeed6044f9a55bc7598fd2b6 +timeCreated: 1611403894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfo.cs new file mode 100644 index 00000000..e5537b6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfo.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildTerrCityInfo")] + [Serializable] + public class ReqGuildTerrCityInfo : IExtensible + { + [ProtoMember(1, Name = "cityinfo", DataFormat = DataFormat.Default)] + public List cityinfo + { + get + { + return this._cityinfo; + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public GUILDTERRTYPE type + { + get + { + return this._type ?? GUILDTERRTYPE.TERR_NOT_OPEN; + } + set + { + this._type = new GUILDTERRTYPE?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new GUILDTERRTYPE?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "targetid", DataFormat = DataFormat.TwosComplement)] + public uint targetid + { + get + { + return this._targetid ?? 0u; + } + set + { + this._targetid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool targetidSpecified + { + get + { + return this._targetid != null; + } + set + { + bool flag = value == (this._targetid == null); + if (flag) + { + this._targetid = (value ? new uint?(this.targetid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "allianceId", DataFormat = DataFormat.TwosComplement)] + public ulong allianceId + { + get + { + return this._allianceId ?? 0UL; + } + set + { + this._allianceId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allianceIdSpecified + { + get + { + return this._allianceId != null; + } + set + { + bool flag = value == (this._allianceId == null); + if (flag) + { + this._allianceId = (value ? new ulong?(this.allianceId) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "max_territory_level", DataFormat = DataFormat.TwosComplement)] + public uint max_territory_level + { + get + { + return this._max_territory_level ?? 0u; + } + set + { + this._max_territory_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_territory_levelSpecified + { + get + { + return this._max_territory_level != null; + } + set + { + bool flag = value == (this._max_territory_level == null); + if (flag) + { + this._max_territory_level = (value ? new uint?(this.max_territory_level) : null); + } + } + } + + private readonly List _cityinfo = new List(); + + private GUILDTERRTYPE? _type; + + private uint? _targetid; + + private ulong? _allianceId; + + private uint? _max_territory_level; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetargetid() + { + return this.targetidSpecified; + } + + private void Resettargetid() + { + this.targetidSpecified = false; + } + + private bool ShouldSerializeallianceId() + { + return this.allianceIdSpecified; + } + + private void ResetallianceId() + { + this.allianceIdSpecified = false; + } + + private bool ShouldSerializemax_territory_level() + { + return this.max_territory_levelSpecified; + } + + private void Resetmax_territory_level() + { + this.max_territory_levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfo.cs.meta new file mode 100644 index 00000000..3765968e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a04cd4ca37f90884b9d62bdbe8a5de64 +timeCreated: 1611404248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs new file mode 100644 index 00000000..98674532 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildTerrCityInfoArg")] + [Serializable] + public class ReqGuildTerrCityInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs.meta new file mode 100644 index 00000000..220f0117 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrCityInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8bbd106291612214fb16a6c8ea6e3334 +timeCreated: 1611404097 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs new file mode 100644 index 00000000..0f1e86db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildTerrIntellInfoArg")] + [Serializable] + public class ReqGuildTerrIntellInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs.meta new file mode 100644 index 00000000..e6cb0441 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c066bd72b738f6e4dbb8e34853137935 +timeCreated: 1611404486 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs new file mode 100644 index 00000000..d7c94e37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqGuildTerrIntellInfoRes")] + [Serializable] + public class ReqGuildTerrIntellInfoRes : IExtensible + { + [ProtoMember(1, Name = "intellInfo", DataFormat = DataFormat.Default)] + public List intellInfo + { + get + { + return this._intellInfo; + } + } + + private readonly List _intellInfo = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs.meta new file mode 100644 index 00000000..8ad4e161 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqGuildTerrIntellInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 043bb21dd7c492944abf15593532c466 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListArg.cs new file mode 100644 index 00000000..b231f73d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqPlatFriendRankListArg")] + [Serializable] + public class ReqPlatFriendRankListArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListArg.cs.meta new file mode 100644 index 00000000..8eabe6f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c8be77972025eb4985f78302d8af1d9 +timeCreated: 1611404100 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListRes.cs new file mode 100644 index 00000000..2f490d5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListRes.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReqPlatFriendRankListRes")] + [Serializable] + public class ReqPlatFriendRankListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "platFriends", DataFormat = DataFormat.Default)] + public List platFriends + { + get + { + return this._platFriends; + } + } + + [ProtoMember(3, IsRequired = false, Name = "selfInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatFriendRankInfo2Client selfInfo + { + get + { + return this._selfInfo; + } + set + { + this._selfInfo = value; + } + } + + private ErrorCode? _error; + + private readonly List _platFriends = new List(); + + private PlatFriendRankInfo2Client _selfInfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListRes.cs.meta new file mode 100644 index 00000000..16b68228 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReqPlatFriendRankListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f1be2dab7ba7a442acf05ebab45bae5 +timeCreated: 1611404133 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllInfo.cs new file mode 100644 index 00000000..896e80ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarAllInfo")] + [Serializable] + public class ResWarAllInfo : IExtensible + { + [ProtoMember(1, Name = "groupdata", DataFormat = DataFormat.Default)] + public List groupdata + { + get + { + return this._groupdata; + } + } + + [ProtoMember(2, IsRequired = false, Name = "timetype", DataFormat = DataFormat.TwosComplement)] + public ResWarTimeType timetype + { + get + { + return this._timetype ?? ResWarTimeType.RealyTime; + } + set + { + this._timetype = new ResWarTimeType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timetypeSpecified + { + get + { + return this._timetype != null; + } + set + { + bool flag = value == (this._timetype == null); + if (flag) + { + this._timetype = (value ? new ResWarTimeType?(this.timetype) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + private readonly List _groupdata = new List(); + + private ResWarTimeType? _timetype; + + private uint? _lefttime; + + private IExtension extensionObject; + + private bool ShouldSerializetimetype() + { + return this.timetypeSpecified; + } + + private void Resettimetype() + { + this.timetypeSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllInfo.cs.meta new file mode 100644 index 00000000..47da0301 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16b6a4bd62ad7d143b118238bf3e74db +timeCreated: 1611403290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllTeamBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllTeamBaseInfo.cs new file mode 100644 index 00000000..91440455 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllTeamBaseInfo.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarAllTeamBaseInfo")] + [Serializable] + public class ResWarAllTeamBaseInfo : IExtensible + { + [ProtoMember(1, Name = "info", DataFormat = DataFormat.Default)] + public List info + { + get + { + return this._info; + } + } + + private readonly List _info = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllTeamBaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllTeamBaseInfo.cs.meta new file mode 100644 index 00000000..827c3e15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarAllTeamBaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07b9572e13c6cab42afb3e918910972d +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarArg.cs new file mode 100644 index 00000000..9ade7976 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarArg")] + [Serializable] + public class ResWarArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarArg.cs.meta new file mode 100644 index 00000000..aa2e3a76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c152cd2c7d676524f8c8712e5104dcaf +timeCreated: 1611404490 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffArg.cs new file mode 100644 index 00000000..60fa761e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarBuffArg")] + [Serializable] + public class ResWarBuffArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "nParam", DataFormat = DataFormat.TwosComplement)] + public uint nParam + { + get + { + return this._nParam ?? 0u; + } + set + { + this._nParam = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nParamSpecified + { + get + { + return this._nParam != null; + } + set + { + bool flag = value == (this._nParam == null); + if (flag) + { + this._nParam = (value ? new uint?(this.nParam) : null); + } + } + } + + private uint? _nParam; + + private IExtension extensionObject; + + private bool ShouldSerializenParam() + { + return this.nParamSpecified; + } + + private void ResetnParam() + { + this.nParamSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffArg.cs.meta new file mode 100644 index 00000000..2e4f7939 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 029eca726dd1cfa4c85a57a2ab79a116 +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffRes.cs new file mode 100644 index 00000000..b0f317a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarBuffRes")] + [Serializable] + public class ResWarBuffRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "buffid", DataFormat = DataFormat.TwosComplement)] + public uint buffid + { + get + { + return this._buffid ?? 0u; + } + set + { + this._buffid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buffidSpecified + { + get + { + return this._buffid != null; + } + set + { + bool flag = value == (this._buffid == null); + if (flag) + { + this._buffid = (value ? new uint?(this.buffid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private uint? _buffid; + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializebuffid() + { + return this.buffidSpecified; + } + + private void Resetbuffid() + { + this.buffidSpecified = false; + } + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffRes.cs.meta new file mode 100644 index 00000000..afaad03e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarBuffRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22a56bc25e303c247a7eea05851b0671 +timeCreated: 1611403424 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarEnemyTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarEnemyTime.cs new file mode 100644 index 00000000..1d9c95cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarEnemyTime.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarEnemyTime")] + [Serializable] + public class ResWarEnemyTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarEnemyTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarEnemyTime.cs.meta new file mode 100644 index 00000000..33208206 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarEnemyTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 617a58b453a51754780240fa42ce70db +timeCreated: 1611403838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreArg.cs new file mode 100644 index 00000000..b5bbe7b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarExploreArg")] + [Serializable] + public class ResWarExploreArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "iscancel", DataFormat = DataFormat.Default)] + public bool iscancel + { + get + { + return this._iscancel ?? false; + } + set + { + this._iscancel = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscancelSpecified + { + get + { + return this._iscancel != null; + } + set + { + bool flag = value == (this._iscancel == null); + if (flag) + { + this._iscancel = (value ? new bool?(this.iscancel) : null); + } + } + } + + private bool? _iscancel; + + private IExtension extensionObject; + + private bool ShouldSerializeiscancel() + { + return this.iscancelSpecified; + } + + private void Resetiscancel() + { + this.iscancelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreArg.cs.meta new file mode 100644 index 00000000..7e035edd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b619d1c917897cd488f552cf029e033e +timeCreated: 1611404396 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreRes.cs new file mode 100644 index 00000000..683e2051 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarExploreRes")] + [Serializable] + public class ResWarExploreRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreRes.cs.meta new file mode 100644 index 00000000..9978aab3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarExploreRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75ae7cba26db40d4aac4019e165225c6 +timeCreated: 1611403947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs new file mode 100644 index 00000000..2faa949e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarFinal")] + [Serializable] + public class ResWarFinal : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "res", DataFormat = DataFormat.TwosComplement)] + public uint res + { + get + { + return this._res ?? 0u; + } + set + { + this._res = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resSpecified + { + get + { + return this._res != null; + } + set + { + bool flag = value == (this._res == null); + if (flag) + { + this._res = (value ? new uint?(this.res) : null); + } + } + } + + [ProtoMember(3, Name = "brief", DataFormat = DataFormat.Default)] + public List brief + { + get + { + return this._brief; + } + } + + [ProtoMember(4, IsRequired = false, Name = "guildicon", DataFormat = DataFormat.TwosComplement)] + public uint guildicon + { + get + { + return this._guildicon ?? 0u; + } + set + { + this._guildicon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildiconSpecified + { + get + { + return this._guildicon != null; + } + set + { + bool flag = value == (this._guildicon == null); + if (flag) + { + this._guildicon = (value ? new uint?(this.guildicon) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + private string _guildname; + + private uint? _res; + + private readonly List _brief = new List(); + + private uint? _guildicon; + + private ulong? _guildid; + + private IExtension extensionObject; + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializeres() + { + return this.resSpecified; + } + + private void Resetres() + { + this.resSpecified = false; + } + + private bool ShouldSerializeguildicon() + { + return this.guildiconSpecified; + } + + private void Resetguildicon() + { + this.guildiconSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs.meta new file mode 100644 index 00000000..30b70722 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinal.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47483b2a6d70bec46885d5aae4385873 +timeCreated: 1611403653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinalAll.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinalAll.cs new file mode 100644 index 00000000..d10f69dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinalAll.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarFinalAll")] + [Serializable] + public class ResWarFinalAll : IExtensible + { + [ProtoMember(1, Name = "data", DataFormat = DataFormat.Default)] + public List data + { + get + { + return this._data; + } + } + + private readonly List _data = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinalAll.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinalAll.cs.meta new file mode 100644 index 00000000..94771638 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarFinalAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ba76fecae4ac4d4f9058ba27ad096fc +timeCreated: 1611403892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarGroupData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarGroupData.cs new file mode 100644 index 00000000..a809ea9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarGroupData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarGroupData")] + [Serializable] + public class ResWarGroupData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public uint killcount + { + get + { + return this._killcount ?? 0u; + } + set + { + this._killcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new uint?(this.killcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totaldamage", DataFormat = DataFormat.TwosComplement)] + public uint totaldamage + { + get + { + return this._totaldamage ?? 0u; + } + set + { + this._totaldamage = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totaldamageSpecified + { + get + { + return this._totaldamage != null; + } + set + { + bool flag = value == (this._totaldamage == null); + if (flag) + { + this._totaldamage = (value ? new uint?(this.totaldamage) : null); + } + } + } + + private uint? _teamid; + + private uint? _killcount; + + private uint? _totaldamage; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializetotaldamage() + { + return this.totaldamageSpecified; + } + + private void Resettotaldamage() + { + this.totaldamageSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarGroupData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarGroupData.cs.meta new file mode 100644 index 00000000..34aea46c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarGroupData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b9c84f4edd8b26498bbccd4ded84dad +timeCreated: 1611404207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarGuildBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarGuildBrief.cs new file mode 100644 index 00000000..5edf7e99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarGuildBrief.cs @@ -0,0 +1,403 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarGuildBrief")] + [Serializable] + public class ResWarGuildBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "cd", DataFormat = DataFormat.TwosComplement)] + public uint cd + { + get + { + return this._cd ?? 0u; + } + set + { + this._cd = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cdSpecified + { + get + { + return this._cd != null; + } + set + { + bool flag = value == (this._cd == null); + if (flag) + { + this._cd = (value ? new uint?(this.cd) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cardcd", DataFormat = DataFormat.TwosComplement)] + public uint cardcd + { + get + { + return this._cardcd ?? 0u; + } + set + { + this._cardcd = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cardcdSpecified + { + get + { + return this._cardcd != null; + } + set + { + bool flag = value == (this._cardcd == null); + if (flag) + { + this._cardcd = (value ? new uint?(this.cardcd) : null); + } + } + } + + [ProtoMember(5, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + [ProtoMember(6, Name = "record", DataFormat = DataFormat.Default)] + public List record + { + get + { + return this._record; + } + } + + [ProtoMember(7, Name = "mineid", DataFormat = DataFormat.TwosComplement)] + public List mineid + { + get + { + return this._mineid; + } + } + + [ProtoMember(8, Name = "chatinfo", DataFormat = DataFormat.Default)] + public List chatinfo + { + get + { + return this._chatinfo; + } + } + + [ProtoMember(9, IsRequired = false, Name = "totalcd", DataFormat = DataFormat.TwosComplement)] + public uint totalcd + { + get + { + return this._totalcd ?? 0u; + } + set + { + this._totalcd = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totalcdSpecified + { + get + { + return this._totalcd != null; + } + set + { + bool flag = value == (this._totalcd == null); + if (flag) + { + this._totalcd = (value ? new uint?(this.totalcd) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "timecoutdown", DataFormat = DataFormat.TwosComplement)] + public uint timecoutdown + { + get + { + return this._timecoutdown ?? 0u; + } + set + { + this._timecoutdown = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timecoutdownSpecified + { + get + { + return this._timecoutdown != null; + } + set + { + bool flag = value == (this._timecoutdown == null); + if (flag) + { + this._timecoutdown = (value ? new uint?(this.timecoutdown) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "timetype", DataFormat = DataFormat.TwosComplement)] + public uint timetype + { + get + { + return this._timetype ?? 0u; + } + set + { + this._timetype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timetypeSpecified + { + get + { + return this._timetype != null; + } + set + { + bool flag = value == (this._timetype == null); + if (flag) + { + this._timetype = (value ? new uint?(this.timetype) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "rankinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ResWarRankSimpleInfo rankinfo + { + get + { + return this._rankinfo; + } + set + { + this._rankinfo = value; + } + } + + [ProtoMember(13, Name = "buffinfo", DataFormat = DataFormat.Default)] + public List buffinfo + { + get + { + return this._buffinfo; + } + } + + [ProtoMember(14, Name = "buffid", DataFormat = DataFormat.TwosComplement)] + public List buffid + { + get + { + return this._buffid; + } + } + + private ErrorCode? _error; + + private ulong? _guildid; + + private uint? _cd; + + private uint? _cardcd; + + private readonly List _item = new List(); + + private readonly List _record = new List(); + + private readonly List _mineid = new List(); + + private readonly List _chatinfo = new List(); + + private uint? _totalcd; + + private uint? _timecoutdown; + + private uint? _timetype; + + private ResWarRankSimpleInfo _rankinfo = null; + + private readonly List _buffinfo = new List(); + + private readonly List _buffid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializecd() + { + return this.cdSpecified; + } + + private void Resetcd() + { + this.cdSpecified = false; + } + + private bool ShouldSerializecardcd() + { + return this.cardcdSpecified; + } + + private void Resetcardcd() + { + this.cardcdSpecified = false; + } + + private bool ShouldSerializetotalcd() + { + return this.totalcdSpecified; + } + + private void Resettotalcd() + { + this.totalcdSpecified = false; + } + + private bool ShouldSerializetimecoutdown() + { + return this.timecoutdownSpecified; + } + + private void Resettimecoutdown() + { + this.timecoutdownSpecified = false; + } + + private bool ShouldSerializetimetype() + { + return this.timetypeSpecified; + } + + private void Resettimetype() + { + this.timetypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarGuildBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarGuildBrief.cs.meta new file mode 100644 index 00000000..807bf682 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarGuildBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ccd4982142b132e459e47c79561cd488 +timeCreated: 1611404552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarMineData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarMineData.cs new file mode 100644 index 00000000..b76032c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarMineData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarMineData")] + [Serializable] + public class ResWarMineData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "mine", DataFormat = DataFormat.TwosComplement)] + public uint mine + { + get + { + return this._mine ?? 0u; + } + set + { + this._mine = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mineSpecified + { + get + { + return this._mine != null; + } + set + { + bool flag = value == (this._mine == null); + if (flag) + { + this._mine = (value ? new uint?(this.mine) : null); + } + } + } + + private ulong? _guildid; + + private uint? _mine; + + private IExtension extensionObject; + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializemine() + { + return this.mineSpecified; + } + + private void Resetmine() + { + this.mineSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarMineData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarMineData.cs.meta new file mode 100644 index 00000000..7193a782 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarMineData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b47eab4272bc0f46aefc2dedab9afbc +timeCreated: 1611403798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVEArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVEArg.cs new file mode 100644 index 00000000..a6b8a8c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVEArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarPVEArg")] + [Serializable] + public class ResWarPVEArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mine", DataFormat = DataFormat.TwosComplement)] + public uint mine + { + get + { + return this._mine ?? 0u; + } + set + { + this._mine = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mineSpecified + { + get + { + return this._mine != null; + } + set + { + bool flag = value == (this._mine == null); + if (flag) + { + this._mine = (value ? new uint?(this.mine) : null); + } + } + } + + private uint? _mine; + + private IExtension extensionObject; + + private bool ShouldSerializemine() + { + return this.mineSpecified; + } + + private void Resetmine() + { + this.mineSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVEArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVEArg.cs.meta new file mode 100644 index 00000000..bf6fa0d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVEArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81ce31597a44b7f4ba99c216ea438f9a +timeCreated: 1611404037 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVERes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVERes.cs new file mode 100644 index 00000000..9185909d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVERes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarPVERes")] + [Serializable] + public class ResWarPVERes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVERes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVERes.cs.meta new file mode 100644 index 00000000..117d8765 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarPVERes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e61b0546ec7805540a7152a8f5e536c5 +timeCreated: 1611404745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRank.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRank.cs new file mode 100644 index 00000000..2576a2e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRank.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarRank")] + [Serializable] + public class ResWarRank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public ulong id + { + get + { + return this._id ?? 0UL; + } + set + { + this._id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new ulong?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "value", DataFormat = DataFormat.TwosComplement)] + public uint value + { + get + { + return this._value ?? 0u; + } + set + { + this._value = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool valueSpecified + { + get + { + return this._value != null; + } + set + { + bool flag = value == (this._value == null); + if (flag) + { + this._value = (value ? new uint?(this.value) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public uint icon + { + get + { + return this._icon ?? 0u; + } + set + { + this._icon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new uint?(this.icon) : null); + } + } + } + + private ulong? _id; + + private string _name; + + private uint? _value; + + private uint? _icon; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializevalue() + { + return this.valueSpecified; + } + + private void Resetvalue() + { + this.valueSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRank.cs.meta new file mode 100644 index 00000000..4476af0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03f64cfc03b71e546b53a4ff5e663a6e +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRankSimpleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRankSimpleInfo.cs new file mode 100644 index 00000000..c9f29f74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRankSimpleInfo.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarRankSimpleInfo")] + [Serializable] + public class ResWarRankSimpleInfo : IExtensible + { + [ProtoMember(1, Name = "rank", DataFormat = DataFormat.Default)] + public List rank + { + get + { + return this._rank; + } + } + + private readonly List _rank = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRankSimpleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRankSimpleInfo.cs.meta new file mode 100644 index 00000000..7e1e6fca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRankSimpleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b18486e321e050145a4acd69b579ec5c +timeCreated: 1611404356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRes.cs new file mode 100644 index 00000000..eb0fe7c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRes.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarRes")] + [Serializable] + public class ResWarRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "baseinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ResWarAllTeamBaseInfo baseinfo + { + get + { + return this._baseinfo; + } + set + { + this._baseinfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "allinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ResWarAllInfo allinfo + { + get + { + return this._allinfo; + } + set + { + this._allinfo = value; + } + } + + private ResWarAllTeamBaseInfo _baseinfo = null; + + private ResWarAllInfo _allinfo = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRes.cs.meta new file mode 100644 index 00000000..b343636a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a09a9e716c3703e4b81fd92c5e37f7b4 +timeCreated: 1611404249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarResult.cs new file mode 100644 index 00000000..c20f4543 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarResult.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarResult")] + public enum ResWarResult + { + [ProtoEnum(Name = "RESWAR_SUCESS", Value = 1)] + RESWAR_SUCESS = 1, + [ProtoEnum(Name = "RESWAR_FAIL", Value = 2)] + RESWAR_FAIL, + [ProtoEnum(Name = "RESWAR_FLAT", Value = 3)] + RESWAR_FLAT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarResult.cs.meta new file mode 100644 index 00000000..b05e7298 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bea6506cf0066f2498f223ef24973a31 +timeCreated: 1611404480 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRank.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRank.cs new file mode 100644 index 00000000..ca956b77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRank.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarRoleRank")] + [Serializable] + public class ResWarRoleRank : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "res", DataFormat = DataFormat.TwosComplement)] + public uint res + { + get + { + return this._res ?? 0u; + } + set + { + this._res = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resSpecified + { + get + { + return this._res != null; + } + set + { + bool flag = value == (this._res == null); + if (flag) + { + this._res = (value ? new uint?(this.res) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "guild", DataFormat = DataFormat.TwosComplement)] + public ulong guild + { + get + { + return this._guild ?? 0UL; + } + set + { + this._guild = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildSpecified + { + get + { + return this._guild != null; + } + set + { + bool flag = value == (this._guild == null); + if (flag) + { + this._guild = (value ? new ulong?(this.guild) : null); + } + } + } + + private string _rolename; + + private string _guildname; + + private uint? _res; + + private ulong? _roleid; + + private ulong? _guild; + + private IExtension extensionObject; + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + private bool ShouldSerializeres() + { + return this.resSpecified; + } + + private void Resetres() + { + this.resSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeguild() + { + return this.guildSpecified; + } + + private void Resetguild() + { + this.guildSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRank.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRank.cs.meta new file mode 100644 index 00000000..f12a4746 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60a1ed61ec625a84ca66575389cbd79e +timeCreated: 1611403835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs new file mode 100644 index 00000000..22644c67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarRoleRankArg")] + [Serializable] + public class ResWarRoleRankArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs.meta new file mode 100644 index 00000000..602d36c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05f391959bfb178448adb70ad1428770 +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs new file mode 100644 index 00000000..130c792e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarRoleRankRes")] + [Serializable] + public class ResWarRoleRankRes : IExtensible + { + [ProtoMember(1, Name = "data", DataFormat = DataFormat.Default)] + public List data + { + get + { + return this._data; + } + } + + private readonly List _data = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs.meta new file mode 100644 index 00000000..6ff77da7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarRoleRankRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b13ecf023477a64a91201f640460bd4 +timeCreated: 1611403314 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarState.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarState.cs new file mode 100644 index 00000000..f7e6d9fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarState.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarState")] + public enum ResWarState + { + [ProtoEnum(Name = "ResWarExploreState", Value = 1)] + ResWarExploreState = 1, + [ProtoEnum(Name = "ResWarCancelState", Value = 2)] + ResWarCancelState + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarState.cs.meta new file mode 100644 index 00000000..5228c958 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd590c98e28d9e642a5dcbff6cc21231 +timeCreated: 1611404554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarStateInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarStateInfo.cs new file mode 100644 index 00000000..356de5d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarStateInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarStateInfo")] + [Serializable] + public class ResWarStateInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public ResWarState state + { + get + { + return this._state ?? ResWarState.ResWarExploreState; + } + set + { + this._state = new ResWarState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new ResWarState?(this.state) : null); + } + } + } + + private ResWarState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarStateInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarStateInfo.cs.meta new file mode 100644 index 00000000..663b53cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarStateInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3735adaa201156445bbb4bbd31df7654 +timeCreated: 1611403564 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs new file mode 100644 index 00000000..2602c314 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs @@ -0,0 +1,406 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarTeamBaseInfo")] + [Serializable] + public class ResWarTeamBaseInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lv", DataFormat = DataFormat.TwosComplement)] + public uint lv + { + get + { + return this._lv ?? 0u; + } + set + { + this._lv = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lvSpecified + { + get + { + return this._lv != null; + } + set + { + bool flag = value == (this._lv == null); + if (flag) + { + this._lv = (value ? new uint?(this.lv) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] + public uint job + { + get + { + return this._job ?? 0u; + } + set + { + this._job = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jobSpecified + { + get + { + return this._job != null; + } + set + { + bool flag = value == (this._job == null); + if (flag) + { + this._job = (value ? new uint?(this.job) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "online", DataFormat = DataFormat.Default)] + public bool online + { + get + { + return this._online ?? false; + } + set + { + this._online = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onlineSpecified + { + get + { + return this._online != null; + } + set + { + bool flag = value == (this._online == null); + if (flag) + { + this._online = (value ? new bool?(this.online) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + private uint? _teamid; + + private ulong? _uid; + + private string _name; + + private uint? _lv; + + private uint? _ppt; + + private uint? _job; + + private bool? _online; + + private ulong? _guildid; + + private string _guildname; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelv() + { + return this.lvSpecified; + } + + private void Resetlv() + { + this.lvSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializejob() + { + return this.jobSpecified; + } + + private void Resetjob() + { + this.jobSpecified = false; + } + + private bool ShouldSerializeonline() + { + return this.onlineSpecified; + } + + private void Resetonline() + { + this.onlineSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs.meta new file mode 100644 index 00000000..748918aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTeamBaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6a9afe8d3c3bab48ac6b6656af9edcd +timeCreated: 1611404526 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTime.cs new file mode 100644 index 00000000..f1d2717f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTime.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarTime")] + [Serializable] + public class ResWarTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "nTime", DataFormat = DataFormat.TwosComplement)] + public uint nTime + { + get + { + return this._nTime ?? 0u; + } + set + { + this._nTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nTimeSpecified + { + get + { + return this._nTime != null; + } + set + { + bool flag = value == (this._nTime == null); + if (flag) + { + this._nTime = (value ? new uint?(this.nTime) : null); + } + } + } + + private uint? _nTime; + + private IExtension extensionObject; + + private bool ShouldSerializenTime() + { + return this.nTimeSpecified; + } + + private void ResetnTime() + { + this.nTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTime.cs.meta new file mode 100644 index 00000000..82be1542 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58262357e12356a4d80ddc12f4d66d49 +timeCreated: 1611403753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarTimeType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTimeType.cs new file mode 100644 index 00000000..91bfc022 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTimeType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResWarTimeType")] + public enum ResWarTimeType + { + [ProtoEnum(Name = "RealyTime", Value = 1)] + RealyTime = 1, + [ProtoEnum(Name = "RaceTime", Value = 2)] + RaceTime, + [ProtoEnum(Name = "EndTime", Value = 3)] + EndTime, + [ProtoEnum(Name = "ResWarNone", Value = 4)] + ResWarNone + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResWarTimeType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTimeType.cs.meta new file mode 100644 index 00000000..c5d6f582 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResWarTimeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd4a4c9ea68dcb442a1c667b390c9428 +timeCreated: 1611404554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillArg.cs new file mode 100644 index 00000000..9491bfd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResetSkillArg")] + [Serializable] + public class ResetSkillArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "resetType", DataFormat = DataFormat.TwosComplement)] + public ResetType resetType + { + get + { + return this._resetType ?? ResetType.RESET_SKILL; + } + set + { + this._resetType = new ResetType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resetTypeSpecified + { + get + { + return this._resetType != null; + } + set + { + bool flag = value == (this._resetType == null); + if (flag) + { + this._resetType = (value ? new ResetType?(this.resetType) : null); + } + } + } + + private ResetType? _resetType; + + private IExtension extensionObject; + + private bool ShouldSerializeresetType() + { + return this.resetTypeSpecified; + } + + private void ResetresetType() + { + this.resetTypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillArg.cs.meta new file mode 100644 index 00000000..d4e60d03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1f18d11015910f42a45e23eca41f1ac +timeCreated: 1611404841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillRes.cs new file mode 100644 index 00000000..85656477 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResetSkillRes")] + [Serializable] + public class ResetSkillRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "prof", DataFormat = DataFormat.TwosComplement)] + public RoleType prof + { + get + { + return this._prof ?? RoleType.Role_INVALID; + } + set + { + this._prof = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool profSpecified + { + get + { + return this._prof != null; + } + set + { + bool flag = value == (this._prof == null); + if (flag) + { + this._prof = (value ? new RoleType?(this.prof) : null); + } + } + } + + private ErrorCode? _errorcode; + + private RoleType? _prof; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeprof() + { + return this.profSpecified; + } + + private void Resetprof() + { + this.profSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillRes.cs.meta new file mode 100644 index 00000000..b2a60440 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetSkillRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c7c6ae8db050254ba87adb2054016b2 +timeCreated: 1611403173 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerArg.cs new file mode 100644 index 00000000..d86770f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResetTowerArg")] + [Serializable] + public class ResetTowerArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hardLevel", DataFormat = DataFormat.TwosComplement)] + public int hardLevel + { + get + { + return this._hardLevel ?? 0; + } + set + { + this._hardLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hardLevelSpecified + { + get + { + return this._hardLevel != null; + } + set + { + bool flag = value == (this._hardLevel == null); + if (flag) + { + this._hardLevel = (value ? new int?(this.hardLevel) : null); + } + } + } + + private int? _hardLevel; + + private IExtension extensionObject; + + private bool ShouldSerializehardLevel() + { + return this.hardLevelSpecified; + } + + private void ResethardLevel() + { + this.hardLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerArg.cs.meta new file mode 100644 index 00000000..3dfa03aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd86cad93a2f81a49a0600251bf533ce +timeCreated: 1611404683 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerRes.cs new file mode 100644 index 00000000..3c53e6cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResetTowerRes")] + [Serializable] + public class ResetTowerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerRes.cs.meta new file mode 100644 index 00000000..b017977c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetTowerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 391c416df8cfdbb44b34fceb364f61fe +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResetType.cs new file mode 100644 index 00000000..bc1d7ea5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResetType")] + public enum ResetType + { + [ProtoEnum(Name = "RESET_SKILL", Value = 0)] + RESET_SKILL, + [ProtoEnum(Name = "RESET_PROFESSION", Value = 1)] + RESET_PROFESSION, + [ProtoEnum(Name = "RESET_GUILD_SKILL", Value = 2)] + RESET_GUILD_SKILL + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResetType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResetType.cs.meta new file mode 100644 index 00000000..720ec7e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResetType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32bc57b3acae3fe4fbaf3786e49d3fa6 +timeCreated: 1611403550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResumeItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/ResumeItem.cs new file mode 100644 index 00000000..d27429e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResumeItem.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ResumeItem")] + [Serializable] + public class ResumeItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dtime", DataFormat = DataFormat.TwosComplement)] + public uint dtime + { + get + { + return this._dtime ?? 0u; + } + set + { + this._dtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dtimeSpecified + { + get + { + return this._dtime != null; + } + set + { + bool flag = value == (this._dtime == null); + if (flag) + { + this._dtime = (value ? new uint?(this.dtime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "equip", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Item equip + { + get + { + return this._equip; + } + set + { + this._equip = value; + } + } + + private uint? _dtime; + + private Item _equip = null; + + private IExtension extensionObject; + + private bool ShouldSerializedtime() + { + return this.dtimeSpecified; + } + + private void Resetdtime() + { + this.dtimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ResumeItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ResumeItem.cs.meta new file mode 100644 index 00000000..070070dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ResumeItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e67a5f5332b4bd448e79c2613f7e863 +timeCreated: 1611403510 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs b/Client/Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs new file mode 100644 index 00000000..51075e69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RetAutoPlay")] + [Serializable] + public class RetAutoPlay : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "succ", DataFormat = DataFormat.Default)] + public bool succ + { + get + { + return this._succ ?? false; + } + set + { + this._succ = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool succSpecified + { + get + { + return this._succ != null; + } + set + { + bool flag = value == (this._succ == null); + if (flag) + { + this._succ = (value ? new bool?(this.succ) : null); + } + } + } + + private bool? _succ; + + private IExtension extensionObject; + + private bool ShouldSerializesucc() + { + return this.succSpecified; + } + + private void Resetsucc() + { + this.succSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs.meta new file mode 100644 index 00000000..601adb05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RetAutoPlay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79e7323dfa254a74daddf56312668ce6 +timeCreated: 1611403987 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneArg.cs new file mode 100644 index 00000000..a64e8a2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReturnSmeltStoneArg")] + [Serializable] + public class ReturnSmeltStoneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + private ulong? _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneArg.cs.meta new file mode 100644 index 00000000..77e4713c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad6e2faa3eac97f41b3d8d077429b62d +timeCreated: 1611404334 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneRes.cs new file mode 100644 index 00000000..3c87988a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReturnSmeltStoneRes")] + [Serializable] + public class ReturnSmeltStoneRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneRes.cs.meta new file mode 100644 index 00000000..48838a0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReturnSmeltStoneRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 742cd213398991749846ae898cd6c759 +timeCreated: 1611403942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleArg.cs new file mode 100644 index 00000000..b1dd60ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReturnToSelectRoleArg")] + [Serializable] + public class ReturnToSelectRoleArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleArg.cs.meta new file mode 100644 index 00000000..cfe4940b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e5c9dab78377aef4eafb288b4c342a1b +timeCreated: 1611404743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleRes.cs new file mode 100644 index 00000000..7de481ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleRes.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReturnToSelectRoleRes")] + [Serializable] + public class ReturnToSelectRoleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "accountData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LoadAccountData accountData + { + get + { + return this._accountData; + } + set + { + this._accountData = value; + } + } + + private LoadAccountData _accountData = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleRes.cs.meta new file mode 100644 index 00000000..61992ba3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReturnToSelectRoleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05a04e1afe64820429bf1755cc450cbd +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReviveArg.cs new file mode 100644 index 00000000..a73e3d9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveArg.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReviveArg")] + [Serializable] + public class ReviveArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "selectBuff", DataFormat = DataFormat.TwosComplement)] + public uint selectBuff + { + get + { + return this._selectBuff ?? 0u; + } + set + { + this._selectBuff = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selectBuffSpecified + { + get + { + return this._selectBuff != null; + } + set + { + bool flag = value == (this._selectBuff == null); + if (flag) + { + this._selectBuff = (value ? new uint?(this.selectBuff) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public ReviveType type + { + get + { + return this._type ?? ReviveType.ReviveNone; + } + set + { + this._type = new ReviveType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new ReviveType?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "clientinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ClientReviveInfo clientinfo + { + get + { + return this._clientinfo; + } + set + { + this._clientinfo = value; + } + } + + private uint? _selectBuff; + + private ReviveType? _type; + + private ClientReviveInfo _clientinfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeselectBuff() + { + return this.selectBuffSpecified; + } + + private void ResetselectBuff() + { + this.selectBuffSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReviveArg.cs.meta new file mode 100644 index 00000000..79fa0e0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18bc4298e4b170842b3786ad610c457c +timeCreated: 1611403298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveCountdownInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReviveCountdownInfo.cs new file mode 100644 index 00000000..d154679b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveCountdownInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReviveCountdownInfo")] + [Serializable] + public class ReviveCountdownInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "countdownTime", DataFormat = DataFormat.TwosComplement)] + public int countdownTime + { + get + { + return this._countdownTime ?? 0; + } + set + { + this._countdownTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countdownTimeSpecified + { + get + { + return this._countdownTime != null; + } + set + { + bool flag = value == (this._countdownTime == null); + if (flag) + { + this._countdownTime = (value ? new int?(this.countdownTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "revivecost", DataFormat = DataFormat.TwosComplement)] + public uint revivecost + { + get + { + return this._revivecost ?? 0u; + } + set + { + this._revivecost = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool revivecostSpecified + { + get + { + return this._revivecost != null; + } + set + { + bool flag = value == (this._revivecost == null); + if (flag) + { + this._revivecost = (value ? new uint?(this.revivecost) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "revivecosttype", DataFormat = DataFormat.TwosComplement)] + public uint revivecosttype + { + get + { + return this._revivecosttype ?? 0u; + } + set + { + this._revivecosttype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool revivecosttypeSpecified + { + get + { + return this._revivecosttype != null; + } + set + { + bool flag = value == (this._revivecosttype == null); + if (flag) + { + this._revivecosttype = (value ? new uint?(this.revivecosttype) : null); + } + } + } + + private int? _countdownTime; + + private uint? _revivecost; + + private uint? _revivecosttype; + + private IExtension extensionObject; + + private bool ShouldSerializecountdownTime() + { + return this.countdownTimeSpecified; + } + + private void ResetcountdownTime() + { + this.countdownTimeSpecified = false; + } + + private bool ShouldSerializerevivecost() + { + return this.revivecostSpecified; + } + + private void Resetrevivecost() + { + this.revivecostSpecified = false; + } + + private bool ShouldSerializerevivecosttype() + { + return this.revivecosttypeSpecified; + } + + private void Resetrevivecosttype() + { + this.revivecosttypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveCountdownInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReviveCountdownInfo.cs.meta new file mode 100644 index 00000000..892cdaf6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveCountdownInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c47cc2f65c0c8054c9c06a5077ad35db +timeCreated: 1611404502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs new file mode 100644 index 00000000..bd940b2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReviveInfo")] + [Serializable] + public class ReviveInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, Name = "bufflist", DataFormat = DataFormat.TwosComplement)] + public List bufflist + { + get + { + return this._bufflist; + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public ReviveType type + { + get + { + return this._type ?? ReviveType.ReviveNone; + } + set + { + this._type = new ReviveType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new ReviveType?(this.type) : null); + } + } + } + + private ulong? _roleID; + + private readonly List _bufflist = new List(); + + private ReviveType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs.meta new file mode 100644 index 00000000..9d4ef140 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c3a2d1eba597464c815ef000f4619fe +timeCreated: 1611403172 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReviveRes.cs new file mode 100644 index 00000000..f9afc9df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReviveRes")] + [Serializable] + public class ReviveRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "bufflist", DataFormat = DataFormat.TwosComplement)] + public List bufflist + { + get + { + return this._bufflist; + } + } + + private ErrorCode? _result; + + private readonly List _bufflist = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReviveRes.cs.meta new file mode 100644 index 00000000..a726dad1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ca745ca0a1cc8543a8e11c3062f845e +timeCreated: 1611403692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveType.cs b/Client/Assets/Scripts/XMainClient/KKSG/ReviveType.cs new file mode 100644 index 00000000..5596cefd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveType.cs @@ -0,0 +1,24 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ReviveType")] + public enum ReviveType + { + [ProtoEnum(Name = "ReviveNone", Value = 0)] + ReviveNone, + [ProtoEnum(Name = "ReviveFree", Value = 1)] + ReviveFree, + [ProtoEnum(Name = "ReviveItem", Value = 2)] + ReviveItem, + [ProtoEnum(Name = "ReviveMoney", Value = 3)] + ReviveMoney, + [ProtoEnum(Name = "ReviveSprite", Value = 4)] + ReviveSprite, + [ProtoEnum(Name = "ReviveVIP", Value = 5)] + ReviveVIP, + [ProtoEnum(Name = "ReviveMax", Value = 6)] + ReviveMax + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ReviveType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ReviveType.cs.meta new file mode 100644 index 00000000..39f05a6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ReviveType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ed3d19e97fcd3942b67117bac028f9c +timeCreated: 1611404243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RewardChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/RewardChanged.cs new file mode 100644 index 00000000..ff37b5d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RewardChanged.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RewardChanged")] + [Serializable] + public class RewardChanged : IExtensible + { + [ProtoMember(1, Name = "AddedRewardInfo", DataFormat = DataFormat.Default)] + public List AddedRewardInfo + { + get + { + return this._AddedRewardInfo; + } + } + + [ProtoMember(2, Name = "RemovedRewardUniqueId", DataFormat = DataFormat.TwosComplement)] + public List RemovedRewardUniqueId + { + get + { + return this._RemovedRewardUniqueId; + } + } + + private readonly List _AddedRewardInfo = new List(); + + private readonly List _RemovedRewardUniqueId = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RewardChanged.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RewardChanged.cs.meta new file mode 100644 index 00000000..7695d401 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RewardChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f3563db828e190448539695469a7598 +timeCreated: 1611404244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RewardInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RewardInfo.cs new file mode 100644 index 00000000..6c508125 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RewardInfo.cs @@ -0,0 +1,429 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RewardInfo")] + [Serializable] + public class RewardInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "UniqueId", DataFormat = DataFormat.TwosComplement)] + public ulong UniqueId + { + get + { + return this._UniqueId ?? 0UL; + } + set + { + this._UniqueId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool UniqueIdSpecified + { + get + { + return this._UniqueId != null; + } + set + { + bool flag = value == (this._UniqueId == null); + if (flag) + { + this._UniqueId = (value ? new ulong?(this.UniqueId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "Type", DataFormat = DataFormat.TwosComplement)] + public uint Type + { + get + { + return this._Type ?? 0u; + } + set + { + this._Type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TypeSpecified + { + get + { + return this._Type != null; + } + set + { + bool flag = value == (this._Type == null); + if (flag) + { + this._Type = (value ? new uint?(this.Type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "SubType", DataFormat = DataFormat.TwosComplement)] + public uint SubType + { + get + { + return this._SubType ?? 0u; + } + set + { + this._SubType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SubTypeSpecified + { + get + { + return this._SubType != null; + } + set + { + bool flag = value == (this._SubType == null); + if (flag) + { + this._SubType = (value ? new uint?(this.SubType) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "State", DataFormat = DataFormat.TwosComplement)] + public uint State + { + get + { + return this._State ?? 0u; + } + set + { + this._State = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool StateSpecified + { + get + { + return this._State != null; + } + set + { + bool flag = value == (this._State == null); + if (flag) + { + this._State = (value ? new uint?(this.State) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "TimeStamp", DataFormat = DataFormat.TwosComplement)] + public uint TimeStamp + { + get + { + return this._TimeStamp ?? 0u; + } + set + { + this._TimeStamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TimeStampSpecified + { + get + { + return this._TimeStamp != null; + } + set + { + bool flag = value == (this._TimeStamp == null); + if (flag) + { + this._TimeStamp = (value ? new uint?(this.TimeStamp) : null); + } + } + } + + [ProtoMember(6, Name = "Param", DataFormat = DataFormat.Default)] + public List Param + { + get + { + return this._Param; + } + } + + [ProtoMember(7, Name = "Item", DataFormat = DataFormat.Default)] + public List Item + { + get + { + return this._Item; + } + } + + [ProtoMember(8, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "comment", DataFormat = DataFormat.Default)] + public string comment + { + get + { + return this._comment ?? ""; + } + set + { + this._comment = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool commentSpecified + { + get + { + return this._comment != null; + } + set + { + bool flag = value == (this._comment == null); + if (flag) + { + this._comment = (value ? this.comment : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "uniqueday", DataFormat = DataFormat.TwosComplement)] + public uint uniqueday + { + get + { + return this._uniqueday ?? 0u; + } + set + { + this._uniqueday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uniquedaySpecified + { + get + { + return this._uniqueday != null; + } + set + { + bool flag = value == (this._uniqueday == null); + if (flag) + { + this._uniqueday = (value ? new uint?(this.uniqueday) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "isget", DataFormat = DataFormat.Default)] + public bool isget + { + get + { + return this._isget ?? false; + } + set + { + this._isget = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isgetSpecified + { + get + { + return this._isget != null; + } + set + { + bool flag = value == (this._isget == null); + if (flag) + { + this._isget = (value ? new bool?(this.isget) : null); + } + } + } + + private ulong? _UniqueId; + + private uint? _Type; + + private uint? _SubType; + + private uint? _State; + + private uint? _TimeStamp; + + private readonly List _Param = new List(); + + private readonly List _Item = new List(); + + private string _name; + + private string _comment; + + private uint? _uniqueday; + + private bool? _isget; + + private IExtension extensionObject; + + private bool ShouldSerializeUniqueId() + { + return this.UniqueIdSpecified; + } + + private void ResetUniqueId() + { + this.UniqueIdSpecified = false; + } + + private bool ShouldSerializeType() + { + return this.TypeSpecified; + } + + private void ResetType() + { + this.TypeSpecified = false; + } + + private bool ShouldSerializeSubType() + { + return this.SubTypeSpecified; + } + + private void ResetSubType() + { + this.SubTypeSpecified = false; + } + + private bool ShouldSerializeState() + { + return this.StateSpecified; + } + + private void ResetState() + { + this.StateSpecified = false; + } + + private bool ShouldSerializeTimeStamp() + { + return this.TimeStampSpecified; + } + + private void ResetTimeStamp() + { + this.TimeStampSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializecomment() + { + return this.commentSpecified; + } + + private void Resetcomment() + { + this.commentSpecified = false; + } + + private bool ShouldSerializeuniqueday() + { + return this.uniquedaySpecified; + } + + private void Resetuniqueday() + { + this.uniquedaySpecified = false; + } + + private bool ShouldSerializeisget() + { + return this.isgetSpecified; + } + + private void Resetisget() + { + this.isgetSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RewardInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RewardInfo.cs.meta new file mode 100644 index 00000000..e9cfc4dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RewardInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: beb8b5b7cbe372441b82a11c42c4bd81 +timeCreated: 1611404481 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RewardRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/RewardRecord.cs new file mode 100644 index 00000000..23a5e000 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RewardRecord.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RewardRecord")] + [Serializable] + public class RewardRecord : IExtensible + { + [ProtoMember(1, Name = "RewardInfo", DataFormat = DataFormat.Default)] + public List RewardInfo + { + get + { + return this._RewardInfo; + } + } + + [ProtoMember(2, IsRequired = false, Name = "given", DataFormat = DataFormat.Default)] + public byte[] given + { + get + { + return this._given ?? null; + } + set + { + this._given = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool givenSpecified + { + get + { + return this._given != null; + } + set + { + bool flag = value == (this._given == null); + if (flag) + { + this._given = (value ? this.given : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "taken", DataFormat = DataFormat.Default)] + public byte[] taken + { + get + { + return this._taken ?? null; + } + set + { + this._taken = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool takenSpecified + { + get + { + return this._taken != null; + } + set + { + bool flag = value == (this._taken == null); + if (flag) + { + this._taken = (value ? this.taken : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "nextdayreward", DataFormat = DataFormat.TwosComplement)] + public uint nextdayreward + { + get + { + return this._nextdayreward ?? 0u; + } + set + { + this._nextdayreward = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nextdayrewardSpecified + { + get + { + return this._nextdayreward != null; + } + set + { + bool flag = value == (this._nextdayreward == null); + if (flag) + { + this._nextdayreward = (value ? new uint?(this.nextdayreward) : null); + } + } + } + + [ProtoMember(5, Name = "onlinereward", DataFormat = DataFormat.TwosComplement)] + public List onlinereward + { + get + { + return this._onlinereward; + } + } + + private readonly List _RewardInfo = new List(); + + private byte[] _given; + + private byte[] _taken; + + private uint? _nextdayreward; + + private readonly List _onlinereward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializegiven() + { + return this.givenSpecified; + } + + private void Resetgiven() + { + this.givenSpecified = false; + } + + private bool ShouldSerializetaken() + { + return this.takenSpecified; + } + + private void Resettaken() + { + this.takenSpecified = false; + } + + private bool ShouldSerializenextdayreward() + { + return this.nextdayrewardSpecified; + } + + private void Resetnextdayreward() + { + this.nextdayrewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RewardRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RewardRecord.cs.meta new file mode 100644 index 00000000..b7d2b399 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RewardRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 930b81ae30e839f4ab95e8fc2477aed6 +timeCreated: 1611404149 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RewardStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/RewardStatus.cs new file mode 100644 index 00000000..027c119b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RewardStatus.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RewardStatus")] + public enum RewardStatus + { + [ProtoEnum(Name = "REWARD_STATUS_CANNOT", Value = 0)] + REWARD_STATUS_CANNOT, + [ProtoEnum(Name = "REWARD_STATUS_CAN", Value = 1)] + REWARD_STATUS_CAN, + [ProtoEnum(Name = "REWARD_STATUS_GOT", Value = 2)] + REWARD_STATUS_GOT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RewardStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RewardStatus.cs.meta new file mode 100644 index 00000000..b65926c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RewardStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d92152ab67ab8142822e879c6197731 +timeCreated: 1611403356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs new file mode 100644 index 00000000..de82e592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftEachFloorInfo")] + [Serializable] + public class RiftEachFloorInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public int floor + { + get + { + return this._floor ?? 0; + } + set + { + this._floor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new int?(this.floor) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "status", DataFormat = DataFormat.TwosComplement)] + public RiftFloorStatus status + { + get + { + return this._status ?? RiftFloorStatus.RiftFloor_NotPass; + } + set + { + this._status = new RiftFloorStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statusSpecified + { + get + { + return this._status != null; + } + set + { + bool flag = value == (this._status == null); + if (flag) + { + this._status = (value ? new RiftFloorStatus?(this.status) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public int sceneID + { + get + { + return this._sceneID ?? 0; + } + set + { + this._sceneID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new int?(this.sceneID) : null); + } + } + } + + private int? _floor; + + private RiftFloorStatus? _status; + + private int? _sceneID; + + private IExtension extensionObject; + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + private bool ShouldSerializestatus() + { + return this.statusSpecified; + } + + private void Resetstatus() + { + this.statusSpecified = false; + } + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs.meta new file mode 100644 index 00000000..39c6d91e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftEachFloorInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 995e454e5371a254ea48fc4ecc7b6314 +timeCreated: 1611404195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassOpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassOpType.cs new file mode 100644 index 00000000..5e8eb931 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassOpType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftFirstPassOpType")] + public enum RiftFirstPassOpType + { + [ProtoEnum(Name = "Rift_FirstPass_Op_GetInfo", Value = 1)] + Rift_FirstPass_Op_GetInfo = 1, + [ProtoEnum(Name = "Rift_FirstPass_Op_GetReward", Value = 2)] + Rift_FirstPass_Op_GetReward + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassOpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassOpType.cs.meta new file mode 100644 index 00000000..fdf85506 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e6122e4d78305f4a8b7532f29bf24d0 +timeCreated: 1611404241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardArg.cs new file mode 100644 index 00000000..9c27974e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftFirstPassRewardArg")] + [Serializable] + public class RiftFirstPassRewardArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "opType", DataFormat = DataFormat.TwosComplement)] + public RiftFirstPassOpType opType + { + get + { + return this._opType ?? RiftFirstPassOpType.Rift_FirstPass_Op_GetInfo; + } + set + { + this._opType = new RiftFirstPassOpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opTypeSpecified + { + get + { + return this._opType != null; + } + set + { + bool flag = value == (this._opType == null); + if (flag) + { + this._opType = (value ? new RiftFirstPassOpType?(this.opType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public uint floor + { + get + { + return this._floor ?? 0u; + } + set + { + this._floor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new uint?(this.floor) : null); + } + } + } + + private RiftFirstPassOpType? _opType; + + private uint? _floor; + + private IExtension extensionObject; + + private bool ShouldSerializeopType() + { + return this.opTypeSpecified; + } + + private void ResetopType() + { + this.opTypeSpecified = false; + } + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardArg.cs.meta new file mode 100644 index 00000000..32f746fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b207510436f577d4da398f8441a9570e +timeCreated: 1611404357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardRes.cs new file mode 100644 index 00000000..6584d29e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftFirstPassRewardRes")] + [Serializable] + public class RiftFirstPassRewardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "floorInfos", DataFormat = DataFormat.Default)] + public List floorInfos + { + get + { + return this._floorInfos; + } + } + + private ErrorCode? _error; + + private readonly List _floorInfos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardRes.cs.meta new file mode 100644 index 00000000..5b9f1ceb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftFirstPassRewardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 068394c765310d24b83d4b9ab90f2027 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftFloorStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftFloorStatus.cs new file mode 100644 index 00000000..e74d5850 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftFloorStatus.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftFloorStatus")] + public enum RiftFloorStatus + { + [ProtoEnum(Name = "RiftFloor_NotPass", Value = 1)] + RiftFloor_NotPass = 1, + [ProtoEnum(Name = "RiftFloor_CanGetReward", Value = 2)] + RiftFloor_CanGetReward, + [ProtoEnum(Name = "RiftFloor_GotReward", Value = 3)] + RiftFloor_GotReward, + [ProtoEnum(Name = "RiftFloor_Complete", Value = 4)] + RiftFloor_Complete, + [ProtoEnum(Name = "RiftFloor_Max", Value = 5)] + RiftFloor_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftFloorStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftFloorStatus.cs.meta new file mode 100644 index 00000000..ddc36858 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftFloorStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3a097b1b68a3e34aad6f9b735d6f8d1 +timeCreated: 1611404849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs new file mode 100644 index 00000000..44e4fedc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftGuildRankInfo")] + [Serializable] + public class RiftGuildRankInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBriefInfo roleInfo + { + get + { + return this._roleInfo; + } + set + { + this._roleInfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "riftFloor", DataFormat = DataFormat.TwosComplement)] + public int riftFloor + { + get + { + return this._riftFloor ?? 0; + } + set + { + this._riftFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftFloorSpecified + { + get + { + return this._riftFloor != null; + } + set + { + bool flag = value == (this._riftFloor == null); + if (flag) + { + this._riftFloor = (value ? new int?(this.riftFloor) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "riftStar", DataFormat = DataFormat.TwosComplement)] + public int riftStar + { + get + { + return this._riftStar ?? 0; + } + set + { + this._riftStar = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftStarSpecified + { + get + { + return this._riftStar != null; + } + set + { + bool flag = value == (this._riftStar == null); + if (flag) + { + this._riftStar = (value ? new int?(this.riftStar) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "costTime", DataFormat = DataFormat.TwosComplement)] + public int costTime + { + get + { + return this._costTime ?? 0; + } + set + { + this._costTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costTimeSpecified + { + get + { + return this._costTime != null; + } + set + { + bool flag = value == (this._costTime == null); + if (flag) + { + this._costTime = (value ? new int?(this.costTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public int sceneID + { + get + { + return this._sceneID ?? 0; + } + set + { + this._sceneID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new int?(this.sceneID) : null); + } + } + } + + private RoleBriefInfo _roleInfo = null; + + private int? _riftFloor; + + private int? _riftStar; + + private int? _costTime; + + private int? _sceneID; + + private IExtension extensionObject; + + private bool ShouldSerializeriftFloor() + { + return this.riftFloorSpecified; + } + + private void ResetriftFloor() + { + this.riftFloorSpecified = false; + } + + private bool ShouldSerializeriftStar() + { + return this.riftStarSpecified; + } + + private void ResetriftStar() + { + this.riftStarSpecified = false; + } + + private bool ShouldSerializecostTime() + { + return this.costTimeSpecified; + } + + private void ResetcostTime() + { + this.costTimeSpecified = false; + } + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs.meta new file mode 100644 index 00000000..86536463 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftGuildRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9fc30aa9fe2908043ae56dac6b271211 +timeCreated: 1611404246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs new file mode 100644 index 00000000..79e1685a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftRankData")] + [Serializable] + public class RiftRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "riftFloor", DataFormat = DataFormat.TwosComplement)] + public uint riftFloor + { + get + { + return this._riftFloor ?? 0u; + } + set + { + this._riftFloor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftFloorSpecified + { + get + { + return this._riftFloor != null; + } + set + { + bool flag = value == (this._riftFloor == null); + if (flag) + { + this._riftFloor = (value ? new uint?(this.riftFloor) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "passTime", DataFormat = DataFormat.TwosComplement)] + public uint passTime + { + get + { + return this._passTime ?? 0u; + } + set + { + this._passTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passTimeSpecified + { + get + { + return this._passTime != null; + } + set + { + bool flag = value == (this._passTime == null); + if (flag) + { + this._passTime = (value ? new uint?(this.passTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public uint updateTime + { + get + { + return this._updateTime ?? 0u; + } + set + { + this._updateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new uint?(this.updateTime) : null); + } + } + } + + private uint? _riftFloor; + + private uint? _passTime; + + private uint? _ppt; + + private uint? _updateTime; + + private IExtension extensionObject; + + private bool ShouldSerializeriftFloor() + { + return this.riftFloorSpecified; + } + + private void ResetriftFloor() + { + this.riftFloorSpecified = false; + } + + private bool ShouldSerializepassTime() + { + return this.passTimeSpecified; + } + + private void ResetpassTime() + { + this.passTimeSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs.meta new file mode 100644 index 00000000..4e3114e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab8d720f9d8dc2f4bbc6f0d22302ce3d +timeCreated: 1611404307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftRecord2Db.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftRecord2Db.cs new file mode 100644 index 00000000..805f512c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftRecord2Db.cs @@ -0,0 +1,268 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftRecord2Db")] + [Serializable] + public class RiftRecord2Db : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "riftID", DataFormat = DataFormat.TwosComplement)] + public uint riftID + { + get + { + return this._riftID ?? 0u; + } + set + { + this._riftID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftIDSpecified + { + get + { + return this._riftID != null; + } + set + { + bool flag = value == (this._riftID == null); + if (flag) + { + this._riftID = (value ? new uint?(this.riftID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public uint updateTime + { + get + { + return this._updateTime ?? 0u; + } + set + { + this._updateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new uint?(this.updateTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "passFloor", DataFormat = DataFormat.TwosComplement)] + public uint passFloor + { + get + { + return this._passFloor ?? 0u; + } + set + { + this._passFloor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passFloorSpecified + { + get + { + return this._passFloor != null; + } + set + { + bool flag = value == (this._passFloor == null); + if (flag) + { + this._passFloor = (value ? new uint?(this.passFloor) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "helpSuccessCount", DataFormat = DataFormat.TwosComplement)] + public uint helpSuccessCount + { + get + { + return this._helpSuccessCount ?? 0u; + } + set + { + this._helpSuccessCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool helpSuccessCountSpecified + { + get + { + return this._helpSuccessCount != null; + } + set + { + bool flag = value == (this._helpSuccessCount == null); + if (flag) + { + this._helpSuccessCount = (value ? new uint?(this.helpSuccessCount) : null); + } + } + } + + [ProtoMember(5, Name = "gotWeekFirstPassReward", DataFormat = DataFormat.TwosComplement)] + public List gotWeekFirstPassReward + { + get + { + return this._gotWeekFirstPassReward; + } + } + + [ProtoMember(6, Name = "gotItems", DataFormat = DataFormat.Default)] + public List gotItems + { + get + { + return this._gotItems; + } + } + + [ProtoMember(7, IsRequired = false, Name = "thisWeekStartFloor", DataFormat = DataFormat.TwosComplement)] + public uint thisWeekStartFloor + { + get + { + return this._thisWeekStartFloor ?? 0u; + } + set + { + this._thisWeekStartFloor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool thisWeekStartFloorSpecified + { + get + { + return this._thisWeekStartFloor != null; + } + set + { + bool flag = value == (this._thisWeekStartFloor == null); + if (flag) + { + this._thisWeekStartFloor = (value ? new uint?(this.thisWeekStartFloor) : null); + } + } + } + + [ProtoMember(8, Name = "hisMaxFloor", DataFormat = DataFormat.Default)] + public List hisMaxFloor + { + get + { + return this._hisMaxFloor; + } + } + + private uint? _riftID; + + private uint? _updateTime; + + private uint? _passFloor; + + private uint? _helpSuccessCount; + + private readonly List _gotWeekFirstPassReward = new List(); + + private readonly List _gotItems = new List(); + + private uint? _thisWeekStartFloor; + + private readonly List _hisMaxFloor = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeriftID() + { + return this.riftIDSpecified; + } + + private void ResetriftID() + { + this.riftIDSpecified = false; + } + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + private bool ShouldSerializepassFloor() + { + return this.passFloorSpecified; + } + + private void ResetpassFloor() + { + this.passFloorSpecified = false; + } + + private bool ShouldSerializehelpSuccessCount() + { + return this.helpSuccessCountSpecified; + } + + private void ResethelpSuccessCount() + { + this.helpSuccessCountSpecified = false; + } + + private bool ShouldSerializethisWeekStartFloor() + { + return this.thisWeekStartFloorSpecified; + } + + private void ResetthisWeekStartFloor() + { + this.thisWeekStartFloorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftRecord2Db.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftRecord2Db.cs.meta new file mode 100644 index 00000000..156a4f71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftRecord2Db.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ef6e890560eb304abe2280fe9cfd792 +timeCreated: 1611403207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftResult.cs new file mode 100644 index 00000000..94adca83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftResult.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftResult")] + [Serializable] + public class RiftResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isNewRecord", DataFormat = DataFormat.Default)] + public bool isNewRecord + { + get + { + return this._isNewRecord ?? false; + } + set + { + this._isNewRecord = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isNewRecordSpecified + { + get + { + return this._isNewRecord != null; + } + set + { + bool flag = value == (this._isNewRecord == null); + if (flag) + { + this._isNewRecord = (value ? new bool?(this.isNewRecord) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "riftFloor", DataFormat = DataFormat.TwosComplement)] + public uint riftFloor + { + get + { + return this._riftFloor ?? 0u; + } + set + { + this._riftFloor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftFloorSpecified + { + get + { + return this._riftFloor != null; + } + set + { + bool flag = value == (this._riftFloor == null); + if (flag) + { + this._riftFloor = (value ? new uint?(this.riftFloor) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "riftItemFlag", DataFormat = DataFormat.TwosComplement)] + public uint riftItemFlag + { + get + { + return this._riftItemFlag ?? 0u; + } + set + { + this._riftItemFlag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftItemFlagSpecified + { + get + { + return this._riftItemFlag != null; + } + set + { + bool flag = value == (this._riftItemFlag == null); + if (flag) + { + this._riftItemFlag = (value ? new uint?(this.riftItemFlag) : null); + } + } + } + + private bool? _isNewRecord; + + private uint? _riftFloor; + + private uint? _riftItemFlag; + + private IExtension extensionObject; + + private bool ShouldSerializeisNewRecord() + { + return this.isNewRecordSpecified; + } + + private void ResetisNewRecord() + { + this.isNewRecordSpecified = false; + } + + private bool ShouldSerializeriftFloor() + { + return this.riftFloorSpecified; + } + + private void ResetriftFloor() + { + this.riftFloorSpecified = false; + } + + private bool ShouldSerializeriftItemFlag() + { + return this.riftItemFlagSpecified; + } + + private void ResetriftItemFlag() + { + this.riftItemFlagSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftResult.cs.meta new file mode 100644 index 00000000..58c75758 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4c2b0ca56806c249bb0eeb4cbfeaff9 +timeCreated: 1611404604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftSceneInfoNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiftSceneInfoNtfData.cs new file mode 100644 index 00000000..c3fa6e64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftSceneInfoNtfData.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiftSceneInfoNtfData")] + [Serializable] + public class RiftSceneInfoNtfData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public int floor + { + get + { + return this._floor ?? 0; + } + set + { + this._floor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new int?(this.floor) : null); + } + } + } + + [ProtoMember(2, Name = "buffIDs", DataFormat = DataFormat.Default)] + public List buffIDs + { + get + { + return this._buffIDs; + } + } + + private int? _floor; + + private readonly List _buffIDs = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiftSceneInfoNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiftSceneInfoNtfData.cs.meta new file mode 100644 index 00000000..d5bd90a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiftSceneInfoNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ab10a22e300c6f46917eca069102226 +timeCreated: 1611403665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs new file mode 100644 index 00000000..a2b49a0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskBoxInfo")] + [Serializable] + public class RiskBoxInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public RiskBoxState state + { + get + { + return this._state ?? RiskBoxState.RISK_BOX_LOCKED; + } + set + { + this._state = new RiskBoxState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new RiskBoxState?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public int leftTime + { + get + { + return this._leftTime ?? 0; + } + set + { + this._leftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new int?(this.leftTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "item", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief item + { + get + { + return this._item; + } + set + { + this._item = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "beginTime", DataFormat = DataFormat.TwosComplement)] + public int beginTime + { + get + { + return this._beginTime ?? 0; + } + set + { + this._beginTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool beginTimeSpecified + { + get + { + return this._beginTime != null; + } + set + { + bool flag = value == (this._beginTime == null); + if (flag) + { + this._beginTime = (value ? new int?(this.beginTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public int slot + { + get + { + return this._slot ?? 0; + } + set + { + this._slot = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new int?(this.slot) : null); + } + } + } + + private RiskBoxState? _state; + + private int? _leftTime; + + private ItemBrief _item = null; + + private int? _beginTime; + + private int? _slot; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + private bool ShouldSerializebeginTime() + { + return this.beginTimeSpecified; + } + + private void ResetbeginTime() + { + this.beginTimeSpecified = false; + } + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs.meta new file mode 100644 index 00000000..bd849847 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee6a1291a9c265b4c81574478b984728 +timeCreated: 1611404797 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxState.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxState.cs new file mode 100644 index 00000000..34bfb568 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxState.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskBoxState")] + public enum RiskBoxState + { + [ProtoEnum(Name = "RISK_BOX_LOCKED", Value = 1)] + RISK_BOX_LOCKED = 1, + [ProtoEnum(Name = "RISK_BOX_UNLOCKED", Value = 2)] + RISK_BOX_UNLOCKED, + [ProtoEnum(Name = "RISK_BOX_CANGETREWARD", Value = 3)] + RISK_BOX_CANGETREWARD, + [ProtoEnum(Name = "RISK_BOX_GETREWARD", Value = 4)] + RISK_BOX_GETREWARD, + [ProtoEnum(Name = "RISK_BOX_DELETE", Value = 5)] + RISK_BOX_DELETE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxState.cs.meta new file mode 100644 index 00000000..8f363adb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBoxState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 945a80d727bfd714caa9a54f61d1db3b +timeCreated: 1611404154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs new file mode 100644 index 00000000..2a5a004d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskBuyData")] + [Serializable] + public class RiskBuyData : IExtensible + { + [ProtoMember(1, Name = "rewardItems", DataFormat = DataFormat.Default)] + public List rewardItems + { + get + { + return this._rewardItems; + } + } + + [ProtoMember(2, IsRequired = false, Name = "cost", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief cost + { + get + { + return this._cost; + } + set + { + this._cost = value; + } + } + + private readonly List _rewardItems = new List(); + + private ItemBrief _cost = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs.meta new file mode 100644 index 00000000..0b81b0d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd935f1b82a0a7846a96cd4fbd4059d2 +timeCreated: 1611404556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs new file mode 100644 index 00000000..cd07b29b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskBuyRequestArg")] + [Serializable] + public class RiskBuyRequestArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs.meta new file mode 100644 index 00000000..779892a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b91b9e603b1d694888186009acc5101 +timeCreated: 1611404206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs new file mode 100644 index 00000000..262ae1a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskBuyRequestRes")] + [Serializable] + public class RiskBuyRequestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs.meta new file mode 100644 index 00000000..a76671a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskBuyRequestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d9351d21d0e8b144a924f3a6d71ede7 +timeCreated: 1611403356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskGridInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskGridInfo.cs new file mode 100644 index 00000000..802f1010 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskGridInfo.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskGridInfo")] + [Serializable] + public class RiskGridInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "x", DataFormat = DataFormat.TwosComplement)] + public int x + { + get + { + return this._x ?? 0; + } + set + { + this._x = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool xSpecified + { + get + { + return this._x != null; + } + set + { + bool flag = value == (this._x == null); + if (flag) + { + this._x = (value ? new int?(this.x) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "y", DataFormat = DataFormat.TwosComplement)] + public int y + { + get + { + return this._y ?? 0; + } + set + { + this._y = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ySpecified + { + get + { + return this._y != null; + } + set + { + bool flag = value == (this._y == null); + if (flag) + { + this._y = (value ? new int?(this.y) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "gridType", DataFormat = DataFormat.TwosComplement)] + public RiskGridType gridType + { + get + { + return this._gridType ?? RiskGridType.RISK_GRID_EMPTY; + } + set + { + this._gridType = new RiskGridType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gridTypeSpecified + { + get + { + return this._gridType != null; + } + set + { + bool flag = value == (this._gridType == null); + if (flag) + { + this._gridType = (value ? new RiskGridType?(this.gridType) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rewardItem", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief rewardItem + { + get + { + return this._rewardItem; + } + set + { + this._rewardItem = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "boxState", DataFormat = DataFormat.TwosComplement)] + public RiskBoxState boxState + { + get + { + return this._boxState ?? RiskBoxState.RISK_BOX_LOCKED; + } + set + { + this._boxState = new RiskBoxState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool boxStateSpecified + { + get + { + return this._boxState != null; + } + set + { + bool flag = value == (this._boxState == null); + if (flag) + { + this._boxState = (value ? new RiskBoxState?(this.boxState) : null); + } + } + } + + private int? _x; + + private int? _y; + + private RiskGridType? _gridType; + + private ItemBrief _rewardItem = null; + + private RiskBoxState? _boxState; + + private IExtension extensionObject; + + private bool ShouldSerializex() + { + return this.xSpecified; + } + + private void Resetx() + { + this.xSpecified = false; + } + + private bool ShouldSerializey() + { + return this.ySpecified; + } + + private void Resety() + { + this.ySpecified = false; + } + + private bool ShouldSerializegridType() + { + return this.gridTypeSpecified; + } + + private void ResetgridType() + { + this.gridTypeSpecified = false; + } + + private bool ShouldSerializeboxState() + { + return this.boxStateSpecified; + } + + private void ResetboxState() + { + this.boxStateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskGridInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskGridInfo.cs.meta new file mode 100644 index 00000000..20dfbdb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskGridInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa2dbb362096d2a4eacaa61016bf2004 +timeCreated: 1611404902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskGridType.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskGridType.cs new file mode 100644 index 00000000..778e5068 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskGridType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskGridType")] + public enum RiskGridType + { + [ProtoEnum(Name = "RISK_GRID_EMPTY", Value = 1)] + RISK_GRID_EMPTY = 1, + [ProtoEnum(Name = "RISK_GRID_NORMALREWARD", Value = 2)] + RISK_GRID_NORMALREWARD, + [ProtoEnum(Name = "RISK_GRID_REWARDBOX", Value = 3)] + RISK_GRID_REWARDBOX, + [ProtoEnum(Name = "RISK_GRID_ADVENTURE", Value = 4)] + RISK_GRID_ADVENTURE, + [ProtoEnum(Name = "RISK_GRID_DICE", Value = 5)] + RISK_GRID_DICE, + [ProtoEnum(Name = "RISK_GRID_MAX", Value = 6)] + RISK_GRID_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskGridType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskGridType.cs.meta new file mode 100644 index 00000000..9c82bb76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskGridType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d82a5d595dc790498bd28fdb406153d +timeCreated: 1611404001 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs new file mode 100644 index 00000000..465625e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs @@ -0,0 +1,180 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskInfo2DB")] + [Serializable] + public class RiskInfo2DB : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "infos", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RiskMapInfos infos + { + get + { + return this._infos; + } + set + { + this._infos = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "updatetime", DataFormat = DataFormat.TwosComplement)] + public int updatetime + { + get + { + return this._updatetime ?? 0; + } + set + { + this._updatetime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatetimeSpecified + { + get + { + return this._updatetime != null; + } + set + { + bool flag = value == (this._updatetime == null); + if (flag) + { + this._updatetime = (value ? new int?(this.updatetime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "getDiceTime", DataFormat = DataFormat.TwosComplement)] + public int getDiceTime + { + get + { + return this._getDiceTime ?? 0; + } + set + { + this._getDiceTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getDiceTimeSpecified + { + get + { + return this._getDiceTime != null; + } + set + { + bool flag = value == (this._getDiceTime == null); + if (flag) + { + this._getDiceTime = (value ? new int?(this.getDiceTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "getDiceNum", DataFormat = DataFormat.TwosComplement)] + public int getDiceNum + { + get + { + return this._getDiceNum ?? 0; + } + set + { + this._getDiceNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getDiceNumSpecified + { + get + { + return this._getDiceNum != null; + } + set + { + bool flag = value == (this._getDiceNum == null); + if (flag) + { + this._getDiceNum = (value ? new int?(this.getDiceNum) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "riskInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleRiskInfo riskInfo + { + get + { + return this._riskInfo; + } + set + { + this._riskInfo = value; + } + } + + private RiskMapInfos _infos = null; + + private int? _updatetime; + + private int? _getDiceTime; + + private int? _getDiceNum; + + private RoleRiskInfo _riskInfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeupdatetime() + { + return this.updatetimeSpecified; + } + + private void Resetupdatetime() + { + this.updatetimeSpecified = false; + } + + private bool ShouldSerializegetDiceTime() + { + return this.getDiceTimeSpecified; + } + + private void ResetgetDiceTime() + { + this.getDiceTimeSpecified = false; + } + + private bool ShouldSerializegetDiceNum() + { + return this.getDiceNumSpecified; + } + + private void ResetgetDiceNum() + { + this.getDiceNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs.meta new file mode 100644 index 00000000..b302b31a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskInfo2DB.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8e429aa60774ef48aba946d0a6fbfe1 +timeCreated: 1611404754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskMapInfos.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskMapInfos.cs new file mode 100644 index 00000000..b604856e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskMapInfos.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskMapInfos")] + [Serializable] + public class RiskMapInfos : IExtensible + { + [ProtoMember(1, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + [ProtoMember(2, IsRequired = false, Name = "diceNum", DataFormat = DataFormat.TwosComplement)] + public int diceNum + { + get + { + return this._diceNum ?? 0; + } + set + { + this._diceNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool diceNumSpecified + { + get + { + return this._diceNum != null; + } + set + { + bool flag = value == (this._diceNum == null); + if (flag) + { + this._diceNum = (value ? new int?(this.diceNum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "leftDiceTime", DataFormat = DataFormat.TwosComplement)] + public int leftDiceTime + { + get + { + return this._leftDiceTime ?? 0; + } + set + { + this._leftDiceTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftDiceTimeSpecified + { + get + { + return this._leftDiceTime != null; + } + set + { + bool flag = value == (this._leftDiceTime == null); + if (flag) + { + this._leftDiceTime = (value ? new int?(this.leftDiceTime) : null); + } + } + } + + [ProtoMember(4, Name = "boxInfos", DataFormat = DataFormat.Default)] + public List boxInfos + { + get + { + return this._boxInfos; + } + } + + private readonly List _infos = new List(); + + private int? _diceNum; + + private int? _leftDiceTime; + + private readonly List _boxInfos = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializediceNum() + { + return this.diceNumSpecified; + } + + private void ResetdiceNum() + { + this.diceNumSpecified = false; + } + + private bool ShouldSerializeleftDiceTime() + { + return this.leftDiceTimeSpecified; + } + + private void ResetleftDiceTime() + { + this.leftDiceTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskMapInfos.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskMapInfos.cs.meta new file mode 100644 index 00000000..7d1e37dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskMapInfos.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea27c18408bb235448df51bdc7a55117 +timeCreated: 1611404777 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskOneMapInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskOneMapInfo.cs new file mode 100644 index 00000000..8d8d707a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskOneMapInfo.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskOneMapInfo")] + [Serializable] + public class RiskOneMapInfo : IExtensible + { + [ProtoMember(1, Name = "grids", DataFormat = DataFormat.Default)] + public List grids + { + get + { + return this._grids; + } + } + + [ProtoMember(2, IsRequired = false, Name = "curX", DataFormat = DataFormat.TwosComplement)] + public int curX + { + get + { + return this._curX ?? 0; + } + set + { + this._curX = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curXSpecified + { + get + { + return this._curX != null; + } + set + { + bool flag = value == (this._curX == null); + if (flag) + { + this._curX = (value ? new int?(this.curX) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "curY", DataFormat = DataFormat.TwosComplement)] + public int curY + { + get + { + return this._curY ?? 0; + } + set + { + this._curY = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curYSpecified + { + get + { + return this._curY != null; + } + set + { + bool flag = value == (this._curY == null); + if (flag) + { + this._curY = (value ? new int?(this.curY) : null); + } + } + } + + [ProtoMember(4, Name = "boxInfos", DataFormat = DataFormat.Default)] + public List boxInfos + { + get + { + return this._boxInfos; + } + } + + [ProtoMember(5, IsRequired = false, Name = "mapid", DataFormat = DataFormat.TwosComplement)] + public int mapid + { + get + { + return this._mapid ?? 0; + } + set + { + this._mapid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapidSpecified + { + get + { + return this._mapid != null; + } + set + { + bool flag = value == (this._mapid == null); + if (flag) + { + this._mapid = (value ? new int?(this.mapid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "moveDirection", DataFormat = DataFormat.TwosComplement)] + public int moveDirection + { + get + { + return this._moveDirection ?? 0; + } + set + { + this._moveDirection = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool moveDirectionSpecified + { + get + { + return this._moveDirection != null; + } + set + { + bool flag = value == (this._moveDirection == null); + if (flag) + { + this._moveDirection = (value ? new int?(this.moveDirection) : null); + } + } + } + + private readonly List _grids = new List(); + + private int? _curX; + + private int? _curY; + + private readonly List _boxInfos = new List(); + + private int? _mapid; + + private int? _moveDirection; + + private IExtension extensionObject; + + private bool ShouldSerializecurX() + { + return this.curXSpecified; + } + + private void ResetcurX() + { + this.curXSpecified = false; + } + + private bool ShouldSerializecurY() + { + return this.curYSpecified; + } + + private void ResetcurY() + { + this.curYSpecified = false; + } + + private bool ShouldSerializemapid() + { + return this.mapidSpecified; + } + + private void Resetmapid() + { + this.mapidSpecified = false; + } + + private bool ShouldSerializemoveDirection() + { + return this.moveDirectionSpecified; + } + + private void ResetmoveDirection() + { + this.moveDirectionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskOneMapInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskOneMapInfo.cs.meta new file mode 100644 index 00000000..6b867571 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskOneMapInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd2fbf081447f284aa86c21ace519c7d +timeCreated: 1611404553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs new file mode 100644 index 00000000..20bfb68f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RiskRecoverDiceData")] + [Serializable] + public class RiskRecoverDiceData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "diceNum", DataFormat = DataFormat.TwosComplement)] + public int diceNum + { + get + { + return this._diceNum ?? 0; + } + set + { + this._diceNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool diceNumSpecified + { + get + { + return this._diceNum != null; + } + set + { + bool flag = value == (this._diceNum == null); + if (flag) + { + this._diceNum = (value ? new int?(this.diceNum) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftDiceTime", DataFormat = DataFormat.TwosComplement)] + public int leftDiceTime + { + get + { + return this._leftDiceTime ?? 0; + } + set + { + this._leftDiceTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftDiceTimeSpecified + { + get + { + return this._leftDiceTime != null; + } + set + { + bool flag = value == (this._leftDiceTime == null); + if (flag) + { + this._leftDiceTime = (value ? new int?(this.leftDiceTime) : null); + } + } + } + + private int? _diceNum; + + private int? _leftDiceTime; + + private IExtension extensionObject; + + private bool ShouldSerializediceNum() + { + return this.diceNumSpecified; + } + + private void ResetdiceNum() + { + this.diceNumSpecified = false; + } + + private bool ShouldSerializeleftDiceTime() + { + return this.leftDiceTimeSpecified; + } + + private void ResetleftDiceTime() + { + this.leftDiceTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs.meta new file mode 100644 index 00000000..8eb3bf87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RiskRecoverDiceData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 136109a8324324b42aa2dc33937bbd7a +timeCreated: 1611403248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs new file mode 100644 index 00000000..93bfd265 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs @@ -0,0 +1,978 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleAllInfo")] + [Serializable] + public class RoleAllInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Brief", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBrief Brief + { + get + { + return this._Brief; + } + set + { + this._Brief = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "Attributes", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Attribute Attributes + { + get + { + return this._Attributes; + } + set + { + this._Attributes = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "Bag", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BagContent Bag + { + get + { + return this._Bag; + } + set + { + this._Bag = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "Lottery", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleLotteryInfo Lottery + { + get + { + return this._Lottery; + } + set + { + this._Lottery = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "Stages", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public StageInfo Stages + { + get + { + return this._Stages; + } + set + { + this._Stages = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "CheckinRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CheckinRecord CheckinRecord + { + get + { + return this._CheckinRecord; + } + set + { + this._CheckinRecord = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "ActivityRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ActivityRecord ActivityRecord + { + get + { + return this._ActivityRecord; + } + set + { + this._ActivityRecord = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "ArenaRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ArenaRecord ArenaRecord + { + get + { + return this._ArenaRecord; + } + set + { + this._ArenaRecord = value; + } + } + + [ProtoMember(9, IsRequired = false, Name = "RewardRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RewardRecord RewardRecord + { + get + { + return this._RewardRecord; + } + set + { + this._RewardRecord = value; + } + } + + [ProtoMember(10, IsRequired = false, Name = "BuyInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BuyGoldFatInfo BuyInfo + { + get + { + return this._BuyInfo; + } + set + { + this._BuyInfo = value; + } + } + + [ProtoMember(11, IsRequired = false, Name = "shoprecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ShopRecord shoprecord + { + get + { + return this._shoprecord; + } + set + { + this._shoprecord = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "flowerrecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public FlowerRecord flowerrecord + { + get + { + return this._flowerrecord; + } + set + { + this._flowerrecord = value; + } + } + + [ProtoMember(13, IsRequired = false, Name = "guildrecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GuildRecord guildrecord + { + get + { + return this._guildrecord; + } + set + { + this._guildrecord = value; + } + } + + [ProtoMember(14, IsRequired = false, Name = "pkrecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkRecord pkrecord + { + get + { + return this._pkrecord; + } + set + { + this._pkrecord = value; + } + } + + [ProtoMember(15, IsRequired = false, Name = "config", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleConfig config + { + get + { + return this._config; + } + set + { + this._config = value; + } + } + + [ProtoMember(16, IsRequired = false, Name = "tshowVoteRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TShowVoteRecord tshowVoteRecord + { + get + { + return this._tshowVoteRecord; + } + set + { + this._tshowVoteRecord = value; + } + } + + [ProtoMember(17, IsRequired = false, Name = "campRoleRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CampRoleRecord campRoleRecord + { + get + { + return this._campRoleRecord; + } + set + { + this._campRoleRecord = value; + } + } + + [ProtoMember(18, IsRequired = false, Name = "findBackRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleFindBackRecord findBackRecord + { + get + { + return this._findBackRecord; + } + set + { + this._findBackRecord = value; + } + } + + [ProtoMember(19, IsRequired = false, Name = "ExtraInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleExtraInfo ExtraInfo + { + get + { + return this._ExtraInfo; + } + set + { + this._ExtraInfo = value; + } + } + + [ProtoMember(20, IsRequired = false, Name = "towerRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TowerRecord2DB towerRecord + { + get + { + return this._towerRecord; + } + set + { + this._towerRecord = value; + } + } + + [ProtoMember(21, IsRequired = false, Name = "loginrecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LoginRecord loginrecord + { + get + { + return this._loginrecord; + } + set + { + this._loginrecord = value; + } + } + + [ProtoMember(22, IsRequired = false, Name = "pvpdata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PvpData pvpdata + { + get + { + return this._pvpdata; + } + set + { + this._pvpdata = value; + } + } + + [ProtoMember(23, IsRequired = false, Name = "qaRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SQARecord qaRecord + { + get + { + return this._qaRecord; + } + set + { + this._qaRecord = value; + } + } + + [ProtoMember(24, IsRequired = false, Name = "dragonInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DragonRecord2DB dragonInfo + { + get + { + return this._dragonInfo; + } + set + { + this._dragonInfo = value; + } + } + + [ProtoMember(25, IsRequired = false, Name = "fashionrecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public FashionRecord fashionrecord + { + get + { + return this._fashionrecord; + } + set + { + this._fashionrecord = value; + } + } + + [ProtoMember(26, IsRequired = false, Name = "liverecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LiveRecord liverecord + { + get + { + return this._liverecord; + } + set + { + this._liverecord = value; + } + } + + [ProtoMember(27, IsRequired = false, Name = "payv2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PayV2Record payv2 + { + get + { + return this._payv2; + } + set + { + this._payv2 = value; + } + } + + [ProtoMember(28, IsRequired = false, Name = "petsys", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PetSysData petsys + { + get + { + return this._petsys; + } + set + { + this._petsys = value; + } + } + + [ProtoMember(29, IsRequired = false, Name = "firstPassRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public FirstPassRecord firstPassRecord + { + get + { + return this._firstPassRecord; + } + set + { + this._firstPassRecord = value; + } + } + + [ProtoMember(30, IsRequired = false, Name = "ibShopItems", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public IBShopAllRecord ibShopItems + { + get + { + return this._ibShopItems; + } + set + { + this._ibShopItems = value; + } + } + + [ProtoMember(31, IsRequired = false, Name = "SpriteRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SpriteRecord SpriteRecord + { + get + { + return this._SpriteRecord; + } + set + { + this._SpriteRecord = value; + } + } + + [ProtoMember(32, IsRequired = false, Name = "atlas", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SAtlasRecord atlas + { + get + { + return this._atlas; + } + set + { + this._atlas = value; + } + } + + [ProtoMember(33, IsRequired = false, Name = "riskRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RiskInfo2DB riskRecord + { + get + { + return this._riskRecord; + } + set + { + this._riskRecord = value; + } + } + + [ProtoMember(34, IsRequired = false, Name = "task_record", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleTask task_record + { + get + { + return this._task_record; + } + set + { + this._task_record = value; + } + } + + [ProtoMember(35, IsRequired = false, Name = "idipRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public IdipData idipRecord + { + get + { + return this._idipRecord; + } + set + { + this._idipRecord = value; + } + } + + [ProtoMember(36, IsRequired = false, Name = "spActivityRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SpActivity spActivityRecord + { + get + { + return this._spActivityRecord; + } + set + { + this._spActivityRecord = value; + } + } + + [ProtoMember(37, IsRequired = false, Name = "designatinoRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Designation2DB designatinoRecord + { + get + { + return this._designatinoRecord; + } + set + { + this._designatinoRecord = value; + } + } + + [ProtoMember(38, IsRequired = false, Name = "levelsealData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LevelSealRecord levelsealData + { + get + { + return this._levelsealData; + } + set + { + this._levelsealData = value; + } + } + + [ProtoMember(39, IsRequired = false, Name = "buffrecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SBuffRecord buffrecord + { + get + { + return this._buffrecord; + } + set + { + this._buffrecord = value; + } + } + + [ProtoMember(40, IsRequired = false, Name = "pushInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RolePushInfo pushInfo + { + get + { + return this._pushInfo; + } + set + { + this._pushInfo = value; + } + } + + [ProtoMember(41, IsRequired = false, Name = "qqvip", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public QQVipInfo qqvip + { + get + { + return this._qqvip; + } + set + { + this._qqvip = value; + } + } + + [ProtoMember(42, IsRequired = false, Name = "teamdbinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TeamRecord teamdbinfo + { + get + { + return this._teamdbinfo; + } + set + { + this._teamdbinfo = value; + } + } + + [ProtoMember(43, IsRequired = false, Name = "misc", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleMiscData misc + { + get + { + return this._misc; + } + set + { + this._misc = value; + } + } + + [ProtoMember(44, IsRequired = false, Name = "partner", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RolePartnerData partner + { + get + { + return this._partner; + } + set + { + this._partner = value; + } + } + + [ProtoMember(45, IsRequired = false, Name = "achieve", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AchieveDbInfo achieve + { + get + { + return this._achieve; + } + set + { + this._achieve = value; + } + } + + [ProtoMember(46, IsRequired = false, Name = "skill", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkillRecord skill + { + get + { + return this._skill; + } + set + { + this._skill = value; + } + } + + [ProtoMember(47, IsRequired = false, Name = "chat", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SChatRecord chat + { + get + { + return this._chat; + } + set + { + this._chat = value; + } + } + + [ProtoMember(48, IsRequired = false, Name = "herobattle", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HeroBattleRecord herobattle + { + get + { + return this._herobattle; + } + set + { + this._herobattle = value; + } + } + + [ProtoMember(49, IsRequired = false, Name = "reportdata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ReportDataRecord reportdata + { + get + { + return this._reportdata; + } + set + { + this._reportdata = value; + } + } + + [ProtoMember(50, IsRequired = false, Name = "system", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleSystem system + { + get + { + return this._system; + } + set + { + this._system = value; + } + } + + [ProtoMember(51, IsRequired = false, Name = "military", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MilitaryRecord military + { + get + { + return this._military; + } + set + { + this._military = value; + } + } + + [ProtoMember(52, IsRequired = false, Name = "platformshareresult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatformShareResult platformshareresult + { + get + { + return this._platformshareresult; + } + set + { + this._platformshareresult = value; + } + } + + [ProtoMember(53, IsRequired = false, Name = "weekend4v4Data", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeekEnd4v4Data weekend4v4Data + { + get + { + return this._weekend4v4Data; + } + set + { + this._weekend4v4Data = value; + } + } + + [ProtoMember(54, IsRequired = false, Name = "tajieHelpRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TajieHelp2DB tajieHelpRecord + { + get + { + return this._tajieHelpRecord; + } + set + { + this._tajieHelpRecord = value; + } + } + + [ProtoMember(55, IsRequired = false, Name = "dragongroupdb", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DragonGroupDB dragongroupdb + { + get + { + return this._dragongroupdb; + } + set + { + this._dragongroupdb = value; + } + } + + [ProtoMember(56, IsRequired = false, Name = "battlefield", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BattleFieldData battlefield + { + get + { + return this._battlefield; + } + set + { + this._battlefield = value; + } + } + + [ProtoMember(57, IsRequired = false, Name = "npcflrec", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public NpcFeelingRecord npcflrec + { + get + { + return this._npcflrec; + } + set + { + this._npcflrec = value; + } + } + + [ProtoMember(58, IsRequired = false, Name = "competeDragonInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CompeteDragonInfo2DB competeDragonInfo + { + get + { + return this._competeDragonInfo; + } + set + { + this._competeDragonInfo = value; + } + } + + [ProtoMember(59, IsRequired = false, Name = "dragonguild", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DragonGuildRecordData dragonguild + { + get + { + return this._dragonguild; + } + set + { + this._dragonguild = value; + } + } + + [ProtoMember(60, IsRequired = false, Name = "riftRecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RiftRecord2Db riftRecord + { + get + { + return this._riftRecord; + } + set + { + this._riftRecord = value; + } + } + + private RoleBrief _Brief = null; + + private Attribute _Attributes = null; + + private BagContent _Bag = null; + + private RoleLotteryInfo _Lottery = null; + + private StageInfo _Stages = null; + + private CheckinRecord _CheckinRecord = null; + + private ActivityRecord _ActivityRecord = null; + + private ArenaRecord _ArenaRecord = null; + + private RewardRecord _RewardRecord = null; + + private BuyGoldFatInfo _BuyInfo = null; + + private ShopRecord _shoprecord = null; + + private FlowerRecord _flowerrecord = null; + + private GuildRecord _guildrecord = null; + + private PkRecord _pkrecord = null; + + private RoleConfig _config = null; + + private TShowVoteRecord _tshowVoteRecord = null; + + private CampRoleRecord _campRoleRecord = null; + + private RoleFindBackRecord _findBackRecord = null; + + private RoleExtraInfo _ExtraInfo = null; + + private TowerRecord2DB _towerRecord = null; + + private LoginRecord _loginrecord = null; + + private PvpData _pvpdata = null; + + private SQARecord _qaRecord = null; + + private DragonRecord2DB _dragonInfo = null; + + private FashionRecord _fashionrecord = null; + + private LiveRecord _liverecord = null; + + private PayV2Record _payv2 = null; + + private PetSysData _petsys = null; + + private FirstPassRecord _firstPassRecord = null; + + private IBShopAllRecord _ibShopItems = null; + + private SpriteRecord _SpriteRecord = null; + + private SAtlasRecord _atlas = null; + + private RiskInfo2DB _riskRecord = null; + + private RoleTask _task_record = null; + + private IdipData _idipRecord = null; + + private SpActivity _spActivityRecord = null; + + private Designation2DB _designatinoRecord = null; + + private LevelSealRecord _levelsealData = null; + + private SBuffRecord _buffrecord = null; + + private RolePushInfo _pushInfo = null; + + private QQVipInfo _qqvip = null; + + private TeamRecord _teamdbinfo = null; + + private RoleMiscData _misc = null; + + private RolePartnerData _partner = null; + + private AchieveDbInfo _achieve = null; + + private SkillRecord _skill = null; + + private SChatRecord _chat = null; + + private HeroBattleRecord _herobattle = null; + + private ReportDataRecord _reportdata = null; + + private RoleSystem _system = null; + + private MilitaryRecord _military = null; + + private PlatformShareResult _platformshareresult = null; + + private WeekEnd4v4Data _weekend4v4Data = null; + + private TajieHelp2DB _tajieHelpRecord = null; + + private DragonGroupDB _dragongroupdb = null; + + private BattleFieldData _battlefield = null; + + private NpcFeelingRecord _npcflrec = null; + + private CompeteDragonInfo2DB _competeDragonInfo = null; + + private DragonGuildRecordData _dragonguild = null; + + private RiftRecord2Db _riftRecord = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs.meta new file mode 100644 index 00000000..9a0fdee4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d4854266f2c57349890ee18d0f889c6 +timeCreated: 1611403805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleBrief.cs new file mode 100644 index 00000000..364febde --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleBrief.cs @@ -0,0 +1,1040 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleBrief")] + [Serializable] + public class RoleBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public RoleType type + { + get + { + return this._type ?? RoleType.Role_INVALID; + } + set + { + this._type = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new RoleType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "accountID", DataFormat = DataFormat.Default)] + public string accountID + { + get + { + return this._accountID ?? ""; + } + set + { + this._accountID = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountIDSpecified + { + get + { + return this._accountID != null; + } + set + { + bool flag = value == (this._accountID == null); + if (flag) + { + this._accountID = (value ? this.accountID : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public ulong exp + { + get + { + return this._exp ?? 0UL; + } + set + { + this._exp = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new ulong?(this.exp) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "maxexp", DataFormat = DataFormat.TwosComplement)] + public ulong maxexp + { + get + { + return this._maxexp ?? 0UL; + } + set + { + this._maxexp = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxexpSpecified + { + get + { + return this._maxexp != null; + } + set + { + bool flag = value == (this._maxexp == null); + if (flag) + { + this._maxexp = (value ? new ulong?(this.maxexp) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "position", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 position + { + get + { + return this._position; + } + set + { + this._position = value; + } + } + + [ProtoMember(9, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public int sceneID + { + get + { + return this._sceneID ?? 0; + } + set + { + this._sceneID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new int?(this.sceneID) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "face", DataFormat = DataFormat.FixedSize)] + public float face + { + get + { + return this._face ?? 0f; + } + set + { + this._face = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool faceSpecified + { + get + { + return this._face != null; + } + set + { + bool flag = value == (this._face == null); + if (flag) + { + this._face = (value ? new float?(this.face) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "offlineTime", DataFormat = DataFormat.TwosComplement)] + public uint offlineTime + { + get + { + return this._offlineTime ?? 0u; + } + set + { + this._offlineTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool offlineTimeSpecified + { + get + { + return this._offlineTime != null; + } + set + { + bool flag = value == (this._offlineTime == null); + if (flag) + { + this._offlineTime = (value ? new uint?(this.offlineTime) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "completeguidestage", DataFormat = DataFormat.Default)] + public bool completeguidestage + { + get + { + return this._completeguidestage ?? false; + } + set + { + this._completeguidestage = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool completeguidestageSpecified + { + get + { + return this._completeguidestage != null; + } + set + { + bool flag = value == (this._completeguidestage == null); + if (flag) + { + this._completeguidestage = (value ? new bool?(this.completeguidestage) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "tutorialBits", DataFormat = DataFormat.TwosComplement)] + public ulong tutorialBits + { + get + { + return this._tutorialBits ?? 0UL; + } + set + { + this._tutorialBits = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tutorialBitsSpecified + { + get + { + return this._tutorialBits != null; + } + set + { + bool flag = value == (this._tutorialBits == null); + if (flag) + { + this._tutorialBits = (value ? new ulong?(this.tutorialBits) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "onlimetime", DataFormat = DataFormat.TwosComplement)] + public uint onlimetime + { + get + { + return this._onlimetime ?? 0u; + } + set + { + this._onlimetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onlimetimeSpecified + { + get + { + return this._onlimetime != null; + } + set + { + bool flag = value == (this._onlimetime == null); + if (flag) + { + this._onlimetime = (value ? new uint?(this.onlimetime) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "auctionPoint", DataFormat = DataFormat.TwosComplement)] + public uint auctionPoint + { + get + { + return this._auctionPoint ?? 0u; + } + set + { + this._auctionPoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool auctionPointSpecified + { + get + { + return this._auctionPoint != null; + } + set + { + bool flag = value == (this._auctionPoint == null); + if (flag) + { + this._auctionPoint = (value ? new uint?(this.auctionPoint) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "campID", DataFormat = DataFormat.TwosComplement)] + public uint campID + { + get + { + return this._campID ?? 0u; + } + set + { + this._campID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool campIDSpecified + { + get + { + return this._campID != null; + } + set + { + bool flag = value == (this._campID == null); + if (flag) + { + this._campID = (value ? new uint?(this.campID) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "accountNumberLastDay", DataFormat = DataFormat.TwosComplement)] + public uint accountNumberLastDay + { + get + { + return this._accountNumberLastDay ?? 0u; + } + set + { + this._accountNumberLastDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountNumberLastDaySpecified + { + get + { + return this._accountNumberLastDay != null; + } + set + { + bool flag = value == (this._accountNumberLastDay == null); + if (flag) + { + this._accountNumberLastDay = (value ? new uint?(this.accountNumberLastDay) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "lastAccountTime", DataFormat = DataFormat.TwosComplement)] + public ulong lastAccountTime + { + get + { + return this._lastAccountTime ?? 0UL; + } + set + { + this._lastAccountTime = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastAccountTimeSpecified + { + get + { + return this._lastAccountTime != null; + } + set + { + bool flag = value == (this._lastAccountTime == null); + if (flag) + { + this._lastAccountTime = (value ? new ulong?(this.lastAccountTime) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "nickID", DataFormat = DataFormat.TwosComplement)] + public uint nickID + { + get + { + return this._nickID ?? 0u; + } + set + { + this._nickID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nickIDSpecified + { + get + { + return this._nickID != null; + } + set + { + bool flag = value == (this._nickID == null); + if (flag) + { + this._nickID = (value ? new uint?(this.nickID) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "tutorialBitsArray", DataFormat = DataFormat.Default)] + public byte[] tutorialBitsArray + { + get + { + return this._tutorialBitsArray ?? null; + } + set + { + this._tutorialBitsArray = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tutorialBitsArraySpecified + { + get + { + return this._tutorialBitsArray != null; + } + set + { + bool flag = value == (this._tutorialBitsArray == null); + if (flag) + { + this._tutorialBitsArray = (value ? this.tutorialBitsArray : null); + } + } + } + + [ProtoMember(21, IsRequired = false, Name = "titleID", DataFormat = DataFormat.TwosComplement)] + public uint titleID + { + get + { + return this._titleID ?? 0u; + } + set + { + this._titleID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleIDSpecified + { + get + { + return this._titleID != null; + } + set + { + bool flag = value == (this._titleID == null); + if (flag) + { + this._titleID = (value ? new uint?(this.titleID) : null); + } + } + } + + [ProtoMember(22, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "changenamecount", DataFormat = DataFormat.TwosComplement)] + public uint changenamecount + { + get + { + return this._changenamecount ?? 0u; + } + set + { + this._changenamecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool changenamecountSpecified + { + get + { + return this._changenamecount != null; + } + set + { + bool flag = value == (this._changenamecount == null); + if (flag) + { + this._changenamecount = (value ? new uint?(this.changenamecount) : null); + } + } + } + + [ProtoMember(24, IsRequired = false, Name = "op", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLookOp op + { + get + { + return this._op; + } + set + { + this._op = value; + } + } + + [ProtoMember(25, IsRequired = false, Name = "inittime", DataFormat = DataFormat.TwosComplement)] + public ulong inittime + { + get + { + return this._inittime ?? 0UL; + } + set + { + this._inittime = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inittimeSpecified + { + get + { + return this._inittime != null; + } + set + { + bool flag = value == (this._inittime == null); + if (flag) + { + this._inittime = (value ? new ulong?(this.inittime) : null); + } + } + } + + private RoleType? _type; + + private string _name; + + private ulong? _roleID; + + private string _accountID; + + private uint? _level; + + private ulong? _exp; + + private ulong? _maxexp; + + private Vec3 _position = null; + + private int? _sceneID; + + private float? _face; + + private uint? _offlineTime; + + private bool? _completeguidestage; + + private ulong? _tutorialBits; + + private uint? _onlimetime; + + private uint? _auctionPoint; + + private uint? _campID; + + private uint? _accountNumberLastDay; + + private ulong? _lastAccountTime; + + private uint? _nickID; + + private byte[] _tutorialBitsArray; + + private uint? _titleID; + + private uint? _paymemberid; + + private uint? _changenamecount; + + private OutLookOp _op = null; + + private ulong? _inittime; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeaccountID() + { + return this.accountIDSpecified; + } + + private void ResetaccountID() + { + this.accountIDSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializemaxexp() + { + return this.maxexpSpecified; + } + + private void Resetmaxexp() + { + this.maxexpSpecified = false; + } + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializeface() + { + return this.faceSpecified; + } + + private void Resetface() + { + this.faceSpecified = false; + } + + private bool ShouldSerializeofflineTime() + { + return this.offlineTimeSpecified; + } + + private void ResetofflineTime() + { + this.offlineTimeSpecified = false; + } + + private bool ShouldSerializecompleteguidestage() + { + return this.completeguidestageSpecified; + } + + private void Resetcompleteguidestage() + { + this.completeguidestageSpecified = false; + } + + private bool ShouldSerializetutorialBits() + { + return this.tutorialBitsSpecified; + } + + private void ResettutorialBits() + { + this.tutorialBitsSpecified = false; + } + + private bool ShouldSerializeonlimetime() + { + return this.onlimetimeSpecified; + } + + private void Resetonlimetime() + { + this.onlimetimeSpecified = false; + } + + private bool ShouldSerializeauctionPoint() + { + return this.auctionPointSpecified; + } + + private void ResetauctionPoint() + { + this.auctionPointSpecified = false; + } + + private bool ShouldSerializecampID() + { + return this.campIDSpecified; + } + + private void ResetcampID() + { + this.campIDSpecified = false; + } + + private bool ShouldSerializeaccountNumberLastDay() + { + return this.accountNumberLastDaySpecified; + } + + private void ResetaccountNumberLastDay() + { + this.accountNumberLastDaySpecified = false; + } + + private bool ShouldSerializelastAccountTime() + { + return this.lastAccountTimeSpecified; + } + + private void ResetlastAccountTime() + { + this.lastAccountTimeSpecified = false; + } + + private bool ShouldSerializenickID() + { + return this.nickIDSpecified; + } + + private void ResetnickID() + { + this.nickIDSpecified = false; + } + + private bool ShouldSerializetutorialBitsArray() + { + return this.tutorialBitsArraySpecified; + } + + private void ResettutorialBitsArray() + { + this.tutorialBitsArraySpecified = false; + } + + private bool ShouldSerializetitleID() + { + return this.titleIDSpecified; + } + + private void ResettitleID() + { + this.titleIDSpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + private bool ShouldSerializechangenamecount() + { + return this.changenamecountSpecified; + } + + private void Resetchangenamecount() + { + this.changenamecountSpecified = false; + } + + private bool ShouldSerializeinittime() + { + return this.inittimeSpecified; + } + + private void Resetinittime() + { + this.inittimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleBrief.cs.meta new file mode 100644 index 00000000..cb061874 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4038aec27b144a45881eeb0a1203639 +timeCreated: 1611404281 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleBriefInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleBriefInfo.cs new file mode 100644 index 00000000..6ac8f605 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleBriefInfo.cs @@ -0,0 +1,262 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleBriefInfo")] + [Serializable] + public class RoleBriefInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public RoleType type + { + get + { + return this._type ?? RoleType.Role_INVALID; + } + set + { + this._type = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new RoleType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + [ProtoMember(5, Name = "fashion", DataFormat = DataFormat.TwosComplement)] + public List fashion + { + get + { + return this._fashion; + } + } + + [ProtoMember(6, IsRequired = false, Name = "outlook", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLook outlook + { + get + { + return this._outlook; + } + set + { + this._outlook = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + private RoleType? _type; + + private ulong? _roleID; + + private string _name; + + private int? _level; + + private readonly List _fashion = new List(); + + private OutLook _outlook = null; + + private uint? _ppt; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleBriefInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleBriefInfo.cs.meta new file mode 100644 index 00000000..a02c0b8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleBriefInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd9df2bb8b9e3a145a42e694dca6b5e1 +timeCreated: 1611404455 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleConfig.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleConfig.cs new file mode 100644 index 00000000..ec2d7953 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleConfig.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleConfig")] + [Serializable] + public class RoleConfig : IExtensible + { + [ProtoMember(1, Name = "type", DataFormat = DataFormat.Default)] + public List type + { + get + { + return this._type; + } + } + + [ProtoMember(2, Name = "value", DataFormat = DataFormat.Default)] + public List value + { + get + { + return this._value; + } + } + + private readonly List _type = new List(); + + private readonly List _value = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleConfig.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleConfig.cs.meta new file mode 100644 index 00000000..591a308c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleConfig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a189e5860fc5c3d45abfe8237ee424f1 +timeCreated: 1611404254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleDataReadType.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleDataReadType.cs new file mode 100644 index 00000000..d272ede2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleDataReadType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleDataReadType")] + public enum RoleDataReadType + { + [ProtoEnum(Name = "ROLE_DATA_READ_SELECT_ROLE", Value = 1)] + ROLE_DATA_READ_SELECT_ROLE = 1, + [ProtoEnum(Name = "ROLE_DATA_READ_IDIP", Value = 2)] + ROLE_DATA_READ_IDIP + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleDataReadType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleDataReadType.cs.meta new file mode 100644 index 00000000..e49d090d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleDataReadType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40a3c4e29c6a81b44b3504f063e3efb1 +timeCreated: 1611403614 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleEventType.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleEventType.cs new file mode 100644 index 00000000..bb738741 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleEventType.cs @@ -0,0 +1,12 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleEventType")] + public enum RoleEventType + { + [ProtoEnum(Name = "OnSendFriendGift", Value = 1)] + OnSendFriendGift = 1 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleEventType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleEventType.cs.meta new file mode 100644 index 00000000..8a03fc7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleEventType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c290607372eae34a826978b0fa34473 +timeCreated: 1611403343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleExtraInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleExtraInfo.cs new file mode 100644 index 00000000..5db68326 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleExtraInfo.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleExtraInfo")] + [Serializable] + public class RoleExtraInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastLevelUpTime", DataFormat = DataFormat.TwosComplement)] + public uint lastLevelUpTime + { + get + { + return this._lastLevelUpTime ?? 0u; + } + set + { + this._lastLevelUpTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastLevelUpTimeSpecified + { + get + { + return this._lastLevelUpTime != null; + } + set + { + bool flag = value == (this._lastLevelUpTime == null); + if (flag) + { + this._lastLevelUpTime = (value ? new uint?(this.lastLevelUpTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastLoginTime", DataFormat = DataFormat.TwosComplement)] + public uint lastLoginTime + { + get + { + return this._lastLoginTime ?? 0u; + } + set + { + this._lastLoginTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastLoginTimeSpecified + { + get + { + return this._lastLoginTime != null; + } + set + { + bool flag = value == (this._lastLoginTime == null); + if (flag) + { + this._lastLoginTime = (value ? new uint?(this.lastLoginTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastLogoutTime", DataFormat = DataFormat.TwosComplement)] + public uint lastLogoutTime + { + get + { + return this._lastLogoutTime ?? 0u; + } + set + { + this._lastLogoutTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastLogoutTimeSpecified + { + get + { + return this._lastLogoutTime != null; + } + set + { + bool flag = value == (this._lastLogoutTime == null); + if (flag) + { + this._lastLogoutTime = (value ? new uint?(this.lastLogoutTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "loginTimes", DataFormat = DataFormat.TwosComplement)] + public uint loginTimes + { + get + { + return this._loginTimes ?? 0u; + } + set + { + this._loginTimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loginTimesSpecified + { + get + { + return this._loginTimes != null; + } + set + { + bool flag = value == (this._loginTimes == null); + if (flag) + { + this._loginTimes = (value ? new uint?(this.loginTimes) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "lastFatigueRecoverTime", DataFormat = DataFormat.TwosComplement)] + public uint lastFatigueRecoverTime + { + get + { + return this._lastFatigueRecoverTime ?? 0u; + } + set + { + this._lastFatigueRecoverTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastFatigueRecoverTimeSpecified + { + get + { + return this._lastFatigueRecoverTime != null; + } + set + { + bool flag = value == (this._lastFatigueRecoverTime == null); + if (flag) + { + this._lastFatigueRecoverTime = (value ? new uint?(this.lastFatigueRecoverTime) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "fristchannel", DataFormat = DataFormat.Default)] + public string fristchannel + { + get + { + return this._fristchannel ?? ""; + } + set + { + this._fristchannel = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fristchannelSpecified + { + get + { + return this._fristchannel != null; + } + set + { + bool flag = value == (this._fristchannel == null); + if (flag) + { + this._fristchannel = (value ? this.fristchannel : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "channelmask", DataFormat = DataFormat.Default)] + public bool channelmask + { + get + { + return this._channelmask ?? false; + } + set + { + this._channelmask = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool channelmaskSpecified + { + get + { + return this._channelmask != null; + } + set + { + bool flag = value == (this._channelmask == null); + if (flag) + { + this._channelmask = (value ? new bool?(this.channelmask) : null); + } + } + } + + private uint? _lastLevelUpTime; + + private uint? _lastLoginTime; + + private uint? _lastLogoutTime; + + private uint? _loginTimes; + + private uint? _lastFatigueRecoverTime; + + private string _fristchannel; + + private bool? _channelmask; + + private IExtension extensionObject; + + private bool ShouldSerializelastLevelUpTime() + { + return this.lastLevelUpTimeSpecified; + } + + private void ResetlastLevelUpTime() + { + this.lastLevelUpTimeSpecified = false; + } + + private bool ShouldSerializelastLoginTime() + { + return this.lastLoginTimeSpecified; + } + + private void ResetlastLoginTime() + { + this.lastLoginTimeSpecified = false; + } + + private bool ShouldSerializelastLogoutTime() + { + return this.lastLogoutTimeSpecified; + } + + private void ResetlastLogoutTime() + { + this.lastLogoutTimeSpecified = false; + } + + private bool ShouldSerializeloginTimes() + { + return this.loginTimesSpecified; + } + + private void ResetloginTimes() + { + this.loginTimesSpecified = false; + } + + private bool ShouldSerializelastFatigueRecoverTime() + { + return this.lastFatigueRecoverTimeSpecified; + } + + private void ResetlastFatigueRecoverTime() + { + this.lastFatigueRecoverTimeSpecified = false; + } + + private bool ShouldSerializefristchannel() + { + return this.fristchannelSpecified; + } + + private void Resetfristchannel() + { + this.fristchannelSpecified = false; + } + + private bool ShouldSerializechannelmask() + { + return this.channelmaskSpecified; + } + + private void Resetchannelmask() + { + this.channelmaskSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleExtraInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleExtraInfo.cs.meta new file mode 100644 index 00000000..67dcb7d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleExtraInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c95b822f36774914282f2e19861a92f0 +timeCreated: 1611404538 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleFindBackRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleFindBackRecord.cs new file mode 100644 index 00000000..220561d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleFindBackRecord.cs @@ -0,0 +1,376 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleFindBackRecord")] + [Serializable] + public class RoleFindBackRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openTime", DataFormat = DataFormat.TwosComplement)] + public int openTime + { + get + { + return this._openTime ?? 0; + } + set + { + this._openTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openTimeSpecified + { + get + { + return this._openTime != null; + } + set + { + bool flag = value == (this._openTime == null); + if (flag) + { + this._openTime = (value ? new int?(this.openTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public int updateTime + { + get + { + return this._updateTime ?? 0; + } + set + { + this._updateTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new int?(this.updateTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isFoundBack", DataFormat = DataFormat.Default)] + public bool isFoundBack + { + get + { + return this._isFoundBack ?? false; + } + set + { + this._isFoundBack = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isFoundBackSpecified + { + get + { + return this._isFoundBack != null; + } + set + { + bool flag = value == (this._isFoundBack == null); + if (flag) + { + this._isFoundBack = (value ? new bool?(this.isFoundBack) : null); + } + } + } + + [ProtoMember(4, Name = "usedInfos", DataFormat = DataFormat.Default)] + public List usedInfos + { + get + { + return this._usedInfos; + } + } + + [ProtoMember(5, Name = "curUsedInfos", DataFormat = DataFormat.Default)] + public List curUsedInfos + { + get + { + return this._curUsedInfos; + } + } + + [ProtoMember(6, IsRequired = false, Name = "findBackOpenTime", DataFormat = DataFormat.TwosComplement)] + public int findBackOpenTime + { + get + { + return this._findBackOpenTime ?? 0; + } + set + { + this._findBackOpenTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool findBackOpenTimeSpecified + { + get + { + return this._findBackOpenTime != null; + } + set + { + bool flag = value == (this._findBackOpenTime == null); + if (flag) + { + this._findBackOpenTime = (value ? new int?(this.findBackOpenTime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "itemBackUpdateTime", DataFormat = DataFormat.TwosComplement)] + public int itemBackUpdateTime + { + get + { + return this._itemBackUpdateTime ?? 0; + } + set + { + this._itemBackUpdateTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemBackUpdateTimeSpecified + { + get + { + return this._itemBackUpdateTime != null; + } + set + { + bool flag = value == (this._itemBackUpdateTime == null); + if (flag) + { + this._itemBackUpdateTime = (value ? new int?(this.itemBackUpdateTime) : null); + } + } + } + + [ProtoMember(8, Name = "itemFindBackInfosHis", DataFormat = DataFormat.Default)] + public List itemFindBackInfosHis + { + get + { + return this._itemFindBackInfosHis; + } + } + + [ProtoMember(9, Name = "itemFindBackInfoCur", DataFormat = DataFormat.Default)] + public List itemFindBackInfoCur + { + get + { + return this._itemFindBackInfoCur; + } + } + + [ProtoMember(10, IsRequired = false, Name = "unlockSealTime", DataFormat = DataFormat.TwosComplement)] + public uint unlockSealTime + { + get + { + return this._unlockSealTime ?? 0u; + } + set + { + this._unlockSealTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unlockSealTimeSpecified + { + get + { + return this._unlockSealTime != null; + } + set + { + bool flag = value == (this._unlockSealTime == null); + if (flag) + { + this._unlockSealTime = (value ? new uint?(this.unlockSealTime) : null); + } + } + } + + [ProtoMember(11, Name = "unlockSealData", DataFormat = DataFormat.Default)] + public List unlockSealData + { + get + { + return this._unlockSealData; + } + } + + [ProtoMember(12, IsRequired = false, Name = "notifyBackTime", DataFormat = DataFormat.TwosComplement)] + public int notifyBackTime + { + get + { + return this._notifyBackTime ?? 0; + } + set + { + this._notifyBackTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool notifyBackTimeSpecified + { + get + { + return this._notifyBackTime != null; + } + set + { + bool flag = value == (this._notifyBackTime == null); + if (flag) + { + this._notifyBackTime = (value ? new int?(this.notifyBackTime) : null); + } + } + } + + private int? _openTime; + + private int? _updateTime; + + private bool? _isFoundBack; + + private readonly List _usedInfos = new List(); + + private readonly List _curUsedInfos = new List(); + + private int? _findBackOpenTime; + + private int? _itemBackUpdateTime; + + private readonly List _itemFindBackInfosHis = new List(); + + private readonly List _itemFindBackInfoCur = new List(); + + private uint? _unlockSealTime; + + private readonly List _unlockSealData = new List(); + + private int? _notifyBackTime; + + private IExtension extensionObject; + + private bool ShouldSerializeopenTime() + { + return this.openTimeSpecified; + } + + private void ResetopenTime() + { + this.openTimeSpecified = false; + } + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + private bool ShouldSerializeisFoundBack() + { + return this.isFoundBackSpecified; + } + + private void ResetisFoundBack() + { + this.isFoundBackSpecified = false; + } + + private bool ShouldSerializefindBackOpenTime() + { + return this.findBackOpenTimeSpecified; + } + + private void ResetfindBackOpenTime() + { + this.findBackOpenTimeSpecified = false; + } + + private bool ShouldSerializeitemBackUpdateTime() + { + return this.itemBackUpdateTimeSpecified; + } + + private void ResetitemBackUpdateTime() + { + this.itemBackUpdateTimeSpecified = false; + } + + private bool ShouldSerializeunlockSealTime() + { + return this.unlockSealTimeSpecified; + } + + private void ResetunlockSealTime() + { + this.unlockSealTimeSpecified = false; + } + + private bool ShouldSerializenotifyBackTime() + { + return this.notifyBackTimeSpecified; + } + + private void ResetnotifyBackTime() + { + this.notifyBackTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleFindBackRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleFindBackRecord.cs.meta new file mode 100644 index 00000000..a61b6d8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleFindBackRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f10357c59f0bcb4b88a969c89a285a7 +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildBonusData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildBonusData.cs new file mode 100644 index 00000000..e810ce96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildBonusData.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleGuildBonusData")] + [Serializable] + public class RoleGuildBonusData : IExtensible + { + [ProtoMember(1, Name = "sentGuildBonus", DataFormat = DataFormat.Default)] + public List sentGuildBonus + { + get + { + return this._sentGuildBonus; + } + } + + [ProtoMember(2, Name = "gotGuildBonusDayNum", DataFormat = DataFormat.Default)] + public List gotGuildBonusDayNum + { + get + { + return this._gotGuildBonusDayNum; + } + } + + [ProtoMember(3, Name = "gotGuildBonusTotalNum", DataFormat = DataFormat.Default)] + public List gotGuildBonusTotalNum + { + get + { + return this._gotGuildBonusTotalNum; + } + } + + private readonly List _sentGuildBonus = new List(); + + private readonly List _gotGuildBonusDayNum = new List(); + + private readonly List _gotGuildBonusTotalNum = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildBonusData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildBonusData.cs.meta new file mode 100644 index 00000000..ed1d3a4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildBonusData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1bc1ffbf166db0c479e0e47bfe55d9b4 +timeCreated: 1611403339 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildContribute.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildContribute.cs new file mode 100644 index 00000000..ecadbb57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildContribute.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleGuildContribute")] + [Serializable] + public class RoleGuildContribute : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleId", DataFormat = DataFormat.TwosComplement)] + public ulong roleId + { + get + { + return this._roleId ?? 0UL; + } + set + { + this._roleId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIdSpecified + { + get + { + return this._roleId != null; + } + set + { + bool flag = value == (this._roleId == null); + if (flag) + { + this._roleId = (value ? new ulong?(this.roleId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "RoleName", DataFormat = DataFormat.Default)] + public string RoleName + { + get + { + return this._RoleName ?? ""; + } + set + { + this._RoleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool RoleNameSpecified + { + get + { + return this._RoleName != null; + } + set + { + bool flag = value == (this._RoleName == null); + if (flag) + { + this._RoleName = (value ? this.RoleName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "contribute", DataFormat = DataFormat.TwosComplement)] + public int contribute + { + get + { + return this._contribute ?? 0; + } + set + { + this._contribute = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contributeSpecified + { + get + { + return this._contribute != null; + } + set + { + bool flag = value == (this._contribute == null); + if (flag) + { + this._contribute = (value ? new int?(this.contribute) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public uint updateTime + { + get + { + return this._updateTime ?? 0u; + } + set + { + this._updateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new uint?(this.updateTime) : null); + } + } + } + + private ulong? _roleId; + + private string _RoleName; + + private int? _contribute; + + private uint? _updateTime; + + private IExtension extensionObject; + + private bool ShouldSerializeroleId() + { + return this.roleIdSpecified; + } + + private void ResetroleId() + { + this.roleIdSpecified = false; + } + + private bool ShouldSerializeRoleName() + { + return this.RoleNameSpecified; + } + + private void ResetRoleName() + { + this.RoleNameSpecified = false; + } + + private bool ShouldSerializecontribute() + { + return this.contributeSpecified; + } + + private void Resetcontribute() + { + this.contributeSpecified = false; + } + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildContribute.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildContribute.cs.meta new file mode 100644 index 00000000..0c1cb22c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleGuildContribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b449eed45974f9244b1338fc5449b4c0 +timeCreated: 1611404392 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleLotteryInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleLotteryInfo.cs new file mode 100644 index 00000000..05f23903 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleLotteryInfo.cs @@ -0,0 +1,719 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleLotteryInfo")] + [Serializable] + public class RoleLotteryInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastDrawTime", DataFormat = DataFormat.TwosComplement)] + public uint lastDrawTime + { + get + { + return this._lastDrawTime ?? 0u; + } + set + { + this._lastDrawTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastDrawTimeSpecified + { + get + { + return this._lastDrawTime != null; + } + set + { + bool flag = value == (this._lastDrawTime == null); + if (flag) + { + this._lastDrawTime = (value ? new uint?(this.lastDrawTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "OneDrawCount", DataFormat = DataFormat.TwosComplement)] + public uint OneDrawCount + { + get + { + return this._OneDrawCount ?? 0u; + } + set + { + this._OneDrawCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OneDrawCountSpecified + { + get + { + return this._OneDrawCount != null; + } + set + { + bool flag = value == (this._OneDrawCount == null); + if (flag) + { + this._OneDrawCount = (value ? new uint?(this.OneDrawCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "MinimumRewardCount", DataFormat = DataFormat.TwosComplement)] + public uint MinimumRewardCount + { + get + { + return this._MinimumRewardCount ?? 0u; + } + set + { + this._MinimumRewardCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool MinimumRewardCountSpecified + { + get + { + return this._MinimumRewardCount != null; + } + set + { + bool flag = value == (this._MinimumRewardCount == null); + if (flag) + { + this._MinimumRewardCount = (value ? new uint?(this.MinimumRewardCount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "goldFreeDrawTime", DataFormat = DataFormat.TwosComplement)] + public uint goldFreeDrawTime + { + get + { + return this._goldFreeDrawTime ?? 0u; + } + set + { + this._goldFreeDrawTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldFreeDrawTimeSpecified + { + get + { + return this._goldFreeDrawTime != null; + } + set + { + bool flag = value == (this._goldFreeDrawTime == null); + if (flag) + { + this._goldFreeDrawTime = (value ? new uint?(this.goldFreeDrawTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "goldFreeDrawCount", DataFormat = DataFormat.TwosComplement)] + public uint goldFreeDrawCount + { + get + { + return this._goldFreeDrawCount ?? 0u; + } + set + { + this._goldFreeDrawCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldFreeDrawCountSpecified + { + get + { + return this._goldFreeDrawCount != null; + } + set + { + bool flag = value == (this._goldFreeDrawCount == null); + if (flag) + { + this._goldFreeDrawCount = (value ? new uint?(this.goldFreeDrawCount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "goldFreeDrawDay", DataFormat = DataFormat.TwosComplement)] + public uint goldFreeDrawDay + { + get + { + return this._goldFreeDrawDay ?? 0u; + } + set + { + this._goldFreeDrawDay = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldFreeDrawDaySpecified + { + get + { + return this._goldFreeDrawDay != null; + } + set + { + bool flag = value == (this._goldFreeDrawDay == null); + if (flag) + { + this._goldFreeDrawDay = (value ? new uint?(this.goldFreeDrawDay) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "goldOneDrawCount", DataFormat = DataFormat.TwosComplement)] + public uint goldOneDrawCount + { + get + { + return this._goldOneDrawCount ?? 0u; + } + set + { + this._goldOneDrawCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldOneDrawCountSpecified + { + get + { + return this._goldOneDrawCount != null; + } + set + { + bool flag = value == (this._goldOneDrawCount == null); + if (flag) + { + this._goldOneDrawCount = (value ? new uint?(this.goldOneDrawCount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "goldMinimumRewardCount", DataFormat = DataFormat.TwosComplement)] + public uint goldMinimumRewardCount + { + get + { + return this._goldMinimumRewardCount ?? 0u; + } + set + { + this._goldMinimumRewardCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goldMinimumRewardCountSpecified + { + get + { + return this._goldMinimumRewardCount != null; + } + set + { + bool flag = value == (this._goldMinimumRewardCount == null); + if (flag) + { + this._goldMinimumRewardCount = (value ? new uint?(this.goldMinimumRewardCount) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "clickday", DataFormat = DataFormat.TwosComplement)] + public uint clickday + { + get + { + return this._clickday ?? 0u; + } + set + { + this._clickday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool clickdaySpecified + { + get + { + return this._clickday != null; + } + set + { + bool flag = value == (this._clickday == null); + if (flag) + { + this._clickday = (value ? new uint?(this.clickday) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "clickfreetime", DataFormat = DataFormat.TwosComplement)] + public uint clickfreetime + { + get + { + return this._clickfreetime ?? 0u; + } + set + { + this._clickfreetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool clickfreetimeSpecified + { + get + { + return this._clickfreetime != null; + } + set + { + bool flag = value == (this._clickfreetime == null); + if (flag) + { + this._clickfreetime = (value ? new uint?(this.clickfreetime) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "clickfreecount", DataFormat = DataFormat.TwosComplement)] + public uint clickfreecount + { + get + { + return this._clickfreecount ?? 0u; + } + set + { + this._clickfreecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool clickfreecountSpecified + { + get + { + return this._clickfreecount != null; + } + set + { + bool flag = value == (this._clickfreecount == null); + if (flag) + { + this._clickfreecount = (value ? new uint?(this.clickfreecount) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "clickcostcount", DataFormat = DataFormat.TwosComplement)] + public uint clickcostcount + { + get + { + return this._clickcostcount ?? 0u; + } + set + { + this._clickcostcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool clickcostcountSpecified + { + get + { + return this._clickcostcount != null; + } + set + { + bool flag = value == (this._clickcostcount == null); + if (flag) + { + this._clickcostcount = (value ? new uint?(this.clickcostcount) : null); + } + } + } + + [ProtoMember(13, Name = "pandora", DataFormat = DataFormat.Default)] + public List pandora + { + get + { + return this._pandora; + } + } + + [ProtoMember(14, IsRequired = false, Name = "lastGiftUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastGiftUpdateTime + { + get + { + return this._lastGiftUpdateTime ?? 0u; + } + set + { + this._lastGiftUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastGiftUpdateTimeSpecified + { + get + { + return this._lastGiftUpdateTime != null; + } + set + { + bool flag = value == (this._lastGiftUpdateTime == null); + if (flag) + { + this._lastGiftUpdateTime = (value ? new uint?(this.lastGiftUpdateTime) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "shareGiftCount", DataFormat = DataFormat.TwosComplement)] + public uint shareGiftCount + { + get + { + return this._shareGiftCount ?? 0u; + } + set + { + this._shareGiftCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool shareGiftCountSpecified + { + get + { + return this._shareGiftCount != null; + } + set + { + bool flag = value == (this._shareGiftCount == null); + if (flag) + { + this._shareGiftCount = (value ? new uint?(this.shareGiftCount) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "spriteMinGuarantee", DataFormat = DataFormat.TwosComplement)] + public uint spriteMinGuarantee + { + get + { + return this._spriteMinGuarantee ?? 0u; + } + set + { + this._spriteMinGuarantee = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool spriteMinGuaranteeSpecified + { + get + { + return this._spriteMinGuarantee != null; + } + set + { + bool flag = value == (this._spriteMinGuarantee == null); + if (flag) + { + this._spriteMinGuarantee = (value ? new uint?(this.spriteMinGuarantee) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "spriteNextMinGuarantee", DataFormat = DataFormat.TwosComplement)] + public uint spriteNextMinGuarantee + { + get + { + return this._spriteNextMinGuarantee ?? 0u; + } + set + { + this._spriteNextMinGuarantee = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool spriteNextMinGuaranteeSpecified + { + get + { + return this._spriteNextMinGuarantee != null; + } + set + { + bool flag = value == (this._spriteNextMinGuarantee == null); + if (flag) + { + this._spriteNextMinGuarantee = (value ? new uint?(this.spriteNextMinGuarantee) : null); + } + } + } + + private uint? _lastDrawTime; + + private uint? _OneDrawCount; + + private uint? _MinimumRewardCount; + + private uint? _goldFreeDrawTime; + + private uint? _goldFreeDrawCount; + + private uint? _goldFreeDrawDay; + + private uint? _goldOneDrawCount; + + private uint? _goldMinimumRewardCount; + + private uint? _clickday; + + private uint? _clickfreetime; + + private uint? _clickfreecount; + + private uint? _clickcostcount; + + private readonly List _pandora = new List(); + + private uint? _lastGiftUpdateTime; + + private uint? _shareGiftCount; + + private uint? _spriteMinGuarantee; + + private uint? _spriteNextMinGuarantee; + + private IExtension extensionObject; + + private bool ShouldSerializelastDrawTime() + { + return this.lastDrawTimeSpecified; + } + + private void ResetlastDrawTime() + { + this.lastDrawTimeSpecified = false; + } + + private bool ShouldSerializeOneDrawCount() + { + return this.OneDrawCountSpecified; + } + + private void ResetOneDrawCount() + { + this.OneDrawCountSpecified = false; + } + + private bool ShouldSerializeMinimumRewardCount() + { + return this.MinimumRewardCountSpecified; + } + + private void ResetMinimumRewardCount() + { + this.MinimumRewardCountSpecified = false; + } + + private bool ShouldSerializegoldFreeDrawTime() + { + return this.goldFreeDrawTimeSpecified; + } + + private void ResetgoldFreeDrawTime() + { + this.goldFreeDrawTimeSpecified = false; + } + + private bool ShouldSerializegoldFreeDrawCount() + { + return this.goldFreeDrawCountSpecified; + } + + private void ResetgoldFreeDrawCount() + { + this.goldFreeDrawCountSpecified = false; + } + + private bool ShouldSerializegoldFreeDrawDay() + { + return this.goldFreeDrawDaySpecified; + } + + private void ResetgoldFreeDrawDay() + { + this.goldFreeDrawDaySpecified = false; + } + + private bool ShouldSerializegoldOneDrawCount() + { + return this.goldOneDrawCountSpecified; + } + + private void ResetgoldOneDrawCount() + { + this.goldOneDrawCountSpecified = false; + } + + private bool ShouldSerializegoldMinimumRewardCount() + { + return this.goldMinimumRewardCountSpecified; + } + + private void ResetgoldMinimumRewardCount() + { + this.goldMinimumRewardCountSpecified = false; + } + + private bool ShouldSerializeclickday() + { + return this.clickdaySpecified; + } + + private void Resetclickday() + { + this.clickdaySpecified = false; + } + + private bool ShouldSerializeclickfreetime() + { + return this.clickfreetimeSpecified; + } + + private void Resetclickfreetime() + { + this.clickfreetimeSpecified = false; + } + + private bool ShouldSerializeclickfreecount() + { + return this.clickfreecountSpecified; + } + + private void Resetclickfreecount() + { + this.clickfreecountSpecified = false; + } + + private bool ShouldSerializeclickcostcount() + { + return this.clickcostcountSpecified; + } + + private void Resetclickcostcount() + { + this.clickcostcountSpecified = false; + } + + private bool ShouldSerializelastGiftUpdateTime() + { + return this.lastGiftUpdateTimeSpecified; + } + + private void ResetlastGiftUpdateTime() + { + this.lastGiftUpdateTimeSpecified = false; + } + + private bool ShouldSerializeshareGiftCount() + { + return this.shareGiftCountSpecified; + } + + private void ResetshareGiftCount() + { + this.shareGiftCountSpecified = false; + } + + private bool ShouldSerializespriteMinGuarantee() + { + return this.spriteMinGuaranteeSpecified; + } + + private void ResetspriteMinGuarantee() + { + this.spriteMinGuaranteeSpecified = false; + } + + private bool ShouldSerializespriteNextMinGuarantee() + { + return this.spriteNextMinGuaranteeSpecified; + } + + private void ResetspriteNextMinGuarantee() + { + this.spriteNextMinGuaranteeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleLotteryInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleLotteryInfo.cs.meta new file mode 100644 index 00000000..7595f17f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleLotteryInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b936c01398cb0c948aac14c31834da85 +timeCreated: 1611404409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleMiscData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleMiscData.cs new file mode 100644 index 00000000..faa5fb89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleMiscData.cs @@ -0,0 +1,1541 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleMiscData")] + [Serializable] + public class RoleMiscData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dummy", DataFormat = DataFormat.TwosComplement)] + public uint dummy + { + get + { + return this._dummy ?? 0u; + } + set + { + this._dummy = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dummySpecified + { + get + { + return this._dummy != null; + } + set + { + bool flag = value == (this._dummy == null); + if (flag) + { + this._dummy = (value ? new uint?(this.dummy) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastpush", DataFormat = DataFormat.TwosComplement)] + public uint lastpush + { + get + { + return this._lastpush ?? 0u; + } + set + { + this._lastpush = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastpushSpecified + { + get + { + return this._lastpush != null; + } + set + { + bool flag = value == (this._lastpush == null); + if (flag) + { + this._lastpush = (value ? new uint?(this.lastpush) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "pushflag", DataFormat = DataFormat.TwosComplement)] + public uint pushflag + { + get + { + return this._pushflag ?? 0u; + } + set + { + this._pushflag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pushflagSpecified + { + get + { + return this._pushflag != null; + } + set + { + bool flag = value == (this._pushflag == null); + if (flag) + { + this._pushflag = (value ? new uint?(this.pushflag) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "laddertime", DataFormat = DataFormat.TwosComplement)] + public uint laddertime + { + get + { + return this._laddertime ?? 0u; + } + set + { + this._laddertime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool laddertimeSpecified + { + get + { + return this._laddertime != null; + } + set + { + bool flag = value == (this._laddertime == null); + if (flag) + { + this._laddertime = (value ? new uint?(this.laddertime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "answersindex", DataFormat = DataFormat.TwosComplement)] + public uint answersindex + { + get + { + return this._answersindex ?? 0u; + } + set + { + this._answersindex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool answersindexSpecified + { + get + { + return this._answersindex != null; + } + set + { + bool flag = value == (this._answersindex == null); + if (flag) + { + this._answersindex = (value ? new uint?(this.answersindex) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "answersversion", DataFormat = DataFormat.TwosComplement)] + public uint answersversion + { + get + { + return this._answersversion ?? 0u; + } + set + { + this._answersversion = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool answersversionSpecified + { + get + { + return this._answersversion != null; + } + set + { + bool flag = value == (this._answersversion == null); + if (flag) + { + this._answersversion = (value ? new uint?(this.answersversion) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "hintflag", DataFormat = DataFormat.TwosComplement)] + public uint hintflag + { + get + { + return this._hintflag ?? 0u; + } + set + { + this._hintflag = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hintflagSpecified + { + get + { + return this._hintflag != null; + } + set + { + bool flag = value == (this._hintflag == null); + if (flag) + { + this._hintflag = (value ? new uint?(this.hintflag) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "lastchangeprotime", DataFormat = DataFormat.TwosComplement)] + public uint lastchangeprotime + { + get + { + return this._lastchangeprotime ?? 0u; + } + set + { + this._lastchangeprotime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastchangeprotimeSpecified + { + get + { + return this._lastchangeprotime != null; + } + set + { + bool flag = value == (this._lastchangeprotime == null); + if (flag) + { + this._lastchangeprotime = (value ? new uint?(this.lastchangeprotime) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "changeprocount", DataFormat = DataFormat.TwosComplement)] + public uint changeprocount + { + get + { + return this._changeprocount ?? 0u; + } + set + { + this._changeprocount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool changeprocountSpecified + { + get + { + return this._changeprocount != null; + } + set + { + bool flag = value == (this._changeprocount == null); + if (flag) + { + this._changeprocount = (value ? new uint?(this.changeprocount) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "daily_lb_num", DataFormat = DataFormat.TwosComplement)] + public uint daily_lb_num + { + get + { + return this._daily_lb_num ?? 0u; + } + set + { + this._daily_lb_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daily_lb_numSpecified + { + get + { + return this._daily_lb_num != null; + } + set + { + bool flag = value == (this._daily_lb_num == null); + if (flag) + { + this._daily_lb_num = (value ? new uint?(this.daily_lb_num) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "updatetime", DataFormat = DataFormat.TwosComplement)] + public uint updatetime + { + get + { + return this._updatetime ?? 0u; + } + set + { + this._updatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatetimeSpecified + { + get + { + return this._updatetime != null; + } + set + { + bool flag = value == (this._updatetime == null); + if (flag) + { + this._updatetime = (value ? new uint?(this.updatetime) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "declaration", DataFormat = DataFormat.Default)] + public string declaration + { + get + { + return this._declaration ?? ""; + } + set + { + this._declaration = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool declarationSpecified + { + get + { + return this._declaration != null; + } + set + { + bool flag = value == (this._declaration == null); + if (flag) + { + this._declaration = (value ? this.declaration : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "qqvip_hint", DataFormat = DataFormat.Default)] + public bool qqvip_hint + { + get + { + return this._qqvip_hint ?? false; + } + set + { + this._qqvip_hint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qqvip_hintSpecified + { + get + { + return this._qqvip_hint != null; + } + set + { + bool flag = value == (this._qqvip_hint == null); + if (flag) + { + this._qqvip_hint = (value ? new bool?(this.qqvip_hint) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "qqvip_hint_read_time", DataFormat = DataFormat.TwosComplement)] + public uint qqvip_hint_read_time + { + get + { + return this._qqvip_hint_read_time ?? 0u; + } + set + { + this._qqvip_hint_read_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool qqvip_hint_read_timeSpecified + { + get + { + return this._qqvip_hint_read_time != null; + } + set + { + bool flag = value == (this._qqvip_hint_read_time == null); + if (flag) + { + this._qqvip_hint_read_time = (value ? new uint?(this.qqvip_hint_read_time) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "egame_hint", DataFormat = DataFormat.Default)] + public bool egame_hint + { + get + { + return this._egame_hint ?? false; + } + set + { + this._egame_hint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool egame_hintSpecified + { + get + { + return this._egame_hint != null; + } + set + { + bool flag = value == (this._egame_hint == null); + if (flag) + { + this._egame_hint = (value ? new bool?(this.egame_hint) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "egame_hint_readtime", DataFormat = DataFormat.TwosComplement)] + public uint egame_hint_readtime + { + get + { + return this._egame_hint_readtime ?? 0u; + } + set + { + this._egame_hint_readtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool egame_hint_readtimeSpecified + { + get + { + return this._egame_hint_readtime != null; + } + set + { + bool flag = value == (this._egame_hint_readtime == null); + if (flag) + { + this._egame_hint_readtime = (value ? new uint?(this.egame_hint_readtime) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "xinyue_hint", DataFormat = DataFormat.Default)] + public bool xinyue_hint + { + get + { + return this._xinyue_hint ?? false; + } + set + { + this._xinyue_hint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool xinyue_hintSpecified + { + get + { + return this._xinyue_hint != null; + } + set + { + bool flag = value == (this._xinyue_hint == null); + if (flag) + { + this._xinyue_hint = (value ? new bool?(this.xinyue_hint) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "xinyue_readtime", DataFormat = DataFormat.TwosComplement)] + public uint xinyue_readtime + { + get + { + return this._xinyue_readtime ?? 0u; + } + set + { + this._xinyue_readtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool xinyue_readtimeSpecified + { + get + { + return this._xinyue_readtime != null; + } + set + { + bool flag = value == (this._xinyue_readtime == null); + if (flag) + { + this._xinyue_readtime = (value ? new uint?(this.xinyue_readtime) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "last_level", DataFormat = DataFormat.TwosComplement)] + public uint last_level + { + get + { + return this._last_level ?? 0u; + } + set + { + this._last_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_levelSpecified + { + get + { + return this._last_level != null; + } + set + { + bool flag = value == (this._last_level == null); + if (flag) + { + this._last_level = (value ? new uint?(this.last_level) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "loginacttime", DataFormat = DataFormat.TwosComplement)] + public uint loginacttime + { + get + { + return this._loginacttime ?? 0u; + } + set + { + this._loginacttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loginacttimeSpecified + { + get + { + return this._loginacttime != null; + } + set + { + bool flag = value == (this._loginacttime == null); + if (flag) + { + this._loginacttime = (value ? new uint?(this.loginacttime) : null); + } + } + } + + [ProtoMember(21, IsRequired = false, Name = "loginactstatus", DataFormat = DataFormat.Default)] + public bool loginactstatus + { + get + { + return this._loginactstatus ?? false; + } + set + { + this._loginactstatus = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool loginactstatusSpecified + { + get + { + return this._loginactstatus != null; + } + set + { + bool flag = value == (this._loginactstatus == null); + if (flag) + { + this._loginactstatus = (value ? new bool?(this.loginactstatus) : null); + } + } + } + + [ProtoMember(22, IsRequired = false, Name = "daygiftitems", DataFormat = DataFormat.TwosComplement)] + public uint daygiftitems + { + get + { + return this._daygiftitems ?? 0u; + } + set + { + this._daygiftitems = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daygiftitemsSpecified + { + get + { + return this._daygiftitems != null; + } + set + { + bool flag = value == (this._daygiftitems == null); + if (flag) + { + this._daygiftitems = (value ? new uint?(this.daygiftitems) : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "hardestNestExpID", DataFormat = DataFormat.TwosComplement)] + public uint hardestNestExpID + { + get + { + return this._hardestNestExpID ?? 0u; + } + set + { + this._hardestNestExpID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hardestNestExpIDSpecified + { + get + { + return this._hardestNestExpID != null; + } + set + { + bool flag = value == (this._hardestNestExpID == null); + if (flag) + { + this._hardestNestExpID = (value ? new uint?(this.hardestNestExpID) : null); + } + } + } + + [ProtoMember(24, IsRequired = false, Name = "startuptype", DataFormat = DataFormat.TwosComplement)] + public StartUpType startuptype + { + get + { + return this._startuptype ?? StartUpType.StartUp_Normal; + } + set + { + this._startuptype = new StartUpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startuptypeSpecified + { + get + { + return this._startuptype != null; + } + set + { + bool flag = value == (this._startuptype == null); + if (flag) + { + this._startuptype = (value ? new StartUpType?(this.startuptype) : null); + } + } + } + + [ProtoMember(25, IsRequired = false, Name = "startuptime", DataFormat = DataFormat.TwosComplement)] + public uint startuptime + { + get + { + return this._startuptime ?? 0u; + } + set + { + this._startuptime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startuptimeSpecified + { + get + { + return this._startuptime != null; + } + set + { + bool flag = value == (this._startuptime == null); + if (flag) + { + this._startuptime = (value ? new uint?(this.startuptime) : null); + } + } + } + + [ProtoMember(26, IsRequired = false, Name = "weddingflow_count", DataFormat = DataFormat.TwosComplement)] + public uint weddingflow_count + { + get + { + return this._weddingflow_count ?? 0u; + } + set + { + this._weddingflow_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weddingflow_countSpecified + { + get + { + return this._weddingflow_count != null; + } + set + { + bool flag = value == (this._weddingflow_count == null); + if (flag) + { + this._weddingflow_count = (value ? new uint?(this.weddingflow_count) : null); + } + } + } + + [ProtoMember(27, IsRequired = false, Name = "weddingfireworks_count", DataFormat = DataFormat.TwosComplement)] + public uint weddingfireworks_count + { + get + { + return this._weddingfireworks_count ?? 0u; + } + set + { + this._weddingfireworks_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weddingfireworks_countSpecified + { + get + { + return this._weddingfireworks_count != null; + } + set + { + bool flag = value == (this._weddingfireworks_count == null); + if (flag) + { + this._weddingfireworks_count = (value ? new uint?(this.weddingfireworks_count) : null); + } + } + } + + [ProtoMember(28, IsRequired = false, Name = "weddingcandy_count", DataFormat = DataFormat.TwosComplement)] + public uint weddingcandy_count + { + get + { + return this._weddingcandy_count ?? 0u; + } + set + { + this._weddingcandy_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weddingcandy_countSpecified + { + get + { + return this._weddingcandy_count != null; + } + set + { + bool flag = value == (this._weddingcandy_count == null); + if (flag) + { + this._weddingcandy_count = (value ? new uint?(this.weddingcandy_count) : null); + } + } + } + + [ProtoMember(29, Name = "gmattrs", DataFormat = DataFormat.Default)] + public List gmattrs + { + get + { + return this._gmattrs; + } + } + + [ProtoMember(30, IsRequired = false, Name = "surviverec", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SurviveRecord surviverec + { + get + { + return this._surviverec; + } + set + { + this._surviverec = value; + } + } + + [ProtoMember(31, IsRequired = false, Name = "turntable", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LuckyActivity turntable + { + get + { + return this._turntable; + } + set + { + this._turntable = value; + } + } + + [ProtoMember(32, IsRequired = false, Name = "freeflow_hinttime", DataFormat = DataFormat.TwosComplement)] + public uint freeflow_hinttime + { + get + { + return this._freeflow_hinttime ?? 0u; + } + set + { + this._freeflow_hinttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freeflow_hinttimeSpecified + { + get + { + return this._freeflow_hinttime != null; + } + set + { + bool flag = value == (this._freeflow_hinttime == null); + if (flag) + { + this._freeflow_hinttime = (value ? new uint?(this.freeflow_hinttime) : null); + } + } + } + + [ProtoMember(33, IsRequired = false, Name = "kingbackrewardcount", DataFormat = DataFormat.TwosComplement)] + public uint kingbackrewardcount + { + get + { + return this._kingbackrewardcount ?? 0u; + } + set + { + this._kingbackrewardcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kingbackrewardcountSpecified + { + get + { + return this._kingbackrewardcount != null; + } + set + { + bool flag = value == (this._kingbackrewardcount == null); + if (flag) + { + this._kingbackrewardcount = (value ? new uint?(this.kingbackrewardcount) : null); + } + } + } + + [ProtoMember(34, IsRequired = false, Name = "chare_back_rewardlevel", DataFormat = DataFormat.TwosComplement)] + public uint chare_back_rewardlevel + { + get + { + return this._chare_back_rewardlevel ?? 0u; + } + set + { + this._chare_back_rewardlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chare_back_rewardlevelSpecified + { + get + { + return this._chare_back_rewardlevel != null; + } + set + { + bool flag = value == (this._chare_back_rewardlevel == null); + if (flag) + { + this._chare_back_rewardlevel = (value ? new uint?(this.chare_back_rewardlevel) : null); + } + } + } + + [ProtoMember(35, IsRequired = false, Name = "charge_back_total", DataFormat = DataFormat.TwosComplement)] + public uint charge_back_total + { + get + { + return this._charge_back_total ?? 0u; + } + set + { + this._charge_back_total = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool charge_back_totalSpecified + { + get + { + return this._charge_back_total != null; + } + set + { + bool flag = value == (this._charge_back_total == null); + if (flag) + { + this._charge_back_total = (value ? new uint?(this.charge_back_total) : null); + } + } + } + + [ProtoMember(36, IsRequired = false, Name = "multireward", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SRoleMultiReward multireward + { + get + { + return this._multireward; + } + set + { + this._multireward = value; + } + } + + [ProtoMember(37, IsRequired = false, Name = "version", DataFormat = DataFormat.TwosComplement)] + public uint version + { + get + { + return this._version ?? 0u; + } + set + { + this._version = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool versionSpecified + { + get + { + return this._version != null; + } + set + { + bool flag = value == (this._version == null); + if (flag) + { + this._version = (value ? new uint?(this.version) : null); + } + } + } + + [ProtoMember(38, IsRequired = false, Name = "take_package_reward", DataFormat = DataFormat.Default)] + public bool take_package_reward + { + get + { + return this._take_package_reward ?? false; + } + set + { + this._take_package_reward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool take_package_rewardSpecified + { + get + { + return this._take_package_reward != null; + } + set + { + bool flag = value == (this._take_package_reward == null); + if (flag) + { + this._take_package_reward = (value ? new bool?(this.take_package_reward) : null); + } + } + } + + private uint? _dummy; + + private uint? _lastpush; + + private uint? _pushflag; + + private uint? _laddertime; + + private uint? _answersindex; + + private uint? _answersversion; + + private uint? _hintflag; + + private uint? _lastchangeprotime; + + private uint? _changeprocount; + + private uint? _daily_lb_num; + + private uint? _updatetime; + + private string _declaration; + + private bool? _qqvip_hint; + + private uint? _qqvip_hint_read_time; + + private bool? _egame_hint; + + private uint? _egame_hint_readtime; + + private bool? _xinyue_hint; + + private uint? _xinyue_readtime; + + private uint? _last_level; + + private uint? _loginacttime; + + private bool? _loginactstatus; + + private uint? _daygiftitems; + + private uint? _hardestNestExpID; + + private StartUpType? _startuptype; + + private uint? _startuptime; + + private uint? _weddingflow_count; + + private uint? _weddingfireworks_count; + + private uint? _weddingcandy_count; + + private readonly List _gmattrs = new List(); + + private SurviveRecord _surviverec = null; + + private LuckyActivity _turntable = null; + + private uint? _freeflow_hinttime; + + private uint? _kingbackrewardcount; + + private uint? _chare_back_rewardlevel; + + private uint? _charge_back_total; + + private SRoleMultiReward _multireward = null; + + private uint? _version; + + private bool? _take_package_reward; + + private IExtension extensionObject; + + private bool ShouldSerializedummy() + { + return this.dummySpecified; + } + + private void Resetdummy() + { + this.dummySpecified = false; + } + + private bool ShouldSerializelastpush() + { + return this.lastpushSpecified; + } + + private void Resetlastpush() + { + this.lastpushSpecified = false; + } + + private bool ShouldSerializepushflag() + { + return this.pushflagSpecified; + } + + private void Resetpushflag() + { + this.pushflagSpecified = false; + } + + private bool ShouldSerializeladdertime() + { + return this.laddertimeSpecified; + } + + private void Resetladdertime() + { + this.laddertimeSpecified = false; + } + + private bool ShouldSerializeanswersindex() + { + return this.answersindexSpecified; + } + + private void Resetanswersindex() + { + this.answersindexSpecified = false; + } + + private bool ShouldSerializeanswersversion() + { + return this.answersversionSpecified; + } + + private void Resetanswersversion() + { + this.answersversionSpecified = false; + } + + private bool ShouldSerializehintflag() + { + return this.hintflagSpecified; + } + + private void Resethintflag() + { + this.hintflagSpecified = false; + } + + private bool ShouldSerializelastchangeprotime() + { + return this.lastchangeprotimeSpecified; + } + + private void Resetlastchangeprotime() + { + this.lastchangeprotimeSpecified = false; + } + + private bool ShouldSerializechangeprocount() + { + return this.changeprocountSpecified; + } + + private void Resetchangeprocount() + { + this.changeprocountSpecified = false; + } + + private bool ShouldSerializedaily_lb_num() + { + return this.daily_lb_numSpecified; + } + + private void Resetdaily_lb_num() + { + this.daily_lb_numSpecified = false; + } + + private bool ShouldSerializeupdatetime() + { + return this.updatetimeSpecified; + } + + private void Resetupdatetime() + { + this.updatetimeSpecified = false; + } + + private bool ShouldSerializedeclaration() + { + return this.declarationSpecified; + } + + private void Resetdeclaration() + { + this.declarationSpecified = false; + } + + private bool ShouldSerializeqqvip_hint() + { + return this.qqvip_hintSpecified; + } + + private void Resetqqvip_hint() + { + this.qqvip_hintSpecified = false; + } + + private bool ShouldSerializeqqvip_hint_read_time() + { + return this.qqvip_hint_read_timeSpecified; + } + + private void Resetqqvip_hint_read_time() + { + this.qqvip_hint_read_timeSpecified = false; + } + + private bool ShouldSerializeegame_hint() + { + return this.egame_hintSpecified; + } + + private void Resetegame_hint() + { + this.egame_hintSpecified = false; + } + + private bool ShouldSerializeegame_hint_readtime() + { + return this.egame_hint_readtimeSpecified; + } + + private void Resetegame_hint_readtime() + { + this.egame_hint_readtimeSpecified = false; + } + + private bool ShouldSerializexinyue_hint() + { + return this.xinyue_hintSpecified; + } + + private void Resetxinyue_hint() + { + this.xinyue_hintSpecified = false; + } + + private bool ShouldSerializexinyue_readtime() + { + return this.xinyue_readtimeSpecified; + } + + private void Resetxinyue_readtime() + { + this.xinyue_readtimeSpecified = false; + } + + private bool ShouldSerializelast_level() + { + return this.last_levelSpecified; + } + + private void Resetlast_level() + { + this.last_levelSpecified = false; + } + + private bool ShouldSerializeloginacttime() + { + return this.loginacttimeSpecified; + } + + private void Resetloginacttime() + { + this.loginacttimeSpecified = false; + } + + private bool ShouldSerializeloginactstatus() + { + return this.loginactstatusSpecified; + } + + private void Resetloginactstatus() + { + this.loginactstatusSpecified = false; + } + + private bool ShouldSerializedaygiftitems() + { + return this.daygiftitemsSpecified; + } + + private void Resetdaygiftitems() + { + this.daygiftitemsSpecified = false; + } + + private bool ShouldSerializehardestNestExpID() + { + return this.hardestNestExpIDSpecified; + } + + private void ResethardestNestExpID() + { + this.hardestNestExpIDSpecified = false; + } + + private bool ShouldSerializestartuptype() + { + return this.startuptypeSpecified; + } + + private void Resetstartuptype() + { + this.startuptypeSpecified = false; + } + + private bool ShouldSerializestartuptime() + { + return this.startuptimeSpecified; + } + + private void Resetstartuptime() + { + this.startuptimeSpecified = false; + } + + private bool ShouldSerializeweddingflow_count() + { + return this.weddingflow_countSpecified; + } + + private void Resetweddingflow_count() + { + this.weddingflow_countSpecified = false; + } + + private bool ShouldSerializeweddingfireworks_count() + { + return this.weddingfireworks_countSpecified; + } + + private void Resetweddingfireworks_count() + { + this.weddingfireworks_countSpecified = false; + } + + private bool ShouldSerializeweddingcandy_count() + { + return this.weddingcandy_countSpecified; + } + + private void Resetweddingcandy_count() + { + this.weddingcandy_countSpecified = false; + } + + private bool ShouldSerializefreeflow_hinttime() + { + return this.freeflow_hinttimeSpecified; + } + + private void Resetfreeflow_hinttime() + { + this.freeflow_hinttimeSpecified = false; + } + + private bool ShouldSerializekingbackrewardcount() + { + return this.kingbackrewardcountSpecified; + } + + private void Resetkingbackrewardcount() + { + this.kingbackrewardcountSpecified = false; + } + + private bool ShouldSerializechare_back_rewardlevel() + { + return this.chare_back_rewardlevelSpecified; + } + + private void Resetchare_back_rewardlevel() + { + this.chare_back_rewardlevelSpecified = false; + } + + private bool ShouldSerializecharge_back_total() + { + return this.charge_back_totalSpecified; + } + + private void Resetcharge_back_total() + { + this.charge_back_totalSpecified = false; + } + + private bool ShouldSerializeversion() + { + return this.versionSpecified; + } + + private void Resetversion() + { + this.versionSpecified = false; + } + + private bool ShouldSerializetake_package_reward() + { + return this.take_package_rewardSpecified; + } + + private void Resettake_package_reward() + { + this.take_package_rewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleMiscData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleMiscData.cs.meta new file mode 100644 index 00000000..7b0b850f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleMiscData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ccd1daa6828d3e641a719a8439f61eed +timeCreated: 1611404552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleOutLookBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleOutLookBrief.cs new file mode 100644 index 00000000..d56a3255 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleOutLookBrief.cs @@ -0,0 +1,348 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleOutLookBrief")] + [Serializable] + public class RoleOutLookBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public RoleType profession + { + get + { + return this._profession ?? RoleType.Role_INVALID; + } + set + { + this._profession = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new RoleType?(this.profession) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(6, Name = "fashion", DataFormat = DataFormat.TwosComplement)] + public List fashion + { + get + { + return this._fashion; + } + } + + [ProtoMember(7, IsRequired = false, Name = "outlook", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLook outlook + { + get + { + return this._outlook; + } + set + { + this._outlook = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "viplevel", DataFormat = DataFormat.TwosComplement)] + public uint viplevel + { + get + { + return this._viplevel ?? 0u; + } + set + { + this._viplevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool viplevelSpecified + { + get + { + return this._viplevel != null; + } + set + { + bool flag = value == (this._viplevel == null); + if (flag) + { + this._viplevel = (value ? new uint?(this.viplevel) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + private ulong? _roleid; + + private RoleType? _profession; + + private string _name; + + private uint? _level; + + private uint? _ppt; + + private readonly List _fashion = new List(); + + private OutLook _outlook = null; + + private uint? _viplevel; + + private uint? _paymemberid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializeviplevel() + { + return this.viplevelSpecified; + } + + private void Resetviplevel() + { + this.viplevelSpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleOutLookBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleOutLookBrief.cs.meta new file mode 100644 index 00000000..693b2d86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleOutLookBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5934b654423eba643b3dc01c03ee0f83 +timeCreated: 1611403763 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RolePartnerData.cs b/Client/Assets/Scripts/XMainClient/KKSG/RolePartnerData.cs new file mode 100644 index 00000000..f58f15f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RolePartnerData.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RolePartnerData")] + [Serializable] + public class RolePartnerData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "partnerid", DataFormat = DataFormat.TwosComplement)] + public ulong partnerid + { + get + { + return this._partnerid ?? 0UL; + } + set + { + this._partnerid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool partneridSpecified + { + get + { + return this._partnerid != null; + } + set + { + bool flag = value == (this._partnerid == null); + if (flag) + { + this._partnerid = (value ? new ulong?(this.partnerid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "last_leave_partner_time", DataFormat = DataFormat.TwosComplement)] + public uint last_leave_partner_time + { + get + { + return this._last_leave_partner_time ?? 0u; + } + set + { + this._last_leave_partner_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_leave_partner_timeSpecified + { + get + { + return this._last_leave_partner_time != null; + } + set + { + bool flag = value == (this._last_leave_partner_time == null); + if (flag) + { + this._last_leave_partner_time = (value ? new uint?(this.last_leave_partner_time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "taked_chest", DataFormat = DataFormat.TwosComplement)] + public uint taked_chest + { + get + { + return this._taked_chest ?? 0u; + } + set + { + this._taked_chest = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taked_chestSpecified + { + get + { + return this._taked_chest != null; + } + set + { + bool flag = value == (this._taked_chest == null); + if (flag) + { + this._taked_chest = (value ? new uint?(this.taked_chest) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "open_shop_time", DataFormat = DataFormat.TwosComplement)] + public uint open_shop_time + { + get + { + return this._open_shop_time ?? 0u; + } + set + { + this._open_shop_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool open_shop_timeSpecified + { + get + { + return this._open_shop_time != null; + } + set + { + bool flag = value == (this._open_shop_time == null); + if (flag) + { + this._open_shop_time = (value ? new uint?(this.open_shop_time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "apply_leave_time", DataFormat = DataFormat.TwosComplement)] + public uint apply_leave_time + { + get + { + return this._apply_leave_time ?? 0u; + } + set + { + this._apply_leave_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool apply_leave_timeSpecified + { + get + { + return this._apply_leave_time != null; + } + set + { + bool flag = value == (this._apply_leave_time == null); + if (flag) + { + this._apply_leave_time = (value ? new uint?(this.apply_leave_time) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "chest_redpoint", DataFormat = DataFormat.Default)] + public bool chest_redpoint + { + get + { + return this._chest_redpoint ?? false; + } + set + { + this._chest_redpoint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chest_redpointSpecified + { + get + { + return this._chest_redpoint != null; + } + set + { + bool flag = value == (this._chest_redpoint == null); + if (flag) + { + this._chest_redpoint = (value ? new bool?(this.chest_redpoint) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "last_update_time", DataFormat = DataFormat.TwosComplement)] + public uint last_update_time + { + get + { + return this._last_update_time ?? 0u; + } + set + { + this._last_update_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_update_timeSpecified + { + get + { + return this._last_update_time != null; + } + set + { + bool flag = value == (this._last_update_time == null); + if (flag) + { + this._last_update_time = (value ? new uint?(this.last_update_time) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "compenstateTime", DataFormat = DataFormat.TwosComplement)] + public uint compenstateTime + { + get + { + return this._compenstateTime ?? 0u; + } + set + { + this._compenstateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool compenstateTimeSpecified + { + get + { + return this._compenstateTime != null; + } + set + { + bool flag = value == (this._compenstateTime == null); + if (flag) + { + this._compenstateTime = (value ? new uint?(this.compenstateTime) : null); + } + } + } + + private ulong? _partnerid; + + private uint? _last_leave_partner_time; + + private uint? _taked_chest; + + private uint? _open_shop_time; + + private uint? _apply_leave_time; + + private bool? _chest_redpoint; + + private uint? _last_update_time; + + private uint? _compenstateTime; + + private IExtension extensionObject; + + private bool ShouldSerializepartnerid() + { + return this.partneridSpecified; + } + + private void Resetpartnerid() + { + this.partneridSpecified = false; + } + + private bool ShouldSerializelast_leave_partner_time() + { + return this.last_leave_partner_timeSpecified; + } + + private void Resetlast_leave_partner_time() + { + this.last_leave_partner_timeSpecified = false; + } + + private bool ShouldSerializetaked_chest() + { + return this.taked_chestSpecified; + } + + private void Resettaked_chest() + { + this.taked_chestSpecified = false; + } + + private bool ShouldSerializeopen_shop_time() + { + return this.open_shop_timeSpecified; + } + + private void Resetopen_shop_time() + { + this.open_shop_timeSpecified = false; + } + + private bool ShouldSerializeapply_leave_time() + { + return this.apply_leave_timeSpecified; + } + + private void Resetapply_leave_time() + { + this.apply_leave_timeSpecified = false; + } + + private bool ShouldSerializechest_redpoint() + { + return this.chest_redpointSpecified; + } + + private void Resetchest_redpoint() + { + this.chest_redpointSpecified = false; + } + + private bool ShouldSerializelast_update_time() + { + return this.last_update_timeSpecified; + } + + private void Resetlast_update_time() + { + this.last_update_timeSpecified = false; + } + + private bool ShouldSerializecompenstateTime() + { + return this.compenstateTimeSpecified; + } + + private void ResetcompenstateTime() + { + this.compenstateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RolePartnerData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RolePartnerData.cs.meta new file mode 100644 index 00000000..e4142405 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RolePartnerData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24dcc5132e5e9d149b810ff899ca5c95 +timeCreated: 1611403462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RolePushInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RolePushInfo.cs new file mode 100644 index 00000000..d25a6524 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RolePushInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RolePushInfo")] + [Serializable] + public class RolePushInfo : IExtensible + { + [ProtoMember(1, Name = "infos", DataFormat = DataFormat.Default)] + public List infos + { + get + { + return this._infos; + } + } + + [ProtoMember(2, Name = "configs", DataFormat = DataFormat.Default)] + public List configs + { + get + { + return this._configs; + } + } + + private readonly List _infos = new List(); + + private readonly List _configs = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RolePushInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RolePushInfo.cs.meta new file mode 100644 index 00000000..1e462463 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RolePushInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 653fb142dd468cd4b8ff1156b282b12d +timeCreated: 1611403849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleRiskInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleRiskInfo.cs new file mode 100644 index 00000000..b1a9916a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleRiskInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleRiskInfo")] + [Serializable] + public class RoleRiskInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mapID", DataFormat = DataFormat.TwosComplement)] + public int mapID + { + get + { + return this._mapID ?? 0; + } + set + { + this._mapID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mapIDSpecified + { + get + { + return this._mapID != null; + } + set + { + bool flag = value == (this._mapID == null); + if (flag) + { + this._mapID = (value ? new int?(this.mapID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "gridType", DataFormat = DataFormat.TwosComplement)] + public int gridType + { + get + { + return this._gridType ?? 0; + } + set + { + this._gridType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gridTypeSpecified + { + get + { + return this._gridType != null; + } + set + { + bool flag = value == (this._gridType == null); + if (flag) + { + this._gridType = (value ? new int?(this.gridType) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public int sceneID + { + get + { + return this._sceneID ?? 0; + } + set + { + this._sceneID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new int?(this.sceneID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "canBuy", DataFormat = DataFormat.Default)] + public bool canBuy + { + get + { + return this._canBuy ?? false; + } + set + { + this._canBuy = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canBuySpecified + { + get + { + return this._canBuy != null; + } + set + { + bool flag = value == (this._canBuy == null); + if (flag) + { + this._canBuy = (value ? new bool?(this.canBuy) : null); + } + } + } + + private int? _mapID; + + private int? _gridType; + + private int? _sceneID; + + private bool? _canBuy; + + private IExtension extensionObject; + + private bool ShouldSerializemapID() + { + return this.mapIDSpecified; + } + + private void ResetmapID() + { + this.mapIDSpecified = false; + } + + private bool ShouldSerializegridType() + { + return this.gridTypeSpecified; + } + + private void ResetgridType() + { + this.gridTypeSpecified = false; + } + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializecanBuy() + { + return this.canBuySpecified; + } + + private void ResetcanBuy() + { + this.canBuySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleRiskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleRiskInfo.cs.meta new file mode 100644 index 00000000..4ab9776f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleRiskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7786ee49bbc4f8e46aa5e7646635d43f +timeCreated: 1611403954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs new file mode 100644 index 00000000..8632959c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleSmallInfo")] + [Serializable] + public class RoleSmallInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleName", DataFormat = DataFormat.Default)] + public string roleName + { + get + { + return this._roleName ?? ""; + } + set + { + this._roleName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleNameSpecified + { + get + { + return this._roleName != null; + } + set + { + bool flag = value == (this._roleName == null); + if (flag) + { + this._roleName = (value ? this.roleName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleLevel", DataFormat = DataFormat.TwosComplement)] + public uint roleLevel + { + get + { + return this._roleLevel ?? 0u; + } + set + { + this._roleLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleLevelSpecified + { + get + { + return this._roleLevel != null; + } + set + { + bool flag = value == (this._roleLevel == null); + if (flag) + { + this._roleLevel = (value ? new uint?(this.roleLevel) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "roleProfession", DataFormat = DataFormat.TwosComplement)] + public uint roleProfession + { + get + { + return this._roleProfession ?? 0u; + } + set + { + this._roleProfession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleProfessionSpecified + { + get + { + return this._roleProfession != null; + } + set + { + bool flag = value == (this._roleProfession == null); + if (flag) + { + this._roleProfession = (value ? new uint?(this.roleProfession) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "rolePPT", DataFormat = DataFormat.TwosComplement)] + public uint rolePPT + { + get + { + return this._rolePPT ?? 0u; + } + set + { + this._rolePPT = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolePPTSpecified + { + get + { + return this._rolePPT != null; + } + set + { + bool flag = value == (this._rolePPT == null); + if (flag) + { + this._rolePPT = (value ? new uint?(this.rolePPT) : null); + } + } + } + + private ulong? _roleID; + + private string _roleName; + + private uint? _roleLevel; + + private uint? _roleProfession; + + private uint? _rolePPT; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializeroleName() + { + return this.roleNameSpecified; + } + + private void ResetroleName() + { + this.roleNameSpecified = false; + } + + private bool ShouldSerializeroleLevel() + { + return this.roleLevelSpecified; + } + + private void ResetroleLevel() + { + this.roleLevelSpecified = false; + } + + private bool ShouldSerializeroleProfession() + { + return this.roleProfessionSpecified; + } + + private void ResetroleProfession() + { + this.roleProfessionSpecified = false; + } + + private bool ShouldSerializerolePPT() + { + return this.rolePPTSpecified; + } + + private void ResetrolePPT() + { + this.rolePPTSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs.meta new file mode 100644 index 00000000..1edaf8f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleSmallInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb721f0bb66df7d46b1ac3c7ed591748 +timeCreated: 1611404545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleState.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleState.cs new file mode 100644 index 00000000..08cd63c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleState")] + public enum RoleState + { + [ProtoEnum(Name = "Logoff", Value = 0)] + Logoff, + [ProtoEnum(Name = "LoadScene", Value = 1)] + LoadScene, + [ProtoEnum(Name = "InHall", Value = 2)] + InHall, + [ProtoEnum(Name = "InBattle", Value = 3)] + InBattle + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleState.cs.meta new file mode 100644 index 00000000..9389717c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eab37a8a18f21cb49b521490ea5c2e5c +timeCreated: 1611404780 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleStateMatch.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateMatch.cs new file mode 100644 index 00000000..5400d6e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateMatch.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleStateMatch")] + [Serializable] + public class RoleStateMatch : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "IsMatching", DataFormat = DataFormat.Default)] + public bool IsMatching + { + get + { + return this._IsMatching ?? false; + } + set + { + this._IsMatching = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IsMatchingSpecified + { + get + { + return this._IsMatching != null; + } + set + { + bool flag = value == (this._IsMatching == null); + if (flag) + { + this._IsMatching = (value ? new bool?(this.IsMatching) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "stopmatchreason1", DataFormat = DataFormat.TwosComplement)] + public StopMatchReason stopmatchreason1 + { + get + { + return this._stopmatchreason1 ?? StopMatchReason.STOPMATCH_NONE; + } + set + { + this._stopmatchreason1 = new StopMatchReason?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stopmatchreason1Specified + { + get + { + return this._stopmatchreason1 != null; + } + set + { + bool flag = value == (this._stopmatchreason1 == null); + if (flag) + { + this._stopmatchreason1 = (value ? new StopMatchReason?(this.stopmatchreason1) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "matchtype", DataFormat = DataFormat.TwosComplement)] + public KMatchType matchtype + { + get + { + return this._matchtype ?? KMatchType.KMT_NONE; + } + set + { + this._matchtype = new KMatchType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool matchtypeSpecified + { + get + { + return this._matchtype != null; + } + set + { + bool flag = value == (this._matchtype == null); + if (flag) + { + this._matchtype = (value ? new KMatchType?(this.matchtype) : null); + } + } + } + + private bool? _IsMatching; + + private StopMatchReason? _stopmatchreason1; + + private KMatchType? _matchtype; + + private IExtension extensionObject; + + private bool ShouldSerializeIsMatching() + { + return this.IsMatchingSpecified; + } + + private void ResetIsMatching() + { + this.IsMatchingSpecified = false; + } + + private bool ShouldSerializestopmatchreason1() + { + return this.stopmatchreason1Specified; + } + + private void Resetstopmatchreason1() + { + this.stopmatchreason1Specified = false; + } + + private bool ShouldSerializematchtype() + { + return this.matchtypeSpecified; + } + + private void Resetmatchtype() + { + this.matchtypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleStateMatch.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateMatch.cs.meta new file mode 100644 index 00000000..8a92ff90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateMatch.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac5604f8a487284458b86c68349d4b81 +timeCreated: 1611404330 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateNtf.cs new file mode 100644 index 00000000..276c30c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateNtf.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleStateNtf")] + [Serializable] + public class RoleStateNtf : IExtensible + { + [ProtoMember(1, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + [ProtoMember(2, Name = "state", DataFormat = DataFormat.TwosComplement)] + public List state + { + get + { + return this._state; + } + } + + [ProtoMember(3, Name = "timelastlogin", DataFormat = DataFormat.TwosComplement)] + public List timelastlogin + { + get + { + return this._timelastlogin; + } + } + + private readonly List _roleid = new List(); + + private readonly List _state = new List(); + + private readonly List _timelastlogin = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateNtf.cs.meta new file mode 100644 index 00000000..39a6096f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b3dc91730082c84d9c86dbbc81da790 +timeCreated: 1611404094 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleStateReport.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateReport.cs new file mode 100644 index 00000000..ff88b200 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateReport.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleStateReport")] + [Serializable] + public class RoleStateReport : IExtensible + { + [ProtoMember(1, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + [ProtoMember(2, Name = "state", DataFormat = DataFormat.TwosComplement)] + public List state + { + get + { + return this._state; + } + } + + [ProtoMember(3, Name = "timelastlogin", DataFormat = DataFormat.TwosComplement)] + public List timelastlogin + { + get + { + return this._timelastlogin; + } + } + + private readonly List _roleid = new List(); + + private readonly List _state = new List(); + + private readonly List _timelastlogin = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleStateReport.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateReport.cs.meta new file mode 100644 index 00000000..fae5401c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleStateReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0aaae20c73b434e4f90bd3ce30c2d106 +timeCreated: 1611403165 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleSystem.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleSystem.cs new file mode 100644 index 00000000..0ffa70b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleSystem.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleSystem")] + [Serializable] + public class RoleSystem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "system", DataFormat = DataFormat.Default)] + public byte[] system + { + get + { + return this._system ?? null; + } + set + { + this._system = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool systemSpecified + { + get + { + return this._system != null; + } + set + { + bool flag = value == (this._system == null); + if (flag) + { + this._system = (value ? this.system : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "firsttime", DataFormat = DataFormat.Default)] + public byte[] firsttime + { + get + { + return this._firsttime ?? null; + } + set + { + this._firsttime = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firsttimeSpecified + { + get + { + return this._firsttime != null; + } + set + { + bool flag = value == (this._firsttime == null); + if (flag) + { + this._firsttime = (value ? this.firsttime : null); + } + } + } + + [ProtoMember(3, Name = "opentime", DataFormat = DataFormat.Default)] + public List opentime + { + get + { + return this._opentime; + } + } + + private byte[] _system; + + private byte[] _firsttime; + + private readonly List _opentime = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializesystem() + { + return this.systemSpecified; + } + + private void Resetsystem() + { + this.systemSpecified = false; + } + + private bool ShouldSerializefirsttime() + { + return this.firsttimeSpecified; + } + + private void Resetfirsttime() + { + this.firsttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleSystem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleSystem.cs.meta new file mode 100644 index 00000000..a60ae1fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleSystem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d50435133397e2438776c0d2e7be47a +timeCreated: 1611403352 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs new file mode 100644 index 00000000..43b8c328 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs @@ -0,0 +1,585 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleTask")] + [Serializable] + public class RoleTask : IExtensible + { + [ProtoMember(1, Name = "tasks", DataFormat = DataFormat.Default)] + public List tasks + { + get + { + return this._tasks; + } + } + + [ProtoMember(2, Name = "finished", DataFormat = DataFormat.TwosComplement)] + public List finished + { + get + { + return this._finished; + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateTime + { + get + { + return this._lastUpdateTime ?? 0u; + } + set + { + this._lastUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateTimeSpecified + { + get + { + return this._lastUpdateTime != null; + } + set + { + bool flag = value == (this._lastUpdateTime == null); + if (flag) + { + this._lastUpdateTime = (value ? new uint?(this.lastUpdateTime) : null); + } + } + } + + [ProtoMember(4, Name = "dailytask", DataFormat = DataFormat.Default)] + public List dailytask + { + get + { + return this._dailytask; + } + } + + [ProtoMember(5, IsRequired = false, Name = "daily_count", DataFormat = DataFormat.TwosComplement)] + public uint daily_count + { + get + { + return this._daily_count ?? 0u; + } + set + { + this._daily_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daily_countSpecified + { + get + { + return this._daily_count != null; + } + set + { + bool flag = value == (this._daily_count == null); + if (flag) + { + this._daily_count = (value ? new uint?(this.daily_count) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "daily_accept_level", DataFormat = DataFormat.TwosComplement)] + public uint daily_accept_level + { + get + { + return this._daily_accept_level ?? 0u; + } + set + { + this._daily_accept_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daily_accept_levelSpecified + { + get + { + return this._daily_accept_level != null; + } + set + { + bool flag = value == (this._daily_accept_level == null); + if (flag) + { + this._daily_accept_level = (value ? new uint?(this.daily_accept_level) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "daily_rewarded", DataFormat = DataFormat.Default)] + public bool daily_rewarded + { + get + { + return this._daily_rewarded ?? false; + } + set + { + this._daily_rewarded = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daily_rewardedSpecified + { + get + { + return this._daily_rewarded != null; + } + set + { + bool flag = value == (this._daily_rewarded == null); + if (flag) + { + this._daily_rewarded = (value ? new bool?(this.daily_rewarded) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "daily_complete_num", DataFormat = DataFormat.TwosComplement)] + public uint daily_complete_num + { + get + { + return this._daily_complete_num ?? 0u; + } + set + { + this._daily_complete_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daily_complete_numSpecified + { + get + { + return this._daily_complete_num != null; + } + set + { + bool flag = value == (this._daily_complete_num == null); + if (flag) + { + this._daily_complete_num = (value ? new uint?(this.daily_complete_num) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "daily_red_point", DataFormat = DataFormat.Default)] + public bool daily_red_point + { + get + { + return this._daily_red_point ?? false; + } + set + { + this._daily_red_point = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daily_red_pointSpecified + { + get + { + return this._daily_red_point != null; + } + set + { + bool flag = value == (this._daily_red_point == null); + if (flag) + { + this._daily_red_point = (value ? new bool?(this.daily_red_point) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "daily_askhelp_num", DataFormat = DataFormat.TwosComplement)] + public uint daily_askhelp_num + { + get + { + return this._daily_askhelp_num ?? 0u; + } + set + { + this._daily_askhelp_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daily_askhelp_numSpecified + { + get + { + return this._daily_askhelp_num != null; + } + set + { + bool flag = value == (this._daily_askhelp_num == null); + if (flag) + { + this._daily_askhelp_num = (value ? new uint?(this.daily_askhelp_num) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "today_donate_count", DataFormat = DataFormat.TwosComplement)] + public uint today_donate_count + { + get + { + return this._today_donate_count ?? 0u; + } + set + { + this._today_donate_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool today_donate_countSpecified + { + get + { + return this._today_donate_count != null; + } + set + { + bool flag = value == (this._today_donate_count == null); + if (flag) + { + this._today_donate_count = (value ? new uint?(this.today_donate_count) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "total_donate_count", DataFormat = DataFormat.TwosComplement)] + public uint total_donate_count + { + get + { + return this._total_donate_count ?? 0u; + } + set + { + this._total_donate_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool total_donate_countSpecified + { + get + { + return this._total_donate_count != null; + } + set + { + bool flag = value == (this._total_donate_count == null); + if (flag) + { + this._total_donate_count = (value ? new uint?(this.total_donate_count) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "dailyaccept", DataFormat = DataFormat.Default)] + public bool dailyaccept + { + get + { + return this._dailyaccept ?? false; + } + set + { + this._dailyaccept = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dailyacceptSpecified + { + get + { + return this._dailyaccept != null; + } + set + { + bool flag = value == (this._dailyaccept == null); + if (flag) + { + this._dailyaccept = (value ? new bool?(this.dailyaccept) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "weekrecord", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeeklyTaskData weekrecord + { + get + { + return this._weekrecord; + } + set + { + this._weekrecord = value; + } + } + + [ProtoMember(15, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "luck", DataFormat = DataFormat.TwosComplement)] + public uint luck + { + get + { + return this._luck ?? 0u; + } + set + { + this._luck = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool luckSpecified + { + get + { + return this._luck != null; + } + set + { + bool flag = value == (this._luck == null); + if (flag) + { + this._luck = (value ? new uint?(this.luck) : null); + } + } + } + + private readonly List _tasks = new List(); + + private readonly List _finished = new List(); + + private uint? _lastUpdateTime; + + private readonly List _dailytask = new List(); + + private uint? _daily_count; + + private uint? _daily_accept_level; + + private bool? _daily_rewarded; + + private uint? _daily_complete_num; + + private bool? _daily_red_point; + + private uint? _daily_askhelp_num; + + private uint? _today_donate_count; + + private uint? _total_donate_count; + + private bool? _dailyaccept; + + private WeeklyTaskData _weekrecord = null; + + private uint? _score; + + private uint? _luck; + + private IExtension extensionObject; + + private bool ShouldSerializelastUpdateTime() + { + return this.lastUpdateTimeSpecified; + } + + private void ResetlastUpdateTime() + { + this.lastUpdateTimeSpecified = false; + } + + private bool ShouldSerializedaily_count() + { + return this.daily_countSpecified; + } + + private void Resetdaily_count() + { + this.daily_countSpecified = false; + } + + private bool ShouldSerializedaily_accept_level() + { + return this.daily_accept_levelSpecified; + } + + private void Resetdaily_accept_level() + { + this.daily_accept_levelSpecified = false; + } + + private bool ShouldSerializedaily_rewarded() + { + return this.daily_rewardedSpecified; + } + + private void Resetdaily_rewarded() + { + this.daily_rewardedSpecified = false; + } + + private bool ShouldSerializedaily_complete_num() + { + return this.daily_complete_numSpecified; + } + + private void Resetdaily_complete_num() + { + this.daily_complete_numSpecified = false; + } + + private bool ShouldSerializedaily_red_point() + { + return this.daily_red_pointSpecified; + } + + private void Resetdaily_red_point() + { + this.daily_red_pointSpecified = false; + } + + private bool ShouldSerializedaily_askhelp_num() + { + return this.daily_askhelp_numSpecified; + } + + private void Resetdaily_askhelp_num() + { + this.daily_askhelp_numSpecified = false; + } + + private bool ShouldSerializetoday_donate_count() + { + return this.today_donate_countSpecified; + } + + private void Resettoday_donate_count() + { + this.today_donate_countSpecified = false; + } + + private bool ShouldSerializetotal_donate_count() + { + return this.total_donate_countSpecified; + } + + private void Resettotal_donate_count() + { + this.total_donate_countSpecified = false; + } + + private bool ShouldSerializedailyaccept() + { + return this.dailyacceptSpecified; + } + + private void Resetdailyaccept() + { + this.dailyacceptSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializeluck() + { + return this.luckSpecified; + } + + private void Resetluck() + { + this.luckSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs.meta new file mode 100644 index 00000000..9afdaf96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c93ca406a31e19a43af2007e76d5f589 +timeCreated: 1611404537 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs new file mode 100644 index 00000000..e361842b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleTeamCostInfo")] + [Serializable] + public class RoleTeamCostInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "expid", DataFormat = DataFormat.TwosComplement)] + public uint expid + { + get + { + return this._expid ?? 0u; + } + set + { + this._expid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expidSpecified + { + get + { + return this._expid != null; + } + set + { + bool flag = value == (this._expid == null); + if (flag) + { + this._expid = (value ? new uint?(this.expid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "costindex", DataFormat = DataFormat.TwosComplement)] + public uint costindex + { + get + { + return this._costindex ?? 0u; + } + set + { + this._costindex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costindexSpecified + { + get + { + return this._costindex != null; + } + set + { + bool flag = value == (this._costindex == null); + if (flag) + { + this._costindex = (value ? new uint?(this.costindex) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dragoncount", DataFormat = DataFormat.TwosComplement)] + public uint dragoncount + { + get + { + return this._dragoncount ?? 0u; + } + set + { + this._dragoncount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragoncountSpecified + { + get + { + return this._dragoncount != null; + } + set + { + bool flag = value == (this._dragoncount == null); + if (flag) + { + this._dragoncount = (value ? new uint?(this.dragoncount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "updateday", DataFormat = DataFormat.TwosComplement)] + public uint updateday + { + get + { + return this._updateday ?? 0u; + } + set + { + this._updateday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatedaySpecified + { + get + { + return this._updateday != null; + } + set + { + bool flag = value == (this._updateday == null); + if (flag) + { + this._updateday = (value ? new uint?(this.updateday) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "getgiftvalue", DataFormat = DataFormat.TwosComplement)] + public uint getgiftvalue + { + get + { + return this._getgiftvalue ?? 0u; + } + set + { + this._getgiftvalue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getgiftvalueSpecified + { + get + { + return this._getgiftvalue != null; + } + set + { + bool flag = value == (this._getgiftvalue == null); + if (flag) + { + this._getgiftvalue = (value ? new uint?(this.getgiftvalue) : null); + } + } + } + + private uint? _expid; + + private uint? _costindex; + + private uint? _dragoncount; + + private uint? _updateday; + + private uint? _getgiftvalue; + + private IExtension extensionObject; + + private bool ShouldSerializeexpid() + { + return this.expidSpecified; + } + + private void Resetexpid() + { + this.expidSpecified = false; + } + + private bool ShouldSerializecostindex() + { + return this.costindexSpecified; + } + + private void Resetcostindex() + { + this.costindexSpecified = false; + } + + private bool ShouldSerializedragoncount() + { + return this.dragoncountSpecified; + } + + private void Resetdragoncount() + { + this.dragoncountSpecified = false; + } + + private bool ShouldSerializeupdateday() + { + return this.updatedaySpecified; + } + + private void Resetupdateday() + { + this.updatedaySpecified = false; + } + + private bool ShouldSerializegetgiftvalue() + { + return this.getgiftvalueSpecified; + } + + private void Resetgetgiftvalue() + { + this.getgiftvalueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs.meta new file mode 100644 index 00000000..8c59f0d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleTeamCostInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 909a542a7226eb34bad5ef1ff17ce18c +timeCreated: 1611404139 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs b/Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs new file mode 100644 index 00000000..620c7ef8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs @@ -0,0 +1,172 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RoleType")] + public enum RoleType + { + [ProtoEnum(Name = "Role_INVALID", Value = 0)] + Role_INVALID, + [ProtoEnum(Name = "Role_Warrior", Value = 1)] + Role_Warrior, + [ProtoEnum(Name = "Role_Archer", Value = 2)] + Role_Archer, + [ProtoEnum(Name = "Role_Sorceress", Value = 3)] + Role_Sorceress, + [ProtoEnum(Name = "Role_Cleric", Value = 4)] + Role_Cleric, + [ProtoEnum(Name = "Role_Academic", Value = 5)] + Role_Academic, + [ProtoEnum(Name = "Role_Swordsman", Value = 11)] + Role_Swordsman = 11, + [ProtoEnum(Name = "Role_Mercenary", Value = 21)] + Role_Mercenary = 21, + [ProtoEnum(Name = "Role_Sharpshooter", Value = 12)] + Role_Sharpshooter = 12, + [ProtoEnum(Name = "Role_Acrobat", Value = 22)] + Role_Acrobat = 22, + [ProtoEnum(Name = "Role_Elementalist", Value = 13)] + Role_Elementalist = 13, + [ProtoEnum(Name = "Role_Mystic", Value = 23)] + Role_Mystic = 23, + [ProtoEnum(Name = "Role_Paladin", Value = 14)] + Role_Paladin = 14, + [ProtoEnum(Name = "Role_Priest", Value = 24)] + Role_Priest = 24, + [ProtoEnum(Name = "Role_Engineer", Value = 15)] + Role_Engineer = 15, + [ProtoEnum(Name = "Role_Alchemist", Value = 25)] + Role_Alchemist = 25, + [ProtoEnum(Name = "Role_Gladiator", Value = 111)] + Role_Gladiator = 111, + [ProtoEnum(Name = "Role_Moonlord", Value = 211)] + Role_Moonlord = 211, + [ProtoEnum(Name = "Role_Destroyer", Value = 121)] + Role_Destroyer = 121, + [ProtoEnum(Name = "Role_Barbarian", Value = 221)] + Role_Barbarian = 221, + [ProtoEnum(Name = "Role_Sniper", Value = 112)] + Role_Sniper = 112, + [ProtoEnum(Name = "Role_Artillery", Value = 212)] + Role_Artillery = 212, + [ProtoEnum(Name = "Role_Tempest", Value = 122)] + Role_Tempest = 122, + [ProtoEnum(Name = "Role_Windwalker", Value = 222)] + Role_Windwalker = 222, + [ProtoEnum(Name = "Role_Saleana", Value = 113)] + Role_Saleana = 113, + [ProtoEnum(Name = "Role_Elestra", Value = 213)] + Role_Elestra = 213, + [ProtoEnum(Name = "Role_Smasher", Value = 123)] + Role_Smasher = 123, + [ProtoEnum(Name = "Role_Majesty", Value = 223)] + Role_Majesty = 223, + [ProtoEnum(Name = "Role_Guardian", Value = 114)] + Role_Guardian = 114, + [ProtoEnum(Name = "Role_Crusader", Value = 214)] + Role_Crusader = 214, + [ProtoEnum(Name = "Role_Saint", Value = 124)] + Role_Saint = 124, + [ProtoEnum(Name = "Role_Inquistior", Value = 224)] + Role_Inquistior = 224, + [ProtoEnum(Name = "Role_Shootingstar", Value = 115)] + Role_Shootingstar = 115, + [ProtoEnum(Name = "Role_Gearmaster", Value = 215)] + Role_Gearmaster = 215, + [ProtoEnum(Name = "Role_Adept", Value = 125)] + Role_Adept = 125, + [ProtoEnum(Name = "Role_Physician", Value = 225)] + Role_Physician = 225, + [ProtoEnum(Name = "Role_Assassin", Value = 6)] + Role_Assassin = 6, + [ProtoEnum(Name = "Role_Shinobi", Value = 16)] + Role_Shinobi = 16, + [ProtoEnum(Name = "Role_Taoist", Value = 26)] + Role_Taoist = 26, + [ProtoEnum(Name = "Role_Reaper", Value = 116)] + Role_Reaper = 116, + [ProtoEnum(Name = "Role_Raven", Value = 216)] + Role_Raven = 216, + [ProtoEnum(Name = "Role_LightBringer", Value = 126)] + Role_LightBringer = 126, + [ProtoEnum(Name = "Role_AbyssWalker", Value = 226)] + Role_AbyssWalker = 226, + [ProtoEnum(Name = "Role_Kali", Value = 7)] + Role_Kali = 7, + [ProtoEnum(Name = "Role_Screamer", Value = 17)] + Role_Screamer = 17, + [ProtoEnum(Name = "Role_Dancer", Value = 27)] + Role_Dancer = 27, + [ProtoEnum(Name = "Role_SoulEater", Value = 117)] + Role_SoulEater = 117, + [ProtoEnum(Name = "Role_DarkSummoner", Value = 217)] + Role_DarkSummoner = 217, + [ProtoEnum(Name = "Role_SpiritDancer", Value = 127)] + Role_SpiritDancer = 127, + [ProtoEnum(Name = "Role_BladeDancer", Value = 227)] + Role_BladeDancer = 227, + [ProtoEnum(Name = "Role_AwakeGladiator", Value = 1111)] + Role_AwakeGladiator = 1111, + [ProtoEnum(Name = "Role_AwakeMoonLord", Value = 1211)] + Role_AwakeMoonLord = 1211, + [ProtoEnum(Name = "Role_AwakeDestroyer", Value = 1121)] + Role_AwakeDestroyer = 1121, + [ProtoEnum(Name = "Role_AwakeBarbarian", Value = 1221)] + Role_AwakeBarbarian = 1221, + [ProtoEnum(Name = "Role_AwakeSniper", Value = 1112)] + Role_AwakeSniper = 1112, + [ProtoEnum(Name = "Role_AwakeArtillery", Value = 1212)] + Role_AwakeArtillery = 1212, + [ProtoEnum(Name = "Role_AwakeTempest", Value = 1122)] + Role_AwakeTempest = 1122, + [ProtoEnum(Name = "Role_AwakeWindwalker", Value = 1222)] + Role_AwakeWindwalker = 1222, + [ProtoEnum(Name = "Role_AwakeSaleana", Value = 1113)] + Role_AwakeSaleana = 1113, + [ProtoEnum(Name = "Role_AwakeElestra", Value = 1213)] + Role_AwakeElestra = 1213, + [ProtoEnum(Name = "Role_AwakeSmasher", Value = 1123)] + Role_AwakeSmasher = 1123, + [ProtoEnum(Name = "Role_AwakeMajesty", Value = 1223)] + Role_AwakeMajesty = 1223, + [ProtoEnum(Name = "Role_AwakeGuardian", Value = 1114)] + Role_AwakeGuardian = 1114, + [ProtoEnum(Name = "Role_AwakeCrusader", Value = 1214)] + Role_AwakeCrusader = 1214, + [ProtoEnum(Name = "Role_AwakeSaint", Value = 1124)] + Role_AwakeSaint = 1124, + [ProtoEnum(Name = "Role_AwakeInquistior", Value = 1224)] + Role_AwakeInquistior = 1224, + [ProtoEnum(Name = "Role_AwakeShootingstar", Value = 1115)] + Role_AwakeShootingstar = 1115, + [ProtoEnum(Name = "Role_AwakeGearmaster", Value = 1215)] + Role_AwakeGearmaster = 1215, + [ProtoEnum(Name = "Role_AwakeAdept", Value = 1125)] + Role_AwakeAdept = 1125, + [ProtoEnum(Name = "Role_AwakePhysician", Value = 1225)] + Role_AwakePhysician = 1225, + [ProtoEnum(Name = "Role_AwakeReaper", Value = 1116)] + Role_AwakeReaper = 1116, + [ProtoEnum(Name = "Role_AwakeRaven", Value = 1216)] + Role_AwakeRaven = 1216, + [ProtoEnum(Name = "Role_AwakeLightBringer", Value = 1126)] + Role_AwakeLightBringer = 1126, + [ProtoEnum(Name = "Role_AwakeAbyssWalker", Value = 1226)] + Role_AwakeAbyssWalker = 1226, + [ProtoEnum(Name = "Role_AwakeSoulEater", Value = 1117)] + Role_AwakeSoulEater = 1117, + [ProtoEnum(Name = "Role_AwakeDarkSummoner", Value = 1217)] + Role_AwakeDarkSummoner = 1217, + [ProtoEnum(Name = "Role_AwakeSpiritDancer", Value = 1127)] + Role_AwakeSpiritDancer = 1127, + [ProtoEnum(Name = "Role_AwakeBladeDancer", Value = 1227)] + Role_AwakeBladeDancer = 1227, + [ProtoEnum(Name = "Role_Avenger", Value = 31)] + Role_Avenger = 31, + [ProtoEnum(Name = "Role_DarkAvenger", Value = 131)] + Role_DarkAvenger = 131, + [ProtoEnum(Name = "Role_AwakeDarkAvenger", Value = 1131)] + Role_AwakeDarkAvenger = 1131 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs.meta new file mode 100644 index 00000000..beb9b24d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RoleType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e5d3abb8ae594f4d937c7c623413958 +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs new file mode 100644 index 00000000..5b0e1edf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RollInfo")] + [Serializable] + public class RollInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rollValue", DataFormat = DataFormat.TwosComplement)] + public uint rollValue + { + get + { + return this._rollValue ?? 0u; + } + set + { + this._rollValue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rollValueSpecified + { + get + { + return this._rollValue != null; + } + set + { + bool flag = value == (this._rollValue == null); + if (flag) + { + this._rollValue = (value ? new uint?(this.rollValue) : null); + } + } + } + + private ulong? _roleID; + + private uint? _rollValue; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializerollValue() + { + return this.rollValueSpecified; + } + + private void ResetrollValue() + { + this.rollValueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs.meta new file mode 100644 index 00000000..21860d54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RollInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3c2a181baa5acd4ebfb2cad5bf86a75 +timeCreated: 1611404600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs new file mode 100644 index 00000000..4eb1ba64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "RollInfoRes")] + [Serializable] + public class RollInfoRes : IExtensible + { + [ProtoMember(1, Name = "info", DataFormat = DataFormat.Default)] + public List info + { + get + { + return this._info; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errCode + { + get + { + return this._errCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errCodeSpecified + { + get + { + return this._errCode != null; + } + set + { + bool flag = value == (this._errCode == null); + if (flag) + { + this._errCode = (value ? new ErrorCode?(this.errCode) : null); + } + } + } + + private readonly List _info = new List(); + + private ErrorCode? _errCode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrCode() + { + return this.errCodeSpecified; + } + + private void ReseterrCode() + { + this.errCodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs.meta new file mode 100644 index 00000000..5f7a928a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/RollInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07d629f951622394ba10d5ee0a5ac350 +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SAtlasRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SAtlasRecord.cs new file mode 100644 index 00000000..1aefe0d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SAtlasRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SAtlasRecord")] + [Serializable] + public class SAtlasRecord : IExtensible + { + [ProtoMember(1, Name = "atlas", DataFormat = DataFormat.TwosComplement)] + public List atlas + { + get + { + return this._atlas; + } + } + + [ProtoMember(2, Name = "finishdata", DataFormat = DataFormat.Default)] + public List finishdata + { + get + { + return this._finishdata; + } + } + + private readonly List _atlas = new List(); + + private readonly List _finishdata = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SAtlasRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SAtlasRecord.cs.meta new file mode 100644 index 00000000..3571970c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SAtlasRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0dcd7eade4b26494ba924ea267b4226d +timeCreated: 1611403198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs new file mode 100644 index 00000000..5724facb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SBuffRecord")] + [Serializable] + public class SBuffRecord : IExtensible + { + [ProtoMember(1, Name = "buffs", DataFormat = DataFormat.Default)] + public List buffs + { + get + { + return this._buffs; + } + } + + [ProtoMember(2, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(3, IsRequired = false, Name = "transbuff", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public STransformBuff transbuff + { + get + { + return this._transbuff; + } + set + { + this._transbuff = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "smallbuff", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public STransformBuff smallbuff + { + get + { + return this._smallbuff; + } + set + { + this._smallbuff = value; + } + } + + private readonly List _buffs = new List(); + + private readonly List _items = new List(); + + private STransformBuff _transbuff = null; + + private STransformBuff _smallbuff = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs.meta new file mode 100644 index 00000000..4c633958 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SBuffRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb6ebb57823a5e6499fb8bf0bc445bc4 +timeCreated: 1611404441 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoomInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoomInfo.cs new file mode 100644 index 00000000..2d8b80dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoomInfo.cs @@ -0,0 +1,223 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SCEliRoomInfo")] + [Serializable] + public class SCEliRoomInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roomid", DataFormat = DataFormat.TwosComplement)] + public uint roomid + { + get + { + return this._roomid ?? 0u; + } + set + { + this._roomid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roomidSpecified + { + get + { + return this._roomid != null; + } + set + { + bool flag = value == (this._roomid == null); + if (flag) + { + this._roomid = (value ? new uint?(this.roomid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "team1", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SCEliTeamInfo team1 + { + get + { + return this._team1; + } + set + { + this._team1 = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "team2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SCEliTeamInfo team2 + { + get + { + return this._team2; + } + set + { + this._team2 = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public LBEleRoomState state + { + get + { + return this._state ?? LBEleRoomState.LBEleRoomState_Idle; + } + set + { + this._state = new LBEleRoomState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new LBEleRoomState?(this.state) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "win_stid", DataFormat = DataFormat.TwosComplement)] + public ulong win_stid + { + get + { + return this._win_stid ?? 0UL; + } + set + { + this._win_stid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool win_stidSpecified + { + get + { + return this._win_stid != null; + } + set + { + bool flag = value == (this._win_stid == null); + if (flag) + { + this._win_stid = (value ? new ulong?(this.win_stid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "liveid", DataFormat = DataFormat.TwosComplement)] + public uint liveid + { + get + { + return this._liveid ?? 0u; + } + set + { + this._liveid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool liveidSpecified + { + get + { + return this._liveid != null; + } + set + { + bool flag = value == (this._liveid == null); + if (flag) + { + this._liveid = (value ? new uint?(this.liveid) : null); + } + } + } + + private uint? _roomid; + + private SCEliTeamInfo _team1 = null; + + private SCEliTeamInfo _team2 = null; + + private LBEleRoomState? _state; + + private ulong? _win_stid; + + private uint? _liveid; + + private IExtension extensionObject; + + private bool ShouldSerializeroomid() + { + return this.roomidSpecified; + } + + private void Resetroomid() + { + this.roomidSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializewin_stid() + { + return this.win_stidSpecified; + } + + private void Resetwin_stid() + { + this.win_stidSpecified = false; + } + + private bool ShouldSerializeliveid() + { + return this.liveidSpecified; + } + + private void Resetliveid() + { + this.liveidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoomInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoomInfo.cs.meta new file mode 100644 index 00000000..d1a6b345 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoomInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 450d76becc4a9aa4793e3d779656b7f7 +timeCreated: 1611403646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundInfo.cs new file mode 100644 index 00000000..9309639a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundInfo.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SCEliRoundInfo")] + [Serializable] + public class SCEliRoundInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "round", DataFormat = DataFormat.TwosComplement)] + public SCEliRoundType round + { + get + { + return this._round ?? SCEliRoundType.SCEliRound_None; + } + set + { + this._round = new SCEliRoundType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roundSpecified + { + get + { + return this._round != null; + } + set + { + bool flag = value == (this._round == null); + if (flag) + { + this._round = (value ? new SCEliRoundType?(this.round) : null); + } + } + } + + [ProtoMember(2, Name = "rooms", DataFormat = DataFormat.Default)] + public List rooms + { + get + { + return this._rooms; + } + } + + private SCEliRoundType? _round; + + private readonly List _rooms = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeround() + { + return this.roundSpecified; + } + + private void Resetround() + { + this.roundSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundInfo.cs.meta new file mode 100644 index 00000000..53e8b81b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83c34cae2ac2fc94899205f4bb4786c8 +timeCreated: 1611404046 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundType.cs new file mode 100644 index 00000000..68013e4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SCEliRoundType")] + public enum SCEliRoundType + { + [ProtoEnum(Name = "SCEliRound_None", Value = 0)] + SCEliRound_None, + [ProtoEnum(Name = "SCEliRound_8to4", Value = 1)] + SCEliRound_8to4, + [ProtoEnum(Name = "SCEliRound_4to2", Value = 2)] + SCEliRound_4to2, + [ProtoEnum(Name = "SCEliRound_2to1", Value = 3)] + SCEliRound_2to1 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundType.cs.meta new file mode 100644 index 00000000..fb1cc595 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SCEliRoundType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 880745d3f9fb0a44eb5eb70a35ea34c3 +timeCreated: 1611404082 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SCEliTeamInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SCEliTeamInfo.cs new file mode 100644 index 00000000..f8f10ad2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SCEliTeamInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SCEliTeamInfo")] + [Serializable] + public class SCEliTeamInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "stid", DataFormat = DataFormat.TwosComplement)] + public ulong stid + { + get + { + return this._stid ?? 0UL; + } + set + { + this._stid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stidSpecified + { + get + { + return this._stid != null; + } + set + { + bool flag = value == (this._stid == null); + if (flag) + { + this._stid = (value ? new ulong?(this.stid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ulong? _stid; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializestid() + { + return this.stidSpecified; + } + + private void Resetstid() + { + this.stidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SCEliTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SCEliTeamInfo.cs.meta new file mode 100644 index 00000000..0c28d1a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SCEliTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c65403c47ecb4544da8233ac5cfc47a9 +timeCreated: 1611404509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SChatRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SChatRecord.cs new file mode 100644 index 00000000..78bf9476 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SChatRecord.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SChatRecord")] + [Serializable] + public class SChatRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastupdatetime", DataFormat = DataFormat.TwosComplement)] + public uint lastupdatetime + { + get + { + return this._lastupdatetime ?? 0u; + } + set + { + this._lastupdatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastupdatetimeSpecified + { + get + { + return this._lastupdatetime != null; + } + set + { + bool flag = value == (this._lastupdatetime == null); + if (flag) + { + this._lastupdatetime = (value ? new uint?(this.lastupdatetime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "worldchattimes", DataFormat = DataFormat.TwosComplement)] + public uint worldchattimes + { + get + { + return this._worldchattimes ?? 0u; + } + set + { + this._worldchattimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool worldchattimesSpecified + { + get + { + return this._worldchattimes != null; + } + set + { + bool flag = value == (this._worldchattimes == null); + if (flag) + { + this._worldchattimes = (value ? new uint?(this.worldchattimes) : null); + } + } + } + + private uint? _lastupdatetime; + + private uint? _worldchattimes; + + private IExtension extensionObject; + + private bool ShouldSerializelastupdatetime() + { + return this.lastupdatetimeSpecified; + } + + private void Resetlastupdatetime() + { + this.lastupdatetimeSpecified = false; + } + + private bool ShouldSerializeworldchattimes() + { + return this.worldchattimesSpecified; + } + + private void Resetworldchattimes() + { + this.worldchattimesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SChatRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SChatRecord.cs.meta new file mode 100644 index 00000000..35b6d5ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SChatRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98604bb5b54e5ef4a82eb995f780d50d +timeCreated: 1611404190 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs b/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs new file mode 100644 index 00000000..2767bea0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs @@ -0,0 +1,816 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SMail")] + [Serializable] + public class SMail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isread", DataFormat = DataFormat.Default)] + public bool isread + { + get + { + return this._isread ?? false; + } + set + { + this._isread = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isreadSpecified + { + get + { + return this._isread != null; + } + set + { + bool flag = value == (this._isread == null); + if (flag) + { + this._isread = (value ? new bool?(this.isread) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isdelete", DataFormat = DataFormat.Default)] + public bool isdelete + { + get + { + return this._isdelete ?? false; + } + set + { + this._isdelete = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isdeleteSpecified + { + get + { + return this._isdelete != null; + } + set + { + bool flag = value == (this._isdelete == null); + if (flag) + { + this._isdelete = (value ? new bool?(this.isdelete) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "timestamp", DataFormat = DataFormat.TwosComplement)] + public uint timestamp + { + get + { + return this._timestamp ?? 0u; + } + set + { + this._timestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timestampSpecified + { + get + { + return this._timestamp != null; + } + set + { + bool flag = value == (this._timestamp == null); + if (flag) + { + this._timestamp = (value ? new uint?(this.timestamp) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "timeexpire", DataFormat = DataFormat.TwosComplement)] + public uint timeexpire + { + get + { + return this._timeexpire ?? 0u; + } + set + { + this._timeexpire = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeexpireSpecified + { + get + { + return this._timeexpire != null; + } + set + { + bool flag = value == (this._timeexpire == null); + if (flag) + { + this._timeexpire = (value ? new uint?(this.timeexpire) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "istemplate", DataFormat = DataFormat.Default)] + public bool istemplate + { + get + { + return this._istemplate ?? false; + } + set + { + this._istemplate = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool istemplateSpecified + { + get + { + return this._istemplate != null; + } + set + { + bool flag = value == (this._istemplate == null); + if (flag) + { + this._istemplate = (value ? new bool?(this.istemplate) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "srcid", DataFormat = DataFormat.TwosComplement)] + public ulong srcid + { + get + { + return this._srcid ?? 0UL; + } + set + { + this._srcid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool srcidSpecified + { + get + { + return this._srcid != null; + } + set + { + bool flag = value == (this._srcid == null); + if (flag) + { + this._srcid = (value ? new ulong?(this.srcid) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "srcname", DataFormat = DataFormat.Default)] + public string srcname + { + get + { + return this._srcname ?? ""; + } + set + { + this._srcname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool srcnameSpecified + { + get + { + return this._srcname != null; + } + set + { + bool flag = value == (this._srcname == null); + if (flag) + { + this._srcname = (value ? this.srcname : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "title", DataFormat = DataFormat.Default)] + public string title + { + get + { + return this._title ?? ""; + } + set + { + this._title = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? this.title : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "content", DataFormat = DataFormat.Default)] + public string content + { + get + { + return this._content ?? ""; + } + set + { + this._content = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contentSpecified + { + get + { + return this._content != null; + } + set + { + bool flag = value == (this._content == null); + if (flag) + { + this._content = (value ? this.content : null); + } + } + } + + [ProtoMember(13, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(14, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public int timeleft + { + get + { + return this._timeleft ?? 0; + } + set + { + this._timeleft = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new int?(this.timeleft) : null); + } + } + } + + [ProtoMember(15, Name = "xitems", DataFormat = DataFormat.Default)] + public List xitems + { + get + { + return this._xitems; + } + } + + [ProtoMember(16, IsRequired = false, Name = "reason", DataFormat = DataFormat.TwosComplement)] + public int reason + { + get + { + return this._reason ?? 0; + } + set + { + this._reason = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? new int?(this.reason) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "subreason", DataFormat = DataFormat.TwosComplement)] + public int subreason + { + get + { + return this._subreason ?? 0; + } + set + { + this._subreason = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool subreasonSpecified + { + get + { + return this._subreason != null; + } + set + { + bool flag = value == (this._subreason == null); + if (flag) + { + this._subreason = (value ? new int?(this.subreason) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "extparam", DataFormat = DataFormat.Default)] + public string extparam + { + get + { + return this._extparam ?? ""; + } + set + { + this._extparam = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extparamSpecified + { + get + { + return this._extparam != null; + } + set + { + bool flag = value == (this._extparam == null); + if (flag) + { + this._extparam = (value ? this.extparam : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "minlevel", DataFormat = DataFormat.TwosComplement)] + public int minlevel + { + get + { + return this._minlevel ?? 0; + } + set + { + this._minlevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool minlevelSpecified + { + get + { + return this._minlevel != null; + } + set + { + bool flag = value == (this._minlevel == null); + if (flag) + { + this._minlevel = (value ? new int?(this.minlevel) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "maxlevel", DataFormat = DataFormat.TwosComplement)] + public int maxlevel + { + get + { + return this._maxlevel ?? 0; + } + set + { + this._maxlevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxlevelSpecified + { + get + { + return this._maxlevel != null; + } + set + { + bool flag = value == (this._maxlevel == null); + if (flag) + { + this._maxlevel = (value ? new int?(this.maxlevel) : null); + } + } + } + + private ulong? _uid; + + private uint? _type; + + private bool? _isread; + + private bool? _isdelete; + + private uint? _state; + + private uint? _timestamp; + + private uint? _timeexpire; + + private bool? _istemplate; + + private ulong? _srcid; + + private string _srcname; + + private string _title; + + private string _content; + + private readonly List _items = new List(); + + private int? _timeleft; + + private readonly List _xitems = new List(); + + private int? _reason; + + private int? _subreason; + + private string _extparam; + + private int? _minlevel; + + private int? _maxlevel; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeisread() + { + return this.isreadSpecified; + } + + private void Resetisread() + { + this.isreadSpecified = false; + } + + private bool ShouldSerializeisdelete() + { + return this.isdeleteSpecified; + } + + private void Resetisdelete() + { + this.isdeleteSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializetimestamp() + { + return this.timestampSpecified; + } + + private void Resettimestamp() + { + this.timestampSpecified = false; + } + + private bool ShouldSerializetimeexpire() + { + return this.timeexpireSpecified; + } + + private void Resettimeexpire() + { + this.timeexpireSpecified = false; + } + + private bool ShouldSerializeistemplate() + { + return this.istemplateSpecified; + } + + private void Resetistemplate() + { + this.istemplateSpecified = false; + } + + private bool ShouldSerializesrcid() + { + return this.srcidSpecified; + } + + private void Resetsrcid() + { + this.srcidSpecified = false; + } + + private bool ShouldSerializesrcname() + { + return this.srcnameSpecified; + } + + private void Resetsrcname() + { + this.srcnameSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + private bool ShouldSerializecontent() + { + return this.contentSpecified; + } + + private void Resetcontent() + { + this.contentSpecified = false; + } + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + private bool ShouldSerializesubreason() + { + return this.subreasonSpecified; + } + + private void Resetsubreason() + { + this.subreasonSpecified = false; + } + + private bool ShouldSerializeextparam() + { + return this.extparamSpecified; + } + + private void Resetextparam() + { + this.extparamSpecified = false; + } + + private bool ShouldSerializeminlevel() + { + return this.minlevelSpecified; + } + + private void Resetminlevel() + { + this.minlevelSpecified = false; + } + + private bool ShouldSerializemaxlevel() + { + return this.maxlevelSpecified; + } + + private void Resetmaxlevel() + { + this.maxlevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs.meta new file mode 100644 index 00000000..d24f959d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9127ff51ac9be1b48a3e7ad925a2dafc +timeCreated: 1611404141 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SPetRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SPetRecord.cs new file mode 100644 index 00000000..8cbc8c36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SPetRecord.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SPetRecord")] + [Serializable] + public class SPetRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "touchStartTime", DataFormat = DataFormat.TwosComplement)] + public uint touchStartTime + { + get + { + return this._touchStartTime ?? 0u; + } + set + { + this._touchStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool touchStartTimeSpecified + { + get + { + return this._touchStartTime != null; + } + set + { + bool flag = value == (this._touchStartTime == null); + if (flag) + { + this._touchStartTime = (value ? new uint?(this.touchStartTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "touchHourAttr", DataFormat = DataFormat.TwosComplement)] + public uint touchHourAttr + { + get + { + return this._touchHourAttr ?? 0u; + } + set + { + this._touchHourAttr = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool touchHourAttrSpecified + { + get + { + return this._touchHourAttr != null; + } + set + { + bool flag = value == (this._touchHourAttr == null); + if (flag) + { + this._touchHourAttr = (value ? new uint?(this.touchHourAttr) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "touchTodayAttr", DataFormat = DataFormat.TwosComplement)] + public uint touchTodayAttr + { + get + { + return this._touchTodayAttr ?? 0u; + } + set + { + this._touchTodayAttr = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool touchTodayAttrSpecified + { + get + { + return this._touchTodayAttr != null; + } + set + { + bool flag = value == (this._touchTodayAttr == null); + if (flag) + { + this._touchTodayAttr = (value ? new uint?(this.touchTodayAttr) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "followStartTime", DataFormat = DataFormat.TwosComplement)] + public uint followStartTime + { + get + { + return this._followStartTime ?? 0u; + } + set + { + this._followStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool followStartTimeSpecified + { + get + { + return this._followStartTime != null; + } + set + { + bool flag = value == (this._followStartTime == null); + if (flag) + { + this._followStartTime = (value ? new uint?(this.followStartTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "followTodayAttr", DataFormat = DataFormat.TwosComplement)] + public uint followTodayAttr + { + get + { + return this._followTodayAttr ?? 0u; + } + set + { + this._followTodayAttr = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool followTodayAttrSpecified + { + get + { + return this._followTodayAttr != null; + } + set + { + bool flag = value == (this._followTodayAttr == null); + if (flag) + { + this._followTodayAttr = (value ? new uint?(this.followTodayAttr) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "hungryStartTime", DataFormat = DataFormat.TwosComplement)] + public uint hungryStartTime + { + get + { + return this._hungryStartTime ?? 0u; + } + set + { + this._hungryStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hungryStartTimeSpecified + { + get + { + return this._hungryStartTime != null; + } + set + { + bool flag = value == (this._hungryStartTime == null); + if (flag) + { + this._hungryStartTime = (value ? new uint?(this.hungryStartTime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "moodStartTime", DataFormat = DataFormat.TwosComplement)] + public uint moodStartTime + { + get + { + return this._moodStartTime ?? 0u; + } + set + { + this._moodStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool moodStartTimeSpecified + { + get + { + return this._moodStartTime != null; + } + set + { + bool flag = value == (this._moodStartTime == null); + if (flag) + { + this._moodStartTime = (value ? new uint?(this.moodStartTime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "max_level", DataFormat = DataFormat.TwosComplement)] + public uint max_level + { + get + { + return this._max_level ?? 0u; + } + set + { + this._max_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_levelSpecified + { + get + { + return this._max_level != null; + } + set + { + bool flag = value == (this._max_level == null); + if (flag) + { + this._max_level = (value ? new uint?(this.max_level) : null); + } + } + } + + private uint? _touchStartTime; + + private uint? _touchHourAttr; + + private uint? _touchTodayAttr; + + private uint? _followStartTime; + + private uint? _followTodayAttr; + + private uint? _hungryStartTime; + + private uint? _moodStartTime; + + private uint? _max_level; + + private IExtension extensionObject; + + private bool ShouldSerializetouchStartTime() + { + return this.touchStartTimeSpecified; + } + + private void ResettouchStartTime() + { + this.touchStartTimeSpecified = false; + } + + private bool ShouldSerializetouchHourAttr() + { + return this.touchHourAttrSpecified; + } + + private void ResettouchHourAttr() + { + this.touchHourAttrSpecified = false; + } + + private bool ShouldSerializetouchTodayAttr() + { + return this.touchTodayAttrSpecified; + } + + private void ResettouchTodayAttr() + { + this.touchTodayAttrSpecified = false; + } + + private bool ShouldSerializefollowStartTime() + { + return this.followStartTimeSpecified; + } + + private void ResetfollowStartTime() + { + this.followStartTimeSpecified = false; + } + + private bool ShouldSerializefollowTodayAttr() + { + return this.followTodayAttrSpecified; + } + + private void ResetfollowTodayAttr() + { + this.followTodayAttrSpecified = false; + } + + private bool ShouldSerializehungryStartTime() + { + return this.hungryStartTimeSpecified; + } + + private void ResethungryStartTime() + { + this.hungryStartTimeSpecified = false; + } + + private bool ShouldSerializemoodStartTime() + { + return this.moodStartTimeSpecified; + } + + private void ResetmoodStartTime() + { + this.moodStartTimeSpecified = false; + } + + private bool ShouldSerializemax_level() + { + return this.max_levelSpecified; + } + + private void Resetmax_level() + { + this.max_levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SPetRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SPetRecord.cs.meta new file mode 100644 index 00000000..90f7857e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SPetRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acb12d0714a838d44a9cc20177872470 +timeCreated: 1611404331 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs new file mode 100644 index 00000000..b8d0301e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SQARecord")] + [Serializable] + public class SQARecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "cur_qa_type", DataFormat = DataFormat.TwosComplement)] + public uint cur_qa_type + { + get + { + return this._cur_qa_type ?? 0u; + } + set + { + this._cur_qa_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cur_qa_typeSpecified + { + get + { + return this._cur_qa_type != null; + } + set + { + bool flag = value == (this._cur_qa_type == null); + if (flag) + { + this._cur_qa_type = (value ? new uint?(this.cur_qa_type) : null); + } + } + } + + [ProtoMember(2, Name = "trigger_time", DataFormat = DataFormat.Default)] + public List trigger_time + { + get + { + return this._trigger_time; + } + } + + [ProtoMember(3, Name = "used_count", DataFormat = DataFormat.Default)] + public List used_count + { + get + { + return this._used_count; + } + } + + [ProtoMember(4, IsRequired = false, Name = "last_reset_time", DataFormat = DataFormat.TwosComplement)] + public uint last_reset_time + { + get + { + return this._last_reset_time ?? 0u; + } + set + { + this._last_reset_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_reset_timeSpecified + { + get + { + return this._last_reset_time != null; + } + set + { + bool flag = value == (this._last_reset_time == null); + if (flag) + { + this._last_reset_time = (value ? new uint?(this.last_reset_time) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "last_end_time", DataFormat = DataFormat.TwosComplement)] + public uint last_end_time + { + get + { + return this._last_end_time ?? 0u; + } + set + { + this._last_end_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool last_end_timeSpecified + { + get + { + return this._last_end_time != null; + } + set + { + bool flag = value == (this._last_end_time == null); + if (flag) + { + this._last_end_time = (value ? new uint?(this.last_end_time) : null); + } + } + } + + private uint? _cur_qa_type; + + private readonly List _trigger_time = new List(); + + private readonly List _used_count = new List(); + + private uint? _last_reset_time; + + private uint? _last_end_time; + + private IExtension extensionObject; + + private bool ShouldSerializecur_qa_type() + { + return this.cur_qa_typeSpecified; + } + + private void Resetcur_qa_type() + { + this.cur_qa_typeSpecified = false; + } + + private bool ShouldSerializelast_reset_time() + { + return this.last_reset_timeSpecified; + } + + private void Resetlast_reset_time() + { + this.last_reset_timeSpecified = false; + } + + private bool ShouldSerializelast_end_time() + { + return this.last_end_timeSpecified; + } + + private void Resetlast_end_time() + { + this.last_end_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs.meta new file mode 100644 index 00000000..38bcd9c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SQARecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbb88a7e711d9d7468ad0acb8753843d +timeCreated: 1611404654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SRoleMultiReward.cs b/Client/Assets/Scripts/XMainClient/KKSG/SRoleMultiReward.cs new file mode 100644 index 00000000..a071f396 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SRoleMultiReward.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SRoleMultiReward")] + [Serializable] + public class SRoleMultiReward : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "day", DataFormat = DataFormat.TwosComplement)] + public uint day + { + get + { + return this._day ?? 0u; + } + set + { + this._day = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daySpecified + { + get + { + return this._day != null; + } + set + { + bool flag = value == (this._day == null); + if (flag) + { + this._day = (value ? new uint?(this.day) : null); + } + } + } + + [ProtoMember(2, Name = "id", DataFormat = DataFormat.TwosComplement)] + public List id + { + get + { + return this._id; + } + } + + [ProtoMember(3, Name = "count", DataFormat = DataFormat.TwosComplement)] + public List count + { + get + { + return this._count; + } + } + + private uint? _day; + + private readonly List _id = new List(); + + private readonly List _count = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeday() + { + return this.daySpecified; + } + + private void Resetday() + { + this.daySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SRoleMultiReward.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SRoleMultiReward.cs.meta new file mode 100644 index 00000000..6f37a02e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SRoleMultiReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39c244d7473d71f449ac6138b8fccd66 +timeCreated: 1611403593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SSceneState.cs b/Client/Assets/Scripts/XMainClient/KKSG/SSceneState.cs new file mode 100644 index 00000000..48bda656 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SSceneState.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SSceneState")] + [Serializable] + public class SSceneState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isready", DataFormat = DataFormat.Default)] + public bool isready + { + get + { + return this._isready ?? false; + } + set + { + this._isready = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isreadySpecified + { + get + { + return this._isready != null; + } + set + { + bool flag = value == (this._isready == null); + if (flag) + { + this._isready = (value ? new bool?(this.isready) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "runstate", DataFormat = DataFormat.TwosComplement)] + public uint runstate + { + get + { + return this._runstate ?? 0u; + } + set + { + this._runstate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool runstateSpecified + { + get + { + return this._runstate != null; + } + set + { + bool flag = value == (this._runstate == null); + if (flag) + { + this._runstate = (value ? new uint?(this.runstate) : null); + } + } + } + + private bool? _isready; + + private uint? _runstate; + + private IExtension extensionObject; + + private bool ShouldSerializeisready() + { + return this.isreadySpecified; + } + + private void Resetisready() + { + this.isreadySpecified = false; + } + + private bool ShouldSerializerunstate() + { + return this.runstateSpecified; + } + + private void Resetrunstate() + { + this.runstateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SSceneState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SSceneState.cs.meta new file mode 100644 index 00000000..103671d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SSceneState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fbefb30b01880d742ab4c6a7e5c1e5e3 +timeCreated: 1611404933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs b/Client/Assets/Scripts/XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs new file mode 100644 index 00000000..8231c66c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "STC_ACHIEVE_POINT_REWARD")] + [Serializable] + public class STC_ACHIEVE_POINT_REWARD : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rewardId", DataFormat = DataFormat.TwosComplement)] + public uint rewardId + { + get + { + return this._rewardId ?? 0u; + } + set + { + this._rewardId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardIdSpecified + { + get + { + return this._rewardId != null; + } + set + { + bool flag = value == (this._rewardId == null); + if (flag) + { + this._rewardId = (value ? new uint?(this.rewardId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rewardStatus", DataFormat = DataFormat.TwosComplement)] + public uint rewardStatus + { + get + { + return this._rewardStatus ?? 0u; + } + set + { + this._rewardStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardStatusSpecified + { + get + { + return this._rewardStatus != null; + } + set + { + bool flag = value == (this._rewardStatus == null); + if (flag) + { + this._rewardStatus = (value ? new uint?(this.rewardStatus) : null); + } + } + } + + private uint? _rewardId; + + private uint? _rewardStatus; + + private IExtension extensionObject; + + private bool ShouldSerializerewardId() + { + return this.rewardIdSpecified; + } + + private void ResetrewardId() + { + this.rewardIdSpecified = false; + } + + private bool ShouldSerializerewardStatus() + { + return this.rewardStatusSpecified; + } + + private void ResetrewardStatus() + { + this.rewardStatusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs.meta new file mode 100644 index 00000000..d48211e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/STC_ACHIEVE_POINT_REWARD.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f49980b11c660c04da589e6d329abaa2 +timeCreated: 1611404854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/STransformBuff.cs b/Client/Assets/Scripts/XMainClient/KKSG/STransformBuff.cs new file mode 100644 index 00000000..4ec17075 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/STransformBuff.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "STransformBuff")] + [Serializable] + public class STransformBuff : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ispassive", DataFormat = DataFormat.Default)] + public bool ispassive + { + get + { + return this._ispassive ?? false; + } + set + { + this._ispassive = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ispassiveSpecified + { + get + { + return this._ispassive != null; + } + set + { + bool flag = value == (this._ispassive == null); + if (flag) + { + this._ispassive = (value ? new bool?(this.ispassive) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "iseffecting", DataFormat = DataFormat.Default)] + public bool iseffecting + { + get + { + return this._iseffecting ?? false; + } + set + { + this._iseffecting = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iseffectingSpecified + { + get + { + return this._iseffecting != null; + } + set + { + bool flag = value == (this._iseffecting == null); + if (flag) + { + this._iseffecting = (value ? new bool?(this.iseffecting) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "buff", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Buff buff + { + get + { + return this._buff; + } + set + { + this._buff = value; + } + } + + private bool? _ispassive; + + private bool? _iseffecting; + + private Buff _buff = null; + + private IExtension extensionObject; + + private bool ShouldSerializeispassive() + { + return this.ispassiveSpecified; + } + + private void Resetispassive() + { + this.ispassiveSpecified = false; + } + + private bool ShouldSerializeiseffecting() + { + return this.iseffectingSpecified; + } + + private void Resetiseffecting() + { + this.iseffectingSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/STransformBuff.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/STransformBuff.cs.meta new file mode 100644 index 00000000..fccd295c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/STransformBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12e92321c3bd4da4da473525f9b8d229 +timeCreated: 1611403245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs b/Client/Assets/Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs new file mode 100644 index 00000000..3a376e5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SaveHistIbGiftEnum")] + public enum SaveHistIbGiftEnum + { + [ProtoEnum(Name = "SaveIbGift_All", Value = 1)] + SaveIbGift_All = 1, + [ProtoEnum(Name = "SaveIbGift_Self", Value = 2)] + SaveIbGift_Self, + [ProtoEnum(Name = "SaveIbGift_Target", Value = 3)] + SaveIbGift_Target + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs.meta new file mode 100644 index 00000000..f5a69306 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SaveHistIbGiftEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de638ac7e1933374f8522329f33aae8c +timeCreated: 1611404686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs new file mode 100644 index 00000000..e3bb7f38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs @@ -0,0 +1,268 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneCfg")] + [Serializable] + public class SceneCfg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SceneID", DataFormat = DataFormat.TwosComplement)] + public uint SceneID + { + get + { + return this._SceneID ?? 0u; + } + set + { + this._SceneID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SceneIDSpecified + { + get + { + return this._SceneID != null; + } + set + { + bool flag = value == (this._SceneID == null); + if (flag) + { + this._SceneID = (value ? new uint?(this.SceneID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "SyncMode", DataFormat = DataFormat.TwosComplement)] + public int SyncMode + { + get + { + return this._SyncMode ?? 0; + } + set + { + this._SyncMode = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SyncModeSpecified + { + get + { + return this._SyncMode != null; + } + set + { + bool flag = value == (this._SyncMode == null); + if (flag) + { + this._SyncMode = (value ? new int?(this.SyncMode) : null); + } + } + } + + [ProtoMember(3, Name = "enemyWaves", DataFormat = DataFormat.Default)] + public List enemyWaves + { + get + { + return this._enemyWaves; + } + } + + [ProtoMember(4, Name = "doodads", DataFormat = DataFormat.Default)] + public List doodads + { + get + { + return this._doodads; + } + } + + [ProtoMember(5, IsRequired = false, Name = "ownerID", DataFormat = DataFormat.TwosComplement)] + public ulong ownerID + { + get + { + return this._ownerID ?? 0UL; + } + set + { + this._ownerID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ownerIDSpecified + { + get + { + return this._ownerID != null; + } + set + { + bool flag = value == (this._ownerID == null); + if (flag) + { + this._ownerID = (value ? new ulong?(this.ownerID) : null); + } + } + } + + [ProtoMember(6, Name = "preloadEnemyIDs", DataFormat = DataFormat.TwosComplement)] + public List preloadEnemyIDs + { + get + { + return this._preloadEnemyIDs; + } + } + + [ProtoMember(7, IsRequired = false, Name = "isWatcher", DataFormat = DataFormat.Default)] + public bool isWatcher + { + get + { + return this._isWatcher ?? false; + } + set + { + this._isWatcher = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isWatcherSpecified + { + get + { + return this._isWatcher != null; + } + set + { + bool flag = value == (this._isWatcher == null); + if (flag) + { + this._isWatcher = (value ? new bool?(this.isWatcher) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "canMorph", DataFormat = DataFormat.Default)] + public bool canMorph + { + get + { + return this._canMorph ?? false; + } + set + { + this._canMorph = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool canMorphSpecified + { + get + { + return this._canMorph != null; + } + set + { + bool flag = value == (this._canMorph == null); + if (flag) + { + this._canMorph = (value ? new bool?(this.canMorph) : null); + } + } + } + + private uint? _SceneID; + + private int? _SyncMode; + + private readonly List _enemyWaves = new List(); + + private readonly List _doodads = new List(); + + private ulong? _ownerID; + + private readonly List _preloadEnemyIDs = new List(); + + private bool? _isWatcher; + + private bool? _canMorph; + + private IExtension extensionObject; + + private bool ShouldSerializeSceneID() + { + return this.SceneIDSpecified; + } + + private void ResetSceneID() + { + this.SceneIDSpecified = false; + } + + private bool ShouldSerializeSyncMode() + { + return this.SyncModeSpecified; + } + + private void ResetSyncMode() + { + this.SyncModeSpecified = false; + } + + private bool ShouldSerializeownerID() + { + return this.ownerIDSpecified; + } + + private void ResetownerID() + { + this.ownerIDSpecified = false; + } + + private bool ShouldSerializeisWatcher() + { + return this.isWatcherSpecified; + } + + private void ResetisWatcher() + { + this.isWatcherSpecified = false; + } + + private bool ShouldSerializecanMorph() + { + return this.canMorphSpecified; + } + + private void ResetcanMorph() + { + this.canMorphSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs.meta new file mode 100644 index 00000000..92e7bd93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneCfg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea8fbb123d8c19e4aaa35a76cce320b6 +timeCreated: 1611404779 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs new file mode 100644 index 00000000..680f3644 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneDamageRankNtf")] + [Serializable] + public class SceneDamageRankNtf : IExtensible + { + [ProtoMember(1, Name = "name", DataFormat = DataFormat.Default)] + public List name + { + get + { + return this._name; + } + } + + [ProtoMember(2, Name = "damage", DataFormat = DataFormat.FixedSize)] + public List damage + { + get + { + return this._damage; + } + } + + [ProtoMember(3, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public List roleid + { + get + { + return this._roleid; + } + } + + private readonly List _name = new List(); + + private readonly List _damage = new List(); + + private readonly List _roleid = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs.meta new file mode 100644 index 00000000..c29a3457 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneDamageRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fb1af6c48f3520428911799e51b4e5f +timeCreated: 1611403211 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneFinishState.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneFinishState.cs new file mode 100644 index 00000000..9e8312a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneFinishState.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneFinishState")] + public enum SceneFinishState + { + [ProtoEnum(Name = "SCENE_FINISH_NONE", Value = 0)] + SCENE_FINISH_NONE, + [ProtoEnum(Name = "SCENE_FINISH_START", Value = 1)] + SCENE_FINISH_START, + [ProtoEnum(Name = "SCENE_FINISH_PICK_ITEM", Value = 2)] + SCENE_FINISH_PICK_ITEM, + [ProtoEnum(Name = "SCENE_FINISH_SHOWRESULT", Value = 3)] + SCENE_FINISH_SHOWRESULT, + [ProtoEnum(Name = "SCENE_FINISH_DRAW_BOX", Value = 4)] + SCENE_FINISH_DRAW_BOX, + [ProtoEnum(Name = "SCENE_FINISH_END", Value = 5)] + SCENE_FINISH_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneFinishState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneFinishState.cs.meta new file mode 100644 index 00000000..f9cb5b8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneFinishState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1bc24209df3b044e95ec84cc42b6b2c +timeCreated: 1611404840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneLeftDoodad.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneLeftDoodad.cs new file mode 100644 index 00000000..7dc66c56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneLeftDoodad.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneLeftDoodad")] + [Serializable] + public class SceneLeftDoodad : IExtensible + { + [ProtoMember(1, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private readonly List _items = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneLeftDoodad.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneLeftDoodad.cs.meta new file mode 100644 index 00000000..01847ff9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneLeftDoodad.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eef1c8113b32dca45b7a2adcd8293fc8 +timeCreated: 1611404801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpArg.cs new file mode 100644 index 00000000..9b7bcf77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneMobaOpArg")] + [Serializable] + public class SceneMobaOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public MobaOp op + { + get + { + return this._op ?? MobaOp.MobaOp_LevelSkill; + } + set + { + this._op = new MobaOp?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new MobaOp?(this.op) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public uint param + { + get + { + return this._param ?? 0u; + } + set + { + this._param = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new uint?(this.param) : null); + } + } + } + + private MobaOp? _op; + + private uint? _param; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpArg.cs.meta new file mode 100644 index 00000000..19ed0062 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96308211d8804c749acfe3ce2e0c9b24 +timeCreated: 1611404184 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpRes.cs new file mode 100644 index 00000000..671f58ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneMobaOpRes")] + [Serializable] + public class SceneMobaOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "nowparam", DataFormat = DataFormat.TwosComplement)] + public uint nowparam + { + get + { + return this._nowparam ?? 0u; + } + set + { + this._nowparam = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nowparamSpecified + { + get + { + return this._nowparam != null; + } + set + { + bool flag = value == (this._nowparam == null); + if (flag) + { + this._nowparam = (value ? new uint?(this.nowparam) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _nowparam; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializenowparam() + { + return this.nowparamSpecified; + } + + private void Resetnowparam() + { + this.nowparamSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpRes.cs.meta new file mode 100644 index 00000000..1b5af44a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneMobaOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b61c1fda8b4bb92468c4a32308a61ebc +timeCreated: 1611404396 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ScenePrepareInfoNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/ScenePrepareInfoNtf.cs new file mode 100644 index 00000000..2d8e5f9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ScenePrepareInfoNtf.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ScenePrepareInfoNtf")] + [Serializable] + public class ScenePrepareInfoNtf : IExtensible + { + [ProtoMember(1, Name = "unreadyroles", DataFormat = DataFormat.Default)] + public List unreadyroles + { + get + { + return this._unreadyroles; + } + } + + private readonly List _unreadyroles = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ScenePrepareInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ScenePrepareInfoNtf.cs.meta new file mode 100644 index 00000000..878656c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ScenePrepareInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1e04eda04eaa1e41ab82f9c0e47f912 +timeCreated: 1611404593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneRequest.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneRequest.cs new file mode 100644 index 00000000..eb79c661 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneRequest.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneRequest")] + [Serializable] + public class SceneRequest : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public uint sceneID + { + get + { + return this._sceneID ?? 0u; + } + set + { + this._sceneID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new uint?(this.sceneID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "fortID", DataFormat = DataFormat.TwosComplement)] + public uint fortID + { + get + { + return this._fortID ?? 0u; + } + set + { + this._fortID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fortIDSpecified + { + get + { + return this._fortID != null; + } + set + { + bool flag = value == (this._fortID == null); + if (flag) + { + this._fortID = (value ? new uint?(this.fortID) : null); + } + } + } + + private uint? _sceneID; + + private ulong? _roleID; + + private uint? _fortID; + + private IExtension extensionObject; + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializefortID() + { + return this.fortIDSpecified; + } + + private void ResetfortID() + { + this.fortIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneRequest.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneRequest.cs.meta new file mode 100644 index 00000000..ac26bcf3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6edf4ee05d982284e8173046ff241421 +timeCreated: 1611403907 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneStateNtf.cs new file mode 100644 index 00000000..0514d2c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneStateNtf.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneStateNtf")] + [Serializable] + public class SceneStateNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SSceneState state + { + get + { + return this._state; + } + set + { + this._state = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolespecialstate", DataFormat = DataFormat.TwosComplement)] + public uint rolespecialstate + { + get + { + return this._rolespecialstate ?? 0u; + } + set + { + this._rolespecialstate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolespecialstateSpecified + { + get + { + return this._rolespecialstate != null; + } + set + { + bool flag = value == (this._rolespecialstate == null); + if (flag) + { + this._rolespecialstate = (value ? new uint?(this.rolespecialstate) : null); + } + } + } + + private SSceneState _state = null; + + private uint? _rolespecialstate; + + private IExtension extensionObject; + + private bool ShouldSerializerolespecialstate() + { + return this.rolespecialstateSpecified; + } + + private void Resetrolespecialstate() + { + this.rolespecialstateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneStateNtf.cs.meta new file mode 100644 index 00000000..12b92aa9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2f0988e067aecd40947271491bafee3 +timeCreated: 1611404496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SceneType.cs new file mode 100644 index 00000000..a935a4d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneType.cs @@ -0,0 +1,144 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SceneType")] + public enum SceneType + { + [ProtoEnum(Name = "SCENE_HALL", Value = 1)] + SCENE_HALL = 1, + [ProtoEnum(Name = "SCENE_BATTLE", Value = 2)] + SCENE_BATTLE, + [ProtoEnum(Name = "SCENE_NEST", Value = 3)] + SCENE_NEST, + [ProtoEnum(Name = "SCENE_ARENA", Value = 5)] + SCENE_ARENA = 5, + [ProtoEnum(Name = "SCENE_WORLDBOSS", Value = 7)] + SCENE_WORLDBOSS = 7, + [ProtoEnum(Name = "SCENE_BOSSRUSH", Value = 9)] + SCENE_BOSSRUSH = 9, + [ProtoEnum(Name = "SCENE_GUILD_HALL", Value = 10)] + SCENE_GUILD_HALL, + [ProtoEnum(Name = "SCENE_GUILD_BOSS", Value = 11)] + SCENE_GUILD_BOSS, + [ProtoEnum(Name = "SCENE_PK", Value = 12)] + SCENE_PK, + [ProtoEnum(Name = "SCENE_ABYSSS", Value = 13)] + SCENE_ABYSSS, + [ProtoEnum(Name = "SCENE_FAMILYGARDEN", Value = 15)] + SCENE_FAMILYGARDEN = 15, + [ProtoEnum(Name = "SCENE_TOWER", Value = 16)] + SCENE_TOWER, + [ProtoEnum(Name = "SCENE_PVP", Value = 17)] + SCENE_PVP, + [ProtoEnum(Name = "SCENE_DRAGON", Value = 18)] + SCENE_DRAGON, + [ProtoEnum(Name = "SCENE_GMF", Value = 19)] + SCENE_GMF, + [ProtoEnum(Name = "SCENE_GODDESS", Value = 20)] + SCENE_GODDESS, + [ProtoEnum(Name = "SCENE_DRAGON_EXP", Value = 21)] + SCENE_DRAGON_EXP, + [ProtoEnum(Name = "SCENE_RISK", Value = 22)] + SCENE_RISK, + [ProtoEnum(Name = "SCENE_ENDLESSABYSS", Value = 23)] + SCENE_ENDLESSABYSS, + [ProtoEnum(Name = "SKYCITY_WAITING", Value = 24)] + SKYCITY_WAITING, + [ProtoEnum(Name = "SKYCITY_FIGHTING", Value = 25)] + SKYCITY_FIGHTING, + [ProtoEnum(Name = "SCENE_PROF_TRIALS", Value = 26)] + SCENE_PROF_TRIALS, + [ProtoEnum(Name = "SCENE_GPR", Value = 27)] + SCENE_GPR, + [ProtoEnum(Name = "SCENE_RESWAR_PVP", Value = 28)] + SCENE_RESWAR_PVP, + [ProtoEnum(Name = "SCENE_RESWAR_PVE", Value = 29)] + SCENE_RESWAR_PVE, + [ProtoEnum(Name = "SCENE_GUILD_CAMP", Value = 30)] + SCENE_GUILD_CAMP, + [ProtoEnum(Name = "SCENE_AIRSHIP", Value = 31)] + SCENE_AIRSHIP, + [ProtoEnum(Name = "SCENE_WEEK_NEST", Value = 32)] + SCENE_WEEK_NEST, + [ProtoEnum(Name = "SCENE_VS_CHALLENGE", Value = 33)] + SCENE_VS_CHALLENGE, + [ProtoEnum(Name = "SCENE_HORSE", Value = 34)] + SCENE_HORSE, + [ProtoEnum(Name = "SCENE_HORSE_RACE", Value = 35)] + SCENE_HORSE_RACE, + [ProtoEnum(Name = "SCENE_HEROBATTLE", Value = 36)] + SCENE_HEROBATTLE, + [ProtoEnum(Name = "SCENE_INVFIGHT", Value = 37)] + SCENE_INVFIGHT, + [ProtoEnum(Name = "SCENE_CASTLE_WAIT", Value = 38)] + SCENE_CASTLE_WAIT, + [ProtoEnum(Name = "SCENE_CASTLE_FIGHT", Value = 39)] + SCENE_CASTLE_FIGHT, + [ProtoEnum(Name = "SCENE_LEAGUE_BATTLE", Value = 40)] + SCENE_LEAGUE_BATTLE, + [ProtoEnum(Name = "SCENE_ACTIVITY_ONE", Value = 41)] + SCENE_ACTIVITY_ONE, + [ProtoEnum(Name = "SCENE_ACTIVITY_TWO", Value = 42)] + SCENE_ACTIVITY_TWO, + [ProtoEnum(Name = "SCENE_ACTIVITY_THREE", Value = 43)] + SCENE_ACTIVITY_THREE, + [ProtoEnum(Name = "SCENE_ABYSS_PARTY", Value = 44)] + SCENE_ABYSS_PARTY, + [ProtoEnum(Name = "SCENE_CUSTOMPK", Value = 45)] + SCENE_CUSTOMPK, + [ProtoEnum(Name = "SCENE_PKTWO", Value = 46)] + SCENE_PKTWO, + [ProtoEnum(Name = "SCENE_MOBA", Value = 47)] + SCENE_MOBA, + [ProtoEnum(Name = "SCENE_WEEKEND4V4_MONSTERFIGHT", Value = 48)] + SCENE_WEEKEND4V4_MONSTERFIGHT, + [ProtoEnum(Name = "SCENE_WEEKEND4V4_GHOSTACTION", Value = 49)] + SCENE_WEEKEND4V4_GHOSTACTION, + [ProtoEnum(Name = "SCENE_WEEKEND4V4_LIVECHALLENGE", Value = 50)] + SCENE_WEEKEND4V4_LIVECHALLENGE, + [ProtoEnum(Name = "SCENE_WEEKEND4V4_CRAZYBOMB", Value = 51)] + SCENE_WEEKEND4V4_CRAZYBOMB, + [ProtoEnum(Name = "SCENE_WEEKEND4V4_HORSERACING", Value = 52)] + SCENE_WEEKEND4V4_HORSERACING, + [ProtoEnum(Name = "SCENE_CUSTOMPKTWO", Value = 53)] + SCENE_CUSTOMPKTWO, + [ProtoEnum(Name = "SCENE_WEEKEND4V4_DUCK", Value = 54)] + SCENE_WEEKEND4V4_DUCK, + [ProtoEnum(Name = "SCENE_BIGMELEE_READY", Value = 60)] + SCENE_BIGMELEE_READY = 60, + [ProtoEnum(Name = "SCENE_BIGMELEE_FIGHT", Value = 61)] + SCENE_BIGMELEE_FIGHT, + [ProtoEnum(Name = "SCENE_CALLBACK", Value = 62)] + SCENE_CALLBACK, + [ProtoEnum(Name = "SCENE_WEDDING", Value = 63)] + SCENE_WEDDING, + [ProtoEnum(Name = "SCENE_BIOHELL", Value = 64)] + SCENE_BIOHELL, + [ProtoEnum(Name = "SCENE_DUCK", Value = 65)] + SCENE_DUCK, + [ProtoEnum(Name = "SCENE_COUPLE", Value = 66)] + SCENE_COUPLE, + [ProtoEnum(Name = "SCENE_BATTLEFIELD_READY", Value = 67)] + SCENE_BATTLEFIELD_READY, + [ProtoEnum(Name = "SCENE_BATTLEFIELD_FIGHT", Value = 68)] + SCENE_BATTLEFIELD_FIGHT, + [ProtoEnum(Name = "SCENE_COMPETEDRAGON", Value = 69)] + SCENE_COMPETEDRAGON, + [ProtoEnum(Name = "SCENE_SURVIVE", Value = 70)] + SCENE_SURVIVE, + [ProtoEnum(Name = "SCENE_LEISURE", Value = 71)] + SCENE_LEISURE, + [ProtoEnum(Name = "SCENE_GCF", Value = 72)] + SCENE_GCF, + [ProtoEnum(Name = "SCENE_RIFT", Value = 73)] + SCENE_RIFT, + [ProtoEnum(Name = "SCENE_GUILD_WILD_HUNT", Value = 74)] + SCENE_GUILD_WILD_HUNT, + [ProtoEnum(Name = "SCENE_AWAKE", Value = 75)] + SCENE_AWAKE, + [ProtoEnum(Name = "SCENE_LOGIN", Value = 100)] + SCENE_LOGIN = 100 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SceneType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SceneType.cs.meta new file mode 100644 index 00000000..53dff738 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SceneType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b893a7410f5a9e4392f8ceedc9275d2 +timeCreated: 1611404206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleArg.cs new file mode 100644 index 00000000..d430c45b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectChargeBackRoleArg")] + [Serializable] + public class SelectChargeBackRoleArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleArg.cs.meta new file mode 100644 index 00000000..2eabdc01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e01611cbd2a79324a94f9273efef14d0 +timeCreated: 1611404695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleRes.cs new file mode 100644 index 00000000..74fa7db9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectChargeBackRoleRes")] + [Serializable] + public class SelectChargeBackRoleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleRes.cs.meta new file mode 100644 index 00000000..13456c8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectChargeBackRoleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ba771249ccbda84b9667ef9cc469f99 +timeCreated: 1611403599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectChestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectChestArg.cs new file mode 100644 index 00000000..80b5d21a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectChestArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectChestArg")] + [Serializable] + public class SelectChestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "chestIdx", DataFormat = DataFormat.TwosComplement)] + public uint chestIdx + { + get + { + return this._chestIdx ?? 0u; + } + set + { + this._chestIdx = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool chestIdxSpecified + { + get + { + return this._chestIdx != null; + } + set + { + bool flag = value == (this._chestIdx == null); + if (flag) + { + this._chestIdx = (value ? new uint?(this.chestIdx) : null); + } + } + } + + private uint? _chestIdx; + + private IExtension extensionObject; + + private bool ShouldSerializechestIdx() + { + return this.chestIdxSpecified; + } + + private void ResetchestIdx() + { + this.chestIdxSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectChestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectChestArg.cs.meta new file mode 100644 index 00000000..51a4cd5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectChestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a406605052506a418c3d91745aafb72 +timeCreated: 1611403664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectChestRes.cs new file mode 100644 index 00000000..3741ba59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectChestRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectChestRes")] + [Serializable] + public class SelectChestRes : IExtensible + { + [ProtoMember(1, Name = "rewards", DataFormat = DataFormat.Default)] + public List rewards + { + get + { + return this._rewards; + } + } + + [ProtoMember(2, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private readonly List _rewards = new List(); + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectChestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectChestRes.cs.meta new file mode 100644 index 00000000..3d367523 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectChestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22061163b7961c74eacac2f2708bb892 +timeCreated: 1611403418 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerArg.cs new file mode 100644 index 00000000..f34ec1f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectHeroAncientPowerArg")] + [Serializable] + public class SelectHeroAncientPowerArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "selectpower", DataFormat = DataFormat.TwosComplement)] + public uint selectpower + { + get + { + return this._selectpower ?? 0u; + } + set + { + this._selectpower = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool selectpowerSpecified + { + get + { + return this._selectpower != null; + } + set + { + bool flag = value == (this._selectpower == null); + if (flag) + { + this._selectpower = (value ? new uint?(this.selectpower) : null); + } + } + } + + private uint? _selectpower; + + private IExtension extensionObject; + + private bool ShouldSerializeselectpower() + { + return this.selectpowerSpecified; + } + + private void Resetselectpower() + { + this.selectpowerSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerArg.cs.meta new file mode 100644 index 00000000..24b35c82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efec6ef498d00c54290b32ed525cf5d9 +timeCreated: 1611404806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerRes.cs new file mode 100644 index 00000000..6d0f2be1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectHeroAncientPowerRes")] + [Serializable] + public class SelectHeroAncientPowerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerRes.cs.meta new file mode 100644 index 00000000..aefaaaa7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectHeroAncientPowerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0cd9848426ea9f94eb70d643f21c2b92 +timeCreated: 1611403175 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewArg.cs new file mode 100644 index 00000000..573ae80a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectRoleNewArg")] + [Serializable] + public class SelectRoleNewArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public int index + { + get + { + return this._index ?? 0; + } + set + { + this._index = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new int?(this.index) : null); + } + } + } + + private int? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewArg.cs.meta new file mode 100644 index 00000000..de90f00c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29c2e2fe2cf51d84aa239e1da3a946d9 +timeCreated: 1611403477 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs new file mode 100644 index 00000000..294eb30a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectRoleNewRes")] + [Serializable] + public class SelectRoleNewRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "banTime", DataFormat = DataFormat.TwosComplement)] + public int banTime + { + get + { + return this._banTime ?? 0; + } + set + { + this._banTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool banTimeSpecified + { + get + { + return this._banTime != null; + } + set + { + bool flag = value == (this._banTime == null); + if (flag) + { + this._banTime = (value ? new int?(this.banTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "endTime", DataFormat = DataFormat.TwosComplement)] + public int endTime + { + get + { + return this._endTime ?? 0; + } + set + { + this._endTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endTimeSpecified + { + get + { + return this._endTime != null; + } + set + { + bool flag = value == (this._endTime == null); + if (flag) + { + this._endTime = (value ? new int?(this.endTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "reason", DataFormat = DataFormat.Default)] + public string reason + { + get + { + return this._reason ?? ""; + } + set + { + this._reason = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? this.reason : null); + } + } + } + + private ErrorCode? _result; + + private int? _banTime; + + private int? _endTime; + + private string _reason; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializebanTime() + { + return this.banTimeSpecified; + } + + private void ResetbanTime() + { + this.banTimeSpecified = false; + } + + private bool ShouldSerializeendTime() + { + return this.endTimeSpecified; + } + + private void ResetendTime() + { + this.endTimeSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs.meta new file mode 100644 index 00000000..678b4fb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNewRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4412c4e43dc4aa448a2214a5fca4da3d +timeCreated: 1611403643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNtfData.cs new file mode 100644 index 00000000..35123612 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNtfData.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelectRoleNtfData")] + [Serializable] + public class SelectRoleNtfData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleAllInfo roleData + { + get + { + return this._roleData; + } + set + { + this._roleData = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "backflow_firstenter", DataFormat = DataFormat.Default)] + public bool backflow_firstenter + { + get + { + return this._backflow_firstenter ?? false; + } + set + { + this._backflow_firstenter = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool backflow_firstenterSpecified + { + get + { + return this._backflow_firstenter != null; + } + set + { + bool flag = value == (this._backflow_firstenter == null); + if (flag) + { + this._backflow_firstenter = (value ? new bool?(this.backflow_firstenter) : null); + } + } + } + + private RoleAllInfo _roleData = null; + + private uint? _serverid; + + private bool? _backflow_firstenter; + + private IExtension extensionObject; + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializebackflow_firstenter() + { + return this.backflow_firstenterSpecified; + } + + private void Resetbackflow_firstenter() + { + this.backflow_firstenterSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNtfData.cs.meta new file mode 100644 index 00000000..d77255b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelectRoleNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 559869430794f794f8c5343e7b166e0a +timeCreated: 1611403737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelfServerData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SelfServerData.cs new file mode 100644 index 00000000..95ec2b6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelfServerData.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SelfServerData")] + [Serializable] + public class SelfServerData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "servers", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LoginGateData servers + { + get + { + return this._servers; + } + set + { + this._servers = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + private LoginGateData _servers = null; + + private uint? _level; + + private IExtension extensionObject; + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SelfServerData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SelfServerData.cs.meta new file mode 100644 index 00000000..4f887dc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SelfServerData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68114b8de3bfa9645a04c32027d484b5 +timeCreated: 1611403881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerArg.cs new file mode 100644 index 00000000..13198381 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendFlowerArg")] + [Serializable] + public class SendFlowerArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "sendItemID", DataFormat = DataFormat.TwosComplement)] + public uint sendItemID + { + get + { + return this._sendItemID ?? 0u; + } + set + { + this._sendItemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sendItemIDSpecified + { + get + { + return this._sendItemID != null; + } + set + { + bool flag = value == (this._sendItemID == null); + if (flag) + { + this._sendItemID = (value ? new uint?(this.sendItemID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "costItemID", DataFormat = DataFormat.TwosComplement)] + public uint costItemID + { + get + { + return this._costItemID ?? 0u; + } + set + { + this._costItemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costItemIDSpecified + { + get + { + return this._costItemID != null; + } + set + { + bool flag = value == (this._costItemID == null); + if (flag) + { + this._costItemID = (value ? new uint?(this.costItemID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "costItemNum", DataFormat = DataFormat.TwosComplement)] + public uint costItemNum + { + get + { + return this._costItemNum ?? 0u; + } + set + { + this._costItemNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costItemNumSpecified + { + get + { + return this._costItemNum != null; + } + set + { + bool flag = value == (this._costItemNum == null); + if (flag) + { + this._costItemNum = (value ? new uint?(this.costItemNum) : null); + } + } + } + + private ulong? _roleid; + + private uint? _count; + + private uint? _sendItemID; + + private uint? _costItemID; + + private uint? _costItemNum; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializesendItemID() + { + return this.sendItemIDSpecified; + } + + private void ResetsendItemID() + { + this.sendItemIDSpecified = false; + } + + private bool ShouldSerializecostItemID() + { + return this.costItemIDSpecified; + } + + private void ResetcostItemID() + { + this.costItemIDSpecified = false; + } + + private bool ShouldSerializecostItemNum() + { + return this.costItemNumSpecified; + } + + private void ResetcostItemNum() + { + this.costItemNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerArg.cs.meta new file mode 100644 index 00000000..bd811d37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c37b3c001159f9744afa5a70c92a2818 +timeCreated: 1611404498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerRes.cs new file mode 100644 index 00000000..5ada6c2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendFlowerRes")] + [Serializable] + public class SendFlowerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "fatigue", DataFormat = DataFormat.TwosComplement)] + public uint fatigue + { + get + { + return this._fatigue ?? 0u; + } + set + { + this._fatigue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fatigueSpecified + { + get + { + return this._fatigue != null; + } + set + { + bool flag = value == (this._fatigue == null); + if (flag) + { + this._fatigue = (value ? new uint?(this.fatigue) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _fatigue; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializefatigue() + { + return this.fatigueSpecified; + } + + private void Resetfatigue() + { + this.fatigueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerRes.cs.meta new file mode 100644 index 00000000..452911a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendFlowerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3156682ea392b1848b97edc6a1a2db28 +timeCreated: 1611403543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendArg.cs new file mode 100644 index 00000000..7b4816f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendGift2PlatFriendArg")] + [Serializable] + public class SendGift2PlatFriendArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + private string _openid; + + private IExtension extensionObject; + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendArg.cs.meta new file mode 100644 index 00000000..f260a370 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39f354fedf0e5ac428170ccec7316492 +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendRes.cs new file mode 100644 index 00000000..4ffedc1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendGift2PlatFriendRes")] + [Serializable] + public class SendGift2PlatFriendRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendRes.cs.meta new file mode 100644 index 00000000..3fb42682 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGift2PlatFriendRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec22f6a974196574bb5c79c8b4884432 +timeCreated: 1611404786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusArg.cs new file mode 100644 index 00000000..567d36ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendGuildBonusArg")] + [Serializable] + public class SendGuildBonusArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusArg.cs.meta new file mode 100644 index 00000000..03c36972 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02e6fdc212d07804182ee5850c723842 +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListArg.cs new file mode 100644 index 00000000..bb5d2429 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendGuildBonusInSendListArg")] + [Serializable] + public class SendGuildBonusInSendListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusID", DataFormat = DataFormat.TwosComplement)] + public uint bonusID + { + get + { + return this._bonusID ?? 0u; + } + set + { + this._bonusID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusIDSpecified + { + get + { + return this._bonusID != null; + } + set + { + bool flag = value == (this._bonusID == null); + if (flag) + { + this._bonusID = (value ? new uint?(this.bonusID) : null); + } + } + } + + private uint? _bonusID; + + private IExtension extensionObject; + + private bool ShouldSerializebonusID() + { + return this.bonusIDSpecified; + } + + private void ResetbonusID() + { + this.bonusIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListArg.cs.meta new file mode 100644 index 00000000..8466b7bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a93821b21f8b1647bea495d767887f9 +timeCreated: 1611403791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListRes.cs new file mode 100644 index 00000000..d7bfc74c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendGuildBonusInSendListRes")] + [Serializable] + public class SendGuildBonusInSendListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListRes.cs.meta new file mode 100644 index 00000000..5ee2142e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusInSendListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1f9c9167692b2e43a29f86d4c47f345 +timeCreated: 1611404593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusNtfData.cs new file mode 100644 index 00000000..68717461 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusNtfData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendGuildBonusNtfData")] + [Serializable] + public class SendGuildBonusNtfData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hasLeftSend", DataFormat = DataFormat.Default)] + public bool hasLeftSend + { + get + { + return this._hasLeftSend ?? false; + } + set + { + this._hasLeftSend = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasLeftSendSpecified + { + get + { + return this._hasLeftSend != null; + } + set + { + bool flag = value == (this._hasLeftSend == null); + if (flag) + { + this._hasLeftSend = (value ? new bool?(this.hasLeftSend) : null); + } + } + } + + private bool? _hasLeftSend; + + private IExtension extensionObject; + + private bool ShouldSerializehasLeftSend() + { + return this.hasLeftSendSpecified; + } + + private void ResethasLeftSend() + { + this.hasLeftSendSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusNtfData.cs.meta new file mode 100644 index 00000000..66d212f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05c262c583e76dd41a0cc21b94af3a67 +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusRes.cs new file mode 100644 index 00000000..efff6aa7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SendGuildBonusRes")] + [Serializable] + public class SendGuildBonusRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusRes.cs.meta new file mode 100644 index 00000000..5968718c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SendGuildBonusRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1dde6db672db174ea95bc5157ec161f +timeCreated: 1611404492 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ServerFlag.cs b/Client/Assets/Scripts/XMainClient/KKSG/ServerFlag.cs new file mode 100644 index 00000000..1ea6dad7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ServerFlag.cs @@ -0,0 +1,24 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ServerFlag")] + public enum ServerFlag + { + [ProtoEnum(Name = "ServerFlag_Maintain", Value = 0)] + ServerFlag_Maintain, + [ProtoEnum(Name = "ServerFlag_New", Value = 1)] + ServerFlag_New, + [ProtoEnum(Name = "ServerFlag_Hot", Value = 2)] + ServerFlag_Hot, + [ProtoEnum(Name = "ServerFlag_Full", Value = 3)] + ServerFlag_Full, + [ProtoEnum(Name = "ServerFlag_Recommend", Value = 4)] + ServerFlag_Recommend, + [ProtoEnum(Name = "ServerFlag_Dummy", Value = 5)] + ServerFlag_Dummy, + [ProtoEnum(Name = "ServerFlag_Smooth", Value = 7)] + ServerFlag_Smooth = 7 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ServerFlag.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ServerFlag.cs.meta new file mode 100644 index 00000000..b0a5f5f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ServerFlag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e524928e2babfcb4aaa744c4ca4d807b +timeCreated: 1611404742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ServerOpenDay.cs b/Client/Assets/Scripts/XMainClient/KKSG/ServerOpenDay.cs new file mode 100644 index 00000000..f2e4b715 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ServerOpenDay.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ServerOpenDay")] + [Serializable] + public class ServerOpenDay : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openday", DataFormat = DataFormat.TwosComplement)] + public int openday + { + get + { + return this._openday ?? 0; + } + set + { + this._openday = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opendaySpecified + { + get + { + return this._openday != null; + } + set + { + bool flag = value == (this._openday == null); + if (flag) + { + this._openday = (value ? new int?(this.openday) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "week", DataFormat = DataFormat.TwosComplement)] + public uint week + { + get + { + return this._week ?? 0u; + } + set + { + this._week = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekSpecified + { + get + { + return this._week != null; + } + set + { + bool flag = value == (this._week == null); + if (flag) + { + this._week = (value ? new uint?(this.week) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "daybeginsecdiff", DataFormat = DataFormat.TwosComplement)] + public uint daybeginsecdiff + { + get + { + return this._daybeginsecdiff ?? 0u; + } + set + { + this._daybeginsecdiff = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daybeginsecdiffSpecified + { + get + { + return this._daybeginsecdiff != null; + } + set + { + bool flag = value == (this._daybeginsecdiff == null); + if (flag) + { + this._daybeginsecdiff = (value ? new uint?(this.daybeginsecdiff) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "nowTime", DataFormat = DataFormat.TwosComplement)] + public uint nowTime + { + get + { + return this._nowTime ?? 0u; + } + set + { + this._nowTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nowTimeSpecified + { + get + { + return this._nowTime != null; + } + set + { + bool flag = value == (this._nowTime == null); + if (flag) + { + this._nowTime = (value ? new uint?(this.nowTime) : null); + } + } + } + + private int? _openday; + + private uint? _week; + + private uint? _daybeginsecdiff; + + private uint? _nowTime; + + private IExtension extensionObject; + + private bool ShouldSerializeopenday() + { + return this.opendaySpecified; + } + + private void Resetopenday() + { + this.opendaySpecified = false; + } + + private bool ShouldSerializeweek() + { + return this.weekSpecified; + } + + private void Resetweek() + { + this.weekSpecified = false; + } + + private bool ShouldSerializedaybeginsecdiff() + { + return this.daybeginsecdiffSpecified; + } + + private void Resetdaybeginsecdiff() + { + this.daybeginsecdiffSpecified = false; + } + + private bool ShouldSerializenowTime() + { + return this.nowTimeSpecified; + } + + private void ResetnowTime() + { + this.nowTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ServerOpenDay.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ServerOpenDay.cs.meta new file mode 100644 index 00000000..9911e6e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ServerOpenDay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2bd1c39a43cb30d4284e4e99a90b4a15 +timeCreated: 1611403500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ServerTag.cs b/Client/Assets/Scripts/XMainClient/KKSG/ServerTag.cs new file mode 100644 index 00000000..f2a3a000 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ServerTag.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ServerTag")] + public enum ServerTag + { + [ProtoEnum(Name = "SERVER_TAG_NORMAL", Value = 1)] + SERVER_TAG_NORMAL = 1, + [ProtoEnum(Name = "SERVER_TAG_IOS_AUDIT", Value = 2)] + SERVER_TAG_IOS_AUDIT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ServerTag.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ServerTag.cs.meta new file mode 100644 index 00000000..f295ee08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ServerTag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d47047cf5853754c82d49addfcda012 +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationReq.cs new file mode 100644 index 00000000..dcfd194a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationReq.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetDesignationReq")] + [Serializable] + public class SetDesignationReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "designationID", DataFormat = DataFormat.TwosComplement)] + public uint designationID + { + get + { + return this._designationID ?? 0u; + } + set + { + this._designationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool designationIDSpecified + { + get + { + return this._designationID != null; + } + set + { + bool flag = value == (this._designationID == null); + if (flag) + { + this._designationID = (value ? new uint?(this.designationID) : null); + } + } + } + + private uint? _type; + + private uint? _designationID; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializedesignationID() + { + return this.designationIDSpecified; + } + + private void ResetdesignationID() + { + this.designationIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationReq.cs.meta new file mode 100644 index 00000000..bdc12a48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27ec53d3e9933b24f8aa400fdf83c645 +timeCreated: 1611403473 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationRes.cs new file mode 100644 index 00000000..ab3b5ec7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetDesignationRes")] + [Serializable] + public class SetDesignationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _dataList = new List(); + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationRes.cs.meta new file mode 100644 index 00000000..7ab9dd8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetDesignationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0ced7f07fcddf14ca2a1757fdf0cb72 +timeCreated: 1611404353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleArg.cs new file mode 100644 index 00000000..2ba919a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetHeroInHeroBattleArg")] + [Serializable] + public class SetHeroInHeroBattleArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "heroid", DataFormat = DataFormat.TwosComplement)] + public uint heroid + { + get + { + return this._heroid ?? 0u; + } + set + { + this._heroid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool heroidSpecified + { + get + { + return this._heroid != null; + } + set + { + bool flag = value == (this._heroid == null); + if (flag) + { + this._heroid = (value ? new uint?(this.heroid) : null); + } + } + } + + private uint? _heroid; + + private IExtension extensionObject; + + private bool ShouldSerializeheroid() + { + return this.heroidSpecified; + } + + private void Resetheroid() + { + this.heroidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleArg.cs.meta new file mode 100644 index 00000000..2367251d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ae31c6fb2fcb51408569ba7a0ffadd8 +timeCreated: 1611403793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleRes.cs new file mode 100644 index 00000000..0ee9839f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetHeroInHeroBattleRes")] + [Serializable] + public class SetHeroInHeroBattleRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleRes.cs.meta new file mode 100644 index 00000000..09a18797 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetHeroInHeroBattleRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d70b31e46d2441d4fbbd7f417d039e98 +timeCreated: 1611404634 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowArg.cs new file mode 100644 index 00000000..6e552885 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowArg.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetPreShowArg")] + [Serializable] + public class SetPreShowArg : IExtensible + { + [ProtoMember(1, Name = "showid", DataFormat = DataFormat.TwosComplement)] + public List showid + { + get + { + return this._showid; + } + } + + private readonly List _showid = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowArg.cs.meta new file mode 100644 index 00000000..4349d774 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f6d4f6ce57604c458e20f26a9af88a6 +timeCreated: 1611404133 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowRes.cs new file mode 100644 index 00000000..0f44c452 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetPreShowRes")] + [Serializable] + public class SetPreShowRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowRes.cs.meta new file mode 100644 index 00000000..dafb2922 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetPreShowRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2b67302b3eb45647a40ee98b53532e0 +timeCreated: 1611404386 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigReq.cs new file mode 100644 index 00000000..e5d57dfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigReq.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetRoleConfigReq")] + [Serializable] + public class SetRoleConfigReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.Default)] + public string type + { + get + { + return this._type ?? ""; + } + set + { + this._type = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? this.type : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "value", DataFormat = DataFormat.Default)] + public string value + { + get + { + return this._value ?? ""; + } + set + { + this._value = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool valueSpecified + { + get + { + return this._value != null; + } + set + { + bool flag = value == (this._value == null); + if (flag) + { + this._value = (value ? this.value : null); + } + } + } + + private string _type; + + private string _value; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializevalue() + { + return this.valueSpecified; + } + + private void Resetvalue() + { + this.valueSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigReq.cs.meta new file mode 100644 index 00000000..b552ba67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 971418ac965cf724d96512b4c06c8167 +timeCreated: 1611404187 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigRes.cs new file mode 100644 index 00000000..d4d0d00f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetRoleConfigRes")] + [Serializable] + public class SetRoleConfigRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigRes.cs.meta new file mode 100644 index 00000000..61a16b35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetRoleConfigRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6226f6a47130a884bad67ebc8ed4cc34 +timeCreated: 1611403840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetSubscirbeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetSubscirbeArg.cs new file mode 100644 index 00000000..958f877c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetSubscirbeArg.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetSubscirbeArg")] + [Serializable] + public class SetSubscirbeArg : IExtensible + { + [ProtoMember(1, Name = "msgid", DataFormat = DataFormat.TwosComplement)] + public List msgid + { + get + { + return this._msgid; + } + } + + [ProtoMember(2, IsRequired = false, Name = "msgtype", DataFormat = DataFormat.TwosComplement)] + public int msgtype + { + get + { + return this._msgtype ?? 0; + } + set + { + this._msgtype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool msgtypeSpecified + { + get + { + return this._msgtype != null; + } + set + { + bool flag = value == (this._msgtype == null); + if (flag) + { + this._msgtype = (value ? new int?(this.msgtype) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "token", DataFormat = DataFormat.Default)] + public string token + { + get + { + return this._token ?? ""; + } + set + { + this._token = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tokenSpecified + { + get + { + return this._token != null; + } + set + { + bool flag = value == (this._token == null); + if (flag) + { + this._token = (value ? this.token : null); + } + } + } + + private readonly List _msgid = new List(); + + private int? _msgtype; + + private string _token; + + private IExtension extensionObject; + + private bool ShouldSerializemsgtype() + { + return this.msgtypeSpecified; + } + + private void Resetmsgtype() + { + this.msgtypeSpecified = false; + } + + private bool ShouldSerializetoken() + { + return this.tokenSpecified; + } + + private void Resettoken() + { + this.tokenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetSubscirbeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetSubscirbeArg.cs.meta new file mode 100644 index 00000000..27405f69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetSubscirbeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2741e5640eee8494abf42a6287c5018d +timeCreated: 1611403470 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetSubscribeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetSubscribeRes.cs new file mode 100644 index 00000000..2adf2263 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetSubscribeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetSubscribeRes")] + [Serializable] + public class SetSubscribeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetSubscribeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetSubscribeRes.cs.meta new file mode 100644 index 00000000..3cdbb8ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetSubscribeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cb215954f5f2aa48ac46de634e65efe +timeCreated: 1611403347 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetVoipMemberState.cs b/Client/Assets/Scripts/XMainClient/KKSG/SetVoipMemberState.cs new file mode 100644 index 00000000..097ef58c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetVoipMemberState.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SetVoipMemberState")] + [Serializable] + public class SetVoipMemberState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "nstate", DataFormat = DataFormat.TwosComplement)] + public uint nstate + { + get + { + return this._nstate ?? 0u; + } + set + { + this._nstate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nstateSpecified + { + get + { + return this._nstate != null; + } + set + { + bool flag = value == (this._nstate == null); + if (flag) + { + this._nstate = (value ? new uint?(this.nstate) : null); + } + } + } + + private uint? _nstate; + + private IExtension extensionObject; + + private bool ShouldSerializenstate() + { + return this.nstateSpecified; + } + + private void Resetnstate() + { + this.nstateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SetVoipMemberState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SetVoipMemberState.cs.meta new file mode 100644 index 00000000..98bdffa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SetVoipMemberState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7507794a64fac9448ca287d4da0bac3 +timeCreated: 1611404402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatData.cs new file mode 100644 index 00000000..197d3ef4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatData.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShadowCatData")] + [Serializable] + public class ShadowCatData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastUpdateTime", DataFormat = DataFormat.TwosComplement)] + public uint lastUpdateTime + { + get + { + return this._lastUpdateTime ?? 0u; + } + set + { + this._lastUpdateTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastUpdateTimeSpecified + { + get + { + return this._lastUpdateTime != null; + } + set + { + bool flag = value == (this._lastUpdateTime == null); + if (flag) + { + this._lastUpdateTime = (value ? new uint?(this.lastUpdateTime) : null); + } + } + } + + [ProtoMember(2, Name = "treasures", DataFormat = DataFormat.TwosComplement)] + public List treasures + { + get + { + return this._treasures; + } + } + + private uint? _lastUpdateTime; + + private readonly List _treasures = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializelastUpdateTime() + { + return this.lastUpdateTimeSpecified; + } + + private void ResetlastUpdateTime() + { + this.lastUpdateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatData.cs.meta new file mode 100644 index 00000000..608c959b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2bac06eb824706147b22046a8b95762b +timeCreated: 1611403500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationArg.cs new file mode 100644 index 00000000..ed05e4d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShadowCatOperationArg")] + [Serializable] + public class ShadowCatOperationArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "num", DataFormat = DataFormat.TwosComplement)] + public uint num + { + get + { + return this._num ?? 0u; + } + set + { + this._num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool numSpecified + { + get + { + return this._num != null; + } + set + { + bool flag = value == (this._num == null); + if (flag) + { + this._num = (value ? new uint?(this.num) : null); + } + } + } + + private uint? _type; + + private uint? _num; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializenum() + { + return this.numSpecified; + } + + private void Resetnum() + { + this.numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationArg.cs.meta new file mode 100644 index 00000000..bb1e50d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2271e1104292e45438732fb2c457dc82 +timeCreated: 1611403422 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationRes.cs new file mode 100644 index 00000000..64a3e32b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationRes.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShadowCatOperationRes")] + [Serializable] + public class ShadowCatOperationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "treasures", DataFormat = DataFormat.TwosComplement)] + public List treasures + { + get + { + return this._treasures; + } + } + + private ErrorCode? _errorcode; + + private readonly List _treasures = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationRes.cs.meta new file mode 100644 index 00000000..b66be065 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShadowCatOperationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8018f343e6bfeb04bb57bed3c71ec570 +timeCreated: 1611404032 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShareRandomGiftData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShareRandomGiftData.cs new file mode 100644 index 00000000..222181ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShareRandomGiftData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShareRandomGiftData")] + [Serializable] + public class ShareRandomGiftData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + private uint? _id; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShareRandomGiftData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShareRandomGiftData.cs.meta new file mode 100644 index 00000000..7ef105ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShareRandomGiftData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01f561e9fe92c3e4a88f9840b4a26ebb +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShareReportData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShareReportData.cs new file mode 100644 index 00000000..0b0b0657 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShareReportData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShareReportData")] + [Serializable] + public class ShareReportData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public int op + { + get + { + return this._op ?? 0; + } + set + { + this._op = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new int?(this.op) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + private int? _op; + + private int? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShareReportData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShareReportData.cs.meta new file mode 100644 index 00000000..67cbc568 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShareReportData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3e0ba398d1dce943934425c7c9133dc +timeCreated: 1611404280 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs new file mode 100644 index 00000000..af37c833 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs @@ -0,0 +1,207 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShopItem")] + [Serializable] + public class ShopItem : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Item", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Item Item + { + get + { + return this._Item; + } + set + { + this._Item = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public uint slot + { + get + { + return this._slot ?? 0u; + } + set + { + this._slot = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new uint?(this.slot) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "buycount", DataFormat = DataFormat.TwosComplement)] + public uint buycount + { + get + { + return this._buycount ?? 0u; + } + set + { + this._buycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buycountSpecified + { + get + { + return this._buycount != null; + } + set + { + bool flag = value == (this._buycount == null); + if (flag) + { + this._buycount = (value ? new uint?(this.buycount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "dailybuycount", DataFormat = DataFormat.TwosComplement)] + public uint dailybuycount + { + get + { + return this._dailybuycount ?? 0u; + } + set + { + this._dailybuycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dailybuycountSpecified + { + get + { + return this._dailybuycount != null; + } + set + { + bool flag = value == (this._dailybuycount == null); + if (flag) + { + this._dailybuycount = (value ? new uint?(this.dailybuycount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "weekbuycount", DataFormat = DataFormat.TwosComplement)] + public uint weekbuycount + { + get + { + return this._weekbuycount ?? 0u; + } + set + { + this._weekbuycount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekbuycountSpecified + { + get + { + return this._weekbuycount != null; + } + set + { + bool flag = value == (this._weekbuycount == null); + if (flag) + { + this._weekbuycount = (value ? new uint?(this.weekbuycount) : null); + } + } + } + + private Item _Item = null; + + private uint? _slot; + + private uint? _buycount; + + private uint? _dailybuycount; + + private uint? _weekbuycount; + + private IExtension extensionObject; + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + private bool ShouldSerializebuycount() + { + return this.buycountSpecified; + } + + private void Resetbuycount() + { + this.buycountSpecified = false; + } + + private bool ShouldSerializedailybuycount() + { + return this.dailybuycountSpecified; + } + + private void Resetdailybuycount() + { + this.dailybuycountSpecified = false; + } + + private bool ShouldSerializeweekbuycount() + { + return this.weekbuycountSpecified; + } + + private void Resetweekbuycount() + { + this.weekbuycountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs.meta new file mode 100644 index 00000000..f2958a78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cda3950dd6efcb4bb3ee9881d5794e3 +timeCreated: 1611403998 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShopRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShopRecord.cs new file mode 100644 index 00000000..23f4626b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShopRecord.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShopRecord")] + [Serializable] + public class ShopRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "dayupdate", DataFormat = DataFormat.TwosComplement)] + public uint dayupdate + { + get + { + return this._dayupdate ?? 0u; + } + set + { + this._dayupdate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dayupdateSpecified + { + get + { + return this._dayupdate != null; + } + set + { + bool flag = value == (this._dayupdate == null); + if (flag) + { + this._dayupdate = (value ? new uint?(this.dayupdate) : null); + } + } + } + + [ProtoMember(2, Name = "shops", DataFormat = DataFormat.Default)] + public List shops + { + get + { + return this._shops; + } + } + + [ProtoMember(3, IsRequired = false, Name = "weekupdate", DataFormat = DataFormat.TwosComplement)] + public uint weekupdate + { + get + { + return this._weekupdate ?? 0u; + } + set + { + this._weekupdate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekupdateSpecified + { + get + { + return this._weekupdate != null; + } + set + { + bool flag = value == (this._weekupdate == null); + if (flag) + { + this._weekupdate = (value ? new uint?(this.weekupdate) : null); + } + } + } + + private uint? _dayupdate; + + private readonly List _shops = new List(); + + private uint? _weekupdate; + + private IExtension extensionObject; + + private bool ShouldSerializedayupdate() + { + return this.dayupdateSpecified; + } + + private void Resetdayupdate() + { + this.dayupdateSpecified = false; + } + + private bool ShouldSerializeweekupdate() + { + return this.weekupdateSpecified; + } + + private void Resetweekupdate() + { + this.weekupdateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShopRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShopRecord.cs.meta new file mode 100644 index 00000000..b6cf25b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShopRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2eec07cc666822d46ad93f443c57a5f5 +timeCreated: 1611403512 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShopRecordOne.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShopRecordOne.cs new file mode 100644 index 00000000..3be94d50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShopRecordOne.cs @@ -0,0 +1,333 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShopRecordOne")] + [Serializable] + public class ShopRecordOne : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "updatetime", DataFormat = DataFormat.TwosComplement)] + public uint updatetime + { + get + { + return this._updatetime ?? 0u; + } + set + { + this._updatetime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updatetimeSpecified + { + get + { + return this._updatetime != null; + } + set + { + bool flag = value == (this._updatetime == null); + if (flag) + { + this._updatetime = (value ? new uint?(this.updatetime) : null); + } + } + } + + [ProtoMember(3, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(4, Name = "slots", DataFormat = DataFormat.TwosComplement)] + public List slots + { + get + { + return this._slots; + } + } + + [ProtoMember(5, Name = "buycount", DataFormat = DataFormat.Default)] + public List buycount + { + get + { + return this._buycount; + } + } + + [ProtoMember(6, Name = "dailybuycount", DataFormat = DataFormat.Default)] + public List dailybuycount + { + get + { + return this._dailybuycount; + } + } + + [ProtoMember(7, IsRequired = false, Name = "refreshcount", DataFormat = DataFormat.TwosComplement)] + public uint refreshcount + { + get + { + return this._refreshcount ?? 0u; + } + set + { + this._refreshcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshcountSpecified + { + get + { + return this._refreshcount != null; + } + set + { + bool flag = value == (this._refreshcount == null); + if (flag) + { + this._refreshcount = (value ? new uint?(this.refreshcount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "refreshtime", DataFormat = DataFormat.TwosComplement)] + public uint refreshtime + { + get + { + return this._refreshtime ?? 0u; + } + set + { + this._refreshtime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshtimeSpecified + { + get + { + return this._refreshtime != null; + } + set + { + bool flag = value == (this._refreshtime == null); + if (flag) + { + this._refreshtime = (value ? new uint?(this.refreshtime) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "refreshday", DataFormat = DataFormat.TwosComplement)] + public uint refreshday + { + get + { + return this._refreshday ?? 0u; + } + set + { + this._refreshday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshdaySpecified + { + get + { + return this._refreshday != null; + } + set + { + bool flag = value == (this._refreshday == null); + if (flag) + { + this._refreshday = (value ? new uint?(this.refreshday) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "ishint", DataFormat = DataFormat.Default)] + public bool ishint + { + get + { + return this._ishint ?? false; + } + set + { + this._ishint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ishintSpecified + { + get + { + return this._ishint != null; + } + set + { + bool flag = value == (this._ishint == null); + if (flag) + { + this._ishint = (value ? new bool?(this.ishint) : null); + } + } + } + + [ProtoMember(11, Name = "weekbuycount", DataFormat = DataFormat.Default)] + public List weekbuycount + { + get + { + return this._weekbuycount; + } + } + + private uint? _type; + + private uint? _updatetime; + + private readonly List _items = new List(); + + private readonly List _slots = new List(); + + private readonly List _buycount = new List(); + + private readonly List _dailybuycount = new List(); + + private uint? _refreshcount; + + private uint? _refreshtime; + + private uint? _refreshday; + + private bool? _ishint; + + private readonly List _weekbuycount = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeupdatetime() + { + return this.updatetimeSpecified; + } + + private void Resetupdatetime() + { + this.updatetimeSpecified = false; + } + + private bool ShouldSerializerefreshcount() + { + return this.refreshcountSpecified; + } + + private void Resetrefreshcount() + { + this.refreshcountSpecified = false; + } + + private bool ShouldSerializerefreshtime() + { + return this.refreshtimeSpecified; + } + + private void Resetrefreshtime() + { + this.refreshtimeSpecified = false; + } + + private bool ShouldSerializerefreshday() + { + return this.refreshdaySpecified; + } + + private void Resetrefreshday() + { + this.refreshdaySpecified = false; + } + + private bool ShouldSerializeishint() + { + return this.ishintSpecified; + } + + private void Resetishint() + { + this.ishintSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShopRecordOne.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShopRecordOne.cs.meta new file mode 100644 index 00000000..be1b1f98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShopRecordOne.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 200d4251ab6d14e43abf10f30c827978 +timeCreated: 1611403404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs new file mode 100644 index 00000000..e8f08755 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShowFlowerPageArg")] + [Serializable] + public class ShowFlowerPageArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs.meta new file mode 100644 index 00000000..7b7f1bce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f2adcd5a99da9e4e9f06256f624039b +timeCreated: 1611403609 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs new file mode 100644 index 00000000..153e247a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs @@ -0,0 +1,475 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShowFlowerPageRes")] + [Serializable] + public class ShowFlowerPageRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)] + public uint allcount + { + get + { + return this._allcount ?? 0u; + } + set + { + this._allcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allcountSpecified + { + get + { + return this._allcount != null; + } + set + { + bool flag = value == (this._allcount == null); + if (flag) + { + this._allcount = (value ? new uint?(this.allcount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "weekcount", DataFormat = DataFormat.TwosComplement)] + public uint weekcount + { + get + { + return this._weekcount ?? 0u; + } + set + { + this._weekcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekcountSpecified + { + get + { + return this._weekcount != null; + } + set + { + bool flag = value == (this._weekcount == null); + if (flag) + { + this._weekcount = (value ? new uint?(this.weekcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "weekrank", DataFormat = DataFormat.TwosComplement)] + public uint weekrank + { + get + { + return this._weekrank ?? 0u; + } + set + { + this._weekrank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekrankSpecified + { + get + { + return this._weekrank != null; + } + set + { + bool flag = value == (this._weekrank == null); + if (flag) + { + this._weekrank = (value ? new uint?(this.weekrank) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cansendcount", DataFormat = DataFormat.TwosComplement)] + public uint cansendcount + { + get + { + return this._cansendcount ?? 0u; + } + set + { + this._cansendcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cansendcountSpecified + { + get + { + return this._cansendcount != null; + } + set + { + bool flag = value == (this._cansendcount == null); + if (flag) + { + this._cansendcount = (value ? new uint?(this.cansendcount) : null); + } + } + } + + [ProtoMember(5, Name = "cansendstate", DataFormat = DataFormat.TwosComplement)] + public List cansendstate + { + get + { + return this._cansendstate; + } + } + + [ProtoMember(6, Name = "recordroleid", DataFormat = DataFormat.TwosComplement)] + public List recordroleid + { + get + { + return this._recordroleid; + } + } + + [ProtoMember(7, Name = "recordcount", DataFormat = DataFormat.TwosComplement)] + public List recordcount + { + get + { + return this._recordcount; + } + } + + [ProtoMember(8, Name = "recordtime", DataFormat = DataFormat.TwosComplement)] + public List recordtime + { + get + { + return this._recordtime; + } + } + + [ProtoMember(9, Name = "recordname", DataFormat = DataFormat.Default)] + public List recordname + { + get + { + return this._recordname; + } + } + + [ProtoMember(10, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "roleprofession", DataFormat = DataFormat.TwosComplement)] + public uint roleprofession + { + get + { + return this._roleprofession ?? 0u; + } + set + { + this._roleprofession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleprofessionSpecified + { + get + { + return this._roleprofession != null; + } + set + { + bool flag = value == (this._roleprofession == null); + if (flag) + { + this._roleprofession = (value ? new uint?(this.roleprofession) : null); + } + } + } + + [ProtoMember(12, Name = "otherroleid", DataFormat = DataFormat.TwosComplement)] + public List otherroleid + { + get + { + return this._otherroleid; + } + } + + [ProtoMember(13, Name = "othername", DataFormat = DataFormat.Default)] + public List othername + { + get + { + return this._othername; + } + } + + [ProtoMember(14, Name = "othercount", DataFormat = DataFormat.TwosComplement)] + public List othercount + { + get + { + return this._othercount; + } + } + + [ProtoMember(15, Name = "otherprofession", DataFormat = DataFormat.TwosComplement)] + public List otherprofession + { + get + { + return this._otherprofession; + } + } + + [ProtoMember(16, Name = "updegreelevel", DataFormat = DataFormat.TwosComplement)] + public List updegreelevel + { + get + { + return this._updegreelevel; + } + } + + [ProtoMember(17, Name = "sendFlowersTotal", DataFormat = DataFormat.Default)] + public List sendFlowersTotal + { + get + { + return this._sendFlowersTotal; + } + } + + [ProtoMember(18, Name = "sendLog", DataFormat = DataFormat.Default)] + public List sendLog + { + get + { + return this._sendLog; + } + } + + [ProtoMember(19, Name = "receiveFlowersTotal", DataFormat = DataFormat.Default)] + public List receiveFlowersTotal + { + get + { + return this._receiveFlowersTotal; + } + } + + [ProtoMember(20, Name = "receiveRank", DataFormat = DataFormat.Default)] + public List receiveRank + { + get + { + return this._receiveRank; + } + } + + [ProtoMember(21, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private uint? _allcount; + + private uint? _weekcount; + + private uint? _weekrank; + + private uint? _cansendcount; + + private readonly List _cansendstate = new List(); + + private readonly List _recordroleid = new List(); + + private readonly List _recordcount = new List(); + + private readonly List _recordtime = new List(); + + private readonly List _recordname = new List(); + + private string _rolename; + + private uint? _roleprofession; + + private readonly List _otherroleid = new List(); + + private readonly List _othername = new List(); + + private readonly List _othercount = new List(); + + private readonly List _otherprofession = new List(); + + private readonly List _updegreelevel = new List(); + + private readonly List _sendFlowersTotal = new List(); + + private readonly List _sendLog = new List(); + + private readonly List _receiveFlowersTotal = new List(); + + private readonly List _receiveRank = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeallcount() + { + return this.allcountSpecified; + } + + private void Resetallcount() + { + this.allcountSpecified = false; + } + + private bool ShouldSerializeweekcount() + { + return this.weekcountSpecified; + } + + private void Resetweekcount() + { + this.weekcountSpecified = false; + } + + private bool ShouldSerializeweekrank() + { + return this.weekrankSpecified; + } + + private void Resetweekrank() + { + this.weekrankSpecified = false; + } + + private bool ShouldSerializecansendcount() + { + return this.cansendcountSpecified; + } + + private void Resetcansendcount() + { + this.cansendcountSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeroleprofession() + { + return this.roleprofessionSpecified; + } + + private void Resetroleprofession() + { + this.roleprofessionSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs.meta new file mode 100644 index 00000000..d9e1ba06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9b6411dccf0c16469caa5a475aae4bf +timeCreated: 1611404411 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillBulletResultReqUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillBulletResultReqUnit.cs new file mode 100644 index 00000000..14fa09f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillBulletResultReqUnit.cs @@ -0,0 +1,176 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillBulletResultReqUnit")] + [Serializable] + public class SkillBulletResultReqUnit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "BulletId", DataFormat = DataFormat.TwosComplement)] + public ulong BulletId + { + get + { + return this._BulletId ?? 0UL; + } + set + { + this._BulletId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BulletIdSpecified + { + get + { + return this._BulletId != null; + } + set + { + bool flag = value == (this._BulletId == null); + if (flag) + { + this._BulletId = (value ? new ulong?(this.BulletId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "ResultAt", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 ResultAt + { + get + { + return this._ResultAt; + } + set + { + this._ResultAt = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "ResultForward", DataFormat = DataFormat.FixedSize)] + public float ResultForward + { + get + { + return this._ResultForward ?? 0f; + } + set + { + this._ResultForward = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ResultForwardSpecified + { + get + { + return this._ResultForward != null; + } + set + { + bool flag = value == (this._ResultForward == null); + if (flag) + { + this._ResultForward = (value ? new float?(this.ResultForward) : null); + } + } + } + + [ProtoMember(4, Name = "TargetList", DataFormat = DataFormat.TwosComplement)] + public List TargetList + { + get + { + return this._TargetList; + } + } + + [ProtoMember(5, IsRequired = false, Name = "IsCollided", DataFormat = DataFormat.Default)] + public bool IsCollided + { + get + { + return this._IsCollided ?? false; + } + set + { + this._IsCollided = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IsCollidedSpecified + { + get + { + return this._IsCollided != null; + } + set + { + bool flag = value == (this._IsCollided == null); + if (flag) + { + this._IsCollided = (value ? new bool?(this.IsCollided) : null); + } + } + } + + private ulong? _BulletId; + + private Vec3 _ResultAt = null; + + private float? _ResultForward; + + private readonly List _TargetList = new List(); + + private bool? _IsCollided; + + private IExtension extensionObject; + + private bool ShouldSerializeBulletId() + { + return this.BulletIdSpecified; + } + + private void ResetBulletId() + { + this.BulletIdSpecified = false; + } + + private bool ShouldSerializeResultForward() + { + return this.ResultForwardSpecified; + } + + private void ResetResultForward() + { + this.ResultForwardSpecified = false; + } + + private bool ShouldSerializeIsCollided() + { + return this.IsCollidedSpecified; + } + + private void ResetIsCollided() + { + this.IsCollidedSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillBulletResultReqUnit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillBulletResultReqUnit.cs.meta new file mode 100644 index 00000000..cb24a8fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillBulletResultReqUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8bd8b154a48483841a4b4c47e1a3294a +timeCreated: 1611404097 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillChangedData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillChangedData.cs new file mode 100644 index 00000000..dd7fb5d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillChangedData.cs @@ -0,0 +1,301 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillChangedData")] + [Serializable] + public class SkillChangedData : IExtensible + { + [ProtoMember(1, Name = "newSkill", DataFormat = DataFormat.TwosComplement)] + public List newSkill + { + get + { + return this._newSkill; + } + } + + [ProtoMember(2, Name = "newSkillLevel", DataFormat = DataFormat.TwosComplement)] + public List newSkillLevel + { + get + { + return this._newSkillLevel; + } + } + + [ProtoMember(3, Name = "removeSkill", DataFormat = DataFormat.TwosComplement)] + public List removeSkill + { + get + { + return this._removeSkill; + } + } + + [ProtoMember(4, Name = "changedSkillHash", DataFormat = DataFormat.TwosComplement)] + public List changedSkillHash + { + get + { + return this._changedSkillHash; + } + } + + [ProtoMember(5, Name = "changedSkillLevel", DataFormat = DataFormat.TwosComplement)] + public List changedSkillLevel + { + get + { + return this._changedSkillLevel; + } + } + + [ProtoMember(6, IsRequired = false, Name = "skillpoint", DataFormat = DataFormat.TwosComplement)] + public int skillpoint + { + get + { + return this._skillpoint ?? 0; + } + set + { + this._skillpoint = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillpointSpecified + { + get + { + return this._skillpoint != null; + } + set + { + bool flag = value == (this._skillpoint == null); + if (flag) + { + this._skillpoint = (value ? new int?(this.skillpoint) : null); + } + } + } + + [ProtoMember(7, Name = "skillSlot", DataFormat = DataFormat.TwosComplement)] + public List skillSlot + { + get + { + return this._skillSlot; + } + } + + [ProtoMember(8, IsRequired = false, Name = "skillType", DataFormat = DataFormat.TwosComplement)] + public int skillType + { + get + { + return this._skillType ?? 0; + } + set + { + this._skillType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillTypeSpecified + { + get + { + return this._skillType != null; + } + set + { + bool flag = value == (this._skillType == null); + if (flag) + { + this._skillType = (value ? new int?(this.skillType) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "skillpointtwo", DataFormat = DataFormat.TwosComplement)] + public uint skillpointtwo + { + get + { + return this._skillpointtwo ?? 0u; + } + set + { + this._skillpointtwo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillpointtwoSpecified + { + get + { + return this._skillpointtwo != null; + } + set + { + bool flag = value == (this._skillpointtwo == null); + if (flag) + { + this._skillpointtwo = (value ? new uint?(this.skillpointtwo) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "awakepoint", DataFormat = DataFormat.TwosComplement)] + public uint awakepoint + { + get + { + return this._awakepoint ?? 0u; + } + set + { + this._awakepoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool awakepointSpecified + { + get + { + return this._awakepoint != null; + } + set + { + bool flag = value == (this._awakepoint == null); + if (flag) + { + this._awakepoint = (value ? new uint?(this.awakepoint) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "awakepointtwo", DataFormat = DataFormat.TwosComplement)] + public uint awakepointtwo + { + get + { + return this._awakepointtwo ?? 0u; + } + set + { + this._awakepointtwo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool awakepointtwoSpecified + { + get + { + return this._awakepointtwo != null; + } + set + { + bool flag = value == (this._awakepointtwo == null); + if (flag) + { + this._awakepointtwo = (value ? new uint?(this.awakepointtwo) : null); + } + } + } + + private readonly List _newSkill = new List(); + + private readonly List _newSkillLevel = new List(); + + private readonly List _removeSkill = new List(); + + private readonly List _changedSkillHash = new List(); + + private readonly List _changedSkillLevel = new List(); + + private int? _skillpoint; + + private readonly List _skillSlot = new List(); + + private int? _skillType; + + private uint? _skillpointtwo; + + private uint? _awakepoint; + + private uint? _awakepointtwo; + + private IExtension extensionObject; + + private bool ShouldSerializeskillpoint() + { + return this.skillpointSpecified; + } + + private void Resetskillpoint() + { + this.skillpointSpecified = false; + } + + private bool ShouldSerializeskillType() + { + return this.skillTypeSpecified; + } + + private void ResetskillType() + { + this.skillTypeSpecified = false; + } + + private bool ShouldSerializeskillpointtwo() + { + return this.skillpointtwoSpecified; + } + + private void Resetskillpointtwo() + { + this.skillpointtwoSpecified = false; + } + + private bool ShouldSerializeawakepoint() + { + return this.awakepointSpecified; + } + + private void Resetawakepoint() + { + this.awakepointSpecified = false; + } + + private bool ShouldSerializeawakepointtwo() + { + return this.awakepointtwoSpecified; + } + + private void Resetawakepointtwo() + { + this.awakepointtwoSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillChangedData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillChangedData.cs.meta new file mode 100644 index 00000000..e39828c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillChangedData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92ee2dd74634e06498bd89f2b3354c8a +timeCreated: 1611404148 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillCoolPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillCoolPara.cs new file mode 100644 index 00000000..66659ba4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillCoolPara.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillCoolPara")] + [Serializable] + public class SkillCoolPara : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillCoolPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillCoolPara.cs.meta new file mode 100644 index 00000000..8c0170d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillCoolPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 888fa18931bb4c641888d259ab5fb5a7 +timeCreated: 1611404084 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs new file mode 100644 index 00000000..a97aa611 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillDataUnit")] + [Serializable] + public class SkillDataUnit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SkillID", DataFormat = DataFormat.TwosComplement)] + public uint SkillID + { + get + { + return this._SkillID ?? 0u; + } + set + { + this._SkillID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillIDSpecified + { + get + { + return this._SkillID != null; + } + set + { + bool flag = value == (this._SkillID == null); + if (flag) + { + this._SkillID = (value ? new uint?(this.SkillID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "Target", DataFormat = DataFormat.TwosComplement)] + public ulong Target + { + get + { + return this._Target ?? 0UL; + } + set + { + this._Target = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TargetSpecified + { + get + { + return this._Target != null; + } + set + { + bool flag = value == (this._Target == null); + if (flag) + { + this._Target = (value ? new ulong?(this.Target) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "ManualFace", DataFormat = DataFormat.TwosComplement)] + public int ManualFace + { + get + { + return this._ManualFace ?? 0; + } + set + { + this._ManualFace = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ManualFaceSpecified + { + get + { + return this._ManualFace != null; + } + set + { + bool flag = value == (this._ManualFace == null); + if (flag) + { + this._ManualFace = (value ? new int?(this.ManualFace) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "Slot", DataFormat = DataFormat.TwosComplement)] + public int Slot + { + get + { + return this._Slot ?? 0; + } + set + { + this._Slot = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SlotSpecified + { + get + { + return this._Slot != null; + } + set + { + bool flag = value == (this._Slot == null); + if (flag) + { + this._Slot = (value ? new int?(this.Slot) : null); + } + } + } + + private uint? _SkillID; + + private ulong? _Target; + + private int? _ManualFace; + + private int? _Slot; + + private IExtension extensionObject; + + private bool ShouldSerializeSkillID() + { + return this.SkillIDSpecified; + } + + private void ResetSkillID() + { + this.SkillIDSpecified = false; + } + + private bool ShouldSerializeTarget() + { + return this.TargetSpecified; + } + + private void ResetTarget() + { + this.TargetSpecified = false; + } + + private bool ShouldSerializeManualFace() + { + return this.ManualFaceSpecified; + } + + private void ResetManualFace() + { + this.ManualFaceSpecified = false; + } + + private bool ShouldSerializeSlot() + { + return this.SlotSpecified; + } + + private void ResetSlot() + { + this.SlotSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs.meta new file mode 100644 index 00000000..1e29aa30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillDataUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bba2e007d1a01a94687ef670e3ecb9aa +timeCreated: 1611404442 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs new file mode 100644 index 00000000..4b73126a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillInfo")] + [Serializable] + public class SkillInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "skillHash", DataFormat = DataFormat.TwosComplement)] + public uint skillHash + { + get + { + return this._skillHash ?? 0u; + } + set + { + this._skillHash = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillHashSpecified + { + get + { + return this._skillHash != null; + } + set + { + bool flag = value == (this._skillHash == null); + if (flag) + { + this._skillHash = (value ? new uint?(this.skillHash) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "skillLevel", DataFormat = DataFormat.TwosComplement)] + public uint skillLevel + { + get + { + return this._skillLevel ?? 0u; + } + set + { + this._skillLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillLevelSpecified + { + get + { + return this._skillLevel != null; + } + set + { + bool flag = value == (this._skillLevel == null); + if (flag) + { + this._skillLevel = (value ? new uint?(this.skillLevel) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "skillpoint", DataFormat = DataFormat.TwosComplement)] + public uint skillpoint + { + get + { + return this._skillpoint ?? 0u; + } + set + { + this._skillpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillpointSpecified + { + get + { + return this._skillpoint != null; + } + set + { + bool flag = value == (this._skillpoint == null); + if (flag) + { + this._skillpoint = (value ? new uint?(this.skillpoint) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isbasic", DataFormat = DataFormat.Default)] + public bool isbasic + { + get + { + return this._isbasic ?? false; + } + set + { + this._isbasic = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isbasicSpecified + { + get + { + return this._isbasic != null; + } + set + { + bool flag = value == (this._isbasic == null); + if (flag) + { + this._isbasic = (value ? new bool?(this.isbasic) : null); + } + } + } + + private uint? _skillHash; + + private uint? _skillLevel; + + private uint? _skillpoint; + + private bool? _isbasic; + + private IExtension extensionObject; + + private bool ShouldSerializeskillHash() + { + return this.skillHashSpecified; + } + + private void ResetskillHash() + { + this.skillHashSpecified = false; + } + + private bool ShouldSerializeskillLevel() + { + return this.skillLevelSpecified; + } + + private void ResetskillLevel() + { + this.skillLevelSpecified = false; + } + + private bool ShouldSerializeskillpoint() + { + return this.skillpointSpecified; + } + + private void Resetskillpoint() + { + this.skillpointSpecified = false; + } + + private bool ShouldSerializeisbasic() + { + return this.isbasicSpecified; + } + + private void Resetisbasic() + { + this.isbasicSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs.meta new file mode 100644 index 00000000..2acff238 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bbb794f2cc416b4ab84572ead7d6442 +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillInitCoolPara.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillInitCoolPara.cs new file mode 100644 index 00000000..d7ec65b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillInitCoolPara.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillInitCoolPara")] + [Serializable] + public class SkillInitCoolPara : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillInitCoolPara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillInitCoolPara.cs.meta new file mode 100644 index 00000000..9de49035 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillInitCoolPara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e0ea91ec56262748b2a8d3ccd70c481 +timeCreated: 1611403508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupArg.cs new file mode 100644 index 00000000..9356819c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillLevelupArg")] + [Serializable] + public class SkillLevelupArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "skillHash", DataFormat = DataFormat.TwosComplement)] + public uint skillHash + { + get + { + return this._skillHash ?? 0u; + } + set + { + this._skillHash = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillHashSpecified + { + get + { + return this._skillHash != null; + } + set + { + bool flag = value == (this._skillHash == null); + if (flag) + { + this._skillHash = (value ? new uint?(this.skillHash) : null); + } + } + } + + private uint? _skillHash; + + private IExtension extensionObject; + + private bool ShouldSerializeskillHash() + { + return this.skillHashSpecified; + } + + private void ResetskillHash() + { + this.skillHashSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupArg.cs.meta new file mode 100644 index 00000000..47aafe84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6e71d24ab6a4894c8c3f59650603c75 +timeCreated: 1611404884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupRes.cs new file mode 100644 index 00000000..fecd4249 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillLevelupRes")] + [Serializable] + public class SkillLevelupRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public uint errorcode + { + get + { + return this._errorcode ?? 0u; + } + set + { + this._errorcode = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new uint?(this.errorcode) : null); + } + } + } + + private uint? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupRes.cs.meta new file mode 100644 index 00000000..7973c32c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillLevelupRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cf0f38b615f702428a0855272a2fa88 +timeCreated: 1611403693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillRecord.cs new file mode 100644 index 00000000..f58b9e64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillRecord.cs @@ -0,0 +1,193 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillRecord")] + [Serializable] + public class SkillRecord : IExtensible + { + [ProtoMember(1, Name = "Skills", DataFormat = DataFormat.Default)] + public List Skills + { + get + { + return this._Skills; + } + } + + [ProtoMember(2, Name = "SkillSlot", DataFormat = DataFormat.TwosComplement)] + public List SkillSlot + { + get + { + return this._SkillSlot; + } + } + + [ProtoMember(3, IsRequired = false, Name = "freeresetskill", DataFormat = DataFormat.Default)] + public bool freeresetskill + { + get + { + return this._freeresetskill ?? false; + } + set + { + this._freeresetskill = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freeresetskillSpecified + { + get + { + return this._freeresetskill != null; + } + set + { + bool flag = value == (this._freeresetskill == null); + if (flag) + { + this._freeresetskill = (value ? new bool?(this.freeresetskill) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(5, Name = "SkillsTwo", DataFormat = DataFormat.Default)] + public List SkillsTwo + { + get + { + return this._SkillsTwo; + } + } + + [ProtoMember(6, Name = "SkillSlotTwo", DataFormat = DataFormat.TwosComplement)] + public List SkillSlotTwo + { + get + { + return this._SkillSlotTwo; + } + } + + [ProtoMember(7, IsRequired = false, Name = "awakepoint", DataFormat = DataFormat.TwosComplement)] + public uint awakepoint + { + get + { + return this._awakepoint ?? 0u; + } + set + { + this._awakepoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool awakepointSpecified + { + get + { + return this._awakepoint != null; + } + set + { + bool flag = value == (this._awakepoint == null); + if (flag) + { + this._awakepoint = (value ? new uint?(this.awakepoint) : null); + } + } + } + + private readonly List _Skills = new List(); + + private readonly List _SkillSlot = new List(); + + private bool? _freeresetskill; + + private uint? _index; + + private readonly List _SkillsTwo = new List(); + + private readonly List _SkillSlotTwo = new List(); + + private uint? _awakepoint; + + private IExtension extensionObject; + + private bool ShouldSerializefreeresetskill() + { + return this.freeresetskillSpecified; + } + + private void Resetfreeresetskill() + { + this.freeresetskillSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializeawakepoint() + { + return this.awakepointSpecified; + } + + private void Resetawakepoint() + { + this.awakepointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillRecord.cs.meta new file mode 100644 index 00000000..38ee5e77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecae40d13376fd54b9505aa329966815 +timeCreated: 1611404788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs new file mode 100644 index 00000000..0919b318 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillReplyDataUnit")] + [Serializable] + public class SkillReplyDataUnit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SkillID", DataFormat = DataFormat.TwosComplement)] + public uint SkillID + { + get + { + return this._SkillID ?? 0u; + } + set + { + this._SkillID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillIDSpecified + { + get + { + return this._SkillID != null; + } + set + { + bool flag = value == (this._SkillID == null); + if (flag) + { + this._SkillID = (value ? new uint?(this.SkillID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "PIndex", DataFormat = DataFormat.TwosComplement)] + public uint PIndex + { + get + { + return this._PIndex ?? 0u; + } + set + { + this._PIndex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PIndexSpecified + { + get + { + return this._PIndex != null; + } + set + { + bool flag = value == (this._PIndex == null); + if (flag) + { + this._PIndex = (value ? new uint?(this.PIndex) : null); + } + } + } + + [ProtoMember(3, Name = "TargetList", DataFormat = DataFormat.Default)] + public List TargetList + { + get + { + return this._TargetList; + } + } + + [ProtoMember(4, IsRequired = false, Name = "FirerID", DataFormat = DataFormat.TwosComplement)] + public ulong FirerID + { + get + { + return this._FirerID ?? 0UL; + } + set + { + this._FirerID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FirerIDSpecified + { + get + { + return this._FirerID != null; + } + set + { + bool flag = value == (this._FirerID == null); + if (flag) + { + this._FirerID = (value ? new ulong?(this.FirerID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "BulletID", DataFormat = DataFormat.TwosComplement)] + public ulong BulletID + { + get + { + return this._BulletID ?? 0UL; + } + set + { + this._BulletID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BulletIDSpecified + { + get + { + return this._BulletID != null; + } + set + { + bool flag = value == (this._BulletID == null); + if (flag) + { + this._BulletID = (value ? new ulong?(this.BulletID) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "BulletExtraID", DataFormat = DataFormat.TwosComplement)] + public ulong BulletExtraID + { + get + { + return this._BulletExtraID ?? 0UL; + } + set + { + this._BulletExtraID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BulletExtraIDSpecified + { + get + { + return this._BulletExtraID != null; + } + set + { + bool flag = value == (this._BulletExtraID == null); + if (flag) + { + this._BulletExtraID = (value ? new ulong?(this.BulletExtraID) : null); + } + } + } + + private uint? _SkillID; + + private uint? _PIndex; + + private readonly List _TargetList = new List(); + + private ulong? _FirerID; + + private ulong? _BulletID; + + private ulong? _BulletExtraID; + + private IExtension extensionObject; + + private bool ShouldSerializeSkillID() + { + return this.SkillIDSpecified; + } + + private void ResetSkillID() + { + this.SkillIDSpecified = false; + } + + private bool ShouldSerializePIndex() + { + return this.PIndexSpecified; + } + + private void ResetPIndex() + { + this.PIndexSpecified = false; + } + + private bool ShouldSerializeFirerID() + { + return this.FirerIDSpecified; + } + + private void ResetFirerID() + { + this.FirerIDSpecified = false; + } + + private bool ShouldSerializeBulletID() + { + return this.BulletIDSpecified; + } + + private void ResetBulletID() + { + this.BulletIDSpecified = false; + } + + private bool ShouldSerializeBulletExtraID() + { + return this.BulletExtraIDSpecified; + } + + private void ResetBulletExtraID() + { + this.BulletExtraIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs.meta new file mode 100644 index 00000000..521e9e0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillReplyDataUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af7bc9cd5a976d14e8b5ed9e1788b123 +timeCreated: 1611404345 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillResultReqUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillResultReqUnit.cs new file mode 100644 index 00000000..f14ded39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillResultReqUnit.cs @@ -0,0 +1,278 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillResultReqUnit")] + [Serializable] + public class SkillResultReqUnit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "SkillID", DataFormat = DataFormat.TwosComplement)] + public uint SkillID + { + get + { + return this._SkillID ?? 0u; + } + set + { + this._SkillID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillIDSpecified + { + get + { + return this._SkillID != null; + } + set + { + bool flag = value == (this._SkillID == null); + if (flag) + { + this._SkillID = (value ? new uint?(this.SkillID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "Pos", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 Pos + { + get + { + return this._Pos; + } + set + { + this._Pos = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "Face", DataFormat = DataFormat.FixedSize)] + public float Face + { + get + { + return this._Face ?? 0f; + } + set + { + this._Face = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FaceSpecified + { + get + { + return this._Face != null; + } + set + { + bool flag = value == (this._Face == null); + if (flag) + { + this._Face = (value ? new float?(this.Face) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "TriggerTime", DataFormat = DataFormat.TwosComplement)] + public int TriggerTime + { + get + { + return this._TriggerTime ?? 0; + } + set + { + this._TriggerTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TriggerTimeSpecified + { + get + { + return this._TriggerTime != null; + } + set + { + bool flag = value == (this._TriggerTime == null); + if (flag) + { + this._TriggerTime = (value ? new int?(this.TriggerTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ResultToken", DataFormat = DataFormat.TwosComplement)] + public int ResultToken + { + get + { + return this._ResultToken ?? 0; + } + set + { + this._ResultToken = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ResultTokenSpecified + { + get + { + return this._ResultToken != null; + } + set + { + bool flag = value == (this._ResultToken == null); + if (flag) + { + this._ResultToken = (value ? new int?(this.ResultToken) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "ResultAt", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 ResultAt + { + get + { + return this._ResultAt; + } + set + { + this._ResultAt = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "ResultForward", DataFormat = DataFormat.FixedSize)] + public float ResultForward + { + get + { + return this._ResultForward ?? 0f; + } + set + { + this._ResultForward = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ResultForwardSpecified + { + get + { + return this._ResultForward != null; + } + set + { + bool flag = value == (this._ResultForward == null); + if (flag) + { + this._ResultForward = (value ? new float?(this.ResultForward) : null); + } + } + } + + [ProtoMember(8, Name = "TargetList", DataFormat = DataFormat.TwosComplement)] + public List TargetList + { + get + { + return this._TargetList; + } + } + + private uint? _SkillID; + + private Vec3 _Pos = null; + + private float? _Face; + + private int? _TriggerTime; + + private int? _ResultToken; + + private Vec3 _ResultAt = null; + + private float? _ResultForward; + + private readonly List _TargetList = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeSkillID() + { + return this.SkillIDSpecified; + } + + private void ResetSkillID() + { + this.SkillIDSpecified = false; + } + + private bool ShouldSerializeFace() + { + return this.FaceSpecified; + } + + private void ResetFace() + { + this.FaceSpecified = false; + } + + private bool ShouldSerializeTriggerTime() + { + return this.TriggerTimeSpecified; + } + + private void ResetTriggerTime() + { + this.TriggerTimeSpecified = false; + } + + private bool ShouldSerializeResultToken() + { + return this.ResultTokenSpecified; + } + + private void ResetResultToken() + { + this.ResultTokenSpecified = false; + } + + private bool ShouldSerializeResultForward() + { + return this.ResultForwardSpecified; + } + + private void ResetResultForward() + { + this.ResultForwardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillResultReqUnit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillResultReqUnit.cs.meta new file mode 100644 index 00000000..e1fd30b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillResultReqUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d6dd37540819234eaaa770deb30d3e3 +timeCreated: 1611403353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillTypeEnum.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkillTypeEnum.cs new file mode 100644 index 00000000..3821dcd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillTypeEnum.cs @@ -0,0 +1,26 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkillTypeEnum")] + public enum SkillTypeEnum + { + [ProtoEnum(Name = "Skill_None", Value = 0)] + Skill_None, + [ProtoEnum(Name = "Skill_Normal", Value = 1)] + Skill_Normal, + [ProtoEnum(Name = "Skill_Big", Value = 2)] + Skill_Big, + [ProtoEnum(Name = "Skill_UnUsed", Value = 3)] + Skill_UnUsed, + [ProtoEnum(Name = "Skill_SceneBuff", Value = 4)] + Skill_SceneBuff, + [ProtoEnum(Name = "Skill_Help", Value = 5)] + Skill_Help, + [ProtoEnum(Name = "Skill_Buff", Value = 6)] + Skill_Buff, + [ProtoEnum(Name = "Skill_Awake", Value = 7)] + Skill_Awake + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkillTypeEnum.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkillTypeEnum.cs.meta new file mode 100644 index 00000000..54168eed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkillTypeEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fccc243889209d42accca5dad0d991f +timeCreated: 1611403213 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllInfo.cs new file mode 100644 index 00000000..cc0e027b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityAllInfo")] + [Serializable] + public class SkyCityAllInfo : IExtensible + { + [ProtoMember(1, Name = "groupdata", DataFormat = DataFormat.Default)] + public List groupdata + { + get + { + return this._groupdata; + } + } + + [ProtoMember(2, IsRequired = false, Name = "timetype", DataFormat = DataFormat.TwosComplement)] + public SkyCityTimeType timetype + { + get + { + return this._timetype ?? SkyCityTimeType.Waiting; + } + set + { + this._timetype = new SkyCityTimeType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timetypeSpecified + { + get + { + return this._timetype != null; + } + set + { + bool flag = value == (this._timetype == null); + if (flag) + { + this._timetype = (value ? new SkyCityTimeType?(this.timetype) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + private readonly List _groupdata = new List(); + + private SkyCityTimeType? _timetype; + + private uint? _lefttime; + + private IExtension extensionObject; + + private bool ShouldSerializetimetype() + { + return this.timetypeSpecified; + } + + private void Resettimetype() + { + this.timetypeSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllInfo.cs.meta new file mode 100644 index 00000000..0d118b81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4976e292a2fafa445b78a79144382f51 +timeCreated: 1611403661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs new file mode 100644 index 00000000..693fcb3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityAllTeamBaseInfo")] + [Serializable] + public class SkyCityAllTeamBaseInfo : IExtensible + { + [ProtoMember(1, Name = "info", DataFormat = DataFormat.Default)] + public List info + { + get + { + return this._info; + } + } + + [ProtoMember(2, IsRequired = false, Name = "games", DataFormat = DataFormat.TwosComplement)] + public uint games + { + get + { + return this._games ?? 0u; + } + set + { + this._games = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gamesSpecified + { + get + { + return this._games != null; + } + set + { + bool flag = value == (this._games == null); + if (flag) + { + this._games = (value ? new uint?(this.games) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public uint floor + { + get + { + return this._floor ?? 0u; + } + set + { + this._floor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new uint?(this.floor) : null); + } + } + } + + private readonly List _info = new List(); + + private uint? _games; + + private uint? _floor; + + private IExtension extensionObject; + + private bool ShouldSerializegames() + { + return this.gamesSpecified; + } + + private void Resetgames() + { + this.gamesSpecified = false; + } + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs.meta new file mode 100644 index 00000000..064a50c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityAllTeamBaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15149d463e05e6146848818bb2e90533 +timeCreated: 1611403261 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs new file mode 100644 index 00000000..25ab58db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityArg")] + [Serializable] + public class SkyCityArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs.meta new file mode 100644 index 00000000..1e9ecb65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a653ad324f195f04e8f24258d6cce151 +timeCreated: 1611404288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterArg.cs new file mode 100644 index 00000000..a8ac0029 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityEnterArg")] + [Serializable] + public class SkyCityEnterArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + private uint? _sceneid; + + private IExtension extensionObject; + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterArg.cs.meta new file mode 100644 index 00000000..fa7be8e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5a41c121169e254e8f2ecb1e37c3dad +timeCreated: 1611404506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterRes.cs new file mode 100644 index 00000000..18364c70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityEnterRes")] + [Serializable] + public class SkyCityEnterRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterRes.cs.meta new file mode 100644 index 00000000..6e0266a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEnterRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74070881a5ca4d542aad82fc2783c80d +timeCreated: 1611403942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateBaseInfo.cs new file mode 100644 index 00000000..910c0021 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateBaseInfo.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityEstimateBaseInfo")] + [Serializable] + public class SkyCityEstimateBaseInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] + public uint job + { + get + { + return this._job ?? 0u; + } + set + { + this._job = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jobSpecified + { + get + { + return this._job != null; + } + set + { + bool flag = value == (this._job == null); + if (flag) + { + this._job = (value ? new uint?(this.job) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "killer", DataFormat = DataFormat.TwosComplement)] + public uint killer + { + get + { + return this._killer ?? 0u; + } + set + { + this._killer = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killerSpecified + { + get + { + return this._killer != null; + } + set + { + bool flag = value == (this._killer == null); + if (flag) + { + this._killer = (value ? new uint?(this.killer) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "damage", DataFormat = DataFormat.TwosComplement)] + public ulong damage + { + get + { + return this._damage ?? 0UL; + } + set + { + this._damage = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool damageSpecified + { + get + { + return this._damage != null; + } + set + { + bool flag = value == (this._damage == null); + if (flag) + { + this._damage = (value ? new ulong?(this.damage) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "lv", DataFormat = DataFormat.TwosComplement)] + public uint lv + { + get + { + return this._lv ?? 0u; + } + set + { + this._lv = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lvSpecified + { + get + { + return this._lv != null; + } + set + { + bool flag = value == (this._lv == null); + if (flag) + { + this._lv = (value ? new uint?(this.lv) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + private uint? _teamid; + + private uint? _job; + + private string _name; + + private uint? _killer; + + private ulong? _damage; + + private uint? _lv; + + private ulong? _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializejob() + { + return this.jobSpecified; + } + + private void Resetjob() + { + this.jobSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializekiller() + { + return this.killerSpecified; + } + + private void Resetkiller() + { + this.killerSpecified = false; + } + + private bool ShouldSerializedamage() + { + return this.damageSpecified; + } + + private void Resetdamage() + { + this.damageSpecified = false; + } + + private bool ShouldSerializelv() + { + return this.lvSpecified; + } + + private void Resetlv() + { + this.lvSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateBaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateBaseInfo.cs.meta new file mode 100644 index 00000000..d18d43ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateBaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c399081c26473a74e910181dae93fe58 +timeCreated: 1611404498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateInfo.cs new file mode 100644 index 00000000..0cf5a975 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateInfo.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityEstimateInfo")] + [Serializable] + public class SkyCityEstimateInfo : IExtensible + { + [ProtoMember(1, Name = "info", DataFormat = DataFormat.Default)] + public List info + { + get + { + return this._info; + } + } + + [ProtoMember(2, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public uint floor + { + get + { + return this._floor ?? 0u; + } + set + { + this._floor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new uint?(this.floor) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "winteamid", DataFormat = DataFormat.TwosComplement)] + public uint winteamid + { + get + { + return this._winteamid ?? 0u; + } + set + { + this._winteamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winteamidSpecified + { + get + { + return this._winteamid != null; + } + set + { + bool flag = value == (this._winteamid == null); + if (flag) + { + this._winteamid = (value ? new uint?(this.winteamid) : null); + } + } + } + + [ProtoMember(4, Name = "teamscore", DataFormat = DataFormat.Default)] + public List teamscore + { + get + { + return this._teamscore; + } + } + + private readonly List _info = new List(); + + private uint? _floor; + + private uint? _winteamid; + + private readonly List _teamscore = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + private bool ShouldSerializewinteamid() + { + return this.winteamidSpecified; + } + + private void Resetwinteamid() + { + this.winteamidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateInfo.cs.meta new file mode 100644 index 00000000..d7da6aae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityEstimateInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91e81808bd13e8348b060a787485f700 +timeCreated: 1611404144 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs new file mode 100644 index 00000000..8d21ae04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityFinalBaseInfo")] + [Serializable] + public class SkyCityFinalBaseInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uuid", DataFormat = DataFormat.TwosComplement)] + public ulong uuid + { + get + { + return this._uuid ?? 0UL; + } + set + { + this._uuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uuidSpecified + { + get + { + return this._uuid != null; + } + set + { + bool flag = value == (this._uuid == null); + if (flag) + { + this._uuid = (value ? new ulong?(this.uuid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] + public uint job + { + get + { + return this._job ?? 0u; + } + set + { + this._job = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jobSpecified + { + get + { + return this._job != null; + } + set + { + bool flag = value == (this._job == null); + if (flag) + { + this._job = (value ? new uint?(this.job) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "killer", DataFormat = DataFormat.TwosComplement)] + public uint killer + { + get + { + return this._killer ?? 0u; + } + set + { + this._killer = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killerSpecified + { + get + { + return this._killer != null; + } + set + { + bool flag = value == (this._killer == null); + if (flag) + { + this._killer = (value ? new uint?(this.killer) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "dead", DataFormat = DataFormat.TwosComplement)] + public uint dead + { + get + { + return this._dead ?? 0u; + } + set + { + this._dead = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deadSpecified + { + get + { + return this._dead != null; + } + set + { + bool flag = value == (this._dead == null); + if (flag) + { + this._dead = (value ? new uint?(this.dead) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "intimategree", DataFormat = DataFormat.TwosComplement)] + public uint intimategree + { + get + { + return this._intimategree ?? 0u; + } + set + { + this._intimategree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool intimategreeSpecified + { + get + { + return this._intimategree != null; + } + set + { + bool flag = value == (this._intimategree == null); + if (flag) + { + this._intimategree = (value ? new uint?(this.intimategree) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "ismvp", DataFormat = DataFormat.Default)] + public bool ismvp + { + get + { + return this._ismvp ?? false; + } + set + { + this._ismvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismvpSpecified + { + get + { + return this._ismvp != null; + } + set + { + bool flag = value == (this._ismvp == null); + if (flag) + { + this._ismvp = (value ? new bool?(this.ismvp) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "isfriend", DataFormat = DataFormat.Default)] + public bool isfriend + { + get + { + return this._isfriend ?? false; + } + set + { + this._isfriend = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isfriendSpecified + { + get + { + return this._isfriend != null; + } + set + { + bool flag = value == (this._isfriend == null); + if (flag) + { + this._isfriend = (value ? new bool?(this.isfriend) : null); + } + } + } + + private ulong? _uuid; + + private uint? _job; + + private uint? _killer; + + private uint? _dead; + + private uint? _intimategree; + + private bool? _ismvp; + + private bool? _isfriend; + + private IExtension extensionObject; + + private bool ShouldSerializeuuid() + { + return this.uuidSpecified; + } + + private void Resetuuid() + { + this.uuidSpecified = false; + } + + private bool ShouldSerializejob() + { + return this.jobSpecified; + } + + private void Resetjob() + { + this.jobSpecified = false; + } + + private bool ShouldSerializekiller() + { + return this.killerSpecified; + } + + private void Resetkiller() + { + this.killerSpecified = false; + } + + private bool ShouldSerializedead() + { + return this.deadSpecified; + } + + private void Resetdead() + { + this.deadSpecified = false; + } + + private bool ShouldSerializeintimategree() + { + return this.intimategreeSpecified; + } + + private void Resetintimategree() + { + this.intimategreeSpecified = false; + } + + private bool ShouldSerializeismvp() + { + return this.ismvpSpecified; + } + + private void Resetismvp() + { + this.ismvpSpecified = false; + } + + private bool ShouldSerializeisfriend() + { + return this.isfriendSpecified; + } + + private void Resetisfriend() + { + this.isfriendSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs.meta new file mode 100644 index 00000000..91f8c9c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalBaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e785ebfd1f1afe45940645b726b8f92 +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs new file mode 100644 index 00000000..d3b613af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityFinalInfo")] + [Serializable] + public class SkyCityFinalInfo : IExtensible + { + [ProtoMember(1, Name = "info", DataFormat = DataFormat.Default)] + public List info + { + get + { + return this._info; + } + } + + [ProtoMember(2, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public uint floor + { + get + { + return this._floor ?? 0u; + } + set + { + this._floor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new uint?(this.floor) : null); + } + } + } + + [ProtoMember(3, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + [ProtoMember(4, IsRequired = false, Name = "ismvp", DataFormat = DataFormat.Default)] + public bool ismvp + { + get + { + return this._ismvp ?? false; + } + set + { + this._ismvp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ismvpSpecified + { + get + { + return this._ismvp != null; + } + set + { + bool flag = value == (this._ismvp == null); + if (flag) + { + this._ismvp = (value ? new bool?(this.ismvp) : null); + } + } + } + + private readonly List _info = new List(); + + private uint? _floor; + + private readonly List _item = new List(); + + private bool? _ismvp; + + private IExtension extensionObject; + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + private bool ShouldSerializeismvp() + { + return this.ismvpSpecified; + } + + private void Resetismvp() + { + this.ismvpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs.meta new file mode 100644 index 00000000..839c26c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityFinalInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f8dbab0e0dd2794a9083a60493f5142 +timeCreated: 1611404245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityGroupData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityGroupData.cs new file mode 100644 index 00000000..e934444e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityGroupData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityGroupData")] + [Serializable] + public class SkyCityGroupData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public uint killcount + { + get + { + return this._killcount ?? 0u; + } + set + { + this._killcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new uint?(this.killcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "totaldamage", DataFormat = DataFormat.TwosComplement)] + public double totaldamage + { + get + { + return this._totaldamage ?? 0.0; + } + set + { + this._totaldamage = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool totaldamageSpecified + { + get + { + return this._totaldamage != null; + } + set + { + bool flag = value == (this._totaldamage == null); + if (flag) + { + this._totaldamage = (value ? new double?(this.totaldamage) : null); + } + } + } + + private uint? _teamid; + + private uint? _killcount; + + private double? _totaldamage; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializetotaldamage() + { + return this.totaldamageSpecified; + } + + private void Resettotaldamage() + { + this.totaldamageSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityGroupData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityGroupData.cs.meta new file mode 100644 index 00000000..fca87f33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityGroupData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aaebf1a2154de9d4e83baeb1c504a5b4 +timeCreated: 1611404306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRankData.cs new file mode 100644 index 00000000..175d2325 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRankData.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityRankData")] + [Serializable] + public class SkyCityRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "floor", DataFormat = DataFormat.TwosComplement)] + public uint floor + { + get + { + return this._floor ?? 0u; + } + set + { + this._floor = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool floorSpecified + { + get + { + return this._floor != null; + } + set + { + bool flag = value == (this._floor == null); + if (flag) + { + this._floor = (value ? new uint?(this.floor) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "killer", DataFormat = DataFormat.TwosComplement)] + public uint killer + { + get + { + return this._killer ?? 0u; + } + set + { + this._killer = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killerSpecified + { + get + { + return this._killer != null; + } + set + { + bool flag = value == (this._killer == null); + if (flag) + { + this._killer = (value ? new uint?(this.killer) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] + public uint job + { + get + { + return this._job ?? 0u; + } + set + { + this._job = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jobSpecified + { + get + { + return this._job != null; + } + set + { + bool flag = value == (this._job == null); + if (flag) + { + this._job = (value ? new uint?(this.job) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "fight", DataFormat = DataFormat.TwosComplement)] + public double fight + { + get + { + return this._fight ?? 0.0; + } + set + { + this._fight = new double?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightSpecified + { + get + { + return this._fight != null; + } + set + { + bool flag = value == (this._fight == null); + if (flag) + { + this._fight = (value ? new double?(this.fight) : null); + } + } + } + + private ulong? _roleid; + + private string _rolename; + + private uint? _floor; + + private uint? _killer; + + private uint? _job; + + private double? _fight; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializefloor() + { + return this.floorSpecified; + } + + private void Resetfloor() + { + this.floorSpecified = false; + } + + private bool ShouldSerializekiller() + { + return this.killerSpecified; + } + + private void Resetkiller() + { + this.killerSpecified = false; + } + + private bool ShouldSerializejob() + { + return this.jobSpecified; + } + + private void Resetjob() + { + this.jobSpecified = false; + } + + private bool ShouldSerializefight() + { + return this.fightSpecified; + } + + private void Resetfight() + { + this.fightSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRankData.cs.meta new file mode 100644 index 00000000..c708da97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dea5b5627fcf8244683f9645c3175f6b +timeCreated: 1611404687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs new file mode 100644 index 00000000..997e5372 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityRes")] + [Serializable] + public class SkyCityRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "baseinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkyCityAllTeamBaseInfo baseinfo + { + get + { + return this._baseinfo; + } + set + { + this._baseinfo = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "allinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkyCityAllInfo allinfo + { + get + { + return this._allinfo; + } + set + { + this._allinfo = value; + } + } + + private SkyCityAllTeamBaseInfo _baseinfo = null; + + private SkyCityAllInfo _allinfo = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs.meta new file mode 100644 index 00000000..8b89d06d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ac58027573d88643a2d85cdc57c8784 +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamBaseInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamBaseInfo.cs new file mode 100644 index 00000000..cd6f21cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamBaseInfo.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityTeamBaseInfo")] + [Serializable] + public class SkyCityTeamBaseInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public int teamid + { + get + { + return this._teamid ?? 0; + } + set + { + this._teamid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new int?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lv", DataFormat = DataFormat.TwosComplement)] + public uint lv + { + get + { + return this._lv ?? 0u; + } + set + { + this._lv = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lvSpecified + { + get + { + return this._lv != null; + } + set + { + bool flag = value == (this._lv == null); + if (flag) + { + this._lv = (value ? new uint?(this.lv) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "job", DataFormat = DataFormat.TwosComplement)] + public uint job + { + get + { + return this._job ?? 0u; + } + set + { + this._job = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool jobSpecified + { + get + { + return this._job != null; + } + set + { + bool flag = value == (this._job == null); + if (flag) + { + this._job = (value ? new uint?(this.job) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "online", DataFormat = DataFormat.Default)] + public bool online + { + get + { + return this._online ?? false; + } + set + { + this._online = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onlineSpecified + { + get + { + return this._online != null; + } + set + { + bool flag = value == (this._online == null); + if (flag) + { + this._online = (value ? new bool?(this.online) : null); + } + } + } + + private int? _teamid; + + private ulong? _uid; + + private string _name; + + private uint? _lv; + + private uint? _ppt; + + private uint? _job; + + private bool? _online; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelv() + { + return this.lvSpecified; + } + + private void Resetlv() + { + this.lvSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializejob() + { + return this.jobSpecified; + } + + private void Resetjob() + { + this.jobSpecified = false; + } + + private bool ShouldSerializeonline() + { + return this.onlineSpecified; + } + + private void Resetonline() + { + this.onlineSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamBaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamBaseInfo.cs.meta new file mode 100644 index 00000000..cf585eb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamBaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 518a2076e3f5e1d419f187bfe547fd27 +timeCreated: 1611403706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamScore.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamScore.cs new file mode 100644 index 00000000..84a190fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamScore.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityTeamScore")] + [Serializable] + public class SkyCityTeamScore : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private uint? _teamid; + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamScore.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamScore.cs.meta new file mode 100644 index 00000000..89592686 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTeamScore.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4486b380b4dd3684a96af3f6473a94cc +timeCreated: 1611403645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs new file mode 100644 index 00000000..f70133d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityTimeInfo")] + [Serializable] + public class SkyCityTimeInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public SkyCityTimeType type + { + get + { + return this._type ?? SkyCityTimeType.Waiting; + } + set + { + this._type = new SkyCityTimeType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new SkyCityTimeType?(this.type) : null); + } + } + } + + private uint? _time; + + private SkyCityTimeType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs.meta new file mode 100644 index 00000000..ce8240f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e932b2b025900440b2c727380d77c9f +timeCreated: 1611404241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeType.cs new file mode 100644 index 00000000..a33631ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCityTimeType")] + public enum SkyCityTimeType + { + [ProtoEnum(Name = "Waiting", Value = 1)] + Waiting = 1, + [ProtoEnum(Name = "Race", Value = 2)] + Race, + [ProtoEnum(Name = "MidleEndInRest", Value = 3)] + MidleEndInRest, + [ProtoEnum(Name = "FirstWaiting", Value = 4)] + FirstWaiting, + [ProtoEnum(Name = "SecondWaiting", Value = 5)] + SecondWaiting, + [ProtoEnum(Name = "SC_NONE", Value = 6)] + SC_NONE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeType.cs.meta new file mode 100644 index 00000000..1929469d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCityTimeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8625025c3607eeb42ac8f0b1c37b4746 +timeCreated: 1611404053 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftBattleRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftBattleRecord.cs new file mode 100644 index 00000000..b6a0eb9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftBattleRecord.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftBattleRecord")] + [Serializable] + public class SkyCraftBattleRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "other_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong other_teamid + { + get + { + return this._other_teamid ?? 0UL; + } + set + { + this._other_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool other_teamidSpecified + { + get + { + return this._other_teamid != null; + } + set + { + bool flag = value == (this._other_teamid == null); + if (flag) + { + this._other_teamid = (value ? new ulong?(this.other_teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "other_name", DataFormat = DataFormat.Default)] + public string other_name + { + get + { + return this._other_name ?? ""; + } + set + { + this._other_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool other_nameSpecified + { + get + { + return this._other_name != null; + } + set + { + bool flag = value == (this._other_name == null); + if (flag) + { + this._other_name = (value ? this.other_name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "score_change", DataFormat = DataFormat.TwosComplement)] + public int score_change + { + get + { + return this._score_change ?? 0; + } + set + { + this._score_change = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool score_changeSpecified + { + get + { + return this._score_change != null; + } + set + { + bool flag = value == (this._score_change == null); + if (flag) + { + this._score_change = (value ? new int?(this.score_change) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public PkResultType result + { + get + { + return this._result ?? PkResultType.PkResult_Win; + } + set + { + this._result = new PkResultType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new PkResultType?(this.result) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public SkyCraftType type + { + get + { + return this._type ?? SkyCraftType.SCT_RacePoint; + } + set + { + this._type = new SkyCraftType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new SkyCraftType?(this.type) : null); + } + } + } + + private ulong? _other_teamid; + + private string _other_name; + + private int? _score_change; + + private PkResultType? _result; + + private uint? _time; + + private SkyCraftType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeother_teamid() + { + return this.other_teamidSpecified; + } + + private void Resetother_teamid() + { + this.other_teamidSpecified = false; + } + + private bool ShouldSerializeother_name() + { + return this.other_nameSpecified; + } + + private void Resetother_name() + { + this.other_nameSpecified = false; + } + + private bool ShouldSerializescore_change() + { + return this.score_changeSpecified; + } + + private void Resetscore_change() + { + this.score_changeSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftBattleRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftBattleRecord.cs.meta new file mode 100644 index 00000000..7524b849 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftBattleRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c14ad991dabb414c97f5a3df95b4999 +timeCreated: 1611403894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs new file mode 100644 index 00000000..470a3e4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftEliRoomNtf")] + [Serializable] + public class SkyCraftEliRoomNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "room", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SCEliRoomInfo room + { + get + { + return this._room; + } + set + { + this._room = value; + } + } + + private SCEliRoomInfo _room = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs.meta new file mode 100644 index 00000000..f564bf34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftEliRoomNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39f1add0b255c6148a328578bde78aa2 +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs new file mode 100644 index 00000000..36f06073 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftMatchNtf")] + [Serializable] + public class SkyCraftMatchNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public SkyCraftMatchNtfType type + { + get + { + return this._type ?? SkyCraftMatchNtfType.SCMN_Start; + } + set + { + this._type = new SkyCraftMatchNtfType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new SkyCraftMatchNtfType?(this.type) : null); + } + } + } + + private SkyCraftMatchNtfType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs.meta new file mode 100644 index 00000000..42fcbea6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59f05ec25efdd034dada9139c7743f9c +timeCreated: 1611403789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtfType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtfType.cs new file mode 100644 index 00000000..96b08415 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtfType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftMatchNtfType")] + public enum SkyCraftMatchNtfType + { + [ProtoEnum(Name = "SCMN_Start", Value = 1)] + SCMN_Start = 1, + [ProtoEnum(Name = "SCMN_Stop", Value = 2)] + SCMN_Stop, + [ProtoEnum(Name = "SCMN_Timeout", Value = 3)] + SCMN_Timeout + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtfType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtfType.cs.meta new file mode 100644 index 00000000..2e4bff5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchNtfType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0406e0e2445d26b4b829c315d2be50c9 +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs new file mode 100644 index 00000000..10d24e16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftMatchReq")] + [Serializable] + public class SkyCraftMatchReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public SkyCraftMatchReqTpe type + { + get + { + return this._type ?? SkyCraftMatchReqTpe.SCMR_Match; + } + set + { + this._type = new SkyCraftMatchReqTpe?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new SkyCraftMatchReqTpe?(this.type) : null); + } + } + } + + private SkyCraftMatchReqTpe? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs.meta new file mode 100644 index 00000000..0cdce2b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 722353149e1448544906c9e85c7ffc67 +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReqTpe.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReqTpe.cs new file mode 100644 index 00000000..2ba05d89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReqTpe.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftMatchReqTpe")] + public enum SkyCraftMatchReqTpe + { + [ProtoEnum(Name = "SCMR_Match", Value = 1)] + SCMR_Match = 1, + [ProtoEnum(Name = "SCMR_CancelMatch", Value = 2)] + SCMR_CancelMatch + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReqTpe.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReqTpe.cs.meta new file mode 100644 index 00000000..554b50dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchReqTpe.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 465a67ab166717149882ea0775e9439b +timeCreated: 1611403649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs new file mode 100644 index 00000000..a153cb94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftMatchRes")] + [Serializable] + public class SkyCraftMatchRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs.meta new file mode 100644 index 00000000..f31a646f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftMatchRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 022149c5556bbf8489de1201344f3b0f +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftRankData.cs new file mode 100644 index 00000000..f9192b50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftRankData.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftRankData")] + [Serializable] + public class SkyCraftRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "stid", DataFormat = DataFormat.TwosComplement)] + public ulong stid + { + get + { + return this._stid ?? 0UL; + } + set + { + this._stid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stidSpecified + { + get + { + return this._stid != null; + } + set + { + bool flag = value == (this._stid == null); + if (flag) + { + this._stid = (value ? new ulong?(this.stid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "teamname", DataFormat = DataFormat.Default)] + public string teamname + { + get + { + return this._teamname ?? ""; + } + set + { + this._teamname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamnameSpecified + { + get + { + return this._teamname != null; + } + set + { + bool flag = value == (this._teamname == null); + if (flag) + { + this._teamname = (value ? this.teamname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "winnum", DataFormat = DataFormat.TwosComplement)] + public uint winnum + { + get + { + return this._winnum ?? 0u; + } + set + { + this._winnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winnumSpecified + { + get + { + return this._winnum != null; + } + set + { + bool flag = value == (this._winnum == null); + if (flag) + { + this._winnum = (value ? new uint?(this.winnum) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "winrate", DataFormat = DataFormat.FixedSize)] + public float winrate + { + get + { + return this._winrate ?? 0f; + } + set + { + this._winrate = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool winrateSpecified + { + get + { + return this._winrate != null; + } + set + { + bool flag = value == (this._winrate == null); + if (flag) + { + this._winrate = (value ? new float?(this.winrate) : null); + } + } + } + + private ulong? _stid; + + private string _teamname; + + private uint? _point; + + private uint? _winnum; + + private float? _winrate; + + private IExtension extensionObject; + + private bool ShouldSerializestid() + { + return this.stidSpecified; + } + + private void Resetstid() + { + this.stidSpecified = false; + } + + private bool ShouldSerializeteamname() + { + return this.teamnameSpecified; + } + + private void Resetteamname() + { + this.teamnameSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializewinnum() + { + return this.winnumSpecified; + } + + private void Resetwinnum() + { + this.winnumSpecified = false; + } + + private bool ShouldSerializewinrate() + { + return this.winrateSpecified; + } + + private void Resetwinrate() + { + this.winrateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftRankData.cs.meta new file mode 100644 index 00000000..c0e7c0a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 036cb22919843d744846e2ef098111d2 +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftType.cs new file mode 100644 index 00000000..2b030696 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyCraftType")] + public enum SkyCraftType + { + [ProtoEnum(Name = "SCT_RacePoint", Value = 1)] + SCT_RacePoint = 1, + [ProtoEnum(Name = "SCT_Eliminate", Value = 2)] + SCT_Eliminate + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftType.cs.meta new file mode 100644 index 00000000..8e7d04ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyCraftType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b59cea834aae264db866b2a235bdd76 +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamDetail.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamDetail.cs new file mode 100644 index 00000000..adbd61c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamDetail.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyTeamDetail")] + [Serializable] + public class SkyTeamDetail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "stid", DataFormat = DataFormat.TwosComplement)] + public ulong stid + { + get + { + return this._stid ?? 0UL; + } + set + { + this._stid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stidSpecified + { + get + { + return this._stid != null; + } + set + { + bool flag = value == (this._stid == null); + if (flag) + { + this._stid = (value ? new ulong?(this.stid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + [ProtoMember(4, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + private ulong? _stid; + + private string _name; + + private readonly List _members = new List(); + + private uint? _score; + + private IExtension extensionObject; + + private bool ShouldSerializestid() + { + return this.stidSpecified; + } + + private void Resetstid() + { + this.stidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamDetail.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamDetail.cs.meta new file mode 100644 index 00000000..6b8ab892 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamDetail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24ccf1db36ae6274494679e2144c83db +timeCreated: 1611403461 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs new file mode 100644 index 00000000..83bc21c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyTeamMemberInfo")] + [Serializable] + public class SkyTeamMemberInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "brief", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleOutLookBrief brief + { + get + { + return this._brief; + } + set + { + this._brief = value; + } + } + + private RoleOutLookBrief _brief = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs.meta new file mode 100644 index 00000000..b5b942d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamMemberInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebdee6b47c8ddc84899b8200737a95c4 +timeCreated: 1611404785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamState.cs b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamState.cs new file mode 100644 index 00000000..59c71e73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamState.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SkyTeamState")] + public enum SkyTeamState + { + [ProtoEnum(Name = "SkyTeamState_Idle", Value = 1)] + SkyTeamState_Idle = 1, + [ProtoEnum(Name = "SkyTeamState_Match", Value = 2)] + SkyTeamState_Match, + [ProtoEnum(Name = "SkyTeamState_Battle", Value = 3)] + SkyTeamState_Battle + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamState.cs.meta new file mode 100644 index 00000000..de2ee181 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SkyTeamState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 114484fcf6a9b34469a2178fb7c7cd55 +timeCreated: 1611403221 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemArg.cs new file mode 100644 index 00000000..b25feba1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SmeltItemArg")] + [Serializable] + public class SmeltItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "slot", DataFormat = DataFormat.TwosComplement)] + public uint slot + { + get + { + return this._slot ?? 0u; + } + set + { + this._slot = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool slotSpecified + { + get + { + return this._slot != null; + } + set + { + bool flag = value == (this._slot == null); + if (flag) + { + this._slot = (value ? new uint?(this.slot) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isForge", DataFormat = DataFormat.Default)] + public bool isForge + { + get + { + return this._isForge ?? false; + } + set + { + this._isForge = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isForgeSpecified + { + get + { + return this._isForge != null; + } + set + { + bool flag = value == (this._isForge == null); + if (flag) + { + this._isForge = (value ? new bool?(this.isForge) : null); + } + } + } + + private ulong? _uid; + + private uint? _slot; + + private bool? _isForge; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeslot() + { + return this.slotSpecified; + } + + private void Resetslot() + { + this.slotSpecified = false; + } + + private bool ShouldSerializeisForge() + { + return this.isForgeSpecified; + } + + private void ResetisForge() + { + this.isForgeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemArg.cs.meta new file mode 100644 index 00000000..97646f12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e3f3099a2f27178448bcf4c6f348953e +timeCreated: 1611404735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemRes.cs new file mode 100644 index 00000000..8d0eabf2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SmeltItemRes")] + [Serializable] + public class SmeltItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public uint result + { + get + { + return this._result ?? 0u; + } + set + { + this._result = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new uint?(this.result) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemRes.cs.meta new file mode 100644 index 00000000..fb199caf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SmeltItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 336eefaf487b4b2448e8e65fc307f1e4 +timeCreated: 1611403552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs new file mode 100644 index 00000000..5bccc0c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs @@ -0,0 +1,149 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpActivity")] + [Serializable] + public class SpActivity : IExtensible + { + [ProtoMember(1, Name = "spActivity", DataFormat = DataFormat.Default)] + public List spActivity + { + get + { + return this._spActivity; + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastBackFlowStartTime", DataFormat = DataFormat.TwosComplement)] + public uint lastBackFlowStartTime + { + get + { + return this._lastBackFlowStartTime ?? 0u; + } + set + { + this._lastBackFlowStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastBackFlowStartTimeSpecified + { + get + { + return this._lastBackFlowStartTime != null; + } + set + { + bool flag = value == (this._lastBackFlowStartTime == null); + if (flag) + { + this._lastBackFlowStartTime = (value ? new uint?(this.lastBackFlowStartTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "argentaPreData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ArgentaPreData argentaPreData + { + get + { + return this._argentaPreData; + } + set + { + this._argentaPreData = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastArgentaStartTime", DataFormat = DataFormat.TwosComplement)] + public uint lastArgentaStartTime + { + get + { + return this._lastArgentaStartTime ?? 0u; + } + set + { + this._lastArgentaStartTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastArgentaStartTimeSpecified + { + get + { + return this._lastArgentaStartTime != null; + } + set + { + bool flag = value == (this._lastArgentaStartTime == null); + if (flag) + { + this._lastArgentaStartTime = (value ? new uint?(this.lastArgentaStartTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "backflowPreData", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BackFlowPreData backflowPreData + { + get + { + return this._backflowPreData; + } + set + { + this._backflowPreData = value; + } + } + + private readonly List _spActivity = new List(); + + private uint? _lastBackFlowStartTime; + + private ArgentaPreData _argentaPreData = null; + + private uint? _lastArgentaStartTime; + + private BackFlowPreData _backflowPreData = null; + + private IExtension extensionObject; + + private bool ShouldSerializelastBackFlowStartTime() + { + return this.lastBackFlowStartTimeSpecified; + } + + private void ResetlastBackFlowStartTime() + { + this.lastBackFlowStartTimeSpecified = false; + } + + private bool ShouldSerializelastArgentaStartTime() + { + return this.lastArgentaStartTimeSpecified; + } + + private void ResetlastArgentaStartTime() + { + this.lastArgentaStartTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs.meta new file mode 100644 index 00000000..0465f564 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca5531046ac4012499d92c2fed1e1ddb +timeCreated: 1611404541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityChange.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityChange.cs new file mode 100644 index 00000000..6acb5797 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityChange.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpActivityChange")] + [Serializable] + public class SpActivityChange : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "taskid", DataFormat = DataFormat.TwosComplement)] + public uint taskid + { + get + { + return this._taskid ?? 0u; + } + set + { + this._taskid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskidSpecified + { + get + { + return this._taskid != null; + } + set + { + bool flag = value == (this._taskid == null); + if (flag) + { + this._taskid = (value ? new uint?(this.taskid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "progress", DataFormat = DataFormat.TwosComplement)] + public uint progress + { + get + { + return this._progress ?? 0u; + } + set + { + this._progress = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool progressSpecified + { + get + { + return this._progress != null; + } + set + { + bool flag = value == (this._progress == null); + if (flag) + { + this._progress = (value ? new uint?(this.progress) : null); + } + } + } + + private uint? _actid; + + private uint? _taskid; + + private uint? _state; + + private uint? _progress; + + private IExtension extensionObject; + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + private bool ShouldSerializetaskid() + { + return this.taskidSpecified; + } + + private void Resettaskid() + { + this.taskidSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeprogress() + { + return this.progressSpecified; + } + + private void Resetprogress() + { + this.progressSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityChange.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityChange.cs.meta new file mode 100644 index 00000000..5f81142c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f08629cc9c3f59448a321802dff1825f +timeCreated: 1611404832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOffsetDay.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOffsetDay.cs new file mode 100644 index 00000000..02aa1618 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOffsetDay.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpActivityOffsetDay")] + [Serializable] + public class SpActivityOffsetDay : IExtensible + { + [ProtoMember(1, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public List actid + { + get + { + return this._actid; + } + } + + [ProtoMember(2, Name = "offsetday", DataFormat = DataFormat.TwosComplement)] + public List offsetday + { + get + { + return this._offsetday; + } + } + + [ProtoMember(3, Name = "offsettime", DataFormat = DataFormat.TwosComplement)] + public List offsettime + { + get + { + return this._offsettime; + } + } + + private readonly List _actid = new List(); + + private readonly List _offsetday = new List(); + + private readonly List _offsettime = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOffsetDay.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOffsetDay.cs.meta new file mode 100644 index 00000000..7c0ffe2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOffsetDay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cad47c0bc3c8043488e56e5380c3fc7a +timeCreated: 1611404543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs new file mode 100644 index 00000000..c6ecc46b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs @@ -0,0 +1,315 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpActivityOne")] + [Serializable] + public class SpActivityOne : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + [ProtoMember(2, Name = "task", DataFormat = DataFormat.Default)] + public List task + { + get + { + return this._task; + } + } + + [ProtoMember(3, IsRequired = false, Name = "getBigPrize", DataFormat = DataFormat.Default)] + public bool getBigPrize + { + get + { + return this._getBigPrize ?? false; + } + set + { + this._getBigPrize = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool getBigPrizeSpecified + { + get + { + return this._getBigPrize != null; + } + set + { + bool flag = value == (this._getBigPrize == null); + if (flag) + { + this._getBigPrize = (value ? new bool?(this.getBigPrize) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "startTime", DataFormat = DataFormat.TwosComplement)] + public uint startTime + { + get + { + return this._startTime ?? 0u; + } + set + { + this._startTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startTimeSpecified + { + get + { + return this._startTime != null; + } + set + { + bool flag = value == (this._startTime == null); + if (flag) + { + this._startTime = (value ? new uint?(this.startTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "actStage", DataFormat = DataFormat.TwosComplement)] + public uint actStage + { + get + { + return this._actStage ?? 0u; + } + set + { + this._actStage = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actStageSpecified + { + get + { + return this._actStage != null; + } + set + { + bool flag = value == (this._actStage == null); + if (flag) + { + this._actStage = (value ? new uint?(this.actStage) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "argenta", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ArgentaData argenta + { + get + { + return this._argenta; + } + set + { + this._argenta = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "ancient", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AncientTimes ancient + { + get + { + return this._ancient; + } + set + { + this._ancient = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "theme", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ThemeActivityData theme + { + get + { + return this._theme; + } + set + { + this._theme = value; + } + } + + [ProtoMember(9, IsRequired = false, Name = "backflow", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BackFlowData backflow + { + get + { + return this._backflow; + } + set + { + this._backflow = value; + } + } + + [ProtoMember(10, IsRequired = false, Name = "campduel", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CampDuelData campduel + { + get + { + return this._campduel; + } + set + { + this._campduel = value; + } + } + + [ProtoMember(11, IsRequired = false, Name = "festival520", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Festival520Data festival520 + { + get + { + return this._festival520; + } + set + { + this._festival520 = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "shadowcat", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ShadowCatData shadowcat + { + get + { + return this._shadowcat; + } + set + { + this._shadowcat = value; + } + } + + private uint? _actid; + + private readonly List _task = new List(); + + private bool? _getBigPrize; + + private uint? _startTime; + + private uint? _actStage; + + private ArgentaData _argenta = null; + + private AncientTimes _ancient = null; + + private ThemeActivityData _theme = null; + + private BackFlowData _backflow = null; + + private CampDuelData _campduel = null; + + private Festival520Data _festival520 = null; + + private ShadowCatData _shadowcat = null; + + private IExtension extensionObject; + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + private bool ShouldSerializegetBigPrize() + { + return this.getBigPrizeSpecified; + } + + private void ResetgetBigPrize() + { + this.getBigPrizeSpecified = false; + } + + private bool ShouldSerializestartTime() + { + return this.startTimeSpecified; + } + + private void ResetstartTime() + { + this.startTimeSpecified = false; + } + + private bool ShouldSerializeactStage() + { + return this.actStageSpecified; + } + + private void ResetactStage() + { + this.actStageSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs.meta new file mode 100644 index 00000000..4498f44d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityOne.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ebf0b774a483ac468cc06214bc7571d +timeCreated: 1611404005 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityTask.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityTask.cs new file mode 100644 index 00000000..7f1e2758 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityTask.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpActivityTask")] + [Serializable] + public class SpActivityTask : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "taskid", DataFormat = DataFormat.TwosComplement)] + public uint taskid + { + get + { + return this._taskid ?? 0u; + } + set + { + this._taskid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskidSpecified + { + get + { + return this._taskid != null; + } + set + { + bool flag = value == (this._taskid == null); + if (flag) + { + this._taskid = (value ? new uint?(this.taskid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "progress", DataFormat = DataFormat.TwosComplement)] + public uint progress + { + get + { + return this._progress ?? 0u; + } + set + { + this._progress = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool progressSpecified + { + get + { + return this._progress != null; + } + set + { + bool flag = value == (this._progress == null); + if (flag) + { + this._progress = (value ? new uint?(this.progress) : null); + } + } + } + + private uint? _taskid; + + private uint? _state; + + private uint? _progress; + + private IExtension extensionObject; + + private bool ShouldSerializetaskid() + { + return this.taskidSpecified; + } + + private void Resettaskid() + { + this.taskidSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeprogress() + { + return this.progressSpecified; + } + + private void Resetprogress() + { + this.progressSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpActivityTask.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityTask.cs.meta new file mode 100644 index 00000000..7d632f7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpActivityTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c9a937de5d98324eac8a4319e376618 +timeCreated: 1611403802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpFirstCompleteScene.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpFirstCompleteScene.cs new file mode 100644 index 00000000..d3dcab94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpFirstCompleteScene.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpFirstCompleteScene")] + [Serializable] + public class SpFirstCompleteScene : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "scenetype", DataFormat = DataFormat.TwosComplement)] + public uint scenetype + { + get + { + return this._scenetype ?? 0u; + } + set + { + this._scenetype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scenetypeSpecified + { + get + { + return this._scenetype != null; + } + set + { + bool flag = value == (this._scenetype == null); + if (flag) + { + this._scenetype = (value ? new uint?(this.scenetype) : null); + } + } + } + + [ProtoMember(2, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public List sceneid + { + get + { + return this._sceneid; + } + } + + private uint? _scenetype; + + private readonly List _sceneid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializescenetype() + { + return this.scenetypeSpecified; + } + + private void Resetscenetype() + { + this.scenetypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpFirstCompleteScene.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpFirstCompleteScene.cs.meta new file mode 100644 index 00000000..a22216d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpFirstCompleteScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01c72a811091b474cb122b94b4f85733 +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpecialStageInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpecialStageInfo.cs new file mode 100644 index 00000000..6e9ee596 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpecialStageInfo.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpecialStageInfo")] + [Serializable] + public class SpecialStageInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "arenaup", DataFormat = DataFormat.TwosComplement)] + public uint arenaup + { + get + { + return this._arenaup ?? 0u; + } + set + { + this._arenaup = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool arenaupSpecified + { + get + { + return this._arenaup != null; + } + set + { + bool flag = value == (this._arenaup == null); + if (flag) + { + this._arenaup = (value ? new uint?(this.arenaup) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "bossrushresult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BossRushResult bossrushresult + { + get + { + return this._bossrushresult; + } + set + { + this._bossrushresult = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "arenamissed", DataFormat = DataFormat.Default)] + public bool arenamissed + { + get + { + return this._arenamissed ?? false; + } + set + { + this._arenamissed = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool arenamissedSpecified + { + get + { + return this._arenamissed != null; + } + set + { + bool flag = value == (this._arenamissed == null); + if (flag) + { + this._arenamissed = (value ? new bool?(this.arenamissed) : null); + } + } + } + + private uint? _arenaup; + + private BossRushResult _bossrushresult = null; + + private bool? _arenamissed; + + private IExtension extensionObject; + + private bool ShouldSerializearenaup() + { + return this.arenaupSpecified; + } + + private void Resetarenaup() + { + this.arenaupSpecified = false; + } + + private bool ShouldSerializearenamissed() + { + return this.arenamissedSpecified; + } + + private void Resetarenamissed() + { + this.arenamissedSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpecialStageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpecialStageInfo.cs.meta new file mode 100644 index 00000000..7bdb5a51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpecialStageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3635a9b1e33f314298f3101597aa828 +timeCreated: 1611404598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpecialStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpecialStateNtf.cs new file mode 100644 index 00000000..73bf12b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpecialStateNtf.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpecialStateNtf")] + [Serializable] + public class SpecialStateNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "effectmask", DataFormat = DataFormat.TwosComplement)] + public uint effectmask + { + get + { + return this._effectmask ?? 0u; + } + set + { + this._effectmask = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool effectmaskSpecified + { + get + { + return this._effectmask != null; + } + set + { + bool flag = value == (this._effectmask == null); + if (flag) + { + this._effectmask = (value ? new uint?(this.effectmask) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + private uint? _state; + + private uint? _effectmask; + + private ulong? _uid; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializeeffectmask() + { + return this.effectmaskSpecified; + } + + private void Reseteffectmask() + { + this.effectmaskSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpecialStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpecialStateNtf.cs.meta new file mode 100644 index 00000000..a1f8bd51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpecialStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e90513725136ba4f861c285ddff2d19 +timeCreated: 1611403510 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs new file mode 100644 index 00000000..06ed351c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpriteChanged")] + [Serializable] + public class SpriteChanged : IExtensible + { + [ProtoMember(1, Name = "NewSprites", DataFormat = DataFormat.Default)] + public List NewSprites + { + get + { + return this._NewSprites; + } + } + + [ProtoMember(2, Name = "ChangedSprites", DataFormat = DataFormat.Default)] + public List ChangedSprites + { + get + { + return this._ChangedSprites; + } + } + + [ProtoMember(3, Name = "RemovedSprites", DataFormat = DataFormat.TwosComplement)] + public List RemovedSprites + { + get + { + return this._RemovedSprites; + } + } + + private readonly List _NewSprites = new List(); + + private readonly List _ChangedSprites = new List(); + + private readonly List _RemovedSprites = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs.meta new file mode 100644 index 00000000..37a83686 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6dfabee5aea105149afc0075c57b1046 +timeCreated: 1611403903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs new file mode 100644 index 00000000..dfc04d90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs @@ -0,0 +1,452 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpriteInfo")] + [Serializable] + public class SpriteInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "SpriteID", DataFormat = DataFormat.TwosComplement)] + public uint SpriteID + { + get + { + return this._SpriteID ?? 0u; + } + set + { + this._SpriteID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SpriteIDSpecified + { + get + { + return this._SpriteID != null; + } + set + { + bool flag = value == (this._SpriteID == null); + if (flag) + { + this._SpriteID = (value ? new uint?(this.SpriteID) : null); + } + } + } + + [ProtoMember(3, Name = "AttrID", DataFormat = DataFormat.TwosComplement)] + public List AttrID + { + get + { + return this._AttrID; + } + } + + [ProtoMember(4, Name = "AttrValue", DataFormat = DataFormat.TwosComplement)] + public List AttrValue + { + get + { + return this._AttrValue; + } + } + + [ProtoMember(5, Name = "AddValue", DataFormat = DataFormat.TwosComplement)] + public List AddValue + { + get + { + return this._AddValue; + } + } + + [ProtoMember(6, IsRequired = false, Name = "SkillID", DataFormat = DataFormat.TwosComplement)] + public uint SkillID + { + get + { + return this._SkillID ?? 0u; + } + set + { + this._SkillID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillIDSpecified + { + get + { + return this._SkillID != null; + } + set + { + bool flag = value == (this._SkillID == null); + if (flag) + { + this._SkillID = (value ? new uint?(this.SkillID) : null); + } + } + } + + [ProtoMember(7, Name = "PassiveSkillID", DataFormat = DataFormat.TwosComplement)] + public List PassiveSkillID + { + get + { + return this._PassiveSkillID; + } + } + + [ProtoMember(8, IsRequired = false, Name = "Level", DataFormat = DataFormat.TwosComplement)] + public uint Level + { + get + { + return this._Level ?? 0u; + } + set + { + this._Level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool LevelSpecified + { + get + { + return this._Level != null; + } + set + { + bool flag = value == (this._Level == null); + if (flag) + { + this._Level = (value ? new uint?(this.Level) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "EvolutionLevel", DataFormat = DataFormat.TwosComplement)] + public uint EvolutionLevel + { + get + { + return this._EvolutionLevel ?? 0u; + } + set + { + this._EvolutionLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EvolutionLevelSpecified + { + get + { + return this._EvolutionLevel != null; + } + set + { + bool flag = value == (this._EvolutionLevel == null); + if (flag) + { + this._EvolutionLevel = (value ? new uint?(this.EvolutionLevel) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "Exp", DataFormat = DataFormat.TwosComplement)] + public uint Exp + { + get + { + return this._Exp ?? 0u; + } + set + { + this._Exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ExpSpecified + { + get + { + return this._Exp != null; + } + set + { + bool flag = value == (this._Exp == null); + if (flag) + { + this._Exp = (value ? new uint?(this.Exp) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "PowerPoint", DataFormat = DataFormat.TwosComplement)] + public uint PowerPoint + { + get + { + return this._PowerPoint ?? 0u; + } + set + { + this._PowerPoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PowerPointSpecified + { + get + { + return this._PowerPoint != null; + } + set + { + bool flag = value == (this._PowerPoint == null); + if (flag) + { + this._PowerPoint = (value ? new uint?(this.PowerPoint) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "TrainExp", DataFormat = DataFormat.TwosComplement)] + public uint TrainExp + { + get + { + return this._TrainExp ?? 0u; + } + set + { + this._TrainExp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TrainExpSpecified + { + get + { + return this._TrainExp != null; + } + set + { + bool flag = value == (this._TrainExp == null); + if (flag) + { + this._TrainExp = (value ? new uint?(this.TrainExp) : null); + } + } + } + + [ProtoMember(13, Name = "EvoAttrID", DataFormat = DataFormat.TwosComplement)] + public List EvoAttrID + { + get + { + return this._EvoAttrID; + } + } + + [ProtoMember(14, Name = "EvoAttrValue", DataFormat = DataFormat.TwosComplement)] + public List EvoAttrValue + { + get + { + return this._EvoAttrValue; + } + } + + [ProtoMember(15, Name = "ThisLevelEvoAttrID", DataFormat = DataFormat.TwosComplement)] + public List ThisLevelEvoAttrID + { + get + { + return this._ThisLevelEvoAttrID; + } + } + + [ProtoMember(16, Name = "ThisLevelEvoAttrValue", DataFormat = DataFormat.TwosComplement)] + public List ThisLevelEvoAttrValue + { + get + { + return this._ThisLevelEvoAttrValue; + } + } + + private ulong? _uid; + + private uint? _SpriteID; + + private readonly List _AttrID = new List(); + + private readonly List _AttrValue = new List(); + + private readonly List _AddValue = new List(); + + private uint? _SkillID; + + private readonly List _PassiveSkillID = new List(); + + private uint? _Level; + + private uint? _EvolutionLevel; + + private uint? _Exp; + + private uint? _PowerPoint; + + private uint? _TrainExp; + + private readonly List _EvoAttrID = new List(); + + private readonly List _EvoAttrValue = new List(); + + private readonly List _ThisLevelEvoAttrID = new List(); + + private readonly List _ThisLevelEvoAttrValue = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeSpriteID() + { + return this.SpriteIDSpecified; + } + + private void ResetSpriteID() + { + this.SpriteIDSpecified = false; + } + + private bool ShouldSerializeSkillID() + { + return this.SkillIDSpecified; + } + + private void ResetSkillID() + { + this.SkillIDSpecified = false; + } + + private bool ShouldSerializeLevel() + { + return this.LevelSpecified; + } + + private void ResetLevel() + { + this.LevelSpecified = false; + } + + private bool ShouldSerializeEvolutionLevel() + { + return this.EvolutionLevelSpecified; + } + + private void ResetEvolutionLevel() + { + this.EvolutionLevelSpecified = false; + } + + private bool ShouldSerializeExp() + { + return this.ExpSpecified; + } + + private void ResetExp() + { + this.ExpSpecified = false; + } + + private bool ShouldSerializePowerPoint() + { + return this.PowerPointSpecified; + } + + private void ResetPowerPoint() + { + this.PowerPointSpecified = false; + } + + private bool ShouldSerializeTrainExp() + { + return this.TrainExpSpecified; + } + + private void ResetTrainExp() + { + this.TrainExpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs.meta new file mode 100644 index 00000000..e0a046e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4d82369c2086bf40b98579ac8e53c5c +timeCreated: 1611404604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationArg.cs new file mode 100644 index 00000000..e5f8a2a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationArg.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpriteOperationArg")] + [Serializable] + public class SpriteOperationArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Type", DataFormat = DataFormat.TwosComplement)] + public SpriteType Type + { + get + { + return this._Type ?? SpriteType.Sprite_Feed; + } + set + { + this._Type = new SpriteType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool TypeSpecified + { + get + { + return this._Type != null; + } + set + { + bool flag = value == (this._Type == null); + if (flag) + { + this._Type = (value ? new SpriteType?(this.Type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "FeedItemID", DataFormat = DataFormat.TwosComplement)] + public uint FeedItemID + { + get + { + return this._FeedItemID ?? 0u; + } + set + { + this._FeedItemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FeedItemIDSpecified + { + get + { + return this._FeedItemID != null; + } + set + { + bool flag = value == (this._FeedItemID == null); + if (flag) + { + this._FeedItemID = (value ? new uint?(this.FeedItemID) : null); + } + } + } + + [ProtoMember(4, Name = "uids", DataFormat = DataFormat.TwosComplement)] + public List uids + { + get + { + return this._uids; + } + } + + [ProtoMember(5, Name = "notToChoose", DataFormat = DataFormat.TwosComplement)] + public List notToChoose + { + get + { + return this._notToChoose; + } + } + + [ProtoMember(6, IsRequired = false, Name = "resetTrainChoose", DataFormat = DataFormat.TwosComplement)] + public uint resetTrainChoose + { + get + { + return this._resetTrainChoose ?? 0u; + } + set + { + this._resetTrainChoose = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resetTrainChooseSpecified + { + get + { + return this._resetTrainChoose != null; + } + set + { + bool flag = value == (this._resetTrainChoose == null); + if (flag) + { + this._resetTrainChoose = (value ? new uint?(this.resetTrainChoose) : null); + } + } + } + + private SpriteType? _Type; + + private ulong? _uid; + + private uint? _FeedItemID; + + private readonly List _uids = new List(); + + private readonly List _notToChoose = new List(); + + private uint? _resetTrainChoose; + + private IExtension extensionObject; + + private bool ShouldSerializeType() + { + return this.TypeSpecified; + } + + private void ResetType() + { + this.TypeSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializeFeedItemID() + { + return this.FeedItemIDSpecified; + } + + private void ResetFeedItemID() + { + this.FeedItemIDSpecified = false; + } + + private bool ShouldSerializeresetTrainChoose() + { + return this.resetTrainChooseSpecified; + } + + private void ResetresetTrainChoose() + { + this.resetTrainChooseSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationArg.cs.meta new file mode 100644 index 00000000..8d7f145a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54b61eaf614f5a04d88f0e29d7b246b9 +timeCreated: 1611403735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationRes.cs new file mode 100644 index 00000000..5dcc1539 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationRes.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpriteOperationRes")] + [Serializable] + public class SpriteOperationRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "Exp", DataFormat = DataFormat.TwosComplement)] + public uint Exp + { + get + { + return this._Exp ?? 0u; + } + set + { + this._Exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ExpSpecified + { + get + { + return this._Exp != null; + } + set + { + bool flag = value == (this._Exp == null); + if (flag) + { + this._Exp = (value ? new uint?(this.Exp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "AwakeSpriteBefore", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SpriteInfo AwakeSpriteBefore + { + get + { + return this._AwakeSpriteBefore; + } + set + { + this._AwakeSpriteBefore = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "AwakeSprite", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SpriteInfo AwakeSprite + { + get + { + return this._AwakeSprite; + } + set + { + this._AwakeSprite = value; + } + } + + [ProtoMember(5, Name = "InFight", DataFormat = DataFormat.TwosComplement)] + public List InFight + { + get + { + return this._InFight; + } + } + + [ProtoMember(6, Name = "LastTrainAttrID", DataFormat = DataFormat.TwosComplement)] + public List LastTrainAttrID + { + get + { + return this._LastTrainAttrID; + } + } + + [ProtoMember(7, Name = "LastTrainAttrValue", DataFormat = DataFormat.TwosComplement)] + public List LastTrainAttrValue + { + get + { + return this._LastTrainAttrValue; + } + } + + private ErrorCode? _ErrorCode; + + private uint? _Exp; + + private SpriteInfo _AwakeSpriteBefore = null; + + private SpriteInfo _AwakeSprite = null; + + private readonly List _InFight = new List(); + + private readonly List _LastTrainAttrID = new List(); + + private readonly List _LastTrainAttrValue = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeExp() + { + return this.ExpSpecified; + } + + private void ResetExp() + { + this.ExpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationRes.cs.meta new file mode 100644 index 00000000..0c0d52d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteOperationRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d898a3e50f762f41839b53ea2c4dd6e +timeCreated: 1611404001 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteRecord.cs new file mode 100644 index 00000000..95ab41a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteRecord.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpriteRecord")] + [Serializable] + public class SpriteRecord : IExtensible + { + [ProtoMember(1, Name = "SpriteData", DataFormat = DataFormat.Default)] + public List SpriteData + { + get + { + return this._SpriteData; + } + } + + [ProtoMember(2, Name = "InFight", DataFormat = DataFormat.TwosComplement)] + public List InFight + { + get + { + return this._InFight; + } + } + + [ProtoMember(3, Name = "Books", DataFormat = DataFormat.Default)] + public List Books + { + get + { + return this._Books; + } + } + + [ProtoMember(4, IsRequired = false, Name = "NewAwake", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SpriteInfo NewAwake + { + get + { + return this._NewAwake; + } + set + { + this._NewAwake = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "version", DataFormat = DataFormat.TwosComplement)] + public uint version + { + get + { + return this._version ?? 0u; + } + set + { + this._version = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool versionSpecified + { + get + { + return this._version != null; + } + set + { + bool flag = value == (this._version == null); + if (flag) + { + this._version = (value ? new uint?(this.version) : null); + } + } + } + + private readonly List _SpriteData = new List(); + + private readonly List _InFight = new List(); + + private readonly List _Books = new List(); + + private SpriteInfo _NewAwake = null; + + private uint? _version; + + private IExtension extensionObject; + + private bool ShouldSerializeversion() + { + return this.versionSpecified; + } + + private void Resetversion() + { + this.versionSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpriteRecord.cs.meta new file mode 100644 index 00000000..be1db73c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb69a6c60be9e354c91696cfcedc5101 +timeCreated: 1611404441 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteState.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteState.cs new file mode 100644 index 00000000..f3f133b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteState.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpriteState")] + [Serializable] + public class SpriteState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sprite_id", DataFormat = DataFormat.TwosComplement)] + public uint sprite_id + { + get + { + return this._sprite_id ?? 0u; + } + set + { + this._sprite_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sprite_idSpecified + { + get + { + return this._sprite_id != null; + } + set + { + bool flag = value == (this._sprite_id == null); + if (flag) + { + this._sprite_id = (value ? new uint?(this.sprite_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.Default)] + public bool state + { + get + { + return this._state ?? false; + } + set + { + this._state = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new bool?(this.state) : null); + } + } + } + + private uint? _sprite_id; + + private bool? _state; + + private IExtension extensionObject; + + private bool ShouldSerializesprite_id() + { + return this.sprite_idSpecified; + } + + private void Resetsprite_id() + { + this.sprite_idSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpriteState.cs.meta new file mode 100644 index 00000000..07dd2da9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e47dcb527d20994aa32215b4095ce83 +timeCreated: 1611404241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SpriteType.cs new file mode 100644 index 00000000..76b2e693 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteType.cs @@ -0,0 +1,36 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SpriteType")] + public enum SpriteType + { + [ProtoEnum(Name = "Sprite_Feed", Value = 1)] + Sprite_Feed = 1, + [ProtoEnum(Name = "Sprite_Evolution", Value = 2)] + Sprite_Evolution, + [ProtoEnum(Name = "Sprite_Awake", Value = 3)] + Sprite_Awake, + [ProtoEnum(Name = "Sprite_Awake_Retain", Value = 4)] + Sprite_Awake_Retain, + [ProtoEnum(Name = "Sprite_Awake_Replace", Value = 5)] + Sprite_Awake_Replace, + [ProtoEnum(Name = "Sprite_InFight", Value = 6)] + Sprite_InFight, + [ProtoEnum(Name = "Sprite_OutFight", Value = 7)] + Sprite_OutFight, + [ProtoEnum(Name = "Sprite_Decompose", Value = 8)] + Sprite_Decompose, + [ProtoEnum(Name = "Sprite_SwapLeader", Value = 9)] + Sprite_SwapLeader, + [ProtoEnum(Name = "Sprite_QueryEvolutionPPT", Value = 10)] + Sprite_QueryEvolutionPPT, + [ProtoEnum(Name = "Sprite_Train", Value = 11)] + Sprite_Train, + [ProtoEnum(Name = "Sprite_ResetTrain", Value = 12)] + Sprite_ResetTrain, + [ProtoEnum(Name = "Sprite_Rebirth", Value = 13)] + Sprite_Rebirth + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SpriteType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SpriteType.cs.meta new file mode 100644 index 00000000..db65bad0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SpriteType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dafa20cfd50213c4788ae42bb1d9af2f +timeCreated: 1611404651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageAssistOne.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageAssistOne.cs new file mode 100644 index 00000000..3806d820 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageAssistOne.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageAssistOne")] + [Serializable] + public class StageAssistOne : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "stageid", DataFormat = DataFormat.TwosComplement)] + public uint stageid + { + get + { + return this._stageid ?? 0u; + } + set + { + this._stageid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageidSpecified + { + get + { + return this._stageid != null; + } + set + { + bool flag = value == (this._stageid == null); + if (flag) + { + this._stageid = (value ? new uint?(this.stageid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public int point + { + get + { + return this._point ?? 0; + } + set + { + this._point = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new int?(this.point) : null); + } + } + } + + private uint? _stageid; + + private int? _point; + + private IExtension extensionObject; + + private bool ShouldSerializestageid() + { + return this.stageidSpecified; + } + + private void Resetstageid() + { + this.stageidSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageAssistOne.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageAssistOne.cs.meta new file mode 100644 index 00000000..bd9c2421 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageAssistOne.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07c7ea866795b47499c29bb1822f6d51 +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetArg.cs new file mode 100644 index 00000000..029de718 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageCountResetArg")] + [Serializable] + public class StageCountResetArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public uint groupid + { + get + { + return this._groupid ?? 0u; + } + set + { + this._groupid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupidSpecified + { + get + { + return this._groupid != null; + } + set + { + bool flag = value == (this._groupid == null); + if (flag) + { + this._groupid = (value ? new uint?(this.groupid) : null); + } + } + } + + private uint? _groupid; + + private IExtension extensionObject; + + private bool ShouldSerializegroupid() + { + return this.groupidSpecified; + } + + private void Resetgroupid() + { + this.groupidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetArg.cs.meta new file mode 100644 index 00000000..1c5e9df0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13315baab744f0a4baee64154ba7b1b6 +timeCreated: 1611403246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetRes.cs new file mode 100644 index 00000000..11bd3670 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageCountResetRes")] + [Serializable] + public class StageCountResetRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetRes.cs.meta new file mode 100644 index 00000000..e0416662 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageCountResetRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5dc2df971ca69ab469d9736b8fd7a7c3 +timeCreated: 1611403808 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageGuildInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageGuildInfo.cs new file mode 100644 index 00000000..659a3941 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageGuildInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageGuildInfo")] + [Serializable] + public class StageGuildInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guildexp", DataFormat = DataFormat.TwosComplement)] + public uint guildexp + { + get + { + return this._guildexp ?? 0u; + } + set + { + this._guildexp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildexpSpecified + { + get + { + return this._guildexp != null; + } + set + { + bool flag = value == (this._guildexp == null); + if (flag) + { + this._guildexp = (value ? new uint?(this.guildexp) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildcon", DataFormat = DataFormat.TwosComplement)] + public uint guildcon + { + get + { + return this._guildcon ?? 0u; + } + set + { + this._guildcon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildconSpecified + { + get + { + return this._guildcon != null; + } + set + { + bool flag = value == (this._guildcon == null); + if (flag) + { + this._guildcon = (value ? new uint?(this.guildcon) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dragon", DataFormat = DataFormat.TwosComplement)] + public uint dragon + { + get + { + return this._dragon ?? 0u; + } + set + { + this._dragon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonSpecified + { + get + { + return this._dragon != null; + } + set + { + bool flag = value == (this._dragon == null); + if (flag) + { + this._dragon = (value ? new uint?(this.dragon) : null); + } + } + } + + private uint? _guildexp; + + private uint? _guildcon; + + private uint? _dragon; + + private IExtension extensionObject; + + private bool ShouldSerializeguildexp() + { + return this.guildexpSpecified; + } + + private void Resetguildexp() + { + this.guildexpSpecified = false; + } + + private bool ShouldSerializeguildcon() + { + return this.guildconSpecified; + } + + private void Resetguildcon() + { + this.guildconSpecified = false; + } + + private bool ShouldSerializedragon() + { + return this.dragonSpecified; + } + + private void Resetdragon() + { + this.dragonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageGuildInfo.cs.meta new file mode 100644 index 00000000..373ac2c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7de6c8d10ec061d4b866b1f6896d2f89 +timeCreated: 1611404003 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageInfo.cs new file mode 100644 index 00000000..617ba5e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageInfo.cs @@ -0,0 +1,802 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageInfo")] + [Serializable] + public class StageInfo : IExtensible + { + [ProtoMember(1, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public List sceneID + { + get + { + return this._sceneID; + } + } + + [ProtoMember(2, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public List rank + { + get + { + return this._rank; + } + } + + [ProtoMember(3, Name = "countscenegroupid", DataFormat = DataFormat.TwosComplement)] + public List countscenegroupid + { + get + { + return this._countscenegroupid; + } + } + + [ProtoMember(4, Name = "count", DataFormat = DataFormat.TwosComplement)] + public List count + { + get + { + return this._count; + } + } + + [ProtoMember(5, IsRequired = false, Name = "day", DataFormat = DataFormat.TwosComplement)] + public int day + { + get + { + return this._day ?? 0; + } + set + { + this._day = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool daySpecified + { + get + { + return this._day != null; + } + set + { + bool flag = value == (this._day == null); + if (flag) + { + this._day = (value ? new int?(this.day) : null); + } + } + } + + [ProtoMember(6, Name = "buycount", DataFormat = DataFormat.TwosComplement)] + public List buycount + { + get + { + return this._buycount; + } + } + + [ProtoMember(7, Name = "cdscenegroupid", DataFormat = DataFormat.TwosComplement)] + public List cdscenegroupid + { + get + { + return this._cdscenegroupid; + } + } + + [ProtoMember(8, Name = "cooldown", DataFormat = DataFormat.TwosComplement)] + public List cooldown + { + get + { + return this._cooldown; + } + } + + [ProtoMember(9, Name = "chapterchest", DataFormat = DataFormat.TwosComplement)] + public List chapterchest + { + get + { + return this._chapterchest; + } + } + + [ProtoMember(10, Name = "chestOpenedScene", DataFormat = DataFormat.TwosComplement)] + public List chestOpenedScene + { + get + { + return this._chestOpenedScene; + } + } + + [ProtoMember(11, IsRequired = false, Name = "helperwincount", DataFormat = DataFormat.TwosComplement)] + public int helperwincount + { + get + { + return this._helperwincount ?? 0; + } + set + { + this._helperwincount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool helperwincountSpecified + { + get + { + return this._helperwincount != null; + } + set + { + bool flag = value == (this._helperwincount == null); + if (flag) + { + this._helperwincount = (value ? new int?(this.helperwincount) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "helperweekwincount", DataFormat = DataFormat.TwosComplement)] + public int helperweekwincount + { + get + { + return this._helperweekwincount ?? 0; + } + set + { + this._helperweekwincount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool helperweekwincountSpecified + { + get + { + return this._helperweekwincount != null; + } + set + { + bool flag = value == (this._helperweekwincount == null); + if (flag) + { + this._helperweekwincount = (value ? new int?(this.helperweekwincount) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "lastweekuptime", DataFormat = DataFormat.TwosComplement)] + public uint lastweekuptime + { + get + { + return this._lastweekuptime ?? 0u; + } + set + { + this._lastweekuptime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastweekuptimeSpecified + { + get + { + return this._lastweekuptime != null; + } + set + { + bool flag = value == (this._lastweekuptime == null); + if (flag) + { + this._lastweekuptime = (value ? new uint?(this.lastweekuptime) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "bossrushmax", DataFormat = DataFormat.TwosComplement)] + public uint bossrushmax + { + get + { + return this._bossrushmax ?? 0u; + } + set + { + this._bossrushmax = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bossrushmaxSpecified + { + get + { + return this._bossrushmax != null; + } + set + { + bool flag = value == (this._bossrushmax == null); + if (flag) + { + this._bossrushmax = (value ? new uint?(this.bossrushmax) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "brupday", DataFormat = DataFormat.TwosComplement)] + public int brupday + { + get + { + return this._brupday ?? 0; + } + set + { + this._brupday = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool brupdaySpecified + { + get + { + return this._brupday != null; + } + set + { + bool flag = value == (this._brupday == null); + if (flag) + { + this._brupday = (value ? new int?(this.brupday) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "BRjoincounttoday", DataFormat = DataFormat.TwosComplement)] + public int BRjoincounttoday + { + get + { + return this._BRjoincounttoday ?? 0; + } + set + { + this._BRjoincounttoday = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BRjoincounttodaySpecified + { + get + { + return this._BRjoincounttoday != null; + } + set + { + bool flag = value == (this._BRjoincounttoday == null); + if (flag) + { + this._BRjoincounttoday = (value ? new int?(this.BRjoincounttoday) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "BRrefreshcounttoday", DataFormat = DataFormat.TwosComplement)] + public int BRrefreshcounttoday + { + get + { + return this._BRrefreshcounttoday ?? 0; + } + set + { + this._BRrefreshcounttoday = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool BRrefreshcounttodaySpecified + { + get + { + return this._BRrefreshcounttoday != null; + } + set + { + bool flag = value == (this._BRrefreshcounttoday == null); + if (flag) + { + this._BRrefreshcounttoday = (value ? new int?(this.BRrefreshcounttoday) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "brrankstate", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BRRankState brrankstate + { + get + { + return this._brrankstate; + } + set + { + this._brrankstate = value; + } + } + + [ProtoMember(19, Name = "stageprogress", DataFormat = DataFormat.Default)] + public List stageprogress + { + get + { + return this._stageprogress; + } + } + + [ProtoMember(20, Name = "stageassist", DataFormat = DataFormat.Default)] + public List stageassist + { + get + { + return this._stageassist; + } + } + + [ProtoMember(21, IsRequired = false, Name = "holidayid", DataFormat = DataFormat.TwosComplement)] + public uint holidayid + { + get + { + return this._holidayid ?? 0u; + } + set + { + this._holidayid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool holidayidSpecified + { + get + { + return this._holidayid != null; + } + set + { + bool flag = value == (this._holidayid == null); + if (flag) + { + this._holidayid = (value ? new uint?(this.holidayid) : null); + } + } + } + + [ProtoMember(22, IsRequired = false, Name = "holidaytimes", DataFormat = DataFormat.TwosComplement)] + public uint holidaytimes + { + get + { + return this._holidaytimes ?? 0u; + } + set + { + this._holidaytimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool holidaytimesSpecified + { + get + { + return this._holidaytimes != null; + } + set + { + bool flag = value == (this._holidaytimes == null); + if (flag) + { + this._holidaytimes = (value ? new uint?(this.holidaytimes) : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "absparty", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AbsPartyInfo absparty + { + get + { + return this._absparty; + } + set + { + this._absparty = value; + } + } + + [ProtoMember(24, IsRequired = false, Name = "kidhelpercount", DataFormat = DataFormat.TwosComplement)] + public uint kidhelpercount + { + get + { + return this._kidhelpercount ?? 0u; + } + set + { + this._kidhelpercount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kidhelpercountSpecified + { + get + { + return this._kidhelpercount != null; + } + set + { + bool flag = value == (this._kidhelpercount == null); + if (flag) + { + this._kidhelpercount = (value ? new uint?(this.kidhelpercount) : null); + } + } + } + + [ProtoMember(25, IsRequired = false, Name = "tarjatime", DataFormat = DataFormat.TwosComplement)] + public uint tarjatime + { + get + { + return this._tarjatime ?? 0u; + } + set + { + this._tarjatime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tarjatimeSpecified + { + get + { + return this._tarjatime != null; + } + set + { + bool flag = value == (this._tarjatime == null); + if (flag) + { + this._tarjatime = (value ? new uint?(this.tarjatime) : null); + } + } + } + + [ProtoMember(26, IsRequired = false, Name = "tarjaaward", DataFormat = DataFormat.TwosComplement)] + public uint tarjaaward + { + get + { + return this._tarjaaward ?? 0u; + } + set + { + this._tarjaaward = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tarjaawardSpecified + { + get + { + return this._tarjaaward != null; + } + set + { + bool flag = value == (this._tarjaaward == null); + if (flag) + { + this._tarjaaward = (value ? new uint?(this.tarjaaward) : null); + } + } + } + + [ProtoMember(27, IsRequired = false, Name = "trophydata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public StageTrophy trophydata + { + get + { + return this._trophydata; + } + set + { + this._trophydata = value; + } + } + + [ProtoMember(28, Name = "dnes", DataFormat = DataFormat.Default)] + public List dnes + { + get + { + return this._dnes; + } + } + + [ProtoMember(29, IsRequired = false, Name = "despecialflag", DataFormat = DataFormat.Default)] + public bool despecialflag + { + get + { + return this._despecialflag ?? false; + } + set + { + this._despecialflag = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool despecialflagSpecified + { + get + { + return this._despecialflag != null; + } + set + { + bool flag = value == (this._despecialflag == null); + if (flag) + { + this._despecialflag = (value ? new bool?(this.despecialflag) : null); + } + } + } + + private readonly List _sceneID = new List(); + + private readonly List _rank = new List(); + + private readonly List _countscenegroupid = new List(); + + private readonly List _count = new List(); + + private int? _day; + + private readonly List _buycount = new List(); + + private readonly List _cdscenegroupid = new List(); + + private readonly List _cooldown = new List(); + + private readonly List _chapterchest = new List(); + + private readonly List _chestOpenedScene = new List(); + + private int? _helperwincount; + + private int? _helperweekwincount; + + private uint? _lastweekuptime; + + private uint? _bossrushmax; + + private int? _brupday; + + private int? _BRjoincounttoday; + + private int? _BRrefreshcounttoday; + + private BRRankState _brrankstate = null; + + private readonly List _stageprogress = new List(); + + private readonly List _stageassist = new List(); + + private uint? _holidayid; + + private uint? _holidaytimes; + + private AbsPartyInfo _absparty = null; + + private uint? _kidhelpercount; + + private uint? _tarjatime; + + private uint? _tarjaaward; + + private StageTrophy _trophydata = null; + + private readonly List _dnes = new List(); + + private bool? _despecialflag; + + private IExtension extensionObject; + + private bool ShouldSerializeday() + { + return this.daySpecified; + } + + private void Resetday() + { + this.daySpecified = false; + } + + private bool ShouldSerializehelperwincount() + { + return this.helperwincountSpecified; + } + + private void Resethelperwincount() + { + this.helperwincountSpecified = false; + } + + private bool ShouldSerializehelperweekwincount() + { + return this.helperweekwincountSpecified; + } + + private void Resethelperweekwincount() + { + this.helperweekwincountSpecified = false; + } + + private bool ShouldSerializelastweekuptime() + { + return this.lastweekuptimeSpecified; + } + + private void Resetlastweekuptime() + { + this.lastweekuptimeSpecified = false; + } + + private bool ShouldSerializebossrushmax() + { + return this.bossrushmaxSpecified; + } + + private void Resetbossrushmax() + { + this.bossrushmaxSpecified = false; + } + + private bool ShouldSerializebrupday() + { + return this.brupdaySpecified; + } + + private void Resetbrupday() + { + this.brupdaySpecified = false; + } + + private bool ShouldSerializeBRjoincounttoday() + { + return this.BRjoincounttodaySpecified; + } + + private void ResetBRjoincounttoday() + { + this.BRjoincounttodaySpecified = false; + } + + private bool ShouldSerializeBRrefreshcounttoday() + { + return this.BRrefreshcounttodaySpecified; + } + + private void ResetBRrefreshcounttoday() + { + this.BRrefreshcounttodaySpecified = false; + } + + private bool ShouldSerializeholidayid() + { + return this.holidayidSpecified; + } + + private void Resetholidayid() + { + this.holidayidSpecified = false; + } + + private bool ShouldSerializeholidaytimes() + { + return this.holidaytimesSpecified; + } + + private void Resetholidaytimes() + { + this.holidaytimesSpecified = false; + } + + private bool ShouldSerializekidhelpercount() + { + return this.kidhelpercountSpecified; + } + + private void Resetkidhelpercount() + { + this.kidhelpercountSpecified = false; + } + + private bool ShouldSerializetarjatime() + { + return this.tarjatimeSpecified; + } + + private void Resettarjatime() + { + this.tarjatimeSpecified = false; + } + + private bool ShouldSerializetarjaaward() + { + return this.tarjaawardSpecified; + } + + private void Resettarjaaward() + { + this.tarjaawardSpecified = false; + } + + private bool ShouldSerializedespecialflag() + { + return this.despecialflagSpecified; + } + + private void Resetdespecialflag() + { + this.despecialflagSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageInfo.cs.meta new file mode 100644 index 00000000..35c0695f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47fda749cab1115458c6563038797cb6 +timeCreated: 1611403655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageRankCond.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageRankCond.cs new file mode 100644 index 00000000..2e393229 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageRankCond.cs @@ -0,0 +1,28 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageRankCond")] + public enum StageRankCond + { + [ProtoEnum(Name = "StageRankCond_Time", Value = 1)] + StageRankCond_Time = 1, + [ProtoEnum(Name = "StageRankCond_Hppercent", Value = 2)] + StageRankCond_Hppercent, + [ProtoEnum(Name = "StageRankCond_Found", Value = 3)] + StageRankCond_Found, + [ProtoEnum(Name = "StageRankCond_Behit", Value = 4)] + StageRankCond_Behit, + [ProtoEnum(Name = "StageRankCond_NpcHp", Value = 5)] + StageRankCond_NpcHp, + [ProtoEnum(Name = "StageRankCond_Combo", Value = 6)] + StageRankCond_Combo, + [ProtoEnum(Name = "StageRankCond_KillEnemyScore", Value = 7)] + StageRankCond_KillEnemyScore, + [ProtoEnum(Name = "StageRankCond_AliveTime", Value = 8)] + StageRankCond_AliveTime, + [ProtoEnum(Name = "StageRankCond_TotalKillEnemyScore", Value = 9)] + StageRankCond_TotalKillEnemyScore + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageRankCond.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageRankCond.cs.meta new file mode 100644 index 00000000..0b94b088 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageRankCond.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 917cddab8ecc7214ab47aaf407cbaaa1 +timeCreated: 1611404142 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageResultInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageResultInfo.cs new file mode 100644 index 00000000..588fd9fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageResultInfo.cs @@ -0,0 +1,309 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageResultInfo")] + [Serializable] + public class StageResultInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "stageType", DataFormat = DataFormat.TwosComplement)] + public uint stageType + { + get + { + return this._stageType ?? 0u; + } + set + { + this._stageType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageTypeSpecified + { + get + { + return this._stageType != null; + } + set + { + bool flag = value == (this._stageType == null); + if (flag) + { + this._stageType = (value ? new uint?(this.stageType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "stageID", DataFormat = DataFormat.TwosComplement)] + public uint stageID + { + get + { + return this._stageID ?? 0u; + } + set + { + this._stageID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stageIDSpecified + { + get + { + return this._stageID != null; + } + set + { + bool flag = value == (this._stageID == null); + if (flag) + { + this._stageID = (value ? new uint?(this.stageID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isStageFailed", DataFormat = DataFormat.Default)] + public bool isStageFailed + { + get + { + return this._isStageFailed ?? false; + } + set + { + this._isStageFailed = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isStageFailedSpecified + { + get + { + return this._isStageFailed != null; + } + set + { + bool flag = value == (this._isStageFailed == null); + if (flag) + { + this._isStageFailed = (value ? new bool?(this.isStageFailed) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "timespan", DataFormat = DataFormat.TwosComplement)] + public uint timespan + { + get + { + return this._timespan ?? 0u; + } + set + { + this._timespan = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timespanSpecified + { + get + { + return this._timespan != null; + } + set + { + bool flag = value == (this._timespan == null); + if (flag) + { + this._timespan = (value ? new uint?(this.timespan) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "abyssid", DataFormat = DataFormat.TwosComplement)] + public uint abyssid + { + get + { + return this._abyssid ?? 0u; + } + set + { + this._abyssid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool abyssidSpecified + { + get + { + return this._abyssid != null; + } + set + { + bool flag = value == (this._abyssid == null); + if (flag) + { + this._abyssid = (value ? new uint?(this.abyssid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "mobabattle", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MobaBattleResult mobabattle + { + get + { + return this._mobabattle; + } + set + { + this._mobabattle = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "weekend4v4tmresult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeekEnd4v4TeamResult weekend4v4tmresult + { + get + { + return this._weekend4v4tmresult; + } + set + { + this._weekend4v4tmresult = value; + } + } + + [ProtoMember(8, IsRequired = false, Name = "end", DataFormat = DataFormat.Default)] + public bool end + { + get + { + return this._end ?? false; + } + set + { + this._end = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endSpecified + { + get + { + return this._end != null; + } + set + { + bool flag = value == (this._end == null); + if (flag) + { + this._end = (value ? new bool?(this.end) : null); + } + } + } + + private uint? _stageType; + + private uint? _stageID; + + private bool? _isStageFailed; + + private uint? _timespan; + + private uint? _abyssid; + + private MobaBattleResult _mobabattle = null; + + private WeekEnd4v4TeamResult _weekend4v4tmresult = null; + + private bool? _end; + + private IExtension extensionObject; + + private bool ShouldSerializestageType() + { + return this.stageTypeSpecified; + } + + private void ResetstageType() + { + this.stageTypeSpecified = false; + } + + private bool ShouldSerializestageID() + { + return this.stageIDSpecified; + } + + private void ResetstageID() + { + this.stageIDSpecified = false; + } + + private bool ShouldSerializeisStageFailed() + { + return this.isStageFailedSpecified; + } + + private void ResetisStageFailed() + { + this.isStageFailedSpecified = false; + } + + private bool ShouldSerializetimespan() + { + return this.timespanSpecified; + } + + private void Resettimespan() + { + this.timespanSpecified = false; + } + + private bool ShouldSerializeabyssid() + { + return this.abyssidSpecified; + } + + private void Resetabyssid() + { + this.abyssidSpecified = false; + } + + private bool ShouldSerializeend() + { + return this.endSpecified; + } + + private void Resetend() + { + this.endSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageResultInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageResultInfo.cs.meta new file mode 100644 index 00000000..a20df578 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageResultInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3255829fb646fcd43bf387c6d7d8bdf7 +timeCreated: 1611403549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageRoleResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageRoleResult.cs new file mode 100644 index 00000000..a4de0924 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageRoleResult.cs @@ -0,0 +1,1782 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageRoleResult")] + [Serializable] + public class StageRoleResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "money", DataFormat = DataFormat.TwosComplement)] + public uint money + { + get + { + return this._money ?? 0u; + } + set + { + this._money = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool moneySpecified + { + get + { + return this._money != null; + } + set + { + bool flag = value == (this._money == null); + if (flag) + { + this._money = (value ? new uint?(this.money) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "exp", DataFormat = DataFormat.TwosComplement)] + public uint exp + { + get + { + return this._exp ?? 0u; + } + set + { + this._exp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expSpecified + { + get + { + return this._exp != null; + } + set + { + bool flag = value == (this._exp == null); + if (flag) + { + this._exp = (value ? new uint?(this.exp) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "stars", DataFormat = DataFormat.TwosComplement)] + public uint stars + { + get + { + return this._stars ?? 0u; + } + set + { + this._stars = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool starsSpecified + { + get + { + return this._stars != null; + } + set + { + bool flag = value == (this._stars == null); + if (flag) + { + this._stars = (value ? new uint?(this.stars) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "firststars", DataFormat = DataFormat.TwosComplement)] + public uint firststars + { + get + { + return this._firststars ?? 0u; + } + set + { + this._firststars = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool firststarsSpecified + { + get + { + return this._firststars != null; + } + set + { + bool flag = value == (this._firststars == null); + if (flag) + { + this._firststars = (value ? new uint?(this.firststars) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "startLevel", DataFormat = DataFormat.TwosComplement)] + public uint startLevel + { + get + { + return this._startLevel ?? 0u; + } + set + { + this._startLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startLevelSpecified + { + get + { + return this._startLevel != null; + } + set + { + bool flag = value == (this._startLevel == null); + if (flag) + { + this._startLevel = (value ? new uint?(this.startLevel) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "startExp", DataFormat = DataFormat.TwosComplement)] + public uint startExp + { + get + { + return this._startExp ?? 0u; + } + set + { + this._startExp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool startExpSpecified + { + get + { + return this._startExp != null; + } + set + { + bool flag = value == (this._startExp == null); + if (flag) + { + this._startExp = (value ? new uint?(this.startExp) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(8, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(9, Name = "starreward", DataFormat = DataFormat.Default)] + public List starreward + { + get + { + return this._starreward; + } + } + + [ProtoMember(10, IsRequired = false, Name = "guildGoblinResult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GuildGoblinResult guildGoblinResult + { + get + { + return this._guildGoblinResult; + } + set + { + this._guildGoblinResult = value; + } + } + + [ProtoMember(11, IsRequired = false, Name = "pkresult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PkResult pkresult + { + get + { + return this._pkresult; + } + set + { + this._pkresult = value; + } + } + + [ProtoMember(12, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(14, IsRequired = false, Name = "damage", DataFormat = DataFormat.FixedSize)] + public float damage + { + get + { + return this._damage ?? 0f; + } + set + { + this._damage = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool damageSpecified + { + get + { + return this._damage != null; + } + set + { + bool flag = value == (this._damage == null); + if (flag) + { + this._damage = (value ? new float?(this.damage) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "deathcount", DataFormat = DataFormat.TwosComplement)] + public uint deathcount + { + get + { + return this._deathcount ?? 0u; + } + set + { + this._deathcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool deathcountSpecified + { + get + { + return this._deathcount != null; + } + set + { + bool flag = value == (this._deathcount == null); + if (flag) + { + this._deathcount = (value ? new uint?(this.deathcount) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "maxcombo", DataFormat = DataFormat.TwosComplement)] + public uint maxcombo + { + get + { + return this._maxcombo ?? 0u; + } + set + { + this._maxcombo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxcomboSpecified + { + get + { + return this._maxcombo != null; + } + set + { + bool flag = value == (this._maxcombo == null); + if (flag) + { + this._maxcombo = (value ? new uint?(this.maxcombo) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "vipscore", DataFormat = DataFormat.TwosComplement)] + public uint vipscore + { + get + { + return this._vipscore ?? 0u; + } + set + { + this._vipscore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipscoreSpecified + { + get + { + return this._vipscore != null; + } + set + { + bool flag = value == (this._vipscore == null); + if (flag) + { + this._vipscore = (value ? new uint?(this.vipscore) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "viplevel", DataFormat = DataFormat.TwosComplement)] + public int viplevel + { + get + { + return this._viplevel ?? 0; + } + set + { + this._viplevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool viplevelSpecified + { + get + { + return this._viplevel != null; + } + set + { + bool flag = value == (this._viplevel == null); + if (flag) + { + this._viplevel = (value ? new int?(this.viplevel) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "endlevel", DataFormat = DataFormat.TwosComplement)] + public uint endlevel + { + get + { + return this._endlevel ?? 0u; + } + set + { + this._endlevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endlevelSpecified + { + get + { + return this._endlevel != null; + } + set + { + bool flag = value == (this._endlevel == null); + if (flag) + { + this._endlevel = (value ? new uint?(this.endlevel) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "endexp", DataFormat = DataFormat.TwosComplement)] + public uint endexp + { + get + { + return this._endexp ?? 0u; + } + set + { + this._endexp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool endexpSpecified + { + get + { + return this._endexp != null; + } + set + { + bool flag = value == (this._endexp == null); + if (flag) + { + this._endexp = (value ? new uint?(this.endexp) : null); + } + } + } + + [ProtoMember(21, IsRequired = false, Name = "gid", DataFormat = DataFormat.TwosComplement)] + public ulong gid + { + get + { + return this._gid ?? 0UL; + } + set + { + this._gid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool gidSpecified + { + get + { + return this._gid != null; + } + set + { + bool flag = value == (this._gid == null); + if (flag) + { + this._gid = (value ? new ulong?(this.gid) : null); + } + } + } + + [ProtoMember(22, IsRequired = false, Name = "isLeader", DataFormat = DataFormat.Default)] + public bool isLeader + { + get + { + return this._isLeader ?? false; + } + set + { + this._isLeader = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isLeaderSpecified + { + get + { + return this._isLeader != null; + } + set + { + bool flag = value == (this._isLeader == null); + if (flag) + { + this._isLeader = (value ? new bool?(this.isLeader) : null); + } + } + } + + [ProtoMember(23, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public int profession + { + get + { + return this._profession ?? 0; + } + set + { + this._profession = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new int?(this.profession) : null); + } + } + } + + [ProtoMember(24, IsRequired = false, Name = "towerResult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TowerResult towerResult + { + get + { + return this._towerResult; + } + set + { + this._towerResult = value; + } + } + + [ProtoMember(25, IsRequired = false, Name = "killcount", DataFormat = DataFormat.TwosComplement)] + public int killcount + { + get + { + return this._killcount ?? 0; + } + set + { + this._killcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcountSpecified + { + get + { + return this._killcount != null; + } + set + { + bool flag = value == (this._killcount == null); + if (flag) + { + this._killcount = (value ? new int?(this.killcount) : null); + } + } + } + + [ProtoMember(26, IsRequired = false, Name = "killcontinuemax", DataFormat = DataFormat.TwosComplement)] + public int killcontinuemax + { + get + { + return this._killcontinuemax ?? 0; + } + set + { + this._killcontinuemax = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killcontinuemaxSpecified + { + get + { + return this._killcontinuemax != null; + } + set + { + bool flag = value == (this._killcontinuemax == null); + if (flag) + { + this._killcontinuemax = (value ? new int?(this.killcontinuemax) : null); + } + } + } + + [ProtoMember(27, IsRequired = false, Name = "treat", DataFormat = DataFormat.FixedSize)] + public float treat + { + get + { + return this._treat ?? 0f; + } + set + { + this._treat = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool treatSpecified + { + get + { + return this._treat != null; + } + set + { + bool flag = value == (this._treat == null); + if (flag) + { + this._treat = (value ? new float?(this.treat) : null); + } + } + } + + [ProtoMember(28, IsRequired = false, Name = "pvpresult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PVPResult pvpresult + { + get + { + return this._pvpresult; + } + set + { + this._pvpresult = value; + } + } + + [ProtoMember(29, Name = "box", DataFormat = DataFormat.Default)] + public List box + { + get + { + return this._box; + } + } + + [ProtoMember(30, Name = "guildreward", DataFormat = DataFormat.Default)] + public List guildreward + { + get + { + return this._guildreward; + } + } + + [ProtoMember(31, IsRequired = false, Name = "ishelper", DataFormat = DataFormat.Default)] + public bool ishelper + { + get + { + return this._ishelper ?? false; + } + set + { + this._ishelper = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ishelperSpecified + { + get + { + return this._ishelper != null; + } + set + { + bool flag = value == (this._ishelper == null); + if (flag) + { + this._ishelper = (value ? new bool?(this.ishelper) : null); + } + } + } + + [ProtoMember(32, IsRequired = false, Name = "deresult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DragonExpResult deresult + { + get + { + return this._deresult; + } + set + { + this._deresult = value; + } + } + + [ProtoMember(33, IsRequired = false, Name = "skycity", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public SkyCityFinalInfo skycity + { + get + { + return this._skycity; + } + set + { + this._skycity = value; + } + } + + [ProtoMember(34, IsRequired = false, Name = "isexpseal", DataFormat = DataFormat.Default)] + public bool isexpseal + { + get + { + return this._isexpseal ?? false; + } + set + { + this._isexpseal = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isexpsealSpecified + { + get + { + return this._isexpseal != null; + } + set + { + bool flag = value == (this._isexpseal == null); + if (flag) + { + this._isexpseal = (value ? new bool?(this.isexpseal) : null); + } + } + } + + [ProtoMember(35, IsRequired = false, Name = "guildexp", DataFormat = DataFormat.TwosComplement)] + public uint guildexp + { + get + { + return this._guildexp ?? 0u; + } + set + { + this._guildexp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildexpSpecified + { + get + { + return this._guildexp != null; + } + set + { + bool flag = value == (this._guildexp == null); + if (flag) + { + this._guildexp = (value ? new uint?(this.guildexp) : null); + } + } + } + + [ProtoMember(36, IsRequired = false, Name = "guildcon", DataFormat = DataFormat.TwosComplement)] + public uint guildcon + { + get + { + return this._guildcon ?? 0u; + } + set + { + this._guildcon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildconSpecified + { + get + { + return this._guildcon != null; + } + set + { + bool flag = value == (this._guildcon == null); + if (flag) + { + this._guildcon = (value ? new uint?(this.guildcon) : null); + } + } + } + + [ProtoMember(37, IsRequired = false, Name = "guilddargon", DataFormat = DataFormat.TwosComplement)] + public uint guilddargon + { + get + { + return this._guilddargon ?? 0u; + } + set + { + this._guilddargon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guilddargonSpecified + { + get + { + return this._guilddargon != null; + } + set + { + bool flag = value == (this._guilddargon == null); + if (flag) + { + this._guilddargon = (value ? new uint?(this.guilddargon) : null); + } + } + } + + [ProtoMember(38, IsRequired = false, Name = "reswar", DataFormat = DataFormat.TwosComplement)] + public uint reswar + { + get + { + return this._reswar ?? 0u; + } + set + { + this._reswar = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reswarSpecified + { + get + { + return this._reswar != null; + } + set + { + bool flag = value == (this._reswar == null); + if (flag) + { + this._reswar = (value ? new uint?(this.reswar) : null); + } + } + } + + [ProtoMember(39, IsRequired = false, Name = "teamcostreward", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief teamcostreward + { + get + { + return this._teamcostreward; + } + set + { + this._teamcostreward = value; + } + } + + [ProtoMember(40, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(41, IsRequired = false, Name = "horse", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HorseAward horse + { + get + { + return this._horse; + } + set + { + this._horse = value; + } + } + + [ProtoMember(42, IsRequired = false, Name = "invfightresult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public InvFightBattleResult invfightresult + { + get + { + return this._invfightresult; + } + set + { + this._invfightresult = value; + } + } + + [ProtoMember(43, IsRequired = false, Name = "heroresult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public HeroBattleResult heroresult + { + get + { + return this._heroresult; + } + set + { + this._heroresult = value; + } + } + + [ProtoMember(44, IsRequired = false, Name = "military_rank", DataFormat = DataFormat.TwosComplement)] + public uint military_rank + { + get + { + return this._military_rank ?? 0u; + } + set + { + this._military_rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool military_rankSpecified + { + get + { + return this._military_rank != null; + } + set + { + bool flag = value == (this._military_rank == null); + if (flag) + { + this._military_rank = (value ? new uint?(this.military_rank) : null); + } + } + } + + [ProtoMember(45, IsRequired = false, Name = "assitnum", DataFormat = DataFormat.TwosComplement)] + public uint assitnum + { + get + { + return this._assitnum ?? 0u; + } + set + { + this._assitnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool assitnumSpecified + { + get + { + return this._assitnum != null; + } + set + { + bool flag = value == (this._assitnum == null); + if (flag) + { + this._assitnum = (value ? new uint?(this.assitnum) : null); + } + } + } + + [ProtoMember(46, IsRequired = false, Name = "behitdamage", DataFormat = DataFormat.TwosComplement)] + public uint behitdamage + { + get + { + return this._behitdamage ?? 0u; + } + set + { + this._behitdamage = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool behitdamageSpecified + { + get + { + return this._behitdamage != null; + } + set + { + bool flag = value == (this._behitdamage == null); + if (flag) + { + this._behitdamage = (value ? new uint?(this.behitdamage) : null); + } + } + } + + [ProtoMember(47, IsRequired = false, Name = "multikillcountmax", DataFormat = DataFormat.TwosComplement)] + public uint multikillcountmax + { + get + { + return this._multikillcountmax ?? 0u; + } + set + { + this._multikillcountmax = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool multikillcountmaxSpecified + { + get + { + return this._multikillcountmax != null; + } + set + { + bool flag = value == (this._multikillcountmax == null); + if (flag) + { + this._multikillcountmax = (value ? new uint?(this.multikillcountmax) : null); + } + } + } + + [ProtoMember(48, IsRequired = false, Name = "custombattle", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public CustomBattleResult custombattle + { + get + { + return this._custombattle; + } + set + { + this._custombattle = value; + } + } + + [ProtoMember(49, IsRequired = false, Name = "mobabattle", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public MobaBattleRoleResult mobabattle + { + get + { + return this._mobabattle; + } + set + { + this._mobabattle = value; + } + } + + [ProtoMember(50, IsRequired = false, Name = "weekend4v4roledata", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeekEnd4v4BattleRoleData weekend4v4roledata + { + get + { + return this._weekend4v4roledata; + } + set + { + this._weekend4v4roledata = value; + } + } + + [ProtoMember(51, IsRequired = false, Name = "bigmelee", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BigMeleeBattleResult bigmelee + { + get + { + return this._bigmelee; + } + set + { + this._bigmelee = value; + } + } + + [ProtoMember(52, IsRequired = false, Name = "battlefield", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BattleFieldBattleResult battlefield + { + get + { + return this._battlefield; + } + set + { + this._battlefield = value; + } + } + + [ProtoMember(53, IsRequired = false, Name = "isboxexcept", DataFormat = DataFormat.Default)] + public bool isboxexcept + { + get + { + return this._isboxexcept ?? false; + } + set + { + this._isboxexcept = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isboxexceptSpecified + { + get + { + return this._isboxexcept != null; + } + set + { + bool flag = value == (this._isboxexcept == null); + if (flag) + { + this._isboxexcept = (value ? new bool?(this.isboxexcept) : null); + } + } + } + + [ProtoMember(54, IsRequired = false, Name = "riftResult", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RiftResult riftResult + { + get + { + return this._riftResult; + } + set + { + this._riftResult = value; + } + } + + private uint? _money; + + private uint? _exp; + + private uint? _stars; + + private uint? _firststars; + + private uint? _startLevel; + + private uint? _startExp; + + private string _rolename; + + private readonly List _items = new List(); + + private readonly List _starreward = new List(); + + private GuildGoblinResult _guildGoblinResult = null; + + private PkResult _pkresult = null; + + private ulong? _roleid; + + private uint? _score; + + private float? _damage; + + private uint? _deathcount; + + private uint? _maxcombo; + + private uint? _vipscore; + + private int? _viplevel; + + private uint? _endlevel; + + private uint? _endexp; + + private ulong? _gid; + + private bool? _isLeader; + + private int? _profession; + + private TowerResult _towerResult = null; + + private int? _killcount; + + private int? _killcontinuemax; + + private float? _treat; + + private PVPResult _pvpresult = null; + + private readonly List _box = new List(); + + private readonly List _guildreward = new List(); + + private bool? _ishelper; + + private DragonExpResult _deresult = null; + + private SkyCityFinalInfo _skycity = null; + + private bool? _isexpseal; + + private uint? _guildexp; + + private uint? _guildcon; + + private uint? _guilddargon; + + private uint? _reswar; + + private ItemBrief _teamcostreward = null; + + private uint? _serverid; + + private HorseAward _horse = null; + + private InvFightBattleResult _invfightresult = null; + + private HeroBattleResult _heroresult = null; + + private uint? _military_rank; + + private uint? _assitnum; + + private uint? _behitdamage; + + private uint? _multikillcountmax; + + private CustomBattleResult _custombattle = null; + + private MobaBattleRoleResult _mobabattle = null; + + private WeekEnd4v4BattleRoleData _weekend4v4roledata = null; + + private BigMeleeBattleResult _bigmelee = null; + + private BattleFieldBattleResult _battlefield = null; + + private bool? _isboxexcept; + + private RiftResult _riftResult = null; + + private IExtension extensionObject; + + private bool ShouldSerializemoney() + { + return this.moneySpecified; + } + + private void Resetmoney() + { + this.moneySpecified = false; + } + + private bool ShouldSerializeexp() + { + return this.expSpecified; + } + + private void Resetexp() + { + this.expSpecified = false; + } + + private bool ShouldSerializestars() + { + return this.starsSpecified; + } + + private void Resetstars() + { + this.starsSpecified = false; + } + + private bool ShouldSerializefirststars() + { + return this.firststarsSpecified; + } + + private void Resetfirststars() + { + this.firststarsSpecified = false; + } + + private bool ShouldSerializestartLevel() + { + return this.startLevelSpecified; + } + + private void ResetstartLevel() + { + this.startLevelSpecified = false; + } + + private bool ShouldSerializestartExp() + { + return this.startExpSpecified; + } + + private void ResetstartExp() + { + this.startExpSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializedamage() + { + return this.damageSpecified; + } + + private void Resetdamage() + { + this.damageSpecified = false; + } + + private bool ShouldSerializedeathcount() + { + return this.deathcountSpecified; + } + + private void Resetdeathcount() + { + this.deathcountSpecified = false; + } + + private bool ShouldSerializemaxcombo() + { + return this.maxcomboSpecified; + } + + private void Resetmaxcombo() + { + this.maxcomboSpecified = false; + } + + private bool ShouldSerializevipscore() + { + return this.vipscoreSpecified; + } + + private void Resetvipscore() + { + this.vipscoreSpecified = false; + } + + private bool ShouldSerializeviplevel() + { + return this.viplevelSpecified; + } + + private void Resetviplevel() + { + this.viplevelSpecified = false; + } + + private bool ShouldSerializeendlevel() + { + return this.endlevelSpecified; + } + + private void Resetendlevel() + { + this.endlevelSpecified = false; + } + + private bool ShouldSerializeendexp() + { + return this.endexpSpecified; + } + + private void Resetendexp() + { + this.endexpSpecified = false; + } + + private bool ShouldSerializegid() + { + return this.gidSpecified; + } + + private void Resetgid() + { + this.gidSpecified = false; + } + + private bool ShouldSerializeisLeader() + { + return this.isLeaderSpecified; + } + + private void ResetisLeader() + { + this.isLeaderSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializekillcount() + { + return this.killcountSpecified; + } + + private void Resetkillcount() + { + this.killcountSpecified = false; + } + + private bool ShouldSerializekillcontinuemax() + { + return this.killcontinuemaxSpecified; + } + + private void Resetkillcontinuemax() + { + this.killcontinuemaxSpecified = false; + } + + private bool ShouldSerializetreat() + { + return this.treatSpecified; + } + + private void Resettreat() + { + this.treatSpecified = false; + } + + private bool ShouldSerializeishelper() + { + return this.ishelperSpecified; + } + + private void Resetishelper() + { + this.ishelperSpecified = false; + } + + private bool ShouldSerializeisexpseal() + { + return this.isexpsealSpecified; + } + + private void Resetisexpseal() + { + this.isexpsealSpecified = false; + } + + private bool ShouldSerializeguildexp() + { + return this.guildexpSpecified; + } + + private void Resetguildexp() + { + this.guildexpSpecified = false; + } + + private bool ShouldSerializeguildcon() + { + return this.guildconSpecified; + } + + private void Resetguildcon() + { + this.guildconSpecified = false; + } + + private bool ShouldSerializeguilddargon() + { + return this.guilddargonSpecified; + } + + private void Resetguilddargon() + { + this.guilddargonSpecified = false; + } + + private bool ShouldSerializereswar() + { + return this.reswarSpecified; + } + + private void Resetreswar() + { + this.reswarSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializemilitary_rank() + { + return this.military_rankSpecified; + } + + private void Resetmilitary_rank() + { + this.military_rankSpecified = false; + } + + private bool ShouldSerializeassitnum() + { + return this.assitnumSpecified; + } + + private void Resetassitnum() + { + this.assitnumSpecified = false; + } + + private bool ShouldSerializebehitdamage() + { + return this.behitdamageSpecified; + } + + private void Resetbehitdamage() + { + this.behitdamageSpecified = false; + } + + private bool ShouldSerializemultikillcountmax() + { + return this.multikillcountmaxSpecified; + } + + private void Resetmultikillcountmax() + { + this.multikillcountmaxSpecified = false; + } + + private bool ShouldSerializeisboxexcept() + { + return this.isboxexceptSpecified; + } + + private void Resetisboxexcept() + { + this.isboxexceptSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageRoleResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageRoleResult.cs.meta new file mode 100644 index 00000000..05222e6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageRoleResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9573f5511d9021b45bb52ba3daa84bb6 +timeCreated: 1611404182 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageTrophy.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageTrophy.cs new file mode 100644 index 00000000..ef6bbdd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageTrophy.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageTrophy")] + [Serializable] + public class StageTrophy : IExtensible + { + [ProtoMember(1, Name = "trophydata", DataFormat = DataFormat.Default)] + public List trophydata + { + get + { + return this._trophydata; + } + } + + [ProtoMember(2, IsRequired = false, Name = "total_score", DataFormat = DataFormat.TwosComplement)] + public ulong total_score + { + get + { + return this._total_score ?? 0UL; + } + set + { + this._total_score = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool total_scoreSpecified + { + get + { + return this._total_score != null; + } + set + { + bool flag = value == (this._total_score == null); + if (flag) + { + this._total_score = (value ? new ulong?(this.total_score) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "honour_rank", DataFormat = DataFormat.TwosComplement)] + public uint honour_rank + { + get + { + return this._honour_rank ?? 0u; + } + set + { + this._honour_rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool honour_rankSpecified + { + get + { + return this._honour_rank != null; + } + set + { + bool flag = value == (this._honour_rank == null); + if (flag) + { + this._honour_rank = (value ? new uint?(this.honour_rank) : null); + } + } + } + + private readonly List _trophydata = new List(); + + private ulong? _total_score; + + private uint? _honour_rank; + + private IExtension extensionObject; + + private bool ShouldSerializetotal_score() + { + return this.total_scoreSpecified; + } + + private void Resettotal_score() + { + this.total_scoreSpecified = false; + } + + private bool ShouldSerializehonour_rank() + { + return this.honour_rankSpecified; + } + + private void Resethonour_rank() + { + this.honour_rankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageTrophy.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageTrophy.cs.meta new file mode 100644 index 00000000..c13225fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageTrophy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 930cc3036da37384c88a89d1d48e34cd +timeCreated: 1611404149 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageTrophyData.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageTrophyData.cs new file mode 100644 index 00000000..bab0912f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageTrophyData.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageTrophyData")] + [Serializable] + public class StageTrophyData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "scene_id", DataFormat = DataFormat.TwosComplement)] + public uint scene_id + { + get + { + return this._scene_id ?? 0u; + } + set + { + this._scene_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scene_idSpecified + { + get + { + return this._scene_id != null; + } + set + { + bool flag = value == (this._scene_id == null); + if (flag) + { + this._scene_id = (value ? new uint?(this.scene_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "pass_count", DataFormat = DataFormat.TwosComplement)] + public uint pass_count + { + get + { + return this._pass_count ?? 0u; + } + set + { + this._pass_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pass_countSpecified + { + get + { + return this._pass_count != null; + } + set + { + bool flag = value == (this._pass_count == null); + if (flag) + { + this._pass_count = (value ? new uint?(this.pass_count) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "quickly_pass_time", DataFormat = DataFormat.TwosComplement)] + public uint quickly_pass_time + { + get + { + return this._quickly_pass_time ?? 0u; + } + set + { + this._quickly_pass_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quickly_pass_timeSpecified + { + get + { + return this._quickly_pass_time != null; + } + set + { + bool flag = value == (this._quickly_pass_time == null); + if (flag) + { + this._quickly_pass_time = (value ? new uint?(this.quickly_pass_time) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "hight_damage", DataFormat = DataFormat.TwosComplement)] + public ulong hight_damage + { + get + { + return this._hight_damage ?? 0UL; + } + set + { + this._hight_damage = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hight_damageSpecified + { + get + { + return this._hight_damage != null; + } + set + { + bool flag = value == (this._hight_damage == null); + if (flag) + { + this._hight_damage = (value ? new ulong?(this.hight_damage) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "hight_treat", DataFormat = DataFormat.TwosComplement)] + public ulong hight_treat + { + get + { + return this._hight_treat ?? 0UL; + } + set + { + this._hight_treat = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hight_treatSpecified + { + get + { + return this._hight_treat != null; + } + set + { + bool flag = value == (this._hight_treat == null); + if (flag) + { + this._hight_treat = (value ? new ulong?(this.hight_treat) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "help_count", DataFormat = DataFormat.TwosComplement)] + public uint help_count + { + get + { + return this._help_count ?? 0u; + } + set + { + this._help_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool help_countSpecified + { + get + { + return this._help_count != null; + } + set + { + bool flag = value == (this._help_count == null); + if (flag) + { + this._help_count = (value ? new uint?(this.help_count) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "no_deathpass_count", DataFormat = DataFormat.TwosComplement)] + public uint no_deathpass_count + { + get + { + return this._no_deathpass_count ?? 0u; + } + set + { + this._no_deathpass_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool no_deathpass_countSpecified + { + get + { + return this._no_deathpass_count != null; + } + set + { + bool flag = value == (this._no_deathpass_count == null); + if (flag) + { + this._no_deathpass_count = (value ? new uint?(this.no_deathpass_count) : null); + } + } + } + + [ProtoMember(8, Name = "get_trophy_detail", DataFormat = DataFormat.Default)] + public List get_trophy_detail + { + get + { + return this._get_trophy_detail; + } + } + + private uint? _scene_id; + + private uint? _pass_count; + + private uint? _quickly_pass_time; + + private ulong? _hight_damage; + + private ulong? _hight_treat; + + private uint? _help_count; + + private uint? _no_deathpass_count; + + private readonly List _get_trophy_detail = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializescene_id() + { + return this.scene_idSpecified; + } + + private void Resetscene_id() + { + this.scene_idSpecified = false; + } + + private bool ShouldSerializepass_count() + { + return this.pass_countSpecified; + } + + private void Resetpass_count() + { + this.pass_countSpecified = false; + } + + private bool ShouldSerializequickly_pass_time() + { + return this.quickly_pass_timeSpecified; + } + + private void Resetquickly_pass_time() + { + this.quickly_pass_timeSpecified = false; + } + + private bool ShouldSerializehight_damage() + { + return this.hight_damageSpecified; + } + + private void Resethight_damage() + { + this.hight_damageSpecified = false; + } + + private bool ShouldSerializehight_treat() + { + return this.hight_treatSpecified; + } + + private void Resethight_treat() + { + this.hight_treatSpecified = false; + } + + private bool ShouldSerializehelp_count() + { + return this.help_countSpecified; + } + + private void Resethelp_count() + { + this.help_countSpecified = false; + } + + private bool ShouldSerializeno_deathpass_count() + { + return this.no_deathpass_countSpecified; + } + + private void Resetno_deathpass_count() + { + this.no_deathpass_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageTrophyData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageTrophyData.cs.meta new file mode 100644 index 00000000..ebc9c2ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageTrophyData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f7c89217ae0291439daf960f81650b5 +timeCreated: 1611403909 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageWatchInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StageWatchInfo.cs new file mode 100644 index 00000000..3f900873 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageWatchInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StageWatchInfo")] + [Serializable] + public class StageWatchInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "wathccount", DataFormat = DataFormat.TwosComplement)] + public uint wathccount + { + get + { + return this._wathccount ?? 0u; + } + set + { + this._wathccount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wathccountSpecified + { + get + { + return this._wathccount != null; + } + set + { + bool flag = value == (this._wathccount == null); + if (flag) + { + this._wathccount = (value ? new uint?(this.wathccount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "likecount", DataFormat = DataFormat.TwosComplement)] + public uint likecount + { + get + { + return this._likecount ?? 0u; + } + set + { + this._likecount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool likecountSpecified + { + get + { + return this._likecount != null; + } + set + { + bool flag = value == (this._likecount == null); + if (flag) + { + this._likecount = (value ? new uint?(this.likecount) : null); + } + } + } + + private uint? _wathccount; + + private uint? _likecount; + + private IExtension extensionObject; + + private bool ShouldSerializewathccount() + { + return this.wathccountSpecified; + } + + private void Resetwathccount() + { + this.wathccountSpecified = false; + } + + private bool ShouldSerializelikecount() + { + return this.likecountSpecified; + } + + private void Resetlikecount() + { + this.likecountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StageWatchInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StageWatchInfo.cs.meta new file mode 100644 index 00000000..a1dc7a9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StageWatchInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1b0a13a82eb2514ebbb6d38351197f9 +timeCreated: 1611404839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartBattleFailedRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartBattleFailedRes.cs new file mode 100644 index 00000000..6a89bf01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartBattleFailedRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartBattleFailedRes")] + [Serializable] + public class StartBattleFailedRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "proUserID", DataFormat = DataFormat.TwosComplement)] + public ulong proUserID + { + get + { + return this._proUserID ?? 0UL; + } + set + { + this._proUserID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool proUserIDSpecified + { + get + { + return this._proUserID != null; + } + set + { + bool flag = value == (this._proUserID == null); + if (flag) + { + this._proUserID = (value ? new ulong?(this.proUserID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "reason", DataFormat = DataFormat.TwosComplement)] + public ErrorCode reason + { + get + { + return this._reason ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._reason = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? new ErrorCode?(this.reason) : null); + } + } + } + + private ulong? _proUserID; + + private ErrorCode? _reason; + + private IExtension extensionObject; + + private bool ShouldSerializeproUserID() + { + return this.proUserIDSpecified; + } + + private void ResetproUserID() + { + this.proUserIDSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartBattleFailedRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartBattleFailedRes.cs.meta new file mode 100644 index 00000000..db02530f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartBattleFailedRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eda1d04be4e77634cb2fd34adf457818 +timeCreated: 1611404792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardArg.cs new file mode 100644 index 00000000..5e8c9838 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartGuildCardArg")] + [Serializable] + public class StartGuildCardArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardArg.cs.meta new file mode 100644 index 00000000..80339570 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 703f1fedac461204fb0eaa505b6258eb +timeCreated: 1611403931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardRes.cs new file mode 100644 index 00000000..74fb8f58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartGuildCardRes")] + [Serializable] + public class StartGuildCardRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, Name = "card", DataFormat = DataFormat.TwosComplement)] + public List card + { + get + { + return this._card; + } + } + + [ProtoMember(3, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public uint result + { + get + { + return this._result ?? 0u; + } + set + { + this._result = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new uint?(this.result) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "store", DataFormat = DataFormat.TwosComplement)] + public uint store + { + get + { + return this._store ?? 0u; + } + set + { + this._store = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool storeSpecified + { + get + { + return this._store != null; + } + set + { + bool flag = value == (this._store == null); + if (flag) + { + this._store = (value ? new uint?(this.store) : null); + } + } + } + + private ErrorCode? _errorcode; + + private readonly List _card = new List(); + + private uint? _result; + + private uint? _store; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializestore() + { + return this.storeSpecified; + } + + private void Resetstore() + { + this.storeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardRes.cs.meta new file mode 100644 index 00000000..1285fafe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartGuildCardRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b77c02f09575924b99323559ebb17ca +timeCreated: 1611403687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartPlantArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartPlantArg.cs new file mode 100644 index 00000000..b07807f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartPlantArg.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartPlantArg")] + [Serializable] + public class StartPlantArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "farmland_id", DataFormat = DataFormat.TwosComplement)] + public uint farmland_id + { + get + { + return this._farmland_id ?? 0u; + } + set + { + this._farmland_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool farmland_idSpecified + { + get + { + return this._farmland_id != null; + } + set + { + bool flag = value == (this._farmland_id == null); + if (flag) + { + this._farmland_id = (value ? new uint?(this.farmland_id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "seed_id", DataFormat = DataFormat.TwosComplement)] + public uint seed_id + { + get + { + return this._seed_id ?? 0u; + } + set + { + this._seed_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool seed_idSpecified + { + get + { + return this._seed_id != null; + } + set + { + bool flag = value == (this._seed_id == null); + if (flag) + { + this._seed_id = (value ? new uint?(this.seed_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public GardenQuestType quest_type + { + get + { + return this._quest_type ?? GardenQuestType.MYSELF; + } + set + { + this._quest_type = new GardenQuestType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new GardenQuestType?(this.quest_type) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "cancel", DataFormat = DataFormat.Default)] + public bool cancel + { + get + { + return this._cancel ?? false; + } + set + { + this._cancel = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cancelSpecified + { + get + { + return this._cancel != null; + } + set + { + bool flag = value == (this._cancel == null); + if (flag) + { + this._cancel = (value ? new bool?(this.cancel) : null); + } + } + } + + private uint? _farmland_id; + + private uint? _seed_id; + + private GardenQuestType? _quest_type; + + private ulong? _garden_id; + + private bool? _cancel; + + private IExtension extensionObject; + + private bool ShouldSerializefarmland_id() + { + return this.farmland_idSpecified; + } + + private void Resetfarmland_id() + { + this.farmland_idSpecified = false; + } + + private bool ShouldSerializeseed_id() + { + return this.seed_idSpecified; + } + + private void Resetseed_id() + { + this.seed_idSpecified = false; + } + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializecancel() + { + return this.cancelSpecified; + } + + private void Resetcancel() + { + this.cancelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartPlantArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartPlantArg.cs.meta new file mode 100644 index 00000000..691e5989 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartPlantArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe07461423c6a0d4aa1589f38b19b5ec +timeCreated: 1611404939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartPlantRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartPlantRes.cs new file mode 100644 index 00000000..04372352 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartPlantRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartPlantRes")] + [Serializable] + public class StartPlantRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "grow_state", DataFormat = DataFormat.TwosComplement)] + public PlantGrowState grow_state + { + get + { + return this._grow_state ?? PlantGrowState.growDrought; + } + set + { + this._grow_state = new PlantGrowState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool grow_stateSpecified + { + get + { + return this._grow_state != null; + } + set + { + bool flag = value == (this._grow_state == null); + if (flag) + { + this._grow_state = (value ? new PlantGrowState?(this.grow_state) : null); + } + } + } + + private ErrorCode? _result; + + private PlantGrowState? _grow_state; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializegrow_state() + { + return this.grow_stateSpecified; + } + + private void Resetgrow_state() + { + this.grow_stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartPlantRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartPlantRes.cs.meta new file mode 100644 index 00000000..4120a284 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartPlantRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 878d65eef4a51b54290871daddb12c02 +timeCreated: 1611404079 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartRollNtfData.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartRollNtfData.cs new file mode 100644 index 00000000..8365f99a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartRollNtfData.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartRollNtfData")] + [Serializable] + public class StartRollNtfData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public EnemyDoodadInfo info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private EnemyDoodadInfo _info = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartRollNtfData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartRollNtfData.cs.meta new file mode 100644 index 00000000..f598531c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartRollNtfData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f18575a394aad84a8b1f94c6fed4308 +timeCreated: 1611403400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartUpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartUpType.cs new file mode 100644 index 00000000..27725d06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartUpType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartUpType")] + public enum StartUpType + { + [ProtoEnum(Name = "StartUp_Normal", Value = 1)] + StartUp_Normal = 1, + [ProtoEnum(Name = "StartUp_QQ", Value = 2)] + StartUp_QQ, + [ProtoEnum(Name = "StartUp_WX", Value = 3)] + StartUp_WX + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartUpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartUpType.cs.meta new file mode 100644 index 00000000..7565bd75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartUpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c83aa53913f60344f8b9231bcb5a5703 +timeCreated: 1611404533 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarArg.cs new file mode 100644 index 00000000..1837fa0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartWeddingCarArg")] + [Serializable] + public class StartWeddingCarArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarArg.cs.meta new file mode 100644 index 00000000..92248cc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08507442492abd84b9cda1bf71d51f32 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarRes.cs new file mode 100644 index 00000000..b9f70e34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StartWeddingCarRes")] + [Serializable] + public class StartWeddingCarRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarRes.cs.meta new file mode 100644 index 00000000..65742510 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StartWeddingCarRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f746b324b8223f4c967465ee35d6a19 +timeCreated: 1611404030 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs new file mode 100644 index 00000000..fe39c2f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StcAchieveInfo")] + [Serializable] + public class StcAchieveInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "achieveID", DataFormat = DataFormat.TwosComplement)] + public uint achieveID + { + get + { + return this._achieveID ?? 0u; + } + set + { + this._achieveID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool achieveIDSpecified + { + get + { + return this._achieveID != null; + } + set + { + bool flag = value == (this._achieveID == null); + if (flag) + { + this._achieveID = (value ? new uint?(this.achieveID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rewardStatus", DataFormat = DataFormat.TwosComplement)] + public uint rewardStatus + { + get + { + return this._rewardStatus ?? 0u; + } + set + { + this._rewardStatus = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardStatusSpecified + { + get + { + return this._rewardStatus != null; + } + set + { + bool flag = value == (this._rewardStatus == null); + if (flag) + { + this._rewardStatus = (value ? new uint?(this.rewardStatus) : null); + } + } + } + + private uint? _achieveID; + + private uint? _rewardStatus; + + private IExtension extensionObject; + + private bool ShouldSerializeachieveID() + { + return this.achieveIDSpecified; + } + + private void ResetachieveID() + { + this.achieveIDSpecified = false; + } + + private bool ShouldSerializerewardStatus() + { + return this.rewardStatusSpecified; + } + + private void ResetrewardStatus() + { + this.rewardStatusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs.meta new file mode 100644 index 00000000..06330d5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StcAchieveInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8bf1f063ecff2c9458542fbe675dd788 +timeCreated: 1611404097 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs new file mode 100644 index 00000000..a08d47ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StcDesignationInfo")] + [Serializable] + public class StcDesignationInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "designationID", DataFormat = DataFormat.TwosComplement)] + public uint designationID + { + get + { + return this._designationID ?? 0u; + } + set + { + this._designationID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool designationIDSpecified + { + get + { + return this._designationID != null; + } + set + { + bool flag = value == (this._designationID == null); + if (flag) + { + this._designationID = (value ? new uint?(this.designationID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "isNew", DataFormat = DataFormat.Default)] + public bool isNew + { + get + { + return this._isNew ?? false; + } + set + { + this._isNew = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isNewSpecified + { + get + { + return this._isNew != null; + } + set + { + bool flag = value == (this._isNew == null); + if (flag) + { + this._isNew = (value ? new bool?(this.isNew) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "reachTimestamp", DataFormat = DataFormat.TwosComplement)] + public uint reachTimestamp + { + get + { + return this._reachTimestamp ?? 0u; + } + set + { + this._reachTimestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reachTimestampSpecified + { + get + { + return this._reachTimestamp != null; + } + set + { + bool flag = value == (this._reachTimestamp == null); + if (flag) + { + this._reachTimestamp = (value ? new uint?(this.reachTimestamp) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private uint? _designationID; + + private bool? _isNew; + + private uint? _reachTimestamp; + + private string _name; + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializedesignationID() + { + return this.designationIDSpecified; + } + + private void ResetdesignationID() + { + this.designationIDSpecified = false; + } + + private bool ShouldSerializeisNew() + { + return this.isNewSpecified; + } + + private void ResetisNew() + { + this.isNewSpecified = false; + } + + private bool ShouldSerializereachTimestamp() + { + return this.reachTimestampSpecified; + } + + private void ResetreachTimestamp() + { + this.reachTimestampSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs.meta new file mode 100644 index 00000000..4d213c25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StcDesignationInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad7eaf9e6ad1ee0468744e5921cc41a7 +timeCreated: 1611404335 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StepMoveData.cs b/Client/Assets/Scripts/XMainClient/KKSG/StepMoveData.cs new file mode 100644 index 00000000..97947108 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StepMoveData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StepMoveData")] + [Serializable] + public class StepMoveData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "EntityID", DataFormat = DataFormat.TwosComplement)] + public ulong EntityID + { + get + { + return this._EntityID ?? 0UL; + } + set + { + this._EntityID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EntityIDSpecified + { + get + { + return this._EntityID != null; + } + set + { + bool flag = value == (this._EntityID == null); + if (flag) + { + this._EntityID = (value ? new ulong?(this.EntityID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "PosXZ", DataFormat = DataFormat.TwosComplement)] + public int PosXZ + { + get + { + return this._PosXZ ?? 0; + } + set + { + this._PosXZ = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PosXZSpecified + { + get + { + return this._PosXZ != null; + } + set + { + bool flag = value == (this._PosXZ == null); + if (flag) + { + this._PosXZ = (value ? new int?(this.PosXZ) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "Stoppage", DataFormat = DataFormat.Default)] + public bool Stoppage + { + get + { + return this._Stoppage ?? false; + } + set + { + this._Stoppage = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool StoppageSpecified + { + get + { + return this._Stoppage != null; + } + set + { + bool flag = value == (this._Stoppage == null); + if (flag) + { + this._Stoppage = (value ? new bool?(this.Stoppage) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "Face", DataFormat = DataFormat.TwosComplement)] + public int Face + { + get + { + return this._Face ?? 0; + } + set + { + this._Face = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FaceSpecified + { + get + { + return this._Face != null; + } + set + { + bool flag = value == (this._Face == null); + if (flag) + { + this._Face = (value ? new int?(this.Face) : null); + } + } + } + + private ulong? _EntityID; + + private int? _PosXZ; + + private bool? _Stoppage; + + private int? _Face; + + private IExtension extensionObject; + + private bool ShouldSerializeEntityID() + { + return this.EntityIDSpecified; + } + + private void ResetEntityID() + { + this.EntityIDSpecified = false; + } + + private bool ShouldSerializePosXZ() + { + return this.PosXZSpecified; + } + + private void ResetPosXZ() + { + this.PosXZSpecified = false; + } + + private bool ShouldSerializeStoppage() + { + return this.StoppageSpecified; + } + + private void ResetStoppage() + { + this.StoppageSpecified = false; + } + + private bool ShouldSerializeFace() + { + return this.FaceSpecified; + } + + private void ResetFace() + { + this.FaceSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StepMoveData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StepMoveData.cs.meta new file mode 100644 index 00000000..1c60a6b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StepMoveData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e2ea614bd87dcd4598ec1660b5969f6 +timeCreated: 1611403201 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StepSyncData.cs b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncData.cs new file mode 100644 index 00000000..f8305b8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncData.cs @@ -0,0 +1,578 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StepSyncData")] + [Serializable] + public class StepSyncData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "PosXZ", DataFormat = DataFormat.TwosComplement)] + public int PosXZ + { + get + { + return this._PosXZ ?? 0; + } + set + { + this._PosXZ = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PosXZSpecified + { + get + { + return this._PosXZ != null; + } + set + { + bool flag = value == (this._PosXZ == null); + if (flag) + { + this._PosXZ = (value ? new int?(this.PosXZ) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "EntityID", DataFormat = DataFormat.TwosComplement)] + public ulong EntityID + { + get + { + return this._EntityID ?? 0UL; + } + set + { + this._EntityID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool EntityIDSpecified + { + get + { + return this._EntityID != null; + } + set + { + bool flag = value == (this._EntityID == null); + if (flag) + { + this._EntityID = (value ? new ulong?(this.EntityID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "Skillid", DataFormat = DataFormat.TwosComplement)] + public int Skillid + { + get + { + return this._Skillid ?? 0; + } + set + { + this._Skillid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillidSpecified + { + get + { + return this._Skillid != null; + } + set + { + bool flag = value == (this._Skillid == null); + if (flag) + { + this._Skillid = (value ? new int?(this.Skillid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "HitIdx", DataFormat = DataFormat.TwosComplement)] + public int HitIdx + { + get + { + return this._HitIdx ?? 0; + } + set + { + this._HitIdx = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool HitIdxSpecified + { + get + { + return this._HitIdx != null; + } + set + { + bool flag = value == (this._HitIdx == null); + if (flag) + { + this._HitIdx = (value ? new int?(this.HitIdx) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "OpposerID", DataFormat = DataFormat.TwosComplement)] + public ulong OpposerID + { + get + { + return this._OpposerID ?? 0UL; + } + set + { + this._OpposerID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OpposerIDSpecified + { + get + { + return this._OpposerID != null; + } + set + { + bool flag = value == (this._OpposerID == null); + if (flag) + { + this._OpposerID = (value ? new ulong?(this.OpposerID) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "HitForceToFly", DataFormat = DataFormat.Default)] + public bool HitForceToFly + { + get + { + return this._HitForceToFly ?? false; + } + set + { + this._HitForceToFly = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool HitForceToFlySpecified + { + get + { + return this._HitForceToFly != null; + } + set + { + bool flag = value == (this._HitForceToFly == null); + if (flag) + { + this._HitForceToFly = (value ? new bool?(this.HitForceToFly) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "HitParalyzeFactor", DataFormat = DataFormat.TwosComplement)] + public int HitParalyzeFactor + { + get + { + return this._HitParalyzeFactor ?? 0; + } + set + { + this._HitParalyzeFactor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool HitParalyzeFactorSpecified + { + get + { + return this._HitParalyzeFactor != null; + } + set + { + bool flag = value == (this._HitParalyzeFactor == null); + if (flag) + { + this._HitParalyzeFactor = (value ? new int?(this.HitParalyzeFactor) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "PresentInFreezed", DataFormat = DataFormat.Default)] + public bool PresentInFreezed + { + get + { + return this._PresentInFreezed ?? false; + } + set + { + this._PresentInFreezed = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PresentInFreezedSpecified + { + get + { + return this._PresentInFreezed != null; + } + set + { + bool flag = value == (this._PresentInFreezed == null); + if (flag) + { + this._PresentInFreezed = (value ? new bool?(this.PresentInFreezed) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "FreezedFromHit", DataFormat = DataFormat.Default)] + public bool FreezedFromHit + { + get + { + return this._FreezedFromHit ?? false; + } + set + { + this._FreezedFromHit = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool FreezedFromHitSpecified + { + get + { + return this._FreezedFromHit != null; + } + set + { + bool flag = value == (this._FreezedFromHit == null); + if (flag) + { + this._FreezedFromHit = (value ? new bool?(this.FreezedFromHit) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "Passive", DataFormat = DataFormat.Default)] + public bool Passive + { + get + { + return this._Passive ?? false; + } + set + { + this._Passive = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PassiveSpecified + { + get + { + return this._Passive != null; + } + set + { + bool flag = value == (this._Passive == null); + if (flag) + { + this._Passive = (value ? new bool?(this.Passive) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "Common", DataFormat = DataFormat.TwosComplement)] + public int Common + { + get + { + return this._Common ?? 0; + } + set + { + this._Common = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool CommonSpecified + { + get + { + return this._Common != null; + } + set + { + bool flag = value == (this._Common == null); + if (flag) + { + this._Common = (value ? new int?(this.Common) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "Velocity", DataFormat = DataFormat.TwosComplement)] + public int Velocity + { + get + { + return this._Velocity ?? 0; + } + set + { + this._Velocity = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool VelocitySpecified + { + get + { + return this._Velocity != null; + } + set + { + bool flag = value == (this._Velocity == null); + if (flag) + { + this._Velocity = (value ? new int?(this.Velocity) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "SkillCommon", DataFormat = DataFormat.TwosComplement)] + public int SkillCommon + { + get + { + return this._SkillCommon ?? 0; + } + set + { + this._SkillCommon = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool SkillCommonSpecified + { + get + { + return this._SkillCommon != null; + } + set + { + bool flag = value == (this._SkillCommon == null); + if (flag) + { + this._SkillCommon = (value ? new int?(this.SkillCommon) : null); + } + } + } + + private int? _PosXZ; + + private ulong? _EntityID; + + private int? _Skillid; + + private int? _HitIdx; + + private ulong? _OpposerID; + + private bool? _HitForceToFly; + + private int? _HitParalyzeFactor; + + private bool? _PresentInFreezed; + + private bool? _FreezedFromHit; + + private bool? _Passive; + + private int? _Common; + + private int? _Velocity; + + private int? _SkillCommon; + + private IExtension extensionObject; + + private bool ShouldSerializePosXZ() + { + return this.PosXZSpecified; + } + + private void ResetPosXZ() + { + this.PosXZSpecified = false; + } + + private bool ShouldSerializeEntityID() + { + return this.EntityIDSpecified; + } + + private void ResetEntityID() + { + this.EntityIDSpecified = false; + } + + private bool ShouldSerializeSkillid() + { + return this.SkillidSpecified; + } + + private void ResetSkillid() + { + this.SkillidSpecified = false; + } + + private bool ShouldSerializeHitIdx() + { + return this.HitIdxSpecified; + } + + private void ResetHitIdx() + { + this.HitIdxSpecified = false; + } + + private bool ShouldSerializeOpposerID() + { + return this.OpposerIDSpecified; + } + + private void ResetOpposerID() + { + this.OpposerIDSpecified = false; + } + + private bool ShouldSerializeHitForceToFly() + { + return this.HitForceToFlySpecified; + } + + private void ResetHitForceToFly() + { + this.HitForceToFlySpecified = false; + } + + private bool ShouldSerializeHitParalyzeFactor() + { + return this.HitParalyzeFactorSpecified; + } + + private void ResetHitParalyzeFactor() + { + this.HitParalyzeFactorSpecified = false; + } + + private bool ShouldSerializePresentInFreezed() + { + return this.PresentInFreezedSpecified; + } + + private void ResetPresentInFreezed() + { + this.PresentInFreezedSpecified = false; + } + + private bool ShouldSerializeFreezedFromHit() + { + return this.FreezedFromHitSpecified; + } + + private void ResetFreezedFromHit() + { + this.FreezedFromHitSpecified = false; + } + + private bool ShouldSerializePassive() + { + return this.PassiveSpecified; + } + + private void ResetPassive() + { + this.PassiveSpecified = false; + } + + private bool ShouldSerializeCommon() + { + return this.CommonSpecified; + } + + private void ResetCommon() + { + this.CommonSpecified = false; + } + + private bool ShouldSerializeVelocity() + { + return this.VelocitySpecified; + } + + private void ResetVelocity() + { + this.VelocitySpecified = false; + } + + private bool ShouldSerializeSkillCommon() + { + return this.SkillCommonSpecified; + } + + private void ResetSkillCommon() + { + this.SkillCommonSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StepSyncData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncData.cs.meta new file mode 100644 index 00000000..09a0a0b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e3e137f1fb9601498782ff8ebbe0dd3 +timeCreated: 1611404004 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs new file mode 100644 index 00000000..65ebbe0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StepSyncInfo")] + [Serializable] + public class StepSyncInfo : IExtensible + { + [ProtoMember(1, Name = "DataList", DataFormat = DataFormat.Default)] + public List DataList + { + get + { + return this._DataList; + } + } + + [ProtoMember(2, IsRequired = false, Name = "StepFrame", DataFormat = DataFormat.TwosComplement)] + public uint StepFrame + { + get + { + return this._StepFrame ?? 0u; + } + set + { + this._StepFrame = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool StepFrameSpecified + { + get + { + return this._StepFrame != null; + } + set + { + bool flag = value == (this._StepFrame == null); + if (flag) + { + this._StepFrame = (value ? new uint?(this.StepFrame) : null); + } + } + } + + private readonly List _DataList = new List(); + + private uint? _StepFrame; + + private IExtension extensionObject; + + private bool ShouldSerializeStepFrame() + { + return this.StepFrameSpecified; + } + + private void ResetStepFrame() + { + this.StepFrameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs.meta new file mode 100644 index 00000000..8bfaa514 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StepSyncInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5834beb455de6bb49847f31b5a2d40a8 +timeCreated: 1611403754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StopMatchReason.cs b/Client/Assets/Scripts/XMainClient/KKSG/StopMatchReason.cs new file mode 100644 index 00000000..95fdc824 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StopMatchReason.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StopMatchReason")] + public enum StopMatchReason + { + [ProtoEnum(Name = "STOPMATCH_NONE", Value = 1)] + STOPMATCH_NONE = 1, + [ProtoEnum(Name = "STOPMATCH_LEAVESCENE", Value = 2)] + STOPMATCH_LEAVESCENE, + [ProtoEnum(Name = "STOPMATCH_ENTER_TIANTI", Value = 3)] + STOPMATCH_ENTER_TIANTI, + [ProtoEnum(Name = "STOPMATCH_ENTER_BOWEIDUIZ", Value = 4)] + STOPMATCH_ENTER_BOWEIDUIZ + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StopMatchReason.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StopMatchReason.cs.meta new file mode 100644 index 00000000..8232a82e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StopMatchReason.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a180cc1a6dea352488930ad11864a0ff +timeCreated: 1611404253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs new file mode 100644 index 00000000..68397d25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StudyGuildSkillArg")] + [Serializable] + public class StudyGuildSkillArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "skillId", DataFormat = DataFormat.TwosComplement)] + public uint skillId + { + get + { + return this._skillId ?? 0u; + } + set + { + this._skillId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillIdSpecified + { + get + { + return this._skillId != null; + } + set + { + bool flag = value == (this._skillId == null); + if (flag) + { + this._skillId = (value ? new uint?(this.skillId) : null); + } + } + } + + private uint? _skillId; + + private IExtension extensionObject; + + private bool ShouldSerializeskillId() + { + return this.skillIdSpecified; + } + + private void ResetskillId() + { + this.skillIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs.meta new file mode 100644 index 00000000..b4c1ee71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00dbd88e4c9984f45828a8a4de57b2ad +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs new file mode 100644 index 00000000..f8f6b98d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "StudyGuildSkillRes")] + [Serializable] + public class StudyGuildSkillRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "skillId", DataFormat = DataFormat.TwosComplement)] + public uint skillId + { + get + { + return this._skillId ?? 0u; + } + set + { + this._skillId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillIdSpecified + { + get + { + return this._skillId != null; + } + set + { + bool flag = value == (this._skillId == null); + if (flag) + { + this._skillId = (value ? new uint?(this.skillId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "skillLel", DataFormat = DataFormat.TwosComplement)] + public uint skillLel + { + get + { + return this._skillLel ?? 0u; + } + set + { + this._skillLel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillLelSpecified + { + get + { + return this._skillLel != null; + } + set + { + bool flag = value == (this._skillLel == null); + if (flag) + { + this._skillLel = (value ? new uint?(this.skillLel) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastExp", DataFormat = DataFormat.TwosComplement)] + public uint lastExp + { + get + { + return this._lastExp ?? 0u; + } + set + { + this._lastExp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastExpSpecified + { + get + { + return this._lastExp != null; + } + set + { + bool flag = value == (this._lastExp == null); + if (flag) + { + this._lastExp = (value ? new uint?(this.lastExp) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _skillId; + + private uint? _skillLel; + + private uint? _lastExp; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializeskillId() + { + return this.skillIdSpecified; + } + + private void ResetskillId() + { + this.skillIdSpecified = false; + } + + private bool ShouldSerializeskillLel() + { + return this.skillLelSpecified; + } + + private void ResetskillLel() + { + this.skillLelSpecified = false; + } + + private bool ShouldSerializelastExp() + { + return this.lastExpSpecified; + } + + private void ResetlastExp() + { + this.lastExpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs.meta new file mode 100644 index 00000000..2a43eacc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/StudyGuildSkillRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87eb10fd8ebfab949a42f44aa8a0adc9 +timeCreated: 1611404081 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SubScribe.cs b/Client/Assets/Scripts/XMainClient/KKSG/SubScribe.cs new file mode 100644 index 00000000..259a9be6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SubScribe.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SubScribe")] + [Serializable] + public class SubScribe : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "title", DataFormat = DataFormat.Default)] + public string title + { + get + { + return this._title ?? ""; + } + set + { + this._title = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? this.title : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "status", DataFormat = DataFormat.Default)] + public bool status + { + get + { + return this._status ?? false; + } + set + { + this._status = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statusSpecified + { + get + { + return this._status != null; + } + set + { + bool flag = value == (this._status == null); + if (flag) + { + this._status = (value ? new bool?(this.status) : null); + } + } + } + + private uint? _id; + + private string _title; + + private bool? _status; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + private bool ShouldSerializestatus() + { + return this.statusSpecified; + } + + private void Resetstatus() + { + this.statusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SubScribe.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SubScribe.cs.meta new file mode 100644 index 00000000..e40bd7b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SubScribe.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e25de00154d03764cba11857d228e61e +timeCreated: 1611404705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightEndType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightEndType.cs new file mode 100644 index 00000000..649809e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightEndType.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SurviveFightEndType")] + public enum SurviveFightEndType + { + [ProtoEnum(Name = "SURVIVE_LOAD_TIMEOUT", Value = 1)] + SURVIVE_LOAD_TIMEOUT = 1, + [ProtoEnum(Name = "SURVIVE_DIE", Value = 2)] + SURVIVE_DIE, + [ProtoEnum(Name = "SURVIVE_QUIT", Value = 3)] + SURVIVE_QUIT, + [ProtoEnum(Name = "SURVIVE_WIN", Value = 4)] + SURVIVE_WIN + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightEndType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightEndType.cs.meta new file mode 100644 index 00000000..1db5748e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightEndType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fb767cdca045414393214db05f68183 +timeCreated: 1611403212 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightStage.cs b/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightStage.cs new file mode 100644 index 00000000..c3e3baf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightStage.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SurviveFightStage")] + public enum SurviveFightStage + { + [ProtoEnum(Name = "SURVIVE_STAGE_READY", Value = 1)] + SURVIVE_STAGE_READY = 1, + [ProtoEnum(Name = "SURVIVE_STAGE_FIGHT", Value = 2)] + SURVIVE_STAGE_FIGHT + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightStage.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightStage.cs.meta new file mode 100644 index 00000000..4abd633e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveFightStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31ad4ab01ebd56b4e81cec704d0070c1 +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveRankData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRankData.cs new file mode 100644 index 00000000..c49f7dfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRankData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SurviveRankData")] + [Serializable] + public class SurviveRankData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + private ulong? _roleid; + + private string _rolename; + + private uint? _serverid; + + private uint? _point; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveRankData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRankData.cs.meta new file mode 100644 index 00000000..c1e96303 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 377dd02090517f648a5f236b9e34d004 +timeCreated: 1611403565 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs new file mode 100644 index 00000000..76ba7633 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SurviveRecord")] + [Serializable] + public class SurviveRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastweekuptime", DataFormat = DataFormat.TwosComplement)] + public uint lastweekuptime + { + get + { + return this._lastweekuptime ?? 0u; + } + set + { + this._lastweekuptime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastweekuptimeSpecified + { + get + { + return this._lastweekuptime != null; + } + set + { + bool flag = value == (this._lastweekuptime == null); + if (flag) + { + this._lastweekuptime = (value ? new uint?(this.lastweekuptime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "topcount", DataFormat = DataFormat.TwosComplement)] + public uint topcount + { + get + { + return this._topcount ?? 0u; + } + set + { + this._topcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool topcountSpecified + { + get + { + return this._topcount != null; + } + set + { + bool flag = value == (this._topcount == null); + if (flag) + { + this._topcount = (value ? new uint?(this.topcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "givereward", DataFormat = DataFormat.Default)] + public bool givereward + { + get + { + return this._givereward ?? false; + } + set + { + this._givereward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool giverewardSpecified + { + get + { + return this._givereward != null; + } + set + { + bool flag = value == (this._givereward == null); + if (flag) + { + this._givereward = (value ? new bool?(this.givereward) : null); + } + } + } + + private uint? _lastweekuptime; + + private uint? _point; + + private uint? _topcount; + + private bool? _givereward; + + private IExtension extensionObject; + + private bool ShouldSerializelastweekuptime() + { + return this.lastweekuptimeSpecified; + } + + private void Resetlastweekuptime() + { + this.lastweekuptimeSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + private bool ShouldSerializetopcount() + { + return this.topcountSpecified; + } + + private void Resettopcount() + { + this.topcountSpecified = false; + } + + private bool ShouldSerializegivereward() + { + return this.giverewardSpecified; + } + + private void Resetgivereward() + { + this.giverewardSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs.meta new file mode 100644 index 00000000..9765ceb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19edf6112ff02b44aa7e3383343368f4 +timeCreated: 1611403306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqArg.cs new file mode 100644 index 00000000..1acbcef2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SurviveReqArg")] + [Serializable] + public class SurviveReqArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqArg.cs.meta new file mode 100644 index 00000000..cc49a2c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 760d0e998f739b640b270a4747147f8c +timeCreated: 1611403948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqRes.cs new file mode 100644 index 00000000..d7f61374 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqRes.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SurviveReqRes")] + [Serializable] + public class SurviveReqRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "givereward", DataFormat = DataFormat.Default)] + public bool givereward + { + get + { + return this._givereward ?? false; + } + set + { + this._givereward = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool giverewardSpecified + { + get + { + return this._givereward != null; + } + set + { + bool flag = value == (this._givereward == null); + if (flag) + { + this._givereward = (value ? new bool?(this.givereward) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "curtopcount", DataFormat = DataFormat.TwosComplement)] + public uint curtopcount + { + get + { + return this._curtopcount ?? 0u; + } + set + { + this._curtopcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curtopcountSpecified + { + get + { + return this._curtopcount != null; + } + set + { + bool flag = value == (this._curtopcount == null); + if (flag) + { + this._curtopcount = (value ? new uint?(this.curtopcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "needtopcount", DataFormat = DataFormat.TwosComplement)] + public uint needtopcount + { + get + { + return this._needtopcount ?? 0u; + } + set + { + this._needtopcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool needtopcountSpecified + { + get + { + return this._needtopcount != null; + } + set + { + bool flag = value == (this._needtopcount == null); + if (flag) + { + this._needtopcount = (value ? new uint?(this.needtopcount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "point", DataFormat = DataFormat.TwosComplement)] + public uint point + { + get + { + return this._point ?? 0u; + } + set + { + this._point = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pointSpecified + { + get + { + return this._point != null; + } + set + { + bool flag = value == (this._point == null); + if (flag) + { + this._point = (value ? new uint?(this.point) : null); + } + } + } + + private ErrorCode? _errorcode; + + private bool? _givereward; + + private uint? _curtopcount; + + private uint? _needtopcount; + + private uint? _point; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializegivereward() + { + return this.giverewardSpecified; + } + + private void Resetgivereward() + { + this.giverewardSpecified = false; + } + + private bool ShouldSerializecurtopcount() + { + return this.curtopcountSpecified; + } + + private void Resetcurtopcount() + { + this.curtopcountSpecified = false; + } + + private bool ShouldSerializeneedtopcount() + { + return this.needtopcountSpecified; + } + + private void Resetneedtopcount() + { + this.needtopcountSpecified = false; + } + + private bool ShouldSerializepoint() + { + return this.pointSpecified; + } + + private void Resetpoint() + { + this.pointSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqRes.cs.meta new file mode 100644 index 00000000..59fc12fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SurviveReqRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2573b46b3da23b48bcd93b544466238 +timeCreated: 1611404493 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs new file mode 100644 index 00000000..ebfd484a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SweepArg")] + [Serializable] + public class SweepArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public uint sceneID + { + get + { + return this._sceneID ?? 0u; + } + set + { + this._sceneID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new uint?(this.sceneID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "expid", DataFormat = DataFormat.TwosComplement)] + public uint expid + { + get + { + return this._expid ?? 0u; + } + set + { + this._expid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expidSpecified + { + get + { + return this._expid != null; + } + set + { + bool flag = value == (this._expid == null); + if (flag) + { + this._expid = (value ? new uint?(this.expid) : null); + } + } + } + + private uint? _sceneID; + + private uint? _count; + + private uint? _expid; + + private IExtension extensionObject; + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializeexpid() + { + return this.expidSpecified; + } + + private void Resetexpid() + { + this.expidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs.meta new file mode 100644 index 00000000..fba03cf6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef0aecd34002488439e276bf4b678e08 +timeCreated: 1611404802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs new file mode 100644 index 00000000..38c30b60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SweepRes")] + [Serializable] + public class SweepRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "rewards", DataFormat = DataFormat.Default)] + public List rewards + { + get + { + return this._rewards; + } + } + + [ProtoMember(3, IsRequired = false, Name = "abyssleftcount", DataFormat = DataFormat.TwosComplement)] + public int abyssleftcount + { + get + { + return this._abyssleftcount ?? 0; + } + set + { + this._abyssleftcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool abyssleftcountSpecified + { + get + { + return this._abyssleftcount != null; + } + set + { + bool flag = value == (this._abyssleftcount == null); + if (flag) + { + this._abyssleftcount = (value ? new int?(this.abyssleftcount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isexpseal", DataFormat = DataFormat.Default)] + public bool isexpseal + { + get + { + return this._isexpseal ?? false; + } + set + { + this._isexpseal = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isexpsealSpecified + { + get + { + return this._isexpseal != null; + } + set + { + bool flag = value == (this._isexpseal == null); + if (flag) + { + this._isexpseal = (value ? new bool?(this.isexpseal) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _rewards = new List(); + + private int? _abyssleftcount; + + private bool? _isexpseal; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeabyssleftcount() + { + return this.abyssleftcountSpecified; + } + + private void Resetabyssleftcount() + { + this.abyssleftcountSpecified = false; + } + + private bool ShouldSerializeisexpseal() + { + return this.isexpsealSpecified; + } + + private void Resetisexpseal() + { + this.isexpsealSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs.meta new file mode 100644 index 00000000..4fbd56be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d0c1db9a19dace4994d16249e4fd447 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/SweepResult.cs new file mode 100644 index 00000000..6a514f39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepResult.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SweepResult")] + [Serializable] + public class SweepResult : IExtensible + { + [ProtoMember(1, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private readonly List _items = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SweepResult.cs.meta new file mode 100644 index 00000000..9b944d29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f07679adb7802454ab92fb45decf34b8 +timeCreated: 1611404831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs new file mode 100644 index 00000000..5692d5da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SweepTowerArg")] + [Serializable] + public class SweepTowerArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hardLevel", DataFormat = DataFormat.TwosComplement)] + public int hardLevel + { + get + { + return this._hardLevel ?? 0; + } + set + { + this._hardLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hardLevelSpecified + { + get + { + return this._hardLevel != null; + } + set + { + bool flag = value == (this._hardLevel == null); + if (flag) + { + this._hardLevel = (value ? new int?(this.hardLevel) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "cost", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public ItemBrief cost + { + get + { + return this._cost; + } + set + { + this._cost = value; + } + } + + private int? _hardLevel; + + private ItemBrief _cost = null; + + private IExtension extensionObject; + + private bool ShouldSerializehardLevel() + { + return this.hardLevelSpecified; + } + + private void ResethardLevel() + { + this.hardLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs.meta new file mode 100644 index 00000000..00d0d2fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1945dd1768c103b4d97dddb70a2ddaf1 +timeCreated: 1611403301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerRes.cs new file mode 100644 index 00000000..b98e29b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SweepTowerRes")] + [Serializable] + public class SweepTowerRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public int leftTime + { + get + { + return this._leftTime ?? 0; + } + set + { + this._leftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new int?(this.leftTime) : null); + } + } + } + + private ErrorCode? _error; + + private int? _leftTime; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerRes.cs.meta new file mode 100644 index 00000000..7c0616e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SweepTowerRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0224db90bb41c5440856e121323c5c71 +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs new file mode 100644 index 00000000..9c3b0a4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynCardAttr")] + [Serializable] + public class SynCardAttr : IExtensible + { + [ProtoMember(1, Name = "addAttr", DataFormat = DataFormat.Default)] + public List addAttr + { + get + { + return this._addAttr; + } + } + + [ProtoMember(2, Name = "addper", DataFormat = DataFormat.Default)] + public List addper + { + get + { + return this._addper; + } + } + + [ProtoMember(3, Name = "allAttr", DataFormat = DataFormat.Default)] + public List allAttr + { + get + { + return this._allAttr; + } + } + + [ProtoMember(4, IsRequired = false, Name = "groupId", DataFormat = DataFormat.TwosComplement)] + public uint groupId + { + get + { + return this._groupId ?? 0u; + } + set + { + this._groupId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupIdSpecified + { + get + { + return this._groupId != null; + } + set + { + bool flag = value == (this._groupId == null); + if (flag) + { + this._groupId = (value ? new uint?(this.groupId) : null); + } + } + } + + private readonly List _addAttr = new List(); + + private readonly List _addper = new List(); + + private readonly List _allAttr = new List(); + + private uint? _groupId; + + private IExtension extensionObject; + + private bool ShouldSerializegroupId() + { + return this.groupIdSpecified; + } + + private void ResetgroupId() + { + this.groupIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs.meta new file mode 100644 index 00000000..72947ef7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynCardAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60cd93c9f0c1ab5469cf278afb97bd47 +timeCreated: 1611403836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynDoingGuildInherit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynDoingGuildInherit.cs new file mode 100644 index 00000000..ad256bd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynDoingGuildInherit.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynDoingGuildInherit")] + [Serializable] + public class SynDoingGuildInherit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleOne", DataFormat = DataFormat.TwosComplement)] + public ulong roleOne + { + get + { + return this._roleOne ?? 0UL; + } + set + { + this._roleOne = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleOneSpecified + { + get + { + return this._roleOne != null; + } + set + { + bool flag = value == (this._roleOne == null); + if (flag) + { + this._roleOne = (value ? new ulong?(this.roleOne) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleTwo", DataFormat = DataFormat.TwosComplement)] + public ulong roleTwo + { + get + { + return this._roleTwo ?? 0UL; + } + set + { + this._roleTwo = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleTwoSpecified + { + get + { + return this._roleTwo != null; + } + set + { + bool flag = value == (this._roleTwo == null); + if (flag) + { + this._roleTwo = (value ? new ulong?(this.roleTwo) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + private ulong? _roleOne; + + private ulong? _roleTwo; + + private uint? _type; + + private IExtension extensionObject; + + private bool ShouldSerializeroleOne() + { + return this.roleOneSpecified; + } + + private void ResetroleOne() + { + this.roleOneSpecified = false; + } + + private bool ShouldSerializeroleTwo() + { + return this.roleTwoSpecified; + } + + private void ResetroleTwo() + { + this.roleTwoSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynDoingGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynDoingGuildInherit.cs.meta new file mode 100644 index 00000000..5a3c3cae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynDoingGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ace32594660ac2d4684a81eea2715587 +timeCreated: 1611404332 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuilIntegralState.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynGuilIntegralState.cs new file mode 100644 index 00000000..9f58b356 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuilIntegralState.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynGuilIntegralState")] + [Serializable] + public class SynGuilIntegralState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public IntegralState state + { + get + { + return this._state ?? IntegralState.integralready; + } + set + { + this._state = new IntegralState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new IntegralState?(this.state) : null); + } + } + } + + private IntegralState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuilIntegralState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynGuilIntegralState.cs.meta new file mode 100644 index 00000000..972610e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuilIntegralState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a2a5ce2ce3c2bb40864581688348cab +timeCreated: 1611403887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaBattleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaBattleInfo.cs new file mode 100644 index 00000000..0d2e0ff7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaBattleInfo.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynGuildArenaBattleInfo")] + [Serializable] + public class SynGuildArenaBattleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "warType", DataFormat = DataFormat.TwosComplement)] + public uint warType + { + get + { + return this._warType ?? 0u; + } + set + { + this._warType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool warTypeSpecified + { + get + { + return this._warType != null; + } + set + { + bool flag = value == (this._warType == null); + if (flag) + { + this._warType = (value ? new uint?(this.warType) : null); + } + } + } + + [ProtoMember(2, Name = "arenaBattleInfo", DataFormat = DataFormat.Default)] + public List arenaBattleInfo + { + get + { + return this._arenaBattleInfo; + } + } + + [ProtoMember(3, IsRequired = false, Name = "timestate", DataFormat = DataFormat.TwosComplement)] + public GuildArenaState timestate + { + get + { + return this._timestate ?? GuildArenaState.GUILD_ARENA_NOT_BEGIN; + } + set + { + this._timestate = new GuildArenaState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timestateSpecified + { + get + { + return this._timestate != null; + } + set + { + bool flag = value == (this._timestate == null); + if (flag) + { + this._timestate = (value ? new GuildArenaState?(this.timestate) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + private uint? _warType; + + private readonly List _arenaBattleInfo = new List(); + + private GuildArenaState? _timestate; + + private uint? _state; + + private IExtension extensionObject; + + private bool ShouldSerializewarType() + { + return this.warTypeSpecified; + } + + private void ResetwarType() + { + this.warTypeSpecified = false; + } + + private bool ShouldSerializetimestate() + { + return this.timestateSpecified; + } + + private void Resettimestate() + { + this.timestateSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaBattleInfo.cs.meta new file mode 100644 index 00000000..437bd18b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea48ef94b3d6f514ca3846f1c55f7941 +timeCreated: 1611404778 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs new file mode 100644 index 00000000..5ae77706 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynGuildArenaFightUnit")] + [Serializable] + public class SynGuildArenaFightUnit : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pos", DataFormat = DataFormat.TwosComplement)] + public uint pos + { + get + { + return this._pos ?? 0u; + } + set + { + this._pos = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool posSpecified + { + get + { + return this._pos != null; + } + set + { + bool flag = value == (this._pos == null); + if (flag) + { + this._pos = (value ? new uint?(this.pos) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + private uint? _pos; + + private uint? _state; + + private IExtension extensionObject; + + private bool ShouldSerializepos() + { + return this.posSpecified; + } + + private void Resetpos() + { + this.posSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs.meta new file mode 100644 index 00000000..2b361d11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaFightUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cadc7e02346db8c4c8f683cfccf6b10b +timeCreated: 1611404544 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaRoleOnline.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaRoleOnline.cs new file mode 100644 index 00000000..fb2008a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaRoleOnline.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynGuildArenaRoleOnline")] + [Serializable] + public class SynGuildArenaRoleOnline : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "online", DataFormat = DataFormat.Default)] + public bool online + { + get + { + return this._online ?? false; + } + set + { + this._online = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onlineSpecified + { + get + { + return this._online != null; + } + set + { + bool flag = value == (this._online == null); + if (flag) + { + this._online = (value ? new bool?(this.online) : null); + } + } + } + + private ulong? _roleid; + + private bool? _online; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeonline() + { + return this.onlineSpecified; + } + + private void Resetonline() + { + this.onlineSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaRoleOnline.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaRoleOnline.cs.meta new file mode 100644 index 00000000..d5e0ed51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildArenaRoleOnline.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbb8809b71d3b96439176aff525a10d6 +timeCreated: 1611404442 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs new file mode 100644 index 00000000..dab175e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynGuildInheritNumInfo")] + [Serializable] + public class SynGuildInheritNumInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "reqNum", DataFormat = DataFormat.TwosComplement)] + public uint reqNum + { + get + { + return this._reqNum ?? 0u; + } + set + { + this._reqNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reqNumSpecified + { + get + { + return this._reqNum != null; + } + set + { + bool flag = value == (this._reqNum == null); + if (flag) + { + this._reqNum = (value ? new uint?(this.reqNum) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "teacherNum", DataFormat = DataFormat.TwosComplement)] + public uint teacherNum + { + get + { + return this._teacherNum ?? 0u; + } + set + { + this._teacherNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teacherNumSpecified + { + get + { + return this._teacherNum != null; + } + set + { + bool flag = value == (this._teacherNum == null); + if (flag) + { + this._teacherNum = (value ? new uint?(this.teacherNum) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "studentNum", DataFormat = DataFormat.TwosComplement)] + public uint studentNum + { + get + { + return this._studentNum ?? 0u; + } + set + { + this._studentNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool studentNumSpecified + { + get + { + return this._studentNum != null; + } + set + { + bool flag = value == (this._studentNum == null); + if (flag) + { + this._studentNum = (value ? new uint?(this.studentNum) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "lastTime", DataFormat = DataFormat.TwosComplement)] + public uint lastTime + { + get + { + return this._lastTime ?? 0u; + } + set + { + this._lastTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastTimeSpecified + { + get + { + return this._lastTime != null; + } + set + { + bool flag = value == (this._lastTime == null); + if (flag) + { + this._lastTime = (value ? new uint?(this.lastTime) : null); + } + } + } + + private uint? _reqNum; + + private uint? _teacherNum; + + private uint? _studentNum; + + private uint? _lastTime; + + private IExtension extensionObject; + + private bool ShouldSerializereqNum() + { + return this.reqNumSpecified; + } + + private void ResetreqNum() + { + this.reqNumSpecified = false; + } + + private bool ShouldSerializeteacherNum() + { + return this.teacherNumSpecified; + } + + private void ResetteacherNum() + { + this.teacherNumSpecified = false; + } + + private bool ShouldSerializestudentNum() + { + return this.studentNumSpecified; + } + + private void ResetstudentNum() + { + this.studentNumSpecified = false; + } + + private bool ShouldSerializelastTime() + { + return this.lastTimeSpecified; + } + + private void ResetlastTime() + { + this.lastTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs.meta new file mode 100644 index 00000000..c57ec82f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildInheritNumInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b3aaf306c1d75c4e8e5082c400aa21d +timeCreated: 1611403166 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildIntegralState.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildIntegralState.cs new file mode 100644 index 00000000..eaf21d83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildIntegralState.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynGuildIntegralState")] + [Serializable] + public class SynGuildIntegralState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public IntegralState state + { + get + { + return this._state ?? IntegralState.integralready; + } + set + { + this._state = new IntegralState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new IntegralState?(this.state) : null); + } + } + } + + private IntegralState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynGuildIntegralState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildIntegralState.cs.meta new file mode 100644 index 00000000..37ad8980 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynGuildIntegralState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49c8456f15bd47a43942a074d1e80fdb +timeCreated: 1611403662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoArg.cs new file mode 100644 index 00000000..0ed8b019 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynPetInfoArg")] + [Serializable] + public class SynPetInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + private ulong? _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoArg.cs.meta new file mode 100644 index 00000000..8ba08e56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 364243abbfdb1ff4eb36f7697adb2cff +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoRes.cs new file mode 100644 index 00000000..ee42253a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynPetInfoRes")] + [Serializable] + public class SynPetInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "mood", DataFormat = DataFormat.TwosComplement)] + public uint mood + { + get + { + return this._mood ?? 0u; + } + set + { + this._mood = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool moodSpecified + { + get + { + return this._mood != null; + } + set + { + bool flag = value == (this._mood == null); + if (flag) + { + this._mood = (value ? new uint?(this.mood) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "hungry", DataFormat = DataFormat.TwosComplement)] + public uint hungry + { + get + { + return this._hungry ?? 0u; + } + set + { + this._hungry = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hungrySpecified + { + get + { + return this._hungry != null; + } + set + { + bool flag = value == (this._hungry == null); + if (flag) + { + this._hungry = (value ? new uint?(this.hungry) : null); + } + } + } + + private uint? _mood; + + private uint? _hungry; + + private IExtension extensionObject; + + private bool ShouldSerializemood() + { + return this.moodSpecified; + } + + private void Resetmood() + { + this.moodSpecified = false; + } + + private bool ShouldSerializehungry() + { + return this.hungrySpecified; + } + + private void Resethungry() + { + this.hungrySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoRes.cs.meta new file mode 100644 index 00000000..2225e64d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynPetInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 471efeb1dc3e69f4da69f0de8e6bc992 +timeCreated: 1611403652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncPlatFriend2MSData.cs b/Client/Assets/Scripts/XMainClient/KKSG/SyncPlatFriend2MSData.cs new file mode 100644 index 00000000..607cf022 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncPlatFriend2MSData.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SyncPlatFriend2MSData")] + [Serializable] + public class SyncPlatFriend2MSData : IExtensible + { + [ProtoMember(1, Name = "friendInfo", DataFormat = DataFormat.Default)] + public List friendInfo + { + get + { + return this._friendInfo; + } + } + + [ProtoMember(2, IsRequired = false, Name = "selfInfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PlatFriend selfInfo + { + get + { + return this._selfInfo; + } + set + { + this._selfInfo = value; + } + } + + private readonly List _friendInfo = new List(); + + private PlatFriend _selfInfo = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncPlatFriend2MSData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SyncPlatFriend2MSData.cs.meta new file mode 100644 index 00000000..e82e000f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncPlatFriend2MSData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ddf06f720e8eb144fa17826b3d42396f +timeCreated: 1611404684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs b/Client/Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs new file mode 100644 index 00000000..bc3e76cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs @@ -0,0 +1,28 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SyncTeamM2C")] + public enum SyncTeamM2C + { + [ProtoEnum(Name = "STM2C_CREATE_TEAM", Value = 1)] + STM2C_CREATE_TEAM = 1, + [ProtoEnum(Name = "STM2C_ADD_MEMBER", Value = 2)] + STM2C_ADD_MEMBER, + [ProtoEnum(Name = "STM2C_DEL_MEMBER", Value = 3)] + STM2C_DEL_MEMBER, + [ProtoEnum(Name = "STM2C_ALL_DATA", Value = 4)] + STM2C_ALL_DATA, + [ProtoEnum(Name = "STM2C_TEAM_LIST", Value = 5)] + STM2C_TEAM_LIST, + [ProtoEnum(Name = "STM2C_DESTROY", Value = 6)] + STM2C_DESTROY, + [ProtoEnum(Name = "STM2C_GETEXTRADATA", Value = 7)] + STM2C_GETEXTRADATA, + [ProtoEnum(Name = "STM2C_RESETCOST", Value = 8)] + STM2C_RESETCOST, + [ProtoEnum(Name = "STM2C_TS_DISCONNECTED", Value = 9)] + STM2C_TS_DISCONNECTED + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs.meta new file mode 100644 index 00000000..691e5b19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncTeamM2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c763bf96aa9ba694896e82e8ecc292e5 +timeCreated: 1611404530 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs new file mode 100644 index 00000000..9077d36f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SyncTimeArg")] + [Serializable] + public class SyncTimeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public long time + { + get + { + return this._time ?? 0L; + } + set + { + this._time = new long?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new long?(this.time) : null); + } + } + } + + private long? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs.meta new file mode 100644 index 00000000..0247b7c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63e4129217be67b479e5d48a06ad8d67 +timeCreated: 1611403846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs new file mode 100644 index 00000000..a4256126 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SyncTimeRes")] + [Serializable] + public class SyncTimeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "serverTime", DataFormat = DataFormat.TwosComplement)] + public long serverTime + { + get + { + return this._serverTime ?? 0L; + } + set + { + this._serverTime = new long?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serverTimeSpecified + { + get + { + return this._serverTime != null; + } + set + { + bool flag = value == (this._serverTime == null); + if (flag) + { + this._serverTime = (value ? new long?(this.serverTime) : null); + } + } + } + + private long? _serverTime; + + private IExtension extensionObject; + + private bool ShouldSerializeserverTime() + { + return this.serverTimeSpecified; + } + + private void ResetserverTime() + { + this.serverTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs.meta new file mode 100644 index 00000000..56e44ff4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SyncTimeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fdaaccca6c3d0934ba5df8de9f5c6379 +timeCreated: 1611404937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynsMsSubType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynsMsSubType.cs new file mode 100644 index 00000000..3bf9273f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynsMsSubType.cs @@ -0,0 +1,28 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynsMsSubType")] + public enum SynsMsSubType + { + [ProtoEnum(Name = "SynsCreate", Value = 1)] + SynsCreate = 1, + [ProtoEnum(Name = "SynsDestory", Value = 2)] + SynsDestory, + [ProtoEnum(Name = "SynsAdd", Value = 3)] + SynsAdd, + [ProtoEnum(Name = "SynsDel", Value = 4)] + SynsDel, + [ProtoEnum(Name = "SynsLead", Value = 5)] + SynsLead, + [ProtoEnum(Name = "SynsLevel", Value = 6)] + SynsLevel, + [ProtoEnum(Name = "SynsIcon", Value = 7)] + SynsIcon, + [ProtoEnum(Name = "SynAddExp", Value = 8)] + SynAddExp, + [ProtoEnum(Name = "SynSetTime", Value = 9)] + SynSetTime + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynsMsSubType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynsMsSubType.cs.meta new file mode 100644 index 00000000..309013c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynsMsSubType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b1d129906d0b08d4193d56238961f782 +timeCreated: 1611404357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynsMsType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SynsMsType.cs new file mode 100644 index 00000000..8860c94e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynsMsType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SynsMsType")] + public enum SynsMsType + { + [ProtoEnum(Name = "SynsGuild", Value = 1)] + SynsGuild = 1, + [ProtoEnum(Name = "SynsTeam", Value = 2)] + SynsTeam + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SynsMsType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SynsMsType.cs.meta new file mode 100644 index 00000000..b31b2c79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SynsMsType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ccafffc88c50e94a84db153e5eddef9 +timeCreated: 1611403693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs b/Client/Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs new file mode 100644 index 00000000..45a68c9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SysOpenTime")] + [Serializable] + public class SysOpenTime : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public int id + { + get + { + return this._id ?? 0; + } + set + { + this._id = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new int?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public int time + { + get + { + return this._time ?? 0; + } + set + { + this._time = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new int?(this.time) : null); + } + } + } + + private int? _id; + + private int? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs.meta new file mode 100644 index 00000000..3662e737 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SysOpenTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a612053fcbd5114da08952d179e0850 +timeCreated: 1611403988 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SystemRewardType.cs b/Client/Assets/Scripts/XMainClient/KKSG/SystemRewardType.cs new file mode 100644 index 00000000..9353e76c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SystemRewardType.cs @@ -0,0 +1,40 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SystemRewardType")] + public enum SystemRewardType + { + [ProtoEnum(Name = "RewardDinner", Value = 1)] + RewardDinner = 1, + [ProtoEnum(Name = "RewardSupper", Value = 2)] + RewardSupper, + [ProtoEnum(Name = "RewardArena", Value = 3)] + RewardArena, + [ProtoEnum(Name = "RewardWorldBoss", Value = 4)] + RewardWorldBoss, + [ProtoEnum(Name = "RewardChargeFirst", Value = 5)] + RewardChargeFirst, + [ProtoEnum(Name = "RewardGuildBoss", Value = 6)] + RewardGuildBoss, + [ProtoEnum(Name = "RewardGuildBossRole", Value = 7)] + RewardGuildBossRole, + [ProtoEnum(Name = "RewardPk", Value = 8)] + RewardPk, + [ProtoEnum(Name = "RewardVip", Value = 101)] + RewardVip = 101, + [ProtoEnum(Name = "RewardMonthCard", Value = 102)] + RewardMonthCard, + [ProtoEnum(Name = "RewardMakeUp", Value = 103)] + RewardMakeUp, + [ProtoEnum(Name = "RewardArenaUp", Value = 104)] + RewardArenaUp, + [ProtoEnum(Name = "RewardGM", Value = 105)] + RewardGM, + [ProtoEnum(Name = "RewardDegree", Value = 106)] + RewardDegree, + [ProtoEnum(Name = "RewardFashionPowerRank", Value = 107)] + RewardFashionPowerRank + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SystemRewardType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/SystemRewardType.cs.meta new file mode 100644 index 00000000..ec9cc1d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SystemRewardType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17b7900f005c10e41b489e1f580a277e +timeCreated: 1611403294 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Systems.cs b/Client/Assets/Scripts/XMainClient/KKSG/Systems.cs new file mode 100644 index 00000000..8e894271 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Systems.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Systems")] + [Serializable] + public class Systems : IExtensible + { + [ProtoMember(1, Name = "sysIDs", DataFormat = DataFormat.TwosComplement)] + public List sysIDs + { + get + { + return this._sysIDs; + } + } + + [ProtoMember(2, Name = "closeSysIDs", DataFormat = DataFormat.TwosComplement)] + public List closeSysIDs + { + get + { + return this._closeSysIDs; + } + } + + private readonly List _sysIDs = new List(); + + private readonly List _closeSysIDs = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Systems.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Systems.cs.meta new file mode 100644 index 00000000..c3996ddf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Systems.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a11811c96beefbd469d2d7a832788b02 +timeCreated: 1611404252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowRoleDailyVoteData.cs b/Client/Assets/Scripts/XMainClient/KKSG/TShowRoleDailyVoteData.cs new file mode 100644 index 00000000..b8f34155 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowRoleDailyVoteData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TShowRoleDailyVoteData")] + [Serializable] + public class TShowRoleDailyVoteData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "freeCount", DataFormat = DataFormat.TwosComplement)] + public int freeCount + { + get + { + return this._freeCount ?? 0; + } + set + { + this._freeCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool freeCountSpecified + { + get + { + return this._freeCount != null; + } + set + { + bool flag = value == (this._freeCount == null); + if (flag) + { + this._freeCount = (value ? new int?(this.freeCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "costCount", DataFormat = DataFormat.TwosComplement)] + public int costCount + { + get + { + return this._costCount ?? 0; + } + set + { + this._costCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costCountSpecified + { + get + { + return this._costCount != null; + } + set + { + bool flag = value == (this._costCount == null); + if (flag) + { + this._costCount = (value ? new int?(this.costCount) : null); + } + } + } + + private ulong? _roleID; + + private int? _freeCount; + + private int? _costCount; + + private IExtension extensionObject; + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializefreeCount() + { + return this.freeCountSpecified; + } + + private void ResetfreeCount() + { + this.freeCountSpecified = false; + } + + private bool ShouldSerializecostCount() + { + return this.costCountSpecified; + } + + private void ResetcostCount() + { + this.costCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowRoleDailyVoteData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TShowRoleDailyVoteData.cs.meta new file mode 100644 index 00000000..dd89d022 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowRoleDailyVoteData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d6ea3dd42dba0c48888f23cab01b933 +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListArg.cs new file mode 100644 index 00000000..99c3a9c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TShowTopListArg")] + [Serializable] + public class TShowTopListArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public int index + { + get + { + return this._index ?? 0; + } + set + { + this._index = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new int?(this.index) : null); + } + } + } + + private int? _type; + + private int? _index; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListArg.cs.meta new file mode 100644 index 00000000..8eafdc98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0b98a2caa7e8394e8a7c73161d88070 +timeCreated: 1611404699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListRes.cs new file mode 100644 index 00000000..f44cab0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListRes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TShowTopListRes")] + [Serializable] + public class TShowTopListRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, Name = "rolesInfo", DataFormat = DataFormat.Default)] + public List rolesInfo + { + get + { + return this._rolesInfo; + } + } + + [ProtoMember(3, IsRequired = false, Name = "isEnd", DataFormat = DataFormat.Default)] + public bool isEnd + { + get + { + return this._isEnd ?? false; + } + set + { + this._isEnd = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isEndSpecified + { + get + { + return this._isEnd != null; + } + set + { + bool flag = value == (this._isEnd == null); + if (flag) + { + this._isEnd = (value ? new bool?(this.isEnd) : null); + } + } + } + + private ErrorCode? _error; + + private readonly List _rolesInfo = new List(); + + private bool? _isEnd; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializeisEnd() + { + return this.isEndSpecified; + } + + private void ResetisEnd() + { + this.isEndSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListRes.cs.meta new file mode 100644 index 00000000..d3c564b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowTopListRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d19236e13d42c0d42a82110ccaa68412 +timeCreated: 1611404592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs new file mode 100644 index 00000000..fb53507e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TShowVoteRecord")] + [Serializable] + public class TShowVoteRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public int updateTime + { + get + { + return this._updateTime ?? 0; + } + set + { + this._updateTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new int?(this.updateTime) : null); + } + } + } + + [ProtoMember(2, Name = "voteData", DataFormat = DataFormat.Default)] + public List voteData + { + get + { + return this._voteData; + } + } + + [ProtoMember(3, IsRequired = false, Name = "haveSendRank", DataFormat = DataFormat.Default)] + public bool haveSendRank + { + get + { + return this._haveSendRank ?? false; + } + set + { + this._haveSendRank = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool haveSendRankSpecified + { + get + { + return this._haveSendRank != null; + } + set + { + bool flag = value == (this._haveSendRank == null); + if (flag) + { + this._haveSendRank = (value ? new bool?(this.haveSendRank) : null); + } + } + } + + private int? _updateTime; + + private readonly List _voteData = new List(); + + private bool? _haveSendRank; + + private IExtension extensionObject; + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + private bool ShouldSerializehaveSendRank() + { + return this.haveSendRankSpecified; + } + + private void ResethaveSendRank() + { + this.haveSendRankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs.meta new file mode 100644 index 00000000..207dc629 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TShowVoteRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a439ec1af35dd749843cb450bbef18e +timeCreated: 1611403596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs b/Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs new file mode 100644 index 00000000..c150ad5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TableDef")] + public enum TableDef + { + [ProtoEnum(Name = "AccountTable", Value = 1)] + AccountTable = 1, + [ProtoEnum(Name = "RoleTable", Value = 2)] + RoleTable + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs.meta new file mode 100644 index 00000000..f4e9307e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TableDef.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a2d52754d9e43e40bb14573671135d6 +timeCreated: 1611403595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneArg.cs new file mode 100644 index 00000000..78605377 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TactEnterSceneArg")] + [Serializable] + public class TactEnterSceneArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sceneid", DataFormat = DataFormat.TwosComplement)] + public uint sceneid + { + get + { + return this._sceneid ?? 0u; + } + set + { + this._sceneid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneidSpecified + { + get + { + return this._sceneid != null; + } + set + { + bool flag = value == (this._sceneid == null); + if (flag) + { + this._sceneid = (value ? new uint?(this.sceneid) : null); + } + } + } + + private uint? _actid; + + private uint? _sceneid; + + private IExtension extensionObject; + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + private bool ShouldSerializesceneid() + { + return this.sceneidSpecified; + } + + private void Resetsceneid() + { + this.sceneidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneArg.cs.meta new file mode 100644 index 00000000..1dcc5688 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a7c445d12b79c94f9077141186d9721 +timeCreated: 1611403163 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneRes.cs new file mode 100644 index 00000000..f96c46a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TactEnterSceneRes")] + [Serializable] + public class TactEnterSceneRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneRes.cs.meta new file mode 100644 index 00000000..604e845c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TactEnterSceneRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d084ff297558cfb41b9e86d1db9628b4 +timeCreated: 1611404587 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TajieHelp2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelp2DB.cs new file mode 100644 index 00000000..4d60c21e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelp2DB.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TajieHelp2DB")] + [Serializable] + public class TajieHelp2DB : IExtensible + { + [ProtoMember(1, Name = "taJieHelpSceneData", DataFormat = DataFormat.Default)] + public List taJieHelpSceneData + { + get + { + return this._taJieHelpSceneData; + } + } + + [ProtoMember(2, IsRequired = false, Name = "updateTime", DataFormat = DataFormat.TwosComplement)] + public int updateTime + { + get + { + return this._updateTime ?? 0; + } + set + { + this._updateTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool updateTimeSpecified + { + get + { + return this._updateTime != null; + } + set + { + bool flag = value == (this._updateTime == null); + if (flag) + { + this._updateTime = (value ? new int?(this.updateTime) : null); + } + } + } + + private readonly List _taJieHelpSceneData = new List(); + + private int? _updateTime; + + private IExtension extensionObject; + + private bool ShouldSerializeupdateTime() + { + return this.updateTimeSpecified; + } + + private void ResetupdateTime() + { + this.updateTimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TajieHelp2DB.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelp2DB.cs.meta new file mode 100644 index 00000000..f72184e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelp2DB.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14311e025a940a04f8fa14ccaadb9a4a +timeCreated: 1611403254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpData.cs b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpData.cs new file mode 100644 index 00000000..f8787dac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpData.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TajieHelpData")] + [Serializable] + public class TajieHelpData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public int sceneID + { + get + { + return this._sceneID ?? 0; + } + set + { + this._sceneID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new int?(this.sceneID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "sceneType", DataFormat = DataFormat.TwosComplement)] + public int sceneType + { + get + { + return this._sceneType ?? 0; + } + set + { + this._sceneType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneTypeSpecified + { + get + { + return this._sceneType != null; + } + set + { + bool flag = value == (this._sceneType == null); + if (flag) + { + this._sceneType = (value ? new int?(this.sceneType) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "dragonStatus", DataFormat = DataFormat.TwosComplement)] + public int dragonStatus + { + get + { + return this._dragonStatus ?? 0; + } + set + { + this._dragonStatus = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonStatusSpecified + { + get + { + return this._dragonStatus != null; + } + set + { + bool flag = value == (this._dragonStatus == null); + if (flag) + { + this._dragonStatus = (value ? new int?(this.dragonStatus) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "dragonWeakLeftTime", DataFormat = DataFormat.TwosComplement)] + public int dragonWeakLeftTime + { + get + { + return this._dragonWeakLeftTime ?? 0; + } + set + { + this._dragonWeakLeftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonWeakLeftTimeSpecified + { + get + { + return this._dragonWeakLeftTime != null; + } + set + { + bool flag = value == (this._dragonWeakLeftTime == null); + if (flag) + { + this._dragonWeakLeftTime = (value ? new int?(this.dragonWeakLeftTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "isIconAppear", DataFormat = DataFormat.Default)] + public bool isIconAppear + { + get + { + return this._isIconAppear ?? false; + } + set + { + this._isIconAppear = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isIconAppearSpecified + { + get + { + return this._isIconAppear != null; + } + set + { + bool flag = value == (this._isIconAppear == null); + if (flag) + { + this._isIconAppear = (value ? new bool?(this.isIconAppear) : null); + } + } + } + + private int? _sceneID; + + private int? _sceneType; + + private int? _dragonStatus; + + private int? _dragonWeakLeftTime; + + private bool? _isIconAppear; + + private IExtension extensionObject; + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializesceneType() + { + return this.sceneTypeSpecified; + } + + private void ResetsceneType() + { + this.sceneTypeSpecified = false; + } + + private bool ShouldSerializedragonStatus() + { + return this.dragonStatusSpecified; + } + + private void ResetdragonStatus() + { + this.dragonStatusSpecified = false; + } + + private bool ShouldSerializedragonWeakLeftTime() + { + return this.dragonWeakLeftTimeSpecified; + } + + private void ResetdragonWeakLeftTime() + { + this.dragonWeakLeftTimeSpecified = false; + } + + private bool ShouldSerializeisIconAppear() + { + return this.isIconAppearSpecified; + } + + private void ResetisIconAppear() + { + this.isIconAppearSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpData.cs.meta new file mode 100644 index 00000000..d78b9623 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1162b73e725ee734ea5106ed2e43b1be +timeCreated: 1611403239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpSceneData.cs b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpSceneData.cs new file mode 100644 index 00000000..60e77644 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpSceneData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TajieHelpSceneData")] + [Serializable] + public class TajieHelpSceneData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public int sceneID + { + get + { + return this._sceneID ?? 0; + } + set + { + this._sceneID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new int?(this.sceneID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "intervalContinueFailTimes", DataFormat = DataFormat.TwosComplement)] + public int intervalContinueFailTimes + { + get + { + return this._intervalContinueFailTimes ?? 0; + } + set + { + this._intervalContinueFailTimes = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool intervalContinueFailTimesSpecified + { + get + { + return this._intervalContinueFailTimes != null; + } + set + { + bool flag = value == (this._intervalContinueFailTimes == null); + if (flag) + { + this._intervalContinueFailTimes = (value ? new int?(this.intervalContinueFailTimes) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "intervalFailNoticeTimes", DataFormat = DataFormat.TwosComplement)] + public int intervalFailNoticeTimes + { + get + { + return this._intervalFailNoticeTimes ?? 0; + } + set + { + this._intervalFailNoticeTimes = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool intervalFailNoticeTimesSpecified + { + get + { + return this._intervalFailNoticeTimes != null; + } + set + { + bool flag = value == (this._intervalFailNoticeTimes == null); + if (flag) + { + this._intervalFailNoticeTimes = (value ? new int?(this.intervalFailNoticeTimes) : null); + } + } + } + + private int? _sceneID; + + private int? _intervalContinueFailTimes; + + private int? _intervalFailNoticeTimes; + + private IExtension extensionObject; + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializeintervalContinueFailTimes() + { + return this.intervalContinueFailTimesSpecified; + } + + private void ResetintervalContinueFailTimes() + { + this.intervalContinueFailTimesSpecified = false; + } + + private bool ShouldSerializeintervalFailNoticeTimes() + { + return this.intervalFailNoticeTimesSpecified; + } + + private void ResetintervalFailNoticeTimes() + { + this.intervalFailNoticeTimesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpSceneData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpSceneData.cs.meta new file mode 100644 index 00000000..c7ab1333 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TajieHelpSceneData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67fe99180dae76440afe42ef4ce6a466 +timeCreated: 1611403881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestArg.cs new file mode 100644 index 00000000..c8fcd6fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TakeMarriageChestArg")] + [Serializable] + public class TakeMarriageChestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestArg.cs.meta new file mode 100644 index 00000000..b267d67d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0394db633e61d9c46a59a2004347eeae +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestRes.cs new file mode 100644 index 00000000..a5d888f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TakeMarriageChestRes")] + [Serializable] + public class TakeMarriageChestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public List itemid + { + get + { + return this._itemid; + } + } + + [ProtoMember(3, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public List itemcount + { + get + { + return this._itemcount; + } + } + + [ProtoMember(4, IsRequired = false, Name = "takedchest", DataFormat = DataFormat.TwosComplement)] + public uint takedchest + { + get + { + return this._takedchest ?? 0u; + } + set + { + this._takedchest = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool takedchestSpecified + { + get + { + return this._takedchest != null; + } + set + { + bool flag = value == (this._takedchest == null); + if (flag) + { + this._takedchest = (value ? new uint?(this.takedchest) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _itemid = new List(); + + private readonly List _itemcount = new List(); + + private uint? _takedchest; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializetakedchest() + { + return this.takedchestSpecified; + } + + private void Resettakedchest() + { + this.takedchestSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestRes.cs.meta new file mode 100644 index 00000000..0f404bb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeMarriageChestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c9a3e7f999883c4ba1584c1612be696 +timeCreated: 1611404233 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs new file mode 100644 index 00000000..4e168748 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TakeOffAllJadeArg")] + [Serializable] + public class TakeOffAllJadeArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + private ulong? _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs.meta new file mode 100644 index 00000000..a911fa8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf6205287929c0b45b4579fd83520040 +timeCreated: 1611404580 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewArg.cs new file mode 100644 index 00000000..05e10fab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TakeOffAllJadeNewArg")] + [Serializable] + public class TakeOffAllJadeNewArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.Default)] + public string uid + { + get + { + return this._uid ?? ""; + } + set + { + this._uid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? this.uid : null); + } + } + } + + private string _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewArg.cs.meta new file mode 100644 index 00000000..1b2c2f9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00744bf3b4f8fe248a0ba9e98be28791 +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewRes.cs new file mode 100644 index 00000000..4f92157b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TakeOffAllJadeNewRes")] + [Serializable] + public class TakeOffAllJadeNewRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewRes.cs.meta new file mode 100644 index 00000000..ca79c067 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeNewRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7e965352100a944e934784191be3cdf +timeCreated: 1611404293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs new file mode 100644 index 00000000..aa7a30e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TakeOffAllJadeRes")] + [Serializable] + public class TakeOffAllJadeRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs.meta new file mode 100644 index 00000000..45d2601b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakeOffAllJadeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0214fcb9405e7de40a86f59b078fb191 +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestArg.cs new file mode 100644 index 00000000..aedad0ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TakePartnerChestArg")] + [Serializable] + public class TakePartnerChestArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + private uint? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestArg.cs.meta new file mode 100644 index 00000000..38fe8150 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea3379208badd6c4ba0dbe0cf6f8ead2 +timeCreated: 1611404778 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestRes.cs new file mode 100644 index 00000000..9e211884 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestRes.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TakePartnerChestRes")] + [Serializable] + public class TakePartnerChestRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public List itemid + { + get + { + return this._itemid; + } + } + + [ProtoMember(3, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public List itemcount + { + get + { + return this._itemcount; + } + } + + [ProtoMember(4, IsRequired = false, Name = "takedchest", DataFormat = DataFormat.TwosComplement)] + public uint takedchest + { + get + { + return this._takedchest ?? 0u; + } + set + { + this._takedchest = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool takedchestSpecified + { + get + { + return this._takedchest != null; + } + set + { + bool flag = value == (this._takedchest == null); + if (flag) + { + this._takedchest = (value ? new uint?(this.takedchest) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _itemid = new List(); + + private readonly List _itemcount = new List(); + + private uint? _takedchest; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializetakedchest() + { + return this.takedchestSpecified; + } + + private void Resettakedchest() + { + this.takedchestSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestRes.cs.meta new file mode 100644 index 00000000..ea68b6bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TakePartnerChestRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f000a9419dd46ed4aa41f82160743b74 +timeCreated: 1611404826 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteArg.cs new file mode 100644 index 00000000..1283817c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TalkGuildCampSpriteArg")] + [Serializable] + public class TalkGuildCampSpriteArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "enemy_id", DataFormat = DataFormat.TwosComplement)] + public ulong enemy_id + { + get + { + return this._enemy_id ?? 0UL; + } + set + { + this._enemy_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool enemy_idSpecified + { + get + { + return this._enemy_id != null; + } + set + { + bool flag = value == (this._enemy_id == null); + if (flag) + { + this._enemy_id = (value ? new ulong?(this.enemy_id) : null); + } + } + } + + private ulong? _enemy_id; + + private IExtension extensionObject; + + private bool ShouldSerializeenemy_id() + { + return this.enemy_idSpecified; + } + + private void Resetenemy_id() + { + this.enemy_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteArg.cs.meta new file mode 100644 index 00000000..ee4a03f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0759c106e07fc9c42a970a0c6e55741c +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteRes.cs new file mode 100644 index 00000000..aac3cb78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteRes.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TalkGuildCampSpriteRes")] + [Serializable] + public class TalkGuildCampSpriteRes : IExtensible + { + [ProtoMember(1, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private readonly List _items = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteRes.cs.meta new file mode 100644 index 00000000..4f5125ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TalkGuildCampSpriteRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84622b67fd6717b46beb3a46852315ee +timeCreated: 1611404048 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TargetHurtInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/TargetHurtInfo.cs new file mode 100644 index 00000000..5adbc1a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TargetHurtInfo.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TargetHurtInfo")] + [Serializable] + public class TargetHurtInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "UnitID", DataFormat = DataFormat.TwosComplement)] + public ulong UnitID + { + get + { + return this._UnitID ?? 0UL; + } + set + { + this._UnitID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool UnitIDSpecified + { + get + { + return this._UnitID != null; + } + set + { + bool flag = value == (this._UnitID == null); + if (flag) + { + this._UnitID = (value ? new ulong?(this.UnitID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "Result", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public DamageResult Result + { + get + { + return this._Result; + } + set + { + this._Result = value; + } + } + + private ulong? _UnitID; + + private DamageResult _Result = null; + + private IExtension extensionObject; + + private bool ShouldSerializeUnitID() + { + return this.UnitIDSpecified; + } + + private void ResetUnitID() + { + this.UnitIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TargetHurtInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TargetHurtInfo.cs.meta new file mode 100644 index 00000000..84f1b347 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TargetHurtInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09b9ae42ce9bf614db2034339496affc +timeCreated: 1611403158 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs new file mode 100644 index 00000000..3cefd9ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TarjaBrief")] + [Serializable] + public class TarjaBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs.meta new file mode 100644 index 00000000..e7dc28a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TarjaBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83ca7fafabbdbe8498de5db30f98c953 +timeCreated: 1611404046 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskActivityType.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskActivityType.cs new file mode 100644 index 00000000..fe17643e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskActivityType.cs @@ -0,0 +1,48 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskActivityType")] + public enum TaskActivityType + { + [ProtoEnum(Name = "TaskActType_Dragonexp", Value = 1)] + TaskActType_Dragonexp = 1, + [ProtoEnum(Name = "TaskActType_Tower", Value = 2)] + TaskActType_Tower, + [ProtoEnum(Name = "TaskActType_SuperRisk", Value = 3)] + TaskActType_SuperRisk, + [ProtoEnum(Name = "TaskActType_SkyCityRound", Value = 4)] + TaskActType_SkyCityRound, + [ProtoEnum(Name = "TaskActType_BigmeleeKill", Value = 5)] + TaskActType_BigmeleeKill, + [ProtoEnum(Name = "TaskActType_BigmeleeScore", Value = 6)] + TaskActType_BigmeleeScore, + [ProtoEnum(Name = "TaskActType_GuildBoss", Value = 7)] + TaskActType_GuildBoss, + [ProtoEnum(Name = "TaskActType_HeroBattleWin", Value = 8)] + TaskActType_HeroBattleWin, + [ProtoEnum(Name = "TaskActType_PkWin", Value = 9)] + TaskActType_PkWin, + [ProtoEnum(Name = "TaskActType_Help", Value = 10)] + TaskActType_Help, + [ProtoEnum(Name = "TaskActType_DonateItem", Value = 11)] + TaskActType_DonateItem, + [ProtoEnum(Name = "TaskActType_Fish", Value = 12)] + TaskActType_Fish, + [ProtoEnum(Name = "TaskActType_GardenSteal", Value = 13)] + TaskActType_GardenSteal, + [ProtoEnum(Name = "TaskActType_GardenHarvest", Value = 14)] + TaskActType_GardenHarvest, + [ProtoEnum(Name = "TaskActType_Cooking", Value = 15)] + TaskActType_Cooking, + [ProtoEnum(Name = "TaskActType_Banquet", Value = 16)] + TaskActType_Banquet, + [ProtoEnum(Name = "TaskActType_JoinBanquet", Value = 17)] + TaskActType_JoinBanquet, + [ProtoEnum(Name = "TaskActType_WorldBoss", Value = 18)] + TaskActType_WorldBoss, + [ProtoEnum(Name = "TaskActType_CampDuel", Value = 19)] + TaskActType_CampDuel + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskActivityType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskActivityType.cs.meta new file mode 100644 index 00000000..43aeeb3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskActivityType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f57447098f939c449693eca6c230c1f +timeCreated: 1611403515 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskConditionInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskConditionInfo.cs new file mode 100644 index 00000000..eadbd76e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskConditionInfo.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskConditionInfo")] + [Serializable] + public class TaskConditionInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public TaskConnType type + { + get + { + return this._type ?? TaskConnType.TaskConn_ItemID; + } + set + { + this._type = new TaskConnType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new TaskConnType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "step", DataFormat = DataFormat.TwosComplement)] + public uint step + { + get + { + return this._step ?? 0u; + } + set + { + this._step = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stepSpecified + { + get + { + return this._step != null; + } + set + { + bool flag = value == (this._step == null); + if (flag) + { + this._step = (value ? new uint?(this.step) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "max_step", DataFormat = DataFormat.TwosComplement)] + public uint max_step + { + get + { + return this._max_step ?? 0u; + } + set + { + this._max_step = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool max_stepSpecified + { + get + { + return this._max_step != null; + } + set + { + bool flag = value == (this._max_step == null); + if (flag) + { + this._max_step = (value ? new uint?(this.max_step) : null); + } + } + } + + private TaskConnType? _type; + + private uint? _id; + + private uint? _step; + + private uint? _max_step; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializestep() + { + return this.stepSpecified; + } + + private void Resetstep() + { + this.stepSpecified = false; + } + + private bool ShouldSerializemax_step() + { + return this.max_stepSpecified; + } + + private void Resetmax_step() + { + this.max_stepSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskConditionInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskConditionInfo.cs.meta new file mode 100644 index 00000000..773217ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskConditionInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5dea687bb437ff646836d5341dba9ada +timeCreated: 1611403808 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskConnType.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskConnType.cs new file mode 100644 index 00000000..a2cb1979 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskConnType.cs @@ -0,0 +1,24 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskConnType")] + public enum TaskConnType + { + [ProtoEnum(Name = "TaskConn_ItemID", Value = 1)] + TaskConn_ItemID = 1, + [ProtoEnum(Name = "TaskConn_StageID", Value = 2)] + TaskConn_StageID, + [ProtoEnum(Name = "TaskConn_MonsterID", Value = 3)] + TaskConn_MonsterID, + [ProtoEnum(Name = "TaskConn_ItemTypeQuality", Value = 4)] + TaskConn_ItemTypeQuality, + [ProtoEnum(Name = "TaskConn_Activity", Value = 5)] + TaskConn_Activity, + [ProtoEnum(Name = "TaskConn_WorldBossRank", Value = 6)] + TaskConn_WorldBossRank, + [ProtoEnum(Name = "TaskConn_StageType", Value = 7)] + TaskConn_StageType + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskConnType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskConnType.cs.meta new file mode 100644 index 00000000..b03f8fa7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskConnType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c677ba00eccb3f438bcf9b5b37ed217 +timeCreated: 1611404099 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskHelpInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskHelpInfo.cs new file mode 100644 index 00000000..cee66f51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskHelpInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskHelpInfo")] + [Serializable] + public class TaskHelpInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + private ulong? _roleid; + + private string _rolename; + + private uint? _itemid; + + private uint? _itemcount; + + private uint? _time; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskHelpInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskHelpInfo.cs.meta new file mode 100644 index 00000000..2dd607ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskHelpInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f586c10d2020cf942b3a72805aebdcbd +timeCreated: 1611404876 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs new file mode 100644 index 00000000..d2173613 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskInfo")] + [Serializable] + public class TaskInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "status", DataFormat = DataFormat.TwosComplement)] + public TaskStatus status + { + get + { + return this._status ?? TaskStatus.TaskStatus_CanTake; + } + set + { + this._status = new TaskStatus?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool statusSpecified + { + get + { + return this._status != null; + } + set + { + bool flag = value == (this._status == null); + if (flag) + { + this._status = (value ? new TaskStatus?(this.status) : null); + } + } + } + + [ProtoMember(3, Name = "conds", DataFormat = DataFormat.Default)] + public List conds + { + get + { + return this._conds; + } + } + + private uint? _id; + + private TaskStatus? _status; + + private readonly List _conds = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializestatus() + { + return this.statusSpecified; + } + + private void Resetstatus() + { + this.statusSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs.meta new file mode 100644 index 00000000..ee7773ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d00c2098692b7344d8a2534d4509bf8d +timeCreated: 1611404584 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs new file mode 100644 index 00000000..ab36ac76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskOPArg")] + [Serializable] + public class TaskOPArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "taskOP", DataFormat = DataFormat.TwosComplement)] + public int taskOP + { + get + { + return this._taskOP ?? 0; + } + set + { + this._taskOP = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskOPSpecified + { + get + { + return this._taskOP != null; + } + set + { + bool flag = value == (this._taskOP == null); + if (flag) + { + this._taskOP = (value ? new int?(this.taskOP) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "taskID", DataFormat = DataFormat.TwosComplement)] + public int taskID + { + get + { + return this._taskID ?? 0; + } + set + { + this._taskID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskIDSpecified + { + get + { + return this._taskID != null; + } + set + { + bool flag = value == (this._taskID == null); + if (flag) + { + this._taskID = (value ? new int?(this.taskID) : null); + } + } + } + + private int? _taskOP; + + private int? _taskID; + + private IExtension extensionObject; + + private bool ShouldSerializetaskOP() + { + return this.taskOPSpecified; + } + + private void ResettaskOP() + { + this.taskOPSpecified = false; + } + + private bool ShouldSerializetaskID() + { + return this.taskIDSpecified; + } + + private void ResettaskID() + { + this.taskIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs.meta new file mode 100644 index 00000000..3c96d485 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6662f21c05bc7d4489b9d4b0bddb6a48 +timeCreated: 1611403854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs new file mode 100644 index 00000000..21a8a972 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskOPEnum")] + public enum TaskOPEnum + { + [ProtoEnum(Name = "TAKE_TASK", Value = 1)] + TAKE_TASK = 1, + [ProtoEnum(Name = "FINISH_TASK", Value = 2)] + FINISH_TASK + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs.meta new file mode 100644 index 00000000..14cc510f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d98cebd18d1d12d45beff2ba55aaecff +timeCreated: 1611404644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs new file mode 100644 index 00000000..bc34dc2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskOPRes")] + [Serializable] + public class TaskOPRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.Default)] + public bool result + { + get + { + return this._result ?? false; + } + set + { + this._result = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new bool?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private bool? _result; + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs.meta new file mode 100644 index 00000000..001ed8de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskOPRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3133039167ced49469707915d16f74e4 +timeCreated: 1611403542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs new file mode 100644 index 00000000..6a9d6a21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskOper")] + public enum TaskOper + { + [ProtoEnum(Name = "TaskOper_Set", Value = 1)] + TaskOper_Set = 1, + [ProtoEnum(Name = "TaskOper_Add", Value = 2)] + TaskOper_Add, + [ProtoEnum(Name = "TaskOper_Del", Value = 3)] + TaskOper_Del + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs.meta new file mode 100644 index 00000000..be5e22a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskOper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ef30fc7a588585469fdf625c64dba80 +timeCreated: 1611404007 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskRefreshNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskRefreshNtf.cs new file mode 100644 index 00000000..5e3cfd68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskRefreshNtf.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskRefreshNtf")] + [Serializable] + public class TaskRefreshNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "remain_refresh_count", DataFormat = DataFormat.TwosComplement)] + public uint remain_refresh_count + { + get + { + return this._remain_refresh_count ?? 0u; + } + set + { + this._remain_refresh_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool remain_refresh_countSpecified + { + get + { + return this._remain_refresh_count != null; + } + set + { + bool flag = value == (this._remain_refresh_count == null); + if (flag) + { + this._remain_refresh_count = (value ? new uint?(this.remain_refresh_count) : null); + } + } + } + + private uint? _score; + + private uint? _remain_refresh_count; + + private IExtension extensionObject; + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializeremain_refresh_count() + { + return this.remain_refresh_countSpecified; + } + + private void Resetremain_refresh_count() + { + this.remain_refresh_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskRefreshNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskRefreshNtf.cs.meta new file mode 100644 index 00000000..b966472e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskRefreshNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f4e0fe40b01e5b43b750fb89af7186d +timeCreated: 1611404245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskStatus.cs b/Client/Assets/Scripts/XMainClient/KKSG/TaskStatus.cs new file mode 100644 index 00000000..dd611c32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskStatus.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TaskStatus")] + public enum TaskStatus + { + [ProtoEnum(Name = "TaskStatus_CanTake", Value = 1)] + TaskStatus_CanTake = 1, + [ProtoEnum(Name = "TaskStatus_Taked", Value = 2)] + TaskStatus_Taked, + [ProtoEnum(Name = "TaskStatus_Finish", Value = 3)] + TaskStatus_Finish, + [ProtoEnum(Name = "TaskStatus_Over", Value = 4)] + TaskStatus_Over + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TaskStatus.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TaskStatus.cs.meta new file mode 100644 index 00000000..e3119680 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TaskStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73469f87a65c07a43a5214d6e0be5d40 +timeCreated: 1611403940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamBrief.cs new file mode 100644 index 00000000..a6f78650 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamBrief.cs @@ -0,0 +1,551 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamBrief")] + [Serializable] + public class TeamBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamID", DataFormat = DataFormat.TwosComplement)] + public int teamID + { + get + { + return this._teamID ?? 0; + } + set + { + this._teamID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamIDSpecified + { + get + { + return this._teamID != null; + } + set + { + bool flag = value == (this._teamID == null); + if (flag) + { + this._teamID = (value ? new int?(this.teamID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "teamMemberCount", DataFormat = DataFormat.TwosComplement)] + public int teamMemberCount + { + get + { + return this._teamMemberCount ?? 0; + } + set + { + this._teamMemberCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamMemberCountSpecified + { + get + { + return this._teamMemberCount != null; + } + set + { + bool flag = value == (this._teamMemberCount == null); + if (flag) + { + this._teamMemberCount = (value ? new int?(this.teamMemberCount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "teamState", DataFormat = DataFormat.TwosComplement)] + public int teamState + { + get + { + return this._teamState ?? 0; + } + set + { + this._teamState = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamStateSpecified + { + get + { + return this._teamState != null; + } + set + { + bool flag = value == (this._teamState == null); + if (flag) + { + this._teamState = (value ? new int?(this.teamState) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "leaderName", DataFormat = DataFormat.Default)] + public string leaderName + { + get + { + return this._leaderName ?? ""; + } + set + { + this._leaderName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderNameSpecified + { + get + { + return this._leaderName != null; + } + set + { + bool flag = value == (this._leaderName == null); + if (flag) + { + this._leaderName = (value ? this.leaderName : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "expID", DataFormat = DataFormat.TwosComplement)] + public uint expID + { + get + { + return this._expID ?? 0u; + } + set + { + this._expID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expIDSpecified + { + get + { + return this._expID != null; + } + set + { + bool flag = value == (this._expID == null); + if (flag) + { + this._expID = (value ? new uint?(this.expID) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "haspassword", DataFormat = DataFormat.Default)] + public bool haspassword + { + get + { + return this._haspassword ?? false; + } + set + { + this._haspassword = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool haspasswordSpecified + { + get + { + return this._haspassword != null; + } + set + { + bool flag = value == (this._haspassword == null); + if (flag) + { + this._haspassword = (value ? new bool?(this.haspassword) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "leaderLevel", DataFormat = DataFormat.TwosComplement)] + public uint leaderLevel + { + get + { + return this._leaderLevel ?? 0u; + } + set + { + this._leaderLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderLevelSpecified + { + get + { + return this._leaderLevel != null; + } + set + { + bool flag = value == (this._leaderLevel == null); + if (flag) + { + this._leaderLevel = (value ? new uint?(this.leaderLevel) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "leaderPowerPoint", DataFormat = DataFormat.TwosComplement)] + public uint leaderPowerPoint + { + get + { + return this._leaderPowerPoint ?? 0u; + } + set + { + this._leaderPowerPoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderPowerPointSpecified + { + get + { + return this._leaderPowerPoint != null; + } + set + { + bool flag = value == (this._leaderPowerPoint == null); + if (flag) + { + this._leaderPowerPoint = (value ? new uint?(this.leaderPowerPoint) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "leaderProfession", DataFormat = DataFormat.TwosComplement)] + public RoleType leaderProfession + { + get + { + return this._leaderProfession ?? RoleType.Role_INVALID; + } + set + { + this._leaderProfession = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leaderProfessionSpecified + { + get + { + return this._leaderProfession != null; + } + set + { + bool flag = value == (this._leaderProfession == null); + if (flag) + { + this._leaderProfession = (value ? new RoleType?(this.leaderProfession) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "extrainfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TeamExtraInfo extrainfo + { + get + { + return this._extrainfo; + } + set + { + this._extrainfo = value; + } + } + + [ProtoMember(11, IsRequired = false, Name = "password", DataFormat = DataFormat.Default)] + public string password + { + get + { + return this._password ?? ""; + } + set + { + this._password = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passwordSpecified + { + get + { + return this._password != null; + } + set + { + bool flag = value == (this._password == null); + if (flag) + { + this._password = (value ? this.password : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "matchtype", DataFormat = DataFormat.TwosComplement)] + public KMatchType matchtype + { + get + { + return this._matchtype ?? KMatchType.KMT_NONE; + } + set + { + this._matchtype = new KMatchType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool matchtypeSpecified + { + get + { + return this._matchtype != null; + } + set + { + bool flag = value == (this._matchtype == null); + if (flag) + { + this._matchtype = (value ? new KMatchType?(this.matchtype) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "kingback", DataFormat = DataFormat.Default)] + public bool kingback + { + get + { + return this._kingback ?? false; + } + set + { + this._kingback = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kingbackSpecified + { + get + { + return this._kingback != null; + } + set + { + bool flag = value == (this._kingback == null); + if (flag) + { + this._kingback = (value ? new bool?(this.kingback) : null); + } + } + } + + private int? _teamID; + + private int? _teamMemberCount; + + private int? _teamState; + + private string _leaderName; + + private uint? _expID; + + private bool? _haspassword; + + private uint? _leaderLevel; + + private uint? _leaderPowerPoint; + + private RoleType? _leaderProfession; + + private TeamExtraInfo _extrainfo = null; + + private string _password; + + private KMatchType? _matchtype; + + private bool? _kingback; + + private IExtension extensionObject; + + private bool ShouldSerializeteamID() + { + return this.teamIDSpecified; + } + + private void ResetteamID() + { + this.teamIDSpecified = false; + } + + private bool ShouldSerializeteamMemberCount() + { + return this.teamMemberCountSpecified; + } + + private void ResetteamMemberCount() + { + this.teamMemberCountSpecified = false; + } + + private bool ShouldSerializeteamState() + { + return this.teamStateSpecified; + } + + private void ResetteamState() + { + this.teamStateSpecified = false; + } + + private bool ShouldSerializeleaderName() + { + return this.leaderNameSpecified; + } + + private void ResetleaderName() + { + this.leaderNameSpecified = false; + } + + private bool ShouldSerializeexpID() + { + return this.expIDSpecified; + } + + private void ResetexpID() + { + this.expIDSpecified = false; + } + + private bool ShouldSerializehaspassword() + { + return this.haspasswordSpecified; + } + + private void Resethaspassword() + { + this.haspasswordSpecified = false; + } + + private bool ShouldSerializeleaderLevel() + { + return this.leaderLevelSpecified; + } + + private void ResetleaderLevel() + { + this.leaderLevelSpecified = false; + } + + private bool ShouldSerializeleaderPowerPoint() + { + return this.leaderPowerPointSpecified; + } + + private void ResetleaderPowerPoint() + { + this.leaderPowerPointSpecified = false; + } + + private bool ShouldSerializeleaderProfession() + { + return this.leaderProfessionSpecified; + } + + private void ResetleaderProfession() + { + this.leaderProfessionSpecified = false; + } + + private bool ShouldSerializepassword() + { + return this.passwordSpecified; + } + + private void Resetpassword() + { + this.passwordSpecified = false; + } + + private bool ShouldSerializematchtype() + { + return this.matchtypeSpecified; + } + + private void Resetmatchtype() + { + this.matchtypeSpecified = false; + } + + private bool ShouldSerializekingback() + { + return this.kingbackSpecified; + } + + private void Resetkingback() + { + this.kingbackSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamBrief.cs.meta new file mode 100644 index 00000000..f9e2cc79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c25582d6793ba14bb2e3126a04d4cb8 +timeCreated: 1611404098 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamChanged.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamChanged.cs new file mode 100644 index 00000000..a72789d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamChanged.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamChanged")] + [Serializable] + public class TeamChanged : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamBrief", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TeamBrief teamBrief + { + get + { + return this._teamBrief; + } + set + { + this._teamBrief = value; + } + } + + [ProtoMember(2, Name = "leaveMember", DataFormat = DataFormat.TwosComplement)] + public List leaveMember + { + get + { + return this._leaveMember; + } + } + + [ProtoMember(3, Name = "addMember", DataFormat = DataFormat.Default)] + public List addMember + { + get + { + return this._addMember; + } + } + + [ProtoMember(4, Name = "chgstateMember", DataFormat = DataFormat.Default)] + public List chgstateMember + { + get + { + return this._chgstateMember; + } + } + + private TeamBrief _teamBrief = null; + + private readonly List _leaveMember = new List(); + + private readonly List _addMember = new List(); + + private readonly List _chgstateMember = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamChanged.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamChanged.cs.meta new file mode 100644 index 00000000..7b970ec7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b609df3089f2f749bf40c3892622b8f +timeCreated: 1611403167 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamCountClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamCountClient.cs new file mode 100644 index 00000000..afb9318c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamCountClient.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamCountClient")] + [Serializable] + public class TeamCountClient : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamtype", DataFormat = DataFormat.TwosComplement)] + public int teamtype + { + get + { + return this._teamtype ?? 0; + } + set + { + this._teamtype = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamtypeSpecified + { + get + { + return this._teamtype != null; + } + set + { + bool flag = value == (this._teamtype == null); + if (flag) + { + this._teamtype = (value ? new int?(this.teamtype) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "leftcount", DataFormat = DataFormat.TwosComplement)] + public int leftcount + { + get + { + return this._leftcount ?? 0; + } + set + { + this._leftcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftcountSpecified + { + get + { + return this._leftcount != null; + } + set + { + bool flag = value == (this._leftcount == null); + if (flag) + { + this._leftcount = (value ? new int?(this.leftcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "buycount", DataFormat = DataFormat.TwosComplement)] + public int buycount + { + get + { + return this._buycount ?? 0; + } + set + { + this._buycount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buycountSpecified + { + get + { + return this._buycount != null; + } + set + { + bool flag = value == (this._buycount == null); + if (flag) + { + this._buycount = (value ? new int?(this.buycount) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "maxcount", DataFormat = DataFormat.TwosComplement)] + public int maxcount + { + get + { + return this._maxcount ?? 0; + } + set + { + this._maxcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxcountSpecified + { + get + { + return this._maxcount != null; + } + set + { + bool flag = value == (this._maxcount == null); + if (flag) + { + this._maxcount = (value ? new int?(this.maxcount) : null); + } + } + } + + private int? _teamtype; + + private int? _leftcount; + + private int? _buycount; + + private int? _maxcount; + + private IExtension extensionObject; + + private bool ShouldSerializeteamtype() + { + return this.teamtypeSpecified; + } + + private void Resetteamtype() + { + this.teamtypeSpecified = false; + } + + private bool ShouldSerializeleftcount() + { + return this.leftcountSpecified; + } + + private void Resetleftcount() + { + this.leftcountSpecified = false; + } + + private bool ShouldSerializebuycount() + { + return this.buycountSpecified; + } + + private void Resetbuycount() + { + this.buycountSpecified = false; + } + + private bool ShouldSerializemaxcount() + { + return this.maxcountSpecified; + } + + private void Resetmaxcount() + { + this.maxcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamCountClient.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamCountClient.cs.meta new file mode 100644 index 00000000..40b7df88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamCountClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90536356d8a8a9549a83edd1ce7d95f9 +timeCreated: 1611404137 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamCountInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamCountInfo.cs new file mode 100644 index 00000000..dae24a7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamCountInfo.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamCountInfo")] + [Serializable] + public class TeamCountInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamType", DataFormat = DataFormat.TwosComplement)] + public int teamType + { + get + { + return this._teamType ?? 0; + } + set + { + this._teamType = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamTypeSpecified + { + get + { + return this._teamType != null; + } + set + { + bool flag = value == (this._teamType == null); + if (flag) + { + this._teamType = (value ? new int?(this.teamType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "finishCountToday", DataFormat = DataFormat.TwosComplement)] + public int finishCountToday + { + get + { + return this._finishCountToday ?? 0; + } + set + { + this._finishCountToday = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool finishCountTodaySpecified + { + get + { + return this._finishCountToday != null; + } + set + { + bool flag = value == (this._finishCountToday == null); + if (flag) + { + this._finishCountToday = (value ? new int?(this.finishCountToday) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "buyCountToday", DataFormat = DataFormat.TwosComplement)] + public int buyCountToday + { + get + { + return this._buyCountToday ?? 0; + } + set + { + this._buyCountToday = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool buyCountTodaySpecified + { + get + { + return this._buyCountToday != null; + } + set + { + bool flag = value == (this._buyCountToday == null); + if (flag) + { + this._buyCountToday = (value ? new int?(this.buyCountToday) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "extraAddCount", DataFormat = DataFormat.TwosComplement)] + public int extraAddCount + { + get + { + return this._extraAddCount ?? 0; + } + set + { + this._extraAddCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extraAddCountSpecified + { + get + { + return this._extraAddCount != null; + } + set + { + bool flag = value == (this._extraAddCount == null); + if (flag) + { + this._extraAddCount = (value ? new int?(this.extraAddCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "helpcount", DataFormat = DataFormat.TwosComplement)] + public uint helpcount + { + get + { + return this._helpcount ?? 0u; + } + set + { + this._helpcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool helpcountSpecified + { + get + { + return this._helpcount != null; + } + set + { + bool flag = value == (this._helpcount == null); + if (flag) + { + this._helpcount = (value ? new uint?(this.helpcount) : null); + } + } + } + + private int? _teamType; + + private int? _finishCountToday; + + private int? _buyCountToday; + + private int? _extraAddCount; + + private uint? _helpcount; + + private IExtension extensionObject; + + private bool ShouldSerializeteamType() + { + return this.teamTypeSpecified; + } + + private void ResetteamType() + { + this.teamTypeSpecified = false; + } + + private bool ShouldSerializefinishCountToday() + { + return this.finishCountTodaySpecified; + } + + private void ResetfinishCountToday() + { + this.finishCountTodaySpecified = false; + } + + private bool ShouldSerializebuyCountToday() + { + return this.buyCountTodaySpecified; + } + + private void ResetbuyCountToday() + { + this.buyCountTodaySpecified = false; + } + + private bool ShouldSerializeextraAddCount() + { + return this.extraAddCountSpecified; + } + + private void ResetextraAddCount() + { + this.extraAddCountSpecified = false; + } + + private bool ShouldSerializehelpcount() + { + return this.helpcountSpecified; + } + + private void Resethelpcount() + { + this.helpcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamCountInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamCountInfo.cs.meta new file mode 100644 index 00000000..9dc4c3fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamCountInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9cde55c13e83f3a44a48bac0b21ef69b +timeCreated: 1611404234 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamEventG2M.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamEventG2M.cs new file mode 100644 index 00000000..eb9e150f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamEventG2M.cs @@ -0,0 +1,12 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamEventG2M")] + public enum TeamEventG2M + { + [ProtoEnum(Name = "TEAM_EVENT_BUYCOUNT", Value = 1)] + TEAM_EVENT_BUYCOUNT = 1 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamEventG2M.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamEventG2M.cs.meta new file mode 100644 index 00000000..3e0a7636 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamEventG2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c111114e155ae494b8db73c11829faab +timeCreated: 1611404488 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamExtraInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamExtraInfo.cs new file mode 100644 index 00000000..6513f53e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamExtraInfo.cs @@ -0,0 +1,164 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamExtraInfo")] + [Serializable] + public class TeamExtraInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "pptlimit", DataFormat = DataFormat.TwosComplement)] + public uint pptlimit + { + get + { + return this._pptlimit ?? 0u; + } + set + { + this._pptlimit = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptlimitSpecified + { + get + { + return this._pptlimit != null; + } + set + { + bool flag = value == (this._pptlimit == null); + if (flag) + { + this._pptlimit = (value ? new uint?(this.pptlimit) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "costindex", DataFormat = DataFormat.TwosComplement)] + public uint costindex + { + get + { + return this._costindex ?? 0u; + } + set + { + this._costindex = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool costindexSpecified + { + get + { + return this._costindex != null; + } + set + { + bool flag = value == (this._costindex == null); + if (flag) + { + this._costindex = (value ? new uint?(this.costindex) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "league_teamname", DataFormat = DataFormat.Default)] + public string league_teamname + { + get + { + return this._league_teamname ?? ""; + } + set + { + this._league_teamname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamnameSpecified + { + get + { + return this._league_teamname != null; + } + set + { + bool flag = value == (this._league_teamname == null); + if (flag) + { + this._league_teamname = (value ? this.league_teamname : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rift", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TeamSynRift rift + { + get + { + return this._rift; + } + set + { + this._rift = value; + } + } + + private uint? _pptlimit; + + private uint? _costindex; + + private string _league_teamname; + + private TeamSynRift _rift = null; + + private IExtension extensionObject; + + private bool ShouldSerializepptlimit() + { + return this.pptlimitSpecified; + } + + private void Resetpptlimit() + { + this.pptlimitSpecified = false; + } + + private bool ShouldSerializecostindex() + { + return this.costindexSpecified; + } + + private void Resetcostindex() + { + this.costindexSpecified = false; + } + + private bool ShouldSerializeleague_teamname() + { + return this.league_teamnameSpecified; + } + + private void Resetleague_teamname() + { + this.league_teamnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamExtraInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamExtraInfo.cs.meta new file mode 100644 index 00000000..b289f13b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamExtraInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b9a4d5b45fc90444ae2b67150150fa3 +timeCreated: 1611403599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamFullDataNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamFullDataNtf.cs new file mode 100644 index 00000000..1cc2d9bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamFullDataNtf.cs @@ -0,0 +1,90 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamFullDataNtf")] + [Serializable] + public class TeamFullDataNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hasTeam", DataFormat = DataFormat.Default)] + public bool hasTeam + { + get + { + return this._hasTeam ?? false; + } + set + { + this._hasTeam = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasTeamSpecified + { + get + { + return this._hasTeam != null; + } + set + { + bool flag = value == (this._hasTeam == null); + if (flag) + { + this._hasTeam = (value ? new bool?(this.hasTeam) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "teamBrief", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TeamBrief teamBrief + { + get + { + return this._teamBrief; + } + set + { + this._teamBrief = value; + } + } + + [ProtoMember(3, Name = "members", DataFormat = DataFormat.Default)] + public List members + { + get + { + return this._members; + } + } + + private bool? _hasTeam; + + private TeamBrief _teamBrief = null; + + private readonly List _members = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializehasTeam() + { + return this.hasTeamSpecified; + } + + private void ResethasTeam() + { + this.hasTeamSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamFullDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamFullDataNtf.cs.meta new file mode 100644 index 00000000..ea637c50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamFullDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 987a77b76571ac6458825de23a8d1868 +timeCreated: 1611404191 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs new file mode 100644 index 00000000..8094e07f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs @@ -0,0 +1,578 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamInvRoleInfo")] + [Serializable] + public class TeamInvRoleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "userID", DataFormat = DataFormat.TwosComplement)] + public ulong userID + { + get + { + return this._userID ?? 0UL; + } + set + { + this._userID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool userIDSpecified + { + get + { + return this._userID != null; + } + set + { + bool flag = value == (this._userID == null); + if (flag) + { + this._userID = (value ? new ulong?(this.userID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "userName", DataFormat = DataFormat.Default)] + public string userName + { + get + { + return this._userName ?? ""; + } + set + { + this._userName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool userNameSpecified + { + get + { + return this._userName != null; + } + set + { + bool flag = value == (this._userName == null); + if (flag) + { + this._userName = (value ? this.userName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "userLevel", DataFormat = DataFormat.TwosComplement)] + public uint userLevel + { + get + { + return this._userLevel ?? 0u; + } + set + { + this._userLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool userLevelSpecified + { + get + { + return this._userLevel != null; + } + set + { + bool flag = value == (this._userLevel == null); + if (flag) + { + this._userLevel = (value ? new uint?(this.userLevel) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "userVip", DataFormat = DataFormat.TwosComplement)] + public uint userVip + { + get + { + return this._userVip ?? 0u; + } + set + { + this._userVip = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool userVipSpecified + { + get + { + return this._userVip != null; + } + set + { + bool flag = value == (this._userVip == null); + if (flag) + { + this._userVip = (value ? new uint?(this.userVip) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "userPowerPoint", DataFormat = DataFormat.TwosComplement)] + public uint userPowerPoint + { + get + { + return this._userPowerPoint ?? 0u; + } + set + { + this._userPowerPoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool userPowerPointSpecified + { + get + { + return this._userPowerPoint != null; + } + set + { + bool flag = value == (this._userPowerPoint == null); + if (flag) + { + this._userPowerPoint = (value ? new uint?(this.userPowerPoint) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "guildName", DataFormat = DataFormat.Default)] + public string guildName + { + get + { + return this._guildName ?? ""; + } + set + { + this._guildName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildNameSpecified + { + get + { + return this._guildName != null; + } + set + { + bool flag = value == (this._guildName == null); + if (flag) + { + this._guildName = (value ? this.guildName : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "degree", DataFormat = DataFormat.TwosComplement)] + public uint degree + { + get + { + return this._degree ?? 0u; + } + set + { + this._degree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool degreeSpecified + { + get + { + return this._degree != null; + } + set + { + bool flag = value == (this._degree == null); + if (flag) + { + this._degree = (value ? new uint?(this.degree) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public int profession + { + get + { + return this._profession ?? 0; + } + set + { + this._profession = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new int?(this.profession) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "teamguildid", DataFormat = DataFormat.TwosComplement)] + public ulong teamguildid + { + get + { + return this._teamguildid ?? 0UL; + } + set + { + this._teamguildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamguildidSpecified + { + get + { + return this._teamguildid != null; + } + set + { + bool flag = value == (this._teamguildid == null); + if (flag) + { + this._teamguildid = (value ? new ulong?(this.teamguildid) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "roleguildid", DataFormat = DataFormat.TwosComplement)] + public ulong roleguildid + { + get + { + return this._roleguildid ?? 0UL; + } + set + { + this._roleguildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleguildidSpecified + { + get + { + return this._roleguildid != null; + } + set + { + bool flag = value == (this._roleguildid == null); + if (flag) + { + this._roleguildid = (value ? new ulong?(this.roleguildid) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "roledragonguildid", DataFormat = DataFormat.TwosComplement)] + public ulong roledragonguildid + { + get + { + return this._roledragonguildid ?? 0UL; + } + set + { + this._roledragonguildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roledragonguildidSpecified + { + get + { + return this._roledragonguildid != null; + } + set + { + bool flag = value == (this._roledragonguildid == null); + if (flag) + { + this._roledragonguildid = (value ? new ulong?(this.roledragonguildid) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public TeamInvRoleState state + { + get + { + return this._state ?? TeamInvRoleState.TIRS_IN_OTHER_TEAM; + } + set + { + this._state = new TeamInvRoleState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new TeamInvRoleState?(this.state) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "wanthelp", DataFormat = DataFormat.Default)] + public bool wanthelp + { + get + { + return this._wanthelp ?? false; + } + set + { + this._wanthelp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wanthelpSpecified + { + get + { + return this._wanthelp != null; + } + set + { + bool flag = value == (this._wanthelp == null); + if (flag) + { + this._wanthelp = (value ? new bool?(this.wanthelp) : null); + } + } + } + + private ulong? _userID; + + private string _userName; + + private uint? _userLevel; + + private uint? _userVip; + + private uint? _userPowerPoint; + + private string _guildName; + + private uint? _degree; + + private int? _profession; + + private ulong? _teamguildid; + + private ulong? _roleguildid; + + private ulong? _roledragonguildid; + + private TeamInvRoleState? _state; + + private bool? _wanthelp; + + private IExtension extensionObject; + + private bool ShouldSerializeuserID() + { + return this.userIDSpecified; + } + + private void ResetuserID() + { + this.userIDSpecified = false; + } + + private bool ShouldSerializeuserName() + { + return this.userNameSpecified; + } + + private void ResetuserName() + { + this.userNameSpecified = false; + } + + private bool ShouldSerializeuserLevel() + { + return this.userLevelSpecified; + } + + private void ResetuserLevel() + { + this.userLevelSpecified = false; + } + + private bool ShouldSerializeuserVip() + { + return this.userVipSpecified; + } + + private void ResetuserVip() + { + this.userVipSpecified = false; + } + + private bool ShouldSerializeuserPowerPoint() + { + return this.userPowerPointSpecified; + } + + private void ResetuserPowerPoint() + { + this.userPowerPointSpecified = false; + } + + private bool ShouldSerializeguildName() + { + return this.guildNameSpecified; + } + + private void ResetguildName() + { + this.guildNameSpecified = false; + } + + private bool ShouldSerializedegree() + { + return this.degreeSpecified; + } + + private void Resetdegree() + { + this.degreeSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializeteamguildid() + { + return this.teamguildidSpecified; + } + + private void Resetteamguildid() + { + this.teamguildidSpecified = false; + } + + private bool ShouldSerializeroleguildid() + { + return this.roleguildidSpecified; + } + + private void Resetroleguildid() + { + this.roleguildidSpecified = false; + } + + private bool ShouldSerializeroledragonguildid() + { + return this.roledragonguildidSpecified; + } + + private void Resetroledragonguildid() + { + this.roledragonguildidSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializewanthelp() + { + return this.wanthelpSpecified; + } + + private void Resetwanthelp() + { + this.wanthelpSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs.meta new file mode 100644 index 00000000..576f575c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12b1a5eef61f7e84787dcbb06c8b751c +timeCreated: 1611403242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleState.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleState.cs new file mode 100644 index 00000000..56f7e3d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleState.cs @@ -0,0 +1,24 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamInvRoleState")] + public enum TeamInvRoleState + { + [ProtoEnum(Name = "TIRS_IN_OTHER_TEAM", Value = 1)] + TIRS_IN_OTHER_TEAM = 1, + [ProtoEnum(Name = "TIRS_IN_MY_TEAM", Value = 2)] + TIRS_IN_MY_TEAM, + [ProtoEnum(Name = "TIRS_IN_BATTLE", Value = 3)] + TIRS_IN_BATTLE, + [ProtoEnum(Name = "TIRS_NORMAL", Value = 4)] + TIRS_NORMAL, + [ProtoEnum(Name = "TIRS_NOT_OPEN", Value = 5)] + TIRS_NOT_OPEN, + [ProtoEnum(Name = "TIRS_COUNT_LESS", Value = 6)] + TIRS_COUNT_LESS, + [ProtoEnum(Name = "TIRS_FATIGUE_LESS", Value = 7)] + TIRS_FATIGUE_LESS + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleState.cs.meta new file mode 100644 index 00000000..c4485079 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvRoleState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aeeb840fe492f9a449d8a8f836a9e297 +timeCreated: 1611404341 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInvite.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvite.cs new file mode 100644 index 00000000..f6f0182d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvite.cs @@ -0,0 +1,336 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamInvite")] + [Serializable] + public class TeamInvite : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "inviteID", DataFormat = DataFormat.TwosComplement)] + public uint inviteID + { + get + { + return this._inviteID ?? 0u; + } + set + { + this._inviteID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inviteIDSpecified + { + get + { + return this._inviteID != null; + } + set + { + bool flag = value == (this._inviteID == null); + if (flag) + { + this._inviteID = (value ? new uint?(this.inviteID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "invTime", DataFormat = DataFormat.TwosComplement)] + public uint invTime + { + get + { + return this._invTime ?? 0u; + } + set + { + this._invTime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invTimeSpecified + { + get + { + return this._invTime != null; + } + set + { + bool flag = value == (this._invTime == null); + if (flag) + { + this._invTime = (value ? new uint?(this.invTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "invguildid", DataFormat = DataFormat.TwosComplement)] + public ulong invguildid + { + get + { + return this._invguildid ?? 0UL; + } + set + { + this._invguildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invguildidSpecified + { + get + { + return this._invguildid != null; + } + set + { + bool flag = value == (this._invguildid == null); + if (flag) + { + this._invguildid = (value ? new ulong?(this.invguildid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "invdragonguildid", DataFormat = DataFormat.TwosComplement)] + public ulong invdragonguildid + { + get + { + return this._invdragonguildid ?? 0UL; + } + set + { + this._invdragonguildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invdragonguildidSpecified + { + get + { + return this._invdragonguildid != null; + } + set + { + bool flag = value == (this._invdragonguildid == null); + if (flag) + { + this._invdragonguildid = (value ? new ulong?(this.invdragonguildid) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "invfromroleid", DataFormat = DataFormat.TwosComplement)] + public ulong invfromroleid + { + get + { + return this._invfromroleid ?? 0UL; + } + set + { + this._invfromroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invfromroleidSpecified + { + get + { + return this._invfromroleid != null; + } + set + { + bool flag = value == (this._invfromroleid == null); + if (flag) + { + this._invfromroleid = (value ? new ulong?(this.invfromroleid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "invtoroleid", DataFormat = DataFormat.TwosComplement)] + public ulong invtoroleid + { + get + { + return this._invtoroleid ?? 0UL; + } + set + { + this._invtoroleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invtoroleidSpecified + { + get + { + return this._invtoroleid != null; + } + set + { + bool flag = value == (this._invtoroleid == null); + if (flag) + { + this._invtoroleid = (value ? new ulong?(this.invtoroleid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "invfromrolename", DataFormat = DataFormat.Default)] + public string invfromrolename + { + get + { + return this._invfromrolename ?? ""; + } + set + { + this._invfromrolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool invfromrolenameSpecified + { + get + { + return this._invfromrolename != null; + } + set + { + bool flag = value == (this._invfromrolename == null); + if (flag) + { + this._invfromrolename = (value ? this.invfromrolename : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "teambrief", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TeamBrief teambrief + { + get + { + return this._teambrief; + } + set + { + this._teambrief = value; + } + } + + private uint? _inviteID; + + private uint? _invTime; + + private ulong? _invguildid; + + private ulong? _invdragonguildid; + + private ulong? _invfromroleid; + + private ulong? _invtoroleid; + + private string _invfromrolename; + + private TeamBrief _teambrief = null; + + private IExtension extensionObject; + + private bool ShouldSerializeinviteID() + { + return this.inviteIDSpecified; + } + + private void ResetinviteID() + { + this.inviteIDSpecified = false; + } + + private bool ShouldSerializeinvTime() + { + return this.invTimeSpecified; + } + + private void ResetinvTime() + { + this.invTimeSpecified = false; + } + + private bool ShouldSerializeinvguildid() + { + return this.invguildidSpecified; + } + + private void Resetinvguildid() + { + this.invguildidSpecified = false; + } + + private bool ShouldSerializeinvdragonguildid() + { + return this.invdragonguildidSpecified; + } + + private void Resetinvdragonguildid() + { + this.invdragonguildidSpecified = false; + } + + private bool ShouldSerializeinvfromroleid() + { + return this.invfromroleidSpecified; + } + + private void Resetinvfromroleid() + { + this.invfromroleidSpecified = false; + } + + private bool ShouldSerializeinvtoroleid() + { + return this.invtoroleidSpecified; + } + + private void Resetinvtoroleid() + { + this.invtoroleidSpecified = false; + } + + private bool ShouldSerializeinvfromrolename() + { + return this.invfromrolenameSpecified; + } + + private void Resetinvfromrolename() + { + this.invfromrolenameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInvite.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvite.cs.meta new file mode 100644 index 00000000..cec6c0b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInvite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4df313b11e2ba0940a57230165d76dcb +timeCreated: 1611403697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteAck.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteAck.cs new file mode 100644 index 00000000..be727d4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteAck.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamInviteAck")] + [Serializable] + public class TeamInviteAck : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "accept", DataFormat = DataFormat.Default)] + public bool accept + { + get + { + return this._accept ?? false; + } + set + { + this._accept = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool acceptSpecified + { + get + { + return this._accept != null; + } + set + { + bool flag = value == (this._accept == null); + if (flag) + { + this._accept = (value ? new bool?(this.accept) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "inviteid", DataFormat = DataFormat.TwosComplement)] + public uint inviteid + { + get + { + return this._inviteid ?? 0u; + } + set + { + this._inviteid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool inviteidSpecified + { + get + { + return this._inviteid != null; + } + set + { + bool flag = value == (this._inviteid == null); + if (flag) + { + this._inviteid = (value ? new uint?(this.inviteid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "password", DataFormat = DataFormat.Default)] + public string password + { + get + { + return this._password ?? ""; + } + set + { + this._password = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passwordSpecified + { + get + { + return this._password != null; + } + set + { + bool flag = value == (this._password == null); + if (flag) + { + this._password = (value ? this.password : null); + } + } + } + + private bool? _accept; + + private uint? _inviteid; + + private string _password; + + private IExtension extensionObject; + + private bool ShouldSerializeaccept() + { + return this.acceptSpecified; + } + + private void Resetaccept() + { + this.acceptSpecified = false; + } + + private bool ShouldSerializeinviteid() + { + return this.inviteidSpecified; + } + + private void Resetinviteid() + { + this.inviteidSpecified = false; + } + + private bool ShouldSerializepassword() + { + return this.passwordSpecified; + } + + private void Resetpassword() + { + this.passwordSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteAck.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteAck.cs.meta new file mode 100644 index 00000000..8ad60e5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteAck.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc4e1ef9767bab547bf029cca050db82 +timeCreated: 1611404677 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteArg.cs new file mode 100644 index 00000000..2301a8b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamInviteArg")] + [Serializable] + public class TeamInviteArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "expid", DataFormat = DataFormat.TwosComplement)] + public int expid + { + get + { + return this._expid ?? 0; + } + set + { + this._expid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expidSpecified + { + get + { + return this._expid != null; + } + set + { + bool flag = value == (this._expid == null); + if (flag) + { + this._expid = (value ? new int?(this.expid) : null); + } + } + } + + private int? _expid; + + private IExtension extensionObject; + + private bool ShouldSerializeexpid() + { + return this.expidSpecified; + } + + private void Resetexpid() + { + this.expidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteArg.cs.meta new file mode 100644 index 00000000..7d438e02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce9ef25dd9589404a89368af07d74949 +timeCreated: 1611404579 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteRes.cs new file mode 100644 index 00000000..1478b61f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteRes.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamInviteRes")] + [Serializable] + public class TeamInviteRes : IExtensible + { + [ProtoMember(1, Name = "friend", DataFormat = DataFormat.Default)] + public List friend + { + get + { + return this._friend; + } + } + + [ProtoMember(2, Name = "guild", DataFormat = DataFormat.Default)] + public List guild + { + get + { + return this._guild; + } + } + + [ProtoMember(3, Name = "rec", DataFormat = DataFormat.Default)] + public List rec + { + get + { + return this._rec; + } + } + + [ProtoMember(4, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errcode + { + get + { + return this._errcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errcodeSpecified + { + get + { + return this._errcode != null; + } + set + { + bool flag = value == (this._errcode == null); + if (flag) + { + this._errcode = (value ? new ErrorCode?(this.errcode) : null); + } + } + } + + private readonly List _friend = new List(); + + private readonly List _guild = new List(); + + private readonly List _rec = new List(); + + private ErrorCode? _errcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrcode() + { + return this.errcodeSpecified; + } + + private void Reseterrcode() + { + this.errcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteRes.cs.meta new file mode 100644 index 00000000..2722eb10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamInviteRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de6c0ee7c4fcb90459d82b0b142f8a9e +timeCreated: 1611404686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamMember.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamMember.cs new file mode 100644 index 00000000..d7770dcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamMember.cs @@ -0,0 +1,778 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamMember")] + [Serializable] + public class TeamMember : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "memberID", DataFormat = DataFormat.TwosComplement)] + public ulong memberID + { + get + { + return this._memberID ?? 0UL; + } + set + { + this._memberID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberIDSpecified + { + get + { + return this._memberID != null; + } + set + { + bool flag = value == (this._memberID == null); + if (flag) + { + this._memberID = (value ? new ulong?(this.memberID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public RoleType profession + { + get + { + return this._profession ?? RoleType.Role_INVALID; + } + set + { + this._profession = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new RoleType?(this.profession) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public int level + { + get + { + return this._level ?? 0; + } + set + { + this._level = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new int?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "powerpoint", DataFormat = DataFormat.TwosComplement)] + public uint powerpoint + { + get + { + return this._powerpoint ?? 0u; + } + set + { + this._powerpoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool powerpointSpecified + { + get + { + return this._powerpoint != null; + } + set + { + bool flag = value == (this._powerpoint == null); + if (flag) + { + this._powerpoint = (value ? new uint?(this.powerpoint) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public int state + { + get + { + return this._state ?? 0; + } + set + { + this._state = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new int?(this.state) : null); + } + } + } + + [ProtoMember(7, Name = "fashion", DataFormat = DataFormat.TwosComplement)] + public List fashion + { + get + { + return this._fashion; + } + } + + [ProtoMember(8, IsRequired = false, Name = "sceneID", DataFormat = DataFormat.TwosComplement)] + public uint sceneID + { + get + { + return this._sceneID ?? 0u; + } + set + { + this._sceneID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sceneIDSpecified + { + get + { + return this._sceneID != null; + } + set + { + bool flag = value == (this._sceneID == null); + if (flag) + { + this._sceneID = (value ? new uint?(this.sceneID) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "leftcount", DataFormat = DataFormat.TwosComplement)] + public int leftcount + { + get + { + return this._leftcount ?? 0; + } + set + { + this._leftcount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftcountSpecified + { + get + { + return this._leftcount != null; + } + set + { + bool flag = value == (this._leftcount == null); + if (flag) + { + this._leftcount = (value ? new int?(this.leftcount) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "robot", DataFormat = DataFormat.Default)] + public bool robot + { + get + { + return this._robot ?? false; + } + set + { + this._robot = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool robotSpecified + { + get + { + return this._robot != null; + } + set + { + bool flag = value == (this._robot == null); + if (flag) + { + this._robot = (value ? new bool?(this.robot) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "dragonguildid", DataFormat = DataFormat.TwosComplement)] + public ulong dragonguildid + { + get + { + return this._dragonguildid ?? 0UL; + } + set + { + this._dragonguildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool dragonguildidSpecified + { + get + { + return this._dragonguildid != null; + } + set + { + bool flag = value == (this._dragonguildid == null); + if (flag) + { + this._dragonguildid = (value ? new ulong?(this.dragonguildid) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "outlook", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLook outlook + { + get + { + return this._outlook; + } + set + { + this._outlook = value; + } + } + + [ProtoMember(14, IsRequired = false, Name = "vipLevel", DataFormat = DataFormat.TwosComplement)] + public uint vipLevel + { + get + { + return this._vipLevel ?? 0u; + } + set + { + this._vipLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vipLevelSpecified + { + get + { + return this._vipLevel != null; + } + set + { + bool flag = value == (this._vipLevel == null); + if (flag) + { + this._vipLevel = (value ? new uint?(this.vipLevel) : null); + } + } + } + + [ProtoMember(15, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + [ProtoMember(16, IsRequired = false, Name = "membertype", DataFormat = DataFormat.TwosComplement)] + public TeamMemberType membertype + { + get + { + return this._membertype ?? TeamMemberType.TMT_NORMAL; + } + set + { + this._membertype = new TeamMemberType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool membertypeSpecified + { + get + { + return this._membertype != null; + } + set + { + bool flag = value == (this._membertype == null); + if (flag) + { + this._membertype = (value ? new TeamMemberType?(this.membertype) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "tarjatime", DataFormat = DataFormat.TwosComplement)] + public uint tarjatime + { + get + { + return this._tarjatime ?? 0u; + } + set + { + this._tarjatime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tarjatimeSpecified + { + get + { + return this._tarjatime != null; + } + set + { + bool flag = value == (this._tarjatime == null); + if (flag) + { + this._tarjatime = (value ? new uint?(this.tarjatime) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "kingback", DataFormat = DataFormat.Default)] + public bool kingback + { + get + { + return this._kingback ?? false; + } + set + { + this._kingback = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool kingbackSpecified + { + get + { + return this._kingback != null; + } + set + { + bool flag = value == (this._kingback == null); + if (flag) + { + this._kingback = (value ? new bool?(this.kingback) : null); + } + } + } + + private ulong? _memberID; + + private RoleType? _profession; + + private string _name; + + private int? _level; + + private uint? _powerpoint; + + private int? _state; + + private readonly List _fashion = new List(); + + private uint? _sceneID; + + private int? _leftcount; + + private bool? _robot; + + private ulong? _guildid; + + private ulong? _dragonguildid; + + private OutLook _outlook = null; + + private uint? _vipLevel; + + private uint? _paymemberid; + + private TeamMemberType? _membertype; + + private uint? _tarjatime; + + private uint? _serverid; + + private bool? _kingback; + + private IExtension extensionObject; + + private bool ShouldSerializememberID() + { + return this.memberIDSpecified; + } + + private void ResetmemberID() + { + this.memberIDSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializepowerpoint() + { + return this.powerpointSpecified; + } + + private void Resetpowerpoint() + { + this.powerpointSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializesceneID() + { + return this.sceneIDSpecified; + } + + private void ResetsceneID() + { + this.sceneIDSpecified = false; + } + + private bool ShouldSerializeleftcount() + { + return this.leftcountSpecified; + } + + private void Resetleftcount() + { + this.leftcountSpecified = false; + } + + private bool ShouldSerializerobot() + { + return this.robotSpecified; + } + + private void Resetrobot() + { + this.robotSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializedragonguildid() + { + return this.dragonguildidSpecified; + } + + private void Resetdragonguildid() + { + this.dragonguildidSpecified = false; + } + + private bool ShouldSerializevipLevel() + { + return this.vipLevelSpecified; + } + + private void ResetvipLevel() + { + this.vipLevelSpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + private bool ShouldSerializemembertype() + { + return this.membertypeSpecified; + } + + private void Resetmembertype() + { + this.membertypeSpecified = false; + } + + private bool ShouldSerializetarjatime() + { + return this.tarjatimeSpecified; + } + + private void Resettarjatime() + { + this.tarjatimeSpecified = false; + } + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializekingback() + { + return this.kingbackSpecified; + } + + private void Resetkingback() + { + this.kingbackSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamMember.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamMember.cs.meta new file mode 100644 index 00000000..22a7ba1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f776388f5d6fbf49b9e9347e5502fb3 +timeCreated: 1611404245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamMemberType.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamMemberType.cs new file mode 100644 index 00000000..2dab8b60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamMemberType.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamMemberType")] + public enum TeamMemberType + { + [ProtoEnum(Name = "TMT_NORMAL", Value = 1)] + TMT_NORMAL = 1, + [ProtoEnum(Name = "TMT_HELPER", Value = 2)] + TMT_HELPER, + [ProtoEnum(Name = "TMT_USETICKET", Value = 3)] + TMT_USETICKET + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamMemberType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamMemberType.cs.meta new file mode 100644 index 00000000..19cbb14c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamMemberType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5849f163550f624d9befdea4256e0c3 +timeCreated: 1611404876 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs new file mode 100644 index 00000000..0e544c56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs @@ -0,0 +1,422 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamOPArg")] + [Serializable] + public class TeamOPArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "request", DataFormat = DataFormat.TwosComplement)] + public TeamOperate request + { + get + { + return this._request ?? TeamOperate.TEAM_CREATE; + } + set + { + this._request = new TeamOperate?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool requestSpecified + { + get + { + return this._request != null; + } + set + { + bool flag = value == (this._request == null); + if (flag) + { + this._request = (value ? new TeamOperate?(this.request) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "teamID", DataFormat = DataFormat.TwosComplement)] + public int teamID + { + get + { + return this._teamID ?? 0; + } + set + { + this._teamID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamIDSpecified + { + get + { + return this._teamID != null; + } + set + { + bool flag = value == (this._teamID == null); + if (flag) + { + this._teamID = (value ? new int?(this.teamID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "password", DataFormat = DataFormat.Default)] + public string password + { + get + { + return this._password ?? ""; + } + set + { + this._password = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool passwordSpecified + { + get + { + return this._password != null; + } + set + { + bool flag = value == (this._password == null); + if (flag) + { + this._password = (value ? this.password : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "expID", DataFormat = DataFormat.TwosComplement)] + public uint expID + { + get + { + return this._expID ?? 0u; + } + set + { + this._expID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expIDSpecified + { + get + { + return this._expID != null; + } + set + { + bool flag = value == (this._expID == null); + if (flag) + { + this._expID = (value ? new uint?(this.expID) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "extrainfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public TeamExtraInfo extrainfo + { + get + { + return this._extrainfo; + } + set + { + this._extrainfo = value; + } + } + + [ProtoMember(7, IsRequired = false, Name = "param", DataFormat = DataFormat.TwosComplement)] + public ulong param + { + get + { + return this._param ?? 0UL; + } + set + { + this._param = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paramSpecified + { + get + { + return this._param != null; + } + set + { + bool flag = value == (this._param == null); + if (flag) + { + this._param = (value ? new ulong?(this.param) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "membertype", DataFormat = DataFormat.TwosComplement)] + public TeamMemberType membertype + { + get + { + return this._membertype ?? TeamMemberType.TMT_NORMAL; + } + set + { + this._membertype = new TeamMemberType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool membertypeSpecified + { + get + { + return this._membertype != null; + } + set + { + bool flag = value == (this._membertype == null); + if (flag) + { + this._membertype = (value ? new TeamMemberType?(this.membertype) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "account", DataFormat = DataFormat.Default)] + public string account + { + get + { + return this._account ?? ""; + } + set + { + this._account = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accountSpecified + { + get + { + return this._account != null; + } + set + { + bool flag = value == (this._account == null); + if (flag) + { + this._account = (value ? this.account : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "isplatfriend", DataFormat = DataFormat.Default)] + public bool isplatfriend + { + get + { + return this._isplatfriend ?? false; + } + set + { + this._isplatfriend = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isplatfriendSpecified + { + get + { + return this._isplatfriend != null; + } + set + { + bool flag = value == (this._isplatfriend == null); + if (flag) + { + this._isplatfriend = (value ? new bool?(this.isplatfriend) : null); + } + } + } + + private TeamOperate? _request; + + private int? _teamID; + + private string _password; + + private uint? _expID; + + private ulong? _roleid; + + private TeamExtraInfo _extrainfo = null; + + private ulong? _param; + + private TeamMemberType? _membertype; + + private string _account; + + private bool? _isplatfriend; + + private IExtension extensionObject; + + private bool ShouldSerializerequest() + { + return this.requestSpecified; + } + + private void Resetrequest() + { + this.requestSpecified = false; + } + + private bool ShouldSerializeteamID() + { + return this.teamIDSpecified; + } + + private void ResetteamID() + { + this.teamIDSpecified = false; + } + + private bool ShouldSerializepassword() + { + return this.passwordSpecified; + } + + private void Resetpassword() + { + this.passwordSpecified = false; + } + + private bool ShouldSerializeexpID() + { + return this.expIDSpecified; + } + + private void ResetexpID() + { + this.expIDSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeparam() + { + return this.paramSpecified; + } + + private void Resetparam() + { + this.paramSpecified = false; + } + + private bool ShouldSerializemembertype() + { + return this.membertypeSpecified; + } + + private void Resetmembertype() + { + this.membertypeSpecified = false; + } + + private bool ShouldSerializeaccount() + { + return this.accountSpecified; + } + + private void Resetaccount() + { + this.accountSpecified = false; + } + + private bool ShouldSerializeisplatfriend() + { + return this.isplatfriendSpecified; + } + + private void Resetisplatfriend() + { + this.isplatfriendSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs.meta new file mode 100644 index 00000000..ae7c6f3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamOPArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f9f9402b6139214291334eed08df855 +timeCreated: 1611403210 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs new file mode 100644 index 00000000..fdd6212a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamOPRes")] + [Serializable] + public class TeamOPRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "problem_roleid", DataFormat = DataFormat.TwosComplement)] + public ulong problem_roleid + { + get + { + return this._problem_roleid ?? 0UL; + } + set + { + this._problem_roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool problem_roleidSpecified + { + get + { + return this._problem_roleid != null; + } + set + { + bool flag = value == (this._problem_roleid == null); + if (flag) + { + this._problem_roleid = (value ? new ulong?(this.problem_roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "GoddessGetRewardsCount", DataFormat = DataFormat.TwosComplement)] + public int GoddessGetRewardsCount + { + get + { + return this._GoddessGetRewardsCount ?? 0; + } + set + { + this._GoddessGetRewardsCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool GoddessGetRewardsCountSpecified + { + get + { + return this._GoddessGetRewardsCount != null; + } + set + { + bool flag = value == (this._GoddessGetRewardsCount == null); + if (flag) + { + this._GoddessGetRewardsCount = (value ? new int?(this.GoddessGetRewardsCount) : null); + } + } + } + + [ProtoMember(4, Name = "teamcount", DataFormat = DataFormat.Default)] + public List teamcount + { + get + { + return this._teamcount; + } + } + + [ProtoMember(5, IsRequired = false, Name = "weeknestexpid", DataFormat = DataFormat.TwosComplement)] + public int weeknestexpid + { + get + { + return this._weeknestexpid ?? 0; + } + set + { + this._weeknestexpid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeknestexpidSpecified + { + get + { + return this._weeknestexpid != null; + } + set + { + bool flag = value == (this._weeknestexpid == null); + if (flag) + { + this._weeknestexpid = (value ? new int?(this.weeknestexpid) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "opentime", DataFormat = DataFormat.TwosComplement)] + public uint opentime + { + get + { + return this._opentime ?? 0u; + } + set + { + this._opentime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opentimeSpecified + { + get + { + return this._opentime != null; + } + set + { + bool flag = value == (this._opentime == null); + if (flag) + { + this._opentime = (value ? new uint?(this.opentime) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "wnrewardleftcount", DataFormat = DataFormat.TwosComplement)] + public uint wnrewardleftcount + { + get + { + return this._wnrewardleftcount ?? 0u; + } + set + { + this._wnrewardleftcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wnrewardleftcountSpecified + { + get + { + return this._wnrewardleftcount != null; + } + set + { + bool flag = value == (this._wnrewardleftcount == null); + if (flag) + { + this._wnrewardleftcount = (value ? new uint?(this.wnrewardleftcount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "wnrewardmaxcount", DataFormat = DataFormat.TwosComplement)] + public uint wnrewardmaxcount + { + get + { + return this._wnrewardmaxcount ?? 0u; + } + set + { + this._wnrewardmaxcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wnrewardmaxcountSpecified + { + get + { + return this._wnrewardmaxcount != null; + } + set + { + bool flag = value == (this._wnrewardmaxcount == null); + if (flag) + { + this._wnrewardmaxcount = (value ? new uint?(this.wnrewardmaxcount) : null); + } + } + } + + private ErrorCode? _result; + + private ulong? _problem_roleid; + + private int? _GoddessGetRewardsCount; + + private readonly List _teamcount = new List(); + + private int? _weeknestexpid; + + private uint? _opentime; + + private uint? _wnrewardleftcount; + + private uint? _wnrewardmaxcount; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeproblem_roleid() + { + return this.problem_roleidSpecified; + } + + private void Resetproblem_roleid() + { + this.problem_roleidSpecified = false; + } + + private bool ShouldSerializeGoddessGetRewardsCount() + { + return this.GoddessGetRewardsCountSpecified; + } + + private void ResetGoddessGetRewardsCount() + { + this.GoddessGetRewardsCountSpecified = false; + } + + private bool ShouldSerializeweeknestexpid() + { + return this.weeknestexpidSpecified; + } + + private void Resetweeknestexpid() + { + this.weeknestexpidSpecified = false; + } + + private bool ShouldSerializeopentime() + { + return this.opentimeSpecified; + } + + private void Resetopentime() + { + this.opentimeSpecified = false; + } + + private bool ShouldSerializewnrewardleftcount() + { + return this.wnrewardleftcountSpecified; + } + + private void Resetwnrewardleftcount() + { + this.wnrewardleftcountSpecified = false; + } + + private bool ShouldSerializewnrewardmaxcount() + { + return this.wnrewardmaxcountSpecified; + } + + private void Resetwnrewardmaxcount() + { + this.wnrewardmaxcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs.meta new file mode 100644 index 00000000..d6367475 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamOPRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e289a1240d90843428369a9742ca05c6 +timeCreated: 1611404706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamOperate.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamOperate.cs new file mode 100644 index 00000000..e0dab861 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamOperate.cs @@ -0,0 +1,60 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamOperate")] + public enum TeamOperate + { + [ProtoEnum(Name = "TEAM_CREATE", Value = 1)] + TEAM_CREATE = 1, + [ProtoEnum(Name = "TEAM_JOIN", Value = 2)] + TEAM_JOIN, + [ProtoEnum(Name = "TEAM_LEAVE", Value = 3)] + TEAM_LEAVE, + [ProtoEnum(Name = "TEAM_TOGGLE_READY", Value = 4)] + TEAM_TOGGLE_READY, + [ProtoEnum(Name = "TEAM_QUERYCOUNT", Value = 5)] + TEAM_QUERYCOUNT, + [ProtoEnum(Name = "TEAM_KICK", Value = 6)] + TEAM_KICK, + [ProtoEnum(Name = "TEAM_START_BATTLE", Value = 7)] + TEAM_START_BATTLE, + [ProtoEnum(Name = "TEAM_START_BATTLE_AGREE", Value = 8)] + TEAM_START_BATTLE_AGREE, + [ProtoEnum(Name = "TEAM_START_BATTLE_DISAGREE", Value = 9)] + TEAM_START_BATTLE_DISAGREE, + [ProtoEnum(Name = "TEAM_CHANGE_EPXTEAMID", Value = 10)] + TEAM_CHANGE_EPXTEAMID, + [ProtoEnum(Name = "TEAM_START_BATTLE_REMOVE_DISAGREE_MEMBER", Value = 11)] + TEAM_START_BATTLE_REMOVE_DISAGREE_MEMBER, + [ProtoEnum(Name = "TEAM_INVITE", Value = 12)] + TEAM_INVITE, + [ProtoEnum(Name = "TEAM_START_MATCH", Value = 13)] + TEAM_START_MATCH, + [ProtoEnum(Name = "TEAM_STOP_MATCH", Value = 14)] + TEAM_STOP_MATCH, + [ProtoEnum(Name = "TEAM_GET_FULL_DATA", Value = 15)] + TEAM_GET_FULL_DATA, + [ProtoEnum(Name = "TEAM_DOWN_MATCH", Value = 16)] + TEAM_DOWN_MATCH, + [ProtoEnum(Name = "TEAM_BE_HELPER", Value = 17)] + TEAM_BE_HELPER, + [ProtoEnum(Name = "TEAM_QUIT_HELPER", Value = 18)] + TEAM_QUIT_HELPER, + [ProtoEnum(Name = "TEAM_PPTLIMIT", Value = 19)] + TEAM_PPTLIMIT, + [ProtoEnum(Name = "TEAM_COSTTYPE", Value = 20)] + TEAM_COSTTYPE, + [ProtoEnum(Name = "TEAM_CHANGE_PASSWORD", Value = 21)] + TEAM_CHANGE_PASSWORD, + [ProtoEnum(Name = "TEAM_TRAHS_LEADER", Value = 22)] + TEAM_TRAHS_LEADER, + [ProtoEnum(Name = "TEAM_BATTLE_CONTINUE", Value = 23)] + TEAM_BATTLE_CONTINUE, + [ProtoEnum(Name = "TEAM_USE_TICKET", Value = 24)] + TEAM_USE_TICKET, + [ProtoEnum(Name = "TEAM_MEMBER_TYPE", Value = 25)] + TEAM_MEMBER_TYPE + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamOperate.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamOperate.cs.meta new file mode 100644 index 00000000..28f8ebbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 868e6b318b20d5c41a478f6443f10385 +timeCreated: 1611404054 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamRecord.cs new file mode 100644 index 00000000..d937e9bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamRecord.cs @@ -0,0 +1,402 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamRecord")] + [Serializable] + public class TeamRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "lastdayuptime", DataFormat = DataFormat.TwosComplement)] + public uint lastdayuptime + { + get + { + return this._lastdayuptime ?? 0u; + } + set + { + this._lastdayuptime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastdayuptimeSpecified + { + get + { + return this._lastdayuptime != null; + } + set + { + bool flag = value == (this._lastdayuptime == null); + if (flag) + { + this._lastdayuptime = (value ? new uint?(this.lastdayuptime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lastweekuptime", DataFormat = DataFormat.TwosComplement)] + public uint lastweekuptime + { + get + { + return this._lastweekuptime ?? 0u; + } + set + { + this._lastweekuptime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastweekuptimeSpecified + { + get + { + return this._lastweekuptime != null; + } + set + { + bool flag = value == (this._lastweekuptime == null); + if (flag) + { + this._lastweekuptime = (value ? new uint?(this.lastweekuptime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "goddessGetRewardToday", DataFormat = DataFormat.TwosComplement)] + public uint goddessGetRewardToday + { + get + { + return this._goddessGetRewardToday ?? 0u; + } + set + { + this._goddessGetRewardToday = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool goddessGetRewardTodaySpecified + { + get + { + return this._goddessGetRewardToday != null; + } + set + { + bool flag = value == (this._goddessGetRewardToday == null); + if (flag) + { + this._goddessGetRewardToday = (value ? new uint?(this.goddessGetRewardToday) : null); + } + } + } + + [ProtoMember(4, Name = "teamcountins", DataFormat = DataFormat.Default)] + public List teamcountins + { + get + { + return this._teamcountins; + } + } + + [ProtoMember(5, IsRequired = false, Name = "teamcost", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleTeamCostInfo teamcost + { + get + { + return this._teamcost; + } + set + { + this._teamcost = value; + } + } + + [ProtoMember(6, IsRequired = false, Name = "weeknestrewardcount", DataFormat = DataFormat.TwosComplement)] + public uint weeknestrewardcount + { + get + { + return this._weeknestrewardcount ?? 0u; + } + set + { + this._weeknestrewardcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weeknestrewardcountSpecified + { + get + { + return this._weeknestrewardcount != null; + } + set + { + bool flag = value == (this._weeknestrewardcount == null); + if (flag) + { + this._weeknestrewardcount = (value ? new uint?(this.weeknestrewardcount) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "diamondcostcount", DataFormat = DataFormat.TwosComplement)] + public uint diamondcostcount + { + get + { + return this._diamondcostcount ?? 0u; + } + set + { + this._diamondcostcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool diamondcostcountSpecified + { + get + { + return this._diamondcostcount != null; + } + set + { + bool flag = value == (this._diamondcostcount == null); + if (flag) + { + this._diamondcostcount = (value ? new uint?(this.diamondcostcount) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "useticketcount", DataFormat = DataFormat.TwosComplement)] + public uint useticketcount + { + get + { + return this._useticketcount ?? 0u; + } + set + { + this._useticketcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool useticketcountSpecified + { + get + { + return this._useticketcount != null; + } + set + { + bool flag = value == (this._useticketcount == null); + if (flag) + { + this._useticketcount = (value ? new uint?(this.useticketcount) : null); + } + } + } + + [ProtoMember(9, Name = "dragonhelpfetchedrew", DataFormat = DataFormat.TwosComplement)] + public List dragonhelpfetchedrew + { + get + { + return this._dragonhelpfetchedrew; + } + } + + [ProtoMember(10, IsRequired = false, Name = "wantdragonhelp", DataFormat = DataFormat.Default)] + public bool wantdragonhelp + { + get + { + return this._wantdragonhelp ?? false; + } + set + { + this._wantdragonhelp = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool wantdragonhelpSpecified + { + get + { + return this._wantdragonhelp != null; + } + set + { + bool flag = value == (this._wantdragonhelp == null); + if (flag) + { + this._wantdragonhelp = (value ? new bool?(this.wantdragonhelp) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "setdiamondnum", DataFormat = DataFormat.TwosComplement)] + public uint setdiamondnum + { + get + { + return this._setdiamondnum ?? 0u; + } + set + { + this._setdiamondnum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool setdiamondnumSpecified + { + get + { + return this._setdiamondnum != null; + } + set + { + bool flag = value == (this._setdiamondnum == null); + if (flag) + { + this._setdiamondnum = (value ? new uint?(this.setdiamondnum) : null); + } + } + } + + private uint? _lastdayuptime; + + private uint? _lastweekuptime; + + private uint? _goddessGetRewardToday; + + private readonly List _teamcountins = new List(); + + private RoleTeamCostInfo _teamcost = null; + + private uint? _weeknestrewardcount; + + private uint? _diamondcostcount; + + private uint? _useticketcount; + + private readonly List _dragonhelpfetchedrew = new List(); + + private bool? _wantdragonhelp; + + private uint? _setdiamondnum; + + private IExtension extensionObject; + + private bool ShouldSerializelastdayuptime() + { + return this.lastdayuptimeSpecified; + } + + private void Resetlastdayuptime() + { + this.lastdayuptimeSpecified = false; + } + + private bool ShouldSerializelastweekuptime() + { + return this.lastweekuptimeSpecified; + } + + private void Resetlastweekuptime() + { + this.lastweekuptimeSpecified = false; + } + + private bool ShouldSerializegoddessGetRewardToday() + { + return this.goddessGetRewardTodaySpecified; + } + + private void ResetgoddessGetRewardToday() + { + this.goddessGetRewardTodaySpecified = false; + } + + private bool ShouldSerializeweeknestrewardcount() + { + return this.weeknestrewardcountSpecified; + } + + private void Resetweeknestrewardcount() + { + this.weeknestrewardcountSpecified = false; + } + + private bool ShouldSerializediamondcostcount() + { + return this.diamondcostcountSpecified; + } + + private void Resetdiamondcostcount() + { + this.diamondcostcountSpecified = false; + } + + private bool ShouldSerializeuseticketcount() + { + return this.useticketcountSpecified; + } + + private void Resetuseticketcount() + { + this.useticketcountSpecified = false; + } + + private bool ShouldSerializewantdragonhelp() + { + return this.wantdragonhelpSpecified; + } + + private void Resetwantdragonhelp() + { + this.wantdragonhelpSpecified = false; + } + + private bool ShouldSerializesetdiamondnum() + { + return this.setdiamondnumSpecified; + } + + private void Resetsetdiamondnum() + { + this.setdiamondnumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamRecord.cs.meta new file mode 100644 index 00000000..f3520578 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e3a1dc6e2dd7e2469b1ad2e00d22648 +timeCreated: 1611404003 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamRequestPlatFreind2ClientData.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamRequestPlatFreind2ClientData.cs new file mode 100644 index 00000000..7bbb8472 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamRequestPlatFreind2ClientData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamRequestPlatFreind2ClientData")] + [Serializable] + public class TeamRequestPlatFreind2ClientData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "userOffline", DataFormat = DataFormat.Default)] + public bool userOffline + { + get + { + return this._userOffline ?? false; + } + set + { + this._userOffline = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool userOfflineSpecified + { + get + { + return this._userOffline != null; + } + set + { + bool flag = value == (this._userOffline == null); + if (flag) + { + this._userOffline = (value ? new bool?(this.userOffline) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "openID", DataFormat = DataFormat.Default)] + public string openID + { + get + { + return this._openID ?? ""; + } + set + { + this._openID = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openIDSpecified + { + get + { + return this._openID != null; + } + set + { + bool flag = value == (this._openID == null); + if (flag) + { + this._openID = (value ? this.openID : null); + } + } + } + + private bool? _userOffline; + + private string _openID; + + private IExtension extensionObject; + + private bool ShouldSerializeuserOffline() + { + return this.userOfflineSpecified; + } + + private void ResetuserOffline() + { + this.userOfflineSpecified = false; + } + + private bool ShouldSerializeopenID() + { + return this.openIDSpecified; + } + + private void ResetopenID() + { + this.openIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamRequestPlatFreind2ClientData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamRequestPlatFreind2ClientData.cs.meta new file mode 100644 index 00000000..0addb54a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamRequestPlatFreind2ClientData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6639cf2d9ccb8444ea28999269876ce9 +timeCreated: 1611403853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamSelect.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamSelect.cs new file mode 100644 index 00000000..0fe27b65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamSelect.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamSelect")] + [Serializable] + public class TeamSelect : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public long roleid + { + get + { + return this._roleid ?? 0L; + } + set + { + this._roleid = new long?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new long?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public int index + { + get + { + return this._index ?? 0; + } + set + { + this._index = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new int?(this.index) : null); + } + } + } + + private long? _roleid; + + private int? _index; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamSelect.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamSelect.cs.meta new file mode 100644 index 00000000..5016e88d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamSelect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdf47ed37d36826489e1949b57ba1aab +timeCreated: 1611404576 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamState.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamState.cs new file mode 100644 index 00000000..468a8e79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamState.cs @@ -0,0 +1,18 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamState")] + public enum TeamState + { + [ProtoEnum(Name = "TEAM_WAITING", Value = 0)] + TEAM_WAITING, + [ProtoEnum(Name = "TEAM_IN_BATTLE", Value = 1)] + TEAM_IN_BATTLE, + [ProtoEnum(Name = "TEAM_VOTE", Value = 2)] + TEAM_VOTE, + [ProtoEnum(Name = "TEAM_MATCH", Value = 3)] + TEAM_MATCH + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamState.cs.meta new file mode 100644 index 00000000..3388967b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f503615a584acc4b96c0c163a02ee59 +timeCreated: 1611403208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs new file mode 100644 index 00000000..6c4d46dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs @@ -0,0 +1,78 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeamSynRift")] + [Serializable] + public class TeamSynRift : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "riftid", DataFormat = DataFormat.TwosComplement)] + public uint riftid + { + get + { + return this._riftid ?? 0u; + } + set + { + this._riftid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool riftidSpecified + { + get + { + return this._riftid != null; + } + set + { + bool flag = value == (this._riftid == null); + if (flag) + { + this._riftid = (value ? new uint?(this.riftid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "floorinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public GlobalRiftFloorInfo floorinfo + { + get + { + return this._floorinfo; + } + set + { + this._floorinfo = value; + } + } + + private uint? _riftid; + + private GlobalRiftFloorInfo _floorinfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeriftid() + { + return this.riftidSpecified; + } + + private void Resetriftid() + { + this.riftidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs.meta new file mode 100644 index 00000000..84eafdb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeamSynRift.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f696d96dc367e348b24aef40bed9e63 +timeCreated: 1611404133 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeleportNoticeState.cs b/Client/Assets/Scripts/XMainClient/KKSG/TeleportNoticeState.cs new file mode 100644 index 00000000..26cfae96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeleportNoticeState.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TeleportNoticeState")] + [Serializable] + public class TeleportNoticeState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "onnotice", DataFormat = DataFormat.Default)] + public bool onnotice + { + get + { + return this._onnotice ?? false; + } + set + { + this._onnotice = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onnoticeSpecified + { + get + { + return this._onnotice != null; + } + set + { + bool flag = value == (this._onnotice == null); + if (flag) + { + this._onnotice = (value ? new bool?(this.onnotice) : null); + } + } + } + + private bool? _onnotice; + + private IExtension extensionObject; + + private bool ShouldSerializeonnotice() + { + return this.onnoticeSpecified; + } + + private void Resetonnotice() + { + this.onnoticeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TeleportNoticeState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TeleportNoticeState.cs.meta new file mode 100644 index 00000000..d7a2ceda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TeleportNoticeState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0f6d22631b7639479d44f88ddaa504c +timeCreated: 1611404488 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs b/Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs new file mode 100644 index 00000000..35bf93e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TerrData")] + [Serializable] + public class TerrData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "icon", DataFormat = DataFormat.TwosComplement)] + public uint icon + { + get + { + return this._icon ?? 0u; + } + set + { + this._icon = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iconSpecified + { + get + { + return this._icon != null; + } + set + { + bool flag = value == (this._icon == null); + if (flag) + { + this._icon = (value ? new uint?(this.icon) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + private uint? _id; + + private ulong? _guildid; + + private uint? _icon; + + private string _name; + + private IExtension extensionObject; + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + private bool ShouldSerializeicon() + { + return this.iconSpecified; + } + + private void Reseticon() + { + this.iconSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs.meta new file mode 100644 index 00000000..9e9d5863 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TerrData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91b5063e6244c7e46ba50fc62bd1e511 +timeCreated: 1611404143 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusArg.cs new file mode 100644 index 00000000..41f03c67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ThanksForBonusArg")] + [Serializable] + public class ThanksForBonusArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bonusID", DataFormat = DataFormat.TwosComplement)] + public uint bonusID + { + get + { + return this._bonusID ?? 0u; + } + set + { + this._bonusID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bonusIDSpecified + { + get + { + return this._bonusID != null; + } + set + { + bool flag = value == (this._bonusID == null); + if (flag) + { + this._bonusID = (value ? new uint?(this.bonusID) : null); + } + } + } + + private uint? _bonusID; + + private IExtension extensionObject; + + private bool ShouldSerializebonusID() + { + return this.bonusIDSpecified; + } + + private void ResetbonusID() + { + this.bonusIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusArg.cs.meta new file mode 100644 index 00000000..69e4856d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9aec7b2089b917449aaa66957f414838 +timeCreated: 1611404203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusRes.cs new file mode 100644 index 00000000..01f892fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ThanksForBonusRes")] + [Serializable] + public class ThanksForBonusRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusRes.cs.meta new file mode 100644 index 00000000..6f01d9f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThanksForBonusRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b8ff16e79857d847b051dace1eeed24 +timeCreated: 1611403169 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityChangeData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityChangeData.cs new file mode 100644 index 00000000..0fbd591b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityChangeData.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ThemeActivityChangeData")] + [Serializable] + public class ThemeActivityChangeData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ishint", DataFormat = DataFormat.Default)] + public bool ishint + { + get + { + return this._ishint ?? false; + } + set + { + this._ishint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ishintSpecified + { + get + { + return this._ishint != null; + } + set + { + bool flag = value == (this._ishint == null); + if (flag) + { + this._ishint = (value ? new bool?(this.ishint) : null); + } + } + } + + [ProtoMember(2, Name = "scene", DataFormat = DataFormat.Default)] + public List scene + { + get + { + return this._scene; + } + } + + [ProtoMember(3, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + private bool? _ishint; + + private readonly List _scene = new List(); + + private uint? _actid; + + private IExtension extensionObject; + + private bool ShouldSerializeishint() + { + return this.ishintSpecified; + } + + private void Resetishint() + { + this.ishintSpecified = false; + } + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityChangeData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityChangeData.cs.meta new file mode 100644 index 00000000..1c5f003e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityChangeData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3c5e8e362eecca49987fcff615263cf +timeCreated: 1611404390 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityData.cs b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityData.cs new file mode 100644 index 00000000..1ed63d53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityData.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ThemeActivityData")] + [Serializable] + public class ThemeActivityData : IExtensible + { + [ProtoMember(1, Name = "firstscene", DataFormat = DataFormat.Default)] + public List firstscene + { + get + { + return this._firstscene; + } + } + + [ProtoMember(2, IsRequired = false, Name = "ishint", DataFormat = DataFormat.Default)] + public bool ishint + { + get + { + return this._ishint ?? false; + } + set + { + this._ishint = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ishintSpecified + { + get + { + return this._ishint != null; + } + set + { + bool flag = value == (this._ishint == null); + if (flag) + { + this._ishint = (value ? new bool?(this.ishint) : null); + } + } + } + + private readonly List _firstscene = new List(); + + private bool? _ishint; + + private IExtension extensionObject; + + private bool ShouldSerializeishint() + { + return this.ishintSpecified; + } + + private void Resetishint() + { + this.ishintSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityData.cs.meta new file mode 100644 index 00000000..7c201e41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 075bd2ace1af55f4f9819f009e5d281d +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintArg.cs new file mode 100644 index 00000000..ed317514 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ThemeActivityHintArg")] + [Serializable] + public class ThemeActivityHintArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "actid", DataFormat = DataFormat.TwosComplement)] + public uint actid + { + get + { + return this._actid ?? 0u; + } + set + { + this._actid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool actidSpecified + { + get + { + return this._actid != null; + } + set + { + bool flag = value == (this._actid == null); + if (flag) + { + this._actid = (value ? new uint?(this.actid) : null); + } + } + } + + private uint? _actid; + + private IExtension extensionObject; + + private bool ShouldSerializeactid() + { + return this.actidSpecified; + } + + private void Resetactid() + { + this.actidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintArg.cs.meta new file mode 100644 index 00000000..4f8e7144 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4253c71c6ead12e4b830f69cfbc33676 +timeCreated: 1611403639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintRes.cs new file mode 100644 index 00000000..3d99b53c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ThemeActivityHintRes")] + [Serializable] + public class ThemeActivityHintRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintRes.cs.meta new file mode 100644 index 00000000..b3895da6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ThemeActivityHintRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7491d060f7124e948ad17f8783da79ab +timeCreated: 1611403944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpArg.cs new file mode 100644 index 00000000..ffdc5ae8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TitleLevelUpArg")] + [Serializable] + public class TitleLevelUpArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpArg.cs.meta new file mode 100644 index 00000000..8fc372bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86f9819269bc59b4282ccd1890d0b9f8 +timeCreated: 1611404056 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpRes.cs new file mode 100644 index 00000000..195490df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TitleLevelUpRes")] + [Serializable] + public class TitleLevelUpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "titleID", DataFormat = DataFormat.TwosComplement)] + public uint titleID + { + get + { + return this._titleID ?? 0u; + } + set + { + this._titleID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleIDSpecified + { + get + { + return this._titleID != null; + } + set + { + bool flag = value == (this._titleID == null); + if (flag) + { + this._titleID = (value ? new uint?(this.titleID) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _titleID; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializetitleID() + { + return this.titleIDSpecified; + } + + private void ResettitleID() + { + this.titleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpRes.cs.meta new file mode 100644 index 00000000..3d8dddb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TitleLevelUpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 632d555b57cd39044ac0f525c3e3dcf8 +timeCreated: 1611403843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerFirstPassRewardData.cs b/Client/Assets/Scripts/XMainClient/KKSG/TowerFirstPassRewardData.cs new file mode 100644 index 00000000..f0cd5753 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerFirstPassRewardData.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TowerFirstPassRewardData")] + [Serializable] + public class TowerFirstPassRewardData : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerFirstPassRewardData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TowerFirstPassRewardData.cs.meta new file mode 100644 index 00000000..c3b08bc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerFirstPassRewardData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 191743deeaf46574698fba2faf174997 +timeCreated: 1611403300 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord.cs b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord.cs new file mode 100644 index 00000000..0ca4be4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord.cs @@ -0,0 +1,418 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TowerRecord")] + [Serializable] + public class TowerRecord : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openHardLevel", DataFormat = DataFormat.TwosComplement)] + public int openHardLevel + { + get + { + return this._openHardLevel ?? 0; + } + set + { + this._openHardLevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openHardLevelSpecified + { + get + { + return this._openHardLevel != null; + } + set + { + bool flag = value == (this._openHardLevel == null); + if (flag) + { + this._openHardLevel = (value ? new int?(this.openHardLevel) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "reachTopFloor", DataFormat = DataFormat.TwosComplement)] + public int reachTopFloor + { + get + { + return this._reachTopFloor ?? 0; + } + set + { + this._reachTopFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reachTopFloorSpecified + { + get + { + return this._reachTopFloor != null; + } + set + { + bool flag = value == (this._reachTopFloor == null); + if (flag) + { + this._reachTopFloor = (value ? new int?(this.reachTopFloor) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "bestTime", DataFormat = DataFormat.TwosComplement)] + public int bestTime + { + get + { + return this._bestTime ?? 0; + } + set + { + this._bestTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bestTimeSpecified + { + get + { + return this._bestTime != null; + } + set + { + bool flag = value == (this._bestTime == null); + if (flag) + { + this._bestTime = (value ? new int?(this.bestTime) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "sweepTime", DataFormat = DataFormat.TwosComplement)] + public int sweepTime + { + get + { + return this._sweepTime ?? 0; + } + set + { + this._sweepTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sweepTimeSpecified + { + get + { + return this._sweepTime != null; + } + set + { + bool flag = value == (this._sweepTime == null); + if (flag) + { + this._sweepTime = (value ? new int?(this.sweepTime) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "sweepFloor", DataFormat = DataFormat.TwosComplement)] + public int sweepFloor + { + get + { + return this._sweepFloor ?? 0; + } + set + { + this._sweepFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool sweepFloorSpecified + { + get + { + return this._sweepFloor != null; + } + set + { + bool flag = value == (this._sweepFloor == null); + if (flag) + { + this._sweepFloor = (value ? new int?(this.sweepFloor) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "curFloor", DataFormat = DataFormat.TwosComplement)] + public int curFloor + { + get + { + return this._curFloor ?? 0; + } + set + { + this._curFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curFloorSpecified + { + get + { + return this._curFloor != null; + } + set + { + bool flag = value == (this._curFloor == null); + if (flag) + { + this._curFloor = (value ? new int?(this.curFloor) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "curCostTime", DataFormat = DataFormat.TwosComplement)] + public int curCostTime + { + get + { + return this._curCostTime ?? 0; + } + set + { + this._curCostTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curCostTimeSpecified + { + get + { + return this._curCostTime != null; + } + set + { + bool flag = value == (this._curCostTime == null); + if (flag) + { + this._curCostTime = (value ? new int?(this.curCostTime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "refreshCount", DataFormat = DataFormat.TwosComplement)] + public int refreshCount + { + get + { + return this._refreshCount ?? 0; + } + set + { + this._refreshCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshCountSpecified + { + get + { + return this._refreshCount != null; + } + set + { + bool flag = value == (this._refreshCount == null); + if (flag) + { + this._refreshCount = (value ? new int?(this.refreshCount) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "refreshResult", DataFormat = DataFormat.TwosComplement)] + public int refreshResult + { + get + { + return this._refreshResult ?? 0; + } + set + { + this._refreshResult = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refreshResultSpecified + { + get + { + return this._refreshResult != null; + } + set + { + bool flag = value == (this._refreshResult == null); + if (flag) + { + this._refreshResult = (value ? new int?(this.refreshResult) : null); + } + } + } + + [ProtoMember(10, Name = "gotFloorFirstPassReward", DataFormat = DataFormat.TwosComplement)] + public List gotFloorFirstPassReward + { + get + { + return this._gotFloorFirstPassReward; + } + } + + private int? _openHardLevel; + + private int? _reachTopFloor; + + private int? _bestTime; + + private int? _sweepTime; + + private int? _sweepFloor; + + private int? _curFloor; + + private int? _curCostTime; + + private int? _refreshCount; + + private int? _refreshResult; + + private readonly List _gotFloorFirstPassReward = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeopenHardLevel() + { + return this.openHardLevelSpecified; + } + + private void ResetopenHardLevel() + { + this.openHardLevelSpecified = false; + } + + private bool ShouldSerializereachTopFloor() + { + return this.reachTopFloorSpecified; + } + + private void ResetreachTopFloor() + { + this.reachTopFloorSpecified = false; + } + + private bool ShouldSerializebestTime() + { + return this.bestTimeSpecified; + } + + private void ResetbestTime() + { + this.bestTimeSpecified = false; + } + + private bool ShouldSerializesweepTime() + { + return this.sweepTimeSpecified; + } + + private void ResetsweepTime() + { + this.sweepTimeSpecified = false; + } + + private bool ShouldSerializesweepFloor() + { + return this.sweepFloorSpecified; + } + + private void ResetsweepFloor() + { + this.sweepFloorSpecified = false; + } + + private bool ShouldSerializecurFloor() + { + return this.curFloorSpecified; + } + + private void ResetcurFloor() + { + this.curFloorSpecified = false; + } + + private bool ShouldSerializecurCostTime() + { + return this.curCostTimeSpecified; + } + + private void ResetcurCostTime() + { + this.curCostTimeSpecified = false; + } + + private bool ShouldSerializerefreshCount() + { + return this.refreshCountSpecified; + } + + private void ResetrefreshCount() + { + this.refreshCountSpecified = false; + } + + private bool ShouldSerializerefreshResult() + { + return this.refreshResultSpecified; + } + + private void ResetrefreshResult() + { + this.refreshResultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord.cs.meta new file mode 100644 index 00000000..ee0ff03a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c75b3e7c1f9b9745b53341513e82bac +timeCreated: 1611403898 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs new file mode 100644 index 00000000..bac8ce56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TowerRecord2DB")] + [Serializable] + public class TowerRecord2DB : IExtensible + { + [ProtoMember(1, Name = "records", DataFormat = DataFormat.Default)] + public List records + { + get + { + return this._records; + } + } + + [ProtoMember(2, IsRequired = false, Name = "m_updateTime", DataFormat = DataFormat.TwosComplement)] + public int m_updateTime + { + get + { + return this._m_updateTime ?? 0; + } + set + { + this._m_updateTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool m_updateTimeSpecified + { + get + { + return this._m_updateTime != null; + } + set + { + bool flag = value == (this._m_updateTime == null); + if (flag) + { + this._m_updateTime = (value ? new int?(this.m_updateTime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "useResetCount", DataFormat = DataFormat.TwosComplement)] + public int useResetCount + { + get + { + return this._useResetCount ?? 0; + } + set + { + this._useResetCount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool useResetCountSpecified + { + get + { + return this._useResetCount != null; + } + set + { + bool flag = value == (this._useResetCount == null); + if (flag) + { + this._useResetCount = (value ? new int?(this.useResetCount) : null); + } + } + } + + private readonly List _records = new List(); + + private int? _m_updateTime; + + private int? _useResetCount; + + private IExtension extensionObject; + + private bool ShouldSerializem_updateTime() + { + return this.m_updateTimeSpecified; + } + + private void Resetm_updateTime() + { + this.m_updateTimeSpecified = false; + } + + private bool ShouldSerializeuseResetCount() + { + return this.useResetCountSpecified; + } + + private void ResetuseResetCount() + { + this.useResetCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs.meta new file mode 100644 index 00000000..85833475 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerRecord2DB.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a8fa6cbed88954498e4e194b36fcf8b +timeCreated: 1611403791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/TowerResult.cs new file mode 100644 index 00000000..31d45adb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerResult.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TowerResult")] + [Serializable] + public class TowerResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "isNewRecord", DataFormat = DataFormat.Default)] + public bool isNewRecord + { + get + { + return this._isNewRecord ?? false; + } + set + { + this._isNewRecord = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isNewRecordSpecified + { + get + { + return this._isNewRecord != null; + } + set + { + bool flag = value == (this._isNewRecord == null); + if (flag) + { + this._isNewRecord = (value ? new bool?(this.isNewRecord) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "towerFloor", DataFormat = DataFormat.TwosComplement)] + public int towerFloor + { + get + { + return this._towerFloor ?? 0; + } + set + { + this._towerFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool towerFloorSpecified + { + get + { + return this._towerFloor != null; + } + set + { + bool flag = value == (this._towerFloor == null); + if (flag) + { + this._towerFloor = (value ? new int?(this.towerFloor) : null); + } + } + } + + private bool? _isNewRecord; + + private int? _towerFloor; + + private IExtension extensionObject; + + private bool ShouldSerializeisNewRecord() + { + return this.isNewRecordSpecified; + } + + private void ResetisNewRecord() + { + this.isNewRecordSpecified = false; + } + + private bool ShouldSerializetowerFloor() + { + return this.towerFloorSpecified; + } + + private void ResettowerFloor() + { + this.towerFloorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TowerResult.cs.meta new file mode 100644 index 00000000..e4a7418d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2070cbe4348ad240a5b2ba924654008 +timeCreated: 1611404704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerSceneInfoData.cs b/Client/Assets/Scripts/XMainClient/KKSG/TowerSceneInfoData.cs new file mode 100644 index 00000000..2f293ac1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerSceneInfoData.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TowerSceneInfoData")] + [Serializable] + public class TowerSceneInfoData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "leftTime", DataFormat = DataFormat.TwosComplement)] + public int leftTime + { + get + { + return this._leftTime ?? 0; + } + set + { + this._leftTime = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimeSpecified + { + get + { + return this._leftTime != null; + } + set + { + bool flag = value == (this._leftTime == null); + if (flag) + { + this._leftTime = (value ? new int?(this.leftTime) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "curTowerFloor", DataFormat = DataFormat.TwosComplement)] + public int curTowerFloor + { + get + { + return this._curTowerFloor ?? 0; + } + set + { + this._curTowerFloor = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool curTowerFloorSpecified + { + get + { + return this._curTowerFloor != null; + } + set + { + bool flag = value == (this._curTowerFloor == null); + if (flag) + { + this._curTowerFloor = (value ? new int?(this.curTowerFloor) : null); + } + } + } + + [ProtoMember(3, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + private int? _leftTime; + + private int? _curTowerFloor; + + private readonly List _items = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeleftTime() + { + return this.leftTimeSpecified; + } + + private void ResetleftTime() + { + this.leftTimeSpecified = false; + } + + private bool ShouldSerializecurTowerFloor() + { + return this.curTowerFloorSpecified; + } + + private void ResetcurTowerFloor() + { + this.curTowerFloorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TowerSceneInfoData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TowerSceneInfoData.cs.meta new file mode 100644 index 00000000..6a03056e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TowerSceneInfoData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f67d2351c112d74e9283acce604b4a8 +timeCreated: 1611404030 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TransNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/TransNotify.cs new file mode 100644 index 00000000..7643e01b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TransNotify.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TransNotify")] + [Serializable] + public class TransNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "istrans", DataFormat = DataFormat.Default)] + public bool istrans + { + get + { + return this._istrans ?? false; + } + set + { + this._istrans = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool istransSpecified + { + get + { + return this._istrans != null; + } + set + { + bool flag = value == (this._istrans == null); + if (flag) + { + this._istrans = (value ? new bool?(this.istrans) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.Default)] + public string roleid + { + get + { + return this._roleid ?? ""; + } + set + { + this._roleid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? this.roleid : null); + } + } + } + + private bool? _istrans; + + private string _roleid; + + private IExtension extensionObject; + + private bool ShouldSerializeistrans() + { + return this.istransSpecified; + } + + private void Resetistrans() + { + this.istransSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TransNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TransNotify.cs.meta new file mode 100644 index 00000000..afc9384e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TransNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f69c85db85a964c47957761c225cba66 +timeCreated: 1611404883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TransSkillNotfiy.cs b/Client/Assets/Scripts/XMainClient/KKSG/TransSkillNotfiy.cs new file mode 100644 index 00000000..01d6e083 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TransSkillNotfiy.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TransSkillNotfiy")] + [Serializable] + public class TransSkillNotfiy : IExtensible + { + [ProtoMember(1, Name = "skillhash", DataFormat = DataFormat.TwosComplement)] + public List skillhash + { + get + { + return this._skillhash; + } + } + + [ProtoMember(2, Name = "skilllevel", DataFormat = DataFormat.TwosComplement)] + public List skilllevel + { + get + { + return this._skilllevel; + } + } + + [ProtoMember(3, IsRequired = false, Name = "isincreasing", DataFormat = DataFormat.Default)] + public bool isincreasing + { + get + { + return this._isincreasing ?? false; + } + set + { + this._isincreasing = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isincreasingSpecified + { + get + { + return this._isincreasing != null; + } + set + { + bool flag = value == (this._isincreasing == null); + if (flag) + { + this._isincreasing = (value ? new bool?(this.isincreasing) : null); + } + } + } + + private readonly List _skillhash = new List(); + + private readonly List _skilllevel = new List(); + + private bool? _isincreasing; + + private IExtension extensionObject; + + private bool ShouldSerializeisincreasing() + { + return this.isincreasingSpecified; + } + + private void Resetisincreasing() + { + this.isincreasingSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TransSkillNotfiy.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TransSkillNotfiy.cs.meta new file mode 100644 index 00000000..08ee41f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TransSkillNotfiy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f625f09709195e45b65d1f306ae6332 +timeCreated: 1611404029 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TransformOpArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TransformOpArg.cs new file mode 100644 index 00000000..b625a2cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TransformOpArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TransformOpArg")] + [Serializable] + public class TransformOpArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "op", DataFormat = DataFormat.TwosComplement)] + public int op + { + get + { + return this._op ?? 0; + } + set + { + this._op = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opSpecified + { + get + { + return this._op != null; + } + set + { + bool flag = value == (this._op == null); + if (flag) + { + this._op = (value ? new int?(this.op) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.Default)] + public string roleid + { + get + { + return this._roleid ?? ""; + } + set + { + this._roleid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? this.roleid : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + private int? _op; + + private string _roleid; + + private uint? _itemid; + + private IExtension extensionObject; + + private bool ShouldSerializeop() + { + return this.opSpecified; + } + + private void Resetop() + { + this.opSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TransformOpArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TransformOpArg.cs.meta new file mode 100644 index 00000000..a6b119a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TransformOpArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e87fb7b12f0e14b4c81745f3281399ad +timeCreated: 1611404753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TransformOpRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TransformOpRes.cs new file mode 100644 index 00000000..deb9896a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TransformOpRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TransformOpRes")] + [Serializable] + public class TransformOpRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public uint timeleft + { + get + { + return this._timeleft ?? 0u; + } + set + { + this._timeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new uint?(this.timeleft) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _timeleft; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TransformOpRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TransformOpRes.cs.meta new file mode 100644 index 00000000..562e0f67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TransformOpRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ab90a6dbddd95c4db0741d22e1db1fa +timeCreated: 1611403792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs b/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs new file mode 100644 index 00000000..741ea247 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TrophyDetail")] + [Serializable] + public class TrophyDetail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "tropy_order", DataFormat = DataFormat.TwosComplement)] + public uint tropy_order + { + get + { + return this._tropy_order ?? 0u; + } + set + { + this._tropy_order = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tropy_orderSpecified + { + get + { + return this._tropy_order != null; + } + set + { + bool flag = value == (this._tropy_order == null); + if (flag) + { + this._tropy_order = (value ? new uint?(this.tropy_order) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "trophy_time", DataFormat = DataFormat.TwosComplement)] + public uint trophy_time + { + get + { + return this._trophy_time ?? 0u; + } + set + { + this._trophy_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool trophy_timeSpecified + { + get + { + return this._trophy_time != null; + } + set + { + bool flag = value == (this._trophy_time == null); + if (flag) + { + this._trophy_time = (value ? new uint?(this.trophy_time) : null); + } + } + } + + private uint? _tropy_order; + + private uint? _trophy_time; + + private IExtension extensionObject; + + private bool ShouldSerializetropy_order() + { + return this.tropy_orderSpecified; + } + + private void Resettropy_order() + { + this.tropy_orderSpecified = false; + } + + private bool ShouldSerializetrophy_time() + { + return this.trophy_timeSpecified; + } + + private void Resettrophy_time() + { + this.trophy_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs.meta new file mode 100644 index 00000000..dc142d70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TrophyDetail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3438145b1af458449a85f27050bb1cb3 +timeCreated: 1611403554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TrophyGetTypeDetail.cs b/Client/Assets/Scripts/XMainClient/KKSG/TrophyGetTypeDetail.cs new file mode 100644 index 00000000..20bd5a3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TrophyGetTypeDetail.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TrophyGetTypeDetail")] + [Serializable] + public class TrophyGetTypeDetail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "trophy_id", DataFormat = DataFormat.TwosComplement)] + public uint trophy_id + { + get + { + return this._trophy_id ?? 0u; + } + set + { + this._trophy_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool trophy_idSpecified + { + get + { + return this._trophy_id != null; + } + set + { + bool flag = value == (this._trophy_id == null); + if (flag) + { + this._trophy_id = (value ? new uint?(this.trophy_id) : null); + } + } + } + + [ProtoMember(2, Name = "detail", DataFormat = DataFormat.Default)] + public List detail + { + get + { + return this._detail; + } + } + + private uint? _trophy_id; + + private readonly List _detail = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializetrophy_id() + { + return this.trophy_idSpecified; + } + + private void Resettrophy_id() + { + this.trophy_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TrophyGetTypeDetail.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TrophyGetTypeDetail.cs.meta new file mode 100644 index 00000000..e5b12a53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TrophyGetTypeDetail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc00e4ab14d23064c820e3fb90c59428 +timeCreated: 1611404933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryAlliance.cs b/Client/Assets/Scripts/XMainClient/KKSG/TryAlliance.cs new file mode 100644 index 00000000..1216e92c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryAlliance.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TryAlliance")] + [Serializable] + public class TryAlliance : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryAlliance.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TryAlliance.cs.meta new file mode 100644 index 00000000..fbc131cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryAlliance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dae2e22a30be8d44d9b1cf5bbb636623 +timeCreated: 1611404650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryAllianceArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TryAllianceArg.cs new file mode 100644 index 00000000..4fbcffbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryAllianceArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TryAllianceArg")] + [Serializable] + public class TryAllianceArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "guild", DataFormat = DataFormat.TwosComplement)] + public ulong guild + { + get + { + return this._guild ?? 0UL; + } + set + { + this._guild = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildSpecified + { + get + { + return this._guild != null; + } + set + { + bool flag = value == (this._guild == null); + if (flag) + { + this._guild = (value ? new ulong?(this.guild) : null); + } + } + } + + private ulong? _guild; + + private IExtension extensionObject; + + private bool ShouldSerializeguild() + { + return this.guildSpecified; + } + + private void Resetguild() + { + this.guildSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryAllianceArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TryAllianceArg.cs.meta new file mode 100644 index 00000000..defad10a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryAllianceArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e6415c710a205b4db4bb5f676403a23 +timeCreated: 1611403810 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs new file mode 100644 index 00000000..a1f360ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TryDanceArg")] + [Serializable] + public class TryDanceArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "danceid", DataFormat = DataFormat.TwosComplement)] + public uint danceid + { + get + { + return this._danceid ?? 0u; + } + set + { + this._danceid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool danceidSpecified + { + get + { + return this._danceid != null; + } + set + { + bool flag = value == (this._danceid == null); + if (flag) + { + this._danceid = (value ? new uint?(this.danceid) : null); + } + } + } + + private uint? _danceid; + + private IExtension extensionObject; + + private bool ShouldSerializedanceid() + { + return this.danceidSpecified; + } + + private void Resetdanceid() + { + this.danceidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs.meta new file mode 100644 index 00000000..b2498231 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryDanceArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b812a98c773fe549b435af8644d0ffc +timeCreated: 1611403994 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs new file mode 100644 index 00000000..bdb75b9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TryDanceRes")] + [Serializable] + public class TryDanceRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs.meta new file mode 100644 index 00000000..9ac4ca31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryDanceRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 871efaf030b29ab4fbadad2dc49f92b9 +timeCreated: 1611404077 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryFishArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TryFishArg.cs new file mode 100644 index 00000000..e1491b91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryFishArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TryFishArg")] + [Serializable] + public class TryFishArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "quest_type", DataFormat = DataFormat.TwosComplement)] + public GardenQuestType quest_type + { + get + { + return this._quest_type ?? GardenQuestType.MYSELF; + } + set + { + this._quest_type = new GardenQuestType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool quest_typeSpecified + { + get + { + return this._quest_type != null; + } + set + { + bool flag = value == (this._quest_type == null); + if (flag) + { + this._quest_type = (value ? new GardenQuestType?(this.quest_type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "garden_id", DataFormat = DataFormat.TwosComplement)] + public ulong garden_id + { + get + { + return this._garden_id ?? 0UL; + } + set + { + this._garden_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool garden_idSpecified + { + get + { + return this._garden_id != null; + } + set + { + bool flag = value == (this._garden_id == null); + if (flag) + { + this._garden_id = (value ? new ulong?(this.garden_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "casting_net", DataFormat = DataFormat.Default)] + public bool casting_net + { + get + { + return this._casting_net ?? false; + } + set + { + this._casting_net = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool casting_netSpecified + { + get + { + return this._casting_net != null; + } + set + { + bool flag = value == (this._casting_net == null); + if (flag) + { + this._casting_net = (value ? new bool?(this.casting_net) : null); + } + } + } + + private GardenQuestType? _quest_type; + + private ulong? _garden_id; + + private bool? _casting_net; + + private IExtension extensionObject; + + private bool ShouldSerializequest_type() + { + return this.quest_typeSpecified; + } + + private void Resetquest_type() + { + this.quest_typeSpecified = false; + } + + private bool ShouldSerializegarden_id() + { + return this.garden_idSpecified; + } + + private void Resetgarden_id() + { + this.garden_idSpecified = false; + } + + private bool ShouldSerializecasting_net() + { + return this.casting_netSpecified; + } + + private void Resetcasting_net() + { + this.casting_netSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryFishArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TryFishArg.cs.meta new file mode 100644 index 00000000..781c6651 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryFishArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99dbe2c916da9344d8a62b8e765ea431 +timeCreated: 1611404198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryFishRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TryFishRes.cs new file mode 100644 index 00000000..cdfb071d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryFishRes.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TryFishRes")] + [Serializable] + public class TryFishRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, Name = "item", DataFormat = DataFormat.Default)] + public List item + { + get + { + return this._item; + } + } + + [ProtoMember(3, IsRequired = false, Name = "fish_level", DataFormat = DataFormat.TwosComplement)] + public uint fish_level + { + get + { + return this._fish_level ?? 0u; + } + set + { + this._fish_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fish_levelSpecified + { + get + { + return this._fish_level != null; + } + set + { + bool flag = value == (this._fish_level == null); + if (flag) + { + this._fish_level = (value ? new uint?(this.fish_level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "experiences", DataFormat = DataFormat.TwosComplement)] + public uint experiences + { + get + { + return this._experiences ?? 0u; + } + set + { + this._experiences = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool experiencesSpecified + { + get + { + return this._experiences != null; + } + set + { + bool flag = value == (this._experiences == null); + if (flag) + { + this._experiences = (value ? new uint?(this.experiences) : null); + } + } + } + + private ErrorCode? _result; + + private readonly List _item = new List(); + + private uint? _fish_level; + + private uint? _experiences; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializefish_level() + { + return this.fish_levelSpecified; + } + + private void Resetfish_level() + { + this.fish_levelSpecified = false; + } + + private bool ShouldSerializeexperiences() + { + return this.experiencesSpecified; + } + + private void Resetexperiences() + { + this.experiencesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TryFishRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TryFishRes.cs.meta new file mode 100644 index 00000000..26d9f631 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TryFishRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d46b173fa97e784394dcaefd280d634 +timeCreated: 1611403193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TssSdkAntiData.cs b/Client/Assets/Scripts/XMainClient/KKSG/TssSdkAntiData.cs new file mode 100644 index 00000000..0a99fd62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TssSdkAntiData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TssSdkAntiData")] + [Serializable] + public class TssSdkAntiData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "anti_data", DataFormat = DataFormat.Default)] + public byte[] anti_data + { + get + { + return this._anti_data ?? null; + } + set + { + this._anti_data = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool anti_dataSpecified + { + get + { + return this._anti_data != null; + } + set + { + bool flag = value == (this._anti_data == null); + if (flag) + { + this._anti_data = (value ? this.anti_data : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "anti_data_len", DataFormat = DataFormat.TwosComplement)] + public uint anti_data_len + { + get + { + return this._anti_data_len ?? 0u; + } + set + { + this._anti_data_len = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool anti_data_lenSpecified + { + get + { + return this._anti_data_len != null; + } + set + { + bool flag = value == (this._anti_data_len == null); + if (flag) + { + this._anti_data_len = (value ? new uint?(this.anti_data_len) : null); + } + } + } + + private byte[] _anti_data; + + private uint? _anti_data_len; + + private IExtension extensionObject; + + private bool ShouldSerializeanti_data() + { + return this.anti_dataSpecified; + } + + private void Resetanti_data() + { + this.anti_dataSpecified = false; + } + + private bool ShouldSerializeanti_data_len() + { + return this.anti_data_lenSpecified; + } + + private void Resetanti_data_len() + { + this.anti_data_lenSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TssSdkAntiData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TssSdkAntiData.cs.meta new file mode 100644 index 00000000..56e7f09e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TssSdkAntiData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7dea210013f40941969a0eb4748b4b9 +timeCreated: 1611404293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs new file mode 100644 index 00000000..24c6ebc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TurnOverWeeklyTaskItemArg")] + [Serializable] + public class TurnOverWeeklyTaskItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(2, Name = "itemuid", DataFormat = DataFormat.TwosComplement)] + public List itemuid + { + get + { + return this._itemuid; + } + } + + private uint? _index; + + private readonly List _itemuid = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs.meta new file mode 100644 index 00000000..f953378a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f42fb98ac6c9f34ba0b485408750994 +timeCreated: 1611404029 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs new file mode 100644 index 00000000..1dbc1656 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TurnOverWeeklyTaskItemRes")] + [Serializable] + public class TurnOverWeeklyTaskItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs.meta new file mode 100644 index 00000000..5c7270c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TurnOverWeeklyTaskItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b5d03496bfdc18d4cb7627e9031b1aad +timeCreated: 1611404396 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TutorialInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/TutorialInfo.cs new file mode 100644 index 00000000..4c39a883 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TutorialInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "TutorialInfo")] + [Serializable] + public class TutorialInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "tutorialID", DataFormat = DataFormat.TwosComplement)] + public uint tutorialID + { + get + { + return this._tutorialID ?? 0u; + } + set + { + this._tutorialID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool tutorialIDSpecified + { + get + { + return this._tutorialID != null; + } + set + { + bool flag = value == (this._tutorialID == null); + if (flag) + { + this._tutorialID = (value ? new uint?(this.tutorialID) : null); + } + } + } + + private uint? _tutorialID; + + private IExtension extensionObject; + + private bool ShouldSerializetutorialID() + { + return this.tutorialIDSpecified; + } + + private void ResettutorialID() + { + this.tutorialIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/TutorialInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/TutorialInfo.cs.meta new file mode 100644 index 00000000..0e759938 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/TutorialInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6c19523d88d1124c9abe12676f44ea3 +timeCreated: 1611404399 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearList.cs b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearList.cs new file mode 100644 index 00000000..af1cf0e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearList.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UnitAppearList")] + [Serializable] + public class UnitAppearList : IExtensible + { + [ProtoMember(1, Name = "units", DataFormat = DataFormat.Default)] + public List units + { + get + { + return this._units; + } + } + + private readonly List _units = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearList.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearList.cs.meta new file mode 100644 index 00000000..0710e04c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb68014450a64d345b1d15664d94b9eb +timeCreated: 1611404930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearance.cs b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearance.cs new file mode 100644 index 00000000..75c96f3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearance.cs @@ -0,0 +1,1064 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UnitAppearance")] + [Serializable] + public class UnitAppearance : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uID", DataFormat = DataFormat.TwosComplement)] + public ulong uID + { + get + { + return this._uID ?? 0UL; + } + set + { + this._uID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uIDSpecified + { + get + { + return this._uID != null; + } + set + { + bool flag = value == (this._uID == null); + if (flag) + { + this._uID = (value ? new ulong?(this.uID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "unitName", DataFormat = DataFormat.Default)] + public string unitName + { + get + { + return this._unitName ?? ""; + } + set + { + this._unitName = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unitNameSpecified + { + get + { + return this._unitName != null; + } + set + { + bool flag = value == (this._unitName == null); + if (flag) + { + this._unitName = (value ? this.unitName : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "unitType", DataFormat = DataFormat.TwosComplement)] + public uint unitType + { + get + { + return this._unitType ?? 0u; + } + set + { + this._unitType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool unitTypeSpecified + { + get + { + return this._unitType != null; + } + set + { + bool flag = value == (this._unitType == null); + if (flag) + { + this._unitType = (value ? new uint?(this.unitType) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "position", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Vec3 position + { + get + { + return this._position; + } + set + { + this._position = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "direction", DataFormat = DataFormat.FixedSize)] + public float direction + { + get + { + return this._direction ?? 0f; + } + set + { + this._direction = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool directionSpecified + { + get + { + return this._direction != null; + } + set + { + bool flag = value == (this._direction == null); + if (flag) + { + this._direction = (value ? new float?(this.direction) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "attributes", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public Attribute attributes + { + get + { + return this._attributes; + } + set + { + this._attributes = value; + } + } + + [ProtoMember(7, Name = "fashion", DataFormat = DataFormat.TwosComplement)] + public List fashion + { + get + { + return this._fashion; + } + } + + [ProtoMember(8, IsRequired = false, Name = "waveID", DataFormat = DataFormat.TwosComplement)] + public uint waveID + { + get + { + return this._waveID ?? 0u; + } + set + { + this._waveID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool waveIDSpecified + { + get + { + return this._waveID != null; + } + set + { + bool flag = value == (this._waveID == null); + if (flag) + { + this._waveID = (value ? new uint?(this.waveID) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "isServerControl", DataFormat = DataFormat.Default)] + public bool isServerControl + { + get + { + return this._isServerControl ?? false; + } + set + { + this._isServerControl = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isServerControlSpecified + { + get + { + return this._isServerControl != null; + } + set + { + bool flag = value == (this._isServerControl == null); + if (flag) + { + this._isServerControl = (value ? new bool?(this.isServerControl) : null); + } + } + } + + [ProtoMember(10, Name = "skills", DataFormat = DataFormat.Default)] + public List skills + { + get + { + return this._skills; + } + } + + [ProtoMember(11, Name = "equip", DataFormat = DataFormat.Default)] + public List equip + { + get + { + return this._equip; + } + } + + [ProtoMember(12, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(13, IsRequired = false, Name = "PowerPoint", DataFormat = DataFormat.TwosComplement)] + public uint PowerPoint + { + get + { + return this._PowerPoint ?? 0u; + } + set + { + this._PowerPoint = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool PowerPointSpecified + { + get + { + return this._PowerPoint != null; + } + set + { + bool flag = value == (this._PowerPoint == null); + if (flag) + { + this._PowerPoint = (value ? new uint?(this.PowerPoint) : null); + } + } + } + + [ProtoMember(14, Name = "emblem", DataFormat = DataFormat.Default)] + public List emblem + { + get + { + return this._emblem; + } + } + + [ProtoMember(15, IsRequired = false, Name = "fightgroup", DataFormat = DataFormat.TwosComplement)] + public uint fightgroup + { + get + { + return this._fightgroup ?? 0u; + } + set + { + this._fightgroup = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool fightgroupSpecified + { + get + { + return this._fightgroup != null; + } + set + { + bool flag = value == (this._fightgroup == null); + if (flag) + { + this._fightgroup = (value ? new uint?(this.fightgroup) : null); + } + } + } + + [ProtoMember(16, Name = "buffs", DataFormat = DataFormat.Default)] + public List buffs + { + get + { + return this._buffs; + } + } + + [ProtoMember(17, IsRequired = false, Name = "IsDead", DataFormat = DataFormat.Default)] + public bool IsDead + { + get + { + return this._IsDead ?? false; + } + set + { + this._IsDead = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool IsDeadSpecified + { + get + { + return this._IsDead != null; + } + set + { + bool flag = value == (this._IsDead == null); + if (flag) + { + this._IsDead = (value ? new bool?(this.IsDead) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "outlook", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public OutLook outlook + { + get + { + return this._outlook; + } + set + { + this._outlook = value; + } + } + + [ProtoMember(19, IsRequired = false, Name = "viplevel", DataFormat = DataFormat.TwosComplement)] + public uint viplevel + { + get + { + return this._viplevel ?? 0u; + } + set + { + this._viplevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool viplevelSpecified + { + get + { + return this._viplevel != null; + } + set + { + bool flag = value == (this._viplevel == null); + if (flag) + { + this._viplevel = (value ? new uint?(this.viplevel) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "lastlogin", DataFormat = DataFormat.TwosComplement)] + public uint lastlogin + { + get + { + return this._lastlogin ?? 0u; + } + set + { + this._lastlogin = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastloginSpecified + { + get + { + return this._lastlogin != null; + } + set + { + bool flag = value == (this._lastlogin == null); + if (flag) + { + this._lastlogin = (value ? new uint?(this.lastlogin) : null); + } + } + } + + [ProtoMember(21, IsRequired = false, Name = "nickid", DataFormat = DataFormat.TwosComplement)] + public uint nickid + { + get + { + return this._nickid ?? 0u; + } + set + { + this._nickid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nickidSpecified + { + get + { + return this._nickid != null; + } + set + { + bool flag = value == (this._nickid == null); + if (flag) + { + this._nickid = (value ? new uint?(this.nickid) : null); + } + } + } + + [ProtoMember(22, IsRequired = false, Name = "isnewmob", DataFormat = DataFormat.Default)] + public bool isnewmob + { + get + { + return this._isnewmob ?? false; + } + set + { + this._isnewmob = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isnewmobSpecified + { + get + { + return this._isnewmob != null; + } + set + { + bool flag = value == (this._isnewmob == null); + if (flag) + { + this._isnewmob = (value ? new bool?(this.isnewmob) : null); + } + } + } + + [ProtoMember(23, Name = "bindskills", DataFormat = DataFormat.TwosComplement)] + public List bindskills + { + get + { + return this._bindskills; + } + } + + [ProtoMember(24, IsRequired = false, Name = "allbuffsinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AllBuffsInfo allbuffsinfo + { + get + { + return this._allbuffsinfo; + } + set + { + this._allbuffsinfo = value; + } + } + + [ProtoMember(25, Name = "sprites", DataFormat = DataFormat.Default)] + public List sprites + { + get + { + return this._sprites; + } + } + + [ProtoMember(26, IsRequired = false, Name = "pet", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public PetSingle pet + { + get + { + return this._pet; + } + set + { + this._pet = value; + } + } + + [ProtoMember(27, IsRequired = false, Name = "hostid", DataFormat = DataFormat.TwosComplement)] + public ulong hostid + { + get + { + return this._hostid ?? 0UL; + } + set + { + this._hostid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hostidSpecified + { + get + { + return this._hostid != null; + } + set + { + bool flag = value == (this._hostid == null); + if (flag) + { + this._hostid = (value ? new ulong?(this.hostid) : null); + } + } + } + + [ProtoMember(28, IsRequired = false, Name = "category", DataFormat = DataFormat.TwosComplement)] + public EntityCategory category + { + get + { + return this._category ?? EntityCategory.Category_Role; + } + set + { + this._category = new EntityCategory?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool categorySpecified + { + get + { + return this._category != null; + } + set + { + bool flag = value == (this._category == null); + if (flag) + { + this._category = (value ? new EntityCategory?(this.category) : null); + } + } + } + + [ProtoMember(29, IsRequired = false, Name = "paymemberid", DataFormat = DataFormat.TwosComplement)] + public uint paymemberid + { + get + { + return this._paymemberid ?? 0u; + } + set + { + this._paymemberid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paymemberidSpecified + { + get + { + return this._paymemberid != null; + } + set + { + bool flag = value == (this._paymemberid == null); + if (flag) + { + this._paymemberid = (value ? new uint?(this.paymemberid) : null); + } + } + } + + [ProtoMember(30, IsRequired = false, Name = "team", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearanceTeam team + { + get + { + return this._team; + } + set + { + this._team = value; + } + } + + [ProtoMember(31, IsRequired = false, Name = "specialstate", DataFormat = DataFormat.TwosComplement)] + public uint specialstate + { + get + { + return this._specialstate ?? 0u; + } + set + { + this._specialstate = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool specialstateSpecified + { + get + { + return this._specialstate != null; + } + set + { + bool flag = value == (this._specialstate == null); + if (flag) + { + this._specialstate = (value ? new uint?(this.specialstate) : null); + } + } + } + + [ProtoMember(32, Name = "artifact", DataFormat = DataFormat.Default)] + public List artifact + { + get + { + return this._artifact; + } + } + + [ProtoMember(33, IsRequired = false, Name = "mobshieldable", DataFormat = DataFormat.Default)] + public bool mobshieldable + { + get + { + return this._mobshieldable ?? false; + } + set + { + this._mobshieldable = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool mobshieldableSpecified + { + get + { + return this._mobshieldable != null; + } + set + { + bool flag = value == (this._mobshieldable == null); + if (flag) + { + this._mobshieldable = (value ? new bool?(this.mobshieldable) : null); + } + } + } + + [ProtoMember(34, IsRequired = false, Name = "forcedisappear", DataFormat = DataFormat.Default)] + public bool forcedisappear + { + get + { + return this._forcedisappear ?? false; + } + set + { + this._forcedisappear = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool forcedisappearSpecified + { + get + { + return this._forcedisappear != null; + } + set + { + bool flag = value == (this._forcedisappear == null); + if (flag) + { + this._forcedisappear = (value ? new bool?(this.forcedisappear) : null); + } + } + } + + private ulong? _uID; + + private string _unitName; + + private uint? _unitType; + + private Vec3 _position = null; + + private float? _direction; + + private Attribute _attributes = null; + + private readonly List _fashion = new List(); + + private uint? _waveID; + + private bool? _isServerControl; + + private readonly List _skills = new List(); + + private readonly List _equip = new List(); + + private uint? _level; + + private uint? _PowerPoint; + + private readonly List _emblem = new List(); + + private uint? _fightgroup; + + private readonly List _buffs = new List(); + + private bool? _IsDead; + + private OutLook _outlook = null; + + private uint? _viplevel; + + private uint? _lastlogin; + + private uint? _nickid; + + private bool? _isnewmob; + + private readonly List _bindskills = new List(); + + private AllBuffsInfo _allbuffsinfo = null; + + private readonly List _sprites = new List(); + + private PetSingle _pet = null; + + private ulong? _hostid; + + private EntityCategory? _category; + + private uint? _paymemberid; + + private UnitAppearanceTeam _team = null; + + private uint? _specialstate; + + private readonly List _artifact = new List(); + + private bool? _mobshieldable; + + private bool? _forcedisappear; + + private IExtension extensionObject; + + private bool ShouldSerializeuID() + { + return this.uIDSpecified; + } + + private void ResetuID() + { + this.uIDSpecified = false; + } + + private bool ShouldSerializeunitName() + { + return this.unitNameSpecified; + } + + private void ResetunitName() + { + this.unitNameSpecified = false; + } + + private bool ShouldSerializeunitType() + { + return this.unitTypeSpecified; + } + + private void ResetunitType() + { + this.unitTypeSpecified = false; + } + + private bool ShouldSerializedirection() + { + return this.directionSpecified; + } + + private void Resetdirection() + { + this.directionSpecified = false; + } + + private bool ShouldSerializewaveID() + { + return this.waveIDSpecified; + } + + private void ResetwaveID() + { + this.waveIDSpecified = false; + } + + private bool ShouldSerializeisServerControl() + { + return this.isServerControlSpecified; + } + + private void ResetisServerControl() + { + this.isServerControlSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializePowerPoint() + { + return this.PowerPointSpecified; + } + + private void ResetPowerPoint() + { + this.PowerPointSpecified = false; + } + + private bool ShouldSerializefightgroup() + { + return this.fightgroupSpecified; + } + + private void Resetfightgroup() + { + this.fightgroupSpecified = false; + } + + private bool ShouldSerializeIsDead() + { + return this.IsDeadSpecified; + } + + private void ResetIsDead() + { + this.IsDeadSpecified = false; + } + + private bool ShouldSerializeviplevel() + { + return this.viplevelSpecified; + } + + private void Resetviplevel() + { + this.viplevelSpecified = false; + } + + private bool ShouldSerializelastlogin() + { + return this.lastloginSpecified; + } + + private void Resetlastlogin() + { + this.lastloginSpecified = false; + } + + private bool ShouldSerializenickid() + { + return this.nickidSpecified; + } + + private void Resetnickid() + { + this.nickidSpecified = false; + } + + private bool ShouldSerializeisnewmob() + { + return this.isnewmobSpecified; + } + + private void Resetisnewmob() + { + this.isnewmobSpecified = false; + } + + private bool ShouldSerializehostid() + { + return this.hostidSpecified; + } + + private void Resethostid() + { + this.hostidSpecified = false; + } + + private bool ShouldSerializecategory() + { + return this.categorySpecified; + } + + private void Resetcategory() + { + this.categorySpecified = false; + } + + private bool ShouldSerializepaymemberid() + { + return this.paymemberidSpecified; + } + + private void Resetpaymemberid() + { + this.paymemberidSpecified = false; + } + + private bool ShouldSerializespecialstate() + { + return this.specialstateSpecified; + } + + private void Resetspecialstate() + { + this.specialstateSpecified = false; + } + + private bool ShouldSerializemobshieldable() + { + return this.mobshieldableSpecified; + } + + private void Resetmobshieldable() + { + this.mobshieldableSpecified = false; + } + + private bool ShouldSerializeforcedisappear() + { + return this.forcedisappearSpecified; + } + + private void Resetforcedisappear() + { + this.forcedisappearSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearance.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearance.cs.meta new file mode 100644 index 00000000..849c171c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aac41748293e45a41b3a3281da305045 +timeCreated: 1611404305 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceField.cs b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceField.cs new file mode 100644 index 00000000..3848d771 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceField.cs @@ -0,0 +1,40 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UnitAppearanceField")] + public enum UnitAppearanceField + { + [ProtoEnum(Name = "UNIT_BASIC", Value = 15)] + UNIT_BASIC = 15, + [ProtoEnum(Name = "UNIT_ATTR", Value = 32)] + UNIT_ATTR = 32, + [ProtoEnum(Name = "UNIT_FASHION", Value = 64)] + UNIT_FASHION = 64, + [ProtoEnum(Name = "UNIT_EQUIP", Value = 128)] + UNIT_EQUIP = 128, + [ProtoEnum(Name = "UNIT_SKILL", Value = 256)] + UNIT_SKILL = 256, + [ProtoEnum(Name = "UNIT_EMBLEM", Value = 512)] + UNIT_EMBLEM = 512, + [ProtoEnum(Name = "UNIT_VIPLEVEL", Value = 1024)] + UNIT_VIPLEVEL = 1024, + [ProtoEnum(Name = "UNIT_TIMELOGIN", Value = 2048)] + UNIT_TIMELOGIN = 2048, + [ProtoEnum(Name = "UNIT_GUILD", Value = 16384)] + UNIT_GUILD = 16384, + [ProtoEnum(Name = "UNIT_TITLE", Value = 524288)] + UNIT_TITLE = 524288, + [ProtoEnum(Name = "UNIT_SPRITELEADER", Value = 8388608)] + UNIT_SPRITELEADER = 8388608, + [ProtoEnum(Name = "UNIT_SPRITE", Value = 16777216)] + UNIT_SPRITE = 16777216, + [ProtoEnum(Name = "UNIT_PETS", Value = 33554432)] + UNIT_PETS = 33554432, + [ProtoEnum(Name = "UNIT_ARTIFACT", Value = 32768)] + UNIT_ARTIFACT = 32768, + [ProtoEnum(Name = "UNIT_PRE", Value = 65536)] + UNIT_PRE = 65536 + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceField.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceField.cs.meta new file mode 100644 index 00000000..6d9872e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceField.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88f8b79f567f30d4ca65bbb48e66f414 +timeCreated: 1611404086 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs new file mode 100644 index 00000000..ed493727 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UnitAppearanceTeam")] + [Serializable] + public class UnitAppearanceTeam : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamid", DataFormat = DataFormat.TwosComplement)] + public uint teamid + { + get + { + return this._teamid ?? 0u; + } + set + { + this._teamid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamidSpecified + { + get + { + return this._teamid != null; + } + set + { + bool flag = value == (this._teamid == null); + if (flag) + { + this._teamid = (value ? new uint?(this.teamid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "haspassword", DataFormat = DataFormat.Default)] + public bool haspassword + { + get + { + return this._haspassword ?? false; + } + set + { + this._haspassword = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool haspasswordSpecified + { + get + { + return this._haspassword != null; + } + set + { + bool flag = value == (this._haspassword == null); + if (flag) + { + this._haspassword = (value ? new bool?(this.haspassword) : null); + } + } + } + + private uint? _teamid; + + private bool? _haspassword; + + private IExtension extensionObject; + + private bool ShouldSerializeteamid() + { + return this.teamidSpecified; + } + + private void Resetteamid() + { + this.teamidSpecified = false; + } + + private bool ShouldSerializehaspassword() + { + return this.haspasswordSpecified; + } + + private void Resethaspassword() + { + this.haspasswordSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs.meta new file mode 100644 index 00000000..cce4631e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitAppearanceTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01e9244ab07622f479aa7d01e4bdbfbd +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitSpecialState.cs b/Client/Assets/Scripts/XMainClient/KKSG/UnitSpecialState.cs new file mode 100644 index 00000000..d043b68f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitSpecialState.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UnitSpecialState")] + public enum UnitSpecialState + { + [ProtoEnum(Name = "Unit_Puppet", Value = 1)] + Unit_Puppet = 1, + [ProtoEnum(Name = "Unit_Invisible", Value = 2)] + Unit_Invisible + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnitSpecialState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UnitSpecialState.cs.meta new file mode 100644 index 00000000..5675da1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnitSpecialState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c41ed9e6854d624aaf92eb12445fbcf +timeCreated: 1611403894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnlockSealFindBackData.cs b/Client/Assets/Scripts/XMainClient/KKSG/UnlockSealFindBackData.cs new file mode 100644 index 00000000..0d9acecd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnlockSealFindBackData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UnlockSealFindBackData")] + [Serializable] + public class UnlockSealFindBackData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.Default)] + public bool state + { + get + { + return this._state ?? false; + } + set + { + this._state = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new bool?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public int type + { + get + { + return this._type ?? 0; + } + set + { + this._type = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new int?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public int time + { + get + { + return this._time ?? 0; + } + set + { + this._time = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new int?(this.time) : null); + } + } + } + + private bool? _state; + + private int? _type; + + private int? _time; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UnlockSealFindBackData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UnlockSealFindBackData.cs.meta new file mode 100644 index 00000000..fac138e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UnlockSealFindBackData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fdd5e0627e94dd94485fdd21e23b207a +timeCreated: 1611404938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioReq.cs new file mode 100644 index 00000000..5578a83b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioReq.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpLoadAudioReq")] + [Serializable] + public class UpLoadAudioReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "audio", DataFormat = DataFormat.Default)] + public byte[] audio + { + get + { + return this._audio ?? null; + } + set + { + this._audio = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioSpecified + { + get + { + return this._audio != null; + } + set + { + bool flag = value == (this._audio == null); + if (flag) + { + this._audio = (value ? this.audio : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "text", DataFormat = DataFormat.Default)] + public byte[] text + { + get + { + return this._text ?? null; + } + set + { + this._text = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool textSpecified + { + get + { + return this._text != null; + } + set + { + bool flag = value == (this._text == null); + if (flag) + { + this._text = (value ? this.text : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "srctype", DataFormat = DataFormat.TwosComplement)] + public uint srctype + { + get + { + return this._srctype ?? 0u; + } + set + { + this._srctype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool srctypeSpecified + { + get + { + return this._srctype != null; + } + set + { + bool flag = value == (this._srctype == null); + if (flag) + { + this._srctype = (value ? new uint?(this.srctype) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "savetype", DataFormat = DataFormat.TwosComplement)] + public uint savetype + { + get + { + return this._savetype ?? 0u; + } + set + { + this._savetype = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool savetypeSpecified + { + get + { + return this._savetype != null; + } + set + { + bool flag = value == (this._savetype == null); + if (flag) + { + this._savetype = (value ? new uint?(this.savetype) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "iscross", DataFormat = DataFormat.Default)] + public bool iscross + { + get + { + return this._iscross ?? false; + } + set + { + this._iscross = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iscrossSpecified + { + get + { + return this._iscross != null; + } + set + { + bool flag = value == (this._iscross == null); + if (flag) + { + this._iscross = (value ? new bool?(this.iscross) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "rpcid", DataFormat = DataFormat.TwosComplement)] + public uint rpcid + { + get + { + return this._rpcid ?? 0u; + } + set + { + this._rpcid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rpcidSpecified + { + get + { + return this._rpcid != null; + } + set + { + bool flag = value == (this._rpcid == null); + if (flag) + { + this._rpcid = (value ? new uint?(this.rpcid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "audiouid", DataFormat = DataFormat.TwosComplement)] + public ulong audiouid + { + get + { + return this._audiouid ?? 0UL; + } + set + { + this._audiouid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audiouidSpecified + { + get + { + return this._audiouid != null; + } + set + { + bool flag = value == (this._audiouid == null); + if (flag) + { + this._audiouid = (value ? new ulong?(this.audiouid) : null); + } + } + } + + private byte[] _audio; + + private byte[] _text; + + private uint? _srctype; + + private uint? _savetype; + + private bool? _iscross; + + private uint? _rpcid; + + private ulong? _audiouid; + + private IExtension extensionObject; + + private bool ShouldSerializeaudio() + { + return this.audioSpecified; + } + + private void Resetaudio() + { + this.audioSpecified = false; + } + + private bool ShouldSerializetext() + { + return this.textSpecified; + } + + private void Resettext() + { + this.textSpecified = false; + } + + private bool ShouldSerializesrctype() + { + return this.srctypeSpecified; + } + + private void Resetsrctype() + { + this.srctypeSpecified = false; + } + + private bool ShouldSerializesavetype() + { + return this.savetypeSpecified; + } + + private void Resetsavetype() + { + this.savetypeSpecified = false; + } + + private bool ShouldSerializeiscross() + { + return this.iscrossSpecified; + } + + private void Resetiscross() + { + this.iscrossSpecified = false; + } + + private bool ShouldSerializerpcid() + { + return this.rpcidSpecified; + } + + private void Resetrpcid() + { + this.rpcidSpecified = false; + } + + private bool ShouldSerializeaudiouid() + { + return this.audiouidSpecified; + } + + private void Resetaudiouid() + { + this.audiouidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioReq.cs.meta new file mode 100644 index 00000000..08af0b7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c56626fdae9e7e2438862cbcbc49fd77 +timeCreated: 1611404506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioRes.cs new file mode 100644 index 00000000..cd37fea9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpLoadAudioRes")] + [Serializable] + public class UpLoadAudioRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "audiodownuid", DataFormat = DataFormat.TwosComplement)] + public ulong audiodownuid + { + get + { + return this._audiodownuid ?? 0UL; + } + set + { + this._audiodownuid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audiodownuidSpecified + { + get + { + return this._audiodownuid != null; + } + set + { + bool flag = value == (this._audiodownuid == null); + if (flag) + { + this._audiodownuid = (value ? new ulong?(this.audiodownuid) : null); + } + } + } + + private ErrorCode? _result; + + private ulong? _audiodownuid; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + private bool ShouldSerializeaudiodownuid() + { + return this.audiodownuidSpecified; + } + + private void Resetaudiodownuid() + { + this.audiodownuidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioRes.cs.meta new file mode 100644 index 00000000..e4ad5bc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpLoadAudioRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7782796756980864bb2e3b016e3d5b5c +timeCreated: 1611403954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateDisplayItems.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateDisplayItems.cs new file mode 100644 index 00000000..a7c419db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateDisplayItems.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateDisplayItems")] + [Serializable] + public class UpdateDisplayItems : IExtensible + { + [ProtoMember(1, Name = "display_items", DataFormat = DataFormat.TwosComplement)] + public List display_items + { + get + { + return this._display_items; + } + } + + [ProtoMember(2, IsRequired = false, Name = "hair_color_id", DataFormat = DataFormat.TwosComplement)] + public uint hair_color_id + { + get + { + return this._hair_color_id ?? 0u; + } + set + { + this._hair_color_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hair_color_idSpecified + { + get + { + return this._hair_color_id != null; + } + set + { + bool flag = value == (this._hair_color_id == null); + if (flag) + { + this._hair_color_id = (value ? new uint?(this.hair_color_id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "special_effects_id", DataFormat = DataFormat.TwosComplement)] + public uint special_effects_id + { + get + { + return this._special_effects_id ?? 0u; + } + set + { + this._special_effects_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool special_effects_idSpecified + { + get + { + return this._special_effects_id != null; + } + set + { + bool flag = value == (this._special_effects_id == null); + if (flag) + { + this._special_effects_id = (value ? new uint?(this.special_effects_id) : null); + } + } + } + + private readonly List _display_items = new List(); + + private uint? _hair_color_id; + + private uint? _special_effects_id; + + private IExtension extensionObject; + + private bool ShouldSerializehair_color_id() + { + return this.hair_color_idSpecified; + } + + private void Resethair_color_id() + { + this.hair_color_idSpecified = false; + } + + private bool ShouldSerializespecial_effects_id() + { + return this.special_effects_idSpecified; + } + + private void Resetspecial_effects_id() + { + this.special_effects_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateDisplayItems.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateDisplayItems.cs.meta new file mode 100644 index 00000000..bacba1cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateDisplayItems.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08427b81124a405418107de07d85a644 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateFreeflowHintInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateFreeflowHintInfo.cs new file mode 100644 index 00000000..c80a5c1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateFreeflowHintInfo.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateFreeflowHintInfo")] + [Serializable] + public class UpdateFreeflowHintInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hint_time", DataFormat = DataFormat.TwosComplement)] + public uint hint_time + { + get + { + return this._hint_time ?? 0u; + } + set + { + this._hint_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hint_timeSpecified + { + get + { + return this._hint_time != null; + } + set + { + bool flag = value == (this._hint_time == null); + if (flag) + { + this._hint_time = (value ? new uint?(this.hint_time) : null); + } + } + } + + private uint? _hint_time; + + private IExtension extensionObject; + + private bool ShouldSerializehint_time() + { + return this.hint_timeSpecified; + } + + private void Resethint_time() + { + this.hint_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateFreeflowHintInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateFreeflowHintInfo.cs.meta new file mode 100644 index 00000000..e71cc8a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateFreeflowHintInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 146a86bf1fcc7f0448f6e422979888c4 +timeCreated: 1611403257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateGuildArenaState.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateGuildArenaState.cs new file mode 100644 index 00000000..b5bb39cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateGuildArenaState.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateGuildArenaState")] + [Serializable] + public class UpdateGuildArenaState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "warType", DataFormat = DataFormat.TwosComplement)] + public uint warType + { + get + { + return this._warType ?? 0u; + } + set + { + this._warType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool warTypeSpecified + { + get + { + return this._warType != null; + } + set + { + bool flag = value == (this._warType == null); + if (flag) + { + this._warType = (value ? new uint?(this.warType) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "battleId", DataFormat = DataFormat.TwosComplement)] + public uint battleId + { + get + { + return this._battleId ?? 0u; + } + set + { + this._battleId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool battleIdSpecified + { + get + { + return this._battleId != null; + } + set + { + bool flag = value == (this._battleId == null); + if (flag) + { + this._battleId = (value ? new uint?(this.battleId) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + private uint? _warType; + + private uint? _battleId; + + private uint? _state; + + private IExtension extensionObject; + + private bool ShouldSerializewarType() + { + return this.warTypeSpecified; + } + + private void ResetwarType() + { + this.warTypeSpecified = false; + } + + private bool ShouldSerializebattleId() + { + return this.battleIdSpecified; + } + + private void ResetbattleId() + { + this.battleIdSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateGuildArenaState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateGuildArenaState.cs.meta new file mode 100644 index 00000000..4ed9b927 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateGuildArenaState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 031ca0d7c53514a468f57b3fd4ec0c38 +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs new file mode 100644 index 00000000..e745d670 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateLeagueBattleSeasonInfo")] + [Serializable] + public class UpdateLeagueBattleSeasonInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "is_open", DataFormat = DataFormat.Default)] + public bool is_open + { + get + { + return this._is_open ?? false; + } + set + { + this._is_open = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_openSpecified + { + get + { + return this._is_open != null; + } + set + { + bool flag = value == (this._is_open == null); + if (flag) + { + this._is_open = (value ? new bool?(this.is_open) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "is_cross", DataFormat = DataFormat.Default)] + public bool is_cross + { + get + { + return this._is_cross ?? false; + } + set + { + this._is_cross = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_crossSpecified + { + get + { + return this._is_cross != null; + } + set + { + bool flag = value == (this._is_cross == null); + if (flag) + { + this._is_cross = (value ? new bool?(this.is_cross) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "league_teamid", DataFormat = DataFormat.TwosComplement)] + public ulong league_teamid + { + get + { + return this._league_teamid ?? 0UL; + } + set + { + this._league_teamid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamidSpecified + { + get + { + return this._league_teamid != null; + } + set + { + bool flag = value == (this._league_teamid == null); + if (flag) + { + this._league_teamid = (value ? new ulong?(this.league_teamid) : null); + } + } + } + + [ProtoMember(4, Name = "league_teammember", DataFormat = DataFormat.TwosComplement)] + public List league_teammember + { + get + { + return this._league_teammember; + } + } + + [ProtoMember(5, IsRequired = false, Name = "league_teamstate", DataFormat = DataFormat.TwosComplement)] + public LeagueTeamState league_teamstate + { + get + { + return this._league_teamstate ?? LeagueTeamState.LeagueTeamState_Idle; + } + set + { + this._league_teamstate = new LeagueTeamState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool league_teamstateSpecified + { + get + { + return this._league_teamstate != null; + } + set + { + bool flag = value == (this._league_teamstate == null); + if (flag) + { + this._league_teamstate = (value ? new LeagueTeamState?(this.league_teamstate) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "season_num", DataFormat = DataFormat.TwosComplement)] + public uint season_num + { + get + { + return this._season_num ?? 0u; + } + set + { + this._season_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool season_numSpecified + { + get + { + return this._season_num != null; + } + set + { + bool flag = value == (this._season_num == null); + if (flag) + { + this._season_num = (value ? new uint?(this.season_num) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "matchlefttime", DataFormat = DataFormat.TwosComplement)] + public uint matchlefttime + { + get + { + return this._matchlefttime ?? 0u; + } + set + { + this._matchlefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool matchlefttimeSpecified + { + get + { + return this._matchlefttime != null; + } + set + { + bool flag = value == (this._matchlefttime == null); + if (flag) + { + this._matchlefttime = (value ? new uint?(this.matchlefttime) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public LeagueBattleTimeState state + { + get + { + return this._state ?? LeagueBattleTimeState.LBTS_BeforeOpen; + } + set + { + this._state = new LeagueBattleTimeState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new LeagueBattleTimeState?(this.state) : null); + } + } + } + + private bool? _is_open; + + private bool? _is_cross; + + private ulong? _league_teamid; + + private readonly List _league_teammember = new List(); + + private LeagueTeamState? _league_teamstate; + + private uint? _season_num; + + private uint? _matchlefttime; + + private LeagueBattleTimeState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializeis_open() + { + return this.is_openSpecified; + } + + private void Resetis_open() + { + this.is_openSpecified = false; + } + + private bool ShouldSerializeis_cross() + { + return this.is_crossSpecified; + } + + private void Resetis_cross() + { + this.is_crossSpecified = false; + } + + private bool ShouldSerializeleague_teamid() + { + return this.league_teamidSpecified; + } + + private void Resetleague_teamid() + { + this.league_teamidSpecified = false; + } + + private bool ShouldSerializeleague_teamstate() + { + return this.league_teamstateSpecified; + } + + private void Resetleague_teamstate() + { + this.league_teamstateSpecified = false; + } + + private bool ShouldSerializeseason_num() + { + return this.season_numSpecified; + } + + private void Resetseason_num() + { + this.season_numSpecified = false; + } + + private bool ShouldSerializematchlefttime() + { + return this.matchlefttimeSpecified; + } + + private void Resetmatchlefttime() + { + this.matchlefttimeSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs.meta new file mode 100644 index 00000000..57d50b67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueBattleSeasonInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd766114df7557246b90dffe68228b8f +timeCreated: 1611404683 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueEleRoomStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueEleRoomStateNtf.cs new file mode 100644 index 00000000..e78ba28a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueEleRoomStateNtf.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateLeagueEleRoomStateNtf")] + [Serializable] + public class UpdateLeagueEleRoomStateNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "room", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public LBEleRoomInfo room + { + get + { + return this._room; + } + set + { + this._room = value; + } + } + + private LBEleRoomInfo _room = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueEleRoomStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueEleRoomStateNtf.cs.meta new file mode 100644 index 00000000..5018780e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueEleRoomStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5711bf555f6bec64fa8e0267d10c891c +timeCreated: 1611403747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueTeamState.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueTeamState.cs new file mode 100644 index 00000000..34256c1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueTeamState.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateLeagueTeamState")] + [Serializable] + public class UpdateLeagueTeamState : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public LeagueTeamState state + { + get + { + return this._state ?? LeagueTeamState.LeagueTeamState_Idle; + } + set + { + this._state = new LeagueTeamState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new LeagueTeamState?(this.state) : null); + } + } + } + + private LeagueTeamState? _state; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueTeamState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueTeamState.cs.meta new file mode 100644 index 00000000..1b96b48c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateLeagueTeamState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7d048ecbfb7bee4c975c0606d3af217 +timeCreated: 1611404292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoArg.cs new file mode 100644 index 00000000..12dbe44d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoArg.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateMentorApplyStudentInfoArg")] + [Serializable] + public class UpdateMentorApplyStudentInfoArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "audioID", DataFormat = DataFormat.TwosComplement)] + public ulong audioID + { + get + { + return this._audioID ?? 0UL; + } + set + { + this._audioID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool audioIDSpecified + { + get + { + return this._audioID != null; + } + set + { + bool flag = value == (this._audioID == null); + if (flag) + { + this._audioID = (value ? new ulong?(this.audioID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "applyWords", DataFormat = DataFormat.Default)] + public string applyWords + { + get + { + return this._applyWords ?? ""; + } + set + { + this._applyWords = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool applyWordsSpecified + { + get + { + return this._applyWords != null; + } + set + { + bool flag = value == (this._applyWords == null); + if (flag) + { + this._applyWords = (value ? this.applyWords : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isNeedStudent", DataFormat = DataFormat.Default)] + public bool isNeedStudent + { + get + { + return this._isNeedStudent ?? false; + } + set + { + this._isNeedStudent = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isNeedStudentSpecified + { + get + { + return this._isNeedStudent != null; + } + set + { + bool flag = value == (this._isNeedStudent == null); + if (flag) + { + this._isNeedStudent = (value ? new bool?(this.isNeedStudent) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "onlineNotify", DataFormat = DataFormat.Default)] + public bool onlineNotify + { + get + { + return this._onlineNotify ?? false; + } + set + { + this._onlineNotify = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool onlineNotifySpecified + { + get + { + return this._onlineNotify != null; + } + set + { + bool flag = value == (this._onlineNotify == null); + if (flag) + { + this._onlineNotify = (value ? new bool?(this.onlineNotify) : null); + } + } + } + + private ulong? _audioID; + + private string _applyWords; + + private bool? _isNeedStudent; + + private bool? _onlineNotify; + + private IExtension extensionObject; + + private bool ShouldSerializeaudioID() + { + return this.audioIDSpecified; + } + + private void ResetaudioID() + { + this.audioIDSpecified = false; + } + + private bool ShouldSerializeapplyWords() + { + return this.applyWordsSpecified; + } + + private void ResetapplyWords() + { + this.applyWordsSpecified = false; + } + + private bool ShouldSerializeisNeedStudent() + { + return this.isNeedStudentSpecified; + } + + private void ResetisNeedStudent() + { + this.isNeedStudentSpecified = false; + } + + private bool ShouldSerializeonlineNotify() + { + return this.onlineNotifySpecified; + } + + private void ResetonlineNotify() + { + this.onlineNotifySpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoArg.cs.meta new file mode 100644 index 00000000..ce6696da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 857e1e2f7121c7c48ac80f3f174f23ac +timeCreated: 1611404051 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoRes.cs new file mode 100644 index 00000000..b7e5e4fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateMentorApplyStudentInfoRes")] + [Serializable] + public class UpdateMentorApplyStudentInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + private ErrorCode? _error; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoRes.cs.meta new file mode 100644 index 00000000..bd288c47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateMentorApplyStudentInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09d27da20ebbee643996177e8a4e8dce +timeCreated: 1611403159 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs new file mode 100644 index 00000000..c2a7f9ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdatePartnerToClient")] + [Serializable] + public class UpdatePartnerToClient : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public PartnerUpdateType type + { + get + { + return this._type ?? PartnerUpdateType.PUType_Normal; + } + set + { + this._type = new PartnerUpdateType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new PartnerUpdateType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "partid", DataFormat = DataFormat.TwosComplement)] + public ulong partid + { + get + { + return this._partid ?? 0UL; + } + set + { + this._partid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool partidSpecified + { + get + { + return this._partid != null; + } + set + { + bool flag = value == (this._partid == null); + if (flag) + { + this._partid = (value ? new ulong?(this.partid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "degree", DataFormat = DataFormat.TwosComplement)] + public uint degree + { + get + { + return this._degree ?? 0u; + } + set + { + this._degree = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool degreeSpecified + { + get + { + return this._degree != null; + } + set + { + bool flag = value == (this._degree == null); + if (flag) + { + this._degree = (value ? new uint?(this.degree) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "leave_id", DataFormat = DataFormat.TwosComplement)] + public ulong leave_id + { + get + { + return this._leave_id ?? 0UL; + } + set + { + this._leave_id = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leave_idSpecified + { + get + { + return this._leave_id != null; + } + set + { + bool flag = value == (this._leave_id == null); + if (flag) + { + this._leave_id = (value ? new ulong?(this.leave_id) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "leave_name", DataFormat = DataFormat.Default)] + public string leave_name + { + get + { + return this._leave_name ?? ""; + } + set + { + this._leave_name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leave_nameSpecified + { + get + { + return this._leave_name != null; + } + set + { + bool flag = value == (this._leave_name == null); + if (flag) + { + this._leave_name = (value ? this.leave_name : null); + } + } + } + + private PartnerUpdateType? _type; + + private ulong? _partid; + + private uint? _level; + + private uint? _degree; + + private ulong? _leave_id; + + private string _leave_name; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializepartid() + { + return this.partidSpecified; + } + + private void Resetpartid() + { + this.partidSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializedegree() + { + return this.degreeSpecified; + } + + private void Resetdegree() + { + this.degreeSpecified = false; + } + + private bool ShouldSerializeleave_id() + { + return this.leave_idSpecified; + } + + private void Resetleave_id() + { + this.leave_idSpecified = false; + } + + private bool ShouldSerializeleave_name() + { + return this.leave_nameSpecified; + } + + private void Resetleave_name() + { + this.leave_nameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs.meta new file mode 100644 index 00000000..b55f6460 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdatePartnerToClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8966d6d9d2fe684479cc26f0dbfa9da6 +timeCreated: 1611404088 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs new file mode 100644 index 00000000..a223fe71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateStageInfoNtf")] + [Serializable] + public class UpdateStageInfoNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "Stages", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public StageInfo Stages + { + get + { + return this._Stages; + } + set + { + this._Stages = value; + } + } + + private StageInfo _Stages = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs.meta new file mode 100644 index 00000000..e6a963bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateStageInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ee76c59141bf054b9769f139e71b5a5 +timeCreated: 1611404132 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateStartUpType.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateStartUpType.cs new file mode 100644 index 00000000..cfa04a97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateStartUpType.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateStartUpType")] + [Serializable] + public class UpdateStartUpType : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public StartUpType type + { + get + { + return this._type ?? StartUpType.StartUp_Normal; + } + set + { + this._type = new StartUpType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new StartUpType?(this.type) : null); + } + } + } + + private StartUpType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateStartUpType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateStartUpType.cs.meta new file mode 100644 index 00000000..d8ace312 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateStartUpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0eca14071f1ba14c951b8a63bc88ad2 +timeCreated: 1611404589 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs new file mode 100644 index 00000000..c76eca35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpdateVoipRoomMemberNtf")] + [Serializable] + public class UpdateVoipRoomMemberNtf : IExtensible + { + [ProtoMember(1, Name = "dataList", DataFormat = DataFormat.Default)] + public List dataList + { + get + { + return this._dataList; + } + } + + private readonly List _dataList = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs.meta new file mode 100644 index 00000000..98d84eab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpdateVoipRoomMemberNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4548ac420f6fa447abcd350456a8c2e +timeCreated: 1611404601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipArg.cs new file mode 100644 index 00000000..13313c29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpgradeEquipArg")] + [Serializable] + public class UpgradeEquipArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + private ulong? _uid; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipArg.cs.meta new file mode 100644 index 00000000..636a713b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 378357dbc3f135f4fb029bc89f909940 +timeCreated: 1611403566 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipRes.cs new file mode 100644 index 00000000..9a125454 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UpgradeEquipRes")] + [Serializable] + public class UpgradeEquipRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipRes.cs.meta new file mode 100644 index 00000000..9448bbb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UpgradeEquipRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd42646fe8478f740a406560156260e4 +timeCreated: 1611404682 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffArg.cs new file mode 100644 index 00000000..1f004d29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffArg.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UseGuildBuffArg")] + [Serializable] + public class UseGuildBuffArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "guildid", DataFormat = DataFormat.TwosComplement)] + public ulong guildid + { + get + { + return this._guildid ?? 0UL; + } + set + { + this._guildid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildidSpecified + { + get + { + return this._guildid != null; + } + set + { + bool flag = value == (this._guildid == null); + if (flag) + { + this._guildid = (value ? new ulong?(this.guildid) : null); + } + } + } + + private uint? _itemid; + + private ulong? _guildid; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeguildid() + { + return this.guildidSpecified; + } + + private void Resetguildid() + { + this.guildidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffArg.cs.meta new file mode 100644 index 00000000..3960ad42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 171a59f0ecce9834ba7fd34dccfa4118 +timeCreated: 1611403291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffRes.cs new file mode 100644 index 00000000..1a8f2657 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UseGuildBuffRes")] + [Serializable] + public class UseGuildBuffRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "error", DataFormat = DataFormat.TwosComplement)] + public ErrorCode error + { + get + { + return this._error ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._error = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorSpecified + { + get + { + return this._error != null; + } + set + { + bool flag = value == (this._error == null); + if (flag) + { + this._error = (value ? new ErrorCode?(this.error) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "cd", DataFormat = DataFormat.TwosComplement)] + public uint cd + { + get + { + return this._cd ?? 0u; + } + set + { + this._cd = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cdSpecified + { + get + { + return this._cd != null; + } + set + { + bool flag = value == (this._cd == null); + if (flag) + { + this._cd = (value ? new uint?(this.cd) : null); + } + } + } + + private ErrorCode? _error; + + private uint? _cd; + + private IExtension extensionObject; + + private bool ShouldSerializeerror() + { + return this.errorSpecified; + } + + private void Reseterror() + { + this.errorSpecified = false; + } + + private bool ShouldSerializecd() + { + return this.cdSpecified; + } + + private void Resetcd() + { + this.cdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffRes.cs.meta new file mode 100644 index 00000000..6c7ad6db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseGuildBuffRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be12239fd11dae24d916b0a0fad51812 +timeCreated: 1611404458 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseItemArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/UseItemArg.cs new file mode 100644 index 00000000..a9b8c63d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseItemArg.cs @@ -0,0 +1,332 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UseItemArg")] + [Serializable] + public class UseItemArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "OpType", DataFormat = DataFormat.TwosComplement)] + public uint OpType + { + get + { + return this._OpType ?? 0u; + } + set + { + this._OpType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool OpTypeSpecified + { + get + { + return this._OpType != null; + } + set + { + bool flag = value == (this._OpType == null); + if (flag) + { + this._OpType = (value ? new uint?(this.OpType) : null); + } + } + } + + [ProtoMember(4, Name = "uids", DataFormat = DataFormat.TwosComplement)] + public List uids + { + get + { + return this._uids; + } + } + + [ProtoMember(5, IsRequired = false, Name = "itemID", DataFormat = DataFormat.TwosComplement)] + public uint itemID + { + get + { + return this._itemID ?? 0u; + } + set + { + this._itemID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemIDSpecified + { + get + { + return this._itemID != null; + } + set + { + bool flag = value == (this._itemID == null); + if (flag) + { + this._itemID = (value ? new uint?(this.itemID) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "petid", DataFormat = DataFormat.TwosComplement)] + public ulong petid + { + get + { + return this._petid ?? 0UL; + } + set + { + this._petid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petidSpecified + { + get + { + return this._petid != null; + } + set + { + bool flag = value == (this._petid == null); + if (flag) + { + this._petid = (value ? new ulong?(this.petid) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "suit_id", DataFormat = DataFormat.TwosComplement)] + public uint suit_id + { + get + { + return this._suit_id ?? 0u; + } + set + { + this._suit_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool suit_idSpecified + { + get + { + return this._suit_id != null; + } + set + { + bool flag = value == (this._suit_id == null); + if (flag) + { + this._suit_id = (value ? new uint?(this.suit_id) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "color_id", DataFormat = DataFormat.TwosComplement)] + public uint color_id + { + get + { + return this._color_id ?? 0u; + } + set + { + this._color_id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool color_idSpecified + { + get + { + return this._color_id != null; + } + set + { + bool flag = value == (this._color_id == null); + if (flag) + { + this._color_id = (value ? new uint?(this.color_id) : null); + } + } + } + + private ulong? _uid; + + private uint? _count; + + private uint? _OpType; + + private readonly List _uids = new List(); + + private uint? _itemID; + + private ulong? _petid; + + private uint? _suit_id; + + private uint? _color_id; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + private bool ShouldSerializeOpType() + { + return this.OpTypeSpecified; + } + + private void ResetOpType() + { + this.OpTypeSpecified = false; + } + + private bool ShouldSerializeitemID() + { + return this.itemIDSpecified; + } + + private void ResetitemID() + { + this.itemIDSpecified = false; + } + + private bool ShouldSerializepetid() + { + return this.petidSpecified; + } + + private void Resetpetid() + { + this.petidSpecified = false; + } + + private bool ShouldSerializesuit_id() + { + return this.suit_idSpecified; + } + + private void Resetsuit_id() + { + this.suit_idSpecified = false; + } + + private bool ShouldSerializecolor_id() + { + return this.color_idSpecified; + } + + private void Resetcolor_id() + { + this.color_idSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseItemArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UseItemArg.cs.meta new file mode 100644 index 00000000..0b5081c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseItemArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68832fe85db46474999e85e354586d70 +timeCreated: 1611403882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseItemRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/UseItemRes.cs new file mode 100644 index 00000000..09cd0c09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseItemRes.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UseItemRes")] + [Serializable] + public class UseItemRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ErrorCode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ErrorCode + { + get + { + return this._ErrorCode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ErrorCode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ErrorCodeSpecified + { + get + { + return this._ErrorCode != null; + } + set + { + bool flag = value == (this._ErrorCode == null); + if (flag) + { + this._ErrorCode = (value ? new ErrorCode?(this.ErrorCode) : null); + } + } + } + + [ProtoMember(2, Name = "ResultItems", DataFormat = DataFormat.Default)] + public List ResultItems + { + get + { + return this._ResultItems; + } + } + + [ProtoMember(3, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "expand", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BagExpandData expand + { + get + { + return this._expand; + } + set + { + this._expand = value; + } + } + + private ErrorCode? _ErrorCode; + + private readonly List _ResultItems = new List(); + + private ulong? _uid; + + private BagExpandData _expand = null; + + private IExtension extensionObject; + + private bool ShouldSerializeErrorCode() + { + return this.ErrorCodeSpecified; + } + + private void ResetErrorCode() + { + this.ErrorCodeSpecified = false; + } + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseItemRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UseItemRes.cs.meta new file mode 100644 index 00000000..81a60dc2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseItemRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 022c0b37118419c448c11185fb27ec83 +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementReq.cs b/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementReq.cs new file mode 100644 index 00000000..2a70485c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementReq.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UseSupplementReq")] + [Serializable] + public class UseSupplementReq : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uniqueid", DataFormat = DataFormat.TwosComplement)] + public ulong uniqueid + { + get + { + return this._uniqueid ?? 0UL; + } + set + { + this._uniqueid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uniqueidSpecified + { + get + { + return this._uniqueid != null; + } + set + { + bool flag = value == (this._uniqueid == null); + if (flag) + { + this._uniqueid = (value ? new ulong?(this.uniqueid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + private ulong? _uniqueid; + + private uint? _itemid; + + private IExtension extensionObject; + + private bool ShouldSerializeuniqueid() + { + return this.uniqueidSpecified; + } + + private void Resetuniqueid() + { + this.uniqueidSpecified = false; + } + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementReq.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementReq.cs.meta new file mode 100644 index 00000000..406366ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31a69c56022d4ba49a8eadac673b83db +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementRes.cs new file mode 100644 index 00000000..a43035ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "UseSupplementRes")] + [Serializable] + public class UseSupplementRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementRes.cs.meta new file mode 100644 index 00000000..3cfd382e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/UseSupplementRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba029b18a20f1a64a879117f59102e6e +timeCreated: 1611404433 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs b/Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs new file mode 100644 index 00000000..16d25582 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "Vec3")] + [Serializable] + public class Vec3 : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "x", DataFormat = DataFormat.FixedSize)] + public float x + { + get + { + return this._x ?? 0f; + } + set + { + this._x = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool xSpecified + { + get + { + return this._x != null; + } + set + { + bool flag = value == (this._x == null); + if (flag) + { + this._x = (value ? new float?(this.x) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "y", DataFormat = DataFormat.FixedSize)] + public float y + { + get + { + return this._y ?? 0f; + } + set + { + this._y = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ySpecified + { + get + { + return this._y != null; + } + set + { + bool flag = value == (this._y == null); + if (flag) + { + this._y = (value ? new float?(this.y) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "z", DataFormat = DataFormat.FixedSize)] + public float z + { + get + { + return this._z ?? 0f; + } + set + { + this._z = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool zSpecified + { + get + { + return this._z != null; + } + set + { + bool flag = value == (this._z == null); + if (flag) + { + this._z = (value ? new float?(this.z) : null); + } + } + } + + private float? _x; + + private float? _y; + + private float? _z; + + private IExtension extensionObject; + + private bool ShouldSerializex() + { + return this.xSpecified; + } + + private void Resetx() + { + this.xSpecified = false; + } + + private bool ShouldSerializey() + { + return this.ySpecified; + } + + private void Resety() + { + this.ySpecified = false; + } + + private bool ShouldSerializez() + { + return this.zSpecified; + } + + private void Resetz() + { + this.zSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs.meta new file mode 100644 index 00000000..5e5a0015 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/Vec3.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73a48ccc68570f94a8288a5e20c7d6b1 +timeCreated: 1611403941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs b/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs new file mode 100644 index 00000000..2a5da6b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "VoipRoomMember")] + [Serializable] + public class VoipRoomMember : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "memberID", DataFormat = DataFormat.TwosComplement)] + public int memberID + { + get + { + return this._memberID ?? 0; + } + set + { + this._memberID = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool memberIDSpecified + { + get + { + return this._memberID != null; + } + set + { + bool flag = value == (this._memberID == null); + if (flag) + { + this._memberID = (value ? new int?(this.memberID) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleID", DataFormat = DataFormat.TwosComplement)] + public ulong roleID + { + get + { + return this._roleID ?? 0UL; + } + set + { + this._roleID = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleIDSpecified + { + get + { + return this._roleID != null; + } + set + { + bool flag = value == (this._roleID == null); + if (flag) + { + this._roleID = (value ? new ulong?(this.roleID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + private int? _memberID; + + private ulong? _roleID; + + private string _name; + + private uint? _state; + + private IExtension extensionObject; + + private bool ShouldSerializememberID() + { + return this.memberIDSpecified; + } + + private void ResetmemberID() + { + this.memberIDSpecified = false; + } + + private bool ShouldSerializeroleID() + { + return this.roleIDSpecified; + } + + private void ResetroleID() + { + this.roleIDSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs.meta new file mode 100644 index 00000000..ff46a97c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/VoipRoomMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b520c23de7960c8408c06e15c8e31b6e +timeCreated: 1611404394 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/VsPayRevivePara.cs b/Client/Assets/Scripts/XMainClient/KKSG/VsPayRevivePara.cs new file mode 100644 index 00000000..ed8212b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/VsPayRevivePara.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "VsPayRevivePara")] + [Serializable] + public class VsPayRevivePara : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "itemid", DataFormat = DataFormat.TwosComplement)] + public uint itemid + { + get + { + return this._itemid ?? 0u; + } + set + { + this._itemid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemidSpecified + { + get + { + return this._itemid != null; + } + set + { + bool flag = value == (this._itemid == null); + if (flag) + { + this._itemid = (value ? new uint?(this.itemid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "itemcount", DataFormat = DataFormat.TwosComplement)] + public uint itemcount + { + get + { + return this._itemcount ?? 0u; + } + set + { + this._itemcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool itemcountSpecified + { + get + { + return this._itemcount != null; + } + set + { + bool flag = value == (this._itemcount == null); + if (flag) + { + this._itemcount = (value ? new uint?(this.itemcount) : null); + } + } + } + + private uint? _itemid; + + private uint? _itemcount; + + private IExtension extensionObject; + + private bool ShouldSerializeitemid() + { + return this.itemidSpecified; + } + + private void Resetitemid() + { + this.itemidSpecified = false; + } + + private bool ShouldSerializeitemcount() + { + return this.itemcountSpecified; + } + + private void Resetitemcount() + { + this.itemcountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/VsPayRevivePara.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/VsPayRevivePara.cs.meta new file mode 100644 index 00000000..3ba0e5a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/VsPayRevivePara.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9403a04b4a4cb8649bedb1aa8f5a30cf +timeCreated: 1611404153 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs new file mode 100644 index 00000000..758d202e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "VsPayReviveRes")] + [Serializable] + public class VsPayReviveRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "ret", DataFormat = DataFormat.TwosComplement)] + public ErrorCode ret + { + get + { + return this._ret ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._ret = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool retSpecified + { + get + { + return this._ret != null; + } + set + { + bool flag = value == (this._ret == null); + if (flag) + { + this._ret = (value ? new ErrorCode?(this.ret) : null); + } + } + } + + private ErrorCode? _ret; + + private IExtension extensionObject; + + private bool ShouldSerializeret() + { + return this.retSpecified; + } + + private void Resetret() + { + this.retSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs.meta new file mode 100644 index 00000000..dfe82bfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/VsPayReviveRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b850ef566fd49c64a997453e8cad73b5 +timeCreated: 1611404404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WageRewardState.cs b/Client/Assets/Scripts/XMainClient/KKSG/WageRewardState.cs new file mode 100644 index 00000000..88f731ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WageRewardState.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WageRewardState")] + public enum WageRewardState + { + [ProtoEnum(Name = "cannot", Value = 1)] + cannot = 1, + [ProtoEnum(Name = "rewarded", Value = 2)] + rewarded, + [ProtoEnum(Name = "notreward", Value = 3)] + notreward + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WageRewardState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WageRewardState.cs.meta new file mode 100644 index 00000000..fa0a4386 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WageRewardState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3fc54335a1924f4ab2d37d9cd2739ed +timeCreated: 1611404391 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WarningItemSet.cs b/Client/Assets/Scripts/XMainClient/KKSG/WarningItemSet.cs new file mode 100644 index 00000000..0f3d306b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WarningItemSet.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WarningItemSet")] + [Serializable] + public class WarningItemSet : IExtensible + { + [ProtoMember(1, Name = "WarningItem", DataFormat = DataFormat.Default)] + public List WarningItem + { + get + { + return this._WarningItem; + } + } + + private readonly List _WarningItem = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WarningItemSet.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WarningItemSet.cs.meta new file mode 100644 index 00000000..99dcab32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WarningItemSet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c60b09509cf570e429d76f16a0de5410 +timeCreated: 1611404507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WarningPackage.cs b/Client/Assets/Scripts/XMainClient/KKSG/WarningPackage.cs new file mode 100644 index 00000000..cf021cc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WarningPackage.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WarningPackage")] + [Serializable] + public class WarningPackage : IExtensible + { + [ProtoMember(1, Name = "WarningPos", DataFormat = DataFormat.TwosComplement)] + public List WarningPos + { + get + { + return this._WarningPos; + } + } + + [ProtoMember(2, IsRequired = true, Name = "ID", DataFormat = DataFormat.TwosComplement)] + public ulong ID + { + get + { + return this._ID; + } + set + { + this._ID = value; + } + } + + private readonly List _WarningPos = new List(); + + private ulong _ID; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WarningPackage.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WarningPackage.cs.meta new file mode 100644 index 00000000..2056c1d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WarningPackage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40f91af3f45c54f4ca2125380ca4088b +timeCreated: 1611403616 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs b/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs new file mode 100644 index 00000000..23b620d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs @@ -0,0 +1,59 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WarningRandomSet")] + [Serializable] + public class WarningRandomSet : IExtensible + { + [ProtoMember(1, Name = "WarningItems", DataFormat = DataFormat.Default)] + public List WarningItems + { + get + { + return this._WarningItems; + } + } + + [ProtoMember(2, IsRequired = true, Name = "Firer", DataFormat = DataFormat.TwosComplement)] + public ulong Firer + { + get + { + return this._Firer; + } + set + { + this._Firer = value; + } + } + + [ProtoMember(3, IsRequired = true, Name = "skill", DataFormat = DataFormat.TwosComplement)] + public uint skill + { + get + { + return this._skill; + } + set + { + this._skill = value; + } + } + + private readonly List _WarningItems = new List(); + + private ulong _Firer; + + private uint _skill; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs.meta new file mode 100644 index 00000000..f5031ad0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WarningRandomSet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b61e3f3da5e50404dbfa098795d7c1e9 +timeCreated: 1611404397 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WatchBattleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/WatchBattleData.cs new file mode 100644 index 00000000..25cff073 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WatchBattleData.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WatchBattleData")] + [Serializable] + public class WatchBattleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "watchNum", DataFormat = DataFormat.TwosComplement)] + public int watchNum + { + get + { + return this._watchNum ?? 0; + } + set + { + this._watchNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool watchNumSpecified + { + get + { + return this._watchNum != null; + } + set + { + bool flag = value == (this._watchNum == null); + if (flag) + { + this._watchNum = (value ? new int?(this.watchNum) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "commendNum", DataFormat = DataFormat.TwosComplement)] + public int commendNum + { + get + { + return this._commendNum ?? 0; + } + set + { + this._commendNum = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool commendNumSpecified + { + get + { + return this._commendNum != null; + } + set + { + bool flag = value == (this._commendNum == null); + if (flag) + { + this._commendNum = (value ? new int?(this.commendNum) : null); + } + } + } + + private int? _watchNum; + + private int? _commendNum; + + private IExtension extensionObject; + + private bool ShouldSerializewatchNum() + { + return this.watchNumSpecified; + } + + private void ResetwatchNum() + { + this.watchNumSpecified = false; + } + + private bool ShouldSerializecommendNum() + { + return this.commendNumSpecified; + } + + private void ResetcommendNum() + { + this.commendNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WatchBattleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WatchBattleData.cs.meta new file mode 100644 index 00000000..f5b2c4da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WatchBattleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cbb4f704b2a20d49bb5f77da36ad0a6 +timeCreated: 1611403692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingBrief.cs new file mode 100644 index 00000000..ffff0122 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingBrief.cs @@ -0,0 +1,223 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingBrief")] + [Serializable] + public class WeddingBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "weddingid", DataFormat = DataFormat.TwosComplement)] + public ulong weddingid + { + get + { + return this._weddingid ?? 0UL; + } + set + { + this._weddingid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weddingidSpecified + { + get + { + return this._weddingid != null; + } + set + { + bool flag = value == (this._weddingid == null); + if (flag) + { + this._weddingid = (value ? new ulong?(this.weddingid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeddingType type + { + get + { + return this._type ?? WeddingType.WeddingType_Normal; + } + set + { + this._type = new WeddingType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeddingType?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "role1", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeddingRoleBrief role1 + { + get + { + return this._role1; + } + set + { + this._role1 = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "role2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeddingRoleBrief role2 + { + get + { + return this._role2; + } + set + { + this._role2 = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public WeddingState state + { + get + { + return this._state ?? WeddingState.WeddingState_Prepare; + } + set + { + this._state = new WeddingState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new WeddingState?(this.state) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + private ulong? _weddingid; + + private WeddingType? _type; + + private WeddingRoleBrief _role1 = null; + + private WeddingRoleBrief _role2 = null; + + private WeddingState? _state; + + private uint? _lefttime; + + private IExtension extensionObject; + + private bool ShouldSerializeweddingid() + { + return this.weddingidSpecified; + } + + private void Resetweddingid() + { + this.weddingidSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingBrief.cs.meta new file mode 100644 index 00000000..34a9800a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad9a57ed1edf198478bb9f601c54c982 +timeCreated: 1611404335 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingCarNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingCarNotify.cs new file mode 100644 index 00000000..5ce2dda8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingCarNotify.cs @@ -0,0 +1,50 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingCarNotify")] + [Serializable] + public class WeddingCarNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "role1", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearance role1 + { + get + { + return this._role1; + } + set + { + this._role1 = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "role2", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public UnitAppearance role2 + { + get + { + return this._role2; + } + set + { + this._role2 = value; + } + } + + private UnitAppearance _role1 = null; + + private UnitAppearance _role2 = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingCarNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingCarNotify.cs.meta new file mode 100644 index 00000000..1a5a2be8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingCarNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8dfcc7dfad7cac42ac06515e92ef5c5 +timeCreated: 1611404535 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingEventNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingEventNtf.cs new file mode 100644 index 00000000..0093953b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingEventNtf.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingEventNtf")] + [Serializable] + public class WeddingEventNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeddingOperType type + { + get + { + return this._type ?? WeddingOperType.WeddingOper_Flower; + } + set + { + this._type = new WeddingOperType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeddingOperType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "total_num", DataFormat = DataFormat.TwosComplement)] + public uint total_num + { + get + { + return this._total_num ?? 0u; + } + set + { + this._total_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool total_numSpecified + { + get + { + return this._total_num != null; + } + set + { + bool flag = value == (this._total_num == null); + if (flag) + { + this._total_num = (value ? new uint?(this.total_num) : null); + } + } + } + + private WeddingOperType? _type; + + private ulong? _roleid; + + private string _rolename; + + private uint? _total_num; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializetotal_num() + { + return this.total_numSpecified; + } + + private void Resettotal_num() + { + this.total_numSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingEventNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingEventNtf.cs.meta new file mode 100644 index 00000000..6750e88f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingEventNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a5b6307e00e902142ab0dec56c12b273 +timeCreated: 1611404287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteNtf.cs new file mode 100644 index 00000000..650ea304 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteNtf.cs @@ -0,0 +1,94 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingInviteNtf")] + [Serializable] + public class WeddingInviteNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeddingInviteOperType type + { + get + { + return this._type ?? WeddingInviteOperType.Wedding_Invite; + } + set + { + this._type = new WeddingInviteOperType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeddingInviteOperType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "weddinginfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeddingBrief weddinginfo + { + get + { + return this._weddinginfo; + } + set + { + this._weddinginfo = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "applyer", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeddingRoleBrief applyer + { + get + { + return this._applyer; + } + set + { + this._applyer = value; + } + } + + private WeddingInviteOperType? _type; + + private WeddingBrief _weddinginfo = null; + + private WeddingRoleBrief _applyer = null; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteNtf.cs.meta new file mode 100644 index 00000000..7a94d400 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17f8e7e9380dc3a4f94fe29e90e563e3 +timeCreated: 1611403295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperType.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperType.cs new file mode 100644 index 00000000..a9edfa36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperType.cs @@ -0,0 +1,26 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingInviteOperType")] + public enum WeddingInviteOperType + { + [ProtoEnum(Name = "Wedding_Invite", Value = 1)] + Wedding_Invite = 1, + [ProtoEnum(Name = "Wedding_Apply", Value = 2)] + Wedding_Apply, + [ProtoEnum(Name = "Wedding_AgreeApply", Value = 3)] + Wedding_AgreeApply, + [ProtoEnum(Name = "Wedding_DisagreeApply", Value = 4)] + Wedding_DisagreeApply, + [ProtoEnum(Name = "Wedding_PermitStranger", Value = 5)] + Wedding_PermitStranger, + [ProtoEnum(Name = "Wedding_ForbidStranger", Value = 6)] + Wedding_ForbidStranger, + [ProtoEnum(Name = "Wedding_CarCutScene", Value = 7)] + Wedding_CarCutScene, + [ProtoEnum(Name = "Wedding_Start", Value = 8)] + Wedding_Start + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperType.cs.meta new file mode 100644 index 00000000..f1974e9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4380b896bd1c314fb9ed63c748fa1c2 +timeCreated: 1611404500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorArg.cs new file mode 100644 index 00000000..7132cba3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorArg.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingInviteOperatorArg")] + [Serializable] + public class WeddingInviteOperatorArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeddingInviteOperType type + { + get + { + return this._type ?? WeddingInviteOperType.Wedding_Invite; + } + set + { + this._type = new WeddingInviteOperType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeddingInviteOperType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "weddingid", DataFormat = DataFormat.TwosComplement)] + public ulong weddingid + { + get + { + return this._weddingid ?? 0UL; + } + set + { + this._weddingid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weddingidSpecified + { + get + { + return this._weddingid != null; + } + set + { + bool flag = value == (this._weddingid == null); + if (flag) + { + this._weddingid = (value ? new ulong?(this.weddingid) : null); + } + } + } + + private WeddingInviteOperType? _type; + + private ulong? _roleid; + + private ulong? _weddingid; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeweddingid() + { + return this.weddingidSpecified; + } + + private void Resetweddingid() + { + this.weddingidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorArg.cs.meta new file mode 100644 index 00000000..d275990b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 815572c080f69cb4e9e51f5f7ecb9f04 +timeCreated: 1611404036 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorRes.cs new file mode 100644 index 00000000..35ece579 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingInviteOperatorRes")] + [Serializable] + public class WeddingInviteOperatorRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorRes.cs.meta new file mode 100644 index 00000000..f99637cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingInviteOperatorRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22efa2ad14334cb41a651ed212b083b5 +timeCreated: 1611403425 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs new file mode 100644 index 00000000..430eb7f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs @@ -0,0 +1,34 @@ +using System; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingLoadInfoNtf")] + [Serializable] + public class WeddingLoadInfoNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "info", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WeddingBrief info + { + get + { + return this._info; + } + set + { + this._info = value; + } + } + + private WeddingBrief _info = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs.meta new file mode 100644 index 00000000..d39c5682 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingLoadInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa10da7f9c5f6a042a38a4a2c600bf4f +timeCreated: 1611404902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperType.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperType.cs new file mode 100644 index 00000000..cad526f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperType.cs @@ -0,0 +1,34 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingOperType")] + public enum WeddingOperType + { + [ProtoEnum(Name = "WeddingOper_Flower", Value = 1)] + WeddingOper_Flower = 1, + [ProtoEnum(Name = "WeddingOper_Fireworks", Value = 2)] + WeddingOper_Fireworks, + [ProtoEnum(Name = "WeddingOper_ApplyVows", Value = 3)] + WeddingOper_ApplyVows, + [ProtoEnum(Name = "WeddingOper_AgreeVows", Value = 4)] + WeddingOper_AgreeVows, + [ProtoEnum(Name = "WeddingOper_DisAgreeVows", Value = 5)] + WeddingOper_DisAgreeVows, + [ProtoEnum(Name = "WeddingOper_VowsPrepare", Value = 6)] + WeddingOper_VowsPrepare, + [ProtoEnum(Name = "WeddingOper_VowsStart", Value = 7)] + WeddingOper_VowsStart, + [ProtoEnum(Name = "WeddingOper_FlowerRewardOverMax", Value = 8)] + WeddingOper_FlowerRewardOverMax, + [ProtoEnum(Name = "WeddingOper_FireworksRewardOverMax", Value = 9)] + WeddingOper_FireworksRewardOverMax, + [ProtoEnum(Name = "WeddingOper_CandyRewardOverMax", Value = 10)] + WeddingOper_CandyRewardOverMax, + [ProtoEnum(Name = "WeddingOper_Candy", Value = 11)] + WeddingOper_Candy, + [ProtoEnum(Name = "WeddingOper_RoleNum", Value = 12)] + WeddingOper_RoleNum + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperType.cs.meta new file mode 100644 index 00000000..4793dd81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ba28d24fe2fc3342ae5e7fbb3aae1bd +timeCreated: 1611403892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorArg.cs new file mode 100644 index 00000000..158fe090 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingOperatorArg")] + [Serializable] + public class WeddingOperatorArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeddingOperType type + { + get + { + return this._type ?? WeddingOperType.WeddingOper_Flower; + } + set + { + this._type = new WeddingOperType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeddingOperType?(this.type) : null); + } + } + } + + private WeddingOperType? _type; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorArg.cs.meta new file mode 100644 index 00000000..9f1adceb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b90adeffd73b974696cb6070151ee24 +timeCreated: 1611403892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorRes.cs new file mode 100644 index 00000000..38d64c1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingOperatorRes")] + [Serializable] + public class WeddingOperatorRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "result", DataFormat = DataFormat.TwosComplement)] + public ErrorCode result + { + get + { + return this._result ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._result = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool resultSpecified + { + get + { + return this._result != null; + } + set + { + bool flag = value == (this._result == null); + if (flag) + { + this._result = (value ? new ErrorCode?(this.result) : null); + } + } + } + + private ErrorCode? _result; + + private IExtension extensionObject; + + private bool ShouldSerializeresult() + { + return this.resultSpecified; + } + + private void Resetresult() + { + this.resultSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorRes.cs.meta new file mode 100644 index 00000000..f7fb12fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingOperatorRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80647d8df2182c742b930266787f31ab +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingRoleBrief.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingRoleBrief.cs new file mode 100644 index 00000000..d714a110 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingRoleBrief.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingRoleBrief")] + [Serializable] + public class WeddingRoleBrief : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "name", DataFormat = DataFormat.Default)] + public string name + { + get + { + return this._name ?? ""; + } + set + { + this._name = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nameSpecified + { + get + { + return this._name != null; + } + set + { + bool flag = value == (this._name == null); + if (flag) + { + this._name = (value ? this.name : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "level", DataFormat = DataFormat.TwosComplement)] + public uint level + { + get + { + return this._level ?? 0u; + } + set + { + this._level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool levelSpecified + { + get + { + return this._level != null; + } + set + { + bool flag = value == (this._level == null); + if (flag) + { + this._level = (value ? new uint?(this.level) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ppt", DataFormat = DataFormat.TwosComplement)] + public uint ppt + { + get + { + return this._ppt ?? 0u; + } + set + { + this._ppt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool pptSpecified + { + get + { + return this._ppt != null; + } + set + { + bool flag = value == (this._ppt == null); + if (flag) + { + this._ppt = (value ? new uint?(this.ppt) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "guildname", DataFormat = DataFormat.Default)] + public string guildname + { + get + { + return this._guildname ?? ""; + } + set + { + this._guildname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool guildnameSpecified + { + get + { + return this._guildname != null; + } + set + { + bool flag = value == (this._guildname == null); + if (flag) + { + this._guildname = (value ? this.guildname : null); + } + } + } + + private ulong? _roleid; + + private string _name; + + private uint? _profession; + + private uint? _level; + + private uint? _ppt; + + private string _guildname; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializename() + { + return this.nameSpecified; + } + + private void Resetname() + { + this.nameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializelevel() + { + return this.levelSpecified; + } + + private void Resetlevel() + { + this.levelSpecified = false; + } + + private bool ShouldSerializeppt() + { + return this.pptSpecified; + } + + private void Resetppt() + { + this.pptSpecified = false; + } + + private bool ShouldSerializeguildname() + { + return this.guildnameSpecified; + } + + private void Resetguildname() + { + this.guildnameSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingRoleBrief.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingRoleBrief.cs.meta new file mode 100644 index 00000000..4d1bbde0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingRoleBrief.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a13b7a48718316d46bf54e1cc0b9d8cc +timeCreated: 1611404253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingState.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingState.cs new file mode 100644 index 00000000..5745eb2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingState.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingState")] + public enum WeddingState + { + [ProtoEnum(Name = "WeddingState_Prepare", Value = 1)] + WeddingState_Prepare = 1, + [ProtoEnum(Name = "WeddingState_Running", Value = 2)] + WeddingState_Running + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingState.cs.meta new file mode 100644 index 00000000..09aecfcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0b4a86b1ffc2de4490d856b6df8daa7 +timeCreated: 1611404699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingStateNtf.cs new file mode 100644 index 00000000..c08d9f6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingStateNtf.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingStateNtf")] + [Serializable] + public class WeddingStateNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public WeddingState state + { + get + { + return this._state ?? WeddingState.WeddingState_Prepare; + } + set + { + this._state = new WeddingState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new WeddingState?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "lefttime", DataFormat = DataFormat.TwosComplement)] + public uint lefttime + { + get + { + return this._lefttime ?? 0u; + } + set + { + this._lefttime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lefttimeSpecified + { + get + { + return this._lefttime != null; + } + set + { + bool flag = value == (this._lefttime == null); + if (flag) + { + this._lefttime = (value ? new uint?(this.lefttime) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "happyness", DataFormat = DataFormat.TwosComplement)] + public uint happyness + { + get + { + return this._happyness ?? 0u; + } + set + { + this._happyness = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool happynessSpecified + { + get + { + return this._happyness != null; + } + set + { + bool flag = value == (this._happyness == null); + if (flag) + { + this._happyness = (value ? new uint?(this.happyness) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "vows", DataFormat = DataFormat.Default)] + public bool vows + { + get + { + return this._vows ?? false; + } + set + { + this._vows = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool vowsSpecified + { + get + { + return this._vows != null; + } + set + { + bool flag = value == (this._vows == null); + if (flag) + { + this._vows = (value ? new bool?(this.vows) : null); + } + } + } + + private WeddingState? _state; + + private uint? _lefttime; + + private uint? _happyness; + + private bool? _vows; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializelefttime() + { + return this.lefttimeSpecified; + } + + private void Resetlefttime() + { + this.lefttimeSpecified = false; + } + + private bool ShouldSerializehappyness() + { + return this.happynessSpecified; + } + + private void Resethappyness() + { + this.happynessSpecified = false; + } + + private bool ShouldSerializevows() + { + return this.vowsSpecified; + } + + private void Resetvows() + { + this.vowsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingStateNtf.cs.meta new file mode 100644 index 00000000..7055887b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be5cc07141793384d8be28f666d8fc7c +timeCreated: 1611404460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingType.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeddingType.cs new file mode 100644 index 00000000..3ce72a4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingType.cs @@ -0,0 +1,14 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeddingType")] + public enum WeddingType + { + [ProtoEnum(Name = "WeddingType_Normal", Value = 1)] + WeddingType_Normal = 1, + [ProtoEnum(Name = "WeddingType_Luxury", Value = 2)] + WeddingType_Luxury + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeddingType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeddingType.cs.meta new file mode 100644 index 00000000..294eb276 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeddingType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5312b18f95aec614dab7df528d0af875 +timeCreated: 1611403710 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleAllRoleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleAllRoleData.cs new file mode 100644 index 00000000..9635b5f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleAllRoleData.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeekEnd4v4BattleAllRoleData")] + [Serializable] + public class WeekEnd4v4BattleAllRoleData : IExtensible + { + [ProtoMember(1, Name = "roleData", DataFormat = DataFormat.Default)] + public List roleData + { + get + { + return this._roleData; + } + } + + private readonly List _roleData = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleAllRoleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleAllRoleData.cs.meta new file mode 100644 index 00000000..17947592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleAllRoleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a44db8f78f9fe74498e22a2f9737f54e +timeCreated: 1611404282 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs new file mode 100644 index 00000000..e1eadd1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs @@ -0,0 +1,492 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeekEnd4v4BattleRoleData")] + [Serializable] + public class WeekEnd4v4BattleRoleData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "redblue", DataFormat = DataFormat.TwosComplement)] + public uint redblue + { + get + { + return this._redblue ?? 0u; + } + set + { + this._redblue = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool redblueSpecified + { + get + { + return this._redblue != null; + } + set + { + bool flag = value == (this._redblue == null); + if (flag) + { + this._redblue = (value ? new uint?(this.redblue) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "killCount", DataFormat = DataFormat.TwosComplement)] + public uint killCount + { + get + { + return this._killCount ?? 0u; + } + set + { + this._killCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool killCountSpecified + { + get + { + return this._killCount != null; + } + set + { + bool flag = value == (this._killCount == null); + if (flag) + { + this._killCount = (value ? new uint?(this.killCount) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "bekilledCount", DataFormat = DataFormat.TwosComplement)] + public uint bekilledCount + { + get + { + return this._bekilledCount ?? 0u; + } + set + { + this._bekilledCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bekilledCountSpecified + { + get + { + return this._bekilledCount != null; + } + set + { + bool flag = value == (this._bekilledCount == null); + if (flag) + { + this._bekilledCount = (value ? new uint?(this.bekilledCount) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "timeSeconds", DataFormat = DataFormat.TwosComplement)] + public uint timeSeconds + { + get + { + return this._timeSeconds ?? 0u; + } + set + { + this._timeSeconds = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSecondsSpecified + { + get + { + return this._timeSeconds != null; + } + set + { + bool flag = value == (this._timeSeconds == null); + if (flag) + { + this._timeSeconds = (value ? new uint?(this.timeSeconds) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "profession", DataFormat = DataFormat.TwosComplement)] + public uint profession + { + get + { + return this._profession ?? 0u; + } + set + { + this._profession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool professionSpecified + { + get + { + return this._profession != null; + } + set + { + bool flag = value == (this._profession == null); + if (flag) + { + this._profession = (value ? new uint?(this.profession) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "rolelevel", DataFormat = DataFormat.TwosComplement)] + public uint rolelevel + { + get + { + return this._rolelevel ?? 0u; + } + set + { + this._rolelevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolelevelSpecified + { + get + { + return this._rolelevel != null; + } + set + { + bool flag = value == (this._rolelevel == null); + if (flag) + { + this._rolelevel = (value ? new uint?(this.rolelevel) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "isline", DataFormat = DataFormat.Default)] + public bool isline + { + get + { + return this._isline ?? false; + } + set + { + this._isline = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool islineSpecified + { + get + { + return this._isline != null; + } + set + { + bool flag = value == (this._isline == null); + if (flag) + { + this._isline = (value ? new bool?(this.isline) : null); + } + } + } + + private ulong? _roleid; + + private uint? _redblue; + + private uint? _score; + + private uint? _killCount; + + private uint? _bekilledCount; + + private uint? _timeSeconds; + + private string _rolename; + + private uint? _profession; + + private uint? _rolelevel; + + private uint? _rank; + + private bool? _isline; + + private IExtension extensionObject; + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializeredblue() + { + return this.redblueSpecified; + } + + private void Resetredblue() + { + this.redblueSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializekillCount() + { + return this.killCountSpecified; + } + + private void ResetkillCount() + { + this.killCountSpecified = false; + } + + private bool ShouldSerializebekilledCount() + { + return this.bekilledCountSpecified; + } + + private void ResetbekilledCount() + { + this.bekilledCountSpecified = false; + } + + private bool ShouldSerializetimeSeconds() + { + return this.timeSecondsSpecified; + } + + private void ResettimeSeconds() + { + this.timeSecondsSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeprofession() + { + return this.professionSpecified; + } + + private void Resetprofession() + { + this.professionSpecified = false; + } + + private bool ShouldSerializerolelevel() + { + return this.rolelevelSpecified; + } + + private void Resetrolelevel() + { + this.rolelevelSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + private bool ShouldSerializeisline() + { + return this.islineSpecified; + } + + private void Resetisline() + { + this.islineSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs.meta new file mode 100644 index 00000000..1b6491c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4BattleRoleData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41e2e9022cf8f854b96e703077905bf8 +timeCreated: 1611403637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs new file mode 100644 index 00000000..04b1f2d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeekEnd4v4Data")] + [Serializable] + public class WeekEnd4v4Data : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "indexWeekEnd", DataFormat = DataFormat.TwosComplement)] + public uint indexWeekEnd + { + get + { + return this._indexWeekEnd ?? 0u; + } + set + { + this._indexWeekEnd = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexWeekEndSpecified + { + get + { + return this._indexWeekEnd != null; + } + set + { + bool flag = value == (this._indexWeekEnd == null); + if (flag) + { + this._indexWeekEnd = (value ? new uint?(this.indexWeekEnd) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "activityID", DataFormat = DataFormat.TwosComplement)] + public uint activityID + { + get + { + return this._activityID ?? 0u; + } + set + { + this._activityID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool activityIDSpecified + { + get + { + return this._activityID != null; + } + set + { + bool flag = value == (this._activityID == null); + if (flag) + { + this._activityID = (value ? new uint?(this.activityID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _indexWeekEnd; + + private uint? _activityID; + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializeindexWeekEnd() + { + return this.indexWeekEndSpecified; + } + + private void ResetindexWeekEnd() + { + this.indexWeekEndSpecified = false; + } + + private bool ShouldSerializeactivityID() + { + return this.activityIDSpecified; + } + + private void ResetactivityID() + { + this.activityIDSpecified = false; + } + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs.meta new file mode 100644 index 00000000..79cafbd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4Data.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 849790ce1162faa4e9f3aa4819ccfc84 +timeCreated: 1611404048 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs new file mode 100644 index 00000000..008c7dc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeekEnd4v4GetInfoArg")] + [Serializable] + public class WeekEnd4v4GetInfoArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs.meta new file mode 100644 index 00000000..10e2ba9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dab3f8fded26c0b4e97bce39eab7fd57 +timeCreated: 1611404648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs new file mode 100644 index 00000000..d82dbd9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs @@ -0,0 +1,191 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeekEnd4v4GetInfoRes")] + [Serializable] + public class WeekEnd4v4GetInfoRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "thisActivityID", DataFormat = DataFormat.TwosComplement)] + public uint thisActivityID + { + get + { + return this._thisActivityID ?? 0u; + } + set + { + this._thisActivityID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool thisActivityIDSpecified + { + get + { + return this._thisActivityID != null; + } + set + { + bool flag = value == (this._thisActivityID == null); + if (flag) + { + this._thisActivityID = (value ? new uint?(this.thisActivityID) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "nextActivityID", DataFormat = DataFormat.TwosComplement)] + public uint nextActivityID + { + get + { + return this._nextActivityID ?? 0u; + } + set + { + this._nextActivityID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nextActivityIDSpecified + { + get + { + return this._nextActivityID != null; + } + set + { + bool flag = value == (this._nextActivityID == null); + if (flag) + { + this._nextActivityID = (value ? new uint?(this.nextActivityID) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "joinCount", DataFormat = DataFormat.TwosComplement)] + public uint joinCount + { + get + { + return this._joinCount ?? 0u; + } + set + { + this._joinCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joinCountSpecified + { + get + { + return this._joinCount != null; + } + set + { + bool flag = value == (this._joinCount == null); + if (flag) + { + this._joinCount = (value ? new uint?(this.joinCount) : null); + } + } + } + + private ErrorCode? _errorcode; + + private uint? _thisActivityID; + + private uint? _nextActivityID; + + private uint? _joinCount; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + private bool ShouldSerializethisActivityID() + { + return this.thisActivityIDSpecified; + } + + private void ResetthisActivityID() + { + this.thisActivityIDSpecified = false; + } + + private bool ShouldSerializenextActivityID() + { + return this.nextActivityIDSpecified; + } + + private void ResetnextActivityID() + { + this.nextActivityIDSpecified = false; + } + + private bool ShouldSerializejoinCount() + { + return this.joinCountSpecified; + } + + private void ResetjoinCount() + { + this.joinCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs.meta new file mode 100644 index 00000000..12cf6a0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4GetInfoRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e99a07886de16484e870967e13ec2183 +timeCreated: 1611404757 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4TeamResult.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4TeamResult.cs new file mode 100644 index 00000000..e8f8b23d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4TeamResult.cs @@ -0,0 +1,160 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeekEnd4v4TeamResult")] + [Serializable] + public class WeekEnd4v4TeamResult : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "teamSeconds", DataFormat = DataFormat.TwosComplement)] + public uint teamSeconds + { + get + { + return this._teamSeconds ?? 0u; + } + set + { + this._teamSeconds = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teamSecondsSpecified + { + get + { + return this._teamSeconds != null; + } + set + { + bool flag = value == (this._teamSeconds == null); + if (flag) + { + this._teamSeconds = (value ? new uint?(this.teamSeconds) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "redTeamScore", DataFormat = DataFormat.TwosComplement)] + public uint redTeamScore + { + get + { + return this._redTeamScore ?? 0u; + } + set + { + this._redTeamScore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool redTeamScoreSpecified + { + get + { + return this._redTeamScore != null; + } + set + { + bool flag = value == (this._redTeamScore == null); + if (flag) + { + this._redTeamScore = (value ? new uint?(this.redTeamScore) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "blueTeamScore", DataFormat = DataFormat.TwosComplement)] + public uint blueTeamScore + { + get + { + return this._blueTeamScore ?? 0u; + } + set + { + this._blueTeamScore = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool blueTeamScoreSpecified + { + get + { + return this._blueTeamScore != null; + } + set + { + bool flag = value == (this._blueTeamScore == null); + if (flag) + { + this._blueTeamScore = (value ? new uint?(this.blueTeamScore) : null); + } + } + } + + [ProtoMember(4, Name = "hasRewardsID", DataFormat = DataFormat.TwosComplement)] + public List hasRewardsID + { + get + { + return this._hasRewardsID; + } + } + + private uint? _teamSeconds; + + private uint? _redTeamScore; + + private uint? _blueTeamScore; + + private readonly List _hasRewardsID = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializeteamSeconds() + { + return this.teamSecondsSpecified; + } + + private void ResetteamSeconds() + { + this.teamSecondsSpecified = false; + } + + private bool ShouldSerializeredTeamScore() + { + return this.redTeamScoreSpecified; + } + + private void ResetredTeamScore() + { + this.redTeamScoreSpecified = false; + } + + private bool ShouldSerializeblueTeamScore() + { + return this.blueTeamScoreSpecified; + } + + private void ResetblueTeamScore() + { + this.blueTeamScoreSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4TeamResult.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4TeamResult.cs.meta new file mode 100644 index 00000000..7b78042b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekEnd4v4TeamResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4038d39bb5384e44910a0f1404b1026 +timeCreated: 1611404391 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekReportData.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeekReportData.cs new file mode 100644 index 00000000..c10b76ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekReportData.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeekReportData")] + [Serializable] + public class WeekReportData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public WeekReportDataType type + { + get + { + return this._type ?? WeekReportDataType.WeekReportData_GuildSign; + } + set + { + this._type = new WeekReportDataType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new WeekReportDataType?(this.type) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "joincount", DataFormat = DataFormat.TwosComplement)] + public int joincount + { + get + { + return this._joincount ?? 0; + } + set + { + this._joincount = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool joincountSpecified + { + get + { + return this._joincount != null; + } + set + { + bool flag = value == (this._joincount == null); + if (flag) + { + this._joincount = (value ? new int?(this.joincount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "lastjointime", DataFormat = DataFormat.TwosComplement)] + public uint lastjointime + { + get + { + return this._lastjointime ?? 0u; + } + set + { + this._lastjointime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool lastjointimeSpecified + { + get + { + return this._lastjointime != null; + } + set + { + bool flag = value == (this._lastjointime == null); + if (flag) + { + this._lastjointime = (value ? new uint?(this.lastjointime) : null); + } + } + } + + private WeekReportDataType? _type; + + private int? _joincount; + + private uint? _lastjointime; + + private IExtension extensionObject; + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializejoincount() + { + return this.joincountSpecified; + } + + private void Resetjoincount() + { + this.joincountSpecified = false; + } + + private bool ShouldSerializelastjointime() + { + return this.lastjointimeSpecified; + } + + private void Resetlastjointime() + { + this.lastjointimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekReportData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeekReportData.cs.meta new file mode 100644 index 00000000..ad910c3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekReportData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89d216eea7d1528489bb1972b617a133 +timeCreated: 1611404089 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekReportDataType.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeekReportDataType.cs new file mode 100644 index 00000000..c9ab966a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekReportDataType.cs @@ -0,0 +1,22 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeekReportDataType")] + public enum WeekReportDataType + { + [ProtoEnum(Name = "WeekReportData_GuildSign", Value = 1)] + WeekReportData_GuildSign = 1, + [ProtoEnum(Name = "WeekReportData_WorldBoss", Value = 2)] + WeekReportData_WorldBoss, + [ProtoEnum(Name = "WeekReportData_GuildRisk", Value = 3)] + WeekReportData_GuildRisk, + [ProtoEnum(Name = "WeekReportData_GuildArena", Value = 4)] + WeekReportData_GuildArena, + [ProtoEnum(Name = "WeekReportData_GuildBoss", Value = 5)] + WeekReportData_GuildBoss, + [ProtoEnum(Name = "WeekReportData_GuildTerryitory", Value = 6)] + WeekReportData_GuildTerryitory + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeekReportDataType.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeekReportDataType.cs.meta new file mode 100644 index 00000000..bb1d0109 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeekReportDataType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0054e44b575c88e47853b61d2e7556c6 +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskData.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskData.cs new file mode 100644 index 00000000..a6b6ea38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskData.cs @@ -0,0 +1,354 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeeklyTaskData")] + [Serializable] + public class WeeklyTaskData : IExtensible + { + [ProtoMember(1, Name = "tasks", DataFormat = DataFormat.Default)] + public List tasks + { + get + { + return this._tasks; + } + } + + [ProtoMember(2, IsRequired = false, Name = "accept_level", DataFormat = DataFormat.TwosComplement)] + public uint accept_level + { + get + { + return this._accept_level ?? 0u; + } + set + { + this._accept_level = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accept_levelSpecified + { + get + { + return this._accept_level != null; + } + set + { + bool flag = value == (this._accept_level == null); + if (flag) + { + this._accept_level = (value ? new uint?(this.accept_level) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rewarded", DataFormat = DataFormat.Default)] + public bool rewarded + { + get + { + return this._rewarded ?? false; + } + set + { + this._rewarded = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rewardedSpecified + { + get + { + return this._rewarded != null; + } + set + { + bool flag = value == (this._rewarded == null); + if (flag) + { + this._rewarded = (value ? new bool?(this.rewarded) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "askhelp_num", DataFormat = DataFormat.TwosComplement)] + public uint askhelp_num + { + get + { + return this._askhelp_num ?? 0u; + } + set + { + this._askhelp_num = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool askhelp_numSpecified + { + get + { + return this._askhelp_num != null; + } + set + { + bool flag = value == (this._askhelp_num == null); + if (flag) + { + this._askhelp_num = (value ? new uint?(this.askhelp_num) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "accept", DataFormat = DataFormat.Default)] + public bool accept + { + get + { + return this._accept ?? false; + } + set + { + this._accept = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool acceptSpecified + { + get + { + return this._accept != null; + } + set + { + bool flag = value == (this._accept == null); + if (flag) + { + this._accept = (value ? new bool?(this.accept) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "accept_count", DataFormat = DataFormat.TwosComplement)] + public uint accept_count + { + get + { + return this._accept_count ?? 0u; + } + set + { + this._accept_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool accept_countSpecified + { + get + { + return this._accept_count != null; + } + set + { + bool flag = value == (this._accept_count == null); + if (flag) + { + this._accept_count = (value ? new uint?(this.accept_count) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "score", DataFormat = DataFormat.TwosComplement)] + public uint score + { + get + { + return this._score ?? 0u; + } + set + { + this._score = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool scoreSpecified + { + get + { + return this._score != null; + } + set + { + bool flag = value == (this._score == null); + if (flag) + { + this._score = (value ? new uint?(this.score) : null); + } + } + } + + [ProtoMember(8, Name = "rewarded_box", DataFormat = DataFormat.TwosComplement)] + public List rewarded_box + { + get + { + return this._rewarded_box; + } + } + + [ProtoMember(9, Name = "helpinfo", DataFormat = DataFormat.Default)] + public List helpinfo + { + get + { + return this._helpinfo; + } + } + + [ProtoMember(10, IsRequired = false, Name = "free_refresh_count", DataFormat = DataFormat.TwosComplement)] + public uint free_refresh_count + { + get + { + return this._free_refresh_count ?? 0u; + } + set + { + this._free_refresh_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool free_refresh_countSpecified + { + get + { + return this._free_refresh_count != null; + } + set + { + bool flag = value == (this._free_refresh_count == null); + if (flag) + { + this._free_refresh_count = (value ? new uint?(this.free_refresh_count) : null); + } + } + } + + private readonly List _tasks = new List(); + + private uint? _accept_level; + + private bool? _rewarded; + + private uint? _askhelp_num; + + private bool? _accept; + + private uint? _accept_count; + + private uint? _score; + + private readonly List _rewarded_box = new List(); + + private readonly List _helpinfo = new List(); + + private uint? _free_refresh_count; + + private IExtension extensionObject; + + private bool ShouldSerializeaccept_level() + { + return this.accept_levelSpecified; + } + + private void Resetaccept_level() + { + this.accept_levelSpecified = false; + } + + private bool ShouldSerializerewarded() + { + return this.rewardedSpecified; + } + + private void Resetrewarded() + { + this.rewardedSpecified = false; + } + + private bool ShouldSerializeaskhelp_num() + { + return this.askhelp_numSpecified; + } + + private void Resetaskhelp_num() + { + this.askhelp_numSpecified = false; + } + + private bool ShouldSerializeaccept() + { + return this.acceptSpecified; + } + + private void Resetaccept() + { + this.acceptSpecified = false; + } + + private bool ShouldSerializeaccept_count() + { + return this.accept_countSpecified; + } + + private void Resetaccept_count() + { + this.accept_countSpecified = false; + } + + private bool ShouldSerializescore() + { + return this.scoreSpecified; + } + + private void Resetscore() + { + this.scoreSpecified = false; + } + + private bool ShouldSerializefree_refresh_count() + { + return this.free_refresh_countSpecified; + } + + private void Resetfree_refresh_count() + { + this.free_refresh_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskData.cs.meta new file mode 100644 index 00000000..33192016 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d7b1bf0c69064a41b441649eddecf38 +timeCreated: 1611403806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs new file mode 100644 index 00000000..01bfb399 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs @@ -0,0 +1,277 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WeeklyTaskInfo")] + [Serializable] + public class WeeklyTaskInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)] + public uint index + { + get + { + return this._index ?? 0u; + } + set + { + this._index = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool indexSpecified + { + get + { + return this._index != null; + } + set + { + bool flag = value == (this._index == null); + if (flag) + { + this._index = (value ? new uint?(this.index) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "id", DataFormat = DataFormat.TwosComplement)] + public uint id + { + get + { + return this._id ?? 0u; + } + set + { + this._id = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool idSpecified + { + get + { + return this._id != null; + } + set + { + bool flag = value == (this._id == null); + if (flag) + { + this._id = (value ? new uint?(this.id) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "step", DataFormat = DataFormat.TwosComplement)] + public uint step + { + get + { + return this._step ?? 0u; + } + set + { + this._step = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stepSpecified + { + get + { + return this._step != null; + } + set + { + bool flag = value == (this._step == null); + if (flag) + { + this._step = (value ? new uint?(this.step) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "is_rewarded", DataFormat = DataFormat.Default)] + public bool is_rewarded + { + get + { + return this._is_rewarded ?? false; + } + set + { + this._is_rewarded = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool is_rewardedSpecified + { + get + { + return this._is_rewarded != null; + } + set + { + bool flag = value == (this._is_rewarded == null); + if (flag) + { + this._is_rewarded = (value ? new bool?(this.is_rewarded) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "ask_help", DataFormat = DataFormat.Default)] + public bool ask_help + { + get + { + return this._ask_help ?? false; + } + set + { + this._ask_help = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool ask_helpSpecified + { + get + { + return this._ask_help != null; + } + set + { + bool flag = value == (this._ask_help == null); + if (flag) + { + this._ask_help = (value ? new bool?(this.ask_help) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "refresh_count", DataFormat = DataFormat.TwosComplement)] + public uint refresh_count + { + get + { + return this._refresh_count ?? 0u; + } + set + { + this._refresh_count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool refresh_countSpecified + { + get + { + return this._refresh_count != null; + } + set + { + bool flag = value == (this._refresh_count == null); + if (flag) + { + this._refresh_count = (value ? new uint?(this.refresh_count) : null); + } + } + } + + private uint? _index; + + private uint? _id; + + private uint? _step; + + private bool? _is_rewarded; + + private bool? _ask_help; + + private uint? _refresh_count; + + private IExtension extensionObject; + + private bool ShouldSerializeindex() + { + return this.indexSpecified; + } + + private void Resetindex() + { + this.indexSpecified = false; + } + + private bool ShouldSerializeid() + { + return this.idSpecified; + } + + private void Resetid() + { + this.idSpecified = false; + } + + private bool ShouldSerializestep() + { + return this.stepSpecified; + } + + private void Resetstep() + { + this.stepSpecified = false; + } + + private bool ShouldSerializeis_rewarded() + { + return this.is_rewardedSpecified; + } + + private void Resetis_rewarded() + { + this.is_rewardedSpecified = false; + } + + private bool ShouldSerializeask_help() + { + return this.ask_helpSpecified; + } + + private void Resetask_help() + { + this.ask_helpSpecified = false; + } + + private bool ShouldSerializerefresh_count() + { + return this.refresh_countSpecified; + } + + private void Resetrefresh_count() + { + this.refresh_countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs.meta new file mode 100644 index 00000000..68239c1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WeeklyTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39a970d0ed951ee4ebdc23610679ed8e +timeCreated: 1611403593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WordNotify.cs b/Client/Assets/Scripts/XMainClient/KKSG/WordNotify.cs new file mode 100644 index 00000000..5b342d2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WordNotify.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WordNotify")] + [Serializable] + public class WordNotify : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "hint", DataFormat = DataFormat.Default)] + public string hint + { + get + { + return this._hint ?? ""; + } + set + { + this._hint = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hintSpecified + { + get + { + return this._hint != null; + } + set + { + bool flag = value == (this._hint == null); + if (flag) + { + this._hint = (value ? this.hint : null); + } + } + } + + private string _hint; + + private IExtension extensionObject; + + private bool ShouldSerializehint() + { + return this.hintSpecified; + } + + private void Resethint() + { + this.hintSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WordNotify.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WordNotify.cs.meta new file mode 100644 index 00000000..f761a592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WordNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d49280d35e8bf434a844837cf9978618 +timeCreated: 1611404603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs new file mode 100644 index 00000000..629add26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossAttrNtf")] + [Serializable] + public class WorldBossAttrNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs.meta new file mode 100644 index 00000000..7731ca33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossAttrNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aaae1128ef6623447b71362854e1f5c5 +timeCreated: 1611404304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossDamageInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossDamageInfo.cs new file mode 100644 index 00000000..4025d0ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossDamageInfo.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossDamageInfo")] + [Serializable] + public class WorldBossDamageInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "damage", DataFormat = DataFormat.FixedSize)] + public float damage + { + get + { + return this._damage ?? 0f; + } + set + { + this._damage = new float?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool damageSpecified + { + get + { + return this._damage != null; + } + set + { + bool flag = value == (this._damage == null); + if (flag) + { + this._damage = (value ? new float?(this.damage) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "rank", DataFormat = DataFormat.TwosComplement)] + public uint rank + { + get + { + return this._rank ?? 0u; + } + set + { + this._rank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rankSpecified + { + get + { + return this._rank != null; + } + set + { + bool flag = value == (this._rank == null); + if (flag) + { + this._rank = (value ? new uint?(this.rank) : null); + } + } + } + + private string _rolename; + + private float? _damage; + + private uint? _rank; + + private IExtension extensionObject; + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializedamage() + { + return this.damageSpecified; + } + + private void Resetdamage() + { + this.damageSpecified = false; + } + + private bool ShouldSerializerank() + { + return this.rankSpecified; + } + + private void Resetrank() + { + this.rankSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossDamageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossDamageInfo.cs.meta new file mode 100644 index 00000000..9d8c3509 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossDamageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8e93d572f80c3e4dbe23b592e2d96ef +timeCreated: 1611404407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndArg.cs new file mode 100644 index 00000000..dfc94321 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossEndArg")] + [Serializable] + public class WorldBossEndArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndArg.cs.meta new file mode 100644 index 00000000..ac1ee44f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 82eab80e6b7d8584ab01ed3eaffd9940 +timeCreated: 1611404042 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndRes.cs new file mode 100644 index 00000000..68650373 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndRes.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossEndRes")] + [Serializable] + public class WorldBossEndRes : IExtensible + { + [ProtoMember(1, Name = "damages", DataFormat = DataFormat.Default)] + public List damages + { + get + { + return this._damages; + } + } + + [ProtoMember(2, IsRequired = false, Name = "selfdamage", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public WorldBossDamageInfo selfdamage + { + get + { + return this._selfdamage; + } + set + { + this._selfdamage = value; + } + } + + private readonly List _damages = new List(); + + private WorldBossDamageInfo _selfdamage = null; + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndRes.cs.meta new file mode 100644 index 00000000..1d6c9656 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossEndRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5eb9627157465147b0d1d34b548ea86 +timeCreated: 1611404629 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrArg.cs new file mode 100644 index 00000000..6f31c011 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossGuildAddAttrArg")] + [Serializable] + public class WorldBossGuildAddAttrArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrArg.cs.meta new file mode 100644 index 00000000..24a7187f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c94d559cd312e2459899acbd1ba57d7 +timeCreated: 1611403346 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrRes.cs new file mode 100644 index 00000000..395cf562 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossGuildAddAttrRes")] + [Serializable] + public class WorldBossGuildAddAttrRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrRes.cs.meta new file mode 100644 index 00000000..94484f55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b2ec992997598f428cbf62abf1aee46 +timeCreated: 1611403992 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrSyncClient.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrSyncClient.cs new file mode 100644 index 00000000..a2bb667f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrSyncClient.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossGuildAddAttrSyncClient")] + [Serializable] + public class WorldBossGuildAddAttrSyncClient : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "count", DataFormat = DataFormat.TwosComplement)] + public uint count + { + get + { + return this._count ?? 0u; + } + set + { + this._count = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool countSpecified + { + get + { + return this._count != null; + } + set + { + bool flag = value == (this._count == null); + if (flag) + { + this._count = (value ? new uint?(this.count) : null); + } + } + } + + private uint? _count; + + private IExtension extensionObject; + + private bool ShouldSerializecount() + { + return this.countSpecified; + } + + private void Resetcount() + { + this.countSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrSyncClient.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrSyncClient.cs.meta new file mode 100644 index 00000000..9081aab7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossGuildAddAttrSyncClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fdfe9f9b905bd354ba9a14f177a7afab +timeCreated: 1611404939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossState.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossState.cs new file mode 100644 index 00000000..28ba27cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossState.cs @@ -0,0 +1,20 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossState")] + public enum WorldBossState + { + [ProtoEnum(Name = "WorldBoss_BeginPre", Value = 0)] + WorldBoss_BeginPre, + [ProtoEnum(Name = "WorldBoss_Begin", Value = 1)] + WorldBoss_Begin, + [ProtoEnum(Name = "WorldBoss_Going", Value = 2)] + WorldBoss_Going, + [ProtoEnum(Name = "WorldBoss_WaitEnd", Value = 3)] + WorldBoss_WaitEnd, + [ProtoEnum(Name = "WorldBoss_End", Value = 4)] + WorldBoss_End + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossState.cs.meta new file mode 100644 index 00000000..f9425d77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0f1e49e69f114d46ad58b78fdae7df0 +timeCreated: 1611404589 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossStateNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossStateNtf.cs new file mode 100644 index 00000000..b4c472eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossStateNtf.cs @@ -0,0 +1,148 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldBossStateNtf")] + [Serializable] + public class WorldBossStateNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public WorldBossState state + { + get + { + return this._state ?? WorldBossState.WorldBoss_BeginPre; + } + set + { + this._state = new WorldBossState?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new WorldBossState?(this.state) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)] + public uint time + { + get + { + return this._time ?? 0u; + } + set + { + this._time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeSpecified + { + get + { + return this._time != null; + } + set + { + bool flag = value == (this._time == null); + if (flag) + { + this._time = (value ? new uint?(this.time) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "iswin", DataFormat = DataFormat.Default)] + public bool iswin + { + get + { + return this._iswin ?? false; + } + set + { + this._iswin = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool iswinSpecified + { + get + { + return this._iswin != null; + } + set + { + bool flag = value == (this._iswin == null); + if (flag) + { + this._iswin = (value ? new bool?(this.iswin) : null); + } + } + } + + private WorldBossState? _state; + + private uint? _time; + + private bool? _iswin; + + private IExtension extensionObject; + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializetime() + { + return this.timeSpecified; + } + + private void Resettime() + { + this.timeSpecified = false; + } + + private bool ShouldSerializeiswin() + { + return this.iswinSpecified; + } + + private void Resetiswin() + { + this.iswinSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldBossStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossStateNtf.cs.meta new file mode 100644 index 00000000..99e073fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldBossStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 10c0b21c1edbc6e4e8ad34ba5c523496 +timeCreated: 1611403219 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldChannelLeftTimesNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldChannelLeftTimesNtf.cs new file mode 100644 index 00000000..f4f4790a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldChannelLeftTimesNtf.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldChannelLeftTimesNtf")] + [Serializable] + public class WorldChannelLeftTimesNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "leftTimes", DataFormat = DataFormat.TwosComplement)] + public uint leftTimes + { + get + { + return this._leftTimes ?? 0u; + } + set + { + this._leftTimes = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool leftTimesSpecified + { + get + { + return this._leftTimes != null; + } + set + { + bool flag = value == (this._leftTimes == null); + if (flag) + { + this._leftTimes = (value ? new uint?(this.leftTimes) : null); + } + } + } + + private uint? _leftTimes; + + private IExtension extensionObject; + + private bool ShouldSerializeleftTimes() + { + return this.leftTimesSpecified; + } + + private void ResetleftTimes() + { + this.leftTimesSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldChannelLeftTimesNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldChannelLeftTimesNtf.cs.meta new file mode 100644 index 00000000..a66eb38c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldChannelLeftTimesNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbb8de8acd8b27f43bc04067f690d5f0 +timeCreated: 1611404443 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldLevel.cs b/Client/Assets/Scripts/XMainClient/KKSG/WorldLevel.cs new file mode 100644 index 00000000..ba4990c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldLevel.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "WorldLevel")] + [Serializable] + public class WorldLevel : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "worldLevel", DataFormat = DataFormat.TwosComplement)] + public uint worldLevel + { + get + { + return this._worldLevel ?? 0u; + } + set + { + this._worldLevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool worldLevelSpecified + { + get + { + return this._worldLevel != null; + } + set + { + bool flag = value == (this._worldLevel == null); + if (flag) + { + this._worldLevel = (value ? new uint?(this.worldLevel) : null); + } + } + } + + private uint? _worldLevel; + + private IExtension extensionObject; + + private bool ShouldSerializeworldLevel() + { + return this.worldLevelSpecified; + } + + private void ResetworldLevel() + { + this.worldLevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/WorldLevel.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/WorldLevel.cs.meta new file mode 100644 index 00000000..48978aca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/WorldLevel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4708eb9b581711642a3636015405bac9 +timeCreated: 1611403652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/XQTEState.cs b/Client/Assets/Scripts/XMainClient/KKSG/XQTEState.cs new file mode 100644 index 00000000..5ca90e5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/XQTEState.cs @@ -0,0 +1,36 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "XQTEState")] + public enum XQTEState + { + [ProtoEnum(Name = "QTE_None", Value = 0)] + QTE_None, + [ProtoEnum(Name = "QTE_HitBackPresent", Value = 1)] + QTE_HitBackPresent, + [ProtoEnum(Name = "QTE_HitBackStraight", Value = 2)] + QTE_HitBackStraight, + [ProtoEnum(Name = "QTE_HitBackGetUp", Value = 3)] + QTE_HitBackGetUp, + [ProtoEnum(Name = "QTE_HitFlyPresent", Value = 4)] + QTE_HitFlyPresent, + [ProtoEnum(Name = "QTE_HitFlyLand", Value = 5)] + QTE_HitFlyLand, + [ProtoEnum(Name = "QTE_HitFlyBounce", Value = 6)] + QTE_HitFlyBounce, + [ProtoEnum(Name = "QTE_HitFlyStraight", Value = 7)] + QTE_HitFlyStraight, + [ProtoEnum(Name = "QTE_HitFlyGetUp", Value = 8)] + QTE_HitFlyGetUp, + [ProtoEnum(Name = "QTE_HitRollPresent", Value = 9)] + QTE_HitRollPresent, + [ProtoEnum(Name = "QTE_HitRollStraight", Value = 10)] + QTE_HitRollStraight, + [ProtoEnum(Name = "QTE_HitRollGetUp", Value = 11)] + QTE_HitRollGetUp, + [ProtoEnum(Name = "QTE_HitFreeze", Value = 12)] + QTE_HitFreeze + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/XQTEState.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/XQTEState.cs.meta new file mode 100644 index 00000000..504f2622 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/XQTEState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 244060aacedff70499b5169667543b1e +timeCreated: 1611403460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs b/Client/Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs new file mode 100644 index 00000000..6e991fcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs @@ -0,0 +1,36 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "XSkillSlot")] + public enum XSkillSlot + { + [ProtoEnum(Name = "Normal_Attack", Value = 0)] + Normal_Attack, + [ProtoEnum(Name = "Dash_Attack", Value = 1)] + Dash_Attack, + [ProtoEnum(Name = "Skill_1_Attack", Value = 2)] + Skill_1_Attack, + [ProtoEnum(Name = "Skill_2_Attack", Value = 3)] + Skill_2_Attack, + [ProtoEnum(Name = "Skill_3_Attack", Value = 4)] + Skill_3_Attack, + [ProtoEnum(Name = "Skill_4_Attack", Value = 5)] + Skill_4_Attack, + [ProtoEnum(Name = "Skill_5_Attack", Value = 6)] + Skill_5_Attack, + [ProtoEnum(Name = "Skill_1_Buff", Value = 7)] + Skill_1_Buff, + [ProtoEnum(Name = "Skill_2_Buff", Value = 8)] + Skill_2_Buff, + [ProtoEnum(Name = "Ultra_Attack", Value = 9)] + Ultra_Attack, + [ProtoEnum(Name = "Awake_Attack", Value = 10)] + Awake_Attack, + [ProtoEnum(Name = "NULL_Key", Value = 11)] + NULL_Key, + [ProtoEnum(Name = "Attack_Max", Value = 12)] + Attack_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs.meta new file mode 100644 index 00000000..3914fb34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/XSkillSlot.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b8f65c3e0ace2741990ce3383c22d66 +timeCreated: 1611403994 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ZoneRoleInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/ZoneRoleInfo.cs new file mode 100644 index 00000000..bd6fe515 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ZoneRoleInfo.cs @@ -0,0 +1,363 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ZoneRoleInfo")] + [Serializable] + public class ZoneRoleInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "serverid", DataFormat = DataFormat.TwosComplement)] + public uint serverid + { + get + { + return this._serverid ?? 0u; + } + set + { + this._serverid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool serveridSpecified + { + get + { + return this._serverid != null; + } + set + { + bool flag = value == (this._serverid == null); + if (flag) + { + this._serverid = (value ? new uint?(this.serverid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "servername", DataFormat = DataFormat.Default)] + public string servername + { + get + { + return this._servername ?? ""; + } + set + { + this._servername = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool servernameSpecified + { + get + { + return this._servername != null; + } + set + { + bool flag = value == (this._servername == null); + if (flag) + { + this._servername = (value ? this.servername : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleid", DataFormat = DataFormat.TwosComplement)] + public ulong roleid + { + get + { + return this._roleid ?? 0UL; + } + set + { + this._roleid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleidSpecified + { + get + { + return this._roleid != null; + } + set + { + bool flag = value == (this._roleid == null); + if (flag) + { + this._roleid = (value ? new ulong?(this.roleid) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "roleprofession", DataFormat = DataFormat.TwosComplement)] + public RoleType roleprofession + { + get + { + return this._roleprofession ?? RoleType.Role_INVALID; + } + set + { + this._roleprofession = new RoleType?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleprofessionSpecified + { + get + { + return this._roleprofession != null; + } + set + { + bool flag = value == (this._roleprofession == null); + if (flag) + { + this._roleprofession = (value ? new RoleType?(this.roleprofession) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "rolelevel", DataFormat = DataFormat.TwosComplement)] + public uint rolelevel + { + get + { + return this._rolelevel ?? 0u; + } + set + { + this._rolelevel = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolelevelSpecified + { + get + { + return this._rolelevel != null; + } + set + { + bool flag = value == (this._rolelevel == null); + if (flag) + { + this._rolelevel = (value ? new uint?(this.rolelevel) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "paycnt", DataFormat = DataFormat.TwosComplement)] + public uint paycnt + { + get + { + return this._paycnt ?? 0u; + } + set + { + this._paycnt = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool paycntSpecified + { + get + { + return this._paycnt != null; + } + set + { + bool flag = value == (this._paycnt == null); + if (flag) + { + this._paycnt = (value ? new uint?(this.paycnt) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "opentime", DataFormat = DataFormat.TwosComplement)] + public uint opentime + { + get + { + return this._opentime ?? 0u; + } + set + { + this._opentime = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool opentimeSpecified + { + get + { + return this._opentime != null; + } + set + { + bool flag = value == (this._opentime == null); + if (flag) + { + this._opentime = (value ? new uint?(this.opentime) : null); + } + } + } + + private uint? _serverid; + + private string _servername; + + private ulong? _roleid; + + private string _rolename; + + private RoleType? _roleprofession; + + private uint? _rolelevel; + + private uint? _paycnt; + + private uint? _opentime; + + private IExtension extensionObject; + + private bool ShouldSerializeserverid() + { + return this.serveridSpecified; + } + + private void Resetserverid() + { + this.serveridSpecified = false; + } + + private bool ShouldSerializeservername() + { + return this.servernameSpecified; + } + + private void Resetservername() + { + this.servernameSpecified = false; + } + + private bool ShouldSerializeroleid() + { + return this.roleidSpecified; + } + + private void Resetroleid() + { + this.roleidSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeroleprofession() + { + return this.roleprofessionSpecified; + } + + private void Resetroleprofession() + { + this.roleprofessionSpecified = false; + } + + private bool ShouldSerializerolelevel() + { + return this.rolelevelSpecified; + } + + private void Resetrolelevel() + { + this.rolelevelSpecified = false; + } + + private bool ShouldSerializepaycnt() + { + return this.paycntSpecified; + } + + private void Resetpaycnt() + { + this.paycntSpecified = false; + } + + private bool ShouldSerializeopentime() + { + return this.opentimeSpecified; + } + + private void Resetopentime() + { + this.opentimeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ZoneRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/ZoneRoleInfo.cs.meta new file mode 100644 index 00000000..1a89591b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ZoneRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1bd61b45432e0f46828deb8ea783f16 +timeCreated: 1611404255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenaarg.cs b/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenaarg.cs new file mode 100644 index 00000000..a2186f9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenaarg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "applyguildarenaarg")] + [Serializable] + public class applyguildarenaarg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenaarg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenaarg.cs.meta new file mode 100644 index 00000000..c01518da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenaarg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a05594a395101a4aaec583172819832 +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenares.cs b/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenares.cs new file mode 100644 index 00000000..a95d91de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenares.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "applyguildarenares")] + [Serializable] + public class applyguildarenares : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenares.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenares.cs.meta new file mode 100644 index 00000000..0f782b97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/applyguildarenares.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2050cc00a6da1741bea59bef5d1dda7 +timeCreated: 1611404703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/atlasdata.cs b/Client/Assets/Scripts/XMainClient/KKSG/atlasdata.cs new file mode 100644 index 00000000..132c5c09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/atlasdata.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "atlasdata")] + [Serializable] + public class atlasdata : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "groupid", DataFormat = DataFormat.TwosComplement)] + public uint groupid + { + get + { + return this._groupid ?? 0u; + } + set + { + this._groupid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool groupidSpecified + { + get + { + return this._groupid != null; + } + set + { + bool flag = value == (this._groupid == null); + if (flag) + { + this._groupid = (value ? new uint?(this.groupid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "finishid", DataFormat = DataFormat.TwosComplement)] + public uint finishid + { + get + { + return this._finishid ?? 0u; + } + set + { + this._finishid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool finishidSpecified + { + get + { + return this._finishid != null; + } + set + { + bool flag = value == (this._finishid == null); + if (flag) + { + this._finishid = (value ? new uint?(this.finishid) : null); + } + } + } + + private uint? _groupid; + + private uint? _finishid; + + private IExtension extensionObject; + + private bool ShouldSerializegroupid() + { + return this.groupidSpecified; + } + + private void Resetgroupid() + { + this.groupidSpecified = false; + } + + private bool ShouldSerializefinishid() + { + return this.finishidSpecified; + } + + private void Resetfinishid() + { + this.finishidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/atlasdata.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/atlasdata.cs.meta new file mode 100644 index 00000000..6d3bd822 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/atlasdata.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a9e458e4f7c02d4dba8eec732ced905 +timeCreated: 1611404202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/breakAtlas.cs b/Client/Assets/Scripts/XMainClient/KKSG/breakAtlas.cs new file mode 100644 index 00000000..f7e97bbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/breakAtlas.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "breakAtlas")] + [Serializable] + public class breakAtlas : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "atlaId", DataFormat = DataFormat.TwosComplement)] + public uint atlaId + { + get + { + return this._atlaId ?? 0u; + } + set + { + this._atlaId = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool atlaIdSpecified + { + get + { + return this._atlaId != null; + } + set + { + bool flag = value == (this._atlaId == null); + if (flag) + { + this._atlaId = (value ? new uint?(this.atlaId) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "atlaNum", DataFormat = DataFormat.TwosComplement)] + public uint atlaNum + { + get + { + return this._atlaNum ?? 0u; + } + set + { + this._atlaNum = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool atlaNumSpecified + { + get + { + return this._atlaNum != null; + } + set + { + bool flag = value == (this._atlaNum == null); + if (flag) + { + this._atlaNum = (value ? new uint?(this.atlaNum) : null); + } + } + } + + private uint? _atlaId; + + private uint? _atlaNum; + + private IExtension extensionObject; + + private bool ShouldSerializeatlaId() + { + return this.atlaIdSpecified; + } + + private void ResetatlaId() + { + this.atlaIdSpecified = false; + } + + private bool ShouldSerializeatlaNum() + { + return this.atlaNumSpecified; + } + + private void ResetatlaNum() + { + this.atlaNumSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/breakAtlas.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/breakAtlas.cs.meta new file mode 100644 index 00000000..65a84ffd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/breakAtlas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16a2571c4e3d45d468f6f0e2a4cb112b +timeCreated: 1611403289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/breakAtlasRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/breakAtlasRes.cs new file mode 100644 index 00000000..00207f54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/breakAtlasRes.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "breakAtlasRes")] + [Serializable] + public class breakAtlasRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/breakAtlasRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/breakAtlasRes.cs.meta new file mode 100644 index 00000000..366057e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/breakAtlasRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b68f537f4e038904c9b0f88485d175aa +timeCreated: 1611404398 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs b/Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs new file mode 100644 index 00000000..536240e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs @@ -0,0 +1,126 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "buffInfo")] + [Serializable] + public class buffInfo : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "addbuff", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BuffInfo addbuff + { + get + { + return this._addbuff; + } + set + { + this._addbuff = value; + } + } + + [ProtoMember(3, IsRequired = false, Name = "removebuff", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BuffInfo removebuff + { + get + { + return this._removebuff; + } + set + { + this._removebuff = value; + } + } + + [ProtoMember(4, IsRequired = false, Name = "updatebuff", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public BuffInfo updatebuff + { + get + { + return this._updatebuff; + } + set + { + this._updatebuff = value; + } + } + + [ProtoMember(5, IsRequired = false, Name = "allbuffsinfo", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public AllBuffsInfo allbuffsinfo + { + get + { + return this._allbuffsinfo; + } + set + { + this._allbuffsinfo = value; + } + } + + private ulong? _uid; + + private BuffInfo _addbuff = null; + + private BuffInfo _removebuff = null; + + private BuffInfo _updatebuff = null; + + private AllBuffsInfo _allbuffsinfo = null; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs.meta new file mode 100644 index 00000000..facbe583 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/buffInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 959bc41414e4cec4f8f1419553b40c28 +timeCreated: 1611404182 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/buyextype.cs b/Client/Assets/Scripts/XMainClient/KKSG/buyextype.cs new file mode 100644 index 00000000..08badcc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/buyextype.cs @@ -0,0 +1,24 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "buyextype")] + public enum buyextype + { + [ProtoEnum(Name = "DIAMONE_BUY_DRAGONCOIN", Value = 1)] + DIAMONE_BUY_DRAGONCOIN = 1, + [ProtoEnum(Name = "DIAMONE_BUY_GOLD", Value = 2)] + DIAMONE_BUY_GOLD, + [ProtoEnum(Name = "DRAGONCOIN_BUY_GOLD", Value = 3)] + DRAGONCOIN_BUY_GOLD, + [ProtoEnum(Name = "DRAGON_BUY_FATIGUE", Value = 4)] + DRAGON_BUY_FATIGUE, + [ProtoEnum(Name = "DIAMOND_BUY_FATIGUE", Value = 5)] + DIAMOND_BUY_FATIGUE, + [ProtoEnum(Name = "DRAGONCOIN_BUY_BLUEBIRD", Value = 6)] + DRAGONCOIN_BUY_BLUEBIRD, + [ProtoEnum(Name = "DIAMOND_EXCHANGE_DRAGONCOIN", Value = 7)] + DIAMOND_EXCHANGE_DRAGONCOIN + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/buyextype.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/buyextype.cs.meta new file mode 100644 index 00000000..b35697be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/buyextype.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a021144362450341a77224752e60e00 +timeCreated: 1611403161 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistarg.cs b/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistarg.cs new file mode 100644 index 00000000..3aeebe23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistarg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "getapplyguildlistarg")] + [Serializable] + public class getapplyguildlistarg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistarg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistarg.cs.meta new file mode 100644 index 00000000..f088a585 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistarg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1dd329b2573ccfb43af72566032a458f +timeCreated: 1611403359 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistres.cs b/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistres.cs new file mode 100644 index 00000000..d45126d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistres.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "getapplyguildlistres")] + [Serializable] + public class getapplyguildlistres : IExtensible + { + [ProtoMember(1, Name = "guildlist", DataFormat = DataFormat.Default)] + public List guildlist + { + get + { + return this._guildlist; + } + } + + private readonly List _guildlist = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistres.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistres.cs.meta new file mode 100644 index 00000000..fbc39bc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getapplyguildlistres.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e63ff810b4c8d894f819be7862a9ae51 +timeCreated: 1611404745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftArg.cs new file mode 100644 index 00000000..1ff4f9fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftArg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "getguildbosstimeleftArg")] + [Serializable] + public class getguildbosstimeleftArg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftArg.cs.meta new file mode 100644 index 00000000..d793c551 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31569b0132c1b654d8a4ccf493540dd8 +timeCreated: 1611403543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftRes.cs new file mode 100644 index 00000000..b7ba0a76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftRes.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "getguildbosstimeleftRes")] + [Serializable] + public class getguildbosstimeleftRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public uint timeleft + { + get + { + return this._timeleft ?? 0u; + } + set + { + this._timeleft = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new uint?(this.timeleft) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "addAttrCount", DataFormat = DataFormat.TwosComplement)] + public uint addAttrCount + { + get + { + return this._addAttrCount ?? 0u; + } + set + { + this._addAttrCount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool addAttrCountSpecified + { + get + { + return this._addAttrCount != null; + } + set + { + bool flag = value == (this._addAttrCount == null); + if (flag) + { + this._addAttrCount = (value ? new uint?(this.addAttrCount) : null); + } + } + } + + private uint? _timeleft; + + private uint? _addAttrCount; + + private IExtension extensionObject; + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + private bool ShouldSerializeaddAttrCount() + { + return this.addAttrCountSpecified; + } + + private void ResetaddAttrCount() + { + this.addAttrCountSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftRes.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftRes.cs.meta new file mode 100644 index 00000000..dea67ada --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getguildbosstimeleftRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6d80e756178e0d40a1750424dd290d6 +timeCreated: 1611404884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfoarg.cs b/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfoarg.cs new file mode 100644 index 00000000..1003011d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfoarg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "getintegralbattleInfoarg")] + [Serializable] + public class getintegralbattleInfoarg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfoarg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfoarg.cs.meta new file mode 100644 index 00000000..a8a27fe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfoarg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d51fa2d2e26aa6e42b59fa0aeb370e3e +timeCreated: 1611404626 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfores.cs b/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfores.cs new file mode 100644 index 00000000..584fff6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfores.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "getintegralbattleInfores")] + [Serializable] + public class getintegralbattleInfores : IExtensible + { + [ProtoMember(1, Name = "battleinfo", DataFormat = DataFormat.Default)] + public List battleinfo + { + get + { + return this._battleinfo; + } + } + + [ProtoMember(2, Name = "battleTime", DataFormat = DataFormat.TwosComplement)] + public List battleTime + { + get + { + return this._battleTime; + } + } + + private readonly List _battleinfo = new List(); + + private readonly List _battleTime = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfores.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfores.cs.meta new file mode 100644 index 00000000..23687a05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/getintegralbattleInfores.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5789fa0afec0af647bf5ba957c3cdced +timeCreated: 1611403749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs b/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs new file mode 100644 index 00000000..99ceede6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs @@ -0,0 +1,17 @@ +using System; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "gmfjoinarg")] + [Serializable] + public class gmfjoinarg : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs.meta new file mode 100644 index 00000000..ddbb3a3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinarg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b64e5c0cd4cb22d4cbc37beaa93a8d22 +timeCreated: 1611404397 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs b/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs new file mode 100644 index 00000000..7d815e48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "gmfjoinres")] + [Serializable] + public class gmfjoinres : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)] + public ErrorCode errorcode + { + get + { + return this._errorcode ?? ErrorCode.ERR_SUCCESS; + } + set + { + this._errorcode = new ErrorCode?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool errorcodeSpecified + { + get + { + return this._errorcode != null; + } + set + { + bool flag = value == (this._errorcode == null); + if (flag) + { + this._errorcode = (value ? new ErrorCode?(this.errorcode) : null); + } + } + } + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs.meta new file mode 100644 index 00000000..52656c67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/gmfjoinres.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 118da54f3487f4a469daf3ffb1ca4ee7 +timeCreated: 1611403239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/guildArenaWarData.cs b/Client/Assets/Scripts/XMainClient/KKSG/guildArenaWarData.cs new file mode 100644 index 00000000..5bae50b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/guildArenaWarData.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "guildArenaWarData")] + [Serializable] + public class guildArenaWarData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "warType", DataFormat = DataFormat.TwosComplement)] + public uint warType + { + get + { + return this._warType ?? 0u; + } + set + { + this._warType = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool warTypeSpecified + { + get + { + return this._warType != null; + } + set + { + bool flag = value == (this._warType == null); + if (flag) + { + this._warType = (value ? new uint?(this.warType) : null); + } + } + } + + [ProtoMember(2, Name = "guildArenaGroupData", DataFormat = DataFormat.Default)] + public List guildArenaGroupData + { + get + { + return this._guildArenaGroupData; + } + } + + private uint? _warType; + + private readonly List _guildArenaGroupData = new List(); + + private IExtension extensionObject; + + private bool ShouldSerializewarType() + { + return this.warTypeSpecified; + } + + private void ResetwarType() + { + this.warTypeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/guildArenaWarData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/guildArenaWarData.cs.meta new file mode 100644 index 00000000..92adda2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/guildArenaWarData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2964685c123bbbd438aa9ac887470e4d +timeCreated: 1611403476 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/guildarenadisplace.cs b/Client/Assets/Scripts/XMainClient/KKSG/guildarenadisplace.cs new file mode 100644 index 00000000..12e299d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/guildarenadisplace.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "guildarenadisplace")] + [Serializable] + public class guildarenadisplace : IExtensible + { + [ProtoMember(1, Name = "units", DataFormat = DataFormat.Default)] + public List units + { + get + { + return this._units; + } + } + + private readonly List _units = new List(); + + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/guildarenadisplace.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/guildarenadisplace.cs.meta new file mode 100644 index 00000000..249d803f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/guildarenadisplace.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01bb2b58d9953c14ba56bed0e512e5e6 +timeCreated: 1611402954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/guildcamppartyNotifyNtf.cs b/Client/Assets/Scripts/XMainClient/KKSG/guildcamppartyNotifyNtf.cs new file mode 100644 index 00000000..c80444a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/guildcamppartyNotifyNtf.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "guildcamppartyNotifyNtf")] + [Serializable] + public class guildcamppartyNotifyNtf : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "notify_type", DataFormat = DataFormat.TwosComplement)] + public uint notify_type + { + get + { + return this._notify_type ?? 0u; + } + set + { + this._notify_type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool notify_typeSpecified + { + get + { + return this._notify_type != null; + } + set + { + bool flag = value == (this._notify_type == null); + if (flag) + { + this._notify_type = (value ? new uint?(this.notify_type) : null); + } + } + } + + [ProtoMember(2, Name = "sprite_list", DataFormat = DataFormat.Default)] + public List sprite_list + { + get + { + return this._sprite_list; + } + } + + [ProtoMember(3, Name = "lottery_list", DataFormat = DataFormat.TwosComplement)] + public List lottery_list + { + get + { + return this._lottery_list; + } + } + + [ProtoMember(4, IsRequired = false, Name = "left_time", DataFormat = DataFormat.TwosComplement)] + public uint left_time + { + get + { + return this._left_time ?? 0u; + } + set + { + this._left_time = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool left_timeSpecified + { + get + { + return this._left_time != null; + } + set + { + bool flag = value == (this._left_time == null); + if (flag) + { + this._left_time = (value ? new uint?(this.left_time) : null); + } + } + } + + private uint? _notify_type; + + private readonly List _sprite_list = new List(); + + private readonly List _lottery_list = new List(); + + private uint? _left_time; + + private IExtension extensionObject; + + private bool ShouldSerializenotify_type() + { + return this.notify_typeSpecified; + } + + private void Resetnotify_type() + { + this.notify_typeSpecified = false; + } + + private bool ShouldSerializeleft_time() + { + return this.left_timeSpecified; + } + + private void Resetleft_time() + { + this.left_timeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/guildcamppartyNotifyNtf.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/guildcamppartyNotifyNtf.cs.meta new file mode 100644 index 00000000..dc739fc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/guildcamppartyNotifyNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b76ed123e5157b41b83e6661a829f31 +timeCreated: 1611403993 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/petGetSkill.cs b/Client/Assets/Scripts/XMainClient/KKSG/petGetSkill.cs new file mode 100644 index 00000000..1dadef5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/petGetSkill.cs @@ -0,0 +1,105 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "petGetSkill")] + [Serializable] + public class petGetSkill : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "petLvl", DataFormat = DataFormat.TwosComplement)] + public uint petLvl + { + get + { + return this._petLvl ?? 0u; + } + set + { + this._petLvl = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool petLvlSpecified + { + get + { + return this._petLvl != null; + } + set + { + bool flag = value == (this._petLvl == null); + if (flag) + { + this._petLvl = (value ? new uint?(this.petLvl) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "skillid", DataFormat = DataFormat.TwosComplement)] + public uint skillid + { + get + { + return this._skillid ?? 0u; + } + set + { + this._skillid = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool skillidSpecified + { + get + { + return this._skillid != null; + } + set + { + bool flag = value == (this._skillid == null); + if (flag) + { + this._skillid = (value ? new uint?(this.skillid) : null); + } + } + } + + private uint? _petLvl; + + private uint? _skillid; + + private IExtension extensionObject; + + private bool ShouldSerializepetLvl() + { + return this.petLvlSpecified; + } + + private void ResetpetLvl() + { + this.petLvlSpecified = false; + } + + private bool ShouldSerializeskillid() + { + return this.skillidSpecified; + } + + private void Resetskillid() + { + this.skillidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/petGetSkill.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/petGetSkill.cs.meta new file mode 100644 index 00000000..3103a35a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/petGetSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bda48c72676f87d4981c179521b5a3c4 +timeCreated: 1611404456 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/randomtask.cs b/Client/Assets/Scripts/XMainClient/KKSG/randomtask.cs new file mode 100644 index 00000000..d3417078 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/randomtask.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "randomtask")] + [Serializable] + public class randomtask : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "taskid", DataFormat = DataFormat.TwosComplement)] + public int taskid + { + get + { + return this._taskid ?? 0; + } + set + { + this._taskid = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool taskidSpecified + { + get + { + return this._taskid != null; + } + set + { + bool flag = value == (this._taskid == null); + if (flag) + { + this._taskid = (value ? new int?(this.taskid) : null); + } + } + } + + private int? _taskid; + + private IExtension extensionObject; + + private bool ShouldSerializetaskid() + { + return this.taskidSpecified; + } + + private void Resettaskid() + { + this.taskidSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/randomtask.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/randomtask.cs.meta new file mode 100644 index 00000000..81e94182 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/randomtask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30848d5623d6c1549a1a5a8edabf38bf +timeCreated: 1611403522 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/roArg.cs b/Client/Assets/Scripts/XMainClient/KKSG/roArg.cs new file mode 100644 index 00000000..6ef3eacb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/roArg.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "roArg")] + [Serializable] + public class roArg : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "bNoShowLog", DataFormat = DataFormat.Default)] + public bool bNoShowLog + { + get + { + return this._bNoShowLog ?? false; + } + set + { + this._bNoShowLog = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bNoShowLogSpecified + { + get + { + return this._bNoShowLog != null; + } + set + { + bool flag = value == (this._bNoShowLog == null); + if (flag) + { + this._bNoShowLog = (value ? new bool?(this.bNoShowLog) : null); + } + } + } + + private bool? _bNoShowLog; + + private IExtension extensionObject; + + private bool ShouldSerializebNoShowLog() + { + return this.bNoShowLogSpecified; + } + + private void ResetbNoShowLog() + { + this.bNoShowLogSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/roArg.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/roArg.cs.meta new file mode 100644 index 00000000..81a96304 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/roArg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87c4fb9655981854f866f9afd35e12f2 +timeCreated: 1611404081 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/synGuildInheritExp.cs b/Client/Assets/Scripts/XMainClient/KKSG/synGuildInheritExp.cs new file mode 100644 index 00000000..03b19ccb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/synGuildInheritExp.cs @@ -0,0 +1,320 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "synGuildInheritExp")] + [Serializable] + public class synGuildInheritExp : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "roleOne", DataFormat = DataFormat.TwosComplement)] + public ulong roleOne + { + get + { + return this._roleOne ?? 0UL; + } + set + { + this._roleOne = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleOneSpecified + { + get + { + return this._roleOne != null; + } + set + { + bool flag = value == (this._roleOne == null); + if (flag) + { + this._roleOne = (value ? new ulong?(this.roleOne) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "expOne", DataFormat = DataFormat.TwosComplement)] + public uint expOne + { + get + { + return this._expOne ?? 0u; + } + set + { + this._expOne = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expOneSpecified + { + get + { + return this._expOne != null; + } + set + { + bool flag = value == (this._expOne == null); + if (flag) + { + this._expOne = (value ? new uint?(this.expOne) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "roleTwo", DataFormat = DataFormat.TwosComplement)] + public ulong roleTwo + { + get + { + return this._roleTwo ?? 0UL; + } + set + { + this._roleTwo = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleTwoSpecified + { + get + { + return this._roleTwo != null; + } + set + { + bool flag = value == (this._roleTwo == null); + if (flag) + { + this._roleTwo = (value ? new ulong?(this.roleTwo) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "expTwo", DataFormat = DataFormat.TwosComplement)] + public uint expTwo + { + get + { + return this._expTwo ?? 0u; + } + set + { + this._expTwo = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool expTwoSpecified + { + get + { + return this._expTwo != null; + } + set + { + bool flag = value == (this._expTwo == null); + if (flag) + { + this._expTwo = (value ? new uint?(this.expTwo) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "turn", DataFormat = DataFormat.TwosComplement)] + public uint turn + { + get + { + return this._turn ?? 0u; + } + set + { + this._turn = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool turnSpecified + { + get + { + return this._turn != null; + } + set + { + bool flag = value == (this._turn == null); + if (flag) + { + this._turn = (value ? new uint?(this.turn) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "islast", DataFormat = DataFormat.Default)] + public bool islast + { + get + { + return this._islast ?? false; + } + set + { + this._islast = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool islastSpecified + { + get + { + return this._islast != null; + } + set + { + bool flag = value == (this._islast == null); + if (flag) + { + this._islast = (value ? new bool?(this.islast) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "teacherId", DataFormat = DataFormat.TwosComplement)] + public ulong teacherId + { + get + { + return this._teacherId ?? 0UL; + } + set + { + this._teacherId = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool teacherIdSpecified + { + get + { + return this._teacherId != null; + } + set + { + bool flag = value == (this._teacherId == null); + if (flag) + { + this._teacherId = (value ? new ulong?(this.teacherId) : null); + } + } + } + + private ulong? _roleOne; + + private uint? _expOne; + + private ulong? _roleTwo; + + private uint? _expTwo; + + private uint? _turn; + + private bool? _islast; + + private ulong? _teacherId; + + private IExtension extensionObject; + + private bool ShouldSerializeroleOne() + { + return this.roleOneSpecified; + } + + private void ResetroleOne() + { + this.roleOneSpecified = false; + } + + private bool ShouldSerializeexpOne() + { + return this.expOneSpecified; + } + + private void ResetexpOne() + { + this.expOneSpecified = false; + } + + private bool ShouldSerializeroleTwo() + { + return this.roleTwoSpecified; + } + + private void ResetroleTwo() + { + this.roleTwoSpecified = false; + } + + private bool ShouldSerializeexpTwo() + { + return this.expTwoSpecified; + } + + private void ResetexpTwo() + { + this.expTwoSpecified = false; + } + + private bool ShouldSerializeturn() + { + return this.turnSpecified; + } + + private void Resetturn() + { + this.turnSpecified = false; + } + + private bool ShouldSerializeislast() + { + return this.islastSpecified; + } + + private void Resetislast() + { + this.islastSpecified = false; + } + + private bool ShouldSerializeteacherId() + { + return this.teacherIdSpecified; + } + + private void ResetteacherId() + { + this.teacherIdSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/synGuildInheritExp.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/synGuildInheritExp.cs.meta new file mode 100644 index 00000000..3f2ca74a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/synGuildInheritExp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 50a6a6f43bb22a54cb718ec8239b3126 +timeCreated: 1611403704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/KKSG/titleChangeData.cs b/Client/Assets/Scripts/XMainClient/KKSG/titleChangeData.cs new file mode 100644 index 00000000..a3a739dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/titleChangeData.cs @@ -0,0 +1,62 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "titleChangeData")] + [Serializable] + public class titleChangeData : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "titleID", DataFormat = DataFormat.TwosComplement)] + public uint titleID + { + get + { + return this._titleID ?? 0u; + } + set + { + this._titleID = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleIDSpecified + { + get + { + return this._titleID != null; + } + set + { + bool flag = value == (this._titleID == null); + if (flag) + { + this._titleID = (value ? new uint?(this.titleID) : null); + } + } + } + + private uint? _titleID; + + private IExtension extensionObject; + + private bool ShouldSerializetitleID() + { + return this.titleIDSpecified; + } + + private void ResettitleID() + { + this.titleIDSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/KKSG/titleChangeData.cs.meta b/Client/Assets/Scripts/XMainClient/KKSG/titleChangeData.cs.meta new file mode 100644 index 00000000..e8d3fa5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/titleChangeData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c073bcd4c75c88499e772ad46ffcc21 +timeCreated: 1611403501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LeagueBattleRecordBaseInfo.cs b/Client/Assets/Scripts/XMainClient/LeagueBattleRecordBaseInfo.cs new file mode 100644 index 00000000..5dd914e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LeagueBattleRecordBaseInfo.cs @@ -0,0 +1,25 @@ +using System; + +namespace XMainClient +{ + public class LeagueBattleRecordBaseInfo + { + public uint totalNum; + + public uint totalWinNum; + + public uint totalLoseNum; + + public uint weekTotalNum; + + public uint weekWinNum; + + public uint weekLoseNum; + + public uint maxContinueWin; + + public uint maxContinueLose; + + public float winRate; + } +} diff --git a/Client/Assets/Scripts/XMainClient/LeagueBattleRecordBaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/LeagueBattleRecordBaseInfo.cs.meta new file mode 100644 index 00000000..b7cbc720 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LeagueBattleRecordBaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 575afd4d02fa778479dcb7a57649c76f +timeCreated: 1611403748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LeaguePKRecordInfo.cs b/Client/Assets/Scripts/XMainClient/LeaguePKRecordInfo.cs new file mode 100644 index 00000000..877243b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LeaguePKRecordInfo.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class LeaguePKRecordInfo + { + public ulong opponentTeamId; + + public string opponentTeamName; + + public string serverName; + + public uint serverId; + + public int scoreChange; + + public PkResultType result; + + public uint time; + } +} diff --git a/Client/Assets/Scripts/XMainClient/LeaguePKRecordInfo.cs.meta b/Client/Assets/Scripts/XMainClient/LeaguePKRecordInfo.cs.meta new file mode 100644 index 00000000..58b9382f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LeaguePKRecordInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c44e9ec47bbc8ba4ab10e3c650ecc9f3 +timeCreated: 1611404500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LeagueTeamDetailInfo.cs b/Client/Assets/Scripts/XMainClient/LeagueTeamDetailInfo.cs new file mode 100644 index 00000000..82d6adc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LeagueTeamDetailInfo.cs @@ -0,0 +1,12 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class LeagueTeamDetailInfo + { + public RoleOutLookBrief roleBrief; + + public uint pkPoints; + } +} diff --git a/Client/Assets/Scripts/XMainClient/LeagueTeamDetailInfo.cs.meta b/Client/Assets/Scripts/XMainClient/LeagueTeamDetailInfo.cs.meta new file mode 100644 index 00000000..3d12d579 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LeagueTeamDetailInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 616428c3f95cfa5459cc89a5fb1e17b1 +timeCreated: 1611403838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelCmd.cs b/Client/Assets/Scripts/XMainClient/LevelCmd.cs new file mode 100644 index 00000000..3bad7ba2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelCmd.cs @@ -0,0 +1,39 @@ +using System; + +namespace XMainClient +{ + internal enum LevelCmd + { + Level_Cmd_Invalid, + Level_Cmd_TalkL, + Level_Cmd_TalkR, + Level_Cmd_Notalk, + Level_Cmd_Addbuff, + Level_Cmd_Tutorial, + Level_Cmd_Notice, + Level_Cmd_StopNotice, + Level_Cmd_Opendoor, + Level_Cmd_Cutscene, + Level_Cmd_LevelupFx, + Level_Cmd_ShowSkill, + Level_Cmd_KillSpawn, + Level_Cmd_KillAlly, + Level_Cmd_KillWave, + Level_Cmd_Direction, + Level_Cmd_Outline, + Level_Cmd_Record, + Level_Cmd_Continue, + Level_Cmd_NewbieHelper, + Level_Cmd_NewbieNotice, + Level_Cmd_Removebuff, + Level_Cmd_Summon, + Level_Cmd_KillAllSpawn, + Level_Cmd_NpcPopSpeek, + Level_Cmd_SendAICmd, + Level_Cmd_Bubble, + Level_Cmd_HideBillboard, + Level_Cmd_ChangeBody, + Level_Cmd_JustFx, + Level_Cmd_PlayFx + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelCmd.cs.meta b/Client/Assets/Scripts/XMainClient/LevelCmd.cs.meta new file mode 100644 index 00000000..336d97d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelCmd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6e762ab421bccb4887fee71e05cbb70 +timeCreated: 1611404528 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs b/Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs new file mode 100644 index 00000000..a99f53b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class LevelCmdDesc + { + public LevelCmd cmd = LevelCmd.Level_Cmd_Invalid; + + public List Param = new List(); + + public XCmdState state = XCmdState.Cmd_In_Queue; + + public void Reset() + { + this.state = XCmdState.Cmd_In_Queue; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs.meta b/Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs.meta new file mode 100644 index 00000000..00bd1e05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelCmdDesc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 081df1729c728af4e9a017b013a0aef0 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardAbyssPartyHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardAbyssPartyHandler.cs new file mode 100644 index 00000000..8de4381e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardAbyssPartyHandler.cs @@ -0,0 +1,160 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardAbyssPartyHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardAbyssPartyFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private IXUILabel m_Time; + + private IUIDummy m_snapshot; + + private uint m_show_time_token = 0u; + + private uint _AutoStartTimeID = 0u; + + private IXUISprite m_Return; + + private IXUISprite m_Restart; + + private IXUILabel m_AutoRestartTime; + + private XLeftTimeCounter _TimeCounter; + + private Transform m_CostItem; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.m_Return = (base.PanelObject.transform.Find("Return").GetComponent("XUISprite") as IXUISprite); + this.m_Restart = (base.PanelObject.transform.Find("Restart").GetComponent("XUISprite") as IXUISprite); + this.m_CostItem = base.PanelObject.transform.Find("Restart/Cost"); + this.m_AutoRestartTime = (base.PanelObject.transform.Find("Restart/Tip").GetComponent("XUILabel") as IXUILabel); + this._TimeCounter = new XLeftTimeCounter(this.m_AutoRestartTime, false); + this._TimeCounter.SetTimeFormat(1, 1, 4, false); + this._TimeCounter.SetNoNeedPadLeft(); + this.m_Time = (base.PanelObject.transform.Find("Title/Time").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.PanelObject.transform.Find("Normal/ItemList/ScrollView/Item"); + this.m_ItemPool.SetupPool(null, transform.gameObject, 5u, false); + this.m_snapshot = (base.PanelObject.transform.Find("Snapshot/Snapshot").GetComponent("UIDummy") as IUIDummy); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Return.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturnClicked)); + this.m_Restart.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRestartClick)); + } + + private void OnReturnClicked(IXUISprite sp) + { + this.doc.SendLeaveScene(); + } + + private void OnRestartClick(IXUISprite sp) + { + this.doc.SendReEnterAbyssParty((uint)sp.ID); + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnShowUI(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._TimeCounter.Update(); + } + + public override void OnUnload() + { + XSingleton.singleton.OnUIUnloadMainDummy(this.m_snapshot); + base.OnUnload(); + } + + private void OnShowUI() + { + XLevelRewardDocument.AbyssPartyData abyssPartyBattleData = this.doc.AbyssPartyBattleData; + this.m_Time.SetText(XSingleton.singleton.TimeFormatString((int)abyssPartyBattleData.Time, 2, 3, 4, false, true)); + this.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < abyssPartyBattleData.item.Count; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)abyssPartyBattleData.item[i].itemID, (int)abyssPartyBattleData.item[i].itemCount, false); + gameObject.transform.localPosition = new Vector3((float)(i * this.m_ItemPool.TplWidth), 0f, 0f) + this.m_ItemPool.TplPos; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)abyssPartyBattleData.item[i].itemID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + } + this.m_ItemPool.ActualReturnAll(false); + AbyssPartyListTable.RowData abyssPartyList = XAbyssPartyDocument.GetAbyssPartyList(abyssPartyBattleData.AbysssPartyListId); + bool flag = abyssPartyList != null; + if (flag) + { + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_CostItem.gameObject, abyssPartyList.Cost[0], abyssPartyList.Cost[1], true); + IXUISprite ixuisprite2 = this.m_CostItem.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)abyssPartyList.Cost[0]); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + this.m_Restart.ID = 0UL; + } + XSingleton.singleton.EnableMainDummy(true, this.m_snapshot); + float num = XSingleton.singleton.SetMainAnimationGetLength(XSingleton.singleton.Player.Present.PresentLib.Disappear); + this.m_show_time_token = XSingleton.singleton.SetTimer(num, new XTimerMgr.ElapsedEventHandler(this.KillDummyTimer), null); + num = float.Parse(XSingleton.singleton.GetValue("AbyssPartyAutoStart")) + 0.5f; + this._TimeCounter.SetLeftTime(num, -1); + this._TimeCounter.SetFinishEventHandler(new TimeOverFinishEventHandler(this._AutoStart), null); + this._TimeCounter.SetFormatString(XSingleton.singleton.GetString("ABYSS_PARTY_AUTO_TIME")); + } + + private void KillDummyTimer(object sender) + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.SetMainAnimation(XSingleton.singleton.Player.Present.PresentLib.AttackIdle); + } + + private void _AutoStart(object param) + { + XSingleton.singleton.KillTimer(this._AutoStartTimeID); + AbyssPartyListTable.RowData abyssPartyList = XAbyssPartyDocument.GetAbyssPartyList(this.doc.AbyssPartyBattleData.AbysssPartyListId); + int num = abyssPartyList.Cost[0]; + int num2 = (int)XSingleton.singleton.Doc.XBagDoc.GetItemCount(num); + ItemList.RowData itemConf = XBagDocument.GetItemConf(num); + bool flag = num2 < abyssPartyList.Cost[1]; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ABYSS_PARTY_NO_TICKET"), "fece00"); + this.OnReturnClicked(null); + } + else + { + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + xplayerAttributes.AutoPlayOn = true; + this.m_Restart.ID = (ulong)((long)this.doc.AbyssPartyBattleData.AbysssPartyListId); + this.OnRestartClick(this.m_Restart); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardAbyssPartyHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardAbyssPartyHandler.cs.meta new file mode 100644 index 00000000..3bfcf4e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardAbyssPartyHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a276bf837b000149adfa10fde4bfa89 +timeCreated: 1611403988 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardActivityHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardActivityHandler.cs new file mode 100644 index 00000000..32fb418c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardActivityHandler.cs @@ -0,0 +1,193 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardActivityHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardActivityFrame"; + } + } + + private XLevelRewardDocument _doc = null; + + private Transform m_ActivityNormalFrame; + + private XUIPool m_ActivityItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUISprite m_ActivityContinue; + + private IXUISprite m_ActivityRestart; + + private Transform m_BrokeRecord; + + private IXUILabel[] m_ActivityMsg = new IXUILabel[3]; + + private IUIDummy m_snapshot; + + private uint m_show_time_token = 0u; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + this.m_ActivityNormalFrame = base.transform.Find("Normal"); + this.m_ActivityContinue = (base.transform.Find("Continue").GetComponent("XUISprite") as IXUISprite); + this.m_ActivityRestart = (base.transform.Find("Restart").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("Normal/ItemList/ScrollView/Item"); + this.m_ActivityItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_BrokeRecord = base.transform.Find("Normal/Detail/BrokeRecord"); + for (int i = 0; i < 3; i++) + { + this.m_ActivityMsg[i] = (base.transform.Find(string.Format("Normal/Detail/Msg{0}", i + 1)).GetComponent("XUILabel") as IXUILabel); + } + this.m_snapshot = (base.PanelObject.transform.Find("Snapshot/Snapshot").GetComponent("UIDummy") as IUIDummy); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ActivityContinue.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnContinueClick)); + this.m_ActivityRestart.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRestartClick)); + } + + private void OnContinueClick(IXUISprite sp) + { + this._doc.SendLeaveScene(); + } + + private void OnRestartClick(IXUISprite sp) + { + this._doc.ReEnterLevel(); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowActivityFrame(); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.EnableMainDummy(false, null); + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.OnUIUnloadMainDummy(this.m_snapshot); + XSingleton.singleton.KillTimer(this.m_show_time_token); + base.OnUnload(); + } + + public void ShowActivityFrame() + { + this.m_ActivityMsg[0].SetVisible(true); + this.m_ActivityMsg[1].SetVisible(true); + this.m_ActivityMsg[2].SetVisible(true); + SceneType currentStage = this._doc.CurrentStage; + if (currentStage == SceneType.SCENE_BOSSRUSH || currentStage == SceneType.SCENE_TOWER) + { + this.m_ActivityNormalFrame.gameObject.SetActive(true); + this.m_ActivityItemPool.FakeReturnAll(); + for (int i = 0; i < this._doc.Items.Count; i++) + { + GameObject gameObject = this.m_ActivityItemPool.FetchGameObject(true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this._doc.Items[i].itemID; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)this._doc.Items[i].itemID, (int)this._doc.Items[i].itemCount, false); + gameObject.transform.localPosition = new Vector3(this.m_ActivityItemPool.TplPos.x + (float)(i * this.m_ActivityItemPool.TplWidth), this.m_ActivityItemPool.TplPos.y); + bool isbind = this._doc.Items[i].isbind; + if (isbind) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + this.m_BrokeRecord.gameObject.SetActive(this._doc.BrokeRecords); + this.m_ActivityRestart.SetVisible(false); + XSingleton.singleton.EnableMainDummy(true, this.m_snapshot); + float interval = XSingleton.singleton.SetMainAnimationGetLength(XSingleton.singleton.Player.Present.PresentLib.Disappear); + this.m_show_time_token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.KillDummyTimer), null); + SceneType currentStage2 = this._doc.CurrentStage; + if (currentStage2 != SceneType.SCENE_BOSSRUSH) + { + if (currentStage2 != SceneType.SCENE_TOWER) + { + this.m_ActivityMsg[0].SetText(""); + this.m_ActivityMsg[1].SetText(XStringDefineProxy.GetString("SMALLMONSTER_RANK", new object[] + { + this._doc.SmallMonsterRank + })); + this.m_ActivityMsg[2].SetText(""); + this.m_ActivityMsg[0].SetVisible(false); + this.m_ActivityMsg[2].SetVisible(false); + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + string text = ""; + bool flag = sceneData != null; + if (flag) + { + text = XStringDefineProxy.GetString("TOWER_PPT", new object[] + { + sceneData.RecommendPower + }); + } + this.m_ActivityMsg[0].SetText(XStringDefineProxy.GetString("TOWER_WAVE", new object[] + { + this._doc.TowerFloor + })); + this.m_ActivityMsg[1].SetText(text); + this.m_ActivityMsg[2].SetText(XStringDefineProxy.GetString("TOWER_TIME", new object[] + { + XSingleton.singleton.TimeFormatString(this._doc.LevelFinishTime, 2, 3, 4, false, true) + })); + this.m_ActivityRestart.SetVisible(true); + } + } + else + { + XBossBushDocument xbossBushDocument = XSingleton.singleton.Doc.GetXComponent(XBossBushDocument.uuID) as XBossBushDocument; + UnitAppearance cacheServerMonster = XSingleton.singleton.GetCacheServerMonster(1u); + this.m_ActivityMsg[0].SetText(XStringDefineProxy.GetString("FINISH_WAVE", new object[] + { + Mathf.Min(DlgBase.singleton.isWin ? xbossBushDocument.respData.currank : (xbossBushDocument.respData.currank - 1), XSingleton.singleton.GetInt("BossRushMaxWave")) + })); + this.m_ActivityMsg[1].SetText(XStringDefineProxy.GetString("BOSSRUSH_NAME", new object[] + { + xbossBushDocument.entityRow.Name + })); + this.m_ActivityMsg[2].SetText(""); + this.m_ActivityMsg[2].SetVisible(false); + } + this.m_ActivityItemPool.ActualReturnAll(false); + } + } + + private void KillDummyTimer(object sender) + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.SetMainAnimation(XSingleton.singleton.Player.Present.PresentLib.AttackIdle); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardActivityHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardActivityHandler.cs.meta new file mode 100644 index 00000000..8fc8060b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardActivityHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 965c3e4e53cc9054798adf8606e3617b +timeCreated: 1611404184 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardArenaHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardArenaHandler.cs new file mode 100644 index 00000000..f11dd8b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardArenaHandler.cs @@ -0,0 +1,351 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardArenaHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardArenaFrame"; + } + } + + private XLevelRewardDocument _doc = null; + + private Transform m_ArenaWinFrame; + + private Transform m_ArenaDrawFrame; + + private Transform m_ArenaLoseFrame; + + private IXUISprite m_ArenaContinue; + + private IXUILabel m_ArenaReturnLabel; + + private IXUILabel m_ArenaRankUpNum; + + private IXUISprite m_ArenaRankUpArrow; + + private IXUISprite m_ArenaRankUp; + + private IXUILabel m_ArenaGemNum; + + private IXUILabel m_ArenaMissTip; + + private IXUILabel m_InvitePKResult; + + private GameObject m_InvitePK; + + private IXUISprite m_InvitePKReturn; + + private IXUISprite m_InvitePKAgain; + + private IXUISprite m_Qualifying; + + private IXUISprite m_QualifyRankUpArrow; + + private IXUILabel m_QualifyFirstRank; + + private GameObject m_QualifyRankTips; + + private IXUILabel m_QualifyRankUpNum; + + private IXUISprite m_QualifyPointUpArrow; + + private IXUILabel m_QualifyPointUpNum; + + private IXUILabel m_QualifyHonorNum; + + private XUIPool m_RewardPool; + + private IXUIList m_RewardList; + + private IXUILabel m_HonorUpTip2; + + private Vector3 m_itemScale = new Vector3(0.6f, 0.6f, 0.6f); + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + this.m_ArenaWinFrame = base.transform.Find("Result/Win"); + this.m_ArenaDrawFrame = base.transform.Find("Result/Draw"); + this.m_ArenaLoseFrame = base.transform.Find("Result/Lose"); + this.m_ArenaContinue = (base.transform.Find("Continue").GetComponent("XUISprite") as IXUISprite); + this.m_ArenaReturnLabel = (base.transform.Find("Continue/Text").GetComponent("XUILabel") as IXUILabel); + this.m_ArenaRankUp = (base.transform.Find("ArenaUp").GetComponent("XUISprite") as IXUISprite); + this.m_ArenaRankUpNum = (base.transform.Find("ArenaUp/ArenaRankUpNum").GetComponent("XUILabel") as IXUILabel); + this.m_ArenaRankUpArrow = (base.transform.Find("ArenaUp/RankUpArrow").GetComponent("XUISprite") as IXUISprite); + this.m_ArenaGemNum = (base.transform.Find("ArenaUp/GemUpNum").GetComponent("XUILabel") as IXUILabel); + this.m_ArenaMissTip = (base.transform.Find("ArenaUp/ArenaMissTip").GetComponent("XUILabel") as IXUILabel); + this.m_Qualifying = (base.transform.Find("Qualifying").GetComponent("XUISprite") as IXUISprite); + this.m_QualifyFirstRank = (base.transform.Find("Qualifying/FirstRank").GetComponent("XUILabel") as IXUILabel); + this.m_QualifyRankTips = base.transform.Find("Qualifying/RankUpTip").gameObject; + this.m_QualifyRankUpNum = (base.transform.Find("Qualifying/RankUpNum").GetComponent("XUILabel") as IXUILabel); + this.m_QualifyRankUpArrow = (base.transform.Find("Qualifying/RankUpArrow").GetComponent("XUISprite") as IXUISprite); + this.m_QualifyPointUpNum = (base.transform.Find("Qualifying/PointUpNum").GetComponent("XUILabel") as IXUILabel); + this.m_QualifyPointUpArrow = (base.transform.Find("Qualifying/PointUpArrow").GetComponent("XUISprite") as IXUISprite); + this.m_QualifyHonorNum = (base.transform.Find("Qualifying/HonorUpNum").GetComponent("XUILabel") as IXUILabel); + this.m_InvitePKResult = (base.transform.Find("InvitePK").GetComponent("XUILabel") as IXUILabel); + this.m_InvitePK = base.transform.Find("InvitePKAgain").gameObject; + this.m_InvitePKReturn = (base.transform.Find("InvitePKAgain/Return").GetComponent("XUISprite") as IXUISprite); + this.m_InvitePKAgain = (base.transform.Find("InvitePKAgain/Again").GetComponent("XUISprite") as IXUISprite); + this.m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + Transform transform = base.transform.Find("Qualifying/HonorExtra/item"); + this.m_RewardPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 3u, false); + this.m_RewardList = (base.transform.Find("Qualifying/HonorExtra").GetComponent("XUIList") as IXUIList); + this.m_HonorUpTip2 = (base.transform.Find("Qualifying/HonorUpTip2").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ArenaContinue.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnContinueClick)); + this.m_InvitePKAgain.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnInvitePKAgain)); + this.m_InvitePKReturn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnContinueClick)); + } + + private void OnContinueClick(IXUISprite sp) + { + this._doc.SendLeaveScene(); + } + + private void OnInvitePKAgain(IXUISprite sp) + { + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + specificDocument.AskInvitePKAgain(); + } + + private void ShowQualifying(IXUISprite sp) + { + base.SetVisible(false); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowArenaFrame(); + } + + private void InitAwardList(List items) + { + bool flag = items == null || items.Count == 0; + if (flag) + { + this.m_HonorUpTip2.Alpha = 0f; + this.m_RewardList.SetVisible(false); + } + else + { + this.m_HonorUpTip2.Alpha = 1f; + this.m_RewardList.SetVisible(true); + this.m_RewardPool.FakeReturnAll(); + int i = 0; + int count = items.Count; + while (i < count) + { + GameObject gameObject = this.m_RewardPool.FetchGameObject(false); + gameObject.transform.parent = this.m_RewardList.gameObject.transform; + gameObject.transform.localPosition = new Vector3((float)(i * 60), 0f, 0f); + gameObject.transform.localScale = this.m_itemScale; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)items[i].itemID, (int)items[i].itemCount, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)items[i].itemID; + bool isbind = items[i].isbind; + if (isbind) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + i++; + } + this.m_RewardPool.ActualReturnAll(false); + this.m_RewardList.Refresh(); + } + } + + public void ShowArenaFrame() + { + SceneType currentStage = this._doc.CurrentStage; + if (currentStage <= SceneType.SCENE_PK) + { + if (currentStage == SceneType.SCENE_ARENA) + { + this.m_ArenaRankUp.SetVisible(true); + this.m_Qualifying.SetVisible(false); + this.m_InvitePKResult.SetVisible(false); + this.m_InvitePK.SetActive(false); + this.m_ArenaContinue.SetVisible(true); + this.m_ArenaRankUpNum.SetText(this._doc.ArenaRankUp.ToString()); + this.m_ArenaGemNum.SetText(this._doc.ArenaGemUp.ToString()); + this.SetBattleResultTitle(PkResultType.PkResult_Win); + bool isArenaMiss = this._doc.IsArenaMiss; + if (isArenaMiss) + { + this.m_ArenaMissTip.SetVisible(true); + bool flag = this._doc.ArenaRankUp == 0; + if (flag) + { + this.m_ArenaMissTip.SetText(XStringDefineProxy.GetString("ArenaTargetMissed")); + } + else + { + this.m_ArenaMissTip.SetText(XStringDefineProxy.GetString("ArenaTargetRankChanged", new object[] + { + this._doc.ArenaRankUp + })); + } + } + else + { + this.m_ArenaMissTip.SetVisible(false); + } + this.m_ArenaReturnLabel.SetText(XStringDefineProxy.GetString("LEVEL_REWARD_RETURN_ARENA")); + return; + } + if (currentStage != SceneType.SCENE_PK) + { + return; + } + } + else + { + if (currentStage == SceneType.SCENE_INVFIGHT) + { + this.m_ArenaRankUp.SetVisible(false); + this.m_Qualifying.SetVisible(false); + this.m_InvitePKResult.SetVisible(true); + this.m_InvitePK.SetActive(true); + this.m_ArenaContinue.SetVisible(false); + bool isWin = this._doc.InvFightBattleData.isWin; + if (isWin) + { + this.SetBattleResultTitle(PkResultType.PkResult_Win); + this.m_InvitePKResult.SetText(XStringDefineProxy.GetString("PK_RESULT_WIN", new object[] + { + this._doc.InvFightBattleData.rivalName + })); + } + else + { + this.SetBattleResultTitle(PkResultType.PkResult_Lose); + this.m_InvitePKResult.SetText(XStringDefineProxy.GetString("PK_RESULT_LOSE", new object[] + { + this._doc.InvFightBattleData.rivalName + })); + } + this.m_ArenaReturnLabel.SetText(XStringDefineProxy.GetString("LEVEL_REWARD_RETURN_ARENA")); + return; + } + if (currentStage != SceneType.SCENE_PKTWO) + { + return; + } + } + bool flag2 = this._doc.CurrentStage == SceneType.SCENE_PK; + if (flag2) + { + this.m_ArenaContinue.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowQualifying)); + } + this.m_ArenaRankUp.SetVisible(false); + this.m_InvitePKResult.SetVisible(false); + this.m_Qualifying.SetVisible(true); + this.m_InvitePK.SetActive(false); + this.m_ArenaContinue.SetVisible(true); + this.SetBattleResultTitle(this._doc.QualifyingBattleData.QualifyingResult); + switch (this._doc.QualifyingBattleData.QualifyingResult) + { + case PkResultType.PkResult_Win: + { + bool flag3 = this._doc.QualifyingBattleData.opState == KKVsRoleState.KK_VS_ROLE_UNLOAD; + if (flag3) + { + XSingleton.singleton.ShowSystemNoticeTip(XSingleton.singleton.GetString("LoadTimeOutWin")); + } + break; + } + case PkResultType.PkResult_Lose: + { + bool flag4 = this._doc.QualifyingBattleData.myState == KKVsRoleState.KK_VS_ROLE_UNLOAD; + if (flag4) + { + XSingleton.singleton.ShowSystemNoticeTip(XSingleton.singleton.GetString("LoadTimeOutLose")); + } + break; + } + case PkResultType.PkResult_Draw: + { + bool flag5 = this._doc.QualifyingBattleData.myState == KKVsRoleState.KK_VS_ROLE_UNLOAD || this._doc.QualifyingBattleData.opState == KKVsRoleState.KK_VS_ROLE_UNLOAD; + if (flag5) + { + XSingleton.singleton.ShowSystemNoticeTip(XSingleton.singleton.GetString("LoadTimeOutDraw")); + } + break; + } + } + this.m_ArenaReturnLabel.SetText(XStringDefineProxy.GetString("LEVEL_REWARD_RETURN_ARENA")); + bool flag6 = this._doc.QualifyingBattleData.FirstRank == 0; + if (flag6) + { + this.m_QualifyRankTips.SetActive(true); + this.m_QualifyRankUpNum.SetVisible(true); + this.m_QualifyRankUpArrow.SetVisible(true); + this.m_QualifyFirstRank.SetVisible(false); + this.m_QualifyRankUpNum.SetText(string.Format("{0}{1}", (this._doc.QualifyingBattleData.QualifyingRankChange >= 0) ? "+" : "", this._doc.QualifyingBattleData.QualifyingRankChange)); + this.m_QualifyRankUpArrow.SetSprite((this._doc.QualifyingBattleData.QualifyingRankChange >= 0) ? "hall_zljt_0" : "hall_zljt_1"); + } + else + { + this.m_QualifyRankTips.SetActive(false); + this.m_QualifyRankUpNum.SetVisible(false); + this.m_QualifyRankUpArrow.SetVisible(false); + this.m_QualifyFirstRank.SetVisible(true); + this.m_QualifyFirstRank.SetText(string.Format(XStringDefineProxy.GetString("PVP_FIRSTRANK"), this._doc.QualifyingBattleData.FirstRank)); + } + this.m_QualifyPointUpNum.SetText(string.Format("{0}{1}", (this._doc.QualifyingBattleData.QualifyingPointChange >= 0) ? "+" : "", this._doc.QualifyingBattleData.QualifyingPointChange)); + this.m_QualifyHonorNum.SetText(this._doc.QualifyingBattleData.QualifyingHonorChange.ToString()); + this.m_QualifyPointUpArrow.SetSprite((this._doc.QualifyingBattleData.QualifyingPointChange >= 0) ? "hall_zljt_0" : "hall_zljt_1"); + this.InitAwardList(this._doc.QualifyingBattleData.QualifyingHonorItems); + } + + private void SetBattleResultTitle(PkResultType state) + { + switch (state) + { + case PkResultType.PkResult_Win: + this.m_ArenaWinFrame.gameObject.SetActive(true); + this.m_ArenaDrawFrame.gameObject.SetActive(false); + this.m_ArenaLoseFrame.gameObject.SetActive(false); + break; + case PkResultType.PkResult_Lose: + this.m_ArenaWinFrame.gameObject.SetActive(false); + this.m_ArenaDrawFrame.gameObject.SetActive(false); + this.m_ArenaLoseFrame.gameObject.SetActive(true); + break; + case PkResultType.PkResult_Draw: + this.m_ArenaWinFrame.gameObject.SetActive(false); + this.m_ArenaDrawFrame.gameObject.SetActive(true); + this.m_ArenaLoseFrame.gameObject.SetActive(false); + break; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardArenaHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardArenaHandler.cs.meta new file mode 100644 index 00000000..39246922 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardArenaHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ba3372d1e07c634f9b8e3da2c3ac605 +timeCreated: 1611403687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardBattleDataHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardBattleDataHandler.cs new file mode 100644 index 00000000..864f9e14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardBattleDataHandler.cs @@ -0,0 +1,123 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardBattleDataHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardBattleDataFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private IXUIButton m_close; + + private XUIPool m_battle_data_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_watch; + + private IXUILabel m_like; + + private IXUILabel m_time; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + this.m_close = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_watch = (base.PanelObject.transform.Find("Watch").GetComponent("XUILabel") as IXUILabel); + this.m_like = (base.PanelObject.transform.Find("Like").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.PanelObject.transform.Find("Panel/MemberTpl"); + this.m_battle_data_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_time = (base.PanelObject.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + private bool OnCloseClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.OnShowUI(); + } + + private void OnShowUI() + { + bool flag = XSpectateSceneDocument.WhetherWathchNumShow((int)this.doc.WatchCount, (int)this.doc.LikeCount, (int)this.doc.CurrentStage); + if (flag) + { + this.m_watch.SetVisible(true); + this.m_like.SetVisible(true); + this.m_watch.SetText(this.doc.WatchCount.ToString()); + this.m_like.SetText(this.doc.LikeCount.ToString()); + } + else + { + this.m_watch.SetVisible(false); + this.m_like.SetVisible(false); + } + this.m_battle_data_pool.FakeReturnAll(); + float num = this.m_battle_data_pool.TplPos.y; + for (int i = 0; i < this.doc.BattleDataList.Count; i++) + { + GameObject gameObject = this.m_battle_data_pool.FetchGameObject(false); + this.SetupBattleData(gameObject, this.doc.BattleDataList[i]); + gameObject.transform.localPosition = new Vector3(this.m_battle_data_pool.TplPos.x, num); + num -= (float)this.m_battle_data_pool.TplHeight; + } + this.m_battle_data_pool.ActualReturnAll(false); + this.m_time.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("LEVEL_FINISH_TIME"), XSingleton.singleton.TimeFormatString(this.doc.LevelFinishTime, 2, 3, 4, false, true))); + } + + private void SetupBattleData(GameObject go, XLevelRewardDocument.BattleData data) + { + IXUISprite ixuisprite = go.transform.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = go.transform.Find("Detail/Leader").GetComponent("XUISprite") as IXUISprite; + Transform[] array = new Transform[3]; + for (int i = 0; i < 3; i++) + { + array[i] = go.transform.Find(string.Format("Stars/Star{0}", i + 1)); + } + IXUILabel ixuilabel2 = go.transform.Find("DamageTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("DamagePercent").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("HealTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("DeathCount").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = go.transform.Find("MaxCombo").GetComponent("XUILabel") as IXUILabel; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(data.ProfID)); + ixuilabel.SetText(data.Name); + ixuisprite2.SetVisible(data.isLeader); + for (int j = 0; j < 3; j++) + { + array[j].gameObject.SetActive((long)j < (long)((ulong)data.Rank)); + } + ixuilabel2.SetText(data.DamageTotal.ToString()); + ixuilabel3.SetText(string.Format("{0}%", data.DamagePercent.ToString("0.0"))); + ixuilabel4.SetText(data.HealTotal.ToString()); + ixuilabel5.SetText(data.DeathCount.ToString()); + ixuilabel6.SetText(data.ComboCount.ToString()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardBattleDataHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardBattleDataHandler.cs.meta new file mode 100644 index 00000000..0945d09c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardBattleDataHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: beda8c3f63a2d0a48af3a27a92350f5c +timeCreated: 1611404482 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardBattleFieldHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardBattleFieldHandler.cs new file mode 100644 index 00000000..305a0165 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardBattleFieldHandler.cs @@ -0,0 +1,182 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardBattleFieldHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardBattleFieldFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private IXUIButton m_BattleDataButton; + + private IXUIButton m_ReturnButton; + + private IXUIButton m_ReturnWaitButton; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_PlayerPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_PVPDataFrame; + + private IXUIButton m_BattleDataCloseButton; + + private XUIPool m_BattleDataPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + this.InitDetailUI(); + } + + private void InitUI() + { + this.m_PlayerPool.SetupPool(null, base.transform.Find("Bg/Rank/Rank/Panel/PlayerTpl").gameObject, 8u, false); + this.m_ItemPool.SetupPool(null, base.transform.Find("Bg/Bottom/ItemList/Panel/ItemTpl").gameObject, 5u, false); + this.m_BattleDataButton = (base.transform.Find("Bg/Bottom/BattleData").GetComponent("XUIButton") as IXUIButton); + this.m_ReturnButton = (base.transform.Find("Bg/Bottom/Return").GetComponent("XUIButton") as IXUIButton); + this.m_ReturnWaitButton = (base.transform.Find("Bg/Bottom/ReturnWait").GetComponent("XUIButton") as IXUIButton); + } + + private void InitDetailUI() + { + this.m_PVPDataFrame = base.PanelObject.transform.Find("Bg/PVPDataFrame"); + this.m_BattleDataPool.SetupPool(null, this.m_PVPDataFrame.Find("Panel/MemberTpl").gameObject, 8u, false); + this.m_BattleDataCloseButton = (this.m_PVPDataFrame.Find("Close").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BattleDataButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleDataButtonClicked)); + this.m_ReturnButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + this.m_ReturnWaitButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnWaitButtonClicked)); + this.m_BattleDataCloseButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDetailCloseButtonClicked)); + } + + private bool OnBattleDataButtonClicked(IXUIButton button) + { + this.m_PVPDataFrame.gameObject.SetActive(true); + return true; + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + this.doc.SendLeaveScene(); + return true; + } + + private bool OnReturnWaitButtonClicked(IXUIButton button) + { + this.doc.SendReturnWaitBattleField(); + return true; + } + + private bool OnDetailCloseButtonClicked(IXUIButton button) + { + this.m_PVPDataFrame.gameObject.SetActive(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.OnShowUI(); + this.SetupBattleDataUI(); + } + + private void OnShowUI() + { + this.m_PVPDataFrame.gameObject.SetActive(false); + XLevelRewardDocument.BattleFieldData battleFieldBattleData = this.doc.BattleFieldBattleData; + this.m_ReturnWaitButton.gameObject.SetActive(!battleFieldBattleData.allend); + this.m_PlayerPool.FakeReturnAll(); + for (int i = 0; i < battleFieldBattleData.MemberData.Count; i++) + { + GameObject gameObject = this.m_PlayerPool.FetchGameObject(false); + this.SetupDetailUI(gameObject, battleFieldBattleData.MemberData[i]); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_PlayerPool.TplHeight * i)) + this.m_PlayerPool.TplPos; + } + this.m_PlayerPool.ActualReturnAll(false); + this.m_ItemPool.FakeReturnAll(); + for (int j = 0; j < battleFieldBattleData.item.Count; j++) + { + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)battleFieldBattleData.item[j].itemID, (int)battleFieldBattleData.item[j].itemCount, false); + gameObject2.transform.localPosition = new Vector3((float)(j * this.m_ItemPool.TplWidth), 0f, 0f) + this.m_ItemPool.TplPos; + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)battleFieldBattleData.item[j].itemID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + this.m_ItemPool.ActualReturnAll(false); + } + + private void SetupDetailUI(GameObject go, XLevelRewardDocument.BattleRankRoleInfo data) + { + IXUISprite ixuisprite = go.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = go.transform.Find("MVP").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("ServerName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("Death").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("Point").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = go.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(data.RoleProf)); + ixuisprite2.SetAlpha((float)(data.isMVP ? 1 : 0)); + ixuilabel.SetText(data.Name); + ixuilabel2.SetText(data.ServerName); + ixuilabel3.SetText(data.KillCount.ToString()); + ixuilabel4.SetText(data.DeathCount.ToString()); + ixuilabel5.SetText(data.Point.ToString()); + ixuilabel6.SetText(data.Rank.ToString()); + } + + private void SetupBattleDataUI() + { + XLevelRewardDocument.BattleFieldData battleFieldBattleData = this.doc.BattleFieldBattleData; + this.m_BattleDataPool.ReturnAll(false); + Vector3 vector = this.m_BattleDataPool.TplPos; + for (int i = 0; i < battleFieldBattleData.MemberData.Count; i++) + { + GameObject gameObject = this.m_BattleDataPool.FetchGameObject(false); + gameObject.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_BattleDataPool.TplHeight)); + IXUISprite ixuisprite = gameObject.transform.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Detail/ServerName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Profession").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject.transform.Find("KillTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = gameObject.transform.Find("MaxKill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = gameObject.transform.Find("DeathCount").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel7 = gameObject.transform.Find("DamageTotal").GetComponent("XUILabel") as IXUILabel; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(battleFieldBattleData.MemberData[i].RoleProf)); + ixuilabel.SetText(battleFieldBattleData.MemberData[i].Name); + ixuilabel2.SetText(battleFieldBattleData.MemberData[i].ServerName); + ixuilabel3.SetText(XSingleton.singleton.GetProfName(battleFieldBattleData.MemberData[i].RoleProf)); + IXUILabel ixuilabel8 = ixuilabel4; + XLevelRewardDocument.BattleRankRoleInfo battleRankRoleInfo = battleFieldBattleData.MemberData[i]; + ixuilabel8.SetText(battleRankRoleInfo.KillCount.ToString()); + IXUILabel ixuilabel9 = ixuilabel5; + battleRankRoleInfo = battleFieldBattleData.MemberData[i]; + ixuilabel9.SetText(battleRankRoleInfo.CombKill.ToString()); + IXUILabel ixuilabel10 = ixuilabel6; + battleRankRoleInfo = battleFieldBattleData.MemberData[i]; + ixuilabel10.SetText(battleRankRoleInfo.DeathCount.ToString()); + ixuilabel7.SetText(XSingleton.singleton.NumberFormat(battleFieldBattleData.MemberData[i].Damage)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardBattleFieldHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardBattleFieldHandler.cs.meta new file mode 100644 index 00000000..93ae2268 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardBattleFieldHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9eed02c7a4d11064ba19131d435ec45f +timeCreated: 1611404243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardBattleRoyaleHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardBattleRoyaleHandler.cs new file mode 100644 index 00000000..0e40f71f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardBattleRoyaleHandler.cs @@ -0,0 +1,94 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardBattleRoyaleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardBattleRoyaleFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private Transform m_Win; + + private Transform m_Fail; + + private IXUILabel m_Rank; + + private IXUILabel m_Kill; + + private IXUILabel m_KillBy; + + private IXUILabel m_LiveTime; + + private IXUILabel m_Score; + + private IXUILabel m_Tip; + + private IXUIButton m_Button; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + this.m_Win = base.PanelObject.transform.Find("Bg/Result/Win"); + this.m_Fail = base.PanelObject.transform.Find("Bg/Result/Fail"); + this.m_Rank = (base.PanelObject.transform.Find("Bg/Detail/Rank").GetComponent("XUILabel") as IXUILabel); + this.m_Kill = (base.PanelObject.transform.Find("Bg/Detail/Kill").GetComponent("XUILabel") as IXUILabel); + this.m_KillBy = (base.PanelObject.transform.Find("Bg/Detail/KillBy").GetComponent("XUILabel") as IXUILabel); + this.m_LiveTime = (base.PanelObject.transform.Find("Bg/Detail/JS/Time").GetComponent("XUILabel") as IXUILabel); + this.m_Score = (base.PanelObject.transform.Find("Bg/Detail/JS/Score").GetComponent("XUILabel") as IXUILabel); + this.m_Tip = (base.PanelObject.transform.Find("Bg/Detail/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_Button = (base.PanelObject.transform.Find("Bg/Button/Back").GetComponent("XUIButton") as IXUIButton); + this.m_Button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButtonClicked)); + } + + private bool OnButtonClicked(IXUIButton button) + { + this.doc.SendLeaveScene(); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowUI(); + } + + private void ShowUI() + { + this.m_Win.gameObject.SetActive(this.doc.BattleRoyaleDataInfo.SelfRank == 1u); + this.m_Fail.gameObject.SetActive(this.doc.BattleRoyaleDataInfo.SelfRank != 1u); + this.m_Rank.SetText(XStringDefineProxy.GetString("BattleRoyaleRank", new object[] + { + this.doc.BattleRoyaleDataInfo.SelfRank, + this.doc.BattleRoyaleDataInfo.AllRank + })); + this.m_Kill.SetText(XStringDefineProxy.GetString("BattleRoyaleKill", new object[] + { + this.doc.BattleRoyaleDataInfo.KillCount + })); + this.m_KillBy.SetText((this.doc.BattleRoyaleDataInfo.SelfRank != 1u) ? XStringDefineProxy.GetString("BattleRoyaleKilledBy", new object[] + { + this.doc.BattleRoyaleDataInfo.KilledBy + }) : ""); + this.m_LiveTime.SetText(XSingleton.singleton.TimeFormatString(this.doc.BattleRoyaleDataInfo.LiveTime, 2, 3, 4, false)); + this.m_Score.SetText(this.doc.BattleRoyaleDataInfo.AddPoint.ToString()); + this.m_Tip.SetText((this.doc.BattleRoyaleDataInfo.SelfRank == 1u) ? XStringDefineProxy.GetString("BattleRoyaleWin") : XStringDefineProxy.GetString("BattleRoyaleFail")); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardBattleRoyaleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardBattleRoyaleHandler.cs.meta new file mode 100644 index 00000000..fa8df61d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardBattleRoyaleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a7497035fd8ff341a5441f65c5e3e19 +timeCreated: 1611403310 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardBigMeleeHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardBigMeleeHandler.cs new file mode 100644 index 00000000..9178717f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardBigMeleeHandler.cs @@ -0,0 +1,105 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardBigMeleeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardBigMeleeFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private XBigMeleeEntranceDocument entDoc = null; + + private IUIDummy m_snapshot; + + private uint m_show_time_token = 0u; + + private IXUISprite m_Return; + + private IXUILabel m_RankNum; + + private IXUISprite m_RankImg; + + private IXUILabel m_Score; + + private IXUILabel m_Kill; + + private IXUILabel m_Death; + + private IXUIButton m_BattleData; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.entDoc = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + this.m_Return = (base.PanelObject.transform.Find("Return").GetComponent("XUISprite") as IXUISprite); + this.m_RankImg = (base.PanelObject.transform.Find("Rank/RankImg").GetComponent("XUISprite") as IXUISprite); + this.m_RankNum = (base.PanelObject.transform.Find("Rank/RankNum").GetComponent("XUILabel") as IXUILabel); + this.m_Score = (base.PanelObject.transform.Find("Result/Score/T").GetComponent("XUILabel") as IXUILabel); + this.m_Kill = (base.PanelObject.transform.Find("Result/Kill/T").GetComponent("XUILabel") as IXUILabel); + this.m_Death = (base.PanelObject.transform.Find("Result/Death/T").GetComponent("XUILabel") as IXUILabel); + this.m_BattleData = (base.PanelObject.transform.Find("ItemList/BattleData").GetComponent("XUIButton") as IXUIButton); + this.m_snapshot = (base.PanelObject.transform.Find("Snapshot/Snapshot").GetComponent("UIDummy") as IUIDummy); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Return.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturnClicked)); + this.m_BattleData.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankClicked)); + } + + private void OnReturnClicked(IXUISprite sp) + { + this.doc.SendLeaveScene(); + } + + private bool OnRankClicked(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this.entDoc.RankHandler, base.transform, true, null); + this.entDoc.RankHandler.SetType(true); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.OnShowUI(); + } + + public override void OnUnload() + { + XSingleton.singleton.OnUIUnloadMainDummy(this.m_snapshot); + DlgHandlerBase.EnsureUnload(ref this.entDoc.RankHandler); + base.OnUnload(); + } + + private void OnShowUI() + { + XLevelRewardDocument.BigMeleeData bigMeleeBattleData = this.doc.BigMeleeBattleData; + this.m_Score.SetText(bigMeleeBattleData.score.ToString()); + this.m_Kill.SetText(bigMeleeBattleData.kill.ToString()); + this.m_Death.SetText(bigMeleeBattleData.death.ToString()); + XSingleton.singleton.ShowRank(this.m_RankImg, this.m_RankNum, (int)bigMeleeBattleData.rank); + XSingleton.singleton.EnableMainDummy(true, this.m_snapshot); + float interval = XSingleton.singleton.SetMainAnimationGetLength(XSingleton.singleton.Player.Present.PresentLib.Disappear); + this.m_show_time_token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.KillDummyTimer), null); + } + + private void KillDummyTimer(object sender) + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.SetMainAnimation(XSingleton.singleton.Player.Present.PresentLib.AttackIdle); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardBigMeleeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardBigMeleeHandler.cs.meta new file mode 100644 index 00000000..04d6e84d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardBigMeleeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5318f0905446d7c46914fc560dfca55a +timeCreated: 1611403710 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardCustomBattleHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardCustomBattleHandler.cs new file mode 100644 index 00000000..82b26632 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardCustomBattleHandler.cs @@ -0,0 +1,195 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardCustomBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardCustomBattleFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private Transform m_win; + + private Transform m_lose; + + private Transform m_draw; + + private IXUIButton m_battle_data_button; + + private IXUIButton m_return_button; + + private XUIPool m_team1_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_team2_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_pvp_data_frame; + + private XUIPool m_battle_data_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_battle_data_close_button; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + this.InitDetailUI(); + } + + private void InitUI() + { + this.m_win = base.PanelObject.transform.Find("Bg/Result/win"); + this.m_lose = base.PanelObject.transform.Find("Bg/Result/lose"); + this.m_draw = base.PanelObject.transform.Find("Bg/Result/draw"); + this.m_battle_data_button = (base.PanelObject.transform.Find("Bg/button/BattleData").GetComponent("XUIButton") as IXUIButton); + this.m_return_button = (base.PanelObject.transform.Find("Bg/button/Continue").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Bg/Board/team1/Panel/PlayerTpl"); + this.m_team1_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = base.PanelObject.transform.Find("Bg/Board/team2/Panel/PlayerTpl"); + this.m_team2_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + } + + private void InitDetailUI() + { + this.m_pvp_data_frame = base.PanelObject.transform.Find("Bg/PVPDataFrame"); + Transform transform = this.m_pvp_data_frame.Find("Panel/MemberTpl"); + this.m_battle_data_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + this.m_battle_data_close_button = (this.m_pvp_data_frame.Find("Close").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_battle_data_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleDataButtonClicked)); + this.m_return_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + this.m_battle_data_close_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDetailCloseButtonClicked)); + } + + private bool OnBattleDataButtonClicked(IXUIButton button) + { + this.m_pvp_data_frame.gameObject.SetActive(true); + return true; + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + this.doc.SendLeaveScene(); + return true; + } + + private bool OnDetailCloseButtonClicked(IXUIButton button) + { + this.m_pvp_data_frame.gameObject.SetActive(false); + return true; + } + + private void OnAddFriendClick(IXUISprite sp) + { + DlgBase.singleton.AddFriendById(sp.ID); + } + + private void OnAddOtherServerFriendClick(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ADD_OTHER_SERVER_FRIEND"), "fece00"); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnShowUI(); + this.SetupBattleDataUI(); + } + + private void OnShowUI() + { + this.m_pvp_data_frame.gameObject.SetActive(false); + this.m_win.gameObject.SetActive(this.doc.CustomBattleData.Result == PkResultType.PkResult_Win); + this.m_lose.gameObject.SetActive(this.doc.CustomBattleData.Result == PkResultType.PkResult_Lose); + this.m_draw.gameObject.SetActive(this.doc.CustomBattleData.Result == PkResultType.PkResult_Draw); + this.m_team1_pool.ReturnAll(false); + for (int i = 0; i < this.doc.CustomBattleData.Team1Data.Count; i++) + { + GameObject gameObject = this.m_team1_pool.FetchGameObject(false); + this.SetupDetailUI(gameObject, this.doc.CustomBattleData.Team1Data[i]); + gameObject.transform.localPosition = this.m_team1_pool.TplPos - new Vector3(0f, (float)(this.m_team1_pool.TplHeight * i)); + } + this.m_team2_pool.ReturnAll(false); + for (int j = 0; j < this.doc.CustomBattleData.Team2Data.Count; j++) + { + GameObject gameObject2 = this.m_team2_pool.FetchGameObject(false); + this.SetupDetailUI(gameObject2, this.doc.CustomBattleData.Team2Data[j]); + gameObject2.transform.localPosition = this.m_team2_pool.TplPos - new Vector3(0f, (float)(this.m_team2_pool.TplHeight * j)); + } + } + + private void SetupDetailUI(GameObject go, XLevelRewardDocument.CustomBattleInfo data) + { + IXUISprite ixuisprite = go.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = go.transform.Find("MVP").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Death").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("Point").GetComponent("XUILabel") as IXUILabel; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(data.RoleProf)); + ixuisprite2.SetAlpha((float)(data.IsMvp ? 1 : 0)); + ixuilabel.SetText(data.RoleName); + ixuilabel2.SetText(data.KillCount.ToString()); + ixuilabel3.SetText(data.DeathCount.ToString()); + ixuilabel4.SetText((data.PointChange > 0) ? ("+" + data.PointChange.ToString()) : data.PointChange.ToString()); + } + + private void SetupBattleDataUI() + { + this.m_battle_data_pool.ReturnAll(false); + Vector3 vector = this.m_battle_data_pool.TplPos; + for (int i = 0; i < this.doc.CustomBattleData.Team1Data.Count; i++) + { + GameObject gameObject = this.m_battle_data_pool.FetchGameObject(false); + this.SetupBattleDataDetailUI(gameObject, this.doc.CustomBattleData.Team1Data[i], true); + gameObject.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_battle_data_pool.TplHeight)); + } + for (int j = 0; j < this.doc.CustomBattleData.Team2Data.Count; j++) + { + GameObject gameObject2 = this.m_battle_data_pool.FetchGameObject(false); + this.SetupBattleDataDetailUI(gameObject2, this.doc.CustomBattleData.Team2Data[j], false); + gameObject2.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_battle_data_pool.TplHeight)); + } + } + + private void SetupBattleDataDetailUI(GameObject go, XLevelRewardDocument.CustomBattleInfo data, bool isteam1) + { + IXUISprite ixuisprite = go.transform.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + Transform transform = go.transform.Find("Detail/Team1"); + Transform transform2 = go.transform.Find("Detail/Team2"); + IXUILabel ixuilabel2 = go.transform.Find("KillTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("MaxKill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("DeathCount").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("DamageTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = go.transform.Find("HealTotal").GetComponent("XUILabel") as IXUILabel; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(data.RoleProf)); + ixuilabel.SetText(data.RoleName); + transform.gameObject.SetActive(isteam1); + transform2.gameObject.SetActive(!isteam1); + ixuilabel2.SetText(data.KillCount.ToString()); + ixuilabel3.SetText(data.MaxKillCount.ToString()); + ixuilabel4.SetText(data.DeathCount.ToString()); + ixuilabel5.SetText(XSingleton.singleton.NumberFormat(data.Damage)); + ixuilabel6.SetText(XSingleton.singleton.NumberFormat(data.Heal)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardCustomBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardCustomBattleHandler.cs.meta new file mode 100644 index 00000000..0d44b185 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardCustomBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfc5991c47dbacd44a17cb5f8c0a9933 +timeCreated: 1611404694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardGerenalHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardGerenalHandler.cs new file mode 100644 index 00000000..e5c81086 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardGerenalHandler.cs @@ -0,0 +1,748 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardGerenalHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardGerenalFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private IXUILabel[] m_level_req = new IXUILabel[3]; + + private IXUISprite[] m_level_req_done = new IXUISprite[3]; + + private IXUILabel m_left_time; + + private Transform m_star_frame; + + private Transform[] m_stars = new Transform[3]; + + private IXUITweenTool m_star_tween; + + private Transform[] m_star_fx = new Transform[3]; + + private IXUISlider m_exp_bar; + + private IXUILabel m_exp_bar_level; + + private IXUILabel m_exp_bar_percent; + + private IXUILabel m_guild_exp_buff; + + private Transform m_item_list; + + public XUIPool m_item_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_watch; + + public IXUILabel m_like; + + public IXUILabel m_score; + + public IXUISprite m_return; + + public IXUILabel m_return_label; + + private IXUILabel m_guild_exp; + + private GameObject m_goldGroupReward; + + private Transform m_help_tip; + + private Transform m_noneReward_tip; + + private Transform m_seal_tip; + + private float _exp_percent = 0f; + + private bool _show_exp_bar = false; + + private uint _time_token = 0u; + + private IXUILabel m_QQVipTip; + + private GameObject m_QQVipIcon; + + private GameObject m_QQSVipIcon; + + private GameObject m_QQGameCenter; + + private GameObject m_WXGameCenter; + + private IUIDummy m_snapshot; + + private uint m_show_time_token = 0u; + + private uint m_shareTimeToken = 0u; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + this.m_star_frame = base.PanelObject.transform.Find("Bg/Stars"); + for (int i = 0; i < 3; i++) + { + this.m_level_req[i] = (base.PanelObject.transform.Find(string.Format("Bg/StarsReq/Req{0}/Tip", i + 1)).GetComponent("XUILabel") as IXUILabel); + this.m_level_req_done[i] = (base.PanelObject.transform.Find(string.Format("Bg/StarsReq/Req{0}/Done", i + 1)).GetComponent("XUISprite") as IXUISprite); + this.m_stars[i] = base.PanelObject.transform.Find(string.Format("Bg/Stars/Star{0}", i + 1)); + this.m_star_fx[i] = base.PanelObject.transform.Find(string.Format("Bg/Stars/Star{0}/Fx", i + 1)); + } + this.m_star_tween = (base.PanelObject.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_left_time = (base.PanelObject.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_exp_bar = (base.PanelObject.transform.Find("Bg/ExpBar").GetComponent("XUISlider") as IXUISlider); + this.m_exp_bar_level = (base.PanelObject.transform.Find("Bg/ExpBar/Level").GetComponent("XUILabel") as IXUILabel); + this.m_exp_bar_percent = (base.PanelObject.transform.Find("Bg/ExpBar/Percent").GetComponent("XUILabel") as IXUILabel); + this.m_guild_exp_buff = (base.PanelObject.transform.Find("Bg/ExpBar/ExpBuff").GetComponent("XUILabel") as IXUILabel); + this.m_item_list = base.PanelObject.transform.Find("Bg/ItemList"); + Transform transform = base.PanelObject.transform.Find("Bg/ItemList/ScrollView/Item"); + this.m_item_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_watch = (base.PanelObject.transform.Find("Watch").GetComponent("XUILabel") as IXUILabel); + this.m_like = (base.PanelObject.transform.Find("Like").GetComponent("XUILabel") as IXUILabel); + this.m_score = (base.PanelObject.transform.Find("Bg/Score").GetComponent("XUILabel") as IXUILabel); + this.m_return = (base.PanelObject.transform.Find("Bg/Return").GetComponent("XUISprite") as IXUISprite); + this.m_return_label = (base.PanelObject.transform.Find("Bg/Return/Text").GetComponent("XUILabel") as IXUILabel); + this.m_guild_exp = (base.PanelObject.transform.Find("Bg/GuildExp").GetComponent("XUILabel") as IXUILabel); + this.m_goldGroupReward = base.PanelObject.transform.Find("Bg/RewardHunt").gameObject; + this.m_help_tip = base.PanelObject.transform.Find("Bg/HelperTip"); + this.m_noneReward_tip = base.PanelObject.transform.Find("Bg/NoneRewardTip"); + this.m_seal_tip = base.PanelObject.transform.Find("Bg/SealTip"); + this.m_QQVipTip = (base.PanelObject.transform.Find("Bg/QQVIPTS").GetComponent("XUILabel") as IXUILabel); + this.m_QQVipIcon = base.PanelObject.transform.Find("Bg/QQVIPTS/QQVIP").gameObject; + this.m_QQSVipIcon = base.PanelObject.transform.Find("Bg/QQVIPTS/QQSVIP").gameObject; + this.m_QQGameCenter = base.PanelObject.transform.Find("Bg/QQ").gameObject; + this.m_WXGameCenter = base.PanelObject.transform.Find("Bg/Wechat").gameObject; + this.m_snapshot = (base.PanelObject.transform.Find("Bg/Snapshot/Snapshot").GetComponent("UIDummy") as IUIDummy); + } + + protected override void OnShow() + { + base.OnShow(); + SceneType currentStage = this.doc.CurrentStage; + if (currentStage <= SceneType.SCENE_DRAGON) + { + if (currentStage <= SceneType.SCENE_NEST) + { + if (currentStage != SceneType.SCENE_BATTLE) + { + if (currentStage != SceneType.SCENE_NEST) + { + goto IL_7A; + } + goto IL_71; + } + } + else if (currentStage != SceneType.SCENE_ABYSSS) + { + if (currentStage != SceneType.SCENE_DRAGON) + { + goto IL_7A; + } + goto IL_71; + } + } + else if (currentStage <= SceneType.SCENE_ENDLESSABYSS) + { + if (currentStage != SceneType.SCENE_GODDESS && currentStage != SceneType.SCENE_ENDLESSABYSS) + { + goto IL_7A; + } + } + else if (currentStage != SceneType.SCENE_GUILD_CAMP) + { + switch (currentStage) + { + case SceneType.SCENE_ACTIVITY_ONE: + case SceneType.SCENE_ACTIVITY_THREE: + break; + case SceneType.SCENE_ACTIVITY_TWO: + goto IL_71; + default: + goto IL_7A; + } + } + this.OnShowWithStarReq(); + goto IL_83; + IL_71: + this.OnShowWithPoint(); + goto IL_83; + IL_7A: + this.OnShowWithNothing(); + IL_83: + this._show_exp_bar = false; + this._time_token = XSingleton.singleton.SetTimer((float)XSingleton.singleton.GetInt("LevelFinishShowExpBarTime") / 10f, new XTimerMgr.ElapsedEventHandler(this.ShowExpTween), null); + this.RefreshPlatformAbilityInfo(this.doc.CurrentStage); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.EnableMainDummy(false, null); + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.OnUIUnloadMainDummy(this.m_snapshot); + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.KillTimer(this._time_token); + XSingleton.singleton.KillTimer(this.m_shareTimeToken); + this.m_shareTimeToken = 0u; + base.OnUnload(); + } + + private void ShowExpTween(object o) + { + this._show_exp_bar = true; + } + + private void OnShowWithStarReq() + { + this.ShowGerenalUI(); + this.ShowStarReq(); + } + + private void OnShowWithPoint() + { + this.ShowGerenalUI(); + this.ShowScore(); + } + + private void OnShowWithNothing() + { + this.ShowGerenalUI(); + } + + private void OnReturnClicked(IXUISprite sp) + { + this.doc.SendLeaveScene(); + } + + private void ShowStarReq() + { + int num = 0; + for (int i = 0; i < XLevelRewardDocument.Table.Table.Length; i++) + { + bool flag = XLevelRewardDocument.Table.Table[i].scendid == this.doc.CurrentScene; + if (flag) + { + num = i; + break; + } + } + this.m_level_req[0].SetVisible(true); + this.m_level_req[1].SetVisible(true); + this.m_level_req[2].SetVisible(true); + this.m_level_req[1].SetText(LevelRewardGerenalHandler.GetReqText(XLevelRewardDocument.Table.Table[num], 1)); + this.m_level_req[2].SetText(LevelRewardGerenalHandler.GetReqText(XLevelRewardDocument.Table.Table[num], 2)); + int num2 = 0; + while (num2 < this.doc.GerenalBattleData.Stars.Count && num2 < 3) + { + bool flag2 = this.doc.GerenalBattleData.Stars[num2] == 1u; + if (flag2) + { + this.m_level_req_done[num2].SetVisible(true); + } + else + { + this.m_level_req_done[num2].SetVisible(false); + } + num2++; + } + } + + public static string GetReqText(StageRankTable.RowData rowData, int index) + { + uint num = (index == 1) ? rowData.star2[0] : rowData.star3[0]; + uint key = (index == 1) ? rowData.star2[1] : rowData.star3[1]; + uint num2 = (index == 1) ? rowData.star2[2] : rowData.star3[2]; + string result; + switch (num) + { + case 1u: + { + bool flag = num2 == 0u; + if (flag) + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_NO_TIME_LIMIT"); + } + else + { + bool flag2 = num2 % 60u == 0u; + string text; + if (flag2) + { + text = string.Format("{0}{1}", num2 / 60u, XStringDefineProxy.GetString("MINUTE_DUARATION")); + } + else + { + text = string.Format("{0}{1}{2}{3}", new object[] + { + num2 / 60u, + XStringDefineProxy.GetString("MINUTE_TIME"), + num2 % 60u, + XStringDefineProxy.GetString("SECOND_DUARATION") + }); + } + result = XStringDefineProxy.GetString("LEVEL_FINISH_TIME_LIMIT", new object[] + { + text + }); + } + break; + } + case 2u: + { + bool flag3 = num2 == 0u; + if (flag3) + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_NO_HP_LIMIT"); + } + else + { + result = string.Format("{0}{1}%", XStringDefineProxy.GetString("LEVEL_FINISH_HP_LIMIT"), num2); + } + break; + } + case 3u: + { + bool flag4 = num2 == 0u; + if (flag4) + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_NO_FOUND"); + } + else + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_FOUND_LIMIT", new object[] + { + num2 + }); + } + break; + } + case 4u: + { + bool flag5 = num2 == 0u; + if (flag5) + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_NO_BEHIT"); + } + else + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_BEHIT_LIMIT", new object[] + { + num2 + }); + } + break; + } + case 5u: + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(key); + bool flag6 = byID == null; + if (flag6) + { + result = string.Empty; + } + else + { + bool flag7 = num2 == 100u; + if (flag7) + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_NPC_NO_HURT", new object[] + { + byID.Name + }); + } + else + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_NPC_HURT_LIMIT", new object[] + { + byID.Name, + num2 + }); + } + } + break; + } + case 6u: + { + bool flag8 = num2 == 0u; + if (flag8) + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_NO_COMBO"); + } + else + { + result = XStringDefineProxy.GetString("LEVEL_FINISH_COMBO_LIMIT", new object[] + { + num2 + }); + } + break; + } + case 7u: + result = XStringDefineProxy.GetString("LEVEL_FINISH_POINT", new object[] + { + num2 + }); + break; + case 8u: + result = XStringDefineProxy.GetString("LEVEL_FINISH_SURVIVE", new object[] + { + num2 + }); + break; + case 9u: + result = XStringDefineProxy.GetString("LEVEL_FINISH_TEAM", new object[] + { + num2 + }); + break; + default: + result = string.Empty; + break; + } + return result; + } + + private void ShowScore() + { + this.m_score.SetVisible(true); + this.m_score.SetText(XStringDefineProxy.GetString("LEVEL_FINISH_SCORE", new object[] + { + this.doc.GerenalBattleData.Score + })); + } + + private void ShowGerenalUI() + { + uint rank = this.doc.GerenalBattleData.Rank; + for (int i = 0; i < 3; i++) + { + bool flag = (long)i < (long)((ulong)rank); + if (flag) + { + this.m_stars[i].gameObject.SetActive(true); + this.m_star_tween.SetTweenGroup(i + 1); + this.m_star_tween.PlayTween(true, -1f); + this.m_star_fx[i].gameObject.SetActive((long)i == (long)((ulong)(rank - 1u))); + } + else + { + this.m_stars[i].gameObject.SetActive(false); + this.m_star_fx[i].gameObject.SetActive(false); + } + } + this.m_star_frame.localPosition -= new Vector3(this.m_stars[0].localPosition.x * (3u - rank) / 2f, 0f); + for (int j = 0; j < 3; j++) + { + this.m_level_req[j].SetVisible(false); + this.m_level_req_done[j].SetVisible(false); + } + this.m_left_time.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("LEVEL_FINISH_TIME"), XSingleton.singleton.TimeFormatString((int)this.doc.GerenalBattleData.LevelFinishTime, 2, 3, 4, false, true))); + this.m_score.SetVisible(false); + this.m_exp_bar_level.SetText(string.Format("Lv.{0}", this.doc.GerenalBattleData.StartLevel)); + this.m_exp_bar.Value = this.doc.GerenalBattleData.StartPercent; + this.m_exp_bar_percent.SetText(""); + bool flag2 = this.doc.GerenalBattleData.GuildBuff != 0f; + if (flag2) + { + this.m_guild_exp_buff.SetText(XStringDefineProxy.GetString("LEVEL_FINISH_GUILD_BUFF", new object[] + { + this.doc.GerenalBattleData.GuildBuff.ToString("0") + })); + } + else + { + this.m_guild_exp_buff.SetText(""); + } + int num = (this.doc.GerenalBattleData.GuildDragonCoin == 0u) ? 0 : 1; + this.m_item_pool.ReturnAll(false); + float num2 = this.m_item_pool.TplPos.x; + for (int k = 0; k < this.doc.GerenalBattleData.Items.Count; k++) + { + GameObject gameObject = this.m_item_pool.FetchGameObject(true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Guild").GetComponent("XUILabel") as IXUILabel; + XItemDrawerMgr.Param.bBinding = this.doc.Items[k].isbind; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)this.doc.Items[k].itemID, (int)this.doc.Items[k].itemCount, false); + gameObject.transform.localPosition = new Vector3(num2, this.m_item_pool.TplPos.y); + num2 += (float)this.m_item_pool.TplWidth; + ixuisprite.ID = (ulong)this.doc.Items[k].itemID; + bool isbind = this.doc.Items[k].isbind; + if (isbind) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + ixuilabel.SetVisible(false); + ixuilabel2.SetVisible(false); + } + bool flag3 = num != 0; + if (flag3) + { + GameObject gameObject2 = this.m_item_pool.FetchGameObject(false); + IXUISprite ixuisprite2 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel3 = gameObject2.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject2.transform.Find("Guild").GetComponent("XUILabel") as IXUILabel; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN), (int)this.doc.GerenalBattleData.GuildDragonCoin, false); + gameObject2.transform.localPosition = new Vector3(num2, this.m_item_pool.TplPos.y); + num2 += (float)this.m_item_pool.TplWidth; + ixuisprite2.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN)); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + ixuilabel3.SetVisible(false); + ixuilabel4.SetVisible(true); + } + bool flag4 = XSpectateSceneDocument.WhetherWathchNumShow((int)this.doc.WatchCount, (int)this.doc.LikeCount, (int)this.doc.CurrentStage); + if (flag4) + { + this.m_watch.SetVisible(true); + this.m_like.SetVisible(true); + this.m_watch.SetText(this.doc.WatchCount.ToString()); + this.m_like.SetText(this.doc.LikeCount.ToString()); + } + else + { + this.m_watch.SetVisible(false); + this.m_like.SetVisible(false); + } + string text = ""; + bool flag5 = this.doc.GerenalBattleData.GuildExp > 0u; + if (flag5) + { + text = string.Format("{0}{1}\n", text, XStringDefineProxy.GetString("LEVEL_FINISH_GUILD_EXP", new object[] + { + this.doc.GerenalBattleData.GuildExp + })); + } + bool flag6 = this.doc.GerenalBattleData.GuildContribution > 0u; + if (flag6) + { + text = string.Format("{0}{1}", text, XStringDefineProxy.GetString("LEVEL_FINISH_GUILD_ITEM", new object[] + { + this.doc.GerenalBattleData.GuildContribution + })); + } + bool flag7 = string.IsNullOrEmpty(text); + if (flag7) + { + this.m_guild_exp.SetVisible(false); + } + else + { + this.m_guild_exp.SetVisible(true); + this.m_guild_exp.SetText(text); + } + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this.doc.CurrentScene); + bool canDrawBox = sceneData.CanDrawBox; + if (canDrawBox) + { + this.m_return_label.SetText(XStringDefineProxy.GetString("LEVEL_FINISH_ENTER_CHEST")); + this.m_return.RegisterSpriteClickEventHandler(null); + XSingleton.singleton.SetTimer((float)XSingleton.singleton.GetInt("LevelFinishSelectChestWaitTime"), new XTimerMgr.ElapsedEventHandler(this.ShowSelectChestFrame), null); + } + else + { + this.m_return_label.SetText(XStringDefineProxy.GetString("LEVEL_FINISH_LEAVE_SCENE")); + this.m_return.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturnClicked)); + this.m_shareTimeToken = XSingleton.singleton.SetTimer(4.3f, new XTimerMgr.ElapsedEventHandler(this.TryToShowShareView), null); + } + bool flag8 = this.doc.GerenalBattleData.GoldGroupReward == null; + if (flag8) + { + this.m_goldGroupReward.SetActive(false); + } + else + { + this.m_goldGroupReward.SetActive(true); + IXUISprite ixuisprite3 = this.m_goldGroupReward.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel5 = this.m_goldGroupReward.transform.Find("Count").GetComponent("XUILabel") as IXUILabel; + ixuisprite3.SetSprite(XBagDocument.GetItemSmallIcon((int)this.doc.GerenalBattleData.GoldGroupReward.itemID, 0u)); + ixuilabel5.SetText(this.doc.GerenalBattleData.GoldGroupReward.itemCount.ToString()); + } + this.m_item_list.gameObject.SetActive(!this.doc.GerenalBattleData.isHelper && !this.doc.GerenalBattleData.noneReward); + this.m_help_tip.gameObject.SetActive(this.doc.GerenalBattleData.isHelper); + this.m_noneReward_tip.gameObject.SetActive(!this.doc.GerenalBattleData.isHelper && this.doc.GerenalBattleData.noneReward); + this.m_exp_bar.SetVisible(!this.doc.GerenalBattleData.isSeal); + this.m_seal_tip.gameObject.SetActive(this.doc.GerenalBattleData.isSeal); + XSingleton.singleton.EnableMainDummy(true, this.m_snapshot); + float interval = XSingleton.singleton.SetMainAnimationGetLength(XSingleton.singleton.Player.Present.PresentLib.Disappear); + this.m_show_time_token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.KillDummyTimer), null); + } + + private void TryToShowShareView(object param) + { + XSingleton.singleton.KillTimer(this.m_shareTimeToken); + this.m_shareTimeToken = 0u; + this.doc.ShowFirstPassShareView(); + } + + private void KillDummyTimer(object sender) + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.SetMainAnimation(XSingleton.singleton.Player.Present.PresentLib.AttackIdle); + } + + private void ShowSelectChestFrame(object o) + { + this.doc.ShowSelectChestFrame(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.doc.GerenalBattleData.TotalExpPercent > 0f && this._show_exp_bar; + if (flag) + { + XLevelRewardDocument xlevelRewardDocument = this.doc; + xlevelRewardDocument.GerenalBattleData.TotalExpPercent = xlevelRewardDocument.GerenalBattleData.TotalExpPercent - this.doc.GerenalBattleData.GrowExpPercent; + bool flag2 = this.doc.GerenalBattleData.CurrentExpPercent + this.doc.GerenalBattleData.GrowExpPercent > 1f; + if (flag2) + { + this.doc.GerenalBattleData.CurrentExpPercent = this.doc.GerenalBattleData.CurrentExpPercent + this.doc.GerenalBattleData.GrowExpPercent - 1f; + XLevelRewardDocument xlevelRewardDocument2 = this.doc; + xlevelRewardDocument2.GerenalBattleData.StartLevel = xlevelRewardDocument2.GerenalBattleData.StartLevel + 1u; + } + else + { + this.doc.GerenalBattleData.CurrentExpPercent = this.doc.GerenalBattleData.CurrentExpPercent + this.doc.GerenalBattleData.GrowExpPercent; + } + bool flag3 = this.doc.GerenalBattleData.TotalExpPercent <= 0f; + if (flag3) + { + XLevelUpStatusDocument specificDocument = XDocuments.GetSpecificDocument(XLevelUpStatusDocument.uuID); + specificDocument.LevelRewardShowLevelUp(); + int powerpoint = (int)XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + DlgBase.singleton.SetPowerpoint(powerpoint); + } + this.m_exp_bar.Value = this.doc.GerenalBattleData.CurrentExpPercent; + this.m_exp_bar_level.SetText(string.Format("Lv.{0}", this.doc.GerenalBattleData.StartLevel)); + this._exp_percent = this.doc.GerenalBattleData.TotalExp * Mathf.Min(1f, 1f - this.doc.GerenalBattleData.TotalExpPercent); + this.m_exp_bar_percent.SetText(string.Format("+{0}", this._exp_percent.ToString("0"))); + } + } + + private void RefreshPlatformAbilityInfo(SceneType type) + { + this.RefreshQQVipInfo(type); + this.RefreshQQWXGameCenterInfo(type); + } + + public void RefreshQQVipInfo(SceneType type) + { + bool flag = type != SceneType.SCENE_BATTLE && type != SceneType.SCENE_ABYSSS; + if (flag) + { + this.m_QQVipTip.SetVisible(false); + this.m_QQVipIcon.SetActive(false); + this.m_QQSVipIcon.SetActive(false); + } + else + { + QQVipInfoClient qqvipInfo = XPlatformAbilityDocument.Doc.QQVipInfo; + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP) && qqvipInfo != null; + if (flag2) + { + this.m_QQVipTip.SetVisible(qqvipInfo.is_svip || qqvipInfo.is_vip); + SeqList seqList = qqvipInfo.is_svip ? XSingleton.singleton.GetSequenceList("QQSVipLevelReward", true) : XSingleton.singleton.GetSequenceList("QQVipLevelReward", true); + bool flag3 = seqList.Count > 0; + if (flag3) + { + int itemID = seqList[0, 0]; + int num = seqList[0, 1]; + string @string = XStringDefineProxy.GetString(qqvipInfo.is_svip ? "QQVIP_GAMEEND_SVIP_TIP" : "QQVIP_GAMEEND_VIP_TIP", new object[] + { + num, + XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(itemID).ItemName, 0u) + }); + this.m_QQVipTip.SetText(@string); + } + this.m_QQVipIcon.SetActive(qqvipInfo.is_vip && !qqvipInfo.is_svip); + this.m_QQSVipIcon.SetActive(qqvipInfo.is_svip); + } + else + { + this.m_QQVipTip.SetVisible(false); + this.m_QQVipIcon.SetActive(false); + this.m_QQSVipIcon.SetActive(false); + } + } + } + + private void RefreshQQWXGameCenterInfo(SceneType type) + { + bool flag = type != SceneType.SCENE_BATTLE; + if (flag) + { + this.m_QQGameCenter.SetActive(false); + this.m_WXGameCenter.SetActive(false); + } + else + { + StartUpType launchTypeServerInfo = XSingleton.singleton.GetLaunchTypeServerInfo(); + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege) && launchTypeServerInfo == StartUpType.StartUp_QQ; + if (flag2) + { + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("QQGameCenterLevelReward", XGlobalConfig.SequenceSeparator); + IXUILabel ixuilabel = this.m_QQGameCenter.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + bool flag3 = andSeparateValue.Length == 2; + if (flag3) + { + ixuilabel.SetText(XStringDefineProxy.GetString("GAMECENTER_GAME_END_QQ", new object[] + { + XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(int.Parse(andSeparateValue[0])).ItemName, 0u), + andSeparateValue[1] + })); + } + this.m_QQGameCenter.SetActive(true); + } + else + { + this.m_QQGameCenter.SetActive(false); + } + bool flag4 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege) && launchTypeServerInfo == StartUpType.StartUp_WX; + if (flag4) + { + string[] andSeparateValue2 = XSingleton.singleton.GetAndSeparateValue("WXGameCenterLevelReward", XGlobalConfig.SequenceSeparator); + IXUILabel ixuilabel2 = this.m_WXGameCenter.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + bool flag5 = andSeparateValue2.Length == 2; + if (flag5) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("GAMECENTER_GAME_END_WX", new object[] + { + XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(int.Parse(andSeparateValue2[0])).ItemName, 0u), + andSeparateValue2[1] + })); + } + this.m_WXGameCenter.SetActive(true); + } + else + { + this.m_WXGameCenter.SetActive(false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardGerenalHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardGerenalHandler.cs.meta new file mode 100644 index 00000000..4842014d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardGerenalHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6adc97bcd23ba1343a22df93a352d376 +timeCreated: 1611403889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardHeroBattleHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardHeroBattleHandler.cs new file mode 100644 index 00000000..3c78c014 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardHeroBattleHandler.cs @@ -0,0 +1,453 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardHeroBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardHeroBattleHandler"; + } + } + + private XLevelRewardDocument _doc = null; + + private XHeroBattleDocument _heroDoc = null; + + private XUIPool m_PlayerPool_L = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_PlayerPool_R = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_IconPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_BattleDataPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private GameObject m_Win; + + private GameObject m_Lose; + + private GameObject m_Draw; + + private IXUIButton m_BackBtn; + + private IXUIButton m_BattleDataBtn; + + private IXUIButton m_BattleDataCloseBtn; + + private IXUILabel m_Time; + + private IXUIButton m_ShareBtn; + + public GameObject m_PVPDataFrame; + + private float m_leaveTime; + + private int _killMax; + + private int _DeathMin; + + private int _AssistsMax; + + private ulong _DamageMax; + + private uint _BeHitMax; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this._heroDoc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this.m_Win = base.PanelObject.transform.Find("Bg/Result/win").gameObject; + this.m_Lose = base.PanelObject.transform.Find("Bg/Result/lose").gameObject; + this.m_Draw = base.PanelObject.transform.Find("Bg/Result/draw").gameObject; + this.m_Time = (base.PanelObject.transform.Find("Bg/Board/Time").GetComponent("XUILabel") as IXUILabel); + this.m_BackBtn = (base.PanelObject.transform.Find("Bg/button/Continue").GetComponent("XUIButton") as IXUIButton); + this.m_ShareBtn = (base.PanelObject.transform.Find("Bg/button/ShareBtn").GetComponent("XUIButton") as IXUIButton); + this.m_BattleDataBtn = (base.PanelObject.transform.Find("Bg/button/BattleData").GetComponent("XUIButton") as IXUIButton); + this.m_BattleDataCloseBtn = (base.PanelObject.transform.Find("Bg/PVPDataFrame/Close").GetComponent("XUIButton") as IXUIButton); + this.m_PVPDataFrame = base.PanelObject.transform.Find("Bg/PVPDataFrame").gameObject; + Transform transform = this.m_PVPDataFrame.transform.Find("Panel/MemberTpl"); + this.m_BattleDataPool.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + Transform transform2 = base.PanelObject.transform.Find("Bg/Board/team1/Panel/MiniIconTpl"); + this.m_IconPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 15u, false); + transform2 = base.PanelObject.transform.Find("Bg/Board/team1/Panel/PlayerTpl"); + this.m_PlayerPool_L.SetupPool(transform2.parent.gameObject, transform2.gameObject, 8u, false); + transform2 = base.PanelObject.transform.Find("Bg/Board/team2/Panel/PlayerTpl"); + this.m_PlayerPool_R.SetupPool(transform2.parent.gameObject, transform2.gameObject, 8u, false); + transform2 = base.PanelObject.transform.Find("Bg/button/Reward/ItemTpl"); + this.m_ItemPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 24u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BackBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBackBtnClick)); + this.m_BattleDataBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleDataBtnClick)); + this.m_BattleDataCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleDataCloseBtnClick)); + this.m_ShareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareBtnClick)); + } + + private bool OnBackBtnClick(IXUIButton btn) + { + bool flag = Time.time - this.m_leaveTime < 5f; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_leaveTime = Time.time; + XSingleton.singleton.ReqLeaveScene(); + result = true; + } + return result; + } + + private bool OnBattleDataBtnClick(IXUIButton btn) + { + this.m_PVPDataFrame.SetActive(true); + return true; + } + + private bool OnBattleDataCloseBtnClick(IXUIButton btn) + { + this.m_PVPDataFrame.SetActive(false); + return true; + } + + private bool OnShareBtnClick(IXUIButton btn) + { + XSingleton.singleton.shareCallbackType = ShareCallBackType.WeekShare; + XSingleton.singleton.StartExternalScreenShotView(null); + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.ShowGlory); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void PlayCutScene() + { + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this._heroDoc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this._heroDoc.StartMvpCutScene(); + } + + public void ShowUI() + { + DlgBase.singleton.SetVisible(true, true); + base.SetVisible(true); + this.SetupBattleDataUI(); + this.m_Win.SetActive(false); + this.m_Lose.SetActive(false); + this.m_Draw.SetActive(false); + switch (this._doc.HeroData.Result) + { + case HeroBattleOver.HeroBattleOver_Win: + this.m_Win.SetActive(true); + break; + case HeroBattleOver.HeroBattleOver_Lose: + this.m_Lose.SetActive(true); + break; + case HeroBattleOver.HeroBattleOver_Draw: + this.m_Draw.SetActive(true); + break; + } + this.m_PlayerPool_L.ReturnAll(false); + this.m_PlayerPool_R.ReturnAll(false); + this.m_IconPool.ReturnAll(false); + this._killMax = this._doc.HeroData.KillMax; + this._DeathMin = this._doc.HeroData.DeathMin; + this._AssistsMax = this._doc.HeroData.AssitMax; + this._DamageMax = this._doc.HeroData.DamageMax; + this._BeHitMax = this._doc.HeroData.BeHitMax; + this.m_Time.SetText(XSingleton.singleton.TimeFormatString(this._doc.LevelFinishTime, 2, 3, 4, false, true)); + for (int i = 0; i < this._doc.HeroData.Team1Data.Count; i++) + { + this.SetupData(this.m_PlayerPool_L.FetchGameObject(false), this._doc.HeroData.Team1Data[i], i, true); + } + for (int j = 0; j < this._doc.HeroData.Team2Data.Count; j++) + { + this.SetupData(this.m_PlayerPool_R.FetchGameObject(false), this._doc.HeroData.Team2Data[j], j, false); + } + this.m_ItemPool.ReturnAll(false); + int num = this._doc.HeroData.DayJoinReward.Count + this._doc.HeroData.WinReward.Count; + Vector3 vector = this.m_ItemPool.TplPos; + for (int k = 0; k < this._doc.HeroData.DayJoinReward.Count; k++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Day").GetComponent("XUILabel") as IXUILabel; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)this._doc.HeroData.DayJoinReward[k].itemID, (int)this._doc.HeroData.DayJoinReward[k].itemCount, false); + ixuilabel.Alpha = 1f; + gameObject.transform.localPosition = vector; + vector += new Vector3((float)this.m_ItemPool.TplWidth, 0f); + } + for (int l = 0; l < this._doc.HeroData.WinReward.Count; l++) + { + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + IXUILabel ixuilabel2 = gameObject2.transform.Find("Day").GetComponent("XUILabel") as IXUILabel; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)this._doc.HeroData.WinReward[l].itemID, (int)this._doc.HeroData.WinReward[l].itemCount, false); + ixuilabel2.Alpha = 0f; + gameObject2.transform.localPosition = vector; + vector += new Vector3((float)this.m_ItemPool.TplWidth, 0f); + } + } + + private void SetupData(GameObject go, XLevelRewardDocument.PVPRoleInfo data, int index, bool isLeft) + { + Vector3 tplPos = this.m_PlayerPool_L.TplPos; + go.transform.localScale = Vector3.one; + go.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(index * this.m_PlayerPool_L.TplHeight)); + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + GameObject gameObject = go.transform.Find("me").gameObject; + gameObject.SetActive(data.uID == XSingleton.singleton.XPlayerData.RoleID); + } + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data.Name); + IXUISprite ixuisprite = go.transform.Find("Military").GetComponent("XUISprite") as IXUISprite; + XMilitaryRankDocument specificDocument = XDocuments.GetSpecificDocument(XMilitaryRankDocument.uuID); + ixuisprite.spriteName = XMilitaryRankDocument.GetMilitaryIcon(data.militaryRank); + IXUILabel ixuilabel2 = go.transform.Find("kill").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(data.KillCount.ToString()); + bool flag2 = data.KillCount == this._killMax; + if (flag2) + { + ixuilabel2.SetColor(new Color32(byte.MaxValue, 145, 69, byte.MaxValue)); + } + IXUILabel ixuilabel3 = go.transform.Find("dead").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(data.DeathCount.ToString()); + bool flag3 = (ulong)data.DeathCount == (ulong)((long)this._DeathMin); + if (flag3) + { + ixuilabel3.SetColor(new Color32(byte.MaxValue, 145, 69, byte.MaxValue)); + } + IXUILabel ixuilabel4 = go.transform.Find("assists").GetComponent("XUILabel") as IXUILabel; + ixuilabel4.SetText(data.AssitCount.ToString()); + bool flag4 = (ulong)data.AssitCount == (ulong)((long)this._AssistsMax); + if (flag4) + { + ixuilabel4.SetColor(new Color32(byte.MaxValue, 145, 69, byte.MaxValue)); + } + Transform ts = go.transform.Find("Frame"); + this.SetupIconList(ts, data, isLeft); + IXUISprite ixuisprite2 = go.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject2 = go.transform.Find("UnSelect").gameObject; + uint num = 0u; + this._heroDoc.heroIDIndex.TryGetValue(data.uID, out num); + bool flag5 = num == 0u; + if (flag5) + { + ixuisprite2.SetVisible(false); + gameObject2.SetActive(true); + } + else + { + ixuisprite2.SetVisible(true); + gameObject2.SetActive(false); + string strAtlas; + string strSprite; + XHeroBattleDocument.GetIconByHeroID(num, out strAtlas, out strSprite); + ixuisprite2.SetSprite(strSprite, strAtlas, false); + } + IXUILabel ixuilabel5 = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetText(data.Level.ToString()); + GameObject gameObject3 = go.transform.Find("MVP").gameObject; + gameObject3.SetActive(data.IsMvp); + IXUILabel ixuilabel6 = go.transform.Find("Score").GetComponent("XUILabel") as IXUILabel; + ixuilabel6.SetText(data.Kda.ToString("0.0")); + bool isMvp = data.IsMvp; + if (isMvp) + { + ixuilabel6.gameObject.transform.localPosition = new Vector3((float)(isLeft ? -240 : 240), -18f); + } + else + { + ixuilabel6.gameObject.transform.localPosition = new Vector3((float)(isLeft ? -240 : 240), 4f); + } + IXUISprite ixuisprite3 = go.transform.Find("Report").GetComponent("XUISprite") as IXUISprite; + bool flag6 = data.uID == XSingleton.singleton.XPlayerData.RoleID; + if (flag6) + { + ixuisprite3.SetVisible(false); + } + else + { + ixuisprite3.SetVisible(true); + ixuisprite3.ID = (ulong)((long)(index * 2 + (isLeft ? 1 : 0))); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReportBtnClick)); + } + } + + private void OnReportBtnClick(IXUISprite iSp) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = iSp.ID % 2UL == 1UL; + int num = (int)iSp.ID / 2; + bool flag3 = flag2; + if (flag3) + { + bool flag4 = num < this._doc.HeroData.Team1Data.Count; + if (flag4) + { + DlgBase.singleton.ShowReport(this._doc.HeroData.Team1Data[num].uID, this._doc.HeroData.Team1Data[num].Name, iSp); + } + } + else + { + bool flag5 = num < this._doc.HeroData.Team2Data.Count; + if (flag5) + { + DlgBase.singleton.ShowReport(this._doc.HeroData.Team2Data[num].uID, this._doc.HeroData.Team2Data[num].Name, iSp); + } + } + } + } + + private void SetupIconList(Transform ts, XLevelRewardDocument.PVPRoleInfo data, bool isLeft) + { + int num = 0; + bool flag = data.MaxKillCount > 2; + if (flag) + { + int maxKillCount = data.MaxKillCount; + string iconName; + if (maxKillCount != 3) + { + if (maxKillCount != 4) + { + iconName = "ic_pf5"; + } + else + { + iconName = "ic_pf4"; + } + } + else + { + iconName = "ic_pf3"; + } + this.AddIcon(ts, iconName, num, isLeft); + num++; + } + bool flag2 = data.KillCount == this._killMax; + if (flag2) + { + string iconName = "ic_pf1"; + this.AddIcon(ts, iconName, num, isLeft); + num++; + } + bool flag3 = (ulong)data.AssitCount == (ulong)((long)this._AssistsMax); + if (flag3) + { + string iconName = "ic_pf6"; + this.AddIcon(ts, iconName, num, isLeft); + num++; + } + bool flag4 = data.BeHit == this._BeHitMax; + if (flag4) + { + string iconName = "ic_pf2"; + this.AddIcon(ts, iconName, num, isLeft); + num++; + } + bool flag5 = data.Damage == this._DamageMax; + if (flag5) + { + string iconName = "ic_pf0"; + this.AddIcon(ts, iconName, num, isLeft); + num++; + } + } + + private void AddIcon(Transform ts, string iconName, int index, bool isLeft) + { + GameObject gameObject = this.m_IconPool.FetchGameObject(false); + gameObject.transform.parent = ts; + int num = isLeft ? 1 : -1; + gameObject.transform.localPosition = new Vector3((float)(index * num * this.m_IconPool.TplWidth), 0f); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = iconName; + } + + private void SetupBattleDataUI() + { + this.m_PVPDataFrame.SetActive(false); + IXUILabel ixuilabel = this.m_PVPDataFrame.gameObject.transform.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("LEVEL_FINISH_TIME"), XSingleton.singleton.TimeFormatString(this._doc.LevelFinishTime, 2, 3, 4, false, true))); + this.m_BattleDataPool.ReturnAll(false); + Vector3 vector = this.m_BattleDataPool.TplPos; + for (int i = 0; i < this._doc.HeroData.Team1Data.Count; i++) + { + GameObject gameObject = this.m_BattleDataPool.FetchGameObject(false); + this.SetupBattleDataDetailUI(gameObject, this._doc.HeroData.Team1Data[i], true); + gameObject.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_BattleDataPool.TplHeight)); + } + for (int j = 0; j < this._doc.HeroData.Team2Data.Count; j++) + { + GameObject gameObject2 = this.m_BattleDataPool.FetchGameObject(false); + this.SetupBattleDataDetailUI(gameObject2, this._doc.HeroData.Team2Data[j], false); + gameObject2.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_BattleDataPool.TplHeight)); + } + } + + private void SetupBattleDataDetailUI(GameObject go, XLevelRewardDocument.PVPRoleInfo data, bool isteam1) + { + IXUISprite ixuisprite = go.transform.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = go.transform.Find("Detail/UnSelect").gameObject; + IXUILabel ixuilabel = go.transform.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + Transform transform = go.transform.Find("Detail/Team1"); + Transform transform2 = go.transform.Find("Detail/Team2"); + GameObject gameObject2 = go.transform.Find("Detail/Leader").gameObject; + IXUILabel ixuilabel2 = go.transform.Find("KillTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("MaxKill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("DeathCount").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("DamageTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = go.transform.Find("HealTotal").GetComponent("XUILabel") as IXUILabel; + uint num = 0u; + this._heroDoc.heroIDIndex.TryGetValue(data.uID, out num); + bool flag = num == 0u; + if (flag) + { + ixuisprite.SetVisible(false); + gameObject.SetActive(true); + } + else + { + ixuisprite.SetVisible(true); + gameObject.SetActive(false); + string strAtlas; + string strSprite; + XHeroBattleDocument.GetIconByHeroID(num, out strAtlas, out strSprite); + ixuisprite.SetSprite(strSprite, strAtlas, false); + } + ixuilabel.SetText(data.Name); + transform.gameObject.SetActive(isteam1); + transform2.gameObject.SetActive(!isteam1); + gameObject2.SetActive(data.uID == this._doc.HeroData.MvpData.uID); + ixuilabel2.SetText(data.KillCount.ToString()); + ixuilabel3.SetText(data.MaxKillCount.ToString()); + ixuilabel4.SetText(data.DeathCount.ToString()); + ixuilabel5.SetText(XSingleton.singleton.NumberFormat(data.Damage)); + ixuilabel6.SetText(XSingleton.singleton.NumberFormat(data.Heal)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardHeroBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardHeroBattleHandler.cs.meta new file mode 100644 index 00000000..a658b400 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardHeroBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a55a8cc2e6d4234998a52333961cba9 +timeCreated: 1611403495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardMobaBattleHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardMobaBattleHandler.cs new file mode 100644 index 00000000..d12ff81d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardMobaBattleHandler.cs @@ -0,0 +1,409 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardMobaBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardMobaBattleHandler"; + } + } + + private XLevelRewardDocument _doc = null; + + private XMobaBattleDocument _mobaDoc = null; + + private XUIPool m_PlayerPool_L = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_PlayerPool_R = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_IconPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_BattleDataPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private GameObject m_Win; + + private GameObject m_Lose; + + private GameObject m_Draw; + + private IXUIButton m_BackBtn; + + private IXUIButton m_BattleDataBtn; + + private IXUIButton m_BattleDataCloseBtn; + + private IXUILabel m_Time; + + private IXUIButton m_ShareBtn; + + public GameObject m_PVPDataFrame; + + private float m_leaveTime; + + private int _killMax; + + private int _DeathMin; + + private int _AssistsMax; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this._mobaDoc = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + this.m_Win = base.PanelObject.transform.Find("Bg/Result/win").gameObject; + this.m_Lose = base.PanelObject.transform.Find("Bg/Result/lose").gameObject; + this.m_Draw = base.PanelObject.transform.Find("Bg/Result/draw").gameObject; + this.m_Time = (base.PanelObject.transform.Find("Bg/Board/Time").GetComponent("XUILabel") as IXUILabel); + this.m_BackBtn = (base.PanelObject.transform.Find("Bg/button/Continue").GetComponent("XUIButton") as IXUIButton); + this.m_ShareBtn = (base.PanelObject.transform.Find("Bg/button/ShareBtn").GetComponent("XUIButton") as IXUIButton); + this.m_BattleDataBtn = (base.PanelObject.transform.Find("Bg/button/BattleData").GetComponent("XUIButton") as IXUIButton); + this.m_BattleDataCloseBtn = (base.PanelObject.transform.Find("Bg/PVPDataFrame/Close").GetComponent("XUIButton") as IXUIButton); + this.m_PVPDataFrame = base.PanelObject.transform.Find("Bg/PVPDataFrame").gameObject; + Transform transform = this.m_PVPDataFrame.transform.Find("Panel/MemberTpl"); + this.m_BattleDataPool.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + Transform transform2 = base.PanelObject.transform.Find("Bg/Board/team1/Panel/MiniIconTpl"); + this.m_IconPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 15u, false); + transform2 = base.PanelObject.transform.Find("Bg/Board/team1/Panel/PlayerTpl"); + this.m_PlayerPool_L.SetupPool(transform2.parent.gameObject, transform2.gameObject, 8u, false); + transform2 = base.PanelObject.transform.Find("Bg/Board/team2/Panel/PlayerTpl"); + this.m_PlayerPool_R.SetupPool(transform2.parent.gameObject, transform2.gameObject, 8u, false); + transform2 = base.PanelObject.transform.Find("Bg/button/Reward/ItemTpl"); + this.m_ItemPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 24u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BackBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBackBtnClick)); + this.m_BattleDataBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleDataBtnClick)); + this.m_BattleDataCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleDataCloseBtnClick)); + this.m_ShareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareBtnClick)); + } + + private bool OnBackBtnClick(IXUIButton btn) + { + bool flag = Time.time - this.m_leaveTime < 5f; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_leaveTime = Time.time; + XSingleton.singleton.ReqLeaveScene(); + result = true; + } + return result; + } + + private bool OnBattleDataBtnClick(IXUIButton btn) + { + this.m_PVPDataFrame.SetActive(true); + return true; + } + + private bool OnBattleDataCloseBtnClick(IXUIButton btn) + { + this.m_PVPDataFrame.SetActive(false); + return true; + } + + private bool OnShareBtnClick(IXUIButton btn) + { + XSingleton.singleton.shareCallbackType = ShareCallBackType.WeekShare; + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.ShowGlory); + XSingleton.singleton.StartExternalScreenShotView(null); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void PlayCutScene() + { + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this._mobaDoc = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + bool flag = this._doc.MobaData.Result == HeroBattleOver.HeroBattleOver_Win; + bool blueWin; + if (flag) + { + blueWin = (this._mobaDoc.MyData.teamID == 11u); + } + else + { + blueWin = (this._mobaDoc.MyData.teamID == 12u); + } + this._mobaDoc.StartMvpCutScene(blueWin); + } + + public void ShowUI() + { + DlgBase.singleton.SetVisible(true, true); + base.SetVisible(true); + this.SetupBattleDataUI(); + this.m_Win.SetActive(false); + this.m_Lose.SetActive(false); + this.m_Draw.SetActive(false); + switch (this._doc.MobaData.Result) + { + case HeroBattleOver.HeroBattleOver_Win: + this.m_Win.SetActive(true); + break; + case HeroBattleOver.HeroBattleOver_Lose: + this.m_Lose.SetActive(true); + break; + case HeroBattleOver.HeroBattleOver_Draw: + this.m_Draw.SetActive(true); + break; + } + this.m_PlayerPool_L.ReturnAll(false); + this.m_PlayerPool_R.ReturnAll(false); + this.m_IconPool.ReturnAll(false); + this._killMax = this._doc.MobaData.KillMax; + this._DeathMin = this._doc.MobaData.DeathMin; + this._AssistsMax = this._doc.MobaData.AssitMax; + this.m_Time.SetText(XSingleton.singleton.TimeFormatString(this._doc.LevelFinishTime, 2, 3, 4, false, true)); + for (int i = 0; i < this._doc.MobaData.Team1Data.Count; i++) + { + this.SetupData(this.m_PlayerPool_L.FetchGameObject(false), this._doc.MobaData.Team1Data[i], i, true); + } + for (int j = 0; j < this._doc.MobaData.Team2Data.Count; j++) + { + this.SetupData(this.m_PlayerPool_R.FetchGameObject(false), this._doc.MobaData.Team2Data[j], j, false); + } + this.m_ItemPool.ReturnAll(false); + int num = this._doc.MobaData.DayJoinReward.Count + this._doc.MobaData.WinReward.Count; + Vector3 vector = this.m_ItemPool.TplPos; + for (int k = 0; k < this._doc.MobaData.DayJoinReward.Count; k++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Day").GetComponent("XUILabel") as IXUILabel; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)this._doc.MobaData.DayJoinReward[k].itemID, (int)this._doc.MobaData.DayJoinReward[k].itemCount, false); + ixuilabel.Alpha = 1f; + gameObject.transform.localPosition = vector; + vector += new Vector3((float)this.m_ItemPool.TplWidth, 0f); + } + for (int l = 0; l < this._doc.MobaData.WinReward.Count; l++) + { + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + IXUILabel ixuilabel2 = gameObject2.transform.Find("Day").GetComponent("XUILabel") as IXUILabel; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)this._doc.MobaData.WinReward[l].itemID, (int)this._doc.MobaData.WinReward[l].itemCount, false); + ixuilabel2.Alpha = 0f; + gameObject2.transform.localPosition = vector; + vector += new Vector3((float)this.m_ItemPool.TplWidth, 0f); + } + } + + private void SetupData(GameObject go, XLevelRewardDocument.PVPRoleInfo data, int index, bool isLeft) + { + Vector3 tplPos = this.m_PlayerPool_L.TplPos; + go.transform.localScale = Vector3.one; + go.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(index * this.m_PlayerPool_L.TplHeight)); + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + GameObject gameObject = go.transform.Find("me").gameObject; + gameObject.SetActive(data.uID == XSingleton.singleton.XPlayerData.RoleID); + } + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data.Name); + IXUISprite ixuisprite = go.transform.Find("Military").GetComponent("XUISprite") as IXUISprite; + XMilitaryRankDocument specificDocument = XDocuments.GetSpecificDocument(XMilitaryRankDocument.uuID); + ixuisprite.spriteName = XMilitaryRankDocument.GetMilitaryIcon(data.militaryRank); + IXUILabel ixuilabel2 = go.transform.Find("kill").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(data.KillCount.ToString()); + bool flag2 = data.KillCount == this._killMax; + if (flag2) + { + ixuilabel2.SetColor(new Color32(byte.MaxValue, 145, 69, byte.MaxValue)); + } + IXUILabel ixuilabel3 = go.transform.Find("dead").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(data.DeathCount.ToString()); + bool flag3 = (ulong)data.DeathCount == (ulong)((long)this._DeathMin); + if (flag3) + { + ixuilabel3.SetColor(new Color32(byte.MaxValue, 145, 69, byte.MaxValue)); + } + IXUILabel ixuilabel4 = go.transform.Find("assists").GetComponent("XUILabel") as IXUILabel; + ixuilabel4.SetText(data.AssitCount.ToString()); + bool flag4 = (ulong)data.AssitCount == (ulong)((long)this._AssistsMax); + if (flag4) + { + ixuilabel4.SetColor(new Color32(byte.MaxValue, 145, 69, byte.MaxValue)); + } + Transform ts = go.transform.Find("Frame"); + this.SetupIconList(ts, data, isLeft); + IXUISprite ixuisprite2 = go.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject2 = go.transform.Find("UnSelect").gameObject; + uint heroIDByRoleID = this._mobaDoc.GetHeroIDByRoleID(data.uID); + bool flag5 = heroIDByRoleID == 0u; + if (flag5) + { + ixuisprite2.SetVisible(false); + gameObject2.SetActive(true); + } + else + { + ixuisprite2.SetVisible(true); + gameObject2.SetActive(false); + string strAtlas; + string strSprite; + XHeroBattleDocument.GetIconByHeroID(heroIDByRoleID, out strAtlas, out strSprite); + ixuisprite2.SetSprite(strSprite, strAtlas, false); + } + IXUILabel ixuilabel5 = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetText(data.Level.ToString()); + GameObject gameObject3 = go.transform.Find("MVP").gameObject; + gameObject3.SetActive(data.IsMvp); + IXUILabel ixuilabel6 = go.transform.Find("Score").GetComponent("XUILabel") as IXUILabel; + ixuilabel6.SetText(data.Kda.ToString("0.0")); + bool isMvp = data.IsMvp; + if (isMvp) + { + ixuilabel6.gameObject.transform.localPosition = new Vector3((float)(isLeft ? -240 : 240), -18f); + } + else + { + ixuilabel6.gameObject.transform.localPosition = new Vector3((float)(isLeft ? -240 : 240), 4f); + } + IXUISprite ixuisprite3 = go.transform.Find("Report").GetComponent("XUISprite") as IXUISprite; + bool flag6 = data.uID == XSingleton.singleton.XPlayerData.RoleID; + if (flag6) + { + ixuisprite3.SetVisible(false); + } + else + { + ixuisprite3.SetVisible(true); + ixuisprite3.ID = (ulong)((long)(index * 2 + (isLeft ? 1 : 0))); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReportBtnClick)); + } + } + + private void OnReportBtnClick(IXUISprite iSp) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = iSp.ID % 2UL == 1UL; + int num = (int)iSp.ID / 2; + bool flag3 = flag2; + if (flag3) + { + bool flag4 = num < this._doc.MobaData.Team1Data.Count; + if (flag4) + { + DlgBase.singleton.ShowReport(this._doc.MobaData.Team1Data[num].uID, this._doc.MobaData.Team1Data[num].Name, iSp); + } + } + else + { + bool flag5 = num < this._doc.MobaData.Team2Data.Count; + if (flag5) + { + DlgBase.singleton.ShowReport(this._doc.MobaData.Team2Data[num].uID, this._doc.MobaData.Team2Data[num].Name, iSp); + } + } + } + } + + private void SetupIconList(Transform ts, XLevelRewardDocument.PVPRoleInfo data, bool isLeft) + { + List mobaIconList = this._doc.GetMobaIconList(data, this._doc.MobaData.DamageMaxUid, this._doc.MobaData.BeHitMaxUid, this._killMax, this._AssistsMax); + for (int i = 0; i < mobaIconList.Count; i++) + { + this.AddIcon(ts, mobaIconList[i], i, isLeft); + } + } + + private void AddIcon(Transform ts, string iconName, int index, bool isLeft) + { + GameObject gameObject = this.m_IconPool.FetchGameObject(false); + gameObject.transform.parent = ts; + int num = isLeft ? 1 : -1; + gameObject.transform.localPosition = new Vector3((float)(index * num * this.m_IconPool.TplWidth), 0f); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = iconName; + } + + private void SetupBattleDataUI() + { + this.m_PVPDataFrame.SetActive(false); + IXUILabel ixuilabel = this.m_PVPDataFrame.gameObject.transform.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0} {1}", XStringDefineProxy.GetString("LEVEL_FINISH_TIME"), XSingleton.singleton.TimeFormatString(this._doc.LevelFinishTime, 2, 3, 4, false, true))); + this.m_BattleDataPool.ReturnAll(false); + Vector3 vector = this.m_BattleDataPool.TplPos; + for (int i = 0; i < this._doc.MobaData.Team1Data.Count; i++) + { + GameObject gameObject = this.m_BattleDataPool.FetchGameObject(false); + this.SetupBattleDataDetailUI(gameObject, this._doc.MobaData.Team1Data[i], true); + gameObject.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_BattleDataPool.TplHeight)); + } + for (int j = 0; j < this._doc.MobaData.Team2Data.Count; j++) + { + GameObject gameObject2 = this.m_BattleDataPool.FetchGameObject(false); + this.SetupBattleDataDetailUI(gameObject2, this._doc.MobaData.Team2Data[j], false); + gameObject2.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_BattleDataPool.TplHeight)); + } + } + + private void SetupBattleDataDetailUI(GameObject go, XLevelRewardDocument.PVPRoleInfo data, bool isteam1) + { + IXUISprite ixuisprite = go.transform.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = go.transform.Find("Detail/UnSelect").gameObject; + IXUILabel ixuilabel = go.transform.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + Transform transform = go.transform.Find("Detail/Team1"); + Transform transform2 = go.transform.Find("Detail/Team2"); + GameObject gameObject2 = go.transform.Find("Detail/Leader").gameObject; + IXUILabel ixuilabel2 = go.transform.Find("KillTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("MaxKill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("DeathCount").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("DamageTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = go.transform.Find("HealTotal").GetComponent("XUILabel") as IXUILabel; + uint heroIDByRoleID = this._mobaDoc.GetHeroIDByRoleID(data.uID); + bool flag = heroIDByRoleID == 0u; + if (flag) + { + ixuisprite.SetVisible(false); + gameObject.SetActive(true); + } + else + { + ixuisprite.SetVisible(true); + gameObject.SetActive(false); + string strAtlas; + string strSprite; + XHeroBattleDocument.GetIconByHeroID(heroIDByRoleID, out strAtlas, out strSprite); + ixuisprite.SetSprite(strSprite, strAtlas, false); + } + ixuilabel.SetText(data.Name); + transform.gameObject.SetActive(isteam1); + transform2.gameObject.SetActive(!isteam1); + gameObject2.SetActive(data.uID == this._doc.MobaData.MvpData.uID); + ixuilabel2.SetText(data.KillCount.ToString()); + ixuilabel3.SetText(data.MaxKillCount.ToString()); + ixuilabel4.SetText(data.DeathCount.ToString()); + ixuilabel5.SetText(XSingleton.singleton.NumberFormat(data.Damage)); + ixuilabel6.SetText(XSingleton.singleton.NumberFormat(data.Heal)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardMobaBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardMobaBattleHandler.cs.meta new file mode 100644 index 00000000..0fa81d4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardMobaBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59198e9b17b8ed643ba8a3271b7e4e65 +timeCreated: 1611403761 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardPVPHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardPVPHandler.cs new file mode 100644 index 00000000..d021021c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardPVPHandler.cs @@ -0,0 +1,257 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardPVPHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardPVPFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private XUIPool m_item_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_win; + + private Transform m_lose; + + private Transform m_draw; + + private IXUIButton m_battle_data_button; + + private IXUIButton m_return_button; + + private IXUILabel m_watch; + + private IXUILabel m_like; + + private XUIPool m_team1_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_team2_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_pvp_data_frame; + + private XUIPool m_battle_data_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_battle_data_close_button; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + this.InitDetailUI(); + } + + private void InitUI() + { + Transform transform = base.PanelObject.transform.Find("ItemList/ItemTpl"); + this.m_item_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, true); + this.m_win = base.PanelObject.transform.Find("Win"); + this.m_lose = base.PanelObject.transform.Find("Lose"); + this.m_draw = base.PanelObject.transform.Find("Draw"); + this.m_battle_data_button = (base.PanelObject.transform.Find("BattleData").GetComponent("XUIButton") as IXUIButton); + this.m_return_button = (base.PanelObject.transform.Find("Return").GetComponent("XUIButton") as IXUIButton); + transform = base.PanelObject.transform.Find("Team1/DetailTpl"); + this.m_team1_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, true); + transform = base.PanelObject.transform.Find("Team2/DetailTpl"); + this.m_team2_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, true); + } + + private void InitDetailUI() + { + this.m_pvp_data_frame = base.PanelObject.transform.Find("PVPDataFrame"); + Transform transform = this.m_pvp_data_frame.Find("Panel/MemberTpl"); + this.m_battle_data_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + this.m_battle_data_close_button = (this.m_pvp_data_frame.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_watch = (this.m_pvp_data_frame.transform.Find("Watch").GetComponent("XUILabel") as IXUILabel); + this.m_like = (this.m_pvp_data_frame.transform.Find("Like").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_battle_data_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleDataButtonClicked)); + this.m_return_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + this.m_battle_data_close_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDetailCloseButtonClicked)); + } + + private bool OnBattleDataButtonClicked(IXUIButton button) + { + this.m_pvp_data_frame.gameObject.SetActive(true); + return true; + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + this.doc.SendLeaveScene(); + return true; + } + + private bool OnDetailCloseButtonClicked(IXUIButton button) + { + this.m_pvp_data_frame.gameObject.SetActive(false); + return true; + } + + private void OnAddFriendClick(IXUISprite sp) + { + DlgBase.singleton.AddFriendById(sp.ID); + } + + private void OnAddOtherServerFriendClick(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ADD_OTHER_SERVER_FRIEND"), "fece00"); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnShowUI(); + this.SetupBattleDataUI(); + } + + private void OnShowUI() + { + this.m_pvp_data_frame.gameObject.SetActive(false); + this.m_win.gameObject.SetActive(this.doc.PvpBattleData.PVPResult == 1); + this.m_lose.gameObject.SetActive(this.doc.PvpBattleData.PVPResult == 2); + this.m_draw.gameObject.SetActive(this.doc.PvpBattleData.PVPResult == 3); + this.m_team1_pool.ReturnAll(false); + for (int i = 0; i < this.doc.PvpBattleData.Team1Data.Count; i++) + { + GameObject gameObject = this.m_team1_pool.FetchGameObject(false); + this.SetupDetailUI(gameObject, this.doc.PvpBattleData.Team1Data[i]); + gameObject.transform.localPosition = this.m_team1_pool.TplPos - new Vector3(0f, (float)(this.m_team1_pool.TplHeight * i)); + } + this.m_team2_pool.ReturnAll(false); + for (int j = 0; j < this.doc.PvpBattleData.Team2Data.Count; j++) + { + GameObject gameObject2 = this.m_team2_pool.FetchGameObject(false); + this.SetupDetailUI(gameObject2, this.doc.PvpBattleData.Team2Data[j]); + gameObject2.transform.localPosition = this.m_team2_pool.TplPos - new Vector3(0f, (float)(this.m_team2_pool.TplHeight * j)); + } + this.m_item_pool.ReturnAll(false); + int num = this.doc.PvpBattleData.DayJoinReward.Count + this.doc.PvpBattleData.WinReward.Count; + Vector3 vector = this.m_item_pool.TplPos + new Vector3(0.5f * (float)(1 - num) * (float)this.m_item_pool.TplWidth, 0f); + for (int k = 0; k < this.doc.PvpBattleData.DayJoinReward.Count; k++) + { + GameObject gameObject3 = this.m_item_pool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject3.transform.Find("Day").GetComponent("XUILabel") as IXUILabel; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject3, (int)this.doc.PvpBattleData.DayJoinReward[k].itemID, (int)this.doc.PvpBattleData.DayJoinReward[k].itemCount, false); + ixuilabel.Alpha = 1f; + gameObject3.transform.localPosition = vector; + vector += new Vector3((float)this.m_item_pool.TplWidth, 0f); + } + for (int l = 0; l < this.doc.PvpBattleData.WinReward.Count; l++) + { + GameObject gameObject4 = this.m_item_pool.FetchGameObject(false); + IXUILabel ixuilabel2 = gameObject4.transform.Find("Day").GetComponent("XUILabel") as IXUILabel; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject4, (int)this.doc.PvpBattleData.WinReward[l].itemID, (int)this.doc.PvpBattleData.WinReward[l].itemCount, false); + ixuilabel2.Alpha = 0f; + gameObject4.transform.localPosition = vector; + vector += new Vector3((float)this.m_item_pool.TplWidth, 0f); + } + } + + private void SetupDetailUI(GameObject go, XLevelRewardDocument.PVPRoleInfo data) + { + IXUISprite ixuisprite = go.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = go.transform.Find("MVP").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Death").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = go.transform.Find("AddFriend").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(data.Prof)); + ixuisprite2.SetAlpha((float)(data.IsMvp ? 1 : 0)); + ixuilabelSymbol.InputText = XMilitaryRankDocument.GetMilitaryRankWithFormat(data.militaryRank, data.Name, true); + ixuilabel.SetText(string.Format("Lv.{0}", data.Level.ToString())); + ixuilabel2.SetText(data.KillCount.ToString()); + ixuilabel3.SetText(data.DeathCount.ToString()); + ixuisprite3.ID = data.uID; + bool flag = data.uID == XSingleton.singleton.XPlayerData.RoleID || DlgBase.singleton.IsMyFriend(ixuisprite3.ID); + if (flag) + { + ixuisprite3.SetVisible(false); + } + else + { + bool flag2 = XSingleton.singleton.ServerID == data.ServerID; + if (flag2) + { + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddFriendClick)); + } + else + { + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddOtherServerFriendClick)); + } + } + } + + private void SetupBattleDataUI() + { + bool flag = XSpectateSceneDocument.WhetherWathchNumShow((int)this.doc.WatchCount, (int)this.doc.LikeCount, (int)this.doc.CurrentStage); + if (flag) + { + this.m_watch.SetVisible(true); + this.m_like.SetVisible(true); + this.m_watch.SetText(this.doc.WatchCount.ToString()); + this.m_like.SetText(this.doc.LikeCount.ToString()); + } + else + { + this.m_watch.SetVisible(false); + this.m_like.SetVisible(false); + } + this.m_battle_data_pool.ReturnAll(false); + Vector3 vector = this.m_battle_data_pool.TplPos; + for (int i = 0; i < this.doc.PvpBattleData.Team1Data.Count; i++) + { + GameObject gameObject = this.m_battle_data_pool.FetchGameObject(false); + this.SetupBattleDataDetailUI(gameObject, this.doc.PvpBattleData.Team1Data[i], true); + gameObject.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_battle_data_pool.TplHeight)); + } + for (int j = 0; j < this.doc.PvpBattleData.Team2Data.Count; j++) + { + GameObject gameObject2 = this.m_battle_data_pool.FetchGameObject(false); + this.SetupBattleDataDetailUI(gameObject2, this.doc.PvpBattleData.Team2Data[j], false); + gameObject2.transform.localPosition = vector; + vector += new Vector3(0f, (float)(-(float)this.m_battle_data_pool.TplHeight)); + } + } + + private void SetupBattleDataDetailUI(GameObject go, XLevelRewardDocument.PVPRoleInfo data, bool isteam1) + { + IXUISprite ixuisprite = go.transform.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + Transform transform = go.transform.Find("Detail/Team1"); + Transform transform2 = go.transform.Find("Detail/Team2"); + IXUILabel ixuilabel2 = go.transform.Find("KillTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("MaxKill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("DeathCount").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("DamageTotal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = go.transform.Find("HealTotal").GetComponent("XUILabel") as IXUILabel; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(data.Prof)); + ixuilabel.SetText(data.Name); + transform.gameObject.SetActive(isteam1); + transform2.gameObject.SetActive(!isteam1); + ixuilabel2.SetText(data.KillCount.ToString()); + ixuilabel3.SetText(data.MaxKillCount.ToString()); + ixuilabel4.SetText(data.DeathCount.ToString()); + ixuilabel5.SetText(XSingleton.singleton.NumberFormat(data.Damage)); + ixuilabel6.SetText(XSingleton.singleton.NumberFormat(data.Heal)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardPVPHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardPVPHandler.cs.meta new file mode 100644 index 00000000..29c5c36b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardPVPHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b40a34a0d974054393a83a59b28aa05 +timeCreated: 1611404095 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardProfTrialsHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardProfTrialsHandler.cs new file mode 100644 index 00000000..ba2c7d75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardProfTrialsHandler.cs @@ -0,0 +1,59 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardProfTrialsHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardProfTrialsFrame"; + } + } + + private XLevelRewardDocument _doc = null; + + public IXUIButton m_ContinueBtn; + + public IXUIButton m_AgainBtn; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.m_AgainBtn = (base.PanelObject.transform.Find("Bg/Again").GetComponent("XUIButton") as IXUIButton); + this.m_ContinueBtn = (base.PanelObject.transform.Find("Bg/Continue").GetComponent("XUIButton") as IXUIButton); + XProfessionChangeDocument specificDocument = XDocuments.GetSpecificDocument(XProfessionChangeDocument.uuID); + bool flag = XSingleton.singleton.SceneID == specificDocument.SceneID; + GameObject gameObject = base.PanelObject.transform.Find("Bg/FX/UI_LevelRewardProfTrialsFrame_Clip01/Clip_03_shiliantongguo").gameObject; + GameObject gameObject2 = base.PanelObject.transform.Find("Bg/FX/UI_LevelRewardProfTrialsFrame_Clip01/Clip_03_tiyanwancheng").gameObject; + gameObject.SetActive(!flag); + gameObject2.SetActive(flag); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_AgainBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAgainBtnClick)); + this.m_ContinueBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnContinueBtnClick)); + } + + private bool OnContinueBtnClick(IXUIButton btn) + { + XSingleton.singleton.ReqLeaveScene(); + return true; + } + + private bool OnAgainBtnClick(IXUIButton btn) + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = XSingleton.singleton.SceneID; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardProfTrialsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardProfTrialsHandler.cs.meta new file mode 100644 index 00000000..65388f03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardProfTrialsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b02298573dd2ea5438d7967a8f3827b1 +timeCreated: 1611404349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardRaceHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardRaceHandler.cs new file mode 100644 index 00000000..fb23913f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardRaceHandler.cs @@ -0,0 +1,149 @@ +using System; +using System.Text; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardRaceHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardRaceFrame"; + } + } + + private XLevelRewardDocument doc = null; + + public static readonly uint RACE_PLAYER_COUNT_MAX = 8u; + + private IXUISprite m_Return; + + private XUIPool m_InfoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.m_Return = (base.PanelObject.transform.Find("Bg/Return").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.PanelObject.transform.Find("Bg/Panel/InfoTpl"); + this.m_InfoPool.SetupPool(null, transform.gameObject, LevelRewardRaceHandler.RACE_PLAYER_COUNT_MAX, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Return.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturnButtonClicked)); + } + + private void OnReturnButtonClicked(IXUISprite iSp) + { + this.doc.SendLeaveScene(); + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnShowUI(); + } + + private void OnShowUI() + { + XLevelRewardDocument.RaceData raceBattleData = this.doc.RaceBattleData; + XRaceDocument specificDocument = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + bool flag = specificDocument.RaceHandler != null; + if (flag) + { + specificDocument.RaceHandler.HideInfo(); + } + this.m_InfoPool.FakeReturnAll(); + for (int i = 1; i <= raceBattleData.rolename.Count; i++) + { + int j; + for (j = 0; j < raceBattleData.rolename.Count; j++) + { + bool flag2 = (ulong)raceBattleData.rank[j] == (ulong)((long)i); + if (flag2) + { + break; + } + } + bool flag3 = j == raceBattleData.rolename.Count; + if (flag3) + { + StringBuilder stringBuilder = new StringBuilder(); + for (int k = 0; k < raceBattleData.rolename.Count; k++) + { + stringBuilder.Append(raceBattleData.rank[k]); + stringBuilder.Append(" "); + } + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "No Find rank:", + i, + "\n", + stringBuilder + }), null, null, null, null, null); + } + else + { + GameObject gameObject = this.m_InfoPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_InfoPool.TplHeight * (i - 1)), 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(raceBattleData.profession[j])); + IXUILabel ixuilabel = gameObject.transform.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(raceBattleData.rolename[j]); + IXUISprite ixuisprite2 = gameObject.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite((i <= 3) ? string.Format("N{0}", i) : ""); + IXUILabel ixuilabel2 = gameObject.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(i.ToString()); + IXUILabel ixuilabel3 = gameObject.transform.Find("PetName").GetComponent("XUILabel") as IXUILabel; + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(raceBattleData.petid[j]); + bool flag4 = petInfo == null; + if (flag4) + { + ixuilabel3.SetText(""); + } + else + { + ixuilabel3.SetText(XPetDocument.GetPetInfo(raceBattleData.petid[j]).name); + } + IXUILabel ixuilabel4 = gameObject.transform.Find("Time").GetComponent("XUILabel") as IXUILabel; + bool flag5 = raceBattleData.time[j] > 0u; + if (flag5) + { + ixuilabel4.SetText(XSingleton.singleton.TimeFormatString(raceBattleData.time[j] / 1000f, 2, 3, 4, false)); + } + else + { + ixuilabel4.SetText("-- : -- . --"); + } + XUIPool xuipool = new XUIPool(XSingleton.singleton.m_uiTool); + Transform transform = gameObject.transform.Find("Reward/ItemTpl"); + xuipool.SetupPool(null, transform.gameObject, 3u, false); + xuipool.FakeReturnAll(); + for (int l = 0; l < raceBattleData.item[j].Count; l++) + { + GameObject gameObject2 = xuipool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)raceBattleData.item[j][l].itemID, (int)raceBattleData.item[j][l].itemCount, false); + gameObject2.transform.localPosition = new Vector3((float)(l * xuipool.TplWidth), 0f, 0f); + IXUISprite ixuisprite3 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)raceBattleData.item[j][l].itemID; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + } + xuipool.ActualReturnAll(false); + } + } + this.m_InfoPool.ActualReturnAll(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardRaceHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardRaceHandler.cs.meta new file mode 100644 index 00000000..72cd1faa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardRaceHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5acd2c487708af947b699a4c458184c2 +timeCreated: 1611403793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardReportHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardReportHandler.cs new file mode 100644 index 00000000..c5aad212 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardReportHandler.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardReportHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardReportHandler"; + } + } + + private XLevelRewardDocument _doc = null; + + private IXUILabel m_Title; + + private XUIPool m_CheckBoxPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_OKBtn; + + private IXUIButton m_CancelBtn; + + private int _selectCount; + + private static readonly int COLNUM = 3; + + private IXUISprite m_ReportBtn; + + private ulong CurrReportUid; + + private List reportList = new List(); + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.m_Title = (base.PanelObject.transform.Find("Menu/Title").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.PanelObject.transform.Find("Menu/List/Tpl"); + this.m_CheckBoxPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_OKBtn = (base.PanelObject.transform.Find("Menu/OK").GetComponent("XUIButton") as IXUIButton); + this.m_CancelBtn = (base.PanelObject.transform.Find("Menu/Cancel").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_OKBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOKBtnClick)); + this.m_CancelBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancelBtnClick)); + } + + public void InitShow(ulong uid, string name, IXUISprite reportBtn) + { + this.CurrReportUid = uid; + this.m_ReportBtn = reportBtn; + this.m_Title.SetText(string.Format(XStringDefineProxy.GetString("PVPReportTitle"), name)); + this.reportList.Clear(); + this._selectCount = 0; + this.m_OKBtn.SetEnable(false, false); + string value = XSingleton.singleton.GetValue("HeroBattleReportType"); + string[] array = value.Split(new char[] + { + '|', + '=' + }); + this.m_CheckBoxPool.ReturnAll(false); + Vector3 tplPos = this.m_CheckBoxPool.TplPos; + int num = 0; + while (num + 1 < array.Length) + { + uint type = uint.Parse(array[num]); + reportType reportType = new reportType(); + reportType.type = type; + reportType.state = false; + this.reportList.Add(reportType); + GameObject gameObject = this.m_CheckBoxPool.FetchGameObject(false); + int num2 = this.reportList.Count - 1; + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(num2 % LevelRewardReportHandler.COLNUM * this.m_CheckBoxPool.TplWidth), tplPos.y - (float)(num2 / LevelRewardReportHandler.COLNUM * this.m_CheckBoxPool.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Text").GetComponent("XUILabel") as IXUILabel; + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuilabel.SetText(array[num + 1]); + ixuicheckBox.ID = (ulong)((long)this.reportList.Count - 1L); + ixuicheckBox.bChecked = false; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckBoxClick)); + num += 2; + } + } + + public bool OnCheckBoxClick(IXUICheckBox icb) + { + int num = (int)icb.ID; + bool flag = num < this.reportList.Count; + if (flag) + { + bool flag2 = this.reportList[num].state != icb.bChecked; + if (flag2) + { + this._selectCount += (icb.bChecked ? 1 : -1); + this.m_OKBtn.SetEnable(this._selectCount != 0, false); + this.reportList[num].state = icb.bChecked; + } + } + return true; + } + + public bool OnOKBtnClick(IXUIButton btn) + { + this._doc.ReportPlayer(this.CurrReportUid, this.reportList); + bool flag = this.m_ReportBtn != null; + if (flag) + { + this.m_ReportBtn.SetEnabled(false); + } + base.SetVisible(false); + return false; + } + + public bool OnCancelBtnClick(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardReportHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardReportHandler.cs.meta new file mode 100644 index 00000000..093ef3a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardReportHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a5399768bdecaa4b86c298b97d79260 +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardRiftHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardRiftHandler.cs new file mode 100644 index 00000000..6d9a2c5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardRiftHandler.cs @@ -0,0 +1,288 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardRiftHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardTeamMysterious"; + } + } + + private XLevelRewardDocument _doc = null; + + private XRiftDocument _rift_doc = null; + + private IXUILabel[] m_level_req = new IXUILabel[3]; + + private IXUISprite[] m_level_req_done = new IXUISprite[3]; + + private Transform m_star_frame; + + private Transform[] m_stars = new Transform[3]; + + private IXUITweenTool m_star_tween; + + private Transform[] m_star_fx = new Transform[3]; + + private XUIPool m_ActivityItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUISprite m_ActivityRestart; + + private IXUISprite m_ActivityReturn; + + private IXUILabel m_lblRift; + + private IXUILabel m_lblBtm; + + private IUIDummy m_snapshot; + + private Transform m_BrokeRecord; + + private uint m_show_time_token = 0u; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this._rift_doc = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + for (int i = 0; i < 3; i++) + { + this.m_level_req[i] = (base.PanelObject.transform.Find(string.Format("Bg/StarsReq/Req{0}/Tip", i + 1)).GetComponent("XUILabel") as IXUILabel); + this.m_level_req_done[i] = (base.PanelObject.transform.Find(string.Format("Bg/StarsReq/Req{0}/Done", i + 1)).GetComponent("XUISprite") as IXUISprite); + this.m_stars[i] = base.PanelObject.transform.Find(string.Format("Bg/Stars/Star{0}", i + 1)); + this.m_star_fx[i] = base.PanelObject.transform.Find(string.Format("Bg/Stars/Star{0}/Fx", i + 1)); + } + this.m_star_tween = (base.PanelObject.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_star_frame = base.PanelObject.transform.Find("Bg/Stars"); + this.m_BrokeRecord = base.transform.Find("BrokeRecord"); + this.m_lblRift = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_lblBtm = (base.transform.Find("Bg/SealTip").GetComponent("XUILabel") as IXUILabel); + this.m_ActivityRestart = (base.transform.Find("Bg/Restart").GetComponent("XUISprite") as IXUISprite); + this.m_ActivityReturn = (base.transform.Find("Bg/Return").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("Bg/ItemList/ScrollView/Item"); + this.m_ActivityItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_snapshot = (base.PanelObject.transform.Find("Bg/Snapshot/Snapshot").GetComponent("UIDummy") as IUIDummy); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ActivityRestart.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRestartClick)); + this.m_ActivityReturn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturnClick)); + } + + private void OnRestartClick(IXUISprite sp) + { + bool flag = !this._doc.IsEndLevel; + if (flag) + { + base.SetVisible(false); + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisiblePure(true); + } + string sceneBGM = XSingleton.singleton.GetSceneBGM(XSingleton.singleton.SceneID); + XSingleton.singleton.PlayBGM(sceneBGM); + DlgBase.singleton.SetFakeHide(false); + } + else + { + this._doc.SendLeaveScene(); + } + } + + private void OnReturnClick(IXUISprite sp) + { + this._doc.SendLeaveScene(); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowRiftFrame(); + this.ShowStarReq(); + bool flag = this._rift_doc != null; + if (flag) + { + this._rift_doc.stop_timer = true; + } + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.EnableMainDummy(false, null); + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.OnUIUnloadMainDummy(this.m_snapshot); + XSingleton.singleton.KillTimer(this.m_show_time_token); + base.OnUnload(); + } + + public void ShowRiftFrame() + { + bool flag = this._doc.CurrentStage == SceneType.SCENE_RIFT; + if (flag) + { + uint rank = this._doc.GerenalBattleData.Rank; + this.m_BrokeRecord.gameObject.SetActive(this._doc.BrokeRecords); + for (int i = 0; i < 3; i++) + { + bool flag2 = (long)i < (long)((ulong)rank); + if (flag2) + { + this.m_stars[i].gameObject.SetActive(true); + this.m_star_tween.SetTweenGroup(i + 1); + this.m_star_tween.PlayTween(true, -1f); + this.m_star_fx[i].gameObject.SetActive((long)i == (long)((ulong)(rank - 1u))); + } + else + { + this.m_stars[i].gameObject.SetActive(false); + this.m_star_fx[i].gameObject.SetActive(false); + } + } + this.m_star_frame.localPosition -= new Vector3(this.m_stars[0].localPosition.x * (3u - rank) / 2f, 0f); + for (int j = 0; j < 3; j++) + { + this.m_level_req[j].SetVisible(false); + this.m_level_req_done[j].SetVisible(false); + } + bool flag3 = this._doc.RiftResult.riftItemFlag == 1u; + if (flag3) + { + this.m_lblBtm.SetText(XStringDefineProxy.GetString("ERR_RIFT_REWARD_TOGET")); + } + else + { + bool flag4 = this._doc.RiftResult.riftItemFlag == 2u; + if (flag4) + { + this.m_lblBtm.SetText(XStringDefineProxy.GetString("ERR_RIFT_REWARD_TOGET")); + } + else + { + bool flag5 = this._doc.RiftResult.riftItemFlag == 3u; + if (flag5) + { + this.m_lblBtm.SetText(XStringDefineProxy.GetString("ERR_RIFT_CREATER_LEAVE")); + } + else + { + this.m_lblBtm.SetText(XStringDefineProxy.GetString("ERR_RIFT_PASSAGAIN")); + } + } + } + int num = -2; + int num2 = -1; + bool flag6 = this._doc.RiftResult.riftFloor == (uint)num; + if (flag6) + { + this.m_lblRift.SetText(XStringDefineProxy.GetString("ERR_RIFT_CREATER_LEAVE_CANNOT_LEVELUP")); + this.m_ActivityRestart.SetVisible(true); + } + else + { + bool flag7 = this._doc.RiftResult.riftFloor == (uint)num2; + if (flag7) + { + this.m_lblRift.SetText(XStringDefineProxy.GetString("ERR_RIFT_LEVELMAX")); + this.m_ActivityRestart.SetVisible(false); + } + else + { + this.m_lblRift.SetText(XStringDefineProxy.GetString("ERR_RIFT_LEVELUP", new object[] + { + this._doc.RiftResult.riftFloor + })); + this.m_ActivityRestart.SetVisible(true); + } + } + this.m_ActivityItemPool.FakeReturnAll(); + for (int k = 0; k < this._doc.Items.Count; k++) + { + GameObject gameObject = this.m_ActivityItemPool.FetchGameObject(true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this._doc.Items[k].itemID; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)this._doc.Items[k].itemID, (int)this._doc.Items[k].itemCount, false); + gameObject.transform.localPosition = new Vector3(this.m_ActivityItemPool.TplPos.x + (float)(k * this.m_ActivityItemPool.TplWidth), this.m_ActivityItemPool.TplPos.y); + bool isbind = this._doc.Items[k].isbind; + if (isbind) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + XSingleton.singleton.EnableMainDummy(true, this.m_snapshot); + float interval = XSingleton.singleton.SetMainAnimationGetLength(XSingleton.singleton.Player.Present.PresentLib.Disappear); + this.m_show_time_token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.KillDummyTimer), null); + this.m_ActivityItemPool.ActualReturnAll(false); + } + else + { + XSingleton.singleton.AddErrorLog("error stage:" + this._doc.CurrentStage, null, null, null, null, null); + } + } + + private void KillDummyTimer(object sender) + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + XSingleton.singleton.SetMainAnimation(XSingleton.singleton.Player.Present.PresentLib.AttackIdle); + } + + private void ShowStarReq() + { + int num = 0; + for (int i = 0; i < XLevelRewardDocument.Table.Table.Length; i++) + { + bool flag = XLevelRewardDocument.Table.Table[i].scendid == this._doc.CurrentScene; + if (flag) + { + num = i; + break; + } + } + this.m_level_req[0].SetVisible(true); + this.m_level_req[1].SetVisible(true); + this.m_level_req[2].SetVisible(true); + this.m_level_req[1].SetText(LevelRewardGerenalHandler.GetReqText(XLevelRewardDocument.Table.Table[num], 1)); + this.m_level_req[2].SetText(LevelRewardGerenalHandler.GetReqText(XLevelRewardDocument.Table.Table[num], 2)); + int num2 = 0; + while (num2 < this._doc.GerenalBattleData.Stars.Count && num2 < 3) + { + bool flag2 = this._doc.GerenalBattleData.Stars[num2] == 1u; + if (flag2) + { + this.m_level_req_done[num2].SetVisible(true); + } + else + { + this.m_level_req_done[num2].SetVisible(false); + } + num2++; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardRiftHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardRiftHandler.cs.meta new file mode 100644 index 00000000..bbbae6fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardRiftHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d167ed6fd09866b4597def2f014d9204 +timeCreated: 1611404591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardSelectChestHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardSelectChestHandler.cs new file mode 100644 index 00000000..7000ec78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardSelectChestHandler.cs @@ -0,0 +1,678 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardSelectChestHandler : DlgHandlerBase + { + public LevelRewardSelectChestHandler.SelectChestStatus CurrentStatus + { + get + { + return this._select_chest_status; + } + } + + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardSelectChestFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private Transform m_button_frame; + + private IXUIButton m_battle_data_button; + + private IXUIButton m_reStartBtn; + + private IXUIButton m_return_button; + + private IXUILabel m_return_label; + + private IXUITweenTool m_player_tween; + + private IXUITweenTool m_team_tween; + + private IXUISprite m_player_avatar; + + private IXUILabel m_player_name; + + private IXUILabel m_player_level; + + private IXUISprite m_player_leader; + + private Transform m_player_helper; + + private Transform[] m_player_stars = new Transform[3]; + + private Transform m_player_chest_list; + + private XUIPool m_player_chest_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_left_time; + + private IXUILabel m_select_chest_tip; + + private Transform m_helper_tip; + + private Transform m_noneReward_tip; + + private XUIPool m_others_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_watch; + + private IXUILabel m_like; + + private uint _token = 0u; + + private uint _show_item_token = 0u; + + private float _target_time = 0f; + + private bool _has_show_others = false; + + private LevelRewardSelectChestHandler.SelectChestStatus _select_chest_status = LevelRewardSelectChestHandler.SelectChestStatus.Begin; + + public enum SelectChestStatus + { + Begin, + SelectFinish + } + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + this.m_button_frame = base.PanelObject.transform.Find("Bg/Button"); + this.m_battle_data_button = (base.PanelObject.transform.Find("Bg/Button/BattleData").GetComponent("XUIButton") as IXUIButton); + this.m_reStartBtn = (base.PanelObject.transform.Find("Bg/Button/ReStart").GetComponent("XUIButton") as IXUIButton); + this.m_return_button = (base.PanelObject.transform.Find("Bg/Button/Return").GetComponent("XUIButton") as IXUIButton); + this.m_return_label = (base.PanelObject.transform.Find("Bg/Button/Return/Text").GetComponent("XUILabel") as IXUILabel); + this.m_player_tween = (base.PanelObject.transform.Find("Bg/Player").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_team_tween = (base.PanelObject.transform.Find("Bg/TeamPanel").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_player_avatar = (base.PanelObject.transform.Find("Bg/Player/Detail/Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_player_name = (base.PanelObject.transform.Find("Bg/Player/Detail/Name").GetComponent("XUILabel") as IXUILabel); + this.m_player_level = (base.PanelObject.transform.Find("Bg/Player/Detail/Level").GetComponent("XUILabel") as IXUILabel); + this.m_player_leader = (base.PanelObject.transform.Find("Bg/Player/Detail/Leader").GetComponent("XUISprite") as IXUISprite); + this.m_player_helper = base.PanelObject.transform.Find("Bg/Player/Detail/Helper"); + for (int i = 0; i < 3; i++) + { + this.m_player_stars[i] = base.PanelObject.transform.Find(string.Format("Bg/Player/Detail/Stars/Star{0}", i + 1)); + } + this.m_player_chest_list = base.PanelObject.transform.Find("Bg/Player/ItemList"); + Transform transform = base.PanelObject.transform.Find("Bg/Player/ItemList/BoxTpl"); + this.m_player_chest_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = base.PanelObject.transform.Find("Bg/TeamPanel/OtherPlayer"); + this.m_others_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_watch = (base.PanelObject.transform.Find("Watch").GetComponent("XUILabel") as IXUILabel); + this.m_like = (base.PanelObject.transform.Find("Like").GetComponent("XUILabel") as IXUILabel); + this.m_left_time = (base.PanelObject.transform.Find("Bg/Player/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_select_chest_tip = (base.PanelObject.transform.Find("Bg/Player/ItemList/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_helper_tip = base.PanelObject.transform.Find("Bg/Player/HelperTip"); + this.m_noneReward_tip = base.PanelObject.transform.Find("Bg/Player/NoneRewardTip"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_battle_data_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleDataButtonClicked)); + this.m_reStartBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReStartCkicked)); + this.m_return_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + } + + private bool OnBattleDataButtonClicked(IXUIButton button) + { + DlgBase.singleton.ShowBattleDataFrame(); + return true; + } + + private bool OnReStartCkicked(IXUIButton btn) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ReqTeamOp(TeamOperate.TEAM_BATTLE_CONTINUE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + return true; + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + bool flag = this.doc.CurrentStage == SceneType.SCENE_DRAGON && !this.doc.IsEndLevel; + if (flag) + { + base.SetVisible(false); + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisiblePure(true); + } + string sceneBGM = XSingleton.singleton.GetSceneBGM(XSingleton.singleton.SceneID); + XSingleton.singleton.PlayBGM(sceneBGM); + } + else + { + this.doc.SendLeaveScene(); + } + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this._select_chest_status = LevelRewardSelectChestHandler.SelectChestStatus.Begin; + this._has_show_others = false; + this.ShowPlayerChest(); + bool flag = XSpectateSceneDocument.WhetherWathchNumShow((int)this.doc.WatchCount, (int)this.doc.LikeCount, (int)this.doc.CurrentStage); + if (flag) + { + this.m_watch.SetVisible(true); + this.m_like.SetVisible(true); + this.m_watch.SetText(this.doc.WatchCount.ToString()); + this.m_like.SetText(this.doc.LikeCount.ToString()); + } + else + { + this.m_watch.SetVisible(false); + this.m_like.SetVisible(false); + } + bool flag2 = this.doc.CurrentStage == SceneType.SCENE_DRAGON && !this.doc.IsEndLevel; + if (flag2) + { + this.m_return_label.SetText(XStringDefineProxy.GetString("LEVEL_FINISH_CONTINUE")); + } + else + { + this.m_return_label.SetText(XStringDefineProxy.GetString("LEVEL_FINISH_LEAVE_SCENE")); + } + this._target_time = Time.time + (float)this.doc.SelectChestFrameData.SelectLeftTime; + this.m_button_frame.gameObject.SetActive(false); + } + + private void ClearTexture(string path) + { + for (int i = 0; i < 4; i++) + { + Transform transform = base.PanelObject.transform.Find(string.Format(string.Format("{0}{1}", path, "/Box{0}/Box"), i + 1)); + bool flag = transform == null; + if (!flag) + { + IXUITexture ixuitexture = transform.GetComponent("XUITexture") as IXUITexture; + bool flag2 = ixuitexture != null; + if (flag2) + { + ixuitexture.SetTexturePath(""); + } + } + } + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this._token); + XSingleton.singleton.KillTimer(this._show_item_token); + this.ClearTexture("Bg/Player/ItemList"); + for (int i = 0; i < this.doc.SelectChestFrameData.Others.Count; i++) + { + this.ClearTexture(string.Format("Bg/TeamPanel/{0}/ItemList", this.doc.SelectChestFrameData.Others[i].uid)); + } + base.OnUnload(); + } + + public void ShowAllChest() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + this._select_chest_status = LevelRewardSelectChestHandler.SelectChestStatus.SelectFinish; + XSingleton.singleton.PlayUISound("Audio/UI/UI_ClearBox_Cursor_Select", true, AudioChannel.Action); + this.ShowPlayerChestGlow(this.doc.SelectChestFrameData.Player.BoxID); + this.SetupChestList(this.doc.SelectChestFrameData.Player.chestList, this.doc.SelectChestFrameData.Player.BoxID, "Bg/Player/ItemList"); + for (int i = 0; i < this.doc.SelectChestFrameData.Others.Count; i++) + { + bool flag2 = this.doc.SelectChestFrameData.Others[i].BoxID == 0; + if (flag2) + { + this.ShowOthersChestGlow(this.doc.SelectChestFrameData.Others[i].uid, 1); + } + this.SetupChestList(this.doc.SelectChestFrameData.Others[i].chestList, this.doc.SelectChestFrameData.Others[i].BoxID, string.Format("Bg/TeamPanel/{0}/ItemList", this.doc.SelectChestFrameData.Others[i].uid)); + } + this.RefreshSelectChest(); + this._show_item_token = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.ShowAllItem), null); + } + } + + private void SetupChestList(List list, int boxid, string path) + { + boxid = ((boxid == 0) ? 1 : boxid); + for (int i = 0; i < list.Count; i++) + { + Transform transform = base.PanelObject.transform.Find(string.Format(string.Format("{0}{1}", path, "/Box{0}/Box"), i + 1)); + bool flag = transform == null; + if (flag) + { + XSingleton.singleton.AddGreenLog(string.Format("{0} not found!!!", path), null, null, null, null, null); + } + else + { + IXUITexture ixuitexture = transform.GetComponent("XUITexture") as IXUITexture; + transform = base.PanelObject.transform.Find(string.Format(string.Format("{0}{1}", path, "/Box{0}/Light"), i + 1)); + bool flag2 = transform == null; + if (flag2) + { + XSingleton.singleton.AddGreenLog(string.Format("{0} not found!!!", path), null, null, null, null, null); + } + else + { + IXUITweenTool ixuitweenTool = transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + IXUISprite ixuisprite = base.PanelObject.transform.Find(string.Format("Bg/Player/ItemList/Box{0}/Magnifier", i + 1)).GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetVisible(false); + string texturePath = string.Format("atlas/UI/Battle/bx_{0}", 5 - list[i].chestType); + bool flag3 = list[i].chestType == 0; + if (flag3) + { + texturePath = ""; + } + ixuitexture.SetTexturePath(texturePath); + } + } + } + } + + private void ShowAllItem(object o = null) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + XSingleton.singleton.PlayUISound("Audio/UI/UI_ClearBox_Open", true, AudioChannel.Action); + this._target_time = 0f; + this.SetupChestItem(this.doc.SelectChestFrameData.Player.chestList, this.doc.SelectChestFrameData.Player.BoxID, "Bg/Player/ItemList"); + for (int i = 0; i < this.doc.SelectChestFrameData.Others.Count; i++) + { + this.SetupChestItem(this.doc.SelectChestFrameData.Others[i].chestList, this.doc.SelectChestFrameData.Others[i].BoxID, string.Format("Bg/TeamPanel/{0}/ItemList", this.doc.SelectChestFrameData.Others[i].uid)); + } + this.m_button_frame.gameObject.SetActive(true); + this.doc.ShowFirstPassShareView(); + bool flag2 = this.doc.CurrentStage == SceneType.SCENE_GODDESS || this.doc.CurrentStage == SceneType.SCENE_ENDLESSABYSS; + if (flag2) + { + this.m_battle_data_button.gameObject.SetActive(false); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag3 = !specificDocument.bIsLeader; + if (flag3) + { + this.m_reStartBtn.gameObject.SetActive(false); + } + else + { + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int num = 0; + bool flag4 = this.doc.CurrentStage == SceneType.SCENE_GODDESS; + if (flag4) + { + num = specificDocument2.GetDayCount(TeamLevelType.TeamLevelGoddessTrial, null); + } + else + { + bool flag5 = this.doc.CurrentStage == SceneType.SCENE_ENDLESSABYSS; + if (flag5) + { + num = specificDocument2.GetDayCount(TeamLevelType.TeamLevelEndlessAbyss, null); + } + } + bool flag6 = num - 1 <= 0; + if (flag6) + { + this.m_reStartBtn.gameObject.SetActive(false); + } + else + { + this.m_reStartBtn.gameObject.SetActive(true); + } + } + } + else + { + this.m_battle_data_button.gameObject.SetActive(true); + this.m_reStartBtn.gameObject.SetActive(false); + } + } + } + + private void SetupChestItem(List list, int boxid, string path) + { + boxid = ((boxid == 0) ? 1 : boxid); + for (int i = 0; i < list.Count; i++) + { + Transform transform = base.PanelObject.transform.Find(string.Format(string.Format("{0}{1}", path, "/Box{0}/Box"), i + 1)); + bool flag = transform == null; + if (flag) + { + XSingleton.singleton.AddGreenLog(string.Format("{0} not found!!!", path), null, null, null, null, null); + } + else + { + IXUITexture ixuitexture = transform.GetComponent("XUITexture") as IXUITexture; + transform = base.PanelObject.transform.Find(string.Format(string.Format("{0}{1}", path, "/Box{0}/Item"), i + 1)); + bool flag2 = transform == null; + if (flag2) + { + XSingleton.singleton.AddGreenLog(string.Format("{0} not found!!!", path), null, null, null, null, null); + } + else + { + GameObject gameObject = transform.gameObject; + transform = gameObject.transform.Find("Icon"); + bool flag3 = transform == null; + if (flag3) + { + XSingleton.singleton.AddGreenLog(string.Format("{0} not found!!!", path), null, null, null, null, null); + } + else + { + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + gameObject.SetActive(true); + XItemDrawerMgr.Param.bBinding = list[i].isbind; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, list[i].itemID, list[i].itemCount, false); + ixuisprite.ID = (ulong)((long)list[i].itemID); + ixuitexture.SetVisible(false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + } + } + + private void OnChestClicked(IXUISprite sp) + { + bool flag = this.doc.SelectChestFrameData.Player.BoxID != 0; + if (!flag) + { + this.doc.SendSelectChest((uint)sp.ID); + XSingleton.singleton.PlayUISound("Audio/UI/UI_ClearBox_Cursor_On", true, AudioChannel.Action); + } + } + + private void OnMagnifierClicked(IXUISprite sp) + { + this.doc.SendPeerChest((uint)sp.ID); + } + + private void OnAddFriendClick(IXUISprite sp) + { + DlgBase.singleton.AddFriendById(sp.ID); + } + + private void OnAddOtherServerFriendClick(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ADD_OTHER_SERVER_FRIEND"), "fece00"); + } + + public void RefreshSelectChest() + { + bool flag = false; + this.ShowPlayerChestGlow(this.doc.SelectChestFrameData.Player.BoxID); + bool flag2 = this.doc.SelectChestFrameData.Player.BoxID == 0; + if (flag2) + { + flag = true; + } + for (int i = 0; i < this.doc.SelectChestFrameData.Others.Count; i++) + { + this.ShowOthersChestGlow(this.doc.SelectChestFrameData.Others[i].uid, this.doc.SelectChestFrameData.Others[i].BoxID); + bool flag3 = this.doc.SelectChestFrameData.Others[i].BoxID == 0; + if (flag3) + { + flag = true; + } + } + bool flag4 = !flag && this._select_chest_status != LevelRewardSelectChestHandler.SelectChestStatus.SelectFinish; + if (flag4) + { + this.doc.SendQueryBoxs(false); + } + this._token = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.ShowOthersChest), null); + } + + private void ShowPlayerChest() + { + this.m_player_name.SetText(this.doc.SelectChestFrameData.Player.Name); + this.m_player_level.SetText(this.doc.SelectChestFrameData.Player.Level.ToString()); + this.m_player_avatar.SetSprite(XSingleton.singleton.GetProfHeadIcon(this.doc.SelectChestFrameData.Player.ProfID)); + this.m_player_leader.SetVisible(this.doc.SelectChestFrameData.Player.isLeader); + this.m_player_helper.gameObject.SetActive(this.doc.SelectChestFrameData.Player.isHelper); + for (int i = 0; i < 3; i++) + { + this.m_player_stars[i].gameObject.SetActive((long)i < (long)((ulong)this.doc.SelectChestFrameData.Player.Rank)); + } + this.m_player_chest_pool.ReturnAll(false); + float num = this.m_player_chest_pool.TplPos.x; + for (int j = 0; j < 4; j++) + { + GameObject gameObject = this.m_player_chest_pool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + Transform transform = gameObject.transform.Find("glow"); + GameObject gameObject2 = gameObject.transform.Find("Item").gameObject; + GameObject gameObject3 = gameObject.transform.Find("Light").gameObject; + IXUISprite ixuisprite2 = gameObject.transform.Find("Magnifier").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Magnifier/Num").GetComponent("XUILabel") as IXUILabel; + ixuisprite.ID = (ulong)((long)j + 1L); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClicked)); + transform.gameObject.SetActive(false); + gameObject.name = string.Format("Box{0}", j + 1); + gameObject.transform.localPosition = new Vector3(num, this.m_player_chest_pool.TplPos.y); + num += (float)this.m_player_chest_pool.TplWidth; + gameObject2.SetActive(false); + gameObject3.SetActive(false); + ixuisprite2.SetVisible(this.doc.CanPeerBox); + ixuisprite2.ID = (ulong)((long)j + 1L); + ixuilabel.SetText(this.doc.PeerBoxCost.ToString()); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMagnifierClicked)); + } + bool flag = this._target_time - Time.time > 0f; + if (flag) + { + this.m_left_time.SetText(XStringDefineProxy.GetString("SELECT_CHEST_LEFT_TIME", new object[] + { + (this._target_time - Time.time).ToString("0") + })); + } + else + { + this.m_left_time.SetText(""); + } + this.m_select_chest_tip.SetText(XStringDefineProxy.GetString("SELECT_CHEST_TIP")); + this.m_player_chest_list.gameObject.SetActive(!this.doc.SelectChestFrameData.Player.isHelper && !this.doc.SelectChestFrameData.Player.noneReward); + this.m_left_time.SetVisible(true); + this.m_helper_tip.gameObject.SetActive(this.doc.SelectChestFrameData.Player.isHelper); + this.m_noneReward_tip.gameObject.SetActive(!this.doc.SelectChestFrameData.Player.isHelper && this.doc.SelectChestFrameData.Player.noneReward); + bool isHelper = this.doc.SelectChestFrameData.Player.isHelper; + if (isHelper) + { + XSingleton.singleton.KillTimer(this._token); + this._token = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.ShowOthersChest), null); + } + } + + private void ShowOthersChest(object o = null) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool has_show_others = this._has_show_others; + if (!has_show_others) + { + this._has_show_others = true; + this.m_select_chest_tip.SetVisible(false); + this.m_player_tween.PlayTween(true, -1f); + this.m_team_tween.PlayTween(true, -1f); + this.m_others_pool.ReturnAll(false); + for (int i = 0; i < this.doc.SelectChestFrameData.Others.Count; i++) + { + GameObject gameObject = this.m_others_pool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.Find("Detail/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Detail/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Detail/Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = gameObject.transform.Find("Detail/Leader").GetComponent("XUISprite") as IXUISprite; + Transform transform = gameObject.transform.Find("Detail/Helper"); + IXUISprite ixuisprite3 = gameObject.transform.Find("AddFriend").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon(this.doc.SelectChestFrameData.Others[i].ProfID)); + ixuilabel.SetText(this.doc.SelectChestFrameData.Others[i].Name); + IXUILabel ixuilabel3 = ixuilabel2; + XLevelRewardDocument.LevelRewardRoleData levelRewardRoleData = this.doc.SelectChestFrameData.Others[i]; + ixuilabel3.SetText(levelRewardRoleData.Level.ToString()); + ixuisprite2.SetVisible(this.doc.SelectChestFrameData.Others[i].isLeader); + transform.gameObject.SetActive(this.doc.SelectChestFrameData.Others[i].isHelper); + Transform[] array = new Transform[3]; + for (int j = 0; j < 3; j++) + { + array[j] = gameObject.transform.Find(string.Format("Detail/Stars/Star{0}", j + 1)); + array[j].gameObject.SetActive((long)j < (long)((ulong)this.doc.SelectChestFrameData.Others[i].Rank)); + } + XUIPool xuipool = new XUIPool(XSingleton.singleton.m_uiTool); + Transform transform2 = gameObject.transform.Find("ItemList/BoxTpl"); + xuipool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 4u, false); + xuipool.ReturnAll(false); + float num = xuipool.TplPos.x; + for (int k = 0; k < 4; k++) + { + GameObject gameObject2 = xuipool.FetchGameObject(false); + IXUISprite ixuisprite4 = gameObject2.GetComponent("XUISprite") as IXUISprite; + Transform transform3 = gameObject2.transform.Find("glow"); + GameObject gameObject3 = gameObject2.transform.Find("Item").gameObject; + GameObject gameObject4 = gameObject2.transform.Find("Light").gameObject; + gameObject2.name = string.Format("Box{0}", k + 1); + gameObject2.transform.localPosition = new Vector3(num, xuipool.TplPos.y); + transform3.gameObject.SetActive(k + 1 == this.doc.SelectChestFrameData.Others[i].BoxID); + num += (float)xuipool.TplWidth; + gameObject3.SetActive(false); + gameObject4.SetActive(false); + } + ixuisprite3.ID = this.doc.SelectChestFrameData.Others[i].uid; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddFriendClick)); + bool flag2 = DlgBase.singleton.IsMyFriend(ixuisprite3.ID) || XAttributes.GetCategory(ixuisprite3.ID) == EntityCategory.Category_DummyRole; + if (flag2) + { + ixuisprite3.SetVisible(false); + } + else + { + bool flag3 = XSingleton.singleton.ServerID == this.doc.SelectChestFrameData.Others[i].ServerID; + if (flag3) + { + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddFriendClick)); + } + else + { + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddOtherServerFriendClick)); + } + } + UnityEngine.Object @object = gameObject; + levelRewardRoleData = this.doc.SelectChestFrameData.Others[i]; + @object.name = levelRewardRoleData.uid.ToString(); + float num2 = this.m_others_pool.TplPos.y - (float)(i % 3 * this.m_others_pool.TplHeight); + num = this.m_others_pool.TplPos.x + (float)(i / 3 * this.m_others_pool.TplWidth); + gameObject.transform.localPosition = new Vector3(num, num2); + Transform transform4 = gameObject.transform.Find("ItemList"); + Transform transform5 = gameObject.transform.Find("HelperTip"); + Transform transform6 = gameObject.transform.Find("NoneRewardTip"); + transform4.gameObject.SetActive(!this.doc.SelectChestFrameData.Others[i].isHelper && !this.doc.SelectChestFrameData.Others[i].noneReward); + transform5.gameObject.SetActive(this.doc.SelectChestFrameData.Others[i].isHelper); + transform6.gameObject.SetActive(!this.doc.SelectChestFrameData.Others[i].isHelper && this.doc.SelectChestFrameData.Others[i].noneReward); + } + } + } + } + + public void ShowPlayerChestGlow(int index) + { + Transform transform = base.PanelObject.transform.Find(string.Format("Bg/Player/ItemList/Box{0}/glow", index)); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(true); + this.HideMagnifier(); + } + } + + public void ShowOthersChestGlow(ulong roleid, int index) + { + Transform transform = base.PanelObject.transform.Find(string.Format("Bg/TeamPanel/{0}/ItemList/Box{1}/glow", roleid, index)); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(true); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._target_time - Time.time > 0f; + if (flag) + { + this.m_left_time.SetText(XStringDefineProxy.GetString("SELECT_CHEST_LEFT_TIME", new object[] + { + (this._target_time - Time.time).ToString("0") + })); + this.doc.SendQueryBoxs(false); + } + else + { + bool flag2 = this.doc.SelectChestFrameData.SelectLeftTime != 0; + if (flag2) + { + this.doc.SendQueryBoxs(true); + } + this.m_left_time.SetText(""); + } + } + + public void RefreshLeftTime() + { + this._target_time = Time.time + (float)this.doc.SelectChestFrameData.SelectLeftTime; + } + + public void SetPeerResult() + { + this.HideMagnifier(); + for (int i = 0; i < 4; i++) + { + bool flag = this.doc.SelectChestFrameData.Player.chestList[i].chestType != 0; + if (flag) + { + IXUITexture ixuitexture = base.PanelObject.transform.Find(string.Format("Bg/Player/ItemList/Box{0}/Box", i + 1)).GetComponent("XUITexture") as IXUITexture; + string texturePath = string.Format("atlas/UI/Battle/bx_{0}", 5 - this.doc.SelectChestFrameData.Player.chestList[i].chestType); + bool flag2 = this.doc.SelectChestFrameData.Player.chestList[i].chestType == 0; + if (flag2) + { + texturePath = ""; + } + ixuitexture.SetTexturePath(texturePath); + } + } + } + + private void HideMagnifier() + { + for (int i = 0; i < 4; i++) + { + IXUISprite ixuisprite = base.PanelObject.transform.Find(string.Format("Bg/Player/ItemList/Box{0}/Magnifier", i + 1)).GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetVisible(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardSelectChestHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardSelectChestHandler.cs.meta new file mode 100644 index 00000000..a85ca91a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardSelectChestHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d390f06cc7e2e4b44aa6b1a2e08b235a +timeCreated: 1611404599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardSkyArenaHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardSkyArenaHandler.cs new file mode 100644 index 00000000..a8c700d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardSkyArenaHandler.cs @@ -0,0 +1,147 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardSkyArenaHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardSkyArenaFrame"; + } + } + + private XLevelRewardDocument doc = null; + + private IXUIButton m_Return; + + private IXUILabel m_Title; + + private XUIPool m_InfoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.m_Return = (base.PanelObject.transform.Find("Bg/Return").GetComponent("XUIButton") as IXUIButton); + this.m_Title = (base.PanelObject.transform.Find("Bg/Title/Title").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.PanelObject.transform.Find("Bg/Info/Info/InfoTpl"); + this.m_InfoPool.SetupPool(null, transform.gameObject, SkyArenaInfoHandler.TEAM_MEMBER_NUM, false); + Transform transform2 = base.PanelObject.transform.Find("Bg/ItemList/Item/ItemTpl"); + this.m_ItemPool.SetupPool(null, transform2.gameObject, 5u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Return.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + this.doc.SendLeaveScene(); + return true; + } + + private void OnAddFriendClick(IXUISprite sp) + { + DlgBase.singleton.AddFriendById(sp.ID); + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnShowUI(); + } + + private void OnShowUI() + { + XLevelRewardDocument.SkyArenaData skyArenaBattleData = this.doc.SkyArenaBattleData; + XSkyArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + specificDocument.HideVSInfo(); + int num = 0; + this.m_InfoPool.FakeReturnAll(); + for (int i = 0; i < skyArenaBattleData.roleid.Count; i++) + { + XSkyArenaBattleDocument.RoleData roleData; + bool flag = !specificDocument.UserIdToRole.TryGetValue(skyArenaBattleData.roleid[i], out roleData); + if (flag) + { + XSingleton.singleton.AddErrorLog("UID:" + skyArenaBattleData.roleid[i] + " No Find!", null, null, null, null, null); + } + else + { + bool flag2 = specificDocument.MyTeam != roleData.teamid; + if (!flag2) + { + GameObject gameObject = this.m_InfoPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_InfoPool.TplHeight * num), 0f); + num++; + Transform transform = gameObject.transform.Find("Member/MVP"); + transform.gameObject.SetActive(skyArenaBattleData.ismvp[i]); + IXUISprite ixuisprite = gameObject.transform.Find("Member/Avatar").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)roleData.job)); + IXUILabel ixuilabel = gameObject.transform.Find("Member/Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(roleData.name); + IXUILabel ixuilabel2 = gameObject.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(skyArenaBattleData.killcount[i].ToString()); + IXUILabel ixuilabel3 = gameObject.transform.Find("Dead").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(skyArenaBattleData.deathcount[i].ToString()); + Transform transform2 = gameObject.transform.Find("AddFriend"); + IXUILabel ixuilabel4 = gameObject.transform.Find("Favorability").GetComponent("XUILabel") as IXUILabel; + bool flag3 = skyArenaBattleData.roleid[i] == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + transform2.gameObject.SetActive(false); + ixuilabel4.gameObject.SetActive(false); + } + else + { + bool flag4 = DlgBase.singleton.IsMyFriend(skyArenaBattleData.roleid[i]); + if (flag4) + { + transform2.gameObject.SetActive(false); + ixuilabel4.gameObject.SetActive(true); + ixuilabel4.SetText(DlgBase.singleton.GetFriendDegreeAll(skyArenaBattleData.roleid[i]).ToString()); + } + else + { + transform2.gameObject.SetActive(true); + ixuilabel4.gameObject.SetActive(false); + IXUISprite ixuisprite2 = gameObject.transform.Find("AddFriend/Add").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = skyArenaBattleData.roleid[i]; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddFriendClick)); + } + } + } + } + } + this.m_InfoPool.ActualReturnAll(false); + this.m_Title.SetText(string.Format(XSingleton.singleton.GetString("SKY_ARENA_REWARD"), this.doc.SkyArenaBattleData.floor.ToString())); + this.m_ItemPool.FakeReturnAll(); + for (int j = 0; j < skyArenaBattleData.item.Count; j++) + { + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)skyArenaBattleData.item[j].itemID, (int)skyArenaBattleData.item[j].itemCount, false); + gameObject2.transform.localPosition = new Vector3(((float)j + 0.5f - (float)skyArenaBattleData.item.Count / 2f) * (float)this.m_ItemPool.TplWidth, 0f, 0f); + IXUISprite ixuisprite3 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)skyArenaBattleData.item[j].itemID; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + } + this.m_ItemPool.ActualReturnAll(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardSkyArenaHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardSkyArenaHandler.cs.meta new file mode 100644 index 00000000..7db5bead --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardSkyArenaHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d73ba3c08d9abd4d9e3dfc6606b3295 +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardStageFailHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardStageFailHandler.cs new file mode 100644 index 00000000..eed91907 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardStageFailHandler.cs @@ -0,0 +1,95 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardStageFailHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardStageFailFrame"; + } + } + + private XLevelRewardDocument _doc = null; + + private IXUIButton _return_button; + + private IXUILabel _fail_tip; + + private GameObject _cancel; + + private GameObject _retry; + + private IXUIButton _retry_return_button; + + private IXUIButton _retry_retry_button; + + private IXUILabel _retry_tip; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + public void InitUI() + { + this._return_button = (base.PanelObject.transform.Find("Cancel/Cancel").GetComponent("XUIButton") as IXUIButton); + this._fail_tip = (base.PanelObject.transform.Find("Cancel/FailedText").GetComponent("XUILabel") as IXUILabel); + this._retry_return_button = (base.PanelObject.transform.Find("Retry/Cancel").GetComponent("XUIButton") as IXUIButton); + this._retry_retry_button = (base.PanelObject.transform.Find("Retry/retry").GetComponent("XUIButton") as IXUIButton); + this._retry_tip = (base.PanelObject.transform.Find("Retry/FailedText").GetComponent("XUILabel") as IXUILabel); + this._cancel = base.PanelObject.transform.Find("Cancel").gameObject; + this._retry = base.PanelObject.transform.Find("Retry").gameObject; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._return_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + this._retry_return_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + this._retry_retry_button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRetryClicked)); + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + XSingleton.singleton.SendLevelFailData(); + this._doc.SendLeaveScene(); + return true; + } + + private bool OnRetryClicked(IXUIButton button) + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = XSingleton.singleton.SceneID; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_TOWER; + if (flag) + { + this._cancel.SetActive(false); + this._retry.SetActive(true); + this._retry_tip.SetText(sceneData.FailText); + } + else + { + this._fail_tip.SetText(sceneData.FailText); + this._cancel.SetActive(true); + this._retry.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardStageFailHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardStageFailHandler.cs.meta new file mode 100644 index 00000000..044599df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardStageFailHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93a1e7a7cf6c150448275044622c2977 +timeCreated: 1611404152 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskFailHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskFailHandler.cs new file mode 100644 index 00000000..0c53a81f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskFailHandler.cs @@ -0,0 +1,101 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardSuperRiskFailHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardSuperRiskFail"; + } + } + + private XLevelRewardDocument _doc = null; + + private IXUIButton m_ReturnButton; + + private IXUIButton m_GuildMineReturnButton; + + private IXUIButton m_ChallengeAgainButton; + + private IXUILabelSymbol m_CostLabel; + + private Transform m_SuperRiskLabel; + + private Transform m_GuildMineLabel; + + private Transform m_SuperRiskButton; + + private Transform m_GuildMineButton; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + this.m_SuperRiskLabel = base.transform.Find("Bg/SuperRisk"); + this.m_GuildMineLabel = base.transform.Find("Bg/GuildMine"); + this.m_SuperRiskButton = base.transform.Find("Bg/Button/SuperRisk"); + this.m_GuildMineButton = base.transform.Find("Bg/Button/GuildMine"); + this.m_ReturnButton = (base.transform.Find("Bg/Button/SuperRisk/Return").GetComponent("XUIButton") as IXUIButton); + this.m_GuildMineReturnButton = (base.transform.Find("Bg/Button/GuildMine/Return").GetComponent("XUIButton") as IXUIButton); + this.m_ChallengeAgainButton = (base.transform.Find("Bg/Button/SuperRisk/Continue").GetComponent("XUIButton") as IXUIButton); + this.m_CostLabel = (base.transform.Find("Bg/Button/SuperRisk/Continue/MoneyCost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("RiskReBattle", true); + this.m_CostLabel.InputText = string.Format("{0}{1}", XLabelSymbolHelper.FormatSmallIcon(sequenceList[0, 0]), sequenceList[0, 1]); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ReturnButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + this.m_GuildMineReturnButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + this.m_ChallengeAgainButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnChallengeAgainButtonClicked)); + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + this._doc.SendLeaveScene(); + return true; + } + + private bool OnChallengeAgainButtonClicked(IXUIButton button) + { + this._doc.SendReEnterRiskBattle(); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVP || XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVE; + if (flag) + { + this.m_SuperRiskLabel.gameObject.SetActive(false); + this.m_SuperRiskButton.gameObject.SetActive(false); + this.m_GuildMineLabel.gameObject.SetActive(true); + this.m_GuildMineButton.gameObject.SetActive(true); + XSingleton.singleton.RemoveCachedUI(XSysDefine.XSys_Team); + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument.IsNeedShowMainUI = true; + } + else + { + this.m_SuperRiskLabel.gameObject.SetActive(true); + this.m_SuperRiskButton.gameObject.SetActive(true); + this.m_GuildMineLabel.gameObject.SetActive(false); + this.m_GuildMineButton.gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskFailHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskFailHandler.cs.meta new file mode 100644 index 00000000..4c9d489f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskFailHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 50f263eeaa2057748a29c5d9317f6491 +timeCreated: 1611403704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskHandler.cs new file mode 100644 index 00000000..3e731547 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskHandler.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardSuperRiskHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardSuperRiskFrame"; + } + } + + private XLevelRewardDocument _doc = null; + + private IXUIButton m_ReturnButton; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_SuperRisk; + + private Transform m_GuildMine; + + private IXUILabel m_MineCount; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.InitUI(); + } + + private void InitUI() + { + this.m_SuperRisk = base.transform.Find("Bg/ItemList/SuperRisk"); + this.m_GuildMine = base.transform.Find("Bg/ItemList/GuildMine"); + this.m_MineCount = (this.m_GuildMine.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.m_ReturnButton = (base.transform.Find("Bg/Button/Back").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/ItemList/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ReturnButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnButtonClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVP || XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVE; + if (flag) + { + this.m_SuperRisk.gameObject.SetActive(false); + this.m_GuildMine.gameObject.SetActive(true); + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + XLevelRewardDocument.GuildMineData guildMineBattleData = specificDocument.GuildMineBattleData; + this.RefreshReward(guildMineBattleData.item); + this.RefreshMine(guildMineBattleData.mine); + XSingleton.singleton.RemoveCachedUI(XSysDefine.XSys_Team); + XGuildMineMainDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument2.IsNeedShowMainUI = true; + } + else + { + this.m_SuperRisk.gameObject.SetActive(true); + this.m_GuildMine.gameObject.SetActive(false); + this.RefreshReward(this._doc.Items); + } + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + this._doc.SendLeaveScene(); + return true; + } + + public void RefreshReward(List item) + { + this.m_ItemPool.ReturnAll(false); + float num = (float)(item.Count - 1) / 2f * (float)this.m_ItemPool.TplWidth; + for (int i = 0; i < item.Count; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)item[i].itemID; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)item[i].itemID, (int)item[i].itemCount, false); + gameObject.transform.localPosition = new Vector3(this.m_ItemPool.TplPos.x + (float)(i * this.m_ItemPool.TplWidth) - num, this.m_ItemPool.TplPos.y); + bool isbind = item[i].isbind; + if (isbind) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + + public void RefreshMine(uint count) + { + this.m_MineCount.SetText(count.ToString()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskHandler.cs.meta new file mode 100644 index 00000000..1aa0bfe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardSuperRiskHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6f5464d3f7b88e43858d28ccfdae200 +timeCreated: 1611404748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueBigHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueBigHandler.cs new file mode 100644 index 00000000..56766409 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueBigHandler.cs @@ -0,0 +1,275 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardTeamLeagueBigHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardTeamLeagueBig"; + } + } + + public static readonly uint TEAM_MEMBER_NUM = 4u; + + private IXUITweenTool m_Tween; + + private IXUIButton m_Close; + + private Transform m_Reward; + + private IXUILabel m_Rank; + + private IXUILabel m_RankTip; + + private IXUISprite m_RankPic; + + private IXUILabel m_Point; + + private IXUISprite m_PointPic; + + private IXUILabel m_Honor; + + private XUIPool m_DetailLeftPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_DetailRightPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform[,] m_Detail = new Transform[2, (int)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailLevel = new IXUILabel[2, (int)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM]; + + private IXUISprite[,] m_DetailAvatar = new IXUISprite[2, (int)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM]; + + private IXUISprite[,] m_DetailProfession = new IXUISprite[2, (int)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailName = new IXUILabel[2, (int)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailKillNum = new IXUILabel[2, (int)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM]; + + private Transform[,] m_DetailNoPlay = new Transform[2, (int)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[] m_TeamName = new IXUILabel[2]; + + private IXUILabel[] m_Server = new IXUILabel[2]; + + private IXUISprite[] m_Result = new IXUISprite[2]; + + private Transform[] m_None = new Transform[2]; + + protected override void Init() + { + base.Init(); + this.m_Tween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Close = (base.transform.Find("Bg").GetComponent("XUIButton") as IXUIButton); + this.InitTeam(base.transform.Find("Bg/TeamL"), 0); + this.InitTeam(base.transform.Find("Bg/TeamR"), 1); + Transform transform = base.transform.Find("Bg/Left/DetailTpl"); + this.m_DetailLeftPool.SetupPool(null, transform.gameObject, LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM, false); + Transform transform2 = base.transform.Find("Bg/Right/DetailTpl"); + this.m_DetailRightPool.SetupPool(null, transform2.gameObject, LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM, false); + this.InitDetail(this.m_DetailLeftPool, 0); + this.InitDetail(this.m_DetailRightPool, 1); + this.m_Reward = base.transform.Find("Bg/Reward"); + this.m_Rank = (this.m_Reward.Find("Rank").GetComponent("XUILabel") as IXUILabel); + this.m_RankTip = (this.m_Reward.Find("Rank/RankTip").GetComponent("XUILabel") as IXUILabel); + this.m_RankPic = (this.m_Reward.Find("Rank/RankPic").GetComponent("XUISprite") as IXUISprite); + this.m_Point = (this.m_Reward.Find("Point").GetComponent("XUILabel") as IXUILabel); + this.m_PointPic = (this.m_Reward.Find("Point/PointPic").GetComponent("XUISprite") as IXUISprite); + this.m_Honor = (this.m_Reward.Find("Honor").GetComponent("XUILabel") as IXUILabel); + this.CloseTween(); + } + + private void InitTeam(Transform t, int team) + { + this.m_TeamName[team] = (t.Find("TeamName").GetComponent("XUILabel") as IXUILabel); + this.m_Server[team] = (t.Find("Server").GetComponent("XUILabel") as IXUILabel); + this.m_Result[team] = (t.Find("Result").GetComponent("XUISprite") as IXUISprite); + this.m_None[team] = t.Find("None"); + } + + private void InitDetail(XUIPool pool, int team) + { + pool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM)) + { + GameObject gameObject = pool.FetchGameObject(false); + bool flag = team == 0; + if (flag) + { + this.m_Detail[team, num] = base.transform.Find(string.Format("Bg/Left/Detail{0}", num)); + } + bool flag2 = team == 1; + if (flag2) + { + this.m_Detail[team, num] = base.transform.Find(string.Format("Bg/Right/Detail{0}", num)); + } + XSingleton.singleton.AddChild(this.m_Detail[team, num], gameObject.transform); + this.m_DetailLevel[team, num] = (gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_DetailAvatar[team, num] = (gameObject.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_DetailProfession[team, num] = (gameObject.transform.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_DetailName[team, num] = (gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_DetailKillNum[team, num] = (gameObject.transform.Find("KillNum").GetComponent("XUILabel") as IXUILabel); + this.m_DetailNoPlay[team, num] = gameObject.transform.Find("NoPlay"); + num++; + } + pool.ActualReturnAll(false); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public void SetRewardData(LeagueBattleResultNtf data) + { + XSingleton.singleton.AddGreenLog("ShowTeamLeagueBigReward", null, null, null, null, null); + XTeamLeagueBattleDocument specificDocument = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + bool flag = specificDocument.BattleBaseInfoBlue == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("TeamLeague SetBigRewardData: BattleBaseInfoBlue is Null", null, null, null, null, null); + } + else + { + bool flag2 = specificDocument.BattleBaseInfoBlue.league_teamid == data.winteam.league_teamid; + bool flag3 = specificDocument.BattleBaseInfoBlue.league_teamid == data.loseteam.league_teamid; + bool flag4 = flag2 ^ !flag3; + if (flag4) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "MyTeamID:", + specificDocument.BattleBaseInfoBlue.league_teamid, + "\nLeagueBattleResultNtfTeamID:", + data.winteam.league_teamid, + " ", + data.loseteam.league_teamid + }), null, null, null, null, null); + } + else + { + this.SetDetail(data.winteam, flag2, true); + this.SetDetail(data.loseteam, flag3, false); + bool active = specificDocument.FindBlueMember(XSingleton.singleton.XPlayerData.RoleID) || specificDocument.FindRedMember(XSingleton.singleton.XPlayerData.RoleID); + bool flag5 = data.type == LeagueBattleType.LeagueBattleType_Eliminate || data.type == LeagueBattleType.LeagueBattleType_CrossEliminate; + if (flag5) + { + active = false; + } + this.m_Reward.gameObject.SetActive(active); + this.m_Tween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnEndMoveOver)); + this.m_Tween.PlayTween(true, -1f); + } + } + } + + private void SetDetail(LeagueBattleResultTeam data, bool isLeft, bool isWin) + { + int num = isLeft ? 0 : 1; + this.m_TeamName[num].SetText(data.name); + this.m_Server[num].SetText(data.servername); + if (isWin) + { + this.m_Result[num].SetSprite("bhdz_win"); + } + else + { + this.m_Result[num].SetSprite("bhdz_lose"); + } + this.m_None[num].gameObject.SetActive(data.members.Count == 0); + if (isLeft) + { + this.m_Honor.SetText(data.honorpoint.ToString()); + this.m_Rank.SetText(data.rank_change.ToString()); + bool flag = data.rank_change >= 0; + if (flag) + { + this.m_Rank.SetText(string.Format("+{0}", data.rank_change.ToString())); + this.m_RankTip.SetText(XSingleton.singleton.GetString("TEAM_LEAGUE_RANK_UP")); + this.m_RankPic.SetSprite("hall_zljt_0"); + } + else + { + this.m_Rank.SetText(data.rank_change.ToString()); + this.m_RankTip.SetText(XSingleton.singleton.GetString("TEAM_LEAGUE_RANK_DOWN")); + this.m_RankPic.SetSprite("hall_zljt_1"); + } + bool flag2 = data.score_change >= 0; + if (flag2) + { + this.m_Point.SetText(string.Format("+{0}", data.score_change.ToString())); + this.m_PointPic.SetSprite("hall_zljt_0"); + } + else + { + this.m_Point.SetText(data.score_change.ToString()); + this.m_PointPic.SetSprite("hall_zljt_1"); + } + } + for (int i = 0; i < data.members.Count; i++) + { + this.m_Detail[num, i].gameObject.SetActive(true); + this.m_DetailLevel[num, i].SetText(data.members[i].basedata.level.ToString()); + this.m_DetailAvatar[num, i].SetSprite(XSingleton.singleton.GetProfHeadIcon((int)data.members[i].basedata.profession)); + this.m_DetailProfession[num, i].SetSprite(XSingleton.singleton.GetProfIcon((int)data.members[i].basedata.profession)); + this.m_DetailName[num, i].SetText(data.members[i].basedata.name); + this.m_DetailKillNum[num, i].SetText(data.members[i].killnum.ToString()); + this.m_DetailNoPlay[num, i].gameObject.SetActive(!data.members[i].is_up); + } + int num2 = data.members.Count; + while ((long)num2 < (long)((ulong)LevelRewardTeamLeagueBigHandler.TEAM_MEMBER_NUM)) + { + this.m_Detail[num, num2].gameObject.SetActive(false); + num2++; + } + } + + private void OnEndMoveOver(IXUITweenTool tween) + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.SendLeaveScene(); + return true; + } + + public void CloseTween() + { + bool activeSelf = this.m_Tween.gameObject.activeSelf; + if (activeSelf) + { + this.m_Tween.gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueBigHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueBigHandler.cs.meta new file mode 100644 index 00000000..ce7977db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueBigHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c6254a191891ac4aa7c89c3e2c10bc2 +timeCreated: 1611404232 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueSmallHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueSmallHandler.cs new file mode 100644 index 00000000..c2ea45f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueSmallHandler.cs @@ -0,0 +1,136 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardTeamLeagueSmallHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardTeamLeagueSmall"; + } + } + + private IXUITweenTool m_Tween; + + private IXUILabel[] m_DetailLevel = new IXUILabel[2]; + + private IXUISprite[] m_DetailAvatar = new IXUISprite[2]; + + private IXUISprite[] m_DetailProfession = new IXUISprite[2]; + + private IXUILabel[] m_DetailName = new IXUILabel[2]; + + private IXUISprite[] m_DetailResult = new IXUISprite[2]; + + private IXUILabel[] m_DetailHP = new IXUILabel[2]; + + protected override void Init() + { + base.Init(); + this.m_Tween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this.InitDetail(base.transform.Find("Bg/Left"), 0); + this.InitDetail(base.transform.Find("Bg/Right"), 1); + this.CloseTween(); + } + + private void InitDetail(Transform t, int team) + { + Transform transform = t.Find("Detail/DetailTpl"); + this.m_DetailLevel[team] = (transform.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_DetailAvatar[team] = (transform.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_DetailProfession[team] = (transform.transform.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_DetailName[team] = (transform.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_DetailResult[team] = (transform.transform.Find("Result").GetComponent("XUISprite") as IXUISprite); + this.m_DetailHP[team] = (transform.Find("HP").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public void SetRewardData(LeagueBattleOneResultNtf data) + { + XSingleton.singleton.AddGreenLog("ShowTeamLeagueSmallReward", null, null, null, null, null); + XTeamLeagueBattleDocument specificDocument = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + bool flag = specificDocument.FindBlueMember(data.winrole.roleid); + bool flag2 = specificDocument.FindBlueMember(data.loserole.roleid); + bool flag3 = flag ^ !flag2; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "winroleId:", + data.winrole.roleid, + " isMyTeam:", + flag.ToString() + }), null, null, null, null, null); + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "loseroleId:", + data.loserole.roleid, + " isMyTeam:", + flag2.ToString() + }), null, null, null, null, null); + } + else + { + this.SetDetail(data.winrole, data.winhppercent, flag, true); + this.SetDetail(data.loserole, data.losehppercent, flag2, false); + this.m_Tween.PlayTween(true, -1f); + } + } + + private void SetDetail(LeagueBattleRoleBrief data, float hp, bool isLeft, bool isWin) + { + int num = isLeft ? 0 : 1; + this.m_DetailLevel[num].SetText(data.level.ToString()); + this.m_DetailAvatar[num].SetSprite(XSingleton.singleton.GetProfHeadIcon((int)data.profession)); + this.m_DetailProfession[num].SetSprite(XSingleton.singleton.GetProfIcon((int)data.profession)); + this.m_DetailName[num].SetText(data.name); + if (isWin) + { + this.m_DetailResult[num].SetSprite("bhdz_win"); + } + else + { + this.m_DetailResult[num].SetSprite("bhdz_lose"); + } + this.m_DetailHP[num].SetText(string.Format("{0}%", hp.ToString("f2"))); + } + + public void CloseTween() + { + bool flag = this.m_Tween != null && this.m_Tween.gameObject.activeSelf; + if (flag) + { + this.m_Tween.gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueSmallHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueSmallHandler.cs.meta new file mode 100644 index 00000000..2ec7848d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardTeamLeagueSmallHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cde613a845aebdf4db4d719d677d27d3 +timeCreated: 1611404576 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardTerritoryHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardTerritoryHandler.cs new file mode 100644 index 00000000..339e0651 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardTerritoryHandler.cs @@ -0,0 +1,196 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardTerritoryHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/GuildTerritoryResult"; + } + } + + private XGuildTerritoryDocument _doc = null; + + private IXUIButton m_btn_close; + + private IXUISprite mSprGuild; + + private IXUILabel m_lblGuildName; + + private IXUILabel m_lblTown; + + private IXUIWrapContent mGuildWrap; + + private IXUIWrapContent mRankWrap; + + public IXUILabel m_lblMyRank; + + private XUIPool mRwdPool; + + private GameObject mRwdTpl; + + private Vector3 tplPos; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + this.InitUI(); + } + + public void InitUI() + { + this.m_btn_close = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.mSprGuild = (base.transform.Find("Bg/Town").GetComponent("XUISprite") as IXUISprite); + this.m_lblGuildName = (base.transform.Find("Bg/Town/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_lblTown = (base.transform.Find("Bg/Town/TownName").GetComponent("XUILabel") as IXUILabel); + this.mRankWrap = (base.transform.Find("Bg/RankPanel/wrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.mGuildWrap = (base.transform.Find("Bg/guilds/wrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_lblMyRank = (base.transform.Find("Bg/Reward/Rank").GetComponent("XUILabel") as IXUILabel); + this.mRwdTpl = base.transform.Find("Bg/Reward/ItemTpl").gameObject; + this.tplPos = this.mRwdTpl.transform.localPosition; + this.mRankWrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapRankItemUpdate)); + this.mGuildWrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapGuildItemUpdate)); + this.mRwdPool = new XUIPool(XSingleton.singleton.m_uiTool); + this.mRwdPool.SetupPool(this.mRwdTpl.transform.parent.gameObject, this.mRwdTpl, 2u, true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btn_close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + private bool OnCloseClick(IXUIButton button) + { + PtcC2G_LeaveSceneReq proto = new PtcC2G_LeaveSceneReq(); + XSingleton.singleton.Send(proto); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT || XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT; + if (flag) + { + this._doc.SendGCFCommonReq(GCFReqType.GCF_FIGHT_RESULT); + } + } + + public void RefreshAll() + { + this.RefreshTitleInfo(); + this.RefreshGuildsInfo(); + this.RefreshMembersInfo(); + this.RefreshMyselfInfo(); + this.RefreshRwds(); + } + + private void RefreshTitleInfo() + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + TerritoryBattle.RowData byID = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(specificDocument.territoryid); + bool flag = byID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("territory is nil, id: " + specificDocument.territoryid, null, null, null, null, null); + } + else + { + this.mSprGuild.SetSprite(byID.territoryIcon); + this.m_lblGuildName.SetText(specificDocument.winguild.guildname); + this.m_lblTown.SetText(byID.territoryname); + } + } + + public void RefreshGuildsInfo() + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.guilds.Sort(new Comparison(this.SortGuild)); + this.mGuildWrap.SetContentCount(specificDocument.guilds.Count, false); + } + + private int SortGuild(GCFGuild x, GCFGuild y) + { + return (int)(y.brief.point - x.brief.point); + } + + public void RefreshMembersInfo() + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + this.mRankWrap.SetContentCount(specificDocument.roles.Count, false); + } + + private void RefreshMyselfInfo() + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + this.m_lblMyRank.SetText(specificDocument.mmyinfo.rank.ToString()); + } + + private void WrapGuildItemUpdate(Transform t, int index) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + List guilds = specificDocument.guilds; + bool flag = guilds.Count > index; + if (flag) + { + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Score").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(specificDocument.guilds[index].brief.guildname); + ixuilabel2.SetText(specificDocument.guilds[index].brief.point.ToString()); + ixuisprite.SetSprite(XGuildDocument.GetPortraitName((int)specificDocument.guilds[index].brief.guildicon)); + } + } + + private void WrapRankItemUpdate(Transform t, int index) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + List roles = specificDocument.roles; + bool flag = roles.Count > index; + if (flag) + { + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Times").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("feats").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(roles[index].rank.ToString()); + ixuilabel2.SetText(roles[index].rolename); + ixuilabel3.SetText(roles[index].killcount.ToString()); + ixuilabel4.SetText(roles[index].occupycount.ToString()); + ixuilabel5.SetText(roles[index].feats.ToString()); + } + } + + private void RefreshRwds() + { + this.mRwdPool.ReturnAll(false); + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + List rwds = specificDocument.rwds; + for (int i = 0; i < rwds.Count; i++) + { + GameObject gameObject = this.mRwdPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.tplPos.x + (float)(this.mRwdPool.TplWidth * i), this.tplPos.y, this.tplPos.z); + XItem xitem = XBagDocument.MakeXItem((int)rwds[i].itemID, rwds[i].isbind); + xitem.itemCount = (int)rwds[i].itemCount; + XItemDrawerMgr.Param.bBinding = rwds[i].isbind; + XSingleton.singleton.DrawItem(gameObject, xitem); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rwds[i].itemID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardTerritoryHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardTerritoryHandler.cs.meta new file mode 100644 index 00000000..3aaa89c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardTerritoryHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fea4da1babbe2e54a879a4f9f76ac414 +timeCreated: 1611404942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardWeekendPartyBattleHandler.cs b/Client/Assets/Scripts/XMainClient/LevelRewardWeekendPartyBattleHandler.cs new file mode 100644 index 00000000..8c0a6d68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardWeekendPartyBattleHandler.cs @@ -0,0 +1,260 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class LevelRewardWeekendPartyBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/LevelReward/LevelRewardWeekendParty"; + } + } + + private XLevelRewardDocument _doc = null; + + private XUIPool m_PlayerPool_L = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_PlayerPool_R = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private GameObject m_Win; + + private GameObject m_Lose; + + private GameObject m_Draw; + + private IXUIButton m_BackBtn; + + private IXUILabel m_Time; + + private IXUILabel m_Score1; + + private IXUILabel m_Score2; + + private GameObject m_TypeKill; + + private GameObject m_TypeDeath; + + private GameObject m_TypeTime; + + private GameObject m_TypeRank; + + private GameObject m_TypeOnlyScore; + + private float m_leaveTime; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + this.m_Win = base.PanelObject.transform.Find("Bg/Result/win").gameObject; + this.m_Lose = base.PanelObject.transform.Find("Bg/Result/lose").gameObject; + this.m_Draw = base.PanelObject.transform.Find("Bg/Result/draw").gameObject; + this.m_Time = (base.PanelObject.transform.Find("Bg/Board/Time").GetComponent("XUILabel") as IXUILabel); + this.m_BackBtn = (base.PanelObject.transform.Find("Bg/button/Continue").GetComponent("XUIButton") as IXUIButton); + this.m_Score1 = (base.PanelObject.transform.Find("Bg/Board/team1/Score/T").GetComponent("XUILabel") as IXUILabel); + this.m_Score2 = (base.PanelObject.transform.Find("Bg/Board/team2/Score/T").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.PanelObject.transform.Find("Bg/Board/team1/Panel/PlayerTpl"); + this.m_PlayerPool_L.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + transform = base.PanelObject.transform.Find("Bg/Board/team2/Panel/PlayerTpl"); + this.m_PlayerPool_R.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + transform = base.PanelObject.transform.Find("Bg/button/Reward/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 24u, false); + this.m_TypeKill = base.PanelObject.transform.Find("Bg/Board/Game_kill").gameObject; + this.m_TypeDeath = base.PanelObject.transform.Find("Bg/Board/Game_death").gameObject; + this.m_TypeTime = base.PanelObject.transform.Find("Bg/Board/Game_time").gameObject; + this.m_TypeRank = base.PanelObject.transform.Find("Bg/Board/Game_rank").gameObject; + this.m_TypeOnlyScore = base.PanelObject.transform.Find("Bg/Board/Game_OnlyScore").gameObject; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BackBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBackBtnClick)); + } + + private bool OnBackBtnClick(IXUIButton btn) + { + bool flag = Time.time - this.m_leaveTime < 5f; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_leaveTime = Time.time; + XSingleton.singleton.ReqLeaveScene(); + result = true; + } + return result; + } + + private bool OnShareBtnClick(IXUIButton btn) + { + XSingleton.singleton.shareCallbackType = ShareCallBackType.WeekShare; + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.ShowGlory); + XSingleton.singleton.StartExternalScreenShotView(null); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowUI(); + } + + public void ShowUI() + { + DlgBase.singleton.SetVisible(true, true); + base.SetVisible(true); + this.m_Time.SetText(XSingleton.singleton.TimeFormatString((int)this._doc.WeekendPartyBattleData.WarTime, 2, 3, 4, false, true)); + this.m_Win.SetActive(this._doc.WeekendPartyBattleData.Team1Score > this._doc.WeekendPartyBattleData.Team2Score); + this.m_Lose.SetActive(this._doc.WeekendPartyBattleData.Team1Score < this._doc.WeekendPartyBattleData.Team2Score); + this.m_Draw.SetActive(this._doc.WeekendPartyBattleData.Team1Score == this._doc.WeekendPartyBattleData.Team2Score); + this.m_Score1.SetText(this._doc.WeekendPartyBattleData.Team1Score.ToString()); + this.m_Score2.SetText(this._doc.WeekendPartyBattleData.Team2Score.ToString()); + this.m_TypeKill.SetActive(false); + this.m_TypeDeath.SetActive(false); + this.m_TypeTime.SetActive(false); + this.m_TypeRank.SetActive(false); + this.m_TypeOnlyScore.SetActive(false); + switch (XSingleton.singleton.SceneType) + { + case SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT: + this.m_TypeKill.SetActive(true); + break; + case SceneType.SCENE_WEEKEND4V4_GHOSTACTION: + case SceneType.SCENE_WEEKEND4V4_DUCK: + this.m_TypeOnlyScore.SetActive(true); + break; + case SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE: + this.m_TypeDeath.SetActive(true); + break; + case SceneType.SCENE_WEEKEND4V4_CRAZYBOMB: + this.m_TypeDeath.SetActive(true); + break; + case SceneType.SCENE_WEEKEND4V4_HORSERACING: + this.m_TypeRank.SetActive(true); + break; + } + this._doc.WeekendPartyBattleData.AllRoleData.Sort(new Comparison(XWeekendPartyDocument.SortRoleRank)); + this.m_PlayerPool_L.ReturnAll(false); + this.m_PlayerPool_R.ReturnAll(false); + int num = 0; + int num2 = 0; + uint num3 = (this._doc.WeekendPartyBattleData.AllRoleData.Count > 0) ? this._doc.WeekendPartyBattleData.AllRoleData[0].score : 0u; + uint num4 = (this._doc.WeekendPartyBattleData.AllRoleData.Count > 0) ? this._doc.WeekendPartyBattleData.AllRoleData[0].beKilled : 0u; + for (int i = 0; i < this._doc.WeekendPartyBattleData.AllRoleData.Count; i++) + { + this._doc.WeekendPartyBattleData.AllRoleData[i].Rank = i + 1; + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE; + bool isMVP; + if (flag) + { + isMVP = (this._doc.WeekendPartyBattleData.AllRoleData[i].beKilled == num4); + } + else + { + isMVP = (this._doc.WeekendPartyBattleData.AllRoleData[i].score == num3); + } + bool flag2 = this._doc.WeekendPartyBattleData.AllRoleData[i].redBlue == this._doc.WeekendPartyBattleData.PlayerRedBlue; + XSingleton.singleton.AddLog("WeekendPary result Name = " + this._doc.WeekendPartyBattleData.AllRoleData[i].roleName + ", redblue = " + this._doc.WeekendPartyBattleData.AllRoleData[i].redBlue.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("WeekendPary result isLeft = " + flag2.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + this.SetupData(flag2 ? this.m_PlayerPool_L.FetchGameObject(false) : this.m_PlayerPool_R.FetchGameObject(false), this._doc.WeekendPartyBattleData.AllRoleData[i], flag2 ? num : num2, flag2, isMVP); + bool flag3 = flag2; + if (flag3) + { + num++; + } + else + { + num2++; + } + } + bool flag4 = false; + for (int j = 0; j < this._doc.WeekendPartyBattleData.HasRewardsID.Count; j++) + { + bool flag5 = this._doc.WeekendPartyBattleData.HasRewardsID[j] == XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + flag4 = true; + } + } + bool flag6 = flag4; + if (flag6) + { + XWeekendPartyDocument specificDocument = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + WeekEnd4v4List.RowData activityInfo = specificDocument.GetActivityInfo(specificDocument.CurrActID); + bool flag7 = activityInfo != null; + if (flag7) + { + SeqListRef seqListRef = (this._doc.WeekendPartyBattleData.Team1Score > this._doc.WeekendPartyBattleData.Team2Score) ? activityInfo.DropItems : activityInfo.LoseDrop; + this.m_ItemPool.ReturnAll(false); + Vector3 vector = this.m_ItemPool.TplPos; + for (int k = 0; k < seqListRef.Count; k++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)seqListRef[k, 0], (int)seqListRef[k, 1], false); + gameObject.transform.localPosition = vector; + vector += new Vector3((float)this.m_ItemPool.TplWidth, 0f); + } + } + } + } + + private void SetupData(GameObject go, WeekendPartyBattleRoleInfo data, int index, bool isLeft, bool isMVP) + { + Vector3 tplPos = this.m_PlayerPool_L.TplPos; + go.transform.localScale = Vector3.one; + go.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(index * this.m_PlayerPool_L.TplHeight)); + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + GameObject gameObject = go.transform.Find("me").gameObject; + gameObject.SetActive(data.roleID == XSingleton.singleton.XPlayerData.RoleID); + } + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data.roleName); + IXUISprite ixuisprite = go.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon(data.RoleProf); + GameObject gameObject2 = go.transform.Find("MVP").gameObject; + gameObject2.SetActive(isMVP); + IXUILabel ixuilabel2 = go.transform.Find("Death").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Point").GetComponent("XUILabel") as IXUILabel; + switch (XSingleton.singleton.SceneType) + { + case SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT: + ixuilabel2.SetText(data.kill.ToString()); + ixuilabel3.SetText(data.score.ToString()); + break; + case SceneType.SCENE_WEEKEND4V4_GHOSTACTION: + case SceneType.SCENE_WEEKEND4V4_DUCK: + ixuilabel2.SetVisible(false); + ixuilabel3.SetText(data.score.ToString()); + break; + case SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE: + ixuilabel2.SetVisible(false); + ixuilabel3.SetText(data.beKilled.ToString()); + break; + case SceneType.SCENE_WEEKEND4V4_CRAZYBOMB: + ixuilabel2.SetVisible(false); + ixuilabel3.SetText(data.beKilled.ToString()); + break; + case SceneType.SCENE_WEEKEND4V4_HORSERACING: + ixuilabel2.SetText(data.Rank.ToString()); + ixuilabel3.SetText(data.score.ToString()); + break; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelRewardWeekendPartyBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/LevelRewardWeekendPartyBattleHandler.cs.meta new file mode 100644 index 00000000..03a6223f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelRewardWeekendPartyBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ca4d967186ac19418417ac124738ff8 +timeCreated: 1611403692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelSealSys.cs b/Client/Assets/Scripts/XMainClient/LevelSealSys.cs new file mode 100644 index 00000000..d01c9f9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelSealSys.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum LevelSealSys + { + NowSeal, + NextSeal, + RemoveSeal + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelSealSys.cs.meta b/Client/Assets/Scripts/XMainClient/LevelSealSys.cs.meta new file mode 100644 index 00000000..ddb70aab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelSealSys.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d326b4ed9125124db10c78148b22b70 +timeCreated: 1611404235 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LevelSpawnType.cs b/Client/Assets/Scripts/XMainClient/LevelSpawnType.cs new file mode 100644 index 00000000..ef5cf199 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelSpawnType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum LevelSpawnType + { + Spawn_Source_Monster, + Spawn_Source_Player, + Spawn_Source_Random, + Spawn_Source_Doodad + } +} diff --git a/Client/Assets/Scripts/XMainClient/LevelSpawnType.cs.meta b/Client/Assets/Scripts/XMainClient/LevelSpawnType.cs.meta new file mode 100644 index 00000000..89c2bc3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LevelSpawnType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31e6509a1cbf57a45bbb88777d824087 +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LoadFinishedCallback.cs b/Client/Assets/Scripts/XMainClient/LoadFinishedCallback.cs new file mode 100644 index 00000000..2ae1789f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LoadFinishedCallback.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate void LoadFinishedCallback(XEquipComponent equip); +} diff --git a/Client/Assets/Scripts/XMainClient/LoadFinishedCallback.cs.meta b/Client/Assets/Scripts/XMainClient/LoadFinishedCallback.cs.meta new file mode 100644 index 00000000..7556d47d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LoadFinishedCallback.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6905d31ca630e4a4b89a3701d1a3b2a0 +timeCreated: 1611403884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LotteryCD.cs b/Client/Assets/Scripts/XMainClient/LotteryCD.cs new file mode 100644 index 00000000..a07fdc7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LotteryCD.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public class LotteryCD + { + public int Times; + + public float LastLotteryTime; + } +} diff --git a/Client/Assets/Scripts/XMainClient/LotteryCD.cs.meta b/Client/Assets/Scripts/XMainClient/LotteryCD.cs.meta new file mode 100644 index 00000000..b989b3d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LotteryCD.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51e70e42fd4c74a439e5c73d40baaffd +timeCreated: 1611403708 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LoverLivenessRecord.cs b/Client/Assets/Scripts/XMainClient/LoverLivenessRecord.cs new file mode 100644 index 00000000..048fe0fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LoverLivenessRecord.cs @@ -0,0 +1,74 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class LoverLivenessRecord : LoopItemData + { + public string ShowString + { + get + { + return this.m_showString; + } + } + + public string ShowTimeStr + { + get + { + return this.m_showTimeStr; + } + } + + public string Name + { + get + { + return this.m_name; + } + } + + public uint Time + { + get + { + return this.m_time; + } + } + + private string m_showString = ""; + + private string m_showTimeStr = ""; + + private string m_name; + + private uint m_time; + + public LoverLivenessRecord(PartnerLivenessItem item) + { + this.SetString(item); + this.m_time = item.time; + this.m_name = item.name; + this.m_showTimeStr = XSingleton.singleton.TimeAgoFormatString((int)item.time); + } + + private void SetString(PartnerLivenessItem item) + { + XDailyActivitiesDocument specificDocument = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + ActivityTable.RowData activityBasicInfo = specificDocument.GetActivityBasicInfo(item.actid); + bool flag = activityBasicInfo == null; + if (flag) + { + this.m_showString = null; + XSingleton.singleton.AddErrorLog(string.Format("id is error,{0}", item.actid), null, null, null, null, null); + } + else + { + this.m_showString = string.Format(XSingleton.singleton.GetString("WeddingLoverLivenessRecord"), item.name, activityBasicInfo.name, activityBasicInfo.value); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LoverLivenessRecord.cs.meta b/Client/Assets/Scripts/XMainClient/LoverLivenessRecord.cs.meta new file mode 100644 index 00000000..64f7e736 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LoverLivenessRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbf3e979e0ea0ca47965bf4d69f2d22a +timeCreated: 1611404676 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/LuaNetNode.cs b/Client/Assets/Scripts/XMainClient/LuaNetNode.cs new file mode 100644 index 00000000..a6f3a19a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LuaNetNode.cs @@ -0,0 +1,54 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class LuaNetNode + { + public bool isRpc = false; + + public uint type; + + public uint tagID; + + public bool isOnlyLua = false; + + public byte[] buffer; + + public int length; + + public bool copyBuffer = true; + + public DelLuaRespond resp; + + public DelLuaError err; + + public void SetBuff(byte[] buf, int length) + { + bool flag = buf != null && length > 0 && this.buffer != null; + if (flag) + { + for (int i = 0; i < this.buffer.Length; i++) + { + this.buffer[i] = 0; + } + bool flag2 = buf != null; + if (flag2) + { + Array.Copy(buf, this.buffer, length); + } + this.length = length; + } + } + + public void Reset() + { + this.isRpc = false; + this.type = 0u; + this.tagID = 0u; + this.length = 0; + this.resp = null; + this.err = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/LuaNetNode.cs.meta b/Client/Assets/Scripts/XMainClient/LuaNetNode.cs.meta new file mode 100644 index 00000000..9e1a63d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/LuaNetNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc71289451e8fab4aa10f5bed0b32f0a +timeCreated: 1611404678 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MadDuckSiegeDocument.cs b/Client/Assets/Scripts/XMainClient/MadDuckSiegeDocument.cs new file mode 100644 index 00000000..775e86cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MadDuckSiegeDocument.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MadDuckSiegeDocument : XDocComponent + { + public override uint ID + { + get + { + return MadDuckSiegeDocument.uuID; + } + } + + public static MadDuckSiegeDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(MadDuckSiegeDocument.uuID) as MadDuckSiegeDocument; + } + } + + public XThemeActivityDocument ActDoc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XThemeActivityDocument.uuID) as XThemeActivityDocument; + } + } + + public int systemID + { + get + { + return XFastEnumIntEqualityComparer.ToInt(this.sys); + } + } + + public SuperActivityTime.RowData ActInfo + { + get + { + bool flag = this._actInfo != null; + SuperActivityTime.RowData actInfo; + if (flag) + { + actInfo = this._actInfo; + } + else + { + XTempActivityDocument specificDocument = XDocuments.GetSpecificDocument(XTempActivityDocument.uuID); + this._actInfo = specificDocument.GetDataBySystemID((uint)this.systemID); + bool flag2 = this._actInfo == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("SuperActivityTime SystemID:" + this.systemID + "No Find", null, null, null, null, null); + } + actInfo = this._actInfo; + } + return actInfo; + } + } + + public List ActTask + { + get + { + bool flag = this._ActTask == null; + if (flag) + { + this._ActTask = XTempActivityDocument.Doc.GetDataByActivityType(this.ActInfo.actid); + } + return this._ActTask; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MadDuckSiegeDocument"); + + public uint sceneID = uint.Parse(XSingleton.singleton.GetValue("MadDuckSceneID")); + + public XSysDefine sys = XSysDefine.XSys_ThemeActivity_MadDuck; + + private SuperActivityTime.RowData _actInfo = null; + + public string[] cost = XSingleton.singleton.GetValue("DuckTickets").Split(new char[] + { + '=' + }); + + private List _ActTask = null; + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ActivityTaskUpdate, new XComponent.XEventHandler(this.OnTaskChange)); + } + + private bool OnTaskChange(XEventArgs e) + { + XActivityTaskUpdatedArgs xactivityTaskUpdatedArgs = e as XActivityTaskUpdatedArgs; + bool flag = xactivityTaskUpdatedArgs.xActID == this.ActInfo.actid; + if (flag) + { + bool flag2 = DlgBase.singleton.m_MadDuckHandler != null && DlgBase.singleton.m_MadDuckHandler.m_ActivityExchangeRewardHandler != null && DlgBase.singleton.m_MadDuckHandler.m_ActivityExchangeRewardHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton.m_MadDuckHandler.m_ActivityExchangeRewardHandler.RefreshList(false); + } + } + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public bool GetRedPoint() + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount(int.Parse(this.cost[0])); + return itemCount >= ulong.Parse(this.cost[1]); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MadDuckSiegeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/MadDuckSiegeDocument.cs.meta new file mode 100644 index 00000000..1922e4ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MadDuckSiegeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6fd781cfac32a7418d242efaeffdbab +timeCreated: 1611404400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MadDuckSiegeFrameHandler.cs b/Client/Assets/Scripts/XMainClient/MadDuckSiegeFrameHandler.cs new file mode 100644 index 00000000..9e372cce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MadDuckSiegeFrameHandler.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MadDuckSiegeFrameHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/ThemeActivity/MadDuckSiegeFrame"; + } + } + + private MadDuckSiegeDocument doc = null; + + public ActivityExchangeRewardHandler m_ActivityExchangeRewardHandler; + + private IXUISprite m_Help; + + private IXUILabel m_HelpTip; + + private IXUIButton m_Reward; + + private IXUIButton m_Join; + + private Transform m_JoinRedPoint; + + private IXUILabel m_Time; + + private Transform m_Cost; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(MadDuckSiegeDocument.uuID); + Transform transform = base.transform.Find("Bg"); + this.m_Help = (transform.Find("Help").GetComponent("XUISprite") as IXUISprite); + this.m_HelpTip = (transform.Find("Help/T").GetComponent("XUILabel") as IXUILabel); + this.m_Reward = (transform.Find("Reward").GetComponent("XUIButton") as IXUIButton); + this.m_Join = (transform.Find("Join").GetComponent("XUIButton") as IXUIButton); + this.m_JoinRedPoint = transform.Find("Join/RedPoint"); + this.m_Time = (transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_Cost = transform.Find("Item"); + this.InitShow(); + } + + public override void RegisterEvent() + { + this.m_Reward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardOpenClick)); + this.m_Join.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinClick)); + this.m_Help.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_Cost.gameObject, int.Parse(this.doc.cost[0]), int.Parse(this.doc.cost[1]), true); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(this.m_Cost.gameObject, int.Parse(this.doc.cost[0])); + XTempActivityDocument specificDocument = XDocuments.GetSpecificDocument(XTempActivityDocument.uuID); + DateTime endTime = specificDocument.GetEndTime(this.doc.ActInfo, -1); + string arg = string.Format(XStringDefineProxy.GetString("CAREER_GROWTH_PROCESS_TIME"), this.doc.ActInfo.starttime / 10000u, this.doc.ActInfo.starttime % 10000u / 100u, this.doc.ActInfo.starttime % 100u); + string arg2 = string.Format(XStringDefineProxy.GetString("CAREER_GROWTH_PROCESS_TIME"), endTime.Year, endTime.Month, endTime.Day); + this.m_Time.SetText(string.Format("{0} ~ {1}", arg, arg2)); + this.m_HelpTip.SetText(XStringDefineProxy.GetString("MAD_DUCK_TIPS")); + this.m_JoinRedPoint.gameObject.SetActive(this.doc.GetRedPoint()); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_ActivityExchangeRewardHandler); + base.OnUnload(); + } + + private void InitShow() + { + } + + private void OnHelpClicked(IXUISprite btn) + { + DlgBase.singleton.ShowHelp(this.doc.sys); + } + + private bool OnRewardOpenClick(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this.m_ActivityExchangeRewardHandler, base.transform.Find("Bg"), true, this); + List actTask = this.doc.ActTask; + this.m_ActivityExchangeRewardHandler.SetActID(this.doc.ActInfo.actid); + this.m_ActivityExchangeRewardHandler.SetData(actTask); + return true; + } + + private bool OnJoinClick(IXUIButton btn) + { + this.doc.ActDoc.SendJoinScene(this.doc.ActInfo.actid, this.doc.sceneID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MadDuckSiegeFrameHandler.cs.meta b/Client/Assets/Scripts/XMainClient/MadDuckSiegeFrameHandler.cs.meta new file mode 100644 index 00000000..e37e7099 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MadDuckSiegeFrameHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e17e15aae28181f4d87fcb950f04db0b +timeCreated: 1611404702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MailItem.cs b/Client/Assets/Scripts/XMainClient/MailItem.cs new file mode 100644 index 00000000..0dc365c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MailItem.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class MailItem + { + public ulong id; + + public bool isRead; + + public MailState state; + + public MailType type; + + public bool isTemp; + + public string title; + + public DateTime date; + + public string content; + + public List items; + + public List xitems; + + public int valit; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MailItem.cs.meta b/Client/Assets/Scripts/XMainClient/MailItem.cs.meta new file mode 100644 index 00000000..78abad56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MailItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 678b360dbd6b55a4e970a29ac92f3cae +timeCreated: 1611403858 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MailOP.cs b/Client/Assets/Scripts/XMainClient/MailOP.cs new file mode 100644 index 00000000..11084496 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MailOP.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum MailOP + { + Read, + Delete, + Claim, + ClaimAll + } +} diff --git a/Client/Assets/Scripts/XMainClient/MailOP.cs.meta b/Client/Assets/Scripts/XMainClient/MailOP.cs.meta new file mode 100644 index 00000000..7499ce8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MailOP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1afd01913450dc94bbfd6dfce6bc688b +timeCreated: 1611403313 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MailState.cs b/Client/Assets/Scripts/XMainClient/MailState.cs new file mode 100644 index 00000000..d0d65b25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MailState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum MailState + { + NONE, + CLAIMED, + RWD + } +} diff --git a/Client/Assets/Scripts/XMainClient/MailState.cs.meta b/Client/Assets/Scripts/XMainClient/MailState.cs.meta new file mode 100644 index 00000000..6f353fd1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MailState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 788571b9a98412d4ca4b6e80125ffaa6 +timeCreated: 1611403980 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MailType.cs b/Client/Assets/Scripts/XMainClient/MailType.cs new file mode 100644 index 00000000..39dc7096 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MailType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum MailType + { + System, + Good, + Bad, + Cost + } +} diff --git a/Client/Assets/Scripts/XMainClient/MailType.cs.meta b/Client/Assets/Scripts/XMainClient/MailType.cs.meta new file mode 100644 index 00000000..84c09352 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MailType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f41f4deba3aa934e8498dd597786a5e +timeCreated: 1611403908 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs b/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs new file mode 100644 index 00000000..cb111f43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs @@ -0,0 +1,51 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class MallSystemBehaviour : DlgBehaviourBase + { + public static readonly int MAX_MONEY_NUM = 3; + + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUILabel m_ShopName; + + public List m_MoneyBoard = new List(); + + public List m_MoneyTween = new List(); + + public List m_MoneyNum = new List(); + + public List m_MoneyIcon = new List(); + + public List m_MoneyBack = new List(); + + public List m_MoneyType = new List(); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_ShopName = (base.transform.Find("Bg/ShopName").GetComponent("XUILabel") as IXUILabel); + for (int i = 0; i < MallSystemBehaviour.MAX_MONEY_NUM; i++) + { + this.m_MoneyType.Add(0); + IXUISprite item = base.transform.Find("Bg/NormalShopFrame/MoneyBoard/Money" + (i + 1).ToString() + "/board").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = base.transform.Find("Bg/NormalShopFrame/MoneyBoard/Money" + (i + 1).ToString()).GetComponent("XUILabel") as IXUILabel; + IXUISprite item2 = base.transform.Find("Bg/NormalShopFrame/MoneyBoard/Money" + (i + 1).ToString() + "/icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel item3 = base.transform.Find("Bg/NormalShopFrame/MoneyBoard/Money" + (i + 1).ToString() + "/value").GetComponent("XUILabel") as IXUILabel; + XNumberTween item4 = XNumberTween.Create(ixuilabel.gameObject.transform); + this.m_MoneyNum.Add(item3); + this.m_MoneyIcon.Add(item2); + this.m_MoneyBoard.Add(ixuilabel); + this.m_MoneyBack.Add(item); + this.m_MoneyTween.Add(item4); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs.meta new file mode 100644 index 00000000..252f0c1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MallSystemBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 320c44287a608464f91e570c74324386 +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MallType.cs b/Client/Assets/Scripts/XMainClient/MallType.cs new file mode 100644 index 00000000..955b84b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MallType.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public enum MallType + { + WEEK = 1, + COST, + LONGYU, + FASHION, + RIDE, + GIFT, + VIP, + EQUIP, + NONE + } +} diff --git a/Client/Assets/Scripts/XMainClient/MallType.cs.meta b/Client/Assets/Scripts/XMainClient/MallType.cs.meta new file mode 100644 index 00000000..5268c45d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MallType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 425d4dbdef7a2fc45a637f62460856f2 +timeCreated: 1611403639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MapSignalHandler.cs b/Client/Assets/Scripts/XMainClient/MapSignalHandler.cs new file mode 100644 index 00000000..1f98005c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MapSignalHandler.cs @@ -0,0 +1,168 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MapSignalHandler : DlgHandlerBase + { + private XMobaBattleDocument _doc = null; + + private List m_SignalBtns = new List(); + + private IXUISprite m_SwitchBtn; + + private XUIPool m_SignalPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private GameObject m_SignalTextFrame; + + private IXUISprite m_SignalHeroIcon; + + private IXUISprite m_SignalIcon; + + private IXUILabel m_SignalMsg; + + private IXUILabel m_SignalIconMsg; + + private GameObject m_SignalBoard; + + private uint _signalShowToken; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + this.m_SignalBtns.Clear(); + Transform transform = base.transform.Find("SignalFrame/OutBtn"); + for (int i = 0; i < transform.childCount; i++) + { + this.m_SignalBtns.Add(transform.Find(string.Format("SignalBtn{0}", i + 1)).GetComponent("XUISprite") as IXUISprite); + } + this.m_SwitchBtn = (base.transform.Find("SignalFrame/SwitchBtn").GetComponent("XUISprite") as IXUISprite); + Transform tpl = base.transform.Find("SignalFrame/Select/Tpl"); + this.SetupSignalPool(tpl); + this.m_SignalTextFrame = base.transform.Find("SignalFrame/Select").gameObject; + this.m_SignalTextFrame.SetActive(false); + this.m_SignalHeroIcon = (base.transform.Find("SignalBoard/HeroIcon").GetComponent("XUISprite") as IXUISprite); + this.m_SignalIcon = (base.transform.Find("SignalBoard/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_SignalMsg = (base.transform.Find("SignalBoard/Msg").GetComponent("XUILabel") as IXUILabel); + this.m_SignalIconMsg = (base.transform.Find("SignalBoard/IconMsg").GetComponent("XUILabel") as IXUILabel); + this.m_SignalBoard = base.transform.Find("SignalBoard").gameObject; + this.m_SignalBoard.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_SwitchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSignalSwitchClick)); + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this._signalShowToken); + base.OnUnload(); + } + + public void ShowSignal(string heroIcon, string heroIconAtlas, string iconStr, string msg) + { + XSingleton.singleton.KillTimer(this._signalShowToken); + this._signalShowToken = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.OnSignalShowTimeOut), null); + this.m_SignalBoard.SetActive(true); + this.m_SignalHeroIcon.spriteName = heroIcon; + bool flag = string.IsNullOrEmpty(iconStr); + if (flag) + { + this.m_SignalIcon.SetVisible(false); + this.m_SignalIconMsg.SetVisible(false); + this.m_SignalMsg.SetVisible(true); + this.m_SignalMsg.SetText(msg); + } + else + { + this.m_SignalIcon.SetVisible(true); + this.m_SignalIconMsg.SetVisible(true); + this.m_SignalMsg.SetVisible(false); + this.m_SignalIcon.spriteName = iconStr; + this.m_SignalIconMsg.SetText(msg); + } + } + + public void OnSignalShowTimeOut(object o = null) + { + this.m_SignalBoard.SetActive(false); + } + + public void SetupSignalPool(Transform tpl) + { + this.m_SignalPool.SetupPool(tpl.parent.gameObject, tpl.gameObject, 10u, false); + int num = 0; + int num2 = XMobaBattleDocument.MobaSignalReader.Table.Length; + Vector3 tplPos = this.m_SignalPool.TplPos; + int num3 = 0; + for (int i = 0; i < num2; i++) + { + MobaSignalTable.RowData rowData = XMobaBattleDocument.MobaSignalReader.Table[i]; + bool flag = !this.CheckSceneType(rowData); + if (!flag) + { + bool flag2 = num3 < this.m_SignalBtns.Count; + if (flag2) + { + this.m_SignalBtns[num3].ID = (ulong)rowData.ID; + this.m_SignalBtns[num3].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSignalBtnClick)); + num3++; + } + else + { + GameObject gameObject = this.m_SignalPool.FetchGameObject(false); + num++; + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)((num - 1) * this.m_SignalPool.TplHeight)); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rowData.ID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSignalBtnClick)); + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Text); + } + } + } + IXUISprite ixuisprite2 = tpl.parent.Find("Bg").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteHeight = 46 + this.m_SignalPool.TplHeight * (num - 1); + } + + public bool CheckSceneType(MobaSignalTable.RowData data) + { + bool flag = data.SceneType == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < data.SceneType.Length; i++) + { + bool flag2 = data.SceneType[i] == (int)XSingleton.singleton.SceneType; + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public void OnSignalBtnClick(IXUISprite iSp) + { + this._doc.SendSignal((uint)iSp.ID); + this.m_SignalTextFrame.SetActive(false); + } + + public void OnSignalSwitchClick(IXUISprite iSp) + { + this.m_SignalTextFrame.SetActive(!this.m_SignalTextFrame.activeSelf); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MapSignalHandler.cs.meta b/Client/Assets/Scripts/XMainClient/MapSignalHandler.cs.meta new file mode 100644 index 00000000..5d8d8e19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MapSignalHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5d4fdad2a4f50c4eba02e97dc9514fa +timeCreated: 1611404507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MaqueeInfo.cs b/Client/Assets/Scripts/XMainClient/MaqueeInfo.cs new file mode 100644 index 00000000..d3ac4550 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MaqueeInfo.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal class MaqueeInfo + { + public string content; + + public int level = 3; + + public int playTimes = 1; + + public int playSpeed = 160; + + public float showTime = 0f; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MaqueeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/MaqueeInfo.cs.meta new file mode 100644 index 00000000..3b24beb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MaqueeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aabf5ae7b6583944f9b6d396ac11be7c +timeCreated: 1611404305 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MasterApplyInfoItem.cs b/Client/Assets/Scripts/XMainClient/MasterApplyInfoItem.cs new file mode 100644 index 00000000..d7e29881 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MasterApplyInfoItem.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class MasterApplyInfoItem + { + public RoleBriefInfo roleInfo; + + public string applyWords; + + public bool hasApply; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MasterApplyInfoItem.cs.meta b/Client/Assets/Scripts/XMainClient/MasterApplyInfoItem.cs.meta new file mode 100644 index 00000000..57d8efa0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MasterApplyInfoItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58aa9e0bea1ade043a7018a73e0055e9 +timeCreated: 1611403758 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MatPackage.cs b/Client/Assets/Scripts/XMainClient/MatPackage.cs new file mode 100644 index 00000000..68bf931c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MatPackage.cs @@ -0,0 +1,230 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class MatPackage : IRenderObject + { + public int InstanceID + { + set + { + this.m_instanceID = value; + } + } + + private static Queue m_MatPackCache = new Queue(); + + private static Color32 color32; + + public Material srcMat = null; + + public Shader srcShader = null; + + public Color srcColor = new Color(1f, 1f, 1f, 1f); + + private int m_instanceID = -1; + + private GameObject m_renderGO = null; + + private Renderer m_render = null; + + private MaterialPropertyBlock m_mpb = new MaterialPropertyBlock(); + + private uint m_flag = 0u; + + public string debugName = ""; + + public enum EFlag + { + EShaderChanged = 1, + EShaderPropertySet, + EIsCutout = 4, + EHasColor = 8 + } + + public bool GetFlag(MatPackage.EFlag flag) + { + return (this.m_flag & (uint)flag) > 0u; + } + + public void SetFlag(MatPackage.EFlag flag, bool add) + { + if (add) + { + this.m_flag |= (uint)flag; + } + else + { + this.m_flag &= (uint)(~(uint)flag); + } + } + + public bool IsSameObj(int id) + { + return this.m_instanceID == id; + } + + public void SetRenderLayer(int layer) + { + bool flag = this.m_renderGO != null; + if (flag) + { + this.m_renderGO.layer = layer; + } + } + + public void SetShader(int type) + { + bool flag = type == 0; + if (flag) + { + this.SetFadeShader(); + } + else + { + this.SetFlag(MatPackage.EFlag.EShaderChanged, true); + } + } + + public void SetFadeShader() + { + bool flag = this.srcMat != null; + if (flag) + { + bool flag2 = this.srcShader == ShaderManager._skin8 || this.srcShader == ShaderManager._skin_blend; + if (flag2) + { + this.srcMat.shader = ShaderManager._skin_effect; + } + else + { + bool flag3 = this.srcShader == ShaderManager._skin_cutout || this.srcShader == ShaderManager._skin_cutout4; + if (!flag3) + { + this.srcMat.shader = ShaderManager._fade_maskR_noLight; + } + } + this.SetFlag(MatPackage.EFlag.EShaderChanged, true); + } + } + + public void ResetShader() + { + bool flag = this.srcMat != null; + if (flag) + { + bool flag2 = this.srcMat.shader != this.srcShader; + if (flag2) + { + this.srcMat.shader = this.srcShader; + } + this.SetFlag(MatPackage.EFlag.EShaderChanged, false); + bool flag3 = this.m_render != null && this.m_mpb != null; + if (flag3) + { + bool flag4 = this.GetFlag(MatPackage.EFlag.EHasColor); + if (flag4) + { + ShaderManager.SetColor(this.m_mpb, this.srcColor, ShaderManager._ShaderKeyIDColor0); + this.m_render.SetPropertyBlock(this.m_mpb); + } + } + } + } + + public void SetColor(byte r, byte g, byte b, byte a) + { + bool flag = this.GetFlag(MatPackage.EFlag.EShaderChanged); + if (flag) + { + MatPackage.color32.r = r; + MatPackage.color32.g = g; + MatPackage.color32.b = b; + MatPackage.color32.a = a; + ShaderManager.SetColor32(this.m_mpb, MatPackage.color32, ShaderManager._ShaderKeyIDColor0); + this.SetFlag(MatPackage.EFlag.EShaderPropertySet, true); + } + } + + public void SetColor(Color32 c) + { + bool flag = this.GetFlag(MatPackage.EFlag.EShaderChanged); + if (flag) + { + ShaderManager.SetColor(this.m_mpb, c, ShaderManager._ShaderKeyIDColor0); + this.SetFlag(MatPackage.EFlag.EShaderPropertySet, true); + } + } + + public void Update() + { + bool flag = this.m_render != null && this.m_mpb != null && this.GetFlag(MatPackage.EFlag.EShaderPropertySet); + if (flag) + { + this.m_render.SetPropertyBlock(this.m_mpb); + this.SetFlag(MatPackage.EFlag.EShaderPropertySet, false); + } + } + + public void Clean() + { + this.debugName = ""; + this.srcMat = null; + this.m_instanceID = -1; + this.m_render = null; + this.m_renderGO = null; + this.m_flag = 0u; + bool flag = this.m_mpb != null; + if (flag) + { + this.m_mpb.Clear(); + } + MatPackage.ReturnMatPack(this); + } + + private static void ReturnMatPack(MatPackage matPack) + { + MatPackage.m_MatPackCache.Enqueue(matPack); + } + + public static MatPackage GetMatPack(Material mat, Renderer render) + { + bool flag = MatPackage.m_MatPackCache.Count > 0; + MatPackage matPackage; + if (flag) + { + matPackage = MatPackage.m_MatPackCache.Dequeue(); + } + else + { + matPackage = new MatPackage(); + } + matPackage.debugName = render.gameObject.name; + matPackage.m_render = render; + matPackage.m_renderGO = render.gameObject; + bool flag2 = mat != null; + if (flag2) + { + matPackage.srcMat = mat; + matPackage.srcShader = mat.shader; + matPackage.SetFlag(MatPackage.EFlag.EIsCutout, matPackage.srcMat.HasProperty("_Cutoff")); + bool flag3 = matPackage.srcMat.HasProperty("_Color"); + matPackage.SetFlag(MatPackage.EFlag.EHasColor, flag3); + bool flag4 = flag3; + if (flag4) + { + matPackage.srcColor = matPackage.srcMat.GetColor("_Color"); + } + } + bool flag5 = render != null; + if (flag5) + { + render.GetPropertyBlock(matPackage.m_mpb); + } + return matPackage; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MatPackage.cs.meta b/Client/Assets/Scripts/XMainClient/MatPackage.cs.meta new file mode 100644 index 00000000..37537039 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MatPackage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b686747d4c5932418e1ac62741567e2 +timeCreated: 1611403798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MemberPrivilege.cs b/Client/Assets/Scripts/XMainClient/MemberPrivilege.cs new file mode 100644 index 00000000..41658ddc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MemberPrivilege.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum MemberPrivilege + { + KingdomPrivilege_Adventurer = 1, + KingdomPrivilege_Commerce, + KingdomPrivilege_Court + } +} diff --git a/Client/Assets/Scripts/XMainClient/MemberPrivilege.cs.meta b/Client/Assets/Scripts/XMainClient/MemberPrivilege.cs.meta new file mode 100644 index 00000000..3eada5db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MemberPrivilege.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 777cd00fe72f2124aae1985aff7e0afa +timeCreated: 1611403954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MentorBeenApplyedInfo.cs b/Client/Assets/Scripts/XMainClient/MentorBeenApplyedInfo.cs new file mode 100644 index 00000000..7ddc4f4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorBeenApplyedInfo.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class MentorBeenApplyedInfo + { + public MentorMsgApplyType applyType; + + public int time; + + public RoleBriefInfo roleInfo; + + public int reportTaskID; + + public ulong audioID; + + public uint audioTime; + + public string applyWords; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MentorBeenApplyedInfo.cs.meta b/Client/Assets/Scripts/XMainClient/MentorBeenApplyedInfo.cs.meta new file mode 100644 index 00000000..2764a2ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorBeenApplyedInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f0def7b312189f4ca98bdbaebf51c0d +timeCreated: 1611404132 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MentorRelationInfo.cs b/Client/Assets/Scripts/XMainClient/MentorRelationInfo.cs new file mode 100644 index 00000000..a553fc8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorRelationInfo.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class MentorRelationInfo + { + public RoleBriefInfo roleInfo; + + public MentorRelationStatus status; + + public List statusTimeList = new List(); + + public List taskList = new List(); + + public EMentorTaskStatus inheritStatus; + + public ulong breakApplyRoleID; + + public ulong inheritApplyRoleID = 0UL; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MentorRelationInfo.cs.meta b/Client/Assets/Scripts/XMainClient/MentorRelationInfo.cs.meta new file mode 100644 index 00000000..77f90e8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorRelationInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b139803a4c8497469cad65da24f5422 +timeCreated: 1611404204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MentorRelationTime.cs b/Client/Assets/Scripts/XMainClient/MentorRelationTime.cs new file mode 100644 index 00000000..926cc750 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorRelationTime.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class MentorRelationTime + { + public MentorRelationStatus status; + + public uint time; + + public ulong breakApplyRoleID; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MentorRelationTime.cs.meta b/Client/Assets/Scripts/XMainClient/MentorRelationTime.cs.meta new file mode 100644 index 00000000..37a05cca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorRelationTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76caf215f6fdd584e8fa0509b8cd9742 +timeCreated: 1611403950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MentorshipTaskInfo.cs b/Client/Assets/Scripts/XMainClient/MentorshipTaskInfo.cs new file mode 100644 index 00000000..0637efef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorshipTaskInfo.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + public class MentorshipTaskInfo + { + public int taskID; + + public int completeProgress; + + public int completeTime; + + public List taskStatusList = new List(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/MentorshipTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/MentorshipTaskInfo.cs.meta new file mode 100644 index 00000000..29114fc2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorshipTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1588724d320cfef43a42467070bf0b56 +timeCreated: 1611403263 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MentorshipTaskStatus.cs b/Client/Assets/Scripts/XMainClient/MentorshipTaskStatus.cs new file mode 100644 index 00000000..771af12f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorshipTaskStatus.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public class MentorshipTaskStatus + { + public ulong roleID; + + public uint status; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MentorshipTaskStatus.cs.meta b/Client/Assets/Scripts/XMainClient/MentorshipTaskStatus.cs.meta new file mode 100644 index 00000000..2ceedeb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MentorshipTaskStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb7ef38611a6f1c4aa624284336decbf +timeCreated: 1611404441 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MessageShowInfoItem.cs b/Client/Assets/Scripts/XMainClient/MessageShowInfoItem.cs new file mode 100644 index 00000000..62f55e9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MessageShowInfoItem.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class MessageShowInfoItem + { + public RoleBriefInfo roleInfo; + + public ulong audioID; + + public uint audioTime; + + public string promiseWords; + + public int taskID; + + public MentorMsgApplyType msgType; + + public bool applied = false; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MessageShowInfoItem.cs.meta b/Client/Assets/Scripts/XMainClient/MessageShowInfoItem.cs.meta new file mode 100644 index 00000000..611c9faa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MessageShowInfoItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76f522f5080b7164c81f28a9e109d95f +timeCreated: 1611403951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MilitaryRankBehaviour.cs b/Client/Assets/Scripts/XMainClient/MilitaryRankBehaviour.cs new file mode 100644 index 00000000..f15acb24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MilitaryRankBehaviour.cs @@ -0,0 +1,100 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MilitaryRankBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IUIDummy m_snapshotTransfrom; + + public IXUILabel m_MilitaryValue; + + public IXUILabel m_MilitaryRange; + + public IXUILabel m_NextMilitary; + + public IXUISprite m_NextMilitaryIcon; + + public IXUILabel m_MilitaryName; + + public IXUISprite m_MilitaryIcon; + + public IXUISprite m_RewardBtn; + + public IXUISprite m_RecordBtn; + + public IXUILabel m_DateTime; + + public GameObject m_RewardFrame; + + public IXUISprite m_RewardCloseBtn; + + public IXUICheckBox m_RewardSeasonIcb; + + public IXUICheckBox m_RewardResultIcb; + + public GameObject m_RewardSeasonFrame; + + public GameObject m_RewardResultFrame; + + public XUIPool m_RewardSeasonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardResultPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_BattleRecordFrame; + + public IXUICheckBox m_RecordHBtab; + + public IXUICheckBox m_RecordCPtab; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public Transform m_MyRank; + + public GameObject m_EmptyRank; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Bg/CharacterInfoFrame"); + this.m_MilitaryValue = (transform.Find("CharacterFrame/MilitaryValue").GetComponent("XUILabel") as IXUILabel); + this.m_MilitaryRange = (transform.Find("CharacterFrame/MilitaryRange").GetComponent("XUILabel") as IXUILabel); + this.m_NextMilitary = (transform.Find("CharacterFrame/Next/Text").GetComponent("XUILabel") as IXUILabel); + this.m_NextMilitaryIcon = (transform.Find("CharacterFrame/Next/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_MilitaryName = (transform.Find("CharacterFrame/MilitaryName").GetComponent("XUILabel") as IXUILabel); + this.m_MilitaryIcon = (transform.Find("CharacterFrame/MilitaryIcon").GetComponent("XUISprite") as IXUISprite); + this.m_RewardBtn = (transform.Find("CharacterFrame/RewardBtn").GetComponent("XUISprite") as IXUISprite); + this.m_RecordBtn = (transform.Find("CharacterFrame/RecordBtn").GetComponent("XUISprite") as IXUISprite); + this.m_snapshotTransfrom = (transform.Find("CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_DateTime = (base.transform.Find("Bg/Bg/CharacterInfoFrame/TitleFrame/Date").GetComponent("XUILabel") as IXUILabel); + this.m_RewardFrame = base.transform.Find("Bg/RewardFrame").gameObject; + this.m_RewardCloseBtn = (this.m_RewardFrame.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_RewardSeasonIcb = (this.m_RewardFrame.transform.Find("ToggleSeason").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RewardResultIcb = (this.m_RewardFrame.transform.Find("ToggleResult").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RewardSeasonFrame = this.m_RewardFrame.transform.Find("SeasonPanel").gameObject; + this.m_RewardResultFrame = this.m_RewardFrame.transform.Find("ResultPanel").gameObject; + Transform transform2 = this.m_RewardFrame.transform.Find("SeasonPanel/Panel/Tpl"); + this.m_RewardSeasonPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 10u, false); + transform2 = this.m_RewardFrame.transform.Find("ResultPanel/Panel/Tpl"); + this.m_RewardResultPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 10u, false); + transform2 = this.m_RewardFrame.transform.Find("SeasonPanel/Panel/ItemTpl"); + this.m_RewardItemPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 30u, false); + this.m_BattleRecordFrame = base.transform.Find("Bg/BattleRecordFrame").gameObject; + this.m_RecordHBtab = (base.transform.Find("Bg/BattleRecordFrame/HeroBattleTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RecordCPtab = (base.transform.Find("Bg/BattleRecordFrame/CaptainTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_WrapContent = (base.transform.Find("Bg/Bg/Panel/BaseList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ScrollView = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_MyRank = base.transform.Find("Bg/Bg/MyRankFrame/Tpl"); + this.m_EmptyRank = base.transform.Find("Bg/Bg/EmptyRank").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MilitaryRankBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/MilitaryRankBehaviour.cs.meta new file mode 100644 index 00000000..09f9b3f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MilitaryRankBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36b954ef83dd1c145997834b36295e90 +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MilitaryRankData.cs b/Client/Assets/Scripts/XMainClient/MilitaryRankData.cs new file mode 100644 index 00000000..255e1d7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MilitaryRankData.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class MilitaryRankData + { + public uint rank; + + public uint MilitaryLevel; + + public string name; + + public uint MilitaryPoint; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MilitaryRankData.cs.meta b/Client/Assets/Scripts/XMainClient/MilitaryRankData.cs.meta new file mode 100644 index 00000000..38cfe994 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MilitaryRankData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 512a1ef4f76a6d04da1046bc56065077 +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaBattleRecordHandler.cs b/Client/Assets/Scripts/XMainClient/MobaBattleRecordHandler.cs new file mode 100644 index 00000000..bb34a14e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaBattleRecordHandler.cs @@ -0,0 +1,328 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MobaBattleRecordHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/MobaRecords"; + } + } + + private XMobaEntranceDocument doc = null; + + private uint SelectID; + + private int KillMax; + + private int AssistsMax; + + private IXUIButton m_Close; + + private IXUILabel m_BattleTotal; + + private IXUILabel m_BattleRate; + + private IXUILabel m_BattleWin; + + private IXUILabel m_BattleLose; + + private IXUILabel m_Date; + + private IXUILabel m_Time; + + private IXUILabel m_Kill1; + + private IXUILabel m_Kill2; + + private Transform m_Empty; + + private XUIPool m_RoundPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_DetailPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_MiniIconPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XMobaEntranceDocument.uuID); + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("BattleInfo"); + this.m_BattleTotal = (transform.Find("Total").GetComponent("XUILabel") as IXUILabel); + this.m_BattleRate = (transform.Find("Rate").GetComponent("XUILabel") as IXUILabel); + this.m_BattleWin = (transform.Find("Win").GetComponent("XUILabel") as IXUILabel); + this.m_BattleLose = (transform.Find("Lose").GetComponent("XUILabel") as IXUILabel); + transform = base.transform.Find("Detail/LogMenu"); + this.m_Date = (transform.Find("Date").GetComponent("XUILabel") as IXUILabel); + this.m_Time = (transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_Kill1 = (transform.Find("KillCount/Kill1").GetComponent("XUILabel") as IXUILabel); + this.m_Kill2 = (transform.Find("KillCount/Kill2").GetComponent("XUILabel") as IXUILabel); + this.m_Empty = base.transform.Find("Detail/Empty"); + Transform transform2 = base.transform.Find("Round/RoundTpl"); + this.m_RoundPool.SetupPool(null, transform2.gameObject, 8u, false); + Transform transform3 = base.transform.Find("Detail/Panel/DetailTpl"); + this.m_DetailPool.SetupPool(null, transform3.gameObject, 8u, false); + Transform transform4 = base.transform.Find("Detail/Panel/MiniIconTpl"); + this.m_MiniIconPool.SetupPool(null, transform4.gameObject, 15u, false); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.SelectID = 0u; + this.doc.ReqMobaRecordTotal(); + this.InitShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void InitShow() + { + this.m_BattleTotal.SetText("0"); + this.m_BattleRate.SetText("0%"); + this.m_BattleWin.SetText("0"); + this.m_BattleLose.SetText("0"); + this.m_Empty.gameObject.SetActive(true); + this.m_RoundPool.ReturnAll(false); + this.InitDetail(); + } + + public void InitDetail() + { + this.m_Date.SetText("00-00"); + this.m_Time.SetText(string.Format("0{0}", XSingleton.singleton.GetString("MINUTE_DUARATION"))); + this.m_Kill1.SetText("[0096ff]0[-]"); + this.m_Kill2.SetText("[fd4343]0[-]"); + this.m_DetailPool.ReturnAll(false); + } + + public void Refresh() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.m_BattleTotal.SetText(this.doc.MatchTotalCount.ToString()); + this.m_BattleRate.SetText(string.Format("{0}%", this.doc.MatchTotalPercent)); + this.m_BattleWin.SetText(this.doc.WinCount.ToString()); + this.m_BattleLose.SetText(this.doc.LoseCount.ToString()); + bool flag2 = this.doc.RecordTotalList.Count > 0; + if (flag2) + { + this.SelectID = this.doc.RecordTotalList[this.doc.RecordTotalList.Count - 1].roundID; + this.doc.ReqMobaRecordRound(this.SelectID); + } + this.RefreshTotal(); + } + } + + public void RefreshTotal() + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + List recordTotalList = this.doc.RecordTotalList; + int num = 0; + this.m_RoundPool.FakeReturnAll(); + for (int i = recordTotalList.Count - 1; i >= 0; i--) + { + OverWatchTable.RowData dataByHeroID = XHeroBattleDocument.GetDataByHeroID(recordTotalList[i].heroID); + GameObject gameObject = this.m_RoundPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num * this.m_RoundPool.TplHeight), 0f) + this.m_RoundPool.TplPos; + num++; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + bool flag = dataByHeroID != null; + if (flag) + { + ixuilabel.SetText(dataByHeroID.Name); + } + else + { + ixuilabel.SetText(""); + } + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + Transform transform = gameObject.transform.Find("NoIcon"); + bool flag2 = dataByHeroID != null; + if (flag2) + { + ixuisprite.SetSprite(dataByHeroID.Icon, dataByHeroID.IconAtlas, false); + } + else + { + ixuisprite.SetSprite(""); + } + transform.gameObject.SetActive(dataByHeroID == null); + ixuisprite.ID = (ulong)recordTotalList[i].roundID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRoundClick)); + IXUILabel ixuilabel2 = gameObject.transform.Find("Date").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(XSingleton.singleton.TimeFormatSince1970((int)recordTotalList[i].date, XStringDefineProxy.GetString("MOBA_RECORD_DATE"), true)); + Transform transform2 = gameObject.transform.Find("Select"); + transform2.gameObject.SetActive(recordTotalList[i].roundID == this.SelectID); + Transform transform3 = gameObject.transform.Find("Win"); + Transform transform4 = gameObject.transform.Find("Lose"); + Transform transform5 = gameObject.transform.Find("Escape"); + Transform transform6 = gameObject.transform.Find("MvpWin"); + Transform transform7 = gameObject.transform.Find("MvpLose"); + transform3.gameObject.SetActive(!recordTotalList[i].isEscape && recordTotalList[i].isWin); + transform4.gameObject.SetActive(!recordTotalList[i].isEscape && !recordTotalList[i].isWin); + transform5.gameObject.SetActive(recordTotalList[i].isEscape); + transform6.gameObject.SetActive(recordTotalList[i].isMVP); + transform7.gameObject.SetActive(recordTotalList[i].isLoseMVP); + } + this.m_RoundPool.ActualReturnAll(false); + } + + public void RefreshDetail(XMobaEntranceDocument.XMobaRecordRound data) + { + bool flag = data.roundID != this.SelectID; + if (flag) + { + this.InitDetail(); + } + else + { + this.m_Empty.gameObject.SetActive(false); + this.KillMax = 0; + this.AssistsMax = 0; + for (int i = 0; i < data.team1.Count; i++) + { + this.KillMax = Math.Max(this.KillMax, data.team1[i].data.KillCount); + this.AssistsMax = Math.Max(this.AssistsMax, (int)data.team1[i].data.AssitCount); + } + for (int j = 0; j < data.team2.Count; j++) + { + this.KillMax = Math.Max(this.KillMax, data.team2[j].data.KillCount); + this.AssistsMax = Math.Max(this.AssistsMax, (int)data.team2[j].data.AssitCount); + } + uint num = 0u; + uint num2 = 0u; + this.m_DetailPool.FakeReturnAll(); + this.m_MiniIconPool.FakeReturnAll(); + for (int k = 0; k < data.team1.Count + data.team2.Count; k++) + { + bool flag2 = k < data.team1.Count; + bool flag3 = flag2; + XMobaEntranceDocument.XMobaRecordDetailOne xmobaRecordDetailOne; + if (flag3) + { + xmobaRecordDetailOne = data.team1[k]; + num += (uint)xmobaRecordDetailOne.data.KillCount; + } + else + { + xmobaRecordDetailOne = data.team2[k - data.team1.Count]; + num2 += (uint)xmobaRecordDetailOne.data.KillCount; + } + OverWatchTable.RowData dataByHeroID = XHeroBattleDocument.GetDataByHeroID(xmobaRecordDetailOne.heroID); + GameObject gameObject = this.m_DetailPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)k * this.m_DetailPool.TplHeight), 0f) + this.m_DetailPool.TplPos; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(xmobaRecordDetailOne.data.Name); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + Transform transform = gameObject.transform.Find("NoIcon"); + bool flag4 = dataByHeroID != null; + if (flag4) + { + ixuisprite.SetSprite(dataByHeroID.Icon, dataByHeroID.IconAtlas, false); + } + else + { + ixuisprite.SetSprite(""); + } + transform.gameObject.SetActive(dataByHeroID == null); + Transform transform2 = gameObject.transform.Find("Icon/Blue"); + Transform transform3 = gameObject.transform.Find("Icon/Red"); + string arg = "[8c896c]"; + bool flag5 = data.isteam1win ^ flag2; + if (flag5) + { + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(true); + Transform transform4 = gameObject.transform.Find("Icon/Red/MVP"); + transform4.gameObject.SetActive(xmobaRecordDetailOne.data.uID == data.losemvpid); + Transform transform5 = gameObject.transform.Find("Icon/Red/My"); + transform5.gameObject.SetActive(xmobaRecordDetailOne.data.uID == XSingleton.singleton.XPlayerData.RoleID); + } + else + { + transform2.gameObject.SetActive(true); + transform3.gameObject.SetActive(false); + Transform transform6 = gameObject.transform.Find("Icon/Blue/MVP"); + transform6.gameObject.SetActive(xmobaRecordDetailOne.data.uID == data.mvpid); + bool flag6 = xmobaRecordDetailOne.data.uID == data.mvpid; + if (flag6) + { + arg = "[ffdc00]"; + } + Transform transform7 = gameObject.transform.Find("Icon/Blue/My"); + transform7.gameObject.SetActive(xmobaRecordDetailOne.data.uID == XSingleton.singleton.XPlayerData.RoleID); + } + IXUILabel ixuilabel2 = gameObject.transform.Find("Point").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format("{0}{1}[-]", arg, xmobaRecordDetailOne.data.Kda.ToString("f1"))); + IXUILabel ixuilabel3 = gameObject.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(string.Format("{0}/{1}/{2}", xmobaRecordDetailOne.data.KillCount, xmobaRecordDetailOne.data.DeathCount, xmobaRecordDetailOne.data.AssitCount)); + this.SetupMiniIconList(gameObject.transform.Find("MiniIconFrame"), xmobaRecordDetailOne, data); + } + this.m_MiniIconPool.ActualReturnAll(false); + this.m_DetailPool.ActualReturnAll(false); + this.m_Date.SetText(XSingleton.singleton.TimeFormatSince1970((int)data.date, XStringDefineProxy.GetString("MOBA_RECORD_DATE"), true)); + this.m_Time.SetText(string.Format("{0}{1}", data.time / 60u, XSingleton.singleton.GetString("MINUTE_DUARATION"))); + string arg2 = data.isteam1win ? "[0096ff]" : "[fd4343]"; + string arg3 = data.isteam1win ? "[fd4343]" : "[0096ff]"; + this.m_Kill1.SetText(string.Format("{0}{1}[-]", arg2, num)); + this.m_Kill2.SetText(string.Format("{0}{1}[-]", arg3, num2)); + } + } + + private void SetupMiniIconList(Transform ts, XMobaEntranceDocument.XMobaRecordDetailOne curOne, XMobaEntranceDocument.XMobaRecordRound data) + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + List mobaIconList = specificDocument.GetMobaIconList(curOne.data, data.damagemaxid, data.behitdamagemaxid, this.KillMax, this.AssistsMax); + for (int i = 0; i < mobaIconList.Count; i++) + { + this.AddMiniIcon(ts, mobaIconList[i], i); + } + } + + private void AddMiniIcon(Transform ts, string iconName, int index) + { + GameObject gameObject = this.m_MiniIconPool.FetchGameObject(false); + gameObject.transform.parent = ts; + gameObject.transform.localPosition = new Vector3((float)(index * this.m_MiniIconPool.TplWidth), 0f) + this.m_MiniIconPool.TplPos; + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = iconName; + } + + private void OnRoundClick(IXUISprite btn) + { + XSingleton.singleton.AddGreenLog(btn.ID.ToString(), null, null, null, null, null); + this.SelectID = (uint)btn.ID; + this.RefreshTotal(); + this.doc.ReqMobaRecordRound(this.SelectID); + } + + private bool OnCloseClicked(IXUIButton button) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaBattleRecordHandler.cs.meta b/Client/Assets/Scripts/XMainClient/MobaBattleRecordHandler.cs.meta new file mode 100644 index 00000000..4279a237 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaBattleRecordHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b6c11b99f755a847a6b60732d3843b0 +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs b/Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs new file mode 100644 index 00000000..bef5e6b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs @@ -0,0 +1,122 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MobaEntranceBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_BuyBtn; + + public IXUILabel m_HeroDescription; + + public IXUILabel m_HeroName; + + public IXUILabel m_ExperienceTime; + + public Transform m_SkillPreViewTs; + + public Transform m_BattleRecordFrame; + + public GameObject m_RewardPreViewFrame; + + public IUIDummy m_Snapshot; + + public IXUISprite m_SnapDrag; + + public IXUIButton m_BattleRecordBtn; + + public IXUIButton m_ShopBtn; + + public IXUIButton m_RewardPreViewBtn; + + public IXUIButton m_SingleMatch; + + public IXUIButton m_TeamMatch; + + public IXUILabel m_SingleMatchLabel; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_WeekCurrentWin; + + public IXUISprite m_ClickGet; + + public GameObject m_HadGet; + + public IXUILabel m_WeekBattleTips; + + public Transform m_WeekRewardTs; + + public IXUIButton m_RewardPreViewCloseBtn; + + public IXUILabel m_CurrentWinThisWeek; + + public XUIPool m_PreViewItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_PreViewBgPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITexture m_BgTex; + + public IXUIButton m_RankBtn; + + public IXUISprite m_PrivilegeIcon; + + public IXUILabel m_PrivilegeName; + + public IXUISprite m_Privilege; + + public XUIPool m_AttributesPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_SkillsPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BattleRecordFrame = base.transform.Find("Bg/BattleRecordFrame"); + this.m_RewardPreViewFrame = base.transform.Find("Bg/RewardPreView").gameObject; + this.m_SkillPreViewTs = base.transform.Find("Bg/SkillPreViewParent"); + Transform transform = base.transform.Find("Bg/SkillBtn/SkillBtnTpl"); + this.m_SkillsPool.SetupPool(null, transform.gameObject, MobaEntranceView.SKILL_MAX, false); + this.m_BuyBtn = (base.transform.Find("Bg/BuyBtn").GetComponent("XUIButton") as IXUIButton); + this.m_HeroDescription = (base.transform.Find("Bg/Description").GetComponent("XUILabel") as IXUILabel); + this.m_HeroName = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel); + this.m_ExperienceTime = (base.transform.Find("Bg/ExperienceTime").GetComponent("XUILabel") as IXUILabel); + Transform transform2 = base.transform.Find("Bg/CharacterFrame"); + this.m_Snapshot = (transform2.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_SnapDrag = (transform2.Find("SnapDrag").GetComponent("XUISprite") as IXUISprite); + transform2 = base.transform.Find("Bg/Right"); + this.m_BattleRecordBtn = (transform2.Find("RecordBtn").GetComponent("XUIButton") as IXUIButton); + this.m_ShopBtn = (transform2.Find("ShopBtn").GetComponent("XUIButton") as IXUIButton); + this.m_RewardPreViewBtn = (transform2.Find("RewardPreViewBtn").GetComponent("XUIButton") as IXUIButton); + this.m_SingleMatch = (transform2.Find("SingleMatchBtn").GetComponent("XUIButton") as IXUIButton); + this.m_TeamMatch = (transform2.Find("TeamMatchBtn").GetComponent("XUIButton") as IXUIButton); + this.m_SingleMatchLabel = (this.m_SingleMatch.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + Transform transform3 = transform2.Find("WeekReward/RewardTs/ItemTpl"); + this.m_RewardPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 6u, false); + this.m_WeekCurrentWin = (transform2.Find("WeekReward/CurrentWin").GetComponent("XUILabel") as IXUILabel); + this.m_ClickGet = (transform2.Find("WeekReward/ClickGet").GetComponent("XUISprite") as IXUISprite); + this.m_HadGet = transform2.Find("WeekReward/HadGet").gameObject; + this.m_WeekBattleTips = (transform2.Find("WeekReward/WeekTips").GetComponent("XUILabel") as IXUILabel); + this.m_WeekRewardTs = transform2.Find("WeekReward/RewardTs"); + transform2 = base.transform.Find("Bg/RewardPreView"); + this.m_RewardPreViewCloseBtn = (transform2.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_CurrentWinThisWeek = (transform2.Find("Bg/CurrentWin/Text").GetComponent("XUILabel") as IXUILabel); + transform3 = transform2.Find("Bg/Bg/ScrollView/ItemTpl"); + this.m_PreViewItemPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 16u, false); + transform3 = transform2.Find("Bg/Bg/ScrollView/RewardTpl"); + this.m_PreViewBgPool.SetupPool(transform3.parent.gameObject, transform3.gameObject, 4u, false); + this.m_BgTex = (base.transform.Find("Bg/Bg").GetComponent("XUITexture") as IXUITexture); + this.m_RankBtn = (base.transform.Find("Bg/Right/RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_PrivilegeIcon = (base.transform.Find("Bg/tq").GetComponent("XUISprite") as IXUISprite); + this.m_PrivilegeName = (base.transform.Find("Bg/tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_Privilege = (base.transform.Find("Bg/tq/p").GetComponent("XUISprite") as IXUISprite); + Transform transform4 = base.transform.Find("Bg/HeroInfo/HeroInfoTpl"); + this.m_AttributesPool.SetupPool(null, transform4.gameObject, 4u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs.meta new file mode 100644 index 00000000..b9aee089 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaEntranceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98fabe25ede4d1f418a27d4c4ada1b61 +timeCreated: 1611404193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaEntranceView.cs b/Client/Assets/Scripts/XMainClient/MobaEntranceView.cs new file mode 100644 index 00000000..054109ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaEntranceView.cs @@ -0,0 +1,601 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MobaEntranceView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/MobaEntranceDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Moba); + } + } + + private XMobaEntranceDocument _doc = null; + + private XHeroBattleDocument _heroDoc = null; + + private XHeroBattleSkillDocument _skillDoc = null; + + public HeroBattleSkillHandler m_HeroBattleSkillHandler; + + public MobaBattleRecordHandler m_MobaBattleRecordHandler; + + private XDummy m_Dummy; + + private uint _selectAnimToken; + + private HashSet _selectFxToken = new HashSet(); + + private List _selectFxList = new List(); + + public static readonly uint SKILL_MAX = 4u; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XMobaEntranceDocument.uuID); + this._heroDoc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this._skillDoc = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + this.m_HeroBattleSkillHandler = DlgHandlerBase.EnsureCreate(ref this.m_HeroBattleSkillHandler, base.uiBehaviour.m_SkillPreViewTs, false, null); + this.m_HeroBattleSkillHandler.HandlerType = 2; + this.m_HeroBattleSkillHandler.OtherViewBuyBtn = base.uiBehaviour.m_BuyBtn; + DlgHandlerBase.EnsureCreate(ref this.m_MobaBattleRecordHandler, base.uiBehaviour.m_BattleRecordFrame, false, null); + base.uiBehaviour.m_RewardPreViewFrame.SetActive(false); + base.uiBehaviour.m_RankBtn.gameObject.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_BuyBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClick)); + base.uiBehaviour.m_ClickGet.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetRewardClick)); + base.uiBehaviour.m_BattleRecordBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleRecordBtnClick)); + base.uiBehaviour.m_RewardPreViewBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardPreViewBtnClick)); + base.uiBehaviour.m_RewardPreViewCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardPreViewCloseBtnClick)); + base.uiBehaviour.m_ShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopBtnClick)); + base.uiBehaviour.m_SingleMatch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSingleMatchBtnClick)); + base.uiBehaviour.m_TeamMatch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTeamMatchBtnClick)); + base.uiBehaviour.m_SnapDrag.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnMonsterDrag)); + IXUIButton ixuibutton = base.uiBehaviour.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClicked)); + base.uiBehaviour.m_Privilege.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPrivilegeClick)); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("MobaDlg"); + this._doc.ReqMobaUIInfo(); + this._heroDoc.QueryHeroBattleUIInfo(); + this.m_HeroBattleSkillHandler.SetVisible(true); + this._skillDoc.m_HeroBattleSkillHandler = this.m_HeroBattleSkillHandler; + this.Refresh(); + } + + protected override void OnHide() + { + this.ClearSelectFx(); + XSingleton.singleton.KillTimer(this._selectAnimToken); + this.m_MobaBattleRecordHandler.SetVisible(false); + bool flag = this.m_HeroBattleSkillHandler != null; + if (flag) + { + this.m_HeroBattleSkillHandler.SetVisible(false); + this._skillDoc.m_HeroBattleSkillHandler = null; + } + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = this.m_HeroBattleSkillHandler != null; + if (flag) + { + this.m_HeroBattleSkillHandler.SetVisible(true); + } + base.Alloc3DAvatarPool("MobaDlg"); + this.RefreshSelectMsg(); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + bool flag = this.m_HeroBattleSkillHandler != null; + if (flag) + { + this.m_HeroBattleSkillHandler.SetSkillPreViewState(false, 0); + this.m_HeroBattleSkillHandler.SetVisible(false); + } + this.ClearSelectFx(); + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + this.m_Dummy = null; + } + + protected override void OnUnload() + { + this.ClearSelectFx(); + XSingleton.singleton.KillTimer(this._selectAnimToken); + DlgHandlerBase.EnsureUnload(ref this.m_HeroBattleSkillHandler); + DlgHandlerBase.EnsureUnload(ref this.m_MobaBattleRecordHandler); + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnUnload(); + } + + private void ClearSelectFx() + { + for (int i = this._selectFxList.Count - 1; i >= 0; i--) + { + XSingleton.singleton.DestroyFx(this._selectFxList[i], true); + } + this._selectFxList.Clear(); + foreach (uint token in this._selectFxToken) + { + XSingleton.singleton.KillTimer(token); + } + this._selectFxToken.Clear(); + } + + private void _SetSelectFxDelay(XGameObject gameObject, object o, int commandID) + { + string[] array = o as string[]; + for (int i = 0; i < array.Length; i++) + { + string[] array2 = array[i].Split(XGlobalConfig.SequenceSeparator); + bool flag = array2.Length != 3; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fx config error, each length not 3.", null, null, null, null, null); + break; + } + uint item = XSingleton.singleton.SetTimer(float.Parse(array2[1]), new XTimerMgr.ElapsedEventHandler(this.FxDelayPlay), array[i]); + this._selectFxToken.Add(item); + } + } + + public void FxDelayPlay(object o) + { + string text = o as string; + string[] array = text.Split(XGlobalConfig.SequenceSeparator); + Transform transform = null; + bool flag = array[2].Equals("#"); + if (flag) + { + transform = this.m_uiBehaviour.m_Snapshot.transform; + } + else + { + Transform[] componentsInChildren = this.m_uiBehaviour.m_Snapshot.transform.GetComponentsInChildren(); + for (int i = 0; i < componentsInChildren.Length; i++) + { + bool flag2 = componentsInChildren[i].name == array[2]; + if (flag2) + { + transform = componentsInChildren[i]; + break; + } + } + bool flag3 = transform == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Can't find node ", array[2], ", pls check config.", null, null, null); + return; + } + } + XFx xfx = XSingleton.singleton.CreateUIFx(array[0], transform, false); + this._selectFxList.Add(xfx); + xfx.Play(); + } + + public void Refresh() + { + this.RefreshMatch(); + this.RefreshSelectMsg(); + this.RefreshPrivilegeInfo(); + this.RefreshRaward(); + } + + public void RefreshMatch() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + base.uiBehaviour.m_SingleMatchLabel.SetText((specificDocument.SoloMatchType == KMatchType.KMT_MOBA) ? string.Format("{0}...", XStringDefineProxy.GetString("MATCHING")) : XStringDefineProxy.GetString("CAPTAINPVP_SINGLE")); + base.uiBehaviour.m_TeamMatch.SetEnable(specificDocument.SoloMatchType != KMatchType.KMT_MOBA, false); + } + + public void RefreshRaward() + { + base.uiBehaviour.m_ClickGet.SetVisible(this._doc.RewardState == XMobaEntranceDocument.MobaRewardState.CanGet); + base.uiBehaviour.m_HadGet.SetActive(this._doc.RewardState == XMobaEntranceDocument.MobaRewardState.GetEnd); + MobaWeekReward.RowData byid = XMobaEntranceDocument._MobaWeekReward.GetByid(this._doc.GetRewardStage + 1u); + string arg = (this._doc.WinThisWeek < byid.winnum) ? "[ff3e3e]" : "[00ff37]"; + base.uiBehaviour.m_WeekCurrentWin.SetText(string.Format("({0}{1}[-]/{2})", arg, this._doc.WinThisWeek.ToString(), byid.winnum)); + base.uiBehaviour.m_WeekBattleTips.SetText(string.Format(XStringDefineProxy.GetString("HeroBattleWeekRewardTips"), byid.winnum)); + base.uiBehaviour.m_RewardPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_RewardPool.TplPos; + List list = new List(); + for (int i = 0; i < byid.reward.Length; i++) + { + ItemBrief itemBrief = new ItemBrief(); + int num; + int num2; + CVSReader.GetRowDataListByField(XBagDocument.DropTable.Table, (int)byid.reward[i], out num, out num2, XBagDocument.comp); + bool flag = num < 0; + if (!flag) + { + itemBrief.itemID = (uint)XBagDocument.DropTable.Table[num].ItemID; + itemBrief.itemCount = (uint)XBagDocument.DropTable.Table[num].ItemCount; + itemBrief.isbind = XBagDocument.DropTable.Table[num].ItemBind; + list.Add(itemBrief); + } + } + for (int j = 0; j < list.Count; j++) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_WeekRewardTs; + gameObject.transform.localPosition = new Vector3((float)(j * base.uiBehaviour.m_RewardPool.TplWidth), tplPos.y) + base.uiBehaviour.m_RewardPool.TplPos; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)list[j].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf, (int)list[j].itemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, (int)list[j].itemID); + GameObject gameObject2 = gameObject.transform.Find("Other/RedPoint").gameObject; + gameObject2.SetActive(j == list.Count - 1 && this._doc.RewardState == XMobaEntranceDocument.MobaRewardState.CanGet); + GameObject gameObject3 = gameObject.transform.Find("Other/OutterLight").gameObject; + gameObject3.SetActive(this._doc.RewardState == XMobaEntranceDocument.MobaRewardState.CanGet); + } + } + + public void RefreshSelectMsg() + { + bool flag = !this._skillDoc.IsPreViewShow && !this._skillDoc.AlreadyGetList.Contains(this._skillDoc.CurrentSelect); + base.uiBehaviour.m_BuyBtn.SetVisible(flag); + bool flag2 = flag; + if (flag2) + { + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID(this._skillDoc.CurrentSelect); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)byHeroID.Price[0]); + IXUISprite ixuisprite = base.uiBehaviour.m_BuyBtn.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = itemConf.ItemIcon1[0]; + IXUILabel ixuilabel = base.uiBehaviour.m_BuyBtn.gameObject.transform.Find("Cost").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(byHeroID.Price[1].ToString()); + } + OverWatchTable.RowData byHeroID2 = this._heroDoc.OverWatchReader.GetByHeroID(this._skillDoc.CurrentSelect); + bool flag3 = byHeroID2 == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("get hero data error! id = ", this._skillDoc.CurrentSelect.ToString(), null, null, null, null); + } + else + { + base.uiBehaviour.m_HeroDescription.SetText(XSingleton.singleton.ReplaceReturn(byHeroID2.Description)); + base.uiBehaviour.m_HeroName.SetText(byHeroID2.Name); + bool flag4 = !this._skillDoc.AlreadyGetList.Contains(this._skillDoc.CurrentSelect) && this._skillDoc.ExperienceList.Contains(this._skillDoc.CurrentSelect); + if (flag4) + { + base.uiBehaviour.m_ExperienceTime.SetVisible(true); + int totalSecond = (int)this._skillDoc.ExperienceTimeDict[this._skillDoc.CurrentSelect]; + string text = string.Format(XStringDefineProxy.GetString("HeroBattleExperienceTime", new object[] + { + XSingleton.singleton.TimeAccFormatString(totalSecond, 3, 0) + }), new object[0]); + base.uiBehaviour.m_ExperienceTime.SetText(text); + } + else + { + base.uiBehaviour.m_ExperienceTime.SetVisible(false); + } + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(byHeroID2.StatisticsID[2]); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + bool flag5 = byID != null; + if (flag5) + { + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, byID.PresentID, this.m_uiBehaviour.m_Snapshot, this.m_Dummy, 1f); + bool flag6 = this.m_Dummy != null; + if (flag6) + { + float interval = this.m_Dummy.SetAnimationGetLength(byHeroID2.SelectAnim); + XSingleton.singleton.KillTimer(this._selectAnimToken); + this._selectAnimToken = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.SetIdleAnimation), byPresentID.AvatarPos[0]); + this.ClearSelectFx(); + bool flag7 = byHeroID2.SelectFx != null; + if (flag7) + { + this.m_Dummy.EngineObject.CallCommand(new CommandCallback(this._SetSelectFxDelay), byHeroID2.SelectFx, -1, false); + } + } + } + else + { + XSingleton.singleton.AddErrorLog("set model error. id = ", this._skillDoc.CurrentSelect.ToString(), null, null, null, null); + } + string[] array = XSingleton.singleton.GetValue("MobaAttributesType").Split(new char[] + { + '|' + }); + base.uiBehaviour.m_AttributesPool.FakeReturnAll(); + for (int i = 0; i < byHeroID2.MobaAttributes.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_AttributesPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)i * base.uiBehaviour.m_AttributesPool.TplHeight), 0f) + base.uiBehaviour.m_AttributesPool.TplPos; + IXUILabel ixuilabel2 = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + bool flag8 = i < array.Length; + if (flag8) + { + ixuilabel2.SetText(array[i]); + } + else + { + ixuilabel2.SetText(XSingleton.singleton.GetValue("")); + } + IXUIProgress ixuiprogress = gameObject.transform.Find("Slider").GetComponent("XUIProgress") as IXUIProgress; + ixuiprogress.value = byHeroID2.MobaAttributes[i]; + } + base.uiBehaviour.m_AttributesPool.ActualReturnAll(false); + this.RefreshSkillInfo(); + } + } + + public void SetIdleAnimation(object o) + { + string animationGetLength = o as string; + bool flag = this.m_Dummy != null; + if (flag) + { + this.m_Dummy.SetAnimationGetLength(animationGetLength); + } + } + + private void RefreshSkillInfo() + { + List list = this.m_HeroBattleSkillHandler.SkillInfo(); + base.uiBehaviour.m_SkillsPool.FakeReturnAll(); + int num = 0; + while (num < list.Count && (long)num < (long)((ulong)MobaEntranceView.SKILL_MAX)) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(list[num], 0u, this._skillDoc.CurrentEntityStatisticsID[2]); + bool flag = skillConfig == null; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_SkillsPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(num * base.uiBehaviour.m_SkillsPool.TplHeight), 0f, 0f) + base.uiBehaviour.m_SkillsPool.TplPos; + gameObject.name = list[num].ToString(); + IXUISprite ixuisprite = gameObject.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + bool flag2 = skillConfig.SkillType == 2; + if (flag2) + { + ixuisprite.SetSprite("JN_dk_0"); + } + else + { + ixuisprite.SetSprite("JN_dk"); + } + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(skillConfig.Icon, skillConfig.Atlas, false); + IXUIButton ixuibutton = gameObject.transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)num); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSkillBtnClick)); + } + num++; + } + base.uiBehaviour.m_SkillsPool.ActualReturnAll(false); + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Moba); + return true; + } + + private void OnGetRewardClick(IXUISprite iSp) + { + this._doc.ReqMobaGetReward(); + } + + private bool OnMonsterDrag(Vector2 delta) + { + bool flag = this.m_Dummy != null; + if (flag) + { + XSingleton.singleton.RotateDummy(this.m_Dummy, -delta.x / 2f); + } + return true; + } + + private bool OnBattleRecordBtnClick(IXUIButton btn) + { + this.m_MobaBattleRecordHandler.SetVisible(true); + return true; + } + + private bool OnShopBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Honer, 0UL); + return true; + } + + private bool OnSkillBtnClick(IXUIButton btn) + { + this.m_HeroBattleSkillHandler.SetSkillPreViewState(true, (int)btn.ID); + return true; + } + + private bool OnSkillPreViewBtnClick(IXUIButton btn) + { + this.m_HeroBattleSkillHandler.SetSkillPreViewState(true, 0); + return true; + } + + private bool OnBuyBtnClick(IXUIButton btn) + { + this._skillDoc.QueryBuyHero(this._skillDoc.CurrentSelect); + return true; + } + + private bool OnSingleMatchBtnClick(IXUIButton btn) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + bool result; + if (bInTeam) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CAPTAIN_SINGLE_MATCH_TIP"), "fece00"); + result = false; + } + else + { + KMatchOp op = (specificDocument.SoloMatchType != KMatchType.KMT_MOBA) ? KMatchOp.KMATCH_OP_START : KMatchOp.KMATCH_OP_STOP; + specificDocument.ReqMatchStateChange(KMatchType.KMT_MOBA, op, false); + result = true; + } + return result; + } + + private bool OnTeamMatchBtnClick(IXUIButton btn) + { + this.SetVisible(false, true); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelMoba); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = expeditionList.Count > 0; + if (flag) + { + specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID); + } + return true; + } + + private bool OnRewardPreViewBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_RewardPreViewFrame.SetActive(true); + this.SetupRewardPreView(); + return true; + } + + private bool OnRewardPreViewCloseBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_RewardPreViewFrame.SetActive(false); + return true; + } + + private void SetupRewardPreView() + { + base.uiBehaviour.m_PreViewItemPool.ReturnAll(true); + base.uiBehaviour.m_PreViewBgPool.ReturnAll(false); + base.uiBehaviour.m_CurrentWinThisWeek.SetText(""); + List list = new List(); + Vector3 tplPos = base.uiBehaviour.m_PreViewItemPool.TplPos; + for (int i = 0; i < XMobaEntranceDocument._MobaWeekReward.Table.Length; i++) + { + MobaWeekReward.RowData rowData = XMobaEntranceDocument._MobaWeekReward.Table[i]; + GameObject gameObject = base.uiBehaviour.m_PreViewBgPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_PreViewBgPool.TplPos.x, base.uiBehaviour.m_PreViewBgPool.TplPos.y - (float)(i * base.uiBehaviour.m_PreViewBgPool.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Point/Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.winnum.ToString()); + list.Clear(); + for (int j = 0; j < rowData.reward.Length; j++) + { + ItemBrief itemBrief = new ItemBrief(); + int num; + int num2; + CVSReader.GetRowDataListByField(XBagDocument.DropTable.Table, (int)rowData.reward[j], out num, out num2, XBagDocument.comp); + bool flag = num < 0; + if (!flag) + { + itemBrief.itemID = (uint)XBagDocument.DropTable.Table[num].ItemID; + itemBrief.itemCount = (uint)XBagDocument.DropTable.Table[num].ItemCount; + itemBrief.isbind = XBagDocument.DropTable.Table[num].ItemBind; + list.Add(itemBrief); + } + } + for (int k = 0; k < list.Count; k++) + { + GameObject gameObject2 = base.uiBehaviour.m_PreViewItemPool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3(tplPos.x + (float)(k * base.uiBehaviour.m_PreViewItemPool.TplWidth), tplPos.y); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)list[k].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, itemConf, (int)list[k].itemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject2, (int)list[k].itemID); + } + tplPos.y -= (float)base.uiBehaviour.m_PreViewBgPool.TplHeight; + } + } + + private void OnPrivilegeClick(IXUISprite btn) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + } + + private void RefreshPrivilegeInfo() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + base.uiBehaviour.m_PrivilegeIcon.SetGrey(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer)); + base.uiBehaviour.m_PrivilegeIcon.SetSprite(specificDocument.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Adventurer)); + base.uiBehaviour.m_PrivilegeName.SetEnabled(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer)); + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Adventurer); + bool flag = memberPrivilegeConfig != null; + if (flag) + { + base.uiBehaviour.m_PrivilegeName.SetText(XStringDefineProxy.GetString("HeroBattlePrevilege", new object[] + { + memberPrivilegeConfig.HeroBattleFree + })); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaEntranceView.cs.meta b/Client/Assets/Scripts/XMainClient/MobaEntranceView.cs.meta new file mode 100644 index 00000000..fac322ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaEntranceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 489a85a24089833429de066226461131 +timeCreated: 1611403658 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaInfoPool.cs b/Client/Assets/Scripts/XMainClient/MobaInfoPool.cs new file mode 100644 index 00000000..334241eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaInfoPool.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + public class MobaInfoPool + { + private static Queue _pool; + + public static void Clear() + { + bool flag = MobaInfoPool._pool != null; + if (flag) + { + MobaInfoPool._pool.Clear(); + MobaInfoPool._pool = null; + } + } + + public static MobaReminder GetInfo() + { + bool flag = MobaInfoPool._pool == null; + if (flag) + { + MobaInfoPool._pool = new Queue(); + } + return (MobaInfoPool._pool.Count > 0) ? MobaInfoPool._pool.Dequeue() : new MobaReminder(); + } + + public static void Recycle(MobaReminder info) + { + bool flag = MobaInfoPool._pool == null; + if (!flag) + { + MobaInfoPool._pool.Enqueue(info); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaInfoPool.cs.meta b/Client/Assets/Scripts/XMainClient/MobaInfoPool.cs.meta new file mode 100644 index 00000000..01fd1efa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaInfoPool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e5cb8b02bc98b84abfe35c7289cd84d +timeCreated: 1611404128 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaKillBehaviour.cs b/Client/Assets/Scripts/XMainClient/MobaKillBehaviour.cs new file mode 100644 index 00000000..640c0c48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaKillBehaviour.cs @@ -0,0 +1,50 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public class MobaKillBehaviour : DlgBehaviourBase + { + public Transform[] m_killTypes; + + public Transform m_leftHeader; + + public Transform m_rightHeader; + + public XUIPool m_helpMembers = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_helpTransform; + + public IXUIPlayTweenGroup m_playGroup; + + public Transform KillTransform; + + public Transform MessageTransform; + + public IXUILabel m_MessageLabel; + + private void Awake() + { + this.m_playGroup = (base.transform.GetComponent("XUIPlayTweenGroup") as IXUIPlayTweenGroup); + int num = XFastEnumIntEqualityComparer.ToInt(MobaKillEnum.KILL_START); + int num2 = XFastEnumIntEqualityComparer.ToInt(MobaKillEnum.KILL_END); + this.m_killTypes = new Transform[num2]; + for (int i = num; i < num2; i++) + { + string text = string.Format("Kill/Killer/{0}Kill", i - num); + this.m_killTypes[i] = base.transform.Find(text); + } + this.m_helpTransform = base.transform.Find("Kill/Killer/help"); + this.m_leftHeader = base.transform.Find("Kill/Killer/condition/blue"); + this.m_rightHeader = base.transform.Find("Kill/Killer/condition/red"); + Transform transform = base.transform.Find("Kill/Killer/help/Members/Temp"); + this.m_helpMembers.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.KillTransform = base.transform.Find("Kill/Killer"); + this.MessageTransform = base.transform.Find("Kill/Message"); + this.m_MessageLabel = (base.transform.Find("Kill/Message/bg/p").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaKillBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/MobaKillBehaviour.cs.meta new file mode 100644 index 00000000..dd3546b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaKillBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca6fb3815d022b5409645a00dd5cac16 +timeCreated: 1611404541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaKillEnum.cs b/Client/Assets/Scripts/XMainClient/MobaKillEnum.cs new file mode 100644 index 00000000..217712d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaKillEnum.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient +{ + public enum MobaKillEnum + { + KILL_START = 101, + KILL_NORMAL = 101, + KILL_FIRST, + KILL_DOUBLE, + KILL_THREE, + KILL_FOUR, + KILL_SPREE, + KILL_UNSTOPPABLE, + KILL_DESTROY, + KILL_ENDUP, + KILL_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaKillEnum.cs.meta b/Client/Assets/Scripts/XMainClient/MobaKillEnum.cs.meta new file mode 100644 index 00000000..7221e51c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaKillEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 957aa5a2f6fa8de47900cb2b2aca85a3 +timeCreated: 1611404182 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaKillStatus.cs b/Client/Assets/Scripts/XMainClient/MobaKillStatus.cs new file mode 100644 index 00000000..85ae890d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaKillStatus.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum MobaKillStatus + { + KILL, + DEAD, + HELP + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaKillStatus.cs.meta b/Client/Assets/Scripts/XMainClient/MobaKillStatus.cs.meta new file mode 100644 index 00000000..32ab28b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaKillStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b72927fd18dff24cb08e9bad139e116 +timeCreated: 1611403993 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaKillView.cs b/Client/Assets/Scripts/XMainClient/MobaKillView.cs new file mode 100644 index 00000000..105a5561 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaKillView.cs @@ -0,0 +1,185 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public class MobaKillView : DlgBase + { + public override string fileName + { + get + { + return "Battle/MobaKillDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private Queue m_killInfos = new Queue(); + + private XElapseTimer m_showTimer = new XElapseTimer(); + + public void Enqueue(MobaReminder info) + { + this.m_killInfos.Enqueue(info); + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + } + + protected override void Init() + { + base.Init(); + this.m_uiBehaviour.m_playGroup.StopTween(); + } + + public override void OnUpdate() + { + bool flag = this.m_showTimer != null && this.m_showTimer.LeftTime > 0f; + if (flag) + { + this.m_showTimer.Update(); + } + else + { + bool flag2 = this.m_killInfos.Count > 0; + if (flag2) + { + this.SetKillerInfo(this.m_killInfos.Dequeue()); + bool flag3 = this.m_showTimer == null; + if (flag3) + { + this.m_showTimer = new XElapseTimer(); + } + this.m_showTimer.LeftTime = 3f; + } + else + { + this.SetVisibleWithAnimation(false, null); + } + } + } + + private void SetKillerInfo(MobaReminder killInfo) + { + MobaReminderEnum reminder = killInfo.reminder; + if (reminder != MobaReminderEnum.KILLER) + { + if (reminder == MobaReminderEnum.MESSAGE) + { + this.SwichReminderForMessage(killInfo); + } + } + else + { + this.SwichReminderForKiller(killInfo); + } + bool flag = !string.IsNullOrEmpty(killInfo.AudioName); + if (flag) + { + XSingleton.singleton.PlayUISound(killInfo.AudioName, true, AudioChannel.Action); + } + base.uiBehaviour.m_playGroup.ResetTween(true); + base.uiBehaviour.m_playGroup.PlayTween(true); + killInfo.Recycle(); + } + + private void SwichReminderForMessage(MobaReminder killInfo) + { + base.uiBehaviour.KillTransform.gameObject.SetActive(false); + base.uiBehaviour.MessageTransform.gameObject.SetActive(true); + base.uiBehaviour.m_MessageLabel.SetText(killInfo.ReminderText); + } + + private void SwichReminderForKiller(MobaReminder killInfo) + { + base.uiBehaviour.KillTransform.gameObject.SetActive(true); + base.uiBehaviour.MessageTransform.gameObject.SetActive(false); + this.SetHeader(base.uiBehaviour.m_leftHeader, killInfo.killer); + this.SetHeader(base.uiBehaviour.m_rightHeader, killInfo.deader); + int i = 0; + int num = base.uiBehaviour.m_killTypes.Length; + while (i < num) + { + bool flag = base.uiBehaviour.m_killTypes[i] == null; + if (!flag) + { + base.uiBehaviour.m_killTypes[i].gameObject.SetActive(i == killInfo.type); + } + i++; + } + base.uiBehaviour.m_helpMembers.ReturnAll(false); + bool flag2 = killInfo.assists.Count > 0; + if (flag2) + { + base.uiBehaviour.m_helpTransform.gameObject.SetActive(true); + i = 0; + num = killInfo.assists.Count; + while (i < num) + { + GameObject gameObject = base.uiBehaviour.m_helpMembers.FetchGameObject(false); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(base.uiBehaviour.m_helpMembers.TplWidth * i), 0f); + this.SetHeader(gameObject.transform, killInfo.assists[i]); + i++; + } + } + else + { + base.uiBehaviour.m_helpTransform.gameObject.SetActive(false); + } + } + + private void SetHeader(Transform t, HeroKillUnit unit) + { + IXUISprite ixuisprite = t.Find("HeroIcon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("team").GetComponent("XUISprite") as IXUISprite; + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + ixuisprite2.SetSprite(specificDocument.isAlly((int)unit.teamid) ? "HeroHeadB" : "HeroHeadR"); + string strAtlas = ""; + string strSprite = ""; + bool flag = unit.type == HeroKillUnitType.HeroKillUnit_Hero; + if (flag) + { + XHeroBattleDocument.GetIconByHeroID(unit.id, out strAtlas, out strSprite); + } + else + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(unit.id); + bool flag2 = byID != null; + if (flag2) + { + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + bool flag3 = byPresentID != null; + if (flag3) + { + strAtlas = byPresentID.Atlas2; + strSprite = byPresentID.Avatar2; + } + } + } + ixuisprite.SetSprite(strSprite, strAtlas, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaKillView.cs.meta b/Client/Assets/Scripts/XMainClient/MobaKillView.cs.meta new file mode 100644 index 00000000..eae3b966 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaKillView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00b12d40b00e29042bd7f2fb84bf248d +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaMemberData.cs b/Client/Assets/Scripts/XMainClient/MobaMemberData.cs new file mode 100644 index 00000000..246b8220 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaMemberData.cs @@ -0,0 +1,45 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MobaMemberData + { + public bool isMy = false; + + public ulong uid; + + public string name = ""; + + public uint heroID; + + public uint attackLevel; + + public uint defenseLevel; + + public uint kill; + + public uint dead; + + public uint assist; + + public int exp; + + public uint level; + + public int levelUpExp; + + public uint additionPoint; + + public uint teamID; + + public float reviveTime; + + public MobaMemberData(ulong roleID, uint teamid) + { + this.uid = roleID; + this.teamID = teamid; + this.isMy = (XSingleton.singleton.XPlayerData != null && XSingleton.singleton.XPlayerData.RoleID == roleID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaMemberData.cs.meta b/Client/Assets/Scripts/XMainClient/MobaMemberData.cs.meta new file mode 100644 index 00000000..eba83984 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaMemberData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35cf9d4fa7d6572478db22ad28795589 +timeCreated: 1611403560 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaReminder.cs b/Client/Assets/Scripts/XMainClient/MobaReminder.cs new file mode 100644 index 00000000..4fa0a578 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaReminder.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class MobaReminder + { + public MobaReminderEnum reminder; + + public HeroKillUnit killer; + + public HeroKillUnit deader; + + public List assists; + + public int type; + + public string AudioName; + + public string ReminderText; + + public void Recycle() + { + this.killer = null; + this.deader = null; + bool flag = this.assists != null; + if (flag) + { + this.assists.Clear(); + } + this.assists = null; + this.AudioName = ""; + this.ReminderText = ""; + MobaInfoPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaReminder.cs.meta b/Client/Assets/Scripts/XMainClient/MobaReminder.cs.meta new file mode 100644 index 00000000..fd968bbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaReminder.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b8492d7194e93440b7b96d117e0b2f2 +timeCreated: 1611404206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MobaReminderEnum.cs b/Client/Assets/Scripts/XMainClient/MobaReminderEnum.cs new file mode 100644 index 00000000..0751079c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaReminderEnum.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum MobaReminderEnum + { + KILLER, + MESSAGE + } +} diff --git a/Client/Assets/Scripts/XMainClient/MobaReminderEnum.cs.meta b/Client/Assets/Scripts/XMainClient/MobaReminderEnum.cs.meta new file mode 100644 index 00000000..5c46d6a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MobaReminderEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3bdb4a4a9a568f4eaa46e4ce71a311d +timeCreated: 1611404498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Monster_broo_black_teleport_back.cs b/Client/Assets/Scripts/XMainClient/Monster_broo_black_teleport_back.cs new file mode 100644 index 00000000..75f38d70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Monster_broo_black_teleport_back.cs @@ -0,0 +1,63 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Monster_broo_black_teleport_back + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 0.267f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 0.3f; + + private static float _fadeInTime = 0.2f; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !Monster_broo_black_teleport_back._veiled; + if (flag) + { + Monster_broo_black_teleport_back._veiled = true; + Monster_broo_black_teleport_back._token = XSingleton.singleton.SetTimer(Monster_broo_black_teleport_back._startVeil, new XTimerMgr.ElapsedEventHandler(Monster_broo_black_teleport_back.Veil), skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(Monster_broo_black_teleport_back._token); + Monster_broo_black_teleport_back.Unveil(skill.Firer); + Monster_broo_black_teleport_back._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = Monster_broo_black_teleport_back._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + Monster_broo_black_teleport_back._token = XSingleton.singleton.SetTimer(Monster_broo_black_teleport_back._veilDuration, new XTimerMgr.ElapsedEventHandler(Monster_broo_black_teleport_back.Unveil), o); + } + + private static void Unveil(object o) + { + bool flag = Monster_broo_black_teleport_back._token > 0u; + if (flag) + { + Monster_broo_black_teleport_back._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = Monster_broo_black_teleport_back._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Monster_broo_black_teleport_back.cs.meta b/Client/Assets/Scripts/XMainClient/Monster_broo_black_teleport_back.cs.meta new file mode 100644 index 00000000..0189a5d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Monster_broo_black_teleport_back.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f68afba99628ab14195c110f2af8b323 +timeCreated: 1611404882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_back.cs b/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_back.cs new file mode 100644 index 00000000..4e4f6ecc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_back.cs @@ -0,0 +1,63 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Monster_broo_white_boss_teleport_back + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 0.267f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 0.3f; + + private static float _fadeInTime = 0.2f; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !Monster_broo_white_boss_teleport_back._veiled; + if (flag) + { + Monster_broo_white_boss_teleport_back._veiled = true; + Monster_broo_white_boss_teleport_back._token = XSingleton.singleton.SetTimer(Monster_broo_white_boss_teleport_back._startVeil, new XTimerMgr.ElapsedEventHandler(Monster_broo_white_boss_teleport_back.Veil), skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(Monster_broo_white_boss_teleport_back._token); + Monster_broo_white_boss_teleport_back.Unveil(skill.Firer); + Monster_broo_white_boss_teleport_back._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = Monster_broo_white_boss_teleport_back._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + Monster_broo_white_boss_teleport_back._token = XSingleton.singleton.SetTimer(Monster_broo_white_boss_teleport_back._veilDuration, new XTimerMgr.ElapsedEventHandler(Monster_broo_white_boss_teleport_back.Unveil), o); + } + + private static void Unveil(object o) + { + bool flag = Monster_broo_white_boss_teleport_back._token > 0u; + if (flag) + { + Monster_broo_white_boss_teleport_back._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = Monster_broo_white_boss_teleport_back._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_back.cs.meta b/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_back.cs.meta new file mode 100644 index 00000000..af10a594 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_back.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8db88f3a9aa03d4cbfa2e9482677eed +timeCreated: 1611404896 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_foward.cs b/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_foward.cs new file mode 100644 index 00000000..27bf57bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_foward.cs @@ -0,0 +1,63 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Monster_broo_white_boss_teleport_foward + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 0.267f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 0.3f; + + private static float _fadeInTime = 0.2f; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !Monster_broo_white_boss_teleport_foward._veiled; + if (flag) + { + Monster_broo_white_boss_teleport_foward._veiled = true; + Monster_broo_white_boss_teleport_foward._token = XSingleton.singleton.SetTimer(Monster_broo_white_boss_teleport_foward._startVeil, new XTimerMgr.ElapsedEventHandler(Monster_broo_white_boss_teleport_foward.Veil), skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(Monster_broo_white_boss_teleport_foward._token); + Monster_broo_white_boss_teleport_foward.Unveil(skill.Firer); + Monster_broo_white_boss_teleport_foward._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = Monster_broo_white_boss_teleport_foward._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + Monster_broo_white_boss_teleport_foward._token = XSingleton.singleton.SetTimer(Monster_broo_white_boss_teleport_foward._veilDuration, new XTimerMgr.ElapsedEventHandler(Monster_broo_white_boss_teleport_foward.Unveil), o); + } + + private static void Unveil(object o) + { + bool flag = Monster_broo_white_boss_teleport_foward._token > 0u; + if (flag) + { + Monster_broo_white_boss_teleport_foward._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = Monster_broo_white_boss_teleport_foward._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_foward.cs.meta b/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_foward.cs.meta new file mode 100644 index 00000000..69360c5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Monster_broo_white_boss_teleport_foward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f73ffdf13b67d8b4d9b81092c8fe5878 +timeCreated: 1611404887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Monster_broo_white_opposer_teleport_back.cs b/Client/Assets/Scripts/XMainClient/Monster_broo_white_opposer_teleport_back.cs new file mode 100644 index 00000000..0d7dcd7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Monster_broo_white_opposer_teleport_back.cs @@ -0,0 +1,63 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Monster_broo_white_opposer_teleport_back + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 0.267f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 0.3f; + + private static float _fadeInTime = 0.2f; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !Monster_broo_white_opposer_teleport_back._veiled; + if (flag) + { + Monster_broo_white_opposer_teleport_back._veiled = true; + Monster_broo_white_opposer_teleport_back._token = XSingleton.singleton.SetTimer(Monster_broo_white_opposer_teleport_back._startVeil, new XTimerMgr.ElapsedEventHandler(Monster_broo_white_opposer_teleport_back.Veil), skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(Monster_broo_white_opposer_teleport_back._token); + Monster_broo_white_opposer_teleport_back.Unveil(skill.Firer); + Monster_broo_white_opposer_teleport_back._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = Monster_broo_white_opposer_teleport_back._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + Monster_broo_white_opposer_teleport_back._token = XSingleton.singleton.SetTimer(Monster_broo_white_opposer_teleport_back._veilDuration, new XTimerMgr.ElapsedEventHandler(Monster_broo_white_opposer_teleport_back.Unveil), o); + } + + private static void Unveil(object o) + { + bool flag = Monster_broo_white_opposer_teleport_back._token > 0u; + if (flag) + { + Monster_broo_white_opposer_teleport_back._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = Monster_broo_white_opposer_teleport_back._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Monster_broo_white_opposer_teleport_back.cs.meta b/Client/Assets/Scripts/XMainClient/Monster_broo_white_opposer_teleport_back.cs.meta new file mode 100644 index 00000000..34f710fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Monster_broo_white_opposer_teleport_back.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c575f6bab571524498698bf10637d16 +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MountLoadCallback.cs b/Client/Assets/Scripts/XMainClient/MountLoadCallback.cs new file mode 100644 index 00000000..0d0b5733 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MountLoadCallback.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate void MountLoadCallback(MountLoadTask mountPart); +} diff --git a/Client/Assets/Scripts/XMainClient/MountLoadCallback.cs.meta b/Client/Assets/Scripts/XMainClient/MountLoadCallback.cs.meta new file mode 100644 index 00000000..b6494d4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MountLoadCallback.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5614902c621dcc449b4d1ab94d1dac29 +timeCreated: 1611403741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MountLoadTask.cs b/Client/Assets/Scripts/XMainClient/MountLoadTask.cs new file mode 100644 index 00000000..5a0760e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MountLoadTask.cs @@ -0,0 +1,244 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MountLoadTask : EquipLoadTask + { + public bool IsSkin + { + get + { + return this.xgo != null && this.xgo.HasSkin; + } + } + + public XGameObject xgo = null; + + private MountLoadCallback m_MountPartLoadCb = null; + + private static CommandCallback mountLoadFinish = new CommandCallback(MountLoadTask.LoadFinish); + + public MountLoadTask(EPartType p, MountLoadCallback mountPartLoadCb) : base(p) + { + this.m_MountPartLoadCb = mountPartLoadCb; + } + + public override void Load(XEntity e, int prefessionID, ref FashionPositionInfo newFpi, bool async, HashSet loadedPath) + { + bool flag = base.IsSamePart(ref newFpi); + if (flag) + { + bool flag2 = this.m_MountPartLoadCb != null; + if (flag2) + { + this.m_MountPartLoadCb(this); + } + } + else + { + this.Reset(e); + bool flag3 = base.MakePath(ref newFpi, loadedPath); + if (flag3) + { + this.xgo = XGameObject.CreateXGameObject(this.location, async, true); + this.xgo.CallCommand(MountLoadTask.mountLoadFinish, this, -1, false); + } + else + { + bool flag4 = string.IsNullOrEmpty(this.location); + if (flag4) + { + this.processStatus = EProcessStatus.EProcessing; + MountLoadTask.LoadFinish(null, this, -1); + } + } + } + } + + public override void Reset(XEntity e) + { + base.Reset(e); + this.xgo = null; + } + + private static void LoadFinish(XGameObject gameObject, object o, int commandID) + { + MountLoadTask mountLoadTask = o as MountLoadTask; + bool flag = mountLoadTask != null; + if (flag) + { + bool flag2 = mountLoadTask.processStatus == EProcessStatus.EProcessing; + if (flag2) + { + mountLoadTask.processStatus = EProcessStatus.EPreProcess; + bool flag3 = mountLoadTask.m_MountPartLoadCb != null; + if (flag3) + { + mountLoadTask.m_MountPartLoadCb(mountLoadTask); + } + } + } + } + + public static void ProcessRender(XGameObject xgo, XEntity e, int layer, bool enable, int renderQueue, bool forceDisable) + { + bool flag = xgo != null; + if (flag) + { + xgo.GetRender(XCommon.tmpRender); + for (int i = 0; i < XCommon.tmpRender.Count; i++) + { + Renderer renderer = XCommon.tmpRender[i]; + bool flag2 = renderer.gameObject.CompareTag("BindedRes") || renderer.gameObject.CompareTag("Mount_BindedRes"); + bool flag3 = forceDisable && flag2 && layer != XQualitySetting.UILayer; + if (flag3) + { + renderer.enabled = false; + } + else + { + renderer.enabled = enable; + Material sharedMaterial = renderer.sharedMaterial; + bool flag4 = sharedMaterial != null; + if (flag4) + { + bool flag5 = sharedMaterial.shader.renderQueue < 3000; + if (!flag5) + { + bool flag6 = renderQueue > 1000; + if (flag6) + { + renderer.material.renderQueue = renderQueue; + } + } + bool flag7 = layer >= 0; + if (flag7) + { + renderer.gameObject.layer = layer; + bool flag8 = layer != XQualitySetting.UILayer; + if (flag8) + { + XRenderComponent.AddEquipObj(e, xgo.Get(), renderer); + } + } + } + } + } + XCommon.tmpRender.Clear(); + } + } + + public virtual void ProcessRender(XEntity e, int layer, bool enable, int renderQueue, bool forceDisable) + { + MountLoadTask.ProcessRender(this.xgo, e, layer, enable, renderQueue, forceDisable); + } + + public static void ProcessEnable(XGameObject xgo, bool enable, bool forceDisable, int layer) + { + bool flag = xgo != null; + if (flag) + { + xgo.GetRender(XCommon.tmpRender); + for (int i = 0; i < XCommon.tmpRender.Count; i++) + { + Renderer renderer = XCommon.tmpRender[i]; + bool flag2 = forceDisable && renderer.gameObject.CompareTag("BindedRes") && layer != XQualitySetting.UILayer; + if (flag2) + { + renderer.enabled = false; + } + else + { + renderer.enabled = enable; + } + } + XCommon.tmpRender.Clear(); + } + } + + public static void ProcessRenderQueue(XGameObject xgo, int renderQueue) + { + bool flag = renderQueue > 1000 && xgo != null; + if (flag) + { + xgo.GetRender(XCommon.tmpRender); + for (int i = 0; i < XCommon.tmpRender.Count; i++) + { + Renderer renderer = XCommon.tmpRender[i]; + Material sharedMaterial = renderer.sharedMaterial; + bool flag2 = sharedMaterial != null && sharedMaterial.shader.renderQueue > 3000; + if (flag2) + { + renderer.material.renderQueue = renderQueue; + } + } + XCommon.tmpRender.Clear(); + } + } + + public static void ProcessRenderComponent(XGameObject xgo, XEntity e) + { + bool flag = xgo != null; + if (flag) + { + xgo.GetRender(XCommon.tmpRender); + for (int i = 0; i < XCommon.tmpRender.Count; i++) + { + Renderer render = XCommon.tmpRender[i]; + XRenderComponent.AddEquipObj(e, xgo.Get(), render); + } + XCommon.tmpRender.Clear(); + } + } + + public virtual void ProcessEnable(bool enable, bool forceDisable, int layer) + { + MountLoadTask.ProcessEnable(this.xgo, enable, forceDisable, layer); + } + + public virtual void ProcessRenderQueue(int renderQueue) + { + MountLoadTask.ProcessRenderQueue(this.xgo, renderQueue); + } + + public virtual void ProcessRenderComponent(XEntity e) + { + MountLoadTask.ProcessRenderComponent(this.xgo, e); + } + + public XAffiliate PostProcess(XEntity e, XAffiliate aff, Transform attachPoint) + { + bool flag = attachPoint == null; + XAffiliate result; + if (flag) + { + XSingleton.singleton.AddErrorLog2("not attachPoint part:{0}", new object[] + { + this.part + }); + result = null; + } + else + { + bool flag2 = aff == null; + if (flag2) + { + aff = XSingleton.singleton.CreateAffiliate(this.fpi.presentID, this.xgo, e); + } + else + { + aff.Replace(this.fpi.presentID, this.xgo); + } + attachPoint.localScale = Vector3.one; + Vector3 localScale = this.xgo.LocalScale; + this.xgo.SetParentTrans(attachPoint); + this.xgo.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, localScale, true); + result = aff; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/MountLoadTask.cs.meta b/Client/Assets/Scripts/XMainClient/MountLoadTask.cs.meta new file mode 100644 index 00000000..ef2cbde6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MountLoadTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2f81768518e2e845baac355927f4294 +timeCreated: 1611404597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MulActivityInfo.cs b/Client/Assets/Scripts/XMainClient/MulActivityInfo.cs new file mode 100644 index 00000000..5a132123 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MulActivityInfo.cs @@ -0,0 +1,39 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class MulActivityInfo + { + public int ID; + + public uint roleLevel; + + public MulActivityState state; + + public MulActivityTagType tagType; + + public MulActivityTimeState timeState; + + public double time; + + public int startTime; + + public int endTime; + + public int dayjoincount; + + public bool openState; + + public bool isOpenAllDay = false; + + public int sortWeight = 0; + + public int serverOpenDayLeft; + + public int serverOpenWeekLeft; + + public MultiActivityList.RowData Row; + } +} diff --git a/Client/Assets/Scripts/XMainClient/MulActivityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/MulActivityInfo.cs.meta new file mode 100644 index 00000000..7bbb5667 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MulActivityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0da9bda7392252943948248c194f6313 +timeCreated: 1611403197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MulActivityState.cs b/Client/Assets/Scripts/XMainClient/MulActivityState.cs new file mode 100644 index 00000000..1030f13d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MulActivityState.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum MulActivityState + { + Lock, + Grey, + WillOpen, + Open + } +} diff --git a/Client/Assets/Scripts/XMainClient/MulActivityState.cs.meta b/Client/Assets/Scripts/XMainClient/MulActivityState.cs.meta new file mode 100644 index 00000000..18401602 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MulActivityState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32f90f6dd82f799429d925894001765d +timeCreated: 1611403550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MulActivityTagType.cs b/Client/Assets/Scripts/XMainClient/MulActivityTagType.cs new file mode 100644 index 00000000..3bb0c6b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MulActivityTagType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum MulActivityTagType + { + None, + Opening, + WillOpen + } +} diff --git a/Client/Assets/Scripts/XMainClient/MulActivityTagType.cs.meta b/Client/Assets/Scripts/XMainClient/MulActivityTagType.cs.meta new file mode 100644 index 00000000..712ca914 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MulActivityTagType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9892ad30faa99c74fb9f01120a497c18 +timeCreated: 1611404191 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MultipleDirection.cs b/Client/Assets/Scripts/XMainClient/MultipleDirection.cs new file mode 100644 index 00000000..7ff0a77d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MultipleDirection.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + internal enum MultipleDirection + { + Forward, + Back, + Left, + LeftForward, + LeftBack, + Right, + RightForward, + RightBack + } +} diff --git a/Client/Assets/Scripts/XMainClient/MultipleDirection.cs.meta b/Client/Assets/Scripts/XMainClient/MultipleDirection.cs.meta new file mode 100644 index 00000000..a998b5e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MultipleDirection.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 263a3e361ac310c40920e531abf610fa +timeCreated: 1611403467 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/MyMentorship.cs b/Client/Assets/Scripts/XMainClient/MyMentorship.cs new file mode 100644 index 00000000..866a3179 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MyMentorship.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum MyMentorship + { + None, + Mentorship_Pupil, + Mentorship_Master + } +} diff --git a/Client/Assets/Scripts/XMainClient/MyMentorship.cs.meta b/Client/Assets/Scripts/XMainClient/MyMentorship.cs.meta new file mode 100644 index 00000000..8fed2c72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/MyMentorship.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 466677e93d0d9944993a3aa0ff458d83 +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NPC_Velskud_teleport.cs b/Client/Assets/Scripts/XMainClient/NPC_Velskud_teleport.cs new file mode 100644 index 00000000..e8a03a87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NPC_Velskud_teleport.cs @@ -0,0 +1,63 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class NPC_Velskud_teleport + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 0.267f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 0.267f; + + private static float _fadeInTime = 0.2f; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !NPC_Velskud_teleport._veiled; + if (flag) + { + NPC_Velskud_teleport._veiled = true; + NPC_Velskud_teleport._token = XSingleton.singleton.SetTimer(NPC_Velskud_teleport._startVeil, new XTimerMgr.ElapsedEventHandler(NPC_Velskud_teleport.Veil), skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(NPC_Velskud_teleport._token); + NPC_Velskud_teleport.Unveil(skill.Firer); + NPC_Velskud_teleport._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = NPC_Velskud_teleport._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + NPC_Velskud_teleport._token = XSingleton.singleton.SetTimer(NPC_Velskud_teleport._veilDuration, new XTimerMgr.ElapsedEventHandler(NPC_Velskud_teleport.Unveil), o); + } + + private static void Unveil(object o) + { + bool flag = NPC_Velskud_teleport._token > 0u; + if (flag) + { + NPC_Velskud_teleport._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = NPC_Velskud_teleport._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/NPC_Velskud_teleport.cs.meta b/Client/Assets/Scripts/XMainClient/NPC_Velskud_teleport.cs.meta new file mode 100644 index 00000000..def5a292 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NPC_Velskud_teleport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4b257a9637b37d4b92b6b1efda30da2 +timeCreated: 1611404855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NPC_Velskud_wing_teleport.cs b/Client/Assets/Scripts/XMainClient/NPC_Velskud_wing_teleport.cs new file mode 100644 index 00000000..be70d3a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NPC_Velskud_wing_teleport.cs @@ -0,0 +1,63 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class NPC_Velskud_wing_teleport + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 0.267f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 0.267f; + + private static float _fadeInTime = 0.2f; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !NPC_Velskud_wing_teleport._veiled; + if (flag) + { + NPC_Velskud_wing_teleport._veiled = true; + NPC_Velskud_wing_teleport._token = XSingleton.singleton.SetTimer(NPC_Velskud_wing_teleport._startVeil, new XTimerMgr.ElapsedEventHandler(NPC_Velskud_wing_teleport.Veil), skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(NPC_Velskud_wing_teleport._token); + NPC_Velskud_wing_teleport.Unveil(skill.Firer); + NPC_Velskud_wing_teleport._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = NPC_Velskud_wing_teleport._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + NPC_Velskud_wing_teleport._token = XSingleton.singleton.SetTimer(NPC_Velskud_wing_teleport._veilDuration, new XTimerMgr.ElapsedEventHandler(NPC_Velskud_wing_teleport.Unveil), o); + } + + private static void Unveil(object o) + { + bool flag = NPC_Velskud_wing_teleport._token > 0u; + if (flag) + { + NPC_Velskud_wing_teleport._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = NPC_Velskud_wing_teleport._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/NPC_Velskud_wing_teleport.cs.meta b/Client/Assets/Scripts/XMainClient/NPC_Velskud_wing_teleport.cs.meta new file mode 100644 index 00000000..f91f7c7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NPC_Velskud_wing_teleport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33cc56a3b0394494d9236353f9a7915c +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NeedItemView.cs b/Client/Assets/Scripts/XMainClient/NeedItemView.cs new file mode 100644 index 00000000..3644bd8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NeedItemView.cs @@ -0,0 +1,85 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class NeedItemView + { + public GameObject goItem; + + public IXUISprite sprIcon; + + public IXUILabel lbNum; + + public bool bShowTotal; + + public int itemid; + + public int itemcount; + + public bool bIsEnough; + + public NeedItemView(bool showTotal = true) + { + this.bShowTotal = showTotal; + } + + public void FindFrom(Transform t) + { + bool flag = t != null; + if (flag) + { + this.goItem = t.gameObject; + this.lbNum = (t.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.sprIcon = (t.Find("Icon").GetComponent("XUISprite") as IXUISprite); + } + } + + public void ResetItem() + { + XSingleton.singleton.DrawItem(this.goItem, null); + this.itemid = 0; + } + + public bool SetItem(int itemID, int needCount) + { + this.itemid = itemID; + this.itemcount = needCount; + XSingleton.singleton.normalItemDrawer.DrawItem(this.goItem, itemID, needCount, true); + this.sprIcon.ID = (ulong)((long)itemID); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(itemID); + ulong num = (ulong)((long)needCount); + bool flag = itemCount >= num; + if (flag) + { + bool flag2 = this.bShowTotal; + if (flag2) + { + this.lbNum.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_FMT"), XSingleton.singleton.NumberFormat(itemCount), XSingleton.singleton.NumberFormat(num))); + } + else + { + this.lbNum.SetText(string.Format("{0}", XSingleton.singleton.NumberFormat(num))); + } + this.bIsEnough = true; + } + else + { + bool flag3 = this.bShowTotal; + if (flag3) + { + this.lbNum.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT"), XSingleton.singleton.NumberFormat(itemCount), XSingleton.singleton.NumberFormat(num))); + } + else + { + this.lbNum.SetText(string.Format("[FF0000]{0}[-]", XSingleton.singleton.NumberFormat(num))); + } + this.bIsEnough = false; + } + return this.bIsEnough; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/NeedItemView.cs.meta b/Client/Assets/Scripts/XMainClient/NeedItemView.cs.meta new file mode 100644 index 00000000..150fe182 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NeedItemView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b57bc38768506ac45957bf681a998968 +timeCreated: 1611404395 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NetErrCode.cs b/Client/Assets/Scripts/XMainClient/NetErrCode.cs new file mode 100644 index 00000000..c951cddc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NetErrCode.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + public enum NetErrCode + { + Net_NoError, + Net_SysError, + Net_ConnectError, + Net_SrvNtfError, + Net_ReconnectFailed, + Net_Rpc_Delay, + Net_PauseRecv_Overflow, + Net_RecvBuff_Overflow, + Net_SendBuff_Overflow, + Net_Unknown_Exception + } +} diff --git a/Client/Assets/Scripts/XMainClient/NetErrCode.cs.meta b/Client/Assets/Scripts/XMainClient/NetErrCode.cs.meta new file mode 100644 index 00000000..2bbbf521 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NetErrCode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 64ac21dd7b5c1a84c846a7ff90c29ad0 +timeCreated: 1611403848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NetEvent.cs b/Client/Assets/Scripts/XMainClient/NetEvent.cs new file mode 100644 index 00000000..1600701c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NetEvent.cs @@ -0,0 +1,57 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class NetEvent : INetEventData, ILuaNetEventData + { + public Protocol protocol { get; set; } + + public Rpc rpc { get; set; } + + public LuaNetNode node { get; set; } + + public NetEvtType m_nEvtType; + + public SmallBuffer m_oBuffer; + + public bool m_bSuccess; + + public NetErrCode m_nErrCode; + + public int m_nBufferLength; + + public int m_SocketID; + + public long m_oTime; + + public bool IsPtc = false; + + public bool IsOnlyLua = false; + + public NetEvent() + { + this.Reset(); + } + + public void Reset() + { + this.m_nEvtType = NetEvtType.Event_Connect; + this.m_oBuffer.SetInvalid(); + this.m_bSuccess = true; + this.m_oTime = DateTime.Now.Ticks; + this.m_nErrCode = NetErrCode.Net_NoError; + this.m_nBufferLength = 0; + this.m_SocketID = 0; + this.IsOnlyLua = false; + this.protocol = null; + this.rpc = null; + this.node = null; + } + + public void ManualReturnProtocol() + { + this.protocol = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/NetEvent.cs.meta b/Client/Assets/Scripts/XMainClient/NetEvent.cs.meta new file mode 100644 index 00000000..449ba840 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NetEvent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 491a3961585188745a15aba6927995d5 +timeCreated: 1611403660 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NetEvtType.cs b/Client/Assets/Scripts/XMainClient/NetEvtType.cs new file mode 100644 index 00000000..d016b1f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NetEvtType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum NetEvtType + { + Event_Connect, + Event_Closed, + Event_Receive + } +} diff --git a/Client/Assets/Scripts/XMainClient/NetEvtType.cs.meta b/Client/Assets/Scripts/XMainClient/NetEvtType.cs.meta new file mode 100644 index 00000000..62a8390b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NetEvtType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 105355bf64ea00f4c990544de7443357 +timeCreated: 1611403217 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs b/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs new file mode 100644 index 00000000..55551ede --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs @@ -0,0 +1,43 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class NextLevelSealBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabel m_NextSealLabel; + + public IXUITexture m_NextSealTexL; + + public IXUITexture m_NextSealTexR; + + public IXUITexture m_NextSealTexM; + + public Transform m_NewFunction; + + public IXUISprite m_NewFunctionBg; + + public int m_NewFunctionBgWidth; + + public XUIPool m_NewFunctionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_NextSealLabel = (base.transform.Find("Bg/Label").GetComponent("XUILabel") as IXUILabel); + this.m_NextSealTexL = (base.transform.Find("Bg/TexL").GetComponent("XUITexture") as IXUITexture); + this.m_NextSealTexR = (base.transform.Find("Bg/TexR").GetComponent("XUITexture") as IXUITexture); + this.m_NextSealTexM = (base.transform.Find("Bg/TexM").GetComponent("XUITexture") as IXUITexture); + this.m_NewFunction = base.transform.Find("Bg/NewFunction"); + this.m_NewFunctionBg = (base.transform.Find("Bg/NewFunction/Bg").GetComponent("XUISprite") as IXUISprite); + this.m_NewFunctionBgWidth = this.m_NewFunctionBg.spriteWidth; + Transform transform = base.transform.Find("Bg/NewFunction/NewFunction/FunctionTpl"); + this.m_NewFunctionPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs.meta new file mode 100644 index 00000000..2801f2b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NextLevelSealBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 757106170495fc243abd7b7a55957f78 +timeCreated: 1611403946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NextLevelSealView.cs b/Client/Assets/Scripts/XMainClient/NextLevelSealView.cs new file mode 100644 index 00000000..9ddc074b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NextLevelSealView.cs @@ -0,0 +1,139 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class NextLevelSealView : DlgBase + { + public override string fileName + { + get + { + return "OperatingActivity/NextSeal"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XLevelSealDocument doc = null; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshPage(); + } + + protected override void OnHide() + { + base.uiBehaviour.m_NextSealTexL.SetTexturePath(""); + base.uiBehaviour.m_NextSealTexR.SetTexturePath(""); + base.uiBehaviour.m_NextSealTexM.SetTexturePath(""); + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public void RefreshPage() + { + uint removeSealType = this.doc.GetRemoveSealType(XSingleton.singleton.XPlayerData.Level); + Queue levelSealNewFunction = this.doc.GetLevelSealNewFunction(removeSealType); + base.uiBehaviour.m_NewFunctionPool.ReturnAll(false); + int count = levelSealNewFunction.Count; + for (int i = 0; i < count; i++) + { + GameObject gameObject = base.uiBehaviour.m_NewFunctionPool.FetchGameObject(false); + LevelSealNewFunctionTable.RowData rowData = levelSealNewFunction.Dequeue(); + (gameObject.transform.Find("Function/Level").GetComponent("XUILabel") as IXUILabel).SetText(rowData.OpenLevel.ToString() + XStringDefineProxy.GetString("SEAL_OPEN_FUNCTION")); + (gameObject.transform.Find("Function/Name").GetComponent("XUILabel") as IXUILabel).SetText(rowData.Tag); + (gameObject.transform.Find("Function/P").GetComponent("XUISprite") as IXUISprite).SetSprite(rowData.IconName); + gameObject.transform.localPosition = new Vector3((float)(base.uiBehaviour.m_NewFunctionPool.TplWidth * i), 0f, 0f); + } + bool flag = count == 0; + if (flag) + { + base.uiBehaviour.m_NewFunction.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_NewFunction.gameObject.SetActive(true); + base.uiBehaviour.m_NewFunctionBg.spriteWidth = base.uiBehaviour.m_NewFunctionBgWidth + (count - 1) * base.uiBehaviour.m_NewFunctionPool.TplWidth; + } + LevelSealTypeTable.RowData levelSealType = XLevelSealDocument.GetLevelSealType(removeSealType); + bool flag2 = !string.IsNullOrEmpty(levelSealType.NextSealImageL); + if (flag2) + { + base.uiBehaviour.m_NextSealTexL.SetTexturePath(levelSealType.NextSealImageL); + } + bool flag3 = !string.IsNullOrEmpty(levelSealType.NextSealImageR); + if (flag3) + { + base.uiBehaviour.m_NextSealTexR.SetTexturePath(levelSealType.NextSealImageR); + } + bool flag4 = levelSealType.NextSealImageBig != null && levelSealType.NextSealImageBig != ""; + if (flag4) + { + base.uiBehaviour.m_NextSealTexM.SetAlpha(1f); + base.uiBehaviour.m_NextSealTexM.SetTexturePath(levelSealType.NextSealImageBig); + } + else + { + base.uiBehaviour.m_NextSealTexM.SetAlpha(0f); + } + } + + public void SetNextSealLabel(string str) + { + base.uiBehaviour.m_NextSealLabel.SetText(str); + } + + public void SetPosition(Vector3 pos) + { + base.uiBehaviour.transform.position = pos; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/NextLevelSealView.cs.meta b/Client/Assets/Scripts/XMainClient/NextLevelSealView.cs.meta new file mode 100644 index 00000000..239a1f3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NextLevelSealView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0829c60b7d650147a88ad57905b2b8e +timeCreated: 1611404832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NodeType.cs b/Client/Assets/Scripts/XMainClient/NodeType.cs new file mode 100644 index 00000000..b2d1e29b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NodeType.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum NodeType + { + NODE_TYPE_NONE, + NODE_TYPE_BASE, + NODE_TYPE_LOGIC, + NODE_TYPE_ROOT, + NODE_TYPE_ACTION, + NODE_TYPE_CONDITION, + NODE_TYPE_DECORATION + } +} diff --git a/Client/Assets/Scripts/XMainClient/NodeType.cs.meta b/Client/Assets/Scripts/XMainClient/NodeType.cs.meta new file mode 100644 index 00000000..08d5260d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NodeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d33ab07213c4a984cb76f3149fcf82cb +timeCreated: 1611404598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NoticeType.cs b/Client/Assets/Scripts/XMainClient/NoticeType.cs new file mode 100644 index 00000000..b73fba23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NoticeType.cs @@ -0,0 +1,31 @@ +using System; + +namespace XMainClient +{ + internal enum NoticeType + { + NT_SPRITE_SKILLCAST = 10070, + NT_OPENSYS_BEGIN = 100001, + NT_OPENSYS_GUILD_RED_PACKET = 100001, + NT_OPENSYS_LIVE_PVP, + NT_OPENSYS_LIVE_NEST, + NT_OPENSYS_LIVE_PROTECTCAPTAIN, + NT_OPENSYS_SPACTATE_LIVE_GUILDBATTLE, + NT_OPENSYS_LIVE_DRAGON, + NT_OPENSYS_CAREER_MAIN = 100100, + NT_OPENSYS_CAREER_PVP, + NT_OPENSYS_CAREER_Trophy, + NT_OPENSYS_END = 101000, + NT_INVITE_NORMALTEAM = 110001, + NT_INVITE_GUILDTEAM, + NT_INVITE_GUILD = 110011, + NT_INVITE_GUILD_PRIVATE, + NT_GUILD_Daily_DONATE_REQ = 200190, + NT_GUILD_Weekly_DONATE_REQ = 210102, + NT_GUILD_Weekly_Help_Thanks_REQ, + NT_GUILD_Daily_Refresh_Thanks_REQ, + NT_GROUPCHAT_RECRUIT_WORLD = 210016, + NT_Wedding_INVITE_WORLD = 210020, + NT_INVITE_DRAGON_GUILD = 110031 + } +} diff --git a/Client/Assets/Scripts/XMainClient/NoticeType.cs.meta b/Client/Assets/Scripts/XMainClient/NoticeType.cs.meta new file mode 100644 index 00000000..f88137af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NoticeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6ab357ee435d524fbce0580201983d3 +timeCreated: 1611404289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NotifyType.cs b/Client/Assets/Scripts/XMainClient/NotifyType.cs new file mode 100644 index 00000000..a47124aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NotifyType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum NotifyType + { + None, + InviteToParticipate, + NotifyToBreak, + NotifyToApprove + } +} diff --git a/Client/Assets/Scripts/XMainClient/NotifyType.cs.meta b/Client/Assets/Scripts/XMainClient/NotifyType.cs.meta new file mode 100644 index 00000000..13ff1983 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NotifyType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cbdc70aa889e42469501b8282ec18e8 +timeCreated: 1611403998 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NpcPopSpeekView.cs b/Client/Assets/Scripts/XMainClient/NpcPopSpeekView.cs new file mode 100644 index 00000000..4432684e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NpcPopSpeekView.cs @@ -0,0 +1,89 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class NpcPopSpeekView : DlgBase + { + public override string fileName + { + get + { + return "Battle/NpcPopSpeek"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private IXUISprite m_avatar; + + private IXUILabel m_text; + + private IXUITweenTool m_tween; + + private GameObject m_Warning; + + protected override void Init() + { + this.m_avatar = (base.uiBehaviour.transform.Find("Duihua/Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_text = (base.uiBehaviour.transform.Find("Duihua/Text").GetComponent("XUILabel") as IXUILabel); + this.m_tween = (base.uiBehaviour.transform.Find("Duihua").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Warning = base.uiBehaviour.transform.Find("Duihua/Warning").gameObject; + } + + public void ShowNpcPopSpeek(int type, int npcid, string text, float time, string fmod) + { + this.SetVisible(true, true); + bool flag = type == 1; + if (flag) + { + this.m_Warning.SetActive(false); + } + else + { + bool flag2 = type == 2; + if (flag2) + { + this.m_Warning.SetActive(true); + } + } + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID((uint)npcid); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + DlgBase.singleton.ShowCurrTempMsg(text, byID.Name); + bool flag3 = byID != null; + if (flag3) + { + this.m_avatar.SetSprite(byPresentID.Avatar, byPresentID.Atlas, false); + } + this.m_text.SetText(text); + this.m_tween.PlayTween(true, -1f); + bool flag4 = !string.IsNullOrEmpty(fmod); + if (flag4) + { + XSingleton.singleton.PlayUISound(fmod, true, AudioChannel.Action); + } + } + + protected void ClosePopSpeek(object o) + { + this.m_tween.PlayTween(false, -1f); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/NpcPopSpeekView.cs.meta b/Client/Assets/Scripts/XMainClient/NpcPopSpeekView.cs.meta new file mode 100644 index 00000000..fe78ec5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NpcPopSpeekView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09659e2cf507da74f8cd0ad17e23f1c7 +timeCreated: 1611403156 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/NpcTaskState.cs b/Client/Assets/Scripts/XMainClient/NpcTaskState.cs new file mode 100644 index 00000000..de068211 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NpcTaskState.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum NpcTaskState + { + TaskEnd, + TaskBegin, + TaskInprocess, + Normal, + Invalid + } +} diff --git a/Client/Assets/Scripts/XMainClient/NpcTaskState.cs.meta b/Client/Assets/Scripts/XMainClient/NpcTaskState.cs.meta new file mode 100644 index 00000000..6a12d47a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/NpcTaskState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2744404636f3c03438228d643b8e9826 +timeCreated: 1611403470 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/OptionsBattleTab.cs b/Client/Assets/Scripts/XMainClient/OptionsBattleTab.cs new file mode 100644 index 00000000..de2fa1ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/OptionsBattleTab.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum OptionsBattleTab + { + CameraTab = 1, + OperateTab, + OtherTab, + MAX = 3 + } +} diff --git a/Client/Assets/Scripts/XMainClient/OptionsBattleTab.cs.meta b/Client/Assets/Scripts/XMainClient/OptionsBattleTab.cs.meta new file mode 100644 index 00000000..10c91493 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/OptionsBattleTab.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86bf6367e031bea45992291e3de4cea7 +timeCreated: 1611404056 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/OptionsTab.cs b/Client/Assets/Scripts/XMainClient/OptionsTab.cs new file mode 100644 index 00000000..dfda6b2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/OptionsTab.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + public enum OptionsTab + { + InfoTab, + OptionTab, + BaseTab, + NotifyTab, + VoiceTab, + DisplayTab, + PushTab, + CameraTab + } +} diff --git a/Client/Assets/Scripts/XMainClient/OptionsTab.cs.meta b/Client/Assets/Scripts/XMainClient/OptionsTab.cs.meta new file mode 100644 index 00000000..27462af0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/OptionsTab.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 938b05bdb75bb0b459a570b6257dc716 +timeCreated: 1611404151 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC.meta b/Client/Assets/Scripts/XMainClient/PTC.meta new file mode 100644 index 00000000..3092eaf6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 0146c43f781894747982c6bbbf26e56d +folderAsset: yes +timeCreated: 1611546551 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process.meta b/Client/Assets/Scripts/XMainClient/PTC/Process.meta new file mode 100644 index 00000000..507ae0b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: c72c772097061fb4abb78e3d03ec6ed1 +folderAsset: yes +timeCreated: 1611546552 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcA2C_AudioAIDNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcA2C_AudioAIDNtf.cs new file mode 100644 index 00000000..47160778 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcA2C_AudioAIDNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcA2C_AudioAIDNtf + { + public static void Process(PtcA2C_AudioAIDNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcA2C_AudioAIDNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcA2C_AudioAIDNtf.cs.meta new file mode 100644 index 00000000..2fccf412 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcA2C_AudioAIDNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 865403d02cc5c75479a7327239fbc9ab +timeCreated: 1611404054 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AIDebugInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AIDebugInfo.cs new file mode 100644 index 00000000..ddf6e5ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AIDebugInfo.cs @@ -0,0 +1,26 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_AIDebugInfo + { + public static void Process(PtcG2C_AIDebugInfo roPtc) + { + string[] array = roPtc.Data.msg.Split(new char[] + { + '\n' + }); + XSingleton.singleton.AddLog("--------START--------", null, null, null, null, null, XDebugColor.XDebug_None); + for (int i = 0; i < array.Length; i++) + { + bool flag = array[i].Length == 0; + if (!flag) + { + XSingleton.singleton.AddGreenLog(array[i], null, null, null, null, null); + } + } + XSingleton.singleton.AddLog("--------END--------", null, null, null, null, null, XDebugColor.XDebug_None); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AIDebugInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AIDebugInfo.cs.meta new file mode 100644 index 00000000..18a11a6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AIDebugInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3fb7f7c9ad1be9341866245f455e5e36 +timeCreated: 1611403612 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AbsPartyNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AbsPartyNtf.cs new file mode 100644 index 00000000..7b9ed7b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AbsPartyNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_AbsPartyNtf + { + public static void Process(PtcG2C_AbsPartyNtf roPtc) + { + XAbyssPartyDocument specificDocument = XDocuments.GetSpecificDocument(XAbyssPartyDocument.uuID); + specificDocument.SetAbyssIndex(roPtc.Data.aby); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AbsPartyNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AbsPartyNtf.cs.meta new file mode 100644 index 00000000..19baa10b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AbsPartyNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a478f2077d673847b2e117093216bf8 +timeCreated: 1611403988 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ActivityRoleNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ActivityRoleNotify.cs new file mode 100644 index 00000000..f977fd6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ActivityRoleNotify.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ActivityRoleNotify + { + public static void Process(PtcG2C_ActivityRoleNotify roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ActivityRoleNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ActivityRoleNotify.cs.meta new file mode 100644 index 00000000..c37d6d53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ActivityRoleNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04c1ea02b60498843ab6b5bfdbdab384 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs new file mode 100644 index 00000000..9466783b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs @@ -0,0 +1,17 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_AllGiftIBItemNtf + { + public static void Process(PtcG2C_AllGiftIBItemNtf roPtc) + { + bool flag = roPtc.Data.gift != null; + if (flag) + { + DlgBase.singleton.HanderGift(roPtc.Data.gift); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs.meta new file mode 100644 index 00000000..4c55d9cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllGiftIBItemNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 788dc9c47c2b48e4e9973ae4cdc17945 +timeCreated: 1611403981 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllyMatchRoleIDNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllyMatchRoleIDNotify.cs new file mode 100644 index 00000000..8ab8a972 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllyMatchRoleIDNotify.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_AllyMatchRoleIDNotify + { + public static void Process(PtcG2C_AllyMatchRoleIDNotify roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + specificDocument.MyTeam.OnEntityMatchingInfo(roPtc.Data); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllyMatchRoleIDNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllyMatchRoleIDNotify.cs.meta new file mode 100644 index 00000000..f0e7cee7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AllyMatchRoleIDNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f98e3b13605efd4d87651fa2efadd7b +timeCreated: 1611403830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AntiAddictionRemindNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AntiAddictionRemindNtf.cs new file mode 100644 index 00000000..ef996d79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AntiAddictionRemindNtf.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_AntiAddictionRemindNtf + { + public static void Process(PtcG2C_AntiAddictionRemindNtf roPtc) + { + AdditionRemindDocument specificDocument = XDocuments.GetSpecificDocument(AdditionRemindDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.OnRecieveAdditionTip(roPtc.Data.remindmsg); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AntiAddictionRemindNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AntiAddictionRemindNtf.cs.meta new file mode 100644 index 00000000..555d043b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AntiAddictionRemindNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48a97275977f8594b927f7cbc1318467 +timeCreated: 1611403659 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AttributeChangeNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AttributeChangeNotify.cs new file mode 100644 index 00000000..52c71ac1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AttributeChangeNotify.cs @@ -0,0 +1,18 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_AttributeChangeNotify + { + public static void Process(PtcG2C_AttributeChangeNotify roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.uID); + bool flag = entity != null; + if (flag) + { + entity.Net.OnAttributeChangedNotify(roPtc.Data); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AttributeChangeNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AttributeChangeNotify.cs.meta new file mode 100644 index 00000000..3fe31844 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_AttributeChangeNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed2dd86887677e147bf9c08c3a512534 +timeCreated: 1611404790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs new file mode 100644 index 00000000..ba424ce6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BFFightTimeNtf + { + public static void Process(PtcG2C_BFFightTimeNtf roPtc) + { + XBattleFieldBattleDocument.Doc.SetTime(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs.meta new file mode 100644 index 00000000..98f8ed71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BFFightTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d5e34b6d01853848a96b9c79fe4f513 +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs new file mode 100644 index 00000000..7c3fc22c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BMFightTimeNtf + { + public static void Process(PtcG2C_BMFightTimeNtf roPtc) + { + XBigMeleeBattleDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + specificDocument.SetBattleTime(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs.meta new file mode 100644 index 00000000..9ee92963 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMFightTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc98ff5ed1511b1439fe8c5a37c89862 +timeCreated: 1611404551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs new file mode 100644 index 00000000..a1f58e1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BMReadyTimeNtf + { + public static void Process(PtcG2C_BMReadyTimeNtf roPtc) + { + XSkyArenaEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaEntranceDocument.uuID); + specificDocument.SetTime(roPtc.Data.time); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs.meta new file mode 100644 index 00000000..d27ed618 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMReadyTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 11db8d0efed73834d9a36b5223adca5d +timeCreated: 1611403240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs new file mode 100644 index 00000000..587a3aed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BMRoleSceneSyncNtf + { + public static void Process(PtcG2C_BMRoleSceneSyncNtf roPtc) + { + XBigMeleeBattleDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + specificDocument.SetBattleData(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs.meta new file mode 100644 index 00000000..79e48a0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BMRoleSceneSyncNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b59d8bcc040926246b9194985a1b1604 +timeCreated: 1611404396 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs new file mode 100644 index 00000000..dad7b592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BackFlowOpenNtf + { + public static void Process(PtcG2C_BackFlowOpenNtf roPtc) + { + XBackFlowDocument.Doc.ShowBackFlowDlg(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs.meta new file mode 100644 index 00000000..2febf7d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BackFlowOpenNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 70995ef84bedbe144ac680b86bd232db +timeCreated: 1611403932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReadyInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReadyInfoNtf.cs new file mode 100644 index 00000000..1dbd421f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReadyInfoNtf.cs @@ -0,0 +1,30 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_BattleFieldReadyInfoNtf + { + public static void Process(PtcG2C_BattleFieldReadyInfoNtf roPtc) + { + bool flag = DlgBase.singleton._WaitHandler != null && roPtc.Data.failedSpecified && roPtc.Data.failed; + if (flag) + { + DlgBase.singleton._WaitHandler.NextWaitStart(); + } + bool flag2 = DlgBase.singleton._WaitHandler != null && roPtc.Data.endSpecified && roPtc.Data.end; + if (flag2) + { + DlgBase.singleton._WaitHandler.SetWaitEnd(); + } + XSkyArenaEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaEntranceDocument.uuID); + specificDocument.SetTime(roPtc.Data.time); + bool flag3 = DlgBase.singleton._WaitHandler != null && roPtc.Data.roundSpecified; + if (flag3) + { + DlgBase.singleton._WaitHandler.RefreshMapName((int)roPtc.Data.round); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReadyInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReadyInfoNtf.cs.meta new file mode 100644 index 00000000..e54b7913 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReadyInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca9ee0d07c640a347b7f9cacd6409146 +timeCreated: 1611404542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReliveNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReliveNtf.cs new file mode 100644 index 00000000..c613e291 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReliveNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BattleFieldReliveNtf + { + public static void Process(PtcG2C_BattleFieldReliveNtf roPtc) + { + XBattleFieldBattleDocument.Doc.SetReviveTime(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReliveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReliveNtf.cs.meta new file mode 100644 index 00000000..b8722dca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldReliveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba6da14ea0982e84eb45df5aa49219ed +timeCreated: 1611404436 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldRoleAgainstNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldRoleAgainstNtf.cs new file mode 100644 index 00000000..7fb3cb43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldRoleAgainstNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BattleFieldRoleAgainstNtf + { + public static void Process(PtcG2C_BattleFieldRoleAgainstNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldRoleAgainstNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldRoleAgainstNtf.cs.meta new file mode 100644 index 00000000..88869832 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleFieldRoleAgainstNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d730d386d3a07e459e552fcef1f5d2d +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleResultNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleResultNtf.cs new file mode 100644 index 00000000..b509f387 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleResultNtf.cs @@ -0,0 +1,49 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_BattleResultNtf + { + public static void Process(PtcG2C_BattleResultNtf roPtc) + { + bool flag = roPtc.Data == null || roPtc.Data.stageInfo == null; + if (!flag) + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + bool flag2 = !specificDocument.RequestServer && !XSingleton.singleton.SyncMode; + if (!flag2) + { + bool haveBattleResultData = XSingleton.singleton.HaveBattleResultData; + if (!haveBattleResultData) + { + bool flag3 = specificDocument.CurrentScene != roPtc.Data.stageInfo.stageID; + if (!flag3) + { + XSingleton.singleton.HaveBattleResultData = true; + specificDocument.RequestServer = false; + XSingleton.singleton.Stop(true); + bool isStageFailed = roPtc.Data.stageInfo.isStageFailed; + if (isStageFailed) + { + XSingleton.singleton.OnLevelFailed(); + } + else + { + bool flag4 = !XSingleton.singleton.bSpectator; + if (flag4) + { + specificDocument.SetBattleResultData(roPtc.Data); + } + XSingleton.singleton.IsCurrentLevelWin = true; + XSingleton.singleton.StartLevelFinish(); + } + XSingleton.singleton.DoScriptRecord(roPtc.Data.stageInfo.stageID + "after"); + XStaticSecurityStatistics.OnEnd(); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleResultNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleResultNtf.cs.meta new file mode 100644 index 00000000..b7c329e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleResultNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e1d8c6ce1cadde49b6223b1dd77e962 +timeCreated: 1611403810 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleStatisticsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleStatisticsNtf.cs new file mode 100644 index 00000000..8d308120 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleStatisticsNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BattleStatisticsNtf + { + public static void Process(PtcG2C_BattleStatisticsNtf roPtc) + { + XCombatStatisticsDocument specificDocument = XDocuments.GetSpecificDocument(XCombatStatisticsDocument.uuID); + specificDocument.OnGetStatistics(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleStatisticsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleStatisticsNtf.cs.meta new file mode 100644 index 00000000..25527539 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleStatisticsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29d96ec0af514ba40a933b6d578c0b98 +timeCreated: 1611403478 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs new file mode 100644 index 00000000..8bae9201 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BattleWatcherNtf + { + public static void Process(PtcG2C_BattleWatcherNtf roPtc) + { + XSpectateLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateLevelRewardDocument.uuID); + specificDocument.SetData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs.meta new file mode 100644 index 00000000..b4273000 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BattleWatcherNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6ff8aa23cac74b48b040349c2c852e6 +timeCreated: 1611404528 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs new file mode 100644 index 00000000..4712103f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BigMeleePointNtf + { + public static void Process(PtcG2C_BigMeleePointNtf roPtc) + { + bool flag = XBigMeleeBattleDocument.Doc.battleHandler != null; + if (flag) + { + XBigMeleeBattleDocument.Doc.battleHandler.SetGetPointAnimation(roPtc.Data.point, roPtc.Data.posxz); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs.meta new file mode 100644 index 00000000..6674f651 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bcea023760a66df409832c3d21b30039 +timeCreated: 1611404449 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointOutLookNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointOutLookNtf.cs new file mode 100644 index 00000000..f64283c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointOutLookNtf.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_BigMeleePointOutLookNtf + { + public static void Process(PtcG2C_BigMeleePointOutLookNtf roPtc) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_FIGHT; + if (flag) + { + XBigMeleeBattleDocument.Doc.SetPoint(roPtc.Data.roleid, roPtc.Data.point); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointOutLookNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointOutLookNtf.cs.meta new file mode 100644 index 00000000..9c54c7e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleePointOutLookNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04daf64801124a747b2541c27c85e0fc +timeCreated: 1611402962 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleeReliveNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleeReliveNtf.cs new file mode 100644 index 00000000..45ce42e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleeReliveNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_BigMeleeReliveNtf + { + public static void Process(PtcG2C_BigMeleeReliveNtf roPtc) + { + XBigMeleeBattleDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + specificDocument.SetReviveTime(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleeReliveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleeReliveNtf.cs.meta new file mode 100644 index 00000000..4eed6a1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BigMeleeReliveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47218d776ec2b9e4999aa82dbc2d3350 +timeCreated: 1611403652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BossRushOneFinishNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BossRushOneFinishNtf.cs new file mode 100644 index 00000000..a56eb7cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BossRushOneFinishNtf.cs @@ -0,0 +1,32 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_BossRushOneFinishNtf + { + public static void Process(PtcG2C_BossRushOneFinishNtf roPtc) + { + XBossBushDocument specificDocument = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + bool win = roPtc.Data.win; + if (win) + { + bool flag = specificDocument.respData.currank < 5; + if (flag) + { + DlgBase.singleton.ShowBossrushResult(); + } + } + else + { + bool flag2 = specificDocument.respData.currank <= 1; + if (flag2) + { + XSingleton.singleton.ForceLevelFinish(false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BossRushOneFinishNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BossRushOneFinishNtf.cs.meta new file mode 100644 index 00000000..20bcdb5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BossRushOneFinishNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e7420a3452d3d940a43298acd27c8f7 +timeCreated: 1611403364 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BuffNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BuffNotify.cs new file mode 100644 index 00000000..7bfae4b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BuffNotify.cs @@ -0,0 +1,45 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_BuffNotify + { + public static void Process(PtcG2C_BuffNotify roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.uid); + bool flag = entity != null && !entity.Deprecated && entity.Buffs != null; + if (flag) + { + bool flag2 = roPtc.Data.removebuff != null; + if (flag2) + { + entity.Buffs.RemoveBuffByServer(roPtc.Data.removebuff); + BuffInfo buffInfo = roPtc.Data.removebuff; + } + bool flag3 = roPtc.Data.allbuffsinfo != null; + if (flag3) + { + entity.Buffs.SetServerAllBuffsInfo(roPtc.Data.allbuffsinfo); + } + else + { + XSingleton.singleton.AddErrorLog("All buff data is missing, UID = ", roPtc.Data.uid.ToString(), null, null, null, null); + } + bool flag4 = roPtc.Data.addbuff != null; + if (flag4) + { + entity.Buffs.AddBuffByServer(roPtc.Data.addbuff); + BuffInfo buffInfo = roPtc.Data.addbuff; + } + bool flag5 = roPtc.Data.updatebuff != null; + if (flag5) + { + entity.Buffs.UpdateBuffByServer(roPtc.Data.updatebuff); + BuffInfo buffInfo = roPtc.Data.updatebuff; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BuffNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BuffNotify.cs.meta new file mode 100644 index 00000000..6ab6a5d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_BuffNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a95c060161ce8a64988cb9655f628dcf +timeCreated: 1611404298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CdCall.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CdCall.cs new file mode 100644 index 00000000..d5ea5fb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CdCall.cs @@ -0,0 +1,23 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_CdCall + { + public static void Process(PtcG2C_CdCall roPtc) + { + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSkillCore skill = XSingleton.singleton.Player.SkillMgr.GetSkill(roPtc.Data.skillid); + bool flag2 = skill != null; + if (flag2) + { + skill.OnCdCall(roPtc.Data.leftrunningtimeSpecified ? roPtc.Data.leftrunningtime : 0, roPtc.Data.onsyntonicSpecified); + XSingleton.singleton.Player.Net.LastReqSkill = skill.ID; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CdCall.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CdCall.cs.meta new file mode 100644 index 00000000..8d6ba883 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CdCall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2024766d71db2f0458f06df085f46b45 +timeCreated: 1611403404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeFashionNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeFashionNotify.cs new file mode 100644 index 00000000..be123f28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeFashionNotify.cs @@ -0,0 +1,22 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ChangeFashionNotify + { + public static void Process(PtcG2C_ChangeFashionNotify roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.roleID); + bool flag = entity != null; + if (flag) + { + XEquipChangeEventArgs @event = XEventPool.GetEvent(); + @event.ItemID = roPtc.Data.newItemID; + @event.EquipPart = roPtc.Data.position; + @event.Firer = entity; + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeFashionNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeFashionNotify.cs.meta new file mode 100644 index 00000000..01279c7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeFashionNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b53e583000d14d43921b9313d075106 +timeCreated: 1611403315 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeNameCountNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeNameCountNtf.cs new file mode 100644 index 00000000..796f0ec1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeNameCountNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ChangeNameCountNtf + { + public static void Process(PtcG2C_ChangeNameCountNtf roPtc) + { + XRenameDocument specificDocument = XDocuments.GetSpecificDocument(XRenameDocument.uuID); + specificDocument.SetPlayerRenameTimes(roPtc.Data.count); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeNameCountNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeNameCountNtf.cs.meta new file mode 100644 index 00000000..0e555a53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeNameCountNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 620f273a306f8a24abf3f5fc63470ebb +timeCreated: 1611403840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeSupplementNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeSupplementNtf.cs new file mode 100644 index 00000000..387eaabe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeSupplementNtf.cs @@ -0,0 +1,19 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ChangeSupplementNtf + { + public static void Process(PtcG2C_ChangeSupplementNtf roPtc) + { + bool flag = roPtc.Data.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(roPtc.Data.errorcode, "fece00"); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeSupplementNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeSupplementNtf.cs.meta new file mode 100644 index 00000000..49efd2b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChangeSupplementNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 317e0b5c05c462649848174575388a30 +timeCreated: 1611403545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs new file mode 100644 index 00000000..912b0c8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs @@ -0,0 +1,18 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ChatNotifyG2C + { + public static void Process(PtcG2C_ChatNotifyG2C roPtc) + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + bool flag = (ulong)roPtc.Data.chatinfo.channel == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.Battle)) || (ulong)roPtc.Data.chatinfo.channel == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.Spectate)) || (ulong)roPtc.Data.chatinfo.channel == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.Curr)); + if (flag) + { + specificDocument.OnReceiveChatInfo(roPtc.Data.chatinfo); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs.meta new file mode 100644 index 00000000..9c361c60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatNotifyG2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09ee3d0480f99ee4e8fa62b2c517b9ec +timeCreated: 1611403160 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatOfflineNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatOfflineNotify.cs new file mode 100644 index 00000000..adfff64a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatOfflineNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ChatOfflineNotify + { + public static void Process(PtcM2C_MCChatOffLineNotify roPtc) + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.ReceiveOfflineMsg(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatOfflineNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatOfflineNotify.cs.meta new file mode 100644 index 00000000..d6ae651f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ChatOfflineNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33d555c28b4f6344db02e5830ce0d176 +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CheckinInfoNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CheckinInfoNotify.cs new file mode 100644 index 00000000..fd96886f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CheckinInfoNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_CheckinInfoNotify + { + public static void Process(PtcG2C_CheckinInfoNotify roPtc) + { + XLoginRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLoginRewardDocument.uuID); + specificDocument.OnCheckinInfoNotify(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CheckinInfoNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CheckinInfoNotify.cs.meta new file mode 100644 index 00000000..0f1dd357 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CheckinInfoNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 805bb5a98e3690e4a9b32dbdad90290e +timeCreated: 1611404033 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ClientOnlyBuffNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ClientOnlyBuffNotify.cs new file mode 100644 index 00000000..7204ce9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ClientOnlyBuffNotify.cs @@ -0,0 +1,38 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ClientOnlyBuffNotify + { + public static void Process(PtcG2C_ClientOnlyBuffNotify roPtc) + { + XRole xrole = XSingleton.singleton.GetEntity(roPtc.Data.roleid) as XRole; + bool flag = !XEntity.ValideEntity(xrole); + if (!flag) + { + for (int i = 0; i < roPtc.Data.buffs.Count; i++) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + Buff buff = roPtc.Data.buffs[i]; + @event.xBuffDesc.BuffID = buff.buffID; + @event.xBuffDesc.BuffLevel = buff.buffLevel; + @event.Firer = xrole; + @event.xBuffDesc.CasterID = roPtc.Data.casterid; + bool skillIDSpecified = buff.skillIDSpecified; + if (skillIDSpecified) + { + @event.xBuffDesc.SkillID = buff.skillID; + } + bool effecttimeSpecified = buff.effecttimeSpecified; + if (effecttimeSpecified) + { + @event.xBuffDesc.EffectTime = buff.effecttime; + } + XSingleton.singleton.FireEvent(@event); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ClientOnlyBuffNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ClientOnlyBuffNotify.cs.meta new file mode 100644 index 00000000..f9d6d8c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ClientOnlyBuffNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a36ff3da13111146b7f089357c901cf +timeCreated: 1611403308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CloseChooseHeroNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CloseChooseHeroNtf.cs new file mode 100644 index 00000000..326aa42e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CloseChooseHeroNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_CloseChooseHeroNtf + { + public static void Process(PtcG2C_CloseChooseHeroNtf roPtc) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.SetUIDeathGoState(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CloseChooseHeroNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CloseChooseHeroNtf.cs.meta new file mode 100644 index 00000000..dad10377 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CloseChooseHeroNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37977bfd56abe46459182e4e1c06f58d +timeCreated: 1611403566 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CompleteAchivement.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CompleteAchivement.cs new file mode 100644 index 00000000..a757fb3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CompleteAchivement.cs @@ -0,0 +1,17 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_CompleteAchivement + { + public static void Process(PtcG2C_CompleteAchivement roPtc) + { + XAchievementDocument specificDocument = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + specificDocument.SetAchivementState(roPtc.Data.achivementID, roPtc.Data.state); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward_Achivement, true); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_ServerActivity, true); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_LevelReward, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CompleteAchivement.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CompleteAchivement.cs.meta new file mode 100644 index 00000000..2ba05c7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CompleteAchivement.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81e9c6addc8017c4d96c710d6970667d +timeCreated: 1611404038 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CorrectPosition.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CorrectPosition.cs new file mode 100644 index 00000000..65bb8bda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CorrectPosition.cs @@ -0,0 +1,22 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_CorrectPosition + { + public static void Process(PtcG2C_CorrectPosition roPtc) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(roPtc.Data.uid); + bool flag = entityConsiderDeath != null; + if (flag) + { + Vector3 pos; + pos = new Vector3((float)roPtc.Data.pos_x / 100f, (float)roPtc.Data.pos_y / 100f, (float)roPtc.Data.pos_z / 100f); + Vector3 face = XSingleton.singleton.FloatToAngle((float)roPtc.Data.face / 10f); + entityConsiderDeath.CorrectMe(pos, face, false, roPtc.Data.bTransfer); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CorrectPosition.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CorrectPosition.cs.meta new file mode 100644 index 00000000..587d22ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CorrectPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ddd7b2488f907e446aec46f91d6ae34c +timeCreated: 1611404684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CountDownNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CountDownNtf.cs new file mode 100644 index 00000000..72e30810 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CountDownNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_CountDownNtf + { + public static void Process(PtcG2C_CountDownNtf roPtc) + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.LeaveSceneCountDown(roPtc.Data.time); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CountDownNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CountDownNtf.cs.meta new file mode 100644 index 00000000..57e254fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CountDownNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c13bcc0e9bb33a4fadfe18dff29378c +timeCreated: 1611403894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CoverDesignationNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CoverDesignationNtf.cs new file mode 100644 index 00000000..5773c4d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CoverDesignationNtf.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_CoverDesignationNtf + { + public static void Process(PtcG2C_CoverDesignationNtf roPtc) + { + XDesignationDocument xdesignationDocument = XSingleton.singleton.Doc.GetXComponent(XDesignationDocument.uuID) as XDesignationDocument; + xdesignationDocument.SetCoverDesignationID(roPtc.Data.designationID, roPtc.Data.desname); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CoverDesignationNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CoverDesignationNtf.cs.meta new file mode 100644 index 00000000..dffdf744 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CoverDesignationNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bdf572ffb25b654780263dd52c794cb +timeCreated: 1611403688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CustomBattleLoadingNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CustomBattleLoadingNtf.cs new file mode 100644 index 00000000..67e13ab9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CustomBattleLoadingNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_CustomBattleLoadingNtf + { + public static void Process(PtcG2C_CustomBattleLoadingNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CustomBattleLoadingNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CustomBattleLoadingNtf.cs.meta new file mode 100644 index 00000000..b30b532d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_CustomBattleLoadingNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 505480c98801943439a9d1643de591d7 +timeCreated: 1611403703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DPSNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DPSNotify.cs new file mode 100644 index 00000000..54310dfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DPSNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_DPSNotify + { + public static void Process(PtcG2C_DPSNotify roPtc) + { + XCombatStatisticsDocument specificDocument = XDocuments.GetSpecificDocument(XCombatStatisticsDocument.uuID); + specificDocument.OnGetDps((double)roPtc.Data.dps); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DPSNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DPSNotify.cs.meta new file mode 100644 index 00000000..570f6e3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DPSNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b1d3d5e436cee545900a0c2fac199fb +timeCreated: 1611403797 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DeathNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DeathNotify.cs new file mode 100644 index 00000000..85996ec1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DeathNotify.cs @@ -0,0 +1,29 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_DeathNotify + { + public static void Process(PtcG2C_DeathNotify roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.uID); + bool flag = entity != null; + if (flag) + { + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + XReviveDocument specificDocument = XDocuments.GetSpecificDocument(XReviveDocument.uuID); + specificDocument.SetReviveData((int)roPtc.Data.revivecount, (int)roPtc.Data.costrevivecount, roPtc.Data.type); + } + bool flag2 = entity.Machine != null && !entity.Machine.Enabled; + if (flag2) + { + entity.Machine.Enabled = true; + } + entity.Net.OnDeathNotify(roPtc.Data); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DeathNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DeathNotify.cs.meta new file mode 100644 index 00000000..0f115872 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DeathNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c58c242e834fe9468a3dfea3208f7ce +timeCreated: 1611403895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DisplayAddItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DisplayAddItem.cs new file mode 100644 index 00000000..736b8088 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DisplayAddItem.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_DisplayAddItem + { + public static void Process(PtcG2C_DisplayAddItem roPtc) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + specificDocument.ItemUpdate(roPtc.Data.add_item_id, roPtc.Data.del_item_id); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DisplayAddItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DisplayAddItem.cs.meta new file mode 100644 index 00000000..431573cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DisplayAddItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0869b8c4b6ed56d45be9558cef7e1463 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs new file mode 100644 index 00000000..5be1690b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_DoodadItemAddNtf + { + public static void Process(PtcG2C_DoodadItemAddNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs.meta new file mode 100644 index 00000000..faa742f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemAddNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 609bedf64380710488830c29bb36e0e5 +timeCreated: 1611403835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemSkillsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemSkillsNtf.cs new file mode 100644 index 00000000..d1fc6723 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemSkillsNtf.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_DoodadItemSkillsNtf + { + public static void Process(PtcG2C_DoodadItemSkillsNtf roPtc) + { + bool flag = XRaceDocument.Doc.RaceHandler != null; + if (flag) + { + XRaceDocument.Doc.RaceHandler.RefreshDoodad(roPtc.Data); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemSkillsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemSkillsNtf.cs.meta new file mode 100644 index 00000000..93826066 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemSkillsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9553c527441ce0c4ba927a91d4cfad2a +timeCreated: 1611404181 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs new file mode 100644 index 00000000..8fbf3070 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_DoodadItemUseNtf + { + public static void Process(PtcG2C_DoodadItemUseNtf roPtc) + { + XRaceDocument.Doc.AddInfo(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs.meta new file mode 100644 index 00000000..a1ddecbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_DoodadItemUseNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e00053117ad5f524a978cfe98c601f94 +timeCreated: 1611404695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs new file mode 100644 index 00000000..8f118593 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs @@ -0,0 +1,16 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_EnemyDorpDoodadNtf + { + public static void Process(PtcG2C_EnemyDorpDoodadNtf roPtc) + { + for (int i = 0; i < roPtc.Data.doodadInfo.Count; i++) + { + XSingleton.singleton.ReceiveDoodadServerInfo(roPtc.Data.doodadInfo[i]); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs.meta new file mode 100644 index 00000000..8f5b216e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnemyDorpDoodadNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ef15b9843d702646a222a81f072507b +timeCreated: 1611404243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneCoolDownNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneCoolDownNotify.cs new file mode 100644 index 00000000..0f7bd14d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneCoolDownNotify.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_EnterSceneCoolDownNotify + { + public static void Process(PtcG2C_EnterSceneCoolDownNotify roPtc) + { + for (int i = 0; i < roPtc.Data.groupid.Count; i++) + { + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneCoolDownNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneCoolDownNotify.cs.meta new file mode 100644 index 00000000..ad8ece1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneCoolDownNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc831638fbb113a4b8cb07c95e054683 +timeCreated: 1611404550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs new file mode 100644 index 00000000..c16d06c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs @@ -0,0 +1,23 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_EnterSceneNtf + { + public static void Process(PtcG2C_EnterSceneNtf roPtc) + { + XSingleton.singleton.XLoginStep = XLoginStep.Playing; + XHeroBattleDocument.LoadSkillHandler = roPtc.Data.canMorph; + bool sceneReady = XSingleton.singleton.SceneReady; + if (sceneReady) + { + XSingleton.singleton.SceneEnterTo(roPtc.Data, true); + } + else + { + XSingleton.singleton.StoreSceneConfig(roPtc.Data); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs.meta new file mode 100644 index 00000000..d7e307f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EnterSceneNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 572300cc9d0cfc042bedbf9207f36e1e +timeCreated: 1611403748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EntityTargetChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EntityTargetChangeNtf.cs new file mode 100644 index 00000000..07aaec21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EntityTargetChangeNtf.cs @@ -0,0 +1,19 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_EntityTargetChangeNtf + { + public static void Process(PtcG2C_EntityTargetChangeNtf roPtc) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + specificDocument.OnEntityTargetChange(roPtc.Data); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EntityTargetChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EntityTargetChangeNtf.cs.meta new file mode 100644 index 00000000..9611d20d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_EntityTargetChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 067fad68c02f7d141a3f43fdc0e5a917 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExecuteLevelScriptNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExecuteLevelScriptNtf.cs new file mode 100644 index 00000000..c969f33d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExecuteLevelScriptNtf.cs @@ -0,0 +1,13 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ExecuteLevelScriptNtf + { + public static void Process(PtcG2C_ExecuteLevelScriptNtf roPtc) + { + XSingleton.singleton.RunScript(roPtc.Data.script); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExecuteLevelScriptNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExecuteLevelScriptNtf.cs.meta new file mode 100644 index 00000000..41487ce0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExecuteLevelScriptNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 159e130db37142c42ac6de9c257f32b1 +timeCreated: 1611403264 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs new file mode 100644 index 00000000..c1e78c1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ExpFindBackNtf + { + public static void Process(PtcG2C_ExpFindBackNtf roPtc) + { + XFindExpDocument.Doc.OnGetExpInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs.meta new file mode 100644 index 00000000..c600c711 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ExpFindBackNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 38c49959231d00941ae715f29e94f109 +timeCreated: 1611403590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FashoinChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FashoinChangedNtf.cs new file mode 100644 index 00000000..3ef7bd13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FashoinChangedNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_FashoinChangedNtf + { + public static void Process(PtcG2C_FashoinChangedNtf roPtc) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + specificDocument.UpdateFashionData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FashoinChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FashoinChangedNtf.cs.meta new file mode 100644 index 00000000..a7193376 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FashoinChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06638783d65b3bd4c829ad93e49571a6 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs new file mode 100644 index 00000000..642b57c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs @@ -0,0 +1,14 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_FastMBConfirmNtf + { + public static void Process(PtcG2C_FastMBConfirmNtf roPtc) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs.meta new file mode 100644 index 00000000..f472fbb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FastMBConfirmNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4baf2db943eb314b95c02835101f8fe +timeCreated: 1611404856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FatigueRecoverTimeNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FatigueRecoverTimeNotify.cs new file mode 100644 index 00000000..a557c4a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FatigueRecoverTimeNotify.cs @@ -0,0 +1,13 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_FatigueRecoverTimeNotify + { + public static void Process(PtcG2C_FatigueRecoverTimeNotify roPtc) + { + DlgBase.singleton.ReceiveFatigueTime(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FatigueRecoverTimeNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FatigueRecoverTimeNotify.cs.meta new file mode 100644 index 00000000..c8326c4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FatigueRecoverTimeNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9228d82d8fff8794ea7e8d9de20857e4 +timeCreated: 1611404145 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs new file mode 100644 index 00000000..df1d1a5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs @@ -0,0 +1,49 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_FetchEnemyDoodadNtf + { + public static void Process(PtcG2C_FetchEnemyDoodadNtf roPtc) + { + Vector3 posid; + posid = new Vector3(roPtc.Data.doodadInfo.pos.x, roPtc.Data.doodadInfo.pos.y, roPtc.Data.doodadInfo.pos.z); + uint num = 0u; + XEntity p = null; + uint playerroll = 0u; + for (int i = 0; i < roPtc.Data.rollInfos.Count; i++) + { + bool flag = roPtc.Data.rollInfos[i].rollValue > num; + if (flag) + { + num = roPtc.Data.rollInfos[i].rollValue; + p = XSingleton.singleton.GetEntityConsiderDeath(roPtc.Data.rollInfos[i].roleID); + } + bool flag2 = roPtc.Data.rollInfos[i].roleID == XSingleton.singleton.Player.ID; + if (flag2) + { + playerroll = roPtc.Data.rollInfos[i].rollValue; + } + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag3) + { + XBattleCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + specificDocument.AddGameInfo(roPtc.Data.rollInfos[i].roleID, roPtc.Data.doodadInfo.id); + } + else + { + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT; + if (flag4) + { + XGuildTerritoryDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument2.OnAddBuff(roPtc.Data.rollInfos[i].roleID, roPtc.Data.doodadInfo.id); + } + } + } + XSingleton.singleton.OnDoodadPickedSyncSucc(roPtc.Data.doodadInfo.index, roPtc.Data.doodadInfo.waveid, posid, p, num, playerroll); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs.meta new file mode 100644 index 00000000..2c8f9d72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FetchEnemyDoodadNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab27984ca9b1fe34099245ede26fb51e +timeCreated: 1611404306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FightGroupChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FightGroupChangeNtf.cs new file mode 100644 index 00000000..c6ccb9c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FightGroupChangeNtf.cs @@ -0,0 +1,18 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_FightGroupChangeNtf + { + public static void Process(PtcG2C_FightGroupChangeNtf roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.uid); + bool flag = entity != null; + if (flag) + { + entity.Attributes.OnFightGroupChange(roPtc.Data.fightgroup); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FightGroupChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FightGroupChangeNtf.cs.meta new file mode 100644 index 00000000..8adce1e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FightGroupChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f4cd2f07a7443c4b9aa42b844c94258 +timeCreated: 1611403610 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FirstPassRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FirstPassRewardNtf.cs new file mode 100644 index 00000000..9f411fd8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FirstPassRewardNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_FirstPassRewardNtf + { + public static void Process(PtcG2C_FirstPassRewardNtf roPtc) + { + FirstPassDocument.Doc.RefreshOutRedDot(roPtc.Data.hasCommendReward, roPtc.Data.hasFirstPassReward); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FirstPassRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FirstPassRewardNtf.cs.meta new file mode 100644 index 00000000..7e4a7b35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FirstPassRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7dd8a507ed9a35048bc91aef83fb16dd +timeCreated: 1611404003 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs new file mode 100644 index 00000000..9d381569 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_FiveDayRewardNTF + { + public static void Process(PtcG2C_FiveDayRewardNTF roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs.meta new file mode 100644 index 00000000..42602c33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FiveDayRewardNTF.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e55402bd8fdf09f41a0f2c8a3770463f +timeCreated: 1611404742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRainNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRainNtf.cs new file mode 100644 index 00000000..2b67ffb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRainNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_FlowerRainNtf + { + public static void Process(PtcG2C_FlowerRainNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRainNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRainNtf.cs.meta new file mode 100644 index 00000000..d87e056c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRainNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2cb1e61642604d41914931c4fa47dc1 +timeCreated: 1611404729 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRankRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRankRewardNtf.cs new file mode 100644 index 00000000..944ffbee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRankRewardNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_FlowerRankRewardNtf + { + public static void Process(PtcG2C_FlowerRankRewardNtf roPtc) + { + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument.CanGetAwardNtf(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRankRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRankRewardNtf.cs.meta new file mode 100644 index 00000000..2310206c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_FlowerRankRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bfb758eaba15b7d42aab564c6347b4b4 +timeCreated: 1611404484 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs new file mode 100644 index 00000000..59458439 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GCFSynG2CNtf + { + public static void Process(PtcG2C_GCFSynG2CNtf roPtc) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.OnGCFSynG2CNtf(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs.meta new file mode 100644 index 00000000..014b9936 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFSynG2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ecc59adc08f55e479ad5005ef557957 +timeCreated: 1611403206 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFZhanLingNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFZhanLingNotify.cs new file mode 100644 index 00000000..b413e13d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFZhanLingNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GCFZhanLingNotify + { + public static void Process(PtcG2C_GCFZhanLingNotify roPtc) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.OnZhanLingNotify(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFZhanLingNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFZhanLingNotify.cs.meta new file mode 100644 index 00000000..d49b8f05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GCFZhanLingNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33538dfda844d4b41865a09ec032fa32 +timeCreated: 1611403552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs new file mode 100644 index 00000000..df082bcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs @@ -0,0 +1,52 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_GSErrorNotify + { + public static void Process(PtcG2C_GSErrorNotify roPtc) + { + int @int = XSingleton.singleton.GetInt("WorldBossSceneID"); + int int2 = XSingleton.singleton.GetInt("GuildBossSceneID"); + ErrorCode errorno = (ErrorCode)roPtc.Data.errorno; + if (errorno != ErrorCode.ERR_SCENE_COOLDOWN) + { + bool istip = roPtc.Data.istip; + if (istip) + { + XSingleton.singleton.ShowSystemTip((ErrorCode)roPtc.Data.errorno, "fece00"); + } + else + { + XSingleton.singleton.ShowErrorCode((ErrorCode)roPtc.Data.errorno); + } + } + else + { + bool flag = roPtc.Data.param.Count >= 2 && roPtc.Data.param[1] == (uint)@int; + if (flag) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("WorldBoss_CoolDown_Tips"), (int)roPtc.Data.param[0]), "fece00"); + } + else + { + bool flag2 = roPtc.Data.param.Count >= 2 && roPtc.Data.param[1] == (uint)int2; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("GuildBoss_CoolDown_Tips"), (int)roPtc.Data.param[0]), "fece00"); + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("SCENE_COOLDOWM_TIME", new object[] + { + (roPtc.Data.param.Count == 0) ? "" : XSingleton.singleton.TimeDuarationFormatString((int)roPtc.Data.param[0], 5) + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs.meta new file mode 100644 index 00000000..c88c6505 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GSErrorNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78e5ce008dfe8e6449ae660c0f1c35ac +timeCreated: 1611403982 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNotice.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNotice.cs new file mode 100644 index 00000000..787a1b15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNotice.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GardenBanquetNotice + { + public static void Process(PtcG2C_GardenBanquetNotice roPtc) + { + XHomeCookAndPartyDocument.Doc.OnGardenFeastPhase(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNotice.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNotice.cs.meta new file mode 100644 index 00000000..40d0c2e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa22d96fea979c1489e549db4bc3849c +timeCreated: 1611404302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs new file mode 100644 index 00000000..f9b4575c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GardenBanquetNtf + { + public static void Process(PtcG2C_GardenBanquetNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs.meta new file mode 100644 index 00000000..5123ad2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenBanquetNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98fb8926197ccd343acbd3838ee89899 +timeCreated: 1611404193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenPlantEventNotice.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenPlantEventNotice.cs new file mode 100644 index 00000000..3ebf3273 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenPlantEventNotice.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GardenPlantEventNotice + { + public static void Process(PtcG2C_GardenPlantEventNotice roPtc) + { + HomePlantDocument.Doc.OnGetHomeEventBack(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenPlantEventNotice.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenPlantEventNotice.cs.meta new file mode 100644 index 00000000..a8c19f93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GardenPlantEventNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b16a780b2c8a374889a008579c9fdfb +timeCreated: 1611403992 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GiftIBBackInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GiftIBBackInfoNtf.cs new file mode 100644 index 00000000..93bdcc5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GiftIBBackInfoNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GiftIBBackInfoNtf + { + public static void Process(PtcG2C_GiftIBBackInfoNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GiftIBBackInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GiftIBBackInfoNtf.cs.meta new file mode 100644 index 00000000..dec1b5ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GiftIBBackInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79a7309e89fcc954bbd7237361126088 +timeCreated: 1611403986 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfAllFightEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfAllFightEndNtf.cs new file mode 100644 index 00000000..5c1cefb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfAllFightEndNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfAllFightEndNtf + { + public static void Process(PtcG2C_GmfAllFightEndNtf roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnAllFightEnd(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfAllFightEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfAllFightEndNtf.cs.meta new file mode 100644 index 00000000..f7ace25c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfAllFightEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60557aaddaf59154a9c1539d1719016f +timeCreated: 1611403833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs new file mode 100644 index 00000000..d1cbeb92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfBaseDataNtf + { + public static void Process(PtcG2C_GmfBaseDataNtf roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnUpdateGuildArenaBattle(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs.meta new file mode 100644 index 00000000..24f9f041 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBaseDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c02e347dda4b5e42bfb141000a72758 +timeCreated: 1611403689 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBattleStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBattleStateNtf.cs new file mode 100644 index 00000000..ac876fa7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBattleStateNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfBattleStateNtf + { + public static void Process(PtcG2C_GmfBattleStateNtf roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnBattleState(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBattleStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBattleStateNtf.cs.meta new file mode 100644 index 00000000..2a167f91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfBattleStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e69aef6f72c5644f8d14b8b625f8526 +timeCreated: 1611403510 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfGuildCombatNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfGuildCombatNtf.cs new file mode 100644 index 00000000..786c6f49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfGuildCombatNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfGuildCombatNtf + { + public static void Process(PtcG2C_GmfGuildCombatNtf roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.ReceiveGuildCombatNotify(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfGuildCombatNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfGuildCombatNtf.cs.meta new file mode 100644 index 00000000..77e6f3d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfGuildCombatNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 436ffa81d2fa6784ebc9830c36a9e13a +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs new file mode 100644 index 00000000..1f27268d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfJoinBattleReq + { + public static void Process(PtcG2C_GmfJoinBattleReq roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs.meta new file mode 100644 index 00000000..5a3187a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfJoinBattleReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 262c892a3082a1c4e88e2bc664022277 +timeCreated: 1611403467 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfKickNty.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfKickNty.cs new file mode 100644 index 00000000..cd781999 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfKickNty.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfKickNty + { + public static void Process(PtcG2C_GmfKickNty roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnBekicked(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfKickNty.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfKickNty.cs.meta new file mode 100644 index 00000000..a868b58f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfKickNty.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f82f247992f4bc46ab3cdedcedf4043 +timeCreated: 1611403209 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfOneBattleEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfOneBattleEndNtf.cs new file mode 100644 index 00000000..0318a5bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfOneBattleEndNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfOneBattleEndNtf + { + public static void Process(PtcG2C_GmfOneBattleEndNtf roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnUpdateBattleEnd(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfOneBattleEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfOneBattleEndNtf.cs.meta new file mode 100644 index 00000000..b0303bd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfOneBattleEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d7b5f91c2c7603b4488d26eb9fb0d756 +timeCreated: 1611404636 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitFightBegin.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitFightBegin.cs new file mode 100644 index 00000000..d65e5ad0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitFightBegin.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfWaitFightBegin + { + public static void Process(PtcG2C_GmfWaitFightBegin roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnWaitFightBegin(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitFightBegin.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitFightBegin.cs.meta new file mode 100644 index 00000000..ae9c5693 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitFightBegin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fcf6014e2e8a5d347ad801ceac27ba9c +timeCreated: 1611404936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs new file mode 100644 index 00000000..f9d25d89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GmfWaitOtherLoad + { + public static void Process(PtcG2C_GmfWaitOtherLoad roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnWaitOtherLoad(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs.meta new file mode 100644 index 00000000..6a78e1ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GmfWaitOtherLoad.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbcd2247576690742bd78fff5f7a29b9 +timeCreated: 1611404655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprAllFightEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprAllFightEndNtf.cs new file mode 100644 index 00000000..86cceb64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprAllFightEndNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GprAllFightEndNtf + { + public static void Process(PtcG2C_GprAllFightEndNtf roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.ReceiveDuelFinalResult(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprAllFightEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprAllFightEndNtf.cs.meta new file mode 100644 index 00000000..4aa52caa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprAllFightEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e106abc7ad0dcc4ea1e98e9029c2381 +timeCreated: 1611403606 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprOneBattleEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprOneBattleEndNtf.cs new file mode 100644 index 00000000..b1a9074e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprOneBattleEndNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GprOneBattleEndNtf + { + public static void Process(PtcG2C_GprOneBattleEndNtf roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.ReceiveDuelRoundResult(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprOneBattleEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprOneBattleEndNtf.cs.meta new file mode 100644 index 00000000..814e9944 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GprOneBattleEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2455e2d1e4a823c4895a4268dc2d1320 +timeCreated: 1611403460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBestCardsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBestCardsNtf.cs new file mode 100644 index 00000000..a92ecb63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBestCardsNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GuildBestCardsNtf + { + public static void Process(PtcG2C_GuildBestCardsNtf roPtc) + { + XGuildJokerDocument specificDocument = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + specificDocument.SetBestCard(roPtc.Data.bestcards, roPtc.Data.bestrole); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBestCardsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBestCardsNtf.cs.meta new file mode 100644 index 00000000..65802b82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBestCardsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: adce219eee499ed4e8d273c6ffac8566 +timeCreated: 1611404336 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs new file mode 100644 index 00000000..18e02a4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GuildBossTimeOut + { + public static void Process(PtcG2C_GuildBossTimeOut roPtc) + { + XGuildDragonDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument.GuildBossTimeOut(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs.meta new file mode 100644 index 00000000..a141361d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildBossTimeOut.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 465c63ec06ffb2d4d83fc2008add9a10 +timeCreated: 1611403649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCampPartyTradeNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCampPartyTradeNotify.cs new file mode 100644 index 00000000..8a9cbc27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCampPartyTradeNotify.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_PtcG2C_GuildCampPartyTradeNotify + { + public static void Process(PtcG2C_GuildCampPartyTradeNotify roPtc) + { + bool flag = roPtc.Data.notify_type == GuildCampPartyTradeType.TRADE_INVITATION; + if (flag) + { + XRequestDocument specificDocument = XDocuments.GetSpecificDocument(XRequestDocument.uuID); + specificDocument.SetMainInterfaceNum((int)roPtc.Data.lauch_count); + } + else + { + bool flag2 = roPtc.Data.notify_type == GuildCampPartyTradeType.UPDATA_TRADE_STATUS; + if (flag2) + { + XExchangeItemDocument specificDocument2 = XDocuments.GetSpecificDocument(XExchangeItemDocument.uuID); + specificDocument2.OnServerDataGet(roPtc.Data); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCampPartyTradeNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCampPartyTradeNotify.cs.meta new file mode 100644 index 00000000..79bd4842 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCampPartyTradeNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84562fdf21217e144b3fb50a23bb9909 +timeCreated: 1611404047 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCheckinBoxNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCheckinBoxNtf.cs new file mode 100644 index 00000000..22024a58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCheckinBoxNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GuildCheckinBoxNtf + { + public static void Process(PtcG2C_GuildCheckinBoxNtf roPtc) + { + XGuildSignInDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + specificDocument.SetChestStateAndProgress(roPtc.Data.processbar, roPtc.Data.boxmask); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCheckinBoxNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCheckinBoxNtf.cs.meta new file mode 100644 index 00000000..1f660566 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildCheckinBoxNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36a0595a1dd92f14d8a7323e23af3a0b +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildGoblinKillNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildGoblinKillNtf.cs new file mode 100644 index 00000000..d504c9d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildGoblinKillNtf.cs @@ -0,0 +1,17 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_GuildGoblinKillNtf + { + public static void Process(PtcG2C_GuildGoblinKillNtf roPtc) + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildGoblinKillNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildGoblinKillNtf.cs.meta new file mode 100644 index 00000000..537166bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildGoblinKillNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e6fb52c360022d4c8f300bf5b1af5c2 +timeCreated: 1611404005 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildNotifyMemberChanged.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildNotifyMemberChanged.cs new file mode 100644 index 00000000..f088d872 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildNotifyMemberChanged.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GuildNotifyMemberChanged + { + public static void Process(PtcG2C_GuildNotifyMemberChanged roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildNotifyMemberChanged.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildNotifyMemberChanged.cs.meta new file mode 100644 index 00000000..f8b203c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildNotifyMemberChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03d832584c5eb694d90c78a568a8225d +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildSettingChangedNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildSettingChangedNotify.cs new file mode 100644 index 00000000..90de4176 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildSettingChangedNotify.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_GuildSettingChangedNotify + { + public static void Process(PtcG2C_GuildSettingChangedNotify roPtc) + { + XGuildHallDocument specificDocument = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + bool flag = roPtc.Data.annoucement != null; + if (flag) + { + specificDocument.OnAnnounceChanged(roPtc.Data.annoucement); + } + specificDocument.OnPortraitChanged(roPtc.Data.Icon); + XGuildApproveDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildApproveDocument.uuID); + specificDocument2.OnSetApprove(new GuildApproveSetting + { + autoApprove = (roPtc.Data.needApproval == 0), + PPT = roPtc.Data.RecuitPPT + }); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildSettingChangedNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildSettingChangedNotify.cs.meta new file mode 100644 index 00000000..f319fcbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_GuildSettingChangedNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a32f434c88383a4da80c80f947b30bc +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HallIconSNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HallIconSNtf.cs new file mode 100644 index 00000000..03ea7c15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HallIconSNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HallIconSNtf + { + public static void Process(PtcG2C_HallIconSNtf roPtc) + { + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.OnHallIconNtfGet(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HallIconSNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HallIconSNtf.cs.meta new file mode 100644 index 00000000..a0c3728a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HallIconSNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c53207bd0495e34f89f00801a86cc93 +timeCreated: 1611404099 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleAncientPower.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleAncientPower.cs new file mode 100644 index 00000000..fa3cf5f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleAncientPower.cs @@ -0,0 +1,27 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleAncientPower + { + public static void Process(PtcG2C_HeroBattleAncientPower roPtc) + { + bool flag = XSingleton.singleton.XPlayerData == null; + if (!flag) + { + ulong roleID = XSingleton.singleton.XPlayerData.RoleID; + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + for (int i = 0; i < roPtc.Data.roleids.Count; i++) + { + bool flag2 = roPtc.Data.roleids[i] == roleID; + if (flag2) + { + specificDocument.OnAncientPercentGet((float)roPtc.Data.ancientpower[i]); + break; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleAncientPower.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleAncientPower.cs.meta new file mode 100644 index 00000000..ce9bc34d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleAncientPower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7da594514079b55479e74f5315dcd604 +timeCreated: 1611404002 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleCanUseHero.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleCanUseHero.cs new file mode 100644 index 00000000..2d9f064d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleCanUseHero.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleCanUseHero + { + public static void Process(PtcG2C_HeroBattleCanUseHero roPtc) + { + XHeroBattleSkillDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + specificDocument.SetHeroBattleCanUseHero(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleCanUseHero.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleCanUseHero.cs.meta new file mode 100644 index 00000000..b93dc1ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleCanUseHero.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86e2c7f2495472148bb84e082aa1a012 +timeCreated: 1611404056 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleDataNtf.cs new file mode 100644 index 00000000..914c11f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleDataNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleDataNtf + { + public static void Process(PtcG2C_HeroBattleDataNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleDataNtf.cs.meta new file mode 100644 index 00000000..a8d93373 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 621b11ef839bd4b49b22027c833c99f0 +timeCreated: 1611403840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleInCircleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleInCircleNtf.cs new file mode 100644 index 00000000..89f4725d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleInCircleNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleInCircleNtf + { + public static void Process(PtcG2C_HeroBattleInCircleNtf roPtc) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.SetHeroBattleInCircleData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleInCircleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleInCircleNtf.cs.meta new file mode 100644 index 00000000..76de8fa9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleInCircleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b1b1753aaddfc6147a306c00e0ec1d6d +timeCreated: 1611404357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleOverTime.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleOverTime.cs new file mode 100644 index 00000000..faa8945b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleOverTime.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleOverTime + { + public static void Process(PtcG2C_HeroBattleOverTime roPtc) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.StartHeroBattleAddTime((int)roPtc.Data.millisecond); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleOverTime.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleOverTime.cs.meta new file mode 100644 index 00000000..1f7c74d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleOverTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5ac6ad381e948a4cb48f84d3331d2ca +timeCreated: 1611404507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleSyncNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleSyncNtf.cs new file mode 100644 index 00000000..08a40338 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleSyncNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleSyncNtf + { + public static void Process(PtcG2C_HeroBattleSyncNtf roPtc) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.SetHeroBattleProgressData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleSyncNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleSyncNtf.cs.meta new file mode 100644 index 00000000..b781a59d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleSyncNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07905f83ae7178f458addae59e11d0cb +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs new file mode 100644 index 00000000..67fd528c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleTeamMsgNtf + { + public static void Process(PtcG2C_HeroBattleTeamMsgNtf roPtc) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.SetHeroBattleTeamData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs.meta new file mode 100644 index 00000000..7486b052 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamMsgNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7741ac30193f5c04f9188cfb1ade0980 +timeCreated: 1611403952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamRoleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamRoleNtf.cs new file mode 100644 index 00000000..624c8910 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamRoleNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleTeamRoleNtf + { + public static void Process(PtcG2C_HeroBattleTeamRoleNtf roPtc) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.SetHeroBattleMyTeam(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamRoleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamRoleNtf.cs.meta new file mode 100644 index 00000000..cbc4f6ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTeamRoleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cf9595461cf247408e2729531b13a70 +timeCreated: 1611403350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTipsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTipsNtf.cs new file mode 100644 index 00000000..6bdd9be9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTipsNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroBattleTipsNtf + { + public static void Process(PtcG2C_HeroBattleTipsNtf roPtc) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.GetBattleTips(roPtc.Data.id); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTipsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTipsNtf.cs.meta new file mode 100644 index 00000000..b9e52920 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroBattleTipsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17e1764fd846f3549b695f65f5f4ebb7 +timeCreated: 1611403295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroKillNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroKillNotify.cs new file mode 100644 index 00000000..8ae8138c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroKillNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HeroKillNotify + { + public static void Process(PtcG2C_HeroKillNotify roPtc) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + specificDocument.MobaKillerNotify(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroKillNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroKillNotify.cs.meta new file mode 100644 index 00000000..19499187 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HeroKillNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca85f29ee406e6a4dba9b5a6d46f4cec +timeCreated: 1611404542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HintNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HintNotify.cs new file mode 100644 index 00000000..78affe72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HintNotify.cs @@ -0,0 +1,206 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_HintNotify + { + public static void Process(PtcG2C_HintNotify roPtc) + { + int i = 0; + while (i < roPtc.Data.systemid.Count) + { + XSysDefine xsysDefine = (XSysDefine)roPtc.Data.systemid[i]; + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + bool flag = specificDocument.IsShop(xsysDefine); + if (flag) + { + XGameMallDocument specificDocument2 = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument2.RefreshShopRedPoint(xsysDefine, !roPtc.Data.isremove); + } + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 <= XSysDefine.XSys_Welfare_YyMall) + { + if (xsysDefine2 <= XSysDefine.XSys_CustomBattle_BountyMode) + { + if (xsysDefine2 != XSysDefine.XSys_Qualifying) + { + if (xsysDefine2 != XSysDefine.XSys_GuildDragon) + { + if (xsysDefine2 != XSysDefine.XSys_CustomBattle_BountyMode) + { + goto IL_47F; + } + XCustomBattleDocument specificDocument3 = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + specificDocument3.BountyModeRedPoint = !roPtc.Data.isremove; + } + else + { + XGuildDragonDocument specificDocument4 = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument4.bCanFight = !roPtc.Data.isremove; + } + } + else + { + XQualifyingDocument specificDocument5 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument5.RedPoint = true; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_Reward_Activity) + { + if (xsysDefine2 != XSysDefine.XSys_CustomBattle_CustomMode) + { + if (xsysDefine2 != XSysDefine.XSys_Reward_Activity) + { + goto IL_47F; + } + XDailyActivitiesDocument specificDocument6 = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + specificDocument6.SeverRedPointNotify = (roPtc.Data.isremove ? -1 : 1); + } + else + { + XCustomBattleDocument specificDocument7 = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + specificDocument7.CustomModeRedPoint = !roPtc.Data.isremove; + } + } + else if (xsysDefine2 != XSysDefine.XSys_Flower_Rank_Activity) + { + switch (xsysDefine2) + { + case XSysDefine.XSys_Welfare_GiftBag: + { + XWelfareDocument specificDocument8 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument8.RegisterRedPoint(XSysDefine.XSys_Welfare_GiftBag, true, true); + break; + } + case XSysDefine.XSys_Welfare_StarFund: + { + XWelfareDocument specificDocument9 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument9.RegisterRedPoint(XSysDefine.XSys_Welfare_StarFund, true, true); + break; + } + case XSysDefine.XSys_Welfare_FirstRechange: + { + XWelfareDocument specificDocument10 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument10.RegisterRedPoint(XSysDefine.XSys_Welfare_FirstRechange, true, true); + break; + } + case XSysDefine.XSyS_Welfare_RewardBack: + case XSysDefine.XSys_Welfare_KingdomPrivilege: + goto IL_47F; + case XSysDefine.XSys_Welfare_MoneyTree: + { + XWelfareDocument specificDocument11 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument11.ServerPushMoneyTree = true; + specificDocument11.RegisterRedPoint(XSysDefine.XSys_Welfare_MoneyTree, true, true); + break; + } + case XSysDefine.XSys_Welfare_KingdomPrivilege_Court: + { + XWelfareDocument specificDocument12 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument12.RegisterRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Court, true, true); + break; + } + case XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer: + { + XWelfareDocument specificDocument13 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument13.RegisterRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer, true, true); + break; + } + case XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce: + { + XWelfareDocument specificDocument14 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument14.RegisterRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce, true, true); + break; + } + case XSysDefine.XSys_Welfare_NiceGirl: + { + XWelfareDocument specificDocument15 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument15.RegisterRedPoint(XSysDefine.XSys_Welfare_NiceGirl, true, true); + break; + } + case XSysDefine.XSys_Welfare_YyMall: + { + XWelfareDocument specificDocument16 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument16.RegisterRedPoint(XSysDefine.XSys_Welfare_YyMall, true, true); + break; + } + default: + goto IL_47F; + } + } + else + { + XFlowerRankDocument specificDocument17 = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument17.CanGetActivityAward = !roPtc.Data.isremove; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_GuildHall_SignIn) + { + if (xsysDefine2 != XSysDefine.XSys_Parner_Liveness) + { + if (xsysDefine2 != XSysDefine.XSys_Wedding) + { + if (xsysDefine2 != XSysDefine.XSys_GuildHall_SignIn) + { + goto IL_47F; + } + XGuildSignInDocument specificDocument18 = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + specificDocument18.SignInSelection = 0u; + } + else + { + XWeddingDocument.Doc.IsHadLivenessRedPoint = !roPtc.Data.isremove; + } + } + else + { + XPartnerDocument.Doc.IsHadLivenessRedPoint = !roPtc.Data.isremove; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_QQVIP) + { + if (xsysDefine2 != XSysDefine.XSys_SpriteSystem_Shop) + { + if (xsysDefine2 != XSysDefine.XSys_QQVIP) + { + goto IL_47F; + } + XPlatformAbilityDocument specificDocument19 = XDocuments.GetSpecificDocument(XPlatformAbilityDocument.uuID); + specificDocument19.QQVipRedPoint = !roPtc.Data.isremove; + } + else + { + XSpriteSystemDocument specificDocument20 = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + specificDocument20.QueryBuyEggCD(); + } + } + else if (xsysDefine2 != XSysDefine.XSys_DragonGuildLiveness) + { + if (xsysDefine2 != XSysDefine.XSys_DragonGuildTask) + { + goto IL_47F; + } + XDragonGuildDocument.Doc.IsHadRecordRedPoint = !roPtc.Data.isremove; + } + else + { + XDragonGuildDocument.Doc.IsHadLivenessRedPoint = !roPtc.Data.isremove; + } + IL_49B: + bool flag2 = xsysDefine == XSysDefine.XSys_Mail; + if (flag2) + { + DlgBase.singleton.ShowMailRedpoint(); + } + XSingleton.singleton.RecalculateRedPointState(xsysDefine, true); + i++; + continue; + IL_47F: + XSingleton.singleton.SetSysRedPointState(xsysDefine, !roPtc.Data.isremove); + goto IL_49B; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HintNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HintNotify.cs.meta new file mode 100644 index 00000000..2cac5460 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HintNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4707f85de9b8f6a47841afe97b80173e +timeCreated: 1611403651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAnimationNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAnimationNtf.cs new file mode 100644 index 00000000..ee1cb27b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAnimationNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HorseAnimationNtf + { + public static void Process(PtcG2C_HorseAnimationNtf roPtc) + { + XRaceDocument specificDocument = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + specificDocument.RaceEndLeftTime(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAnimationNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAnimationNtf.cs.meta new file mode 100644 index 00000000..aabe5e81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAnimationNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77506b6be950d2246aeb1a1b4931690e +timeCreated: 1611403953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs new file mode 100644 index 00000000..1f839509 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HorseAwardAllNtf + { + public static void Process(PtcG2C_HorseAwardAllNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs.meta new file mode 100644 index 00000000..f49fcd0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseAwardAllNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59e77ad11db1a6a4ba0785765081e8e5 +timeCreated: 1611403788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseCountDownTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseCountDownTimeNtf.cs new file mode 100644 index 00000000..a9a6e35b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseCountDownTimeNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HorseCountDownTimeNtf + { + public static void Process(PtcG2C_HorseCountDownTimeNtf roPtc) + { + XRaceDocument specificDocument = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + specificDocument.RefreshTime(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseCountDownTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseCountDownTimeNtf.cs.meta new file mode 100644 index 00000000..6e8aec01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseCountDownTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f421aefb0a1b39046a6924effa96b2bb +timeCreated: 1611404851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs new file mode 100644 index 00000000..3a328951 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs @@ -0,0 +1,18 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_HorseFailTipsNtf + { + public static void Process(PtcG2C_HorseFailTipsNtf roPtc) + { + bool flag = DlgBase.singleton._WaitHandler != null; + if (flag) + { + DlgBase.singleton._WaitHandler.SetWaitEnd(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs.meta new file mode 100644 index 00000000..432d2841 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFailTipsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 559f58aaa5117304e9d60845411a6b3a +timeCreated: 1611403738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFinalNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFinalNtf.cs new file mode 100644 index 00000000..bfd8f54a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFinalNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HorseFinalNtf + { + public static void Process(PtcG2C_HorseFinalNtf roPtc) + { + XRaceDocument specificDocument = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + specificDocument.RaceComplete(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFinalNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFinalNtf.cs.meta new file mode 100644 index 00000000..f39b1795 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseFinalNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7fd399a3cea313d4caa906a092b76b82 +timeCreated: 1611404032 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseRankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseRankNtf.cs new file mode 100644 index 00000000..24520d73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseRankNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HorseRankNtf + { + public static void Process(PtcG2C_HorseRankNtf roPtc) + { + XRaceDocument specificDocument = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + specificDocument.RefreshRank(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseRankNtf.cs.meta new file mode 100644 index 00000000..1103cd94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d51cffbcad1664141af3efdfad596b50 +timeCreated: 1611404626 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs new file mode 100644 index 00000000..15e87bf3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_HorseWaitTimeNtf + { + public static void Process(PtcG2C_HorseWaitTimeNtf roPtc) + { + XSkyArenaEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaEntranceDocument.uuID); + specificDocument.SetTime(roPtc.Data.time); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs.meta new file mode 100644 index 00000000..49288236 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_HorseWaitTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87b2fef00a117294a9b23638923cc4f0 +timeCreated: 1611404081 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs new file mode 100644 index 00000000..337ae4e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_IBShopHasBuyNtf + { + public static void Process(PtcG2C_IBShopHasBuyNtf roPtc) + { + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument.UpdateItemBuyCnt(roPtc.Data.goodsid, roPtc.Data.count); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs.meta new file mode 100644 index 00000000..9b7a1a6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopHasBuyNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0e13d4d767391d4e862290e8c6a5600 +timeCreated: 1611404589 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs new file mode 100644 index 00000000..0b7032fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs @@ -0,0 +1,22 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_IBShopIcon + { + public static void Process(PtcG2C_IBShopIcon roPtc) + { + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.isNewWeekly = roPtc.Data.limittag; + specificDocument.hotGoods = roPtc.Data.viptag; + bool bState = specificDocument.isNewWeekly || specificDocument.isNewVIP; + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GameMall, bState); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GameMall, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs.meta new file mode 100644 index 00000000..8d81ae57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IBShopIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b1aba98b6a45e714889649b44af50173 +timeCreated: 1611404356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IdipPunishInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IdipPunishInfoNtf.cs new file mode 100644 index 00000000..a607057a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IdipPunishInfoNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_IdipPunishInfoNtf + { + public static void Process(PtcG2C_IdipPunishInfoNtf roPtc) + { + XIDIPDocument specificDocument = XDocuments.GetSpecificDocument(XIDIPDocument.uuID); + specificDocument.DealWithIDIPTips(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IdipPunishInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IdipPunishInfoNtf.cs.meta new file mode 100644 index 00000000..02265edf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_IdipPunishInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a95c84794dcbffd4e9b180033c8b8130 +timeCreated: 1611404298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_InvFightBefEnterSceneNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_InvFightBefEnterSceneNtf.cs new file mode 100644 index 00000000..a69a0be7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_InvFightBefEnterSceneNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_InvFightBefEnterSceneNtf + { + public static void Process(PtcG2C_InvFightBefEnterSceneNtf roPtc) + { + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + specificDocument.EnterFightScene(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_InvFightBefEnterSceneNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_InvFightBefEnterSceneNtf.cs.meta new file mode 100644 index 00000000..fa7b3701 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_InvFightBefEnterSceneNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c73828d410a64b4ead96ad513af0352 +timeCreated: 1611403502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemChangedNtf.cs new file mode 100644 index 00000000..7f7dc15c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemChangedNtf.cs @@ -0,0 +1,36 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ItemChangedNtf + { + public static void Process(PtcG2C_ItemChangedNtf roPtc) + { + XSingleton.singleton.Doc.XBagDoc.AddNewItem(roPtc.Data.NewItems, !roPtc.Data.IsRearrange); + XSingleton.singleton.Doc.XBagDoc.AddNewItem(roPtc.Data.recyleadditems, false); + XSingleton.singleton.Doc.XBagDoc.RemoveItem(roPtc.Data.RemoveItems); + for (int i = 0; i < roPtc.Data.ChangeItems.Count; i += 2) + { + XSingleton.singleton.Doc.XBagDoc.ChangeItemCount(roPtc.Data.ChangeItems[i], (int)roPtc.Data.ChangeItems[i + 1], !roPtc.Data.IsRearrange); + } + for (int i = 0; i < roPtc.Data.recylechangeitems.Count; i += 2) + { + XSingleton.singleton.Doc.XBagDoc.ChangeItemCount(roPtc.Data.recylechangeitems[i], (int)roPtc.Data.recylechangeitems[i + 1], false); + } + for (int i = 0; i < roPtc.Data.SwapItems.Count; i += 2) + { + XSingleton.singleton.Doc.XBagDoc.SwapItem(roPtc.Data.SwapItems[i], roPtc.Data.SwapItems[i + 1]); + } + for (int i = 0; i < roPtc.Data.AttrChangeItems.Count; i++) + { + XSingleton.singleton.Doc.XBagDoc.UpdateItem(roPtc.Data.AttrChangeItems[i]); + } + for (int i = 0; i < roPtc.Data.VirtualItemID.Count; i++) + { + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(roPtc.Data.VirtualItemID[i], (ulong)roPtc.Data.VirtualItemCount[i]); + } + XSingleton.singleton.Doc.XBagDoc.FinishItemChange(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemChangedNtf.cs.meta new file mode 100644 index 00000000..1be3782b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f1c99b8549e90a4188c40c6d8796bd0 +timeCreated: 1611403700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemCircleDrawResult.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemCircleDrawResult.cs new file mode 100644 index 00000000..fa8af202 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemCircleDrawResult.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ItemCircleDrawResult + { + public static void Process(PtcG2C_ItemCircleDrawResult roPtc) + { + XCharacterItemDocument specificDocument = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + specificDocument.ShowLotteryResult((int)roPtc.Data.index); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemCircleDrawResult.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemCircleDrawResult.cs.meta new file mode 100644 index 00000000..b856041e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemCircleDrawResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a7eb4f557776ff45b0af0690cb925be +timeCreated: 1611404200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs new file mode 100644 index 00000000..6936453c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ItemFindBackNtf + { + public static void Process(PtcG2C_ItemFindBackNtf roPtc) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnPtcFindItemBack(); + specificDocument.OnPtcFirstNotify(roPtc.Data.isDayFirstNofity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs.meta new file mode 100644 index 00000000..74a738e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ItemFindBackNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa41b4321af781f41bface9f824aa035 +timeCreated: 1611404302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs new file mode 100644 index 00000000..f9257623 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_JadeSlotInfoNtf + { + public static void Process(PtcG2C_JadeSlotInfoNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs.meta new file mode 100644 index 00000000..b6128faa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JadeSlotInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fd40f16c6dffcc47b8c3bf30209e507 +timeCreated: 1611403214 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JoinRoomReply.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JoinRoomReply.cs new file mode 100644 index 00000000..005e4719 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JoinRoomReply.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_JoinRoomReply + { + public static void Process(PtcG2C_JoinRoomReply roPtc) + { + XApolloDocument specificDocument = XDocuments.GetSpecificDocument(XApolloDocument.uuID); + specificDocument.JoinRoom(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JoinRoomReply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JoinRoomReply.cs.meta new file mode 100644 index 00000000..0b15966d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_JoinRoomReply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7533b7fc60efa34d96e071205b030c8 +timeCreated: 1611404887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KickAccountJkydNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KickAccountJkydNtf.cs new file mode 100644 index 00000000..5c621650 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KickAccountJkydNtf.cs @@ -0,0 +1,16 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_KickAccountJkydNtf + { + public static void Process(PtcG2C_KickAccountJkydNtf roPtc) + { + XSingleton.singleton.ShowModalDialog(roPtc.Data.msg, XStringDefineProxy.GetString("COMMON_OK"), new ButtonClickEventHandler(XSingleton.singleton.OnLoginForbidClick), 50); + XSingleton.singleton.Close(NetErrCode.Net_NoError); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KickAccountJkydNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KickAccountJkydNtf.cs.meta new file mode 100644 index 00000000..0b2ca311 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KickAccountJkydNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3edd571e8d17574bb0f427b6fb232bc +timeCreated: 1611404281 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KillEnemyScoreNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KillEnemyScoreNtf.cs new file mode 100644 index 00000000..eae611d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KillEnemyScoreNtf.cs @@ -0,0 +1,18 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_KillEnemyScoreNtf + { + public static void Process(PtcG2C_KillEnemyScoreNtf roPtc) + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.UpdateKill(roPtc.Data.score); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KillEnemyScoreNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KillEnemyScoreNtf.cs.meta new file mode 100644 index 00000000..8d8d0386 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_KillEnemyScoreNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 950586cacac005a49bea32f7caa8335c +timeCreated: 1611404157 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleBaseDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleBaseDataNtf.cs new file mode 100644 index 00000000..bc143fdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleBaseDataNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LeagueBattleBaseDataNtf + { + public static void Process(PtcG2C_LeagueBattleBaseDataNtf roPtc) + { + XTeamLeagueBattleDocument specificDocument = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + specificDocument.UpdateBattleBaseData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleBaseDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleBaseDataNtf.cs.meta new file mode 100644 index 00000000..38a7b65f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleBaseDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af4050653ac556d43a2d79255129f25e +timeCreated: 1611404343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleLoadInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleLoadInfoNtf.cs new file mode 100644 index 00000000..b8b6b6c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleLoadInfoNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LeagueBattleLoadInfoNtf + { + public static void Process(PtcG2C_LeagueBattleLoadInfoNtf roPtc) + { + XTeamLeagueBattleDocument specificDocument = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + specificDocument.SetBattlePKInfo(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleLoadInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleLoadInfoNtf.cs.meta new file mode 100644 index 00000000..7a55c400 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleLoadInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5d9f508409797f4ba0193108486e030 +timeCreated: 1611404507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleOneResultNft.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleOneResultNft.cs new file mode 100644 index 00000000..7b5af40c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleOneResultNft.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LeagueBattleOneResultNft + { + public static void Process(PtcG2C_LeagueBattleOneResultNft roPtc) + { + XTeamLeagueBattleDocument specificDocument = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + specificDocument.OnSmallReward(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleOneResultNft.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleOneResultNft.cs.meta new file mode 100644 index 00000000..74776f79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleOneResultNft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 499f3069d7cc58d44a99187a28d38522 +timeCreated: 1611403662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleResultNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleResultNtf.cs new file mode 100644 index 00000000..98461dda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleResultNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LeagueBattleResultNtf + { + public static void Process(PtcG2C_LeagueBattleResultNtf roPtc) + { + XTeamLeagueBattleDocument specificDocument = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + specificDocument.OnBigReward(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleResultNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleResultNtf.cs.meta new file mode 100644 index 00000000..102ca72f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleResultNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b44e19995f5d154da8d80ce127b140d +timeCreated: 1611403797 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleStateNtf.cs new file mode 100644 index 00000000..5865ce6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleStateNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LeagueBattleStateNtf + { + public static void Process(PtcG2C_LeagueBattleStateNtf roPtc) + { + XTeamLeagueBattleDocument specificDocument = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + specificDocument.OnLeagueBattleStateNtf(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleStateNtf.cs.meta new file mode 100644 index 00000000..4b995b7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeagueBattleStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9bd9f166a7e125f479714f5e1843dc6d +timeCreated: 1611404207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs new file mode 100644 index 00000000..f8992708 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LeaveSceneNtf + { + public static void Process(PtcG2C_LeaveSceneNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs.meta new file mode 100644 index 00000000..3e20d60c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveSceneNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1079bfb2d31fc5446b6d6c593177ddb7 +timeCreated: 1611403218 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveTeam.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveTeam.cs new file mode 100644 index 00000000..91fbf051 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveTeam.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_PtcG2C_LeaveTeam + { + public static void Process(PtcG2C_LeaveTeam roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnLeaveTeam((LeaveTeamType)roPtc.Data.errorno); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveTeam.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveTeam.cs.meta new file mode 100644 index 00000000..4c5c6282 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LeaveTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0cdf5cb8503235043bd6d5a471b96737 +timeCreated: 1611403175 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelChangeNtf.cs new file mode 100644 index 00000000..5b1325a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelChangeNtf.cs @@ -0,0 +1,38 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_LevelChangeNtf + { + public static void Process(PtcG2C_LevelChangeNtf roPtc) + { + XRole player = XSingleton.singleton.Player; + bool flag = player == null; + if (!flag) + { + uint level = player.Attributes.Level; + XLevelUpStatusDocument specificDocument = XDocuments.GetSpecificDocument(XLevelUpStatusDocument.uuID); + specificDocument.CurLevel = roPtc.Data.level; + specificDocument.PreLevel = level; + specificDocument.Exp = roPtc.Data.exp; + specificDocument.MaxExp = roPtc.Data.maxexp; + bool flag2 = specificDocument.CurLevel > level; + if (flag2) + { + specificDocument.AttrID.Clear(); + specificDocument.AttrNewValue.Clear(); + specificDocument.AttrOldValue.Clear(); + for (int i = 0; i < roPtc.Data.attrid.Count; i++) + { + specificDocument.AttrID.Add(roPtc.Data.attrid[i]); + specificDocument.AttrOldValue.Add(roPtc.Data.attroldvalue[i]); + specificDocument.AttrNewValue.Add(roPtc.Data.attrnewvalue[i]); + } + } + XSingleton.singleton.AddLog("player levelup to ", roPtc.Data.level.ToString(), null, null, null, null, XDebugColor.XDebug_None); + specificDocument.CheckLevelUp(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelChangeNtf.cs.meta new file mode 100644 index 00000000..c2170ab9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53086dab7f27a3c4a816d03c9b9df387 +timeCreated: 1611403709 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelScriptStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelScriptStateNtf.cs new file mode 100644 index 00000000..07dc3c0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelScriptStateNtf.cs @@ -0,0 +1,16 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_LevelScriptStateNtf + { + public static void Process(PtcG2C_LevelScriptStateNtf roPtc) + { + for (int i = 0; i < roPtc.Data.doorStates.Count; i++) + { + XSingleton.singleton.SyncWallState(roPtc.Data.doorStates[i].name, roPtc.Data.doorStates[i].isOn); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelScriptStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelScriptStateNtf.cs.meta new file mode 100644 index 00000000..137bab4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelScriptStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f34310c8a55b9c647b1ddd42e20c095f +timeCreated: 1611404847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelSealNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelSealNtf.cs new file mode 100644 index 00000000..20aa32ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelSealNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LevelSealNtf + { + public static void Process(PtcG2C_LevelSealNtf roPtc) + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + specificDocument.UseLevelSealInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelSealNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelSealNtf.cs.meta new file mode 100644 index 00000000..81dd8298 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LevelSealNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6956fdcb276c9684da3d54c6f78b4101 +timeCreated: 1611403885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginActivityStatusNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginActivityStatusNtf.cs new file mode 100644 index 00000000..541d2fff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginActivityStatusNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LoginActivityStatusNtf + { + public static void Process(PtcG2C_LoginActivityStatusNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginActivityStatusNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginActivityStatusNtf.cs.meta new file mode 100644 index 00000000..dd89bf59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginActivityStatusNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6fd067596f382c428445671e90d2a09 +timeCreated: 1611404633 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs new file mode 100644 index 00000000..4019b391 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_LoginReward2CNtf + { + public static void Process(PtcG2C_LoginReward2CNtf roPtc) + { + XSevenLoginDocument specificDocument = XDocuments.GetSpecificDocument(XSevenLoginDocument.uuID); + specificDocument.OnSevenLoginReward(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs.meta new file mode 100644 index 00000000..d7c143db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_LoginReward2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e02bdcc5b5114e48853bfb8d638395a +timeCreated: 1611403199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs new file mode 100644 index 00000000..5e854b3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_MilitaryrankNtf + { + public static void Process(PtcG2C_MilitaryrankNtf roPtc) + { + XMilitaryRankDocument specificDocument = XDocuments.GetSpecificDocument(XMilitaryRankDocument.uuID); + specificDocument.SetMyMilitaryRecord(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs.meta new file mode 100644 index 00000000..50f86603 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MilitaryrankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0682a2a81d8a4e4daaaba2a8844bea0 +timeCreated: 1611404350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs new file mode 100644 index 00000000..1a10b37c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs @@ -0,0 +1,18 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_MobaAddExpNtf + { + public static void Process(PtcG2C_MobaAddExpNtf roPtc) + { + bool flag = DlgBase.singleton.m_MobaBattleHandler != null; + if (flag) + { + DlgBase.singleton.m_MobaBattleHandler.SetGetExpAnimation((uint)roPtc.Data.addexp, roPtc.Data.posxz); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs.meta new file mode 100644 index 00000000..e1d38390 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaAddExpNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74c14dd846ac66e47b93dd9272672dc0 +timeCreated: 1611403944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs new file mode 100644 index 00000000..9285fefb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_MobaBattleTeamMsgNtf + { + public static void Process(PtcG2C_MobaBattleTeamMsgNtf roPtc) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + specificDocument.SetBattleMsg(roPtc.Data.teamdata); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs.meta new file mode 100644 index 00000000..e0e8093b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamMsgNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56dbbea5bef83144eb683c4b11d66c69 +timeCreated: 1611403745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamRoleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamRoleNtf.cs new file mode 100644 index 00000000..1eb2cfcc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamRoleNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_MobaBattleTeamRoleNtf + { + public static void Process(PtcG2C_MobaBattleTeamRoleNtf roPtc) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + specificDocument.SetAllData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamRoleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamRoleNtf.cs.meta new file mode 100644 index 00000000..a850761f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaBattleTeamRoleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7da0fdadf85c47648bbcf28893ca7ba8 +timeCreated: 1611404001 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaHintNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaHintNtf.cs new file mode 100644 index 00000000..7b6152ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaHintNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_MobaHintNtf + { + public static void Process(PtcG2C_MobaHintNtf roPtc) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + specificDocument.MobaHintNotify(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaHintNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaHintNtf.cs.meta new file mode 100644 index 00000000..08fb150e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaHintNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6fc9ff33db2f6f4d8e4022e4d694be4 +timeCreated: 1611404885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs new file mode 100644 index 00000000..4f156804 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_MobaMiniMapNtf + { + public static void Process(PtcG2C_MobaMiniMapNtf roPtc) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + specificDocument.SetMiniMapIcon(roPtc.Data.canSeePosIndex); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs.meta new file mode 100644 index 00000000..5e06f8d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaMiniMapNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bace05ccba6a5a84487fccca95e938b7 +timeCreated: 1611404438 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaRoleChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaRoleChangeNtf.cs new file mode 100644 index 00000000..541ae8b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaRoleChangeNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_MobaRoleChangeNtf + { + public static void Process(PtcG2C_MobaRoleChangeNtf roPtc) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + specificDocument.OnDataChange(roPtc.Data.changeRole); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaRoleChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaRoleChangeNtf.cs.meta new file mode 100644 index 00000000..215a2370 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaRoleChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9773cb05ffd43bf4b9373057da0f9908 +timeCreated: 1611404188 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaSignalBroadcast.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaSignalBroadcast.cs new file mode 100644 index 00000000..7b779bb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaSignalBroadcast.cs @@ -0,0 +1,16 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class Process_PtcG2C_MobaSignalBroadcast + { + public static void Process(PtcG2C_MobaSignalBroadcast roPtc) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + Vector3 pos; + pos = new Vector3((roPtc.Data.posxz >> 16) / 100f, 0f, (roPtc.Data.posxz & 65535u) / 100f); + specificDocument.OnSignalGet(roPtc.Data.uid, roPtc.Data.type, pos); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaSignalBroadcast.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaSignalBroadcast.cs.meta new file mode 100644 index 00000000..26e0bdf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MobaSignalBroadcast.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06beaf053dac0864685980caa769ce37 +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MulActivityStateChange.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MulActivityStateChange.cs new file mode 100644 index 00000000..4653a67a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MulActivityStateChange.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_MulActivityStateChange + { + public static void Process(PtcG2C_MulActivityStateChange roPtc) + { + XActivityDocument.Doc.ChangeActivityState(roPtc.Data.changeInfo); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MulActivityStateChange.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MulActivityStateChange.cs.meta new file mode 100644 index 00000000..589164f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_MulActivityStateChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0c49efd7bd83cf49bbf6591d168db15 +timeCreated: 1611404353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs new file mode 100644 index 00000000..be3a96c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NewGuildBonusNtf + { + public static void Process(PtcG2C_NewGuildBonusNtf roPtc) + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.bHasAvailableRedPacket = true; + specificDocument.SendGuildBonuesLeft(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs.meta new file mode 100644 index 00000000..0cc86fbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NewGuildBonusNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec1af1760583417418677bc21323748a +timeCreated: 1611404786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs new file mode 100644 index 00000000..08f22112 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NextDayRewardNtf + { + public static void Process(PtcG2C_NextDayRewardNtf roPtc) + { + XNextDayRewardDocument specificDocument = XDocuments.GetSpecificDocument(XNextDayRewardDocument.uuID); + specificDocument.RefreshStatus(roPtc.Data.state, roPtc.Data.timeleft); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs.meta new file mode 100644 index 00000000..45443960 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NextDayRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 946c1e4c78c6162489e7ed26f8f8f524 +timeCreated: 1611404154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeDoingGuildInherit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeDoingGuildInherit.cs new file mode 100644 index 00000000..1a4d3033 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeDoingGuildInherit.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NoticeDoingGuildInherit + { + public static void Process(PtcG2C_NoticeDoingGuildInherit roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeDoingGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeDoingGuildInherit.cs.meta new file mode 100644 index 00000000..7fa80a81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeDoingGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65e4714432b7af44ba538f94b8b8cf46 +timeCreated: 1611403852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildArenaBegin.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildArenaBegin.cs new file mode 100644 index 00000000..6424072e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildArenaBegin.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NoticeGuildArenaBegin + { + public static void Process(PtcG2C_NoticeGuildArenaBegin roPtc) + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.bHasAvailableArenaIcon = roPtc.Data.isstart; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildArenaBegin.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildArenaBegin.cs.meta new file mode 100644 index 00000000..925422a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildArenaBegin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59e0f573feae37c4ba44bb087fe5d606 +timeCreated: 1611403788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildBossEnd.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildBossEnd.cs new file mode 100644 index 00000000..f65bb62b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildBossEnd.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NoticeGuildBossEnd + { + public static void Process(PtcG2C_NoticeGuildBossEnd roPtc) + { + XGuildDragonDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument.DragonChallengeResult(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildBossEnd.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildBossEnd.cs.meta new file mode 100644 index 00000000..322ccacb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeGuildBossEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a495fcd0c39b7049940d152ff916843 +timeCreated: 1611403494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeHungryDown.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeHungryDown.cs new file mode 100644 index 00000000..16c191d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeHungryDown.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NoticeHungryDown + { + public static void Process(PtcG2C_NoticeHungryDown roPtc) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + specificDocument.OnFightPetHungry(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeHungryDown.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeHungryDown.cs.meta new file mode 100644 index 00000000..bee60be4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NoticeHungryDown.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40b0e36b2b71d62409a5167ec5a8f0e7 +timeCreated: 1611403614 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyAccountData.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyAccountData.cs new file mode 100644 index 00000000..555e3984 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyAccountData.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyAccountData + { + public static void Process(PtcG2C_NotifyAccountData roPtc) + { + XSingleton.singleton.AddLog("Receive PtcG2C_NotifyAccountData", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.ProcessAccountData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyAccountData.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyAccountData.cs.meta new file mode 100644 index 00000000..8a333a11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyAccountData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3f65445479a9284c9e444bde5d14d95 +timeCreated: 1611404281 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyClientEnterFight.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyClientEnterFight.cs new file mode 100644 index 00000000..7e796aaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyClientEnterFight.cs @@ -0,0 +1,29 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyClientEnterFight + { + public static void Process(PtcG2C_NotifyClientEnterFight roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.enemyid); + bool flag = entity != null; + if (flag) + { + entity.IsServerFighting = roPtc.Data.enterfight; + bool flag2 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.AI != null; + if (flag2) + { + XAIEventArgs @event = XEventPool.GetEvent(); + @event.DepracatedPass = true; + @event.Firer = XSingleton.singleton.Player; + @event.EventType = 1; + @event.EventArg = "SpawnMonster"; + uint item = XSingleton.singleton.FireEvent(@event, 0.05f); + XSingleton.singleton.Player.AI.TimerToken.Add(item); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyClientEnterFight.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyClientEnterFight.cs.meta new file mode 100644 index 00000000..34d6a1f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyClientEnterFight.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ae6ce88befbb4c40bef10387dd55e07 +timeCreated: 1611403992 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyEnhanceSuit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyEnhanceSuit.cs new file mode 100644 index 00000000..1799eb2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyEnhanceSuit.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyEnhanceSuit + { + public static void Process(PtcG2C_NotifyEnhanceSuit roPtc) + { + XEnhanceDocument.Doc.GetTotalEnhanceLevelBack(roPtc.Data.enhanceSuit); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyEnhanceSuit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyEnhanceSuit.cs.meta new file mode 100644 index 00000000..a50c907c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyEnhanceSuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 387a8ea9f1c76884699bcfa3d6743476 +timeCreated: 1611403590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyGuildBossAddAttr.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyGuildBossAddAttr.cs new file mode 100644 index 00000000..d8112de0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyGuildBossAddAttr.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyGuildBossAddAttr + { + public static void Process(PtcG2C_NotifyGuildBossAddAttr roPtc) + { + XGuildDragonDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument.OnNotifyEncourage(roPtc.Data.count); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyGuildBossAddAttr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyGuildBossAddAttr.cs.meta new file mode 100644 index 00000000..ea89f67f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyGuildBossAddAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15de281d557e09148ac9ccbd042d0c61 +timeCreated: 1611403266 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyIdipMessageGs.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyIdipMessageGs.cs new file mode 100644 index 00000000..065b51a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyIdipMessageGs.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyIdipMessageGs + { + public static void Process(PtcG2C_NotifyIdipMessageGs roPtc) + { + XIDIPDocument specificDocument = XDocuments.GetSpecificDocument(XIDIPDocument.uuID); + specificDocument.DealWithIDIPMessage(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyIdipMessageGs.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyIdipMessageGs.cs.meta new file mode 100644 index 00000000..7d1a4f37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyIdipMessageGs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5f1ffc55fb961f42b55b4e2947abc8e +timeCreated: 1611404629 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs new file mode 100644 index 00000000..0988bd99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs @@ -0,0 +1,31 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyRoleEmpty2Watcher + { + public static void Process(PtcG2C_NotifyRoleEmpty2Watcher roPtc) + { + bool flag = XSingleton.singleton.bSpectator && !DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (!flag2) + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (!flag3) + { + bool flag4 = DlgBase.singleton.BigRewardHandler != null && DlgBase.singleton.BigRewardHandler.IsVisible(); + if (!flag4) + { + DlgBase.singleton.ShowBackToMainCityTips(); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs.meta new file mode 100644 index 00000000..075ec659 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyRoleEmpty2Watcher.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8941c2630459d1438d88b95170a19e9 +timeCreated: 1611404639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyStartUpTypeToClient.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyStartUpTypeToClient.cs new file mode 100644 index 00000000..5e08fb54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyStartUpTypeToClient.cs @@ -0,0 +1,13 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyStartUpTypeToClient + { + public static void Process(PtcG2C_NotifyStartUpTypeToClient roPtc) + { + XSingleton.singleton.SetLaunchTypeServerInfo(roPtc.Data.type); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyStartUpTypeToClient.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyStartUpTypeToClient.cs.meta new file mode 100644 index 00000000..29f8502e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyStartUpTypeToClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f7195d1ff02890449d082aec4bd244a +timeCreated: 1611403516 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchData.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchData.cs new file mode 100644 index 00000000..e53955be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchData.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyWatchData + { + public static void Process(PtcG2C_NotifyWatchData roPtc) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + specificDocument.DealWithTeamMessage(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchData.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchData.cs.meta new file mode 100644 index 00000000..6c70828e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec449ebbd8c061a4b9f7efa732cd35c5 +timeCreated: 1611404787 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchIconNum2Client.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchIconNum2Client.cs new file mode 100644 index 00000000..561ea904 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchIconNum2Client.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NotifyWatchIconNum2Client + { + public static void Process(PtcG2C_NotifyWatchIconNum2Client roPtc) + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.SetLiveCount(roPtc.Data.num); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchIconNum2Client.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchIconNum2Client.cs.meta new file mode 100644 index 00000000..b8eeada5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NotifyWatchIconNum2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4bd8dd71d9a11c4f89177684d031c4a +timeCreated: 1611404739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NpcFlNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NpcFlNtf.cs new file mode 100644 index 00000000..2fffc47b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NpcFlNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_NpcFlNtf + { + public static void Process(PtcG2C_NpcFlNtf roPtc) + { + XNPCFavorDocument specificDocument = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + specificDocument.OnNpcFeelingChange(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NpcFlNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NpcFlNtf.cs.meta new file mode 100644 index 00000000..c9819ca6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_NpcFlNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a341e56ae6519b9439b98a2829b77e2e +timeCreated: 1611404260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnTransferWall.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnTransferWall.cs new file mode 100644 index 00000000..c39c4d36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnTransferWall.cs @@ -0,0 +1,15 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_OnTransferWall + { + public static void Process(PtcG2C_OnTransferWall roPtc) + { + XOnEntityTransferEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnTransferWall.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnTransferWall.cs.meta new file mode 100644 index 00000000..0af2650e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnTransferWall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5723b382e4ad1df439c561613b6edf22 +timeCreated: 1611403748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs new file mode 100644 index 00000000..0f846415 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_OnlineRewardNtf + { + public static void Process(PtcG2C_OnlineRewardNtf roPtc) + { + XOnlineRewardDocument specificDocument = XDocuments.GetSpecificDocument(XOnlineRewardDocument.uuID); + specificDocument.RefreshStatus(roPtc.Data.state, roPtc.Data.timeleft); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs.meta new file mode 100644 index 00000000..a2afe685 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OnlineRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c0ccb4dc3b129a439dd946631d941e4 +timeCreated: 1611403689 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs new file mode 100644 index 00000000..879ea557 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs @@ -0,0 +1,43 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_OpenSystemNtf + { + public static void Process(PtcG2C_OpenSystemNtf roPtc) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("XPlayerData == null", null, null, null, null, null); + } + else + { + int i = 0; + int count = roPtc.Data.sysIDs.Count; + while (i < count) + { + xplayerData.CacheOpenSystem(roPtc.Data.sysIDs[i]); + i++; + } + i = 0; + count = roPtc.Data.closeSysIDs.Count; + while (i < count) + { + xplayerData.CloseSystem(roPtc.Data.closeSysIDs[i]); + i++; + } + XOperatingActivityDocument.Doc.OnSystemChanged(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + XActivityDocument.Doc.OnSystemChanged(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + WeekEndNestDocument.Doc.OnSystemChanged(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + XThemeActivityDocument specificDocument = XDocuments.GetSpecificDocument(XThemeActivityDocument.uuID); + specificDocument.OnSystemChanged(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + XFPStrengthenDocument specificDocument2 = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + specificDocument2.SetNew(roPtc.Data.sysIDs); + XWelfareDocument.Doc.SetBackFlowOpenSystem(roPtc.Data.sysIDs, roPtc.Data.closeSysIDs); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs.meta new file mode 100644 index 00000000..2bec3626 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OpenSystemNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6819063c8dcd8e4cbd956aecca680fa +timeCreated: 1611404631 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs new file mode 100644 index 00000000..813407f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs @@ -0,0 +1,18 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_OutLookChangeNtf + { + public static void Process(PtcG2C_OutLookChangeNtf roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.roleid); + bool flag = entity == null; + if (!flag) + { + XOutlookHelper.SetOutLookReplace(entity.Attributes, entity, roPtc.Data.outlook); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs.meta new file mode 100644 index 00000000..979913a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_OutLookChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 019ae07cd4c714a4e88571569ba740c1 +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs new file mode 100644 index 00000000..cb8933a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PayAllInfoNtf + { + public static void Process(PtcG2C_PayAllInfoNtf roPtc) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.PayAllInfoNtf(roPtc.Data); + XWelfareDocument specificDocument2 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument2.PayAllInfoNtf(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs.meta new file mode 100644 index 00000000..de1027e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayAllInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f82994a3dab6e7a4187b4c6cdb5ee577 +timeCreated: 1611404891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayGiftNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayGiftNtf.cs new file mode 100644 index 00000000..4745bedf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayGiftNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PayGiftNtf + { + public static void Process(PtcG2C_PayGiftNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayGiftNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayGiftNtf.cs.meta new file mode 100644 index 00000000..85b4add2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayGiftNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08e5587b9d7b1d54fbd8c8fc0a2f0811 +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayMemberPrivilegeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayMemberPrivilegeNtf.cs new file mode 100644 index 00000000..ab307f5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayMemberPrivilegeNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PayMemberPrivilegeNtf + { + public static void Process(PtcG2C_PayMemberPrivilegeNtf roPtc) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetPayMemberPrivilege(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayMemberPrivilegeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayMemberPrivilegeNtf.cs.meta new file mode 100644 index 00000000..f2e86b35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayMemberPrivilegeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 454b6d1b869766b4586ef149642c1ceb +timeCreated: 1611403647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayScoreNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayScoreNtf.cs new file mode 100644 index 00000000..54c8317a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayScoreNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PayScoreNtf + { + public static void Process(PtcG2C_PayScoreNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayScoreNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayScoreNtf.cs.meta new file mode 100644 index 00000000..11b464d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PayScoreNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89baba298ff5bfb4ca6c6c27f81280b0 +timeCreated: 1611404089 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs new file mode 100644 index 00000000..614262d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PetChangeNotfiy + { + public static void Process(PtcG2C_PetChangeNotfiy roPtc) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + specificDocument.OnPetChange(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs.meta new file mode 100644 index 00000000..bc67876f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetChangeNotfiy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 268691d4848166649b6ecced543e10a7 +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetInviteNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetInviteNtf.cs new file mode 100644 index 00000000..61b1c1d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetInviteNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PetInviteNtf + { + public static void Process(PtcG2C_PetInviteNtf roPtc) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + specificDocument.OnPetInviteNtfPtc(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetInviteNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetInviteNtf.cs.meta new file mode 100644 index 00000000..55cc1611 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PetInviteNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd136116b2b2fd14c96046e49c559122 +timeCreated: 1611404681 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs new file mode 100644 index 00000000..0a8eacd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs @@ -0,0 +1,118 @@ +using System; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_PkPrepareNtf + { + public static void Process(PtcG2C_PkPrepareNtf roPtc) + { + bool flag = roPtc.Data.beginorend == 0u; + if (flag) + { + XSingleton.singleton.AddLog("PK Prepare Begin at ", Time.frameCount.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.ShowCountDownFrame(true); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.ShowCountDownFrame(true); + DlgBase.singleton.HideLeftTime(); + DlgBase.singleton.uiBehaviour.m_PromptFrame.gameObject.SetActive(false); + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SKYCITY_FIGHTING; + if (flag4) + { + XSkyArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + specificDocument.HideVSInfo(); + specificDocument.HideTime(); + XSingleton.singleton.SetMiniMapOpponentStatus(false); + } + bool flag5 = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVP; + if (flag5) + { + XGuildMineBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildMineBattleDocument.uuID); + specificDocument2.HideVSInfo(); + } + bool flag6 = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_FIGHT; + if (flag6) + { + XBigMeleeBattleDocument specificDocument3 = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + specificDocument3.HideInfo(); + } + } + else + { + bool flag7 = 1u == roPtc.Data.beginorend; + if (flag7) + { + XSingleton.singleton.AddLog("PK Prepare End at ", Time.frameCount.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag8 = DlgBase.singleton.IsLoaded(); + if (flag8) + { + DlgBase.singleton.ShowCountDownFrame(false); + } + bool flag9 = DlgBase.singleton.IsLoaded(); + if (flag9) + { + DlgBase.singleton.ShowCountDownFrame(false); + } + bool flag10 = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag10) + { + bool flag11 = DlgBase.singleton.IsLoaded(); + if (flag11) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("PVPGameTime")); + } + bool flag12 = DlgBase.singleton.IsLoaded(); + if (flag12) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("PVPGameTime"), -1); + } + } + bool flag13 = XSingleton.singleton.SceneType == SceneType.SCENE_PK; + if (flag13) + { + bool flag14 = DlgBase.singleton.IsLoaded(); + if (flag14) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("PkUpdateTime")); + } + bool flag15 = DlgBase.singleton.IsLoaded(); + if (flag15) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("PkUpdateTime"), -1); + } + } + bool flag16 = XSingleton.singleton.SceneType == SceneType.SCENE_INVFIGHT; + if (flag16) + { + bool flag17 = DlgBase.singleton.IsLoaded(); + if (flag17) + { + DlgBase.singleton.SetLeftTime((uint)XSingleton.singleton.GetInt("InvFightFightTime"), -1); + } + } + bool flag18 = XSingleton.singleton.SceneType == SceneType.SCENE_HORSE_RACE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING; + if (flag18) + { + XRaceDocument specificDocument4 = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + bool flag19 = specificDocument4.RaceHandler != null; + if (flag19) + { + specificDocument4.RaceHandler.RefreshTime(0f); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs.meta new file mode 100644 index 00000000..7c4bc384 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkPrepareNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c79d8cf21ab61ea4caa7e8f7abb3005a +timeCreated: 1611404531 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs new file mode 100644 index 00000000..567aeb2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PkRoleInfoNtf + { + public static void Process(PtcG2C_PkRoleInfoNtf roPtc) + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + bool flag = roPtc.Data.pkroleinfo.Count > 0; + if (flag) + { + specificDocument.SetPkRoleInfo(roPtc.Data.pkroleinfo); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs.meta new file mode 100644 index 00000000..a94d4906 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkRoleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c95b86391c467cd4da5448482419c8e5 +timeCreated: 1611404538 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs new file mode 100644 index 00000000..2c4a9248 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PkTimeoutNtf + { + public static void Process(PtcG2C_PkTimeoutNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs.meta new file mode 100644 index 00000000..5309379c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PkTimeoutNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aaa930dbf67d9704a9da163bc746b577 +timeCreated: 1611404304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlatformShareAwardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlatformShareAwardNtf.cs new file mode 100644 index 00000000..dcc65f94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlatformShareAwardNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PlatformShareAwardNtf + { + public static void Process(PtcG2C_PlatformShareAwardNtf roPtc) + { + XAchievementDocument specificDocument = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + specificDocument.UpdateShareRewardsInfo(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlatformShareAwardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlatformShareAwardNtf.cs.meta new file mode 100644 index 00000000..a53bbe2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlatformShareAwardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56cb9e1f56470494ab60f60de8ae24d9 +timeCreated: 1611403745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlayDiceNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlayDiceNtf.cs new file mode 100644 index 00000000..81fba093 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlayDiceNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PlayDiceNtf + { + public static void Process(PtcG2C_PlayDiceNtf roPtc) + { + XSuperRiskDocument.Doc.PlayDiceNtfBack(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlayDiceNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlayDiceNtf.cs.meta new file mode 100644 index 00000000..4503f53e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PlayDiceNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e47ac31e80da82c4eb47da7bbb7083b0 +timeCreated: 1611404738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PositionDebug.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PositionDebug.cs new file mode 100644 index 00000000..b738675b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PositionDebug.cs @@ -0,0 +1,23 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_PositionDebug + { + public static void Process(PtcG2C_PositionDebug roPtc) + { + for (int i = 0; i < roPtc.Data.positions.Count; i++) + { + PositionCheck positionCheck = roPtc.Data.positions[i]; + Vector3 pos; + pos = new Vector3(positionCheck.position.x, positionCheck.position.y, positionCheck.position.z); + Quaternion face = XSingleton.singleton.FloatToQuaternion(positionCheck.face); + ulong uid = positionCheck.uid; + XSyncDebug.DrawDebug(positionCheck.uid, pos, face); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PositionDebug.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PositionDebug.cs.meta new file mode 100644 index 00000000..a0b522c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PositionDebug.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5164e421b1f0dc349b177878ab6a24e9 +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs new file mode 100644 index 00000000..a18f817f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs @@ -0,0 +1,53 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_PushPraiseNtf + { + public static void Process(PtcG2C_PushPraiseNtf roPtc) + { + XSingleton.singleton.AddLog("Process_PtcG2C_PushPraiseNtf: ", roPtc.Data.type.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_NEST || XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_DRAGON; + if (!flag) + { + XScreenShotShareDocument.ShareIndex = roPtc.Data.type; + bool flag2 = XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_PANDORA || XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_SPRITE; + if (flag2) + { + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + XScreenShotShareDocument specificDocument = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + specificDocument.CurShareBgType = ((XScreenShotShareDocument.ShareIndex == CommentType.COMMENT_PANDORA) ? ShareBgType.LuckyPandora : ShareBgType.LuckySpriteType); + specificDocument.SpriteID = roPtc.Data.spriteid; + XSingleton.singleton.AddLog(string.Concat(new object[] + { + " ", + specificDocument.CurShareBgType, + " ", + specificDocument.SpriteID + }), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + else + { + bool flag4 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Link_Share); + if (!flag4) + { + bool flag5 = XSingleton.singleton.IsPVPScene() || XSingleton.singleton.IsPVEScene(); + if (flag5) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_Link_Share, EXStage.Hall); + } + else + { + XScreenShotShareDocument.DoShowShare(); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs.meta new file mode 100644 index 00000000..25914981 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PushPraiseNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf3623e061b0e5246a3c143ce9e445da +timeCreated: 1611404482 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleBeginNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleBeginNtf.cs new file mode 100644 index 00000000..0c3493ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleBeginNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PvpBattleBeginNtf + { + public static void Process(PtcG2C_PvpBattleBeginNtf roPtc) + { + XBattleCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + specificDocument.SetBattleBegin(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleBeginNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleBeginNtf.cs.meta new file mode 100644 index 00000000..ee30bd06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleBeginNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88095c0b5ded6e94c9fe5168a3ac0637 +timeCreated: 1611404082 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs new file mode 100644 index 00000000..01b123a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_PvpBattleEndNtf + { + public static void Process(PtcG2C_PvpBattleEndNtf roPtc) + { + XBattleCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + specificDocument.SetBattleEnd(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs.meta new file mode 100644 index 00000000..8b3c2920 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c34db2fbb29ce81409cb683d986a1b3a +timeCreated: 1611404497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleKill.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleKill.cs new file mode 100644 index 00000000..3438fde6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleKill.cs @@ -0,0 +1,52 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_PvpBattleKill + { + public static void Process(PtcG2C_PvpBattleKill roPtc) + { + SceneType sceneType = XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + SceneType sceneType2 = sceneType; + if (sceneType2 <= SceneType.SCENE_HEROBATTLE) + { + if (sceneType2 == SceneType.SCENE_GPR) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.ReceiveBattleSkill(roPtc.Data); + return; + } + if (sceneType2 == SceneType.SCENE_HEROBATTLE) + { + XHeroBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument2.ReceiveBattleSkill(roPtc.Data); + return; + } + } + else + { + if (sceneType2 == SceneType.SCENE_CASTLE_FIGHT) + { + XGuildTerritoryDocument specificDocument3 = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument3.ReceiveBattleSkill(roPtc.Data); + return; + } + if (sceneType2 == SceneType.SCENE_BIGMELEE_FIGHT) + { + XBigMeleeBattleDocument specificDocument4 = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + specificDocument4.ReceiveBattleKillInfo(roPtc.Data); + return; + } + if (sceneType2 == SceneType.SCENE_BATTLEFIELD_FIGHT) + { + XBattleFieldBattleDocument.Doc.ReceiveBattleKillInfo(roPtc.Data); + return; + } + } + XBattleCaptainPVPDocument specificDocument5 = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + specificDocument5.SetBattleKill(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleKill.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleKill.cs.meta new file mode 100644 index 00000000..f6fff918 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_PvpBattleKill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bc171577b7de4c449c3759e8c6f2cf4 +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs new file mode 100644 index 00000000..c3f366f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs @@ -0,0 +1,42 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_QANotify + { + public static void Process(PtcG2C_QANotify roPtc) + { + bool flag = roPtc.Data.type == 0u; + if (!flag) + { + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + XVoiceQADocument specificDocument2 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + bool is_over = roPtc.Data.is_over; + if (is_over) + { + specificDocument2.TempType = 0u; + specificDocument2.IsVoiceQAIng = false; + specificDocument2.MainInterFaceBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + } + else + { + bool is_playing = roPtc.Data.is_playing; + if (is_playing) + { + specificDocument2.IsVoiceQAIng = true; + specificDocument.SetVoiceBtnAppear(0u); + specificDocument2.VoiceQAInit(roPtc.Data.type); + } + else + { + specificDocument2.TempType = roPtc.Data.type; + specificDocument.SetVoiceBtnAppear(roPtc.Data.type); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs.meta new file mode 100644 index 00000000..db1439be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QANotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40a3a227a2c95594bbad2d7dabed8eb1 +timeCreated: 1611403614 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs new file mode 100644 index 00000000..6cd8bc08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs @@ -0,0 +1,37 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_QueryRoleStateAck + { + public static void Process(PtcG2C_QueryRoleStateAck roPtc) + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.TeamMonitor != null; + if (flag) + { + DlgBase.singleton.TeamMonitor.OnQueryRoleStates(roPtc.Data); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + XSpectateTeamMonitorHandler spectateTeamMonitor = DlgBase.singleton.SpectateTeamMonitor; + bool flag3 = spectateTeamMonitor != null; + if (flag3) + { + bool flag4 = spectateTeamMonitor.m_TeamMonitor_Left.IsVisible(); + if (flag4) + { + spectateTeamMonitor.m_TeamMonitor_Left.OnQueryRoleStates(roPtc.Data); + } + bool flag5 = spectateTeamMonitor.m_TeamMonitor_Right.IsVisible(); + if (flag5) + { + spectateTeamMonitor.m_TeamMonitor_Right.OnQueryRoleStates(roPtc.Data); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs.meta new file mode 100644 index 00000000..d23e3d26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_QueryRoleStateAck.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1e80406f9c99e5459bd80b5dbb483e5 +timeCreated: 1611404492 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs new file mode 100644 index 00000000..1a394b0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ReachAchieveNtf + { + public static void Process(PtcG2C_ReachAchieveNtf roPtc) + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + specificDocument.OnReachAhieveNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs.meta new file mode 100644 index 00000000..d9a3dfef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachAchieveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20f9ceabb03e46e488258f883a8ecae7 +timeCreated: 1611403410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachDesignationNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachDesignationNtf.cs new file mode 100644 index 00000000..1dbdd293 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachDesignationNtf.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ReachDesignationNtf + { + public static void Process(PtcG2C_ReachDesignationNtf roPtc) + { + XDesignationDocument xdesignationDocument = XSingleton.singleton.Doc.GetXComponent(XDesignationDocument.uuID) as XDesignationDocument; + xdesignationDocument.OnReachDesignationNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachDesignationNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachDesignationNtf.cs.meta new file mode 100644 index 00000000..5bf376e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReachDesignationNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c91629bf4e0f3f499508b530c8f7d20 +timeCreated: 1611404233 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs new file mode 100644 index 00000000..fb6bc6e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ReceiveFlowerNtf + { + public static void Process(PtcG2C_ReceiveFlowerNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs.meta new file mode 100644 index 00000000..796625a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReceiveFlowerNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 603a92d3d55dcb543a45a69c3539c757 +timeCreated: 1611403832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReconnectSyncNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReconnectSyncNotify.cs new file mode 100644 index 00000000..cd6597ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReconnectSyncNotify.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ReconnectSyncNotify + { + public static void Process(PtcG2C_ReconnectSyncNotify roPtc) + { + XSingleton.singleton.AddGreenLog("Got reconnected data!", null, null, null, null, null); + XSingleton.singleton.GetReconnectData(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReconnectSyncNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReconnectSyncNotify.cs.meta new file mode 100644 index 00000000..8bab1d32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReconnectSyncNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 285b019e29e22d74387e2acc57c1a09c +timeCreated: 1611403474 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarBattleDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarBattleDataNtf.cs new file mode 100644 index 00000000..1050abec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarBattleDataNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ResWarBattleDataNtf + { + public static void Process(PtcG2C_ResWarBattleDataNtf roPtc) + { + XGuildMineBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineBattleDocument.uuID); + specificDocument.SetBattleInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarBattleDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarBattleDataNtf.cs.meta new file mode 100644 index 00000000..632a2201 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarBattleDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7e0ac990aebe6d4daa069421117cddd +timeCreated: 1611404403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs new file mode 100644 index 00000000..2450c507 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ResWarTeamResOne + { + public static void Process(PtcG2C_ResWarTeamResOne roPtc) + { + XGuildMineBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineBattleDocument.uuID); + specificDocument.SetBattleTeamInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs.meta new file mode 100644 index 00000000..ad3c7d5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ResWarTeamResOne.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7798c4d2801cdbe4681180492f476fa8 +timeCreated: 1611403955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveCountdown.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveCountdown.cs new file mode 100644 index 00000000..aeee0a8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveCountdown.cs @@ -0,0 +1,18 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_ReviveCountdown + { + public static void Process(PtcG2C_ReviveCountdown roPtc) + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.ShowAutoReviveFrame(roPtc.Data.countdownTime, roPtc.Data.revivecost, roPtc.Data.revivecosttype); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveCountdown.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveCountdown.cs.meta new file mode 100644 index 00000000..fb248832 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveCountdown.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7db6652b14dccc24d9dc9f059ed2eec9 +timeCreated: 1611404002 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveNotify.cs new file mode 100644 index 00000000..7e823d07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveNotify.cs @@ -0,0 +1,47 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ReviveNotify + { + public static void Process(PtcG2C_ReviveNotify roPtc) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(roPtc.Data.roleID); + bool flag = entityConsiderDeath == null; + if (!flag) + { + bool isPlayer = entityConsiderDeath.IsPlayer; + if (isPlayer) + { + XPlayer xplayer = entityConsiderDeath as XPlayer; + xplayer.Revive(); + } + else + { + XRole xrole = entityConsiderDeath as XRole; + xrole.Revive(); + } + XSingleton.singleton.AddGreenLog(string.Format("Revive type: {0}", roPtc.Data.type.ToString()), null, null, null, null, null); + bool flag2 = roPtc.Data.type == ReviveType.ReviveSprite; + if (flag2) + { + XAffiliate xaffiliate = null; + bool flag3 = entityConsiderDeath.Equipment != null; + if (flag3) + { + xaffiliate = entityConsiderDeath.Equipment.Sprite; + } + bool flag4 = xaffiliate != null; + if (flag4) + { + string value = XSingleton.singleton.GetValue("SpriteReviveFx"); + XSingleton.singleton.CreateAndPlay(value, xaffiliate.EngineObject, Vector3.zero, Vector3.one, 1f, true, 5f, true); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveNotify.cs.meta new file mode 100644 index 00000000..50880ee1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ReviveNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce558d8b444e1624b8331334798a2be9 +timeCreated: 1611404578 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RewardChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RewardChangedNtf.cs new file mode 100644 index 00000000..0e746d1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RewardChangedNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_RewardChangedNtf + { + public static void Process(PtcG2C_RewardChangedNtf roPtc) + { + XSystemRewardDocument specificDocument = XDocuments.GetSpecificDocument(XSystemRewardDocument.uuID); + specificDocument.OnRewardChanged(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RewardChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RewardChangedNtf.cs.meta new file mode 100644 index 00000000..ef821a40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RewardChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8f9e3d639eb0a54bacdb589820ac600 +timeCreated: 1611404536 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs new file mode 100644 index 00000000..2cab6d81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_RiftSceneInfoNtf + { + public static void Process(PtcG2C_RiftSceneInfoNtf roPtc) + { + XRiftDocument specificDocument = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + specificDocument.OnRiftSceneInfo(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs.meta new file mode 100644 index 00000000..f335cbb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiftSceneInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1063ce7c37e3c4e4da0b3d479d4397b2 +timeCreated: 1611403217 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskBuyNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskBuyNtf.cs new file mode 100644 index 00000000..4a0db731 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskBuyNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_RiskBuyNtf + { + public static void Process(PtcG2C_RiskBuyNtf roPtc) + { + XSuperRiskDocument.Doc.RiskBuyNtfBack(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskBuyNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskBuyNtf.cs.meta new file mode 100644 index 00000000..bf7519da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskBuyNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5b4382a692cbe7419da7912aa1c2ad7 +timeCreated: 1611404877 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskRecoverDiceNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskRecoverDiceNtf.cs new file mode 100644 index 00000000..2eabcb63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskRecoverDiceNtf.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_RiskRecoverDiceNtf + { + public static void Process(PtcG2C_RiskRecoverDiceNtf roPtc) + { + XSuperRiskDocument xsuperRiskDocument = XSingleton.singleton.Doc.GetXComponent(XSuperRiskDocument.uuID) as XSuperRiskDocument; + xsuperRiskDocument.SetDiceLeftTime(roPtc.Data.diceNum, roPtc.Data.leftDiceTime); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskRecoverDiceNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskRecoverDiceNtf.cs.meta new file mode 100644 index 00000000..13bd2f0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_RiskRecoverDiceNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a11d3de1f3f2ecd4e8466784c8fdda52 +timeCreated: 1611404252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneDamageRankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneDamageRankNtf.cs new file mode 100644 index 00000000..97fa3edc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneDamageRankNtf.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SceneDamageRankNtf + { + public static void Process(PtcG2C_SceneDamageRankNtf roPtc) + { + XSceneDamageRankDocument xsceneDamageRankDoc = XSingleton.singleton.Doc.XSceneDamageRankDoc; + xsceneDamageRankDoc.OnGetRank(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneDamageRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneDamageRankNtf.cs.meta new file mode 100644 index 00000000..5f9c8de0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneDamageRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85367b762cb326b40ad10ec1a73358a7 +timeCreated: 1611404051 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneFinishStateChanged.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneFinishStateChanged.cs new file mode 100644 index 00000000..8b74c1b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneFinishStateChanged.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SceneFinishStateChanged + { + public static void Process(PtcG2C_SceneFinishStateChanged roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneFinishStateChanged.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneFinishStateChanged.cs.meta new file mode 100644 index 00000000..dba1b52c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneFinishStateChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41fac0822f14053428a4a5410581a5ab +timeCreated: 1611403638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs new file mode 100644 index 00000000..91a3cff9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SceneLeftDoodad + { + public static void Process(PtcG2C_SceneLeftDoodad roPtc) + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.SetPickItemList(roPtc.Data.items); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs.meta new file mode 100644 index 00000000..ba35186e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneLeftDoodad.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34e5134bb0e6a9d448bc7e7b72bef910 +timeCreated: 1611403557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs new file mode 100644 index 00000000..2afaeeb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs @@ -0,0 +1,36 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ScenePrepareInfoNtf + { + public static void Process(PtcG2C_ScenePrepareInfoNtf roPtc) + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.World; + if (!flag) + { + bool isPVPScene = XSingleton.singleton.IsPVPScene; + if (isPVPScene) + { + DlgBase.singleton.SetLoadingPrompt(roPtc.Data.unreadyroles, true); + } + else + { + DlgBase.singleton.SetLoadingPrompt(roPtc.Data.unreadyroles); + } + for (int i = 0; i < roPtc.Data.unreadyroles.Count; i++) + { + XSingleton.singleton.AddGreenLog("roles: ", roPtc.Data.unreadyroles[i], " not ready yet.", null, null, null); + } + bool flag2 = roPtc.Data.unreadyroles.Count > 0; + if (flag2) + { + XSingleton.singleton.AddGreenLog("still has ", roPtc.Data.unreadyroles.Count.ToString(), " unready.", null, null, null); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs.meta new file mode 100644 index 00000000..49362231 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ScenePrepareInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3238cb542c543884090e1d3a1ea4607a +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneStateNtf.cs new file mode 100644 index 00000000..32ec8fdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneStateNtf.cs @@ -0,0 +1,18 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SceneStateNtf + { + public static void Process(PtcG2C_SceneStateNtf roPtc) + { + XSingleton.singleton.SceneStarted = roPtc.Data.state.isready; + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.UpdateSpecialStateFromServer(roPtc.Data.rolespecialstate, uint.MaxValue); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneStateNtf.cs.meta new file mode 100644 index 00000000..3afde81b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SceneStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57966d6e52693e74cb2051db2cea12cd +timeCreated: 1611403750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SelectRoleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SelectRoleNtf.cs new file mode 100644 index 00000000..f3b99512 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SelectRoleNtf.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SelectRoleNtf + { + public static void Process(PtcG2C_SelectRoleNtf roPtc) + { + XSingleton.singleton.PlayerID = roPtc.Data.roleData.Brief.roleID; + List skills = null; + List skillSlot = null; + uint skillPageIndex = 0u; + bool flag = roPtc.Data.roleData.skill != null; + if (flag) + { + skills = ((roPtc.Data.roleData.skill.index == 0u) ? roPtc.Data.roleData.skill.Skills : roPtc.Data.roleData.skill.SkillsTwo); + skillSlot = ((roPtc.Data.roleData.skill.index == 0u) ? roPtc.Data.roleData.skill.SkillSlot : roPtc.Data.roleData.skill.SkillSlotTwo); + skillPageIndex = roPtc.Data.roleData.skill.index; + } + XSingleton.singleton.InitPlayerAttr(roPtc.Data.roleData.Brief, roPtc.Data.roleData.Attributes, skills, skillSlot, skillPageIndex, roPtc.Data.roleData.system, roPtc.Data.roleData.military); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.InitServerConfig(roPtc.Data.roleData.config); + XSingleton.singleton.Init((uint)roPtc.Data.roleData.Brief.type); + XSingleton.singleton.InitWhenSelectRole(roPtc.Data.roleData.Brief.level); + XSingleton.singleton.Doc.XBagDoc.Init(roPtc.Data.roleData.Bag); + XSingleton.singleton.Init(roPtc.Data.roleData.Stages); + XMainInterfaceDocument specificDocument2 = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument2.BackFlow = roPtc.Data.backflow_firstenter; + XSingleton.singleton.Reset(roPtc.Data.roleData.Brief.tutorialBitsArray); + XTaskDocument specificDocument3 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + specificDocument3.TaskRecord.InitFromServerData(roPtc.Data.roleData.task_record); + XGuildDailyTaskDocument specificDocument4 = XDocuments.GetSpecificDocument(XGuildDailyTaskDocument.uuID); + specificDocument4.InitFromServerData(roPtc.Data.roleData.task_record); + XTempActivityDocument specificDocument5 = XDocuments.GetSpecificDocument(XTempActivityDocument.uuID); + specificDocument5.InitActivityRecordFromServerData(roPtc.Data.roleData.spActivityRecord); + WeekEndNestDocument.Doc.OfflineOpenSetTaskId(); + XEmblemDocument specificDocument6 = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + specificDocument6.InitWhenCreateRole(roPtc.Data.roleData.Brief.level); + XCharacterEquipDocument specificDocument7 = XDocuments.GetSpecificDocument(XCharacterEquipDocument.uuID); + specificDocument7.UpdateRedPoints(roPtc.Data.roleData.Brief.level); + ArtifactBagDocument.Doc.UpdateRedPoints(roPtc.Data.roleData.Brief.level); + XCharacterItemDocument specificDocument8 = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + specificDocument8.UpdateRedPoints(roPtc.Data.roleData.Brief.level); + XAchievementDocument specificDocument9 = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + specificDocument9.InitAchivement((roPtc.Data.roleData.achieve == null) ? null : roPtc.Data.roleData.achieve.oldachievement); + XPurchaseDocument specificDocument10 = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + specificDocument10.InitPurchaseInfo(roPtc.Data.roleData.BuyInfo); + XFashionDocument specificDocument11 = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + specificDocument11.Init(roPtc.Data.roleData.fashionrecord.bagfashion, roPtc.Data.roleData.fashionrecord.bodyfashion, roPtc.Data.roleData.fashionrecord.collected); + XFashionStorageDocument specificDocument12 = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + specificDocument12.Init(roPtc.Data.roleData.fashionrecord); + XPrerogativeDocument specificDocument13 = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + specificDocument13.Initialize(roPtc.Data.roleData.payv2.consume.setid, roPtc.Data.roleData.payv2.consume.activateid); + XSingleton.singleton.Init(); + XPetDocument specificDocument14 = XDocuments.GetSpecificDocument(XPetDocument.uuID); + specificDocument14.OnPetAllNotify(roPtc.Data.roleData.petsys); + XCardCollectDocument specificDocument15 = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + specificDocument15.InitCardData(roPtc.Data.roleData.atlas); + XAbyssPartyDocument specificDocument16 = XDocuments.GetSpecificDocument(XAbyssPartyDocument.uuID); + bool flag2 = roPtc.Data.roleData.Stages.absparty != null; + if (flag2) + { + specificDocument16.SetAbyssIndex(roPtc.Data.roleData.Stages.absparty.aby); + } + XTitleDocument specificDocument17 = XDocuments.GetSpecificDocument(XTitleDocument.uuID); + specificDocument17.RefreshTitleLevelUp(); + XPartnerDocument.Doc.ReqPartnerInfo(); + XNPCFavorDocument specificDocument18 = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + specificDocument18.ReqNPCFavorUnionInfo(); + XSpriteSystemDocument specificDocument19 = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + specificDocument19.SetAllInfo(roPtc.Data.roleData.SpriteRecord); + XHeroBattleDocument specificDocument20 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument20.SetHeroBattleInfo(roPtc.Data.roleData.herobattle); + XQualifyingDocument specificDocument21 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument21.SetQulifyingRewardCount(roPtc.Data.roleData.pkrecord); + bool flag3 = !string.IsNullOrEmpty(XSingleton.singleton.OpenID); + if (flag3) + { + XSingleton.singleton.XTssSdk.OnLogin((int)XSingleton.singleton.Channel, XSingleton.singleton.OpenID, XSingleton.singleton.ServerID, roPtc.Data.roleData.Brief.roleID.ToString()); + } + XSingleton.singleton.XApolloManager.Init((int)XSingleton.singleton.Channel, XSingleton.singleton.OpenID); + XSingleton.singleton.XPlatform.SendUserInfo(XSingleton.singleton.ServerID, roPtc.Data.roleData.Brief.roleID); + XSingleton.singleton.XBroadCast.SetAccount((int)XSingleton.singleton.Channel, XSingleton.singleton.OpenID, XSingleton.singleton.TokenCache); + XSingleton.singleton.XApolloManager.SetRealtimeMode(); + XSingleton.singleton.PandoraLogin(); + XSmeltDocument.Doc.InitEquipAndEmblemRedDot(); + XSmeltDocument.Doc.ResetSetting(); + ArtifactInscriptionDocument.Doc.ResetSetting(); + ArtifactFuseDocument.Doc.ResetSetting(); + ArtifactRecastDocument.Doc.ResetSetting(); + ArtifactRefinedDocument.Doc.ResetSetting(); + XFileLog.RoleName = roPtc.Data.roleData.Brief.name; + XPlatformAbilityDocument.Doc.QueryQQVipInfo(); + XRechargeDocument specificDocument22 = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument22.GetPayMarketingInfo(); + XRechargeDocument specificDocument23 = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument23.PayParameterNtf(); + XMilitaryRankDocument specificDocument24 = XDocuments.GetSpecificDocument(XMilitaryRankDocument.uuID); + specificDocument24.SetMyMilitaryRecord(roPtc.Data.roleData.military); + XFPStrengthenDocument specificDocument25 = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + specificDocument25.RequsetFightNum(); + AdditionRemindDocument specificDocument26 = XDocuments.GetSpecificDocument(AdditionRemindDocument.uuID); + bool flag4 = roPtc.Data.roleData.misc != null; + if (flag4) + { + specificDocument26.SetFreeflowTime(roPtc.Data.roleData.misc.freeflow_hinttime); + } + XSingleton.singleton.SetPlayerInfo(roPtc.Data.roleData); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SelectRoleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SelectRoleNtf.cs.meta new file mode 100644 index 00000000..62176bae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SelectRoleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b95965e4d9e950e4ba4fdec9a9a7f9c3 +timeCreated: 1611404410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs new file mode 100644 index 00000000..2312ee38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs @@ -0,0 +1,23 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_ServerOpenDayNtf + { + public static void Process(PtcG2C_ServerOpenDayNtf roPtc) + { + XActivityDocument specificDocument = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + specificDocument.ServerOpenDay = roPtc.Data.openday; + specificDocument.ServerOpenWeek = (int)roPtc.Data.week; + specificDocument.SeverOpenSecond = roPtc.Data.daybeginsecdiff; + specificDocument.ServerTimeSince1970 = roPtc.Data.nowTime; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetActivityEffect(true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs.meta new file mode 100644 index 00000000..8f915131 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ServerOpenDayNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3cbd3e266149d6c4f9ff64e36c6e20c9 +timeCreated: 1611403602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ShareRandomGiftNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ShareRandomGiftNtf.cs new file mode 100644 index 00000000..8609d1eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ShareRandomGiftNtf.cs @@ -0,0 +1,16 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_ShareRandomGiftNtf + { + public static void Process(PtcG2C_ShareRandomGiftNtf roPtc) + { + RpcC2G_GetPlatformShareChest rpcC2G_GetPlatformShareChest = new RpcC2G_GetPlatformShareChest(); + rpcC2G_GetPlatformShareChest.oArg.box_id = roPtc.Data.id; + rpcC2G_GetPlatformShareChest.oArg.open_key = XSingleton.singleton.OpenKey; + XSingleton.singleton.Send(rpcC2G_GetPlatformShareChest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ShareRandomGiftNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ShareRandomGiftNtf.cs.meta new file mode 100644 index 00000000..8006d5d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ShareRandomGiftNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e5435e7bef26e649a8d7276fd8ca0bf +timeCreated: 1611404241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillChangedNtf.cs new file mode 100644 index 00000000..33318a89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillChangedNtf.cs @@ -0,0 +1,82 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SkillChangedNtf + { + public static void Process(PtcG2C_SkillChangedNtf roPtc) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + for (int i = 0; i < roPtc.Data.newSkill.Count; i++) + { + xplayerData.SkillLevelInfo.SetSkillLevel(roPtc.Data.newSkill[i], roPtc.Data.newSkillLevel[i]); + } + for (int i = 0; i < roPtc.Data.changedSkillHash.Count; i++) + { + xplayerData.SkillLevelInfo.SetSkillLevel(roPtc.Data.changedSkillHash[i], roPtc.Data.changedSkillLevel[i]); + } + for (int i = 0; i < roPtc.Data.removeSkill.Count; i++) + { + xplayerData.SkillLevelInfo.RemoveSkill(roPtc.Data.removeSkill[i]); + } + xplayerData.SkillLevelInfo.RefreshSkillFlags(); + xplayerData.SkillLevelInfo.RefreshSelfLinkedLevels(XSingleton.singleton.Player); + bool flag = roPtc.Data.skillType == 0; + if (flag) + { + bool flag2 = XSingleton.singleton.XPlayerData.SkillPageIndex == 0u; + if (flag2) + { + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.SKILL_POINT), (ulong)((long)roPtc.Data.skillpoint)); + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.SKILL_POINT_TWO), (ulong)roPtc.Data.skillpointtwo); + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.AWAKE_SKILL_POINT), (ulong)roPtc.Data.awakepoint); + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.AWAKE_SKILL_POINT_TWO), (ulong)roPtc.Data.awakepointtwo); + } + else + { + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.SKILL_POINT_TWO), (ulong)((long)roPtc.Data.skillpoint)); + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.SKILL_POINT), (ulong)roPtc.Data.skillpointtwo); + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.AWAKE_SKILL_POINT), (ulong)roPtc.Data.awakepointtwo); + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.AWAKE_SKILL_POINT_TWO), (ulong)roPtc.Data.awakepoint); + } + } + else + { + bool flag3 = roPtc.Data.skillType == 1; + if (flag3) + { + XSingleton.singleton.Doc.XBagDoc.SetVirtualItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.GUILD_CONTRIBUTE), (ulong)((long)roPtc.Data.skillpoint)); + } + } + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + bool flag4 = roPtc.Data.skillSlot != null && roPtc.Data.skillSlot.Count > 0; + if (flag4) + { + List list = new List(); + for (int i = 0; i < roPtc.Data.skillSlot.Count; i++) + { + bool flag5 = roPtc.Data.skillSlot[i] == 0u && xplayerData.skillSlot[i] > 0u; + if (flag5) + { + list.Add(i); + } + } + specificDocument.ShowEmblemTips(list); + } + for (int i = 0; i < roPtc.Data.skillSlot.Count; i++) + { + xplayerData.skillSlot[i] = roPtc.Data.skillSlot[i]; + } + bool flag6 = roPtc.Data.skillSlot != null && roPtc.Data.skillSlot.Count > 0; + if (flag6) + { + XEmblemDocument specificDocument2 = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + specificDocument2.UpdateRedPoints(); + } + specificDocument.SkillRefresh(false, false); + XSingleton.singleton.SkillLevelup = true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillChangedNtf.cs.meta new file mode 100644 index 00000000..cfdad0b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76047b4ac1a4e8c478d89a4b67f58124 +timeCreated: 1611403948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillCoolNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillCoolNtf.cs new file mode 100644 index 00000000..7c833fc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillCoolNtf.cs @@ -0,0 +1,15 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SkillCoolNtf + { + public static void Process(PtcG2C_SkillCoolNtf roPtc) + { + XCoolDownAllSkillsArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillCoolNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillCoolNtf.cs.meta new file mode 100644 index 00000000..41d1eef3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillCoolNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d583d27d1b916e4191f152864eb56b5 +timeCreated: 1611403195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs new file mode 100644 index 00000000..4c85bd5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs @@ -0,0 +1,15 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SkillInitCoolNtf + { + public static void Process(PtcG2C_SkillInitCoolNtf roPtc) + { + XInitCoolDownAllSkillsArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs.meta new file mode 100644 index 00000000..6f8ee0e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillInitCoolNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78c56202be73a584f991e429f749dd9d +timeCreated: 1611403982 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillResult.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillResult.cs new file mode 100644 index 00000000..a1f344e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillResult.cs @@ -0,0 +1,71 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SkillResult + { + public static void Process(PtcG2C_SkillResult roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.FirerID); + bool flag = entity == null; + if (!flag) + { + bool bulletIDSpecified = roPtc.Data.BulletIDSpecified; + if (bulletIDSpecified) + { + XBulletMgr.KeyOfBullet id = new XBulletMgr.KeyOfBullet(entity.ID, roPtc.Data.BulletID, roPtc.Data.BulletExtraIDSpecified ? roPtc.Data.BulletExtraID : 0UL); + XBullet bullet = XSingleton.singleton.GetBullet(id); + bool flag2 = bullet == null; + if (flag2) + { + XSingleton.singleton.Cache(id); + } + else + { + bullet.OnResult(null); + } + } + for (int i = 0; i < roPtc.Data.TargetList.Count; i++) + { + XEntity entity2 = XSingleton.singleton.GetEntity(roPtc.Data.TargetList[i].UnitID); + bool flag3 = !XEntity.ValideEntity(entity2); + if (!flag3) + { + TargetHurtInfo targetHurtInfo = roPtc.Data.TargetList[i]; + ProjectDamageResult data = XDataPool.GetData(); + data.Accept = true; + data.Result = (ProjectResultType)targetHurtInfo.Result.Result; + data.Value = targetHurtInfo.Result.Value; + data.Flag = targetHurtInfo.Result.Flag; + data.Type = (DamageType)targetHurtInfo.Result.DamageType; + data.ElementType = (DamageElement)targetHurtInfo.Result.ElementType; + data.IsTargetDead = targetHurtInfo.Result.IsTargetDead; + data.Caster = roPtc.Data.FirerID; + data.ComboCount = targetHurtInfo.Result.ComboCount; + XSkillCore skill = entity.SkillMgr.GetSkill(roPtc.Data.SkillID); + bool flag4 = skill == null || skill.Soul.Hit.Count <= (int)roPtc.Data.PIndex; + if (flag4) + { + bool flag5 = skill == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("skill ", roPtc.Data.SkillID.ToString(), " is not found by ", entity.Name, null, null); + } + else + { + XSingleton.singleton.AddErrorLog("skill ", skill.Soul.Name, "'s hit point is not matched by ", entity.Name, null, null); + } + } + else + { + XSkill.SkillResult_TakeEffect(entity, entity2, data, skill.Soul.Hit[(int)roPtc.Data.PIndex], Vector3.forward, XStrickenResponse.Cease, true, 1f, Vector3.zero); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillResult.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillResult.cs.meta new file mode 100644 index 00000000..fdb09ee5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkillResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b8a0c0f80369044c8f8660a91984a14 +timeCreated: 1611404096 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityBattleDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityBattleDataNtf.cs new file mode 100644 index 00000000..4635e422 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityBattleDataNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SkyCityBattleDataNtf + { + public static void Process(PtcG2C_SkyCityBattleDataNtf roPtc) + { + XSkyArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + specificDocument.SetBattleInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityBattleDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityBattleDataNtf.cs.meta new file mode 100644 index 00000000..13b273a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityBattleDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6026b33a4ac3174cb4d14d9dc5f66c9 +timeCreated: 1611404630 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityEstimateRes.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityEstimateRes.cs new file mode 100644 index 00000000..0e4d776f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityEstimateRes.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SkyCityEstimateRes + { + public static void Process(PtcG2C_SkyCityEstimateRes roPtc) + { + XSkyArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + specificDocument.SetBattleEndInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityEstimateRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityEstimateRes.cs.meta new file mode 100644 index 00000000..6e2de22e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityEstimateRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03ece861e2919294cab893ce83fa0300 +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs new file mode 100644 index 00000000..4257eeeb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SkyCityTeamRes + { + public static void Process(PtcG2C_SkyCityTeamRes roPtc) + { + XSkyArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + specificDocument.SetBattleTeamInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs.meta new file mode 100644 index 00000000..9381dce9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTeamRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e2c1fa0ad078fa428de2971baace987 +timeCreated: 1611403697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs new file mode 100644 index 00000000..bc340744 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_PtcG2C_SkyCityTimeRes + { + public static void Process(PtcG2C_SkyCityTimeRes roPtc) + { + bool flag = roPtc.Data.type == SkyCityTimeType.Waiting; + if (flag) + { + XSkyArenaEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaEntranceDocument.uuID); + specificDocument.SetTime(roPtc.Data.time); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs.meta new file mode 100644 index 00000000..ba01a2e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SkyCityTimeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b5bcfb04ab4d6c4388e3d617f5f6ce9 +timeCreated: 1611404095 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityChangeNtf.cs new file mode 100644 index 00000000..54ca11ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityChangeNtf.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SpActivityChangeNtf + { + public static void Process(PtcG2C_SpActivityChangeNtf roPtc) + { + XTempActivityDocument.Doc.UpdateActivityTaskState(roPtc.Data.actid, roPtc.Data.taskid, roPtc.Data.state, roPtc.Data.progress); + XCarnivalDocument specificDocument = XDocuments.GetSpecificDocument(XCarnivalDocument.uuID); + specificDocument.OnSpActivityChange(roPtc.Data); + WeekEndNestDocument.Doc.TaskChangePtc(roPtc.Data.actid, roPtc.Data.taskid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityChangeNtf.cs.meta new file mode 100644 index 00000000..3e6e1e2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb45f388fb95a1646aa47e9e178c96be +timeCreated: 1611404930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityOffsetDayNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityOffsetDayNtf.cs new file mode 100644 index 00000000..000696b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityOffsetDayNtf.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SpActivityOffsetDayNtf + { + public static void Process(PtcG2C_SpActivityOffsetDayNtf roPtc) + { + XTempActivityDocument.Doc.InitOffsetDayInfos(roPtc.Data); + for (int i = 0; i < roPtc.Data.actid.Count; i++) + { + bool flag = roPtc.Data.actid[i] == 1u; + if (flag) + { + XCarnivalDocument specificDocument = XDocuments.GetSpecificDocument(XCarnivalDocument.uuID); + specificDocument.RespInfo(roPtc.Data.offsetday[i]); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityOffsetDayNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityOffsetDayNtf.cs.meta new file mode 100644 index 00000000..1943daf5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpActivityOffsetDayNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90c004c74f55af34c94ddab886b4f206 +timeCreated: 1611404140 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs new file mode 100644 index 00000000..e1339b0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs @@ -0,0 +1,19 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SpecialStateNtf + { + public static void Process(PtcG2C_SpecialStateNtf roPtc) + { + XSingleton.singleton.AddLog(roPtc.Data.uid.ToString(), " got specialStateNtf state ", roPtc.Data.state.ToString(), " mask ", roPtc.Data.effectmask.ToString(), null, XDebugColor.XDebug_None); + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.uid); + bool flag = entity != null; + if (flag) + { + entity.UpdateSpecialStateFromServer(roPtc.Data.state, roPtc.Data.effectmask); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs.meta new file mode 100644 index 00000000..9581121a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpecialStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8404bd8aff0f437439d52be730ddd8f0 +timeCreated: 1611404047 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs new file mode 100644 index 00000000..71e59672 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SpriteChangedNtf + { + public static void Process(PtcG2C_SpriteChangedNtf roPtc) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + specificDocument.OnSpriteChange(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs.meta new file mode 100644 index 00000000..7f79ecad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SpriteChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c7bad8d1f6186243be70db0acf6cb13 +timeCreated: 1611403344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartBattleFailedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartBattleFailedNtf.cs new file mode 100644 index 00000000..3a87b6d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartBattleFailedNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_StartBattleFailedNtf + { + public static void Process(PtcG2C_StartBattleFailedNtf roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ProcessTeamOPErrorCode(roPtc.Data.reason, roPtc.Data.proUserID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartBattleFailedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartBattleFailedNtf.cs.meta new file mode 100644 index 00000000..facead05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartBattleFailedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91ea4125fa0012c4399c0f573f9aa573 +timeCreated: 1611404144 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartRollNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartRollNtf.cs new file mode 100644 index 00000000..3462503a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartRollNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_StartRollNtf + { + public static void Process(PtcG2C_StartRollNtf roPtc) + { + XRollDocument specificDocument = XDocuments.GetSpecificDocument(XRollDocument.uuID); + specificDocument.SetRollItem(roPtc.Data.info); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartRollNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartRollNtf.cs.meta new file mode 100644 index 00000000..e8f925a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_StartRollNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df2163209e246ce4b90d46ab54d68884 +timeCreated: 1611404691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynAtlasAttr.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynAtlasAttr.cs new file mode 100644 index 00000000..d4f31500 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynAtlasAttr.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SynAtlasAttr + { + public static void Process(PtcG2C_SynAtlasAttr roPtc) + { + XCardCollectDocument specificDocument = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + specificDocument.OnRefreshAttr(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynAtlasAttr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynAtlasAttr.cs.meta new file mode 100644 index 00000000..2c9db434 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynAtlasAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66ff655b708c02a47bb5c24ca3f1a240 +timeCreated: 1611403856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaBattleInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaBattleInfo.cs new file mode 100644 index 00000000..fe67b0d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaBattleInfo.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SynGuildArenaBattleInfo + { + public static void Process(PtcG2C_SynGuildArenaBattleInfo roPtc) + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.OnSynGuildArenaBattleInfos(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaBattleInfo.cs.meta new file mode 100644 index 00000000..313a61fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b96fead09eb39f47bc04998266b376e +timeCreated: 1611404096 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaFightUnit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaFightUnit.cs new file mode 100644 index 00000000..3e6df111 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaFightUnit.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SynGuildArenaFightUnit + { + public static void Process(PtcG2C_SynGuildArenaFightUnit roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaFightUnit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaFightUnit.cs.meta new file mode 100644 index 00000000..daadd74f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaFightUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8025df4b7e0dc7d45b35cea7604b2dcc +timeCreated: 1611404033 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaRoleOnline.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaRoleOnline.cs new file mode 100644 index 00000000..32e8b16f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaRoleOnline.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SynGuildArenaRoleOnline + { + public static void Process(PtcG2C_SynGuildArenaRoleOnline roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaRoleOnline.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaRoleOnline.cs.meta new file mode 100644 index 00000000..79e2c055 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildArenaRoleOnline.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efe2eaba68636034fbda9dd29e812ce0 +timeCreated: 1611404806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildInheritNumInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildInheritNumInfo.cs new file mode 100644 index 00000000..c0aa8da9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildInheritNumInfo.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_SynGuildInheritNumInfo + { + public static void Process(PtcG2C_SynGuildInheritNumInfo roPtc) + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + specificDocument.SynInheritBaseInfo(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildInheritNumInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildInheritNumInfo.cs.meta new file mode 100644 index 00000000..c8eb1301 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SynGuildInheritNumInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7f201ce279489548901a1b4eea097c9 +timeCreated: 1611404532 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncMoveNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncMoveNotify.cs new file mode 100644 index 00000000..4a990473 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncMoveNotify.cs @@ -0,0 +1,18 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SyncMoveNotify + { + public static void Process(PtcG2C_SyncMoveNotify roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.EntityID); + bool flag = entity == null; + if (!flag) + { + XSingleton.singleton.OnMoveReceived(entity, roPtc.Data); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncMoveNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncMoveNotify.cs.meta new file mode 100644 index 00000000..87f606fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncMoveNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea0c881ad0878b540b6c0f2b331aa4c5 +timeCreated: 1611404776 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncStepNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncStepNotify.cs new file mode 100644 index 00000000..478afdf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncStepNotify.cs @@ -0,0 +1,21 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_SyncStepNotify + { + public static void Process(PtcG2C_SyncStepNotify roPtc) + { + for (int i = 0; i < roPtc.Data.DataList.Count; i++) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(roPtc.Data.DataList[i].EntityID); + bool flag = entityConsiderDeath == null; + if (!flag) + { + XSingleton.singleton.OnActionReceived(entityConsiderDeath, roPtc.Data.DataList[i]); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncStepNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncStepNotify.cs.meta new file mode 100644 index 00000000..91b4deaf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_SyncStepNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7720fd5f1296c07448ae3d8daea0a06a +timeCreated: 1611403952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TajieHelpNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TajieHelpNotify.cs new file mode 100644 index 00000000..58e5e56a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TajieHelpNotify.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TajieHelpNotify + { + public static void Process(PtcG2C_TajieHelpNotify roPtc) + { + TaJieHelpDocument.Doc.OnGetPtcMes(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TajieHelpNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TajieHelpNotify.cs.meta new file mode 100644 index 00000000..cbaa8858 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TajieHelpNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5443fdbaf2070074bb0b8c2a9a6a01b5 +timeCreated: 1611403714 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TakeRandomTask.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TakeRandomTask.cs new file mode 100644 index 00000000..9d2dee2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TakeRandomTask.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TakeRandomTask + { + public static void Process(PtcG2C_TakeRandomTask roPtc) + { + XLevelDocument specificDocument = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + specificDocument.OnTaskRandomTask(roPtc.Data.taskid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TakeRandomTask.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TakeRandomTask.cs.meta new file mode 100644 index 00000000..d5f0c2fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TakeRandomTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7244369a24a6bbf44887e7f7695e50fa +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs new file mode 100644 index 00000000..b8648c6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TeamFullDataNtf + { + public static void Process(PtcG2C_TeamFullDataNtf roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnTeamFullDataNotify(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs.meta new file mode 100644 index 00000000..6e7fe7a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamFullDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b232793340bc2b49b25c0c52c85ddfa +timeCreated: 1611403498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamInviteNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamInviteNotify.cs new file mode 100644 index 00000000..e7dc224e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamInviteNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TeamInviteNotify + { + public static void Process(PtcG2C_TeamInviteNotify roPtc) + { + XTeamInviteDocument specificDocument = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + specificDocument.OnInviteComing(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamInviteNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamInviteNotify.cs.meta new file mode 100644 index 00000000..dccdf678 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamInviteNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 290169167bc5c114684b3d3a917d6f35 +timeCreated: 1611403475 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamSelectNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamSelectNotify.cs new file mode 100644 index 00000000..25aaeab9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamSelectNotify.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TeamSelectNotify + { + public static void Process(PtcG2C_TeamSelectNotify roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamSelectNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamSelectNotify.cs.meta new file mode 100644 index 00000000..d2f1f68c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeamSelectNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cebbbff767484b48b5f88ce15b02ef9 +timeCreated: 1611403349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeleportNotice.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeleportNotice.cs new file mode 100644 index 00000000..ff97bf44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeleportNotice.cs @@ -0,0 +1,26 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_TeleportNotice + { + public static void Process(PtcG2C_TeleportNotice roPtc) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool onnotice = roPtc.Data.onnotice; + if (onnotice) + { + DlgBase.singleton.ShowNotice(XStringDefineProxy.GetString("LEVEL_ALL_TRANSPORT"), 5f, 1f); + } + else + { + DlgBase.singleton.StopNotice(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeleportNotice.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeleportNotice.cs.meta new file mode 100644 index 00000000..73bfcdaf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TeleportNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2070dd297f9a154b882b9e1f9920b3b +timeCreated: 1611404256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ThemeActivityChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ThemeActivityChangeNtf.cs new file mode 100644 index 00000000..c11b062f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ThemeActivityChangeNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_ThemeActivityChangeNtf + { + public static void Process(PtcG2C_ThemeActivityChangeNtf roPtc) + { + XThemeActivityDocument.Doc.SetActivityChange(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ThemeActivityChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ThemeActivityChangeNtf.cs.meta new file mode 100644 index 00000000..cec64ad3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_ThemeActivityChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8b0bf9a038c0b04db594b9f10a66bb2 +timeCreated: 1611404406 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TitleChangeNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TitleChangeNotify.cs new file mode 100644 index 00000000..8a5477e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TitleChangeNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TitleChangeNotify + { + public static void Process(PtcG2C_TitleChangeNotify roPtc) + { + XTitleDocument specificDocument = XDocuments.GetSpecificDocument(XTitleDocument.uuID); + specificDocument.TitleLevelChange(roPtc.Data.titleID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TitleChangeNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TitleChangeNotify.cs.meta new file mode 100644 index 00000000..e98b3f57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TitleChangeNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 154843b4e794f85469ad72e69e089c33 +timeCreated: 1611403262 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerFirstPassRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerFirstPassRewardNtf.cs new file mode 100644 index 00000000..ba997414 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerFirstPassRewardNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TowerFirstPassRewardNtf + { + public static void Process(PtcG2C_TowerFirstPassRewardNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerFirstPassRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerFirstPassRewardNtf.cs.meta new file mode 100644 index 00000000..c649f407 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerFirstPassRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f68d36f8f67ae54e959d368ec4311f5 +timeCreated: 1611403610 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerSceneInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerSceneInfoNtf.cs new file mode 100644 index 00000000..d145b28a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerSceneInfoNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TowerSceneInfoNtf + { + public static void Process(PtcG2C_TowerSceneInfoNtf roPtc) + { + XBattleDocument specificDocument = XDocuments.GetSpecificDocument(XBattleDocument.uuID); + specificDocument.RefreshTowerSceneInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerSceneInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerSceneInfoNtf.cs.meta new file mode 100644 index 00000000..0b9f141a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TowerSceneInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a003c010348ccf448def4af07801f55 +timeCreated: 1611403887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransNotify.cs new file mode 100644 index 00000000..fbf6e25a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransNotify.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_TransNotify + { + public static void Process(PtcG2C_TransNotify roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransNotify.cs.meta new file mode 100644 index 00000000..983d79ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8773e51c615dce94aa61460ea44ea81e +timeCreated: 1611404079 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs new file mode 100644 index 00000000..51c77b3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs @@ -0,0 +1,39 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_TransSkillNotfiy + { + public static void Process(PtcG2C_TransSkillNotfiy roPtc) + { + bool flag = XSingleton.singleton.Player == null || XSingleton.singleton.Player.SkillMgr == null; + if (!flag) + { + XBattleSkillDocument specificDocument = XDocuments.GetSpecificDocument(XBattleSkillDocument.uuID); + for (int i = 0; i < roPtc.Data.skillhash.Count; i++) + { + bool flag2 = roPtc.Data.skilllevel[i] == 0u; + if (!flag2) + { + specificDocument.SetSkillLevel(roPtc.Data.skillhash[i], roPtc.Data.skilllevel[i]); + XSkillCore skill = XSingleton.singleton.Player.SkillMgr.GetSkill(roPtc.Data.skillhash[i]); + bool flag3 = skill != null; + if (flag3) + { + skill.InitCoreData(false); + } + } + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA && DlgBase.singleton.SkillHandler != null; + if (flag4) + { + DlgBase.singleton.SkillHandler.DelayRefreshAddBtn(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs.meta new file mode 100644 index 00000000..07a398c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TransSkillNotfiy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eecae5cff844f9e4d821a7c0c26899e0 +timeCreated: 1611404799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TssSdkAntiDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TssSdkAntiDataNtf.cs new file mode 100644 index 00000000..33aa6b90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TssSdkAntiDataNtf.cs @@ -0,0 +1,14 @@ +using System; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_TssSdkAntiDataNtf + { + public static void Process(PtcG2C_TssSdkAntiDataNtf roPtc) + { + XSingleton.singleton.XTssSdk.OnRcvWhichNeedToSendClientSdk(roPtc.Data.anti_data, roPtc.Data.anti_data_len); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TssSdkAntiDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TssSdkAntiDataNtf.cs.meta new file mode 100644 index 00000000..7747d220 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_TssSdkAntiDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fbce8a243ee7f2a4c82526828f12382a +timeCreated: 1611404932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitAppear.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitAppear.cs new file mode 100644 index 00000000..714a8ab2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitAppear.cs @@ -0,0 +1,95 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_UnitAppear + { + private static Queue delayQueue = new Queue(); + + private static XTimerMgr.ElapsedEventHandler processCb = null; + + private static PtcG2C_UnitAppear currentPtc = null; + + private static int currentProcessCount = 0; + + private static bool processImmediate = true; + + public static void Process(PtcG2C_UnitAppear roPtc) + { + bool flag = !XSingleton.singleton.SyncMode; + if (!flag) + { + bool flag2 = Process_PtcG2C_UnitAppear.processImmediate; + if (flag2) + { + for (int i = 0; i < roPtc.Data.units.Count; i++) + { + XSingleton.singleton.CreateEntityByUnitAppearance(roPtc.Data.units[i]); + } + } + else + { + Protocol.ManualReturn(); + bool flag3 = Process_PtcG2C_UnitAppear.processCb == null; + if (flag3) + { + Process_PtcG2C_UnitAppear.processCb = new XTimerMgr.ElapsedEventHandler(Process_PtcG2C_UnitAppear.DelayProcess); + } + bool flag4 = Process_PtcG2C_UnitAppear.currentPtc != null; + if (flag4) + { + Process_PtcG2C_UnitAppear.delayQueue.Enqueue(roPtc); + } + else + { + Process_PtcG2C_UnitAppear.currentPtc = roPtc; + Process_PtcG2C_UnitAppear.currentProcessCount = 0; + } + XSingleton.singleton.SetTimer(0.01f, Process_PtcG2C_UnitAppear.processCb, null); + } + } + } + + private static void DelayProcess(object o) + { + bool flag = Process_PtcG2C_UnitAppear.currentPtc != null; + if (flag) + { + bool flag2 = Process_PtcG2C_UnitAppear.currentProcessCount < Process_PtcG2C_UnitAppear.currentPtc.Data.units.Count; + if (flag2) + { + UnitAppearance unit = Process_PtcG2C_UnitAppear.currentPtc.Data.units[Process_PtcG2C_UnitAppear.currentProcessCount]; + XSingleton.singleton.CreateEntityByUnitAppearance(unit); + Process_PtcG2C_UnitAppear.currentProcessCount++; + bool flag3 = Process_PtcG2C_UnitAppear.currentProcessCount < Process_PtcG2C_UnitAppear.currentPtc.Data.units.Count; + if (flag3) + { + XSingleton.singleton.SetTimer(0.01f, Process_PtcG2C_UnitAppear.processCb, null); + } + else + { + bool flag4 = Process_PtcG2C_UnitAppear.delayQueue.Count > 0; + if (flag4) + { + Process_PtcG2C_UnitAppear.currentPtc = Process_PtcG2C_UnitAppear.delayQueue.Dequeue(); + Process_PtcG2C_UnitAppear.currentProcessCount = 0; + XSingleton.singleton.SetTimer(0.01f, Process_PtcG2C_UnitAppear.processCb, null); + } + else + { + bool flag5 = Process_PtcG2C_UnitAppear.currentPtc != null; + if (flag5) + { + Protocol.ReturnProtocolThread(Process_PtcG2C_UnitAppear.currentPtc); + Process_PtcG2C_UnitAppear.currentPtc = null; + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitAppear.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitAppear.cs.meta new file mode 100644 index 00000000..b20ac953 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitAppear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4af5f1724a8b8c141a4e99757c8fda48 +timeCreated: 1611403685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitDisappear.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitDisappear.cs new file mode 100644 index 00000000..44e11026 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitDisappear.cs @@ -0,0 +1,27 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_UnitDisappear + { + public static void Process(PtcG2C_UnitDisappear roPtc) + { + XEntity xentity = XSingleton.singleton.GetEntityConsiderDeath(roPtc.Data.uID); + bool flag = xentity != null && xentity.IsRole; + if (flag) + { + XSingleton.singleton.DestroyEntity(xentity); + } + else + { + xentity = XSingleton.singleton.GetEntity(roPtc.Data.uID); + bool flag2 = xentity != null; + if (flag2) + { + XSingleton.singleton.DestroyEntity(xentity); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitDisappear.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitDisappear.cs.meta new file mode 100644 index 00000000..c9ef5f34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UnitDisappear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 257e98ae54a2d9e4fb26d0c290d2b273 +timeCreated: 1611403465 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs new file mode 100644 index 00000000..d196ea28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs @@ -0,0 +1,15 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_UpdateBuyGoldAndFatigueInfo + { + public static void Process(PtcG2C_UpdateBuyGoldAndFatigueInfo roPtc) + { + DlgBase.singleton.UpdatePlayerBuyInfo(roPtc.Data); + XPurchaseDocument specificDocument = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + specificDocument.InitPurchaseInfo(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta new file mode 100644 index 00000000..9666fc96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8ee63d869208464dac0d11a5c98b733 +timeCreated: 1611404407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateDisplayItems.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateDisplayItems.cs new file mode 100644 index 00000000..cf36784b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateDisplayItems.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_UpdateDisplayItems + { + public static void Process(PtcG2C_UpdateDisplayItems roPtc) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + specificDocument.UpdateDisplay(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateDisplayItems.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateDisplayItems.cs.meta new file mode 100644 index 00000000..ceb965ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateDisplayItems.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31581b5999e8ed54d9c3faa622b0bc66 +timeCreated: 1611403543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateGuildArenaState.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateGuildArenaState.cs new file mode 100644 index 00000000..f893dcb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateGuildArenaState.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_UpdateGuildArenaState + { + public static void Process(PtcG2C_UpdateGuildArenaState roPtc) + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.OnUpdateGuildArenaState(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateGuildArenaState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateGuildArenaState.cs.meta new file mode 100644 index 00000000..1e2deec5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateGuildArenaState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c19bc0174513ea44991931f4c6d53dd8 +timeCreated: 1611404490 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdatePayInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdatePayInfo.cs new file mode 100644 index 00000000..9c840dd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdatePayInfo.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_UpdatePayInfo + { + public static void Process(PtcG2C_UpdatePayInfo roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdatePayInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdatePayInfo.cs.meta new file mode 100644 index 00000000..6161146c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdatePayInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb2929b9fee47ed45b45af3d3bac506c +timeCreated: 1611404545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateStageInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateStageInfoNtf.cs new file mode 100644 index 00000000..be49ac93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateStageInfoNtf.cs @@ -0,0 +1,19 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_UpdateStageInfoNtf + { + public static void Process(PtcG2C_UpdateStageInfoNtf roPtc) + { + XSingleton.singleton.Init(roPtc.Data.Stages); + XAbyssPartyDocument specificDocument = XDocuments.GetSpecificDocument(XAbyssPartyDocument.uuID); + bool flag = roPtc.Data.Stages.absparty != null; + if (flag) + { + specificDocument.SetAbyssIndex(roPtc.Data.Stages.absparty.aby); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateStageInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateStageInfoNtf.cs.meta new file mode 100644 index 00000000..016d588e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateStageInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 10bba87d310f3c74a9f6cce40818db55 +timeCreated: 1611403219 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs new file mode 100644 index 00000000..610b1b30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_UpdateTaskStatus + { + public static void Process(PtcG2C_UpdateTaskStatus roPtc) + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + specificDocument.OnTaskStatusUpdate(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs.meta new file mode 100644 index 00000000..a53e853d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateTaskStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec3079eb7e1084648b03aa3c6707722c +timeCreated: 1611404787 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateVoipRoomMemberNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateVoipRoomMemberNtf.cs new file mode 100644 index 00000000..9e3927ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateVoipRoomMemberNtf.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_UpdateVoipRoomMemberNtf + { + public static void Process(PtcG2C_UpdateVoipRoomMemberNtf roPtc) + { + XApolloDocument specificDocument = XDocuments.GetSpecificDocument(XApolloDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.OnMembersInfoChange(roPtc.Data.dataList); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateVoipRoomMemberNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateVoipRoomMemberNtf.cs.meta new file mode 100644 index 00000000..0b622a62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_UpdateVoipRoomMemberNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2433484cdb49c084eb37a4d554d1456a +timeCreated: 1611403460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs new file mode 100644 index 00000000..79946342 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_VsPayReviveNtf + { + public static void Process(PtcG2C_VsPayReviveNtf roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.NotifyVSPayRevive(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs.meta new file mode 100644 index 00000000..f54320ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_VsPayReviveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5dc089ada3e461a4ab3fd291468de034 +timeCreated: 1611403807 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WarningRandomNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WarningRandomNtf.cs new file mode 100644 index 00000000..4a2ef13c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WarningRandomNtf.cs @@ -0,0 +1,23 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_WarningRandomNtf + { + public static void Process(PtcG2C_WarningRandomNtf roPtc) + { + XEntity entity = XSingleton.singleton.GetEntity(roPtc.Data.Firer); + bool flag = entity == null; + if (!flag) + { + XSkillCore skill = entity.SkillMgr.GetSkill(roPtc.Data.skill); + bool flag2 = skill != null; + if (flag2) + { + skill.BuildRandomWarningPos(roPtc.Data.WarningItems); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WarningRandomNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WarningRandomNtf.cs.meta new file mode 100644 index 00000000..9c46412d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WarningRandomNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 42f15c03afcbd994b8a5502fb367e7dd +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WatchBattleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WatchBattleInfoNtf.cs new file mode 100644 index 00000000..3eaa278a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WatchBattleInfoNtf.cs @@ -0,0 +1,23 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_WatchBattleInfoNtf + { + public static void Process(PtcG2C_WatchBattleInfoNtf roPtc) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SpectateHandler.OnMessageChange(roPtc.Data.watchNum, roPtc.Data.commendNum); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.OnSpectateMessageChange(roPtc.Data.watchNum, roPtc.Data.commendNum); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WatchBattleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WatchBattleInfoNtf.cs.meta new file mode 100644 index 00000000..c79d214e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WatchBattleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fec628e43f307c8488b0f5dfa40124c4 +timeCreated: 1611404943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingCarNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingCarNtf.cs new file mode 100644 index 00000000..a08d2964 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingCarNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WeddingCarNtf + { + public static void Process(PtcG2C_WeddingCarNtf roPtc) + { + XWeddingDocument.Doc.OnGetWeddingCarNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingCarNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingCarNtf.cs.meta new file mode 100644 index 00000000..fcf54dd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingCarNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9eb70e51d18188341a9b03f436b7eee0 +timeCreated: 1611404242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingEventNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingEventNtf.cs new file mode 100644 index 00000000..b28d30a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingEventNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WeddingEventNtf + { + public static void Process(PtcG2C_WeddingEventNtf roPtc) + { + XWeddingDocument.Doc.WeddingSceneEventNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingEventNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingEventNtf.cs.meta new file mode 100644 index 00000000..f9a5d06a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingEventNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a351f30bf853d234796080cd12a4208f +timeCreated: 1611404260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingLoadInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingLoadInfoNtf.cs new file mode 100644 index 00000000..ae76e917 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingLoadInfoNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WeddingLoadInfoNtf + { + public static void Process(PtcG2C_WeddingLoadInfoNtf roPtc) + { + XWeddingDocument.Doc.OnWeddingLoadingInfoNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingLoadInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingLoadInfoNtf.cs.meta new file mode 100644 index 00000000..d4074d96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingLoadInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d35f09c5d76496042b0a4f43c6807047 +timeCreated: 1611404598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingStateNtf.cs new file mode 100644 index 00000000..ad2e7747 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingStateNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WeddingStateNtf + { + public static void Process(PtcG2C_WeddingStateNtf roPtc) + { + XWeddingDocument.Doc.WeddingStateNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingStateNtf.cs.meta new file mode 100644 index 00000000..b36cec82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeddingStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff252cd4a8007c741a59d7a9be9d7615 +timeCreated: 1611404946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs new file mode 100644 index 00000000..5fd08c07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WeekEnd4v4RoleDataNtf + { + public static void Process(PtcG2C_WeekEnd4v4RoleDataNtf roPtc) + { + XWeekendPartyDocument specificDocument = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + specificDocument.OnWeekendPartyBattleInfoNtf(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta new file mode 100644 index 00000000..443c5707 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b5fd93bc26131a4f846855ff5cadd66 +timeCreated: 1611404095 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WordNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WordNotify.cs new file mode 100644 index 00000000..77d8d53a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WordNotify.cs @@ -0,0 +1,14 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_WordNotify + { + public static void Process(PtcG2C_WordNotify roPtc) + { + XSingleton.singleton.ShowSystemTip(roPtc.Data.hint, "fece00"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WordNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WordNotify.cs.meta new file mode 100644 index 00000000..a5d47e59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WordNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9878a7461a746a149af656431b88d647 +timeCreated: 1611404190 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs new file mode 100644 index 00000000..bfd6f39e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WorldBossAttrNtf + { + public static void Process(PtcG2C_WorldBossAttrNtf roPtc) + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.OnGetAttrCount(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs.meta new file mode 100644 index 00000000..0896d08d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossAttrNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac1a901f6e2387842a344da8636792ef +timeCreated: 1611404328 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs new file mode 100644 index 00000000..03244993 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf + { + public static void Process(PtcG2C_WorldBossGuildAddAttrSyncClientNtf roPtc) + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.ReceiveGuildAttAttrSync(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta new file mode 100644 index 00000000..7bc3c5e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41d04ff5d763e3e4cb8dba729e1640ee +timeCreated: 1611403636 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossStateNtf.cs new file mode 100644 index 00000000..72f10d29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossStateNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WorldBossStateNtf + { + public static void Process(PtcG2C_WorldBossStateNtf roPtc) + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.OnWorldBossStateNtf(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossStateNtf.cs.meta new file mode 100644 index 00000000..7918ab59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldBossStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36112ce56e528fa42baabca289a7e6f5 +timeCreated: 1611403561 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldChannelLeftTimesNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldChannelLeftTimesNtf.cs new file mode 100644 index 00000000..585f2739 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldChannelLeftTimesNtf.cs @@ -0,0 +1,14 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcG2C_WorldChannelLeftTimesNtf + { + public static void Process(PtcG2C_WorldChannelLeftTimesNtf roPtc) + { + DlgBase.singleton._worldSpeadTimes = roPtc.Data.leftTimes; + DlgBase.singleton.RefeshWorldSpeakTimes(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldChannelLeftTimesNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldChannelLeftTimesNtf.cs.meta new file mode 100644 index 00000000..d461deb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldChannelLeftTimesNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a84d52893a0d20640afd1e9792444278 +timeCreated: 1611404294 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldLevelNtf2Client.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldLevelNtf2Client.cs new file mode 100644 index 00000000..fb385e76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldLevelNtf2Client.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_WorldLevelNtf2Client + { + public static void Process(PtcG2C_WorldLevelNtf2Client roPtc) + { + XBackFlowDocument.Doc.OnGetWorldLevelNotify(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldLevelNtf2Client.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldLevelNtf2Client.cs.meta new file mode 100644 index 00000000..6e7ecc6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_WorldLevelNtf2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aff157ca15aade143899d7dd2fb58426 +timeCreated: 1611404348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs new file mode 100644 index 00000000..5d9c92f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs @@ -0,0 +1,19 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcG2C_fastMBDismissNtf + { + public static void Process(PtcG2C_fastMBDismissNtf roPtc) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_QUICKBATTLE_DISMISS", new object[] + { + roPtc.Data.quitRoleName + }), "fece00"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs.meta new file mode 100644 index 00000000..565a6498 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_fastMBDismissNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bec3a39c0ac85914bb9dbc1a416b4175 +timeCreated: 1611404481 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs new file mode 100644 index 00000000..b9b9a26d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_guildcamppartyNotify + { + public static void Process(PtcG2C_guildcamppartyNotify roPtc) + { + XGuildCollectDocument specificDocument = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + bool flag = roPtc.Data.notify_type == 0u; + if (flag) + { + specificDocument.SetActivityState(false); + } + else + { + specificDocument.SetTime(roPtc.Data.left_time); + specificDocument.SetActivityState(true); + specificDocument.SetLotteryMachineState(roPtc.Data.lottery_list.Count != 0, false); + specificDocument.SyncNpcList(roPtc.Data.sprite_list); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs.meta new file mode 100644 index 00000000..28dddf52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_guildcamppartyNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 230e8b5dbe270f449b38397fe2594a61 +timeCreated: 1611403426 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synGuildInheritExp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synGuildInheritExp.cs new file mode 100644 index 00000000..0c4661ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synGuildInheritExp.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_synGuildInheritExp + { + public static void Process(PtcG2C_synGuildInheritExp roPtc) + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + specificDocument.SynInheritExp(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synGuildInheritExp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synGuildInheritExp.cs.meta new file mode 100644 index 00000000..f3116c1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synGuildInheritExp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77518806e02300b4caeb731ab4ddc7fd +timeCreated: 1611403953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synguildarenadisplace.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synguildarenadisplace.cs new file mode 100644 index 00000000..0dea9650 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synguildarenadisplace.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcG2C_synguildarenadisplace + { + public static void Process(PtcG2C_synguildarenadisplace roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synguildarenadisplace.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synguildarenadisplace.cs.meta new file mode 100644 index 00000000..50815c76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcG2C_synguildarenadisplace.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 016844719bacfef4888fe0ddbdf294c1 +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_AnswerAckNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_AnswerAckNtf.cs new file mode 100644 index 00000000..08287b7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_AnswerAckNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_AnswerAckNtf + { + public static void Process(PtcM2C_AnswerAckNtf roPtc) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.AddAnswer2List(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_AnswerAckNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_AnswerAckNtf.cs.meta new file mode 100644 index 00000000..80e97491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_AnswerAckNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b51b56d70a0b33a4ba536a742aa38d4d +timeCreated: 1611404394 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs new file mode 100644 index 00000000..fea8c9a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_ArenaStarDataNtf + { + public static void Process(PtcM2C_ArenaStarDataNtf roPtc) + { + XHallFameDocument.Doc.OnGetSupportInfo(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs.meta new file mode 100644 index 00000000..ed6f3f6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ArenaStarDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06647384da29fd849b92b6a7b82434f6 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_BlackListNtfNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_BlackListNtfNew.cs new file mode 100644 index 00000000..77575b48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_BlackListNtfNew.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_BlackListNtfNew + { + public static void Process(PtcM2C_BlackListNtfNew roPtc) + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.RefreshBlockFriendData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_BlackListNtfNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_BlackListNtfNew.cs.meta new file mode 100644 index 00000000..5efbc69d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_BlackListNtfNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fc603627192c6640aa21beadc40472d +timeCreated: 1611403403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs new file mode 100644 index 00000000..eb853a7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs @@ -0,0 +1,25 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_CheckQueuingNtf + { + public static void Process(PtcM2C_CheckQueuingNtf roPtc) + { + ErrorCode errorcode = roPtc.Data.errorcode; + if (errorcode != ErrorCode.ERR_SUCCESS) + { + if (errorcode == ErrorCode.ERR_ACCOUNT_QUEUING) + { + XSingleton.singleton.WaitForServerQueue(roPtc.Data.rolecount, roPtc.Data.timeleft); + } + } + else + { + XSingleton.singleton.EnterToSelectChar(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs.meta new file mode 100644 index 00000000..1b685303 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CheckQueuingNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e92fd69cee54cd4db91a53444ea7f01 +timeCreated: 1611403905 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs new file mode 100644 index 00000000..0b5badbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_CrossGvgRoomStateNtf + { + public static void Process(PtcM2C_CrossGvgRoomStateNtf roPtc) + { + XCrossGVGDocument specificDocument = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + specificDocument.NotifyCrossGVGRoomState(roPtc.Data.room, roPtc.Data.record); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs.meta new file mode 100644 index 00000000..d2c20159 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgRoomStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59384603afafcba488e021d42fc9cb92 +timeCreated: 1611403763 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs new file mode 100644 index 00000000..25a237df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_CrossGvgStateNtf + { + public static void Process(PtcM2C_CrossGvgStateNtf roPtc) + { + XCrossGVGDocument specificDocument = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + specificDocument.SynCrossGVGTimeState(roPtc.Data.state); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs.meta new file mode 100644 index 00000000..32c530c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CrossGvgStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d3b896626871764c989ac68af9cb834 +timeCreated: 1611404000 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CustomBattleGMNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CustomBattleGMNotify.cs new file mode 100644 index 00000000..79086f95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CustomBattleGMNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_CustomBattleGMNotify + { + public static void Process(PtcM2C_CustomBattleGMNotify roPtc) + { + XCustomBattleDocument specificDocument = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + specificDocument.IsCreateGM = roPtc.Data.isgmcreate; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CustomBattleGMNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CustomBattleGMNotify.cs.meta new file mode 100644 index 00000000..9864ed04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_CustomBattleGMNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f00378ac4d166a428eb1a3b533f1721 +timeCreated: 1611404028 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DERankChangNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DERankChangNtf.cs new file mode 100644 index 00000000..6cb0b40b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DERankChangNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_DERankChangNtf + { + public static void Process(PtcM2C_DERankChangNtf roPtc) + { + XDragonCrusadeDocument specificDocument = XDocuments.GetSpecificDocument(XDragonCrusadeDocument.uuID); + specificDocument.OnNotifyResult(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DERankChangNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DERankChangNtf.cs.meta new file mode 100644 index 00000000..d24fc4d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DERankChangNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: def9769ba68b1744aa5d4f147ac37ab7 +timeCreated: 1611404690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DailyTaskEventNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DailyTaskEventNtf.cs new file mode 100644 index 00000000..300301f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DailyTaskEventNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_DailyTaskEventNtf + { + public static void Process(PtcM2C_DailyTaskEventNtf roPtc) + { + XGuildDailyTaskDocument.Doc.OnGetDailyTaskEvent(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DailyTaskEventNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DailyTaskEventNtf.cs.meta new file mode 100644 index 00000000..e39e9ab8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DailyTaskEventNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a200a555141ad343b94d8c55f7dde8b +timeCreated: 1611403308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildNameNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildNameNtf.cs new file mode 100644 index 00000000..9c1ca24c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildNameNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_DragonGuildNameNtf + { + public static void Process(PtcM2C_DragonGuildNameNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildNameNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildNameNtf.cs.meta new file mode 100644 index 00000000..cc855cec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildNameNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af6a5edaede814f4f9ef64adb81e7f3d +timeCreated: 1611404344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildSettingChanged.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildSettingChanged.cs new file mode 100644 index 00000000..3f194263 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildSettingChanged.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_DragonGuildSettingChanged + { + public static void Process(PtcM2C_DragonGuildSettingChanged roPtc) + { + XDragonGuildApproveDocument specificDocument = XDocuments.GetSpecificDocument(XDragonGuildApproveDocument.uuID); + specificDocument.OnSetApprove(new DragonGuildApproveSetting + { + autoApprove = (roPtc.Data.needApproval == 0u), + PPT = roPtc.Data.recuitPPT + }); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildSettingChanged.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildSettingChanged.cs.meta new file mode 100644 index 00000000..4f046ef2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_DragonGuildSettingChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2804567a91a83fc4c9af3782de98681a +timeCreated: 1611403473 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs new file mode 100644 index 00000000..749176dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs @@ -0,0 +1,14 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcM2C_FastMBConfirmM2CNtf + { + public static void Process(PtcM2C_FastMBConfirmM2CNtf roPtc) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs.meta new file mode 100644 index 00000000..7a3fc45d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FastMBConfirmM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e1c27f0fc972264780a56fee200c51f +timeCreated: 1611404240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs new file mode 100644 index 00000000..b2924396 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_FriendDegreeUpNtfNew + { + public static void Process(PtcM2C_FriendDegreeUpNtfNew roPtc) + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.UpdateFriendInfo(roPtc.Data.roleid, roPtc.Data.daydegree, roPtc.Data.alldegree); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument2.RefreshMyTeamView(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs.meta new file mode 100644 index 00000000..6a69a3c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendDegreeUpNtfNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ce5fe0ddf9de8543b1bbb5d54322078 +timeCreated: 1611403504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs new file mode 100644 index 00000000..cbe4d952 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_FriendOpNtfNew + { + public static void Process(PtcM2C_FriendOpNtfNew roPtc) + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.OnFriendOpNotify(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs.meta new file mode 100644 index 00000000..30ee2765 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_FriendOpNtfNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d46c969fe205c14fa02861662993376 +timeCreated: 1611403193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs new file mode 100644 index 00000000..5b38a27b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GardenBanquetNtf + { + public static void Process(PtcM2C_GardenBanquetNtf roPtc) + { + XHomeCookAndPartyDocument.Doc.BeginToFeast(roPtc.Data.banquet_id); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs.meta new file mode 100644 index 00000000..97f39f92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GardenBanquetNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5698903aeaf3c5d4f868a87d46965862 +timeCreated: 1611403744 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_Get520FestivalRedPacket.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_Get520FestivalRedPacket.cs new file mode 100644 index 00000000..22487c08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_Get520FestivalRedPacket.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_Get520FestivalRedPacket + { + public static void Process(PtcM2C_Get520FestivalRedPacket roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_Get520FestivalRedPacket.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_Get520FestivalRedPacket.cs.meta new file mode 100644 index 00000000..3fd5eef6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_Get520FestivalRedPacket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0eb650bbf97a78419a2f119e62fdcf7 +timeCreated: 1611404589 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs new file mode 100644 index 00000000..0f01d623 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs @@ -0,0 +1,13 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcM2C_GiftIBSucessNtf + { + public static void Process(PtcM2C_GiftIBSucessNtf roPtc) + { + DlgBase.singleton.OnResPresent(roPtc.Data.openid, roPtc.Data.name); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs.meta new file mode 100644 index 00000000..73119b86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GiftIBSucessNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de250dd41a4182b48af2d4935aaa7301 +timeCreated: 1611404685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs new file mode 100644 index 00000000..e7e9bcee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GmfJoinBattleM2CReq + { + public static void Process(PtcM2C_GmfJoinBattleM2CReq roPtc) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnGmfJoinBattle(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs.meta new file mode 100644 index 00000000..3ffef795 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GmfJoinBattleM2CReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6994f37e63f6d74e9da786c84133d36 +timeCreated: 1611404398 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GoalAwardsRedPoint.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GoalAwardsRedPoint.cs new file mode 100644 index 00000000..75131bbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GoalAwardsRedPoint.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GoalAwardsRedPoint + { + public static void Process(PtcM2C_GoalAwardsRedPoint roPtc) + { + XTargetRewardDocument specificDocument = XDocuments.GetSpecificDocument(XTargetRewardDocument.uuID); + specificDocument.SetRedPointList(roPtc.Data.typelist); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GoalAwardsRedPoint.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GoalAwardsRedPoint.cs.meta new file mode 100644 index 00000000..e9fc018d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GoalAwardsRedPoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0a55038503935a448a1b3cb0194d7d2 +timeCreated: 1611404588 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatApply.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatApply.cs new file mode 100644 index 00000000..7dbd659c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatApply.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GroupChatApply + { + public static void Process(PtcM2C_GroupChatApply roPtc) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.bShowMotion = true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatApply.cs.meta new file mode 100644 index 00000000..06ec4c99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9aaf5a55d84e67143be51e74b7cada62 +timeCreated: 1611404202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatDismiss.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatDismiss.cs new file mode 100644 index 00000000..541c9a49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatDismiss.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GroupChatDismiss + { + public static void Process(PtcM2C_GroupChatDismiss roPtc) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ResDismissGroup(roPtc.Data.groupchatID, roPtc.Data.roleid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatDismiss.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatDismiss.cs.meta new file mode 100644 index 00000000..c244613b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatDismiss.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a64b6d0e8764084e95704ab8b3f0907 +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatIssueCount.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatIssueCount.cs new file mode 100644 index 00000000..06160f60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatIssueCount.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GroupChatIssueCount + { + public static void Process(PtcM2C_GroupChatIssueCount roPtc) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.SysnGroupChatIssueCount(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatIssueCount.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatIssueCount.cs.meta new file mode 100644 index 00000000..4d6cdd3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatIssueCount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b22712f11d03e04a9525c98c623c386 +timeCreated: 1611403498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatManager.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatManager.cs new file mode 100644 index 00000000..c70821ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatManager.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GroupChatManager + { + public static void Process(PtcM2C_GroupChatManager roPtc) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ResChangePlayer(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatManager.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatManager.cs.meta new file mode 100644 index 00000000..e921eb1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fbd3a230c364f0f4fb0e9127edbd1ac1 +timeCreated: 1611404933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatQuit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatQuit.cs new file mode 100644 index 00000000..95a8945c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatQuit.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GroupChatQuit + { + public static void Process(PtcM2C_GroupChatQuit roPtc) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ResQuitGroup(roPtc.Data.groupchatID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatQuit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatQuit.cs.meta new file mode 100644 index 00000000..344640e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GroupChatQuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8862a1d887188fa4ebaed17a77c3aeeb +timeCreated: 1611404083 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildAuctItemTimeFresh.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildAuctItemTimeFresh.cs new file mode 100644 index 00000000..442de044 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildAuctItemTimeFresh.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildAuctItemTimeFresh + { + public static void Process(PtcM2C_GuildAuctItemTimeFresh roPtc) + { + AuctionHouseDocument specificDocument = XDocuments.GetSpecificDocument(AuctionHouseDocument.uuID); + specificDocument.QueryRefreshGuildUI((int)roPtc.Data.auct_type); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildAuctItemTimeFresh.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildAuctItemTimeFresh.cs.meta new file mode 100644 index 00000000..5ba8b84b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildAuctItemTimeFresh.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 676715e8139b5474bb7ddf4ccc38210f +timeCreated: 1611403857 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBestCardsNtfMs.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBestCardsNtfMs.cs new file mode 100644 index 00000000..53a09bc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBestCardsNtfMs.cs @@ -0,0 +1,35 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildBestCardsNtfMs + { + public static void Process(PtcM2C_GuildBestCardsNtfMs roPtc) + { + bool flag = roPtc.Data.match_type == 1u; + if (flag) + { + XJokerKingDocument specificDocument = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + specificDocument.SetBestJocker(roPtc.Data.bestcards, roPtc.Data.bestrole); + } + else + { + bool flag2 = roPtc.Data.type == 0u; + if (flag2) + { + XGuildJokerDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + specificDocument2.SetBestCard(roPtc.Data.bestcards, roPtc.Data.bestrole); + } + else + { + bool flag3 = roPtc.Data.type == 1u; + if (flag3) + { + XGuildJockerMatchDocument specificDocument3 = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + specificDocument3.SetBestJocker(roPtc.Data.bestcards, roPtc.Data.bestrole); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBestCardsNtfMs.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBestCardsNtfMs.cs.meta new file mode 100644 index 00000000..b5b63d07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBestCardsNtfMs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 116ac68b4e805c94a85651c82cc9ef8a +timeCreated: 1611403239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs new file mode 100644 index 00000000..87126dfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildBonusGetAll + { + public static void Process(PtcM2C_GuildBonusGetAll roPtc) + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.ReceiveGuildBonusGetAll(roPtc.Data.bonusID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs.meta new file mode 100644 index 00000000..e8de9ba4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBonusGetAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 320a77aec9625f94181c33fa5950367a +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffCDParamNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffCDParamNtf.cs new file mode 100644 index 00000000..5fa0660f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffCDParamNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildBuffCDParamNtf + { + public static void Process(PtcM2C_GuildBuffCDParamNtf roPtc) + { + XGuildResContentionBuffDocument.Doc.OnGetGuildBuffCD(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffCDParamNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffCDParamNtf.cs.meta new file mode 100644 index 00000000..2e78abdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffCDParamNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8c121824eda172448a738c7c7cc5742 +timeCreated: 1611404640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleInfoNtf.cs new file mode 100644 index 00000000..4d6a4dc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleInfoNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildBuffSimpleInfoNtf + { + public static void Process(PtcM2C_GuildBuffSimpleInfoNtf roPtc) + { + XGuildResContentionBuffDocument.Doc.OnGetGuildBuffList(roPtc.Data.buff); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleInfoNtf.cs.meta new file mode 100644 index 00000000..959ab238 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf17b14595db4794eb5f6283c0b13198 +timeCreated: 1611404580 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleItemNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleItemNtf.cs new file mode 100644 index 00000000..460503ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleItemNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildBuffSimpleItemNtf + { + public static void Process(PtcM2C_GuildBuffSimpleItemNtf roPtc) + { + XGuildResContentionBuffDocument.Doc.OnGetOwnedGuildBuffList(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleItemNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleItemNtf.cs.meta new file mode 100644 index 00000000..be32e939 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildBuffSimpleItemNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 458ff94af0eea9a48990539dc2f27135 +timeCreated: 1611403647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardMatchNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardMatchNtf.cs new file mode 100644 index 00000000..7b8d95aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardMatchNtf.cs @@ -0,0 +1,42 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildCardMatchNtf + { + public static void Process(PtcM2C_GuildCardMatchNtf roPtc) + { + bool flag = roPtc.Data.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(roPtc.Data.errorcode); + } + else + { + bool flag2 = roPtc.Data.match_type == 1u; + if (flag2) + { + XJokerKingDocument specificDocument = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + specificDocument.ReceiveJokerKingMatchInfo(roPtc.Data); + } + else + { + XGuildJockerMatchDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + specificDocument2.ReceiveGuildJokerMatchInfo(roPtc.Data); + XSingleton.singleton.AddGreenLog(string.Format("op: {0}, state: {1}, round: {2}, result: {3}, timeleft: {4}, errorcode: {5}", new object[] + { + roPtc.Data.op.ToString(), + roPtc.Data.state.ToString(), + roPtc.Data.round.ToString(), + roPtc.Data.result.ToString(), + roPtc.Data.timeleft.ToString(), + roPtc.Data.errorcode.ToString() + }), null, null, null, null, null); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardMatchNtf.cs.meta new file mode 100644 index 00000000..8c842b11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f206e73dbc5d6c34980f14ee04b5805d +timeCreated: 1611404841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs new file mode 100644 index 00000000..e2897165 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs @@ -0,0 +1,35 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildCardRankNtf + { + public static void Process(PtcM2C_GuildCardRankNtf roPtc) + { + bool flag = roPtc.Data.type == 0u || roPtc.Data.type == 1u; + if (flag) + { + XGuildJokerDocument specificDocument = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + specificDocument.ReceiveJockerRank(roPtc.Data.name, roPtc.Data.point); + } + else + { + bool flag2 = roPtc.Data.type == 2u; + if (flag2) + { + XGuildJockerMatchDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + specificDocument2.ReceiveJokerRank(roPtc.Data.name, roPtc.Data.point); + } + else + { + bool flag3 = roPtc.Data.type == 3u; + if (flag3) + { + XJokerKingDocument specificDocument3 = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + specificDocument3.ReceiveJokerRank(roPtc.Data.name, roPtc.Data.point); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs.meta new file mode 100644 index 00000000..f74f79fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCardRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25ce86be1b7014147b806bd51f9e697d +timeCreated: 1611403466 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCastFeatsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCastFeatsNtf.cs new file mode 100644 index 00000000..e0dac191 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCastFeatsNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildCastFeatsNtf + { + public static void Process(PtcM2C_GuildCastFeatsNtf roPtc) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.OnFeatsChange(roPtc.Data.feats); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCastFeatsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCastFeatsNtf.cs.meta new file mode 100644 index 00000000..529cef44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildCastFeatsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c57f375c9f9ce7e42a0de07193dbc81a +timeCreated: 1611404506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSchoolHallUpdatePoint.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSchoolHallUpdatePoint.cs new file mode 100644 index 00000000..2ec6fe12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSchoolHallUpdatePoint.cs @@ -0,0 +1,19 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildSchoolHallUpdatePoint + { + public static void Process(PtcM2C_GuildSchoolHallUpdatePoint roPtc) + { + XGuildGrowthDocument specificDocument = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + specificDocument.SetPoint(roPtc.Data.hallpoint, roPtc.Data.schoolpoint); + bool flag = roPtc.Data.roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + specificDocument.CheckShowItemGet(roPtc.Data.deltahallpoint, roPtc.Data.deltaschoolpoint); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSchoolHallUpdatePoint.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSchoolHallUpdatePoint.cs.meta new file mode 100644 index 00000000..d7033feb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSchoolHallUpdatePoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e625668b74673445b91ff44ac90e662 +timeCreated: 1611403608 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSetingNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSetingNotify.cs new file mode 100644 index 00000000..36569d12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSetingNotify.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_GuildSetingNotify + { + public static void Process(PtcM2C_GuildSetingNotify roPtc) + { + XGuildHallDocument specificDocument = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + bool flag = roPtc.Data.annoucement != null; + if (flag) + { + specificDocument.OnAnnounceChanged(roPtc.Data.annoucement); + } + specificDocument.OnPortraitChanged(roPtc.Data.Icon); + XGuildApproveDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildApproveDocument.uuID); + specificDocument2.OnSetApprove(new GuildApproveSetting + { + autoApprove = (roPtc.Data.needApproval == 0), + PPT = roPtc.Data.RecuitPPT + }); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSetingNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSetingNotify.cs.meta new file mode 100644 index 00000000..37bcd4a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_GuildSetingNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2154e40b0a3db74c96dc21b57c84616 +timeCreated: 1611404704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HallIconMNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HallIconMNtf.cs new file mode 100644 index 00000000..99f7670e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HallIconMNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_HallIconMNtf + { + public static void Process(PtcM2C_HallIconMNtf roPtc) + { + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.OnHallIconNtfGet(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HallIconMNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HallIconMNtf.cs.meta new file mode 100644 index 00000000..39780891 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HallIconMNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 612fa01c8c211c4439145651f446d731 +timeCreated: 1611403837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs new file mode 100644 index 00000000..0388e4dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs @@ -0,0 +1,116 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_HintNotifyMS + { + public static void Process(PtcM2C_HintNotifyMS roPtc) + { + int i = 0; + while (i < roPtc.Data.systemid.Count) + { + XSysDefine xsysDefine = (XSysDefine)roPtc.Data.systemid[i]; + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 <= XSysDefine.XSys_Flower_Rank_Activity) + { + if (xsysDefine2 <= XSysDefine.XSys_Mentorship) + { + if (xsysDefine2 != XSysDefine.XSys_Qualifying) + { + if (xsysDefine2 != XSysDefine.XSys_Mentorship) + { + goto IL_222; + } + XMentorshipDocument.Doc.HasRedPointOnTasks = true; + } + else + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument.RedPoint = true; + } + } + else if (xsysDefine2 != XSysDefine.XSys_GuildDragon) + { + if (xsysDefine2 != XSysDefine.XSys_Home) + { + if (xsysDefine2 != XSysDefine.XSys_Flower_Rank_Activity) + { + goto IL_222; + } + XFlowerRankDocument specificDocument2 = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument2.CanGetActivityAward = !roPtc.Data.isremove; + } + else + { + HomeMainDocument.Doc.HomeMainRedDot = roPtc.Data.isremove; + } + } + else + { + XGuildDragonDocument specificDocument3 = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument3.bCanFight = !roPtc.Data.isremove; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_Wedding) + { + if (xsysDefine2 != XSysDefine.XSys_WeekNest) + { + if (xsysDefine2 != XSysDefine.XSys_Announcement) + { + if (xsysDefine2 != XSysDefine.XSys_Wedding) + { + goto IL_222; + } + XWeddingDocument.Doc.IsHadLivenessRedPoint = !roPtc.Data.isremove; + } + else + { + XAnnouncementDocument specificDocument4 = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + specificDocument4.RedPoint = !roPtc.Data.isremove; + } + } + else + { + XWeekNestDocument.Doc.HadRedDot = !roPtc.Data.isremove; + } + } + else if (xsysDefine2 != XSysDefine.XSys_GuildHall_SignIn) + { + if (xsysDefine2 != XSysDefine.XSys_GuildRelax_JokerMatch) + { + if (xsysDefine2 != XSysDefine.XSys_JockerKing) + { + goto IL_222; + } + XJokerKingDocument specificDocument5 = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + specificDocument5.bAvaiableIconWhenShow = !roPtc.Data.isremove; + } + else + { + XGuildJockerMatchDocument specificDocument6 = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + specificDocument6.bAvaiableIconWhenShow = !roPtc.Data.isremove; + } + } + else + { + XGuildSignInDocument specificDocument7 = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + specificDocument7.SignInSelection = 0u; + } + IL_23E: + bool flag = xsysDefine == XSysDefine.XSys_Mail; + if (flag) + { + DlgBase.singleton.ShowMailRedpoint(); + } + XSingleton.singleton.RecalculateRedPointState(xsysDefine, true); + i++; + continue; + IL_222: + XSingleton.singleton.SetSysRedPointState(xsysDefine, !roPtc.Data.isremove); + goto IL_23E; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs.meta new file mode 100644 index 00000000..44e77aab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_HintNotifyMS.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c30b962a82c2bd5498cfe7a8ea670a42 +timeCreated: 1611404496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs new file mode 100644 index 00000000..80c16dbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_IBGiftIconNtf + { + public static void Process(PtcM2C_IBGiftIconNtf roPtc) + { + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.presentStatus = roPtc.Data.status; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs.meta new file mode 100644 index 00000000..c491155b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IBGiftIconNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cef10cf3a7b61f946ad9dd9afcb47ebe +timeCreated: 1611404580 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs new file mode 100644 index 00000000..1e6510e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_IdipClearChatNtf + { + public static void Process(PtcM2C_IdipClearChatNtf roPtc) + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.ClearRoleMsg(roPtc.Data.roleid); + XVoiceQADocument specificDocument2 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument2.IDIPClearRoleMsg(roPtc.Data.roleid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs.meta new file mode 100644 index 00000000..b20cc373 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipClearChatNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0350266d19445447b1b13639f720cb9 +timeCreated: 1611404696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs new file mode 100644 index 00000000..c77ef6e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_IdipPunishInfoMsNtf + { + public static void Process(PtcM2C_IdipPunishInfoMsNtf roPtc) + { + XIDIPDocument specificDocument = XDocuments.GetSpecificDocument(XIDIPDocument.uuID); + specificDocument.DealWithIDIPTips(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs.meta new file mode 100644 index 00000000..3df3c912 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_IdipPunishInfoMsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a5ffacc0ff2e5a4e8d9ee4a1afb5188 +timeCreated: 1611404091 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvFightNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvFightNotify.cs new file mode 100644 index 00000000..8f81deb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvFightNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_InvFightNotify + { + public static void Process(PtcM2C_InvFightNotify roPtc) + { + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + specificDocument.PKInvitationNotify(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvFightNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvFightNotify.cs.meta new file mode 100644 index 00000000..d741109b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvFightNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 980b46c6e6642194b8f94fec2ec3a771 +timeCreated: 1611404190 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvUnfStateM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvUnfStateM2CNtf.cs new file mode 100644 index 00000000..65eb6891 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvUnfStateM2CNtf.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_InvUnfStateM2CNtf + { + public static void Process(PtcM2C_InvUnfStateM2CNtf roPtc) + { + XTeamInviteDocument specificDocument = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + XTeamInviteDocument xteamInviteDocument = specificDocument; + int invitedCount = xteamInviteDocument.InvitedCount - 1; + xteamInviteDocument.InvitedCount = invitedCount; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvUnfStateM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvUnfStateM2CNtf.cs.meta new file mode 100644 index 00000000..577f8969 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InvUnfStateM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef9c06ba6878c9049bf83013eb04cb70 +timeCreated: 1611404805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InviteRefuseM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InviteRefuseM2CNtf.cs new file mode 100644 index 00000000..4bbfd8f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InviteRefuseM2CNtf.cs @@ -0,0 +1,18 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_InviteRefuseM2CNtf + { + public static void Process(PtcM2C_InviteRefuseM2CNtf roPtc) + { + XTeamInviteDocument specificDocument = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_REFUSE_INVITATION", new object[] + { + roPtc.Data.name + }), "fece00"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InviteRefuseM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InviteRefuseM2CNtf.cs.meta new file mode 100644 index 00000000..602d7e6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_InviteRefuseM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73b05f931a694b4448992429d85e191b +timeCreated: 1611403941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_KickFMAuchor.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_KickFMAuchor.cs new file mode 100644 index 00000000..d11be18b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_KickFMAuchor.cs @@ -0,0 +1,15 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcM2C_KickFMAuchor + { + public static void Process(PtcM2C_KickFMAuchor roPtc) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + specificDocument.QuitBigRoom(); + DlgBase.singleton.Refresh(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_KickFMAuchor.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_KickFMAuchor.cs.meta new file mode 100644 index 00000000..5fb67cff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_KickFMAuchor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e158f5996d545764d839b09b8965b0da +timeCreated: 1611404701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomLoginParamNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomLoginParamNtf.cs new file mode 100644 index 00000000..6a302abb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomLoginParamNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_LargeRoomLoginParamNtf + { + public static void Process(PtcM2C_LargeRoomLoginParamNtf roPtc) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + specificDocument.isHost = roPtc.Data.speaker; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomLoginParamNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomLoginParamNtf.cs.meta new file mode 100644 index 00000000..bfa2b986 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomLoginParamNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fff943da7a9c82b4b9c151975695963b +timeCreated: 1611404948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs new file mode 100644 index 00000000..cfc022cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_LargeRoomRoleNtf + { + public static void Process(PtcM2C_LargeRoomRoleNtf roPtc) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + specificDocument.UpdateHost(roPtc.Data.name, roPtc.Data.roleid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs.meta new file mode 100644 index 00000000..f1f721cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LargeRoomRoleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da2285dcdc755624d96c195cf43d0cda +timeCreated: 1611404647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs new file mode 100644 index 00000000..f51fd83d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs @@ -0,0 +1,16 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_LeagueBattleMatchTimeoutNtf + { + public static void Process(PtcM2C_LeagueBattleMatchTimeoutNtf roPtc) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MATCH_TIME_OUT_LEAGUE"), "fece00"); + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument.SetTeamMatchState(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta new file mode 100644 index 00000000..7e873c64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e85e093085e700e40a07cf60e169c7a7 +timeCreated: 1611404752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStartMatchNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStartMatchNtf.cs new file mode 100644 index 00000000..b9903df8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStartMatchNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_LeagueBattleStartMatchNtf + { + public static void Process(PtcM2C_LeagueBattleStartMatchNtf roPtc) + { + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument.SetTeamMatchState(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStartMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStartMatchNtf.cs.meta new file mode 100644 index 00000000..69edd672 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStartMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebf8365f121008e4da1b1885dabbc2d0 +timeCreated: 1611404786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStopMatchNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStopMatchNtf.cs new file mode 100644 index 00000000..34abeeac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStopMatchNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_LeagueBattleStopMatchNtf + { + public static void Process(PtcM2C_LeagueBattleStopMatchNtf roPtc) + { + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument.SetTeamMatchState(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStopMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStopMatchNtf.cs.meta new file mode 100644 index 00000000..b4a6bfb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeagueBattleStopMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 95205bb1ee9d1b1418aa40e31bec9724 +timeCreated: 1611404180 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs new file mode 100644 index 00000000..5d8fc816 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_PtcM2C_LeaveTeamM2CNtf + { + public static void Process(PtcM2C_LeaveTeamM2CNtf roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnLeaveTeam((LeaveTeamType)roPtc.Data.errorno); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs.meta new file mode 100644 index 00000000..6dd52d06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LeaveTeamM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4deaad24417c75f428ef473ce579d3e0 +timeCreated: 1611403697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginDragonGuildInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginDragonGuildInfo.cs new file mode 100644 index 00000000..44b82053 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginDragonGuildInfo.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_LoginDragonGuildInfo + { + public static void Process(PtcM2C_LoginDragonGuildInfo roPtc) + { + XDragonGuildDocument.Doc.InitData(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginDragonGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginDragonGuildInfo.cs.meta new file mode 100644 index 00000000..7d8f2aa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginDragonGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 64dcc1509977e9d46bde309caca27056 +timeCreated: 1611403848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginGuildInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginGuildInfo.cs new file mode 100644 index 00000000..87863bff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginGuildInfo.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_LoginGuildInfo + { + public static void Process(PtcM2C_LoginGuildInfo roPtc) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + specificDocument.InitData(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginGuildInfo.cs.meta new file mode 100644 index 00000000..380a5e43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_LoginGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2602ba309b566c14a9c6ed016d1cadb0 +timeCreated: 1611403466 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MCChatOffLineNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MCChatOffLineNotify.cs new file mode 100644 index 00000000..3d376226 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MCChatOffLineNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_MCChatOffLineNotify + { + public static void Process(PtcM2C_MCChatOffLineNotify roPtc) + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.ReceiveOfflineMsg(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MCChatOffLineNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MCChatOffLineNotify.cs.meta new file mode 100644 index 00000000..947944da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MCChatOffLineNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ea6ba85edf968d40a9387ada636cde2 +timeCreated: 1611403204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs new file mode 100644 index 00000000..48635efb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs @@ -0,0 +1,43 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_MSErrorNotify + { + public static void Process(PtcM2C_MSErrorNotify roPtc) + { + ErrorCode errorno = (ErrorCode)roPtc.Data.errorno; + if (errorno != ErrorCode.ERR_VERSION_FAILED) + { + if (errorno != ErrorCode.ERR_TEAM_LEADER_NOTHELPER) + { + if (errorno != ErrorCode.ERR_AUCT_AUCTOVER) + { + bool istip = roPtc.Data.istip; + if (istip) + { + XSingleton.singleton.ShowSystemTip((ErrorCode)roPtc.Data.errorno, "fece00"); + } + else + { + XSingleton.singleton.ShowErrorCode((ErrorCode)roPtc.Data.errorno); + } + } + else + { + XSingleton.singleton.ShowSystemTip((ErrorCode)roPtc.Data.errorno, "fece00"); + AuctionHouseDocument specificDocument = XDocuments.GetSpecificDocument(AuctionHouseDocument.uuID); + specificDocument.QueryRefreshUI(); + } + } + else + { + XSingleton.singleton.ShowSystemTip((ErrorCode)roPtc.Data.errorno, "fece00"); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs.meta new file mode 100644 index 00000000..983908a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSErrorNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 718362b75960f1741bf36f77f2a4fd44 +timeCreated: 1611403934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSEventNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSEventNotify.cs new file mode 100644 index 00000000..589a1053 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSEventNotify.cs @@ -0,0 +1,14 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_MSEventNotify + { + public static void Process(PtcM2C_MSEventNotify roPtc) + { + XSingleton.singleton.ShowSystemTip(roPtc.Data.notify, "fece00"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSEventNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSEventNotify.cs.meta new file mode 100644 index 00000000..86d00ea4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSEventNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b2fbf466f9b8944395a5b5fbbaa28b2 +timeCreated: 1611403891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs new file mode 100644 index 00000000..226a84ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_MSFlowerRainNtf + { + public static void Process(PtcM2C_MSFlowerRainNtf roPtc) + { + XFlowerReplyDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerReplyDocument.uuID); + specificDocument.OnShowFlowerRain(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs.meta new file mode 100644 index 00000000..f257925f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSFlowerRainNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e29aed8805de2b241a339e6df697f733 +timeCreated: 1611404728 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSReceiveFlowerNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSReceiveFlowerNtf.cs new file mode 100644 index 00000000..49461aa6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSReceiveFlowerNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_MSReceiveFlowerNtf + { + public static void Process(PtcM2C_MSReceiveFlowerNtf roPtc) + { + XFlowerReplyDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerReplyDocument.uuID); + specificDocument.OnReceiveFlower(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSReceiveFlowerNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSReceiveFlowerNtf.cs.meta new file mode 100644 index 00000000..f099f7fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MSReceiveFlowerNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be31303ad9ad14e4e8ed206c63fb72c5 +timeCreated: 1611404459 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MakePartnerResultNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MakePartnerResultNtf.cs new file mode 100644 index 00000000..08b0b650 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MakePartnerResultNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_MakePartnerResultNtf + { + public static void Process(PtcM2C_MakePartnerResultNtf roPtc) + { + XPartnerDocument.Doc.MakePartnerResult(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MakePartnerResultNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MakePartnerResultNtf.cs.meta new file mode 100644 index 00000000..303cc19b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MakePartnerResultNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f84c212cac77964ba3856cc011da67d +timeCreated: 1611404134 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageLevelValueNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageLevelValueNtf.cs new file mode 100644 index 00000000..25011599 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageLevelValueNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_MarriageLevelValueNtf + { + public static void Process(PtcM2C_MarriageLevelValueNtf roPtc) + { + XWeddingDocument specificDocument = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + specificDocument.OnMarriageLevelValueChangeNtf(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageLevelValueNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageLevelValueNtf.cs.meta new file mode 100644 index 00000000..8e1777a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageLevelValueNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d641b4ed54ffb004da20cbba50b641fb +timeCreated: 1611404630 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageNewPrivilegeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageNewPrivilegeNtf.cs new file mode 100644 index 00000000..d8fe6bb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageNewPrivilegeNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_MarriageNewPrivilegeNtf + { + public static void Process(PtcM2C_MarriageNewPrivilegeNtf roPtc) + { + XWeddingDocument specificDocument = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + specificDocument.OnMarriageNewPrivilegeNtf(roPtc.Data.marriageLevel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageNewPrivilegeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageNewPrivilegeNtf.cs.meta new file mode 100644 index 00000000..cade38bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MarriageNewPrivilegeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55cfc6e0f0684704295f036c28394207 +timeCreated: 1611403738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MidasExceptionNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MidasExceptionNtf.cs new file mode 100644 index 00000000..2f087788 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MidasExceptionNtf.cs @@ -0,0 +1,19 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_MidasExceptionNtf + { + public static void Process(PtcM2C_MidasExceptionNtf roPtc) + { + bool flag = roPtc.Data.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(roPtc.Data.result, "fece00"); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MidasExceptionNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MidasExceptionNtf.cs.meta new file mode 100644 index 00000000..c42ea735 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_MidasExceptionNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56530198b43d750458cd161350756d7b +timeCreated: 1611403743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ModifyGuildNameNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ModifyGuildNameNtf.cs new file mode 100644 index 00000000..42229f79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ModifyGuildNameNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_ModifyGuildNameNtf + { + public static void Process(PtcM2C_ModifyGuildNameNtf roPtc) + { + XRenameDocument specificDocument = XDocuments.GetSpecificDocument(XRenameDocument.uuID); + specificDocument.NotifyGuildNewName(roPtc.Data.name); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ModifyGuildNameNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ModifyGuildNameNtf.cs.meta new file mode 100644 index 00000000..09fd1583 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ModifyGuildNameNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba9e37a29747a94419f8164ccb2a80d6 +timeCreated: 1611404437 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaBeginNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaBeginNew.cs new file mode 100644 index 00000000..b7b2e386 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaBeginNew.cs @@ -0,0 +1,15 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildArenaBeginNew + { + public static void Process(PtcM2C_NoticeGuildArenaBeginNew roPtc) + { + XSingleton.singleton.AddGreenLog("NoticeGuildArenaBeginNew : ", roPtc.Data.isstart.ToString(), null, null, null, null); + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.bHasAvailableArenaIcon = roPtc.Data.isstart; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaBeginNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaBeginNew.cs.meta new file mode 100644 index 00000000..4f87a8be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaBeginNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 827ad18ae4732904f8c381e572b46518 +timeCreated: 1611404040 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaNextTime.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaNextTime.cs new file mode 100644 index 00000000..d6993cb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaNextTime.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildArenaNextTime + { + public static void Process(PtcM2C_NoticeGuildArenaNextTime roPtc) + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.ReceiveGuildArenaNextTime(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaNextTime.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaNextTime.cs.meta new file mode 100644 index 00000000..725367c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildArenaNextTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 11a9d35d268870441bdd1e045574cc63 +timeCreated: 1611403240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildLadderStart.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildLadderStart.cs new file mode 100644 index 00000000..3183ed31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildLadderStart.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildLadderStart + { + public static void Process(PtcM2C_NoticeGuildLadderStart roPtc) + { + XGuildQualifierDocument specificDocument = XDocuments.GetSpecificDocument(XGuildQualifierDocument.uuID); + specificDocument.bHasAvailableLadderIcon = roPtc.Data.isstart; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildLadderStart.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildLadderStart.cs.meta new file mode 100644 index 00000000..89e309bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildLadderStart.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5863eb23226e8c48a3f34984641e324 +timeCreated: 1611404627 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBattleWin.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBattleWin.cs new file mode 100644 index 00000000..b7c8f6b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBattleWin.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildTerrBattleWin + { + public static void Process(PtcM2C_NoticeGuildTerrBattleWin roPtc) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.SetGuildTerritoryCityInfo(roPtc.Data.id, roPtc.Data.guildid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBattleWin.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBattleWin.cs.meta new file mode 100644 index 00000000..ae819b0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBattleWin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44201b54144cfab4dafc6cfd0e0efbc4 +timeCreated: 1611403643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBigIcon.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBigIcon.cs new file mode 100644 index 00000000..21d9d965 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBigIcon.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildTerrBigIcon + { + public static void Process(PtcM2C_NoticeGuildTerrBigIcon roPtc) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.TerritoryStyle = (roPtc.Data.isnow ? XGuildTerritoryDocument.GuildTerritoryStyle.INFORM : XGuildTerritoryDocument.GuildTerritoryStyle.NONE); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBigIcon.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBigIcon.cs.meta new file mode 100644 index 00000000..0127e53f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrBigIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f3f92c11c455bb47a88a6ab6ebe914f +timeCreated: 1611404029 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrEnd.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrEnd.cs new file mode 100644 index 00000000..37d6771a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrEnd.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildTerrEnd + { + public static void Process(PtcM2C_NoticeGuildTerrEnd roPtc) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.bHavaShowMessageIcon = true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrEnd.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrEnd.cs.meta new file mode 100644 index 00000000..faed2a12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e74f314259828374a8659c5e77e6c634 +timeCreated: 1611404748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrWar.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrWar.cs new file mode 100644 index 00000000..3bb93ef0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrWar.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildTerrWar + { + public static void Process(PtcM2C_NoticeGuildTerrWar roPtc) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.bHavaTerritoryRecCount = 0u; + specificDocument.TerritoryStyle = (roPtc.Data.isbegin ? XGuildTerritoryDocument.GuildTerritoryStyle.ACTIVITY : XGuildTerritoryDocument.GuildTerritoryStyle.NONE); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrWar.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrWar.cs.meta new file mode 100644 index 00000000..57339a34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrWar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 267c2c14eecff5c4380cf5751676a878 +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrall.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrall.cs new file mode 100644 index 00000000..1e423a58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrall.cs @@ -0,0 +1,15 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildTerrall + { + public static void Process(PtcM2C_NoticeGuildTerrall roPtc) + { + XSingleton.singleton.AddGreenLog("PtcM2C_NoticeGuildTerrall:", roPtc.Data.num.ToString(), null, null, null, null); + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.bHavaTerritoryRecCount = roPtc.Data.num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrall.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrall.cs.meta new file mode 100644 index 00000000..a0118d80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildTerrall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9935b939fa383fe4794747e6fb53358d +timeCreated: 1611404194 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildWageReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildWageReward.cs new file mode 100644 index 00000000..93ae3db7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildWageReward.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NoticeGuildWageReward + { + public static void Process(PtcM2C_NoticeGuildWageReward roPtc) + { + XGuildSalaryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSalaryDocument.uuID); + specificDocument.HasRedPoint = true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildWageReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildWageReward.cs.meta new file mode 100644 index 00000000..4941c492 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NoticeGuildWageReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7e05c12d55719944a92a4e8b97818d5 +timeCreated: 1611404889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyGuildSkillData.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyGuildSkillData.cs new file mode 100644 index 00000000..71395c32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyGuildSkillData.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NotifyGuildSkillData + { + public static void Process(PtcM2C_NotifyGuildSkillData roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyGuildSkillData.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyGuildSkillData.cs.meta new file mode 100644 index 00000000..f333ab9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyGuildSkillData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aaa1d0180bd2275428cae7632859c6fb +timeCreated: 1611404304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyIdipMessageMs.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyIdipMessageMs.cs new file mode 100644 index 00000000..2e213958 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyIdipMessageMs.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NotifyIdipMessageMs + { + public static void Process(PtcM2C_NotifyIdipMessageMs roPtc) + { + XIDIPDocument specificDocument = XDocuments.GetSpecificDocument(XIDIPDocument.uuID); + specificDocument.DealWithIDIPMessage(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyIdipMessageMs.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyIdipMessageMs.cs.meta new file mode 100644 index 00000000..f914d6c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyIdipMessageMs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cdcaa47b03ab2d4ab12634123ee0de2 +timeCreated: 1611403504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamCreate.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamCreate.cs new file mode 100644 index 00000000..a0130539 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamCreate.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NotifyLeagueTeamCreate + { + public static void Process(PtcM2C_NotifyLeagueTeamCreate roPtc) + { + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument.OnTeamLeagueCreateNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamCreate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamCreate.cs.meta new file mode 100644 index 00000000..64e9b118 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamCreate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 676ebaa8779ebb340ad5c2a542aaee6c +timeCreated: 1611403857 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamDissolve.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamDissolve.cs new file mode 100644 index 00000000..54e096c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamDissolve.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NotifyLeagueTeamDissolve + { + public static void Process(PtcM2C_NotifyLeagueTeamDissolve roPtc) + { + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument.OnTeamLeagueDissolveNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamDissolve.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamDissolve.cs.meta new file mode 100644 index 00000000..f729f972 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyLeagueTeamDissolve.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ceefc99fb00bb4b439f8974d6fd6cac1 +timeCreated: 1611404579 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageApply.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageApply.cs new file mode 100644 index 00000000..4d63c257 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageApply.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NotifyMarriageApply + { + public static void Process(PtcM2C_NotifyMarriageApply roPtc) + { + XWeddingDocument.Doc.OnGetMarriageApplyNotify(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageApply.cs.meta new file mode 100644 index 00000000..f0751417 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea468658ae432bc44b2aba574a0d3d1d +timeCreated: 1611404778 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageDivorceApply.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageDivorceApply.cs new file mode 100644 index 00000000..ced830e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageDivorceApply.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NotifyMarriageDivorceApply + { + public static void Process(PtcM2C_NotifyMarriageDivorceApply roPtc) + { + XWeddingDocument.Doc.OnGetMarriageDivorceNotify(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageDivorceApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageDivorceApply.cs.meta new file mode 100644 index 00000000..c6ffc6b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMarriageDivorceApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84f27beb688760a4899330faf893e6d8 +timeCreated: 1611404050 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMentorApply.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMentorApply.cs new file mode 100644 index 00000000..e4dacc95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMentorApply.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NotifyMentorApply + { + public static void Process(PtcM2C_NotifyMentorApply roPtc) + { + XMentorshipDocument.Doc.OnGetMentorshipNotify(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMentorApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMentorApply.cs.meta new file mode 100644 index 00000000..7ff6133f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifyMentorApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc6313cb92e2fcd44badbce183a6fdfe +timeCreated: 1611404934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifySkyTeamCreate.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifySkyTeamCreate.cs new file mode 100644 index 00000000..a271f5ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifySkyTeamCreate.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_NotifySkyTeamCreate + { + public static void Process(PtcM2C_NotifySkyTeamCreate roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifySkyTeamCreate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifySkyTeamCreate.cs.meta new file mode 100644 index 00000000..114ea716 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_NotifySkyTeamCreate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48c4f6b46c83ac64a8bb8ac05ec943f5 +timeCreated: 1611403659 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PayParameterInfoInvalidNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PayParameterInfoInvalidNtf.cs new file mode 100644 index 00000000..f7066197 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PayParameterInfoInvalidNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_PayParameterInfoInvalidNtf + { + public static void Process(PtcM2C_PayParameterInfoInvalidNtf roPtc) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.PayParameterNtf(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PayParameterInfoInvalidNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PayParameterInfoInvalidNtf.cs.meta new file mode 100644 index 00000000..0e2f0123 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PayParameterInfoInvalidNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f1dcb5e86b556e4384089263dbc70b3 +timeCreated: 1611404244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs new file mode 100644 index 00000000..28fda69f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs @@ -0,0 +1,16 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_PkTimeoutM2CNtf + { + public static void Process(PtcM2C_PkTimeoutM2CNtf roPtc) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MATCH_TIME_OUT"), "fece00"); + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument.SetMatchTime(0u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs.meta new file mode 100644 index 00000000..0030e95e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PkTimeoutM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa40fdeb7d43d2d499d29e6f4602075f +timeCreated: 1611404302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PokerTournamentEndReFund.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PokerTournamentEndReFund.cs new file mode 100644 index 00000000..71aa93c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PokerTournamentEndReFund.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_PokerTournamentEndReFund + { + public static void Process(PtcM2C_PokerTournamentEndReFund roPtc) + { + XJokerKingDocument specificDocument = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + specificDocument.JokerKingGameOver(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PokerTournamentEndReFund.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PokerTournamentEndReFund.cs.meta new file mode 100644 index 00000000..dc90d345 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PokerTournamentEndReFund.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f82832b1240848d48a27c69ac65343af +timeCreated: 1611404891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PushQuestionNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PushQuestionNtf.cs new file mode 100644 index 00000000..79ff2bb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PushQuestionNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_PushQuestionNtf + { + public static void Process(PtcM2C_PushQuestionNtf roPtc) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.SetQuestion((int)roPtc.Data.serialNum, roPtc.Data.qid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PushQuestionNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PushQuestionNtf.cs.meta new file mode 100644 index 00000000..1aac6744 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_PushQuestionNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f638ec4abfc72004cb6b49da49729b3b +timeCreated: 1611404880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs new file mode 100644 index 00000000..80615509 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_QAEnterRoomNtf + { + public static void Process(PtcM2C_QAEnterRoomNtf roPtc) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.AddEnterRoomInfo2List(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs.meta new file mode 100644 index 00000000..e909e504 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAEnterRoomNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 713bec32f75f6ff4598699a52ae9e373 +timeCreated: 1611403933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAIDNameNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAIDNameNtf.cs new file mode 100644 index 00000000..defc7b6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAIDNameNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_QAIDNameNtf + { + public static void Process(PtcM2C_QAIDNameNtf roPtc) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.DealWithNameIndex(roPtc.Data.idname); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAIDNameNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAIDNameNtf.cs.meta new file mode 100644 index 00000000..52255705 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAIDNameNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06b4ee29719d024439303c9b49a8f0fb +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAOverNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAOverNtf.cs new file mode 100644 index 00000000..67a2d6e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAOverNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_QAOverNtf + { + public static void Process(PtcM2C_QAOverNtf roPtc) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.VoiceQAStatement(roPtc.Data.total, roPtc.Data.correct, roPtc.Data.dataList); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAOverNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAOverNtf.cs.meta new file mode 100644 index 00000000..9b6ef787 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QAOverNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af8fc97f46d8d924580db1172dabaf3e +timeCreated: 1611404345 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QARoomRankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QARoomRankNtf.cs new file mode 100644 index 00000000..5f7187e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QARoomRankNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_QARoomRankNtf + { + public static void Process(PtcM2C_QARoomRankNtf roPtc) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.SetRankList(roPtc.Data.dataList, roPtc.Data.myscore); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QARoomRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QARoomRankNtf.cs.meta new file mode 100644 index 00000000..fd5f2c49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_QARoomRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f3204b2edaeea84da171be50864776a +timeCreated: 1611404133 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs new file mode 100644 index 00000000..7b03e48d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs @@ -0,0 +1,29 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_ResWarEnemyTimeNtf + { + public static void Process(PtcM2C_ResWarEnemyTimeNtf roPtc) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + DlgBase.singleton.CurExploreLeftTime = 0f; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshExploreTime(); + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshButton(); + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs.meta new file mode 100644 index 00000000..802bf75f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarEnemyTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 594631210e238a6429248f62f9ae080e +timeCreated: 1611403783 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarGuildBriefNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarGuildBriefNtf.cs new file mode 100644 index 00000000..6b8f41d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarGuildBriefNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_ResWarGuildBriefNtf + { + public static void Process(PtcM2C_ResWarGuildBriefNtf roPtc) + { + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument.SetNewInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarGuildBriefNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarGuildBriefNtf.cs.meta new file mode 100644 index 00000000..64023f3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarGuildBriefNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b354b5fc575a2843be9cca29e659501 +timeCreated: 1611404204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarMineDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarMineDataNtf.cs new file mode 100644 index 00000000..3a440bd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarMineDataNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_ResWarMineDataNtf + { + public static void Process(PtcM2C_ResWarMineDataNtf roPtc) + { + XGuildResContentionBuffDocument.Doc.OnGetGuildResUpdate(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarMineDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarMineDataNtf.cs.meta new file mode 100644 index 00000000..dd77cccd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarMineDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a44cd05618b54664fa76cb52ee505e65 +timeCreated: 1611404282 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarRankSimpleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarRankSimpleInfoNtf.cs new file mode 100644 index 00000000..81f96fbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarRankSimpleInfoNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_ResWarRankSimpleInfoNtf + { + public static void Process(PtcM2C_ResWarRankSimpleInfoNtf roPtc) + { + XGuildResContentionBuffDocument.Doc.OnGetGuildInfoList(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarRankSimpleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarRankSimpleInfoNtf.cs.meta new file mode 100644 index 00000000..6d87c335 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarRankSimpleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5985b546e42347542bad6aa2a805f57d +timeCreated: 1611403785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarStateNtf.cs new file mode 100644 index 00000000..2b001983 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarStateNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_ResWarStateNtf + { + public static void Process(PtcM2C_ResWarStateNtf roPtc) + { + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument.TeamLeaderOperate(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarStateNtf.cs.meta new file mode 100644 index 00000000..d8092718 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 967882ade861ab24596ec4a74da88e92 +timeCreated: 1611404185 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs new file mode 100644 index 00000000..5592810a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_ResWarTimeNtf + { + public static void Process(PtcM2C_ResWarTimeNtf roPtc) + { + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument.ActivityStatusChange(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs.meta new file mode 100644 index 00000000..b3c826d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_ResWarTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb126234f39228a4eb1820e158ed4443 +timeCreated: 1611404439 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleMatchStateM2CNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleMatchStateM2CNotify.cs new file mode 100644 index 00000000..173c267b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleMatchStateM2CNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_RoleMatchStateM2CNotify + { + public static void Process(PtcM2C_RoleMatchStateM2CNotify roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnRoleMatchStateNotify(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleMatchStateM2CNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleMatchStateM2CNotify.cs.meta new file mode 100644 index 00000000..fbcad72f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleMatchStateM2CNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eead28eafe0ce0847990f43603de81e8 +timeCreated: 1611404798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs new file mode 100644 index 00000000..8cd833d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_RoleStateNtfNew + { + public static void Process(PtcM2C_RoleStateNtfNew roPtc) + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.QueryRoleStateRes(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs.meta new file mode 100644 index 00000000..5231e3b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_RoleStateNtfNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa5ff61cb938b6441bba21ea38d4d9c5 +timeCreated: 1611404903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildBonusNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildBonusNtf.cs new file mode 100644 index 00000000..49955520 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildBonusNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SendGuildBonusNtf + { + public static void Process(PtcM2C_SendGuildBonusNtf roPtc) + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.bHasAvailableFixedRedPoint = roPtc.Data.hasLeftSend; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildBonusNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildBonusNtf.cs.meta new file mode 100644 index 00000000..c3f9d904 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildBonusNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 508c30d2871c8314088573b6a151d2da +timeCreated: 1611403703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildSkillInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildSkillInfo.cs new file mode 100644 index 00000000..d9dc352c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildSkillInfo.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SendGuildSkillInfo + { + public static void Process(PtcM2C_SendGuildSkillInfo roPtc) + { + XGuildSkillDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSkillDocument.uuID); + specificDocument.OnUpdateGuildSkillData(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildSkillInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildSkillInfo.cs.meta new file mode 100644 index 00000000..9eb5255b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SendGuildSkillInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a417e5fab32bcf4e99b555b94a86eeb +timeCreated: 1611404090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs new file mode 100644 index 00000000..3303c10c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SkyCityFinalRes + { + public static void Process(PtcM2C_SkyCityFinalRes roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs.meta new file mode 100644 index 00000000..ca5802c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCityFinalRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15f66ba645d29d14c8bada88685cbca1 +timeCreated: 1611403267 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs new file mode 100644 index 00000000..8dfd795b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SkyCraftEliRoomNtf + { + public static void Process(PtcM2C_SkyCraftEliRoomNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs.meta new file mode 100644 index 00000000..ee8de9eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftEliRoomNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18e80dd80a8cf2047aad1081dcb0b3a1 +timeCreated: 1611403299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs new file mode 100644 index 00000000..802f24fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SkyCraftMatchNtf + { + public static void Process(PtcM2C_SkyCraftMatchNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs.meta new file mode 100644 index 00000000..7da974b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SkyCraftMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2559e93e7a92a93418d5cfb460d253af +timeCreated: 1611403464 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SpriteStateChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SpriteStateChangeNtf.cs new file mode 100644 index 00000000..1b242acd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SpriteStateChangeNtf.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SpriteStateChangeNtf + { + public static void Process(PtcM2C_SpriteStateChangeNtf roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SpriteStateChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SpriteStateChangeNtf.cs.meta new file mode 100644 index 00000000..2d8cc436 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SpriteStateChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9db61d31e4772b24b8023ca9868c9141 +timeCreated: 1611404237 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_StartBattleFailedM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_StartBattleFailedM2CNtf.cs new file mode 100644 index 00000000..75e0a19f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_StartBattleFailedM2CNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_StartBattleFailedM2CNtf + { + public static void Process(PtcM2C_StartBattleFailedM2CNtf roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ProcessTeamOPErrorCode(roPtc.Data.reason, roPtc.Data.proUserID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_StartBattleFailedM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_StartBattleFailedM2CNtf.cs.meta new file mode 100644 index 00000000..ffcdf846 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_StartBattleFailedM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b038b0f4a9229374c93679ebc3d831fe +timeCreated: 1611404349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuilIntegralState.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuilIntegralState.cs new file mode 100644 index 00000000..e5be23e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuilIntegralState.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SynGuilIntegralState + { + public static void Process(PtcM2C_SynGuilIntegralState roPtc) + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.ReceiveUpdateBattleStatu(roPtc.Data.state); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuilIntegralState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuilIntegralState.cs.meta new file mode 100644 index 00000000..d93e75be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuilIntegralState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 030f3fa1165479e4893d976756a95006 +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaBattleInfoNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaBattleInfoNew.cs new file mode 100644 index 00000000..5c660d4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaBattleInfoNew.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SynGuildArenaBattleInfoNew + { + public static void Process(PtcM2C_SynGuildArenaBattleInfoNew roPtc) + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.OnSynGuildArenaBattleInfos(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaBattleInfoNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaBattleInfoNew.cs.meta new file mode 100644 index 00000000..cc48edc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaBattleInfoNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33e3768b5082345438e9be59fb473a20 +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaFightUnitNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaFightUnitNew.cs new file mode 100644 index 00000000..a197a1c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaFightUnitNew.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SynGuildArenaFightUnitNew + { + public static void Process(PtcM2C_SynGuildArenaFightUnitNew roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaFightUnitNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaFightUnitNew.cs.meta new file mode 100644 index 00000000..68dbd9cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaFightUnitNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7e4ccd43449b9f42b256f68c30b3c05 +timeCreated: 1611404404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs new file mode 100644 index 00000000..054ab2fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SynGuildArenaRoleOnlineNew + { + public static void Process(PtcM2C_SynGuildArenaRoleOnlineNew roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta new file mode 100644 index 00000000..46af4f19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ebd5f2e7b51b81458a1bf5196992440 +timeCreated: 1611403608 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildIntegralState.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildIntegralState.cs new file mode 100644 index 00000000..03311f3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildIntegralState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_SynGuildIntegralState + { + public static void Process(PtcM2C_SynGuildIntegralState roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildIntegralState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildIntegralState.cs.meta new file mode 100644 index 00000000..cacf2074 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_SynGuildIntegralState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4ee3b4e676bb814dae6afcef4b1eaf0 +timeCreated: 1611404284 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs new file mode 100644 index 00000000..80c023be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_TarjaBriefNtf + { + public static void Process(PtcM2C_TarjaBriefNtf roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetTarja(roPtc.Data.time); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs.meta new file mode 100644 index 00000000..8198d083 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TarjaBriefNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f12d131282c11c841a21837cb391b3c6 +timeCreated: 1611404836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs new file mode 100644 index 00000000..befb71e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_TaskRefreshNtf + { + public static void Process(PtcM2C_TaskRefreshNtf roPtc) + { + XGuildDailyTaskDocument.Doc.OnTaskRefreshNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs.meta new file mode 100644 index 00000000..9bf84a85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TaskRefreshNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 42b95b00dd9f19243a30ad163d14343e +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs new file mode 100644 index 00000000..3ac27669 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_TeamChangeM2CNtf + { + public static void Process(PtcM2C_TeamChangeM2CNtf roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnTeamInfoChanged(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs.meta new file mode 100644 index 00000000..2e89b93b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamChangeM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c885d2bf14fe800449684a5dfa39495c +timeCreated: 1611404534 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamFullDataM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamFullDataM2CNtf.cs new file mode 100644 index 00000000..007aa5d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamFullDataM2CNtf.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_TeamFullDataM2CNtf + { + public static void Process(PtcM2C_TeamFullDataM2CNtf roPtc) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnTeamFullDataNotify(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamFullDataM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamFullDataM2CNtf.cs.meta new file mode 100644 index 00000000..8c7aaf74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamFullDataM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5545445c00917d44907ffdb13045972 +timeCreated: 1611404506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamInviteM2CNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamInviteM2CNotify.cs new file mode 100644 index 00000000..3c70cf4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamInviteM2CNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_TeamInviteM2CNotify + { + public static void Process(PtcM2C_TeamInviteM2CNotify roPtc) + { + XTeamInviteDocument specificDocument = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + specificDocument.OnInviteComing(roPtc.Data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamInviteM2CNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamInviteM2CNotify.cs.meta new file mode 100644 index 00000000..cc1079e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamInviteM2CNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b11cad6fe1fe4864784076ffcddf97a8 +timeCreated: 1611404354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamRequestPlatFreind2Client.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamRequestPlatFreind2Client.cs new file mode 100644 index 00000000..990f16c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamRequestPlatFreind2Client.cs @@ -0,0 +1,13 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_PtcM2C_TeamRequestPlatFreind2Client + { + public static void Process(PtcM2C_TeamRequestPlatFreind2Client roPtc) + { + DlgBase.singleton.NoticeFriendShare(roPtc.Data.openID, XFriendsView.ShareType.Invite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamRequestPlatFreind2Client.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamRequestPlatFreind2Client.cs.meta new file mode 100644 index 00000000..3eca7f78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_TeamRequestPlatFreind2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54b33f013ed8c814ea1d642814b3969d +timeCreated: 1611403735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs new file mode 100644 index 00000000..183a6514 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_UpdateLeagueBattleSeasonInfo + { + public static void Process(PtcM2C_UpdateLeagueBattleSeasonInfo roPtc) + { + XFreeTeamVersusLeagueDocument.Doc.OnGetLeagueSeasonInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta new file mode 100644 index 00000000..9b239a16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74aee5f3c5b46b54c9b98e8c476439ec +timeCreated: 1611403944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs new file mode 100644 index 00000000..7a89f87d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_UpdateLeagueEleRoomStateNtf + { + public static void Process(PtcM2C_UpdateLeagueEleRoomStateNtf roPtc) + { + XFreeTeamVersusLeagueDocument.Doc.OnUpdateEliRoomInfo(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta new file mode 100644 index 00000000..b0d5a5bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff0ef213c02f55a408107b66562fc633 +timeCreated: 1611404945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueTeamState.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueTeamState.cs new file mode 100644 index 00000000..9174f2f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueTeamState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_UpdateLeagueTeamState + { + public static void Process(PtcM2C_UpdateLeagueTeamState roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueTeamState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueTeamState.cs.meta new file mode 100644 index 00000000..28812375 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdateLeagueTeamState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 320d1aa7939df9b4689bc06771132d4e +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdatePartnerToClient.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdatePartnerToClient.cs new file mode 100644 index 00000000..f9b699b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdatePartnerToClient.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_UpdatePartnerToClient + { + public static void Process(PtcM2C_UpdatePartnerToClient roPtc) + { + XPartnerDocument.Doc.UpdatePartnerToClient(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdatePartnerToClient.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdatePartnerToClient.cs.meta new file mode 100644 index 00000000..1fef1c66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_UpdatePartnerToClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd18efd17141b34499b4b90d084a48ed +timeCreated: 1611404553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs new file mode 100644 index 00000000..d5493fe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_WeddingInviteNtf + { + public static void Process(PtcM2C_WeddingInviteNtf roPtc) + { + XWeddingDocument.Doc.WeddingInviteNtf(roPtc); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs.meta new file mode 100644 index 00000000..b7d0b5bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_WeddingInviteNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d247fe92d5b15f4b98c50d372c07c89 +timeCreated: 1611404235 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_fastMBDismissM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_fastMBDismissM2CNtf.cs new file mode 100644 index 00000000..992c0347 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_fastMBDismissM2CNtf.cs @@ -0,0 +1,19 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcM2C_fastMBDismissM2CNtf + { + public static void Process(PtcM2C_fastMBDismissM2CNtf roPtc) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_QUICKBATTLE_DISMISS", new object[] + { + roPtc.Data.quitRoleName + }), "fece00"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_fastMBDismissM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_fastMBDismissM2CNtf.cs.meta new file mode 100644 index 00000000..67801731 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_fastMBDismissM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55a3a635ff9985a4d9ce2c43c6baec11 +timeCreated: 1611403738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_synguildarenadisplaceNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_synguildarenadisplaceNew.cs new file mode 100644 index 00000000..51bf1e35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_synguildarenadisplaceNew.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcM2C_synguildarenadisplaceNew + { + public static void Process(PtcM2C_synguildarenadisplaceNew roPtc) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_synguildarenadisplaceNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_synguildarenadisplaceNew.cs.meta new file mode 100644 index 00000000..ce51efaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcM2C_synguildarenadisplaceNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b679154a5d60ba4a9cbb83d345deeac +timeCreated: 1611403993 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs new file mode 100644 index 00000000..f26f1684 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs @@ -0,0 +1,25 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcN2C_CheckQueuingNtf + { + public static void Process(PtcN2C_CheckQueuingNtf roPtc) + { + ErrorCode errorcode = roPtc.Data.errorcode; + if (errorcode != ErrorCode.ERR_SUCCESS) + { + if (errorcode == ErrorCode.ERR_ACCOUNT_QUEUING) + { + XSingleton.singleton.WaitForServerQueue(roPtc.Data.rolecount, roPtc.Data.timeleft); + } + } + else + { + XSingleton.singleton.EnterToSelectChar(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs.meta new file mode 100644 index 00000000..df4cb553 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcN2C_CheckQueuingNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9027351813e04ec42987091630add04e +timeCreated: 1611404137 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ChatNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ChatNotify.cs new file mode 100644 index 00000000..f343c9a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ChatNotify.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class Process_PtcT2C_ChatNotify + { + public static void Process(PtcT2C_ChatNotify roPtc) + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.OnReceiveChatInfo(roPtc.Data.chatinfo); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ChatNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ChatNotify.cs.meta new file mode 100644 index 00000000..7e832ab7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ChatNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a44e5c10e8d9d94c8a3cf45f21ce6ea +timeCreated: 1611404090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ErrorNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ErrorNotify.cs new file mode 100644 index 00000000..8314d812 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ErrorNotify.cs @@ -0,0 +1,13 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcT2C_ErrorNotify + { + public static void Process(PtcT2C_ErrorNotify roPtc) + { + XSingleton.singleton.OnServerErrorNotify(roPtc.Data.errorno, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ErrorNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ErrorNotify.cs.meta new file mode 100644 index 00000000..ab7f7e24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_ErrorNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0af682cabbb2ad549aa18de970ec2af5 +timeCreated: 1611403165 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs new file mode 100644 index 00000000..f4daccf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs @@ -0,0 +1,15 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcT2C_KeepAlivePingReq + { + public static void Process(PtcT2C_KeepAlivePingReq roPtc) + { + PtcC2T_KeepAlivePingAck proto = new PtcC2T_KeepAlivePingAck(); + XSingleton.singleton.Send(proto); + XSingleton.singleton.AddLog("Keep alive ack", XDebugChannel.XDebug_Network.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs.meta new file mode 100644 index 00000000..0d3fb2b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_KeepAlivePingReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fbf63b14620c0e46897a302250b2a88 +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_LoginChallenge.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_LoginChallenge.cs new file mode 100644 index 00000000..34bfe080 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_LoginChallenge.cs @@ -0,0 +1,96 @@ +using System; +using KKSG; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_PtcT2C_LoginChallenge + { + public static void Process(PtcT2C_LoginChallenge roPtc) + { + bool onReconnect = XSingleton.singleton.XConnect.OnReconnect; + if (onReconnect) + { + RpcC2T_Reconnect rpcC2T_Reconnect = new RpcC2T_Reconnect(); + rpcC2T_Reconnect.oArg.session = XSingleton.singleton.Session; + rpcC2T_Reconnect.oArg.sceneid = XSingleton.singleton.SceneID; + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + rpcC2T_Reconnect.oArg.roleid = XSingleton.singleton.XPlayerData.RoleID; + } + XSingleton.singleton.Send(rpcC2T_Reconnect); + XSingleton.singleton.AddLog("send Reconnect rpc.", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XSingleton.singleton.AddLog("receive challenge, start sync time.", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = !string.IsNullOrEmpty(XSingleton.singleton.XLoginToken); + if (flag2) + { + RpcC2T_ClientLoginRequest rpcC2T_ClientLoginRequest = new RpcC2T_ClientLoginRequest(); + rpcC2T_ClientLoginRequest.oArg.token = Convert.FromBase64String(XSingleton.singleton.XLoginToken); + rpcC2T_ClientLoginRequest.oArg.gameserverid = XSingleton.singleton.ServerID; + rpcC2T_ClientLoginRequest.oArg.openid = XSingleton.singleton.OpenID; + rpcC2T_ClientLoginRequest.oArg.loginzoneid = XSingleton.singleton.LoginZoneID; + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform != 11) + { + rpcC2T_ClientLoginRequest.oArg.pc = "0.0.0"; + } + else + { + rpcC2T_ClientLoginRequest.oArg.android = XSingleton.singleton.Version; + rpcC2T_ClientLoginRequest.oArg.clientInfo = new ClientInfo(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.PlatID = XFastEnumIntEqualityComparer.ToInt(PlatType.PLAT_ANDROID); + rpcC2T_ClientLoginRequest.oArg.clientInfo.ClientVersion = XSingleton.singleton.Version; + rpcC2T_ClientLoginRequest.oArg.clientInfo.LoginChannel = XSingleton.singleton.XPlatform.GetChannelID(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.pf = "openmobile_android"; + rpcC2T_ClientLoginRequest.oArg.clientInfo.starttype = XSingleton.singleton.GetLaunchType(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.logintype = XSingleton.singleton.AccountType; + rpcC2T_ClientLoginRequest.oArg.clientInfo.token = XSingleton.singleton.TokenCache; + rpcC2T_ClientLoginRequest.oArg.clientInfo.ScreenWidth = Screen.width; + rpcC2T_ClientLoginRequest.oArg.clientInfo.ScreenHight = Screen.height; + rpcC2T_ClientLoginRequest.oArg.clientInfo.DeviceId = SystemInfo.deviceUniqueIdentifier; + rpcC2T_ClientLoginRequest.oArg.clientInfo.SystemHardware = SystemInfo.deviceModel; + rpcC2T_ClientLoginRequest.oArg.clientInfo.SystemSoftware = SystemInfo.operatingSystem; + rpcC2T_ClientLoginRequest.oArg.clientInfo.Memory = SystemInfo.systemMemorySize; + rpcC2T_ClientLoginRequest.oArg.clientInfo.CpuHardware = SystemInfo.processorType + "-" + SystemInfo.processorCount; + rpcC2T_ClientLoginRequest.oArg.clientInfo.Network = Application.internetReachability.ToString(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.Density = (float)XSingleton.singleton.XPlatform.GetDensity(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.TelecomOper = XSingleton.singleton.XPlatform.GetSim(); + } + } + else + { + rpcC2T_ClientLoginRequest.oArg.ios = XSingleton.singleton.Version; + rpcC2T_ClientLoginRequest.oArg.clientInfo = new ClientInfo(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.PlatID = XFastEnumIntEqualityComparer.ToInt(PlatType.PLAT_IOS); + rpcC2T_ClientLoginRequest.oArg.clientInfo.ClientVersion = XSingleton.singleton.Version; + rpcC2T_ClientLoginRequest.oArg.clientInfo.LoginChannel = XSingleton.singleton.XPlatform.GetChannelID(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.pf = "openmobile_ios"; + rpcC2T_ClientLoginRequest.oArg.clientInfo.starttype = XSingleton.singleton.GetLaunchType(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.logintype = XSingleton.singleton.AccountType; + rpcC2T_ClientLoginRequest.oArg.clientInfo.token = XSingleton.singleton.TokenCache; + rpcC2T_ClientLoginRequest.oArg.clientInfo.ScreenWidth = Screen.width; + rpcC2T_ClientLoginRequest.oArg.clientInfo.ScreenHight = Screen.height; + rpcC2T_ClientLoginRequest.oArg.clientInfo.DeviceId = SystemInfo.deviceUniqueIdentifier; + rpcC2T_ClientLoginRequest.oArg.clientInfo.SystemHardware = SystemInfo.deviceModel; + rpcC2T_ClientLoginRequest.oArg.clientInfo.SystemSoftware = SystemInfo.operatingSystem; + rpcC2T_ClientLoginRequest.oArg.clientInfo.Memory = SystemInfo.systemMemorySize; + rpcC2T_ClientLoginRequest.oArg.clientInfo.CpuHardware = SystemInfo.processorType + "-" + SystemInfo.processorCount; + rpcC2T_ClientLoginRequest.oArg.clientInfo.Network = Application.internetReachability.ToString(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.Density = (float)XSingleton.singleton.XPlatform.GetDensity(); + rpcC2T_ClientLoginRequest.oArg.clientInfo.TelecomOper = XSingleton.singleton.XPlatform.GetSim(); + } + XSingleton.singleton.Send(rpcC2T_ClientLoginRequest); + } + XSingleton.singleton.Session = roPtc.Data.session; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_LoginChallenge.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_LoginChallenge.cs.meta new file mode 100644 index 00000000..8a662e2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_PtcT2C_LoginChallenge.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22a33bb6b67e2c143bb741c8483ec193 +timeCreated: 1611403423 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioAuthKey.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioAuthKey.cs new file mode 100644 index 00000000..ddb138a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioAuthKey.cs @@ -0,0 +1,33 @@ +using System; +using System.Text; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2A_AudioAuthKey + { + public static void OnReply(AudioAuthKeyArg oArg, AudioAuthKeyRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XChatDocument.m_ApolloInited = true; + XChatDocument.m_ApolloKey = Encoding.Default.GetBytes(oRes.szAuthKey); + XChatDocument.m_ApolloIPtable[0] = (int)oRes.dwMainSvrUrl1; + XChatDocument.m_ApolloIPtable[1] = (int)oRes.dwMainSvrUrl2; + XChatDocument.m_ApolloIPtable[2] = (int)oRes.dwSlaveSvrUrl1; + XChatDocument.m_ApolloIPtable[3] = (int)oRes.dwSlaveSvrUrl2; + XSingleton.singleton.InitApolloEngine(); + } + } + } + + public static void OnTimeout(AudioAuthKeyArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioAuthKey.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioAuthKey.cs.meta new file mode 100644 index 00000000..02caa59f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioAuthKey.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 939d7d4c1b78ef94a945f9900379ad2d +timeCreated: 1611404152 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioText.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioText.cs new file mode 100644 index 00000000..fd07f90f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioText.cs @@ -0,0 +1,31 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2A_AudioText + { + public static void OnReply(AudioTextArg oArg, AudioTextRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.OnGotAudioText(oRes); + } + else + { + XSingleton.singleton.AddLog("Got file text error: ", oRes.error.ToString(), null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.OnGotAudioTextError(oRes); + } + } + } + + public static void OnTimeout(AudioTextArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioText.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioText.cs.meta new file mode 100644 index 00000000..da0e27e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_AudioText.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c69f3a740a72154989bef84e5868a6a +timeCreated: 1611403996 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_GetAudioListReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_GetAudioListReq.cs new file mode 100644 index 00000000..5ec11a40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_GetAudioListReq.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2A_GetAudioListReq + { + public static void OnReply(GetAudioListReq oArg, GetAudioListRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.DownloadMp3Res(oRes); + } + else + { + XSingleton.singleton.DownLoadMp3Error(); + } + } + } + } + + public static void OnTimeout(GetAudioListReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_GetAudioListReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_GetAudioListReq.cs.meta new file mode 100644 index 00000000..6479cb59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_GetAudioListReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9e2d3c9d6b71b34b9e57d331c1222c7 +timeCreated: 1611404901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs new file mode 100644 index 00000000..1a625114 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs @@ -0,0 +1,49 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2A_UpLoadAudioReq + { + public static void OnReply(UpLoadAudioReq oArg, UpLoadAudioRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + bool flag4 = oArg.srctype == 0u; + if (flag4) + { + XSingleton.singleton.UpLoadMp3Res(oRes); + } + else + { + bool flag5 = oArg.srctype == 1u; + if (flag5) + { + XSingleton.singleton.UpLoadAudioRes(oRes); + } + } + } + } + } + } + + public static void OnTimeout(UpLoadAudioReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs.meta new file mode 100644 index 00000000..7b167cb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2A_UpLoadAudioReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1dad805a0d057c4785e72ace8384ea5 +timeCreated: 1611404840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AbsEnterScene.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AbsEnterScene.cs new file mode 100644 index 00000000..108cf065 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AbsEnterScene.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_AbsEnterScene + { + public static void OnReply(AbsEnterSceneArg oArg, AbsEnterSceneRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + + public static void OnTimeout(AbsEnterSceneArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AbsEnterScene.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AbsEnterScene.cs.meta new file mode 100644 index 00000000..27a673a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AbsEnterScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f1090f941892d5409e77d8f970e8134 +timeCreated: 1611403609 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatAtlas.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatAtlas.cs new file mode 100644 index 00000000..359e28c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatAtlas.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ActivatAtlas + { + public static void OnReply(ActivatAtlasArg oArg, ActivatAtlasRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XCardCollectDocument specificDocument = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + specificDocument.OnActive(oArg, oRes); + } + } + + public static void OnTimeout(ActivatAtlasArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatAtlas.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatAtlas.cs.meta new file mode 100644 index 00000000..0dd89462 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatAtlas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6483c82f3906ea1438cad2a982141d0b +timeCreated: 1611403848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateFashionCharm.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateFashionCharm.cs new file mode 100644 index 00000000..98f057f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateFashionCharm.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ActivateFashionCharm + { + public static void OnReply(ActivateFashionArg oArg, ActivateFashionRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + specificDocument.ReceiveActivateFashion(oArg, oRes); + } + } + + public static void OnTimeout(ActivateFashionArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateFashionCharm.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateFashionCharm.cs.meta new file mode 100644 index 00000000..e0e0fb2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateFashionCharm.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5afa6b2d5600442438e9904a83f8bac7 +timeCreated: 1611403796 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateHairColor.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateHairColor.cs new file mode 100644 index 00000000..272f4ecc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateHairColor.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ActivateHairColor + { + public static void OnReply(ActivateHairColorArg oArg, ActivateHairColorRes oRes) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + specificDocument.SetActivateHairColor(oRes); + } + + public static void OnTimeout(ActivateHairColorArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateHairColor.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateHairColor.cs.meta new file mode 100644 index 00000000..6a65465f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivateHairColor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 048e8338e589590499889819db05697e +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatePreShow.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatePreShow.cs new file mode 100644 index 00000000..fd58091b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatePreShow.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ActivatePreShow + { + public static void OnReply(ActivatePreShowArg oArg, ActivatePreShowRes oRes) + { + XPrerogativeDocument specificDocument = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + specificDocument.ReceiveActiveReply(oArg, oRes); + } + + public static void OnTimeout(ActivatePreShowArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatePreShow.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatePreShow.cs.meta new file mode 100644 index 00000000..cfd85b16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ActivatePreShow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36f0af4cafeb8074ca3cac864a65f1d3 +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AddTempAttr.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AddTempAttr.cs new file mode 100644 index 00000000..fb7009f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AddTempAttr.cs @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_AddTempAttr + { + public static void OnReply(AddTempAttrArg oArg, AddTempAttrRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oArg.type == 0u; + if (flag2) + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.OnGetEncourage(oRes); + } + else + { + XGuildDragonDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument2.OnGetEncourage(oRes); + } + } + } + + public static void OnTimeout(AddTempAttrArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AddTempAttr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AddTempAttr.cs.meta new file mode 100644 index 00000000..8481698a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AddTempAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b0c85102e8e18e49a7dfb53b58e9752 +timeCreated: 1611404204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AgreeQAReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AgreeQAReq.cs new file mode 100644 index 00000000..1b4719e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AgreeQAReq.cs @@ -0,0 +1,55 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_AgreeQAReq + { + public static void OnReply(AgreeQAReq oArg, AgreeQARes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + specificDocument.MainInterFaceBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + } + else + { + specificDocument.IsVoiceQAIng = oArg.agree; + bool flag3 = !oArg.agree; + if (flag3) + { + specificDocument.MainInterFaceBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + } + else + { + XMainInterfaceDocument specificDocument2 = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument2.SetVoiceBtnAppear(0u); + specificDocument.VoiceQAInit(oArg.type); + specificDocument.IsFirstOpenUI = true; + specificDocument.OpenView(); + } + } + } + } + + public static void OnTimeout(AgreeQAReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AgreeQAReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AgreeQAReq.cs.meta new file mode 100644 index 00000000..a95134ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AgreeQAReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b1561faf88b298a4fb342976c6efbaa6 +timeCreated: 1611404355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArgentaActivity.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArgentaActivity.cs new file mode 100644 index 00000000..c40d3b14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArgentaActivity.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ArgentaActivity + { + public static void OnReply(ArgentaActivityArg oArg, ArgentaActivityRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XWelfareDocument.Doc.OnGetArgentaActivityInfo(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + + public static void OnTimeout(ArgentaActivityArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArgentaActivity.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArgentaActivity.cs.meta new file mode 100644 index 00000000..6d9790e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArgentaActivity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fadf0e6e1dd0fe846b14db30caac211f +timeCreated: 1611404929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactCompose.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactCompose.cs new file mode 100644 index 00000000..23e86881 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactCompose.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ArtifactCompose + { + public static void OnReply(ArtifactComposeArg oArg, ArtifactComposeRes oRes) + { + ArtifactComposeDocument.Doc.OnReqCoposeArtifactBack(oArg.type, oRes); + } + + public static void OnTimeout(ArtifactComposeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactCompose.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactCompose.cs.meta new file mode 100644 index 00000000..b5afeb44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63519f6dff7013e4b83543006edae177 +timeCreated: 1611403844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactDeityStoveOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactDeityStoveOp.cs new file mode 100644 index 00000000..6ba76b1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactDeityStoveOp.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ArtifactDeityStoveOp + { + public static void OnReply(ArtifactDeityStoveOpArg oArg, ArtifactDeityStoveOpRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + switch (oArg.type) + { + case ArtifactDeityStoveOpType.ArtifactDeityStove_Recast: + ArtifactRecastDocument.Doc.OnReqRecastBack(oRes); + break; + case ArtifactDeityStoveOpType.ArtifactDeityStove_Fuse: + ArtifactFuseDocument.Doc.OnReqFuseBack(oRes); + break; + case ArtifactDeityStoveOpType.ArtifactDeityStove_Inscription: + ArtifactInscriptionDocument.Doc.OnReqInscriptionBack(oRes); + break; + case ArtifactDeityStoveOpType.ArtifactDeityStove_Refine: + case ArtifactDeityStoveOpType.ArtifactDeityStove_RefineRetain: + case ArtifactDeityStoveOpType.ArtifactDeityStove_RefineReplace: + ArtifactRefinedDocument.Doc.OnReqRefinedBack(oArg.type, oRes); + break; + } + } + } + + public static void OnTimeout(ArtifactDeityStoveOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactDeityStoveOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactDeityStoveOp.cs.meta new file mode 100644 index 00000000..b3651b71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ArtifactDeityStoveOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54f2fabb3a8596c46803f0ab56299aa4 +timeCreated: 1611403736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AskForCheckInBonus.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AskForCheckInBonus.cs new file mode 100644 index 00000000..9f2f73ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AskForCheckInBonus.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_AskForCheckInBonus + { + public static void OnReply(AskForCheckInBonusArg oArg, AskForCheckInBonusRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XQuickReplyDocument specificDocument = XDocuments.GetSpecificDocument(XQuickReplyDocument.uuID); + specificDocument.OnAskForCheckInBonus(oArg, oRes); + } + } + + public static void OnTimeout(AskForCheckInBonusArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AskForCheckInBonus.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AskForCheckInBonus.cs.meta new file mode 100644 index 00000000..29e201e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AskForCheckInBonus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5062400ea488bdc419ae934f760e44cb +timeCreated: 1611403703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AtlasUpStar.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AtlasUpStar.cs new file mode 100644 index 00000000..7ae82496 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AtlasUpStar.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_AtlasUpStar + { + public static void OnReply(AtlasUpStarArg oArg, AtlasUpStarRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XCardCollectDocument specificDocument = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + specificDocument.ChangeStar((int)oRes.star, (int)oArg.groupid); + } + } + } + + public static void OnTimeout(AtlasUpStarArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AtlasUpStar.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AtlasUpStar.cs.meta new file mode 100644 index 00000000..a84ef5f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AtlasUpStar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be9b16b2348c31e46b94090b3f1593f0 +timeCreated: 1611404480 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs new file mode 100644 index 00000000..7cd1362e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_AutoBreakAtlas + { + public static void OnReply(AutoBreakAtlasArg oArg, AutoBreakAtlasRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XCardCollectDocument specificDocument = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + specificDocument.OnAutoBreak(oArg, oRes); + } + } + + public static void OnTimeout(AutoBreakAtlasArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs.meta new file mode 100644 index 00000000..48cf5660 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_AutoBreakAtlas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 168c750ed20bcba49bd43f16d5e7068e +timeCreated: 1611403288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowActivityOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowActivityOperation.cs new file mode 100644 index 00000000..5c3684ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowActivityOperation.cs @@ -0,0 +1,29 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BackFlowActivityOperation + { + public static void OnReply(BackFlowActivityOperationArg oArg, BackFlowActivityOperationRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XBackFlowDocument.Doc.OnGetBackFlowOperation(oArg, oRes); + } + } + + public static void OnTimeout(BackFlowActivityOperationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowActivityOperation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowActivityOperation.cs.meta new file mode 100644 index 00000000..854bb488 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowActivityOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9df347c9c24ed254d8b06d5c3fd8c791 +timeCreated: 1611404239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs new file mode 100644 index 00000000..bfd9b2ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_BackFlowBuyOp + { + public static void OnReply(BackFlowBuyOpArg oArg, BackFlowBuyOpRes oRes) + { + } + + public static void OnTimeout(BackFlowBuyOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs.meta new file mode 100644 index 00000000..c800943b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BackFlowBuyOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfdb87329b702d549bbb6e7713ee5f42 +timeCreated: 1611404695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldAwardNumReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldAwardNumReq.cs new file mode 100644 index 00000000..b6241182 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldAwardNumReq.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_BattleFieldAwardNumReq + { + public static void OnReply(BattleFieldAwardNumArg oArg, BattleFieldAwardNumRes oRes) + { + XBattleFieldEntranceDocument.Doc.SetPointRewardRemainCount(oRes); + } + + public static void OnTimeout(BattleFieldAwardNumArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldAwardNumReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldAwardNumReq.cs.meta new file mode 100644 index 00000000..ea163743 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldAwardNumReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4f50560b3563c34a926b425cad9682d +timeCreated: 1611404504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRankReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRankReq.cs new file mode 100644 index 00000000..83bc9ada --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRankReq.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_BattleFieldRankReq + { + public static void OnReply(BattleFieldRankArg oArg, BattleFieldRankRes oRes) + { + XBattleFieldBattleDocument.Doc.SetRankData(oArg, oRes); + } + + public static void OnTimeout(BattleFieldRankArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRankReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRankReq.cs.meta new file mode 100644 index 00000000..89331196 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRankReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d96463c732f0f27439b01f574e2d5a7a +timeCreated: 1611404644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRoleAgainstReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRoleAgainstReq.cs new file mode 100644 index 00000000..756a2cc2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRoleAgainstReq.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_BattleFieldRoleAgainstReq + { + public static void OnReply(BattleFieldRoleAgainstArg oArg, BattleFieldRoleAgainst oRes) + { + XBattleFieldBattleDocument.Doc.SetBattleInfo(oRes); + } + + public static void OnTimeout(BattleFieldRoleAgainstArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRoleAgainstReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRoleAgainstReq.cs.meta new file mode 100644 index 00000000..ed9cc544 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BattleFieldRoleAgainstReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e2312792ff041c46aeb8b9747668956 +timeCreated: 1611403509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BindSkill.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BindSkill.cs new file mode 100644 index 00000000..b1193ab3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BindSkill.cs @@ -0,0 +1,54 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BindSkill + { + public static void OnReply(BingSkillArg oArg, BindSkillRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + bool flag3 = oArg.slot < oRes.skillslot.Count; + if (flag3) + { + specificDocument.ShowEmblemTips((ulong)oRes.skillslot[oArg.slot], oArg.slot); + } + for (int i = 0; i < XSingleton.singleton.XPlayerData.skillSlot.Length; i++) + { + bool flag4 = i < oRes.skillslot.Count; + if (flag4) + { + XSingleton.singleton.XPlayerData.skillSlot[i] = oRes.skillslot[i]; + } + } + XEmblemDocument specificDocument2 = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + specificDocument2.UpdateRedPoints(); + specificDocument.SkillRefresh(false, true); + XSingleton.singleton.SkillBind = true; + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(BingSkillArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BindSkill.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BindSkill.cs.meta new file mode 100644 index 00000000..c5b74f56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BindSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d62890e265347b418c6685ed0336d70 +timeCreated: 1611404104 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs new file mode 100644 index 00000000..fdd351ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs @@ -0,0 +1,65 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BossRushReq + { + public static void OnReply(BossRushArg oArg, BossRushRes oRes) + { + bool flag = oRes.ret == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XBossBushDocument specificDocument = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + bool flag2 = oRes.ret == ErrorCode.ERR_SUCCESS; + if (flag2) + { + bool flag3 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_BASEDATA || oArg.type == BossRushReqStatus.BOSSRUSH_REQ_REFRESH; + if (flag3) + { + specificDocument.Resp(oArg.type, oRes.data); + } + else + { + bool flag4 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_APPEARANCE || oArg.type == BossRushReqStatus.BOSSRUSH_REQ_CONTINUE; + if (flag4) + { + specificDocument.unitAppearance = oRes.bossApp; + DlgBase.singleton.GoBattle(); + } + else + { + bool flag5 = oArg.type == BossRushReqStatus.BOSSRUSH_REQ_LEFTCOUNT; + if (flag5) + { + specificDocument.leftChanllageCnt = oRes.leftcount; + XActivityDocument.Doc.OnGetDayCount(); + } + else + { + XSingleton.singleton.AddLog("rcv server msg!", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + } + } + else + { + XSingleton.singleton.AddLog("bossrush err=>", oRes.ret.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + } + + public static void OnTimeout(BossRushArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs.meta new file mode 100644 index 00000000..8b83508c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BossRushReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63580cc359b79af429d2597b9485a60e +timeCreated: 1611403844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyDraw.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyDraw.cs new file mode 100644 index 00000000..2018dea4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyDraw.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyDraw + { + public static void OnReply(BuyDrawReq oArg, BuyDrawRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XOperatingActivityDocument specificDocument = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + specificDocument.OnReceiveBuyLuckyTurntable(); + } + } + + public static void OnTimeout(BuyDrawReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyDraw.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyDraw.cs.meta new file mode 100644 index 00000000..e60ca5dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyDraw.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 689a140d055bcc44ca9b22bf52d60ea2 +timeCreated: 1611403883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyExtraSkillEmblemSlot.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyExtraSkillEmblemSlot.cs new file mode 100644 index 00000000..a5a85023 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyExtraSkillEmblemSlot.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyExtraSkillEmblemSlot + { + public static void OnReply(BuyExtraSkillEmblemSlotArg oArg, BuyExtraSkillEmblemSlotRes oRes) + { + XEmblemDocument specificDocument = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + specificDocument.OnEmbleSlottingBack(oRes); + } + + public static void OnTimeout(BuyExtraSkillEmblemSlotArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyExtraSkillEmblemSlot.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyExtraSkillEmblemSlot.cs.meta new file mode 100644 index 00000000..fc85462a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyExtraSkillEmblemSlot.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 933b4d6e7b32b784a8ea13e5b99ee7e3 +timeCreated: 1611404150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyGoldAndFatigue.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyGoldAndFatigue.cs new file mode 100644 index 00000000..60c8a769 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyGoldAndFatigue.cs @@ -0,0 +1,40 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyGoldAndFatigue + { + public static void OnReply(BuyGoldAndFatigueArg oArg, BuyGoldAndFatigueRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + DlgBase.singleton.ShowErrorCode(oRes.result); + } + bool flag3 = oArg.type == buyextype.DRAGONCOIN_BUY_GOLD || oArg.type == buyextype.DRAGON_BUY_FATIGUE; + if (flag3) + { + XDailyActivitiesDocument specificDocument = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + specificDocument.DealWithBuyReply(); + } + } + } + + public static void OnTimeout(BuyGoldAndFatigueArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyGoldAndFatigue.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyGoldAndFatigue.cs.meta new file mode 100644 index 00000000..6465b090 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyGoldAndFatigue.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72b134ff6a65a404f8011c3fcd099503 +timeCreated: 1611403938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyHeroInHeroBattle.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyHeroInHeroBattle.cs new file mode 100644 index 00000000..b490cd08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyHeroInHeroBattle.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyHeroInHeroBattle + { + public static void OnReply(BuyHeroInHeroBattleArg oArg, BuyHeroInHeroBattleRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XHeroBattleSkillDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + specificDocument.OnBuyHeroSuccess(oArg.heroid); + } + } + } + + public static void OnTimeout(BuyHeroInHeroBattleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyHeroInHeroBattle.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyHeroInHeroBattle.cs.meta new file mode 100644 index 00000000..5fa11a78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyHeroInHeroBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad1210536407bb5429613cf9de395c95 +timeCreated: 1611404333 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyIBItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyIBItem.cs new file mode 100644 index 00000000..1a3b8b65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyIBItem.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyIBItem + { + public static void OnReply(IBBuyItemReq oArg, IBBuyItemRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument.OnResBuyItem(oArg, oRes); + } + else + { + XGameMallDocument specificDocument2 = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument2.isBuying = false; + string @string = XStringDefineProxy.GetString(oRes.errorcode); + XSingleton.singleton.ShowSystemTip(@string, "fece00"); + } + } + } + + public static void OnTimeout(IBBuyItemReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyIBItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyIBItem.cs.meta new file mode 100644 index 00000000..ebd8bd67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyIBItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a84f910c42aec64ea0aa6a7c9b5ae6e +timeCreated: 1611403164 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlot.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlot.cs new file mode 100644 index 00000000..124c56fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlot.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyJadeSlot + { + public static void OnReply(BuyJadeSlotArg oArg, BuyJadeSlotRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + specificDocument.OnBuySlot(oRes); + } + } + + public static void OnTimeout(BuyJadeSlotArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlot.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlot.cs.meta new file mode 100644 index 00000000..93f1bd65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlot.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d8af4fbda6d58740a11ba98366e7c3d +timeCreated: 1611403506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs new file mode 100644 index 00000000..bfad3a85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyJadeSlotNew + { + public static void OnReply(BuyJadeSlotNewArg oArg, BuyJadeSlotNewRes oRes) + { + } + + public static void OnTimeout(BuyJadeSlotNewArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs.meta new file mode 100644 index 00000000..8dcf966a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyJadeSlotNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 613d2570a514da940afda62178319879 +timeCreated: 1611403838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyShopItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyShopItem.cs new file mode 100644 index 00000000..205a3b26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyShopItem.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyShopItem + { + public static void OnReply(BuyShopItemArg oArg, BuyShopItemRes oRes) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.OnGetBuy(oArg, oRes); + } + + public static void OnTimeout(BuyShopItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyShopItem.cs.meta new file mode 100644 index 00000000..81aa696d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d149b9c8b1f9fa545a908d780e2c22df +timeCreated: 1611404591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuySpriteEgg.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuySpriteEgg.cs new file mode 100644 index 00000000..5c8deb23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuySpriteEgg.cs @@ -0,0 +1,61 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuySpriteEgg + { + public static void OnReply(BuySpriteEggArg oArg, BuySpriteEggRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_ITEM_NOT_ENOUGH; + if (flag2) + { + LotteryType type = (LotteryType)oArg.type; + if (type - LotteryType.Sprite_Draw_One > 1) + { + if (type - LotteryType.Sprite_GoldDraw_One <= 1) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLotteryGoldNotEnough"), "fece00"); + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.GOLD); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLotteryDragonCoinNotEnough"), "fece00"); + DlgBase.singleton.ShowBorad(ItemEnum.DRAGON_COIN); + } + } + else + { + bool flag3 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + specificDocument.SetBuyEggData(oRes.goldfreebuycooldown, oRes.cooldown, oRes.goldfreebuycount); + specificDocument.SetBuyEggItem(oRes.item); + } + } + } + } + + public static void OnTimeout(BuySpriteEggArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuySpriteEgg.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuySpriteEgg.cs.meta new file mode 100644 index 00000000..93c29bc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuySpriteEgg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09e87727859ccf1449c78a5ac3dc83b4 +timeCreated: 1611403159 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyTeamSceneCount.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyTeamSceneCount.cs new file mode 100644 index 00000000..f531b21a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyTeamSceneCount.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyTeamSceneCount + { + public static void OnReply(BuyTeamSceneCountP oArg, BuyTeamSceneCountRet oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.OnBuyCount(oArg, oRes); + } + } + + public static void OnTimeout(BuyTeamSceneCountP oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyTeamSceneCount.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyTeamSceneCount.cs.meta new file mode 100644 index 00000000..067e827f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyTeamSceneCount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7171fdf824d197c48927065122250c51 +timeCreated: 1611403934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs new file mode 100644 index 00000000..e71f7589 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_BuyVipLevelGift + { + public static void OnReply(BuyVipLevelGiftArg oArg, BuyVipLevelGiftRes oRes) + { + bool flag = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + else + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.OnGetVIPGift(oArg.vipLevel); + } + } + + public static void OnTimeout(BuyVipLevelGiftArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs.meta new file mode 100644 index 00000000..fd0faab2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_BuyVipLevelGift.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9debbcba4838b941b79f03c79f7edfe +timeCreated: 1611404646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs new file mode 100644 index 00000000..dcc7f0a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs @@ -0,0 +1,52 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_CampDuelActivityOperation + { + public static void OnReply(CampDuelActivityOperationArg oArg, CampDuelActivityOperationRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XCampDuelDocument.Doc.SetCampDuelData(oArg, oRes); + bool flag3 = oArg.type == 2u && XCampDuelDocument.Doc.handler != null; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_JOIN_OK"), XCampDuelDocument.Doc.handler.CampName), "fece00"); + } + bool flag4 = oArg.type == 3u; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_CONFIRM_OK"), oArg.arg), "fece00"); + } + bool flag5 = oArg.type == 4u || oArg.type == 5u; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_COURAGE_OK"), oArg.arg), "fece00"); + } + } + } + } + + public static void OnTimeout(CampDuelActivityOperationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs.meta new file mode 100644 index 00000000..cbca4352 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CampDuelActivityOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f14013d8de32da4eb6c38ce0d4d8957 +timeCreated: 1611403908 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeDeclaration.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeDeclaration.cs new file mode 100644 index 00000000..045bc78a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeDeclaration.cs @@ -0,0 +1,42 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChangeDeclaration + { + public static void OnReply(ChangeDeclarationArg oArg, ChangeDeclarationRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag3 = DlgBase.singleton.HomepageHandler != null; + if (flag3) + { + DlgBase.singleton.HomepageHandler.SetDeclaration(oRes.declaration); + } + } + } + } + + public static void OnTimeout(ChangeDeclarationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeDeclaration.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeDeclaration.cs.meta new file mode 100644 index 00000000..9e8864c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeDeclaration.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a87560e33eccac4e9c79501c71e4f51 +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeGuildCard.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeGuildCard.cs new file mode 100644 index 00000000..1c0d5379 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeGuildCard.cs @@ -0,0 +1,43 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChangeGuildCard + { + public static void OnReply(ChangeGuildCardArg oArg, ChangeGuildCardRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildJokerDocument specificDocument = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + specificDocument.WaitRpc = false; + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + specificDocument.ChangeCard(oArg.card, oRes.card, oRes.result); + } + else + { + bool flag3 = oRes.errorcode != ErrorCode.ERR_UNKNOWN; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + + public static void OnTimeout(ChangeGuildCardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeGuildCard.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeGuildCard.cs.meta new file mode 100644 index 00000000..e7cc151d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeGuildCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 306c3c4e909cf684ba772373380c8585 +timeCreated: 1611403521 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeLiveVisible.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeLiveVisible.cs new file mode 100644 index 00000000..b62bc806 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeLiveVisible.cs @@ -0,0 +1,35 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChangeLiveVisible + { + public static void OnReply(ChangeLiveVisibleArg oArg, ChangeLiveVisibleRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpectateSettingSuccess"), "fece00"); + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.VisibleSetting = oArg.visible; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleSettingTextState(); + } + } + } + + public static void OnTimeout(ChangeLiveVisibleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeLiveVisible.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeLiveVisible.cs.meta new file mode 100644 index 00000000..7437b1c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeLiveVisible.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74395210ae0c9e843ac586816462c944 +timeCreated: 1611403943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs new file mode 100644 index 00000000..cb45cf00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChangeOutLookOp + { + public static void OnReply(ChangeOutLookOpArg oArg, ChangeOutLookOpRes oRes) + { + } + + public static void OnTimeout(ChangeOutLookOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs.meta new file mode 100644 index 00000000..8ae42273 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeOutLookOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89eeaa59f54c5f44884085ee4e88c926 +timeCreated: 1611404090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeProfession.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeProfession.cs new file mode 100644 index 00000000..736efda8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeProfession.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChangeProfession + { + public static void OnReply(ChangeProfessionArg oArg, ChangeProfessionRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(ChangeProfessionArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeProfession.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeProfession.cs.meta new file mode 100644 index 00000000..f3c8741c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeProfession.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b322b442cc50a604bb0aab77ff1502e9 +timeCreated: 1611404388 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeRiskBoxState.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeRiskBoxState.cs new file mode 100644 index 00000000..b1e5f3e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeRiskBoxState.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChangeRiskBoxState + { + public static void OnReply(ChangeRiskBoxStateArg oArg, ChangeRiskBoxStateRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSuperRiskDocument specificDocument = XDocuments.GetSpecificDocument(XSuperRiskDocument.uuID); + specificDocument.OnBoxStateChangeSucc(oArg, oRes); + } + else + { + XSingleton.singleton.ShowErrorCode(oRes.error); + } + } + + public static void OnTimeout(ChangeRiskBoxStateArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeRiskBoxState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeRiskBoxState.cs.meta new file mode 100644 index 00000000..c12b263c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeRiskBoxState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9397da318d74cd478176f4567a90a04 +timeCreated: 1611404297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeSkillSet.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeSkillSet.cs new file mode 100644 index 00000000..8e44dc4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeSkillSet.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChangeSkillSet + { + public static void OnReply(ChangeSkillSetArg oArg, ChangeSkillSetRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + specificDocument.OnSwitchSkillPageSuccess(oArg.index, oRes.record); + } + } + } + + public static void OnTimeout(ChangeSkillSetArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeSkillSet.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeSkillSet.cs.meta new file mode 100644 index 00000000..40ca2338 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeSkillSet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba8777aa1cf9f2340baa7181d14b9f7a +timeCreated: 1611404437 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeWatchRole.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeWatchRole.cs new file mode 100644 index 00000000..b562eb29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeWatchRole.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChangeWatchRole + { + public static void OnReply(ChangeWatchRoleArg oArg, ChangeWatchRoleRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.Player.WatchIt(XSingleton.singleton.GetEntityConsiderDeath(oArg.roleID) as XRole); + } + else + { + XSingleton.singleton.AddLog("Change Spectator to ID: ", oArg.roleID.ToString(), "Failed.", null, null, null, XDebugColor.XDebug_None); + } + } + } + + public static void OnTimeout(ChangeWatchRoleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeWatchRole.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeWatchRole.cs.meta new file mode 100644 index 00000000..9599597d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChangeWatchRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3199ad996556a8a4cbcbdd8b064107e8 +timeCreated: 1611403546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Checkin.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Checkin.cs new file mode 100644 index 00000000..d8888852 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Checkin.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_Checkin + { + public static void OnReply(CheckinArg oArg, CheckinRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XLoginRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLoginRewardDocument.uuID); + specificDocument.OnCheckin(oRes); + } + } + + public static void OnTimeout(CheckinArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Checkin.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Checkin.cs.meta new file mode 100644 index 00000000..9c8561ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Checkin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e10ad5e7226c6a40a2f513f8bc34bbf +timeCreated: 1611404003 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseProfession.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseProfession.cs new file mode 100644 index 00000000..0a463332 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseProfession.cs @@ -0,0 +1,54 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChooseProfession + { + public static void OnReply(ChooseProfArg oArg, ChooseProfRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.XPlayerData.Profession = oArg.prof; + int num = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + XEntity entity = XSingleton.singleton.GetEntity(XSingleton.singleton.XPlayerData.RoleID); + bool flag3 = entity != null && entity.Attributes != null; + if (flag3) + { + entity.Attributes.Outlook.SetProfType((uint)num); + entity.Attributes.Outlook.CalculateOutLookFashion(); + XEquipChangeEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetAvatar(XSingleton.singleton.GetProfHeadIcon(num)); + } + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + specificDocument.CreateAndPlayFxFxFirework(); + specificDocument.SkillRefresh(true, true); + XSingleton.singleton.SwitchProf = true; + } + } + } + + public static void OnTimeout(ChooseProfArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseProfession.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseProfession.cs.meta new file mode 100644 index 00000000..d5afa225 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseProfession.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92b518563a1203a44a3d905672094af1 +timeCreated: 1611404148 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseRollReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseRollReq.cs new file mode 100644 index 00000000..dfbcb1b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseRollReq.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChooseRollReq + { + public static void OnReply(ChooseRollReqArg oArg, ChooseRollReqRes oRes) + { + } + + public static void OnTimeout(ChooseRollReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseRollReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseRollReq.cs.meta new file mode 100644 index 00000000..62f0e410 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseRollReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3da31426a6efd30469d76b529da403a7 +timeCreated: 1611403605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseSpecialEffects.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseSpecialEffects.cs new file mode 100644 index 00000000..0e68d7c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseSpecialEffects.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ChooseSpecialEffects + { + public static void OnReply(ChooseSpecialEffectsArg oArg, ChooseSpecialEffectsRes oRes) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + specificDocument.SetActiveSuitEffect(oArg, oRes); + } + + public static void OnTimeout(ChooseSpecialEffectsArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseSpecialEffects.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseSpecialEffects.cs.meta new file mode 100644 index 00000000..271d716a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ChooseSpecialEffects.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 28a148d0c9df1cf4898187fd7a449639 +timeCreated: 1611403475 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendFirstPass.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendFirstPass.cs new file mode 100644 index 00000000..3239dfec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendFirstPass.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_CommendFirstPass + { + public static void OnReply(CommendFirstPassArg oArg, CommendFirstPassRes oRes) + { + FirstPassDocument.Doc.OnGetCommendFirstPass(oRes); + } + + public static void OnTimeout(CommendFirstPassArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendFirstPass.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendFirstPass.cs.meta new file mode 100644 index 00000000..fa22a92f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendFirstPass.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 555640cdcd3c9f44db6029198114e5a4 +timeCreated: 1611403737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendWatchBattle.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendWatchBattle.cs new file mode 100644 index 00000000..54aa450d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendWatchBattle.cs @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_CommendWatchBattle + { + public static void OnReply(CommendWatchBattleArg oArg, CommendWatchBattleRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Spectate_Commend_Succeed"), "fece00"); + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + specificDocument.CommendClickSuccess(); + } + } + } + + public static void OnTimeout(CommendWatchBattleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendWatchBattle.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendWatchBattle.cs.meta new file mode 100644 index 00000000..78f50979 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_CommendWatchBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca8fe63f20b57a0459159b7663fb868d +timeCreated: 1611404542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DEProgressReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DEProgressReq.cs new file mode 100644 index 00000000..20cb50cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DEProgressReq.cs @@ -0,0 +1,19 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_DEProgressReq + { + public static void OnReply(DEProgressArg oArg, DEProgressRes oRes) + { + XDragonCrusadeDocument specificDocument = XDocuments.GetSpecificDocument(XDragonCrusadeDocument.uuID); + specificDocument.OnDEProgressReq(oRes); + XActivityDocument.Doc.OnGetDayCount(); + } + + public static void OnTimeout(DEProgressArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DEProgressReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DEProgressReq.cs.meta new file mode 100644 index 00000000..6ae09d97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DEProgressReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07a46b7d25303684bbe9512f46679547 +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DHRReqC2G.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DHRReqC2G.cs new file mode 100644 index 00000000..7983dd64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DHRReqC2G.cs @@ -0,0 +1,42 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_DHRReqC2G + { + public static void OnReply(DHRArg oArg, DHRRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XDragonRewardDocument specificDocument = XDocuments.GetSpecificDocument(XDragonRewardDocument.uuID); + bool flag4 = specificDocument != null; + if (flag4) + { + specificDocument.OnResAchieve(oRes.rewstate, oRes.helpcount, oRes.wanthelp); + } + } + } + } + } + + public static void OnTimeout(DHRArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DHRReqC2G.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DHRReqC2G.cs.meta new file mode 100644 index 00000000..cd796f1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DHRReqC2G.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6c789623b4c7fd49b00d0e6e6c5a806 +timeCreated: 1611404633 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs new file mode 100644 index 00000000..ea195465 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs @@ -0,0 +1,25 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_DailyTaskAskHelp + { + public static void OnReply(DailyTaskAskHelpArg oArg, DailyTaskAskHelpRes oRes) + { + bool flag = oArg.task_type == PeriodTaskType.PeriodTaskType_Daily; + if (flag) + { + XGuildDailyTaskDocument.Doc.OnGetDailyHelpReply(oArg, oRes); + } + else + { + XGuildWeeklyBountyDocument.Doc.OnGetWeeklyHelpReply(oArg, oRes); + } + } + + public static void OnTimeout(DailyTaskAskHelpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs.meta new file mode 100644 index 00000000..227030fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskAskHelp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0321d99f2a5f6f844be5e237ca61c0cd +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs new file mode 100644 index 00000000..54fa37ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_DailyTaskGiveUp + { + public static void OnReply(DailyTaskGiveUpArg oArg, DailyTaskGiveUpRes oRes) + { + XGuildDailyTaskDocument.Doc.OnGiveUpTask(oRes); + } + + public static void OnTimeout(DailyTaskGiveUpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs.meta new file mode 100644 index 00000000..9ceee921 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DailyTaskGiveUp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee5afb17d00be524bb930dd9738075fb +timeCreated: 1611404797 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DecomposeEquipment.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DecomposeEquipment.cs new file mode 100644 index 00000000..ac660a12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DecomposeEquipment.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_DecomposeEquipment + { + public static void OnReply(DecomposeEquipmentArg oArg, DecomposeEquipmentRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XRecycleItemDocument specificDocument = XDocuments.GetSpecificDocument(XRecycleItemDocument.uuID); + specificDocument.OnRecycle(oRes); + } + } + + public static void OnTimeout(DecomposeEquipmentArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DecomposeEquipment.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DecomposeEquipment.cs.meta new file mode 100644 index 00000000..73b87a81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DecomposeEquipment.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc715d5a0ed6c974dbbba662c5595dfd +timeCreated: 1611404935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoEnterScene.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoEnterScene.cs new file mode 100644 index 00000000..ed1ff9c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoEnterScene.cs @@ -0,0 +1,153 @@ +using System; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_DoEnterScene + { + public static uint runstate + { + get + { + return Process_RpcC2G_DoEnterScene._runstate; + } + } + + private static uint _runstate = 0u; + + public static void OnReply(DoEnterSceneArg oArg, DoEnterSceneRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + XSingleton.singleton.AddErrorLog("RpcC2G_DoEnterScene ERR_INVALID_REQUEST!", null, null, null, null, null); + } + else + { + bool flag2 = !XSingleton.singleton.bSceneLoadedRpcSend; + if (!flag2) + { + XSingleton.singleton.bSceneServerReady = true; + XSingleton.singleton.bSceneLoadedRpcSend = false; + XSingleton.singleton.AddLog("Enter scene ", XSingleton.singleton.SceneID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = oRes.errorcode == ErrorCode.ERR_DOENTERSCENE_FAILED; + if (flag3) + { + XSingleton.singleton.AddLog("ERR_DOENTERSCENE_FAILED", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + Process_RpcC2G_DoEnterScene._runstate = oRes.scenestate.runstate; + Vector3 vector; + vector = new Vector3(oRes.pos.x, oRes.pos.y, oRes.pos.z); + Vector3 vector2 = XSingleton.singleton.FloatToAngle(oRes.face); + Vector3 face = XSingleton.singleton.FloatToAngle(oRes.initface); + XSingleton.singleton.Player.Attributes.OnFightGroupChange((XSingleton.singleton.SyncModeValue != 0) ? oRes.fightgroup : 1u); + XSingleton.singleton.Player.Attributes.AppearAt = vector; + XSingleton.singleton.Player.Net.CorrectNet(vector, face, 0u, true); + XBattleDocument.MiniMapSetRotation(oRes.initface); + GameObject gameObject = GameObject.Find("Scene/BattlePoint"); + XSingleton.singleton.BattleTargetPoint = ((gameObject != null) ? gameObject.transform.position : Vector3.zero); + gameObject = GameObject.Find("Scene/NestPoint"); + XSingleton.singleton.NestTargetPoint = ((gameObject != null) ? gameObject.transform.position : Vector3.zero); + XSingleton.singleton.GameCamera.Root_R_Y_Default = XSingleton.singleton.Player.EngineObject.Rotation.eulerAngles.y; + XSingleton.singleton.GameCamera.Root_R_Y = XSingleton.singleton.GameCamera.Root_R_Y_Default; + bool flag4 = XSingleton.singleton.GameCamera.Wall != null; + if (flag4) + { + XSingleton.singleton.GameCamera.Wall.TargetY = XSingleton.singleton.GameCamera.Root_R_Y_Default; + } + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + XSingleton.singleton.Puppets(XSingleton.singleton.Player, true, true); + XSingleton.singleton.Freezed = true; + XSingleton.singleton.Player.Attributes.OnFightGroupChange(2u); + } + else + { + bool flag5 = XSingleton.singleton.Player.Nav != null; + if (flag5) + { + XSingleton.singleton.Player.Nav.Active(); + } + bool flag6 = XSingleton.singleton.Player.AI != null; + if (flag6) + { + XSingleton.singleton.Player.AI.Active(); + } + bool flag7 = ((ulong)oRes.specialstate & (ulong)(1L << (XFastEnumIntEqualityComparer.ToInt(UnitSpecialState.Unit_Puppet) & 31))) > 0UL; + bool flag8 = ((ulong)oRes.specialstate & (ulong)(1L << (XFastEnumIntEqualityComparer.ToInt(UnitSpecialState.Unit_Invisible) & 31))) > 0UL; + bool flag9 = flag7 || flag8; + if (flag9) + { + XSingleton.singleton.Player.UpdateSpecialStateFromServer(oRes.specialstate, uint.MaxValue); + } + else + { + XSingleton.singleton.Player.Present.ShowUp(); + } + } + bool bSpectator2 = XSingleton.singleton.bSpectator; + if (bSpectator2) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + specificDocument.IsCrossServerBattle = oRes.is_cross; + } + else + { + XBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XBattleDocument.uuID); + specificDocument2.IsCrossServerBattle = oRes.is_cross; + } + for (int i = 0; i < XSingleton.singleton.Doc.Components.Count; i++) + { + (XSingleton.singleton.Doc.Components[i] as XDocComponent).OnEnterSceneFinally(); + } + XOutlookHelper.SetStatusState(XSingleton.singleton.Player.Attributes, XSingleton.singleton.Player, oRes.state, true); + XSingleton.singleton.SceneStarted = oRes.scenestate.isready; + bool flag10 = !XSingleton.singleton.SceneStarted && DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag10) + { + DlgBase.singleton.uiBehaviour.m_PromptFrame.gameObject.SetActive(true); + DlgBase.singleton.SetLoadingPrompt(null, false); + } + bool flag11 = XSingleton.singleton.bSpectator && oRes.iswatchend; + if (flag11) + { + DlgBase.singleton.ShowBackToMainCityTips(); + } + XSingleton.singleton.LevelRewardToken = oRes.battlestamp; + bool isViewGridScene = XSingleton.singleton.IsViewGridScene; + if (isViewGridScene) + { + XSingleton.singleton.Player.Net.SetHallSequence(); + } + bool flag12 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag12) + { + XSingleton.singleton.Player.Attributes.SecurityStatistics.OnStart(); + } + XSingleton.singleton.SetLoginReconnectFlag(oRes.lrdata != null); + bool flag13 = oRes.lrdata != null; + if (flag13) + { + XSingleton.singleton.StartLoginReconnectSync(oRes.lrdata, oRes.otherunits); + } + else + { + XSingleton.singleton.StartEnterSceneSync(oRes.otherunits); + } + } + } + } + } + + public static void OnTimeout(DoEnterSceneArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoEnterScene.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoEnterScene.cs.meta new file mode 100644 index 00000000..040bc75c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoEnterScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 820ad6ee7b179f84195cca120ff87f34 +timeCreated: 1611404039 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoodadItemAllSkillReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoodadItemAllSkillReq.cs new file mode 100644 index 00000000..2ea58cfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoodadItemAllSkillReq.cs @@ -0,0 +1,21 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_DoodadItemAllSkillReq + { + public static void OnReply(EmptyData oArg, DoodadItemAllSkill oRes) + { + bool flag = XRaceDocument.Doc.RaceHandler != null; + if (flag) + { + XRaceDocument.Doc.RaceHandler.RefreshDoodad(oRes); + } + } + + public static void OnTimeout(EmptyData oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoodadItemAllSkillReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoodadItemAllSkillReq.cs.meta new file mode 100644 index 00000000..ca409fce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DoodadItemAllSkillReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3f1ccaad25e7a8478b7267f4c98569b +timeCreated: 1611404600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRecord.cs new file mode 100644 index 00000000..1540a794 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRecord.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_DragonGroupRecord + { + public static void OnReply(DragonGroupRecordC2S oArg, DragonGroupRecordS2C oRes) + { + XDragonPartnerDocument specificDocument = XDocuments.GetSpecificDocument(XDragonPartnerDocument.uuID); + specificDocument.ReceiveDragonGroupRecord(oArg, oRes); + } + + public static void OnTimeout(DragonGroupRecordC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRecord.cs.meta new file mode 100644 index 00000000..f09c37bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53d396b4382a1f248a0361b5f71e0994 +timeCreated: 1611403713 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRoleList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRoleList.cs new file mode 100644 index 00000000..61253eee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRoleList.cs @@ -0,0 +1,42 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_DragonGroupRoleList + { + public static void OnReply(DragonGroupRoleListC2S oArg, DragonGroupRoleListS2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonPartnerDocument specificDocument = XDocuments.GetSpecificDocument(XDragonPartnerDocument.uuID); + bool flag3 = specificDocument != null; + if (flag3) + { + specificDocument.OnReqDragonGropRoleInfo(oArg, oRes); + } + } + } + } + + public static void OnTimeout(DragonGroupRoleListC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRoleList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRoleList.cs.meta new file mode 100644 index 00000000..97019ad1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DragonGroupRoleList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee2fe5628b46e344094051d11290d456 +timeCreated: 1611404795 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DrawLottery.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DrawLottery.cs new file mode 100644 index 00000000..529c4c61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DrawLottery.cs @@ -0,0 +1,71 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_DrawLottery + { + public static void OnReply(DrawLotteryArg oArg, DrawLotteryRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SPRITE_INFIGHT_SAMETYPE; + if (flag2) + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + else + { + bool flag3 = oRes.Items.Count == 0; + if (flag3) + { + LotteryType type = (LotteryType)oArg.type; + if (type - LotteryType.Sprite_Draw_One > 1) + { + if (type - LotteryType.Sprite_GoldDraw_One <= 1) + { + string[] array = XSingleton.singleton.GetValue("SpriteGoldDrawCost").Split(XGlobalConfig.SequenceSeparator); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLotteryEggNotEnough"), "fece00"); + bool flag4 = array.Length != 0; + if (flag4) + { + XSingleton.singleton.ShowItemAccess(int.Parse(array[0]), null); + } + } + } + else + { + string[] array2 = XSingleton.singleton.GetValue("SpriteDrawCost").Split(XGlobalConfig.SequenceSeparator); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLotteryEggNotEnough"), "fece00"); + bool flag5 = array2.Length != 0; + if (flag5) + { + XSingleton.singleton.ShowItemAccess(int.Parse(array2[0]), null); + } + } + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + specificDocument.SetLotteryData(oRes.nextgoodcount); + specificDocument.SetLotteryResultData(oRes.Items, oRes.spriteppt, (LotteryType)oArg.type); + } + } + XSingleton.singleton.AddLog("recv draw lottery result!", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public static void OnTimeout(DrawLotteryArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DrawLottery.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DrawLottery.cs.meta new file mode 100644 index 00000000..2b0e3b67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_DrawLottery.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1db81c6c1b09a90448c0a79b0c767ea0 +timeCreated: 1611403358 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EmblemLevelUp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EmblemLevelUp.cs new file mode 100644 index 00000000..21ed4777 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EmblemLevelUp.cs @@ -0,0 +1,25 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_EmblemLevelUp + { + public static void OnReply(EmblemLevelUpArg oArg, EmblemLevelUpRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + } + + public static void OnTimeout(EmblemLevelUpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EmblemLevelUp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EmblemLevelUp.cs.meta new file mode 100644 index 00000000..6b13497a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EmblemLevelUp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aac0fc100443cb44097992e47cac7c97 +timeCreated: 1611404305 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantActiveAttribute.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantActiveAttribute.cs new file mode 100644 index 00000000..a4cd28f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantActiveAttribute.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_EnchantActiveAttribute + { + public static void OnReply(EnchantActiveAttributeArg oArg, EnchantActiveAttributeRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XEnchantDocument specificDocument = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + specificDocument.OnGetEnchantActiveAttr(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + + public static void OnTimeout(EnchantActiveAttributeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantActiveAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantActiveAttribute.cs.meta new file mode 100644 index 00000000..cfaf7792 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantActiveAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 035b15cb733942541b20af6f21d53bad +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantEquip.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantEquip.cs new file mode 100644 index 00000000..49479047 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantEquip.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_EnchantEquip + { + public static void OnReply(EnchantEquipArg oArg, EnchantEquipRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XEnchantDocument specificDocument = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + specificDocument.OnGetEnchant(oArg, oRes); + } + } + } + + public static void OnTimeout(EnchantEquipArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantEquip.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantEquip.cs.meta new file mode 100644 index 00000000..35a68c12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 885523d0e51a04b4184fe0b12282c7e1 +timeCreated: 1611404083 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantTransfer.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantTransfer.cs new file mode 100644 index 00000000..82def147 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantTransfer.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_EnchantTransfer + { + public static void OnReply(EnchantTransferArg oArg, EnchantTransferRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(EnchantTransferArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantTransfer.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantTransfer.cs.meta new file mode 100644 index 00000000..5adf7746 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnchantTransfer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57910344419a2a947a7be40ea082ea24 +timeCreated: 1611403750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EndGuildCard.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EndGuildCard.cs new file mode 100644 index 00000000..2d04465b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EndGuildCard.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_EndGuildCard + { + public static void OnReply(EndGuildCardArg oArg, EndGuildCardRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XGuildJokerDocument specificDocument = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + specificDocument.EndCardGame(oRes.result); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(EndGuildCardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EndGuildCard.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EndGuildCard.cs.meta new file mode 100644 index 00000000..b302dd42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EndGuildCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 347087d75ab99d847a2c6e3beea368bc +timeCreated: 1611403555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceItem.cs new file mode 100644 index 00000000..53badbcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceItem.cs @@ -0,0 +1,35 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_EnhanceItem + { + public static void OnReply(EnhanceItemArg oArg, EnhanceItemRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XEnhanceDocument specificDocument = XDocuments.GetSpecificDocument(XEnhanceDocument.uuID); + specificDocument.OnEnhanceBack(oRes); + bool flag2 = oRes.ErrorCode == ErrorCode.ERR_ENHANCE_SUCCEED; + if (flag2) + { + XSingleton.singleton.EnhanceItem = true; + } + } + } + + public static void OnTimeout(EnhanceItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceItem.cs.meta new file mode 100644 index 00000000..b05f2344 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67eaaf7761f2db048982ee2f1de9f003 +timeCreated: 1611403880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceTranster.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceTranster.cs new file mode 100644 index 00000000..4109b9a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceTranster.cs @@ -0,0 +1,29 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_EnhanceTranster + { + public static void OnReply(EnhanceTransterArg oArg, EnhanceTransterRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XEquipCreateDocument.Doc.OnReplyEnhanceTransform(oArg, oRes); + } + } + + public static void OnTimeout(EnhanceTransterArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceTranster.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceTranster.cs.meta new file mode 100644 index 00000000..3195aec5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnhanceTranster.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00ffc7c65f696ca45bf55d90510d2cca +timeCreated: 1611402952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterLeisureScene.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterLeisureScene.cs new file mode 100644 index 00000000..77527b56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterLeisureScene.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_EnterLeisureScene + { + public static void OnReply(EnterLeisureSceneArg oArg, EnterLeisureSceneRes oRes) + { + XYorozuyaDocument.Doc.OnReqBack(oRes); + } + + public static void OnTimeout(EnterLeisureSceneArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterLeisureScene.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterLeisureScene.cs.meta new file mode 100644 index 00000000..d67f7004 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterLeisureScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ce886f75ad041b49a10a5f81067a912 +timeCreated: 1611403803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterWatchBattle.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterWatchBattle.cs new file mode 100644 index 00000000..9912f81b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterWatchBattle.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_EnterWatchBattle + { + public static void OnReply(EnterWatchBattleArg oArg, EnterWatchBattleRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + bool flag3 = oRes.error == ErrorCode.ERR_WATCH_LIVEISFULL || oRes.error == ErrorCode.ERR_WATCH_LIVEISOVER; + if (flag3) + { + specificDocument.EnterLiveError(oRes.error == ErrorCode.ERR_WATCH_LIVEISOVER); + } + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + specificDocument.IsLoadingSpectateScene = false; + } + else + { + XSpectateSceneDocument specificDocument2 = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + specificDocument2.IsBlueTeamDict.Clear(); + } + } + } + + public static void OnTimeout(EnterWatchBattleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterWatchBattle.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterWatchBattle.cs.meta new file mode 100644 index 00000000..119f59d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_EnterWatchBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 838df48a2cb0b5843bcec828ef19e15d +timeCreated: 1611404045 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ExpFindBack.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ExpFindBack.cs new file mode 100644 index 00000000..8b62c7d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ExpFindBack.cs @@ -0,0 +1,29 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ExpFindBack + { + public static void OnReply(ExpFindBackArg oArg, ExpFindBackRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFindExpDocument.Doc.OnReplyExpFindBack(oArg, oRes); + } + } + + public static void OnTimeout(ExpFindBackArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ExpFindBack.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ExpFindBack.cs.meta new file mode 100644 index 00000000..1c38e39c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ExpFindBack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e3a2b06651761684496e163e818e8cfd +timeCreated: 1611404734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FashionCompose.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FashionCompose.cs new file mode 100644 index 00000000..8a573c10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FashionCompose.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_FashionCompose + { + public static void OnReply(FashionComposeArg oArg, FashionComposeRes oRes) + { + } + + public static void OnTimeout(FashionComposeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FashionCompose.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FashionCompose.cs.meta new file mode 100644 index 00000000..2e1339ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FashionCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9ecb7cd0819c904592f7ab11ed161b2 +timeCreated: 1611404301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchAchivementReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchAchivementReward.cs new file mode 100644 index 00000000..ff75aa54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchAchivementReward.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_FetchAchivementReward + { + public static void OnReply(FetchAchiveArg oArg, FetchAchiveRes oRes) + { + bool flag = oRes.Result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.Result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.Result, "fece00"); + } + else + { + XSingleton.singleton.GetReward = true; + } + } + } + + public static void OnTimeout(FetchAchiveArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchAchivementReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchAchivementReward.cs.meta new file mode 100644 index 00000000..4134724b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchAchivementReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1326606dcf46f784ca1deaec37f5eea9 +timeCreated: 1611403245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchChapterChest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchChapterChest.cs new file mode 100644 index 00000000..33008177 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchChapterChest.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_FetchChapterChest + { + public static void OnReply(FetchChapterChestArg oArg, FetchChapterChestRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.OnFetchChapterBoxSucc(oArg.chapterID, oArg.chestID); + } + } + } + + public static void OnTimeout(FetchChapterChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchChapterChest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchChapterChest.cs.meta new file mode 100644 index 00000000..f00e0a23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchChapterChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c1d604fb4395804b8cafa02252c2ed4 +timeCreated: 1611403342 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchEnemyDoodadReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchEnemyDoodadReq.cs new file mode 100644 index 00000000..1f188bb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchEnemyDoodadReq.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_FetchEnemyDoodadReq + { + public static void OnReply(EnemyDoodadInfo oArg, RollInfoRes oRes) + { + } + + public static void OnTimeout(EnemyDoodadInfo oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchEnemyDoodadReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchEnemyDoodadReq.cs.meta new file mode 100644 index 00000000..ad62728b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FetchEnemyDoodadReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5df8f7c3f7d9f8c48bd8652352b5688a +timeCreated: 1611403809 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassGetTopRoleInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassGetTopRoleInfo.cs new file mode 100644 index 00000000..63e970d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassGetTopRoleInfo.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_FirstPassGetTopRoleInfo + { + public static void OnReply(FirstPassGetTopRoleInfoArg oArg, FirstPassGetTopRoleInfoRes oRes) + { + FirstPassDocument.Doc.OnGetFirstPassTopRoleInfo(oRes); + } + + public static void OnTimeout(FirstPassGetTopRoleInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassGetTopRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassGetTopRoleInfo.cs.meta new file mode 100644 index 00000000..642fb8a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassGetTopRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59bf65a1fc68ffb46b9b544ae4ad8f08 +timeCreated: 1611403786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs new file mode 100644 index 00000000..40ae0e88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_FirstPassInfoReq + { + public static void OnReply(FirstPassInfoReqArg oArg, FirstPassInfoReqRes oRes) + { + FirstPassDocument.Doc.OnGetFirstPassInfo(oRes); + } + + public static void OnTimeout(FirstPassInfoReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs.meta new file mode 100644 index 00000000..07bf6491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FirstPassInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59b892ac9005521418e3152a1dca05f4 +timeCreated: 1611403786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs new file mode 100644 index 00000000..eb273e75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs @@ -0,0 +1,25 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_FiveDayRewardReq + { + public static void OnReply(FiveRewardRes oArg, FiveRewardRet oRes) + { + bool flag = oRes.ret == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + } + + public static void OnTimeout(FiveRewardRes oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs.meta new file mode 100644 index 00000000..294017c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FiveDayRewardReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51055e0092073e849b342b33f0e49a07 +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ForgeEquip.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ForgeEquip.cs new file mode 100644 index 00000000..fd6faac7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ForgeEquip.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ForgeEquip + { + public static void OnReply(ForgeEquipArg oArg, ForgeEquipRes oRes) + { + XForgeDocument.Doc.OnForgeEquipBack(oArg.type, oRes); + } + + public static void OnTimeout(ForgeEquipArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ForgeEquip.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ForgeEquip.cs.meta new file mode 100644 index 00000000..3236cfe1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ForgeEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05a1d1869946218418be35f4ae887d0f +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FuseEquip.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FuseEquip.cs new file mode 100644 index 00000000..3d142bb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FuseEquip.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_FuseEquip + { + public static void OnReply(FuseEquipArg oArg, FuseEquipRes oRes) + { + EquipFusionDocument.Doc.OnGetEquipFuseInfo(oRes); + } + + public static void OnTimeout(FuseEquipArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FuseEquip.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FuseEquip.cs.meta new file mode 100644 index 00000000..2212edb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_FuseEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7a613b43f2345c4f8165fadaaf86733 +timeCreated: 1611404531 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GMCommand.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GMCommand.cs new file mode 100644 index 00000000..e8d0af42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GMCommand.cs @@ -0,0 +1,19 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class Process_RpcC2G_GMCommand + { + public static void OnReply(GMCmdArg oArg, GMCmdRes oRes) + { + DlgBase.singleton.AddMessage(oRes.outputMessage); + } + + public static void OnTimeout(GMCmdArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GMCommand.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GMCommand.cs.meta new file mode 100644 index 00000000..4d6d742e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GMCommand.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ef940d0a24c36545b420ae381b3a414 +timeCreated: 1611403513 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveBrifInfoReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveBrifInfoReq.cs new file mode 100644 index 00000000..41cf5568 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveBrifInfoReq.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetAchieveBrifInfoReq + { + public static void OnReply(GetAchieveBrifInfoReq oArg, GetAchieveBrifInfoRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + specificDocument.OnResAchieveSurvey(oRes); + } + } + + public static void OnTimeout(GetAchieveBrifInfoReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveBrifInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveBrifInfoReq.cs.meta new file mode 100644 index 00000000..8bf650fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveBrifInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a903496b0e6e71448bc3bc1bc28de262 +timeCreated: 1611404297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveClassifyInfoReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveClassifyInfoReq.cs new file mode 100644 index 00000000..af985d35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveClassifyInfoReq.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetAchieveClassifyInfoReq + { + public static void OnReply(GetAchieveClassifyInfoReq oArg, GetAchieveClassifyInfoRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + specificDocument.OnResAchieveType(oRes); + } + } + + public static void OnTimeout(GetAchieveClassifyInfoReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveClassifyInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveClassifyInfoReq.cs.meta new file mode 100644 index 00000000..92f34eee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveClassifyInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acdb22359eb7da0488581b0bb7f11f04 +timeCreated: 1611404332 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchievePointRewardReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchievePointRewardReq.cs new file mode 100644 index 00000000..c2b00d81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchievePointRewardReq.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetAchievePointRewardReq + { + public static void OnReply(GetAchievePointRewardReq oArg, GetAchievePointRewardRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XDesignationDocument xdesignationDocument = XSingleton.singleton.Doc.GetXComponent(XDesignationDocument.uuID) as XDesignationDocument; + xdesignationDocument.FetchAchieveSurvey(); + } + } + } + + public static void OnTimeout(GetAchievePointRewardReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchievePointRewardReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchievePointRewardReq.cs.meta new file mode 100644 index 00000000..ec5bba33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchievePointRewardReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4ea7c720a3b0aa48a68cec8bd7c517f +timeCreated: 1611404504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveRewardReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveRewardReq.cs new file mode 100644 index 00000000..058e1109 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveRewardReq.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetAchieveRewardReq + { + public static void OnReply(GetAchieveRewardReq oArg, GetAchieveRewardRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + specificDocument.OnClaimedAchieve(oArg.achieveID); + } + } + + public static void OnTimeout(GetAchieveRewardReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveRewardReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveRewardReq.cs.meta new file mode 100644 index 00000000..83b0b545 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAchieveRewardReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 842d51e08e9cda74fa7e51f70890a467 +timeCreated: 1611404047 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityChest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityChest.cs new file mode 100644 index 00000000..ea8203dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityChest.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetActivityChest + { + public static void OnReply(GetActivityChestArg oArg, GetActivityChestRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + XDailyActivitiesDocument specificDocument = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + specificDocument.OnFetchChest(oArg.ChestIndex, oRes.ChestGetInfo, oRes.ItemId, oRes.ItemCount); + } + } + } + + public static void OnTimeout(GetActivityChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityChest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityChest.cs.meta new file mode 100644 index 00000000..eb531b09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2c36c250bdfcd04d8e5af3e042e72a7 +timeCreated: 1611404729 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityInfo.cs new file mode 100644 index 00000000..9710a5c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetActivityInfo + { + public static void OnReply(GetActivityInfoArg oArg, GetActivityInfoRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XDailyActivitiesDocument specificDocument = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + specificDocument.GetDailyActivityData(oRes.Record); + } + } + } + + public static void OnTimeout(GetActivityInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityInfo.cs.meta new file mode 100644 index 00000000..9ad472cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetActivityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0758622a5978e8d42a1d92c4d01d8a0b +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAncientTimesAward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAncientTimesAward.cs new file mode 100644 index 00000000..a7d2bb60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAncientTimesAward.cs @@ -0,0 +1,42 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetAncientTimesAward + { + public static void OnReply(AncientTimesArg oArg, AncientTimesRes oRes) + { + bool flag = oRes == null; + if (flag) + { + } + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XAncientDocument specificDocument = XDocuments.GetSpecificDocument(XAncientDocument.uuID); + specificDocument.ResPoint(oRes.reward); + } + else + { + XSingleton.singleton.ShowErrorCode(oRes.error); + } + } + } + + public static void OnTimeout(AncientTimesArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAncientTimesAward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAncientTimesAward.cs.meta new file mode 100644 index 00000000..e6b68bda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetAncientTimesAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17ae60a4e8ccf7544b6852276fa24e52 +timeCreated: 1611403293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetClassifyDesignationReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetClassifyDesignationReq.cs new file mode 100644 index 00000000..0a381006 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetClassifyDesignationReq.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetClassifyDesignationReq + { + public static void OnReply(GetClassifyDesignationReq oArg, GetClassifyDesignationRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + specificDocument.SetDesignationListData(oRes.dataList, (int)(oArg.type - 1u)); + } + } + } + + public static void OnTimeout(GetClassifyDesignationReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetClassifyDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetClassifyDesignationReq.cs.meta new file mode 100644 index 00000000..21dec986 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetClassifyDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab07933d1f3e18d46a2c02a64c2f324b +timeCreated: 1611404306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetCompeteDragonInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetCompeteDragonInfo.cs new file mode 100644 index 00000000..87a23247 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetCompeteDragonInfo.cs @@ -0,0 +1,35 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetCompeteDragonInfo + { + public static void OnReply(GetCompeteDragonInfoArg oArg, GetCompeteDragonInfoRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.error); + } + else + { + bool flag2 = oArg.opArg == CompeteDragonOpArg.CompeteDragon_GetInfo; + if (flag2) + { + XCompeteDocument.Doc.OnGetCompeteDragonInfo(oRes); + } + else + { + XCompeteDocument.Doc.OnFetchReward(oRes); + } + } + } + + public static void OnTimeout(GetCompeteDragonInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetCompeteDragonInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetCompeteDragonInfo.cs.meta new file mode 100644 index 00000000..9d2df3fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetCompeteDragonInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a30ee77950b942b41a72e2a33381523a +timeCreated: 1611404259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs new file mode 100644 index 00000000..04df5587 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetDailyTaskInfo + { + public static void OnReply(GetDailyTaskInfoArg oArg, GetDailyTaskInfoRes oRes) + { + XGuildDailyTaskDocument.Doc.OnGetDailyTasks(oRes); + XActivityDocument.Doc.OnGetDayCount(); + } + + public static void OnTimeout(GetDailyTaskInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs.meta new file mode 100644 index 00000000..ee835f84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2effdaa18fe981a4680490c2d4a83f35 +timeCreated: 1611403513 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskReward.cs new file mode 100644 index 00000000..a41c7a70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskReward.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetDailyTaskReward + { + public static void OnReply(GetDailyTaskRewardArg oArg, GetDailyTaskRewardRes oRes) + { + XGuildDailyTaskDocument.Doc.OnGetDailyTaskReward(oArg, oRes); + } + + public static void OnTimeout(GetDailyTaskRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskReward.cs.meta new file mode 100644 index 00000000..b3996218 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDailyTaskReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d92e826e2b40e24e8071c75888a822c +timeCreated: 1611403356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDesignationReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDesignationReq.cs new file mode 100644 index 00000000..65e6553a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDesignationReq.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetDesignationReq + { + public static void OnReply(GetDesignationReq oArg, GetDesignationRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + specificDocument.MaxAbilityDesNum = oRes.maxPPT; + specificDocument.SetDesignationInfo(1u, oRes.coverDesignationID, oRes.name); + specificDocument.SetDesignationInfo(2u, oRes.abilityDesignationID, oRes.name); + specificDocument.SetTabRedPoint(oRes.dataList); + } + } + + public static void OnTimeout(GetDesignationReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDesignationReq.cs.meta new file mode 100644 index 00000000..6a25a4d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2625d34f53d71846999185fd24b1e86 +timeCreated: 1611404595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonGuildTaskChest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonGuildTaskChest.cs new file mode 100644 index 00000000..131bb130 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonGuildTaskChest.cs @@ -0,0 +1,40 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetDragonGuildTaskChest + { + public static void OnReply(GetDragonGuildTaskChestArg oArg, GetDragonGuildTaskChestRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XDragonGuildTaskDocument specificDocument = XDocuments.GetSpecificDocument(XDragonGuildTaskDocument.uuID); + bool flag2 = oArg.type == DragonGuildTaskType.TASK_ACHIVEMENT; + if (flag2) + { + specificDocument.OnFetchAchieve(oArg.taskid); + } + else + { + bool flag3 = oArg.type == DragonGuildTaskType.TASK_NORMAL; + if (flag3) + { + specificDocument.OnFetchTask(oArg.taskid); + } + } + } + } + + public static void OnTimeout(GetDragonGuildTaskChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonGuildTaskChest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonGuildTaskChest.cs.meta new file mode 100644 index 00000000..ed4968b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonGuildTaskChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5535958b89724354989c31d1870198e9 +timeCreated: 1611403737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs new file mode 100644 index 00000000..bae9c1a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs @@ -0,0 +1,34 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetDragonTopInfo + { + public static void OnReply(GetDragonTopInfoArg oArg, GetDragonTopInfoRes oRes) + { + bool flag = oRes.errorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonNestDocument specificDocument = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + bool flag2 = oRes.errorCode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + specificDocument.SetDragonNestInfo(oRes.dragonInfo); + } + } + } + + public static void OnTimeout(GetDragonTopInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs.meta new file mode 100644 index 00000000..982129d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetDragonTopInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c82cc87ea942a3b4e91b8931d2ea6ecd +timeCreated: 1611404533 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs new file mode 100644 index 00000000..7dab702c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetEnhanceAttr + { + public static void OnReply(GetEnhanceAttrArg oArg, GetEnhanceAttrRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XEnhanceDocument.Doc.OnReqEnhanceAttrBack(oArg, oRes); + } + } + + public static void OnTimeout(GetEnhanceAttrArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs.meta new file mode 100644 index 00000000..3fcaa5d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetEnhanceAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf92b0370a22afd43826dda7ba496c5e +timeCreated: 1611404581 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFirstPassReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFirstPassReward.cs new file mode 100644 index 00000000..0e91c0d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFirstPassReward.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetFirstPassReward + { + public static void OnReply(GetFirstPassRewardArg oArg, GetFirstPassRewardRes oRes) + { + FirstPassDocument.Doc.OnGetFirstPassReward(oRes); + } + + public static void OnTimeout(GetFirstPassRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFirstPassReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFirstPassReward.cs.meta new file mode 100644 index 00000000..3d205d3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFirstPassReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d297c106fe2165c429cafaad12ec33b9 +timeCreated: 1611404596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlower.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlower.cs new file mode 100644 index 00000000..9f615eca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlower.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetFlower + { + public static void OnReply(GetFlowerArg oArg, GetFlowerRes oRes) + { + bool flag = oRes.errorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.OnGetFlower(oRes); + } + } + + public static void OnTimeout(GetFlowerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlower.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlower.cs.meta new file mode 100644 index 00000000..feb3f71e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 377224247ad8c4d45bed1458077cf3d6 +timeCreated: 1611403565 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerLeftTime.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerLeftTime.cs new file mode 100644 index 00000000..dfd26ebb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerLeftTime.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetFlowerLeftTime + { + public static void OnReply(GetFlowerLeftTimeArg oArg, GetFlowerLeftTimeRes oRes) + { + bool flag = oRes.errorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.OnGetFlowerLeftTime(oRes); + } + } + + public static void OnTimeout(GetFlowerLeftTimeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerLeftTime.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerLeftTime.cs.meta new file mode 100644 index 00000000..ec01afeb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerLeftTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fcddf3d9035cfbd4b8886f28513e3339 +timeCreated: 1611404936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerReward.cs new file mode 100644 index 00000000..7f304510 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerReward.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetFlowerReward + { + public static void OnReply(GetFlowerRewardArg oArg, GetFlowerRewardRes oRes) + { + bool flag = oRes.errorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument.OnGetAward(oArg, oRes); + } + } + + public static void OnTimeout(GetFlowerRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerReward.cs.meta new file mode 100644 index 00000000..539a57ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89a4bbd637ff3794e8b2a08adb0d1edd +timeCreated: 1611404088 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerRewardList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerRewardList.cs new file mode 100644 index 00000000..ed6eb59f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerRewardList.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetFlowerRewardList + { + public static void OnReply(GetFlowerRewardListArg oArg, GetFlowerRewardListRes oRes) + { + } + + public static void OnTimeout(GetFlowerRewardListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerRewardList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerRewardList.cs.meta new file mode 100644 index 00000000..fa03a73d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetFlowerRewardList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfc32360b7c3b2746b9b7785bccace5c +timeCreated: 1611404582 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGoddessTrialRewards.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGoddessTrialRewards.cs new file mode 100644 index 00000000..09c91c34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGoddessTrialRewards.cs @@ -0,0 +1,34 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGoddessTrialRewards + { + public static void OnReply(GetGoddessTrialRewardsArg oArg, GetGoddessTrialRewardsRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.SetGoddessRewardsCanGetTimes(oRes); + } + } + } + + public static void OnTimeout(GetGoddessTrialRewardsArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGoddessTrialRewards.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGoddessTrialRewards.cs.meta new file mode 100644 index 00000000..f9ed6f00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGoddessTrialRewards.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed3b45d4d3788ec41901fda367e50bd4 +timeCreated: 1611404791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusDetailInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusDetailInfo.cs new file mode 100644 index 00000000..023780c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusDetailInfo.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildBonusDetailInfo + { + public static void OnReply(GetGuildBonusDetailInfoArg oArg, GetGuildBonusDetailInfoResult oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.OnGetDetail(oRes); + } + } + + public static void OnTimeout(GetGuildBonusDetailInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusDetailInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusDetailInfo.cs.meta new file mode 100644 index 00000000..6084ba6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusDetailInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27a8fa7adf41fea4f90ebc9edf8c4ed2 +timeCreated: 1611403472 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusLeft.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusLeft.cs new file mode 100644 index 00000000..f1ec16f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusLeft.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildBonusLeft + { + public static void OnReply(GetGuildBonusLeftArg oArg, GetGuildBonusLeftRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.ReceiveGuildBonusLeft(oRes); + } + } + + public static void OnTimeout(GetGuildBonusLeftArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusLeft.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusLeft.cs.meta new file mode 100644 index 00000000..6fe8065d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusLeft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23aef5f0ce66d1d42ab56459b4b76b81 +timeCreated: 1611403456 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusList.cs new file mode 100644 index 00000000..529aae4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusList.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildBonusList + { + public static void OnReply(GetGuildBonusListArg oArg, GetGuildBonusListResult oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.OnGetList(oRes); + } + } + + public static void OnTimeout(GetGuildBonusListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusList.cs.meta new file mode 100644 index 00000000..029c5d1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b01bb0446d2e15044b0abdc4be8b298d +timeCreated: 1611404348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusReward.cs new file mode 100644 index 00000000..3c0bfb13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusReward.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildBonusReward + { + public static void OnReply(GetGuildBonusRewardArg oArg, GetGuildBonusRewardResult oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.OnFetch(oArg, oRes); + } + } + + public static void OnTimeout(GetGuildBonusRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusReward.cs.meta new file mode 100644 index 00000000..422df965 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildBonusReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 11e3ee207505c46448652dcbf20af1e6 +timeCreated: 1611403240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCamPartyRandItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCamPartyRandItem.cs new file mode 100644 index 00000000..b64db461 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCamPartyRandItem.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildCamPartyRandItem + { + public static void OnReply(GetGuildCamPartyRandItemArg oArg, GetGuildCamPartyRandItemRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + + public static void OnTimeout(GetGuildCamPartyRandItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCamPartyRandItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCamPartyRandItem.cs.meta new file mode 100644 index 00000000..49dfe543 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCamPartyRandItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b36fe3a507fca744297fedd73a24b783 +timeCreated: 1611404389 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs new file mode 100644 index 00000000..cd24beb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildCampPartyExchangeInfo + { + public static void OnReply(GetGuildCampPartyExchangeInfoArg oArg, GetGuildCampPartyExchangeInfoRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XRequestDocument specificDocument = XDocuments.GetSpecificDocument(XRequestDocument.uuID); + specificDocument.OnRequestListGet(oRes.infos); + } + } + } + + public static void OnTimeout(GetGuildCampPartyExchangeInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta new file mode 100644 index 00000000..3c826941 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c729fb9a59ec8f4ea7b3d00c79dd81c +timeCreated: 1611403997 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyReward.cs new file mode 100644 index 00000000..bae99cdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyReward.cs @@ -0,0 +1,44 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildCampPartyReward + { + public static void OnReply(GetGuildCampPartyRewardArg oArg, GetGuildCampPartyRewardRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + XGuildCollectDocument specificDocument = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + specificDocument.QueryGetRewardCount(); + DlgBase.singleton.Refresh(); + } + } + } + } + + public static void OnTimeout(GetGuildCampPartyRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyReward.cs.meta new file mode 100644 index 00000000..99bb5b50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCampPartyReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56a8d64372fb81742b59e57111492ec1 +timeCreated: 1611403745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCheckinBox.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCheckinBox.cs new file mode 100644 index 00000000..e03fc222 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCheckinBox.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildCheckinBox + { + public static void OnReply(GetGuildCheckinBoxArg oArg, GetGuildCheckinBoxRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildSignInDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + specificDocument.OnFetchBox(oArg, oRes); + } + } + + public static void OnTimeout(GetGuildCheckinBoxArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCheckinBox.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCheckinBox.cs.meta new file mode 100644 index 00000000..dd612499 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildCheckinBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75e9db13d3a64554bbe566cb2ddf5a7d +timeCreated: 1611403948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildPartyReceiveInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildPartyReceiveInfo.cs new file mode 100644 index 00000000..618fe1d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildPartyReceiveInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildPartyReceiveInfo + { + public static void OnReply(GetGuildPartyReceiveInfoArg oArg, GetGuildPartyReceiveInfoRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XGuildCollectDocument specificDocument = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + specificDocument.OnUseCountGet(oRes.receives); + } + } + } + + public static void OnTimeout(GetGuildPartyReceiveInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildPartyReceiveInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildPartyReceiveInfo.cs.meta new file mode 100644 index 00000000..3417187b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildPartyReceiveInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6584bd034bfdd341843d0c4e9874329 +timeCreated: 1611404746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildQADataReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildQADataReq.cs new file mode 100644 index 00000000..35c92316 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildQADataReq.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetGuildQADataReq + { + public static void OnReply(GetGuildQADataReq oArg, GetGuildQADataRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XGuildRelaxGameDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRelaxGameDocument.uuID); + specificDocument.SetGuildVoiceInfo(oRes.status, oRes.time); + } + } + } + + public static void OnTimeout(GetGuildQADataReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildQADataReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildQADataReq.cs.meta new file mode 100644 index 00000000..b44f9e57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetGuildQADataReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a3710509cec72548b59b7890342071a +timeCreated: 1611403308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleGameRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleGameRecord.cs new file mode 100644 index 00000000..f30e2a2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleGameRecord.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetHeroBattleGameRecord + { + public static void OnReply(GetHeroBattleGameRecordArg oArg, GetHeroBattleGameRecordRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.SetBattleRecord(oRes.games); + } + } + } + + public static void OnTimeout(GetHeroBattleGameRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleGameRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleGameRecord.cs.meta new file mode 100644 index 00000000..ad43d7e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleGameRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c99d16dc81ad6a4dacc82aa5de62871 +timeCreated: 1611403602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleInfo.cs new file mode 100644 index 00000000..59745026 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetHeroBattleInfo + { + public static void OnReply(GetHeroBattleInfoArg oArg, GetHeroBattleInfoRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.SetHeroBattleInfo(oRes); + } + } + } + + public static void OnTimeout(GetHeroBattleInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleInfo.cs.meta new file mode 100644 index 00000000..60d66b09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 965883668642ff34f84647cf8e56216a +timeCreated: 1611404184 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleWeekReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleWeekReward.cs new file mode 100644 index 00000000..40d4c644 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleWeekReward.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetHeroBattleWeekReward + { + public static void OnReply(GetHeroBattleWeekRewardArg oArg, GetHeroBattleWeekRewardRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.OnGetRewardSuccess(oRes.getnextweekprize, oRes.weekprize); + } + } + } + + public static void OnTimeout(GetHeroBattleWeekRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleWeekReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleWeekReward.cs.meta new file mode 100644 index 00000000..95c385a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHeroBattleWeekReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8bd9b38cf18dbe498f1d754fde04549 +timeCreated: 1611404895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHolidayStageInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHolidayStageInfo.cs new file mode 100644 index 00000000..508f2da8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHolidayStageInfo.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetHolidayStageInfo + { + public static void OnReply(GetHolidayStageInfoArg oArg, GetHolidayStageInfoRes oRes) + { + XOperatingActivityDocument specificDocument = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + specificDocument.SetHolidayData(oRes); + } + + public static void OnTimeout(GetHolidayStageInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHolidayStageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHolidayStageInfo.cs.meta new file mode 100644 index 00000000..09ad78dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetHolidayStageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5a2d1b23a4a2b142b4a7e5f7951757b +timeCreated: 1611404628 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetJadeSealAllInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetJadeSealAllInfo.cs new file mode 100644 index 00000000..a9aae512 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetJadeSealAllInfo.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetJadeSealAllInfo + { + public static void OnReply(GetJadeSealAllInfoArg oArg, GetJadeSealAllInfoRes oRes) + { + } + + public static void OnTimeout(GetJadeSealAllInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetJadeSealAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetJadeSealAllInfo.cs.meta new file mode 100644 index 00000000..2b629584 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetJadeSealAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69b2b74fc89955f4f923e45b4a9a0cd0 +timeCreated: 1611403886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs new file mode 100644 index 00000000..7477805d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetLevelSealInfo + { + public static void OnReply(GetLevelSealInfoArg oArg, GetLevelSealInfoRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + specificDocument.SetShowInfo(oArg, oRes); + } + } + } + + public static void OnTimeout(GetLevelSealInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs.meta new file mode 100644 index 00000000..597b0ab8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 998650e4c7b3b484d84ff828c535ffc1 +timeCreated: 1611404196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealSelfGift.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealSelfGift.cs new file mode 100644 index 00000000..872de25b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealSelfGift.cs @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetLevelSealSelfGift + { + public static void OnReply(GetLevelSealSealGiftArg oArg, GetLevelSealSelfGiftRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + else + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + specificDocument.CurrentSelfCollectIndex++; + specificDocument.RefreshSelfGift(); + } + } + } + + public static void OnTimeout(GetLevelSealSealGiftArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealSelfGift.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealSelfGift.cs.meta new file mode 100644 index 00000000..1fc1ad80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLevelSealSelfGift.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ee8546813be24142aec029794f5bf5b +timeCreated: 1611404007 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLuckyActivityInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLuckyActivityInfo.cs new file mode 100644 index 00000000..f2e09246 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLuckyActivityInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetLuckyActivityInfo + { + public static void OnReply(GetLuckyActivityInfoArg oArg, GetLuckyActivityInfoRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XOperatingActivityDocument specificDocument = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + specificDocument.OnReceiveGetLuckyTurntableData(oRes); + } + } + + public static void OnTimeout(GetLuckyActivityInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLuckyActivityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLuckyActivityInfo.cs.meta new file mode 100644 index 00000000..05d16cbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetLuckyActivityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e39b28bfb6a08294cbd10bed2f6572e3 +timeCreated: 1611404734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs new file mode 100644 index 00000000..a6e005b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetMyRiftInfo + { + public static void OnReply(GetMyRiftInfoArg oArg, GetMyRiftInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XRiftDocument specificDocument = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + specificDocument.ResRiftInfo(oRes); + } + } + } + } + + public static void OnTimeout(GetMyRiftInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs.meta new file mode 100644 index 00000000..e6ed2b92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyRiftInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6d4555dc0b3acd4284e3a909a9944c6 +timeCreated: 1611404400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs new file mode 100644 index 00000000..cbfa1d7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetMyWatchRecord + { + public static void OnReply(GetMyWatchRecordArg oArg, GetMyWatchRecordRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.SetMyLiveInfo(oRes.myWatchedNum, oRes.myCommendedNum, oRes.myMostWatchedRecord, oRes.myMostCommendedRecord, oRes.myRecentRecords, oRes.visibleSetting); + } + } + } + + public static void OnTimeout(GetMyWatchRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs.meta new file mode 100644 index 00000000..e5c6c98b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetMyWatchRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 308000aa88af5d647aa962e53e9d81d3 +timeCreated: 1611403521 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs new file mode 100644 index 00000000..3a75697e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetNewZoneBenefit + { + public static void OnReply(GetNewZoneBenefitArg oArg, GetNewZoneBenefitRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XBackFlowDocument.Doc.OnGetNewZoneBenefit(oRes); + } + } + } + + public static void OnTimeout(GetNewZoneBenefitArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs.meta new file mode 100644 index 00000000..9c0f06d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNewZoneBenefit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6880fea48a2060418fffbc0c680693e +timeCreated: 1611404882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNextDayReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNextDayReward.cs new file mode 100644 index 00000000..85bd8004 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNextDayReward.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetNextDayReward + { + public static void OnReply(GetNextDayRewardArg oArg, GetNextDayRewardRes oRes) + { + } + + public static void OnTimeout(GetNextDayRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNextDayReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNextDayReward.cs.meta new file mode 100644 index 00000000..9482c0ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetNextDayReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d21a2ac66df6923418ed7892c78ac532 +timeCreated: 1611404594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetOnlineReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetOnlineReward.cs new file mode 100644 index 00000000..e573a926 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetOnlineReward.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetOnlineReward + { + public static void OnReply(GetOnlineRewardArg oArg, GetOnlineRewardRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XOnlineRewardDocument specificDocument = XDocuments.GetSpecificDocument(XOnlineRewardDocument.uuID); + specificDocument.QueryStatus(); + } + } + } + + public static void OnTimeout(GetOnlineRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetOnlineReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetOnlineReward.cs.meta new file mode 100644 index 00000000..c6b3d9ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetOnlineReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8917a8b1dcc827749a5c41c28387363c +timeCreated: 1611404087 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayAllInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayAllInfo.cs new file mode 100644 index 00000000..bcb94fed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayAllInfo.cs @@ -0,0 +1,20 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetPayAllInfo + { + public static void OnReply(GetPayAllInfoArg oArg, GetPayAllInfoRes oRes) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetPayAllInfo(oArg, oRes); + XRechargeDocument specificDocument2 = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument2.OnGetPayAllInfo(oArg, oRes); + } + + public static void OnTimeout(GetPayAllInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayAllInfo.cs.meta new file mode 100644 index 00000000..ecb7dadc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21da7f5412eb558448ca437de3cbc71e +timeCreated: 1611403416 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayReward.cs new file mode 100644 index 00000000..8bb83928 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayReward.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetPayReward + { + public static void OnReply(GetPayRewardArg oArg, GetPayRewardRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetLittleGiftBox(oArg, oRes); + } + } + } + + public static void OnTimeout(GetPayRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayReward.cs.meta new file mode 100644 index 00000000..65284607 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPayReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5052e3ff0271eb941abf1cccb24cc446 +timeCreated: 1611403703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatShareAward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatShareAward.cs new file mode 100644 index 00000000..8aa9b993 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatShareAward.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetPlatShareAward + { + public static void OnReply(GetPlatShareAwardArg oArg, GetPlatShareAwardRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XAchievementDocument specificDocument = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + specificDocument.OnGetPlatShareAward(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + + public static void OnTimeout(GetPlatShareAwardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatShareAward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatShareAward.cs.meta new file mode 100644 index 00000000..8f16b362 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatShareAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f22903a3a631074c989facd26344a59 +timeCreated: 1611403908 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatformShareChest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatformShareChest.cs new file mode 100644 index 00000000..b7b7eaad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatformShareChest.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetPlatformShareChest + { + public static void OnReply(GetPlatformShareChestArg oArg, GetPlatformShareChestRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + DlgBase.singleton.ReadyShareGift(oArg, oRes); + } + } + } + + public static void OnTimeout(GetPlatformShareChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatformShareChest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatformShareChest.cs.meta new file mode 100644 index 00000000..e300c506 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetPlatformShareChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87bbb8b9548e7be4388399072cc615c0 +timeCreated: 1611404081 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs new file mode 100644 index 00000000..224ce35b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetRiskMapInfos + { + public static void OnReply(GetRiskMapInfosArg oArg, GetRiskMapInfosRes oRes) + { + XSuperRiskDocument.Doc.OnGetMapDynamicInfo(oArg, oRes); + } + + public static void OnTimeout(GetRiskMapInfosArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs.meta new file mode 100644 index 00000000..48fddfbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetRiskMapInfos.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: adbf2a5e791ee234b8e2a67c7150eae2 +timeCreated: 1611404335 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityBigPrize.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityBigPrize.cs new file mode 100644 index 00000000..548103fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityBigPrize.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetSpActivityBigPrize + { + public static void OnReply(GetSpActivityBigPrizeArg oArg, GetSpActivityBigPrizeRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XCarnivalDocument specificDocument = XDocuments.GetSpecificDocument(XCarnivalDocument.uuID); + specificDocument.RespExchange(); + } + else + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + } + + public static void OnTimeout(GetSpActivityBigPrizeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityBigPrize.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityBigPrize.cs.meta new file mode 100644 index 00000000..d7140304 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityBigPrize.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbe64584dfe28454ba4a70a250863dc4 +timeCreated: 1611404443 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs new file mode 100644 index 00000000..baf5492a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs @@ -0,0 +1,58 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetSpActivityReward + { + public static void OnReply(GetSpActivityRewardArg oArg, GetSpActivityRewardRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + int num = XFastEnumIntEqualityComparer.ToInt(ActivityType.BigPrize); + bool flag2 = oArg.actid == 1u; + if (flag2) + { + XCarnivalDocument specificDocument = XDocuments.GetSpecificDocument(XCarnivalDocument.uuID); + specificDocument.RespClaim(oArg.taskid); + } + else + { + bool flag3 = oArg.actid == (uint)num; + if (flag3) + { + XAncientDocument specificDocument2 = XDocuments.GetSpecificDocument(XAncientDocument.uuID); + specificDocument2.ResClaim(); + } + else + { + bool flag4 = oArg.actid == WeekEndNestDocument.Doc.m_actId; + if (flag4) + { + WeekEndNestDocument.Doc.OnGetReward(oRes); + } + else + { + bool flag5 = oArg.actid == 5u; + if (flag5) + { + XBackFlowDocument.Doc.OnGetReward(oArg, oRes); + } + } + } + } + } + else + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + } + + public static void OnTimeout(GetSpActivityRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs.meta new file mode 100644 index 00000000..1aa70c79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSpActivityReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cac5e57f81c9e54d9b812deae4dc0e4 +timeCreated: 1611403692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSweepTowerReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSweepTowerReward.cs new file mode 100644 index 00000000..eac5bd02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSweepTowerReward.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetSweepTowerReward + { + public static void OnReply(GetSweepTowerRewardArg oArg, GetSweepTowerRewardRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.GetSweepSingleTowerRewardRes(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + + public static void OnTimeout(GetSweepTowerRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSweepTowerReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSweepTowerReward.cs.meta new file mode 100644 index 00000000..b7a37e9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSweepTowerReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4571f1b103f121d43bbebb2463102916 +timeCreated: 1611403647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSystemReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSystemReward.cs new file mode 100644 index 00000000..3fa17c9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSystemReward.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetSystemReward + { + public static void OnReply(GetSystemRewardArg oArg, GetSystemRewardRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSystemRewardDocument specificDocument = XDocuments.GetSpecificDocument(XSystemRewardDocument.uuID); + specificDocument.OnFetchReward(oRes); + } + } + + public static void OnTimeout(GetSystemRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSystemReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSystemReward.cs.meta new file mode 100644 index 00000000..6aa13bfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetSystemReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01152f63749740f40a488eb4b64f689c +timeCreated: 1611402952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerActivityTop.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerActivityTop.cs new file mode 100644 index 00000000..827dc293 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerActivityTop.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetTowerActivityTop + { + public static void OnReply(GetTowerActivityTopArg oArg, GetTowerActivityTopRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (!flag) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.GetSingleTowerActivityTopRes(oRes); + } + } + + public static void OnTimeout(GetTowerActivityTopArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerActivityTop.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerActivityTop.cs.meta new file mode 100644 index 00000000..71f73455 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerActivityTop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a06f93164c09a746bb70e5dba53ca8b +timeCreated: 1611404198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerFirstPassReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerFirstPassReward.cs new file mode 100644 index 00000000..829b9523 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerFirstPassReward.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetTowerFirstPassReward + { + public static void OnReply(GetTowerFirstPassRewardArg oArg, GetTowerFirstPassRewardRes oRes) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.GetFirstPassRewardRes(oRes.error); + } + + public static void OnTimeout(GetTowerFirstPassRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerFirstPassReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerFirstPassReward.cs.meta new file mode 100644 index 00000000..53b23fd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetTowerFirstPassReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f039d2660c1b3094f972a77ca8bb49a8 +timeCreated: 1611404830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs new file mode 100644 index 00000000..c74e7525 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetWatchInfoByID + { + public static void OnReply(GetWatchInfoByIDArg oArg, GetWatchInfoByIDRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.SetSpectateInfo(oRes.curTime, oRes.liveRecords); + } + } + } + + public static void OnTimeout(GetWatchInfoByIDArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs.meta new file mode 100644 index 00000000..3793902c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWatchInfoByID.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7403835bdf78de4d97152eafb5c66cf +timeCreated: 1611404401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskInfo.cs new file mode 100644 index 00000000..24f9b951 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskInfo.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetWeeklyTaskInfo + { + public static void OnReply(GetWeeklyTaskInfoArg oArg, GetWeeklyTaskInfoRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + XGuildWeeklyBountyDocument.Doc.OnGetWeeklyTaskInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public static void OnTimeout(GetWeeklyTaskInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskInfo.cs.meta new file mode 100644 index 00000000..53607bfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 938097dba3c69c7479322961fe90d893 +timeCreated: 1611404151 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskReward.cs new file mode 100644 index 00000000..114c423a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskReward.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GetWeeklyTaskReward + { + public static void OnReply(GetWeeklyTaskRewardArg oArg, GetWeeklyTaskRewardRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + XGuildWeeklyBountyDocument.Doc.OnGetWeeklyTaskReward(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public static void OnTimeout(GetWeeklyTaskRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskReward.cs.meta new file mode 100644 index 00000000..fd5a18dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GetWeeklyTaskReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56dd13b8ef312db46b5012bea36a9dee +timeCreated: 1611403746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GmfReadyReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GmfReadyReq.cs new file mode 100644 index 00000000..7a15e3df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GmfReadyReq.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GmfReadyReq + { + public static void OnReply(GmfReadyArg oArg, GmfReadyRes oRes) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnReadyReq(oRes); + } + + public static void OnTimeout(GmfReadyArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GmfReadyReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GmfReadyReq.cs.meta new file mode 100644 index 00000000..d39f8d32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GmfReadyReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0252b7107320b4408b28e0ddbcf8cf9 +timeCreated: 1611404829 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GoldClick.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GoldClick.cs new file mode 100644 index 00000000..ee6654e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GoldClick.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GoldClick + { + public static void OnReply(GoldClickArg oArg, GoldClickRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetMoneyTreeInfo(oArg.type, oArg.count, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + + public static void OnTimeout(GoldClickArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GoldClick.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GoldClick.cs.meta new file mode 100644 index 00000000..7079e931 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GoldClick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d799be20feb059040944390e09daa3a6 +timeCreated: 1611404636 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GrowthFundAward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GrowthFundAward.cs new file mode 100644 index 00000000..608189fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GrowthFundAward.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_GrowthFundAward + { + public static void OnReply(GrowthFundAwardArg oArg, GrowthFundAwardRes oRes) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetGrowthFundAward(oArg, oRes); + } + + public static void OnTimeout(GrowthFundAwardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GrowthFundAward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GrowthFundAward.cs.meta new file mode 100644 index 00000000..e93d0803 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GrowthFundAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1990393e549b83f45a56e4cc6d290b79 +timeCreated: 1611403302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampExchangeOperate.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampExchangeOperate.cs new file mode 100644 index 00000000..a6479393 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampExchangeOperate.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GuildCampExchangeOperate + { + public static void OnReply(GuildCampExchangeOperateArg oArg, GuildCampExchangeOperateRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + + public static void OnTimeout(GuildCampExchangeOperateArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampExchangeOperate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampExchangeOperate.cs.meta new file mode 100644 index 00000000..3d619951 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampExchangeOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7c224564bf837148b4f37caa211dffc +timeCreated: 1611404889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampPartyReqExchange.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampPartyReqExchange.cs new file mode 100644 index 00000000..3c43e9e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampPartyReqExchange.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GuildCampPartyReqExchange + { + public static void OnReply(GuildCampPartyReqExchangeReq oArg, GuildCampPartyReqExchangeRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SendExchangeSuccess"), "fece00"); + } + } + } + + public static void OnTimeout(GuildCampPartyReqExchangeReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampPartyReqExchange.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampPartyReqExchange.cs.meta new file mode 100644 index 00000000..f322ee25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCampPartyReqExchange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e6d27348387df040a4bbd43a10db162 +timeCreated: 1611403203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCheckInBonusInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCheckInBonusInfo.cs new file mode 100644 index 00000000..182cfd78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCheckInBonusInfo.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GuildCheckInBonusInfo + { + public static void OnReply(GuildCheckInBonusInfoArg oArg, GuildCheckInBonusInfoRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.OnGuildCheckInBonusInfo(oRes); + } + } + + public static void OnTimeout(GuildCheckInBonusInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCheckInBonusInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCheckInBonusInfo.cs.meta new file mode 100644 index 00000000..2aa4bf0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildCheckInBonusInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b4b3f4c823ba3145ad51c5743e88917 +timeCreated: 1611403891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs new file mode 100644 index 00000000..2382c83c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GuildGoblinInfo + { + public static void OnReply(GuildGoblinInfoArg oArg, GuildGoblinInfoRes oRes) + { + bool flag = oRes.errorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorCode == ErrorCode.ERR_SUCCESS; + if (!flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorCode, "fece00"); + } + } + } + + public static void OnTimeout(GuildGoblinInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs.meta new file mode 100644 index 00000000..150d3841 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildGoblinInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: afbd393831280ee4d9f1cac094d109e6 +timeCreated: 1611404346 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildPartySummonSpirit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildPartySummonSpirit.cs new file mode 100644 index 00000000..b35e5a4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildPartySummonSpirit.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_GuildPartySummonSpirit + { + public static void OnReply(GuildPartySummonSpiritArg oArg, GuildPartySummonSpiritRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GuildCollectSummonSuccess"), "fece00"); + } + } + } + + public static void OnTimeout(GuildPartySummonSpiritArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildPartySummonSpirit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildPartySummonSpirit.cs.meta new file mode 100644 index 00000000..d829d9b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_GuildPartySummonSpirit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53f858f60ff01bc449f23bce6957680c +timeCreated: 1611403713 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_HorseReConnect.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_HorseReConnect.cs new file mode 100644 index 00000000..8f67fc98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_HorseReConnect.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_HorseReConnect + { + public static void OnReply(HorseReConnectArg oArg, HorseReConnectRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XRaceDocument specificDocument = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + specificDocument.RefreshAllInfo(oRes); + } + } + } + + public static void OnTimeout(HorseReConnectArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_HorseReConnect.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_HorseReConnect.cs.meta new file mode 100644 index 00000000..0cdcec25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_HorseReConnect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef68dd4c205a1114c84ec3ff0bfaecdd +timeCreated: 1611404803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_IdentifyEmblem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_IdentifyEmblem.cs new file mode 100644 index 00000000..45b08f47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_IdentifyEmblem.cs @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_IdentifyEmblem + { + public static void OnReply(IdentifyEmblemArg oArg, IdentifyEmblemRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XEmblemDocument specificDocument = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + specificDocument.ShowIdentifySucEffect(); + specificDocument.RefreshTips(oArg.uid); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(IdentifyEmblemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_IdentifyEmblem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_IdentifyEmblem.cs.meta new file mode 100644 index 00000000..95307d57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_IdentifyEmblem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6d62eb355da35543b7d7a0643986594 +timeCreated: 1611404747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InlayAllJade.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InlayAllJade.cs new file mode 100644 index 00000000..cdca949e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InlayAllJade.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_InlayAllJade + { + public static void OnReply(InlayAllJadeArg oArg, InlayAllJadeRes oRes) + { + } + + public static void OnTimeout(InlayAllJadeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InlayAllJade.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InlayAllJade.cs.meta new file mode 100644 index 00000000..8fc8cdd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InlayAllJade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: def4800760b1c6041be2c99b75986b1c +timeCreated: 1611404690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InspireReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InspireReq.cs new file mode 100644 index 00000000..a95c8493 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InspireReq.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_InspireReq + { + public static void OnReply(InspireArg oArg, InspireRes oRes) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.OnInspireReq(oRes); + } + + public static void OnTimeout(InspireArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InspireReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InspireReq.cs.meta new file mode 100644 index 00000000..c2aba026 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_InspireReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e9ecbe397652c764093356393a947268 +timeCreated: 1611404758 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemBuffOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemBuffOp.cs new file mode 100644 index 00000000..56cee2ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemBuffOp.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ItemBuffOp + { + public static void OnReply(ItemBuffOpArg oArg, ItemBuffOpRes oRes) + { + XGuildResContentionBuffDocument.Doc.OnGetPersonalBuffOperationResult(oArg, oRes); + } + + public static void OnTimeout(ItemBuffOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemBuffOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemBuffOp.cs.meta new file mode 100644 index 00000000..9269df33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemBuffOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae03debb065e0964fae898994d30ff64 +timeCreated: 1611404337 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemCompose.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemCompose.cs new file mode 100644 index 00000000..86ae134a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemCompose.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ItemCompose + { + public static void OnReply(ItemComposeArg oArg, ItemComposeRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + } + } + + public static void OnTimeout(ItemComposeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemCompose.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemCompose.cs.meta new file mode 100644 index 00000000..fff9c804 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53eb6f7ed3b170c4dba20a33bb6a43c2 +timeCreated: 1611403713 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBack.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBack.cs new file mode 100644 index 00000000..9c580187 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBack.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ItemFindBack + { + public static void OnReply(ItemFindBackArg oArg, ItemFindBackRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetRewardFindBack(oArg); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + + public static void OnTimeout(ItemFindBackArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBack.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBack.cs.meta new file mode 100644 index 00000000..6bd4cdc2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9606002a07c1cd941a973940e5fb67e4 +timeCreated: 1611404183 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs new file mode 100644 index 00000000..3eaab9bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ItemFindBackInfo + { + public static void OnReply(ItemFindBackInfoArg oArg, ItemFindBackInfoRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetRewardInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + + public static void OnTimeout(ItemFindBackInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs.meta new file mode 100644 index 00000000..21a3801c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemFindBackInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6d21ce491e589145ae0d6065ee602b6 +timeCreated: 1611404400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemSell.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemSell.cs new file mode 100644 index 00000000..5ee36af9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemSell.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ItemSell + { + public static void OnReply(ItemSellArg oArg, ItemSellRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SELL_SUCCESS"), "fece00"); + } + } + } + + public static void OnTimeout(ItemSellArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemSell.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemSell.cs.meta new file mode 100644 index 00000000..48fb8a49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ItemSell.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c1a5aba99fc8a64a8e2716e81adbc42 +timeCreated: 1611404098 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeCompose.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeCompose.cs new file mode 100644 index 00000000..3ebbc482 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeCompose.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_JadeCompose + { + public static void OnReply(JadeComposeArg oArg, JadeComposeRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XJadeDocument xjadeDocument = XSingleton.singleton.Doc.GetXComponent(XJadeDocument.uuID) as XJadeDocument; + xjadeDocument.OnComposeJade(oArg, oRes); + } + } + + public static void OnTimeout(JadeComposeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeCompose.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeCompose.cs.meta new file mode 100644 index 00000000..72e20ad0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb3f0b50d65354343abbace3b468dad6 +timeCreated: 1611404930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeComposeNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeComposeNew.cs new file mode 100644 index 00000000..a1aa649c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeComposeNew.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_JadeComposeNew + { + public static void OnReply(JadeComposeNewArg oArg, JadeComposeNewRes oRes) + { + } + + public static void OnTimeout(JadeComposeNewArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeComposeNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeComposeNew.cs.meta new file mode 100644 index 00000000..4067a132 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeComposeNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b34a01accb15fd24898db31f221bf558 +timeCreated: 1611404388 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperation.cs new file mode 100644 index 00000000..1d411b89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperation.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_JadeOperation + { + public static void OnReply(JadeOperationArg oArg, JadeOperationRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + specificDocument.OnOperateJade(oArg, oRes); + } + } + + public static void OnTimeout(JadeOperationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperation.cs.meta new file mode 100644 index 00000000..2392d67e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6502e74134593a7429d0fe4353ac4d8b +timeCreated: 1611403849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperationNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperationNew.cs new file mode 100644 index 00000000..fe905efd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperationNew.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_JadeOperationNew + { + public static void OnReply(JadeOperationNewArg oArg, JadeOperationNewRes oRes) + { + } + + public static void OnTimeout(JadeOperationNewArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperationNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperationNew.cs.meta new file mode 100644 index 00000000..ba513455 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JadeOperationNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c50c02d211e90a44a6e7759309d20fc +timeCreated: 1611403690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JustDance.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JustDance.cs new file mode 100644 index 00000000..a22df869 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JustDance.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_JustDance + { + public static void OnReply(JustDanceArg oArg, JustDanceRes oRes) + { + XDanceDocument specificDocument = XDocuments.GetSpecificDocument(XDanceDocument.uuID); + specificDocument.OnJustDance(oArg, oRes); + } + + public static void OnTimeout(JustDanceArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JustDance.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JustDance.cs.meta new file mode 100644 index 00000000..a80ea9d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_JustDance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54f68c53e02256647b2358fa7868fd65 +timeCreated: 1611403736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LeagueBattleReadyReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LeagueBattleReadyReq.cs new file mode 100644 index 00000000..3ff1304b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LeagueBattleReadyReq.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_LeagueBattleReadyReq + { + public static void OnReply(LeagueBattleReadyReqArg oArg, LeagueBattleReadyReqRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(LeagueBattleReadyReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LeagueBattleReadyReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LeagueBattleReadyReq.cs.meta new file mode 100644 index 00000000..af8df3bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LeagueBattleReadyReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d3b5800034c3114687614b5325889ec +timeCreated: 1611404104 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LearnGuildSkill.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LearnGuildSkill.cs new file mode 100644 index 00000000..649dc783 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LearnGuildSkill.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_LearnGuildSkill + { + public static void OnReply(LearnGuildSkillAgr oArg, LearnGuildSkillRes oRes) + { + XGuildSkillDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSkillDocument.uuID); + specificDocument.ReceiveLearnGuildSKill(oArg, oRes); + } + + public static void OnTimeout(LearnGuildSkillAgr oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LearnGuildSkill.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LearnGuildSkill.cs.meta new file mode 100644 index 00000000..40496c33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LearnGuildSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df69effdacf967242ab52d25f2a30a89 +timeCreated: 1611404692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealButtonStatus.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealButtonStatus.cs new file mode 100644 index 00000000..9ab18207 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealButtonStatus.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_LevelSealButtonStatus + { + public static void OnReply(LevelSealOverExpArg oArg, LevelSealOverExpRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + specificDocument.LevelSealButtonClick(oArg, oRes); + } + } + } + + public static void OnTimeout(LevelSealOverExpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealButtonStatus.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealButtonStatus.cs.meta new file mode 100644 index 00000000..0af71694 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealButtonStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3fa0a220599ca84ba483015284ec585 +timeCreated: 1611404850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealExchange.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealExchange.cs new file mode 100644 index 00000000..f5aff1a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealExchange.cs @@ -0,0 +1,23 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_LevelSealExchange + { + public static void OnReply(LevelSealExchangeArg oArg, LevelSealExchangeRes oRes) + { + bool flag = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + } + + public static void OnTimeout(LevelSealExchangeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealExchange.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealExchange.cs.meta new file mode 100644 index 00000000..f02a575b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelSealExchange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 095b31e5b3c507b4ba5b0e879ad1b60f +timeCreated: 1611403155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs new file mode 100644 index 00000000..74990169 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_LevelUpSlotAttr + { + public static void OnReply(LevelUpSlotAttrArg oArg, LevelUpSlotAttrRes oRes) + { + } + + public static void OnTimeout(LevelUpSlotAttrArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs.meta new file mode 100644 index 00000000..e59c3502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LevelUpSlotAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 877dae8e83bb4d64f86a9608aef7c974 +timeCreated: 1611404079 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LotteryDraw.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LotteryDraw.cs new file mode 100644 index 00000000..ad0201f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LotteryDraw.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_LotteryDraw + { + public static void OnReply(LotteryDrawReq oArg, LotteryDrawRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XOperatingActivityDocument specificDocument = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + specificDocument.OnReceiveUseLuckyTurntable(oRes); + } + } + + public static void OnTimeout(LotteryDrawReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LotteryDraw.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LotteryDraw.cs.meta new file mode 100644 index 00000000..3327f9a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_LotteryDraw.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c5fc471c79d15b4c85163337419354d +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MobaSignaling.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MobaSignaling.cs new file mode 100644 index 00000000..fbb0e7f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MobaSignaling.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_MobaSignaling + { + public static void OnReply(MobaSignalingArg oArg, MobaSignalingRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(MobaSignalingArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MobaSignaling.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MobaSignaling.cs.meta new file mode 100644 index 00000000..91b6f459 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MobaSignaling.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4bb784291776bb488ab22f4656b85b6 +timeCreated: 1611404283 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MulActivityReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MulActivityReq.cs new file mode 100644 index 00000000..7af2ed59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MulActivityReq.cs @@ -0,0 +1,29 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_MulActivityReq + { + public static void OnReply(MulActivityArg oArg, MulActivityRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XActivityDocument.Doc.SetMulActivityInfo(oRes.actinfo); + } + } + + public static void OnTimeout(MulActivityArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MulActivityReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MulActivityReq.cs.meta new file mode 100644 index 00000000..a8dac868 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_MulActivityReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8b9a68bdca4fb540ad5c6878c4281f4 +timeCreated: 1611404895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs new file mode 100644 index 00000000..6fbb6e0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_OpenGuildQAReq + { + public static void OnReply(OpenGuildQAReq oArg, OpenGuildQARes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XGuildRelaxGameDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRelaxGameDocument.uuID); + specificDocument.GetGuildVoiceInfo(); + } + } + } + + public static void OnTimeout(OpenGuildQAReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs.meta new file mode 100644 index 00000000..bb45e405 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenGuildQAReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9233b2e6e234e74a8d1cd6ba0c6c8f2 +timeCreated: 1611404897 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenSceneChest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenSceneChest.cs new file mode 100644 index 00000000..00f4b93e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenSceneChest.cs @@ -0,0 +1,34 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_OpenSceneChest + { + public static void OnReply(OpenSceneChestArg oArg, OpenSceneChestRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + xlevelDocument.OnFetchSceneChestSucc(oArg.sceneID); + } + } + } + + public static void OnTimeout(OpenSceneChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenSceneChest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenSceneChest.cs.meta new file mode 100644 index 00000000..4d988f84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_OpenSceneChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 965ebf6643278bf498ac36eff4dbfb01 +timeCreated: 1611404185 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Operation520Festival.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Operation520Festival.cs new file mode 100644 index 00000000..bc94e3df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Operation520Festival.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_Operation520Festival + { + public static void OnReply(Operation520FestivalArg oArg, Operation520FestivalRes oRes) + { + } + + public static void OnTimeout(Operation520FestivalArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Operation520Festival.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Operation520Festival.cs.meta new file mode 100644 index 00000000..53ed7083 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Operation520Festival.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6171836d83855dc4298f8e6350711196 +timeCreated: 1611403838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PandoraLottery.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PandoraLottery.cs new file mode 100644 index 00000000..2bddac3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PandoraLottery.cs @@ -0,0 +1,56 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_PandoraLottery + { + public static void OnReply(PandoraLotteryArg oArg, PandoraLotteryRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + ErrorCode errorcode = oRes.errorcode; + if (errorcode != ErrorCode.ERR_SUCCESS) + { + if (errorcode != ErrorCode.ERR_PANDORA_LACKOF_FIRE) + { + if (errorcode != ErrorCode.ERR_PANDORA_LACKOF_HEART) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + PandoraDocument specificDocument = XDocuments.GetSpecificDocument(PandoraDocument.uuID); + XSingleton.singleton.ShowItemAccess((int)specificDocument.PandoraData.PandoraID, null); + } + } + else + { + PandoraDocument specificDocument2 = XDocuments.GetSpecificDocument(PandoraDocument.uuID); + XSingleton.singleton.ShowItemAccess((int)specificDocument2.PandoraData.FireID, null); + } + } + else + { + PandoraDocument specificDocument3 = XDocuments.GetSpecificDocument(PandoraDocument.uuID); + specificDocument3.GetPandoraLotteryResult(oRes.items); + XShowGetItemDocument specificDocument4 = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + specificDocument4.ClearItemQueue(); + } + } + } + + public static void OnTimeout(PandoraLotteryArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PandoraLottery.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PandoraLottery.cs.meta new file mode 100644 index 00000000..cdaf7a63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PandoraLottery.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb91563e865bc6e44af0286730a912b1 +timeCreated: 1611404442 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayCardAward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayCardAward.cs new file mode 100644 index 00000000..bf23e582 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayCardAward.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_PayCardAward + { + public static void OnReply(PayCardAwardArg oArg, PayCardAwardRes oRes) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetCardDailyDiamond(oArg, oRes); + } + + public static void OnTimeout(PayCardAwardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayCardAward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayCardAward.cs.meta new file mode 100644 index 00000000..f2138ca7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayCardAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a6eb2be66ee7c240b7a3059a9dfec42 +timeCreated: 1611404091 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayClick.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayClick.cs new file mode 100644 index 00000000..534e9b61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayClick.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_PayClick + { + public static void OnReply(PayClickArg oArg, PayClickRes oRes) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.RefreshFirstClickTabRedpoint(oArg, oRes); + } + + public static void OnTimeout(PayClickArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayClick.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayClick.cs.meta new file mode 100644 index 00000000..6878c92a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayClick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ce041a22918fb84ea1f8db39efbf6ac +timeCreated: 1611403349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFirstAward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFirstAward.cs new file mode 100644 index 00000000..8c0527ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFirstAward.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_PayFirstAward + { + public static void OnReply(PayFirstAwardArg oArg, PayFirstAwardRes oRes) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnGetPayFirstAward(oRes); + } + + public static void OnTimeout(PayFirstAwardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFirstAward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFirstAward.cs.meta new file mode 100644 index 00000000..e7ae1bf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFirstAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18bbf3539e020054da4418bf359c175d +timeCreated: 1611403298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFriendItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFriendItem.cs new file mode 100644 index 00000000..21f8991a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFriendItem.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_PayFriendItem + { + public static void OnReply(PayFriendItemArg oArg, PayFriendItemRes oRes) + { + bool flag = oRes.ret == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.OnGetBuyGoodsOrder(oArg, oRes); + } + } + + public static void OnTimeout(PayFriendItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFriendItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFriendItem.cs.meta new file mode 100644 index 00000000..d487bf53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PayFriendItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fe988b8c75c8724c99239382468a20d +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PeerBox.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PeerBox.cs new file mode 100644 index 00000000..c6c5a723 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PeerBox.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_PeerBox + { + public static void OnReply(PeerBoxArg oArg, PeerBoxRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.SetPeerChest(oArg.index - 1u, oRes.item, oRes.type); + } + } + } + + public static void OnTimeout(PeerBoxArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PeerBox.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PeerBox.cs.meta new file mode 100644 index 00000000..072f8a2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PeerBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc6b7a7fdbdaca24c9067bc1da775455 +timeCreated: 1611404935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PersonalCareer.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PersonalCareer.cs new file mode 100644 index 00000000..ce58e025 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PersonalCareer.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_PersonalCareer + { + public static void OnReply(PersonalCareerArg oArg, PersonalCareerRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + DlgBase.singleton.SetCareer(oArg, oRes); + } + } + } + + public static void OnTimeout(PersonalCareerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PersonalCareer.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PersonalCareer.cs.meta new file mode 100644 index 00000000..108bd1b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PersonalCareer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e9234d7b76ecd74d90259a8d29d60a2 +timeCreated: 1611403510 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs new file mode 100644 index 00000000..f7366198 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs @@ -0,0 +1,71 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_PetOperation + { + public static void OnReply(PetOperationArg oArg, PetOperationRes oRes) + { + PetOP type = oArg.type; + if (type == PetOP.PetExpTransfer) + { + bool flag = DlgBase.singleton.ExpTransferHandler != null; + if (flag) + { + DlgBase.singleton.ExpTransferHandler.m_CanTransfer = true; + } + } + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + switch (oArg.type) + { + case PetOP.PetFellow: + specificDocument.OnMount(oArg, oRes); + break; + case PetOP.PetFight: + specificDocument.OnFight(oArg, oRes); + break; + case PetOP.PetFeed: + specificDocument.OnFeed(oArg, oRes); + break; + case PetOP.PetTouch: + specificDocument.OnPetTouch(oArg, oRes); + break; + case PetOP.PetRelease: + specificDocument.OnRelease(oArg, oRes); + break; + case PetOP.ExpandSeat: + specificDocument.OnBuySeat(oArg, oRes); + break; + case PetOP.SetPetPairRide: + specificDocument.OnReqSetTravelSetBack(oArg, oRes); + break; + case PetOP.QueryPetPairRideInvite: + specificDocument.OnReqReqInviteListBack(oArg, oRes); + break; + case PetOP.OffPetPairRide: + specificDocument.OnReqOffPetPairRideBack(); + break; + case PetOP.IgnorePetPairRideInvite: + specificDocument.OnReqIgnoreAllBack(); + break; + } + specificDocument.OnPetOperation(oArg, oRes); + } + } + + public static void OnTimeout(PetOperationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs.meta new file mode 100644 index 00000000..a3d09c1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e687ed9766f416542891dcce99c29e41 +timeCreated: 1611404746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperationOther.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperationOther.cs new file mode 100644 index 00000000..f1c4a725 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperationOther.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_PetOperationOther + { + public static void OnReply(PetOperationOtherArg oArg, PetOperationOtherRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + specificDocument.OnPetPetOperationOtherBack(oArg, oRes); + } + } + + public static void OnTimeout(PetOperationOtherArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperationOther.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperationOther.cs.meta new file mode 100644 index 00000000..a21399fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PetOperationOther.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 435e50dc9e8a9434899d9c9043dd3bc0 +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PhotographEffect.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PhotographEffect.cs new file mode 100644 index 00000000..0f58eab9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PhotographEffect.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_PhotographEffect + { + public static void OnReply(PhotographEffectArg oArg, PhotographEffect oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + XScreenShotShareDocument specificDocument = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + specificDocument.OnGetPhotoGraphEffect(oRes); + } + } + + public static void OnTimeout(PhotographEffectArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PhotographEffect.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PhotographEffect.cs.meta new file mode 100644 index 00000000..a53539ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PhotographEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35aa64c2d2512674abbe0015c851d5c9 +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceOver.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceOver.cs new file mode 100644 index 00000000..ea5e9414 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceOver.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_PlayDiceOver + { + public static void OnReply(PlayDiceOverArg oArg, PlayDiceOverRes oRes) + { + XSuperRiskDocument.Doc.OnMoveOver(oRes); + } + + public static void OnTimeout(PlayDiceOverArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceOver.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceOver.cs.meta new file mode 100644 index 00000000..718082bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceOver.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2738449087497bd47ad1081cd575aeb0 +timeCreated: 1611403470 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceRequest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceRequest.cs new file mode 100644 index 00000000..b0cf5ec1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceRequest.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_PlayDiceRequest + { + public static void OnReply(PlayDiceRequestArg oArg, PlayDiceRequestRes oRes) + { + XSuperRiskDocument.Doc.OnGetDicingResult(oRes); + } + + public static void OnTimeout(PlayDiceRequestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceRequest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceRequest.cs.meta new file mode 100644 index 00000000..2d3ed859 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PlayDiceRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b822d24ee4bd0e4392abba073c3151b +timeCreated: 1611403316 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpAllReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpAllReq.cs new file mode 100644 index 00000000..86ba72f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpAllReq.cs @@ -0,0 +1,56 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_PvpAllReq + { + public static void OnReply(PvpArg oArg, PvpRes oRes) + { + bool flag = oRes.err == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.err == ErrorCode.ERR_CAN_INGORE; + if (!flag2) + { + bool flag3 = oRes.err > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.err, "fece00"); + } + else + { + XCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + bool flag4 = oArg.type == PvpReqType.PVP_REQ_BASE_DATA; + if (flag4) + { + specificDocument.SetShowInfo(oArg, oRes); + } + bool flag5 = oArg.type == PvpReqType.PVP_REQ_HISTORY_REC; + if (flag5) + { + specificDocument.SetBattleRecord(oRes); + } + bool flag6 = oArg.type == PvpReqType.PVP_REQ_GET_WEEKREWARD; + if (flag6) + { + specificDocument.SetWeekReward(oArg, oRes); + } + } + } + } + } + + public static void OnTimeout(PvpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpAllReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpAllReq.cs.meta new file mode 100644 index 00000000..6b544796 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpAllReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c898418e98a607a4989939d2c9c08cb2 +timeCreated: 1611404535 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpNowAllData.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpNowAllData.cs new file mode 100644 index 00000000..b5d5b82f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpNowAllData.cs @@ -0,0 +1,34 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_PvpNowAllData + { + public static void OnReply(roArg oArg, PvpNowGameData oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + bool bNoShowLog = oArg.bNoShowLog; + if (bNoShowLog) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + } + else + { + XBattleCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + specificDocument.SetReqBattleCaptainPVPRefreshInfo(oArg, oRes); + } + } + + public static void OnTimeout(roArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpNowAllData.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpNowAllData.cs.meta new file mode 100644 index 00000000..a8d699ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_PvpNowAllData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 493b56f9790f7bb429b2118f6354aa19 +timeCreated: 1611403660 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryBoxs.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryBoxs.cs new file mode 100644 index 00000000..f5307979 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryBoxs.cs @@ -0,0 +1,48 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryBoxs + { + public static void OnReply(QueryBoxsArg oArg, QueryBoxsRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + ErrorCode errorcode = oRes.errorcode; + if (errorcode != ErrorCode.ERR_SUCCESS) + { + if (errorcode != ErrorCode.ERR_QUERYBOX_TIMELEFT) + { + if (errorcode != ErrorCode.ERR_INVALID_STATE) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + else + { + specificDocument.SetSelectBoxLeftTime(oRes.timeleft); + } + } + else + { + specificDocument.SetBoxsInfo(oRes.boxinfos); + } + } + } + + public static void OnTimeout(QueryBoxsArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryBoxs.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryBoxs.cs.meta new file mode 100644 index 00000000..40a1c5f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryBoxs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36cadfd2721b6454987a53d1409b1fa5 +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryClientIp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryClientIp.cs new file mode 100644 index 00000000..d8078ec1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryClientIp.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryClientIp + { + public static void OnReply(QueryClientIpArg oArg, QueryClientIpRes oRes) + { + XChatDocument.m_ClientIP = oRes.ip; + RpcC2A_AudioAuthKey rpcC2A_AudioAuthKey = new RpcC2A_AudioAuthKey(); + rpcC2A_AudioAuthKey.oArg.ip = oRes.ip; + rpcC2A_AudioAuthKey.oArg.open_id = "63662733"; + XSingleton.singleton.Send(rpcC2A_AudioAuthKey); + } + + public static void OnTimeout(QueryClientIpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryClientIp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryClientIp.cs.meta new file mode 100644 index 00000000..3d4dc76e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryClientIp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2caa5ccc41775f4cb211d56ade9ab34 +timeCreated: 1611404258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryGuildCard.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryGuildCard.cs new file mode 100644 index 00000000..47c30d5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryGuildCard.cs @@ -0,0 +1,31 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryGuildCard + { + public static void OnReply(QueryGuildCardArg oArg, QueryGuildCardRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildJokerDocument specificDocument = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + specificDocument.SetGameCount(oRes.playcount, oRes.changecount, oRes.buychangcount); + specificDocument.SetBestCard(oRes.bestcards, oRes.bestrole); + } + } + + public static void OnTimeout(QueryGuildCardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryGuildCard.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryGuildCard.cs.meta new file mode 100644 index 00000000..08003629 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryGuildCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a47f0f8ef85d7ee43bcba7d0e21f6942 +timeCreated: 1611404282 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryIBItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryIBItem.cs new file mode 100644 index 00000000..980cc9be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryIBItem.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryIBItem + { + public static void OnReply(IBQueryItemReq oArg, IBQueryItemRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument.RespItems(oArg, oRes); + } + } + + public static void OnTimeout(IBQueryItemReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryIBItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryIBItem.cs.meta new file mode 100644 index 00000000..56bac8d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryIBItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7fac7b82dd31b0c41844859b0832b4eb +timeCreated: 1611404031 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryLotteryCD.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryLotteryCD.cs new file mode 100644 index 00000000..07f649c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryLotteryCD.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryLotteryCD + { + public static void OnReply(QueryLotteryCDArg oArg, QueryLotteryCDRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + specificDocument.OnQueryLotteryCD(oRes.goldbuycooldown, oRes.cooldown, oRes.goldbuycount, oRes.coinbaodi); + } + } + + public static void OnTimeout(QueryLotteryCDArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryLotteryCD.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryLotteryCD.cs.meta new file mode 100644 index 00000000..ad96f9c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryLotteryCD.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c65dead08df421f4c93827482fd7097b +timeCreated: 1611404509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryOpenGameActivityTime.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryOpenGameActivityTime.cs new file mode 100644 index 00000000..4c7f8190 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryOpenGameActivityTime.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryOpenGameActivityTime + { + public static void OnReply(QueryOpenGameArg oArg, QueryOpenGameRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XAchievementDocument specificDocument = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + specificDocument.SetOpenServerActivityTime(oRes.timeLeft); + } + } + + public static void OnTimeout(QueryOpenGameArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryOpenGameActivityTime.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryOpenGameActivityTime.cs.meta new file mode 100644 index 00000000..ccb8f93f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryOpenGameActivityTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db9466d78ec233c4eb6c0d0a1d6591fa +timeCreated: 1611404653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryPowerPoint.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryPowerPoint.cs new file mode 100644 index 00000000..581da313 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryPowerPoint.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryPowerPoint + { + public static void OnReply(QueryPowerPointArg oArg, QueryPowerPointRes oRes) + { + XFPStrengthenDocument specificDocument = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + specificDocument.RefreshUi(oRes); + } + + public static void OnTimeout(QueryPowerPointArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryPowerPoint.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryPowerPoint.cs.meta new file mode 100644 index 00000000..ab176ca8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryPowerPoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3740a149078563e4185927b5ca63fcba +timeCreated: 1611403564 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQFriendsVipInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQFriendsVipInfo.cs new file mode 100644 index 00000000..a25fc076 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQFriendsVipInfo.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryQQFriendsVipInfo + { + public static void OnReply(QueryQQFriendsVipInfoArg oArg, QueryQQFriendsVipInfoRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.OnGetQQFriendsVipInfo(oArg, oRes); + } + } + + public static void OnTimeout(QueryQQFriendsVipInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQFriendsVipInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQFriendsVipInfo.cs.meta new file mode 100644 index 00000000..d98fe8e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQFriendsVipInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7bfaffd941122ef428b813f9d2f6cee5 +timeCreated: 1611403995 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs new file mode 100644 index 00000000..76fe3cc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryQQVipInfo + { + public static void OnReply(QueryQQVipInfoArg oArg, QueryQQVipInfoRes oRes) + { + XPlatformAbilityDocument specificDocument = XDocuments.GetSpecificDocument(XPlatformAbilityDocument.uuID); + specificDocument.OnQueryQQVipInfo(oArg, oRes); + } + + public static void OnTimeout(QueryQQVipInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs.meta new file mode 100644 index 00000000..4b27d360 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryQQVipInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 357ca3ea72d30c34f9a9829bef3f52d8 +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneDayCount.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneDayCount.cs new file mode 100644 index 00000000..35d42e9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneDayCount.cs @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QuerySceneDayCount + { + public static void OnReply(QuerySceneDayCountArg oArg, QuerySceneDayCountRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + switch (oArg.type) + { + case 1u: + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + xlevelDocument.UpdateSceneDayTime(oRes); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnGetSceneDayCount(oRes); + break; + } + } + } + } + + public static void OnTimeout(QuerySceneDayCountArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneDayCount.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneDayCount.cs.meta new file mode 100644 index 00000000..6a420402 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneDayCount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13e4b9a2fa093ef4ba12cd366e04ab86 +timeCreated: 1611403251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs new file mode 100644 index 00000000..56707392 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs @@ -0,0 +1,43 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QuerySceneTime + { + public static void OnReply(QuerySceneTimeArg oArg, QuerySceneTimeRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + bool flag2 = XSingleton.singleton.SceneType != SceneType.SCENE_CASTLE_WAIT && XSingleton.singleton.SceneType != SceneType.SCENE_CASTLE_FIGHT; + if (flag2) + { + XBattleDocument xbattleDoc = XSingleton.singleton.Doc.XBattleDoc; + XSpectateSceneDocument xspectateSceneDoc = XSingleton.singleton.Doc.XSpectateSceneDoc; + bool flag3 = oRes.time >= 0; + if (flag3) + { + xbattleDoc.ResetSceneTime(oRes.time); + xspectateSceneDoc.ResetSceneTime(oRes.time); + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_RIFT; + if (flag4) + { + XRiftDocument specificDocument = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + specificDocument.ResSceneTime(oRes.time); + } + } + } + } + } + + public static void OnTimeout(QuerySceneTimeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs.meta new file mode 100644 index 00000000..b6726ebb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QuerySceneTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f89db04e1f02af746ad45a50cb130ecf +timeCreated: 1611404894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryShopItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryShopItem.cs new file mode 100644 index 00000000..32c385f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryShopItem.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_QueryShopItem + { + public static void OnReply(QueryShopItemArg oArg, QueryShopItemRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.OnGetGoodsList(oArg, oRes); + } + } + + public static void OnTimeout(QueryShopItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryShopItem.cs.meta new file mode 100644 index 00000000..d96bd8bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_QueryShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2af41180359814c438663d69a29a46ac +timeCreated: 1611403497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReEnterRiskBattle.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReEnterRiskBattle.cs new file mode 100644 index 00000000..41e27296 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReEnterRiskBattle.cs @@ -0,0 +1,23 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ReEnterRiskBattle + { + public static void OnReply(ReEnterRiskBattleArg oArg, ReEnterRiskBattleRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + + public static void OnTimeout(ReEnterRiskBattleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReEnterRiskBattle.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReEnterRiskBattle.cs.meta new file mode 100644 index 00000000..ab85128e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReEnterRiskBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43a627080d16b574498779248f843f0b +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshSweepReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshSweepReward.cs new file mode 100644 index 00000000..42ebf87c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshSweepReward.cs @@ -0,0 +1,25 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_RefreshSweepReward + { + public static void OnReply(RefreshSweepRewardArg oArg, RefreshSweepRewardRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.RefreshSingleSweepRewardRes(oRes.error, oRes.refreshResult); + } + + public static void OnTimeout(RefreshSweepRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshSweepReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshSweepReward.cs.meta new file mode 100644 index 00000000..f5476054 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshSweepReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b717c4f2d173c8b4699011bcb104a6d2 +timeCreated: 1611404401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshWeeklyTask.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshWeeklyTask.cs new file mode 100644 index 00000000..18e62d38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshWeeklyTask.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_RefreshWeeklyTask + { + public static void OnReply(RefreshWeeklyTaskArg oArg, RefreshWeeklyTaskRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + XGuildWeeklyBountyDocument.Doc.OnRefreshTaskList(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public static void OnTimeout(RefreshWeeklyTaskArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshWeeklyTask.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshWeeklyTask.cs.meta new file mode 100644 index 00000000..4c659b5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RefreshWeeklyTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9b643f10bd0daf4cb0003257f3bf04d +timeCreated: 1611404900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReplyPartyExchangeItemOpt.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReplyPartyExchangeItemOpt.cs new file mode 100644 index 00000000..fed0896a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReplyPartyExchangeItemOpt.cs @@ -0,0 +1,52 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ReplyPartyExchangeItemOpt + { + public static void OnReply(ReplyPartyExchangeItemOptArg oArg, ReplyPartyExchangeItemOptRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XRequestDocument specificDocument = XDocuments.GetSpecificDocument(XRequestDocument.uuID); + bool flag3 = oArg.operate_type == 3u; + if (flag3) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + bool flag4 = oArg.operate_type == 2u; + if (flag4) + { + specificDocument.RemoveList(true, 0UL); + } + else + { + specificDocument.RemoveList(false, oArg.lauch_role_id); + } + } + } + } + + public static void OnTimeout(ReplyPartyExchangeItemOptArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReplyPartyExchangeItemOpt.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReplyPartyExchangeItemOpt.cs.meta new file mode 100644 index 00000000..df960456 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReplyPartyExchangeItemOpt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a412d18e40607e409178c94d6054a87 +timeCreated: 1611403162 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBadPlayer.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBadPlayer.cs new file mode 100644 index 00000000..a71b5cdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBadPlayer.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ReportBadPlayer + { + public static void OnReply(ReportBadPlayerArg oArg, ReportBadPlayerRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PVPReportSuccess"), "fece00"); + } + } + } + + public static void OnTimeout(ReportBadPlayerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBadPlayer.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBadPlayer.cs.meta new file mode 100644 index 00000000..0ec23aea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBadPlayer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b75ceb4a230133488d26b24fe0ef304 +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBattle.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBattle.cs new file mode 100644 index 00000000..d572e003 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBattle.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ReportBattle + { + public static void OnReply(ReportBattleArg oArg, ReportBattleRes oRes) + { + } + + public static void OnTimeout(ReportBattleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBattle.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBattle.cs.meta new file mode 100644 index 00000000..9882ab22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReportBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32a6e9bcc3b37e64da21615e28aa3bff +timeCreated: 1611403550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGetLoginReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGetLoginReward.cs new file mode 100644 index 00000000..d6c3626c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGetLoginReward.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ReqGetLoginReward + { + public static void OnReply(LoginRewardGetReq oArg, LoginRewardGetRet oRes) + { + bool flag = oRes.ret == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSevenLoginDocument specificDocument = XDocuments.GetSpecificDocument(XSevenLoginDocument.uuID); + specificDocument.ReceiveLoginReward(oArg, oRes); + } + } + + public static void OnTimeout(LoginRewardGetReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGetLoginReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGetLoginReward.cs.meta new file mode 100644 index 00000000..c7455050 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGetLoginReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98694da365e99c849ba0728a69fc9770 +timeCreated: 1611404190 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs new file mode 100644 index 00000000..4318da52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ReqGuildBossTimeLeft + { + public static void OnReply(getguildbosstimeleftArg oArg, getguildbosstimeleftRes oRes) + { + XGuildDragonDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument.OnGetBattleInfo(oRes); + } + + public static void OnTimeout(getguildbosstimeleftArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs.meta new file mode 100644 index 00000000..17bf9ce0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqGuildBossTimeLeft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0cfa29fd322be5046bed29c42f619218 +timeCreated: 1611403176 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqPlayerAutoPlay.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqPlayerAutoPlay.cs new file mode 100644 index 00000000..c46b8ae8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqPlayerAutoPlay.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ReqPlayerAutoPlay + { + public static void OnReply(ReqAutoPlay oArg, RetAutoPlay oRes) + { + } + + public static void OnTimeout(ReqAutoPlay oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqPlayerAutoPlay.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqPlayerAutoPlay.cs.meta new file mode 100644 index 00000000..528da97f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReqPlayerAutoPlay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bcd37894f3c134c43b9fab13bcb6e3c9 +timeCreated: 1611404448 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarAllInfoReqOne.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarAllInfoReqOne.cs new file mode 100644 index 00000000..2f05c4c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarAllInfoReqOne.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ResWarAllInfoReqOne + { + public static void OnReply(ResWarArg oArg, ResWarRes oRes) + { + XGuildMineBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineBattleDocument.uuID); + specificDocument.SetBattleAllInfo(oArg, oRes); + } + + public static void OnTimeout(ResWarArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarAllInfoReqOne.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarAllInfoReqOne.cs.meta new file mode 100644 index 00000000..ea683789 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarAllInfoReqOne.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69cc88e4ac3f3d14b83ebc1c69ed0b76 +timeCreated: 1611403886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarBuff.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarBuff.cs new file mode 100644 index 00000000..1da089b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarBuff.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ResWarBuff + { + public static void OnReply(ResWarBuffArg oArg, ResWarBuffRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + DlgBase.singleton.ShowGuildMineBuff(oRes); + } + } + } + + public static void OnTimeout(ResWarBuffArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarBuff.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarBuff.cs.meta new file mode 100644 index 00000000..dd2cd498 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResWarBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6208d0c9e718ec948b29848f32b7c8d8 +timeCreated: 1611403839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetSkill.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetSkill.cs new file mode 100644 index 00000000..1244bb7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetSkill.cs @@ -0,0 +1,59 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ResetSkill + { + public static void OnReply(ResetSkillArg oArg, ResetSkillRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + bool flag3 = oArg.resetType == ResetType.RESET_PROFESSION; + if (flag3) + { + XSingleton.singleton.XPlayerData.Profession = oRes.prof; + XEntity entity = XSingleton.singleton.GetEntity(XSingleton.singleton.XPlayerData.RoleID); + bool flag4 = entity != null && entity.Attributes != null; + if (flag4) + { + entity.Attributes.Outlook.SetProfType(XSingleton.singleton.XPlayerData.TypeID); + entity.Attributes.Outlook.CalculateOutLookFashion(); + XEquipChangeEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + } + } + bool flag5 = DlgBase.singleton.LastSelectPromote > 1; + if (flag5) + { + DlgBase.singleton.LastSelectPromote = 1; + } + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + specificDocument.SkillRefresh(true, true); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(ResetSkillArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetSkill.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetSkill.cs.meta new file mode 100644 index 00000000..9c70818a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c573a785d5bfc294e92c048d05e59067 +timeCreated: 1611404506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetTower.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetTower.cs new file mode 100644 index 00000000..31b9dca1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetTower.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ResetTower + { + public static void OnReply(ResetTowerArg oArg, ResetTowerRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.ResetSingleTowerRes(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + + public static void OnTimeout(ResetTowerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetTower.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetTower.cs.meta new file mode 100644 index 00000000..2f098e62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ResetTower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06baed26c85ee7c4b8601e9c2d51df59 +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs new file mode 100644 index 00000000..150f2cc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ReturnSmeltStone + { + public static void OnReply(ReturnSmeltStoneArg oArg, ReturnSmeltStoneRes oRes) + { + XSmeltDocument.Doc.SmeltReturnBack(oRes); + } + + public static void OnTimeout(ReturnSmeltStoneArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs.meta new file mode 100644 index 00000000..d824c044 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ReturnSmeltStone.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b33861b3b85311642ac613bfebaa84d1 +timeCreated: 1611404388 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Revive.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Revive.cs new file mode 100644 index 00000000..4bfcc3d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Revive.cs @@ -0,0 +1,90 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_Revive + { + public static void OnReply(ReviveArg oArg, ReviveRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSingleton.singleton.AddLog("Revieve Type: " + oArg.type, null, null, null, null, null, XDebugColor.XDebug_None); + XReviveDocument specificDocument = XDocuments.GetSpecificDocument(XReviveDocument.uuID); + specificDocument.ResetAutoReviveData(); + ErrorCode result = oRes.result; + if (result != ErrorCode.ERR_SUCCESS) + { + if (result != ErrorCode.ERR_REVIVE_MAXNUM) + { + ReviveType type = oArg.type; + if (type != ReviveType.ReviveItem) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag2 = specificDocument.SpecialCostID > 0u; + if (flag2) + { + specificDocument.ShowSpecialRevive(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + else + { + switch (oArg.type) + { + case ReviveType.ReviveItem: + case ReviveType.ReviveMoney: + specificDocument.SetReviveData(specificDocument.ReviveUsedTime + 1, specificDocument.ReviveCostTime + 1, ReviveType.ReviveNone); + break; + case ReviveType.ReviveSprite: + { + bool flag3 = oArg.clientinfo != null && oArg.clientinfo.islimit; + if (flag3) + { + specificDocument.SetReviveData(specificDocument.ReviveUsedTime + 1, specificDocument.ReviveCostTime, ReviveType.ReviveNone); + } + break; + } + case ReviveType.ReviveVIP: + { + bool flag4 = specificDocument.VipReviveCount > 0u; + if (flag4) + { + XReviveDocument xreviveDocument = specificDocument; + uint vipReviveCount = xreviveDocument.VipReviveCount - 1u; + xreviveDocument.VipReviveCount = vipReviveCount; + } + specificDocument.SetReviveData(specificDocument.ReviveUsedTime + 1, specificDocument.ReviveCostTime, ReviveType.ReviveNone); + break; + } + } + } + } + } + + public static void OnTimeout(ReviveArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Revive.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Revive.cs.meta new file mode 100644 index 00000000..90da87bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Revive.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e503f5bf50c45c468810d5648820051 +timeCreated: 1611404241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiftFirstPassReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiftFirstPassReward.cs new file mode 100644 index 00000000..70031748 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiftFirstPassReward.cs @@ -0,0 +1,51 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_RiftFirstPassReward + { + public static void OnReply(RiftFirstPassRewardArg oArg, RiftFirstPassRewardRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XRiftDocument specificDocument = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + bool flag4 = oArg.opType == RiftFirstPassOpType.Rift_FirstPass_Op_GetReward; + if (flag4) + { + specificDocument.SetFirstPassClaim((int)oArg.floor); + } + specificDocument.ResFisrtPassRwd(oArg.opType, oRes); + } + } + } + } + + public static void OnTimeout(RiftFirstPassRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiftFirstPassReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiftFirstPassReward.cs.meta new file mode 100644 index 00000000..53328815 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiftFirstPassReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe80f2346ace38f47832c1e63b6da4d2 +timeCreated: 1611404941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiskBuyRequest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiskBuyRequest.cs new file mode 100644 index 00000000..a1b7f292 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiskBuyRequest.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_RiskBuyRequest + { + public static void OnReply(RiskBuyRequestArg oArg, RiskBuyRequestRes oRes) + { + XSuperRiskDocument.Doc.BuyOnlineBoxBack(oRes); + } + + public static void OnTimeout(RiskBuyRequestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiskBuyRequest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiskBuyRequest.cs.meta new file mode 100644 index 00000000..ab23c045 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_RiskBuyRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d08683e47974b864f80152cbf34c29f1 +timeCreated: 1611404587 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SceneMobaOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SceneMobaOp.cs new file mode 100644 index 00000000..ed9a7e6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SceneMobaOp.cs @@ -0,0 +1,42 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SceneMobaOp + { + public static void OnReply(SceneMobaOpArg oArg, SceneMobaOpRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag3 = oArg.op == MobaOp.MobaOp_Upgrade; + if (flag3) + { + uint param = oArg.param; + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("MobaAdditionSuccess" + param.ToString()), oRes.nowparam), "fece00"); + } + } + } + } + + public static void OnTimeout(SceneMobaOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SceneMobaOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SceneMobaOp.cs.meta new file mode 100644 index 00000000..3b7f78c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SceneMobaOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01bc819f427a72d4792b2ec6c9d311dd +timeCreated: 1611402954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChargeBackRole.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChargeBackRole.cs new file mode 100644 index 00000000..5fd1ce96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChargeBackRole.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SelectChargeBackRole + { + public static void OnReply(SelectChargeBackRoleArg oArg, SelectChargeBackRoleRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XBackFlowDocument.Doc.OnGetSelectRoleReply(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + + public static void OnTimeout(SelectChargeBackRoleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChargeBackRole.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChargeBackRole.cs.meta new file mode 100644 index 00000000..f4cec363 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChargeBackRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd5b3b87611b84846bfe155d780a833c +timeCreated: 1611404451 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChestReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChestReward.cs new file mode 100644 index 00000000..cef68a2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChestReward.cs @@ -0,0 +1,34 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SelectChestReward + { + public static void OnReply(SelectChestArg oArg, SelectChestRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (!flag2) + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.SetPlayerSelectChestID((int)oArg.chestIdx); + } + } + } + + public static void OnTimeout(SelectChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChestReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChestReward.cs.meta new file mode 100644 index 00000000..6ac9b11c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectChestReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db51e13a8c1e0b94cb9135b8c0c2eeea +timeCreated: 1611404651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectHeroAncientPower.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectHeroAncientPower.cs new file mode 100644 index 00000000..0a6669ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectHeroAncientPower.cs @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SelectHeroAncientPower + { + public static void OnReply(SelectHeroAncientPowerArg oArg, SelectHeroAncientPowerRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(string.Format("HeroAncientUse{0}", oArg.selectpower)), "fece00"); + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.OnAncientPercentGet(0f); + } + } + } + + public static void OnTimeout(SelectHeroAncientPowerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectHeroAncientPower.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectHeroAncientPower.cs.meta new file mode 100644 index 00000000..abfd5cdb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SelectHeroAncientPower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbb8af21858d02e409d1475979178320 +timeCreated: 1611404654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendFlower.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendFlower.cs new file mode 100644 index 00000000..1b81932a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendFlower.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SendFlower + { + public static void OnReply(SendFlowerArg oArg, SendFlowerRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFlowerSendDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerSendDocument.uuID); + specificDocument.OnSendFlower(oArg, oRes); + } + } + + public static void OnTimeout(SendFlowerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendFlower.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendFlower.cs.meta new file mode 100644 index 00000000..eaed6a30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendFlower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49bdc7d3ab35b0548b2d62a5ef659f1e +timeCreated: 1611403662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendGuildBonus.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendGuildBonus.cs new file mode 100644 index 00000000..9fb731da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendGuildBonus.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SendGuildBonus + { + public static void OnReply(SendGuildBonusArg oArg, SendGuildBonusRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.OnSendGuildBonus(oRes); + } + } + + public static void OnTimeout(SendGuildBonusArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendGuildBonus.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendGuildBonus.cs.meta new file mode 100644 index 00000000..400220b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SendGuildBonus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aabbd24771b9afe4c910da10f2279eff +timeCreated: 1611404304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetDesignationReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetDesignationReq.cs new file mode 100644 index 00000000..028ef68a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetDesignationReq.cs @@ -0,0 +1,43 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SetDesignationReq + { + public static void OnReply(SetDesignationReq oArg, SetDesignationRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + bool flag3 = oArg.type == 2u; + if (flag3) + { + specificDocument.DealWithAppearRedPoint(oArg.designationID, oRes.dataList); + } + specificDocument.SetDesignationInfo(oArg.type, oArg.designationID, oRes.name); + } + } + } + + public static void OnTimeout(SetDesignationReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetDesignationReq.cs.meta new file mode 100644 index 00000000..02e45f23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0400df4754d223c47b9ff0a857a8fe7f +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetHeroInHeroBattle.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetHeroInHeroBattle.cs new file mode 100644 index 00000000..bfbd8d1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetHeroInHeroBattle.cs @@ -0,0 +1,47 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SetHeroInHeroBattle + { + public static void OnReply(SetHeroInHeroBattleArg oArg, SetHeroInHeroBattleRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XHeroBattleSkillDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + bool flag2 = oRes.errorcode == ErrorCode.ERR_CANTCHOOSEHERO; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + specificDocument.SetAlreadySelectHero(); + } + else + { + bool flag3 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + specificDocument.OnSelectHeroSuccess(oArg.heroid); + } + } + } + } + + public static void OnTimeout(SetHeroInHeroBattleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetHeroInHeroBattle.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetHeroInHeroBattle.cs.meta new file mode 100644 index 00000000..614d1287 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetHeroInHeroBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b37f1d65b7a0cb748a8708fed66ac5c9 +timeCreated: 1611404389 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetPreShow.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetPreShow.cs new file mode 100644 index 00000000..efb66468 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetPreShow.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_SetPreShow + { + public static void OnReply(SetPreShowArg oArg, SetPreShowRes oRes) + { + XPrerogativeDocument specificDocument = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + specificDocument.ReceivePreCache(oArg, oRes); + } + + public static void OnTimeout(SetPreShowArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetPreShow.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetPreShow.cs.meta new file mode 100644 index 00000000..b1ca401b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetPreShow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5816f4fead8700a46afa8efc87b6f8f1 +timeCreated: 1611403752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetRoleConfig.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetRoleConfig.cs new file mode 100644 index 00000000..e2368a38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetRoleConfig.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_SetRoleConfig + { + public static void OnReply(SetRoleConfigReq oArg, SetRoleConfigRes oRes) + { + } + + public static void OnTimeout(SetRoleConfigReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetRoleConfig.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetRoleConfig.cs.meta new file mode 100644 index 00000000..eb8fc861 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SetRoleConfig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6afbfe4276259a4b958ca9c92e9e3a6 +timeCreated: 1611404398 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShadowCatOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShadowCatOperation.cs new file mode 100644 index 00000000..d0ab33cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShadowCatOperation.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ShadowCatOperation + { + public static void OnReply(ShadowCatOperationArg oArg, ShadowCatOperationRes oRes) + { + } + + public static void OnTimeout(ShadowCatOperationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShadowCatOperation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShadowCatOperation.cs.meta new file mode 100644 index 00000000..e98ab653 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShadowCatOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc5b6b9d4fed3e24e9a7f3ed0925f33e +timeCreated: 1611404678 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShowFlowerPage.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShowFlowerPage.cs new file mode 100644 index 00000000..3810b5a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShowFlowerPage.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_ShowFlowerPage + { + public static void OnReply(ShowFlowerPageArg oArg, ShowFlowerPageRes oRes) + { + } + + public static void OnTimeout(ShowFlowerPageArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShowFlowerPage.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShowFlowerPage.cs.meta new file mode 100644 index 00000000..4fbf5a7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ShowFlowerPage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3101c5960b21bf74490c0be44bc1a0b7 +timeCreated: 1611403523 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkillLevelup.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkillLevelup.cs new file mode 100644 index 00000000..888ad3d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkillLevelup.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SkillLevelup + { + public static void OnReply(SkillLevelupArg oArg, SkillLevelupRes oRes) + { + bool flag = oRes.errorcode == 257u; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = (ulong)oRes.errorcode == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ErrorCode.ERR_SUCCESS)); + if (flag2) + { + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + specificDocument.OnSkillLevelUp(oArg.skillHash); + uint skillLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillLevel(oArg.skillHash); + bool flag3 = skillLevel == 1u; + if (flag3) + { + bool flag4 = specificDocument.IsPassiveSkill(oArg.skillHash); + bool flag5 = flag4; + if (flag5) + { + List skillRow = new List(); + XEmblemDocument specificDocument2 = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + bool flag6 = specificDocument2.IsEquipThisSkillEmblem(oArg.skillHash, ref skillRow); + bool flag7 = flag6; + if (flag7) + { + specificDocument.ShowTips(skillRow, true); + } + } + } + } + else + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(oArg.skillHash, 0u); + bool flag8 = (ulong)oRes.errorcode == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ErrorCode.ERR_SKILL_POINT)) && skillConfig != null && skillConfig.IsAwake; + if (flag8) + { + XSingleton.singleton.ShowItemAccess(XFastEnumIntEqualityComparer.ToInt(ItemEnum.AWAKE_SKILL_POINT), null); + } + else + { + XSingleton.singleton.ShowSystemTip((ErrorCode)oRes.errorcode, "fece00"); + } + } + } + } + + public static void OnTimeout(SkillLevelupArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkillLevelup.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkillLevelup.cs.meta new file mode 100644 index 00000000..4b094718 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkillLevelup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5870eb8b8fa2c284daffe26e2cbaa920 +timeCreated: 1611403754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkyCityAllInfoReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkyCityAllInfoReq.cs new file mode 100644 index 00000000..66c42639 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkyCityAllInfoReq.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_SkyCityAllInfoReq + { + public static void OnReply(SkyCityArg oArg, SkyCityRes oRes) + { + XSkyArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + specificDocument.SetBattleAllInfo(oArg, oRes); + } + + public static void OnTimeout(SkyCityArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkyCityAllInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkyCityAllInfoReq.cs.meta new file mode 100644 index 00000000..799c3853 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SkyCityAllInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 170d62aca20a50b4c8e5e3037d963e0e +timeCreated: 1611403291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SmeltItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SmeltItem.cs new file mode 100644 index 00000000..b0883378 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SmeltItem.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_SmeltItem + { + public static void OnReply(SmeltItemArg oArg, SmeltItemRes oRes) + { + XSmeltDocument.Doc.OnSmeltBack(oRes); + } + + public static void OnTimeout(SmeltItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SmeltItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SmeltItem.cs.meta new file mode 100644 index 00000000..749ec1f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SmeltItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 377bf7f1f94a2a649bfe825b6ef65f93 +timeCreated: 1611403565 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SpriteOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SpriteOperation.cs new file mode 100644 index 00000000..81c0f7d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SpriteOperation.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SpriteOperation + { + public static void OnReply(SpriteOperationArg oArg, SpriteOperationRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + specificDocument.OnSpriteOperation(oArg, oRes); + } + } + + public static void OnTimeout(SpriteOperationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SpriteOperation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SpriteOperation.cs.meta new file mode 100644 index 00000000..5bc3f152 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SpriteOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20dae044e5924804882f0ab8a7ad1353 +timeCreated: 1611403409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StageCountReset.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StageCountReset.cs new file mode 100644 index 00000000..0d8fca32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StageCountReset.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_StageCountReset + { + public static void OnReply(StageCountResetArg oArg, StageCountResetRes oRes) + { + XLevelDocument specificDocument = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + specificDocument.OnResetSceneSucc(oArg.groupid, oRes); + } + + public static void OnTimeout(StageCountResetArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StageCountReset.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StageCountReset.cs.meta new file mode 100644 index 00000000..c46d3b4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StageCountReset.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7db572f0ee0c9bf40a063badadff28c8 +timeCreated: 1611404002 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StartGuildCard.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StartGuildCard.cs new file mode 100644 index 00000000..4a81d837 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StartGuildCard.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_StartGuildCard + { + public static void OnReply(StartGuildCardArg oArg, StartGuildCardRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XGuildJokerDocument specificDocument = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + specificDocument.ShowCard(oRes.card, oRes.result, oRes.store); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(StartGuildCardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StartGuildCard.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StartGuildCard.cs.meta new file mode 100644 index 00000000..1cd5e692 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_StartGuildCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b4b463cd6193f94cb3e56dd71407981 +timeCreated: 1611403993 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SurviveReqC2G.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SurviveReqC2G.cs new file mode 100644 index 00000000..cc9a6110 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SurviveReqC2G.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_SurviveReqC2G + { + public static void OnReply(SurviveReqArg oArg, SurviveReqRes oRes) + { + } + + public static void OnTimeout(SurviveReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SurviveReqC2G.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SurviveReqC2G.cs.meta new file mode 100644 index 00000000..cefe369f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SurviveReqC2G.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8729329a89aea0459f9980ff948c2a6 +timeCreated: 1611404753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs new file mode 100644 index 00000000..81df9bf4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs @@ -0,0 +1,65 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_Sweep + { + public static void OnReply(SweepArg oArg, SweepRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oArg.sceneID != 0u && oArg.sceneID != 2010u; + if (flag2) + { + XSweepDocument specificDocument = XDocuments.GetSpecificDocument(XSweepDocument.uuID); + specificDocument.GetReward(oRes); + DlgBase.singleton.OnGotSweepRes(); + } + else + { + ErrorCode result = oRes.result; + if (result != ErrorCode.ERR_SUCCESS) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_BossRush, 0UL); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument2.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + DlgBase.singleton.RefreshLeftCount(); + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + XDragonNestDocument specificDocument3 = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + specificDocument3.SendReqDragonNestInfo(); + } + } + } + } + } + + public static void OnTimeout(SweepArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs.meta new file mode 100644 index 00000000..a6306440 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_Sweep.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 212e75f5db5957e4aa9960ea1aebc5e7 +timeCreated: 1611403412 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SweepTower.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SweepTower.cs new file mode 100644 index 00000000..fa736b18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SweepTower.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SweepTower + { + public static void OnReply(SweepTowerArg oArg, SweepTowerRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.SweepSingleTowerRes(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + + public static void OnTimeout(SweepTowerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SweepTower.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SweepTower.cs.meta new file mode 100644 index 00000000..86eef59c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SweepTower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ea64f246e1c0584cbb2e7159533b1d9 +timeCreated: 1611403510 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SynPetInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SynPetInfo.cs new file mode 100644 index 00000000..a548444b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SynPetInfo.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_SynPetInfo + { + public static void OnReply(SynPetInfoArg oArg, SynPetInfoRes oRes) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + specificDocument.OnPetInfo(oArg, oRes); + } + + public static void OnTimeout(SynPetInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SynPetInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SynPetInfo.cs.meta new file mode 100644 index 00000000..8a7100a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SynPetInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0703ed89665a5347b13a3c8a63152fb +timeCreated: 1611404697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SyncTime.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SyncTime.cs new file mode 100644 index 00000000..c4d8a61e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SyncTime.cs @@ -0,0 +1,21 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_SyncTime + { + public static long Ticks = 0L; + + public static void OnReply(SyncTimeArg oArg, SyncTimeRes oRes) + { + XSingleton.singleton.OnSyncTime(oArg.time, Process_RpcC2G_SyncTime.Ticks); + } + + public static void OnTimeout(SyncTimeArg oArg) + { + XSingleton.singleton.OnSyncTimeout(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SyncTime.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SyncTime.cs.meta new file mode 100644 index 00000000..073488fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_SyncTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ec8b9a732888984899a7c703dc467b3 +timeCreated: 1611404242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TactEnterScene.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TactEnterScene.cs new file mode 100644 index 00000000..577f020e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TactEnterScene.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_TactEnterScene + { + public static void OnReply(TactEnterSceneArg oArg, TactEnterSceneRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(TactEnterSceneArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TactEnterScene.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TactEnterScene.cs.meta new file mode 100644 index 00000000..575aa673 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TactEnterScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2243a8eb30c9a09448060ebb2be9111f +timeCreated: 1611403421 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeDragonGuildChest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeDragonGuildChest.cs new file mode 100644 index 00000000..d4ba09c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeDragonGuildChest.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_TakeDragonGuildChest + { + public static void OnReply(TakePartnerChestArg oArg, TakePartnerChestRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XDragonGuildDocument.DragonGuildLivenessData.OnTakeDragonGuildChestBack(oArg, oRes); + } + } + + public static void OnTimeout(TakePartnerChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeDragonGuildChest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeDragonGuildChest.cs.meta new file mode 100644 index 00000000..b092796e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeDragonGuildChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a87e8f9ac4ba21f48a1ca50427dd5c31 +timeCreated: 1611404296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJade.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJade.cs new file mode 100644 index 00000000..2d0ae959 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJade.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_TakeOffAllJade + { + public static void OnReply(TakeOffAllJadeArg oArg, TakeOffAllJadeRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(TakeOffAllJadeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJade.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJade.cs.meta new file mode 100644 index 00000000..204c3b61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db84646ae43d8f244b64ebf29a81488f +timeCreated: 1611404653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJadeNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJadeNew.cs new file mode 100644 index 00000000..12b2d66d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJadeNew.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_TakeOffAllJadeNew + { + public static void OnReply(TakeOffAllJadeNewArg oArg, TakeOffAllJadeNewRes oRes) + { + } + + public static void OnTimeout(TakeOffAllJadeNewArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJadeNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJadeNew.cs.meta new file mode 100644 index 00000000..8873b3eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakeOffAllJadeNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25c4416a4c4af3a4ea016d8f9a8c88bf +timeCreated: 1611403466 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakePartnerChest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakePartnerChest.cs new file mode 100644 index 00000000..fda1ceaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakePartnerChest.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_TakePartnerChest + { + public static void OnReply(TakePartnerChestArg oArg, TakePartnerChestRes oRes) + { + XPartnerDocument.PartnerLivenessData.OnTakePartnerChestBack((int)oArg.index, oRes); + } + + public static void OnTimeout(TakePartnerChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakePartnerChest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakePartnerChest.cs.meta new file mode 100644 index 00000000..c99ea0e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TakePartnerChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: badb4e6b98e79f0489b1208dc0c7623e +timeCreated: 1611404438 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TaskOperate.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TaskOperate.cs new file mode 100644 index 00000000..a9ad964b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TaskOperate.cs @@ -0,0 +1,62 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_TaskOperate + { + public static void OnReply(TaskOPArg oArg, TaskOPRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + bool result = oRes.result; + if (result) + { + bool flag3 = oArg.taskOP == 1; + if (flag3) + { + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + XTaskInfo taskInfo = specificDocument.GetTaskInfo((uint)oArg.taskID); + bool flag5 = DlgBase.singleton.CanAutoContinue(taskInfo); + if (flag5) + { + DlgBase.singleton.ShowNpcDialog(DlgBase.singleton.m_npc); + } + else + { + DlgBase.singleton.SetVisible(false, true); + } + } + } + bool flag6 = oArg.taskOP == 2; + if (flag6) + { + DlgBase.singleton.SetVisible(false, true); + } + } + } + } + + public static void OnTimeout(TaskOPArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TaskOperate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TaskOperate.cs.meta new file mode 100644 index 00000000..1e2a8e71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TaskOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdf9a73d6d5670c488adc068aa6c2c25 +timeCreated: 1611404577 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TeamInviteListReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TeamInviteListReq.cs new file mode 100644 index 00000000..841aef1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TeamInviteListReq.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_TeamInviteListReq + { + public static void OnReply(TeamInviteArg oArg, TeamInviteRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XTeamInviteDocument specificDocument = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + specificDocument.OnGetInviteList(oRes); + } + } + + public static void OnTimeout(TeamInviteArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TeamInviteListReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TeamInviteListReq.cs.meta new file mode 100644 index 00000000..81569d11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TeamInviteListReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1dbb70ffb54a5941b3a53c1ae57f8e9 +timeCreated: 1611404703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThanksForBonus.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThanksForBonus.cs new file mode 100644 index 00000000..8a3fb372 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThanksForBonus.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ThanksForBonus + { + public static void OnReply(ThanksForBonusArg oArg, ThanksForBonusRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XQuickReplyDocument specificDocument = XDocuments.GetSpecificDocument(XQuickReplyDocument.uuID); + specificDocument.OnThankForBonus(oArg, oRes); + } + } + + public static void OnTimeout(ThanksForBonusArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThanksForBonus.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThanksForBonus.cs.meta new file mode 100644 index 00000000..f06163a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThanksForBonus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c167300fd8250548b8f5392d53f6065 +timeCreated: 1611403995 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThemeActivityHint.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThemeActivityHint.cs new file mode 100644 index 00000000..e4946179 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThemeActivityHint.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_ThemeActivityHint + { + public static void OnReply(ThemeActivityHintArg oArg, ThemeActivityHintRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + + public static void OnTimeout(ThemeActivityHintArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThemeActivityHint.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThemeActivityHint.cs.meta new file mode 100644 index 00000000..b85d515c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_ThemeActivityHint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dce71fbcb162b734ba81910e2626070c +timeCreated: 1611404680 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TitleLevelUp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TitleLevelUp.cs new file mode 100644 index 00000000..24494d6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TitleLevelUp.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_TitleLevelUp + { + public static void OnReply(TitleLevelUpArg oArg, TitleLevelUpRes oRes) + { + XTitleDocument specificDocument = XDocuments.GetSpecificDocument(XTitleDocument.uuID); + specificDocument.OnGetTitleLevelUp(oRes); + } + + public static void OnTimeout(TitleLevelUpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TitleLevelUp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TitleLevelUp.cs.meta new file mode 100644 index 00000000..61a2326b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TitleLevelUp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c87723f7319c80040b8dc7cc909a002d +timeCreated: 1611404534 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TransformOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TransformOp.cs new file mode 100644 index 00000000..457fcbb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TransformOp.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_TransformOp + { + public static void OnReply(TransformOpArg oArg, TransformOpRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XTransformDocument specificDocument = XDocuments.GetSpecificDocument(XTransformDocument.uuID); + specificDocument.OnGetTransformOp(oArg, oRes); + } + } + } + + public static void OnTimeout(TransformOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TransformOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TransformOp.cs.meta new file mode 100644 index 00000000..60711a23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TransformOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65998467695fa3b4f80e1b0af63606f5 +timeCreated: 1611403851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TurnOverWeeklyTaskItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TurnOverWeeklyTaskItem.cs new file mode 100644 index 00000000..bc6c470d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TurnOverWeeklyTaskItem.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_TurnOverWeeklyTaskItem + { + public static void OnReply(TurnOverWeeklyTaskItemArg oArg, TurnOverWeeklyTaskItemRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + XGuildWeeklyBountyDocument.Doc.OnTurnOverWeeklyTaskReply(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public static void OnTimeout(TurnOverWeeklyTaskItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TurnOverWeeklyTaskItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TurnOverWeeklyTaskItem.cs.meta new file mode 100644 index 00000000..d5156152 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_TurnOverWeeklyTaskItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c415cb63205198b40956bb01ff21aab0 +timeCreated: 1611404499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UpgradeEquip.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UpgradeEquip.cs new file mode 100644 index 00000000..470f023d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UpgradeEquip.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_UpgradeEquip + { + public static void OnReply(UpgradeEquipArg oArg, UpgradeEquipRes oRes) + { + EquipUpgradeDocument.Doc.OnUpgradeBack(oRes); + } + + public static void OnTimeout(UpgradeEquipArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UpgradeEquip.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UpgradeEquip.cs.meta new file mode 100644 index 00000000..a2716d05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UpgradeEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21f62dc66282f4f408e7669ae92918e2 +timeCreated: 1611403416 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseItem.cs new file mode 100644 index 00000000..3c07ed1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseItem.cs @@ -0,0 +1,99 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_UseItem + { + public static void OnReply(UseItemArg oArg, UseItemRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + XEquipCreateDocument.Doc.IsCreating = false; + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.ErrorCode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.UseItem = true; + bool flag3 = oArg.OpType == 7u; + if (flag3) + { + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.PlayUseItemEffect(true); + } + ItemBuffTable.RowData itembuffDataByID = XHomeCookAndPartyDocument.Doc.GetItembuffDataByID(oArg.itemID); + bool flag5 = itembuffDataByID != null; + if (flag5) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)itembuffDataByID.Buffs[0, 0], (int)itembuffDataByID.Buffs[0, 1]); + bool flag6 = buffData != null; + if (flag6) + { + double num = Math.Round((double)(buffData.BuffDuration / 3600f), 1); + string text = string.Format(XSingleton.singleton.GetString("FoodBuffTip"), itembuffDataByID.Name, buffData.BuffName, num); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + } + } + } + else + { + bool flag7 = oArg.OpType == 12u; + if (flag7) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FASHION_STORAGE_SUCCESS"), "fece00"); + } + else + { + bool flag8 = oArg.itemID > 0u; + if (flag8) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)oArg.itemID); + bool flag9 = (int)itemConf.ItemType == XFastEnumIntEqualityComparer.ToInt(ItemType.Tarja); + if (flag9) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("USE_ITEM_SUCCESS_TARJA"), "fece00"); + } + } + } + } + bool flag10 = oRes.expand != null; + if (flag10) + { + XBagDocument.BagDoc.SetBagExpandData(oRes.expand, true); + } + } + bool flag11 = ItemUseMgr.GetItemUseValue(ItemUse.Composite) == oArg.OpType; + if (flag11) + { + XEquipCreateDocument.Doc.OnReqCreateEquipSet(oArg, oRes); + } + else + { + XCharacterItemDocument specificDocument = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + specificDocument.OnUseItem(oArg, oRes); + ArtifactBagDocument.Doc.OnUseItem(oArg, oRes); + bool flag12 = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag12) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + } + } + } + + public static void OnTimeout(UseItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseItem.cs.meta new file mode 100644 index 00000000..bb401e4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bf83f35f96eb2346a701375e5c2a3da +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseSupplement.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseSupplement.cs new file mode 100644 index 00000000..2f725e41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseSupplement.cs @@ -0,0 +1,25 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_UseSupplement + { + public static void OnReply(UseSupplementReq oArg, UseSupplementRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + } + + public static void OnTimeout(UseSupplementReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseSupplement.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseSupplement.cs.meta new file mode 100644 index 00000000..edefe8bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_UseSupplement.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e139edd4d7e825547bfbd26508b6800c +timeCreated: 1611404700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_VsPayReviveReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_VsPayReviveReq.cs new file mode 100644 index 00000000..d4c81878 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_VsPayReviveReq.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2G_VsPayReviveReq + { + public static void OnReply(VsPayRevivePara oArg, VsPayReviveRes oRes) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.ReceiveVSPayRevive(oArg, oRes); + } + + public static void OnTimeout(VsPayRevivePara oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_VsPayReviveReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_VsPayReviveReq.cs.meta new file mode 100644 index 00000000..d57e66c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_VsPayReviveReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb893bb075fecf349934c180364468b0 +timeCreated: 1611404784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeddingOperator.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeddingOperator.cs new file mode 100644 index 00000000..3a0f6265 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeddingOperator.cs @@ -0,0 +1,29 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_WeddingOperator + { + public static void OnReply(WeddingOperatorArg oArg, WeddingOperatorRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument.Doc.OnWeddingSceneOperator(oArg, oRes); + } + } + + public static void OnTimeout(WeddingOperatorArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeddingOperator.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeddingOperator.cs.meta new file mode 100644 index 00000000..5b9f44b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeddingOperator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2546d943fcfb69844b04881f3ec12c79 +timeCreated: 1611403464 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs new file mode 100644 index 00000000..8d1db4c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_WeekEnd4v4GetInfo + { + public static void OnReply(WeekEnd4v4GetInfoArg oArg, WeekEnd4v4GetInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeekendPartyDocument specificDocument = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + specificDocument.OnGetWeekendPartyInfo(oRes); + } + } + } + + public static void OnTimeout(WeekEnd4v4GetInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs.meta new file mode 100644 index 00000000..b466f312 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_WeekEnd4v4GetInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68a11f10b76c86644826c533b09cab9e +timeCreated: 1611403883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_breakAtlas.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_breakAtlas.cs new file mode 100644 index 00000000..81d96865 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_breakAtlas.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2G_breakAtlas + { + public static void OnReply(breakAtlas oArg, breakAtlasRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XCardCollectDocument specificDocument = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + specificDocument.OnBreak(oArg, oRes); + } + } + + public static void OnTimeout(breakAtlas oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_breakAtlas.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_breakAtlas.cs.meta new file mode 100644 index 00000000..9609fc3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2G_breakAtlas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f71eec651b6f6f14c9b2069c37ea3833 +timeCreated: 1611404885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2I_QueryGateIP.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2I_QueryGateIP.cs new file mode 100644 index 00000000..ead18fae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2I_QueryGateIP.cs @@ -0,0 +1,38 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2I_QueryGateIP + { + public static void OnReply(QueryGateArg oArg, QueryGateRes oRes) + { + bool flag = XSingleton.singleton.OnAuthorized(oArg, oRes); + if (flag) + { + XSingleton.singleton.SetAnnouncement(oRes.notice); + XSingleton.singleton.OnAuthorized(oRes.userphone); + XSingleton.singleton.SetGateIPTable(oRes.servers, oRes.gateconfig, oRes.allservers); + XSingleton.singleton.SetFriendServerList(oRes.platFriendServers); + XSingleton.singleton.SetLoginZoneID(oRes.loginzoneid); + XSingleton.singleton.SetFreeflow(oRes.freeflow, oRes.cctype); + } + else + { + XSingleton.singleton.OnAuthorizedFailed(); + bool flag2 = oRes.error == ErrorCode.ERR_PLAT_BANACC; + if (flag2) + { + string format = oRes.baninfo.reason + "\n" + XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString(oRes.error.ToString())); + XSingleton.singleton.ShowModalDialog(string.Format(format, XSingleton.singleton.TimeFormatSince1970((int)oRes.baninfo.endtime, XStringDefineProxy.GetString("IDIP_TIPS_TIME"), true)), XStringDefineProxy.GetString("COMMON_OK"), null, 300); + } + } + } + + public static void OnTimeout(QueryGateArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2I_QueryGateIP.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2I_QueryGateIP.cs.meta new file mode 100644 index 00000000..e61d8447 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2I_QueryGateIP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49d901b937073db4dbad86cf67a576a5 +timeCreated: 1611403662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AceptGuildInherit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AceptGuildInherit.cs new file mode 100644 index 00000000..7bdecd24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AceptGuildInherit.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AceptGuildInherit + { + public static void OnReply(AceptGuildInheritArg oArg, AceptGuildInheritRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + specificDocument.ReceiveAccpetInherit(oArg, oRes); + } + } + } + + public static void OnTimeout(AceptGuildInheritArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AceptGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AceptGuildInherit.cs.meta new file mode 100644 index 00000000..a7aedad9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AceptGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83805386a12fed644b567629203dbd94 +timeCreated: 1611404045 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ActiveCookbook.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ActiveCookbook.cs new file mode 100644 index 00000000..a9397458 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ActiveCookbook.cs @@ -0,0 +1,52 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ActiveCookbook + { + public static void OnReply(ActiveCookbookArg oArg, ActiveCookbookRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + CookingFoodInfo.RowData cookInfoByCuisineID = XHomeCookAndPartyDocument.Doc.GetCookInfoByCuisineID(oRes.food_id); + bool flag4 = cookInfoByCuisineID != null; + if (flag4) + { + string label = XStringDefineProxy.GetString("CookMenuActiveSuccess") + "[00ff00]" + cookInfoByCuisineID.FoodName + "[-]"; + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK")); + XHomeCookAndPartyDocument.Doc.AddNewCookItem(oRes.food_id); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(ActiveCookbookArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ActiveCookbook.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ActiveCookbook.cs.meta new file mode 100644 index 00000000..09c6e381 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ActiveCookbook.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91b46aa5e0b21b7429133f22f38fe44e +timeCreated: 1611404143 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddBlackListNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddBlackListNew.cs new file mode 100644 index 00000000..d9cb1c19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddBlackListNew.cs @@ -0,0 +1,36 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AddBlackListNew + { + public static void OnReply(AddBlackListArg oArg, AddBlackListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.AddBlockFriendRes(oRes.black); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + public static void OnTimeout(AddBlackListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddBlackListNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddBlackListNew.cs.meta new file mode 100644 index 00000000..ab952a24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddBlackListNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1fdbeb5ca06dd6449e5281460601891 +timeCreated: 1611404255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddFriendNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddFriendNew.cs new file mode 100644 index 00000000..bc702a9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddFriendNew.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AddFriendNew + { + public static void OnReply(AddFriendArg oArg, AddFriendRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.AddFriendRes(oRes.errorcode, oArg.friendroleid); + } + } + + public static void OnTimeout(AddFriendArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddFriendNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddFriendNew.cs.meta new file mode 100644 index 00000000..6e44d3ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddFriendNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 70200628bf24d164a8b3a41e95ec3183 +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddGuildInherit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddGuildInherit.cs new file mode 100644 index 00000000..79553735 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddGuildInherit.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AddGuildInherit + { + public static void OnReply(AddGuildInheritArg oArg, AddGuildInheritRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + specificDocument.ReceiveReqInherit(oArg, oRes); + } + } + } + + public static void OnTimeout(AddGuildInheritArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddGuildInherit.cs.meta new file mode 100644 index 00000000..677b9646 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AddGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3fab38d92399baf4f9b78a3da5614986 +timeCreated: 1611403612 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AdjustGuildArenaRolePosNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AdjustGuildArenaRolePosNew.cs new file mode 100644 index 00000000..01fb0d56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AdjustGuildArenaRolePosNew.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AdjustGuildArenaRolePosNew + { + public static void OnReply(AdjustGuildArenaRolePosArg oArg, AdjustGuildArenaRolePosRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + } + } + + public static void OnTimeout(AdjustGuildArenaRolePosArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AdjustGuildArenaRolePosNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AdjustGuildArenaRolePosNew.cs.meta new file mode 100644 index 00000000..ec2c660b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AdjustGuildArenaRolePosNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb2b4e6c84bdf6d46a0844da78bbf523 +timeCreated: 1611404930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AllianceGuildTerr.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AllianceGuildTerr.cs new file mode 100644 index 00000000..9ba4a405 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AllianceGuildTerr.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AllianceGuildTerr + { + public static void OnReply(AllianceGuildTerrArg oArg, AllianceGuildTerrRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.ReceiveAllianceGuildTerr(oArg, oRes); + } + } + + public static void OnTimeout(AllianceGuildTerrArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AllianceGuildTerr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AllianceGuildTerr.cs.meta new file mode 100644 index 00000000..409710c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AllianceGuildTerr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 626f273c975e1cc42a1422ecc91d230c +timeCreated: 1611403841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs new file mode 100644 index 00000000..8b6fdb69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ArenaStarRoleReq + { + public static void OnReply(ArenaStarReqArg oArg, ArenaStarReqRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XHallFameDocument.Doc.OnGetStarRoleInfo(oArg, oRes); + } + } + } + } + + public static void OnTimeout(ArenaStarReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs.meta new file mode 100644 index 00000000..664cf4cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ArenaStarRoleReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee0574ca3e5923646a45df82467ba286 +timeCreated: 1611404794 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskDragonGuildMembers.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskDragonGuildMembers.cs new file mode 100644 index 00000000..2e25ec69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskDragonGuildMembers.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_AskDragonGuildMembers + { + public static void OnReply(DragonGuildMemberArg oArg, DragonGuildMemberRes oRes) + { + XDragonGuildDocument.Doc.OnGetMemberList(oRes); + } + + public static void OnTimeout(DragonGuildMemberArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskDragonGuildMembers.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskDragonGuildMembers.cs.meta new file mode 100644 index 00000000..0a0813f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskDragonGuildMembers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd423dd9547138a409753e868cb5346f +timeCreated: 1611404553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaInfoNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaInfoNew.cs new file mode 100644 index 00000000..6f15cce2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaInfoNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AskGuildArenaInfoNew + { + public static void OnReply(AskGuildArenaInfoArg oArg, AskGuildArenaInfoReq oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.OnGuildArenaInfo(oRes); + } + } + } + + public static void OnTimeout(AskGuildArenaInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaInfoNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaInfoNew.cs.meta new file mode 100644 index 00000000..14dd52fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaInfoNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eebf0ce55a6019346acf8930cdfe7f45 +timeCreated: 1611404799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaTeamInfoNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaTeamInfoNew.cs new file mode 100644 index 00000000..04199eb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaTeamInfoNew.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AskGuildArenaTeamInfoNew + { + public static void OnReply(AskGuildArenaTeamInfoArg oArg, AskGuildArenaTeamInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + } + } + + public static void OnTimeout(AskGuildArenaTeamInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaTeamInfoNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaTeamInfoNew.cs.meta new file mode 100644 index 00000000..85d67bdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildArenaTeamInfoNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 797204e4a5ffa03449cc6e5a653cbcb4 +timeCreated: 1611403985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildBriefInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildBriefInfo.cs new file mode 100644 index 00000000..a3ff2649 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildBriefInfo.cs @@ -0,0 +1,49 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AskGuildBriefInfo + { + public static void OnReply(GuildBriefArg oArg, GuildBriefRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oArg.guildid == 0UL; + if (flag3) + { + XGuildHallDocument specificDocument = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + specificDocument.OnGuildBrief(oRes); + XGuildApproveDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildApproveDocument.uuID); + specificDocument2.OnGuildBrief(oRes); + } + else + { + XGuildViewDocument specificDocument3 = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + specificDocument3.OnGuildBrief(oRes); + } + } + } + } + + public static void OnTimeout(GuildBriefArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildBriefInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildBriefInfo.cs.meta new file mode 100644 index 00000000..1c5a3e01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildBriefInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 575f5289e76bb9443b4f22194742b3f4 +timeCreated: 1611403749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildMembers.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildMembers.cs new file mode 100644 index 00000000..c4f19fdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildMembers.cs @@ -0,0 +1,47 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AskGuildMembers + { + public static void OnReply(GuildMemberArg oArg, GuildMemberRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oArg.guildid == 0UL; + if (flag3) + { + XGuildMemberDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + specificDocument.onGetMemberList(oRes); + } + else + { + XGuildViewDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + specificDocument2.onGetMemberList(oRes); + } + } + } + } + + public static void OnTimeout(GuildMemberArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildMembers.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildMembers.cs.meta new file mode 100644 index 00000000..4b14b4b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildMembers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99daf25b565020f47ad383747de29f19 +timeCreated: 1611404198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildSkillInfoNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildSkillInfoNew.cs new file mode 100644 index 00000000..e83954b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildSkillInfoNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AskGuildSkillInfoNew + { + public static void OnReply(AskGuildSkillInfoArg oArg, AskGuildSkillInfoReq oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildSkillDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSkillDocument.uuID); + specificDocument.OnSkillList(oRes); + } + } + } + + public static void OnTimeout(AskGuildSkillInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildSkillInfoNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildSkillInfoNew.cs.meta new file mode 100644 index 00000000..ba607778 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildSkillInfoNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7439eb913307ce14cb45eb7418f792c5 +timeCreated: 1611403943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs new file mode 100644 index 00000000..e552aba0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AskGuildWageInfo + { + public static void OnReply(AskGuildWageInfoArg oArg, AskGuildWageInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildSalaryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSalaryDocument.uuID); + specificDocument.ReceiveAskGuildWageInfo(oRes); + } + } + + public static void OnTimeout(AskGuildWageInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs.meta new file mode 100644 index 00000000..78877a4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AskGuildWageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 889c058812d698d4b866382e6551a092 +timeCreated: 1611404085 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AuctionAllReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AuctionAllReq.cs new file mode 100644 index 00000000..b4c7fe9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AuctionAllReq.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_AuctionAllReq + { + public static void OnReply(AuctionAllReqArg oArg, AuctionAllReqRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + AuctionDocument specificDocument = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + specificDocument.ReceiveAuctionResponse(oArg, oRes); + } + } + + public static void OnTimeout(AuctionAllReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AuctionAllReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AuctionAllReq.cs.meta new file mode 100644 index 00000000..bb43fde2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_AuctionAllReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5e83b19d5b5dcb438ea9aa606a263f3 +timeCreated: 1611404629 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyDragonGuildShopItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyDragonGuildShopItem.cs new file mode 100644 index 00000000..53dc7101 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyDragonGuildShopItem.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_BuyDragonGuildShopItem + { + public static void OnReply(BuyDragonGuildShopItemArg oArg, BuyDragonGuildShopItemRes oRes) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.OnGetBuy(oArg, oRes); + } + + public static void OnTimeout(BuyDragonGuildShopItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyDragonGuildShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyDragonGuildShopItem.cs.meta new file mode 100644 index 00000000..b62ac40c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyDragonGuildShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa070f29db2e6614aa7309448598f9eb +timeCreated: 1611404301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyPartnerShopItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyPartnerShopItem.cs new file mode 100644 index 00000000..910192d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyPartnerShopItem.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_BuyPartnerShopItem + { + public static void OnReply(BuyPartnerShopItemArg oArg, BuyPartnerShopItemRes oRes) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.OnGetBuy(oArg, oRes); + } + + public static void OnTimeout(BuyPartnerShopItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyPartnerShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyPartnerShopItem.cs.meta new file mode 100644 index 00000000..9efa7024 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_BuyPartnerShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16ade5b5fffed5347b9425d02f1dcb61 +timeCreated: 1611403290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CancelLeavePartner.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CancelLeavePartner.cs new file mode 100644 index 00000000..49fd0403 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CancelLeavePartner.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_CancelLeavePartner + { + public static void OnReply(CancelLeavePartnerArg oArg, CancelLeavePartnerRes oRes) + { + XPartnerDocument.Doc.OnCancleLeavePartnerBack(oRes); + } + + public static void OnTimeout(CancelLeavePartnerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CancelLeavePartner.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CancelLeavePartner.cs.meta new file mode 100644 index 00000000..99b32881 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CancelLeavePartner.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 228f8eadbb1fd3747a62a205128dfbc0 +timeCreated: 1611403423 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildPosition.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildPosition.cs new file mode 100644 index 00000000..396afd20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildPosition.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ChangeDragonGuildPosition + { + public static void OnReply(ChangeDragonGuildPositionArg oArg, ChangeDragonGuildPositionRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonGuildDocument.Doc.OnChangePosition(oArg, oRes); + } + } + } + + public static void OnTimeout(ChangeDragonGuildPositionArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildPosition.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildPosition.cs.meta new file mode 100644 index 00000000..afb26d89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94ee2715e1e509a4080cdd742d2821ec +timeCreated: 1611404157 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildSetting.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildSetting.cs new file mode 100644 index 00000000..1451acd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildSetting.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ChangeDragonGuildSetting + { + public static void OnReply(ChangeDragonGuildSettingArg oArg, ChangeDragonGuildSettingRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(ChangeDragonGuildSettingArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildSetting.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildSetting.cs.meta new file mode 100644 index 00000000..876145da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeDragonGuildSetting.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ec116fc1e16df24abf308db6fa60e1e +timeCreated: 1611403609 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeGuildSettingNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeGuildSettingNew.cs new file mode 100644 index 00000000..ba5c7ccc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeGuildSettingNew.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ChangeGuildSettingNew + { + public static void OnReply(ChangeGuildSettingArg oArg, ChangeGuildSettingRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XGuildHallDocument specificDocument = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + specificDocument.OnEditAnnounceSuccess(oArg.annoucement); + } + } + } + } + + public static void OnTimeout(ChangeGuildSettingArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeGuildSettingNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeGuildSettingNew.cs.meta new file mode 100644 index 00000000..3aa466e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeGuildSettingNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15f8be34f591d8c41afdf79efc98e84d +timeCreated: 1611403267 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeMemberPositionNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeMemberPositionNew.cs new file mode 100644 index 00000000..a7c6c45e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeMemberPositionNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ChangeMemberPositionNew + { + public static void OnReply(ChangeGuildPositionArg oArg, ChangeGuildPositionRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildMemberDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + specificDocument.OnChangePosition(oArg, oRes); + } + } + } + + public static void OnTimeout(ChangeGuildPositionArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeMemberPositionNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeMemberPositionNew.cs.meta new file mode 100644 index 00000000..e1b21f22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeMemberPositionNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7819c5292edf3ce4e82c6f18d2c05b7a +timeCreated: 1611403957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeNameNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeNameNew.cs new file mode 100644 index 00000000..a7085fc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeNameNew.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ChangeNameNew + { + public static void OnReply(ChangeNameArg oArg, ChangeNameRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XRenameDocument specificDocument = XDocuments.GetSpecificDocument(XRenameDocument.uuID); + specificDocument.ReceivePlayerCostRename(oArg, oRes); + } + } + + public static void OnTimeout(ChangeNameArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeNameNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeNameNew.cs.meta new file mode 100644 index 00000000..ffb74f0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ChangeNameNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a35a12ea9aa1404a8b2df1017a62783 +timeCreated: 1611404199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CheckRoleBeforePay.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CheckRoleBeforePay.cs new file mode 100644 index 00000000..5b17be0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CheckRoleBeforePay.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_CheckRoleBeforePay + { + public static void OnReply(CheckRoleBeforePayArg oArg, CheckRoleBeforePayRes oRes) + { + } + + public static void OnTimeout(CheckRoleBeforePayArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CheckRoleBeforePay.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CheckRoleBeforePay.cs.meta new file mode 100644 index 00000000..0f07dbd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CheckRoleBeforePay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c6f5e06115631440a960410714ac929 +timeCreated: 1611404232 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearGuildTerrAlliance.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearGuildTerrAlliance.cs new file mode 100644 index 00000000..d1fe0666 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearGuildTerrAlliance.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ClearGuildTerrAlliance + { + public static void OnReply(ClearGuildTerrAllianceArg oArg, ClearGuildTerrAllianceRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.ReceiveClearGuildTerrAlliance(oRes); + } + } + + public static void OnTimeout(ClearGuildTerrAllianceArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearGuildTerrAlliance.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearGuildTerrAlliance.cs.meta new file mode 100644 index 00000000..061c36ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearGuildTerrAlliance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de09f83328c00f24390afab3a26fe2e3 +timeCreated: 1611404685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearPrivateChatList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearPrivateChatList.cs new file mode 100644 index 00000000..c498dbab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearPrivateChatList.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_ClearPrivateChatList + { + public static void OnReply(ClearPrivateChatListArg oArg, ClearPrivateChatListRes oRes) + { + } + + public static void OnTimeout(ClearPrivateChatListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearPrivateChatList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearPrivateChatList.cs.meta new file mode 100644 index 00000000..aecb9b03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClearPrivateChatList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 213dab1391112fa4db1d5fc0d6804f28 +timeCreated: 1611403412 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClickNewNotice.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClickNewNotice.cs new file mode 100644 index 00000000..912b1642 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClickNewNotice.cs @@ -0,0 +1,39 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ClickNewNotice + { + public static void OnReply(ClickNewNoticeArg oArg, ClickNewNoticeRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + oArg.info.isnew = false; + uint type = oArg.info.type; + if (type == 5u) + { + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Patface); + if (flag2) + { + DlgBase.singleton.ShowPatface(); + } + } + XAnnouncementDocument specificDocument = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + specificDocument.RefreshRedPoint(); + } + } + + public static void OnTimeout(ClickNewNoticeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClickNewNotice.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClickNewNotice.cs.meta new file mode 100644 index 00000000..3d620d66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClickNewNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a77e77c34d99ef47a2e30e96c99afa7 +timeCreated: 1611403989 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClientQueryRankListNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClientQueryRankListNtf.cs new file mode 100644 index 00000000..9c02f8f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClientQueryRankListNtf.cs @@ -0,0 +1,163 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ClientQueryRankListNtf + { + public static void OnReply(ClientQueryRankListArg oArg, ClientQueryRankListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.ErrorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + switch (oRes.RankType) + { + case 0u: + case 1u: + return; + case 2u: + case 38u: + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.OnGetLatestRankInfo(oRes); + return; + } + case 3u: + { + bool flag3 = oArg.TimeStamp == 1u; + if (flag3) + { + XWorldBossDocument specificDocument2 = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument2.OnGetLatestRankInfo(oRes); + } + else + { + XRankDocument specificDocument3 = XDocuments.GetSpecificDocument(XRankDocument.uuID); + specificDocument3.OnGetRankList(oRes); + } + return; + } + case 6u: + case 14u: + case 15u: + case 20u: + case 32u: + { + XFlowerRankDocument specificDocument4 = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument4.OnGetRankList(oRes); + return; + } + case 8u: + { + XGuildDragonDocument specificDocument5 = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument5.OnGuildBossRoleRank(oRes); + return; + } + case 9u: + case 10u: + case 31u: + { + bool flag4 = oArg.TimeStamp == 1u; + if (flag4) + { + XQualifyingDocument specificDocument6 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument6.OnGetRankInfo(oRes, (int)oArg.profession); + } + else + { + XRankDocument specificDocument7 = XDocuments.GetSpecificDocument(XRankDocument.uuID); + specificDocument7.OnGetRankList(oRes); + } + return; + } + case 16u: + FirstPassDocument.Doc.OnGetRankList(oRes); + return; + case 21u: + XWeekNestDocument.Doc.OnGetRankList(oRes, false); + return; + case 24u: + { + XHeroBattleDocument specificDocument8 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument8.SetRankInfo(oRes, false); + return; + } + case 25u: + { + XMilitaryRankDocument specificDocument9 = XDocuments.GetSpecificDocument(XMilitaryRankDocument.uuID); + specificDocument9.OnGetRankInfo(oRes); + return; + } + case 26u: + { + XQualifyingDocument specificDocument10 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument10.OnGetLastSeasonRankInfo(oRes); + return; + } + case 27u: + XWeekNestDocument.Doc.OnGetRankList(oRes, true); + return; + case 28u: + { + XHeroBattleDocument specificDocument11 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument11.SetRankInfo(oRes, true); + return; + } + case 34u: + { + BiochemicalHellDogDocument specificDocument12 = XDocuments.GetSpecificDocument(BiochemicalHellDogDocument.uuID); + specificDocument12.ReceiveRankList(oRes); + return; + } + case 35u: + { + XCompeteDocument specificDocument13 = XDocuments.GetSpecificDocument(XCompeteDocument.uuID); + specificDocument13.OnGetRankList(oRes, false); + return; + } + case 39u: + { + bool onlySelfData = oArg.onlySelfData; + if (onlySelfData) + { + XRiftDocument specificDocument14 = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + bool flag5 = oRes.RoleRankData != null; + if (flag5) + { + specificDocument14.ResRank((int)oRes.RoleRankData.Rank); + } + else + { + specificDocument14.ResRank(-1); + } + return; + } + break; + } + } + XRankDocument specificDocument15 = XDocuments.GetSpecificDocument(XRankDocument.uuID); + specificDocument15.OnGetRankList(oRes); + } + } + } + + public static void OnTimeout(ClientQueryRankListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClientQueryRankListNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClientQueryRankListNtf.cs.meta new file mode 100644 index 00000000..ad5c343b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ClientQueryRankListNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 702ad40e010288b4ea1e519f4808b11a +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrEnterGuild.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrEnterGuild.cs new file mode 100644 index 00000000..8524474c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrEnterGuild.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_CreateOrEnterGuild + { + public static void OnReply(CreateOrJoinGuild oArg, CreateOrJoinGuildRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildListDocument specificDocument = XDocuments.GetSpecificDocument(XGuildListDocument.uuID); + bool iscreate = oArg.iscreate; + if (iscreate) + { + specificDocument.OnCreateGuild(oArg, oRes); + } + else + { + specificDocument.OnApplyGuild(oArg, oRes); + } + } + } + } + + public static void OnTimeout(CreateOrJoinGuild oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrEnterGuild.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrEnterGuild.cs.meta new file mode 100644 index 00000000..d91f1719 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrEnterGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3de9db99348bfe14c9f96d23285f947f +timeCreated: 1611403605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrJoinDragonGuild.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrJoinDragonGuild.cs new file mode 100644 index 00000000..9ebd854c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrJoinDragonGuild.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_CreateOrJoinDragonGuild + { + public static void OnReply(CreateOrJoinDragonGuildArg oArg, CreateOrJoinDragonGuildRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool iscreate = oArg.iscreate; + if (iscreate) + { + XDragonGuildListDocument.Doc.OnCreateDragonGuild(oArg, oRes); + } + else + { + XDragonGuildListDocument.Doc.OnApplyDragonGuild(oArg, oRes); + } + } + } + } + + public static void OnTimeout(CreateOrJoinDragonGuildArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrJoinDragonGuild.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrJoinDragonGuild.cs.meta new file mode 100644 index 00000000..e89f685a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateOrJoinDragonGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 038315472937e0a4bbc5914d7026b260 +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateRoleNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateRoleNew.cs new file mode 100644 index 00000000..3f011702 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateRoleNew.cs @@ -0,0 +1,60 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_CreateRoleNew + { + public static void OnReply(CreateRoleNewArg oArg, CreateRoleNewRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSingleton.singleton.SetBlockUIVisable(false); + ErrorCode result = oRes.result; + if (result <= ErrorCode.ERR_INVALID_NAME) + { + if (result == ErrorCode.ERR_SUCCESS) + { + RpcC2M_SelectRoleNew rpcC2M_SelectRoleNew = new RpcC2M_SelectRoleNew(); + rpcC2M_SelectRoleNew.oArg.index = (int)(oArg.type) % 10 - (int)RoleType.Role_Warrior; + XSingleton.singleton.Send(rpcC2M_SelectRoleNew); + return; + } + if (result - ErrorCode.ERR_NAME_EXIST > 1) + { + goto IL_D3; + } + } + else if (result != ErrorCode.ERR_WORD_FORBID && result - ErrorCode.ERR_NAME_ALLNUM > 2) + { + goto IL_D3; + } + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + return; + IL_D3: + XSingleton.singleton.OnServerErrorNotify((uint)oRes.result, null); + } + } + } + + public static void OnTimeout(CreateRoleNewArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateRoleNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateRoleNew.cs.meta new file mode 100644 index 00000000..40c54a4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CreateRoleNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e30fcacb61488da4aaa903f4fde3a292 +timeCreated: 1611404730 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CrossGvgOper.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CrossGvgOper.cs new file mode 100644 index 00000000..751af8af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CrossGvgOper.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_CrossGvgOper + { + public static void OnReply(CrossGvgOperArg oArg, CrossGvgOperRes oRes) + { + XCrossGVGDocument specificDocument = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + specificDocument.NotifyCrossGVGOper(oArg, oRes); + } + + public static void OnTimeout(CrossGvgOperArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CrossGvgOper.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CrossGvgOper.cs.meta new file mode 100644 index 00000000..16cc3d4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CrossGvgOper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71d870098833416439f09d4bdefdbe5b +timeCreated: 1611403936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CustomBattleOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CustomBattleOp.cs new file mode 100644 index 00000000..88afdd85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CustomBattleOp.cs @@ -0,0 +1,42 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_CustomBattleOp + { + public static void OnReply(CustomBattleOpArg oArg, CustomBattleOpRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XCustomBattleDocument specificDocument = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + specificDocument.RecvCustomBattleOp(oArg.op, oArg.uid, oRes.info, oArg); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SYS_NOTOPEN; + if (!flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + XCustomBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + specificDocument2.DoErrorOp(oArg.op, oArg.uid); + } + } + } + } + + public static void OnTimeout(CustomBattleOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CustomBattleOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CustomBattleOp.cs.meta new file mode 100644 index 00000000..5ff3018a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_CustomBattleOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 020665f75fda0174582ad45aef66d734 +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DERankReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DERankReq.cs new file mode 100644 index 00000000..73dde099 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DERankReq.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DERankReq + { + public static void OnReply(DERankArg oArg, DERankRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XDragonCrusadeDocument specificDocument = XDocuments.GetSpecificDocument(XDragonCrusadeDocument.uuID); + specificDocument.OnDERankReq(oRes); + } + } + + public static void OnTimeout(DERankArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DERankReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DERankReq.cs.meta new file mode 100644 index 00000000..3389ff89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DERankReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 192c266d73eaad842a40ebe1213e503c +timeCreated: 1611403301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DailyTaskRefreshOper.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DailyTaskRefreshOper.cs new file mode 100644 index 00000000..a7617fdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DailyTaskRefreshOper.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DailyTaskRefreshOper + { + public static void OnReply(DailyTaskRefreshOperArg oArg, DailyTaskRefreshOperRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildDailyTaskDocument.Doc.OnGetTaskRefreshOperResult(oArg, oRes); + } + } + } + + public static void OnTimeout(DailyTaskRefreshOperArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DailyTaskRefreshOper.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DailyTaskRefreshOper.cs.meta new file mode 100644 index 00000000..4db7ed26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DailyTaskRefreshOper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd49c0291c5636744b35612623a22eee +timeCreated: 1611404450 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DelGuildInherit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DelGuildInherit.cs new file mode 100644 index 00000000..afab980f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DelGuildInherit.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DelGuildInherit + { + public static void OnReply(DelGuildInheritArg oArg, DelGuildInheritRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + specificDocument.ReceiveDelInherit(oRes); + } + } + + public static void OnTimeout(DelGuildInheritArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DelGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DelGuildInherit.cs.meta new file mode 100644 index 00000000..e5b05ded --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DelGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 566551b9deb2270438674605ab9c12ed +timeCreated: 1611403743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DoAddFriendNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DoAddFriendNew.cs new file mode 100644 index 00000000..15b76928 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DoAddFriendNew.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DoAddFriendNew + { + public static void OnReply(DoAddFriendArg oArg, DoAddFriendRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.OnApply(oArg, oRes); + } + } + + public static void OnTimeout(DoAddFriendArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DoAddFriendNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DoAddFriendNew.cs.meta new file mode 100644 index 00000000..1b9c3a54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DoAddFriendNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b3d9400114584347b1d8da6de7be905 +timeCreated: 1611403315 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DonateMemberItem.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DonateMemberItem.cs new file mode 100644 index 00000000..3e857398 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DonateMemberItem.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DonateMemberItem + { + public static void OnReply(DonateMemberItemArg oArg, DonateMemberItemRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildDonateDocument.Doc.OnGetDonateMemberReply(oArg, oRes); + } + } + } + + public static void OnTimeout(DonateMemberItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DonateMemberItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DonateMemberItem.cs.meta new file mode 100644 index 00000000..0fad133b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DonateMemberItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 783669c7a7226ab43a26ead0fe146eb0 +timeCreated: 1611403958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildApproval.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildApproval.cs new file mode 100644 index 00000000..096cc8dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildApproval.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DragonGuildApproval + { + public static void OnReply(DragonGuildApprovalArg oArg, DragonGuildApprovalRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonGuildApproveDocument specificDocument = XDocuments.GetSpecificDocument(XDragonGuildApproveDocument.uuID); + specificDocument.OnApprove(oArg, oRes); + } + } + } + + public static void OnTimeout(DragonGuildApprovalArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildApproval.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildApproval.cs.meta new file mode 100644 index 00000000..9859cd67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildApproval.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c59921b52433c7046bce900c7ab4688e +timeCreated: 1611404506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildBindGroupReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildBindGroupReq.cs new file mode 100644 index 00000000..b6f8ac9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildBindGroupReq.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DragonGuildBindGroupReq + { + public static void OnReply(DragonGuildBindReq oArg, DragonGuildBindRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonGuildDocument.Doc.OnBindQQGroup(oArg, oRes); + } + } + } + + public static void OnTimeout(DragonGuildBindReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildBindGroupReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildBindGroupReq.cs.meta new file mode 100644 index 00000000..8dad8ebb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildBindGroupReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58197269bdb874b4a9cd9d1e0d3639cb +timeCreated: 1611403753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildJoinBindGroup.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildJoinBindGroup.cs new file mode 100644 index 00000000..916fdf96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildJoinBindGroup.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DragonGuildJoinBindGroup + { + public static void OnReply(DragonGuildJoinBindGroupArg oArg, DragonGuildJoinBindGroupRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonGuildDocument.Doc.OnJoinBindQQGroup(oArg, oRes); + } + } + } + + public static void OnTimeout(DragonGuildJoinBindGroupArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildJoinBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildJoinBindGroup.cs.meta new file mode 100644 index 00000000..7d200b62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildJoinBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3232248f556bf9a4689d12ef421d9e73 +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildUnBindGroup.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildUnBindGroup.cs new file mode 100644 index 00000000..6099514b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildUnBindGroup.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_DragonGuildUnBindGroup + { + public static void OnReply(DragonGuildUnBindGroupArg oArg, DragonGuildUnBindGroupRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonGuildDocument.Doc.OnUnbindQQGroup(oArg, oRes); + } + } + } + + public static void OnTimeout(DragonGuildUnBindGroupArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildUnBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildUnBindGroup.cs.meta new file mode 100644 index 00000000..5926078d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_DragonGuildUnBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ec550fc8db4ccc4a9a0d6207da9d344 +timeCreated: 1611404131 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBMReadyScene.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBMReadyScene.cs new file mode 100644 index 00000000..c3077b46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBMReadyScene.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_EnterBMReadyScene + { + public static void OnReply(EnterBMReadySceneArg oArg, EnterBMReadySceneRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XBigMeleeEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + specificDocument.GroupID = (int)(oRes.group + 1u); + } + } + } + } + + public static void OnTimeout(EnterBMReadySceneArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBMReadyScene.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBMReadyScene.cs.meta new file mode 100644 index 00000000..703e4884 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBMReadyScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 970d4f879581b4f43ab04f3806360000 +timeCreated: 1611404187 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBattleReadyScene.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBattleReadyScene.cs new file mode 100644 index 00000000..9bb0f95a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBattleReadyScene.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_EnterBattleReadyScene + { + public static void OnReply(EnterBattleReadySceneArg oArg, EnterBattleReadySceneRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(EnterBattleReadySceneArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBattleReadyScene.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBattleReadyScene.cs.meta new file mode 100644 index 00000000..28d9843c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterBattleReadyScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af3e1bf5941ca0642bc8153e0abecca6 +timeCreated: 1611404343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterWeddingScene.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterWeddingScene.cs new file mode 100644 index 00000000..09e7f277 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterWeddingScene.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_EnterWeddingScene + { + public static void OnReply(EnterWeddingSceneArg oArg, EnterWeddingSceneRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument doc = XWeddingDocument.Doc; + doc.OnEnterWedding(oRes); + } + } + } + + public static void OnTimeout(EnterWeddingSceneArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterWeddingScene.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterWeddingScene.cs.meta new file mode 100644 index 00000000..df991b3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_EnterWeddingScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8e0b98c87c5148468f83e1de3bd28d0 +timeCreated: 1611404536 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDGApps.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDGApps.cs new file mode 100644 index 00000000..d190f5e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDGApps.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FetchDGApps + { + public static void OnReply(FetchDGAppArg oArg, FetchDGAppRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonGuildApproveDocument specificDocument = XDocuments.GetSpecificDocument(XDragonGuildApproveDocument.uuID); + specificDocument.OnGetApproveList(oRes); + } + } + } + + public static void OnTimeout(FetchDGAppArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDGApps.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDGApps.cs.meta new file mode 100644 index 00000000..acbbcf4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDGApps.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63a46c15dc93c2a45af6828dbd8000e6 +timeCreated: 1611403845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDragonGuildList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDragonGuildList.cs new file mode 100644 index 00000000..bb492385 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDragonGuildList.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FetchDragonGuildList + { + public static void OnReply(FetchDragonGuildListArg oArg, FetchDragonGuildRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oArg.reason == 2; + if (flag3) + { + XRankDocument specificDocument = XDocuments.GetSpecificDocument(XRankDocument.uuID); + specificDocument.OnGetDragonGuildList(oArg, oRes); + } + else + { + XDragonGuildListDocument.Doc.OnGetDragonGuildList(oArg, oRes); + } + } + } + } + + public static void OnTimeout(FetchDragonGuildListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDragonGuildList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDragonGuildList.cs.meta new file mode 100644 index 00000000..99d34ac5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchDragonGuildList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fd3455330960e8b46aef7b9cc2087550 +timeCreated: 1611404937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildApp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildApp.cs new file mode 100644 index 00000000..8aa9f528 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildApp.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FetchGuildApp + { + public static void OnReply(FetchGAPPArg oArg, FetchGAPPRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildApproveDocument specificDocument = XDocuments.GetSpecificDocument(XGuildApproveDocument.uuID); + specificDocument.OnGetApproveList(oRes); + } + } + } + + public static void OnTimeout(FetchGAPPArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildApp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildApp.cs.meta new file mode 100644 index 00000000..7843d05b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildApp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39039d57caeb8624aa821727233b5158 +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildHistoryNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildHistoryNew.cs new file mode 100644 index 00000000..46278e16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildHistoryNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FetchGuildHistoryNew + { + public static void OnReply(GuildHistoryArg oArg, GuildHistoryRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildHallDocument specificDocument = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + specificDocument.OnGetLogList(oRes); + } + } + } + + public static void OnTimeout(GuildHistoryArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildHistoryNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildHistoryNew.cs.meta new file mode 100644 index 00000000..92be7dc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchGuildHistoryNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15cec691bdfc70849996b337cef98d86 +timeCreated: 1611403265 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchMail.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchMail.cs new file mode 100644 index 00000000..32c8380a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchMail.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_FetchMail + { + public static void OnReply(FetchMailArg oArg, FetchMailRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + XMailDocument specificDocument = XDocuments.GetSpecificDocument(XMailDocument.uuID); + specificDocument.ResMailInfo(oRes); + } + } + + public static void OnTimeout(FetchMailArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchMail.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchMail.cs.meta new file mode 100644 index 00000000..a4224492 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchMail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b85f49c73f8f1bf44975a9c3277a5ae7 +timeCreated: 1611404404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlantInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlantInfo.cs new file mode 100644 index 00000000..2b4715e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlantInfo.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FetchPlantInfo + { + public static void OnReply(FetchPlantInfoArg oArg, FetchPlantInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + HomePlantDocument.Doc.OnFetchPlantInfoBack(oArg.farmland_id, oRes); + } + } + } + + public static void OnTimeout(FetchPlantInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlantInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlantInfo.cs.meta new file mode 100644 index 00000000..2ae4c1b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlantInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bd23cbb2ecedc945b249520706d984a +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlatNotice.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlatNotice.cs new file mode 100644 index 00000000..de48b07c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlatNotice.cs @@ -0,0 +1,42 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FetchPlatNotice + { + public static void OnReply(FetchPlatNoticeArg oArg, FetchPlatNoticeRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.notice != null; + if (flag2) + { + bool isopen = oRes.notice.isopen; + if (isopen) + { + DlgBase.singleton.ShowAnnouncement(oRes.notice.content); + } + } + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XAnnouncementDocument specificDocument = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + specificDocument.GetNoticeData(oRes.data); + } + } + } + + public static void OnTimeout(FetchPlatNoticeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlatNotice.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlatNotice.cs.meta new file mode 100644 index 00000000..e639c4cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchPlatNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 540ae26dad8bd7841b65a03532a67bca +timeCreated: 1611403713 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs new file mode 100644 index 00000000..73c1a1e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FetchTeamListC2M + { + public static void OnReply(FetchTeamListArg oArg, FetchTeamListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnGetTeamList(oRes); + } + } + } + + public static void OnTimeout(FetchTeamListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs.meta new file mode 100644 index 00000000..dccdf7f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FetchTeamListC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e33672902c194944da1a9643506878ac +timeCreated: 1611404732 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGardenPlantLog.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGardenPlantLog.cs new file mode 100644 index 00000000..86401933 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGardenPlantLog.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FriendGardenPlantLog + { + public static void OnReply(FriendGardenPlantLogArg oArg, FriendGardenPlantLogRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + HomeMainDocument.Doc.OnGetPlantFriendList(oRes); + } + } + } + + public static void OnTimeout(FriendGardenPlantLogArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGardenPlantLog.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGardenPlantLog.cs.meta new file mode 100644 index 00000000..430c9d33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGardenPlantLog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74e32baeaca77a544bd1831e360ee414 +timeCreated: 1611403944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs new file mode 100644 index 00000000..648cd78b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_FriendGiftOpNew + { + public static void OnReply(FriendGiftOpArg oArg, FriendGiftOpRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.OnFriendGiftOp(oArg, oRes); + } + } + + public static void OnTimeout(FriendGiftOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs.meta new file mode 100644 index 00000000..8d8a0b48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_FriendGiftOpNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ad4b5c37bf6d924ebaab077aa877458 +timeCreated: 1611403991 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFCommonReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFCommonReq.cs new file mode 100644 index 00000000..052a5ba2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFCommonReq.cs @@ -0,0 +1,36 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GCFCommonReq + { + public static void OnReply(GCFCommonArg oArg, GCFCommonRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("ores is nil", null, null, null, null, null); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.RespGCFCommon(oArg.reqtype, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(oRes.errorcode), "fece00"); + } + } + } + + public static void OnTimeout(GCFCommonArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFCommonReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFCommonReq.cs.meta new file mode 100644 index 00000000..ede9f4aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFCommonReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ebdbf487401c4a49881222ca64d85b3 +timeCreated: 1611403511 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFFightInfoReqC2M.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFFightInfoReqC2M.cs new file mode 100644 index 00000000..02e981df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFFightInfoReqC2M.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GCFFightInfoReqC2M + { + public static void OnReply(GCFFightInfoArg oArg, GCFFightInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.RespGCFFightInfo(oRes); + } + } + + public static void OnTimeout(GCFFightInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFFightInfoReqC2M.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFFightInfoReqC2M.cs.meta new file mode 100644 index 00000000..a9398451 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFFightInfoReqC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b5451e7f4646be47b8185e950b2eb0c +timeCreated: 1611404205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs new file mode 100644 index 00000000..70dda74d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GCFReadysInfoReq + { + public static void OnReply(GCFReadyInfoArg oArg, GCFReadyInfoRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.RespGCFReadysInfo(oRes); + } + } + + public static void OnTimeout(GCFReadyInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs.meta new file mode 100644 index 00000000..6bc97939 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GCFReadysInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1402205e072addb4bbf2b19dfc373efc +timeCreated: 1611403251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquet.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquet.cs new file mode 100644 index 00000000..0cebf6f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquet.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GardenBanquet + { + public static void OnReply(GardenBanquetArg oArg, GardenBanquetRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XHomeCookAndPartyDocument.Doc.CurBanquetID = oArg.banquet_id; + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(GardenBanquetArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquet.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquet.cs.meta new file mode 100644 index 00000000..901d973b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1be867c14c99b3e4c83b642b9d013c92 +timeCreated: 1611403341 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquetAward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquetAward.cs new file mode 100644 index 00000000..cccc5346 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquetAward.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GardenBanquetAward + { + public static void OnReply(BanquetAwardArg oArg, BanquetAwardRes oRes) + { + } + + public static void OnTimeout(BanquetAwardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquetAward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquetAward.cs.meta new file mode 100644 index 00000000..aa609244 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenBanquetAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a959f8da78a46349beef6f7f2afefa1 +timeCreated: 1611404092 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenCookingFood.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenCookingFood.cs new file mode 100644 index 00000000..b9fc0c0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenCookingFood.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GardenCookingFood + { + public static void OnReply(GardenCookingFoodArg oArg, GardenCookingFoodRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + HomeMainDocument.Doc.RefreshCookingInfo(oArg.food_id, oRes); + XHomeCookAndPartyDocument.Doc.CookingFoodSuccess(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(GardenCookingFoodArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenCookingFood.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenCookingFood.cs.meta new file mode 100644 index 00000000..cf5f95df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenCookingFood.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f99968e5f3e8c6a4094ee0b66aca2363 +timeCreated: 1611404899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenExpelSprite.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenExpelSprite.cs new file mode 100644 index 00000000..459da7cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenExpelSprite.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GardenExpelSprite + { + public static void OnReply(GardenExpelSpriteArg oArg, GardenExpelSpriteRes oRes) + { + HomePlantDocument.Doc.OnDriveTroubleMakerBack(oRes); + } + + public static void OnTimeout(GardenExpelSpriteArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenExpelSprite.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenExpelSprite.cs.meta new file mode 100644 index 00000000..c99e6c2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenExpelSprite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dae9cb73e0d8671499e2e48504399dbb +timeCreated: 1611404650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenFishInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenFishInfo.cs new file mode 100644 index 00000000..c2603d33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenFishInfo.cs @@ -0,0 +1,48 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GardenFishInfo + { + public static void OnReply(GardenFishInfoArg oArg, GardenFishInfoRes oRes) + { + XHomeFishingDocument specificDocument = XDocuments.GetSpecificDocument(XHomeFishingDocument.uuID); + bool flag = oRes == null; + if (flag) + { + specificDocument.ErrorLeaveFishing(); + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + specificDocument.ErrorLeaveFishing(); + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + specificDocument.SetLevelExpInfo(oRes.fish_level, oRes.experiences); + } + } + } + } + + public static void OnTimeout(GardenFishInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenFishInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenFishInfo.cs.meta new file mode 100644 index 00000000..41e8eea1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenFishInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2b378aa406ae5c48838bfc9a7d304b4 +timeCreated: 1611404258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenOverview.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenOverview.cs new file mode 100644 index 00000000..f13028ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenOverview.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GardenOverview + { + public static void OnReply(GardenOverviewArg oArg, GardenOverviewRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + HomeMainDocument.Doc.OnGetGardenOverview(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(GardenOverviewArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenOverview.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenOverview.cs.meta new file mode 100644 index 00000000..68247666 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenOverview.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c93f4af24908e34429018ba18be60dc6 +timeCreated: 1611404538 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenSteal.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenSteal.cs new file mode 100644 index 00000000..b43ebf67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenSteal.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GardenSteal + { + public static void OnReply(GardenStealArg oArg, GardenStealRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + HomePlantDocument.Doc.OnHomeStealBack(oArg.farmland_id, oRes); + } + } + } + + public static void OnTimeout(GardenStealArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenSteal.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenSteal.cs.meta new file mode 100644 index 00000000..6d1c5e4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GardenSteal.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9cf7e250ba0d59a46be146f8cfb0d680 +timeCreated: 1611404234 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetAllWeddingInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetAllWeddingInfo.cs new file mode 100644 index 00000000..2fe46c29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetAllWeddingInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetAllWeddingInfo + { + public static void OnReply(GetAllWeddingInfoArg oArg, GetAllWeddingInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument doc = XWeddingDocument.Doc; + doc.OnGetAllWeddingInfo(oRes); + } + } + } + + public static void OnTimeout(GetAllWeddingInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetAllWeddingInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetAllWeddingInfo.cs.meta new file mode 100644 index 00000000..9896674e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetAllWeddingInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7fd7623b573edd440ac8c1a84403ec60 +timeCreated: 1611404032 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetCrossGvgData.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetCrossGvgData.cs new file mode 100644 index 00000000..6294ea3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetCrossGvgData.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetCrossGvgData + { + public static void OnReply(GetCrossGvgDataArg oArg, GetCrossGvgDataRes oRes) + { + XCrossGVGDocument specificDocument = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + specificDocument.ReceiveCrossGVGData(oRes); + } + + public static void OnTimeout(GetCrossGvgDataArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetCrossGvgData.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetCrossGvgData.cs.meta new file mode 100644 index 00000000..7c7b3f3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetCrossGvgData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0fd8df008e30a648a7a020a44774ac3 +timeCreated: 1611404251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskAskHelp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskAskHelp.cs new file mode 100644 index 00000000..b9dd5e76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskAskHelp.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDailyTaskAskHelp + { + public static void OnReply(GetDailyTaskAskHelpArg oArg, GetDailyTaskAskHelpRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XGuildDailyTaskDocument.Doc.OnGetTaskHelpInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(GetDailyTaskAskHelpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskAskHelp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskAskHelp.cs.meta new file mode 100644 index 00000000..1f3a7c3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskAskHelp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4e1c6b0188121e4a9225f6f79d9fcbf +timeCreated: 1611404741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshInfo.cs new file mode 100644 index 00000000..29ec698a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDailyTaskRefreshInfo + { + public static void OnReply(GetDailyTaskRefreshInfoArg oArg, GetDailyTaskRefreshInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XGuildDailyTaskDocument.Doc.OnGetTaskRefreshInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(GetDailyTaskRefreshInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshInfo.cs.meta new file mode 100644 index 00000000..daf567ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09f8a847bff01634b877c9f1a3f52375 +timeCreated: 1611403160 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshRecord.cs new file mode 100644 index 00000000..96ca6840 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshRecord.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDailyTaskRefreshRecord + { + public static void OnReply(GetDailyTaskRefreshRecordArg oArg, GetDailyTaskRefreshRecordRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XGuildDailyTaskDocument.Doc.OnGetRefreshRecordInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(GetDailyTaskRefreshRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshRecord.cs.meta new file mode 100644 index 00000000..f1af1339 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDailyTaskRefreshRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 181a456e3c337f8418949de6670034fa +timeCreated: 1611403296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDanceIds.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDanceIds.cs new file mode 100644 index 00000000..912322a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDanceIds.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDanceIds + { + public static void OnReply(GetDanceIdsArg oArg, GetDanceIdsRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XDanceDocument.Doc.OnGetDanceIDs(oRes); + } + } + + public static void OnTimeout(GetDanceIdsArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDanceIds.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDanceIds.cs.meta new file mode 100644 index 00000000..6a55925e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDanceIds.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2db2e3f2792e4fe4182b3a0ad17d9f0f +timeCreated: 1611403507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildBindInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildBindInfo.cs new file mode 100644 index 00000000..f13358f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildBindInfo.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDragonGuildBindInfo + { + public static void OnReply(GetDragonGuildBindInfoArg oArg, GetDragonGuildBindInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XDragonGuildDocument.Doc.OnGetQQGroupBindInfo(oArg, oRes); + } + } + } + + public static void OnTimeout(GetDragonGuildBindInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildBindInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildBindInfo.cs.meta new file mode 100644 index 00000000..346fc60d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildBindInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f9f9dd035de9234293c581163ec663b +timeCreated: 1611404135 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildLiveness.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildLiveness.cs new file mode 100644 index 00000000..746b88fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildLiveness.cs @@ -0,0 +1,27 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDragonGuildLiveness + { + public static void OnReply(GetPartnerLivenessArg oArg, GetPartnerLivenessRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XDragonGuildDocument.DragonGuildLivenessData.OnGetDragonGuildLivenessInfoBack(oRes); + } + } + + public static void OnTimeout(GetPartnerLivenessArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildLiveness.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildLiveness.cs.meta new file mode 100644 index 00000000..5960b873 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildLiveness.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7740afdd575ea2745ba7f818bdc91231 +timeCreated: 1611403952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShop.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShop.cs new file mode 100644 index 00000000..5d5a5fa0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShop.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDragonGuildShop + { + public static void OnReply(GetDragonGuildShopArg oArg, GetDragonGuildShopRes oRes) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.OnGetGoodsList(oArg, oRes); + } + + public static void OnTimeout(GetDragonGuildShopArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShop.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShop.cs.meta new file mode 100644 index 00000000..167ce8e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b05a2f4b3946d884cac7300654b3fe9d +timeCreated: 1611404350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShopRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShopRecord.cs new file mode 100644 index 00000000..2d9714a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShopRecord.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDragonGuildShopRecord + { + public static void OnReply(GetDragonGuildShopRecordArg oArg, GetDragonGuildShopRecordRes oRes) + { + XDragonGuildDocument.Doc.OnGetShopRecordBack(oRes); + } + + public static void OnTimeout(GetDragonGuildShopRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShopRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShopRecord.cs.meta new file mode 100644 index 00000000..c124a8bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildShopRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca7f55b3e1e1e0d46a02d26cbe0eb8f7 +timeCreated: 1611404541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildTaskInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildTaskInfo.cs new file mode 100644 index 00000000..18e24c9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildTaskInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetDragonGuildTaskInfo + { + public static void OnReply(GetDragonGuildTaskInfoArg oArg, GetDragonGuildTaskInfoRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XDragonGuildTaskDocument specificDocument = XDocuments.GetSpecificDocument(XDragonGuildTaskDocument.uuID); + specificDocument.OnGetInfo(oRes); + } + } + + public static void OnTimeout(GetDragonGuildTaskInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildTaskInfo.cs.meta new file mode 100644 index 00000000..92cc9ea9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetDragonGuildTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c2e98bed41344f49971b5a22453b6c7 +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetFlowerActivityReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetFlowerActivityReward.cs new file mode 100644 index 00000000..18cfa1e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetFlowerActivityReward.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetFlowerActivityReward + { + public static void OnReply(GetFlowerActivityRewardArg oArg, GetFlowerActivityRewardRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument.OnGetFlowerActivityReward(oRes); + } + } + } + + public static void OnTimeout(GetFlowerActivityRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetFlowerActivityReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetFlowerActivityReward.cs.meta new file mode 100644 index 00000000..0b917219 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetFlowerActivityReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d59b807efb0bd1419f3a2f67527b468 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs new file mode 100644 index 00000000..91d26362 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetGuildBindInfo + { + public static void OnReply(GetGuildBindInfoReq oArg, GetGuildBindInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + specificDocument.OnGetQQGroupBindInfo(oArg, oRes); + } + } + } + + public static void OnTimeout(GetGuildBindInfoReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs.meta new file mode 100644 index 00000000..8c257a9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBindInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ebd8d4b8099b1341bae042b5f5ed028 +timeCreated: 1611404131 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBonusSendList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBonusSendList.cs new file mode 100644 index 00000000..d30c8392 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBonusSendList.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetGuildBonusSendList + { + public static void OnReply(GetGuildBonusSendListArg oArg, GetGuildBonusSendListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.ReceiveGuildBonusSendList(oRes); + } + } + + public static void OnTimeout(GetGuildBonusSendListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBonusSendList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBonusSendList.cs.meta new file mode 100644 index 00000000..e067e8a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildBonusSendList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d8258b843aa6074a8502578c1699754 +timeCreated: 1611403355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildCheckinRecordsNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildCheckinRecordsNew.cs new file mode 100644 index 00000000..e2b8c36b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildCheckinRecordsNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetGuildCheckinRecordsNew + { + public static void OnReply(GetGuildCheckinRecordsArg oArg, GetGuildCheckinRecordsRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildSignInDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + specificDocument.onGetLogList(oRes); + } + } + } + + public static void OnTimeout(GetGuildCheckinRecordsArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildCheckinRecordsNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildCheckinRecordsNew.cs.meta new file mode 100644 index 00000000..b445ca67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildCheckinRecordsNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f070b36f5ae49f74088b06f48787f750 +timeCreated: 1611404831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildDonateInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildDonateInfo.cs new file mode 100644 index 00000000..d671e942 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildDonateInfo.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetGuildDonateInfo + { + public static void OnReply(GetGuildDonateInfoArg oArg, GetGuildDonateInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XGuildDonateDocument.Doc.OnGetDonateInfo(oRes); + } + } + } + } + + public static void OnTimeout(GetGuildDonateInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildDonateInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildDonateInfo.cs.meta new file mode 100644 index 00000000..a3296cdb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildDonateInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 64fb5591b39680d4a9616a3910361390 +timeCreated: 1611403848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildIntegralInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildIntegralInfo.cs new file mode 100644 index 00000000..bad3f068 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildIntegralInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetGuildIntegralInfo + { + public static void OnReply(GetGuildIntegralInfoArg oArg, GetGuildIntegralInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.ReceiveIntegralBattleInfo(oRes); + } + } + + public static void OnTimeout(GetGuildIntegralInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildIntegralInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildIntegralInfo.cs.meta new file mode 100644 index 00000000..b75322da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildIntegralInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af1f2c147c226bb48ad17610a7ae722c +timeCreated: 1611404342 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildWageReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildWageReward.cs new file mode 100644 index 00000000..f0902f8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildWageReward.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetGuildWageReward + { + public static void OnReply(GetGuildWageRewardArg oArg, GetGuildWageReward oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildSalaryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSalaryDocument.uuID); + specificDocument.ReceiveGuildWageReward(oRes); + } + } + + public static void OnTimeout(GetGuildWageRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildWageReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildWageReward.cs.meta new file mode 100644 index 00000000..76cf83ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetGuildWageReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed87655fb84e72840989cf90db8fef88 +timeCreated: 1611404791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleInfo.cs new file mode 100644 index 00000000..c6ec5470 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleInfo.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetLeagueBattleInfo + { + public static void OnReply(GetLeagueBattleInfoArg oArg, GetLeagueBattleInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFreeTeamVersusLeagueDocument.Doc.OnGetLeagueBattleInfo(oRes); + } + } + } + + public static void OnTimeout(GetLeagueBattleInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleInfo.cs.meta new file mode 100644 index 00000000..9c0cbb19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0b1f258daed4cc4382a206a52e89989 +timeCreated: 1611404352 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleRecord.cs new file mode 100644 index 00000000..3263643c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleRecord.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetLeagueBattleRecord + { + public static void OnReply(GetLeagueBattleRecordArg oArg, GetLeagueBattleRecordRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFreeTeamVersusLeagueDocument.Doc.OnGetLeagueBattleRecord(oRes); + } + } + } + + public static void OnTimeout(GetLeagueBattleRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleRecord.cs.meta new file mode 100644 index 00000000..47a8aefe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueBattleRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cac0bffd26e04644a8e0738b6da1bf49 +timeCreated: 1611404543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs new file mode 100644 index 00000000..cb72c193 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetLeagueEleInfo + { + public static void OnReply(GetLeagueEleInfoArg oArg, GetLeagueEleInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XFreeTeamVersusLeagueDocument.Doc.OnGetLeagueEleInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(oRes.result), "fece00"); + } + } + } + } + + public static void OnTimeout(GetLeagueEleInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs.meta new file mode 100644 index 00000000..187e4710 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueEleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9517f9a5fd7ce7f4c932428cf01b3b01 +timeCreated: 1611404179 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueTeamInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueTeamInfo.cs new file mode 100644 index 00000000..80e56dfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueTeamInfo.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetLeagueTeamInfo + { + public static void OnReply(GetLeagueTeamInfoArg oArg, GetLeagueTeamInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFreeTeamVersusLeagueDocument.Doc.OnGetLeagueTeamInfo(oArg, oRes); + } + } + } + + public static void OnTimeout(GetLeagueTeamInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueTeamInfo.cs.meta new file mode 100644 index 00000000..e5294856 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetLeagueTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8bb0b0e05a25af34caa0e3d08f6833f1 +timeCreated: 1611404096 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetListSubscribe.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetListSubscribe.cs new file mode 100644 index 00000000..71facf46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetListSubscribe.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetListSubscribe + { + public static void OnReply(GetListSubscribeArg oArg, GetListSubscribeRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XPushSubscribeDocument specificDocument = XDocuments.GetSpecificDocument(XPushSubscribeDocument.uuID); + specificDocument.OnListSubscribe(oRes.list); + } + } + } + + public static void OnTimeout(GetListSubscribeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetListSubscribe.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetListSubscribe.cs.meta new file mode 100644 index 00000000..5f7c4867 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetListSubscribe.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0412f7869a96c604dba514fcb0f95cdb +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageLiveness.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageLiveness.cs new file mode 100644 index 00000000..fb82c7b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageLiveness.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMarriageLiveness + { + public static void OnReply(GetMarriageLivenessArg oArg, GetMarriageLivenessRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument.Doc.OnGetPartnerLivenessInfo(oRes); + } + } + } + + public static void OnTimeout(GetMarriageLivenessArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageLiveness.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageLiveness.cs.meta new file mode 100644 index 00000000..6b81f761 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageLiveness.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3d9bc414483a6f43b19b92ed22213bf +timeCreated: 1611404280 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriagePrivilege.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriagePrivilege.cs new file mode 100644 index 00000000..2602e931 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriagePrivilege.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMarriagePrivilege + { + public static void OnReply(GetMarriagePrivilegeArg oArg, GetMarriagePrivilegeRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument.Doc.OnGetMarriagePrivilege(oRes.error); + } + } + } + + public static void OnTimeout(GetMarriagePrivilegeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriagePrivilege.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriagePrivilege.cs.meta new file mode 100644 index 00000000..e8f26e3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriagePrivilege.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6947e8983c22e084cbe7a9f93907bb4a +timeCreated: 1611403885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageRelation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageRelation.cs new file mode 100644 index 00000000..6fc78f27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageRelation.cs @@ -0,0 +1,39 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMarriageRelation + { + public static void OnReply(GetMarriageRelationArg oArg, GetMarriageRelationRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument doc = XWeddingDocument.Doc; + doc.OnGetMarriageRelationInfo(oRes); + doc.OnGetPartDetailInfoBack(oRes); + } + } + } + + public static void OnTimeout(GetMarriageRelationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageRelation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageRelation.cs.meta new file mode 100644 index 00000000..4f597e51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMarriageRelation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fb0312bb9b26f8458d3802391ef19d2 +timeCreated: 1611403403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleBriefRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleBriefRecord.cs new file mode 100644 index 00000000..73d7c852 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleBriefRecord.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMobaBattleBriefRecord + { + public static void OnReply(GetMobaBattleBriefRecordArg oArg, GetMobaBattleBriefRecordRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XMobaEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XMobaEntranceDocument.uuID); + specificDocument.SetMobaRecordTotal(oArg, oRes); + } + } + + public static void OnTimeout(GetMobaBattleBriefRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleBriefRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleBriefRecord.cs.meta new file mode 100644 index 00000000..df6de60e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleBriefRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 076ad7e68b116e44e85ecde99fe8bac7 +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleGameRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleGameRecord.cs new file mode 100644 index 00000000..59c9c8eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleGameRecord.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMobaBattleGameRecord + { + public static void OnReply(GetMobaBattleGameRecordArg oArg, GetMobaBattleGameRecordRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XMobaEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XMobaEntranceDocument.uuID); + specificDocument.SetMobaRecordRound(oArg, oRes); + } + } + + public static void OnTimeout(GetMobaBattleGameRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleGameRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleGameRecord.cs.meta new file mode 100644 index 00000000..9e374ae9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleGameRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf18ae1e43ca62c46a5b36fbb03ee016 +timeCreated: 1611404580 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleInfo.cs new file mode 100644 index 00000000..e369c575 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMobaBattleInfo + { + public static void OnReply(GetMobaBattleInfoArg oArg, GetMobaBattleInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XMobaEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XMobaEntranceDocument.uuID); + specificDocument.SetMobaUIInfo(oArg, oRes); + } + } + + public static void OnTimeout(GetMobaBattleInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleInfo.cs.meta new file mode 100644 index 00000000..2deb432a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff2142717b32af240882abcc2059156e +timeCreated: 1611404945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleWeekReward.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleWeekReward.cs new file mode 100644 index 00000000..0efd52a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleWeekReward.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMobaBattleWeekReward + { + public static void OnReply(GetMobaBattleWeekRewardArg oArg, GetMobaBattleWeekRewardRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XMobaEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XMobaEntranceDocument.uuID); + specificDocument.SetMobaNewReward(oArg, oRes); + } + } + } + } + + public static void OnTimeout(GetMobaBattleWeekRewardArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleWeekReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleWeekReward.cs.meta new file mode 100644 index 00000000..b180b0ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMobaBattleWeekReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2beb8cd24b73c54e9e2bbf68a0d14eb +timeCreated: 1611404596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyMasterInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyMasterInfo.cs new file mode 100644 index 00000000..2ebf05de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyMasterInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMyApplyMasterInfo + { + public static void OnReply(GetMyApplyMasterInfoArg oArg, GetMyApplyMasterInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XMentorshipDocument.Doc.OnGetMyApplyMasterInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(GetMyApplyMasterInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyMasterInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyMasterInfo.cs.meta new file mode 100644 index 00000000..6c96fe6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyMasterInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5cb23f9f85eb2c4c901daae9f342959 +timeCreated: 1611404628 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyStudentInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyStudentInfo.cs new file mode 100644 index 00000000..de100021 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyStudentInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMyApplyStudentInfo + { + public static void OnReply(GetMyApplyStudentInfoArg oArg, GetMyApplyStudentInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XMentorshipDocument.Doc.OnGetMyApplyPupilsInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(GetMyApplyStudentInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyStudentInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyStudentInfo.cs.meta new file mode 100644 index 00000000..33fbfaa3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyApplyStudentInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1599c3eb58985b34fa544f1ce42756f7 +timeCreated: 1611403264 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs new file mode 100644 index 00000000..a1498b87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetMyMentorInfo + { + public static void OnReply(GetMyMentorInfoArg oArg, GetMyMentorInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XMentorshipDocument.Doc.OnGetMyMentorInfo(oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(GetMyMentorInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs.meta new file mode 100644 index 00000000..baeb0f94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetMyMentorInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 563efa2044bc9ec4a935cafa13e87a1e +timeCreated: 1611403743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherGuildBriefNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherGuildBriefNew.cs new file mode 100644 index 00000000..974ca792 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherGuildBriefNew.cs @@ -0,0 +1,42 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetOtherGuildBriefNew + { + public static void OnReply(GetOtherGuildBriefArg oArg, GetOtherGuildBriefRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshGuildInfo(oRes); + } + } + } + } + + public static void OnTimeout(GetOtherGuildBriefArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherGuildBriefNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherGuildBriefNew.cs.meta new file mode 100644 index 00000000..c15d1b1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherGuildBriefNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acfc3ada231b06c4d8a2d894e19c46be +timeCreated: 1611404332 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherMentorStatus.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherMentorStatus.cs new file mode 100644 index 00000000..913914ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherMentorStatus.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetOtherMentorStatus + { + public static void OnReply(GetOtherMentorStatusArg oArg, GetOtherMentorStatusRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XMentorshipDocument.Doc.OnGetOtherMentorStatus(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(GetOtherMentorStatusArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherMentorStatus.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherMentorStatus.cs.meta new file mode 100644 index 00000000..274c1962 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetOtherMentorStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48bb3d8f9cb7c4941b895970a9c8183a +timeCreated: 1611403659 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerDetailInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerDetailInfo.cs new file mode 100644 index 00000000..7cd2d0b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerDetailInfo.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetPartnerDetailInfo + { + public static void OnReply(GetPartnerDetailInfoArg oArg, GetPartnerDetailInfoRes oRes) + { + XPartnerDocument.Doc.OnGetPartDetailInfoBack(oRes); + } + + public static void OnTimeout(GetPartnerDetailInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerDetailInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerDetailInfo.cs.meta new file mode 100644 index 00000000..628f40e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerDetailInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 799505e4e8e85584ca389637ecdcd7c1 +timeCreated: 1611403986 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerInfo.cs new file mode 100644 index 00000000..d421de46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerInfo.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetPartnerInfo + { + public static void OnReply(GetPartnerInfoArg oArg, GetPartnerInfoRes oRes) + { + XPartnerDocument.Doc.OnGetPartnerInfoBack(oRes); + } + + public static void OnTimeout(GetPartnerInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerInfo.cs.meta new file mode 100644 index 00000000..e1299797 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53b207f4b898478499ff0018ff19654a +timeCreated: 1611403712 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerLiveness.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerLiveness.cs new file mode 100644 index 00000000..669b7bd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerLiveness.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetPartnerLiveness + { + public static void OnReply(GetPartnerLivenessArg oArg, GetPartnerLivenessRes oRes) + { + XPartnerDocument.PartnerLivenessData.OnGetPartnerLivenessInfoBack(oRes); + } + + public static void OnTimeout(GetPartnerLivenessArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerLiveness.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerLiveness.cs.meta new file mode 100644 index 00000000..cb3cf763 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerLiveness.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f165b35b7214bba4eaeb37933d779b3e +timeCreated: 1611404837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShop.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShop.cs new file mode 100644 index 00000000..4293e970 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShop.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetPartnerShop + { + public static void OnReply(GetPartnerShopArg oArg, GetPartnerShopRes oRes) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.OnGetGoodsList(oArg, oRes); + } + + public static void OnTimeout(GetPartnerShopArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShop.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShop.cs.meta new file mode 100644 index 00000000..83762795 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 860c10a17021b1542b98ae0a29c8d44c +timeCreated: 1611404053 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShopRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShopRecord.cs new file mode 100644 index 00000000..80bc2066 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShopRecord.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetPartnerShopRecord + { + public static void OnReply(GetPartnerShopRecordArg oArg, GetPartnerShopRecordRes oRes) + { + XPartnerDocument.Doc.OnGetShopRecordBack(oRes); + } + + public static void OnTimeout(GetPartnerShopRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShopRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShopRecord.cs.meta new file mode 100644 index 00000000..8ab5ec14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetPartnerShopRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c93c434be94cd844b32f42b375bc314 +timeCreated: 1611403503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetQADataReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetQADataReq.cs new file mode 100644 index 00000000..381dd63e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetQADataReq.cs @@ -0,0 +1,62 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetQADataReq + { + public static void OnReply(GetQADataReq oArg, GetQADataRes oRes) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + specificDocument.IsVoiceQAIng = false; + specificDocument.MainInterFaceBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag3) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag4 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag4) + { + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + specificDocument.IsVoiceQAIng = false; + specificDocument.MainInterFaceBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + specificDocument.SetVoiceQAInfo(oRes); + } + } + } + } + + public static void OnTimeout(GetQADataReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetQADataReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetQADataReq.cs.meta new file mode 100644 index 00000000..3416d2f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetQADataReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 350eb59889a8c044f927088c4a34338d +timeCreated: 1611403557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs new file mode 100644 index 00000000..e978957d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetRiftGuildRank + { + public static void OnReply(GetRiftGuildRankArg oArg, GetRiftGuildRankRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + XRiftDocument specificDocument = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + specificDocument.ResGuildRank(oRes); + } + } + } + } + + public static void OnTimeout(GetRiftGuildRankArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs.meta new file mode 100644 index 00000000..81612d09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetRiftGuildRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5dc4bf793ba2a841b579c01a91e6f71 +timeCreated: 1611404629 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftEliInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftEliInfo.cs new file mode 100644 index 00000000..ff42815e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftEliInfo.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetSkyCraftEliInfo + { + public static void OnReply(GetSkyCraftEliInfoArg oArg, GetSkyCraftEliInfoRes oRes) + { + } + + public static void OnTimeout(GetSkyCraftEliInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftEliInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftEliInfo.cs.meta new file mode 100644 index 00000000..62f5e52e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftEliInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d1aaae2d564e674a9e08a4af194c7cc +timeCreated: 1611404234 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs new file mode 100644 index 00000000..c4bfed7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetSkyCraftInfo + { + public static void OnReply(GetSkyCraftInfoArg oArg, GetSkyCraftInfoRes oRes) + { + } + + public static void OnTimeout(GetSkyCraftInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs.meta new file mode 100644 index 00000000..1fae0c62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bcc738488f206074e9a4d1f596dadfa4 +timeCreated: 1611404448 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftRecord.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftRecord.cs new file mode 100644 index 00000000..299200b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftRecord.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetSkyCraftRecord + { + public static void OnReply(GetSkyCraftRecordArg oArg, GetSkyCraftRecordRes oRes) + { + } + + public static void OnTimeout(GetSkyCraftRecordArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftRecord.cs.meta new file mode 100644 index 00000000..ee50374b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b1778e01a533db468314f19e56675af +timeCreated: 1611403597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs new file mode 100644 index 00000000..946ee16d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetSkyCraftTeamInfo + { + public static void OnReply(GetSkyCraftTeamInfoArg oArg, GetSkyCraftTeamInfoRes oRes) + { + } + + public static void OnTimeout(GetSkyCraftTeamInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs.meta new file mode 100644 index 00000000..c984a0c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetSkyCraftTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3563e2c86005fb429bc3a830bde1356 +timeCreated: 1611404848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs new file mode 100644 index 00000000..97ee821e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs @@ -0,0 +1,95 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetUnitAppearanceNew + { + public static void OnReply(GetUnitAppearanceArg oArg, GetUnitAppearanceRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag4 = oArg.type == 1u; + if (flag4) + { + XRankDocument specificDocument = XDocuments.GetSpecificDocument(XRankDocument.uuID); + specificDocument.OnGetUnitAppearance(oRes); + } + else + { + bool flag5 = oArg.type == 2u; + if (flag5) + { + XOtherPlayerInfoDocument specificDocument2 = XDocuments.GetSpecificDocument(XOtherPlayerInfoDocument.uuID); + specificDocument2.OnGetUnitAppearance(oRes); + } + else + { + bool flag6 = oArg.type == 3u; + if (flag6) + { + XFlowerRankDocument specificDocument3 = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument3.OnGetUnitAppearance(oRes); + } + else + { + bool flag7 = oArg.type == 4u; + if (flag7) + { + XCharacterCommonMenuDocument specificDocument4 = XDocuments.GetSpecificDocument(XCharacterCommonMenuDocument.uuID); + specificDocument4.OnGetUnitAppearance(oRes); + } + else + { + bool flag8 = oArg.type == 5u; + if (flag8) + { + XOtherPlayerInfoDocument specificDocument5 = XDocuments.GetSpecificDocument(XOtherPlayerInfoDocument.uuID); + specificDocument5.OnGetSpriteInfoReturn(oRes); + } + else + { + bool flag9 = oArg.type == 6u; + if (flag9) + { + XOtherPlayerInfoDocument specificDocument6 = XDocuments.GetSpecificDocument(XOtherPlayerInfoDocument.uuID); + specificDocument6.OnGetPetInfoReturn(oRes); + } + } + } + } + } + } + } + } + } + } + + public static void OnTimeout(GetUnitAppearanceArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs.meta new file mode 100644 index 00000000..f66c0d59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetUnitAppearanceNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8324a93f8783a6e48a8dcff6d013171c +timeCreated: 1611404043 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWeddingInviteInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWeddingInviteInfo.cs new file mode 100644 index 00000000..fd8b8d76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWeddingInviteInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetWeddingInviteInfo + { + public static void OnReply(GetWeddingInviteInfoArg oArg, GetWeddingInviteInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument doc = XWeddingDocument.Doc; + doc.OnGetWeddingInviteInfo(oRes); + } + } + } + + public static void OnTimeout(GetWeddingInviteInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWeddingInviteInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWeddingInviteInfo.cs.meta new file mode 100644 index 00000000..8605de01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWeddingInviteInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 52f1422e292e1d3459e49b7de3da65e4 +timeCreated: 1611403709 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossStateNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossStateNew.cs new file mode 100644 index 00000000..0b71df85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossStateNew.cs @@ -0,0 +1,37 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetWorldBossStateNew + { + public static void OnReply(GetWorldBossStateArg oArg, GetWorldBossStateRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oArg.type == 0u; + if (flag2) + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.OnGetWorldBossLeftState(oRes); + } + else + { + XGuildDragonDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument2.OnGetWorldBossLeftState(oRes); + } + } + } + + public static void OnTimeout(GetWorldBossStateArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossStateNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossStateNew.cs.meta new file mode 100644 index 00000000..97c50199 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossStateNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8af9608f5929f54418eddbeaa263999a +timeCreated: 1611404093 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossTimeLeft.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossTimeLeft.cs new file mode 100644 index 00000000..d28fac61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossTimeLeft.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GetWorldBossTimeLeft + { + public static void OnReply(GetWorldBossTimeLeftArg oArg, GetWorldBossTimeLeftRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.OnGetBattleInfo(oRes); + } + } + + public static void OnTimeout(GetWorldBossTimeLeftArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossTimeLeft.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossTimeLeft.cs.meta new file mode 100644 index 00000000..8d11b8a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GetWorldBossTimeLeft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77e3e1e1929059d45a9064176b3147d1 +timeCreated: 1611403956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs new file mode 100644 index 00000000..f529ca83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GiftIbReqGoods + { + public static void OnReply(GiftIbReqGoodsArg oArg, GiftIbReqGoodsRes oRes) + { + } + + public static void OnTimeout(GiftIbReqGoodsArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs.meta new file mode 100644 index 00000000..6570e7bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GiftIbReqGoods.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ccec02593d1017c43873d22e4cbce8cd +timeCreated: 1611404553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetAwards.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetAwards.cs new file mode 100644 index 00000000..9c56e5d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetAwards.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GoalAwardsGetAwards + { + public static void OnReply(GoalAwardsGetAwards_C2M oArg, GoalAwardsGetAwards_M2C oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XTargetRewardDocument specificDocument = XDocuments.GetSpecificDocument(XTargetRewardDocument.uuID); + specificDocument.OnClaimedAchieve(oArg.goalAwardsID, oRes.gottenAwardsIndex); + } + } + + public static void OnTimeout(GoalAwardsGetAwards_C2M oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetAwards.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetAwards.cs.meta new file mode 100644 index 00000000..24bb4193 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetAwards.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aabde65d970d59248bbaca9c6aa4514c +timeCreated: 1611404304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetList.cs new file mode 100644 index 00000000..243a51e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetList.cs @@ -0,0 +1,30 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GoalAwardsGetList + { + public static void OnReply(GoalAwardsGetList_C2M oArg, GoalAwardsGetList_M2C oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XTargetRewardDocument specificDocument = XDocuments.GetSpecificDocument(XTargetRewardDocument.uuID); + specificDocument.OnResTargetRewardType(oArg, oRes); + } + } + + public static void OnTimeout(GoalAwardsGetList_C2M oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetList.cs.meta new file mode 100644 index 00000000..4b2e8f1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GoalAwardsGetList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 731f35c83160f9d44b5727f4dd8be350 +timeCreated: 1611403939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatChangeName.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatChangeName.cs new file mode 100644 index 00000000..4a7edb63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatChangeName.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatChangeName + { + public static void OnReply(GroupChatChangeNameC2S oArg, GroupChatChangeNameS2C oRes) + { + } + + public static void OnTimeout(GroupChatChangeNameC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatChangeName.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatChangeName.cs.meta new file mode 100644 index 00000000..0f0ca637 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatChangeName.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68a9a72cd605cef4982022f9a2758bd7 +timeCreated: 1611403883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatClear.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatClear.cs new file mode 100644 index 00000000..fa31c86c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatClear.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatClear + { + public static void OnReply(GroupChatClearC2S oArg, GroupChatClearS2C oRes) + { + } + + public static void OnTimeout(GroupChatClearC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatClear.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatClear.cs.meta new file mode 100644 index 00000000..7fb12e86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatClear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e951c199861b95747900959a3dee4eb8 +timeCreated: 1611404755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatCreate.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatCreate.cs new file mode 100644 index 00000000..0339f6f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatCreate.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatCreate + { + public static void OnReply(GroupChatCreateC2S oArg, GroupChatCreateS2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag3) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ResCreateGroupChat(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + + public static void OnTimeout(GroupChatCreateC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatCreate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatCreate.cs.meta new file mode 100644 index 00000000..b0eebc22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatCreate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a929f0bf50d7f649a018ee70702fe13 +timeCreated: 1611404092 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindRoleInfoList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindRoleInfoList.cs new file mode 100644 index 00000000..bcfc2780 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindRoleInfoList.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatFindRoleInfoList + { + public static void OnReply(GroupChatFindRoleInfoListC2S oArg, GroupChatFindRoleInfoListS2C oRes) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReceiveGroupChatFindRoleInfoList(oRes); + } + + public static void OnTimeout(GroupChatFindRoleInfoListC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindRoleInfoList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindRoleInfoList.cs.meta new file mode 100644 index 00000000..3df2f830 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindRoleInfoList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cebe2632b1cfe6408cda3b212344c43 +timeCreated: 1611403804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindTeamInfoList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindTeamInfoList.cs new file mode 100644 index 00000000..772df52c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindTeamInfoList.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatFindTeamInfoList + { + public static void OnReply(GroupChatFindTeamInfoListC2S oArg, GroupChatFindTeamInfoListS2C oRes) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReceiveGroupChatFindTeamInfoList(oRes); + } + + public static void OnTimeout(GroupChatFindTeamInfoListC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindTeamInfoList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindTeamInfoList.cs.meta new file mode 100644 index 00000000..8ab9a09d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatFindTeamInfoList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec4f809887bee6c428b9aef337ada011 +timeCreated: 1611404787 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatGetGroupInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatGetGroupInfo.cs new file mode 100644 index 00000000..5b4cfd4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatGetGroupInfo.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatGetGroupInfo + { + public static void OnReply(GroupChatGetGroupInfoC2S oArg, GroupChatGetGroupInfoS2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag3) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ResGroupInfo(oRes.playerlist); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + + public static void OnTimeout(GroupChatGetGroupInfoC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatGetGroupInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatGetGroupInfo.cs.meta new file mode 100644 index 00000000..e500a0cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatGetGroupInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2f603db2f79be24ba26fcef66175886 +timeCreated: 1611404846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderAddRole.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderAddRole.cs new file mode 100644 index 00000000..7e1a8aa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderAddRole.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatLeaderAddRole + { + public static void OnReply(GroupChatLeaderAddRoleC2S oArg, GroupChatLeaderAddRoleS2C oRes) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.RecevieZMLeaderAddRole(oArg, oRes); + } + + public static void OnTimeout(GroupChatLeaderAddRoleC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderAddRole.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderAddRole.cs.meta new file mode 100644 index 00000000..f20e189a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderAddRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12e24e4402874ea4694de83fd31496f3 +timeCreated: 1611403244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderIssueInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderIssueInfo.cs new file mode 100644 index 00000000..dd5330a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderIssueInfo.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatLeaderIssueInfo + { + public static void OnReply(GroupChatLeaderIssueInfoC2S oArg, GroupChatLeaderIssueInfoS2C oRes) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReceiveGroupChatLeaderInfo(oRes); + } + + public static void OnTimeout(GroupChatLeaderIssueInfoC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderIssueInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderIssueInfo.cs.meta new file mode 100644 index 00000000..0bf4930f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderIssueInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1512dbf1608359d4ab4b902e3a7cad89 +timeCreated: 1611403261 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReview.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReview.cs new file mode 100644 index 00000000..bcc8b1bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReview.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatLeaderReview + { + public static void OnReply(GroupChatLeaderReviewC2S oArg, GroupChatLeaderReviewS2C oRes) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReceiveGroupChatLeaderReview(oArg, oRes); + } + + public static void OnTimeout(GroupChatLeaderReviewC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReview.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReview.cs.meta new file mode 100644 index 00000000..21654967 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReview.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32975f190ba37aa44ab9e4296c8cbc87 +timeCreated: 1611403549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReviewList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReviewList.cs new file mode 100644 index 00000000..f1bd1ecf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReviewList.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatLeaderReviewList + { + public static void OnReply(GroupChatLeaderReviewListC2S oArg, GroupChatLeaderReviewListS2C oRes) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReceiveGroupChatLeaderReviewList(oRes); + } + + public static void OnTimeout(GroupChatLeaderReviewListC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReviewList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReviewList.cs.meta new file mode 100644 index 00000000..f29eb9bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatLeaderReviewList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8394aba24f0edb04492743d4da522663 +timeCreated: 1611404045 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatManager.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatManager.cs new file mode 100644 index 00000000..00f49450 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatManager.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatManager + { + public static void OnReply(GroupChatManagerC2S oArg, GroupChatManagerS2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (!flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + + public static void OnTimeout(GroupChatManagerC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatManager.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatManager.cs.meta new file mode 100644 index 00000000..5a967b46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8397a629cac160449938b1312f916872 +timeCreated: 1611404045 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerApply.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerApply.cs new file mode 100644 index 00000000..6a9e0634 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerApply.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatPlayerApply + { + public static void OnReply(GroupChatPlayerApplyC2S oArg, GroupChatPlayerApplyS2C oRes) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReceiveGroupChatPlayerApply(oArg, oRes); + } + + public static void OnTimeout(GroupChatPlayerApplyC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerApply.cs.meta new file mode 100644 index 00000000..8914059f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c4673c15cdf20a41a115140e49bfd4c +timeCreated: 1611403996 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerIssueInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerIssueInfo.cs new file mode 100644 index 00000000..bca43511 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerIssueInfo.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatPlayerIssueInfo + { + public static void OnReply(GroupChatPlayerIssueInfoC2S oArg, GroupChatPlayerIssueInfoS2C oRes) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReceiveGroupChatPlayerInfo(oRes); + } + + public static void OnTimeout(GroupChatPlayerIssueInfoC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerIssueInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerIssueInfo.cs.meta new file mode 100644 index 00000000..b58b55af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatPlayerIssueInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00a0f0bfaf740d747b6c90bddbdb39cc +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatQuit.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatQuit.cs new file mode 100644 index 00000000..32bd293f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatQuit.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GroupChatQuit + { + public static void OnReply(GroupChatQuitC2S oArg, GroupChatQuitS2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag3) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ResQuitGroup(oArg.groupchatID); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + + public static void OnTimeout(GroupChatQuitC2S oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatQuit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatQuit.cs.meta new file mode 100644 index 00000000..43d41482 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GroupChatQuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 957718a4a759f604cbcbf411262699e8 +timeCreated: 1611404182 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildApprovalNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildApprovalNew.cs new file mode 100644 index 00000000..92431211 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildApprovalNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildApprovalNew + { + public static void OnReply(GuildApprovalArg oArg, GuildApprovalRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildApproveDocument specificDocument = XDocuments.GetSpecificDocument(XGuildApproveDocument.uuID); + specificDocument.OnApprove(oArg, oRes); + } + } + } + + public static void OnTimeout(GuildApprovalArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildApprovalNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildApprovalNew.cs.meta new file mode 100644 index 00000000..49044799 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildApprovalNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c978067c3ff7ee479e943db7385ab1a +timeCreated: 1611403503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildArenaSimpleDeployNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildArenaSimpleDeployNew.cs new file mode 100644 index 00000000..06a3eca0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildArenaSimpleDeployNew.cs @@ -0,0 +1,33 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildArenaSimpleDeployNew + { + public static void OnReply(GuildArenaSimpleDeployArg oArg, GuildArenaSimpleDeployRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + } + } + + public static void OnTimeout(GuildArenaSimpleDeployArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildArenaSimpleDeployNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildArenaSimpleDeployNew.cs.meta new file mode 100644 index 00000000..8f090c53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildArenaSimpleDeployNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e40bb56fad7a6aa4e87c6b35d6ebd530 +timeCreated: 1611404735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs new file mode 100644 index 00000000..60281005 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs @@ -0,0 +1,43 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildAuctReqAll + { + public static void OnReply(GuildAuctReqArg oArg, GuildAuctReqRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + AuctionHouseDocument specificDocument = XDocuments.GetSpecificDocument(AuctionHouseDocument.uuID); + specificDocument.OnServerReturn(oArg, oRes); + } + } + } + + public static void OnTimeout(GuildAuctReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs.meta new file mode 100644 index 00000000..c8bb3c3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildAuctReqAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 770a7ebdf34c93b4bb3689352ca7da86 +timeCreated: 1611403951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildBindGroup.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildBindGroup.cs new file mode 100644 index 00000000..5d60ce55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildBindGroup.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildBindGroup + { + public static void OnReply(GuildBindGroupReq oArg, GuildBindGroupRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + specificDocument.OnBindQQGroup(oArg, oRes); + } + } + } + + public static void OnTimeout(GuildBindGroupReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildBindGroup.cs.meta new file mode 100644 index 00000000..d85b824f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0690d7c7c86417046842097c181b2778 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCampInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCampInfo.cs new file mode 100644 index 00000000..22378d46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCampInfo.cs @@ -0,0 +1,57 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildCampInfo + { + public static void OnReply(GuildCampInfoArg oArg, GuildCampInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XGuildSmallMonsterDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int leftEnterCount = 2; + bool flag4 = specificDocument2.currentDayCount.ContainsKey(TeamLevelType.TeamLevelGuildCamp); + if (flag4) + { + leftEnterCount = specificDocument2.currentDayCount[TeamLevelType.TeamLevelGuildCamp]; + } + bool flag5 = specificDocument2 != null; + if (flag5) + { + specificDocument.SetGuildSmallMonsterInfo(leftEnterCount, oRes.curCampID, oRes.nextCampID, oRes.rankInfos); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(GuildCampInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCampInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCampInfo.cs.meta new file mode 100644 index 00000000..3e3cfc10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCampInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7cc331cd1b2372448777d402ea28bb6 +timeCreated: 1611404403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCheckinNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCheckinNew.cs new file mode 100644 index 00000000..bae51ef8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCheckinNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildCheckinNew + { + public static void OnReply(GuildCheckinArg oArg, GuildCheckinRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildSignInDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + specificDocument.OnSignIn(oArg, oRes); + } + } + } + + public static void OnTimeout(GuildCheckinArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCheckinNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCheckinNew.cs.meta new file mode 100644 index 00000000..d080d87a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildCheckinNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 106f56ef07da73645a340e8e3745359c +timeCreated: 1611403218 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildFatigueOPNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildFatigueOPNew.cs new file mode 100644 index 00000000..0aeb6f83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildFatigueOPNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildFatigueOPNew + { + public static void OnReply(GuildFatigueArg oArg, GuildFatigueRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildMemberDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + specificDocument.OnOperateFatigue(oArg, oRes); + } + } + } + + public static void OnTimeout(GuildFatigueArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildFatigueOPNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildFatigueOPNew.cs.meta new file mode 100644 index 00000000..d8de7e22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildFatigueOPNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e74a52a19dc4034d9f9f5bee2a2c95a +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallGetBuffList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallGetBuffList.cs new file mode 100644 index 00000000..0569fa9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallGetBuffList.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildHallGetBuffList + { + public static void OnReply(GuildHallGetBuffList_C2M oArg, GuildHallGetBuffList_M2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.ec == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.ec > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.ec, "fece00"); + } + else + { + XGuildGrowthDocument specificDocument = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + specificDocument.OnBuffListReply(oRes); + } + } + } + } + + public static void OnTimeout(GuildHallGetBuffList_C2M oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallGetBuffList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallGetBuffList.cs.meta new file mode 100644 index 00000000..fc9eb1b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallGetBuffList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a044dd537d0d61842a311ff5955ccdd9 +timeCreated: 1611404248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallUpdateBuff.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallUpdateBuff.cs new file mode 100644 index 00000000..553991ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallUpdateBuff.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildHallUpdateBuff + { + public static void OnReply(GuildHallUpdateBuff_C2M oArg, GuildHallUpdateBuff_M2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.ec == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.ec > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.ec, "fece00"); + } + else + { + XGuildGrowthDocument specificDocument = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + specificDocument.OnBuffLevelUpSuccess(oRes.buffdata); + } + } + } + } + + public static void OnTimeout(GuildHallUpdateBuff_C2M oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallUpdateBuff.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallUpdateBuff.cs.meta new file mode 100644 index 00000000..6104f137 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildHallUpdateBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3555e2ac29b4fc4188ed61f3e6568c3 +timeCreated: 1611404497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildJoinBindGroup.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildJoinBindGroup.cs new file mode 100644 index 00000000..4a663ebb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildJoinBindGroup.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildJoinBindGroup + { + public static void OnReply(GuildJoinBindGroupReq oArg, GuildJoinBindGroupRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + specificDocument.OnJoinBindQQGroup(oArg, oRes); + } + } + } + + public static void OnTimeout(GuildJoinBindGroupReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildJoinBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildJoinBindGroup.cs.meta new file mode 100644 index 00000000..cfd5be9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildJoinBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a11a71f966a1f8046beb7c1eb201f38c +timeCreated: 1611404252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildSchoolHallGetRankList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildSchoolHallGetRankList.cs new file mode 100644 index 00000000..b8ebcce4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildSchoolHallGetRankList.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildSchoolHallGetRankList + { + public static void OnReply(GuildSchoolHallGetRankList_C2M oArg, GuildSchoolHallGetRankList_M2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.ec == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.ec > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.ec, "fece00"); + } + else + { + XGuildGrowthDocument specificDocument = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + specificDocument.OnBuildRankGet(oRes.unranklist, oRes.guildweeklyhallpoint, oRes.guildweeklyschoolpoint, oRes.guildweeklyhuntingcount, oRes.guildweeklydonatecount); + } + } + } + } + + public static void OnTimeout(GuildSchoolHallGetRankList_C2M oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildSchoolHallGetRankList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildSchoolHallGetRankList.cs.meta new file mode 100644 index 00000000..5cf07f81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildSchoolHallGetRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff8c91e6ae5f24f47bcd89e61eeca000 +timeCreated: 1611404947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs new file mode 100644 index 00000000..1a196edf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildUnBindGroup + { + public static void OnReply(GuildUnBindGroupReq oArg, GuildUnBindGroupRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + specificDocument.OnUnbindQQGroup(oArg, oRes); + } + } + } + + public static void OnTimeout(GuildUnBindGroupReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs.meta new file mode 100644 index 00000000..f4a14999 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildUnBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b17ced7c0d90adb478e807ee0b69e240 +timeCreated: 1611404356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs new file mode 100644 index 00000000..f8dee791 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs @@ -0,0 +1,53 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildZiCaiDonate + { + public static void OnReply(GuildZiCaiDonate_C2M oArg, GuildZiCaiDonate_M2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.ec == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.ec > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.ec, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GuildGrowthDonateSucess"), "fece00"); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + XGuildGrowthDocument specificDocument = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + specificDocument.QueryBuildRank(); + DlgBase.singleton.Refresh(); + } + } + } + } + } + + public static void OnTimeout(GuildZiCaiDonate_C2M oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs.meta new file mode 100644 index 00000000..433504d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0504fa2c51823f4e839bfe1b5171e6c +timeCreated: 1611404586 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonateHistory.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonateHistory.cs new file mode 100644 index 00000000..d9386adc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonateHistory.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_GuildZiCaiDonateHistory + { + public static void OnReply(GuildZiCaiDonateHistory_C2M oArg, GuildZiCaiDonateHistory_M2C oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.ec == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.ec > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.ec, "fece00"); + } + else + { + XGuildGrowthDocument specificDocument = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + specificDocument.OnGrowthRecordListGet(oRes.datalist); + } + } + } + } + + public static void OnTimeout(GuildZiCaiDonateHistory_C2M oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonateHistory.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonateHistory.cs.meta new file mode 100644 index 00000000..81b95ae3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_GuildZiCaiDonateHistory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: faa46f298bfef0b41889155e0a6a4c3c +timeCreated: 1611404904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_HoldWedding.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_HoldWedding.cs new file mode 100644 index 00000000..2a5c6b80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_HoldWedding.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_HoldWedding + { + public static void OnReply(HoldWeddingReq oArg, HoldWeddingRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument doc = XWeddingDocument.Doc; + doc.OnHoldWedding(oRes); + } + } + } + + public static void OnTimeout(HoldWeddingReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_HoldWedding.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_HoldWedding.cs.meta new file mode 100644 index 00000000..56089606 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_HoldWedding.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fedd859862ecd3d44830ecdcfc38d2ba +timeCreated: 1611404943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_IbGiftHistReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_IbGiftHistReq.cs new file mode 100644 index 00000000..eb4f61ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_IbGiftHistReq.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_IbGiftHistReq + { + public static void OnReply(IBGiftHistAllItemArg oArg, IBGiftHistAllItemRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + bool flag3 = oRes.gift == null; + if (flag3) + { + XSingleton.singleton.AddWarningLog("Process_RpcC2G_IBGiftHistAllItem gift is nil", null, null, null, null, null); + } + else + { + List allitem = oRes.gift.allitem; + bool flag4 = allitem != null; + if (flag4) + { + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument.HandleGiftItems(oArg.type, allitem); + } + } + } + else + { + bool flag5 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag5) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + } + } + } + + public static void OnTimeout(IBGiftHistAllItemArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_IbGiftHistReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_IbGiftHistReq.cs.meta new file mode 100644 index 00000000..a84028f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_IbGiftHistReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e286e3326bb7eb543bb13ffe4eaecc11 +timeCreated: 1611404706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvFightReqAll.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvFightReqAll.cs new file mode 100644 index 00000000..70d0f09b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvFightReqAll.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_InvFightReqAll + { + public static void OnReply(InvFightArg oArg, InvFightRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + specificDocument.OnGetPKInfo(oArg, oRes); + } + } + } + + public static void OnTimeout(InvFightArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvFightReqAll.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvFightReqAll.cs.meta new file mode 100644 index 00000000..5b6b43dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvFightReqAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0889c776d7ddab4d8e4971ed425092c +timeCreated: 1611404698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs new file mode 100644 index 00000000..d1f2d42a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_InvHistoryC2MReq + { + public static void OnReply(InvHistoryArg oArg, InvHistoryRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.ret == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XTeamInviteDocument specificDocument = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + specificDocument.OnInvHistoryReq(oArg, oRes); + } + } + } + + public static void OnTimeout(InvHistoryArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs.meta new file mode 100644 index 00000000..2498cfcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_InvHistoryC2MReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9568f51159a8a124486372a58f3e96a0 +timeCreated: 1611404181 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinFmRoom.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinFmRoom.cs new file mode 100644 index 00000000..d498b338 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinFmRoom.cs @@ -0,0 +1,43 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_JoinFmRoom + { + public static void OnReply(JoinLargeRoomArg oArg, JoinLargeRoomRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + bool flag2 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag2) + { + bool flag3 = specificDocument != null && oRes.data != null; + if (flag3) + { + specificDocument.ProcessJoinBigRoom(oRes.data); + } + } + else + { + specificDocument.ProcessTimeOut(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(oRes.error), "fece00"); + } + } + } + + public static void OnTimeout(JoinLargeRoomArg oArg) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.ProcessTimeOut(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinFmRoom.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinFmRoom.cs.meta new file mode 100644 index 00000000..6ccb5333 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinFmRoom.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9959de2dae28d145b3ba4d9542ae2d4 +timeCreated: 1611404644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinLeagueEleBattle.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinLeagueEleBattle.cs new file mode 100644 index 00000000..7920b8bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinLeagueEleBattle.cs @@ -0,0 +1,31 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_JoinLeagueEleBattle + { + public static void OnReply(JoinLeagueEleBattleArg oArg, JoinLeagueEleBattleRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_SUCCESS; + if (!flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(oRes.result), "fece00"); + } + } + } + + public static void OnTimeout(JoinLeagueEleBattleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinLeagueEleBattle.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinLeagueEleBattle.cs.meta new file mode 100644 index 00000000..9b5f535d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_JoinLeagueEleBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 45949bb52724b9e48b636d1cb7141a3a +timeCreated: 1611403647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_KMatchCommonReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_KMatchCommonReq.cs new file mode 100644 index 00000000..ee9dd478 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_KMatchCommonReq.cs @@ -0,0 +1,51 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_KMatchCommonReq + { + public static void OnReply(KMatchCommonArg oArg, KMatchCommonRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_REPORT_FORBID; + if (flag3) + { + string arg = XSingleton.singleton.TimeFormatSince1970((int)oRes.endtime, XStringDefineProxy.GetString("IDIP_TIPS_TIME"), true); + string text = string.Format(XStringDefineProxy.GetString("PVP_BANNED_TIPS"), oRes.problem_name, arg); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + } + else + { + bool flag4 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + } + + public static void OnTimeout(KMatchCommonArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_KMatchCommonReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_KMatchCommonReq.cs.meta new file mode 100644 index 00000000..59b2e62e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_KMatchCommonReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a1cfd312ca447240ba0d2b3fb666089 +timeCreated: 1611403307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeagueBattleReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeagueBattleReq.cs new file mode 100644 index 00000000..f018a36c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeagueBattleReq.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_LeagueBattleReq + { + public static void OnReply(LeagueBattleReqArg oArg, LeagueBattleReqRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(LeagueBattleReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeagueBattleReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeagueBattleReq.cs.meta new file mode 100644 index 00000000..7c6f79ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeagueBattleReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a6bdc384c39e604a8e3b40000cf6273 +timeCreated: 1611403665 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromDragonGuild.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromDragonGuild.cs new file mode 100644 index 00000000..1c6e3c11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromDragonGuild.cs @@ -0,0 +1,51 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_LeaveFromDragonGuild + { + public static void OnReply(LeaveDragonGuildArg oArg, LeaveDragonGuildRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XPlayer player = XSingleton.singleton.Player; + bool flag3 = player == null; + if (!flag3) + { + bool flag4 = player.Attributes.EntityID == oArg.roleid; + bool flag5 = flag4; + if (flag5) + { + XDragonGuildDocument.Doc.OnLeaveDragonGuild(oRes); + } + else + { + XDragonGuildDocument.Doc.OnKickAss(oArg, oRes); + } + } + } + } + } + + public static void OnTimeout(LeaveDragonGuildArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromDragonGuild.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromDragonGuild.cs.meta new file mode 100644 index 00000000..32d4fccc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromDragonGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36bc3419125fe7f4f9f218610c311da5 +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromGuild.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromGuild.cs new file mode 100644 index 00000000..d93cc178 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromGuild.cs @@ -0,0 +1,53 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_LeaveFromGuild + { + public static void OnReply(LeaveGuildArg oArg, LeaveGuildRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XPlayer player = XSingleton.singleton.Player; + bool flag3 = player == null; + if (!flag3) + { + bool flag4 = player.Attributes.EntityID == oArg.roleID; + bool flag5 = flag4; + if (flag5) + { + XGuildHallDocument specificDocument = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + specificDocument.OnExitGuild(oRes); + } + else + { + XGuildMemberDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + specificDocument2.OnKickAss(oArg, oRes); + } + } + } + } + } + + public static void OnTimeout(LeaveGuildArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromGuild.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromGuild.cs.meta new file mode 100644 index 00000000..a6b4a446 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveFromGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0b34b1fd22ee9a49b8465496c05fbd8 +timeCreated: 1611404250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs new file mode 100644 index 00000000..debc34aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_LeaveLeagueTeam + { + public static void OnReply(LeaveLeagueTeamArg oArg, LeaveLeagueTeamRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(LeaveLeagueTeamArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs.meta new file mode 100644 index 00000000..dd2e4a83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveLeagueTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7c650bd3ee8087469fe33ea042ff725 +timeCreated: 1611404750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeavePartner.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeavePartner.cs new file mode 100644 index 00000000..58e461d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeavePartner.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_LeavePartner + { + public static void OnReply(LeavePartnerArg oArg, LeavePartnerRes oRes) + { + XPartnerDocument.Doc.OnLeavePartnerBack(oRes); + } + + public static void OnTimeout(LeavePartnerArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeavePartner.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeavePartner.cs.meta new file mode 100644 index 00000000..3a28c6a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeavePartner.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf01c90a47a3dd641b529f4594803891 +timeCreated: 1611404580 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs new file mode 100644 index 00000000..c4ad232f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_LeaveSkyTeam + { + public static void OnReply(LeaveSkyTeamArg oArg, LeaveSkyTeamRes oRes) + { + } + + public static void OnTimeout(LeaveSkyTeamArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs.meta new file mode 100644 index 00000000..1e0fadea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_LeaveSkyTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df2778c3de5acae4781fb4d1c86d39e3 +timeCreated: 1611404691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MSGetFlowerRewardList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MSGetFlowerRewardList.cs new file mode 100644 index 00000000..f4ddffb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MSGetFlowerRewardList.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_MSGetFlowerRewardList + { + public static void OnReply(NewGetFlowerRewardListArg oArg, NewGetFlowerRewardListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorCode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument.OnGetAwardList(oArg, oRes); + } + } + } + + public static void OnTimeout(NewGetFlowerRewardListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MSGetFlowerRewardList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MSGetFlowerRewardList.cs.meta new file mode 100644 index 00000000..62073252 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MSGetFlowerRewardList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0871d95d5522090419d710807362c0b0 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MTShowTopList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MTShowTopList.cs new file mode 100644 index 00000000..88c32bac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MTShowTopList.cs @@ -0,0 +1,40 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_MTShowTopList + { + public static void OnReply(TShowTopListArg oArg, TShowTopListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag3) + { + } + } + } + } + + public static void OnTimeout(TShowTopListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MTShowTopList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MTShowTopList.cs.meta new file mode 100644 index 00000000..06497c75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MTShowTopList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f309af90354c6848b59101d72d7b5f8 +timeCreated: 1611403514 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MailOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MailOp.cs new file mode 100644 index 00000000..3f036634 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MailOp.cs @@ -0,0 +1,52 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_MailOp + { + public static void OnReply(MailOpArg oArg, MailOpRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XMailDocument specificDocument = XDocuments.GetSpecificDocument(XMailDocument.uuID); + specificDocument.ResMailOP(oArg, oRes); + } + else + { + bool flag4 = oArg.optype == 3u; + if (flag4) + { + XMailDocument specificDocument2 = XDocuments.GetSpecificDocument(XMailDocument.uuID); + specificDocument2.ReqMailInfo(); + } + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + } + } + } + + public static void OnTimeout(MailOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MailOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MailOp.cs.meta new file mode 100644 index 00000000..b3878d47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MailOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec1381b154b367f4a935da613a04445c +timeCreated: 1611404786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MarriageRelationOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MarriageRelationOp.cs new file mode 100644 index 00000000..0d3c9bd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MarriageRelationOp.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_MarriageRelationOp + { + public static void OnReply(MarriageRelationOpArg oArg, MarriageRelationOpRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument.Doc.OnGetMarriageRelationOp(oArg, oRes); + } + } + } + + public static void OnTimeout(MarriageRelationOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MarriageRelationOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MarriageRelationOp.cs.meta new file mode 100644 index 00000000..591b336f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MarriageRelationOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2d829921d4ec334e88b20deca8c7a82 +timeCreated: 1611404496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs new file mode 100644 index 00000000..55d65d37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_MentorMyBeAppliedMsg + { + public static void OnReply(MentorMyBeAppliedMsgArg oArg, MentorMyBeAppliedMsgRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XMentorshipDocument.Doc.OnGetMyBeenApplyedMsg(oArg, oRes); + } + } + } + + public static void OnTimeout(MentorMyBeAppliedMsgArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs.meta new file mode 100644 index 00000000..ba8a83ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorMyBeAppliedMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56352d83ab2c8c64abf95a8f8bd8cbb3 +timeCreated: 1611403742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorRelationOp.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorRelationOp.cs new file mode 100644 index 00000000..68524c2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorRelationOp.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_MentorRelationOp + { + public static void OnReply(MentorRelationOpArg oArg, MentorRelationOpRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XMentorshipDocument.Doc.OnGetMentorshipOpReply(oArg, oRes); + } + } + } + + public static void OnTimeout(MentorRelationOpArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorRelationOp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorRelationOp.cs.meta new file mode 100644 index 00000000..3989423d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_MentorRelationOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5bcff5e5aae2d344480094c233d33ac2 +timeCreated: 1611403800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyDragonGuildName.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyDragonGuildName.cs new file mode 100644 index 00000000..7b9cc2a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyDragonGuildName.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_ModifyDragonGuildName + { + public static void OnReply(ModifyDragonGuildNameArg oArg, ModifyDragonGuildNameRes oRes) + { + XRenameDocument specificDocument = XDocuments.GetSpecificDocument(XRenameDocument.uuID); + specificDocument.ReceiveDragonGuildRenameVolume(oArg, oRes); + } + + public static void OnTimeout(ModifyDragonGuildNameArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyDragonGuildName.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyDragonGuildName.cs.meta new file mode 100644 index 00000000..37abdb86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyDragonGuildName.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d86ac54064856734a8a5319205516fe0 +timeCreated: 1611404639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyMsGuildName.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyMsGuildName.cs new file mode 100644 index 00000000..671ba1ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyMsGuildName.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_ModifyMsGuildName + { + public static void OnReply(ModifyArg oArg, ModifyRes oRes) + { + XRenameDocument specificDocument = XDocuments.GetSpecificDocument(XRenameDocument.uuID); + specificDocument.ReceiveGuildRenameVolume(oArg, oRes); + } + + public static void OnTimeout(ModifyArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyMsGuildName.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyMsGuildName.cs.meta new file mode 100644 index 00000000..7c38a185 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ModifyMsGuildName.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2cb6d3d044c8d6459047fe7e99b7780 +timeCreated: 1611404258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs new file mode 100644 index 00000000..f0c52c27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs @@ -0,0 +1,42 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_NpcFlReqC2M + { + public static void OnReply(NpcFlArg oArg, NpcFlRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XNPCFavorDocument specificDocument = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + bool flag3 = specificDocument != null; + if (flag3) + { + specificDocument.OnReqSrvNpcInfo(oArg, oRes); + } + } + } + } + + public static void OnTimeout(NpcFlArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs.meta new file mode 100644 index 00000000..3ffe3dd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_NpcFlReqC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc08f22adb64bbb41a0d4531e9f28349 +timeCreated: 1611404548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_OPenGardenFarmland.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_OPenGardenFarmland.cs new file mode 100644 index 00000000..670ca246 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_OPenGardenFarmland.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_OPenGardenFarmland + { + public static void OnReply(OpenGardenFarmlandArg oArg, OpenGardenFarmlandRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + HomePlantDocument.Doc.OnBreakNewFarmlandBack(oArg.farmland_id, oRes); + } + } + } + + public static void OnTimeout(OpenGardenFarmlandArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_OPenGardenFarmland.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_OPenGardenFarmland.cs.meta new file mode 100644 index 00000000..cf7277e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_OPenGardenFarmland.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab60d0062f169b34da3f7102f2458550 +timeCreated: 1611404307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_Open520FestivityRedPacket.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_Open520FestivityRedPacket.cs new file mode 100644 index 00000000..1631f1b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_Open520FestivityRedPacket.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_Open520FestivityRedPacket + { + public static void OnReply(Open520FestivityRedPacketArg oArg, Open520FestivityRedPacketRes oRes) + { + } + + public static void OnTimeout(Open520FestivityRedPacketArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_Open520FestivityRedPacket.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_Open520FestivityRedPacket.cs.meta new file mode 100644 index 00000000..d1b6fefd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_Open520FestivityRedPacket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b4d29a81e547a54abb12aade8397e86 +timeCreated: 1611403891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PayNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PayNotify.cs new file mode 100644 index 00000000..246310e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PayNotify.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_PayNotify + { + public static void OnReply(PayNotifyArg oArg, PayNotifyRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.OnPayNotify(oArg, oRes); + } + } + } + + public static void OnTimeout(PayNotifyArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PayNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PayNotify.cs.meta new file mode 100644 index 00000000..b959dbf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PayNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18ba47661025f2e4aaa343e4e7c90f74 +timeCreated: 1611403298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PkReqC2M.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PkReqC2M.cs new file mode 100644 index 00000000..4c56707e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PkReqC2M.cs @@ -0,0 +1,72 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_PkReqC2M + { + public static void OnReply(PkReqArg oArg, PkReqRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + switch (oArg.type) + { + case PkReqType.PKREQ_ADDPK: + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument.SetMatchTime(oRes.time, true); + break; + } + case PkReqType.PKREQ_REMOVEPK: + { + XQualifyingDocument specificDocument2 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument2.SetMatchTime(0u, false); + break; + } + case PkReqType.PKREQ_ALLINFO: + { + XQualifyingDocument specificDocument3 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument3.SetQualifyingInfo(oRes.allinfo); + specificDocument3.SetChallengeRecordInfo(oRes.allinfo); + break; + } + case PkReqType.PKREQ_FETCHPOINTREWARD: + { + XQualifyingDocument specificDocument4 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + specificDocument4.RefreshPointReward(oArg.index); + break; + } + } + } + } + } + } + + public static void OnTimeout(PkReqArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PkReqC2M.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PkReqC2M.cs.meta new file mode 100644 index 00000000..7ce6abc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PkReqC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fd4a79eedb3416d41bbb5d8d61396169 +timeCreated: 1611404937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantCultivation.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantCultivation.cs new file mode 100644 index 00000000..fd2aff5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantCultivation.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_PlantCultivation + { + public static void OnReply(PlantCultivationArg oArg, PlantCultivationRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + HomePlantDocument.Doc.OnPlantCultivationBack(oArg, oRes); + } + } + } + + public static void OnTimeout(PlantCultivationArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantCultivation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantCultivation.cs.meta new file mode 100644 index 00000000..e70ba469 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantCultivation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e3d840ff507befe459c60fde96a4a509 +timeCreated: 1611404734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantHarvest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantHarvest.cs new file mode 100644 index 00000000..b91121c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantHarvest.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_PlantHarvest + { + public static void OnReply(PlantHarvestArg oArg, PlantHarvestRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + HomePlantDocument.Doc.OnPlantHarvestBack(oArg.farmland_id, oRes); + } + } + } + + public static void OnTimeout(PlantHarvestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantHarvest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantHarvest.cs.meta new file mode 100644 index 00000000..33dd17aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_PlantHarvest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2526f9f7cfc47314d99e1ac53e8ae62d +timeCreated: 1611403463 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryBigMeleeRank.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryBigMeleeRank.cs new file mode 100644 index 00000000..9b6baedf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryBigMeleeRank.cs @@ -0,0 +1,51 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_QueryBigMeleeRank + { + public static void OnReply(QueryMayhemRankArg oArg, QueryMayhemRankRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.err == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oArg.count == XBigMeleeBattleDocument.BATTLE_SHOW_RANK; + if (flag3) + { + XBigMeleeBattleDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeBattleDocument.uuID); + specificDocument.SetRankData(oArg, oRes); + } + else + { + bool flag4 = oArg.count == XBigMeleeEntranceDocument.MAX_RANK; + if (flag4) + { + XBigMeleeEntranceDocument specificDocument2 = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + specificDocument2.SetRankData(oArg, oRes); + } + } + } + } + } + + public static void OnTimeout(QueryMayhemRankArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryBigMeleeRank.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryBigMeleeRank.cs.meta new file mode 100644 index 00000000..c9e694c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryBigMeleeRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b87f29e62693b5240b82d447653dee69 +timeCreated: 1611404404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryGuildCheckinNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryGuildCheckinNew.cs new file mode 100644 index 00000000..634df746 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryGuildCheckinNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_QueryGuildCheckinNew + { + public static void OnReply(QueryGuildCheckinArg oArg, QueryGuildCheckinRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildSignInDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + specificDocument.OnGetAllInfo(oRes); + } + } + } + + public static void OnTimeout(QueryGuildCheckinArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryGuildCheckinNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryGuildCheckinNew.cs.meta new file mode 100644 index 00000000..6e429367 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryGuildCheckinNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 032698c80a0922042855cd54ba0c57cb +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs new file mode 100644 index 00000000..c8f37c18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs @@ -0,0 +1,55 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_QueryResWar + { + public static void OnReply(QueryResWarArg oArg, QueryResWarRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + bool flag4 = oArg.paramSpecified && oArg.param == QueryResWarEnum.RESWAR_FLOWAWARD; + if (flag4) + { + DlgBase.singleton.SetRewardInfo(oRes); + } + else + { + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument.SetAllInfo(oArg, oRes); + } + } + } + } + } + + public static void OnTimeout(QueryResWarArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs.meta new file mode 100644 index 00000000..3813bf97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13b74d039c309b349b1a6162d8b2303f +timeCreated: 1611403250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWarRoleRank.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWarRoleRank.cs new file mode 100644 index 00000000..4f5fe669 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWarRoleRank.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_QueryResWarRoleRank + { + public static void OnReply(ResWarRoleRankArg oArg, ResWarRoleRankRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildMineMainDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineMainDocument.uuID); + specificDocument.OnGetRankInfo(oRes); + } + } + + public static void OnTimeout(ResWarRoleRankArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWarRoleRank.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWarRoleRank.cs.meta new file mode 100644 index 00000000..ba2722b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_QueryResWarRoleRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1796c377e72536f48a89dfc7e93e5589 +timeCreated: 1611403293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RandomFriendWaitListNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RandomFriendWaitListNew.cs new file mode 100644 index 00000000..26cefe15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RandomFriendWaitListNew.cs @@ -0,0 +1,41 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_RandomFriendWaitListNew + { + public static void OnReply(RandomFriendWaitListArg oArg, RandomFriendWaitListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + for (int i = 0; i < oRes.roleid.Count; i++) + { + DlgBase.singleton.AddMessage(oRes.name[i] + ":" + oRes.roleid[i].ToString()); + } + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.RandomFriendRes(oRes); + } + } + } + + public static void OnTimeout(RandomFriendWaitListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RandomFriendWaitListNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RandomFriendWaitListNew.cs.meta new file mode 100644 index 00000000..c54f1970 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RandomFriendWaitListNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99df7dd68b6d4624280d31bc9568ff79 +timeCreated: 1611404198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RecAlliance.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RecAlliance.cs new file mode 100644 index 00000000..1ed78bc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RecAlliance.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_RecAlliance + { + public static void OnReply(RecAllianceArg oArg, RecAllianceRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.ReceiveRecAlliance(oArg, oRes); + } + } + + public static void OnTimeout(RecAllianceArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RecAlliance.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RecAlliance.cs.meta new file mode 100644 index 00000000..0fa3b51e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RecAlliance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fd2cd68839ea4634aa1da5dc16093574 +timeCreated: 1611404936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveBlackListNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveBlackListNew.cs new file mode 100644 index 00000000..eb60ae4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveBlackListNew.cs @@ -0,0 +1,36 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_RemoveBlackListNew + { + public static void OnReply(RemoveBlackListArg oArg, RemoveBlackListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.RemoveBlockFriendRes(oRes.errorcode, oArg.otherroleid); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetBlock(); + DlgBase.singleton.RefreshBtns(); + } + } + } + + public static void OnTimeout(RemoveBlackListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveBlackListNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveBlackListNew.cs.meta new file mode 100644 index 00000000..2cde941c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveBlackListNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: effa8cc487480b64ca02b03b5ad8b35a +timeCreated: 1611404826 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveFriendNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveFriendNew.cs new file mode 100644 index 00000000..7a7801d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveFriendNew.cs @@ -0,0 +1,38 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_RemoveFriendNew + { + public static void OnReply(RemoveFriendArg oArg, RemoveFriendRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.RemoveFriendRes(oRes.errorcode, oArg.friendroleid); + bool flag2 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + bool flag3 = DlgBase.singleton.IsVisible() && DlgBase.singleton._MyTeamHandler != null; + if (flag3) + { + DlgBase.singleton._MyTeamHandler.RefreshPage(); + } + } + } + } + + public static void OnTimeout(RemoveFriendArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveFriendNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveFriendNew.cs.meta new file mode 100644 index 00000000..1c71340a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_RemoveFriendNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fa8999c7a81a9d42ba856c00b8056b2 +timeCreated: 1611403402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildArenaHistory.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildArenaHistory.cs new file mode 100644 index 00000000..4071ac2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildArenaHistory.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildArenaHistory + { + public static void OnReply(ReqGuildArenaHistoryRes oArg, ReqGuildArenaHistoryRse oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.ReceiveGuildArenaHistory(oRes); + } + } + + public static void OnTimeout(ReqGuildArenaHistoryRes oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildArenaHistory.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildArenaHistory.cs.meta new file mode 100644 index 00000000..b370f944 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildArenaHistory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7f009fdb0f79254eb732cd4940a7af4 +timeCreated: 1611404890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs new file mode 100644 index 00000000..42ab0ef8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildBossInfo + { + public static void OnReply(AskGuildBossInfoArg oArg, AskGuildBossInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildDragonDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument.OnGetGuildBossInfo(oRes); + } + } + } + + public static void OnTimeout(AskGuildBossInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs.meta new file mode 100644 index 00000000..3e8375bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildBossInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3a1c55b7faa5694ebaebebf6aa6ab42 +timeCreated: 1611404599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildInheritInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildInheritInfo.cs new file mode 100644 index 00000000..7bba45f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildInheritInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildInheritInfo + { + public static void OnReply(ReqGuildInheritInfoArg oArg, ReqGuildInheritInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + specificDocument.ReceiveInheritList(oArg, oRes); + } + } + + public static void OnTimeout(ReqGuildInheritInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildInheritInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildInheritInfo.cs.meta new file mode 100644 index 00000000..01af0b98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildInheritInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d5b0681b288ae047a6ddc6646a038b0 +timeCreated: 1611404236 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderInfo.cs new file mode 100644 index 00000000..62d398ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildLadderInfo + { + public static void OnReply(ReqGuildLadderInfoAgr oArg, ReqGuildLadderInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildQualifierDocument specificDocument = XDocuments.GetSpecificDocument(XGuildQualifierDocument.uuID); + specificDocument.ReceiveSelectQualifierList(oArg, oRes); + } + } + + public static void OnTimeout(ReqGuildLadderInfoAgr oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderInfo.cs.meta new file mode 100644 index 00000000..a7e3ebe4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b40680d41fa99ca4fae16699675be2ef +timeCreated: 1611404391 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderRnakInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderRnakInfo.cs new file mode 100644 index 00000000..15dc5389 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderRnakInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildLadderRnakInfo + { + public static void OnReply(ReqGuildLadderRnakInfoArg oArg, ReqGuildLadderRnakInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XGuildQualifierDocument specificDocument = XDocuments.GetSpecificDocument(XGuildQualifierDocument.uuID); + specificDocument.ReceiveGuildLandderRankList(oArg, oRes); + } + } + + public static void OnTimeout(ReqGuildLadderRnakInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderRnakInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderRnakInfo.cs.meta new file mode 100644 index 00000000..324f59fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildLadderRnakInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f5d3315ba6555047a6ef6e11250f2e1 +timeCreated: 1611403829 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildList.cs new file mode 100644 index 00000000..dede1111 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildList.cs @@ -0,0 +1,51 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildList + { + public static void OnReply(FetchGuildListArg oArg, FetchGuildListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oArg.reason == 2; + if (flag3) + { + XRankDocument specificDocument = XDocuments.GetSpecificDocument(XRankDocument.uuID); + specificDocument.OnGetGuildList(oArg, oRes); + } + else + { + bool flag4 = oArg.reason == 3; + if (!flag4) + { + XGuildListDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildListDocument.uuID); + specificDocument2.OnGetGuildList(oArg, oRes); + } + } + } + } + } + + public static void OnTimeout(FetchGuildListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildList.cs.meta new file mode 100644 index 00000000..2e586ae8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09ad0ed5ac307844fb276ea4b01da8f1 +timeCreated: 1611403157 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs new file mode 100644 index 00000000..1c986045 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildRankInfo + { + public static void OnReply(ReqGuildRankInfoArg oArg, ReqGuildRankInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildRankDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRankDocument.uuID); + specificDocument.ReceiveGuildRankInfo(oRes); + } + } + + public static void OnTimeout(ReqGuildRankInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs.meta new file mode 100644 index 00000000..088c1167 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a21f7757caf76243aa318b3ba60f361 +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrAllianceInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrAllianceInfo.cs new file mode 100644 index 00000000..e842af08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrAllianceInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildTerrAllianceInfo + { + public static void OnReply(ReqGuildTerrAllianceInfoArg oArg, ReqGuildTerrAllianceInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.ReceiveGuildTerrAllianceInfo(oRes); + } + } + + public static void OnTimeout(ReqGuildTerrAllianceInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrAllianceInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrAllianceInfo.cs.meta new file mode 100644 index 00000000..f0dfc8ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrAllianceInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f608e4ee19f28704c8b73e96e506454a +timeCreated: 1611404879 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrChallInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrChallInfo.cs new file mode 100644 index 00000000..3357d40c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrChallInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildTerrChallInfo + { + public static void OnReply(ReqGuildTerrChallInfoArg oArg, ReqGuildTerrChallInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.ReceiveGuildTerritoryChallInfo(oArg, oRes); + } + } + + public static void OnTimeout(ReqGuildTerrChallInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrChallInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrChallInfo.cs.meta new file mode 100644 index 00000000..f58fad94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrChallInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d969cf8e863ab4e4fb57bf1b945a0369 +timeCreated: 1611404644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs new file mode 100644 index 00000000..003215d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildTerrCityInfo + { + public static void OnReply(ReqGuildTerrCityInfoArg oArg, ReqGuildTerrCityInfo oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.ReceiveGuildTerritoryCityInfo(oRes); + } + } + + public static void OnTimeout(ReqGuildTerrCityInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs.meta new file mode 100644 index 00000000..69c1b533 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrCityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba60400b18198784ba72b26ba87449b5 +timeCreated: 1611404436 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrIntellInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrIntellInfo.cs new file mode 100644 index 00000000..d6f1e8cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrIntellInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqGuildTerrIntellInfo + { + public static void OnReply(ReqGuildTerrIntellInfoArg oArg, ReqGuildTerrIntellInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.ReceiveTerritoryInterllInfo(oRes); + } + } + + public static void OnTimeout(ReqGuildTerrIntellInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrIntellInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrIntellInfo.cs.meta new file mode 100644 index 00000000..7105ccb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqGuildTerrIntellInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a30b80c1e3c811489f532a0c1057f07 +timeCreated: 1611403162 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqPlatFriendRankList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqPlatFriendRankList.cs new file mode 100644 index 00000000..9b94f97a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqPlatFriendRankList.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReqPlatFriendRankList + { + public static void OnReply(ReqPlatFriendRankListArg oArg, ReqPlatFriendRankListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.OnReqPlatFriendsRank(oArg, oRes); + } + } + } + + public static void OnTimeout(ReqPlatFriendRankListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqPlatFriendRankList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqPlatFriendRankList.cs.meta new file mode 100644 index 00000000..f7c737ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReqPlatFriendRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c27f16a42fe47504babc19d15f222a5a +timeCreated: 1611404494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ResWarExplore.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ResWarExplore.cs new file mode 100644 index 00000000..a91c8614 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ResWarExplore.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ResWarExplore + { + public static void OnReply(ResWarExploreArg oArg, ResWarExploreRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(ResWarExploreArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ResWarExplore.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ResWarExplore.cs.meta new file mode 100644 index 00000000..bc2bd1c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ResWarExplore.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98e0396e863b0bd49a5dbe0a903bc3ca +timeCreated: 1611404192 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReturnToSelectRole.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReturnToSelectRole.cs new file mode 100644 index 00000000..c93c3ae2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReturnToSelectRole.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ReturnToSelectRole + { + public static void OnReply(ReturnToSelectRoleArg oArg, ReturnToSelectRoleRes oRes) + { + bool flag = oRes == null || !XSingleton.singleton.ProcessAccountData(oRes.accountData); + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XSingleton.singleton.PandoraLogout(); + XSingleton.singleton.SwitchTo(EXStage.SelectChar, 3u); + } + } + + public static void OnTimeout(ReturnToSelectRoleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReturnToSelectRole.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReturnToSelectRole.cs.meta new file mode 100644 index 00000000..6df28bc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ReturnToSelectRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6edfed331674d5f4ea145c6d86169cdc +timeCreated: 1611403907 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SelectRoleNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SelectRoleNew.cs new file mode 100644 index 00000000..2a8603cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SelectRoleNew.cs @@ -0,0 +1,71 @@ +using System; +using System.Reflection; +using KKSG; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_SelectRoleNew + { + public static void OnReply(SelectRoleNewArg oArg, SelectRoleNewRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (!flag3) + { + bool flag4 = oRes.result == ErrorCode.ERR_LOGIN_FORBID; + if (flag4) + { + string format = oRes.reason + "\n" + XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString(oRes.result.ToString())); + XSingleton.singleton.ShowModalDialog(string.Format(format, XSingleton.singleton.TimeAccFormatString(oRes.banTime, 2, 0), XSingleton.singleton.TimeFormatSince1970(oRes.endTime, XStringDefineProxy.GetString("IDIP_TIPS_TIME"), true)), XStringDefineProxy.GetString("COMMON_OK"), new ButtonClickEventHandler(XSingleton.singleton.OnLoginForbidClick), 300); + } + else + { + bool flag5 = oRes.result == ErrorCode.ERR_PLAT_BANACC; + if (flag5) + { + string format2 = oRes.reason + "\n" + XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString(oRes.result.ToString())); + XSingleton.singleton.ShowModalDialog(string.Format(format2, XSingleton.singleton.TimeFormatSince1970(oRes.endTime, XStringDefineProxy.GetString("IDIP_TIPS_TIME"), true)), XStringDefineProxy.GetString("COMMON_OK"), new ButtonClickEventHandler(XSingleton.singleton.OnLoginForbidClick), 300); + } + else + { + bool flag6 = oRes.result == ErrorCode.ERR_HG_FORBID; + if (flag6) + { + string reason = oRes.reason; + XSingleton.singleton.ShowModalDialog(reason, XStringDefineProxy.GetString("COMMON_OK"), new ButtonClickEventHandler(XSingleton.singleton.OnLoginForbidClick), 300); + } + else + { + string @string = XStringDefineProxy.GetString(oRes.result); + XSingleton.singleton.OnEnterWorldFailed(@string); + } + } + } + } + } + } + } + + public static void OnTimeout(SelectRoleNewArg oArg) + { + XSingleton.singleton.AddLog("rpc Select Role Timeout.", null, null, null, null, null, XDebugColor.XDebug_None); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SelectRoleNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SelectRoleNew.cs.meta new file mode 100644 index 00000000..a654d956 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SelectRoleNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c97777b4a2e2c3f49991ccd099ab5ed2 +timeCreated: 1611404539 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGift2PlatFriend.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGift2PlatFriend.cs new file mode 100644 index 00000000..9c4641a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGift2PlatFriend.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_SendGift2PlatFriend + { + public static void OnReply(SendGift2PlatFriendArg oArg, SendGift2PlatFriendRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.OnSendGift2PlatFriend(oArg, oRes); + } + } + } + + public static void OnTimeout(SendGift2PlatFriendArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGift2PlatFriend.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGift2PlatFriend.cs.meta new file mode 100644 index 00000000..209a269c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGift2PlatFriend.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8702cf4a7bd1ec349ad7ffe593d976e6 +timeCreated: 1611404057 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGuildBonusInSendList.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGuildBonusInSendList.cs new file mode 100644 index 00000000..d3e35b23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGuildBonusInSendList.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_SendGuildBonusInSendList + { + public static void OnReply(SendGuildBonusInSendListArg oArg, SendGuildBonusInSendListRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.ReceiveGuildBonusInSend(oArg, oRes); + } + } + + public static void OnTimeout(SendGuildBonusInSendListArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGuildBonusInSendList.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGuildBonusInSendList.cs.meta new file mode 100644 index 00000000..81900136 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SendGuildBonusInSendList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6df8f9b5a4c0a64c9d2f08a8294e631 +timeCreated: 1611404633 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SetSubscribe.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SetSubscribe.cs new file mode 100644 index 00000000..a49801f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SetSubscribe.cs @@ -0,0 +1,46 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_SetSubscribe + { + public static void OnReply(SetSubscirbeArg oArg, SetSubscribeRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XPushSubscribeDocument specificDocument = XDocuments.GetSpecificDocument(XPushSubscribeDocument.uuID); + specificDocument.OnSetSubscribe(oArg); + } + } + } + } + + public static void OnTimeout(SetSubscirbeArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SetSubscribe.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SetSubscribe.cs.meta new file mode 100644 index 00000000..52ef3b70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SetSubscribe.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23905876f9c974b40af26caead6d6280 +timeCreated: 1611403455 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ShowFlowerPageNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ShowFlowerPageNew.cs new file mode 100644 index 00000000..b17f9cd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ShowFlowerPageNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_ShowFlowerPageNew + { + public static void OnReply(ShowFlowerPageArg oArg, ShowFlowerPageRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument.OnGetMyFlowers(oRes); + } + } + } + + public static void OnTimeout(ShowFlowerPageArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ShowFlowerPageNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ShowFlowerPageNew.cs.meta new file mode 100644 index 00000000..c3d55f51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_ShowFlowerPageNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae09902c0b42f0a468a212f24d91b69f +timeCreated: 1611404337 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCityEnter.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCityEnter.cs new file mode 100644 index 00000000..513fdde4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCityEnter.cs @@ -0,0 +1,31 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_SkyCityEnter + { + public static void OnReply(SkyCityEnterArg oArg, SkyCityEnterRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + + public static void OnTimeout(SkyCityEnterArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCityEnter.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCityEnter.cs.meta new file mode 100644 index 00000000..9502ae1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCityEnter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e6beaa5d1faaef47b22e1d9e5fb9704 +timeCreated: 1611404004 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs new file mode 100644 index 00000000..442bc1df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_SkyCraftMatchReq + { + public static void OnReply(SkyCraftMatchReq oArg, SkyCraftMatchRes oRes) + { + } + + public static void OnTimeout(SkyCraftMatchReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs.meta new file mode 100644 index 00000000..22714ad2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_SkyCraftMatchReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79eb4c3590afce24799f8fab14f1923b +timeCreated: 1611403987 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartPlant.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartPlant.cs new file mode 100644 index 00000000..12868e7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartPlant.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_StartPlant + { + public static void OnReply(StartPlantArg oArg, StartPlantRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + HomePlantDocument.Doc.OnStartPlantBack(oArg, oRes); + } + } + } + + public static void OnTimeout(StartPlantArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartPlant.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartPlant.cs.meta new file mode 100644 index 00000000..883cefa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartPlant.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3160813e5cb64d9428f2804a8510db79 +timeCreated: 1611403543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartResWarPVE.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartResWarPVE.cs new file mode 100644 index 00000000..a2b57e60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartResWarPVE.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_StartResWarPVE + { + public static void OnReply(ResWarPVEArg oArg, ResWarPVERes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(ResWarPVEArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartResWarPVE.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartResWarPVE.cs.meta new file mode 100644 index 00000000..0f7880f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartResWarPVE.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f009ccd09e9d3964aab697426e1df365 +timeCreated: 1611404827 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartWeddingCar.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartWeddingCar.cs new file mode 100644 index 00000000..41db27cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartWeddingCar.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_StartWeddingCar + { + public static void OnReply(StartWeddingCarArg oArg, StartWeddingCarRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + } + } + + public static void OnTimeout(StartWeddingCarArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartWeddingCar.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartWeddingCar.cs.meta new file mode 100644 index 00000000..275baceb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StartWeddingCar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1515f8049d02d994d83f3478b05ef590 +timeCreated: 1611403262 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StudyGuildSkillNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StudyGuildSkillNew.cs new file mode 100644 index 00000000..58824a70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StudyGuildSkillNew.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_StudyGuildSkillNew + { + public static void OnReply(StudyGuildSkillArg oArg, StudyGuildSkillRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildSkillDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSkillDocument.uuID); + specificDocument.OnStudyGuildSkill(oRes); + } + } + } + + public static void OnTimeout(StudyGuildSkillArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StudyGuildSkillNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StudyGuildSkillNew.cs.meta new file mode 100644 index 00000000..3d6cd665 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_StudyGuildSkillNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0dbfbc006689a04b864270d3887544f +timeCreated: 1611404835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TakeMarriageChest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TakeMarriageChest.cs new file mode 100644 index 00000000..796c3f4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TakeMarriageChest.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_TakeMarriageChest + { + public static void OnReply(TakeMarriageChestArg oArg, TakeMarriageChestRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument.Doc.OnTakePartnerChestBack((int)oArg.index, oRes); + } + } + } + + public static void OnTimeout(TakeMarriageChestArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TakeMarriageChest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TakeMarriageChest.cs.meta new file mode 100644 index 00000000..48e8fa36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TakeMarriageChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a00a063d4c9c6f5459c77d24f7894dea +timeCreated: 1611404247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TeamRequestC2M.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TeamRequestC2M.cs new file mode 100644 index 00000000..99668ecc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TeamRequestC2M.cs @@ -0,0 +1,50 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_TeamRequestC2M + { + public static void OnReply(TeamOPArg oArg, TeamOPRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + bool flag2 = oArg.request == TeamOperate.TEAM_QUERYCOUNT; + if (flag2) + { + XActivityDocument.Doc.OnGetDayCount(); + } + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag3) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.OnGetTeamOp(oArg, oRes); + bool flag4 = oArg.request == TeamOperate.TEAM_QUERYCOUNT; + if (flag4) + { + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument2.SetTeamCount(oRes); + XActivityDocument.Doc.OnGetDayCount(); + } + } + } + } + + public static void OnTimeout(TeamOPArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TeamRequestC2M.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TeamRequestC2M.cs.meta new file mode 100644 index 00000000..101f27cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TeamRequestC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c424294868b900f4dbb3b10c2ff3cd62 +timeCreated: 1611404500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryAlliance.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryAlliance.cs new file mode 100644 index 00000000..e88b4235 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryAlliance.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_TryAlliance + { + public static void OnReply(TryAllianceArg oArg, TryAlliance oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.ReceiveTryAlliance(oArg, oRes); + } + } + + public static void OnTimeout(TryAllianceArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryAlliance.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryAlliance.cs.meta new file mode 100644 index 00000000..decb8c31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryAlliance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1fd2cf5f205da54987fdded69b1b0a4 +timeCreated: 1611404492 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryDance.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryDance.cs new file mode 100644 index 00000000..96ab38d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryDance.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2M_TryDance + { + public static void OnReply(TryDanceArg oArg, TryDanceRes oRes) + { + } + + public static void OnTimeout(TryDanceArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryDance.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryDance.cs.meta new file mode 100644 index 00000000..db632b1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryDance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51bbf2044e82bad4fa74c0292f45445e +timeCreated: 1611403707 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryFish.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryFish.cs new file mode 100644 index 00000000..357bb1ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryFish.cs @@ -0,0 +1,49 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_TryFish + { + public static void OnReply(TryFishArg oArg, TryFishRes oRes) + { + XHomeFishingDocument specificDocument = XDocuments.GetSpecificDocument(XHomeFishingDocument.uuID); + bool flag = oRes == null; + if (flag) + { + specificDocument.ErrorLeaveFishing(); + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + specificDocument.ErrorLeaveFishing(); + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + specificDocument.ErrorLeaveFishing(); + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + specificDocument.OnFishingResultGet(oRes.item, oRes.fish_level, oRes.experiences); + } + } + } + } + + public static void OnTimeout(TryFishArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryFish.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryFish.cs.meta new file mode 100644 index 00000000..b76c186e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_TryFish.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 152417d55d8aafd4386dd7dd26c61168 +timeCreated: 1611403262 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UpdateMentorApplyStudentInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UpdateMentorApplyStudentInfo.cs new file mode 100644 index 00000000..330459e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UpdateMentorApplyStudentInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_UpdateMentorApplyStudentInfo + { + public static void OnReply(UpdateMentorApplyStudentInfoArg oArg, UpdateMentorApplyStudentInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XMentorshipDocument.Doc.OnGetMentorshipSetting(oArg, oRes); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + } + } + } + + public static void OnTimeout(UpdateMentorApplyStudentInfoArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UpdateMentorApplyStudentInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UpdateMentorApplyStudentInfo.cs.meta new file mode 100644 index 00000000..24892e04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UpdateMentorApplyStudentInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14fcb36697114ec4499af2f4354368ce +timeCreated: 1611403260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UseGuildBuff.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UseGuildBuff.cs new file mode 100644 index 00000000..aa3c6d1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UseGuildBuff.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_UseGuildBuff + { + public static void OnReply(UseGuildBuffArg oArg, UseGuildBuffRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildResContentionBuffDocument.Doc.OnGetUseGuildBuffResult(oArg, oRes); + } + } + } + + public static void OnTimeout(UseGuildBuffArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UseGuildBuff.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UseGuildBuff.cs.meta new file mode 100644 index 00000000..23190073 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_UseGuildBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a22a819ea65a6da4b8eb2e2de9d47e82 +timeCreated: 1611404256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WeddingInviteOperator.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WeddingInviteOperator.cs new file mode 100644 index 00000000..168b3d82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WeddingInviteOperator.cs @@ -0,0 +1,37 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_WeddingInviteOperator + { + public static void OnReply(WeddingInviteOperatorArg oArg, WeddingInviteOperatorRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWeddingDocument.Doc.OnWeddingInviteOperate(oArg, oRes); + } + } + } + + public static void OnTimeout(WeddingInviteOperatorArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WeddingInviteOperator.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WeddingInviteOperator.cs.meta new file mode 100644 index 00000000..db3e26ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WeddingInviteOperator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae1844f2727783649b0d4fb46809613b +timeCreated: 1611404337 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossEnd.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossEnd.cs new file mode 100644 index 00000000..20155b7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossEnd.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_WorldBossEnd + { + public static void OnReply(WorldBossEndArg oArg, WorldBossEndRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.OnWorldBossEnd(oArg, oRes); + } + } + + public static void OnTimeout(WorldBossEndArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossEnd.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossEnd.cs.meta new file mode 100644 index 00000000..b6b4b257 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07be392e3b83415459f89118fa9b36b0 +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossGuildAddAttr.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossGuildAddAttr.cs new file mode 100644 index 00000000..e51db52c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossGuildAddAttr.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_WorldBossGuildAddAttr + { + public static void OnReply(WorldBossGuildAddAttrArg oArg, WorldBossGuildAddAttrRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument.OnGetEncourageTwo(oArg, oRes); + } + } + } + + public static void OnTimeout(WorldBossGuildAddAttrArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossGuildAddAttr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossGuildAddAttr.cs.meta new file mode 100644 index 00000000..487093a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_WorldBossGuildAddAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b17d088c18b14284b9fd509bae14c379 +timeCreated: 1611404356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_applyguildarena.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_applyguildarena.cs new file mode 100644 index 00000000..2c79e976 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_applyguildarena.cs @@ -0,0 +1,38 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_applyguildarena + { + public static void OnReply(applyguildarenaarg oArg, applyguildarenares oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.ReceiveApplyGuildArena(oRes); + } + } + } + + public static void OnTimeout(applyguildarenaarg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_applyguildarena.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_applyguildarena.cs.meta new file mode 100644 index 00000000..5318d59b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_applyguildarena.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7aa6d2470e5c6c74f9781b70ab80f75b +timeCreated: 1611403990 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs new file mode 100644 index 00000000..aaa1ab20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs @@ -0,0 +1,57 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_chat + { + public static void OnReply(ChatArg oArg, ChatRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (!flag3) + { + bool flag4 = oRes.errorcode == ErrorCode.ERR_CHAT_TIMELIMIT; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ERR_CHAT_TIMELIMIT"), XSingleton.singleton.TimeDuarationFormatString((int)oRes.cooldown, 5)), "fece00"); + } + else + { + bool flag5 = oRes.errorcode == ErrorCode.ERR_BLACK_INOTHER; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ERR_BLACK_INOTHER"), new object[0]), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + } + } + + public static void OnTimeout(ChatArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs.meta new file mode 100644 index 00000000..da8276e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_chat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a6b8bcc0e19174408cd9b421328a921 +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getapplyguildlist.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getapplyguildlist.cs new file mode 100644 index 00000000..45bb4790 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getapplyguildlist.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_getapplyguildlist + { + public static void OnReply(getapplyguildlistarg oArg, getapplyguildlistres oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.ReceiveApplyGuildList(oRes); + } + } + + public static void OnTimeout(getapplyguildlistarg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getapplyguildlist.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getapplyguildlist.cs.meta new file mode 100644 index 00000000..3cc7b6d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getapplyguildlist.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f0723831d1020743b3100b29592f4fb +timeCreated: 1611403513 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getguildbosstimeleft.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getguildbosstimeleft.cs new file mode 100644 index 00000000..bd474381 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getguildbosstimeleft.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_getguildbosstimeleft + { + public static void OnReply(getguildbosstimeleftArg oArg, getguildbosstimeleftRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildDragonDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument.OnGetBattleInfo(oRes); + } + } + + public static void OnTimeout(getguildbosstimeleftArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getguildbosstimeleft.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getguildbosstimeleft.cs.meta new file mode 100644 index 00000000..5c8a855f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getguildbosstimeleft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b7ac596c726d064184f6d69cbef2109 +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getintegralbattleInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getintegralbattleInfo.cs new file mode 100644 index 00000000..847c806d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getintegralbattleInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_getintegralbattleInfo + { + public static void OnReply(getintegralbattleInfoarg oArg, getintegralbattleInfores oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.ReceiveIntegralBattleInfo(oRes); + } + } + + public static void OnTimeout(getintegralbattleInfoarg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getintegralbattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getintegralbattleInfo.cs.meta new file mode 100644 index 00000000..e024badc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_getintegralbattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a5ab791690057174e8d85edf532374b4 +timeCreated: 1611404286 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_gmfjoinreq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_gmfjoinreq.cs new file mode 100644 index 00000000..a08d12ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_gmfjoinreq.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2M_gmfjoinreq + { + public static void OnReply(gmfjoinarg oArg, gmfjoinres oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowErrorCode(ErrorCode.ERR_FAILED); + } + else + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.ReceiveGuildArenaJoinBattle(oRes); + } + } + + public static void OnTimeout(gmfjoinarg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_gmfjoinreq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_gmfjoinreq.cs.meta new file mode 100644 index 00000000..8901e05c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2M_gmfjoinreq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d00e9c4853064f040ba2d1b3fcb19a37 +timeCreated: 1611404584 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_CreateRoleNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_CreateRoleNew.cs new file mode 100644 index 00000000..1f2ae72f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_CreateRoleNew.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2N_CreateRoleNew + { + public static void OnReply(CreateRoleNewArg oArg, CreateRoleNewRes oRes) + { + } + + public static void OnTimeout(CreateRoleNewArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_CreateRoleNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_CreateRoleNew.cs.meta new file mode 100644 index 00000000..4bc1b56f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_CreateRoleNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21617844595485047aeb692889ae5579 +timeCreated: 1611403414 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_LoginReconnectReq.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_LoginReconnectReq.cs new file mode 100644 index 00000000..912c1955 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_LoginReconnectReq.cs @@ -0,0 +1,31 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2N_LoginReconnectReq + { + public static void OnReply(LoginReconnectReqArg oArg, LoginReconnectReqRes oRes) + { + XSingleton.singleton.SetBlockUIVisable(false); + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + XSingleton.singleton.FromLogining(); + } + } + + public static void OnTimeout(LoginReconnectReqArg oArg) + { + XSingleton.singleton.SetBlockUIVisable(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_LoginReconnectReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_LoginReconnectReq.cs.meta new file mode 100644 index 00000000..9fe55e1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_LoginReconnectReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2f7b62278eae004882d06c8fa8057f2 +timeCreated: 1611404597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_ReturnToSelectRole.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_ReturnToSelectRole.cs new file mode 100644 index 00000000..9bb921f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_ReturnToSelectRole.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2N_ReturnToSelectRole + { + public static void OnReply(ReturnToSelectRoleArg oArg, ReturnToSelectRoleRes oRes) + { + } + + public static void OnTimeout(ReturnToSelectRoleArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_ReturnToSelectRole.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_ReturnToSelectRole.cs.meta new file mode 100644 index 00000000..0c49dd7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_ReturnToSelectRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 343519364ca2ce745bc8692282d6f2fc +timeCreated: 1611403554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_SelectRoleNew.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_SelectRoleNew.cs new file mode 100644 index 00000000..b81d39c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_SelectRoleNew.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Process_RpcC2N_SelectRoleNew + { + public static void OnReply(SelectRoleNewArg oArg, SelectRoleNewRes oRes) + { + } + + public static void OnTimeout(SelectRoleNewArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_SelectRoleNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_SelectRoleNew.cs.meta new file mode 100644 index 00000000..22638e62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2N_SelectRoleNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e52688a22467ef469e64ebee7d37f35 +timeCreated: 1611404241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_ClientLoginRequest.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_ClientLoginRequest.cs new file mode 100644 index 00000000..6186c7a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_ClientLoginRequest.cs @@ -0,0 +1,77 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2T_ClientLoginRequest + { + public static void OnReply(LoginArg oArg, LoginRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + XSingleton.singleton.AddLog("Login Rpc Reply.", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag2) + { + Process_RpcC2T_ClientLoginRequest.ProcessAccountData(oRes.accountData); + Process_RpcC2T_ClientLoginRequest.ProcessLoginExtraData(oRes.data); + XSingleton.singleton.EnterToSelectChar(); + XSingleton.singleton.SetLoginReconnect(oRes.rinfo); + } + else + { + ErrorCode result = oRes.result; + if (result != ErrorCode.ERR_LOGIN_VERIFY_FAILED) + { + if (result != ErrorCode.ERR_VERSION_FAILED) + { + if (result != ErrorCode.ERR_ACCOUNT_QUEUING) + { + XSingleton.singleton.OnLoginFailed(XStringDefineProxy.GetString(oRes.result)); + } + else + { + Process_RpcC2T_ClientLoginRequest.ProcessAccountData(oRes.accountData); + XSingleton.singleton.ShowServerQueue(); + } + } + else + { + XSingleton.singleton.OnServerErrorNotify((uint)XFastEnumIntEqualityComparer.ToInt(oRes.result), oRes.version); + } + } + else + { + XSingleton.singleton.OnAuthorizedFailed(); + } + } + } + } + + public static void OnTimeout(LoginArg oArg) + { + XSingleton.singleton.AddLog("Login Rpc Timeout.", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Clear(); + XSingleton.singleton.XPlayerCharacters.SelectedSlot = 0; + } + + public static void ProcessAccountData(LoadAccountData roAccountData) + { + XSingleton.singleton.ProcessAccountData(roAccountData); + } + + public static void ProcessLoginExtraData(LoginExtraData data) + { + XSingleton.singleton.ProcessLoginExtraData(data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_ClientLoginRequest.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_ClientLoginRequest.cs.meta new file mode 100644 index 00000000..b1f868d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_ClientLoginRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72affc57742620a428b0002978b2ed40 +timeCreated: 1611403938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_Reconnect.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_Reconnect.cs new file mode 100644 index 00000000..ef47d515 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_Reconnect.cs @@ -0,0 +1,41 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2T_Reconnect + { + public static void OnReply(ReconnArg oArg, ReconnRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool onReconnect = XSingleton.singleton.XConnect.OnReconnect; + if (onReconnect) + { + bool flag2 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.XConnect.OnReconnected(); + } + else + { + XSingleton.singleton.XConnect.OnReconnectFailed(); + } + } + } + } + + public static void OnTimeout(ReconnArg oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_Reconnect.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_Reconnect.cs.meta new file mode 100644 index 00000000..25280af5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_Reconnect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfd349c5483e4144d9a2423e1de1eaf9 +timeCreated: 1611404694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_UpLoadAudioToGate.cs b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_UpLoadAudioToGate.cs new file mode 100644 index 00000000..fee521b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_UpLoadAudioToGate.cs @@ -0,0 +1,49 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Process_RpcC2T_UpLoadAudioToGate + { + public static void OnReply(UpLoadAudioReq oArg, UpLoadAudioRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag3) + { + bool flag4 = oArg.srctype == 0u; + if (flag4) + { + XSingleton.singleton.UpLoadMp3Res(oRes); + } + else + { + bool flag5 = oArg.srctype == 1u; + if (flag5) + { + XSingleton.singleton.UpLoadAudioRes(oRes); + } + } + } + } + } + } + + public static void OnTimeout(UpLoadAudioReq oArg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_UpLoadAudioToGate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_UpLoadAudioToGate.cs.meta new file mode 100644 index 00000000..8b2f2a14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/Process/Process_RpcC2T_UpLoadAudioToGate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97892d6da3ef2d84e956e77b85ed0462 +timeCreated: 1611404188 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs new file mode 100644 index 00000000..b0053357 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcA2C_AudioAIDNtf : Protocol + { + public AudioTextArg Data = new AudioTextArg(); + + public override uint GetProtoType() + { + return 54517u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcA2C_AudioAIDNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs.meta new file mode 100644 index 00000000..2d0fa19e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcA2C_AudioAIDNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 321af37792ff5874ea5a6bbaef7aefbb +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AddLevelScriptExtString.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AddLevelScriptExtString.cs new file mode 100644 index 00000000..aa843fbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AddLevelScriptExtString.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_AddLevelScriptExtString : Protocol + { + public AddLevelScriptExtString Data = new AddLevelScriptExtString(); + + public override uint GetProtoType() + { + return 34579u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AddLevelScriptExtString.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AddLevelScriptExtString.cs.meta new file mode 100644 index 00000000..59f69cb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AddLevelScriptExtString.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f85c2096b509824ead3cb814fd6861b +timeCreated: 1611404030 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs new file mode 100644 index 00000000..c37cafc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_AutoFightNTF : Protocol + { + public AutoFight Data = new AutoFight(); + + public override uint GetProtoType() + { + return 25699u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs.meta new file mode 100644 index 00000000..f8ad7874 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_AutoFightNTF.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89ead006de1e338429997cc6e5b6a052 +timeCreated: 1611404090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleLogReport.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleLogReport.cs new file mode 100644 index 00000000..44cd9c5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleLogReport.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_BattleLogReport : Protocol + { + public BattleLogReport Data = new BattleLogReport(); + + public override uint GetProtoType() + { + return 10382u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleLogReport.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleLogReport.cs.meta new file mode 100644 index 00000000..570ff495 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleLogReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06aa122c348a543428db2e00af463c6e +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleStatisticsReport.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleStatisticsReport.cs new file mode 100644 index 00000000..f6ec7d93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleStatisticsReport.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcC2G_BattleStatisticsReport : Protocol + { + public override uint GetProtoType() + { + return 3612u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleStatisticsReport.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleStatisticsReport.cs.meta new file mode 100644 index 00000000..c78698ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_BattleStatisticsReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1d4e9bff5c61d84ba911786faa15e1b +timeCreated: 1611404593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CancelRedDotReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CancelRedDotReq.cs new file mode 100644 index 00000000..32aae544 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CancelRedDotReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_CancelRedDotReq : Protocol + { + public CancelRedDot Data = new CancelRedDot(); + + public override uint GetProtoType() + { + return 40873u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CancelRedDotReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CancelRedDotReq.cs.meta new file mode 100644 index 00000000..85f74e21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CancelRedDotReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 837264a59e2a605419cf4ed5c9313279 +timeCreated: 1611404044 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs new file mode 100644 index 00000000..b89bcbc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_CastSkill : Protocol + { + public SkillDataUnit Data = new SkillDataUnit(); + + public override uint GetProtoType() + { + return 49584u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs.meta new file mode 100644 index 00000000..b02e8d9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CastSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9c9e1f7a64d6fb478053f45b60a2fef +timeCreated: 1611404645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ChangeSupplementReport.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ChangeSupplementReport.cs new file mode 100644 index 00000000..b57b3c8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ChangeSupplementReport.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_ChangeSupplementReport : Protocol + { + public ChangeSupplementReport Data = new ChangeSupplementReport(); + + public override uint GetProtoType() + { + return 42193u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ChangeSupplementReport.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ChangeSupplementReport.cs.meta new file mode 100644 index 00000000..44e4fa35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ChangeSupplementReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cbe655d26edacb4408a4632cb316a253 +timeCreated: 1611404547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClickGuildCamp.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClickGuildCamp.cs new file mode 100644 index 00000000..37c71805 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClickGuildCamp.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_ClickGuildCamp : Protocol + { + public ClickGuildCampArg Data = new ClickGuildCampArg(); + + public override uint GetProtoType() + { + return 32895u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClickGuildCamp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClickGuildCamp.cs.meta new file mode 100644 index 00000000..35ef9bed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClickGuildCamp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75afec4ccb1507245bf3717d1198a00a +timeCreated: 1611403947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs new file mode 100644 index 00000000..100d6ea4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_ClientUpdatePackage : Protocol + { + public ClientUpdatePackageData Data = new ClientUpdatePackageData(); + + public override uint GetProtoType() + { + return 57832u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs.meta new file mode 100644 index 00000000..77755961 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ClientUpdatePackage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7697f2ada9f74244a70f634e477b65c +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs new file mode 100644 index 00000000..ee48b700 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_CloseHintNtf : Protocol + { + public CloseHintNtf Data = new CloseHintNtf(); + + public override uint GetProtoType() + { + return 37802u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs.meta new file mode 100644 index 00000000..65356dd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_CloseHintNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3001ae5ab7f22934e891ab46020c0e75 +timeCreated: 1611403520 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs new file mode 100644 index 00000000..b4aa9a17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_DelayNotify : Protocol + { + public DelayInfo Data = new DelayInfo(); + + public override uint GetProtoType() + { + return 46829u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs.meta new file mode 100644 index 00000000..5ec7ed37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_DelayNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3beeaa3542d7e114aa5800926511fea8 +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneCoolDownQuery.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneCoolDownQuery.cs new file mode 100644 index 00000000..decf896c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneCoolDownQuery.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_EnterSceneCoolDownQuery : Protocol + { + public EnterSceneCoolDownQuery Data = new EnterSceneCoolDownQuery(); + + public override uint GetProtoType() + { + return 40442u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneCoolDownQuery.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneCoolDownQuery.cs.meta new file mode 100644 index 00000000..f178c023 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneCoolDownQuery.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d725e53b03a0528498eb933b15fe54f8 +timeCreated: 1611404634 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneReq.cs new file mode 100644 index 00000000..4192715f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_EnterSceneReq : Protocol + { + public SceneRequest Data = new SceneRequest(); + + public override uint GetProtoType() + { + return 9036u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneReq.cs.meta new file mode 100644 index 00000000..32f19487 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_EnterSceneReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 177c21a9103d8d4499e05e351efa125e +timeCreated: 1611403293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs new file mode 100644 index 00000000..bcf3c088 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_FMBRefuse : Protocol + { + public FMBRes Data = new FMBRes(); + + public override uint GetProtoType() + { + return 50821u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs.meta new file mode 100644 index 00000000..1fa1ea6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_FMBRefuse.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8fcc0ec576b8ce9498b945310b052b48 +timeCreated: 1611404136 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs new file mode 100644 index 00000000..bb37ee3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_InvfightAgainReqC2G : Protocol + { + public InvFightAgainPara Data = new InvFightAgainPara(); + + public override uint GetProtoType() + { + return 2055u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs.meta new file mode 100644 index 00000000..fe173389 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_InvfightAgainReqC2G.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba407affcac9897428d80e2e212e83b7 +timeCreated: 1611404435 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs new file mode 100644 index 00000000..5935104b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_JoinRoom : Protocol + { + public JoinRoom Data = new JoinRoom(); + + public override uint GetProtoType() + { + return 8517u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs.meta new file mode 100644 index 00000000..47f13dd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_JoinRoom.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1eff34ae7ad2ce741b15072eaa367cf1 +timeCreated: 1611403367 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_LeaveSceneReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_LeaveSceneReq.cs new file mode 100644 index 00000000..de7ba271 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_LeaveSceneReq.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcC2G_LeaveSceneReq : Protocol + { + public override uint GetProtoType() + { + return 27927u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_LeaveSceneReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_LeaveSceneReq.cs.meta new file mode 100644 index 00000000..ccaa1e8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_LeaveSceneReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 521dd657e91c630408852b0e5158b52d +timeCreated: 1611403708 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_MoveOperationReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_MoveOperationReq.cs new file mode 100644 index 00000000..a675ca41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_MoveOperationReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_MoveOperationReq : Protocol + { + public MoveInfo Data = new MoveInfo(); + + public override uint GetProtoType() + { + return 30732u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_MoveOperationReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_MoveOperationReq.cs.meta new file mode 100644 index 00000000..858bf932 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_MoveOperationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bddf2876a8032bc4d845519e3450a7f1 +timeCreated: 1611404458 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NextDayRewardReport.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NextDayRewardReport.cs new file mode 100644 index 00000000..28451170 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NextDayRewardReport.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_NextDayRewardReport : Protocol + { + public NextDayRewardReport Data = new NextDayRewardReport(); + + public override uint GetProtoType() + { + return 1059u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NextDayRewardReport.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NextDayRewardReport.cs.meta new file mode 100644 index 00000000..f66894a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NextDayRewardReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee24106d88e152443911e13773fe0f3d +timeCreated: 1611404794 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NotifyPlatShareResult.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NotifyPlatShareResult.cs new file mode 100644 index 00000000..3265f8a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NotifyPlatShareResult.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_NotifyPlatShareResult : Protocol + { + public NotifyPlatShareResultArg Data = new NotifyPlatShareResultArg(); + + public override uint GetProtoType() + { + return 8480u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NotifyPlatShareResult.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NotifyPlatShareResult.cs.meta new file mode 100644 index 00000000..bb61c7e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_NotifyPlatShareResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5bce50cf4d6b9c44bbf03ba376442bdb +timeCreated: 1611403800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OnlineRewardReport.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OnlineRewardReport.cs new file mode 100644 index 00000000..0cb8d15c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OnlineRewardReport.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_OnlineRewardReport : Protocol + { + public OnlineRewardReport Data = new OnlineRewardReport(); + + public override uint GetProtoType() + { + return 36178u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OnlineRewardReport.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OnlineRewardReport.cs.meta new file mode 100644 index 00000000..dfce5705 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OnlineRewardReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51e3c36fa53c2e64581c8062c103dba4 +timeCreated: 1611403708 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs new file mode 100644 index 00000000..25e3c413 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_OpenSpriteEggNtf : Protocol + { + public OpenSpriteEgg Data = new OpenSpriteEgg(); + + public override uint GetProtoType() + { + return 47965u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs.meta new file mode 100644 index 00000000..c0496e35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OpenSpriteEggNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47920aa853d7cc4438835d1de3a96bdd +timeCreated: 1611403654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OperateRecordNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OperateRecordNtf.cs new file mode 100644 index 00000000..d3532909 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OperateRecordNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_OperateRecordNtf : Protocol + { + public OperateRecord Data = new OperateRecord(); + + public override uint GetProtoType() + { + return 56173u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OperateRecordNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OperateRecordNtf.cs.meta new file mode 100644 index 00000000..fb6b7f3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_OperateRecordNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: adcc6b75c64df68429634a2340bbae75 +timeCreated: 1611404335 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs new file mode 100644 index 00000000..9862de6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_PicUrlNtf : Protocol + { + public PicUrlInfo Data = new PicUrlInfo(); + + public override uint GetProtoType() + { + return 30863u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs.meta new file mode 100644 index 00000000..738ebfe7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PicUrlNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01d4fcb8d1f0a88499b2e268d283b20b +timeCreated: 1611402955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs new file mode 100644 index 00000000..f3658918 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_PlayDiceOver : Protocol + { + public PlayDiceOverData Data = new PlayDiceOverData(); + + public override uint GetProtoType() + { + return 2064u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs.meta new file mode 100644 index 00000000..cfcd0281 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_PlayDiceOver.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b92b05f2f8ca3554f9f8e9a7605573a0 +timeCreated: 1611404409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs new file mode 100644 index 00000000..76b0be75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_QTEOperation : Protocol + { + public QTEOperation Data = new QTEOperation(); + + public override uint GetProtoType() + { + return 11413u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs.meta new file mode 100644 index 00000000..ab51d4fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QTEOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 746a63f12a11b134c89934bb0bca79d2 +timeCreated: 1611403943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs new file mode 100644 index 00000000..cbf963f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_QueryRoleStateReq : Protocol + { + public QueryRoleStateReq Data = new QueryRoleStateReq(); + + public override uint GetProtoType() + { + return 54208u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs.meta new file mode 100644 index 00000000..50874e54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QueryRoleStateReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 123724a38a381b948aaecbc80afe9231 +timeCreated: 1611403241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs new file mode 100644 index 00000000..27090707 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_QuitRoom : Protocol + { + public QuitRoom Data = new QuitRoom(); + + public override uint GetProtoType() + { + return 44925u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs.meta new file mode 100644 index 00000000..0880adac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_QuitRoom.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf336ccbd4e2f7d4883bc368c13b01ed +timeCreated: 1611404482 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs new file mode 100644 index 00000000..76e25351 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_RemoveIBShopIcon : Protocol + { + public RemoveIBShopIcon Data = new RemoveIBShopIcon(); + + public override uint GetProtoType() + { + return 33988u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs.meta new file mode 100644 index 00000000..77427971 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RemoveIBShopIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8c757d5546f78c448a276663869d750 +timeCreated: 1611404754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs new file mode 100644 index 00000000..ec508c1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcC2G_RoleDeathInSoloScene : Protocol + { + public override uint GetProtoType() + { + return 16659u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs.meta new file mode 100644 index 00000000..b461aee5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_RoleDeathInSoloScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73353bd55eeac3947b2b33d3add50782 +timeCreated: 1611403940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SceneDamageRankReport.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SceneDamageRankReport.cs new file mode 100644 index 00000000..65a349d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SceneDamageRankReport.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcC2G_SceneDamageRankReport : Protocol + { + public override uint GetProtoType() + { + return 53015u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SceneDamageRankReport.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SceneDamageRankReport.cs.meta new file mode 100644 index 00000000..198504ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SceneDamageRankReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0abb91a54078a3347aaa3acf4b7bf33e +timeCreated: 1611403165 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SetVoipMemberState.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SetVoipMemberState.cs new file mode 100644 index 00000000..62e41ec2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SetVoipMemberState.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_SetVoipMemberState : Protocol + { + public SetVoipMemberState Data = new SetVoipMemberState(); + + public override uint GetProtoType() + { + return 3881u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SetVoipMemberState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SetVoipMemberState.cs.meta new file mode 100644 index 00000000..76ac2a85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SetVoipMemberState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3962a431c2160b94bad92be9c17f6ee8 +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs new file mode 100644 index 00000000..12f4e3ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_ShareReport : Protocol + { + public ShareReportData Data = new ShareReportData(); + + public override uint GetProtoType() + { + return 31884u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs.meta new file mode 100644 index 00000000..08c6ff6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_ShareReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9fac70eace6c7d04789c8b92ca3e07d0 +timeCreated: 1611404246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletFireReport.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletFireReport.cs new file mode 100644 index 00000000..41988bb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletFireReport.cs @@ -0,0 +1,37 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_SkillBulletFireReport : Protocol + { + public BulletUnitData Data = new BulletUnitData(); + + public PtcC2G_SkillBulletFireReport() + { + this.Data.Pos = new Vec3(); + } + + public override uint GetProtoType() + { + return 54744u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletFireReport.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletFireReport.cs.meta new file mode 100644 index 00000000..0b69e8a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletFireReport.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e72c94cc95cde34a9eac6896fe0aec0 +timeCreated: 1611404129 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs new file mode 100644 index 00000000..4e2c8921 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs @@ -0,0 +1,37 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_SkillBulletResultReq : Protocol + { + public SkillBulletResultReqUnit Data = new SkillBulletResultReqUnit(); + + public PtcC2G_SkillBulletResultReq() + { + this.Data.ResultAt = new Vec3(); + } + + public override uint GetProtoType() + { + return 15929u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs.meta new file mode 100644 index 00000000..76d9a28d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillBulletResultReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72df098cb277dd343887c5026656b54e +timeCreated: 1611403938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillResultReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillResultReq.cs new file mode 100644 index 00000000..144cf25b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillResultReq.cs @@ -0,0 +1,38 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_SkillResultReq : Protocol + { + public SkillResultReqUnit Data = new SkillResultReqUnit(); + + public PtcC2G_SkillResultReq() + { + this.Data.ResultAt = new Vec3(); + this.Data.Pos = new Vec3(); + } + + public override uint GetProtoType() + { + return 41958u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillResultReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillResultReq.cs.meta new file mode 100644 index 00000000..45d502fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SkillResultReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12d858a5f146de84182aaf8e27576ea6 +timeCreated: 1611403244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs new file mode 100644 index 00000000..20906f4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_SynDoingGuildInherit : Protocol + { + public SynDoingGuildInherit Data = new SynDoingGuildInherit(); + + public override uint GetProtoType() + { + return 51759u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs.meta new file mode 100644 index 00000000..d0f12de5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SynDoingGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0048b828cee75049a87f4140f9efc0d +timeCreated: 1611404695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SyncSceneFinish.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SyncSceneFinish.cs new file mode 100644 index 00000000..5a8fbc59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SyncSceneFinish.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcC2G_SyncSceneFinish : Protocol + { + public override uint GetProtoType() + { + return 559u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SyncSceneFinish.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SyncSceneFinish.cs.meta new file mode 100644 index 00000000..25a27639 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_SyncSceneFinish.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e3eb183f5b475e40aa0fe43b18caec4 +timeCreated: 1611403201 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_TssSdkSendAnti2Server.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_TssSdkSendAnti2Server.cs new file mode 100644 index 00000000..17e02e4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_TssSdkSendAnti2Server.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_TssSdkSendAnti2Server : Protocol + { + public TssSdkAntiData Data = new TssSdkAntiData(); + + public override uint GetProtoType() + { + return 62305u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_TssSdkSendAnti2Server.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_TssSdkSendAnti2Server.cs.meta new file mode 100644 index 00000000..db1af52f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_TssSdkSendAnti2Server.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc2f0134ebb8b0746bbf22f2e7d014cc +timeCreated: 1611404677 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateFreeflowHintInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateFreeflowHintInfo.cs new file mode 100644 index 00000000..37fee217 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateFreeflowHintInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_UpdateFreeflowHintInfo : Protocol + { + public UpdateFreeflowHintInfo Data = new UpdateFreeflowHintInfo(); + + public override uint GetProtoType() + { + return 27628u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateFreeflowHintInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateFreeflowHintInfo.cs.meta new file mode 100644 index 00000000..986bce01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateFreeflowHintInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a07b28f8633a5104e9dd5a444bc613de +timeCreated: 1611404249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateTutorial.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateTutorial.cs new file mode 100644 index 00000000..a7b6a73c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateTutorial.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2G_UpdateTutorial : Protocol + { + public TutorialInfo Data = new TutorialInfo(); + + public override uint GetProtoType() + { + return 31917u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateTutorial.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateTutorial.cs.meta new file mode 100644 index 00000000..08bd26f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2G_UpdateTutorial.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71bb8244f7b3f24488ed4404349d88fe +timeCreated: 1611403935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_BlackListReportNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_BlackListReportNew.cs new file mode 100644 index 00000000..c4a8872c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_BlackListReportNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_BlackListReportNew : Protocol + { + public BlackListReport Data = new BlackListReport(); + + public override uint GetProtoType() + { + return 57057u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_BlackListReportNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_BlackListReportNew.cs.meta new file mode 100644 index 00000000..3f6e8192 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_BlackListReportNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e7ae91a6c9c50a41adc665185a6d847 +timeCreated: 1611403608 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CheckQueuingReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CheckQueuingReq.cs new file mode 100644 index 00000000..ea059318 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CheckQueuingReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_CheckQueuingReq : Protocol + { + public CheckQueuingReq Data = new CheckQueuingReq(); + + public override uint GetProtoType() + { + return 28232u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CheckQueuingReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CheckQueuingReq.cs.meta new file mode 100644 index 00000000..5de48cbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CheckQueuingReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a52bd369cbae7e94d89237f966287ae9 +timeCreated: 1611404285 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs new file mode 100644 index 00000000..53ec4118 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_CloseLeagueEleNtf : Protocol + { + public CloseLeagueEleNtf Data = new CloseLeagueEleNtf(); + + public override uint GetProtoType() + { + return 8195u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs.meta new file mode 100644 index 00000000..8551e228 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseLeagueEleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da062dc0083b336429bc76e6f3ba897e +timeCreated: 1611404646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs new file mode 100644 index 00000000..60a2111c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_CloseSkyCraftEliNtf : Protocol + { + public CloseSkyCraftEliNtf Data = new CloseSkyCraftEliNtf(); + + public override uint GetProtoType() + { + return 46239u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs.meta new file mode 100644 index 00000000..cfb6c29e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CloseSkyCraftEliNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 38f87653ed0b9af4e9acfc7849c1abab +timeCreated: 1611403590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs new file mode 100644 index 00000000..3d10537a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_CommitAnswerNtf : Protocol + { + public CommitAnswerNtf Data = new CommitAnswerNtf(); + + public override uint GetProtoType() + { + return 12159u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs.meta new file mode 100644 index 00000000..fa39a6f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_CommitAnswerNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75c3cd1fba58c9342838da9ae6546a4c +timeCreated: 1611403948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs new file mode 100644 index 00000000..9765d0d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_FMBRefuseC2M : Protocol + { + public FMBRes Data = new FMBRes(); + + public override uint GetProtoType() + { + return 44407u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs.meta new file mode 100644 index 00000000..781bc0dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FMBRefuseC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a441926dd6d0c0d42b368ec9cc3beefd +timeCreated: 1611404282 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs new file mode 100644 index 00000000..a4e3bc70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_FriendQueryReportNew : Protocol + { + public FriendQueryReportNew Data = new FriendQueryReportNew(); + + public override uint GetProtoType() + { + return 15079u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs.meta new file mode 100644 index 00000000..7d6b30ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_FriendQueryReportNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e2dab57219fcf240a21aeec2aeb741e +timeCreated: 1611403200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GardenFishStop.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GardenFishStop.cs new file mode 100644 index 00000000..5f072de7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GardenFishStop.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_GardenFishStop : Protocol + { + public GardenFishStopArg Data = new GardenFishStopArg(); + + public override uint GetProtoType() + { + return 56656u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GardenFishStop.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GardenFishStop.cs.meta new file mode 100644 index 00000000..34a86732 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GardenFishStop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ab568fb06d6c2541aaf9d49a661654b +timeCreated: 1611403990 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs new file mode 100644 index 00000000..1d0eb224 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_GiveUpQAQuestionNtf : Protocol + { + public GiveUpQuestionNtf Data = new GiveUpQuestionNtf(); + + public override uint GetProtoType() + { + return 17022u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs.meta new file mode 100644 index 00000000..5353e76f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GiveUpQAQuestionNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2a6870e1cc4c7b47b43d379a5a18192 +timeCreated: 1611404728 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs new file mode 100644 index 00000000..ddfc6d40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_GmfJoinBattleC2MRes : Protocol + { + public GmfJoinBattleRes Data = new GmfJoinBattleRes(); + + public override uint GetProtoType() + { + return 25047u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs.meta new file mode 100644 index 00000000..e82f3e83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GmfJoinBattleC2MRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 588bf7c56ad49454f810a1759dd5444c +timeCreated: 1611403755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs new file mode 100644 index 00000000..7137c4d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_GoBackReadySceneNtf : Protocol + { + public GoBackReadyScene Data = new GoBackReadyScene(); + + public override uint GetProtoType() + { + return 10491u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs.meta new file mode 100644 index 00000000..c26b6324 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GoBackReadySceneNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c2c1b0c1fa8da7449c31be4a5ba6849 +timeCreated: 1611404209 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs new file mode 100644 index 00000000..74c62c1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_GuildCardMatchReq : Protocol + { + public GuildCardMatchReq Data = new GuildCardMatchReq(); + + public override uint GetProtoType() + { + return 21904u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs.meta new file mode 100644 index 00000000..3ff82e2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardMatchReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc41c9c10c5eadd4b9f2366664e149dd +timeCreated: 1611404934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardRankReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardRankReq.cs new file mode 100644 index 00000000..3168a98c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardRankReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_GuildCardRankReq : Protocol + { + public GuildCardRankReq Data = new GuildCardRankReq(); + + public override uint GetProtoType() + { + return 50768u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardRankReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardRankReq.cs.meta new file mode 100644 index 00000000..673ab235 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_GuildCardRankReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ad80cf6ab3a0e9409b62040f6064746 +timeCreated: 1611403793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_HandleMicphone.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_HandleMicphone.cs new file mode 100644 index 00000000..cb7d34b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_HandleMicphone.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_HandleMicphone : Protocol + { + public HandleMicphoneArg Data = new HandleMicphoneArg(); + + public override uint GetProtoType() + { + return 50175u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_HandleMicphone.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_HandleMicphone.cs.meta new file mode 100644 index 00000000..073ab3d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_HandleMicphone.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 063d631c2384f7e478d7081b90b71cb9 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs new file mode 100644 index 00000000..0e22d642 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_IBGiftTipsReq : Protocol + { + public IBGiftTips Data = new IBGiftTips(); + + public override uint GetProtoType() + { + return 29090u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs.meta new file mode 100644 index 00000000..a1c8a2e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_IBGiftTipsReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc7790649d6213542aed2b3214db208f +timeCreated: 1611404446 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs new file mode 100644 index 00000000..b99bfcb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_LeaveLargeRoom : Protocol + { + public LeaveLargeRoomParam Data = new LeaveLargeRoomParam(); + + public override uint GetProtoType() + { + return 55577u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs.meta new file mode 100644 index 00000000..226c90da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LeaveLargeRoom.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 005ccde77c5264f4ea0919b6af398eff +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs new file mode 100644 index 00000000..864364d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_LoadOfflineChatNtf : Protocol + { + public LoadOffLineChatNtf Data = new LoadOffLineChatNtf(); + + public override uint GetProtoType() + { + return 26622u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs.meta new file mode 100644 index 00000000..56939996 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_LoadOfflineChatNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 949a92871e6b856488370af0327d8fc8 +timeCreated: 1611404155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_MulActivityIconSysReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_MulActivityIconSysReq.cs new file mode 100644 index 00000000..dccf4386 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_MulActivityIconSysReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_MulActivityIconSysReq : Protocol + { + public MulActivityIconSys Data = new MulActivityIconSys(); + + public override uint GetProtoType() + { + return 64642u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_MulActivityIconSysReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_MulActivityIconSysReq.cs.meta new file mode 100644 index 00000000..864e9e1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_MulActivityIconSysReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a63c974bd63e384eb6310fe761f80c3 +timeCreated: 1611403988 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs new file mode 100644 index 00000000..f98ea379 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_OpenPrivateChatNtf : Protocol + { + public OpenPrivateChat Data = new OpenPrivateChat(); + + public override uint GetProtoType() + { + return 23206u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs.meta new file mode 100644 index 00000000..33b812a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_OpenPrivateChatNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d5a78bf378ddbd438e1040790400e28 +timeCreated: 1611404000 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs new file mode 100644 index 00000000..d3e52266 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_PayBuyGoodsFailNtf : Protocol + { + public PayBuyGoodsFail Data = new PayBuyGoodsFail(); + + public override uint GetProtoType() + { + return 23670u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs.meta new file mode 100644 index 00000000..7319bea3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayBuyGoodsFailNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b378e7b5ce0a1c24e8c72a06fb8fd753 +timeCreated: 1611404389 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs new file mode 100644 index 00000000..15f29603 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_PayParameterInfoNtf : Protocol + { + public PayParameterInfo Data = new PayParameterInfo(); + + public override uint GetProtoType() + { + return 1181u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs.meta new file mode 100644 index 00000000..8fc50cc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PayParameterInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6dc60997bd6bb7842b858f1dacd518be +timeCreated: 1611403903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PokerTournamentReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PokerTournamentReq.cs new file mode 100644 index 00000000..a7dca5fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PokerTournamentReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_PokerTournamentReq : Protocol + { + public GuildCardMatchReq Data = new GuildCardMatchReq(); + + public override uint GetProtoType() + { + return 3685u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PokerTournamentReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PokerTournamentReq.cs.meta new file mode 100644 index 00000000..c6e55c8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_PokerTournamentReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3163789d40e4d7e448cb496a5f571ed9 +timeCreated: 1611403544 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_QueryResWarRequet.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_QueryResWarRequet.cs new file mode 100644 index 00000000..b48e1885 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_QueryResWarRequet.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_QueryResWarRequet : Protocol + { + public QueryResWarArg Data = new QueryResWarArg(); + + public override uint GetProtoType() + { + return 53580u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_QueryResWarRequet.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_QueryResWarRequet.cs.meta new file mode 100644 index 00000000..4f21595b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_QueryResWarRequet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6eae46b04a5aa554db511b59cbb273eb +timeCreated: 1611403906 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_RoleStateReportNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_RoleStateReportNew.cs new file mode 100644 index 00000000..4f40558d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_RoleStateReportNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_RoleStateReportNew : Protocol + { + public RoleStateReport Data = new RoleStateReport(); + + public override uint GetProtoType() + { + return 10217u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_RoleStateReportNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_RoleStateReportNew.cs.meta new file mode 100644 index 00000000..b884917e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_RoleStateReportNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39ba5c4917db14b44afba1b05ccb619e +timeCreated: 1611403593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs new file mode 100644 index 00000000..02574ff0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_SyncPlatFriend2MS : Protocol + { + public SyncPlatFriend2MSData Data = new SyncPlatFriend2MSData(); + + public override uint GetProtoType() + { + return 38885u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs.meta new file mode 100644 index 00000000..933fb900 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_SyncPlatFriend2MS.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0fbc9b520bea2c42b16c8990cb169ee +timeCreated: 1611404835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs new file mode 100644 index 00000000..d9ce9500 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2M_TeamInviteAckC2M : Protocol + { + public TeamInviteAck Data = new TeamInviteAck(); + + public override uint GetProtoType() + { + return 15365u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs.meta new file mode 100644 index 00000000..c48fecc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2M_TeamInviteAckC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cbc2950aaa1c1404abe2c792403ed044 +timeCreated: 1611404547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_CheckQueuingReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_CheckQueuingReq.cs new file mode 100644 index 00000000..e6eb0060 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_CheckQueuingReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2N_CheckQueuingReq : Protocol + { + public CheckQueuingReq Data = new CheckQueuingReq(); + + public override uint GetProtoType() + { + return 28232u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_CheckQueuingReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_CheckQueuingReq.cs.meta new file mode 100644 index 00000000..dcc22c90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_CheckQueuingReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0004f5e23642a94d992cf10aee04915 +timeCreated: 1611404826 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs new file mode 100644 index 00000000..4a503e94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcC2N_UpdateStartUpTypeNtf : Protocol + { + public UpdateStartUpType Data = new UpdateStartUpType(); + + public override uint GetProtoType() + { + return 60574u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs.meta new file mode 100644 index 00000000..bdb49683 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2N_UpdateStartUpTypeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db57a1f018df84943a7505db4db85341 +timeCreated: 1611404652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs new file mode 100644 index 00000000..47f01e56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcC2T_KeepAlivePingAck : Protocol + { + public override uint GetProtoType() + { + return 29192u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + throw new Exception("Send only protocol can not call process"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs.meta new file mode 100644 index 00000000..81c744cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcC2T_KeepAlivePingAck.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9bffff208eeccd7428106d27e8ae823c +timeCreated: 1611404208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs new file mode 100644 index 00000000..08924de1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_AIDebugInfo : Protocol + { + public AIDebugMsg Data = new AIDebugMsg(); + + public override uint GetProtoType() + { + return 60081u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_AIDebugInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs.meta new file mode 100644 index 00000000..ba78f6b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AIDebugInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87ef7d9ca1c3d8b4f84e5d212c473b8d +timeCreated: 1611404082 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs new file mode 100644 index 00000000..37125453 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_AbsPartyNtf : Protocol + { + public AbsPartyInfo Data = new AbsPartyInfo(); + + public override uint GetProtoType() + { + return 35041u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_AbsPartyNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs.meta new file mode 100644 index 00000000..8a36caae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AbsPartyNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8213530bdd7db344bbd8f44f2fe4b4f5 +timeCreated: 1611404039 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs new file mode 100644 index 00000000..164e0183 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ActivityRoleNotify : Protocol + { + public ActivityRoleNotify Data = new ActivityRoleNotify(); + + public override uint GetProtoType() + { + return 2548u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ActivityRoleNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs.meta new file mode 100644 index 00000000..a4c7793b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ActivityRoleNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d7feaac22fa4954f8f2b0df22414634 +timeCreated: 1611404105 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs new file mode 100644 index 00000000..c22393fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_AllGiftIBItemNtf : Protocol + { + public AllGiftIBItem Data = new AllGiftIBItem(); + + public override uint GetProtoType() + { + return 2916u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_AllGiftIBItemNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs.meta new file mode 100644 index 00000000..22d7f682 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllGiftIBItemNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fab3beb080cc3049a7182f0f06729d9 +timeCreated: 1611403518 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllyMatchRoleIDNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllyMatchRoleIDNotify.cs new file mode 100644 index 00000000..8586efea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllyMatchRoleIDNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_AllyMatchRoleIDNotify : Protocol + { + public AllyMatchRoleID Data = new AllyMatchRoleID(); + + public override uint GetProtoType() + { + return 41598u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_AllyMatchRoleIDNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllyMatchRoleIDNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllyMatchRoleIDNotify.cs.meta new file mode 100644 index 00000000..1fe066a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AllyMatchRoleIDNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e25b69efac68dac4bb603f4b70b3d8ae +timeCreated: 1611404705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AntiAddictionRemindNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AntiAddictionRemindNtf.cs new file mode 100644 index 00000000..0c46ad51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AntiAddictionRemindNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_AntiAddictionRemindNtf : Protocol + { + public AntiAddictionRemindInfo Data = new AntiAddictionRemindInfo(); + + public override uint GetProtoType() + { + return 17999u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_AntiAddictionRemindNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AntiAddictionRemindNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AntiAddictionRemindNtf.cs.meta new file mode 100644 index 00000000..6c76368c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AntiAddictionRemindNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c71cb033ac666f4897ea07297f8cd43 +timeCreated: 1611403344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AttributeChangeNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AttributeChangeNotify.cs new file mode 100644 index 00000000..c34ee7b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AttributeChangeNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_AttributeChangeNotify : Protocol + { + public ChangedAttribute Data = new ChangedAttribute(); + + public override uint GetProtoType() + { + return 57626u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_AttributeChangeNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AttributeChangeNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AttributeChangeNotify.cs.meta new file mode 100644 index 00000000..92dc6a17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_AttributeChangeNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2079741e6f3f70d42a0688095c70d661 +timeCreated: 1611403407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs new file mode 100644 index 00000000..eed59974 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BFFightTimeNtf : Protocol + { + public BFFightTime Data = new BFFightTime(); + + public override uint GetProtoType() + { + return 39352u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BFFightTimeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs.meta new file mode 100644 index 00000000..a75fa814 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BFFightTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6ffe95a7556ac047a5b261cb696aa19 +timeCreated: 1611404290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs new file mode 100644 index 00000000..7f8cacec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BMFightTimeNtf : Protocol + { + public BMFightTime Data = new BMFightTime(); + + public override uint GetProtoType() + { + return 4101u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BMFightTimeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs.meta new file mode 100644 index 00000000..a9e5756f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMFightTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6cb2925055ff584b8c74408c8b2a1ce +timeCreated: 1611404399 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs new file mode 100644 index 00000000..612f101a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BMReadyTimeNtf : Protocol + { + public BMReadyTime Data = new BMReadyTime(); + + public override uint GetProtoType() + { + return 8612u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BMReadyTimeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs.meta new file mode 100644 index 00000000..644243e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMReadyTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8951b6f55555eca4c8fb6e72f0d96ef4 +timeCreated: 1611404087 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs new file mode 100644 index 00000000..c2ed55a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BMRoleSceneSyncNtf : Protocol + { + public BMRoleSceneSync Data = new BMRoleSceneSync(); + + public override uint GetProtoType() + { + return 40091u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BMRoleSceneSyncNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs.meta new file mode 100644 index 00000000..8b77eecb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BMRoleSceneSyncNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90ae31aa544832641a5038dd8534a03b +timeCreated: 1611404139 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs new file mode 100644 index 00000000..c3386cb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BackFlowOpenNtf : Protocol + { + public BackFlowOpenNtf Data = new BackFlowOpenNtf(); + + public override uint GetProtoType() + { + return 27749u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BackFlowOpenNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs.meta new file mode 100644 index 00000000..d64f0041 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BackFlowOpenNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5021b308de6dc074384cc7f7b4a402ea +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReadyInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReadyInfoNtf.cs new file mode 100644 index 00000000..eb1c15de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReadyInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BattleFieldReadyInfoNtf : Protocol + { + public BattleFieldReadyInfo Data = new BattleFieldReadyInfo(); + + public override uint GetProtoType() + { + return 40392u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BattleFieldReadyInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReadyInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReadyInfoNtf.cs.meta new file mode 100644 index 00000000..4d4b980e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReadyInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c73f51c4dd633947976c5f3490a7e7e +timeCreated: 1611403173 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs new file mode 100644 index 00000000..7fda5ba2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BattleFieldReliveNtf : Protocol + { + public BattleFieldReliveInfo Data = new BattleFieldReliveInfo(); + + public override uint GetProtoType() + { + return 813u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BattleFieldReliveNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs.meta new file mode 100644 index 00000000..82caa193 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldReliveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b729c7354e4f87c4486a7e28b72658d5 +timeCreated: 1611404401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs new file mode 100644 index 00000000..11c1229b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BattleFieldRoleAgainstNtf : Protocol + { + public BattleFieldRoleAgainst Data = new BattleFieldRoleAgainst(); + + public override uint GetProtoType() + { + return 8049u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BattleFieldRoleAgainstNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs.meta new file mode 100644 index 00000000..08448115 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleFieldRoleAgainstNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0641ba91b3de4234eb4c4dc25c8c5945 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleResultNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleResultNtf.cs new file mode 100644 index 00000000..2c8fad12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleResultNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BattleResultNtf : Protocol + { + public NewBattleResult Data = new NewBattleResult(); + + public override uint GetProtoType() + { + return 29609u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BattleResultNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleResultNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleResultNtf.cs.meta new file mode 100644 index 00000000..5d4e25f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleResultNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6f388d55db0f834fae8862ea02018a4 +timeCreated: 1611404748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs new file mode 100644 index 00000000..e15620df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BattleStatisticsNtf : Protocol + { + public BattleStatisticsNtf Data = new BattleStatisticsNtf(); + + public override uint GetProtoType() + { + return 65061u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BattleStatisticsNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs.meta new file mode 100644 index 00000000..3774faee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleStatisticsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a0d1c3d9691bb64d9f5a3cabe437d57 +timeCreated: 1611403790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs new file mode 100644 index 00000000..43efd006 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BattleWatcherNtf : Protocol + { + public BattleWatcherNtf Data = new BattleWatcherNtf(); + + public override uint GetProtoType() + { + return 54652u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BattleWatcherNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs.meta new file mode 100644 index 00000000..d2251560 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BattleWatcherNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47b079c1e6ce0c540ae23af73c5d3afb +timeCreated: 1611403655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs new file mode 100644 index 00000000..f4e28ad4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BigMeleePointNtf : Protocol + { + public BigMeleePoint Data = new BigMeleePoint(); + + public override uint GetProtoType() + { + return 15624u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BigMeleePointNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs.meta new file mode 100644 index 00000000..e798c886 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b55fbbfd52177684cb705785b9e777f5 +timeCreated: 1611404395 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointOutLookNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointOutLookNtf.cs new file mode 100644 index 00000000..67e45e65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointOutLookNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BigMeleePointOutLookNtf : Protocol + { + public BigMeleePointOutLook Data = new BigMeleePointOutLook(); + + public override uint GetProtoType() + { + return 25027u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BigMeleePointOutLookNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointOutLookNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointOutLookNtf.cs.meta new file mode 100644 index 00000000..fe0182d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleePointOutLookNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a3d7e9478024874385be3035f3cbb13 +timeCreated: 1611403664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs new file mode 100644 index 00000000..f17092ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BigMeleeReliveNtf : Protocol + { + public BigMeleeRelive Data = new BigMeleeRelive(); + + public override uint GetProtoType() + { + return 3358u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BigMeleeReliveNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs.meta new file mode 100644 index 00000000..ebeb2895 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BigMeleeReliveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c48a695986d37284a9f56b6aac23bfbe +timeCreated: 1611404502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs new file mode 100644 index 00000000..3821213b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BossRushOneFinishNtf : Protocol + { + public BossRushPara Data = new BossRushPara(); + + public override uint GetProtoType() + { + return 21034u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BossRushOneFinishNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs.meta new file mode 100644 index 00000000..6629ba0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BossRushOneFinishNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2d495ac32b5cc84f83cb44e8f49d809 +timeCreated: 1611404387 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs new file mode 100644 index 00000000..0c07433f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_BuffNotify : Protocol + { + public buffInfo Data = new buffInfo(); + + public override uint GetProtoType() + { + return 18520u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_BuffNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs.meta new file mode 100644 index 00000000..9e75be8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_BuffNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb43c2755d227cd4889e1cd56258c1b6 +timeCreated: 1611404782 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CdCall.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CdCall.cs new file mode 100644 index 00000000..d3fe3576 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CdCall.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_CdCall : Protocol + { + public CallData Data = new CallData(); + + public override uint GetProtoType() + { + return 34744u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_CdCall.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CdCall.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CdCall.cs.meta new file mode 100644 index 00000000..4df51122 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CdCall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1bd632a0c31f854b9c8745b4e9e2327 +timeCreated: 1611404255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs new file mode 100644 index 00000000..25586cfc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ChangeFashionNotify : Protocol + { + public FashionChanged Data = new FashionChanged(); + + public override uint GetProtoType() + { + return 1731u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ChangeFashionNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs.meta new file mode 100644 index 00000000..fe18dc8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeFashionNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e13c33ebf6872d648a5061a5eb8e5563 +timeCreated: 1611404701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs new file mode 100644 index 00000000..57d5201e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ChangeNameCountNtf : Protocol + { + public ChangeNameCountNtf Data = new ChangeNameCountNtf(); + + public override uint GetProtoType() + { + return 59287u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ChangeNameCountNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs.meta new file mode 100644 index 00000000..e3cae6e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeNameCountNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b05e2217d4cccd845b3f02e03f944832 +timeCreated: 1611404350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs new file mode 100644 index 00000000..65c35e95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ChangeSupplementNtf : Protocol + { + public ChangeSupplementNtf Data = new ChangeSupplementNtf(); + + public override uint GetProtoType() + { + return 11250u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ChangeSupplementNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs.meta new file mode 100644 index 00000000..d13f59f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChangeSupplementNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67cc9d6c2a0a9b14180b1086de321921 +timeCreated: 1611403880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs new file mode 100644 index 00000000..d0e2e9c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ChatNotifyG2C : Protocol + { + public ChatNotify Data = new ChatNotify(); + + public override uint GetProtoType() + { + return 48111u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ChatNotifyG2C.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs.meta new file mode 100644 index 00000000..9cff92f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ChatNotifyG2C.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e25327f7883eaaf4f8324830ce937de3 +timeCreated: 1611404705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs new file mode 100644 index 00000000..a4af5e06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_CheckinInfoNotify : Protocol + { + public CheckinInfoNotify Data = new CheckinInfoNotify(); + + public override uint GetProtoType() + { + return 29332u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_CheckinInfoNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs.meta new file mode 100644 index 00000000..2ecd6e39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CheckinInfoNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bbe4ef24e1257c48bc7833fb98842c8 +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs new file mode 100644 index 00000000..a601837a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ClientOnlyBuffNotify : Protocol + { + public BuffList Data = new BuffList(); + + public override uint GetProtoType() + { + return 35149u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ClientOnlyBuffNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs.meta new file mode 100644 index 00000000..ef7e710d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ClientOnlyBuffNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f12b03644b1e7a34a823a297e3e31e44 +timeCreated: 1611404836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs new file mode 100644 index 00000000..8ee72b9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcG2C_CloseChooseHeroNtf : Protocol + { + public override uint GetProtoType() + { + return 38670u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + Process_PtcG2C_CloseChooseHeroNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs.meta new file mode 100644 index 00000000..71b4f760 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CloseChooseHeroNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f50a49e9d1965414d8833c906326cadc +timeCreated: 1611404875 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CompleteAchivement.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CompleteAchivement.cs new file mode 100644 index 00000000..c0f4c0c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CompleteAchivement.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_CompleteAchivement : Protocol + { + public AchivementInfo Data = new AchivementInfo(); + + public override uint GetProtoType() + { + return 26346u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_CompleteAchivement.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CompleteAchivement.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CompleteAchivement.cs.meta new file mode 100644 index 00000000..72fb2e00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CompleteAchivement.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77eca2dc8a1cce840b463045ce8726f3 +timeCreated: 1611403957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CorrectPosition.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CorrectPosition.cs new file mode 100644 index 00000000..1e7b8745 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CorrectPosition.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_CorrectPosition : Protocol + { + public Position Data = new Position(); + + public override uint GetProtoType() + { + return 53665u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_CorrectPosition.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CorrectPosition.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CorrectPosition.cs.meta new file mode 100644 index 00000000..27de3055 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CorrectPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0341825801ff35f47be26d8e6de8d49a +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs new file mode 100644 index 00000000..ad41302c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_CountDownNtf : Protocol + { + public CountDownNtf Data = new CountDownNtf(); + + public override uint GetProtoType() + { + return 3259u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_CountDownNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs.meta new file mode 100644 index 00000000..615b3e9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CountDownNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86f4a4ed87e58f4469255796cfc6381e +timeCreated: 1611404056 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs new file mode 100644 index 00000000..dec8ce53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_CoverDesignationNtf : Protocol + { + public CoverDesignationNtf Data = new CoverDesignationNtf(); + + public override uint GetProtoType() + { + return 45821u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_CoverDesignationNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs.meta new file mode 100644 index 00000000..d3f71e15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CoverDesignationNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19362f693c4118d41ac19109e0cdbac7 +timeCreated: 1611403301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CustomBattleLoadingNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CustomBattleLoadingNtf.cs new file mode 100644 index 00000000..58362e12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CustomBattleLoadingNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_CustomBattleLoadingNtf : Protocol + { + public CustomBattleLoadingNtf Data = new CustomBattleLoadingNtf(); + + public override uint GetProtoType() + { + return 34402u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_CustomBattleLoadingNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CustomBattleLoadingNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CustomBattleLoadingNtf.cs.meta new file mode 100644 index 00000000..919e8050 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_CustomBattleLoadingNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97e77fa83846acb4888ca4b0b04f655d +timeCreated: 1611404189 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs new file mode 100644 index 00000000..b4a77037 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_DPSNotify : Protocol + { + public DPSNotify Data = new DPSNotify(); + + public override uint GetProtoType() + { + return 36800u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_DPSNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs.meta new file mode 100644 index 00000000..0c55bbd1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DPSNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ac589fea0d23a84b97ce7f597f60ab5 +timeCreated: 1611403792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs new file mode 100644 index 00000000..3562083f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_DeathNotify : Protocol + { + public DeathInfo Data = new DeathInfo(); + + public override uint GetProtoType() + { + return 2319u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_DeathNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs.meta new file mode 100644 index 00000000..0fa2a255 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DeathNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29e1a260f72bc0640a19f9bd96c553f8 +timeCreated: 1611403478 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DisplayAddItem.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DisplayAddItem.cs new file mode 100644 index 00000000..4affd0e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DisplayAddItem.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_DisplayAddItem : Protocol + { + public DisplayAddItemArg Data = new DisplayAddItemArg(); + + public override uint GetProtoType() + { + return 55159u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_DisplayAddItem.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DisplayAddItem.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DisplayAddItem.cs.meta new file mode 100644 index 00000000..894783c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DisplayAddItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e575b157b0ad004090b71f4d46dbfcb +timeCreated: 1611403607 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs new file mode 100644 index 00000000..dbf69be0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_DoodadItemAddNtf : Protocol + { + public DoodadItemAddNtf Data = new DoodadItemAddNtf(); + + public override uint GetProtoType() + { + return 16613u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_DoodadItemAddNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs.meta new file mode 100644 index 00000000..3f5325a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemAddNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67661d04348a59845827a94e010b6177 +timeCreated: 1611403857 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs new file mode 100644 index 00000000..58d2d4bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_DoodadItemSkillsNtf : Protocol + { + public DoodadItemAllSkill Data = new DoodadItemAllSkill(); + + public override uint GetProtoType() + { + return 45490u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_DoodadItemSkillsNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs.meta new file mode 100644 index 00000000..961b3709 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemSkillsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d28a6b1ab7bce7e46890cb8e5dc55777 +timeCreated: 1611404595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs new file mode 100644 index 00000000..256657a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_DoodadItemUseNtf : Protocol + { + public DoodadItemUseNtf Data = new DoodadItemUseNtf(); + + public override uint GetProtoType() + { + return 13498u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_DoodadItemUseNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs.meta new file mode 100644 index 00000000..4f7946a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_DoodadItemUseNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07ffed020a8e04a4cb00abb59847b9b2 +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs new file mode 100644 index 00000000..155e3b3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_EnemyDorpDoodadNtf : Protocol + { + public EnemyDropDoodadInfo Data = new EnemyDropDoodadInfo(); + + public override uint GetProtoType() + { + return 55996u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_EnemyDorpDoodadNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs.meta new file mode 100644 index 00000000..1dcafd16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnemyDorpDoodadNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4dda1575ae03fef4a9c25aa649eefd16 +timeCreated: 1611403697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneCoolDownNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneCoolDownNotify.cs new file mode 100644 index 00000000..da871c52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneCoolDownNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_EnterSceneCoolDownNotify : Protocol + { + public EnterSceneCoolDownNotify Data = new EnterSceneCoolDownNotify(); + + public override uint GetProtoType() + { + return 38664u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_EnterSceneCoolDownNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneCoolDownNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneCoolDownNotify.cs.meta new file mode 100644 index 00000000..2e6d6e1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneCoolDownNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59f3a1e9e919e7c4396ef12500d7ff27 +timeCreated: 1611403789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneNtf.cs new file mode 100644 index 00000000..77ac517e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_EnterSceneNtf : Protocol + { + public SceneCfg Data = new SceneCfg(); + + public override uint GetProtoType() + { + return 63366u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_EnterSceneNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneNtf.cs.meta new file mode 100644 index 00000000..0c179a51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EnterSceneNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4554a3f2a71344b4486478806e0de006 +timeCreated: 1611403647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EntityTargetChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EntityTargetChangeNtf.cs new file mode 100644 index 00000000..b81c35c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EntityTargetChangeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_EntityTargetChangeNtf : Protocol + { + public EntityTargetData Data = new EntityTargetData(); + + public override uint GetProtoType() + { + return 9303u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_EntityTargetChangeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EntityTargetChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EntityTargetChangeNtf.cs.meta new file mode 100644 index 00000000..44dc8d6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_EntityTargetChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 740543be138f9424abc770235086f884 +timeCreated: 1611403942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExecuteLevelScriptNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExecuteLevelScriptNtf.cs new file mode 100644 index 00000000..29b536fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExecuteLevelScriptNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ExecuteLevelScriptNtf : Protocol + { + public ExecuteLevelScriptNtf Data = new ExecuteLevelScriptNtf(); + + public override uint GetProtoType() + { + return 47978u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ExecuteLevelScriptNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExecuteLevelScriptNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExecuteLevelScriptNtf.cs.meta new file mode 100644 index 00000000..b1a16c61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExecuteLevelScriptNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d06bf8377a4c69a4c8304a01565017ed +timeCreated: 1611404587 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs new file mode 100644 index 00000000..0240d08e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ExpFindBackNtf : Protocol + { + public ExpFindBackData Data = new ExpFindBackData(); + + public override uint GetProtoType() + { + return 4933u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ExpFindBackNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs.meta new file mode 100644 index 00000000..811f30de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ExpFindBackNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08125da24b8c3a54b934b67f042a4014 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs new file mode 100644 index 00000000..87871211 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_FashoinChangedNtf : Protocol + { + public FashionChangedData Data = new FashionChangedData(); + + public override uint GetProtoType() + { + return 12350u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_FashoinChangedNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs.meta new file mode 100644 index 00000000..98c0af2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FashoinChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6af18fa8beae8e24091ca13d14f7e69b +timeCreated: 1611403890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs new file mode 100644 index 00000000..c86201af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_FastMBConfirmNtf : Protocol + { + public FMBArg Data = new FMBArg(); + + public override uint GetProtoType() + { + return 51623u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_FastMBConfirmNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs.meta new file mode 100644 index 00000000..1c304571 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FastMBConfirmNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4613aab4afa39f4695da96e4602dfc5 +timeCreated: 1611404602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FatigueRecoverTimeNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FatigueRecoverTimeNotify.cs new file mode 100644 index 00000000..ab82c7ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FatigueRecoverTimeNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_FatigueRecoverTimeNotify : Protocol + { + public FatigueRecoverTimeInfo Data = new FatigueRecoverTimeInfo(); + + public override uint GetProtoType() + { + return 14296u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_FatigueRecoverTimeNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FatigueRecoverTimeNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FatigueRecoverTimeNotify.cs.meta new file mode 100644 index 00000000..070f4a73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FatigueRecoverTimeNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb40d31b382c8b749bd2b44b7f616d03 +timeCreated: 1611404440 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs new file mode 100644 index 00000000..18937999 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_FetchEnemyDoodadNtf : Protocol + { + public OtherFetchDoodadRes Data = new OtherFetchDoodadRes(); + + public override uint GetProtoType() + { + return 50480u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_FetchEnemyDoodadNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs.meta new file mode 100644 index 00000000..5a6114d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FetchEnemyDoodadNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a050ffb080ad67546a74e89fc55106c1 +timeCreated: 1611404248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs new file mode 100644 index 00000000..5c27ac8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_FightGroupChangeNtf : Protocol + { + public FightGroupChangeNtf Data = new FightGroupChangeNtf(); + + public override uint GetProtoType() + { + return 2142u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_FightGroupChangeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs.meta new file mode 100644 index 00000000..41707b02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FightGroupChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68789a784816ebe478a27cc403df5161 +timeCreated: 1611403882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs new file mode 100644 index 00000000..ae5f9212 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_FirstPassRewardNtf : Protocol + { + public FirstPassRewardNtfData Data = new FirstPassRewardNtfData(); + + public override uint GetProtoType() + { + return 19007u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_FirstPassRewardNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs.meta new file mode 100644 index 00000000..72dd5ad5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FirstPassRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3414e333ac18f5545b0a5f8033bd3bdc +timeCreated: 1611403554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs new file mode 100644 index 00000000..4fde3946 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_FiveDayRewardNTF : Protocol + { + public FiveRewardState Data = new FiveRewardState(); + + public override uint GetProtoType() + { + return 37452u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_FiveDayRewardNTF.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs.meta new file mode 100644 index 00000000..ccb28909 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FiveDayRewardNTF.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cbaa660904fde44b836b1cd1b01b030 +timeCreated: 1611403998 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRainNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRainNtf.cs new file mode 100644 index 00000000..f534ae0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRainNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_FlowerRainNtf : Protocol + { + public ReceiveFlowerData Data = new ReceiveFlowerData(); + + public override uint GetProtoType() + { + return 30604u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_FlowerRainNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRainNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRainNtf.cs.meta new file mode 100644 index 00000000..c2ffa594 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRainNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48487a15e1926404aaa7630138103f70 +timeCreated: 1611403657 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs new file mode 100644 index 00000000..23b6aeab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcG2C_FlowerRankRewardNtf : Protocol + { + public override uint GetProtoType() + { + return 14326u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + Process_PtcG2C_FlowerRankRewardNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs.meta new file mode 100644 index 00000000..d13b5f5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_FlowerRankRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a645c2d61e159249ac47603cb0ef186 +timeCreated: 1611403791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs new file mode 100644 index 00000000..7e53edfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GCFSynG2CNtf : Protocol + { + public GCFG2CSynPara Data = new GCFG2CSynPara(); + + public override uint GetProtoType() + { + return 31469u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GCFSynG2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs.meta new file mode 100644 index 00000000..79e0a587 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFSynG2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd13a9a7f73af0245a1040326bb1f782 +timeCreated: 1611404681 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs new file mode 100644 index 00000000..4f5ca89c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GCFZhanLingNotify : Protocol + { + public GCFZhanLingPara Data = new GCFZhanLingPara(); + + public override uint GetProtoType() + { + return 14402u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GCFZhanLingNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs.meta new file mode 100644 index 00000000..20b35e24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GCFZhanLingNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed0821800f6372649934406da4edd84f +timeCreated: 1611404789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GSErrorNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GSErrorNotify.cs new file mode 100644 index 00000000..a89095c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GSErrorNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GSErrorNotify : Protocol + { + public ErrorInfo Data = new ErrorInfo(); + + public override uint GetProtoType() + { + return 2031u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GSErrorNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GSErrorNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GSErrorNotify.cs.meta new file mode 100644 index 00000000..c064ff2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GSErrorNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ce63d73cc90d1b418db9206dde3b2ba +timeCreated: 1611403349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs new file mode 100644 index 00000000..434ea8cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GardenBanquetNotice : Protocol + { + public GardenBanquetNtf Data = new GardenBanquetNtf(); + + public override uint GetProtoType() + { + return 36929u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GardenBanquetNotice.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs.meta new file mode 100644 index 00000000..005aa7b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc1b0e28d0028334ba51eaee21f18e38 +timeCreated: 1611404549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs new file mode 100644 index 00000000..c8fed17b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GardenBanquetNtf : Protocol + { + public BanquetNtfArg Data = new BanquetNtfArg(); + + public override uint GetProtoType() + { + return 56088u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GardenBanquetNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs.meta new file mode 100644 index 00000000..7a6b3a16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenBanquetNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a2fa6c7780917c468a85a48d8bed7db +timeCreated: 1611403494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenPlantEventNotice.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenPlantEventNotice.cs new file mode 100644 index 00000000..0d5ae786 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenPlantEventNotice.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GardenPlantEventNotice : Protocol + { + public GardenPlantEventNoticeArg Data = new GardenPlantEventNoticeArg(); + + public override uint GetProtoType() + { + return 60686u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GardenPlantEventNotice.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenPlantEventNotice.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenPlantEventNotice.cs.meta new file mode 100644 index 00000000..b7bf6e17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GardenPlantEventNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0788cd9bf8b472944a567debd7924fad +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs new file mode 100644 index 00000000..5c3a9a0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GiftIBBackInfoNtf : Protocol + { + public GiftIBBackInfo Data = new GiftIBBackInfo(); + + public override uint GetProtoType() + { + return 6953u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GiftIBBackInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs.meta new file mode 100644 index 00000000..8feb4484 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GiftIBBackInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2dc930dedf9d2434ca9ae77ee0c5cc46 +timeCreated: 1611403507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs new file mode 100644 index 00000000..7a9c87e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfAllFightEndNtf : Protocol + { + public GmfAllFightEnd Data = new GmfAllFightEnd(); + + public override uint GetProtoType() + { + return 42921u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfAllFightEndNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs.meta new file mode 100644 index 00000000..42b3e1d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfAllFightEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a556bd894c83d674ea1a56270d6b6263 +timeCreated: 1611404285 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs new file mode 100644 index 00000000..4664c8c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfBaseDataNtf : Protocol + { + public GmfRoleDatas Data = new GmfRoleDatas(); + + public override uint GetProtoType() + { + return 4338u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfBaseDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs.meta new file mode 100644 index 00000000..d3e23573 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBaseDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 463bf2d09ef589941b695424d349deca +timeCreated: 1611403649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs new file mode 100644 index 00000000..e64ea550 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfBattleStateNtf : Protocol + { + public GmfBatlleStatePara Data = new GmfBatlleStatePara(); + + public override uint GetProtoType() + { + return 21747u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfBattleStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs.meta new file mode 100644 index 00000000..1ae14af8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfBattleStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 061da478c45002a438912c5cdd26aa10 +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs new file mode 100644 index 00000000..648050ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfGuildCombatNtf : Protocol + { + public GmfGuildCombatPara Data = new GmfGuildCombatPara(); + + public override uint GetProtoType() + { + return 55102u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfGuildCombatNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs.meta new file mode 100644 index 00000000..80cbff65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfGuildCombatNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f632752cea47734d86739526933a7d8 +timeCreated: 1611403516 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs new file mode 100644 index 00000000..e0767158 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfJoinBattleReq : Protocol + { + public GmfJoinBattleArg Data = new GmfJoinBattleArg(); + + public override uint GetProtoType() + { + return 19954u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfJoinBattleReq.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs.meta new file mode 100644 index 00000000..cbb914ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfJoinBattleReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 773d7f236d33d6141b9821755bdddbe8 +timeCreated: 1611403952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs new file mode 100644 index 00000000..9bbbb257 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfKickNty : Protocol + { + public GmfKickRes Data = new GmfKickRes(); + + public override uint GetProtoType() + { + return 21295u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfKickNty.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs.meta new file mode 100644 index 00000000..521e2aac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfKickNty.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65f99b6e58121d149ac868f119097791 +timeCreated: 1611403852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs new file mode 100644 index 00000000..fc8c63f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfOneBattleEndNtf : Protocol + { + public GmfOneBattleEnd Data = new GmfOneBattleEnd(); + + public override uint GetProtoType() + { + return 61740u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfOneBattleEndNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs.meta new file mode 100644 index 00000000..726d48f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfOneBattleEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a3a834d0cee4484da6c71ece060db06 +timeCreated: 1611403595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs new file mode 100644 index 00000000..e6e542e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfWaitFightBegin : Protocol + { + public GmfWaitFightArg Data = new GmfWaitFightArg(); + + public override uint GetProtoType() + { + return 59721u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfWaitFightBegin.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs.meta new file mode 100644 index 00000000..f06fc67d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitFightBegin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8126cfe55f24dde428664a911b1248ad +timeCreated: 1611404036 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs new file mode 100644 index 00000000..3f46e767 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GmfWaitOtherLoad : Protocol + { + public GmfWaitOtherArg Data = new GmfWaitOtherArg(); + + public override uint GetProtoType() + { + return 1133u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GmfWaitOtherLoad.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs.meta new file mode 100644 index 00000000..99c42ac4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GmfWaitOtherLoad.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa9bd9bd62cf93d42997132d21cad25c +timeCreated: 1611404304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs new file mode 100644 index 00000000..5055896f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GprAllFightEndNtf : Protocol + { + public GprAllFightEnd Data = new GprAllFightEnd(); + + public override uint GetProtoType() + { + return 58789u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GprAllFightEndNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs.meta new file mode 100644 index 00000000..6bf8aa36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprAllFightEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb9ef6facf46db645ade72b478273f3e +timeCreated: 1611404546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs new file mode 100644 index 00000000..17a517b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GprOneBattleEndNtf : Protocol + { + public GprOneBattleEnd Data = new GprOneBattleEnd(); + + public override uint GetProtoType() + { + return 39421u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GprOneBattleEndNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs.meta new file mode 100644 index 00000000..57b2516b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GprOneBattleEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd7c6b5fdd7301444a7cd88aa53b2d16 +timeCreated: 1611404555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs new file mode 100644 index 00000000..fd04d057 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GuildBestCardsNtf : Protocol + { + public GuildBestCardsNtf Data = new GuildBestCardsNtf(); + + public override uint GetProtoType() + { + return 44473u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GuildBestCardsNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs.meta new file mode 100644 index 00000000..fcb45e27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBestCardsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 076d5d87af902f2438c6af45ddf6d174 +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs new file mode 100644 index 00000000..8073df83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GuildBossTimeOut : Protocol + { + public GuildBossTimeOut Data = new GuildBossTimeOut(); + + public override uint GetProtoType() + { + return 56816u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GuildBossTimeOut.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs.meta new file mode 100644 index 00000000..4789916a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildBossTimeOut.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e576aa877a552914882015a3c18c1d00 +timeCreated: 1611404743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCampPartyTradeNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCampPartyTradeNotify.cs new file mode 100644 index 00000000..19cc678a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCampPartyTradeNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GuildCampPartyTradeNotify : Protocol + { + public GuildCampPartyTradeNotifyArg Data = new GuildCampPartyTradeNotifyArg(); + + public override uint GetProtoType() + { + return 62988u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GuildCampPartyTradeNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCampPartyTradeNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCampPartyTradeNotify.cs.meta new file mode 100644 index 00000000..f5dc9791 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCampPartyTradeNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9339523a708d79a488b46870a3be4dba +timeCreated: 1611404150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs new file mode 100644 index 00000000..ba63c9ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GuildCheckinBoxNtf : Protocol + { + public GuildCheckinBoxNtf Data = new GuildCheckinBoxNtf(); + + public override uint GetProtoType() + { + return 5114u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GuildCheckinBoxNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs.meta new file mode 100644 index 00000000..b8d5edc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildCheckinBoxNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 50ca02213c72eb64bb9cbd113107dee4 +timeCreated: 1611403704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs new file mode 100644 index 00000000..de49671b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GuildGoblinKillNtf : Protocol + { + public GuildGoblinSceneInfo Data = new GuildGoblinSceneInfo(); + + public override uint GetProtoType() + { + return 9436u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GuildGoblinKillNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs.meta new file mode 100644 index 00000000..704611c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildGoblinKillNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c0308b3dec2dc44d89493ae3196a479 +timeCreated: 1611404208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildNotifyMemberChanged.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildNotifyMemberChanged.cs new file mode 100644 index 00000000..f9fa69df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildNotifyMemberChanged.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GuildNotifyMemberChanged : Protocol + { + public GuildMemberInfo Data = new GuildMemberInfo(); + + public override uint GetProtoType() + { + return 5957u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GuildNotifyMemberChanged.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildNotifyMemberChanged.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildNotifyMemberChanged.cs.meta new file mode 100644 index 00000000..293b38ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildNotifyMemberChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 349daa56800edb64abbc543d1c569df3 +timeCreated: 1611403556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildSettingChangedNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildSettingChangedNotify.cs new file mode 100644 index 00000000..c217ff67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildSettingChangedNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_GuildSettingChangedNotify : Protocol + { + public GuildSettingChanged Data = new GuildSettingChanged(); + + public override uint GetProtoType() + { + return 63721u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_GuildSettingChangedNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildSettingChangedNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildSettingChangedNotify.cs.meta new file mode 100644 index 00000000..16d07b8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_GuildSettingChangedNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9836bba0818309047a25a7cb8a9143c4 +timeCreated: 1611404190 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs new file mode 100644 index 00000000..d9997fc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HallIconSNtf : Protocol + { + public HallIconPara Data = new HallIconPara(); + + public override uint GetProtoType() + { + return 17871u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HallIconSNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs.meta new file mode 100644 index 00000000..28ca2c00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HallIconSNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a3ffec15d8bb05468b9da6dd3f06953 +timeCreated: 1611403309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleAncientPower.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleAncientPower.cs new file mode 100644 index 00000000..d45b293f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleAncientPower.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleAncientPower : Protocol + { + public HeroBattleAncientPowerData Data = new HeroBattleAncientPowerData(); + + public override uint GetProtoType() + { + return 37102u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleAncientPower.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleAncientPower.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleAncientPower.cs.meta new file mode 100644 index 00000000..82db68ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleAncientPower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c74feee5052188848b58d77b0b2e2451 +timeCreated: 1611404530 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs new file mode 100644 index 00000000..84e2c72d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleCanUseHero : Protocol + { + public HeroBattleCanUseHeroData Data = new HeroBattleCanUseHeroData(); + + public override uint GetProtoType() + { + return 20354u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleCanUseHero.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs.meta new file mode 100644 index 00000000..90abb638 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleCanUseHero.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7c5a20b15661e74fafda18d6063af30 +timeCreated: 1611404403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs new file mode 100644 index 00000000..0722804e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleDataNtf : Protocol + { + public HeroBattleData Data = new HeroBattleData(); + + public override uint GetProtoType() + { + return 60769u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs.meta new file mode 100644 index 00000000..f3a56f73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4b6b9037799dd947b1641a7393b97a2 +timeCreated: 1611404739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleInCircleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleInCircleNtf.cs new file mode 100644 index 00000000..2fa2ba14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleInCircleNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleInCircleNtf : Protocol + { + public HeroBattleInCircle Data = new HeroBattleInCircle(); + + public override uint GetProtoType() + { + return 40409u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleInCircleNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleInCircleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleInCircleNtf.cs.meta new file mode 100644 index 00000000..578cf970 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleInCircleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c014532d7116f647bce798020d685b7 +timeCreated: 1611404097 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs new file mode 100644 index 00000000..260f2728 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleOverTime : Protocol + { + public HeroBattleOverTimeData Data = new HeroBattleOverTimeData(); + + public override uint GetProtoType() + { + return 2950u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleOverTime.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs.meta new file mode 100644 index 00000000..85ba533c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleOverTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e384a06481b3bfa4ebb9d9c7d71f0de5 +timeCreated: 1611404733 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs new file mode 100644 index 00000000..1d1bc950 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleSyncNtf : Protocol + { + public HeroBattleSyncData Data = new HeroBattleSyncData(); + + public override uint GetProtoType() + { + return 33024u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleSyncNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs.meta new file mode 100644 index 00000000..09deef79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleSyncNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ff567f55c6e655498d9e5f94fc091bc +timeCreated: 1611403831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs new file mode 100644 index 00000000..0ef5256b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleTeamMsgNtf : Protocol + { + public HeroBattleTeamMsg Data = new HeroBattleTeamMsg(); + + public override uint GetProtoType() + { + return 1414u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleTeamMsgNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs.meta new file mode 100644 index 00000000..7a590f6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamMsgNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fdc12b676c775a5468549b2129b23cb6 +timeCreated: 1611404938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamRoleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamRoleNtf.cs new file mode 100644 index 00000000..4f43fd65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamRoleNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleTeamRoleNtf : Protocol + { + public HeroBattleTeamRoleData Data = new HeroBattleTeamRoleData(); + + public override uint GetProtoType() + { + return 25720u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleTeamRoleNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamRoleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamRoleNtf.cs.meta new file mode 100644 index 00000000..fb650c8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTeamRoleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ade6c651fa312204ba23943f54c5285e +timeCreated: 1611404337 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs new file mode 100644 index 00000000..786beb9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroBattleTipsNtf : Protocol + { + public HeroBattleTipsData Data = new HeroBattleTipsData(); + + public override uint GetProtoType() + { + return 15389u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroBattleTipsNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs.meta new file mode 100644 index 00000000..38d9e9c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroBattleTipsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65ffcb022805567469dffd3d4cb7580e +timeCreated: 1611403852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroKillNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroKillNotify.cs new file mode 100644 index 00000000..3320ddec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroKillNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HeroKillNotify : Protocol + { + public HeroKillNotifyData Data = new HeroKillNotifyData(); + + public override uint GetProtoType() + { + return 58962u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HeroKillNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroKillNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroKillNotify.cs.meta new file mode 100644 index 00000000..66c3a165 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HeroKillNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6fc14d59106db64f8229100c357353e +timeCreated: 1611404400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs new file mode 100644 index 00000000..4eb11ae4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HintNotify : Protocol + { + public HintNotify Data = new HintNotify(); + + public override uint GetProtoType() + { + return 23114u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HintNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs.meta new file mode 100644 index 00000000..11bed839 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HintNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb617a4939a0ef9418086728cadd5419 +timeCreated: 1611404783 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs new file mode 100644 index 00000000..ba17af88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HorseAnimationNtf : Protocol + { + public HorseAnimation Data = new HorseAnimation(); + + public override uint GetProtoType() + { + return 21212u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HorseAnimationNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs.meta new file mode 100644 index 00000000..8af6f465 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAnimationNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 246117699d7575643b7aec1f9b63657a +timeCreated: 1611403460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs new file mode 100644 index 00000000..43e10d4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HorseAwardAllNtf : Protocol + { + public HorseAwardAll Data = new HorseAwardAll(); + + public override uint GetProtoType() + { + return 5990u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HorseAwardAllNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs.meta new file mode 100644 index 00000000..e9240481 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseAwardAllNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d54b3ac7f128df4184ecab8109a1b11 +timeCreated: 1611403901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseCountDownTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseCountDownTimeNtf.cs new file mode 100644 index 00000000..6d1f97af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseCountDownTimeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HorseCountDownTimeNtf : Protocol + { + public HorseCountDownTime Data = new HorseCountDownTime(); + + public override uint GetProtoType() + { + return 65307u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HorseCountDownTimeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseCountDownTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseCountDownTimeNtf.cs.meta new file mode 100644 index 00000000..1488d585 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseCountDownTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac9e83358642c93448a3fc950e2426ad +timeCreated: 1611404331 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs new file mode 100644 index 00000000..b4200f8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcG2C_HorseFailTipsNtf : Protocol + { + public override uint GetProtoType() + { + return 2357u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + Process_PtcG2C_HorseFailTipsNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs.meta new file mode 100644 index 00000000..f8f3cb7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFailTipsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 513854ea7894f2c4aa3f595b00ab231f +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFinalNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFinalNtf.cs new file mode 100644 index 00000000..40c166ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFinalNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HorseFinalNtf : Protocol + { + public HorseFinal Data = new HorseFinal(); + + public override uint GetProtoType() + { + return 57969u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HorseFinalNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFinalNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFinalNtf.cs.meta new file mode 100644 index 00000000..b1212921 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseFinalNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8c81276cc8f7644696a336ba14a5be4 +timeCreated: 1611404535 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs new file mode 100644 index 00000000..c786a583 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HorseRankNtf : Protocol + { + public HorseRank Data = new HorseRank(); + + public override uint GetProtoType() + { + return 22250u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HorseRankNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs.meta new file mode 100644 index 00000000..0da98cb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bede5dea8b5ab5141b1a1f0acb12a913 +timeCreated: 1611404482 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs new file mode 100644 index 00000000..83354114 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_HorseWaitTimeNtf : Protocol + { + public HorseWaitTime Data = new HorseWaitTime(); + + public override uint GetProtoType() + { + return 34138u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_HorseWaitTimeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs.meta new file mode 100644 index 00000000..0a3284b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_HorseWaitTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c40c757c8d2bc9a4cb7c43efda687163 +timeCreated: 1611404499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs new file mode 100644 index 00000000..d683c309 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_IBShopHasBuyNtf : Protocol + { + public IBShopHasBuy Data = new IBShopHasBuy(); + + public override uint GetProtoType() + { + return 12835u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_IBShopHasBuyNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs.meta new file mode 100644 index 00000000..cc275b89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopHasBuyNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 923276322c932db43bab60813bae015b +timeCreated: 1611404146 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs new file mode 100644 index 00000000..dec331f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_IBShopIcon : Protocol + { + public IBShopIcon Data = new IBShopIcon(); + + public override uint GetProtoType() + { + return 56800u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_IBShopIcon.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs.meta new file mode 100644 index 00000000..dd411c84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IBShopIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d774e848ea9023e40af28673b4ebfe73 +timeCreated: 1611404635 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs new file mode 100644 index 00000000..34f767ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_IdipPunishInfoNtf : Protocol + { + public IdipPunishInfo Data = new IdipPunishInfo(); + + public override uint GetProtoType() + { + return 46304u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_IdipPunishInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs.meta new file mode 100644 index 00000000..57bde9bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_IdipPunishInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a41974e8bec00a45be3b91336eefb2a +timeCreated: 1611403163 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_InvFightBefEnterSceneNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_InvFightBefEnterSceneNtf.cs new file mode 100644 index 00000000..4ea8ec6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_InvFightBefEnterSceneNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_InvFightBefEnterSceneNtf : Protocol + { + public InvFightBefESpara Data = new InvFightBefESpara(); + + public override uint GetProtoType() + { + return 7135u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_InvFightBefEnterSceneNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_InvFightBefEnterSceneNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_InvFightBefEnterSceneNtf.cs.meta new file mode 100644 index 00000000..9958cbb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_InvFightBefEnterSceneNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 235c86f872b055b4abd20b5fcdbc45b2 +timeCreated: 1611403452 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemChangedNtf.cs new file mode 100644 index 00000000..b5913c86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemChangedNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ItemChangedNtf : Protocol + { + public ItemChanged Data = new ItemChanged(); + + public override uint GetProtoType() + { + return 20270u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ItemChangedNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemChangedNtf.cs.meta new file mode 100644 index 00000000..54ede552 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5ce15d99daf058468e7af7b6642f40c +timeCreated: 1611404507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs new file mode 100644 index 00000000..2a6e9816 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ItemCircleDrawResult : Protocol + { + public CircleDrawGive Data = new CircleDrawGive(); + + public override uint GetProtoType() + { + return 34574u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ItemCircleDrawResult.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs.meta new file mode 100644 index 00000000..63b90caa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemCircleDrawResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a870f0ae37ed1342bfaddde704b7f32 +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs new file mode 100644 index 00000000..2be01c15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ItemFindBackNtf : Protocol + { + public ItemFindBackData Data = new ItemFindBackData(); + + public override uint GetProtoType() + { + return 28509u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ItemFindBackNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs.meta new file mode 100644 index 00000000..f20fedcc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ItemFindBackNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a765d3c8ddf772d43ac8ca7a4ef05da5 +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs new file mode 100644 index 00000000..7defedaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_JadeSlotInfoNtf : Protocol + { + public JadeSlotInfo Data = new JadeSlotInfo(); + + public override uint GetProtoType() + { + return 51248u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_JadeSlotInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs.meta new file mode 100644 index 00000000..220876e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JadeSlotInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f178b050c86dd745a3496f565c58b83 +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JoinRoomReply.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JoinRoomReply.cs new file mode 100644 index 00000000..82ec5c5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JoinRoomReply.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_JoinRoomReply : Protocol + { + public JoinRoomReply Data = new JoinRoomReply(); + + public override uint GetProtoType() + { + return 23084u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_JoinRoomReply.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JoinRoomReply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JoinRoomReply.cs.meta new file mode 100644 index 00000000..5cfaa642 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_JoinRoomReply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2bd805082bea0b46ab0c0d0d34c341d +timeCreated: 1611404386 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs new file mode 100644 index 00000000..1a5126dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_KickAccountJkydNtf : Protocol + { + public KickAccountJkydMsg Data = new KickAccountJkydMsg(); + + public override uint GetProtoType() + { + return 39286u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_KickAccountJkydNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs.meta new file mode 100644 index 00000000..7ad5de58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KickAccountJkydNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71067a6071dc91044909f4982b0ad728 +timeCreated: 1611403932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs new file mode 100644 index 00000000..5f937d05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_KillEnemyScoreNtf : Protocol + { + public KillEnemyScoreData Data = new KillEnemyScoreData(); + + public override uint GetProtoType() + { + return 50119u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_KillEnemyScoreNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs.meta new file mode 100644 index 00000000..82549d9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_KillEnemyScoreNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f01e80af5445d4a49ae69785080bbc76 +timeCreated: 1611404829 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleBaseDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleBaseDataNtf.cs new file mode 100644 index 00000000..409bff1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleBaseDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LeagueBattleBaseDataNtf : Protocol + { + public LeagueBattleBaseDataNtf Data = new LeagueBattleBaseDataNtf(); + + public override uint GetProtoType() + { + return 19581u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LeagueBattleBaseDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleBaseDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleBaseDataNtf.cs.meta new file mode 100644 index 00000000..c3889b53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleBaseDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d4ab6301eeef4a48a1c34dd801a6245 +timeCreated: 1611403194 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs new file mode 100644 index 00000000..86569866 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LeagueBattleLoadInfoNtf : Protocol + { + public LeagueBattleLoadInfoNtf Data = new LeagueBattleLoadInfoNtf(); + + public override uint GetProtoType() + { + return 16091u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LeagueBattleLoadInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs.meta new file mode 100644 index 00000000..4801ca6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleLoadInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 608a7126b8d74774eb2d9b694f4731ec +timeCreated: 1611403834 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleOneResultNft.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleOneResultNft.cs new file mode 100644 index 00000000..bc2cab71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleOneResultNft.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LeagueBattleOneResultNft : Protocol + { + public LeagueBattleOneResultNtf Data = new LeagueBattleOneResultNtf(); + + public override uint GetProtoType() + { + return 40599u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LeagueBattleOneResultNft.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleOneResultNft.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleOneResultNft.cs.meta new file mode 100644 index 00000000..23674a31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleOneResultNft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 036a93b99a52e8541a6748931a153c41 +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleResultNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleResultNtf.cs new file mode 100644 index 00000000..2ae5c395 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleResultNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LeagueBattleResultNtf : Protocol + { + public LeagueBattleResultNtf Data = new LeagueBattleResultNtf(); + + public override uint GetProtoType() + { + return 29255u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LeagueBattleResultNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleResultNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleResultNtf.cs.meta new file mode 100644 index 00000000..714e95fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleResultNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 870519e56b9415f4fa41c9d4cf1ee296 +timeCreated: 1611404057 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs new file mode 100644 index 00000000..f56be538 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LeagueBattleStateNtf : Protocol + { + public LeagueBattleStateNtf Data = new LeagueBattleStateNtf(); + + public override uint GetProtoType() + { + return 59496u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LeagueBattleStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs.meta new file mode 100644 index 00000000..1b8352a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeagueBattleStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6801849f217b1234e9fb9a50416021be +timeCreated: 1611403881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs new file mode 100644 index 00000000..424ad283 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcG2C_LeaveSceneNtf : Protocol + { + public override uint GetProtoType() + { + return 33831u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + Process_PtcG2C_LeaveSceneNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs.meta new file mode 100644 index 00000000..442b41e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveSceneNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 587cabb583fdb8f409e42b7d7027b080 +timeCreated: 1611403755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs new file mode 100644 index 00000000..c7c6c3b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LeaveTeam : Protocol + { + public ErrorInfo Data = new ErrorInfo(); + + public override uint GetProtoType() + { + return 47730u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LeaveTeam.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs.meta new file mode 100644 index 00000000..609c6091 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LeaveTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54152c15af579224e86e372bcd525a6c +timeCreated: 1611403714 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelChangeNtf.cs new file mode 100644 index 00000000..ab5a5ffc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelChangeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LevelChangeNtf : Protocol + { + public LevelChanged Data = new LevelChanged(); + + public override uint GetProtoType() + { + return 38651u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LevelChangeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelChangeNtf.cs.meta new file mode 100644 index 00000000..77b40e53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f98b42e654c10a04ab771423d4f19054 +timeCreated: 1611404899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs new file mode 100644 index 00000000..4ea0ea22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LevelScriptStateNtf : Protocol + { + public LevelScriptStateData Data = new LevelScriptStateData(); + + public override uint GetProtoType() + { + return 12789u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LevelScriptStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs.meta new file mode 100644 index 00000000..c9058b40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelScriptStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff7867e53e25f314b901103d27d7266a +timeCreated: 1611404947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs new file mode 100644 index 00000000..2e57f1dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LevelSealNtf : Protocol + { + public LevelSealInfo Data = new LevelSealInfo(); + + public override uint GetProtoType() + { + return 40338u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LevelSealNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs.meta new file mode 100644 index 00000000..af792c49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LevelSealNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af3ac682a9f79c6459943d3b9e2712ec +timeCreated: 1611404343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginActivityStatusNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginActivityStatusNtf.cs new file mode 100644 index 00000000..6df8fd95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginActivityStatusNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LoginActivityStatusNtf : Protocol + { + public LoginActivityStatus Data = new LoginActivityStatus(); + + public override uint GetProtoType() + { + return 34113u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LoginActivityStatusNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginActivityStatusNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginActivityStatusNtf.cs.meta new file mode 100644 index 00000000..7337f097 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginActivityStatusNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21015721ec9756848b6a0d88db4ffddc +timeCreated: 1611403410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs new file mode 100644 index 00000000..33470251 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_LoginReward2CNtf : Protocol + { + public LoginRewardRet Data = new LoginRewardRet(); + + public override uint GetProtoType() + { + return 51966u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_LoginReward2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs.meta new file mode 100644 index 00000000..6afc0278 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_LoginReward2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d909423e15a747429f893ae0275a45e +timeCreated: 1611403806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs new file mode 100644 index 00000000..e5752357 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MilitaryrankNtf : Protocol + { + public MilitaryRecord Data = new MilitaryRecord(); + + public override uint GetProtoType() + { + return 64945u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MilitaryrankNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs.meta new file mode 100644 index 00000000..d9112644 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MilitaryrankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 953a5ca6d2b33034b9c9cf8d3111a4b1 +timeCreated: 1611404180 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs new file mode 100644 index 00000000..d71ee543 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MobaAddExpNtf : Protocol + { + public MobaAddExpData Data = new MobaAddExpData(); + + public override uint GetProtoType() + { + return 36674u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MobaAddExpNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs.meta new file mode 100644 index 00000000..79aa73c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaAddExpNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7ad1d5b23660a044839e0c0ae33908f +timeCreated: 1611404531 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs new file mode 100644 index 00000000..3a03f5c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MobaBattleTeamMsgNtf : Protocol + { + public MobaBattleTeamMsg Data = new MobaBattleTeamMsg(); + + public override uint GetProtoType() + { + return 14987u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MobaBattleTeamMsgNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs.meta new file mode 100644 index 00000000..e2ba1e70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamMsgNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59cb20de86c802a42953d79b1c29e389 +timeCreated: 1611403787 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamRoleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamRoleNtf.cs new file mode 100644 index 00000000..f091f078 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamRoleNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MobaBattleTeamRoleNtf : Protocol + { + public MobaBattleTeamRoleData Data = new MobaBattleTeamRoleData(); + + public override uint GetProtoType() + { + return 44930u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MobaBattleTeamRoleNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamRoleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamRoleNtf.cs.meta new file mode 100644 index 00000000..faf6138a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaBattleTeamRoleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 530c56862cde8544ca92bb0b37d4480a +timeCreated: 1611403709 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs new file mode 100644 index 00000000..ab449d41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MobaHintNtf : Protocol + { + public MobaHintNtf Data = new MobaHintNtf(); + + public override uint GetProtoType() + { + return 17027u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MobaHintNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs.meta new file mode 100644 index 00000000..e81d6f09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaHintNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b6422150cb169c4ab52cc7200e1b192 +timeCreated: 1611403891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs new file mode 100644 index 00000000..9e1cead7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MobaMiniMapNtf : Protocol + { + public MobaMiniMapData Data = new MobaMiniMapData(); + + public override uint GetProtoType() + { + return 32069u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MobaMiniMapNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs.meta new file mode 100644 index 00000000..41dc69d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaMiniMapNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 115688c0f71043149a9d88689939a84c +timeCreated: 1611403239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs new file mode 100644 index 00000000..25be2fc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MobaRoleChangeNtf : Protocol + { + public MobaRoleChangeData Data = new MobaRoleChangeData(); + + public override uint GetProtoType() + { + return 12958u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MobaRoleChangeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs.meta new file mode 100644 index 00000000..31f0c425 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaRoleChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ef19b0ccdd69584696f12927ce10315 +timeCreated: 1611403609 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs new file mode 100644 index 00000000..401841c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MobaSignalBroadcast : Protocol + { + public MobaSignalBroadcastData Data = new MobaSignalBroadcastData(); + + public override uint GetProtoType() + { + return 6250u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MobaSignalBroadcast.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs.meta new file mode 100644 index 00000000..b0a21ad4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MobaSignalBroadcast.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4339458246302484c92eedbfbafb3c07 +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MulActivityStateChange.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MulActivityStateChange.cs new file mode 100644 index 00000000..2621074d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MulActivityStateChange.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_MulActivityStateChange : Protocol + { + public MulActivityCha Data = new MulActivityCha(); + + public override uint GetProtoType() + { + return 13448u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_MulActivityStateChange.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MulActivityStateChange.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MulActivityStateChange.cs.meta new file mode 100644 index 00000000..da20a5bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_MulActivityStateChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 249ff427899bf8d48957bf2fb36548c0 +timeCreated: 1611403461 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs new file mode 100644 index 00000000..8176543c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NewGuildBonusNtf : Protocol + { + public NewGuildBonusData Data = new NewGuildBonusData(); + + public override uint GetProtoType() + { + return 33515u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NewGuildBonusNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs.meta new file mode 100644 index 00000000..f79c8ae7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NewGuildBonusNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e27697d1ab77d44d97d564a8e50dd0a +timeCreated: 1611403361 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs new file mode 100644 index 00000000..837c15f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NextDayRewardNtf : Protocol + { + public NextDayRewardNtf Data = new NextDayRewardNtf(); + + public override uint GetProtoType() + { + return 50036u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NextDayRewardNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs.meta new file mode 100644 index 00000000..3761d525 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NextDayRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d685be516a6dd8e47baf9d5bd48ff662 +timeCreated: 1611404632 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeDoingGuildInherit.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeDoingGuildInherit.cs new file mode 100644 index 00000000..ff8cb7dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeDoingGuildInherit.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NoticeDoingGuildInherit : Protocol + { + public NoticeDoingGuildInherit Data = new NoticeDoingGuildInherit(); + + public override uint GetProtoType() + { + return 61639u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NoticeDoingGuildInherit.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeDoingGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeDoingGuildInherit.cs.meta new file mode 100644 index 00000000..05d69e45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeDoingGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df584f48e56b1634183c7fc8d5d0156b +timeCreated: 1611404692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildArenaBegin.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildArenaBegin.cs new file mode 100644 index 00000000..ee0367ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildArenaBegin.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NoticeGuildArenaBegin : Protocol + { + public NoticeGuildArenaBegin Data = new NoticeGuildArenaBegin(); + + public override uint GetProtoType() + { + return 11695u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NoticeGuildArenaBegin.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildArenaBegin.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildArenaBegin.cs.meta new file mode 100644 index 00000000..27bca1ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildArenaBegin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: edff652aa05781b44a6dbb1c770123d2 +timeCreated: 1611404793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs new file mode 100644 index 00000000..5a91a898 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NoticeGuildBossEnd : Protocol + { + public NoticeGuildBossEnd Data = new NoticeGuildBossEnd(); + + public override uint GetProtoType() + { + return 34184u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NoticeGuildBossEnd.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs.meta new file mode 100644 index 00000000..efcda673 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeGuildBossEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e411e7ddacd202a4bb1e38a5e2659fea +timeCreated: 1611404735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeHungryDown.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeHungryDown.cs new file mode 100644 index 00000000..abd045bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeHungryDown.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NoticeHungryDown : Protocol + { + public NoticeHungryDown Data = new NoticeHungryDown(); + + public override uint GetProtoType() + { + return 36895u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NoticeHungryDown.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeHungryDown.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeHungryDown.cs.meta new file mode 100644 index 00000000..f795e093 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NoticeHungryDown.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c6639307ea73864ea1dddd8505d7f38 +timeCreated: 1611404099 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyAccountData.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyAccountData.cs new file mode 100644 index 00000000..f3692f52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyAccountData.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NotifyAccountData : Protocol + { + public LoadAccountData Data = new LoadAccountData(); + + public override uint GetProtoType() + { + return 29137u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NotifyAccountData.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyAccountData.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyAccountData.cs.meta new file mode 100644 index 00000000..c8cb947e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyAccountData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86892ad24a45c324cb9e55f4b06df2a5 +timeCreated: 1611404054 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyClientEnterFight.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyClientEnterFight.cs new file mode 100644 index 00000000..95e13d02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyClientEnterFight.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NotifyClientEnterFight : Protocol + { + public NotifyEnemyEnterFight Data = new NotifyEnemyEnterFight(); + + public override uint GetProtoType() + { + return 65191u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NotifyClientEnterFight.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyClientEnterFight.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyClientEnterFight.cs.meta new file mode 100644 index 00000000..c9cc94d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyClientEnterFight.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00e0d4f804aed834abecae5de49178d9 +timeCreated: 1611402952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs new file mode 100644 index 00000000..47dc1feb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NotifyEnhanceSuit : Protocol + { + public NotifyEnhanceSuit Data = new NotifyEnhanceSuit(); + + public override uint GetProtoType() + { + return 44091u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NotifyEnhanceSuit.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs.meta new file mode 100644 index 00000000..848c0b80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyEnhanceSuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 091a2b521e5b1e240bec2da42dd60cf8 +timeCreated: 1611403149 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyGuildBossAddAttr.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyGuildBossAddAttr.cs new file mode 100644 index 00000000..78511265 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyGuildBossAddAttr.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NotifyGuildBossAddAttr : Protocol + { + public AddAttrCount Data = new AddAttrCount(); + + public override uint GetProtoType() + { + return 42027u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NotifyGuildBossAddAttr.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyGuildBossAddAttr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyGuildBossAddAttr.cs.meta new file mode 100644 index 00000000..16a5f5b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyGuildBossAddAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d55287d0d4c1164198b93dfda6d764e +timeCreated: 1611404104 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs new file mode 100644 index 00000000..98eaf467 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NotifyIdipMessageGs : Protocol + { + public IdipMessage Data = new IdipMessage(); + + public override uint GetProtoType() + { + return 59353u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NotifyIdipMessageGs.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs.meta new file mode 100644 index 00000000..a6565989 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyIdipMessageGs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f422ceb06a9e4004b823997476e21f95 +timeCreated: 1611404851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs new file mode 100644 index 00000000..954056ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcG2C_NotifyRoleEmpty2Watcher : Protocol + { + public override uint GetProtoType() + { + return 1540u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + Process_PtcG2C_NotifyRoleEmpty2Watcher.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs.meta new file mode 100644 index 00000000..c0f1d0c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyRoleEmpty2Watcher.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6b343503b08539438e3509bdacb85a1 +timeCreated: 1611404632 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyStartUpTypeToClient.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyStartUpTypeToClient.cs new file mode 100644 index 00000000..e8592bce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyStartUpTypeToClient.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NotifyStartUpTypeToClient : Protocol + { + public NotifyStartUpTypeToClient Data = new NotifyStartUpTypeToClient(); + + public override uint GetProtoType() + { + return 64412u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NotifyStartUpTypeToClient.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyStartUpTypeToClient.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyStartUpTypeToClient.cs.meta new file mode 100644 index 00000000..60efc163 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyStartUpTypeToClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f3d518991d4f2f419fce56defbb1454 +timeCreated: 1611403700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchData.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchData.cs new file mode 100644 index 00000000..d9d49b03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchData.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NotifyWatchData : Protocol + { + public OneLiveRecordInfo Data = new OneLiveRecordInfo(); + + public override uint GetProtoType() + { + return 16154u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NotifyWatchData.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchData.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchData.cs.meta new file mode 100644 index 00000000..3848c732 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b30dea563ed29f74492d4bd05861cb92 +timeCreated: 1611404387 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchIconNum2Client.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchIconNum2Client.cs new file mode 100644 index 00000000..6f36cd08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchIconNum2Client.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NotifyWatchIconNum2Client : Protocol + { + public IconWatchListNum Data = new IconWatchListNum(); + + public override uint GetProtoType() + { + return 48952u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NotifyWatchIconNum2Client.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchIconNum2Client.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchIconNum2Client.cs.meta new file mode 100644 index 00000000..69595926 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NotifyWatchIconNum2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 792c0ec12c8d13d47b9d791939c464de +timeCreated: 1611403984 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs new file mode 100644 index 00000000..2c8ba1a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_NpcFlNtf : Protocol + { + public NpcFlRes Data = new NpcFlRes(); + + public override uint GetProtoType() + { + return 18961u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_NpcFlNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs.meta new file mode 100644 index 00000000..2dd8bd28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_NpcFlNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80d3dd9e7be444e4e8a0b7d3ad27fa94 +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnTransferWall.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnTransferWall.cs new file mode 100644 index 00000000..27f506bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnTransferWall.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_OnTransferWall : Protocol + { + public NotifyTransferWall Data = new NotifyTransferWall(); + + public override uint GetProtoType() + { + return 37585u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_OnTransferWall.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnTransferWall.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnTransferWall.cs.meta new file mode 100644 index 00000000..c90efb75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnTransferWall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6635f00d8e98e404ab2692ee021f2d98 +timeCreated: 1611403853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs new file mode 100644 index 00000000..de949b1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_OnlineRewardNtf : Protocol + { + public OnlineRewardNtf Data = new OnlineRewardNtf(); + + public override uint GetProtoType() + { + return 1895u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_OnlineRewardNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs.meta new file mode 100644 index 00000000..3170a18c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OnlineRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b8601b1ea66e2946a6e6ddc522b3a9a +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OpenSystemNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OpenSystemNtf.cs new file mode 100644 index 00000000..6535d03d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OpenSystemNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_OpenSystemNtf : Protocol + { + public Systems Data = new Systems(); + + public override uint GetProtoType() + { + return 41168u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_OpenSystemNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OpenSystemNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OpenSystemNtf.cs.meta new file mode 100644 index 00000000..a20ada2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OpenSystemNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c4da42e7f8d46c47b6f237790ed01b1 +timeCreated: 1611404099 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs new file mode 100644 index 00000000..0b126f9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_OutLookChangeNtf : Protocol + { + public OutLookChange Data = new OutLookChange(); + + public override uint GetProtoType() + { + return 28395u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_OutLookChangeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs.meta new file mode 100644 index 00000000..3bdde6f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_OutLookChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 065f98d4288fc6448bbc2c07c618fec7 +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs new file mode 100644 index 00000000..bb5f22e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PayAllInfoNtf : Protocol + { + public PayAllInfo Data = new PayAllInfo(); + + public override uint GetProtoType() + { + return 4976u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PayAllInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs.meta new file mode 100644 index 00000000..862009de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayAllInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46716597e15048e46b01bbcd3ec6bd7b +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs new file mode 100644 index 00000000..efa61643 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PayGiftNtf : Protocol + { + public PayGiftNtfData Data = new PayGiftNtfData(); + + public override uint GetProtoType() + { + return 51433u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PayGiftNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs.meta new file mode 100644 index 00000000..f0b98694 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayGiftNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b87285051d90a874bac62167aa5b6960 +timeCreated: 1611404404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayMemberPrivilegeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayMemberPrivilegeNtf.cs new file mode 100644 index 00000000..48cbf6d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayMemberPrivilegeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PayMemberPrivilegeNtf : Protocol + { + public PayMemberPrivilege Data = new PayMemberPrivilege(); + + public override uint GetProtoType() + { + return 33306u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PayMemberPrivilegeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayMemberPrivilegeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayMemberPrivilegeNtf.cs.meta new file mode 100644 index 00000000..da5e5057 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayMemberPrivilegeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b44817916646f04b825c92ffac9413f +timeCreated: 1611404205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs new file mode 100644 index 00000000..88c92f92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PayScoreNtf : Protocol + { + public PayScoreData Data = new PayScoreData(); + + public override uint GetProtoType() + { + return 61859u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PayScoreNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs.meta new file mode 100644 index 00000000..a7000364 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PayScoreNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c98b13e6561d9a4fa54fb400db04d56 +timeCreated: 1611403997 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs new file mode 100644 index 00000000..af111895 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PetChangeNotfiy : Protocol + { + public PetChangeNotfiy Data = new PetChangeNotfiy(); + + public override uint GetProtoType() + { + return 22264u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PetChangeNotfiy.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs.meta new file mode 100644 index 00000000..3bbe0088 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetChangeNotfiy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1255e038e8c1c14bbd2648a538c731c +timeCreated: 1611404700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs new file mode 100644 index 00000000..ef573942 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PetInviteNtf : Protocol + { + public PetInviteNtf Data = new PetInviteNtf(); + + public override uint GetProtoType() + { + return 19818u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PetInviteNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs.meta new file mode 100644 index 00000000..612006d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PetInviteNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f72e7105e99879448c6fb5bd0e356c2 +timeCreated: 1611403829 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs new file mode 100644 index 00000000..17400736 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PkPrepareNtf : Protocol + { + public PkPrepareNtf Data = new PkPrepareNtf(); + + public override uint GetProtoType() + { + return 41409u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PkPrepareNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs.meta new file mode 100644 index 00000000..62f8db33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkPrepareNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0652736c8a355fd43bc1c1def18b5ffb +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs new file mode 100644 index 00000000..487aa305 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PkRoleInfoNtf : Protocol + { + public PkRoleInfoNtf Data = new PkRoleInfoNtf(); + + public override uint GetProtoType() + { + return 8937u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PkRoleInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs.meta new file mode 100644 index 00000000..9a2ad91a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkRoleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d002f9a53bb43c4d9e803a4250b7a2e +timeCreated: 1611403804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs new file mode 100644 index 00000000..003bb606 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PkTimeoutNtf : Protocol + { + public PkTimeoutNtf Data = new PkTimeoutNtf(); + + public override uint GetProtoType() + { + return 58692u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PkTimeoutNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs.meta new file mode 100644 index 00000000..d766ed5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PkTimeoutNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3ec71f6a6b3ce94b80034e9011b9595 +timeCreated: 1611404390 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlatformShareAwardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlatformShareAwardNtf.cs new file mode 100644 index 00000000..6c90cf6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlatformShareAwardNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PlatformShareAwardNtf : Protocol + { + public PlatformShareAwardPara Data = new PlatformShareAwardPara(); + + public override uint GetProtoType() + { + return 24055u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PlatformShareAwardNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlatformShareAwardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlatformShareAwardNtf.cs.meta new file mode 100644 index 00000000..78f740ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlatformShareAwardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a1fd2314cbdd604082e7ad9903e81b7 +timeCreated: 1611404199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs new file mode 100644 index 00000000..778c9c1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PlayDiceNtf : Protocol + { + public PlayDiceNtfData Data = new PlayDiceNtfData(); + + public override uint GetProtoType() + { + return 50453u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PlayDiceNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs.meta new file mode 100644 index 00000000..67d87613 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PlayDiceNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d2b4153948137f4b802b6db2683a461 +timeCreated: 1611404235 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PositionDebug.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PositionDebug.cs new file mode 100644 index 00000000..1a10a57e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PositionDebug.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PositionDebug : Protocol + { + public PositionCheckList Data = new PositionCheckList(); + + public override uint GetProtoType() + { + return 42493u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PositionDebug.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PositionDebug.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PositionDebug.cs.meta new file mode 100644 index 00000000..28329b7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PositionDebug.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a4c2d761a0723d40bbaa7e733ec3e6e +timeCreated: 1611403309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PushPraiseNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PushPraiseNtf.cs new file mode 100644 index 00000000..e6145849 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PushPraiseNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PushPraiseNtf : Protocol + { + public PushPraise Data = new PushPraise(); + + public override uint GetProtoType() + { + return 5686u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PushPraiseNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PushPraiseNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PushPraiseNtf.cs.meta new file mode 100644 index 00000000..6ac0b681 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PushPraiseNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af2b589bb1eeecc41a1facf6af60cd93 +timeCreated: 1611404342 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs new file mode 100644 index 00000000..b46be110 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PvpBattleBeginNtf : Protocol + { + public PvpBattleBeginData Data = new PvpBattleBeginData(); + + public override uint GetProtoType() + { + return 53763u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PvpBattleBeginNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs.meta new file mode 100644 index 00000000..3c1f0ea1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleBeginNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9ea3f8cc6b6c5f478c5e697f5ec1d2b +timeCreated: 1611404540 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs new file mode 100644 index 00000000..d81a48b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PvpBattleEndNtf : Protocol + { + public PvpBattleEndData Data = new PvpBattleEndData(); + + public override uint GetProtoType() + { + return 46438u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PvpBattleEndNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs.meta new file mode 100644 index 00000000..49a65692 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleEndNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 924ea29394b448d4ab253667923213a2 +timeCreated: 1611404147 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleKill.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleKill.cs new file mode 100644 index 00000000..65b0f128 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleKill.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_PvpBattleKill : Protocol + { + public PvpBattleKill Data = new PvpBattleKill(); + + public override uint GetProtoType() + { + return 61000u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_PvpBattleKill.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleKill.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleKill.cs.meta new file mode 100644 index 00000000..4fe6bd70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_PvpBattleKill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5104681194590a74db929009ec34f887 +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QANotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QANotify.cs new file mode 100644 index 00000000..0b13d771 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QANotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_QANotify : Protocol + { + public QANotify Data = new QANotify(); + + public override uint GetProtoType() + { + return 37337u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_QANotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QANotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QANotify.cs.meta new file mode 100644 index 00000000..c29a9614 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QANotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4cbec2b1ef6e654ab1c50bb261f0513 +timeCreated: 1611404740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs new file mode 100644 index 00000000..466a11fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_QueryRoleStateAck : Protocol + { + public QueryRoleStateAck Data = new QueryRoleStateAck(); + + public override uint GetProtoType() + { + return 53402u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_QueryRoleStateAck.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs.meta new file mode 100644 index 00000000..3db5f38a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_QueryRoleStateAck.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f305d3f2a9fe07a46a368aa5d6f14017 +timeCreated: 1611404846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs new file mode 100644 index 00000000..4df7310a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ReachAchieveNtf : Protocol + { + public ReachAchieveNtf Data = new ReachAchieveNtf(); + + public override uint GetProtoType() + { + return 1479u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ReachAchieveNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs.meta new file mode 100644 index 00000000..aee5b75a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachAchieveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00dfc0715f95d3a478fc22d54cf3e0f1 +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs new file mode 100644 index 00000000..a4658412 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ReachDesignationNtf : Protocol + { + public ReachDesignationNtf Data = new ReachDesignationNtf(); + + public override uint GetProtoType() + { + return 17457u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ReachDesignationNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs.meta new file mode 100644 index 00000000..9789192e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReachDesignationNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8facb7df9350f294996f721f6f3cfacd +timeCreated: 1611404135 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs new file mode 100644 index 00000000..03b31296 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ReceiveFlowerNtf : Protocol + { + public ReceiveFlowerData Data = new ReceiveFlowerData(); + + public override uint GetProtoType() + { + return 43606u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ReceiveFlowerNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs.meta new file mode 100644 index 00000000..9f0948c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReceiveFlowerNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4b1acbdfb4c4774fb21a4f2f5922173 +timeCreated: 1611404739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs new file mode 100644 index 00000000..cabbccfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ReconnectSyncNotify : Protocol + { + public ReconectSync Data = new ReconectSync(); + + public override uint GetProtoType() + { + return 42128u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ReconnectSyncNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs.meta new file mode 100644 index 00000000..bd9111e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReconnectSyncNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbaa74f8d454cc74282d0944ef605181 +timeCreated: 1611404442 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs new file mode 100644 index 00000000..0a047ac0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ResWarBattleDataNtf : Protocol + { + public ResWarAllInfo Data = new ResWarAllInfo(); + + public override uint GetProtoType() + { + return 18834u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ResWarBattleDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs.meta new file mode 100644 index 00000000..478783c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarBattleDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c28ff60e58fad04fbb95ddb5f3b0776 +timeCreated: 1611403343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs new file mode 100644 index 00000000..2e03ea2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ResWarTeamResOne : Protocol + { + public ResWarAllTeamBaseInfo Data = new ResWarAllTeamBaseInfo(); + + public override uint GetProtoType() + { + return 8869u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ResWarTeamResOne.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs.meta new file mode 100644 index 00000000..290bc9c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ResWarTeamResOne.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 217f58845be71d64b901202798998a84 +timeCreated: 1611403414 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveCountdown.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveCountdown.cs new file mode 100644 index 00000000..653b12bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveCountdown.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ReviveCountdown : Protocol + { + public ReviveCountdownInfo Data = new ReviveCountdownInfo(); + + public override uint GetProtoType() + { + return 54507u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ReviveCountdown.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveCountdown.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveCountdown.cs.meta new file mode 100644 index 00000000..dac7be86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveCountdown.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e78afd357cffc1249961ed32076da565 +timeCreated: 1611404749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs new file mode 100644 index 00000000..ba1c8d34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ReviveNotify : Protocol + { + public ReviveInfo Data = new ReviveInfo(); + + public override uint GetProtoType() + { + return 16213u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ReviveNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs.meta new file mode 100644 index 00000000..21cd13cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ReviveNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc6423a138fbfbe4abb3766705892b69 +timeCreated: 1611404935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RewardChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RewardChangedNtf.cs new file mode 100644 index 00000000..7e93ebba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RewardChangedNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_RewardChangedNtf : Protocol + { + public RewardChanged Data = new RewardChanged(); + + public override uint GetProtoType() + { + return 57873u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_RewardChangedNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RewardChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RewardChangedNtf.cs.meta new file mode 100644 index 00000000..d68673a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RewardChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 677655725ceb81943b350f8c21a40611 +timeCreated: 1611403858 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs new file mode 100644 index 00000000..e29dd6af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_RiftSceneInfoNtf : Protocol + { + public RiftSceneInfoNtfData Data = new RiftSceneInfoNtfData(); + + public override uint GetProtoType() + { + return 17975u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_RiftSceneInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs.meta new file mode 100644 index 00000000..71dec491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiftSceneInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13839faafb40ed249808eb62853db00d +timeCreated: 1611403249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs new file mode 100644 index 00000000..3246d49f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_RiskBuyNtf : Protocol + { + public RiskBuyData Data = new RiskBuyData(); + + public override uint GetProtoType() + { + return 61237u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_RiskBuyNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs.meta new file mode 100644 index 00000000..8513bae9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskBuyNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 731e7fe962b11b447ae6452a5419246e +timeCreated: 1611403939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs new file mode 100644 index 00000000..66632b21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_RiskRecoverDiceNtf : Protocol + { + public RiskRecoverDiceData Data = new RiskRecoverDiceData(); + + public override uint GetProtoType() + { + return 45917u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_RiskRecoverDiceNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs.meta new file mode 100644 index 00000000..19ab55ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_RiskRecoverDiceNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 210b2d23a6da80345965f4a95a3d6611 +timeCreated: 1611403411 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs new file mode 100644 index 00000000..2f52e311 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SceneDamageRankNtf : Protocol + { + public SceneDamageRankNtf Data = new SceneDamageRankNtf(); + + public override uint GetProtoType() + { + return 26864u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SceneDamageRankNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs.meta new file mode 100644 index 00000000..7aa460db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneDamageRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24f00fd1491a25246aaa8b858a476400 +timeCreated: 1611403463 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneFinishStateChanged.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneFinishStateChanged.cs new file mode 100644 index 00000000..3cdfa755 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneFinishStateChanged.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SceneFinishStateChanged : Protocol + { + public FinishStateInfo Data = new FinishStateInfo(); + + public override uint GetProtoType() + { + return 60400u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SceneFinishStateChanged.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneFinishStateChanged.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneFinishStateChanged.cs.meta new file mode 100644 index 00000000..afa93f01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneFinishStateChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d78fb7747f739f4687c98277e4ea3df +timeCreated: 1611404236 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs new file mode 100644 index 00000000..26625526 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SceneLeftDoodad : Protocol + { + public SceneLeftDoodad Data = new SceneLeftDoodad(); + + public override uint GetProtoType() + { + return 18028u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SceneLeftDoodad.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs.meta new file mode 100644 index 00000000..e4c55551 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneLeftDoodad.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ab27aba47c186a4fbf619688382e2ea +timeCreated: 1611404093 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs new file mode 100644 index 00000000..5b412a6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ScenePrepareInfoNtf : Protocol + { + public ScenePrepareInfoNtf Data = new ScenePrepareInfoNtf(); + + public override uint GetProtoType() + { + return 65478u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ScenePrepareInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs.meta new file mode 100644 index 00000000..dca6dc5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ScenePrepareInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90118c0457c232e4aa540b85b70a0a9b +timeCreated: 1611404137 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneStateNtf.cs new file mode 100644 index 00000000..df213990 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SceneStateNtf : Protocol + { + public SceneStateNtf Data = new SceneStateNtf(); + + public override uint GetProtoType() + { + return 4376u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SceneStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneStateNtf.cs.meta new file mode 100644 index 00000000..9e537005 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SceneStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99b32c9d8bbc03c48826a308e55a1c25 +timeCreated: 1611404196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SelectRoleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SelectRoleNtf.cs new file mode 100644 index 00000000..0416336b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SelectRoleNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SelectRoleNtf : Protocol + { + public SelectRoleNtfData Data = new SelectRoleNtfData(); + + public override uint GetProtoType() + { + return 19493u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SelectRoleNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SelectRoleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SelectRoleNtf.cs.meta new file mode 100644 index 00000000..8d5558ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SelectRoleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12fee010ee8b8dd439f278e14d7f55e5 +timeCreated: 1611403245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs new file mode 100644 index 00000000..544e59a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ServerOpenDayNtf : Protocol + { + public ServerOpenDay Data = new ServerOpenDay(); + + public override uint GetProtoType() + { + return 23820u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ServerOpenDayNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs.meta new file mode 100644 index 00000000..3cdae5b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ServerOpenDayNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d83de826485cae44d90a7ea58acb03dc +timeCreated: 1611404638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs new file mode 100644 index 00000000..ff363c24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ShareRandomGiftNtf : Protocol + { + public ShareRandomGiftData Data = new ShareRandomGiftData(); + + public override uint GetProtoType() + { + return 18823u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ShareRandomGiftNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs.meta new file mode 100644 index 00000000..276807e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ShareRandomGiftNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c334c1f96ca1fe479d4493506e0a655 +timeCreated: 1611403690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillChangedNtf.cs new file mode 100644 index 00000000..dd862732 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillChangedNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SkillChangedNtf : Protocol + { + public SkillChangedData Data = new SkillChangedData(); + + public override uint GetProtoType() + { + return 38872u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SkillChangedNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillChangedNtf.cs.meta new file mode 100644 index 00000000..df7bea07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c7feda702be0b841aef51a7611cc246 +timeCreated: 1611403898 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs new file mode 100644 index 00000000..bbaa71e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SkillCoolNtf : Protocol + { + public SkillCoolPara Data = new SkillCoolPara(); + + public override uint GetProtoType() + { + return 55142u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SkillCoolNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs.meta new file mode 100644 index 00000000..3bfd6558 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillCoolNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a7d94e648774914da7c2aa9b6877c8b +timeCreated: 1611404200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs new file mode 100644 index 00000000..76033ec6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SkillInitCoolNtf : Protocol + { + public SkillInitCoolPara Data = new SkillInitCoolPara(); + + public override uint GetProtoType() + { + return 4132u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SkillInitCoolNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs.meta new file mode 100644 index 00000000..932ff7af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillInitCoolNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acada275b0f18d54fa4d876f6787be90 +timeCreated: 1611404331 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs new file mode 100644 index 00000000..49f52164 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SkillResult : Protocol + { + public SkillReplyDataUnit Data = new SkillReplyDataUnit(); + + public override uint GetProtoType() + { + return 1054u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SkillResult.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs.meta new file mode 100644 index 00000000..3d61cd2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkillResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7649d0e0976770c438628613fa208b4b +timeCreated: 1611403949 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs new file mode 100644 index 00000000..8575f359 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SkyCityBattleDataNtf : Protocol + { + public SkyCityAllInfo Data = new SkyCityAllInfo(); + + public override uint GetProtoType() + { + return 51753u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SkyCityBattleDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs.meta new file mode 100644 index 00000000..e5f7d939 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityBattleDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 693feb5586e8a8b4ebf36a53f81b20bb +timeCreated: 1611403885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs new file mode 100644 index 00000000..364d2f87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SkyCityEstimateRes : Protocol + { + public SkyCityEstimateInfo Data = new SkyCityEstimateInfo(); + + public override uint GetProtoType() + { + return 36139u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SkyCityEstimateRes.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs.meta new file mode 100644 index 00000000..61af5342 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityEstimateRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 538266387f5313447bd3e2d38c8a8b5b +timeCreated: 1611403711 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs new file mode 100644 index 00000000..9acf4eaf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SkyCityTeamRes : Protocol + { + public SkyCityAllTeamBaseInfo Data = new SkyCityAllTeamBaseInfo(); + + public override uint GetProtoType() + { + return 49519u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SkyCityTeamRes.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs.meta new file mode 100644 index 00000000..de4b91f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTeamRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3373158c6373abe409314ff6f48da528 +timeCreated: 1611403552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs new file mode 100644 index 00000000..fc032236 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SkyCityTimeRes : Protocol + { + public SkyCityTimeInfo Data = new SkyCityTimeInfo(); + + public override uint GetProtoType() + { + return 30724u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SkyCityTimeRes.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs.meta new file mode 100644 index 00000000..bee490ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SkyCityTimeRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2387255f5075d7d48bf7cf2622159764 +timeCreated: 1611403454 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs new file mode 100644 index 00000000..6fe08d12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SpActivityChangeNtf : Protocol + { + public SpActivityChange Data = new SpActivityChange(); + + public override uint GetProtoType() + { + return 24832u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SpActivityChangeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs.meta new file mode 100644 index 00000000..c412729a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43ce3132ef0a52544bd5f7d643e2869a +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityOffsetDayNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityOffsetDayNtf.cs new file mode 100644 index 00000000..069f35ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityOffsetDayNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SpActivityOffsetDayNtf : Protocol + { + public SpActivityOffsetDay Data = new SpActivityOffsetDay(); + + public override uint GetProtoType() + { + return 4059u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SpActivityOffsetDayNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityOffsetDayNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityOffsetDayNtf.cs.meta new file mode 100644 index 00000000..4f765c2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpActivityOffsetDayNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 825b94215c09cca44b5c19ac91de81c6 +timeCreated: 1611404040 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpecialStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpecialStateNtf.cs new file mode 100644 index 00000000..6580376f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpecialStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SpecialStateNtf : Protocol + { + public SpecialStateNtf Data = new SpecialStateNtf(); + + public override uint GetProtoType() + { + return 11703u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SpecialStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpecialStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpecialStateNtf.cs.meta new file mode 100644 index 00000000..97411c9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpecialStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c0297fe79d47e44dbb92f1f59bc5738 +timeCreated: 1611404208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs new file mode 100644 index 00000000..2b6490b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SpriteChangedNtf : Protocol + { + public SpriteChanged Data = new SpriteChanged(); + + public override uint GetProtoType() + { + return 197u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SpriteChangedNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs.meta new file mode 100644 index 00000000..16398956 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SpriteChangedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0425c2786ac67ac4abcfc60179a6db38 +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs new file mode 100644 index 00000000..3340151a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_StartBattleFailedNtf : Protocol + { + public StartBattleFailedRes Data = new StartBattleFailedRes(); + + public override uint GetProtoType() + { + return 54098u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_StartBattleFailedNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs.meta new file mode 100644 index 00000000..a2c7a316 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartBattleFailedNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54efbc834756c564a8402c405730e5f1 +timeCreated: 1611403736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs new file mode 100644 index 00000000..d68234cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_StartRollNtf : Protocol + { + public StartRollNtfData Data = new StartRollNtfData(); + + public override uint GetProtoType() + { + return 41146u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_StartRollNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs.meta new file mode 100644 index 00000000..604fa2ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_StartRollNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c483fc6244f36e545ad8be14b44ec35a +timeCreated: 1611404502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs new file mode 100644 index 00000000..75b897c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SynAtlasAttr : Protocol + { + public AllSynCardAttr Data = new AllSynCardAttr(); + + public override uint GetProtoType() + { + return 1285u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SynAtlasAttr.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs.meta new file mode 100644 index 00000000..16502196 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynAtlasAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 127e4b2ebfdceab40ae9bc9c3e58d99c +timeCreated: 1611403242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaBattleInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaBattleInfo.cs new file mode 100644 index 00000000..75c770c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaBattleInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SynGuildArenaBattleInfo : Protocol + { + public SynGuildArenaBattleInfo Data = new SynGuildArenaBattleInfo(); + + public override uint GetProtoType() + { + return 1906u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SynGuildArenaBattleInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaBattleInfo.cs.meta new file mode 100644 index 00000000..fd3bf0cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9df8d0bed0e6524499ad6e1c44688cab +timeCreated: 1611404239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaFightUnit.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaFightUnit.cs new file mode 100644 index 00000000..b0016d88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaFightUnit.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SynGuildArenaFightUnit : Protocol + { + public SynGuildArenaFightUnit Data = new SynGuildArenaFightUnit(); + + public override uint GetProtoType() + { + return 59912u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SynGuildArenaFightUnit.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaFightUnit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaFightUnit.cs.meta new file mode 100644 index 00000000..fd35a398 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaFightUnit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24d0b12914e71c34a8ab2b029db6470a +timeCreated: 1611403462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaRoleOnline.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaRoleOnline.cs new file mode 100644 index 00000000..e3fe2c06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaRoleOnline.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SynGuildArenaRoleOnline : Protocol + { + public SynGuildArenaRoleOnline Data = new SynGuildArenaRoleOnline(); + + public override uint GetProtoType() + { + return 48528u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SynGuildArenaRoleOnline.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaRoleOnline.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaRoleOnline.cs.meta new file mode 100644 index 00000000..14d05091 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildArenaRoleOnline.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0973deda2f0ed044b34e5a1d9300374 +timeCreated: 1611404249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildInheritNumInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildInheritNumInfo.cs new file mode 100644 index 00000000..e92303e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildInheritNumInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SynGuildInheritNumInfo : Protocol + { + public SynGuildInheritNumInfo Data = new SynGuildInheritNumInfo(); + + public override uint GetProtoType() + { + return 54442u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SynGuildInheritNumInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildInheritNumInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildInheritNumInfo.cs.meta new file mode 100644 index 00000000..ee6441f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SynGuildInheritNumInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7127f52491819614dad675bd5f1bd6a8 +timeCreated: 1611403933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncMoveNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncMoveNotify.cs new file mode 100644 index 00000000..07e07d8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncMoveNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SyncMoveNotify : Protocol + { + public StepMoveData Data = new StepMoveData(); + + public override uint GetProtoType() + { + return 32838u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_SyncMoveNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncMoveNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncMoveNotify.cs.meta new file mode 100644 index 00000000..74ca2a21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncMoveNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96d321af3e847c644acf4e7d965607e0 +timeCreated: 1611404186 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs new file mode 100644 index 00000000..38300284 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs @@ -0,0 +1,35 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_SyncStepNotify : Protocol + { + public StepSyncInfo Data = new StepSyncInfo(); + + public override uint GetProtoType() + { + return 37999u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data.StepFrame = 0u; + this.Data.StepFrameSpecified = false; + this.Data.DataList.Clear(); + Serializer.Merge(stream, this.Data); + } + + public override void Process() + { + Process_PtcG2C_SyncStepNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs.meta new file mode 100644 index 00000000..fa7bf32a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_SyncStepNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 278b09eab0c44274aa0e3e538513d272 +timeCreated: 1611403472 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TajieHelpNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TajieHelpNotify.cs new file mode 100644 index 00000000..53898736 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TajieHelpNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TajieHelpNotify : Protocol + { + public TajieHelpData Data = new TajieHelpData(); + + public override uint GetProtoType() + { + return 36521u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TajieHelpNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TajieHelpNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TajieHelpNotify.cs.meta new file mode 100644 index 00000000..009dded3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TajieHelpNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 111f2a0dbb8d6054faf8cd75ab0dbb1f +timeCreated: 1611403221 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TakeRandomTask.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TakeRandomTask.cs new file mode 100644 index 00000000..22d0944c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TakeRandomTask.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TakeRandomTask : Protocol + { + public randomtask Data = new randomtask(); + + public override uint GetProtoType() + { + return 8442u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TakeRandomTask.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TakeRandomTask.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TakeRandomTask.cs.meta new file mode 100644 index 00000000..9f2eff1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TakeRandomTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3beebefcc4fc69041ac574c1b7e18be1 +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs new file mode 100644 index 00000000..f806a744 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TeamFullDataNtf : Protocol + { + public TeamFullDataNtf Data = new TeamFullDataNtf(); + + public override uint GetProtoType() + { + return 48618u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TeamFullDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs.meta new file mode 100644 index 00000000..95b47586 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamFullDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9cd4e053c32b2464ca7f165885bc54cd +timeCreated: 1611404234 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamInviteNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamInviteNotify.cs new file mode 100644 index 00000000..d7535104 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamInviteNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TeamInviteNotify : Protocol + { + public TeamInvite Data = new TeamInvite(); + + public override uint GetProtoType() + { + return 4060u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TeamInviteNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamInviteNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamInviteNotify.cs.meta new file mode 100644 index 00000000..8e515c2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamInviteNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0b95e12aa943de419cca139b3c99457 +timeCreated: 1611404833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamSelectNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamSelectNotify.cs new file mode 100644 index 00000000..0d0c7b51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamSelectNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TeamSelectNotify : Protocol + { + public TeamSelect Data = new TeamSelect(); + + public override uint GetProtoType() + { + return 25174u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TeamSelectNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamSelectNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamSelectNotify.cs.meta new file mode 100644 index 00000000..83e236a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeamSelectNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46a294447f4715b4fbb90768b1901ab6 +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeleportNotice.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeleportNotice.cs new file mode 100644 index 00000000..9bec04db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeleportNotice.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TeleportNotice : Protocol + { + public TeleportNoticeState Data = new TeleportNoticeState(); + + public override uint GetProtoType() + { + return 27305u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TeleportNotice.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeleportNotice.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeleportNotice.cs.meta new file mode 100644 index 00000000..8cc81dff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TeleportNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2549776fe28613e46a9323b39b88f7c4 +timeCreated: 1611403464 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ThemeActivityChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ThemeActivityChangeNtf.cs new file mode 100644 index 00000000..670b36d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ThemeActivityChangeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_ThemeActivityChangeNtf : Protocol + { + public ThemeActivityChangeData Data = new ThemeActivityChangeData(); + + public override uint GetProtoType() + { + return 25642u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_ThemeActivityChangeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ThemeActivityChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ThemeActivityChangeNtf.cs.meta new file mode 100644 index 00000000..7f14c959 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_ThemeActivityChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: afe9c77c1dafefc4e885c439b6a164a5 +timeCreated: 1611404347 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TitleChangeNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TitleChangeNotify.cs new file mode 100644 index 00000000..a737b645 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TitleChangeNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TitleChangeNotify : Protocol + { + public titleChangeData Data = new titleChangeData(); + + public override uint GetProtoType() + { + return 1040u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TitleChangeNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TitleChangeNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TitleChangeNotify.cs.meta new file mode 100644 index 00000000..62008222 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TitleChangeNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b61c6312cec0d744bb38fbd3361c7d1 +timeCreated: 1611404095 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerFirstPassRewardNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerFirstPassRewardNtf.cs new file mode 100644 index 00000000..a0d82726 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerFirstPassRewardNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TowerFirstPassRewardNtf : Protocol + { + public TowerFirstPassRewardData Data = new TowerFirstPassRewardData(); + + public override uint GetProtoType() + { + return 1039u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TowerFirstPassRewardNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerFirstPassRewardNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerFirstPassRewardNtf.cs.meta new file mode 100644 index 00000000..48513dad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerFirstPassRewardNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 444042a2ccca21341a54c04027305623 +timeCreated: 1611403644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs new file mode 100644 index 00000000..895f9511 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TowerSceneInfoNtf : Protocol + { + public TowerSceneInfoData Data = new TowerSceneInfoData(); + + public override uint GetProtoType() + { + return 14948u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TowerSceneInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs.meta new file mode 100644 index 00000000..013cd0f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TowerSceneInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3366b28062dab024681417ea46d8aedc +timeCreated: 1611403552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs new file mode 100644 index 00000000..1ea38bbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TransNotify : Protocol + { + public TransNotify Data = new TransNotify(); + + public override uint GetProtoType() + { + return 15935u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TransNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs.meta new file mode 100644 index 00000000..850eb39f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ede86b05988aba947973ccc1da2f1d13 +timeCreated: 1611404793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs new file mode 100644 index 00000000..e333f1a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TransSkillNotfiy : Protocol + { + public TransSkillNotfiy Data = new TransSkillNotfiy(); + + public override uint GetProtoType() + { + return 1366u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TransSkillNotfiy.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs.meta new file mode 100644 index 00000000..0445b478 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TransSkillNotfiy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6855aac6bf44074459381e7fc6b0f2b4 +timeCreated: 1611403882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs new file mode 100644 index 00000000..fa4396d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_TssSdkAntiDataNtf : Protocol + { + public TssSdkAntiData Data = new TssSdkAntiData(); + + public override uint GetProtoType() + { + return 33482u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_TssSdkAntiDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs.meta new file mode 100644 index 00000000..8ef9f98f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_TssSdkAntiDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9069b75f92302f24287c347de4a9cf2d +timeCreated: 1611404138 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs new file mode 100644 index 00000000..bce82891 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UnitAppear : Protocol + { + public UnitAppearList Data = new UnitAppearList(); + + public override uint GetProtoType() + { + return 7458u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UnitAppear.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs.meta new file mode 100644 index 00000000..f2038617 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitAppear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f82c3853da15ca4aac2d9474bf972f2 +timeCreated: 1611404245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitDisappear.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitDisappear.cs new file mode 100644 index 00000000..a27f7464 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitDisappear.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UnitDisappear : Protocol + { + public UnitAppearance Data = new UnitAppearance(); + + public override uint GetProtoType() + { + return 26347u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UnitDisappear.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitDisappear.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitDisappear.cs.meta new file mode 100644 index 00000000..d10821d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UnitDisappear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cccc35dd62aa3c447862ac45edd8dc1b +timeCreated: 1611404552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs new file mode 100644 index 00000000..baf7c6ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UpdateBuyGoldAndFatigueInfo : Protocol + { + public BuyGoldFatInfo Data = new BuyGoldFatInfo(); + + public override uint GetProtoType() + { + return 2587u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UpdateBuyGoldAndFatigueInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta new file mode 100644 index 00000000..9fc0c38b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateBuyGoldAndFatigueInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce1d36b3635650e4f95a742600981bc6 +timeCreated: 1611404577 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs new file mode 100644 index 00000000..0c383e62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UpdateDisplayItems : Protocol + { + public UpdateDisplayItems Data = new UpdateDisplayItems(); + + public override uint GetProtoType() + { + return 12217u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UpdateDisplayItems.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs.meta new file mode 100644 index 00000000..73a7e307 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateDisplayItems.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a79fdf41294b9a0448b3918687384f72 +timeCreated: 1611404292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateGuildArenaState.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateGuildArenaState.cs new file mode 100644 index 00000000..8eb98f30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateGuildArenaState.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UpdateGuildArenaState : Protocol + { + public UpdateGuildArenaState Data = new UpdateGuildArenaState(); + + public override uint GetProtoType() + { + return 21909u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UpdateGuildArenaState.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateGuildArenaState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateGuildArenaState.cs.meta new file mode 100644 index 00000000..d9845421 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateGuildArenaState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0c29c7a83e56c14c97ebc6e54b8c856 +timeCreated: 1611404250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdatePayInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdatePayInfo.cs new file mode 100644 index 00000000..3bcc4c61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdatePayInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UpdatePayInfo : Protocol + { + public PayInfo Data = new PayInfo(); + + public override uint GetProtoType() + { + return 22775u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UpdatePayInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdatePayInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdatePayInfo.cs.meta new file mode 100644 index 00000000..345e85c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdatePayInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fba8b5144d7a2ca4cae16367b43d3be1 +timeCreated: 1611404932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs new file mode 100644 index 00000000..77999642 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UpdateStageInfoNtf : Protocol + { + public UpdateStageInfoNtf Data = new UpdateStageInfoNtf(); + + public override uint GetProtoType() + { + return 21189u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UpdateStageInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs.meta new file mode 100644 index 00000000..c6295e81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateStageInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c347c31599e39ef40b4bb69b0fbef154 +timeCreated: 1611404497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs new file mode 100644 index 00000000..b4737b10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UpdateTaskStatus : Protocol + { + public TaskInfo Data = new TaskInfo(); + + public override uint GetProtoType() + { + return 1609u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UpdateTaskStatus.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs.meta new file mode 100644 index 00000000..427b74a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateTaskStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fb9628feafc1d945b706554dd6f1ee6 +timeCreated: 1611403212 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs new file mode 100644 index 00000000..57bdae27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_UpdateVoipRoomMemberNtf : Protocol + { + public UpdateVoipRoomMemberNtf Data = new UpdateVoipRoomMemberNtf(); + + public override uint GetProtoType() + { + return 25546u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_UpdateVoipRoomMemberNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs.meta new file mode 100644 index 00000000..aa0a225f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_UpdateVoipRoomMemberNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 276efef276c354d4db09acd22cada83c +timeCreated: 1611403471 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs new file mode 100644 index 00000000..fbc5a9cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_VsPayReviveNtf : Protocol + { + public VsPayRevivePara Data = new VsPayRevivePara(); + + public override uint GetProtoType() + { + return 8168u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_VsPayReviveNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs.meta new file mode 100644 index 00000000..fe8818d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_VsPayReviveNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b99218ec3050a484fb04509e4d8abbf0 +timeCreated: 1611404411 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WarningRandomNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WarningRandomNtf.cs new file mode 100644 index 00000000..9e4d78bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WarningRandomNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WarningRandomNtf : Protocol + { + public WarningRandomSet Data = new WarningRandomSet(); + + public override uint GetProtoType() + { + return 8594u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WarningRandomNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WarningRandomNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WarningRandomNtf.cs.meta new file mode 100644 index 00000000..a5e2a869 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WarningRandomNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7526f4f4d18f5ed44bd0b64fbe089d62 +timeCreated: 1611403945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs new file mode 100644 index 00000000..93f29844 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WatchBattleInfoNtf : Protocol + { + public WatchBattleData Data = new WatchBattleData(); + + public override uint GetProtoType() + { + return 23415u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WatchBattleInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs.meta new file mode 100644 index 00000000..cb6c1f2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WatchBattleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e13ea8ae50ce24b438c240cff545559a +timeCreated: 1611404701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingCarNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingCarNtf.cs new file mode 100644 index 00000000..84662f8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingCarNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WeddingCarNtf : Protocol + { + public WeddingCarNotify Data = new WeddingCarNotify(); + + public override uint GetProtoType() + { + return 48301u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WeddingCarNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingCarNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingCarNtf.cs.meta new file mode 100644 index 00000000..fae417d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingCarNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ea005298f77bf84ebf0688d330fb144 +timeCreated: 1611403906 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingEventNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingEventNtf.cs new file mode 100644 index 00000000..6979618a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingEventNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WeddingEventNtf : Protocol + { + public WeddingEventNtf Data = new WeddingEventNtf(); + + public override uint GetProtoType() + { + return 51472u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WeddingEventNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingEventNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingEventNtf.cs.meta new file mode 100644 index 00000000..3ef80805 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingEventNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67bbfed75521b7746bdd0bad39f738dc +timeCreated: 1611403879 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs new file mode 100644 index 00000000..5c8abcbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WeddingLoadInfoNtf : Protocol + { + public WeddingLoadInfoNtf Data = new WeddingLoadInfoNtf(); + + public override uint GetProtoType() + { + return 61694u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WeddingLoadInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs.meta new file mode 100644 index 00000000..f81ab37e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingLoadInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66958006dc7843a4ea882a58402f7699 +timeCreated: 1611403854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingStateNtf.cs new file mode 100644 index 00000000..de3c48ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WeddingStateNtf : Protocol + { + public WeddingStateNtf Data = new WeddingStateNtf(); + + public override uint GetProtoType() + { + return 30976u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WeddingStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingStateNtf.cs.meta new file mode 100644 index 00000000..3065df70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeddingStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb5bf13ac20fd8c45ae4bf1ee3d6818c +timeCreated: 1611404545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs new file mode 100644 index 00000000..555874a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WeekEnd4v4RoleDataNtf : Protocol + { + public WeekEnd4v4BattleAllRoleData Data = new WeekEnd4v4BattleAllRoleData(); + + public override uint GetProtoType() + { + return 54598u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WeekEnd4v4RoleDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta new file mode 100644 index 00000000..3ec3065b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WeekEnd4v4RoleDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0cf310d0c2fa790479406473f9e8575f +timeCreated: 1611403176 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs new file mode 100644 index 00000000..3befb8a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WordNotify : Protocol + { + public WordNotify Data = new WordNotify(); + + public override uint GetProtoType() + { + return 34052u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WordNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs.meta new file mode 100644 index 00000000..31a77962 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WordNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5384f06ec839c47499ee9e57f59dc163 +timeCreated: 1611403712 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs new file mode 100644 index 00000000..20c403e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WorldBossAttrNtf : Protocol + { + public WorldBossAttrNtf Data = new WorldBossAttrNtf(); + + public override uint GetProtoType() + { + return 31578u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WorldBossAttrNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs.meta new file mode 100644 index 00000000..8b1e5613 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossAttrNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c08f1c7cc22432c47af7dca3527cf4bd +timeCreated: 1611404486 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs new file mode 100644 index 00000000..e0ea06f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WorldBossGuildAddAttrSyncClientNtf : Protocol + { + public WorldBossGuildAddAttrSyncClient Data = new WorldBossGuildAddAttrSyncClient(); + + public override uint GetProtoType() + { + return 65314u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WorldBossGuildAddAttrSyncClientNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta new file mode 100644 index 00000000..bbacdc6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossGuildAddAttrSyncClientNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecc9f8971d5cfa747b68a935d85a13cb +timeCreated: 1611404789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs new file mode 100644 index 00000000..4dd64c3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WorldBossStateNtf : Protocol + { + public WorldBossStateNtf Data = new WorldBossStateNtf(); + + public override uint GetProtoType() + { + return 5473u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WorldBossStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs.meta new file mode 100644 index 00000000..f916e410 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldBossStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9342d58791fe2e64fa8d57c5c81b77ed +timeCreated: 1611404150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldChannelLeftTimesNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldChannelLeftTimesNtf.cs new file mode 100644 index 00000000..e76506d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldChannelLeftTimesNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WorldChannelLeftTimesNtf : Protocol + { + public WorldChannelLeftTimesNtf Data = new WorldChannelLeftTimesNtf(); + + public override uint GetProtoType() + { + return 37503u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WorldChannelLeftTimesNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldChannelLeftTimesNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldChannelLeftTimesNtf.cs.meta new file mode 100644 index 00000000..17a98d48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldChannelLeftTimesNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d7eb928b02d1732438c114cc18d07c74 +timeCreated: 1611404637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs new file mode 100644 index 00000000..fa55e3e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_WorldLevelNtf2Client : Protocol + { + public WorldLevel Data = new WorldLevel(); + + public override uint GetProtoType() + { + return 63449u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_WorldLevelNtf2Client.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs.meta new file mode 100644 index 00000000..6e9a109d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_WorldLevelNtf2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b62dbfb94509be94cbb54b783f11e7d3 +timeCreated: 1611404397 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs new file mode 100644 index 00000000..516e62cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_fastMBDismissNtf : Protocol + { + public FMDArg Data = new FMDArg(); + + public override uint GetProtoType() + { + return 49087u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_fastMBDismissNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs.meta new file mode 100644 index 00000000..2228b1e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_fastMBDismissNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4683c5f535a41e84a84dcb3457aa435f +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs new file mode 100644 index 00000000..ceaa9710 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_guildcamppartyNotify : Protocol + { + public guildcamppartyNotifyNtf Data = new guildcamppartyNotifyNtf(); + + public override uint GetProtoType() + { + return 23338u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_guildcamppartyNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs.meta new file mode 100644 index 00000000..eb08edb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_guildcamppartyNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7316c51aee2ce9e4493aa97b6163a599 +timeCreated: 1611403939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synGuildInheritExp.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synGuildInheritExp.cs new file mode 100644 index 00000000..b14b07d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synGuildInheritExp.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_synGuildInheritExp : Protocol + { + public synGuildInheritExp Data = new synGuildInheritExp(); + + public override uint GetProtoType() + { + return 15872u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_synGuildInheritExp.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synGuildInheritExp.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synGuildInheritExp.cs.meta new file mode 100644 index 00000000..45760d7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synGuildInheritExp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee8637a34e369c54b9c1e73bf0d00e3c +timeCreated: 1611404798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synguildarenadisplace.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synguildarenadisplace.cs new file mode 100644 index 00000000..f2a141de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synguildarenadisplace.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcG2C_synguildarenadisplace : Protocol + { + public guildarenadisplace Data = new guildarenadisplace(); + + public override uint GetProtoType() + { + return 21037u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcG2C_synguildarenadisplace.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synguildarenadisplace.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synguildarenadisplace.cs.meta new file mode 100644 index 00000000..61ecd13d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcG2C_synguildarenadisplace.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e845d7361a0f41143a52b4cf74d5e0c7 +timeCreated: 1611404752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs new file mode 100644 index 00000000..426c31a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum PtcHeadFlag + { + PTC_TYPE_FLAG, + RPC_TYPE_FLAG, + RPC_TYPE_REPLY = 1, + RPC_TYPE_ISREQUEST_MASK, + RPC_TYPE_REQUEST, + RPC_TYPE_COMPRESS, + RPC_TYPE_RPCNULL = 8 + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs.meta new file mode 100644 index 00000000..627bfe24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcHeadFlag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09497b50cf0a2f54e9a762b842152bed +timeCreated: 1611403153 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs new file mode 100644 index 00000000..255a82f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_AnswerAckNtf : Protocol + { + public AnswerAckNtf Data = new AnswerAckNtf(); + + public override uint GetProtoType() + { + return 60141u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_AnswerAckNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs.meta new file mode 100644 index 00000000..c243558a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_AnswerAckNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18c5c29119b9bc04b8de65da75004349 +timeCreated: 1611403298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs new file mode 100644 index 00000000..f1335af0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_ArenaStarDataNtf : Protocol + { + public ArenaStarPara Data = new ArenaStarPara(); + + public override uint GetProtoType() + { + return 11371u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_ArenaStarDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs.meta new file mode 100644 index 00000000..bc84aeb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ArenaStarDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3504e4a7ad90ed4d97557ec2b247849 +timeCreated: 1611404497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_BlackListNtfNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_BlackListNtfNew.cs new file mode 100644 index 00000000..cb7444d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_BlackListNtfNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_BlackListNtfNew : Protocol + { + public BlackListNtf Data = new BlackListNtf(); + + public override uint GetProtoType() + { + return 1537u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_BlackListNtfNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_BlackListNtfNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_BlackListNtfNew.cs.meta new file mode 100644 index 00000000..2840209a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_BlackListNtfNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a6383483bb54a145b5748665272e606 +timeCreated: 1611403163 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs new file mode 100644 index 00000000..e0e815f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_CheckQueuingNtf : Protocol + { + public CheckQueuingNtf Data = new CheckQueuingNtf(); + + public override uint GetProtoType() + { + return 25553u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_CheckQueuingNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs.meta new file mode 100644 index 00000000..fa8d29b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CheckQueuingNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 785c74d895104ce4789fe12a6555a5fa +timeCreated: 1611403979 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs new file mode 100644 index 00000000..8a31c576 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_CrossGvgRoomStateNtf : Protocol + { + public CrossGvgRoomStateNtf Data = new CrossGvgRoomStateNtf(); + + public override uint GetProtoType() + { + return 43720u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_CrossGvgRoomStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs.meta new file mode 100644 index 00000000..6b0f1c5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgRoomStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 479c1454cab269b418aece0170ab91d4 +timeCreated: 1611403654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs new file mode 100644 index 00000000..cd72915d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_CrossGvgStateNtf : Protocol + { + public CrossGvgStateNtf Data = new CrossGvgStateNtf(); + + public override uint GetProtoType() + { + return 24216u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_CrossGvgStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs.meta new file mode 100644 index 00000000..3fc5b6c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CrossGvgStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c61d5d8cf175e0540bbbf5a2ff38a262 +timeCreated: 1611404508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs new file mode 100644 index 00000000..a7097113 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_CustomBattleGMNotify : Protocol + { + public CustomBattleGMNotify Data = new CustomBattleGMNotify(); + + public override uint GetProtoType() + { + return 65108u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_CustomBattleGMNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs.meta new file mode 100644 index 00000000..fd1e1234 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_CustomBattleGMNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf9c6f4d1ba1e33429f84d3ddf975d8e +timeCreated: 1611404484 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DERankChangNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DERankChangNtf.cs new file mode 100644 index 00000000..e7789b08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DERankChangNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_DERankChangNtf : Protocol + { + public DERankChangePara Data = new DERankChangePara(); + + public override uint GetProtoType() + { + return 11404u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_DERankChangNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DERankChangNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DERankChangNtf.cs.meta new file mode 100644 index 00000000..84e8d360 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DERankChangNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d402f922a51f104ba3a58b6fa8405c1 +timeCreated: 1611404235 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs new file mode 100644 index 00000000..994fb5d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_DailyTaskEventNtf : Protocol + { + public DailyTaskEventNtf Data = new DailyTaskEventNtf(); + + public override uint GetProtoType() + { + return 26376u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_DailyTaskEventNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs.meta new file mode 100644 index 00000000..430ab9ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DailyTaskEventNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: edab391af5ca97349ba32292b3922bc4 +timeCreated: 1611404792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs new file mode 100644 index 00000000..4628c68e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_DragonGuildNameNtf : Protocol + { + public DragonGuildNameNtf Data = new DragonGuildNameNtf(); + + public override uint GetProtoType() + { + return 35553u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_DragonGuildNameNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs.meta new file mode 100644 index 00000000..906d1b23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildNameNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d46dfba8cc3d6d4eb4dedb8084fc0fd +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildSettingChanged.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildSettingChanged.cs new file mode 100644 index 00000000..f3076812 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildSettingChanged.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_DragonGuildSettingChanged : Protocol + { + public DragonGuildSettingChanged Data = new DragonGuildSettingChanged(); + + public override uint GetProtoType() + { + return 42603u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_DragonGuildSettingChanged.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildSettingChanged.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildSettingChanged.cs.meta new file mode 100644 index 00000000..32abadb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_DragonGuildSettingChanged.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e60977e293615104883a974425e9af2d +timeCreated: 1611404744 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs new file mode 100644 index 00000000..71216b1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_FastMBConfirmM2CNtf : Protocol + { + public FMBArg Data = new FMBArg(); + + public override uint GetProtoType() + { + return 58099u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_FastMBConfirmM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs.meta new file mode 100644 index 00000000..e100155d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FastMBConfirmM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbd630e7c44fd314f961832acee88ba6 +timeCreated: 1611404655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs new file mode 100644 index 00000000..0208fe47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_FriendDegreeUpNtfNew : Protocol + { + public FriendDegreeUpNtf Data = new FriendDegreeUpNtf(); + + public override uint GetProtoType() + { + return 36126u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_FriendDegreeUpNtfNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs.meta new file mode 100644 index 00000000..33394d23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendDegreeUpNtfNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbc65c6a355f165439c26dafb32223c4 +timeCreated: 1611404443 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs new file mode 100644 index 00000000..dfc79bba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_FriendOpNtfNew : Protocol + { + public FriendOpNotify Data = new FriendOpNotify(); + + public override uint GetProtoType() + { + return 22609u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_FriendOpNtfNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs.meta new file mode 100644 index 00000000..dd907846 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_FriendOpNtfNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a497baa95451b647b70785cab254871 +timeCreated: 1611403790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs new file mode 100644 index 00000000..6e45eaad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GardenBanquetNtf : Protocol + { + public BanquetNtfArg Data = new BanquetNtfArg(); + + public override uint GetProtoType() + { + return 21287u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GardenBanquetNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs.meta new file mode 100644 index 00000000..dcfcad73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GardenBanquetNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 741a5c0615413e54ab6778de1a6a1fc2 +timeCreated: 1611403942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_Get520FestivalRedPacket.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_Get520FestivalRedPacket.cs new file mode 100644 index 00000000..7dd80ef6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_Get520FestivalRedPacket.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_Get520FestivalRedPacket : Protocol + { + public Get520FestivalRedPacket Data = new Get520FestivalRedPacket(); + + public override uint GetProtoType() + { + return 28202u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_Get520FestivalRedPacket.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_Get520FestivalRedPacket.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_Get520FestivalRedPacket.cs.meta new file mode 100644 index 00000000..b88985dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_Get520FestivalRedPacket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3b8a102b5673504eb6f16fc3cdf3a5d +timeCreated: 1611404498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs new file mode 100644 index 00000000..36d68a56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GiftIBSucessNtf : Protocol + { + public GiftIBBackInfo Data = new GiftIBBackInfo(); + + public override uint GetProtoType() + { + return 29707u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GiftIBSucessNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs.meta new file mode 100644 index 00000000..0eb37596 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GiftIBSucessNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c6d854eb98356a468b7a79a7c0650f7 +timeCreated: 1611403173 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs new file mode 100644 index 00000000..e84daff8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GmfJoinBattleM2CReq : Protocol + { + public GmfJoinBattleArg Data = new GmfJoinBattleArg(); + + public override uint GetProtoType() + { + return 63969u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GmfJoinBattleM2CReq.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs.meta new file mode 100644 index 00000000..188014dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GmfJoinBattleM2CReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9cd344f3a052b5548bfbcaa219bd7e08 +timeCreated: 1611404234 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs new file mode 100644 index 00000000..71da56c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GoalAwardsRedPoint : Protocol + { + public GoalAwardsRedPointNtf Data = new GoalAwardsRedPointNtf(); + + public override uint GetProtoType() + { + return 11570u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GoalAwardsRedPoint.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs.meta new file mode 100644 index 00000000..7d33a712 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GoalAwardsRedPoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16b9b8e8956d9df429a82aaf6d052c5e +timeCreated: 1611403290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatApply.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatApply.cs new file mode 100644 index 00000000..993fc1f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatApply.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GroupChatApply : Protocol + { + public GroupChatApplyNtf Data = new GroupChatApplyNtf(); + + public override uint GetProtoType() + { + return 34424u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GroupChatApply.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatApply.cs.meta new file mode 100644 index 00000000..09edced9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d95903952fc76dc42b87391bc5733144 +timeCreated: 1611404643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatDismiss.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatDismiss.cs new file mode 100644 index 00000000..7f903d77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatDismiss.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GroupChatDismiss : Protocol + { + public GroupChatDismissPtc Data = new GroupChatDismissPtc(); + + public override uint GetProtoType() + { + return 18973u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GroupChatDismiss.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatDismiss.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatDismiss.cs.meta new file mode 100644 index 00000000..2adec4c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatDismiss.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74fb06f031194714396524d9ea1e7b9d +timeCreated: 1611403945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs new file mode 100644 index 00000000..fddfc8fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GroupChatIssueCount : Protocol + { + public GroupChatIssueCountNtf Data = new GroupChatIssueCountNtf(); + + public override uint GetProtoType() + { + return 61968u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GroupChatIssueCount.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs.meta new file mode 100644 index 00000000..b369ec9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatIssueCount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d42f8f683f387524fa8bb41a4078523e +timeCreated: 1611404601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatManager.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatManager.cs new file mode 100644 index 00000000..a9e95380 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatManager.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GroupChatManager : Protocol + { + public GroupChatManagerPtc Data = new GroupChatManagerPtc(); + + public override uint GetProtoType() + { + return 17710u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GroupChatManager.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatManager.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatManager.cs.meta new file mode 100644 index 00000000..8f92ff27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5da876f31495a5c40bb1b2a09b7a16b6 +timeCreated: 1611403807 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatQuit.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatQuit.cs new file mode 100644 index 00000000..43741d7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatQuit.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GroupChatQuit : Protocol + { + public GroupChatQuitPtc Data = new GroupChatQuitPtc(); + + public override uint GetProtoType() + { + return 56654u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GroupChatQuit.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatQuit.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatQuit.cs.meta new file mode 100644 index 00000000..f222e1e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GroupChatQuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73c050c5b67756f4a8c27ae6b8937a9d +timeCreated: 1611403941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildAuctItemTimeFresh.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildAuctItemTimeFresh.cs new file mode 100644 index 00000000..203b87dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildAuctItemTimeFresh.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildAuctItemTimeFresh : Protocol + { + public GuildAuctItemTime Data = new GuildAuctItemTime(); + + public override uint GetProtoType() + { + return 49239u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildAuctItemTimeFresh.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildAuctItemTimeFresh.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildAuctItemTimeFresh.cs.meta new file mode 100644 index 00000000..66c6eeb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildAuctItemTimeFresh.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9b7ef7fa1df5344bae3949db21cd796 +timeCreated: 1611404645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs new file mode 100644 index 00000000..95c01782 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildBestCardsNtfMs : Protocol + { + public GuildBestCardsNtf Data = new GuildBestCardsNtf(); + + public override uint GetProtoType() + { + return 31828u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildBestCardsNtfMs.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs.meta new file mode 100644 index 00000000..9750f3b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBestCardsNtfMs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4b0c3dc15ade3a49be10722f11511bf +timeCreated: 1611404855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs new file mode 100644 index 00000000..62e4f54e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildBonusGetAll : Protocol + { + public GuildBonusGetAllData Data = new GuildBonusGetAllData(); + + public override uint GetProtoType() + { + return 55177u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildBonusGetAll.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs.meta new file mode 100644 index 00000000..278d7910 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBonusGetAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a1ca7ed7f085dd41a5d5badd2bc009f +timeCreated: 1611403494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs new file mode 100644 index 00000000..2ec74e7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildBuffCDParamNtf : Protocol + { + public GuildBuffCDParam Data = new GuildBuffCDParam(); + + public override uint GetProtoType() + { + return 4703u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildBuffCDParamNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs.meta new file mode 100644 index 00000000..f656f22a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffCDParamNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4ca2b472ba943a4fa28d5929b53f923 +timeCreated: 1611404393 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs new file mode 100644 index 00000000..2005931a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildBuffSimpleInfoNtf : Protocol + { + public GuildBuffSimpleAllInfo Data = new GuildBuffSimpleAllInfo(); + + public override uint GetProtoType() + { + return 57161u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildBuffSimpleInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs.meta new file mode 100644 index 00000000..dcc45fa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b26c4d45328b88f4da7f2676981fa5b2 +timeCreated: 1611404385 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleItemNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleItemNtf.cs new file mode 100644 index 00000000..1554dfa1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleItemNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildBuffSimpleItemNtf : Protocol + { + public GuildBuffSimpleItem Data = new GuildBuffSimpleItem(); + + public override uint GetProtoType() + { + return 63964u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildBuffSimpleItemNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleItemNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleItemNtf.cs.meta new file mode 100644 index 00000000..676f98f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildBuffSimpleItemNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5bbe81f5ca4eac14399aa627185839a6 +timeCreated: 1611403800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs new file mode 100644 index 00000000..7c5c602f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildCardMatchNtf : Protocol + { + public GuildCardMatchNtf Data = new GuildCardMatchNtf(); + + public override uint GetProtoType() + { + return 64513u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildCardMatchNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs.meta new file mode 100644 index 00000000..9c51a5b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8dc2b21958339de49b0d3c7972d5650d +timeCreated: 1611404105 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs new file mode 100644 index 00000000..449511e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildCardRankNtf : Protocol + { + public GuildCardRankNtf Data = new GuildCardRankNtf(); + + public override uint GetProtoType() + { + return 63693u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildCardRankNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs.meta new file mode 100644 index 00000000..dd4e9391 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCardRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc16912a4473f774783656a267e21e7d +timeCreated: 1611404677 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs new file mode 100644 index 00000000..713fcf4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildCastFeatsNtf : Protocol + { + public GuildCastFeats Data = new GuildCastFeats(); + + public override uint GetProtoType() + { + return 32885u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildCastFeatsNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs.meta new file mode 100644 index 00000000..ddea3d66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildCastFeatsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6344d2445ee6bc24c82caa28d0d19a4a +timeCreated: 1611403844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs new file mode 100644 index 00000000..fbc8c2aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildSchoolHallUpdatePoint : Protocol + { + public GuildHallUpdatePoint Data = new GuildHallUpdatePoint(); + + public override uint GetProtoType() + { + return 65336u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildSchoolHallUpdatePoint.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs.meta new file mode 100644 index 00000000..d9ac8b94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSchoolHallUpdatePoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc0c7a52dcf742944961afc9737a8d92 +timeCreated: 1611404933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSetingNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSetingNotify.cs new file mode 100644 index 00000000..7f175d67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSetingNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_GuildSetingNotify : Protocol + { + public GuildSettingChanged Data = new GuildSettingChanged(); + + public override uint GetProtoType() + { + return 21944u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_GuildSetingNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSetingNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSetingNotify.cs.meta new file mode 100644 index 00000000..5b5f6680 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_GuildSetingNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d347aa16a976f445a69dcfba78b6890 +timeCreated: 1611404104 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs new file mode 100644 index 00000000..2868ed2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_HallIconMNtf : Protocol + { + public HallIconPara Data = new HallIconPara(); + + public override uint GetProtoType() + { + return 51500u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_HallIconMNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs.meta new file mode 100644 index 00000000..2451cab3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HallIconMNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d968c2b0a05631544b65e8e0e20199d9 +timeCreated: 1611404644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs new file mode 100644 index 00000000..2fe2ada1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_HintNotifyMS : Protocol + { + public HintNotify Data = new HintNotify(); + + public override uint GetProtoType() + { + return 15542u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_HintNotifyMS.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs.meta new file mode 100644 index 00000000..2a845843 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_HintNotifyMS.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd1829b7ad8e9d54ea7bf7d409cb924d +timeCreated: 1611404681 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs new file mode 100644 index 00000000..be53448c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_IBGiftIconNtf : Protocol + { + public IBGiftIcon Data = new IBGiftIcon(); + + public override uint GetProtoType() + { + return 44659u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_IBGiftIconNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs.meta new file mode 100644 index 00000000..318b69b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IBGiftIconNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b09e49cc6d6996b4db3e4871f0151346 +timeCreated: 1611404352 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs new file mode 100644 index 00000000..a4c0b7ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_IdipClearChatNtf : Protocol + { + public IdipClearChatInfo Data = new IdipClearChatInfo(); + + public override uint GetProtoType() + { + return 47934u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_IdipClearChatNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs.meta new file mode 100644 index 00000000..7231e246 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipClearChatNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e94a2f64523944c4d92535b1596d56b8 +timeCreated: 1611404755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs new file mode 100644 index 00000000..8588e1a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_IdipPunishInfoMsNtf : Protocol + { + public IdipPunishInfo Data = new IdipPunishInfo(); + + public override uint GetProtoType() + { + return 8208u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_IdipPunishInfoMsNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs.meta new file mode 100644 index 00000000..a0f6aed2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_IdipPunishInfoMsNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fe3d554724aaa54282ccd94b1c5ef50 +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvFightNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvFightNotify.cs new file mode 100644 index 00000000..7f665817 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvFightNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_InvFightNotify : Protocol + { + public InvFightPara Data = new InvFightPara(); + + public override uint GetProtoType() + { + return 38172u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_InvFightNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvFightNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvFightNotify.cs.meta new file mode 100644 index 00000000..adc2c107 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvFightNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f68f632edfeed1847b5c6675a3fbe951 +timeCreated: 1611404882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs new file mode 100644 index 00000000..eeb4ced6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_InvUnfStateM2CNtf : Protocol + { + public InvUnfState Data = new InvUnfState(); + + public override uint GetProtoType() + { + return 2693u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_InvUnfStateM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs.meta new file mode 100644 index 00000000..448e1dd1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InvUnfStateM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17d6e151b13850d4f96a9a980d965586 +timeCreated: 1611403295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs new file mode 100644 index 00000000..24ec3e5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_InviteRefuseM2CNtf : Protocol + { + public InviteRufuse Data = new InviteRufuse(); + + public override uint GetProtoType() + { + return 33486u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_InviteRefuseM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs.meta new file mode 100644 index 00000000..a44db87b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_InviteRefuseM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1715ae0380f831f45b880396dcf13eec +timeCreated: 1611403291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs new file mode 100644 index 00000000..62402a5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcM2C_KickFMAuchor : Protocol + { + public override uint GetProtoType() + { + return 33806u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + Process_PtcM2C_KickFMAuchor.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs.meta new file mode 100644 index 00000000..13f760da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_KickFMAuchor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7ef3316ae8094d48a6328c7a7a12c11 +timeCreated: 1611404889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomLoginParamNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomLoginParamNtf.cs new file mode 100644 index 00000000..96bcd4f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomLoginParamNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_LargeRoomLoginParamNtf : Protocol + { + public LargeRoomLoginParam Data = new LargeRoomLoginParam(); + + public override uint GetProtoType() + { + return 51856u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_LargeRoomLoginParamNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomLoginParamNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomLoginParamNtf.cs.meta new file mode 100644 index 00000000..4204836f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomLoginParamNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3dbe8beb862f7ca47962037da30fba67 +timeCreated: 1611403605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs new file mode 100644 index 00000000..68739007 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_LargeRoomRoleNtf : Protocol + { + public LargeRoomRoleParam Data = new LargeRoomRoleParam(); + + public override uint GetProtoType() + { + return 36333u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_LargeRoomRoleNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs.meta new file mode 100644 index 00000000..e5e4c000 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LargeRoomRoleNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f30edf725591f4b449d44866ad8718c2 +timeCreated: 1611404846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs new file mode 100644 index 00000000..0345dd46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_LeagueBattleMatchTimeoutNtf : Protocol + { + public LeagueBattleMatchTimeoutNtf Data = new LeagueBattleMatchTimeoutNtf(); + + public override uint GetProtoType() + { + return 31012u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_LeagueBattleMatchTimeoutNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta new file mode 100644 index 00000000..31c0dc7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleMatchTimeoutNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7bd5a812cadbba54ab74045091176b57 +timeCreated: 1611403995 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStartMatchNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStartMatchNtf.cs new file mode 100644 index 00000000..a4f1f148 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStartMatchNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_LeagueBattleStartMatchNtf : Protocol + { + public LeagueBattleStartMatchNtf Data = new LeagueBattleStartMatchNtf(); + + public override uint GetProtoType() + { + return 61870u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_LeagueBattleStartMatchNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStartMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStartMatchNtf.cs.meta new file mode 100644 index 00000000..d74c36d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStartMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 38c108f002d6eb646b757a62bb3c8b46 +timeCreated: 1611403590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStopMatchNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStopMatchNtf.cs new file mode 100644 index 00000000..61548128 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStopMatchNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_LeagueBattleStopMatchNtf : Protocol + { + public LeagueBattleStopMatchNtf Data = new LeagueBattleStopMatchNtf(); + + public override uint GetProtoType() + { + return 53912u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_LeagueBattleStopMatchNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStopMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStopMatchNtf.cs.meta new file mode 100644 index 00000000..69d74922 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeagueBattleStopMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 619ae7753e14f564f9b7662a13cc48ba +timeCreated: 1611403839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs new file mode 100644 index 00000000..37509825 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_LeaveTeamM2CNtf : Protocol + { + public ErrorInfo Data = new ErrorInfo(); + + public override uint GetProtoType() + { + return 23306u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_LeaveTeamM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs.meta new file mode 100644 index 00000000..df232192 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LeaveTeamM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bea80ff6539119042ad241aa183a54df +timeCreated: 1611404480 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs new file mode 100644 index 00000000..26c526e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_LoginDragonGuildInfo : Protocol + { + public MyDragonGuild Data = new MyDragonGuild(); + + public override uint GetProtoType() + { + return 21856u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_LoginDragonGuildInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs.meta new file mode 100644 index 00000000..7037890c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginDragonGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6931e5636fa65ba418469be59861e6cd +timeCreated: 1611403885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginGuildInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginGuildInfo.cs new file mode 100644 index 00000000..fe539d90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginGuildInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_LoginGuildInfo : Protocol + { + public MyGuild Data = new MyGuild(); + + public override uint GetProtoType() + { + return 29049u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_LoginGuildInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginGuildInfo.cs.meta new file mode 100644 index 00000000..b0038618 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_LoginGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71fc045b610943d4ab4c9996457bc66a +timeCreated: 1611403936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs new file mode 100644 index 00000000..a31f19ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MCChatOffLineNotify : Protocol + { + public ChatOfflineNotify Data = new ChatOfflineNotify(); + + public override uint GetProtoType() + { + return 35008u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MCChatOffLineNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs.meta new file mode 100644 index 00000000..78ea89a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MCChatOffLineNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ef4cf2a7d5cee344a9475b66cacfa57 +timeCreated: 1611404027 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSErrorNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSErrorNotify.cs new file mode 100644 index 00000000..6018d12e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSErrorNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MSErrorNotify : Protocol + { + public ErrorInfo Data = new ErrorInfo(); + + public override uint GetProtoType() + { + return 48740u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MSErrorNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSErrorNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSErrorNotify.cs.meta new file mode 100644 index 00000000..02034e02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSErrorNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: caf57a877f7a82c41be09142320737ff +timeCreated: 1611404544 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSEventNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSEventNotify.cs new file mode 100644 index 00000000..59225308 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSEventNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MSEventNotify : Protocol + { + public EventNotify Data = new EventNotify(); + + public override uint GetProtoType() + { + return 1415u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MSEventNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSEventNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSEventNotify.cs.meta new file mode 100644 index 00000000..a13a8498 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSEventNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd4fa0cd4cf9fad46b71a0270a662880 +timeCreated: 1611404554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs new file mode 100644 index 00000000..244bd20e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MSFlowerRainNtf : Protocol + { + public ReceiveFlowerData Data = new ReceiveFlowerData(); + + public override uint GetProtoType() + { + return 11986u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MSFlowerRainNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs.meta new file mode 100644 index 00000000..efa62590 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSFlowerRainNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e4c4fce6251cb149a02685b9c30be0f +timeCreated: 1611403202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs new file mode 100644 index 00000000..12726b04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MSReceiveFlowerNtf : Protocol + { + public ReceiveFlowerData Data = new ReceiveFlowerData(); + + public override uint GetProtoType() + { + return 16969u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MSReceiveFlowerNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs.meta new file mode 100644 index 00000000..e8f5b6ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MSReceiveFlowerNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2aeadb22262a344cb707a0d5e9a5c65 +timeCreated: 1611404494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs new file mode 100644 index 00000000..49075f6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MakePartnerResultNtf : Protocol + { + public MakePartnerResult Data = new MakePartnerResult(); + + public override uint GetProtoType() + { + return 49652u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MakePartnerResultNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs.meta new file mode 100644 index 00000000..93698c43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MakePartnerResultNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 28fa0dce346a9f342a0ab9ca06566955 +timeCreated: 1611403475 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageLevelValueNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageLevelValueNtf.cs new file mode 100644 index 00000000..98b38be1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageLevelValueNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MarriageLevelValueNtf : Protocol + { + public MarriageLevelValueNtfData Data = new MarriageLevelValueNtfData(); + + public override uint GetProtoType() + { + return 3559u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MarriageLevelValueNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageLevelValueNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageLevelValueNtf.cs.meta new file mode 100644 index 00000000..ec2c4c65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageLevelValueNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0ee7d36bce7d914d8b2c7886865c21e +timeCreated: 1611404589 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageNewPrivilegeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageNewPrivilegeNtf.cs new file mode 100644 index 00000000..8a71ada5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageNewPrivilegeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MarriageNewPrivilegeNtf : Protocol + { + public MarriageNewPrivilegeNtfData Data = new MarriageNewPrivilegeNtfData(); + + public override uint GetProtoType() + { + return 50551u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MarriageNewPrivilegeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageNewPrivilegeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageNewPrivilegeNtf.cs.meta new file mode 100644 index 00000000..db044ba3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MarriageNewPrivilegeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: daeda59f40ab2d74a9e9c5022ea6c9b4 +timeCreated: 1611404650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs new file mode 100644 index 00000000..f88e4702 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_MidasExceptionNtf : Protocol + { + public MidasExceptionInfo Data = new MidasExceptionInfo(); + + public override uint GetProtoType() + { + return 22947u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_MidasExceptionNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs.meta new file mode 100644 index 00000000..fa53d65b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_MidasExceptionNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1658598573bcd44ebf698b6539f36dc +timeCreated: 1611404253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs new file mode 100644 index 00000000..2d28d7b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_ModifyGuildNameNtf : Protocol + { + public ModifyArg Data = new ModifyArg(); + + public override uint GetProtoType() + { + return 18518u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_ModifyGuildNameNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs.meta new file mode 100644 index 00000000..02e1672e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ModifyGuildNameNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd1afeab8e73a2f408353bcca52f5f78 +timeCreated: 1611404553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaBeginNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaBeginNew.cs new file mode 100644 index 00000000..76897f4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaBeginNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildArenaBeginNew : Protocol + { + public NoticeGuildArenaBegin Data = new NoticeGuildArenaBegin(); + + public override uint GetProtoType() + { + return 12290u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildArenaBeginNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaBeginNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaBeginNew.cs.meta new file mode 100644 index 00000000..eb1b8c5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaBeginNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41dcffbd63a0bb74fadc6d817a4a1fdd +timeCreated: 1611403637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaNextTime.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaNextTime.cs new file mode 100644 index 00000000..da9fca49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaNextTime.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildArenaNextTime : Protocol + { + public NoticeGuildArenaNextTime Data = new NoticeGuildArenaNextTime(); + + public override uint GetProtoType() + { + return 21612u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildArenaNextTime.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaNextTime.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaNextTime.cs.meta new file mode 100644 index 00000000..beb083c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildArenaNextTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77b348b5ce16e42429942505533bbdee +timeCreated: 1611403955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildLadderStart.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildLadderStart.cs new file mode 100644 index 00000000..0017c577 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildLadderStart.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildLadderStart : Protocol + { + public NoticeGuildLadderStart Data = new NoticeGuildLadderStart(); + + public override uint GetProtoType() + { + return 49782u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildLadderStart.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildLadderStart.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildLadderStart.cs.meta new file mode 100644 index 00000000..6f33f122 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildLadderStart.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 42c9a4921d7f3a1488f799f15a8bfa6a +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBattleWin.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBattleWin.cs new file mode 100644 index 00000000..d5942d06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBattleWin.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildTerrBattleWin : Protocol + { + public NoticeGuildTerrBattleWin Data = new NoticeGuildTerrBattleWin(); + + public override uint GetProtoType() + { + return 61655u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildTerrBattleWin.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBattleWin.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBattleWin.cs.meta new file mode 100644 index 00000000..39d540d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBattleWin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18803b3726f4e0c41858c5a9a70dd75a +timeCreated: 1611403297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBigIcon.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBigIcon.cs new file mode 100644 index 00000000..a7ef1e5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBigIcon.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildTerrBigIcon : Protocol + { + public NoticeGuildTerrBigIcon Data = new NoticeGuildTerrBigIcon(); + + public override uint GetProtoType() + { + return 13723u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildTerrBigIcon.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBigIcon.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBigIcon.cs.meta new file mode 100644 index 00000000..de993c96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrBigIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5467e02d5e630f346ae21c4295d972ed +timeCreated: 1611403734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs new file mode 100644 index 00000000..0bc1ab4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildTerrEnd : Protocol + { + public NoticeGuildTerrEnd Data = new NoticeGuildTerrEnd(); + + public override uint GetProtoType() + { + return 2103u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildTerrEnd.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs.meta new file mode 100644 index 00000000..664ed294 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0eecbbe7b5a28049977d545183696e7 +timeCreated: 1611404699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs new file mode 100644 index 00000000..b27a493c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildTerrWar : Protocol + { + public NoticeGuildTerrWar Data = new NoticeGuildTerrWar(); + + public override uint GetProtoType() + { + return 17274u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildTerrWar.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs.meta new file mode 100644 index 00000000..853efe59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrWar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c33dca497bed844cb14bfae40e34792 +timeCreated: 1611403690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs new file mode 100644 index 00000000..b1e9b5e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildTerrall : Protocol + { + public NoticeGuildTerrall Data = new NoticeGuildTerrall(); + + public override uint GetProtoType() + { + return 7704u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildTerrall.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs.meta new file mode 100644 index 00000000..783ba9d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildTerrall.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f420b77d921633144b2ab0737f26f9e7 +timeCreated: 1611404851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildWageReward.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildWageReward.cs new file mode 100644 index 00000000..9c78cb25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildWageReward.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NoticeGuildWageReward : Protocol + { + public NoticeGuildWageReward Data = new NoticeGuildWageReward(); + + public override uint GetProtoType() + { + return 29986u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NoticeGuildWageReward.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildWageReward.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildWageReward.cs.meta new file mode 100644 index 00000000..6f80c598 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NoticeGuildWageReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f41f1b1a91012c3489dd4cbc98969d86 +timeCreated: 1611404851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs new file mode 100644 index 00000000..b56db2fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NotifyGuildSkillData : Protocol + { + public GuildSkillAllData Data = new GuildSkillAllData(); + + public override uint GetProtoType() + { + return 2458u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NotifyGuildSkillData.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs.meta new file mode 100644 index 00000000..0623ebb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyGuildSkillData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24dbe268f559eab41a37c30d9131b7b8 +timeCreated: 1611403462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs new file mode 100644 index 00000000..46c9a27e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NotifyIdipMessageMs : Protocol + { + public IdipMessage Data = new IdipMessage(); + + public override uint GetProtoType() + { + return 48558u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NotifyIdipMessageMs.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs.meta new file mode 100644 index 00000000..982af851 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyIdipMessageMs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6179b12c01a97094091a0f9a67f528b7 +timeCreated: 1611403838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamCreate.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamCreate.cs new file mode 100644 index 00000000..e01ec581 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamCreate.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NotifyLeagueTeamCreate : Protocol + { + public NotifyLeagueTeamCreate Data = new NotifyLeagueTeamCreate(); + + public override uint GetProtoType() + { + return 22343u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NotifyLeagueTeamCreate.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamCreate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamCreate.cs.meta new file mode 100644 index 00000000..4171a0e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamCreate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1eea3fc2b0a81b849a4c9dc234db57ca +timeCreated: 1611403367 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamDissolve.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamDissolve.cs new file mode 100644 index 00000000..f00eb0ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamDissolve.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NotifyLeagueTeamDissolve : Protocol + { + public NotifyLeagueTeamDissolve Data = new NotifyLeagueTeamDissolve(); + + public override uint GetProtoType() + { + return 11033u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NotifyLeagueTeamDissolve.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamDissolve.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamDissolve.cs.meta new file mode 100644 index 00000000..e5f29895 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyLeagueTeamDissolve.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe59ef08bd675ce4ea5d722142d133ff +timeCreated: 1611404940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs new file mode 100644 index 00000000..96412f0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NotifyMarriageApply : Protocol + { + public NotifyMarriageApplyData Data = new NotifyMarriageApplyData(); + + public override uint GetProtoType() + { + return 42923u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NotifyMarriageApply.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs.meta new file mode 100644 index 00000000..b2cd8893 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa2e14d072d97774c9069daefe399d58 +timeCreated: 1611404902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageDivorceApply.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageDivorceApply.cs new file mode 100644 index 00000000..dc8010d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageDivorceApply.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NotifyMarriageDivorceApply : Protocol + { + public NotifyMarriageDivorceApplyData Data = new NotifyMarriageDivorceApplyData(); + + public override uint GetProtoType() + { + return 32886u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NotifyMarriageDivorceApply.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageDivorceApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageDivorceApply.cs.meta new file mode 100644 index 00000000..154dd6a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMarriageDivorceApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6e4fc2e6d1368c4296a9286eacce06e +timeCreated: 1611404290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMentorApply.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMentorApply.cs new file mode 100644 index 00000000..d94e37a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMentorApply.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NotifyMentorApply : Protocol + { + public NotifyMentorApplyData Data = new NotifyMentorApplyData(); + + public override uint GetProtoType() + { + return 61023u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NotifyMentorApply.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMentorApply.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMentorApply.cs.meta new file mode 100644 index 00000000..faaec613 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifyMentorApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f99289aabf6fb1429780119fca2341f +timeCreated: 1611403517 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs new file mode 100644 index 00000000..c8b56327 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_NotifySkyTeamCreate : Protocol + { + public NotifySkyTeamCreate Data = new NotifySkyTeamCreate(); + + public override uint GetProtoType() + { + return 21688u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_NotifySkyTeamCreate.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs.meta new file mode 100644 index 00000000..2b93206c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_NotifySkyTeamCreate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2473c6e9f592e5d478ce37061a446105 +timeCreated: 1611403460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PayParameterInfoInvalidNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PayParameterInfoInvalidNtf.cs new file mode 100644 index 00000000..c860db48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PayParameterInfoInvalidNtf.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcM2C_PayParameterInfoInvalidNtf : Protocol + { + public override uint GetProtoType() + { + return 64504u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + Process_PtcM2C_PayParameterInfoInvalidNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PayParameterInfoInvalidNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PayParameterInfoInvalidNtf.cs.meta new file mode 100644 index 00000000..74b51f1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PayParameterInfoInvalidNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e36c624662c3814fb55e9b97f9b5864 +timeCreated: 1611404240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs new file mode 100644 index 00000000..e7916035 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_PkTimeoutM2CNtf : Protocol + { + public PkTimeoutNtf Data = new PkTimeoutNtf(); + + public override uint GetProtoType() + { + return 4963u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_PkTimeoutM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs.meta new file mode 100644 index 00000000..dd585a65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PkTimeoutM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6632d8b48f6b1f40bd1a00cee9be835 +timeCreated: 1611404288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PokerTournamentEndReFund.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PokerTournamentEndReFund.cs new file mode 100644 index 00000000..abfc62c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PokerTournamentEndReFund.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_PokerTournamentEndReFund : Protocol + { + public PokerTournamentEndReFundMsg Data = new PokerTournamentEndReFundMsg(); + + public override uint GetProtoType() + { + return 50590u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_PokerTournamentEndReFund.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PokerTournamentEndReFund.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PokerTournamentEndReFund.cs.meta new file mode 100644 index 00000000..9d6f32b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PokerTournamentEndReFund.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39d528379b8badd4ab9f8a7e618ec194 +timeCreated: 1611403593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PushQuestionNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PushQuestionNtf.cs new file mode 100644 index 00000000..68354ea8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PushQuestionNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_PushQuestionNtf : Protocol + { + public PushQuestionNtf Data = new PushQuestionNtf(); + + public override uint GetProtoType() + { + return 45138u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_PushQuestionNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PushQuestionNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PushQuestionNtf.cs.meta new file mode 100644 index 00000000..0e0a6272 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_PushQuestionNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d9a015ac76c07849bad9e0b3ab98932 +timeCreated: 1611403902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs new file mode 100644 index 00000000..9a3c209c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_QAEnterRoomNtf : Protocol + { + public QAEnterRoomNtf Data = new QAEnterRoomNtf(); + + public override uint GetProtoType() + { + return 38488u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_QAEnterRoomNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs.meta new file mode 100644 index 00000000..c49163fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAEnterRoomNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dda223376c7969f43af1bf31e0a79ef7 +timeCreated: 1611404683 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs new file mode 100644 index 00000000..7199fd14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_QAIDNameNtf : Protocol + { + public QAIDNameList Data = new QAIDNameList(); + + public override uint GetProtoType() + { + return 987u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_QAIDNameNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs.meta new file mode 100644 index 00000000..078d0ca1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAIDNameNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2880b02cf58ecf41adc25205a06e483 +timeCreated: 1611404595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs new file mode 100644 index 00000000..3e808ad2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_QAOverNtf : Protocol + { + public QAOverNtf Data = new QAOverNtf(); + + public override uint GetProtoType() + { + return 29361u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_QAOverNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs.meta new file mode 100644 index 00000000..464242e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QAOverNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c333ab8429ee344caadf3d2d11747b8 +timeCreated: 1611403172 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QARoomRankNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QARoomRankNtf.cs new file mode 100644 index 00000000..b951637e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QARoomRankNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_QARoomRankNtf : Protocol + { + public QARoomRankNtf Data = new QARoomRankNtf(); + + public override uint GetProtoType() + { + return 36888u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_QARoomRankNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QARoomRankNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QARoomRankNtf.cs.meta new file mode 100644 index 00000000..effb297a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_QARoomRankNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1edb9b0aafa03e54a972f259c1215fc0 +timeCreated: 1611403366 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs new file mode 100644 index 00000000..4ddcd0ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_ResWarEnemyTimeNtf : Protocol + { + public ResWarEnemyTime Data = new ResWarEnemyTime(); + + public override uint GetProtoType() + { + return 48125u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_ResWarEnemyTimeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs.meta new file mode 100644 index 00000000..91237fd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarEnemyTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1065bf56af0fd346aaf418981d9072f +timeCreated: 1611404590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs new file mode 100644 index 00000000..ed0ccbaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_ResWarGuildBriefNtf : Protocol + { + public ResWarGuildBrief Data = new ResWarGuildBrief(); + + public override uint GetProtoType() + { + return 35338u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_ResWarGuildBriefNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs.meta new file mode 100644 index 00000000..36c80805 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarGuildBriefNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 843c00b40788f214b8bf10263a9d0f42 +timeCreated: 1611404047 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs new file mode 100644 index 00000000..04ca3cf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_ResWarMineDataNtf : Protocol + { + public ResWarMineData Data = new ResWarMineData(); + + public override uint GetProtoType() + { + return 57215u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_ResWarMineDataNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs.meta new file mode 100644 index 00000000..0c0ace53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarMineDataNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c74d85dddfa267e4690ef4d19761db37 +timeCreated: 1611404530 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs new file mode 100644 index 00000000..3f727fa1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_ResWarRankSimpleInfoNtf : Protocol + { + public ResWarRankSimpleInfo Data = new ResWarRankSimpleInfo(); + + public override uint GetProtoType() + { + return 29973u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_ResWarRankSimpleInfoNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs.meta new file mode 100644 index 00000000..a1fa0bb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarRankSimpleInfoNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f76f28fe91aadee438a6cd8fa25f12fc +timeCreated: 1611404888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarStateNtf.cs new file mode 100644 index 00000000..10fdc848 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_ResWarStateNtf : Protocol + { + public ResWarStateInfo Data = new ResWarStateInfo(); + + public override uint GetProtoType() + { + return 18481u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_ResWarStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarStateNtf.cs.meta new file mode 100644 index 00000000..22d8789c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abed229e56cec8e43a8432fd91db5ca5 +timeCreated: 1611404309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs new file mode 100644 index 00000000..422c756c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_ResWarTimeNtf : Protocol + { + public ResWarTime Data = new ResWarTime(); + + public override uint GetProtoType() + { + return 36825u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_ResWarTimeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs.meta new file mode 100644 index 00000000..529e8d77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_ResWarTimeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7082a81a7bfaf404fae57904e5179a0c +timeCreated: 1611403931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleMatchStateM2CNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleMatchStateM2CNotify.cs new file mode 100644 index 00000000..042e219e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleMatchStateM2CNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_RoleMatchStateM2CNotify : Protocol + { + public RoleStateMatch Data = new RoleStateMatch(); + + public override uint GetProtoType() + { + return 11521u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_RoleMatchStateM2CNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleMatchStateM2CNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleMatchStateM2CNotify.cs.meta new file mode 100644 index 00000000..5dc8faff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleMatchStateM2CNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e927be27c60db734fb086f2fc1be1d76 +timeCreated: 1611404755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs new file mode 100644 index 00000000..b3116462 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_RoleStateNtfNew : Protocol + { + public RoleStateNtf Data = new RoleStateNtf(); + + public override uint GetProtoType() + { + return 62463u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_RoleStateNtfNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs.meta new file mode 100644 index 00000000..510d6188 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_RoleStateNtfNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4822bae100c0a0b47ba4b1bcb9334784 +timeCreated: 1611403657 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs new file mode 100644 index 00000000..60e93b25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SendGuildBonusNtf : Protocol + { + public SendGuildBonusNtfData Data = new SendGuildBonusNtfData(); + + public override uint GetProtoType() + { + return 36841u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SendGuildBonusNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs.meta new file mode 100644 index 00000000..278e55f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildBonusNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a9e06d08c530544eb5e939bf4680f70 +timeCreated: 1611404201 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs new file mode 100644 index 00000000..cfda3073 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SendGuildSkillInfo : Protocol + { + public GuildSkillAllData Data = new GuildSkillAllData(); + + public override uint GetProtoType() + { + return 55907u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SendGuildSkillInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs.meta new file mode 100644 index 00000000..94ac875e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SendGuildSkillInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79a85a889aec75e4fb1828f687255e92 +timeCreated: 1611403986 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs new file mode 100644 index 00000000..9f9f9678 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SkyCityFinalRes : Protocol + { + public SkyCityFinalBaseInfo Data = new SkyCityFinalBaseInfo(); + + public override uint GetProtoType() + { + return 30112u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SkyCityFinalRes.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs.meta new file mode 100644 index 00000000..dba76a5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCityFinalRes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c1c4c80052f45b45b09773a8680a93d +timeCreated: 1611403894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs new file mode 100644 index 00000000..95ec1c58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SkyCraftEliRoomNtf : Protocol + { + public SkyCraftEliRoomNtf Data = new SkyCraftEliRoomNtf(); + + public override uint GetProtoType() + { + return 6761u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SkyCraftEliRoomNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs.meta new file mode 100644 index 00000000..4cabb383 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftEliRoomNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b46d07ec649f1a45a68fddfb42e753d +timeCreated: 1611404095 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs new file mode 100644 index 00000000..0fe0f758 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SkyCraftMatchNtf : Protocol + { + public SkyCraftMatchNtf Data = new SkyCraftMatchNtf(); + + public override uint GetProtoType() + { + return 4938u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SkyCraftMatchNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs.meta new file mode 100644 index 00000000..ceeeee8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SkyCraftMatchNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f984f26bcf2e8940a3cc4437718470e +timeCreated: 1611404246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs new file mode 100644 index 00000000..4f2001ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SpriteStateChangeNtf : Protocol + { + public SpriteState Data = new SpriteState(); + + public override uint GetProtoType() + { + return 38584u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SpriteStateChangeNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs.meta new file mode 100644 index 00000000..bfddfe48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SpriteStateChangeNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af6cfda0042be3146b1c9853cd495cbf +timeCreated: 1611404344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_StartBattleFailedM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_StartBattleFailedM2CNtf.cs new file mode 100644 index 00000000..0370da06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_StartBattleFailedM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_StartBattleFailedM2CNtf : Protocol + { + public StartBattleFailedRes Data = new StartBattleFailedRes(); + + public override uint GetProtoType() + { + return 20444u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_StartBattleFailedM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_StartBattleFailedM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_StartBattleFailedM2CNtf.cs.meta new file mode 100644 index 00000000..ef52dc62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_StartBattleFailedM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2727f2947b9c3c643bf6b2a9bae754cc +timeCreated: 1611403470 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs new file mode 100644 index 00000000..49bf6859 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SynGuilIntegralState : Protocol + { + public SynGuilIntegralState Data = new SynGuilIntegralState(); + + public override uint GetProtoType() + { + return 28075u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SynGuilIntegralState.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs.meta new file mode 100644 index 00000000..29a67b17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuilIntegralState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 296716cae718f31429ca4f556de912e4 +timeCreated: 1611403476 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs new file mode 100644 index 00000000..865c0df1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SynGuildArenaBattleInfoNew : Protocol + { + public SynGuildArenaBattleInfo Data = new SynGuildArenaBattleInfo(); + + public override uint GetProtoType() + { + return 3680u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SynGuildArenaBattleInfoNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs.meta new file mode 100644 index 00000000..0719d33d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaBattleInfoNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9dd8c6921b45ba9418035e5f37fcaa54 +timeCreated: 1611404238 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaFightUnitNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaFightUnitNew.cs new file mode 100644 index 00000000..7c44326d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaFightUnitNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SynGuildArenaFightUnitNew : Protocol + { + public SynGuildArenaFightUnit Data = new SynGuildArenaFightUnit(); + + public override uint GetProtoType() + { + return 34513u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SynGuildArenaFightUnitNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaFightUnitNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaFightUnitNew.cs.meta new file mode 100644 index 00000000..09cf5b62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaFightUnitNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9943737e1ceefdd469e23ddead06f942 +timeCreated: 1611404195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs new file mode 100644 index 00000000..370577f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SynGuildArenaRoleOnlineNew : Protocol + { + public SynGuildArenaRoleOnline Data = new SynGuildArenaRoleOnline(); + + public override uint GetProtoType() + { + return 26598u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SynGuildArenaRoleOnlineNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta new file mode 100644 index 00000000..71e0cd83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildArenaRoleOnlineNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60460a4059b0bc949b9ab0856fb92546 +timeCreated: 1611403833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildIntegralState.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildIntegralState.cs new file mode 100644 index 00000000..b20e364c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildIntegralState.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_SynGuildIntegralState : Protocol + { + public SynGuildIntegralState Data = new SynGuildIntegralState(); + + public override uint GetProtoType() + { + return 4104u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_SynGuildIntegralState.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildIntegralState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildIntegralState.cs.meta new file mode 100644 index 00000000..37978a2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_SynGuildIntegralState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a16fa3df289e66143b8a4186c250ebe1 +timeCreated: 1611404253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs new file mode 100644 index 00000000..b734f476 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_TarjaBriefNtf : Protocol + { + public TarjaBrief Data = new TarjaBrief(); + + public override uint GetProtoType() + { + return 35068u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_TarjaBriefNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs.meta new file mode 100644 index 00000000..0b953211 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TarjaBriefNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 307c753ca667e5e41a575c43b1124b92 +timeCreated: 1611403521 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs new file mode 100644 index 00000000..1cf7b965 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_TaskRefreshNtf : Protocol + { + public TaskRefreshNtf Data = new TaskRefreshNtf(); + + public override uint GetProtoType() + { + return 40464u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_TaskRefreshNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs.meta new file mode 100644 index 00000000..0a3eabc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TaskRefreshNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1542031bf3d91b48bedc67b42d0f232 +timeCreated: 1611404591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs new file mode 100644 index 00000000..3075998d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_TeamChangeM2CNtf : Protocol + { + public TeamChanged Data = new TeamChanged(); + + public override uint GetProtoType() + { + return 53586u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_TeamChangeM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs.meta new file mode 100644 index 00000000..ccd88f9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamChangeM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee0a1182a8881c9439868830b2012f28 +timeCreated: 1611404794 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs new file mode 100644 index 00000000..cadbfbd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_TeamFullDataM2CNtf : Protocol + { + public TeamFullDataNtf Data = new TeamFullDataNtf(); + + public override uint GetProtoType() + { + return 39119u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_TeamFullDataM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs.meta new file mode 100644 index 00000000..8ee3f4ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamFullDataM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35a2ef6126270eb4491e019c37166820 +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs new file mode 100644 index 00000000..600f33e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_TeamInviteM2CNotify : Protocol + { + public TeamInvite Data = new TeamInvite(); + + public override uint GetProtoType() + { + return 1221u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_TeamInviteM2CNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs.meta new file mode 100644 index 00000000..196c74a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamInviteM2CNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d99d12eab030b24a9ecb1eed320c027 +timeCreated: 1611403807 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamRequestPlatFreind2Client.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamRequestPlatFreind2Client.cs new file mode 100644 index 00000000..3b5b71c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamRequestPlatFreind2Client.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_TeamRequestPlatFreind2Client : Protocol + { + public TeamRequestPlatFreind2ClientData Data = new TeamRequestPlatFreind2ClientData(); + + public override uint GetProtoType() + { + return 37841u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_TeamRequestPlatFreind2Client.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamRequestPlatFreind2Client.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamRequestPlatFreind2Client.cs.meta new file mode 100644 index 00000000..b11bf952 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_TeamRequestPlatFreind2Client.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b12d57748aa1ff41b6ab1388a762f14 +timeCreated: 1611404094 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs new file mode 100644 index 00000000..f1b66240 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_UpdateLeagueBattleSeasonInfo : Protocol + { + public UpdateLeagueBattleSeasonInfo Data = new UpdateLeagueBattleSeasonInfo(); + + public override uint GetProtoType() + { + return 42828u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_UpdateLeagueBattleSeasonInfo.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta new file mode 100644 index 00000000..682d7777 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueBattleSeasonInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe8621ff0fb62a745a7d36dae1e125b9 +timeCreated: 1611404941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs new file mode 100644 index 00000000..c611af14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_UpdateLeagueEleRoomStateNtf : Protocol + { + public UpdateLeagueEleRoomStateNtf Data = new UpdateLeagueEleRoomStateNtf(); + + public override uint GetProtoType() + { + return 15800u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_UpdateLeagueEleRoomStateNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta new file mode 100644 index 00000000..2d04524e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueEleRoomStateNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6356c2b64c7d2f94e966edf18f14c5a9 +timeCreated: 1611403844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueTeamState.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueTeamState.cs new file mode 100644 index 00000000..b41de35a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueTeamState.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_UpdateLeagueTeamState : Protocol + { + public UpdateLeagueTeamState Data = new UpdateLeagueTeamState(); + + public override uint GetProtoType() + { + return 7643u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_UpdateLeagueTeamState.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueTeamState.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueTeamState.cs.meta new file mode 100644 index 00000000..acbfb911 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdateLeagueTeamState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7d865a474fd7424faf2b3694923cefa +timeCreated: 1611404403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdatePartnerToClient.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdatePartnerToClient.cs new file mode 100644 index 00000000..61c6c5f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdatePartnerToClient.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_UpdatePartnerToClient : Protocol + { + public UpdatePartnerToClient Data = new UpdatePartnerToClient(); + + public override uint GetProtoType() + { + return 63692u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_UpdatePartnerToClient.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdatePartnerToClient.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdatePartnerToClient.cs.meta new file mode 100644 index 00000000..e04fbd66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_UpdatePartnerToClient.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1bb514923f5d78a4791b3f72863fa623 +timeCreated: 1611403338 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs new file mode 100644 index 00000000..f1712bff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_WeddingInviteNtf : Protocol + { + public WeddingInviteNtf Data = new WeddingInviteNtf(); + + public override uint GetProtoType() + { + return 35104u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_WeddingInviteNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs.meta new file mode 100644 index 00000000..fdd66ab0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_WeddingInviteNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a74b4c8719004fb4b8490ad8fad88899 +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs new file mode 100644 index 00000000..efba8ad4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_fastMBDismissM2CNtf : Protocol + { + public FMDArg Data = new FMDArg(); + + public override uint GetProtoType() + { + return 38301u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_fastMBDismissM2CNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs.meta new file mode 100644 index 00000000..86ea7aee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_fastMBDismissM2CNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24bb773dee66fc646a3898f24ab5aedc +timeCreated: 1611403461 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_synguildarenadisplaceNew.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_synguildarenadisplaceNew.cs new file mode 100644 index 00000000..1167e45c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_synguildarenadisplaceNew.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcM2C_synguildarenadisplaceNew : Protocol + { + public guildarenadisplace Data = new guildarenadisplace(); + + public override uint GetProtoType() + { + return 56166u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcM2C_synguildarenadisplaceNew.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_synguildarenadisplaceNew.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_synguildarenadisplaceNew.cs.meta new file mode 100644 index 00000000..71bee4e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcM2C_synguildarenadisplaceNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c734915454a855b49980a1afcacdd59e +timeCreated: 1611404529 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs new file mode 100644 index 00000000..1cb498a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcN2C_CheckQueuingNtf : Protocol + { + public CheckQueuingNtf Data = new CheckQueuingNtf(); + + public override uint GetProtoType() + { + return 25553u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcN2C_CheckQueuingNtf.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs.meta new file mode 100644 index 00000000..8e7569b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcN2C_CheckQueuingNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c78b8e64b7d6d0d46b5b8c684e0bb2d1 +timeCreated: 1611404531 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcRegister.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcRegister.cs new file mode 100644 index 00000000..58d29d46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcRegister.cs @@ -0,0 +1,387 @@ +using System; + +namespace XMainClient +{ + internal class PtcRegister + { + public static void RegistProtocol() + { + Protocol.RegistProtocol(new PtcG2C_NotifyAccountData()); + Protocol.RegistProtocol(new PtcT2C_LoginChallenge()); + Protocol.RegistProtocol(new PtcT2C_KeepAlivePingReq()); + Protocol.RegistProtocol(new PtcT2C_ErrorNotify()); + Protocol.RegistProtocol(new PtcG2C_EnterSceneNtf()); + Protocol.RegistProtocol(new PtcG2C_LeaveSceneNtf()); + Protocol.RegistProtocol(new PtcG2C_UnitAppear()); + Protocol.RegistProtocol(new PtcG2C_UnitDisappear()); + Protocol.RegistProtocol(new PtcG2C_SkillResult()); + Protocol.RegistProtocol(new PtcG2C_DeathNotify()); + Protocol.RegistProtocol(new PtcG2C_AttributeChangeNotify()); + Protocol.RegistProtocol(new PtcG2C_LevelChangeNtf()); + Protocol.RegistProtocol(new PtcG2C_ItemChangedNtf()); + Protocol.RegistProtocol(new PtcG2C_OpenSystemNtf()); + Protocol.RegistProtocol(new PtcG2C_BattleResultNtf()); + Protocol.RegistProtocol(new PtcG2C_CompleteAchivement()); + Protocol.RegistProtocol(new PtcG2C_SkillChangedNtf()); + Protocol.RegistProtocol(new PtcG2C_GSErrorNotify()); + Protocol.RegistProtocol(new PtcG2C_ChangeFashionNotify()); + Protocol.RegistProtocol(new PtcG2C_CheckinInfoNotify()); + Protocol.RegistProtocol(new PtcG2C_ActivityRoleNotify()); + Protocol.RegistProtocol(new PtcG2C_UpdatePayInfo()); + Protocol.RegistProtocol(new PtcG2C_RewardChangedNtf()); + Protocol.RegistProtocol(new PtcG2C_LeaveTeam()); + Protocol.RegistProtocol(new PtcG2C_ReviveNotify()); + Protocol.RegistProtocol(new PtcG2C_UpdateBuyGoldAndFatigueInfo()); + Protocol.RegistProtocol(new PtcG2C_ReviveCountdown()); + Protocol.RegistProtocol(new PtcG2C_FatigueRecoverTimeNotify()); + Protocol.RegistProtocol(new PtcG2C_EnterSceneCoolDownNotify()); + Protocol.RegistProtocol(new PtcT2C_ChatNotify()); + Protocol.RegistProtocol(new PtcG2C_FashoinChangedNtf()); + Protocol.RegistProtocol(new PtcG2C_GuildNotifyMemberChanged()); + Protocol.RegistProtocol(new PtcG2C_GuildSettingChangedNotify()); + Protocol.RegistProtocol(new PtcG2C_GuildCheckinBoxNtf()); + Protocol.RegistProtocol(new PtcG2C_NewGuildBonusNtf()); + Protocol.RegistProtocol(new PtcG2C_GuildBestCardsNtf()); + Protocol.RegistProtocol(new PtcG2C_ExecuteLevelScriptNtf()); + Protocol.RegistProtocol(new PtcG2C_OnlineRewardNtf()); + Protocol.RegistProtocol(new PtcG2C_NextDayRewardNtf()); + Protocol.RegistProtocol(new PtcG2C_HintNotify()); + Protocol.RegistProtocol(new PtcG2C_PositionDebug()); + Protocol.RegistProtocol(new PtcG2C_EnemyDorpDoodadNtf()); + Protocol.RegistProtocol(new PtcG2C_TakeRandomTask()); + Protocol.RegistProtocol(new PtcG2C_BuffNotify()); + Protocol.RegistProtocol(new PtcG2C_TeamSelectNotify()); + Protocol.RegistProtocol(new PtcG2C_TeamInviteNotify()); + Protocol.RegistProtocol(new PtcG2C_FetchEnemyDoodadNtf()); + Protocol.RegistProtocol(new PtcG2C_PkPrepareNtf()); + Protocol.RegistProtocol(new PtcG2C_PkTimeoutNtf()); + Protocol.RegistProtocol(new PtcG2C_GuildGoblinKillNtf()); + Protocol.RegistProtocol(new PtcG2C_SceneFinishStateChanged()); + Protocol.RegistProtocol(new PtcG2C_PkRoleInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_ItemCircleDrawResult()); + Protocol.RegistProtocol(new PtcG2C_SceneDamageRankNtf()); + Protocol.RegistProtocol(new PtcG2C_SceneLeftDoodad()); + Protocol.RegistProtocol(new PtcG2C_ChangeSupplementNtf()); + Protocol.RegistProtocol(new PtcG2C_CorrectPosition()); + Protocol.RegistProtocol(new PtcG2C_TeleportNotice()); + Protocol.RegistProtocol(new PtcG2C_AllyMatchRoleIDNotify()); + Protocol.RegistProtocol(new PtcG2C_TeamFullDataNtf()); + Protocol.RegistProtocol(new PtcG2C_PetChangeNotfiy()); + Protocol.RegistProtocol(new PtcG2C_ExpFindBackNtf()); + Protocol.RegistProtocol(new PtcG2C_TowerSceneInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_CoverDesignationNtf()); + Protocol.RegistProtocol(new PtcG2C_ReachAchieveNtf()); + Protocol.RegistProtocol(new PtcG2C_ReachDesignationNtf()); + Protocol.RegistProtocol(new PtcG2C_LevelSealNtf()); + Protocol.RegistProtocol(new PtcG2C_ReconnectSyncNotify()); + Protocol.RegistProtocol(new PtcG2C_OutLookChangeNtf()); + Protocol.RegistProtocol(new PtcG2C_FiveDayRewardNTF()); + Protocol.RegistProtocol(new PtcG2C_SyncStepNotify()); + Protocol.RegistProtocol(new PtcG2C_TssSdkAntiDataNtf()); + Protocol.RegistProtocol(new PtcM2C_AnswerAckNtf()); + Protocol.RegistProtocol(new PtcM2C_PushQuestionNtf()); + Protocol.RegistProtocol(new PtcG2C_QANotify()); + Protocol.RegistProtocol(new PtcG2C_PvpBattleBeginNtf()); + Protocol.RegistProtocol(new PtcG2C_PvpBattleEndNtf()); + Protocol.RegistProtocol(new PtcG2C_PvpBattleKill()); + Protocol.RegistProtocol(new PtcG2C_FlowerRankRewardNtf()); + Protocol.RegistProtocol(new PtcM2C_QAOverNtf()); + Protocol.RegistProtocol(new PtcM2C_QARoomRankNtf()); + Protocol.RegistProtocol(new PtcG2C_FastMBConfirmNtf()); + Protocol.RegistProtocol(new PtcG2C_fastMBDismissNtf()); + Protocol.RegistProtocol(new PtcG2C_SelectRoleNtf()); + Protocol.RegistProtocol(new PtcG2C_ReceiveFlowerNtf()); + Protocol.RegistProtocol(new PtcG2C_FlowerRainNtf()); + Protocol.RegistProtocol(new PtcG2C_StartBattleFailedNtf()); + Protocol.RegistProtocol(new PtcM2C_QAEnterRoomNtf()); + Protocol.RegistProtocol(new PtcG2C_WatchBattleInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_GmfJoinBattleReq()); + Protocol.RegistProtocol(new PtcG2C_GmfOneBattleEndNtf()); + Protocol.RegistProtocol(new PtcG2C_GmfBaseDataNtf()); + Protocol.RegistProtocol(new PtcG2C_WorldChannelLeftTimesNtf()); + Protocol.RegistProtocol(new PtcG2C_NoticeGuildBossEnd()); + Protocol.RegistProtocol(new PtcG2C_UpdateGuildArenaState()); + Protocol.RegistProtocol(new PtcG2C_GuildBossTimeOut()); + Protocol.RegistProtocol(new PtcG2C_SynGuildArenaBattleInfo()); + Protocol.RegistProtocol(new PtcG2C_SynGuildArenaFightUnit()); + Protocol.RegistProtocol(new PtcG2C_MulActivityStateChange()); + Protocol.RegistProtocol(new PtcG2C_GmfAllFightEndNtf()); + Protocol.RegistProtocol(new PtcG2C_WorldBossStateNtf()); + Protocol.RegistProtocol(new PtcG2C_NotifyRoleEmpty2Watcher()); + Protocol.RegistProtocol(new PtcG2C_BattleWatcherNtf()); + Protocol.RegistProtocol(new PtcG2C_NoticeGuildArenaBegin()); + Protocol.RegistProtocol(new PtcG2C_NotifyGuildBossAddAttr()); + Protocol.RegistProtocol(new PtcG2C_NotifyWatchData()); + Protocol.RegistProtocol(new PtcG2C_NotifyClientEnterFight()); + Protocol.RegistProtocol(new PtcG2C_SynGuildArenaRoleOnline()); + Protocol.RegistProtocol(new PtcG2C_ClientOnlyBuffNotify()); + Protocol.RegistProtocol(new PtcM2C_MCChatOffLineNotify()); + Protocol.RegistProtocol(new PtcM2C_FriendOpNtfNew()); + Protocol.RegistProtocol(new PtcM2C_FriendDegreeUpNtfNew()); + Protocol.RegistProtocol(new PtcM2C_BlackListNtfNew()); + Protocol.RegistProtocol(new PtcG2C_synguildarenadisplace()); + Protocol.RegistProtocol(new PtcG2C_OnTransferWall()); + Protocol.RegistProtocol(new PtcG2C_NotifyWatchIconNum2Client()); + Protocol.RegistProtocol(new PtcG2C_GmfWaitOtherLoad()); + Protocol.RegistProtocol(new PtcG2C_GmfWaitFightBegin()); + Protocol.RegistProtocol(new PtcM2C_RoleStateNtfNew()); + Protocol.RegistProtocol(new PtcM2C_HintNotifyMS()); + Protocol.RegistProtocol(new PtcG2C_WorldBossAttrNtf()); + Protocol.RegistProtocol(new PtcG2C_JoinRoomReply()); + Protocol.RegistProtocol(new PtcG2C_UpdateVoipRoomMemberNtf()); + Protocol.RegistProtocol(new PtcG2C_PayAllInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_LoginReward2CNtf()); + Protocol.RegistProtocol(new PtcM2C_MSReceiveFlowerNtf()); + Protocol.RegistProtocol(new PtcM2C_MSFlowerRainNtf()); + Protocol.RegistProtocol(new PtcM2C_TeamChangeM2CNtf()); + Protocol.RegistProtocol(new PtcM2C_LeaveTeamM2CNtf()); + Protocol.RegistProtocol(new PtcM2C_TeamFullDataM2CNtf()); + Protocol.RegistProtocol(new PtcM2C_TeamInviteM2CNotify()); + Protocol.RegistProtocol(new PtcM2C_MSErrorNotify()); + Protocol.RegistProtocol(new PtcM2C_InviteRefuseM2CNtf()); + Protocol.RegistProtocol(new PtcM2C_RoleMatchStateM2CNotify()); + Protocol.RegistProtocol(new PtcM2C_FastMBConfirmM2CNtf()); + Protocol.RegistProtocol(new PtcM2C_fastMBDismissM2CNtf()); + Protocol.RegistProtocol(new PtcG2C_AIDebugInfo()); + Protocol.RegistProtocol(new PtcG2C_StartRollNtf()); + Protocol.RegistProtocol(new PtcN2C_CheckQueuingNtf()); + Protocol.RegistProtocol(new PtcG2C_NoticeHungryDown()); + Protocol.RegistProtocol(new PtcG2C_FirstPassRewardNtf()); + Protocol.RegistProtocol(new PtcG2C_TitleChangeNotify()); + Protocol.RegistProtocol(new PtcM2C_QAIDNameNtf()); + Protocol.RegistProtocol(new PtcM2C_PkTimeoutM2CNtf()); + Protocol.RegistProtocol(new PtcM2C_LoginGuildInfo()); + Protocol.RegistProtocol(new PtcM2C_SendGuildSkillInfo()); + Protocol.RegistProtocol(new PtcM2C_MSEventNotify()); + Protocol.RegistProtocol(new PtcG2C_ItemFindBackNtf()); + Protocol.RegistProtocol(new PtcG2C_SpriteChangedNtf()); + Protocol.RegistProtocol(new PtcG2C_FightGroupChangeNtf()); + Protocol.RegistProtocol(new PtcG2C_BossRushOneFinishNtf()); + Protocol.RegistProtocol(new PtcG2C_SynAtlasAttr()); + Protocol.RegistProtocol(new PtcG2C_PlayDiceNtf()); + Protocol.RegistProtocol(new PtcG2C_IBShopIcon()); + Protocol.RegistProtocol(new PtcG2C_NotifyEnhanceSuit()); + Protocol.RegistProtocol(new PtcM2C_SynGuildArenaFightUnitNew()); + Protocol.RegistProtocol(new PtcM2C_SynGuildArenaBattleInfoNew()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildArenaBeginNew()); + Protocol.RegistProtocol(new PtcM2C_SynGuildArenaRoleOnlineNew()); + Protocol.RegistProtocol(new PtcM2C_synguildarenadisplaceNew()); + Protocol.RegistProtocol(new PtcG2C_RiskBuyNtf()); + Protocol.RegistProtocol(new PtcG2C_RiskRecoverDiceNtf()); + Protocol.RegistProtocol(new PtcM2C_NotifyGuildSkillData()); + Protocol.RegistProtocol(new PtcM2C_GuildSetingNotify()); + Protocol.RegistProtocol(new PtcM2C_GuildBestCardsNtfMs()); + Protocol.RegistProtocol(new PtcG2C_TowerFirstPassRewardNtf()); + Protocol.RegistProtocol(new PtcM2C_DERankChangNtf()); + Protocol.RegistProtocol(new PtcM2C_GmfJoinBattleM2CReq()); + Protocol.RegistProtocol(new PtcG2C_HallIconSNtf()); + Protocol.RegistProtocol(new PtcG2C_UpdateTaskStatus()); + Protocol.RegistProtocol(new PtcM2C_SkyCityFinalRes()); + Protocol.RegistProtocol(new PtcG2C_SkyCityEstimateRes()); + Protocol.RegistProtocol(new PtcG2C_SkyCityTimeRes()); + Protocol.RegistProtocol(new PtcG2C_NotifyIdipMessageGs()); + Protocol.RegistProtocol(new PtcM2C_NotifyIdipMessageMs()); + Protocol.RegistProtocol(new PtcG2C_IdipPunishInfoNtf()); + Protocol.RegistProtocol(new PtcM2C_IdipPunishInfoMsNtf()); + Protocol.RegistProtocol(new PtcM2C_IdipClearChatNtf()); + Protocol.RegistProtocol(new PtcG2C_SkyCityTeamRes()); + Protocol.RegistProtocol(new PtcM2C_GuildCardRankNtf()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildLadderStart()); + Protocol.RegistProtocol(new PtcG2C_GmfKickNty()); + Protocol.RegistProtocol(new PtcM2C_GuildCardMatchNtf()); + Protocol.RegistProtocol(new PtcG2C_SkyCityBattleDataNtf()); + Protocol.RegistProtocol(new PtcG2C_GmfBattleStateNtf()); + Protocol.RegistProtocol(new PtcG2C_SpActivityChangeNtf()); + Protocol.RegistProtocol(new PtcG2C_SpActivityOffsetDayNtf()); + Protocol.RegistProtocol(new PtcM2C_SpriteStateChangeNtf()); + Protocol.RegistProtocol(new PtcM2C_InvUnfStateM2CNtf()); + Protocol.RegistProtocol(new PtcG2C_DPSNotify()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildArenaNextTime()); + Protocol.RegistProtocol(new PtcG2C_SkillCoolNtf()); + Protocol.RegistProtocol(new PtcM2C_GardenBanquetNtf()); + Protocol.RegistProtocol(new PtcG2C_GardenPlantEventNotice()); + Protocol.RegistProtocol(new PtcG2C_GardenBanquetNotice()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildWageReward()); + Protocol.RegistProtocol(new PtcG2C_GmfGuildCombatNtf()); + Protocol.RegistProtocol(new PtcG2C_GprOneBattleEndNtf()); + Protocol.RegistProtocol(new PtcG2C_GprAllFightEndNtf()); + Protocol.RegistProtocol(new PtcG2C_ResWarBattleDataNtf()); + Protocol.RegistProtocol(new PtcG2C_ResWarTeamResOne()); + Protocol.RegistProtocol(new PtcM2C_SendGuildBonusNtf()); + Protocol.RegistProtocol(new PtcM2C_ResWarGuildBriefNtf()); + Protocol.RegistProtocol(new PtcG2C_PayMemberPrivilegeNtf()); + Protocol.RegistProtocol(new PtcM2C_SynGuilIntegralState()); + Protocol.RegistProtocol(new PtcM2C_ResWarStateNtf()); + Protocol.RegistProtocol(new PtcM2C_SynGuildIntegralState()); + Protocol.RegistProtocol(new PtcG2C_KillEnemyScoreNtf()); + Protocol.RegistProtocol(new PtcG2C_ServerOpenDayNtf()); + Protocol.RegistProtocol(new PtcM2C_ResWarRankSimpleInfoNtf()); + Protocol.RegistProtocol(new PtcM2C_GuildBuffSimpleInfoNtf()); + Protocol.RegistProtocol(new PtcM2C_GuildBuffSimpleItemNtf()); + Protocol.RegistProtocol(new PtcM2C_HallIconMNtf()); + Protocol.RegistProtocol(new PtcG2C_synGuildInheritExp()); + Protocol.RegistProtocol(new PtcG2C_NoticeDoingGuildInherit()); + Protocol.RegistProtocol(new PtcG2C_SynGuildInheritNumInfo()); + Protocol.RegistProtocol(new PtcM2C_ResWarMineDataNtf()); + Protocol.RegistProtocol(new PtcG2C_CdCall()); + Protocol.RegistProtocol(new PtcM2C_LargeRoomRoleNtf()); + Protocol.RegistProtocol(new PtcM2C_LargeRoomLoginParamNtf()); + Protocol.RegistProtocol(new PtcM2C_ResWarTimeNtf()); + Protocol.RegistProtocol(new PtcG2C_SyncMoveNotify()); + Protocol.RegistProtocol(new PtcG2C_ChangeNameCountNtf()); + Protocol.RegistProtocol(new PtcM2C_GuildBuffCDParamNtf()); + Protocol.RegistProtocol(new PtcG2C_AntiAddictionRemindNtf()); + Protocol.RegistProtocol(new PtcG2C_HorseAwardAllNtf()); + Protocol.RegistProtocol(new PtcG2C_HorseRankNtf()); + Protocol.RegistProtocol(new PtcG2C_HorseWaitTimeNtf()); + Protocol.RegistProtocol(new PtcG2C_HorseAnimationNtf()); + Protocol.RegistProtocol(new PtcG2C_HorseFinalNtf()); + Protocol.RegistProtocol(new PtcM2C_NotifyMentorApply()); + Protocol.RegistProtocol(new PtcM2C_UpdatePartnerToClient()); + Protocol.RegistProtocol(new PtcM2C_MakePartnerResultNtf()); + Protocol.RegistProtocol(new PtcM2C_InvFightNotify()); + Protocol.RegistProtocol(new PtcG2C_HorseCountDownTimeNtf()); + Protocol.RegistProtocol(new PtcG2C_DoodadItemAddNtf()); + Protocol.RegistProtocol(new PtcG2C_GCFZhanLingNotify()); + Protocol.RegistProtocol(new PtcG2C_InvFightBefEnterSceneNtf()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleDataNtf()); + Protocol.RegistProtocol(new PtcG2C_ScenePrepareInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleTeamMsgNtf()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleSyncNtf()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleInCircleNtf()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleOverTime()); + Protocol.RegistProtocol(new PtcM2C_PayParameterInfoInvalidNtf()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleTeamRoleNtf()); + Protocol.RegistProtocol(new PtcG2C_GCFSynG2CNtf()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildTerrWar()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildTerrall()); + Protocol.RegistProtocol(new PtcG2C_DoodadItemUseNtf()); + Protocol.RegistProtocol(new PtcM2C_GuildBonusGetAll()); + Protocol.RegistProtocol(new PtcG2C_SpecialStateNtf()); + Protocol.RegistProtocol(new PtcM2C_ResWarEnemyTimeNtf()); + Protocol.RegistProtocol(new PtcG2C_CloseChooseHeroNtf()); + Protocol.RegistProtocol(new PtcG2C_LevelScriptStateNtf()); + Protocol.RegistProtocol(new PtcG2C_SceneStateNtf()); + Protocol.RegistProtocol(new PtcG2C_QueryRoleStateAck()); + Protocol.RegistProtocol(new PtcG2C_IBShopHasBuyNtf()); + Protocol.RegistProtocol(new PtcM2C_UpdateLeagueBattleSeasonInfo()); + Protocol.RegistProtocol(new PtcG2C_SkillInitCoolNtf()); + Protocol.RegistProtocol(new PtcM2C_NotifyLeagueTeamCreate()); + Protocol.RegistProtocol(new PtcM2C_NotifyLeagueTeamDissolve()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleCanUseHero()); + Protocol.RegistProtocol(new PtcM2C_UpdateLeagueTeamState()); + Protocol.RegistProtocol(new PtcM2C_LeagueBattleStartMatchNtf()); + Protocol.RegistProtocol(new PtcM2C_LeagueBattleStopMatchNtf()); + Protocol.RegistProtocol(new PtcG2C_LeagueBattleLoadInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_LeagueBattleBaseDataNtf()); + Protocol.RegistProtocol(new PtcG2C_LeagueBattleOneResultNft()); + Protocol.RegistProtocol(new PtcG2C_LeagueBattleResultNtf()); + Protocol.RegistProtocol(new PtcG2C_PushPraiseNtf()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleTipsNtf()); + Protocol.RegistProtocol(new PtcG2C_LeagueBattleStateNtf()); + Protocol.RegistProtocol(new PtcM2C_LeagueBattleMatchTimeoutNtf()); + Protocol.RegistProtocol(new PtcM2C_MidasExceptionNtf()); + Protocol.RegistProtocol(new PtcM2C_UpdateLeagueEleRoomStateNtf()); + Protocol.RegistProtocol(new PtcM2C_KickFMAuchor()); + Protocol.RegistProtocol(new PtcM2C_GuildAuctItemTimeFresh()); + Protocol.RegistProtocol(new PtcM2C_PokerTournamentEndReFund()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildTerrEnd()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildTerrBattleWin()); + Protocol.RegistProtocol(new PtcM2C_NoticeGuildTerrBigIcon()); + Protocol.RegistProtocol(new PtcA2C_AudioAIDNtf()); + Protocol.RegistProtocol(new PtcG2C_CountDownNtf()); + Protocol.RegistProtocol(new PtcG2C_AllGiftIBItemNtf()); + Protocol.RegistProtocol(new PtcG2C_GiftIBBackInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_ShareRandomGiftNtf()); + Protocol.RegistProtocol(new PtcM2C_ModifyGuildNameNtf()); + Protocol.RegistProtocol(new PtcG2C_WorldBossGuildAddAttrSyncClientNtf()); + Protocol.RegistProtocol(new PtcG2C_MilitaryrankNtf()); + Protocol.RegistProtocol(new PtcG2C_LoginActivityStatusNtf()); + Protocol.RegistProtocol(new PtcM2C_ArenaStarDataNtf()); + Protocol.RegistProtocol(new PtcM2C_NotifySkyTeamCreate()); + Protocol.RegistProtocol(new PtcM2C_SkyCraftMatchNtf()); + Protocol.RegistProtocol(new PtcM2C_SkyCraftEliRoomNtf()); + Protocol.RegistProtocol(new PtcG2C_DisplayAddItem()); + Protocol.RegistProtocol(new PtcG2C_UpdateDisplayItems()); + Protocol.RegistProtocol(new PtcG2C_guildcamppartyNotify()); + Protocol.RegistProtocol(new PtcM2C_IBGiftIconNtf()); + Protocol.RegistProtocol(new PtcM2C_GiftIBSucessNtf()); + Protocol.RegistProtocol(new PtcG2C_AbsPartyNtf()); + Protocol.RegistProtocol(new PtcG2C_GuildCampPartyTradeNotify()); + Protocol.RegistProtocol(new PtcM2C_TeamRequestPlatFreind2Client()); + Protocol.RegistProtocol(new PtcG2C_CustomBattleLoadingNtf()); + Protocol.RegistProtocol(new PtcM2C_CustomBattleGMNotify()); + Protocol.RegistProtocol(new PtcM2C_TarjaBriefNtf()); + Protocol.RegistProtocol(new PtcG2C_PlatformShareAwardNtf()); + Protocol.RegistProtocol(new PtcG2C_WeekEnd4v4RoleDataNtf()); + Protocol.RegistProtocol(new PtcG2C_HeroKillNotify()); + Protocol.RegistProtocol(new PtcG2C_MobaBattleTeamRoleNtf()); + Protocol.RegistProtocol(new PtcG2C_MobaRoleChangeNtf()); + Protocol.RegistProtocol(new PtcG2C_MobaBattleTeamMsgNtf()); + Protocol.RegistProtocol(new PtcG2C_TransSkillNotfiy()); + Protocol.RegistProtocol(new PtcG2C_EntityTargetChangeNtf()); + Protocol.RegistProtocol(new PtcG2C_MobaSignalBroadcast()); + Protocol.RegistProtocol(new PtcG2C_PetInviteNtf()); + Protocol.RegistProtocol(new PtcG2C_MobaMiniMapNtf()); + Protocol.RegistProtocol(new PtcG2C_MobaAddExpNtf()); + Protocol.RegistProtocol(new PtcG2C_BMReadyTimeNtf()); + Protocol.RegistProtocol(new PtcG2C_BMFightTimeNtf()); + Protocol.RegistProtocol(new PtcG2C_BMRoleSceneSyncNtf()); + Protocol.RegistProtocol(new PtcG2C_BigMeleeReliveNtf()); + Protocol.RegistProtocol(new PtcG2C_MobaHintNtf()); + Protocol.RegistProtocol(new PtcG2C_TajieHelpNotify()); + Protocol.RegistProtocol(new PtcG2C_NotifyStartUpTypeToClient()); + Protocol.RegistProtocol(new PtcG2C_HeroBattleAncientPower()); + Protocol.RegistProtocol(new PtcM2C_GroupChatManager()); + Protocol.RegistProtocol(new PtcM2C_GroupChatQuit()); + Protocol.RegistProtocol(new PtcM2C_GroupChatDismiss()); + Protocol.RegistProtocol(new PtcM2C_WeddingInviteNtf()); + Protocol.RegistProtocol(new PtcM2C_NotifyMarriageApply()); + Protocol.RegistProtocol(new PtcG2C_BattleStatisticsNtf()); + Protocol.RegistProtocol(new PtcG2C_WeddingLoadInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_WeddingStateNtf()); + Protocol.RegistProtocol(new PtcG2C_WeddingEventNtf()); + Protocol.RegistProtocol(new PtcG2C_HorseFailTipsNtf()); + Protocol.RegistProtocol(new PtcM2C_NotifyMarriageDivorceApply()); + Protocol.RegistProtocol(new PtcG2C_WarningRandomNtf()); + Protocol.RegistProtocol(new PtcM2C_GroupChatIssueCount()); + Protocol.RegistProtocol(new PtcM2C_GroupChatApply()); + Protocol.RegistProtocol(new PtcG2C_ThemeActivityChangeNtf()); + Protocol.RegistProtocol(new PtcG2C_WeddingCarNtf()); + Protocol.RegistProtocol(new PtcG2C_BackFlowOpenNtf()); + Protocol.RegistProtocol(new PtcM2C_StartBattleFailedM2CNtf()); + Protocol.RegistProtocol(new PtcG2C_TransNotify()); + Protocol.RegistProtocol(new PtcM2C_LoginDragonGuildInfo()); + Protocol.RegistProtocol(new PtcM2C_DragonGuildSettingChanged()); + Protocol.RegistProtocol(new PtcM2C_DragonGuildNameNtf()); + Protocol.RegistProtocol(new PtcM2C_GoalAwardsRedPoint()); + Protocol.RegistProtocol(new PtcG2C_BattleFieldReadyInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_BattleFieldReliveNtf()); + Protocol.RegistProtocol(new PtcG2C_BattleFieldRoleAgainstNtf()); + Protocol.RegistProtocol(new PtcG2C_BFFightTimeNtf()); + Protocol.RegistProtocol(new PtcG2C_PayScoreNtf()); + Protocol.RegistProtocol(new PtcG2C_NpcFlNtf()); + Protocol.RegistProtocol(new PtcM2C_DailyTaskEventNtf()); + Protocol.RegistProtocol(new PtcG2C_DoodadItemSkillsNtf()); + Protocol.RegistProtocol(new PtcG2C_WordNotify()); + Protocol.RegistProtocol(new PtcG2C_BigMeleePointNtf()); + Protocol.RegistProtocol(new PtcG2C_BigMeleePointOutLookNtf()); + Protocol.RegistProtocol(new PtcM2C_TaskRefreshNtf()); + Protocol.RegistProtocol(new PtcG2C_KickAccountJkydNtf()); + Protocol.RegistProtocol(new PtcM2C_GuildCastFeatsNtf()); + Protocol.RegistProtocol(new PtcG2C_WorldLevelNtf2Client()); + Protocol.RegistProtocol(new PtcG2C_UpdateStageInfoNtf()); + Protocol.RegistProtocol(new PtcG2C_PayGiftNtf()); + Protocol.RegistProtocol(new PtcG2C_RiftSceneInfoNtf()); + Protocol.RegistProtocol(new PtcM2C_CrossGvgStateNtf()); + Protocol.RegistProtocol(new PtcM2C_CrossGvgRoomStateNtf()); + Protocol.RegistProtocol(new PtcM2C_MarriageNewPrivilegeNtf()); + Protocol.RegistProtocol(new PtcM2C_GuildSchoolHallUpdatePoint()); + Protocol.RegistProtocol(new PtcG2C_VsPayReviveNtf()); + Protocol.RegistProtocol(new PtcM2C_MarriageLevelValueNtf()); + Protocol.RegistProtocol(new PtcG2C_JadeSlotInfoNtf()); + Protocol.RegistProtocol(new PtcM2C_Get520FestivalRedPacket()); + Protocol.RegistProtocol(new PtcG2C_ChatNotifyG2C()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcRegister.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcRegister.cs.meta new file mode 100644 index 00000000..697aad85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcRegister.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5bab18b15c4f22f46a80e7adfc942082 +timeCreated: 1611403799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs new file mode 100644 index 00000000..ca73a014 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcT2C_ChatNotify : Protocol + { + public ChatNotify Data = new ChatNotify(); + + public override uint GetProtoType() + { + return 4256u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcT2C_ChatNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs.meta new file mode 100644 index 00000000..82db72c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ChatNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f28eea81e10821740ae522c0f2f14352 +timeCreated: 1611404843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs new file mode 100644 index 00000000..262d340b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcT2C_ErrorNotify : Protocol + { + public ErrorInfo Data = new ErrorInfo(); + + public override uint GetProtoType() + { + return 21940u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcT2C_ErrorNotify.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs.meta new file mode 100644 index 00000000..e008f21b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_ErrorNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 788a66af18c23c746ae57c389a90564f +timeCreated: 1611403981 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs new file mode 100644 index 00000000..45c4e50c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs @@ -0,0 +1,26 @@ +using System; +using System.IO; + +namespace XMainClient +{ + internal class PtcT2C_KeepAlivePingReq : Protocol + { + public override uint GetProtoType() + { + return 49142u; + } + + public override void Serialize(MemoryStream stream) + { + } + + public override void DeSerialize(MemoryStream stream) + { + } + + public override void Process() + { + Process_PtcT2C_KeepAlivePingReq.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs.meta new file mode 100644 index 00000000..42e984c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_KeepAlivePingReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f16b3bf909e71564fb1001bc87a1514a +timeCreated: 1611404837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_LoginChallenge.cs b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_LoginChallenge.cs new file mode 100644 index 00000000..20dcc9c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_LoginChallenge.cs @@ -0,0 +1,32 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PtcT2C_LoginChallenge : Protocol + { + public LoginChallenge Data = new LoginChallenge(); + + public override uint GetProtoType() + { + return 58495u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.Data); + } + + public override void DeSerialize(MemoryStream stream) + { + this.Data = Serializer.Deserialize(stream); + } + + public override void Process() + { + Process_PtcT2C_LoginChallenge.Process(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_LoginChallenge.cs.meta b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_LoginChallenge.cs.meta new file mode 100644 index 00000000..068b39f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PTC/PtcT2C_LoginChallenge.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db45553b2e873574abef6da4fe3d1584 +timeCreated: 1611404651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PandoraDocument.cs b/Client/Assets/Scripts/XMainClient/PandoraDocument.cs new file mode 100644 index 00000000..7e3db44b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PandoraDocument.cs @@ -0,0 +1,182 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PandoraDocument : XDocComponent + { + public override uint ID + { + get + { + return PandoraDocument.uuID; + } + } + + public uint PandoraID + { + get + { + return this._pandora_id; + } + } + + public PandoraHeart.RowData PandoraData + { + get + { + return this._pandora_data; + } + } + + public List ItemCache + { + get + { + return this._items_cache; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("PandoraDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private uint _pandora_id = 0u; + + private PandoraHeart.RowData _pandora_data = null; + + private List _items_cache = new List(); + + private float _last_lottery_time = 0f; + + private static PandoraHeartReward _table = new PandoraHeartReward(); + + public static List ItemList = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + PandoraDocument.AsyncLoader.AddTask("Table/PandoraHeartReward", PandoraDocument._table, false); + PandoraDocument.AsyncLoader.Execute(callback); + } + + private void GetShowItemList() + { + PandoraDocument.ItemList.Clear(); + for (int i = 0; i < PandoraDocument._table.Table.Length; i++) + { + bool flag = this._pandora_id == PandoraDocument._table.Table[i].pandoraid; + if (flag) + { + bool flag2 = (PandoraDocument._table.Table[i].showlevel[0] == 0u && PandoraDocument._table.Table[i].showlevel[1] == 0u) || (PandoraDocument._table.Table[i].showlevel[0] <= XSingleton.singleton.XPlayerData.Level && PandoraDocument._table.Table[i].showlevel[1] >= XSingleton.singleton.XPlayerData.Level); + if (flag2) + { + bool flag3 = !PandoraDocument.ItemList.Contains(PandoraDocument._table.Table[i].itemid); + if (flag3) + { + PandoraDocument.ItemList.Add(PandoraDocument._table.Table[i].itemid); + } + } + } + } + } + + public void GetShowItemList(uint pandoraid) + { + PandoraDocument.ItemList.Clear(); + for (int i = 0; i < PandoraDocument._table.Table.Length; i++) + { + bool flag = pandoraid == PandoraDocument._table.Table[i].pandoraid; + if (flag) + { + bool flag2 = (PandoraDocument._table.Table[i].showlevel[0] == 0u && PandoraDocument._table.Table[i].showlevel[1] == 0u) || (PandoraDocument._table.Table[i].showlevel[0] <= XSingleton.singleton.XPlayerData.Level && PandoraDocument._table.Table[i].showlevel[1] >= XSingleton.singleton.XPlayerData.Level); + if (flag2) + { + bool flag3 = !PandoraDocument.ItemList.Contains(PandoraDocument._table.Table[i].itemid); + if (flag3) + { + PandoraDocument.ItemList.Add(PandoraDocument._table.Table[i].itemid); + } + } + } + } + } + + public void SendPandoraLottery(bool isOneLottery) + { + bool flag = Time.time - this._last_lottery_time < 2f; + if (!flag) + { + this._last_lottery_time = Time.time; + RpcC2G_PandoraLottery rpcC2G_PandoraLottery = new RpcC2G_PandoraLottery(); + rpcC2G_PandoraLottery.oArg.pandoraid = this._pandora_id; + rpcC2G_PandoraLottery.oArg.isOneLottery = isOneLottery; + XSingleton.singleton.Send(rpcC2G_PandoraLottery); + } + } + + public void GetPandoraLotteryResult(List items) + { + this._items_cache.Clear(); + for (int i = 0; i < items.Count; i++) + { + this._items_cache.Add(items[i]); + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.PlayOpenFx(); + } + } + + public void ShowPandoraLotteryView(uint itemID, PandoraHeart.RowData data) + { + bool flag = data == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Pandora Data is Null!!!", null, null, null, null, null); + } + else + { + this._pandora_id = itemID; + this._pandora_data = data; + this.GetShowItemList(); + DlgBase.singleton.SetVisible(true, true); + } + } + + public XFx CreateAndPlayFx(string path, Transform parent) + { + XFx xfx = XSingleton.singleton.CreateFx(path, null, true); + bool flag = xfx == null; + XFx result; + if (flag) + { + result = null; + } + else + { + xfx.Play(parent, Vector3.zero, Vector3.one, 1f, true, false); + result = xfx; + } + return result; + } + + public void DestroyFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PandoraDocument.cs.meta b/Client/Assets/Scripts/XMainClient/PandoraDocument.cs.meta new file mode 100644 index 00000000..c5aac65a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PandoraDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 481afa892f13d8349a90fcaf0419c936 +timeCreated: 1611403656 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ParabolaFx.cs b/Client/Assets/Scripts/XMainClient/ParabolaFx.cs new file mode 100644 index 00000000..afb74a1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ParabolaFx.cs @@ -0,0 +1,60 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ParabolaFx + { + private Vector3 _startPos; + + private Vector3 _endPos; + + private float _speedY; + + private float _speedAddY; + + private float _duration; + + private float _startTime; + + private XFx _fx; + + public ParabolaFx(string fxPath, float duration, float speedY, Vector3 startPos, Vector3 endPos) + { + this._fx = XSingleton.singleton.CreateFx(fxPath, null, true); + this._fx.Play(startPos, Quaternion.identity, Vector3.one, 1f); + this._duration = duration; + this._startTime = Time.time; + this._startPos = startPos; + this._endPos = endPos; + this._speedY = speedY; + this._speedAddY = -speedY * 2f / duration; + } + + public bool Update() + { + float num = Time.time - this._startTime; + bool flag = num > this._duration; + bool result; + if (flag) + { + this.Destroy(); + result = false; + } + else + { + Vector3 position = Vector3.Lerp(this._startPos, this._endPos, num / this._duration); + position.y = this._startPos.y + this._speedY * num + this._speedAddY * num * num / 2f; + this._fx.Position = position; + result = true; + } + return result; + } + + public void Destroy() + { + XSingleton.singleton.DestroyFx(this._fx, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ParabolaFx.cs.meta b/Client/Assets/Scripts/XMainClient/ParabolaFx.cs.meta new file mode 100644 index 00000000..b890c669 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ParabolaFx.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5166d1b00d41d644f9bc22f1c518ffff +timeCreated: 1611403706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PartLoadCallback.cs b/Client/Assets/Scripts/XMainClient/PartLoadCallback.cs new file mode 100644 index 00000000..10776502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PartLoadCallback.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate void PartLoadCallback(EquipLoadTask part, bool needCombine); +} diff --git a/Client/Assets/Scripts/XMainClient/PartLoadCallback.cs.meta b/Client/Assets/Scripts/XMainClient/PartLoadCallback.cs.meta new file mode 100644 index 00000000..c29e5f68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PartLoadCallback.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ddaea9c3630b1e7428232b81252d066d +timeCreated: 1611404683 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PartLoadTask.cs b/Client/Assets/Scripts/XMainClient/PartLoadTask.cs new file mode 100644 index 00000000..8270b6de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PartLoadTask.cs @@ -0,0 +1,297 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PartLoadTask : EquipLoadTask + { + private string replaceMeshLocation = null; + + private string replaceTexLocation = null; + + public byte partType = 0; + + public Mesh mesh = null; + + private Texture2D tex = null; + + private Texture2D aplhaTex = null; + + private byte loadState = 0; + + private static PartLoadTask.MeshPart fakeMeshPart = new PartLoadTask.MeshPart(); + + private static PartLoadTask.TexPart fakeTexPart = new PartLoadTask.TexPart(); + + private static PartLoadTask.AlphaTexPart fakeAlphaTexPart = new PartLoadTask.AlphaTexPart(); + + private LoadAsyncTask meshLoadTask = null; + + private LoadAsyncTask texLoadTask = null; + + private LoadAsyncTask alphaLoadTask = null; + + private LoadCallBack loadCb = null; + + private PartLoadCallback m_PartLoadCb = null; + + private class MeshPart + { + } + + private class TexPart + { + } + + private class AlphaTexPart + { + } + + public PartLoadTask(EPartType p, PartLoadCallback partLoadCb) : base(p) + { + this.loadCb = new LoadCallBack(this.LoadFinish); + this.m_PartLoadCb = partLoadCb; + } + + public override void Load(XEntity e, int prefessionID, ref FashionPositionInfo newFpi, bool async, HashSet loadedPath) + { + bool flag = base.IsSamePart(ref newFpi); + if (flag) + { + bool flag2 = this.m_PartLoadCb != null; + if (flag2) + { + this.m_PartLoadCb(this, false); + } + } + else + { + this.Reset(e); + bool flag3 = base.MakePath(ref newFpi, loadedPath); + if (flag3) + { + this.replaceMeshLocation = null; + this.replaceTexLocation = null; + bool meshInfo = XEquipDocument._MeshPartList.GetMeshInfo(this.location, prefessionID, (int)this.part, newFpi.fashionDir, out this.partType, ref this.replaceMeshLocation, ref this.replaceTexLocation); + if (meshInfo) + { + if (async) + { + bool flag4 = this.replaceMeshLocation != null; + if (flag4) + { + this.meshLoadTask = XSingleton.singleton.GetShareResourceAsync(this.replaceMeshLocation, ".asset", this.loadCb, PartLoadTask.fakeMeshPart); + } + else + { + this.meshLoadTask = XSingleton.singleton.GetShareResourceAsync(this.location, ".asset", this.loadCb, PartLoadTask.fakeMeshPart); + } + bool flag5 = this.replaceTexLocation != null; + if (flag5) + { + this.texLoadTask = XSingleton.singleton.GetShareResourceAsync(this.replaceTexLocation, ".tga", this.loadCb, PartLoadTask.fakeTexPart); + bool flag6 = this.partType == XMeshPartList.CutoutPart; + if (flag6) + { + this.alphaLoadTask = XSingleton.singleton.GetShareResourceAsync(this.replaceTexLocation + "_A", ".png", this.loadCb, PartLoadTask.fakeAlphaTexPart); + } + } + else + { + this.texLoadTask = XSingleton.singleton.GetShareResourceAsync(this.location, ".tga", this.loadCb, PartLoadTask.fakeTexPart); + bool flag7 = this.partType == XMeshPartList.CutoutPart; + if (flag7) + { + this.alphaLoadTask = XSingleton.singleton.GetShareResourceAsync(this.location + "_A", ".png", this.loadCb, PartLoadTask.fakeAlphaTexPart); + } + } + } + else + { + bool flag8 = this.replaceMeshLocation != null; + Mesh sharedResource; + if (flag8) + { + sharedResource = XSingleton.singleton.GetSharedResource(this.replaceMeshLocation, ".asset", true, false); + } + else + { + sharedResource = XSingleton.singleton.GetSharedResource(this.location, ".asset", true, false); + } + this.LoadFinish(sharedResource, PartLoadTask.fakeMeshPart); + bool flag9 = this.replaceTexLocation != null; + if (flag9) + { + Texture2D sharedResource2 = XSingleton.singleton.GetSharedResource(this.replaceTexLocation, ".tga", true, false); + this.LoadFinish(sharedResource2, PartLoadTask.fakeTexPart); + bool flag10 = this.partType == XMeshPartList.CutoutPart; + if (flag10) + { + Texture2D sharedResource3 = XSingleton.singleton.GetSharedResource(this.replaceTexLocation + "_A", ".png", true, false); + this.LoadFinish(sharedResource3, PartLoadTask.fakeAlphaTexPart); + } + } + else + { + Texture2D sharedResource4 = XSingleton.singleton.GetSharedResource(this.location, ".tga", true, false); + this.LoadFinish(sharedResource4, PartLoadTask.fakeTexPart); + bool flag11 = this.partType == XMeshPartList.CutoutPart; + if (flag11) + { + Texture2D sharedResource5 = XSingleton.singleton.GetSharedResource(this.location + "_A", ".png", true, false); + this.LoadFinish(sharedResource5, PartLoadTask.fakeAlphaTexPart); + } + } + } + } + else + { + this.processStatus = EProcessStatus.EPreProcess; + bool flag12 = this.m_PartLoadCb != null; + if (flag12) + { + this.m_PartLoadCb(this, true); + } + } + } + else + { + bool flag13 = this.m_PartLoadCb != null; + if (flag13) + { + this.m_PartLoadCb(this, true); + } + } + } + } + + private void LoadFinish(UnityEngine.Object obj, object cbOjb) + { + bool flag = this.processStatus == EProcessStatus.EProcessing; + if (flag) + { + bool flag2 = cbOjb is PartLoadTask.MeshPart; + if (flag2) + { + this.mesh = (obj as Mesh); + this.loadState |= 1; + this.meshLoadTask = null; + } + else + { + bool flag3 = cbOjb is PartLoadTask.TexPart; + if (flag3) + { + Texture2D texture2D = obj as Texture2D; + this.tex = texture2D; + this.texLoadTask = null; + this.loadState |= 2; + } + else + { + bool flag4 = cbOjb is PartLoadTask.AlphaTexPart; + if (flag4) + { + Texture2D texture2D2 = obj as Texture2D; + this.aplhaTex = texture2D2; + this.alphaLoadTask = null; + this.loadState |= 4; + } + else + { + XSingleton.singleton.AddErrorLog("assert error equip type", null, null, null, null, null); + } + } + } + bool flag5 = XMeshPartList.ConvertType(this.partType) == this.loadState; + if (flag5) + { + this.processStatus = EProcessStatus.EPreProcess; + bool flag6 = this.m_PartLoadCb != null; + if (flag6) + { + this.m_PartLoadCb(this, true); + } + } + } + } + + public override void Reset(XEntity e) + { + bool flag = this.mesh != null; + if (flag) + { + bool flag2 = !string.IsNullOrEmpty(this.replaceMeshLocation); + if (flag2) + { + XSingleton.singleton.UnSafeDestroyShareResource(this.replaceMeshLocation, ".asset", this.mesh, XSingleton.singleton.SceneType == SceneType.SCENE_HALL); + } + else + { + XSingleton.singleton.UnSafeDestroyShareResource(this.location, ".asset", this.mesh, XSingleton.singleton.SceneType == SceneType.SCENE_HALL); + } + this.mesh = null; + } + this.replaceMeshLocation = null; + bool flag3 = this.tex != null; + if (flag3) + { + bool flag4 = !string.IsNullOrEmpty(this.replaceTexLocation); + if (flag4) + { + XSingleton.singleton.UnSafeDestroyShareResource(this.replaceTexLocation, ".tga", this.tex, XSingleton.singleton.SceneType == SceneType.SCENE_HALL); + } + else + { + XSingleton.singleton.UnSafeDestroyShareResource(this.location, ".tga", this.tex, XSingleton.singleton.SceneType == SceneType.SCENE_HALL); + } + this.tex = null; + } + bool flag5 = this.aplhaTex != null; + if (flag5) + { + XSingleton.singleton.UnSafeDestroyShareResource(this.location + "_A", ".png", this.aplhaTex, XSingleton.singleton.SceneType == SceneType.SCENE_HALL); + this.aplhaTex = null; + } + this.replaceTexLocation = null; + this.loadState = 0; + bool flag6 = this.meshLoadTask != null; + if (flag6) + { + this.meshLoadTask.CancelLoad(this.loadCb); + this.meshLoadTask = null; + } + bool flag7 = this.texLoadTask != null; + if (flag7) + { + this.texLoadTask.CancelLoad(this.loadCb); + this.texLoadTask = null; + } + bool flag8 = this.alphaLoadTask != null; + if (flag8) + { + this.alphaLoadTask.CancelLoad(this.loadCb); + this.alphaLoadTask = null; + } + base.Reset(e); + } + + public bool HasMesh() + { + return this.mesh != null; + } + + public Texture2D GetTexture() + { + return this.tex; + } + + public Texture2D GetAlpha() + { + return this.aplhaTex; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PartLoadTask.cs.meta b/Client/Assets/Scripts/XMainClient/PartLoadTask.cs.meta new file mode 100644 index 00000000..a4fb10d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PartLoadTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f86756d66c97bb143b9c191495c38672 +timeCreated: 1611404892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Partner.cs b/Client/Assets/Scripts/XMainClient/Partner.cs new file mode 100644 index 00000000..bf53dcdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Partner.cs @@ -0,0 +1,45 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class Partner + { + public ulong MemberId { get; set; } + + public PartnerMemberDetail Detail + { + get + { + return this.m_detail; + } + } + + private PartnerMemberDetail m_detail; + + public void SetDetailInfo(PartnerMemberDetail detail) + { + this.m_detail = new PartnerMemberDetail(); + this.m_detail.memberid = detail.memberid; + this.m_detail.profession = detail.profession; + this.m_detail.name = detail.name; + this.m_detail.level = detail.level; + this.m_detail.ppt = detail.ppt; + this.m_detail.outlook = detail.outlook; + this.m_detail.viplevel = detail.viplevel; + this.m_detail.paymemberid = detail.paymemberid; + this.m_detail.is_apply_leave = detail.is_apply_leave; + this.m_detail.left_leave_time = detail.left_leave_time; + for (int i = 0; i < detail.fashion.Count; i++) + { + this.m_detail.fashion.Add(detail.fashion[i]); + } + } + + public void UpdateLeaveInfo(bool isLeave, uint leaveTime) + { + this.m_detail.is_apply_leave = isLeave; + this.m_detail.left_leave_time = leaveTime; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Partner.cs.meta b/Client/Assets/Scripts/XMainClient/Partner.cs.meta new file mode 100644 index 00000000..444c4a40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Partner.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 083ca2fc3c8891843bad0c0dafba0f90 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PartnerLiveness.cs b/Client/Assets/Scripts/XMainClient/PartnerLiveness.cs new file mode 100644 index 00000000..7cabb299 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PartnerLiveness.cs @@ -0,0 +1,248 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PartnerLiveness + { + public List RecordList + { + get + { + return this.m_recordList; + } + } + + public uint CurExp + { + get + { + return this.m_curExp; + } + set + { + this.m_curExp = value; + } + } + + public uint MaxExp + { + get + { + List list = new List(); + this.GetPartnerLivenessRowsByLevel(XPartnerDocument.Doc.CurPartnerLevel, out list); + bool flag = list.Count != 0; + uint result; + if (flag) + { + result = list[list.Count - 1].liveness; + } + else + { + result = 0u; + } + return result; + } + } + + private PartnerLivenessTable m_table; + + private uint m_curExp = 0u; + + private uint m_takeChest = 0u; + + private List m_recordList = new List(); + + public PartnerLivenessDlg View; + + public PartnerLiveness(PartnerLivenessTable table) + { + this.m_table = table; + } + + public PartnerLivenessTable.RowData GetPartnerLivenessRow(uint livenessId, int partnerLevel) + { + for (int i = 0; i < this.m_table.Table.Length; i++) + { + PartnerLivenessTable.RowData rowData = this.m_table.Table[i]; + bool flag = rowData.liveness == livenessId && (long)partnerLevel >= (long)((ulong)rowData.level[0]) && (long)partnerLevel <= (long)((ulong)rowData.level[1]); + if (flag) + { + return this.m_table.Table[i]; + } + } + return null; + } + + public void GetPartnerLivenessRowsByLevel(uint partnerLevel, out List lst) + { + lst = new List(); + for (int i = 0; i < this.m_table.Table.Length; i++) + { + PartnerLivenessTable.RowData rowData = this.m_table.Table[i]; + bool flag = partnerLevel >= rowData.level[0] && partnerLevel <= rowData.level[1]; + if (flag) + { + lst.Add(rowData); + } + } + lst.Sort(new Comparison(this.Compare)); + } + + private int Compare(PartnerLivenessTable.RowData left, PartnerLivenessTable.RowData right) + { + bool flag = left.liveness < right.liveness; + int result; + if (flag) + { + result = -1; + } + else + { + result = 1; + } + return result; + } + + public bool IsChestOpened(int index) + { + uint num = 1u << index; + return (this.m_takeChest & num) > 0u; + } + + public int FindNeedShowReward() + { + bool flag = this.CurExp >= this.MaxExp; + int result; + if (flag) + { + result = 0; + } + else + { + List list; + this.GetPartnerLivenessRowsByLevel(XPartnerDocument.Doc.CurPartnerLevel, out list); + for (int i = 0; i < list.Count; i++) + { + bool flag2 = !this.IsChestOpened(i + 1); + if (flag2) + { + return i; + } + } + result = 0; + } + return result; + } + + public bool IsHadRedPoint() + { + List list; + this.GetPartnerLivenessRowsByLevel(XPartnerDocument.Doc.CurPartnerLevel, out list); + for (int i = 0; i < list.Count; i++) + { + bool flag = !this.IsChestOpened(i + 1) && this.m_curExp >= list[i].liveness; + if (flag) + { + return true; + } + } + return false; + } + + public void ReqPartnerLivenessInfo() + { + RpcC2M_GetPartnerLiveness rpc = new RpcC2M_GetPartnerLiveness(); + XSingleton.singleton.Send(rpc); + } + + public void ReqTakePartnerChest(uint index) + { + RpcC2G_TakePartnerChest rpcC2G_TakePartnerChest = new RpcC2G_TakePartnerChest(); + rpcC2G_TakePartnerChest.oArg.index = index; + XSingleton.singleton.Send(rpcC2G_TakePartnerChest); + } + + public void OnGetPartnerLivenessInfoBack(GetPartnerLivenessRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_curExp = oRes.liveness; + this.m_takeChest = oRes.takedchest; + this.m_recordList.Clear(); + for (int i = 0; i < oRes.record.Count; i++) + { + this.m_recordList.Add(new PartnerLivenessRecord(oRes.record[i])); + } + XPartnerDocument.Doc.IsHadLivenessRedPoint = this.IsHadRedPoint(); + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.FillContent(); + } + } + } + } + } + + public void OnTakePartnerChestBack(int index, TakePartnerChestRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_takeChest = oRes.takedchest; + XPartnerDocument.Doc.IsHadLivenessRedPoint = this.IsHadRedPoint(); + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.ResetBoxRedDot(index - 1); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PartnerLiveness.cs.meta b/Client/Assets/Scripts/XMainClient/PartnerLiveness.cs.meta new file mode 100644 index 00000000..2a3140b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PartnerLiveness.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36825a0f05830fb46aadfcec538378f0 +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PartnerLivenessRecord.cs b/Client/Assets/Scripts/XMainClient/PartnerLivenessRecord.cs new file mode 100644 index 00000000..f28d0129 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PartnerLivenessRecord.cs @@ -0,0 +1,74 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class PartnerLivenessRecord : LoopItemData + { + public string ShowString + { + get + { + return this.m_showString; + } + } + + public string ShowTimeStr + { + get + { + return this.m_showTimeStr; + } + } + + public string Name + { + get + { + return this.m_name; + } + } + + public uint Time + { + get + { + return this.m_time; + } + } + + private string m_showString = ""; + + private string m_showTimeStr = ""; + + private string m_name; + + private uint m_time; + + public PartnerLivenessRecord(PartnerLivenessItem item) + { + this.SetString(item); + this.m_time = item.time; + this.m_name = item.name; + this.m_showTimeStr = XSingleton.singleton.TimeAgoFormatString((int)item.time); + } + + private void SetString(PartnerLivenessItem item) + { + XDailyActivitiesDocument specificDocument = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + ActivityTable.RowData activityBasicInfo = specificDocument.GetActivityBasicInfo(item.actid); + bool flag = activityBasicInfo == null; + if (flag) + { + this.m_showString = null; + XSingleton.singleton.AddErrorLog(string.Format("id is error,{0}", item.actid), null, null, null, null, null); + } + else + { + this.m_showString = string.Format(XSingleton.singleton.GetString("PartnerLivenessRecord"), item.name, activityBasicInfo.name, activityBasicInfo.value); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PartnerLivenessRecord.cs.meta b/Client/Assets/Scripts/XMainClient/PartnerLivenessRecord.cs.meta new file mode 100644 index 00000000..c4dc48da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PartnerLivenessRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d39ac6942c75704ab5b5630014461de +timeCreated: 1611403900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PercentWatcher.cs b/Client/Assets/Scripts/XMainClient/PercentWatcher.cs new file mode 100644 index 00000000..1655d6f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PercentWatcher.cs @@ -0,0 +1,97 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal struct PercentWatcher + { + public double TargetDeltaValue + { + get + { + return this.m_TargetDeltaBasic; + } + } + + public XAttributeDefine BasicAttr + { + get + { + return this.m_BasicAttr; + } + } + + private bool m_bValid; + + private double m_TargetDeltaPercent; + + private double m_TargetDeltaBasic; + + private XAttributeDefine m_BasicAttr; + + private XAttributes m_Atributes; + + public static bool IsValidAttr(XAttributeDefine attr) + { + return attr == XAttributeDefine.XAttr_MaxMP_Percent || attr == XAttributeDefine.XAttr_MaxHP_Percent || attr == XAttributeDefine.XAttr_MaxSuperArmor_Percent; + } + + public PercentWatcher(XAttributes attributes, XAttributeDefine attr, double targetDeltaPercent) + { + this.m_bValid = false; + this.m_TargetDeltaPercent = 0.0; + this.m_TargetDeltaBasic = 0.0; + this.m_BasicAttr = XAttributeDefine.XAttr_Invalid; + this.m_Atributes = null; + bool flag = !PercentWatcher.IsValidAttr(attr); + if (!flag) + { + this.m_BasicAttr = XAttributeCommon.GetAttrCurAttr(attr); + bool flag2 = this.m_BasicAttr == XAttributeDefine.XAttr_Invalid; + if (!flag2) + { + this.m_bValid = true; + this.m_Atributes = attributes; + double attr2 = this.m_Atributes.GetAttr(attr); + bool flag3 = attr2 + targetDeltaPercent <= -1.0; + if (flag3) + { + targetDeltaPercent = -1.0 - attr2 + 0.001; + } + this.m_TargetDeltaPercent = targetDeltaPercent; + double num = Math.Max(0.001, 1.0 + attr2); + double attr3 = this.m_Atributes.GetAttr(this.m_BasicAttr); + this.m_TargetDeltaBasic = attr3 / num * this.m_TargetDeltaPercent; + this.m_TargetDeltaBasic = XCombat.CheckChangeHPLimit(this.m_BasicAttr, this.m_TargetDeltaBasic, attributes.Entity, true, true); + bool flag4 = this.m_TargetDeltaPercent < 0.0; + if (flag4) + { + this._ChangeBasic(); + } + } + } + } + + private void _ChangeBasic() + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = this.m_BasicAttr; + @event.DeltaValue = this.m_TargetDeltaBasic; + @event.Firer = this.m_Atributes.Entity; + XSingleton.singleton.FireEvent(@event); + } + + public void Check() + { + bool flag = !this.m_bValid; + if (!flag) + { + bool flag2 = this.m_TargetDeltaPercent > 0.0; + if (flag2) + { + this._ChangeBasic(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PercentWatcher.cs.meta b/Client/Assets/Scripts/XMainClient/PercentWatcher.cs.meta new file mode 100644 index 00000000..2a0557b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PercentWatcher.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e373ba1fba97aa49ab11e290c2909b9 +timeCreated: 1611404003 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PersonalBuffOpType.cs b/Client/Assets/Scripts/XMainClient/PersonalBuffOpType.cs new file mode 100644 index 00000000..6337d0b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PersonalBuffOpType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum PersonalBuffOpType + { + PullMySelfOwned, + UseBuff, + PullMySelfActing + } +} diff --git a/Client/Assets/Scripts/XMainClient/PersonalBuffOpType.cs.meta b/Client/Assets/Scripts/XMainClient/PersonalBuffOpType.cs.meta new file mode 100644 index 00000000..0fb314d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PersonalBuffOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43171a336df5e9946ba6725d3d22403d +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PersonalCareerBehaviour.cs b/Client/Assets/Scripts/XMainClient/PersonalCareerBehaviour.cs new file mode 100644 index 00000000..6e8bc4fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PersonalCareerBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PersonalCareerBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Tabs/TabTpl"); + this.m_TabPool.SetupPool(null, transform.gameObject, 3u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PersonalCareerBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/PersonalCareerBehaviour.cs.meta new file mode 100644 index 00000000..e3579e03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PersonalCareerBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cd0f8727a454674e8ebaea61626689e +timeCreated: 1611403348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PersonalCareerView.cs b/Client/Assets/Scripts/XMainClient/PersonalCareerView.cs new file mode 100644 index 00000000..cd4ce3b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PersonalCareerView.cs @@ -0,0 +1,406 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PersonalCareerView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/PersonalCareer/PersonalCareer"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Personal_Career); + } + } + + private XPersonalCareerDocument doc = null; + + private Dictionary m_AllTabs = new Dictionary(); + + private PersonalCareerView.CareerTab m_CurrentTab; + + private PersonalCareerView.CareerTab m_PrefabTab = PersonalCareerView.CareerTab.NONE; + + public CareerHomepageHandler HomepageHandler = null; + + public CareerPVPDataHandler PVPHandler = null; + + public CareerTrophyHandler TrophyHandler = null; + + public ulong roleId = 0UL; + + private ulong param1 = 1UL; + + public enum CareerTab + { + NONE, + Homepage, + PVPInfo, + Trophy, + MAX + } + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XPersonalCareerDocument.uuID); + this.m_AllTabs.Clear(); + base.uiBehaviour.m_TabPool.FakeReturnAll(); + for (int i = 1; i <= XPersonalCareerDocument.CareerTable.Table.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_TabPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)base.uiBehaviour.m_TabPool.TplHeight * (i - 1)), 0f) + base.uiBehaviour.m_TabPool.TplPos; + Career.RowData career = XPersonalCareerDocument.GetCareer(i); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(career.TabName); + ixuilabel = (gameObject.transform.Find("Bg/Selected/TextLabel").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(career.TabName); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)career.ID); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._CheckBoxChanged)); + this.m_AllTabs.Add((PersonalCareerView.CareerTab)career.ID, ixuicheckBox); + } + base.uiBehaviour.m_TabPool.ActualReturnAll(false); + } + + private bool _CheckBoxChanged(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this.OnTabChanged((PersonalCareerView.CareerTab)iXUICheckBox.ID); + result = true; + } + return result; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.CloseAllTab(); + bool flag = this.m_PrefabTab == PersonalCareerView.CareerTab.NONE; + if (flag) + { + Career.RowData career = XPersonalCareerDocument.GetCareer(1); + this.m_PrefabTab = (PersonalCareerView.CareerTab)career.ID; + } + this.OnTabChanged(this.m_PrefabTab); + } + + protected override void OnHide() + { + this.roleId = 0UL; + this.doc.HasData.Clear(); + this.m_PrefabTab = PersonalCareerView.CareerTab.NONE; + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.HomepageHandler); + DlgHandlerBase.EnsureUnload(ref this.PVPHandler); + DlgHandlerBase.EnsureUnload(ref this.TrophyHandler); + base.OnUnload(); + } + + private void CloseAllTab() + { + bool flag = this.HomepageHandler != null && this.HomepageHandler.IsVisible(); + if (flag) + { + this.HomepageHandler.SetVisible(false); + } + bool flag2 = this.PVPHandler != null && this.PVPHandler.IsVisible(); + if (flag2) + { + this.PVPHandler.SetVisible(false); + } + bool flag3 = this.TrophyHandler != null && this.TrophyHandler.IsVisible(); + if (flag3) + { + this.TrophyHandler.SetVisible(false); + } + } + + public void OnTabChanged(PersonalCareerView.CareerTab handler) + { + XSingleton.singleton.AddGreenLog("Tab:" + handler.ToString(), null, null, null, null, null); + this.m_CurrentTab = handler; + IXUICheckBox ixuicheckBox; + bool flag = this.m_AllTabs.TryGetValue(handler, out ixuicheckBox); + if (flag) + { + ixuicheckBox.bChecked = true; + } + else + { + XSingleton.singleton.AddErrorLog("No Default Tabs", null, null, null, null, null); + } + PersonalCarrerReqType type = PersonalCarrerReqType.PCRT_HOME_PAGE; + switch (this.m_CurrentTab) + { + case PersonalCareerView.CareerTab.Homepage: + { + bool flag2 = this.HomepageHandler == null; + if (flag2) + { + DlgHandlerBase.EnsureCreate(ref this.HomepageHandler, base.uiBehaviour.transform, true, this); + this.HomepageHandler.SetVisible(false); + } + type = PersonalCarrerReqType.PCRT_HOME_PAGE; + break; + } + case PersonalCareerView.CareerTab.PVPInfo: + { + bool flag3 = this.PVPHandler == null; + if (flag3) + { + DlgHandlerBase.EnsureCreate(ref this.PVPHandler, base.uiBehaviour.transform, true, this); + this.PVPHandler.SetVisible(false); + } + type = PersonalCarrerReqType.PCRT_PVP_PKINFO; + break; + } + case PersonalCareerView.CareerTab.Trophy: + { + bool flag4 = this.TrophyHandler == null; + if (flag4) + { + DlgHandlerBase.EnsureCreate(ref this.TrophyHandler, base.uiBehaviour.transform, true, this); + this.TrophyHandler.SetVisible(false); + } + type = PersonalCarrerReqType.PCRT_TROPHY; + break; + } + } + bool flag5 = this.IsHasData(type); + if (flag5) + { + this.OpenTab(this.m_CurrentTab); + } + else + { + this.doc.ReqGetCareer(type, this.roleId); + } + } + + public bool IsHasData(PersonalCarrerReqType type) + { + bool flag2; + bool flag = this.doc.HasData.TryGetValue(type, out flag2) && flag2; + bool result; + if (flag) + { + XSingleton.singleton.AddLog(type + " HasData", null, null, null, null, null, XDebugColor.XDebug_None); + result = true; + } + else + { + result = false; + } + return result; + } + + public void SetCareer(PersonalCareerArg oArg, PersonalCareerRes oRes) + { + switch (oArg.quest_type) + { + case PersonalCarrerReqType.PCRT_HOME_PAGE: + this.OpenTab(PersonalCareerView.CareerTab.Homepage); + this.doc.HasData[oArg.quest_type] = true; + this.HomepageHandler.SetData(oRes.home_page); + break; + case PersonalCarrerReqType.PCRT_PVP_PKINFO: + this.OpenTab(PersonalCareerView.CareerTab.PVPInfo); + this.doc.HasData[oArg.quest_type] = true; + this.PVPHandler.SetData(oRes.pvp_info); + break; + case PersonalCarrerReqType.PCRT_TROPHY: + this.OpenTab(PersonalCareerView.CareerTab.Trophy); + this.doc.HasData[oArg.quest_type] = true; + this.TrophyHandler.SetData(oRes.trophy_data); + break; + } + } + + public void OpenTab(PersonalCareerView.CareerTab tab) + { + this.CloseAllTab(); + switch (tab) + { + case PersonalCareerView.CareerTab.Homepage: + this.HomepageHandler.SetVisible(true); + break; + case PersonalCareerView.CareerTab.PVPInfo: + this.PVPHandler.SetVisible(true); + break; + case PersonalCareerView.CareerTab.Trophy: + this.TrophyHandler.SetVisible(true); + this.TrophyHandler.RefreshList(false); + break; + } + } + + public void OpenOtherPush(List param) + { + for (int i = 0; i < param.Count; i++) + { + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "param", + i, + ":", + param[i] + }), null, null, null, null, null); + } + bool flag = param.Count < 2; + if (!flag) + { + this.roleId = ((param[0] == XSingleton.singleton.XPlayerData.RoleID) ? 0UL : param[0]); + this.m_PrefabTab = (PersonalCareerView.CareerTab)param[1]; + this.SetVisibleWithAnimation(true, null); + bool flag2 = this.m_PrefabTab == PersonalCareerView.CareerTab.PVPInfo; + if (flag2) + { + int index = 0; + bool flag3 = param.Count > 2; + if (flag3) + { + index = (int)param[2]; + } + this.PVPHandler.OnTabChanged(index); + } + } + } + + public void ShareClick() + { + bool flag = this.roleId > 0UL; + if (!flag) + { + XSingleton.singleton.AddGreenLog("ShareClick", null, null, null, null, null); + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.ShowGlory); + XSingleton.singleton.StartExternalScreenShotView(null); + } + } + + public void PushClick(ulong p1 = 0UL) + { + bool flag = this.roleId > 0UL; + if (!flag) + { + XSingleton.singleton.AddGreenLog("PushClick", null, null, null, null, null); + this.param1 = p1; + DlgBase.singleton.DoOpenChatWindow(null); + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + DlgBase.singleton.RegistLinkSend(specificDocument.GetOpenSysLinkString(this.GetNotice(), new object[0]), new Action(this.OnChatSend)); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + + private void OnChatSend() + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + specificDocument.SendOpenSysInvitation(this.GetNotice(), new ulong[] + { + XSingleton.singleton.XPlayerData.RoleID, + (ulong)((long)XFastEnumIntEqualityComparer.ToInt(this.m_CurrentTab)), + this.param1 + }); + } + + private NoticeType GetNotice() + { + NoticeType result = NoticeType.NT_OPENSYS_CAREER_MAIN; + switch (this.m_CurrentTab) + { + case PersonalCareerView.CareerTab.Homepage: + result = NoticeType.NT_OPENSYS_CAREER_MAIN; + break; + case PersonalCareerView.CareerTab.PVPInfo: + result = NoticeType.NT_OPENSYS_CAREER_PVP; + break; + case PersonalCareerView.CareerTab.Trophy: + result = NoticeType.NT_OPENSYS_CAREER_Trophy; + break; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PersonalCareerView.cs.meta b/Client/Assets/Scripts/XMainClient/PersonalCareerView.cs.meta new file mode 100644 index 00000000..b643bf8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PersonalCareerView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cfe231329e7f1c48a1dcf17504a4394 +timeCreated: 1611403504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PetChange.cs b/Client/Assets/Scripts/XMainClient/PetChange.cs new file mode 100644 index 00000000..06864cb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetChange.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum PetChange + { + None, + All, + Exp, + ExpTransfer + } +} diff --git a/Client/Assets/Scripts/XMainClient/PetChange.cs.meta b/Client/Assets/Scripts/XMainClient/PetChange.cs.meta new file mode 100644 index 00000000..45b34115 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 697e260aab2a365448f16593ede0b763 +timeCreated: 1611403886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PetExpTransferHandler.cs b/Client/Assets/Scripts/XMainClient/PetExpTransferHandler.cs new file mode 100644 index 00000000..bc3e1ff7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetExpTransferHandler.cs @@ -0,0 +1,679 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PetExpTransferHandler : DlgHandlerBase + { + public int ExpTransferPetCount + { + get + { + return this.doc.Pets.Count - 1; + } + } + + private bool CanPlayExpUp + { + get + { + return this.ChangeExp && !this.HasGetSkillUI && !this.InPlayExpUp[0] && !this.InPlayExpUp[1]; + } + } + + public bool HasGetSkillUI + { + get + { + bool flag = this.SkillHandler[0] != null && this.SkillHandler[0].HasGetSkillUI; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.SkillHandler[1] != null && this.SkillHandler[1].HasGetSkillUI; + result = flag2; + } + return result; + } + set + { + bool flag = this.SkillHandler[0] != null; + if (flag) + { + this.SkillHandler[0].HasGetSkillUI = value; + } + bool flag2 = this.SkillHandler[1] != null; + if (flag2) + { + this.SkillHandler[1].HasGetSkillUI = value; + } + } + } + + public int DefaultPet + { + get + { + bool flag = this.doc.CurSelectedIndex == 0; + int result; + if (flag) + { + result = 1; + } + else + { + result = 0; + } + return result; + } + } + + protected override string FileName + { + get + { + return "GameSystem/PetExptransfer"; + } + } + + public int CurExpTransferSelectedIndex + { + get + { + return this.m_CurExpTransferSelected; + } + } + + public XPet CurExpTransferSelectedPet + { + get + { + bool flag = this.m_CurExpTransferSelected >= this.doc.Pets.Count || this.m_CurExpTransferSelected < 0; + XPet result; + if (flag) + { + result = null; + } + else + { + result = this.doc.Pets[this.m_CurExpTransferSelected]; + } + return result; + } + } + + private XPetDocument doc; + + public List petList = new List(); + + public bool ChangeExp; + + public bool[] InPlayExpUp = new bool[2]; + + private int[] AddExp = new int[2]; + + private XPet[] TransferPet = new XPet[2]; + + private XDummy[] m_Dummy = new XDummy[2]; + + public XPetSkillHandler[] SkillHandler = new XPetSkillHandler[2]; + + private string[] PetExpTransferCost = XSingleton.singleton.GetValue("PetExpTransferCost").Split(new char[] + { + '|', + '=' + }); + + public bool m_CanTransfer = true; + + private IXUIButton m_Close; + + private IXUIButton m_BtnTransfer; + + private Transform[] m_Pet = new Transform[2]; + + private IXUIProgress[] m_ExpBar = new IXUIProgress[2]; + + private IXUILabel[] m_ExpBarLevel = new IXUILabel[2]; + + private Transform[] m_Skill = new Transform[2]; + + private IXUILabel[] m_HistoryLevelMAX = new IXUILabel[2]; + + private IUIDummy[] m_PetSnapshot = new IUIDummy[2]; + + private IXUIScrollView m_PetListScrollView; + + private IXUIWrapContent m_WrapContent; + + private Transform m_Ready; + + private Transform m_Start; + + private IXUITweenTool m_End; + + private IXUISprite m_Arrow; + + private Transform m_CostItem; + + private IXUILabel m_CostNum; + + private int m_CurExpTransferSelected = -1; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XPetDocument.uuID); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_PetListScrollView = (base.transform.Find("Bg/PetListPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/PetListPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_Pet[0] = base.transform.Find("Bg/ExpTransferPanel/PetLeft"); + this.m_Pet[1] = base.transform.Find("Bg/ExpTransferPanel/PetRight"); + for (int i = 0; i < 2; i++) + { + this.m_ExpBar[i] = (this.m_Pet[i].Find("ExpBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_ExpBarLevel[i] = (this.m_ExpBar[i].gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_Skill[i] = this.m_Pet[i].Find("Skill"); + this.m_HistoryLevelMAX[i] = (this.m_Pet[i].Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_PetSnapshot[i] = (this.m_Pet[i].Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + } + this.m_Ready = base.transform.Find("Bg/ExpTransferPanel/TransferStatus/Ready"); + this.m_Start = base.transform.Find("Bg/ExpTransferPanel/TransferStatus/Start"); + this.m_End = (base.transform.Find("Bg/ExpTransferPanel/TransferStatus/End").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Arrow = (this.m_Ready.Find("Arrow").GetComponent("XUISprite") as IXUISprite); + this.m_CostItem = this.m_Ready.Find("Cost/Item"); + this.m_CostNum = (this.m_Ready.Find("Cost/Num").GetComponent("XUILabel") as IXUILabel); + this.m_BtnTransfer = (this.m_Ready.Find("BtnTransfer").GetComponent("XUIButton") as IXUIButton); + DlgHandlerBase.EnsureCreate(ref this.SkillHandler[0], this.m_Skill[0].gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.SkillHandler[1], this.m_Skill[1].gameObject, null, true); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + this.m_BtnTransfer.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnExpTransferClicked)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnPetListItemUpdated)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + public bool OnExpTransferClicked(IXUIButton btn) + { + bool canTransfer = this.m_CanTransfer; + if (canTransfer) + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.PetExpTransfer; + rpcC2G_PetOperation.oArg.uid = this.doc.CurSelectedPet.UID; + rpcC2G_PetOperation.oArg.destpet_id = this.CurExpTransferSelectedPet.UID; + XSingleton.singleton.Send(rpcC2G_PetOperation); + this.m_CanTransfer = false; + } + else + { + XSingleton.singleton.AddLog("Click To Fast", null, null, null, null, null, XDebugColor.XDebug_None); + } + return true; + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("PetExpTransferHandler", 1); + this.Select(this.DefaultPet, true); + this.ClearPetAnimation(); + this.RefreshPetModel(1); + } + + protected override void OnHide() + { + DlgBase.singleton.UnloadFx(DlgBase.singleton._LevelUpFx); + base.Return3DAvatarPool(); + for (int i = 0; i < 2; i++) + { + bool flag = this.m_PetSnapshot[i] != null; + if (flag) + { + this.m_PetSnapshot[i].RefreshRenderQueue = null; + } + } + this.Select(-1, false); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + this.doc.View.RefreshPage(false); + } + base.OnHide(); + } + + public override void OnUnload() + { + for (int i = 0; i < 2; i++) + { + bool flag = this.m_PetSnapshot[i] != null; + if (flag) + { + this.m_PetSnapshot[i].RefreshRenderQueue = null; + this.m_PetSnapshot[i] = null; + } + } + base.Return3DAvatarPool(); + this.Select(-1, false); + this.doc = null; + DlgHandlerBase.EnsureUnload(ref this.SkillHandler[0]); + DlgHandlerBase.EnsureUnload(ref this.SkillHandler[1]); + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("PetExpTransferHandler", 1); + } + + public void RefreshList(bool bResetPosition = true) + { + int num = Math.Min(this.doc.PetCountMax, this.ExpTransferPetCount); + this.m_WrapContent.SetContentCount(num, false); + if (bResetPosition) + { + this.m_PetListScrollView.ResetPosition(); + } + else + { + this.m_WrapContent.RefreshAllVisibleContents(); + } + } + + private void OnPetListItemUpdated(Transform t, int index) + { + bool flag = index < 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("index:" + index, null, null, null, null, null); + } + else + { + IXUILabel ixuilabel = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Item/uiIcon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("Item/Quality").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("Mount").gameObject; + GameObject gameObject2 = t.Find("Fight").gameObject; + IXUISprite ixuisprite3 = t.GetComponent("XUISprite") as IXUISprite; + GameObject gameObject3 = t.Find("Selected").gameObject; + GameObject gameObject4 = t.Find("Item").gameObject; + bool flag2 = index >= this.doc.CurSelectedIndex; + if (flag2) + { + index++; + } + bool flag3 = index >= this.doc.Pets.Count; + if (flag3) + { + ixuilabel.SetText(""); + gameObject4.SetActive(false); + gameObject.SetActive(false); + gameObject2.SetActive(false); + gameObject3.SetActive(false); + } + else + { + XPet xpet = this.doc.Pets[index]; + gameObject4.SetActive(true); + ixuilabel.SetText("Lv." + xpet.showLevel); + gameObject3.SetActive(index == this.m_CurExpTransferSelected); + gameObject.SetActive(xpet.UID == this.doc.CurMount); + gameObject2.SetActive(xpet.UID == this.doc.CurFightUID); + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(xpet.ID); + bool flag4 = petInfo != null; + if (flag4) + { + ixuisprite.SetSprite(petInfo.icon); + } + ixuisprite2.SetSprite(XSingleton.singleton.GetItemQualityFrame((int)petInfo.quality, 0)); + ixuisprite3.ID = (ulong)((long)index); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnPetClicked)); + } + } + } + + private void _OnPetClicked(IXUISprite iSp) + { + int index = (int)iSp.ID; + this.Select(index, false); + } + + public void Select(int index, bool bResetPosition = false) + { + this.ClearPetAnimation(); + bool flag = index <= this.ExpTransferPetCount; + if (flag) + { + this.m_CurExpTransferSelected = index; + bool flag2 = index != -1; + if (flag2) + { + XSingleton.singleton.AddGreenLog("uid:" + this.CurExpTransferSelectedPet.UID, null, null, null, null, null); + } + } + this.TransferPet[0] = this.CurExpTransferSelectedPet; + this.TransferPet[1] = this.doc.CurSelectedPet; + this.m_CanTransfer = true; + this.ShowCurPet(0); + bool flag3 = base.IsVisible(); + if (flag3) + { + this.RefreshPage(bResetPosition); + this.RefreshPetModel(0); + } + } + + public void ShowCurPet(int index) + { + bool flag = this.TransferPet[index] != null; + if (flag) + { + this.TransferPet[index].Refresh(); + this.RefreshStatus(PetExpTransferStatus.Ready); + } + this.doc.petGetSkill.Clear(); + } + + public void Transfer(ulong uid1, ulong uid2) + { + bool flag = (uid1 == this.doc.CurSelectedPet.UID && uid2 == this.CurExpTransferSelectedPet.UID) || (uid2 == this.doc.CurSelectedPet.UID && uid1 == this.CurExpTransferSelectedPet.UID); + if (flag) + { + this.ChangeExp = true; + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.doc.CurSelectedPet == null || this.CurExpTransferSelectedPet == null; + if (!flag2) + { + bool canPlayExpUp = this.CanPlayExpUp; + if (canPlayExpUp) + { + this.InPlayExpUp[0] = true; + this.InPlayExpUp[1] = true; + int requiredExp = this.doc.GetRequiredExp(this.CurExpTransferSelectedPet.ID, this.CurExpTransferSelectedPet.showLevel); + this.AddExp[0] = this.doc.GetAddExp(requiredExp); + int requiredExp2 = this.doc.GetRequiredExp(this.doc.CurSelectedPet.ID, this.doc.CurSelectedPet.showLevel); + this.AddExp[1] = this.doc.GetAddExp(requiredExp2); + this.RefreshStatus(PetExpTransferStatus.Start); + } + bool flag3 = !this.HasGetSkillUI; + if (flag3) + { + this.PlayExpUpAnim(0); + this.PlayExpUpAnim(1); + } + } + } + } + + private void PlayExpUpAnim(int index) + { + bool flag = !this.InPlayExpUp[index]; + if (!flag) + { + XPet xpet = this.TransferPet[index]; + int requiredExp = this.doc.GetRequiredExp(xpet.ID, xpet.showLevel); + bool flag2 = xpet.showLevel < xpet.Level || (xpet.showLevel == xpet.Level && xpet.showExp < xpet.Exp); + if (flag2) + { + xpet.showExp += this.AddExp[index]; + bool flag3 = xpet.showExp >= requiredExp && xpet.showLevel < xpet.Level; + if (flag3) + { + DlgBase.singleton.PlayPetLevelUpFx(this.m_PetSnapshot[index].transform, false); + xpet.showExp = 0; + xpet.showLevel++; + requiredExp = this.doc.GetRequiredExp(xpet.ID, xpet.showLevel); + this.AddExp[index] = this.doc.GetAddExp(requiredExp); + this.RefreshPage(false); + bool flag4 = xpet.showLevel > xpet.Level; + if (flag4) + { + this.PlayEnd(index); + } + this.SkillHandler[index].PlayNewSkillTip(this.GetNewSkill(xpet), 0u); + } + bool flag5 = xpet.showExp >= xpet.Exp && xpet.showLevel >= xpet.Level; + if (flag5) + { + this.PlayEnd(index); + } + } + else + { + xpet.showExp -= this.AddExp[index]; + bool flag6 = xpet.showExp < 0 && xpet.showLevel > xpet.Level; + if (flag6) + { + xpet.showLevel--; + requiredExp = this.doc.GetRequiredExp(xpet.ID, xpet.showLevel); + xpet.showExp = requiredExp; + this.AddExp[index] = this.doc.GetAddExp(requiredExp); + this.RefreshPage(false); + bool flag7 = xpet.showLevel < xpet.Level; + if (flag7) + { + this.PlayEnd(index); + } + } + bool flag8 = xpet.showExp <= xpet.Exp && xpet.showLevel <= xpet.Level; + if (flag8) + { + this.PlayEnd(index); + } + } + this.RefreshExp(index); + } + } + + private void PlayEnd(int index) + { + this.TransferPet[index].showExp = this.TransferPet[index].Exp; + this.TransferPet[index].showLevel = this.TransferPet[index].Level; + this.InPlayExpUp[index] = false; + bool flag = !this.InPlayExpUp[index ^ 1]; + if (flag) + { + this.ChangeExp = false; + this.RefreshStatus(PetExpTransferStatus.End); + } + this.RefreshPage(false); + } + + public void ClearPetAnimation() + { + this.ChangeExp = false; + this.HasGetSkillUI = false; + this.InPlayExpUp[0] = false; + this.InPlayExpUp[1] = false; + bool flag = this.TransferPet[0] != null; + if (flag) + { + this.TransferPet[0].showExp = this.TransferPet[0].Exp; + this.TransferPet[0].showLevel = this.TransferPet[0].Level; + } + bool flag2 = this.TransferPet[1] != null; + if (flag2) + { + this.TransferPet[1].showExp = this.TransferPet[1].Exp; + this.TransferPet[1].showLevel = this.TransferPet[1].Level; + } + } + + public void RefreshPage(bool bResetPosition = false) + { + this.RefreshList(bResetPosition); + this.RefreshContent(0); + this.RefreshContent(1); + this.RefreshCost(); + } + + public void RefreshContent(int index) + { + bool flag = this.TransferPet[index] == null; + if (flag) + { + this.m_Pet[index].gameObject.SetActive(false); + } + else + { + this.m_Pet[index].gameObject.SetActive(true); + this.RefreshExp(index); + this.SkillHandler[index].Refresh(this.TransferPet[index]); + } + } + + public void RefreshStatus(PetExpTransferStatus status) + { + this.m_Ready.gameObject.SetActive(status == PetExpTransferStatus.Ready); + this.m_Start.gameObject.SetActive(status == PetExpTransferStatus.Start); + this.m_End.gameObject.SetActive(status == PetExpTransferStatus.End); + bool flag = status == PetExpTransferStatus.Ready; + if (flag) + { + bool flag2 = this.TransferPet[0].Level == this.TransferPet[1].Level; + if (flag2) + { + this.m_Arrow.gameObject.SetActive(false); + } + else + { + this.m_Arrow.gameObject.SetActive(true); + this.m_Arrow.SetFlipHorizontal(this.TransferPet[0].Level > this.TransferPet[1].Level); + } + this.RefreshHistoryLevelMAX(0); + this.RefreshHistoryLevelMAX(1); + } + bool flag3 = status == PetExpTransferStatus.End; + if (flag3) + { + this.m_End.PlayTween(true, -1f); + } + } + + public void RefreshHistoryLevelMAX(int index) + { + this.m_HistoryLevelMAX[index].SetText(""); + } + + public void RefreshExp(int index) + { + XPet xpet = this.TransferPet[index]; + bool flag = xpet == null; + if (!flag) + { + bool flag2 = this.doc.IsMaxLevel(xpet.ID, xpet.showLevel); + if (flag2) + { + this.m_ExpBar[index].value = 0f; + this.m_ExpBarLevel[index].SetText(string.Format("Lv.{0}", xpet.showLevel.ToString())); + this.doc.InPlayExpUp = false; + } + else + { + int num; + int num2; + this.doc.GetExpInfo(xpet, out num, out num2); + this.m_ExpBar[index].value = Math.Min((float)num / (float)num2, 1f); + this.m_ExpBarLevel[index].SetText(string.Format("Lv.{0}", xpet.showLevel.ToString())); + } + } + } + + public void RefreshCost() + { + int num = int.Parse(this.PetExpTransferCost[0]); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_CostItem.gameObject, num, 0, false); + ulong itemCount = XSingleton.singleton.Doc.XBagDoc.GetItemCount(num); + string text = this.PetExpTransferCost[1]; + string arg = (itemCount < ulong.Parse(text)) ? "[ff0000]" : "[ffffff]"; + this.m_CostNum.SetText(string.Format("{0}{1}[-]/{2}", arg, itemCount.ToString(), text)); + IXUISprite ixuisprite = this.m_CostItem.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + } + + private void _OnItemClick(IXUISprite iSp) + { + bool flag = XSingleton.singleton.Doc.XBagDoc.GetItemCount((int)iSp.ID) < ulong.Parse(this.PetExpTransferCost[1]); + if (flag) + { + XSingleton.singleton.ShowItemAccess((int)iSp.ID, null); + } + else + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + } + + public int GetNewSkill(XPet pet) + { + for (int i = 0; i < this.doc.petGetSkill.Count; i++) + { + bool flag = (ulong)this.doc.petGetSkill[i].petLvl == (ulong)((long)pet.showLevel); + if (flag) + { + int j = 0; + while (j < pet.SkillList.Count) + { + bool flag2 = pet.SkillList[j].id == this.doc.petGetSkill[i].skillid; + if (flag2) + { + XSingleton.singleton.AddLog("Get Skill:" + this.doc.petGetSkill[i].skillid, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = (long)j < (long)((ulong)XPet.FIX_SKILL_COUNT_MAX); + if (flag3) + { + pet.ShowSkillList[j].open = true; + this.doc.petGetSkill.Remove(this.doc.petGetSkill[i]); + return j; + } + pet.ShowSkillList.Add(pet.SkillList[j]); + this.doc.petGetSkill.Remove(this.doc.petGetSkill[i]); + return pet.ShowSkillList.Count - 1; + } + else + { + j++; + } + } + } + } + return -1; + } + + public void RefreshPetModel(int index) + { + bool flag = this.TransferPet[index] == null; + if (!flag) + { + this.m_Dummy[index] = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, XPetDocument.GetPresentID(this.TransferPet[index].ID), this.m_PetSnapshot[index], this.m_Dummy[index], 1f); + DlgBase.singleton.PetActionChange(XPetActionFile.IDLE, this.TransferPet[index].ID, this.m_Dummy[index], false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PetExpTransferHandler.cs.meta b/Client/Assets/Scripts/XMainClient/PetExpTransferHandler.cs.meta new file mode 100644 index 00000000..ed3c6ee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetExpTransferHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bec05bbc93ebb1c469d72e0f8f647164 +timeCreated: 1611404481 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PetExpTransferStatus.cs b/Client/Assets/Scripts/XMainClient/PetExpTransferStatus.cs new file mode 100644 index 00000000..8ed38333 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetExpTransferStatus.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum PetExpTransferStatus + { + Ready = 1, + Start, + End + } +} diff --git a/Client/Assets/Scripts/XMainClient/PetExpTransferStatus.cs.meta b/Client/Assets/Scripts/XMainClient/PetExpTransferStatus.cs.meta new file mode 100644 index 00000000..d6e000a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetExpTransferStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eaf0a7dee17a7ca4d94b768cf905a711 +timeCreated: 1611404781 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PetSex.cs b/Client/Assets/Scripts/XMainClient/PetSex.cs new file mode 100644 index 00000000..a78cfe32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetSex.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum PetSex + { + None, + Boy, + Girl + } +} diff --git a/Client/Assets/Scripts/XMainClient/PetSex.cs.meta b/Client/Assets/Scripts/XMainClient/PetSex.cs.meta new file mode 100644 index 00000000..53529a57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetSex.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 125e97068d9322d41aa1be443715ba1f +timeCreated: 1611403241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PetSkillLearnHandler.cs b/Client/Assets/Scripts/XMainClient/PetSkillLearnHandler.cs new file mode 100644 index 00000000..c632675d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetSkillLearnHandler.cs @@ -0,0 +1,149 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PetSkillLearnHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/PetSkillLearn"; + } + } + + private XPetDocument doc; + + private IXUIButton m_Close; + + private IXUIButton m_Help; + + private IXUIButton m_BtnGetSkillBook; + + private IXUIScrollView m_PetListScrollView; + + private IXUIWrapContent m_WrapContent; + + protected override void Init() + { + XSingleton.singleton.AddGreenLog("Init", null, null, null, null, null); + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XPetDocument.uuID); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_PetListScrollView = (base.transform.Find("Bg/SkillBookPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/SkillBookPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_BtnGetSkillBook = (base.transform.Find("Bg/BtnGetSkillBook").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnSkillBookListUpdated)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + this.m_BtnGetSkillBook.ID = ulong.Parse(XSingleton.singleton.GetValue("PetGoBuySkillBook")); + this.m_BtnGetSkillBook.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoClick)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Horse_LearnSkill); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshList(true); + XSingleton.singleton.AddGreenLog("OnShow", null, null, null, null, null); + } + + protected override void OnHide() + { + XSingleton.singleton.AddGreenLog("OnHide", null, null, null, null, null); + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.AddGreenLog("OnUnload", null, null, null, null, null); + this.doc = null; + base.OnUnload(); + } + + public void RefreshList(bool bResetPosition = true) + { + int count = this.doc.GetSkillBook().Count; + this.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + this.m_PetListScrollView.ResetPosition(); + } + else + { + this.m_WrapContent.RefreshAllVisibleContents(); + } + } + + private void OnSkillBookListUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this.doc.SkillBookList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("index:" + index, null, null, null, null, null); + } + else + { + Transform transform = t.Find("Item"); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = t.Find("BtnLearn").GetComponent("XUIButton") as IXUIButton; + XItem xitem = this.doc.SkillBookList[index]; + XSingleton.singleton.DrawItem(transform.gameObject, xitem); + ixuisprite.ID = (ulong)((long)xitem.itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + ixuibutton.ID = xitem.uid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnLearnSkillClick)); + PetSkillBook.RowData petSkillBook = XPetDocument.GetPetSkillBook((uint)xitem.itemID); + IXUILabel ixuilabel = t.Find("Description").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(petSkillBook.Description); + } + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + + private bool _OnLearnSkillClick(IXUIButton btn) + { + this.ReqRecentMount(btn.ID, this.doc.CurSelectedPet.UID); + return true; + } + + private bool OnGoClick(IXUIButton btn) + { + XSingleton.singleton.OpenSystem((XSysDefine)btn.ID, 0UL); + return true; + } + + public void ReqRecentMount(ulong itemuid, ulong petuid) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = itemuid; + rpcC2G_UseItem.oArg.petid = petuid; + XSingleton.singleton.Send(rpcC2G_UseItem); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PetSkillLearnHandler.cs.meta b/Client/Assets/Scripts/XMainClient/PetSkillLearnHandler.cs.meta new file mode 100644 index 00000000..59f0e63b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PetSkillLearnHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a703d44456c127b48ae4aa95aae757b1 +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PkInfo.cs b/Client/Assets/Scripts/XMainClient/PkInfo.cs new file mode 100644 index 00000000..165e87a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PkInfo.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class PkInfo + { + public uint percent + { + get + { + bool flag = this.win + this.lose == 0u; + uint result; + if (flag) + { + result = 100u; + } + else + { + bool flag2 = this.win == 0u; + if (flag2) + { + result = 0u; + } + else + { + result = Math.Max(1u, 100u * this.win / (this.win + this.lose)); + } + } + return result; + } + } + + public RoleSmallInfo brief; + + public uint win; + + public uint lose; + + public uint point; + + public List records; + } +} diff --git a/Client/Assets/Scripts/XMainClient/PkInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PkInfo.cs.meta new file mode 100644 index 00000000..91610d7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PkInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e03f16f516fb8e4a827de01c0d0aec1 +timeCreated: 1611403697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_Info.cs b/Client/Assets/Scripts/XMainClient/Player_Info.cs new file mode 100644 index 00000000..1214f9c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_Info.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + internal enum Player_Info + { + Equip = 1, + Skill, + Avatar, + Emblem, + Guild, + Pet, + Sprite, + Artifact + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_Info.cs.meta b/Client/Assets/Scripts/XMainClient/Player_Info.cs.meta new file mode 100644 index 00000000..10c30940 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_Info.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31243785dd71fa14282dfed8260065ff +timeCreated: 1611403541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs b/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs new file mode 100644 index 00000000..a109d7be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Player_academic_buff_fuhuo + { + public static bool ReviveAlly(XSkill skill) + { + return true; + } + + public static bool ExternalCanCast() + { + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < ally.Count; i++) + { + bool flag = ally[i].IsRole && !ally[i].IsPlayer && ally[i].IsDead; + if (flag) + { + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs.meta b/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs.meta new file mode 100644 index 00000000..1e5404b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_academic_buff_fuhuo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fbb7d9c6acca08f4a8bcbf553fc9495c +timeCreated: 1611404932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_assassin_attack_chakelahuanying_dash.cs b/Client/Assets/Scripts/XMainClient/Player_assassin_attack_chakelahuanying_dash.cs new file mode 100644 index 00000000..237f3f55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_assassin_attack_chakelahuanying_dash.cs @@ -0,0 +1,77 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Player_assassin_attack_chakelahuanying_dash + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 0.033f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 0.566f; + + private static float _fadeInTime = 0.1f; + + private static XTimerMgr.ElapsedEventHandler _Veil; + + private static XTimerMgr.ElapsedEventHandler _Unveil; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !Player_assassin_attack_chakelahuanying_dash._veiled; + if (flag) + { + Player_assassin_attack_chakelahuanying_dash._veiled = true; + bool flag2 = Player_assassin_attack_chakelahuanying_dash._Veil == null; + if (flag2) + { + Player_assassin_attack_chakelahuanying_dash._Veil = new XTimerMgr.ElapsedEventHandler(Player_assassin_attack_chakelahuanying_dash.Veil); + } + Player_assassin_attack_chakelahuanying_dash._token = XSingleton.singleton.SetTimer(Player_assassin_attack_chakelahuanying_dash._startVeil, Player_assassin_attack_chakelahuanying_dash._Veil, skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(Player_assassin_attack_chakelahuanying_dash._token); + Player_assassin_attack_chakelahuanying_dash.Unveil(skill.Firer); + Player_assassin_attack_chakelahuanying_dash._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = Player_assassin_attack_chakelahuanying_dash._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + bool flag = Player_assassin_attack_chakelahuanying_dash._Unveil == null; + if (flag) + { + Player_assassin_attack_chakelahuanying_dash._Unveil = new XTimerMgr.ElapsedEventHandler(Player_assassin_attack_chakelahuanying_dash.Unveil); + } + Player_assassin_attack_chakelahuanying_dash._token = XSingleton.singleton.SetTimer(Player_assassin_attack_chakelahuanying_dash._veilDuration, Player_assassin_attack_chakelahuanying_dash._Unveil, o); + } + + private static void Unveil(object o) + { + bool flag = Player_assassin_attack_chakelahuanying_dash._token > 0u; + if (flag) + { + Player_assassin_attack_chakelahuanying_dash._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = Player_assassin_attack_chakelahuanying_dash._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_assassin_attack_chakelahuanying_dash.cs.meta b/Client/Assets/Scripts/XMainClient/Player_assassin_attack_chakelahuanying_dash.cs.meta new file mode 100644 index 00000000..d49a4b36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_assassin_attack_chakelahuanying_dash.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abf1e5e301529624ca8e20bda143cadf +timeCreated: 1611404309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou.cs b/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou.cs new file mode 100644 index 00000000..6912c9a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class Player_cleric_attack_chongjizhishou + { + public static bool CallBomber(XSkill skill) + { + XSkillComponent skill2 = skill.Firer.Skill; + bool flag = skill2.SkillMobs != null; + if (flag) + { + for (int i = 0; i < skill2.SkillMobs.Count; i++) + { + bool flag2 = !XEntity.ValideEntity(skill2.SkillMobs[i]); + if (!flag2) + { + XSkill.SkillResult(skill.Token, skill.Firer, skill.MainCore, skill.MainCore.Soul.Result[0].Index, skill.MainCore.ID, skill.MainCore.Soul.Result[0].Token, skill2.SkillMobs[i].Rotate.GetMeaningfulFaceVector3(), skill2.SkillMobs[i].EngineObject.Position); + skill.MainCore.ClearHurtTarget(); + } + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou.cs.meta b/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou.cs.meta new file mode 100644 index 00000000..509ac943 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e04403210b71b324e9222267bffdf609 +timeCreated: 1611404697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou_ex.cs b/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou_ex.cs new file mode 100644 index 00000000..722919d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou_ex.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class Player_cleric_attack_chongjizhishou_ex + { + public static bool CallBomber(XSkill skill) + { + XSkillComponent skill2 = skill.Firer.Skill; + bool flag = skill2.SkillMobs != null; + if (flag) + { + for (int i = 0; i < skill2.SkillMobs.Count; i++) + { + bool flag2 = !XEntity.ValideEntity(skill2.SkillMobs[i]); + if (!flag2) + { + XSkill.SkillResult(skill.Token, skill.Firer, skill.MainCore, skill.MainCore.Soul.Result[0].Index, skill.MainCore.ID, skill.MainCore.Soul.Result[0].Token, skill2.SkillMobs[i].Rotate.GetMeaningfulFaceVector3(), skill2.SkillMobs[i].EngineObject.Position); + skill.MainCore.ClearHurtTarget(); + } + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou_ex.cs.meta b/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou_ex.cs.meta new file mode 100644 index 00000000..0e062f34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_cleric_attack_chongjizhishou_ex.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a5c7e63b8b45ac4284e949d2a2c298d +timeCreated: 1611404200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_kali_attack_reqingsihuo.cs b/Client/Assets/Scripts/XMainClient/Player_kali_attack_reqingsihuo.cs new file mode 100644 index 00000000..0bdff6b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_kali_attack_reqingsihuo.cs @@ -0,0 +1,77 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Player_kali_attack_reqingsihuo + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 1f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 3.2f; + + private static float _fadeInTime = 0.1f; + + private static XTimerMgr.ElapsedEventHandler _Veil; + + private static XTimerMgr.ElapsedEventHandler _Unveil; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !Player_kali_attack_reqingsihuo._veiled; + if (flag) + { + Player_kali_attack_reqingsihuo._veiled = true; + bool flag2 = Player_kali_attack_reqingsihuo._Veil == null; + if (flag2) + { + Player_kali_attack_reqingsihuo._Veil = new XTimerMgr.ElapsedEventHandler(Player_kali_attack_reqingsihuo.Veil); + } + Player_kali_attack_reqingsihuo._token = XSingleton.singleton.SetTimer(Player_kali_attack_reqingsihuo._startVeil, Player_kali_attack_reqingsihuo._Veil, skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(Player_kali_attack_reqingsihuo._token); + Player_kali_attack_reqingsihuo.Unveil(skill.Firer); + Player_kali_attack_reqingsihuo._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = Player_kali_attack_reqingsihuo._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + bool flag = Player_kali_attack_reqingsihuo._Unveil == null; + if (flag) + { + Player_kali_attack_reqingsihuo._Unveil = new XTimerMgr.ElapsedEventHandler(Player_kali_attack_reqingsihuo.Unveil); + } + Player_kali_attack_reqingsihuo._token = XSingleton.singleton.SetTimer(Player_kali_attack_reqingsihuo._veilDuration, Player_kali_attack_reqingsihuo._Unveil, o); + } + + private static void Unveil(object o) + { + bool flag = Player_kali_attack_reqingsihuo._token > 0u; + if (flag) + { + Player_kali_attack_reqingsihuo._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = Player_kali_attack_reqingsihuo._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_kali_attack_reqingsihuo.cs.meta b/Client/Assets/Scripts/XMainClient/Player_kali_attack_reqingsihuo.cs.meta new file mode 100644 index 00000000..b8ae2351 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_kali_attack_reqingsihuo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e5ce33edf5b1a44abbe3ac2ba451985 +timeCreated: 1611403904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_sorceress_dash.cs b/Client/Assets/Scripts/XMainClient/Player_sorceress_dash.cs new file mode 100644 index 00000000..03d92712 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_sorceress_dash.cs @@ -0,0 +1,77 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Player_sorceress_dash + { + private static uint _token = 0u; + + private static bool _veiled = false; + + private static float _startVeil = 0.067f; + + private static float _fadeOutTime = 0.1f; + + private static float _veilDuration = 0.233f; + + private static float _fadeInTime = 0.2f; + + private static XTimerMgr.ElapsedEventHandler _Veil; + + private static XTimerMgr.ElapsedEventHandler _Unveil; + + public static bool Disappear(XSkill skill) + { + bool casting = skill.Casting; + if (casting) + { + bool flag = !Player_sorceress_dash._veiled; + if (flag) + { + Player_sorceress_dash._veiled = true; + bool flag2 = Player_sorceress_dash._Veil == null; + if (flag2) + { + Player_sorceress_dash._Veil = new XTimerMgr.ElapsedEventHandler(Player_sorceress_dash.Veil); + } + Player_sorceress_dash._token = XSingleton.singleton.SetTimer(Player_sorceress_dash._startVeil, Player_sorceress_dash._Veil, skill.Firer); + } + } + else + { + XSingleton.singleton.KillTimer(Player_sorceress_dash._token); + Player_sorceress_dash.Unveil(skill.Firer); + Player_sorceress_dash._veiled = false; + } + return true; + } + + private static void Veil(object o) + { + XFadeOutEventArgs @event = XEventPool.GetEvent(); + @event.Out = Player_sorceress_dash._fadeOutTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + bool flag = Player_sorceress_dash._Unveil == null; + if (flag) + { + Player_sorceress_dash._Unveil = new XTimerMgr.ElapsedEventHandler(Player_sorceress_dash.Unveil); + } + Player_sorceress_dash._token = XSingleton.singleton.SetTimer(Player_sorceress_dash._veilDuration, Player_sorceress_dash._Unveil, o); + } + + private static void Unveil(object o) + { + bool flag = Player_sorceress_dash._token > 0u; + if (flag) + { + Player_sorceress_dash._token = 0u; + XFadeInEventArgs @event = XEventPool.GetEvent(); + @event.In = Player_sorceress_dash._fadeInTime; + @event.Firer = (o as XEntity); + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_sorceress_dash.cs.meta b/Client/Assets/Scripts/XMainClient/Player_sorceress_dash.cs.meta new file mode 100644 index 00000000..6b5dd210 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_sorceress_dash.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a774a1671c34e4a4891c9284e3659066 +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs b/Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs new file mode 100644 index 00000000..6927c4aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs @@ -0,0 +1,32 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Player_warrior_charge + { + public static bool checkInput(XSkill skill) + { + bool syncMode = XSingleton.singleton.SyncMode; + bool result; + if (syncMode) + { + result = true; + } + else + { + bool flag = skill.Firer.IsPlayer && skill.Casting; + if (flag) + { + bool flag2 = !XSingleton.singleton.Feeding; + if (flag2) + { + skill.Cease(true); + } + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs.meta b/Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs.meta new file mode 100644 index 00000000..929fdca6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_warrior_charge.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4121c6ba9a7c5245b9ff99753d52069 +timeCreated: 1611404391 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Player_warrior_dash_start.cs b/Client/Assets/Scripts/XMainClient/Player_warrior_dash_start.cs new file mode 100644 index 00000000..8ce05e6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_warrior_dash_start.cs @@ -0,0 +1,40 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Player_warrior_dash_start + { + public static bool canfirecharge(XSkill skill) + { + bool syncMode = XSingleton.singleton.SyncMode; + bool result; + if (syncMode) + { + result = true; + } + else + { + XCombinedSkill xcombinedSkill = skill as XCombinedSkill; + bool isPlayer = skill.Firer.IsPlayer; + if (isPlayer) + { + XSkillCore skill2 = skill.Firer.SkillMgr.GetSkill(XSingleton.singleton.XHash(xcombinedSkill.MainCore.Soul.Combined[2].Name)); + bool flag = (skill2 != null && Player_warrior_dash_start.NoFire(skill.Firer, skill2)) || !XSingleton.singleton.Feeding; + if (flag) + { + xcombinedSkill.ShutDown(); + } + } + result = true; + } + return result; + } + + private static bool NoFire(XEntity entity, XSkillCore core) + { + bool isTransform = entity.IsTransform; + return !isTransform && core.Level == 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Player_warrior_dash_start.cs.meta b/Client/Assets/Scripts/XMainClient/Player_warrior_dash_start.cs.meta new file mode 100644 index 00000000..2b1e2654 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Player_warrior_dash_start.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c12645ef30daa4f449e4a58f0d732afe +timeCreated: 1611404489 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PointRewardData.cs b/Client/Assets/Scripts/XMainClient/PointRewardData.cs new file mode 100644 index 00000000..714a35ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PointRewardData.cs @@ -0,0 +1,20 @@ +using System; + +namespace XMainClient +{ + internal struct PointRewardData + { + public uint id; + + public int point; + + public XBetterDictionary rewardItem; + + public void Init() + { + this.id = 0u; + this.point = 0; + this.rewardItem = new XBetterDictionary(0); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PointRewardData.cs.meta b/Client/Assets/Scripts/XMainClient/PointRewardData.cs.meta new file mode 100644 index 00000000..79be83fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PointRewardData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9b8292b683b6ac4d8ed0902eecc45ff +timeCreated: 1611404540 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PointRewardHandler.cs b/Client/Assets/Scripts/XMainClient/PointRewardHandler.cs new file mode 100644 index 00000000..f515d334 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PointRewardHandler.cs @@ -0,0 +1,180 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PointRewardHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/PointRewardHandler"; + } + } + + private List m_Data; + + public XSysDefine Sys; + + public IXUIButton m_Close; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_CurrentText; + + public IXUILabel m_CurrentPoint; + + public IXUILabel m_BottomText; + + public IXUILabel m_RightText; + + public IXUILabel m_TitleText; + + public IXUIScrollView m_ScrollView; + + protected override void Init() + { + base.Init(); + Transform transform = base.transform.Find("Bg"); + this.m_Close = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_CurrentText = (transform.Find("CurrentPoint").GetComponent("XUILabel") as IXUILabel); + this.m_CurrentPoint = (transform.Find("CurrentPoint/Text").GetComponent("XUILabel") as IXUILabel); + this.m_BottomText = (transform.Find("BottomText").GetComponent("XUILabel") as IXUILabel); + this.m_RightText = (transform.Find("RightText").GetComponent("XUILabel") as IXUILabel); + this.m_TitleText = (transform.Find("Title/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ScrollView = (transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RewardPool.SetupPool(null, transform.Find("ScrollView/RewardTpl").gameObject, 8u, false); + this.m_ItemPool.SetupPool(null, transform.Find("ScrollView/ItemTpl").gameObject, 5u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshList(true); + this.RefreshText(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void SetData(List data, XSysDefine sys) + { + this.m_Data = data; + this.Sys = sys; + } + + public void RefreshList(bool resetPos = true) + { + bool flag = this.m_Data == null; + if (!flag) + { + this.m_RewardPool.FakeReturnAll(); + this.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < this.m_Data.Count; i++) + { + GameObject gameObject = this.m_RewardPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Point/Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this.m_Data[i].point.ToString()); + for (int j = 0; j < this.m_Data[i].rewardItem.size; j++) + { + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, this.m_Data[i].rewardItem.BufferKeys[j], this.m_Data[i].rewardItem.BufferValues[j], false); + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)this.m_Data[i].rewardItem.BufferKeys[j]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3(this.m_ItemPool.TplPos.x - this.m_RewardPool.TplPos.x + (float)(this.m_ItemPool.TplWidth * j), 0f); + } + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_RewardPool.TplHeight * i)) + this.m_RewardPool.TplPos; + this.RefreshItemText(gameObject, this.m_Data[i]); + } + this.m_ItemPool.ActualReturnAll(false); + this.m_RewardPool.ActualReturnAll(false); + if (resetPos) + { + this.m_ScrollView.ResetPosition(); + } + } + } + + private void RefreshText() + { + this.m_RightText.gameObject.SetActive(false); + this.m_BottomText.gameObject.SetActive(false); + this.m_CurrentText.gameObject.SetActive(false); + this.m_TitleText.SetText(XStringDefineProxy.GetString("POINT_REWARD")); + XSysDefine sys = this.Sys; + if (sys != XSysDefine.XSys_BigMelee) + { + if (sys != XSysDefine.XSys_Battlefield) + { + if (sys == XSysDefine.XSys_MulActivity_SkyArena) + { + this.m_RightText.gameObject.SetActive(true); + this.m_RightText.SetText(XStringDefineProxy.GetString("POINT_REWARD_RIGHT_TIP")); + this.m_TitleText.SetText(XStringDefineProxy.GetString("PREVIEW_REWARD")); + } + } + else + { + this.m_RightText.gameObject.SetActive(true); + this.m_BottomText.gameObject.SetActive(true); + this.m_RightText.SetText(XStringDefineProxy.GetString("POINT_REWARD_RIGHT_TIP")); + this.m_BottomText.SetText(XStringDefineProxy.GetString("BATTLEFIELD_POINT_REWARD_BOTTOM_TIP")); + } + } + else + { + this.m_RightText.gameObject.SetActive(true); + this.m_BottomText.gameObject.SetActive(true); + this.m_RightText.SetText(XStringDefineProxy.GetString("POINT_REWARD_RIGHT_TIP")); + this.m_BottomText.SetText(XStringDefineProxy.GetString("BIG_MELEE_POINT_REWARD_BOTTOM_TIP")); + } + } + + private void RefreshItemText(GameObject go, PointRewardData data) + { + IXUILabel ixuilabel = go.transform.Find("Bg/Count").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Bg/Point").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(false); + ixuilabel2.SetText(XStringDefineProxy.GetString("POINT_REACH")); + XSysDefine sys = this.Sys; + if (sys != XSysDefine.XSys_Battlefield) + { + if (sys == XSysDefine.XSys_MulActivity_SkyArena) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("FLOOR_REACH")); + } + } + else + { + ixuilabel.gameObject.SetActive(true); + uint pointRewardGetCount = XBattleFieldEntranceDocument.Doc.GetPointRewardGetCount(data.id); + BattleFieldPointReward.RowData curPointRewardList = XBattleFieldEntranceDocument.Doc.GetCurPointRewardList(data.id); + string arg = (curPointRewardList.count - pointRewardGetCount).ToString(); + ixuilabel.SetText(string.Format("{0}/{1}", arg, curPointRewardList.count.ToString())); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PointRewardHandler.cs.meta b/Client/Assets/Scripts/XMainClient/PointRewardHandler.cs.meta new file mode 100644 index 00000000..feb36e07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PointRewardHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 070cdf3161b8984448841e789b24cfaf +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PointRewardStatus.cs b/Client/Assets/Scripts/XMainClient/PointRewardStatus.cs new file mode 100644 index 00000000..68718d8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PointRewardStatus.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class PointRewardStatus + { + public uint point; + + public uint status; + + public SeqListRef reward = default(SeqListRef); + } +} diff --git a/Client/Assets/Scripts/XMainClient/PointRewardStatus.cs.meta b/Client/Assets/Scripts/XMainClient/PointRewardStatus.cs.meta new file mode 100644 index 00000000..59467346 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PointRewardStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8991105802b95d04380c68c6603112d2 +timeCreated: 1611404088 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PreSettingNodeHandler.cs b/Client/Assets/Scripts/XMainClient/PreSettingNodeHandler.cs new file mode 100644 index 00000000..4b1fa84e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PreSettingNodeHandler.cs @@ -0,0 +1,304 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class PreSettingNodeHandler : DlgHandlerBase + { + private XPrerogativeDocument _doc; + + private IXUIScrollView _preList; + + private IXUIWrapContent _preWrapContent; + + private IXUIScrollView _preDetailList; + + private IXUIWrapContent _preDetailWrapContent; + + private IXUILabel _preDetailName; + + private List _types = new List(); + + private uint _selectType = 0u; + + private uint _activePreID = 0u; + + private List _tempList; + + protected override void Init() + { + base.Init(); + this._types.Clear(); + int num = XFastEnumIntEqualityComparer.ToInt(PrerogativeType.PreMax) - 1; + for (int i = 1; i <= num; i++) + { + string key = XSingleton.singleton.StringCombine("PRE_TYPE_NAME", i.ToString()); + string text = ""; + bool data = XSingleton.singleton.GetData(key, out text); + bool flag = data; + if (flag) + { + this._types.Add((uint)i); + } + } + this._doc = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + this._preList = (base.transform.Find("PreList").GetComponent("XUIScrollView") as IXUIScrollView); + this._preWrapContent = (base.transform.Find("PreList/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._preWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnPreWrapContentUpdate)); + this._preDetailList = (base.transform.Find("PreDetail/PreSelectList").GetComponent("XUIScrollView") as IXUIScrollView); + this._preDetailWrapContent = (base.transform.Find("PreDetail/PreSelectList/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._preDetailWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnPreDetailContentUpdate)); + this._preDetailName = (base.transform.Find("PreDetail/TLabel").GetComponent("XUILabel") as IXUILabel); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void RefreshData() + { + this.SetupActivePreList(); + this.SetupPreDetailList(); + } + + private void SetupPreDetailList() + { + this._activePreID = this._doc.GetPreContentID(this._selectType); + this._preDetailName.SetText(XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("PRE_TYPE_NAME", this._selectType.ToString()))); + this._doc.TryGetContentByType(ref this._tempList, this._selectType); + this._preDetailWrapContent.SetContentCount(this._tempList.Count, false); + this._preDetailList.ResetPosition(); + uint defaultPreID = XPrerogativeDocument.GetDefaultPreID(this._selectType); + } + + private void _OnPreWrapContentUpdate(Transform t, int index) + { + bool flag = index >= this._types.Count; + if (!flag) + { + uint num = this._types[index]; + IXUILabel ixuilabel = t.Find("Text").GetComponent("XUILabel") as IXUILabel; + Transform transform = t.Find("Selection"); + IXUILabel ixuilabel2 = t.Find("Selection/Text").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + string @string = XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("PRE_TYPE_NAME", num.ToString())); + ixuilabel.SetText(@string); + ixuilabel2.SetText(@string); + transform.gameObject.SetActive(this._selectType == num); + PrerogativeContent.RowData preContentData = this._doc.GetPreContentData(num); + PreSettingNodeHandler.SetupPrerogativeTpl(t, preContentData); + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnBorderClick)); + } + } + + private void _OnPreDetailContentUpdate(Transform t, int index) + { + Transform transform = t.Find("Normal"); + Transform transform2 = t.Find("Lock"); + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + bool flag = index >= this._tempList.Count; + if (flag) + { + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + ixuisprite.RegisterSpriteClickEventHandler(null); + } + else + { + PrerogativeContent.RowData rowData = this._tempList[index]; + uint id = rowData.ID; + bool flag2 = this._doc.IsActived(id); + if (flag2) + { + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + Transform transform3 = transform.Find("Selection"); + IXUISprite ixuisprite2 = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = transform.Find("WeddingTag").gameObject; + gameObject.SetActive((ulong)rowData.Normal == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(PrerogativeNormalType.PreWedding))); + ixuilabel.SetText(rowData.Name); + PreSettingNodeHandler.SetupPrerogativeTpl(transform, rowData); + ixuisprite.ID = (ulong)rowData.ID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSelectClick)); + transform3.gameObject.SetActive(this._activePreID == rowData.ID); + } + else + { + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(true); + IXUISprite ixuisprite3 = transform2.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = transform2.Find("Cost").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = transform2.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite4 = transform2.Find("Cost/Item").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject2 = transform2.Find("WeddingTag").gameObject; + gameObject2.SetActive((ulong)rowData.Normal == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(PrerogativeNormalType.PreWedding))); + ixuilabel3.SetText(rowData.Name); + PreSettingNodeHandler.SetupPrerogativeTpl(transform2, rowData); + ixuisprite.ID = (ulong)index; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnActiveClick)); + uint num = rowData.Item[0]; + uint num2 = rowData.Item[1]; + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)num); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)num); + bool flag3 = itemConf != null && itemConf.ItemIcon1 != null && itemConf.ItemIcon1.Length != 0; + if (flag3) + { + ixuisprite4.SetSprite(itemConf.ItemIcon1[0]); + } + string text = itemCount + "/" + num2; + bool flag4 = itemCount < (ulong)num2; + if (flag4) + { + text = string.Concat(new object[] + { + "[ff0000]", + itemCount, + "/", + num2, + "[-]" + }); + } + ixuilabel2.SetText(text); + } + } + } + + private void _OnBorderClick(IXUISprite sprite) + { + uint num = (uint)sprite.ID; + bool flag = this._selectType != num; + if (flag) + { + this._selectType = num; + this.RefreshData(); + } + } + + private void _OnSelectClick(IXUISprite sprite) + { + uint num = (uint)sprite.ID; + bool flag = num == this._activePreID; + if (flag) + { + this._doc.HidePreCache(this._selectType); + } + else + { + this._doc.TrySendPreCache(num); + } + XSingleton.singleton.AddGreenLog("_OnSelectClick" + num.ToString(), null, null, null, null, null); + } + + private void _OnActiveClick(IXUISprite sprite) + { + int num = (int)sprite.ID; + bool flag = num <= this._tempList.Count; + if (flag) + { + PrerogativeContent.RowData rowData = this._tempList[num]; + uint id = rowData.ID; + uint itemid = rowData.Item[0]; + uint num2 = rowData.Item[1]; + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)itemid); + bool flag2 = itemCount >= (ulong)num2; + if (flag2) + { + this._doc.TrySendActivePre(id); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(string.Format("Prerogative_NotEnough_{0}", rowData.HintID)), "fece00"); + } + XSingleton.singleton.AddGreenLog("_OnSelectClick" + id.ToString(), null, null, null, null, null); + } + } + + private void SetupActivePreList() + { + bool flag = this._selectType == 0u && this._types.Count > 0; + if (flag) + { + this._selectType = this._types[0]; + } + this._preWrapContent.SetContentCount(this._types.Count, false); + } + + public static void SetupPrerogativeTpl(Transform tf, PrerogativeContent.RowData content = null) + { + IXUISprite ts = tf.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag = content == null; + if (flag) + { + PreSettingNodeHandler.DrawEmptyItem(ts); + } + else + { + uint type = content.Type; + if (type != 1u) + { + PreSettingNodeHandler.DrawSpriteItem(ts, content.Icon); + } + else + { + PreSettingNodeHandler.DrawColorItem(ts, content.Icon); + } + } + } + + private static void DrawEmptyItem(IXUISprite ts) + { + ts.SetSprite("", "", false); + } + + private static void DrawSpriteItem(IXUISprite ts, string content) + { + ts.SetColor(Color.white); + bool flag = content != null && !string.IsNullOrEmpty(content); + if (flag) + { + string[] array = content.Split(XGlobalConfig.SequenceSeparator); + bool flag2 = array.Length > 1; + if (flag2) + { + ts.SetSprite(array[1], array[0], false); + } + else + { + ts.SetSprite(array[0]); + } + } + else + { + ts.SetSprite(""); + } + } + + private static void DrawColorItem(IXUISprite ts, string content) + { + ts.SetSprite("VIP_Color", "GameSystem/SysCommon1", false); + bool flag = !string.IsNullOrEmpty(content); + if (flag) + { + string[] array = content.Split(XGlobalConfig.SequenceSeparator); + Color white = Color.white; + white.r = float.Parse(array[0]) / 255f; + white.g = float.Parse(array[1]) / 255f; + white.b = float.Parse(array[2]) / 255f; + ts.SetColor(white); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PreSettingNodeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/PreSettingNodeHandler.cs.meta new file mode 100644 index 00000000..af766fe4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PreSettingNodeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c5231ab5a22abe646b9523887295a31d +timeCreated: 1611404505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PrepareSerializer.cs b/Client/Assets/Scripts/XMainClient/PrepareSerializer.cs new file mode 100644 index 00000000..e92902d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrepareSerializer.cs @@ -0,0 +1,1868 @@ +using System; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class PrepareSerializer + { + static PrepareSerializer() + { + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + Serializer.PrepareSerializer(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PrepareSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/PrepareSerializer.cs.meta new file mode 100644 index 00000000..e026c479 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrepareSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19fa843c6d01739449e7d7beb2502a31 +timeCreated: 1611403307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PrerogativeDlg.cs b/Client/Assets/Scripts/XMainClient/PrerogativeDlg.cs new file mode 100644 index 00000000..8302ed25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrerogativeDlg.cs @@ -0,0 +1,158 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PrerogativeDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Welfare/PrerogativeFrame"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Prerogative); + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + private XPrerogativeDocument _Doc = null; + + private PreSettingNodeHandler _settingHandler; + + protected override void OnLoad() + { + this._Doc.View = null; + base.OnLoad(); + } + + protected override void Init() + { + base.Init(); + DlgHandlerBase.EnsureCreate(ref this._settingHandler, base.uiBehaviour._setting.gameObject, this, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._Doc = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + this._Doc.View = this; + base.uiBehaviour._ruleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnHelpHandler)); + base.uiBehaviour._shopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.SkipToShop)); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickClose)); + } + + protected override void OnHide() + { + base.OnHide(); + } + + private bool _OnHelpHandler(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Prerogative); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.SetupFadeIn(); + } + + private bool ClickClose(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + + private void SetupFadeIn() + { + base.uiBehaviour._desc.SetText(XStringDefineProxy.GetString("XSys_Predesc")); + bool flag = this._settingHandler != null; + if (flag) + { + bool flag2 = this._settingHandler.IsVisible(); + if (flag2) + { + this._settingHandler.RefreshData(); + } + else + { + this._settingHandler.SetVisible(true); + } + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.Refresh(); + } + + public void Refresh() + { + this.SetupSetting(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._settingHandler); + base.OnUnload(); + } + + private void SetupSetting() + { + bool flag = this._settingHandler != null && this._settingHandler.IsVisible(); + if (flag) + { + this._settingHandler.RefreshData(); + } + } + + private bool SkipToShop(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_PrerogativeShop, 0UL); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PrerogativeDlg.cs.meta b/Client/Assets/Scripts/XMainClient/PrerogativeDlg.cs.meta new file mode 100644 index 00000000..20b6a4a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrerogativeDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98a75354e450cf84a9300b98543d69a0 +timeCreated: 1611404191 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PrerogativeDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/PrerogativeDlgBehaviour.cs new file mode 100644 index 00000000..85c3c4f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrerogativeDlgBehaviour.cs @@ -0,0 +1,29 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class PrerogativeDlgBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton _ruleBtn; + + public IXUIButton _shopBtn; + + public Transform _setting; + + public IXUILabel _desc; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this._ruleBtn = (base.transform.Find("Bg/RuleBtn").GetComponent("XUIButton") as IXUIButton); + this._shopBtn = (base.transform.Find("Bg/ShopBtn").GetComponent("XUIButton") as IXUIButton); + this._setting = base.transform.Find("Bg/Setting"); + this._desc = (base.transform.Find("Bg/Intro").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PrerogativeDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/PrerogativeDlgBehaviour.cs.meta new file mode 100644 index 00000000..959fe5c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrerogativeDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a548baa8ae42fb642921db321ff0722a +timeCreated: 1611404285 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PrerogativeNormalType.cs b/Client/Assets/Scripts/XMainClient/PrerogativeNormalType.cs new file mode 100644 index 00000000..533aaaf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrerogativeNormalType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum PrerogativeNormalType + { + PreNormal, + PreWedding, + PreDefault + } +} diff --git a/Client/Assets/Scripts/XMainClient/PrerogativeNormalType.cs.meta b/Client/Assets/Scripts/XMainClient/PrerogativeNormalType.cs.meta new file mode 100644 index 00000000..f81a3e88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrerogativeNormalType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04aafb76320b63049b92fb044a533d14 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PrerogativeType.cs b/Client/Assets/Scripts/XMainClient/PrerogativeType.cs new file mode 100644 index 00000000..5f393c67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrerogativeType.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal enum PrerogativeType + { + PreSprite, + PreStart, + PreChatColor = 1, + PreChatAdorn, + PreChatBubble, + PreTeamBorder, + PreTeamBackground, + PreHeadPortrait, + PreMax + } +} diff --git a/Client/Assets/Scripts/XMainClient/PrerogativeType.cs.meta b/Client/Assets/Scripts/XMainClient/PrerogativeType.cs.meta new file mode 100644 index 00000000..aad989c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrerogativeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b5251d5ea2eb9b849b47a1c9ce3979ff +timeCreated: 1611404395 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PresentBehaviour.cs b/Client/Assets/Scripts/XMainClient/PresentBehaviour.cs new file mode 100644 index 00000000..b8d0f66b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PresentBehaviour.cs @@ -0,0 +1,32 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class PresentBehaviour : DlgBehaviourBase + { + public IXUIButton m_btnPay; + + public IXUIButton m_btnCancel; + + public IXUIInput m_input; + + public GameObject m_icon; + + public IXUILabel m_lblPrice; + + public IXUILabel m_lblTitle; + + private void Awake() + { + this.m_btnPay = (base.transform.Find("OK").GetComponent("XUIButton") as IXUIButton); + this.m_btnCancel = (base.transform.Find("Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_input = (base.transform.Find("item2/input").GetComponent("XUIInput") as IXUIInput); + this.m_icon = base.transform.Find("item2").gameObject; + this.m_lblPrice = (base.transform.Find("item2/Price").GetComponent("XUILabel") as IXUILabel); + this.m_lblTitle = (base.transform.Find("item2/Title").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PresentBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/PresentBehaviour.cs.meta new file mode 100644 index 00000000..2b37b4b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PresentBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de02f1d213583364e9c24336879fc1bf +timeCreated: 1611404684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PresentDlg.cs b/Client/Assets/Scripts/XMainClient/PresentDlg.cs new file mode 100644 index 00000000..5c026aea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PresentDlg.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; +using MiniJSON; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class PresentDlg : DlgBase + { + private XGameMallDocument doc + { + get + { + return XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/PresentDlg"; + } + } + + private ulong mRoleid = 0UL; + + private string mOpenid = string.Empty; + + private string mRoleName = string.Empty; + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnPay.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPayClick)); + base.uiBehaviour.m_btnCancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancelClick)); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_icon, this.doc.currItemID, 0, false); + base.uiBehaviour.m_lblPrice.SetText((this.doc.currCIBShop.row.rmb / 10f).ToString()); + base.uiBehaviour.m_input.selected(false); + base.uiBehaviour.m_input.SetText(""); + base.uiBehaviour.m_input.SetDefault(XStringDefineProxy.GetString("PresentDefault")); + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(this.mRoleid); + bool flag = friendDataById != null; + if (flag) + { + base.uiBehaviour.m_lblTitle.SetText(string.Format(XStringDefineProxy.GetString("PresentTitle", new object[] + { + friendDataById.name + }), new object[0])); + } + } + + public void Show(ulong roleid) + { + this.mRoleid = roleid; + this.SetVisible(true, true); + } + + private bool OnPayClick(IXUIButton btn) + { + string text = base.uiBehaviour.m_input.GetText(); + XSingleton.singleton.AddLog("input=>", text, null, null, null, null, XDebugColor.XDebug_None); + this.SetVisible(false, true); + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + CIBShop currCIBShop = specificDocument.currCIBShop; + bool flag = currCIBShop != null; + if (flag) + { + XRechargeDocument specificDocument2 = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument2.SDKBuyGoods(currCIBShop.row.id, 1u, this.mRoleid, text, currCIBShop.row.goodsid, currCIBShop.row.rmb); + } + return true; + } + + private bool OnCancelClick(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + public void OnResPresent(string openid, string name) + { + this.mOpenid = openid; + this.mRoleName = name; + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(string.IsNullOrEmpty(openid)); + string @string = XStringDefineProxy.GetString("PresentSucc"); + string string2 = XStringDefineProxy.GetString("PresentOK"); + string string3 = XStringDefineProxy.GetString("PresentCancel"); + string string4 = XStringDefineProxy.GetString("PresentCertain"); + DlgBase.singleton.ShowNoTip(XTempTipDefine.OD_START); + bool flag = !string.IsNullOrEmpty(openid); + if (flag) + { + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnOKClick), new ButtonClickEventHandler(this.OnCancalClick)); + } + else + { + DlgBase.singleton.SetLabelsWithSymbols(@string, string4, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnCancalClick), new ButtonClickEventHandler(this.OnCancalClick)); + } + } + + private bool OnOKClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.AddLog("Do Share to platform friends", null, null, null, null, null, XDebugColor.XDebug_None); + string @string = XStringDefineProxy.GetString("PresentShare", new object[] + { + this.mRoleName + }); + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + this.ShareToQQFriend(this.mOpenid, @string); + } + else + { + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag2) + { + this.ShareToWXFriend(this.mOpenid, @string); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PresentMode"), "fece00"); + } + } + return true; + } + + private bool OnCancalClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private void ShareToQQFriend(string openID, string desc) + { + Dictionary dictionary = new Dictionary(); + dictionary["act"] = 1; + dictionary["openId"] = openID; + dictionary["title"] = XSingleton.singleton.GetValue("PresFriendShareTitle"); + dictionary["summary"] = desc; + dictionary["targetUrl"] = XSingleton.singleton.GetValue("PresFriendShareTargetUrlQQ"); + dictionary["imageUrl"] = XSingleton.singleton.GetValue("PresFriendShareImageUrlQQ"); + dictionary["previewText"] = XSingleton.singleton.GetValue("PresFriendSharePreviewTextQQ"); + dictionary["gameTag"] = "MSG_HEART_SEND"; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("ShareToQQFriend paramStr = ", text, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("share_send_to_friend_qq", text); + } + + private void ShareToWXFriend(string openID, string desc) + { + Dictionary dictionary = new Dictionary(); + dictionary["openId"] = openID; + dictionary["title"] = XSingleton.singleton.GetValue("PresFriendShareTitle"); + dictionary["description"] = desc; + dictionary["thumbMediaId"] = ""; + dictionary["mediaTagName"] = "MSG_HEART_SEND"; + dictionary["messageExt"] = "ShareWithWeixin"; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("ShareToWXFriend paramStr = ", text, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("share_send_to_friend_wx", text); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PresentDlg.cs.meta b/Client/Assets/Scripts/XMainClient/PresentDlg.cs.meta new file mode 100644 index 00000000..52a010a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PresentDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9dde6c93c9985c0418d9ee8a747087d4 +timeCreated: 1611404238 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PrivateExt.cs b/Client/Assets/Scripts/XMainClient/PrivateExt.cs new file mode 100644 index 00000000..8510b146 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrivateExt.cs @@ -0,0 +1,487 @@ +using System; +using System.Collections.Generic; +using System.Reflection; + +namespace XMainClient +{ + public static class PrivateExt + { + public static T CallPrivateMethodGeneric(this object obj, string name, params object[] param) + { + BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + Type[] array = new Type[param.Length]; + for (int i = 0; i < array.Length; i++) + { + array[i] = param[i].GetType(); + } + List list = PublicExt.CastNumberParameters(param, array); + MethodInfo methodInfo = null; + try + { + methodInfo = type.GetMethod(name, bindingAttr); + } + catch + { + for (int j = 0; j < list.Count; j++) + { + methodInfo = type.GetMethod(name, list[j]); + bool flag = methodInfo != null; + if (flag) + { + break; + } + } + } + bool flag2 = methodInfo == null; + T result; + if (flag2) + { + result = default(T); + } + else + { + ParameterInfo[] parameters = methodInfo.GetParameters(); + object[] array2 = new object[parameters.Length]; + for (int k = 0; k < parameters.Length; k++) + { + bool flag3 = parameters[k].ParameterType != typeof(object); + if (flag3) + { + array2[k] = Convert.ChangeType(param[k], parameters[k].ParameterType); + } + else + { + array2[k] = param[k]; + } + } + result = (T)((object)methodInfo.Invoke(obj, array2)); + } + return result; + } + + public static object CallPrivateMethod(this object obj, string name, params object[] param) + { + BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + Type[] array = new Type[param.Length]; + for (int i = 0; i < array.Length; i++) + { + array[i] = param[i].GetType(); + } + List list = PublicExt.CastNumberParameters(param, array); + MethodInfo methodInfo = null; + try + { + methodInfo = type.GetMethod(name, bindingAttr); + } + catch + { + for (int j = 0; j < list.Count; j++) + { + methodInfo = type.GetMethod(name, bindingAttr, null, list[j], null); + bool flag = methodInfo != null; + if (flag) + { + break; + } + } + } + bool flag2 = methodInfo == null; + object result; + if (flag2) + { + result = null; + } + else + { + ParameterInfo[] parameters = methodInfo.GetParameters(); + object[] array2 = new object[parameters.Length]; + for (int k = 0; k < parameters.Length; k++) + { + bool flag3 = k < param.Length; + if (flag3) + { + bool flag4 = param[k].GetType().IsSubclassOf(parameters[k].ParameterType); + if (flag4) + { + array2[k] = param[k]; + } + else + { + bool flag5 = parameters[k].ParameterType != typeof(object); + if (flag5) + { + array2[k] = Convert.ChangeType(param[k], parameters[k].ParameterType); + } + else + { + array2[k] = param[k]; + } + } + } + else + { + array2[k] = parameters[k].DefaultValue; + } + } + result = methodInfo.Invoke(obj, array2); + } + return result; + } + + public static object CallStaticPrivateMethod(string typeName, string name, params object[] param) + { + BindingFlags bindingAttr = BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = Type.GetType(typeName); + Type[] array = new Type[param.Length]; + for (int i = 0; i < array.Length; i++) + { + array[i] = param[i].GetType(); + } + List list = PublicExt.CastNumberParameters(param, array); + MethodInfo methodInfo = null; + try + { + methodInfo = type.GetMethod(name, bindingAttr); + } + catch + { + for (int j = 0; j < list.Count; j++) + { + methodInfo = type.GetMethod(name, list[j]); + bool flag = methodInfo != null; + if (flag) + { + break; + } + } + } + bool flag2 = methodInfo == null; + object result; + if (flag2) + { + result = null; + } + else + { + ParameterInfo[] parameters = methodInfo.GetParameters(); + object[] array2 = new object[parameters.Length]; + for (int k = 0; k < parameters.Length; k++) + { + bool flag3 = parameters[k].ParameterType != typeof(object); + if (flag3) + { + array2[k] = Convert.ChangeType(param[k], parameters[k].ParameterType); + } + else + { + array2[k] = param[k]; + } + } + result = methodInfo.Invoke(null, array2); + } + return result; + } + + public static T GetPrivateFieldGeneric(this object obj, string name) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + T result; + if (flag) + { + result = (T)((object)fieldInfo.GetValue(obj)); + } + else + { + result = default(T); + } + return result; + } + + public static object GetPrivateField(this object obj, string name) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + object result; + if (flag) + { + result = fieldInfo.GetValue(obj); + } + else + { + result = null; + } + return result; + } + + public static object GetStaticPrivateField(string typeName, string name) + { + BindingFlags flags = BindingFlags.Static | BindingFlags.NonPublic; + Type type = Type.GetType(typeName); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + object result; + if (flag) + { + result = fieldInfo.GetValue(null); + } + else + { + result = null; + } + return result; + } + + public static T GetPrivatePropertyGeneric(this object obj, string name) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + T result; + if (flag) + { + result = (T)((object)propertyInfo.GetGetMethod(true).Invoke(obj, null)); + } + else + { + result = default(T); + } + return result; + } + + public static object GetPrivateProperty(this object obj, string name) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + object result; + if (flag) + { + result = propertyInfo.GetGetMethod(true).Invoke(obj, null); + } + else + { + result = null; + } + return result; + } + + public static object GetStaticPrivateProperty(string typeName, string name) + { + BindingFlags flags = BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = Type.GetType(typeName); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + object result; + if (flag) + { + result = propertyInfo.GetValue(null, null); + } + else + { + result = null; + } + return result; + } + + public static void SetPrivateField(this object obj, string name, object value) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + if (flag) + { + bool flag2 = fieldInfo.FieldType == typeof(int); + if (flag2) + { + int num = Convert.ToInt32(value); + fieldInfo.SetValue(obj, num); + } + else + { + bool flag3 = fieldInfo.FieldType == typeof(float); + if (flag3) + { + float num2 = Convert.ToSingle(value); + fieldInfo.SetValue(obj, num2); + } + else + { + bool flag4 = fieldInfo.FieldType == typeof(long); + if (flag4) + { + long num3 = Convert.ToInt64(value); + fieldInfo.SetValue(obj, num3); + } + else + { + bool flag5 = fieldInfo.FieldType == typeof(uint); + if (flag5) + { + uint num4 = Convert.ToUInt32(value); + fieldInfo.SetValue(obj, num4); + } + else + { + fieldInfo.SetValue(obj, value); + } + } + } + } + } + } + + public static void SetStaticPrivateField(string typeName, string name, object value) + { + BindingFlags flags = BindingFlags.Static | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = Type.GetType(typeName); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + if (flag) + { + bool flag2 = fieldInfo.FieldType == typeof(int); + if (flag2) + { + int num = Convert.ToInt32(value); + fieldInfo.SetValue(null, num); + } + else + { + bool flag3 = fieldInfo.FieldType == typeof(float); + if (flag3) + { + float num2 = Convert.ToSingle(value); + fieldInfo.SetValue(null, num2); + } + else + { + bool flag4 = fieldInfo.FieldType == typeof(long); + if (flag4) + { + long num3 = Convert.ToInt64(value); + fieldInfo.SetValue(null, num3); + } + else + { + bool flag5 = fieldInfo.FieldType == typeof(uint); + if (flag5) + { + uint num4 = Convert.ToUInt32(value); + fieldInfo.SetValue(null, num4); + } + else + { + fieldInfo.SetValue(null, value); + } + } + } + } + } + } + + public static void SetPrivateProperty(this object obj, string name, object value) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + if (flag) + { + bool flag2 = propertyInfo.PropertyType == typeof(int); + if (flag2) + { + int num = Convert.ToInt32(value); + propertyInfo.SetValue(obj, num, null); + } + else + { + bool flag3 = propertyInfo.PropertyType == typeof(float); + if (flag3) + { + float num2 = Convert.ToSingle(value); + propertyInfo.SetValue(obj, num2, null); + } + else + { + bool flag4 = propertyInfo.PropertyType == typeof(long); + if (flag4) + { + long num3 = Convert.ToInt64(value); + propertyInfo.SetValue(obj, num3, null); + } + else + { + bool flag5 = propertyInfo.PropertyType == typeof(uint); + if (flag5) + { + uint num4 = Convert.ToUInt32(value); + propertyInfo.SetValue(obj, num4, null); + } + else + { + propertyInfo.SetValue(obj, value, null); + } + } + } + } + } + } + + public static void SetStaticPrivateProperty(string typeName, string name, object value) + { + BindingFlags flags = BindingFlags.Static | BindingFlags.NonPublic; + Type type = Type.GetType(typeName); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + if (flag) + { + bool flag2 = propertyInfo.PropertyType == typeof(int); + if (flag2) + { + int num = Convert.ToInt32(value); + propertyInfo.SetValue(null, num, null); + } + else + { + bool flag3 = propertyInfo.PropertyType == typeof(float); + if (flag3) + { + float num2 = Convert.ToSingle(value); + propertyInfo.SetValue(null, num2, null); + } + else + { + bool flag4 = propertyInfo.PropertyType == typeof(long); + if (flag4) + { + long num3 = Convert.ToInt64(value); + propertyInfo.SetValue(null, num3, null); + } + else + { + bool flag5 = propertyInfo.PropertyType == typeof(uint); + if (flag5) + { + uint num4 = Convert.ToUInt32(value); + propertyInfo.SetValue(null, num4, null); + } + else + { + propertyInfo.SetValue(null, value, null); + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PrivateExt.cs.meta b/Client/Assets/Scripts/XMainClient/PrivateExt.cs.meta new file mode 100644 index 00000000..12262e55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PrivateExt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a54c65b5a1d59e4a8ca3e1bbd8c0af6 +timeCreated: 1611403596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs b/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs new file mode 100644 index 00000000..fc77da41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs @@ -0,0 +1,70 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ProfessionChangeBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_StarPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_ProfName; + + public IXUISprite m_ProfIcon; + + public IXUITexture m_Texture; + + public IXUILabel m_Desc; + + public IXUIButton m_TryProfBtn; + + public IXUIButton m_ChangeProfBtn; + + public GameObject m_TipsWindow; + + public IXUIButton m_TipsClose; + + public IXUILabel m_TipsType; + + public IXUILabel m_TipsDesc; + + public IXUIScrollView m_TextScrollView; + + public IXUILabel m_TipsUse; + + public IXUISprite m_GetPathBtn; + + public IXUIButton m_OKBtn; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Tabs/Tpl"); + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/Right/Star/Tpl"); + this.m_StarPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/Right"); + this.m_ProfName = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_ProfIcon = (transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_Texture = (transform.Find("Texture").GetComponent("XUITexture") as IXUITexture); + this.m_Desc = (transform.Find("Desc").GetComponent("XUILabel") as IXUILabel); + this.m_TryProfBtn = (transform.Find("TryProfBtn").GetComponent("XUIButton") as IXUIButton); + this.m_ChangeProfBtn = (transform.Find("ChangeProfBtn").GetComponent("XUIButton") as IXUIButton); + transform = base.transform.Find("Bg/TipsWindow"); + this.m_TipsWindow = transform.gameObject; + this.m_TipsClose = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_TipsType = (transform.Find("TypeTips").GetComponent("XUILabel") as IXUILabel); + this.m_TipsDesc = (transform.Find("Text/Desc/T").GetComponent("XUILabel") as IXUILabel); + this.m_TextScrollView = (transform.Find("Text/Desc").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_TipsUse = (transform.Find("Use/T").GetComponent("XUILabel") as IXUILabel); + this.m_GetPathBtn = (transform.Find("GetPath").GetComponent("XUISprite") as IXUISprite); + this.m_OKBtn = (transform.Find("OK").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs.meta new file mode 100644 index 00000000..97bbec91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProfessionChangeBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c4616f9b829ef64983609224c271a3f +timeCreated: 1611403343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProjectDamageResult.cs b/Client/Assets/Scripts/XMainClient/ProjectDamageResult.cs new file mode 100644 index 00000000..19b1e5e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProjectDamageResult.cs @@ -0,0 +1,150 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ProjectDamageResult : XDataBase + { + public double DefOriginalRatio { get; set; } + + public CombatEffectHelper EffectHelper + { + get + { + return this._EffectHelper; + } + } + + public double TrueDamage + { + get + { + return this.m_TrueDamage; + } + set + { + this.m_Value -= this.m_TrueDamage; + this.m_TrueDamage = value; + bool flag = this.m_TrueDamage < 0.0; + if (flag) + { + this.m_TrueDamage = 0.0; + } + this.m_Value += this.m_TrueDamage; + } + } + + public double AbsorbDamage + { + get + { + return this.m_AbsorbDamage; + } + set + { + this.m_Value += this.m_AbsorbDamage; + this.m_AbsorbDamage = value; + bool flag = this.Value > this.m_AbsorbDamage; + if (flag) + { + this.Value -= this.m_AbsorbDamage; + } + else + { + this.Value = 0.0; + } + } + } + + public double Value + { + get + { + return this.m_Value; + } + set + { + bool flag = value < this.m_Value && this.TrueDamage > 0.0; + if (flag) + { + this.TrueDamage -= this.m_Value - value; + } + this.m_Value = value; + } + } + + public double BasicDamage + { + get + { + return this.Value - this.TrueDamage; + } + } + + public int Flag { get; set; } + + public DamageType Type { get; set; } + + public DamageElement ElementType { get; set; } + + public bool IsTargetDead { get; set; } + + public ulong Caster { get; set; } + + public int ComboCount { get; set; } + + public bool Accept; + + public ProjectResultType Result; + + private CombatEffectHelper _EffectHelper; + + private double m_TrueDamage; + + private double m_AbsorbDamage; + + private double m_Value; + + public bool IsCritical() + { + int num = XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_CRITICAL); + return (this.Flag & num) != 0; + } + + public ProjectDamageResult() + { + this.Init(); + } + + public void SetResult(ProjectResultType r) + { + bool flag = r < this.Result; + if (flag) + { + this.Result = r; + } + } + + public override void Init() + { + base.Init(); + this.Accept = true; + this.Result = ProjectResultType.PJRES_BEHIT; + this.Type = DamageType.DMG_INVALID; + this.Value = 0.0; + this.AbsorbDamage = 0.0; + this.TrueDamage = 0.0; + this.IsTargetDead = false; + this.Flag = XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_NONE); + this.Caster = 0UL; + this.ComboCount = 0; + this._EffectHelper = XDataPool.GetData(); + } + + public override void Recycle() + { + this._EffectHelper.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProjectDamageResult.cs.meta b/Client/Assets/Scripts/XMainClient/ProjectDamageResult.cs.meta new file mode 100644 index 00000000..9036bd11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProjectDamageResult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8649f9534b8dbb746839e00de1e0f7e0 +timeCreated: 1611404054 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProjectResultType.cs b/Client/Assets/Scripts/XMainClient/ProjectResultType.cs new file mode 100644 index 00000000..760a5a1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProjectResultType.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + public enum ProjectResultType + { + PJRES_IMMORTAL = 1, + PJRES_MISS, + PJRES_BATI, + PJRES_STUN, + PJRES_BEHIT, + PJRES_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProjectResultType.cs.meta b/Client/Assets/Scripts/XMainClient/ProjectResultType.cs.meta new file mode 100644 index 00000000..581e7816 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProjectResultType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 882cc4b25b84f844881a3f525966eb21 +timeCreated: 1611404083 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf.meta new file mode 100644 index 00000000..860086ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: c7205f5e0d5503a49a904381eab476f2 +folderAsset: yes +timeCreated: 1611402942 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/BclHelpers.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/BclHelpers.cs new file mode 100644 index 00000000..50452c07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/BclHelpers.cs @@ -0,0 +1,659 @@ +using System; + +namespace ProtoBuf +{ + public static class BclHelpers + { + private const int FieldTimeSpanValue = 1; + + private const int FieldTimeSpanScale = 2; + + internal static readonly DateTime EpochOrigin = new DateTime(1970, 1, 1, 0, 0, 0, 0); + + private const int FieldDecimalLow = 1; + + private const int FieldDecimalHigh = 2; + + private const int FieldDecimalSignScale = 3; + + private const int FieldGuidLow = 1; + + private const int FieldGuidHigh = 2; + + private const int FieldExistingObjectKey = 1; + + private const int FieldNewObjectKey = 2; + + private const int FieldExistingTypeKey = 3; + + private const int FieldNewTypeKey = 4; + + private const int FieldTypeName = 8; + + private const int FieldObject = 10; + + [Flags] + public enum NetObjectOptions : byte + { + None = 0, + AsReference = 1, + DynamicType = 2, + UseConstructor = 4, + LateSet = 8 + } + + public static object GetUninitializedObject(Type type) + { + throw new NotSupportedException("Constructor-skipping is not supported on this platform"); + } + + public static void WriteTimeSpan(TimeSpan timeSpan, ProtoWriter dest) + { + bool flag = dest == null; + if (flag) + { + throw new ArgumentNullException("dest"); + } + WireType wireType = dest.WireType; + if (wireType != WireType.Fixed64) + { + if (wireType - WireType.String > 1) + { + throw new ProtoException("Unexpected wire-type: " + dest.WireType.ToString()); + } + long num = timeSpan.Ticks; + bool flag2 = timeSpan == TimeSpan.MaxValue; + TimeSpanScale timeSpanScale; + if (flag2) + { + num = 1L; + timeSpanScale = TimeSpanScale.MinMax; + } + else + { + bool flag3 = timeSpan == TimeSpan.MinValue; + if (flag3) + { + num = -1L; + timeSpanScale = TimeSpanScale.MinMax; + } + else + { + bool flag4 = num % 864000000000L == 0L; + if (flag4) + { + timeSpanScale = TimeSpanScale.Days; + num /= 864000000000L; + } + else + { + bool flag5 = num % 36000000000L == 0L; + if (flag5) + { + timeSpanScale = TimeSpanScale.Hours; + num /= 36000000000L; + } + else + { + bool flag6 = num % 600000000L == 0L; + if (flag6) + { + timeSpanScale = TimeSpanScale.Minutes; + num /= 600000000L; + } + else + { + bool flag7 = num % 10000000L == 0L; + if (flag7) + { + timeSpanScale = TimeSpanScale.Seconds; + num /= 10000000L; + } + else + { + bool flag8 = num % 10000L == 0L; + if (flag8) + { + timeSpanScale = TimeSpanScale.Milliseconds; + num /= 10000L; + } + else + { + timeSpanScale = TimeSpanScale.Ticks; + } + } + } + } + } + } + } + SubItemToken token = ProtoWriter.StartSubItem(null, dest); + bool flag9 = num != 0L; + if (flag9) + { + ProtoWriter.WriteFieldHeader(1, WireType.SignedVariant, dest); + ProtoWriter.WriteInt64(num, dest); + } + bool flag10 = timeSpanScale > TimeSpanScale.Days; + if (flag10) + { + ProtoWriter.WriteFieldHeader(2, WireType.Variant, dest); + ProtoWriter.WriteInt32((int)timeSpanScale, dest); + } + ProtoWriter.EndSubItem(token, dest); + } + else + { + ProtoWriter.WriteInt64(timeSpan.Ticks, dest); + } + } + + public static TimeSpan ReadTimeSpan(ProtoReader source) + { + long num = BclHelpers.ReadTimeSpanTicks(source); + bool flag = num == long.MinValue; + TimeSpan result; + if (flag) + { + result = TimeSpan.MinValue; + } + else + { + bool flag2 = num == long.MaxValue; + if (flag2) + { + result = TimeSpan.MaxValue; + } + else + { + result = TimeSpan.FromTicks(num); + } + } + return result; + } + + public static DateTime ReadDateTime(ProtoReader source) + { + long num = BclHelpers.ReadTimeSpanTicks(source); + bool flag = num == long.MinValue; + DateTime result; + if (flag) + { + result = DateTime.MinValue; + } + else + { + bool flag2 = num == long.MaxValue; + if (flag2) + { + result = DateTime.MaxValue; + } + else + { + result = BclHelpers.EpochOrigin.AddTicks(num); + } + } + return result; + } + + public static void WriteDateTime(DateTime value, ProtoWriter dest) + { + bool flag = dest == null; + if (flag) + { + throw new ArgumentNullException("dest"); + } + WireType wireType = dest.WireType; + TimeSpan timeSpan; + if (wireType - WireType.String > 1) + { + timeSpan = value - BclHelpers.EpochOrigin; + } + else + { + bool flag2 = value == DateTime.MaxValue; + if (flag2) + { + timeSpan = TimeSpan.MaxValue; + } + else + { + bool flag3 = value == DateTime.MinValue; + if (flag3) + { + timeSpan = TimeSpan.MinValue; + } + else + { + timeSpan = value - BclHelpers.EpochOrigin; + } + } + } + BclHelpers.WriteTimeSpan(timeSpan, dest); + } + + private static long ReadTimeSpanTicks(ProtoReader source) + { + WireType wireType = source.WireType; + long result; + if (wireType != WireType.Fixed64) + { + if (wireType - WireType.String > 1) + { + throw new ProtoException("Unexpected wire-type: " + source.WireType.ToString()); + } + SubItemToken token = ProtoReader.StartSubItem(source); + TimeSpanScale timeSpanScale = TimeSpanScale.Days; + long num = 0L; + int num2; + while ((num2 = source.ReadFieldHeader()) > 0) + { + int num3 = num2; + if (num3 != 1) + { + if (num3 != 2) + { + source.SkipField(); + } + else + { + timeSpanScale = (TimeSpanScale)source.ReadInt32(); + } + } + else + { + source.Assert(WireType.SignedVariant); + num = source.ReadInt64(); + } + } + ProtoReader.EndSubItem(token, source); + TimeSpanScale timeSpanScale2 = timeSpanScale; + switch (timeSpanScale2) + { + case TimeSpanScale.Days: + result = num * 864000000000L; + break; + case TimeSpanScale.Hours: + result = num * 36000000000L; + break; + case TimeSpanScale.Minutes: + result = num * 600000000L; + break; + case TimeSpanScale.Seconds: + result = num * 10000000L; + break; + case TimeSpanScale.Milliseconds: + result = num * 10000L; + break; + case TimeSpanScale.Ticks: + result = num; + break; + default: + { + if (timeSpanScale2 != TimeSpanScale.MinMax) + { + throw new ProtoException("Unknown timescale: " + timeSpanScale.ToString()); + } + long num4 = num; + if (num4 != -1L) + { + if (num4 != 1L) + { + throw new ProtoException("Unknown min/max value: " + num.ToString()); + } + result = long.MaxValue; + } + else + { + result = long.MinValue; + } + break; + } + } + } + else + { + result = source.ReadInt64(); + } + return result; + } + + public static decimal ReadDecimal(ProtoReader reader) + { + ulong num = 0UL; + uint num2 = 0u; + uint num3 = 0u; + SubItemToken token = ProtoReader.StartSubItem(reader); + int num4; + while ((num4 = reader.ReadFieldHeader()) > 0) + { + switch (num4) + { + case 1: + num = reader.ReadUInt64(); + break; + case 2: + num2 = reader.ReadUInt32(); + break; + case 3: + num3 = reader.ReadUInt32(); + break; + default: + reader.SkipField(); + break; + } + } + ProtoReader.EndSubItem(token, reader); + bool flag = num == 0UL && num2 == 0u; + decimal result; + if (flag) + { + result = 0m; + } + else + { + int lo = (int)(num & /*(ulong)-1 */ulong.MaxValue); + int mid = (int)(num >> 32 & /*(ulong)-1*/ulong.MaxValue); + int hi = (int)num2; + bool isNegative = (num3 & 1u) == 1u; + byte scale = (byte)((num3 & 510u) >> 1); + result = new decimal(lo, mid, hi, isNegative, scale); + } + return result; + } + + public static void WriteDecimal(decimal value, ProtoWriter writer) + { + int[] bits = decimal.GetBits(value); + ulong num = (ulong)((ulong)((long)bits[1]) << 32); + ulong num2 = (ulong)((long)bits[0] & (long)(long.MaxValue)); + ulong num3 = num | num2; + uint num4 = (uint)bits[2]; + uint num5 = (uint)((bits[3] >> 15 & 510) | (bits[3] >> 31 & 1)); + SubItemToken token = ProtoWriter.StartSubItem(null, writer); + bool flag = num3 > 0UL; + if (flag) + { + ProtoWriter.WriteFieldHeader(1, WireType.Variant, writer); + ProtoWriter.WriteUInt64(num3, writer); + } + bool flag2 = num4 > 0u; + if (flag2) + { + ProtoWriter.WriteFieldHeader(2, WireType.Variant, writer); + ProtoWriter.WriteUInt32(num4, writer); + } + bool flag3 = num5 > 0u; + if (flag3) + { + ProtoWriter.WriteFieldHeader(3, WireType.Variant, writer); + ProtoWriter.WriteUInt32(num5, writer); + } + ProtoWriter.EndSubItem(token, writer); + } + + public static void WriteGuid(Guid value, ProtoWriter dest) + { + byte[] data = value.ToByteArray(); + SubItemToken token = ProtoWriter.StartSubItem(null, dest); + bool flag = value != Guid.Empty; + if (flag) + { + ProtoWriter.WriteFieldHeader(1, WireType.Fixed64, dest); + ProtoWriter.WriteBytes(data, 0, 8, dest); + ProtoWriter.WriteFieldHeader(2, WireType.Fixed64, dest); + ProtoWriter.WriteBytes(data, 8, 8, dest); + } + ProtoWriter.EndSubItem(token, dest); + } + + public static Guid ReadGuid(ProtoReader source) + { + ulong num = 0UL; + ulong num2 = 0UL; + SubItemToken token = ProtoReader.StartSubItem(source); + int num3; + while ((num3 = source.ReadFieldHeader()) > 0) + { + int num4 = num3; + if (num4 != 1) + { + if (num4 != 2) + { + source.SkipField(); + } + else + { + num2 = source.ReadUInt64(); + } + } + else + { + num = source.ReadUInt64(); + } + } + ProtoReader.EndSubItem(token, source); + bool flag = num == 0UL && num2 == 0UL; + Guid result; + if (flag) + { + result = Guid.Empty; + } + else + { + uint num5 = (uint)(num >> 32); + uint a = (uint)num; + uint num6 = (uint)(num2 >> 32); + uint num7 = (uint)num2; + result = new Guid((int)a, (short)num5, (short)(num5 >> 16), (byte)num7, (byte)(num7 >> 8), (byte)(num7 >> 16), (byte)(num7 >> 24), (byte)num6, (byte)(num6 >> 8), (byte)(num6 >> 16), (byte)(num6 >> 24)); + } + return result; + } + + public static object ReadNetObject(object value, ProtoReader source, int key, Type type, BclHelpers.NetObjectOptions options) + { + SubItemToken token = ProtoReader.StartSubItem(source); + int num = -1; + int num2 = -1; + int num3; + while ((num3 = source.ReadFieldHeader()) > 0) + { + switch (num3) + { + case 1: + { + int key2 = source.ReadInt32(); + value = source.NetCache.GetKeyedObject(key2); + break; + } + case 2: + num = source.ReadInt32(); + break; + case 3: + { + int key2 = source.ReadInt32(); + type = (Type)source.NetCache.GetKeyedObject(key2); + key = source.GetTypeKey(ref type); + break; + } + case 4: + num2 = source.ReadInt32(); + break; + case 5: + case 6: + case 7: + case 9: + goto IL_27E; + case 8: + { + string text = source.ReadString(); + type = source.DeserializeType(text); + bool flag = type == null; + if (flag) + { + throw new ProtoException("Unable to resolve type: " + text + " (you can use the TypeModel.DynamicTypeFormatting event to provide a custom mapping)"); + } + bool flag2 = type == typeof(string); + if (flag2) + { + key = -1; + } + else + { + key = source.GetTypeKey(ref type); + bool flag3 = key < 0; + if (flag3) + { + throw new InvalidOperationException("Dynamic type is not a contract-type: " + type.Name); + } + } + break; + } + case 10: + { + bool flag4 = type == typeof(string); + bool flag5 = value == null; + bool flag6 = flag5 && (flag4 || (options & BclHelpers.NetObjectOptions.LateSet) > BclHelpers.NetObjectOptions.None); + bool flag7 = num >= 0 && !flag6; + if (flag7) + { + bool flag8 = value == null; + if (flag8) + { + source.TrapNextObject(num); + } + else + { + source.NetCache.SetKeyedObject(num, value); + } + bool flag9 = num2 >= 0; + if (flag9) + { + source.NetCache.SetKeyedObject(num2, type); + } + } + object obj = value; + bool flag10 = flag4; + if (flag10) + { + value = source.ReadString(); + } + else + { + value = ProtoReader.ReadTypedObject(obj, key, source, type); + } + bool flag11 = num >= 0; + if (flag11) + { + bool flag12 = flag5 && !flag6; + if (flag12) + { + obj = source.NetCache.GetKeyedObject(num); + } + bool flag13 = flag6; + if (flag13) + { + source.NetCache.SetKeyedObject(num, value); + bool flag14 = num2 >= 0; + if (flag14) + { + source.NetCache.SetKeyedObject(num2, type); + } + } + } + bool flag15 = num >= 0 && !flag6 && obj != value; + if (flag15) + { + throw new ProtoException("A reference-tracked object changed reference during deserialization"); + } + bool flag16 = num < 0 && num2 >= 0; + if (flag16) + { + source.NetCache.SetKeyedObject(num2, type); + } + break; + } + default: + goto IL_27E; + } + continue; + IL_27E: + source.SkipField(); + } + bool flag17 = num >= 0 && (options & BclHelpers.NetObjectOptions.AsReference) == BclHelpers.NetObjectOptions.None; + if (flag17) + { + throw new ProtoException("Object key in input stream, but reference-tracking was not expected"); + } + ProtoReader.EndSubItem(token, source); + return value; + } + + public static void WriteNetObject(object value, ProtoWriter dest, int key, BclHelpers.NetObjectOptions options) + { + bool flag = dest == null; + if (flag) + { + throw new ArgumentNullException("dest"); + } + bool flag2 = (options & BclHelpers.NetObjectOptions.DynamicType) > BclHelpers.NetObjectOptions.None; + bool flag3 = (options & BclHelpers.NetObjectOptions.AsReference) > BclHelpers.NetObjectOptions.None; + WireType wireType = dest.WireType; + SubItemToken token = ProtoWriter.StartSubItem(null, dest); + bool flag4 = true; + bool flag5 = flag3; + if (flag5) + { + bool flag6; + int value2 = dest.NetCache.AddObjectKey(value, out flag6); + ProtoWriter.WriteFieldHeader(flag6 ? 1 : 2, WireType.Variant, dest); + ProtoWriter.WriteInt32(value2, dest); + bool flag7 = flag6; + if (flag7) + { + flag4 = false; + } + } + bool flag8 = flag4; + if (flag8) + { + bool flag9 = flag2; + if (flag9) + { + Type type = value.GetType(); + bool flag10 = !(value is string); + if (flag10) + { + key = dest.GetTypeKey(ref type); + bool flag11 = key < 0; + if (flag11) + { + throw new InvalidOperationException("Dynamic type is not a contract-type: " + type.Name); + } + } + bool flag12; + int value3 = dest.NetCache.AddObjectKey(type, out flag12); + ProtoWriter.WriteFieldHeader(flag12 ? 3 : 4, WireType.Variant, dest); + ProtoWriter.WriteInt32(value3, dest); + bool flag13 = !flag12; + if (flag13) + { + ProtoWriter.WriteFieldHeader(8, WireType.String, dest); + ProtoWriter.WriteString(dest.SerializeType(type), dest); + } + } + ProtoWriter.WriteFieldHeader(10, wireType, dest); + bool flag14 = value is string; + if (flag14) + { + ProtoWriter.WriteString((string)value, dest); + } + else + { + ProtoWriter.WriteObject(value, key, dest); + } + } + ProtoWriter.EndSubItem(token, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/BclHelpers.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/BclHelpers.cs.meta new file mode 100644 index 00000000..11421dcc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/BclHelpers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb4f7e7bf29811b48a2af2a46cf7c0c3 +timeCreated: 1611404545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferExtension.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferExtension.cs new file mode 100644 index 00000000..2bae502e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferExtension.cs @@ -0,0 +1,72 @@ +using System; +using System.IO; + +namespace ProtoBuf +{ + public sealed class BufferExtension : IExtension + { + private byte[] buffer; + + int IExtension.GetLength() + { + return (this.buffer == null) ? 0 : this.buffer.Length; + } + + Stream IExtension.BeginAppend() + { + return new MemoryStream(); + } + + void IExtension.EndAppend(Stream stream, bool commit) + { + try + { + int num = 0; + bool flag = commit && (num = (int)stream.Length) > 0; + if (flag) + { + MemoryStream memoryStream = (MemoryStream)stream; + bool flag2 = this.buffer == null; + if (flag2) + { + this.buffer = memoryStream.ToArray(); + } + else + { + int num2 = this.buffer.Length; + byte[] to = new byte[num2 + num]; + Helpers.BlockCopy(this.buffer, 0, to, 0, num2); + Helpers.BlockCopy(memoryStream.GetBuffer(), 0, to, num2, num); + this.buffer = to; + } + } + } + finally + { + if (stream != null) + { + ((IDisposable)stream).Dispose(); + } + } + } + + Stream IExtension.BeginQuery() + { + return (this.buffer == null) ? Stream.Null : new MemoryStream(this.buffer); + } + + void IExtension.EndQuery(Stream stream) + { + try + { + } + finally + { + if (stream != null) + { + ((IDisposable)stream).Dispose(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferExtension.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferExtension.cs.meta new file mode 100644 index 00000000..6a9c6aa6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferExtension.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 093a887d01b82564b920e35171554124 +timeCreated: 1611403151 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferPool.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferPool.cs new file mode 100644 index 00000000..36aabc3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferPool.cs @@ -0,0 +1,87 @@ +using System; +using System.Threading; + +namespace ProtoBuf +{ + internal sealed class BufferPool + { + private const int PoolSize = 20; + + internal const int BufferLength = 1024; + + private static readonly object[] pool = new object[20]; + + internal static void Flush() + { + for (int i = 0; i < BufferPool.pool.Length; i++) + { + Interlocked.Exchange(ref BufferPool.pool[i], null); + } + } + + private BufferPool() + { + } + + internal static byte[] GetBuffer() + { + for (int i = 0; i < BufferPool.pool.Length; i++) + { + object obj; + bool flag = (obj = Interlocked.Exchange(ref BufferPool.pool[i], null)) != null; + if (flag) + { + return (byte[])obj; + } + } + return new byte[1024]; + } + + internal static void ResizeAndFlushLeft(ref byte[] buffer, int toFitAtLeastBytes, int copyFromIndex, int copyBytes) + { + Helpers.DebugAssert(buffer != null); + Helpers.DebugAssert(toFitAtLeastBytes > buffer.Length); + Helpers.DebugAssert(copyFromIndex >= 0); + Helpers.DebugAssert(copyBytes >= 0); + int num = buffer.Length * 2; + bool flag = num < toFitAtLeastBytes; + if (flag) + { + num = toFitAtLeastBytes; + } + byte[] array = new byte[num]; + bool flag2 = copyBytes > 0; + if (flag2) + { + Helpers.BlockCopy(buffer, copyFromIndex, array, 0, copyBytes); + } + bool flag3 = buffer.Length == 1024; + if (flag3) + { + BufferPool.ReleaseBufferToPool(ref buffer); + } + buffer = array; + } + + internal static void ReleaseBufferToPool(ref byte[] buffer) + { + bool flag = buffer == null; + if (!flag) + { + bool flag2 = buffer.Length == 1024; + if (flag2) + { + for (int i = 0; i < BufferPool.pool.Length; i++) + { + bool flag3 = Interlocked.CompareExchange(ref BufferPool.pool[i], buffer, null) == null; + if (flag3) + { + break; + } + } + } + buffer = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferPool.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferPool.cs.meta new file mode 100644 index 00000000..32eb47ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/BufferPool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9f1916d7d8c6984e979af269fcde17b +timeCreated: 1611404433 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/DataFormat.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/DataFormat.cs new file mode 100644 index 00000000..e53b59d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/DataFormat.cs @@ -0,0 +1,13 @@ +using System; + +namespace ProtoBuf +{ + public enum DataFormat + { + Default, + ZigZag, + TwosComplement, + FixedSize, + Group + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/DataFormat.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/DataFormat.cs.meta new file mode 100644 index 00000000..e19f0dd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/DataFormat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6699ef9eb3af6941a78cb34b4d81ef9 +timeCreated: 1611404881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Extensible.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Extensible.cs new file mode 100644 index 00000000..3c33a044 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Extensible.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using ProtoBuf.Meta; + +namespace ProtoBuf +{ + public abstract class Extensible : IExtensible + { + private IExtension extensionObject; + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return this.GetExtensionObject(createIfMissing); + } + + protected virtual IExtension GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + + public static IExtension GetExtensionObject(ref IExtension extensionObject, bool createIfMissing) + { + bool flag = createIfMissing && extensionObject == null; + if (flag) + { + extensionObject = new BufferExtension(); + } + return extensionObject; + } + + public static void AppendValue(IExtensible instance, int tag, TValue value) + { + Extensible.AppendValue(instance, tag, DataFormat.Default, value); + } + + public static void AppendValue(IExtensible instance, int tag, DataFormat format, TValue value) + { + ExtensibleUtil.AppendExtendValue(RuntimeTypeModel.Default, instance, tag, format, value); + } + + public static TValue GetValue(IExtensible instance, int tag) + { + return Extensible.GetValue(instance, tag, DataFormat.Default); + } + + public static TValue GetValue(IExtensible instance, int tag, DataFormat format) + { + TValue result; + Extensible.TryGetValue(instance, tag, format, out result); + return result; + } + + public static bool TryGetValue(IExtensible instance, int tag, out TValue value) + { + return Extensible.TryGetValue(instance, tag, DataFormat.Default, out value); + } + + public static bool TryGetValue(IExtensible instance, int tag, DataFormat format, out TValue value) + { + return Extensible.TryGetValue(instance, tag, format, false, out value); + } + + public static bool TryGetValue(IExtensible instance, int tag, DataFormat format, bool allowDefinedTag, out TValue value) + { + value = default(TValue); + bool result = false; + foreach (TValue tvalue in ExtensibleUtil.GetExtendedValues(instance, tag, format, true, allowDefinedTag)) + { + value = tvalue; + result = true; + } + return result; + } + + public static IEnumerable GetValues(IExtensible instance, int tag) + { + return ExtensibleUtil.GetExtendedValues(instance, tag, DataFormat.Default, false, false); + } + + public static IEnumerable GetValues(IExtensible instance, int tag, DataFormat format) + { + return ExtensibleUtil.GetExtendedValues(instance, tag, format, false, false); + } + + public static bool TryGetValue(TypeModel model, Type type, IExtensible instance, int tag, DataFormat format, bool allowDefinedTag, out object value) + { + value = null; + bool result = false; + foreach (object obj in ExtensibleUtil.GetExtendedValues(model, type, instance, tag, format, true, allowDefinedTag)) + { + value = obj; + result = true; + } + return result; + } + + public static IEnumerable GetValues(TypeModel model, Type type, IExtensible instance, int tag, DataFormat format) + { + return ExtensibleUtil.GetExtendedValues(model, type, instance, tag, format, false, false); + } + + public static void AppendValue(TypeModel model, IExtensible instance, int tag, DataFormat format, object value) + { + ExtensibleUtil.AppendExtendValue(model, instance, tag, format, value); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Extensible.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Extensible.cs.meta new file mode 100644 index 00000000..f8ccdbf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Extensible.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9283a99346cfed4297e56586e046bf8 +timeCreated: 1611404642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs new file mode 100644 index 00000000..c4105259 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs @@ -0,0 +1,109 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using ProtoBuf.Meta; + +namespace ProtoBuf +{ + internal static class ExtensibleUtil + { + internal static IEnumerable GetExtendedValues(IExtensible instance, int tag, DataFormat format, bool singleton, bool allowDefinedTag) + { + foreach (object obj in ExtensibleUtil.GetExtendedValues(RuntimeTypeModel.Default, typeof(TValue), instance, tag, format, singleton, allowDefinedTag)) + { + TValue value = (TValue)((object)obj); + yield return value; + value = default(TValue); + } + IEnumerator enumerator = null; + yield break; + yield break; + } + + internal static IEnumerable GetExtendedValues(TypeModel model, Type type, IExtensible instance, int tag, DataFormat format, bool singleton, bool allowDefinedTag) + { + bool flag = instance == null; + if (flag) + { + throw new ArgumentNullException("instance"); + } + bool flag2 = tag <= 0; + if (flag2) + { + throw new ArgumentOutOfRangeException("tag"); + } + IExtension extn = instance.GetExtensionObject(false); + bool flag3 = extn == null; + if (flag3) + { + yield break; + } + Stream stream = extn.BeginQuery(); + object value = null; + ProtoReader reader = null; + try + { + SerializationContext ctx = new SerializationContext(); + reader = ProtoReader.Create(stream, model, ctx, -1); + while (model.TryDeserializeAuxiliaryType(reader, format, tag, type, ref value, true, false, false, false) && value != null) + { + bool flag4 = !singleton; + if (flag4) + { + yield return value; + value = null; + } + } + bool flag5 = singleton && value != null; + if (flag5) + { + yield return value; + } + ctx = null; + } + finally + { + ProtoReader.Recycle(reader); + extn.EndQuery(stream); + } + yield break; + yield break; + } + + internal static void AppendExtendValue(TypeModel model, IExtensible instance, int tag, DataFormat format, object value) + { + bool flag = instance == null; + if (flag) + { + throw new ArgumentNullException("instance"); + } + bool flag2 = value == null; + if (flag2) + { + throw new ArgumentNullException("value"); + } + IExtension extensionObject = instance.GetExtensionObject(true); + bool flag3 = extensionObject == null; + if (flag3) + { + throw new InvalidOperationException("No extension object available; appended data would be lost."); + } + bool commit = false; + Stream stream = extensionObject.BeginAppend(); + try + { + using (ProtoWriter protoWriter = new ProtoWriter(stream, model, null)) + { + model.TrySerializeAuxiliaryType(protoWriter, null, format, tag, value, false); + protoWriter.Close(); + } + commit = true; + } + finally + { + extensionObject.EndAppend(stream, commit); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs.meta new file mode 100644 index 00000000..b01930e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ExtensibleUtil.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6bc96ccf173fbeb428e12bc9b4771977 +timeCreated: 1611403893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs new file mode 100644 index 00000000..7d4c3711 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs @@ -0,0 +1,341 @@ +using System; +using System.Diagnostics; +using System.Reflection; +using System.Text; + +namespace ProtoBuf +{ + internal sealed class Helpers + { + public static readonly Type[] EmptyTypes = Type.EmptyTypes; + + private Helpers() + { + } + + public static StringBuilder AppendLine(StringBuilder builder) + { + return builder.AppendLine(); + } + + public static bool IsNullOrEmpty(string value) + { + return value == null || value.Length == 0; + } + + [Conditional("DEBUG")] + public static void DebugWriteLine(string message, object obj) + { + string str; + try + { + str = ((obj == null) ? "(null)" : obj.ToString()); + } + catch + { + str = "(exception)"; + } + Helpers.DebugWriteLine(message + ": " + str); + } + + [Conditional("DEBUG")] + public static void DebugWriteLine(string message) + { + Debug.WriteLine(message); + } + + [Conditional("TRACE")] + public static void TraceWriteLine(string message) + { + Trace.WriteLine(message); + } + + [Conditional("DEBUG")] + public static void DebugAssert(bool condition, string message) + { + bool flag = !condition; + if (flag) + { + Debug.Assert(false, message); + } + } + + [Conditional("DEBUG")] + public static void DebugAssert(bool condition, string message, params object[] args) + { + bool flag = !condition; + if (flag) + { + Helpers.DebugAssert(false, string.Format(message, args)); + } + } + + [Conditional("DEBUG")] + public static void DebugAssert(bool condition) + { + bool flag = !condition && System.Diagnostics.Debugger.IsAttached; + if (flag) + { + System.Diagnostics.Debugger.Break(); + } + Debug.Assert(condition); + } + + public static void Sort(int[] keys, object[] values) + { + bool flag; + do + { + flag = false; + for (int i = 1; i < keys.Length; i++) + { + bool flag2 = keys[i - 1] > keys[i]; + if (flag2) + { + int num = keys[i]; + keys[i] = keys[i - 1]; + keys[i - 1] = num; + object obj = values[i]; + values[i] = values[i - 1]; + values[i - 1] = obj; + flag = true; + } + } + } + while (flag); + } + + public static void BlockCopy(byte[] from, int fromIndex, byte[] to, int toIndex, int count) + { + Buffer.BlockCopy(from, fromIndex, to, toIndex, count); + } + + public static bool IsInfinity(float value) + { + return float.IsInfinity(value); + } + + internal static MethodInfo GetInstanceMethod(Type declaringType, string name) + { + return declaringType.GetMethod(name, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); + } + + internal static MethodInfo GetStaticMethod(Type declaringType, string name) + { + return declaringType.GetMethod(name, BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); + } + + internal static MethodInfo GetInstanceMethod(Type declaringType, string name, Type[] types) + { + bool flag = types == null; + if (flag) + { + types = Helpers.EmptyTypes; + } + return declaringType.GetMethod(name, BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic, null, types, null); + } + + internal static bool IsSubclassOf(Type type, Type baseClass) + { + return type.IsSubclassOf(baseClass); + } + + public static bool IsInfinity(double value) + { + return double.IsInfinity(value); + } + + public static ProtoTypeCode GetTypeCode(Type type) + { + TypeCode typeCode = Type.GetTypeCode(type); + switch (typeCode) + { + case TypeCode.Empty: + case TypeCode.Boolean: + case TypeCode.Char: + case TypeCode.SByte: + case TypeCode.Byte: + case TypeCode.Int16: + case TypeCode.UInt16: + case TypeCode.Int32: + case TypeCode.UInt32: + case TypeCode.Int64: + case TypeCode.UInt64: + case TypeCode.Single: + case TypeCode.Double: + case TypeCode.Decimal: + case TypeCode.DateTime: + case TypeCode.String: + return (ProtoTypeCode)typeCode; + } + bool flag = type == typeof(TimeSpan); + ProtoTypeCode result; + if (flag) + { + result = ProtoTypeCode.TimeSpan; + } + else + { + bool flag2 = type == typeof(Guid); + if (flag2) + { + result = ProtoTypeCode.Guid; + } + else + { + bool flag3 = type == typeof(Uri); + if (flag3) + { + result = ProtoTypeCode.Uri; + } + else + { + bool flag4 = type == typeof(byte[]); + if (flag4) + { + result = ProtoTypeCode.ByteArray; + } + else + { + bool flag5 = type == typeof(Type); + if (flag5) + { + result = ProtoTypeCode.Type; + } + else + { + result = ProtoTypeCode.Unknown; + } + } + } + } + } + return result; + } + + internal static Type GetUnderlyingType(Type type) + { + return Nullable.GetUnderlyingType(type); + } + + internal static bool IsValueType(Type type) + { + return type.IsValueType; + } + + internal static bool IsEnum(Type type) + { + return type.IsEnum; + } + + internal static MethodInfo GetGetMethod(PropertyInfo property, bool nonPublic, bool allowInternal) + { + bool flag = property == null; + MethodInfo result; + if (flag) + { + result = null; + } + else + { + MethodInfo methodInfo = property.GetGetMethod(nonPublic); + bool flag2 = methodInfo == null && !nonPublic && allowInternal; + if (flag2) + { + methodInfo = property.GetGetMethod(true); + bool flag3 = methodInfo == null && !methodInfo.IsAssembly && !methodInfo.IsFamilyOrAssembly; + if (flag3) + { + methodInfo = null; + } + } + result = methodInfo; + } + return result; + } + + internal static MethodInfo GetSetMethod(PropertyInfo property, bool nonPublic, bool allowInternal) + { + bool flag = property == null; + MethodInfo result; + if (flag) + { + result = null; + } + else + { + MethodInfo methodInfo = property.GetSetMethod(nonPublic); + bool flag2 = methodInfo == null && !nonPublic && allowInternal; + if (flag2) + { + methodInfo = property.GetGetMethod(true); + bool flag3 = methodInfo == null && !methodInfo.IsAssembly && !methodInfo.IsFamilyOrAssembly; + if (flag3) + { + methodInfo = null; + } + } + result = methodInfo; + } + return result; + } + + internal static ConstructorInfo GetConstructor(Type type, Type[] parameterTypes, bool nonPublic) + { + return type.GetConstructor(nonPublic ? (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic) : (BindingFlags.Instance | BindingFlags.Public), null, parameterTypes, null); + } + + internal static ConstructorInfo[] GetConstructors(Type type, bool nonPublic) + { + return type.GetConstructors(nonPublic ? (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic) : (BindingFlags.Instance | BindingFlags.Public)); + } + + internal static PropertyInfo GetProperty(Type type, string name, bool nonPublic) + { + return type.GetProperty(name, nonPublic ? (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic) : (BindingFlags.Instance | BindingFlags.Public)); + } + + internal static object ParseEnum(Type type, string value) + { + return Enum.Parse(type, value, true); + } + + internal static MemberInfo[] GetInstanceFieldsAndProperties(Type type, bool publicOnly) + { + BindingFlags bindingAttr = publicOnly ? (BindingFlags.Instance | BindingFlags.Public) : (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); + PropertyInfo[] properties = type.GetProperties(bindingAttr); + FieldInfo[] fields = type.GetFields(bindingAttr); + MemberInfo[] array = new MemberInfo[fields.Length + properties.Length]; + properties.CopyTo(array, 0); + fields.CopyTo(array, properties.Length); + return array; + } + + internal static Type GetMemberType(MemberInfo member) + { + MemberTypes memberType = member.MemberType; + Type result; + if (memberType != MemberTypes.Field) + { + if (memberType != MemberTypes.Property) + { + result = null; + } + else + { + result = ((PropertyInfo)member).PropertyType; + } + } + else + { + result = ((FieldInfo)member).FieldType; + } + return result; + } + + internal static bool IsAssignableFrom(Type target, Type type) + { + return target.IsAssignableFrom(type); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs.meta new file mode 100644 index 00000000..58025d0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Helpers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2dafd29875705334ea80c76b5cb82b63 +timeCreated: 1611403507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtensible.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtensible.cs new file mode 100644 index 00000000..941b86a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtensible.cs @@ -0,0 +1,9 @@ +using System; + +namespace ProtoBuf +{ + public interface IExtensible + { + IExtension GetExtensionObject(bool createIfMissing); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtensible.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtensible.cs.meta new file mode 100644 index 00000000..dc34ff39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtensible.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ff47a5fb05919b45bfddeb18f37939e +timeCreated: 1611403831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtension.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtension.cs new file mode 100644 index 00000000..001754df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtension.cs @@ -0,0 +1,18 @@ +using System; +using System.IO; + +namespace ProtoBuf +{ + public interface IExtension + { + Stream BeginAppend(); + + void EndAppend(Stream stream, bool commit); + + Stream BeginQuery(); + + void EndQuery(Stream stream); + + int GetLength(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtension.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtension.cs.meta new file mode 100644 index 00000000..60a55cf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/IExtension.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83f33cea356663a419170cd907d6b9ce +timeCreated: 1611404046 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ImplicitFields.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ImplicitFields.cs new file mode 100644 index 00000000..ca310765 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ImplicitFields.cs @@ -0,0 +1,11 @@ +using System; + +namespace ProtoBuf +{ + public enum ImplicitFields + { + None, + AllPublic, + AllFields + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ImplicitFields.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ImplicitFields.cs.meta new file mode 100644 index 00000000..19e70a8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ImplicitFields.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b9802b45bb8732c479aa537a633885a5 +timeCreated: 1611404410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/MemberSerializationOptions.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/MemberSerializationOptions.cs new file mode 100644 index 00000000..70b37e60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/MemberSerializationOptions.cs @@ -0,0 +1,16 @@ +using System; + +namespace ProtoBuf +{ + [Flags] + public enum MemberSerializationOptions + { + None = 0, + Packed = 1, + Required = 2, + AsReference = 4, + DynamicType = 8, + OverwriteList = 16, + AsReferenceHasValue = 32 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/MemberSerializationOptions.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/MemberSerializationOptions.cs.meta new file mode 100644 index 00000000..a9a95b42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/MemberSerializationOptions.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae30f2bfd7c00b347acefae14066d26a +timeCreated: 1611404338 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta.meta new file mode 100644 index 00000000..1cfb21e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 2b782c6e2c04dd848a0802da8522a8b6 +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/AttributeMap.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/AttributeMap.cs new file mode 100644 index 00000000..4fb2059b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/AttributeMap.cs @@ -0,0 +1,117 @@ +using System; +using System.Reflection; + +namespace ProtoBuf.Meta +{ + internal abstract class AttributeMap + { + public abstract Type AttributeType { get; } + + public abstract object Target { get; } + + private sealed class ReflectionAttributeMap : AttributeMap + { + public override object Target + { + get + { + return this.attribute; + } + } + + public override Type AttributeType + { + get + { + return this.attribute.GetType(); + } + } + + private readonly Attribute attribute; + + public override bool TryGet(string key, bool publicOnly, out object value) + { + foreach (MemberInfo memberInfo in Helpers.GetInstanceFieldsAndProperties(this.attribute.GetType(), publicOnly)) + { + bool flag = string.Equals(memberInfo.Name, key, StringComparison.OrdinalIgnoreCase); + if (flag) + { + PropertyInfo propertyInfo = memberInfo as PropertyInfo; + bool flag2 = propertyInfo != null; + bool result; + if (flag2) + { + value = propertyInfo.GetValue(this.attribute, null); + result = true; + } + else + { + FieldInfo fieldInfo = memberInfo as FieldInfo; + bool flag3 = fieldInfo != null; + if (!flag3) + { + throw new NotSupportedException(memberInfo.GetType().Name); + } + value = fieldInfo.GetValue(this.attribute); + result = true; + } + return result; + } + } + value = null; + return false; + } + + public ReflectionAttributeMap(Attribute attribute) + { + this.attribute = attribute; + } + } + + [Obsolete("Please use AttributeType instead")] + public new Type GetType() + { + return this.AttributeType; + } + + public abstract bool TryGet(string key, bool publicOnly, out object value); + + public bool TryGet(string key, out object value) + { + return this.TryGet(key, true, out value); + } + + public static AttributeMap[] Create(TypeModel model, Type type, bool inherit) + { + object[] customAttributes = type.GetCustomAttributes(inherit); + AttributeMap[] array = new AttributeMap[customAttributes.Length]; + for (int i = 0; i < customAttributes.Length; i++) + { + array[i] = new AttributeMap.ReflectionAttributeMap((Attribute)customAttributes[i]); + } + return array; + } + + public static AttributeMap[] Create(TypeModel model, MemberInfo member, bool inherit) + { + object[] customAttributes = member.GetCustomAttributes(inherit); + AttributeMap[] array = new AttributeMap[customAttributes.Length]; + for (int i = 0; i < customAttributes.Length; i++) + { + array[i] = new AttributeMap.ReflectionAttributeMap((Attribute)customAttributes[i]); + } + return array; + } + + public static AttributeMap[] Create(TypeModel model, Assembly assembly) + { + object[] customAttributes = assembly.GetCustomAttributes(false); + AttributeMap[] array = new AttributeMap[customAttributes.Length]; + for (int i = 0; i < customAttributes.Length; i++) + { + array[i] = new AttributeMap.ReflectionAttributeMap((Attribute)customAttributes[i]); + } + return array; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/AttributeMap.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/AttributeMap.cs.meta new file mode 100644 index 00000000..484bca84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/AttributeMap.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87e043055f5d7a44eb9f66262b09652e +timeCreated: 1611404081 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs new file mode 100644 index 00000000..68acbe62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs @@ -0,0 +1,337 @@ +using System; +using System.Collections; + +namespace ProtoBuf.Meta +{ + internal class BasicList : IEnumerable + { + public object this[int index] + { + get + { + return this.head[index]; + } + } + + public int Count + { + get + { + return this.head.Length; + } + } + + private static readonly BasicList.Node nil = new BasicList.Node(null, 0); + + protected BasicList.Node head = BasicList.nil; + + public struct NodeEnumerator : IEnumerator + { + public object Current + { + get + { + return this.node[this.position]; + } + } + + private int position; + + private readonly BasicList.Node node; + + internal NodeEnumerator(BasicList.Node node) + { + this.position = -1; + this.node = node; + } + + void IEnumerator.Reset() + { + this.position = -1; + } + + public bool MoveNext() + { + int length = this.node.Length; + bool result; + if (this.position <= length) + { + int num = this.position + 1; + this.position = num; + result = (num < length); + } + else + { + result = false; + } + return result; + } + } + + internal sealed class Node + { + public object this[int index] + { + get + { + bool flag = index >= 0 && index < this.length; + if (flag) + { + return this.data[index]; + } + throw new ArgumentOutOfRangeException("index"); + } + set + { + bool flag = index >= 0 && index < this.length; + if (flag) + { + this.data[index] = value; + return; + } + throw new ArgumentOutOfRangeException("index"); + } + } + + public int Length + { + get + { + return this.length; + } + } + + private readonly object[] data; + + private int length; + + internal Node(object[] data, int length) + { + Helpers.DebugAssert((data == null && length == 0) || (data != null && length > 0 && length <= data.Length)); + this.data = data; + this.length = length; + } + + public void RemoveLastWithMutate() + { + bool flag = this.length == 0; + if (flag) + { + throw new InvalidOperationException(); + } + this.length--; + } + + public BasicList.Node Append(object value) + { + int num = this.length + 1; + bool flag = this.data == null; + object[] array; + if (flag) + { + array = new object[10]; + } + else + { + bool flag2 = this.length == this.data.Length; + if (flag2) + { + array = new object[this.data.Length * 2]; + Array.Copy(this.data, array, this.length); + } + else + { + array = this.data; + } + } + array[this.length] = value; + return new BasicList.Node(array, num); + } + + public BasicList.Node Trim() + { + bool flag = this.length == 0 || this.length == this.data.Length; + BasicList.Node result; + if (flag) + { + result = this; + } + else + { + object[] destinationArray = new object[this.length]; + Array.Copy(this.data, destinationArray, this.length); + result = new BasicList.Node(destinationArray, this.length); + } + return result; + } + + internal int IndexOfString(string value) + { + for (int i = 0; i < this.length; i++) + { + bool flag = value == (string)this.data[i]; + if (flag) + { + return i; + } + } + return -1; + } + + internal int IndexOfReference(object instance) + { + for (int i = 0; i < this.length; i++) + { + bool flag = instance == this.data[i]; + if (flag) + { + return i; + } + } + return -1; + } + + internal int IndexOf(BasicList.MatchPredicate predicate, object ctx) + { + for (int i = 0; i < this.length; i++) + { + bool flag = predicate(this.data[i], ctx); + if (flag) + { + return i; + } + } + return -1; + } + + internal void CopyTo(Array array, int offset) + { + bool flag = this.length > 0; + if (flag) + { + Array.Copy(this.data, 0, array, offset, this.length); + } + } + + internal void Clear() + { + bool flag = this.data != null; + if (flag) + { + Array.Clear(this.data, 0, this.data.Length); + } + this.length = 0; + } + } + + internal delegate bool MatchPredicate(object value, object ctx); + + internal sealed class Group + { + public readonly int First; + + public readonly BasicList Items; + + public Group(int first) + { + this.First = first; + this.Items = new BasicList(); + } + } + + public void CopyTo(Array array, int offset) + { + this.head.CopyTo(array, offset); + } + + public int Add(object value) + { + return (this.head = this.head.Append(value)).Length - 1; + } + + public void Trim() + { + this.head = this.head.Trim(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return new BasicList.NodeEnumerator(this.head); + } + + public BasicList.NodeEnumerator GetEnumerator() + { + return new BasicList.NodeEnumerator(this.head); + } + + public void Clear() + { + this.head = BasicList.nil; + } + + internal int IndexOf(BasicList.MatchPredicate predicate, object ctx) + { + return this.head.IndexOf(predicate, ctx); + } + + internal int IndexOfString(string value) + { + return this.head.IndexOfString(value); + } + + internal int IndexOfReference(object instance) + { + return this.head.IndexOfReference(instance); + } + + internal bool Contains(object value) + { + foreach (object objA in this) + { + bool flag = object.Equals(objA, value); + if (flag) + { + return true; + } + } + return false; + } + + internal static BasicList GetContiguousGroups(int[] keys, object[] values) + { + bool flag = keys == null; + if (flag) + { + throw new ArgumentNullException("keys"); + } + bool flag2 = values == null; + if (flag2) + { + throw new ArgumentNullException("values"); + } + bool flag3 = values.Length < keys.Length; + if (flag3) + { + throw new ArgumentException("Not all keys are covered by values", "values"); + } + BasicList basicList = new BasicList(); + BasicList.Group group = null; + for (int i = 0; i < keys.Length; i++) + { + bool flag4 = i == 0 || keys[i] != keys[i - 1]; + if (flag4) + { + group = null; + } + bool flag5 = group == null; + if (flag5) + { + group = new BasicList.Group(keys[i]); + basicList.Add(group); + } + group.Items.Add(values[i]); + } + return basicList; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs.meta new file mode 100644 index 00000000..de4e1a55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/BasicList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a87ac069938105429795f2d59f09a44 +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/CallbackSet.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/CallbackSet.cs new file mode 100644 index 00000000..d0e7c11a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/CallbackSet.cs @@ -0,0 +1,160 @@ +using System; +using System.Reflection; + +namespace ProtoBuf.Meta +{ + public class CallbackSet + { + internal MethodInfo this[TypeModel.CallbackType callbackType] + { + get + { + MethodInfo result; + switch (callbackType) + { + case TypeModel.CallbackType.BeforeSerialize: + result = this.beforeSerialize; + break; + case TypeModel.CallbackType.AfterSerialize: + result = this.afterSerialize; + break; + case TypeModel.CallbackType.BeforeDeserialize: + result = this.beforeDeserialize; + break; + case TypeModel.CallbackType.AfterDeserialize: + result = this.afterDeserialize; + break; + default: + throw new ArgumentException("Callback type not supported: " + callbackType.ToString(), "callbackType"); + } + return result; + } + } + + public MethodInfo BeforeSerialize + { + get + { + return this.beforeSerialize; + } + set + { + this.beforeSerialize = this.SanityCheckCallback(this.metaType.Model, value); + } + } + + public MethodInfo BeforeDeserialize + { + get + { + return this.beforeDeserialize; + } + set + { + this.beforeDeserialize = this.SanityCheckCallback(this.metaType.Model, value); + } + } + + public MethodInfo AfterSerialize + { + get + { + return this.afterSerialize; + } + set + { + this.afterSerialize = this.SanityCheckCallback(this.metaType.Model, value); + } + } + + public MethodInfo AfterDeserialize + { + get + { + return this.afterDeserialize; + } + set + { + this.afterDeserialize = this.SanityCheckCallback(this.metaType.Model, value); + } + } + + public bool NonTrivial + { + get + { + return this.beforeSerialize != null || this.beforeDeserialize != null || this.afterSerialize != null || this.afterDeserialize != null; + } + } + + private readonly MetaType metaType; + + private MethodInfo beforeSerialize; + + private MethodInfo afterSerialize; + + private MethodInfo beforeDeserialize; + + private MethodInfo afterDeserialize; + + internal CallbackSet(MetaType metaType) + { + bool flag = metaType == null; + if (flag) + { + throw new ArgumentNullException("metaType"); + } + this.metaType = metaType; + } + + internal static bool CheckCallbackParameters(TypeModel model, MethodInfo method) + { + ParameterInfo[] parameters = method.GetParameters(); + for (int i = 0; i < parameters.Length; i++) + { + Type parameterType = parameters[i].ParameterType; + bool flag = parameterType == model.MapType(typeof(SerializationContext)); + if (!flag) + { + bool flag2 = parameterType == model.MapType(typeof(Type)); + if (!flag2) + { + return false; + } + } + } + return true; + } + + private MethodInfo SanityCheckCallback(TypeModel model, MethodInfo callback) + { + this.metaType.ThrowIfFrozen(); + bool flag = callback == null; + MethodInfo result; + if (flag) + { + result = callback; + } + else + { + bool isStatic = callback.IsStatic; + if (isStatic) + { + throw new ArgumentException("Callbacks cannot be static", "callback"); + } + bool flag2 = callback.ReturnType != model.MapType(typeof(void)) || !CallbackSet.CheckCallbackParameters(model, callback); + if (flag2) + { + throw CallbackSet.CreateInvalidCallbackSignature(callback); + } + result = callback; + } + return result; + } + + internal static Exception CreateInvalidCallbackSignature(MethodInfo method) + { + return new NotSupportedException("Invalid callback signature in " + method.DeclaringType.FullName + "." + method.Name); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/CallbackSet.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/CallbackSet.cs.meta new file mode 100644 index 00000000..ce94d50b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/CallbackSet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7760448d52303f54b8f3541b6ffa032b +timeCreated: 1611403953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventArgs.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventArgs.cs new file mode 100644 index 00000000..f787bb96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventArgs.cs @@ -0,0 +1,22 @@ +using System; + +namespace ProtoBuf.Meta +{ + public sealed class LockContentedEventArgs : EventArgs + { + public string OwnerStackTrace + { + get + { + return this.ownerStackTrace; + } + } + + private readonly string ownerStackTrace; + + internal LockContentedEventArgs(string ownerStackTrace) + { + this.ownerStackTrace = ownerStackTrace; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventArgs.cs.meta new file mode 100644 index 00000000..29208e95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2e0f668b28069e42964cccec0290fb9 +timeCreated: 1611404258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventHandler.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventHandler.cs new file mode 100644 index 00000000..fa01dd00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventHandler.cs @@ -0,0 +1,6 @@ +using System; + +namespace ProtoBuf.Meta +{ + public delegate void LockContentedEventHandler(object sender, LockContentedEventArgs args); +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventHandler.cs.meta new file mode 100644 index 00000000..abafbdb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/LockContentedEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bf547271692e3a4db4f971055c6f2a1 +timeCreated: 1611403689 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs new file mode 100644 index 00000000..e65ee2f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs @@ -0,0 +1,2327 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Reflection; +using System.Text; +using ProtoBuf.Serializers; + +namespace ProtoBuf.Meta +{ + public class MetaType : ISerializerProxy + { + IProtoSerializer ISerializerProxy.Serializer + { + get + { + return this.Serializer; + } + } + + public MetaType BaseType + { + get + { + return this.baseType; + } + } + + internal TypeModel Model + { + get + { + return this.model; + } + } + + public bool IncludeSerializerMethod + { + get + { + return !this.HasFlag(8); + } + set + { + this.SetFlag(8, !value, true); + } + } + + public bool AsReferenceDefault + { + get + { + return this.HasFlag(32); + } + set + { + this.SetFlag(32, value, true); + } + } + + public bool HasCallbacks + { + get + { + return this.callbacks != null && this.callbacks.NonTrivial; + } + } + + public bool HasSubtypes + { + get + { + return this.subTypes != null && this.subTypes.Count != 0; + } + } + + public CallbackSet Callbacks + { + get + { + bool flag = this.callbacks == null; + if (flag) + { + this.callbacks = new CallbackSet(this); + } + return this.callbacks; + } + } + + private bool IsValueType + { + get + { + return this.type.IsValueType; + } + } + + public string Name + { + get + { + return this.name; + } + set + { + this.ThrowIfFrozen(); + this.name = value; + } + } + + public Type Type + { + get + { + return this.type; + } + } + + internal IProtoTypeSerializer Serializer + { + get + { + bool flag = this.serializer == null; + if (flag) + { + int opaqueToken = 0; + try + { + this.model.TakeLock(ref opaqueToken); + bool flag2 = this.serializer == null; + if (flag2) + { + this.SetFlag(4, true, false); + this.serializer = this.BuildSerializer(); + } + } + finally + { + this.model.ReleaseLock(opaqueToken); + } + } + return this.serializer; + } + } + + internal bool IsList + { + get + { + Type type = this.IgnoreListHandling ? null : TypeModel.GetListItemType(this.model, this.type); + return type != null; + } + } + + public bool UseConstructor + { + get + { + return !this.HasFlag(16); + } + set + { + this.SetFlag(16, !value, true); + } + } + + public Type ConstructType + { + get + { + return this.constructType; + } + set + { + this.ThrowIfFrozen(); + this.constructType = value; + } + } + + public ValueMember this[int fieldNumber] + { + get + { + foreach (object obj in this.fields) + { + ValueMember valueMember = (ValueMember)obj; + bool flag = valueMember.FieldNumber == fieldNumber; + if (flag) + { + return valueMember; + } + } + return null; + } + } + + public ValueMember this[MemberInfo member] + { + get + { + bool flag = member == null; + ValueMember result; + if (flag) + { + result = null; + } + else + { + foreach (object obj in this.fields) + { + ValueMember valueMember = (ValueMember)obj; + bool flag2 = valueMember.Member == member; + if (flag2) + { + return valueMember; + } + } + result = null; + } + return result; + } + } + + public bool EnumPassthru + { + get + { + return this.HasFlag(2); + } + set + { + this.SetFlag(2, value, true); + } + } + + public bool IgnoreListHandling + { + get + { + return this.HasFlag(128); + } + set + { + this.SetFlag(128, value, true); + } + } + + internal bool Pending + { + get + { + return this.HasFlag(1); + } + set + { + this.SetFlag(1, value, false); + } + } + + internal IEnumerable Fields + { + get + { + return this.fields; + } + } + + internal bool IsAutoTuple + { + get + { + return this.HasFlag(64); + } + } + + private MetaType baseType; + + private BasicList subTypes; + + internal static readonly Type ienumerable = typeof(IEnumerable); + + private CallbackSet callbacks; + + private string name; + + private MethodInfo factory; + + private readonly RuntimeTypeModel model; + + private readonly Type type; + + private IProtoTypeSerializer serializer; + + private Type constructType; + + private Type surrogate; + + private readonly BasicList fields = new BasicList(); + + private const byte OPTIONS_Pending = 1; + + private const byte OPTIONS_EnumPassThru = 2; + + private const byte OPTIONS_Frozen = 4; + + private const byte OPTIONS_PrivateOnApi = 8; + + private const byte OPTIONS_SkipConstructor = 16; + + private const byte OPTIONS_AsReferenceDefault = 32; + + private const byte OPTIONS_AutoTuple = 64; + + private const byte OPTIONS_IgnoreListHandling = 128; + + private volatile byte flags; + + internal sealed class Comparer : IComparer, IComparer + { + public static readonly MetaType.Comparer Default = new MetaType.Comparer(); + + public int Compare(object x, object y) + { + return this.Compare(x as MetaType, y as MetaType); + } + + public int Compare(MetaType x, MetaType y) + { + bool flag = x == y; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = x == null; + if (flag2) + { + result = -1; + } + else + { + bool flag3 = y == null; + if (flag3) + { + result = 1; + } + else + { + result = string.Compare(x.GetSchemaTypeName(), y.GetSchemaTypeName(), StringComparison.Ordinal); + } + } + } + return result; + } + } + + [Flags] + internal enum AttributeFamily + { + None = 0, + ProtoBuf = 1, + DataContractSerialier = 2, + XmlSerializer = 4, + AutoTuple = 8 + } + + public override string ToString() + { + return this.type.ToString(); + } + + private bool IsValidSubType(Type subType) + { + return this.type.IsAssignableFrom(subType); + } + + public MetaType AddSubType(int fieldNumber, Type derivedType) + { + return this.AddSubType(fieldNumber, derivedType, DataFormat.Default); + } + + public MetaType AddSubType(int fieldNumber, Type derivedType, DataFormat dataFormat) + { + bool flag = derivedType == null; + if (flag) + { + throw new ArgumentNullException("derivedType"); + } + bool flag2 = fieldNumber < 1; + if (flag2) + { + throw new ArgumentOutOfRangeException("fieldNumber"); + } + bool flag3 = (!this.type.IsClass && !this.type.IsInterface) || this.type.IsSealed; + if (flag3) + { + throw new InvalidOperationException("Sub-types can only be added to non-sealed classes"); + } + bool flag4 = !this.IsValidSubType(derivedType); + if (flag4) + { + throw new ArgumentException(derivedType.Name + " is not a valid sub-type of " + this.type.Name, "derivedType"); + } + MetaType metaType = this.model[derivedType]; + this.ThrowIfFrozen(); + metaType.ThrowIfFrozen(); + SubType value = new SubType(fieldNumber, metaType, dataFormat); + this.ThrowIfFrozen(); + metaType.SetBaseType(this); + bool flag5 = this.subTypes == null; + if (flag5) + { + this.subTypes = new BasicList(); + } + this.subTypes.Add(value); + return this; + } + + private void SetBaseType(MetaType baseType) + { + bool flag = baseType == null; + if (flag) + { + throw new ArgumentNullException("baseType"); + } + bool flag2 = this.baseType == baseType; + if (!flag2) + { + bool flag3 = this.baseType != null; + if (flag3) + { + throw new InvalidOperationException("A type can only participate in one inheritance hierarchy"); + } + for (MetaType metaType = baseType; metaType != null; metaType = metaType.baseType) + { + bool flag4 = metaType == this; + if (flag4) + { + throw new InvalidOperationException("Cyclic inheritance is not allowed"); + } + } + this.baseType = baseType; + } + } + + public MetaType SetCallbacks(MethodInfo beforeSerialize, MethodInfo afterSerialize, MethodInfo beforeDeserialize, MethodInfo afterDeserialize) + { + CallbackSet callbackSet = this.Callbacks; + callbackSet.BeforeSerialize = beforeSerialize; + callbackSet.AfterSerialize = afterSerialize; + callbackSet.BeforeDeserialize = beforeDeserialize; + callbackSet.AfterDeserialize = afterDeserialize; + return this; + } + + public MetaType SetCallbacks(string beforeSerialize, string afterSerialize, string beforeDeserialize, string afterDeserialize) + { + bool isValueType = this.IsValueType; + if (isValueType) + { + throw new InvalidOperationException(); + } + CallbackSet callbackSet = this.Callbacks; + callbackSet.BeforeSerialize = this.ResolveMethod(beforeSerialize, true); + callbackSet.AfterSerialize = this.ResolveMethod(afterSerialize, true); + callbackSet.BeforeDeserialize = this.ResolveMethod(beforeDeserialize, true); + callbackSet.AfterDeserialize = this.ResolveMethod(afterDeserialize, true); + return this; + } + + internal string GetSchemaTypeName() + { + bool flag = this.surrogate != null; + string result; + if (flag) + { + result = this.model[this.surrogate].GetSchemaTypeName(); + } + else + { + bool flag2 = !Helpers.IsNullOrEmpty(this.name); + if (flag2) + { + result = this.name; + } + else + { + string text = this.type.Name; + bool isGenericType = this.type.IsGenericType; + if (isGenericType) + { + StringBuilder stringBuilder = new StringBuilder(text); + int num = text.IndexOf('`'); + bool flag3 = num >= 0; + if (flag3) + { + stringBuilder.Length = num; + } + foreach (Type type in this.type.GetGenericArguments()) + { + stringBuilder.Append('_'); + Type type2 = type; + int key = this.model.GetKey(ref type2); + MetaType metaType = null; + bool flag4 = key >= 0 && (metaType = this.model[type2]) != null && metaType.surrogate == null; + if (flag4) + { + stringBuilder.Append(metaType.GetSchemaTypeName()); + } + else + { + stringBuilder.Append(type2.Name); + } + } + result = stringBuilder.ToString(); + } + else + { + result = text; + } + } + } + return result; + } + + public MetaType SetFactory(MethodInfo factory) + { + this.model.VerifyFactory(factory, this.type); + this.ThrowIfFrozen(); + this.factory = factory; + return this; + } + + public MetaType SetFactory(string factory) + { + return this.SetFactory(this.ResolveMethod(factory, false)); + } + + private MethodInfo ResolveMethod(string name, bool instance) + { + bool flag = Helpers.IsNullOrEmpty(name); + MethodInfo result; + if (flag) + { + result = null; + } + else + { + result = (instance ? Helpers.GetInstanceMethod(this.type, name) : Helpers.GetStaticMethod(this.type, name)); + } + return result; + } + + internal static Exception InbuiltType(Type type) + { + return new ArgumentException("Data of this type has inbuilt behaviour, and cannot be added to a model in this way: " + type.FullName); + } + + internal MetaType(RuntimeTypeModel model, Type type, MethodInfo factory) + { + this.factory = factory; + bool flag = model == null; + if (flag) + { + throw new ArgumentNullException("model"); + } + bool flag2 = type == null; + if (flag2) + { + throw new ArgumentNullException("type"); + } + IProtoSerializer protoSerializer = model.TryGetBasicTypeSerializer(type); + bool flag3 = protoSerializer != null; + if (flag3) + { + throw MetaType.InbuiltType(type); + } + this.type = type; + this.model = model; + bool flag4 = Helpers.IsEnum(type); + if (flag4) + { + this.EnumPassthru = type.IsDefined(model.MapType(typeof(FlagsAttribute)), false); + } + } + + protected internal void ThrowIfFrozen() + { + bool flag = (this.flags & 4) > 0; + if (flag) + { + throw new InvalidOperationException("The type cannot be changed once a serializer has been generated for " + this.type.FullName); + } + } + + private IProtoTypeSerializer BuildSerializer() + { + bool flag = Helpers.IsEnum(this.type); + IProtoTypeSerializer result; + if (flag) + { + result = new TagDecorator(1, WireType.Variant, false, new EnumSerializer(this.type, this.GetEnumMap())); + } + else + { + Type type = this.IgnoreListHandling ? null : TypeModel.GetListItemType(this.model, this.type); + bool flag2 = type != null; + if (flag2) + { + bool flag3 = this.surrogate != null; + if (flag3) + { + throw new ArgumentException("Repeated data (a list, collection, etc) has inbuilt behaviour and cannot use a surrogate"); + } + bool flag4 = this.subTypes != null && this.subTypes.Count != 0; + if (flag4) + { + throw new ArgumentException("Repeated data (a list, collection, etc) has inbuilt behaviour and cannot be subclassed"); + } + Type defaultType = null; + MetaType.ResolveListTypes(this.model, this.type, ref type, ref defaultType); + ValueMember valueMember = new ValueMember(this.model, 1, this.type, type, defaultType, DataFormat.Default); + result = new TypeSerializer(this.model, this.type, new int[] + { + 1 + }, new IProtoSerializer[] + { + valueMember.Serializer + }, null, true, true, null, this.constructType, this.factory); + } + else + { + bool flag5 = this.surrogate != null; + if (flag5) + { + MetaType metaType = this.model[this.surrogate]; + MetaType metaType2; + while ((metaType2 = metaType.baseType) != null) + { + metaType = metaType2; + } + result = new SurrogateSerializer(this.model, this.type, this.surrogate, metaType.Serializer); + } + else + { + bool isAutoTuple = this.IsAutoTuple; + if (isAutoTuple) + { + MemberInfo[] members; + ConstructorInfo constructorInfo = MetaType.ResolveTupleConstructor(this.type, out members); + bool flag6 = constructorInfo == null; + if (flag6) + { + throw new InvalidOperationException(); + } + result = new TupleSerializer(this.model, constructorInfo, members); + } + else + { + this.fields.Trim(); + int count = this.fields.Count; + int num = (this.subTypes == null) ? 0 : this.subTypes.Count; + int[] array = new int[count + num]; + IProtoSerializer[] array2 = new IProtoSerializer[count + num]; + int num2 = 0; + bool flag7 = num != 0; + if (flag7) + { + foreach (object obj in this.subTypes) + { + SubType subType = (SubType)obj; + bool flag8 = !subType.DerivedType.IgnoreListHandling && this.model.MapType(MetaType.ienumerable).IsAssignableFrom(subType.DerivedType.Type); + if (flag8) + { + throw new ArgumentException("Repeated data (a list, collection, etc) has inbuilt behaviour and cannot be used as a subclass"); + } + array[num2] = subType.FieldNumber; + array2[num2++] = subType.Serializer; + } + } + bool flag9 = count != 0; + if (flag9) + { + foreach (object obj2 in this.fields) + { + ValueMember valueMember2 = (ValueMember)obj2; + array[num2] = valueMember2.FieldNumber; + array2[num2++] = valueMember2.Serializer; + } + } + BasicList basicList = null; + for (MetaType metaType3 = this.BaseType; metaType3 != null; metaType3 = metaType3.BaseType) + { + MethodInfo methodInfo = metaType3.HasCallbacks ? metaType3.Callbacks.BeforeDeserialize : null; + bool flag10 = methodInfo != null; + if (flag10) + { + bool flag11 = basicList == null; + if (flag11) + { + basicList = new BasicList(); + } + basicList.Add(methodInfo); + } + } + MethodInfo[] array3 = null; + bool flag12 = basicList != null; + if (flag12) + { + array3 = new MethodInfo[basicList.Count]; + basicList.CopyTo(array3, 0); + Array.Reverse(array3); + } + result = new TypeSerializer(this.model, this.type, array, array2, array3, this.baseType == null, this.UseConstructor, this.callbacks, this.constructType, this.factory); + } + } + } + } + return result; + } + + private static Type GetBaseType(MetaType type) + { + return type.type.BaseType; + } + + internal static bool GetAsReferenceDefault(RuntimeTypeModel model, Type type) + { + bool flag = type == null; + if (flag) + { + throw new ArgumentNullException("type"); + } + bool flag2 = Helpers.IsEnum(type); + bool result; + if (flag2) + { + result = false; + } + else + { + AttributeMap[] array = AttributeMap.Create(model, type, false); + for (int i = 0; i < array.Length; i++) + { + bool flag3 = array[i].AttributeType.FullName == "ProtoBuf.ProtoContractAttribute"; + if (flag3) + { + object obj; + bool flag4 = array[i].TryGet("AsReferenceDefault", out obj); + if (flag4) + { + return (bool)obj; + } + } + } + result = false; + } + return result; + } + + internal void ApplyDefaultBehaviour() + { + Type type = MetaType.GetBaseType(this); + bool flag = type != null && this.model.FindWithoutAdd(type) == null && MetaType.GetContractFamily(this.model, type, null) > MetaType.AttributeFamily.None; + if (flag) + { + this.model.FindOrAddAuto(type, true, false, false); + } + AttributeMap[] array = AttributeMap.Create(this.model, this.type, false); + MetaType.AttributeFamily attributeFamily = MetaType.GetContractFamily(this.model, this.type, array); + bool flag2 = attributeFamily == MetaType.AttributeFamily.AutoTuple; + if (flag2) + { + this.SetFlag(64, true, true); + } + bool flag3 = !this.EnumPassthru && Helpers.IsEnum(this.type); + bool flag4 = attributeFamily == MetaType.AttributeFamily.None && !flag3; + if (!flag4) + { + BasicList basicList = null; + BasicList basicList2 = null; + int dataMemberOffset = 0; + int num = 1; + bool flag5 = this.model.InferTagFromNameDefault; + ImplicitFields implicitFields = ImplicitFields.None; + string text = null; + foreach (AttributeMap attributeMap in array) + { + string fullName = attributeMap.AttributeType.FullName; + bool flag6 = !flag3 && fullName == "ProtoBuf.ProtoIncludeAttribute"; + object obj = null; + if (flag6) + { + int fieldNumber = 0; + bool flag7 = attributeMap.TryGet("tag", out obj); + if (flag7) + { + fieldNumber = (int)obj; + } + DataFormat dataFormat = DataFormat.Default; + bool flag8 = attributeMap.TryGet("DataFormat", out obj); + if (flag8) + { + dataFormat = (DataFormat)((int)obj); + } + Type type2 = null; + try + { + bool flag9 = attributeMap.TryGet("knownTypeName", out obj); + if (flag9) + { + type2 = this.model.GetType((string)obj, this.type.Assembly); + } + else + { + bool flag10 = attributeMap.TryGet("knownType", out obj); + if (flag10) + { + type2 = (Type)obj; + } + } + } + catch (Exception innerException) + { + throw new InvalidOperationException("Unable to resolve sub-type of: " + this.type.FullName, innerException); + } + bool flag11 = type2 == null; + if (flag11) + { + throw new InvalidOperationException("Unable to resolve sub-type of: " + this.type.FullName); + } + bool flag12 = this.IsValidSubType(type2); + if (flag12) + { + this.AddSubType(fieldNumber, type2, dataFormat); + } + } + bool flag13 = fullName == "ProtoBuf.ProtoPartialIgnoreAttribute"; + if (flag13) + { + bool flag14 = attributeMap.TryGet("MemberName", out obj) && obj != null; + if (flag14) + { + bool flag15 = basicList == null; + if (flag15) + { + basicList = new BasicList(); + } + basicList.Add((string)obj); + } + } + bool flag16 = !flag3 && fullName == "ProtoBuf.ProtoPartialMemberAttribute"; + if (flag16) + { + bool flag17 = basicList2 == null; + if (flag17) + { + basicList2 = new BasicList(); + } + basicList2.Add(attributeMap); + } + bool flag18 = fullName == "ProtoBuf.ProtoContractAttribute"; + if (flag18) + { + bool flag19 = attributeMap.TryGet("Name", out obj); + if (flag19) + { + text = (string)obj; + } + bool flag20 = Helpers.IsEnum(this.type); + if (flag20) + { + bool flag21 = attributeMap.TryGet("EnumPassthruHasValue", false, out obj) && (bool)obj; + if (flag21) + { + bool flag22 = attributeMap.TryGet("EnumPassthru", out obj); + if (flag22) + { + this.EnumPassthru = (bool)obj; + bool enumPassthru = this.EnumPassthru; + if (enumPassthru) + { + flag3 = false; + } + } + } + } + else + { + bool flag23 = attributeMap.TryGet("DataMemberOffset", out obj); + if (flag23) + { + dataMemberOffset = (int)obj; + } + bool flag24 = attributeMap.TryGet("InferTagFromNameHasValue", false, out obj) && (bool)obj; + if (flag24) + { + bool flag25 = attributeMap.TryGet("InferTagFromName", out obj); + if (flag25) + { + flag5 = (bool)obj; + } + } + bool flag26 = attributeMap.TryGet("ImplicitFields", out obj) && obj != null; + if (flag26) + { + implicitFields = (ImplicitFields)((int)obj); + } + bool flag27 = attributeMap.TryGet("SkipConstructor", out obj); + if (flag27) + { + this.UseConstructor = !(bool)obj; + } + bool flag28 = attributeMap.TryGet("IgnoreListHandling", out obj); + if (flag28) + { + this.IgnoreListHandling = (bool)obj; + } + bool flag29 = attributeMap.TryGet("AsReferenceDefault", out obj); + if (flag29) + { + this.AsReferenceDefault = (bool)obj; + } + bool flag30 = attributeMap.TryGet("ImplicitFirstTag", out obj) && (int)obj > 0; + if (flag30) + { + num = (int)obj; + } + } + } + bool flag31 = fullName == "System.Runtime.Serialization.DataContractAttribute"; + if (flag31) + { + bool flag32 = text == null && attributeMap.TryGet("Name", out obj); + if (flag32) + { + text = (string)obj; + } + } + bool flag33 = fullName == "System.Xml.Serialization.XmlTypeAttribute"; + if (flag33) + { + bool flag34 = text == null && attributeMap.TryGet("TypeName", out obj); + if (flag34) + { + text = (string)obj; + } + } + } + bool flag35 = !Helpers.IsNullOrEmpty(text); + if (flag35) + { + this.Name = text; + } + bool flag36 = implicitFields > ImplicitFields.None; + if (flag36) + { + attributeFamily &= MetaType.AttributeFamily.ProtoBuf; + } + MethodInfo[] array2 = null; + BasicList basicList3 = new BasicList(); + MemberInfo[] members = this.type.GetMembers(flag3 ? (BindingFlags.Static | BindingFlags.Public) : (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)); + foreach (MemberInfo memberInfo in members) + { + bool flag37 = memberInfo.DeclaringType != this.type; + if (!flag37) + { + bool flag38 = !ProtoBuf.Serializer.isSkipProtoIgnore; + if (flag38) + { + bool flag39 = memberInfo.IsDefined(this.model.MapType(typeof(ProtoIgnoreAttribute)), true); + if (flag39) + { + goto IL_756; + } + } + bool flag40 = basicList != null && basicList.Contains(memberInfo.Name); + if (!flag40) + { + bool flag41 = false; + PropertyInfo propertyInfo; + bool flag42 = (propertyInfo = (memberInfo as PropertyInfo)) != null; + if (flag42) + { + bool flag43 = flag3; + if (!flag43) + { + Type type3 = propertyInfo.PropertyType; + bool isPublic = Helpers.GetGetMethod(propertyInfo, false, false) != null; + bool isField = false; + MetaType.ApplyDefaultBehaviour_AddMembers(this.model, attributeFamily, flag3, basicList2, dataMemberOffset, flag5, implicitFields, basicList3, memberInfo, ref flag41, isPublic, isField, ref type3); + } + } + else + { + FieldInfo fieldInfo; + bool flag44 = (fieldInfo = (memberInfo as FieldInfo)) != null; + if (flag44) + { + Type type3 = fieldInfo.FieldType; + bool isPublic = fieldInfo.IsPublic; + bool isField = true; + bool flag45 = flag3 && !fieldInfo.IsStatic; + if (!flag45) + { + MetaType.ApplyDefaultBehaviour_AddMembers(this.model, attributeFamily, flag3, basicList2, dataMemberOffset, flag5, implicitFields, basicList3, memberInfo, ref flag41, isPublic, isField, ref type3); + } + } + else + { + MethodInfo methodInfo; + bool flag46 = (methodInfo = (memberInfo as MethodInfo)) != null; + if (flag46) + { + bool flag47 = flag3; + if (!flag47) + { + AttributeMap[] array4 = AttributeMap.Create(this.model, methodInfo, false); + bool flag48 = array4 != null && array4.Length != 0; + if (flag48) + { + MetaType.CheckForCallback(methodInfo, array4, "ProtoBuf.ProtoBeforeSerializationAttribute", ref array2, 0); + MetaType.CheckForCallback(methodInfo, array4, "ProtoBuf.ProtoAfterSerializationAttribute", ref array2, 1); + MetaType.CheckForCallback(methodInfo, array4, "ProtoBuf.ProtoBeforeDeserializationAttribute", ref array2, 2); + MetaType.CheckForCallback(methodInfo, array4, "ProtoBuf.ProtoAfterDeserializationAttribute", ref array2, 3); + MetaType.CheckForCallback(methodInfo, array4, "System.Runtime.Serialization.OnSerializingAttribute", ref array2, 4); + MetaType.CheckForCallback(methodInfo, array4, "System.Runtime.Serialization.OnSerializedAttribute", ref array2, 5); + MetaType.CheckForCallback(methodInfo, array4, "System.Runtime.Serialization.OnDeserializingAttribute", ref array2, 6); + MetaType.CheckForCallback(methodInfo, array4, "System.Runtime.Serialization.OnDeserializedAttribute", ref array2, 7); + } + } + } + } + } + } + } + IL_756:; + } + ProtoMemberAttribute[] array5 = new ProtoMemberAttribute[basicList3.Count]; + basicList3.CopyTo(array5, 0); + bool flag49 = flag5 || implicitFields > ImplicitFields.None; + if (flag49) + { + Array.Sort(array5); + int num2 = num; + foreach (ProtoMemberAttribute protoMemberAttribute in array5) + { + bool flag50 = !protoMemberAttribute.TagIsPinned; + if (flag50) + { + protoMemberAttribute.Rebase(num2++); + } + } + } + foreach (ProtoMemberAttribute normalizedAttribute in array5) + { + ValueMember valueMember = this.ApplyDefaultBehaviour(flag3, normalizedAttribute); + bool flag51 = valueMember != null; + if (flag51) + { + this.Add(valueMember); + } + } + bool flag52 = array2 != null; + if (flag52) + { + this.SetCallbacks(MetaType.Coalesce(array2, 0, 4), MetaType.Coalesce(array2, 1, 5), MetaType.Coalesce(array2, 2, 6), MetaType.Coalesce(array2, 3, 7)); + } + } + } + + private static void ApplyDefaultBehaviour_AddMembers(TypeModel model, MetaType.AttributeFamily family, bool isEnum, BasicList partialMembers, int dataMemberOffset, bool inferTagByName, ImplicitFields implicitMode, BasicList members, MemberInfo member, ref bool forced, bool isPublic, bool isField, ref Type effectiveType) + { + if (implicitMode != ImplicitFields.AllPublic) + { + if (implicitMode == ImplicitFields.AllFields) + { + if (isField) + { + forced = true; + } + } + } + else if (isPublic) + { + forced = true; + } + bool flag = effectiveType.IsSubclassOf(model.MapType(typeof(Delegate))); + if (flag) + { + effectiveType = null; + } + bool flag2 = effectiveType != null; + if (flag2) + { + ProtoMemberAttribute protoMemberAttribute = MetaType.NormalizeProtoMember(model, member, family, forced, isEnum, partialMembers, dataMemberOffset, inferTagByName); + bool flag3 = protoMemberAttribute != null; + if (flag3) + { + members.Add(protoMemberAttribute); + } + } + } + + private static MethodInfo Coalesce(MethodInfo[] arr, int x, int y) + { + MethodInfo methodInfo = arr[x]; + bool flag = methodInfo == null; + if (flag) + { + methodInfo = arr[y]; + } + return methodInfo; + } + + internal static MetaType.AttributeFamily GetContractFamily(RuntimeTypeModel model, Type type, AttributeMap[] attributes) + { + MetaType.AttributeFamily attributeFamily = MetaType.AttributeFamily.None; + bool flag = attributes == null; + if (flag) + { + attributes = AttributeMap.Create(model, type, false); + } + for (int i = 0; i < attributes.Length; i++) + { + string fullName = attributes[i].AttributeType.FullName; + if (!(fullName == "ProtoBuf.ProtoContractAttribute")) + { + if (!(fullName == "System.Xml.Serialization.XmlTypeAttribute")) + { + if (fullName == "System.Runtime.Serialization.DataContractAttribute") + { + bool flag2 = !model.AutoAddProtoContractTypesOnly; + if (flag2) + { + attributeFamily |= MetaType.AttributeFamily.DataContractSerialier; + } + } + } + else + { + bool flag3 = !model.AutoAddProtoContractTypesOnly; + if (flag3) + { + attributeFamily |= MetaType.AttributeFamily.XmlSerializer; + } + } + } + else + { + bool flag4 = false; + MetaType.GetFieldBoolean(ref flag4, attributes[i], "UseProtoMembersOnly"); + bool flag5 = flag4; + if (flag5) + { + return MetaType.AttributeFamily.ProtoBuf; + } + attributeFamily |= MetaType.AttributeFamily.ProtoBuf; + } + } + bool flag6 = attributeFamily == MetaType.AttributeFamily.None; + if (flag6) + { + MemberInfo[] array; + bool flag7 = MetaType.ResolveTupleConstructor(type, out array) != null; + if (flag7) + { + attributeFamily |= MetaType.AttributeFamily.AutoTuple; + } + } + return attributeFamily; + } + + internal static ConstructorInfo ResolveTupleConstructor(Type type, out MemberInfo[] mappedMembers) + { + mappedMembers = null; + bool flag = type == null; + if (flag) + { + throw new ArgumentNullException("type"); + } + bool isAbstract = type.IsAbstract; + ConstructorInfo result; + if (isAbstract) + { + result = null; + } + else + { + ConstructorInfo[] constructors = Helpers.GetConstructors(type, false); + bool flag2 = constructors.Length == 0 || (constructors.Length == 1 && constructors[0].GetParameters().Length == 0); + if (flag2) + { + result = null; + } + else + { + MemberInfo[] instanceFieldsAndProperties = Helpers.GetInstanceFieldsAndProperties(type, true); + BasicList basicList = new BasicList(); + for (int i = 0; i < instanceFieldsAndProperties.Length; i++) + { + PropertyInfo propertyInfo = instanceFieldsAndProperties[i] as PropertyInfo; + bool flag3 = propertyInfo != null; + if (flag3) + { + bool flag4 = !propertyInfo.CanRead; + if (flag4) + { + return null; + } + bool flag5 = propertyInfo.CanWrite && Helpers.GetSetMethod(propertyInfo, false, false) != null; + if (flag5) + { + return null; + } + basicList.Add(propertyInfo); + } + else + { + FieldInfo fieldInfo = instanceFieldsAndProperties[i] as FieldInfo; + bool flag6 = fieldInfo != null; + if (flag6) + { + bool flag7 = !fieldInfo.IsInitOnly; + if (flag7) + { + return null; + } + basicList.Add(fieldInfo); + } + } + } + bool flag8 = basicList.Count == 0; + if (flag8) + { + result = null; + } + else + { + MemberInfo[] array = new MemberInfo[basicList.Count]; + basicList.CopyTo(array, 0); + int[] array2 = new int[array.Length]; + int num = 0; + ConstructorInfo constructorInfo = null; + mappedMembers = new MemberInfo[array2.Length]; + for (int j = 0; j < constructors.Length; j++) + { + ParameterInfo[] parameters = constructors[j].GetParameters(); + bool flag9 = parameters.Length != array.Length; + if (!flag9) + { + for (int k = 0; k < array2.Length; k++) + { + array2[k] = -1; + } + for (int l = 0; l < parameters.Length; l++) + { + string b = parameters[l].Name.ToLower(); + for (int m = 0; m < array.Length; m++) + { + bool flag10 = array[m].Name.ToLower() != b; + if (!flag10) + { + Type memberType = Helpers.GetMemberType(array[m]); + bool flag11 = memberType != parameters[l].ParameterType; + if (!flag11) + { + array2[l] = m; + } + } + } + } + bool flag12 = false; + for (int n = 0; n < array2.Length; n++) + { + bool flag13 = array2[n] < 0; + if (flag13) + { + flag12 = true; + break; + } + mappedMembers[n] = array[array2[n]]; + } + bool flag14 = flag12; + if (!flag14) + { + num++; + constructorInfo = constructors[j]; + } + } + } + result = ((num == 1) ? constructorInfo : null); + } + } + } + return result; + } + + private static void CheckForCallback(MethodInfo method, AttributeMap[] attributes, string callbackTypeName, ref MethodInfo[] callbacks, int index) + { + for (int i = 0; i < attributes.Length; i++) + { + bool flag = attributes[i].AttributeType.FullName == callbackTypeName; + if (flag) + { + bool flag2 = callbacks == null; + if (flag2) + { + callbacks = new MethodInfo[8]; + } + else + { + bool flag3 = callbacks[index] != null; + if (flag3) + { + Type reflectedType = method.ReflectedType; + throw new ProtoException("Duplicate " + callbackTypeName + " callbacks on " + reflectedType.FullName); + } + } + callbacks[index] = method; + } + } + } + + private static bool HasFamily(MetaType.AttributeFamily value, MetaType.AttributeFamily required) + { + return (value & required) == required; + } + + private static ProtoMemberAttribute NormalizeProtoMember(TypeModel model, MemberInfo member, MetaType.AttributeFamily family, bool forced, bool isEnum, BasicList partialMembers, int dataMemberOffset, bool inferByTagName) + { + bool flag = member == null || (family == MetaType.AttributeFamily.None && !isEnum); + ProtoMemberAttribute result; + if (flag) + { + result = null; + } + else + { + int num = int.MinValue; + int num2 = inferByTagName ? -1 : 1; + string text = null; + bool isPacked = false; + bool flag2 = false; + bool flag3 = false; + bool isRequired = false; + bool asReference = false; + bool flag4 = false; + bool dynamicType = false; + bool tagIsPinned = false; + bool overwriteList = false; + DataFormat dataFormat = DataFormat.Default; + if (isEnum) + { + forced = true; + } + AttributeMap[] attribs = AttributeMap.Create(model, member, true); + if (isEnum) + { + AttributeMap attribute = MetaType.GetAttribute(attribs, "ProtoBuf.ProtoIgnoreAttribute"); + bool flag5 = attribute != null; + if (flag5) + { + flag2 = true; + } + else + { + attribute = MetaType.GetAttribute(attribs, "ProtoBuf.ProtoEnumAttribute"); + num = Convert.ToInt32(((FieldInfo)member).GetRawConstantValue()); + bool flag6 = attribute != null; + if (flag6) + { + MetaType.GetFieldName(ref text, attribute, "Name"); + bool flag7 = (bool)Helpers.GetInstanceMethod(attribute.AttributeType, "HasValue").Invoke(attribute.Target, null); + if (flag7) + { + object obj; + bool flag8 = attribute.TryGet("Value", out obj); + if (flag8) + { + num = (int)obj; + } + } + } + } + flag3 = true; + } + bool flag9 = !flag2 && !flag3; + if (flag9) + { + AttributeMap attribute = MetaType.GetAttribute(attribs, "ProtoBuf.ProtoMemberAttribute"); + MetaType.GetIgnore(ref flag2, attribute, attribs, "ProtoBuf.ProtoIgnoreAttribute"); + bool flag10 = !flag2 && attribute != null; + if (flag10) + { + MetaType.GetFieldNumber(ref num, attribute, "Tag"); + MetaType.GetFieldName(ref text, attribute, "Name"); + MetaType.GetFieldBoolean(ref isRequired, attribute, "IsRequired"); + MetaType.GetFieldBoolean(ref isPacked, attribute, "IsPacked"); + MetaType.GetFieldBoolean(ref overwriteList, attribute, "OverwriteList"); + MetaType.GetDataFormat(ref dataFormat, attribute, "DataFormat"); + MetaType.GetFieldBoolean(ref flag4, attribute, "AsReferenceHasValue", false); + bool flag11 = flag4; + if (flag11) + { + flag4 = MetaType.GetFieldBoolean(ref asReference, attribute, "AsReference", true); + } + MetaType.GetFieldBoolean(ref dynamicType, attribute, "DynamicType"); + tagIsPinned = (flag3 = (num > 0)); + } + bool flag12 = !flag3 && partialMembers != null; + if (flag12) + { + foreach (object obj2 in partialMembers) + { + AttributeMap attributeMap = (AttributeMap)obj2; + object obj3; + bool flag13 = attributeMap.TryGet("MemberName", out obj3) && (string)obj3 == member.Name; + if (flag13) + { + MetaType.GetFieldNumber(ref num, attributeMap, "Tag"); + MetaType.GetFieldName(ref text, attributeMap, "Name"); + MetaType.GetFieldBoolean(ref isRequired, attributeMap, "IsRequired"); + MetaType.GetFieldBoolean(ref isPacked, attributeMap, "IsPacked"); + MetaType.GetFieldBoolean(ref overwriteList, attribute, "OverwriteList"); + MetaType.GetDataFormat(ref dataFormat, attributeMap, "DataFormat"); + MetaType.GetFieldBoolean(ref flag4, attribute, "AsReferenceHasValue", false); + bool flag14 = flag4; + if (flag14) + { + flag4 = MetaType.GetFieldBoolean(ref asReference, attributeMap, "AsReference", true); + } + MetaType.GetFieldBoolean(ref dynamicType, attributeMap, "DynamicType"); + bool flag15; + flag3 = (flag15 = (tagIsPinned = (num > 0))); + if (flag15) + { + break; + } + } + } + } + } + bool flag16 = !flag2 && !flag3 && MetaType.HasFamily(family, MetaType.AttributeFamily.DataContractSerialier); + if (flag16) + { + AttributeMap attribute = MetaType.GetAttribute(attribs, "System.Runtime.Serialization.DataMemberAttribute"); + bool flag17 = attribute != null; + if (flag17) + { + MetaType.GetFieldNumber(ref num, attribute, "Order"); + MetaType.GetFieldName(ref text, attribute, "Name"); + MetaType.GetFieldBoolean(ref isRequired, attribute, "IsRequired"); + flag3 = (num >= num2); + bool flag18 = flag3; + if (flag18) + { + num += dataMemberOffset; + } + } + } + bool flag19 = !flag2 && !flag3 && MetaType.HasFamily(family, MetaType.AttributeFamily.XmlSerializer); + if (flag19) + { + AttributeMap attribute = MetaType.GetAttribute(attribs, "System.Xml.Serialization.XmlElementAttribute"); + bool flag20 = attribute == null; + if (flag20) + { + attribute = MetaType.GetAttribute(attribs, "System.Xml.Serialization.XmlArrayAttribute"); + } + MetaType.GetIgnore(ref flag2, attribute, attribs, "System.Xml.Serialization.XmlIgnoreAttribute"); + bool flag21 = attribute != null && !flag2; + if (flag21) + { + MetaType.GetFieldNumber(ref num, attribute, "Order"); + MetaType.GetFieldName(ref text, attribute, "ElementName"); + flag3 = (num >= num2); + } + } + bool flag22 = !flag2 && !flag3; + if (flag22) + { + bool flag23 = MetaType.GetAttribute(attribs, "System.NonSerializedAttribute") != null; + if (flag23) + { + flag2 = true; + } + } + bool flag24 = flag2 || (num < num2 && !forced); + if (flag24) + { + result = null; + } + else + { + result = new ProtoMemberAttribute(num, forced || inferByTagName) + { + AsReference = asReference, + AsReferenceHasValue = flag4, + DataFormat = dataFormat, + DynamicType = dynamicType, + IsPacked = isPacked, + OverwriteList = overwriteList, + IsRequired = isRequired, + Name = (Helpers.IsNullOrEmpty(text) ? member.Name : text), + Member = member, + TagIsPinned = tagIsPinned + }; + } + } + return result; + } + + private ValueMember ApplyDefaultBehaviour(bool isEnum, ProtoMemberAttribute normalizedAttribute) + { + MemberInfo member= null; + bool flag = normalizedAttribute == null || (member = normalizedAttribute.Member) == null; + ValueMember result; + if (flag) + { + result = null; + } + else + { + Type memberType = Helpers.GetMemberType(member); + Type type = null; + Type defaultType = null; + MetaType.ResolveListTypes(this.model, memberType, ref type, ref defaultType); + bool flag2 = type != null; + if (flag2) + { + int num = this.model.FindOrAddAuto(memberType, false, true, false); + bool flag3 = num >= 0 && this.model[memberType].IgnoreListHandling; + if (flag3) + { + type = null; + defaultType = null; + } + } + AttributeMap[] attribs = AttributeMap.Create(this.model, member, true); + object defaultValue = null; + bool useImplicitZeroDefaults = this.model.UseImplicitZeroDefaults; + if (useImplicitZeroDefaults) + { + ProtoTypeCode typeCode = Helpers.GetTypeCode(memberType); + switch (typeCode) + { + case ProtoTypeCode.Boolean: + defaultValue = false; + break; + case ProtoTypeCode.Char: + defaultValue = '\0'; + break; + case ProtoTypeCode.SByte: + defaultValue = 0; + break; + case ProtoTypeCode.Byte: + defaultValue = 0; + break; + case ProtoTypeCode.Int16: + defaultValue = 0; + break; + case ProtoTypeCode.UInt16: + defaultValue = 0; + break; + case ProtoTypeCode.Int32: + defaultValue = 0; + break; + case ProtoTypeCode.UInt32: + defaultValue = 0u; + break; + case ProtoTypeCode.Int64: + defaultValue = 0L; + break; + case ProtoTypeCode.UInt64: + defaultValue = 0UL; + break; + case ProtoTypeCode.Single: + defaultValue = 0f; + break; + case ProtoTypeCode.Double: + defaultValue = 0.0; + break; + case ProtoTypeCode.Decimal: + defaultValue = 0m; + break; + default: + if (typeCode != ProtoTypeCode.TimeSpan) + { + if (typeCode == ProtoTypeCode.Guid) + { + defaultValue = Guid.Empty; + } + } + else + { + defaultValue = TimeSpan.Zero; + } + break; + } + } + AttributeMap attribute; + bool flag4 = (attribute = MetaType.GetAttribute(attribs, "System.ComponentModel.DefaultValueAttribute")) != null; + if (flag4) + { + object obj; + bool flag5 = attribute.TryGet("Value", out obj); + if (flag5) + { + defaultValue = obj; + } + } + ValueMember valueMember = (isEnum || normalizedAttribute.Tag > 0) ? new ValueMember(this.model, this.type, normalizedAttribute.Tag, member, memberType, type, defaultType, normalizedAttribute.DataFormat, defaultValue) : null; + bool flag6 = valueMember != null; + if (flag6) + { + Type declaringType = this.type; + PropertyInfo propertyInfo = Helpers.GetProperty(declaringType, member.Name + "Specified", true); + MethodInfo getMethod = Helpers.GetGetMethod(propertyInfo, true, true); + bool flag7 = getMethod == null || getMethod.IsStatic; + if (flag7) + { + propertyInfo = null; + } + bool flag8 = propertyInfo != null; + if (flag8) + { + valueMember.SetSpecified(getMethod, Helpers.GetSetMethod(propertyInfo, true, true)); + } + else + { + MethodInfo instanceMethod = Helpers.GetInstanceMethod(declaringType, "ShouldSerialize" + member.Name, Helpers.EmptyTypes); + bool flag9 = instanceMethod != null && instanceMethod.ReturnType == this.model.MapType(typeof(bool)); + if (flag9) + { + valueMember.SetSpecified(instanceMethod, null); + } + } + bool flag10 = !Helpers.IsNullOrEmpty(normalizedAttribute.Name); + if (flag10) + { + valueMember.SetName(normalizedAttribute.Name); + } + valueMember.IsPacked = normalizedAttribute.IsPacked; + valueMember.IsRequired = normalizedAttribute.IsRequired; + valueMember.OverwriteList = normalizedAttribute.OverwriteList; + bool asReferenceHasValue = normalizedAttribute.AsReferenceHasValue; + if (asReferenceHasValue) + { + valueMember.AsReference = normalizedAttribute.AsReference; + } + valueMember.DynamicType = normalizedAttribute.DynamicType; + } + result = valueMember; + } + return result; + } + + private static void GetDataFormat(ref DataFormat value, AttributeMap attrib, string memberName) + { + bool flag = attrib == null || value > DataFormat.Default; + if (!flag) + { + object obj; + bool flag2 = attrib.TryGet(memberName, out obj) && obj != null; + if (flag2) + { + value = (DataFormat)obj; + } + } + } + + private static void GetIgnore(ref bool ignore, AttributeMap attrib, AttributeMap[] attribs, string fullName) + { + bool flag = ignore || attrib == null; + if (!flag) + { + ignore = (MetaType.GetAttribute(attribs, fullName) != null); + } + } + + private static void GetFieldBoolean(ref bool value, AttributeMap attrib, string memberName) + { + MetaType.GetFieldBoolean(ref value, attrib, memberName, true); + } + + private static bool GetFieldBoolean(ref bool value, AttributeMap attrib, string memberName, bool publicOnly) + { + bool flag = attrib == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = value; + if (flag2) + { + result = true; + } + else + { + object obj; + bool flag3 = attrib.TryGet(memberName, publicOnly, out obj) && obj != null; + if (flag3) + { + value = (bool)obj; + result = true; + } + else + { + result = false; + } + } + } + return result; + } + + private static void GetFieldNumber(ref int value, AttributeMap attrib, string memberName) + { + bool flag = attrib == null || value > 0; + if (!flag) + { + object obj; + bool flag2 = attrib.TryGet(memberName, out obj) && obj != null; + if (flag2) + { + value = (int)obj; + } + } + } + + private static void GetFieldName(ref string name, AttributeMap attrib, string memberName) + { + bool flag = attrib == null || !Helpers.IsNullOrEmpty(name); + if (!flag) + { + object obj; + bool flag2 = attrib.TryGet(memberName, out obj) && obj != null; + if (flag2) + { + name = (string)obj; + } + } + } + + private static AttributeMap GetAttribute(AttributeMap[] attribs, string fullName) + { + foreach (AttributeMap attributeMap in attribs) + { + bool flag = attributeMap != null && attributeMap.AttributeType.FullName == fullName; + if (flag) + { + return attributeMap; + } + } + return null; + } + + public MetaType Add(int fieldNumber, string memberName) + { + this.AddField(fieldNumber, memberName, null, null, null); + return this; + } + + public ValueMember AddField(int fieldNumber, string memberName) + { + return this.AddField(fieldNumber, memberName, null, null, null); + } + + public MetaType Add(string memberName) + { + this.Add(this.GetNextFieldNumber(), memberName); + return this; + } + + public void SetSurrogate(Type surrogateType) + { + bool flag = surrogateType == this.type; + if (flag) + { + surrogateType = null; + } + bool flag2 = surrogateType != null; + if (flag2) + { + bool flag3 = surrogateType != null && Helpers.IsAssignableFrom(this.model.MapType(typeof(IEnumerable)), surrogateType); + if (flag3) + { + throw new ArgumentException("Repeated data (a list, collection, etc) has inbuilt behaviour and cannot be used as a surrogate"); + } + } + this.ThrowIfFrozen(); + this.surrogate = surrogateType; + } + + internal MetaType GetSurrogateOrSelf() + { + bool flag = this.surrogate != null; + MetaType result; + if (flag) + { + result = this.model[this.surrogate]; + } + else + { + result = this; + } + return result; + } + + internal MetaType GetSurrogateOrBaseOrSelf(bool deep) + { + bool flag = this.surrogate != null; + MetaType result; + if (flag) + { + result = this.model[this.surrogate]; + } + else + { + MetaType metaType = this.baseType; + bool flag2 = metaType != null; + if (flag2) + { + if (deep) + { + MetaType metaType2; + do + { + metaType2 = metaType; + metaType = metaType.baseType; + } + while (metaType != null); + result = metaType2; + } + else + { + result = metaType; + } + } + else + { + result = this; + } + } + return result; + } + + private int GetNextFieldNumber() + { + int num = 0; + foreach (object obj in this.fields) + { + ValueMember valueMember = (ValueMember)obj; + bool flag = valueMember.FieldNumber > num; + if (flag) + { + num = valueMember.FieldNumber; + } + } + bool flag2 = this.subTypes != null; + if (flag2) + { + foreach (object obj2 in this.subTypes) + { + SubType subType = (SubType)obj2; + bool flag3 = subType.FieldNumber > num; + if (flag3) + { + num = subType.FieldNumber; + } + } + } + return num + 1; + } + + public MetaType Add(params string[] memberNames) + { + bool flag = memberNames == null; + if (flag) + { + throw new ArgumentNullException("memberNames"); + } + int nextFieldNumber = this.GetNextFieldNumber(); + for (int i = 0; i < memberNames.Length; i++) + { + this.Add(nextFieldNumber++, memberNames[i]); + } + return this; + } + + public MetaType Add(int fieldNumber, string memberName, object defaultValue) + { + this.AddField(fieldNumber, memberName, null, null, defaultValue); + return this; + } + + public MetaType Add(int fieldNumber, string memberName, Type itemType, Type defaultType) + { + this.AddField(fieldNumber, memberName, itemType, defaultType, null); + return this; + } + + public ValueMember AddField(int fieldNumber, string memberName, Type itemType, Type defaultType) + { + return this.AddField(fieldNumber, memberName, itemType, defaultType, null); + } + + private ValueMember AddField(int fieldNumber, string memberName, Type itemType, Type defaultType, object defaultValue) + { + MemberInfo memberInfo = null; + MemberInfo[] member = this.type.GetMember(memberName, Helpers.IsEnum(this.type) ? (BindingFlags.Static | BindingFlags.Public) : (BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)); + bool flag = member != null && member.Length == 1; + if (flag) + { + memberInfo = member[0]; + } + bool flag2 = memberInfo == null; + if (flag2) + { + throw new ArgumentException("Unable to determine member: " + memberName, "memberName"); + } + MemberTypes memberType = memberInfo.MemberType; + Type memberType2; + if (memberType != MemberTypes.Field) + { + if (memberType != MemberTypes.Property) + { + throw new NotSupportedException(memberInfo.MemberType.ToString()); + } + memberType2 = ((PropertyInfo)memberInfo).PropertyType; + } + else + { + memberType2 = ((FieldInfo)memberInfo).FieldType; + } + MetaType.ResolveListTypes(this.model, memberType2, ref itemType, ref defaultType); + ValueMember valueMember = new ValueMember(this.model, this.type, fieldNumber, memberInfo, memberType2, itemType, defaultType, DataFormat.Default, defaultValue); + this.Add(valueMember); + return valueMember; + } + + internal static void ResolveListTypes(TypeModel model, Type type, ref Type itemType, ref Type defaultType) + { + bool flag = type == null; + if (!flag) + { + bool isArray = type.IsArray; + if (isArray) + { + bool flag2 = type.GetArrayRank() != 1; + if (flag2) + { + throw new NotSupportedException("Multi-dimension arrays are supported"); + } + itemType = type.GetElementType(); + bool flag3 = itemType == model.MapType(typeof(byte)); + if (flag3) + { + Type type2; + itemType = (type2 = null); + defaultType = type2; + } + else + { + defaultType = type; + } + } + bool flag4 = itemType == null; + if (flag4) + { + itemType = TypeModel.GetListItemType(model, type); + } + bool flag5 = itemType != null; + if (flag5) + { + Type type3 = null; + Type type4 = null; + MetaType.ResolveListTypes(model, itemType, ref type3, ref type4); + bool flag6 = type3 != null; + if (flag6) + { + throw TypeModel.CreateNestedListsNotSupported(); + } + } + bool flag7 = itemType != null && defaultType == null; + if (flag7) + { + bool flag8 = type.IsClass && !type.IsAbstract && Helpers.GetConstructor(type, Helpers.EmptyTypes, true) != null; + if (flag8) + { + defaultType = type; + } + bool flag9 = defaultType == null; + if (flag9) + { + bool isInterface = type.IsInterface; + if (isInterface) + { + Type[] genericArguments = null; + bool flag10 = type.IsGenericType && type.GetGenericTypeDefinition() == model.MapType(typeof(IDictionary<, >)) && itemType == model.MapType(typeof(KeyValuePair<, >)).MakeGenericType(genericArguments = type.GetGenericArguments()); + if (flag10) + { + defaultType = model.MapType(typeof(Dictionary<, >)).MakeGenericType(genericArguments); + } + else + { + defaultType = model.MapType(typeof(List<>)).MakeGenericType(new Type[] + { + itemType + }); + } + } + } + bool flag11 = defaultType != null && !Helpers.IsAssignableFrom(type, defaultType); + if (flag11) + { + defaultType = null; + } + } + } + } + + private void Add(ValueMember member) + { + int opaqueToken = 0; + try + { + this.model.TakeLock(ref opaqueToken); + this.ThrowIfFrozen(); + this.fields.Add(member); + } + finally + { + this.model.ReleaseLock(opaqueToken); + } + } + + public ValueMember[] GetFields() + { + ValueMember[] array = new ValueMember[this.fields.Count]; + this.fields.CopyTo(array, 0); + Array.Sort(array, ValueMember.Comparer.Default); + return array; + } + + public SubType[] GetSubtypes() + { + bool flag = this.subTypes == null || this.subTypes.Count == 0; + SubType[] result; + if (flag) + { + result = new SubType[0]; + } + else + { + SubType[] array = new SubType[this.subTypes.Count]; + this.subTypes.CopyTo(array, 0); + Array.Sort(array, SubType.Comparer.Default); + result = array; + } + return result; + } + + internal bool IsDefined(int fieldNumber) + { + foreach (object obj in this.fields) + { + ValueMember valueMember = (ValueMember)obj; + bool flag = valueMember.FieldNumber == fieldNumber; + if (flag) + { + return true; + } + } + return false; + } + + internal int GetKey(bool demand, bool getBaseKey) + { + return this.model.GetKey(this.type, demand, getBaseKey); + } + + internal EnumSerializer.EnumPair[] GetEnumMap() + { + bool flag = this.HasFlag(2); + EnumSerializer.EnumPair[] result; + if (flag) + { + result = null; + } + else + { + EnumSerializer.EnumPair[] array = new EnumSerializer.EnumPair[this.fields.Count]; + for (int i = 0; i < array.Length; i++) + { + ValueMember valueMember = (ValueMember)this.fields[i]; + int fieldNumber = valueMember.FieldNumber; + object rawEnumValue = valueMember.GetRawEnumValue(); + array[i] = new EnumSerializer.EnumPair(fieldNumber, rawEnumValue, valueMember.MemberType); + } + result = array; + } + return result; + } + + private bool HasFlag(byte flag) + { + return (this.flags & flag) == flag; + } + + private void SetFlag(byte flag, bool value, bool throwIfFrozen) + { + bool flag2 = throwIfFrozen && this.HasFlag(flag) != value; + if (flag2) + { + this.ThrowIfFrozen(); + } + if (value) + { + this.flags |= flag; + } + else + { + this.flags &= (byte)~flag; + } + } + + internal static MetaType GetRootType(MetaType source) + { + MetaType result; + while (source.serializer != null) + { + MetaType metaType = source.baseType; + bool flag = metaType == null; + if (flag) + { + result = source; + return result; + } + source = metaType; + } + RuntimeTypeModel runtimeTypeModel = source.model; + int opaqueToken = 0; + try + { + runtimeTypeModel.TakeLock(ref opaqueToken); + MetaType metaType2; + while ((metaType2 = source.baseType) != null) + { + source = metaType2; + } + result = source; + } + finally + { + runtimeTypeModel.ReleaseLock(opaqueToken); + } + return result; + } + + internal bool IsPrepared() + { + return false; + } + + internal static StringBuilder NewLine(StringBuilder builder, int indent) + { + return Helpers.AppendLine(builder).Append(' ', indent * 3); + } + + internal void WriteSchema(StringBuilder builder, int indent, ref bool requiresBclImport) + { + bool flag = this.surrogate != null; + if (!flag) + { + ValueMember[] array = new ValueMember[this.fields.Count]; + this.fields.CopyTo(array, 0); + Array.Sort(array, ValueMember.Comparer.Default); + bool isList = this.IsList; + if (isList) + { + string schemaTypeName = this.model.GetSchemaTypeName(TypeModel.GetListItemType(this.model, this.type), DataFormat.Default, false, false, ref requiresBclImport); + MetaType.NewLine(builder, indent).Append("message ").Append(this.GetSchemaTypeName()).Append(" {"); + MetaType.NewLine(builder, indent + 1).Append("repeated ").Append(schemaTypeName).Append(" items = 1;"); + MetaType.NewLine(builder, indent).Append('}'); + } + else + { + bool isAutoTuple = this.IsAutoTuple; + if (isAutoTuple) + { + MemberInfo[] array2; + bool flag2 = MetaType.ResolveTupleConstructor(this.type, out array2) != null; + if (flag2) + { + MetaType.NewLine(builder, indent).Append("message ").Append(this.GetSchemaTypeName()).Append(" {"); + for (int i = 0; i < array2.Length; i++) + { + bool flag3 = array2[i] is PropertyInfo; + Type effectiveType; + if (flag3) + { + effectiveType = ((PropertyInfo)array2[i]).PropertyType; + } + else + { + bool flag4 = array2[i] is FieldInfo; + if (!flag4) + { + throw new NotSupportedException("Unknown member type: " + array2[i].GetType().Name); + } + effectiveType = ((FieldInfo)array2[i]).FieldType; + } + MetaType.NewLine(builder, indent + 1).Append("optional ").Append(this.model.GetSchemaTypeName(effectiveType, DataFormat.Default, false, false, ref requiresBclImport).Replace('.', '_')).Append(' ').Append(array2[i].Name).Append(" = ").Append(i + 1).Append(';'); + } + MetaType.NewLine(builder, indent).Append('}'); + } + } + else + { + bool flag5 = Helpers.IsEnum(this.type); + if (flag5) + { + MetaType.NewLine(builder, indent).Append("enum ").Append(this.GetSchemaTypeName()).Append(" {"); + bool flag6 = array.Length == 0 && this.EnumPassthru; + if (flag6) + { + bool flag7 = this.type.IsDefined(this.model.MapType(typeof(FlagsAttribute)), false); + if (flag7) + { + MetaType.NewLine(builder, indent + 1).Append("// this is a composite/flags enumeration"); + } + else + { + MetaType.NewLine(builder, indent + 1).Append("// this enumeration will be passed as a raw value"); + } + foreach (FieldInfo fieldInfo in this.type.GetFields()) + { + bool flag8 = fieldInfo.IsStatic && fieldInfo.IsLiteral; + if (flag8) + { + object rawConstantValue = fieldInfo.GetRawConstantValue(); + MetaType.NewLine(builder, indent + 1).Append(fieldInfo.Name).Append(" = ").Append(rawConstantValue).Append(";"); + } + } + } + else + { + foreach (ValueMember valueMember in array) + { + MetaType.NewLine(builder, indent + 1).Append(valueMember.Name).Append(" = ").Append(valueMember.FieldNumber).Append(';'); + } + } + MetaType.NewLine(builder, indent).Append('}'); + } + else + { + MetaType.NewLine(builder, indent).Append("message ").Append(this.GetSchemaTypeName()).Append(" {"); + foreach (ValueMember valueMember2 in array) + { + string value = (valueMember2.ItemType != null) ? "repeated" : (valueMember2.IsRequired ? "required" : "optional"); + MetaType.NewLine(builder, indent + 1).Append(value).Append(' '); + bool flag9 = valueMember2.DataFormat == DataFormat.Group; + if (flag9) + { + builder.Append("group "); + } + string schemaTypeName2 = valueMember2.GetSchemaTypeName(true, ref requiresBclImport); + builder.Append(schemaTypeName2).Append(" ").Append(valueMember2.Name).Append(" = ").Append(valueMember2.FieldNumber); + bool flag10 = valueMember2.DefaultValue != null; + if (flag10) + { + bool flag11 = valueMember2.DefaultValue is string; + if (flag11) + { + builder.Append(" [default = \"").Append(valueMember2.DefaultValue).Append("\"]"); + } + else + { + bool flag12 = valueMember2.DefaultValue is bool; + if (flag12) + { + builder.Append(((bool)valueMember2.DefaultValue) ? " [default = true]" : " [default = false]"); + } + else + { + builder.Append(" [default = ").Append(valueMember2.DefaultValue).Append(']'); + } + } + } + bool flag13 = valueMember2.ItemType != null && valueMember2.IsPacked; + if (flag13) + { + builder.Append(" [packed=true]"); + } + builder.Append(';'); + bool flag14 = schemaTypeName2 == "bcl.NetObjectProxy" && valueMember2.AsReference && !valueMember2.DynamicType; + if (flag14) + { + builder.Append(" // reference-tracked ").Append(valueMember2.GetSchemaTypeName(false, ref requiresBclImport)); + } + } + bool flag15 = this.subTypes != null && this.subTypes.Count != 0; + if (flag15) + { + MetaType.NewLine(builder, indent + 1).Append("// the following represent sub-types; at most 1 should have a value"); + SubType[] array6 = new SubType[this.subTypes.Count]; + this.subTypes.CopyTo(array6, 0); + Array.Sort(array6, SubType.Comparer.Default); + foreach (SubType subType in array6) + { + string schemaTypeName3 = subType.DerivedType.GetSchemaTypeName(); + MetaType.NewLine(builder, indent + 1).Append("optional ").Append(schemaTypeName3).Append(" ").Append(schemaTypeName3).Append(" = ").Append(subType.FieldNumber).Append(';'); + } + } + MetaType.NewLine(builder, indent).Append('}'); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs.meta new file mode 100644 index 00000000..4dcc0567 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MetaType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9896348409133c84db5b167634c43101 +timeCreated: 1611404191 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MutableList.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MutableList.cs new file mode 100644 index 00000000..3afa5609 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MutableList.cs @@ -0,0 +1,29 @@ +using System; + +namespace ProtoBuf.Meta +{ + internal sealed class MutableList : BasicList + { + public new object this[int index] + { + get + { + return this.head[index]; + } + set + { + this.head[index] = value; + } + } + + public void RemoveLast() + { + this.head.RemoveLastWithMutate(); + } + + public new void Clear() + { + this.head.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MutableList.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MutableList.cs.meta new file mode 100644 index 00000000..0ee40320 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/MutableList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9075f746967b13049b559b21f9ba847f +timeCreated: 1611404139 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs new file mode 100644 index 00000000..2975c163 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs @@ -0,0 +1,1160 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Reflection; +using System.Text; +using System.Threading; +using ProtoBuf.Serializers; + +namespace ProtoBuf.Meta +{ + public sealed class RuntimeTypeModel : TypeModel + { + public bool InferTagFromNameDefault + { + get + { + return this.GetOption(1); + } + set + { + this.SetOption(1, value); + } + } + + public bool AutoAddProtoContractTypesOnly + { + get + { + return this.GetOption(128); + } + set + { + this.SetOption(128, value); + } + } + + public bool UseImplicitZeroDefaults + { + get + { + return this.GetOption(32); + } + set + { + bool flag = !value && this.GetOption(2); + if (flag) + { + throw new InvalidOperationException("UseImplicitZeroDefaults cannot be disabled on the default model"); + } + this.SetOption(32, value); + } + } + + public bool AllowParseableTypes + { + get + { + return this.GetOption(64); + } + set + { + this.SetOption(64, value); + } + } + + public static RuntimeTypeModel Default + { + get + { + return RuntimeTypeModel.Singleton.Value; + } + } + + public static RuntimeTypeModel ThreadDefault + { + get + { + return RuntimeTypeModel.Singleton.DefaultValue; + } + } + + public MetaType this[Type type] + { + get + { + return (MetaType)this.types[this.FindOrAddAuto(type, true, false, false)]; + } + } + + public bool AutoAddMissingTypes + { + get + { + return this.GetOption(8); + } + set + { + bool flag = !value && this.GetOption(2); + if (flag) + { + throw new InvalidOperationException("The default model must allow missing types"); + } + this.ThrowIfFrozen(); + this.SetOption(8, value); + } + } + + public int MetadataTimeoutMilliseconds + { + get + { + return this.metadataTimeoutMilliseconds; + } + set + { + bool flag = value <= 0; + if (flag) + { + throw new ArgumentOutOfRangeException("MetadataTimeoutMilliseconds"); + } + this.metadataTimeoutMilliseconds = value; + } + } + + public int LockCount + { + get + { + return this.lockCount; + } + } + + public event LockContentedEventHandler LockContended; + + private byte options; + + private const byte OPTIONS_InferTagFromNameDefault = 1; + + private const byte OPTIONS_IsDefaultModel = 2; + + private const byte OPTIONS_Frozen = 4; + + private const byte OPTIONS_AutoAddMissingTypes = 8; + + private const byte OPTIONS_UseImplicitZeroDefaults = 32; + + private const byte OPTIONS_AllowParseableTypes = 64; + + private const byte OPTIONS_AutoAddProtoContractTypesOnly = 128; + + private static readonly BasicList.MatchPredicate MetaTypeFinder = new BasicList.MatchPredicate(RuntimeTypeModel.MetaTypeFinderImpl); + + private static readonly BasicList.MatchPredicate BasicTypeFinder = new BasicList.MatchPredicate(RuntimeTypeModel.BasicTypeFinderImpl); + + private BasicList basicTypes = new BasicList(); + + private readonly BasicList types = new BasicList(); + + private int metadataTimeoutMilliseconds = 5000; + + private int lockCount; + + private int contentionCounter = 1; + + private MethodInfo defaultFactory; + + private sealed class Singleton + { + internal static readonly RuntimeTypeModel Value = new RuntimeTypeModel(true); + + private static RuntimeTypeModel ThreadValue = null; + + internal static RuntimeTypeModel DefaultValue = null; + + private Singleton() + { + } + + public static void SetMultiThread(bool multiThread) + { + if (multiThread) + { + RuntimeTypeModel.Singleton.ThreadValue = new RuntimeTypeModel(true); + RuntimeTypeModel.Singleton.DefaultValue = RuntimeTypeModel.Singleton.ThreadValue; + } + else + { + RuntimeTypeModel.Singleton.DefaultValue = RuntimeTypeModel.Singleton.Value; + } + } + } + + private sealed class BasicType + { + public Type Type + { + get + { + return this.type; + } + } + + public IProtoSerializer Serializer + { + get + { + return this.serializer; + } + } + + private readonly Type type; + + private readonly IProtoSerializer serializer; + + public BasicType(Type type, IProtoSerializer serializer) + { + this.type = type; + this.serializer = serializer; + } + } + + private bool GetOption(byte option) + { + return (this.options & option) == option; + } + + private void SetOption(byte option, bool value) + { + if (value) + { + this.options |= option; + } + else + { + this.options &=(byte) ~option; + } + } + + public static void SetMultiThread(bool multiThread) + { + RuntimeTypeModel.Singleton.SetMultiThread(multiThread); + } + + public IEnumerable GetTypes() + { + return this.types; + } + + public override string GetSchema(Type type) + { + BasicList basicList = new BasicList(); + MetaType metaType = null; + bool flag = false; + bool flag2 = type == null; + if (flag2) + { + foreach (object obj in this.types) + { + MetaType metaType2 = (MetaType)obj; + MetaType surrogateOrBaseOrSelf = metaType2.GetSurrogateOrBaseOrSelf(false); + bool flag3 = !basicList.Contains(surrogateOrBaseOrSelf); + if (flag3) + { + basicList.Add(surrogateOrBaseOrSelf); + this.CascadeDependents(basicList, surrogateOrBaseOrSelf); + } + } + } + else + { + Type underlyingType = Helpers.GetUnderlyingType(type); + bool flag4 = underlyingType != null; + if (flag4) + { + type = underlyingType; + } + WireType wireType; + flag = (ValueMember.TryGetCoreSerializer(this, DataFormat.Default, type, out wireType, false, false, false, false) != null); + bool flag5 = !flag; + if (flag5) + { + int num = this.FindOrAddAuto(type, false, false, false); + bool flag6 = num < 0; + if (flag6) + { + throw new ArgumentException("The type specified is not a contract-type", "type"); + } + metaType = ((MetaType)this.types[num]).GetSurrogateOrBaseOrSelf(false); + basicList.Add(metaType); + this.CascadeDependents(basicList, metaType); + } + } + StringBuilder stringBuilder = new StringBuilder(); + string text = null; + bool flag7 = !flag; + if (flag7) + { + IEnumerable enumerable = (metaType == null) ? this.types : basicList; + foreach (object obj2 in enumerable) + { + MetaType metaType3 = (MetaType)obj2; + bool isList = metaType3.IsList; + if (!isList) + { + string @namespace = metaType3.Type.Namespace; + bool flag8 = !Helpers.IsNullOrEmpty(@namespace); + if (flag8) + { + bool flag9 = @namespace.StartsWith("System."); + if (!flag9) + { + bool flag10 = text == null; + if (flag10) + { + text = @namespace; + } + else + { + bool flag11 = text == @namespace; + if (!flag11) + { + text = null; + break; + } + } + } + } + } + } + } + bool flag12 = !Helpers.IsNullOrEmpty(text); + if (flag12) + { + stringBuilder.Append("package ").Append(text).Append(';'); + Helpers.AppendLine(stringBuilder); + } + bool flag13 = false; + StringBuilder stringBuilder2 = new StringBuilder(); + MetaType[] array = new MetaType[basicList.Count]; + basicList.CopyTo(array, 0); + Array.Sort(array, MetaType.Comparer.Default); + bool flag14 = flag; + if (flag14) + { + Helpers.AppendLine(stringBuilder2).Append("message ").Append(type.Name).Append(" {"); + MetaType.NewLine(stringBuilder2, 1).Append("optional ").Append(this.GetSchemaTypeName(type, DataFormat.Default, false, false, ref flag13)).Append(" value = 1;"); + Helpers.AppendLine(stringBuilder2).Append('}'); + } + else + { + foreach (MetaType metaType4 in array) + { + bool flag15 = metaType4.IsList && metaType4 != metaType; + if (!flag15) + { + metaType4.WriteSchema(stringBuilder2, 0, ref flag13); + } + } + } + bool flag16 = flag13; + if (flag16) + { + stringBuilder.Append("import \"bcl.proto\"; // schema for protobuf-net's handling of core .NET types"); + Helpers.AppendLine(stringBuilder); + } + return Helpers.AppendLine(stringBuilder.Append(stringBuilder2)).ToString(); + } + + private void CascadeDependents(BasicList list, MetaType metaType) + { + bool isList = metaType.IsList; + if (isList) + { + Type listItemType = TypeModel.GetListItemType(this, metaType.Type); + WireType wireType; + IProtoSerializer protoSerializer = ValueMember.TryGetCoreSerializer(this, DataFormat.Default, listItemType, out wireType, false, false, false, false); + bool flag = protoSerializer == null; + if (flag) + { + int num = this.FindOrAddAuto(listItemType, false, false, false); + bool flag2 = num >= 0; + if (flag2) + { + MetaType metaType2 = ((MetaType)this.types[num]).GetSurrogateOrBaseOrSelf(false); + bool flag3 = !list.Contains(metaType2); + if (flag3) + { + list.Add(metaType2); + this.CascadeDependents(list, metaType2); + } + } + } + } + else + { + bool isAutoTuple = metaType.IsAutoTuple; + MetaType metaType2; + if (isAutoTuple) + { + MemberInfo[] array; + bool flag4 = MetaType.ResolveTupleConstructor(metaType.Type, out array) != null; + if (flag4) + { + for (int i = 0; i < array.Length; i++) + { + Type type = null; + bool flag5 = array[i] is PropertyInfo; + if (flag5) + { + type = ((PropertyInfo)array[i]).PropertyType; + } + else + { + bool flag6 = array[i] is FieldInfo; + if (flag6) + { + type = ((FieldInfo)array[i]).FieldType; + } + } + WireType wireType2; + IProtoSerializer protoSerializer2 = ValueMember.TryGetCoreSerializer(this, DataFormat.Default, type, out wireType2, false, false, false, false); + bool flag7 = protoSerializer2 == null; + if (flag7) + { + int num2 = this.FindOrAddAuto(type, false, false, false); + bool flag8 = num2 >= 0; + if (flag8) + { + metaType2 = ((MetaType)this.types[num2]).GetSurrogateOrBaseOrSelf(false); + bool flag9 = !list.Contains(metaType2); + if (flag9) + { + list.Add(metaType2); + this.CascadeDependents(list, metaType2); + } + } + } + } + } + } + else + { + foreach (object obj in metaType.Fields) + { + ValueMember valueMember = (ValueMember)obj; + Type type2 = valueMember.ItemType; + bool flag10 = type2 == null; + if (flag10) + { + type2 = valueMember.MemberType; + } + WireType wireType3; + IProtoSerializer protoSerializer3 = ValueMember.TryGetCoreSerializer(this, DataFormat.Default, type2, out wireType3, false, false, false, false); + bool flag11 = protoSerializer3 == null; + if (flag11) + { + int num3 = this.FindOrAddAuto(type2, false, false, false); + bool flag12 = num3 >= 0; + if (flag12) + { + metaType2 = ((MetaType)this.types[num3]).GetSurrogateOrBaseOrSelf(false); + bool flag13 = !list.Contains(metaType2); + if (flag13) + { + list.Add(metaType2); + this.CascadeDependents(list, metaType2); + } + } + } + } + } + bool hasSubtypes = metaType.HasSubtypes; + if (hasSubtypes) + { + foreach (SubType subType in metaType.GetSubtypes()) + { + metaType2 = subType.DerivedType.GetSurrogateOrSelf(); + bool flag14 = !list.Contains(metaType2); + if (flag14) + { + list.Add(metaType2); + this.CascadeDependents(list, metaType2); + } + } + } + metaType2 = metaType.BaseType; + bool flag15 = metaType2 != null; + if (flag15) + { + metaType2 = metaType2.GetSurrogateOrSelf(); + } + bool flag16 = metaType2 != null && !list.Contains(metaType2); + if (flag16) + { + list.Add(metaType2); + this.CascadeDependents(list, metaType2); + } + } + } + + internal RuntimeTypeModel(bool isDefault) + { + this.AutoAddMissingTypes = true; + this.UseImplicitZeroDefaults = true; + this.SetOption(2, isDefault); + } + + internal MetaType FindWithoutAdd(Type type) + { + foreach (object obj in this.types) + { + MetaType metaType = (MetaType)obj; + bool flag = metaType.Type == type; + if (flag) + { + bool pending = metaType.Pending; + if (pending) + { + this.WaitOnLock(metaType); + } + return metaType; + } + } + Type type2 = TypeModel.ResolveProxies(type); + return (type2 == null) ? null : this.FindWithoutAdd(type2); + } + + private static bool MetaTypeFinderImpl(object value, object ctx) + { + return ((MetaType)value).Type == (Type)ctx; + } + + private static bool BasicTypeFinderImpl(object value, object ctx) + { + return ((RuntimeTypeModel.BasicType)value).Type == (Type)ctx; + } + + private void WaitOnLock(MetaType type) + { + int opaqueToken = 0; + try + { + this.TakeLock(ref opaqueToken); + } + finally + { + this.ReleaseLock(opaqueToken); + } + } + + internal IProtoSerializer TryGetBasicTypeSerializer(Type type) + { + int num = this.basicTypes.IndexOf(RuntimeTypeModel.BasicTypeFinder, type); + bool flag = num >= 0; + IProtoSerializer result; + if (flag) + { + result = ((RuntimeTypeModel.BasicType)this.basicTypes[num]).Serializer; + } + else + { + BasicList obj = this.basicTypes; + lock (obj) + { + num = this.basicTypes.IndexOf(RuntimeTypeModel.BasicTypeFinder, type); + bool flag2 = num >= 0; + if (flag2) + { + result = ((RuntimeTypeModel.BasicType)this.basicTypes[num]).Serializer; + } + else + { + MetaType.AttributeFamily contractFamily = MetaType.GetContractFamily(this, type, null); + WireType wireType; + IProtoSerializer protoSerializer = (contractFamily == MetaType.AttributeFamily.None) ? ValueMember.TryGetCoreSerializer(this, DataFormat.Default, type, out wireType, false, false, false, false) : null; + bool flag3 = protoSerializer != null; + if (flag3) + { + this.basicTypes.Add(new RuntimeTypeModel.BasicType(type, protoSerializer)); + } + result = protoSerializer; + } + } + } + return result; + } + + public void Clear() + { + this.types.Clear(); + } + + internal int FindOrAddAuto(Type type, bool demand, bool addWithContractOnly, bool addEvenIfAutoDisabled) + { + int num = this.types.IndexOf(RuntimeTypeModel.MetaTypeFinder, type); + bool flag = num >= 0; + int result; + if (flag) + { + MetaType metaType = (MetaType)this.types[num]; + bool pending = metaType.Pending; + if (pending) + { + this.WaitOnLock(metaType); + } + result = num; + } + else + { + bool flag2 = this.AutoAddMissingTypes || addEvenIfAutoDisabled; + bool flag3 = !Helpers.IsEnum(type) && this.TryGetBasicTypeSerializer(type) != null; + if (flag3) + { + bool flag4 = flag2 && !addWithContractOnly; + if (flag4) + { + throw MetaType.InbuiltType(type); + } + result = -1; + } + else + { + Type type2 = TypeModel.ResolveProxies(type); + bool flag5 = type2 != null; + if (flag5) + { + num = this.types.IndexOf(RuntimeTypeModel.MetaTypeFinder, type2); + type = type2; + } + bool flag6 = num < 0; + if (flag6) + { + int opaqueToken = 0; + try + { + this.TakeLock(ref opaqueToken); + MetaType metaType; + bool flag7 = (metaType = this.RecogniseCommonTypes(type)) == null; + if (flag7) + { + MetaType.AttributeFamily contractFamily = MetaType.GetContractFamily(this, type, null); + bool flag8 = contractFamily == MetaType.AttributeFamily.AutoTuple; + if (flag8) + { + addEvenIfAutoDisabled = (flag2 = true); + } + bool flag9 = !flag2 || (!Helpers.IsEnum(type) && addWithContractOnly && contractFamily == MetaType.AttributeFamily.None); + if (flag9) + { + if (demand) + { + TypeModel.ThrowUnexpectedType(type); + } + return num; + } + metaType = this.Create(type); + } + metaType.Pending = true; + bool flag10 = false; + int num2 = this.types.IndexOf(RuntimeTypeModel.MetaTypeFinder, type); + bool flag11 = num2 < 0; + if (flag11) + { + this.ThrowIfFrozen(); + num = this.types.Add(metaType); + flag10 = true; + } + else + { + num = num2; + } + bool flag12 = flag10; + if (flag12) + { + metaType.ApplyDefaultBehaviour(); + metaType.Pending = false; + } + } + finally + { + this.ReleaseLock(opaqueToken); + } + } + result = num; + } + } + return result; + } + + private MetaType RecogniseCommonTypes(Type type) + { + return null; + } + + private MetaType Create(Type type) + { + this.ThrowIfFrozen(); + return new MetaType(this, type, this.defaultFactory); + } + + public MetaType Add(Type type, bool applyDefaultBehaviour) + { + bool flag = type == null; + if (flag) + { + throw new ArgumentNullException("type"); + } + MetaType metaType = this.FindWithoutAdd(type); + bool flag2 = metaType != null; + MetaType result; + if (flag2) + { + result = metaType; + } + else + { + int opaqueToken = 0; + bool flag3 = type.IsInterface && base.MapType(MetaType.ienumerable).IsAssignableFrom(type) && TypeModel.GetListItemType(this, type) == null; + if (flag3) + { + throw new ArgumentException("IEnumerable[] data cannot be used as a meta-type unless an Add method can be resolved"); + } + try + { + metaType = this.RecogniseCommonTypes(type); + bool flag4 = metaType != null; + if (flag4) + { + bool flag5 = !applyDefaultBehaviour; + if (flag5) + { + throw new ArgumentException("Default behaviour must be observed for certain types with special handling; " + type.FullName, "applyDefaultBehaviour"); + } + applyDefaultBehaviour = false; + } + bool flag6 = metaType == null; + if (flag6) + { + metaType = this.Create(type); + } + metaType.Pending = true; + this.TakeLock(ref opaqueToken); + bool flag7 = this.FindWithoutAdd(type) != null; + if (flag7) + { + throw new ArgumentException("Duplicate type", "type"); + } + this.ThrowIfFrozen(); + this.types.Add(metaType); + bool flag8 = applyDefaultBehaviour; + if (flag8) + { + metaType.ApplyDefaultBehaviour(); + } + metaType.Pending = false; + } + finally + { + this.ReleaseLock(opaqueToken); + } + result = metaType; + } + return result; + } + + private void ThrowIfFrozen() + { + bool option = this.GetOption(4); + if (option) + { + throw new InvalidOperationException("The model cannot be changed once frozen"); + } + } + + public void Freeze() + { + bool option = this.GetOption(2); + if (option) + { + throw new InvalidOperationException("The default model cannot be frozen"); + } + this.SetOption(4, true); + } + + protected override int GetKeyImpl(Type type) + { + return this.GetKey(type, false, true); + } + + internal int GetKey(Type type, bool demand, bool getBaseKey) + { + Helpers.DebugAssert(type != null); + int result; + try + { + int num = this.FindOrAddAuto(type, demand, true, false); + bool flag = num >= 0; + if (flag) + { + MetaType metaType = (MetaType)this.types[num]; + if (getBaseKey) + { + metaType = MetaType.GetRootType(metaType); + num = this.FindOrAddAuto(metaType.Type, true, true, false); + } + } + result = num; + } + catch (NotSupportedException) + { + throw; + } + catch (Exception ex) + { + bool flag2 = ex.Message.IndexOf(type.FullName) >= 0; + if (flag2) + { + throw; + } + throw new ProtoException(ex.Message + " (" + type.FullName + ")", ex); + } + return result; + } + + protected internal override void Serialize(int key, object value, ProtoWriter dest) + { + ((MetaType)this.types[key]).Serializer.Write(value, dest); + } + + protected internal override object Deserialize(int key, object value, ProtoReader source) + { + IProtoSerializer serializer = ((MetaType)this.types[key]).Serializer; + bool flag = value == null && Helpers.IsValueType(serializer.ExpectedType); + object result; + if (flag) + { + bool requiresOldValue = serializer.RequiresOldValue; + if (requiresOldValue) + { + value = Activator.CreateInstance(serializer.ExpectedType); + } + result = serializer.Read(value, source); + } + else + { + result = serializer.Read(value, source); + } + return result; + } + + internal bool IsPrepared(Type type) + { + MetaType metaType = this.FindWithoutAdd(type); + return metaType != null && metaType.IsPrepared(); + } + + internal EnumSerializer.EnumPair[] GetEnumMap(Type type) + { + int num = this.FindOrAddAuto(type, false, false, false); + return (num < 0) ? null : ((MetaType)this.types[num]).GetEnumMap(); + } + + internal void TakeLock(ref int opaqueToken) + { + opaqueToken = 0; + bool flag = Monitor.TryEnter(this.types, this.metadataTimeoutMilliseconds); + if (flag) + { + opaqueToken = this.GetContention(); + this.lockCount++; + return; + } + this.AddContention(); + throw new TimeoutException("Timeout while inspecting metadata; this may indicate a deadlock. This can often be avoided by preparing necessary serializers during application initialization, rather than allowing multiple threads to perform the initial metadata inspection; please also see the LockContended event"); + } + + private int GetContention() + { + return Interlocked.CompareExchange(ref this.contentionCounter, 0, 0); + } + + private void AddContention() + { + Interlocked.Increment(ref this.contentionCounter); + } + + internal void ReleaseLock(int opaqueToken) + { + bool flag = opaqueToken != 0; + if (flag) + { + Monitor.Exit(this.types); + bool flag2 = opaqueToken != this.GetContention(); + if (flag2) + { + LockContentedEventHandler lockContended = this.LockContended; + bool flag3 = lockContended != null; + if (flag3) + { + string stackTrace; + try + { + throw new ProtoException(); + } + catch (Exception ex) + { + stackTrace = ex.StackTrace; + } + lockContended(this, new LockContentedEventArgs(stackTrace)); + } + } + } + } + + internal void ResolveListTypes(Type type, ref Type itemType, ref Type defaultType) + { + bool flag = type == null; + if (!flag) + { + bool flag2 = Helpers.GetTypeCode(type) != ProtoTypeCode.Unknown; + if (!flag2) + { + bool ignoreListHandling = this[type].IgnoreListHandling; + if (!ignoreListHandling) + { + bool isArray = type.IsArray; + if (isArray) + { + bool flag3 = type.GetArrayRank() != 1; + if (flag3) + { + throw new NotSupportedException("Multi-dimension arrays are supported"); + } + itemType = type.GetElementType(); + bool flag4 = itemType == base.MapType(typeof(byte)); + if (flag4) + { + Type type2; + itemType = (type2 = null); + defaultType = type2; + } + else + { + defaultType = type; + } + } + bool flag5 = itemType == null; + if (flag5) + { + itemType = TypeModel.GetListItemType(this, type); + } + bool flag6 = itemType != null; + if (flag6) + { + Type type3 = null; + Type type4 = null; + this.ResolveListTypes(itemType, ref type3, ref type4); + bool flag7 = type3 != null; + if (flag7) + { + throw TypeModel.CreateNestedListsNotSupported(); + } + } + bool flag8 = itemType != null && defaultType == null; + if (flag8) + { + bool flag9 = type.IsClass && !type.IsAbstract && Helpers.GetConstructor(type, Helpers.EmptyTypes, true) != null; + if (flag9) + { + defaultType = type; + } + bool flag10 = defaultType == null; + if (flag10) + { + bool isInterface = type.IsInterface; + if (isInterface) + { + Type[] genericArguments = null; + bool flag11 = type.IsGenericType && type.GetGenericTypeDefinition() == base.MapType(typeof(IDictionary<, >)) && itemType == base.MapType(typeof(KeyValuePair<, >)).MakeGenericType(genericArguments = type.GetGenericArguments()); + if (flag11) + { + defaultType = base.MapType(typeof(Dictionary<, >)).MakeGenericType(genericArguments); + } + else + { + defaultType = base.MapType(typeof(List<>)).MakeGenericType(new Type[] + { + itemType + }); + } + } + } + bool flag12 = defaultType != null && !Helpers.IsAssignableFrom(type, defaultType); + if (flag12) + { + defaultType = null; + } + } + } + } + } + } + + internal string GetSchemaTypeName(Type effectiveType, DataFormat dataFormat, bool asReference, bool dynamicType, ref bool requiresBclImport) + { + Type underlyingType = Helpers.GetUnderlyingType(effectiveType); + bool flag = underlyingType != null; + if (flag) + { + effectiveType = underlyingType; + } + bool flag2 = effectiveType == base.MapType(typeof(byte[])); + string result; + if (flag2) + { + result = "bytes"; + } + else + { + WireType wireType; + IProtoSerializer protoSerializer = ValueMember.TryGetCoreSerializer(this, dataFormat, effectiveType, out wireType, false, false, false, false); + bool flag3 = protoSerializer == null; + if (flag3) + { + bool flag4 = asReference || dynamicType; + if (flag4) + { + requiresBclImport = true; + result = "bcl.NetObjectProxy"; + } + else + { + result = this[effectiveType].GetSurrogateOrBaseOrSelf(true).GetSchemaTypeName(); + } + } + else + { + bool flag5 = protoSerializer is ParseableSerializer; + if (!flag5) + { + ProtoTypeCode typeCode = Helpers.GetTypeCode(effectiveType); + switch (typeCode) + { + case ProtoTypeCode.Boolean: + return "bool"; + case ProtoTypeCode.Char: + case ProtoTypeCode.Byte: + case ProtoTypeCode.UInt16: + case ProtoTypeCode.UInt32: + if (dataFormat != DataFormat.FixedSize) + { + return "uint32"; + } + return "fixed32"; + case ProtoTypeCode.SByte: + case ProtoTypeCode.Int16: + case ProtoTypeCode.Int32: + if (dataFormat == DataFormat.ZigZag) + { + return "sint32"; + } + if (dataFormat != DataFormat.FixedSize) + { + return "int32"; + } + return "sfixed32"; + case ProtoTypeCode.Int64: + if (dataFormat == DataFormat.ZigZag) + { + return "sint64"; + } + if (dataFormat != DataFormat.FixedSize) + { + return "int64"; + } + return "sfixed64"; + case ProtoTypeCode.UInt64: + if (dataFormat != DataFormat.FixedSize) + { + return "uint64"; + } + return "fixed64"; + case ProtoTypeCode.Single: + return "float"; + case ProtoTypeCode.Double: + return "double"; + case ProtoTypeCode.Decimal: + requiresBclImport = true; + return "bcl.Decimal"; + case ProtoTypeCode.DateTime: + requiresBclImport = true; + return "bcl.DateTime"; + case (ProtoTypeCode)17: + break; + case ProtoTypeCode.String: + if (asReference) + { + requiresBclImport = true; + } + return asReference ? "bcl.NetObjectProxy" : "string"; + default: + if (typeCode == ProtoTypeCode.TimeSpan) + { + requiresBclImport = true; + return "bcl.TimeSpan"; + } + if (typeCode == ProtoTypeCode.Guid) + { + requiresBclImport = true; + return "bcl.Guid"; + } + break; + } + throw new NotSupportedException("No .proto map found for: " + effectiveType.FullName); + } + if (asReference) + { + requiresBclImport = true; + } + result = (asReference ? "bcl.NetObjectProxy" : "string"); + } + } + return result; + } + + public void SetDefaultFactory(MethodInfo methodInfo) + { + this.VerifyFactory(methodInfo, null); + this.defaultFactory = methodInfo; + } + + internal void VerifyFactory(MethodInfo factory, Type type) + { + bool flag = factory != null; + if (flag) + { + bool flag2 = type != null && Helpers.IsValueType(type); + if (flag2) + { + throw new InvalidOperationException(); + } + bool flag3 = !factory.IsStatic; + if (flag3) + { + throw new ArgumentException("A factory-method must be static", "factory"); + } + bool flag4 = type != null && factory.ReturnType != type && factory.ReturnType != base.MapType(typeof(object)); + if (flag4) + { + throw new ArgumentException("The factory-method must return object" + ((type == null) ? "" : (" or " + type.FullName)), "factory"); + } + bool flag5 = !CallbackSet.CheckCallbackParameters(this, factory); + if (flag5) + { + throw new ArgumentException("Invalid factory signature in " + factory.DeclaringType.FullName + "." + factory.Name, "factory"); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs.meta new file mode 100644 index 00000000..547e89c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/RuntimeTypeModel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05191c47ba04cdf4e9b086621a0fb424 +timeCreated: 1611402962 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/SubType.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/SubType.cs new file mode 100644 index 00000000..6686ab73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/SubType.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using ProtoBuf.Serializers; + +namespace ProtoBuf.Meta +{ + public sealed class SubType + { + public int FieldNumber + { + get + { + return this.fieldNumber; + } + } + + public MetaType DerivedType + { + get + { + return this.derivedType; + } + } + + internal IProtoSerializer Serializer + { + get + { + bool flag = this.serializer == null; + if (flag) + { + this.serializer = this.BuildSerializer(); + } + return this.serializer; + } + } + + private readonly int fieldNumber; + + private readonly MetaType derivedType; + + private readonly DataFormat dataFormat; + + private IProtoSerializer serializer; + + internal sealed class Comparer : IComparer, IComparer + { + public static readonly SubType.Comparer Default = new SubType.Comparer(); + + public int Compare(object x, object y) + { + return this.Compare(x as SubType, y as SubType); + } + + public int Compare(SubType x, SubType y) + { + bool flag = x == y; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = x == null; + if (flag2) + { + result = -1; + } + else + { + bool flag3 = y == null; + if (flag3) + { + result = 1; + } + else + { + result = x.FieldNumber.CompareTo(y.FieldNumber); + } + } + } + return result; + } + } + + public SubType(int fieldNumber, MetaType derivedType, DataFormat format) + { + bool flag = derivedType == null; + if (flag) + { + throw new ArgumentNullException("derivedType"); + } + bool flag2 = fieldNumber <= 0; + if (flag2) + { + throw new ArgumentOutOfRangeException("fieldNumber"); + } + this.fieldNumber = fieldNumber; + this.derivedType = derivedType; + this.dataFormat = format; + } + + private IProtoSerializer BuildSerializer() + { + WireType wireType = WireType.String; + bool flag = this.dataFormat == DataFormat.Group; + if (flag) + { + wireType = WireType.StartGroup; + } + IProtoSerializer tail = new SubItemSerializer(this.derivedType.Type, this.derivedType.GetKey(false, false), this.derivedType, false); + return new TagDecorator(this.fieldNumber, wireType, false, tail); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/SubType.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/SubType.cs.meta new file mode 100644 index 00000000..dd423340 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/SubType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c96bdfea838c34b4c8d995ee6bd2940f +timeCreated: 1611404538 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventArgs.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventArgs.cs new file mode 100644 index 00000000..ec466502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventArgs.cs @@ -0,0 +1,76 @@ +using System; + +namespace ProtoBuf.Meta +{ + public class TypeFormatEventArgs : EventArgs + { + public Type Type + { + get + { + return this.type; + } + set + { + bool flag = this.type != value; + if (flag) + { + bool flag2 = this.typeFixed; + if (flag2) + { + throw new InvalidOperationException("The type is fixed and cannot be changed"); + } + this.type = value; + } + } + } + + public string FormattedName + { + get + { + return this.formattedName; + } + set + { + bool flag = this.formattedName != value; + if (flag) + { + bool flag2 = !this.typeFixed; + if (flag2) + { + throw new InvalidOperationException("The formatted-name is fixed and cannot be changed"); + } + this.formattedName = value; + } + } + } + + private Type type; + + private string formattedName; + + private readonly bool typeFixed; + + internal TypeFormatEventArgs(string formattedName) + { + bool flag = Helpers.IsNullOrEmpty(formattedName); + if (flag) + { + throw new ArgumentNullException("formattedName"); + } + this.formattedName = formattedName; + } + + internal TypeFormatEventArgs(Type type) + { + bool flag = type == null; + if (flag) + { + throw new ArgumentNullException("type"); + } + this.type = type; + this.typeFixed = true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventArgs.cs.meta new file mode 100644 index 00000000..3699b0eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22ffb555f8ce6f64aaf7b82ffbe091a3 +timeCreated: 1611403425 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventHandler.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventHandler.cs new file mode 100644 index 00000000..54e34016 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventHandler.cs @@ -0,0 +1,6 @@ +using System; + +namespace ProtoBuf.Meta +{ + public delegate void TypeFormatEventHandler(object sender, TypeFormatEventArgs args); +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventHandler.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventHandler.cs.meta new file mode 100644 index 00000000..47deaaff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeFormatEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0741ed768de0a8d429019e070d73a230 +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs new file mode 100644 index 00000000..018d47c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs @@ -0,0 +1,1511 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using System.Reflection; +using System.Runtime.CompilerServices; +using ProtoBuf.Serializers; + +namespace ProtoBuf.Meta +{ + public abstract class TypeModel + { + public bool ForwardsOnly + { + get + { + return this.forwardsOnly; + } + set + { + this.forwardsOnly = value; + } + } + + public event TypeFormatEventHandler DynamicTypeFormatting; + + private static readonly Type ilist = typeof(IList); + + private bool forwardsOnly; + + private sealed class DeserializeItemsIterator : TypeModel.DeserializeItemsIterator, IEnumerator, IEnumerator, IDisposable, IEnumerable, IEnumerable + { + public new T Current + { + get + { + return (T)((object)base.Current); + } + } + + IEnumerator IEnumerable.GetEnumerator() + { + return this; + } + + void IDisposable.Dispose() + { + } + + public DeserializeItemsIterator(TypeModel model, Stream source, PrefixStyle style, int expectedField, SerializationContext context) : base(model, source, model.MapType(typeof(T)), style, expectedField, null, context) + { + } + } + + private class DeserializeItemsIterator : IEnumerator, IEnumerable + { + public object Current + { + get + { + return this.current; + } + } + + private bool haveObject; + + private object current; + + private readonly Stream source; + + private readonly Type type; + + private readonly PrefixStyle style; + + private readonly int expectedField; + + private readonly Serializer.TypeResolver resolver; + + private readonly TypeModel model; + + private readonly SerializationContext context; + + IEnumerator IEnumerable.GetEnumerator() + { + return this; + } + + public bool MoveNext() + { + bool flag = this.haveObject; + if (flag) + { + int num; + this.current = this.model.DeserializeWithLengthPrefix(this.source, null, this.type, this.style, this.expectedField, this.resolver, out num, out this.haveObject, this.context); + } + return this.haveObject; + } + + void IEnumerator.Reset() + { + throw new NotSupportedException(); + } + + public DeserializeItemsIterator(TypeModel model, Stream source, Type type, PrefixStyle style, int expectedField, Serializer.TypeResolver resolver, SerializationContext context) + { + this.haveObject = true; + this.source = source; + this.type = type; + this.style = style; + this.expectedField = expectedField; + this.resolver = resolver; + this.model = model; + this.context = context; + } + } + + protected internal enum CallbackType + { + BeforeSerialize, + AfterSerialize, + BeforeDeserialize, + AfterDeserialize + } + + protected internal Type MapType(Type type) + { + return this.MapType(type, true); + } + + protected internal virtual Type MapType(Type type, bool demand) + { + return type; + } + + private WireType GetWireType(ProtoTypeCode code, DataFormat format, ref Type type, out int modelKey) + { + modelKey = -1; + bool flag = Helpers.IsEnum(type); + WireType result = WireType.None;//! + if (flag) + { + modelKey = this.GetKey(ref type); + result = WireType.Variant; + } + else + { + switch (code) + { + case ProtoTypeCode.Boolean: + case ProtoTypeCode.Char: + case ProtoTypeCode.SByte: + case ProtoTypeCode.Byte: + case ProtoTypeCode.Int16: + case ProtoTypeCode.UInt16: + case ProtoTypeCode.Int32: + case ProtoTypeCode.UInt32: + return (format == DataFormat.FixedSize) ? WireType.Fixed32 : WireType.Variant; + case ProtoTypeCode.Int64: + case ProtoTypeCode.UInt64: + return (format == DataFormat.FixedSize) ? WireType.Fixed64 : WireType.Variant; + case ProtoTypeCode.Single: + return WireType.Fixed32; + case ProtoTypeCode.Double: + return WireType.Fixed64; + case ProtoTypeCode.Decimal: + case ProtoTypeCode.DateTime: + case ProtoTypeCode.String: + break; + case (ProtoTypeCode)17: + goto IL_99; + default: + if (code - ProtoTypeCode.TimeSpan > 3) + { + goto IL_99; + } + break; + } + return WireType.String; + IL_99: + bool flag2 = (modelKey = this.GetKey(ref type)) >= 0; + if (flag2) + { + result = WireType.String; + } + else + { + result = WireType.None; + } + } + return result; + } + + internal bool TrySerializeAuxiliaryType(ProtoWriter writer, Type type, DataFormat format, int tag, object value, bool isInsideList) + { + bool flag = type == null; + if (flag) + { + type = value.GetType(); + } + ProtoTypeCode typeCode = Helpers.GetTypeCode(type); + int num; + WireType wireType = this.GetWireType(typeCode, format, ref type, out num); + bool flag2 = num >= 0; + bool result; + if (flag2) + { + bool flag3 = Helpers.IsEnum(type); + if (flag3) + { + this.Serialize(num, value, writer); + result = true; + } + else + { + ProtoWriter.WriteFieldHeader(tag, wireType, writer); + WireType wireType2 = wireType; + if (wireType2 == WireType.None) + { + throw ProtoWriter.CreateException(writer); + } + if (wireType2 - WireType.String > 1) + { + this.Serialize(num, value, writer); + result = true; + } + else + { + SubItemToken token = ProtoWriter.StartSubItem(value, writer); + this.Serialize(num, value, writer); + ProtoWriter.EndSubItem(token, writer); + result = true; + } + } + } + else + { + bool flag4 = wireType != WireType.None; + if (flag4) + { + ProtoWriter.WriteFieldHeader(tag, wireType, writer); + } + ProtoTypeCode protoTypeCode = typeCode; + switch (protoTypeCode) + { + case ProtoTypeCode.Boolean: + ProtoWriter.WriteBoolean((bool)value, writer); + return true; + case ProtoTypeCode.Char: + ProtoWriter.WriteUInt16((ushort)((char)value), writer); + return true; + case ProtoTypeCode.SByte: + ProtoWriter.WriteSByte((sbyte)value, writer); + return true; + case ProtoTypeCode.Byte: + ProtoWriter.WriteByte((byte)value, writer); + return true; + case ProtoTypeCode.Int16: + ProtoWriter.WriteInt16((short)value, writer); + return true; + case ProtoTypeCode.UInt16: + ProtoWriter.WriteUInt16((ushort)value, writer); + return true; + case ProtoTypeCode.Int32: + ProtoWriter.WriteInt32((int)value, writer); + return true; + case ProtoTypeCode.UInt32: + ProtoWriter.WriteUInt32((uint)value, writer); + return true; + case ProtoTypeCode.Int64: + ProtoWriter.WriteInt64((long)value, writer); + return true; + case ProtoTypeCode.UInt64: + ProtoWriter.WriteUInt64((ulong)value, writer); + return true; + case ProtoTypeCode.Single: + ProtoWriter.WriteSingle((float)value, writer); + return true; + case ProtoTypeCode.Double: + ProtoWriter.WriteDouble((double)value, writer); + return true; + case ProtoTypeCode.Decimal: + BclHelpers.WriteDecimal((decimal)value, writer); + return true; + case ProtoTypeCode.DateTime: + BclHelpers.WriteDateTime((DateTime)value, writer); + return true; + case (ProtoTypeCode)17: + break; + case ProtoTypeCode.String: + ProtoWriter.WriteString((string)value, writer); + return true; + default: + switch (protoTypeCode) + { + case ProtoTypeCode.TimeSpan: + BclHelpers.WriteTimeSpan((TimeSpan)value, writer); + return true; + case ProtoTypeCode.ByteArray: + ProtoWriter.WriteBytes((byte[])value, writer); + return true; + case ProtoTypeCode.Guid: + BclHelpers.WriteGuid((Guid)value, writer); + return true; + case ProtoTypeCode.Uri: + ProtoWriter.WriteString(((Uri)value).AbsoluteUri, writer); + return true; + } + break; + } + Helpers.DebugAssert(wireType == WireType.None); + IEnumerable enumerable = value as IEnumerable; + bool flag5 = enumerable != null; + if (flag5) + { + if (isInsideList) + { + throw TypeModel.CreateNestedListsNotSupported(); + } + foreach (object obj in enumerable) + { + bool flag6 = obj == null; + if (flag6) + { + throw new NullReferenceException(); + } + bool flag7 = !this.TrySerializeAuxiliaryType(writer, null, format, tag, obj, true); + if (flag7) + { + TypeModel.ThrowUnexpectedType(obj.GetType()); + } + } + result = true; + } + else + { + result = false; + } + } + return result; + } + + private void SerializeCore(ProtoWriter writer, object value) + { + bool flag = value == null; + if (flag) + { + throw new ArgumentNullException("value"); + } + Type type = value.GetType(); + int key = this.GetKey(ref type); + bool flag2 = key >= 0; + if (flag2) + { + this.Serialize(key, value, writer); + } + else + { + bool flag3 = !this.TrySerializeAuxiliaryType(writer, type, DataFormat.Default, 1, value, false); + if (flag3) + { + TypeModel.ThrowUnexpectedType(type); + } + } + } + + public void Serialize(Stream dest, object value) + { + this.Serialize(dest, value, null); + } + + public void Serialize(Stream dest, object value, SerializationContext context) + { + using (ProtoWriter protoWriter = new ProtoWriter(dest, this, context)) + { + protoWriter.SetRootObject(value); + this.SerializeCore(protoWriter, value); + protoWriter.Close(); + } + } + + public void Serialize(ProtoWriter dest, object value) + { + bool flag = dest == null; + if (flag) + { + throw new ArgumentNullException("dest"); + } + dest.CheckDepthFlushlock(); + dest.SetRootObject(value); + this.SerializeCore(dest, value); + dest.CheckDepthFlushlock(); + ProtoWriter.Flush(dest); + } + + public object DeserializeWithLengthPrefix(Stream source, object value, Type type, PrefixStyle style, int fieldNumber) + { + int num; + return this.DeserializeWithLengthPrefix(source, value, type, style, fieldNumber, null, out num); + } + + public object DeserializeWithLengthPrefix(Stream source, object value, Type type, PrefixStyle style, int expectedField, Serializer.TypeResolver resolver) + { + int num; + return this.DeserializeWithLengthPrefix(source, value, type, style, expectedField, resolver, out num); + } + + public object DeserializeWithLengthPrefix(Stream source, object value, Type type, PrefixStyle style, int expectedField, Serializer.TypeResolver resolver, out int bytesRead) + { + bool flag; + return this.DeserializeWithLengthPrefix(source, value, type, style, expectedField, resolver, out bytesRead, out flag, null); + } + + private object DeserializeWithLengthPrefix(Stream source, object value, Type type, PrefixStyle style, int expectedField, Serializer.TypeResolver resolver, out int bytesRead, out bool haveObject, SerializationContext context) + { + haveObject = false; + bytesRead = 0; + bool flag = type == null && (style != PrefixStyle.Base128 || resolver == null); + if (flag) + { + throw new InvalidOperationException("A type must be provided unless base-128 prefixing is being used in combination with a resolver"); + } + for (;;) + { + bool flag2 = expectedField > 0 || resolver != null; + int num2; + int num3; + int num = ProtoReader.ReadLengthPrefix(source, flag2, style, out num2, out num3); + bool flag3 = num3 == 0; + if (flag3) + { + break; + } + bytesRead += num3; + bool flag4 = num < 0; + if (flag4) + { + goto Block_6; + } + bool flag5; + if (style != PrefixStyle.Base128) + { + flag5 = false; + } + else + { + bool flag6 = flag2 && expectedField == 0 && type == null && resolver != null; + if (flag6) + { + type = resolver(num2); + flag5 = (type == null); + } + else + { + flag5 = (expectedField != num2); + } + } + bool flag7 = flag5; + if (flag7) + { + bool flag8 = num == int.MaxValue; + if (flag8) + { + goto Block_13; + } + ProtoReader.Seek(source, num, null); + bytesRead += num; + } + if (!flag5) + { + goto Block_14; + } + } + return value; + Block_6: + return value; + Block_13: + throw new InvalidOperationException(); + Block_14: + ProtoReader protoReader = null; + object result; + try + { + int num = 0;//! + //int num;//! + protoReader = ProtoReader.Create(source, this, context, num); + int key = this.GetKey(ref type); + bool flag9 = key >= 0 && !Helpers.IsEnum(type); + if (flag9) + { + value = this.Deserialize(key, value, protoReader); + } + else + { + bool flag10 = !this.TryDeserializeAuxiliaryType(protoReader, DataFormat.Default, 1, type, ref value, true, false, true, false) && num != 0; + if (flag10) + { + TypeModel.ThrowUnexpectedType(type); + } + } + bytesRead += protoReader.Position; + haveObject = true; + result = value; + } + finally + { + ProtoReader.Recycle(protoReader); + } + return result; + } + + public IEnumerable DeserializeItems(Stream source, Type type, PrefixStyle style, int expectedField, Serializer.TypeResolver resolver) + { + return this.DeserializeItems(source, type, style, expectedField, resolver, null); + } + + public IEnumerable DeserializeItems(Stream source, Type type, PrefixStyle style, int expectedField, Serializer.TypeResolver resolver, SerializationContext context) + { + return new TypeModel.DeserializeItemsIterator(this, source, type, style, expectedField, resolver, context); + } + + public IEnumerable DeserializeItems(Stream source, PrefixStyle style, int expectedField) + { + return this.DeserializeItems(source, style, expectedField, null); + } + + public IEnumerable DeserializeItems(Stream source, PrefixStyle style, int expectedField, SerializationContext context) + { + return new TypeModel.DeserializeItemsIterator(this, source, style, expectedField, context); + } + + public void SerializeWithLengthPrefix(Stream dest, object value, Type type, PrefixStyle style, int fieldNumber) + { + this.SerializeWithLengthPrefix(dest, value, type, style, fieldNumber, null); + } + + public void SerializeWithLengthPrefix(Stream dest, object value, Type type, PrefixStyle style, int fieldNumber, SerializationContext context) + { + bool flag = type == null; + if (flag) + { + bool flag2 = value == null; + if (flag2) + { + throw new ArgumentNullException("value"); + } + type = this.MapType(value.GetType()); + } + int key = this.GetKey(ref type); + using (ProtoWriter protoWriter = new ProtoWriter(dest, this, context)) + { + if (style != PrefixStyle.None) + { + if (style - PrefixStyle.Base128 > 2) + { + throw new ArgumentOutOfRangeException("style"); + } + ProtoWriter.WriteObject(value, key, protoWriter, style, fieldNumber); + } + else + { + this.Serialize(key, value, protoWriter); + } + protoWriter.Close(); + } + } + + public object Deserialize(Stream source, object value, Type type) + { + return this.Deserialize(source, value, type, null); + } + + public object Deserialize(Stream source, object value, Type type, SerializationContext context) + { + bool noAutoCreate = this.PrepareDeserialize(value, ref type); + ProtoReader protoReader = null; + object result; + try + { + protoReader = ProtoReader.Create(source, this, context, -1); + bool flag = value != null; + if (flag) + { + protoReader.SetRootObject(value); + } + object obj = this.DeserializeCore(protoReader, type, value, noAutoCreate); + protoReader.CheckFullyConsumed(); + result = obj; + } + finally + { + ProtoReader.Recycle(protoReader); + } + return result; + } + + private bool PrepareDeserialize(object value, ref Type type) + { + bool flag = type == null; + if (flag) + { + bool flag2 = value == null; + if (flag2) + { + throw new ArgumentNullException("type"); + } + type = this.MapType(value.GetType()); + } + bool result = true; + Type underlyingType = Helpers.GetUnderlyingType(type); + bool flag3 = underlyingType != null; + if (flag3) + { + type = underlyingType; + result = false; + } + return result; + } + + public object Deserialize(Stream source, object value, Type type, int length) + { + return this.Deserialize(source, value, type, length, null); + } + + public object Deserialize(Stream source, object value, Type type, int length, SerializationContext context) + { + bool noAutoCreate = this.PrepareDeserialize(value, ref type); + ProtoReader protoReader = null; + object result; + try + { + protoReader = ProtoReader.Create(source, this, context, length); + bool flag = value != null; + if (flag) + { + protoReader.SetRootObject(value); + } + object obj = this.DeserializeCore(protoReader, type, value, noAutoCreate); + protoReader.CheckFullyConsumed(); + result = obj; + } + finally + { + ProtoReader.Recycle(protoReader); + } + return result; + } + + public object Deserialize(ProtoReader source, object value, Type type) + { + bool flag = source == null; + if (flag) + { + throw new ArgumentNullException("source"); + } + bool noAutoCreate = this.PrepareDeserialize(value, ref type); + bool flag2 = value != null; + if (flag2) + { + source.SetRootObject(value); + } + object result = this.DeserializeCore(source, type, value, noAutoCreate); + source.CheckFullyConsumed(); + return result; + } + + private object DeserializeCore(ProtoReader reader, Type type, object value, bool noAutoCreate) + { + int key = this.GetKey(ref type); + bool flag = key >= 0 && !Helpers.IsEnum(type); + object result; + if (flag) + { + result = this.Deserialize(key, value, reader); + } + else + { + this.TryDeserializeAuxiliaryType(reader, DataFormat.Default, 1, type, ref value, true, false, noAutoCreate, false); + result = value; + } + return result; + } + + internal static MethodInfo ResolveListAdd(TypeModel model, Type listType, Type itemType, out bool isList) + { + isList = model.MapType(TypeModel.ilist).IsAssignableFrom(listType); + Type[] array = new Type[] + { + itemType + }; + MethodInfo instanceMethod = Helpers.GetInstanceMethod(listType, "Add", array); + bool flag = instanceMethod == null; + if (flag) + { + bool flag2 = listType.IsInterface && listType == model.MapType(typeof(IEnumerable<>)).MakeGenericType(array); + Type type = model.MapType(typeof(ICollection<>)).MakeGenericType(array); + bool flag3 = flag2 || type.IsAssignableFrom(listType); + if (flag3) + { + instanceMethod = Helpers.GetInstanceMethod(type, "Add", array); + } + } + bool flag4 = instanceMethod == null; + if (flag4) + { + foreach (Type type2 in listType.GetInterfaces()) + { + bool flag5 = type2.Name == "IProducerConsumerCollection`1" && type2.IsGenericType && type2.GetGenericTypeDefinition().FullName == "System.Collections.Concurrent.IProducerConsumerCollection`1"; + if (flag5) + { + instanceMethod = Helpers.GetInstanceMethod(type2, "TryAdd", array); + bool flag6 = instanceMethod != null; + if (flag6) + { + break; + } + } + } + } + bool flag7 = instanceMethod == null; + if (flag7) + { + array[0] = model.MapType(typeof(object)); + instanceMethod = Helpers.GetInstanceMethod(listType, "Add", array); + } + bool flag8 = instanceMethod == null & isList; + if (flag8) + { + instanceMethod = Helpers.GetInstanceMethod(model.MapType(TypeModel.ilist), "Add", array); + } + return instanceMethod; + } + + internal static Type GetListItemType(TypeModel model, Type listType) + { + Helpers.DebugAssert(listType != null); + bool flag = listType == model.MapType(typeof(string)) || listType.IsArray || !model.MapType(typeof(IEnumerable)).IsAssignableFrom(listType); + Type result; + if (flag) + { + result = null; + } + else + { + BasicList basicList = new BasicList(); + foreach (MethodInfo methodInfo in listType.GetMethods()) + { + bool flag2 = methodInfo.IsStatic || methodInfo.Name != "Add"; + if (!flag2) + { + ParameterInfo[] parameters = methodInfo.GetParameters(); + Type parameterType = null; + bool flag3 = parameters.Length == 1 && !basicList.Contains(parameterType = parameters[0].ParameterType); + if (flag3) + { + basicList.Add(parameterType); + } + } + } + string name = listType.Name; + bool flag4 = name != null && (name.IndexOf("Queue") >= 0 || name.IndexOf("Stack") >= 0); + bool flag5 = !flag4; + if (flag5) + { + TypeModel.TestEnumerableListPatterns(model, basicList, listType); + foreach (Type iType in listType.GetInterfaces()) + { + TypeModel.TestEnumerableListPatterns(model, basicList, iType); + } + } + foreach (PropertyInfo propertyInfo in listType.GetProperties(BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)) + { + bool flag6 = propertyInfo.Name != "Item" || basicList.Contains(propertyInfo.PropertyType); + if (!flag6) + { + ParameterInfo[] indexParameters = propertyInfo.GetIndexParameters(); + bool flag7 = indexParameters.Length != 1 || indexParameters[0].ParameterType != model.MapType(typeof(int)); + if (!flag7) + { + basicList.Add(propertyInfo.PropertyType); + } + } + } + switch (basicList.Count) + { + case 0: + return null; + case 1: + return (Type)basicList[0]; + case 2: + { + bool flag8 = TypeModel.CheckDictionaryAccessors(model, (Type)basicList[0], (Type)basicList[1]); + if (flag8) + { + return (Type)basicList[0]; + } + bool flag9 = TypeModel.CheckDictionaryAccessors(model, (Type)basicList[1], (Type)basicList[0]); + if (flag9) + { + return (Type)basicList[1]; + } + break; + } + } + result = null; + } + return result; + } + + private static void TestEnumerableListPatterns(TypeModel model, BasicList candidates, Type iType) + { + bool isGenericType = iType.IsGenericType; + if (isGenericType) + { + Type genericTypeDefinition = iType.GetGenericTypeDefinition(); + bool flag = genericTypeDefinition == model.MapType(typeof(IEnumerable<>)) || genericTypeDefinition == model.MapType(typeof(ICollection<>)) || genericTypeDefinition.FullName == "System.Collections.Concurrent.IProducerConsumerCollection`1"; + if (flag) + { + Type[] genericArguments = iType.GetGenericArguments(); + bool flag2 = !candidates.Contains(genericArguments[0]); + if (flag2) + { + candidates.Add(genericArguments[0]); + } + } + } + } + + private static bool CheckDictionaryAccessors(TypeModel model, Type pair, Type value) + { + return pair.IsGenericType && pair.GetGenericTypeDefinition() == model.MapType(typeof(KeyValuePair<, >)) && pair.GetGenericArguments()[1] == value; + } + + private bool TryDeserializeList(TypeModel model, ProtoReader reader, DataFormat format, int tag, Type listType, Type itemType, ref object value) + { + bool flag; + MethodInfo methodInfo = TypeModel.ResolveListAdd(model, listType, itemType, out flag); + bool flag2 = methodInfo == null; + if (flag2) + { + throw new NotSupportedException("Unknown list variant: " + listType.FullName); + } + bool result = false; + object obj = null; + IList list = value as IList; + object[] array = flag ? null : ProtoDecoratorBase.s_argsRead; + BasicList basicList = listType.IsArray ? new BasicList() : null; + while (this.TryDeserializeAuxiliaryType(reader, format, tag, itemType, ref obj, true, true, true, true)) + { + result = true; + bool flag3 = value == null && basicList == null; + if (flag3) + { + value = TypeModel.CreateListInstance(listType, itemType); + list = (value as IList); + } + bool flag4 = list != null; + if (flag4) + { + list.Add(obj); + } + else + { + bool flag5 = basicList != null; + if (flag5) + { + basicList.Add(obj); + } + else + { + array[0] = obj; + methodInfo.Invoke(value, array); + } + } + obj = null; + } + bool flag6 = basicList != null; + if (flag6) + { + bool flag7 = value != null; + if (flag7) + { + bool flag8 = basicList.Count == 0; + if (!flag8) + { + Array array2 = (Array)value; + Array array3 = Array.CreateInstance(itemType, array2.Length + basicList.Count); + Array.Copy(array2, array3, array2.Length); + basicList.CopyTo(array3, array2.Length); + value = array3; + } + } + else + { + Array array3 = Array.CreateInstance(itemType, basicList.Count); + basicList.CopyTo(array3, 0); + value = array3; + } + } + return result; + } + + private static object CreateListInstance(Type listType, Type itemType) + { + Type type = listType; + bool isArray = listType.IsArray; + object result; + if (isArray) + { + result = Array.CreateInstance(itemType, 0); + } + else + { + bool flag = !listType.IsClass || listType.IsAbstract || Helpers.GetConstructor(listType, Helpers.EmptyTypes, true) == null; + if (flag) + { + bool flag2 = false; + string fullName; + bool flag3 = listType.IsInterface && (fullName = listType.FullName) != null && fullName.IndexOf("Dictionary") >= 0; + if (flag3) + { + bool flag4 = listType.IsGenericType && listType.GetGenericTypeDefinition() == typeof(IDictionary<, >); + if (flag4) + { + Type[] genericArguments = listType.GetGenericArguments(); + type = typeof(Dictionary<, >).MakeGenericType(genericArguments); + flag2 = true; + } + bool flag5 = !flag2 && listType == typeof(IDictionary); + if (flag5) + { + type = typeof(Hashtable); + flag2 = true; + } + } + bool flag6 = !flag2; + if (flag6) + { + type = typeof(List<>).MakeGenericType(new Type[] + { + itemType + }); + flag2 = true; + } + bool flag7 = !flag2; + if (flag7) + { + type = typeof(ArrayList); + } + } + result = Activator.CreateInstance(type); + } + return result; + } + + internal bool TryDeserializeAuxiliaryType(ProtoReader reader, DataFormat format, int tag, Type type, ref object value, bool skipOtherFields, bool asListItem, bool autoCreate, bool insideList) + { + bool flag = type == null; + if (flag) + { + throw new ArgumentNullException("type"); + } + ProtoTypeCode typeCode = Helpers.GetTypeCode(type); + int num; + WireType wireType = this.GetWireType(typeCode, format, ref type, out num); + bool flag2 = false; + bool flag3 = wireType == WireType.None; + if (flag3) + { + Type type2 = TypeModel.GetListItemType(this, type); + bool flag4 = type2 == null && type.IsArray && type.GetArrayRank() == 1 && type != typeof(byte[]); + if (flag4) + { + type2 = type.GetElementType(); + } + bool flag5 = type2 != null; + if (flag5) + { + if (insideList) + { + throw TypeModel.CreateNestedListsNotSupported(); + } + flag2 = this.TryDeserializeList(this, reader, format, tag, type, type2, ref value); + bool flag6 = !flag2 && autoCreate; + if (flag6) + { + value = TypeModel.CreateListInstance(type, type2); + } + return flag2; + } + else + { + TypeModel.ThrowUnexpectedType(type); + } + } + int num2; + for (;;) + { + bool flag7 = flag2 && asListItem; + if (flag7) + { + break; + } + num2 = reader.ReadFieldHeader(); + bool flag8 = num2 <= 0; + if (flag8) + { + break; + } + bool flag9 = num2 != tag; + if (flag9) + { + if (!skipOtherFields) + { + goto IL_12E; + } + reader.SkipField(); + } + else + { + flag2 = true; + reader.Hint(wireType); + bool flag10 = num >= 0; + if (flag10) + { + WireType wireType2 = wireType; + if (wireType2 - WireType.String > 1) + { + value = this.Deserialize(num, value, reader); + } + else + { + SubItemToken token = ProtoReader.StartSubItem(reader); + value = this.Deserialize(num, value, reader); + ProtoReader.EndSubItem(token, reader); + } + } + else + { + ProtoTypeCode protoTypeCode = typeCode; + switch (protoTypeCode) + { + case ProtoTypeCode.Boolean: + value = reader.ReadBoolean(); + break; + case ProtoTypeCode.Char: + value = (char)reader.ReadUInt16(); + break; + case ProtoTypeCode.SByte: + value = reader.ReadSByte(); + break; + case ProtoTypeCode.Byte: + value = reader.ReadByte(); + break; + case ProtoTypeCode.Int16: + value = reader.ReadInt16(); + break; + case ProtoTypeCode.UInt16: + value = reader.ReadUInt16(); + break; + case ProtoTypeCode.Int32: + value = reader.ReadInt32(); + break; + case ProtoTypeCode.UInt32: + value = reader.ReadUInt32(); + break; + case ProtoTypeCode.Int64: + value = reader.ReadInt64(); + break; + case ProtoTypeCode.UInt64: + value = reader.ReadUInt64(); + break; + case ProtoTypeCode.Single: + value = reader.ReadSingle(); + break; + case ProtoTypeCode.Double: + value = reader.ReadDouble(); + break; + case ProtoTypeCode.Decimal: + value = BclHelpers.ReadDecimal(reader); + break; + case ProtoTypeCode.DateTime: + value = BclHelpers.ReadDateTime(reader); + break; + case (ProtoTypeCode)17: + break; + case ProtoTypeCode.String: + value = reader.ReadString(); + break; + default: + switch (protoTypeCode) + { + case ProtoTypeCode.TimeSpan: + value = BclHelpers.ReadTimeSpan(reader); + break; + case ProtoTypeCode.ByteArray: + value = ProtoReader.AppendBytes((byte[])value, reader); + break; + case ProtoTypeCode.Guid: + value = BclHelpers.ReadGuid(reader); + break; + case ProtoTypeCode.Uri: + value = new Uri(reader.ReadString()); + break; + } + break; + } + } + } + } + goto IL_375; + IL_12E: + throw ProtoReader.AddErrorData(new InvalidOperationException("Expected field " + tag.ToString() + ", but found " + num2.ToString()), reader); + IL_375: + bool flag11 = !flag2 && !asListItem && autoCreate; + if (flag11) + { + bool flag12 = type != typeof(string); + if (flag12) + { + value = Activator.CreateInstance(type); + } + } + return flag2; + } + + public static RuntimeTypeModel Create() + { + return new RuntimeTypeModel(false); + } + + protected internal static Type ResolveProxies(Type type) + { + bool flag = type == null; + Type result; + if (flag) + { + result = null; + } + else + { + bool isGenericParameter = type.IsGenericParameter; + if (isGenericParameter) + { + result = null; + } + else + { + Type underlyingType = Helpers.GetUnderlyingType(type); + bool flag2 = underlyingType != null; + if (flag2) + { + result = underlyingType; + } + else + { + string fullName = type.FullName; + bool flag3 = fullName != null && fullName.StartsWith("System.Data.Entity.DynamicProxies."); + if (flag3) + { + result = type.BaseType; + } + else + { + Type[] interfaces = type.GetInterfaces(); + for (int i = 0; i < interfaces.Length; i++) + { + string fullName2 = interfaces[i].FullName; + if (fullName2 == "NHibernate.Proxy.INHibernateProxy" || fullName2 == "NHibernate.Proxy.DynamicProxy.IProxy" || fullName2 == "NHibernate.Intercept.IFieldInterceptorAccessor") + { + return type.BaseType; + } + } + result = null; + } + } + } + } + return result; + } + + public bool IsDefined(Type type) + { + return this.GetKey(ref type) >= 0; + } + + protected internal int GetKey(ref Type type) + { + bool flag = type == null; + int result; + if (flag) + { + result = -1; + } + else + { + int keyImpl = this.GetKeyImpl(type); + bool flag2 = keyImpl < 0; + if (flag2) + { + Type type2 = TypeModel.ResolveProxies(type); + bool flag3 = type2 != null; + if (flag3) + { + type = type2; + keyImpl = this.GetKeyImpl(type); + } + } + result = keyImpl; + } + return result; + } + + protected abstract int GetKeyImpl(Type type); + + protected internal abstract void Serialize(int key, object value, ProtoWriter dest); + + protected internal abstract object Deserialize(int key, object value, ProtoReader source); + + public object DeepClone(object value) + { + bool flag = value == null; + object result; + if (flag) + { + result = null; + } + else + { + Type type = value.GetType(); + int key = this.GetKey(ref type); + bool flag2 = key >= 0 && !Helpers.IsEnum(type); + if (flag2) + { + using (MemoryStream memoryStream = new MemoryStream()) + { + using (ProtoWriter protoWriter = new ProtoWriter(memoryStream, this, null)) + { + protoWriter.SetRootObject(value); + this.Serialize(key, value, protoWriter); + protoWriter.Close(); + } + memoryStream.Position = 0L; + ProtoReader protoReader = null; + try + { + protoReader = ProtoReader.Create(memoryStream, this, null, -1); + return this.Deserialize(key, null, protoReader); + } + finally + { + ProtoReader.Recycle(protoReader); + } + } + } + bool flag3 = type == typeof(byte[]); + if (flag3) + { + byte[] array = (byte[])value; + byte[] array2 = new byte[array.Length]; + Helpers.BlockCopy(array, 0, array2, 0, array.Length); + result = array2; + } + else + { + int num; + bool flag4 = this.GetWireType(Helpers.GetTypeCode(type), DataFormat.Default, ref type, out num) != WireType.None && num < 0; + if (flag4) + { + result = value; + } + else + { + using (MemoryStream memoryStream2 = new MemoryStream()) + { + using (ProtoWriter protoWriter2 = new ProtoWriter(memoryStream2, this, null)) + { + bool flag5 = !this.TrySerializeAuxiliaryType(protoWriter2, type, DataFormat.Default, 1, value, false); + if (flag5) + { + TypeModel.ThrowUnexpectedType(type); + } + protoWriter2.Close(); + } + memoryStream2.Position = 0L; + ProtoReader reader = null; + try + { + reader = ProtoReader.Create(memoryStream2, this, null, -1); + value = null; + this.TryDeserializeAuxiliaryType(reader, DataFormat.Default, 1, type, ref value, true, false, true, false); + result = value; + } + finally + { + ProtoReader.Recycle(reader); + } + } + } + } + } + return result; + } + + protected internal static void ThrowUnexpectedSubtype(Type expected, Type actual) + { + bool flag = expected != TypeModel.ResolveProxies(actual); + if (flag) + { + throw new InvalidOperationException("Unexpected sub-type: " + actual.FullName); + } + } + + protected internal static void ThrowUnexpectedType(Type type) + { + string str = (type == null) ? "(unknown)" : type.FullName; + bool flag = type != null; + if (flag) + { + Type baseType = type.BaseType; + bool flag2 = baseType != null && baseType.IsGenericType && baseType.GetGenericTypeDefinition().Name == "GeneratedMessage`2"; + if (flag2) + { + throw new InvalidOperationException("Are you mixing protobuf-net and protobuf-csharp-port? See http://stackoverflow.com/q/11564914; type: " + str); + } + } + throw new InvalidOperationException("Type is not expected, and no contract can be inferred: " + str); + } + + internal static Exception CreateNestedListsNotSupported() + { + return new NotSupportedException("Nested or jagged lists and arrays are not supported"); + } + + public static void ThrowCannotCreateInstance(Type type) + { + throw new ProtoException("No parameterless constructor found for " + ((type == null) ? "(null)" : type.Name)); + } + + internal static string SerializeType(TypeModel model, Type type) + { + bool flag = model != null; + if (flag) + { + TypeFormatEventHandler dynamicTypeFormatting = model.DynamicTypeFormatting; + bool flag2 = dynamicTypeFormatting != null; + if (flag2) + { + TypeFormatEventArgs typeFormatEventArgs = new TypeFormatEventArgs(type); + dynamicTypeFormatting(model, typeFormatEventArgs); + bool flag3 = !Helpers.IsNullOrEmpty(typeFormatEventArgs.FormattedName); + if (flag3) + { + return typeFormatEventArgs.FormattedName; + } + } + } + return type.AssemblyQualifiedName; + } + + internal static Type DeserializeType(TypeModel model, string value) + { + bool flag = model != null; + if (flag) + { + TypeFormatEventHandler dynamicTypeFormatting = model.DynamicTypeFormatting; + bool flag2 = dynamicTypeFormatting != null; + if (flag2) + { + TypeFormatEventArgs typeFormatEventArgs = new TypeFormatEventArgs(value); + dynamicTypeFormatting(model, typeFormatEventArgs); + bool flag3 = typeFormatEventArgs.Type != null; + if (flag3) + { + return typeFormatEventArgs.Type; + } + } + } + return Type.GetType(value); + } + + public bool CanSerializeContractType(Type type) + { + return this.CanSerialize(type, false, true, true); + } + + public bool CanSerialize(Type type) + { + return this.CanSerialize(type, true, true, true); + } + + public bool CanSerializeBasicType(Type type) + { + return this.CanSerialize(type, true, false, true); + } + + private bool CanSerialize(Type type, bool allowBasic, bool allowContract, bool allowLists) + { + bool flag = type == null; + if (flag) + { + throw new ArgumentNullException("type"); + } + Type underlyingType = Helpers.GetUnderlyingType(type); + bool flag2 = underlyingType != null; + if (flag2) + { + type = underlyingType; + } + ProtoTypeCode typeCode = Helpers.GetTypeCode(type); + ProtoTypeCode protoTypeCode = typeCode; + bool result; + if (protoTypeCode > ProtoTypeCode.Unknown) + { + result = allowBasic; + } + else + { + int key = this.GetKey(ref type); + bool flag3 = key >= 0; + if (flag3) + { + result = allowContract; + } + else + { + if (allowLists) + { + Type type2 = null; + bool isArray = type.IsArray; + if (isArray) + { + bool flag4 = type.GetArrayRank() == 1; + if (flag4) + { + type2 = type.GetElementType(); + } + } + else + { + type2 = TypeModel.GetListItemType(this, type); + } + bool flag5 = type2 != null; + if (flag5) + { + return this.CanSerialize(type2, allowBasic, allowContract, false); + } + } + result = false; + } + } + return result; + } + + public virtual string GetSchema(Type type) + { + throw new NotSupportedException(); + } + + internal virtual Type GetType(string fullName, Assembly context) + { + return TypeModel.ResolveKnownType(fullName, this, context); + } + + [MethodImpl(MethodImplOptions.NoInlining)] + internal static Type ResolveKnownType(string name, TypeModel model, Assembly assembly) + { + bool flag = Helpers.IsNullOrEmpty(name); + Type result; + if (flag) + { + result = null; + } + else + { + try + { + Type type = Type.GetType(name); + bool flag2 = type != null; + if (flag2) + { + return type; + } + } + catch + { + } + try + { + int num = name.IndexOf(','); + string name2 = ((num > 0) ? name.Substring(0, num) : name).Trim(); + bool flag3 = assembly == null; + if (flag3) + { + assembly = Assembly.GetCallingAssembly(); + } + Type type2 = (assembly == null) ? null : assembly.GetType(name2); + bool flag4 = type2 != null; + if (flag4) + { + return type2; + } + } + catch + { + } + result = null; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs.meta new file mode 100644 index 00000000..71fa0af1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/TypeModel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbb3d0ca7c570e0439827efde10650ea +timeCreated: 1611404654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/ValueMember.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/ValueMember.cs new file mode 100644 index 00000000..ec50b41a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/ValueMember.cs @@ -0,0 +1,808 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Globalization; +using System.Reflection; +using ProtoBuf.Serializers; + +namespace ProtoBuf.Meta +{ + public class ValueMember + { + public int FieldNumber + { + get + { + return this.fieldNumber; + } + } + + public MemberInfo Member + { + get + { + return this.member; + } + } + + public Type ItemType + { + get + { + return this.itemType; + } + } + + public Type MemberType + { + get + { + return this.memberType; + } + } + + public Type DefaultType + { + get + { + return this.defaultType; + } + } + + public Type ParentType + { + get + { + return this.parentType; + } + } + + public object DefaultValue + { + get + { + return this.defaultValue; + } + set + { + this.ThrowIfFrozen(); + this.defaultValue = value; + } + } + + internal IProtoSerializer Serializer + { + get + { + bool flag = this.serializer == null; + if (flag) + { + this.serializer = this.BuildSerializer(); + } + return this.serializer; + } + } + + public DataFormat DataFormat + { + get + { + return this.dataFormat; + } + set + { + this.ThrowIfFrozen(); + this.dataFormat = value; + } + } + + public bool IsStrict + { + get + { + return this.HasFlag(1); + } + set + { + this.SetFlag(1, value, true); + } + } + + public bool IsPacked + { + get + { + return this.HasFlag(2); + } + set + { + this.SetFlag(2, value, true); + } + } + + public bool OverwriteList + { + get + { + return this.HasFlag(8); + } + set + { + this.SetFlag(8, value, true); + } + } + + public bool IsRequired + { + get + { + return this.HasFlag(4); + } + set + { + this.SetFlag(4, value, true); + } + } + + public bool AsReference + { + get + { + return this.asReference; + } + set + { + this.ThrowIfFrozen(); + this.asReference = value; + } + } + + public bool DynamicType + { + get + { + return this.dynamicType; + } + set + { + this.ThrowIfFrozen(); + this.dynamicType = value; + } + } + + public string Name + { + get + { + return Helpers.IsNullOrEmpty(this.name) ? this.member.Name : this.name; + } + } + + public bool SupportNull + { + get + { + return this.HasFlag(16); + } + set + { + this.SetFlag(16, value, true); + } + } + + private readonly int fieldNumber; + + private readonly MemberInfo member; + + private readonly Type parentType; + + private readonly Type itemType; + + private readonly Type defaultType; + + private readonly Type memberType; + + private object defaultValue; + + private readonly RuntimeTypeModel model; + + private IProtoSerializer serializer; + + private DataFormat dataFormat; + + private bool asReference; + + private bool dynamicType; + + private MethodInfo getSpecified; + + private MethodInfo setSpecified; + + private string name; + + private const byte OPTIONS_IsStrict = 1; + + private const byte OPTIONS_IsPacked = 2; + + private const byte OPTIONS_IsRequired = 4; + + private const byte OPTIONS_OverwriteList = 8; + + private const byte OPTIONS_SupportNull = 16; + + private byte flags; + + internal sealed class Comparer : IComparer, IComparer + { + public static readonly ValueMember.Comparer Default = new ValueMember.Comparer(); + + public int Compare(object x, object y) + { + return this.Compare(x as ValueMember, y as ValueMember); + } + + public int Compare(ValueMember x, ValueMember y) + { + bool flag = x == y; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = x == null; + if (flag2) + { + result = -1; + } + else + { + bool flag3 = y == null; + if (flag3) + { + result = 1; + } + else + { + result = x.FieldNumber.CompareTo(y.FieldNumber); + } + } + } + return result; + } + } + + public ValueMember(RuntimeTypeModel model, Type parentType, int fieldNumber, MemberInfo member, Type memberType, Type itemType, Type defaultType, DataFormat dataFormat, object defaultValue) : this(model, fieldNumber, memberType, itemType, defaultType, dataFormat) + { + bool flag = member == null; + if (flag) + { + throw new ArgumentNullException("member"); + } + bool flag2 = parentType == null; + if (flag2) + { + throw new ArgumentNullException("parentType"); + } + bool flag3 = fieldNumber < 1 && !Helpers.IsEnum(parentType); + if (flag3) + { + throw new ArgumentOutOfRangeException("fieldNumber"); + } + this.member = member; + this.parentType = parentType; + bool flag4 = fieldNumber < 1 && !Helpers.IsEnum(parentType); + if (flag4) + { + throw new ArgumentOutOfRangeException("fieldNumber"); + } + bool flag5 = defaultValue != null && model.MapType(defaultValue.GetType()) != memberType; + if (flag5) + { + defaultValue = ValueMember.ParseDefaultValue(memberType, defaultValue); + } + this.defaultValue = defaultValue; + MetaType metaType = model.FindWithoutAdd(memberType); + bool flag6 = metaType != null; + if (flag6) + { + this.asReference = metaType.AsReferenceDefault; + } + else + { + this.asReference = MetaType.GetAsReferenceDefault(model, memberType); + } + } + + internal ValueMember(RuntimeTypeModel model, int fieldNumber, Type memberType, Type itemType, Type defaultType, DataFormat dataFormat) + { + bool flag = memberType == null; + if (flag) + { + throw new ArgumentNullException("memberType"); + } + bool flag2 = model == null; + if (flag2) + { + throw new ArgumentNullException("model"); + } + this.fieldNumber = fieldNumber; + this.memberType = memberType; + this.itemType = itemType; + this.defaultType = defaultType; + this.model = model; + this.dataFormat = dataFormat; + } + + internal object GetRawEnumValue() + { + return ((FieldInfo)this.member).GetRawConstantValue(); + } + + private static object ParseDefaultValue(Type type, object value) + { + Type underlyingType = Helpers.GetUnderlyingType(type); + bool flag = underlyingType != null; + if (flag) + { + type = underlyingType; + } + bool flag2 = value is string; + if (flag2) + { + string text = (string)value; + bool flag3 = Helpers.IsEnum(type); + if (flag3) + { + return Helpers.ParseEnum(type, text); + } + ProtoTypeCode typeCode = Helpers.GetTypeCode(type); + switch (typeCode) + { + case ProtoTypeCode.Boolean: + return bool.Parse(text); + case ProtoTypeCode.Char: + { + bool flag4 = text.Length == 1; + if (flag4) + { + return text[0]; + } + throw new FormatException("Single character expected: \"" + text + "\""); + } + case ProtoTypeCode.SByte: + return sbyte.Parse(text, NumberStyles.Integer, CultureInfo.InvariantCulture); + case ProtoTypeCode.Byte: + return byte.Parse(text, NumberStyles.Integer, CultureInfo.InvariantCulture); + case ProtoTypeCode.Int16: + return short.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.UInt16: + return ushort.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.Int32: + return int.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.UInt32: + return uint.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.Int64: + return long.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.UInt64: + return ulong.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.Single: + return float.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.Double: + return double.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.Decimal: + return decimal.Parse(text, NumberStyles.Any, CultureInfo.InvariantCulture); + case ProtoTypeCode.DateTime: + return DateTime.Parse(text, CultureInfo.InvariantCulture); + case (ProtoTypeCode)17: + break; + case ProtoTypeCode.String: + return text; + default: + switch (typeCode) + { + case ProtoTypeCode.TimeSpan: + return TimeSpan.Parse(text); + case ProtoTypeCode.Guid: + return new Guid(text); + case ProtoTypeCode.Uri: + return text; + } + break; + } + } + bool flag5 = Helpers.IsEnum(type); + object result; + if (flag5) + { + result = Enum.ToObject(type, value); + } + else + { + result = Convert.ChangeType(value, type, CultureInfo.InvariantCulture); + } + return result; + } + + public void SetSpecified(MethodInfo getSpecified, MethodInfo setSpecified) + { + bool flag = getSpecified != null; + if (flag) + { + bool flag2 = getSpecified.ReturnType != this.model.MapType(typeof(bool)) || getSpecified.IsStatic || getSpecified.GetParameters().Length != 0; + if (flag2) + { + throw new ArgumentException("Invalid pattern for checking member-specified", "getSpecified"); + } + } + bool flag3 = setSpecified != null; + if (flag3) + { + ParameterInfo[] parameters; + bool flag4 = setSpecified.ReturnType != this.model.MapType(typeof(void)) || setSpecified.IsStatic || (parameters = setSpecified.GetParameters()).Length != 1 || parameters[0].ParameterType != this.model.MapType(typeof(bool)); + if (flag4) + { + throw new ArgumentException("Invalid pattern for setting member-specified", "setSpecified"); + } + } + this.ThrowIfFrozen(); + this.getSpecified = getSpecified; + this.setSpecified = setSpecified; + } + + private void ThrowIfFrozen() + { + bool flag = this.serializer != null; + if (flag) + { + throw new InvalidOperationException("The type cannot be changed once a serializer has been generated"); + } + } + + private IProtoSerializer BuildSerializer() + { + int opaqueToken = 0; + IProtoSerializer result; + try + { + this.model.TakeLock(ref opaqueToken); + Type type = (this.itemType == null) ? this.memberType : this.itemType; + WireType wireType; + IProtoSerializer protoSerializer = ValueMember.TryGetCoreSerializer(this.model, this.dataFormat, type, out wireType, this.asReference, this.dynamicType, this.OverwriteList, true); + bool flag = protoSerializer == null; + if (flag) + { + throw new InvalidOperationException("No serializer defined for type: " + type.FullName); + } + bool flag2 = this.itemType != null && this.SupportNull; + if (flag2) + { + bool isPacked = this.IsPacked; + if (isPacked) + { + throw new NotSupportedException("Packed encodings cannot support null values"); + } + protoSerializer = new TagDecorator(1, wireType, this.IsStrict, protoSerializer); + protoSerializer = new NullDecorator(this.model, protoSerializer); + protoSerializer = new TagDecorator(this.fieldNumber, WireType.StartGroup, false, protoSerializer); + } + else + { + protoSerializer = new TagDecorator(this.fieldNumber, wireType, this.IsStrict, protoSerializer); + } + bool flag3 = this.itemType != null; + if (flag3) + { + Type type2 = this.SupportNull ? this.itemType : (Helpers.GetUnderlyingType(this.itemType) ?? this.itemType); + Helpers.DebugAssert(type2 == protoSerializer.ExpectedType, "Wrong type in the tail; expected {0}, received {1}", new object[] + { + protoSerializer.ExpectedType, + type2 + }); + bool isArray = this.memberType.IsArray; + if (isArray) + { + protoSerializer = new ArrayDecorator(this.model, protoSerializer, this.fieldNumber, this.IsPacked, wireType, this.memberType, this.OverwriteList, this.SupportNull); + } + else + { + protoSerializer = ListDecorator.Create(this.model, this.memberType, this.defaultType, protoSerializer, this.fieldNumber, this.IsPacked, wireType, this.member != null && PropertyDecorator.CanWrite(this.model, this.member), this.OverwriteList, this.SupportNull); + } + } + else + { + bool flag4 = this.defaultValue != null && !this.IsRequired && this.getSpecified == null; + if (flag4) + { + protoSerializer = new DefaultValueDecorator(this.model, this.defaultValue, protoSerializer); + } + } + bool flag5 = this.memberType == this.model.MapType(typeof(Uri)); + if (flag5) + { + protoSerializer = new UriDecorator(this.model, protoSerializer); + } + bool flag6 = this.member != null; + if (flag6) + { + PropertyInfo propertyInfo = this.member as PropertyInfo; + bool flag7 = propertyInfo != null; + if (flag7) + { + protoSerializer = new PropertyDecorator(this.model, this.parentType, (PropertyInfo)this.member, protoSerializer); + } + else + { + FieldInfo fieldInfo = this.member as FieldInfo; + bool flag8 = fieldInfo != null; + if (!flag8) + { + throw new InvalidOperationException(); + } + protoSerializer = new FieldDecorator(this.parentType, (FieldInfo)this.member, protoSerializer); + } + bool flag9 = this.getSpecified != null || this.setSpecified != null; + if (flag9) + { + protoSerializer = new MemberSpecifiedDecorator(this.getSpecified, this.setSpecified, protoSerializer); + } + } + result = protoSerializer; + } + finally + { + this.model.ReleaseLock(opaqueToken); + } + return result; + } + + private static WireType GetIntWireType(DataFormat format, int width) + { + WireType result; + switch (format) + { + case DataFormat.Default: + case DataFormat.TwosComplement: + result = WireType.Variant; + break; + case DataFormat.ZigZag: + result = WireType.SignedVariant; + break; + case DataFormat.FixedSize: + result = ((width == 32) ? WireType.Fixed32 : WireType.Fixed64); + break; + default: + throw new InvalidOperationException(); + } + return result; + } + + private static WireType GetDateTimeWireType(DataFormat format) + { + switch (format) + { + case DataFormat.Default: + return WireType.String; + case DataFormat.FixedSize: + return WireType.Fixed64; + case DataFormat.Group: + return WireType.StartGroup; + } + throw new InvalidOperationException(); + } + + internal static IProtoSerializer TryGetCoreSerializer(RuntimeTypeModel model, DataFormat dataFormat, Type type, out WireType defaultWireType, bool asReference, bool dynamicType, bool overwriteList, bool allowComplexTypes) + { + Type underlyingType = Helpers.GetUnderlyingType(type); + bool flag = underlyingType != null; + if (flag) + { + type = underlyingType; + } + bool flag2 = Helpers.IsEnum(type); + IProtoSerializer result; + if (flag2) + { + bool flag3 = allowComplexTypes && model != null; + if (flag3) + { + defaultWireType = WireType.Variant; + result = new EnumSerializer(type, model.GetEnumMap(type)); + } + else + { + defaultWireType = WireType.None; + result = null; + } + } + else + { + ProtoTypeCode typeCode = Helpers.GetTypeCode(type); + ProtoTypeCode protoTypeCode = typeCode; + switch (protoTypeCode) + { + case ProtoTypeCode.Boolean: + defaultWireType = WireType.Variant; + return new BooleanSerializer(model); + case ProtoTypeCode.Char: + defaultWireType = WireType.Variant; + return new CharSerializer(model); + case ProtoTypeCode.SByte: + defaultWireType = ValueMember.GetIntWireType(dataFormat, 32); + return new SByteSerializer(model); + case ProtoTypeCode.Byte: + defaultWireType = ValueMember.GetIntWireType(dataFormat, 32); + return new ByteSerializer(model); + case ProtoTypeCode.Int16: + defaultWireType = ValueMember.GetIntWireType(dataFormat, 32); + return new Int16Serializer(model); + case ProtoTypeCode.UInt16: + defaultWireType = ValueMember.GetIntWireType(dataFormat, 32); + return new UInt16Serializer(model); + case ProtoTypeCode.Int32: + defaultWireType = ValueMember.GetIntWireType(dataFormat, 32); + return new Int32Serializer(model); + case ProtoTypeCode.UInt32: + defaultWireType = ValueMember.GetIntWireType(dataFormat, 32); + return new UInt32Serializer(model); + case ProtoTypeCode.Int64: + defaultWireType = ValueMember.GetIntWireType(dataFormat, 64); + return new Int64Serializer(model); + case ProtoTypeCode.UInt64: + defaultWireType = ValueMember.GetIntWireType(dataFormat, 64); + return new UInt64Serializer(model); + case ProtoTypeCode.Single: + defaultWireType = WireType.Fixed32; + return new SingleSerializer(model); + case ProtoTypeCode.Double: + defaultWireType = WireType.Fixed64; + return new DoubleSerializer(model); + case ProtoTypeCode.Decimal: + defaultWireType = WireType.String; + return new DecimalSerializer(model); + case ProtoTypeCode.DateTime: + defaultWireType = ValueMember.GetDateTimeWireType(dataFormat); + return new DateTimeSerializer(model); + case (ProtoTypeCode)17: + break; + case ProtoTypeCode.String: + defaultWireType = WireType.String; + if (asReference) + { + return new NetObjectSerializer(model, model.MapType(typeof(string)), 0, BclHelpers.NetObjectOptions.AsReference); + } + return new StringSerializer(model); + default: + switch (protoTypeCode) + { + case ProtoTypeCode.TimeSpan: + defaultWireType = ValueMember.GetDateTimeWireType(dataFormat); + return new TimeSpanSerializer(model); + case ProtoTypeCode.ByteArray: + defaultWireType = WireType.String; + return new BlobSerializer(model, overwriteList); + case ProtoTypeCode.Guid: + defaultWireType = WireType.String; + return new GuidSerializer(model); + case ProtoTypeCode.Uri: + defaultWireType = WireType.String; + return new StringSerializer(model); + case ProtoTypeCode.Type: + defaultWireType = WireType.String; + return new SystemTypeSerializer(model); + } + break; + } + IProtoSerializer protoSerializer = model.AllowParseableTypes ? ParseableSerializer.TryCreate(type, model) : null; + bool flag4 = protoSerializer != null; + if (flag4) + { + defaultWireType = WireType.String; + result = protoSerializer; + } + else + { + bool flag5 = allowComplexTypes && model != null; + if (flag5) + { + int key = model.GetKey(type, false, true); + bool flag6 = asReference || dynamicType; + if (flag6) + { + defaultWireType = ((dataFormat == DataFormat.Group) ? WireType.StartGroup : WireType.String); + BclHelpers.NetObjectOptions netObjectOptions = BclHelpers.NetObjectOptions.None; + if (asReference) + { + netObjectOptions |= BclHelpers.NetObjectOptions.AsReference; + } + if (dynamicType) + { + netObjectOptions |= BclHelpers.NetObjectOptions.DynamicType; + } + bool flag7 = key >= 0; + if (flag7) + { + bool flag8 = asReference && Helpers.IsValueType(type); + if (flag8) + { + string text = "AsReference cannot be used with value-types"; + bool flag9 = type.Name == "KeyValuePair`2"; + if (flag9) + { + text += "; please see http://stackoverflow.com/q/14436606/"; + } + else + { + text = text + ": " + type.FullName; + } + throw new InvalidOperationException(text); + } + MetaType metaType = model[type]; + bool flag10 = asReference && metaType.IsAutoTuple; + if (flag10) + { + netObjectOptions |= BclHelpers.NetObjectOptions.LateSet; + } + bool useConstructor = metaType.UseConstructor; + if (useConstructor) + { + netObjectOptions |= BclHelpers.NetObjectOptions.UseConstructor; + } + } + return new NetObjectSerializer(model, type, key, netObjectOptions); + } + bool flag11 = key >= 0; + if (flag11) + { + defaultWireType = ((dataFormat == DataFormat.Group) ? WireType.StartGroup : WireType.String); + return new SubItemSerializer(type, key, model[type], true); + } + } + defaultWireType = WireType.None; + result = null; + } + } + return result; + } + + internal void SetName(string name) + { + this.ThrowIfFrozen(); + this.name = name; + } + + private bool HasFlag(byte flag) + { + return (this.flags & flag) == flag; + } + + private void SetFlag(byte flag, bool value, bool throwIfFrozen) + { + bool flag2 = throwIfFrozen && this.HasFlag(flag) != value; + if (flag2) + { + this.ThrowIfFrozen(); + } + if (value) + { + this.flags |= flag; + } + else + { + this.flags &= (byte) ~flag; + } + } + + internal string GetSchemaTypeName(bool applyNetObjectProxy, ref bool requiresBclImport) + { + Type type = this.ItemType; + bool flag = type == null; + if (flag) + { + type = this.MemberType; + } + return this.model.GetSchemaTypeName(type, this.DataFormat, applyNetObjectProxy && this.asReference, applyNetObjectProxy && this.dynamicType, ref requiresBclImport); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/ValueMember.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/ValueMember.cs.meta new file mode 100644 index 00000000..a92dffc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Meta/ValueMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20dcdd655bb536f4198cd99e27b58ded +timeCreated: 1611403409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/NetObjectCache.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/NetObjectCache.cs new file mode 100644 index 00000000..be43372e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/NetObjectCache.cs @@ -0,0 +1,256 @@ +using System; +using System.Collections.Generic; +using System.Runtime.CompilerServices; +using ProtoBuf.Meta; + +namespace ProtoBuf +{ + internal sealed class NetObjectCache + { + private MutableList List + { + get + { + bool flag = this.underlyingList == null; + if (flag) + { + this.underlyingList = new MutableList(); + } + return this.underlyingList; + } + } + + internal const int Root = 0; + + private MutableList underlyingList; + + private object rootObject; + + private int trapStartIndex; + + private Dictionary stringKeys; + + private Dictionary objectKeys; + + private sealed class ReferenceComparer : IEqualityComparer + { + public static readonly NetObjectCache.ReferenceComparer Default = new NetObjectCache.ReferenceComparer(); + + private ReferenceComparer() + { + } + + bool IEqualityComparer.Equals(object x, object y) + { + return x == y; + } + + int IEqualityComparer.GetHashCode(object obj) + { + return RuntimeHelpers.GetHashCode(obj); + } + } + + internal object GetKeyedObject(int key) + { + bool flag = key-- == 0; + object result; + if (flag) + { + bool flag2 = this.rootObject == null; + if (flag2) + { + throw new ProtoException("No root object assigned"); + } + result = this.rootObject; + } + else + { + BasicList list = this.List; + bool flag3 = key < 0 || key >= list.Count; + if (flag3) + { + Helpers.DebugWriteLine("Missing key: " + key); + throw new ProtoException("Internal error; a missing key occurred"); + } + object obj = list[key]; + bool flag4 = obj == null; + if (flag4) + { + throw new ProtoException("A deferred key does not have a value yet"); + } + result = obj; + } + return result; + } + + internal void SetKeyedObject(int key, object value) + { + bool flag = key-- == 0; + if (flag) + { + bool flag2 = value == null; + if (flag2) + { + throw new ArgumentNullException("value"); + } + bool flag3 = this.rootObject != null && this.rootObject != value; + if (flag3) + { + throw new ProtoException("The root object cannot be reassigned"); + } + this.rootObject = value; + } + else + { + MutableList list = this.List; + bool flag4 = key < list.Count; + if (flag4) + { + object obj = list[key]; + bool flag5 = obj == null; + if (flag5) + { + list[key] = value; + } + else + { + bool flag6 = obj != value; + if (flag6) + { + throw new ProtoException("Reference-tracked objects cannot change reference"); + } + } + } + else + { + bool flag7 = key != list.Add(value); + if (flag7) + { + throw new ProtoException("Internal error; a key mismatch occurred"); + } + } + } + } + + internal int AddObjectKey(object value, out bool existing) + { + bool flag = value == null; + if (flag) + { + throw new ArgumentNullException("value"); + } + bool flag2 = value == this.rootObject; + int result; + if (flag2) + { + existing = true; + result = 0; + } + else + { + string text = value as string; + BasicList list = this.List; + bool flag3 = text == null; + int num; + if (flag3) + { + bool flag4 = this.objectKeys == null; + if (flag4) + { + this.objectKeys = new Dictionary(NetObjectCache.ReferenceComparer.Default); + num = -1; + } + else + { + bool flag5 = !this.objectKeys.TryGetValue(value, out num); + if (flag5) + { + num = -1; + } + } + } + else + { + bool flag6 = this.stringKeys == null; + if (flag6) + { + this.stringKeys = new Dictionary(); + num = -1; + } + else + { + bool flag7 = !this.stringKeys.TryGetValue(text, out num); + if (flag7) + { + num = -1; + } + } + } + bool flag8 = !(existing = (num >= 0)); + if (flag8) + { + num = list.Add(value); + bool flag9 = text == null; + if (flag9) + { + this.objectKeys.Add(value, num); + } + else + { + this.stringKeys.Add(text, num); + } + } + result = num + 1; + } + return result; + } + + internal void RegisterTrappedObject(object value) + { + bool flag = this.rootObject == null; + if (flag) + { + this.rootObject = value; + } + else + { + bool flag2 = this.underlyingList != null; + if (flag2) + { + for (int i = this.trapStartIndex; i < this.underlyingList.Count; i++) + { + this.trapStartIndex = i + 1; + bool flag3 = this.underlyingList[i] == null; + if (flag3) + { + this.underlyingList[i] = value; + break; + } + } + } + } + } + + internal void Clear() + { + this.trapStartIndex = 0; + this.rootObject = null; + bool flag = this.underlyingList != null; + if (flag) + { + this.underlyingList.Clear(); + } + bool flag2 = this.stringKeys != null; + if (flag2) + { + this.stringKeys.Clear(); + } + bool flag3 = this.objectKeys != null; + if (flag3) + { + this.objectKeys.Clear(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/NetObjectCache.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/NetObjectCache.cs.meta new file mode 100644 index 00000000..64065f90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/NetObjectCache.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 951673a14fe33ba4cb5b5de3a81e0426 +timeCreated: 1611404179 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/PrefixStyle.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/PrefixStyle.cs new file mode 100644 index 00000000..d00f4b2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/PrefixStyle.cs @@ -0,0 +1,12 @@ +using System; + +namespace ProtoBuf +{ + public enum PrefixStyle + { + None, + Base128, + Fixed32, + Fixed32BigEndian + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/PrefixStyle.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/PrefixStyle.cs.meta new file mode 100644 index 00000000..d6e07821 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/PrefixStyle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e73cfd14287fd634bae8eb6beeffd66d +timeCreated: 1611404748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterDeserializationAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterDeserializationAttribute.cs new file mode 100644 index 00000000..7e79ce17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterDeserializationAttribute.cs @@ -0,0 +1,11 @@ +using System; +using System.ComponentModel; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [ImmutableObject(true)] + public sealed class ProtoAfterDeserializationAttribute : Attribute + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterDeserializationAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterDeserializationAttribute.cs.meta new file mode 100644 index 00000000..81dc1255 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterDeserializationAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85a2871705ad3b84d913daf4c28cf09c +timeCreated: 1611404052 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterSerializationAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterSerializationAttribute.cs new file mode 100644 index 00000000..f6860f7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterSerializationAttribute.cs @@ -0,0 +1,11 @@ +using System; +using System.ComponentModel; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [ImmutableObject(true)] + public sealed class ProtoAfterSerializationAttribute : Attribute + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterSerializationAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterSerializationAttribute.cs.meta new file mode 100644 index 00000000..b98aacce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoAfterSerializationAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c03da7f9ab4fe8047ac8833075c9a435 +timeCreated: 1611404485 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeDeserializationAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeDeserializationAttribute.cs new file mode 100644 index 00000000..4b1e2da0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeDeserializationAttribute.cs @@ -0,0 +1,11 @@ +using System; +using System.ComponentModel; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [ImmutableObject(true)] + public sealed class ProtoBeforeDeserializationAttribute : Attribute + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeDeserializationAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeDeserializationAttribute.cs.meta new file mode 100644 index 00000000..562df8c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeDeserializationAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4642fc0650246b8429aeeee38c911289 +timeCreated: 1611403649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeSerializationAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeSerializationAttribute.cs new file mode 100644 index 00000000..eeb623d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeSerializationAttribute.cs @@ -0,0 +1,11 @@ +using System; +using System.ComponentModel; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)] + [ImmutableObject(true)] + public sealed class ProtoBeforeSerializationAttribute : Attribute + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeSerializationAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeSerializationAttribute.cs.meta new file mode 100644 index 00000000..8009606d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoBeforeSerializationAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecc2edf1ed394eb459ad04d80963ff0c +timeCreated: 1611404789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoContractAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoContractAttribute.cs new file mode 100644 index 00000000..ee0e6152 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoContractAttribute.cs @@ -0,0 +1,194 @@ +using System; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] + public sealed class ProtoContractAttribute : Attribute + { + public string Name + { + get + { + return this.name; + } + set + { + this.name = value; + } + } + + public int ImplicitFirstTag + { + get + { + return this.implicitFirstTag; + } + set + { + bool flag = value < 1; + if (flag) + { + throw new ArgumentOutOfRangeException("ImplicitFirstTag"); + } + this.implicitFirstTag = value; + } + } + + public bool UseProtoMembersOnly + { + get + { + return this.HasFlag(4); + } + set + { + this.SetFlag(4, value); + } + } + + public bool IgnoreListHandling + { + get + { + return this.HasFlag(16); + } + set + { + this.SetFlag(16, value); + } + } + + public ImplicitFields ImplicitFields + { + get + { + return this.implicitFields; + } + set + { + this.implicitFields = value; + } + } + + public bool InferTagFromName + { + get + { + return this.HasFlag(1); + } + set + { + this.SetFlag(1, value); + this.SetFlag(2, true); + } + } + + internal bool InferTagFromNameHasValue + { + get + { + return this.HasFlag(2); + } + } + + public int DataMemberOffset + { + get + { + return this.dataMemberOffset; + } + set + { + this.dataMemberOffset = value; + } + } + + public bool SkipConstructor + { + get + { + return this.HasFlag(8); + } + set + { + this.SetFlag(8, value); + } + } + + public bool AsReferenceDefault + { + get + { + return this.HasFlag(32); + } + set + { + this.SetFlag(32, value); + } + } + + public bool EnumPassthru + { + get + { + return this.HasFlag(64); + } + set + { + this.SetFlag(64, value); + this.SetFlag(128, true); + } + } + + internal bool EnumPassthruHasValue + { + get + { + return this.HasFlag(128); + } + } + + private string name; + + private int implicitFirstTag; + + private ImplicitFields implicitFields; + + private int dataMemberOffset; + + private byte flags; + + private const byte OPTIONS_InferTagFromName = 1; + + private const byte OPTIONS_InferTagFromNameHasValue = 2; + + private const byte OPTIONS_UseProtoMembersOnly = 4; + + private const byte OPTIONS_SkipConstructor = 8; + + private const byte OPTIONS_IgnoreListHandling = 16; + + private const byte OPTIONS_AsReferenceDefault = 32; + + private const byte OPTIONS_EnumPassthru = 64; + + private const byte OPTIONS_EnumPassthruHasValue = 128; + + private bool HasFlag(byte flag) + { + return (this.flags & flag) == flag; + } + + private void SetFlag(byte flag, bool value) + { + if (value) + { + this.flags |= flag; + } + else + { + this.flags &= (byte)~flag; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoContractAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoContractAttribute.cs.meta new file mode 100644 index 00000000..bdd12f5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoContractAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 757e2bbf79dd9494181d2d7761cb30be +timeCreated: 1611403947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoConverterAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoConverterAttribute.cs new file mode 100644 index 00000000..2aea27a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoConverterAttribute.cs @@ -0,0 +1,9 @@ +using System; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)] + public class ProtoConverterAttribute : Attribute + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoConverterAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoConverterAttribute.cs.meta new file mode 100644 index 00000000..f57b8fc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoConverterAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63944827ef6f6e74b917e6c102af5910 +timeCreated: 1611403845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoEnumAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoEnumAttribute.cs new file mode 100644 index 00000000..926a33c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoEnumAttribute.cs @@ -0,0 +1,44 @@ +using System; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Field, AllowMultiple = false)] + public sealed class ProtoEnumAttribute : Attribute + { + public int Value + { + get + { + return this.enumValue; + } + set + { + this.enumValue = value; + this.hasValue = true; + } + } + + public string Name + { + get + { + return this.name; + } + set + { + this.name = value; + } + } + + private bool hasValue; + + private int enumValue; + + private string name; + + public bool HasValue() + { + return this.hasValue; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoEnumAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoEnumAttribute.cs.meta new file mode 100644 index 00000000..b087db5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoEnumAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2bb65995e007f6742878be5afc628d7b +timeCreated: 1611403500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoException.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoException.cs new file mode 100644 index 00000000..975e48e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoException.cs @@ -0,0 +1,19 @@ +using System; + +namespace ProtoBuf +{ + public class ProtoException : Exception + { + public ProtoException() + { + } + + public ProtoException(string message) : base(message) + { + } + + public ProtoException(string message, Exception innerException) : base(message, innerException) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoException.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoException.cs.meta new file mode 100644 index 00000000..4c5e796b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoException.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a17e3b9814e9d2a4681a8464052a82b8 +timeCreated: 1611404253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs new file mode 100644 index 00000000..bc3f0c50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs @@ -0,0 +1,9 @@ +using System; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] + public class ProtoIgnoreAttribute : Attribute + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs.meta new file mode 100644 index 00000000..a68a8299 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIgnoreAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2db07068e8e9a9d48948e00e0b551fe9 +timeCreated: 1611403507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIncludeAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIncludeAttribute.cs new file mode 100644 index 00000000..020fb23c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIncludeAttribute.cs @@ -0,0 +1,73 @@ +using System; +using System.ComponentModel; +using ProtoBuf.Meta; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = false)] + public sealed class ProtoIncludeAttribute : Attribute + { + public int Tag + { + get + { + return this.tag; + } + } + + public string KnownTypeName + { + get + { + return this.knownTypeName; + } + } + + public Type KnownType + { + get + { + return TypeModel.ResolveKnownType(this.KnownTypeName, null, null); + } + } + + [DefaultValue(DataFormat.Default)] + public DataFormat DataFormat + { + get + { + return this.dataFormat; + } + set + { + this.dataFormat = value; + } + } + + private readonly int tag; + + private readonly string knownTypeName; + + private DataFormat dataFormat = DataFormat.Default; + + public ProtoIncludeAttribute(int tag, Type knownType) : this(tag, (knownType == null) ? "" : knownType.AssemblyQualifiedName) + { + } + + public ProtoIncludeAttribute(int tag, string knownTypeName) + { + bool flag = tag <= 0; + if (flag) + { + throw new ArgumentOutOfRangeException("tag", "Tags must be positive integers"); + } + bool flag2 = Helpers.IsNullOrEmpty(knownTypeName); + if (flag2) + { + throw new ArgumentNullException("knownTypeName", "Known type cannot be blank"); + } + this.tag = tag; + this.knownTypeName = knownTypeName; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIncludeAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIncludeAttribute.cs.meta new file mode 100644 index 00000000..1ea6b8c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoIncludeAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f49c8ded347e5aa4d9490ab48c4ad8f8 +timeCreated: 1611404855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoMemberAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoMemberAttribute.cs new file mode 100644 index 00000000..608b696e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoMemberAttribute.cs @@ -0,0 +1,233 @@ +using System; +using System.Reflection; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false, Inherited = true)] + public class ProtoMemberAttribute : Attribute, IComparable, IComparable + { + public string Name + { + get + { + return this.name; + } + set + { + this.name = value; + } + } + + public DataFormat DataFormat + { + get + { + return this.dataFormat; + } + set + { + this.dataFormat = value; + } + } + + public int Tag + { + get + { + return this.tag; + } + } + + public bool IsRequired + { + get + { + return (this.options & MemberSerializationOptions.Required) == MemberSerializationOptions.Required; + } + set + { + if (value) + { + this.options |= MemberSerializationOptions.Required; + } + else + { + this.options &= ~MemberSerializationOptions.Required; + } + } + } + + public bool IsPacked + { + get + { + return (this.options & MemberSerializationOptions.Packed) == MemberSerializationOptions.Packed; + } + set + { + if (value) + { + this.options |= MemberSerializationOptions.Packed; + } + else + { + this.options &= ~MemberSerializationOptions.Packed; + } + } + } + + public bool OverwriteList + { + get + { + return (this.options & MemberSerializationOptions.OverwriteList) == MemberSerializationOptions.OverwriteList; + } + set + { + if (value) + { + this.options |= MemberSerializationOptions.OverwriteList; + } + else + { + this.options &= ~MemberSerializationOptions.OverwriteList; + } + } + } + + public bool AsReference + { + get + { + return (this.options & MemberSerializationOptions.AsReference) == MemberSerializationOptions.AsReference; + } + set + { + if (value) + { + this.options |= MemberSerializationOptions.AsReference; + } + else + { + this.options &= ~MemberSerializationOptions.AsReference; + } + this.options |= MemberSerializationOptions.AsReferenceHasValue; + } + } + + internal bool AsReferenceHasValue + { + get + { + return (this.options & MemberSerializationOptions.AsReferenceHasValue) == MemberSerializationOptions.AsReferenceHasValue; + } + set + { + if (value) + { + this.options |= MemberSerializationOptions.AsReferenceHasValue; + } + else + { + this.options &= ~MemberSerializationOptions.AsReferenceHasValue; + } + } + } + + public bool DynamicType + { + get + { + return (this.options & MemberSerializationOptions.DynamicType) == MemberSerializationOptions.DynamicType; + } + set + { + if (value) + { + this.options |= MemberSerializationOptions.DynamicType; + } + else + { + this.options &= ~MemberSerializationOptions.DynamicType; + } + } + } + + public MemberSerializationOptions Options + { + get + { + return this.options; + } + set + { + this.options = value; + } + } + + internal MemberInfo Member; + + internal bool TagIsPinned; + + private string name; + + private DataFormat dataFormat; + + private int tag; + + private MemberSerializationOptions options; + + public int CompareTo(object other) + { + return this.CompareTo(other as ProtoMemberAttribute); + } + + public int CompareTo(ProtoMemberAttribute other) + { + bool flag = other == null; + int result; + if (flag) + { + result = -1; + } + else + { + bool flag2 = this == other; + if (flag2) + { + result = 0; + } + else + { + int num = this.tag.CompareTo(other.tag); + bool flag3 = num == 0; + if (flag3) + { + num = string.CompareOrdinal(this.name, other.name); + } + result = num; + } + } + return result; + } + + public ProtoMemberAttribute(int tag) : this(tag, false) + { + } + + internal ProtoMemberAttribute(int tag, bool forced) + { + bool flag = tag <= 0 && !forced; + if (flag) + { + throw new ArgumentOutOfRangeException("tag"); + } + this.tag = tag; + } + + internal void Rebase(int tag) + { + this.tag = tag; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoMemberAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoMemberAttribute.cs.meta new file mode 100644 index 00000000..11aa41da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoMemberAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ce9640748d13be458e0f9ec67e676c9 +timeCreated: 1611403693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs new file mode 100644 index 00000000..86939880 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs @@ -0,0 +1,28 @@ +using System; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)] + public sealed class ProtoPartialIgnoreAttribute : ProtoIgnoreAttribute + { + public string MemberName + { + get + { + return this.memberName; + } + } + + private readonly string memberName; + + public ProtoPartialIgnoreAttribute(string memberName) + { + bool flag = Helpers.IsNullOrEmpty(memberName); + if (flag) + { + throw new ArgumentNullException("memberName"); + } + this.memberName = memberName; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs.meta new file mode 100644 index 00000000..e0c35110 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialIgnoreAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 038d279d0054d4a4c944c48a509e1a43 +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs new file mode 100644 index 00000000..5c352c16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs @@ -0,0 +1,28 @@ +using System; + +namespace ProtoBuf +{ + [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = false)] + public sealed class ProtoPartialMemberAttribute : ProtoMemberAttribute + { + public string MemberName + { + get + { + return this.memberName; + } + } + + private readonly string memberName; + + public ProtoPartialMemberAttribute(int tag, string memberName) : base(tag) + { + bool flag = Helpers.IsNullOrEmpty(memberName); + if (flag) + { + throw new ArgumentNullException("memberName"); + } + this.memberName = memberName; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs.meta new file mode 100644 index 00000000..418e5806 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoPartialMemberAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e83197626245624caf62b9555d960e9 +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoReader.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoReader.cs new file mode 100644 index 00000000..74daf36f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoReader.cs @@ -0,0 +1,1838 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; +using ProtoBuf.Meta; + +namespace ProtoBuf +{ + public sealed class ProtoReader : IDisposable + { + public int FieldNumber + { + get + { + return this.fieldNumber; + } + } + + public WireType WireType + { + get + { + return this.wireType; + } + } + + public bool InternStrings + { + get + { + return this.internStrings; + } + set + { + this.internStrings = value; + } + } + + public SerializationContext Context + { + get + { + return this.context; + } + } + + public int Position + { + get + { + return this.position; + } + } + + public TypeModel Model + { + get + { + return this.model; + } + } + + internal NetObjectCache NetCache + { + get + { + return this.netCache; + } + } + + private Stream source; + + private byte[] ioBuffer; + + private TypeModel model; + + private int fieldNumber; + + private int depth; + + private int dataRemaining; + + private int ioIndex; + + private int position; + + private int available; + + private int blockEnd; + + private WireType wireType; + + private bool isFixedLength; + + private bool internStrings; + + private NetObjectCache netCache; + + private uint trapCount; + + internal const int TO_EOF = -1; + + private SerializationContext context; + + private const long Int64Msb = -9223372036854775808L; + + private const int Int32Msb = -2147483648; + + private Dictionary stringInterner; + + private static readonly UTF8Encoding encoding = new UTF8Encoding(); + + private static readonly byte[] EmptyBlob = new byte[0]; + + [ThreadStatic] + private static ProtoReader lastReader; + + public ProtoReader(Stream source, TypeModel model, SerializationContext context) + { + ProtoReader.Init(this, source, model, context, -1); + } + + public ProtoReader(Stream source, TypeModel model, SerializationContext context, int length) + { + ProtoReader.Init(this, source, model, context, length); + } + + private static void Init(ProtoReader reader, Stream source, TypeModel model, SerializationContext context, int length) + { + bool flag = source == null; + if (flag) + { + throw new ArgumentNullException("source"); + } + bool flag2 = !source.CanRead; + if (flag2) + { + throw new ArgumentException("Cannot read from stream", "source"); + } + reader.source = source; + reader.ioBuffer = BufferPool.GetBuffer(); + reader.model = model; + bool flag3 = length >= 0; + reader.isFixedLength = flag3; + reader.dataRemaining = (flag3 ? length : 0); + bool flag4 = context == null; + if (flag4) + { + context = SerializationContext.Default; + } + else + { + context.Freeze(); + } + reader.context = context; + reader.position = (reader.available = (reader.depth = (reader.fieldNumber = (reader.ioIndex = 0)))); + reader.blockEnd = int.MaxValue; + reader.internStrings = true; + reader.wireType = WireType.None; + reader.trapCount = 1u; + bool flag5 = reader.netCache == null; + if (flag5) + { + reader.netCache = new NetObjectCache(); + } + } + + public void Dispose() + { + this.source = null; + this.model = null; + BufferPool.ReleaseBufferToPool(ref this.ioBuffer); + bool flag = this.stringInterner != null; + if (flag) + { + this.stringInterner.Clear(); + } + bool flag2 = this.netCache != null; + if (flag2) + { + this.netCache.Clear(); + } + } + + internal int TryReadUInt32VariantWithoutMoving(bool trimNegative, out uint value) + { + bool flag = this.available < 10; + if (flag) + { + this.Ensure(10, false); + } + bool flag2 = this.available == 0; + int result; + if (flag2) + { + value = 0u; + result = 0; + } + else + { + int num = this.ioIndex; + value = (uint)this.ioBuffer[num++]; + bool flag3 = (value & 128u) == 0u; + if (flag3) + { + result = 1; + } + else + { + value &= 127u; + bool flag4 = this.available == 1; + if (flag4) + { + throw ProtoReader.EoF(this); + } + uint num2 = (uint)this.ioBuffer[num++]; + value |= (num2 & 127u) << 7; + bool flag5 = (num2 & 128u) == 0u; + if (flag5) + { + result = 2; + } + else + { + bool flag6 = this.available == 2; + if (flag6) + { + throw ProtoReader.EoF(this); + } + num2 = (uint)this.ioBuffer[num++]; + value |= (num2 & 127u) << 14; + bool flag7 = (num2 & 128u) == 0u; + if (flag7) + { + result = 3; + } + else + { + bool flag8 = this.available == 3; + if (flag8) + { + throw ProtoReader.EoF(this); + } + num2 = (uint)this.ioBuffer[num++]; + value |= (num2 & 127u) << 21; + bool flag9 = (num2 & 128u) == 0u; + if (flag9) + { + result = 4; + } + else + { + bool flag10 = this.available == 4; + if (flag10) + { + throw ProtoReader.EoF(this); + } + num2 = (uint)this.ioBuffer[num]; + value |= num2 << 28; + bool flag11 = (num2 & 240u) == 0u; + if (flag11) + { + result = 5; + } + else + { + bool flag12 = trimNegative && (num2 & 240u) == 240u && this.available >= 10 && this.ioBuffer[++num] == byte.MaxValue && this.ioBuffer[++num] == byte.MaxValue && this.ioBuffer[++num] == byte.MaxValue && this.ioBuffer[++num] == byte.MaxValue && this.ioBuffer[num + 1] == 1; + if (!flag12) + { + throw ProtoReader.AddErrorData(new OverflowException(), this); + } + result = 10; + } + } + } + } + } + } + return result; + } + + private uint ReadUInt32Variant(bool trimNegative) + { + uint result; + int num = this.TryReadUInt32VariantWithoutMoving(trimNegative, out result); + bool flag = num > 0; + if (flag) + { + this.ioIndex += num; + this.available -= num; + this.position += num; + return result; + } + throw ProtoReader.EoF(this); + } + + private bool TryReadUInt32Variant(out uint value) + { + int num = this.TryReadUInt32VariantWithoutMoving(false, out value); + bool flag = num > 0; + bool result; + if (flag) + { + this.ioIndex += num; + this.available -= num; + this.position += num; + result = true; + } + else + { + result = false; + } + return result; + } + + public uint ReadUInt32() + { + WireType wireType = this.wireType; + uint result; + if (wireType != WireType.Variant) + { + if (wireType != WireType.Fixed64) + { + if (wireType != WireType.Fixed32) + { + throw this.CreateWireTypeException(); + } + bool flag = this.available < 4; + if (flag) + { + this.Ensure(4, true); + } + this.position += 4; + this.available -= 4; + byte[] array = this.ioBuffer; + int num = this.ioIndex; + this.ioIndex = num + 1; + uint num2 = array[num]; + byte[] array2 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + uint num3 = (uint)(num2 | array2[num] << 8); + byte[] array3 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + uint num4 = (uint)(num3 | array3[num] << 16); + byte[] array4 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + result = (uint)(num4 | array4[num] << 24); + } + else + { + ulong num5 = this.ReadUInt64(); + result = checked((uint)num5); + } + } + else + { + result = this.ReadUInt32Variant(false); + } + return result; + } + + internal void Ensure(int count, bool strict) + { + Helpers.DebugAssert(this.available <= count, "Asking for data without checking first"); + bool flag = count > this.ioBuffer.Length; + if (flag) + { + BufferPool.ResizeAndFlushLeft(ref this.ioBuffer, count, this.ioIndex, this.available); + this.ioIndex = 0; + } + else + { + bool flag2 = this.ioIndex + count >= this.ioBuffer.Length; + if (flag2) + { + Helpers.BlockCopy(this.ioBuffer, this.ioIndex, this.ioBuffer, 0, this.available); + this.ioIndex = 0; + } + } + count -= this.available; + int num = this.ioIndex + this.available; + int num2 = this.ioBuffer.Length - num; + bool flag3 = this.isFixedLength; + if (flag3) + { + bool flag4 = this.dataRemaining < num2; + if (flag4) + { + num2 = this.dataRemaining; + } + } + int num3; + while (count > 0 && num2 > 0 && (num3 = this.source.Read(this.ioBuffer, num, num2)) > 0) + { + this.available += num3; + count -= num3; + num2 -= num3; + num += num3; + bool flag5 = this.isFixedLength; + if (flag5) + { + this.dataRemaining -= num3; + } + } + bool flag6 = strict && count > 0; + if (flag6) + { + throw ProtoReader.EoF(this); + } + } + + public short ReadInt16() + { + return checked((short)this.ReadInt32()); + } + + public ushort ReadUInt16() + { + return checked((ushort)this.ReadUInt32()); + } + + public byte ReadByte() + { + return checked((byte)this.ReadUInt32()); + } + + public sbyte ReadSByte() + { + return checked((sbyte)this.ReadInt32()); + } + + public int ReadInt32() + { + WireType wireType = this.wireType; + if (wireType <= WireType.Fixed64) + { + if (wireType == WireType.Variant) + { + return (int)this.ReadUInt32Variant(true); + } + if (wireType == WireType.Fixed64) + { + long num = this.ReadInt64(); + return checked((int)num); + } + } + else + { + if (wireType == WireType.Fixed32) + { + bool flag = this.available < 4; + if (flag) + { + this.Ensure(4, true); + } + this.position += 4; + this.available -= 4; + byte[] array = this.ioBuffer; + int num2 = this.ioIndex; + this.ioIndex = num2 + 1; + int num3 = array[num2]; + byte[] array2 = this.ioBuffer; + num2 = this.ioIndex; + this.ioIndex = num2 + 1; + int num4 = num3 | array2[num2] << 8; + byte[] array3 = this.ioBuffer; + num2 = this.ioIndex; + this.ioIndex = num2 + 1; + int num5 = num4 | array3[num2] << 16; + byte[] array4 = this.ioBuffer; + num2 = this.ioIndex; + this.ioIndex = num2 + 1; + return num5 | array4[num2] << 24; + } + if (wireType == WireType.SignedVariant) + { + return ProtoReader.Zag(this.ReadUInt32Variant(true)); + } + } + throw this.CreateWireTypeException(); + } + + private static int Zag(uint ziggedValue) + { + return (int)(-(ziggedValue & 1u) ^ (uint)((int)ziggedValue >> 1 & int.MaxValue)); + } + + private static long Zag(ulong ziggedValue) + { + //! + //return (long)(-(long)(ziggedValue & 1UL) ^ (ziggedValue >> 1 & 9223372036854775807UL)); + long rightPart = (long)( ziggedValue >> 1 & long.MaxValue ); + long leftPart = -(long)(ziggedValue & 1UL); + return leftPart ^ rightPart; + } + + public long ReadInt64() + { + WireType wireType = this.wireType; + if (wireType <= WireType.Fixed64) + { + if (wireType == WireType.Variant) + { + return (long)this.ReadUInt64Variant(); + } + if (wireType == WireType.Fixed64) + { + bool flag = this.available < 8; + if (flag) + { + this.Ensure(8, true); + } + this.position += 8; + this.available -= 8; + byte[] array = this.ioBuffer; + int num = this.ioIndex; + this.ioIndex = num + 1; + long num2 = (long)array[num]; + byte[] array2 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + long num3 = num2 | (long)((long)array2[num] << 8); + byte[] array3 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + long num4 = num3 | (long)((long)array3[num] << 16); + byte[] array4 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + long num5 = num4 | (long)((long)array4[num] << 24); + byte[] array5 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + long num6 = num5 | (long)((long)array5[num] << 32); + byte[] array6 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + long num7 = num6 | (long)((long)array6[num] << 40); + byte[] array7 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + long num8 = num7 | (long)((long)array7[num] << 48); + byte[] array8 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + return num8 | (long)((long)array8[num] << 56); + } + } + else + { + if (wireType == WireType.Fixed32) + { + return (long)this.ReadInt32(); + } + if (wireType == WireType.SignedVariant) + { + return ProtoReader.Zag(this.ReadUInt64Variant()); + } + } + throw this.CreateWireTypeException(); + } + + private int TryReadUInt64VariantWithoutMoving(out ulong value) + { + bool flag = this.available < 10; + if (flag) + { + this.Ensure(10, false); + } + bool flag2 = this.available == 0; + int result; + if (flag2) + { + value = 0UL; + result = 0; + } + else + { + int num = this.ioIndex; + value = (ulong)this.ioBuffer[num++]; + bool flag3 = (value & 128UL) == 0UL; + if (flag3) + { + result = 1; + } + else + { + value &= 127UL; + bool flag4 = this.available == 1; + if (flag4) + { + throw ProtoReader.EoF(this); + } + ulong num2 = (ulong)this.ioBuffer[num++]; + value |= (num2 & 127UL) << 7; + bool flag5 = (num2 & 128UL) == 0UL; + if (flag5) + { + result = 2; + } + else + { + bool flag6 = this.available == 2; + if (flag6) + { + throw ProtoReader.EoF(this); + } + num2 = (ulong)this.ioBuffer[num++]; + value |= (num2 & 127UL) << 14; + bool flag7 = (num2 & 128UL) == 0UL; + if (flag7) + { + result = 3; + } + else + { + bool flag8 = this.available == 3; + if (flag8) + { + throw ProtoReader.EoF(this); + } + num2 = (ulong)this.ioBuffer[num++]; + value |= (num2 & 127UL) << 21; + bool flag9 = (num2 & 128UL) == 0UL; + if (flag9) + { + result = 4; + } + else + { + bool flag10 = this.available == 4; + if (flag10) + { + throw ProtoReader.EoF(this); + } + num2 = (ulong)this.ioBuffer[num++]; + value |= (num2 & 127UL) << 28; + bool flag11 = (num2 & 128UL) == 0UL; + if (flag11) + { + result = 5; + } + else + { + bool flag12 = this.available == 5; + if (flag12) + { + throw ProtoReader.EoF(this); + } + num2 = (ulong)this.ioBuffer[num++]; + value |= (num2 & 127UL) << 35; + bool flag13 = (num2 & 128UL) == 0UL; + if (flag13) + { + result = 6; + } + else + { + bool flag14 = this.available == 6; + if (flag14) + { + throw ProtoReader.EoF(this); + } + num2 = (ulong)this.ioBuffer[num++]; + value |= (num2 & 127UL) << 42; + bool flag15 = (num2 & 128UL) == 0UL; + if (flag15) + { + result = 7; + } + else + { + bool flag16 = this.available == 7; + if (flag16) + { + throw ProtoReader.EoF(this); + } + num2 = (ulong)this.ioBuffer[num++]; + value |= (num2 & 127UL) << 49; + bool flag17 = (num2 & 128UL) == 0UL; + if (flag17) + { + result = 8; + } + else + { + bool flag18 = this.available == 8; + if (flag18) + { + throw ProtoReader.EoF(this); + } + num2 = (ulong)this.ioBuffer[num++]; + value |= (num2 & 127UL) << 56; + bool flag19 = (num2 & 128UL) == 0UL; + if (flag19) + { + result = 9; + } + else + { + bool flag20 = this.available == 9; + if (flag20) + { + throw ProtoReader.EoF(this); + } + num2 = (ulong)this.ioBuffer[num]; + value |= num2 << 63; + bool flag21 = (num2 & 18446744073709551614UL) > 0UL; + if (flag21) + { + throw ProtoReader.AddErrorData(new OverflowException(), this); + } + result = 10; + } + } + } + } + } + } + } + } + } + } + return result; + } + + private ulong ReadUInt64Variant() + { + ulong result; + int num = this.TryReadUInt64VariantWithoutMoving(out result); + bool flag = num > 0; + if (flag) + { + this.ioIndex += num; + this.available -= num; + this.position += num; + return result; + } + throw ProtoReader.EoF(this); + } + + private string Intern(string value) + { + bool flag = value == null; + string result; + if (flag) + { + result = null; + } + else + { + bool flag2 = value.Length == 0; + if (flag2) + { + result = ""; + } + else + { + bool flag3 = this.stringInterner == null; + if (flag3) + { + this.stringInterner = new Dictionary(); + this.stringInterner.Add(value, value); + } + else + { + string text; + bool flag4 = this.stringInterner.TryGetValue(value, out text); + if (flag4) + { + value = text; + } + else + { + this.stringInterner.Add(value, value); + } + } + result = value; + } + } + return result; + } + + public string ReadString() + { + bool flag = this.wireType == WireType.String; + if (flag) + { + int num = (int)this.ReadUInt32Variant(false); + bool flag2 = num == 0; + string result; + if (flag2) + { + result = ""; + } + else + { + bool flag3 = this.available < num; + if (flag3) + { + this.Ensure(num, true); + } + string text = ProtoReader.encoding.GetString(this.ioBuffer, this.ioIndex, num); + bool flag4 = this.internStrings; + if (flag4) + { + text = this.Intern(text); + } + this.available -= num; + this.position += num; + this.ioIndex += num; + result = text; + } + return result; + } + throw this.CreateWireTypeException(); + } + + public void ThrowEnumException(Type type, int value) + { + string str = (type == null) ? "" : type.FullName; + throw ProtoReader.AddErrorData(new ProtoException("No " + str + " enum is mapped to the wire-value " + value.ToString()), this); + } + + private Exception CreateWireTypeException() + { + return this.CreateException("Invalid wire-type; this usually means you have over-written a file without truncating or setting the length; see http://stackoverflow.com/q/2152978/23354"); + } + + private Exception CreateException(string message) + { + return ProtoReader.AddErrorData(new ProtoException(message), this); + } + + public unsafe double ReadDouble() + { + WireType wireType = this.wireType; + double result; + if (wireType != WireType.Fixed64) + { + if (wireType != WireType.Fixed32) + { + throw this.CreateWireTypeException(); + } + result = (double)this.ReadSingle(); + } + else + { + long num = this.ReadInt64(); + result = *(double*)(&num); + } + return result; + } + + public static object ReadObject(object value, int key, ProtoReader reader) + { + return ProtoReader.ReadTypedObject(value, key, reader, null); + } + + internal static object ReadTypedObject(object value, int key, ProtoReader reader, Type type) + { + bool flag = reader.model == null; + if (flag) + { + throw ProtoReader.AddErrorData(new InvalidOperationException("Cannot deserialize sub-objects unless a model is provided"), reader); + } + SubItemToken token = ProtoReader.StartSubItem(reader); + bool flag2 = key >= 0; + if (flag2) + { + value = reader.model.Deserialize(key, value, reader); + } + else + { + bool flag3 = type != null && reader.model.TryDeserializeAuxiliaryType(reader, DataFormat.Default, 1, type, ref value, true, false, true, false); + if (!flag3) + { + TypeModel.ThrowUnexpectedType(type); + } + } + ProtoReader.EndSubItem(token, reader); + return value; + } + + public static void EndSubItem(SubItemToken token, ProtoReader reader) + { + bool flag = reader == null; + if (flag) + { + throw new ArgumentNullException("reader"); + } + int value = token.value; + WireType wireType = reader.wireType; + if (wireType != WireType.EndGroup) + { + bool flag2 = value < reader.position; + if (flag2) + { + throw reader.CreateException("Sub-message not read entirely"); + } + bool flag3 = reader.blockEnd != reader.position && reader.blockEnd != int.MaxValue; + if (flag3) + { + throw reader.CreateException("Sub-message not read correctly"); + } + reader.blockEnd = value; + reader.depth--; + } + else + { + bool flag4 = value >= 0; + if (flag4) + { + throw ProtoReader.AddErrorData(new ArgumentException("token"), reader); + } + bool flag5 = -value != reader.fieldNumber; + if (flag5) + { + throw reader.CreateException("Wrong group was ended"); + } + reader.wireType = WireType.None; + reader.depth--; + } + } + + public static SubItemToken StartSubItem(ProtoReader reader) + { + bool flag = reader == null; + if (flag) + { + throw new ArgumentNullException("reader"); + } + WireType wireType = reader.wireType; + SubItemToken result; + if (wireType != WireType.String) + { + if (wireType != WireType.StartGroup) + { + throw reader.CreateWireTypeException(); + } + reader.wireType = WireType.None; + reader.depth++; + result = new SubItemToken(-reader.fieldNumber); + } + else + { + int num = (int)reader.ReadUInt32Variant(false); + bool flag2 = num < 0; + if (flag2) + { + throw ProtoReader.AddErrorData(new InvalidOperationException(), reader); + } + int value = reader.blockEnd; + reader.blockEnd = reader.position + num; + reader.depth++; + result = new SubItemToken(value); + } + return result; + } + + public int ReadFieldHeader() + { + bool flag = this.blockEnd <= this.position || this.wireType == WireType.EndGroup; + int result; + if (flag) + { + result = 0; + } + else + { + uint num; + bool flag2 = this.TryReadUInt32Variant(out num); + if (flag2) + { + this.wireType = (WireType)(num & 7u); + this.fieldNumber = (int)(num >> 3); + bool flag3 = this.fieldNumber < 1; + if (flag3) + { + throw new ProtoException("Invalid field in source data: " + this.fieldNumber.ToString()); + } + } + else + { + this.wireType = WireType.None; + this.fieldNumber = 0; + } + bool flag4 = this.wireType == WireType.EndGroup; + if (flag4) + { + bool flag5 = this.depth > 0; + if (!flag5) + { + throw new ProtoException("Unexpected end-group in source data; this usually means the source data is corrupt"); + } + result = 0; + } + else + { + result = this.fieldNumber; + } + } + return result; + } + + public bool TryReadFieldHeader(int field) + { + bool flag = this.blockEnd <= this.position || this.wireType == WireType.EndGroup; + bool result; + if (flag) + { + result = false; + } + else + { + uint num2; + int num = this.TryReadUInt32VariantWithoutMoving(false, out num2); + WireType wireType = WireType.None; + bool flag2 = num > 0 && (int)num2 >> 3 == field && (wireType = (WireType)(num2 & 7u)) != WireType.EndGroup; + if (flag2) + { + this.wireType = wireType; + this.fieldNumber = field; + this.position += num; + this.ioIndex += num; + this.available -= num; + result = true; + } + else + { + result = false; + } + } + return result; + } + + public void Hint(WireType wireType) + { + bool flag = this.wireType == wireType; + if (!flag) + { + bool flag2 = (wireType & (WireType)7) == this.wireType; + if (flag2) + { + this.wireType = wireType; + } + } + } + + public void Assert(WireType wireType) + { + bool flag = this.wireType == wireType; + if (!flag) + { + bool flag2 = (wireType & (WireType)7) == this.wireType; + if (!flag2) + { + throw this.CreateWireTypeException(); + } + this.wireType = wireType; + } + } + + public void SkipField() + { + switch (this.wireType) + { + case WireType.Variant: + case WireType.SignedVariant: + this.ReadUInt64Variant(); + return; + case WireType.Fixed64: + { + bool flag = this.available < 8; + if (flag) + { + this.Ensure(8, true); + } + this.available -= 8; + this.ioIndex += 8; + this.position += 8; + return; + } + case WireType.String: + { + int num = (int)this.ReadUInt32Variant(false); + bool flag2 = num <= this.available; + if (flag2) + { + this.available -= num; + this.ioIndex += num; + this.position += num; + return; + } + this.position += num; + num -= this.available; + this.ioIndex = (this.available = 0); + bool flag3 = this.isFixedLength; + if (flag3) + { + bool flag4 = num > this.dataRemaining; + if (flag4) + { + throw ProtoReader.EoF(this); + } + this.dataRemaining -= num; + } + ProtoReader.Seek(this.source, num, this.ioBuffer); + return; + } + case WireType.StartGroup: + { + int num2 = this.fieldNumber; + this.depth++; + while (this.ReadFieldHeader() > 0) + { + this.SkipField(); + } + this.depth--; + bool flag5 = this.wireType == WireType.EndGroup && this.fieldNumber == num2; + if (flag5) + { + this.wireType = WireType.None; + return; + } + throw this.CreateWireTypeException(); + } + case WireType.Fixed32: + { + bool flag6 = this.available < 4; + if (flag6) + { + this.Ensure(4, true); + } + this.available -= 4; + this.ioIndex += 4; + this.position += 4; + return; + } + } + throw this.CreateWireTypeException(); + } + + public ulong ReadUInt64() + { + WireType wireType = this.wireType; + ulong result; + if (wireType != WireType.Variant) + { + if (wireType != WireType.Fixed64) + { + if (wireType != WireType.Fixed32) + { + throw this.CreateWireTypeException(); + } + result = (ulong)this.ReadUInt32(); + } + else + { + bool flag = this.available < 8; + if (flag) + { + this.Ensure(8, true); + } + this.position += 8; + this.available -= 8; + byte[] array = this.ioBuffer; + int num = this.ioIndex; + this.ioIndex = num + 1; + ulong num2 = array[num]; + byte[] array2 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + ulong num3 = num2 | (ulong) ( array2[num] << 8); + byte[] array3 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + ulong num4 = num3 | (ulong) (array3[num] << 16); + byte[] array4 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + ulong num5 = num4 | (ulong) ( array4[num] << 24); + byte[] array5 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + ulong num6 = num5 | (ulong)(array5[num] << 32); + byte[] array6 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + ulong num7 = num6 | (ulong)( array6[num] << 40); + byte[] array7 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + ulong num8 = num7 | (ulong)(array7[num] << 48); + byte[] array8 = this.ioBuffer; + num = this.ioIndex; + this.ioIndex = num + 1; + result = (num8 | (ulong) ( array8[num] << 56)); + } + } + else + { + result = this.ReadUInt64Variant(); + } + return result; + } + + public unsafe float ReadSingle() + { + WireType wireType = this.wireType; + float result; + if (wireType != WireType.Fixed64) + { + if (wireType != WireType.Fixed32) + { + throw this.CreateWireTypeException(); + } + int num = this.ReadInt32(); + result = *(float*)(&num); + } + else + { + double num2 = this.ReadDouble(); + float num3 = (float)num2; + bool flag = Helpers.IsInfinity(num3) && !Helpers.IsInfinity(num2); + if (flag) + { + throw ProtoReader.AddErrorData(new OverflowException(), this); + } + result = num3; + } + return result; + } + + public bool ReadBoolean() + { + uint num = this.ReadUInt32(); + bool result; + if (num != 0u) + { + if (num != 1u) + { + throw this.CreateException("Unexpected boolean value"); + } + result = true; + } + else + { + result = false; + } + return result; + } + + public static byte[] AppendBytes(byte[] value, ProtoReader reader) + { + bool flag = reader == null; + if (flag) + { + throw new ArgumentNullException("reader"); + } + WireType wireType = reader.wireType; + if (wireType != WireType.String) + { + throw reader.CreateWireTypeException(); + } + int i = (int)reader.ReadUInt32Variant(false); + reader.wireType = WireType.None; + bool flag2 = i == 0; + byte[] result; + if (flag2) + { + result = ((value == null) ? ProtoReader.EmptyBlob : value); + } + else + { + bool flag3 = value == null || value.Length == 0; + int num; + if (flag3) + { + num = 0; + value = new byte[i]; + } + else + { + num = value.Length; + byte[] array = new byte[value.Length + i]; + Helpers.BlockCopy(value, 0, array, 0, value.Length); + value = array; + } + reader.position += i; + while (i > reader.available) + { + bool flag4 = reader.available > 0; + if (flag4) + { + Helpers.BlockCopy(reader.ioBuffer, reader.ioIndex, value, num, reader.available); + i -= reader.available; + num += reader.available; + reader.ioIndex = (reader.available = 0); + } + int num2 = (i > reader.ioBuffer.Length) ? reader.ioBuffer.Length : i; + bool flag5 = num2 > 0; + if (flag5) + { + reader.Ensure(num2, true); + } + } + bool flag6 = i > 0; + if (flag6) + { + Helpers.BlockCopy(reader.ioBuffer, reader.ioIndex, value, num, i); + reader.ioIndex += i; + reader.available -= i; + } + result = value; + } + return result; + } + + private static int ReadByteOrThrow(Stream source) + { + int num = source.ReadByte(); + bool flag = num < 0; + if (flag) + { + throw ProtoReader.EoF(null); + } + return num; + } + + public static int ReadLengthPrefix(Stream source, bool expectHeader, PrefixStyle style, out int fieldNumber) + { + int num; + return ProtoReader.ReadLengthPrefix(source, expectHeader, style, out fieldNumber, out num); + } + + public static int DirectReadLittleEndianInt32(Stream source) + { + return ProtoReader.ReadByteOrThrow(source) | ProtoReader.ReadByteOrThrow(source) << 8 | ProtoReader.ReadByteOrThrow(source) << 16 | ProtoReader.ReadByteOrThrow(source) << 24; + } + + public static int DirectReadBigEndianInt32(Stream source) + { + return ProtoReader.ReadByteOrThrow(source) << 24 | ProtoReader.ReadByteOrThrow(source) << 16 | ProtoReader.ReadByteOrThrow(source) << 8 | ProtoReader.ReadByteOrThrow(source); + } + + public static int DirectReadVarintInt32(Stream source) + { + uint result; + int num = ProtoReader.TryReadUInt32Variant(source, out result); + bool flag = num <= 0; + if (flag) + { + throw ProtoReader.EoF(null); + } + return (int)result; + } + + public static void DirectReadBytes(Stream source, byte[] buffer, int offset, int count) + { + bool flag = source == null; + if (flag) + { + throw new ArgumentNullException("source"); + } + int num; + while (count > 0 && (num = source.Read(buffer, offset, count)) > 0) + { + count -= num; + offset += num; + } + bool flag2 = count > 0; + if (flag2) + { + throw ProtoReader.EoF(null); + } + } + + public static byte[] DirectReadBytes(Stream source, int count) + { + byte[] array = new byte[count]; + ProtoReader.DirectReadBytes(source, array, 0, count); + return array; + } + + public static string DirectReadString(Stream source, int length) + { + byte[] array = new byte[length]; + ProtoReader.DirectReadBytes(source, array, 0, length); + return Encoding.UTF8.GetString(array, 0, length); + } + + public static int ReadLengthPrefix(Stream source, bool expectHeader, PrefixStyle style, out int fieldNumber, out int bytesRead) + { + fieldNumber = 0; + int result; + switch (style) + { + case PrefixStyle.None: + bytesRead = 0; + result = int.MaxValue; + break; + case PrefixStyle.Base128: + bytesRead = 0; + if (expectHeader) + { + uint num2; + int num = ProtoReader.TryReadUInt32Variant(source, out num2); + bytesRead += num; + bool flag = num > 0; + if (flag) + { + bool flag2 = (num2 & 7u) != 2u; + if (flag2) + { + throw new InvalidOperationException(); + } + fieldNumber = (int)(num2 >> 3); + num = ProtoReader.TryReadUInt32Variant(source, out num2); + bytesRead += num; + bool flag3 = bytesRead == 0; + if (flag3) + { + throw ProtoReader.EoF(null); + } + result = (int)num2; + } + else + { + bytesRead = 0; + result = -1; + } + } + else + { + uint num2; + int num = ProtoReader.TryReadUInt32Variant(source, out num2); + bytesRead += num; + result = (int)((bytesRead < 0) ? uint.MaxValue : num2); + } + break; + case PrefixStyle.Fixed32: + { + int num3 = source.ReadByte(); + bool flag4 = num3 < 0; + if (flag4) + { + bytesRead = 0; + result = -1; + } + else + { + bytesRead = 4; + result = (num3 | ProtoReader.ReadByteOrThrow(source) << 8 | ProtoReader.ReadByteOrThrow(source) << 16 | ProtoReader.ReadByteOrThrow(source) << 24); + } + break; + } + case PrefixStyle.Fixed32BigEndian: + { + int num4 = source.ReadByte(); + bool flag5 = num4 < 0; + if (flag5) + { + bytesRead = 0; + result = -1; + } + else + { + bytesRead = 4; + result = (num4 << 24 | ProtoReader.ReadByteOrThrow(source) << 16 | ProtoReader.ReadByteOrThrow(source) << 8 | ProtoReader.ReadByteOrThrow(source)); + } + break; + } + default: + throw new ArgumentOutOfRangeException("style"); + } + return result; + } + + private static int TryReadUInt32Variant(Stream source, out uint value) + { + value = 0u; + int num = source.ReadByte(); + bool flag = num < 0; + int result; + if (flag) + { + result = 0; + } + else + { + value = (uint)num; + bool flag2 = (value & 128u) == 0u; + if (flag2) + { + result = 1; + } + else + { + value &= 127u; + num = source.ReadByte(); + bool flag3 = num < 0; + if (flag3) + { + throw ProtoReader.EoF(null); + } + value |= (uint)((uint)(num & 127) << 7); + bool flag4 = (num & 128) == 0; + if (flag4) + { + result = 2; + } + else + { + num = source.ReadByte(); + bool flag5 = num < 0; + if (flag5) + { + throw ProtoReader.EoF(null); + } + value |= (uint)((uint)(num & 127) << 14); + bool flag6 = (num & 128) == 0; + if (flag6) + { + result = 3; + } + else + { + num = source.ReadByte(); + bool flag7 = num < 0; + if (flag7) + { + throw ProtoReader.EoF(null); + } + value |= (uint)((uint)(num & 127) << 21); + bool flag8 = (num & 128) == 0; + if (flag8) + { + result = 4; + } + else + { + num = source.ReadByte(); + bool flag9 = num < 0; + if (flag9) + { + throw ProtoReader.EoF(null); + } + value |= (uint)((uint)num << 28); + bool flag10 = (num & 240) == 0; + if (!flag10) + { + throw new OverflowException(); + } + result = 5; + } + } + } + } + } + return result; + } + + internal static void Seek(Stream source, int count, byte[] buffer) + { + bool canSeek = source.CanSeek; + if (canSeek) + { + source.Seek((long)count, SeekOrigin.Current); + count = 0; + } + else + { + bool flag = buffer != null; + if (flag) + { + int num; + while (count > buffer.Length && (num = source.Read(buffer, 0, buffer.Length)) > 0) + { + count -= num; + } + while (count > 0 && (num = source.Read(buffer, 0, count)) > 0) + { + count -= num; + } + } + else + { + buffer = BufferPool.GetBuffer(); + try + { + int num2; + while (count > buffer.Length && (num2 = source.Read(buffer, 0, buffer.Length)) > 0) + { + count -= num2; + } + while (count > 0 && (num2 = source.Read(buffer, 0, count)) > 0) + { + count -= num2; + } + } + finally + { + BufferPool.ReleaseBufferToPool(ref buffer); + } + } + } + bool flag2 = count > 0; + if (flag2) + { + throw ProtoReader.EoF(null); + } + } + + internal static Exception AddErrorData(Exception exception, ProtoReader source) + { + bool flag = exception != null && source != null && !exception.Data.Contains("protoSource"); + if (flag) + { + exception.Data.Add("protoSource", string.Format("tag={0}; wire-type={1}; offset={2}; depth={3}", new object[] + { + source.fieldNumber, + source.wireType, + source.position, + source.depth + })); + } + return exception; + } + + private static Exception EoF(ProtoReader source) + { + return ProtoReader.AddErrorData(new EndOfStreamException(), source); + } + + public void AppendExtensionData(IExtensible instance) + { + bool flag = instance == null; + if (flag) + { + throw new ArgumentNullException("instance"); + } + IExtension extensionObject = instance.GetExtensionObject(true); + bool commit = false; + Stream stream = extensionObject.BeginAppend(); + try + { + using (ProtoWriter protoWriter = new ProtoWriter(stream, this.model, null)) + { + this.AppendExtensionField(protoWriter); + protoWriter.Close(); + } + commit = true; + } + finally + { + extensionObject.EndAppend(stream, commit); + } + } + + private void AppendExtensionField(ProtoWriter writer) + { + ProtoWriter.WriteFieldHeader(this.fieldNumber, this.wireType, writer); + switch (this.wireType) + { + case WireType.Variant: + case WireType.Fixed64: + case WireType.SignedVariant: + ProtoWriter.WriteInt64(this.ReadInt64(), writer); + return; + case WireType.String: + ProtoWriter.WriteBytes(ProtoReader.AppendBytes(null, this), writer); + return; + case WireType.StartGroup: + { + SubItemToken token = ProtoReader.StartSubItem(this); + SubItemToken token2 = ProtoWriter.StartSubItem(null, writer); + while (this.ReadFieldHeader() > 0) + { + this.AppendExtensionField(writer); + } + ProtoReader.EndSubItem(token, this); + ProtoWriter.EndSubItem(token2, writer); + return; + } + case WireType.Fixed32: + ProtoWriter.WriteInt32(this.ReadInt32(), writer); + return; + } + throw this.CreateWireTypeException(); + } + + public static bool HasSubValue(WireType wireType, ProtoReader source) + { + bool flag = source == null; + if (flag) + { + throw new ArgumentNullException("source"); + } + bool flag2 = source.blockEnd <= source.position || wireType == WireType.EndGroup; + bool result; + if (flag2) + { + result = false; + } + else + { + source.wireType = wireType; + result = true; + } + return result; + } + + internal int GetTypeKey(ref Type type) + { + return this.model.GetKey(ref type); + } + + internal Type DeserializeType(string value) + { + return TypeModel.DeserializeType(this.model, value); + } + + internal void SetRootObject(object value) + { + this.netCache.SetKeyedObject(0, value); + this.trapCount -= 1u; + } + + public static void NoteObject(object value, ProtoReader reader) + { + bool flag = reader == null; + if (flag) + { + throw new ArgumentNullException("reader"); + } + bool flag2 = reader.trapCount > 0u; + if (flag2) + { + reader.netCache.RegisterTrappedObject(value); + reader.trapCount -= 1u; + } + } + + public Type ReadType() + { + return TypeModel.DeserializeType(this.model, this.ReadString()); + } + + internal void TrapNextObject(int newObjectKey) + { + this.trapCount += 1u; + this.netCache.SetKeyedObject(newObjectKey, null); + } + + internal void CheckFullyConsumed() + { + bool flag = this.isFixedLength; + if (flag) + { + bool flag2 = this.dataRemaining != 0; + if (flag2) + { + throw new ProtoException("Incorrect number of bytes consumed"); + } + } + else + { + bool flag3 = this.available != 0; + if (flag3) + { + throw new ProtoException("Unconsumed data left in the buffer; this suggests corrupt input"); + } + } + } + + public static object Merge(ProtoReader parent, object from, object to) + { + bool flag = parent == null; + if (flag) + { + throw new ArgumentNullException("parent"); + } + TypeModel typeModel = parent.Model; + SerializationContext serializationContext = parent.Context; + bool flag2 = typeModel == null; + if (flag2) + { + throw new InvalidOperationException("Types cannot be merged unless a type-model has been specified"); + } + object result; + using (MemoryStream memoryStream = new MemoryStream()) + { + typeModel.Serialize(memoryStream, from, serializationContext); + memoryStream.Position = 0L; + result = typeModel.Deserialize(memoryStream, to, null); + } + return result; + } + + internal static ProtoReader Create(Stream source, TypeModel model, SerializationContext context, int len) + { + ProtoReader recycled = ProtoReader.GetRecycled(); + bool flag = recycled == null; + ProtoReader result; + if (flag) + { + result = new ProtoReader(source, model, context, len); + } + else + { + ProtoReader.Init(recycled, source, model, context, len); + result = recycled; + } + return result; + } + + private static ProtoReader GetRecycled() + { + ProtoReader result = ProtoReader.lastReader; + ProtoReader.lastReader = null; + return result; + } + + internal static void Recycle(ProtoReader reader) + { + bool flag = reader != null; + if (flag) + { + reader.Dispose(); + ProtoReader.lastReader = reader; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoReader.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoReader.cs.meta new file mode 100644 index 00000000..20a81efd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoReader.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2861b991d19ced42991a21212bf2e44 +timeCreated: 1611404494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs new file mode 100644 index 00000000..80039345 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs @@ -0,0 +1,30 @@ +using System; + +namespace ProtoBuf +{ + internal enum ProtoTypeCode + { + Empty, + Unknown, + Boolean = 3, + Char, + SByte, + Byte, + Int16, + UInt16, + Int32, + UInt32, + Int64, + UInt64, + Single, + Double, + Decimal, + DateTime, + String = 18, + TimeSpan = 100, + ByteArray, + Guid, + Uri, + Type + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs.meta new file mode 100644 index 00000000..0c507e5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoTypeCode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40d0908bcdffe8f4781b540b382296b0 +timeCreated: 1611403615 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoWriter.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoWriter.cs new file mode 100644 index 00000000..470c8605 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoWriter.cs @@ -0,0 +1,1102 @@ +using System; +using System.IO; +using System.Text; +using ProtoBuf.Meta; + +namespace ProtoBuf +{ + public sealed class ProtoWriter : IDisposable + { + internal NetObjectCache NetCache + { + get + { + return this.netCache; + } + } + + internal WireType WireType + { + get + { + return this.wireType; + } + } + + public SerializationContext Context + { + get + { + return this.context; + } + } + + public TypeModel Model + { + get + { + return this.model; + } + } + + private Stream dest; + + private TypeModel model; + + private readonly NetObjectCache netCache = new NetObjectCache(); + + private int fieldNumber; + + private int flushLock; + + private WireType wireType; + + private int depth = 0; + + private const int RecursionCheckDepth = 25; + + private MutableList recursionStack; + + private readonly SerializationContext context; + + private byte[] ioBuffer; + + private int ioIndex; + + private int position; + + private static readonly UTF8Encoding encoding = new UTF8Encoding(); + + private int packedFieldNumber; + + public static void WriteObject(object value, int key, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + bool flag2 = writer.model == null; + if (flag2) + { + throw new InvalidOperationException("Cannot serialize sub-objects unless a model is provided"); + } + SubItemToken token = ProtoWriter.StartSubItem(value, writer); + bool flag3 = key >= 0; + if (flag3) + { + writer.model.Serialize(key, value, writer); + } + else + { + bool flag4 = writer.model != null && writer.model.TrySerializeAuxiliaryType(writer, value.GetType(), DataFormat.Default, 1, value, false); + if (!flag4) + { + TypeModel.ThrowUnexpectedType(value.GetType()); + } + } + ProtoWriter.EndSubItem(token, writer); + } + + public static void WriteRecursionSafeObject(object value, int key, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + bool flag2 = writer.model == null; + if (flag2) + { + throw new InvalidOperationException("Cannot serialize sub-objects unless a model is provided"); + } + SubItemToken token = ProtoWriter.StartSubItem(null, writer); + writer.model.Serialize(key, value, writer); + ProtoWriter.EndSubItem(token, writer); + } + + internal static void WriteObject(object value, int key, ProtoWriter writer, PrefixStyle style, int fieldNumber) + { + bool flag = writer.model == null; + if (flag) + { + throw new InvalidOperationException("Cannot serialize sub-objects unless a model is provided"); + } + bool flag2 = writer.wireType != WireType.None; + if (flag2) + { + throw ProtoWriter.CreateException(writer); + } + if (style != PrefixStyle.Base128) + { + if (style - PrefixStyle.Fixed32 > 1) + { + throw new ArgumentOutOfRangeException("style"); + } + writer.fieldNumber = 0; + writer.wireType = WireType.Fixed32; + } + else + { + writer.wireType = WireType.String; + writer.fieldNumber = fieldNumber; + bool flag3 = fieldNumber > 0; + if (flag3) + { + ProtoWriter.WriteHeaderCore(fieldNumber, WireType.String, writer); + } + } + SubItemToken token = ProtoWriter.StartSubItem(value, writer, true); + bool flag4 = key < 0; + if (flag4) + { + bool flag5 = !writer.model.TrySerializeAuxiliaryType(writer, value.GetType(), DataFormat.Default, 1, value, false); + if (flag5) + { + TypeModel.ThrowUnexpectedType(value.GetType()); + } + } + else + { + writer.model.Serialize(key, value, writer); + } + ProtoWriter.EndSubItem(token, writer, style); + } + + internal int GetTypeKey(ref Type type) + { + return this.model.GetKey(ref type); + } + + public static void WriteFieldHeader(int fieldNumber, WireType wireType, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + bool flag2 = writer.wireType != WireType.None; + if (flag2) + { + throw new InvalidOperationException(string.Concat(new string[] + { + "Cannot write a ", + wireType.ToString(), + " header until the ", + writer.wireType.ToString(), + " data has been written" + })); + } + bool flag3 = fieldNumber < 0; + if (flag3) + { + throw new ArgumentOutOfRangeException("fieldNumber"); + } + switch (wireType) + { + case WireType.Variant: + case WireType.Fixed64: + case WireType.String: + case WireType.StartGroup: + case WireType.Fixed32: + case WireType.SignedVariant: + { + bool flag4 = writer.packedFieldNumber == 0; + if (flag4) + { + writer.fieldNumber = fieldNumber; + writer.wireType = wireType; + ProtoWriter.WriteHeaderCore(fieldNumber, wireType, writer); + } + else + { + bool flag5 = writer.packedFieldNumber == fieldNumber; + if (!flag5) + { + throw new InvalidOperationException("Field mismatch during packed encoding; expected " + writer.packedFieldNumber.ToString() + " but received " + fieldNumber.ToString()); + } + WireType wireType2 = wireType; + if (wireType2 > WireType.Fixed64 && wireType2 != WireType.Fixed32 && wireType2 != WireType.SignedVariant) + { + throw new InvalidOperationException("Wire-type cannot be encoded as packed: " + wireType.ToString()); + } + writer.fieldNumber = fieldNumber; + writer.wireType = wireType; + } + return; + } + } + throw new ArgumentException("Invalid wire-type: " + wireType.ToString(), "wireType"); + } + + internal static void WriteHeaderCore(int fieldNumber, WireType wireType, ProtoWriter writer) + { + uint value = (uint)(fieldNumber << 3 | (int)(wireType & (WireType)7)); + ProtoWriter.WriteUInt32Variant(value, writer); + } + + public static void WriteBytes(byte[] data, ProtoWriter writer) + { + bool flag = data == null; + if (flag) + { + throw new ArgumentNullException("data"); + } + ProtoWriter.WriteBytes(data, 0, data.Length, writer); + } + + public static void WriteBytes(byte[] data, int offset, int length, ProtoWriter writer) + { + bool flag = data == null; + if (flag) + { + throw new ArgumentNullException("data"); + } + bool flag2 = writer == null; + if (flag2) + { + throw new ArgumentNullException("writer"); + } + switch (writer.wireType) + { + case WireType.Fixed64: + { + bool flag3 = length != 8; + if (flag3) + { + throw new ArgumentException("length"); + } + goto IL_EE; + } + case WireType.String: + { + ProtoWriter.WriteUInt32Variant((uint)length, writer); + writer.wireType = WireType.None; + bool flag4 = length == 0; + if (flag4) + { + return; + } + bool flag5 = writer.flushLock != 0 || length <= writer.ioBuffer.Length; + if (flag5) + { + goto IL_EE; + } + ProtoWriter.Flush(writer); + writer.dest.Write(data, offset, length); + writer.position += length; + return; + } + case WireType.Fixed32: + { + bool flag6 = length != 4; + if (flag6) + { + throw new ArgumentException("length"); + } + goto IL_EE; + } + } + throw ProtoWriter.CreateException(writer); + IL_EE: + ProtoWriter.DemandSpace(length, writer); + Helpers.BlockCopy(data, offset, writer.ioBuffer, writer.ioIndex, length); + ProtoWriter.IncrementedAndReset(length, writer); + } + + private static void CopyRawFromStream(Stream source, ProtoWriter writer) + { + byte[] array = writer.ioBuffer; + int num = array.Length - writer.ioIndex; + int num2 = 1; + while (num > 0 && (num2 = source.Read(array, writer.ioIndex, num)) > 0) + { + writer.ioIndex += num2; + writer.position += num2; + num -= num2; + } + bool flag = num2 <= 0; + if (!flag) + { + bool flag2 = writer.flushLock == 0; + if (flag2) + { + ProtoWriter.Flush(writer); + while ((num2 = source.Read(array, 0, array.Length)) > 0) + { + writer.dest.Write(array, 0, num2); + writer.position += num2; + } + } + else + { + for (;;) + { + ProtoWriter.DemandSpace(128, writer); + bool flag3 = (num2 = source.Read(writer.ioBuffer, writer.ioIndex, writer.ioBuffer.Length - writer.ioIndex)) <= 0; + if (flag3) + { + break; + } + writer.position += num2; + writer.ioIndex += num2; + } + } + } + } + + private static void IncrementedAndReset(int length, ProtoWriter writer) + { + Helpers.DebugAssert(length >= 0); + writer.ioIndex += length; + writer.position += length; + writer.wireType = WireType.None; + } + + public static SubItemToken StartSubItem(object instance, ProtoWriter writer) + { + return ProtoWriter.StartSubItem(instance, writer, false); + } + + private void CheckRecursionStackAndPush(object instance) + { + bool flag = this.recursionStack == null; + if (flag) + { + this.recursionStack = new MutableList(); + } + else + { + int num = 0; + bool flag2 = instance != null && (num = this.recursionStack.IndexOfReference(instance)) >= 0; + if (flag2) + { + Helpers.DebugWriteLine("Stack:"); + foreach (object obj in this.recursionStack) + { + Helpers.DebugWriteLine((obj == null) ? "" : obj.ToString()); + } + Helpers.DebugWriteLine((instance == null) ? "" : instance.ToString()); + throw new ProtoException("Possible recursion detected (offset: " + (this.recursionStack.Count - num).ToString() + " level(s)): " + instance.ToString()); + } + } + this.recursionStack.Add(instance); + } + + private void PopRecursionStack() + { + this.recursionStack.RemoveLast(); + } + + private static SubItemToken StartSubItem(object instance, ProtoWriter writer, bool allowFixed) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + int num = writer.depth + 1; + writer.depth = num; + bool flag2 = num > 25; + if (flag2) + { + writer.CheckRecursionStackAndPush(instance); + } + bool flag3 = writer.packedFieldNumber != 0; + if (flag3) + { + throw new InvalidOperationException("Cannot begin a sub-item while performing packed encoding"); + } + switch (writer.wireType) + { + case WireType.String: + { + bool flag4 = writer.model != null && writer.model.ForwardsOnly; + if (flag4) + { + throw new ProtoException("Should not be buffering data"); + } + writer.wireType = WireType.None; + ProtoWriter.DemandSpace(32, writer); + writer.flushLock++; + writer.position++; + num = writer.ioIndex; + writer.ioIndex = num + 1; + return new SubItemToken(num); + } + case WireType.StartGroup: + writer.wireType = WireType.None; + return new SubItemToken(-writer.fieldNumber); + case WireType.Fixed32: + { + bool flag5 = !allowFixed; + if (flag5) + { + throw ProtoWriter.CreateException(writer); + } + ProtoWriter.DemandSpace(32, writer); + writer.flushLock++; + SubItemToken result = new SubItemToken(writer.ioIndex); + ProtoWriter.IncrementedAndReset(4, writer); + return result; + } + } + throw ProtoWriter.CreateException(writer); + } + + public static void EndSubItem(SubItemToken token, ProtoWriter writer) + { + ProtoWriter.EndSubItem(token, writer, PrefixStyle.Base128); + } + + private static void EndSubItem(SubItemToken token, ProtoWriter writer, PrefixStyle style) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + bool flag2 = writer.wireType != WireType.None; + if (flag2) + { + throw ProtoWriter.CreateException(writer); + } + int value = token.value; + bool flag3 = writer.depth <= 0; + if (flag3) + { + throw ProtoWriter.CreateException(writer); + } + int num = writer.depth; + writer.depth = num - 1; + bool flag4 = num > 25; + if (flag4) + { + writer.PopRecursionStack(); + } + writer.packedFieldNumber = 0; + bool flag5 = value < 0; + if (flag5) + { + ProtoWriter.WriteHeaderCore(-value, WireType.EndGroup, writer); + writer.wireType = WireType.None; + } + else + { + switch (style) + { + case PrefixStyle.Base128: + { + int num2 = writer.ioIndex - value - 1; + int num3 = 0; + uint num4 = (uint)num2; + while ((num4 >>= 7) > 0u) + { + num3++; + } + bool flag6 = num3 == 0; + if (flag6) + { + writer.ioBuffer[value] = (byte)(num2 & 127); + } + else + { + ProtoWriter.DemandSpace(num3, writer); + byte[] array = writer.ioBuffer; + Helpers.BlockCopy(array, value + 1, array, value + 1 + num3, num2); + num4 = (uint)num2; + do + { + array[value++] = (byte)((num4 & 127u) | 128u); + } + while ((num4 >>= 7) > 0u); + array[value - 1] = (byte)((int)array[value - 1] & -129); + writer.position += num3; + writer.ioIndex += num3; + } + break; + } + case PrefixStyle.Fixed32: + { + int num2 = writer.ioIndex - value - 4; + ProtoWriter.WriteInt32ToBuffer(num2, writer.ioBuffer, value); + break; + } + case PrefixStyle.Fixed32BigEndian: + { + int num2 = writer.ioIndex - value - 4; + byte[] array2 = writer.ioBuffer; + ProtoWriter.WriteInt32ToBuffer(num2, array2, value); + byte b = array2[value]; + array2[value] = array2[value + 3]; + array2[value + 3] = b; + b = array2[value + 1]; + array2[value + 1] = array2[value + 2]; + array2[value + 2] = b; + break; + } + default: + throw new ArgumentOutOfRangeException("style"); + } + num = writer.flushLock - 1; + writer.flushLock = num; + bool flag7 = num == 0 && writer.ioIndex >= 1024; + if (flag7) + { + ProtoWriter.Flush(writer); + } + } + } + + public ProtoWriter(Stream dest, TypeModel model, SerializationContext context) + { + bool flag = dest == null; + if (flag) + { + throw new ArgumentNullException("dest"); + } + bool flag2 = !dest.CanWrite; + if (flag2) + { + throw new ArgumentException("Cannot write to stream", "dest"); + } + this.dest = dest; + this.ioBuffer = BufferPool.GetBuffer(); + this.model = model; + this.wireType = WireType.None; + bool flag3 = context == null; + if (flag3) + { + context = SerializationContext.Default; + } + else + { + context.Freeze(); + } + this.context = context; + } + + void IDisposable.Dispose() + { + this.Dispose(); + } + + private void Dispose() + { + bool flag = this.dest != null; + if (flag) + { + ProtoWriter.Flush(this); + this.dest = null; + } + this.model = null; + BufferPool.ReleaseBufferToPool(ref this.ioBuffer); + } + + internal static int GetPosition(ProtoWriter writer) + { + return writer.position; + } + + private static void DemandSpace(int required, ProtoWriter writer) + { + bool flag = writer.ioBuffer.Length - writer.ioIndex < required; + if (flag) + { + bool flag2 = writer.flushLock == 0; + if (flag2) + { + ProtoWriter.Flush(writer); + bool flag3 = writer.ioBuffer.Length - writer.ioIndex >= required; + if (flag3) + { + return; + } + } + BufferPool.ResizeAndFlushLeft(ref writer.ioBuffer, required + writer.ioIndex, 0, writer.ioIndex); + } + } + + public void Close() + { + bool flag = this.depth != 0 || this.flushLock != 0; + if (flag) + { + throw new InvalidOperationException("Unable to close stream in an incomplete state"); + } + this.Dispose(); + } + + internal void CheckDepthFlushlock() + { + bool flag = this.depth != 0 || this.flushLock != 0; + if (flag) + { + throw new InvalidOperationException("The writer is in an incomplete state"); + } + } + + internal static void Flush(ProtoWriter writer) + { + bool flag = writer.flushLock == 0 && writer.ioIndex != 0; + if (flag) + { + writer.dest.Write(writer.ioBuffer, 0, writer.ioIndex); + writer.ioIndex = 0; + } + } + + private static void WriteUInt32Variant(uint value, ProtoWriter writer) + { + ProtoWriter.DemandSpace(5, writer); + int num = 0; + do + { + byte[] array = writer.ioBuffer; + int num2 = writer.ioIndex; + writer.ioIndex = num2 + 1; + array[num2] = (byte)((value & 127u) | 128u); + num++; + } + while ((value >>= 7) > 0u); + byte[] array2 = writer.ioBuffer; + int num3 = writer.ioIndex - 1; + array2[num3] &= 127; + writer.position += num; + } + + internal static uint Zig(int value) + { + return (uint)(value << 1 ^ value >> 31); + } + + internal static ulong Zig(long value) + { + return (ulong)(value << 1 ^ value >> 63); + } + + private static void WriteUInt64Variant(ulong value, ProtoWriter writer) + { + ProtoWriter.DemandSpace(10, writer); + int num = 0; + do + { + byte[] array = writer.ioBuffer; + int num2 = writer.ioIndex; + writer.ioIndex = num2 + 1; + array[num2] = (byte)((value & 127UL) | 128UL); + num++; + } + while ((value >>= 7) > 0UL); + byte[] array2 = writer.ioBuffer; + int num3 = writer.ioIndex - 1; + array2[num3] &= 127; + writer.position += num; + } + + public static void WriteString(string value, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + bool flag2 = writer.wireType != WireType.String; + if (flag2) + { + throw ProtoWriter.CreateException(writer); + } + bool flag3 = value == null; + if (flag3) + { + throw new ArgumentNullException("value"); + } + int length = value.Length; + bool flag4 = length == 0; + if (flag4) + { + ProtoWriter.WriteUInt32Variant(0u, writer); + writer.wireType = WireType.None; + } + else + { + int byteCount = ProtoWriter.encoding.GetByteCount(value); + ProtoWriter.WriteUInt32Variant((uint)byteCount, writer); + ProtoWriter.DemandSpace(byteCount, writer); + int bytes = ProtoWriter.encoding.GetBytes(value, 0, value.Length, writer.ioBuffer, writer.ioIndex); + Helpers.DebugAssert(byteCount == bytes); + ProtoWriter.IncrementedAndReset(bytes, writer); + } + } + + public static void WriteUInt64(ulong value, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + WireType wireType = writer.wireType; + if (wireType != WireType.Variant) + { + if (wireType != WireType.Fixed64) + { + if (wireType != WireType.Fixed32) + { + throw ProtoWriter.CreateException(writer); + } + ProtoWriter.WriteUInt32(checked((uint)value), writer); + } + else + { + ProtoWriter.WriteInt64((long)value, writer); + } + } + else + { + ProtoWriter.WriteUInt64Variant(value, writer); + writer.wireType = WireType.None; + } + } + + public static void WriteInt64(long value, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + WireType wireType = writer.wireType; + if (wireType <= WireType.Fixed64) + { + if (wireType == WireType.Variant) + { + bool flag2 = value >= 0L; + if (flag2) + { + ProtoWriter.WriteUInt64Variant((ulong)value, writer); + writer.wireType = WireType.None; + } + else + { + ProtoWriter.DemandSpace(10, writer); + byte[] array = writer.ioBuffer; + int num = writer.ioIndex; + array[num] = (byte)(value | 128L); + array[num + 1] = (byte)((int)(value >> 7) | 128); + array[num + 2] = (byte)((int)(value >> 14) | 128); + array[num + 3] = (byte)((int)(value >> 21) | 128); + array[num + 4] = (byte)((int)(value >> 28) | 128); + array[num + 5] = (byte)((int)(value >> 35) | 128); + array[num + 6] = (byte)((int)(value >> 42) | 128); + array[num + 7] = (byte)((int)(value >> 49) | 128); + array[num + 8] = (byte)((int)(value >> 56) | 128); + array[num + 9] = 1; + ProtoWriter.IncrementedAndReset(10, writer); + } + return; + } + if (wireType == WireType.Fixed64) + { + ProtoWriter.DemandSpace(8, writer); + byte[] array = writer.ioBuffer; + int num = writer.ioIndex; + array[num] = (byte)value; + array[num + 1] = (byte)(value >> 8); + array[num + 2] = (byte)(value >> 16); + array[num + 3] = (byte)(value >> 24); + array[num + 4] = (byte)(value >> 32); + array[num + 5] = (byte)(value >> 40); + array[num + 6] = (byte)(value >> 48); + array[num + 7] = (byte)(value >> 56); + ProtoWriter.IncrementedAndReset(8, writer); + return; + } + } + else + { + if (wireType == WireType.Fixed32) + { + ProtoWriter.WriteInt32(checked((int)value), writer); + return; + } + if (wireType == WireType.SignedVariant) + { + ProtoWriter.WriteUInt64Variant(ProtoWriter.Zig(value), writer); + writer.wireType = WireType.None; + return; + } + } + throw ProtoWriter.CreateException(writer); + } + + public static void WriteUInt32(uint value, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + WireType wireType = writer.wireType; + if (wireType != WireType.Variant) + { + if (wireType != WireType.Fixed64) + { + if (wireType != WireType.Fixed32) + { + throw ProtoWriter.CreateException(writer); + } + ProtoWriter.WriteInt32((int)value, writer); + } + else + { + ProtoWriter.WriteInt64((long)value, writer); + } + } + else + { + ProtoWriter.WriteUInt32Variant(value, writer); + writer.wireType = WireType.None; + } + } + + public static void WriteInt16(short value, ProtoWriter writer) + { + ProtoWriter.WriteInt32((int)value, writer); + } + + public static void WriteUInt16(ushort value, ProtoWriter writer) + { + ProtoWriter.WriteUInt32((uint)value, writer); + } + + public static void WriteByte(byte value, ProtoWriter writer) + { + ProtoWriter.WriteUInt32((uint)value, writer); + } + + public static void WriteSByte(sbyte value, ProtoWriter writer) + { + ProtoWriter.WriteInt32((int)value, writer); + } + + private static void WriteInt32ToBuffer(int value, byte[] buffer, int index) + { + buffer[index] = (byte)value; + buffer[index + 1] = (byte)(value >> 8); + buffer[index + 2] = (byte)(value >> 16); + buffer[index + 3] = (byte)(value >> 24); + } + + public static void WriteInt32(int value, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + WireType wireType = writer.wireType; + if (wireType <= WireType.Fixed64) + { + if (wireType == WireType.Variant) + { + bool flag2 = value >= 0; + if (flag2) + { + ProtoWriter.WriteUInt32Variant((uint)value, writer); + writer.wireType = WireType.None; + } + else + { + ProtoWriter.DemandSpace(10, writer); + byte[] array = writer.ioBuffer; + int num = writer.ioIndex; + array[num] = (byte)(value | 128); + array[num + 1] = (byte)(value >> 7 | 128); + array[num + 2] = (byte)(value >> 14 | 128); + array[num + 3] = (byte)(value >> 21 | 128); + array[num + 4] = (byte)(value >> 28 | 128); + array[num + 5] = (array[num + 6] = (array[num + 7] = (array[num + 8] = byte.MaxValue))); + array[num + 9] = 1; + ProtoWriter.IncrementedAndReset(10, writer); + } + return; + } + if (wireType == WireType.Fixed64) + { + ProtoWriter.DemandSpace(8, writer); + byte[] array = writer.ioBuffer; + int num = writer.ioIndex; + array[num] = (byte)value; + array[num + 1] = (byte)(value >> 8); + array[num + 2] = (byte)(value >> 16); + array[num + 3] = (byte)(value >> 24); + array[num + 4] = (array[num + 5] = (array[num + 6] = (array[num + 7] = 0))); + ProtoWriter.IncrementedAndReset(8, writer); + return; + } + } + else + { + if (wireType == WireType.Fixed32) + { + ProtoWriter.DemandSpace(4, writer); + ProtoWriter.WriteInt32ToBuffer(value, writer.ioBuffer, writer.ioIndex); + ProtoWriter.IncrementedAndReset(4, writer); + return; + } + if (wireType == WireType.SignedVariant) + { + ProtoWriter.WriteUInt32Variant(ProtoWriter.Zig(value), writer); + writer.wireType = WireType.None; + return; + } + } + throw ProtoWriter.CreateException(writer); + } + + public unsafe static void WriteDouble(double value, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + WireType wireType = writer.wireType; + if (wireType != WireType.Fixed64) + { + if (wireType != WireType.Fixed32) + { + throw ProtoWriter.CreateException(writer); + } + float value2 = (float)value; + bool flag2 = Helpers.IsInfinity(value2) && !Helpers.IsInfinity(value); + if (flag2) + { + throw new OverflowException(); + } + ProtoWriter.WriteSingle(value2, writer); + } + else + { + ProtoWriter.WriteInt64(*(long*)(&value), writer); + } + } + + public unsafe static void WriteSingle(float value, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + WireType wireType = writer.wireType; + if (wireType != WireType.Fixed64) + { + if (wireType != WireType.Fixed32) + { + throw ProtoWriter.CreateException(writer); + } + ProtoWriter.WriteInt32(*(int*)(&value), writer); + } + else + { + ProtoWriter.WriteDouble((double)value, writer); + } + } + + public static void ThrowEnumException(ProtoWriter writer, object enumValue) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + string str = (enumValue == null) ? "" : (enumValue.GetType().FullName + "." + enumValue.ToString()); + throw new ProtoException("No wire-value is mapped to the enum " + str + " at position " + writer.position.ToString()); + } + + internal static Exception CreateException(ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + return new ProtoException("Invalid serialization operation with wire-type " + writer.wireType.ToString() + " at position " + writer.position.ToString()); + } + + public static void WriteBoolean(bool value, ProtoWriter writer) + { + ProtoWriter.WriteUInt32(value ? 1u : 0u, writer); + } + + public static void AppendExtensionData(IExtensible instance, ProtoWriter writer) + { + bool flag = instance == null; + if (flag) + { + throw new ArgumentNullException("instance"); + } + bool flag2 = writer == null; + if (flag2) + { + throw new ArgumentNullException("writer"); + } + bool flag3 = writer.wireType != WireType.None; + if (flag3) + { + throw ProtoWriter.CreateException(writer); + } + IExtension extensionObject = instance.GetExtensionObject(false); + bool flag4 = extensionObject != null; + if (flag4) + { + Stream stream = extensionObject.BeginQuery(); + try + { + ProtoWriter.CopyRawFromStream(stream, writer); + } + finally + { + extensionObject.EndQuery(stream); + } + } + } + + public static void SetPackedField(int fieldNumber, ProtoWriter writer) + { + bool flag = fieldNumber <= 0; + if (flag) + { + throw new ArgumentOutOfRangeException("fieldNumber"); + } + bool flag2 = writer == null; + if (flag2) + { + throw new ArgumentNullException("writer"); + } + writer.packedFieldNumber = fieldNumber; + } + + internal string SerializeType(Type type) + { + return TypeModel.SerializeType(this.model, type); + } + + public void SetRootObject(object value) + { + this.NetCache.SetKeyedObject(0, value); + } + + public static void WriteType(Type value, ProtoWriter writer) + { + bool flag = writer == null; + if (flag) + { + throw new ArgumentNullException("writer"); + } + ProtoWriter.WriteString(writer.SerializeType(value), writer); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoWriter.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoWriter.cs.meta new file mode 100644 index 00000000..d48ab681 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/ProtoWriter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8cebcb43dfaf89a44a4f76b395b89452 +timeCreated: 1611404102 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/SerializationContext.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/SerializationContext.cs new file mode 100644 index 00000000..1259b708 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/SerializationContext.cs @@ -0,0 +1,57 @@ +using System; + +namespace ProtoBuf +{ + public sealed class SerializationContext + { + public object Context + { + get + { + return this.context; + } + set + { + bool flag = this.context != value; + if (flag) + { + this.ThrowIfFrozen(); + this.context = value; + } + } + } + + internal static SerializationContext Default + { + get + { + return SerializationContext.@default; + } + } + + private bool frozen; + + private object context; + + private static readonly SerializationContext @default = new SerializationContext(); + + internal void Freeze() + { + this.frozen = true; + } + + private void ThrowIfFrozen() + { + bool flag = this.frozen; + if (flag) + { + throw new InvalidOperationException("The serialization-context cannot be changed once it is in use"); + } + } + + static SerializationContext() + { + SerializationContext.@default.Freeze(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/SerializationContext.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/SerializationContext.cs.meta new file mode 100644 index 00000000..bee2c1d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/SerializationContext.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 319befc067bfd6442bc8aaae3dd8e140 +timeCreated: 1611403546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializer.cs new file mode 100644 index 00000000..c80cdea0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializer.cs @@ -0,0 +1,268 @@ +using System; +using System.Collections.Generic; +using System.IO; +using ProtoBuf.Meta; + +namespace ProtoBuf +{ + public static class Serializer + { + private static bool useMultiThread = false; + + public static bool isSkipProtoIgnore = false; + + private const string ProtoBinaryField = "proto"; + + public const int ListItemTag = 1; + + public static class NonGeneric + { + public static object DeepClone(object instance) + { + return (instance == null) ? null : RuntimeTypeModel.Default.DeepClone(instance); + } + + public static void Serialize(Stream dest, object instance) + { + bool flag = instance != null; + if (flag) + { + RuntimeTypeModel.Default.Serialize(dest, instance); + } + } + + public static object Deserialize(Type type, Stream source) + { + return RuntimeTypeModel.Default.Deserialize(source, null, type); + } + + public static object Merge(Stream source, object instance) + { + bool flag = instance == null; + if (flag) + { + throw new ArgumentNullException("instance"); + } + return RuntimeTypeModel.Default.Deserialize(source, instance, instance.GetType(), null); + } + + public static void SerializeWithLengthPrefix(Stream destination, object instance, PrefixStyle style, int fieldNumber) + { + bool flag = instance == null; + if (flag) + { + throw new ArgumentNullException("instance"); + } + RuntimeTypeModel @default = RuntimeTypeModel.Default; + @default.SerializeWithLengthPrefix(destination, instance, @default.MapType(instance.GetType()), style, fieldNumber); + } + + public static bool TryDeserializeWithLengthPrefix(Stream source, PrefixStyle style, Serializer.TypeResolver resolver, out object value) + { + value = RuntimeTypeModel.Default.DeserializeWithLengthPrefix(source, null, null, style, 0, resolver); + return value != null; + } + + public static bool CanSerialize(Type type) + { + return RuntimeTypeModel.Default.IsDefined(type); + } + } + + public static class GlobalOptions + { + [Obsolete("Please use RuntimeTypeModel.Default.InferTagFromNameDefault instead (or on a per-model basis)", false)] + public static bool InferTagFromName + { + get + { + return RuntimeTypeModel.Default.InferTagFromNameDefault; + } + set + { + RuntimeTypeModel.Default.InferTagFromNameDefault = value; + } + } + } + + public delegate Type TypeResolver(int fieldNumber); + + public static string GetProto() + { + return RuntimeTypeModel.Default.GetSchema(RuntimeTypeModel.Default.MapType(typeof(T))); + } + + public static void SetMultiThread(bool multiThread) + { + Serializer.useMultiThread = multiThread; + } + + public static void SetSkipProtoIgnore(bool skipProtoIgnore) + { + Serializer.isSkipProtoIgnore = skipProtoIgnore; + } + + public static T DeepClone(T instance) + { + bool flag = instance == null; + T result; + if (flag) + { + result = instance; + } + else + { + bool flag2 = Serializer.useMultiThread; + if (flag2) + { + RuntimeTypeModel @default = RuntimeTypeModel.Default; + RuntimeTypeModel obj = @default; + lock (obj) + { + return (T)((object)@default.DeepClone(instance)); + } + } + result = (T)((object)RuntimeTypeModel.Default.DeepClone(instance)); + } + return result; + } + + public static T Merge(Stream source, T instance) + { + bool flag = Serializer.useMultiThread; + if (flag) + { + RuntimeTypeModel @default = RuntimeTypeModel.Default; + RuntimeTypeModel obj = @default; + lock (obj) + { + return (T)((object)@default.Deserialize(source, instance, typeof(T))); + } + } + return (T)((object)RuntimeTypeModel.Default.Deserialize(source, instance, typeof(T))); + } + + public static T Deserialize(Stream source) + { + bool flag = Serializer.useMultiThread; + if (flag) + { + RuntimeTypeModel @default = RuntimeTypeModel.Default; + RuntimeTypeModel obj = @default; + lock (obj) + { + return (T)((object)@default.Deserialize(source, null, typeof(T))); + } + } + return (T)((object)RuntimeTypeModel.Default.Deserialize(source, null, typeof(T))); + } + + public static void Serialize(Stream destination, T instance) + { + bool flag = instance != null; + if (flag) + { + bool flag2 = Serializer.useMultiThread; + if (flag2) + { + RuntimeTypeModel @default = RuntimeTypeModel.Default; + RuntimeTypeModel obj = @default; + lock (obj) + { + @default.Serialize(destination, instance); + } + } + else + { + RuntimeTypeModel.Default.Serialize(destination, instance); + } + } + } + + public static void Clear() + { + bool flag = Serializer.useMultiThread; + if (flag) + { + RuntimeTypeModel @default = RuntimeTypeModel.Default; + RuntimeTypeModel obj = @default; + lock (obj) + { + RuntimeTypeModel.Default.Clear(); + } + } + } + + public static TTo ChangeType(TFrom instance) + { + TTo result; + using (MemoryStream memoryStream = new MemoryStream()) + { + Serializer.Serialize(memoryStream, instance); + memoryStream.Position = 0L; + result = Serializer.Deserialize(memoryStream); + } + return result; + } + + public static void PrepareSerializer() + { + } + + public static IEnumerable DeserializeItems(Stream source, PrefixStyle style, int fieldNumber) + { + return RuntimeTypeModel.Default.DeserializeItems(source, style, fieldNumber); + } + + public static T DeserializeWithLengthPrefix(Stream source, PrefixStyle style) + { + return Serializer.DeserializeWithLengthPrefix(source, style, 0); + } + + public static T DeserializeWithLengthPrefix(Stream source, PrefixStyle style, int fieldNumber) + { + RuntimeTypeModel @default = RuntimeTypeModel.Default; + return (T)((object)@default.DeserializeWithLengthPrefix(source, null, @default.MapType(typeof(T)), style, fieldNumber)); + } + + public static T MergeWithLengthPrefix(Stream source, T instance, PrefixStyle style) + { + RuntimeTypeModel @default = RuntimeTypeModel.Default; + return (T)((object)@default.DeserializeWithLengthPrefix(source, instance, @default.MapType(typeof(T)), style, 0)); + } + + public static void SerializeWithLengthPrefix(Stream destination, T instance, PrefixStyle style) + { + Serializer.SerializeWithLengthPrefix(destination, instance, style, 0); + } + + public static void SerializeWithLengthPrefix(Stream destination, T instance, PrefixStyle style, int fieldNumber) + { + RuntimeTypeModel @default = RuntimeTypeModel.Default; + @default.SerializeWithLengthPrefix(destination, instance, @default.MapType(typeof(T)), style, fieldNumber); + } + + public static bool TryReadLengthPrefix(Stream source, PrefixStyle style, out int length) + { + int num; + int num2; + length = ProtoReader.ReadLengthPrefix(source, false, style, out num, out num2); + return num2 > 0; + } + + public static bool TryReadLengthPrefix(byte[] buffer, int index, int count, PrefixStyle style, out int length) + { + bool result; + using (Stream stream = new MemoryStream(buffer, index, count)) + { + result = Serializer.TryReadLengthPrefix(stream, style, out length); + } + return result; + } + + public static void FlushPool() + { + BufferPool.Flush(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializer.cs.meta new file mode 100644 index 00000000..f04470b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee0c523c5c10b2346acfce15319ae03f +timeCreated: 1611404794 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers.meta new file mode 100644 index 00000000..c6dff761 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: c248e27ce1181c040af92086667ee0e6 +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ArrayDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ArrayDecorator.cs new file mode 100644 index 00000000..9634fafb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ArrayDecorator.cs @@ -0,0 +1,172 @@ +using System; +using System.Collections; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class ArrayDecorator : ProtoDecoratorBase + { + public override Type ExpectedType + { + get + { + return this.arrayType; + } + } + + public override bool RequiresOldValue + { + get + { + return this.AppendToCollection; + } + } + + public override bool ReturnsValue + { + get + { + return true; + } + } + + private bool AppendToCollection + { + get + { + return (this.options & 2) == 0; + } + } + + private bool SupportNull + { + get + { + return (this.options & 4) > 0; + } + } + + private readonly int fieldNumber; + + private const byte OPTIONS_WritePacked = 1; + + private const byte OPTIONS_OverwriteList = 2; + + private const byte OPTIONS_SupportNull = 4; + + private readonly byte options; + + private readonly WireType packedWireType; + + private readonly Type arrayType; + + private readonly Type itemType; + + public ArrayDecorator(TypeModel model, IProtoSerializer tail, int fieldNumber, bool writePacked, WireType packedWireType, Type arrayType, bool overwriteList, bool supportNull) : base(tail) + { + Helpers.DebugAssert(arrayType != null, "arrayType should be non-null"); + Helpers.DebugAssert(arrayType.IsArray && arrayType.GetArrayRank() == 1, "should be single-dimension array; " + arrayType.FullName); + this.itemType = arrayType.GetElementType(); + Type type = supportNull ? this.itemType : (Helpers.GetUnderlyingType(this.itemType) ?? this.itemType); + Helpers.DebugAssert(type == this.Tail.ExpectedType, "invalid tail"); + Helpers.DebugAssert(this.Tail.ExpectedType != model.MapType(typeof(byte)), "Should have used BlobSerializer"); + bool flag = (writePacked || packedWireType != WireType.None) && fieldNumber <= 0; + if (flag) + { + throw new ArgumentOutOfRangeException("fieldNumber"); + } + bool flag2 = !ListDecorator.CanPack(packedWireType); + if (flag2) + { + if (writePacked) + { + throw new InvalidOperationException("Only simple data-types can use packed encoding"); + } + packedWireType = WireType.None; + } + this.fieldNumber = fieldNumber; + this.packedWireType = packedWireType; + if (writePacked) + { + this.options |= 1; + } + if (overwriteList) + { + this.options |= 2; + } + if (supportNull) + { + this.options |= 4; + } + this.arrayType = arrayType; + } + + public override void Write(object value, ProtoWriter dest) + { + IList list = (IList)value; + int count = list.Count; + bool flag = (this.options & 1) > 0; + bool flag2 = flag; + SubItemToken token; + if (flag2) + { + ProtoWriter.WriteFieldHeader(this.fieldNumber, WireType.String, dest); + token = ProtoWriter.StartSubItem(value, dest); + ProtoWriter.SetPackedField(this.fieldNumber, dest); + } + else + { + token = default(SubItemToken); + } + bool flag3 = !this.SupportNull; + for (int i = 0; i < count; i++) + { + object obj = list[i]; + bool flag4 = flag3 && obj == null; + if (flag4) + { + throw new NullReferenceException(); + } + this.Tail.Write(obj, dest); + } + bool flag5 = flag; + if (flag5) + { + ProtoWriter.EndSubItem(token, dest); + } + } + + public override object Read(object value, ProtoReader source) + { + int field = source.FieldNumber; + BasicList basicList = new BasicList(); + bool flag = this.packedWireType != WireType.None && source.WireType == WireType.String; + if (flag) + { + SubItemToken token = ProtoReader.StartSubItem(source); + while (ProtoReader.HasSubValue(this.packedWireType, source)) + { + basicList.Add(this.Tail.Read(null, source)); + } + ProtoReader.EndSubItem(token, source); + } + else + { + do + { + basicList.Add(this.Tail.Read(null, source)); + } + while (source.TryReadFieldHeader(field)); + } + int num = this.AppendToCollection ? ((value == null) ? 0 : ((Array)value).Length) : 0; + Array array = Array.CreateInstance(this.itemType, num + basicList.Count); + bool flag2 = num != 0; + if (flag2) + { + ((Array)value).CopyTo(array, 0); + } + basicList.CopyTo(array, num); + return array; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ArrayDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ArrayDecorator.cs.meta new file mode 100644 index 00000000..4118f71e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ArrayDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfb085ae7c0ba154c8a66f748221079a +timeCreated: 1611404582 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BlobSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BlobSerializer.cs new file mode 100644 index 00000000..b249fe6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BlobSerializer.cs @@ -0,0 +1,51 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class BlobSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return BlobSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return !this.overwriteList; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(byte[]); + + private readonly bool overwriteList; + + public BlobSerializer(TypeModel model, bool overwriteList) + { + this.overwriteList = overwriteList; + } + + public object Read(object value, ProtoReader source) + { + return ProtoReader.AppendBytes(this.overwriteList ? null : ((byte[])value), source); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteBytes((byte[])value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BlobSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BlobSerializer.cs.meta new file mode 100644 index 00000000..b521ab6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BlobSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 017be01ffdc177044beb3e9b4ecba537 +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BooleanSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BooleanSerializer.cs new file mode 100644 index 00000000..93f5b63c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BooleanSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class BooleanSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return BooleanSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(bool); + + public BooleanSerializer(TypeModel model) + { + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteBoolean((bool)value, dest); + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadBoolean(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BooleanSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BooleanSerializer.cs.meta new file mode 100644 index 00000000..f809b897 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/BooleanSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 649d4d3ef34c60e48be87bc1648abf7b +timeCreated: 1611403848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ByteSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ByteSerializer.cs new file mode 100644 index 00000000..5699af9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ByteSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class ByteSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return ByteSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(byte); + + public ByteSerializer(TypeModel model) + { + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteByte((byte)value, dest); + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadByte(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ByteSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ByteSerializer.cs.meta new file mode 100644 index 00000000..730f66c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ByteSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9a349c90850d3b479ef0b631a202e04 +timeCreated: 1611404539 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/CharSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/CharSerializer.cs new file mode 100644 index 00000000..f2a9867a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/CharSerializer.cs @@ -0,0 +1,33 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class CharSerializer : UInt16Serializer + { + public override Type ExpectedType + { + get + { + return CharSerializer.expectedType; + } + } + + private static readonly Type expectedType = typeof(char); + + public CharSerializer(TypeModel model) : base(model) + { + } + + public override void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteUInt16((ushort)((char)value), dest); + } + + public override object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return (char)source.ReadUInt16(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/CharSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/CharSerializer.cs.meta new file mode 100644 index 00000000..79753d83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/CharSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a2711f42e4488d43a40e0ae660ff0fc +timeCreated: 1611404090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DateTimeSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DateTimeSerializer.cs new file mode 100644 index 00000000..47895725 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DateTimeSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class DateTimeSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return DateTimeSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(DateTime); + + public DateTimeSerializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return BclHelpers.ReadDateTime(source); + } + + public void Write(object value, ProtoWriter dest) + { + BclHelpers.WriteDateTime((DateTime)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DateTimeSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DateTimeSerializer.cs.meta new file mode 100644 index 00000000..706f3b5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DateTimeSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 364d58f505fc4e64b8e0810ce3ab8b2f +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DecimalSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DecimalSerializer.cs new file mode 100644 index 00000000..fd6c3ceb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DecimalSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class DecimalSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return DecimalSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(decimal); + + public DecimalSerializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return BclHelpers.ReadDecimal(source); + } + + public void Write(object value, ProtoWriter dest) + { + BclHelpers.WriteDecimal((decimal)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DecimalSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DecimalSerializer.cs.meta new file mode 100644 index 00000000..f224e2b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DecimalSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 644402a116273d14d938548871680373 +timeCreated: 1611403847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DefaultValueDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DefaultValueDecorator.cs new file mode 100644 index 00000000..cbbe2821 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DefaultValueDecorator.cs @@ -0,0 +1,64 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class DefaultValueDecorator : ProtoDecoratorBase + { + public override Type ExpectedType + { + get + { + return this.Tail.ExpectedType; + } + } + + public override bool RequiresOldValue + { + get + { + return this.Tail.RequiresOldValue; + } + } + + public override bool ReturnsValue + { + get + { + return this.Tail.ReturnsValue; + } + } + + private readonly object defaultValue; + + public DefaultValueDecorator(TypeModel model, object defaultValue, IProtoSerializer tail) : base(tail) + { + bool flag = defaultValue == null; + if (flag) + { + throw new ArgumentNullException("defaultValue"); + } + Type type = model.MapType(defaultValue.GetType()); + bool flag2 = type != tail.ExpectedType; + if (flag2) + { + throw new ArgumentException("Default value is of incorrect type", "defaultValue"); + } + this.defaultValue = defaultValue; + } + + public override void Write(object value, ProtoWriter dest) + { + bool flag = !object.Equals(value, this.defaultValue); + if (flag) + { + this.Tail.Write(value, dest); + } + } + + public override object Read(object value, ProtoReader source) + { + return this.Tail.Read(value, source); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DefaultValueDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DefaultValueDecorator.cs.meta new file mode 100644 index 00000000..d7ed0ccf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DefaultValueDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c318dd759689fa24fa949fbac543b491 +timeCreated: 1611404496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DoubleSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DoubleSerializer.cs new file mode 100644 index 00000000..fa250b9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DoubleSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class DoubleSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return DoubleSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(double); + + public DoubleSerializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadDouble(); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteDouble((double)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DoubleSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DoubleSerializer.cs.meta new file mode 100644 index 00000000..14abd32a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/DoubleSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be222b20076978a42b534a41d4fffc33 +timeCreated: 1611404458 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/EnumSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/EnumSerializer.cs new file mode 100644 index 00000000..3136c29e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/EnumSerializer.cs @@ -0,0 +1,213 @@ +using System; +using XUtliPoolLib; + +namespace ProtoBuf.Serializers +{ + internal sealed class EnumSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return this.enumType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private readonly Type enumType; + + private readonly EnumSerializer.EnumPair[] map; + + public struct EnumPair + { + public readonly object RawValue; + + public readonly Enum TypedValue; + + public readonly int WireValue; + + public EnumPair(int wireValue, object raw, Type type) + { + this.WireValue = wireValue; + this.RawValue = raw; + this.TypedValue = (Enum)Enum.ToObject(type, raw); + } + } + + public EnumSerializer(Type enumType, EnumSerializer.EnumPair[] map) + { + bool flag = enumType == null; + if (flag) + { + throw new ArgumentNullException("enumType"); + } + this.enumType = enumType; + this.map = map; + bool flag2 = map != null; + if (flag2) + { + for (int i = 1; i < map.Length; i++) + { + for (int j = 0; j < i; j++) + { + bool flag3 = map[i].WireValue == map[j].WireValue && !object.Equals(map[i].RawValue, map[j].RawValue); + if (flag3) + { + throw new ProtoException("Multiple enums with wire-value " + map[i].WireValue.ToString()); + } + bool flag4 = object.Equals(map[i].RawValue, map[j].RawValue) && map[i].WireValue != map[j].WireValue; + if (flag4) + { + throw new ProtoException("Multiple enums with deserialized-value " + map[i].RawValue); + } + } + } + } + } + + private ProtoTypeCode GetTypeCode() + { + Type underlyingType = Helpers.GetUnderlyingType(this.enumType); + bool flag = underlyingType == null; + if (flag) + { + underlyingType = this.enumType; + } + return Helpers.GetTypeCode(underlyingType); + } + + private int EnumToWire(object value) + { + int result; + switch (this.GetTypeCode()) + { + case ProtoTypeCode.SByte: + result = (int)((sbyte)value); + break; + case ProtoTypeCode.Byte: + result = (int)((byte)value); + break; + case ProtoTypeCode.Int16: + result = (int)((short)value); + break; + case ProtoTypeCode.UInt16: + result = (int)((ushort)value); + break; + case ProtoTypeCode.Int32: + result = (int)value; + break; + case ProtoTypeCode.UInt32: + result = (int)((uint)value); + break; + case ProtoTypeCode.Int64: + result = (int)((long)value); + break; + case ProtoTypeCode.UInt64: + result = (int)((ulong)value); + break; + default: + throw new InvalidOperationException(); + } + return result; + } + + private object WireToEnum(int value) + { + object result; + switch (this.GetTypeCode()) + { + case ProtoTypeCode.SByte: + result = Enum.ToObject(this.enumType, (sbyte)value); + break; + case ProtoTypeCode.Byte: + result = Enum.ToObject(this.enumType, (byte)value); + break; + case ProtoTypeCode.Int16: + result = Enum.ToObject(this.enumType, (short)value); + break; + case ProtoTypeCode.UInt16: + result = Enum.ToObject(this.enumType, (ushort)value); + break; + case ProtoTypeCode.Int32: + result = Enum.ToObject(this.enumType, value); + break; + case ProtoTypeCode.UInt32: + result = Enum.ToObject(this.enumType, (uint)value); + break; + case ProtoTypeCode.Int64: + result = Enum.ToObject(this.enumType, (long)value); + break; + case ProtoTypeCode.UInt64: + result = Enum.ToObject(this.enumType, (ulong)((long)value)); + break; + default: + throw new InvalidOperationException(); + } + return result; + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + int num = source.ReadInt32(); + bool flag = this.map == null; + object result; + if (flag) + { + result = this.WireToEnum(num); + } + else + { + for (int i = 0; i < this.map.Length; i++) + { + bool flag2 = this.map[i].WireValue == num; + if (flag2) + { + return this.map[i].TypedValue; + } + } + XSingleton.singleton.AddWarningLog("Warning: No ", (this.ExpectedType == null) ? "" : this.ExpectedType.FullName, " enum is mapped to the wire-value ", num.ToString(), null, null); + result = this.WireToEnum(num); + } + return result; + } + + public void Write(object value, ProtoWriter dest) + { + bool flag = this.map == null; + if (flag) + { + ProtoWriter.WriteInt32(this.EnumToWire(value), dest); + } + else + { + for (int i = 0; i < this.map.Length; i++) + { + bool flag2 = object.Equals(this.map[i].TypedValue, value); + if (flag2) + { + ProtoWriter.WriteInt32(this.map[i].WireValue, dest); + return; + } + } + XSingleton.singleton.AddErrorLog("Warning: No wire-value is mapped to the enum ", (value == null) ? "" : (value.GetType().FullName + "." + value.ToString()), " at position ", (dest == null) ? "unknown" : ProtoWriter.GetPosition(dest).ToString(), null, null); + ProtoWriter.WriteInt32(this.EnumToWire(value), dest); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/EnumSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/EnumSerializer.cs.meta new file mode 100644 index 00000000..b7d8f3ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/EnumSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f5b7489e6b0ddc4b93c4825e7a746fe +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/FieldDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/FieldDecorator.cs new file mode 100644 index 00000000..144ab3e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/FieldDecorator.cs @@ -0,0 +1,67 @@ +using System; +using System.Reflection; + +namespace ProtoBuf.Serializers +{ + internal sealed class FieldDecorator : ProtoDecoratorBase + { + public override Type ExpectedType + { + get + { + return this.forType; + } + } + + public override bool RequiresOldValue + { + get + { + return true; + } + } + + public override bool ReturnsValue + { + get + { + return false; + } + } + + private readonly FieldInfo field; + + private readonly Type forType; + + public FieldDecorator(Type forType, FieldInfo field, IProtoSerializer tail) : base(tail) + { + Helpers.DebugAssert(forType != null); + Helpers.DebugAssert(field != null); + this.forType = forType; + this.field = field; + } + + public override void Write(object value, ProtoWriter dest) + { + Helpers.DebugAssert(value != null); + value = this.field.GetValue(value); + bool flag = value != null; + if (flag) + { + this.Tail.Write(value, dest); + } + } + + public override object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value != null); + object obj = this.Tail.Read(this.Tail.RequiresOldValue ? this.field.GetValue(value) : null, source); + bool flag = obj != null; + if (flag) + { + this.field.SetValue(value, obj); + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/FieldDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/FieldDecorator.cs.meta new file mode 100644 index 00000000..b0e12b26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/FieldDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7652c542da7cdc84ea87f1238de8651a +timeCreated: 1611403949 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/GuidSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/GuidSerializer.cs new file mode 100644 index 00000000..f9edaec9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/GuidSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class GuidSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return GuidSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(Guid); + + public GuidSerializer(TypeModel model) + { + } + + public void Write(object value, ProtoWriter dest) + { + BclHelpers.WriteGuid((Guid)value, dest); + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return BclHelpers.ReadGuid(source); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/GuidSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/GuidSerializer.cs.meta new file mode 100644 index 00000000..7bdf5b62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/GuidSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1743c869ef5abe840a34aeb5767cd253 +timeCreated: 1611403292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoSerializer.cs new file mode 100644 index 00000000..401b758a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoSerializer.cs @@ -0,0 +1,17 @@ +using System; + +namespace ProtoBuf.Serializers +{ + internal interface IProtoSerializer + { + Type ExpectedType { get; } + + bool RequiresOldValue { get; } + + bool ReturnsValue { get; } + + void Write(object value, ProtoWriter dest); + + object Read(object value, ProtoReader source); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoSerializer.cs.meta new file mode 100644 index 00000000..1fc41e76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: afc4abbab9743b74480e53f6e061e1c4 +timeCreated: 1611404347 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoTypeSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoTypeSerializer.cs new file mode 100644 index 00000000..d45e8049 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoTypeSerializer.cs @@ -0,0 +1,16 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal interface IProtoTypeSerializer : IProtoSerializer + { + bool HasCallbacks(TypeModel.CallbackType callbackType); + + bool CanCreateInstance(); + + object CreateInstance(ProtoReader source); + + void Callback(object value, TypeModel.CallbackType callbackType, SerializationContext context); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoTypeSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoTypeSerializer.cs.meta new file mode 100644 index 00000000..0f9231d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/IProtoTypeSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12c7d0a3501f09743a248ea724ff6427 +timeCreated: 1611403243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ISerializerProxy.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ISerializerProxy.cs new file mode 100644 index 00000000..7105976b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ISerializerProxy.cs @@ -0,0 +1,9 @@ +using System; + +namespace ProtoBuf.Serializers +{ + internal interface ISerializerProxy + { + IProtoSerializer Serializer { get; } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ISerializerProxy.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ISerializerProxy.cs.meta new file mode 100644 index 00000000..86848b70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ISerializerProxy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19beab5bc626c734aafa122334e6aee2 +timeCreated: 1611403304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ImmutableCollectionDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ImmutableCollectionDecorator.cs new file mode 100644 index 00000000..8133228d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ImmutableCollectionDecorator.cs @@ -0,0 +1,252 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Reflection; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class ImmutableCollectionDecorator : ListDecorator + { + protected override bool RequireAdd + { + get + { + return false; + } + } + + private readonly MethodInfo builderFactory; + + private readonly MethodInfo add; + + private readonly MethodInfo addRange; + + private readonly MethodInfo finish; + + private static Type ResolveIReadOnlyCollection(Type declaredType, Type t) + { + foreach (Type type in declaredType.GetInterfaces()) + { + bool flag = type.IsGenericType && type.Name.StartsWith("IReadOnlyCollection`"); + if (flag) + { + bool flag2 = t != null; + if (flag2) + { + Type[] genericArguments = type.GetGenericArguments(); + bool flag3 = genericArguments.Length != 1 && genericArguments[0] != t; + if (flag3) + { + goto IL_68; + } + } + return type; + } + IL_68:; + } + return null; + } + + internal static bool IdentifyImmutable(TypeModel model, Type declaredType, out MethodInfo builderFactory, out MethodInfo add, out MethodInfo addRange, out MethodInfo finish) + { + MethodInfo methodInfo; + finish = (methodInfo = null); + addRange = (methodInfo = methodInfo); + add = (methodInfo = methodInfo); + builderFactory = methodInfo; + bool flag = model == null || declaredType == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !declaredType.IsGenericType; + if (flag2) + { + result = false; + } + else + { + Type[] genericArguments = declaredType.GetGenericArguments(); + int num = genericArguments.Length; + Type[] array; + if (num != 1) + { + if (num != 2) + { + return false; + } + Type type = model.MapType(typeof(KeyValuePair<, >)); + bool flag3 = type == null; + if (flag3) + { + return false; + } + type = type.MakeGenericType(genericArguments); + array = new Type[] + { + type + }; + } + else + { + array = genericArguments; + } + bool flag4 = ImmutableCollectionDecorator.ResolveIReadOnlyCollection(declaredType, null) == null; + if (flag4) + { + result = false; + } + else + { + string text = declaredType.Name; + int num2 = text.IndexOf('`'); + bool flag5 = num2 <= 0; + if (flag5) + { + result = false; + } + else + { + text = (declaredType.IsInterface ? text.Substring(1, num2 - 1) : text.Substring(0, num2)); + Type type2 = model.GetType(declaredType.Namespace + "." + text, declaredType.Assembly); + bool flag6 = type2 == null && text == "ImmutableSet"; + if (flag6) + { + type2 = model.GetType(declaredType.Namespace + ".ImmutableHashSet", declaredType.Assembly); + } + bool flag7 = type2 == null; + if (flag7) + { + result = false; + } + else + { + foreach (MethodInfo methodInfo2 in type2.GetMethods()) + { + bool flag8 = !methodInfo2.IsStatic || methodInfo2.Name != "CreateBuilder" || !methodInfo2.IsGenericMethodDefinition || methodInfo2.GetParameters().Length != 0 || methodInfo2.GetGenericArguments().Length != genericArguments.Length; + if (!flag8) + { + builderFactory = methodInfo2.MakeGenericMethod(genericArguments); + break; + } + } + Type type3 = model.MapType(typeof(void)); + bool flag9 = builderFactory == null || builderFactory.ReturnType == null || builderFactory.ReturnType == type3; + if (flag9) + { + result = false; + } + else + { + add = Helpers.GetInstanceMethod(builderFactory.ReturnType, "Add", array); + bool flag10 = add == null; + if (flag10) + { + result = false; + } + else + { + finish = Helpers.GetInstanceMethod(builderFactory.ReturnType, "ToImmutable", Helpers.EmptyTypes); + bool flag11 = finish == null || finish.ReturnType == null || finish.ReturnType == type3; + if (flag11) + { + result = false; + } + else + { + bool flag12 = finish.ReturnType != declaredType && !Helpers.IsAssignableFrom(declaredType, finish.ReturnType); + if (flag12) + { + result = false; + } + else + { + addRange = Helpers.GetInstanceMethod(builderFactory.ReturnType, "AddRange", new Type[] + { + declaredType + }); + bool flag13 = addRange == null; + if (flag13) + { + Type type4 = model.MapType(typeof(IEnumerable<>), false); + bool flag14 = type4 != null; + if (flag14) + { + addRange = Helpers.GetInstanceMethod(builderFactory.ReturnType, "AddRange", new Type[] + { + type4.MakeGenericType(array) + }); + } + } + result = true; + } + } + } + } + } + } + } + } + } + return result; + } + + internal ImmutableCollectionDecorator(TypeModel model, Type declaredType, Type concreteType, IProtoSerializer tail, int fieldNumber, bool writePacked, WireType packedWireType, bool returnList, bool overwriteList, bool supportNull, MethodInfo builderFactory, MethodInfo add, MethodInfo addRange, MethodInfo finish) : base(model, declaredType, concreteType, tail, fieldNumber, writePacked, packedWireType, returnList, overwriteList, supportNull) + { + this.builderFactory = builderFactory; + this.add = add; + this.addRange = addRange; + this.finish = finish; + } + + public override object Read(object value, ProtoReader source) + { + object obj = this.builderFactory.Invoke(null, null); + int fieldNumber = source.FieldNumber; + object[] s_argsRead = ProtoDecoratorBase.s_argsRead; + bool flag = base.AppendToCollection && value != null && ((IList)value).Count != 0; + if (flag) + { + bool flag2 = this.addRange != null; + if (flag2) + { + s_argsRead[0] = value; + this.addRange.Invoke(obj, s_argsRead); + } + else + { + foreach (object obj2 in ((IList)value)) + { + s_argsRead[0] = obj2; + this.add.Invoke(obj, s_argsRead); + } + } + } + bool flag3 = this.packedWireType != WireType.None && source.WireType == WireType.String; + if (flag3) + { + SubItemToken token = ProtoReader.StartSubItem(source); + while (ProtoReader.HasSubValue(this.packedWireType, source)) + { + s_argsRead[0] = this.Tail.Read(null, source); + this.add.Invoke(obj, s_argsRead); + } + ProtoReader.EndSubItem(token, source); + } + else + { + do + { + s_argsRead[0] = this.Tail.Read(null, source); + this.add.Invoke(obj, s_argsRead); + } + while (source.TryReadFieldHeader(fieldNumber)); + } + return this.finish.Invoke(obj, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ImmutableCollectionDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ImmutableCollectionDecorator.cs.meta new file mode 100644 index 00000000..8ffa65f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ImmutableCollectionDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 995822048d3cf254a8a90d30634d77bd +timeCreated: 1611404195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int16Serializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int16Serializer.cs new file mode 100644 index 00000000..e50ab1a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int16Serializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class Int16Serializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return Int16Serializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(short); + + public Int16Serializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadInt16(); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteInt16((short)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int16Serializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int16Serializer.cs.meta new file mode 100644 index 00000000..d67d3dbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int16Serializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a35395277c429fe4e81a544136a3b71f +timeCreated: 1611404260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int32Serializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int32Serializer.cs new file mode 100644 index 00000000..29c21112 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int32Serializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class Int32Serializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return Int32Serializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(int); + + public Int32Serializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadInt32(); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteInt32((int)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int32Serializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int32Serializer.cs.meta new file mode 100644 index 00000000..c765da66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int32Serializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02408c964247cdc48af98e06a8bc7fbd +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int64Serializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int64Serializer.cs new file mode 100644 index 00000000..857ac8f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int64Serializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class Int64Serializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return Int64Serializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(long); + + public Int64Serializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadInt64(); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteInt64((long)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int64Serializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int64Serializer.cs.meta new file mode 100644 index 00000000..a75538f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/Int64Serializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b883828ac17beb84db2bbd7bc703d530 +timeCreated: 1611404405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ListDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ListDecorator.cs new file mode 100644 index 00000000..2c03de30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ListDecorator.cs @@ -0,0 +1,365 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Reflection; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal class ListDecorator : ProtoDecoratorBase + { + private bool IsList + { + get + { + return (this.options & 1) > 0; + } + } + + private bool SuppressIList + { + get + { + return (this.options & 2) > 0; + } + } + + private bool WritePacked + { + get + { + return (this.options & 4) > 0; + } + } + + private bool SupportNull + { + get + { + return (this.options & 32) > 0; + } + } + + private bool ReturnList + { + get + { + return (this.options & 8) > 0; + } + } + + protected virtual bool RequireAdd + { + get + { + return true; + } + } + + public override Type ExpectedType + { + get + { + return this.declaredType; + } + } + + public override bool RequiresOldValue + { + get + { + return this.AppendToCollection; + } + } + + public override bool ReturnsValue + { + get + { + return this.ReturnList; + } + } + + protected bool AppendToCollection + { + get + { + return (this.options & 16) == 0; + } + } + + private readonly byte options; + + private const byte OPTIONS_IsList = 1; + + private const byte OPTIONS_SuppressIList = 2; + + private const byte OPTIONS_WritePacked = 4; + + private const byte OPTIONS_ReturnList = 8; + + private const byte OPTIONS_OverwriteList = 16; + + private const byte OPTIONS_SupportNull = 32; + + private readonly Type declaredType; + + private readonly Type concreteType; + + private readonly MethodInfo add; + + private readonly int fieldNumber; + + protected readonly WireType packedWireType; + + private static readonly Type ienumeratorType = typeof(IEnumerator); + + private static readonly Type ienumerableType = typeof(IEnumerable); + + internal static bool CanPack(WireType wireType) + { + return wireType <= WireType.Fixed64 || wireType == WireType.Fixed32 || wireType == WireType.SignedVariant; + } + + internal static ListDecorator Create(TypeModel model, Type declaredType, Type concreteType, IProtoSerializer tail, int fieldNumber, bool writePacked, WireType packedWireType, bool returnList, bool overwriteList, bool supportNull) + { + MethodInfo builderFactory = null; + MethodInfo methodInfo = null; + MethodInfo addRange = null; + MethodInfo finish = null; + bool flag = returnList && ImmutableCollectionDecorator.IdentifyImmutable(model, declaredType, out builderFactory, out methodInfo, out addRange, out finish); + ListDecorator result; + if (flag) + { + result = new ImmutableCollectionDecorator(model, declaredType, concreteType, tail, fieldNumber, writePacked, packedWireType, returnList, overwriteList, supportNull, builderFactory, methodInfo, addRange, finish); + } + else + { + result = new ListDecorator(model, declaredType, concreteType, tail, fieldNumber, writePacked, packedWireType, returnList, overwriteList, supportNull); + } + return result; + } + + protected ListDecorator(TypeModel model, Type declaredType, Type concreteType, IProtoSerializer tail, int fieldNumber, bool writePacked, WireType packedWireType, bool returnList, bool overwriteList, bool supportNull) : base(tail) + { + if (returnList) + { + this.options |= 8; + } + if (overwriteList) + { + this.options |= 16; + } + if (supportNull) + { + this.options |= 32; + } + bool flag = (writePacked || packedWireType != WireType.None) && fieldNumber <= 0; + if (flag) + { + throw new ArgumentOutOfRangeException("fieldNumber"); + } + bool flag2 = !ListDecorator.CanPack(packedWireType); + if (flag2) + { + if (writePacked) + { + throw new InvalidOperationException("Only simple data-types can use packed encoding"); + } + packedWireType = WireType.None; + } + this.fieldNumber = fieldNumber; + if (writePacked) + { + this.options |= 4; + } + this.packedWireType = packedWireType; + bool flag3 = declaredType == null; + if (flag3) + { + throw new ArgumentNullException("declaredType"); + } + bool isArray = declaredType.IsArray; + if (isArray) + { + throw new ArgumentException("Cannot treat arrays as lists", "declaredType"); + } + this.declaredType = declaredType; + this.concreteType = concreteType; + bool requireAdd = this.RequireAdd; + if (requireAdd) + { + bool flag4; + this.add = TypeModel.ResolveListAdd(model, declaredType, tail.ExpectedType, out flag4); + bool flag5 = flag4; + if (flag5) + { + this.options |= 1; + string fullName = declaredType.FullName; + bool flag6 = fullName != null && fullName.StartsWith("System.Data.Linq.EntitySet`1[["); + if (flag6) + { + this.options |= 2; + } + } + bool flag7 = this.add == null; + if (flag7) + { + throw new InvalidOperationException("Unable to resolve a suitable Add method for " + declaredType.FullName); + } + } + } + + protected MethodInfo GetEnumeratorInfo(TypeModel model, out MethodInfo moveNext, out MethodInfo current) + { + Type type = null; + Type expectedType = this.ExpectedType; + MethodInfo instanceMethod = Helpers.GetInstanceMethod(expectedType, "GetEnumerator", null); + Type expectedType2 = this.Tail.ExpectedType; + bool flag = instanceMethod != null; + if (flag) + { + Type returnType = instanceMethod.ReturnType; + Type type2 = returnType; + moveNext = Helpers.GetInstanceMethod(type2, "MoveNext", null); + PropertyInfo property = Helpers.GetProperty(type2, "Current", false); + current = ((property == null) ? null : Helpers.GetGetMethod(property, false, false)); + bool flag2 = moveNext == null && model.MapType(ListDecorator.ienumeratorType).IsAssignableFrom(type2); + if (flag2) + { + moveNext = Helpers.GetInstanceMethod(model.MapType(ListDecorator.ienumeratorType), "MoveNext", null); + } + bool flag3 = moveNext != null && moveNext.ReturnType == model.MapType(typeof(bool)) && current != null && current.ReturnType == expectedType2; + if (flag3) + { + return instanceMethod; + } + MethodInfo methodInfo; + current = (methodInfo = null); + moveNext = methodInfo; + } + Type type3 = model.MapType(typeof(IEnumerable<>), false); + bool flag4 = type3 != null; + if (flag4) + { + type3 = type3.MakeGenericType(new Type[] + { + expectedType2 + }); + type = type3; + } + bool flag5 = type != null && type.IsAssignableFrom(expectedType); + MethodInfo result; + if (flag5) + { + instanceMethod = Helpers.GetInstanceMethod(type, "GetEnumerator"); + Type returnType = instanceMethod.ReturnType; + Type type2 = returnType; + moveNext = Helpers.GetInstanceMethod(model.MapType(ListDecorator.ienumeratorType), "MoveNext"); + current = Helpers.GetGetMethod(Helpers.GetProperty(type2, "Current", false), false, false); + result = instanceMethod; + } + else + { + type = model.MapType(ListDecorator.ienumerableType); + instanceMethod = Helpers.GetInstanceMethod(type, "GetEnumerator"); + Type returnType = instanceMethod.ReturnType; + Type type2 = returnType; + moveNext = Helpers.GetInstanceMethod(type2, "MoveNext"); + current = Helpers.GetGetMethod(Helpers.GetProperty(type2, "Current", false), false, false); + result = instanceMethod; + } + return result; + } + + public override void Write(object value, ProtoWriter dest) + { + bool writePacked = this.WritePacked; + bool flag = writePacked; + SubItemToken token; + if (flag) + { + ProtoWriter.WriteFieldHeader(this.fieldNumber, WireType.String, dest); + token = ProtoWriter.StartSubItem(value, dest); + ProtoWriter.SetPackedField(this.fieldNumber, dest); + } + else + { + token = default(SubItemToken); + } + bool flag2 = !this.SupportNull; + foreach (object obj in ((IEnumerable)value)) + { + bool flag3 = flag2 && obj == null; + if (flag3) + { + throw new NullReferenceException(); + } + this.Tail.Write(obj, dest); + } + bool flag4 = writePacked; + if (flag4) + { + ProtoWriter.EndSubItem(token, dest); + } + } + + public override object Read(object value, ProtoReader source) + { + int field = source.FieldNumber; + object obj = value; + bool flag = value == null; + if (flag) + { + value = Activator.CreateInstance(this.concreteType); + } + bool flag2 = this.IsList && !this.SuppressIList; + bool flag3 = this.packedWireType != WireType.None && source.WireType == WireType.String; + if (flag3) + { + SubItemToken token = ProtoReader.StartSubItem(source); + bool flag4 = flag2; + if (flag4) + { + IList list = (IList)value; + while (ProtoReader.HasSubValue(this.packedWireType, source)) + { + list.Add(this.Tail.Read(null, source)); + } + } + else + { + while (ProtoReader.HasSubValue(this.packedWireType, source)) + { + ProtoDecoratorBase.s_argsRead[0] = this.Tail.Read(null, source); + this.add.Invoke(value, ProtoDecoratorBase.s_argsRead); + } + } + ProtoReader.EndSubItem(token, source); + } + else + { + bool flag5 = flag2; + if (flag5) + { + IList list2 = (IList)value; + do + { + list2.Add(this.Tail.Read(null, source)); + } + while (source.TryReadFieldHeader(field)); + } + else + { + do + { + ProtoDecoratorBase.s_argsRead[0] = this.Tail.Read(null, source); + this.add.Invoke(value, ProtoDecoratorBase.s_argsRead); + } + while (source.TryReadFieldHeader(field)); + } + } + return (obj == value) ? null : value; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ListDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ListDecorator.cs.meta new file mode 100644 index 00000000..3c06cf2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ListDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fefcfc6e8a6b98341bf92b7df50d27d2 +timeCreated: 1611404944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/MemberSpecifiedDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/MemberSpecifiedDecorator.cs new file mode 100644 index 00000000..95683855 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/MemberSpecifiedDecorator.cs @@ -0,0 +1,68 @@ +using System; +using System.Reflection; + +namespace ProtoBuf.Serializers +{ + internal sealed class MemberSpecifiedDecorator : ProtoDecoratorBase + { + public override Type ExpectedType + { + get + { + return this.Tail.ExpectedType; + } + } + + public override bool RequiresOldValue + { + get + { + return this.Tail.RequiresOldValue; + } + } + + public override bool ReturnsValue + { + get + { + return this.Tail.ReturnsValue; + } + } + + private readonly MethodInfo getSpecified; + + private readonly MethodInfo setSpecified; + + public MemberSpecifiedDecorator(MethodInfo getSpecified, MethodInfo setSpecified, IProtoSerializer tail) : base(tail) + { + bool flag = getSpecified == null && setSpecified == null; + if (flag) + { + throw new InvalidOperationException(); + } + this.getSpecified = getSpecified; + this.setSpecified = setSpecified; + } + + public override void Write(object value, ProtoWriter dest) + { + bool flag = this.getSpecified == null || (bool)this.getSpecified.Invoke(value, null); + if (flag) + { + this.Tail.Write(value, dest); + } + } + + public override object Read(object value, ProtoReader source) + { + object result = this.Tail.Read(value, source); + ProtoDecoratorBase.s_argsRead[0] = true; + bool flag = this.setSpecified != null; + if (flag) + { + this.setSpecified.Invoke(value, ProtoDecoratorBase.s_argsRead); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/MemberSpecifiedDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/MemberSpecifiedDecorator.cs.meta new file mode 100644 index 00000000..793dcf44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/MemberSpecifiedDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 739518db68917a34e836154cb2eaf459 +timeCreated: 1611403941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NetObjectSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NetObjectSerializer.cs new file mode 100644 index 00000000..6dd8be72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NetObjectSerializer.cs @@ -0,0 +1,56 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class NetObjectSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return this.type; + } + } + + public bool ReturnsValue + { + get + { + return true; + } + } + + public bool RequiresOldValue + { + get + { + return true; + } + } + + private readonly int key; + + private readonly Type type; + + private readonly BclHelpers.NetObjectOptions options; + + public NetObjectSerializer(TypeModel model, Type type, int key, BclHelpers.NetObjectOptions options) + { + bool flag = (options & BclHelpers.NetObjectOptions.DynamicType) > BclHelpers.NetObjectOptions.None; + this.key = (flag ? -1 : key); + this.type = (flag ? model.MapType(typeof(object)) : type); + this.options = options; + } + + public object Read(object value, ProtoReader source) + { + return BclHelpers.ReadNetObject(value, source, this.key, (this.type == typeof(object)) ? null : this.type, this.options); + } + + public void Write(object value, ProtoWriter dest) + { + BclHelpers.WriteNetObject(value, dest, this.key, this.options); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NetObjectSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NetObjectSerializer.cs.meta new file mode 100644 index 00000000..1ab011bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NetObjectSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a98a338097dc0e846bbe30b6f334caf6 +timeCreated: 1611404299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NullDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NullDecorator.cs new file mode 100644 index 00000000..2285d847 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NullDecorator.cs @@ -0,0 +1,89 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class NullDecorator : ProtoDecoratorBase + { + public override Type ExpectedType + { + get + { + return this.expectedType; + } + } + + public override bool ReturnsValue + { + get + { + return true; + } + } + + public override bool RequiresOldValue + { + get + { + return true; + } + } + + private readonly Type expectedType; + + public const int Tag = 1; + + public NullDecorator(TypeModel model, IProtoSerializer tail) : base(tail) + { + bool flag = !tail.ReturnsValue; + if (flag) + { + throw new NotSupportedException("NullDecorator only supports implementations that return values"); + } + Type type = tail.ExpectedType; + bool flag2 = Helpers.IsValueType(type); + if (flag2) + { + this.expectedType = model.MapType(typeof(Nullable<>)).MakeGenericType(new Type[] + { + type + }); + } + else + { + this.expectedType = type; + } + } + + public override object Read(object value, ProtoReader source) + { + SubItemToken token = ProtoReader.StartSubItem(source); + int num; + while ((num = source.ReadFieldHeader()) > 0) + { + bool flag = num == 1; + if (flag) + { + value = this.Tail.Read(value, source); + } + else + { + source.SkipField(); + } + } + ProtoReader.EndSubItem(token, source); + return value; + } + + public override void Write(object value, ProtoWriter dest) + { + SubItemToken token = ProtoWriter.StartSubItem(null, dest); + bool flag = value != null; + if (flag) + { + this.Tail.Write(value, dest); + } + ProtoWriter.EndSubItem(token, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NullDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NullDecorator.cs.meta new file mode 100644 index 00000000..fb5b1c05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/NullDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05d6503399b3fa748a1d9a82686028a3 +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ParseableSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ParseableSerializer.cs new file mode 100644 index 00000000..8cc1b68d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ParseableSerializer.cs @@ -0,0 +1,91 @@ +using System; +using System.Reflection; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class ParseableSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return this.parse.DeclaringType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private readonly MethodInfo parse; + + public static ParseableSerializer TryCreate(Type type, TypeModel model) + { + bool flag = type == null; + if (flag) + { + throw new ArgumentNullException("type"); + } + MethodInfo method = type.GetMethod("Parse", BindingFlags.DeclaredOnly | BindingFlags.Static | BindingFlags.Public, null, new Type[] + { + model.MapType(typeof(string)) + }, null); + bool flag2 = method != null && method.ReturnType == type; + ParseableSerializer result; + if (flag2) + { + bool flag3 = Helpers.IsValueType(type); + if (flag3) + { + MethodInfo customToString = ParseableSerializer.GetCustomToString(type); + bool flag4 = customToString == null || customToString.ReturnType != model.MapType(typeof(string)); + if (flag4) + { + return null; + } + } + result = new ParseableSerializer(method); + } + else + { + result = null; + } + return result; + } + + private static MethodInfo GetCustomToString(Type type) + { + return type.GetMethod("ToString", BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public, null, Helpers.EmptyTypes, null); + } + + private ParseableSerializer(MethodInfo parse) + { + this.parse = parse; + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + ProtoDecoratorBase.s_argsRead[0] = source.ReadString(); + return this.parse.Invoke(null, ProtoDecoratorBase.s_argsRead); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteString(value.ToString(), dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ParseableSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ParseableSerializer.cs.meta new file mode 100644 index 00000000..7b87947e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ParseableSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 833aecc4d9c5272499fdfa8e8acfca59 +timeCreated: 1611404043 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/PropertyDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/PropertyDecorator.cs new file mode 100644 index 00000000..4240d53d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/PropertyDecorator.cs @@ -0,0 +1,143 @@ +using System; +using System.Reflection; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class PropertyDecorator : ProtoDecoratorBase + { + public override Type ExpectedType + { + get + { + return this.forType; + } + } + + public override bool RequiresOldValue + { + get + { + return true; + } + } + + public override bool ReturnsValue + { + get + { + return false; + } + } + + private readonly PropertyInfo property; + + private readonly Type forType; + + private readonly bool readOptionsWriteValue; + + private readonly MethodInfo shadowSetter; + + public PropertyDecorator(TypeModel model, Type forType, PropertyInfo property, IProtoSerializer tail) : base(tail) + { + Helpers.DebugAssert(forType != null); + Helpers.DebugAssert(property != null); + this.forType = forType; + this.property = property; + PropertyDecorator.SanityCheck(model, property, tail, out this.readOptionsWriteValue, true, true); + this.shadowSetter = PropertyDecorator.GetShadowSetter(model, property); + } + + private static void SanityCheck(TypeModel model, PropertyInfo property, IProtoSerializer tail, out bool writeValue, bool nonPublic, bool allowInternal) + { + bool flag = property == null; + if (flag) + { + throw new ArgumentNullException("property"); + } + writeValue = (tail.ReturnsValue && (PropertyDecorator.GetShadowSetter(model, property) != null || (property.CanWrite && Helpers.GetSetMethod(property, nonPublic, allowInternal) != null))); + bool flag2 = !property.CanRead || Helpers.GetGetMethod(property, nonPublic, allowInternal) == null; + if (flag2) + { + throw new InvalidOperationException("Cannot serialize property without a get accessor"); + } + bool flag3 = !writeValue && (!tail.RequiresOldValue || Helpers.IsValueType(tail.ExpectedType)); + if (flag3) + { + throw new InvalidOperationException("Cannot apply changes to property " + property.DeclaringType.FullName + "." + property.Name); + } + } + + private static MethodInfo GetShadowSetter(TypeModel model, PropertyInfo property) + { + Type reflectedType = property.ReflectedType; + ProtoDecoratorBase.s_propertyType[0] = property.PropertyType; + MethodInfo instanceMethod = Helpers.GetInstanceMethod(reflectedType, "Set" + property.Name, ProtoDecoratorBase.s_propertyType); + bool flag = instanceMethod == null || !instanceMethod.IsPublic || instanceMethod.ReturnType != model.MapType(typeof(void)); + MethodInfo result; + if (flag) + { + result = null; + } + else + { + result = instanceMethod; + } + return result; + } + + public override void Write(object value, ProtoWriter dest) + { + Helpers.DebugAssert(value != null); + value = this.property.GetValue(value, null); + bool flag = value != null; + if (flag) + { + this.Tail.Write(value, dest); + } + } + + public override object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value != null); + object value2 = this.Tail.RequiresOldValue ? this.property.GetValue(value, null) : null; + object obj = this.Tail.Read(value2, source); + bool flag = this.readOptionsWriteValue && obj != null; + if (flag) + { + bool flag2 = this.shadowSetter == null; + if (flag2) + { + this.property.SetValue(value, obj, null); + } + else + { + ProtoDecoratorBase.s_argsRead[0] = obj; + this.shadowSetter.Invoke(value, ProtoDecoratorBase.s_argsRead); + } + } + return null; + } + + internal static bool CanWrite(TypeModel model, MemberInfo member) + { + bool flag = member == null; + if (flag) + { + throw new ArgumentNullException("member"); + } + PropertyInfo propertyInfo = member as PropertyInfo; + bool flag2 = propertyInfo != null; + bool result; + if (flag2) + { + result = (propertyInfo.CanWrite || PropertyDecorator.GetShadowSetter(model, propertyInfo) != null); + } + else + { + result = (member is FieldInfo); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/PropertyDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/PropertyDecorator.cs.meta new file mode 100644 index 00000000..edd7c89e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/PropertyDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0600dad016715249ba5a8362c4e93b4 +timeCreated: 1611404831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ProtoDecoratorBase.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ProtoDecoratorBase.cs new file mode 100644 index 00000000..e8195611 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ProtoDecoratorBase.cs @@ -0,0 +1,30 @@ +using System; + +namespace ProtoBuf.Serializers +{ + internal abstract class ProtoDecoratorBase : IProtoSerializer + { + public abstract Type ExpectedType { get; } + + public abstract bool ReturnsValue { get; } + + public abstract bool RequiresOldValue { get; } + + protected readonly IProtoSerializer Tail; + + public static Type[] s_propertyType = new Type[1]; + + public static object[] s_argsRead = new object[1]; + + public static object[] s_argsWrite = new object[1]; + + protected ProtoDecoratorBase(IProtoSerializer tail) + { + this.Tail = tail; + } + + public abstract void Write(object value, ProtoWriter dest); + + public abstract object Read(object value, ProtoReader source); + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ProtoDecoratorBase.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ProtoDecoratorBase.cs.meta new file mode 100644 index 00000000..0783e64b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/ProtoDecoratorBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f721c5867de15248b13f8d3c9abb615 +timeCreated: 1611404030 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SByteSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SByteSerializer.cs new file mode 100644 index 00000000..04880c52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SByteSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class SByteSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return SByteSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(sbyte); + + public SByteSerializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadSByte(); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteSByte((sbyte)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SByteSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SByteSerializer.cs.meta new file mode 100644 index 00000000..bb30cebe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SByteSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c62250c7286c2d045814ce99fe761bee +timeCreated: 1611404508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SingleSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SingleSerializer.cs new file mode 100644 index 00000000..1b49bf8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SingleSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class SingleSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return SingleSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(float); + + public SingleSerializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadSingle(); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteSingle((float)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SingleSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SingleSerializer.cs.meta new file mode 100644 index 00000000..2b9bcd3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SingleSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4fcc9e482669344f8ff53d32f94f2f5 +timeCreated: 1611404284 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/StringSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/StringSerializer.cs new file mode 100644 index 00000000..09827b2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/StringSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class StringSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return StringSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(string); + + public StringSerializer(TypeModel model) + { + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteString((string)value, dest); + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadString(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/StringSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/StringSerializer.cs.meta new file mode 100644 index 00000000..b34fb67c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/StringSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4349e44ff56a8094abcba104a2ebe4f1 +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SubItemSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SubItemSerializer.cs new file mode 100644 index 00000000..b2358d17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SubItemSerializer.cs @@ -0,0 +1,96 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class SubItemSerializer : IProtoTypeSerializer, IProtoSerializer + { + Type IProtoSerializer.ExpectedType + { + get + { + return this.type; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return true; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private readonly int key; + + private readonly Type type; + + private readonly ISerializerProxy proxy; + + private readonly bool recursionCheck; + + bool IProtoTypeSerializer.HasCallbacks(TypeModel.CallbackType callbackType) + { + return ((IProtoTypeSerializer)this.proxy.Serializer).HasCallbacks(callbackType); + } + + bool IProtoTypeSerializer.CanCreateInstance() + { + return ((IProtoTypeSerializer)this.proxy.Serializer).CanCreateInstance(); + } + + void IProtoTypeSerializer.Callback(object value, TypeModel.CallbackType callbackType, SerializationContext context) + { + ((IProtoTypeSerializer)this.proxy.Serializer).Callback(value, callbackType, context); + } + + object IProtoTypeSerializer.CreateInstance(ProtoReader source) + { + return ((IProtoTypeSerializer)this.proxy.Serializer).CreateInstance(source); + } + + public SubItemSerializer(Type type, int key, ISerializerProxy proxy, bool recursionCheck) + { + bool flag = type == null; + if (flag) + { + throw new ArgumentNullException("type"); + } + bool flag2 = proxy == null; + if (flag2) + { + throw new ArgumentNullException("proxy"); + } + this.type = type; + this.proxy = proxy; + this.key = key; + this.recursionCheck = recursionCheck; + } + + void IProtoSerializer.Write(object value, ProtoWriter dest) + { + bool flag = this.recursionCheck; + if (flag) + { + ProtoWriter.WriteObject(value, this.key, dest); + } + else + { + ProtoWriter.WriteRecursionSafeObject(value, this.key, dest); + } + } + + object IProtoSerializer.Read(object value, ProtoReader source) + { + return ProtoReader.ReadObject(value, this.key, source); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SubItemSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SubItemSerializer.cs.meta new file mode 100644 index 00000000..f2088d37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SubItemSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af8ec618884c3e846a0aa0126f79685d +timeCreated: 1611404345 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SurrogateSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SurrogateSerializer.cs new file mode 100644 index 00000000..d7f171a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SurrogateSerializer.cs @@ -0,0 +1,154 @@ +using System; +using System.Reflection; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class SurrogateSerializer : IProtoTypeSerializer, IProtoSerializer + { + public bool ReturnsValue + { + get + { + return false; + } + } + + public bool RequiresOldValue + { + get + { + return true; + } + } + + public Type ExpectedType + { + get + { + return this.forType; + } + } + + private readonly Type forType; + + private readonly Type declaredType; + + private readonly MethodInfo toTail; + + private readonly MethodInfo fromTail; + + private IProtoTypeSerializer rootTail; + + bool IProtoTypeSerializer.HasCallbacks(TypeModel.CallbackType callbackType) + { + return false; + } + + bool IProtoTypeSerializer.CanCreateInstance() + { + return false; + } + + object IProtoTypeSerializer.CreateInstance(ProtoReader source) + { + throw new NotSupportedException(); + } + + void IProtoTypeSerializer.Callback(object value, TypeModel.CallbackType callbackType, SerializationContext context) + { + } + + public SurrogateSerializer(TypeModel model, Type forType, Type declaredType, IProtoTypeSerializer rootTail) + { + Helpers.DebugAssert(forType != null, "forType"); + Helpers.DebugAssert(declaredType != null, "declaredType"); + Helpers.DebugAssert(rootTail != null, "rootTail"); + Helpers.DebugAssert(rootTail.RequiresOldValue, "RequiresOldValue"); + Helpers.DebugAssert(!rootTail.ReturnsValue, "ReturnsValue"); + Helpers.DebugAssert(declaredType == rootTail.ExpectedType || Helpers.IsSubclassOf(declaredType, rootTail.ExpectedType)); + this.forType = forType; + this.declaredType = declaredType; + this.rootTail = rootTail; + this.toTail = this.GetConversion(model, true); + this.fromTail = this.GetConversion(model, false); + } + + private static bool HasCast(TypeModel model, Type type, Type from, Type to, out MethodInfo op) + { + MethodInfo[] methods = type.GetMethods(BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); + Type type2 = null; + foreach (MethodInfo methodInfo in methods) + { + bool flag = methodInfo.ReturnType != to; + if (!flag) + { + ParameterInfo[] parameters = methodInfo.GetParameters(); + bool flag2 = parameters.Length == 1 && parameters[0].ParameterType == from; + if (flag2) + { + bool flag3 = type2 == null; + if (flag3) + { + type2 = model.MapType(typeof(ProtoConverterAttribute), false); + bool flag4 = type2 == null; + if (flag4) + { + break; + } + } + bool flag5 = methodInfo.IsDefined(type2, true); + if (flag5) + { + op = methodInfo; + return true; + } + } + } + } + foreach (MethodInfo methodInfo2 in methods) + { + bool flag6 = (methodInfo2.Name != "op_Implicit" && methodInfo2.Name != "op_Explicit") || methodInfo2.ReturnType != to; + if (!flag6) + { + ParameterInfo[] parameters = methodInfo2.GetParameters(); + bool flag7 = parameters.Length == 1 && parameters[0].ParameterType == from; + if (flag7) + { + op = methodInfo2; + return true; + } + } + } + op = null; + return false; + } + + public MethodInfo GetConversion(TypeModel model, bool toTail) + { + Type to = toTail ? this.declaredType : this.forType; + Type from = toTail ? this.forType : this.declaredType; + MethodInfo result; + bool flag = SurrogateSerializer.HasCast(model, this.declaredType, from, to, out result) || SurrogateSerializer.HasCast(model, this.forType, from, to, out result); + if (flag) + { + return result; + } + throw new InvalidOperationException("No suitable conversion operator found for surrogate: " + this.forType.FullName + " / " + this.declaredType.FullName); + } + + public void Write(object value, ProtoWriter writer) + { + ProtoDecoratorBase.s_argsWrite[0] = value; + this.rootTail.Write(this.toTail.Invoke(null, ProtoDecoratorBase.s_argsWrite), writer); + } + + public object Read(object value, ProtoReader source) + { + ProtoDecoratorBase.s_argsRead[0] = value; + value = this.toTail.Invoke(null, ProtoDecoratorBase.s_argsRead); + ProtoDecoratorBase.s_argsRead[0] = this.rootTail.Read(value, source); + return this.fromTail.Invoke(null, ProtoDecoratorBase.s_argsRead); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SurrogateSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SurrogateSerializer.cs.meta new file mode 100644 index 00000000..eb6eeaac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SurrogateSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4320ebf7d1587cb41a71815ac5e941a8 +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SystemTypeSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SystemTypeSerializer.cs new file mode 100644 index 00000000..1cc322d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SystemTypeSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class SystemTypeSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return SystemTypeSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(Type); + + public SystemTypeSerializer(TypeModel model) + { + } + + void IProtoSerializer.Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteType((Type)value, dest); + } + + object IProtoSerializer.Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadType(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SystemTypeSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SystemTypeSerializer.cs.meta new file mode 100644 index 00000000..fd810f93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/SystemTypeSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 316b036e681598744a7a6aa9fa12a8fc +timeCreated: 1611403545 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TagDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TagDecorator.cs new file mode 100644 index 00000000..7a0e390f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TagDecorator.cs @@ -0,0 +1,105 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class TagDecorator : ProtoDecoratorBase, IProtoTypeSerializer, IProtoSerializer + { + public override Type ExpectedType + { + get + { + return this.Tail.ExpectedType; + } + } + + public override bool RequiresOldValue + { + get + { + return this.Tail.RequiresOldValue; + } + } + + public override bool ReturnsValue + { + get + { + return this.Tail.ReturnsValue; + } + } + + private bool NeedsHint + { + get + { + return (this.wireType & (WireType)(-8)) > WireType.Variant; + } + } + + private readonly bool strict; + + private readonly int fieldNumber; + + private readonly WireType wireType; + + public bool HasCallbacks(TypeModel.CallbackType callbackType) + { + IProtoTypeSerializer protoTypeSerializer = this.Tail as IProtoTypeSerializer; + return protoTypeSerializer != null && protoTypeSerializer.HasCallbacks(callbackType); + } + + public bool CanCreateInstance() + { + IProtoTypeSerializer protoTypeSerializer = this.Tail as IProtoTypeSerializer; + return protoTypeSerializer != null && protoTypeSerializer.CanCreateInstance(); + } + + public object CreateInstance(ProtoReader source) + { + return ((IProtoTypeSerializer)this.Tail).CreateInstance(source); + } + + public void Callback(object value, TypeModel.CallbackType callbackType, SerializationContext context) + { + IProtoTypeSerializer protoTypeSerializer = this.Tail as IProtoTypeSerializer; + bool flag = protoTypeSerializer != null; + if (flag) + { + protoTypeSerializer.Callback(value, callbackType, context); + } + } + + public TagDecorator(int fieldNumber, WireType wireType, bool strict, IProtoSerializer tail) : base(tail) + { + this.fieldNumber = fieldNumber; + this.wireType = wireType; + this.strict = strict; + } + + public override object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(this.fieldNumber == source.FieldNumber); + bool flag = this.strict; + if (flag) + { + source.Assert(this.wireType); + } + else + { + bool needsHint = this.NeedsHint; + if (needsHint) + { + source.Hint(this.wireType); + } + } + return this.Tail.Read(value, source); + } + + public override void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteFieldHeader(this.fieldNumber, this.wireType, dest); + this.Tail.Write(value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TagDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TagDecorator.cs.meta new file mode 100644 index 00000000..47c539c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TagDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5c00b69b85f4714b903019fd5c6d4ec +timeCreated: 1611404877 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TimeSpanSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TimeSpanSerializer.cs new file mode 100644 index 00000000..650a2fa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TimeSpanSerializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class TimeSpanSerializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return TimeSpanSerializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(TimeSpan); + + public TimeSpanSerializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return BclHelpers.ReadTimeSpan(source); + } + + public void Write(object value, ProtoWriter dest) + { + BclHelpers.WriteTimeSpan((TimeSpan)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TimeSpanSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TimeSpanSerializer.cs.meta new file mode 100644 index 00000000..e9a11954 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TimeSpanSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8274313ccbb1a974b835114e01a78f04 +timeCreated: 1611404040 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TupleSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TupleSerializer.cs new file mode 100644 index 00000000..49424ffb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TupleSerializer.cs @@ -0,0 +1,211 @@ +using System; +using System.Reflection; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class TupleSerializer : IProtoTypeSerializer, IProtoSerializer + { + public Type ExpectedType + { + get + { + return this.ctor.DeclaringType; + } + } + + public bool RequiresOldValue + { + get + { + return true; + } + } + + public bool ReturnsValue + { + get + { + return false; + } + } + + private readonly MemberInfo[] members; + + private readonly ConstructorInfo ctor; + + private IProtoSerializer[] tails; + + public TupleSerializer(RuntimeTypeModel model, ConstructorInfo ctor, MemberInfo[] members) + { + bool flag = ctor == null; + if (flag) + { + throw new ArgumentNullException("ctor"); + } + bool flag2 = members == null; + if (flag2) + { + throw new ArgumentNullException("members"); + } + this.ctor = ctor; + this.members = members; + this.tails = new IProtoSerializer[members.Length]; + ParameterInfo[] parameters = ctor.GetParameters(); + for (int i = 0; i < members.Length; i++) + { + Type parameterType = parameters[i].ParameterType; + Type type = null; + Type concreteType = null; + MetaType.ResolveListTypes(model, parameterType, ref type, ref concreteType); + Type type2 = (type == null) ? parameterType : type; + bool asReference = false; + int num = model.FindOrAddAuto(type2, false, true, false); + bool flag3 = num >= 0; + if (flag3) + { + asReference = model[type2].AsReferenceDefault; + } + WireType wireType; + IProtoSerializer protoSerializer = ValueMember.TryGetCoreSerializer(model, DataFormat.Default, type2, out wireType, asReference, false, false, true); + bool flag4 = protoSerializer == null; + if (flag4) + { + throw new InvalidOperationException("No serializer defined for type: " + type2.FullName); + } + protoSerializer = new TagDecorator(i + 1, wireType, false, protoSerializer); + bool flag5 = type == null; + IProtoSerializer protoSerializer2; + if (flag5) + { + protoSerializer2 = protoSerializer; + } + else + { + bool isArray = parameterType.IsArray; + if (isArray) + { + protoSerializer2 = new ArrayDecorator(model, protoSerializer, i + 1, false, wireType, parameterType, false, false); + } + else + { + protoSerializer2 = ListDecorator.Create(model, parameterType, concreteType, protoSerializer, i + 1, false, wireType, true, false, false); + } + } + this.tails[i] = protoSerializer2; + } + } + + public bool HasCallbacks(TypeModel.CallbackType callbackType) + { + return false; + } + + void IProtoTypeSerializer.Callback(object value, TypeModel.CallbackType callbackType, SerializationContext context) + { + } + + object IProtoTypeSerializer.CreateInstance(ProtoReader source) + { + throw new NotSupportedException(); + } + + private object GetValue(object obj, int index) + { + PropertyInfo propertyInfo; + bool flag = (propertyInfo = (this.members[index] as PropertyInfo)) != null; + object result; + if (flag) + { + bool flag2 = obj == null; + if (flag2) + { + result = (Helpers.IsValueType(propertyInfo.PropertyType) ? Activator.CreateInstance(propertyInfo.PropertyType) : null); + } + else + { + result = propertyInfo.GetValue(obj, null); + } + } + else + { + FieldInfo fieldInfo; + bool flag3 = (fieldInfo = (this.members[index] as FieldInfo)) != null; + if (!flag3) + { + throw new InvalidOperationException(); + } + bool flag4 = obj == null; + if (flag4) + { + result = (Helpers.IsValueType(fieldInfo.FieldType) ? Activator.CreateInstance(fieldInfo.FieldType) : null); + } + else + { + result = fieldInfo.GetValue(obj); + } + } + return result; + } + + public object Read(object value, ProtoReader source) + { + object[] array = new object[this.members.Length]; + bool flag = false; + bool flag2 = value == null; + if (flag2) + { + flag = true; + } + for (int i = 0; i < array.Length; i++) + { + array[i] = this.GetValue(value, i); + } + int num; + while ((num = source.ReadFieldHeader()) > 0) + { + flag = true; + bool flag3 = num <= this.tails.Length; + if (flag3) + { + IProtoSerializer protoSerializer = this.tails[num - 1]; + array[num - 1] = this.tails[num - 1].Read(protoSerializer.RequiresOldValue ? array[num - 1] : null, source); + } + else + { + source.SkipField(); + } + } + return flag ? this.ctor.Invoke(array) : value; + } + + public void Write(object value, ProtoWriter dest) + { + for (int i = 0; i < this.tails.Length; i++) + { + object value2 = this.GetValue(value, i); + bool flag = value2 != null; + if (flag) + { + this.tails[i].Write(value2, dest); + } + } + } + + private Type GetMemberType(int index) + { + Type memberType = Helpers.GetMemberType(this.members[index]); + bool flag = memberType == null; + if (flag) + { + throw new InvalidOperationException(); + } + return memberType; + } + + bool IProtoTypeSerializer.CanCreateInstance() + { + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TupleSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TupleSerializer.cs.meta new file mode 100644 index 00000000..864aa85d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TupleSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 824ff1f17fa0ade46834f8070e773b2b +timeCreated: 1611404039 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TypeSerializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TypeSerializer.cs new file mode 100644 index 00000000..fd8fe62c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TypeSerializer.cs @@ -0,0 +1,445 @@ +using System; +using System.Reflection; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class TypeSerializer : IProtoTypeSerializer, IProtoSerializer + { + public Type ExpectedType + { + get + { + return this.forType; + } + } + + private bool CanHaveInheritance + { + get + { + return (this.forType.IsClass || this.forType.IsInterface) && !this.forType.IsSealed; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return true; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return false; + } + } + + private readonly Type forType; + + private readonly Type constructType; + + private readonly IProtoSerializer[] serializers; + + private readonly int[] fieldNumbers; + + private readonly bool isRootType; + + private readonly bool useConstructor; + + private readonly bool isExtensible; + + private readonly bool hasConstructor; + + private readonly CallbackSet callbacks; + + private readonly MethodInfo[] baseCtorCallbacks; + + private readonly MethodInfo factory; + + private static readonly Type iextensible = typeof(IExtensible); + + public bool HasCallbacks(TypeModel.CallbackType callbackType) + { + bool flag = this.callbacks != null && this.callbacks[callbackType] != null; + bool result; + if (flag) + { + result = true; + } + else + { + for (int i = 0; i < this.serializers.Length; i++) + { + bool flag2 = this.serializers[i].ExpectedType != this.forType && ((IProtoTypeSerializer)this.serializers[i]).HasCallbacks(callbackType); + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public TypeSerializer(TypeModel model, Type forType, int[] fieldNumbers, IProtoSerializer[] serializers, MethodInfo[] baseCtorCallbacks, bool isRootType, bool useConstructor, CallbackSet callbacks, Type constructType, MethodInfo factory) + { + Helpers.DebugAssert(forType != null); + Helpers.DebugAssert(fieldNumbers != null); + Helpers.DebugAssert(serializers != null); + Helpers.DebugAssert(fieldNumbers.Length == serializers.Length); + Helpers.Sort(fieldNumbers, serializers); + bool flag = false; + for (int i = 1; i < fieldNumbers.Length; i++) + { + bool flag2 = fieldNumbers[i] == fieldNumbers[i - 1]; + if (flag2) + { + throw new InvalidOperationException("Duplicate field-number detected; " + fieldNumbers[i].ToString() + " on: " + forType.FullName); + } + bool flag3 = !flag && serializers[i].ExpectedType != forType; + if (flag3) + { + flag = true; + } + } + this.forType = forType; + this.factory = factory; + bool flag4 = constructType == null; + if (flag4) + { + constructType = forType; + } + else + { + bool flag5 = !forType.IsAssignableFrom(constructType); + if (flag5) + { + throw new InvalidOperationException(forType.FullName + " cannot be assigned from " + constructType.FullName); + } + } + this.constructType = constructType; + this.serializers = serializers; + this.fieldNumbers = fieldNumbers; + this.callbacks = callbacks; + this.isRootType = isRootType; + this.useConstructor = useConstructor; + bool flag6 = baseCtorCallbacks != null && baseCtorCallbacks.Length == 0; + if (flag6) + { + baseCtorCallbacks = null; + } + this.baseCtorCallbacks = baseCtorCallbacks; + bool flag7 = Helpers.GetUnderlyingType(forType) != null; + if (flag7) + { + throw new ArgumentException("Cannot create a TypeSerializer for nullable types", "forType"); + } + bool flag8 = model.MapType(TypeSerializer.iextensible).IsAssignableFrom(forType); + if (flag8) + { + bool flag9 = forType.IsValueType || !isRootType || flag; + if (flag9) + { + throw new NotSupportedException("IExtensible is not supported in structs or classes with inheritance"); + } + this.isExtensible = true; + } + this.hasConstructor = (!constructType.IsAbstract && Helpers.GetConstructor(constructType, Helpers.EmptyTypes, true) != null); + bool flag10 = constructType != forType && useConstructor && !this.hasConstructor; + if (flag10) + { + throw new ArgumentException("The supplied default implementation cannot be created: " + constructType.FullName, "constructType"); + } + } + + bool IProtoTypeSerializer.CanCreateInstance() + { + return true; + } + + object IProtoTypeSerializer.CreateInstance(ProtoReader source) + { + return this.CreateInstance(source, false); + } + + public void Callback(object value, TypeModel.CallbackType callbackType, SerializationContext context) + { + bool flag = this.callbacks != null; + if (flag) + { + this.InvokeCallback(this.callbacks[callbackType], value, context); + } + IProtoTypeSerializer protoTypeSerializer = (IProtoTypeSerializer)this.GetMoreSpecificSerializer(value); + bool flag2 = protoTypeSerializer != null; + if (flag2) + { + protoTypeSerializer.Callback(value, callbackType, context); + } + } + + private IProtoSerializer GetMoreSpecificSerializer(object value) + { + bool flag = !this.CanHaveInheritance; + IProtoSerializer result; + if (flag) + { + result = null; + } + else + { + Type type = value.GetType(); + bool flag2 = type == this.forType; + if (flag2) + { + result = null; + } + else + { + for (int i = 0; i < this.serializers.Length; i++) + { + IProtoSerializer protoSerializer = this.serializers[i]; + bool flag3 = protoSerializer.ExpectedType != this.forType && Helpers.IsAssignableFrom(protoSerializer.ExpectedType, type); + if (flag3) + { + return protoSerializer; + } + } + bool flag4 = type == this.constructType; + if (flag4) + { + result = null; + } + else + { + TypeModel.ThrowUnexpectedSubtype(this.forType, type); + result = null; + } + } + } + return result; + } + + public void Write(object value, ProtoWriter dest) + { + bool flag = this.isRootType; + if (flag) + { + this.Callback(value, TypeModel.CallbackType.BeforeSerialize, dest.Context); + } + IProtoSerializer moreSpecificSerializer = this.GetMoreSpecificSerializer(value); + bool flag2 = moreSpecificSerializer != null; + if (flag2) + { + moreSpecificSerializer.Write(value, dest); + } + for (int i = 0; i < this.serializers.Length; i++) + { + IProtoSerializer protoSerializer = this.serializers[i]; + bool flag3 = protoSerializer.ExpectedType == this.forType; + if (flag3) + { + protoSerializer.Write(value, dest); + } + } + bool flag4 = this.isExtensible; + if (flag4) + { + ProtoWriter.AppendExtensionData((IExtensible)value, dest); + } + bool flag5 = this.isRootType; + if (flag5) + { + this.Callback(value, TypeModel.CallbackType.AfterSerialize, dest.Context); + } + } + + public object Read(object value, ProtoReader source) + { + bool flag = this.isRootType && value != null; + if (flag) + { + this.Callback(value, TypeModel.CallbackType.BeforeDeserialize, source.Context); + } + int num = 0; + int num2 = 0; + int num3; + while ((num3 = source.ReadFieldHeader()) > 0) + { + bool flag2 = false; + bool flag3 = num3 < num; + if (flag3) + { + num2 = (num = 0); + } + for (int i = num2; i < this.fieldNumbers.Length; i++) + { + bool flag4 = this.fieldNumbers[i] == num3; + if (flag4) + { + IProtoSerializer protoSerializer = this.serializers[i]; + Type expectedType = protoSerializer.ExpectedType; + bool flag5 = value == null; + if (flag5) + { + bool flag6 = expectedType == this.forType; + if (flag6) + { + value = this.CreateInstance(source, true); + } + } + else + { + bool flag7 = expectedType != this.forType && ((IProtoTypeSerializer)protoSerializer).CanCreateInstance() && expectedType.IsSubclassOf(value.GetType()); + if (flag7) + { + value = ProtoReader.Merge(source, value, ((IProtoTypeSerializer)protoSerializer).CreateInstance(source)); + } + } + bool returnsValue = protoSerializer.ReturnsValue; + if (returnsValue) + { + value = protoSerializer.Read(value, source); + } + else + { + protoSerializer.Read(value, source); + } + num2 = i; + num = num3; + flag2 = true; + break; + } + } + bool flag8 = !flag2; + if (flag8) + { + bool flag9 = value == null; + if (flag9) + { + value = this.CreateInstance(source, true); + } + bool flag10 = this.isExtensible; + if (flag10) + { + source.AppendExtensionData((IExtensible)value); + } + else + { + source.SkipField(); + } + } + } + bool flag11 = value == null; + if (flag11) + { + value = this.CreateInstance(source, true); + } + bool flag12 = this.isRootType; + if (flag12) + { + this.Callback(value, TypeModel.CallbackType.AfterDeserialize, source.Context); + } + return value; + } + + private object InvokeCallback(MethodInfo method, object obj, SerializationContext context) + { + object result = null; + bool flag = method != null; + if (flag) + { + ParameterInfo[] parameters = method.GetParameters(); + int num = parameters.Length; + object[] array; + bool flag2; + if (num != 0) + { + array = new object[parameters.Length]; + flag2 = true; + for (int i = 0; i < array.Length; i++) + { + Type parameterType = parameters[i].ParameterType; + bool flag3 = parameterType == typeof(SerializationContext); + object obj2; + if (flag3) + { + obj2 = context; + } + else + { + bool flag4 = parameterType == typeof(Type); + if (flag4) + { + obj2 = this.constructType; + } + else + { + obj2 = null; + flag2 = false; + } + } + array[i] = obj2; + } + } + else + { + array = null; + flag2 = true; + } + bool flag5 = flag2; + if (!flag5) + { + throw CallbackSet.CreateInvalidCallbackSignature(method); + } + result = method.Invoke(obj, array); + } + return result; + } + + private object CreateInstance(ProtoReader source, bool includeLocalCallback) + { + bool flag = this.factory != null; + object obj; + if (flag) + { + obj = this.InvokeCallback(this.factory, null, source.Context); + } + else + { + bool flag2 = this.useConstructor; + if (flag2) + { + bool flag3 = !this.hasConstructor; + if (flag3) + { + TypeModel.ThrowCannotCreateInstance(this.constructType); + } + obj = Activator.CreateInstance(this.constructType, true); + } + else + { + obj = BclHelpers.GetUninitializedObject(this.constructType); + } + } + ProtoReader.NoteObject(obj, source); + bool flag4 = this.baseCtorCallbacks != null; + if (flag4) + { + for (int i = 0; i < this.baseCtorCallbacks.Length; i++) + { + this.InvokeCallback(this.baseCtorCallbacks[i], obj, source.Context); + } + } + bool flag5 = includeLocalCallback && this.callbacks != null; + if (flag5) + { + this.InvokeCallback(this.callbacks.BeforeDeserialize, obj, source.Context); + } + return obj; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TypeSerializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TypeSerializer.cs.meta new file mode 100644 index 00000000..f8570d91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/TypeSerializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef593d3c48d31404290d6442b94fe22c +timeCreated: 1611404803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt16Serializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt16Serializer.cs new file mode 100644 index 00000000..7819e0a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt16Serializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal class UInt16Serializer : IProtoSerializer + { + public virtual Type ExpectedType + { + get + { + return UInt16Serializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(ushort); + + public UInt16Serializer(TypeModel model) + { + } + + public virtual object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadUInt16(); + } + + public virtual void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteUInt16((ushort)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt16Serializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt16Serializer.cs.meta new file mode 100644 index 00000000..f66f3529 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt16Serializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 70340302d41d7a34780704e67a77cd8f +timeCreated: 1611403931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt32Serializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt32Serializer.cs new file mode 100644 index 00000000..1f63d4d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt32Serializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class UInt32Serializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return UInt32Serializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(uint); + + public UInt32Serializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadUInt32(); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteUInt32((uint)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt32Serializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt32Serializer.cs.meta new file mode 100644 index 00000000..da05d5e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt32Serializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5eebc15e3c087148b1105452e3d6d7a +timeCreated: 1611404878 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt64Serializer.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt64Serializer.cs new file mode 100644 index 00000000..82790b63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt64Serializer.cs @@ -0,0 +1,49 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class UInt64Serializer : IProtoSerializer + { + public Type ExpectedType + { + get + { + return UInt64Serializer.expectedType; + } + } + + bool IProtoSerializer.RequiresOldValue + { + get + { + return false; + } + } + + bool IProtoSerializer.ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(ulong); + + public UInt64Serializer(TypeModel model) + { + } + + public object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + return source.ReadUInt64(); + } + + public void Write(object value, ProtoWriter dest) + { + ProtoWriter.WriteUInt64((ulong)value, dest); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt64Serializer.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt64Serializer.cs.meta new file mode 100644 index 00000000..c978dfa5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UInt64Serializer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3cd11be3380d8a4590384028ff49928 +timeCreated: 1611404850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UriDecorator.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UriDecorator.cs new file mode 100644 index 00000000..4150a604 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UriDecorator.cs @@ -0,0 +1,50 @@ +using System; +using ProtoBuf.Meta; + +namespace ProtoBuf.Serializers +{ + internal sealed class UriDecorator : ProtoDecoratorBase + { + public override Type ExpectedType + { + get + { + return UriDecorator.expectedType; + } + } + + public override bool RequiresOldValue + { + get + { + return false; + } + } + + public override bool ReturnsValue + { + get + { + return true; + } + } + + private static readonly Type expectedType = typeof(Uri); + + public UriDecorator(TypeModel model, IProtoSerializer tail) : base(tail) + { + } + + public override void Write(object value, ProtoWriter dest) + { + this.Tail.Write(((Uri)value).AbsoluteUri, dest); + } + + public override object Read(object value, ProtoReader source) + { + Helpers.DebugAssert(value == null); + string text = (string)this.Tail.Read(null, source); + return (text.Length == 0) ? null : new Uri(text); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UriDecorator.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UriDecorator.cs.meta new file mode 100644 index 00000000..6ae76887 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/Serializers/UriDecorator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e8f0a6082ce473469fae71e5d46f51c +timeCreated: 1611404005 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/SubItemToken.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/SubItemToken.cs new file mode 100644 index 00000000..7c7931ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/SubItemToken.cs @@ -0,0 +1,14 @@ +using System; + +namespace ProtoBuf +{ + public struct SubItemToken + { + internal readonly int value; + + internal SubItemToken(int value) + { + this.value = value; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/SubItemToken.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/SubItemToken.cs.meta new file mode 100644 index 00000000..a17fc881 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/SubItemToken.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df34e0fc616583c428069d9235d73d5d +timeCreated: 1611404692 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs new file mode 100644 index 00000000..21502a03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs @@ -0,0 +1,15 @@ +using System; + +namespace ProtoBuf +{ + internal enum TimeSpanScale + { + Days, + Hours, + Minutes, + Seconds, + Milliseconds, + Ticks, + MinMax = 15 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs.meta new file mode 100644 index 00000000..ac617b0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/TimeSpanScale.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7a52b65fa07a8b45b8d40f98e7c87a4 +timeCreated: 1611404402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/WireType.cs b/Client/Assets/Scripts/XMainClient/ProtoBuf/WireType.cs new file mode 100644 index 00000000..29ee7af0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/WireType.cs @@ -0,0 +1,16 @@ +using System; + +namespace ProtoBuf +{ + public enum WireType + { + None = -1, + Variant, + Fixed64, + String, + StartGroup, + EndGroup, + Fixed32, + SignedVariant = 8 + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtoBuf/WireType.cs.meta b/Client/Assets/Scripts/XMainClient/ProtoBuf/WireType.cs.meta new file mode 100644 index 00000000..a35fd116 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtoBuf/WireType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d843191b1a943424b934b60da2ebbf44 +timeCreated: 1611404638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Protocol.cs b/Client/Assets/Scripts/XMainClient/Protocol.cs new file mode 100644 index 00000000..777eb1af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Protocol.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Threading; +using XUtliPoolLib; + +namespace XMainClient +{ + public abstract class Protocol + { + public EProtocolErrCode ThreadErrCode + { + get + { + return this.m_threadErrCode; + } + set + { + this.m_threadErrCode = value; + } + } + + public static Dictionary sm_RegistProtocolFactory = new Dictionary(120); + + protected EProtocolErrCode m_threadErrCode = EProtocolErrCode.ENoErr; + + public class ProtocolFactry + { + public Protocol protocol = null; + + public Queue queue; + + public ProtocolFactry(Protocol p) + { + this.protocol = p; + this.queue = new Queue(); + } + + public Protocol Create() + { + bool flag = this.protocol != null; + Protocol result; + if (flag) + { + result = (Activator.CreateInstance(this.protocol.GetType()) as Protocol); + } + else + { + result = null; + } + return result; + } + + public Protocol Get() + { + bool flag = this.queue.Count > 0; + Protocol result; + if (flag) + { + result = this.queue.Dequeue(); + } + else + { + result = this.Create(); + } + return result; + } + + public void Return(Protocol protocol) + { + this.queue.Enqueue(protocol); + } + } + + public virtual uint GetProtoType() + { + return 0u; + } + + public void SerializeWithHead(MemoryStream stream) + { + long position = stream.Position; + ProtocolHead sharedHead = ProtocolHead.SharedHead; + sharedHead.Reset(); + sharedHead.type = this.GetProtoType(); + sharedHead.flag = 0u; + sharedHead.Serialize(stream); + this.Serialize(stream); + long position2 = stream.Position; + uint value = (uint)(position2 - position - 4L); + stream.Position = position; + stream.Write(BitConverter.GetBytes(value), 0, 4); + stream.Position = position2; + } + + public abstract void Serialize(MemoryStream stream); + + public abstract void DeSerialize(MemoryStream stream); + + public static Protocol GetProtocolThread(uint dwType) + { + Protocol result = null; + Monitor.Enter(Protocol.sm_RegistProtocolFactory); + Protocol.ProtocolFactry protocolFactry = null; + bool flag = Protocol.sm_RegistProtocolFactory.TryGetValue(dwType, out protocolFactry); + if (flag) + { + result = protocolFactry.Get(); + } + Monitor.Exit(Protocol.sm_RegistProtocolFactory); + return result; + } + + public static void ReturnProtocolThread(Protocol protocol) + { + bool flag = Protocol.sm_RegistProtocolFactory != null && protocol != null; + if (flag) + { + Monitor.Enter(Protocol.sm_RegistProtocolFactory); + Protocol.ProtocolFactry protocolFactry = null; + bool flag2 = Protocol.sm_RegistProtocolFactory.TryGetValue(protocol.GetProtoType(), out protocolFactry); + if (flag2) + { + protocolFactry.Return(protocol); + } + Monitor.Exit(Protocol.sm_RegistProtocolFactory); + } + } + + public static bool RegistProtocol(Protocol protocol) + { + bool flag = Protocol.sm_RegistProtocolFactory.ContainsKey(protocol.GetProtoType()); + bool result; + if (flag) + { + result = false; + } + else + { + Protocol.sm_RegistProtocolFactory.Add(protocol.GetProtoType(), new Protocol.ProtocolFactry(protocol)); + result = true; + } + return result; + } + + public static void ManualReturn() + { + CNetProcessor.ManualReturnProtocol(); + } + + public virtual bool CheckPValid() + { + bool flag = this.m_threadErrCode == EProtocolErrCode.EDeSerializeErr; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Ptc EDeSerializeErr Type:", this.GetProtoType().ToString(), null, null, null, null); + result = false; + } + else + { + result = true; + } + return result; + } + + public virtual void Process() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Protocol.cs.meta b/Client/Assets/Scripts/XMainClient/Protocol.cs.meta new file mode 100644 index 00000000..f48d5d66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Protocol.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29261a3e19a21364db398e2037fcefc1 +timeCreated: 1611403476 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ProtocolHead.cs b/Client/Assets/Scripts/XMainClient/ProtocolHead.cs new file mode 100644 index 00000000..6e2a20d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtocolHead.cs @@ -0,0 +1,163 @@ +using System; +using System.IO; +using XUtliPoolLib; + +namespace XMainClient +{ + public class ProtocolHead + { + public bool IsPtc + { + get + { + return !this.TestBit(this.flag, 0); + } + } + + public bool IsRpc + { + get + { + return this.TestBit(this.flag, 0); + } + } + + public bool IsRpcReply + { + get + { + return !this.TestBit(this.flag, 1); + } + } + + public bool IsRpcRequest + { + get + { + return this.TestBit(this.flag, 1); + } + } + + public bool IsCompressed + { + get + { + return this.TestBit(this.flag, 2); + } + } + + public bool IsRpcNull + { + get + { + return this.TestBit(this.flag, 3); + } + } + + public int Size + { + get + { + bool isRpc = this.IsRpc; + int result; + if (isRpc) + { + result = 16; + } + else + { + result = 12; + } + return result; + } + } + + public static ProtocolHead SharedHead = new ProtocolHead(); + + public static byte[] sharedUIntBuffer = new byte[4]; + + public uint len; + + public uint type; + + public uint flag; + + public uint tagID; + + public const uint MinSize = 12u; + + public bool TestBit(uint value, int bit) + { + return ((ulong)value & (ulong)(1L << (bit & 31))) > 0UL; + } + + public ProtocolHead() + { + this.len = 0u; + this.type = 0u; + this.flag = 0u; + } + + public void Reset() + { + this.len = 0u; + this.type = 0u; + this.flag = 0u; + this.tagID = 0u; + } + + public void Deserialize(byte[] bytes) + { + this.len = BitConverter.ToUInt32(bytes, 0); + this.type = BitConverter.ToUInt32(bytes, 4); + this.flag = BitConverter.ToUInt32(bytes, 8); + bool isRpc = this.IsRpc; + if (isRpc) + { + this.tagID = BitConverter.ToUInt32(bytes, 12); + } + } + + private uint ToUInt32(ref SmallBuffer sb, int startIndex) + { + uint num = (uint)sb[startIndex]; + uint num2 = (uint)sb[startIndex + 1]; + uint num3 = (uint)sb[startIndex + 2]; + uint num4 = (uint)sb[startIndex + 3]; + return num | num2 << 8 | num3 << 16 | num4 << 24; + } + + public void Deserialize(ref SmallBuffer sb) + { + this.len = this.ToUInt32(ref sb, 0); + this.type = this.ToUInt32(ref sb, 4); + this.flag = this.ToUInt32(ref sb, 8); + bool isRpc = this.IsRpc; + if (isRpc) + { + this.tagID = this.ToUInt32(ref sb, 12); + } + } + + private byte[] GetBytes(uint value) + { + ProtocolHead.sharedUIntBuffer[0] = (byte)(value & 255u); + ProtocolHead.sharedUIntBuffer[1] = (byte)((value & 65280u) >> 8); + ProtocolHead.sharedUIntBuffer[2] = (byte)((value & 16711680u) >> 16); + ProtocolHead.sharedUIntBuffer[3] = (byte)((value & 4278190080u) >> 24); + return ProtocolHead.sharedUIntBuffer; + } + + public void Serialize(MemoryStream stream) + { + stream.Write(this.GetBytes(this.len), 0, 4); + stream.Write(this.GetBytes(this.type), 0, 4); + stream.Write(this.GetBytes(this.flag), 0, 4); + bool isRpc = this.IsRpc; + if (isRpc) + { + stream.Write(this.GetBytes(this.tagID), 0, 4); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ProtocolHead.cs.meta b/Client/Assets/Scripts/XMainClient/ProtocolHead.cs.meta new file mode 100644 index 00000000..4d4dd2fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ProtocolHead.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4caeee3fee7dc04994abf44262a568f +timeCreated: 1611404503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PublicExt.cs b/Client/Assets/Scripts/XMainClient/PublicExt.cs new file mode 100644 index 00000000..2617c662 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PublicExt.cs @@ -0,0 +1,647 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using XUtliPoolLib; + +namespace XMainClient +{ + public static class PublicExt + { + public static List CastNumberParameters(object[] param, Type[] paramTypes) + { + PublicExt.ChangeToUlong(param, paramTypes); + List list = new List(); + int num = 0; + for (int i = 0; i < paramTypes.Length; i++) + { + bool flag = paramTypes[i] != null && paramTypes[i] == typeof(double); + if (flag) + { + num++; + Type[] array = new Type[paramTypes.Length]; + for (int j = 0; j < array.Length; j++) + { + bool flag2 = i == j; + if (flag2) + { + array[j] = typeof(double); + } + else + { + array[j] = paramTypes[j]; + } + } + list.Add(array); + array = new Type[paramTypes.Length]; + for (int k = 0; k < array.Length; k++) + { + bool flag3 = i == k; + if (flag3) + { + array[k] = typeof(float); + } + else + { + array[k] = paramTypes[k]; + } + } + list.Add(array); + array = new Type[paramTypes.Length]; + for (int l = 0; l < array.Length; l++) + { + bool flag4 = i == l; + if (flag4) + { + array[l] = typeof(int); + } + else + { + array[l] = paramTypes[l]; + } + } + list.Add(array); + array = new Type[paramTypes.Length]; + for (int m = 0; m < array.Length; m++) + { + bool flag5 = i == m; + if (flag5) + { + array[m] = typeof(uint); + } + else + { + array[m] = paramTypes[m]; + } + } + list.Add(array); + } + } + bool flag6 = num == 0; + if (flag6) + { + list.Add(paramTypes); + bool flag7 = paramTypes.Length == 1 && paramTypes[0] == typeof(string); + if (flag7) + { + list.Add(new Type[0]); + } + } + return list; + } + + public static void ChangeToUlong(object[] param, Type[] paramTypes) + { + for (int i = 0; i < paramTypes.Length; i++) + { + bool flag = paramTypes[i] != null && paramTypes[i] == typeof(XLuaLong); + if (flag) + { + paramTypes[i] = typeof(ulong); + param[i] = ((XLuaLong)param[i]).Get(); + } + } + } + + public static T CallPublicMethodGeneric(this object obj, string name, params object[] param) + { + BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + Type[] array = new Type[param.Length]; + for (int i = 0; i < array.Length; i++) + { + array[i] = param[i].GetType(); + } + List list = PublicExt.CastNumberParameters(param, array); + MethodInfo methodInfo = null; + try + { + methodInfo = type.GetMethod(name, bindingAttr); + } + catch + { + for (int j = 0; j < list.Count; j++) + { + methodInfo = type.GetMethod(name, list[j]); + bool flag = methodInfo != null; + if (flag) + { + break; + } + } + } + bool flag2 = methodInfo == null; + T result; + if (flag2) + { + result = default(T); + } + else + { + ParameterInfo[] parameters = methodInfo.GetParameters(); + object[] array2 = new object[parameters.Length]; + for (int k = 0; k < parameters.Length; k++) + { + bool flag3 = param[k].GetType().IsSubclassOf(parameters[k].ParameterType); + if (flag3) + { + array2[k] = param[k]; + } + else + { + bool flag4 = parameters[k].ParameterType != typeof(object); + if (flag4) + { + array2[k] = Convert.ChangeType(param[k], parameters[k].ParameterType); + } + else + { + array2[k] = param[k]; + } + } + } + result = (T)((object)methodInfo.Invoke(obj, array2)); + } + return result; + } + + public static object CallPublicMethod(this object obj, string name, params object[] param) + { + BindingFlags bindingAttr = BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + Type[] array = new Type[param.Length]; + for (int i = 0; i < array.Length; i++) + { + array[i] = param[i].GetType(); + } + List list = PublicExt.CastNumberParameters(param, array); + MethodInfo methodInfo = null; + try + { + methodInfo = type.GetMethod(name, bindingAttr); + } + catch + { + for (int j = 0; j < list.Count; j++) + { + methodInfo = type.GetMethod(name, list[j]); + bool flag = methodInfo != null; + if (flag) + { + break; + } + } + } + bool flag2 = methodInfo == null; + object result; + if (flag2) + { + result = null; + } + else + { + ParameterInfo[] parameters = methodInfo.GetParameters(); + object[] array2 = new object[parameters.Length]; + for (int k = 0; k < parameters.Length; k++) + { + bool flag3 = k < param.Length; + if (flag3) + { + bool flag4 = param[k].GetType().IsSubclassOf(parameters[k].ParameterType); + if (flag4) + { + array2[k] = param[k]; + } + else + { + bool flag5 = parameters[k].ParameterType != typeof(object); + if (flag5) + { + array2[k] = Convert.ChangeType(param[k], parameters[k].ParameterType); + } + else + { + array2[k] = param[k]; + } + } + } + else + { + array2[k] = parameters[k].DefaultValue; + } + } + result = methodInfo.Invoke(obj, array2); + } + return result; + } + + public static object CallStaticPublicMethod(string typeName, string name, params object[] param) + { + BindingFlags bindingAttr = BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = Type.GetType(typeName); + Type[] array = new Type[param.Length]; + for (int i = 0; i < array.Length; i++) + { + array[i] = param[i].GetType(); + } + List list = PublicExt.CastNumberParameters(param, array); + MethodInfo methodInfo = null; + try + { + methodInfo = type.GetMethod(name, bindingAttr); + } + catch + { + for (int j = 0; j < list.Count; j++) + { + methodInfo = type.GetMethod(name, list[j]); + bool flag = methodInfo != null; + if (flag) + { + break; + } + } + } + bool flag2 = methodInfo == null; + object result; + if (flag2) + { + result = null; + } + else + { + ParameterInfo[] parameters = methodInfo.GetParameters(); + object[] array2 = new object[parameters.Length]; + for (int k = 0; k < parameters.Length; k++) + { + bool flag3 = param[k].GetType().IsSubclassOf(parameters[k].ParameterType); + if (flag3) + { + array2[k] = param[k]; + } + else + { + bool flag4 = parameters[k].ParameterType != typeof(object); + if (flag4) + { + array2[k] = Convert.ChangeType(param[k], parameters[k].ParameterType); + } + else + { + array2[k] = param[k]; + } + } + } + result = methodInfo.Invoke(null, array2); + } + return result; + } + + public static T GetPublicFieldGeneric(this object obj, string name) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + T result; + if (flag) + { + result = (T)((object)fieldInfo.GetValue(obj)); + } + else + { + result = default(T); + } + return result; + } + + public static object GetPublicField(this object obj, string name) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + object result; + if (flag) + { + result = fieldInfo.GetValue(obj); + } + else + { + result = null; + } + return result; + } + + public static object GetStaticPublicField(string typeName, string name) + { + BindingFlags flags = BindingFlags.Static | BindingFlags.Public; + Type type = Type.GetType(typeName); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + object result; + if (flag) + { + result = fieldInfo.GetValue(null); + } + else + { + result = null; + } + return result; + } + + public static FieldInfo GetFieldInfo(Type type, string name, BindingFlags flags) + { + bool flag = type == null; + FieldInfo result; + if (flag) + { + result = null; + } + else + { + FieldInfo field = type.GetField(name, flags); + bool flag2 = field == null && type.BaseType != null; + if (flag2) + { + result = PublicExt.GetFieldInfo(type.BaseType, name, flags); + } + else + { + result = field; + } + } + return result; + } + + public static T GetPublicPropertyGeneric(this object obj, string name) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + T result; + if (flag) + { + result = (T)((object)propertyInfo.GetGetMethod(false).Invoke(obj, null)); + } + else + { + result = default(T); + } + return result; + } + + public static object GetPublicProperty(this object obj, string name) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + object result; + if (flag) + { + result = propertyInfo.GetGetMethod(false).Invoke(obj, null); + } + else + { + result = null; + } + return result; + } + + public static object GetStaticPublicProperty(string typeName, string name) + { + BindingFlags flags = BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = Type.GetType(typeName); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + object result; + if (flag) + { + result = propertyInfo.GetValue(null, null); + } + else + { + result = null; + } + return result; + } + + public static PropertyInfo GetPropertyInfo(Type type, string name, BindingFlags flags) + { + bool flag = type == null; + PropertyInfo result; + if (flag) + { + result = null; + } + else + { + PropertyInfo property = type.GetProperty(name, flags); + bool flag2 = property == null && type.BaseType != null; + if (flag2) + { + result = PublicExt.GetPropertyInfo(type.BaseType, name, flags); + } + else + { + result = property; + } + } + return result; + } + + public static void SetPublicField(this object obj, string name, object value) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + if (flag) + { + bool flag2 = fieldInfo.FieldType == typeof(int); + if (flag2) + { + int num = Convert.ToInt32(value); + fieldInfo.SetValue(obj, num); + } + else + { + bool flag3 = fieldInfo.FieldType == typeof(float); + if (flag3) + { + float num2 = Convert.ToSingle(value); + fieldInfo.SetValue(obj, num2); + } + else + { + bool flag4 = fieldInfo.FieldType == typeof(long); + if (flag4) + { + long num3 = Convert.ToInt64(value); + fieldInfo.SetValue(obj, num3); + } + else + { + bool flag5 = fieldInfo.FieldType == typeof(uint); + if (flag5) + { + uint num4 = Convert.ToUInt32(value); + fieldInfo.SetValue(obj, num4); + } + else + { + fieldInfo.SetValue(obj, value); + } + } + } + } + } + } + + public static void SetStaticPublicField(string typeName, string name, object value) + { + BindingFlags flags = BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = Type.GetType(typeName); + FieldInfo fieldInfo = PublicExt.GetFieldInfo(type, name, flags); + bool flag = fieldInfo != null; + if (flag) + { + bool flag2 = fieldInfo.FieldType == typeof(int); + if (flag2) + { + int num = Convert.ToInt32(value); + fieldInfo.SetValue(null, num); + } + else + { + bool flag3 = fieldInfo.FieldType == typeof(float); + if (flag3) + { + float num2 = Convert.ToSingle(value); + fieldInfo.SetValue(null, num2); + } + else + { + bool flag4 = fieldInfo.FieldType == typeof(long); + if (flag4) + { + long num3 = Convert.ToInt64(value); + fieldInfo.SetValue(null, num3); + } + else + { + bool flag5 = fieldInfo.FieldType == typeof(uint); + if (flag5) + { + uint num4 = Convert.ToUInt32(value); + fieldInfo.SetValue(null, num4); + } + else + { + fieldInfo.SetValue(null, value); + } + } + } + } + } + } + + public static void SetPublicProperty(this object obj, string name, object value) + { + BindingFlags flags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.FlattenHierarchy; + Type type = obj.GetType(); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + if (flag) + { + bool flag2 = propertyInfo.PropertyType == typeof(int); + if (flag2) + { + int num = Convert.ToInt32(value); + propertyInfo.SetValue(obj, num, null); + } + else + { + bool flag3 = propertyInfo.PropertyType == typeof(float); + if (flag3) + { + float num2 = Convert.ToSingle(value); + propertyInfo.SetValue(obj, num2, null); + } + else + { + bool flag4 = propertyInfo.PropertyType == typeof(long); + if (flag4) + { + long num3 = Convert.ToInt64(value); + propertyInfo.SetValue(obj, num3, null); + } + else + { + bool flag5 = propertyInfo.PropertyType == typeof(uint); + if (flag5) + { + uint num4 = Convert.ToUInt32(value); + propertyInfo.SetValue(obj, num4, null); + } + else + { + propertyInfo.SetValue(obj, value, null); + } + } + } + } + } + } + + public static void SetStaticPublicProperty(string typeName, string name, object value) + { + BindingFlags flags = BindingFlags.Static | BindingFlags.Public; + Type type = Type.GetType(typeName); + PropertyInfo propertyInfo = PublicExt.GetPropertyInfo(type, name, flags); + bool flag = propertyInfo != null; + if (flag) + { + bool flag2 = propertyInfo.PropertyType == typeof(int); + if (flag2) + { + int num = Convert.ToInt32(value); + propertyInfo.SetValue(null, num, null); + } + else + { + bool flag3 = propertyInfo.PropertyType == typeof(float); + if (flag3) + { + float num2 = Convert.ToSingle(value); + propertyInfo.SetValue(null, num2, null); + } + else + { + bool flag4 = propertyInfo.PropertyType == typeof(long); + if (flag4) + { + long num3 = Convert.ToInt64(value); + propertyInfo.SetValue(null, num3, null); + } + else + { + bool flag5 = propertyInfo.PropertyType == typeof(uint); + if (flag5) + { + uint num4 = Convert.ToUInt32(value); + propertyInfo.SetValue(null, num4, null); + } + else + { + propertyInfo.SetValue(null, value, null); + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/PublicExt.cs.meta b/Client/Assets/Scripts/XMainClient/PublicExt.cs.meta new file mode 100644 index 00000000..af94dc39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PublicExt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 413e58f56437d0c40baf54d8e038432d +timeCreated: 1611403617 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PupilApplyInfo.cs b/Client/Assets/Scripts/XMainClient/PupilApplyInfo.cs new file mode 100644 index 00000000..b5a6ac57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PupilApplyInfo.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + public class PupilApplyInfo + { + public bool isNeedStudent; + + public List applyTargetInfoList = new List(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/PupilApplyInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PupilApplyInfo.cs.meta new file mode 100644 index 00000000..4251fafb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PupilApplyInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3641f231107ac44aa9e1e7827d607a2 +timeCreated: 1611404848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PupilTargetItemInfo.cs b/Client/Assets/Scripts/XMainClient/PupilTargetItemInfo.cs new file mode 100644 index 00000000..977edf0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PupilTargetItemInfo.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class PupilTargetItemInfo + { + public RoleBriefInfo roleInfo; + + public bool isApplied = false; + + public string applyWords = string.Empty; + } +} diff --git a/Client/Assets/Scripts/XMainClient/PupilTargetItemInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PupilTargetItemInfo.cs.meta new file mode 100644 index 00000000..6a585617 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PupilTargetItemInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2dbb70b02db3a044ab971643532a03a9 +timeCreated: 1611403507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PurchaseInfo.cs b/Client/Assets/Scripts/XMainClient/PurchaseInfo.cs new file mode 100644 index 00000000..18c7eb95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PurchaseInfo.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class PurchaseInfo + { + public int BuyGoldCount = 0; + + public int BuyDragonCoinCount = 0; + + public uint day = 0u; + + public List BuyFatigueCount = new List(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/PurchaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/PurchaseInfo.cs.meta new file mode 100644 index 00000000..264f40d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PurchaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3832878732139a4b82862d6dfade6d6 +timeCreated: 1611404849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/PushSubscribeOptions.cs b/Client/Assets/Scripts/XMainClient/PushSubscribeOptions.cs new file mode 100644 index 00000000..04a3e0b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PushSubscribeOptions.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum PushSubscribeOptions + { + WorldBoss = 1, + GuildBoss, + ReceiveEnergy, + MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/PushSubscribeOptions.cs.meta b/Client/Assets/Scripts/XMainClient/PushSubscribeOptions.cs.meta new file mode 100644 index 00000000..f71da58a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/PushSubscribeOptions.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d68506a6896d68e47abf12a22e67414e +timeCreated: 1611404632 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/QQVipType.cs b/Client/Assets/Scripts/XMainClient/QQVipType.cs new file mode 100644 index 00000000..fa002ebc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/QQVipType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum QQVipType + { + None, + Vip, + SVip + } +} diff --git a/Client/Assets/Scripts/XMainClient/QQVipType.cs.meta b/Client/Assets/Scripts/XMainClient/QQVipType.cs.meta new file mode 100644 index 00000000..2279b933 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/QQVipType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67b2d5d7e490a4b4a8bfe9305bec7957 +timeCreated: 1611403859 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/QualifyingRankInfo.cs b/Client/Assets/Scripts/XMainClient/QualifyingRankInfo.cs new file mode 100644 index 00000000..4822580b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/QualifyingRankInfo.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient +{ + public class QualifyingRankInfo + { + public ulong uid; + + public uint rank; + + public uint level; + + public string name; + + public uint point; + + public uint totalNum = 0u; + } +} diff --git a/Client/Assets/Scripts/XMainClient/QualifyingRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/QualifyingRankInfo.cs.meta new file mode 100644 index 00000000..c56572d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/QualifyingRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bff68fddbc13c4b4d8ebade04421380e +timeCreated: 1611404484 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC.meta b/Client/Assets/Scripts/XMainClient/RPC.meta new file mode 100644 index 00000000..608799a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: bb2e09294389aba4992947ccfed68add +folderAsset: yes +timeCreated: 1611546552 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/Rpc.cs b/Client/Assets/Scripts/XMainClient/RPC/Rpc.cs new file mode 100644 index 00000000..2effbbcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/Rpc.cs @@ -0,0 +1,340 @@ +using System; +using System.IO; +using System.Threading; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public abstract class Rpc + { + public static bool OnRpcDelay + { + get + { + return Rpc._is_rpc_delay; + } + } + + public static bool OnRpcTimeOutClosed + { + get + { + return Rpc._is_rpc_close_time_out; + } + } + + public static float RpcDelayedTime + { + get + { + return Rpc._rpc_delayed_time; + } + } + + public static float DelayThreshold + { + get + { + return Rpc._delayThreshold; + } + } + + public EProtocolErrCode ThreadErrCode + { + get + { + return this.m_threadErrCode; + } + set + { + this.m_threadErrCode = value; + } + } + + public float Timeout + { + get + { + return this.timeout; + } + set + { + this.timeout = value; + } + } + + public uint TimerToken + { + get + { + return this.timerToken; + } + } + + private static readonly float _delayThreshold = 1f; + + private static readonly float _timeout_close_Threshold = 15f; + + private static bool _is_rpc_delay = false; + + private static bool _is_rpc_close_time_out = false; + + private static float _rpc_delayed_time = 0f; + + public static uint sMaxTagID = 1024u; + + private static Rpc[] sm_RpcWaitingReplyCache = new Rpc[Rpc.sMaxTagID]; + + private static uint sTagID = 0u; + + public static string delayRpcName = ""; + + public int SocketID; + + private float sendTime; + + public long replyTick; + + private XTimerMgr.ElapsedEventHandler _timeCb = null; + + protected EProtocolErrCode m_threadErrCode = EProtocolErrCode.ENoErr; + + private uint tagID = 0u; + + private uint timerToken = 0u; + + private float timeout = Rpc._timeout_close_Threshold - 1f; + + public Rpc() + { + this._timeCb = new XTimerMgr.ElapsedEventHandler(this.TimerCallback); + uint rpcType = this.GetRpcType(); + if (rpcType <= 10091u) + { + if (rpcType != 9179u) + { + if (rpcType == 10091u) + { + this.timeout = 5f; + } + } + else + { + this.timeout = 5f; + } + } + else if (rpcType != 25069u) + { + if (rpcType != 28358u) + { + if (rpcType == 30514u) + { + this.timeout = (float)XServerTimeMgr.SyncTimeOut / 1000f; + } + } + else + { + this.timeout = 5f; + } + } + else + { + this.timeout = 5f; + } + } + + public virtual uint GetRpcType() + { + return 0u; + } + + public void SerializeWithHead(MemoryStream stream) + { + long position = stream.Position; + ProtocolHead sharedHead = ProtocolHead.SharedHead; + sharedHead.type = this.GetRpcType(); + sharedHead.flag = 3u; + sharedHead.tagID = this.tagID; + sharedHead.Serialize(stream); + this.Serialize(stream); + long position2 = stream.Position; + uint value = (uint)(position2 - position - 4L); + stream.Position = position; + stream.Write(BitConverter.GetBytes(value), 0, 4); + stream.Position = position2; + } + + public abstract void Serialize(MemoryStream stream); + + public abstract void DeSerialize(MemoryStream stream); + + public virtual bool CheckPValid() + { + bool flag = this.m_threadErrCode == EProtocolErrCode.EDeSerializeErr; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Roc EDeSerializeErr Type:", this.GetRpcType().ToString(), null, null, null, null); + result = false; + } + else + { + result = true; + } + return result; + } + + public void BeforeSend() + { + Rpc.sTagID += 1u; + bool flag = Rpc.sTagID >= Rpc.sMaxTagID; + if (flag) + { + Rpc.sTagID = 0u; + } + this.tagID = Rpc.sTagID; + } + + public void AfterSend() + { + this.sendTime = Time.realtimeSinceStartup; + Monitor.Enter(Rpc.sm_RpcWaitingReplyCache); + bool flag = (ulong)this.tagID < (ulong)((long)Rpc.sm_RpcWaitingReplyCache.Length); + if (flag) + { + bool flag2 = Rpc.sm_RpcWaitingReplyCache[(int)this.tagID] != null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("rpc not processed yet", null, null, null, null, null); + } + Rpc.sm_RpcWaitingReplyCache[(int)this.tagID] = this; + } + Monitor.Exit(Rpc.sm_RpcWaitingReplyCache); + } + + public void SetTimeOut() + { + bool flag = this._timeCb == null; + if (flag) + { + this._timeCb = new XTimerMgr.ElapsedEventHandler(this.TimerCallback); + } + this.timerToken = XSingleton.singleton.SetGlobalTimer(this.timeout, this._timeCb, null); + } + + public void CallTimeOut() + { + XSingleton.singleton.KillTimer(this.timerToken); + this.OnTimeout(null); + } + + private void TimerCallback(object args) + { + Rpc.RemoveRpcByTag(this.tagID); + this.OnTimeout(args); + bool flag = this.GetRpcType() != 30514u && this.GetRpcType() != 39595u && XSingleton.singleton.IsConnected(); + if (flag) + { + Rpc._is_rpc_close_time_out = true; + Rpc.delayRpcName = this.ToString(); + } + XSingleton.singleton.AddWarningLog("RPC TimeOut: ", this.ToString(), null, null, null, null); + } + + public virtual void Process() + { + XSingleton.singleton.KillTimer(this.timerToken); + } + + public void RemoveTimer() + { + XSingleton.singleton.KillTimer(this.timerToken); + } + + public abstract void OnTimeout(object args); + + public static void RemoveRpcByTag(uint dwTag) + { + Monitor.Enter(Rpc.sm_RpcWaitingReplyCache); + bool flag = (ulong)dwTag < (ulong)((long)Rpc.sm_RpcWaitingReplyCache.Length); + if (flag) + { + Rpc.sm_RpcWaitingReplyCache[(int)dwTag] = null; + } + Monitor.Exit(Rpc.sm_RpcWaitingReplyCache); + } + + public static Rpc GetRemoveRpcByTag(uint dwTag) + { + Rpc result = null; + Monitor.Enter(Rpc.sm_RpcWaitingReplyCache); + bool flag = (ulong)dwTag < (ulong)((long)Rpc.sm_RpcWaitingReplyCache.Length); + if (flag) + { + result = Rpc.sm_RpcWaitingReplyCache[(int)dwTag]; + Rpc.sm_RpcWaitingReplyCache[(int)dwTag] = null; + } + Monitor.Exit(Rpc.sm_RpcWaitingReplyCache); + return result; + } + + public static void CheckDelay() + { + Rpc._is_rpc_delay = false; + float realtimeSinceStartup = Time.realtimeSinceStartup; + Rpc._rpc_delayed_time = 0f; + Monitor.Enter(Rpc.sm_RpcWaitingReplyCache); + int i = 0; + while (i < Rpc.sm_RpcWaitingReplyCache.Length) + { + Rpc rpc = Rpc.sm_RpcWaitingReplyCache[i]; + bool flag = rpc != null; + if (flag) + { + bool flag2 = rpc.GetRpcType() == 30514u || rpc.GetRpcType() == 28358u || rpc.GetRpcType() == 45201u || rpc.GetRpcType() == 39595u; + if (!flag2) + { + float num = realtimeSinceStartup - rpc.sendTime; + bool flag3 = Rpc._rpc_delayed_time < num; + if (flag3) + { + Rpc._rpc_delayed_time = num; + } + bool flag4 = num > Rpc._delayThreshold; + if (flag4) + { + Rpc._is_rpc_delay = true; + Rpc.delayRpcName = rpc.ToString(); + break; + } + } + } + IL_C3: + i++; + continue; + goto IL_C3; + } + Monitor.Exit(Rpc.sm_RpcWaitingReplyCache); + } + + public static void Close() + { + Monitor.Enter(Rpc.sm_RpcWaitingReplyCache); + for (int i = 0; i < Rpc.sm_RpcWaitingReplyCache.Length; i++) + { + Rpc rpc = Rpc.sm_RpcWaitingReplyCache[i]; + bool flag = rpc != null; + if (flag) + { + XSingleton.singleton.KillTimer(rpc.TimerToken); + rpc.OnTimeout(null); + } + Rpc.sm_RpcWaitingReplyCache[i] = null; + } + Monitor.Exit(Rpc.sm_RpcWaitingReplyCache); + Rpc._is_rpc_delay = false; + Rpc._is_rpc_close_time_out = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/Rpc.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/Rpc.cs.meta new file mode 100644 index 00000000..81fb8101 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/Rpc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ea0c356087377f4cb3a0be3ce0e1ec3 +timeCreated: 1611404130 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs new file mode 100644 index 00000000..360e9881 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2A_AudioAuthKey : Rpc + { + public AudioAuthKeyArg oArg = new AudioAuthKeyArg(); + + public AudioAuthKeyRes oRes = null; + + public override uint GetRpcType() + { + return 19391u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2A_AudioAuthKey.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2A_AudioAuthKey.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs.meta new file mode 100644 index 00000000..f6e48cd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioAuthKey.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05efb3a60ec55f14fb1eb6853430cd1a +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioText.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioText.cs new file mode 100644 index 00000000..24e61533 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioText.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2A_AudioText : Rpc + { + public AudioTextArg oArg = new AudioTextArg(); + + public AudioTextRes oRes = null; + + public override uint GetRpcType() + { + return 42254u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2A_AudioText.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2A_AudioText.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioText.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioText.cs.meta new file mode 100644 index 00000000..5e203d28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_AudioText.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 061d79a5b9ee21e42b9208b744f76784 +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_GetAudioListReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_GetAudioListReq.cs new file mode 100644 index 00000000..f5416835 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_GetAudioListReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2A_GetAudioListReq : Rpc + { + public GetAudioListReq oArg = new GetAudioListReq(); + + public GetAudioListRes oRes = new GetAudioListRes(); + + public override uint GetRpcType() + { + return 49666u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2A_GetAudioListReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2A_GetAudioListReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_GetAudioListReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_GetAudioListReq.cs.meta new file mode 100644 index 00000000..79c246cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_GetAudioListReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7164f16514845ae4fa41757f4950bd63 +timeCreated: 1611403934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs new file mode 100644 index 00000000..4253939c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2A_UpLoadAudioReq : Rpc + { + public UpLoadAudioReq oArg = new UpLoadAudioReq(); + + public UpLoadAudioRes oRes = new UpLoadAudioRes(); + + public override uint GetRpcType() + { + return 3069u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2A_UpLoadAudioReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2A_UpLoadAudioReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs.meta new file mode 100644 index 00000000..35aa790a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2A_UpLoadAudioReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc5ac15c478b44043a11c9adea74ba7e +timeCreated: 1611404550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AbsEnterScene.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AbsEnterScene.cs new file mode 100644 index 00000000..f576d931 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AbsEnterScene.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_AbsEnterScene : Rpc + { + public AbsEnterSceneArg oArg = new AbsEnterSceneArg(); + + public AbsEnterSceneRes oRes = null; + + public override uint GetRpcType() + { + return 23463u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_AbsEnterScene.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_AbsEnterScene.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AbsEnterScene.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AbsEnterScene.cs.meta new file mode 100644 index 00000000..336c1bfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AbsEnterScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e31b89ef09c1f9a4e860ca3693874c09 +timeCreated: 1611404731 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs new file mode 100644 index 00000000..42353ca0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ActivatAtlas : Rpc + { + public ActivatAtlasArg oArg = new ActivatAtlasArg(); + + public ActivatAtlasRes oRes = new ActivatAtlasRes(); + + public override uint GetRpcType() + { + return 15919u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ActivatAtlas.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ActivatAtlas.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs.meta new file mode 100644 index 00000000..e0640f04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatAtlas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd79421a46f74fc4ba2cd5120531937d +timeCreated: 1611404683 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs new file mode 100644 index 00000000..3b1f8719 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ActivateFashionCharm : Rpc + { + public ActivateFashionArg oArg = new ActivateFashionArg(); + + public ActivateFashionRes oRes = null; + + public override uint GetRpcType() + { + return 58036u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ActivateFashionCharm.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ActivateFashionCharm.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs.meta new file mode 100644 index 00000000..c9d73764 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateFashionCharm.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9075a25025a88cd41811cac424bd014e +timeCreated: 1611404138 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateHairColor.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateHairColor.cs new file mode 100644 index 00000000..28fb6ef4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateHairColor.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ActivateHairColor : Rpc + { + public ActivateHairColorArg oArg = new ActivateHairColorArg(); + + public ActivateHairColorRes oRes = null; + + public override uint GetRpcType() + { + return 52321u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ActivateHairColor.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ActivateHairColor.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateHairColor.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateHairColor.cs.meta new file mode 100644 index 00000000..1da62130 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivateHairColor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 399a5e642f4188f418eb85497a6ecf45 +timeCreated: 1611403592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatePreShow.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatePreShow.cs new file mode 100644 index 00000000..dbb1db98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatePreShow.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ActivatePreShow : Rpc + { + public ActivatePreShowArg oArg = new ActivatePreShowArg(); + + public ActivatePreShowRes oRes = null; + + public override uint GetRpcType() + { + return 22466u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ActivatePreShow.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ActivatePreShow.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatePreShow.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatePreShow.cs.meta new file mode 100644 index 00000000..68b10d3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ActivatePreShow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22342c19865ce9b47bcdfbcb9fee9e0c +timeCreated: 1611403420 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs new file mode 100644 index 00000000..22f8b072 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_AddTempAttr : Rpc + { + public AddTempAttrArg oArg = new AddTempAttrArg(); + + public AddTempAttrRes oRes = new AddTempAttrRes(); + + public override uint GetRpcType() + { + return 22021u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_AddTempAttr.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_AddTempAttr.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs.meta new file mode 100644 index 00000000..61ef5074 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AddTempAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eca6cefb126bb6147a03e7c478acb9ab +timeCreated: 1611404788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs new file mode 100644 index 00000000..432d0aad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_AgreeQAReq : Rpc + { + public AgreeQAReq oArg = new AgreeQAReq(); + + public AgreeQARes oRes = new AgreeQARes(); + + public override uint GetRpcType() + { + return 43200u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_AgreeQAReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_AgreeQAReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs.meta new file mode 100644 index 00000000..241c9bb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AgreeQAReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8fc400e599b148e489d001fa4212a439 +timeCreated: 1611404136 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArgentaActivity.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArgentaActivity.cs new file mode 100644 index 00000000..4bf1b992 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArgentaActivity.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ArgentaActivity : Rpc + { + public ArgentaActivityArg oArg = new ArgentaActivityArg(); + + public ArgentaActivityRes oRes = null; + + public override uint GetRpcType() + { + return 838u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ArgentaActivity.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ArgentaActivity.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArgentaActivity.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArgentaActivity.cs.meta new file mode 100644 index 00000000..8bb40817 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArgentaActivity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3069a3cb1d7692e40a467dc92f6f0e62 +timeCreated: 1611403521 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactCompose.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactCompose.cs new file mode 100644 index 00000000..f1eed026 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactCompose.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ArtifactCompose : Rpc + { + public ArtifactComposeArg oArg = new ArtifactComposeArg(); + + public ArtifactComposeRes oRes = null; + + public override uint GetRpcType() + { + return 599u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ArtifactCompose.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ArtifactCompose.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactCompose.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactCompose.cs.meta new file mode 100644 index 00000000..5e1bc4a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 25c289e645d46ae4aa68fad23f250f1f +timeCreated: 1611403466 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs new file mode 100644 index 00000000..aaa4dfd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ArtifactDeityStoveOp : Rpc + { + public ArtifactDeityStoveOpArg oArg = new ArtifactDeityStoveOpArg(); + + public ArtifactDeityStoveOpRes oRes = null; + + public override uint GetRpcType() + { + return 35155u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ArtifactDeityStoveOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ArtifactDeityStoveOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs.meta new file mode 100644 index 00000000..215bcdd1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ArtifactDeityStoveOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36932049ca7811b47850a7a19b45bad9 +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs new file mode 100644 index 00000000..6d2f824b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_AskForCheckInBonus : Rpc + { + public AskForCheckInBonusArg oArg = new AskForCheckInBonusArg(); + + public AskForCheckInBonusRes oRes = new AskForCheckInBonusRes(); + + public override uint GetRpcType() + { + return 32843u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_AskForCheckInBonus.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_AskForCheckInBonus.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs.meta new file mode 100644 index 00000000..f8403d04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AskForCheckInBonus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e5037c7a41704c419231108068a1ec9 +timeCreated: 1611403202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs new file mode 100644 index 00000000..081dfd0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_AtlasUpStar : Rpc + { + public AtlasUpStarArg oArg = new AtlasUpStarArg(); + + public AtlasUpStarRes oRes = null; + + public override uint GetRpcType() + { + return 41051u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_AtlasUpStar.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_AtlasUpStar.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs.meta new file mode 100644 index 00000000..5fdc6195 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AtlasUpStar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 988cde1c6ca74e646b6f4c44ca865714 +timeCreated: 1611404191 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs new file mode 100644 index 00000000..3d410417 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_AutoBreakAtlas : Rpc + { + public AutoBreakAtlasArg oArg = new AutoBreakAtlasArg(); + + public AutoBreakAtlasRes oRes = new AutoBreakAtlasRes(); + + public override uint GetRpcType() + { + return 23263u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_AutoBreakAtlas.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_AutoBreakAtlas.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs.meta new file mode 100644 index 00000000..992c94a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_AutoBreakAtlas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97904cee869cd3a4682c7595339362c5 +timeCreated: 1611404188 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowActivityOperation.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowActivityOperation.cs new file mode 100644 index 00000000..05fbac0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowActivityOperation.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BackFlowActivityOperation : Rpc + { + public BackFlowActivityOperationArg oArg = new BackFlowActivityOperationArg(); + + public BackFlowActivityOperationRes oRes = null; + + public override uint GetRpcType() + { + return 61579u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BackFlowActivityOperation.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BackFlowActivityOperation.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowActivityOperation.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowActivityOperation.cs.meta new file mode 100644 index 00000000..e5a2b3c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowActivityOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc2c824017e11ee44976ae1b845255ee +timeCreated: 1611404445 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs new file mode 100644 index 00000000..7986fe81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BackFlowBuyOp : Rpc + { + public BackFlowBuyOpArg oArg = new BackFlowBuyOpArg(); + + public BackFlowBuyOpRes oRes = null; + + public override uint GetRpcType() + { + return 16261u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BackFlowBuyOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BackFlowBuyOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs.meta new file mode 100644 index 00000000..0107f145 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BackFlowBuyOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efe37b79b9f95e74da6014298f599c41 +timeCreated: 1611404806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldAwardNumReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldAwardNumReq.cs new file mode 100644 index 00000000..1397aca7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldAwardNumReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BattleFieldAwardNumReq : Rpc + { + public BattleFieldAwardNumArg oArg = new BattleFieldAwardNumArg(); + + public BattleFieldAwardNumRes oRes = null; + + public override uint GetRpcType() + { + return 59171u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BattleFieldAwardNumReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BattleFieldAwardNumReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldAwardNumReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldAwardNumReq.cs.meta new file mode 100644 index 00000000..133dca1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldAwardNumReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20c0f419cae44fe46a38e3a47cf0ed7a +timeCreated: 1611403408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs new file mode 100644 index 00000000..92cb6f82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BattleFieldRankReq : Rpc + { + public BattleFieldRankArg oArg = new BattleFieldRankArg(); + + public BattleFieldRankRes oRes = null; + + public override uint GetRpcType() + { + return 4893u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BattleFieldRankReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BattleFieldRankReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs.meta new file mode 100644 index 00000000..a26a15be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRankReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e567521434e56f24f93c268b088b8d37 +timeCreated: 1611404743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRoleAgainstReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRoleAgainstReq.cs new file mode 100644 index 00000000..198458e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRoleAgainstReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BattleFieldRoleAgainstReq : Rpc + { + public BattleFieldRoleAgainstArg oArg = new BattleFieldRoleAgainstArg(); + + public BattleFieldRoleAgainst oRes = null; + + public override uint GetRpcType() + { + return 12475u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BattleFieldRoleAgainstReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BattleFieldRoleAgainstReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRoleAgainstReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRoleAgainstReq.cs.meta new file mode 100644 index 00000000..2f4ac80f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BattleFieldRoleAgainstReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a301129da664a1e41907d3c2af7285c7 +timeCreated: 1611404259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs new file mode 100644 index 00000000..6ae8b0cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BindSkill : Rpc + { + public BingSkillArg oArg = new BingSkillArg(); + + public BindSkillRes oRes = new BindSkillRes(); + + public override uint GetRpcType() + { + return 48236u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BindSkill.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BindSkill.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs.meta new file mode 100644 index 00000000..dde72f6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BindSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c3ea187674adf7488c1f305fd3eb057 +timeCreated: 1611404231 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs new file mode 100644 index 00000000..c945855a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BossRushReq : Rpc + { + public BossRushArg oArg = new BossRushArg(); + + public BossRushRes oRes = new BossRushRes(); + + public override uint GetRpcType() + { + return 44074u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BossRushReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BossRushReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs.meta new file mode 100644 index 00000000..df8d6001 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BossRushReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1ad37a8fc3cfc94d844475af9f0fb93 +timeCreated: 1611404839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs new file mode 100644 index 00000000..72e1cd06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyDraw : Rpc + { + public BuyDrawReq oArg = new BuyDrawReq(); + + public BuyDrawRes oRes = null; + + public override uint GetRpcType() + { + return 51925u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyDraw.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyDraw.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs.meta new file mode 100644 index 00000000..e201d150 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyDraw.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d9a203e84ec38b4da193da17a9a9043 +timeCreated: 1611403197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs new file mode 100644 index 00000000..b1f8befc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyExtraSkillEmblemSlot : Rpc + { + public BuyExtraSkillEmblemSlotArg oArg = new BuyExtraSkillEmblemSlotArg(); + + public BuyExtraSkillEmblemSlotRes oRes = null; + + public override uint GetRpcType() + { + return 17851u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyExtraSkillEmblemSlot.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyExtraSkillEmblemSlot.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs.meta new file mode 100644 index 00000000..a9a1072a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyExtraSkillEmblemSlot.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5288fe542234f04b8b8aeb1b68a330f +timeCreated: 1611404626 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs new file mode 100644 index 00000000..f11eb86d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyGoldAndFatigue : Rpc + { + public BuyGoldAndFatigueArg oArg = new BuyGoldAndFatigueArg(); + + public BuyGoldAndFatigueRes oRes = new BuyGoldAndFatigueRes(); + + public override uint GetRpcType() + { + return 31095u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyGoldAndFatigue.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyGoldAndFatigue.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs.meta new file mode 100644 index 00000000..92aece11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyGoldAndFatigue.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54fa59ec0a177c14a8bc69b2fbf20505 +timeCreated: 1611403736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs new file mode 100644 index 00000000..441c62d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyHeroInHeroBattle : Rpc + { + public BuyHeroInHeroBattleArg oArg = new BuyHeroInHeroBattleArg(); + + public BuyHeroInHeroBattleRes oRes = null; + + public override uint GetRpcType() + { + return 7735u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyHeroInHeroBattle.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyHeroInHeroBattle.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs.meta new file mode 100644 index 00000000..ddc80454 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyHeroInHeroBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 414732135569df143aff9ac0e9000a4f +timeCreated: 1611403617 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs new file mode 100644 index 00000000..1351b7cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyIBItem : Rpc + { + public IBBuyItemReq oArg = new IBBuyItemReq(); + + public IBBuyItemRes oRes = new IBBuyItemRes(); + + public override uint GetRpcType() + { + return 11547u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyIBItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyIBItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs.meta new file mode 100644 index 00000000..1aaedc30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyIBItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dee48d7fd0b91af4c82ed2046c9aa5f1 +timeCreated: 1611404688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs new file mode 100644 index 00000000..96470ca5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyJadeSlot : Rpc + { + public BuyJadeSlotArg oArg = new BuyJadeSlotArg(); + + public BuyJadeSlotRes oRes = new BuyJadeSlotRes(); + + public override uint GetRpcType() + { + return 37813u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyJadeSlot.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyJadeSlot.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs.meta new file mode 100644 index 00000000..3fff484a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlot.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aaf5a2ea6b536da429b7eb3edbb43c64 +timeCreated: 1611404306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs new file mode 100644 index 00000000..03d17513 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyJadeSlotNew : Rpc + { + public BuyJadeSlotNewArg oArg = new BuyJadeSlotNewArg(); + + public BuyJadeSlotNewRes oRes = null; + + public override uint GetRpcType() + { + return 37588u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyJadeSlotNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyJadeSlotNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs.meta new file mode 100644 index 00000000..6fbcbb30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyJadeSlotNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8801c5cfe8208fa4ca57b213b8321bb8 +timeCreated: 1611404082 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs new file mode 100644 index 00000000..e888530a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyShopItem : Rpc + { + public BuyShopItemArg oArg = new BuyShopItemArg(); + + public BuyShopItemRes oRes = new BuyShopItemRes(); + + public override uint GetRpcType() + { + return 33881u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyShopItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyShopItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs.meta new file mode 100644 index 00000000..13eecc48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b42498e102b25fb448e41864180c01e0 +timeCreated: 1611404391 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs new file mode 100644 index 00000000..b3da5535 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuySpriteEgg : Rpc + { + public BuySpriteEggArg oArg = new BuySpriteEggArg(); + + public BuySpriteEggRes oRes = null; + + public override uint GetRpcType() + { + return 34552u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuySpriteEgg.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuySpriteEgg.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs.meta new file mode 100644 index 00000000..f926f7f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuySpriteEgg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ae46ce2f6656e94c8811d6f683975a5 +timeCreated: 1611403684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs new file mode 100644 index 00000000..12e0d094 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyTeamSceneCount : Rpc + { + public BuyTeamSceneCountP oArg = new BuyTeamSceneCountP(); + + public BuyTeamSceneCountRet oRes = new BuyTeamSceneCountRet(); + + public override uint GetRpcType() + { + return 9226u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyTeamSceneCount.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyTeamSceneCount.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs.meta new file mode 100644 index 00000000..fb5d6f5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyTeamSceneCount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 82980a17ccd3a3a49b8cadb7db8d4eb0 +timeCreated: 1611404041 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs new file mode 100644 index 00000000..81e80904 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_BuyVipLevelGift : Rpc + { + public BuyVipLevelGiftArg oArg = new BuyVipLevelGiftArg(); + + public BuyVipLevelGiftRes oRes = new BuyVipLevelGiftRes(); + + public override uint GetRpcType() + { + return 52536u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_BuyVipLevelGift.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_BuyVipLevelGift.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs.meta new file mode 100644 index 00000000..18b03af8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_BuyVipLevelGift.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41f7e218bb7d5ee4aa417c0e795869ac +timeCreated: 1611403638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CampDuelActivityOperation.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CampDuelActivityOperation.cs new file mode 100644 index 00000000..4f94cad6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CampDuelActivityOperation.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_CampDuelActivityOperation : Rpc + { + public CampDuelActivityOperationArg oArg = new CampDuelActivityOperationArg(); + + public CampDuelActivityOperationRes oRes = null; + + public override uint GetRpcType() + { + return 1361u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_CampDuelActivityOperation.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_CampDuelActivityOperation.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CampDuelActivityOperation.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CampDuelActivityOperation.cs.meta new file mode 100644 index 00000000..cb039198 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CampDuelActivityOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8efa69c0533c28943aaf169444f4d2e0 +timeCreated: 1611404132 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeDeclaration.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeDeclaration.cs new file mode 100644 index 00000000..324f032d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeDeclaration.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChangeDeclaration : Rpc + { + public ChangeDeclarationArg oArg = new ChangeDeclarationArg(); + + public ChangeDeclarationRes oRes = null; + + public override uint GetRpcType() + { + return 1588u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChangeDeclaration.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChangeDeclaration.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeDeclaration.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeDeclaration.cs.meta new file mode 100644 index 00000000..b91b8d4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeDeclaration.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 846b13053cc23a242a40f09315d6da1f +timeCreated: 1611404048 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeGuildCard.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeGuildCard.cs new file mode 100644 index 00000000..04a117f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeGuildCard.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChangeGuildCard : Rpc + { + public ChangeGuildCardArg oArg = new ChangeGuildCardArg(); + + public ChangeGuildCardRes oRes = new ChangeGuildCardRes(); + + public override uint GetRpcType() + { + return 55997u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChangeGuildCard.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChangeGuildCard.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeGuildCard.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeGuildCard.cs.meta new file mode 100644 index 00000000..68a411ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeGuildCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5bd8191bcd759f048b6aa522ace77589 +timeCreated: 1611403800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs new file mode 100644 index 00000000..bb61641d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChangeLiveVisible : Rpc + { + public ChangeLiveVisibleArg oArg = new ChangeLiveVisibleArg(); + + public ChangeLiveVisibleRes oRes = null; + + public override uint GetRpcType() + { + return 56831u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChangeLiveVisible.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChangeLiveVisible.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs.meta new file mode 100644 index 00000000..fb00e652 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeLiveVisible.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e598c9127ac30f54ba3ee642d5863bd7 +timeCreated: 1611404743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs new file mode 100644 index 00000000..df35be85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChangeOutLookOp : Rpc + { + public ChangeOutLookOpArg oArg = new ChangeOutLookOpArg(); + + public ChangeOutLookOpRes oRes = new ChangeOutLookOpRes(); + + public override uint GetRpcType() + { + return 56978u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChangeOutLookOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChangeOutLookOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs.meta new file mode 100644 index 00000000..b68f4f72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeOutLookOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3991bcfe522b1bf4999d91d0d6f3a93b +timeCreated: 1611403592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeProfession.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeProfession.cs new file mode 100644 index 00000000..9d741cc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeProfession.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChangeProfession : Rpc + { + public ChangeProfessionArg oArg = new ChangeProfessionArg(); + + public ChangeProfessionRes oRes = null; + + public override uint GetRpcType() + { + return 48822u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChangeProfession.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChangeProfession.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeProfession.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeProfession.cs.meta new file mode 100644 index 00000000..421ca1c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeProfession.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f6f6062cee01d245a2ca4269712fa30 +timeCreated: 1611403700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs new file mode 100644 index 00000000..b9ea04d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChangeRiskBoxState : Rpc + { + public ChangeRiskBoxStateArg oArg = new ChangeRiskBoxStateArg(); + + public ChangeRiskBoxStateRes oRes = new ChangeRiskBoxStateRes(); + + public override uint GetRpcType() + { + return 4472u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChangeRiskBoxState.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChangeRiskBoxState.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs.meta new file mode 100644 index 00000000..43b45d21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeRiskBoxState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33e5a8654a3fadc4083e5b182bc107c0 +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeSkillSet.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeSkillSet.cs new file mode 100644 index 00000000..6762be82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeSkillSet.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChangeSkillSet : Rpc + { + public ChangeSkillSetArg oArg = new ChangeSkillSetArg(); + + public ChangeSkillSetRes oRes = null; + + public override uint GetRpcType() + { + return 51116u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChangeSkillSet.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChangeSkillSet.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeSkillSet.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeSkillSet.cs.meta new file mode 100644 index 00000000..2a18e60d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeSkillSet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07f4b73b19df3764091fa3eff2be6e5f +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeWatchRole.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeWatchRole.cs new file mode 100644 index 00000000..85c94dcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeWatchRole.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChangeWatchRole : Rpc + { + public ChangeWatchRoleArg oArg = new ChangeWatchRoleArg(); + + public ChangeWatchRoleRes oRes = new ChangeWatchRoleRes(); + + public override uint GetRpcType() + { + return 35369u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChangeWatchRole.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChangeWatchRole.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeWatchRole.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeWatchRole.cs.meta new file mode 100644 index 00000000..74c896ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChangeWatchRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b00a1d246bf4fa64599757321ec8de72 +timeCreated: 1611404348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Checkin.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Checkin.cs new file mode 100644 index 00000000..8f1862f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Checkin.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_Checkin : Rpc + { + public CheckinArg oArg = new CheckinArg(); + + public CheckinRes oRes = new CheckinRes(); + + public override uint GetRpcType() + { + return 56127u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_Checkin.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_Checkin.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Checkin.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Checkin.cs.meta new file mode 100644 index 00000000..307aed0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Checkin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 080bae84f7f6e6b43b9b9a3c5468e9a3 +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseProfession.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseProfession.cs new file mode 100644 index 00000000..d4cc2ed2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseProfession.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChooseProfession : Rpc + { + public ChooseProfArg oArg = new ChooseProfArg(); + + public ChooseProfRes oRes = null; + + public override uint GetRpcType() + { + return 24314u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChooseProfession.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChooseProfession.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseProfession.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseProfession.cs.meta new file mode 100644 index 00000000..7f4de37a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseProfession.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0605754665f9fc4897ae189a47ff767 +timeCreated: 1611404697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseRollReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseRollReq.cs new file mode 100644 index 00000000..cbc88e94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseRollReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChooseRollReq : Rpc + { + public ChooseRollReqArg oArg = new ChooseRollReqArg(); + + public ChooseRollReqRes oRes = new ChooseRollReqRes(); + + public override uint GetRpcType() + { + return 50047u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChooseRollReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChooseRollReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseRollReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseRollReq.cs.meta new file mode 100644 index 00000000..fb863684 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseRollReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8681c0f1926ae2a48833092143a65747 +timeCreated: 1611404054 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs new file mode 100644 index 00000000..8fca9adb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ChooseSpecialEffects : Rpc + { + public ChooseSpecialEffectsArg oArg = new ChooseSpecialEffectsArg(); + + public ChooseSpecialEffectsRes oRes = null; + + public override uint GetRpcType() + { + return 55040u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ChooseSpecialEffects.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ChooseSpecialEffects.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs.meta new file mode 100644 index 00000000..c2ef0c97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ChooseSpecialEffects.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a86ddc9613af14a48b2fbb861f8d88d1 +timeCreated: 1611404295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendFirstPass.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendFirstPass.cs new file mode 100644 index 00000000..8f7e13d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendFirstPass.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_CommendFirstPass : Rpc + { + public CommendFirstPassArg oArg = new CommendFirstPassArg(); + + public CommendFirstPassRes oRes = new CommendFirstPassRes(); + + public override uint GetRpcType() + { + return 8467u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_CommendFirstPass.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_CommendFirstPass.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendFirstPass.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendFirstPass.cs.meta new file mode 100644 index 00000000..8128a80f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendFirstPass.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce98db00324481b4cb91ca1f7a22b7eb +timeCreated: 1611404579 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendWatchBattle.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendWatchBattle.cs new file mode 100644 index 00000000..3c2e7e77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendWatchBattle.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_CommendWatchBattle : Rpc + { + public CommendWatchBattleArg oArg = new CommendWatchBattleArg(); + + public CommendWatchBattleRes oRes = new CommendWatchBattleRes(); + + public override uint GetRpcType() + { + return 1476u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_CommendWatchBattle.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_CommendWatchBattle.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendWatchBattle.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendWatchBattle.cs.meta new file mode 100644 index 00000000..740c12d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_CommendWatchBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f096283e86780cd48a50a2350517f663 +timeCreated: 1611404832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DEProgressReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DEProgressReq.cs new file mode 100644 index 00000000..42a9296e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DEProgressReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DEProgressReq : Rpc + { + public DEProgressArg oArg = new DEProgressArg(); + + public DEProgressRes oRes = new DEProgressRes(); + + public override uint GetRpcType() + { + return 5238u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DEProgressReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DEProgressReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DEProgressReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DEProgressReq.cs.meta new file mode 100644 index 00000000..1bcd6592 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DEProgressReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 792adf3cad9013d4799bdd6faecf6a87 +timeCreated: 1611403984 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs new file mode 100644 index 00000000..dfd7f922 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DHRReqC2G : Rpc + { + public DHRArg oArg = new DHRArg(); + + public DHRRes oRes = null; + + public override uint GetRpcType() + { + return 12451u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DHRReqC2G.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DHRReqC2G.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs.meta new file mode 100644 index 00000000..ae6b1661 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DHRReqC2G.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cf4b7ef9436fbe458c6c02289d1cb6d +timeCreated: 1611403999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs new file mode 100644 index 00000000..270bcf68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DailyTaskAskHelp : Rpc + { + public DailyTaskAskHelpArg oArg = new DailyTaskAskHelpArg(); + + public DailyTaskAskHelpRes oRes = new DailyTaskAskHelpRes(); + + public override uint GetRpcType() + { + return 9236u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DailyTaskAskHelp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DailyTaskAskHelp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs.meta new file mode 100644 index 00000000..6d47e883 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskAskHelp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06b1272d9bfdcd742a15434f4c22a80e +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs new file mode 100644 index 00000000..587b35e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DailyTaskGiveUp : Rpc + { + public DailyTaskGiveUpArg oArg = new DailyTaskGiveUpArg(); + + public DailyTaskGiveUpRes oRes = new DailyTaskGiveUpRes(); + + public override uint GetRpcType() + { + return 10546u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DailyTaskGiveUp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DailyTaskGiveUp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs.meta new file mode 100644 index 00000000..71e0e62c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DailyTaskGiveUp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1bbe60e6c0e12df449a393558cc76087 +timeCreated: 1611403339 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DecomposeEquipment.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DecomposeEquipment.cs new file mode 100644 index 00000000..5afd0c8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DecomposeEquipment.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DecomposeEquipment : Rpc + { + public DecomposeEquipmentArg oArg = new DecomposeEquipmentArg(); + + public DecomposeEquipmentRes oRes = new DecomposeEquipmentRes(); + + public override uint GetRpcType() + { + return 6556u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DecomposeEquipment.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DecomposeEquipment.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DecomposeEquipment.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DecomposeEquipment.cs.meta new file mode 100644 index 00000000..9019e018 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DecomposeEquipment.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99935453cb06cea408992fb205702ddb +timeCreated: 1611404196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs new file mode 100644 index 00000000..22f64d91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DoEnterScene : Rpc + { + public DoEnterSceneArg oArg = new DoEnterSceneArg(); + + public DoEnterSceneRes oRes = new DoEnterSceneRes(); + + public override uint GetRpcType() + { + return 45201u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DoEnterScene.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DoEnterScene.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs.meta new file mode 100644 index 00000000..447d3163 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoEnterScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75295c5bf97f7d64ba651adae17111a4 +timeCreated: 1611403946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoodadItemAllSkillReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoodadItemAllSkillReq.cs new file mode 100644 index 00000000..3e49a13a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoodadItemAllSkillReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DoodadItemAllSkillReq : Rpc + { + public EmptyData oArg = new EmptyData(); + + public DoodadItemAllSkill oRes = null; + + public override uint GetRpcType() + { + return 21002u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DoodadItemAllSkillReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DoodadItemAllSkillReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoodadItemAllSkillReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoodadItemAllSkillReq.cs.meta new file mode 100644 index 00000000..7c2191f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DoodadItemAllSkillReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a15742b2596ce774299dba94d2374ccb +timeCreated: 1611404253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRecord.cs new file mode 100644 index 00000000..756cb38a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DragonGroupRecord : Rpc + { + public DragonGroupRecordC2S oArg = new DragonGroupRecordC2S(); + + public DragonGroupRecordS2C oRes = null; + + public override uint GetRpcType() + { + return 62181u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DragonGroupRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DragonGroupRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRecord.cs.meta new file mode 100644 index 00000000..a2b69fed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c7dbc6d637e7e0499444f9032e2f208 +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs new file mode 100644 index 00000000..b03d11fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DragonGroupRoleList : Rpc + { + public DragonGroupRoleListC2S oArg = new DragonGroupRoleListC2S(); + + public DragonGroupRoleListS2C oRes = null; + + public override uint GetRpcType() + { + return 29660u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DragonGroupRoleList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DragonGroupRoleList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs.meta new file mode 100644 index 00000000..6ff9506c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DragonGroupRoleList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5eed46305034a7f43b8b379e5c200536 +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs new file mode 100644 index 00000000..8023776f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_DrawLottery : Rpc + { + public DrawLotteryArg oArg = new DrawLotteryArg(); + + public DrawLotteryRes oRes = new DrawLotteryRes(); + + public override uint GetRpcType() + { + return 27802u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_DrawLottery.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_DrawLottery.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs.meta new file mode 100644 index 00000000..24603c0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_DrawLottery.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c877abd725cbdeb4489e8a8e95e2a495 +timeCreated: 1611404534 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EmblemLevelUp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EmblemLevelUp.cs new file mode 100644 index 00000000..9628c316 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EmblemLevelUp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EmblemLevelUp : Rpc + { + public EmblemLevelUpArg oArg = new EmblemLevelUpArg(); + + public EmblemLevelUpRes oRes = new EmblemLevelUpRes(); + + public override uint GetRpcType() + { + return 9893u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EmblemLevelUp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EmblemLevelUp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EmblemLevelUp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EmblemLevelUp.cs.meta new file mode 100644 index 00000000..8805e037 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EmblemLevelUp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91a9cb16058533e4ea841aa004186ce0 +timeCreated: 1611404143 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantActiveAttribute.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantActiveAttribute.cs new file mode 100644 index 00000000..cda7e696 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantActiveAttribute.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EnchantActiveAttribute : Rpc + { + public EnchantActiveAttributeArg oArg = new EnchantActiveAttributeArg(); + + public EnchantActiveAttributeRes oRes = null; + + public override uint GetRpcType() + { + return 19086u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EnchantActiveAttribute.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EnchantActiveAttribute.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantActiveAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantActiveAttribute.cs.meta new file mode 100644 index 00000000..d8043b81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantActiveAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55e301a9fb4a2bf4f809d6e32cc035e1 +timeCreated: 1611403739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs new file mode 100644 index 00000000..f3c5d423 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EnchantEquip : Rpc + { + public EnchantEquipArg oArg = new EnchantEquipArg(); + + public EnchantEquipRes oRes = null; + + public override uint GetRpcType() + { + return 55166u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EnchantEquip.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EnchantEquip.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs.meta new file mode 100644 index 00000000..73bb5d7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f06e230b1ac2864f8da011d75fe214c +timeCreated: 1611404028 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantTransfer.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantTransfer.cs new file mode 100644 index 00000000..ea69a785 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantTransfer.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EnchantTransfer : Rpc + { + public EnchantTransferArg oArg = new EnchantTransferArg(); + + public EnchantTransferRes oRes = null; + + public override uint GetRpcType() + { + return 54906u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EnchantTransfer.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EnchantTransfer.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantTransfer.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantTransfer.cs.meta new file mode 100644 index 00000000..e90a50b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnchantTransfer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d771a1ca0a66e9e4f881e2a1a8423a6f +timeCreated: 1611404635 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs new file mode 100644 index 00000000..451fb36b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EndGuildCard : Rpc + { + public EndGuildCardArg oArg = new EndGuildCardArg(); + + public EndGuildCardRes oRes = new EndGuildCardRes(); + + public override uint GetRpcType() + { + return 13212u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EndGuildCard.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EndGuildCard.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs.meta new file mode 100644 index 00000000..78142ba7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EndGuildCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 994e0e5ed35ec7445aa1e788cfe3da0b +timeCreated: 1611404195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs new file mode 100644 index 00000000..5d22e3ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EnhanceItem : Rpc + { + public EnhanceItemArg oArg = new EnhanceItemArg(); + + public EnhanceItemRes oRes = null; + + public override uint GetRpcType() + { + return 3744u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EnhanceItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EnhanceItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs.meta new file mode 100644 index 00000000..f0ff3313 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8974b3fd6ea163c4780d330ddc671a38 +timeCreated: 1611404088 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceTranster.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceTranster.cs new file mode 100644 index 00000000..91258333 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceTranster.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EnhanceTranster : Rpc + { + public EnhanceTransterArg oArg = new EnhanceTransterArg(); + + public EnhanceTransterRes oRes = new EnhanceTransterRes(); + + public override uint GetRpcType() + { + return 25778u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EnhanceTranster.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EnhanceTranster.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceTranster.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceTranster.cs.meta new file mode 100644 index 00000000..fc7e1a68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnhanceTranster.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 493e3871835dcc743a11f7ec38a5cde0 +timeCreated: 1611403660 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterLeisureScene.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterLeisureScene.cs new file mode 100644 index 00000000..46e243bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterLeisureScene.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EnterLeisureScene : Rpc + { + public EnterLeisureSceneArg oArg = new EnterLeisureSceneArg(); + + public EnterLeisureSceneRes oRes = null; + + public override uint GetRpcType() + { + return 62361u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EnterLeisureScene.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EnterLeisureScene.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterLeisureScene.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterLeisureScene.cs.meta new file mode 100644 index 00000000..dccc64d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterLeisureScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db62bce8387157f43a6775fa95f05c51 +timeCreated: 1611404652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterWatchBattle.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterWatchBattle.cs new file mode 100644 index 00000000..ee6871e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterWatchBattle.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_EnterWatchBattle : Rpc + { + public EnterWatchBattleArg oArg = new EnterWatchBattleArg(); + + public EnterWatchBattleRes oRes = new EnterWatchBattleRes(); + + public override uint GetRpcType() + { + return 47590u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_EnterWatchBattle.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_EnterWatchBattle.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterWatchBattle.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterWatchBattle.cs.meta new file mode 100644 index 00000000..078324dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_EnterWatchBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 692dd394c14147349b22e5ad9d9ca184 +timeCreated: 1611403885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs new file mode 100644 index 00000000..1fb3d6ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ExpFindBack : Rpc + { + public ExpFindBackArg oArg = new ExpFindBackArg(); + + public ExpFindBackRes oRes = new ExpFindBackRes(); + + public override uint GetRpcType() + { + return 38008u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ExpFindBack.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ExpFindBack.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs.meta new file mode 100644 index 00000000..f981857a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ExpFindBack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e402b45190a80c248adc0c668ed833d9 +timeCreated: 1611404735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FashionCompose.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FashionCompose.cs new file mode 100644 index 00000000..f1ab5f06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FashionCompose.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_FashionCompose : Rpc + { + public FashionComposeArg oArg = new FashionComposeArg(); + + public FashionComposeRes oRes = new FashionComposeRes(); + + public override uint GetRpcType() + { + return 46372u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_FashionCompose.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_FashionCompose.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FashionCompose.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FashionCompose.cs.meta new file mode 100644 index 00000000..29dfffca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FashionCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0661263b3e8a08b489ba191e0883ad8c +timeCreated: 1611402965 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchAchivementReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchAchivementReward.cs new file mode 100644 index 00000000..1cbcf2e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchAchivementReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_FetchAchivementReward : Rpc + { + public FetchAchiveArg oArg = new FetchAchiveArg(); + + public FetchAchiveRes oRes = new FetchAchiveRes(); + + public override uint GetRpcType() + { + return 47094u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_FetchAchivementReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_FetchAchivementReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchAchivementReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchAchivementReward.cs.meta new file mode 100644 index 00000000..f9cdcee8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchAchivementReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a4c1ada9aed22b4d9aacd46a1466c36 +timeCreated: 1611403664 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchChapterChest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchChapterChest.cs new file mode 100644 index 00000000..6768109b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchChapterChest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_FetchChapterChest : Rpc + { + public FetchChapterChestArg oArg = new FetchChapterChestArg(); + + public FetchChapterChestRes oRes = new FetchChapterChestRes(); + + public override uint GetRpcType() + { + return 21099u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_FetchChapterChest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_FetchChapterChest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchChapterChest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchChapterChest.cs.meta new file mode 100644 index 00000000..0abbfe09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchChapterChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac5f896616421b042805322f74ea0ae6 +timeCreated: 1611404330 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs new file mode 100644 index 00000000..fa2903ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_FetchEnemyDoodadReq : Rpc + { + public EnemyDoodadInfo oArg = new EnemyDoodadInfo(); + + public RollInfoRes oRes = new RollInfoRes(); + + public override uint GetRpcType() + { + return 56348u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_FetchEnemyDoodadReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_FetchEnemyDoodadReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs.meta new file mode 100644 index 00000000..07207829 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FetchEnemyDoodadReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 156599db797ae9a48b2a9d8751aa34c4 +timeCreated: 1611403263 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassGetTopRoleInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassGetTopRoleInfo.cs new file mode 100644 index 00000000..4afde4e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassGetTopRoleInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_FirstPassGetTopRoleInfo : Rpc + { + public FirstPassGetTopRoleInfoArg oArg = new FirstPassGetTopRoleInfoArg(); + + public FirstPassGetTopRoleInfoRes oRes = new FirstPassGetTopRoleInfoRes(); + + public override uint GetRpcType() + { + return 37076u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_FirstPassGetTopRoleInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_FirstPassGetTopRoleInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassGetTopRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassGetTopRoleInfo.cs.meta new file mode 100644 index 00000000..31ab9c70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassGetTopRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35fbf4b552acbdb42a5c7b08cc0fa7ca +timeCreated: 1611403560 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs new file mode 100644 index 00000000..a25d0c94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_FirstPassInfoReq : Rpc + { + public FirstPassInfoReqArg oArg = new FirstPassInfoReqArg(); + + public FirstPassInfoReqRes oRes = new FirstPassInfoReqRes(); + + public override uint GetRpcType() + { + return 4147u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_FirstPassInfoReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_FirstPassInfoReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs.meta new file mode 100644 index 00000000..e0277d08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FirstPassInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04895a38a84d1674a806ae34366512e6 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs new file mode 100644 index 00000000..30e4b195 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_FiveDayRewardReq : Rpc + { + public FiveRewardRes oArg = new FiveRewardRes(); + + public FiveRewardRet oRes = new FiveRewardRet(); + + public override uint GetRpcType() + { + return 63999u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_FiveDayRewardReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_FiveDayRewardReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs.meta new file mode 100644 index 00000000..8e364333 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FiveDayRewardReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a597451a47ddbd4e9c10b6c423ec31f +timeCreated: 1611403495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs new file mode 100644 index 00000000..b7ddc487 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ForgeEquip : Rpc + { + public ForgeEquipArg oArg = new ForgeEquipArg(); + + public ForgeEquipRes oRes = null; + + public override uint GetRpcType() + { + return 58244u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ForgeEquip.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ForgeEquip.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs.meta new file mode 100644 index 00000000..d2f22266 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ForgeEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83d9c7b4bd347404e9a8f1e6695aa6ab +timeCreated: 1611404046 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs new file mode 100644 index 00000000..1e9c5597 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_FuseEquip : Rpc + { + public FuseEquipArg oArg = new FuseEquipArg(); + + public FuseEquipRes oRes = null; + + public override uint GetRpcType() + { + return 56006u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_FuseEquip.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_FuseEquip.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs.meta new file mode 100644 index 00000000..e441b666 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_FuseEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee81c5f40e163a745839387627864359 +timeCreated: 1611404798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs new file mode 100644 index 00000000..34dd8994 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GMCommand : Rpc + { + public GMCmdArg oArg = new GMCmdArg(); + + public GMCmdRes oRes = new GMCmdRes(); + + public override uint GetRpcType() + { + return 3248u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GMCommand.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GMCommand.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs.meta new file mode 100644 index 00000000..18b8a764 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GMCommand.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 422b64dda31cce848a33afbc3b3317fb +timeCreated: 1611403638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveBrifInfoReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveBrifInfoReq.cs new file mode 100644 index 00000000..b8532531 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveBrifInfoReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetAchieveBrifInfoReq : Rpc + { + public GetAchieveBrifInfoReq oArg = new GetAchieveBrifInfoReq(); + + public GetAchieveBrifInfoRes oRes = new GetAchieveBrifInfoRes(); + + public override uint GetRpcType() + { + return 25095u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetAchieveBrifInfoReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetAchieveBrifInfoReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveBrifInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveBrifInfoReq.cs.meta new file mode 100644 index 00000000..bb11e59a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveBrifInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bfb46c0bfa20927428ff27e77b339f02 +timeCreated: 1611404484 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveClassifyInfoReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveClassifyInfoReq.cs new file mode 100644 index 00000000..aa312985 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveClassifyInfoReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetAchieveClassifyInfoReq : Rpc + { + public GetAchieveClassifyInfoReq oArg = new GetAchieveClassifyInfoReq(); + + public GetAchieveClassifyInfoRes oRes = new GetAchieveClassifyInfoRes(); + + public override uint GetRpcType() + { + return 14056u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetAchieveClassifyInfoReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetAchieveClassifyInfoReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveClassifyInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveClassifyInfoReq.cs.meta new file mode 100644 index 00000000..daeec126 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveClassifyInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dab7d48b89b489941a94cd3357be5aea +timeCreated: 1611404648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchievePointRewardReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchievePointRewardReq.cs new file mode 100644 index 00000000..dc53df21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchievePointRewardReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetAchievePointRewardReq : Rpc + { + public GetAchievePointRewardReq oArg = new GetAchievePointRewardReq(); + + public GetAchievePointRewardRes oRes = new GetAchievePointRewardRes(); + + public override uint GetRpcType() + { + return 13722u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetAchievePointRewardReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetAchievePointRewardReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchievePointRewardReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchievePointRewardReq.cs.meta new file mode 100644 index 00000000..c4327afb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchievePointRewardReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83148a2c681ec5740931d07e3fbc5925 +timeCreated: 1611404042 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs new file mode 100644 index 00000000..69eb2e4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetAchieveRewardReq : Rpc + { + public GetAchieveRewardReq oArg = new GetAchieveRewardReq(); + + public GetAchieveRewardRes oRes = new GetAchieveRewardRes(); + + public override uint GetRpcType() + { + return 1577u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetAchieveRewardReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetAchieveRewardReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs.meta new file mode 100644 index 00000000..507da445 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAchieveRewardReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6c7cd265edbc0940ad2db72223e14fd +timeCreated: 1611404399 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityChest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityChest.cs new file mode 100644 index 00000000..bf98b11b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityChest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetActivityChest : Rpc + { + public GetActivityChestArg oArg = new GetActivityChestArg(); + + public GetActivityChestRes oRes = new GetActivityChestRes(); + + public override uint GetRpcType() + { + return 34363u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetActivityChest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetActivityChest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityChest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityChest.cs.meta new file mode 100644 index 00000000..4d7fb58d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37ae0977e7ebfd745aa92586602d2320 +timeCreated: 1611403567 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityInfo.cs new file mode 100644 index 00000000..d9ce4181 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetActivityInfo : Rpc + { + public GetActivityInfoArg oArg = new GetActivityInfoArg(); + + public GetActivityInfoRes oRes = new GetActivityInfoRes(); + + public override uint GetRpcType() + { + return 43911u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetActivityInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetActivityInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityInfo.cs.meta new file mode 100644 index 00000000..fd830001 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetActivityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 319f83bb7264928439a9328025d82fc5 +timeCreated: 1611403546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs new file mode 100644 index 00000000..03cde4ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetAncientTimesAward : Rpc + { + public AncientTimesArg oArg = new AncientTimesArg(); + + public AncientTimesRes oRes = null; + + public override uint GetRpcType() + { + return 40517u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetAncientTimesAward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetAncientTimesAward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs.meta new file mode 100644 index 00000000..1e920dca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetAncientTimesAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1be4ec13b19c55f4491657d2ec640e42 +timeCreated: 1611403340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetClassifyDesignationReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetClassifyDesignationReq.cs new file mode 100644 index 00000000..4ae605af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetClassifyDesignationReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetClassifyDesignationReq : Rpc + { + public GetClassifyDesignationReq oArg = new GetClassifyDesignationReq(); + + public GetClassifyDesignationRes oRes = new GetClassifyDesignationRes(); + + public override uint GetRpcType() + { + return 40256u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetClassifyDesignationReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetClassifyDesignationReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetClassifyDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetClassifyDesignationReq.cs.meta new file mode 100644 index 00000000..afa5502e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetClassifyDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33e6d09dff641f54ca31f7b5f6cb11eb +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs new file mode 100644 index 00000000..72473702 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetCompeteDragonInfo : Rpc + { + public GetCompeteDragonInfoArg oArg = new GetCompeteDragonInfoArg(); + + public GetCompeteDragonInfoRes oRes = null; + + public override uint GetRpcType() + { + return 65362u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetCompeteDragonInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetCompeteDragonInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs.meta new file mode 100644 index 00000000..35f46397 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetCompeteDragonInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c136136c53c070a4c850051e626b49b4 +timeCreated: 1611404489 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs new file mode 100644 index 00000000..e6ddd7a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetDailyTaskInfo : Rpc + { + public GetDailyTaskInfoArg oArg = new GetDailyTaskInfoArg(); + + public GetDailyTaskInfoRes oRes = new GetDailyTaskInfoRes(); + + public override uint GetRpcType() + { + return 52480u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetDailyTaskInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetDailyTaskInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs.meta new file mode 100644 index 00000000..f60323a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7fb9a24d1a288f347b2e349ed3ff6670 +timeCreated: 1611404031 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs new file mode 100644 index 00000000..2ee9d57e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetDailyTaskReward : Rpc + { + public GetDailyTaskRewardArg oArg = new GetDailyTaskRewardArg(); + + public GetDailyTaskRewardRes oRes = new GetDailyTaskRewardRes(); + + public override uint GetRpcType() + { + return 59899u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetDailyTaskReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetDailyTaskReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs.meta new file mode 100644 index 00000000..a5f492e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDailyTaskReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2af602d2c233694694492db41978727 +timeCreated: 1611404257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDesignationReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDesignationReq.cs new file mode 100644 index 00000000..8b848e7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDesignationReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetDesignationReq : Rpc + { + public GetDesignationReq oArg = new GetDesignationReq(); + + public GetDesignationRes oRes = new GetDesignationRes(); + + public override uint GetRpcType() + { + return 44412u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetDesignationReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetDesignationReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDesignationReq.cs.meta new file mode 100644 index 00000000..6c77ca18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fee763c12b32224aa33f37aa85bc102 +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonGuildTaskChest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonGuildTaskChest.cs new file mode 100644 index 00000000..7332b093 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonGuildTaskChest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetDragonGuildTaskChest : Rpc + { + public GetDragonGuildTaskChestArg oArg = new GetDragonGuildTaskChestArg(); + + public GetDragonGuildTaskChestRes oRes = null; + + public override uint GetRpcType() + { + return 15059u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetDragonGuildTaskChest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetDragonGuildTaskChest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonGuildTaskChest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonGuildTaskChest.cs.meta new file mode 100644 index 00000000..0fe7d98f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonGuildTaskChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc2a928ca350405448a0610a7cd34f08 +timeCreated: 1611404549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs new file mode 100644 index 00000000..84cb474b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetDragonTopInfo : Rpc + { + public GetDragonTopInfoArg oArg = new GetDragonTopInfoArg(); + + public GetDragonTopInfoRes oRes = new GetDragonTopInfoRes(); + + public override uint GetRpcType() + { + return 7973u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetDragonTopInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetDragonTopInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs.meta new file mode 100644 index 00000000..e47f0f5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetDragonTopInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 17e6bd405282d9645b948e78d231725e +timeCreated: 1611403295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs new file mode 100644 index 00000000..337936cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetEnhanceAttr : Rpc + { + public GetEnhanceAttrArg oArg = new GetEnhanceAttrArg(); + + public GetEnhanceAttrRes oRes = null; + + public override uint GetRpcType() + { + return 23396u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetEnhanceAttr.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetEnhanceAttr.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs.meta new file mode 100644 index 00000000..6e6d37de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetEnhanceAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 139fcae0935ae6a499aafb52ce30245d +timeCreated: 1611403250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFirstPassReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFirstPassReward.cs new file mode 100644 index 00000000..86ee44d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFirstPassReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetFirstPassReward : Rpc + { + public GetFirstPassRewardArg oArg = new GetFirstPassRewardArg(); + + public GetFirstPassRewardRes oRes = new GetFirstPassRewardRes(); + + public override uint GetRpcType() + { + return 12301u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetFirstPassReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetFirstPassReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFirstPassReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFirstPassReward.cs.meta new file mode 100644 index 00000000..1ac593c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFirstPassReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8696951cb2042245bf88e077e360cd5 +timeCreated: 1611404404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs new file mode 100644 index 00000000..84417a24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetFlower : Rpc + { + public GetFlowerArg oArg = new GetFlowerArg(); + + public GetFlowerRes oRes = new GetFlowerRes(); + + public override uint GetRpcType() + { + return 11473u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetFlower.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetFlower.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs.meta new file mode 100644 index 00000000..ee4d3bc2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90944d30df0f9d04a8519f6d9f96291e +timeCreated: 1611404139 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs new file mode 100644 index 00000000..196c62fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetFlowerLeftTime : Rpc + { + public GetFlowerLeftTimeArg oArg = new GetFlowerLeftTimeArg(); + + public GetFlowerLeftTimeRes oRes = new GetFlowerLeftTimeRes(); + + public override uint GetRpcType() + { + return 26834u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetFlowerLeftTime.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetFlowerLeftTime.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs.meta new file mode 100644 index 00000000..717de991 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerLeftTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acf4fb7b728b5514db5c2af8a7eb7ae4 +timeCreated: 1611404332 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerReward.cs new file mode 100644 index 00000000..7a9550fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetFlowerReward : Rpc + { + public GetFlowerRewardArg oArg = new GetFlowerRewardArg(); + + public GetFlowerRewardRes oRes = new GetFlowerRewardRes(); + + public override uint GetRpcType() + { + return 65090u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetFlowerReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetFlowerReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerReward.cs.meta new file mode 100644 index 00000000..ec88095c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab50547b4793b0c43ad8d4fb2ab4f525 +timeCreated: 1611404307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs new file mode 100644 index 00000000..e4e50f7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetFlowerRewardList : Rpc + { + public GetFlowerRewardListArg oArg = new GetFlowerRewardListArg(); + + public GetFlowerRewardListRes oRes = new GetFlowerRewardListRes(); + + public override uint GetRpcType() + { + return 26656u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetFlowerRewardList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetFlowerRewardList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs.meta new file mode 100644 index 00000000..4cc962d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetFlowerRewardList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 043b2c45c54ea6845941012f37f5e3de +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGoddessTrialRewards.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGoddessTrialRewards.cs new file mode 100644 index 00000000..3d3b5cc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGoddessTrialRewards.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGoddessTrialRewards : Rpc + { + public GetGoddessTrialRewardsArg oArg = new GetGoddessTrialRewardsArg(); + + public GetGoddessTrialRewardsRes oRes = new GetGoddessTrialRewardsRes(); + + public override uint GetRpcType() + { + return 41420u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGoddessTrialRewards.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGoddessTrialRewards.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGoddessTrialRewards.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGoddessTrialRewards.cs.meta new file mode 100644 index 00000000..008e1ec1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGoddessTrialRewards.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e4223d512428734cb3f2aed59879fca +timeCreated: 1611404004 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusDetailInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusDetailInfo.cs new file mode 100644 index 00000000..1c6fe53c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusDetailInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildBonusDetailInfo : Rpc + { + public GetGuildBonusDetailInfoArg oArg = new GetGuildBonusDetailInfoArg(); + + public GetGuildBonusDetailInfoResult oRes = new GetGuildBonusDetailInfoResult(); + + public override uint GetRpcType() + { + return 20027u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildBonusDetailInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildBonusDetailInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusDetailInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusDetailInfo.cs.meta new file mode 100644 index 00000000..8a367496 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusDetailInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ef1e5b98326ecf4cb9469cb4b43d261 +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs new file mode 100644 index 00000000..0cc88a71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildBonusLeft : Rpc + { + public GetGuildBonusLeftArg oArg = new GetGuildBonusLeftArg(); + + public GetGuildBonusLeftRes oRes = null; + + public override uint GetRpcType() + { + return 9967u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildBonusLeft.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildBonusLeft.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs.meta new file mode 100644 index 00000000..a9c6b682 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusLeft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41ba00b74cafe9048831298949a8cd10 +timeCreated: 1611403618 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusList.cs new file mode 100644 index 00000000..107aa623 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildBonusList : Rpc + { + public GetGuildBonusListArg oArg = new GetGuildBonusListArg(); + + public GetGuildBonusListResult oRes = new GetGuildBonusListResult(); + + public override uint GetRpcType() + { + return 43440u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildBonusList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildBonusList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusList.cs.meta new file mode 100644 index 00000000..55cad596 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 744901262154cdd4ba007f3b7b570e1b +timeCreated: 1611403943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs new file mode 100644 index 00000000..1db41ee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildBonusReward : Rpc + { + public GetGuildBonusRewardArg oArg = new GetGuildBonusRewardArg(); + + public GetGuildBonusRewardResult oRes = new GetGuildBonusRewardResult(); + + public override uint GetRpcType() + { + return 55720u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildBonusReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildBonusReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs.meta new file mode 100644 index 00000000..67178e31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildBonusReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 896e376161aadc047ba40e0f94f0f0f3 +timeCreated: 1611404088 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCamPartyRandItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCamPartyRandItem.cs new file mode 100644 index 00000000..915cadd8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCamPartyRandItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildCamPartyRandItem : Rpc + { + public GetGuildCamPartyRandItemArg oArg = new GetGuildCamPartyRandItemArg(); + + public GetGuildCamPartyRandItemRes oRes = null; + + public override uint GetRpcType() + { + return 53025u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildCamPartyRandItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildCamPartyRandItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCamPartyRandItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCamPartyRandItem.cs.meta new file mode 100644 index 00000000..c2014f78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCamPartyRandItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a7f8af46ffd88d4cba0a0bd67cddb03 +timeCreated: 1611403311 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs new file mode 100644 index 00000000..bc76934a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildCampPartyExchangeInfo : Rpc + { + public GetGuildCampPartyExchangeInfoArg oArg = new GetGuildCampPartyExchangeInfoArg(); + + public GetGuildCampPartyExchangeInfoRes oRes = null; + + public override uint GetRpcType() + { + return 44443u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildCampPartyExchangeInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildCampPartyExchangeInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta new file mode 100644 index 00000000..2f2ad229 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyExchangeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8cd2cf162b982b54c8018fc57b8e31a0 +timeCreated: 1611404101 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyReward.cs new file mode 100644 index 00000000..bb7ada0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildCampPartyReward : Rpc + { + public GetGuildCampPartyRewardArg oArg = new GetGuildCampPartyRewardArg(); + + public GetGuildCampPartyRewardRes oRes = null; + + public override uint GetRpcType() + { + return 58935u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildCampPartyReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildCampPartyReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyReward.cs.meta new file mode 100644 index 00000000..156debdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCampPartyReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f09e93e46d5cb764bbc8425845c073ee +timeCreated: 1611404833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs new file mode 100644 index 00000000..f6b8efbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildCheckinBox : Rpc + { + public GetGuildCheckinBoxArg oArg = new GetGuildCheckinBoxArg(); + + public GetGuildCheckinBoxRes oRes = new GetGuildCheckinBoxRes(); + + public override uint GetRpcType() + { + return 19269u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildCheckinBox.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildCheckinBox.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs.meta new file mode 100644 index 00000000..42b26394 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildCheckinBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9eef33cb8ea9b2743b2b6a91256dc9f7 +timeCreated: 1611404243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildPartyReceiveInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildPartyReceiveInfo.cs new file mode 100644 index 00000000..0071fd54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildPartyReceiveInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildPartyReceiveInfo : Rpc + { + public GetGuildPartyReceiveInfoArg oArg = new GetGuildPartyReceiveInfoArg(); + + public GetGuildPartyReceiveInfoRes oRes = null; + + public override uint GetRpcType() + { + return 58154u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildPartyReceiveInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildPartyReceiveInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildPartyReceiveInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildPartyReceiveInfo.cs.meta new file mode 100644 index 00000000..a4c3154f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildPartyReceiveInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 050cd1614e9eff848b993c33583b6f41 +timeCreated: 1611402962 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs new file mode 100644 index 00000000..5e6ca79c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetGuildQADataReq : Rpc + { + public GetGuildQADataReq oArg = new GetGuildQADataReq(); + + public GetGuildQADataRes oRes = new GetGuildQADataRes(); + + public override uint GetRpcType() + { + return 35568u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetGuildQADataReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetGuildQADataReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs.meta new file mode 100644 index 00000000..9e2e1a11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetGuildQADataReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d966d33e3485e54c9760a7fcdac9f5a +timeCreated: 1611403901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleGameRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleGameRecord.cs new file mode 100644 index 00000000..de56f6e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleGameRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetHeroBattleGameRecord : Rpc + { + public GetHeroBattleGameRecordArg oArg = new GetHeroBattleGameRecordArg(); + + public GetHeroBattleGameRecordRes oRes = null; + + public override uint GetRpcType() + { + return 41057u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetHeroBattleGameRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetHeroBattleGameRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleGameRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleGameRecord.cs.meta new file mode 100644 index 00000000..4d1424f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleGameRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53572fb4570a1cd45ae6548a93eb2934 +timeCreated: 1611403710 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs new file mode 100644 index 00000000..cfa1512a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetHeroBattleInfo : Rpc + { + public GetHeroBattleInfoArg oArg = new GetHeroBattleInfoArg(); + + public GetHeroBattleInfoRes oRes = null; + + public override uint GetRpcType() + { + return 65206u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetHeroBattleInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetHeroBattleInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs.meta new file mode 100644 index 00000000..4e17b2a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19ac7e9e1576e2b4fb8bb7b36105fc66 +timeCreated: 1611403304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleWeekReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleWeekReward.cs new file mode 100644 index 00000000..28b10763 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleWeekReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetHeroBattleWeekReward : Rpc + { + public GetHeroBattleWeekRewardArg oArg = new GetHeroBattleWeekRewardArg(); + + public GetHeroBattleWeekRewardRes oRes = null; + + public override uint GetRpcType() + { + return 63058u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetHeroBattleWeekReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetHeroBattleWeekReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleWeekReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleWeekReward.cs.meta new file mode 100644 index 00000000..508896bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHeroBattleWeekReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15fa08ccd4fcf7945a8f075946d7719b +timeCreated: 1611403267 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs new file mode 100644 index 00000000..e5ae80ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetHolidayStageInfo : Rpc + { + public GetHolidayStageInfoArg oArg = new GetHolidayStageInfoArg(); + + public GetHolidayStageInfoRes oRes = null; + + public override uint GetRpcType() + { + return 31093u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetHolidayStageInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetHolidayStageInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs.meta new file mode 100644 index 00000000..55ca4ea0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetHolidayStageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 552af2decf426ec42b3a448c9fbeebb6 +timeCreated: 1611403736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs new file mode 100644 index 00000000..08de0b0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetJadeSealAllInfo : Rpc + { + public GetJadeSealAllInfoArg oArg = new GetJadeSealAllInfoArg(); + + public GetJadeSealAllInfoRes oRes = null; + + public override uint GetRpcType() + { + return 2424u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetJadeSealAllInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetJadeSealAllInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs.meta new file mode 100644 index 00000000..5c09037c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetJadeSealAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c70c714151eff049b31e9aa94acb068 +timeCreated: 1611403801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs new file mode 100644 index 00000000..9e011bbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetLevelSealInfo : Rpc + { + public GetLevelSealInfoArg oArg = new GetLevelSealInfoArg(); + + public GetLevelSealInfoRes oRes = new GetLevelSealInfoRes(); + + public override uint GetRpcType() + { + return 10497u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetLevelSealInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetLevelSealInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs.meta new file mode 100644 index 00000000..93ce1ddd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ccace517b4c2f346849d81593904c59 +timeCreated: 1611404101 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs new file mode 100644 index 00000000..daa10df9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetLevelSealSelfGift : Rpc + { + public GetLevelSealSealGiftArg oArg = new GetLevelSealSealGiftArg(); + + public GetLevelSealSelfGiftRes oRes = new GetLevelSealSelfGiftRes(); + + public override uint GetRpcType() + { + return 61903u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetLevelSealSelfGift.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetLevelSealSelfGift.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs.meta new file mode 100644 index 00000000..8e2037d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLevelSealSelfGift.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 381d577c83612554dbe4c22243b05d77 +timeCreated: 1611403569 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs new file mode 100644 index 00000000..831d8d94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetLuckyActivityInfo : Rpc + { + public GetLuckyActivityInfoArg oArg = new GetLuckyActivityInfoArg(); + + public GetLuckyActivityInfoRes oRes = null; + + public override uint GetRpcType() + { + return 384u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetLuckyActivityInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetLuckyActivityInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs.meta new file mode 100644 index 00000000..e9953cfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetLuckyActivityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ce184ea2d382234bb9bfa30c43c226f +timeCreated: 1611403504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs new file mode 100644 index 00000000..4f50912a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetMyRiftInfo : Rpc + { + public GetMyRiftInfoArg oArg = new GetMyRiftInfoArg(); + + public GetMyRiftInfoRes oRes = null; + + public override uint GetRpcType() + { + return 31519u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetMyRiftInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetMyRiftInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs.meta new file mode 100644 index 00000000..5e9056e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyRiftInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30be5aae17e041044b32f55c3be4a5d5 +timeCreated: 1611403522 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs new file mode 100644 index 00000000..6cbfb53a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetMyWatchRecord : Rpc + { + public GetMyWatchRecordArg oArg = new GetMyWatchRecordArg(); + + public GetMyWatchRecordRes oRes = new GetMyWatchRecordRes(); + + public override uint GetRpcType() + { + return 22907u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetMyWatchRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetMyWatchRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs.meta new file mode 100644 index 00000000..d8a56cb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetMyWatchRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a0a3480b5686134e99321c9e5a30dc0 +timeCreated: 1611403988 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs new file mode 100644 index 00000000..1f51e267 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetNewZoneBenefit : Rpc + { + public GetNewZoneBenefitArg oArg = new GetNewZoneBenefitArg(); + + public GetNewZoneBenefitRes oRes = null; + + public override uint GetRpcType() + { + return 17236u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetNewZoneBenefit.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetNewZoneBenefit.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs.meta new file mode 100644 index 00000000..392c050d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNewZoneBenefit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba155d799057b8c4f8bb478fd5505c8e +timeCreated: 1611404434 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNextDayReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNextDayReward.cs new file mode 100644 index 00000000..d9f57952 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNextDayReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetNextDayReward : Rpc + { + public GetNextDayRewardArg oArg = new GetNextDayRewardArg(); + + public GetNextDayRewardRes oRes = new GetNextDayRewardRes(); + + public override uint GetRpcType() + { + return 40997u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetNextDayReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetNextDayReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNextDayReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNextDayReward.cs.meta new file mode 100644 index 00000000..efbb5a82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetNextDayReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2119542ce04ed54a8581f17087b57d3 +timeCreated: 1611404493 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetOnlineReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetOnlineReward.cs new file mode 100644 index 00000000..a245b18c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetOnlineReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetOnlineReward : Rpc + { + public GetOnlineRewardArg oArg = new GetOnlineRewardArg(); + + public GetOnlineRewardRes oRes = new GetOnlineRewardRes(); + + public override uint GetRpcType() + { + return 21137u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetOnlineReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetOnlineReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetOnlineReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetOnlineReward.cs.meta new file mode 100644 index 00000000..05b40a36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetOnlineReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1722176e3c08bdc47b25d8515bf4a225 +timeCreated: 1611403291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayAllInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayAllInfo.cs new file mode 100644 index 00000000..6dd7a520 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayAllInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetPayAllInfo : Rpc + { + public GetPayAllInfoArg oArg = new GetPayAllInfoArg(); + + public GetPayAllInfoRes oRes = new GetPayAllInfoRes(); + + public override uint GetRpcType() + { + return 41260u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetPayAllInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetPayAllInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayAllInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayAllInfo.cs.meta new file mode 100644 index 00000000..944a8670 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayAllInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 224c622d9f955ba4e91b07932e69a40a +timeCreated: 1611403422 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs new file mode 100644 index 00000000..577c32a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetPayReward : Rpc + { + public GetPayRewardArg oArg = new GetPayRewardArg(); + + public GetPayRewardRes oRes = null; + + public override uint GetRpcType() + { + return 63038u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetPayReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetPayReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs.meta new file mode 100644 index 00000000..d7006630 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPayReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1aa460b5d52dce4f931a8e3e0e4fd37 +timeCreated: 1611404839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatShareAward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatShareAward.cs new file mode 100644 index 00000000..91ddf861 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatShareAward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetPlatShareAward : Rpc + { + public GetPlatShareAwardArg oArg = new GetPlatShareAwardArg(); + + public GetPlatShareAwardRes oRes = null; + + public override uint GetRpcType() + { + return 26922u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetPlatShareAward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetPlatShareAward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatShareAward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatShareAward.cs.meta new file mode 100644 index 00000000..1ac38a02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatShareAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d984cfc77bb1ee4fabd3dcfd0ac8e11 +timeCreated: 1611403506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatformShareChest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatformShareChest.cs new file mode 100644 index 00000000..548b4a2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatformShareChest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetPlatformShareChest : Rpc + { + public GetPlatformShareChestArg oArg = new GetPlatformShareChestArg(); + + public GetPlatformShareChestRes oRes = null; + + public override uint GetRpcType() + { + return 7875u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetPlatformShareChest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetPlatformShareChest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatformShareChest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatformShareChest.cs.meta new file mode 100644 index 00000000..3a593db5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetPlatformShareChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b8bafb8742e1e0429a3e24e132c91f7 +timeCreated: 1611403168 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs new file mode 100644 index 00000000..394d0f3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetRiskMapInfos : Rpc + { + public GetRiskMapInfosArg oArg = new GetRiskMapInfosArg(); + + public GetRiskMapInfosRes oRes = new GetRiskMapInfosRes(); + + public override uint GetRpcType() + { + return 11628u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetRiskMapInfos.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetRiskMapInfos.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs.meta new file mode 100644 index 00000000..68695e73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetRiskMapInfos.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8533bd75927a264183c08d650363a79 +timeCreated: 1611404534 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityBigPrize.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityBigPrize.cs new file mode 100644 index 00000000..b7cfe50a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityBigPrize.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetSpActivityBigPrize : Rpc + { + public GetSpActivityBigPrizeArg oArg = new GetSpActivityBigPrizeArg(); + + public GetSpActivityBigPrizeRes oRes = new GetSpActivityBigPrizeRes(); + + public override uint GetRpcType() + { + return 17229u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetSpActivityBigPrize.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetSpActivityBigPrize.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityBigPrize.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityBigPrize.cs.meta new file mode 100644 index 00000000..0cc2a6ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityBigPrize.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b94ba34a1e19b614085557dc45016428 +timeCreated: 1611404410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityReward.cs new file mode 100644 index 00000000..48572dd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetSpActivityReward : Rpc + { + public GetSpActivityRewardArg oArg = new GetSpActivityRewardArg(); + + public GetSpActivityRewardRes oRes = new GetSpActivityRewardRes(); + + public override uint GetRpcType() + { + return 7905u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetSpActivityReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetSpActivityReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityReward.cs.meta new file mode 100644 index 00000000..f9264359 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSpActivityReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4e0fb2c3cccd2645984c311dfee5afc +timeCreated: 1611404741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs new file mode 100644 index 00000000..44c5b9b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetSweepTowerReward : Rpc + { + public GetSweepTowerRewardArg oArg = new GetSweepTowerRewardArg(); + + public GetSweepTowerRewardRes oRes = new GetSweepTowerRewardRes(); + + public override uint GetRpcType() + { + return 23703u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetSweepTowerReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetSweepTowerReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs.meta new file mode 100644 index 00000000..ec487ea9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSweepTowerReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20060bc6d98795c4a9a3fbbc6bbbf6ba +timeCreated: 1611403404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSystemReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSystemReward.cs new file mode 100644 index 00000000..8241ec63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSystemReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetSystemReward : Rpc + { + public GetSystemRewardArg oArg = new GetSystemRewardArg(); + + public GetSystemRewardRes oRes = new GetSystemRewardRes(); + + public override uint GetRpcType() + { + return 11595u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetSystemReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetSystemReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSystemReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSystemReward.cs.meta new file mode 100644 index 00000000..773086a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetSystemReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 704274577c233d24f9018555089f0863 +timeCreated: 1611403931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs new file mode 100644 index 00000000..1a3117c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetTowerActivityTop : Rpc + { + public GetTowerActivityTopArg oArg = new GetTowerActivityTopArg(); + + public GetTowerActivityTopRes oRes = new GetTowerActivityTopRes(); + + public override uint GetRpcType() + { + return 5168u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetTowerActivityTop.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetTowerActivityTop.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs.meta new file mode 100644 index 00000000..c2085e31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerActivityTop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 138d8ee959e33bb48920fc91304c10b3 +timeCreated: 1611403249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerFirstPassReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerFirstPassReward.cs new file mode 100644 index 00000000..9752676b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerFirstPassReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetTowerFirstPassReward : Rpc + { + public GetTowerFirstPassRewardArg oArg = new GetTowerFirstPassRewardArg(); + + public GetTowerFirstPassRewardRes oRes = new GetTowerFirstPassRewardRes(); + + public override uint GetRpcType() + { + return 55009u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetTowerFirstPassReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetTowerFirstPassReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerFirstPassReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerFirstPassReward.cs.meta new file mode 100644 index 00000000..eeb4afb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetTowerFirstPassReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c775f064cf12804b9c92dcc3cfcf922 +timeCreated: 1611403602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs new file mode 100644 index 00000000..1b3204db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetWatchInfoByID : Rpc + { + public GetWatchInfoByIDArg oArg = new GetWatchInfoByIDArg(); + + public GetWatchInfoByIDRes oRes = new GetWatchInfoByIDRes(); + + public override uint GetRpcType() + { + return 45635u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetWatchInfoByID.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetWatchInfoByID.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs.meta new file mode 100644 index 00000000..be85daa5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWatchInfoByID.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3842b7b17f535e145ad4e00efbb203f4 +timeCreated: 1611403570 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs new file mode 100644 index 00000000..a7e54901 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetWeeklyTaskInfo : Rpc + { + public GetWeeklyTaskInfoArg oArg = new GetWeeklyTaskInfoArg(); + + public GetWeeklyTaskInfoRes oRes = null; + + public override uint GetRpcType() + { + return 44747u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetWeeklyTaskInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetWeeklyTaskInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs.meta new file mode 100644 index 00000000..6801cecc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5aa7d8e204ea9e645804cd622c1c311d +timeCreated: 1611403792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs new file mode 100644 index 00000000..5588a76a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GetWeeklyTaskReward : Rpc + { + public GetWeeklyTaskRewardArg oArg = new GetWeeklyTaskRewardArg(); + + public GetWeeklyTaskRewardRes oRes = null; + + public override uint GetRpcType() + { + return 30588u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GetWeeklyTaskReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GetWeeklyTaskReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs.meta new file mode 100644 index 00000000..5a1e508b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GetWeeklyTaskReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 297673902f3124248a9bcc3fb49a2cc5 +timeCreated: 1611403477 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs new file mode 100644 index 00000000..c3c5cee5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GmfReadyReq : Rpc + { + public GmfReadyArg oArg = new GmfReadyArg(); + + public GmfReadyRes oRes = new GmfReadyRes(); + + public override uint GetRpcType() + { + return 12219u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GmfReadyReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GmfReadyReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs.meta new file mode 100644 index 00000000..a45e7692 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GmfReadyReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86a2d6cb7cc9fb94a9ea44708bba9cb6 +timeCreated: 1611404055 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs new file mode 100644 index 00000000..fb22ebe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GoldClick : Rpc + { + public GoldClickArg oArg = new GoldClickArg(); + + public GoldClickRes oRes = null; + + public override uint GetRpcType() + { + return 12917u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GoldClick.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GoldClick.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs.meta new file mode 100644 index 00000000..85879a5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GoldClick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d8e68e70801c1244af5c72c0e1cfcd1 +timeCreated: 1611403356 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GrowthFundAward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GrowthFundAward.cs new file mode 100644 index 00000000..f516530e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GrowthFundAward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GrowthFundAward : Rpc + { + public GrowthFundAwardArg oArg = new GrowthFundAwardArg(); + + public GrowthFundAwardRes oRes = new GrowthFundAwardRes(); + + public override uint GetRpcType() + { + return 43548u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GrowthFundAward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GrowthFundAward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GrowthFundAward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GrowthFundAward.cs.meta new file mode 100644 index 00000000..53aab2b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GrowthFundAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c93acafb656776b40b54ab390187c540 +timeCreated: 1611404537 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampExchangeOperate.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampExchangeOperate.cs new file mode 100644 index 00000000..7497c923 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampExchangeOperate.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GuildCampExchangeOperate : Rpc + { + public GuildCampExchangeOperateArg oArg = new GuildCampExchangeOperateArg(); + + public GuildCampExchangeOperateRes oRes = null; + + public override uint GetRpcType() + { + return 31811u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GuildCampExchangeOperate.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GuildCampExchangeOperate.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampExchangeOperate.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampExchangeOperate.cs.meta new file mode 100644 index 00000000..22d43bef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampExchangeOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8fec855d09cb2da4a969daba9755706e +timeCreated: 1611404136 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampPartyReqExchange.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampPartyReqExchange.cs new file mode 100644 index 00000000..40489ec5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampPartyReqExchange.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GuildCampPartyReqExchange : Rpc + { + public GuildCampPartyReqExchangeReq oArg = new GuildCampPartyReqExchangeReq(); + + public GuildCampPartyReqExchangeRes oRes = null; + + public override uint GetRpcType() + { + return 51021u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GuildCampPartyReqExchange.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GuildCampPartyReqExchange.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampPartyReqExchange.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampPartyReqExchange.cs.meta new file mode 100644 index 00000000..ed3dd965 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCampPartyReqExchange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2b95f82b301e804dbfab38dc26b5e89 +timeCreated: 1611404495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCheckInBonusInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCheckInBonusInfo.cs new file mode 100644 index 00000000..39e2d07e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCheckInBonusInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GuildCheckInBonusInfo : Rpc + { + public GuildCheckInBonusInfoArg oArg = new GuildCheckInBonusInfoArg(); + + public GuildCheckInBonusInfoRes oRes = new GuildCheckInBonusInfoRes(); + + public override uint GetRpcType() + { + return 47251u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GuildCheckInBonusInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GuildCheckInBonusInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCheckInBonusInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCheckInBonusInfo.cs.meta new file mode 100644 index 00000000..5421ab32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildCheckInBonusInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d440d9194d3e5b48aa15be1bba81f0c +timeCreated: 1611404104 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs new file mode 100644 index 00000000..624a5fc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GuildGoblinInfo : Rpc + { + public GuildGoblinInfoArg oArg = new GuildGoblinInfoArg(); + + public GuildGoblinInfoRes oRes = new GuildGoblinInfoRes(); + + public override uint GetRpcType() + { + return 59865u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GuildGoblinInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GuildGoblinInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs.meta new file mode 100644 index 00000000..5997c7a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildGoblinInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae644c11f78f95c46a3435d710dac66e +timeCreated: 1611404339 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildPartySummonSpirit.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildPartySummonSpirit.cs new file mode 100644 index 00000000..0a6808d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildPartySummonSpirit.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_GuildPartySummonSpirit : Rpc + { + public GuildPartySummonSpiritArg oArg = new GuildPartySummonSpiritArg(); + + public GuildPartySummonSpiritRes oRes = null; + + public override uint GetRpcType() + { + return 42269u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_GuildPartySummonSpirit.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_GuildPartySummonSpirit.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildPartySummonSpirit.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildPartySummonSpirit.cs.meta new file mode 100644 index 00000000..9412394b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_GuildPartySummonSpirit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49e3b726112e40e4a933a2929d08243f +timeCreated: 1611403663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_HorseReConnect.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_HorseReConnect.cs new file mode 100644 index 00000000..4fd44676 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_HorseReConnect.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_HorseReConnect : Rpc + { + public HorseReConnectArg oArg = new HorseReConnectArg(); + + public HorseReConnectRes oRes = null; + + public override uint GetRpcType() + { + return 7786u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_HorseReConnect.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_HorseReConnect.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_HorseReConnect.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_HorseReConnect.cs.meta new file mode 100644 index 00000000..1f13bdc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_HorseReConnect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d406a0a2bb8196e4bb1f070993d341e0 +timeCreated: 1611404601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_IdentifyEmblem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_IdentifyEmblem.cs new file mode 100644 index 00000000..9353006c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_IdentifyEmblem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_IdentifyEmblem : Rpc + { + public IdentifyEmblemArg oArg = new IdentifyEmblemArg(); + + public IdentifyEmblemRes oRes = new IdentifyEmblemRes(); + + public override uint GetRpcType() + { + return 43787u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_IdentifyEmblem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_IdentifyEmblem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_IdentifyEmblem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_IdentifyEmblem.cs.meta new file mode 100644 index 00000000..518f0715 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_IdentifyEmblem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c31ad9208f6342478e00063438a0fef +timeCreated: 1611403172 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs new file mode 100644 index 00000000..0c12892f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_InlayAllJade : Rpc + { + public InlayAllJadeArg oArg = new InlayAllJadeArg(); + + public InlayAllJadeRes oRes = null; + + public override uint GetRpcType() + { + return 58864u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_InlayAllJade.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_InlayAllJade.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs.meta new file mode 100644 index 00000000..7f6942fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InlayAllJade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62a2e2aeaa4bcdb4c85058f74243788f +timeCreated: 1611403841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs new file mode 100644 index 00000000..22854157 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_InspireReq : Rpc + { + public InspireArg oArg = new InspireArg(); + + public InspireRes oRes = new InspireRes(); + + public override uint GetRpcType() + { + return 54147u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_InspireReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_InspireReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs.meta new file mode 100644 index 00000000..fdb92855 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_InspireReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d0c34cf7f3332e4aa1de1870571cb4f +timeCreated: 1611403999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs new file mode 100644 index 00000000..97cc3ffb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ItemBuffOp : Rpc + { + public ItemBuffOpArg oArg = new ItemBuffOpArg(); + + public ItemBuffOpRes oRes = new ItemBuffOpRes(); + + public override uint GetRpcType() + { + return 50404u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ItemBuffOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ItemBuffOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs.meta new file mode 100644 index 00000000..bef31a51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemBuffOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c052e778c069744ead8831687d2e49e +timeCreated: 1611403171 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs new file mode 100644 index 00000000..0fabbed3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ItemCompose : Rpc + { + public ItemComposeArg oArg = new ItemComposeArg(); + + public ItemComposeRes oRes = null; + + public override uint GetRpcType() + { + return 16118u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ItemCompose.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ItemCompose.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs.meta new file mode 100644 index 00000000..08756955 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 110e3a873cfccd24398ab0819c39ca20 +timeCreated: 1611403220 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs new file mode 100644 index 00000000..402d659c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ItemFindBack : Rpc + { + public ItemFindBackArg oArg = new ItemFindBackArg(); + + public ItemFindBackRes oRes = new ItemFindBackRes(); + + public override uint GetRpcType() + { + return 60242u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ItemFindBack.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ItemFindBack.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs.meta new file mode 100644 index 00000000..22fc34fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBack.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 253017d0d82f8e242bdf0b28c4dfe697 +timeCreated: 1611403464 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs new file mode 100644 index 00000000..fe3f4da9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ItemFindBackInfo : Rpc + { + public ItemFindBackInfoArg oArg = new ItemFindBackInfoArg(); + + public ItemFindBackInfoRes oRes = new ItemFindBackInfoRes(); + + public override uint GetRpcType() + { + return 11755u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ItemFindBackInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ItemFindBackInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs.meta new file mode 100644 index 00000000..7f0048da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemFindBackInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0bf9f30f06f3f341a1cc5737275c427 +timeCreated: 1611404834 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs new file mode 100644 index 00000000..571a46b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ItemSell : Rpc + { + public ItemSellArg oArg = new ItemSellArg(); + + public ItemSellRes oRes = null; + + public override uint GetRpcType() + { + return 34826u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ItemSell.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ItemSell.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs.meta new file mode 100644 index 00000000..943d91c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ItemSell.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4620ea4a5de1d724ebeff24125217da7 +timeCreated: 1611403649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs new file mode 100644 index 00000000..e06dc5e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_JadeCompose : Rpc + { + public JadeComposeArg oArg = new JadeComposeArg(); + + public JadeComposeRes oRes = new JadeComposeRes(); + + public override uint GetRpcType() + { + return 35616u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_JadeCompose.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_JadeCompose.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs.meta new file mode 100644 index 00000000..a6d9441d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 960d578611b98ea4e81dae60677c4d71 +timeCreated: 1611404183 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeComposeNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeComposeNew.cs new file mode 100644 index 00000000..ca293f60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeComposeNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_JadeComposeNew : Rpc + { + public JadeComposeNewArg oArg = new JadeComposeNewArg(); + + public JadeComposeNewRes oRes = null; + + public override uint GetRpcType() + { + return 46652u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_JadeComposeNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_JadeComposeNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeComposeNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeComposeNew.cs.meta new file mode 100644 index 00000000..e6b4d3bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeComposeNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3774f3c83699e8047a4fc4bd83cea11e +timeCreated: 1611403565 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperation.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperation.cs new file mode 100644 index 00000000..d27e3086 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperation.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_JadeOperation : Rpc + { + public JadeOperationArg oArg = new JadeOperationArg(); + + public JadeOperationRes oRes = new JadeOperationRes(); + + public override uint GetRpcType() + { + return 55991u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_JadeOperation.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_JadeOperation.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperation.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperation.cs.meta new file mode 100644 index 00000000..573bc30f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3be5cb11dcc80f046ab064b10bd5340f +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperationNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperationNew.cs new file mode 100644 index 00000000..cd77253c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperationNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_JadeOperationNew : Rpc + { + public JadeOperationNewArg oArg = new JadeOperationNewArg(); + + public JadeOperationNewRes oRes = null; + + public override uint GetRpcType() + { + return 40839u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_JadeOperationNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_JadeOperationNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperationNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperationNew.cs.meta new file mode 100644 index 00000000..343c4fae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JadeOperationNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9904986631a6a304ab80d4f347625628 +timeCreated: 1611404193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JustDance.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JustDance.cs new file mode 100644 index 00000000..84b49282 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JustDance.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_JustDance : Rpc + { + public JustDanceArg oArg = new JustDanceArg(); + + public JustDanceRes oRes = new JustDanceRes(); + + public override uint GetRpcType() + { + return 43613u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_JustDance.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_JustDance.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JustDance.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JustDance.cs.meta new file mode 100644 index 00000000..33e4f069 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_JustDance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58bdcfc1fdaf5804ba8419784e0c3769 +timeCreated: 1611403760 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs new file mode 100644 index 00000000..488d8efd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_LeagueBattleReadyReq : Rpc + { + public LeagueBattleReadyReqArg oArg = new LeagueBattleReadyReqArg(); + + public LeagueBattleReadyReqRes oRes = null; + + public override uint GetRpcType() + { + return 15873u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_LeagueBattleReadyReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_LeagueBattleReadyReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs.meta new file mode 100644 index 00000000..5732faca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LeagueBattleReadyReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3538f85b6f49b514ab2ab2c3b7b734b8 +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LearnGuildSkill.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LearnGuildSkill.cs new file mode 100644 index 00000000..1725bf96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LearnGuildSkill.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_LearnGuildSkill : Rpc + { + public LearnGuildSkillAgr oArg = new LearnGuildSkillAgr(); + + public LearnGuildSkillRes oRes = new LearnGuildSkillRes(); + + public override uint GetRpcType() + { + return 62806u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_LearnGuildSkill.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_LearnGuildSkill.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LearnGuildSkill.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LearnGuildSkill.cs.meta new file mode 100644 index 00000000..8260e2aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LearnGuildSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e20881215366eec4f9ec4aa0639dca63 +timeCreated: 1611404704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealButtonStatus.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealButtonStatus.cs new file mode 100644 index 00000000..4fccd247 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealButtonStatus.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_LevelSealButtonStatus : Rpc + { + public LevelSealOverExpArg oArg = new LevelSealOverExpArg(); + + public LevelSealOverExpRes oRes = new LevelSealOverExpRes(); + + public override uint GetRpcType() + { + return 10396u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_LevelSealButtonStatus.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_LevelSealButtonStatus.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealButtonStatus.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealButtonStatus.cs.meta new file mode 100644 index 00000000..c138114b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealButtonStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27d1a9f194af10f41829872c06cdd667 +timeCreated: 1611403472 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealExchange.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealExchange.cs new file mode 100644 index 00000000..5561c742 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealExchange.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_LevelSealExchange : Rpc + { + public LevelSealExchangeArg oArg = new LevelSealExchangeArg(); + + public LevelSealExchangeRes oRes = new LevelSealExchangeRes(); + + public override uint GetRpcType() + { + return 65467u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_LevelSealExchange.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_LevelSealExchange.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealExchange.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealExchange.cs.meta new file mode 100644 index 00000000..1e3b4e8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelSealExchange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91d1df702f3bcba4cb3dff7b37620113 +timeCreated: 1611404144 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs new file mode 100644 index 00000000..fef5bd08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_LevelUpSlotAttr : Rpc + { + public LevelUpSlotAttrArg oArg = new LevelUpSlotAttrArg(); + + public LevelUpSlotAttrRes oRes = new LevelUpSlotAttrRes(); + + public override uint GetRpcType() + { + return 62918u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_LevelUpSlotAttr.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_LevelUpSlotAttr.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs.meta new file mode 100644 index 00000000..a2fd917c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LevelUpSlotAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0d9ba43d752cb5408e11ca4573d4b2a +timeCreated: 1611404589 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs new file mode 100644 index 00000000..10bd1695 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_LotteryDraw : Rpc + { + public LotteryDrawReq oArg = new LotteryDrawReq(); + + public LotteryDrawRes oRes = null; + + public override uint GetRpcType() + { + return 47060u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_LotteryDraw.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_LotteryDraw.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs.meta new file mode 100644 index 00000000..56c818ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_LotteryDraw.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84b7dd4313fd6c74dab1437eac01f940 +timeCreated: 1611404049 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MobaSignaling.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MobaSignaling.cs new file mode 100644 index 00000000..6eb6905a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MobaSignaling.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_MobaSignaling : Rpc + { + public MobaSignalingArg oArg = new MobaSignalingArg(); + + public MobaSignalingRes oRes = null; + + public override uint GetRpcType() + { + return 52475u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_MobaSignaling.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_MobaSignaling.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MobaSignaling.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MobaSignaling.cs.meta new file mode 100644 index 00000000..6fd0c794 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MobaSignaling.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a618bf9bc3b26d84599b752b15a36ba5 +timeCreated: 1611404287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MulActivityReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MulActivityReq.cs new file mode 100644 index 00000000..4a685da8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MulActivityReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_MulActivityReq : Rpc + { + public MulActivityArg oArg = new MulActivityArg(); + + public MulActivityRes oRes = new MulActivityRes(); + + public override uint GetRpcType() + { + return 22806u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_MulActivityReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_MulActivityReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MulActivityReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MulActivityReq.cs.meta new file mode 100644 index 00000000..c10b61b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_MulActivityReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9aa677badd195740a0cd621e58f2383 +timeCreated: 1611404539 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs new file mode 100644 index 00000000..aede046a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_OpenGuildQAReq : Rpc + { + public OpenGuildQAReq oArg = new OpenGuildQAReq(); + + public OpenGuildQARes oRes = new OpenGuildQARes(); + + public override uint GetRpcType() + { + return 62840u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_OpenGuildQAReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_OpenGuildQAReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs.meta new file mode 100644 index 00000000..6bb42f52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenGuildQAReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 598f26acd55275c498648965c1daa01b +timeCreated: 1611403785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenSceneChest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenSceneChest.cs new file mode 100644 index 00000000..1c9e5f35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenSceneChest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_OpenSceneChest : Rpc + { + public OpenSceneChestArg oArg = new OpenSceneChestArg(); + + public OpenSceneChestRes oRes = new OpenSceneChestRes(); + + public override uint GetRpcType() + { + return 27401u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_OpenSceneChest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_OpenSceneChest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenSceneChest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenSceneChest.cs.meta new file mode 100644 index 00000000..fb5412de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_OpenSceneChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee4cf2ed39a2d5c45a7e94625005b937 +timeCreated: 1611404796 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Operation520Festival.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Operation520Festival.cs new file mode 100644 index 00000000..859c77c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Operation520Festival.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_Operation520Festival : Rpc + { + public Operation520FestivalArg oArg = new Operation520FestivalArg(); + + public Operation520FestivalRes oRes = null; + + public override uint GetRpcType() + { + return 17971u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_Operation520Festival.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_Operation520Festival.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Operation520Festival.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Operation520Festival.cs.meta new file mode 100644 index 00000000..b7602b1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Operation520Festival.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a9fde9a5e3f8304f95681ec8276ca70 +timeCreated: 1611403311 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PandoraLottery.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PandoraLottery.cs new file mode 100644 index 00000000..a919b0ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PandoraLottery.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PandoraLottery : Rpc + { + public PandoraLotteryArg oArg = new PandoraLotteryArg(); + + public PandoraLotteryRes oRes = null; + + public override uint GetRpcType() + { + return 12575u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PandoraLottery.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PandoraLottery.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PandoraLottery.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PandoraLottery.cs.meta new file mode 100644 index 00000000..11b9ac6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PandoraLottery.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b6205ebe5b7d064d98bc227f9235e47 +timeCreated: 1611403315 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs new file mode 100644 index 00000000..109adcf5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PayCardAward : Rpc + { + public PayCardAwardArg oArg = new PayCardAwardArg(); + + public PayCardAwardRes oRes = new PayCardAwardRes(); + + public override uint GetRpcType() + { + return 20470u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PayCardAward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PayCardAward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs.meta new file mode 100644 index 00000000..ede12f68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayCardAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfcb5d36512b9f34d95de8343d601840 +timeCreated: 1611404694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayClick.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayClick.cs new file mode 100644 index 00000000..49b1cac1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayClick.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PayClick : Rpc + { + public PayClickArg oArg = new PayClickArg(); + + public PayClickRes oRes = new PayClickRes(); + + public override uint GetRpcType() + { + return 20376u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PayClick.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PayClick.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayClick.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayClick.cs.meta new file mode 100644 index 00000000..270514c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayClick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8365e0782f26ef4408c13d87c2224eec +timeCreated: 1611404044 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFirstAward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFirstAward.cs new file mode 100644 index 00000000..5a119791 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFirstAward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PayFirstAward : Rpc + { + public PayFirstAwardArg oArg = new PayFirstAwardArg(); + + public PayFirstAwardRes oRes = new PayFirstAwardRes(); + + public override uint GetRpcType() + { + return 46058u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PayFirstAward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PayFirstAward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFirstAward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFirstAward.cs.meta new file mode 100644 index 00000000..30b9ec22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFirstAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3c1c5f30743d924392fffc790b5bfea +timeCreated: 1611404280 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFriendItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFriendItem.cs new file mode 100644 index 00000000..9057d52e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFriendItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PayFriendItem : Rpc + { + public PayFriendItemArg oArg = new PayFriendItemArg(); + + public PayFriendItemRes oRes = null; + + public override uint GetRpcType() + { + return 29289u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PayFriendItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PayFriendItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFriendItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFriendItem.cs.meta new file mode 100644 index 00000000..4a2c84f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PayFriendItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90b36cffec7bdd24d8f621493fb5fc72 +timeCreated: 1611404139 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs new file mode 100644 index 00000000..0e8c668a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PeerBox : Rpc + { + public PeerBoxArg oArg = new PeerBoxArg(); + + public PeerBoxRes oRes = null; + + public override uint GetRpcType() + { + return 21959u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PeerBox.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PeerBox.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs.meta new file mode 100644 index 00000000..510d7b19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PeerBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33262cb20276b5e449eebb96c4078670 +timeCreated: 1611403551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PersonalCareer.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PersonalCareer.cs new file mode 100644 index 00000000..7b4ff6a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PersonalCareer.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PersonalCareer : Rpc + { + public PersonalCareerArg oArg = new PersonalCareerArg(); + + public PersonalCareerRes oRes = null; + + public override uint GetRpcType() + { + return 64048u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PersonalCareer.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PersonalCareer.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PersonalCareer.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PersonalCareer.cs.meta new file mode 100644 index 00000000..ee3156b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PersonalCareer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 153c9be061269b84dafbdaebb710c28d +timeCreated: 1611403262 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs new file mode 100644 index 00000000..067f2577 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PetOperation : Rpc + { + public PetOperationArg oArg = new PetOperationArg(); + + public PetOperationRes oRes = new PetOperationRes(); + + public override uint GetRpcType() + { + return 28857u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PetOperation.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PetOperation.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs.meta new file mode 100644 index 00000000..4921b557 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0616c93f1ec1d7419f704061e68129c +timeCreated: 1611404486 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperationOther.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperationOther.cs new file mode 100644 index 00000000..ed2f31c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperationOther.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PetOperationOther : Rpc + { + public PetOperationOtherArg oArg = new PetOperationOtherArg(); + + public PetOperationOtherRes oRes = null; + + public override uint GetRpcType() + { + return 58525u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PetOperationOther.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PetOperationOther.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperationOther.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperationOther.cs.meta new file mode 100644 index 00000000..75a7a1f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PetOperationOther.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41748cf9075435a43af83dbaa06476d5 +timeCreated: 1611403617 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PhotographEffect.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PhotographEffect.cs new file mode 100644 index 00000000..4219e3a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PhotographEffect.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PhotographEffect : Rpc + { + public PhotographEffectArg oArg = new PhotographEffectArg(); + + public PhotographEffect oRes = null; + + public override uint GetRpcType() + { + return 14666u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PhotographEffect.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PhotographEffect.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PhotographEffect.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PhotographEffect.cs.meta new file mode 100644 index 00000000..cdf5b841 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PhotographEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65f7b550f6e31884998fb61491772442 +timeCreated: 1611403852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs new file mode 100644 index 00000000..e3b498f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PlayDiceOver : Rpc + { + public PlayDiceOverArg oArg = new PlayDiceOverArg(); + + public PlayDiceOverRes oRes = new PlayDiceOverRes(); + + public override uint GetRpcType() + { + return 15035u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PlayDiceOver.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PlayDiceOver.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs.meta new file mode 100644 index 00000000..cba5b982 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceOver.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af9d406ef464f1f42938bebf4abfeb0a +timeCreated: 1611404346 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceRequest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceRequest.cs new file mode 100644 index 00000000..2dfbbc22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceRequest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PlayDiceRequest : Rpc + { + public PlayDiceRequestArg oArg = new PlayDiceRequestArg(); + + public PlayDiceRequestRes oRes = new PlayDiceRequestRes(); + + public override uint GetRpcType() + { + return 51246u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PlayDiceRequest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PlayDiceRequest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceRequest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceRequest.cs.meta new file mode 100644 index 00000000..ec52c965 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PlayDiceRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae3293eea16508e458b1298820de3d86 +timeCreated: 1611404338 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs new file mode 100644 index 00000000..b29fd460 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PvpAllReq : Rpc + { + public PvpArg oArg = new PvpArg(); + + public PvpRes oRes = new PvpRes(); + + public override uint GetRpcType() + { + return 57262u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PvpAllReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PvpAllReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs.meta new file mode 100644 index 00000000..41f2b421 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpAllReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbf0aa0f866e5314698c138be0e9d2e7 +timeCreated: 1611404444 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpNowAllData.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpNowAllData.cs new file mode 100644 index 00000000..792efd70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpNowAllData.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_PvpNowAllData : Rpc + { + public roArg oArg = new roArg(); + + public PvpNowGameData oRes = new PvpNowGameData(); + + public override uint GetRpcType() + { + return 58355u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_PvpNowAllData.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_PvpNowAllData.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpNowAllData.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpNowAllData.cs.meta new file mode 100644 index 00000000..f075e874 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_PvpNowAllData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bd3ec1d253e3684e85f2a46afeb7f09 +timeCreated: 1611403688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs new file mode 100644 index 00000000..9348571e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryBoxs : Rpc + { + public QueryBoxsArg oArg = new QueryBoxsArg(); + + public QueryBoxsRes oRes = null; + + public override uint GetRpcType() + { + return 12558u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryBoxs.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryBoxs.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs.meta new file mode 100644 index 00000000..921ca11d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryBoxs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a017bbf1b5da08140b7194171c554693 +timeCreated: 1611404247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryClientIp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryClientIp.cs new file mode 100644 index 00000000..8c2aed87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryClientIp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryClientIp : Rpc + { + public QueryClientIpArg oArg = new QueryClientIpArg(); + + public QueryClientIpRes oRes = null; + + public override uint GetRpcType() + { + return 24918u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryClientIp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryClientIp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryClientIp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryClientIp.cs.meta new file mode 100644 index 00000000..073187fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryClientIp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b3315c64ff444a438b8dcb60c531364 +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryGuildCard.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryGuildCard.cs new file mode 100644 index 00000000..6c386cf6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryGuildCard.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryGuildCard : Rpc + { + public QueryGuildCardArg oArg = new QueryGuildCardArg(); + + public QueryGuildCardRes oRes = new QueryGuildCardRes(); + + public override uint GetRpcType() + { + return 55524u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryGuildCard.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryGuildCard.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryGuildCard.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryGuildCard.cs.meta new file mode 100644 index 00000000..d162c4a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryGuildCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1835e0504c8c090468532154cb27a490 +timeCreated: 1611403296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs new file mode 100644 index 00000000..6eb96c34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryIBItem : Rpc + { + public IBQueryItemReq oArg = new IBQueryItemReq(); + + public IBQueryItemRes oRes = new IBQueryItemRes(); + + public override uint GetRpcType() + { + return 23880u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryIBItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryIBItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs.meta new file mode 100644 index 00000000..b5565d73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryIBItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e58dc8ef2a26a4941802579f60a1d28a +timeCreated: 1611404743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryLotteryCD.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryLotteryCD.cs new file mode 100644 index 00000000..6fc9b230 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryLotteryCD.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryLotteryCD : Rpc + { + public QueryLotteryCDArg oArg = new QueryLotteryCDArg(); + + public QueryLotteryCDRes oRes = null; + + public override uint GetRpcType() + { + return 12242u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryLotteryCD.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryLotteryCD.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryLotteryCD.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryLotteryCD.cs.meta new file mode 100644 index 00000000..a6922e34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryLotteryCD.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a520fd1ba974fa441b3a356524264e54 +timeCreated: 1611404284 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryOpenGameActivityTime.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryOpenGameActivityTime.cs new file mode 100644 index 00000000..0362eebe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryOpenGameActivityTime.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryOpenGameActivityTime : Rpc + { + public QueryOpenGameArg oArg = new QueryOpenGameArg(); + + public QueryOpenGameRes oRes = new QueryOpenGameRes(); + + public override uint GetRpcType() + { + return 24079u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryOpenGameActivityTime.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryOpenGameActivityTime.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryOpenGameActivityTime.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryOpenGameActivityTime.cs.meta new file mode 100644 index 00000000..548ce6cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryOpenGameActivityTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6add0456b58f3014a8d38880e1bf9721 +timeCreated: 1611403890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryPowerPoint.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryPowerPoint.cs new file mode 100644 index 00000000..d5aaba87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryPowerPoint.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryPowerPoint : Rpc + { + public QueryPowerPointArg oArg = new QueryPowerPointArg(); + + public QueryPowerPointRes oRes = new QueryPowerPointRes(); + + public override uint GetRpcType() + { + return 44381u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryPowerPoint.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryPowerPoint.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryPowerPoint.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryPowerPoint.cs.meta new file mode 100644 index 00000000..d8f48433 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryPowerPoint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04ea451808c5b704d8bf1330a4f18e18 +timeCreated: 1611402962 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQFriendsVipInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQFriendsVipInfo.cs new file mode 100644 index 00000000..67d087a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQFriendsVipInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryQQFriendsVipInfo : Rpc + { + public QueryQQFriendsVipInfoArg oArg = new QueryQQFriendsVipInfoArg(); + + public QueryQQFriendsVipInfoRes oRes = null; + + public override uint GetRpcType() + { + return 11531u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryQQFriendsVipInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryQQFriendsVipInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQFriendsVipInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQFriendsVipInfo.cs.meta new file mode 100644 index 00000000..2c705a9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQFriendsVipInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb89a7e9e8af9c04b89d0799aec80f90 +timeCreated: 1611404784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs new file mode 100644 index 00000000..a0c668c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryQQVipInfo : Rpc + { + public QueryQQVipInfoArg oArg = new QueryQQVipInfoArg(); + + public QueryQQVipInfoRes oRes = new QueryQQVipInfoRes(); + + public override uint GetRpcType() + { + return 43943u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryQQVipInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryQQVipInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs.meta new file mode 100644 index 00000000..d0fb56d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryQQVipInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf4e2396d9d70fc4b803e303d879a60b +timeCreated: 1611404483 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs new file mode 100644 index 00000000..ca6a9d19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QuerySceneDayCount : Rpc + { + public QuerySceneDayCountArg oArg = new QuerySceneDayCountArg(); + + public QuerySceneDayCountRes oRes = new QuerySceneDayCountRes(); + + public override uint GetRpcType() + { + return 1676u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QuerySceneDayCount.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QuerySceneDayCount.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs.meta new file mode 100644 index 00000000..8f1adaea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneDayCount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b914daa9d5ad2d84d9f7d0b4ff379e4b +timeCreated: 1611404408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneTime.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneTime.cs new file mode 100644 index 00000000..0d67bc44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneTime.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QuerySceneTime : Rpc + { + public QuerySceneTimeArg oArg = new QuerySceneTimeArg(); + + public QuerySceneTimeRes oRes = new QuerySceneTimeRes(); + + public override uint GetRpcType() + { + return 39595u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QuerySceneTime.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QuerySceneTime.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneTime.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneTime.cs.meta new file mode 100644 index 00000000..4aa4c41c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QuerySceneTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ef69489ef7a2fc4c98b8b3547c5a6ad +timeCreated: 1611403609 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryShopItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryShopItem.cs new file mode 100644 index 00000000..85306d64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryShopItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_QueryShopItem : Rpc + { + public QueryShopItemArg oArg = new QueryShopItemArg(); + + public QueryShopItemRes oRes = new QueryShopItemRes(); + + public override uint GetRpcType() + { + return 18079u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_QueryShopItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_QueryShopItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryShopItem.cs.meta new file mode 100644 index 00000000..d9c89196 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_QueryShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cabd0db34e2e8b45995f6c40a7a77c3 +timeCreated: 1611403802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs new file mode 100644 index 00000000..f75cc910 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ReEnterRiskBattle : Rpc + { + public ReEnterRiskBattleArg oArg = new ReEnterRiskBattleArg(); + + public ReEnterRiskBattleRes oRes = new ReEnterRiskBattleRes(); + + public override uint GetRpcType() + { + return 1615u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ReEnterRiskBattle.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ReEnterRiskBattle.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs.meta new file mode 100644 index 00000000..0920607b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReEnterRiskBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f61791fda656d9340bf1c60b254e64bb +timeCreated: 1611404880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshSweepReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshSweepReward.cs new file mode 100644 index 00000000..374e008c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshSweepReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_RefreshSweepReward : Rpc + { + public RefreshSweepRewardArg oArg = new RefreshSweepRewardArg(); + + public RefreshSweepRewardRes oRes = new RefreshSweepRewardRes(); + + public override uint GetRpcType() + { + return 38012u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_RefreshSweepReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_RefreshSweepReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshSweepReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshSweepReward.cs.meta new file mode 100644 index 00000000..fca2ab5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshSweepReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4261dfe7de41b3549a04964fd048228f +timeCreated: 1611403639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs new file mode 100644 index 00000000..15a16a7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_RefreshWeeklyTask : Rpc + { + public RefreshWeeklyTaskArg oArg = new RefreshWeeklyTaskArg(); + + public RefreshWeeklyTaskRes oRes = null; + + public override uint GetRpcType() + { + return 3384u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_RefreshWeeklyTask.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_RefreshWeeklyTask.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs.meta new file mode 100644 index 00000000..e3505232 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RefreshWeeklyTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40531317e16e2c3489cd3bf2a12f232f +timeCreated: 1611403613 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs new file mode 100644 index 00000000..f48e47ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ReplyPartyExchangeItemOpt : Rpc + { + public ReplyPartyExchangeItemOptArg oArg = new ReplyPartyExchangeItemOptArg(); + + public ReplyPartyExchangeItemOptRes oRes = null; + + public override uint GetRpcType() + { + return 13740u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ReplyPartyExchangeItemOpt.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ReplyPartyExchangeItemOpt.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs.meta new file mode 100644 index 00000000..b0c6fab3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReplyPartyExchangeItemOpt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 46bbf136af2a81641ad13cdd057ef29f +timeCreated: 1611403651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBadPlayer.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBadPlayer.cs new file mode 100644 index 00000000..b6780134 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBadPlayer.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ReportBadPlayer : Rpc + { + public ReportBadPlayerArg oArg = new ReportBadPlayerArg(); + + public ReportBadPlayerRes oRes = null; + + public override uint GetRpcType() + { + return 32807u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ReportBadPlayer.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ReportBadPlayer.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBadPlayer.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBadPlayer.cs.meta new file mode 100644 index 00000000..13b4511a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBadPlayer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8bb93dce0cd4dd547905ae23aa31a11f +timeCreated: 1611404096 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs new file mode 100644 index 00000000..094a6096 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ReportBattle : Rpc + { + public ReportBattleArg oArg = new ReportBattleArg(); + + public ReportBattleRes oRes = new ReportBattleRes(); + + public override uint GetRpcType() + { + return 21292u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ReportBattle.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ReportBattle.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs.meta new file mode 100644 index 00000000..0840a0b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReportBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5eaf7609c0ccde848a6609fff8d8e298 +timeCreated: 1611403810 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs new file mode 100644 index 00000000..07a76835 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ReqGetLoginReward : Rpc + { + public LoginRewardGetReq oArg = new LoginRewardGetReq(); + + public LoginRewardGetRet oRes = new LoginRewardGetRet(); + + public override uint GetRpcType() + { + return 44079u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ReqGetLoginReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ReqGetLoginReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs.meta new file mode 100644 index 00000000..f0f459d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGetLoginReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84fb6505accca79438a8bca905f42864 +timeCreated: 1611404050 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs new file mode 100644 index 00000000..2602e1a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ReqGuildBossTimeLeft : Rpc + { + public getguildbosstimeleftArg oArg = new getguildbosstimeleftArg(); + + public getguildbosstimeleftRes oRes = new getguildbosstimeleftRes(); + + public override uint GetRpcType() + { + return 24494u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ReqGuildBossTimeLeft.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ReqGuildBossTimeLeft.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs.meta new file mode 100644 index 00000000..4a13fae0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqGuildBossTimeLeft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35c006f272396ed44b5dbe1aa5c882e5 +timeCreated: 1611403560 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs new file mode 100644 index 00000000..52833168 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ReqPlayerAutoPlay : Rpc + { + public ReqAutoPlay oArg = new ReqAutoPlay(); + + public RetAutoPlay oRes = new RetAutoPlay(); + + public override uint GetRpcType() + { + return 3718u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ReqPlayerAutoPlay.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ReqPlayerAutoPlay.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs.meta new file mode 100644 index 00000000..0dfef5ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReqPlayerAutoPlay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8943c616e3b146240aa51dadaa84fc8f +timeCreated: 1611404087 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs new file mode 100644 index 00000000..f3792444 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ResWarAllInfoReqOne : Rpc + { + public ResWarArg oArg = new ResWarArg(); + + public ResWarRes oRes = new ResWarRes(); + + public override uint GetRpcType() + { + return 8828u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ResWarAllInfoReqOne.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ResWarAllInfoReqOne.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs.meta new file mode 100644 index 00000000..76df0485 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarAllInfoReqOne.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 842aabc4706f8af4e9f4e2f052be2efc +timeCreated: 1611404047 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs new file mode 100644 index 00000000..28d3356a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ResWarBuff : Rpc + { + public ResWarBuffArg oArg = new ResWarBuffArg(); + + public ResWarBuffRes oRes = null; + + public override uint GetRpcType() + { + return 17670u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ResWarBuff.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ResWarBuff.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs.meta new file mode 100644 index 00000000..69d9cefa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResWarBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6b84e30dfcb8a547bdc4b1e965e545b +timeCreated: 1611404399 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs new file mode 100644 index 00000000..9110e636 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ResetSkill : Rpc + { + public ResetSkillArg oArg = new ResetSkillArg(); + + public ResetSkillRes oRes = new ResetSkillRes(); + + public override uint GetRpcType() + { + return 26941u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ResetSkill.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ResetSkill.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs.meta new file mode 100644 index 00000000..0bac526a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8127ad24758aefa43bb214185a2e5179 +timeCreated: 1611404036 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs new file mode 100644 index 00000000..e97c400d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ResetTower : Rpc + { + public ResetTowerArg oArg = new ResetTowerArg(); + + public ResetTowerRes oRes = new ResetTowerRes(); + + public override uint GetRpcType() + { + return 8570u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ResetTower.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ResetTower.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs.meta new file mode 100644 index 00000000..cd72fa17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ResetTower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 61108c3faadf325489cd45e2922731d6 +timeCreated: 1611403836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs new file mode 100644 index 00000000..a92f5624 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ReturnSmeltStone : Rpc + { + public ReturnSmeltStoneArg oArg = new ReturnSmeltStoneArg(); + + public ReturnSmeltStoneRes oRes = null; + + public override uint GetRpcType() + { + return 16978u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ReturnSmeltStone.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ReturnSmeltStone.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs.meta new file mode 100644 index 00000000..f147672e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ReturnSmeltStone.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e005a6d7b4a1644e94728f02f67e436 +timeCreated: 1611403199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Revive.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Revive.cs new file mode 100644 index 00000000..9446d29d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Revive.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_Revive : Rpc + { + public ReviveArg oArg = new ReviveArg(); + + public ReviveRes oRes = new ReviveRes(); + + public override uint GetRpcType() + { + return 29831u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_Revive.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_Revive.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Revive.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Revive.cs.meta new file mode 100644 index 00000000..2839edc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Revive.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc63933e2a04eb948a34a6bceab3b46d +timeCreated: 1611404935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs new file mode 100644 index 00000000..bd2abba8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_RiftFirstPassReward : Rpc + { + public RiftFirstPassRewardArg oArg = new RiftFirstPassRewardArg(); + + public RiftFirstPassRewardRes oRes = null; + + public override uint GetRpcType() + { + return 63150u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_RiftFirstPassReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_RiftFirstPassReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs.meta new file mode 100644 index 00000000..1463808f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiftFirstPassReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e438be7c7d1c2d44187729e2e159418f +timeCreated: 1611404736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiskBuyRequest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiskBuyRequest.cs new file mode 100644 index 00000000..98623a11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiskBuyRequest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_RiskBuyRequest : Rpc + { + public RiskBuyRequestArg oArg = new RiskBuyRequestArg(); + + public RiskBuyRequestRes oRes = new RiskBuyRequestRes(); + + public override uint GetRpcType() + { + return 42935u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_RiskBuyRequest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_RiskBuyRequest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiskBuyRequest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiskBuyRequest.cs.meta new file mode 100644 index 00000000..c618f721 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_RiskBuyRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1a33f5790357dc4598ceba59a415dea +timeCreated: 1611404490 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs new file mode 100644 index 00000000..8e911f30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SceneMobaOp : Rpc + { + public SceneMobaOpArg oArg = new SceneMobaOpArg(); + + public SceneMobaOpRes oRes = null; + + public override uint GetRpcType() + { + return 32594u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SceneMobaOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SceneMobaOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs.meta new file mode 100644 index 00000000..9f16774d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SceneMobaOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e353147f28219b54d99376ce79b1a546 +timeCreated: 1611404732 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs new file mode 100644 index 00000000..c7c4822f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SelectChargeBackRole : Rpc + { + public SelectChargeBackRoleArg oArg = new SelectChargeBackRoleArg(); + + public SelectChargeBackRoleRes oRes = null; + + public override uint GetRpcType() + { + return 38792u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SelectChargeBackRole.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SelectChargeBackRole.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs.meta new file mode 100644 index 00000000..1af600e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChargeBackRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 588ca2d1fa1b2ef49b3e8fe0b4f32e38 +timeCreated: 1611403755 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChestReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChestReward.cs new file mode 100644 index 00000000..3a784b03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChestReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SelectChestReward : Rpc + { + public SelectChestArg oArg = new SelectChestArg(); + + public SelectChestRes oRes = null; + + public override uint GetRpcType() + { + return 40987u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SelectChestReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SelectChestReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChestReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChestReward.cs.meta new file mode 100644 index 00000000..26d1106e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectChestReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da390c25a59c12f4c8b525d8a05e7ee0 +timeCreated: 1611404647 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectHeroAncientPower.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectHeroAncientPower.cs new file mode 100644 index 00000000..f27eae66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectHeroAncientPower.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SelectHeroAncientPower : Rpc + { + public SelectHeroAncientPowerArg oArg = new SelectHeroAncientPowerArg(); + + public SelectHeroAncientPowerRes oRes = null; + + public override uint GetRpcType() + { + return 7667u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SelectHeroAncientPower.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SelectHeroAncientPower.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectHeroAncientPower.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectHeroAncientPower.cs.meta new file mode 100644 index 00000000..a7767e1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SelectHeroAncientPower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86284b026b9e54849be5d5da89fde0cb +timeCreated: 1611404053 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs new file mode 100644 index 00000000..86a94db6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SendFlower : Rpc + { + public SendFlowerArg oArg = new SendFlowerArg(); + + public SendFlowerRes oRes = new SendFlowerRes(); + + public override uint GetRpcType() + { + return 16310u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SendFlower.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SendFlower.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs.meta new file mode 100644 index 00000000..4399bf21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendFlower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 197441541ca3d9e45aff8832f7e07ff7 +timeCreated: 1611403302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendGuildBonus.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendGuildBonus.cs new file mode 100644 index 00000000..3599bdba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendGuildBonus.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SendGuildBonus : Rpc + { + public SendGuildBonusArg oArg = new SendGuildBonusArg(); + + public SendGuildBonusRes oRes = new SendGuildBonusRes(); + + public override uint GetRpcType() + { + return 61243u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SendGuildBonus.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SendGuildBonus.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendGuildBonus.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendGuildBonus.cs.meta new file mode 100644 index 00000000..cf498432 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SendGuildBonus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2c8575759f174b44b84a051612cee76 +timeCreated: 1611404596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetDesignationReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetDesignationReq.cs new file mode 100644 index 00000000..aeb8d364 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetDesignationReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SetDesignationReq : Rpc + { + public SetDesignationReq oArg = new SetDesignationReq(); + + public SetDesignationRes oRes = new SetDesignationRes(); + + public override uint GetRpcType() + { + return 7673u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SetDesignationReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SetDesignationReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetDesignationReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetDesignationReq.cs.meta new file mode 100644 index 00000000..604124ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetDesignationReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d4b4ef1a3f5cba448f8845d7d35f76f +timeCreated: 1611403195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs new file mode 100644 index 00000000..72f24f42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SetHeroInHeroBattle : Rpc + { + public SetHeroInHeroBattleArg oArg = new SetHeroInHeroBattleArg(); + + public SetHeroInHeroBattleRes oRes = null; + + public override uint GetRpcType() + { + return 18341u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SetHeroInHeroBattle.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SetHeroInHeroBattle.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs.meta new file mode 100644 index 00000000..df4c0991 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetHeroInHeroBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7abb83aaa74b5a64fbe1ff949fee8acd +timeCreated: 1611403990 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs new file mode 100644 index 00000000..313ee4ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SetPreShow : Rpc + { + public SetPreShowArg oArg = new SetPreShowArg(); + + public SetPreShowRes oRes = null; + + public override uint GetRpcType() + { + return 346u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SetPreShow.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SetPreShow.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs.meta new file mode 100644 index 00000000..e4bb6d70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetPreShow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c175903125e91ec4f804cec35b69ade7 +timeCreated: 1611404490 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetRoleConfig.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetRoleConfig.cs new file mode 100644 index 00000000..070a3ba9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetRoleConfig.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SetRoleConfig : Rpc + { + public SetRoleConfigReq oArg = new SetRoleConfigReq(); + + public SetRoleConfigRes oRes = new SetRoleConfigRes(); + + public override uint GetRpcType() + { + return 35306u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SetRoleConfig.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SetRoleConfig.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetRoleConfig.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetRoleConfig.cs.meta new file mode 100644 index 00000000..0d4d7bb1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SetRoleConfig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbd9f9340285a82408390c3abaf53cb9 +timeCreated: 1611404676 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShadowCatOperation.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShadowCatOperation.cs new file mode 100644 index 00000000..0914c7fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShadowCatOperation.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ShadowCatOperation : Rpc + { + public ShadowCatOperationArg oArg = new ShadowCatOperationArg(); + + public ShadowCatOperationRes oRes = null; + + public override uint GetRpcType() + { + return 7140u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ShadowCatOperation.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ShadowCatOperation.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShadowCatOperation.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShadowCatOperation.cs.meta new file mode 100644 index 00000000..94905aff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShadowCatOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: febed848edea85d4b84fb94115060885 +timeCreated: 1611404942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShowFlowerPage.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShowFlowerPage.cs new file mode 100644 index 00000000..efc9fe87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShowFlowerPage.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ShowFlowerPage : Rpc + { + public ShowFlowerPageArg oArg = new ShowFlowerPageArg(); + + public ShowFlowerPageRes oRes = new ShowFlowerPageRes(); + + public override uint GetRpcType() + { + return 47831u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ShowFlowerPage.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ShowFlowerPage.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShowFlowerPage.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShowFlowerPage.cs.meta new file mode 100644 index 00000000..c111bf61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ShowFlowerPage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d452832a5b8e1c41a40fda6b589c77e +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs new file mode 100644 index 00000000..bc174278 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SkillLevelup : Rpc + { + public SkillLevelupArg oArg = new SkillLevelupArg(); + + public SkillLevelupRes oRes = null; + + public override uint GetRpcType() + { + return 63698u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SkillLevelup.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SkillLevelup.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs.meta new file mode 100644 index 00000000..86a21b22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkillLevelup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af95dbc5d3e38f4419bfa4ec2791ed23 +timeCreated: 1611404346 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs new file mode 100644 index 00000000..97399e76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SkyCityAllInfoReq : Rpc + { + public SkyCityArg oArg = new SkyCityArg(); + + public SkyCityRes oRes = new SkyCityRes(); + + public override uint GetRpcType() + { + return 29365u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SkyCityAllInfoReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SkyCityAllInfoReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs.meta new file mode 100644 index 00000000..a836ea4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SkyCityAllInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f826f319cbaba474c9a139f74dda73dc +timeCreated: 1611404891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs new file mode 100644 index 00000000..d6241e5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SmeltItem : Rpc + { + public SmeltItemArg oArg = new SmeltItemArg(); + + public SmeltItemRes oRes = new SmeltItemRes(); + + public override uint GetRpcType() + { + return 10028u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SmeltItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SmeltItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs.meta new file mode 100644 index 00000000..7feeddf6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SmeltItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 753dd5b14700e50428681c95bc4d1f31 +timeCreated: 1611403946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SpriteOperation.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SpriteOperation.cs new file mode 100644 index 00000000..e24154fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SpriteOperation.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SpriteOperation : Rpc + { + public SpriteOperationArg oArg = new SpriteOperationArg(); + + public SpriteOperationRes oRes = new SpriteOperationRes(); + + public override uint GetRpcType() + { + return 62961u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SpriteOperation.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SpriteOperation.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SpriteOperation.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SpriteOperation.cs.meta new file mode 100644 index 00000000..cf9fa26d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SpriteOperation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a542e350461a60946883cc7820047b9a +timeCreated: 1611404285 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StageCountReset.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StageCountReset.cs new file mode 100644 index 00000000..80364518 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StageCountReset.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_StageCountReset : Rpc + { + public StageCountResetArg oArg = new StageCountResetArg(); + + public StageCountResetRes oRes = new StageCountResetRes(); + + public override uint GetRpcType() + { + return 8496u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_StageCountReset.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_StageCountReset.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StageCountReset.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StageCountReset.cs.meta new file mode 100644 index 00000000..06f04d68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StageCountReset.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d5abe3a748b4e246b2084afa7790922 +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StartGuildCard.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StartGuildCard.cs new file mode 100644 index 00000000..fee8f101 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StartGuildCard.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_StartGuildCard : Rpc + { + public StartGuildCardArg oArg = new StartGuildCardArg(); + + public StartGuildCardRes oRes = new StartGuildCardRes(); + + public override uint GetRpcType() + { + return 35743u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_StartGuildCard.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_StartGuildCard.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StartGuildCard.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StartGuildCard.cs.meta new file mode 100644 index 00000000..43dde981 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_StartGuildCard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2367e438769c3e146a1fef8ddc64537e +timeCreated: 1611403453 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SurviveReqC2G.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SurviveReqC2G.cs new file mode 100644 index 00000000..476ba8b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SurviveReqC2G.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SurviveReqC2G : Rpc + { + public SurviveReqArg oArg = new SurviveReqArg(); + + public SurviveReqRes oRes = null; + + public override uint GetRpcType() + { + return 19408u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SurviveReqC2G.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SurviveReqC2G.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SurviveReqC2G.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SurviveReqC2G.cs.meta new file mode 100644 index 00000000..be84ded0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SurviveReqC2G.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3bbae5578bc8ad47a63fee9ba43e4de +timeCreated: 1611404390 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs new file mode 100644 index 00000000..ed6e245f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_Sweep : Rpc + { + public SweepArg oArg = new SweepArg(); + + public SweepRes oRes = new SweepRes(); + + public override uint GetRpcType() + { + return 6019u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_Sweep.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_Sweep.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs.meta new file mode 100644 index 00000000..2a4a68f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_Sweep.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3dee16d8625463469e9dd41cd5c5cdc +timeCreated: 1611404499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs new file mode 100644 index 00000000..50fa6b08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SweepTower : Rpc + { + public SweepTowerArg oArg = new SweepTowerArg(); + + public SweepTowerRes oRes = new SweepTowerRes(); + + public override uint GetRpcType() + { + return 39381u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SweepTower.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SweepTower.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs.meta new file mode 100644 index 00000000..19d1c98b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SweepTower.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6059711963594424e9c52fe4369372b3 +timeCreated: 1611403833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs new file mode 100644 index 00000000..2897ee8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SynPetInfo : Rpc + { + public SynPetInfoArg oArg = new SynPetInfoArg(); + + public SynPetInfoRes oRes = new SynPetInfoRes(); + + public override uint GetRpcType() + { + return 6548u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SynPetInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SynPetInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs.meta new file mode 100644 index 00000000..30a47c40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SynPetInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a19279e26b71a18498306ffb4f8a12de +timeCreated: 1611404254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs new file mode 100644 index 00000000..52432f56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs @@ -0,0 +1,43 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_SyncTime : Rpc + { + public SyncTimeArg oArg = new SyncTimeArg(); + + public SyncTimeRes oRes = new SyncTimeRes(); + + public override uint GetRpcType() + { + return 30514u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes.serverTime = 0L; + this.oRes.serverTimeSpecified = false; + Serializer.Merge(stream, this.oRes); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_SyncTime.Ticks = this.replyTick; + Process_RpcC2G_SyncTime.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_SyncTime.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs.meta new file mode 100644 index 00000000..bb42acbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_SyncTime.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4beeb9918bfe654db5fc5d163adbb50 +timeCreated: 1611404740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TactEnterScene.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TactEnterScene.cs new file mode 100644 index 00000000..54464cbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TactEnterScene.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TactEnterScene : Rpc + { + public TactEnterSceneArg oArg = new TactEnterSceneArg(); + + public TactEnterSceneRes oRes = null; + + public override uint GetRpcType() + { + return 27599u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TactEnterScene.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TactEnterScene.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TactEnterScene.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TactEnterScene.cs.meta new file mode 100644 index 00000000..5d5be52a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TactEnterScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ad38f16c3a577e4c897cf9feb7ec527 +timeCreated: 1611403991 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs new file mode 100644 index 00000000..307acd17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TakeDragonGuildChest : Rpc + { + public TakePartnerChestArg oArg = new TakePartnerChestArg(); + + public TakePartnerChestRes oRes = null; + + public override uint GetRpcType() + { + return 38031u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TakeDragonGuildChest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TakeDragonGuildChest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs.meta new file mode 100644 index 00000000..9b299c88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeDragonGuildChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 728ec3ea327fa6b41b02fc6d2b98a6a1 +timeCreated: 1611403938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJade.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJade.cs new file mode 100644 index 00000000..22e4c6e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJade.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TakeOffAllJade : Rpc + { + public TakeOffAllJadeArg oArg = new TakeOffAllJadeArg(); + + public TakeOffAllJadeRes oRes = new TakeOffAllJadeRes(); + + public override uint GetRpcType() + { + return 21793u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TakeOffAllJade.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TakeOffAllJade.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJade.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJade.cs.meta new file mode 100644 index 00000000..b2b11367 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c18888219f510340973de4130d8c2d4 +timeCreated: 1611403342 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs new file mode 100644 index 00000000..6f49338a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TakeOffAllJadeNew : Rpc + { + public TakeOffAllJadeNewArg oArg = new TakeOffAllJadeNewArg(); + + public TakeOffAllJadeNewRes oRes = null; + + public override uint GetRpcType() + { + return 33760u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TakeOffAllJadeNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TakeOffAllJadeNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs.meta new file mode 100644 index 00000000..678a8c06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakeOffAllJadeNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2214cea7035b88478cbdfa825b36a24 +timeCreated: 1611404594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakePartnerChest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakePartnerChest.cs new file mode 100644 index 00000000..55b797ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakePartnerChest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TakePartnerChest : Rpc + { + public TakePartnerChestArg oArg = new TakePartnerChestArg(); + + public TakePartnerChestRes oRes = null; + + public override uint GetRpcType() + { + return 42982u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TakePartnerChest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TakePartnerChest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakePartnerChest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakePartnerChest.cs.meta new file mode 100644 index 00000000..8f6f5ad3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TakePartnerChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34cf1c6951faaaf4eb39752356ed07c8 +timeCreated: 1611403556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs new file mode 100644 index 00000000..baca095c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TaskOperate : Rpc + { + public TaskOPArg oArg = new TaskOPArg(); + + public TaskOPRes oRes = null; + + public override uint GetRpcType() + { + return 20029u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TaskOperate.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TaskOperate.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs.meta new file mode 100644 index 00000000..bb3437d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TaskOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c38a68d07877dcb459b6a4e6201adc0c +timeCreated: 1611404498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TeamInviteListReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TeamInviteListReq.cs new file mode 100644 index 00000000..b2fa6c69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TeamInviteListReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TeamInviteListReq : Rpc + { + public TeamInviteArg oArg = new TeamInviteArg(); + + public TeamInviteRes oRes = new TeamInviteRes(); + + public override uint GetRpcType() + { + return 11403u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TeamInviteListReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TeamInviteListReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TeamInviteListReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TeamInviteListReq.cs.meta new file mode 100644 index 00000000..ff9058be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TeamInviteListReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c7c9a4edbb3ee34995c67f7b12699e1 +timeCreated: 1611403344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThanksForBonus.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThanksForBonus.cs new file mode 100644 index 00000000..92830294 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThanksForBonus.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ThanksForBonus : Rpc + { + public ThanksForBonusArg oArg = new ThanksForBonusArg(); + + public ThanksForBonusRes oRes = new ThanksForBonusRes(); + + public override uint GetRpcType() + { + return 42614u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ThanksForBonus.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ThanksForBonus.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThanksForBonus.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThanksForBonus.cs.meta new file mode 100644 index 00000000..560bd49e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThanksForBonus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8356586ddfb90d44abef905bf5870f3f +timeCreated: 1611404044 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThemeActivityHint.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThemeActivityHint.cs new file mode 100644 index 00000000..45629b36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThemeActivityHint.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_ThemeActivityHint : Rpc + { + public ThemeActivityHintArg oArg = new ThemeActivityHintArg(); + + public ThemeActivityHintRes oRes = null; + + public override uint GetRpcType() + { + return 39987u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_ThemeActivityHint.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_ThemeActivityHint.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThemeActivityHint.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThemeActivityHint.cs.meta new file mode 100644 index 00000000..854a8af7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_ThemeActivityHint.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 662b5e3ab6fe93748b61c903a733d101 +timeCreated: 1611403853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs new file mode 100644 index 00000000..6a2e1aa7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TitleLevelUp : Rpc + { + public TitleLevelUpArg oArg = new TitleLevelUpArg(); + + public TitleLevelUpRes oRes = new TitleLevelUpRes(); + + public override uint GetRpcType() + { + return 24381u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TitleLevelUp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TitleLevelUp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs.meta new file mode 100644 index 00000000..5bf8317f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TitleLevelUp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1180d9d93daea7145805fa3f47ab3364 +timeCreated: 1611403239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs new file mode 100644 index 00000000..171119e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TransformOp : Rpc + { + public TransformOpArg oArg = new TransformOpArg(); + + public TransformOpRes oRes = null; + + public override uint GetRpcType() + { + return 7373u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TransformOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TransformOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs.meta new file mode 100644 index 00000000..b2d98e15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TransformOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e48e291351a735d49abee7455fd2c303 +timeCreated: 1611404738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TurnOverWeeklyTaskItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TurnOverWeeklyTaskItem.cs new file mode 100644 index 00000000..c8b52b90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TurnOverWeeklyTaskItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_TurnOverWeeklyTaskItem : Rpc + { + public TurnOverWeeklyTaskItemArg oArg = new TurnOverWeeklyTaskItemArg(); + + public TurnOverWeeklyTaskItemRes oRes = null; + + public override uint GetRpcType() + { + return 19937u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_TurnOverWeeklyTaskItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_TurnOverWeeklyTaskItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TurnOverWeeklyTaskItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TurnOverWeeklyTaskItem.cs.meta new file mode 100644 index 00000000..ccfb7145 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_TurnOverWeeklyTaskItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ad2476d7dfbde84184ce965d3838cf5 +timeCreated: 1611403597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs new file mode 100644 index 00000000..7dee845f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_UpgradeEquip : Rpc + { + public UpgradeEquipArg oArg = new UpgradeEquipArg(); + + public UpgradeEquipRes oRes = null; + + public override uint GetRpcType() + { + return 32424u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_UpgradeEquip.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_UpgradeEquip.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs.meta new file mode 100644 index 00000000..24a72002 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UpgradeEquip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 328e196e064165b4da66d5c4cf45ad42 +timeCreated: 1611403549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseItem.cs new file mode 100644 index 00000000..251dfeaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_UseItem : Rpc + { + public UseItemArg oArg = new UseItemArg(); + + public UseItemRes oRes = new UseItemRes(); + + public override uint GetRpcType() + { + return 64132u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_UseItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_UseItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseItem.cs.meta new file mode 100644 index 00000000..aaf63760 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5f5ad69c696c4241ab42375b9c44a73 +timeCreated: 1611404879 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseSupplement.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseSupplement.cs new file mode 100644 index 00000000..bc9cb012 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseSupplement.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_UseSupplement : Rpc + { + public UseSupplementReq oArg = new UseSupplementReq(); + + public UseSupplementRes oRes = new UseSupplementRes(); + + public override uint GetRpcType() + { + return 20068u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_UseSupplement.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_UseSupplement.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseSupplement.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseSupplement.cs.meta new file mode 100644 index 00000000..a2d3da6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_UseSupplement.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 447b830d4c9837f44a2a600d209d244c +timeCreated: 1611403645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_VsPayReviveReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_VsPayReviveReq.cs new file mode 100644 index 00000000..1c424efd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_VsPayReviveReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_VsPayReviveReq : Rpc + { + public VsPayRevivePara oArg = new VsPayRevivePara(); + + public VsPayReviveRes oRes = null; + + public override uint GetRpcType() + { + return 54530u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_VsPayReviveReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_VsPayReviveReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_VsPayReviveReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_VsPayReviveReq.cs.meta new file mode 100644 index 00000000..32ef897c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_VsPayReviveReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9bc2d89841f2af944b9164f4e2b6d63f +timeCreated: 1611404207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeddingOperator.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeddingOperator.cs new file mode 100644 index 00000000..2a84d248 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeddingOperator.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_WeddingOperator : Rpc + { + public WeddingOperatorArg oArg = new WeddingOperatorArg(); + + public WeddingOperatorRes oRes = null; + + public override uint GetRpcType() + { + return 38050u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_WeddingOperator.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_WeddingOperator.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeddingOperator.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeddingOperator.cs.meta new file mode 100644 index 00000000..34787764 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeddingOperator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12e04e01157275f499815bf3e878d1e3 +timeCreated: 1611403244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs new file mode 100644 index 00000000..e4f36634 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_WeekEnd4v4GetInfo : Rpc + { + public WeekEnd4v4GetInfoArg oArg = new WeekEnd4v4GetInfoArg(); + + public WeekEnd4v4GetInfoRes oRes = null; + + public override uint GetRpcType() + { + return 59573u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_WeekEnd4v4GetInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_WeekEnd4v4GetInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs.meta new file mode 100644 index 00000000..249aadbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_WeekEnd4v4GetInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c3fd3b25aaa7164d9ce02841753c5d2 +timeCreated: 1611403801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs new file mode 100644 index 00000000..091a1971 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2G_breakAtlas : Rpc + { + public breakAtlas oArg = new breakAtlas(); + + public breakAtlasRes oRes = new breakAtlasRes(); + + public override uint GetRpcType() + { + return 13728u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2G_breakAtlas.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2G_breakAtlas.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs.meta new file mode 100644 index 00000000..e0ce4040 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2G_breakAtlas.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69de91695374f16498b92db9c7dc051f +timeCreated: 1611403887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs new file mode 100644 index 00000000..7cddc3e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2I_QueryGateIP : Rpc + { + public QueryGateArg oArg = new QueryGateArg(); + + public QueryGateRes oRes = new QueryGateRes(); + + public override uint GetRpcType() + { + return 9179u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2I_QueryGateIP.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2I_QueryGateIP.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs.meta new file mode 100644 index 00000000..f3f2b5b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2I_QueryGateIP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e6bde000e12b514ab3fa023bf087845 +timeCreated: 1611403362 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AceptGuildInherit.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AceptGuildInherit.cs new file mode 100644 index 00000000..2d3944f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AceptGuildInherit.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AceptGuildInherit : Rpc + { + public AceptGuildInheritArg oArg = new AceptGuildInheritArg(); + + public AceptGuildInheritRes oRes = null; + + public override uint GetRpcType() + { + return 35235u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AceptGuildInherit.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AceptGuildInherit.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AceptGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AceptGuildInherit.cs.meta new file mode 100644 index 00000000..6399f71c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AceptGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8e16931205b3e746862853d4f65e150 +timeCreated: 1611404896 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ActiveCookbook.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ActiveCookbook.cs new file mode 100644 index 00000000..6e676a13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ActiveCookbook.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ActiveCookbook : Rpc + { + public ActiveCookbookArg oArg = new ActiveCookbookArg(); + + public ActiveCookbookRes oRes = null; + + public override uint GetRpcType() + { + return 31076u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ActiveCookbook.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ActiveCookbook.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ActiveCookbook.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ActiveCookbook.cs.meta new file mode 100644 index 00000000..5bf78a8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ActiveCookbook.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62cadec38aa1d1446951dbebccdc0f19 +timeCreated: 1611403842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddBlackListNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddBlackListNew.cs new file mode 100644 index 00000000..fc2283e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddBlackListNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AddBlackListNew : Rpc + { + public AddBlackListArg oArg = new AddBlackListArg(); + + public AddBlackListRes oRes = null; + + public override uint GetRpcType() + { + return 265u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AddBlackListNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AddBlackListNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddBlackListNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddBlackListNew.cs.meta new file mode 100644 index 00000000..c9589a6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddBlackListNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73c36072f15446a4c8b79fe903aafb55 +timeCreated: 1611403941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs new file mode 100644 index 00000000..2611dd7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AddFriendNew : Rpc + { + public AddFriendArg oArg = new AddFriendArg(); + + public AddFriendRes oRes = null; + + public override uint GetRpcType() + { + return 5634u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AddFriendNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AddFriendNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs.meta new file mode 100644 index 00000000..635bb654 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddFriendNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f39f3f2cb953e184f8941c34cd232662 +timeCreated: 1611404849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddGuildInherit.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddGuildInherit.cs new file mode 100644 index 00000000..a712b30e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddGuildInherit.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AddGuildInherit : Rpc + { + public AddGuildInheritArg oArg = new AddGuildInheritArg(); + + public AddGuildInheritRes oRes = null; + + public override uint GetRpcType() + { + return 15845u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AddGuildInherit.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AddGuildInherit.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddGuildInherit.cs.meta new file mode 100644 index 00000000..71fb46c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AddGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e5e7d6c100885ee4aa23d9c2f0a0f822 +timeCreated: 1611404744 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs new file mode 100644 index 00000000..e4dd1a59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AdjustGuildArenaRolePosNew : Rpc + { + public AdjustGuildArenaRolePosArg oArg = new AdjustGuildArenaRolePosArg(); + + public AdjustGuildArenaRolePosRes oRes = null; + + public override uint GetRpcType() + { + return 57124u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AdjustGuildArenaRolePosNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AdjustGuildArenaRolePosNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs.meta new file mode 100644 index 00000000..8dc8a880 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AdjustGuildArenaRolePosNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d3cf98dbc35b82459dcf6997c5ecca8 +timeCreated: 1611404000 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs new file mode 100644 index 00000000..003672b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AllianceGuildTerr : Rpc + { + public AllianceGuildTerrArg oArg = new AllianceGuildTerrArg(); + + public AllianceGuildTerrRes oRes = null; + + public override uint GetRpcType() + { + return 10041u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AllianceGuildTerr.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AllianceGuildTerr.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs.meta new file mode 100644 index 00000000..f9a72de9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AllianceGuildTerr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15746cba9504af445be5bff0994ccb52 +timeCreated: 1611403263 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs new file mode 100644 index 00000000..b50d830d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ArenaStarRoleReq : Rpc + { + public ArenaStarReqArg oArg = new ArenaStarReqArg(); + + public ArenaStarReqRes oRes = null; + + public override uint GetRpcType() + { + return 53598u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ArenaStarRoleReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ArenaStarRoleReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs.meta new file mode 100644 index 00000000..8cdafbf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ArenaStarRoleReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5ce9c291c522044b90e74992d2c78c2 +timeCreated: 1611404628 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskDragonGuildMembers.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskDragonGuildMembers.cs new file mode 100644 index 00000000..20ae2c10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskDragonGuildMembers.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AskDragonGuildMembers : Rpc + { + public DragonGuildMemberArg oArg = new DragonGuildMemberArg(); + + public DragonGuildMemberRes oRes = null; + + public override uint GetRpcType() + { + return 26644u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AskDragonGuildMembers.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AskDragonGuildMembers.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskDragonGuildMembers.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskDragonGuildMembers.cs.meta new file mode 100644 index 00000000..d23ff32a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskDragonGuildMembers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f10f1f61acbcc74fb5fc8f77ab1d1ef +timeCreated: 1611403400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs new file mode 100644 index 00000000..c329ea80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AskGuildArenaInfoNew : Rpc + { + public AskGuildArenaInfoArg oArg = new AskGuildArenaInfoArg(); + + public AskGuildArenaInfoReq oRes = null; + + public override uint GetRpcType() + { + return 24504u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AskGuildArenaInfoNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AskGuildArenaInfoNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs.meta new file mode 100644 index 00000000..7c8f5d01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaInfoNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa731f7169d74954ba0a9c0a6f591c27 +timeCreated: 1611404903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs new file mode 100644 index 00000000..827b0b63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AskGuildArenaTeamInfoNew : Rpc + { + public AskGuildArenaTeamInfoArg oArg = new AskGuildArenaTeamInfoArg(); + + public AskGuildArenaTeamInfoRes oRes = null; + + public override uint GetRpcType() + { + return 2181u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AskGuildArenaTeamInfoNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AskGuildArenaTeamInfoNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs.meta new file mode 100644 index 00000000..7a0fa047 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildArenaTeamInfoNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e96979936d5cd045b55a0df04797934 +timeCreated: 1611403364 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs new file mode 100644 index 00000000..fef842d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AskGuildBriefInfo : Rpc + { + public GuildBriefArg oArg = new GuildBriefArg(); + + public GuildBriefRes oRes = null; + + public override uint GetRpcType() + { + return 53355u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AskGuildBriefInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AskGuildBriefInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs.meta new file mode 100644 index 00000000..b85689c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildBriefInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c135da54ba67b4144a749292f919af65 +timeCreated: 1611404489 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildMembers.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildMembers.cs new file mode 100644 index 00000000..c5fb8e2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildMembers.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AskGuildMembers : Rpc + { + public GuildMemberArg oArg = new GuildMemberArg(); + + public GuildMemberRes oRes = null; + + public override uint GetRpcType() + { + return 57958u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AskGuildMembers.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AskGuildMembers.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildMembers.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildMembers.cs.meta new file mode 100644 index 00000000..3ba52ff6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildMembers.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7026f84e992be3b4e9ef9b7fbd399a2c +timeCreated: 1611403930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs new file mode 100644 index 00000000..0d4cf4d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AskGuildSkillInfoNew : Rpc + { + public AskGuildSkillInfoArg oArg = new AskGuildSkillInfoArg(); + + public AskGuildSkillInfoReq oRes = null; + + public override uint GetRpcType() + { + return 35479u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AskGuildSkillInfoNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AskGuildSkillInfoNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs.meta new file mode 100644 index 00000000..22f6f68b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildSkillInfoNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d7ed6f9e78a2f284aa2488e13ad533fe +timeCreated: 1611404637 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs new file mode 100644 index 00000000..6170a9c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AskGuildWageInfo : Rpc + { + public AskGuildWageInfoArg oArg = new AskGuildWageInfoArg(); + + public AskGuildWageInfoRes oRes = null; + + public override uint GetRpcType() + { + return 17779u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AskGuildWageInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AskGuildWageInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs.meta new file mode 100644 index 00000000..303187d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AskGuildWageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af8b1cfa56460274eacad0f6e7569bb8 +timeCreated: 1611404345 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AuctionAllReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AuctionAllReq.cs new file mode 100644 index 00000000..703b5ba2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AuctionAllReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_AuctionAllReq : Rpc + { + public AuctionAllReqArg oArg = new AuctionAllReqArg(); + + public AuctionAllReqRes oRes = null; + + public override uint GetRpcType() + { + return 38875u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_AuctionAllReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_AuctionAllReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AuctionAllReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AuctionAllReq.cs.meta new file mode 100644 index 00000000..a3ea1c9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_AuctionAllReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8aab33ff6d3b56240a297e8b5b6603c6 +timeCreated: 1611404092 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyDragonGuildShopItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyDragonGuildShopItem.cs new file mode 100644 index 00000000..7eb96225 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyDragonGuildShopItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_BuyDragonGuildShopItem : Rpc + { + public BuyDragonGuildShopItemArg oArg = new BuyDragonGuildShopItemArg(); + + public BuyDragonGuildShopItemRes oRes = null; + + public override uint GetRpcType() + { + return 24893u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_BuyDragonGuildShopItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_BuyDragonGuildShopItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyDragonGuildShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyDragonGuildShopItem.cs.meta new file mode 100644 index 00000000..900c595a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyDragonGuildShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 220544b47797b824ba26dbfb91857463 +timeCreated: 1611403417 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs new file mode 100644 index 00000000..0d0c3a4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_BuyPartnerShopItem : Rpc + { + public BuyPartnerShopItemArg oArg = new BuyPartnerShopItemArg(); + + public BuyPartnerShopItemRes oRes = null; + + public override uint GetRpcType() + { + return 14493u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_BuyPartnerShopItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_BuyPartnerShopItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs.meta new file mode 100644 index 00000000..3566ae6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_BuyPartnerShopItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f6098418135f524a9dcb0ef1acfa673 +timeCreated: 1611403402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CancelLeavePartner.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CancelLeavePartner.cs new file mode 100644 index 00000000..c8717c60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CancelLeavePartner.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_CancelLeavePartner : Rpc + { + public CancelLeavePartnerArg oArg = new CancelLeavePartnerArg(); + + public CancelLeavePartnerRes oRes = null; + + public override uint GetRpcType() + { + return 27794u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_CancelLeavePartner.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_CancelLeavePartner.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CancelLeavePartner.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CancelLeavePartner.cs.meta new file mode 100644 index 00000000..957f8a7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CancelLeavePartner.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 058bcba8176e5ce4ab94a97cc21e7b1c +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildPosition.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildPosition.cs new file mode 100644 index 00000000..788f714b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildPosition.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ChangeDragonGuildPosition : Rpc + { + public ChangeDragonGuildPositionArg oArg = new ChangeDragonGuildPositionArg(); + + public ChangeDragonGuildPositionRes oRes = null; + + public override uint GetRpcType() + { + return 3888u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ChangeDragonGuildPosition.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ChangeDragonGuildPosition.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildPosition.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildPosition.cs.meta new file mode 100644 index 00000000..6b5e8116 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a070521ca35791945b5282da5b1b1af3 +timeCreated: 1611404249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildSetting.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildSetting.cs new file mode 100644 index 00000000..2a6ec7bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildSetting.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ChangeDragonGuildSetting : Rpc + { + public ChangeDragonGuildSettingArg oArg = new ChangeDragonGuildSettingArg(); + + public ChangeDragonGuildSettingRes oRes = null; + + public override uint GetRpcType() + { + return 52505u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ChangeDragonGuildSetting.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ChangeDragonGuildSetting.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildSetting.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildSetting.cs.meta new file mode 100644 index 00000000..9723e8ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeDragonGuildSetting.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5eb8e31919bbb234d85bf59fca344b4a +timeCreated: 1611403810 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeGuildSettingNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeGuildSettingNew.cs new file mode 100644 index 00000000..32f6391a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeGuildSettingNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ChangeGuildSettingNew : Rpc + { + public ChangeGuildSettingArg oArg = new ChangeGuildSettingArg(); + + public ChangeGuildSettingRes oRes = null; + + public override uint GetRpcType() + { + return 55897u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ChangeGuildSettingNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ChangeGuildSettingNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeGuildSettingNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeGuildSettingNew.cs.meta new file mode 100644 index 00000000..bd5e23d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeGuildSettingNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e04289925c1ba6d4196b77ae3369a67c +timeCreated: 1611404697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeMemberPositionNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeMemberPositionNew.cs new file mode 100644 index 00000000..d295dfb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeMemberPositionNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ChangeMemberPositionNew : Rpc + { + public ChangeGuildPositionArg oArg = new ChangeGuildPositionArg(); + + public ChangeGuildPositionRes oRes = null; + + public override uint GetRpcType() + { + return 13625u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ChangeMemberPositionNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ChangeMemberPositionNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeMemberPositionNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeMemberPositionNew.cs.meta new file mode 100644 index 00000000..39f408e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeMemberPositionNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a96c673f27c24d4ebd767be11338d71 +timeCreated: 1611403164 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeNameNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeNameNew.cs new file mode 100644 index 00000000..d6ae5125 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeNameNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ChangeNameNew : Rpc + { + public ChangeNameArg oArg = new ChangeNameArg(); + + public ChangeNameRes oRes = null; + + public override uint GetRpcType() + { + return 46227u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ChangeNameNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ChangeNameNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeNameNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeNameNew.cs.meta new file mode 100644 index 00000000..b4b22d2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ChangeNameNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea26d648ae5e3fb41b2b42971556c4d5 +timeCreated: 1611404777 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs new file mode 100644 index 00000000..53698b1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_CheckRoleBeforePay : Rpc + { + public CheckRoleBeforePayArg oArg = new CheckRoleBeforePayArg(); + + public CheckRoleBeforePayRes oRes = null; + + public override uint GetRpcType() + { + return 56255u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_CheckRoleBeforePay.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_CheckRoleBeforePay.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs.meta new file mode 100644 index 00000000..49587760 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CheckRoleBeforePay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: faae0a00c0be8e646aa5f5912d08fefc +timeCreated: 1611404904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearGuildTerrAlliance.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearGuildTerrAlliance.cs new file mode 100644 index 00000000..2271bd46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearGuildTerrAlliance.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ClearGuildTerrAlliance : Rpc + { + public ClearGuildTerrAllianceArg oArg = new ClearGuildTerrAllianceArg(); + + public ClearGuildTerrAllianceRes oRes = null; + + public override uint GetRpcType() + { + return 38312u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ClearGuildTerrAlliance.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ClearGuildTerrAlliance.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearGuildTerrAlliance.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearGuildTerrAlliance.cs.meta new file mode 100644 index 00000000..356a4152 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearGuildTerrAlliance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dcc91d4660d55b44389c33c852c2d8a5 +timeCreated: 1611404679 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs new file mode 100644 index 00000000..a2778e3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ClearPrivateChatList : Rpc + { + public ClearPrivateChatListArg oArg = new ClearPrivateChatListArg(); + + public ClearPrivateChatListRes oRes = null; + + public override uint GetRpcType() + { + return 27304u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ClearPrivateChatList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ClearPrivateChatList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs.meta new file mode 100644 index 00000000..4e4d4766 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClearPrivateChatList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48a02c1d4837584469fc4f1a4eae500a +timeCreated: 1611403658 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClickNewNotice.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClickNewNotice.cs new file mode 100644 index 00000000..b6eb395a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClickNewNotice.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ClickNewNotice : Rpc + { + public ClickNewNoticeArg oArg = new ClickNewNoticeArg(); + + public ClickNewNoticeRes oRes = null; + + public override uint GetRpcType() + { + return 50366u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ClickNewNotice.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ClickNewNotice.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClickNewNotice.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClickNewNotice.cs.meta new file mode 100644 index 00000000..3e046ac1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClickNewNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 161f9e26a2de3ae43b03133fa104d08d +timeCreated: 1611403268 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClientQueryRankListNtf.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClientQueryRankListNtf.cs new file mode 100644 index 00000000..ba2b056c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClientQueryRankListNtf.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ClientQueryRankListNtf : Rpc + { + public ClientQueryRankListArg oArg = new ClientQueryRankListArg(); + + public ClientQueryRankListRes oRes; + + public override uint GetRpcType() + { + return 39913u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ClientQueryRankListNtf.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ClientQueryRankListNtf.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClientQueryRankListNtf.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClientQueryRankListNtf.cs.meta new file mode 100644 index 00000000..dff86917 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ClientQueryRankListNtf.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7310b0903dfdbd948b95cdb002eada63 +timeCreated: 1611403939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs new file mode 100644 index 00000000..738974bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_CreateOrEnterGuild : Rpc + { + public CreateOrJoinGuild oArg = new CreateOrJoinGuild(); + + public CreateOrJoinGuildRes oRes = null; + + public override uint GetRpcType() + { + return 13871u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_CreateOrEnterGuild.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_CreateOrEnterGuild.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs.meta new file mode 100644 index 00000000..91fe8360 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrEnterGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fc3163318ac23d498b9995ad50c4dbb +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrJoinDragonGuild.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrJoinDragonGuild.cs new file mode 100644 index 00000000..c6e7bbc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrJoinDragonGuild.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_CreateOrJoinDragonGuild : Rpc + { + public CreateOrJoinDragonGuildArg oArg = new CreateOrJoinDragonGuildArg(); + + public CreateOrJoinDragonGuildRes oRes = null; + + public override uint GetRpcType() + { + return 8623u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_CreateOrJoinDragonGuild.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_CreateOrJoinDragonGuild.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrJoinDragonGuild.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrJoinDragonGuild.cs.meta new file mode 100644 index 00000000..c927357e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateOrJoinDragonGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0f528d8033177f47a5ee9f4a560069c +timeCreated: 1611404354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateRoleNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateRoleNew.cs new file mode 100644 index 00000000..c882a3bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateRoleNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_CreateRoleNew : Rpc + { + public CreateRoleNewArg oArg = new CreateRoleNewArg(); + + public CreateRoleNewRes oRes = null; + + public override uint GetRpcType() + { + return 13034u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_CreateRoleNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_CreateRoleNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateRoleNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateRoleNew.cs.meta new file mode 100644 index 00000000..fa489fc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CreateRoleNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1b1835c69a18ae46bdde4515e1afe22 +timeCreated: 1611404491 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs new file mode 100644 index 00000000..97683d68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_CrossGvgOper : Rpc + { + public CrossGvgOperArg oArg = new CrossGvgOperArg(); + + public CrossGvgOperRes oRes = null; + + public override uint GetRpcType() + { + return 46062u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_CrossGvgOper.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_CrossGvgOper.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs.meta new file mode 100644 index 00000000..26eb3687 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CrossGvgOper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 189a9f47fd2cd7f41bd761e0d18ef07e +timeCreated: 1611403298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CustomBattleOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CustomBattleOp.cs new file mode 100644 index 00000000..eb001faf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CustomBattleOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_CustomBattleOp : Rpc + { + public CustomBattleOpArg oArg = new CustomBattleOpArg(); + + public CustomBattleOpRes oRes = null; + + public override uint GetRpcType() + { + return 12314u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_CustomBattleOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_CustomBattleOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CustomBattleOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CustomBattleOp.cs.meta new file mode 100644 index 00000000..1b23d696 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_CustomBattleOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d043cdc0a87757f4cb7205750238af10 +timeCreated: 1611404586 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs new file mode 100644 index 00000000..a148372b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DERankReq : Rpc + { + public DERankArg oArg = new DERankArg(); + + public DERankRes oRes = null; + + public override uint GetRpcType() + { + return 16406u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DERankReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DERankReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs.meta new file mode 100644 index 00000000..41b011f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DERankReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4944aff56abac44fbca6ac6f9bbad67 +timeCreated: 1611404738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs new file mode 100644 index 00000000..c54d17f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DailyTaskRefreshOper : Rpc + { + public DailyTaskRefreshOperArg oArg = new DailyTaskRefreshOperArg(); + + public DailyTaskRefreshOperRes oRes = null; + + public override uint GetRpcType() + { + return 31675u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DailyTaskRefreshOper.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DailyTaskRefreshOper.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs.meta new file mode 100644 index 00000000..ac05ad23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DailyTaskRefreshOper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f57b78a48e582cd45b34d665cdf4e8f1 +timeCreated: 1611404876 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DelGuildInherit.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DelGuildInherit.cs new file mode 100644 index 00000000..d6705853 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DelGuildInherit.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DelGuildInherit : Rpc + { + public DelGuildInheritArg oArg = new DelGuildInheritArg(); + + public DelGuildInheritRes oRes = null; + + public override uint GetRpcType() + { + return 3671u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DelGuildInherit.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DelGuildInherit.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DelGuildInherit.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DelGuildInherit.cs.meta new file mode 100644 index 00000000..0738d166 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DelGuildInherit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cabadd3a24475284180626c609c85823 +timeCreated: 1611404543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DoAddFriendNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DoAddFriendNew.cs new file mode 100644 index 00000000..ef4afdc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DoAddFriendNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DoAddFriendNew : Rpc + { + public DoAddFriendArg oArg = new DoAddFriendArg(); + + public DoAddFriendRes oRes = null; + + public override uint GetRpcType() + { + return 23397u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DoAddFriendNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DoAddFriendNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DoAddFriendNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DoAddFriendNew.cs.meta new file mode 100644 index 00000000..b2efbe84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DoAddFriendNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00bfdd5114e636944aa534f78d355a66 +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DonateMemberItem.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DonateMemberItem.cs new file mode 100644 index 00000000..373d6880 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DonateMemberItem.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DonateMemberItem : Rpc + { + public DonateMemberItemArg oArg = new DonateMemberItemArg(); + + public DonateMemberItemRes oRes = null; + + public override uint GetRpcType() + { + return 4241u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DonateMemberItem.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DonateMemberItem.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DonateMemberItem.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DonateMemberItem.cs.meta new file mode 100644 index 00000000..96da39f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DonateMemberItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c7699c685bda5a4b8e7c20fed0d8d46 +timeCreated: 1611404099 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildApproval.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildApproval.cs new file mode 100644 index 00000000..dd1cb619 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildApproval.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DragonGuildApproval : Rpc + { + public DragonGuildApprovalArg oArg = new DragonGuildApprovalArg(); + + public DragonGuildApprovalRes oRes = null; + + public override uint GetRpcType() + { + return 4753u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DragonGuildApproval.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DragonGuildApproval.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildApproval.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildApproval.cs.meta new file mode 100644 index 00000000..a439f5b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildApproval.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3cff85886bb5cac4fb5e87feca1a9a75 +timeCreated: 1611403603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildBindGroupReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildBindGroupReq.cs new file mode 100644 index 00000000..a34bda3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildBindGroupReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DragonGuildBindGroupReq : Rpc + { + public DragonGuildBindReq oArg = new DragonGuildBindReq(); + + public DragonGuildBindRes oRes = null; + + public override uint GetRpcType() + { + return 34774u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DragonGuildBindGroupReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DragonGuildBindGroupReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildBindGroupReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildBindGroupReq.cs.meta new file mode 100644 index 00000000..4d828e06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildBindGroupReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47a16720fbd0cc1418e1202366818e79 +timeCreated: 1611403654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildJoinBindGroup.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildJoinBindGroup.cs new file mode 100644 index 00000000..77c388c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildJoinBindGroup.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DragonGuildJoinBindGroup : Rpc + { + public DragonGuildJoinBindGroupArg oArg = new DragonGuildJoinBindGroupArg(); + + public DragonGuildJoinBindGroupRes oRes = null; + + public override uint GetRpcType() + { + return 33949u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DragonGuildJoinBindGroup.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DragonGuildJoinBindGroup.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildJoinBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildJoinBindGroup.cs.meta new file mode 100644 index 00000000..4b263d39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildJoinBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7975c36ca9bcd15408a1df30ae983b4f +timeCreated: 1611403985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildUnBindGroup.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildUnBindGroup.cs new file mode 100644 index 00000000..31047fef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildUnBindGroup.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_DragonGuildUnBindGroup : Rpc + { + public DragonGuildUnBindGroupArg oArg = new DragonGuildUnBindGroupArg(); + + public DragonGuildUnBindGroupRes oRes = null; + + public override uint GetRpcType() + { + return 56553u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_DragonGuildUnBindGroup.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_DragonGuildUnBindGroup.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildUnBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildUnBindGroup.cs.meta new file mode 100644 index 00000000..1bac5222 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_DragonGuildUnBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 479a434f4e2718b4b82f2c362c850912 +timeCreated: 1611403654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs new file mode 100644 index 00000000..27881a8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_EnterBMReadyScene : Rpc + { + public EnterBMReadySceneArg oArg = new EnterBMReadySceneArg(); + + public EnterBMReadySceneRes oRes = null; + + public override uint GetRpcType() + { + return 24371u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_EnterBMReadyScene.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_EnterBMReadyScene.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs.meta new file mode 100644 index 00000000..5e2f8ef6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBMReadyScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73c4a426fe9d6b64987a53752421bce6 +timeCreated: 1611403941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBattleReadyScene.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBattleReadyScene.cs new file mode 100644 index 00000000..0f510f22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBattleReadyScene.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_EnterBattleReadyScene : Rpc + { + public EnterBattleReadySceneArg oArg = new EnterBattleReadySceneArg(); + + public EnterBattleReadySceneRes oRes = null; + + public override uint GetRpcType() + { + return 55233u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_EnterBattleReadyScene.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_EnterBattleReadyScene.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBattleReadyScene.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBattleReadyScene.cs.meta new file mode 100644 index 00000000..3a860666 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterBattleReadyScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d8caf2a0a1cd5a46ac57a2eeeb73dc0 +timeCreated: 1611403806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterWeddingScene.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterWeddingScene.cs new file mode 100644 index 00000000..9d21e55a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterWeddingScene.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_EnterWeddingScene : Rpc + { + public EnterWeddingSceneArg oArg = new EnterWeddingSceneArg(); + + public EnterWeddingSceneRes oRes = null; + + public override uint GetRpcType() + { + return 30316u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_EnterWeddingScene.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_EnterWeddingScene.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterWeddingScene.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterWeddingScene.cs.meta new file mode 100644 index 00000000..22fef84e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_EnterWeddingScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 823af46d66b1e87478051ceaf89d462d +timeCreated: 1611404039 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs new file mode 100644 index 00000000..16e95435 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FetchDGApps : Rpc + { + public FetchDGAppArg oArg = new FetchDGAppArg(); + + public FetchDGAppRes oRes = null; + + public override uint GetRpcType() + { + return 48732u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FetchDGApps.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FetchDGApps.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs.meta new file mode 100644 index 00000000..d3582984 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDGApps.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 545b5c21b435e7c4690784084fad3fd6 +timeCreated: 1611403734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs new file mode 100644 index 00000000..dcf7fa11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FetchDragonGuildList : Rpc + { + public FetchDragonGuildListArg oArg = new FetchDragonGuildListArg(); + + public FetchDragonGuildRes oRes = null; + + public override uint GetRpcType() + { + return 23518u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FetchDragonGuildList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FetchDragonGuildList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs.meta new file mode 100644 index 00000000..25bf99fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchDragonGuildList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23e86e5331e421a44b1eecb27223ef0d +timeCreated: 1611403458 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildApp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildApp.cs new file mode 100644 index 00000000..da5040b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildApp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FetchGuildApp : Rpc + { + public FetchGAPPArg oArg = new FetchGAPPArg(); + + public FetchGAPPRes oRes = null; + + public override uint GetRpcType() + { + return 3668u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FetchGuildApp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FetchGuildApp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildApp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildApp.cs.meta new file mode 100644 index 00000000..933dcb0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildApp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85d79a166c5ca6a428658593148cf785 +timeCreated: 1611404052 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs new file mode 100644 index 00000000..b8f1cb39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FetchGuildHistoryNew : Rpc + { + public GuildHistoryArg oArg = new GuildHistoryArg(); + + public GuildHistoryRes oRes = null; + + public override uint GetRpcType() + { + return 26284u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FetchGuildHistoryNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FetchGuildHistoryNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs.meta new file mode 100644 index 00000000..ba9b71d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchGuildHistoryNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fff54d8e949e634f9f41b215cf17ed2 +timeCreated: 1611403519 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs new file mode 100644 index 00000000..452a8a40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FetchMail : Rpc + { + public FetchMailArg oArg = new FetchMailArg(); + + public FetchMailRes oRes = null; + + public override uint GetRpcType() + { + return 12373u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FetchMail.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FetchMail.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs.meta new file mode 100644 index 00000000..5a183f4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchMail.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff0e5ea3b8b2aec4189b6a721843aa0c +timeCreated: 1611404945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlantInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlantInfo.cs new file mode 100644 index 00000000..a95c6cf4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlantInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FetchPlantInfo : Rpc + { + public FetchPlantInfoArg oArg = new FetchPlantInfoArg(); + + public FetchPlantInfoRes oRes = null; + + public override uint GetRpcType() + { + return 19949u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FetchPlantInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FetchPlantInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlantInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlantInfo.cs.meta new file mode 100644 index 00000000..1cf64763 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlantInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b348533599a403441bef6ed4e63e9c63 +timeCreated: 1611404388 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlatNotice.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlatNotice.cs new file mode 100644 index 00000000..9aba4e67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlatNotice.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FetchPlatNotice : Rpc + { + public FetchPlatNoticeArg oArg = new FetchPlatNoticeArg(); + + public FetchPlatNoticeRes oRes = null; + + public override uint GetRpcType() + { + return 60271u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FetchPlatNotice.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FetchPlatNotice.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlatNotice.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlatNotice.cs.meta new file mode 100644 index 00000000..c9879ee7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchPlatNotice.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d112f3db1da24064781061ba0cf171fa +timeCreated: 1611404590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs new file mode 100644 index 00000000..f3fbedc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FetchTeamListC2M : Rpc + { + public FetchTeamListArg oArg = new FetchTeamListArg(); + + public FetchTeamListRes oRes = null; + + public override uint GetRpcType() + { + return 3930u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FetchTeamListC2M.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FetchTeamListC2M.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs.meta new file mode 100644 index 00000000..7b7ab388 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FetchTeamListC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5366a0d287b725d4fa2cf4b1ed59e0d7 +timeCreated: 1611403711 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs new file mode 100644 index 00000000..c7d446b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FriendGardenPlantLog : Rpc + { + public FriendGardenPlantLogArg oArg = new FriendGardenPlantLogArg(); + + public FriendGardenPlantLogRes oRes = null; + + public override uint GetRpcType() + { + return 33646u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FriendGardenPlantLog.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FriendGardenPlantLog.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs.meta new file mode 100644 index 00000000..e6971af5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGardenPlantLog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebb6c7fc5d5bb3a42bee110edc04ce8c +timeCreated: 1611404784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs new file mode 100644 index 00000000..f517a535 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_FriendGiftOpNew : Rpc + { + public FriendGiftOpArg oArg = new FriendGiftOpArg(); + + public FriendGiftOpRes oRes = null; + + public override uint GetRpcType() + { + return 35639u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_FriendGiftOpNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_FriendGiftOpNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs.meta new file mode 100644 index 00000000..3fbd6d1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_FriendGiftOpNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d6a3f5529e7b8e43a74d4ee4c15c5b2 +timeCreated: 1611404001 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs new file mode 100644 index 00000000..6fae576a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GCFCommonReq : Rpc + { + public GCFCommonArg oArg = new GCFCommonArg(); + + public GCFCommonRes oRes = null; + + public override uint GetRpcType() + { + return 28945u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GCFCommonReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GCFCommonReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs.meta new file mode 100644 index 00000000..0fb2720f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFCommonReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 781eb4fdd85b7154da6d0e9340563301 +timeCreated: 1611403957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs new file mode 100644 index 00000000..241ef4e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GCFFightInfoReqC2M : Rpc + { + public GCFFightInfoArg oArg = new GCFFightInfoArg(); + + public GCFFightInfoRes oRes = null; + + public override uint GetRpcType() + { + return 42852u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GCFFightInfoReqC2M.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GCFFightInfoReqC2M.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs.meta new file mode 100644 index 00000000..ec6eb3aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFFightInfoReqC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f519aeb9461657478a3cd716379998b +timeCreated: 1611403610 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs new file mode 100644 index 00000000..1146850b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GCFReadysInfoReq : Rpc + { + public GCFReadyInfoArg oArg = new GCFReadyInfoArg(); + + public GCFReadyInfoRes oRes = null; + + public override uint GetRpcType() + { + return 19040u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GCFReadysInfoReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GCFReadysInfoReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs.meta new file mode 100644 index 00000000..8bcd7b4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GCFReadysInfoReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca3b4926e5cdf7b49b8533804715bfeb +timeCreated: 1611404541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquet.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquet.cs new file mode 100644 index 00000000..e7c7c560 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquet.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GardenBanquet : Rpc + { + public GardenBanquetArg oArg = new GardenBanquetArg(); + + public GardenBanquetRes oRes = null; + + public override uint GetRpcType() + { + return 22527u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GardenBanquet.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GardenBanquet.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquet.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquet.cs.meta new file mode 100644 index 00000000..446cb062 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 788fd6d92dd20d147bbe0eba1845f23b +timeCreated: 1611403981 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquetAward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquetAward.cs new file mode 100644 index 00000000..6f73884b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquetAward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GardenBanquetAward : Rpc + { + public BanquetAwardArg oArg = new BanquetAwardArg(); + + public BanquetAwardRes oRes = null; + + public override uint GetRpcType() + { + return 1091u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GardenBanquetAward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GardenBanquetAward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquetAward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquetAward.cs.meta new file mode 100644 index 00000000..84bfedbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenBanquetAward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3495d97e8cb68544da0d8688b608cd3a +timeCreated: 1611403555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenCookingFood.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenCookingFood.cs new file mode 100644 index 00000000..33654738 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenCookingFood.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GardenCookingFood : Rpc + { + public GardenCookingFoodArg oArg = new GardenCookingFoodArg(); + + public GardenCookingFoodRes oRes = null; + + public override uint GetRpcType() + { + return 31406u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GardenCookingFood.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GardenCookingFood.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenCookingFood.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenCookingFood.cs.meta new file mode 100644 index 00000000..cca00904 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenCookingFood.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d204d83443327f148bb08ae464012672 +timeCreated: 1611404593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenExpelSprite.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenExpelSprite.cs new file mode 100644 index 00000000..c7157314 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenExpelSprite.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GardenExpelSprite : Rpc + { + public GardenExpelSpriteArg oArg = new GardenExpelSpriteArg(); + + public GardenExpelSpriteRes oRes = null; + + public override uint GetRpcType() + { + return 3250u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GardenExpelSprite.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GardenExpelSprite.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenExpelSprite.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenExpelSprite.cs.meta new file mode 100644 index 00000000..38c8fc14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenExpelSprite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 964ed3570ddfaf64d823857b651acd1f +timeCreated: 1611404184 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenFishInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenFishInfo.cs new file mode 100644 index 00000000..92ba3e93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenFishInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GardenFishInfo : Rpc + { + public GardenFishInfoArg oArg = new GardenFishInfoArg(); + + public GardenFishInfoRes oRes = null; + + public override uint GetRpcType() + { + return 10768u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GardenFishInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GardenFishInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenFishInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenFishInfo.cs.meta new file mode 100644 index 00000000..4d061f9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenFishInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fe73e9796aeb75469088294e9689080 +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenOverview.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenOverview.cs new file mode 100644 index 00000000..ab306a89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenOverview.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GardenOverview : Rpc + { + public GardenOverviewArg oArg = new GardenOverviewArg(); + + public GardenOverviewRes oRes = null; + + public override uint GetRpcType() + { + return 20766u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GardenOverview.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GardenOverview.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenOverview.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenOverview.cs.meta new file mode 100644 index 00000000..ddc590ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenOverview.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec0e4c0474f9729409248b2824f608a0 +timeCreated: 1611404786 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs new file mode 100644 index 00000000..eb0ec610 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GardenSteal : Rpc + { + public GardenStealArg oArg = new GardenStealArg(); + + public GardenStealRes oRes = null; + + public override uint GetRpcType() + { + return 12696u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GardenSteal.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GardenSteal.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs.meta new file mode 100644 index 00000000..46893fa3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GardenSteal.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 10b36606974611f41b346f91a374c142 +timeCreated: 1611403219 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs new file mode 100644 index 00000000..9c581bd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetAllWeddingInfo : Rpc + { + public GetAllWeddingInfoArg oArg = new GetAllWeddingInfoArg(); + + public GetAllWeddingInfoRes oRes = null; + + public override uint GetRpcType() + { + return 30155u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetAllWeddingInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetAllWeddingInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs.meta new file mode 100644 index 00000000..264b41b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetAllWeddingInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 45049649e9463474b842fc893b81a880 +timeCreated: 1611403646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetCrossGvgData.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetCrossGvgData.cs new file mode 100644 index 00000000..3dfcb680 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetCrossGvgData.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetCrossGvgData : Rpc + { + public GetCrossGvgDataArg oArg = new GetCrossGvgDataArg(); + + public GetCrossGvgDataRes oRes = null; + + public override uint GetRpcType() + { + return 47019u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetCrossGvgData.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetCrossGvgData.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetCrossGvgData.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetCrossGvgData.cs.meta new file mode 100644 index 00000000..ff4f3db3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetCrossGvgData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f42edaad574166f4ea87a29239f3c870 +timeCreated: 1611404852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs new file mode 100644 index 00000000..b82feba2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDailyTaskAskHelp : Rpc + { + public GetDailyTaskAskHelpArg oArg = new GetDailyTaskAskHelpArg(); + + public GetDailyTaskAskHelpRes oRes = null; + + public override uint GetRpcType() + { + return 46394u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDailyTaskAskHelp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDailyTaskAskHelp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs.meta new file mode 100644 index 00000000..f711bb25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskAskHelp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6c47ad48a63f7d43a44f1973017c2e7 +timeCreated: 1611404527 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshInfo.cs new file mode 100644 index 00000000..9b542305 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDailyTaskRefreshInfo : Rpc + { + public GetDailyTaskRefreshInfoArg oArg = new GetDailyTaskRefreshInfoArg(); + + public GetDailyTaskRefreshInfoRes oRes = null; + + public override uint GetRpcType() + { + return 42385u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDailyTaskRefreshInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDailyTaskRefreshInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshInfo.cs.meta new file mode 100644 index 00000000..802955a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f87b5a9b35953b441ae17d5b48190dcf +timeCreated: 1611404893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshRecord.cs new file mode 100644 index 00000000..b58f692f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDailyTaskRefreshRecord : Rpc + { + public GetDailyTaskRefreshRecordArg oArg = new GetDailyTaskRefreshRecordArg(); + + public GetDailyTaskRefreshRecordRes oRes = null; + + public override uint GetRpcType() + { + return 7202u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDailyTaskRefreshRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDailyTaskRefreshRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshRecord.cs.meta new file mode 100644 index 00000000..05878afb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDailyTaskRefreshRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b30d2c61151b094096c9fc14e901213 +timeCreated: 1611403166 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs new file mode 100644 index 00000000..4fa4b780 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDanceIds : Rpc + { + public GetDanceIdsArg oArg = new GetDanceIdsArg(); + + public GetDanceIdsRes oRes = null; + + public override uint GetRpcType() + { + return 44768u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDanceIds.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDanceIds.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs.meta new file mode 100644 index 00000000..44fa2cc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDanceIds.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c6d3a49d5c090843b3d4bd96f12f5cb +timeCreated: 1611403502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildBindInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildBindInfo.cs new file mode 100644 index 00000000..baf008ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildBindInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDragonGuildBindInfo : Rpc + { + public GetDragonGuildBindInfoArg oArg = new GetDragonGuildBindInfoArg(); + + public GetDragonGuildBindInfoRes oRes = null; + + public override uint GetRpcType() + { + return 39788u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDragonGuildBindInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDragonGuildBindInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildBindInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildBindInfo.cs.meta new file mode 100644 index 00000000..2be0cd53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildBindInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57184f61b379a0c40958db39cc3bd9bd +timeCreated: 1611403747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildLiveness.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildLiveness.cs new file mode 100644 index 00000000..99d233ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildLiveness.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDragonGuildLiveness : Rpc + { + public GetPartnerLivenessArg oArg = new GetPartnerLivenessArg(); + + public GetPartnerLivenessRes oRes = null; + + public override uint GetRpcType() + { + return 16507u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDragonGuildLiveness.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDragonGuildLiveness.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildLiveness.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildLiveness.cs.meta new file mode 100644 index 00000000..1d1c24c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildLiveness.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ff1b3dfe5baa8440b02d07af1f72cd1 +timeCreated: 1611403519 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs new file mode 100644 index 00000000..da861e56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDragonGuildShop : Rpc + { + public GetDragonGuildShopArg oArg = new GetDragonGuildShopArg(); + + public GetDragonGuildShopRes oRes = null; + + public override uint GetRpcType() + { + return 6075u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDragonGuildShop.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDragonGuildShop.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs.meta new file mode 100644 index 00000000..1b31c89b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff31406ee39901547ad201c3381523f9 +timeCreated: 1611404946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShopRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShopRecord.cs new file mode 100644 index 00000000..97863cd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShopRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDragonGuildShopRecord : Rpc + { + public GetDragonGuildShopRecordArg oArg = new GetDragonGuildShopRecordArg(); + + public GetDragonGuildShopRecordRes oRes = null; + + public override uint GetRpcType() + { + return 3114u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDragonGuildShopRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDragonGuildShopRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShopRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShopRecord.cs.meta new file mode 100644 index 00000000..88262753 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildShopRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0281479459474df4bab8a913c6092321 +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildTaskInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildTaskInfo.cs new file mode 100644 index 00000000..5cbb0525 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildTaskInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetDragonGuildTaskInfo : Rpc + { + public GetDragonGuildTaskInfoArg oArg = new GetDragonGuildTaskInfoArg(); + + public GetDragonGuildTaskInfoRes oRes = null; + + public override uint GetRpcType() + { + return 36879u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetDragonGuildTaskInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetDragonGuildTaskInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildTaskInfo.cs.meta new file mode 100644 index 00000000..c58c1a28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetDragonGuildTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3338ab3d3ba5e6c458614c79eb3be9ea +timeCreated: 1611403551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetFlowerActivityReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetFlowerActivityReward.cs new file mode 100644 index 00000000..38c62503 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetFlowerActivityReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetFlowerActivityReward : Rpc + { + public GetFlowerActivityRewardArg oArg = new GetFlowerActivityRewardArg(); + + public GetFlowerActivityRewardRes oRes = null; + + public override uint GetRpcType() + { + return 36979u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetFlowerActivityReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetFlowerActivityReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetFlowerActivityReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetFlowerActivityReward.cs.meta new file mode 100644 index 00000000..e59afda4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetFlowerActivityReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 537b14f81dcf7fd4d8001ec40b616145 +timeCreated: 1611403711 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs new file mode 100644 index 00000000..299aa92b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetGuildBindInfo : Rpc + { + public GetGuildBindInfoReq oArg = new GetGuildBindInfoReq(); + + public GetGuildBindInfoRes oRes = null; + + public override uint GetRpcType() + { + return 62512u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetGuildBindInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetGuildBindInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs.meta new file mode 100644 index 00000000..fe79a34b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBindInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20b558bcb50c72e49842aa1e8aaca179 +timeCreated: 1611403408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBonusSendList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBonusSendList.cs new file mode 100644 index 00000000..14604589 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBonusSendList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetGuildBonusSendList : Rpc + { + public GetGuildBonusSendListArg oArg = new GetGuildBonusSendListArg(); + + public GetGuildBonusSendListRes oRes = null; + + public override uint GetRpcType() + { + return 59719u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetGuildBonusSendList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetGuildBonusSendList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBonusSendList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBonusSendList.cs.meta new file mode 100644 index 00000000..c9bc7321 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildBonusSendList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43068dd3f2e0b8849b145027e6fa3596 +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildCheckinRecordsNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildCheckinRecordsNew.cs new file mode 100644 index 00000000..c41b1131 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildCheckinRecordsNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetGuildCheckinRecordsNew : Rpc + { + public GetGuildCheckinRecordsArg oArg = new GetGuildCheckinRecordsArg(); + + public GetGuildCheckinRecordsRes oRes = null; + + public override uint GetRpcType() + { + return 16239u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetGuildCheckinRecordsNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetGuildCheckinRecordsNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildCheckinRecordsNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildCheckinRecordsNew.cs.meta new file mode 100644 index 00000000..db4a6a3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildCheckinRecordsNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01b49eb833bbd204196864f1c7d07987 +timeCreated: 1611402954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs new file mode 100644 index 00000000..e2326f14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetGuildDonateInfo : Rpc + { + public GetGuildDonateInfoArg oArg = new GetGuildDonateInfoArg(); + + public GetGuildDonateInfoRes oRes = null; + + public override uint GetRpcType() + { + return 14656u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetGuildDonateInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetGuildDonateInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs.meta new file mode 100644 index 00000000..d1ca56fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildDonateInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b48032cbb85fce4a8068efd3bb36f73 +timeCreated: 1611403167 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs new file mode 100644 index 00000000..d69e9f90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetGuildIntegralInfo : Rpc + { + public GetGuildIntegralInfoArg oArg = new GetGuildIntegralInfoArg(); + + public GetGuildIntegralInfoRes oRes = null; + + public override uint GetRpcType() + { + return 56762u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetGuildIntegralInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetGuildIntegralInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs.meta new file mode 100644 index 00000000..db89f9da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildIntegralInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43e16758907724d4698d6432a2917c39 +timeCreated: 1611403643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildWageReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildWageReward.cs new file mode 100644 index 00000000..67f3225b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildWageReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetGuildWageReward : Rpc + { + public GetGuildWageRewardArg oArg = new GetGuildWageRewardArg(); + + public GetGuildWageReward oRes = null; + + public override uint GetRpcType() + { + return 50133u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetGuildWageReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetGuildWageReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildWageReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildWageReward.cs.meta new file mode 100644 index 00000000..603d7f97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetGuildWageReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ba3b3bd57f387b42a245c49e2963139 +timeCreated: 1611403169 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs new file mode 100644 index 00000000..8417993a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetLeagueBattleInfo : Rpc + { + public GetLeagueBattleInfoArg oArg = new GetLeagueBattleInfoArg(); + + public GetLeagueBattleInfoRes oRes = null; + + public override uint GetRpcType() + { + return 29101u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetLeagueBattleInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetLeagueBattleInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs.meta new file mode 100644 index 00000000..213e14a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ff1eec96576b0d43962ecadc416955e +timeCreated: 1611404137 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleRecord.cs new file mode 100644 index 00000000..f571ca1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetLeagueBattleRecord : Rpc + { + public GetLeagueBattleRecordArg oArg = new GetLeagueBattleRecordArg(); + + public GetLeagueBattleRecordRes oRes = null; + + public override uint GetRpcType() + { + return 51407u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetLeagueBattleRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetLeagueBattleRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleRecord.cs.meta new file mode 100644 index 00000000..5ab3bfa6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueBattleRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76e6106dfb5bc844492118eeeaf56578 +timeCreated: 1611403951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs new file mode 100644 index 00000000..ce2ba027 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetLeagueEleInfo : Rpc + { + public GetLeagueEleInfoArg oArg = new GetLeagueEleInfoArg(); + + public GetLeagueEleInfoRes oRes = null; + + public override uint GetRpcType() + { + return 40678u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetLeagueEleInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetLeagueEleInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs.meta new file mode 100644 index 00000000..af28bae9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueEleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8172c67df808e0408579269378d9888 +timeCreated: 1611404638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs new file mode 100644 index 00000000..6ff6a15e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetLeagueTeamInfo : Rpc + { + public GetLeagueTeamInfoArg oArg = new GetLeagueTeamInfoArg(); + + public GetLeagueTeamInfoRes oRes = null; + + public override uint GetRpcType() + { + return 12488u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetLeagueTeamInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetLeagueTeamInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs.meta new file mode 100644 index 00000000..9a4e3c17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetLeagueTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 70e16734c76bfc94b8ca357063476a95 +timeCreated: 1611403932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetListSubscribe.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetListSubscribe.cs new file mode 100644 index 00000000..6a7d2619 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetListSubscribe.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetListSubscribe : Rpc + { + public GetListSubscribeArg oArg = new GetListSubscribeArg(); + + public GetListSubscribeRes oRes = null; + + public override uint GetRpcType() + { + return 1403u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetListSubscribe.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetListSubscribe.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetListSubscribe.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetListSubscribe.cs.meta new file mode 100644 index 00000000..77bf7523 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetListSubscribe.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69c0ac823fb1e7d41a46312b46429a39 +timeCreated: 1611403886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs new file mode 100644 index 00000000..b85af65b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMarriageLiveness : Rpc + { + public GetMarriageLivenessArg oArg = new GetMarriageLivenessArg(); + + public GetMarriageLivenessRes oRes = null; + + public override uint GetRpcType() + { + return 30055u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMarriageLiveness.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMarriageLiveness.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs.meta new file mode 100644 index 00000000..223253bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageLiveness.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cae4110ad92749d418ebeaeb90372fc3 +timeCreated: 1611404544 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs new file mode 100644 index 00000000..aa8742cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMarriagePrivilege : Rpc + { + public GetMarriagePrivilegeArg oArg = new GetMarriagePrivilegeArg(); + + public GetMarriagePrivilegeRes oRes = null; + + public override uint GetRpcType() + { + return 15597u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMarriagePrivilege.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMarriagePrivilege.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs.meta new file mode 100644 index 00000000..50913af3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriagePrivilege.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 616ba5004c473cd4cb044eef41832d4f +timeCreated: 1611403838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageRelation.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageRelation.cs new file mode 100644 index 00000000..cfb4ef30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageRelation.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMarriageRelation : Rpc + { + public GetMarriageRelationArg oArg = new GetMarriageRelationArg(); + + public GetMarriageRelationRes oRes = null; + + public override uint GetRpcType() + { + return 13460u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMarriageRelation.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMarriageRelation.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageRelation.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageRelation.cs.meta new file mode 100644 index 00000000..d41abb37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMarriageRelation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6577efffcc7f87b43b6ccbeeee50500b +timeCreated: 1611403850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleBriefRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleBriefRecord.cs new file mode 100644 index 00000000..8165a8c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleBriefRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMobaBattleBriefRecord : Rpc + { + public GetMobaBattleBriefRecordArg oArg = new GetMobaBattleBriefRecordArg(); + + public GetMobaBattleBriefRecordRes oRes = null; + + public override uint GetRpcType() + { + return 35507u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMobaBattleBriefRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMobaBattleBriefRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleBriefRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleBriefRecord.cs.meta new file mode 100644 index 00000000..9c6e0e74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleBriefRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 912c8168b3520a44ebd6a7fca45a919e +timeCreated: 1611404141 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleGameRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleGameRecord.cs new file mode 100644 index 00000000..d526c61c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleGameRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMobaBattleGameRecord : Rpc + { + public GetMobaBattleGameRecordArg oArg = new GetMobaBattleGameRecordArg(); + + public GetMobaBattleGameRecordRes oRes = null; + + public override uint GetRpcType() + { + return 9583u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMobaBattleGameRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMobaBattleGameRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleGameRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleGameRecord.cs.meta new file mode 100644 index 00000000..c741d310 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleGameRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31d93e62974a330478b8bd65a13557b5 +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs new file mode 100644 index 00000000..c4b1bbe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMobaBattleInfo : Rpc + { + public GetMobaBattleInfoArg oArg = new GetMobaBattleInfoArg(); + + public GetMobaBattleInfoRes oRes = null; + + public override uint GetRpcType() + { + return 64051u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMobaBattleInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMobaBattleInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs.meta new file mode 100644 index 00000000..dea29276 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d10b8824e8a49842bffab35b9cb3a39 +timeCreated: 1611404234 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleWeekReward.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleWeekReward.cs new file mode 100644 index 00000000..3cbae5cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleWeekReward.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMobaBattleWeekReward : Rpc + { + public GetMobaBattleWeekRewardArg oArg = new GetMobaBattleWeekRewardArg(); + + public GetMobaBattleWeekRewardRes oRes = null; + + public override uint GetRpcType() + { + return 55678u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMobaBattleWeekReward.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMobaBattleWeekReward.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleWeekReward.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleWeekReward.cs.meta new file mode 100644 index 00000000..0eb3b079 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMobaBattleWeekReward.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05b8c6a9f8216924a9ef2544289e1354 +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs new file mode 100644 index 00000000..5533d23f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMyApplyMasterInfo : Rpc + { + public GetMyApplyMasterInfoArg oArg = new GetMyApplyMasterInfoArg(); + + public GetMyApplyMasterInfoRes oRes = null; + + public override uint GetRpcType() + { + return 61902u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMyApplyMasterInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMyApplyMasterInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs.meta new file mode 100644 index 00000000..eb905d2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyMasterInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f86a4be5433c0194780f9b90ef1910ad +timeCreated: 1611404893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyStudentInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyStudentInfo.cs new file mode 100644 index 00000000..75589dd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyStudentInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMyApplyStudentInfo : Rpc + { + public GetMyApplyStudentInfoArg oArg = new GetMyApplyStudentInfoArg(); + + public GetMyApplyStudentInfoRes oRes = null; + + public override uint GetRpcType() + { + return 28961u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMyApplyStudentInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMyApplyStudentInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyStudentInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyStudentInfo.cs.meta new file mode 100644 index 00000000..87376a5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyApplyStudentInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b269efa1bc42ee14da58add36b3e0b76 +timeCreated: 1611404385 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs new file mode 100644 index 00000000..12c5f9c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetMyMentorInfo : Rpc + { + public GetMyMentorInfoArg oArg = new GetMyMentorInfoArg(); + + public GetMyMentorInfoRes oRes = null; + + public override uint GetRpcType() + { + return 8287u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetMyMentorInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetMyMentorInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs.meta new file mode 100644 index 00000000..15a82db4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetMyMentorInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3590479297078e64d9b5fbd82d475bf8 +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherGuildBriefNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherGuildBriefNew.cs new file mode 100644 index 00000000..64c11b1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherGuildBriefNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetOtherGuildBriefNew : Rpc + { + public GetOtherGuildBriefArg oArg = new GetOtherGuildBriefArg(); + + public GetOtherGuildBriefRes oRes = null; + + public override uint GetRpcType() + { + return 16797u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetOtherGuildBriefNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetOtherGuildBriefNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherGuildBriefNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherGuildBriefNew.cs.meta new file mode 100644 index 00000000..53c0b86e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherGuildBriefNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f52b8f5169e8194aba560e8937bca87 +timeCreated: 1611403208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs new file mode 100644 index 00000000..828d16e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetOtherMentorStatus : Rpc + { + public GetOtherMentorStatusArg oArg = new GetOtherMentorStatusArg(); + + public GetOtherMentorStatusRes oRes = null; + + public override uint GetRpcType() + { + return 4896u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetOtherMentorStatus.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetOtherMentorStatus.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs.meta new file mode 100644 index 00000000..8ed71354 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetOtherMentorStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7731b4c74f02f44479be2b27999243e4 +timeCreated: 1611403952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs new file mode 100644 index 00000000..d1169cdb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetPartnerDetailInfo : Rpc + { + public GetPartnerDetailInfoArg oArg = new GetPartnerDetailInfoArg(); + + public GetPartnerDetailInfoRes oRes = null; + + public override uint GetRpcType() + { + return 31275u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetPartnerDetailInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetPartnerDetailInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs.meta new file mode 100644 index 00000000..390b416e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerDetailInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 183ad54d773d72f45aece21894c01297 +timeCreated: 1611403296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerInfo.cs new file mode 100644 index 00000000..2941d28e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetPartnerInfo : Rpc + { + public GetPartnerInfoArg oArg = new GetPartnerInfoArg(); + + public GetPartnerInfoRes oRes = null; + + public override uint GetRpcType() + { + return 61123u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetPartnerInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetPartnerInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerInfo.cs.meta new file mode 100644 index 00000000..4815ce10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e43e9b71dec48ac4ea7bf99c3ef1b5a3 +timeCreated: 1611404736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs new file mode 100644 index 00000000..1a99dc46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetPartnerLiveness : Rpc + { + public GetPartnerLivenessArg oArg = new GetPartnerLivenessArg(); + + public GetPartnerLivenessRes oRes = null; + + public override uint GetRpcType() + { + return 18784u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetPartnerLiveness.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetPartnerLiveness.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs.meta new file mode 100644 index 00000000..76c0f38e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerLiveness.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4ad6b53b3728c941b765a0830886907 +timeCreated: 1611404502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShop.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShop.cs new file mode 100644 index 00000000..2d6bc541 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShop.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetPartnerShop : Rpc + { + public GetPartnerShopArg oArg = new GetPartnerShopArg(); + + public GetPartnerShopRes oRes = null; + + public override uint GetRpcType() + { + return 46131u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetPartnerShop.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetPartnerShop.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShop.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShop.cs.meta new file mode 100644 index 00000000..69c567e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShop.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ea60ec0611a8cb46ac9e691d9f58652 +timeCreated: 1611403365 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs new file mode 100644 index 00000000..e492c982 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetPartnerShopRecord : Rpc + { + public GetPartnerShopRecordArg oArg = new GetPartnerShopRecordArg(); + + public GetPartnerShopRecordRes oRes = null; + + public override uint GetRpcType() + { + return 56970u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetPartnerShopRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetPartnerShopRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs.meta new file mode 100644 index 00000000..059b4009 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetPartnerShopRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cf5749d03358e148b246045863a2dc4 +timeCreated: 1611403694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs new file mode 100644 index 00000000..418c6519 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetQADataReq : Rpc + { + public GetQADataReq oArg = new GetQADataReq(); + + public GetQADataRes oRes = null; + + public override uint GetRpcType() + { + return 26871u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetQADataReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetQADataReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs.meta new file mode 100644 index 00000000..1aec6106 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetQADataReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b4631dd78a42e94ea451b2de7f32aed +timeCreated: 1611403797 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs new file mode 100644 index 00000000..d672324e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetRiftGuildRank : Rpc + { + public GetRiftGuildRankArg oArg = new GetRiftGuildRankArg(); + + public GetRiftGuildRankRes oRes = null; + + public override uint GetRpcType() + { + return 28195u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetRiftGuildRank.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetRiftGuildRank.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs.meta new file mode 100644 index 00000000..348d0668 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetRiftGuildRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7184f8ddac7c0b742ae5e6120170432f +timeCreated: 1611403935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs new file mode 100644 index 00000000..b1dd25ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetSkyCraftEliInfo : Rpc + { + public GetSkyCraftEliInfoArg oArg = new GetSkyCraftEliInfoArg(); + + public GetSkyCraftEliInfoRes oRes = null; + + public override uint GetRpcType() + { + return 41103u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetSkyCraftEliInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetSkyCraftEliInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs.meta new file mode 100644 index 00000000..d5eac5e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftEliInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc67ea49b3ecb814fbb5ac7cb306b7df +timeCreated: 1611404935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs new file mode 100644 index 00000000..61ea58ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetSkyCraftInfo : Rpc + { + public GetSkyCraftInfoArg oArg = new GetSkyCraftInfoArg(); + + public GetSkyCraftInfoRes oRes = null; + + public override uint GetRpcType() + { + return 26199u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetSkyCraftInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetSkyCraftInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs.meta new file mode 100644 index 00000000..515678b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 495abc567ca0cb644b64fa1810abb30b +timeCreated: 1611403661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs new file mode 100644 index 00000000..8590cfa5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetSkyCraftRecord : Rpc + { + public GetSkyCraftRecordArg oArg = new GetSkyCraftRecordArg(); + + public GetSkyCraftRecordRes oRes = null; + + public override uint GetRpcType() + { + return 39327u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetSkyCraftRecord.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetSkyCraftRecord.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs.meta new file mode 100644 index 00000000..81092289 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72b59778ba3468d4eb770afd00ec1426 +timeCreated: 1611403938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs new file mode 100644 index 00000000..49e5ba0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetSkyCraftTeamInfo : Rpc + { + public GetSkyCraftTeamInfoArg oArg = new GetSkyCraftTeamInfoArg(); + + public GetSkyCraftTeamInfoRes oRes = null; + + public override uint GetRpcType() + { + return 25015u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetSkyCraftTeamInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetSkyCraftTeamInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs.meta new file mode 100644 index 00000000..afeaf7c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetSkyCraftTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91695f578e00a0e4c80d3829e3b22d62 +timeCreated: 1611404142 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs new file mode 100644 index 00000000..2ee82ddc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetUnitAppearanceNew : Rpc + { + public GetUnitAppearanceArg oArg = new GetUnitAppearanceArg(); + + public GetUnitAppearanceRes oRes = null; + + public override uint GetRpcType() + { + return 40593u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetUnitAppearanceNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetUnitAppearanceNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs.meta new file mode 100644 index 00000000..c51033b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetUnitAppearanceNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41e6ec8a41d93fe46b5a5ea30986996d +timeCreated: 1611403638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs new file mode 100644 index 00000000..6ba59fd1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetWeddingInviteInfo : Rpc + { + public GetWeddingInviteInfoArg oArg = new GetWeddingInviteInfoArg(); + + public GetWeddingInviteInfoRes oRes = null; + + public override uint GetRpcType() + { + return 2804u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetWeddingInviteInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetWeddingInviteInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs.meta new file mode 100644 index 00000000..3fc06242 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWeddingInviteInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c267940cf2496f40ae2ff1b7b79df35 +timeCreated: 1611403996 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs new file mode 100644 index 00000000..4b142166 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetWorldBossStateNew : Rpc + { + public GetWorldBossStateArg oArg = new GetWorldBossStateArg(); + + public GetWorldBossStateRes oRes = null; + + public override uint GetRpcType() + { + return 17093u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetWorldBossStateNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetWorldBossStateNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs.meta new file mode 100644 index 00000000..a6eabaab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossStateNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe4507475bfe48747ae26663cbc32582 +timeCreated: 1611404940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs new file mode 100644 index 00000000..fb1d9155 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GetWorldBossTimeLeft : Rpc + { + public GetWorldBossTimeLeftArg oArg = new GetWorldBossTimeLeftArg(); + + public GetWorldBossTimeLeftRes oRes = null; + + public override uint GetRpcType() + { + return 23195u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GetWorldBossTimeLeft.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GetWorldBossTimeLeft.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs.meta new file mode 100644 index 00000000..700057f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GetWorldBossTimeLeft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1ae76b0604171e4db350e6820d7f5a8 +timeCreated: 1611404592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs new file mode 100644 index 00000000..3c75133a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GiftIbReqGoods : Rpc + { + public GiftIbReqGoodsArg oArg = new GiftIbReqGoodsArg(); + + public GiftIbReqGoodsRes oRes = null; + + public override uint GetRpcType() + { + return 18140u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GiftIbReqGoods.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GiftIbReqGoods.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs.meta new file mode 100644 index 00000000..083b2672 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GiftIbReqGoods.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9943654358e95d645a78df7e5c97ebdb +timeCreated: 1611404194 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs new file mode 100644 index 00000000..664f5875 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GoalAwardsGetAwards : Rpc + { + public GoalAwardsGetAwards_C2M oArg = new GoalAwardsGetAwards_C2M(); + + public GoalAwardsGetAwards_M2C oRes = null; + + public override uint GetRpcType() + { + return 4985u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GoalAwardsGetAwards.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GoalAwardsGetAwards.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs.meta new file mode 100644 index 00000000..6493c556 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetAwards.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfdca9df093c95b4f9233e71324011b4 +timeCreated: 1611404582 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs new file mode 100644 index 00000000..b91e88ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GoalAwardsGetList : Rpc + { + public GoalAwardsGetList_C2M oArg = new GoalAwardsGetList_C2M(); + + public GoalAwardsGetList_M2C oRes = null; + + public override uint GetRpcType() + { + return 36694u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GoalAwardsGetList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GoalAwardsGetList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs.meta new file mode 100644 index 00000000..ea53ed6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GoalAwardsGetList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60c9ff9c334e51e4482f45384aa68543 +timeCreated: 1611403836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatChangeName.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatChangeName.cs new file mode 100644 index 00000000..0cd1dcfc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatChangeName.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatChangeName : Rpc + { + public GroupChatChangeNameC2S oArg = new GroupChatChangeNameC2S(); + + public GroupChatChangeNameS2C oRes = null; + + public override uint GetRpcType() + { + return 44170u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatChangeName.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatChangeName.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatChangeName.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatChangeName.cs.meta new file mode 100644 index 00000000..9047fdca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatChangeName.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4dd2d7806f0f234bb1c7817d52f275c +timeCreated: 1611404504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatClear.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatClear.cs new file mode 100644 index 00000000..e0e15764 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatClear.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatClear : Rpc + { + public GroupChatClearC2S oArg = new GroupChatClearC2S(); + + public GroupChatClearS2C oRes = null; + + public override uint GetRpcType() + { + return 61477u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatClear.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatClear.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatClear.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatClear.cs.meta new file mode 100644 index 00000000..cbd09d08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatClear.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05f598dd8bfe8514d937249037d9beaf +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatCreate.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatCreate.cs new file mode 100644 index 00000000..cd6f300e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatCreate.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatCreate : Rpc + { + public GroupChatCreateC2S oArg = new GroupChatCreateC2S(); + + public GroupChatCreateS2C oRes = null; + + public override uint GetRpcType() + { + return 59293u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatCreate.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatCreate.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatCreate.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatCreate.cs.meta new file mode 100644 index 00000000..099c5ae7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatCreate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84db0f38a24acfc49844c61b303dcbb1 +timeCreated: 1611404050 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindRoleInfoList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindRoleInfoList.cs new file mode 100644 index 00000000..2ecf854e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindRoleInfoList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatFindRoleInfoList : Rpc + { + public GroupChatFindRoleInfoListC2S oArg = new GroupChatFindRoleInfoListC2S(); + + public GroupChatFindRoleInfoListS2C oRes = null; + + public override uint GetRpcType() + { + return 7283u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatFindRoleInfoList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatFindRoleInfoList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindRoleInfoList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindRoleInfoList.cs.meta new file mode 100644 index 00000000..7082d779 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindRoleInfoList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2bd7407fe4b18148b2d0e9db1daba28 +timeCreated: 1611404844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindTeamInfoList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindTeamInfoList.cs new file mode 100644 index 00000000..65f8cc75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindTeamInfoList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatFindTeamInfoList : Rpc + { + public GroupChatFindTeamInfoListC2S oArg = new GroupChatFindTeamInfoListC2S(); + + public GroupChatFindTeamInfoListS2C oRes = null; + + public override uint GetRpcType() + { + return 46399u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatFindTeamInfoList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatFindTeamInfoList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindTeamInfoList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindTeamInfoList.cs.meta new file mode 100644 index 00000000..9c140ad2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatFindTeamInfoList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6929ddb6456d9944db1c304c0a080f4f +timeCreated: 1611403885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatGetGroupInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatGetGroupInfo.cs new file mode 100644 index 00000000..763326d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatGetGroupInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatGetGroupInfo : Rpc + { + public GroupChatGetGroupInfoC2S oArg = new GroupChatGetGroupInfoC2S(); + + public GroupChatGetGroupInfoS2C oRes = null; + + public override uint GetRpcType() + { + return 64081u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatGetGroupInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatGetGroupInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatGetGroupInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatGetGroupInfo.cs.meta new file mode 100644 index 00000000..27839688 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatGetGroupInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39fe1a544ce80414aa434a31482e6b5d +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderAddRole.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderAddRole.cs new file mode 100644 index 00000000..eb56442c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderAddRole.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatLeaderAddRole : Rpc + { + public GroupChatLeaderAddRoleC2S oArg = new GroupChatLeaderAddRoleC2S(); + + public GroupChatLeaderAddRoleS2C oRes = null; + + public override uint GetRpcType() + { + return 44703u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatLeaderAddRole.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatLeaderAddRole.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderAddRole.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderAddRole.cs.meta new file mode 100644 index 00000000..66649e74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderAddRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c702c8bcf19ca604c9acaba860255004 +timeCreated: 1611404528 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderIssueInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderIssueInfo.cs new file mode 100644 index 00000000..4433c477 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderIssueInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatLeaderIssueInfo : Rpc + { + public GroupChatLeaderIssueInfoC2S oArg = new GroupChatLeaderIssueInfoC2S(); + + public GroupChatLeaderIssueInfoS2C oRes = null; + + public override uint GetRpcType() + { + return 9594u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatLeaderIssueInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatLeaderIssueInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderIssueInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderIssueInfo.cs.meta new file mode 100644 index 00000000..501781f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderIssueInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4256707ff19c3cb41a19cd7a4279033d +timeCreated: 1611403639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReview.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReview.cs new file mode 100644 index 00000000..b3c3d921 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReview.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatLeaderReview : Rpc + { + public GroupChatLeaderReviewC2S oArg = new GroupChatLeaderReviewC2S(); + + public GroupChatLeaderReviewS2C oRes = null; + + public override uint GetRpcType() + { + return 21611u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatLeaderReview.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatLeaderReview.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReview.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReview.cs.meta new file mode 100644 index 00000000..53bfd2e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReview.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bdde31affd170234881e8587b7bff6e8 +timeCreated: 1611404457 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReviewList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReviewList.cs new file mode 100644 index 00000000..2cd62b2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReviewList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatLeaderReviewList : Rpc + { + public GroupChatLeaderReviewListC2S oArg = new GroupChatLeaderReviewListC2S(); + + public GroupChatLeaderReviewListS2C oRes = null; + + public override uint GetRpcType() + { + return 33836u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatLeaderReviewList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatLeaderReviewList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReviewList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReviewList.cs.meta new file mode 100644 index 00000000..1b05c4fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatLeaderReviewList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9b9659803bb83e4b9e8c41220192ee8 +timeCreated: 1611404540 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatManager.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatManager.cs new file mode 100644 index 00000000..36c99181 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatManager.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatManager : Rpc + { + public GroupChatManagerC2S oArg = new GroupChatManagerC2S(); + + public GroupChatManagerS2C oRes = null; + + public override uint GetRpcType() + { + return 35391u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatManager.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatManager.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatManager.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatManager.cs.meta new file mode 100644 index 00000000..b6cd2834 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1a29fb98dcdaeb4391dfd79bc16634d +timeCreated: 1611404702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs new file mode 100644 index 00000000..6743d370 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatPlayerApply : Rpc + { + public GroupChatPlayerApplyC2S oArg = new GroupChatPlayerApplyC2S(); + + public GroupChatPlayerApplyS2C oRes = null; + + public override uint GetRpcType() + { + return 24788u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatPlayerApply.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatPlayerApply.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs.meta new file mode 100644 index 00000000..7fc961cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerApply.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b176694f8f76bea4a8eb0a4362862b5d +timeCreated: 1611404355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerIssueInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerIssueInfo.cs new file mode 100644 index 00000000..a0866728 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerIssueInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatPlayerIssueInfo : Rpc + { + public GroupChatPlayerIssueInfoC2S oArg = new GroupChatPlayerIssueInfoC2S(); + + public GroupChatPlayerIssueInfoS2C oRes = null; + + public override uint GetRpcType() + { + return 48317u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatPlayerIssueInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatPlayerIssueInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerIssueInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerIssueInfo.cs.meta new file mode 100644 index 00000000..537e77c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatPlayerIssueInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c51d4964c991d8349ad37f2349964679 +timeCreated: 1611404505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatQuit.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatQuit.cs new file mode 100644 index 00000000..0c9e2386 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatQuit.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GroupChatQuit : Rpc + { + public GroupChatQuitC2S oArg = new GroupChatQuitC2S(); + + public GroupChatQuitS2C oRes = null; + + public override uint GetRpcType() + { + return 58833u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GroupChatQuit.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GroupChatQuit.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatQuit.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatQuit.cs.meta new file mode 100644 index 00000000..2f7a2ec8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GroupChatQuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 892144a6af963a84b958223aa1326af5 +timeCreated: 1611404087 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildApprovalNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildApprovalNew.cs new file mode 100644 index 00000000..c1b3fc1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildApprovalNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildApprovalNew : Rpc + { + public GuildApprovalArg oArg = new GuildApprovalArg(); + + public GuildApprovalRes oRes = null; + + public override uint GetRpcType() + { + return 28348u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildApprovalNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildApprovalNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildApprovalNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildApprovalNew.cs.meta new file mode 100644 index 00000000..0b5ef350 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildApprovalNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae860c160f308734e8907897456448f2 +timeCreated: 1611404340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildArenaSimpleDeployNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildArenaSimpleDeployNew.cs new file mode 100644 index 00000000..8fa737bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildArenaSimpleDeployNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildArenaSimpleDeployNew : Rpc + { + public GuildArenaSimpleDeployArg oArg = new GuildArenaSimpleDeployArg(); + + public GuildArenaSimpleDeployRes oRes = null; + + public override uint GetRpcType() + { + return 42310u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildArenaSimpleDeployNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildArenaSimpleDeployNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildArenaSimpleDeployNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildArenaSimpleDeployNew.cs.meta new file mode 100644 index 00000000..ee9844e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildArenaSimpleDeployNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98ec5c6675f20ac4e96c94e8edbf9615 +timeCreated: 1611404192 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs new file mode 100644 index 00000000..69f63299 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildAuctReqAll : Rpc + { + public GuildAuctReqArg oArg = new GuildAuctReqArg(); + + public GuildAuctReqRes oRes = null; + + public override uint GetRpcType() + { + return 41964u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildAuctReqAll.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildAuctReqAll.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs.meta new file mode 100644 index 00000000..a3abe8a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildAuctReqAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 351e8638e86bd6f41805f9135736a289 +timeCreated: 1611403557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildBindGroup.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildBindGroup.cs new file mode 100644 index 00000000..b8a580c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildBindGroup.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildBindGroup : Rpc + { + public GuildBindGroupReq oArg = new GuildBindGroupReq(); + + public GuildBindGroupRes oRes = null; + + public override uint GetRpcType() + { + return 16003u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildBindGroup.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildBindGroup.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildBindGroup.cs.meta new file mode 100644 index 00000000..6ff29fa6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfa9c67767baafa49807e5ade18d417e +timeCreated: 1611404581 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCampInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCampInfo.cs new file mode 100644 index 00000000..5a7472bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCampInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildCampInfo : Rpc + { + public GuildCampInfoArg oArg = new GuildCampInfoArg(); + + public GuildCampInfoRes oRes = null; + + public override uint GetRpcType() + { + return 4221u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildCampInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildCampInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCampInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCampInfo.cs.meta new file mode 100644 index 00000000..e0564c87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCampInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c0626114c5713841bc2080cc9c2e392 +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCheckinNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCheckinNew.cs new file mode 100644 index 00000000..c7e99e44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCheckinNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildCheckinNew : Rpc + { + public GuildCheckinArg oArg = new GuildCheckinArg(); + + public GuildCheckinRes oRes = null; + + public override uint GetRpcType() + { + return 5584u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildCheckinNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildCheckinNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCheckinNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCheckinNew.cs.meta new file mode 100644 index 00000000..f61f0eb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildCheckinNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 451fb03eac673574ba112a8a624a57fd +timeCreated: 1611403646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs new file mode 100644 index 00000000..372cb890 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildFatigueOPNew : Rpc + { + public GuildFatigueArg oArg = new GuildFatigueArg(); + + public GuildFatigueRes oRes = null; + + public override uint GetRpcType() + { + return 10226u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildFatigueOPNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildFatigueOPNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs.meta new file mode 100644 index 00000000..b7686127 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildFatigueOPNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 997b8c87b29cb14489199ba087192787 +timeCreated: 1611404195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs new file mode 100644 index 00000000..02e77cad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildHallGetBuffList : Rpc + { + public GuildHallGetBuffList_C2M oArg = new GuildHallGetBuffList_C2M(); + + public GuildHallGetBuffList_M2C oRes = null; + + public override uint GetRpcType() + { + return 38816u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildHallGetBuffList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildHallGetBuffList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs.meta new file mode 100644 index 00000000..92a327ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallGetBuffList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5af42cb6188ab9b43b716f830d493a14 +timeCreated: 1611403795 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs new file mode 100644 index 00000000..24aaa098 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildHallUpdateBuff : Rpc + { + public GuildHallUpdateBuff_C2M oArg = new GuildHallUpdateBuff_C2M(); + + public GuildHallUpdateBuff_M2C oRes = null; + + public override uint GetRpcType() + { + return 24892u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildHallUpdateBuff.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildHallUpdateBuff.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs.meta new file mode 100644 index 00000000..36be4668 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildHallUpdateBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51223e1418329c54da6b716d3d7296b6 +timeCreated: 1611403705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs new file mode 100644 index 00000000..f6b567a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildJoinBindGroup : Rpc + { + public GuildJoinBindGroupReq oArg = new GuildJoinBindGroupReq(); + + public GuildJoinBindGroupRes oRes = null; + + public override uint GetRpcType() + { + return 12928u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildJoinBindGroup.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildJoinBindGroup.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs.meta new file mode 100644 index 00000000..918067d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildJoinBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9428d59a89ebc2848956de23b87eadb8 +timeCreated: 1611404153 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildSchoolHallGetRankList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildSchoolHallGetRankList.cs new file mode 100644 index 00000000..7d8bf5a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildSchoolHallGetRankList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildSchoolHallGetRankList : Rpc + { + public GuildSchoolHallGetRankList_C2M oArg = new GuildSchoolHallGetRankList_C2M(); + + public GuildSchoolHallGetRankList_M2C oRes = null; + + public override uint GetRpcType() + { + return 34511u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildSchoolHallGetRankList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildSchoolHallGetRankList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildSchoolHallGetRankList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildSchoolHallGetRankList.cs.meta new file mode 100644 index 00000000..3aea1ecf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildSchoolHallGetRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f103dec171ee9147ba7c1725b683010 +timeCreated: 1611404244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs new file mode 100644 index 00000000..7a63e9bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildUnBindGroup : Rpc + { + public GuildUnBindGroupReq oArg = new GuildUnBindGroupReq(); + + public GuildUnBindGroupRes oRes = null; + + public override uint GetRpcType() + { + return 28516u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildUnBindGroup.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildUnBindGroup.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs.meta new file mode 100644 index 00000000..8e317fed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildUnBindGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c40b18b6f52353b4d87a51763960e40e +timeCreated: 1611404499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs new file mode 100644 index 00000000..9e67f5f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildZiCaiDonate : Rpc + { + public GuildZiCaiDonate_C2M oArg = new GuildZiCaiDonate_C2M(); + + public GuildZiCaiDonate_M2C oRes = null; + + public override uint GetRpcType() + { + return 1738u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildZiCaiDonate.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildZiCaiDonate.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs.meta new file mode 100644 index 00000000..e6d6849b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2028942a9e5c07b488b12eb20b516bef +timeCreated: 1611403404 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonateHistory.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonateHistory.cs new file mode 100644 index 00000000..0780406a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonateHistory.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_GuildZiCaiDonateHistory : Rpc + { + public GuildZiCaiDonateHistory_C2M oArg = new GuildZiCaiDonateHistory_C2M(); + + public GuildZiCaiDonateHistory_M2C oRes = null; + + public override uint GetRpcType() + { + return 22824u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_GuildZiCaiDonateHistory.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_GuildZiCaiDonateHistory.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonateHistory.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonateHistory.cs.meta new file mode 100644 index 00000000..9b11073f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_GuildZiCaiDonateHistory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f1dbf875d5699946b5c928874192ac8 +timeCreated: 1611403700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs new file mode 100644 index 00000000..bb7f2823 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_HoldWedding : Rpc + { + public HoldWeddingReq oArg = new HoldWeddingReq(); + + public HoldWeddingRes oRes = null; + + public override uint GetRpcType() + { + return 51875u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_HoldWedding.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_HoldWedding.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs.meta new file mode 100644 index 00000000..ed286691 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_HoldWedding.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0649b82c30e26643affed59c6fb4430 +timeCreated: 1611404486 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_IbGiftHistReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_IbGiftHistReq.cs new file mode 100644 index 00000000..438db06a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_IbGiftHistReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_IbGiftHistReq : Rpc + { + public IBGiftHistAllItemArg oArg = new IBGiftHistAllItemArg(); + + public IBGiftHistAllItemRes oRes = null; + + public override uint GetRpcType() + { + return 27050u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_IbGiftHistReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_IbGiftHistReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_IbGiftHistReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_IbGiftHistReq.cs.meta new file mode 100644 index 00000000..6f33643d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_IbGiftHistReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4c748f7f31f99f459d77ab51d1046a0 +timeCreated: 1611404856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvFightReqAll.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvFightReqAll.cs new file mode 100644 index 00000000..eae1d40e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvFightReqAll.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_InvFightReqAll : Rpc + { + public InvFightArg oArg = new InvFightArg(); + + public InvFightRes oRes = null; + + public override uint GetRpcType() + { + return 56726u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_InvFightReqAll.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_InvFightReqAll.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvFightReqAll.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvFightReqAll.cs.meta new file mode 100644 index 00000000..bc052dd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvFightReqAll.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c80848bcb9b667a41909563d32936048 +timeCreated: 1611404533 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs new file mode 100644 index 00000000..faaa7901 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_InvHistoryC2MReq : Rpc + { + public InvHistoryArg oArg = new InvHistoryArg(); + + public InvHistoryRes oRes; + + public override uint GetRpcType() + { + return 29978u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_InvHistoryC2MReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_InvHistoryC2MReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs.meta new file mode 100644 index 00000000..5cebf40b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_InvHistoryC2MReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2c182af0e7d1ae4c9974768718ed1b0 +timeCreated: 1611404386 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs new file mode 100644 index 00000000..0af95eae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_JoinFmRoom : Rpc + { + public JoinLargeRoomArg oArg = new JoinLargeRoomArg(); + + public JoinLargeRoomRes oRes = null; + + public override uint GetRpcType() + { + return 25303u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_JoinFmRoom.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_JoinFmRoom.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs.meta new file mode 100644 index 00000000..d1950eba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinFmRoom.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fba147210266d8c4b8f835e3178bb5ba +timeCreated: 1611404932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs new file mode 100644 index 00000000..10db85a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_JoinLeagueEleBattle : Rpc + { + public JoinLeagueEleBattleArg oArg = new JoinLeagueEleBattleArg(); + + public JoinLeagueEleBattleRes oRes = null; + + public override uint GetRpcType() + { + return 43053u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_JoinLeagueEleBattle.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_JoinLeagueEleBattle.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs.meta new file mode 100644 index 00000000..7c15e7da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_JoinLeagueEleBattle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9de2b115dfbb1964d818e7fa34d00d67 +timeCreated: 1611404238 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_KMatchCommonReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_KMatchCommonReq.cs new file mode 100644 index 00000000..400e3ddd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_KMatchCommonReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_KMatchCommonReq : Rpc + { + public KMatchCommonArg oArg = new KMatchCommonArg(); + + public KMatchCommonRes oRes = null; + + public override uint GetRpcType() + { + return 57822u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_KMatchCommonReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_KMatchCommonReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_KMatchCommonReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_KMatchCommonReq.cs.meta new file mode 100644 index 00000000..cfc1c283 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_KMatchCommonReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40d9293e5117d8b4f9b33ed2d3626273 +timeCreated: 1611403615 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeagueBattleReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeagueBattleReq.cs new file mode 100644 index 00000000..e8f9c62e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeagueBattleReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_LeagueBattleReq : Rpc + { + public LeagueBattleReqArg oArg = new LeagueBattleReqArg(); + + public LeagueBattleReqRes oRes = null; + + public override uint GetRpcType() + { + return 8012u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_LeagueBattleReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_LeagueBattleReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeagueBattleReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeagueBattleReq.cs.meta new file mode 100644 index 00000000..4245e5c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeagueBattleReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d305aa783c72caa47a92e1ae3471d5a6 +timeCreated: 1611404597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs new file mode 100644 index 00000000..ef9062da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_LeaveFromDragonGuild : Rpc + { + public LeaveDragonGuildArg oArg = new LeaveDragonGuildArg(); + + public LeaveDragonGuildRes oRes = null; + + public override uint GetRpcType() + { + return 9882u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_LeaveFromDragonGuild.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_LeaveFromDragonGuild.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs.meta new file mode 100644 index 00000000..769300a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromDragonGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 076c45139a0516e4886e9b8116c265c1 +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromGuild.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromGuild.cs new file mode 100644 index 00000000..5a9e49a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromGuild.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_LeaveFromGuild : Rpc + { + public LeaveGuildArg oArg = new LeaveGuildArg(); + + public LeaveGuildRes oRes = null; + + public override uint GetRpcType() + { + return 2565u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_LeaveFromGuild.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_LeaveFromGuild.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromGuild.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromGuild.cs.meta new file mode 100644 index 00000000..e383beec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveFromGuild.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3d12514415231d45bcd2bd89c2f2ed0 +timeCreated: 1611404280 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs new file mode 100644 index 00000000..27f7f82e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_LeaveLeagueTeam : Rpc + { + public LeaveLeagueTeamArg oArg = new LeaveLeagueTeamArg(); + + public LeaveLeagueTeamRes oRes = null; + + public override uint GetRpcType() + { + return 47239u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_LeaveLeagueTeam.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_LeaveLeagueTeam.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs.meta new file mode 100644 index 00000000..7f8da109 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveLeagueTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f64f10174766c34194bcc798712c45e +timeCreated: 1611403516 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs new file mode 100644 index 00000000..13cf4f21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_LeavePartner : Rpc + { + public LeavePartnerArg oArg = new LeavePartnerArg(); + + public LeavePartnerRes oRes = null; + + public override uint GetRpcType() + { + return 63769u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_LeavePartner.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_LeavePartner.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs.meta new file mode 100644 index 00000000..4e459b84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeavePartner.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8b632b0c47e64945ae0f657775a73d2 +timeCreated: 1611404640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs new file mode 100644 index 00000000..2ddf1239 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_LeaveSkyTeam : Rpc + { + public LeaveSkyTeamArg oArg = new LeaveSkyTeamArg(); + + public LeaveSkyTeamRes oRes = null; + + public override uint GetRpcType() + { + return 26181u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_LeaveSkyTeam.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_LeaveSkyTeam.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs.meta new file mode 100644 index 00000000..fea4d751 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_LeaveSkyTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c4fc756696004744adc3434ecd60682 +timeCreated: 1611403801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MSGetFlowerRewardList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MSGetFlowerRewardList.cs new file mode 100644 index 00000000..34f53c2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MSGetFlowerRewardList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_MSGetFlowerRewardList : Rpc + { + public NewGetFlowerRewardListArg oArg = new NewGetFlowerRewardListArg(); + + public NewGetFlowerRewardListRes oRes = null; + + public override uint GetRpcType() + { + return 16271u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_MSGetFlowerRewardList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_MSGetFlowerRewardList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MSGetFlowerRewardList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MSGetFlowerRewardList.cs.meta new file mode 100644 index 00000000..03c4649e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MSGetFlowerRewardList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 952fbed1f64328444960ccdb4917e664 +timeCreated: 1611404180 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MTShowTopList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MTShowTopList.cs new file mode 100644 index 00000000..9d76cb80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MTShowTopList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_MTShowTopList : Rpc + { + public TShowTopListArg oArg = new TShowTopListArg(); + + public TShowTopListRes oRes = null; + + public override uint GetRpcType() + { + return 10166u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_MTShowTopList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_MTShowTopList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MTShowTopList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MTShowTopList.cs.meta new file mode 100644 index 00000000..bf088eb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MTShowTopList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 465ed23697d109c4284c84eb90139e20 +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MailOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MailOp.cs new file mode 100644 index 00000000..1170add4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MailOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_MailOp : Rpc + { + public MailOpArg oArg = new MailOpArg(); + + public MailOpRes oRes = null; + + public override uint GetRpcType() + { + return 50122u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_MailOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_MailOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MailOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MailOp.cs.meta new file mode 100644 index 00000000..ea12e9a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MailOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e65cc57ef47bf94aa3f4bab69b2a737 +timeCreated: 1611403203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MarriageRelationOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MarriageRelationOp.cs new file mode 100644 index 00000000..1f76e6ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MarriageRelationOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_MarriageRelationOp : Rpc + { + public MarriageRelationOpArg oArg = new MarriageRelationOpArg(); + + public MarriageRelationOpRes oRes = null; + + public override uint GetRpcType() + { + return 24966u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_MarriageRelationOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_MarriageRelationOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MarriageRelationOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MarriageRelationOp.cs.meta new file mode 100644 index 00000000..7f1845ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MarriageRelationOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6cd2fecb47d4c4e43ad08087e4f3da5b +timeCreated: 1611403899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs new file mode 100644 index 00000000..7fac7ea0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_MentorMyBeAppliedMsg : Rpc + { + public MentorMyBeAppliedMsgArg oArg = new MentorMyBeAppliedMsgArg(); + + public MentorMyBeAppliedMsgRes oRes = null; + + public override uint GetRpcType() + { + return 45205u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_MentorMyBeAppliedMsg.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_MentorMyBeAppliedMsg.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs.meta new file mode 100644 index 00000000..ff542520 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorMyBeAppliedMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 133bf813196f0fd40be259cb44668b77 +timeCreated: 1611403246 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorRelationOp.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorRelationOp.cs new file mode 100644 index 00000000..0c828871 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorRelationOp.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_MentorRelationOp : Rpc + { + public MentorRelationOpArg oArg = new MentorRelationOpArg(); + + public MentorRelationOpRes oRes = null; + + public override uint GetRpcType() + { + return 10644u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_MentorRelationOp.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_MentorRelationOp.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorRelationOp.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorRelationOp.cs.meta new file mode 100644 index 00000000..ec2743cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_MentorRelationOp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15f388275b9cfcd46b21b423a8df4d23 +timeCreated: 1611403267 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyDragonGuildName.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyDragonGuildName.cs new file mode 100644 index 00000000..0007bfd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyDragonGuildName.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ModifyDragonGuildName : Rpc + { + public ModifyDragonGuildNameArg oArg = new ModifyDragonGuildNameArg(); + + public ModifyDragonGuildNameRes oRes = null; + + public override uint GetRpcType() + { + return 10624u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ModifyDragonGuildName.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ModifyDragonGuildName.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyDragonGuildName.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyDragonGuildName.cs.meta new file mode 100644 index 00000000..f660f30d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyDragonGuildName.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4c6ff6bd99791d4a88768ef36b6337f +timeCreated: 1611404503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs new file mode 100644 index 00000000..6829fcd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ModifyMsGuildName : Rpc + { + public ModifyArg oArg = new ModifyArg(); + + public ModifyRes oRes = null; + + public override uint GetRpcType() + { + return 21709u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ModifyMsGuildName.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ModifyMsGuildName.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs.meta new file mode 100644 index 00000000..fd0246c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ModifyMsGuildName.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2098abfd927108e468503d66f0676413 +timeCreated: 1611403407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs new file mode 100644 index 00000000..05d19363 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_NpcFlReqC2M : Rpc + { + public NpcFlArg oArg = new NpcFlArg(); + + public NpcFlRes oRes = null; + + public override uint GetRpcType() + { + return 11607u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_NpcFlReqC2M.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_NpcFlReqC2M.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs.meta new file mode 100644 index 00000000..ff154093 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_NpcFlReqC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 26c3ec21514e5964e92c0fbfd2217a0d +timeCreated: 1611403469 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs new file mode 100644 index 00000000..35fc0d14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_OPenGardenFarmland : Rpc + { + public OpenGardenFarmlandArg oArg = new OpenGardenFarmlandArg(); + + public OpenGardenFarmlandRes oRes = null; + + public override uint GetRpcType() + { + return 42589u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_OPenGardenFarmland.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_OPenGardenFarmland.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs.meta new file mode 100644 index 00000000..c9d4f216 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_OPenGardenFarmland.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b894bdd6c98d5254dbf16fd67d055bba +timeCreated: 1611404405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_Open520FestivityRedPacket.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_Open520FestivityRedPacket.cs new file mode 100644 index 00000000..c1191302 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_Open520FestivityRedPacket.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_Open520FestivityRedPacket : Rpc + { + public Open520FestivityRedPacketArg oArg = new Open520FestivityRedPacketArg(); + + public Open520FestivityRedPacketRes oRes = null; + + public override uint GetRpcType() + { + return 57488u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_Open520FestivityRedPacket.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_Open520FestivityRedPacket.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_Open520FestivityRedPacket.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_Open520FestivityRedPacket.cs.meta new file mode 100644 index 00000000..09a8c739 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_Open520FestivityRedPacket.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8894be6e5d1244d46b05bb4ac3654d17 +timeCreated: 1611404085 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs new file mode 100644 index 00000000..dc2eb396 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_PayNotify : Rpc + { + public PayNotifyArg oArg = new PayNotifyArg(); + + public PayNotifyRes oRes = null; + + public override uint GetRpcType() + { + return 32125u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_PayNotify.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_PayNotify.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs.meta new file mode 100644 index 00000000..98029397 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PayNotify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cdbe3fefb1cbc945b5d32932ec5b3ed +timeCreated: 1611403693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs new file mode 100644 index 00000000..1c6fd8ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_PkReqC2M : Rpc + { + public PkReqArg oArg = new PkReqArg(); + + public PkReqRes oRes = null; + + public override uint GetRpcType() + { + return 41221u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_PkReqC2M.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_PkReqC2M.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs.meta new file mode 100644 index 00000000..62124eca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PkReqC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b3965afe4220f74cb65578fc82a16e8 +timeCreated: 1611403993 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantCultivation.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantCultivation.cs new file mode 100644 index 00000000..e6d2cfc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantCultivation.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_PlantCultivation : Rpc + { + public PlantCultivationArg oArg = new PlantCultivationArg(); + + public PlantCultivationRes oRes = null; + + public override uint GetRpcType() + { + return 61295u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_PlantCultivation.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_PlantCultivation.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantCultivation.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantCultivation.cs.meta new file mode 100644 index 00000000..2119e594 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantCultivation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2bfcd7d267bb27447a9acc307e6524d0 +timeCreated: 1611403500 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs new file mode 100644 index 00000000..abd73b64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_PlantHarvest : Rpc + { + public PlantHarvestArg oArg = new PlantHarvestArg(); + + public PlantHarvestRes oRes = null; + + public override uint GetRpcType() + { + return 39568u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_PlantHarvest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_PlantHarvest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs.meta new file mode 100644 index 00000000..f28820ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_PlantHarvest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ac803dd8372cd14a95a2259689c39a0 +timeCreated: 1611403889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs new file mode 100644 index 00000000..37478d3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_QueryBigMeleeRank : Rpc + { + public QueryMayhemRankArg oArg = new QueryMayhemRankArg(); + + public QueryMayhemRankRes oRes = null; + + public override uint GetRpcType() + { + return 33332u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_QueryBigMeleeRank.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_QueryBigMeleeRank.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs.meta new file mode 100644 index 00000000..4103e335 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryBigMeleeRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 61f5405109bdede459e283416eecc6dc +timeCreated: 1611403839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs new file mode 100644 index 00000000..12d93061 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_QueryGuildCheckinNew : Rpc + { + public QueryGuildCheckinArg oArg = new QueryGuildCheckinArg(); + + public QueryGuildCheckinRes oRes = null; + + public override uint GetRpcType() + { + return 56433u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_QueryGuildCheckinNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_QueryGuildCheckinNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs.meta new file mode 100644 index 00000000..e8d39990 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryGuildCheckinNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16082ed55b3aa8b479a4b70de45dc09b +timeCreated: 1611403268 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs new file mode 100644 index 00000000..04853142 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_QueryResWar : Rpc + { + public QueryResWarArg oArg = new QueryResWarArg(); + + public QueryResWarRes oRes = null; + + public override uint GetRpcType() + { + return 41509u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_QueryResWar.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_QueryResWar.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs.meta new file mode 100644 index 00000000..fd99d994 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8afe5997111b9c4db58c0a857c9f518 +timeCreated: 1611404894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs new file mode 100644 index 00000000..c8c8fff1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_QueryResWarRoleRank : Rpc + { + public ResWarRoleRankArg oArg = new ResWarRoleRankArg(); + + public ResWarRoleRankRes oRes = null; + + public override uint GetRpcType() + { + return 27001u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_QueryResWarRoleRank.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_QueryResWarRoleRank.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs.meta new file mode 100644 index 00000000..8151c12c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_QueryResWarRoleRank.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae800da0bda390c498627f9314609310 +timeCreated: 1611404340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RandomFriendWaitListNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RandomFriendWaitListNew.cs new file mode 100644 index 00000000..4c95fded --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RandomFriendWaitListNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_RandomFriendWaitListNew : Rpc + { + public RandomFriendWaitListArg oArg = new RandomFriendWaitListArg(); + + public RandomFriendWaitListRes oRes = null; + + public override uint GetRpcType() + { + return 65353u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_RandomFriendWaitListNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_RandomFriendWaitListNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RandomFriendWaitListNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RandomFriendWaitListNew.cs.meta new file mode 100644 index 00000000..c3051ead --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RandomFriendWaitListNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ce7534f883d9434a9df400bf53f6347 +timeCreated: 1611403693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs new file mode 100644 index 00000000..677f3ba6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_RecAlliance : Rpc + { + public RecAllianceArg oArg = new RecAllianceArg(); + + public RecAllianceRes oRes = null; + + public override uint GetRpcType() + { + return 31937u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_RecAlliance.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_RecAlliance.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs.meta new file mode 100644 index 00000000..492a1090 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RecAlliance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63995147a8a7bc048851412654a0de99 +timeCreated: 1611403845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs new file mode 100644 index 00000000..348e0902 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_RemoveBlackListNew : Rpc + { + public RemoveBlackListArg oArg = new RemoveBlackListArg(); + + public RemoveBlackListRes oRes = null; + + public override uint GetRpcType() + { + return 38702u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_RemoveBlackListNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_RemoveBlackListNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs.meta new file mode 100644 index 00000000..83ebaad8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveBlackListNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e95f98cf8ea1e5c40a93ed1360414fd8 +timeCreated: 1611404756 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveFriendNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveFriendNew.cs new file mode 100644 index 00000000..74653598 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveFriendNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_RemoveFriendNew : Rpc + { + public RemoveFriendArg oArg = new RemoveFriendArg(); + + public RemoveFriendRes oRes = null; + + public override uint GetRpcType() + { + return 2841u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_RemoveFriendNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_RemoveFriendNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveFriendNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveFriendNew.cs.meta new file mode 100644 index 00000000..4eeb8d1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_RemoveFriendNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e49e597d343ce954aa827c835d38267f +timeCreated: 1611404739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs new file mode 100644 index 00000000..f5100e85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildArenaHistory : Rpc + { + public ReqGuildArenaHistoryRes oArg = new ReqGuildArenaHistoryRes(); + + public ReqGuildArenaHistoryRse oRes = null; + + public override uint GetRpcType() + { + return 2922u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildArenaHistory.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildArenaHistory.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs.meta new file mode 100644 index 00000000..622c1624 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildArenaHistory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1ddc5de9e15bd44fa24818a016e5844 +timeCreated: 1611404255 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs new file mode 100644 index 00000000..cd217ed7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildBossInfo : Rpc + { + public AskGuildBossInfoArg oArg = new AskGuildBossInfoArg(); + + public AskGuildBossInfoRes oRes = null; + + public override uint GetRpcType() + { + return 38917u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildBossInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildBossInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs.meta new file mode 100644 index 00000000..e9f6f31d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildBossInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 753b4629268150841bc0b18d4b828765 +timeCreated: 1611403946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs new file mode 100644 index 00000000..cc4bd29a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildInheritInfo : Rpc + { + public ReqGuildInheritInfoArg oArg = new ReqGuildInheritInfoArg(); + + public ReqGuildInheritInfoRes oRes = null; + + public override uint GetRpcType() + { + return 7131u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildInheritInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildInheritInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs.meta new file mode 100644 index 00000000..fa583e3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildInheritInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a1d5617cf1887340bcec54a6915de46 +timeCreated: 1611403663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs new file mode 100644 index 00000000..e119d036 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildLadderInfo : Rpc + { + public ReqGuildLadderInfoAgr oArg = new ReqGuildLadderInfoAgr(); + + public ReqGuildLadderInfoRes oRes = null; + + public override uint GetRpcType() + { + return 44006u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildLadderInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildLadderInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs.meta new file mode 100644 index 00000000..1108e09e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: facb59af5835c4b4fa58b1bb7e0a03fc +timeCreated: 1611404928 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderRnakInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderRnakInfo.cs new file mode 100644 index 00000000..20a4a105 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderRnakInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildLadderRnakInfo : Rpc + { + public ReqGuildLadderRnakInfoArg oArg = new ReqGuildLadderRnakInfoArg(); + + public ReqGuildLadderRnakInfoRes oRes = null; + + public override uint GetRpcType() + { + return 39925u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildLadderRnakInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildLadderRnakInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderRnakInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderRnakInfo.cs.meta new file mode 100644 index 00000000..b2a3fd12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildLadderRnakInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7880d070ec04c48458b47cfeb0ad41b2 +timeCreated: 1611403980 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs new file mode 100644 index 00000000..cd03c930 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildList : Rpc + { + public FetchGuildListArg oArg = new FetchGuildListArg(); + + public FetchGuildListRes oRes = null; + + public override uint GetRpcType() + { + return 46835u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs.meta new file mode 100644 index 00000000..6c2f4a94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6cc0642bff9b0394185a7f57750100a7 +timeCreated: 1611403899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs new file mode 100644 index 00000000..92c03460 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildRankInfo : Rpc + { + public ReqGuildRankInfoArg oArg = new ReqGuildRankInfoArg(); + + public ReqGuildRankInfoRes oRes = null; + + public override uint GetRpcType() + { + return 48521u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildRankInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildRankInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs.meta new file mode 100644 index 00000000..be2e2898 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 413fad207f5e9f14c82e9da3265e2349 +timeCreated: 1611403617 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs new file mode 100644 index 00000000..799c9fc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildTerrAllianceInfo : Rpc + { + public ReqGuildTerrAllianceInfoArg oArg = new ReqGuildTerrAllianceInfoArg(); + + public ReqGuildTerrAllianceInfoRes oRes = null; + + public override uint GetRpcType() + { + return 63044u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildTerrAllianceInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildTerrAllianceInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs.meta new file mode 100644 index 00000000..2ea52324 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrAllianceInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b0f1ed49397f01479ba375388bc3341 +timeCreated: 1611403890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrChallInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrChallInfo.cs new file mode 100644 index 00000000..a9472ee5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrChallInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildTerrChallInfo : Rpc + { + public ReqGuildTerrChallInfoArg oArg = new ReqGuildTerrChallInfoArg(); + + public ReqGuildTerrChallInfoRes oRes = null; + + public override uint GetRpcType() + { + return 9791u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildTerrChallInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildTerrChallInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrChallInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrChallInfo.cs.meta new file mode 100644 index 00000000..a9e54620 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrChallInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 243dfd24ff47be947bcdc89cbb520408 +timeCreated: 1611403460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs new file mode 100644 index 00000000..df6627c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildTerrCityInfo : Rpc + { + public ReqGuildTerrCityInfoArg oArg = new ReqGuildTerrCityInfoArg(); + + public ReqGuildTerrCityInfo oRes = null; + + public override uint GetRpcType() + { + return 47229u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildTerrCityInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildTerrCityInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs.meta new file mode 100644 index 00000000..615b3e41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrCityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7909142c3270e74f9cb7bba89af8600 +timeCreated: 1611404749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrIntellInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrIntellInfo.cs new file mode 100644 index 00000000..d2fe663d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrIntellInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqGuildTerrIntellInfo : Rpc + { + public ReqGuildTerrIntellInfoArg oArg = new ReqGuildTerrIntellInfoArg(); + + public ReqGuildTerrIntellInfoRes oRes = null; + + public override uint GetRpcType() + { + return 43276u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqGuildTerrIntellInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqGuildTerrIntellInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrIntellInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrIntellInfo.cs.meta new file mode 100644 index 00000000..f82b3ac7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqGuildTerrIntellInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54cd6f11c3179404d9044b6c2b3e5ee6 +timeCreated: 1611403735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqPlatFriendRankList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqPlatFriendRankList.cs new file mode 100644 index 00000000..a4ecd1cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqPlatFriendRankList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReqPlatFriendRankList : Rpc + { + public ReqPlatFriendRankListArg oArg = new ReqPlatFriendRankListArg(); + + public ReqPlatFriendRankListRes oRes = null; + + public override uint GetRpcType() + { + return 43806u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReqPlatFriendRankList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReqPlatFriendRankList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqPlatFriendRankList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqPlatFriendRankList.cs.meta new file mode 100644 index 00000000..775139c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReqPlatFriendRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4719c5b6eb5155c4a90a7982afcc3f44 +timeCreated: 1611403652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ResWarExplore.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ResWarExplore.cs new file mode 100644 index 00000000..4034aa88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ResWarExplore.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ResWarExplore : Rpc + { + public ResWarExploreArg oArg = new ResWarExploreArg(); + + public ResWarExploreRes oRes = null; + + public override uint GetRpcType() + { + return 33965u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ResWarExplore.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ResWarExplore.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ResWarExplore.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ResWarExplore.cs.meta new file mode 100644 index 00000000..760bdaf5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ResWarExplore.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc7ef95cfcb7de74f98cbdb434961323 +timeCreated: 1611404447 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs new file mode 100644 index 00000000..d63fbff1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ReturnToSelectRole : Rpc + { + public ReturnToSelectRoleArg oArg = new ReturnToSelectRoleArg(); + + public ReturnToSelectRoleRes oRes = null; + + public override uint GetRpcType() + { + return 25477u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ReturnToSelectRole.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ReturnToSelectRole.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs.meta new file mode 100644 index 00000000..b4da801d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ReturnToSelectRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4a0ea574eb56db549ad8ed53911415eb +timeCreated: 1611403663 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SelectRoleNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SelectRoleNew.cs new file mode 100644 index 00000000..0f308f7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SelectRoleNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_SelectRoleNew : Rpc + { + public SelectRoleNewArg oArg = new SelectRoleNewArg(); + + public SelectRoleNewRes oRes = null; + + public override uint GetRpcType() + { + return 217u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_SelectRoleNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_SelectRoleNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SelectRoleNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SelectRoleNew.cs.meta new file mode 100644 index 00000000..86ece4d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SelectRoleNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3071df5cbb76d5647b7360f976676204 +timeCreated: 1611403521 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs new file mode 100644 index 00000000..216fb1aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_SendGift2PlatFriend : Rpc + { + public SendGift2PlatFriendArg oArg = new SendGift2PlatFriendArg(); + + public SendGift2PlatFriendRes oRes = null; + + public override uint GetRpcType() + { + return 57764u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_SendGift2PlatFriend.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_SendGift2PlatFriend.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs.meta new file mode 100644 index 00000000..754e5518 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGift2PlatFriend.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dac5a9507fadb6b4f9f136a45bd177bc +timeCreated: 1611404649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGuildBonusInSendList.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGuildBonusInSendList.cs new file mode 100644 index 00000000..70c12015 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGuildBonusInSendList.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_SendGuildBonusInSendList : Rpc + { + public SendGuildBonusInSendListArg oArg = new SendGuildBonusInSendListArg(); + + public SendGuildBonusInSendListRes oRes = null; + + public override uint GetRpcType() + { + return 64498u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_SendGuildBonusInSendList.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_SendGuildBonusInSendList.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGuildBonusInSendList.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGuildBonusInSendList.cs.meta new file mode 100644 index 00000000..16491b0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SendGuildBonusInSendList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9432c84286b4580438ecc66fafece7b7 +timeCreated: 1611404153 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs new file mode 100644 index 00000000..49f5c5df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_SetSubscribe : Rpc + { + public SetSubscirbeArg oArg = new SetSubscirbeArg(); + + public SetSubscribeRes oRes = null; + + public override uint GetRpcType() + { + return 40540u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_SetSubscribe.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_SetSubscribe.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs.meta new file mode 100644 index 00000000..aeb1d2c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SetSubscribe.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b431c5c36447c74429e51548d5b21863 +timeCreated: 1611404392 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs new file mode 100644 index 00000000..c662800c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_ShowFlowerPageNew : Rpc + { + public ShowFlowerPageArg oArg = new ShowFlowerPageArg(); + + public ShowFlowerPageRes oRes = null; + + public override uint GetRpcType() + { + return 49446u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_ShowFlowerPageNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_ShowFlowerPageNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs.meta new file mode 100644 index 00000000..953d918c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_ShowFlowerPageNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0857387630d62eb49be141c4c9af0702 +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs new file mode 100644 index 00000000..41d5b539 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_SkyCityEnter : Rpc + { + public SkyCityEnterArg oArg = new SkyCityEnterArg(); + + public SkyCityEnterRes oRes = null; + + public override uint GetRpcType() + { + return 49485u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_SkyCityEnter.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_SkyCityEnter.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs.meta new file mode 100644 index 00000000..c23badcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCityEnter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfba6a07164091b4894d90f220565130 +timeCreated: 1611404694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs new file mode 100644 index 00000000..79d0faba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_SkyCraftMatchReq : Rpc + { + public SkyCraftMatchReq oArg = new SkyCraftMatchReq(); + + public SkyCraftMatchRes oRes = null; + + public override uint GetRpcType() + { + return 26016u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_SkyCraftMatchReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_SkyCraftMatchReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs.meta new file mode 100644 index 00000000..503d4d60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_SkyCraftMatchReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e229e10ba8c3e044b8c349b0a8a3f6fb +timeCreated: 1611404704 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs new file mode 100644 index 00000000..280937af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_StartPlant : Rpc + { + public StartPlantArg oArg = new StartPlantArg(); + + public StartPlantRes oRes = null; + + public override uint GetRpcType() + { + return 2834u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_StartPlant.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_StartPlant.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs.meta new file mode 100644 index 00000000..10c7013a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartPlant.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cec8ed9c5a9b2442b37d54c42adb2cb +timeCreated: 1611403693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartResWarPVE.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartResWarPVE.cs new file mode 100644 index 00000000..68e96e82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartResWarPVE.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_StartResWarPVE : Rpc + { + public ResWarPVEArg oArg = new ResWarPVEArg(); + + public ResWarPVERes oRes = null; + + public override uint GetRpcType() + { + return 35398u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_StartResWarPVE.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_StartResWarPVE.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartResWarPVE.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartResWarPVE.cs.meta new file mode 100644 index 00000000..7038cbcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartResWarPVE.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6953652b7edecd347aebba866dc0fdb6 +timeCreated: 1611403885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartWeddingCar.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartWeddingCar.cs new file mode 100644 index 00000000..7d8b1bd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartWeddingCar.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_StartWeddingCar : Rpc + { + public StartWeddingCarArg oArg = new StartWeddingCarArg(); + + public StartWeddingCarRes oRes = null; + + public override uint GetRpcType() + { + return 26388u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_StartWeddingCar.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_StartWeddingCar.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartWeddingCar.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartWeddingCar.cs.meta new file mode 100644 index 00000000..af917185 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StartWeddingCar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03f97be718f3cbc40a86d227ce178c88 +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs new file mode 100644 index 00000000..78b3b1fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_StudyGuildSkillNew : Rpc + { + public StudyGuildSkillArg oArg = new StudyGuildSkillArg(); + + public StudyGuildSkillRes oRes = null; + + public override uint GetRpcType() + { + return 45669u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_StudyGuildSkillNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_StudyGuildSkillNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs.meta new file mode 100644 index 00000000..37f356e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_StudyGuildSkillNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f430d6880a34604299d6b2a9c64c811 +timeCreated: 1611403401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TakeMarriageChest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TakeMarriageChest.cs new file mode 100644 index 00000000..a84a8ac6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TakeMarriageChest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_TakeMarriageChest : Rpc + { + public TakeMarriageChestArg oArg = new TakeMarriageChestArg(); + + public TakeMarriageChestRes oRes = null; + + public override uint GetRpcType() + { + return 38713u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_TakeMarriageChest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_TakeMarriageChest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TakeMarriageChest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TakeMarriageChest.cs.meta new file mode 100644 index 00000000..4df1baac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TakeMarriageChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b750f128a1bd98408e2315cc91f464d +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TeamRequestC2M.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TeamRequestC2M.cs new file mode 100644 index 00000000..af046d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TeamRequestC2M.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_TeamRequestC2M : Rpc + { + public TeamOPArg oArg = new TeamOPArg(); + + public TeamOPRes oRes; + + public override uint GetRpcType() + { + return 30954u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_TeamRequestC2M.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_TeamRequestC2M.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TeamRequestC2M.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TeamRequestC2M.cs.meta new file mode 100644 index 00000000..6df4f419 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TeamRequestC2M.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c46dc34d718fea54aa74f23295fdf843 +timeCreated: 1611404501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs new file mode 100644 index 00000000..543f9289 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_TryAlliance : Rpc + { + public TryAllianceArg oArg = new TryAllianceArg(); + + public TryAlliance oRes = null; + + public override uint GetRpcType() + { + return 20216u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_TryAlliance.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_TryAlliance.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs.meta new file mode 100644 index 00000000..e93954e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryAlliance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68a03a5e654b05046a269dc8a1c93b49 +timeCreated: 1611403883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryDance.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryDance.cs new file mode 100644 index 00000000..483492e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryDance.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_TryDance : Rpc + { + public TryDanceArg oArg = new TryDanceArg(); + + public TryDanceRes oRes = null; + + public override uint GetRpcType() + { + return 54323u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_TryDance.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_TryDance.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryDance.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryDance.cs.meta new file mode 100644 index 00000000..8e5ee3b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryDance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f107505ec188cf84786992130bdebfc2 +timeCreated: 1611404835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryFish.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryFish.cs new file mode 100644 index 00000000..299d830e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryFish.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_TryFish : Rpc + { + public TryFishArg oArg = new TryFishArg(); + + public TryFishRes oRes = null; + + public override uint GetRpcType() + { + return 7028u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_TryFish.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_TryFish.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryFish.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryFish.cs.meta new file mode 100644 index 00000000..3c7ff79c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_TryFish.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bebec7b5b079c0d498d8a26645a35d9d +timeCreated: 1611404481 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs new file mode 100644 index 00000000..a61631f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_UpdateMentorApplyStudentInfo : Rpc + { + public UpdateMentorApplyStudentInfoArg oArg = new UpdateMentorApplyStudentInfoArg(); + + public UpdateMentorApplyStudentInfoRes oRes = null; + + public override uint GetRpcType() + { + return 55126u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_UpdateMentorApplyStudentInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_UpdateMentorApplyStudentInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs.meta new file mode 100644 index 00000000..0581f936 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UpdateMentorApplyStudentInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 622af9305fe2dc04992dc5b0ef7ff358 +timeCreated: 1611403840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs new file mode 100644 index 00000000..344bcc13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_UseGuildBuff : Rpc + { + public UseGuildBuffArg oArg = new UseGuildBuffArg(); + + public UseGuildBuffRes oRes = null; + + public override uint GetRpcType() + { + return 15817u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_UseGuildBuff.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_UseGuildBuff.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs.meta new file mode 100644 index 00000000..bd7a3ace --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_UseGuildBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 593243dc0e40a89478a3dfaa901b432c +timeCreated: 1611403762 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WeddingInviteOperator.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WeddingInviteOperator.cs new file mode 100644 index 00000000..f1b4690e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WeddingInviteOperator.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_WeddingInviteOperator : Rpc + { + public WeddingInviteOperatorArg oArg = new WeddingInviteOperatorArg(); + + public WeddingInviteOperatorRes oRes = null; + + public override uint GetRpcType() + { + return 8562u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_WeddingInviteOperator.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_WeddingInviteOperator.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WeddingInviteOperator.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WeddingInviteOperator.cs.meta new file mode 100644 index 00000000..aeb199b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WeddingInviteOperator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f4969058956bed4aa63572e7d829da1 +timeCreated: 1611403610 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs new file mode 100644 index 00000000..8d02048e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_WorldBossEnd : Rpc + { + public WorldBossEndArg oArg = new WorldBossEndArg(); + + public WorldBossEndRes oRes = null; + + public override uint GetRpcType() + { + return 53655u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_WorldBossEnd.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_WorldBossEnd.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs.meta new file mode 100644 index 00000000..d9740b59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossEnd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d3edea035741e548afc56cb2a539eeb +timeCreated: 1611403351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossGuildAddAttr.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossGuildAddAttr.cs new file mode 100644 index 00000000..f64c5431 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossGuildAddAttr.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_WorldBossGuildAddAttr : Rpc + { + public WorldBossGuildAddAttrArg oArg = new WorldBossGuildAddAttrArg(); + + public WorldBossGuildAddAttrRes oRes = null; + + public override uint GetRpcType() + { + return 9805u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_WorldBossGuildAddAttr.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_WorldBossGuildAddAttr.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossGuildAddAttr.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossGuildAddAttr.cs.meta new file mode 100644 index 00000000..a4d9b249 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_WorldBossGuildAddAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b1b57a8660765046ae5e4051194f96e +timeCreated: 1611403314 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_applyguildarena.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_applyguildarena.cs new file mode 100644 index 00000000..0f239165 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_applyguildarena.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_applyguildarena : Rpc + { + public applyguildarenaarg oArg = new applyguildarenaarg(); + + public applyguildarenares oRes = null; + + public override uint GetRpcType() + { + return 50879u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_applyguildarena.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_applyguildarena.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_applyguildarena.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_applyguildarena.cs.meta new file mode 100644 index 00000000..19e8fbaf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_applyguildarena.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d7d02343c851f84ba2a1d4021de056c +timeCreated: 1611403506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs new file mode 100644 index 00000000..b32979cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_chat : Rpc + { + public ChatArg oArg = new ChatArg(); + + public ChatRes oRes = null; + + public override uint GetRpcType() + { + return 56705u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_chat.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_chat.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs.meta new file mode 100644 index 00000000..e3ac6575 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_chat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06a7d7cc76beae84dae7858a2db6da96 +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getapplyguildlist.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getapplyguildlist.cs new file mode 100644 index 00000000..a0278110 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getapplyguildlist.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_getapplyguildlist : Rpc + { + public getapplyguildlistarg oArg = new getapplyguildlistarg(); + + public getapplyguildlistres oRes = null; + + public override uint GetRpcType() + { + return 31771u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_getapplyguildlist.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_getapplyguildlist.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getapplyguildlist.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getapplyguildlist.cs.meta new file mode 100644 index 00000000..0d19bf9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getapplyguildlist.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f159eff79958a674087b7852a63a74c4 +timeCreated: 1611404837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs new file mode 100644 index 00000000..ec1bbf7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_getguildbosstimeleft : Rpc + { + public getguildbosstimeleftArg oArg = new getguildbosstimeleftArg(); + + public getguildbosstimeleftRes oRes = null; + + public override uint GetRpcType() + { + return 25923u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_getguildbosstimeleft.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_getguildbosstimeleft.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs.meta new file mode 100644 index 00000000..2ca09e13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getguildbosstimeleft.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d2fef1818a4df74a9a2bac790190a8f +timeCreated: 1611403351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getintegralbattleInfo.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getintegralbattleInfo.cs new file mode 100644 index 00000000..2cac1bd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getintegralbattleInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_getintegralbattleInfo : Rpc + { + public getintegralbattleInfoarg oArg = new getintegralbattleInfoarg(); + + public getintegralbattleInfores oRes = null; + + public override uint GetRpcType() + { + return 27825u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_getintegralbattleInfo.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_getintegralbattleInfo.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getintegralbattleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getintegralbattleInfo.cs.meta new file mode 100644 index 00000000..2720d398 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_getintegralbattleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f48e0b50e0be837408019eb41a2c474e +timeCreated: 1611404854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs new file mode 100644 index 00000000..1fe92b63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2M_gmfjoinreq : Rpc + { + public gmfjoinarg oArg = new gmfjoinarg(); + + public gmfjoinres oRes = null; + + public override uint GetRpcType() + { + return 37651u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2M_gmfjoinreq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2M_gmfjoinreq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs.meta new file mode 100644 index 00000000..2809bf6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2M_gmfjoinreq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 946a1db524dd7a64f8cb9bfaa62c9b65 +timeCreated: 1611404154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_CreateRoleNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_CreateRoleNew.cs new file mode 100644 index 00000000..79f3e3b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_CreateRoleNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2N_CreateRoleNew : Rpc + { + public CreateRoleNewArg oArg = new CreateRoleNewArg(); + + public CreateRoleNewRes oRes = new CreateRoleNewRes(); + + public override uint GetRpcType() + { + return 13034u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2N_CreateRoleNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2N_CreateRoleNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_CreateRoleNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_CreateRoleNew.cs.meta new file mode 100644 index 00000000..8c94a8c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_CreateRoleNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f53a663731002a343bc42b4b21ba96c9 +timeCreated: 1611404875 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_LoginReconnectReq.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_LoginReconnectReq.cs new file mode 100644 index 00000000..f698a0ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_LoginReconnectReq.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2N_LoginReconnectReq : Rpc + { + public LoginReconnectReqArg oArg = new LoginReconnectReqArg(); + + public LoginReconnectReqRes oRes = null; + + public override uint GetRpcType() + { + return 25422u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2N_LoginReconnectReq.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2N_LoginReconnectReq.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_LoginReconnectReq.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_LoginReconnectReq.cs.meta new file mode 100644 index 00000000..01b1be52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_LoginReconnectReq.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e3dbc501d48539349a2acc59ba6dcb13 +timeCreated: 1611404734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs new file mode 100644 index 00000000..38a7f7db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2N_ReturnToSelectRole : Rpc + { + public ReturnToSelectRoleArg oArg = new ReturnToSelectRoleArg(); + + public ReturnToSelectRoleRes oRes = new ReturnToSelectRoleRes(); + + public override uint GetRpcType() + { + return 25477u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2N_ReturnToSelectRole.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2N_ReturnToSelectRole.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs.meta new file mode 100644 index 00000000..dfb53c10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_ReturnToSelectRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f19bbd7b0e4f682408382370e8db7dbf +timeCreated: 1611404839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_SelectRoleNew.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_SelectRoleNew.cs new file mode 100644 index 00000000..7805a095 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_SelectRoleNew.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2N_SelectRoleNew : Rpc + { + public SelectRoleNewArg oArg = new SelectRoleNewArg(); + + public SelectRoleNewRes oRes = new SelectRoleNewRes(); + + public override uint GetRpcType() + { + return 217u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2N_SelectRoleNew.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2N_SelectRoleNew.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_SelectRoleNew.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_SelectRoleNew.cs.meta new file mode 100644 index 00000000..3c7005d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2N_SelectRoleNew.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c11e0e9743ff27f498431cf39c8e542f +timeCreated: 1611404488 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_ClientLoginRequest.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_ClientLoginRequest.cs new file mode 100644 index 00000000..9673e83b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_ClientLoginRequest.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2T_ClientLoginRequest : Rpc + { + public LoginArg oArg = new LoginArg(); + + public LoginRes oRes = new LoginRes(); + + public override uint GetRpcType() + { + return 10091u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2T_ClientLoginRequest.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2T_ClientLoginRequest.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_ClientLoginRequest.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_ClientLoginRequest.cs.meta new file mode 100644 index 00000000..5b49a499 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_ClientLoginRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7abcd851489530a4bb2c1d9d75a53d7c +timeCreated: 1611403991 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs new file mode 100644 index 00000000..01b82b8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2T_Reconnect : Rpc + { + public ReconnArg oArg = new ReconnArg(); + + public ReconnRes oRes = new ReconnRes(); + + public override uint GetRpcType() + { + return 28358u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2T_Reconnect.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2T_Reconnect.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs.meta new file mode 100644 index 00000000..e8c160d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_Reconnect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4be152616e6aa3408227908192195ad +timeCreated: 1611404740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs new file mode 100644 index 00000000..541d9e89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs @@ -0,0 +1,40 @@ +using System; +using System.IO; +using KKSG; +using ProtoBuf; + +namespace XMainClient +{ + internal class RpcC2T_UpLoadAudioToGate : Rpc + { + public UpLoadAudioReq oArg = new UpLoadAudioReq(); + + public UpLoadAudioRes oRes = null; + + public override uint GetRpcType() + { + return 23176u; + } + + public override void Serialize(MemoryStream stream) + { + Serializer.Serialize(stream, this.oArg); + } + + public override void DeSerialize(MemoryStream stream) + { + this.oRes = Serializer.Deserialize(stream); + } + + public override void Process() + { + base.Process(); + Process_RpcC2T_UpLoadAudioToGate.OnReply(this.oArg, this.oRes); + } + + public override void OnTimeout(object args) + { + Process_RpcC2T_UpLoadAudioToGate.OnTimeout(this.oArg); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs.meta b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs.meta new file mode 100644 index 00000000..23220d38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RPC/RpcC2T_UpLoadAudioToGate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 894ddb30918d9e74ab74df3f9b12a607 +timeCreated: 1611404087 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RaceBattleHandler.cs b/Client/Assets/Scripts/XMainClient/RaceBattleHandler.cs new file mode 100644 index 00000000..e45fb31b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RaceBattleHandler.cs @@ -0,0 +1,327 @@ +using System; +using System.Text; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RaceBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/RaceBattleDlg"; + } + } + + private XRaceDocument doc = null; + + private XLeftTimeCounter _RaceCounter; + + private XLeftTimeCounter _EndCounter; + + private uint m_ShowRankTimerID = 0u; + + private bool isRaceLeftTime = false; + + private bool isEndLeftTime = false; + + private bool isRaceEnd = false; + + public static readonly uint ITEM_DOODAD_COUNT_MAX = 2u; + + private IXUILabel m_lblTime; + + private IXUISlider m_sliderBattery; + + private IXUISprite m_sprwifi; + + private IXUILabel m_lblFree; + + private IXUILabel m_Rank; + + private IXUILabel m_NowLap; + + private IXUILabel m_MAXLap; + + private IXUILabel m_RaceTime; + + private Transform m_End; + + private IXUILabel m_EndTime; + + private IXUILabel m_EndRank; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform[] ItemDoodad = new Transform[2]; + + private IXUISprite[] DoodadIcon = new IXUISprite[2]; + + private IXUILabel[] DoodadName = new IXUILabel[2]; + + private float lastPingTime = -60f; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XRaceDocument.uuID); + this.doc.RaceHandler = this; + this.m_lblTime = (base.transform.Find("Bg/PING/TIME").GetComponent("XUILabel") as IXUILabel); + this.m_sliderBattery = (base.transform.Find("Bg/PING/Battery").GetComponent("XUISlider") as IXUISlider); + this.m_sprwifi = (base.transform.Find("Bg/PING/SysWifi").GetComponent("XUISprite") as IXUISprite); + this.m_lblFree = (base.transform.Find("Bg/PING/T2").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/RaceInfo"); + this.m_Rank = (transform.Find("Rank").GetComponent("XUILabel") as IXUILabel); + this.m_NowLap = (transform.Find("NowLap").GetComponent("XUILabel") as IXUILabel); + this.m_MAXLap = (transform.Find("MAXLap").GetComponent("XUILabel") as IXUILabel); + this.m_RaceTime = (transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_End = base.transform.Find("Bg/End"); + this.m_EndTime = (this.m_End.Find("Time/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_EndRank = (base.transform.Find("Bg/EndRank").GetComponent("XUILabel") as IXUILabel); + this._RaceCounter = new XLeftTimeCounter(this.m_RaceTime, false); + this._RaceCounter.SetForward(1); + this._RaceCounter.SetTimeFormat(2, 3, 4, true); + this._EndCounter = new XLeftTimeCounter(this.m_EndTime, false); + this._EndCounter.SetFormat(false); + Transform transform2 = base.transform.Find("Bg/Item/ItemTpl"); + this.m_ItemPool.SetupPool(null, transform2.gameObject, RaceBattleHandler.ITEM_DOODAD_COUNT_MAX, false); + this.m_ItemPool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)RaceBattleHandler.ITEM_DOODAD_COUNT_MAX)) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(num * this.m_ItemPool.TplWidth), 0f, 0f); + this.ItemDoodad[num] = gameObject.transform.Find("Item"); + this.ItemDoodad[num].gameObject.SetActive(false); + this.DoodadIcon[num] = (this.ItemDoodad[num].Find("uiIcon").GetComponent("XUISprite") as IXUISprite); + this.DoodadName[num] = (this.ItemDoodad[num].Find("Name").GetComponent("XUILabel") as IXUILabel); + num++; + } + this.m_ItemPool.ActualReturnAll(false); + } + + public override void RegisterEvent() + { + int num = 0; + while ((long)num < (long)((ulong)RaceBattleHandler.ITEM_DOODAD_COUNT_MAX)) + { + this.DoodadIcon[num].ID = (ulong)((long)num); + this.DoodadIcon[num].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + num++; + } + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.KillTimer(this.m_ShowRankTimerID); + this.RefreshInfo(); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.m_ShowRankTimerID); + this.m_ShowRankTimerID = 0u; + base.OnHide(); + } + + public override void OnUnload() + { + this.doc.RaceHandler = null; + XSingleton.singleton.KillTimer(this.m_ShowRankTimerID); + this.m_ShowRankTimerID = 0u; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.UpdateWifi(); + bool flag = Time.unscaledTime - this.lastPingTime > 60f || this.lastPingTime < 0f; + if (flag) + { + this.RefreshPing(); + this.lastPingTime = Time.unscaledTime; + } + bool flag2 = this.isRaceLeftTime && !this.isRaceEnd; + if (flag2) + { + this._RaceCounter.Update(); + } + bool flag3 = this.isEndLeftTime; + if (flag3) + { + this._EndCounter.Update(); + } + } + + private void RefreshInfo() + { + this.m_Rank.SetText("0"); + this.m_NowLap.SetText("0"); + Horse.RowData horseRace = XRaceDocument.GetHorseRace(XSingleton.singleton.SceneID); + this.m_MAXLap.SetText(string.Format("/{0}", horseRace.Laps)); + this.m_RaceTime.SetText("00:00.00"); + DlgBase.singleton.HideLeftTime(); + this.m_End.gameObject.SetActive(false); + this.m_EndRank.gameObject.SetActive(false); + } + + public void RefreshRank(uint rank) + { + this.m_Rank.SetText(rank.ToString()); + } + + public void RefreshLap(uint lap) + { + this.m_NowLap.SetText(lap.ToString()); + } + + public void RefreshTime(float time) + { + bool flag = time == 0f; + if (flag) + { + time = 0.01f; + } + this._RaceCounter.SetLeftTime(time, -1); + this.isRaceLeftTime = true; + } + + private void UpdateWifi() + { + XSingleton.singleton.UpdateWifi(null, this.m_sprwifi); + } + + private void RefreshPing() + { + XSingleton.singleton.RefreshPing(this.m_lblTime, this.m_sliderBattery, null); + } + + public void RaceStart() + { + this.RefreshTime(0.01f); + this.isRaceLeftTime = true; + } + + public void RaceEnd() + { + this.isRaceEnd = true; + } + + public void HideInfo() + { + this.CloseEndLeftTime(); + this.CloseRank(null); + } + + public void ShowRank(uint rank) + { + this.m_EndRank.gameObject.SetActive(true); + this.m_EndRank.SetText(rank.ToString()); + this.m_ShowRankTimerID = XSingleton.singleton.SetTimer((float)int.Parse(XSingleton.singleton.GetValue("HorseShowRankTime")), new XTimerMgr.ElapsedEventHandler(this.CloseRank), null); + } + + private void CloseRank(object param) + { + this.m_EndRank.gameObject.SetActive(false); + } + + public void ShowEndLeftTime(float time) + { + this.m_End.gameObject.SetActive(true); + this.isEndLeftTime = true; + this._EndCounter.SetLeftTime(time, -1); + } + + private void CloseEndLeftTime() + { + this.m_End.gameObject.SetActive(false); + this.isEndLeftTime = false; + } + + public void RefreshDoodad(DoodadItemAllSkill data) + { + bool flag = data == null; + if (!flag) + { + int num = 0; + while ((long)num < (long)((ulong)RaceBattleHandler.ITEM_DOODAD_COUNT_MAX)) + { + int num2 = -1; + for (int i = 0; i < data.skills.Count; i++) + { + bool flag2 = (ulong)data.skills[i].index == (ulong)((long)num); + if (flag2) + { + num2 = i; + } + } + bool flag3 = num2 == -1; + if (flag3) + { + this.ItemDoodad[num].gameObject.SetActive(false); + } + else + { + uint itemid = data.skills[num2].itemid; + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)itemid, 1); + bool flag4 = buffData == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog(string.Format("ChickenDinner GetDoodad: Buff data not found: [{0} {1}]", itemid, 1), null, null, null, null, null); + break; + } + this.ItemDoodad[num].gameObject.SetActive(true); + this.DoodadIcon[num].SetSprite(buffData.BuffIcon); + StringBuilder stringBuilder = new StringBuilder(); + bool flag5 = false; + for (int j = 0; j < buffData.BuffName.Length; j++) + { + bool flag6 = buffData.BuffName[j] == ')'; + if (flag6) + { + flag5 = false; + } + bool flag7 = flag5; + if (flag7) + { + stringBuilder.Append(buffData.BuffName[j]); + } + bool flag8 = buffData.BuffName[j] == '('; + if (flag8) + { + flag5 = true; + } + } + this.DoodadName[num].SetText(stringBuilder.ToString()); + } + num++; + } + } + } + + public void UseDoodad(uint index) + { + this.ItemDoodad[(int)index].gameObject.SetActive(false); + } + + private void _OnItemClick(IXUISprite iSp) + { + bool activeSelf = this.ItemDoodad[(int)(checked((IntPtr)iSp.ID))].gameObject.activeSelf; + if (activeSelf) + { + RpcC2G_ItemBuffOp rpcC2G_ItemBuffOp = new RpcC2G_ItemBuffOp(); + rpcC2G_ItemBuffOp.oArg.index = (uint)iSp.ID; + rpcC2G_ItemBuffOp.oArg.op = 3u; + XSingleton.singleton.Send(rpcC2G_ItemBuffOp); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RaceBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/RaceBattleHandler.cs.meta new file mode 100644 index 00000000..4268ca2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RaceBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fbaed567795713641929ee4263b6a1d3 +timeCreated: 1611404932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RaceEntranceBehaviour.cs b/Client/Assets/Scripts/XMainClient/RaceEntranceBehaviour.cs new file mode 100644 index 00000000..a5281d4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RaceEntranceBehaviour.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RaceEntranceBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_SingleJoin; + + public IXUILabel m_GameRule; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_SingleJoin = (base.transform.Find("Bg/SingleJoin").GetComponent("XUIButton") as IXUIButton); + this.m_GameRule = (base.transform.Find("Bg/GameRule").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Reward/RewardList/ItemTpl"); + this.m_RewardPool.SetupPool(null, transform.gameObject, 3u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RaceEntranceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RaceEntranceBehaviour.cs.meta new file mode 100644 index 00000000..1973f9b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RaceEntranceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22abb96732b08e946823bdeedc64abeb +timeCreated: 1611403424 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RaceEntranceView.cs b/Client/Assets/Scripts/XMainClient/RaceEntranceView.cs new file mode 100644 index 00000000..b14c548c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RaceEntranceView.cs @@ -0,0 +1,165 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RaceEntranceView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Race/RaceEntranceDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_MulActivity_Race); + } + } + + public bool MainInterfaceState = false; + + protected override void Init() + { + base.uiBehaviour.m_GameRule.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("RACE_RULE"))); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_SingleJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartSingleClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_MulActivity_Race); + return true; + } + + private bool OnStartSingleClicked(IXUIButton btn) + { + bool flag = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnStartSingleClicked), btn); + bool result; + if (flag) + { + result = true; + } + else + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = 50u; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + result = true; + } + return result; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshPage(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public void RefreshPage() + { + string[] array = XSingleton.singleton.GetValue("RaceShowRaward").Split(new char[] + { + '|' + }); + base.uiBehaviour.m_RewardPool.FakeReturnAll(); + for (int i = 0; i < array.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(i * base.uiBehaviour.m_RewardPool.TplWidth), 0f, 0f); + uint num = uint.Parse(array[i]); + Transform transform = gameObject.transform.Find("Item"); + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, (int)num, 0, false); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + } + base.uiBehaviour.m_RewardPool.ActualReturnAll(false); + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceState = state; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_MulActivity_Race, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RaceEntranceView.cs.meta b/Client/Assets/Scripts/XMainClient/RaceEntranceView.cs.meta new file mode 100644 index 00000000..d6f66c7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RaceEntranceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6af880d5123756468e5feec9c431b1a +timeCreated: 1611404884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RadioBattleBahaviour.cs b/Client/Assets/Scripts/XMainClient/RadioBattleBahaviour.cs new file mode 100644 index 00000000..585ddbe0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RadioBattleBahaviour.cs @@ -0,0 +1,26 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class RadioBattleBahaviour : DlgBehaviourBase + { + public IXUIButton m_btnOpen; + + public IXUIButton m_btnClose; + + public IXUIButton m_btnRadio; + + public GameObject m_objSelect; + + private void Awake() + { + this.m_btnOpen = (base.transform.Find("Select/Play").GetComponent("XUIButton") as IXUIButton); + this.m_btnClose = (base.transform.Find("Select/Pause").GetComponent("XUIButton") as IXUIButton); + this.m_btnRadio = (base.transform.Find("Radio").GetComponent("XUIButton") as IXUIButton); + this.m_objSelect = base.transform.Find("Select").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RadioBattleBahaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RadioBattleBahaviour.cs.meta new file mode 100644 index 00000000..65c536b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RadioBattleBahaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 906ef3204755d5046a81e4e4be5b7323 +timeCreated: 1611404138 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RadioBattleDlg.cs b/Client/Assets/Scripts/XMainClient/RadioBattleDlg.cs new file mode 100644 index 00000000..e28a401c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RadioBattleDlg.cs @@ -0,0 +1,178 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RadioBattleDlg : DlgBase + { + private XRadioDocument radioDocument + { + get + { + return XDocuments.GetSpecificDocument(XRadioDocument.uuID); + } + } + + public override string fileName + { + get + { + return "Common/RadioBattleDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private int open_level = 2; + + protected override void Init() + { + base.Init(); + } + + public void Show(bool show) + { + if (show) + { + XApolloDocument specificDocument = XDocuments.GetSpecificDocument(XApolloDocument.uuID); + XOptionsDocument specificDocument2 = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = specificDocument != null && specificDocument2 != null; + if (flag) + { + bool isRealVoice = specificDocument.IsRealVoice; + bool flag2 = DlgBase.singleton.IsVisible() && !isRealVoice && XSingleton.singleton.SceneID != 100u && (ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)this.open_level) && specificDocument2.GetValue(XOptionsDefine.OD_RADIO) == 1; + if (flag2) + { + this.SetVisible(true, true); + } + } + } + else + { + this.SetVisible(false, true); + } + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_objSelect.SetActive(false); + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + int type = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.SceneType); + ChatOpen.RowData yuyinRaw = specificDocument.GetYuyinRaw(type); + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + int num = 0; + bool flag = !XSingleton.singleton.CanAutoPlay(XSingleton.singleton.SceneID) && DlgBase.singleton.IsVisible() && yuyinRaw.id == 2u; + if (flag) + { + num = -60; + } + base.uiBehaviour.m_objSelect.transform.localPosition = new Vector3((float)(yuyinRaw.radioX + num), (float)yuyinRaw.radioY, 0f); + base.uiBehaviour.m_btnRadio.gameObject.transform.transform.localPosition = new Vector3((float)(yuyinRaw.radioX + num), (float)yuyinRaw.radioY, 0f); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnRadio.RegisterClickEventHandler(new ButtonClickEventHandler(this.Toggle)); + base.uiBehaviour.m_btnOpen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OpenRadio)); + base.uiBehaviour.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.CloseRadio)); + } + + private bool Toggle(IXUIButton btn) + { + bool flag = base.IsVisible(); + if (flag) + { + bool activeSelf = base.uiBehaviour.m_objSelect.activeSelf; + if (activeSelf) + { + base.uiBehaviour.m_objSelect.SetActive(false); + } + else + { + base.uiBehaviour.m_objSelect.SetActive(true); + } + } + return true; + } + + private bool CloseRadio(IXUIButton btn) + { + bool flag = base.IsVisible(); + if (flag) + { + base.uiBehaviour.m_objSelect.SetActive(false); + this.Refresh(false); + } + return true; + } + + private bool OpenRadio(IXUIButton btn) + { + bool flag = base.IsVisible(); + if (flag) + { + base.uiBehaviour.m_objSelect.SetActive(false); + this.Refresh(true); + } + return true; + } + + private void Refresh(bool open) + { + if (open) + { + bool isBroadcast = DlgBase.singleton.isBroadcast; + if (isBroadcast) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_FM_FORBID2"), "fece00"); + } + else + { + bool flag = this.radioDocument.roomState == XRadioDocument.BigRoomState.OutRoom; + if (flag) + { + this.radioDocument.JoinBigRoom(); + } + } + } + else + { + bool flag2 = this.radioDocument.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_LEAVE_SUCCESS"), "fece00"); + this.radioDocument.QuitBigRoom(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RadioBattleDlg.cs.meta b/Client/Assets/Scripts/XMainClient/RadioBattleDlg.cs.meta new file mode 100644 index 00000000..e872aff7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RadioBattleDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d9a06538442add42838bb4b18597d74 +timeCreated: 1611404237 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RadioBehaviour.cs b/Client/Assets/Scripts/XMainClient/RadioBehaviour.cs new file mode 100644 index 00000000..bc6a36ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RadioBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class RadioBehaviour : DlgBehaviourBase + { + public IXUILabel m_lblMicro; + + public IXUIButton m_btnRadio; + + public IXUISprite m_sprPlay; + + private void Awake() + { + this.m_lblMicro = (base.transform.Find("Hoster").GetComponent("XUILabel") as IXUILabel); + this.m_btnRadio = (base.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton); + this.m_sprPlay = (base.transform.Find("Btn/Play").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RadioBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RadioBehaviour.cs.meta new file mode 100644 index 00000000..495436cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RadioBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9aaf160eb7476e4ea8a2e715b4ee0bb +timeCreated: 1611404900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RadioDlg.cs b/Client/Assets/Scripts/XMainClient/RadioDlg.cs new file mode 100644 index 00000000..551d6604 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RadioDlg.cs @@ -0,0 +1,270 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RadioDlg : DlgBase + { + private XRadioDocument radioDocument + { + get + { + return XDocuments.GetSpecificDocument(XRadioDocument.uuID); + } + } + + public override string fileName + { + get + { + return "Common/RadioDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public bool IsOpen + { + get + { + this.open_level = XSingleton.singleton.GetInt("RadioOpen"); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + return xplayerData != null && (ulong)xplayerData.Level >= (ulong)((long)this.open_level); + } + } + + private int open_level = 2; + + protected override void Init() + { + base.Init(); + this.open_level = XSingleton.singleton.GetInt("RadioOpen"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_lblMicro.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnMicroClick)); + base.uiBehaviour.m_btnRadio.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRadioClick)); + } + + protected void SetPos() + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + int type = 103; + ChatOpen.RowData yuyinRaw = specificDocument.GetYuyinRaw(type); + base.uiBehaviour.transform.localPosition = new Vector3((float)yuyinRaw.radioX, (float)yuyinRaw.radioY, 0f); + } + else + { + bool fakeShow = DlgBase.singleton.fakeShow; + if (fakeShow) + { + int type2 = 1; + ChatOpen.RowData yuyinRaw2 = specificDocument.GetYuyinRaw(type2); + base.uiBehaviour.transform.localPosition = new Vector3((float)yuyinRaw2.radioX, (float)yuyinRaw2.radioY, 0f); + } + } + } + + public void Show(bool show) + { + if (show) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = (DlgBase.singleton.fakeShow || DlgBase.singleton.IsVisible()) && specificDocument != null && specificDocument.GetValue(XOptionsDefine.OD_RADIO) == 1 && this.IsOpen; + if (flag) + { + this.SetVisible(true, true); + this.Refresh(this.radioDocument.roomState == XRadioDocument.BigRoomState.InRoom); + this.UpdateHostInfo(); + this.SetPos(); + } + else + { + this.SetVisible(false, true); + } + } + else + { + this.SetVisible(false, true); + } + } + + public void Process(bool open) + { + bool flag = XSingleton.singleton.CurrentStage != null && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.Show(open); + bool flag2 = !open; + if (flag2) + { + this.QuitRoom(); + } + } + } + + public void Refresh(bool open) + { + bool flag = base.IsVisible(); + if (flag) + { + if (open) + { + bool flag2 = this.radioDocument.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag2) + { + base.uiBehaviour.m_lblMicro.SetText(XStringDefineProxy.GetString("RADIO_HOST") + ": "); + base.uiBehaviour.m_sprPlay.SetSprite("icon_pause"); + } + } + else + { + bool flag3 = this.radioDocument.roomState == XRadioDocument.BigRoomState.OutRoom || this.radioDocument.roomState == XRadioDocument.BigRoomState.Processing; + if (flag3) + { + base.uiBehaviour.m_lblMicro.SetText(XStringDefineProxy.GetString("RADIO_LISTEN")); + base.uiBehaviour.m_sprPlay.SetSprite("icon_play"); + } + } + } + } + + public void JoinRoom() + { + bool isBroadcast = DlgBase.singleton.isBroadcast; + if (isBroadcast) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_FM_FORBID2"), "fece00"); + } + else + { + bool flag = this.radioDocument.roomState == XRadioDocument.BigRoomState.OutRoom; + if (flag) + { + this.radioDocument.JoinBigRoom(); + } + } + } + + public void QuitRoom() + { + bool flag = this.radioDocument.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag) + { + this.radioDocument.QuitBigRoom(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_LEAVE_SUCCESS"), "fece00"); + this.Refresh(false); + } + } + + public void UpdateHostInfo() + { + bool flag = base.IsVisible() && this.radioDocument.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag) + { + List hostlist = this.radioDocument.hostlist; + bool flag2 = hostlist.Count <= 0; + if (flag2) + { + base.uiBehaviour.m_lblMicro.SetText(XStringDefineProxy.GetString("ERR_FM_NOANCHOR_STRING")); + } + else + { + XSingleton.singleton.CleanStringCombine(); + XSingleton.singleton.AppendString(XStringDefineProxy.GetString("RADIO_HOST"), ": "); + for (int i = 0; i < hostlist.Count; i++) + { + XSingleton.singleton.AppendString(hostlist[i], " "); + } + base.uiBehaviour.m_lblMicro.SetText(XSingleton.singleton.GetString()); + } + } + } + + private bool OnRadioClick(IXUIButton sp) + { + bool flag = this.radioDocument.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag) + { + this.QuitRoom(); + } + else + { + bool flag2 = this.radioDocument.roomState == XRadioDocument.BigRoomState.Processing; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_CLICKTOOFAST"), "fece00"); + } + else + { + bool flag3 = this.radioDocument.roomState == XRadioDocument.BigRoomState.OutRoom; + if (flag3) + { + this.JoinRoom(); + } + } + } + return true; + } + + private void OnMicroClick(IXUILabel lbl) + { + bool isHost = this.radioDocument.isHost; + if (isHost) + { + bool flag = this.radioDocument.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag) + { + bool openSpeak = XSingleton.singleton.XApolloManager.openSpeak; + XSingleton.singleton.XApolloManager.openSpeak = !openSpeak; + PtcC2M_HandleMicphone ptcC2M_HandleMicphone = new PtcC2M_HandleMicphone(); + bool openSpeak2 = XSingleton.singleton.XApolloManager.openSpeak; + if (openSpeak2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_OPENMIC"), "fece00"); + ptcC2M_HandleMicphone.Data.param = true; + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_CLOSEMIC"), "fece00"); + ptcC2M_HandleMicphone.Data.param = false; + } + XSingleton.singleton.Send(ptcC2M_HandleMicphone); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RadioDlg.cs.meta b/Client/Assets/Scripts/XMainClient/RadioDlg.cs.meta new file mode 100644 index 00000000..0b07f275 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RadioDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d91bc4b7479f504ca48cf8864ba0778 +timeCreated: 1611403196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RandomAttrDataMgr.cs b/Client/Assets/Scripts/XMainClient/RandomAttrDataMgr.cs new file mode 100644 index 00000000..a0a3cd71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RandomAttrDataMgr.cs @@ -0,0 +1,42 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RandomAttrDataMgr : EquipAttrDataMgr + { + private RandomAttributes m_randomTab = null; + + public RandomAttrDataMgr(RandomAttributes table) + { + this.m_randomTab = table; + } + + protected override void SetAttrByItemId(uint itemId) + { + bool flag = this.m_randomTab == null; + if (!flag) + { + for (int i = 0; i < this.m_randomTab.Table.Length; i++) + { + RandomAttributes.RowData rowData = this.m_randomTab.Table[i]; + bool flag2 = rowData.EquipID == itemId; + if (flag2) + { + bool flag3 = !this.m_attrDic.ContainsKey(rowData.EquipID); + if (flag3) + { + EquipSlotAttrDatas equipSlotAttrDatas = new EquipSlotAttrDatas(rowData.EquipID); + equipSlotAttrDatas.Add(rowData); + this.m_attrDic.Add(rowData.EquipID, equipSlotAttrDatas); + } + else + { + this.m_attrDic[rowData.EquipID].Add(rowData); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RandomAttrDataMgr.cs.meta b/Client/Assets/Scripts/XMainClient/RandomAttrDataMgr.cs.meta new file mode 100644 index 00000000..9dafe673 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RandomAttrDataMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5f9dca5fba02b6428a2c2424db55e55 +timeCreated: 1611404630 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RandomGiftBehaviour.cs b/Client/Assets/Scripts/XMainClient/RandomGiftBehaviour.cs new file mode 100644 index 00000000..5a19dab7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RandomGiftBehaviour.cs @@ -0,0 +1,50 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class RandomGiftBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Share; + + public Transform m_WX; + + public IXUIButton m_WXFriend; + + public IXUIButton m_WXTimeline; + + public Transform m_QQ; + + public IXUIButton m_QQFriend; + + public IXUIButton m_QQZone; + + public IXUILabel m_Title; + + public IXUILabel m_Description; + + public Transform m_BoxQQ; + + public Transform m_BoxWX; + + private void Awake() + { + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_Share = (base.transform.Find("Share").GetComponent("XUIButton") as IXUIButton); + this.m_WX = base.transform.Find("WX"); + this.m_WXFriend = (this.m_WX.Find("WXFriend").GetComponent("XUIButton") as IXUIButton); + this.m_WXTimeline = (this.m_WX.Find("WXTimeline").GetComponent("XUIButton") as IXUIButton); + this.m_QQ = base.transform.Find("QQ"); + this.m_QQFriend = (this.m_QQ.Find("QQFriend").GetComponent("XUIButton") as IXUIButton); + this.m_QQZone = (this.m_QQ.Find("QQZone").GetComponent("XUIButton") as IXUIButton); + this.m_Title = (base.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_Description = (base.transform.Find("Description").GetComponent("XUILabel") as IXUILabel); + this.m_BoxQQ = base.transform.Find("BoxQQ"); + this.m_BoxWX = base.transform.Find("BoxWX"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RandomGiftBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RandomGiftBehaviour.cs.meta new file mode 100644 index 00000000..22f0d7d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RandomGiftBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90e2ff549bec5664b90c77c3954959c5 +timeCreated: 1611404140 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RandomGiftView.cs b/Client/Assets/Scripts/XMainClient/RandomGiftView.cs new file mode 100644 index 00000000..7027c2e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RandomGiftView.cs @@ -0,0 +1,228 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RandomGiftView : DlgBase + { + private int shareId + { + get + { + return int.Parse(XSingleton.singleton.GetValue("ShareGiftTableID")); + } + } + + public override string fileName + { + get + { + return "Common/RandomGift"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private string _boxId = null; + + private string _actId = null; + + private string _url = null; + + private enum ShareType + { + WXFriend, + WXTimeline, + QQFriend, + QQZone + } + + protected override void Init() + { + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Share.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareClick)); + base.uiBehaviour.m_WXFriend.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareWXFriendClick)); + base.uiBehaviour.m_WXTimeline.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareWXTimelineClick)); + base.uiBehaviour.m_QQFriend.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareQQFriendClick)); + base.uiBehaviour.m_QQZone.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareQQZoneClick)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_WX.gameObject.SetActive(false); + base.uiBehaviour.m_QQ.gameObject.SetActive(false); + base.uiBehaviour.m_BoxWX.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + base.uiBehaviour.m_BoxQQ.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag) + { + base.uiBehaviour.m_Title.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("RANDOM_GIFT_TITLE_WX"))); + base.uiBehaviour.m_Description.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("RANDOM_GIFT_DESCRIPTION_WX"))); + } + else + { + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag2) + { + base.uiBehaviour.m_Title.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("RANDOM_GIFT_TITLE_QQ"))); + base.uiBehaviour.m_Description.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("RANDOM_GIFT_DESCRIPTION_QQ"))); + } + } + } + + protected override void OnHide() + { + this._boxId = null; + this._actId = null; + this._url = null; + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public void TryOpenUI() + { + bool flag = (this._boxId == null || this._actId == null) && this._url == null; + if (!flag) + { + bool flag2 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Random_Gift); + if (!flag2) + { + this.SetVisibleWithAnimation(true, null); + } + } + } + + public bool OnShareClick(IXUIButton btn) + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag) + { + base.uiBehaviour.m_WX.gameObject.SetActive(!base.uiBehaviour.m_WX.gameObject.activeSelf); + } + else + { + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag2) + { + base.uiBehaviour.m_QQ.gameObject.SetActive(!base.uiBehaviour.m_QQ.gameObject.activeSelf); + } + else + { + base.uiBehaviour.m_WX.gameObject.SetActive(!base.uiBehaviour.m_WX.gameObject.activeSelf); + XSingleton.singleton.AddLog("OnShareClick", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + return true; + } + + public bool OnShareWXFriendClick(IXUIButton btn) + { + this.ShareGift(RandomGiftView.ShareType.WXFriend, ShareTagType.GiftBag_Tag); + return true; + } + + public bool OnShareWXTimelineClick(IXUIButton btn) + { + this.ShareGift(RandomGiftView.ShareType.WXTimeline, ShareTagType.GiftBag_Tag); + return true; + } + + public bool OnShareQQFriendClick(IXUIButton btn) + { + this.ShareGift(RandomGiftView.ShareType.QQFriend, ShareTagType.Invite_Tag); + return true; + } + + public bool OnShareQQZoneClick(IXUIButton btn) + { + this.ShareGift(RandomGiftView.ShareType.QQZone, ShareTagType.Invite_Tag); + return true; + } + + public void ReadyShareGift(GetPlatformShareChestArg oArg, GetPlatformShareChestRes oRes) + { + this.SetGift(oRes.act_id.ToString(), oRes.boxid, oRes.url); + } + + public void SetGift(string actId, string boxId, string url) + { + this._actId = actId; + this._boxId = boxId; + this._url = url; + XSingleton.singleton.AddLog(string.Concat(new string[] + { + "RandomGift _boxId:", + this._boxId, + " _actId:", + this._actId, + "_url:", + this._url + }), null, null, null, null, null, XDebugColor.XDebug_None); + } + + private void ShareGift(RandomGiftView.ShareType type, ShareTagType tagType) + { + bool issession = type == RandomGiftView.ShareType.WXFriend || type == RandomGiftView.ShareType.QQFriend; + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "shareId:", + this.shareId, + " isSession:", + issession.ToString(), + " _actId:", + this._actId, + " _boxId:", + this._boxId, + " tagType:", + tagType + }), null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.DoShareWithLink(this.shareId, issession, tagType, this._url, new object[] + { + this._actId, + this._boxId + }); + this.OnCloseClicked(null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RandomGiftView.cs.meta b/Client/Assets/Scripts/XMainClient/RandomGiftView.cs.meta new file mode 100644 index 00000000..8dfeb64d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RandomGiftView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc8759b37cf77ba4ba377336ecb54cc0 +timeCreated: 1611404551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RankRewardData.cs b/Client/Assets/Scripts/XMainClient/RankRewardData.cs new file mode 100644 index 00000000..2978d8ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RankRewardData.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + public class RankRewardData + { + public uint id; + + public int rankMIN; + + public int rankMAX; + + public List rewardID; + + public List rewardCount; + + public RankRewardData() + { + this.rewardID = new List(); + this.rewardCount = new List(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RankRewardData.cs.meta b/Client/Assets/Scripts/XMainClient/RankRewardData.cs.meta new file mode 100644 index 00000000..2e1fa98d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RankRewardData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d4c82af35a6d054b89e1be1c02b82ad +timeCreated: 1611403352 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RankRewardHandler.cs b/Client/Assets/Scripts/XMainClient/RankRewardHandler.cs new file mode 100644 index 00000000..081e92bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RankRewardHandler.cs @@ -0,0 +1,134 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RankRewardHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/RankRewardHandler"; + } + } + + private List m_Data; + + public XSysDefine Sys; + + public IXUIButton m_Close; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_RightText; + + public IXUILabel m_BottomText; + + public IXUIScrollView m_ScrollView; + + protected override void Init() + { + base.Init(); + Transform transform = base.transform.Find("Bg"); + this.m_Close = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_BottomText = (transform.Find("BottomText").GetComponent("XUILabel") as IXUILabel); + this.m_RightText = (transform.Find("Right/Text").GetComponent("XUILabel") as IXUILabel); + this.m_ScrollView = (transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RewardPool.SetupPool(null, transform.Find("ScrollView/RewardTpl").gameObject, 8u, false); + this.m_ItemPool.SetupPool(null, transform.Find("ScrollView/Item").gameObject, 5u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshList(true); + this.RefreshText(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void SetData(List data, XSysDefine sys) + { + this.m_Data = data; + this.Sys = sys; + } + + public void RefreshList(bool resetPos = true) + { + bool flag = this.m_Data == null; + if (!flag) + { + this.m_RewardPool.FakeReturnAll(); + this.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < this.m_Data.Count; i++) + { + GameObject gameObject = this.m_RewardPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Rank/RankNum").GetComponent("XUILabel") as IXUILabel; + bool flag2 = this.m_Data[i].rankMIN == this.m_Data[i].rankMAX; + if (flag2) + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1"), this.m_Data[i].rankMAX)); + } + else + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc2"), this.m_Data[i].rankMAX)); + } + int num = 0; + while (num < this.m_Data[i].rewardID.Count && num < this.m_Data[i].rewardCount.Count) + { + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, this.m_Data[i].rewardID[num], this.m_Data[i].rewardCount[num], false); + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)this.m_Data[i].rewardID[num]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3(this.m_ItemPool.TplPos.x + (float)(this.m_ItemPool.TplWidth * num), 0f); + num++; + } + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_RewardPool.TplHeight * i)) + this.m_RewardPool.TplPos; + } + this.m_ItemPool.ActualReturnAll(false); + this.m_RewardPool.ActualReturnAll(false); + if (resetPos) + { + this.m_ScrollView.ResetPosition(); + } + } + } + + private void RefreshText() + { + this.m_RightText.gameObject.SetActive(false); + this.m_BottomText.gameObject.SetActive(false); + XSysDefine sys = this.Sys; + if (sys == XSysDefine.XSys_BigMelee) + { + this.m_BottomText.gameObject.SetActive(true); + this.m_BottomText.SetText(XStringDefineProxy.GetString("BIG_MELEE_RANK_REWARD_TIP")); + this.m_RightText.gameObject.SetActive(true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RankRewardHandler.cs.meta b/Client/Assets/Scripts/XMainClient/RankRewardHandler.cs.meta new file mode 100644 index 00000000..c488735a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RankRewardHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1992509e2414e8e45993e9b4ceb1ed04 +timeCreated: 1611403303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RankRewardStatus.cs b/Client/Assets/Scripts/XMainClient/RankRewardStatus.cs new file mode 100644 index 00000000..75a4a83f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RankRewardStatus.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class RankRewardStatus + { + public uint rank; + + public bool isRange; + + public SeqListRef reward = default(SeqListRef); + } +} diff --git a/Client/Assets/Scripts/XMainClient/RankRewardStatus.cs.meta b/Client/Assets/Scripts/XMainClient/RankRewardStatus.cs.meta new file mode 100644 index 00000000..1901e9f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RankRewardStatus.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfebfcb1fdb162e41b02d482020a043e +timeCreated: 1611404583 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecentMsg.cs b/Client/Assets/Scripts/XMainClient/RecentMsg.cs new file mode 100644 index 00000000..eda3e9e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecentMsg.cs @@ -0,0 +1,10 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class RecentMsg : LoopItemData + { + public string content; + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecentMsg.cs.meta b/Client/Assets/Scripts/XMainClient/RecentMsg.cs.meta new file mode 100644 index 00000000..0b1fc838 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecentMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 047d6af82ef4f724ba9a2b58dc420977 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitAuthorizeBehaviour.cs b/Client/Assets/Scripts/XMainClient/RecruitAuthorizeBehaviour.cs new file mode 100644 index 00000000..b375c86c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitAuthorizeBehaviour.cs @@ -0,0 +1,29 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class RecruitAuthorizeBehaviour : DlgBehaviourBase + { + public IXUILabel _info; + + public IXUIButton _Close; + + public Transform _Empty; + + public IXUIScrollView _MemberScrollView; + + public IXUIWrapContent _MemberWrapContent; + + private void Awake() + { + this._info = (base.transform.Find("Info/Info").GetComponent("XUILabel") as IXUILabel); + this._Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this._Empty = base.transform.Find("Empty"); + this._MemberScrollView = (base.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this._MemberWrapContent = (base.transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitAuthorizeBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitAuthorizeBehaviour.cs.meta new file mode 100644 index 00000000..a31755ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitAuthorizeBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4061e1d63b7e5c41a1fb2e4c6b7b406 +timeCreated: 1611404499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitAuthorizeView.cs b/Client/Assets/Scripts/XMainClient/RecruitAuthorizeView.cs new file mode 100644 index 00000000..df9e313b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitAuthorizeView.cs @@ -0,0 +1,135 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class RecruitAuthorizeView : DlgBase + { + public override string fileName + { + get + { + return "Team/RecruitAuthorizeView"; + } + } + + private GroupChatDocument _doc; + + private GroupMemberDisplay _memberDisplay; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + base.uiBehaviour._MemberWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.bShowMotion = false; + this.StackRefresh(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this._doc.SendGroupChatLeaderReviewList(); + } + + public override void RegisterEvent() + { + base.uiBehaviour._Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseHandler)); + } + + protected override void OnUnload() + { + bool flag = this._memberDisplay != null; + if (flag) + { + this._memberDisplay.Release(); + this._memberDisplay = null; + } + base.OnUnload(); + } + + public void RefreshData() + { + List leaderReviewList = this._doc.LeaderReviewList; + bool flag = leaderReviewList == null || leaderReviewList.Count == 0; + if (flag) + { + base.uiBehaviour._MemberWrapContent.SetContentCount(0, false); + } + else + { + base.uiBehaviour._MemberWrapContent.SetContentCount(leaderReviewList.Count, false); + } + base.uiBehaviour._Empty.gameObject.SetActive(leaderReviewList.Count == 0); + base.uiBehaviour._MemberScrollView.ResetPosition(); + } + + private bool OnCloseHandler(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void OnWrapContentUpdate(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.LeaderReviewList.Count; + if (!flag) + { + bool flag2 = this._memberDisplay == null; + if (flag2) + { + this._memberDisplay = new GroupMemberDisplay(); + } + this._memberDisplay.Init(t); + GroupMember member = this._doc.LeaderReviewList[index]; + this._memberDisplay.Setup(member); + IXUIButton ixuibutton = t.Find("BtnApply").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("BtnDeny").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)index); + ixuibutton.SetEnable(true, false); + ixuibutton2.ID = (ulong)((long)index); + ixuibutton2.SetEnable(true, false); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnApplyClick)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDenyClick)); + IXUISprite ixuisprite = t.Find("Bg").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPlayerClick)); + } + } + + private void OnPlayerClick(IXUISprite sprite) + { + int num = (int)sprite.ID; + bool flag = num < this._doc.LeaderReviewList.Count; + if (flag) + { + GroupMember groupMember = this._doc.LeaderReviewList[num]; + DlgBase.singleton.SetPlayerInfo(groupMember.userID, groupMember.userName, new List(), 0u, 1u); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.ShowTab(Player_Info.Equip, 0UL, 0UL); + } + } + + private bool OnApplyClick(IXUIButton btn) + { + this._doc.SendGroupChatLeaderReview((int)btn.ID, true); + btn.SetEnable(false, false); + return true; + } + + private bool OnDenyClick(IXUIButton btn) + { + this._doc.SendGroupChatLeaderReview((int)btn.ID, false); + btn.SetEnable(false, false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitAuthorizeView.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitAuthorizeView.cs.meta new file mode 100644 index 00000000..a323d81c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitAuthorizeView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3769e8b16b05777449a2991976b2e443 +timeCreated: 1611403565 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitBehaviour.cs b/Client/Assets/Scripts/XMainClient/RecruitBehaviour.cs new file mode 100644 index 00000000..6a8446fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitBehaviour.cs @@ -0,0 +1,38 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitBehaviour : DlgBehaviourBase + { + public IXUICheckBox _ToggleTeam; + + public IXUICheckBox _ToggleMember; + + public IXUIButton _BtnClose; + + public Transform m_member; + + public Transform m_group; + + public IXUIButton _Help; + + public GameObject _recruitRed; + + private void Awake() + { + this._ToggleTeam = (base.transform.Find("Bg/Toggle/ToggleTeam").GetComponent("XUICheckBox") as IXUICheckBox); + this._ToggleTeam.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(RecruitToggle.ToggleTeam)); + this._ToggleMember = (base.transform.Find("Bg/Toggle/ToggleMember").GetComponent("XUICheckBox") as IXUICheckBox); + this._ToggleMember.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(RecruitToggle.ToggleMember)); + this.m_member = base.transform.Find("Bg/Member"); + this.m_group = base.transform.Find("Bg/Group"); + this._BtnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this._recruitRed = base.transform.Find("Bg/Toggle/ToggleTeam/RedPoint").gameObject; + this._Help = (base.transform.Find("Bg/P/p/Help").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitBehaviour.cs.meta new file mode 100644 index 00000000..fa7a3694 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f787b09bd9c37044eab35cf585cdcf4e +timeCreated: 1611404888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitGroupHandle.cs b/Client/Assets/Scripts/XMainClient/RecruitGroupHandle.cs new file mode 100644 index 00000000..fd276b59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitGroupHandle.cs @@ -0,0 +1,167 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitGroupHandle : RecruitListHandler + { + private bool bubbleValid + { + get + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + int value = specificDocument.GetValue(XOptionsDefine.OD_RECRUIT_FIRST_GROUP); + bool flag = value == 1; + bool result; + if (flag) + { + specificDocument.SetValue(XOptionsDefine.OD_RECRUIT_FIRST_GROUP, 0, false); + result = true; + } + else + { + result = false; + } + return result; + } + } + + private IXUIButton m_Authorise; + + private IXUIButton m_Publish; + + private IXUIButton m_Recruit; + + private IXUILabel m_BubbleTips; + + private GameObject m_redPoint; + + private GameObject m_RecruitTips; + + protected override void Init() + { + base.Init(); + this.m_Authorise = (base.transform.Find("Info/Btn_Authorise").GetComponent("XUIButton") as IXUIButton); + this.m_Publish = (base.transform.Find("Info/Btn_Publish").GetComponent("XUIButton") as IXUIButton); + this.m_Recruit = (base.transform.Find("Info/Btn_Recruit").GetComponent("XUIButton") as IXUIButton); + this.m_redPoint = base.transform.Find("Info/Btn_Authorise/RedPoint").gameObject; + this.m_BubbleTips = (base.transform.Find("Info/Message/Btn_Publish_LivenessTips").GetComponent("XUILabel") as IXUILabel); + this.m_BubbleTips.SetText(XStringDefineProxy.GetString("GroupRecruit_GroupBubble")); + this.m_RecruitTips = base.transform.Find("Info/Message/Btn_Recruit_LivenessTips").gameObject; + this.m_Authorise.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAuthoriseClick)); + this.m_Publish.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPublishClick)); + this.m_Recruit.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRecruitClick)); + } + + protected override List GetMemberList() + { + return this._doc.RecruitGroup; + } + + public override void RefreshData() + { + this.RefreshVisibleRecruit(); + bool flag = this._doc.RecruitGroup != null; + if (flag) + { + GroupMember.dir = this.m_titleBar.direction; + GroupMember.sortSeletor = this.m_titleBar.selector; + this._doc.RecruitGroup.Sort(); + } + base.RefreshData(); + } + + private void RefreshVisibleRecruit() + { + bool flag = this._doc.CurGroupCount > 0u; + this.m_Recruit.SetVisible(flag); + this.m_RecruitTips.SetActive(flag); + } + + public override void RefreshRedPoint() + { + this.m_redPoint.SetActive(this._doc.bShowMotion); + } + + public override void OnReSelect() + { + this._doc.SendGroupChatFindTeamInfoList(this.m_titleBar.filter); + } + + protected override void SetupOtherInfo(Transform t, GroupMember member) + { + IXUIButton ixuibutton = t.Find("BtnApply").GetComponent("XUIButton") as IXUIButton; + Transform transform = t.Find("BtnApply/Applied"); + Transform transform2 = t.Find("BtnApply/T"); + ixuibutton.ID = member.issueIndex; + bool flag = member.isselfingroup || member.userID == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + ixuibutton.SetVisible(false); + } + else + { + ixuibutton.SetVisible(true); + ixuibutton.SetEnable(true, false); + ixuibutton.SetClickCD(1f); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnApplyClick)); + bool flag2 = member.state == 1u; + if (flag2) + { + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + ixuibutton.SetEnable(false, false); + } + else + { + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(true); + ixuibutton.SetEnable(true, false); + } + } + } + + private bool OnRecruitClick(IXUIButton btn) + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + specificDocument.SendOpenSysInvitation(NoticeType.NT_GROUPCHAT_RECRUIT_WORLD, new ulong[0]); + return true; + } + + private bool OnApplyClick(IXUIButton btn) + { + ulong id = btn.ID; + this._doc.SendGroupChatPlayerApply(id); + Transform transform = btn.gameObject.transform.Find("Applied"); + Transform transform2 = btn.gameObject.transform.Find("T"); + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + btn.SetEnable(false, false); + return true; + } + + protected override void SetInfo(IXUILabel label) + { + int @int = XSingleton.singleton.GetInt("GroupChatMaxZMGroupIssue"); + int curGroupCount = (int)this._doc.CurGroupCount; + label.SetText(((curGroupCount < @int) ? (@int - curGroupCount) : 0).ToString()); + this.m_BubbleTips.SetVisible(this.bubbleValid); + } + + private bool OnAuthoriseClick(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_GroupRecruitAuthorize, 0UL); + return true; + } + + private bool OnPublishClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitGroupHandle.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitGroupHandle.cs.meta new file mode 100644 index 00000000..9b864742 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitGroupHandle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3545cacef5db97458e0d409711382de +timeCreated: 1611404847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitGroupPublishBehaviour.cs b/Client/Assets/Scripts/XMainClient/RecruitGroupPublishBehaviour.cs new file mode 100644 index 00000000..bc043897 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitGroupPublishBehaviour.cs @@ -0,0 +1,18 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class RecruitGroupPublishBehaviour : RecruitPublishBehaviour + { + public Transform m_BattlePoint; + + public Transform m_SelectGroup; + + public override void OtherAwake() + { + this.m_SelectGroup = base.transform.Find("Bg/SelectGroup"); + this.m_BattlePoint = base.transform.Find("Bg/BattlePoint"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitGroupPublishBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitGroupPublishBehaviour.cs.meta new file mode 100644 index 00000000..596ad284 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitGroupPublishBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71a98bf150061d549a0ae5698a7ba572 +timeCreated: 1611403935 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitGroupPublishView.cs b/Client/Assets/Scripts/XMainClient/RecruitGroupPublishView.cs new file mode 100644 index 00000000..0728ee24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitGroupPublishView.cs @@ -0,0 +1,97 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitGroupPublishView : RecruitPublishView + { + public override string fileName + { + get + { + return "Team/RecruitGroupPublishFrame"; + } + } + + private RecruitStepCounter _StepCounter; + + private RecruitSelectGroupHandler _SelectGroupHandle; + + private GroupChatFindTeamInfo _TeamInfo; + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._SelectGroupHandle); + DlgHandlerBase.EnsureUnload(ref this._StepCounter); + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this._StepCounter = DlgHandlerBase.EnsureCreate(ref this._StepCounter, base.uiBehaviour.m_BattlePoint.gameObject, null, true); + this._SelectGroupHandle = DlgHandlerBase.EnsureCreate(ref this._SelectGroupHandle, base.uiBehaviour.m_SelectGroup.gameObject, null, true); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnStageSelect(); + bool flag = this._SelectGroupHandle != null; + if (flag) + { + this._SelectGroupHandle.RefreshData(); + } + } + + protected override void OnStageSelect() + { + uint selectStageID = base.GetSelectStageID(); + bool flag = selectStageID == 0u; + if (!flag) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID((int)selectStageID); + int @int = XSingleton.singleton.GetInt("TeamSettingPPTStep"); + int displayPPT = (int)expeditionDataByID.DisplayPPT; + this._StepCounter.Setup(displayPPT, -1, displayPPT, @int, new RecruitStepCounterUpdate(this.OnPPTStepUpdate)); + } + } + + protected override bool OnSubmitClick(IXUIButton btn) + { + bool flag = this._SelectGroupHandle == null || this._SelectGroupHandle.SelectGroup == null; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GroupChat_UnSelectGroup"), "fece00"); + result = false; + } + else + { + bool flag2 = this._TeamInfo == null; + if (flag2) + { + this._TeamInfo = new GroupChatFindTeamInfo(); + } + this._TeamInfo.groupchatID = this._SelectGroupHandle.SelectGroup.id; + this._TeamInfo.groupchatName = this._SelectGroupHandle.SelectGroup.name; + this._TeamInfo.stageID = base.GetSelectStageID(); + this._TeamInfo.fighting = (uint)this._StepCounter.Cur; + this._TeamInfo.type = base.GetMemberType(); + this._TeamInfo.time = (uint)base.GetTime(); + this._doc.SendGroupChatLeaderInfo(this._TeamInfo); + result = base.OnSubmitClick(btn); + } + return result; + } + + private void OnPPTStepUpdate(IXUILabel label) + { + label.SetText(this._StepCounter.Cur.ToString()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitGroupPublishView.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitGroupPublishView.cs.meta new file mode 100644 index 00000000..ac2d1e2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitGroupPublishView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7efeea65ba2f6084ab750abd0a7f25d7 +timeCreated: 1611404027 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitListHandler.cs b/Client/Assets/Scripts/XMainClient/RecruitListHandler.cs new file mode 100644 index 00000000..12cb20d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitListHandler.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class RecruitListHandler : DlgHandlerBase + { + protected GroupChatDocument _doc; + + protected RecruitTitleBar m_titleBar; + + protected Transform m_empty; + + protected IXUILabel m_info; + + private IXUIScrollView _MemberList; + + private IXUIWrapContent _MemberWrapContent; + + private GroupMemberDisplay _memberDisplay; + + private bool m_response = false; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + this.m_titleBar = DlgHandlerBase.EnsureCreate(ref this.m_titleBar, base.transform.Find("Title").gameObject, this, true); + this.m_titleBar.RegisterTitleChange(new RecruitTitleChange(this.OnTitleChange)); + this.m_titleBar.RegisterTitleReSelect(new RecruitTitleReSelect(this.OnReSelect)); + this._MemberList = (base.transform.Find("MemberList").GetComponent("XUIScrollView") as IXUIScrollView); + this._MemberWrapContent = (base.transform.Find("MemberList/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._MemberWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContent)); + this.m_empty = base.transform.Find("Empty"); + this.m_info = (base.transform.Find("Info/Info/Time").GetComponent("XUILabel") as IXUILabel); + } + + public virtual void RefreshRedPoint() + { + } + + protected virtual List GetMemberList() + { + return null; + } + + protected override void OnShow() + { + base.OnShow(); + this.m_response = true; + this.OnReSelect(); + this.RefreshInfo(); + this.RefreshRedPoint(); + } + + protected void RefreshInfo() + { + this.SetInfo(this.m_info); + } + + public override void OnUnload() + { + bool flag = this._memberDisplay != null; + if (flag) + { + this._memberDisplay.Release(); + this._memberDisplay = null; + } + DlgHandlerBase.EnsureUnload(ref this.m_titleBar); + base.OnUnload(); + } + + public override void RefreshData() + { + this.RefreshInfo(); + List memberList = this.GetMemberList(); + bool flag = memberList == null || memberList.Count == 0; + if (flag) + { + this.m_empty.gameObject.SetActive(true); + this._MemberWrapContent.SetContentCount(0, false); + } + else + { + this.m_empty.gameObject.SetActive(false); + this._MemberWrapContent.SetContentCount(memberList.Count, false); + } + bool response = this.m_response; + if (response) + { + this.m_response = false; + this._MemberList.ResetPosition(); + } + base.RefreshData(); + } + + protected virtual void OnWrapContent(Transform t, int index) + { + List memberList = this.GetMemberList(); + bool flag = memberList == null; + if (!flag) + { + bool flag2 = this._memberDisplay == null; + if (flag2) + { + this._memberDisplay = new GroupMemberDisplay(); + } + GroupMember member = memberList[index]; + this._memberDisplay.Init(t); + this._memberDisplay.Setup(member); + this.SetupOtherInfo(t, member); + } + } + + protected virtual void SetupOtherInfo(Transform t, GroupMember member) + { + } + + protected virtual void OnTitleChange() + { + this.RefreshData(); + } + + public virtual void OnReSelect() + { + } + + protected virtual void SetInfo(IXUILabel label) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitListHandler.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitListHandler.cs.meta new file mode 100644 index 00000000..b7bb8694 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitListHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87b0595ed225f384da3b435cc27a3af9 +timeCreated: 1611404080 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitMemberHandler.cs b/Client/Assets/Scripts/XMainClient/RecruitMemberHandler.cs new file mode 100644 index 00000000..eab77d51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitMemberHandler.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitMemberHandler : RecruitListHandler + { + private bool bubbleValid + { + get + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = specificDocument.GetValue(XOptionsDefine.OD_RECRUIT_FIRST_MEMBER) == 1; + bool result; + if (flag) + { + specificDocument.SetValue(XOptionsDefine.OD_RECRUIT_FIRST_MEMBER, 0, false); + result = true; + } + else + { + result = false; + } + return result; + } + } + + private IXUIButton m_btnMember; + + private IXUILabel m_BubbleTips; + + private ulong _SelectIssueIndex = 0UL; + + private RecruitSelectGroupHandler _SelectGroupHandler; + + public override void OnReSelect() + { + this._doc.SendGroupChatFindRoleInfoList(this.m_titleBar.filter); + } + + protected override List GetMemberList() + { + return this._doc.RecruitMember; + } + + protected override void Init() + { + base.Init(); + this.m_btnMember = (base.transform.Find("Info/Btn_Member").GetComponent("XUIButton") as IXUIButton); + this.m_BubbleTips = (base.transform.Find("Info/Message/Btn_Member_LivenessTips").GetComponent("XUILabel") as IXUILabel); + this.m_BubbleTips.SetText(XStringDefineProxy.GetString("GroupRecruit_MemberBubble")); + this.m_btnMember.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMemberClick)); + this._SelectGroupHandler = DlgHandlerBase.EnsureCreate(ref this._SelectGroupHandler, base.transform.Find("SelectGroup").gameObject, null, false); + this._SelectGroupHandler.Setup(new RecruitSelectGroupUpdate(this.OnSelectGroupHandle)); + } + + protected override void OnHide() + { + bool flag = this._SelectGroupHandler != null && this._SelectGroupHandler.IsVisible(); + if (flag) + { + this._SelectGroupHandler.SetVisible(false); + } + base.OnHide(); + } + + public override void RefreshData() + { + bool flag = this._doc.RecruitMember != null; + if (flag) + { + GroupMember.dir = this.m_titleBar.direction; + GroupMember.sortSeletor = this.m_titleBar.selector; + this._doc.RecruitMember.Sort(); + } + base.RefreshData(); + } + + protected override void SetupOtherInfo(Transform t, GroupMember member) + { + base.SetupOtherInfo(t, member); + IXUIButton ixuibutton = t.Find("BtnRecruit").GetComponent("XUIButton") as IXUIButton; + ixuibutton.SetVisible(false); + ixuibutton.ID = member.issueIndex; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRecruitClick)); + ixuibutton.SetVisible(member.userID != XSingleton.singleton.XPlayerData.RoleID); + } + + private bool OnRecruitClick(IXUIButton btn) + { + this._SelectIssueIndex = btn.ID; + bool flag = this._SelectGroupHandler != null; + if (flag) + { + this._SelectGroupHandler.SetVisible(true); + } + return true; + } + + private void OnSelectGroupHandle() + { + bool flag = this._SelectGroupHandler == null || this._SelectGroupHandler.SelectGroup == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GroupChat_UnSelectGroup"), "fece00"); + bool flag2 = this._SelectGroupHandler != null; + if (flag2) + { + this._SelectGroupHandler.SetVisible(false); + } + } + else + { + this._doc.SendZMLeaderAddRole(this._SelectIssueIndex, this._SelectGroupHandler.SelectGroup.id); + this._SelectGroupHandler.SetVisible(false); + } + } + + protected override void SetInfo(IXUILabel label) + { + int @int = XSingleton.singleton.GetInt("GroupChatMaxZMRoleIssue"); + int curUserMemberCount = (int)this._doc.CurUserMemberCount; + label.SetText(((curUserMemberCount < @int) ? (@int - curUserMemberCount) : 0).ToString()); + this.m_BubbleTips.SetVisible(this.bubbleValid); + } + + private bool OnMemberClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitMemberHandler.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitMemberHandler.cs.meta new file mode 100644 index 00000000..66d7f0f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitMemberHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62d4bb5bc637b714086842490ab07d10 +timeCreated: 1611403842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitNameBehaviour.cs b/Client/Assets/Scripts/XMainClient/RecruitNameBehaviour.cs new file mode 100644 index 00000000..1e944713 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitNameBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class RecruitNameBehaviour : DlgBehaviourBase + { + public IXUIButton _Close; + + public IXUIButton _Submit; + + public IXUIInput _NameInput; + + private void Awake() + { + this._Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this._Submit = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this._NameInput = (base.transform.Find("Bg/Input").GetComponent("XUIInput") as IXUIInput); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitNameBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitNameBehaviour.cs.meta new file mode 100644 index 00000000..d2aa622d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitNameBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 684b90a6c4212474caf5942e9cbe56c7 +timeCreated: 1611403882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitNameView.cs b/Client/Assets/Scripts/XMainClient/RecruitNameView.cs new file mode 100644 index 00000000..be30d0e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitNameView.cs @@ -0,0 +1,77 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitNameView : DlgBase + { + public override string fileName + { + get + { + return "Team/RecruitNameView"; + } + } + + private GroupChatDocument _doc; + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._doc = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + base.uiBehaviour._Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour._Submit.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubmitClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.Setup(); + } + + private void Setup() + { + base.uiBehaviour._NameInput.SetText(string.Empty); + } + + private bool OnCloseClick(IXUIButton btn = null) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnSubmitClick(IXUIButton btn) + { + string text = base.uiBehaviour._NameInput.GetText(); + bool flag = string.IsNullOrEmpty(text) || text.Contains(" "); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenameInputNullString"), "fece00"); + result = false; + } + else + { + bool flag2 = text.Length > 8; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenamePlayerSizeErr"), "fece00"); + result = false; + } + else + { + bool flag3 = this._doc.ReqCreateGroupChat(text, 1u); + if (flag3) + { + this.OnCloseClick(null); + } + result = true; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitNameView.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitNameView.cs.meta new file mode 100644 index 00000000..259c8aa3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitNameView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ae40402aa5dc7d47a11a948347b5a10 +timeCreated: 1611404202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishBehaviour.cs b/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishBehaviour.cs new file mode 100644 index 00000000..043461f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishBehaviour.cs @@ -0,0 +1,8 @@ +using System; + +namespace XMainClient +{ + internal class RecruitPlayerPublishBehaviour : RecruitPublishBehaviour + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishBehaviour.cs.meta new file mode 100644 index 00000000..71d3fe2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af89188431df8db42acdbe8a6e30d4e5 +timeCreated: 1611404345 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishView.cs b/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishView.cs new file mode 100644 index 00000000..c46c64e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishView.cs @@ -0,0 +1,37 @@ +using System; +using KKSG; +using UILib; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitPlayerPublishView : RecruitPublishView + { + public override string fileName + { + get + { + return "Team/RecruitPublishView"; + } + } + + private GroupChatFindRoleInfo _PlayerInfo; + + protected override bool OnSubmitClick(IXUIButton btn) + { + bool flag = this._PlayerInfo == null; + if (flag) + { + this._PlayerInfo = new GroupChatFindRoleInfo(); + } + this._PlayerInfo.stageID = base.GetSelectStageID(); + this._PlayerInfo.type = base.GetMemberType(); + this._PlayerInfo.time = (uint)base.GetTime(); + this._PlayerInfo.roleid = XSingleton.singleton.XPlayerData.RoleID; + this._PlayerInfo.rolename = XSingleton.singleton.XPlayerData.Name; + this._PlayerInfo.fighting = XCharacterDocument.GetCharacterPPT(); + this._doc.SendGroupChatPlayerInfo(this._PlayerInfo); + return base.OnSubmitClick(btn); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishView.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishView.cs.meta new file mode 100644 index 00000000..9625ec0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPlayerPublishView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 768a0e73b10b334488d89adfe2188500 +timeCreated: 1611403950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs b/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs new file mode 100644 index 00000000..e855260c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs @@ -0,0 +1,54 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitPublishBehaviour : DlgBehaviourBase + { + public IXUIButton _Close; + + public IXUIButton _Submit; + + public IXUIScrollView _TypeListScrollView; + + public XUIPool _levelOnePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool _levelTwoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUICheckBox[] _memberTypes; + + public Transform _StartTime; + + private void Awake() + { + this._Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this._Submit = (base.transform.Find("Bg/Submit").GetComponent("XUIButton") as IXUIButton); + this._TypeListScrollView = (base.transform.Find("Bg/TypeList").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = base.transform.Find("Bg/TypeList/Table/LevelOneTpl"); + this._levelOnePool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/TypeList/Table/LevelTwoTpl"); + this._levelTwoPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this._StartTime = base.transform.Find("Bg/StartTime"); + transform = base.transform.Find("Bg/MemberTypes"); + int childCount = transform.childCount; + this._memberTypes = new IXUICheckBox[childCount]; + for (int i = 0; i < childCount; i++) + { + string text = XSingleton.singleton.StringCombine("GroupMember_Type", i.ToString()); + IXUICheckBox ixuicheckBox = transform.Find(text).GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)i); + IXUILabel ixuilabel = ixuicheckBox.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString(text)); + this._memberTypes[i] = ixuicheckBox; + } + this.OtherAwake(); + } + + public virtual void OtherAwake() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs.meta new file mode 100644 index 00000000..d55bb461 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPublishBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b907ba218b54e7648877e65a3bf0eaa4 +timeCreated: 1611404408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitPublishView.cs b/Client/Assets/Scripts/XMainClient/RecruitPublishView.cs new file mode 100644 index 00000000..2e59f8ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPublishView.cs @@ -0,0 +1,254 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitPublishView : DlgBase where T : IXUIDlg, new() where V : RecruitPublishBehaviour + { + protected GroupChatDocument _doc; + + private XBetterDictionary m_typeVector; + + private RecruitStepCounter _timeFrame; + + private uint _setupStageID = 1100u; + + private uint _curStageID = 1100u; + + protected override void OnUnload() + { + bool flag = this.m_typeVector != null; + if (flag) + { + this.m_typeVector.Release(); + this.m_typeVector = null; + } + DlgHandlerBase.EnsureUnload(ref this._timeFrame); + base.OnUnload(); + } + + public void OpenView(uint stageID = 1100u) + { + this._setupStageID = stageID; + bool flag = base.IsVisible(); + if (flag) + { + this.Refresh(); + } + else + { + this.SetVisibleWithAnimation(true, null); + } + } + + protected virtual uint GetNormalSelect() + { + return this._setupStageID; + } + + protected uint GetSelectStageID() + { + GroupStageType.RowData groupStage = GroupChatDocument.GetGroupStage(this._curStageID); + return (uint)((groupStage != null) ? groupStage.Stage2Expedition : 0); + } + + public virtual void Refresh() + { + } + + protected override void OnShow() + { + base.OnShow(); + this.SetupTypeList(); + this.SetupNormalSeclect(); + this.Refresh(); + } + + protected uint GetMemberType() + { + uint result = 0u; + int i = 0; + int num = base.uiBehaviour._memberTypes.Length; + while (i < num) + { + bool bChecked = base.uiBehaviour._memberTypes[i].bChecked; + if (bChecked) + { + result = (uint)base.uiBehaviour._memberTypes[i].ID; + break; + } + i++; + } + return result; + } + + protected int GetTime() + { + return this._timeFrame.Cur; + } + + protected override void Init() + { + base.Init(); + this.SetupView(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour._Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour._Submit.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubmitClick)); + } + + protected virtual bool OnSubmitClick(IXUIButton btn) + { + this.OnCloseClick(null); + return true; + } + + private bool OnCloseClick(IXUIButton btn = null) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void SetupView() + { + this.m_typeVector = new XBetterDictionary(0); + this._doc = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + this._timeFrame = DlgHandlerBase.EnsureCreate(ref this._timeFrame, base.uiBehaviour._StartTime.gameObject, null, true); + int @int = XSingleton.singleton.GetInt("RecruitPublishTimeLimit"); + int num = 86400 / @int; + int int2 = XSingleton.singleton.GetInt("RecruitPublishTimeNormal"); + this._timeFrame.Setup(0, 86400, int2 * num, num, new RecruitStepCounterUpdate(this.OnStepCounterUpdate)); + } + + private void OnStepCounterUpdate(IXUILabel label) + { + int cur = this._timeFrame.Cur; + string format = "{0} - {1}"; + bool flag = cur == 0; + string text; + if (flag) + { + text = string.Format(format, "0:00", XSingleton.singleton.TimeFormatString(cur + this._timeFrame.Step, 0, 3, 3, false, true)); + } + else + { + text = string.Format(format, XSingleton.singleton.TimeFormatString(cur, 0, 3, 3, false, true), XSingleton.singleton.TimeFormatString(cur + this._timeFrame.Step, 0, 3, 3, false, true)); + } + label.SetText(text); + } + + private void SetupTypeList() + { + base.uiBehaviour._levelOnePool.ReturnAll(true); + base.uiBehaviour._levelTwoPool.ReturnAll(true); + this.m_typeVector.Clear(); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + GroupStageType.RowData[] stageTable = GroupChatDocument.GetStageTable(); + int i = 0; + int num = stageTable.Length; + while (i < num) + { + bool flag = stageTable[i].StagePerent == 0u; + if (flag) + { + GameObject gameObject = base.uiBehaviour._levelOnePool.FetchGameObject(false); + this.SetSelectorInfo(gameObject.transform, stageTable[i]); + IXUISprite ixuisprite = gameObject.transform.Find("Selected/Switch").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetAlpha(0f); + ixuisprite2.ID = (ulong)stageTable[i].StageID; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTypeCheckBoxClick)); + IXUIPlayTweenGroup ixuiplayTweenGroup = gameObject.transform.GetComponent("XUIPlayTweenGroup") as IXUIPlayTweenGroup; + bool flag2 = ixuiplayTweenGroup != null; + if (flag2) + { + ixuiplayTweenGroup.ResetTween(true); + } + } + i++; + } + i = 0; + num = stageTable.Length; + while (i < num) + { + bool flag3 = stageTable[i].StagePerent == 0u; + if (!flag3) + { + bool flag4 = !this.m_typeVector.ContainsKey(stageTable[i].StagePerent); + if (!flag4) + { + GameObject gameObject = base.uiBehaviour._levelTwoPool.FetchGameObject(false); + this.SetSelectorInfo(gameObject.transform, stageTable[i]); + Transform transform = this.m_typeVector[stageTable[i].StagePerent].Find("ChildList"); + IXUISprite ixuisprite3 = gameObject.transform.Find("Switch").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite4.ID = (ulong)stageTable[i].StageID; + ixuisprite3.SetAlpha(0f); + gameObject.transform.parent = transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, -((float)transform.childCount - 0.5f) * (float)ixuisprite4.spriteHeight, 0f); + ixuisprite4.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTypeCheckBoxClick)); + } + } + i++; + } + } + + private void SetupNormalSeclect() + { + uint key = 0u; + uint normalSelect = this.GetNormalSelect(); + Transform transform; + bool flag = this.m_typeVector.TryGetValue(normalSelect, out transform); + if (flag) + { + this._curStageID = normalSelect; + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.bChecked = true; + bool flag2 = GroupChatDocument.TryGetParentStage(this._curStageID, out key) && this.m_typeVector.TryGetValue(key, out transform); + if (flag2) + { + IXUIPlayTweenGroup ixuiplayTweenGroup = transform.GetComponent("XUIPlayTweenGroup") as IXUIPlayTweenGroup; + bool flag3 = ixuiplayTweenGroup == null; + if (!flag3) + { + ixuiplayTweenGroup.ResetTween(true); + ixuiplayTweenGroup.PlayTween(true); + } + } + } + } + + private void SetSelectorInfo(Transform t, GroupStageType.RowData rowData) + { + IXUILabel ixuilabel = t.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Selected/Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.StageName); + t.name = rowData.StageID.ToString(); + ixuilabel2.SetText(rowData.StageName); + bool flag = !this.m_typeVector.ContainsKey(rowData.StageID); + if (flag) + { + this.m_typeVector.Add(rowData.StageID, t); + } + } + + private void OnTypeCheckBoxClick(IXUISprite sprite) + { + this._curStageID = (uint)sprite.ID; + this.OnStageSelect(); + XSingleton.singleton.AddGreenLog("OnTypeCheckBoxClick", sprite.ID.ToString(), null, null, null, null); + } + + protected virtual void OnStageSelect() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitPublishView.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitPublishView.cs.meta new file mode 100644 index 00000000..43cb667b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitPublishView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b39be54c2755f6a4ab945d3558b83f56 +timeCreated: 1611404389 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitSelectGroupHandler.cs b/Client/Assets/Scripts/XMainClient/RecruitSelectGroupHandler.cs new file mode 100644 index 00000000..89026e1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitSelectGroupHandler.cs @@ -0,0 +1,220 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitSelectGroupHandler : DlgHandlerBase + { + public CBrifGroupInfo SelectGroup + { + get + { + return this._SelectGroupInfo; + } + private set + { + this._SelectGroupInfo = value; + } + } + + private IXUIScrollView m_GroupScrollView; + + private IXUIWrapContent m_GroupWrapContent; + + private IXUISprite m_Close; + + private List _mineGroups; + + private CBrifGroupInfo _NewGroupInfo; + + private CBrifGroupInfo _SelectGroupInfo; + + private ulong _NormalSelectGroupID = 0UL; + + private GroupChatDocument _doc; + + private RecruitSelectGroupUpdate m_selectUpdate; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + this.m_GroupScrollView = (base.transform.Find("SelectGroup").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_GroupWrapContent = (base.transform.Find("SelectGroup/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_GroupWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + Transform transform = base.transform.Find("Close"); + bool flag = transform != null; + if (flag) + { + this.m_Close = (transform.GetComponent("XUISprite") as IXUISprite); + this.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClick)); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.SetupMineGroups(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.SetupMineGroups(); + } + + private void Excute() + { + bool flag = this.m_selectUpdate != null; + if (flag) + { + this.m_selectUpdate(); + } + } + + public void Setup(RecruitSelectGroupUpdate selectUpdate = null) + { + this.m_selectUpdate = selectUpdate; + } + + public void SetupSelectGroup(ulong groupID) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this._NormalSelectGroupID = groupID; + this.SetupMineGroups(); + } + } + + private void SetupMineGroups() + { + bool flag = this._mineGroups == null; + if (flag) + { + this._mineGroups = new List(); + } + bool flag2 = this._NewGroupInfo == null; + if (flag2) + { + this._NewGroupInfo = new CBrifGroupInfo(); + this._NewGroupInfo.id = 0UL; + } + this._mineGroups.Clear(); + this._doc.TryGetGroupInMine(ref this._mineGroups); + this._mineGroups.Sort(new Comparison(this.GroupCompareTo)); + int count = this._mineGroups.Count; + bool flag3 = count > 0 && this._NormalSelectGroupID == 0UL; + if (flag3) + { + CBrifGroupInfo cbrifGroupInfo = this._mineGroups[0]; + this._NormalSelectGroupID = cbrifGroupInfo.id; + } + this._mineGroups.Insert(0, this._NewGroupInfo); + this.m_GroupWrapContent.SetContentCount(this._mineGroups.Count, false); + this.m_GroupScrollView.ResetPosition(); + } + + private int GroupCompareTo(CBrifGroupInfo info1, CBrifGroupInfo info2) + { + bool flag = info1.id == 0UL; + int result; + if (flag) + { + result = -1; + } + else + { + bool flag2 = info2.id == 0UL; + if (flag2) + { + result = 1; + } + else + { + result = (int)(info1.createTime - info2.createTime); + } + } + return result; + } + + private void OnWrapContentUpdate(Transform t, int index) + { + Transform transform = t.Find("Info"); + Transform transform2 = t.Find("New"); + CBrifGroupInfo cbrifGroupInfo = this._mineGroups[index]; + bool flag = cbrifGroupInfo.id == 0UL; + if (flag) + { + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(true); + } + else + { + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + IXUILabel ixuilabel = t.Find("Info/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Info/Time").GetComponent("XUILabel") as IXUILabel; + IXUICheckBox ixuicheckBox = t.Find("Info").GetComponent("XUICheckBox") as IXUICheckBox; + ixuilabel.SetText(cbrifGroupInfo.name); + ixuilabel2.SetText(XSingleton.singleton.TimeFormatSince1970((int)cbrifGroupInfo.createTime, XStringDefineProxy.GetString("TIME_FORMAT_YYMMDD"), true)); + bool flag2 = cbrifGroupInfo.id == this._NormalSelectGroupID; + if (flag2) + { + ixuicheckBox.bChecked = true; + this.SelectGroup = cbrifGroupInfo; + } + else + { + ixuicheckBox.bChecked = false; + } + } + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGroupClick)); + } + + private void OnGroupClick(IXUISprite sprite) + { + int num = (int)sprite.ID; + bool flag = num == 0; + if (flag) + { + this._doc.SelectGroupHandler = this; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + IXUICheckBox ixuicheckBox = sprite.transform.Find("Info").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.bChecked = true; + this.SelectGroup = this._mineGroups[num]; + this.Excute(); + } + } + + private void OnCloseClick(IXUISprite sprite) + { + base.SetVisible(false); + } + + public override void OnUnload() + { + this._NewGroupInfo = null; + this._SelectGroupInfo = null; + this.m_selectUpdate = null; + bool flag = this._mineGroups != null; + if (flag) + { + this._mineGroups.Clear(); + this._mineGroups = null; + } + this._doc.SelectGroupHandler = null; + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitSelectGroupHandler.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitSelectGroupHandler.cs.meta new file mode 100644 index 00000000..39ef7d3a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitSelectGroupHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f00bb155b0bb93a42af600100a6d5d32 +timeCreated: 1611404827 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitSelectGroupUpdate.cs b/Client/Assets/Scripts/XMainClient/RecruitSelectGroupUpdate.cs new file mode 100644 index 00000000..a7a5bc1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitSelectGroupUpdate.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate void RecruitSelectGroupUpdate(); +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitSelectGroupUpdate.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitSelectGroupUpdate.cs.meta new file mode 100644 index 00000000..80417719 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitSelectGroupUpdate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cc7510dc7c96484d9a7d85d6ae7c7df +timeCreated: 1611403693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitStepCounter.cs b/Client/Assets/Scripts/XMainClient/RecruitStepCounter.cs new file mode 100644 index 00000000..03faddad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitStepCounter.cs @@ -0,0 +1,128 @@ +using System; +using UILib; + +namespace XMainClient +{ + internal class RecruitStepCounter : DlgHandlerBase + { + public int Step + { + get + { + return this.limit_step; + } + } + + public int Cur + { + get + { + return this.limit_cur; + } + } + + private IXUIButton m_AddBtn; + + private IXUIButton m_MinusBtn; + + private IXUILabel m_timeLabel; + + private int limit_max = 0; + + private int limit_min = 0; + + private int limit_normal = 0; + + private int limit_cur = 0; + + private int limit_step = 0; + + private RecruitStepCounterUpdate m_counter; + + public int GetTime() + { + return this.limit_step * this.limit_cur; + } + + protected override void Init() + { + base.Init(); + this.m_AddBtn = (base.transform.Find("Add").GetComponent("XUIButton") as IXUIButton); + this.m_MinusBtn = (base.transform.Find("Minus").GetComponent("XUIButton") as IXUIButton); + this.m_timeLabel = (base.transform.Find("buynum").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_AddBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddClick)); + this.m_MinusBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMinusBtn)); + } + + private bool OnAddClick(IXUIButton btn) + { + bool flag = this.limit_max == -1; + if (flag) + { + this.limit_cur += this.limit_step; + } + else + { + bool flag2 = this.limit_cur < this.limit_max - this.limit_step; + if (flag2) + { + this.limit_cur += this.limit_step; + } + else + { + this.limit_cur = this.limit_max - this.limit_step; + } + } + this.Excute(); + return true; + } + + private bool OnMinusBtn(IXUIButton btn) + { + bool flag = this.limit_min == -1; + if (flag) + { + this.limit_cur -= this.limit_step; + } + else + { + bool flag2 = this.limit_cur - this.limit_step > this.limit_min; + if (flag2) + { + this.limit_cur -= this.limit_step; + } + else + { + this.limit_cur = this.limit_min; + } + } + this.Excute(); + return true; + } + + public void Setup(int min, int max, int cur, int step = 1, RecruitStepCounterUpdate counter = null) + { + this.limit_max = max; + this.limit_min = min; + this.limit_normal = cur; + this.limit_step = step; + this.limit_cur = cur; + this.m_counter = counter; + this.Excute(); + } + + private void Excute() + { + bool flag = this.m_counter != null; + if (flag) + { + this.m_counter(this.m_timeLabel); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitStepCounter.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitStepCounter.cs.meta new file mode 100644 index 00000000..ff7b5968 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitStepCounter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef6be64ee4c581d47981360d32a110f2 +timeCreated: 1611404804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitStepCounterUpdate.cs b/Client/Assets/Scripts/XMainClient/RecruitStepCounterUpdate.cs new file mode 100644 index 00000000..1b2deb98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitStepCounterUpdate.cs @@ -0,0 +1,7 @@ +using System; +using UILib; + +namespace XMainClient +{ + public delegate void RecruitStepCounterUpdate(IXUILabel label); +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitStepCounterUpdate.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitStepCounterUpdate.cs.meta new file mode 100644 index 00000000..2bf0c4de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitStepCounterUpdate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 38f426828d2303a4e8ae30ed245a9907 +timeCreated: 1611403590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitTitleBar.cs b/Client/Assets/Scripts/XMainClient/RecruitTitleBar.cs new file mode 100644 index 00000000..2148f8a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitTitleBar.cs @@ -0,0 +1,210 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RecruitTitleBar : DlgHandlerBase + { + public uint filter + { + get + { + return this.m_selectIndex; + } + } + + public int direction + { + get + { + return this.m_dir; + } + } + + public TitleSelector selector + { + get + { + return this.m_selector; + } + set + { + bool flag = this.m_selector != value; + if (flag) + { + this.m_dir = -1; + } + else + { + this.m_dir = -this.m_dir; + } + this.m_selector = value; + } + } + + private IXUILabel[] m_titles; + + private Transform m_SortArrow; + + private Transform m_UpArrow; + + private Transform m_DownArrow; + + private uint m_selectIndex = 0u; + + private int m_dir = -1; + + private TitleSelector m_selector = TitleSelector.Name; + + private Transform m_DropList; + + private IXUISprite m_DropClose; + + private RecruitTitleChange m_titleChange; + + private RecruitTitleReSelect m_reselect; + + public override void OnUnload() + { + bool flag = this.m_titles != null; + if (flag) + { + this.m_titles = null; + } + this.m_titleChange = null; + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.m_SortArrow = base.transform.Find("Sorting"); + this.m_UpArrow = base.transform.Find("Sorting/Up"); + this.m_DownArrow = base.transform.Find("Sorting/Down"); + int num = XFastEnumIntEqualityComparer.ToInt(TitleSelector.End); + this.m_titles = new IXUILabel[num]; + for (int i = 0; i < num; i++) + { + this.m_titles[i] = (base.transform.Find(string.Format("Title{0}", i)).GetComponent("XUILabel") as IXUILabel); + this.m_titles[i].ID = (ulong)((long)i); + IXUIButton ixuibutton = this.m_titles[i].gameObject.transform.Find("Button").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)i); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTitleClick)); + } + this.m_DropList = base.transform.Find(string.Format("Title{0}/DropList", XFastEnumIntEqualityComparer.ToInt(TitleSelector.Type))); + this.m_DropClose = (this.m_DropList.Find("Close").GetComponent("XUISprite") as IXUISprite); + Transform transform = this.m_DropList.Find("Jobs"); + this.m_DropClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseDrop)); + int j = 0; + int childCount = transform.childCount; + while (j < childCount) + { + IXUISprite ixuisprite = transform.Find(XSingleton.singleton.StringCombine("GroupMember_Type", j.ToString())).GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)j); + IXUILabel ixuilabel = ixuisprite.transform.Find("ItemText").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString(ixuisprite.gameObject.name)); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnDropClick)); + j++; + } + this.OnCloseDrop(null); + this.SetupMemberType(this.m_titles[XFastEnumIntEqualityComparer.ToInt(TitleSelector.Type)]); + this.SetState(this.m_titles[XFastEnumIntEqualityComparer.ToInt(this.selector)]); + } + + private void OnDropClick(IXUISprite sprite) + { + uint num = (uint)sprite.ID; + bool flag = this.m_selectIndex != num; + if (flag) + { + this.m_selectIndex = num; + this.SetupMemberType(this.m_titles[XFastEnumIntEqualityComparer.ToInt(TitleSelector.Type)]); + bool flag2 = this.m_reselect != null; + if (flag2) + { + this.m_reselect(); + } + } + this.OnCloseDrop(null); + } + + private void Excute() + { + } + + private void OnCloseDrop(IXUISprite sprite = null) + { + this.m_DropList.gameObject.SetActive(false); + } + + private bool OnTitleClick(IXUIButton btn) + { + TitleSelector titleSelector = (TitleSelector)btn.ID; + bool flag = titleSelector == TitleSelector.Type; + if (flag) + { + this.m_DropList.gameObject.SetActive(true); + } + else + { + this.SetState(titleSelector); + bool flag2 = this.m_titleChange != null; + if (flag2) + { + this.m_titleChange(); + } + } + return true; + } + + public void RegisterTitleChange(RecruitTitleChange eventHandler) + { + this.m_titleChange = eventHandler; + } + + public void RegisterTitleReSelect(RecruitTitleReSelect selectHandle) + { + this.m_reselect = selectHandle; + } + + public void SetState(TitleSelector select) + { + this.selector = select; + this.SetState(this.m_titles[XFastEnumIntEqualityComparer.ToInt(select)]); + } + + private void SetState(IXUILabel selector) + { + TitleSelector titleSelector = (TitleSelector)selector.ID; + bool flag = titleSelector == TitleSelector.Type; + if (flag) + { + this.SetupMemberType(selector); + } + else + { + this.m_SortArrow.parent = selector.gameObject.transform; + this.m_SortArrow.localPosition = Vector2.zero; + this.m_UpArrow.gameObject.SetActive(this.m_dir == 1); + this.m_DownArrow.gameObject.SetActive(this.m_dir == -1); + } + } + + private void SetupMemberType(IXUILabel select) + { + Transform transform = select.gameObject.transform.Find("Job"); + bool flag = transform == null; + if (!flag) + { + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + bool flag2 = ixuilabel == null; + if (!flag2) + { + ixuilabel.SetText(XStringDefineProxy.GetString(string.Format("GroupMember_Type{0}", this.m_selectIndex))); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitTitleBar.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitTitleBar.cs.meta new file mode 100644 index 00000000..8cc837f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitTitleBar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f414afddb068a7044a1029a21199a773 +timeCreated: 1611404851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitTitleChange.cs b/Client/Assets/Scripts/XMainClient/RecruitTitleChange.cs new file mode 100644 index 00000000..b74f7a64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitTitleChange.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void RecruitTitleChange(); +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitTitleChange.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitTitleChange.cs.meta new file mode 100644 index 00000000..56bedfee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitTitleChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a27fa598a9d9ae46b2c1a2173495ba1 +timeCreated: 1611403308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitTitleReSelect.cs b/Client/Assets/Scripts/XMainClient/RecruitTitleReSelect.cs new file mode 100644 index 00000000..88c05063 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitTitleReSelect.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void RecruitTitleReSelect(); +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitTitleReSelect.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitTitleReSelect.cs.meta new file mode 100644 index 00000000..3ec7b1a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitTitleReSelect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c750bc41031b86240af9f99ab87deb7d +timeCreated: 1611404530 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitToggle.cs b/Client/Assets/Scripts/XMainClient/RecruitToggle.cs new file mode 100644 index 00000000..4ae15f27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitToggle.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum RecruitToggle + { + ToggleTeam, + ToggleMember + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitToggle.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitToggle.cs.meta new file mode 100644 index 00000000..c5cae3ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitToggle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18b47eaf26b152e4793a333f0f04e57c +timeCreated: 1611403298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RecruitView.cs b/Client/Assets/Scripts/XMainClient/RecruitView.cs new file mode 100644 index 00000000..77985635 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitView.cs @@ -0,0 +1,201 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class RecruitView : DlgBase + { + public override string fileName + { + get + { + return "Team/RecruitDlg"; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + private GroupChatDocument _doc; + + private RecruitToggle _curToggle = RecruitToggle.ToggleTeam; + + private RecruitGroupHandle _groupHandler; + + private RecruitMemberHandler _memberHandler; + + public void RefreshRedPoint() + { + base.uiBehaviour._recruitRed.SetActive(this._doc.bShowMotion); + bool flag = this._groupHandler != null && this._groupHandler.IsVisible(); + if (flag) + { + this._groupHandler.RefreshRedPoint(); + } + bool flag2 = this._memberHandler != null && this._memberHandler.IsVisible(); + if (flag2) + { + this._memberHandler.RefreshRedPoint(); + } + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + this._groupHandler = DlgHandlerBase.EnsureCreate(ref this._groupHandler, base.uiBehaviour.m_group.gameObject, this, false); + this._memberHandler = DlgHandlerBase.EnsureCreate(ref this._memberHandler, base.uiBehaviour.m_member.gameObject, this, false); + } + + protected override void OnHide() + { + base.uiBehaviour._ToggleMember.bChecked = false; + base.uiBehaviour._ToggleTeam.bChecked = false; + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._groupHandler); + DlgHandlerBase.EnsureUnload(ref this._memberHandler); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnSelectWhenShow(); + this.RefreshRedPoint(); + this.Refresh(); + } + + public void ReSelect() + { + bool flag = !base.IsVisible(); + if (!flag) + { + RecruitToggle curToggle = this._curToggle; + if (curToggle != RecruitToggle.ToggleTeam) + { + if (curToggle == RecruitToggle.ToggleMember) + { + bool flag2 = this._memberHandler.IsVisible(); + if (flag2) + { + this._memberHandler.OnReSelect(); + } + } + } + else + { + bool flag3 = this._groupHandler.IsVisible(); + if (flag3) + { + this._groupHandler.OnReSelect(); + } + } + } + } + + private void OnSelectWhenShow() + { + RecruitToggle curToggle = this._curToggle; + if (curToggle != RecruitToggle.ToggleTeam) + { + if (curToggle == RecruitToggle.ToggleMember) + { + base.uiBehaviour._ToggleMember.bChecked = true; + } + } + else + { + base.uiBehaviour._ToggleTeam.bChecked = true; + } + this.OnSelectVisible(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour._BtnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour._ToggleMember.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnToggleChange)); + base.uiBehaviour._ToggleTeam.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnToggleChange)); + base.uiBehaviour._Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClick)); + } + + private bool OnHelpClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GroupRecruit); + return true; + } + + public void Refresh() + { + bool flag = !base.IsVisible(); + if (!flag) + { + RecruitToggle curToggle = this._curToggle; + if (curToggle != RecruitToggle.ToggleTeam) + { + if (curToggle == RecruitToggle.ToggleMember) + { + bool flag2 = this._memberHandler.IsVisible(); + if (flag2) + { + this._memberHandler.RefreshData(); + } + } + } + else + { + bool flag3 = this._groupHandler.IsVisible(); + if (flag3) + { + this._groupHandler.RefreshData(); + } + } + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private bool OnToggleChange(IXUICheckBox checkbox) + { + bool flag = !checkbox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._curToggle = (RecruitToggle)checkbox.ID; + this.OnSelectVisible(); + result = false; + } + return result; + } + + private void OnSelectVisible() + { + this._memberHandler.SetVisible(this._curToggle == RecruitToggle.ToggleMember); + this._groupHandler.SetVisible(this._curToggle == RecruitToggle.ToggleTeam); + } + + private bool OnCloseClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RecruitView.cs.meta b/Client/Assets/Scripts/XMainClient/RecruitView.cs.meta new file mode 100644 index 00000000..81d79404 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RecruitView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f9f125e70e005b428c754493c29cc67 +timeCreated: 1611403928 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RelaxGame.cs b/Client/Assets/Scripts/XMainClient/RelaxGame.cs new file mode 100644 index 00000000..6b3398a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RelaxGame.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum RelaxGame + { + Joker, + GuildVoiceQA + } +} diff --git a/Client/Assets/Scripts/XMainClient/RelaxGame.cs.meta b/Client/Assets/Scripts/XMainClient/RelaxGame.cs.meta new file mode 100644 index 00000000..e2cc80bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RelaxGame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ab09a1511bab3341831ea5eae2ba2d8 +timeCreated: 1611404093 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ReplayBehaviour.cs b/Client/Assets/Scripts/XMainClient/ReplayBehaviour.cs new file mode 100644 index 00000000..0b4c72f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ReplayBehaviour.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class ReplayBehaviour : DlgBehaviourBase + { + public IXUIButton m_btn_camera; + + public IXUISprite m_spr_disable_camera; + + public IXUIButton m_btn_mic; + + public IXUISprite m_spr_disable_mic; + + public IXUIButton m_btn_stop; + + public IXUIButton m_btn_switch; + + private void Awake() + { + this.m_btn_camera = (base.transform.Find("SysGridV3/SysCDanceBtn2").GetComponent("XUIButton") as IXUIButton); + this.m_btn_mic = (base.transform.Find("SysGridV3/SysCDanceBtn3").GetComponent("XUIButton") as IXUIButton); + this.m_btn_stop = (base.transform.Find("SysGridV3/SysCDanceBtn1").GetComponent("XUIButton") as IXUIButton); + this.m_btn_switch = (base.transform.Find("SysGridV3/SysEPhoto").GetComponent("XUIButton") as IXUIButton); + this.m_spr_disable_camera = (this.m_btn_camera.gameObject.transform.Find("off").GetComponent("XUISprite") as IXUISprite); + this.m_spr_disable_mic = (this.m_btn_mic.gameObject.transform.Find("off").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ReplayBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/ReplayBehaviour.cs.meta new file mode 100644 index 00000000..7fcf6332 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ReplayBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eac3d4809dcddab459fb55581f59bf88 +timeCreated: 1611404780 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs b/Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs new file mode 100644 index 00000000..e00e54a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; +using MiniJSON; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ReplaykitDlg : DlgBase + { + public override string fileName + { + get + { + return "Hall/ReplayDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public bool isPlaying = false; + + public bool isReadyPlaying = false; + + public static bool isCameraOpen = false; + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btn_camera.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnCameraClick)); + base.uiBehaviour.m_btn_stop.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStopClick)); + base.uiBehaviour.m_btn_mic.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnMicClick)); + base.uiBehaviour.m_btn_switch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnSwitchClick)); + } + + public void CheckShow() + { + bool flag = this.isPlaying; + if (flag) + { + this.SetVisible(true, true); + this.Refresh(); + } + } + + public void Show(bool show) + { + bool flag = DlgBase.singleton.isBroadcast && show; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Replay_IsBroadcasting"), "fece00"); + } + else + { + if (show) + { + this.SetVisible(true, true); + } + else + { + bool flag2 = base.IsLoaded(); + if (flag2) + { + this.SetVisible(false, true); + } + } + if (show) + { + ReplaykitDlg.isCameraOpen = true; + this.Refresh(); + this.OnBtnCameraClick(base.uiBehaviour.m_btn_camera); + } + } + } + + private void Refresh() + { + base.uiBehaviour.m_spr_disable_camera.SetVisible(!ReplaykitDlg.isCameraOpen); + bool flag = XSingleton.singleton.XPlatform.CheckStatus("is_microphone_enabled", ""); + base.uiBehaviour.m_spr_disable_mic.SetVisible(!flag); + XSingleton.singleton.AddLog("CAMERA: " + ReplaykitDlg.isCameraOpen.ToString(), " micro: " + flag.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + + private bool OnBtnCameraClick(IXUIButton btn) + { + List floatList = XSingleton.singleton.GetFloatList("ReplayPos"); + ReplaykitDlg.isCameraOpen = !ReplaykitDlg.isCameraOpen; + base.uiBehaviour.m_spr_disable_camera.SetVisible(!ReplaykitDlg.isCameraOpen); + bool flag = ReplaykitDlg.isCameraOpen; + if (flag) + { + Dictionary dictionary = new Dictionary(); + dictionary["xPoint"] = floatList[0]; + dictionary["yPoint"] = floatList[1]; + dictionary["width"] = floatList[2]; + dictionary["height"] = floatList[3]; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("SetPortraitFrame paramStr = ", text, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("set_portrait_frame", text); + } + else + { + XSingleton.singleton.AddLog("remove_portrait_frame", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("remove_portrait_frame", ""); + } + return true; + } + + private bool OnBtnMicClick(IXUIButton btn) + { + bool flag = !XSingleton.singleton.XPlatform.CheckStatus("is_microphone_enabled", ""); + Dictionary dictionary = new Dictionary(); + dictionary["enable"] = (flag ? "true" : "false"); + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("SetPortraitFrame paramStr = ", text, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_spr_disable_mic.SetVisible(!flag); + XSingleton.singleton.XPlatform.SendGameExData("switch_microphone", text); + return true; + } + + public bool OnStopClick(IXUIButton btn) + { + this.Show(false); + this.isReadyPlaying = false; + this.isPlaying = false; + XSingleton.singleton.AddLog("finish_broadcasting", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("finish_broadcasting", ""); + XSingleton.singleton.XPlatform.SendGameExData("remove_portrait_frame", ""); + return true; + } + + public void OpenRepaly() + { + XSingleton.singleton.AddLog("select_broadcast_service", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("select_broadcast_service", ""); + ReplaykitDlg.isCameraOpen = false; + this.isReadyPlaying = true; + } + + private bool OnBtnSwitchClick(IXUIButton btn) + { + XSingleton.singleton.AddLog("OnBtnSwitchClick", null, null, null, null, null, XDebugColor.XDebug_None); + return true; + } + + public void ResumeReplay() + { + bool flag = this.isPlaying; + if (flag) + { + XSingleton.singleton.AddLog("resume_broadcasting", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("resume_broadcasting", ""); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs.meta b/Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs.meta new file mode 100644 index 00000000..24de9218 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ReplaykitDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae021f8352aaa084a9011457b5cab08a +timeCreated: 1611404337 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ResRankInfo.cs b/Client/Assets/Scripts/XMainClient/ResRankInfo.cs new file mode 100644 index 00000000..d172b14b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ResRankInfo.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class ResRankInfo + { + public ulong roleID = 0UL; + + public string roleName = ""; + + public string guildName = ""; + + public uint donateValue = 0u; + } +} diff --git a/Client/Assets/Scripts/XMainClient/ResRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/ResRankInfo.cs.meta new file mode 100644 index 00000000..4ea34bac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ResRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21edb9e5b8db952438a47b9640e6205b +timeCreated: 1611403416 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RewardAuxData.cs b/Client/Assets/Scripts/XMainClient/RewardAuxData.cs new file mode 100644 index 00000000..301c2ee4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RewardAuxData.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RewardAuxData + { + public List RewardDataList + { + get + { + bool flag = this.m_RewardDataList == null; + if (flag) + { + this.m_RewardDataList = new List(); + for (int i = 0; i < this.m_PassRewardRow.Reward.Count; i++) + { + RewardItemAuxData rewardItemAuxData = new RewardItemAuxData(this.m_PassRewardRow.Reward[i, 0], this.m_PassRewardRow.Reward[i, 1]); + bool flag2 = rewardItemAuxData.Id > 0; + if (flag2) + { + this.m_RewardDataList.Add(rewardItemAuxData); + } + } + } + return this.m_RewardDataList; + } + } + + public SeqRef RankRang + { + get + { + return this.m_PassRewardRow.Rank; + } + } + + private FirstPassReward.RowData m_PassRewardRow; + + private List m_RewardDataList = null; + + public RewardAuxData(FirstPassReward.RowData data) + { + this.m_PassRewardRow = data; + } + + public bool IsInRang(int num) + { + return num > this.m_PassRewardRow.Rank[0] && num <= this.m_PassRewardRow.Rank[1]; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RewardAuxData.cs.meta b/Client/Assets/Scripts/XMainClient/RewardAuxData.cs.meta new file mode 100644 index 00000000..aeea4fe1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RewardAuxData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39e657b6cf4cef648bc1532e9e769844 +timeCreated: 1611403594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RewardItemAuxData.cs b/Client/Assets/Scripts/XMainClient/RewardItemAuxData.cs new file mode 100644 index 00000000..62545abd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RewardItemAuxData.cs @@ -0,0 +1,33 @@ +using System; + +namespace XMainClient +{ + internal class RewardItemAuxData + { + public int Id + { + get + { + return this.m_id; + } + } + + public int Count + { + get + { + return this.m_count; + } + } + + private int m_id = 0; + + private int m_count = 0; + + public RewardItemAuxData(int id, int count) + { + this.m_id = id; + this.m_count = count; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RewardItemAuxData.cs.meta b/Client/Assets/Scripts/XMainClient/RewardItemAuxData.cs.meta new file mode 100644 index 00000000..4d708f81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RewardItemAuxData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff1b0841181c88042882b8ecfd11910d +timeCreated: 1611404945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RollDlg.cs b/Client/Assets/Scripts/XMainClient/RollDlg.cs new file mode 100644 index 00000000..d90c1317 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RollDlg.cs @@ -0,0 +1,96 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class RollDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/RollDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XRollDocument _doc; + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XRollDocument.uuID) as XRollDocument); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_YesButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnYesButtonClicked)); + base.uiBehaviour.m_CancelButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancelButtonClicked)); + } + + public void ShowRollInfo() + { + this.SetVisibleWithAnimation(true, null); + this.SetupRollItemInfo(); + } + + private bool OnYesButtonClicked(IXUIButton button) + { + this._doc.SendRollReq(1); + this.SetVisible(false, true); + return true; + } + + private bool OnCancelButtonClicked(IXUIButton button) + { + this._doc.SendRollReq(2); + this.SetVisible(false, true); + return true; + } + + private void SetupRollItemInfo() + { + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_ItemTpl, (int)this._doc.RollItemID, (int)this._doc.RollItemCount, false); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.RollItemID); + bool flag = itemConf == null; + if (!flag) + { + base.uiBehaviour.m_Level.SetText(itemConf.ReqLevel.ToString()); + base.uiBehaviour.m_Prof.SetText(XSingleton.singleton.GetProfName((int)itemConf.Profession)); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = Time.time - this._doc.LastRollTime > (float)this._doc.ClientRollTime; + if (flag) + { + this.SetVisible(false, true); + } + else + { + base.uiBehaviour.m_TimeBar.Value = ((float)this._doc.ClientRollTime - Time.time + this._doc.LastRollTime) / (float)this._doc.ClientRollTime; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RollDlg.cs.meta b/Client/Assets/Scripts/XMainClient/RollDlg.cs.meta new file mode 100644 index 00000000..e804cb42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RollDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f76a76b9c490664c9fcb7a7790ebf36 +timeCreated: 1611403209 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/RollDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/RollDlgBehaviour.cs new file mode 100644 index 00000000..b67cf1ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RollDlgBehaviour.cs @@ -0,0 +1,32 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class RollDlgBehaviour : DlgBehaviourBase + { + public GameObject m_ItemTpl; + + public IXUISlider m_TimeBar; + + public IXUILabel m_Level; + + public IXUILabel m_Prof; + + public IXUIButton m_YesButton; + + public IXUIButton m_CancelButton; + + private void Awake() + { + this.m_ItemTpl = base.transform.Find("Bg/ItemTpl/Item").gameObject; + this.m_TimeBar = (base.transform.Find("Bg/Bar").GetComponent("XUISlider") as IXUISlider); + this.m_Level = (base.transform.Find("Bg/ItemTpl/Level").GetComponent("XUILabel") as IXUILabel); + this.m_Prof = (base.transform.Find("Bg/ItemTpl/Prof").GetComponent("XUILabel") as IXUILabel); + this.m_YesButton = (base.transform.Find("Bg/Yes").GetComponent("XUIButton") as IXUIButton); + this.m_CancelButton = (base.transform.Find("Bg/Cancel").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/RollDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/RollDlgBehaviour.cs.meta new file mode 100644 index 00000000..d715310b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/RollDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f8c038eaecae884d8917a19e7d655f0 +timeCreated: 1611403611 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SceneMat.cs b/Client/Assets/Scripts/XMainClient/SceneMat.cs new file mode 100644 index 00000000..a969ee78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SceneMat.cs @@ -0,0 +1,40 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public struct SceneMat + { + public Renderer render; + + public Material srcMat; + + public void Fade(bool enable) + { + Material sharedMaterial = this.render.sharedMaterial; + bool flag = sharedMaterial == null; + if (!flag) + { + if (enable) + { + bool flag2 = this.srcMat == null; + if (flag2) + { + this.srcMat = sharedMaterial; + this.render.material.shader = ShaderManager._fade_maskR_noLight; + } + } + else + { + this.render.sharedMaterial = this.srcMat; + } + } + } + + public void InitRender(Renderer r) + { + this.render = r; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SceneMat.cs.meta b/Client/Assets/Scripts/XMainClient/SceneMat.cs.meta new file mode 100644 index 00000000..28849988 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SceneMat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b10da5d1a350084a9f936cdbb1264a1 +timeCreated: 1611403313 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SceneRefuseReason.cs b/Client/Assets/Scripts/XMainClient/SceneRefuseReason.cs new file mode 100644 index 00000000..158b7694 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SceneRefuseReason.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal enum SceneRefuseReason + { + Invalid, + Admit, + PreTask_Notfinish, + PreScene_Notfinish, + ReachLimitTimes, + Level_NotEnough + } +} diff --git a/Client/Assets/Scripts/XMainClient/SceneRefuseReason.cs.meta b/Client/Assets/Scripts/XMainClient/SceneRefuseReason.cs.meta new file mode 100644 index 00000000..7a3b3a83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SceneRefuseReason.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08c22a46535d965409e827d3dedb5699 +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ScreenShotCallback.cs b/Client/Assets/Scripts/XMainClient/ScreenShotCallback.cs new file mode 100644 index 00000000..e38b91f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ScreenShotCallback.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void ScreenShotCallback(bool succ); +} diff --git a/Client/Assets/Scripts/XMainClient/ScreenShotCallback.cs.meta b/Client/Assets/Scripts/XMainClient/ScreenShotCallback.cs.meta new file mode 100644 index 00000000..3bb04918 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ScreenShotCallback.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d52577bd07837564c884314c1c4bcbe5 +timeCreated: 1611404626 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Script.meta b/Client/Assets/Scripts/XMainClient/Script.meta new file mode 100644 index 00000000..157bb325 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Script.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: df3f2de7aff988c48a58527308a78839 +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Script/XSkillGen.meta b/Client/Assets/Scripts/XMainClient/Script/XSkillGen.meta new file mode 100644 index 00000000..8e744345 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Script/XSkillGen.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 25b527728c8f30147841bd68b8a806f6 +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Script/XSkillGen/SkillGenTemplate.txt b/Client/Assets/Scripts/XMainClient/Script/XSkillGen/SkillGenTemplate.txt new file mode 100644 index 00000000..21dcd221 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Script/XSkillGen/SkillGenTemplate.txt @@ -0,0 +1,16 @@ +using System; +using XUtliPoolLib; +using UnityEngine; + +namespace XMainClient +{ + internal partial class %(class_name)s + { + public static bool %(method_name)s(XSkill skill) + { + //To do... add script here + + return true; + } + } +} \ No newline at end of file diff --git a/Client/Assets/Scripts/XMainClient/Script/XSkillGen/SkillGenTemplate.txt.meta b/Client/Assets/Scripts/XMainClient/Script/XSkillGen/SkillGenTemplate.txt.meta new file mode 100644 index 00000000..2f86d2a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Script/XSkillGen/SkillGenTemplate.txt.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5d2101ba48f75e0448a53b809d348945 +timeCreated: 1611404994 +licenseType: Free +TextScriptImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ScriptCode.cs b/Client/Assets/Scripts/XMainClient/ScriptCode.cs new file mode 100644 index 00000000..334cc84e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ScriptCode.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ScriptCode : XSingleton + { + private Dictionary m_CutSceneDoMap = new Dictionary(); + + private Dictionary m_SkillDoMap = new Dictionary(); + + public override bool Init() + { + this.m_CutSceneDoMap["archer_slash_show"] = new CutSceneDo(archer_slash_show.Do); + this.m_CutSceneDoMap["cleric_slash_show"] = new CutSceneDo(cleric_slash_show.Do); + this.m_CutSceneDoMap["first_slash_show"] = new CutSceneDo(first_slash_show.Do); + this.m_CutSceneDoMap["geraint_fly_away"] = new CutSceneDo(geraint_fly_away.Do); + this.m_CutSceneDoMap["geraint_get_wings"] = new CutSceneDo(geraint_get_wings.Do); + this.m_CutSceneDoMap["newbie_level"] = new CutSceneDo(newbie_level.Do); + this.m_CutSceneDoMap["newbie_level_end"] = new CutSceneDo(newbie_level_end.Do); + this.m_CutSceneDoMap["second_slash_show"] = new CutSceneDo(second_slash_show.Do); + this.m_CutSceneDoMap["sorceress_slash_show"] = new CutSceneDo(sorceress_slash_show.Do); + this.m_CutSceneDoMap["warrior_slash_show"] = new CutSceneDo(warrior_slash_show.Do); + this.m_CutSceneDoMap["academic_slash_show"] = new CutSceneDo(academic_slash_show.Do); + this.m_CutSceneDoMap["assassin_slash_show"] = new CutSceneDo(assassin_slash_show.Do); + this.m_CutSceneDoMap["kali_slash_show"] = new CutSceneDo(kali_slash_show.Do); + this.m_CutSceneDoMap["warrior_show"] = new CutSceneDo(warrior_show.Do); + this.m_CutSceneDoMap["sorceress_show"] = new CutSceneDo(sorceress_show.Do); + this.m_CutSceneDoMap["archer_show"] = new CutSceneDo(archer_show.Do); + this.m_CutSceneDoMap["cleric_show"] = new CutSceneDo(cleric_show.Do); + this.m_CutSceneDoMap["academic_show"] = new CutSceneDo(academic_show.Do); + this.m_CutSceneDoMap["assassin_show"] = new CutSceneDo(assassin_show.Do); + this.m_CutSceneDoMap["kali_show"] = new CutSceneDo(kali_show.Do); + this.m_CutSceneDoMap["heromvp"] = new CutSceneDo(heromvp.Do); + this.m_CutSceneDoMap["mobaend"] = new CutSceneDo(mobaend.Do); + this.m_SkillDoMap["Monster_broo_black_teleport_backDisappear"] = new SkillDo(Monster_broo_black_teleport_back.Disappear); + this.m_SkillDoMap["Monster_broo_white_boss_teleport_backDisappear"] = new SkillDo(Monster_broo_white_boss_teleport_back.Disappear); + this.m_SkillDoMap["Monster_broo_white_boss_teleport_fowardDisappear"] = new SkillDo(Monster_broo_white_boss_teleport_foward.Disappear); + this.m_SkillDoMap["Monster_broo_white_opposer_teleport_backDisappear"] = new SkillDo(Monster_broo_white_opposer_teleport_back.Disappear); + this.m_SkillDoMap["NPC_Velskud_teleportDisappear"] = new SkillDo(NPC_Velskud_teleport.Disappear); + this.m_SkillDoMap["NPC_Velskud_wing_teleportDisappear"] = new SkillDo(NPC_Velskud_wing_teleport.Disappear); + this.m_SkillDoMap["Player_sorceress_dashDisappear"] = new SkillDo(Player_sorceress_dash.Disappear); + this.m_SkillDoMap["Player_warrior_chargecheckInput"] = new SkillDo(Player_warrior_charge.checkInput); + this.m_SkillDoMap["Player_warrior_dash_startcanfirecharge"] = new SkillDo(Player_warrior_dash_start.canfirecharge); + this.m_SkillDoMap["Player_cleric_attack_chongjizhishouCallBomber"] = new SkillDo(Player_cleric_attack_chongjizhishou.CallBomber); + this.m_SkillDoMap["Player_assassin_attack_chakelahuanying_dashDisappear"] = new SkillDo(Player_assassin_attack_chakelahuanying_dash.Disappear); + this.m_SkillDoMap["Player_academic_buff_fuhuoReviveAlly"] = new SkillDo(Player_academic_buff_fuhuo.ReviveAlly); + this.m_SkillDoMap["Player_kali_attack_reqingsihuoDisappear"] = new SkillDo(Player_kali_attack_reqingsihuo.Disappear); + return true; + } + + public bool ExecuteCutScene(string method, List actors) + { + CutSceneDo cutSceneDo = null; + bool flag = this.m_CutSceneDoMap.TryGetValue(method, out cutSceneDo); + if (flag) + { + bool flag2 = cutSceneDo != null; + if (flag2) + { + return cutSceneDo(actors); + } + } + return false; + } + + public void ExecuteSkill(string method, XSkill skill) + { + SkillDo skillDo = null; + bool flag = this.m_SkillDoMap.TryGetValue(method, out skillDo); + if (flag) + { + bool flag2 = skillDo != null; + if (flag2) + { + skillDo(skill); + } + } + } + + public void GetSkillDo(string method, out SkillDo sd) + { + sd = null; + this.m_SkillDoMap.TryGetValue(method, out sd); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ScriptCode.cs.meta b/Client/Assets/Scripts/XMainClient/ScriptCode.cs.meta new file mode 100644 index 00000000..2ec5ec93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ScriptCode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ccf4bdba0abbe14b9acf0aa298538ae +timeCreated: 1611404234 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SelectNumFrameBehaviour.cs b/Client/Assets/Scripts/XMainClient/SelectNumFrameBehaviour.cs new file mode 100644 index 00000000..6218dfcf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectNumFrameBehaviour.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class SelectNumFrameBehaviour : DlgBehaviourBase + { + public GameObject m_itemGo; + + public IXUISprite m_closespr; + + public IXUIButton m_sureBtn; + + public AuctionNumberOperate m_SinglePriceOperate; + + private void Awake() + { + this.m_itemGo = base.transform.Find("ItemTpl").gameObject; + this.m_closespr = (base.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_sureBtn = (base.transform.Find("SureBtn").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Free"); + this.m_SinglePriceOperate = new AuctionNumberOperate(transform.gameObject, new Vector3(-265f, 72f, 0f)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SelectNumFrameBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/SelectNumFrameBehaviour.cs.meta new file mode 100644 index 00000000..bc1c1f43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectNumFrameBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c04569ef893aed448a3c55efbf16f2c5 +timeCreated: 1611404485 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SelectNumFrameDlg.cs b/Client/Assets/Scripts/XMainClient/SelectNumFrameDlg.cs new file mode 100644 index 00000000..ede2bf6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectNumFrameDlg.cs @@ -0,0 +1,109 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SelectNumFrameDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Auction/AuctionBillFrame2"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XRecycleItemDocument m_doc; + + private ulong m_uid; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XRecycleItemDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closespr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickClosed)); + base.uiBehaviour.m_sureBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSureBtn)); + base.uiBehaviour.m_SinglePriceOperate.RegisterOperateChange(new AuctionNumberOperate.NumberOperateCallBack(this.OnNumOperateChange)); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + public void Show(ulong uid) + { + this.m_uid = uid; + this.SetVisible(true, true); + } + + private void FillContent() + { + int num = 0; + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_uid); + bool flag = itemByUID != null; + if (flag) + { + num = itemByUID.itemCount - this.m_doc.GetSelectUidCount(this.m_uid); + } + XSingleton.singleton.DrawItem(base.uiBehaviour.m_itemGo, itemByUID); + IXUISprite ixuisprite = base.uiBehaviour.m_itemGo.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this.m_uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + base.uiBehaviour.m_SinglePriceOperate.Set(num, 1, num, 1, true, true); + } + + private void OnNumOperateChange() + { + } + + private void OnClickClosed(IXUISprite spr) + { + this.SetVisible(false, true); + } + + private bool OnClickSureBtn(IXUIButton btn) + { + this.SetVisible(false, true); + this.m_doc._ToggleItemSelect(true, this.m_uid, (ulong)((long)base.uiBehaviour.m_SinglePriceOperate.Cur), true); + return true; + } + + private void OnClickTips(IXUISprite spr) + { + bool flag = spr.ID == 0UL; + if (!flag) + { + XItem xitem = XBagDocument.BagDoc.GetBagItemByUID(spr.ID); + bool flag2 = xitem == null; + if (flag2) + { + xitem = XBagDocument.MakeXItem((int)spr.ID, false); + } + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(xitem, spr, false, 0u); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SelectNumFrameDlg.cs.meta b/Client/Assets/Scripts/XMainClient/SelectNumFrameDlg.cs.meta new file mode 100644 index 00000000..3d90075a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectNumFrameDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f098209ef3b3e04f9e556227e38d046 +timeCreated: 1611403400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SelectPlayerFromList.cs b/Client/Assets/Scripts/XMainClient/SelectPlayerFromList.cs new file mode 100644 index 00000000..ab99b18a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectPlayerFromList.cs @@ -0,0 +1,18 @@ +using System; +using System.Xml; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SelectPlayerFromList : AIRunTimeNodeAction + { + public SelectPlayerFromList(XmlElement node) : base(node) + { + } + + public override bool Update(XEntity entity) + { + return XSingleton.singleton.ResetHartedList(entity); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SelectPlayerFromList.cs.meta b/Client/Assets/Scripts/XMainClient/SelectPlayerFromList.cs.meta new file mode 100644 index 00000000..489ff441 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectPlayerFromList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0de1b9cbf5be5a34988418df474092c8 +timeCreated: 1611403198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Selector.cs b/Client/Assets/Scripts/XMainClient/Selector.cs new file mode 100644 index 00000000..71d0c4d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Selector.cs @@ -0,0 +1,139 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class Selector + { + public Transform transform + { + get + { + return this._transfrom; + } + } + + public Transform parent + { + get + { + return this._parent; + } + } + + public uint ID = 0u; + + public string Label = ""; + + public bool Selected = false; + + public List selectors = null; + + public uint SelectorLevel = 0u; + + private Transform _transfrom; + + private Transform _parent; + + private SelectorInvoke _invoke; + + private SelectorBind _bind; + + public void Bind(Transform parent, SelectorBind sBind, SelectorInvoke sInvoke) + { + this._bind = sBind; + this._invoke = sInvoke; + this._parent = parent; + this.BindData(); + } + + public void UnBind() + { + bool flag = this.selectors != null; + if (flag) + { + int i = 0; + int count = this.selectors.Count; + while (i < count) + { + this.selectors[i].UnBind(); + i++; + } + } + this._transfrom = null; + this._parent = null; + this._invoke = null; + this._bind = null; + } + + public void Release() + { + bool flag = this.selectors != null; + if (flag) + { + int i = 0; + int count = this.selectors.Count; + while (i < count) + { + this.selectors[i].UnBind(); + this.selectors[i] = null; + i++; + } + this.selectors.Clear(); + this.selectors = null; + } + SelectorPool.Release(this); + } + + private void BindData() + { + bool flag = this._bind == null || this._parent == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("BindData._bind is Null Or BindData._parent is Null", null, null, null, null, null); + } + else + { + this._transfrom = this._bind(this.SelectorLevel); + IXUILabel ixuilabel = this._transfrom.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = this._transfrom.Find("Selected/Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = this._transfrom.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this.ID; + ixuilabel.SetText(this.Label); + ixuilabel2.SetText(this.Label); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickSelector)); + this._transfrom.parent = this._parent; + this._transfrom.localScale = Vector3.one; + this._transfrom.localPosition = new Vector3(0f, -((float)this._parent.childCount - 0.5f) * (float)ixuisprite.spriteHeight, 0f); + this.BindChildren(); + } + } + + private void BindChildren() + { + bool flag = this.selectors != null && this.selectors.Count > 0; + if (flag) + { + int i = 0; + int count = this.selectors.Count; + while (i < count) + { + this.selectors[i].Bind(this._transfrom, this._bind, this._invoke); + i++; + } + } + } + + private void OnClickSelector(IXUISprite sprite) + { + bool flag = this._invoke != null; + if (flag) + { + this._invoke(this.ID); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Selector.cs.meta b/Client/Assets/Scripts/XMainClient/Selector.cs.meta new file mode 100644 index 00000000..90c2ab87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Selector.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 49b82b6bb97a83e43bafaaf224d62470 +timeCreated: 1611403662 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SelectorBind.cs b/Client/Assets/Scripts/XMainClient/SelectorBind.cs new file mode 100644 index 00000000..cc909728 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectorBind.cs @@ -0,0 +1,7 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + public delegate Transform SelectorBind(uint index); +} diff --git a/Client/Assets/Scripts/XMainClient/SelectorBind.cs.meta b/Client/Assets/Scripts/XMainClient/SelectorBind.cs.meta new file mode 100644 index 00000000..9ffde593 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectorBind.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe921ad445431a94bbeccb5f46eb91d1 +timeCreated: 1611404941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SelectorInvoke.cs b/Client/Assets/Scripts/XMainClient/SelectorInvoke.cs new file mode 100644 index 00000000..3035cf36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectorInvoke.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + public delegate void SelectorInvoke(uint index); +} diff --git a/Client/Assets/Scripts/XMainClient/SelectorInvoke.cs.meta b/Client/Assets/Scripts/XMainClient/SelectorInvoke.cs.meta new file mode 100644 index 00000000..40a046fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectorInvoke.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67aef5615d0d1544b9f0a720df5828c2 +timeCreated: 1611403859 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SelectorPool.cs b/Client/Assets/Scripts/XMainClient/SelectorPool.cs new file mode 100644 index 00000000..d2f80735 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectorPool.cs @@ -0,0 +1,25 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SelectorPool + { + private static ObjectPool selectors = new ObjectPool(new ObjectPool.CreateObj(SelectorPool.Create), null, null); + + public static Selector Create() + { + return new Selector(); + } + + public static Selector Get() + { + return SelectorPool.selectors.Get(); + } + + public static void Release(Selector selector) + { + SelectorPool.selectors.Release(selector); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SelectorPool.cs.meta b/Client/Assets/Scripts/XMainClient/SelectorPool.cs.meta new file mode 100644 index 00000000..3e7d17be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SelectorPool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8056f01e705ffde4ba466d7c7c807fa2 +timeCreated: 1611404033 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SequenceList.cs b/Client/Assets/Scripts/XMainClient/SequenceList.cs new file mode 100644 index 00000000..afe85447 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SequenceList.cs @@ -0,0 +1,174 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + public class SequenceList : ISeqListRef + { + public int Count + { + get + { + return this.m_count; + } + } + + public int Dim + { + get + { + return (int)this.m_dim; + } + } + + public T this[int index, int dim] + { + get + { + return this.buff[index * (int)this.m_dim + dim]; + } + set + { + bool flag = this._CheckAndExpand(index, dim); + if (flag) + { + this.buff[index * (int)this.m_dim + dim] = value; + } + } + } + + public List buff; + + private short m_dim = 2; + + private int m_count = 1; + + public SequenceList() + { + this.buff = new List(); + this.Reset(2, 1); + } + + private bool _CheckAndExpand(int index, int dim) + { + bool flag = dim >= (int)this.m_dim; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = index >= this.m_count; + if (flag2) + { + int i = this.buff.Count; + int num = (int)this.m_dim * (index + 1); + while (i < num) + { + this.buff.Add(default(T)); + i++; + } + this.m_count = index + 1; + } + result = true; + } + return result; + } + + public void CheckOrReset(short dim) + { + bool flag = this.m_dim != dim; + if (flag) + { + this.Reset(dim); + } + } + + public void Reset(short dim) + { + this.m_dim = dim; + this.m_count = 0; + this.buff.Clear(); + } + + public void Reset(short dim, int count) + { + this.m_dim = dim; + this.m_count = count; + this.buff.Clear(); + this.buff.Capacity = (int)this.m_dim * Math.Max(this.m_count, 1); + int i = 0; + int num = this.m_count * (int)this.m_dim; + while (i < num) + { + this.buff.Add(default(T)); + i++; + } + } + + public void Append(params T[] args) + { + int count = this.m_count; + int num = 0; + while (num < args.Length && num < (int)this.m_dim) + { + this[count, num] = args[num]; + num++; + } + } + + public void Append(ISeqListRef other, int dim) + { + bool flag = dim != (int)this.m_dim; + if (flag) + { + XSingleton.singleton.AddErrorLog2("Dim not the same: {0} != {1} ", new object[] + { + this.m_dim, + " != ", + dim + }); + } + else + { + for (int i = 0; i < other.Count; i++) + { + int count = this.m_count; + for (int j = 0; j < dim; j++) + { + this[count, j] = other[i, j]; + } + } + } + } + + public void Get(int index, T[] outData) + { + for (int i = 0; i < (int)this.m_dim; i++) + { + outData[i] = this[index, i]; + } + } + + public void Set(int index, T[] inData) + { + int num = 0; + while (num < (int)this.m_dim && num < inData.Length) + { + this[index, num] = inData[num]; + num++; + } + } + + public void Trim(int newCount) + { + bool flag = this.m_count <= newCount; + if (!flag) + { + this.m_count = newCount; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SequenceList.cs.meta b/Client/Assets/Scripts/XMainClient/SequenceList.cs.meta new file mode 100644 index 00000000..cc7647c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SequenceList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16f8b5adb4da79745bc095475acadf9d +timeCreated: 1611403291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ServerBuffInfo.cs b/Client/Assets/Scripts/XMainClient/ServerBuffInfo.cs new file mode 100644 index 00000000..93af9d5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ServerBuffInfo.cs @@ -0,0 +1,95 @@ +using System; +using KKSG; +using UnityEngine; + +namespace XMainClient +{ + internal class ServerBuffInfo + { + public float leftTime + { + get + { + return this.startLeftTime - (Time.realtimeSinceStartup - this.startTime); + } + set + { + this.startLeftTime = value; + this.startTime = Time.realtimeSinceStartup; + } + } + + public UIBuffInfo UIBuff + { + get + { + return this.m_UIBuffInfo; + } + } + + public uint buffID; + + public uint buffLevel; + + public double HP; + + public double maxHP; + + public ulong mobUID; + + public bool bReduceCD = false; + + public int transformID; + + public uint stackCount = 1u; + + private float startTime; + + private float startLeftTime; + + private UIBuffInfo m_UIBuffInfo = new UIBuffInfo(); + + public bool Set(BuffInfo data) + { + this.buffID = data.BuffID; + this.buffLevel = data.BuffLevel; + this.leftTime = data.LeftTime / 1000f; + bool mobUIDSpecified = data.MobUIDSpecified; + if (mobUIDSpecified) + { + this.mobUID = data.MobUID; + } + bool curHPSpecified = data.CurHPSpecified; + if (curHPSpecified) + { + this.HP = data.CurHP; + } + bool maxHPSpecified = data.MaxHPSpecified; + if (maxHPSpecified) + { + this.maxHP = data.MaxHP; + } + bool stackCountSpecified = data.StackCountSpecified; + if (stackCountSpecified) + { + this.stackCount = data.StackCount; + } + bool bReduceCDSpecified = data.bReduceCDSpecified; + if (bReduceCDSpecified) + { + this.bReduceCD = data.bReduceCD; + } + bool transformIDSpecified = data.TransformIDSpecified; + if (transformIDSpecified) + { + this.transformID = data.TransformID; + } + return this.m_UIBuffInfo.Set(this); + } + + public void UpdateFromRemoveBuff(BuffInfo info) + { + this.transformID = info.TransformID; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ServerBuffInfo.cs.meta b/Client/Assets/Scripts/XMainClient/ServerBuffInfo.cs.meta new file mode 100644 index 00000000..8c7b2396 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ServerBuffInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd91aa14eb4645d408ad98a7a15bc940 +timeCreated: 1611404683 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ServerFlagEnum.cs b/Client/Assets/Scripts/XMainClient/ServerFlagEnum.cs new file mode 100644 index 00000000..4968b88a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ServerFlagEnum.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal enum ServerFlagEnum + { + MAINTAIN, + NEW, + NORMAL, + FULL, + SUGGEST, + DUMMY, + DEBUG, + SMOOTH, + MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/ServerFlagEnum.cs.meta b/Client/Assets/Scripts/XMainClient/ServerFlagEnum.cs.meta new file mode 100644 index 00000000..a3be9f51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ServerFlagEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6709f8140664dd94b9981b1f63da509c +timeCreated: 1611403856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ServerInfo.cs b/Client/Assets/Scripts/XMainClient/ServerInfo.cs new file mode 100644 index 00000000..05c1bec5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ServerInfo.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + public class ServerInfo + { + public int ServerID; + + public string ServerName; + + public string ZoneName; + + public int State; + + public string Ip; + + public uint Port; + + public int StateTxt; + + public uint Level; + } +} diff --git a/Client/Assets/Scripts/XMainClient/ServerInfo.cs.meta b/Client/Assets/Scripts/XMainClient/ServerInfo.cs.meta new file mode 100644 index 00000000..e84bb391 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ServerInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a85f12d8a30cbc40a3e581200e21519 +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ServerStateEnum.cs b/Client/Assets/Scripts/XMainClient/ServerStateEnum.cs new file mode 100644 index 00000000..0ce696a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ServerStateEnum.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum ServerStateEnum + { + TIMEOUT, + EMPTY, + NORMAL, + FULL + } +} diff --git a/Client/Assets/Scripts/XMainClient/ServerStateEnum.cs.meta b/Client/Assets/Scripts/XMainClient/ServerStateEnum.cs.meta new file mode 100644 index 00000000..450e0ade --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ServerStateEnum.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71434163a42a16040baa23c694419afe +timeCreated: 1611403934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SetDestWay.cs b/Client/Assets/Scripts/XMainClient/SetDestWay.cs new file mode 100644 index 00000000..305924e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SetDestWay.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum SetDestWay + { + Target = 1, + BornPos, + NavPos + } +} diff --git a/Client/Assets/Scripts/XMainClient/SetDestWay.cs.meta b/Client/Assets/Scripts/XMainClient/SetDestWay.cs.meta new file mode 100644 index 00000000..b80fa471 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SetDestWay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa0b1af02039651449907cf630e9a0fb +timeCreated: 1611404301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SetEffectInfo.cs b/Client/Assets/Scripts/XMainClient/SetEffectInfo.cs new file mode 100644 index 00000000..b405df76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SetEffectInfo.cs @@ -0,0 +1,41 @@ +using System; + +namespace XMainClient +{ + public class SetEffectInfo + { + public bool body; + + public bool name; + + public bool quake; + + public bool teammate; + + public int music; + + public int musicEffect; + + public bool chat; + + public bool strangerChat; + + public bool friend; + + public bool business; + + public bool gang; + + public bool team; + + public int picture; + + public bool worldSpeechOnOff = true; + + public bool jiaZuSpeechOnOff = true; + + public bool teamSpeechOnOff = true; + + public bool showAllPlayers = false; + } +} diff --git a/Client/Assets/Scripts/XMainClient/SetEffectInfo.cs.meta b/Client/Assets/Scripts/XMainClient/SetEffectInfo.cs.meta new file mode 100644 index 00000000..20adecd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SetEffectInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e9f2747d74050e349bb41f6b51bc31b0 +timeCreated: 1611404758 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs b/Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs new file mode 100644 index 00000000..0c1a6b12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs @@ -0,0 +1,124 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + public class ShadowMapInfo + { + private const int m_shadowMapWidth = 512; + + private const int m_shadowMapHeight = 512; + + public RenderTexture shadowMap = null; + + public const int RChannel = 1; + + public const int GChannel = 2; + + public const int BChannel = 4; + + public const int AChannel = 8; + + public const int EmpytChannel = 0; + + private int m_shadowChannelState = 0; + + private static bool hasShadowMap = false; + + public void CreateShadowMap() + { + this.shadowMap = new RenderTexture(512, 512, 0,(RenderTextureFormat)16, 0); + this.shadowMap.name = "ShadowMap"; + this.shadowMap.autoGenerateMips = false; + this.shadowMap.Create(); + Shader.SetGlobalTexture("_CustomShadowMapTexture", this.shadowMap); + Shader.SetGlobalFloat("shadowScale", XCustomShadow.scale); + ShadowMapInfo.hasShadowMap = true; + ShadowMapInfo.EnableShadow(true); + } + + public void DestroyShadowMap() + { + bool flag = this.shadowMap != null; + if (flag) + { + this.shadowMap.Release(); + this.shadowMap = null; + ShadowMapInfo.hasShadowMap = false; + } + } + + public static void ClearShadowRes() + { + Shader.SetGlobalTexture("_CustomShadowMapTexture", null); + ShadowMapInfo.EnableShadow(false); + } + + public static void EnableShadow(bool enable) + { + bool flag = enable && ShadowMapInfo.hasShadowMap; + if (flag) + { + Shader.EnableKeyword("CUSTOM_SHADOW_ON"); + } + else + { + Shader.DisableKeyword("CUSTOM_SHADOW_ON"); + } + } + + public int AllocChannel() + { + bool flag = (this.m_shadowChannelState & 1) == 0; + int result; + if (flag) + { + this.m_shadowChannelState |= 1; + result = 1; + } + else + { + bool flag2 = (this.m_shadowChannelState & 2) == 0; + if (flag2) + { + this.m_shadowChannelState |= 2; + result = 2; + } + else + { + bool flag3 = (this.m_shadowChannelState & 4) == 0; + if (flag3) + { + this.m_shadowChannelState |= 4; + result = 4; + } + else + { + bool flag4 = (this.m_shadowChannelState & 8) == 0; + if (flag4) + { + this.m_shadowChannelState |= 8; + result = 8; + } + else + { + result = 0; + } + } + } + } + return result; + } + + public void FreeChannel(int channle) + { + this.m_shadowChannelState &= ~channle; + } + + public void Clear() + { + this.m_shadowChannelState = 0; + this.DestroyShadowMap(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs.meta b/Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs.meta new file mode 100644 index 00000000..f624bb33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShadowMapInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b015e1c58a1cac4ab0469b50d153e97 +timeCreated: 1611403685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ShareBgType.cs b/Client/Assets/Scripts/XMainClient/ShareBgType.cs new file mode 100644 index 00000000..34b08235 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShareBgType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum ShareBgType + { + NoneType, + DungeonType, + LuckyPandora, + LuckySpriteType + } +} diff --git a/Client/Assets/Scripts/XMainClient/ShareBgType.cs.meta b/Client/Assets/Scripts/XMainClient/ShareBgType.cs.meta new file mode 100644 index 00000000..6cb61a2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShareBgType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d07d57f38b711342957e66ace97d794 +timeCreated: 1611403694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ShareOpType.cs b/Client/Assets/Scripts/XMainClient/ShareOpType.cs new file mode 100644 index 00000000..7bdb850e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShareOpType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum ShareOpType + { + Share, + Photo + } +} diff --git a/Client/Assets/Scripts/XMainClient/ShareOpType.cs.meta b/Client/Assets/Scripts/XMainClient/ShareOpType.cs.meta new file mode 100644 index 00000000..273ff4b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShareOpType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31fbbe515de33eb4d8f826000a56c89c +timeCreated: 1611403547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ShareTagType.cs b/Client/Assets/Scripts/XMainClient/ShareTagType.cs new file mode 100644 index 00000000..a884d426 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShareTagType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum ShareTagType + { + Invite_Tag, + GiftBag_Tag + } +} diff --git a/Client/Assets/Scripts/XMainClient/ShareTagType.cs.meta b/Client/Assets/Scripts/XMainClient/ShareTagType.cs.meta new file mode 100644 index 00000000..c829280d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShareTagType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9241a029d4b0d514382fc139d334ab03 +timeCreated: 1611404146 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SharedData.cs b/Client/Assets/Scripts/XMainClient/SharedData.cs new file mode 100644 index 00000000..e3560d42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SharedData.cs @@ -0,0 +1,398 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + [Serializable] + internal class SharedData + { + public Dictionary EntityMap + { + get + { + return this._entity_map; + } + } + + public Dictionary TransMap + { + get + { + return this._trans_map; + } + } + + public Dictionary FloatMap + { + get + { + return this._float_map; + } + } + + public Dictionary IntMap + { + get + { + return this._int_map; + } + } + + public Dictionary StringMap + { + get + { + return this._string_map; + } + } + + public Dictionary BoolMap + { + get + { + return this._bool_map; + } + } + + public Dictionary Vector3Map + { + get + { + return this._vector3_map; + } + } + + private Dictionary _entity_map = new Dictionary(); + + private Dictionary _trans_map = new Dictionary(); + + private Dictionary _float_map = new Dictionary(); + + private Dictionary _int_map = new Dictionary(); + + private Dictionary _string_map = new Dictionary(); + + private Dictionary _bool_map = new Dictionary(); + + private Dictionary _vector3_map = new Dictionary(); + + public SharedData() + { + this._entity_map = new Dictionary(); + this._trans_map = new Dictionary(); + this._float_map = new Dictionary(); + this._int_map = new Dictionary(); + this._string_map = new Dictionary(); + this._bool_map = new Dictionary(); + this._vector3_map = new Dictionary(); + } + + public SharedData(SharedData src) + { + this._entity_map = new Dictionary(src._entity_map); + this._trans_map = new Dictionary(src._trans_map); + this._float_map = new Dictionary(src._float_map); + this._int_map = new Dictionary(src._int_map); + this._string_map = new Dictionary(src._string_map); + this._bool_map = new Dictionary(src._bool_map); + this._vector3_map = new Dictionary(src._vector3_map); + } + + public Transform GetTransformByName(string name) + { + Transform transform = null; + bool flag = this._trans_map.TryGetValue(XSingleton.singleton.XHash(name), out transform); + Transform result; + if (flag) + { + result = transform; + } + else + { + result = null; + } + return result; + } + + public void SetTransformByName(string name, Transform para) + { + bool flag = name != ""; + if (flag) + { + this._trans_map[XSingleton.singleton.XHash(name)] = para; + } + } + + public void SetXGameObjectByName(string name, XGameObject xgo) + { + bool flag = name != ""; + if (flag) + { + this._entity_map[XSingleton.singleton.XHash(name)] = xgo; + } + } + + public XGameObject GetXGameObjectByName(string name) + { + XGameObject xgameObject = null; + bool flag = this._entity_map.TryGetValue(XSingleton.singleton.XHash(name), out xgameObject); + XGameObject result; + if (flag) + { + result = xgameObject; + } + else + { + result = null; + } + return result; + } + + public float GetFloatByName(string name, float dvalue = 0f) + { + bool flag = name == ""; + float result; + if (flag) + { + result = dvalue; + } + else + { + float num = 0f; + bool flag2 = this._float_map.TryGetValue(XSingleton.singleton.XHash(name), out num); + if (flag2) + { + result = num; + } + else + { + result = dvalue; + } + } + return result; + } + + public float GetFloatByName(uint hash, float dvalue = 0f) + { + float num = 0f; + bool flag = this._float_map.TryGetValue(hash, out num); + float result; + if (flag) + { + result = num; + } + else + { + result = dvalue; + } + return result; + } + + public void SetFloatByName(string name, float para) + { + bool flag = name != ""; + if (flag) + { + this._float_map[XSingleton.singleton.XHash(name)] = para; + } + } + + public void SetFloatByName(uint hash, float para) + { + this._float_map[hash] = para; + } + + public int GetIntByName(string name, int dvalue = 0) + { + int num = 0; + bool flag = this._int_map.TryGetValue(XSingleton.singleton.XHash(name), out num); + int result; + if (flag) + { + result = num; + } + else + { + result = dvalue; + } + return result; + } + + public int GetIntByName(uint hash, int dvalue = 0) + { + int num = 0; + bool flag = this._int_map.TryGetValue(hash, out num); + int result; + if (flag) + { + result = num; + } + else + { + result = dvalue; + } + return result; + } + + public void SetIntByName(string name, int para) + { + bool flag = name != ""; + if (flag) + { + this._int_map[XSingleton.singleton.XHash(name)] = para; + } + } + + public void SetIntByName(uint hash, int para) + { + this._int_map[hash] = para; + } + + public string GetStringByName(string name, string dvalue = "") + { + string text = ""; + bool flag = this._string_map.TryGetValue(XSingleton.singleton.XHash(name), out text); + string result; + if (flag) + { + result = text; + } + else + { + result = dvalue; + } + return result; + } + + public string GetStringByName(uint hash, string dvalue = "") + { + string text = ""; + bool flag = this._string_map.TryGetValue(hash, out text); + string result; + if (flag) + { + result = text; + } + else + { + result = dvalue; + } + return result; + } + + public void SetStringByName(string name, string para) + { + bool flag = name != ""; + if (flag) + { + this._string_map[XSingleton.singleton.XHash(name)] = para; + } + } + + public void SetStringByName(uint hash, string para) + { + this._string_map[hash] = para; + } + + public bool GetBoolByName(string name, bool dvalue = false) + { + bool flag = false; + bool flag2 = name == ""; + bool result; + if (flag2) + { + result = dvalue; + } + else + { + bool flag3 = this._bool_map.TryGetValue(XSingleton.singleton.XHash(name), out flag); + if (flag3) + { + result = flag; + } + else + { + result = dvalue; + } + } + return result; + } + + public bool GetBoolByName(uint hash, bool dvalue = false) + { + bool flag = false; + bool flag2 = this._bool_map.TryGetValue(hash, out flag); + return flag2 && flag; + } + + public void SetBoolByName(string name, bool para) + { + bool flag = name != ""; + if (flag) + { + this._bool_map[XSingleton.singleton.XHash(name)] = para; + } + } + + public void SetBoolByName(uint hash, bool para) + { + this._bool_map[hash] = para; + } + + public Vector3 GetVector3ByName(string name, Vector3 dvalue) + { + bool flag = string.IsNullOrEmpty(name); + Vector3 result; + if (flag) + { + result = dvalue; + } + else + { + Vector3 zero = Vector3.zero; + bool flag2 = this._vector3_map.TryGetValue(XSingleton.singleton.XHash(name), out zero); + if (flag2) + { + result = zero; + } + else + { + result = Vector3.zero; + } + } + return result; + } + + public Vector3 GetVector3ByName(uint hash) + { + Vector3 zero = Vector3.zero; + bool flag = this._vector3_map.TryGetValue(hash, out zero); + Vector3 result; + if (flag) + { + result = zero; + } + else + { + result = Vector3.zero; + } + return result; + } + + public void SetVector3ByName(string name, Vector3 para) + { + bool flag = name != ""; + if (flag) + { + this._vector3_map[XSingleton.singleton.XHash(name)] = para; + } + } + + public void SetVector3ByName(uint hash, Vector3 para) + { + this._vector3_map[hash] = para; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SharedData.cs.meta b/Client/Assets/Scripts/XMainClient/SharedData.cs.meta new file mode 100644 index 00000000..09987854 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SharedData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94ace39aec221bf46bd8bb2363da8e9e +timeCreated: 1611404155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ShowAttriData.cs b/Client/Assets/Scripts/XMainClient/ShowAttriData.cs new file mode 100644 index 00000000..a6fef367 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShowAttriData.cs @@ -0,0 +1,126 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class ShowAttriData + { + public uint TypeID + { + get + { + return this._typeId; + } + } + + public string NeedLevelStr + { + get + { + return string.Format("[{0}]{1}[-] Lv{2}", XSingleton.singleton.GetItemQualityColorStr((int)this._data.ItemQuality), XSingleton.singleton.ChooseProfString(this._data.ItemName, (uint)this._data.Profession), this._needLevel); + } + } + + public bool IsPercentRange + { + get + { + return XAttributeCommon.IsPercentRange((int)this._nameId); + } + } + + public uint NameId + { + get + { + return this._nameId; + } + } + + public string Name + { + get + { + return XAttributeCommon.GetAttrStr((int)this._nameId); + } + } + + public string NumStr + { + get + { + bool flag = XAttributeCommon.IsPercentRange((int)this._nameId); + string result; + if (flag) + { + result = string.Format((this._num >= 0u) ? "+{0}%" : "{0}%", this._num.ToString("0.#")); + } + else + { + result = string.Format((this._num >= 0u) ? "+{0}" : "{0}", this._num).ToString(); + } + return result; + } + } + + public string SkillDes + { + get + { + return XEmblemDocument.GetEmblemSkillAttrString(this._itemId); + } + } + + private uint _itemId; + + private uint _nameId; + + private uint _num; + + private uint _needLevel; + + private uint _typeId = 1u; + + private ItemList.RowData _data; + + public ShowAttriData(uint itemId, XItemChangeAttr attr) + { + this._itemId = itemId; + this._nameId = attr.AttrID; + this._num = attr.AttrValue; + bool isPercentRange = this.IsPercentRange; + if (isPercentRange) + { + this._typeId = 2u; + } + else + { + this._typeId = 1u; + } + this._data = XBagDocument.GetItemConf((int)itemId); + bool flag = this._data != null; + if (flag) + { + this._needLevel = (uint)this._data.ReqLevel; + } + } + + public ShowAttriData(EmblemBasic.RowData data) + { + this._itemId = data.EmblemID; + this._typeId = 3u; + this._data = XBagDocument.GetItemConf((int)data.EmblemID); + bool flag = this._data != null; + if (flag) + { + this._needLevel = (uint)this._data.ReqLevel; + } + } + + public void Add(uint num) + { + this._num += num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/ShowAttriData.cs.meta b/Client/Assets/Scripts/XMainClient/ShowAttriData.cs.meta new file mode 100644 index 00000000..9ba87625 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShowAttriData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8def46a1a0db6c4b9506a1b66f6d8a6 +timeCreated: 1611404407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/ShowSettingArgs.cs b/Client/Assets/Scripts/XMainClient/ShowSettingArgs.cs new file mode 100644 index 00000000..5d1ca4a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShowSettingArgs.cs @@ -0,0 +1,25 @@ +using System; + +namespace XMainClient +{ + internal class ShowSettingArgs + { + public int position = 0; + + public bool anim = true; + + public bool showsettings = true; + + public bool enablebackclick = true; + + public bool enabledrag = true; + + public bool needforceshow = false; + + public bool forceshow = true; + + public int depth = 0; + + public bool needdepth = false; + } +} diff --git a/Client/Assets/Scripts/XMainClient/ShowSettingArgs.cs.meta b/Client/Assets/Scripts/XMainClient/ShowSettingArgs.cs.meta new file mode 100644 index 00000000..2e087ed7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/ShowSettingArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e71835187abc1a244a389f6c18a247fd +timeCreated: 1611404748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill.meta b/Client/Assets/Scripts/XMainClient/Skill.meta new file mode 100644 index 00000000..35428354 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 11f614e37a5e8cc4bb30bc29d6d2324e +folderAsset: yes +timeCreated: 1611553569 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkill.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkill.cs new file mode 100644 index 00000000..8f60c688 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkill.cs @@ -0,0 +1,1028 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XSkill + { + public virtual int SkillType + { + get + { + return -1; + } + } + + public long Token + { + get + { + return this._token; + } + } + + public bool AnimInit { get; set; } + + public bool DemonstrationMode + { + get + { + return this._demonstration; + } + } + + public float MultipleDirectionFactorByServer + { + get + { + return this._multiple_direction_factor; + } + set + { + this._multiple_direction_factor = value; + } + } + + public Vector3 SkillTowardsTo + { + get + { + return this._skill_forward; + } + set + { + this._skill_forward = value; + } + } + + public XSkillCore Core + { + get + { + return this._core; + } + } + + public virtual XSkillCore MainCore + { + get + { + return this._core; + } + } + + public abstract string AnimClipName { get; } + + public XEntity Firer + { + get + { + return this._firer; + } + } + + public XEntity Target + { + get + { + return this.HasValidTarget() ? this._target : null; + } + } + + public int SlotPos + { + get + { + return this._slot_pos; + } + } + + public bool Casting + { + get + { + return this._casting; + } + } + + public float TimeElapsed + { + get + { + return this._timeElapsed / this._time_scale; + } + } + + public float TimeScale + { + get + { + return 1f / this._time_scale; + } + } + + public static readonly int XJAComboSkillHash = 0; + + public static readonly int XArtsSkillHash = 1; + + public static readonly int XUltraSkillHash = 2; + + public static readonly int XCombinedSkillHash = 3; + + private string _last_anim_token = null; + + private bool _casting = false; + + private bool _execute = false; + + protected float _time_scale = 1f; + + protected float _multiple_direction_factor = 1f; + + protected bool _demonstration = false; + + protected XCameraEx _affect_camera = null; + + protected SmallBuffer _logical_token; + + protected SmallBuffer _present_token; + + protected SkillDo _start_method = null; + + protected SkillDo _update_method = null; + + protected SkillDo _result_method = null; + + protected SkillDo _stop_method = null; + + protected XEntity _target = null; + + protected XEntity _firer = null; + + protected XSkillMgr _skillmgr = null; + + protected long _token = 0L; + + protected int _slot_pos = -1; + + protected float _timeElapsed = 0f; + + protected XSkillCore _core = null; + + protected XSkillData _data = null; + + private Vector3 _skill_forward = Vector3.forward; + + protected XTimerMgr.ElapsedIDEventHandler _TimerCallback = null; + + protected enum ESkillTimerCb + { + EExternalExecute = 1, + ESkillNum + } + + public XSkill() + { + this._TimerCallback = new XTimerMgr.ElapsedIDEventHandler(this.ProcessTimer); + } + + public virtual void Initialize(XEntity firer) + { + this._firer = firer; + this._skillmgr = this._firer.SkillMgr; + this._logical_token.debugName = "XSkill._logical_token"; + this._present_token.debugName = "XSkill._present_token"; + XSingleton.singleton.GetSmallBuffer(ref this._logical_token, 16, 0); + XSingleton.singleton.GetSmallBuffer(ref this._present_token, 16, 0); + } + + public virtual void Uninitialize() + { + this._firer = null; + this._target = null; + this._skillmgr = null; + bool flag = this._logical_token.Count != 0 || this._present_token.Count != 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("skill token not null", null, null, null, null, null); + } + XSingleton.singleton.ReturnSmallBuffer(ref this._logical_token); + XSingleton.singleton.ReturnSmallBuffer(ref this._present_token); + } + + public virtual void TriggerAnim() + { + bool flag = this._firer.Ator != null; + if (flag) + { + string triggerToken = this.Core.TriggerToken; + bool multipleAttackSupported = this.MainCore.Soul.MultipleAttackSupported; + if (multipleAttackSupported) + { + bool flag2 = triggerToken != this._last_anim_token; + if (flag2) + { + this._firer.Ator.SetTrigger(triggerToken); + } + this._firer.Ator.SetFloat("MultipleDirFactor", XSingleton.singleton.SyncMode ? this._multiple_direction_factor : this.MainCore.GetMultipleDirectionFactor()); + this._last_anim_token = triggerToken; + } + else + { + this._firer.Ator.SetTrigger(triggerToken); + this._last_anim_token = null; + } + } + } + + protected virtual bool InnerProcessTimer(object param, int id) + { + bool flag = id == 1; + bool result; + if (flag) + { + this.ExternalExecute(param); + result = true; + } + else + { + result = false; + } + return result; + } + + private void ProcessTimer(object param, int id) + { + this.InnerProcessTimer(param, id); + } + + public void UpdateCollisionLayer(float velocity) + { + this._firer.SetCollisionLayer((this.MainCore.Soul.IgnoreCollision || (!this._firer.IsRole && this._core.Offset > 1.5f && velocity > this._firer.Attributes.RunSpeed)) ? 14 : this._firer.DefaultLayer); + } + + protected void CalcForward() + { + bool flag = !this.MainCore.Soul.MultipleAttackSupported; + if (flag) + { + this._skill_forward = ((this._firer.Rotate == null) ? this._firer.EngineObject.Forward : this._firer.Rotate.GetMeaningfulFaceVector3()); + } + } + + protected abstract void Result(XResultData data); + + protected void OnResult(object o) + { + bool flag = true; + bool flag2 = this._result_method != null; + if (flag2) + { + flag = this._result_method(this); + } + bool flag3 = flag; + if (flag3) + { + bool flag4 = this._firer.Attributes != null; + if (flag4) + { + this._firer.Attributes.CombatAppendTime(); + } + this.Result(o as XResultData); + } + } + + protected void AddedTimerToken(uint token, bool logical) + { + if (logical) + { + this._logical_token.Add(token); + } + else + { + this._present_token.Add(token); + } + } + + protected abstract bool Present(); + + protected virtual void Start() + { + this.Reflection(); + } + + protected virtual bool Launch(XSkillCore core) + { + return true; + } + + protected virtual void Stop(bool cleanUp) + { + } + + protected virtual void KillTimerAll() + { + for (int i = 0; i < this._present_token.Count; i++) + { + uint token = this._present_token[i]; + XSingleton.singleton.KillTimer(token); + } + for (int j = 0; j < this._logical_token.Count; j++) + { + uint token2 = this._logical_token[j]; + XSingleton.singleton.KillTimer(token2); + } + this._present_token.Clear(); + this._logical_token.Clear(); + } + + public virtual uint GetCombinedId() + { + return 0u; + } + + public bool Update(float fDeltaT) + { + bool flag = this._casting; + bool flag2 = this._casting && this._execute; + if (flag2) + { + bool flag3 = !XSingleton.singleton.SyncMode; + if (flag3) + { + this.CalcForward(); + } + this._timeElapsed += fDeltaT; + flag = this.Present(); + bool flag4 = flag; + if (flag4) + { + bool flag5 = this._update_method != null; + if (flag5) + { + this._update_method(this); + } + } + } + bool animInit = this.AnimInit; + if (animInit) + { + this.Execute(); + } + this.AnimInit = false; + return flag; + } + + public void Execute() + { + bool flag = this._casting && !this._execute; + if (flag) + { + bool flag2 = this._core.ID == this._skillmgr.GetAppearIdentity(); + if (flag2) + { + XSingleton.singleton.Puppets(this._firer, false, false); + bool flag3 = this._firer.Ator != null; + if (flag3) + { + this._firer.Ator.cullingMode = 0; + } + } + this._execute = true; + this.CalcForward(); + this._core.Execute(this); + bool flag4 = this._firer.Ator != null; + if (flag4) + { + this._firer.Ator.speed = this.TimeScale; + } + this.Start(); + bool flag5 = this._start_method != null; + if (flag5) + { + this._start_method(this); + } + } + } + + public bool Fire(XEntity target, XSkillCore core, XAttackEventArgs args) + { + bool flag = !this._casting || !this._execute; + bool result; + if (flag) + { + this._demonstration = args.Demonstration; + bool flag2 = core == null || !core.Fire(this); + if (flag2) + { + result = false; + } + else + { + this._affect_camera = args.AffectCamera; + this._time_scale = 1f / args.TimeScale; + this._target = target; + this._token = ((args.SyncSequence == 0u) ? XSingleton.singleton.UniqueToken : ((long)((ulong)args.SyncSequence))); + bool flag3 = core.Soul.TypeToken == 3; + if (flag3) + { + bool flag4 = !this.Launch(core); + if (flag4) + { + return false; + } + } + else + { + this._core = core; + this._data = this._core.Soul; + } + bool flag5 = this._firer.Attributes != null; + if (flag5) + { + this._firer.Attributes.CombatMarkTimeBaseLine(); + } + this._timeElapsed = 0f; + this._slot_pos = args.Slot; + bool flag6 = !this.MainCore.Soul.Logical.Association || !this.MainCore.Soul.Logical.MoveType; + if (flag6) + { + this._firer.Machine.ForceToDefaultState(false); + } + this._casting = true; + this._execute = false; + this.AnimInit = false; + this._last_anim_token = null; + this._multiple_direction_factor = 1f; + this.FocusTarget(this.Target); + bool isPlayer = this._firer.IsPlayer; + if (isPlayer) + { + this.Manual(); + } + bool flag7 = !this._demonstration; + if (flag7) + { + XSkill.ProcessStart(this._token, this.MainCore.ID, this._firer, this.Target, new SkillExternalCallback(this.ExternalCallback)); + bool flag8 = this.Casting && (this._firer.IsPlayer || this._firer.IsEnemy); + if (flag8) + { + XSecuritySkillInfo xsecuritySkillInfo = XSecuritySkillInfo.TryGetStatistics(this._firer); + bool flag9 = xsecuritySkillInfo != null; + if (flag9) + { + xsecuritySkillInfo.OnCast(this.MainCore.ID); + } + } + } + else + { + XSkill.ProcessDemonstrationStart(this._token, this.MainCore.ID, this._firer, this.Casting ? this.Target : null, new SkillExternalCallback(this.ExternalCallback)); + } + result = this.Casting; + } + } + else + { + result = false; + } + return result; + } + + public void Puppetize(bool cleanUp = false) + { + bool flag = this._core != null; + if (flag) + { + bool flag2 = this._core.ID == this._skillmgr.GetAppearIdentity(); + if (flag2) + { + this._firer.Present.OnReadyFight(null); + bool flag3 = this._firer.Ator != null; + if (flag3) + { + this._firer.Ator.cullingMode =(AnimatorCullingMode) 1; + } + } + } + bool execute = this._execute; + if (execute) + { + this._execute = false; + this.KillTimerAll(); + this.Stop(cleanUp); + bool flag4 = this._firer.Ator != null; + if (flag4) + { + this._firer.Ator.speed = 1f; + } + bool flag5 = this._update_method != null; + if (flag5) + { + this._update_method(this); + } + bool flag6 = this._stop_method != null && this.MainCore.Soul.TypeToken != 3; + if (flag6) + { + this._stop_method(this); + } + this._core.Halt(); + bool flag7 = this._target != null; + if (flag7) + { + this._target = null; + } + } + } + + public void Cease(bool cleanUp = false) + { + bool casting = this._casting; + if (casting) + { + this._casting = false; + this.Puppetize(cleanUp); + XCombinedSkill xcombinedSkill = this as XCombinedSkill; + bool flag = xcombinedSkill != null; + if (flag) + { + xcombinedSkill.CombinedKillTimerAll(); + xcombinedSkill.CombinedStop(cleanUp); + } + bool flag2 = this._firer.Attributes != null && this.MainCore.Soul.Result.Count > 0; + if (flag2) + { + this._firer.Attributes.CombatMarkTimEndLine(); + } + this.MainCore.Halt(); + bool flag3 = this._firer.Machine.ActionToken == this._token; + if (flag3) + { + bool flag4 = !this.MainCore.Soul.Logical.Association || !this.MainCore.Soul.Logical.MoveType; + if (flag4) + { + this._firer.Machine.ForceToDefaultState(false); + } + } + this._timeElapsed = 0f; + this._time_scale = 1f; + this._affect_camera = null; + bool flag5 = !this._demonstration; + if (flag5) + { + XSkill.ProcessEnd(this._token, this.MainCore.ID, this._firer, this.Target); + } + } + bool flag6 = this._target != null; + if (flag6) + { + this._target = null; + } + this._core = null; + this._start_method = null; + this._update_method = null; + this._result_method = null; + this._stop_method = null; + } + + public virtual bool CanPerformAction(XStateDefine state, long token) + { + bool flag = !this._casting; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = token > 0L && this._token == token; + if (flag2) + { + result = true; + } + else + { + bool flag3 = XStateDefine.XState_Death == state; + if (flag3) + { + this.Cease(false); + result = true; + } + else + { + result = (this.MainCore == null || this.MainCore.CanAct(state)); + } + } + } + return result; + } + + public void FocusTarget(XEntity target) + { + bool flag = !XEntity.ValideEntity(target) || XSingleton.singleton.SyncMode; + if (!flag) + { + this._firer.Net.ReportRotateAction(XSingleton.singleton.Horizontal(target.RadiusCenter - this._firer.EngineObject.Position), this._firer.Attributes.AutoRotateSpeed, this._token); + } + } + + public bool HasValidTarget() + { + return this.MainCore != null && this.MainCore.Soul.NeedTarget && XEntity.ValideEntity(this._target); + } + + public bool ExternalCallback(XSkillExternalArgs args) + { + bool flag = this is XCombinedSkill; + if (flag) + { + (this as XCombinedSkill).AddedCombinedTimerToken(XSingleton.singleton.SetTimer(args.delay, this._TimerCallback, args, XSkill.ESkillTimerCb.EExternalExecute)); + } + else + { + this.AddedTimerToken(XSingleton.singleton.SetTimer(args.delay, this._TimerCallback, args, XSkill.ESkillTimerCb.EExternalExecute), true); + } + return true; + } + + protected void Manual() + { + bool flag = XSingleton.singleton.SyncMode || this.MainCore.Soul.MultipleAttackSupported; + if (!flag) + { + bool feeding = XSingleton.singleton.Feeding; + if (feeding) + { + this._firer.Net.ReportRotateAction(XSingleton.singleton.Direction, this._firer.Attributes.AutoRotateSpeed, 0L); + } + else + { + bool flag2 = this.MainCore.ID == this._skillmgr.GetDashIdentity(); + if (flag2) + { + this._firer.Net.ReportRotateAction(-this._firer.Rotate.GetMeaningfulFaceVector3(), this._firer.Attributes.AutoRotateSpeed, 0L); + } + } + } + } + + private void Reflection() + { + this._start_method = null; + this._update_method = null; + this._result_method = null; + this._stop_method = null; + bool flag = this._data != null && this._data.Script != null; + if (flag) + { + bool flag2 = !string.IsNullOrEmpty(this._data.Script.Start_Name); + if (flag2) + { + XSingleton.singleton.GetSkillDo(this._data.Name + this._data.Script.Start_Name, out this._start_method); + } + bool flag3 = !string.IsNullOrEmpty(this._data.Script.Update_Name); + if (flag3) + { + XSingleton.singleton.GetSkillDo(this._data.Name + this._data.Script.Update_Name, out this._update_method); + } + bool flag4 = !string.IsNullOrEmpty(this._data.Script.Result_Name); + if (flag4) + { + XSingleton.singleton.GetSkillDo(this._data.Name + this._data.Script.Result_Name, out this._result_method); + } + bool flag5 = !string.IsNullOrEmpty(this._data.Script.Stop_Name); + if (flag5) + { + XSingleton.singleton.GetSkillDo(this._data.Name + this._data.Script.Stop_Name, out this._stop_method); + } + } + } + + private void ExternalExecute(object o) + { + XSkillExternalArgs xskillExternalArgs = o as XSkillExternalArgs; + xskillExternalArgs.callback(xskillExternalArgs); + } + + public static void SkillResult(long token, XEntity firer, XSkillCore core, XBullet bullet, int triggerTime, uint resultID, int resultTime, Vector3 hitdir, XEntity target) + { + bool flag = (bullet == null) ? core.IsHurtEntity(target.ID, triggerTime) : bullet.IsHurtEntity(target.ID); + if (!flag) + { + bool isShowUp = target.Present.IsShowUp; + if (!isShowUp) + { + XStrickenResponse xstrickenResponse = target.Skill.IsCasting() ? target.Skill.CurrentSkill.MainCore.Soul.Logical.StrickenMask : XStrickenResponse.Cease; + bool flag2 = xstrickenResponse == XStrickenResponse.Cease || core.CarrierID == XSkill.XUltraSkillHash || (xstrickenResponse == XStrickenResponse.Half_Endure && target.Skill.IsOverResults()); + if (flag2) + { + xstrickenResponse = XStrickenResponse.Cease; + } + bool flag3 = xstrickenResponse == XStrickenResponse.Invincible; + if (!flag3) + { + bool flag4 = !core.Soul.Logical.AttackOnHitDown && target.Machine.Current == XStateDefine.XState_BeHit && target.BeHit.LaidOnGround(); + if (!flag4) + { + ProjectDamageResult dResult = XSkill.ProcessHurt(token, resultID, firer, target, resultTime); + bool flag5 = triggerTime >= core.Soul.Hit.Count; + if (flag5) + { + XSingleton.singleton.AddErrorLog("skill ", core.Soul.Name, "'s hit point is not matched with results.", null, null, null); + } + else + { + XSkill.SkillResult_TakeEffect(firer, target, dResult, core.Soul.Hit[triggerTime], hitdir, xstrickenResponse, target.StandOn, (float)(1.0 + (firer.Attributes.ParalyzeAttribute - target.Attributes.ParalyzeDefenseAttribute)), Vector3.zero); + bool flag6 = bullet == null; + if (flag6) + { + core.AddHurtTarget(target.ID, triggerTime); + } + else + { + bullet.OnResult(target); + } + } + } + } + } + } + } + + public static void SkillResult(XBullet bullet, Vector3 forward, Vector3 position, bool bulletcycle) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + XBulletCore bulletCore = bullet.BulletCore; + List opponent = XSingleton.singleton.GetOpponent(bulletCore.Firer); + for (int i = 0; i < opponent.Count; i++) + { + XEntity xentity = opponent[i]; + bool flag = !XEntity.ValideEntity(xentity) || (bulletCore.SkillCore.Soul.Result[bulletCore.Sequnce].Attack_Only_Target && xentity != bulletCore.Target); + if (!flag) + { + bool flag2 = bulletCore.SkillCore.IsInAttckField(bulletCore.Sequnce, position, forward, xentity); + if (flag2) + { + Vector3 hitdir = (bulletCore.SkillCore.Soul.Result[bulletCore.Sequnce].Affect_Direction == XResultAffectDirection.AttackDir) ? (xentity.EngineObject.Position - position) : bulletCore.Firer.Rotate.GetMeaningfulFaceVector3(); + hitdir.y = 0f; + hitdir.Normalize(); + bool syncMode2 = XSingleton.singleton.SyncMode; + if (!syncMode2) + { + XSkill.SkillResult(bulletCore.Token, bulletCore.Firer, bulletCore.SkillCore, bulletcycle ? bullet : null, bulletCore.Sequnce, bulletCore.ResultID, bulletCore.ResultTime, hitdir, xentity); + } + } + } + } + } + } + + public static void SkillResult(long token, XEntity firer, XSkillCore core, int triggerTime, uint resultID, int resultTime, Vector3 forward, Vector3 position) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + List opponent = XSingleton.singleton.GetOpponent(firer); + for (int i = 0; i < opponent.Count; i++) + { + XEntity xentity = opponent[i]; + bool flag = !XEntity.ValideEntity(xentity) || (core.Soul.Result[triggerTime].Attack_Only_Target && xentity != core.Carrier.Target); + if (!flag) + { + bool flag2 = core.IsInAttckField(triggerTime, position, forward, xentity); + if (flag2) + { + Vector3 hitdir = (core.Soul.Result[triggerTime].Affect_Direction == XResultAffectDirection.AttackDir) ? (xentity.EngineObject.Position - position) : firer.Rotate.GetMeaningfulFaceVector3(); + hitdir.y = 0f; + hitdir.Normalize(); + bool syncMode2 = XSingleton.singleton.SyncMode; + if (!syncMode2) + { + XSkill.SkillResult(token, firer, core, null, triggerTime, resultID, resultTime, hitdir, xentity); + } + } + } + } + } + } + + public static void SkillResult_TakeEffect(XEntity firer, XEntity target, ProjectDamageResult dResult, XHitData data, Vector3 hurtDiretion, XStrickenResponse rps, bool standOn, float paralyzeFactor, Vector3 error) + { + bool accept = dResult.Accept; + if (accept) + { + bool flag = firer != null; + if (flag) + { + bool isPlayer = firer.IsPlayer; + if (isPlayer) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + XSingleton.singleton.OnHitEnemy(dResult.ComboCount); + } + else + { + XSingleton.singleton.OnHitEnemy(-1); + } + } + else + { + XSingleton.singleton.OnEnemyHitEnemy(firer); + } + } + bool isPlayer2 = target.IsPlayer; + if (isPlayer2) + { + XSingleton.singleton.OnPlayerBeHit(); + } + bool flag2 = rps == XStrickenResponse.Half_Endure || rps == XStrickenResponse.Full_Endure; + if (flag2) + { + XEndureEventArgs @event = XEventPool.GetEvent(); + @event.Firer = target; + @event.Fx = ((data.State == XBeHitState.Hit_Freezed) ? null : data.Fx); + @event.Dir = hurtDiretion; + @event.HitFrom = firer; + XSingleton.singleton.FireEvent(@event); + XHitEventArgs event2 = XEventPool.GetEvent(); + event2.Firer = target; + XSingleton.singleton.FireEvent(event2); + } + else + { + bool flag3 = !dResult.IsTargetDead; + if (flag3) + { + switch (dResult.Result) + { + case ProjectResultType.PJRES_BATI: + { + XEndureEventArgs event3 = XEventPool.GetEvent(); + event3.Firer = target; + event3.Fx = ((data.State == XBeHitState.Hit_Freezed) ? null : data.Fx); + event3.Dir = hurtDiretion; + event3.HitFrom = firer; + XSingleton.singleton.FireEvent(event3); + XRenderComponent.OnHit(target); + break; + } + case ProjectResultType.PJRES_STUN: + { + bool flag4 = !XSingleton.singleton.SyncMode; + if (flag4) + { + XFreezeEventArgs event4 = XEventPool.GetEvent(); + event4.HitData = null; + event4.Dir = hurtDiretion; + event4.Duration = XSingleton.singleton.StunTime; + event4.Firer = target; + XSingleton.singleton.FireEvent(event4); + } + break; + } + case ProjectResultType.PJRES_BEHIT: + { + bool flag5 = !XSingleton.singleton.SyncMode; + if (flag5) + { + bool flag6 = rps == XStrickenResponse.Cease; + if (flag6) + { + target.Skill.EndSkill(true, false); + } + bool flag7 = data.State != XBeHitState.Hit_Free; + if (flag7) + { + bool flag8 = data.State == XBeHitState.Hit_Freezed; + if (flag8) + { + XFreezeEventArgs event5 = XEventPool.GetEvent(); + event5.HitData = data; + event5.Dir = hurtDiretion; + event5.Firer = target; + XSingleton.singleton.FireEvent(event5); + } + else + { + bool flag9 = target.CurState == XStateDefine.XState_Freeze; + if (flag9) + { + XEndureEventArgs event6 = XEventPool.GetEvent(); + event6.Firer = target; + event6.Fx = data.Fx; + event6.Dir = hurtDiretion; + event6.HitFrom = firer; + XSingleton.singleton.FireEvent(event6); + } + else + { + XBeHitEventArgs event7 = XEventPool.GetEvent(); + event7.DepracatedPass = true; + event7.HitDirection = hurtDiretion; + event7.HitData = data; + event7.Firer = target; + event7.HitFrom = firer; + event7.Paralyze = paralyzeFactor; + event7.ForceToFlyHit = ((data.State == XBeHitState.Hit_Back || data.State == XBeHitState.Hit_Roll) && !standOn); + XSingleton.singleton.FireEvent(event7); + } + } + } + } + break; + } + } + } + } + bool flag10 = dResult.Value != 0.0 || dResult.Result == ProjectResultType.PJRES_IMMORTAL || dResult.Result == ProjectResultType.PJRES_MISS || dResult.AbsorbDamage != 0.0; + if (flag10) + { + XHUDAddEventArgs event8 = XEventPool.GetEvent(); + event8.DepracatedPass = true; + event8.damageResult = dResult; + event8.caster = firer; + event8.Firer = target; + XSingleton.singleton.FireEvent(event8); + } + XProjectDamageEventArgs event9 = XEventPool.GetEvent(); + event9.Damage = dResult; + event9.Receiver = target; + event9.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event9); + } + dResult.Recycle(); + } + + public static void ProcessDemonstrationStart(long token, uint skillId, XEntity firer, XEntity target, SkillExternalCallback callback) + { + HurtInfo data = XDataPool.GetData(); + data.Caster = firer; + data.Target = target; + data.SkillID = skillId; + data.SkillToken = token; + data.Callback = callback; + XSingleton.singleton.ProjectDemonstrationStart(data); + data.Recycle(); + } + + public static void ProcessStart(long token, uint skillId, XEntity firer, XEntity target, SkillExternalCallback callback) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + HurtInfo data = XDataPool.GetData(); + data.Caster = firer; + data.Target = target; + data.SkillID = skillId; + data.SkillToken = token; + data.Callback = callback; + XSingleton.singleton.ProjectStart(data); + data.Recycle(); + } + } + + public static ProjectDamageResult ProcessHurt(long token, uint skillId, XEntity firer, XEntity target, int hitCount) + { + bool syncMode = XSingleton.singleton.SyncMode; + ProjectDamageResult result; + if (syncMode) + { + result = null; + } + else + { + HurtInfo data = XDataPool.GetData(); + data.Caster = firer; + data.Target = target; + data.HitPoint = hitCount; + data.SkillID = skillId; + data.SkillToken = token; + ProjectDamageResult projectDamageResult = XSingleton.singleton.ProjectDamage(data); + data.Recycle(); + result = projectDamageResult; + } + return result; + } + + public static void ProcessEnd(long token, uint skillId, XEntity firer, XEntity target) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + HurtInfo data = XDataPool.GetData(); + data.Caster = firer; + data.Target = target; + data.SkillID = skillId; + data.SkillToken = token; + XSingleton.singleton.ProjectEnd(data); + data.Recycle(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkill.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkill.cs.meta new file mode 100644 index 00000000..1467e576 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cda8976665b7a0948932946452f44c44 +timeCreated: 1611404556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillComponent.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillComponent.cs new file mode 100644 index 00000000..8553d0d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillComponent.cs @@ -0,0 +1,1070 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkillComponent : XComponent + { + public override uint ID + { + get + { + return XSkillComponent.uuID; + } + } + + public bool IsSkillReplaced + { + get + { + return this._skill_replaced_by_typeid > 0u; + } + } + + public uint ReplacedByTypeID + { + get + { + return this._skill_replaced_by_typeid; + } + } + + public XSkillMgr SkillMgr + { + get + { + return this._skill_mgr; + } + } + + public uint[] ReplacedSlot + { + get + { + return this._replaced_skill_slot; + } + } + + public List SkillMobs + { + get + { + return this._skill_mobs; + } + } + + public bool HasSkillReplaced + { + get + { + return this._skills_replace_dic != null && this._skills_replace_dic.Count != 0; + } + } + + public XSkill CurrentSkill + { + get + { + return this._skill; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Skill"); + + public static readonly string TriggerTag = ""; + + private XSkill _skill = null; + + private XSkillMgr _skill_mgr = null; + + private uint _timer_token = 0u; + + private uint _skill_replaced_by_typeid = 0u; + + private XLocateTargetComponent _locate = null; + + private XQuickTimeEventComponent _qte = null; + + private string _trigger = null; + + private uint[] _replaced_skill_slot = null; + + private List _skill_mobs = null; + + private Dictionary _skills_replace_dic = null; + + public XSkillCore TryGetSkillReplace(uint skillID, XSkillCore soul) + { + bool flag = this._skills_replace_dic == null; + XSkillCore result; + if (flag) + { + result = soul; + } + else + { + uint id; + bool flag2 = this._skills_replace_dic.TryGetValue(skillID, out id); + if (flag2) + { + XSkillCore skill = this._entity.SkillMgr.GetSkill(id); + bool flag3 = skill != null; + if (flag3) + { + return skill; + } + } + result = soul; + } + return result; + } + + public void SetSkillReplace(uint from, uint to) + { + bool flag = to == 0u; + if (flag) + { + bool flag2 = this._skills_replace_dic != null; + if (flag2) + { + this._skills_replace_dic.Remove(from); + } + } + else + { + bool flag3 = this._skills_replace_dic == null; + if (flag3) + { + this._skills_replace_dic = DictionaryPool.Get(); + } + this._skills_replace_dic[from] = to; + } + } + + public bool AddSkillMob(XEntity e) + { + bool result = false; + bool flag = this._skill_mobs == null; + if (flag) + { + this._skill_mobs = ListPool.Get(); + } + bool flag2 = e != null && !this._skill_mobs.Contains(e); + if (flag2) + { + this._skill_mobs.Add(e); + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + result = true; + } + else + { + XOthersAttributes xothersAttributes = e.Attributes as XOthersAttributes; + bool flag3 = xothersAttributes != null && xothersAttributes.SummonGroup > 0 && xothersAttributes.SummonGroup < XSingleton.singleton.EntitySummonGroupLimit.Length; + if (flag3) + { + int num = XSingleton.singleton.EntitySummonGroupLimit[xothersAttributes.SummonGroup]; + int num2 = 0; + XEntity xentity = null; + for (int i = 0; i < this._skill_mobs.Count; i++) + { + bool flag4 = !XEntity.ValideEntity(this._skill_mobs[i]); + if (!flag4) + { + XOthersAttributes xothersAttributes2 = this._skill_mobs[i].Attributes as XOthersAttributes; + bool flag5 = xothersAttributes2 != null && xothersAttributes2.SummonGroup == xothersAttributes.SummonGroup; + if (flag5) + { + bool flag6 = num2 == 0; + if (flag6) + { + xentity = this._skill_mobs[i]; + } + num2++; + } + } + } + bool flag7 = num2 > num; + if (flag7) + { + result = (e != xentity); + XSingleton.singleton.DestroyEntity(xentity); + } + else + { + result = true; + } + } + else + { + result = true; + } + } + } + return result; + } + + public void RemoveSkillMob(XEntity e) + { + bool flag = this._skill_mobs != null; + if (flag) + { + this._skill_mobs.Remove(e); + } + } + + public override void Update(float fDeltaT) + { + bool flag = this._skill == null; + if (!flag) + { + bool flag2 = !this._skill.Update(fDeltaT); + if (flag2) + { + this.EndSkill(false, false); + } + } + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this._trigger != null; + if (flag) + { + bool flag2 = this._trigger != "EndSkill"; + if (flag2) + { + bool flag3 = this.IsCasting(); + if (flag3) + { + this._skill.AnimInit = true; + bool flag4 = this._entity.Ator != null; + if (flag4) + { + this._entity.Ator.speed = 1f; + } + this._skill.TriggerAnim(); + } + } + else + { + bool flag5 = this._entity.Ator != null; + if (flag5) + { + this._entity.Ator.SetTrigger(this._trigger); + } + } + this._trigger = null; + } + } + + public void TagTrigger() + { + this._trigger = XSkillComponent.TriggerTag; + } + + public bool CanPerformAction(XStateDefine state, XActionArgs e) + { + bool flag = this.CurrentSkill == null; + return flag || this.CurrentSkill.CanPerformAction(state, e.Token); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Attack, new XComponent.XEventHandler(this.OnAttack)); + base.RegisterEvent(XEventDefine.XEvent_StrengthPresevedOff, new XComponent.XEventHandler(this.OnPresevedStrengthStop)); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnRealDead)); + base.RegisterEvent(XEventDefine.XEvent_Move_Mob, new XComponent.XEventHandler(this.OnMoveMob)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._skill_mgr = XSingleton.singleton.CreateSkillMgr(this._entity); + } + + public override void Attached() + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag) + { + this._qte = (this._entity.GetXComponent(XQuickTimeEventComponent.uuID) as XQuickTimeEventComponent); + bool flag2 = !XSingleton.singleton.IsMustTransform || (this._entity.IsEnemy && this._entity.Transformee == null); + if (flag2) + { + this._locate = (this._entity.IsPlayer ? (this._entity.GetXComponent(XLocateTargetComponent.uuID) as XLocateTargetComponent) : null); + bool flag3 = XEntity.ValideEntity(this._entity.MobbedBy) && this._entity.Attributes.SkillLevelInfo != null; + if (flag3) + { + this._entity.Attributes.SkillLevelInfo.RefreshMobLinkedLevels(this._entity, this._entity.MobbedBy); + } + this.AttachSkill(); + } + } + } + + public override void OnDetachFromHost() + { + this.EndSkill(true, true); + bool flag = this._skill_mgr != null; + if (flag) + { + XSingleton.singleton.ReturnSkillMgr(this._skill_mgr); + this._skill_mgr = null; + } + this._skill = null; + XSingleton.singleton.KillTimer(this._timer_token); + this._timer_token = 0u; + this._locate = null; + this._qte = null; + this._trigger = null; + bool flag2 = this._skill_mobs != null; + if (flag2) + { + ListPool.Release(this._skill_mobs); + this._skill_mobs = null; + } + bool flag3 = this._skills_replace_dic != null; + if (flag3) + { + DictionaryPool.Release(this._skills_replace_dic); + this._skills_replace_dic = null; + } + base.OnDetachFromHost(); + } + + public bool IsCasting() + { + return this._skill != null && this._skill.Casting; + } + + public bool IsOverResults() + { + bool flag = this.IsCasting(); + bool result2; + if (flag) + { + List result = this._skill.Core.Soul.Result; + result2 = (result != null && result.Count > 0 && result[result.Count - 1].At < this.CurrentSkill.TimeElapsed); + } + else + { + result2 = true; + } + return result2; + } + + protected bool OnPresevedStrengthStop(XEventArgs e) + { + bool flag = this.IsCasting() && this.CurrentSkill.MainCore.PreservedStrength > 0 && this.CurrentSkill.TimeElapsed < this.CurrentSkill.MainCore.Soul.Logical.PreservedEndAt; + if (flag) + { + this.EndSkill(true, false); + XStrengthPresevationOffArgs @event = XEventPool.GetEvent(); + @event.Host = this._entity; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + return true; + } + + protected virtual bool OnAttack(XEventArgs e) + { + XAttackEventArgs xattackEventArgs = e as XAttackEventArgs; + uint identify = xattackEventArgs.Identify; + XSkillCore xskillCore = this._entity.SkillMgr.GetSkill(identify); + bool flag = xskillCore == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !XSingleton.singleton.SyncMode; + if (flag2) + { + xskillCore = this.PhysicalAttackAdaptor(xskillCore); + } + bool flag3 = xskillCore == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Skill ", identify.ToString(), " Physical-Adapter error.", null, null, null); + result = false; + } + else + { + bool flag4 = !XSingleton.singleton.SyncMode; + if (flag4) + { + xskillCore = this.TryGetSkillReplace(xskillCore.ID, xskillCore); + } + XEntity target = this.SelectedTarget(xattackEventArgs, xskillCore); + bool flag5 = this._entity.QTE != null && this._entity.QTE.QTEList.Contains(xskillCore.ID); + bool flag6 = false; + bool flag7 = xskillCore != null && (xattackEventArgs.Demonstration || XSingleton.singleton.SyncMode || (xskillCore.CooledDown && (flag5 || (xskillCore.CanCast(e.Token) && (this._skill == null || !this._skill.Casting || this._skill.MainCore.CanReplacedBy(xskillCore)))))); + if (flag7) + { + XSkill carrier = this._entity.SkillMgr.GetCarrier(xskillCore.CarrierID); + bool flag8 = this.FireSkill(carrier, target, xskillCore, xattackEventArgs); + if (flag8) + { + flag6 = true; + } + } + bool flag9 = flag5 || xskillCore.Soul.TypeToken == 0; + if (flag9) + { + bool flag10 = this._qte != null; + if (flag10) + { + this._qte.OnSkillCasted(xskillCore.ID, xattackEventArgs.Slot, flag6); + } + } + result = flag6; + } + } + return result; + } + + protected virtual bool OnRealDead(XEventArgs e) + { + this.EndSkill(false, true); + return true; + } + + protected virtual bool FireSkill(XSkill newOne, XEntity target, XSkillCore core, XAttackEventArgs args) + { + bool flag = this._skill != null; + if (flag) + { + this.EndSkill(false, false); + } + this._skill = newOne; + bool flag2 = this._skill != null && this._skill.Fire(target, core, args); + bool result; + if (flag2) + { + this.TagTrigger(); + bool multipleAttackSupported = this._skill.MainCore.Soul.MultipleAttackSupported; + if (multipleAttackSupported) + { + this._entity.OverrideAnimClip(XSkillData.MultipleAttackOverrideMap[0], this._skill.MainCore.Soul.ClipName, false, false); + this._entity.OverrideAnimClip(XSkillData.MultipleAttackOverrideMap[1], this._skill.MainCore.Soul.ClipName + "_right_forward", false, false); + this._entity.OverrideAnimClip(XSkillData.MultipleAttackOverrideMap[2], this._skill.MainCore.Soul.ClipName + "_right", false, false); + this._entity.OverrideAnimClip(XSkillData.MultipleAttackOverrideMap[3], this._skill.MainCore.Soul.ClipName + "_right_back", false, false); + this._entity.OverrideAnimClip(XSkillData.MultipleAttackOverrideMap[4], this._skill.MainCore.Soul.ClipName + "_left_forward", false, false); + this._entity.OverrideAnimClip(XSkillData.MultipleAttackOverrideMap[5], this._skill.MainCore.Soul.ClipName + "_left", false, false); + this._entity.OverrideAnimClip(XSkillData.MultipleAttackOverrideMap[6], this._skill.MainCore.Soul.ClipName + "_left_back", false, false); + this._entity.OverrideAnimClip(XSkillData.MultipleAttackOverrideMap[7], this._skill.MainCore.Soul.ClipName + "_back", false, false); + } + else + { + switch (this._skill.MainCore.Soul.TypeToken) + { + case 0: + this._entity.OverrideAnimClip(XSkillData.JaOverrideMap[core.Soul.SkillPosition], this._skill.MainCore.Soul.ClipName, false, false); + break; + case 1: + this._entity.OverrideAnimClip("Art", this._skill.AnimClipName, false, false); + break; + case 3: + for (int i = 0; i < this._skill.MainCore.Soul.Combined.Count; i++) + { + XSkillCore skill = this._entity.SkillMgr.GetSkill(XSingleton.singleton.XHash(this._skill.MainCore.Soul.Combined[i].Name)); + this._entity.OverrideAnimClip(XSkillData.CombinedOverrideMap[i], skill.Soul.ClipName, false, false); + } + break; + } + } + result = true; + } + else + { + bool flag3 = this._skill != null && this._skill.Casting; + if (!flag3) + { + this._skill = null; + } + result = false; + } + return result; + } + + private bool OnMoveMob(XEventArgs e) + { + bool flag = this._skill_mobs != null && this._host.EngineObject != null; + if (flag) + { + for (int i = 0; i < this._skill_mobs.Count; i++) + { + bool flag2 = this._skill_mobs[i].Skill != null; + if (flag2) + { + this._skill_mobs[i].Skill.EndSkill(false, false); + } + Vector3 vector = this._host.EngineObject.Rotation * ((XSingleton.singleton.MobMovePos.Length > i) ? XSingleton.singleton.MobMovePos[i] : Vector3.zero); + bool flag3 = this._skill_mobs[i].Net != null && this._skill_mobs[i].Machine != null && this._skill_mobs[i].Machine.Current == XStateDefine.XState_Move; + if (flag3) + { + this._skill_mobs[i].Net.ReportMoveAction(Vector3.zero, 0.0); + } + this._skill_mobs[i].CorrectMe(this._host.EngineObject.Position + vector, this._host.EngineObject.Forward, false, false); + } + } + return true; + } + + public void ReAttachSkill(XEntityPresentation.RowData template, uint typeid) + { + XSingleton.singleton.ClearBullets(this._entity.ID); + bool flag = this._skill_mgr != null; + if (flag) + { + this._skill_mgr.Uninitialize(); + } + this._skill_mgr.Initialize(this._entity); + bool flag2 = template == null; + if (flag2) + { + bool isSkillReplaced = this.IsSkillReplaced; + if (isSkillReplaced) + { + bool flag3 = !XSingleton.singleton.IsMustTransform; + if (flag3) + { + this.AttachSkill(); + } + } + } + else + { + this._skill_replaced_by_typeid = typeid; + string skillprefix = "SkillPackage/" + template.SkillLocation; + bool flag4 = !string.IsNullOrEmpty(template.A); + if (flag4) + { + this._entity.SkillMgr.AttachPhysicalSkill(XSingleton.singleton.Build(skillprefix, template.A, this._entity)); + } + bool flag5 = !string.IsNullOrEmpty(template.AA); + if (flag5) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(skillprefix, template.AA, this._entity), false); + } + bool flag6 = !string.IsNullOrEmpty(template.AAA); + if (flag6) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(skillprefix, template.AAA, this._entity), false); + } + bool flag7 = !string.IsNullOrEmpty(template.AAAA); + if (flag7) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(skillprefix, template.AAAA, this._entity), false); + } + bool flag8 = !string.IsNullOrEmpty(template.AAAAA); + if (flag8) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(skillprefix, template.AAAAA, this._entity), false); + } + bool flag9 = !string.IsNullOrEmpty(template.Ultra); + if (flag9) + { + this._entity.SkillMgr.AttachUltraSkill(XSingleton.singleton.Build(skillprefix, template.Ultra, this._entity)); + } + bool flag10 = !string.IsNullOrEmpty(template.Appear); + if (flag10) + { + this._entity.SkillMgr.AttachAppearSkill(XSingleton.singleton.Build(skillprefix, template.Appear, this._entity)); + } + bool flag11 = !string.IsNullOrEmpty(template.Disappear); + if (flag11) + { + this._entity.SkillMgr.AttachDisappearSkill(XSingleton.singleton.Build(skillprefix, template.Disappear, this._entity)); + } + bool flag12 = !string.IsNullOrEmpty(template.Dash); + if (flag12) + { + this._entity.SkillMgr.AttachDashSkill(XSingleton.singleton.Build(skillprefix, template.Dash, this._entity)); + } + bool flag13 = !string.IsNullOrEmpty(template.SuperArmorRecoverySkill); + if (flag13) + { + this._entity.SkillMgr.AttachRecoverySkill(XSingleton.singleton.Build(skillprefix, template.SuperArmorRecoverySkill, this._entity)); + } + bool flag14 = !string.IsNullOrEmpty(template.ArmorBroken); + if (flag14) + { + this._entity.SkillMgr.AttachBrokenSkill(XSingleton.singleton.Build(skillprefix, template.ArmorBroken, this._entity)); + } + bool flag15 = template.OtherSkills != null && template.OtherSkills.Length != 0; + if (flag15) + { + int i = 0; + int num = template.OtherSkills.Length; + while (i < num) + { + bool flag16 = !string.IsNullOrEmpty(template.OtherSkills[i]) && template.OtherSkills[i] != "E"; + if (flag16) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(skillprefix, template.OtherSkills[i], this._entity), true); + } + i++; + } + } + else + { + bool isRole = this._entity.IsRole; + if (isRole) + { + for (int j = 0; j < this._entity.Attributes.skillSlot.Length; j++) + { + bool flag17 = this._entity.Attributes.skillSlot[j] == 0u; + if (!flag17) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this._entity.Attributes.skillSlot[j], 0u); + bool flag18 = skillConfig == null; + if (flag18) + { + XSingleton.singleton.AddErrorLog("Skill: ", this._entity.Attributes.skillSlot[j].ToString(), " is not found in SkillList", null, null, null); + } + else + { + this.OtherAttachFilter(skillConfig, this._entity.Attributes.skillSlot[j]); + } + } + } + Dictionary.Enumerator enumerator = this._entity.Attributes.SkillLevelInfo.LearnedSkills.GetEnumerator(); + while (enumerator.MoveNext()) + { + XSkillEffectMgr singleton = XSingleton.singleton; + KeyValuePair keyValuePair = enumerator.Current; + SkillList.RowData skillConfig2 = singleton.GetSkillConfig(keyValuePair.Key, 0u); + bool flag19 = skillConfig2 == null; + if (flag19) + { + XDebug singleton2 = XSingleton.singleton; + string log = "Skill: "; + keyValuePair = enumerator.Current; + singleton2.AddErrorLog(log, keyValuePair.Key.ToString(), " is not found in SkillList", null, null, null); + } + else + { + bool flag20 = (int)skillConfig2.SkillType == XFastEnumIntEqualityComparer.ToInt(SkillTypeEnum.Skill_Help) || skillConfig2.IsBasicSkill > 0; + if (flag20) + { + SkillList.RowData data = skillConfig2; + keyValuePair = enumerator.Current; + this.OtherAttachFilter(data, keyValuePair.Key); + } + } + } + } + } + this._entity.SkillMgr.StatisticsPhysicalSkill(); + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + List list = ListPool.Get(); + list.Add(this._entity.SkillMgr.GetPhysicalIdentity()); + list.Add(this._entity.SkillMgr.GetDashIdentity()); + bool flag21 = template.OtherSkills != null && template.OtherSkills.Length != 0; + if (flag21) + { + int num2 = template.OtherSkills.Length; + int num3 = 2; + while ((long)num3 < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + bool flag22 = num3 - 2 < num2 && !string.IsNullOrEmpty(template.OtherSkills[num3 - 2]) && template.OtherSkills[num3 - 2] != "E"; + if (flag22) + { + list.Add(XSingleton.singleton.XHash(template.OtherSkills[num3 - 2])); + } + else + { + list.Add(0u); + } + num3++; + } + } + else + { + int num4 = 2; + while ((long)num4 < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + list.Add(this._entity.Attributes.skillSlot[num4]); + num4++; + } + } + this._replaced_skill_slot = list.ToArray(); + ListPool.Release(list); + bool flag23 = DlgBase.singleton.SkillHandler != null; + if (flag23) + { + DlgBase.singleton.SkillHandler.SetButtonNum((int)template.SkillNum); + } + } + } + } + + public void AttachSkill() + { + this._skill_replaced_by_typeid = 0u; + this._replaced_skill_slot = null; + bool isRole = this._entity.IsRole; + if (isRole) + { + for (int i = 0; i < this._entity.Attributes.skillSlot.Length; i++) + { + bool flag = this._entity.Attributes.skillSlot[i] == 0u; + if (!flag) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this._entity.Attributes.skillSlot[i], 0u); + bool flag2 = skillConfig == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Skill: ", this._entity.Attributes.skillSlot[i].ToString(), " is not found in SkillList", null, null, null); + } + else + { + this.AttachFilter(skillConfig, this._entity.Attributes.skillSlot[i]); + } + } + } + Dictionary.Enumerator enumerator = this._entity.Attributes.SkillLevelInfo.LearnedSkills.GetEnumerator(); + while (enumerator.MoveNext()) + { + XSkillEffectMgr singleton = XSingleton.singleton; + KeyValuePair keyValuePair = enumerator.Current; + SkillList.RowData skillConfig2 = singleton.GetSkillConfig(keyValuePair.Key, 0u); + bool flag3 = skillConfig2 == null; + if (flag3) + { + XDebug singleton2 = XSingleton.singleton; + string log = "Skill: "; + keyValuePair = enumerator.Current; + singleton2.AddErrorLog(log, keyValuePair.Key.ToString(), " is not found in SkillList", null, null, null); + } + else + { + bool flag4 = (int)skillConfig2.SkillType == XFastEnumIntEqualityComparer.ToInt(SkillTypeEnum.Skill_Help) || skillConfig2.IsBasicSkill > 0; + if (flag4) + { + SkillList.RowData data = skillConfig2; + keyValuePair = enumerator.Current; + this.AttachFilter(data, keyValuePair.Key); + } + } + } + } + else + { + bool flag5 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.A); + if (flag5) + { + this._entity.SkillMgr.AttachPhysicalSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.A, this._entity)); + } + bool flag6 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.AA); + if (flag6) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.AA, this._entity), false); + } + bool flag7 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.AAA); + if (flag7) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.AAA, this._entity), false); + } + bool flag8 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.AAAA); + if (flag8) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.AAAA, this._entity), false); + } + bool flag9 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.AAAAA); + if (flag9) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.AAAAA, this._entity), false); + } + bool flag10 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.Ultra); + if (flag10) + { + this._entity.SkillMgr.AttachUltraSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.Ultra, this._entity)); + } + bool flag11 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.Appear); + if (flag11) + { + this._entity.SkillMgr.AttachAppearSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.Appear, this._entity)); + } + bool flag12 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.Disappear); + if (flag12) + { + this._entity.SkillMgr.AttachDisappearSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.Disappear, this._entity)); + } + bool flag13 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.Dash); + if (flag13) + { + this._entity.SkillMgr.AttachDashSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.Dash, this._entity)); + } + bool flag14 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.SuperArmorRecoverySkill); + if (flag14) + { + this._entity.SkillMgr.AttachRecoverySkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.SuperArmorRecoverySkill, this._entity)); + } + bool flag15 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.ArmorBroken); + if (flag15) + { + this._entity.SkillMgr.AttachBrokenSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.ArmorBroken, this._entity)); + } + bool flag16 = this._entity.Present.PresentLib.OtherSkills != null; + if (flag16) + { + int j = 0; + int num = this._entity.Present.PresentLib.OtherSkills.Length; + while (j < num) + { + bool flag17 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.OtherSkills[j]) && this._entity.Present.PresentLib.OtherSkills[j] != "E"; + if (flag17) + { + this._entity.SkillMgr.AttachSkill(XSingleton.singleton.Build(this._entity.Present.SkillPrefix, this._entity.Present.PresentLib.OtherSkills[j], this._entity), true); + } + j++; + } + } + } + this._entity.SkillMgr.StatisticsPhysicalSkill(); + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + } + } + + public void EndSkill(bool cleanUp = false, bool force = false) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + this._entity.Net.LastReqSkill = 0u; + } + bool flag = !force && this._skill != null && !this._skill.DemonstrationMode; + if (flag) + { + return; + } + } + this.InnerEnd(cleanUp); + } + + private void InnerEnd(bool cleanUp) + { + bool flag = this._skill != null; + if (flag) + { + this._skill.Cease(cleanUp); + this._skill = null; + this._trigger = "EndSkill"; + } + } + + private XEntity SelectedTarget(XAttackEventArgs args, XSkillCore soul) + { + bool syncMode = XSingleton.singleton.SyncMode; + XEntity result; + if (syncMode) + { + result = args.Target; + } + else + { + bool flag = args.Target == null; + if (flag) + { + result = ((this._locate == null) ? null : this._locate.Locate(this._entity.EngineObject.Forward, this._entity.EngineObject.Position, false)); + } + else + { + result = args.Target; + } + } + return result; + } + + private XSkillCore PhysicalAttackAdaptor(XSkillCore soul) + { + bool flag = this._entity.IsPlayer && soul.Soul.Logical.Association; + if (flag) + { + bool feeding = XSingleton.singleton.Feeding; + if (feeding) + { + bool flag2 = !soul.Soul.Logical.MoveType; + if (flag2) + { + soul = this._entity.SkillMgr.GetSkill(XSingleton.singleton.XHash(soul.Soul.Logical.Association_Skill)); + } + } + else + { + bool moveType = soul.Soul.Logical.MoveType; + if (moveType) + { + soul = this._entity.SkillMgr.GetSkill(XSingleton.singleton.XHash(soul.Soul.Logical.Association_Skill)); + } + } + } + return soul; + } + + private void AttachFilter(SkillList.RowData data, uint id) + { + XSkillCore core = XSingleton.singleton.Build(this._entity.Present.SkillPrefix, data.SkillScript, this._entity); + XSkillData.PreLoad = (this._entity.IsPlayer && !XSingleton.singleton.IsMustTransform); + bool flag = this._entity.SkillMgr.GetPhysicalIdentity() == 0u && XSingleton.singleton.XHash(this._entity.Present.PresentLib.A) == id; + if (flag) + { + this._entity.SkillMgr.AttachPhysicalSkill(core); + } + else + { + bool flag2 = this._entity.SkillMgr.GetUltraIdentity() == 0u && XSingleton.singleton.XHash(this._entity.Present.PresentLib.Ultra) == id; + if (flag2) + { + this._entity.SkillMgr.AttachUltraSkill(core); + } + else + { + bool flag3 = this._entity.SkillMgr.GetAppearIdentity() == 0u && XSingleton.singleton.XHash(this._entity.Present.PresentLib.Appear) == id; + if (flag3) + { + this._entity.SkillMgr.AttachAppearSkill(core); + } + else + { + bool flag4 = this._entity.SkillMgr.GetDisappearIdentity() == 0u && XSingleton.singleton.XHash(this._entity.Present.PresentLib.Disappear) == id; + if (flag4) + { + this._entity.SkillMgr.AttachDisappearSkill(core); + } + else + { + bool flag5 = this._entity.SkillMgr.GetDashIdentity() == 0u && XSingleton.singleton.XHash(this._entity.Present.PresentLib.Dash) == id; + if (flag5) + { + this._entity.SkillMgr.AttachDashSkill(core); + } + else + { + bool flag6 = this._entity.SkillMgr.GetRecoveryIdentity() == 0u && XSingleton.singleton.XHash(this._entity.Present.PresentLib.SuperArmorRecoverySkill) == id; + if (flag6) + { + this._entity.SkillMgr.AttachRecoverySkill(core); + } + else + { + bool flag7 = this._entity.SkillMgr.GetBrokenIdentity() == 0u && XSingleton.singleton.XHash(this._entity.Present.PresentLib.ArmorBroken) == id; + if (flag7) + { + this._entity.SkillMgr.AttachRecoverySkill(core); + } + else + { + bool flag8 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.AA) == id; + if (flag8) + { + this._entity.SkillMgr.AttachSkill(core, false); + } + else + { + bool flag9 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.AAA) == id; + if (flag9) + { + this._entity.SkillMgr.AttachSkill(core, false); + } + else + { + bool flag10 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.AAAA) == id; + if (flag10) + { + this._entity.SkillMgr.AttachSkill(core, false); + } + else + { + bool flag11 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.AAAAA) == id; + if (flag11) + { + this._entity.SkillMgr.AttachSkill(core, false); + } + else + { + this._entity.SkillMgr.AttachSkill(core, true); + } + } + } + } + } + } + } + } + } + } + } + XSkillData.PreLoad = false; + } + + private void OtherAttachFilter(SkillList.RowData data, uint id) + { + bool flag = XSingleton.singleton.XHash(this._entity.Present.PresentLib.A) == id; + if (!flag) + { + bool flag2 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.Ultra) == id; + if (!flag2) + { + bool flag3 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.Appear) == id; + if (!flag3) + { + bool flag4 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.Disappear) == id; + if (!flag4) + { + bool flag5 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.Dash) == id; + if (!flag5) + { + bool flag6 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.SuperArmorRecoverySkill) == id; + if (!flag6) + { + bool flag7 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.ArmorBroken) == id; + if (!flag7) + { + bool flag8 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.AA) == id; + if (!flag8) + { + bool flag9 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.AAA) == id; + if (!flag9) + { + bool flag10 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.AAAA) == id; + if (!flag10) + { + bool flag11 = XSingleton.singleton.XHash(this._entity.Present.PresentLib.AAAAA) == id; + if (!flag11) + { + XSkillCore core = XSingleton.singleton.Build(this._entity.Present.SkillPrefix, data.SkillScript, this._entity); + this._entity.SkillMgr.AttachSkill(core, true); + } + } + } + } + } + } + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillComponent.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillComponent.cs.meta new file mode 100644 index 00000000..4b31a55c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0bce6fc3050c86a418204a6a1d27f002 +timeCreated: 1611403170 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillCore.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillCore.cs new file mode 100644 index 00000000..8afcc57f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillCore.cs @@ -0,0 +1,1161 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XSkillCore + { + public bool IsPvPVersion + { + get + { + return this._is_pvp_version; + } + } + + public string TriggerToken + { + get + { + return this._trigger_token_string; + } + set + { + this._trigger_token_string = value; + } + } + + public uint ID + { + get + { + return this._id; + } + } + + public uint LongID + { + get + { + return this._long_id; + } + } + + public uint Level + { + get + { + return this._skill_level; + } + } + + public int CarrierID + { + get + { + return this._carrier_id; + } + } + + public XSkill Carrier + { + get + { + return this._carrier; + } + } + + public XEntity Firer + { + get + { + return this._firer; + } + } + + public XSkillData Soul + { + get + { + return this._soul; + } + } + + public bool EverFired + { + get + { + return this._ever_fired; + } + } + + public bool HasInitCD + { + get + { + return this._init_cd > 0f; + } + } + + public bool CooledDown + { + get + { + return !this._is_init_cooling && this._current_running_time > 0; + } + } + + public bool Reloading + { + get + { + return this._is_init_cooling || this._current_running_time < this._totally_running_time; + } + } + + public bool ShowRunningTime + { + get + { + return this._totally_running_time > 1; + } + } + + public bool IsOnSyntonic + { + get + { + return this._is_on_syntonic; + } + } + + public int LeftRunningTime + { + get + { + return this._current_running_time; + } + } + + public float Offset + { + get + { + return this._offset; + } + } + + public int PreservedStrength + { + get + { + return (int)((double)(this._preserved_strength * ((this._soul.Logical == null) ? 0 : this._soul.Logical.PreservedStrength)) * XSingleton.singleton.GetXULIPower(this._firer)); + } + } + + public float CastRangeUpper + { + get + { + return this._soul.Cast_Range_Upper; + } + } + + public float CastRangeLower + { + get + { + return this._soul.Cast_Range_Rect ? 0f : this._soul.Cast_Range_Lower; + } + } + + public float CastScope + { + get + { + return this._soul.Cast_Range_Rect ? this._soul.Cast_Scope : (this._soul.Cast_Scope * 0.5f); + } + } + + private XSkillData _soul = null; + + private XSkill _carrier = null; + + private XEntity _firer = null; + + private bool _is_pvp_version = false; + + private bool _is_init_cooling = false; + + private bool _is_on_syntonic = false; + + private float _static_cd = 1f; + + private float _init_cd = 1f; + + private uint _skill_level = 0u; + + private uint _id = 0u; + + private uint _long_id = 0u; + + private int _carrier_id = 0; + + private int _totally_running_time = 1; + + private int _current_running_time = 1; + + private uint _cd_token = 0u; + + private uint _timer_token_skill_notify = 0u; + + private bool _ever_fired = false; + + private float _last_lock_and_load_time = 0f; + + private float _offset = 0f; + + private float _notify_at = 0f; + + private float _semi_dynamic_cd_ratio = 0f; + + private float _last_dynamic_cd = 0f; + + private float _dynamic_cd_delta = 0f; + + private float _dynamic_cd_ratio = 1f; + + private int _preserved_strength = 0; + + private string _trigger_token_string = null; + + private List _hurt_target; + + private Rect _rect; + + private static Rect s_rect; + + private Vector3 _vOffset = Vector3.zero; + + private XTimerMgr.ElapsedEventHandler _OnReloaded = null; + + public List[] WarningPosAt = null; + + public List[] WarningRandomAt = null; + + public static int maxHurtCount = 0; + + public struct XSkillWarningPackage + { + public Vector3 WarningAt; + + public ulong WarningTo; + } + + public struct XWarningRandomPackage + { + public ulong ID; + + public List Pos; + } + + public XSkillCore(XEntity firer, XSkillData data, uint longid) + { + this._firer = firer; + this._long_id = longid; + this._id = XSingleton.singleton.XHash(data.Name); + this._carrier_id = XSingleton.singleton.GetTypeHash(data.TypeToken); + this._hurt_target = ListPool.Get(); + this.SoulRefine(data, false); + } + + public void SoulRefine(XSkillData newsoul, bool ispvp = false) + { + this._notify_at = 0f; + this._soul = newsoul; + this._is_pvp_version = ispvp; + bool flag = this._soul.Warning != null && this._soul.Warning.Count > 0; + if (flag) + { + bool flag2 = this.WarningPosAt == null || this.WarningPosAt.Length != this._soul.Warning.Count; + if (flag2) + { + this.WarningPosAt = new List[this._soul.Warning.Count]; + for (int i = 0; i < this._soul.Warning.Count; i++) + { + this.WarningPosAt[i] = new List(); + } + } + } + this._offset = 0f; + bool flag3 = !XSingleton.singleton.SyncMode && this._soul.Charge.Count > 0; + if (flag3) + { + bool using_Curve = this._soul.Charge[0].Using_Curve; + if (using_Curve) + { + IXCurve curve = XSingleton.singleton.GetCurve(this._soul.Charge[0].Curve_Forward); + this._offset = Mathf.Abs(curve.GetValue(curve.length - 1) - curve.GetValue(0)); + } + else + { + this._offset = Mathf.Abs(this._soul.Charge[0].Offset); + } + } + bool flag4 = this._OnReloaded == null; + if (flag4) + { + this._OnReloaded = new XTimerMgr.ElapsedEventHandler(this.OnReloaded); + } + this.InitCoreData(true); + } + + public void Clear() + { + this._soul = null; + } + + public void Uninit() + { + bool flag = this._hurt_target != null; + if (flag) + { + ListPool.Release(this._hurt_target); + this._hurt_target = null; + } + this.ClearWarningPos(); + } + + public void Recycle(XEntity firer) + { + this._firer = firer; + this._last_lock_and_load_time = 0f; + this._dynamic_cd_ratio = 1f; + this._dynamic_cd_delta = 0f; + this.InitCoreData(true); + this._current_running_time = this._totally_running_time; + this._hurt_target = ListPool.Get(); + this.ClearWarningPos(); + } + + public bool ExternalCanCast() + { + bool flag = this._soul.Script != null && !string.IsNullOrEmpty(this._soul.Script.Start_Name); + bool result; + if (flag) + { + Type type = Type.GetType("XMainClient." + this._soul.Name); + MethodInfo method = type.GetMethod("ExternalCanCast"); + result = (method == null || (bool)method.Invoke(null, null)); + } + else + { + result = true; + } + return result; + } + + public void StartCameraPostEffect() + { + XSingleton.singleton.MakeEffectEnable(XPostEffect.RadialBlur, true); + } + + public void EndCameraPostEffect() + { + XSingleton.singleton.MakeEffectEnable(XPostEffect.RadialBlur, false); + } + + public void AddHurtTarget(ulong id, int triggerTime) + { + bool flag = !this.Soul.Result[triggerTime].Loop && !this.Soul.Result[triggerTime].LongAttackEffect; + if (flag) + { + bool flag2 = !this.IsHurtEntity(id, triggerTime); + if (flag2) + { + this._hurt_target.Add((ulong)((long)triggerTime)); + this._hurt_target.Add(id); + } + } + bool flag3 = this._hurt_target.Count > XSkillCore.maxHurtCount; + if (flag3) + { + XSkillCore.maxHurtCount = this._hurt_target.Count; + } + } + + public bool IsHurtEntity(ulong id, int triggerTime) + { + int i = 0; + int count = this._hurt_target.Count; + while (i < count) + { + ulong num = this._hurt_target[i]; + ulong num2 = this._hurt_target[i + 1]; + bool flag = (int)num == triggerTime && id == num2; + if (flag) + { + return true; + } + i += 2; + } + return false; + } + + public bool Fire(XSkill carrier) + { + bool demonstrationMode = carrier.DemonstrationMode; + bool result; + if (demonstrationMode) + { + result = true; + } + else + { + bool flag = this._soul.OnceOnly && this._ever_fired; + if (flag) + { + result = false; + } + else + { + bool cooledDown = this.CooledDown; + if (cooledDown) + { + this._carrier = carrier; + this.OnCdCall(this._current_running_time - 1, false); + result = true; + } + else + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + this._carrier = carrier; + this._ever_fired = true; + result = true; + } + else + { + result = false; + } + } + } + } + return result; + } + + public void OnCdCall(int left_running_time, bool syntonic = false) + { + this._ever_fired = true; + bool flag = !this.Reloading; + this._current_running_time = left_running_time; + this.CheckRunningTime(); + bool flag2 = flag || syntonic; + if (flag2) + { + this._last_lock_and_load_time = Time.time; + float coolDown = this.GetCoolDown(); + XSingleton.singleton.KillTimer(this._cd_token); + this._cd_token = XSingleton.singleton.SetTimer(coolDown, this._OnReloaded, null); + bool flag3 = this._notify_at > 0f && this._notify_at < coolDown; + if (flag3) + { + XSingleton.singleton.KillTimer(this._timer_token_skill_notify); + this._timer_token_skill_notify = XSingleton.singleton.SetTimer(coolDown - this._notify_at, new XTimerMgr.ElapsedEventHandler(this.OnCastNotify), null); + } + bool flag4 = !XSingleton.singleton.SyncMode && !string.IsNullOrEmpty(this.Soul.Logical.Syntonic_CoolDown_Skill); + if (flag4) + { + this._is_on_syntonic = true; + XSkillCore skill = this._firer.SkillMgr.GetSkill(XSingleton.singleton.XHash(this.Soul.Logical.Syntonic_CoolDown_Skill)); + bool flag5 = skill != null && skill != this && !skill.IsOnSyntonic; + if (flag5) + { + skill.OnCdCall(0, true); + } + this._is_on_syntonic = false; + } + } + } + + public void Execute(XSkill carrier) + { + this._carrier = carrier; + this.ClearHurtTarget(); + this.ClearWarningPos(); + } + + public void BuildRandomWarningPos(List set) + { + bool flag = this._soul.Warning != null && this._soul.Warning.Count > 0 && this._soul.Warning.Count == set.Count; + if (flag) + { + bool flag2 = this.WarningRandomAt == null || this.WarningRandomAt.Length != this._soul.Warning.Count; + if (flag2) + { + this.WarningRandomAt = new List[this._soul.Warning.Count]; + for (int i = 0; i < this._soul.Warning.Count; i++) + { + this.WarningRandomAt[i] = new List(); + } + } + for (int j = 0; j < set.Count; j++) + { + this.WarningRandomAt[j].Clear(); + for (int k = 0; k < set[j].WarningItem.Count; k++) + { + XSkillCore.XWarningRandomPackage xwarningRandomPackage = default(XSkillCore.XWarningRandomPackage); + xwarningRandomPackage.ID = set[j].WarningItem[k].ID; + xwarningRandomPackage.Pos = new List(); + for (int l = 0; l < set[j].WarningItem[k].WarningPos.Count; l++) + { + xwarningRandomPackage.Pos.Add(set[j].WarningItem[k].WarningPos[l]); + } + this.WarningRandomAt[j].Add(xwarningRandomPackage); + } + } + } + } + + public void ClearHurtTarget() + { + this._hurt_target.Clear(); + } + + public void ClearWarningPos() + { + bool flag = this.WarningPosAt == null; + if (!flag) + { + for (int i = 0; i < this._soul.Warning.Count; i++) + { + this.WarningPosAt[i].Clear(); + } + } + } + + public void Halt() + { + this._carrier = null; + } + + public float GetElapsedCD() + { + return this.Reloading ? (Time.time - this._last_lock_and_load_time) : this.GetCoolDown(); + } + + public float GetCoolDown() + { + return this.CheckDynamicCD(this.CheckStaticCD()); + } + + public void AccelerateCD(float delta, bool ratio) + { + bool reloading = this.Reloading; + if (reloading) + { + if (ratio) + { + this._dynamic_cd_delta += (this.GetCoolDown() - this.GetElapsedCD()) * delta; + } + else + { + this._dynamic_cd_delta += delta; + } + this.GetCoolDown(); + } + else + { + this._dynamic_cd_delta = 0f; + } + } + + public void ResetStaticCD() + { + this._static_cd = XSingleton.singleton.GetSkillCDStaticRatio(this.ID, this._skill_level, this._firer.SkillCasterTypeID, XSingleton.singleton.IsPVPScene) * this._soul.CoolDown; + bool reloading = this.Reloading; + if (reloading) + { + this.GetCoolDown(); + } + } + + public void AccelerateStaticCD(float delta) + { + bool flag = delta < 0f || delta > 1f; + if (!flag) + { + this._static_cd = (1f - delta) * this._static_cd; + bool reloading = this.Reloading; + if (reloading) + { + this.GetCoolDown(); + } + } + } + + private float CheckStaticCD() + { + return this._is_init_cooling ? this._init_cd : this._static_cd; + } + + private float CheckDynamicCD(float static_cd) + { + float num = static_cd * XSingleton.singleton.CalcDynamicRatio(1f, this._semi_dynamic_cd_ratio); + bool reloading = this.Reloading; + if (reloading) + { + float num2 = XSingleton.singleton.CalcDynamicRatio(XSingleton.singleton.CanChangeCD(this.ID, this._skill_level, this._firer.SkillCasterTypeID) ? XSingleton.singleton.GetSkillCDDynamicRatio(this._firer.Attributes) : 1f, this._semi_dynamic_cd_ratio); + float time = Time.time; + bool flag = this._dynamic_cd_ratio != num2; + if (flag) + { + float num3 = num2 / this._dynamic_cd_ratio; + this._last_lock_and_load_time = time - (time - this._last_lock_and_load_time) * num3; + this._dynamic_cd_ratio = num2; + } + num = static_cd * this._dynamic_cd_ratio - this._dynamic_cd_delta; + bool flag2 = this._last_dynamic_cd != num; + if (flag2) + { + float num4 = num - (time - this._last_lock_and_load_time); + XSingleton.singleton.KillTimer(this._cd_token); + bool flag3 = num4 > 0f; + if (flag3) + { + this._cd_token = XSingleton.singleton.SetTimer(num4, this._OnReloaded, null); + } + else + { + this.CoolDown(); + } + } + } + this._last_dynamic_cd = num; + return num; + } + + public float GetTimeScale() + { + return (float)XSingleton.singleton.GetAttackSpeedRatio(this._firer.Attributes); + } + + public float GetRange(int id) + { + return this._soul.Result[id].Range; + } + + public float GetRangeLow(int id) + { + return this._soul.Result[id].Low_Range; + } + + public float GetScope(int id) + { + return this._soul.Result[id].Sector_Type ? (this._soul.Result[id].Scope * 0.5f) : this._soul.Result[id].Scope; + } + + public void CoolDown() + { + XSingleton.singleton.KillTimer(this._cd_token); + this._current_running_time = this._totally_running_time; + this.OnReloaded(null); + } + + private void OnReloaded(object o) + { + bool is_init_cooling = this._is_init_cooling; + if (is_init_cooling) + { + this._current_running_time = this._totally_running_time; + } + this._is_init_cooling = false; + this._current_running_time++; + this.CheckRunningTime(); + bool reloading = this.Reloading; + if (reloading) + { + this._last_lock_and_load_time = Time.time; + float coolDown = this.GetCoolDown(); + XSingleton.singleton.KillTimer(this._cd_token); + bool flag = coolDown > 0f; + if (flag) + { + this._cd_token = XSingleton.singleton.SetTimer(coolDown, this._OnReloaded, null); + } + } + else + { + XSingleton.singleton.KillTimer(this._timer_token_skill_notify); + this._dynamic_cd_delta = 0f; + this._dynamic_cd_ratio = 1f; + } + } + + private void OnCastNotify(object o) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this.ID, this._skill_level, this._firer.SkillCasterTypeID); + bool flag = skillConfig != null; + if (flag) + { + DlgBase.singleton.ShowSkillRemainingCD(skillConfig.ScriptName, this._notify_at); + } + } + + public void InitCoreData(bool ctor = false) + { + XAttributes attributes = this._firer.Attributes; + bool flag = attributes == null; + if (!flag) + { + this._skill_level = attributes.SkillLevelInfo.GetSkillLevel(this.ID); + this._static_cd = XSingleton.singleton.GetSkillCDStaticRatio(this.ID, this._skill_level, this._firer.SkillCasterTypeID, XSingleton.singleton.IsPVPScene) * this._soul.CoolDown; + this._init_cd = XSingleton.singleton.GetSkillInitCDRatio(this.ID, this._skill_level, this._firer.SkillCasterTypeID, XSingleton.singleton.IsPVPScene, attributes) * this._soul.CoolDown; + this._semi_dynamic_cd_ratio = XSingleton.singleton.GetSkillCDSemiDynamicRatio(attributes, this.ID); + this._preserved_strength = XSingleton.singleton.GetStrengthValue(this.ID, this._skill_level, this._firer.SkillCasterTypeID); + this._notify_at = XSingleton.singleton.GetRemainingCDNotify(this.ID, this._skill_level, this._firer.SkillCasterTypeID); + this._totally_running_time = XSingleton.singleton.GetUsageCount(this.ID, this._skill_level, this._firer.SkillCasterTypeID); + bool flag2 = this._totally_running_time == 0; + if (flag2) + { + this._totally_running_time = 1; + } + if (ctor) + { + this._current_running_time = this._totally_running_time; + } + if (ctor) + { + this._ever_fired = false; + } + bool reloading = this.Reloading; + if (reloading) + { + this.GetCoolDown(); + } + } + } + + private void CheckRunningTime() + { + bool flag = this._current_running_time < 0; + if (flag) + { + this._current_running_time = 0; + } + else + { + bool flag2 = this._current_running_time > this._totally_running_time; + if (flag2) + { + this._current_running_time = this._totally_running_time; + } + } + } + + public void MakeCoolDownAtLaunch() + { + bool hasInitCD = this.HasInitCD; + if (hasInitCD) + { + this._current_running_time = 0; + this._is_init_cooling = true; + this._last_lock_and_load_time = Time.time; + XSingleton.singleton.KillTimer(this._cd_token); + XSingleton.singleton.KillTimer(this._timer_token_skill_notify); + this._cd_token = XSingleton.singleton.SetTimer(this._init_cd, this._OnReloaded, null); + bool flag = this._notify_at > 0f && this._notify_at < this._init_cd; + if (flag) + { + this._timer_token_skill_notify = XSingleton.singleton.SetTimer(this._init_cd - this._notify_at, new XTimerMgr.ElapsedEventHandler(this.OnCastNotify), null); + } + } + } + + public bool CanCast(long token) + { + bool flag = token > 0L && token == this._firer.Machine.ActionToken; + bool result; + if (flag) + { + result = true; + } + else + { + XStateDefine xstateDefine = this._firer.Machine.State.IsFinished ? this._firer.Machine.Default : this._firer.Machine.Current; + result = (xstateDefine == XStateDefine.XState_Idle || xstateDefine == XStateDefine.XState_Move || xstateDefine == XStateDefine.XState_Charge); + } + return result; + } + + public bool CanAct(XStateDefine state) + { + bool flag = this._carrier == null; + bool result; + if (flag) + { + bool flag2 = this._soul != null; + if (flag2) + { + XSingleton.singleton.AddErrorLog(this._firer.ToString(), " SkillCore error: without carrier for core name ", this._soul.Name, null, null, null); + } + result = true; + } + else + { + float timeElapsed = this._carrier.TimeElapsed; + Vector3 position = this._firer.EngineObject.Position; + bool flag3 = true; + if (state != XStateDefine.XState_Idle) + { + if (state == XStateDefine.XState_Move) + { + bool flag4 = XSingleton.singleton.IsLess(timeElapsed, this._soul.Logical.Not_Move_End) && XSingleton.singleton.IsEqualGreater(timeElapsed, this._soul.Logical.Not_Move_At); + if (flag4) + { + flag3 = false; + bool multipleAttackSupported = this._soul.MultipleAttackSupported; + if (multipleAttackSupported) + { + this._firer.Skill.TagTrigger(); + bool flag5 = this._firer.IsPlayer && XSingleton.singleton.Feeding; + if (flag5) + { + this._carrier.SkillTowardsTo = XSingleton.singleton.Direction; + } + } + else + { + this._carrier.Firer.Net.ReportRotateAction((this._firer.IsPlayer && XSingleton.singleton.Feeding) ? XSingleton.singleton.Direction : this._firer.Rotate.GetMeaningfulFaceVector3(), (this._soul.Logical.Rotate_Speed > 0f) ? this._soul.Logical.Rotate_Speed : this._firer.Attributes.RotateSpeed, 0L); + } + } + } + } + else + { + flag3 = false; + } + bool flag6 = flag3; + if (flag6) + { + this._firer.Skill.EndSkill(false, true); + } + result = flag3; + } + return result; + } + + public bool CanRotate() + { + return this._carrier == null || (XSingleton.singleton.IsLess(this._carrier.TimeElapsed, this._soul.Logical.Rotate_End) && XSingleton.singleton.IsEqualGreater(this._carrier.TimeElapsed, this._soul.Logical.Rotate_At)); + } + + public bool CanMove() + { + return this._carrier == null || XSingleton.singleton.IsEqualGreater(this._carrier.TimeElapsed, this._soul.Logical.Not_Move_End) || XSingleton.singleton.IsLess(this._carrier.TimeElapsed, this._soul.Logical.Not_Move_At); + } + + private static Vector3 ResultPos(Vector3 result_pos, Vector3 logical, float radius) + { + Vector3 vector = logical - result_pos; + vector.y = 0f; + float num = vector.magnitude; + vector.Normalize(); + num = ((num > radius) ? (num - radius) : 0f); + return result_pos + vector * num; + } + + private bool InnerIsInAttckField(int triggerTime, Vector3 pos, Vector3 forward, Vector3 targetPos, int shift) + { + Vector3 vector = targetPos - pos; + vector.y = 0f; + float magnitude = vector.magnitude; + float range = this.GetRange(triggerTime); + float scope = this.GetScope(triggerTime); + bool sector_Type = this._soul.Result[triggerTime].Sector_Type; + bool result; + if (sector_Type) + { + float num = (magnitude == 0f) ? 0f : Vector3.Angle(forward, vector); + result = (magnitude < range && magnitude >= this.GetRangeLow(triggerTime) && num <= scope); + } + else + { + Quaternion rotation = XSingleton.singleton.VectorToQuaternion(XSingleton.singleton.HorizontalRotateVetor3(forward, (float)this._soul.Result[triggerTime].None_Sector_Angle_Shift, true)); + bool flag = magnitude > 0f; + if (flag) + { + vector.Normalize(); + } + float num2 = scope / 2f; + float num3 = range / 2f; + this._rect.xMin = -num2; + this._rect.xMax = num2; + this._rect.yMin = (this._soul.Result[triggerTime].Rect_HalfEffect ? 0f : (-num3)); + this._rect.yMax = num3; + result = XSingleton.singleton.IsInRect(magnitude * vector, this._rect, Vector3.zero, rotation); + } + return result; + } + + public bool IsInAttckField(int triggerTime, Vector3 pos, Vector3 forward, XEntity target) + { + bool flag = !XEntity.ValideEntity(target); + bool result; + if (flag) + { + result = false; + } + else + { + XEntity xentity = target.IsTransform ? target.Transformer : target; + this._vOffset.Set(this._soul.Result[triggerTime].Offset_X, 0f, this._soul.Result[triggerTime].Offset_Z); + pos += this._firer.EngineObject.Rotation * this._vOffset; + bool huge = xentity.Present.PresentLib.Huge; + if (huge) + { + SeqListRef hugeMonsterColliders = xentity.Present.PresentLib.HugeMonsterColliders; + for (int i = 0; i < hugeMonsterColliders.Count; i++) + { + float radius = hugeMonsterColliders[i, 2] * xentity.Scale; + bool flag2 = this.InnerIsInAttckField(triggerTime, pos, forward, XSkillCore.ResultPos(pos, xentity.HugeMonsterColliderCenter(i), radius), this._soul.Result[triggerTime].None_Sector_Angle_Shift); + if (flag2) + { + return true; + } + } + result = false; + } + else + { + result = this.InnerIsInAttckField(triggerTime, pos, forward, XSkillCore.ResultPos(pos, xentity.RadiusCenter, xentity.Radius), this._soul.Result[triggerTime].None_Sector_Angle_Shift); + } + } + return result; + } + + public bool IsInAttckField(Vector3 pos, Vector3 forward, XEntity target) + { + return XEntity.ValideEntity(target) && this.GetAttckWeights(pos, forward, target) > float.MinValue; + } + + public static XEntity FindTargetAt(Vector3 pos, Vector3 forward, float range, float lower, float scope, XEntity firer, bool sector = true) + { + XEntity result = null; + float num = float.MinValue; + List opponent = XSingleton.singleton.GetOpponent(firer); + for (int i = 0; i < opponent.Count; i++) + { + bool flag = !XEntity.ValideEntity(opponent[i]) || opponent[i].Present.IsShowUp; + if (!flag) + { + float attckWeights = XSkillCore.GetAttckWeights(pos, forward, opponent[i], range, lower, scope, 0, sector); + bool flag2 = attckWeights > num; + if (flag2) + { + num = attckWeights; + result = opponent[i]; + } + } + } + return result; + } + + public XEntity FindTargetAt(Vector3 pos, Vector3 forward) + { + pos.x += this._soul.Cast_Offset_X; + pos.z += this._soul.Cast_Offset_Z; + return XSkillCore.FindTargetAt(pos, forward, this.CastRangeUpper, this.CastRangeLower, (float)((int)this.CastScope), this._firer, !this._soul.Cast_Range_Rect); + } + + public bool CanReplacedBy(XSkillCore skill) + { + bool flag = (this._soul.Logical.CanReplacedby & 1 << skill.Soul.TypeToken) != 0; + bool flag2 = !flag; + if (flag2) + { + flag = XSingleton.singleton.IsGreater(this._carrier.TimeElapsed, this._soul.Logical.CanCancelAt); + bool flag3 = !flag && this._soul.TypeToken == 0; + if (flag3) + { + bool flag4 = this._soul.Ja != null && this._soul.Ja.Count > 0; + if (flag4) + { + XJAComboSkill xjacomboSkill = this._carrier as XJAComboSkill; + bool flag5 = xjacomboSkill != null && xjacomboSkill.DuringJA; + if (flag5) + { + uint num = XSingleton.singleton.XHash(this._soul.Ja[0].Name); + flag = (skill.ID == num); + bool flag6 = !flag; + if (flag6) + { + XSkillCore skill2 = this._firer.SkillMgr.GetSkill(XSingleton.singleton.XHash(this._soul.Ja[0].Name)); + bool flag7 = skill2 != null && skill2.Soul.Logical.Association; + if (flag7) + { + num = XSingleton.singleton.XHash(skill2.Soul.Logical.Association_Skill); + flag = (skill.ID == num); + } + } + } + } + } + } + return flag; + } + + private static float GetAttckWeights(Vector3 pos, Vector3 forward, XEntity target, float upper, float lower, float scope, int scopeshift, bool sector) + { + forward = XSingleton.singleton.HorizontalRotateVetor3(forward, (float)scopeshift, true); + XEntity xentity = target.IsTransform ? target.Transformer : target; + bool huge = xentity.Present.PresentLib.Huge; + float result; + if (huge) + { + float num = float.MinValue; + SeqListRef hugeMonsterColliders = xentity.Present.PresentLib.HugeMonsterColliders; + for (int i = 0; i < hugeMonsterColliders.Count; i++) + { + float radius = hugeMonsterColliders[i, 2] * xentity.Scale; + float num2 = XSkillCore.InnerGetAttckWeights(pos, forward, target, upper, lower, scope, XSkillCore.ResultPos(pos, xentity.HugeMonsterColliderCenter(i), radius), sector); + bool flag = num2 > num; + if (flag) + { + num = num2; + } + } + result = num; + } + else + { + result = XSkillCore.InnerGetAttckWeights(pos, forward, target, upper, lower, scope, XSkillCore.ResultPos(pos, xentity.RadiusCenter, xentity.Radius), sector); + } + return result; + } + + private static float InnerGetAttckWeights(Vector3 pos, Vector3 forward, XEntity target, float upper, float lower, float scope, Vector3 logical, bool sector) + { + float num = float.MinValue; + Vector3 vector = logical - pos; + vector.y = 0f; + float magnitude = vector.magnitude; + vector.Normalize(); + float num2 = (magnitude == 0f) ? 0f : Vector3.Angle(forward, vector); + bool flag; + if (sector) + { + flag = (XSingleton.singleton.IsLess(magnitude, upper) && XSingleton.singleton.IsEqualGreater(magnitude, lower) && num2 <= scope); + } + else + { + Quaternion rotation = XSingleton.singleton.VectorToQuaternion(forward); + bool flag2 = magnitude > 0f; + if (flag2) + { + vector.Normalize(); + } + float num3 = scope / 2f; + float num4 = upper / 2f; + XSkillCore.s_rect.xMin = -num3; + XSkillCore.s_rect.xMax = num3; + XSkillCore.s_rect.yMin = -num4; + XSkillCore.s_rect.yMax = num4; + flag = XSingleton.singleton.IsInRect(magnitude * vector, XSkillCore.s_rect, Vector3.zero, rotation); + } + bool flag3 = flag && target.CanSelected; + if (flag3) + { + num = 0f; + float num5 = magnitude - lower; + float num6 = upper - lower; + float num7 = num6 / ((XSingleton.singleton.WithinRange == 0f) ? 1f : XSingleton.singleton.WithinRange); + int num8 = XSingleton.singleton.IsInteger(num7) ? Mathf.FloorToInt(num7 + 0.05f) : Mathf.CeilToInt(num7); + float num9 = (float)XSingleton.singleton.RangeWeight / (float)num8; + num7 = (float)num8 * (1f - num5 / num6); + int num10 = XSingleton.singleton.IsInteger(num7) ? Mathf.FloorToInt(num7 + 0.05f) : Mathf.CeilToInt(num7); + num += (float)num10 * num9; + num += (1f - num2 / scope) * num9; + bool flag4 = !target.IsRole && target.Buffs != null && target.Buffs.IsBuffStateOn(XBuffType.XBuffType_Immortal); + if (flag4) + { + num += (float)XSingleton.singleton.ImmortalWeight; + } + bool isBoss = target.IsBoss; + if (isBoss) + { + num += (float)XSingleton.singleton.BossWeight; + } + else + { + bool isElite = target.IsElite; + if (isElite) + { + num += (float)XSingleton.singleton.EliteWeight; + } + else + { + bool isPuppet = target.IsPuppet; + if (isPuppet) + { + num += (float)XSingleton.singleton.PupetWeight; + } + else + { + bool isRole = target.IsRole; + if (isRole) + { + num += (float)XSingleton.singleton.RoleWeight; + } + else + { + num += (float)XSingleton.singleton.EnemyWeight; + } + } + } + } + } + return num; + } + + private float GetAttckWeights(Vector3 pos, Vector3 forward, XEntity target) + { + pos.x += this._soul.Cast_Offset_X; + pos.z += this._soul.Cast_Offset_Z; + return XSkillCore.GetAttckWeights(pos, forward, target, this.CastRangeUpper, this.CastRangeLower, (float)((int)this.CastScope), (int)this._soul.Cast_Scope_Shift, !this._soul.Cast_Range_Rect); + } + + public float GetMultipleDirectionFactor() + { + bool flag = !this._carrier.MainCore.Soul.MultipleAttackSupported; + float result; + if (flag) + { + result = 1f; + } + else + { + XEntity target = this._carrier.Target; + Vector3 vector = (target != null) ? XSingleton.singleton.Horizontal(target.EngineObject.Position - this._firer.EngineObject.Position) : this._firer.EngineObject.Forward; + Vector3 skillTowardsTo = this._carrier.SkillTowardsTo; + vector.y = 0f; + bool flag2 = vector.sqrMagnitude == 0f; + if (flag2) + { + vector = Vector3.forward; + } + float num = Vector3.Angle(vector, skillTowardsTo); + num = (XSingleton.singleton.Clockwise(vector, skillTowardsTo) ? num : (360f - num)); + result = num / 360f; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillCore.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillCore.cs.meta new file mode 100644 index 00000000..e59f830f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillCore.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 235579c69d7832c45b6b25a9a12e92d8 +timeCreated: 1611403450 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillEffectMgr.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillEffectMgr.cs new file mode 100644 index 00000000..798f1385 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillEffectMgr.cs @@ -0,0 +1,937 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkillEffectMgr : XSingleton + { + private XTableAsyncLoader _async_loader = null; + + private SkillList _skillTable = new SkillList(); + + public Dictionary PreSkillDict = new Dictionary(200); + + private Dictionary _specialEnemyPreSkillDict = new Dictionary(); + + public uint EmptySkillHash = XSingleton.singleton.XHash("E"); + + private static CVSReader.RowDataCompare comp = new CVSReader.RowDataCompare(XSkillEffectMgr.SkillDataCompare); + + private SkillLevelupRequest req = null; + + private SkillEffect m_SkillEffect = new SkillEffect(); + + private List ret = null; + + private HashSet repeatHash = null; + + public void TestSkillTable() + { + for (int i = 0; i < this._skillTable.Table.Length; i++) + { + SkillList.RowData rowData = this._skillTable.Table[i]; + bool flag = this.GetSkillConfig(XSingleton.singleton.XHash(rowData.SkillScript), 0u, rowData.XEntityStatisticsID) == null; + if (flag) + { + XSingleton.singleton.AddErrorLog2("skill not found:{0}", new object[] + { + rowData.SkillScript + }); + } + } + } + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/SkillList", this._skillTable, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + for (int i = 0; i < this._skillTable.Table.Length; i++) + { + SkillList.RowData rowData = this._skillTable.Table[i]; + bool flag3 = !string.IsNullOrEmpty(rowData.SkillScript) && !string.IsNullOrEmpty(rowData.ExSkillScript); + if (flag3) + { + bool flag4 = rowData.XEntityStatisticsID > 0u; + if (flag4) + { + ulong key = (ulong)XSingleton.singleton.XHash(rowData.ExSkillScript) << 32 | (ulong)rowData.XEntityStatisticsID; + this._specialEnemyPreSkillDict[key] = rowData.SkillScriptHash; + } + else + { + this.PreSkillDict[XSingleton.singleton.XHash(rowData.ExSkillScript)] = rowData.SkillScriptHash; + } + } + } + result = true; + } + return result; + } + + public override void Uninit() + { + this._async_loader = null; + } + + public SkillList.RowData GetSkillConfig(uint skillHash, uint skillLevel, uint entityTempID) + { + bool flag = entityTempID == 0u; + SkillList.RowData result; + if (flag) + { + result = this.GetSkillConfig(skillHash, skillLevel); + } + else + { + result = this.GetEnemySpecialSkillConfig(skillHash, skillLevel, entityTempID); + } + return result; + } + + public SkillList.RowData GetEnemySpecialSkillConfig(uint skillHash, uint skillLevel, uint entityTempID) + { + bool flag = this.EmptySkillHash == skillHash; + SkillList.RowData result; + if (flag) + { + result = null; + } + else + { + int num = -1; + int num2 = -1; + CVSReader.GetRowDataListByField(this._skillTable.Table, skillHash, out num, out num2, XSkillEffectMgr.comp); + bool flag2 = num >= 0 && num <= num2; + if (flag2) + { + for (int i = num; i <= num2; i++) + { + SkillList.RowData rowData = this._skillTable.Table[i]; + bool flag3 = rowData.XEntityStatisticsID == entityTempID && skillLevel <= (uint)rowData.SkillLevel; + if (flag3) + { + return rowData; + } + } + bool flag4 = num == num2; + if (flag4) + { + result = this._skillTable.Table[num]; + } + else + { + for (int j = num; j <= num2; j++) + { + SkillList.RowData rowData2 = this._skillTable.Table[j]; + bool flag5 = rowData2.XEntityStatisticsID == 0u && skillLevel <= (uint)rowData2.SkillLevel; + if (flag5) + { + return rowData2; + } + } + result = this._skillTable.Table[num2]; + } + } + else + { + result = null; + } + } + return result; + } + + private static int SkillDataCompare(SkillList.RowData rowData, uint skillHash) + { + return skillHash.CompareTo(rowData.SkillScriptHash); + } + + public SkillList.RowData GetSkillConfig(uint skillHash, uint skillLevel) + { + bool flag = this.EmptySkillHash == skillHash; + SkillList.RowData result; + if (flag) + { + result = null; + } + else + { + int num = -1; + int num2 = -1; + CVSReader.GetRowDataListByField(this._skillTable.Table, skillHash, out num, out num2, XSkillEffectMgr.comp); + bool flag2 = num >= 0 && num <= num2; + if (flag2) + { + bool flag3 = num == num2; + if (flag3) + { + result = this._skillTable.Table[num]; + } + else + { + for (int i = num; i <= num2; i++) + { + SkillList.RowData rowData = this._skillTable.Table[i]; + bool flag4 = rowData.XEntityStatisticsID == 0u && skillLevel <= (uint)rowData.SkillLevel; + if (flag4) + { + return rowData; + } + } + result = this._skillTable.Table[num2]; + } + } + else + { + result = null; + } + } + return result; + } + + public int GetSkillMaxLevel(uint skillHash, uint entityTempID = 0u) + { + bool flag = this.EmptySkillHash == skillHash; + int result; + if (flag) + { + result = 0; + } + else + { + int num = -1; + int num2 = -1; + CVSReader.GetRowDataListByField(this._skillTable.Table, skillHash, out num, out num2, XSkillEffectMgr.comp); + bool flag2 = num >= 0 && num <= num2; + if (flag2) + { + bool flag3 = entityTempID > 0u; + SkillList.RowData rowData; + if (flag3) + { + for (int i = num2; i >= num; i--) + { + rowData = this._skillTable.Table[i]; + bool flag4 = rowData.XEntityStatisticsID == entityTempID; + if (flag4) + { + return (int)rowData.SkillLevel; + } + } + } + rowData = this._skillTable.Table[0]; + uint preSkill = this.GetPreSkill(skillHash, 0u); + bool flag5 = preSkill > 0u; + if (flag5) + { + result = 1; + } + else + { + for (int j = num2; j >= num; j--) + { + rowData = this._skillTable.Table[j]; + bool flag6 = rowData.XEntityStatisticsID == 0u; + if (flag6) + { + return (int)rowData.SkillLevel; + } + } + result = 0; + } + } + else + { + result = 0; + } + } + return result; + } + + public int GetSkillHpMaxLimit(string skillName, uint level, uint entityTempID) + { + uint skillHash = XSingleton.singleton.XHash(skillName); + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, level, entityTempID); + bool flag = skillConfig == null; + int result; + if (flag) + { + result = 0; + } + else + { + result = (int)skillConfig.HpMaxLimit; + } + return result; + } + + public int GetSkillHpMinLimit(string skillName, uint level, uint entityTempID) + { + uint skillHash = XSingleton.singleton.XHash(skillName); + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, level, entityTempID); + bool flag = skillConfig == null; + int result; + if (flag) + { + result = 0; + } + else + { + result = (int)skillConfig.HpMinLimit; + } + return result; + } + + public bool GetSkillDescriptValue(uint skillhash, uint level, XBodyBag EmblemBag, out float Ratio, out float Fixed) + { + float num = 0f; + float num2 = 0f; + Ratio = 0f; + Fixed = 0f; + SkillList.RowData skillConfig = this.GetSkillConfig(skillhash, level); + bool flag = skillConfig == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < skillConfig.TipsRatio.Count; i++) + { + Ratio += skillConfig.TipsRatio[i, 0]; + num += skillConfig.TipsRatio[i, 1]; + } + Ratio += num * level; + for (int i = 0; i < skillConfig.TipsFixed.Count; i++) + { + Fixed += skillConfig.TipsFixed[i, 0]; + num2 += skillConfig.TipsFixed[i, 1]; + } + Fixed += num2 * level; + float num3 = 0f; + CombatEffectHelper data = XDataPool.GetData(); + data.Set(skillhash, XSingleton.singleton.Player); + data.GetSkillDamage(out num3); + num3 += XEmblemDocument.GetSkillDamageRatio(EmblemBag, skillhash); + Ratio *= 1f + num3; + data.Recycle(); + result = true; + } + return result; + } + + public SkillLevelupRequest GetLevelupRequest(uint skillHash, uint level) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, level); + bool flag = skillConfig == null; + SkillLevelupRequest result; + if (flag) + { + result = null; + } + else + { + bool flag2 = this.req == null; + if (flag2) + { + this.req = new SkillLevelupRequest(); + } + bool flag3 = skillConfig.UpReqRoleLevel == null || skillConfig.UpReqRoleLevel.Length == 0; + if (flag3) + { + this.req.Level = 0; + } + else + { + bool flag4 = (ulong)level < (ulong)((long)skillConfig.UpReqRoleLevel.Length); + if (flag4) + { + this.req.Level = (int)skillConfig.UpReqRoleLevel[(int)level]; + } + else + { + this.req.Level = (int)skillConfig.UpReqRoleLevel[skillConfig.UpReqRoleLevel.Length - 1]; + } + } + bool flag5 = this.req.Items == null; + if (flag5) + { + this.req.Items = new List(); + } + else + { + this.req.Items.Clear(); + } + ItemDesc item = default(ItemDesc); + item.ItemID = 5; + bool flag6 = skillConfig.LevelupCost == null || skillConfig.LevelupCost.Length == 0; + if (flag6) + { + item.ItemCount = 0; + } + else + { + bool flag7 = (ulong)level < (ulong)((long)skillConfig.LevelupCost.Length); + if (flag7) + { + item.ItemCount = (int)skillConfig.LevelupCost[(int)level]; + } + else + { + item.ItemCount = (int)skillConfig.LevelupCost[skillConfig.LevelupCost.Length - 1]; + } + } + this.req.Items.Add(item); + result = this.req; + } + return result; + } + + public double GetAttackSpeedRatio(XAttributes attr) + { + return (double)attr.AttackSpeed; + } + + public float GetSkillInitCDRatio(uint skillHash, uint level, uint entityTempID, bool IsPVP, XAttributes attr) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, level, entityTempID); + bool flag = skillConfig == null; + float result; + if (flag) + { + result = 0f; + } + else + { + float num = 0f; + CombatEffectHelper data = XDataPool.GetData(); + data.Set(skillHash, attr.Entity); + data.GetSkillCD(out num); + data.Recycle(); + bool isPlayer = attr.Entity.IsPlayer; + if (isPlayer) + { + num += XEmblemDocument.GetSkillCDRatio(attr.EmblemBag, skillHash); + } + num += 1f; + if (IsPVP) + { + result = skillConfig.PvPInitCD * num; + } + else + { + result = skillConfig.InitCD * num; + } + } + return result; + } + + public float GetSkillCDDynamicRatio(XAttributes attr) + { + return (float)(attr.GetAttr(XAttributeDefine.XATTR_SKILL_CD_Total) / XSingleton.singleton.GeneralCombatParam); + } + + public float GetSkillCDDynamicRatio(XAttributes attr, uint skillHash) + { + return this.CalcDynamicRatio(this.GetSkillCDDynamicRatio(attr), this.GetSkillCDSemiDynamicRatio(attr, skillHash)); + } + + public float GetSkillCDSemiDynamicRatio(XAttributes attr, uint skillHash) + { + float num = 0f; + CombatEffectHelper data = XDataPool.GetData(); + data.Set(skillHash, attr.Entity); + data.GetSkillCD(out num); + data.Recycle(); + bool isPlayer = attr.Entity.IsPlayer; + if (isPlayer) + { + num += XEmblemDocument.GetSkillCDRatio(attr.EmblemBag, skillHash); + } + return num; + } + + public double GetXULIPower(XEntity entity) + { + bool flag = entity == null || entity.Attributes == null; + double result; + if (flag) + { + result = 1.0; + } + else + { + result = entity.Attributes.GetAttr(XAttributeDefine.XAttr_XULI_Total) / XSingleton.singleton.GeneralCombatParam; + } + return result; + } + + public float CalcDynamicRatio(float dynamicCDRatio, float semiDynamicCDRatio) + { + float num = dynamicCDRatio + semiDynamicCDRatio; + return Mathf.Clamp(num, XSingleton.singleton.CDChangeLowerBound, XSingleton.singleton.CDChangeUpperBound); + } + + public float GetSkillCDStaticRatio(uint skillHash, uint level, uint entityTempID, bool IsPVP) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, level, entityTempID); + bool flag = skillConfig == null; + float result; + if (flag) + { + result = 1f; + } + else if (IsPVP) + { + bool flag2 = skillConfig.PvPCDRatio[0] == 0f && skillConfig.PvPCDRatio[1] == 0f; + if (flag2) + { + result = 1f; + } + else + { + result = skillConfig.PvPCDRatio[0] + skillConfig.PvPCDRatio[1] * level; + } + } + else + { + bool flag3 = skillConfig.CDRatio[0] == 0f && skillConfig.CDRatio[1] == 0f; + if (flag3) + { + result = 1f; + } + else + { + result = skillConfig.CDRatio[0] + skillConfig.CDRatio[1] * level; + } + } + return result; + } + + public float GetSkillCostMP(uint skillHash, uint level, uint entityTempID) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, level, entityTempID); + bool flag = skillConfig == null; + float result; + if (flag) + { + result = 0f; + } + else + { + result = skillConfig.CostMP[0] + skillConfig.CostMP[1] * level; + } + return result; + } + + public float GetSkillCostMP(string skillName, uint level, uint entityTempID) + { + uint skillHash = XSingleton.singleton.XHash(skillName); + return this.GetSkillCostMP(skillHash, level, entityTempID); + } + + public SkillStartEffect GetSkillStartEffect(uint skillHash, uint level, XSkillFlags skillFlags, uint entityTempID, bool IsPVP) + { + SkillStartEffect skillStartEffect = default(SkillStartEffect); + skillStartEffect.IncSuperArmor = 0; + skillStartEffect.MpCost = 0.0; + skillStartEffect.Buffs = null; + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, level, entityTempID); + bool flag = skillConfig == null; + SkillStartEffect result; + if (flag) + { + result = skillStartEffect; + } + else + { + if (IsPVP) + { + skillStartEffect.IncSuperArmor = skillConfig.PvPIncreaseSuperArmor; + } + else + { + skillStartEffect.IncSuperArmor = skillConfig.IncreaseSuperArmor; + } + for (int i = 0; i < skillConfig.StartBuffID.Count; i++) + { + bool flag2 = skillConfig.StartBuffID[i, 0] != 0f && (skillFlags == null || skillFlags.IsFlagSet((uint)skillConfig.StartBuffID[i, 3])); + if (flag2) + { + BuffDesc item; + item.BuffID = (int)skillConfig.StartBuffID[i, 0]; + item.BuffLevel = (int)(((int)skillConfig.StartBuffID[i, 1] == 0) ? level : ((uint)((int)skillConfig.StartBuffID[i, 1]))); + item.DelayTime = skillConfig.StartBuffID[i, 2]; + item.CasterID = 0UL; + item.EffectTime = BuffDesc.DEFAULT_TIME; + bool flag3 = skillStartEffect.Buffs == null; + if (flag3) + { + skillStartEffect.Buffs = new List(); + } + item.SkillID = skillHash; + skillStartEffect.Buffs.Add(item); + } + } + skillStartEffect.MpCost = (double)(skillConfig.CostMP[0] + skillConfig.CostMP[1] * level); + result = skillStartEffect; + } + return result; + } + + public SkillEffect GetSkillEffect(uint skillHash, int hitpoint, uint level, XSkillFlags skillFlags, uint entityTempID, bool IsPVP) + { + SkillEffect skillEffect = this.m_SkillEffect; + skillEffect.DamageElementType = DamageElement.DE_NONE; + skillEffect.PhyRatio = 1.0; + skillEffect.PhyFixed = 0.0; + skillEffect.MagRatio = 1.0; + skillEffect.MagFixed = 0.0; + skillEffect.DecSuperArmor = 0f; + bool flag = skillEffect.Buffs != null; + if (flag) + { + skillEffect.Buffs.Clear(); + } + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, level, entityTempID); + bool flag2 = skillConfig == null; + SkillEffect result; + if (flag2) + { + result = skillEffect; + } + else + { + skillEffect.DamageElementType = (DamageElement)skillConfig.Element; + if (IsPVP) + { + bool flag3 = hitpoint >= skillConfig.PvPRatio.Count || hitpoint >= skillConfig.PvPFixed.Count || hitpoint >= skillConfig.PvPMagicRatio.Count || hitpoint >= skillConfig.PvPMagicFixed.Count || hitpoint >= skillConfig.PercentDamage.Count; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Error: skill ", skillConfig.SkillScript, " hitpoint ", hitpoint.ToString(), " out of range", null); + return skillEffect; + } + skillEffect.PhyRatio = (double)(skillConfig.PvPRatio[hitpoint, 0] + skillConfig.PvPRatio[hitpoint, 1] * level); + skillEffect.PhyFixed = (double)(skillConfig.PvPFixed[hitpoint, 0] + skillConfig.PvPFixed[hitpoint, 1] * level); + skillEffect.MagRatio = (double)(skillConfig.PvPMagicRatio[hitpoint, 0] + skillConfig.PvPMagicRatio[hitpoint, 1] * level); + skillEffect.MagFixed = (double)(skillConfig.PvPMagicFixed[hitpoint, 0] + skillConfig.PvPMagicFixed[hitpoint, 1] * level); + skillEffect.PercentDamage = (double)(skillConfig.PercentDamage[hitpoint, 0] + skillConfig.PercentDamage[hitpoint, 1] * level); + bool flag4 = skillConfig.PvPDecreaseSuperArmor != null && hitpoint < skillConfig.PvPDecreaseSuperArmor.Length; + if (flag4) + { + skillEffect.DecSuperArmor = skillConfig.PvPDecreaseSuperArmor[hitpoint]; + } + } + else + { + bool flag5 = hitpoint >= skillConfig.PhysicalRatio.Count || hitpoint >= skillConfig.PhysicalFixed.Count || hitpoint >= skillConfig.MagicRatio.Count || hitpoint >= skillConfig.MagicFixed.Count || hitpoint >= skillConfig.PercentDamage.Count; + if (flag5) + { + XSingleton.singleton.AddErrorLog("Error: skill ", skillConfig.SkillScript, " hitpoint ", hitpoint.ToString(), " out of range", null); + return skillEffect; + } + skillEffect.PhyRatio = (double)(skillConfig.PhysicalRatio[hitpoint, 0] + skillConfig.PhysicalRatio[hitpoint, 1] * level); + skillEffect.PhyFixed = (double)(skillConfig.PhysicalFixed[hitpoint, 0] + skillConfig.PhysicalFixed[hitpoint, 1] * level); + skillEffect.MagRatio = (double)(skillConfig.MagicRatio[hitpoint, 0] + skillConfig.MagicRatio[hitpoint, 1] * level); + skillEffect.MagFixed = (double)(skillConfig.MagicFixed[hitpoint, 0] + skillConfig.MagicFixed[hitpoint, 1] * level); + skillEffect.PercentDamage = (double)(skillConfig.PercentDamage[hitpoint, 0] + skillConfig.PercentDamage[hitpoint, 1] * level); + bool flag6 = skillConfig.DecreaseSuperArmor != null && hitpoint < skillConfig.DecreaseSuperArmor.Length; + if (flag6) + { + skillEffect.DecSuperArmor = (float)skillConfig.DecreaseSuperArmor[hitpoint]; + } + } + bool flag7 = skillConfig.AddBuffPoint != null; + if (flag7) + { + for (int i = 0; i < skillConfig.AddBuffPoint.Length; i++) + { + bool flag8 = (int)skillConfig.AddBuffPoint[i] == hitpoint; + if (flag8) + { + bool flag9 = i < skillConfig.BuffID.Count && (skillFlags == null || skillFlags.IsFlagSet((uint)skillConfig.BuffID[i, 2])); + if (flag9) + { + bool flag10 = skillEffect.Buffs == null; + if (flag10) + { + skillEffect.Buffs = new List(); + } + BuffDesc item; + item.BuffID = skillConfig.BuffID[i, 0]; + item.BuffLevel = (int)((skillConfig.BuffID[i, 1] == 0) ? level : ((uint)skillConfig.BuffID[i, 1])); + item.CasterID = 0UL; + item.DelayTime = 0f; + item.EffectTime = BuffDesc.DEFAULT_TIME; + item.SkillID = skillHash; + skillEffect.Buffs.Add(item); + } + else + { + XSingleton.singleton.AddLog("Error: skill ", skillConfig.SkillScript, " index ", i.ToString(), " buff out of range ", skillConfig.BuffID.Count.ToString(), XDebugColor.XDebug_None); + } + } + } + } + skillEffect.ExclusiveMask = 0u; + bool flag11 = skillConfig.ExclusiveMask != null; + if (flag11) + { + for (int j = 0; j < skillConfig.ExclusiveMask.Length; j++) + { + skillEffect.ExclusiveMask |= 1u << (int)skillConfig.ExclusiveMask[j]; + } + } + result = skillEffect; + } + return result; + } + + public List GetProfSkillID(int profID) + { + bool flag = this.ret == null; + if (flag) + { + this.ret = new List(); + } + bool flag2 = this.repeatHash == null; + if (flag2) + { + this.repeatHash = new HashSet(); + } + this.ret.Clear(); + this.repeatHash.Clear(); + for (int i = 0; i < this._skillTable.Table.Length; i++) + { + SkillList.RowData rowData = this._skillTable.Table[i]; + bool flag3 = rowData != null && rowData.Profession == profID && rowData.IsBasicSkill == 0; + if (flag3) + { + bool flag4 = !this.repeatHash.Contains(rowData.SkillScriptHash); + if (flag4) + { + this.ret.Add(rowData.SkillScriptHash); + this.repeatHash.Add(rowData.SkillScriptHash); + } + } + } + return this.ret; + } + + public int GetSkillType(uint skillID) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillID, 0u); + bool flag = skillConfig != null; + int result; + if (flag) + { + result = (int)skillConfig.SkillType; + } + else + { + result = 0; + } + return result; + } + + public uint GetSkillID(string skillName, uint statisticsID = 0u) + { + uint num = XSingleton.singleton.XHash(skillName); + SkillList.RowData skillConfig = this.GetSkillConfig(num, 0u, statisticsID); + bool flag = skillConfig == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = num; + } + return result; + } + + public void SetMobProperty(XEntity mobEntity, XEntity caster, uint skillID) + { + bool flag = mobEntity == null || caster == null || mobEntity.Attributes == null || caster.Attributes == null; + if (!flag) + { + XAttributes attributes = mobEntity.Attributes; + XAttributes attributes2 = caster.Attributes; + attributes.Level = attributes2.Level; + attributes.SetAttr(XAttributeDefine.XAttr_MaxHP_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_MaxHP_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_CurrentHP_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_MaxHP_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_PhysicalAtk_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_PhysicalAtk_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_MagicAtk_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_MagicAtk_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_PhysicalAtkMod_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_PhysicalAtkMod_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_MagicAtkMod_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_MagicAtkMod_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_PhysicalDefMod_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_PhysicalDefMod_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_MagicDefMod_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_MagicDefMod_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_Critical_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_Critical_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_CritDamage_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_CritDamage_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_CritResist_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_CritResist_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_FireAtk_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_FireAtk_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_WaterAtk_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_WaterAtk_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_LightAtk_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_LightAtk_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_DarkAtk_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_DarkAtk_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_FireDef_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_FireDef_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_WaterDef_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_WaterDef_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_LightDef_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_LightDef_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_DarkDef_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_DarkDef_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_Strength_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_Strength_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_Agility_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_Agility_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_Intelligence_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_Intelligence_Basic)); + attributes.SetAttr(XAttributeDefine.XAttr_Vitality_Basic, attributes2.GetAttr(XAttributeDefine.XAttr_Vitality_Basic)); + attributes.SetHost(caster); + uint skillLevel = attributes2.SkillLevelInfo.GetSkillLevel(skillID); + SkillList.RowData skillConfig = this.GetSkillConfig(skillID, skillLevel, caster.SkillCasterTypeID); + bool flag2 = skillConfig == null; + if (!flag2) + { + CombatEffectHelper data = XDataPool.GetData(); + data.Set(skillID, caster); + bool flag3 = (skillConfig == null || skillConfig.MobBuffs == null) && !data.bHasEffect(CombatEffectType.CET_Skill_AddMobBuff); + if (flag3) + { + data.Recycle(); + } + else + { + List list = ListPool.Get(); + bool flag4 = data != null; + if (flag4) + { + data.GetSkillAddMobBuff((int)skillLevel, list); + } + bool flag5 = skillConfig.MobBuffs != null; + if (flag5) + { + for (int i = 0; i < skillConfig.MobBuffs.Length; i++) + { + list.Add(new BuffDesc + { + BuffID = (int)skillConfig.MobBuffs[i], + BuffLevel = (int)skillLevel, + EffectTime = BuffDesc.DEFAULT_TIME + }); + } + } + for (int j = 0; j < list.Count; j++) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc = list[j]; + @event.xBuffDesc.CasterID = mobEntity.ID; + @event.Firer = mobEntity; + XSingleton.singleton.FireEvent(@event); + } + ListPool.Release(list); + data.Recycle(); + } + } + } + } + + public uint GetPreSkill(uint skillID, uint entityTempID) + { + uint num = 0u; + bool flag = entityTempID > 0u; + if (flag) + { + ulong key = (ulong)skillID << 32 | (ulong)entityTempID; + bool flag2 = this._specialEnemyPreSkillDict.TryGetValue(key, out num); + if (flag2) + { + return num; + } + } + bool flag3 = this.PreSkillDict.TryGetValue(skillID, out num); + uint result; + if (flag3) + { + result = num; + } + else + { + result = 0u; + } + return result; + } + + public bool CanChangeCD(uint skillHash, uint skillLevel, uint entityTempID) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, skillLevel, entityTempID); + bool flag = skillConfig == null; + return !flag && skillConfig.UnchangableCD == 0; + } + + public bool AICantCast(uint skillHash, uint skillLevel, uint entityTempID) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, skillLevel, entityTempID); + bool flag = skillConfig == null; + return !flag && skillConfig.LinkType == 1; + } + + public float GetRemainingCDNotify(uint skillHash, uint skillLevel, uint entityTempID) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, skillLevel, entityTempID); + bool flag = skillConfig == null; + float result; + if (flag) + { + result = 0f; + } + else + { + result = skillConfig.RemainingCDNotify; + } + return result; + } + + public int GetStrengthValue(uint skillHash, uint skillLevel, uint entityTempID) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, skillLevel, entityTempID); + bool flag = skillConfig == null; + int result; + if (flag) + { + result = 0; + } + else + { + result = skillConfig.StrengthValue; + } + return result; + } + + public int GetUsageCount(uint skillHash, uint skillLevel, uint entityTempID) + { + SkillList.RowData skillConfig = this.GetSkillConfig(skillHash, skillLevel, entityTempID); + bool flag = skillConfig == null; + int result; + if (flag) + { + result = 0; + } + else + { + result = (int)skillConfig.UsageCount; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillEffectMgr.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillEffectMgr.cs.meta new file mode 100644 index 00000000..c73dffcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillEffectMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c52f8df9c5d21e84eb95592e156c7449 +timeCreated: 1611404505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalArgs.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalArgs.cs new file mode 100644 index 00000000..f2381522 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalArgs.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal abstract class XSkillExternalArgs : XEventArgs + { + public SkillExternalCallback callback = null; + + public float delay = 0f; + + public XSkillExternalArgs() + { + this._eDefine = XEventDefine.XEvent_SkillExternal; + } + + public override void Recycle() + { + this.callback = null; + this.delay = 0f; + base.Recycle(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalArgs.cs.meta new file mode 100644 index 00000000..914c103e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c650231bd2ab189458fb732d68f7a140 +timeCreated: 1611404508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalBuffArgs.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalBuffArgs.cs new file mode 100644 index 00000000..e1698ce0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalBuffArgs.cs @@ -0,0 +1,25 @@ +using System; + +namespace XMainClient +{ + internal class XSkillExternalBuffArgs : XSkillExternalArgs + { + public BuffDesc xBuffDesc = default(BuffDesc); + + public XEntity xTarget; + + public XSkillExternalBuffArgs() + { + this.xBuffDesc.Reset(); + this.xTarget = null; + } + + public override void Recycle() + { + this.xBuffDesc.Reset(); + this.xTarget = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalBuffArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalBuffArgs.cs.meta new file mode 100644 index 00000000..46c6d485 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillExternalBuffArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8476a07a64530f7418e53bd086b80547 +timeCreated: 1611404048 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillFactory.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillFactory.cs new file mode 100644 index 00000000..071f6616 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillFactory.cs @@ -0,0 +1,294 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkillFactory : XSingleton + { + private SmallBuffer _skillData; + + private SmallBuffer _skillCache; + + private SmallBuffer _skillMgrCache; + + public void OnSceneLoaded() + { + this._skillData.debugName = "XSkillCorePool._skillData"; + this._skillCache.debugName = "XSkillCorePool._skillCache"; + XSingleton.singleton.GetSmallBuffer(ref this._skillData, 256, 0); + XSingleton.singleton.GetSmallBuffer(ref this._skillCache, 256, 0); + XSingleton.singleton.GetSmallBuffer(ref this._skillMgrCache, 256, 0); + XSingleton.singleton.OnEnterScene(); + } + + public void OnLeaveScene() + { + bool isInit = this._skillData.IsInit; + if (isInit) + { + int i = 0; + int count = this._skillData.Count; + while (i < count) + { + XSkillCore xskillCore = this._skillData[i] as XSkillCore; + bool flag = xskillCore != null; + if (flag) + { + xskillCore.Clear(); + } + i++; + } + } + XSingleton.singleton.ReturnSmallBuffer(ref this._skillData); + XSingleton.singleton.ReturnSmallBuffer(ref this._skillCache); + XSingleton.singleton.ReturnSmallBuffer(ref this._skillMgrCache); + XSingleton.singleton.OnLeaveScene(); + } + + public XSkillCore Build(string skillprefix, string name, XEntity firer) + { + string text = skillprefix + name; + uint num = XSingleton.singleton.XHash(text); + XSkillCore xskillCore = firer.SkillMgr.GetSkill(XSingleton.singleton.XHash(name)); + bool flag = xskillCore != null; + XSkillCore result; + if (flag) + { + result = xskillCore; + } + else + { + int i = 0; + int count = this._skillData.Count; + while (i < count) + { + XSkillCore xskillCore2 = this._skillData[i] as XSkillCore; + bool flag2 = xskillCore2 != null && num == xskillCore2.LongID; + if (flag2) + { + xskillCore2.Recycle(firer); + this._skillData[i] = null; + bool flag3 = XSingleton.singleton.IsPVPScene && !xskillCore2.IsPvPVersion; + if (flag3) + { + bool flag4 = !string.IsNullOrEmpty(xskillCore2.Soul.PVP_Script_Name); + if (flag4) + { + XSkillData data = XSingleton.singleton.GetData(skillprefix + xskillCore2.Soul.PVP_Script_Name, ".txt"); + data.Prefix = skillprefix; + data.Name = xskillCore2.Soul.Name; + xskillCore2.SoulRefine(data, true); + } + } + else + { + bool flag5 = !XSingleton.singleton.IsPVPScene && xskillCore2.IsPvPVersion; + if (flag5) + { + XSkillData data2 = XSingleton.singleton.GetData(skillprefix + xskillCore2.Soul.Name, ".txt"); + data2.Prefix = skillprefix; + xskillCore2.SoulRefine(data2, false); + } + } + return xskillCore2; + } + i++; + } + XSkillData data3 = XSingleton.singleton.GetData(text, ".txt"); + data3.Prefix = skillprefix; + xskillCore = new XSkillCore(firer, data3, num); + bool flag6 = XSingleton.singleton.IsPVPScene && !string.IsNullOrEmpty(xskillCore.Soul.PVP_Script_Name); + if (flag6) + { + XSkillData data4 = XSingleton.singleton.GetData(skillprefix + xskillCore.Soul.PVP_Script_Name, ".txt"); + data4.Prefix = skillprefix; + data4.Name = xskillCore.Soul.Name; + xskillCore.SoulRefine(data4, true); + } + switch (xskillCore.Soul.TypeToken) + { + case 0: + xskillCore.TriggerToken = XSkillData.JA_Command[xskillCore.Soul.SkillPosition]; + break; + case 1: + xskillCore.TriggerToken = "ToArtSkill"; + xskillCore.Soul.Ja = null; + break; + case 2: + xskillCore.TriggerToken = "ToUltraShow"; + xskillCore.Soul.Ja = null; + break; + case 3: + xskillCore.TriggerToken = "ToPhase"; + xskillCore.Soul.Ja = null; + break; + } + bool multipleAttackSupported = xskillCore.Soul.MultipleAttackSupported; + if (multipleAttackSupported) + { + xskillCore.TriggerToken = "ToMultipleDirAttack"; + } + result = xskillCore; + } + return result; + } + + public void Release(XSkillCore core) + { + core.CoolDown(); + core.Uninit(); + int i = 0; + int count = this._skillData.Count; + while (i < count) + { + bool flag = this._skillData[i] == null; + if (flag) + { + this._skillData[i] = core; + return; + } + i++; + } + this._skillData.Add(core); + } + + public void Print() + { + XSingleton.singleton.AddLog("skill core count:", this._skillData.Count.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + + public string GetTypeName(int token) + { + bool flag = token < XSkillData.Skills.Length; + string result; + if (flag) + { + result = XSkillData.Skills[token]; + } + else + { + result = null; + } + return result; + } + + public int GetTypeHash(int token) + { + int result; + switch (token) + { + case 0: + result = XSkill.XJAComboSkillHash; + break; + case 1: + result = XSkill.XArtsSkillHash; + break; + case 2: + result = XSkill.XUltraSkillHash; + break; + case 3: + result = XSkill.XCombinedSkillHash; + break; + default: + throw new ArgumentException(); + } + return result; + } + + public XSkill CreateSkill(XEntity firer, int token) + { + int i = 0; + int count = this._skillCache.Count; + while (i < count) + { + XSkill xskill = this._skillCache[i] as XSkill; + bool flag = xskill != null && xskill.SkillType == token; + if (flag) + { + this._skillCache[i] = null; + xskill.Initialize(firer); + return xskill; + } + i++; + } + XSkill xskill2; + switch (token) + { + case 0: + xskill2 = new XJAComboSkill(); + break; + case 1: + xskill2 = new XArtsSkill(); + break; + case 2: + xskill2 = new XUltraSkill(); + break; + case 3: + xskill2 = new XCombinedSkill(); + break; + default: + return null; + } + xskill2.Initialize(firer); + return xskill2; + } + + public void ReturnSkill(XSkill skill) + { + int i = 0; + int count = this._skillCache.Count; + while (i < count) + { + bool flag = this._skillCache[i] == null; + if (flag) + { + this._skillCache[i] = skill; + return; + } + i++; + } + this._skillCache.Add(skill); + } + + public XSkillMgr CreateSkillMgr(XEntity entity) + { + int i = 0; + int count = this._skillMgrCache.Count; + while (i < count) + { + XSkillMgr xskillMgr = this._skillMgrCache[i] as XSkillMgr; + bool flag = xskillMgr != null; + if (flag) + { + this._skillMgrCache[i] = null; + xskillMgr.Initialize(entity); + return xskillMgr; + } + i++; + } + return new XSkillMgr(entity); + } + + public void ReturnSkillMgr(XSkillMgr skillMgr) + { + bool flag = skillMgr != null; + if (flag) + { + skillMgr.Uninitialize(); + int i = 0; + int count = this._skillMgrCache.Count; + while (i < count) + { + bool flag2 = this._skillMgrCache[i] == null; + if (flag2) + { + this._skillCache[i] = skillMgr; + return; + } + i++; + } + this._skillMgrCache.Add(skillMgr); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillFactory.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillFactory.cs.meta new file mode 100644 index 00000000..913841ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillFactory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c52eb7e872c5c740b07ea982a8dab8f +timeCreated: 1611404231 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillFlags.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillFlags.cs new file mode 100644 index 00000000..74fb31a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillFlags.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XSkillFlags + { + private ulong m_Flag = 1UL; + + public bool IsFlagSet(uint flag) + { + return (this.m_Flag & 1UL << (int)flag) > 0UL; + } + + public void SetFlag(List flags) + { + for (int i = 0; i < flags.Count; i++) + { + this.SetFlag(flags[i]); + } + } + + public void SetFlag(short[] flags) + { + bool flag = flags != null; + if (flag) + { + for (int i = 0; i < flags.Length; i++) + { + this.SetFlag((uint)flags[i]); + } + } + } + + public void SetFlag(uint flag) + { + this.m_Flag |= 1UL << (int)flag; + } + + public void Reset() + { + this.m_Flag = 1UL; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillFlags.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillFlags.cs.meta new file mode 100644 index 00000000..e11b1287 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillFlags.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 563bc6c9c0a6b484594d531b186cc494 +timeCreated: 1611403743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillJAPassedEventArgs.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillJAPassedEventArgs.cs new file mode 100644 index 00000000..aed26dd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillJAPassedEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XSkillJAPassedEventArgs : XEventArgs + { + public int Slot = -1; + + public XSkillJAPassedEventArgs() + { + this._eDefine = XEventDefine.XEvent_OnJAPassed; + } + + public override void Recycle() + { + this.Slot = -1; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillJAPassedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillJAPassedEventArgs.cs.meta new file mode 100644 index 00000000..cf413add --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillJAPassedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88ba3167c707a3d458e3f06bf263bd85 +timeCreated: 1611404085 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillLevelInfoMgr.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillLevelInfoMgr.cs new file mode 100644 index 00000000..bb8aa2e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillLevelInfoMgr.cs @@ -0,0 +1,284 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkillLevelInfoMgr + { + public XSkillFlags Flags + { + get + { + return this._Flags; + } + } + + public Dictionary LearnedSkills + { + get + { + return this._SkillDicts; + } + } + + public static int AuraSkillType = 4; + + private Dictionary _SkillDicts = new Dictionary(); + + private Dictionary _LinkedLevels = new Dictionary(); + + private uint _DefaultLevel = 1u; + + private XEntity _entity = null; + + private XSkillFlags _Flags = new XSkillFlags(); + + private static List g_SkillsHavingEx = new List(); + + public void SetDefaultLevel(uint level) + { + this._DefaultLevel = level; + } + + public void RemoveSkill(uint skillHash) + { + this._SkillDicts.Remove(skillHash); + } + + public uint GetSkillLevel(uint skillHash) + { + uint num = 0u; + bool flag = XEntity.ValideEntity(this._entity) && this._entity.IsTransform; + uint result; + if (flag) + { + bool canlevelrans = XBattleSkillDocument.m_canlevelrans; + if (canlevelrans) + { + bool flag2 = XBattleSkillDocument.SkillLevelDict.TryGetValue(skillHash, out num); + if (flag2) + { + result = num; + } + else + { + result = 1u; + } + } + else + { + result = 1u; + } + } + else + { + bool flag3 = this._LinkedLevels.TryGetValue(skillHash, out num); + if (flag3) + { + result = num; + } + else + { + result = this.GetSkillOriginalLevel(skillHash); + } + } + return result; + } + + public uint GetSkillOriginalLevel(uint skillHash) + { + uint defaultLevel = this._DefaultLevel; + bool flag = this._SkillDicts.TryGetValue(skillHash, out defaultLevel); + uint result; + if (flag) + { + result = defaultLevel; + } + else + { + result = this._DefaultLevel; + } + return result; + } + + public void SetSkillLevel(uint skillHash, uint skillLevel) + { + bool flag = this._SkillDicts.ContainsKey(skillHash); + if (flag) + { + this._SkillDicts[skillHash] = skillLevel; + } + else + { + this._SkillDicts.Add(skillHash, skillLevel); + } + } + + public void RefreshSkillFlags() + { + this._Flags.Reset(); + foreach (KeyValuePair keyValuePair in this._SkillDicts) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(keyValuePair.Key, keyValuePair.Value); + bool flag = skillConfig != null; + if (flag) + { + this._Flags.SetFlag(skillConfig.Flag); + } + } + } + + public void Init(List skills) + { + this._SkillDicts.Clear(); + for (int i = 0; i < skills.Count; i++) + { + this.SetSkillLevel(skills[i].skillHash, skills[i].skillLevel); + } + this.RefreshSkillFlags(); + } + + public void CaskAuraSkills(XEntity entity) + { + Dictionary.Enumerator enumerator = this._SkillDicts.GetEnumerator(); + while (enumerator.MoveNext()) + { + XSkillEffectMgr singleton = XSingleton.singleton; + KeyValuePair keyValuePair = enumerator.Current; + uint key = keyValuePair.Key; + keyValuePair = enumerator.Current; + SkillList.RowData skillConfig = singleton.GetSkillConfig(key, keyValuePair.Value, entity.SkillCasterTypeID); + bool flag = skillConfig != null && (int)skillConfig.SkillType == XSkillLevelInfoMgr.AuraSkillType; + if (flag) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc.BuffID = skillConfig.AuraBuffID[0]; + XBuffAddEventArgs xbuffAddEventArgs = @event; + int buffLevel; + if (skillConfig.AuraBuffID[1] != 0) + { + buffLevel = skillConfig.AuraBuffID[1]; + } + else + { + keyValuePair = enumerator.Current; + buffLevel = (int)keyValuePair.Value; + } + xbuffAddEventArgs.xBuffDesc.BuffLevel = buffLevel; + @event.Firer = entity; + @event.xBuffDesc.CasterID = entity.ID; + XBuffAddEventArgs xbuffAddEventArgs2 = @event; + keyValuePair = enumerator.Current; + xbuffAddEventArgs2.xBuffDesc.SkillID = keyValuePair.Key; + XSingleton.singleton.FireEvent(@event); + } + } + } + + public void RefreshSelfLinkedLevels(XEntity entity) + { + this._entity = entity; + this._LinkedLevels.Clear(); + bool flag = entity == null || entity.Attributes == null || this._entity.Attributes.skillSlot == null; + if (!flag) + { + foreach (uint num in this._SkillDicts.Keys) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(num, 1u, entity.SkillCasterTypeID); + bool flag2 = skillConfig != null && !string.IsNullOrEmpty(skillConfig.LinkedSkill); + if (flag2) + { + uint skillOriginalLevel = this.GetSkillOriginalLevel(XSingleton.singleton.XHash(skillConfig.LinkedSkill)); + bool flag3 = skillOriginalLevel > 0u; + if (flag3) + { + this._LinkedLevels[num] = skillOriginalLevel; + } + } + } + } + } + + public void RefreshMobLinkedLevels(XEntity entity, XEntity hoster) + { + this._entity = entity; + this._LinkedLevels.Clear(); + bool flag = entity == null || entity.SkillMgr == null || hoster == null || hoster.Attributes == null || hoster.Attributes.SkillLevelInfo == null; + if (!flag) + { + XSkillMgr skillMgr = entity.SkillMgr; + XSkillLevelInfoMgr skillLevelInfo = hoster.Attributes.SkillLevelInfo; + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(entity.PresentID); + bool flag2 = byPresentID == null || byPresentID.OtherSkills == null; + if (!flag2) + { + XSkillLevelInfoMgr.g_SkillsHavingEx.Clear(); + for (int i = 0; i < byPresentID.OtherSkills.Length; i++) + { + bool flag3 = string.IsNullOrEmpty(byPresentID.OtherSkills[i]) || byPresentID.OtherSkills[i] == "E"; + if (!flag3) + { + uint num = XSingleton.singleton.XHash(byPresentID.OtherSkills[i]); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(num, 1u, entity.SkillCasterTypeID); + bool flag4 = skillConfig == null; + if (!flag4) + { + bool flag5 = !string.IsNullOrEmpty(skillConfig.ExSkillScript); + if (flag5) + { + XSkillLevelInfoMgr.g_SkillsHavingEx.Add(skillConfig); + } + else + { + this.SetLinkedLevel(num, skillConfig, skillLevelInfo, entity.SkillCasterTypeID); + } + } + } + } + for (int j = 0; j < XSkillLevelInfoMgr.g_SkillsHavingEx.Count; j++) + { + SkillList.RowData rowData = XSkillLevelInfoMgr.g_SkillsHavingEx[j]; + uint num2 = XSingleton.singleton.XHash(rowData.SkillScript); + bool flag6 = this.GetSkillLevel(XSingleton.singleton.XHash(rowData.ExSkillScript)) > 0u; + if (flag6) + { + this._LinkedLevels[num2] = 0u; + } + else + { + this.SetLinkedLevel(num2, rowData, skillLevelInfo, entity.SkillCasterTypeID); + } + } + } + } + } + + private void SetLinkedLevel(uint skillID, SkillList.RowData rowData, XSkillLevelInfoMgr hosterSkillLevelMgr, uint enemyTempID) + { + bool flag = rowData == null || hosterSkillLevelMgr == null || string.IsNullOrEmpty(rowData.LinkedSkill); + if (!flag) + { + uint skillHash = XSingleton.singleton.XHash(rowData.LinkedSkill); + uint skillLevel = hosterSkillLevelMgr.GetSkillLevel(skillHash); + bool flag2 = skillLevel == 0u; + if (flag2) + { + this._LinkedLevels[skillID] = 0u; + } + else + { + uint val = skillLevel; + uint preSkill = XSingleton.singleton.GetPreSkill(XSingleton.singleton.XHash(rowData.LinkedSkill), enemyTempID); + bool flag3 = preSkill > 0u; + if (flag3) + { + val = hosterSkillLevelMgr.GetSkillLevel(preSkill); + } + this._LinkedLevels[skillID] = Math.Min((uint)rowData.SkillLevel, val); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillLevelInfoMgr.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillLevelInfoMgr.cs.meta new file mode 100644 index 00000000..1f1b99e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillLevelInfoMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c9cc22e72dd4694f8f5bff066bd614a +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillMgr.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillMgr.cs new file mode 100644 index 00000000..ad8dcde8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillMgr.cs @@ -0,0 +1,598 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XSkillMgr + { + public int SkillCount + { + get + { + return this._core.Count; + } + } + + public static XSkillMgr.XQTEInfo[] QTEBuffer; + + public static int MaxQTECount = 4; + + private XEntity _host = null; + + private SmallBuffer _physicals; + + private SmallBuffer _carriers; + + private SmallBuffer _core; + + private Dictionary _coreDic = new Dictionary(); + + public SmallBuffer SkillOrder; + + private uint _physical = 0u; + + private uint _ultra = 0u; + + private uint _appear = 0u; + + private uint _disappear = 0u; + + private uint _dash = 0u; + + private uint _recovery = 0u; + + private uint _broken = 0u; + + internal struct XQTEInfo + { + public int key; + + public uint skill; + + public XQTEInfo(int rkey, uint rskill) + { + this.key = rkey; + this.skill = rskill; + } + + public void Empty() + { + this.key = 0; + this.skill = 0u; + } + } + + public XSkillMgr(XEntity entity) + { + this.Initialize(entity); + } + + public XSkillCore GetSkillCore(int index) + { + return this._core[index] as XSkillCore; + } + + private bool TryGetSkillCore(uint id, out XSkillCore s) + { + return this._coreDic.TryGetValue(id, out s); + } + + private bool ContainSkillCore(uint id) + { + return this._coreDic.ContainsKey(id); + } + + public void Initialize(XEntity entity) + { + this._host = entity; + this._physicals.debugName = "XSkillMgr._physicals"; + this._carriers.debugName = "XSkillMgr._carriers"; + this.SkillOrder.debugName = "XSkillMgr.SkillOrder"; + XSingleton.singleton.GetSmallBuffer(ref this._physicals, 16, 0); + XSingleton.singleton.GetSmallBuffer(ref this._carriers, 4, 0); + int i = 0; + int num = XSkillData.Skills.Length; + while (i < num) + { + this._carriers.Add(null); + i++; + } + XSingleton.singleton.GetSmallBuffer(ref this._core, 16, 0); + XSingleton.singleton.GetSmallBuffer(ref this.SkillOrder, 16, 0); + } + + public void Uninitialize() + { + XSingleton.singleton.ReturnSmallBuffer(ref this._physicals); + XSingleton.singleton.ReturnSmallBuffer(ref this.SkillOrder); + int i = 0; + int count = this._carriers.Count; + while (i < count) + { + XSkill xskill = this._carriers[i] as XSkill; + bool flag = xskill != null; + if (flag) + { + xskill.Uninitialize(); + XSingleton.singleton.ReturnSkill(xskill); + } + i++; + } + this._carriers.Clear(); + int j = 0; + int count2 = this._core.Count; + while (j < count2) + { + XSkillCore xskillCore = this._core[j] as XSkillCore; + bool flag2 = xskillCore != null; + if (flag2) + { + XSingleton.singleton.Release(xskillCore); + } + j++; + } + this._core.Clear(); + this._coreDic.Clear(); + this._physical = 0u; + this._ultra = 0u; + this._appear = 0u; + this._disappear = 0u; + this._dash = 0u; + this._recovery = 0u; + this._broken = 0u; + } + + public void AttachPhysicalSkill(XSkillCore core) + { + this._physical = core.ID; + this.AttachSkill(core, true); + } + + public void AttachAppearSkill(XSkillCore core) + { + this._appear = core.ID; + this.AttachSkill(core, false); + } + + public void AttachDisappearSkill(XSkillCore core) + { + this._disappear = core.ID; + this.AttachSkill(core, false); + } + + public void AttachUltraSkill(XSkillCore core) + { + this._ultra = core.ID; + this.AttachSkill(core, true); + } + + public void AttachRecoverySkill(XSkillCore core) + { + this._recovery = core.ID; + this.AttachSkill(core, false); + } + + public void AttachBrokenSkill(XSkillCore core) + { + this._broken = core.ID; + this.AttachSkill(core, false); + } + + public void AttachDashSkill(XSkillCore core) + { + this._dash = core.ID; + this.AttachSkill(core, true); + } + + public void AttachSkill(XSkillCore core, bool inorder = true) + { + bool flag = !this.ContainSkillCore(core.ID); + if (flag) + { + bool flag2 = this._host.Attributes != null; + if (flag2) + { + bool flag3 = core.Level > 0u; + if (flag3) + { + this.SkillBuildIn(core, inorder); + } + else + { + bool preLoad = XSkillData.PreLoad; + XSkillData.PreLoad = false; + bool isSkillReplaced = this._host.Skill.IsSkillReplaced; + if (isSkillReplaced) + { + this.SkillBuildIn(core, inorder); + } + XSkillData.PreLoad = preLoad; + } + } + else + { + this._core.Add(core); + this._coreDic.Add(core.ID, core); + bool flag4 = core.Soul.TypeToken == 3; + if (flag4) + { + for (int i = 0; i < core.Soul.Combined.Count; i++) + { + XSkillCore xskillCore = XSingleton.singleton.Build(this._host.IsTransform ? this._host.Transformer.Present.SkillPrefix : this._host.Present.SkillPrefix, core.Soul.Combined[i].Name, this._host); + bool flag5 = !this.ContainSkillCore(xskillCore.ID); + if (flag5) + { + this._core.Add(xskillCore); + this._coreDic.Add(xskillCore.ID, xskillCore); + } + } + } + bool flag6 = core.Soul.TypeToken < this._carriers.Count; + if (flag6) + { + bool flag7 = this._carriers[core.Soul.TypeToken] == null; + if (flag7) + { + this._carriers[core.Soul.TypeToken] = XSingleton.singleton.CreateSkill(this._host, core.Soul.TypeToken); + } + } + } + } + } + + public void DetachSkill(uint id) + { + XSkillCore item = null; + bool flag = this.TryGetSkillCore(id, out item); + if (flag) + { + bool flag2 = id == this._physical; + if (flag2) + { + this._physical = 0u; + } + bool flag3 = id == this._ultra; + if (flag3) + { + this._ultra = 0u; + } + bool flag4 = id == this._appear; + if (flag4) + { + this._appear = 0u; + } + bool flag5 = id == this._disappear; + if (flag5) + { + this._disappear = 0u; + } + this.SkillOrder.Remove(item); + this._core.Remove(id); + this._coreDic.Remove(id); + this._physicals.Remove(id); + } + } + + public XSkill GetCarrier(int id) + { + XSkill xskill = null; + bool flag = id < this._carriers.Count; + if (flag) + { + xskill = (this._carriers[id] as XSkill); + bool flag2 = xskill == null; + if (flag2) + { + xskill = XSingleton.singleton.CreateSkill(this._host, id); + this._carriers[id] = xskill; + } + } + bool flag3 = xskill == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Invalid carrier id: ", id.ToString(), null, null, null, null); + } + return xskill; + } + + public XSkillCore GetPhysicalSkill() + { + return this.GetSkill(this._physical); + } + + public XSkillCore GetDashSkill() + { + return this.GetSkill(this._dash); + } + + public XSkillCore GetSkill(uint id) + { + XSkillCore result = null; + this.TryGetSkillCore(id, out result); + return result; + } + + public uint GetPhysicalIdentity() + { + return this._physical; + } + + public bool IsPhysicalAttack(uint id) + { + return this._physicals.Contains(id); + } + + public uint GetUltraIdentity() + { + return this._ultra; + } + + public uint GetAppearIdentity() + { + return this._appear; + } + + public uint GetDisappearIdentity() + { + return this._disappear; + } + + public uint GetDashIdentity() + { + return this._dash; + } + + public uint GetRecoveryIdentity() + { + return this._recovery; + } + + public uint GetBrokenIdentity() + { + return this._broken; + } + + public bool IsCooledDown(XSkillCore skill) + { + return skill.CooledDown; + } + + public bool IsCooledDown(uint id) + { + return this.IsCooledDown(this.GetSkill(id)); + } + + public bool IsQTESkill(uint id) + { + XSkillCore skill = this.GetSkill(id); + return skill != null && skill.Soul.Logical.CanCastAt_QTE > 0; + } + + public float GetCD(uint id) + { + XSkillCore skill = this.GetSkill(id); + return (skill != null) ? skill.GetCoolDown() : 0f; + } + + public static float GetCD(XEntity entity, string name, uint skillLevel = 0u) + { + XSkillData data = XSingleton.singleton.GetData(XSingleton.singleton.StringCombine(entity.Present.SkillPrefix, name), ".txt"); + data.Prefix = entity.Present.SkillPrefix; + uint skillHash = XSingleton.singleton.XHash(data.Name); + bool flag = skillLevel == 0u; + if (flag) + { + skillLevel = ((entity.Attributes == null) ? 1u : entity.Attributes.SkillLevelInfo.GetSkillLevel(XSingleton.singleton.XHash(data.Name))); + bool flag2 = skillLevel == 0u; + if (flag2) + { + skillLevel = 1u; + } + } + float num = (data != null) ? (XSingleton.singleton.GetSkillCDStaticRatio(skillHash, skillLevel, entity.SkillCasterTypeID, XSingleton.singleton.IsPVPScene) * data.CoolDown) : 0f; + return entity.IsPlayer ? (num * XSingleton.singleton.GetSkillCDDynamicRatio(entity.Attributes, skillHash)) : num; + } + + public void CoolDown(uint id) + { + XSkillCore skill = this.GetSkill(id); + bool flag = skill != null; + if (flag) + { + skill.CoolDown(); + } + } + + public void ResetStaticCD(uint id) + { + XSkillCore skill = this.GetSkill(id); + bool flag = skill != null; + if (flag) + { + skill.ResetStaticCD(); + } + } + + public void AccelerateStaticCD(uint id, float delta) + { + XSkillCore skill = this.GetSkill(id); + bool flag = skill != null; + if (flag) + { + skill.AccelerateStaticCD(delta); + } + } + + public void Accelerate(uint id, float delta, bool ratio) + { + XSkillCore skill = this.GetSkill(id); + bool flag = skill != null; + if (flag) + { + skill.AccelerateCD(delta, ratio); + } + } + + public float GetCastRangeUpper(uint id) + { + XSkillCore skill = this.GetSkill(id); + return skill.CastRangeUpper; + } + + public float GetCastRangeLower(uint id) + { + XSkillCore skill = this.GetSkill(id); + return skill.CastRangeLower; + } + + public float GetCastScope(uint id) + { + XSkillCore skill = this.GetSkill(id); + return skill.CastScope; + } + + public float GetElapsedCD(uint id) + { + XSkillCore skill = this.GetSkill(id); + bool flag = skill == null; + float result; + if (flag) + { + result = 0f; + } + else + { + result = skill.GetElapsedCD(); + } + return result; + } + + public float GetMPCost(uint id) + { + float result = float.PositiveInfinity; + bool flag = this.GetSkill(id) != null; + if (flag) + { + XAttributes attributes = this._host.Attributes; + uint skillLevel = attributes.SkillLevelInfo.GetSkillLevel(id); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(id, skillLevel, this._host.SkillCasterTypeID); + bool flag2 = skillConfig != null; + if (flag2) + { + result = skillConfig.CostMP[0] + skillConfig.CostMP[1] * skillLevel; + } + } + return result; + } + + public void StatisticsPhysicalSkill() + { + this._physicals.Clear(); + XSkillCore xskillCore = this.GetPhysicalSkill(); + while (xskillCore != null) + { + this._physicals.Add(xskillCore.ID); + bool flag = xskillCore.Soul.Logical.Association && !string.IsNullOrEmpty(xskillCore.Soul.Logical.Association_Skill); + if (flag) + { + this._physicals.Add(XSingleton.singleton.XHash(xskillCore.Soul.Logical.Association_Skill)); + } + bool flag2 = xskillCore.Soul.Ja != null && xskillCore.Soul.Ja.Count > 0; + if (flag2) + { + uint num = XSingleton.singleton.XHash(xskillCore.Soul.Ja[0].Name); + bool flag3 = num > 0u; + if (flag3) + { + this._physicals.Add(num); + } + xskillCore = this.GetSkill(num); + } + else + { + xskillCore = null; + } + } + } + + public int GetQTE(uint id, out XSkillMgr.XQTEInfo[] qteList) + { + bool flag = XSkillMgr.QTEBuffer == null; + if (flag) + { + XSkillMgr.QTEBuffer = new XSkillMgr.XQTEInfo[XSkillMgr.MaxQTECount]; + } + qteList = XSkillMgr.QTEBuffer; + int num = 0; + int i = 0; + int count = this._core.Count; + while (i < count) + { + XSkillCore xskillCore = this._core[i] as XSkillCore; + bool flag2 = xskillCore != null && (1 << (int)id & xskillCore.Soul.Logical.CanCastAt_QTE) > 0; + if (flag2) + { + XSkillMgr.XQTEInfo xqteinfo = default(XSkillMgr.XQTEInfo); + xqteinfo.skill = xskillCore.ID; + xqteinfo.key = xskillCore.Soul.Logical.QTE_Key; + qteList[num++] = xqteinfo; + bool flag3 = num == 4; + if (flag3) + { + return num; + } + } + i++; + } + return num; + } + + private void SkillBuildIn(XSkillCore core, bool inorder) + { + bool preLoad = XSkillData.PreLoad; + if (preLoad) + { + XSkillData.PreLoadSkillRes(core.Soul, 1); + } + this._core.Add(core); + this._coreDic.Add(core.ID, core); + if (inorder) + { + bool flag = core.ID != this._physical; + if (flag) + { + this.SkillOrder.Add(core); + } + } + bool flag2 = core.Soul.TypeToken == 3; + if (flag2) + { + for (int i = 0; i < core.Soul.Combined.Count; i++) + { + XSkillCore xskillCore = XSingleton.singleton.Build(core.Soul.Prefix, core.Soul.Combined[i].Name, this._host); + bool flag3 = !this.ContainSkillCore(xskillCore.ID); + if (flag3) + { + bool preLoad2 = XSkillData.PreLoad; + if (preLoad2) + { + XSkillData.PreLoadSkillRes(xskillCore.Soul, 1); + } + this._core.Add(xskillCore); + this._coreDic.Add(xskillCore.ID, xskillCore); + } + } + } + bool flag4 = core.Soul.TypeToken < this._carriers.Count; + if (flag4) + { + bool flag5 = this._carriers[core.Soul.TypeToken] == null; + if (flag5) + { + this._carriers[core.Soul.TypeToken] = XSingleton.singleton.CreateSkill(this._host, core.Soul.TypeToken); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillMgr.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillMgr.cs.meta new file mode 100644 index 00000000..dd15b0ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0266b2121816ed049b83a1ea5699344c +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillPreViewMgr.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillPreViewMgr.cs new file mode 100644 index 00000000..770210d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillPreViewMgr.cs @@ -0,0 +1,100 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkillPreViewMgr : XSingleton + { + public Camera BlackHouseCamera; + + public GameObject BlackHouse; + + public void GetSkillBlackHouse(ref GameObject blackHouse, ref Camera blackHouseCamera) + { + bool flag = this.BlackHouse == null; + if (flag) + { + this.BlackHouse = (XSingleton.singleton.CreateFromPrefab("Common/SkillBlackHouse", true, false) as GameObject); + this.BlackHouseCamera = this.BlackHouse.transform.Find("BasePoint/Camera").GetComponent(); + this.BlackHouseCamera.enabled = false; + } + blackHouse = this.BlackHouse; + blackHouseCamera = this.BlackHouseCamera; + } + + public void ResetDummyPos(XDummy dummy) + { + bool flag = dummy == null; + if (!flag) + { + Transform transform = this.BlackHouse.transform.Find(string.Format("BasePoint", new object[0])); + bool flag2 = transform != null; + if (flag2) + { + bool flag3 = dummy.EngineObject == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Dummy is null!!!", null, null, null, null, null); + return; + } + dummy.EngineObject.Position = transform.position; + dummy.EngineObject.SetParentTrans(transform.transform); + dummy.EngineObject.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, Vector3.one, true); + } + bool flag4 = dummy.Buffs == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("Dummy Buffs is null!!!", null, null, null, null, null); + } + else + { + dummy.Buffs.ClearBuff(); + dummy.Buffs.ClearBuffFx(); + } + } + } + + public void ShowSkill(XDummy dummy, uint skillID, uint statisticsID = 0u) + { + this.ResetDummyPos(dummy); + bool flag = dummy.Audio != null; + if (flag) + { + dummy.Audio.Set3DPos(XSingleton.singleton.GameCamera.CameraTrans.position); + } + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, 0u, statisticsID); + string name = (skillConfig.PreviewScript == "") ? skillConfig.SkillScript : skillConfig.PreviewScript; + XAttackShowArgs @event = XEventPool.GetEvent(); + @event.name = name; + @event.Firer = dummy; + XSingleton.singleton.FireEvent(@event); + } + + public void SkillShowBegin(XDummy dummy, Camera camera) + { + bool flag = dummy == null; + if (!flag) + { + this.ResetDummyPos(dummy); + bool flag2 = dummy.Audio != null; + if (flag2) + { + dummy.Audio.Set3DPos(XSingleton.singleton.GameCamera.CameraTrans.position); + } + XAttackShowBeginArgs @event = XEventPool.GetEvent(); + @event.Firer = dummy; + @event.XCamera = camera.transform.gameObject; + XSingleton.singleton.FireEvent(@event); + } + } + + public void SkillShowEnd(XDummy dummy) + { + XAttackShowEndArgs @event = XEventPool.GetEvent(); + @event.ForceQuit = true; + @event.Firer = dummy; + XSingleton.singleton.FireEvent(@event); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillPreViewMgr.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillPreViewMgr.cs.meta new file mode 100644 index 00000000..65b33015 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillPreViewMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3084c89d83932d740b04117e56ce0872 +timeCreated: 1611403522 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillQTEEventArgs.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillQTEEventArgs.cs new file mode 100644 index 00000000..58f735b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillQTEEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XSkillQTEEventArgs : XEventArgs + { + public uint State = 0u; + + public bool On = false; + + public XSkillQTEEventArgs() + { + this._eDefine = XEventDefine.XEvent_QTE; + } + + public override void Recycle() + { + base.Recycle(); + this.State = 0u; + this.On = false; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillQTEEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillQTEEventArgs.cs.meta new file mode 100644 index 00000000..dd4d8234 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillQTEEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acb7dc4513050ee4ebf92a88cf97c652 +timeCreated: 1611404332 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeBehaviour.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeBehaviour.cs new file mode 100644 index 00000000..0b2bba3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeBehaviour.cs @@ -0,0 +1,161 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkillTreeBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public GameObject m_TransferFrame; + + public GameObject m_SkillTreeFrame; + + public IXUISprite m_ResetProBtn; + + public IXUISprite m_ResetSkillBtn; + + public IXUISprite m_SwitchSkillPageBtn; + + public IXUILabel m_SkillPageText; + + public IXUILabel m_UseSkillPoint; + + public IXUILabel m_UseAwakeSkillPoint; + + public IXUILabel m_LeftSkillPoint; + + public IXUILabel m_FreeResetSkillTip; + + public IXUIScrollView m_SkillTreeScrollView; + + public XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ArrowPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_LevelUpFx; + + public IXUITweenTool m_CatchFrameTween; + + public IXUITweenTool m_DetailFrameTween; + + public IXUIButton m_CatchBackBtn; + + public IXUIButton m_ChooseBtn; + + public IXUIButton m_LearnBtn; + + public IXUISprite m_SkillPlayBtn; + + public GameObject m_SkillLearnRedPoint; + + public GameObject m_NonPreView; + + public IXUITexture m_Snapshot; + + public IXUISprite[] m_SkillSlotList = new IXUISprite[XSkillTreeDocument.SkillSlotCount]; + + public IXUIScrollView m_SkillDetailScrollView; + + public Transform DetailSkillFrame; + + public IXUILabel m_SkillName_L; + + public IXUILabel m_SkillType_L; + + public IXUILabel m_SkillAttrText; + + public IXUILabel m_SkillCostText; + + public IXUILabel m_SkillCDText; + + public IXUILabel m_SkillDetail_L; + + public IXUILabel m_SkillCurrDesc; + + public IXUILabel m_SkillPreSkillPointTips; + + public IXUILabel m_SkillNextDesc; + + public IXUILabel m_SkillNextReq; + + public IXUILabel m_SuperIndureAttack; + + public IXUILabel m_SuperIndureDenfense; + + public IXUILabel m_SkillName_S; + + public IXUILabel m_SkillType_S; + + public IXUILabel m_SkillDetail_S; + + public IXUIScrollView m_SkillDetailScrollView_S; + + public IXUILabel m_ChooseTips; + + public Transform m_FxFirework; + + public XUIPool m_Tabs = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_TransferFrame = base.transform.Find("Bg/TransferFrame").gameObject; + this.m_SkillTreeFrame = base.transform.Find("Bg/SkillTreeFrame").gameObject; + this.m_FreeResetSkillTip = (this.m_SkillTreeFrame.transform.Find("Other/ResetTip").GetComponent("XUILabel") as IXUILabel); + this.m_UseSkillPoint = (this.m_SkillTreeFrame.transform.Find("Other/UsePoint").GetComponent("XUILabel") as IXUILabel); + this.m_UseAwakeSkillPoint = (this.m_SkillTreeFrame.transform.Find("Other/UseAwakePoint").GetComponent("XUILabel") as IXUILabel); + this.m_LeftSkillPoint = (this.m_SkillTreeFrame.transform.Find("Other/LeftPoint").GetComponent("XUILabel") as IXUILabel); + this.m_ResetProBtn = (this.m_SkillTreeFrame.transform.Find("Other/ResetProf").GetComponent("XUISprite") as IXUISprite); + this.m_ResetSkillBtn = (this.m_SkillTreeFrame.transform.Find("Other/ResetSkillPoint").GetComponent("XUISprite") as IXUISprite); + this.m_SwitchSkillPageBtn = (this.m_SkillTreeFrame.transform.Find("Other/SwitchSkillPage").GetComponent("XUISprite") as IXUISprite); + this.m_SkillPageText = (this.m_SkillTreeFrame.transform.Find("Other/SwitchSkillPage/Text").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Tabs/Tpl"); + this.m_Tabs.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + transform = this.m_SkillTreeFrame.transform.Find("SkillTree/Skill/SkillTpl"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 16u, false); + transform = this.m_SkillTreeFrame.transform.Find("SkillTree/Arrow/ArrowTpl"); + this.m_ArrowPool.SetupPool(transform.parent.gameObject, transform.gameObject, 16u, false); + this.m_SkillTreeScrollView = (this.m_SkillTreeFrame.transform.Find("SkillTree").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_LevelUpFx = this.m_SkillTreeFrame.transform.Find("SkillTree/effect").gameObject; + this.m_LevelUpFx.SetActive(false); + this.m_CatchFrameTween = (this.m_SkillTreeFrame.transform.Find("CatchWindow").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_DetailFrameTween = (this.m_SkillTreeFrame.transform.Find("DetailWindow").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_ChooseBtn = (this.m_SkillTreeFrame.transform.Find("DetailWindow/DetailSkillBg/CatchButton").GetComponent("XUIButton") as IXUIButton); + this.m_LearnBtn = (this.m_SkillTreeFrame.transform.Find("DetailWindow/DetailSkillBg/LearnButton").GetComponent("XUIButton") as IXUIButton); + this.m_CatchBackBtn = (this.m_SkillTreeFrame.transform.Find("CatchWindow/BackButton").GetComponent("XUIButton") as IXUIButton); + this.m_SkillPlayBtn = (this.m_SkillTreeFrame.transform.Find("DetailWindow/DetailSkillBg/Snapshot/Play").GetComponent("XUISprite") as IXUISprite); + this.m_SkillLearnRedPoint = this.m_LearnBtn.gameObject.transform.Find("RedPoint").gameObject; + this.m_NonPreView = this.m_SkillTreeFrame.transform.Find("DetailWindow/DetailSkillBg/NonPreView").gameObject; + this.m_Snapshot = (this.m_SkillTreeFrame.transform.Find("DetailWindow/DetailSkillBg/Snapshot").GetComponent("XUITexture") as IXUITexture); + for (int i = 0; i < XSkillTreeDocument.SkillSlotCount; i++) + { + this.m_SkillSlotList[i] = (this.m_SkillTreeFrame.transform.Find(string.Format("CatchWindow/BaseSkill/Skill{0}", i)).GetComponent("XUISprite") as IXUISprite); + this.m_SkillSlotList[i].ID = (ulong)((long)i); + } + this.DetailSkillFrame = this.m_SkillTreeFrame.transform.Find("DetailWindow/DetailSkillBg"); + this.m_SkillDetailScrollView = (this.DetailSkillFrame.Find("DetailSkill").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_SkillName_L = (this.DetailSkillFrame.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_SkillType_L = (this.DetailSkillFrame.Find("Name/Type").GetComponent("XUILabel") as IXUILabel); + this.m_SkillAttrText = (this.DetailSkillFrame.Find("Attr/AttrT").GetComponent("XUILabel") as IXUILabel); + this.m_SkillCostText = (this.DetailSkillFrame.Find("Attr/CostT").GetComponent("XUILabel") as IXUILabel); + this.m_SkillCDText = (this.DetailSkillFrame.Find("Attr/CDT").GetComponent("XUILabel") as IXUILabel); + this.m_SkillDetail_L = (this.DetailSkillFrame.Find("DetailSkill/Detail/SkillDetail").GetComponent("XUILabel") as IXUILabel); + this.m_SkillCurrDesc = (this.DetailSkillFrame.Find("DetailSkill/Current/CurDesc").GetComponent("XUILabel") as IXUILabel); + this.m_SkillPreSkillPointTips = (this.DetailSkillFrame.Find("DetailSkill/Current/UnLearn").GetComponent("XUILabel") as IXUILabel); + this.m_SkillNextDesc = (this.DetailSkillFrame.Find("DetailSkill/Next/NextDesc").GetComponent("XUILabel") as IXUILabel); + this.m_SkillNextReq = (this.DetailSkillFrame.Find("DetailSkill/Next/RequieLevel").GetComponent("XUILabel") as IXUILabel); + this.m_SuperIndureAttack = (this.DetailSkillFrame.Find("DetailSkill/Indure/Attack/T").GetComponent("XUILabel") as IXUILabel); + this.m_SuperIndureDenfense = (this.DetailSkillFrame.Find("DetailSkill/Indure/Defense/T").GetComponent("XUILabel") as IXUILabel); + this.m_SkillName_S = (this.m_SkillTreeFrame.transform.Find("CatchWindow/Name").GetComponent("XUILabel") as IXUILabel); + this.m_SkillType_S = (this.m_SkillTreeFrame.transform.Find("CatchWindow/Name/Type").GetComponent("XUILabel") as IXUILabel); + this.m_SkillDetailScrollView_S = (this.m_SkillTreeFrame.transform.Find("CatchWindow/DragBox/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_SkillDetail_S = (this.m_SkillTreeFrame.transform.Find("CatchWindow/DragBox/ScrollView/SkillDetail").GetComponent("XUILabel") as IXUILabel); + this.m_ChooseTips = (this.m_SkillTreeFrame.transform.Find("CatchWindow/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_FxFirework = base.transform.Find("Bg/FxFirework"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeBehaviour.cs.meta new file mode 100644 index 00000000..abbcbfc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23cca7004a4429c4e8e7cefd6523af59 +timeCreated: 1611403457 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeDocument.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeDocument.cs new file mode 100644 index 00000000..cf51d34f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeDocument.cs @@ -0,0 +1,1295 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkillTreeDocument : XDocComponent + { + public override uint ID + { + get + { + return XSkillTreeDocument.uuID; + } + } + + public XDummy Dummy { get; set; } + + public static int SkillSlotCount + { + get + { + return 11; + } + } + + public XPlayer Player { get; set; } + + public uint CurrentSkillID { get; set; } + + public int TotalSkillPoint { get; set; } + + public int TotalAwakeSkillPoint { get; set; } + + public bool RedPoint { get; set; } + + public bool IsAwakeSkillSlotOpen + { + get + { + return 1 == XSingleton.singleton.GetInt("AwakeSkillSlotOpen"); + } + } + + public bool IsSelfAwaked + { + get + { + return XSingleton.singleton.XPlayerData.TypeID / 1000u > 0u; + } + } + + public static int AwakeSkillSlot + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSkillSlot.Awake_Attack); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SkillTreeDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static SkillTreeConfigTable _skillTreeConfig = new SkillTreeConfigTable(); + + public Camera BlackHouseCamera; + + public GameObject BlackHouse; + + public readonly uint UNSELECT = 0u; + + public Dictionary NewSkillDic = new Dictionary(); + + private List _slot_unlock_level = new List(); + + public List TransferLimit = new List(); + + public readonly int TRANSFERNUM = 4; + + private RenderTexture skillPreView; + + public List TurnProTaskIDList = new List(); + + public List NpcID = new List(); + + public int SkillPageOpenLevel; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.NewSkillDic.Clear(); + this.GetSlotUnLockLevel(); + this.GetSkillInfo(); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XSkillTreeDocument.AsyncLoader.AddTask("Table/SkillTreeConfig", XSkillTreeDocument._skillTreeConfig, false); + XSkillTreeDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AttackShowEnd, new XComponent.XEventHandler(this.SkillPlayFinished)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.SkillPointChanged)); + base.RegisterEvent(XEventDefine.XEvent_TaskStateChange, new XComponent.XEventHandler(this.IsTurnProTaskFinish)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterScene(); + this.Player = XSingleton.singleton.Player; + uint sceneID = XSingleton.singleton.SceneID; + this.Dummy = null; + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.CalSkillPointTotalCount(); + this.RefreshRedPoint(); + } + } + + private void GetSlotUnLockLevel() + { + string[] array = XSingleton.singleton.GetValue("SkillSlotUnlockLevel").Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + this._slot_unlock_level.Add(uint.Parse(array[i])); + } + } + + private void GetSkillInfo() + { + this.TransferLimit.Add(0u); + for (int i = 1; i < this.TRANSFERNUM; i++) + { + this.TransferLimit.Add((uint)XSingleton.singleton.GetInt(string.Format("Promote{0}", i))); + } + this.TurnProTaskIDList = XSingleton.singleton.GetIntList("ChangeProTaskIds"); + this.NpcID = XSingleton.singleton.GetIntList("ChangeProNpc"); + this.SkillPageOpenLevel = XSingleton.singleton.GetInt("SkillPageNewOpen"); + } + + public uint GetSkillSlotUnLockLevel(int slotid) + { + bool flag = slotid >= this._slot_unlock_level.Count; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = this._slot_unlock_level[slotid]; + } + return result; + } + + public SkillTypeEnum GetSkillSlotType(int slotid) + { + bool flag = (2 <= slotid && 6 >= slotid) || 10 == slotid; + SkillTypeEnum result; + if (flag) + { + result = SkillTypeEnum.Skill_Normal; + } + else + { + bool flag2 = 9 == slotid; + if (flag2) + { + result = SkillTypeEnum.Skill_Big; + } + else + { + bool flag3 = 7 <= slotid && 8 >= slotid; + if (flag3) + { + result = SkillTypeEnum.Skill_Buff; + } + else + { + result = SkillTypeEnum.Skill_None; + } + } + } + return result; + } + + public void SetNewSkillDic() + { + int num = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + int num2 = num % 10; + int num3 = (num > 10) ? (num % 100) : 0; + int num4 = (num > 100) ? (num % 1000) : 0; + bool flag = num2 > 0; + if (flag) + { + List profSkillID = XSingleton.singleton.GetProfSkillID(num2); + for (int i = 0; i < profSkillID.Count; i++) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID[i]); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(profSkillID[i], skillOriginalLevel); + bool flag2 = this.CheckRedPoint(profSkillID[i]); + if (flag2) + { + bool flag3 = !this.NewSkillDic.ContainsKey(profSkillID[i]); + if (flag3) + { + this.NewSkillDic.Add(profSkillID[i], false); + } + } + bool flag4 = this.CheckNew(profSkillID[i]); + if (flag4) + { + bool flag5 = !this.NewSkillDic.ContainsKey(profSkillID[i]); + if (flag5) + { + this.NewSkillDic.Add(profSkillID[i], false); + } + } + } + } + bool flag6 = num3 > 0; + if (flag6) + { + List profSkillID2 = XSingleton.singleton.GetProfSkillID(num3); + for (int j = 0; j < profSkillID2.Count; j++) + { + uint skillOriginalLevel2 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID2[j]); + SkillList.RowData skillConfig2 = XSingleton.singleton.GetSkillConfig(profSkillID2[j], skillOriginalLevel2); + bool flag7 = this.CheckRedPoint(profSkillID2[j]); + if (flag7) + { + bool flag8 = !this.NewSkillDic.ContainsKey(profSkillID2[j]); + if (flag8) + { + this.NewSkillDic.Add(profSkillID2[j], false); + } + } + bool flag9 = this.CheckNew(profSkillID2[j]); + if (flag9) + { + bool flag10 = !this.NewSkillDic.ContainsKey(profSkillID2[j]); + if (flag10) + { + this.NewSkillDic.Add(profSkillID2[j], false); + } + } + } + } + bool flag11 = num4 > 0; + if (flag11) + { + List profSkillID3 = XSingleton.singleton.GetProfSkillID(num4); + for (int k = 0; k < profSkillID3.Count; k++) + { + uint skillOriginalLevel3 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID3[k]); + SkillList.RowData skillConfig3 = XSingleton.singleton.GetSkillConfig(profSkillID3[k], skillOriginalLevel3); + bool flag12 = this.CheckRedPoint(profSkillID3[k]); + if (flag12) + { + bool flag13 = !this.NewSkillDic.ContainsKey(profSkillID3[k]); + if (flag13) + { + this.NewSkillDic.Add(profSkillID3[k], false); + } + } + bool flag14 = this.CheckNew(profSkillID3[k]); + if (flag14) + { + bool flag15 = !this.NewSkillDic.ContainsKey(profSkillID3[k]); + if (flag15) + { + this.NewSkillDic.Add(profSkillID3[k], false); + } + } + } + } + } + + public bool CanSkillLevelUp(uint skillID, uint skillLevel, int addLevel = 0) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, 0u); + bool flag = skillLevel != 0u && XSingleton.singleton.GetPreSkill(skillID, 0u) > 0u; + bool result; + if (flag) + { + result = false; + } + else + { + SkillLevelupRequest levelupRequest = XSingleton.singleton.GetLevelupRequest(skillID, skillLevel + (uint)addLevel); + bool flag2 = (ulong)skillLevel >= (ulong)((long)XSingleton.singleton.GetSkillMaxLevel(skillID, 0u)); + if (flag2) + { + result = false; + } + else + { + bool flag3 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)levelupRequest.Level); + result = !flag3; + } + } + return result; + } + + public bool SkillIsEquip(uint skillID) + { + uint num = skillID; + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, 0u); + bool flag = skillConfig.ExSkillScript != "" && XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID) > 0u; + if (flag) + { + num = XSingleton.singleton.GetSkillID(skillConfig.ExSkillScript, 0u); + } + for (int i = 0; i < XSingleton.singleton.XPlayerData.skillSlot.Length; i++) + { + bool flag2 = XSingleton.singleton.XPlayerData.skillSlot[i] == skillID || XSingleton.singleton.XPlayerData.skillSlot[i] == num; + if (flag2) + { + return true; + } + } + return false; + } + + public void SendResetSkill() + { + RpcC2G_ResetSkill rpcC2G_ResetSkill = new RpcC2G_ResetSkill(); + rpcC2G_ResetSkill.oArg.resetType = ResetType.RESET_SKILL; + XSingleton.singleton.Send(rpcC2G_ResetSkill); + } + + public void SendSkillLevelup() + { + RpcC2G_SkillLevelup rpcC2G_SkillLevelup = new RpcC2G_SkillLevelup(); + rpcC2G_SkillLevelup.oArg.skillHash = this.CurrentSkillID; + XSingleton.singleton.Send(rpcC2G_SkillLevelup); + } + + public void SendResetProf() + { + RpcC2G_ResetSkill rpcC2G_ResetSkill = new RpcC2G_ResetSkill(); + rpcC2G_ResetSkill.oArg.resetType = ResetType.RESET_PROFESSION; + XSingleton.singleton.Send(rpcC2G_ResetSkill); + } + + public void SendBindSkill(uint skillID, uint slot) + { + RpcC2G_BindSkill rpcC2G_BindSkill = new RpcC2G_BindSkill(); + rpcC2G_BindSkill.oArg.skillhash = skillID; + rpcC2G_BindSkill.oArg.slot = (int)slot; + XSingleton.singleton.Send(rpcC2G_BindSkill); + } + + public void QuerySwitchSkillPage() + { + RpcC2G_ChangeSkillSet rpcC2G_ChangeSkillSet = new RpcC2G_ChangeSkillSet(); + rpcC2G_ChangeSkillSet.oArg.index = 1u - XSingleton.singleton.XPlayerData.SkillPageIndex; + XSingleton.singleton.Send(rpcC2G_ChangeSkillSet); + } + + public void OnSwitchSkillPageSuccess(uint index, SkillRecord data) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SwitchSkillPageSuccess"), "fece00"); + XSingleton.singleton.XPlayerData.SkillPageIndex = index; + XSingleton.singleton.XPlayerData.skillSlot = ((index == 0u) ? data.SkillSlot.ToArray() : data.SkillSlotTwo.ToArray()); + XSingleton.singleton.XPlayerData.SkillLevelInfo.Init((index == 0u) ? data.Skills : data.SkillsTwo); + this.CalSkillPointTotalCount(); + this.SkillRefresh(false, true); + } + + public bool SkillPlayFinished(XEventArgs args) + { + bool flag = !DlgBase.singleton.IsVisible(); + bool result; + if (flag) + { + result = false; + } + else + { + DlgBase.singleton.uiBehaviour.m_SkillPlayBtn.SetVisible(true); + bool flag2 = DlgBase.singleton._skillDlgPromoteHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton._skillDlgPromoteHandler.m_PlayBtn.SetVisible(true); + } + result = true; + } + return result; + } + + public bool SkillPointChanged(XEventArgs args) + { + bool flag = XSingleton.singleton.XPlayerData == null; + bool result; + if (flag) + { + result = false; + } + else + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + ItemEnum itemID = (ItemEnum)xvirtualItemChangedEventArgs.itemID; + bool flag2 = XSingleton.singleton.XPlayerData.SkillPageIndex == 0u; + if (flag2) + { + bool flag3 = itemID != ItemEnum.SKILL_POINT && itemID != ItemEnum.AWAKE_SKILL_POINT; + if (flag3) + { + return true; + } + } + else + { + bool flag4 = itemID != ItemEnum.SKILL_POINT_TWO && itemID != ItemEnum.AWAKE_SKILL_POINT_TWO; + if (flag4) + { + return true; + } + } + this.RefreshRedPoint(); + this.CalSkillPointTotalCount(); + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.CalAllTabRedPoint(); + } + result = true; + } + return result; + } + + public bool IsTurnProTaskFinish(XEventArgs args) + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + bool result; + if (flag) + { + result = false; + } + else + { + XTaskStatusChangeArgs xtaskStatusChangeArgs = args as XTaskStatusChangeArgs; + bool flag2 = xtaskStatusChangeArgs.status != TaskStatus.TaskStatus_Over; + if (flag2) + { + result = false; + } + else + { + for (int i = 0; i < this.TurnProTaskIDList.Count; i++) + { + bool flag3 = xtaskStatusChangeArgs.id == (uint)this.TurnProTaskIDList[i]; + if (flag3) + { + uint num = XSingleton.singleton.XPlayerData.TypeID; + for (int j = 0; j < 5; j++) + { + num /= 10u; + bool flag4 = num == 0u; + if (flag4) + { + DlgBase.singleton.LastSelectPromote = j + 1; + bool flag5 = j + 1 == XSkillTreeView.AwakeIndex; + if (flag5) + { + this.AwakeTaskFinish(); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + return true; + } + } + } + } + result = false; + } + } + return result; + } + + private void AwakeTaskFinish() + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/Roles/Lzg_Ty/Ty_juexing", XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, false, 3f, true); + uint num = 1u; + for (int i = 0; i < XSkillTreeView.AwakeIndex; i++) + { + num *= 10u; + } + uint key = num + XSingleton.singleton.XPlayerData.TypeID; + ProfessionTable.RowData byProfID = XSingleton.singleton.RoleInfo.GetByProfID(key); + bool flag = byProfID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("ProfessionTable config not found: profID = ", key.ToString(), null, null, null, null); + } + else + { + uint awakeHair = byProfID.AwakeHair; + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + bool flag2 = XFashionDocument.IsTargetPart((int)awakeHair, FashionPosition.Hair); + if (flag2) + { + specificDocument.CheckMutuexHair((int)awakeHair); + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.FashionDisplayWear); + rpcC2G_UseItem.oArg.itemID = awakeHair; + XSingleton.singleton.Send(rpcC2G_UseItem); + } + } + } + + public static bool IsAvengerTaskDone(int prof) + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + uint avengerTaskID = XSkillTreeDocument.GetAvengerTaskID(prof); + return specificDocument.TaskRecord.IsTaskFinished(avengerTaskID); + } + + private static uint GetAvengerTaskID(int prof) + { + List intList = XSingleton.singleton.GetIntList("AvengerProTaskIds"); + bool flag = intList != null && intList.Count > 0; + uint result; + if (flag) + { + int num = 0; + bool flag2 = prof / 100 > 0; + if (flag2) + { + num = 1; + } + bool flag3 = prof / 1000 > 0; + if (flag3) + { + num = 2; + } + uint num2 = (uint)((num < intList.Count) ? intList[num] : 0); + result = num2; + } + else + { + result = 0u; + } + return result; + } + + private bool OnPlayerLevelChange(XEventArgs args) + { + this.RefreshRedPoint(); + return true; + } + + public void SkillRefresh(bool resetTabs = false, bool resetPosition = true) + { + this.RefreshRedPoint(); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool isPromoteHandlerShow = DlgBase.singleton.IsPromoteHandlerShow; + if (isPromoteHandlerShow) + { + DlgBase.singleton._skillDlgPromoteHandler.SetVisible(false); + DlgBase.singleton.IsPromoteHandlerShow = false; + } + if (resetTabs) + { + DlgBase.singleton.SetupTabs(); + } + DlgBase.singleton.Refresh(DlgBase.singleton.LastSelectPromote, resetTabs, resetPosition); + DlgBase.singleton.CalAllTabRedPoint(); + } + } + + public void OnSkillLevelUp(uint skillID) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, 0u); + DlgBase.singleton.OnSkillLevelUp((int)skillConfig.XPostion, (int)skillConfig.YPostion); + bool flag2 = skillOriginalLevel == 1u && skillConfig.SkillType == 2; + if (flag2) + { + int num = XFastEnumIntEqualityComparer.ToInt(XSkillSlot.Ultra_Attack); + bool flag3 = XSingleton.singleton.XPlayerData.skillSlot[num] == 0u; + if (flag3) + { + this.SendBindSkill(this.CurrentSkillID, (uint)num); + } + } + } + } + + public int CheckPreSkillLevel(uint skillID) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, skillOriginalLevel); + uint skillID2 = XSingleton.singleton.GetSkillID(skillConfig.PreSkill, 0u); + uint skillOriginalLevel2 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID2); + bool flag = skillID2 == 0u; + int result; + if (flag) + { + result = -1; + } + else + { + result = (int)skillOriginalLevel2; + } + return result; + } + + public bool CheckFx(uint skillID) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, skillOriginalLevel); + uint skillID2 = XSingleton.singleton.GetSkillID(skillConfig.PreSkill, 0u); + uint skillOriginalLevel2 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID2); + bool flag = skillOriginalLevel >= (uint)skillConfig.SkillLevel; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !this.CanSkillLevelUp(skillID, skillOriginalLevel, 0); + if (flag2) + { + result = false; + } + else + { + bool isAwake = skillConfig.IsAwake; + int num = (int)skillConfig.LevelupCost[(int)Math.Min((long)((ulong)skillOriginalLevel), (long)(skillConfig.LevelupCost.Length - 1))]; + bool flag3 = num > (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake); + if (flag3) + { + result = false; + } + else + { + bool flag4 = skillID2 != 0u && skillOriginalLevel2 == 0u; + if (flag4) + { + result = false; + } + else + { + int num2 = (isAwake ? this.TotalAwakeSkillPoint : this.TotalSkillPoint) - (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake); + bool flag5 = num2 < (int)skillConfig.PreSkillPoint; + result = !flag5; + } + } + } + } + return result; + } + + public bool CheckNew(uint skillID) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, skillOriginalLevel); + uint skillID2 = XSingleton.singleton.GetSkillID(skillConfig.PreSkill, 0u); + uint skillOriginalLevel2 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID2); + bool flag = skillOriginalLevel > 0u; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.NewSkillDic.ContainsKey(skillID); + if (flag2) + { + result = this.NewSkillDic[skillID]; + } + else + { + bool flag3 = !this.CanSkillLevelUp(skillID, skillOriginalLevel, 0); + if (flag3) + { + result = false; + } + else + { + bool flag4 = skillID2 != 0u && skillOriginalLevel2 == 0u; + if (flag4) + { + result = false; + } + else + { + bool isAwake = skillConfig.IsAwake; + int num = (isAwake ? this.TotalAwakeSkillPoint : this.TotalSkillPoint) - (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake); + bool flag5 = num < (int)skillConfig.PreSkillPoint; + result = !flag5; + } + } + } + } + return result; + } + + public bool CheckLevelUpButton() + { + return this.CheckLevelUpButton(this.CurrentSkillID); + } + + public bool CheckLevelUpButton(uint skillID) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, skillOriginalLevel); + uint skillID2 = XSingleton.singleton.GetSkillID(skillConfig.PreSkill, 0u); + uint skillOriginalLevel2 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID2); + bool flag = !this.CanSkillLevelUp(skillID, skillOriginalLevel, 0); + bool result; + if (flag) + { + result = false; + } + else + { + bool isAwake = skillConfig.IsAwake; + int num = (int)skillConfig.LevelupCost[(int)Math.Min((long)((ulong)skillOriginalLevel), (long)(skillConfig.LevelupCost.Length - 1))]; + bool flag2 = num > (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake); + if (flag2) + { + result = false; + } + else + { + bool flag3 = skillID2 != 0u && skillOriginalLevel2 == 0u; + if (flag3) + { + result = false; + } + else + { + int num2 = (isAwake ? this.TotalAwakeSkillPoint : this.TotalSkillPoint) - (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake); + bool flag4 = num2 < (int)skillConfig.PreSkillPoint; + result = !flag4; + } + } + } + return result; + } + + public bool CheckRedPoint(uint skillID) + { + SkillTreeConfigTable.RowData byLevel = XSkillTreeDocument._skillTreeConfig.GetByLevel(XSingleton.singleton.XPlayerData.Level); + bool flag = byLevel == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find skill tree show redpoint num level config from SkillTreeConfigTable, level = ", XSingleton.singleton.XPlayerData.Level.ToString(), null, null, null, null); + result = false; + } + else + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, skillOriginalLevel); + bool isAwake = skillConfig.IsAwake; + bool flag2 = XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake) < (ulong)byLevel.RedPointShowNum; + if (flag2) + { + result = false; + } + else + { + uint skillID2 = XSingleton.singleton.GetSkillID(skillConfig.PreSkill, 0u); + uint skillOriginalLevel2 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID2); + bool flag3 = skillOriginalLevel >= (uint)skillConfig.SkillLevel; + if (flag3) + { + result = false; + } + else + { + SkillTypeEnum skillType = (SkillTypeEnum)skillConfig.SkillType; + bool flag4 = !this.IsExSkill(skillConfig); + if (flag4) + { + bool flag5 = skillOriginalLevel != 0u && (skillType == SkillTypeEnum.Skill_Normal || skillType == SkillTypeEnum.Skill_Big || skillType == SkillTypeEnum.Skill_Buff) && !this.SkillIsEquip(skillID); + if (flag5) + { + return false; + } + } + bool flag6 = !this.CanSkillLevelUp(skillID, skillOriginalLevel, 0); + if (flag6) + { + result = false; + } + else + { + int num = (int)skillConfig.LevelupCost[(int)Math.Min((long)((ulong)skillOriginalLevel), (long)(skillConfig.LevelupCost.Length - 1))]; + bool flag7 = num > (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake); + if (flag7) + { + result = false; + } + else + { + bool flag8 = skillID2 != 0u && skillOriginalLevel2 == 0u; + if (flag8) + { + result = false; + } + else + { + int num2 = (isAwake ? this.TotalAwakeSkillPoint : this.TotalSkillPoint) - (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake); + bool flag9 = num2 < (int)skillConfig.PreSkillPoint; + result = !flag9; + } + } + } + } + } + } + return result; + } + + public void RefreshRedPoint() + { + int num = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + int num2 = num % 10; + int num3 = (num > 10) ? (num % 100) : 0; + int num4 = (num > 100) ? (num % 1000) : 0; + int num5 = (num > 1000) ? (num % 10000) : 0; + this.RedPoint = false; + bool flag = num2 > 0; + if (flag) + { + List profSkillID = XSingleton.singleton.GetProfSkillID(num2); + for (int i = 0; i < profSkillID.Count; i++) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID[i]); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(profSkillID[i], skillOriginalLevel); + bool flag2 = this.CheckRedPoint(profSkillID[i]); + if (flag2) + { + this.RedPoint = true; + break; + } + } + } + bool flag3 = num3 > 0 && !this.RedPoint; + if (flag3) + { + List profSkillID2 = XSingleton.singleton.GetProfSkillID(num3); + for (int j = 0; j < profSkillID2.Count; j++) + { + uint skillOriginalLevel2 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID2[j]); + SkillList.RowData skillConfig2 = XSingleton.singleton.GetSkillConfig(profSkillID2[j], skillOriginalLevel2); + bool flag4 = this.CheckRedPoint(profSkillID2[j]); + if (flag4) + { + this.RedPoint = true; + break; + } + } + } + bool flag5 = num4 > 0 && !this.RedPoint; + if (flag5) + { + List profSkillID3 = XSingleton.singleton.GetProfSkillID(num4); + for (int k = 0; k < profSkillID3.Count; k++) + { + uint skillOriginalLevel3 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID3[k]); + SkillList.RowData skillConfig3 = XSingleton.singleton.GetSkillConfig(profSkillID3[k], skillOriginalLevel3); + bool flag6 = this.CheckRedPoint(profSkillID3[k]); + if (flag6) + { + this.RedPoint = true; + break; + } + } + } + bool flag7 = num5 > 0 && !this.RedPoint; + if (flag7) + { + List profSkillID4 = XSingleton.singleton.GetProfSkillID(num5); + for (int l = 0; l < profSkillID4.Count; l++) + { + uint skillOriginalLevel4 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID4[l]); + SkillList.RowData skillConfig4 = XSingleton.singleton.GetSkillConfig(profSkillID4[l], skillOriginalLevel4); + bool flag8 = this.CheckRedPoint(profSkillID4[l]); + if (flag8) + { + this.RedPoint = true; + break; + } + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Skill, true); + } + + public void CalSkillPointTotalCount() + { + int num = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + int num2 = num % 10; + int num3 = (num > 10) ? (num % 100) : 0; + int num4 = (num > 100) ? (num % 1000) : 0; + int num5 = (num > 1000) ? (num % 10000) : 0; + this.TotalSkillPoint = (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(false); + this.TotalAwakeSkillPoint = (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(true); + bool flag = num2 > 0; + if (flag) + { + List profSkillID = XSingleton.singleton.GetProfSkillID(num2); + for (int i = 0; i < profSkillID.Count; i++) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID[i]); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(profSkillID[i], skillOriginalLevel); + int num6 = 0; + while ((long)num6 < (long)((ulong)skillOriginalLevel)) + { + this.TotalSkillPoint += (int)skillConfig.LevelupCost[Math.Min(num6, skillConfig.LevelupCost.Length - 1)]; + num6++; + } + } + } + bool flag2 = num3 > 0; + if (flag2) + { + List profSkillID2 = XSingleton.singleton.GetProfSkillID(num3); + for (int j = 0; j < profSkillID2.Count; j++) + { + uint skillOriginalLevel2 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID2[j]); + SkillList.RowData skillConfig2 = XSingleton.singleton.GetSkillConfig(profSkillID2[j], skillOriginalLevel2); + int num7 = 0; + while ((long)num7 < (long)((ulong)skillOriginalLevel2)) + { + this.TotalSkillPoint += (int)skillConfig2.LevelupCost[Math.Min(num7, skillConfig2.LevelupCost.Length - 1)]; + num7++; + } + } + } + bool flag3 = num4 > 0; + if (flag3) + { + List profSkillID3 = XSingleton.singleton.GetProfSkillID(num4); + for (int k = 0; k < profSkillID3.Count; k++) + { + uint skillOriginalLevel3 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID3[k]); + SkillList.RowData skillConfig3 = XSingleton.singleton.GetSkillConfig(profSkillID3[k], skillOriginalLevel3); + int num8 = 0; + while ((long)num8 < (long)((ulong)skillOriginalLevel3)) + { + this.TotalSkillPoint += (int)skillConfig3.LevelupCost[Math.Min(num8, skillConfig3.LevelupCost.Length - 1)]; + num8++; + } + } + } + bool flag4 = num5 > 0; + if (flag4) + { + List profSkillID4 = XSingleton.singleton.GetProfSkillID(num5); + for (int l = 0; l < profSkillID4.Count; l++) + { + uint skillOriginalLevel4 = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID4[l]); + SkillList.RowData skillConfig4 = XSingleton.singleton.GetSkillConfig(profSkillID4[l], skillOriginalLevel4); + int num9 = 0; + while ((long)num9 < (long)((ulong)skillOriginalLevel4)) + { + bool isAwake = skillConfig4.IsAwake; + if (isAwake) + { + this.TotalAwakeSkillPoint += (int)skillConfig4.LevelupCost[Math.Min(num9, skillConfig4.LevelupCost.Length - 1)]; + } + else + { + this.TotalSkillPoint += (int)skillConfig4.LevelupCost[Math.Min(num9, skillConfig4.LevelupCost.Length - 1)]; + } + num9++; + } + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.SkillRefresh(false, true); + } + + public void CreateSkillBlackHouse() + { + bool flag = this.BlackHouse == null; + if (flag) + { + XSingleton.singleton.GetSkillBlackHouse(ref this.BlackHouse, ref this.BlackHouseCamera); + this.BlackHouseCamera.enabled = false; + } + bool flag2 = this.Dummy == null || this.Dummy.Deprecated; + if (flag2) + { + this.CreateDummy(); + } + } + + private void CreateDummy() + { + XOutlookData outlook = XSingleton.singleton.XPlayerData.Outlook; + this.Dummy = XSingleton.singleton.CreateDummy(XSingleton.singleton.XPlayerData.PresentID, XSingleton.singleton.XPlayerData.TypeID, outlook, true, true, true); + bool flag = this.Dummy == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Dummy Creat Fail.", null, null, null, null, null); + } + else + { + this.Dummy.OverrideAnimClip("Idle", XSingleton.singleton.Player.Present.PresentLib.AttackIdle, true, false); + XSingleton.singleton.ResetDummyPos(this.Dummy); + } + } + + public void DelDummy() + { + bool flag = this.Dummy != null; + if (flag) + { + XSingleton.singleton.SkillShowEnd(this.Dummy); + XSingleton.singleton.DestroyEntity(this.Dummy); + } + } + + public void SetSkillPreviewTexture(RenderTexture rt) + { + this.skillPreView = rt; + bool flag = this.BlackHouseCamera != null; + if (flag) + { + this.BlackHouseCamera.targetTexture = rt; + } + } + + public void CreateAndPlayFxFxFirework() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.CreateAndPlayFxFxFirework(); + } + } + + public bool IsExSkill(SkillList.RowData data) + { + return XSingleton.singleton.GetPreSkill(XSingleton.singleton.XHash(data.SkillScript), 0u) > 0u; + } + + public bool isTutorialNeed(int promote, int index) + { + int[] array = new int[] + { + 1, + 10, + 100, + 1000 + }; + int profID = (int)(XSingleton.singleton.XPlayerData.TypeID % (uint)array[promote + 1]); + List profSkillID = XSingleton.singleton.GetProfSkillID(profID); + List list = new List(); + for (int i = 0; i < profSkillID.Count; i++) + { + SkillTreeSortItem skillTreeSortItem = new SkillTreeSortItem(); + skillTreeSortItem.skillID = profSkillID[i]; + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(profSkillID[i], 0u); + skillTreeSortItem.x = (int)skillConfig.XPostion; + skillTreeSortItem.y = (int)skillConfig.YPostion; + list.Add(skillTreeSortItem); + } + list.Sort(new Comparison(this.Compare)); + return XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(list[index - 1].skillID) == 0u; + } + + private int Compare(SkillTreeSortItem x, SkillTreeSortItem y) + { + bool flag = x.skillID == y.skillID; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = x.y != y.y; + if (flag2) + { + result = y.y - x.y; + } + else + { + result = x.x - y.x; + } + } + return result; + } + + public static string GetSkillAttrStr(int element) + { + string @string; + switch (element) + { + case 0: + @string = XStringDefineProxy.GetString("Void"); + break; + case 1: + @string = XStringDefineProxy.GetString("Fire"); + break; + case 2: + @string = XStringDefineProxy.GetString("Water"); + break; + case 3: + @string = XStringDefineProxy.GetString("Light"); + break; + case 4: + @string = XStringDefineProxy.GetString("Dark"); + break; + default: + @string = XStringDefineProxy.GetString("Void"); + break; + } + return @string; + } + + public bool IsEquipThisSkill(List skillNames) + { + for (int i = 0; i < skillNames.Count; i++) + { + bool flag = skillNames[i] == string.Empty; + if (!flag) + { + uint skillID = XSingleton.singleton.GetSkillID(skillNames[i], 0u); + bool flag2 = skillID > 0u; + if (flag2) + { + bool flag3 = this.IsEquipThisSkill(skillID); + if (flag3) + { + return true; + } + } + } + } + return false; + } + + public void ShowEmblemTips(List hashList) + { + bool flag = hashList.Count == 0; + if (!flag) + { + List skillRow = new List(); + XEmblemDocument specificDocument = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + for (int i = 0; i < hashList.Count; i++) + { + uint num = XSingleton.singleton.XPlayerData.skillSlot[hashList[i]]; + bool flag2 = num > 0u; + if (flag2) + { + bool flag3 = specificDocument.IsEquipThisSkillEmblem(num, ref skillRow); + bool flag4 = flag3; + if (flag4) + { + this.ShowTips(skillRow, false); + } + } + } + } + } + + public void ShowEmblemTips(ulong skillHash, int slot) + { + bool flag = skillHash == 0UL; + if (!flag) + { + uint num = XSingleton.singleton.XPlayerData.skillSlot[slot]; + bool flag2 = (ulong)num == skillHash; + if (!flag2) + { + List skillRow = new List(); + XEmblemDocument specificDocument = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + bool flag3 = this.IsEquipThisSkill((uint)skillHash); + bool flag4 = num == 0u && skillHash > 0UL; + if (flag4) + { + bool flag5 = !flag3; + if (flag5) + { + bool flag6 = specificDocument.IsEquipThisSkillEmblem((uint)skillHash, ref skillRow); + bool flag7 = flag6; + if (flag7) + { + this.ShowTips(skillRow, true); + } + } + } + else + { + bool flag8 = !flag3; + if (flag8) + { + bool flag6 = specificDocument.IsEquipThisSkillEmblem((uint)skillHash, ref skillRow); + bool flag9 = flag6; + if (flag9) + { + this.ShowTips(skillRow, true); + } + flag6 = specificDocument.IsEquipThisSkillEmblem(num, ref skillRow); + bool flag10 = flag6; + if (flag10) + { + this.ShowTips(skillRow, false); + } + } + } + } + } + } + + public void ShowTips(List skillRow, bool isUp) + { + bool flag = skillRow.Count == 0; + if (!flag) + { + for (int i = 0; i < skillRow.Count; i++) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)skillRow[i].EmblemID); + bool flag2 = itemConf == null; + if (flag2) + { + break; + } + if (isUp) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("Active_Emblem"), itemConf.ItemName[0], skillRow[i].SkillPPT), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("Deactive_Emblem"), itemConf.ItemName[0], skillRow[i].SkillPPT), "fece00"); + } + } + } + } + + private bool IsEquipThisSkill(uint skillHash) + { + bool flag = this.IsPassiveSkill(skillHash); + bool flag2 = !flag; + bool result; + if (flag2) + { + for (int i = 0; i < XSingleton.singleton.XPlayerData.skillSlot.Length; i++) + { + uint num = XSingleton.singleton.XPlayerData.skillSlot[i]; + bool flag3 = num > 0u && skillHash == num; + if (flag3) + { + return true; + } + } + result = false; + } + else + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillHash); + bool flag4 = skillOriginalLevel > 0u; + result = flag4; + } + return result; + } + + public bool IsPassiveSkill(uint skillHash) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillHash, 0u); + return skillConfig != null && skillConfig.SkillType == 5; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeDocument.cs.meta new file mode 100644 index 00000000..b701e5ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 172d0cd8e5557514f9887e765a841929 +timeCreated: 1611403292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeView.cs b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeView.cs new file mode 100644 index 00000000..d614f958 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeView.cs @@ -0,0 +1,1063 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.GameSystem; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkillTreeView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/SkillTree"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public SkillDlgPromoteHandler _skillDlgPromoteHandler; + + private GameObject _LastSelect = null; + + private GameObject _CurrentSkillSprite = null; + + private List _TabRedPointList = new List(); + + private bool _SwitchFrameState = true; + + public bool IsPromoteHandlerShow = false; + + public int LastSelectPromote; + + private XSkillTreeDocument _doc = null; + + private List _icbList = new List(); + + public RenderTexture skillPreView; + + private float _skillPageSwitchSignTime = 0f; + + private XFx _FxFirework; + + private int[] MI = new int[] + { + 1, + 10, + 100, + 1000, + 10000 + }; + + public static readonly int AwakeIndex = 3; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + this._doc.CurrentSkillID = this._doc.UNSELECT; + this._SwitchFrameState = true; + this.SetupTabs(); + base.uiBehaviour.m_FreeResetSkillTip.SetText(string.Format(XStringDefineProxy.GetString("SKILL_RESETFREE_TIPS"), XSingleton.singleton.GetInt("FreeResetSkillLevel"))); + this._skillDlgPromoteHandler = DlgHandlerBase.EnsureCreate(ref this._skillDlgPromoteHandler, base.uiBehaviour.m_TransferFrame, null, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_ResetSkillBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnResetSkillPointClicked)); + base.uiBehaviour.m_ResetProBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnResetProfClicked)); + base.uiBehaviour.m_SwitchSkillPageBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSwitchSkillPageBtnClick)); + base.uiBehaviour.m_CatchBackBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.TurnSwitchFrameState)); + base.uiBehaviour.m_ChooseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.TurnSwitchFrameState)); + base.uiBehaviour.m_SkillPlayBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPlaySkillClicked)); + base.uiBehaviour.m_LearnBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSkillLevelUpClicked)); + for (int i = 0; i < XSkillTreeDocument.SkillSlotCount; i++) + { + base.uiBehaviour.m_SkillSlotList[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSetupSkillClicked)); + } + } + + public void SetupTabs() + { + uint num = XSingleton.singleton.XPlayerData.TypeID; + uint level = XSingleton.singleton.XPlayerData.Level; + base.uiBehaviour.m_Tabs.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_Tabs.TplPos; + bool flag = true; + this._icbList.Clear(); + this._TabRedPointList.Clear(); + for (int i = 0; i < this._doc.TRANSFERNUM; i++) + { + uint num2 = num % 10u; + num /= 10u; + bool flag2 = num2 == 0u; + string inputText; + if (flag2) + { + bool flag3 = i == XSkillTreeView.AwakeIndex; + if (flag3) + { + inputText = XStringDefineProxy.GetString("SKILL_TREE_TAB_AWAKE"); + } + else + { + string arg = (i == 1) ? XStringDefineProxy.GetString("ONE") : XStringDefineProxy.GetString("TWO"); + string arg2 = (level >= this._doc.TransferLimit[i]) ? "" : XLabelSymbolHelper.FormatImage("common/Lcommon", "l_lock_00"); + inputText = string.Format(XStringDefineProxy.GetString("SKILL_TREE_TAB"), arg2, this._doc.TransferLimit[i], arg); + } + } + else + { + int profID = (int)(XSingleton.singleton.XPlayerData.TypeID % (uint)this.MI[i + 1]); + inputText = XSingleton.singleton.GetProfName(profID); + } + GameObject gameObject = base.uiBehaviour.m_Tabs.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(base.uiBehaviour.m_Tabs.TplHeight * i)); + this._TabRedPointList.Add(gameObject.transform.Find("RedPoint").gameObject); + IXUILabelSymbol ixuilabelSymbol = gameObject.transform.Find("TextLabel").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = inputText; + IXUILabelSymbol ixuilabelSymbol2 = gameObject.transform.Find("SelectedTextLabel").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol2.InputText = inputText; + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + IXUISprite ixuisprite = gameObject.transform.Find("Lock").GetComponent("XUISprite") as IXUISprite; + this._icbList.Add(ixuicheckBox); + ixuicheckBox.ID = (ulong)((long)i); + bool flag4 = flag; + if (flag4) + { + gameObject.GetComponent().enabled = true; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + ixuisprite.RegisterSpriteClickEventHandler(null); + } + else + { + gameObject.GetComponent().enabled = false; + ixuicheckBox.RegisterOnCheckEventHandler(null); + ixuisprite.ID = (ulong)this._doc.TransferLimit[i - 1]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnUnableCheckBoxClick)); + } + bool flag5 = num2 == 0u; + if (flag5) + { + flag = false; + } + } + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.ArrangeEffectData(); + this._doc.CreateSkillBlackHouse(); + bool flag = this.skillPreView == null; + if (flag) + { + this.skillPreView = new RenderTexture(369, 208, 1, 0, 0); + this.skillPreView.name = "SkillPreview"; + this.skillPreView.autoGenerateMips = false; + this.skillPreView.Create(); + } + base.uiBehaviour.m_Snapshot.SetRuntimeTex(this.skillPreView, true); + this._doc.SetSkillPreviewTexture(this.skillPreView); + this.SetUVRectangle(); + this._icbList[this.LastSelectPromote].bChecked = true; + this.OnTabClick(this._icbList[this.LastSelectPromote]); + bool flag2 = !this._SwitchFrameState; + if (flag2) + { + this.TurnSwitchFrameState(null); + } + this.CalAllTabRedPoint(); + } + + protected override void OnHide() + { + this._doc.DelDummy(); + bool flag = this._doc.BlackHouseCamera != null; + if (flag) + { + this._doc.BlackHouseCamera.enabled = false; + } + this.LastSelectPromote = 0; + this._skillDlgPromoteHandler.SetVisible(false); + this._doc.SetSkillPreviewTexture(null); + bool flag2 = this.skillPreView != null; + if (flag2) + { + base.uiBehaviour.m_Snapshot.SetRuntimeTex(null, true); + this.skillPreView = null; + } + this.DestroyFx(this._FxFirework); + this._FxFirework = null; + base.uiBehaviour.m_LevelUpFx.SetActive(false); + base.OnHide(); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + base.uiBehaviour.m_LevelUpFx.SetActive(false); + } + + protected override void OnUnload() + { + XSingleton.singleton.SkillShowEnd(this._doc.Dummy); + bool flag = this._doc.BlackHouseCamera != null; + if (flag) + { + this._doc.BlackHouseCamera.enabled = false; + } + this._doc.SetSkillPreviewTexture(null); + bool flag2 = this.skillPreView != null; + if (flag2) + { + this.skillPreView.Release(); + this.skillPreView = null; + } + this.LastSelectPromote = 0; + this._LastSelect = null; + DlgHandlerBase.EnsureUnload(ref this._skillDlgPromoteHandler); + this.DestroyFx(this._FxFirework); + this._FxFirework = null; + base.OnUnload(); + } + + public void CalAllTabRedPoint() + { + for (int i = 0; i < this._doc.TRANSFERNUM; i++) + { + this.CalTabRedPoint(i); + } + } + + private void CalTabRedPoint(int Promote) + { + bool flag = XSingleton.singleton.XPlayerData.TypeID / (uint)this.MI[Promote] == 0u; + if (flag) + { + this._TabRedPointList[Promote].SetActive(false); + } + else + { + int profID = (int)(XSingleton.singleton.XPlayerData.TypeID % (uint)this.MI[Promote + 1]); + List profSkillID = XSingleton.singleton.GetProfSkillID(profID); + for (int i = 0; i < profSkillID.Count; i++) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(profSkillID[i]); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(profSkillID[i], skillOriginalLevel); + bool flag2 = this._doc.CheckRedPoint(profSkillID[i]); + if (flag2) + { + this._TabRedPointList[Promote].SetActive(true); + return; + } + } + this._TabRedPointList[Promote].SetActive(false); + } + } + + private bool OnTabClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._LastSelect != null; + if (flag2) + { + this._LastSelect.SetActive(false); + } + this.Refresh((int)icb.ID, true, true); + result = true; + } + return result; + } + + private bool OnCloseClicked(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public void Refresh(int Promote, bool resetCurrentSkill = false, bool resetPosition = true) + { + this.LastSelectPromote = Promote; + this._icbList[Promote].bChecked = true; + int typeID = (int)XSingleton.singleton.XPlayerData.TypeID; + int num = typeID / this.MI[Promote] % 10; + bool flag = num != 0; + if (flag) + { + if (resetCurrentSkill) + { + this._doc.CurrentSkillID = this._doc.UNSELECT; + } + this.ShowSkillTreeFrame(Promote); + } + else + { + this.ShowTransferFrame(Promote); + } + this.SetOtherInfo(Promote == XSkillTreeView.AwakeIndex); + if (resetPosition) + { + base.uiBehaviour.m_SkillTreeScrollView.ResetPosition(); + } + } + + public void ShowSkillTreeFrame(int Promote) + { + this.IsPromoteHandlerShow = false; + this._skillDlgPromoteHandler.SetVisible(false); + this.SetupSkillFrame(Promote); + } + + private void ShowTransferFrame(int Promote) + { + this.IsPromoteHandlerShow = true; + this._skillDlgPromoteHandler.IsShowAwake = (Promote == XSkillTreeView.AwakeIndex); + this._skillDlgPromoteHandler.CurrStage = Promote; + this._skillDlgPromoteHandler.SetVisible(true); + } + + private void OnPlaySkillClicked(IXUISprite sp) + { + base.uiBehaviour.m_SkillPlayBtn.SetVisible(false); + XSingleton.singleton.ShowSkill(this._doc.Dummy, this._doc.CurrentSkillID, 0u); + } + + private bool OnSkillLevelUpClicked(IXUIButton button) + { + this._doc.SendSkillLevelup(); + return true; + } + + public void SetupSkillFrame(int Promote) + { + bool flag = !base.IsVisible(); + if (!flag) + { + int profID = (int)(XSingleton.singleton.XPlayerData.TypeID % (uint)this.MI[Promote + 1]); + base.uiBehaviour.m_SkillPool.ReturnAll(false); + base.uiBehaviour.m_ArrowPool.ReturnAll(false); + List profSkillID = XSingleton.singleton.GetProfSkillID(profID); + List list = new List(); + for (int i = 0; i < profSkillID.Count; i++) + { + SkillTreeSortItem skillTreeSortItem = new SkillTreeSortItem(); + skillTreeSortItem.skillID = profSkillID[i]; + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(profSkillID[i], 0u); + skillTreeSortItem.x = (int)skillConfig.XPostion; + skillTreeSortItem.y = (int)skillConfig.YPostion; + list.Add(skillTreeSortItem); + } + list.Sort(new Comparison(this.Compare)); + int num = 0; + for (int j = 0; j < list.Count; j++) + { + GameObject gameObject = base.uiBehaviour.m_SkillPool.FetchGameObject(false); + gameObject.name = string.Format("Skill{0}", ++num); + this.SetupSkill(gameObject, list[j].skillID); + } + } + } + + private void SetOtherInfo(bool isAwake = false) + { + base.uiBehaviour.m_FreeResetSkillTip.SetVisible((ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.GetInt("FreeResetSkillLevel"))); + int num = (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(false); + base.uiBehaviour.m_UseSkillPoint.SetText(string.Format("{0}/{1}", num, this._doc.TotalSkillPoint)); + base.uiBehaviour.m_UseAwakeSkillPoint.SetText(string.Format("{0}/{1}", (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(true), this._doc.TotalAwakeSkillPoint)); + base.uiBehaviour.m_LeftSkillPoint.SetText(num.ToString()); + base.uiBehaviour.m_ResetProBtn.SetEnabled(XSingleton.singleton.XPlayerData.TypeID > 10u); + base.uiBehaviour.m_ResetSkillBtn.SetEnabled((isAwake ? this._doc.TotalAwakeSkillPoint : this._doc.TotalSkillPoint) - (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake) != 1); + base.uiBehaviour.m_SwitchSkillPageBtn.SetGrey((ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)this._doc.SkillPageOpenLevel)); + base.uiBehaviour.m_SkillPageText.SetEnabled((ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)this._doc.SkillPageOpenLevel)); + base.uiBehaviour.m_SkillPageText.SetText(XStringDefineProxy.GetString(string.Format("SkillPage{0}", 1u - XSingleton.singleton.XPlayerData.SkillPageIndex))); + } + + protected void SetupSkill(GameObject go, uint skillID) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(skillID); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, skillOriginalLevel); + SkillList.RowData rowData = null; + bool flag = skillConfig.PreSkill != null && skillConfig.PreSkill != ""; + if (flag) + { + uint skillID2 = XSingleton.singleton.GetSkillID(skillConfig.PreSkill, 0u); + rowData = XSingleton.singleton.GetSkillConfig(skillID2, 0u); + } + int skillMaxLevel = XSingleton.singleton.GetSkillMaxLevel(skillID, 0u); + SkillTypeEnum skillType = (SkillTypeEnum)skillConfig.SkillType; + IXUISprite ixuisprite = go.GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = go.transform.Find("Icon/P").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite4 = go.transform.Find("Tip").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = go.transform.Find("LockTip").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite5 = go.transform.Find("Lock").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = go.transform.Find("Select").gameObject; + ixuisprite.ID = (ulong)skillID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSkillClicked)); + bool flag2 = this._doc.CurrentSkillID == this._doc.UNSELECT || this._doc.CurrentSkillID == skillID; + if (flag2) + { + gameObject.SetActive(true); + this._doc.CurrentSkillID = skillID; + this.OnSkillClicked(ixuisprite); + this._LastSelect = gameObject; + } + else + { + gameObject.SetActive(false); + } + Transform transform = go.transform.Find("CanLearn"); + Transform transform2 = go.transform.Find("RedPoint"); + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + bool flag3 = (skillType == SkillTypeEnum.Skill_Normal || skillType == SkillTypeEnum.Skill_Big || skillType == SkillTypeEnum.Skill_Buff) && this._doc.SkillIsEquip(skillID); + if (flag3) + { + ixuisprite4.SetVisible(true); + } + else + { + ixuisprite4.SetVisible(false); + } + go.transform.localPosition = new Vector3(base.uiBehaviour.m_SkillPool.TplPos.x + (float)((int)(skillConfig.XPostion - 1) * base.uiBehaviour.m_SkillPool.TplWidth), (float)skillConfig.YPostion); + ixuisprite2.SetSprite(skillConfig.Icon, skillConfig.Atlas, false); + ixuilabel2.SetVisible(this._doc.CheckPreSkillLevel(skillID) != 0 && !this._doc.CanSkillLevelUp(skillID, skillOriginalLevel, 0) && skillOriginalLevel == 0u); + ixuilabel.SetVisible((this._doc.CheckPreSkillLevel(skillID) != 0 && this._doc.CanSkillLevelUp(skillID, skillOriginalLevel, 0)) || skillOriginalLevel > 0u); + ixuilabel.SetText(skillOriginalLevel + "/" + skillMaxLevel); + bool flag4 = skillOriginalLevel == 0u && !this._doc.CanSkillLevelUp(skillID, skillOriginalLevel, 0); + if (flag4) + { + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString(XStringDefine.SKILL_LEARN), skillConfig.UpReqRoleLevel[0])); + } + else + { + bool flag5 = this._doc.CheckFx(skillID); + bool flag6 = this._doc.CheckRedPoint(skillID); + bool flag7 = this._doc.CheckNew(skillID); + IXUISprite ixuisprite6 = transform2.transform.Find("Fx").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite7 = transform2.transform.Find("Fx1").GetComponent("XUISprite") as IXUISprite; + ixuisprite6.SetVisible(false); + ixuisprite7.SetVisible(false); + bool flag8 = flag7; + if (flag8) + { + transform2.gameObject.SetActive(true); + ixuisprite6.SetVisible(true); + } + bool flag9 = flag5 && !flag6; + if (flag9) + { + transform.gameObject.SetActive(true); + } + bool flag10 = flag6; + if (flag10) + { + transform2.gameObject.SetActive(true); + ixuisprite7.SetVisible(true); + } + } + SkillTypeEnum skillTypeEnum = skillType; + if (skillTypeEnum != SkillTypeEnum.Skill_Big) + { + if (skillTypeEnum != SkillTypeEnum.Skill_Buff) + { + ixuisprite3.SetSprite("JN_dk"); + } + else + { + ixuisprite3.SetSprite("JN_dk_buff"); + } + } + else + { + ixuisprite3.SetSprite("JN_dk_0"); + } + bool flag11 = rowData != null; + if (flag11) + { + Vector3 localPosition = go.transform.localPosition; + Vector3 vector; + vector= new Vector3(base.uiBehaviour.m_SkillPool.TplPos.x + (float)((int)(rowData.XPostion - 1) * base.uiBehaviour.m_SkillPool.TplWidth), (float)rowData.YPostion); + Vector3 vector2 = (localPosition + vector) / 2f; + GameObject gameObject2 = base.uiBehaviour.m_ArrowPool.FetchGameObject(false); + IXUISprite ixuisprite8 = gameObject2.GetComponent("XUISprite") as IXUISprite; + bool flag12 = skillConfig.XPostion == rowData.XPostion || skillConfig.YPostion == rowData.YPostion; + if (flag12) + { + bool flag13 = skillConfig.XPostion == rowData.XPostion; + if (flag13) + { + ixuisprite8.SetSprite("SkillTree_3"); + ixuisprite8.spriteHeight = (int)((float)(rowData.YPostion - skillConfig.YPostion) - (float)ixuisprite2.spriteHeight * 1.5f); + ixuisprite8.spriteWidth = base.uiBehaviour.m_ArrowPool.TplWidth; + gameObject2.transform.localPosition = vector2; + gameObject2.transform.localScale = new Vector3(1f, 1f); + gameObject2.transform.localRotation = Quaternion.identity; + } + else + { + ixuisprite8.SetSprite("SkillTree_3"); + int num = (skillConfig.XPostion < rowData.XPostion) ? 1 : -1; + ixuisprite8.spriteHeight = (int)((float)((int)(rowData.XPostion - skillConfig.XPostion) * (num * base.uiBehaviour.m_SkillPool.TplWidth)) - (float)ixuisprite2.spriteWidth * 1.5f); + ixuisprite8.spriteWidth = base.uiBehaviour.m_ArrowPool.TplWidth; + gameObject2.transform.localPosition = vector2; + gameObject2.transform.localScale = new Vector3(1f, 1f); + gameObject2.transform.localRotation = Quaternion.Euler(0f, 0f, (float)(-(float)num * 90)); + } + } + else + { + ixuisprite8.SetSprite("SkillTree_4"); + ixuisprite8.spriteHeight = (int)Math.Abs(localPosition.y - vector.y) - ixuisprite2.spriteHeight / 2; + ixuisprite8.spriteWidth = (int)Math.Abs(localPosition.x - vector.x) - ixuisprite2.spriteWidth / 2; + int num2 = (skillConfig.XPostion < rowData.XPostion) ? 1 : -1; + gameObject2.transform.localPosition = vector2 + new Vector3((float)(ixuisprite2.spriteWidth / 2 * -(float)num2), (float)(ixuisprite2.spriteHeight / 2)); + gameObject2.transform.localScale = new Vector3((float)num2, 1f); + gameObject2.transform.localRotation = Quaternion.identity; + } + } + ixuisprite2.SetEnabled(skillOriginalLevel > 0u); + ixuisprite3.SetEnabled(skillOriginalLevel > 0u); + ixuisprite5.SetVisible(skillOriginalLevel == 0u); + ixuisprite5.SetEnabled(skillOriginalLevel > 0u); + ixuisprite2.ID = (ulong)skillID; + } + + private void OnSkillClicked(IXUISprite sp) + { + this._doc.CurrentSkillID = (uint)sp.ID; + bool flag = this._LastSelect != null; + if (flag) + { + this._LastSelect.SetActive(false); + } + this._LastSelect = sp.gameObject.transform.Find("Select").gameObject; + this._LastSelect.SetActive(true); + this._CurrentSkillSprite = sp.gameObject.transform.Find("RedPoint").gameObject; + this.SetupDetail(true); + } + + private void OnSetupSkillClicked(IXUISprite sp) + { + uint currentSkillID = this._doc.CurrentSkillID; + uint slot = (uint)sp.ID; + uint skillSlotUnLockLevel = this._doc.GetSkillSlotUnLockLevel((int)sp.ID); + bool flag = skillSlotUnLockLevel > XSingleton.singleton.XPlayerData.Level; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("OpenSkillAtLevel", new object[] + { + skillSlotUnLockLevel + }), "fece00"); + this.SetupBaseSkill(); + } + else + { + this._doc.SendBindSkill(currentSkillID, slot); + } + } + + private bool TurnSwitchFrameState(IXUIButton btn) + { + this._SwitchFrameState = !this._SwitchFrameState; + this.SetupDetail(true); + int num = this._SwitchFrameState ? 1 : 0; + base.uiBehaviour.m_DetailFrameTween.StopTweenByGroup(1 - num); + base.uiBehaviour.m_CatchFrameTween.StopTweenByGroup(1 - num); + base.uiBehaviour.m_DetailFrameTween.SetTweenGroup(num); + base.uiBehaviour.m_CatchFrameTween.SetTweenGroup(num); + base.uiBehaviour.m_DetailFrameTween.PlayTween(true, -1f); + base.uiBehaviour.m_CatchFrameTween.PlayTween(true, -1f); + return true; + } + + public void SetupDetail(bool resetSnap = true) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(this._doc.CurrentSkillID); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this._doc.CurrentSkillID, skillOriginalLevel); + bool flag = skillConfig == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find Current Skill, SkillID = ", this._doc.CurrentSkillID.ToString(), null, null, null, null); + } + else + { + SkillTypeEnum skillType = (SkillTypeEnum)skillConfig.SkillType; + bool flag2 = false; + bool flag3 = false; + bool flag4 = (ulong)skillOriginalLevel < (ulong)((long)XSingleton.singleton.GetSkillMaxLevel(this._doc.CurrentSkillID, 0u)); + bool flag5 = skillType == SkillTypeEnum.Skill_Normal || skillType == SkillTypeEnum.Skill_Big || skillType == SkillTypeEnum.Skill_Help || skillType == SkillTypeEnum.Skill_Buff; + if (flag5) + { + flag2 = true; + } + bool flag6 = skillOriginalLevel > 0u; + if (flag6) + { + bool flag7 = !this._doc.IsExSkill(skillConfig); + if (flag7) + { + bool flag8 = skillType == SkillTypeEnum.Skill_Normal || skillType == SkillTypeEnum.Skill_Big || skillType == SkillTypeEnum.Skill_Buff; + if (flag8) + { + flag3 = true; + } + } + } + bool flag9 = this._doc.CurrentSkillID != this._doc.UNSELECT; + if (flag9) + { + base.uiBehaviour.m_SkillLearnRedPoint.gameObject.SetActive(this._doc.CheckRedPoint(this._doc.CurrentSkillID)); + } + else + { + base.uiBehaviour.m_SkillLearnRedPoint.gameObject.SetActive(false); + } + if (resetSnap) + { + XSingleton.singleton.SkillShowEnd(this._doc.Dummy); + XSingleton.singleton.SkillShowBegin(this._doc.Dummy, this._doc.BlackHouseCamera); + } + base.uiBehaviour.m_NonPreView.SetActive(!flag2); + base.uiBehaviour.m_Snapshot.SetVisible(flag2); + base.uiBehaviour.m_SkillPlayBtn.SetVisible(flag2); + base.uiBehaviour.m_ChooseBtn.SetVisible(flag3); + bool flag10 = flag3; + if (flag10) + { + Vector3 localPosition = base.uiBehaviour.m_ChooseBtn.gameObject.transform.localPosition; + bool flag11 = flag4; + if (flag11) + { + base.uiBehaviour.m_ChooseBtn.gameObject.transform.localPosition = new Vector3(96f, localPosition.y); + } + else + { + base.uiBehaviour.m_ChooseBtn.gameObject.transform.localPosition = new Vector3(0f, localPosition.y); + } + } + bool flag12 = !flag3 && !this._SwitchFrameState; + if (flag12) + { + this.TurnSwitchFrameState(null); + } + base.uiBehaviour.m_LearnBtn.SetVisible(flag4); + bool flag13 = flag4; + if (flag13) + { + Vector3 localPosition2 = base.uiBehaviour.m_LearnBtn.gameObject.transform.localPosition; + bool flag14 = flag3; + if (flag14) + { + base.uiBehaviour.m_LearnBtn.gameObject.transform.localPosition = new Vector3(-96f, localPosition2.y); + } + else + { + base.uiBehaviour.m_LearnBtn.gameObject.transform.localPosition = new Vector3(0f, localPosition2.y); + } + } + IXUISprite ixuisprite = base.uiBehaviour.m_LearnBtn.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ItemList.RowData itemConf = XBagDocument.GetItemConf(skillConfig.IsAwake ? XFastEnumIntEqualityComparer.ToInt(ItemEnum.AWAKE_SKILL_POINT) : XFastEnumIntEqualityComparer.ToInt(ItemEnum.SKILL_POINT)); + bool flag15 = itemConf != null && itemConf.ItemAtlas1.Length != 0 && itemConf.ItemIcon1.Length != 0; + if (flag15) + { + ixuisprite.SetSprite(itemConf.ItemIcon1[0], itemConf.ItemAtlas1[0], false); + } + IXUILabel ixuilabel = base.uiBehaviour.m_LearnBtn.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString((skillOriginalLevel == 0u) ? "LEARN" : "UPGRADE")); + IXUILabel ixuilabel2 = base.uiBehaviour.m_LearnBtn.gameObject.transform.Find("Cost").GetComponent("XUILabel") as IXUILabel; + bool flag16 = skillConfig.LevelupCost == null; + if (flag16) + { + ixuilabel2.SetText("0"); + } + else + { + bool flag17 = (ulong)skillOriginalLevel < (ulong)((long)skillConfig.LevelupCost.Length); + if (flag17) + { + ixuilabel2.SetText(skillConfig.LevelupCost[(int)skillOriginalLevel].ToString()); + } + else + { + ixuilabel2.SetText(skillConfig.LevelupCost[skillConfig.LevelupCost.Length - 1].ToString()); + } + } + base.uiBehaviour.m_LearnBtn.SetGrey(this._doc.CheckLevelUpButton(this._doc.CurrentSkillID)); + this.SetupDetailMsg(this._doc.CurrentSkillID, skillOriginalLevel, skillConfig); + this.SetupBaseSkill(); + } + } + + private void SetupBaseSkill() + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this._doc.CurrentSkillID, 0u); + SkillTypeEnum skillType = (SkillTypeEnum)skillConfig.SkillType; + bool isAwake = skillConfig.IsAwake; + for (int i = 0; i < XSkillTreeDocument.SkillSlotCount; i++) + { + bool flag = i == 0 || i == 1; + if (!flag) + { + bool flag2 = i == XSkillTreeDocument.AwakeSkillSlot; + if (flag2) + { + base.uiBehaviour.m_SkillSlotList[i].gameObject.SetActive(this._doc.IsAwakeSkillSlotOpen && this._doc.IsSelfAwaked); + } + uint num = 0u; + bool flag3 = i < XSingleton.singleton.XPlayerData.skillSlot.Length; + if (flag3) + { + num = XSingleton.singleton.XPlayerData.skillSlot[i]; + } + SkillTypeEnum skillSlotType = this._doc.GetSkillSlotType(i); + IXUISprite ixuisprite = base.uiBehaviour.m_SkillSlotList[i].gameObject.transform.Find("Light").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = base.uiBehaviour.m_SkillSlotList[i].gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = base.uiBehaviour.m_SkillSlotList[i].gameObject.transform.Find("Lock").GetComponent("XUISprite") as IXUISprite; + BoxCollider boxCollider = base.uiBehaviour.m_SkillSlotList[i].gameObject.GetComponent("BoxCollider") as BoxCollider; + bool flag4 = skillConfig.ExSkillScript == ""; + if (flag4) + { + ixuisprite.SetVisible(num == this._doc.CurrentSkillID); + } + else + { + uint skillID = XSingleton.singleton.GetSkillID(skillConfig.ExSkillScript, 0u); + ixuisprite.SetVisible(num == this._doc.CurrentSkillID || num == skillID); + } + bool flag5 = skillSlotType == skillType; + if (flag5) + { + base.uiBehaviour.m_SkillSlotList[i].SetAlpha(1f); + boxCollider.enabled = true; + } + else + { + base.uiBehaviour.m_SkillSlotList[i].SetAlpha(0.5f); + boxCollider.enabled = false; + } + ixuisprite3.SetAlpha((this._doc.GetSkillSlotUnLockLevel(i) > XSingleton.singleton.XPlayerData.Level) ? 1f : 0f); + bool flag6 = skillSlotType == SkillTypeEnum.Skill_Buff && this._doc.GetSkillSlotUnLockLevel(XFastEnumIntEqualityComparer.ToInt(XSkillSlot.Skill_1_Buff)) > XSingleton.singleton.XPlayerData.Level; + if (flag6) + { + base.uiBehaviour.m_SkillSlotList[i].SetAlpha(0f); + } + bool flag7 = num > 0u; + if (flag7) + { + uint skillOriginalLevel = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(num); + SkillList.RowData skillConfig2 = XSingleton.singleton.GetSkillConfig(num, skillOriginalLevel); + ixuisprite2.SetSprite(skillConfig2.Icon, skillConfig2.Atlas, false); + } + else + { + ixuisprite2.spriteName = "EmptySkill"; + } + } + } + } + + private void SetupDetailMsg(uint skillID, uint skillLevel, SkillList.RowData data) + { + SkillTypeEnum skillType = (SkillTypeEnum)data.SkillType; + string text = string.Format("{0}({1}/{2})", data.ScriptName, skillLevel, XSingleton.singleton.GetSkillMaxLevel(skillID, 0u)); + base.uiBehaviour.m_SkillName_L.SetText(text); + base.uiBehaviour.m_SkillName_S.SetText(text); + string @string; + switch (skillType) + { + case SkillTypeEnum.Skill_Big: + @string = XStringDefineProxy.GetString("SPECIAL_SKILL"); + goto IL_CE; + case SkillTypeEnum.Skill_SceneBuff: + @string = XStringDefineProxy.GetString("SCENEBUFF_SKILL"); + goto IL_CE; + case SkillTypeEnum.Skill_Help: + @string = XStringDefineProxy.GetString("SUPPORT_SKILL"); + goto IL_CE; + case SkillTypeEnum.Skill_Buff: + @string = XStringDefineProxy.GetString("BUFF_SKILL"); + goto IL_CE; + case SkillTypeEnum.Skill_Awake: + @string = XStringDefineProxy.GetString("AWAKE_SKILL"); + goto IL_CE; + } + @string = XStringDefineProxy.GetString("NORMAL_SKILL"); + IL_CE: + base.uiBehaviour.m_SkillType_L.SetText(@string); + base.uiBehaviour.m_SkillType_S.SetText(@string); + base.uiBehaviour.m_ChooseTips.SetText(string.Format(XStringDefineProxy.GetString("SKILL_CHOOSE_TIPS"), @string)); + base.uiBehaviour.m_SkillCostText.SetText((data.CostMP[0] + data.CostMP[1] * skillLevel).ToString()); + base.uiBehaviour.m_SkillAttrText.SetText(XSkillTreeDocument.GetSkillAttrStr((int)data.Element)); + bool flag = skillType != SkillTypeEnum.Skill_SceneBuff; + if (flag) + { + base.uiBehaviour.m_SkillCDText.SetText(string.Format("{0}s", Math.Round((double)XSkillMgr.GetCD(this._doc.Player, data.SkillScript, 0u) + 0.01, 1))); + } + else + { + base.uiBehaviour.m_SkillCDText.SetText(XStringDefineProxy.GetString("NONE")); + } + base.uiBehaviour.m_SkillDetail_L.SetText(data.CurrentLevelDescription); + base.uiBehaviour.m_SkillDetail_S.SetText(data.CurrentLevelDescription); + base.uiBehaviour.m_SkillDetailScrollView_S.SetPosition(0f); + uint preSkill = XSingleton.singleton.GetPreSkill(skillID, 0u); + uint num = 0u; + bool flag2 = preSkill > 0u; + if (flag2) + { + num = XSingleton.singleton.XPlayerData.SkillLevelInfo.GetSkillOriginalLevel(preSkill); + } + float num2; + float num3; + XSingleton.singleton.GetSkillDescriptValue(skillID, (preSkill == 0u) ? skillLevel : num, XSingleton.singleton.Doc.XBagDoc.EmblemBag, out num2, out num3); + base.uiBehaviour.m_SkillCurrDesc.SetText(string.Format(XSingleton.singleton.ReplaceReturn(data.NextLevelDescription), Math.Round((double)(num2 * 100f) + 0.01, 1), Math.Round((double)num3 + 0.01, 1))); + base.uiBehaviour.m_SkillPreSkillPointTips.SetVisible(false); + bool flag3 = num == 0u; + if (flag3) + { + num += 1u; + } + XSingleton.singleton.GetSkillDescriptValue(skillID, (preSkill == 0u) ? (skillLevel + 1u) : num, XSingleton.singleton.Doc.XBagDoc.EmblemBag, out num2, out num3); + base.uiBehaviour.m_SkillNextDesc.SetText(string.Format(XSingleton.singleton.ReplaceReturn(data.NextLevelDescription), Math.Round((double)(num2 * 100f) + 0.01, 1), Math.Round((double)num3 + 0.01, 1))); + bool flag4 = this._doc.CanSkillLevelUp(skillID, skillLevel, 0); + if (flag4) + { + base.uiBehaviour.m_SkillNextReq.SetText(""); + } + else + { + SkillLevelupRequest levelupRequest = XSingleton.singleton.GetLevelupRequest(skillID, skillLevel); + base.uiBehaviour.m_SkillNextReq.SetText(string.Format("{0}({1})", string.Format(XStringDefineProxy.GetString(XStringDefine.ITEM_REQUIRE_LEVEL), levelupRequest.Level), string.Format(XStringDefineProxy.GetString("LEFT_LEVEL"), (long)levelupRequest.Level - (long)((ulong)XSingleton.singleton.XPlayerData.Level)))); + } + base.uiBehaviour.m_SuperIndureAttack.SetText(data.SuperIndureAttack); + base.uiBehaviour.m_SuperIndureDenfense.SetText(data.SuperIndureDefense); + bool flag5 = skillLevel == 0u; + if (flag5) + { + base.uiBehaviour.m_SkillCurrDesc.SetText(XStringDefineProxy.GetString("NOT_LEARN")); + bool isAwake = data.IsAwake; + int num4 = (isAwake ? this._doc.TotalAwakeSkillPoint : this._doc.TotalSkillPoint) - (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(isAwake); + bool flag6 = num4 < (int)data.PreSkillPoint; + if (flag6) + { + base.uiBehaviour.m_SkillPreSkillPointTips.SetVisible(true); + base.uiBehaviour.m_SkillPreSkillPointTips.SetText(string.Format(XStringDefineProxy.GetString("SKILLTREE_PRESKILLPOINT_TIPS"), data.PreSkillPoint)); + } + else + { + base.uiBehaviour.m_SkillPreSkillPointTips.SetVisible(false); + } + } + else + { + bool flag7 = (ulong)skillLevel == (ulong)((long)XSingleton.singleton.GetSkillMaxLevel(skillID, 0u)); + if (flag7) + { + base.uiBehaviour.m_SkillNextDesc.SetText(XStringDefineProxy.GetString("SkillLevelMaxTips")); + base.uiBehaviour.m_SkillNextReq.SetText(""); + } + } + base.uiBehaviour.m_SkillDetailScrollView.ResetPosition(); + } + + private void OnResetSkillPointClicked(IXUISprite sp) + { + DlgBase.singleton._bHasGrey = false; + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetSingleButtonMode(false); + int num = XSingleton.singleton.GetInt("SkillResetCost"); + bool flag = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.GetInt("FreeResetSkillLevel")); + if (flag) + { + num = 0; + } + bool flag2 = num != 0; + if (flag2) + { + DlgBase.singleton.SetLabelsWithSymbols(string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString(XStringDefine.SKILL_RESET_SP)), num, XLabelSymbolHelper.FormatSmallIcon(7)), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL)); + } + else + { + DlgBase.singleton.SetLabelsWithSymbols(string.Format(XStringDefineProxy.GetString("FREE_RESET_SKILL_POINT"), XSingleton.singleton.GetInt("FreeResetSkillLevel")), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL)); + } + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnResetSpConfirmed), null); + DlgBase.singleton.SetTweenTargetAndPlay(DlgBase.singleton.uiBehaviour.gameObject); + } + + private bool OnResetSpConfirmed(IXUIButton go) + { + this._doc.SendResetSkill(); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private void OnResetProfClicked(IXUISprite sp) + { + DlgBase.singleton._bHasGrey = false; + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(string.Format("{0}{1}", string.Format(XStringDefineProxy.GetString(XStringDefine.SKILL_RESET_PROF), XSingleton.singleton.GetInt("SkillResetProfession")), XLabelSymbolHelper.FormatSmallIcon(7)), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL)); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnResetProfConfirmed), null); + DlgBase.singleton.SetTweenTargetAndPlay(DlgBase.singleton.uiBehaviour.gameObject); + } + + private bool OnResetProfConfirmed(IXUIButton go) + { + this._doc.SendResetProf(); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private void OnSwitchSkillPageBtnClick(IXUISprite iSp) + { + bool flag = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)this._doc.SkillPageOpenLevel); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SkillPageOpenTips"), "fece00"); + } + else + { + bool flag2 = Time.time - this._skillPageSwitchSignTime < 2f; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SkillPageSwitchTooOften"), "fece00"); + } + else + { + this._skillPageSwitchSignTime = Time.time; + this._doc.QuerySwitchSkillPage(); + } + } + } + + public void OnSkillLevelUp(int x, int y) + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_LevelUpFx.gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_SkillPool.TplPos.x + (float)((x - 1) * base.uiBehaviour.m_SkillPool.TplWidth), (float)y); + base.uiBehaviour.m_LevelUpFx.SetActive(false); + base.uiBehaviour.m_LevelUpFx.SetActive(true); + } + } + + public void SetLearnSkillButtonState(bool state) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_LearnBtn.SetEnable(state, false); + } + } + + public void CreateAndPlayFxFxFirework() + { + XSingleton.singleton.PlayUISound("Audio/UI/zhuanzhi", true, AudioChannel.Action); + this.DestroyFx(this._FxFirework); + this._FxFirework = null; + this._FxFirework = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_zzcg", null, true); + this._FxFirework.Play(base.uiBehaviour.m_FxFirework, Vector3.zero, Vector3.one, 1f, true, false); + } + + public void DestroyFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + } + } + + private void OnUnableCheckBoxClick(IXUISprite iSp) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CHANGEPROF_PRETIPS"), iSp.ID), "fece00"); + } + + private int Compare(SkillTreeSortItem x, SkillTreeSortItem y) + { + bool flag = x.skillID == y.skillID; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = x.y != y.y; + if (flag2) + { + result = y.y - x.y; + } + else + { + result = x.x - y.x; + } + } + return result; + } + + public void SetUVRectangle() + { + Rect rect = this._doc.BlackHouseCamera.rect; + rect.y = (rect.y * 208f + 1f) / 208f; + rect.height = (rect.height * 208f - 2f) / 208f; + base.uiBehaviour.m_Snapshot.SetUVRect(rect); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeView.cs.meta b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeView.cs.meta new file mode 100644 index 00000000..9073678a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Skill/XSkillTreeView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d64c78e9edc986c4e9c9cb12e21ca0c5 +timeCreated: 1611404630 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkillDo.cs b/Client/Assets/Scripts/XMainClient/SkillDo.cs new file mode 100644 index 00000000..6731b1c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillDo.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate bool SkillDo(XSkill skill); +} diff --git a/Client/Assets/Scripts/XMainClient/SkillDo.cs.meta b/Client/Assets/Scripts/XMainClient/SkillDo.cs.meta new file mode 100644 index 00000000..a27382d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillDo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c7b5970674a6ad4f83c5c60dc10fcab +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkillEffect.cs b/Client/Assets/Scripts/XMainClient/SkillEffect.cs new file mode 100644 index 00000000..24411206 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillEffect.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class SkillEffect + { + public DamageElement DamageElementType; + + public double PhyRatio; + + public double PhyFixed; + + public double MagRatio; + + public double MagFixed; + + public double PercentDamage; + + public float DecSuperArmor; + + public List Buffs; + + public uint ExclusiveMask; + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkillEffect.cs.meta b/Client/Assets/Scripts/XMainClient/SkillEffect.cs.meta new file mode 100644 index 00000000..196e0c5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 153c493d52b9cc34da9e7b8c71b42db4 +timeCreated: 1611403262 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkillExternalCallback.cs b/Client/Assets/Scripts/XMainClient/SkillExternalCallback.cs new file mode 100644 index 00000000..d6f26422 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillExternalCallback.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate bool SkillExternalCallback(XSkillExternalArgs args); +} diff --git a/Client/Assets/Scripts/XMainClient/SkillExternalCallback.cs.meta b/Client/Assets/Scripts/XMainClient/SkillExternalCallback.cs.meta new file mode 100644 index 00000000..ec8e97e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillExternalCallback.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d85e18be30f84d478df2754efc78352 +timeCreated: 1611403196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkillLevelupRequest.cs b/Client/Assets/Scripts/XMainClient/SkillLevelupRequest.cs new file mode 100644 index 00000000..fd0b8d36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillLevelupRequest.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class SkillLevelupRequest + { + public int Level; + + public List Items; + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkillLevelupRequest.cs.meta b/Client/Assets/Scripts/XMainClient/SkillLevelupRequest.cs.meta new file mode 100644 index 00000000..7c869bdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillLevelupRequest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a8372db3bff108b42845067ac94dec19 +timeCreated: 1611404294 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkillStartEffect.cs b/Client/Assets/Scripts/XMainClient/SkillStartEffect.cs new file mode 100644 index 00000000..ff2a8e86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillStartEffect.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal struct SkillStartEffect + { + public int IncSuperArmor; + + public double MpCost; + + public List Buffs; + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkillStartEffect.cs.meta b/Client/Assets/Scripts/XMainClient/SkillStartEffect.cs.meta new file mode 100644 index 00000000..c488170a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillStartEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09341103ab4ef3245a9683427993da70 +timeCreated: 1611403150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkillTreeSortItem.cs b/Client/Assets/Scripts/XMainClient/SkillTreeSortItem.cs new file mode 100644 index 00000000..dbd37b46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillTreeSortItem.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class SkillTreeSortItem + { + public int x; + + public int y; + + public uint skillID; + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkillTreeSortItem.cs.meta b/Client/Assets/Scripts/XMainClient/SkillTreeSortItem.cs.meta new file mode 100644 index 00000000..e009daec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkillTreeSortItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba4f459dedb06a64490a64450bb97344 +timeCreated: 1611404435 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaBattleHandler.cs b/Client/Assets/Scripts/XMainClient/SkyArenaBattleHandler.cs new file mode 100644 index 00000000..d7c7b252 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaBattleHandler.cs @@ -0,0 +1,215 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SkyArenaBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/SkyArenaBattle"; + } + } + + private XSkyArenaBattleDocument doc = null; + + private SkyCityTimeType m_CurStatus; + + private XLeftTimeCounter _CDCounter; + + private Transform m_Info; + + private IXUILabel m_BlueScore; + + private IXUILabel m_RedScore; + + private IXUILabel m_BlueDamage; + + private IXUILabel m_RedDamage; + + private IXUILabel m_TimeLabel; + + private IXUILabel m_RestTip; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + this.doc.BattleHandler = this; + this.m_Info = base.transform.Find("Bg/Info"); + this.m_BlueScore = (base.transform.Find("Bg/Info/Blue/Score").GetComponent("XUILabel") as IXUILabel); + this.m_RedScore = (base.transform.Find("Bg/Info/Red/Score").GetComponent("XUILabel") as IXUILabel); + this.m_BlueDamage = (base.transform.Find("Bg/Info/Blue/Damage").GetComponent("XUILabel") as IXUILabel); + this.m_RedDamage = (base.transform.Find("Bg/Info/Red/Damage").GetComponent("XUILabel") as IXUILabel); + this.m_RestTip = (base.transform.Find("Bg/start").GetComponent("XUILabel") as IXUILabel); + this.m_TimeLabel = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_TimeLabel.SetText(XSingleton.singleton.GetString("SKY_ARENA_BEGIN_WAIT_TIP")); + this._CDCounter = new XLeftTimeCounter(this.m_TimeLabel, false); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this.doc.BattleHandler = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._CDCounter.Update(); + } + + private void RefreshInfo() + { + this.m_BlueScore.SetText("0"); + this.m_RedScore.SetText("0"); + this.m_BlueDamage.SetText("0"); + this.m_RedDamage.SetText("0"); + DlgBase.singleton.HideLeftTime(); + this.m_RestTip.gameObject.SetActive(false); + } + + public void SetScore(uint score, bool isBlue) + { + if (isBlue) + { + this.m_BlueScore.SetText(score.ToString()); + } + else + { + this.m_RedScore.SetText(score.ToString()); + } + } + + public void SetDamage(ulong damage, bool isBlue) + { + if (isBlue) + { + this.m_BlueDamage.SetText(damage.ToString()); + } + else + { + this.m_RedDamage.SetText(damage.ToString()); + } + } + + public void RefreshStatusTime(SkyCityTimeType status, uint time) + { + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "status:", + status, + "\ntime:", + time + }), null, null, null, null, null); + bool flag = time == 0u; + if (!flag) + { + bool flag2 = status == SkyCityTimeType.Race; + if (flag2) + { + bool flag3 = this.m_TimeLabel.IsVisible(); + if (flag3) + { + this.m_TimeLabel.gameObject.SetActive(false); + } + DlgBase.singleton.SetLeftTime(time, -1); + XSingleton.singleton.SetMiniMapOpponentStatus(false); + this.m_RestTip.gameObject.SetActive(false); + } + else + { + bool flag4 = status == SkyCityTimeType.FirstWaiting; + if (flag4) + { + bool flag5 = !this.m_TimeLabel.IsVisible(); + if (flag5) + { + this.m_TimeLabel.gameObject.SetActive(true); + } + this._CDCounter.SetLeftTime(time, -1); + this._CDCounter.SetFinishEventHandler(null, null); + this._CDCounter.SetFormatString(XSingleton.singleton.GetString("SKY_ARENA_REST_TIME")); + bool flag6 = this.m_CurStatus != status; + if (flag6) + { + DlgBase.singleton.ShowTip(XSingleton.singleton.GetString("SKY_ARENA_ROUND_END_REST")); + } + DlgBase.singleton.HideLeftTime(); + XSingleton.singleton.SetMiniMapOpponentStatus(true); + this.m_RestTip.gameObject.SetActive(true); + } + else + { + bool flag7 = status == SkyCityTimeType.SecondWaiting; + if (flag7) + { + bool flag8 = this.m_CurStatus == status; + if (flag8) + { + return; + } + bool flag9 = !this.m_TimeLabel.IsVisible(); + if (flag9) + { + this.m_TimeLabel.gameObject.SetActive(true); + } + this._CDCounter.SetLeftTime(time, -1); + this._CDCounter.SetFinishEventHandler(new TimeOverFinishEventHandler(this._OnLeftTimeOver), null); + this._CDCounter.SetFormatString(XSingleton.singleton.GetString("SKY_ARENA_NEXT_BATTLE_TIME")); + this.HideInfo(); + DlgBase.singleton.HideLeftTime(); + XSingleton.singleton.SetMiniMapOpponentStatus(true); + } + else + { + bool flag10 = status == SkyCityTimeType.MidleEndInRest; + if (flag10) + { + } + } + } + } + this.m_CurStatus = status; + } + } + + private void _OnLeftTimeOver(object o) + { + this.m_TimeLabel.SetText(XSingleton.singleton.GetString("SKY_ARENA_MATCHING")); + } + + public void HideTime() + { + DlgBase.singleton.HideLeftTime(); + this.m_TimeLabel.gameObject.SetActive(false); + } + + private void HideInfo() + { + this.m_Info.gameObject.SetActive(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/SkyArenaBattleHandler.cs.meta new file mode 100644 index 00000000..0a8606bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0602970f9c1d6a4a820f5d0caa3b01b +timeCreated: 1611404486 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaEntranceBehaviour.cs b/Client/Assets/Scripts/XMainClient/SkyArenaEntranceBehaviour.cs new file mode 100644 index 00000000..eed81997 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaEntranceBehaviour.cs @@ -0,0 +1,40 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SkyArenaEntranceBehaviour : DlgBehaviourBase + { + public Transform m_Bg; + + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_SingleJoin; + + public IXUIButton m_TeamJoin; + + public IXUIButton m_RewardBtn; + + public IXUILabel m_Time; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Bg = base.transform.Find("Bg"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_SingleJoin = (base.transform.Find("Bg/SingleJoin").GetComponent("XUIButton") as IXUIButton); + this.m_TeamJoin = (base.transform.Find("Bg/TeamJoin").GetComponent("XUIButton") as IXUIButton); + this.m_RewardBtn = (base.transform.Find("Bg/PointRewardBtn").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Reward/ItemTpl"); + this.m_RewardPool.SetupPool(null, transform.gameObject, 5u, false); + this.m_Time = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaEntranceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/SkyArenaEntranceBehaviour.cs.meta new file mode 100644 index 00000000..d678581e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaEntranceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7f0d2c0bd8595244b5d035e8430316e +timeCreated: 1611404532 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaEntranceView.cs b/Client/Assets/Scripts/XMainClient/SkyArenaEntranceView.cs new file mode 100644 index 00000000..3a87e995 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaEntranceView.cs @@ -0,0 +1,207 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SkyArenaEntranceView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/SkyArena/SkyArenaEntrance"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_MulActivity_SkyArena); + } + } + + private XSkyArenaEntranceDocument doc = null; + + private PointRewardHandler _PointRewardHandler; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XSkyArenaEntranceDocument.uuID); + this.doc.View = this; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_SingleJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartSingleClicked)); + base.uiBehaviour.m_TeamJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartTeamClicked)); + base.uiBehaviour.m_RewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_MulActivity_SkyArena); + return true; + } + + private bool OnStartSingleClicked(IXUIButton btn) + { + this.doc.ReqSingleJoin(); + return true; + } + + private bool OnStartTeamClicked(IXUIButton btn) + { + this.SetVisible(false, true); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelSkyArena); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = expeditionList.Count > 0; + if (flag) + { + specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID); + } + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshPage(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._PointRewardHandler); + this.doc.View = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public void RefreshPage() + { + SkyArenaReward.RowData skyArenaRewardShow = this.doc.GetSkyArenaRewardShow(); + base.uiBehaviour.m_RewardPool.FakeReturnAll(); + for (int i = 0; i < skyArenaRewardShow.Reward.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + int spriteWidth = ixuisprite.spriteWidth; + gameObject.transform.localPosition = new Vector3(((float)i + 0.5f - (float)skyArenaRewardShow.Reward.Count / 2f) * (float)spriteWidth, 0f, 0f); + uint num = skyArenaRewardShow.Reward[i, 0]; + Transform transform = gameObject.transform.Find("Item"); + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, (int)num, 0, false); + IXUISprite ixuisprite2 = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)num; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClick)); + } + base.uiBehaviour.m_RewardPool.ActualReturnAll(false); + base.uiBehaviour.m_Time.SetText(XSingleton.singleton.GetString("SKY_ARENA_TIME")); + } + + private void _OnItemClick(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog((int)iSp.ID, null); + } + + public bool OnRewardClicked(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this._PointRewardHandler, base.uiBehaviour.m_Bg, false, null); + this.OpenReward(this._PointRewardHandler); + return true; + } + + public void OpenReward(PointRewardHandler handler) + { + bool flag = handler.Sys != XSysDefine.XSys_MulActivity_SkyArena; + if (flag) + { + List skyArenaRewardList = XSkyArenaEntranceDocument.Doc.GetSkyArenaRewardList(); + List list = new List(skyArenaRewardList.Count); + for (int i = 0; i < skyArenaRewardList.Count; i++) + { + PointRewardData pointRewardData = default(PointRewardData); + pointRewardData.Init(); + pointRewardData.point = skyArenaRewardList[i].Floor; + for (int j = 0; j < skyArenaRewardList[i].Reward.Count; j++) + { + pointRewardData.rewardItem.Add((int)skyArenaRewardList[i].Reward[j, 0], (int)skyArenaRewardList[i].Reward[j, 1]); + } + list.Add(pointRewardData); + } + handler.SetData(list, XSysDefine.XSys_MulActivity_SkyArena); + } + handler.SetVisible(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaEntranceView.cs.meta b/Client/Assets/Scripts/XMainClient/SkyArenaEntranceView.cs.meta new file mode 100644 index 00000000..e3e9ab34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaEntranceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37a9dc29bdad5e54c8e6e1cc6ebb6931 +timeCreated: 1611403567 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaInfoHandler.cs b/Client/Assets/Scripts/XMainClient/SkyArenaInfoHandler.cs new file mode 100644 index 00000000..e94a24a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaInfoHandler.cs @@ -0,0 +1,425 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SkyArenaInfoHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/SkyArenaLoading"; + } + } + + private XSkyArenaBattleDocument doc = null; + + private uint _AutoCloseTweenTimerID = 0u; + + public static readonly uint TEAM_MEMBER_NUM = 3u; + + private IXUITweenTool m_Tween; + + private Transform m_End; + + private IXUISprite m_Res; + + private Transform m_ResFX; + + private IXUIButton m_Close; + + private IXUILabel m_Info; + + private IXUILabel m_InfoEnd; + + private XUIPool m_DetailLeftPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_DetailRightPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform[,] m_Detail = new Transform[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailLevel = new IXUILabel[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private IXUISprite[,] m_DetailAvatar = new IXUISprite[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private IXUISprite[,] m_DetailProfession = new IXUISprite[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailName = new IXUILabel[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private Transform[,] m_DetailStart = new Transform[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailPPT = new IXUILabel[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private Transform[,] m_DetailEnd = new Transform[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailDamage = new IXUILabel[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[,] m_DetailKillNum = new IXUILabel[2, (int)SkyArenaInfoHandler.TEAM_MEMBER_NUM]; + + private IXUILabel[] m_AllKillNum = new IXUILabel[2]; + + private IXUILabel[] m_AllDamage = new IXUILabel[2]; + + private XFx _fx = null; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XSkyArenaBattleDocument.uuID); + this.doc.InfoHandler = this; + this.m_Tween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Info = (base.transform.Find("Bg/Info").GetComponent("XUILabel") as IXUILabel); + this.m_InfoEnd = (this.m_Info.gameObject.transform.Find("End").GetComponent("XUILabel") as IXUILabel); + this.m_End = base.transform.Find("Bg/End"); + this.m_Res = (this.m_End.Find("Reward/Res").GetComponent("XUISprite") as IXUISprite); + this.m_ResFX = this.m_End.Find("Reward/FX"); + this.m_Close = (this.m_End.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = this.m_End.Find("Reward/Count/Left"); + this.m_AllKillNum[0] = (transform.Find("KillNum").GetComponent("XUILabel") as IXUILabel); + this.m_AllDamage[0] = (transform.Find("Damage").GetComponent("XUILabel") as IXUILabel); + Transform transform2 = this.m_End.Find("Reward/Count/Right"); + this.m_AllKillNum[1] = (transform2.Find("KillNum").GetComponent("XUILabel") as IXUILabel); + this.m_AllDamage[1] = (transform2.Find("Damage").GetComponent("XUILabel") as IXUILabel); + Transform transform3 = base.transform.Find("Bg/Left/DetailTpl"); + this.m_DetailLeftPool.SetupPool(null, transform3.gameObject, SkyArenaInfoHandler.TEAM_MEMBER_NUM, false); + Transform transform4 = base.transform.Find("Bg/Right/DetailTpl"); + this.m_DetailRightPool.SetupPool(null, transform4.gameObject, SkyArenaInfoHandler.TEAM_MEMBER_NUM, false); + this.InitDetail(this.m_DetailLeftPool, 0); + this.InitDetail(this.m_DetailRightPool, 1); + this.CloseTween(); + } + + private void InitDetail(XUIPool pool, int team) + { + pool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)SkyArenaInfoHandler.TEAM_MEMBER_NUM)) + { + GameObject gameObject = pool.FetchGameObject(false); + bool flag = team == 0; + if (flag) + { + this.m_Detail[team, num] = base.transform.Find(string.Format("Bg/Left/Detail{0}", num)); + } + bool flag2 = team == 1; + if (flag2) + { + this.m_Detail[team, num] = base.transform.Find(string.Format("Bg/Right/Detail{0}", num)); + } + XSingleton.singleton.AddChild(this.m_Detail[team, num], gameObject.transform); + this.m_DetailLevel[team, num] = (gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_DetailAvatar[team, num] = (gameObject.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_DetailProfession[team, num] = (gameObject.transform.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_DetailName[team, num] = (gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_DetailStart[team, num] = gameObject.transform.Find("Start"); + this.m_DetailPPT[team, num] = (this.m_DetailStart[team, num].Find("PPT").GetComponent("XUILabel") as IXUILabel); + this.m_DetailEnd[team, num] = gameObject.transform.Find("End"); + this.m_DetailDamage[team, num] = (this.m_DetailEnd[team, num].Find("Damage").GetComponent("XUILabel") as IXUILabel); + this.m_DetailKillNum[team, num] = (this.m_DetailEnd[team, num].Find("KillNum").GetComponent("XUILabel") as IXUILabel); + num++; + } + pool.ActualReturnAll(false); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + this.ClearShow(); + } + + private void ClearShow() + { + XSingleton.singleton.KillTimer(this._AutoCloseTweenTimerID); + this._AutoCloseTweenTimerID = 0u; + } + + protected override void OnHide() + { + this.ClearShow(); + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + base.OnHide(); + } + + public override void OnUnload() + { + this.doc.InfoHandler = null; + this.ClearShow(); + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + private void RefreshInfo() + { + } + + public void PlayStartTween() + { + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + } + this._fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_vs_Clip01", base.transform.Find("Fx"), false); + this.m_End.gameObject.SetActive(false); + this.m_InfoEnd.gameObject.SetActive(false); + bool flag2 = this.doc.Stage == 1u; + if (flag2) + { + this.m_Info.gameObject.SetActive(true); + this.m_Info.SetText(string.Format(XSingleton.singleton.GetString("SKY_ARENA_BEGIN_TIP"), this.doc.Floor)); + } + else + { + this.m_Info.gameObject.SetActive(false); + } + this.HideDetail(); + int num = 0; + int num2 = 0; + for (int i = 0; i < this.doc.UserIdToRole.BufferValues.Count; i++) + { + XSkyArenaBattleDocument.RoleData roleData = this.doc.UserIdToRole.BufferValues[i]; + bool flag3 = roleData.teamid == this.doc.MyTeam; + if (flag3) + { + this.SetStartDetail(roleData, 0, num); + num++; + } + else + { + this.SetStartDetail(roleData, 1, num2); + num2++; + } + } + this.m_Tween.PlayTween(true, -1f); + float interval = float.Parse(XSingleton.singleton.GetValue("SkyArenaStartAnimTime")) + 1f; + this._AutoCloseTweenTimerID = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.CloseTween), null); + } + + public void PlayEndTween(SkyCityEstimateInfo data) + { + bool flag = data == null; + if (!flag) + { + this.m_End.gameObject.SetActive(true); + this.m_InfoEnd.gameObject.SetActive(true); + this.m_Info.gameObject.SetActive(true); + this.doc.ShowAddStage = 0u; + bool flag2 = data.winteamid == 0u; + if (flag2) + { + this.m_Info.SetText(string.Format(XSingleton.singleton.GetString("SKY_ARENA_DRAW"), data.floor)); + this.m_ResFX.gameObject.SetActive(false); + this.m_Res.gameObject.SetActive(true); + this.m_Res.SetSprite("BattleEven"); + } + else + { + bool flag3 = (ulong)data.winteamid == (ulong)((long)this.doc.MyTeam); + if (flag3) + { + this.m_Info.SetText(string.Format(XSingleton.singleton.GetString("SKY_ARENA_WIN"), data.floor + 1u)); + this.m_ResFX.gameObject.SetActive(true); + this.m_Res.gameObject.SetActive(false); + this.m_Res.SetSprite("BattleWin"); + this.doc.ShowAddStage = 1u; + } + else + { + this.m_Info.SetText(string.Format(XSingleton.singleton.GetString("SKY_ARENA_FAIL"), data.floor)); + this.m_ResFX.gameObject.SetActive(false); + this.m_Res.gameObject.SetActive(true); + this.m_Res.SetSprite("BattleLose"); + } + } + bool flag4 = data.floor <= 0u; + if (flag4) + { + this.m_Info.SetText(""); + XSingleton.singleton.AddErrorLog("floor:" + data.floor, null, null, null, null, null); + } + ulong num = 0UL; + ulong num2 = 0UL; + this.HideDetail(); + int num3 = 0; + int num4 = 0; + for (int i = 0; i < data.info.Count; i++) + { + SkyCityEstimateBaseInfo skyCityEstimateBaseInfo = data.info[i]; + XSkyArenaBattleDocument.RoleData roleData; + bool flag5 = !this.doc.UserIdToRole.TryGetValue(skyCityEstimateBaseInfo.roleid, out roleData); + if (flag5) + { + XSingleton.singleton.AddErrorLog("UID:" + skyCityEstimateBaseInfo.roleid + " No Find!", null, null, null, null, null); + } + else + { + bool flag6 = roleData.teamid == this.doc.MyTeam; + if (flag6) + { + this.SetEndDetail(roleData, skyCityEstimateBaseInfo, 0, num3); + num += skyCityEstimateBaseInfo.damage; + num3++; + } + else + { + this.SetEndDetail(roleData, skyCityEstimateBaseInfo, 1, num4); + num2 += skyCityEstimateBaseInfo.damage; + num4++; + } + } + } + for (int j = 0; j < data.teamscore.Count; j++) + { + bool flag7 = (ulong)data.teamscore[j].teamid == (ulong)((long)this.doc.MyTeam); + if (flag7) + { + this.m_AllKillNum[0].SetText(data.teamscore[j].score.ToString()); + } + else + { + this.m_AllKillNum[1].SetText(data.teamscore[j].score.ToString()); + } + } + this.m_AllDamage[0].SetText(num.ToString()); + this.m_AllDamage[1].SetText(num2.ToString()); + bool flag8 = (ulong)this.doc.Stage == (ulong)((long)int.Parse(XSingleton.singleton.GetValue("SkyCityGames"))); + if (flag8) + { + this.m_Tween.RegisterOnFinishEventHandler(null); + this.m_InfoEnd.SetText(XSingleton.singleton.GetString("SKY_ARENA_BIG_REWARD_TIP")); + } + else + { + this.m_Tween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnEndMoveOver)); + this.m_InfoEnd.SetText(XSingleton.singleton.GetString("SKY_ARENA_SMALL_REWARD_TIP")); + } + this.m_Tween.PlayTween(true, -1f); + this.m_Close.RegisterClickEventHandler(null); + } + } + + private void SetStartDetail(XSkyArenaBattleDocument.RoleData data, int team, int index) + { + bool flag = (long)index >= (long)((ulong)SkyArenaInfoHandler.TEAM_MEMBER_NUM); + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "index:", + index, + " >= ", + SkyArenaInfoHandler.TEAM_MEMBER_NUM + }), null, null, null, null, null); + } + else + { + this.m_Detail[team, index].gameObject.SetActive(true); + this.m_DetailLevel[team, index].SetText(data.lv.ToString()); + this.m_DetailAvatar[team, index].SetSprite(XSingleton.singleton.GetProfHeadIcon((int)data.job)); + this.m_DetailProfession[team, index].SetSprite(XSingleton.singleton.GetProfIcon((int)data.job)); + this.m_DetailName[team, index].SetText(data.name); + this.m_DetailStart[team, index].gameObject.SetActive(true); + this.m_DetailPPT[team, index].SetText(data.ppt.ToString()); + this.m_DetailEnd[team, index].gameObject.SetActive(false); + } + } + + private void SetEndDetail(XSkyArenaBattleDocument.RoleData data, SkyCityEstimateBaseInfo endData, int team, int index) + { + bool flag = (long)index > (long)((ulong)SkyArenaInfoHandler.TEAM_MEMBER_NUM); + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "index:", + index, + " > ", + SkyArenaInfoHandler.TEAM_MEMBER_NUM + }), null, null, null, null, null); + } + else + { + this.m_Detail[team, index].gameObject.SetActive(true); + this.m_DetailLevel[team, index].SetText(data.lv.ToString()); + this.m_DetailAvatar[team, index].SetSprite(XSingleton.singleton.GetProfHeadIcon((int)data.job)); + this.m_DetailProfession[team, index].SetSprite(XSingleton.singleton.GetProfIcon((int)data.job)); + this.m_DetailName[team, index].SetText(data.name); + this.m_DetailStart[team, index].gameObject.SetActive(false); + this.m_DetailEnd[team, index].gameObject.SetActive(true); + this.m_DetailDamage[team, index].SetText(endData.damage.ToString()); + this.m_DetailKillNum[team, index].SetText(endData.killer.ToString()); + } + } + + private void HideDetail() + { + for (int i = 0; i < 2; i++) + { + int num = 0; + while ((long)num < (long)((ulong)SkyArenaInfoHandler.TEAM_MEMBER_NUM)) + { + this.m_Detail[i, num].gameObject.SetActive(false); + num++; + } + } + } + + private void OnEndMoveOver(IXUITweenTool tween) + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + this.CloseTween(); + DlgBase.singleton.ShowTip(XSingleton.singleton.GetString("SKY_ARENA_ROUND_ALL_END_REST")); + this.doc.StageEnd(); + return true; + } + + private void CloseTween(object param) + { + this.CloseTween(); + } + + public void CloseTween() + { + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + bool flag2 = this.m_Tween != null; + if (flag2) + { + this.m_Tween.gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaInfoHandler.cs.meta b/Client/Assets/Scripts/XMainClient/SkyArenaInfoHandler.cs.meta new file mode 100644 index 00000000..b3ef3031 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaInfoHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8edeed6cd4629c54581f65a875accc2b +timeCreated: 1611404132 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaWaitHandler.cs b/Client/Assets/Scripts/XMainClient/SkyArenaWaitHandler.cs new file mode 100644 index 00000000..ed6185f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaWaitHandler.cs @@ -0,0 +1,220 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SkyArenaWaitHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SkyArena/SkyArenaReadyArea"; + } + } + + private XSkyArenaEntranceDocument doc = null; + + private PointRewardHandler _PointRewardHandler; + + private XLeftTimeCounter _CDCounter; + + private bool isWaitEnd = false; + + private bool isLeftTime = true; + + private Transform m_Bg; + + private IXUIButton m_Close; + + private IXUISprite m_Help; + + private IXUILabel m_MapName; + + private IXUILabel m_Info; + + private IXUILabel m_Text; + + private IXUIButton m_RewardBtn; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XSkyArenaEntranceDocument.uuID); + this.doc.WaitHandler = this; + this.m_Bg = base.transform.Find("Bg"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUISprite") as IXUISprite); + this.m_MapName = (base.transform.Find("Bg/MapName").GetComponent("XUILabel") as IXUILabel); + this.m_Info = (base.transform.Find("Bg/Help/Info").GetComponent("XUILabel") as IXUILabel); + this.m_Text = (base.transform.Find("Bg/Help/Text").GetComponent("XUILabel") as IXUILabel); + this.m_RewardBtn = (base.transform.Find("Bg/Reward").GetComponent("XUIButton") as IXUIButton); + this._CDCounter = new XLeftTimeCounter(this.m_Info, false); + this.m_Text.SetText(""); + this.m_Info.SetText(""); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + this.m_Help.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpClicked)); + this.m_RewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + string @string; + if (bInTeam) + { + @string = XStringDefineProxy.GetString("SKY_ARENA_LEAVE_TEAM_TIP"); + } + else + { + @string = XStringDefineProxy.GetString("SKY_ARENA_LEAVE_SINGLE_TIP"); + } + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Leave)); + return true; + } + + private bool _Leave(IXUIButton btn) + { + this.isWaitEnd = false; + XSingleton.singleton.ReqLeaveScene(); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void OnHelpClicked(IXUISprite sp) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + if (flag) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_MulActivity_SkyArena); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_HORSE; + if (flag2) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_MulActivity_Race); + } + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY; + if (flag3) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_BigMelee); + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_READY; + if (flag4) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Battlefield); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshMapName(0); + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + if (flag) + { + this.m_RewardBtn.gameObject.SetActive(true); + } + else + { + this.m_RewardBtn.gameObject.SetActive(false); + } + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this.isLeftTime = true; + this.doc.WaitHandler = null; + DlgHandlerBase.EnsureUnload(ref this._PointRewardHandler); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._CDCounter.Update(); + } + + public void RefreshMapName(int param = 0) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY; + if (flag) + { + XBigMeleeEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + this.m_MapName.SetText(string.Format(XSingleton.singleton.GetString("BIG_MELEE_WAIT_TITLE"), specificDocument.GroupID)); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_READY; + if (flag2) + { + this.m_MapName.SetText(string.Format(XSingleton.singleton.GetString("BATTLEFIELD_WAIT_TITLE"), param)); + } + else + { + this.m_MapName.SetText(XSingleton.singleton.SceneData.Comment); + } + } + + public void StartTime(uint time) + { + bool flag = this.isLeftTime; + if (flag) + { + this._CDCounter.SetLeftTime(time, -1); + this._CDCounter.SetFinishEventHandler(new TimeOverFinishEventHandler(this._OnLeftTimeOver), null); + this.m_Text.SetText(XSingleton.singleton.GetString("SKY_ARENA_BATTLE_LEFTTIME")); + XSingleton.singleton.AddGreenLog("Time:" + time, null, null, null, null, null); + } + } + + private void _OnLeftTimeOver(object o) + { + this.isLeftTime = false; + bool flag = this.isWaitEnd; + if (flag) + { + this.m_Text.SetText(XSingleton.singleton.GetString("SKY_ARENA_MATCHING_END")); + } + else + { + this.m_Text.SetText(XSingleton.singleton.GetString("SKY_ARENA_MATCHING")); + } + } + + public void SetWaitEnd() + { + this.isWaitEnd = true; + this.m_Text.SetText(XSingleton.singleton.GetString("SKY_ARENA_MATCHING_END")); + } + + public void NextWaitStart() + { + this.isLeftTime = true; + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_READY; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("BATTLEFIELD_NEXT_WAIT"), "fece00"); + } + } + + public bool OnRewardClicked(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this._PointRewardHandler, this.m_Bg, false, null); + DlgBase.singleton.OpenReward(this._PointRewardHandler); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SkyArenaWaitHandler.cs.meta b/Client/Assets/Scripts/XMainClient/SkyArenaWaitHandler.cs.meta new file mode 100644 index 00000000..86e78922 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SkyArenaWaitHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b348ef72560513429d743bf85ca7d1e +timeCreated: 1611403993 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SmeltAttr.cs b/Client/Assets/Scripts/XMainClient/SmeltAttr.cs new file mode 100644 index 00000000..eeaef81f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SmeltAttr.cs @@ -0,0 +1,105 @@ +using System; + +namespace XMainClient +{ + internal class SmeltAttr + { + public bool IsForge + { + get + { + return this.isForge; + } + } + + public uint Min + { + get + { + return this.min; + } + } + + public uint Max + { + get + { + return this.max; + } + } + + public uint AttrID + { + get + { + return this.attrID; + } + } + + public uint Index + { + get + { + return this.index; + } + } + + public uint Slot + { + get + { + return this.slot; + } + } + + public uint D_value + { + get + { + return this.max - this.min; + } + } + + public bool IsFull + { + get + { + return this.RealValue >= this.max; + } + } + + private bool isForge; + + private uint min; + + private uint max; + + private uint attrID; + + private uint index; + + private uint slot; + + public bool IsReplace; + + public uint RealValue; + + public string ColorStr; + + public int LastValue = -1; + + public uint SmeltResult = 0u; + + public bool IsCanSmelt = true; + + public SmeltAttr(uint id, uint min, uint max, uint index, uint slot, bool isForge) + { + this.attrID = id; + this.min = min; + this.max = max; + this.index = index; + this.slot = slot; + this.isForge = isForge; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SmeltAttr.cs.meta b/Client/Assets/Scripts/XMainClient/SmeltAttr.cs.meta new file mode 100644 index 00000000..c7e36d73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SmeltAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 61bee68c168fd434ab316fd15f9b14bd +timeCreated: 1611403839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SocketState.cs b/Client/Assets/Scripts/XMainClient/SocketState.cs new file mode 100644 index 00000000..7ee8b4ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SocketState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum SocketState + { + State_Closed, + State_Connecting, + State_Connected + } +} diff --git a/Client/Assets/Scripts/XMainClient/SocketState.cs.meta b/Client/Assets/Scripts/XMainClient/SocketState.cs.meta new file mode 100644 index 00000000..d60de8b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SocketState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca7990db8ee16c443909f9dc6e6be0e1 +timeCreated: 1611404541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SpActivityNode.cs b/Client/Assets/Scripts/XMainClient/SpActivityNode.cs new file mode 100644 index 00000000..dc4659cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpActivityNode.cs @@ -0,0 +1,14 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class SpActivityNode + { + public SuperActivityTask.RowData row; + + public uint state; + + public uint progress; + } +} diff --git a/Client/Assets/Scripts/XMainClient/SpActivityNode.cs.meta b/Client/Assets/Scripts/XMainClient/SpActivityNode.cs.meta new file mode 100644 index 00000000..f68d9bcc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpActivityNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a5f00f347f29b7c4eae4b7f2c31b5285 +timeCreated: 1611404287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SpectateBehaviour.cs b/Client/Assets/Scripts/XMainClient/SpectateBehaviour.cs new file mode 100644 index 00000000..b5997ab2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpectateBehaviour.cs @@ -0,0 +1,95 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SpectateBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_RefreshBtn; + + public IXUISprite m_PreviousBtn; + + public IXUIButton m_BroadcastCamera; + + public IXUISprite m_NextBtn; + + public IXUILabel m_PageNum; + + public GameObject m_EmptyTips; + + public IXUILabel m_PKTips; + + public GameObject m_MyLiveUpView; + + public GameObject m_MyLiveDownView; + + public XUIPool m_SpectateLivePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_MyLivePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_SpectateTabs = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUITabControl m_tabControl = new XUITabControl(); + + public GameObject m_SpectateFrame; + + public GameObject m_MyLiveRecordFrame; + + public GameObject m_VisText; + + public GameObject m_UnVisText; + + public GameObject m_SettingFrame; + + public IXUIButton m_SettingBtn; + + public IXUIButton m_SettingCloseBtn; + + public IXUILabel m_SettingDesc; + + public IXUICheckBox m_SettingAllow; + + public IXUICheckBox m_SettingDeny; + + public IXUIButton m_SettingSureBtn; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BroadcastCamera = (base.transform.Find("Bg/camera").GetComponent("XUIButton") as IXUIButton); + this.m_SpectateFrame = base.transform.Find("Bg/SpectateFrame").gameObject; + this.m_MyLiveRecordFrame = base.transform.Find("Bg/MyLiveRecordFrame").gameObject; + Transform transform = base.transform.Find("Bg/Tabs/TabTpl"); + this.m_tabControl.SetTabTpl(transform); + transform = this.m_SpectateFrame.transform.Find("Tabs/tabTpl"); + this.m_SpectateTabs.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + transform = this.m_SpectateFrame.transform.Find("Right/View/itemTpl"); + this.m_SpectateLivePool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_RefreshBtn = (this.m_SpectateFrame.transform.Find("Right/Refresh").GetComponent("XUIButton") as IXUIButton); + this.m_PreviousBtn = (this.m_SpectateFrame.transform.Find("Right/Previous").GetComponent("XUISprite") as IXUISprite); + this.m_NextBtn = (this.m_SpectateFrame.transform.Find("Right/Next").GetComponent("XUISprite") as IXUISprite); + this.m_PageNum = (this.m_SpectateFrame.transform.Find("Right/Page").GetComponent("XUILabel") as IXUILabel); + this.m_EmptyTips = this.m_SpectateFrame.transform.Find("Right/Empty").gameObject; + this.m_PKTips = (this.m_SpectateFrame.transform.Find("Right/PKTips").GetComponent("XUILabel") as IXUILabel); + this.m_MyLiveUpView = this.m_MyLiveRecordFrame.transform.Find("UpView").gameObject; + this.m_MyLiveDownView = this.m_MyLiveRecordFrame.transform.Find("DownView").gameObject; + transform = this.m_MyLiveRecordFrame.transform.Find("DownView/itemTpl"); + this.m_MyLivePool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_SettingBtn = (base.transform.Find("Bg/BtnSetting").GetComponent("XUIButton") as IXUIButton); + this.m_SettingCloseBtn = (base.transform.Find("Bg/Setting/Close").GetComponent("XUIButton") as IXUIButton); + this.m_VisText = base.transform.Find("Bg/BtnSetting/StatusAllow").gameObject; + this.m_UnVisText = base.transform.Find("Bg/BtnSetting/StatusDeny").gameObject; + this.m_SettingFrame = base.transform.Find("Bg/Setting").gameObject; + this.m_SettingDesc = (base.transform.Find("Bg/Setting/Describe").GetComponent("XUILabel") as IXUILabel); + this.m_SettingAllow = (base.transform.Find("Bg/Setting/BtnAllow").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_SettingDeny = (base.transform.Find("Bg/Setting/BtnDeny").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_SettingSureBtn = (base.transform.Find("Bg/Setting/Ok").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SpectateBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/SpectateBehaviour.cs.meta new file mode 100644 index 00000000..879f807a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpectateBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74ab55aaf20bf4f43980d57044995cc9 +timeCreated: 1611403944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SpectateHandler.cs b/Client/Assets/Scripts/XMainClient/SpectateHandler.cs new file mode 100644 index 00000000..8d9bd4a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpectateHandler.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SpectateHandler : DlgHandlerBase + { + private IXUILabel m_WatchNum; + + private IXUILabel m_CommendNum; + + private IXUIButton m_CommendBtn; + + private IXUIButton m_HideBtn; + + private IXUIButton m_ShowBtn; + + private double _lastCommendTime = 0.0; + + private bool _isShow; + + private ulong COMMENDCDTIME; + + private int COMMENDTIMESLIMIT; + + public int CurrClickTimes = 0; + + private List _fxFireworkList = new List(); + + private Transform m_EffectPos; + + protected override void Init() + { + base.Init(); + this.COMMENDCDTIME = (ulong)((long)XSingleton.singleton.GetInt("WatchCommendTimeSpan")); + this.COMMENDTIMESLIMIT = XSingleton.singleton.GetInt("WatchCommendTotalCount"); + this.m_WatchNum = (base.PanelObject.transform.Find("WatchNum").GetComponent("XUILabel") as IXUILabel); + this.m_CommendNum = (base.PanelObject.transform.Find("CommendNum").GetComponent("XUILabel") as IXUILabel); + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + specificDocument.GetTargetNum(false); + this.m_WatchNum.SetText((specificDocument.WatchNum + 1).ToString()); + this.m_CommendNum.SetText(specificDocument.CommendNum.ToString()); + XSingleton.singleton.AddLog("WatchNum = ", specificDocument.WatchNum.ToString(), " CommendNum = ", specificDocument.CommendNum.ToString(), null, null, XDebugColor.XDebug_None); + bool flag = specificDocument.WatchNum + 1 < specificDocument.WatchTarget && specificDocument.CommendNum < specificDocument.CommendTarget; + if (flag) + { + this.m_WatchNum.gameObject.SetActive(false); + this.m_CommendNum.gameObject.SetActive(false); + this._isShow = false; + XSingleton.singleton.AddLog("WatchNum and Commend Hide", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + this._isShow = true; + XSingleton.singleton.AddLog("WatchNum and Commend Show", null, null, null, null, null, XDebugColor.XDebug_None); + } + this.m_CommendBtn = (base.PanelObject.transform.Find("Zan").GetComponent("XUIButton") as IXUIButton); + this.m_HideBtn = (base.PanelObject.transform.Find("Hide/hide").GetComponent("XUIButton") as IXUIButton); + this.m_ShowBtn = (base.PanelObject.transform.Find("Hide/unhide").GetComponent("XUIButton") as IXUIButton); + this.m_ShowBtn.gameObject.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + this.m_EffectPos = base.PanelObject.transform.Find("Effect"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ShowBtn.ID = 1UL; + this.m_HideBtn.ID = 0UL; + this.m_ShowBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowOrHideBtnClick)); + this.m_HideBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowOrHideBtnClick)); + this.m_CommendBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCommendBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + for (int i = this._fxFireworkList.Count - 1; i >= 0; i--) + { + bool flag = this._fxFireworkList[i] != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fxFireworkList[i], true); + } + } + this._fxFireworkList.Clear(); + base.OnHide(); + } + + public override void OnUnload() + { + for (int i = this._fxFireworkList.Count - 1; i >= 0; i--) + { + bool flag = this._fxFireworkList[i] != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fxFireworkList[i], true); + } + } + this._fxFireworkList.Clear(); + base.OnUnload(); + } + + public bool OnShowOrHideBtnClick(IXUIButton btn) + { + bool flag = !DlgBase.singleton.IsVisible(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = btn.ID == 1UL; + if (flag2) + { + DlgBase.singleton.SpectateTeamMonitor.SetVisible(true); + this.m_ShowBtn.gameObject.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + this.m_HideBtn.gameObject.transform.localPosition = Vector3.zero; + } + else + { + DlgBase.singleton.SpectateTeamMonitor.SetVisible(false); + this.m_ShowBtn.gameObject.transform.localPosition = Vector3.zero; + this.m_HideBtn.gameObject.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + } + result = true; + } + return result; + } + + public bool OnCommendBtnClick(IXUIButton btn) + { + double nowTime = this.GetNowTime(); + ulong num = (ulong)(nowTime - this._lastCommendTime); + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag = this.CurrClickTimes < this.COMMENDTIMESLIMIT; + bool result; + if (flag) + { + bool flag2 = this.CurrClickTimes == 0; + if (flag2) + { + this._lastCommendTime = nowTime; + } + specificDocument.SendCommendBtnClick(); + result = true; + } + else + { + bool flag3 = num <= this.COMMENDCDTIME; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("Spectate_CommendCD_Tips"), this.COMMENDCDTIME - num + 1UL), "fece00"); + result = true; + } + else + { + this.CurrClickTimes = 0; + this._lastCommendTime = nowTime; + specificDocument.SendCommendBtnClick(); + result = true; + } + } + return result; + } + + public void CommendSuccess() + { + this.CurrClickTimes++; + XFx item = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_gz_xq", this.m_EffectPos, Vector3.zero, Vector3.one, 1f, true, 2f, true); + this._fxFireworkList.Add(item); + } + + public void OnMessageChange(int watchNum, int commendNum) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + specificDocument.WatchNum = watchNum; + specificDocument.CommendNum = commendNum; + bool isShow = this._isShow; + if (isShow) + { + this.m_WatchNum.SetText(watchNum.ToString()); + this.m_CommendNum.SetText(commendNum.ToString()); + } + else + { + bool flag = watchNum >= specificDocument.WatchTarget || commendNum >= specificDocument.CommendTarget; + if (flag) + { + XSingleton.singleton.AddLog("watchNum and commendNum are enough now.", null, null, null, null, null, XDebugColor.XDebug_None); + this._isShow = true; + this.m_WatchNum.gameObject.SetActive(true); + this.m_CommendNum.gameObject.SetActive(true); + this.m_WatchNum.SetText(watchNum.ToString()); + this.m_CommendNum.SetText(commendNum.ToString()); + } + } + } + + private double GetNowTime() + { + return (double)(DateTime.Now.Ticks / 10000000L); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SpectateHandler.cs.meta b/Client/Assets/Scripts/XMainClient/SpectateHandler.cs.meta new file mode 100644 index 00000000..7cdd10bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpectateHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f271c0fb253b9cc46b0c0ad73cc4690a +timeCreated: 1611404843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SpectateLevelRewardBehaviour.cs b/Client/Assets/Scripts/XMainClient/SpectateLevelRewardBehaviour.cs new file mode 100644 index 00000000..de530123 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpectateLevelRewardBehaviour.cs @@ -0,0 +1,80 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class SpectateLevelRewardBehaviour : DlgBehaviourBase + { + private static uint maxPlayerNum = 4u; + + private static uint maxMessageNum = 8u; + + public int MemberHeight; + + public int MemberStartY; + + public IXUISprite m_BackToMainCityBtn; + + public IXUILabel m_WatchNum; + + public IXUISprite m_GoOnBtn; + + public IXUILabel m_GoOnBtnText; + + public IXUILabel m_CommendNum; + + public XUIPool m_TitlePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_MemberPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_DetailPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_SplitPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_LabelPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_StarPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_WinLosePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_MVP; + + public Transform m_TitleParent; + + public Transform m_MemberParent; + + private void Awake() + { + this.m_BackToMainCityBtn = (base.transform.Find("Bg/BackBtn").GetComponent("XUISprite") as IXUISprite); + this.m_GoOnBtn = (base.transform.Find("Bg/GoonBtn").GetComponent("XUISprite") as IXUISprite); + this.m_GoOnBtnText = (this.m_GoOnBtn.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_WatchNum = (base.transform.Find("Bg/WatchNum").GetComponent("XUILabel") as IXUILabel); + this.m_CommendNum = (base.transform.Find("Bg/CommendNum").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("AllTpl/Title"); + this.m_TitlePool.SetupPool(transform.parent.gameObject, transform.gameObject, SpectateLevelRewardBehaviour.maxMessageNum, false); + transform = base.transform.Find("AllTpl/Member"); + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + this.MemberHeight = ixuisprite.spriteHeight; + this.MemberStartY = (int)(transform.localPosition.y + 0.5f); + this.m_MemberPool.SetupPool(transform.parent.gameObject, transform.gameObject, SpectateLevelRewardBehaviour.maxPlayerNum, false); + transform = base.transform.Find("Panel/View"); + this.MemberStartY -= (int)(transform.localPosition.y + 0.5f); + transform = base.transform.Find("AllTpl/Detail"); + this.m_DetailPool.SetupPool(transform.parent.gameObject, transform.gameObject, SpectateLevelRewardBehaviour.maxPlayerNum, false); + transform = base.transform.Find("AllTpl/Split"); + this.m_SplitPool.SetupPool(transform.parent.gameObject, transform.gameObject, SpectateLevelRewardBehaviour.maxPlayerNum * SpectateLevelRewardBehaviour.maxMessageNum, false); + transform = base.transform.Find("AllTpl/Label"); + this.m_LabelPool.SetupPool(transform.parent.gameObject, transform.gameObject, SpectateLevelRewardBehaviour.maxPlayerNum * SpectateLevelRewardBehaviour.maxMessageNum, false); + transform = base.transform.Find("AllTpl/Star"); + this.m_StarPool.SetupPool(transform.parent.gameObject, transform.gameObject, SpectateLevelRewardBehaviour.maxPlayerNum * 3u, false); + transform = base.transform.Find("AllTpl/WinLose"); + this.m_WinLosePool.SetupPool(transform.parent.gameObject, transform.gameObject, SpectateLevelRewardBehaviour.maxPlayerNum, false); + this.m_MVP = base.transform.Find("AllTpl/MVP").gameObject; + this.m_TitleParent = base.transform.Find("Panel/Title"); + this.m_MemberParent = base.transform.Find("Panel/View"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SpectateLevelRewardBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/SpectateLevelRewardBehaviour.cs.meta new file mode 100644 index 00000000..46d54b07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpectateLevelRewardBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24dcea70fd676c84991b97b7d536cce4 +timeCreated: 1611403462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SpriteHandlerTag.cs b/Client/Assets/Scripts/XMainClient/SpriteHandlerTag.cs new file mode 100644 index 00000000..01bbfc9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpriteHandlerTag.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + public enum SpriteHandlerTag + { + Main, + Lottery, + Fight, + Resolve, + Detail, + Shop + } +} diff --git a/Client/Assets/Scripts/XMainClient/SpriteHandlerTag.cs.meta b/Client/Assets/Scripts/XMainClient/SpriteHandlerTag.cs.meta new file mode 100644 index 00000000..c02b4097 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpriteHandlerTag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87ac79320a4d4d048b68f1ad572dd232 +timeCreated: 1611404080 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SpriteQuality.cs b/Client/Assets/Scripts/XMainClient/SpriteQuality.cs new file mode 100644 index 00000000..83a3cabe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpriteQuality.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal enum SpriteQuality + { + C = 1, + B, + A, + S, + L, + MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/SpriteQuality.cs.meta b/Client/Assets/Scripts/XMainClient/SpriteQuality.cs.meta new file mode 100644 index 00000000..770eb290 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SpriteQuality.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e75b5bb8b3b6ef24f8ebecc40d99dac2 +timeCreated: 1611404749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/StageRankInfo.cs b/Client/Assets/Scripts/XMainClient/StageRankInfo.cs new file mode 100644 index 00000000..7f70c964 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/StageRankInfo.cs @@ -0,0 +1,40 @@ +using System; + +namespace XMainClient +{ + internal class StageRankInfo + { + public int Rank + { + get + { + switch (this._rank) + { + case 0: + return 0; + case 1: + case 2: + case 4: + return 1; + case 7: + return 3; + } + return 2; + } + } + + public int RankValue + { + get + { + return this._rank; + } + set + { + this._rank = value; + } + } + + private int _rank; + } +} diff --git a/Client/Assets/Scripts/XMainClient/StageRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/StageRankInfo.cs.meta new file mode 100644 index 00000000..5905a867 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/StageRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14268b413048ca64aafd9b185982e948 +timeCreated: 1611403253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/StrengthAuxData.cs b/Client/Assets/Scripts/XMainClient/StrengthAuxData.cs new file mode 100644 index 00000000..3ce79ed7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/StrengthAuxData.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + public class StrengthAuxData + { + public int Id + { + get + { + return this.m_StrengthenData.BQID; + } + } + + public uint FightNum + { + get + { + return this.m_iFightNum; + } + set + { + this.m_iFightNum = value; + this._fightPercent = 0.0; + } + } + + public double FightPercent + { + get + { + return this._fightPercent; + } + set + { + this._fightPercent = value; + } + } + + public FpStrengthNew.RowData StrengthenData + { + get + { + return this.m_StrengthenData; + } + } + + public bool IsShow + { + get + { + bool flag = this.StrengthenData == null; + return !flag && XSingleton.singleton.IsSystemOpened((XSysDefine)this.StrengthenData.BQSystem) && (long)this.StrengthenData.ShowLevel <= (long)((ulong)XSingleton.singleton.XPlayerData.Level); + } + } + + private uint m_iFightNum = 0u; + + private double _fightPercent = 0.0; + + private FpStrengthNew.RowData m_StrengthenData = null; + + public StrengthAuxData(FpStrengthNew.RowData data) + { + this.m_StrengthenData = data; + } + + public double GetFightPercent(int recommendFight) + { + bool flag = recommendFight == 0; + double result; + if (flag) + { + result = 0.0; + } + else + { + result = this.FightNum / (double)recommendFight * 100.0; + } + return result; + } + + private FpStrengthNew.RowData GetData(int id) + { + List list = new List(); + for (int i = 0; i < XFPStrengthenDocument.StrengthenReader.Table.Length; i++) + { + FpStrengthNew.RowData rowData = XFPStrengthenDocument.StrengthenReader.Table[i]; + bool flag = rowData.BQID == id; + if (flag) + { + return rowData; + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/StrengthAuxData.cs.meta b/Client/Assets/Scripts/XMainClient/StrengthAuxData.cs.meta new file mode 100644 index 00000000..1cad7330 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/StrengthAuxData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14ecb4185fe6bf4469f44120f67a2617 +timeCreated: 1611403260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/StringTip.cs b/Client/Assets/Scripts/XMainClient/StringTip.cs new file mode 100644 index 00000000..3eeaf46f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/StringTip.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal struct StringTip + { + public string str; + + public uint id; + } +} diff --git a/Client/Assets/Scripts/XMainClient/StringTip.cs.meta b/Client/Assets/Scripts/XMainClient/StringTip.cs.meta new file mode 100644 index 00000000..5c0f2d3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/StringTip.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac53f4c2315b4fb43a91bc7941616359 +timeCreated: 1611404329 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SuperRiskMesType.cs b/Client/Assets/Scripts/XMainClient/SuperRiskMesType.cs new file mode 100644 index 00000000..e1e44cf2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SuperRiskMesType.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + public enum SuperRiskMesType + { + None, + ReqMapDynamicInfo, + NoticeMoveOver, + RequestDicing, + ChangeBoxState, + ReqBuyOnlineBox + } +} diff --git a/Client/Assets/Scripts/XMainClient/SuperRiskMesType.cs.meta b/Client/Assets/Scripts/XMainClient/SuperRiskMesType.cs.meta new file mode 100644 index 00000000..7698fcc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SuperRiskMesType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f3f0fbbcb5b7084ba6503998c272a3e +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SuperRiskSpeedCost.cs b/Client/Assets/Scripts/XMainClient/SuperRiskSpeedCost.cs new file mode 100644 index 00000000..9fabbcf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SuperRiskSpeedCost.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal struct SuperRiskSpeedCost + { + public int quality; + + public int time; + + public int itemID; + + public int itemCount; + } +} diff --git a/Client/Assets/Scripts/XMainClient/SuperRiskSpeedCost.cs.meta b/Client/Assets/Scripts/XMainClient/SuperRiskSpeedCost.cs.meta new file mode 100644 index 00000000..7ecd586f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SuperRiskSpeedCost.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 898bed660127841499de8f2f7abd8dae +timeCreated: 1611404088 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SuperRiskState.cs b/Client/Assets/Scripts/XMainClient/SuperRiskState.cs new file mode 100644 index 00000000..56d9e356 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SuperRiskState.cs @@ -0,0 +1,20 @@ +using System; + +namespace XMainClient +{ + public enum SuperRiskState + { + SuperRiskInvalid, + SuperRiskStart, + SuperRiskReadyToMove, + SuperRiskManualSelect, + SuperRiskRolling, + SuperRiskSendingRollMes, + SuperRiskDicing, + SuperRiskMoving, + SuperRiskEvent, + SuperRiskRefreshMap, + SuperRiskGetBoxAnimation, + SuperRiskEnd + } +} diff --git a/Client/Assets/Scripts/XMainClient/SuperRiskState.cs.meta b/Client/Assets/Scripts/XMainClient/SuperRiskState.cs.meta new file mode 100644 index 00000000..e6bdf02c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SuperRiskState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05c5d7a22bebb774d83f48c64f7a21ef +timeCreated: 1611402964 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/SysIntCache.cs b/Client/Assets/Scripts/XMainClient/SysIntCache.cs new file mode 100644 index 00000000..0e59a24e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SysIntCache.cs @@ -0,0 +1,64 @@ +using System; + +namespace XMainClient +{ + public class SysIntCache + { + public uint[] flags = null; + + public SysIntCache(int sysCount) + { + int num = sysCount / 32; + int num2 = sysCount % 32; + bool flag = num2 > 0; + if (flag) + { + num++; + } + this.flags = new uint[num]; + } + + public void SetFlag(int flag, bool add) + { + int num = flag / 32; + bool flag2 = num >= 0 && num < this.flags.Length; + if (flag2) + { + flag -= num * 4 * 8; + if (add) + { + this.flags[num] |= 1u << flag; + } + else + { + this.flags[num] &= ~(1u << flag); + } + } + } + + public bool IsFlag(int flag) + { + int num = flag / 32; + bool flag2 = num >= 0 && num < this.flags.Length; + bool result; + if (flag2) + { + flag -= num * 4 * 8; + result = ((this.flags[num] & 1u << flag) > 0u); + } + else + { + result = false; + } + return result; + } + + public void Clear() + { + for (int i = 0; i < this.flags.Length; i++) + { + this.flags[i] = 0u; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/SysIntCache.cs.meta b/Client/Assets/Scripts/XMainClient/SysIntCache.cs.meta new file mode 100644 index 00000000..baf4008b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/SysIntCache.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35e0dd5c5459dbc4e8afa09e0e911be1 +timeCreated: 1611403560 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TaJieHelpBehaviour.cs b/Client/Assets/Scripts/XMainClient/TaJieHelpBehaviour.cs new file mode 100644 index 00000000..4f8c99e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TaJieHelpBehaviour.cs @@ -0,0 +1,23 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class TaJieHelpBehaviour : DlgBehaviourBase + { + public GameObject m_parentGo; + + public IXUIButton m_closedBtn; + + public IXUIWrapContent m_wrapContent; + + private void Awake() + { + this.m_parentGo = base.gameObject; + this.m_closedBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_wrapContent = (base.transform.Find("Bg/detail/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TaJieHelpBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/TaJieHelpBehaviour.cs.meta new file mode 100644 index 00000000..aefa7791 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TaJieHelpBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b633aa465b85d8843be763650b722484 +timeCreated: 1611404397 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TaJieHelpDocument.cs b/Client/Assets/Scripts/XMainClient/TaJieHelpDocument.cs new file mode 100644 index 00000000..0f3589dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TaJieHelpDocument.cs @@ -0,0 +1,273 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TaJieHelpDocument : XDocComponent + { + public override uint ID + { + get + { + return TaJieHelpDocument.uuID; + } + } + + public static TaJieHelpDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(TaJieHelpDocument.uuID) as TaJieHelpDocument; + } + } + + public bool ShowHallBtn + { + get + { + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_TaJieHelp); + bool flag2 = !flag; + return !flag2 && this.m_showHallBtn; + } + set + { + bool flag = this.m_showHallBtn != value; + if (flag) + { + this.m_showHallBtn = value; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.Xsys_TaJieHelp, true); + } + } + } + + public int CurType + { + get + { + return this.m_curType; + } + set + { + this.m_curType = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("TaJieHelpDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static TaJieHelpTab m_tajieHelpTable = new TaJieHelpTab(); + + private static TaJieHelpUrl m_tajieHelpUrl = new TaJieHelpUrl(); + + private int m_sceneId = 0; + + private int m_dragonStatus = 0; + + private int m_dragonWeakLeftTime = 0; + + private float m_getMesTime = 0f; + + private bool m_showHallBtn = false; + + private int m_curType = 0; + + public static void Execute(OnLoadedCallback callback = null) + { + TaJieHelpDocument.AsyncLoader.AddTask("Table/TaJieHelpTab", TaJieHelpDocument.m_tajieHelpTable, false); + TaJieHelpDocument.AsyncLoader.AddTask("Table/TaJieHelpUrl", TaJieHelpDocument.m_tajieHelpUrl, false); + TaJieHelpDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public List GetTaJieHelpData() + { + List list = new List(); + bool inGuild = XGuildDocument.InGuild; + for (int i = 0; i < TaJieHelpDocument.m_tajieHelpTable.Table.Length; i++) + { + TaJieHelpTab.RowData rowData = TaJieHelpDocument.m_tajieHelpTable.Table[i]; + bool flag = rowData == null; + if (!flag) + { + bool flag2 = (ulong)rowData.SysID != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildHall)) || !inGuild; + if (flag2) + { + for (int j = 0; j < rowData.Type.Length; j++) + { + bool flag3 = (ulong)rowData.Type[j] == (ulong)((long)this.m_curType); + if (flag3) + { + list.Add(rowData); + } + } + } + } + } + return list; + } + + public string GetUrl() + { + TaJieHelpUrl.RowData urlTabData = this.GetUrlTabData(); + bool flag = urlTabData != null; + string result; + if (flag) + { + result = urlTabData.Url; + } + else + { + result = ""; + } + return result; + } + + public string GetSceneName() + { + TaJieHelpUrl.RowData urlTabData = this.GetUrlTabData(); + bool flag = urlTabData != null; + string result; + if (flag) + { + result = urlTabData.Name; + } + else + { + result = ""; + } + return result; + } + + private TaJieHelpUrl.RowData GetUrlTabData() + { + for (int i = 0; i < TaJieHelpDocument.m_tajieHelpUrl.Table.Length; i++) + { + TaJieHelpUrl.RowData rowData = TaJieHelpDocument.m_tajieHelpUrl.Table[i]; + bool flag = rowData == null; + if (!flag) + { + bool flag2 = (ulong)rowData.SceneId == (ulong)((long)this.m_sceneId); + if (flag2) + { + return rowData; + } + } + } + return null; + } + + public string GetdDragonTips() + { + bool flag = this.m_dragonStatus == 0; + string result; + if (flag) + { + result = XSingleton.singleton.GetString("TaJieHelpTips1"); + } + else + { + bool flag2 = this.m_dragonStatus == 1; + if (flag2) + { + result = string.Format("{0}{1}", XSingleton.singleton.GetString("TaJieHelpTips2"), this.GetTime()); + } + else + { + bool flag3 = this.m_dragonStatus == 2; + if (flag3) + { + result = XSingleton.singleton.GetString("TaJieHelpTips3"); + } + else + { + result = ""; + } + } + } + return result; + } + + public string GetTime() + { + float num = (float)this.m_dragonWeakLeftTime - Time.realtimeSinceStartup + this.m_getMesTime; + int num2 = (int)(num / 3600f); + int num3 = num2 % 24; + bool flag = num % 3600f != 0f; + if (flag) + { + num3++; + } + int num4 = num2 / 24; + bool flag2 = num4 == 0; + string result; + if (flag2) + { + result = string.Format("{0}{1}", num3, XSingleton.singleton.GetString("HOUR_DUARATION")); + } + else + { + result = string.Format("{0}{1}{2}{3}", new object[] + { + num4, + XSingleton.singleton.GetString("DAY_DUARATION"), + num3, + XSingleton.singleton.GetString("HOUR_DUARATION") + }); + } + return result; + } + + public void OnGetPtcMes(PtcG2C_TajieHelpNotify msg) + { + bool flag = msg.Data.sceneID == this.m_sceneId; + if (flag) + { + this.ShowHallBtn = msg.Data.isIconAppear; + this.m_dragonStatus = msg.Data.dragonStatus; + this.m_dragonWeakLeftTime = msg.Data.dragonWeakLeftTime; + this.m_getMesTime = Time.realtimeSinceStartup; + } + else + { + bool isIconAppear = msg.Data.isIconAppear; + if (isIconAppear) + { + this.m_sceneId = msg.Data.sceneID; + this.m_curType = msg.Data.sceneType; + this.m_dragonStatus = msg.Data.dragonStatus; + this.m_dragonWeakLeftTime = msg.Data.dragonWeakLeftTime; + this.m_getMesTime = Time.realtimeSinceStartup; + this.ShowHallBtn = msg.Data.isIconAppear; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TaJieHelpDocument.cs.meta b/Client/Assets/Scripts/XMainClient/TaJieHelpDocument.cs.meta new file mode 100644 index 00000000..d0643ca4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TaJieHelpDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f715dfd00954f1459fec55386c45272 +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TabIndex.cs b/Client/Assets/Scripts/XMainClient/TabIndex.cs new file mode 100644 index 00000000..447dbf94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TabIndex.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient +{ + internal enum TabIndex + { + ShowFriend, + ApplyFriend, + DragonPartner, + WeChatFriend, + QQFriend, + Partner, + Mentorship, + Wedding, + BlockFriend, + DragonGuild, + Count + } +} diff --git a/Client/Assets/Scripts/XMainClient/TabIndex.cs.meta b/Client/Assets/Scripts/XMainClient/TabIndex.cs.meta new file mode 100644 index 00000000..e18fd31d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TabIndex.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03677d104bf8d764a8fc0ff88762b7c2 +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TargetItemInfo.cs b/Client/Assets/Scripts/XMainClient/TargetItemInfo.cs new file mode 100644 index 00000000..9944f69f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TargetItemInfo.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + public class TargetItemInfo + { + public List subItems = new List(); + + public uint goalAwardsID; + + public uint doneIndex; + + public uint gottenAwardsIndex; + + public uint minLevel; + + public double totalvalue; + } +} diff --git a/Client/Assets/Scripts/XMainClient/TargetItemInfo.cs.meta b/Client/Assets/Scripts/XMainClient/TargetItemInfo.cs.meta new file mode 100644 index 00000000..b40e505b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TargetItemInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cf73083fb8c5a99418996320d0c7ceca +timeCreated: 1611404581 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TargetRewardType.cs b/Client/Assets/Scripts/XMainClient/TargetRewardType.cs new file mode 100644 index 00000000..367e9fc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TargetRewardType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum TargetRewardType + { + Athletics = 1, + Instance, + Social, + Activity + } +} diff --git a/Client/Assets/Scripts/XMainClient/TargetRewardType.cs.meta b/Client/Assets/Scripts/XMainClient/TargetRewardType.cs.meta new file mode 100644 index 00000000..8f0680be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TargetRewardType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24b262e1c5e2be3479fa2d52bc842247 +timeCreated: 1611403461 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team.meta b/Client/Assets/Scripts/XMainClient/Team.meta new file mode 100644 index 00000000..0e535901 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 7653051eeda09f944b98722f00f03595 +folderAsset: yes +timeCreated: 1611548937 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeam.cs b/Client/Assets/Scripts/XMainClient/Team/XTeam.cs new file mode 100644 index 00000000..a8c033b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeam.cs @@ -0,0 +1,255 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeam + { + public bool bAllReady + { + get + { + return this._bAllReady; + } + } + + public bool bLeaderChanged + { + get + { + return this.m_bLeaderChanged; + } + } + + public XTeamBriefData teamBrief = new XTeamBriefData(); + + public List members = new List(); + + public XTeamMember myData = null; + + private int joinIndex = 0; + + private bool _bAllReady = false; + + public XTeamMember leaderData = null; + + private bool m_bLeaderChanged; + + public void AddMember(TeamMember data) + { + for (int i = 0; i < this.members.Count; i++) + { + XTeamMember xteamMember = this.members[i]; + bool flag = xteamMember.uid == data.memberID; + if (flag) + { + XSingleton.singleton.AddErrorLog("Duplicated member: ", xteamMember.uid.ToString(), null, null, null, null); + return; + } + } + string leaderName = this.teamBrief.leaderName; + int num = this.joinIndex; + this.joinIndex = num + 1; + XTeamMember xteamMember2 = XTeamMember.CreateTeamMember(data, leaderName, num); + this.members.Add(xteamMember2); + bool flag2 = this.myData == null; + if (flag2) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag3 = xplayerData != null && xplayerData.EntityID == data.memberID; + if (flag3) + { + this.myData = xteamMember2; + } + } + bool bIsLeader = xteamMember2.bIsLeader; + if (bIsLeader) + { + this.leaderData = xteamMember2; + this.m_bLeaderChanged = true; + } + XSingleton.singleton.AddGreenLog("Add Teammember ", xteamMember2.name, ", uid = ", data.memberID.ToString(), " count = ", this.members.Count.ToString()); + } + + public string RemoveMember(ulong uid) + { + string text = ""; + for (int i = 0; i < this.members.Count; i++) + { + bool flag = this.members[i].uid == uid; + if (flag) + { + text = this.members[i].name; + this.members.RemoveAt(i); + XSingleton.singleton.AddGreenLog("Remove Teammember ", text, ", uid = ", uid.ToString(), ", count = ", this.members.Count.ToString()); + break; + } + } + bool flag2 = string.IsNullOrEmpty(text); + if (flag2) + { + XSingleton.singleton.AddGreenLog("Cant find teammember ", uid.ToString(), " when remove", null, null, null); + } + bool flag3 = this.leaderData != null && this.leaderData.uid == uid; + if (flag3) + { + this.leaderData = null; + } + return text; + } + + public void UpdateMember(TeamMember data) + { + for (int i = 0; i < this.members.Count; i++) + { + XTeamMember xteamMember = this.members[i]; + bool flag = xteamMember.uid == data.memberID; + if (flag) + { + ExpTeamMemberState state = xteamMember.state; + xteamMember.SetData(data, this.teamBrief.leaderName, xteamMember.joinIndex); + ExpTeamMemberState state2 = xteamMember.state; + bool flag2 = xteamMember == this.leaderData && !xteamMember.bIsLeader; + if (flag2) + { + this.leaderData = null; + } + bool flag3 = state == ExpTeamMemberState.EXPTEAM_IDLE && state2 == ExpTeamMemberState.EXPTEAM_DISAGREE; + if (flag3) + { + bool flag4 = this.teamBrief.rowData.Type == 15; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RefusePartner", new object[] + { + xteamMember.name + }), "fece00"); + } + else + { + bool flag5 = this.teamBrief.rowData.Type == 17; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RefuseCreateTeamLeague", new object[] + { + xteamMember.name + }), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_REFUSE_BATTLE", new object[] + { + xteamMember.name + }), "fece00"); + } + } + } + break; + } + } + } + + private void UpdateTeamState() + { + this._bAllReady = true; + foreach (XTeamMember xteamMember in this.members) + { + bool flag = xteamMember.position != XTeamPosition.TP_LEADER && xteamMember.state == ExpTeamMemberState.EXPTEAM_IDLE; + if (flag) + { + this._bAllReady = false; + break; + } + } + } + + public void PreUpdate() + { + this.m_bLeaderChanged = false; + } + + public void OnUpdate() + { + bool flag = this.myData == null; + if (flag) + { + XPlayer player = XSingleton.singleton.Player; + bool flag2 = player != null; + if (flag2) + { + for (int i = 0; i < this.members.Count; i++) + { + bool flag3 = this.members[i].uid == player.ID; + if (flag3) + { + this.myData = this.members[i]; + break; + } + } + } + } + } + + public void PostUpdate() + { + bool flag = this.leaderData == null || this.leaderData.name != this.teamBrief.leaderName; + if (flag) + { + bool flag2 = this.leaderData != null; + if (flag2) + { + this.leaderData.position = XTeamPosition.TP_MEMBER; + } + for (int i = 0; i < this.members.Count; i++) + { + bool flag3 = this.members[i].name == this.teamBrief.leaderName; + if (flag3) + { + this.leaderData = this.members[i]; + this.leaderData.position = XTeamPosition.TP_LEADER; + this.m_bLeaderChanged = true; + break; + } + } + } + } + + public void Reset() + { + this.members.Clear(); + this.myData = null; + this.leaderData = null; + } + + public XTeamMember FindMember(ulong uid) + { + for (int i = 0; i < this.members.Count; i++) + { + bool flag = this.members[i].uid == uid; + if (flag) + { + return this.members[i]; + } + } + return null; + } + + public void OnEntityMatchingInfo(AllyMatchRoleID data) + { + ulong roleID = data.roleID; + ulong allyID = data.allyID; + for (int i = 0; i < this.members.Count; i++) + { + bool flag = this.members[i].uid == roleID; + if (flag) + { + this.members[i].entityID = allyID; + break; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeam.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeam.cs.meta new file mode 100644 index 00000000..73f21a43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff8fbf732bcceb1498adf2caa4317a6b +timeCreated: 1611404947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamBloodUIData.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamBloodUIData.cs new file mode 100644 index 00000000..133ff362 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamBloodUIData.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XTeamBloodUIData + { + public ulong uid; + + public ulong entityID; + + public RoleType profession; + + public string name; + + public bool bIsLeader; + + public uint level; + + public bool isLeft = true; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamBloodUIData.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamBloodUIData.cs.meta new file mode 100644 index 00000000..b20b4585 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamBloodUIData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9afa11666acb67e4a8f2686437fc6386 +timeCreated: 1611404203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamBonusHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamBonusHandler.cs new file mode 100644 index 00000000..40755590 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamBonusHandler.cs @@ -0,0 +1,106 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamBonusHandler : DlgHandlerBase + { + private XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XTeamDocument _TeamDoc; + + private IXUIButton m_Root; + + private GameObject m_TitleActive; + + private GameObject m_TitleDisactive; + + private GameObject m_AttrActive; + + private GameObject m_AttrDisactive; + + protected override void Init() + { + base.Init(); + this.m_Root = (base.PanelObject.GetComponent("XUIButton") as IXUIButton); + this.m_TitleActive = base.PanelObject.transform.Find("TitleActive").gameObject; + this.m_TitleDisactive = base.PanelObject.transform.Find("TitleDisactive").gameObject; + Transform transform = base.PanelObject.transform.Find("AttrActive"); + Transform transform2 = base.PanelObject.transform.Find("AttrDisactive"); + this.m_AttrActive = transform.gameObject; + this.m_AttrDisactive = transform2.gameObject; + this._TeamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + string[] array = XSingleton.singleton.GetValue("TeamGuildBuff").Split(XGlobalConfig.SequenceSeparator); + int num = int.Parse(array[0]); + int num2 = int.Parse(array[1]); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(num, num2); + bool flag = buffData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("TeamGuildBuff: Buff data not found: [{0} {1}]", num, num2), null, null, null, null, null); + } + else + { + IXUILabel ixuilabel = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = transform2.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = transform2.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(buffData.BuffName); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(buffData.BuffName); + ixuilabel4.SetText(string.Empty); + } + } + + public void Refresh() + { + bool flag = !this._TeamDoc.bInTeam; + if (flag) + { + this._Enable(false); + } + else + { + XTeamMember myData = this._TeamDoc.MyTeam.myData; + bool flag2 = myData == null || myData.guildID == 0UL; + if (flag2) + { + this._Enable(false); + } + else + { + bool flag3 = false; + for (int i = 0; i < this._TeamDoc.MyTeam.members.Count; i++) + { + XTeamMember xteamMember = this._TeamDoc.MyTeam.members[i]; + bool flag4 = xteamMember != myData && xteamMember.guildID == myData.guildID; + if (flag4) + { + flag3 = true; + break; + } + } + bool flag5 = !flag3; + if (flag5) + { + this._Enable(false); + } + else + { + this._Enable(true); + } + } + } + } + + private void _Enable(bool bEnable) + { + this.m_TitleActive.SetActive(bEnable); + this.m_TitleDisactive.SetActive(!bEnable); + this.m_AttrActive.SetActive(bEnable); + this.m_AttrDisactive.SetActive(!bEnable); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamBonusHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamBonusHandler.cs.meta new file mode 100644 index 00000000..5ba2b00f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamBonusHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f56697ff1558354786eeef5f1b4eb7f +timeCreated: 1611403401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamBriefData.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamBriefData.cs new file mode 100644 index 00000000..8e392980 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamBriefData.cs @@ -0,0 +1,337 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamBriefData : XDataBase, IComparable + { + public ExpeditionTable.RowData rowData; + + public int currentMemberCount; + + public int totalMemberCount; + + public XTeamCategory category; + + public uint dungeonID = 0u; + + public int teamID; + + public string leaderName; + + public int leaderLevel = 44; + + public uint leaderPPT = 555u; + + public RoleType leaderProfession = RoleType.Role_Warrior; + + public XTeamState state = XTeamState.TS_NOT_FULL; + + public TeamState actualState = TeamState.TEAM_WAITING; + + public KMatchType matchType = KMatchType.KMT_NONE; + + public bool hasPwd; + + public string password; + + public string dungeonName; + + public string teamName; + + public uint dungeonLevel; + + public List members = new List(); + + public XTeamRelation relation = new XTeamRelation(); + + public uint teamPPT = 0u; + + public bool isTarja = false; + + public XGoldGroupData goldGroup = default(XGoldGroupData); + + public XTeamRift rift = null; + + public bool regression = false; + + public static int[] DefaultSortDirection = new int[] + { + 1, + 1, + -1, + 1, + 1, + 1 + }; + + public static TeamBriefSortType sortType = TeamBriefSortType.TBST_TEAM_ID; + + public static int dir = 1; + + public static string GetStrTeamPPT(double teamPPT, double myPPT) + { + bool flag = teamPPT == 0.0; + string result; + if (flag) + { + result = XStringDefineProxy.GetString("NONE"); + } + else + { + bool flag2 = myPPT == 0.0; + if (flag2) + { + myPPT = XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + } + bool flag3 = myPPT < teamPPT; + if (flag3) + { + result = XSingleton.singleton.StringCombine("[ff0000]", teamPPT.ToString(), "[-]"); + } + else + { + result = teamPPT.ToString(); + } + } + return result; + } + + public XTeamBriefData() + { + this.goldGroup.teamBrief = this; + } + + public string GetStrTeamPPT(double myPPT = 0.0) + { + return XTeamBriefData.GetStrTeamPPT(this.teamPPT, myPPT); + } + + private void _UpdateRelation() + { + this.relation.Reset(); + for (int i = 0; i < this.members.Count; i++) + { + XTeamMemberBriefData xteamMemberBriefData = this.members[i]; + bool flag = xteamMemberBriefData.uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + xteamMemberBriefData.relation.Reset(); + } + else + { + xteamMemberBriefData.relation.UpdateRelation(xteamMemberBriefData.uid, xteamMemberBriefData.guildid, xteamMemberBriefData.dragonguildid); + this.relation.Append(xteamMemberBriefData.relation.ActualRelation, true); + } + } + } + + public void SetMembers(List memberDatas) + { + this.isTarja = false; + this.regression = false; + for (int i = 0; i < memberDatas.Count; i++) + { + XTeamMemberBriefData data = XDataPool.GetData(); + data.SetData(memberDatas[i], this.leaderName); + this.members.Add(data); + this.regression = (this.regression || data.regression); + this.isTarja = (this.isTarja || (data.isTarja && XTeamDocument.InTarja(this.dungeonID, (uint)XFastEnumIntEqualityComparer.ToInt(data.profession)))); + } + this.members.Sort(); + this._UpdateRelation(); + } + + public void SetData(TeamBrief brief, XExpeditionDocument expDoc) + { + bool flag = this.dungeonID != brief.expID; + if (flag) + { + this.dungeonID = brief.expID; + this.category = expDoc.TeamCategoryMgr.GetCategoryByExpID((int)this.dungeonID); + this.rowData = expDoc.GetExpeditionDataByID((int)this.dungeonID); + bool flag2 = this.rowData != null; + if (flag2) + { + this.dungeonLevel = this.rowData.DisplayLevel; + this.dungeonName = XExpeditionDocument.GetFullName(this.rowData); + this.totalMemberCount = this.rowData.PlayerNumber; + } + else + { + XSingleton.singleton.AddErrorLog("cant find exp id: " + this.dungeonID.ToString(), null, null, null, null, null); + } + } + this.leaderName = brief.leaderName; + this.teamID = brief.teamID; + this.leaderLevel = (int)brief.leaderLevel; + this.leaderPPT = brief.leaderPowerPoint; + this.leaderProfession = brief.leaderProfession; + this.currentMemberCount = brief.teamMemberCount; + this.password = brief.password; + this.hasPwd = brief.haspassword; + this.actualState = (TeamState)brief.teamState; + this.matchType = brief.matchtype; + this.teamName = XStringDefineProxy.GetString("TEAM_NAME", new object[] + { + this.leaderName + }); + this.regression = brief.kingback; + TeamState teamState = this.actualState; + if (teamState != TeamState.TEAM_IN_BATTLE) + { + if (teamState != TeamState.TEAM_VOTE) + { + bool flag3 = this.currentMemberCount < this.totalMemberCount; + if (flag3) + { + this.state = XTeamState.TS_NOT_FULL; + } + else + { + this.state = XTeamState.TS_FULL; + } + } + else + { + this.state = XTeamState.TS_VOTING; + } + } + else + { + this.state = XTeamState.TS_FIGHTING; + } + bool flag4 = brief.extrainfo != null; + if (flag4) + { + this.teamPPT = brief.extrainfo.pptlimit; + this.goldGroup.SetData(brief.extrainfo, this.rowData); + bool flag5 = brief.extrainfo.rift != null; + if (flag5) + { + bool flag6 = this.rift == null; + if (flag6) + { + this.rift = XDataPool.GetData(); + } + this.rift.SetData(brief.extrainfo.rift, this.rowData); + } + else + { + bool flag7 = this.rift != null; + if (flag7) + { + this.rift.Recycle(); + this.rift = null; + } + } + } + else + { + this.teamPPT = 0u; + this.goldGroup.bActive = false; + } + } + + public static int CompareToAccordingToRelation(XTeamBriefData left, XTeamBriefData right) + { + int num = XFastEnumIntEqualityComparer.ToInt(left.state).CompareTo(XFastEnumIntEqualityComparer.ToInt(right.state)); + bool flag = num == 0; + if (flag) + { + num = left.relation.CompareTo(right.relation); + } + bool flag2 = num == 0; + int result; + if (flag2) + { + result = left.CompareTo(right); + } + else + { + result = num; + } + return result; + } + + public int CompareTo(XTeamBriefData other) + { + int num = 0; + switch (XTeamBriefData.sortType) + { + case TeamBriefSortType.TBST_TEAM_NAME: + num = this.teamName.CompareTo(other.teamName); + break; + case TeamBriefSortType.TBST_DUNGEON_LEVEL: + num = -this.dungeonLevel.CompareTo(other.dungeonLevel); + break; + case TeamBriefSortType.TBST_MEMBER_COUNT: + num = this.currentMemberCount.CompareTo(other.currentMemberCount); + break; + case TeamBriefSortType.TBST_CATEGORY: + num = this.category.category.CompareTo(other.category.category); + break; + case TeamBriefSortType.TBST_DUNGEON_ID: + num = this.dungeonID.CompareTo(other.dungeonID); + break; + } + bool flag = num == 0; + if (flag) + { + num = XFastEnumIntEqualityComparer.ToInt(this.state).CompareTo(XFastEnumIntEqualityComparer.ToInt(other.state)); + } + bool flag2 = num == 0; + if (flag2) + { + num = this.relation.CompareTo(other.relation) * XTeamBriefData.dir; + } + bool flag3 = num == 0; + if (flag3) + { + double attr = XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + bool flag4 = attr >= this.teamPPT; + bool value = attr >= other.teamPPT; + num = -flag4.CompareTo(value); + } + bool flag5 = num == 0; + if (flag5) + { + num = this.hasPwd.CompareTo(other.hasPwd); + } + bool flag6 = num == 0; + if (flag6) + { + bool flag7 = this.rift != null && other.rift != null; + if (flag7) + { + num = -this.rift.floor.CompareTo(other.rift.floor); + } + } + bool flag8 = num == 0; + if (flag8) + { + num = this.teamID.CompareTo(other.teamID); + } + return num * XTeamBriefData.dir; + } + + public override void Recycle() + { + base.Recycle(); + for (int i = 0; i < this.members.Count; i++) + { + this.members[i].Recycle(); + } + this.members.Clear(); + bool flag = this.rift != null; + if (flag) + { + this.rift.Recycle(); + this.rift = null; + } + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamBriefData.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamBriefData.cs.meta new file mode 100644 index 00000000..a2f108ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamBriefData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 119d32daa52ad7048903b82ff457d97f +timeCreated: 1611403239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamCategory.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamCategory.cs new file mode 100644 index 00000000..c6152384 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamCategory.cs @@ -0,0 +1,248 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamCategory : IComparable + { + public string Name + { + get + { + return XTeamCategory.GetCategoryName(this.category); + } + } + + private XExpeditionDocument expDoc = null; + + private XGuildDocument guildDoc = null; + + private XLevelDocument levelDoc = null; + + private XDragonNestDocument dnDoc = null; + + private XLevelSealDocument levelSealDoc = null; + + private XOperatingActivityDocument operatingDoc = null; + + public int category; + + public List expList = new List(); + + private XTeamCategoryMgr m_Mgr; + + public static string GetCategoryName(int categoryID) + { + return XStringDefineProxy.GetString("TeamCategory" + categoryID.ToString()); + } + + public static int SortExp(ExpeditionTable.RowData left, ExpeditionTable.RowData right) + { + return left.SortID.CompareTo(right.SortID); + } + + public XTeamCategory(XTeamCategoryMgr mgr) + { + this.m_Mgr = mgr; + } + + public int CompareTo(XTeamCategory other) + { + return this.category.CompareTo(other.category); + } + + public bool HasOpened() + { + return this.GetOpenedExpCount() > 0; + } + + public bool IsExpOpened(ExpeditionTable.RowData rowData) + { + bool flag = rowData == null || XSingleton.singleton.XPlayerData == null; + bool result; + if (flag) + { + result = false; + } + else + { + uint level = XSingleton.singleton.XPlayerData.Level; + bool flag2 = (ulong)level < (ulong)((long)rowData.RequiredLevel); + if (flag2) + { + result = false; + } + else + { + bool flag3 = this.expDoc == null; + if (flag3) + { + this.expDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + } + bool flag4 = this.guildDoc == null; + if (flag4) + { + this.guildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + } + bool flag5 = this.levelDoc == null; + if (flag5) + { + this.levelDoc = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + } + bool flag6 = this.dnDoc == null; + if (flag6) + { + this.dnDoc = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + } + bool flag7 = this.levelSealDoc == null; + if (flag7) + { + this.levelSealDoc = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + } + bool flag8 = this.operatingDoc == null; + if (flag8) + { + this.operatingDoc = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + } + bool flag9 = rowData.LevelSealType > 0u && rowData.LevelSealType != this.levelSealDoc.SealType; + if (flag9) + { + result = false; + } + else + { + TeamLevelType type = (TeamLevelType)rowData.Type; + TeamLevelType teamLevelType = type; + if (teamLevelType <= TeamLevelType.TeamLevelFestival) + { + switch (teamLevelType) + { + case TeamLevelType.TeamLevelNest: + { + bool flag10 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Activity_Nest) && this.levelDoc.CanLevelOpen(this.expDoc.GetSceneIDByExpID(rowData.DNExpeditionID)) == SceneRefuseReason.Admit; + bool flag11 = !flag10; + if (flag11) + { + return false; + } + break; + } + case TeamLevelType.TeamLevelAbyss: + { + bool flag12 = this.levelDoc.CanLevelOpen(this.expDoc.GetSceneIDByExpID(rowData.DNExpeditionID)) == SceneRefuseReason.Admit; + bool flag13 = !flag12; + if (flag13) + { + return false; + } + break; + } + case (TeamLevelType)5: + break; + case TeamLevelType.TeamLevelDragonNest: + { + bool flag14 = !this.dnDoc.CheckCanFightByExpID((uint)rowData.DNExpeditionID); + if (flag14) + { + return false; + } + break; + } + case TeamLevelType.TeamLevelTeamTower: + { + bool flag15 = !this.expDoc.IsTeamTowerOpen(rowData.DNExpeditionID); + if (flag15) + { + return false; + } + break; + } + default: + switch (teamLevelType) + { + case TeamLevelType.TeamLevelGuildCamp: + { + bool flag16 = !this.guildDoc.bInGuild || (ulong)this.guildDoc.Level < (ulong)((long)rowData.GuildLevel); + if (flag16) + { + return false; + } + XGuildSmallMonsterDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + return specificDocument.IsOpen(rowData); + } + case TeamLevelType.TeamLevelWeekNest: + { + XWeekNestDocument doc = XWeekNestDocument.Doc; + bool flag17 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_WeekNest); + if (flag17) + { + return false; + } + XActivityDocument specificDocument2 = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + bool flag18 = specificDocument2.ServerOpenDay < XSingleton.singleton.GetSysOpenServerDay(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_WeekNest)); + if (flag18) + { + return false; + } + return rowData.DNExpeditionID == doc.CurDNid; + } + case TeamLevelType.TeamLevelTeamLeague: + { + XFreeTeamVersusLeagueDocument specificDocument3 = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + return specificDocument3.IsOpen; + } + case TeamLevelType.TeamLevelFestival: + return this.operatingDoc.CheckFestivalIsOpen(this.expDoc.GetSceneIDByExpID(rowData.DNExpeditionID)); + } + break; + } + } + else if (teamLevelType != TeamLevelType.TeamLevelWeekendParty) + { + if (teamLevelType == TeamLevelType.TeamLevelWedding) + { + return false; + } + if (teamLevelType == TeamLevelType.TeamLevelWeddingLicense) + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Wedding); + } + } + else + { + bool flag19 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_MulActivity_WeekendParty); + if (flag19) + { + return false; + } + XWeekendPartyDocument specificDocument4 = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + return specificDocument4.CheckIsOpen(this.expDoc.GetSceneIDByExpID(rowData.DNExpeditionID)); + } + result = true; + } + } + } + return result; + } + + public int GetOpenedExpCount() + { + int num = 0; + bool flag = this.expDoc == null; + if (flag) + { + this.expDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + } + for (int i = 0; i < this.expList.Count; i++) + { + bool flag2 = this.IsExpOpened(this.expList[i]); + if (flag2) + { + num++; + } + } + return num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamCategory.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamCategory.cs.meta new file mode 100644 index 00000000..3f4bf7c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamCategory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4715f319c70a6454da0c137b17096340 +timeCreated: 1611403652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamCategoryMgr.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamCategoryMgr.cs new file mode 100644 index 00000000..971e49b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamCategoryMgr.cs @@ -0,0 +1,146 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamCategoryMgr + { + public int LastestNoRankAbyssSceneID { get; set; } + + public List m_Categories = new List(); + + private Dictionary m_DicCate = new Dictionary(); + + private Dictionary m_DicExpCate = new Dictionary(); + + public void Init() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this.m_DicExpCate.Clear(); + this.m_DicCate.Clear(); + this.m_Categories.Clear(); + XTeamCategory xteamCategory = null; + for (int i = 0; i < XExpeditionDocument.ExpTable.Table.Length; i++) + { + ExpeditionTable.RowData rowData = XExpeditionDocument.ExpTable.Table[i]; + bool flag = rowData.Category == 0; + if (!flag) + { + bool flag2 = xteamCategory == null || xteamCategory.category != rowData.Category; + if (flag2) + { + xteamCategory = null; + for (int j = 0; j < this.m_Categories.Count; j++) + { + bool flag3 = this.m_Categories[j].category == rowData.Category; + if (flag3) + { + xteamCategory = this.m_Categories[j]; + break; + } + } + bool flag4 = xteamCategory == null; + if (flag4) + { + xteamCategory = new XTeamCategory(this); + xteamCategory.category = rowData.Category; + this.m_Categories.Add(xteamCategory); + this.m_DicCate[xteamCategory.category] = xteamCategory; + } + } + xteamCategory.expList.Add(rowData); + this.m_DicExpCate[rowData.DNExpeditionID] = xteamCategory; + } + } + this.m_Categories.Sort(); + for (int k = 0; k < this.m_Categories.Count; k++) + { + this.m_Categories[k].expList.Sort(new Comparison(XTeamCategory.SortExp)); + } + } + + public void RefreshAbyssStates() + { + this.LastestNoRankAbyssSceneID = 1073741824; + List list = ListPool.Get(); + XSingleton.singleton.GetSceneList(SceneType.SCENE_ABYSSS, list); + for (int i = 0; i < list.Count; i++) + { + int num = list[i]; + bool flag = num < this.LastestNoRankAbyssSceneID && XSingleton.singleton.GetRank(num) <= 0; + if (flag) + { + this.LastestNoRankAbyssSceneID = num; + } + } + ListPool.Release(list); + } + + public XTeamCategory GetCategoryByExpID(int expID) + { + XTeamCategory xteamCategory; + bool flag = this.m_DicExpCate.TryGetValue(expID, out xteamCategory); + XTeamCategory result; + if (flag) + { + result = xteamCategory; + } + else + { + result = null; + } + return result; + } + + public XTeamCategory FindCategory(int category) + { + XTeamCategory xteamCategory; + bool flag = this.m_DicCate.TryGetValue(category, out xteamCategory); + XTeamCategory result; + if (flag) + { + result = xteamCategory; + } + else + { + result = null; + } + return result; + } + + public bool IsExpOpened(ExpeditionTable.RowData rowData) + { + bool flag = rowData == null; + bool result; + if (flag) + { + result = false; + } + else + { + XTeamCategory xteamCategory = this.FindCategory(rowData.Category); + bool flag2 = xteamCategory == null; + result = (!flag2 && xteamCategory.IsExpOpened(rowData)); + } + return result; + } + + public bool IsExpOpening(ExpeditionTable.RowData rowData) + { + bool flag = rowData == null; + bool result; + if (flag) + { + result = false; + } + else + { + XTeamCategory xteamCategory = this.FindCategory(rowData.Category); + result = (xteamCategory != null && xteamCategory.HasOpened()); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamCategoryMgr.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamCategoryMgr.cs.meta new file mode 100644 index 00000000..7db0b6a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamCategoryMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf78b027775f77e4e874cb0cab0c07c4 +timeCreated: 1611404483 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamCreateTeamWindow.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamCreateTeamWindow.cs new file mode 100644 index 00000000..20958dae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamCreateTeamWindow.cs @@ -0,0 +1,62 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class XTeamCreateTeamWindow + { + private GameObject PanelObject; + + private XTeamDocument _doc; + + private IXUIInput m_Input; + + private IXUILabel m_Title; + + public XTeamCreateTeamWindow(GameObject panelGo) + { + this.PanelObject = panelGo; + this.m_Input = (this.PanelObject.transform.Find("CreateMenu/PwdInput").GetComponent("XUIInput") as IXUIInput); + this.m_Title = (this.PanelObject.transform.Find("CreateMenu/Dungeon").GetComponent("XUILabel") as IXUILabel); + this._doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.RegisterEvent(); + } + + public void RegisterEvent() + { + IXUIButton ixuibutton = this.PanelObject.transform.Find("CreateMenu/OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClicked)); + IXUIButton ixuibutton2 = this.PanelObject.transform.Find("CreateMenu/Cancel").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCancelBtnClicked)); + } + + public void Show() + { + this.PanelObject.SetActive(true); + this.m_Input.SetText(""); + this.m_Title.SetText(this._doc.currentDungeonName); + } + + public void Hide() + { + this.PanelObject.SetActive(false); + } + + private bool _OnOKBtnClicked(IXUIButton btn) + { + string text = this.m_Input.GetText(); + this._doc.password = text; + this._doc.ReqTeamOp(TeamOperate.TEAM_CREATE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + this.Hide(); + return true; + } + + private bool _OnCancelBtnClicked(IXUIButton btn) + { + this.Hide(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamCreateTeamWindow.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamCreateTeamWindow.cs.meta new file mode 100644 index 00000000..fff060e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamCreateTeamWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7f7aa16786e2bf4f953a14096a61a50 +timeCreated: 1611404293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamDocument.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamDocument.cs new file mode 100644 index 00000000..fd662356 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamDocument.cs @@ -0,0 +1,2016 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamDocument : XDocComponent + { + public override uint ID + { + get + { + return XTeamDocument.uuID; + } + } + + public List TeamList + { + get + { + return this._TeamList; + } + } + + public XExpeditionDocument ExpDoc + { + get + { + bool flag = this.m_ExpDoc == null; + if (flag) + { + this.m_ExpDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + } + return this.m_ExpDoc; + } + } + + public bool bVoting + { + get + { + return this._bVoting; + } + } + + public bool bAutoMatching + { + get + { + return this.m_bAutoMatching; + } + set + { + this.m_bAutoMatching = value; + } + } + + public KMatchType SoloMatchType + { + get + { + return this.m_SoloMatchType; + } + } + + public bool bSoloMatching + { + get + { + return this.m_SoloMatchType > KMatchType.KMT_NONE; + } + } + + public bool bMatching + { + get + { + bool bInTeam = this.bInTeam; + bool result; + if (bInTeam) + { + result = (this._MyTeam.teamBrief.matchType > KMatchType.KMT_NONE); + } + else + { + result = this.bSoloMatching; + } + return result; + } + } + + public XTeam MyTeam + { + get + { + return this._MyTeam; + } + set + { + this._MyTeam = value; + } + } + + public bool bInTeam + { + get + { + return this._MyTeam != null; + } + } + + public bool bIsLeader + { + get + { + return this._MyTeam != null && this._MyTeam.myData != null && this._MyTeam.myData.bIsLeader; + } + } + + public bool bIsHelper + { + get + { + return this._MyTeam != null && this._MyTeam.myData != null && this._MyTeam.myData.bIsHelper; + } + } + + public bool bIsTecket + { + get + { + return this._MyTeam != null && this._MyTeam.myData != null && this._MyTeam.myData.bIsTicket; + } + } + + public int MatchingTime + { + get + { + return this.m_nMatchingTime; + } + } + + public TeamBriefSortType TeamListSortType + { + get + { + return this.m_TeamListSortType; + } + set + { + bool flag = this.m_TeamListSortType != value; + if (flag) + { + this.m_TeamListSortDirection = XTeamBriefData.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(value)]; + } + else + { + this.m_TeamListSortDirection = -this.m_TeamListSortDirection; + } + this.m_TeamListSortType = value; + } + } + + public int TeamListSortDirection + { + get + { + return this.m_TeamListSortDirection; + } + } + + public HashSet TeamListSelectedCategories + { + get + { + return this.m_TeamListSelectedCategories; + } + } + + public bool IsTarja + { + get + { + return this._tarja > 0u; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("TeamDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static PveProfessionTable m_pveProfessionTables = new PveProfessionTable(); + + private static Dictionary m_pveProfessions = new Dictionary(); + + public XTeamListHandler TeamListView; + + public XMyTeamHandler MyTeamView; + + private List _TeamList = new List(); + + public XTeamListView AllListView; + + public XTeamDungeonSelectorHandler DungeonSelector; + + public ExpeditionTable.RowData currentExpInfo; + + public uint currentDungeonID; + + public string currentCategoryName; + + public string currentDungeonName; + + public TeamLevelType currentDungeonType = TeamLevelType.TeamLevelNone; + + public string teamLeagueName; + + private XExpeditionDocument m_ExpDoc = null; + + public SceneTable.RowData currentSceneData; + + public string password = ""; + + private bool _bVoting; + + private bool m_bAutoMatching = false; + + private KMatchType m_SoloMatchType = KMatchType.KMT_NONE; + + private XTeam _MyTeam; + + private bool bTryAutoJoin = false; + + private static bool bFromHyperLink = false; + + private float m_fMatchingTime = -1f; + + private int m_nMatchingTime = -1; + + private int m_AutoSelectFloatingLevel = -10; + + private int m_TeamListSortDirection = 1; + + private TeamBriefSortType m_TeamListSortType = TeamBriefSortType.TBST_MEMBER_COUNT; + + private HashSet m_TeamListSelectedCategories = new HashSet(); + + private uint _tarja = 0u; + + private bool m_bReqTeamListJustTarget; + + private static ButtonClickEventHandler _EnterHandler = null; + + private static IXUIButton _EnterButton = null; + + private static bool _bCanEnter = false; + + private static EventDelegate _EventDel; + + private struct XPreviousTeamData + { + public TeamState state; + + public int goldGroupIndex; + + public int goldGroupItemID; + + public bool bNewTeam; + + public string leaderName; + + public ExpeditionTable.RowData expData; + + private XTeamDocument doc; + + public XPreviousTeamData(XTeamDocument _doc) + { + this.doc = _doc; + this.state = TeamState.TEAM_WAITING; + this.goldGroupIndex = -1; + this.goldGroupItemID = 0; + this.bNewTeam = false; + this.leaderName = null; + this.expData = null; + } + + public void PreserveTeamData(XTeam team) + { + this.state = team.teamBrief.actualState; + this.goldGroupIndex = team.teamBrief.goldGroup.index; + this.goldGroupItemID = team.teamBrief.goldGroup.itemid; + this.leaderName = team.teamBrief.leaderName; + this.expData = team.teamBrief.rowData; + } + + public void CheckNewTeamData(XTeam team) + { + bool flag = this.state != team.teamBrief.actualState; + if (flag) + { + this.doc.ToggleVoting(team.teamBrief.actualState == TeamState.TEAM_VOTE); + } + bool flag2 = !this.bNewTeam && this.goldGroupIndex != team.teamBrief.goldGroup.index; + if (flag2) + { + int index = team.teamBrief.goldGroup.index; + bool flag3 = this.doc.currentExpInfo != null; + if (flag3) + { + bool flag4 = index < 0; + if (flag4) + { + bool flag5 = this.doc.MyTeam.myData.name == this.leaderName; + if (!flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TeamGoldGroupTurnedOff"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TeamGoldGroupTurnedOn", new object[] + { + XGoldGroupData.GetName(ref this.doc.currentExpInfo.CostType, index) + }), "fece00"); + } + } + } + } + } + + public void SortTeamListAndShow() + { + CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; + Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo(XSingleton.singleton.GetValue("Culture")); + bool bReqTeamListJustTarget = this.m_bReqTeamListJustTarget; + if (bReqTeamListJustTarget) + { + XTeamBriefData.dir = 1; + XTeamBriefData.sortType = TeamBriefSortType.TBST_MAX; + this._TeamList.Sort(new Comparison(XTeamBriefData.CompareToAccordingToRelation)); + } + else + { + XTeamBriefData.dir = this.m_TeamListSortDirection; + XTeamBriefData.sortType = this.m_TeamListSortType; + this._TeamList.Sort(); + } + Thread.CurrentThread.CurrentCulture = currentCulture; + bool flag = this.TeamListView != null && this.TeamListView.IsVisible(); + if (flag) + { + this.TeamListView.RefreshPage(); + } + bool flag2 = this.AllListView != null && this.AllListView.IsVisible(); + if (flag2) + { + this.AllListView.RefreshPage(); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XTeamDocument.AsyncLoader.AddTask("Table/PveProfession", XTeamDocument.m_pveProfessionTables, false); + XTeamDocument.AsyncLoader.Execute(callback); + } + + public static string GetProfessionKey(uint profession, uint sceneid) + { + return XSingleton.singleton.StringCombine(profession.ToString(), "_", sceneid.ToString()); + } + + public static void OnTableLoaded() + { + XTeamDocument.m_pveProfessions.Clear(); + int i = 0; + int num = XTeamDocument.m_pveProfessionTables.Table.Length; + while (i < num) + { + XTeamDocument.m_pveProfessions.Add(XTeamDocument.GetProfessionKey((uint)XTeamDocument.m_pveProfessionTables.Table[i].ProfessionID, XTeamDocument.m_pveProfessionTables.Table[i].SceneID), XTeamDocument.m_pveProfessionTables.Table[i]); + i++; + } + } + + public void SetTarja(uint tarja) + { + XSingleton.singleton.AddGreenLog("SetTarja:", tarja.ToString(), null, null, null, null); + this._tarja = tarja; + bool flag = this.MyTeamView != null && this.MyTeamView.IsVisible(); + if (flag) + { + this.MyTeamView.RefreshPage(); + } + bool flag2 = this.TeamListView != null && this.TeamListView.IsVisible(); + if (flag2) + { + this.TeamListView.RefreshPage(); + } + bool flag3 = this.AllListView != null && this.AllListView.IsVisible(); + if (flag3) + { + this.AllListView.RefreshPage(); + } + bool flag4 = this.DungeonSelector != null && this.DungeonSelector.IsVisible(); + if (flag4) + { + this.DungeonSelector.RefreshData(); + } + } + + public static PveProfessionTable.RowData GetPveProfession(uint sceneID, uint profession) + { + bool flag = sceneID == 0u || profession == 0u; + PveProfessionTable.RowData result; + if (flag) + { + result = null; + } + else + { + string professionKey = XTeamDocument.GetProfessionKey(profession, sceneID); + bool flag2 = !XTeamDocument.m_pveProfessions.ContainsKey(professionKey); + if (flag2) + { + result = null; + } + else + { + result = XTeamDocument.m_pveProfessions[professionKey]; + } + } + return result; + } + + public bool InTarja(uint profession) + { + return XTeamDocument.InTarja(this.currentDungeonID, profession); + } + + public static bool InTarja(uint dungeonID, uint profession) + { + return XTeamDocument.GetPveProfession(dungeonID, profession) != null; + } + + public bool ShowTarja(uint dungeonID) + { + bool isTarja = this.IsTarja; + bool result; + if (isTarja) + { + PveProfessionTable.RowData pveProfession = XTeamDocument.GetPveProfession(dungeonID, XSingleton.singleton.XPlayerData.TypeID); + bool flag = pveProfession == null; + if (flag) + { + result = false; + } + else + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID((int)dungeonID); + result = (expeditionDataByID != null && XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic) < expeditionDataByID.DisplayPPT); + } + } + else + { + result = this.IsTarja; + } + return result; + } + + public bool ShowTarja() + { + return this.ShowTarja(this.currentDungeonID); + } + + public bool TryGetPveProfessionPPT(bool isTarja, uint profression, ref uint ppt) + { + bool flag = !isTarja; + bool result; + if (flag) + { + result = false; + } + else + { + PveProfessionTable.RowData pveProfession = XTeamDocument.GetPveProfession(this.currentDungeonID, profression); + bool flag2 = pveProfession == null; + if (flag2) + { + result = false; + } + else + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID((int)this.currentDungeonID); + bool flag3 = expeditionDataByID == null; + if (flag3) + { + result = false; + } + else + { + bool flag4 = ppt < expeditionDataByID.DisplayPPT; + if (flag4) + { + ppt = expeditionDataByID.DisplayPPT; + result = true; + } + else + { + result = false; + } + } + } + } + return result; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._TeamList.Clear(); + this.currentExpInfo = null; + this.currentDungeonID = 0u; + this.currentDungeonName = string.Empty; + this.currentCategoryName = string.Empty; + this.currentDungeonType = TeamLevelType.TeamLevelNone; + this.m_nMatchingTime = -1; + this.m_AutoSelectFloatingLevel = XSingleton.singleton.GetInt("TeamAutoSelectFloatingLevel"); + this.m_SoloMatchType = KMatchType.KMT_NONE; + this.m_bAutoMatching = false; + this.TeamListSelectedCategories.Clear(); + this.TeamListSelectedCategories.Add(0); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_JoinTeam, new XComponent.XEventHandler(this._OnJoinTeam)); + base.RegisterEvent(XEventDefine.XEvent_LeaveTeam, new XComponent.XEventHandler(this._OnLeaveTeam)); + base.RegisterEvent(XEventDefine.XEvent_FriendInfoChange, new XComponent.XEventHandler(this._OnFriendInfoChanged)); + } + + public void InitTeamListSelection() + { + bool flag = this.TeamListSelectedCategories.Contains(0) && this.TeamListSelectedCategories.Count == 1; + if (flag) + { + List categories = this.ExpDoc.TeamCategoryMgr.m_Categories; + for (int i = 0; i < categories.Count; i++) + { + this.TeamListSelectedCategories.Add(categories[i].category); + } + } + } + + private bool _OnJoinTeam(XEventArgs e) + { + DlgBase.singleton.ClearInviteList(); + return true; + } + + private bool _OnLeaveTeam(XEventArgs e) + { + this.m_nMatchingTime = -1; + this.ToggleVoting(false); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.ShowTeamView(); + } + this._UpdateOtherUI(); + return true; + } + + private bool _OnFriendInfoChanged(XEventArgs e) + { + this.RefreshMyTeamView(); + return true; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + DlgBase.singleton._TaskNaviHandler.SetTeamMatching(this.bSoloMatching); + bool bInTeam = this.bInTeam; + if (bInTeam) + { + DlgBase.singleton._TaskNaviHandler.SetTeamMemberCount(this.MyTeam.members.Count); + } + else + { + DlgBase.singleton._TaskNaviHandler.SetTeamMemberCount(0); + } + } + else + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag2) + { + bool bInTeam2 = this.bInTeam; + if (bInTeam2) + { + bool flag3 = this.currentDungeonID != 2101u && this.currentDungeonID != 2102u && this.currentDungeonID != 2103u; + if (flag3) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_Team, EXStage.Hall); + } + } + } + } + } + + public bool TryChangeToExpID(int expID) + { + bool flag = (ulong)this.currentDungeonID == (ulong)((long)expID); + bool result; + if (flag) + { + result = false; + } + else + { + bool bInTeam = this.bInTeam; + if (bInTeam) + { + bool bIsLeader = this.bIsLeader; + if (bIsLeader) + { + this.ReqTeamOp(TeamOperate.TEAM_CHANGE_EPXTEAMID, (ulong)((long)expID), null, TeamMemberType.TMT_NORMAL, null); + result = true; + } + else + { + result = false; + } + } + else + { + bool flag2 = this.currentDungeonID > 0u; + this._SetCurrentDungeon(expID); + bool flag3 = flag2; + if (flag3) + { + this.CancelMatch(); + } + bool flag4 = this.TeamListView != null && this.TeamListView.IsVisible(); + if (flag4) + { + this.TeamListView.OnCurrentDungeonChanged(); + } + result = true; + } + } + return result; + } + + public void TryAutoSelectExp() + { + bool flag = this.SoloMatchType > KMatchType.KMT_NONE; + if (flag) + { + TeamLevelType teamLevelType = XTeamDocument.MatchType2TeamType(this.SoloMatchType); + bool flag2 = teamLevelType > TeamLevelType.TeamLevelNone; + if (flag2) + { + List expeditionList = this.ExpDoc.GetExpeditionList(teamLevelType); + bool flag3 = expeditionList != null && expeditionList.Count > 0; + if (flag3) + { + bool flag4 = this.TryChangeToExpID(expeditionList[0].DNExpeditionID); + if (flag4) + { + return; + } + } + } + } + bool flag5 = this.currentDungeonID > 0u; + if (!flag5) + { + uint level = XSingleton.singleton.XPlayerData.Level; + int num = 0; + int num2 = int.MaxValue; + int num3 = int.MaxValue; + for (int i = 0; i < this.ExpDoc.TeamCategoryMgr.m_Categories.Count; i++) + { + XTeamCategory xteamCategory = this.ExpDoc.TeamCategoryMgr.m_Categories[i]; + for (int j = 0; j < xteamCategory.expList.Count; j++) + { + ExpeditionTable.RowData rowData = xteamCategory.expList[j]; + bool flag6 = rowData == null; + if (!flag6) + { + int num4 = Math.Abs((int)(rowData.DisplayLevel - level)); + bool flag7 = num3 < num4; + if (!flag7) + { + bool flag8 = num4 == num3 && num2 < rowData.AutoSelectPriority; + if (!flag8) + { + bool flag9 = !xteamCategory.IsExpOpened(rowData); + if (!flag9) + { + num3 = num4; + num2 = rowData.AutoSelectPriority; + num = rowData.DNExpeditionID; + } + } + } + } + } + } + bool flag10 = num != 0; + if (flag10) + { + this.TryChangeToExpID(num); + } + } + } + + private void _SetCurrentDungeon(int dungeonID) + { + ExpeditionTable.RowData expeditionDataByID = this.ExpDoc.GetExpeditionDataByID(dungeonID); + bool flag = expeditionDataByID != null; + if (flag) + { + TeamLevelType type = (TeamLevelType)expeditionDataByID.Type; + this._SetCurrentTeamInfo(expeditionDataByID); + this.currentSceneData = null; + uint sceneIDByExpID = this.ExpDoc.GetSceneIDByExpID(dungeonID); + this.currentSceneData = XSingleton.singleton.GetSceneData(sceneIDByExpID); + bool flag2 = type == TeamLevelType.TeamLevelTeamTower; + if (flag2) + { + this.ExpDoc.ExpeditionId = expeditionDataByID.DNExpeditionID; + } + } + } + + private void _SetCurrentTeamInfo(ExpeditionTable.RowData rowData) + { + bool flag = this.currentDungeonID != (uint)rowData.DNExpeditionID; + if (flag) + { + bool flag2 = this.currentDungeonID == 0u; + this.currentExpInfo = rowData; + this.currentDungeonID = (uint)rowData.DNExpeditionID; + this.currentDungeonName = XExpeditionDocument.GetFullName(rowData); + this.currentDungeonType = (TeamLevelType)rowData.Type; + this.currentCategoryName = XTeamCategory.GetCategoryName(rowData.Category); + bool flag3 = !flag2 && this.bInTeam && !this.bIsLeader; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_LEADER_CHANGE_EXP", new object[] + { + this.currentDungeonName + }), "fece00"); + } + } + bool flag4 = this.MyTeamView != null && this.MyTeamView.IsVisible(); + if (flag4) + { + this.MyTeamView.RefreshButtonStates(); + } + bool flag5 = this.DungeonSelector != null && this.DungeonSelector.IsVisible(); + if (flag5) + { + this.DungeonSelector.SetCurrentDungeon(true); + } + } + + public XTeamBriefData GetTeamBriefByIndex(int index) + { + bool flag = index >= this._TeamList.Count; + XTeamBriefData result; + if (flag) + { + result = null; + } + else + { + result = this._TeamList[index]; + } + return result; + } + + public XTeamBriefData GetTeamBriefByID(int teamID) + { + for (int i = 0; i < this._TeamList.Count; i++) + { + bool flag = this._TeamList[i].teamID == teamID; + if (flag) + { + return this._TeamList[i]; + } + } + return null; + } + + public void ReqTeamList(bool bJustTarget) + { + this.m_bReqTeamListJustTarget = bJustTarget; + if (bJustTarget) + { + bool flag = this.currentDungeonID > 0u; + if (flag) + { + RpcC2M_FetchTeamListC2M rpcC2M_FetchTeamListC2M = new RpcC2M_FetchTeamListC2M(); + rpcC2M_FetchTeamListC2M.oArg.expID = this.currentDungeonID; + XSingleton.singleton.Send(rpcC2M_FetchTeamListC2M); + } + } + else + { + bool flag2 = this.m_TeamListSelectedCategories.Count > 0; + if (flag2) + { + RpcC2M_FetchTeamListC2M rpcC2M_FetchTeamListC2M2 = new RpcC2M_FetchTeamListC2M(); + foreach (int num in this.m_TeamListSelectedCategories) + { + bool flag3 = num != 0; + if (flag3) + { + rpcC2M_FetchTeamListC2M2.oArg.categoryID.Add((uint)num); + } + } + XSingleton.singleton.Send(rpcC2M_FetchTeamListC2M2); + } + else + { + this.ClearTeamList(); + this.SortTeamListAndShow(); + } + } + } + + public void ClearTeamList() + { + for (int i = 0; i < this._TeamList.Count; i++) + { + this._TeamList[i].Recycle(); + } + this._TeamList.Clear(); + } + + public void OnGetTeamList(FetchTeamListRes oRes) + { + this.ClearTeamList(); + for (int i = 0; i < oRes.TheTeams.Count; i++) + { + TeamFullDataNtf teamFullDataNtf = oRes.TheTeams[i]; + bool flag = teamFullDataNtf.teamBrief.teamState == 1; + if (!flag) + { + XTeamBriefData data = XDataPool.GetData(); + data.SetData(teamFullDataNtf.teamBrief, this.ExpDoc); + data.SetMembers(teamFullDataNtf.members); + this._TeamList.Add(data); + } + } + this.SortTeamListAndShow(); + bool flag2 = this.bTryAutoJoin; + if (flag2) + { + this._AutoJoin(); + } + } + + public void OnTeamInfoChanged(TeamChanged data) + { + XSingleton.singleton.AddGreenLog("TeamInfoChanged", null, null, null, null, null); + XTeamDocument.XPreviousTeamData xpreviousTeamData = new XTeamDocument.XPreviousTeamData(this); + xpreviousTeamData.bNewTeam = false; + bool flag = this._MyTeam == null; + if (flag) + { + this._MyTeam = new XTeam(); + xpreviousTeamData.bNewTeam = true; + } + xpreviousTeamData.PreserveTeamData(this._MyTeam); + this._MyTeam.PreUpdate(); + this._MyTeam.teamBrief.SetData(data.teamBrief, this.ExpDoc); + bool flag2 = this._MyTeam.teamBrief.rowData == null; + if (flag2) + { + bool flag3 = xpreviousTeamData.bNewTeam || xpreviousTeamData.expData != null; + if (flag3) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("LeaveTeamSinceNoConfig"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + this.ReqTeamOp(TeamOperate.TEAM_LEAVE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + } + else + { + for (int i = 0; i < data.leaveMember.Count; i++) + { + XSingleton.singleton.AddGreenLog("Try Leave Teammember ", data.leaveMember[i].ToString(), null, null, null, null); + string text = this._MyTeam.RemoveMember(data.leaveMember[i]); + bool flag4 = this._MyTeam.teamBrief.matchType != KMatchType.KMT_NONE && this._MyTeam.teamBrief.matchType != KMatchType.KMT_EXP; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_LEAVE_TEAM_MATCH", new object[] + { + text + }), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_LEAVE_TEAM", new object[] + { + text + }), "fece00"); + } + } + for (int j = 0; j < data.addMember.Count; j++) + { + XSingleton.singleton.AddGreenLog("Try Add Teammember ", data.addMember[j].memberID.ToString(), null, null, null, null); + this._MyTeam.AddMember(data.addMember[j]); + bool flag5 = !xpreviousTeamData.bNewTeam; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_ADD_TEAM", new object[] + { + data.addMember[j].name + }), "fece00"); + } + } + for (int k = 0; k < data.chgstateMember.Count; k++) + { + this._MyTeam.UpdateMember(data.chgstateMember[k]); + } + this._MyTeam.PostUpdate(); + bool flag6 = this.MyTeam.members.Count > 1; + if (flag6) + { + XSingleton.singleton.HasTeam = true; + } + this._MyTeam.members.Sort(); + this._PostTeamInfoChanged(xpreviousTeamData, data.teamBrief); + int num = data.addMember.Count - data.leaveMember.Count; + bool flag7 = num != 0; + if (flag7) + { + XTeamMemberCountChangedEventArgs @event = XEventPool.GetEvent(); + @event.oldCount = (uint)(this._MyTeam.members.Count - num); + @event.newCount = (uint)this._MyTeam.members.Count; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } + } + + private void _PostTeamInfoChanged(XTeamDocument.XPreviousTeamData previousData, TeamBrief brief) + { + this.teamLeagueName = brief.extrainfo.league_teamname; + bool flag = previousData.bNewTeam || this.currentDungeonID != this._MyTeam.teamBrief.dungeonID || this._MyTeam.bLeaderChanged; + if (flag) + { + this._SetCurrentDungeon((int)this._MyTeam.teamBrief.dungeonID); + } + bool bNewTeam = previousData.bNewTeam; + if (bNewTeam) + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && !XSingleton.singleton.switchScene; + if (flag2) + { + bool flag3 = this.AllListView != null && this.AllListView.IsVisible(); + if (flag3) + { + this.AllListView.SetVisibleWithAnimation(false, new DlgBase.OnAnimationOver(DlgBase.singleton.ShowTeamView)); + } + else + { + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetVisibleWithAnimation(false, new DlgBase.OnAnimationOver(DlgBase.singleton.ShowTeamView)); + } + else + { + ExpeditionTable.RowData expeditionDataByID = this.ExpDoc.GetExpeditionDataByID((int)this.currentDungeonID); + bool flag5 = expeditionDataByID != null && XSingleton.singleton.SceneType != SceneType.SKYCITY_WAITING; + if (flag5) + { + bool flag6 = expeditionDataByID.fastmatch == 0 || DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.ShowTeamView(); + } + } + } + } + XSingleton.singleton.Cancel(); + } + this.password = brief.password; + XJoinTeamEventArgs @event = XEventPool.GetEvent(); + @event.dungeonID = this._MyTeam.teamBrief.dungeonID; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + previousData.CheckNewTeamData(this._MyTeam); + this.RefreshMyTeamView(); + bool bVoting = this.bVoting; + if (bVoting) + { + DlgBase.singleton.RefreshFightVote(); + } + bool bMatching = this.bMatching; + if (bMatching) + { + bool flag7 = this.m_nMatchingTime < 0; + if (flag7) + { + this.m_nMatchingTime = 0; + this.m_fMatchingTime = Time.time; + } + } + else + { + this.m_nMatchingTime = -1; + } + this._UpdateOtherUI(); + } + + public void ReqTeamOp(TeamOperate op, ulong param = 0UL, object o = null, TeamMemberType memberType = TeamMemberType.TMT_NORMAL, string account = null) + { + XTeamDocument.bFromHyperLink = false; + bool flag = this._MyTeam == null; + if (flag) + { + bool flag2 = op == TeamOperate.TEAM_LEAVE || op == TeamOperate.TEAM_TOGGLE_READY; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Not in a team.", null, null, null, null, null); + return; + } + } + else + { + bool flag3 = this._MyTeam != null; + if (flag3) + { + bool flag4 = op == TeamOperate.TEAM_CREATE || op == TeamOperate.TEAM_JOIN; + if (flag4) + { + XSingleton.singleton.AddErrorLog("Already in a team.", null, null, null, null, null); + return; + } + } + } + RpcC2M_TeamRequestC2M rpcC2M_TeamRequestC2M = new RpcC2M_TeamRequestC2M(); + switch (op) + { + case TeamOperate.TEAM_CREATE: + rpcC2M_TeamRequestC2M.oArg.expID = this.currentDungeonID; + rpcC2M_TeamRequestC2M.oArg.param = param; + rpcC2M_TeamRequestC2M.oArg.password = this.password; + goto IL_2CE; + case TeamOperate.TEAM_JOIN: + { + rpcC2M_TeamRequestC2M.oArg.teamID = (int)param; + XTeamBriefData teamBriefByID = this.GetTeamBriefByID((int)param); + bool flag5 = teamBriefByID != null; + if (flag5) + { + rpcC2M_TeamRequestC2M.oArg.expID = teamBriefByID.dungeonID; + } + rpcC2M_TeamRequestC2M.oArg.password = this.password; + goto IL_2CE; + } + case TeamOperate.TEAM_LEAVE: + rpcC2M_TeamRequestC2M.oArg.param = param; + goto IL_2CE; + case TeamOperate.TEAM_QUERYCOUNT: + goto IL_2CE; + case TeamOperate.TEAM_KICK: + case TeamOperate.TEAM_TRAHS_LEADER: + rpcC2M_TeamRequestC2M.oArg.roleid = param; + goto IL_2CE; + case TeamOperate.TEAM_START_BATTLE: + { + bool flag6 = o != null; + if (flag6) + { + TeamExtraInfo teamExtraInfo = new TeamExtraInfo(); + teamExtraInfo.league_teamname = (o as string); + rpcC2M_TeamRequestC2M.oArg.extrainfo = teamExtraInfo; + } + goto IL_2CE; + } + case TeamOperate.TEAM_CHANGE_EPXTEAMID: + rpcC2M_TeamRequestC2M.oArg.expID = (uint)param; + goto IL_2CE; + case TeamOperate.TEAM_INVITE: + rpcC2M_TeamRequestC2M.oArg.roleid = param; + rpcC2M_TeamRequestC2M.oArg.account = account; + goto IL_2CE; + case TeamOperate.TEAM_START_MATCH: + case TeamOperate.TEAM_STOP_MATCH: + case TeamOperate.TEAM_DOWN_MATCH: + rpcC2M_TeamRequestC2M.oArg.expID = this.currentDungeonID; + rpcC2M_TeamRequestC2M.oArg.param = param; + goto IL_2CE; + case TeamOperate.TEAM_PPTLIMIT: + case TeamOperate.TEAM_COSTTYPE: + { + TeamExtraInfo teamExtraInfo2 = o as TeamExtraInfo; + bool flag7 = teamExtraInfo2 == null; + if (flag7) + { + return; + } + rpcC2M_TeamRequestC2M.oArg.extrainfo = teamExtraInfo2; + goto IL_2CE; + } + case TeamOperate.TEAM_CHANGE_PASSWORD: + rpcC2M_TeamRequestC2M.oArg.password = (o as string); + goto IL_2CE; + case TeamOperate.TEAM_MEMBER_TYPE: + rpcC2M_TeamRequestC2M.oArg.membertype = memberType; + goto IL_2CE; + } + bool flag8 = this._MyTeam == null; + if (flag8) + { + return; + } + rpcC2M_TeamRequestC2M.oArg.teamID = this._MyTeam.teamBrief.teamID; + rpcC2M_TeamRequestC2M.oArg.expID = this._MyTeam.teamBrief.dungeonID; + IL_2CE: + rpcC2M_TeamRequestC2M.oArg.request = op; + XSingleton.singleton.Send(rpcC2M_TeamRequestC2M); + } + + private string _GetRoleName(ulong roleID) + { + bool flag = XSingleton.singleton.XPlayerData.RoleID == roleID; + string result; + if (flag) + { + result = XStringDefineProxy.GetString("YOU"); + } + else + { + bool flag2 = this.MyTeam != null; + if (flag2) + { + XTeamMember xteamMember = this.MyTeam.FindMember(roleID); + bool flag3 = xteamMember != null; + if (flag3) + { + result = xteamMember.name; + } + else + { + result = XStringDefineProxy.GetString("THIS_ROLE"); + } + } + else + { + result = string.Empty; + } + } + return result; + } + + public void ProcessTeamOPErrorCode(ErrorCode errcode, ulong roleID) + { + ErrorCode errorCode = errcode; + if (errorCode != ErrorCode.ERR_TEAM_NEED_ATLEAST_2_MEMBER) + { + if (errorCode != ErrorCode.ERR_TEAM_SERVER_OPEN_TIME) + { + bool flag = roleID > 0UL; + if (flag) + { + string text = this._GetRoleName(roleID); + bool flag2 = string.IsNullOrEmpty(text); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(errcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(string.Format("TEAM_{0}", errcode.ToString()), new object[] + { + text + }), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(errcode, "fece00"); + } + } + } + else + { + string key = string.Format("TEAM_{0}", errcode.ToString()); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(key, new object[] + { + this.currentExpInfo.PlayerLeastNumber + }), "fece00"); + } + } + + public void OnGetTeamOp(TeamOPArg oArg, TeamOPRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + this.ProcessTeamOPErrorCode(oRes.result, oRes.problem_roleid); + ErrorCode result = oRes.result; + if (result <= ErrorCode.ERR_SCENE_TODYCOUNTLIMIT) + { + if (result == ErrorCode.ERR_SCENE_NOFATIGUE) + { + bool flag2 = oRes.problem_roleid == 0UL || XSingleton.singleton.XPlayerData.RoleID == oRes.problem_roleid; + if (flag2) + { + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.FATIGUE); + } + goto IL_155; + } + if (result != ErrorCode.ERR_SCENE_TODYCOUNTLIMIT) + { + goto IL_155; + } + } + else if (result != ErrorCode.ERR_TEAM_NEST_DAYCOUNT) + { + if (result != ErrorCode.ERR_TEAM_SERVER_OPEN_TIME) + { + goto IL_155; + } + string text = this._GetRoleName(oRes.problem_roleid); + bool flag3 = text == null; + if (flag3) + { + text = string.Empty; + } + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.TimeFormatSince1970((int)oRes.opentime, XStringDefineProxy.GetString("TEAM_ERR_TEAM_SERVER_OPEN_TIME", new object[] + { + text + }), true), "fece00"); + goto IL_155; + } + bool flag4 = oRes.problem_roleid == 0UL || XSingleton.singleton.XPlayerData.RoleID == oRes.problem_roleid; + if (flag4) + { + ExpeditionTable.RowData expeditionDataByID = this.ExpDoc.GetExpeditionDataByID((int)oArg.expID); + bool flag5 = expeditionDataByID != null; + if (flag5) + { + TeamLevelType type = (TeamLevelType)expeditionDataByID.Type; + DlgBase.singleton.PassiveShow(type); + } + } + IL_155: + TeamOperate request = oArg.request; + if (request == TeamOperate.TEAM_START_MATCH) + { + this.m_bAutoMatching = false; + } + } + else + { + TeamOperate request2 = oArg.request; + if (request2 <= TeamOperate.TEAM_STOP_MATCH) + { + switch (request2) + { + case TeamOperate.TEAM_CREATE: + { + bool flag6 = oArg.param > 0UL; + if (flag6) + { + this.ReqTeamOp(TeamOperate.TEAM_INVITE, oArg.param, null, TeamMemberType.TMT_NORMAL, null); + } + this.ExpDoc.TryShowPveAttrTips(oArg.expID); + break; + } + case TeamOperate.TEAM_JOIN: + this.TryChangeToExpID((int)oArg.expID); + break; + case TeamOperate.TEAM_LEAVE: + { + bool flag7 = oArg.param > 0UL; + if (flag7) + { + bool bHasPwd = (oArg.param & 4294967296UL) > 0UL; + ulong num = oArg.param & ulong.MaxValue; + XTeamView.TryJoinTeam((int)num, bHasPwd); + } + break; + } + default: + switch (request2) + { + case TeamOperate.TEAM_CHANGE_EPXTEAMID: + this._SetCurrentDungeon((int)oArg.expID); + break; + case TeamOperate.TEAM_INVITE: + { + bool flag8 = oArg.accountSpecified && !string.IsNullOrEmpty(oArg.account); + if (!flag8) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_INVITE_SUCCESS"), "fece00"); + } + break; + } + case TeamOperate.TEAM_START_MATCH: + { + bool bAutoMatching = this.m_bAutoMatching; + if (bAutoMatching) + { + DlgBase.singleton.ShowTeamView(); + } + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BEGIN_MATCH"), "fece00"); + break; + } + case TeamOperate.TEAM_STOP_MATCH: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CANCEL_MATCH"), "fece00"); + break; + } + break; + } + } + else if (request2 != TeamOperate.TEAM_CHANGE_PASSWORD) + { + if (request2 == TeamOperate.TEAM_MEMBER_TYPE) + { + bool flag9 = TeamMemberType.TMT_USETICKET == oArg.membertype; + if (flag9) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TEAM_TICKET_SUCCESS"), "fece00"); + } + else + { + bool flag10 = TeamMemberType.TMT_HELPER == oArg.membertype; + if (flag10) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SWITCH_TO_HELPER"), "fece00"); + } + } + } + } + else + { + bool flag11 = string.IsNullOrEmpty(oArg.password); + if (flag11) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_REMOVE_PWD"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_SET_PWD"), "fece00"); + } + } + bool flag12 = XTeamDocument.bFromHyperLink; + if (flag12) + { + DlgBase.singleton.ShowTeamView(); + } + } + } + + public void OnLeaveTeam(LeaveTeamType errType) + { + bool flag = this._MyTeam == null; + if (flag) + { + bool flag2 = errType != LeaveTeamType.LTT_MS_CRASH; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Not in team now. Shouldnt receive leave team ptc.", null, null, null, null, null); + } + } + else + { + LeaveTeamType leaveTeamType = errType; + if (leaveTeamType != LeaveTeamType.LTT_BY_SELF) + { + if (leaveTeamType - LeaveTeamType.LTT_DEL_ROBOT > 1) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(errType.ToString()), "fece00"); + } + } + else + { + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_LEAVE_TEAM", new object[] + { + XStringDefineProxy.GetString("YOU") + }), "fece00"); + } + } + XLeaveTeamEventArgs @event = XEventPool.GetEvent(); + @event.dungeonID = this._MyTeam.teamBrief.dungeonID; + @event.Firer = XSingleton.singleton.Doc; + this._MyTeam = null; + this.password = ""; + XSingleton.singleton.FireEvent(@event); + } + } + + public void RefreshMyTeamView() + { + bool flag = this.MyTeamView != null && this.MyTeamView.IsVisible(); + if (flag) + { + this.MyTeamView.RefreshPage(); + } + } + + public void RefreshRedPoint() + { + this._UpdateOtherUI(); + } + + private void _UpdateOtherUI() + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = XSingleton.singleton.SceneType != SceneType.SCENE_PVP && XSingleton.singleton.SceneType != SceneType.SCENE_HEROBATTLE; + if (flag2) + { + DlgBase.singleton.TeamMonitor.TeamInfoChangeOnBattle(this._MyTeam); + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + bool flag4 = !DlgBase.singleton._TaskNaviHandler.IsShowingTaskTab; + if (flag4) + { + DlgBase.singleton._TaskNaviHandler.TeamHandler.TeamInfoChange(this._MyTeam); + } + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.MyTeam != null; + if (flag) + { + this.MyTeam.OnUpdate(); + } + bool flag2 = this.m_nMatchingTime >= 0; + if (flag2) + { + int num = (int)(Time.time - this.m_fMatchingTime); + bool flag3 = num > this.m_nMatchingTime; + if (flag3) + { + this.m_nMatchingTime = num; + } + } + } + + private void _AutoJoin() + { + this.bTryAutoJoin = false; + foreach (XTeamBriefData xteamBriefData in this._TeamList) + { + bool flag = xteamBriefData.state == XTeamState.TS_NOT_FULL; + if (flag) + { + this.ReqTeamOp(TeamOperate.TEAM_JOIN, (ulong)((long)xteamBriefData.teamID), null, TeamMemberType.TMT_NORMAL, null); + return; + } + } + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_AUTOJOIN_FAILED"), "fece00"); + } + + public void ToggleVoting(bool bVote) + { + this._bVoting = bVote; + bool bVoting = this._bVoting; + if (bVoting) + { + DlgBase.singleton.StartFightVote(); + } + else + { + bool flag = !this.bInTeam || this.MyTeam.teamBrief.actualState != TeamState.TEAM_IN_BATTLE; + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + } + } + + public static KMatchType TeamType2MatchType(TeamLevelType type) + { + KMatchType result; + if (type != TeamLevelType.TeamLevelCaptainPVP) + { + switch (type) + { + case TeamLevelType.TeamLevelHeroBattle: + return KMatchType.KMT_HERO; + case TeamLevelType.TeamLevelTeamLeague: + return KMatchType.KMT_LEAGUE; + case TeamLevelType.TeamLevelMultiPK: + return KMatchType.KMT_PKTWO; + case TeamLevelType.TeamLevelWeekendParty: + return KMatchType.KMT_WEEKEND_ACT; + case TeamLevelType.TeamLevelMoba: + return KMatchType.KMT_MOBA; + case TeamLevelType.TeamLevelCustomPKTwo: + return KMatchType.KMT_CUSTOM_PKTWO; + } + result = KMatchType.KMT_EXP; + } + else + { + result = KMatchType.KMT_PVP; + } + return result; + } + + public static TeamLevelType MatchType2TeamType(KMatchType type) + { + switch (type) + { + case KMatchType.KMT_PVP: + return TeamLevelType.TeamLevelCaptainPVP; + case KMatchType.KMT_HERO: + return TeamLevelType.TeamLevelHeroBattle; + case KMatchType.KMT_LEAGUE: + return TeamLevelType.TeamLevelTeamLeague; + case KMatchType.KMT_PKTWO: + return TeamLevelType.TeamLevelMultiPK; + case KMatchType.KMT_MOBA: + return TeamLevelType.TeamLevelMoba; + case KMatchType.KMT_WEEKEND_ACT: + return TeamLevelType.TeamLevelWeekendParty; + case KMatchType.KMT_CUSTOM_PKTWO: + return TeamLevelType.TeamLevelCustomPKTwo; + } + return TeamLevelType.TeamLevelNone; + } + + public bool IsSoloMatching(TeamLevelType type) + { + return this.SoloMatchType == XTeamDocument.TeamType2MatchType(type); + } + + public bool IsMatching(TeamLevelType type) + { + bool bInTeam = this.bInTeam; + bool result; + if (bInTeam) + { + result = (this._MyTeam.teamBrief.matchType == XTeamDocument.TeamType2MatchType(type)); + } + else + { + result = this.IsSoloMatching(type); + } + return result; + } + + public void CancelMatch() + { + bool flag = this.bInTeam || !this.bSoloMatching; + if (!flag) + { + bool flag2 = this.SoloMatchType != KMatchType.KMT_EXP; + if (flag2) + { + TeamLevelType teamLevelType = XTeamDocument.MatchType2TeamType(this.SoloMatchType); + bool flag3 = teamLevelType == this.currentDungeonType; + if (flag3) + { + return; + } + } + KMatchType soloMatchType = this.SoloMatchType; + if (soloMatchType != KMatchType.KMT_EXP) + { + if (soloMatchType - KMatchType.KMT_PVP <= 1) + { + this.ReqMatchStateChange(this.SoloMatchType, KMatchOp.KMATCH_OP_STOP, false); + } + } + else + { + this.ReqTeamOp(TeamOperate.TEAM_STOP_MATCH, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + } + } + + public void ForceMatching(bool matching) + { + bool flag = !matching; + if (flag) + { + this.ReqTeamOp(TeamOperate.TEAM_STOP_MATCH, 0UL, null, TeamMemberType.TMT_NORMAL, null); + this.m_bAutoMatching = false; + } + else + { + this.ReqTeamOp(TeamOperate.TEAM_START_MATCH, 0UL, null, TeamMemberType.TMT_NORMAL, null); + this.m_bAutoMatching = true; + } + } + + public void SetAndMatch(int expid) + { + this.TryChangeToExpID(expid); + DlgBase.singleton.ShowTeamView(); + } + + public void ToggleMatching() + { + bool flag = this.IsMatching(this.currentDungeonType); + if (flag) + { + this.ReqTeamOp(TeamOperate.TEAM_STOP_MATCH, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + else + { + bool flag2 = this.currentDungeonType == TeamLevelType.TeamLevelTeamTower && this.ExpDoc.EnlargeMatch; + if (flag2) + { + this.ReqTeamOp(TeamOperate.TEAM_DOWN_MATCH, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + else + { + this.ReqTeamOp(TeamOperate.TEAM_START_MATCH, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + } + this.m_bAutoMatching = false; + } + + private bool _ForceStart(IXUIButton btn) + { + this.ReqTeamOp(TeamOperate.TEAM_START_BATTLE_REMOVE_DISAGREE_MEMBER, 0UL, null, TeamMemberType.TMT_NORMAL, null); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public int GetCurrentDayMaxCount() + { + return this.ExpDoc.GetDayMaxCount(this.currentDungeonType, this.currentSceneData); + } + + public int GetMyDayCount() + { + return this.ExpDoc.GetDayCount(this.currentDungeonType, this.currentSceneData); + } + + public void ReqSceneDayCount() + { + RpcC2G_QuerySceneDayCount rpcC2G_QuerySceneDayCount = new RpcC2G_QuerySceneDayCount(); + rpcC2G_QuerySceneDayCount.oArg.type = 1u; + List categories = this.ExpDoc.TeamCategoryMgr.m_Categories; + for (int i = 0; i < categories.Count; i++) + { + bool flag = !categories[i].HasOpened(); + if (!flag) + { + List expList = categories[i].expList; + for (int j = 0; j < expList.Count; j++) + { + uint sceneIDByExpID = this.ExpDoc.GetSceneIDByExpID(expList[j].DNExpeditionID); + bool flag2 = sceneIDByExpID == 0u; + if (flag2) + { + break; + } + rpcC2G_QuerySceneDayCount.oArg.groupid.Add(sceneIDByExpID); + } + } + } + XSingleton.singleton.Send(rpcC2G_QuerySceneDayCount); + } + + public void OnGetSceneDayCount(QuerySceneDayCountRes oRes) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + this.TryAutoSelectExp(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + RpcC2M_TeamRequestC2M rpcC2M_TeamRequestC2M = new RpcC2M_TeamRequestC2M(); + rpcC2M_TeamRequestC2M.oArg.request = TeamOperate.TEAM_GET_FULL_DATA; + XSingleton.singleton.Send(rpcC2M_TeamRequestC2M); + } + + public void OnTeamFullDataNotify(TeamFullDataNtf data) + { + XSingleton.singleton.AddGreenLog("Team reconnect", null, null, null, null, null); + bool flag = !data.hasTeam && this.bInTeam; + if (flag) + { + this.OnLeaveTeam(LeaveTeamType.LTT_BY_SELF); + } + else + { + bool hasTeam = data.hasTeam; + if (hasTeam) + { + XTeamDocument.XPreviousTeamData previousData = new XTeamDocument.XPreviousTeamData(this); + bool flag2 = this.MyTeam == null; + if (flag2) + { + this._MyTeam = new XTeam(); + previousData.bNewTeam = true; + } + previousData.PreserveTeamData(this._MyTeam); + this._MyTeam.Reset(); + this._MyTeam.PreUpdate(); + this._MyTeam.teamBrief.SetData(data.teamBrief, this.ExpDoc); + bool flag3 = this._MyTeam.teamBrief.rowData == null; + if (flag3) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("LeaveTeamSinceNoConfig"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + this.ReqTeamOp(TeamOperate.TEAM_LEAVE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + else + { + for (int i = 0; i < data.members.Count; i++) + { + this._MyTeam.AddMember(data.members[i]); + } + this._MyTeam.PostUpdate(); + bool flag4 = this.MyTeam.members.Count > 1; + if (flag4) + { + XSingleton.singleton.HasTeam = true; + } + this._MyTeam.members.Sort(); + this._PostTeamInfoChanged(previousData, data.teamBrief); + } + } + } + } + + public void ReqMatchStateChange(KMatchType type, KMatchOp op, bool isTeamMatch) + { + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "KKSG.KMatchType:", + type, + " KKSG.KMatchOp:", + op, + "\nisTeamMatch:", + isTeamMatch.ToString() + }), null, null, null, null, null); + RpcC2M_KMatchCommonReq rpcC2M_KMatchCommonReq = new RpcC2M_KMatchCommonReq(); + rpcC2M_KMatchCommonReq.oArg.type = type; + rpcC2M_KMatchCommonReq.oArg.op = op; + rpcC2M_KMatchCommonReq.oArg.isteam = isTeamMatch; + XSingleton.singleton.Send(rpcC2M_KMatchCommonReq); + } + + public void OnRoleMatchStateNotify(RoleStateMatch matchData) + { + bool flag = matchData.matchtype > KMatchType.KMT_NONE; + if (flag) + { + bool flag2 = this.m_SoloMatchType != matchData.matchtype; + if (flag2) + { + this.m_nMatchingTime = 0; + this.m_fMatchingTime = Time.time; + } + } + else + { + this.m_nMatchingTime = -1; + } + this.m_SoloMatchType = matchData.matchtype; + bool flag3 = this.TeamListView != null && this.TeamListView.IsVisible(); + if (flag3) + { + this.TeamListView.RefreshPage(); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton._TaskNaviHandler.SetTeamMatching(this.bSoloMatching); + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.RefreshButtonState(); + } + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.Refresh(); + } + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + DlgBase.singleton.RefreshMatch(); + } + bool flag8 = DlgBase.singleton.IsVisible(); + if (flag8) + { + DlgBase.singleton.RefreshMatch2v2Btn(); + } + bool flag9 = DlgBase.singleton.IsVisible(); + if (flag9) + { + DlgBase.singleton.RefreshMatchBtn(); + } + } + + public static bool GoSingleBattleBeforeNeed(ButtonClickEventHandler handler, IXUIButton btn) + { + XTeamDocument._EventDel = null; + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bCanEnter = XTeamDocument._bCanEnter; + bool result; + if (bCanEnter) + { + XTeamDocument._bCanEnter = false; + result = false; + } + else + { + XTeamDocument._EnterButton = btn; + XTeamDocument._EnterHandler = handler; + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + result = XTeamDocument.ShouldLeaveTeamFirst(); + } + else + { + result = XTeamDocument.ShouldTips(); + } + } + return result; + } + + public static bool GoSingleBattleBeforeNeed(EventDelegate del) + { + XTeamDocument._EnterHandler = null; + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bCanEnter = XTeamDocument._bCanEnter; + bool result; + if (bCanEnter) + { + XTeamDocument._bCanEnter = false; + result = false; + } + else + { + XTeamDocument._EventDel = del; + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + result = XTeamDocument.ShouldLeaveTeamFirst(); + } + else + { + result = XTeamDocument.ShouldTips(); + } + } + return result; + } + + public static bool ShouldTips() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING || XSingleton.singleton.SceneType == SceneType.SCENE_HORSE || XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY || XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_READY; + bool result; + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("SKY_ARENA_LEAVE_SINGLE_TIP"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(XTeamDocument._Enter)); + result = true; + } + else + { + result = false; + } + return result; + } + + public static bool ShouldLeaveTeamFirst() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + string @string; + if (flag) + { + @string = XStringDefineProxy.GetString("SKY_ARENA_LEAVE_TEAM_TIP"); + } + else + { + @string = XStringDefineProxy.GetString("TEAM_SHOULD_LEAVE_TEAM_CONFIRM"); + } + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(XTeamDocument._LeaveAndEnter)); + return true; + } + + private static bool _Enter(IXUIButton button) + { + XTeamDocument._bCanEnter = true; + bool flag = XTeamDocument._EnterHandler != null; + if (flag) + { + XTeamDocument._EnterHandler(XTeamDocument._EnterButton); + XTeamDocument._EnterHandler = null; + } + bool flag2 = XTeamDocument._EventDel != null; + if (flag2) + { + XTeamDocument._EventDel(); + XTeamDocument._EventDel = null; + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private static bool _LeaveAndEnter(IXUIButton button) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + specificDocument.ReqTeamOp(TeamOperate.TEAM_LEAVE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + XTeamDocument._bCanEnter = true; + bool flag = XTeamDocument._EnterHandler != null; + if (flag) + { + XTeamDocument._EnterHandler(XTeamDocument._EnterButton); + XTeamDocument._EnterHandler = null; + } + bool flag2 = XTeamDocument._EventDel != null; + if (flag2) + { + XTeamDocument._EventDel(); + XTeamDocument._EventDel = null; + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public static void OnTeamHyperLinkClick(string param) + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (!flag) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAM_ALREADY_INTEAM, "fece00"); + } + else + { + int teamID = 0; + uint num = 0u; + bool flag2 = !XLabelSymbolHelper.ParseTeamParam(param, ref teamID, ref num); + if (!flag2) + { + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument2.GetExpeditionDataByID((int)num); + bool flag3 = expeditionDataByID == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Invalid expedi ID ", num.ToString(), null, null, null, null); + } + else + { + bool flag4 = (long)expeditionDataByID.RequiredLevel > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAM_LEVEL_REQUARE, "fece00"); + } + else + { + XTeamDocument.bFromHyperLink = true; + RpcC2M_TeamRequestC2M rpcC2M_TeamRequestC2M = new RpcC2M_TeamRequestC2M(); + rpcC2M_TeamRequestC2M.oArg.expID = num; + rpcC2M_TeamRequestC2M.oArg.teamID = teamID; + rpcC2M_TeamRequestC2M.oArg.request = TeamOperate.TEAM_JOIN; + XSingleton.singleton.Send(rpcC2M_TeamRequestC2M); + specificDocument._SetCurrentTeamInfo(expeditionDataByID); + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamDocument.cs.meta new file mode 100644 index 00000000..69d373dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0d00f96aa610c94991525897497aa3e +timeCreated: 1611404250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamDungeonSelectorHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamDungeonSelectorHandler.cs new file mode 100644 index 00000000..bec3347f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamDungeonSelectorHandler.cs @@ -0,0 +1,306 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamDungeonSelectorHandler : DlgHandlerBase + { + private static readonly Color BAD_COLOR = new Color(1f, 0.239215687f, 0.137254909f); + + private static readonly Color GOOD_COLOR = new Color(0.392156869f, 0.7176471f, 0.215686277f); + + private XTeamDocument _TeamDoc; + + private XExpeditionDocument _ExpDoc; + + private IXUIScrollView m_DungeonScrollView; + + private IXUIScrollView m_CategoryScrollView; + + private XUIPool m_DungeonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_CategoryPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_CategoryList = new List(); + + private IXUISprite m_Close; + + public IXUIButton m_BtnDungeonSelector; + + public IXUILabel m_CurrentDungeon; + + public IXUILabel m_CurrentCategory; + + public GameObject m_SelectorFrame; + + protected override void Init() + { + base.Init(); + this.m_BtnDungeonSelector = (base.PanelObject.transform.Find("CurrentCategory/Btn").GetComponent("XUIButton") as IXUIButton); + this.m_CurrentDungeon = (base.PanelObject.transform.Find("CurrentDungeon").GetComponent("XUILabel") as IXUILabel); + this.m_CurrentCategory = (base.PanelObject.transform.Find("CurrentCategory").GetComponent("XUILabel") as IXUILabel); + this.m_SelectorFrame = base.PanelObject.transform.Find("Selector").gameObject; + this.m_DungeonScrollView = (this.m_SelectorFrame.transform.Find("Main/Dungeons/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_CategoryScrollView = (this.m_SelectorFrame.transform.Find("Main/Categories/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Close = (this.m_SelectorFrame.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this._TeamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this._ExpDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this._TeamDoc.DungeonSelector = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + this.m_BtnDungeonSelector.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDungeonSelectorClick)); + } + + protected override void _DelayInit() + { + base._DelayInit(); + Transform transform = this.m_DungeonScrollView.gameObject.transform.Find("Tpl"); + this.m_DungeonPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + transform = this.m_CategoryScrollView.gameObject.transform.Find("List/CategoryTpl"); + this.m_CategoryPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + } + + protected override void OnShow() + { + base.OnShow(); + this.SetCurrentDungeon(true); + } + + public override void RefreshData() + { + base.RefreshData(); + this.SetCurrentDungeon(false); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.SetCurrentDungeon(false); + } + + public void ToggleSelector(bool bShow) + { + this.m_SelectorFrame.SetActive(bShow); + if (bShow) + { + this._Setup(); + this._DefaultSelect(); + } + } + + public override void OnUnload() + { + this._TeamDoc.DungeonSelector = null; + base.OnUnload(); + } + + private void _OnCloseClicked(IXUISprite iSp) + { + this.ToggleSelector(false); + } + + private bool _OnDungeonSelectorClick(IXUIButton go) + { + this.ToggleSelector(true); + return true; + } + + public void SetCurrentDungeon(bool bCloseSelection) + { + bool flag = this._TeamDoc.currentDungeonID == 0u; + if (flag) + { + this.m_CurrentDungeon.SetText(XStringDefineProxy.GetString("TEAM_NO_TARGET")); + } + else + { + this.m_CurrentDungeon.SetText(string.Format("{0} {1}", this._TeamDoc.currentCategoryName, this._TeamDoc.currentDungeonName)); + } + if (bCloseSelection) + { + this.ToggleSelector(false); + } + this.m_BtnDungeonSelector.SetEnable(!this._TeamDoc.bInTeam || this._TeamDoc.bIsLeader, false); + } + + private void _DefaultSelect() + { + bool flag = this._TeamDoc.currentDungeonID == 0u; + if (!flag) + { + ExpeditionTable.RowData expeditionDataByID = this._ExpDoc.GetExpeditionDataByID((int)this._TeamDoc.currentDungeonID); + bool flag2 = expeditionDataByID == null; + if (!flag2) + { + ulong num = (ulong)((long)expeditionDataByID.Category); + for (int i = 0; i < this.m_CategoryList.Count; i++) + { + bool flag3 = num == this.m_CategoryList[i].ID; + if (flag3) + { + this.m_CategoryList[i].bChecked = true; + break; + } + } + } + } + } + + private void _Setup() + { + this.m_DungeonPool.ReturnAll(false); + this.m_CategoryPool.ReturnAll(false); + this.m_CategoryList.Clear(); + List categories = this._ExpDoc.TeamCategoryMgr.m_Categories; + int num = 0; + for (int i = 0; i < categories.Count; i++) + { + XTeamCategory xteamCategory = categories[i]; + bool flag = !xteamCategory.HasOpened(); + if (!flag) + { + GameObject gameObject = this.m_CategoryPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_CategoryPool.TplPos.x, this.m_CategoryPool.TplPos.y - (float)(this.m_CategoryPool.TplHeight * num)); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("BtnToggle/Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)xteamCategory.category); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._CategoryCheckEventHandler)); + IXUILabel ixuilabel = gameObject.transform.Find("BtnToggle/Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("BtnToggle/SelectedText").GetComponent("XUILabel") as IXUILabel; + string categoryName = XTeamCategory.GetCategoryName(xteamCategory.category); + ixuilabel.SetText(categoryName); + ixuilabel2.SetText(categoryName); + this.m_CategoryList.Add(ixuicheckBox); + num++; + ixuicheckBox.ForceSetFlag(false); + } + } + this.m_CategoryScrollView.ResetPosition(); + } + + private bool _CategoryCheckEventHandler(IXUICheckBox ckb) + { + bool flag = !ckb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_DungeonPool.FakeReturnAll(); + XTeamCategory xteamCategory = this._ExpDoc.TeamCategoryMgr.FindCategory((int)ckb.ID); + bool flag2 = xteamCategory != null; + if (flag2) + { + XPlayerAttributes playerAttributes = XSingleton.singleton.Player.PlayerAttributes; + uint num = (uint)playerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + uint level = playerAttributes.Level; + int i = 0; + int num2 = 0; + while (i < xteamCategory.expList.Count) + { + ExpeditionTable.RowData rowData = xteamCategory.expList[i]; + bool flag3 = rowData == null; + if (!flag3) + { + bool flag4 = !xteamCategory.IsExpOpened(rowData); + if (!flag4) + { + GameObject gameObject = this.m_DungeonPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_DungeonPool.TplPos.x, this.m_DungeonPool.TplPos.y - (float)(this.m_DungeonPool.TplHeight * num2++)); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XExpeditionDocument.GetFullName(rowData)); + ixuilabel = (gameObject.transform.Find("PPT").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(rowData.DisplayPPT.ToString()); + ixuilabel.SetColor((rowData.DisplayPPT <= num) ? XTeamDungeonSelectorHandler.GOOD_COLOR : XTeamDungeonSelectorHandler.BAD_COLOR); + ixuilabel = (gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XStringDefineProxy.GetString("LEVEL", new object[] + { + rowData.DisplayLevel.ToString() + })); + ixuilabel.SetColor((rowData.DisplayLevel <= level) ? XTeamDungeonSelectorHandler.GOOD_COLOR : XTeamDungeonSelectorHandler.BAD_COLOR); + Transform transform = gameObject.transform.Find("Normal"); + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)rowData.DNExpeditionID); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._DungeonCheckEventHandler)); + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._DungeonClickEventHandler)); + ixuicheckBox.ForceSetFlag((ulong)this._TeamDoc.currentDungeonID == (ulong)((long)rowData.DNExpeditionID)); + IXUISprite ixuisprite = gameObject.transform.Find("SisterTA").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = 0UL; + ixuisprite.SetVisible(this._TeamDoc.ShowTarja((uint)rowData.DNExpeditionID)); + ixuisprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnShowTarjaTipHandle)); + } + } + i++; + } + } + this.m_DungeonPool.ActualReturnAll(false); + this.m_DungeonScrollView.ResetPosition(); + result = true; + } + return result; + } + + private bool OnShowTarjaTipHandle(IXUISprite sprite, bool pressed) + { + IXUILabel ixuilabel = sprite.transform.Find("Info").GetComponent("XUILabel") as IXUILabel; + bool flag = ixuilabel == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = sprite.ID == 1UL; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TEAM_TARJA_DESC_TEAM"))); + } + else + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TEAM_TARJA_DESC"))); + } + ixuilabel.SetVisible(pressed); + result = false; + } + return result; + } + + private bool _DungeonClickEventHandler(IXUIButton btn) + { + IXUICheckBox ixuicheckBox = btn.gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + bool bChecked = ixuicheckBox.bChecked; + if (bChecked) + { + this.ToggleSelector(false); + } + return true; + } + + private bool _DungeonCheckEventHandler(IXUICheckBox ckb) + { + bool flag = !ckb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this._TeamDoc.TryChangeToExpID((int)ckb.ID); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamDungeonSelectorHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamDungeonSelectorHandler.cs.meta new file mode 100644 index 00000000..61eee865 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamDungeonSelectorHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aaebd8042e38aa24cb8533cc08b87a92 +timeCreated: 1611404305 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamFriendDegreeHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamFriendDegreeHandler.cs new file mode 100644 index 00000000..976b1253 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamFriendDegreeHandler.cs @@ -0,0 +1,366 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamFriendDegreeHandler : DlgHandlerBase + { + private IXUILabel m_FriendLevel; + + private IXUILabel m_FriendTitle; + + private IXUISprite m_BtnAdd; + + private IXUISprite m_BtnBuff; + + private GameObject m_InfoPanel; + + private IXUISprite m_InfoClose; + + private IXUISprite m_InfoMiddleFrame; + + private IXUILabel m_InfoTopFrameFriendLevel; + + private GameObject m_InfoTopFrameMe; + + private IXUILabel m_InfoBottomFrameFriend; + + private GameObject m_InfoBottomFrameMe; + + private XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XFriendsView _FriendsView; + + private XFriendsDocument _FriendsDoc; + + private XTeamDocument _TeamDoc; + + private int m_TeamMemberIndex = 0; + + private ulong m_CurrentUID = 0UL; + + private struct XPercentAttr + { + public uint AttrID; + + public double Scale; + + public static XTeamFriendDegreeHandler.XPercentAttr CreateFromTableData(float data0, float data1) + { + XTeamFriendDegreeHandler.XPercentAttr result; + result.AttrID = (uint)data0; + result.Scale = (double)data1; + return result; + } + } + + protected override void Init() + { + base.Init(); + this.m_FriendLevel = (base.PanelObject.transform.Find("FriendLevel").GetComponent("XUILabel") as IXUILabel); + this.m_FriendTitle = (base.PanelObject.transform.Find("FriendTitle").GetComponent("XUILabel") as IXUILabel); + this.m_BtnAdd = (base.PanelObject.transform.Find("BtnAdd").GetComponent("XUISprite") as IXUISprite); + this.m_BtnBuff = (base.PanelObject.transform.Find("BtnBuff").GetComponent("XUISprite") as IXUISprite); + this.m_InfoPanel = base.PanelObject.transform.Find("InfoPanel").gameObject; + this.m_InfoClose = (this.m_InfoPanel.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_InfoMiddleFrame = (this.m_InfoPanel.transform.Find("MiddleFrame").GetComponent("XUISprite") as IXUISprite); + Transform transform = this.m_InfoMiddleFrame.gameObject.transform.Find("Attr"); + this.m_AttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + transform = this.m_InfoPanel.transform.Find("TopFrame"); + this.m_InfoTopFrameFriendLevel = (transform.Find("FriendLevel").GetComponent("XUILabel") as IXUILabel); + this.m_InfoTopFrameMe = transform.Find("Me").gameObject; + transform = this.m_InfoPanel.transform.Find("BottomFrame"); + this.m_InfoBottomFrameMe = transform.Find("Me").gameObject; + this.m_InfoBottomFrameFriend = (transform.Find("Friend").GetComponent("XUILabel") as IXUILabel); + this._FriendsView = DlgBase.singleton; + this._TeamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this._FriendsDoc = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_InfoClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + this.m_BtnBuff.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnBuffClicked)); + this.m_BtnAdd.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnAddFriendClicked)); + } + + private void _OnCloseClicked(IXUISprite iSp) + { + this.m_InfoPanel.SetActive(false); + } + + private void _OnBuffClicked(IXUISprite iSp) + { + this.m_InfoPanel.SetActive(true); + XPlayer player = XSingleton.singleton.Player; + bool flag = player.ID == this.m_CurrentUID; + bool flag2 = flag; + if (flag2) + { + this._RefreshMyInfoPanel(this.m_CurrentUID); + } + else + { + XFriendData friendDataById = this._FriendsView.GetFriendDataById(this.m_CurrentUID); + bool flag3 = friendDataById == null; + if (flag3) + { + this.m_InfoPanel.SetActive(false); + } + else + { + FriendTable.RowData friendLevelData = this._FriendsDoc.GetFriendLevelData(friendDataById.degreeAll); + this._RefreshFriendInfoPanel(friendDataById, friendLevelData); + } + } + } + + private void _OnAddFriendClicked(IXUISprite iSp) + { + DlgBase.singleton.AddFriendById(this.m_CurrentUID); + } + + public void Refresh(XTeamMember data, bool bActive, int teamMemberIndex) + { + bool flag = data != null && bActive; + if (flag) + { + base.SetVisible(true); + this.m_TeamMemberIndex = teamMemberIndex; + bool flag2 = this.m_CurrentUID != data.uid; + if (flag2) + { + this.m_InfoPanel.SetActive(false); + this.m_CurrentUID = data.uid; + } + XPlayer player = XSingleton.singleton.Player; + bool flag3 = player.ID == data.uid; + bool flag4 = flag3; + if (flag4) + { + this.m_BtnAdd.SetVisible(false); + this.m_BtnBuff.SetVisible(true); + this.m_FriendLevel.SetVisible(false); + this.m_FriendTitle.SetVisible(false); + bool activeSelf = this.m_InfoPanel.activeSelf; + if (activeSelf) + { + this._RefreshMyInfoPanel(data.uid); + } + } + else + { + XFriendData friendDataById = this._FriendsView.GetFriendDataById(data.uid); + bool flag5 = friendDataById != null; + this.m_BtnAdd.SetVisible(!flag5 && !data.bIsRobot); + this.m_BtnBuff.SetVisible(flag5); + this.m_FriendLevel.SetVisible(flag5); + this.m_FriendTitle.SetVisible(flag5); + bool flag6 = !flag5; + if (flag6) + { + this.m_InfoPanel.SetActive(false); + } + else + { + this.m_FriendLevel.SetText(friendDataById.degreeAll.ToString()); + FriendTable.RowData friendLevelData = this._FriendsDoc.GetFriendLevelData(friendDataById.degreeAll); + bool flag7 = friendLevelData != null; + if (flag7) + { + this.m_FriendTitle.SetText(friendLevelData.teamname); + } + else + { + this.m_FriendTitle.SetText(""); + } + bool activeSelf2 = this.m_InfoPanel.activeSelf; + if (activeSelf2) + { + this._RefreshFriendInfoPanel(friendDataById, friendLevelData); + } + } + } + } + else + { + base.SetVisible(false); + } + } + + private void _AppendAttr(List attrs, XTeamFriendDegreeHandler.XPercentAttr newAttr) + { + int i; + for (i = 0; i < attrs.Count; i++) + { + bool flag = attrs[i].AttrID == newAttr.AttrID; + if (flag) + { + newAttr.Scale += attrs[i].Scale; + attrs[i] = newAttr; + break; + } + } + bool flag2 = i == attrs.Count; + if (flag2) + { + attrs.Add(newAttr); + } + } + + private void _SetAttr(XTeamFriendDegreeHandler.XPercentAttr attr, GameObject go) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + bool flag = attr.AttrID == 0u; + if (flag) + { + ixuilabel.SetText(XStringDefineProxy.GetString("NONE")); + ixuilabel2.SetText(""); + } + else + { + XAttributeDefine attrID = (XAttributeDefine)attr.AttrID; + ixuilabel.SetText(XStringDefineProxy.GetString(attrID.ToString())); + ixuilabel2.SetText(XAttributeCommon.GetAttrValueStr((int)attr.AttrID, (float)attr.Scale)); + } + } + + private void _RefreshMyInfoPanel(ulong myUID) + { + this.m_InfoBottomFrameMe.SetActive(true); + this.m_InfoBottomFrameFriend.SetVisible(false); + this.m_InfoTopFrameMe.SetActive(true); + this.m_InfoTopFrameFriendLevel.SetVisible(false); + List list = new List(); + bool flag = this._TeamDoc.MyTeam != null; + if (flag) + { + List members = this._TeamDoc.MyTeam.members; + for (int i = 0; i < members.Count; i++) + { + bool flag2 = members[i].uid == myUID; + if (!flag2) + { + XFriendData friendDataById = this._FriendsView.GetFriendDataById(members[i].uid); + bool flag3 = friendDataById == null; + if (!flag3) + { + FriendTable.RowData friendLevelData = this._FriendsDoc.GetFriendLevelData(friendDataById.degreeAll); + bool flag4 = friendLevelData == null; + if (!flag4) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)friendLevelData.buf[0], (int)friendLevelData.buf[1]); + bool flag5 = buffData == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("buffData == null", null, null, null, null, null); + } + else + { + for (int j = 0; j < buffData.BuffChangeAttribute.Count; j++) + { + XTeamFriendDegreeHandler.XPercentAttr newAttr = XTeamFriendDegreeHandler.XPercentAttr.CreateFromTableData(buffData.BuffChangeAttribute[j, 0], buffData.BuffChangeAttribute[j, 1]); + this._AppendAttr(list, newAttr); + } + } + } + } + } + } + } + this.m_AttrPool.FakeReturnAll(); + bool flag6 = list.Count == 0; + if (flag6) + { + XTeamFriendDegreeHandler.XPercentAttr attr = default(XTeamFriendDegreeHandler.XPercentAttr); + GameObject gameObject = this.m_AttrPool.FetchGameObject(false); + gameObject.transform.localPosition = this.m_AttrPool.TplPos; + this._SetAttr(attr, gameObject); + this.m_InfoMiddleFrame.spriteHeight = this.m_AttrPool.TplHeight; + } + else + { + for (int k = 0; k < list.Count; k++) + { + XTeamFriendDegreeHandler.XPercentAttr attr2 = list[list.Count - k - 1]; + GameObject gameObject2 = this.m_AttrPool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3(this.m_AttrPool.TplPos.x, this.m_AttrPool.TplPos.y + (float)(this.m_AttrPool.TplHeight * k), this.m_AttrPool.TplPos.z); + this._SetAttr(attr2, gameObject2); + } + this.m_InfoMiddleFrame.spriteHeight = list.Count * this.m_AttrPool.TplHeight; + } + this.m_AttrPool.ActualReturnAll(false); + } + + private void _RefreshFriendInfoPanel(XFriendData friendData, FriendTable.RowData rowData) + { + this.m_InfoBottomFrameMe.SetActive(false); + this.m_InfoBottomFrameFriend.SetVisible(true); + this.m_InfoTopFrameMe.SetActive(false); + this.m_InfoTopFrameFriendLevel.SetVisible(true); + bool flag = friendData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("friendData == null", null, null, null, null, null); + } + else + { + uint degreeAll = friendData.degreeAll; + this.m_AttrPool.FakeReturnAll(); + bool flag2 = rowData == null; + if (flag2) + { + XTeamFriendDegreeHandler.XPercentAttr attr = default(XTeamFriendDegreeHandler.XPercentAttr); + GameObject gameObject = this.m_AttrPool.FetchGameObject(false); + gameObject.transform.localPosition = this.m_AttrPool.TplPos; + this._SetAttr(attr, gameObject); + this.m_InfoMiddleFrame.spriteHeight = this.m_AttrPool.TplHeight; + } + else + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)rowData.buf[0], (int)rowData.buf[1]); + bool flag3 = buffData == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("buffData == null", null, null, null, null, null); + return; + } + int i = 0; + int count = buffData.BuffChangeAttribute.Count; + while (i < count) + { + int index = count - i - 1; + XTeamFriendDegreeHandler.XPercentAttr attr2 = XTeamFriendDegreeHandler.XPercentAttr.CreateFromTableData(buffData.BuffChangeAttribute[index, 0], buffData.BuffChangeAttribute[index, 1]); + GameObject gameObject2 = this.m_AttrPool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3(this.m_AttrPool.TplPos.x, this.m_AttrPool.TplPos.y + (float)(this.m_AttrPool.TplHeight * i), this.m_AttrPool.TplPos.z); + this._SetAttr(attr2, gameObject2); + i++; + } + this.m_InfoMiddleFrame.spriteHeight = buffData.BuffChangeAttribute.Count * this.m_AttrPool.TplHeight; + } + this.m_AttrPool.ActualReturnAll(false); + this.m_InfoTopFrameFriendLevel.SetText(degreeAll.ToString()); + this.m_InfoBottomFrameFriend.SetText(""); + foreach (FriendTable.RowData rowData2 in this._FriendsDoc.GetFriendLevelDatas()) + { + bool flag4 = rowData2.level > degreeAll && rowData2.dropid > 0u; + if (flag4) + { + this.m_InfoBottomFrameFriend.SetText(XStringDefineProxy.GetString("FRIEND_DEGREE_GIFT_FORENOTICE", new object[] + { + (rowData2.level - degreeAll).ToString(), + rowData2.level.ToString() + })); + break; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamFriendDegreeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamFriendDegreeHandler.cs.meta new file mode 100644 index 00000000..8d6bec2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamFriendDegreeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e705895a91d04f468298386c3d05548 +timeCreated: 1611403364 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamInputPasswordView.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamInputPasswordView.cs new file mode 100644 index 00000000..2312c60d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamInputPasswordView.cs @@ -0,0 +1,80 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamInputPasswordView : DlgBase + { + public override string fileName + { + get + { + return "Team/TeamInputPasswordDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XTeamDocument _doc; + + public int TeamID; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_BtnOK.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClicked)); + base.uiBehaviour.m_BtnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Input.SetText(string.Empty); + } + + private bool _OnOKBtnClicked(IXUIButton btn) + { + string text = base.uiBehaviour.m_Input.GetText(); + this._doc.password = text; + this._doc.ReqTeamOp(TeamOperate.TEAM_JOIN, (ulong)((long)this.TeamID), null, TeamMemberType.TMT_NORMAL, null); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnCloseBtnClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamInputPasswordView.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamInputPasswordView.cs.meta new file mode 100644 index 00000000..09270ac9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamInputPasswordView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd901f427b19d5e4c9774e2df8d1b9ee +timeCreated: 1611404556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamInviteData.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteData.cs new file mode 100644 index 00000000..57bd820f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteData.cs @@ -0,0 +1,56 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamInviteData : XDataBase + { + public XTeamBriefData briefData = new XTeamBriefData(); + + public uint inviteID; + + public string invitorName; + + public XTeamRelation invitorRelation = new XTeamRelation(); + + public uint time; + + private ExpeditionTable.RowData expData; + + private void _SetExpID(uint expID) + { + bool flag = this.briefData.dungeonID == expID; + if (!flag) + { + this.briefData.dungeonID = expID; + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this.expData = specificDocument.GetExpeditionDataByID((int)expID); + bool flag2 = this.expData == null; + if (!flag2) + { + this.briefData.dungeonName = XExpeditionDocument.GetFullName(this.expData); + this.briefData.totalMemberCount = this.expData.PlayerNumber; + } + } + } + + public void SetData(TeamInvite data) + { + bool flag = data.teambrief == null; + if (!flag) + { + this.inviteID = data.inviteID; + this.briefData.SetData(data.teambrief, XDocuments.GetSpecificDocument(XExpeditionDocument.uuID)); + this.invitorName = data.invfromrolename; + this.invitorRelation.UpdateRelation(data.invfromroleid, data.invguildid, data.invdragonguildid); + this.time = data.invTime; + } + } + + public override void Recycle() + { + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamInviteData.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteData.cs.meta new file mode 100644 index 00000000..5baf1256 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d03675353e661ad4ba62a65d7ed73862 +timeCreated: 1611404585 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamInviteDocument.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteDocument.cs new file mode 100644 index 00000000..623e2d05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteDocument.cs @@ -0,0 +1,333 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamInviteDocument : XDocComponent + { + public override uint ID + { + get + { + return XTeamInviteDocument.uuID; + } + } + + public List[] InviteLists + { + get + { + return this.m_InviteLists; + } + } + + public List InvitedList + { + get + { + return this.m_InvitedList; + } + } + + public int InvitedCount + { + get + { + return this.m_InvitedCount; + } + set + { + this.m_InvitedCount = value; + bool flag = this.m_InvitedCount < 0; + if (flag) + { + this.m_InvitedCount = 0; + } + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_Team_Invited, true); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("TeamInviteDocument"); + + private static readonly int INVITE_TYPE_COUNT = 4; + + private List[] m_InviteLists = new List[XTeamInviteDocument.INVITE_TYPE_COUNT]; + + private List m_InvitedList = new List(); + + public int m_InvitedCount; + + public XTeamInviteView InviteHandler = null; + + public XTeamInvitedListView InvitedView = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + for (int i = 0; i < XTeamInviteDocument.INVITE_TYPE_COUNT; i++) + { + this.m_InviteLists[i] = new List(); + } + this.InvitedCount = 0; + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + for (int i = 0; i < XTeamInviteDocument.INVITE_TYPE_COUNT; i++) + { + for (int j = 0; j < this.m_InviteLists[i].Count; j++) + { + this.m_InviteLists[i][j].Recycle(); + } + this.m_InviteLists[i].Clear(); + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_Team_Invited, true); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_JoinTeam, new XComponent.XEventHandler(this._OnJoinTeam)); + } + + private bool _OnJoinTeam(XEventArgs e) + { + this._ClearInvitedList(); + this.InvitedCount = 0; + return true; + } + + public void ReqInviteList() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + RpcC2G_TeamInviteListReq rpcC2G_TeamInviteListReq = new RpcC2G_TeamInviteListReq(); + rpcC2G_TeamInviteListReq.oArg.expid = (int)specificDocument.currentDungeonID; + XSingleton.singleton.Send(rpcC2G_TeamInviteListReq); + } + + public void OnGetInviteList(TeamInviteRes oRes) + { + XPartnerDocument specificDocument = XDocuments.GetSpecificDocument(XPartnerDocument.uuID); + for (int i = 0; i < XTeamInviteDocument.INVITE_TYPE_COUNT; i++) + { + bool flag = i == 3; + if (!flag) + { + for (int j = 0; j < this.m_InviteLists[i].Count; j++) + { + this.m_InviteLists[i][j].Recycle(); + } + this.m_InviteLists[i].Clear(); + } + } + Dictionary dictionary = new Dictionary(); + for (int k = 0; k < oRes.guild.Count; k++) + { + XTeamInviteListData data = XDataPool.GetData(); + data.SetData(oRes.guild[k], false, true, XDragonGuildDocument.Doc.IsMyDragonGuildMember(oRes.guild[k].roledragonguildid)); + this.m_InviteLists[2].Add(data); + dictionary[data.uid] = data; + } + for (int l = 0; l < oRes.friend.Count; l++) + { + XTeamInviteListData data2; + bool flag2 = !dictionary.TryGetValue(oRes.friend[l].userID, out data2); + if (flag2) + { + data2 = XDataPool.GetData(); + data2.SetData(oRes.friend[l], true, false, XDragonGuildDocument.Doc.IsMyDragonGuildMember(oRes.friend[l].roledragonguildid)); + } + else + { + data2.relation.Append(XTeamRelation.Relation.TR_FRIEND, true); + bool flag3 = XDragonGuildDocument.Doc.IsMyDragonGuildMember(oRes.friend[l].roledragonguildid); + if (flag3) + { + data2.relation.Append(XTeamRelation.Relation.TR_PARTNER, true); + } + } + this.m_InviteLists[1].Add(data2); + } + for (int m = 1; m < XTeamInviteDocument.INVITE_TYPE_COUNT; m++) + { + this.m_InviteLists[m].Sort(); + } + dictionary.Clear(); + int num = 0; + int num2 = 0; + while (num < this.m_InviteLists[2].Count && num2 < 3 && this.m_InviteLists[0].Count < 6) + { + XTeamInviteListData xteamInviteListData = this.m_InviteLists[2][num]; + bool flag4 = xteamInviteListData.state > XTeamInviteListData.InviteState.IS_IDLE; + if (!flag4) + { + this.m_InviteLists[0].Add(xteamInviteListData); + dictionary[xteamInviteListData.uid] = xteamInviteListData; + num2++; + } + num++; + } + int num3 = 0; + int num4 = 0; + while (num3 < this.m_InviteLists[1].Count && num4 < 3 && this.m_InviteLists[0].Count < 6) + { + XTeamInviteListData xteamInviteListData2 = this.m_InviteLists[1][num3]; + bool flag5 = xteamInviteListData2.state > XTeamInviteListData.InviteState.IS_IDLE; + if (!flag5) + { + bool flag6 = dictionary.ContainsKey(xteamInviteListData2.uid); + if (!flag6) + { + this.m_InviteLists[0].Add(xteamInviteListData2); + num4++; + } + } + num3++; + } + int num5 = 0; + while (num5 < oRes.rec.Count && this.m_InviteLists[0].Count < 6) + { + XTeamInviteListData data3 = XDataPool.GetData(); + data3.SetData(oRes.rec[num5], false, false, XDragonGuildDocument.Doc.IsMyDragonGuildMember(oRes.rec[num5].roledragonguildid)); + this.m_InviteLists[0].Add(data3); + num5++; + } + this.m_InviteLists[0].Sort(); + bool flag7 = this.InviteHandler != null && this.InviteHandler.IsVisible(); + if (flag7) + { + this.InviteHandler.LocalServerRefresh(); + } + } + + public bool OnGetInvitePlatList(ReqPlatFriendRankListRes oRes) + { + bool flag = this.InviteHandler != null && this.InviteHandler.IsVisible(); + bool result; + if (flag) + { + XSingleton.singleton.AddLog("[InvitePlatFriend]OnGetInvitePlatListRefreshFriendsCount:" + oRes.platFriends.Count, null, null, null, null, null, XDebugColor.XDebug_None); + for (int i = 0; i < this.m_InviteLists[3].Count; i++) + { + this.m_InviteLists[3][i].Recycle(); + } + this.m_InviteLists[3].Clear(); + for (int j = 0; j < oRes.platFriends.Count; j++) + { + bool flag2 = oRes.platFriends[j].platfriendBaseInfo.openid == XSingleton.singleton.OpenID; + if (!flag2) + { + XTeamInviteListData data = XDataPool.GetData(); + data.SetData(oRes.platFriends[j]); + this.m_InviteLists[3].Add(data); + } + } + this.InviteHandler.Refresh(); + result = true; + } + else + { + result = false; + } + return result; + } + + public void ReqIgnoreAll() + { + RpcC2M_InvHistoryC2MReq rpcC2M_InvHistoryC2MReq = new RpcC2M_InvHistoryC2MReq(); + rpcC2M_InvHistoryC2MReq.oArg.type = InvHReqType.INVH_UNF_IGNORE_ALL; + XSingleton.singleton.Send(rpcC2M_InvHistoryC2MReq); + } + + public void ReqDeny() + { + RpcC2M_InvHistoryC2MReq rpcC2M_InvHistoryC2MReq = new RpcC2M_InvHistoryC2MReq(); + rpcC2M_InvHistoryC2MReq.oArg.type = InvHReqType.INVH_REFUSE_FORNOW; + XSingleton.singleton.Send(rpcC2M_InvHistoryC2MReq); + } + + public void ReqInvitedList() + { + RpcC2M_InvHistoryC2MReq rpcC2M_InvHistoryC2MReq = new RpcC2M_InvHistoryC2MReq(); + rpcC2M_InvHistoryC2MReq.oArg.type = InvHReqType.INVH_REQ_UNF_LIST; + XSingleton.singleton.Send(rpcC2M_InvHistoryC2MReq); + } + + public void OnInvHistoryReq(InvHistoryArg oArg, InvHistoryRes oRes) + { + bool flag = oRes.ret > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ret, "fece00"); + } + else + { + InvHReqType type = oArg.type; + if (type != InvHReqType.INVH_REQ_UNF_LIST) + { + if (type - InvHReqType.INVH_UNF_IGNORE_ALL <= 1) + { + this.InvitedCount = 0; + } + } + else + { + this._ClearInvitedList(); + for (int i = 0; i < oRes.invUnfH.Count; i++) + { + XTeamInviteData data = XDataPool.GetData(); + data.SetData(oRes.invUnfH[i]); + this.m_InvitedList.Add(data); + } + this.InvitedCount = this.m_InvitedList.Count; + bool flag2 = this.InvitedView != null && this.InvitedView.IsVisible(); + if (flag2) + { + this.InvitedView.RefreshPage(); + } + } + } + } + + private void _ClearInvitedList() + { + for (int i = 0; i < this.m_InvitedList.Count; i++) + { + this.m_InvitedList[i].Recycle(); + } + this.m_InvitedList.Clear(); + } + + public void ReqTeamInviteAck(bool bAgree, uint id) + { + PtcC2M_TeamInviteAckC2M ptcC2M_TeamInviteAckC2M = new PtcC2M_TeamInviteAckC2M(); + ptcC2M_TeamInviteAckC2M.Data.accept = bAgree; + ptcC2M_TeamInviteAckC2M.Data.inviteid = id; + XSingleton.singleton.Send(ptcC2M_TeamInviteAckC2M); + } + + public void OnInviteComing(TeamInvite inviteData) + { + int invitedCount = this.InvitedCount + 1; + this.InvitedCount = invitedCount; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamInviteDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteDocument.cs.meta new file mode 100644 index 00000000..388b529a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1425e433215d53f4c8dbae6f36cc7fa5 +timeCreated: 1611403253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamInviteListData.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteListData.cs new file mode 100644 index 00000000..d75faf15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteListData.cs @@ -0,0 +1,189 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XTeamInviteListData : XDataBase, IComparable + { + public XTeamRelation relation = new XTeamRelation(); + + public ulong uid; + + public string name; + + public uint ppt; + + public uint level; + + public uint profession = 1u; + + public uint vip; + + public string guildname; + + public uint degree; + + public int sameGuild; + + public bool bSent; + + public XTeamInviteListData.InviteState state; + + public string openid; + + public bool isOnline; + + public string bigpic; + + public string midpic; + + public string smallpic; + + public bool wantHelp; + + public enum InviteState + { + IS_IDLE, + IS_OTHER_TEAM, + IS_MY_TEAM, + IS_FIGHTING, + IS_NO_COUNT, + IS_NO_FATIGUE, + IS_NOT_OPEN + } + + public void SetData(TeamInvRoleInfo data, bool bIsFriend, bool bIsGuild, bool bIsPartner) + { + this.uid = data.userID; + this.name = data.userName; + this.level = data.userLevel; + this.ppt = data.userPowerPoint; + this.vip = data.userVip; + this.guildname = data.guildName; + this.degree = data.degree; + this.sameGuild = ((data.teamguildid == 0UL || data.roleguildid == data.teamguildid) ? 1 : 0); + this.profession = (uint)data.profession; + this.bSent = false; + this.state = this._GetInviteState(data.state); + this.wantHelp = data.wanthelp; + this.relation.Reset(); + if (bIsGuild) + { + this.relation.Append(XTeamRelation.Relation.TR_GUILD, true); + } + if (bIsFriend) + { + this.relation.Append(XTeamRelation.Relation.TR_FRIEND, true); + } + if (bIsPartner) + { + this.relation.Append(XTeamRelation.Relation.TR_PARTNER, true); + } + } + + public void SetData(PlatFriendRankInfo2Client data) + { + this.name = data.platfriendBaseInfo.nickname; + this.level = data.level; + this.ppt = data.maxAbility; + this.profession = (uint)data.profession; + this.bSent = false; + this.state = XTeamInviteListData.InviteState.IS_IDLE; + this.vip = 0u; + this.guildname = null; + this.sameGuild = 1; + this.openid = data.platfriendBaseInfo.openid; + this.isOnline = data.isOnline; + this.bigpic = data.platfriendBaseInfo.bigpic; + this.midpic = data.platfriendBaseInfo.midpic; + this.smallpic = data.platfriendBaseInfo.smallpic; + this.relation.Reset(); + } + + public int CompareTo(XTeamInviteListData other) + { + int num = this.relation.CompareTo(other.relation); + bool flag = num != 0; + int result; + if (flag) + { + result = num; + } + else + { + bool flag2 = this.sameGuild != other.sameGuild; + if (flag2) + { + result = -this.sameGuild.CompareTo(other.sameGuild); + } + else + { + bool flag3 = this.wantHelp != other.wantHelp; + if (flag3) + { + result = -this.wantHelp.CompareTo(other.wantHelp); + } + else + { + bool flag4 = this.state != other.state; + if (flag4) + { + result = this.state.CompareTo(other.state); + } + else + { + bool flag5 = this.degree != other.degree; + if (flag5) + { + result = -this.degree.CompareTo(other.degree); + } + else + { + result = -this.ppt.CompareTo(other.ppt); + } + } + } + } + } + return result; + } + + private XTeamInviteListData.InviteState _GetInviteState(TeamInvRoleState state) + { + XTeamInviteListData.InviteState result; + switch (state) + { + case TeamInvRoleState.TIRS_IN_OTHER_TEAM: + result = XTeamInviteListData.InviteState.IS_OTHER_TEAM; + break; + case TeamInvRoleState.TIRS_IN_MY_TEAM: + result = XTeamInviteListData.InviteState.IS_MY_TEAM; + break; + case TeamInvRoleState.TIRS_IN_BATTLE: + result = XTeamInviteListData.InviteState.IS_FIGHTING; + break; + case TeamInvRoleState.TIRS_NORMAL: + result = XTeamInviteListData.InviteState.IS_IDLE; + break; + case TeamInvRoleState.TIRS_NOT_OPEN: + result = XTeamInviteListData.InviteState.IS_NOT_OPEN; + break; + case TeamInvRoleState.TIRS_COUNT_LESS: + result = XTeamInviteListData.InviteState.IS_NO_COUNT; + break; + case TeamInvRoleState.TIRS_FATIGUE_LESS: + result = XTeamInviteListData.InviteState.IS_NO_FATIGUE; + break; + default: + result = XTeamInviteListData.InviteState.IS_IDLE; + break; + } + return result; + } + + public override void Recycle() + { + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamInviteListData.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteListData.cs.meta new file mode 100644 index 00000000..10eaa7d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamInviteListData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 814ecb1677e17664d8db2f900bdc7d3e +timeCreated: 1611404036 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueBattleDocument.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueBattleDocument.cs new file mode 100644 index 00000000..e22f5c21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueBattleDocument.cs @@ -0,0 +1,372 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamLeagueBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XTeamLeagueBattleDocument.uuID; + } + } + + public LeagueBattleTeamData LoadingInfoBlue + { + get + { + return this.m_LoadingInfoBlue; + } + } + + public LeagueBattleTeamData LoadingInfoRed + { + get + { + return this.m_LoadingInfoRed; + } + } + + public LeagueBattleOneTeam BattleBaseInfoBlue + { + get + { + return this.m_BattleBaseInfoBlue; + } + } + + public LeagueBattleOneTeam BattleBaseInfoRed + { + get + { + return this.m_BattleBaseInfoRed; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("TeamLeagueBattleDocument"); + + private LeagueBattleTeamData m_LoadingInfoBlue; + + private LeagueBattleTeamData m_LoadingInfoRed; + + private LeagueBattleOneTeam m_BattleBaseInfoBlue; + + private LeagueBattleOneTeam m_BattleBaseInfoRed; + + public bool IsInTeamLeague = false; + + public bool IsInBattleTeamLeague = false; + + public LeagueBattleRoleState SelfBattleState = LeagueBattleRoleState.LBRoleState_None; + + public int BlueCanBattleNum = 0; + + public int RedCanBattleNum = 0; + + public ulong BluePKingRoleID = 0UL; + + public ulong RedPKingRoleID = 0UL; + + public LeagueBattleFightState BattleState = LeagueBattleFightState.LBFight_None; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + DlgBase.singleton.HidePkLoading(); + } + + public ulong GetBattleTeamLeagueID(ulong roleID) + { + bool flag = this.LoadingInfoBlue != null; + if (flag) + { + for (int i = 0; i < this.LoadingInfoBlue.members.Count; i++) + { + bool flag2 = this.LoadingInfoBlue.members[i].roleid == roleID; + if (flag2) + { + return this.LoadingInfoBlue.league_teamid; + } + } + } + bool flag3 = this.LoadingInfoRed != null; + if (flag3) + { + for (int j = 0; j < this.LoadingInfoRed.members.Count; j++) + { + bool flag4 = this.LoadingInfoRed.members[j].roleid == roleID; + if (flag4) + { + return this.LoadingInfoRed.league_teamid; + } + } + } + return 0UL; + } + + public void SetBattlePKInfo(LeagueBattleLoadInfoNtf data) + { + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + bool flag = data.team1 == null || data.team2 == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("[TeamLeague:SetBattlePKInfo] LeagueBattleLoadInfoNtf team == null", null, null, null, null, null); + } + else + { + bool flag2 = data.team1.league_teamid == specificDocument.TeamLeagueID; + if (flag2) + { + this.m_LoadingInfoBlue = data.team1; + this.m_LoadingInfoRed = data.team2; + } + else + { + bool flag3 = data.team2.league_teamid == specificDocument.TeamLeagueID; + if (flag3) + { + this.m_LoadingInfoBlue = data.team2; + this.m_LoadingInfoRed = data.team1; + } + else + { + this.m_LoadingInfoBlue = data.team1; + this.m_LoadingInfoRed = data.team2; + } + } + } + } + + public void UpdateBattleBaseData(LeagueBattleBaseDataNtf data) + { + XSingleton.singleton.AddLog("[TeamLeague]UpdateBattleBaseData", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = data.team1 == null || data.team2 == null; + if (flag) + { + XSingleton.singleton.AddLog("[TeamLeague]UpdateBattleBaseData team == null", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + this.IsInTeamLeague = false; + this.IsInBattleTeamLeague = false; + this.SelfBattleState = LeagueBattleRoleState.LBRoleState_None; + this.BlueCanBattleNum = 0; + this.RedCanBattleNum = 0; + this.BluePKingRoleID = 0UL; + this.RedPKingRoleID = 0UL; + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + List list = new List(); + list.Add(data.team1); + list.Add(data.team2); + bool flag2 = data.team1.league_teamid == specificDocument.TeamLeagueID; + if (flag2) + { + this.m_BattleBaseInfoBlue = data.team1; + this.m_BattleBaseInfoRed = data.team2; + this.IsInTeamLeague = true; + } + else + { + bool flag3 = data.team2.league_teamid == specificDocument.TeamLeagueID; + if (flag3) + { + this.m_BattleBaseInfoBlue = data.team2; + this.m_BattleBaseInfoRed = data.team1; + this.IsInTeamLeague = true; + } + else + { + this.m_BattleBaseInfoBlue = data.team1; + this.m_BattleBaseInfoRed = data.team2; + } + } + for (int i = 0; i < list.Count; i++) + { + LeagueBattleOneTeam leagueBattleOneTeam = list[i]; + for (int j = 0; j < leagueBattleOneTeam.members.Count; j++) + { + bool flag4 = leagueBattleOneTeam.members[j].basedata.roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag4) + { + this.IsInBattleTeamLeague = true; + this.SelfBattleState = leagueBattleOneTeam.members[j].state; + } + bool flag5 = leagueBattleOneTeam.members[j].state == LeagueBattleRoleState.LBRoleState_Fighting; + if (flag5) + { + bool flag6 = leagueBattleOneTeam == this.m_BattleBaseInfoBlue; + if (flag6) + { + this.BluePKingRoleID = leagueBattleOneTeam.members[j].basedata.roleid; + } + else + { + bool flag7 = leagueBattleOneTeam == this.m_BattleBaseInfoRed; + if (flag7) + { + this.RedPKingRoleID = leagueBattleOneTeam.members[j].basedata.roleid; + } + } + } + bool flag8 = leagueBattleOneTeam.members[j].state != LeagueBattleRoleState.LBRoleState_Failed && leagueBattleOneTeam.members[j].state != LeagueBattleRoleState.LBRoleState_Leave && leagueBattleOneTeam.members[j].state != LeagueBattleRoleState.LBRoleState_None; + if (flag8) + { + bool flag9 = leagueBattleOneTeam == this.m_BattleBaseInfoBlue; + if (flag9) + { + this.BlueCanBattleNum++; + } + else + { + bool flag10 = leagueBattleOneTeam == this.m_BattleBaseInfoRed; + if (flag10) + { + this.RedCanBattleNum++; + } + } + } + } + } + bool flag11 = DlgBase.singleton.IsVisible(); + if (flag11) + { + DlgBase.singleton.RefreshBattleBaseInfo(); + DlgBase.singleton.RefreshBattleState(); + } + } + } + + public void ReqBattle(LeagueBattleReadyOper type) + { + RpcC2G_LeagueBattleReadyReq rpcC2G_LeagueBattleReadyReq = new RpcC2G_LeagueBattleReadyReq(); + rpcC2G_LeagueBattleReadyReq.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_LeagueBattleReadyReq); + } + + public void OnLeagueBattleStateNtf(LeagueBattleStateNtf data) + { + XSingleton.singleton.AddLog("[TeamLeague]OnLeagueBattleStateNtf", data.state.ToString(), " ", data.lefttime.ToString(), null, null, XDebugColor.XDebug_None); + this.BattleState = data.state; + switch (data.state) + { + case LeagueBattleFightState.LBFight_None: + XSingleton.singleton.AddErrorLog("OnLeagueBattleStateNtf state == LBFight_None", null, null, null, null, null); + break; + case LeagueBattleFightState.LBFight_Wait: + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.RefreshBattleState(); + DlgBase.singleton.ResetCommonUI(false); + DlgBase.singleton.CloseSmallReward(); + DlgBase.singleton.RefreahCountTime(data.lefttime); + break; + case LeagueBattleFightState.LBFight_Fight: + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.RefreshBattleState(); + DlgBase.singleton.ResetCommonUI(true); + DlgBase.singleton.CloseSmallReward(); + DlgBase.singleton.RefreahCountTime(data.lefttime); + break; + case LeagueBattleFightState.LBFight_Result: + DlgBase.singleton.SetVisible(false, true); + break; + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshBattleBaseInfo(); + } + } + + public void OnSmallReward(LeagueBattleOneResultNtf data) + { + bool flag = data == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("SmallReward Is Null", null, null, null, null, null); + } + else + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_LEAGUE_BATTLE; + if (flag2) + { + DlgBase.singleton.PlaySmallReward(data); + } + } + } + + public void OnBigReward(LeagueBattleResultNtf data) + { + bool flag = data == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("BigReward Is Null", null, null, null, null, null); + } + else + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_LEAGUE_BATTLE; + if (flag2) + { + DlgBase.singleton.PlayBigReward(data); + } + } + } + + public bool FindBlueMember(ulong roleid) + { + bool flag = this.m_LoadingInfoBlue == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("m_LoadingInfoBlue is null", null, null, null, null, null); + result = false; + } + else + { + for (int i = 0; i < this.m_LoadingInfoBlue.members.Count; i++) + { + bool flag2 = roleid == this.m_LoadingInfoBlue.members[i].roleid; + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public bool FindRedMember(ulong roleid) + { + bool flag = this.m_LoadingInfoRed == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("m_LoadingInfoRed is null", null, null, null, null, null); + result = false; + } + else + { + for (int i = 0; i < this.m_LoadingInfoRed.members.Count; i++) + { + bool flag2 = roleid == this.m_LoadingInfoRed.members[i].roleid; + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueBattleDocument.cs.meta new file mode 100644 index 00000000..1e19578c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72289a4b08eab2a45bc3a7b28c318ef6 +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateBehaviour.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateBehaviour.cs new file mode 100644 index 00000000..30f30f17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamLeagueCreateBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_OK; + + public IXUIButton m_Cancel; + + public IXUIInput m_NameInput; + + private void Awake() + { + this.m_Close = (base.transform.Find("CreateMenu/Close").GetComponent("XUIButton") as IXUIButton); + this.m_OK = (base.transform.Find("CreateMenu/OK").GetComponent("XUIButton") as IXUIButton); + this.m_Cancel = (base.transform.Find("CreateMenu/Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_NameInput = (base.transform.Find("CreateMenu/NameInput").GetComponent("XUIInput") as IXUIInput); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateBehaviour.cs.meta new file mode 100644 index 00000000..6ecb78cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 535888211ecec3c44951c423d05b37d7 +timeCreated: 1611403711 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateView.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateView.cs new file mode 100644 index 00000000..3a1bc00b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateView.cs @@ -0,0 +1,56 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamLeagueCreateView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TeamLeague/TeamLeagueCreateDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XFreeTeamVersusLeagueDocument _doc; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_OK.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCreateBtnClicked)); + base.uiBehaviour.m_Cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + private bool OnCreateBtnClicked(IXUIButton button) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ReqTeamOp(TeamOperate.TEAM_START_BATTLE, 0UL, base.uiBehaviour.m_NameInput.GetText(), TeamMemberType.TMT_NORMAL, null); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnCloseClicked(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateView.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateView.cs.meta new file mode 100644 index 00000000..335c18d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueCreateView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94e440f474c81bb4bbd23c93f3b4d9f2 +timeCreated: 1611404157 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailBehaviour.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailBehaviour.cs new file mode 100644 index 00000000..18b28bc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailBehaviour.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamLeagueDetailBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabel m_TeamName; + + public IXUIList m_MemberList; + + public XUIPool m_MemberPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("p/Close").GetComponent("XUIButton") as IXUIButton); + this.m_TeamName = (base.transform.Find("p/Name").GetComponent("XUILabel") as IXUILabel); + this.m_MemberList = (base.transform.Find("p/Grid").GetComponent("XUIList") as IXUIList); + Transform transform = base.transform.Find("p/Grid/Tpl"); + this.m_MemberPool.SetupPool(this.m_MemberList.gameObject, transform.gameObject, 4u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailBehaviour.cs.meta new file mode 100644 index 00000000..7261953b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 882ad74d32d17794cb1b0744feeb518b +timeCreated: 1611404083 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailView.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailView.cs new file mode 100644 index 00000000..ff2d0560 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailView.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamLeagueDetailView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TeamLeague/TeamLeagueDetailDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private string m_TeamName; + + private List m_listMember = new List(); + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public void ShowDetail(string teamName, List members) + { + this.m_TeamName = teamName; + this.m_listMember = members; + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_TeamName.SetText(this.m_TeamName); + base.uiBehaviour.m_MemberPool.FakeReturnAll(); + for (int i = 0; i < this.m_listMember.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_MemberPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_MemberList.gameObject.transform; + this.SetMemberInfo(gameObject, this.m_listMember[i]); + } + base.uiBehaviour.m_MemberPool.ActualReturnAll(false); + base.uiBehaviour.m_MemberList.Refresh(); + } + + private void SetMemberInfo(GameObject tpl, LeagueTeamMemberDetail member) + { + IXUILabel ixuilabel = tpl.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(member.brief.name); + IXUILabel ixuilabel2 = tpl.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format("Lv.{0}", member.brief.level)); + IXUILabel ixuilabel3 = tpl.transform.Find("Score").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(member.pkpoint.ToString()); + IXUISprite ixuisprite = tpl.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)member.brief.profession)); + IXUISprite ixuisprite2 = tpl.transform.Find("Profession").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(XSingleton.singleton.GetProfIcon((int)member.brief.profession)); + } + + private bool OnCloseClicked(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailView.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailView.cs.meta new file mode 100644 index 00000000..87d9dd79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueDetailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b5548102a412a245a9436f6f0d7e055 +timeCreated: 1611403798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueFinalResultBehavior.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueFinalResultBehavior.cs new file mode 100644 index 00000000..d647792e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueFinalResultBehavior.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamLeagueFinalResultBehavior : DlgBehaviourBase + { + public Transform Details; + + public IXUIButton EnterMatch; + + public IXUIButton CloseBtn; + + public Transform NoChampion; + + public Transform ChampionMembers; + + public IXUILabel GuildName; + + public IXUILabel FinalTimeLabel; + + private void Awake() + { + this.Details = base.transform.Find("Bg2/Details"); + this.EnterMatch = (base.transform.Find("Bg2/BeginMatch").GetComponent("XUIButton") as IXUIButton); + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.NoChampion = base.transform.Find("Bg2/ChampionFrame/NoChampion"); + this.ChampionMembers = base.transform.Find("Bg2/ChampionFrame/Members"); + this.GuildName = (base.transform.Find("Bg2/ChampionFrame/GuildName").GetComponent("XUILabel") as IXUILabel); + this.FinalTimeLabel = (base.transform.Find("Schedule").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueFinalResultBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueFinalResultBehavior.cs.meta new file mode 100644 index 00000000..a777728f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueFinalResultBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6d39612e6d1742499587d9cf0689001 +timeCreated: 1611404400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs new file mode 100644 index 00000000..bb13bd84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamLeagueLoadingBehaviour : DlgBehaviourBase + { + public IXUILabel[] m_TeamName = new IXUILabel[2]; + + public IXUILabel[] m_TeamRegion = new IXUILabel[2]; + + public XUIPool[] m_MembersPool = new XUIPool[2]; + + public List m_LeftMemberNode = new List(); + + public List m_RightMemberNode = new List(); + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Left"); + Transform transform2 = base.transform.Find("Bg/Right"); + this.m_TeamName[0] = (transform.Find("Team/Teamneme").GetComponent("XUILabel") as IXUILabel); + this.m_TeamName[1] = (transform2.Find("Team/Teamneme").GetComponent("XUILabel") as IXUILabel); + this.m_TeamRegion[0] = (transform.Find("Team/Region").GetComponent("XUILabel") as IXUILabel); + this.m_TeamRegion[1] = (transform2.Find("Team/Region").GetComponent("XUILabel") as IXUILabel); + Transform transform3 = transform.Find("DetailTpl"); + this.m_MembersPool[0] = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_MembersPool[0].SetupPool(transform3.parent.gameObject, transform3.gameObject, 4u, false); + Transform transform4 = transform2.Find("DetailTpl"); + this.m_MembersPool[1] = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_MembersPool[1].SetupPool(transform4.parent.gameObject, transform4.gameObject, 4u, false); + for (int i = 0; i < 4; i++) + { + Transform item = transform.Find(string.Format("Detail{0}", i)); + this.m_LeftMemberNode.Add(item); + Transform item2 = transform2.Find(string.Format("Detail{0}", i)); + this.m_RightMemberNode.Add(item2); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs.meta new file mode 100644 index 00000000..5b01152f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cd32bd428a950845b2619d59d92e3fd +timeCreated: 1611403503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingView.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingView.cs new file mode 100644 index 00000000..ffa07893 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingView.cs @@ -0,0 +1,141 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamLeagueLoadingView : DlgBase + { + public override string fileName + { + get + { + return "Battle/TeamLeagueLoading"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public bool IsLoadingOver + { + get + { + return this._isLoadingOver; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + private XTeamLeagueBattleDocument _doc; + + private bool _isLoadingOver = false; + + protected override void Init() + { + base.Init(); + this._isLoadingOver = false; + this._doc = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + } + + public void ShowPkLoading() + { + this.SetVisible(true, true); + } + + protected override void OnShow() + { + base.OnShow(); + this.LoadingOver(null); + this.SetBattleInfo(); + } + + private void LoadingOver(object o) + { + this._isLoadingOver = true; + } + + private void SetMemberInfo(GameObject member, LeagueBattleRoleBrief info) + { + bool flag = info == null; + if (!flag) + { + IXUILabel ixuilabel = member.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = member.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = member.transform.Find("Profession").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = member.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = member.transform.Find("PPT").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(info.level.ToString()); + ixuisprite2.SetSprite(XSingleton.singleton.GetProfIcon((int)info.profession)); + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon((int)info.profession)); + ixuilabel2.SetText(info.name); + ixuilabel3.SetText(info.pkpoint.ToString()); + } + } + + private void SetTeamInfo(int index, LeagueBattleTeamData BattleTeam) + { + bool flag = BattleTeam == null; + if (!flag) + { + base.uiBehaviour.m_TeamName[index].SetText(BattleTeam.name); + base.uiBehaviour.m_TeamRegion[index].SetText(BattleTeam.servername); + base.uiBehaviour.m_MembersPool[index].FakeReturnAll(); + for (int i = 0; i < BattleTeam.members.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_MembersPool[index].FetchGameObject(false); + this.SetMemberInfo(gameObject, BattleTeam.members[i]); + bool flag2 = i < base.uiBehaviour.m_RightMemberNode.Count; + if (flag2) + { + gameObject.transform.parent = ((index == 0) ? base.uiBehaviour.m_LeftMemberNode[i] : base.uiBehaviour.m_RightMemberNode[i]); + } + gameObject.transform.localPosition = Vector3.zero; + } + base.uiBehaviour.m_MembersPool[index].ActualReturnAll(false); + } + } + + private void SetBattleInfo() + { + this.SetTeamInfo(0, this._doc.LoadingInfoBlue); + this.SetTeamInfo(1, this._doc.LoadingInfoRed); + } + + public void HidePkLoading() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.SetVisible(false, true); + } + } + + private void OnPkLoadingTweenFinish(IXUITweenTool tween) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingView.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingView.cs.meta new file mode 100644 index 00000000..f63ab591 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueLoadingView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90f2d0d56c748c24695dba8ec2016d38 +timeCreated: 1611404141 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankBehavior.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankBehavior.cs new file mode 100644 index 00000000..5bd3ec05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankBehavior.cs @@ -0,0 +1,23 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamLeagueRankBehavior : DlgBehaviourBase + { + public IXUIButton CloseBtn; + + public IXUIWrapContent WrapContent; + + public Transform NoRankTrans; + + private void Awake() + { + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.WrapContent = (base.transform.Find("Panel/wrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.NoRankTrans = base.transform.Find("NoRank"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankBehavior.cs.meta new file mode 100644 index 00000000..1df2adb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b265341b8df9b6248b01e08819431090 +timeCreated: 1611404385 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankView.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankView.cs new file mode 100644 index 00000000..83e5dee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankView.cs @@ -0,0 +1,127 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamLeagueRankView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TeamLeague/TeamLeagueRank"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + public bool IsLastWeek = false; + + private XBaseRankList list = null; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + this.IsLastWeek = false; + base.OnHide(); + } + + public void RefreshUI(XBaseRankList list) + { + int num = 0; + this.list = list; + bool flag = list != null; + if (flag) + { + num = this.list.rankList.Count; + base.uiBehaviour.WrapContent.SetContentCount(list.rankList.Count, false); + } + base.uiBehaviour.NoRankTrans.gameObject.SetActive(num == 0); + } + + private void InitProperties() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateRankItem)); + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.InitWrapContentItem)); + } + + private void InitWrapContentItem(Transform itemTransform, int index) + { + IXUISprite ixuisprite = itemTransform.Find("Background").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickRankItem)); + } + + private void OnClickRankItem(IXUISprite uiSprite) + { + ulong id = uiSprite.ID; + XFreeTeamVersusLeagueDocument.Doc.SendGetLeagueTeamInfo(id); + } + + private void UpdateRankItem(Transform itemTransform, int index) + { + bool flag = this.list != null && index < this.list.rankList.Count; + if (flag) + { + XLeagueTeamRankInfo xleagueTeamRankInfo = this.list.rankList[index] as XLeagueTeamRankInfo; + IXUILabel ixuilabel = itemTransform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = itemTransform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = itemTransform.Find("TeamName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = itemTransform.Find("ServerName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = itemTransform.Find("Score").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = itemTransform.Find("WinTimes").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = itemTransform.Find("WinRates").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = itemTransform.Find("Background").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = ixuisprite.spriteName.Substring(0, ixuisprite.spriteName.Length - 1) + Mathf.Min(xleagueTeamRankInfo.rank + 1u, 3f); + ixuisprite.gameObject.SetActive(xleagueTeamRankInfo.rank < 3u); + ixuilabel.SetText((xleagueTeamRankInfo.rank >= 3u) ? (xleagueTeamRankInfo.rank + 1u).ToString() : ""); + ixuilabel4.SetText(xleagueTeamRankInfo.point.ToString()); + ixuilabel5.SetText(xleagueTeamRankInfo.winNum.ToString()); + ixuilabel6.SetText((int)(xleagueTeamRankInfo.winRate * 100f) + "%"); + ixuilabel2.SetText(xleagueTeamRankInfo.teamName); + ixuilabel3.SetText("(" + xleagueTeamRankInfo.serverName + ")"); + ixuisprite2.ID = xleagueTeamRankInfo.leagueTeamID; + } + } + + private bool OnCloseBtnClicked(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankView.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankView.cs.meta new file mode 100644 index 00000000..14e93eca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRankView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ad09bf7d8012774e9e1e54ff14e8a1a +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordBehavior.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordBehavior.cs new file mode 100644 index 00000000..cce0bfee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordBehavior.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamLeagueRecordBehavior : DlgBehaviourBase + { + public IXUIButton CloseBtn; + + public IXUIWrapContent WrapContent; + + public IXUILabel WinTimesLabel; + + public IXUILabel LostTimesLabel; + + public IXUILabel WinRateLabel; + + public IXUILabel ConsWinLabel; + + public IXUILabel ConsLoseLabel; + + private void Awake() + { + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.WrapContent = (base.transform.Find("Bg/Bg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.WinTimesLabel = (base.transform.Find("Bg/Message/Win/WinTimes").GetComponent("XUILabel") as IXUILabel); + this.LostTimesLabel = (base.transform.Find("Bg/Message/Lose/LoseTimes").GetComponent("XUILabel") as IXUILabel); + this.WinRateLabel = (base.transform.Find("Bg/Message/Rate/Label").GetComponent("XUILabel") as IXUILabel); + this.ConsWinLabel = (base.transform.Find("Bg/Message/ConsWin/Label").GetComponent("XUILabel") as IXUILabel); + this.ConsLoseLabel = (base.transform.Find("Bg/Message/ConsLose/Label").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordBehavior.cs.meta new file mode 100644 index 00000000..aae839f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b923187f194add3429b09f39c2e33599 +timeCreated: 1611404409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordView.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordView.cs new file mode 100644 index 00000000..e64e436b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordView.cs @@ -0,0 +1,140 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamLeagueRecordView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TeamLeague/TeamLeagueRecord"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnShow() + { + base.OnShow(); + XFreeTeamVersusLeagueDocument.Doc.SendGetLeagueBattleRecord(); + } + + private void InitProperties() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateRecordItem)); + } + + private void UpdateRecordItem(Transform itemTransform, int index) + { + LeaguePKRecordInfo pkRecordInfoByIndex = XFreeTeamVersusLeagueDocument.Doc.GetPkRecordInfoByIndex(index); + bool flag = pkRecordInfoByIndex != null; + if (flag) + { + IXUILabel ixuilabel = itemTransform.Find("OpponentName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(pkRecordInfoByIndex.opponentTeamName); + IXUILabel ixuilabel2 = itemTransform.Find("Reward").GetComponent("XUILabel") as IXUILabel; + string arg = (pkRecordInfoByIndex.scoreChange >= 0) ? "+" : "-"; + ixuilabel2.SetText(arg + Math.Abs(pkRecordInfoByIndex.scoreChange)); + IXUISprite ixuisprite = itemTransform.Find("Status").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = this.ReplaceString(ixuisprite.spriteName, (pkRecordInfoByIndex.result == PkResultType.PkResult_Draw) ? "draw" : "win"); + ixuisprite.spriteName = this.ReplaceString(ixuisprite.spriteName, (pkRecordInfoByIndex.result == PkResultType.PkResult_Win) ? "win" : "lose"); + } + } + + private string ReplaceString(string origin, string target) + { + bool flag = origin.Contains("win"); + string result; + if (flag) + { + result = origin.Replace("win", target); + } + else + { + bool flag2 = origin.Contains("lose"); + if (flag2) + { + result = origin.Replace("lose", target); + } + else + { + bool flag3 = origin.Contains("draw"); + if (flag3) + { + result = origin.Replace("draw", target); + } + else + { + result = ""; + } + } + } + return result; + } + + private bool OnCloseBtnClicked(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + public void RefreshUI() + { + this.RefreshBaseInfo(); + this.RefreshWrapContent(); + } + + private void RefreshWrapContent() + { + int pkRecordCount = XFreeTeamVersusLeagueDocument.Doc.GetPkRecordCount(); + base.uiBehaviour.WrapContent.SetContentCount(pkRecordCount, false); + Transform parent = base.uiBehaviour.WrapContent.gameObject.transform.parent; + IXUIScrollView ixuiscrollView = parent.GetComponent("XUIScrollView") as IXUIScrollView; + ixuiscrollView.ResetPosition(); + } + + private void RefreshBaseInfo() + { + LeagueBattleRecordBaseInfo pkrecordBaseInfo = XFreeTeamVersusLeagueDocument.Doc.PKRecordBaseInfo; + base.uiBehaviour.WinRateLabel.SetText((int)(pkrecordBaseInfo.winRate * 100f) + "%"); + base.uiBehaviour.WinTimesLabel.SetText(pkrecordBaseInfo.totalWinNum.ToString()); + base.uiBehaviour.LostTimesLabel.SetText(pkrecordBaseInfo.totalLoseNum.ToString()); + base.uiBehaviour.ConsWinLabel.SetText(pkrecordBaseInfo.maxContinueWin.ToString()); + base.uiBehaviour.ConsLoseLabel.SetText(pkrecordBaseInfo.maxContinueLose.ToString()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordView.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordView.cs.meta new file mode 100644 index 00000000..40d4ed7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamLeagueRecordView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 733895182bece454fa60a5fc912cb292 +timeCreated: 1611403940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamListHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamListHandler.cs new file mode 100644 index 00000000..b343bfa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamListHandler.cs @@ -0,0 +1,536 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamListHandler : DlgHandlerBase + { + public IXUIButton m_BtnRefresh; + + public GameObject m_NoTeam; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public GameObject m_recruitEmpty; + + public IXUIButton m_BtnCreate; + + public IXUIButton m_BtnMatchTeam; + + public IXUIButton m_BtnRecruit; + + public IXUILabel m_MatchTeamLabel; + + public IXUILabel m_MatchingTeamLabel; + + public IXUIButton m_BtnAllList; + + public IXUITweenTool m_MatchingTween; + + private Transform m_BottomButtonsFrame; + + private Transform m_BottomButtonsNormalPos; + + private Transform m_BottomButtonsNoMatchPos; + + private XTeamDocument doc; + + private XCaptainPVPDocument capDoc; + + private XHeroBattleDocument heroDoc; + + private bool _bFirstOpen = false; + + private uint _TimerID = 0u; + + private int m_SelectedTeamID = 0; + + private int mCurTeamBriefIndex; + + private int m_MatchingTime; + + private int m_FastMatchTime; + + private XTeamPasswordHandler m_PasswordHandler; + + private List m_SelectedCategoriesGo = new List(); + + private XTimerMgr.ElapsedEventHandler _autoRefreshCb = null; + + private static readonly int MEMBER_INDEX_MASK = 4; + + public XTeamListHandler() + { + this._autoRefreshCb = new XTimerMgr.ElapsedEventHandler(this._AutoRefresh); + } + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("Bg"); + this.m_BottomButtonsFrame = transform.Find("BottomButtonsFrame"); + this.m_BottomButtonsNormalPos = transform.Find("BottomButtonsNormalPos"); + this.m_BottomButtonsNoMatchPos = transform.Find("BottomButtonsNoMatchPos"); + this.m_BtnRefresh = (transform.Find("BtnRefresh").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRecruit = (transform.Find("BtnRecruit").GetComponent("XUIButton") as IXUIButton); + this.m_BtnCreate = (this.m_BottomButtonsFrame.Find("BtnCreate").GetComponent("XUIButton") as IXUIButton); + this.m_BtnMatchTeam = (this.m_BottomButtonsFrame.Find("BtnMatch").GetComponent("XUIButton") as IXUIButton); + this.m_MatchTeamLabel = (this.m_BtnMatchTeam.gameObject.transform.Find("IdleLabel").GetComponent("XUILabel") as IXUILabel); + this.m_MatchingTeamLabel = (this.m_BtnMatchTeam.gameObject.transform.Find("MatchingLabel").GetComponent("XUILabel") as IXUILabel); + this.m_BtnAllList = (transform.Find("BtnTeamRoom").GetComponent("XUIButton") as IXUIButton); + this.m_MatchingTween = (transform.Find("MatchingFrame").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_recruitEmpty = transform.Find("RecruitEmpty").gameObject; + transform = base.PanelObject.transform.Find("Bg/AllTeamsFrame"); + this.m_NoTeam = transform.Find("NoTeams").gameObject; + this.m_ScrollView = (transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.doc.TeamListView = this; + this.doc.InitTeamListSelection(); + this.capDoc = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + this.heroDoc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this.m_PasswordHandler, this.m_BottomButtonsFrame.Find("PasswordFrame").gameObject, this, true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnRefresh.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnRefreshBtnClick)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + this.m_BtnMatchTeam.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnMatchTeamBtnClick)); + this.m_BtnCreate.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCreateBtnClick)); + this.m_BtnAllList.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnAllTeamBtnClick)); + this.m_BtnRecruit.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnRecruitClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_MatchingTween.gameObject.SetActive(false); + this._bFirstOpen = true; + this.m_SelectedTeamID = -1; + XSingleton.singleton.KillTimer(this._TimerID); + this._AutoRefresh(null); + this.RefreshPage(); + this._RefreshButtonName(); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + } + + public override void OnUnload() + { + this.doc.TeamListView = null; + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + DlgHandlerBase.EnsureUnload(ref this.m_PasswordHandler); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._UpdateMatchingTime(); + } + + public void OnCurrentDungeonChanged() + { + XSingleton.singleton.KillTimer(this._TimerID); + this._AutoRefresh(null); + this._RefreshButtonName(); + } + + public void Matching() + { + this.m_MatchingTween.PlayTween(true, -1f); + } + + private void _AutoRefresh(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + this.doc.ReqTeamList(true); + this._TimerID = XSingleton.singleton.SetTimer(5f, this._autoRefreshCb, null); + } + } + + public void RefreshPage() + { + List teamList = this.doc.TeamList; + this.m_WrapContent.SetContentCount(teamList.Count, false); + bool bFirstOpen = this._bFirstOpen; + if (bFirstOpen) + { + this.m_ScrollView.ResetPosition(); + this._bFirstOpen = false; + } + bool flag = GroupChatDocument.GetStageID(this.doc.currentDungeonID) > 0u; + this.m_BtnRecruit.SetVisible(flag); + bool flag2 = teamList.Count > 0; + this.m_NoTeam.SetActive(!flag2 && !flag); + this.m_recruitEmpty.SetActive(!flag2 && flag); + this._UpdateButtonState(); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + List teamList = this.doc.TeamList; + bool flag = index >= teamList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Item index out of range: ", index.ToString(), null, null, null, null); + } + else + { + XTeamBriefData xteamBriefData = teamList[index]; + IXUILabel ixuilabel = t.Find("TeamName").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("BtnJoin").GetComponent("XUIButton") as IXUIButton; + GameObject gameObject = t.Find("IsFull").gameObject; + GameObject gameObject2 = t.Find("IsFighting").gameObject; + GameObject gameObject3 = t.Find("Members/Leader").gameObject; + GameObject gameObject4 = t.Find("Lock").gameObject; + IXUILabel ixuilabel2 = t.Find("BattlePoint/Num").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("SisterTA").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = 0UL; + ixuisprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnPressTarjaInfo)); + IXUILabel ixuilabel3 = ixuisprite.transform.Find("Info").GetComponent("XUILabel") as IXUILabel; + bool flag2 = ixuilabel3 != null; + if (flag2) + { + ixuilabel3.SetVisible(false); + } + IXUISprite ixuisprite2 = t.Find("SisterTATeam").GetComponent("XUISprite") as IXUISprite; + ixuilabel3 = (ixuisprite2.transform.Find("Info").GetComponent("XUILabel") as IXUILabel); + IXUISprite ixuisprite3 = t.Find("Regression").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.SetVisible(xteamBriefData.regression); + bool flag3 = ixuilabel3 != null; + if (flag3) + { + ixuilabel3.SetVisible(false); + } + ixuisprite2.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnPressTarjaInfo)); + ixuisprite2.ID = 1UL; + bool flag4 = xteamBriefData.rift == null; + if (flag4) + { + ixuilabel.SetText(xteamBriefData.teamName); + } + else + { + ixuilabel.SetText(xteamBriefData.rift.GetSceneName(xteamBriefData.teamName)); + } + gameObject.SetActive(xteamBriefData.state == XTeamState.TS_FULL); + gameObject2.SetActive(xteamBriefData.state == XTeamState.TS_FIGHTING); + ixuibutton.SetVisible(xteamBriefData.state == XTeamState.TS_NOT_FULL || xteamBriefData.state == XTeamState.TS_VOTING); + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnJoinBtnClick)); + gameObject3.SetActive(false); + gameObject4.SetActive(xteamBriefData.hasPwd); + ixuilabel2.SetText(xteamBriefData.GetStrTeamPPT(0.0)); + xteamBriefData.goldGroup.SetUI(t.Find("RewardHunt").gameObject, true); + int i; + for (i = 0; i < xteamBriefData.members.Count; i++) + { + Transform transform = t.Find("Members/Member" + i.ToString()); + this._SetTeamMemberUI(transform, xteamBriefData.members[i], xteamBriefData, i, index); + bool flag5 = xteamBriefData.members[i].position == XTeamPosition.TP_LEADER; + if (flag5) + { + gameObject3.SetActive(true); + gameObject3.transform.localPosition = transform.localPosition; + } + } + while (i < xteamBriefData.totalMemberCount) + { + this._SetTeamMemberUI(t.Find("Members/Member" + i.ToString()), null, xteamBriefData, i, index); + i++; + } + while (i < XMyTeamHandler.LARGE_TEAM_CAPACITY) + { + this._SetTeamMemberUI(t.Find("Members/Member" + i.ToString()), null, null, i, index); + i++; + } + ixuisprite2.SetVisible(xteamBriefData.isTarja); + ixuisprite.SetVisible(this.doc.ShowTarja()); + } + } + + private void _SetTeamMemberUI(Transform t, XTeamMemberBriefData memberData, XTeamBriefData teamData, int memberIndex, int teamIndex) + { + bool flag = t == null; + if (!flag) + { + bool flag2 = teamData == null; + if (flag2) + { + t.gameObject.SetActive(false); + } + else + { + t.gameObject.SetActive(true); + IXUISprite ixuisprite = t.Find("Prof").GetComponent("XUISprite") as IXUISprite; + Transform t2 = t.Find("Relation"); + bool flag3 = memberData != null; + if (flag3) + { + ixuisprite.SetVisible(true); + ixuisprite.ID = (ulong)((long)(teamIndex << XTeamListHandler.MEMBER_INDEX_MASK | memberIndex)); + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2(XFastEnumIntEqualityComparer.ToInt(memberData.profession))); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnMemberClicked)); + XTeamView.SetTeamRelationUI(t2, memberData.relation, true, XTeamRelation.Relation.TR_NONE); + } + else + { + ixuisprite.SetVisible(false); + XTeamView.SetTeamRelationUI(t2, null, true, XTeamRelation.Relation.TR_NONE); + } + } + } + } + + private bool _OnPressTarjaInfo(IXUISprite sprite, bool pressed) + { + IXUILabel ixuilabel = sprite.transform.Find("Info").GetComponent("XUILabel") as IXUILabel; + bool flag = ixuilabel != null; + if (flag) + { + bool flag2 = sprite.ID == 1UL; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TEAM_TARJA_DESC_TEAM"))); + } + else + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TEAM_TARJA_DESC"))); + } + ixuilabel.SetVisible(pressed); + } + return false; + } + + private bool _OnRecruitClick(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_GroupRecruit, 0UL); + return true; + } + + private void _OnMemberClicked(IXUISprite iSp) + { + int num = (int)(iSp.ID & (ulong)((long)((1 << XTeamListHandler.MEMBER_INDEX_MASK) - 1))); + int num2 = (int)(iSp.ID >> XTeamListHandler.MEMBER_INDEX_MASK); + List teamList = this.doc.TeamList; + bool flag = num2 >= teamList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("teamIndex out of range: ", num2.ToString(), null, null, null, null); + } + else + { + XTeamBriefData xteamBriefData = teamList[num2]; + bool flag2 = num >= xteamBriefData.members.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("memberIndex out of range: ", num.ToString(), null, null, null, null); + } + else + { + XTeamMemberBriefData xteamMemberBriefData = xteamBriefData.members[num]; + bool flag3 = !xteamMemberBriefData.robot; + if (flag3) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(xteamMemberBriefData.uid, false); + } + } + } + } + + private void _UpdateButtonState() + { + bool flag = this.doc.IsSoloMatching(this.doc.currentDungeonType); + this.m_MatchingTeamLabel.SetVisible(flag); + this.m_MatchTeamLabel.SetVisible(!flag); + bool flag2 = !flag; + if (flag2) + { + this.m_MatchingTween.gameObject.SetActive(false); + } + else + { + bool bAutoMatching = this.doc.bAutoMatching; + if (bAutoMatching) + { + this.Matching(); + this.doc.bAutoMatching = false; + } + } + bool flag3 = !flag; + if (flag3) + { + this.m_MatchingTime = -1; + } + this._UpdateMatchingTime(); + } + + public override void StackRefresh() + { + XSingleton.singleton.KillTimer(this._TimerID); + this._AutoRefresh(null); + this._RefreshButtonName(); + } + + private bool _OnRefreshBtnClick(IXUIButton go) + { + XSingleton.singleton.KillTimer(this._TimerID); + this._AutoRefresh(null); + return true; + } + + private void _OnTeamClick(IXUISprite iSp) + { + int num = (int)iSp.ID; + List teamList = this.doc.TeamList; + bool flag = num >= teamList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Item index out of range: ", num.ToString(), null, null, null, null); + } + else + { + XTeamBriefData xteamBriefData = teamList[num]; + this.m_SelectedTeamID = xteamBriefData.teamID; + this.m_WrapContent.RefreshAllVisibleContents(); + this._UpdateButtonState(); + } + } + + private bool _OnJoinBtnClick(IXUIButton go) + { + this.mCurTeamBriefIndex = (int)go.ID; + this._RealShowJoinTeamView(); + return true; + } + + private bool _OnMatchTeamBtnClick(IXUIButton go) + { + TeamLevelType currentDungeonType = this.doc.currentDungeonType; + if (currentDungeonType != TeamLevelType.TeamLevelCaptainPVP && currentDungeonType != TeamLevelType.TeamLevelHeroBattle && currentDungeonType - TeamLevelType.TeamLevelMultiPK > 3) + { + this.doc.ToggleMatching(); + } + else + { + KMatchType kmatchType = XTeamDocument.TeamType2MatchType(this.doc.currentDungeonType); + KMatchOp op = (this.doc.SoloMatchType != kmatchType) ? KMatchOp.KMATCH_OP_START : KMatchOp.KMATCH_OP_STOP; + this.doc.ReqMatchStateChange(kmatchType, op, false); + } + return true; + } + + private bool _OnAllTeamBtnClick(IXUIButton go) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XSingleton.singleton.KillTimer(this._TimerID); + return true; + } + + private bool _OnCreateBtnClick(IXUIButton go) + { + this._RealShowCreateTeamView(); + return true; + } + + private void _RefreshButtonName() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID((int)this.doc.currentDungeonID); + bool flag = expeditionDataByID == null || expeditionDataByID.fastmatch == 0; + if (flag) + { + this.m_MatchTeamLabel.SetText(XStringDefineProxy.GetString("TEAM_MATCH_BTN_NORMAL")); + } + else + { + this.m_MatchTeamLabel.SetText(XStringDefineProxy.GetString("TEAM_MATCH_BTN_QUICK")); + } + bool flag2 = expeditionDataByID != null; + if (flag2) + { + bool flag3 = expeditionDataByID.FMARobotTime == 0; + if (flag3) + { + this.m_MatchingTeamLabel.SetText(XStringDefineProxy.GetString("MATCHING")); + } + this.m_FastMatchTime = expeditionDataByID.FMARobotTime; + } + else + { + this.m_FastMatchTime = 0; + } + } + + private void _UpdateMatchingTime() + { + bool flag = this.m_FastMatchTime == 0; + if (!flag) + { + bool flag2 = this.m_MatchingTime != this.doc.MatchingTime && this.doc.MatchingTime >= 0; + if (flag2) + { + this.m_MatchingTime = this.doc.MatchingTime; + this.m_MatchingTeamLabel.SetText(string.Format("{0}...\n{1}", XStringDefineProxy.GetString("MATCHING"), XStringDefineProxy.GetString("LEFT_MATCH_TIME", new object[] + { + this.m_MatchingTime, + this.m_FastMatchTime + }))); + } + } + } + + private void _RealShowCreateTeamView() + { + bool flag = this.doc.MyTeam != null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAM_ALREADY_INTEAM, "fece00"); + } + else + { + this.doc.password = this.m_PasswordHandler.GetPassword(); + this.doc.ReqTeamOp(TeamOperate.TEAM_CREATE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_TEAM_PASSWORD, this.m_PasswordHandler.GetInputPassword()); + } + } + + private void _RealShowJoinTeamView() + { + bool bInTeam = this.doc.bInTeam; + if (bInTeam) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAM_ALREADY_INTEAM, "fece00"); + } + else + { + XTeamBriefData teamBriefByIndex = this.doc.GetTeamBriefByIndex(this.mCurTeamBriefIndex); + bool flag = teamBriefByIndex == null; + if (!flag) + { + XTeamView.TryJoinTeam(teamBriefByIndex.teamID, teamBriefByIndex.hasPwd); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamListHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamListHandler.cs.meta new file mode 100644 index 00000000..ec059316 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamListHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65cabdf8878cc744a8f1b611bc629039 +timeCreated: 1611403851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMember.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamMember.cs new file mode 100644 index 00000000..cda9c7f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMember.cs @@ -0,0 +1,228 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamMember : IComparable + { + public ulong uid + { + get + { + return this.briefData.uid; + } + set + { + this.briefData.uid = value; + } + } + + public string name + { + get + { + return this.briefData.name; + } + set + { + this.briefData.name = value; + } + } + + public RoleType profession + { + get + { + return this.briefData.profession; + } + } + + public int level + { + get + { + return this.briefData.level; + } + } + + public uint ppt + { + get + { + return this.briefData.ppt; + } + } + + public XTeamPosition position + { + get + { + return this.briefData.position; + } + set + { + this.briefData.position = value; + } + } + + public ulong guildID + { + get + { + return this.briefData.guildid; + } + set + { + this.briefData.guildid = value; + } + } + + public uint vip + { + get + { + return this.briefData.vip; + } + set + { + this.briefData.vip = value; + } + } + + public uint paymemberid + { + get + { + return this.briefData.paymemberid; + } + set + { + this.briefData.paymemberid = value; + } + } + + public XTeamRelation Relation + { + get + { + return this.briefData.relation; + } + } + + public ulong dragonGuildID + { + get + { + return this.briefData.dragonguildid; + } + } + + public bool bIsLeader + { + get + { + return this.position == XTeamPosition.TP_LEADER; + } + } + + public bool bIsHelper + { + get + { + return this._is_helper; + } + } + + public bool bIsTicket + { + get + { + return this._is_ticket; + } + } + + public bool IsTarja + { + get + { + return this._tarjatime > 0u; + } + } + + public uint ServerID + { + get + { + return this._server_id; + } + } + + private XTeamMemberBriefData briefData = new XTeamMemberBriefData(); + + public ulong entityID; + + public int joinIndex; + + public ExpTeamMemberState state = ExpTeamMemberState.EXPTEAM_IDLE; + + public List fashion = null; + + public OutLook outlook = null; + + public uint sceneID; + + public int leftCount; + + public bool regression = false; + + public bool bIsRobot = false; + + private bool _is_helper = false; + + private bool _is_ticket = false; + + private uint _tarjatime = 0u; + + private uint _server_id = 0u; + + public void SetData(TeamMember data, string leaderName, int joinindex) + { + this.briefData.SetData(data, leaderName); + this.entityID = this.uid; + this.joinIndex = joinindex; + this.state = (ExpTeamMemberState)data.state; + this.fashion = data.fashion; + this.outlook = data.outlook; + this.sceneID = (data.robot ? 1u : data.sceneID); + this.leftCount = (data.robot ? 1 : data.leftcount); + this.briefData.vip = data.vipLevel; + this.bIsRobot = data.robot; + this._is_helper = (data.membertype == TeamMemberType.TMT_HELPER); + this._is_ticket = (data.membertype == TeamMemberType.TMT_USETICKET); + this.briefData.paymemberid = data.paymemberid; + this._tarjatime = data.tarjatime; + this._server_id = data.serverid; + this.regression = data.kingback; + } + + public int CompareTo(XTeamMember other) + { + int num = XFastEnumIntEqualityComparer.ToInt(this.position).CompareTo(XFastEnumIntEqualityComparer.ToInt(other.position)); + bool flag = num == 0; + if (flag) + { + num = this.joinIndex.CompareTo(other.joinIndex); + } + return num; + } + + public static XTeamMember CreateTeamMember(TeamMember data, string leaderName, int joinindex) + { + XTeamMember xteamMember = new XTeamMember(); + xteamMember.SetData(data, leaderName, joinindex); + return xteamMember; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMember.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamMember.cs.meta new file mode 100644 index 00000000..3960db86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cd0857501a779748be146015c8971a4 +timeCreated: 1611403348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMemberBriefData.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberBriefData.cs new file mode 100644 index 00000000..83ed9275 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberBriefData.cs @@ -0,0 +1,95 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamMemberBriefData : XDataBase, IComparable + { + public bool isTarja + { + get + { + return this.tarjatime > 0u; + } + } + + public ulong uid; + + public string name; + + public RoleType profession; + + public XTeamPosition position; + + public int level; + + public uint ppt; + + public ulong guildid; + + public XTeamRelation relation = new XTeamRelation(); + + public uint vip; + + public uint paymemberid; + + public bool robot; + + public ulong dragonguildid; + + public bool regression = false; + + private uint tarjatime; + + public void SetData(TeamMember data, string leaderName) + { + this.uid = data.memberID; + this.name = data.name; + this.profession = data.profession; + this.level = data.level; + this.ppt = data.powerpoint; + this.position = ((this.name == leaderName) ? XTeamPosition.TP_LEADER : XTeamPosition.TP_MEMBER); + this.guildid = data.guildid; + this.robot = data.robot; + this.tarjatime = data.tarjatime; + this.dragonguildid = data.dragonguildid; + this.regression = data.kingback; + } + + public override void Init() + { + base.Init(); + this.position = XTeamPosition.TP_MEMBER; + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + + public int CompareTo(XTeamMemberBriefData other) + { + bool flag = this.position == XTeamPosition.TP_LEADER; + int result; + if (flag) + { + result = -1; + } + else + { + bool flag2 = this.uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + result = -1; + } + else + { + result = -this.level.CompareTo(other.level); + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMemberBriefData.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberBriefData.cs.meta new file mode 100644 index 00000000..09589410 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberBriefData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d89d0c9d3c02324aada9cca9660c70c +timeCreated: 1611403696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMemberCountChangedEventArgs.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberCountChangedEventArgs.cs new file mode 100644 index 00000000..d58ddae8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberCountChangedEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XTeamMemberCountChangedEventArgs : XEventArgs + { + public uint oldCount; + + public uint newCount; + + public XTeamMemberCountChangedEventArgs() + { + this._eDefine = XEventDefine.XEvent_TeamMemberCountChanged; + } + + public override void Recycle() + { + base.Recycle(); + this.oldCount = 0u; + this.newCount = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMemberCountChangedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberCountChangedEventArgs.cs.meta new file mode 100644 index 00000000..0c78d5e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberCountChangedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c87889b9975a20c448bce56f5064bc86 +timeCreated: 1611404534 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMemberMonitor.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberMonitor.cs new file mode 100644 index 00000000..52d17dfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberMonitor.cs @@ -0,0 +1,441 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamMemberMonitor + { + public XTeamBloodUIData Data + { + get + { + return this.m_MemberData; + } + } + + public XEntity Entity + { + get + { + return this.m_Entity; + } + } + + public ulong ID + { + get + { + return this.m_MemberData.uid; + } + } + + public ulong EntityID + { + get + { + return this.m_MemberData.entityID; + } + } + + private GameObject m_Go; + + private bool m_bActive = true; + + private XTeamBloodUIData m_MemberData; + + private XTeamMonitorStateMgr m_StateMgr; + + private XEntity m_Entity; + + private IXUISprite m_uiAvatar; + + private IXUILabel m_uiName; + + private GameObject m_uiLeader; + + private IXUIProgress m_uiHpBar; + + private IXUIProgress m_uiMpBar; + + private GameObject m_uiDead; + + private IXUISprite m_HeroIcon; + + private IXUISprite m_HeroUnSelect; + + private IXUILabel m_uiLevel; + + public IXUISprite m_sprVoice; + + public IXUISprite m_sprSpeak; + + private GameObject m_uiLeave; + + private GameObject m_uiLoading; + + private IXUICheckBox m_uiCheckBox; + + private XBuffMonitorHandler m_BuffMonitor; + + public XTeamMemberMonitor(XTeamMonitorStateMgr stateMgr) + { + this.m_StateMgr = stateMgr; + } + + public void SetGo(GameObject go) + { + this.m_Go = go; + this.m_uiAvatar = (go.transform.Find("AvatarBG/Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_uiName = (go.transform.Find("PlayerName").GetComponent("XUILabel") as IXUILabel); + this.m_uiLeader = go.transform.Find("TeamLeader").gameObject; + this.m_HeroIcon = (go.transform.Find("Frame/HeroIcon").GetComponent("XUISprite") as IXUISprite); + this.m_HeroUnSelect = (go.transform.Find("Frame/UnSelect").GetComponent("XUISprite") as IXUISprite); + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + this.m_sprVoice = (go.transform.Find("VoiceInfo/voice").GetComponent("XUISprite") as IXUISprite); + this.m_sprSpeak = (go.transform.Find("VoiceInfo/speak").GetComponent("XUISprite") as IXUISprite); + } + Transform transform = go.transform.Find("HpBar"); + bool flag2 = transform != null; + if (flag2) + { + this.m_uiHpBar = (transform.GetComponent("XUIProgress") as IXUIProgress); + } + else + { + this.m_uiHpBar = null; + } + transform = go.transform.Find("MpBar"); + bool flag3 = transform != null; + if (flag3) + { + this.m_uiMpBar = (transform.GetComponent("XUIProgress") as IXUIProgress); + } + else + { + this.m_uiMpBar = null; + } + transform = go.transform.Find("BuffFrame"); + bool flag4 = transform != null; + if (flag4) + { + bool flag5 = XSingleton.singleton.SceneType != SceneType.SCENE_HEROBATTLE || !XSingleton.singleton.bSpectator; + if (flag5) + { + transform.gameObject.SetActive(true); + DlgHandlerBase.EnsureCreate(ref this.m_BuffMonitor, transform.gameObject, null, true); + } + else + { + transform.gameObject.SetActive(false); + } + } + transform = go.transform.Find("Dead"); + bool flag6 = transform != null; + if (flag6) + { + this.m_uiDead = transform.gameObject; + } + transform = go.transform.Find("Leave"); + bool flag7 = transform != null; + if (flag7) + { + this.m_uiLeave = transform.gameObject; + } + transform = go.transform.Find("Loading"); + bool flag8 = transform != null; + if (flag8) + { + this.m_uiLoading = transform.gameObject; + } + transform = go.transform.Find("Level"); + bool flag9 = transform != null; + if (flag9) + { + this.m_uiLevel = (transform.GetComponent("XUILabel") as IXUILabel); + } + else + { + this.m_uiLevel = null; + } + bool flag10 = DlgBase.singleton.IsLoaded(); + if (flag10) + { + this.m_uiCheckBox = (go.GetComponent("XUICheckBox") as IXUICheckBox); + } + } + + public void SetActive(bool bActive) + { + this.m_bActive = bActive; + this.m_Go.SetActive(bActive); + } + + public void PlaySound(int state) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + this.m_sprVoice.SetVisible(state == 1); + this.m_sprSpeak.SetVisible(state == 2); + } + } + + public void SetMemberData(XTeamBloodUIData data) + { + this.m_MemberData = data; + this.m_Entity = null; + this.PlaySound(0); + this._SetBasicUI(); + this.Update(); + } + + private bool OnSpectateChangeClick(IXUICheckBox checkBox) + { + bool flag = !checkBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(checkBox.ID); + bool flag2 = entityConsiderDeath != null && entityConsiderDeath.IsRole; + if (flag2) + { + XSingleton.singleton.Player.WatchIt(entityConsiderDeath as XRole); + } + result = true; + } + return result; + } + + private void _SetBasicUI() + { + bool flag = this.m_MemberData != null; + if (flag) + { + this.m_uiName.SetText(this.m_MemberData.name); + bool flag2 = XSingleton.singleton.SceneType != SceneType.SCENE_HEROBATTLE; + if (flag2) + { + this.m_uiAvatar.SetVisible(true); + this.m_uiLevel.gameObject.SetActive(true); + this.m_HeroIcon.gameObject.transform.parent.gameObject.SetActive(false); + int profID = XFastEnumIntEqualityComparer.ToInt(this.m_MemberData.profession); + this.m_uiAvatar.spriteName = XSingleton.singleton.GetProfIcon(profID); + this.m_uiLeader.SetActive(this.m_MemberData.bIsLeader); + bool flag3 = this.m_uiLevel != null; + if (flag3) + { + this.m_uiLevel.SetText("Lv." + this.m_MemberData.level.ToString()); + } + } + else + { + this.m_uiAvatar.SetVisible(false); + this.m_uiLeader.SetActive(false); + this.m_uiLevel.gameObject.SetActive(false); + this.m_HeroIcon.gameObject.transform.parent.gameObject.SetActive(true); + uint num = 0u; + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.heroIDIndex.TryGetValue(this.m_MemberData.uid, out num); + bool flag4 = num == 0u; + if (flag4) + { + this.m_HeroIcon.SetAlpha(0f); + this.m_HeroUnSelect.SetAlpha(1f); + } + else + { + this.m_HeroIcon.SetAlpha(1f); + OverWatchTable.RowData byHeroID = specificDocument.OverWatchReader.GetByHeroID(num); + bool flag5 = byHeroID != null; + if (flag5) + { + this.m_HeroIcon.SetSprite(byHeroID.Icon, byHeroID.IconAtlas, false); + } + else + { + XSingleton.singleton.AddErrorLog("Error heroID on TeamMonitor. heroID = ", num.ToString(), null, null, null, null); + } + this.m_HeroUnSelect.SetAlpha(0f); + } + } + } + else + { + this.m_HeroIcon.gameObject.transform.parent.gameObject.SetActive(false); + this.m_uiName.SetText(""); + this.m_uiLeader.SetActive(false); + this.m_uiAvatar.spriteName = "zd_wh"; + bool flag6 = this.m_uiLevel != null; + if (flag6) + { + this.m_uiLevel.SetText(""); + } + } + this.m_uiAvatar.SetEnabled(true); + bool flag7 = this.m_uiDead != null; + if (flag7) + { + this.m_uiDead.SetActive(false); + } + bool flag8 = this.m_uiHpBar != null; + if (flag8) + { + this.m_uiHpBar.value = 0f; + } + bool flag9 = !XSingleton.singleton.bSpectator && this.m_uiMpBar != null; + if (flag9) + { + this.m_uiMpBar.value = 0f; + } + bool flag10 = this.m_BuffMonitor != null; + if (flag10) + { + this.m_BuffMonitor.InitMonitor(XSingleton.singleton.BuffMaxDisplayCountTeam, this.m_MemberData != null && this.m_MemberData.isLeft, false); + } + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag11 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.WatchTo != null && this.m_MemberData != null && this.m_MemberData.uid == XSingleton.singleton.Player.WatchTo.ID; + if (flag11) + { + this.m_uiCheckBox.ForceSetFlag(true); + } + else + { + this.m_uiCheckBox.ForceSetFlag(false); + } + this.m_uiCheckBox.ID = this.m_MemberData.uid; + this.m_uiCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSpectateChangeClick)); + } + } + + private void _SetState() + { + XTeamMonitorState state = this.m_StateMgr.GetState(this.m_MemberData.uid); + bool flag = this.m_uiLeave != null; + if (flag) + { + this.m_uiLeave.SetActive(this.m_Entity == null && state != XTeamMonitorState.TMS_Loading); + } + bool flag2 = this.m_uiLoading != null; + if (flag2) + { + this.m_uiLoading.SetActive(this.m_Entity == null && state == XTeamMonitorState.TMS_Loading); + } + } + + public void Update() + { + bool flag = !this.m_bActive; + if (!flag) + { + bool flag2 = this.m_Entity == null && this.m_MemberData != null; + if (flag2) + { + this.m_Entity = XSingleton.singleton.GetEntityConsiderDeath(this.m_MemberData.entityID); + bool flag3 = this.m_Entity == null; + if (flag3) + { + this._SetState(); + return; + } + bool flag4 = !this.m_Entity.Deprecated; + if (flag4) + { + bool flag5 = this.m_BuffMonitor != null; + if (flag5) + { + this.m_BuffMonitor.OnBuffChanged(this.m_Entity.Buffs.GetUIBuffList()); + } + this.m_StateMgr.SetState(this.m_MemberData.uid, XTeamMonitorState.TMS_Normal); + } + } + bool flag6 = this.m_Entity == null || this.m_Entity.Deprecated; + if (flag6) + { + this.m_Entity = null; + this._SetBasicUI(); + this._SetState(); + } + else + { + bool flag7 = this.m_BuffMonitor != null; + if (flag7) + { + this.m_BuffMonitor.OnUpdate(); + } + this._SetState(); + bool flag8 = this.m_uiHpBar != null; + if (flag8) + { + int num = (int)this.m_Entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + int num2 = (int)this.m_Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag9 = num2 < 0; + if (flag9) + { + num2 = 0; + } + this.m_uiHpBar.value = (float)num2 / (float)num; + } + bool flag10 = !XSingleton.singleton.bSpectator && this.m_uiMpBar != null; + if (flag10) + { + int num3 = (int)this.m_Entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxMP_Total); + int num4 = (int)this.m_Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + bool flag11 = num4 < 0; + if (flag11) + { + num4 = 0; + } + this.m_uiMpBar.value = (float)num4 / (float)num3; + } + bool flag12 = this.m_uiDead != null; + if (flag12) + { + this.m_uiDead.SetActive(!XEntity.ValideEntity(this.m_Entity)); + this.m_uiAvatar.SetEnabled(XEntity.ValideEntity(this.m_Entity)); + } + } + } + } + + public void OnBuffChange(List buffList) + { + bool flag = this.m_BuffMonitor != null; + if (flag) + { + this.m_BuffMonitor.OnBuffChanged(buffList); + } + } + + public void CheckToggleState() + { + bool flag = XSingleton.singleton.Player != null && XSingleton.singleton.Player.WatchTo != null && this.m_MemberData.uid == XSingleton.singleton.Player.WatchTo.ID; + if (flag) + { + this.m_uiCheckBox.bChecked = true; + } + else + { + this.m_uiCheckBox.bChecked = false; + } + } + + public void Unload() + { + DlgHandlerBase.EnsureUnload(ref this.m_BuffMonitor); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMemberMonitor.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberMonitor.cs.meta new file mode 100644 index 00000000..a4dfbbd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMemberMonitor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e96898f851eb2ec43916e3be3ea2c961 +timeCreated: 1611404756 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorHandler.cs new file mode 100644 index 00000000..3f20f776 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorHandler.cs @@ -0,0 +1,448 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamMonitorHandler : DlgHandlerBase + { + private XTeamDocument _TeamDoc; + + private XUIPool m_TeamUIPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_Members = new List(); + + private XTeamMonitorStateMgr m_StateMgr = new XTeamMonitorStateMgr(); + + private float m_LastStateQueryTime = 0f; + + private bool m_bShowMonitor = true; + + private bool m_bTempHide = false; + + public XSceneDamageRankHandler m_DamageRankHandler; + + private GameObject m_TeamGo; + + private IXUICheckBox m_RankCheckBox; + + private IXUICheckBox m_TeamCheckBox; + + private List _teamList = new List(); + + protected override void Init() + { + base.Init(); + this.m_TeamGo = base.PanelObject.transform.Find("TeamPanel").gameObject; + Transform transform = this.m_TeamGo.transform.Find("TeammateTpl"); + this.m_TeamUIPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this._TeamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + transform = base.PanelObject.transform.Find("RankPanel"); + bool flag = transform != null; + if (flag) + { + DlgHandlerBase.EnsureCreate(ref this.m_DamageRankHandler, transform.gameObject, this, false); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + this.m_RankCheckBox = (base.PanelObject.transform.Find("TabList/Rank").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_TeamCheckBox = (base.PanelObject.transform.Find("TabList/Team").GetComponent("XUICheckBox") as IXUICheckBox); + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType == SceneType.SCENE_PKTWO || sceneType == SceneType.SCENE_CUSTOMPKTWO) + { + this.m_RankCheckBox.SetVisible(false); + this.m_TeamCheckBox.SetVisible(false); + } + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + bool flag = !XSingleton.singleton.bSpectator; + if (flag) + { + this.m_RankCheckBox.ID = 0UL; + this.m_TeamCheckBox.ID = 1UL; + this.m_RankCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnTabSelectionChanged)); + this.m_TeamCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnTabSelectionChanged)); + } + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_DamageRankHandler); + for (int i = 0; i < this.m_Members.Count; i++) + { + this.m_Members[i].Unload(); + } + base.OnUnload(); + } + + private bool _OnTabSelectionChanged(IXUICheckBox ckb) + { + bool flag = !ckb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = ckb.ID == 0UL; + if (flag2) + { + bool flag3 = this.m_DamageRankHandler != null; + if (flag3) + { + this.m_DamageRankHandler.SetVisible(true); + } + this.m_TeamGo.SetActive(false); + } + else + { + bool flag4 = this.m_DamageRankHandler != null; + if (flag4) + { + this.m_DamageRankHandler.SetVisible(false); + } + this.m_TeamGo.SetActive(true); + } + result = true; + } + return result; + } + + public override void OnUpdate() + { + bool flag = !this.active; + if (!flag) + { + base.OnUpdate(); + for (int i = 0; i < this.m_Members.Count; i++) + { + this.m_Members[i].Update(); + } + bool flag2 = this.m_DamageRankHandler != null && this.m_DamageRankHandler.active; + if (flag2) + { + this.m_DamageRankHandler.OnUpdate(); + } + this._ReqQueryRoleStates(); + } + } + + private void _ReqQueryRoleStates() + { + bool flag = this.m_StateMgr.HasLoadingEntity(); + if (flag) + { + float realtimeSinceStartup = Time.realtimeSinceStartup; + bool flag2 = realtimeSinceStartup - this.m_LastStateQueryTime < 1f; + if (!flag2) + { + this.m_LastStateQueryTime = realtimeSinceStartup; + PtcC2G_QueryRoleStateReq ptcC2G_QueryRoleStateReq = new PtcC2G_QueryRoleStateReq(); + for (int i = 0; i < this.m_Members.Count; i++) + { + XTeamMemberMonitor xteamMemberMonitor = this.m_Members[i]; + bool flag3 = xteamMemberMonitor.Entity == null && this.m_StateMgr.GetState(xteamMemberMonitor.Data.entityID) == XTeamMonitorState.TMS_Loading; + if (flag3) + { + ptcC2G_QueryRoleStateReq.Data.roleids.Add(xteamMemberMonitor.Data.entityID); + } + } + bool flag4 = ptcC2G_QueryRoleStateReq.Data.roleids.Count > 0; + if (flag4) + { + XSingleton.singleton.Send(ptcC2G_QueryRoleStateReq); + } + } + } + } + + public void OnQueryRoleStates(QueryRoleStateAck data) + { + bool flag = data.roleids.Count != data.state.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("data.roleids.Count != data.state.Count ", data.roleids.Count.ToString(), " != ", data.state.Count.ToString(), null, null); + } + else + { + for (int i = 0; i < data.roleids.Count; i++) + { + this.m_StateMgr.SetState(data.roleids[i], (XTeamMonitorState)data.state[i]); + } + } + } + + public void TemporarilyHide(bool bHide) + { + this.m_bTempHide = bHide; + this.OnTeamInfoChanged(); + } + + public void TeamInfoChangeOnBattle(XTeam team) + { + bool flag = team == null; + if (flag) + { + this._teamList.Clear(); + this.OnTeamInfoChanged(); + } + else + { + bool flag2 = team.members.Count != this._teamList.Count; + if (flag2) + { + int count = this._teamList.Count; + bool flag3 = team.members.Count < count; + if (flag3) + { + for (int i = count - 1; i >= team.members.Count; i--) + { + this._teamList.RemoveAt(i); + } + } + else + { + for (int j = count; j < team.members.Count; j++) + { + XTeamBloodUIData item = new XTeamBloodUIData(); + this._teamList.Add(item); + } + } + } + for (int k = 0; k < this._teamList.Count; k++) + { + this._teamList[k].uid = team.members[k].uid; + this._teamList[k].entityID = team.members[k].entityID; + this._teamList[k].level = (uint)team.members[k].level; + this._teamList[k].name = team.members[k].name; + this._teamList[k].profession = team.members[k].profession; + this._teamList[k].bIsLeader = team.members[k].bIsLeader; + } + this.OnTeamInfoChanged(); + } + } + + public void TeamInfoChangeOnSpectate(List list) + { + bool flag = list.Count != this._teamList.Count; + if (flag) + { + int count = this._teamList.Count; + bool flag2 = list.Count < count; + if (flag2) + { + for (int i = count - 1; i >= list.Count; i--) + { + this._teamList.RemoveAt(i); + } + } + else + { + for (int j = count; j < list.Count; j++) + { + XTeamBloodUIData item = new XTeamBloodUIData(); + this._teamList.Add(item); + } + } + } + for (int k = 0; k < this._teamList.Count; k++) + { + this._teamList[k] = list[k]; + } + this.OnTeamInfoChanged(); + } + + public void InitWhenShowMainUIByTeam(XTeam team) + { + this.InitWhenShowMainUI(); + this.TeamInfoChangeOnBattle(team); + } + + public void InitWhenShowMainUIByBloodList(List list) + { + this.InitWhenShowMainUI(); + this.TeamInfoChangeOnSpectate(list); + } + + public void InitWhenShowMainUI() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + SceneType type = (SceneType)sceneData.type; + if (type <= SceneType.SCENE_TOWER) + { + if (type == SceneType.SCENE_ABYSSS) + { + this.m_bShowMonitor = (XSingleton.singleton.SyncMode || XSingleton.singleton.HasRobot); + goto IL_8A; + } + if (type != SceneType.SCENE_TOWER) + { + goto IL_78; + } + } + else if (type != SceneType.SCENE_GMF && type != SceneType.SCENE_GPR && type != SceneType.SCENE_LEAGUE_BATTLE) + { + goto IL_78; + } + this.m_bShowMonitor = XSingleton.singleton.bSpectator; + goto IL_8A; + IL_78: + this.m_bShowMonitor = XSingleton.singleton.SyncMode; + IL_8A: + this.m_bTempHide = false; + bool flag = !XSingleton.singleton.bSpectator; + if (flag) + { + byte teamInfoDefaultTab = sceneData.TeamInfoDefaultTab; + if (teamInfoDefaultTab != 0) + { + if (teamInfoDefaultTab == 1) + { + this.m_RankCheckBox.bChecked = true; + } + } + else + { + this.m_TeamCheckBox.bChecked = true; + } + } + } + + public void OnTeamInfoChanged() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag) + { + base.SetVisible(false); + } + else + { + bool flag2 = (!XSingleton.singleton.bSpectator && !this._TeamDoc.bInTeam && XSingleton.singleton.SceneType != SceneType.SCENE_PVP && XSingleton.singleton.SceneType != SceneType.SCENE_HEROBATTLE && XSingleton.singleton.SceneType != SceneType.SCENE_PKTWO && XSingleton.singleton.SceneType != SceneType.SCENE_WEEKEND4V4_CRAZYBOMB && XSingleton.singleton.SceneType != SceneType.SCENE_WEEKEND4V4_GHOSTACTION && XSingleton.singleton.SceneType != SceneType.SCENE_WEEKEND4V4_HORSERACING && XSingleton.singleton.SceneType != SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE && XSingleton.singleton.SceneType != SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT && XSingleton.singleton.SceneType != SceneType.SCENE_WEEKEND4V4_DUCK) || !this.m_bShowMonitor || this.m_bTempHide; + if (flag2) + { + base.SetVisible(false); + } + else + { + bool flag3 = (this._TeamDoc.bInTeam || XSingleton.singleton.bSpectator || XSingleton.singleton.SceneType == SceneType.SCENE_PVP || XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE || XSingleton.singleton.SceneType == SceneType.SCENE_PKTWO || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_GHOSTACTION || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_DUCK) && !this.active; + if (flag3) + { + base.SetVisible(true); + } + bool bSpectator = XSingleton.singleton.bSpectator; + int num; + if (bSpectator) + { + num = this._teamList.Count; + } + else + { + num = this._teamList.Count - 1; + } + this.m_StateMgr.SetTotalCount(this._teamList); + bool flag4 = this.m_Members.Count < num; + if (flag4) + { + for (int i = this.m_Members.Count; i < num; i++) + { + XTeamMemberMonitor xteamMemberMonitor = new XTeamMemberMonitor(this.m_StateMgr); + GameObject gameObject = this.m_TeamUIPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_TeamUIPool.TplPos.x, this.m_TeamUIPool.TplPos.y - (float)(this.m_TeamUIPool.TplHeight * i)); + xteamMemberMonitor.SetGo(gameObject); + this.m_Members.Add(xteamMemberMonitor); + } + } + int j = 0; + int num2 = 0; + while (num2 < this._teamList.Count && j < this.m_Members.Count) + { + bool flag5 = this._teamList[num2].uid == XSingleton.singleton.XPlayerData.RoleID; + if (!flag5) + { + this.m_Members[j].SetMemberData(this._teamList[num2]); + this.m_Members[j].SetActive(true); + j++; + } + num2++; + } + while (j < num) + { + this.m_Members[j].SetMemberData(null); + this.m_Members[j].SetActive(true); + j++; + } + while (j < this.m_Members.Count) + { + this.m_Members[j].SetActive(false); + j++; + } + this.HideVoice(); + } + } + } + + public void OnTeamMemberBuffChange(ulong memberID, List buff) + { + for (int i = 0; i < this.m_Members.Count; i++) + { + bool flag = this.m_Members[i].EntityID == memberID; + if (flag) + { + this.m_Members[i].OnBuffChange(buff); + } + } + } + + public void CheckToggleState() + { + for (int i = 0; i < this.m_Members.Count; i++) + { + this.m_Members[i].CheckToggleState(); + } + } + + public void RefreshVoice(ulong[] roleids, int[] states) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + for (int i = 0; i < roleids.Length; i++) + { + this.Play(roleids[i], states[i]); + } + } + } + + public void HideVoice() + { + for (int i = 0; i < this.m_Members.Count; i++) + { + this.m_Members[i].PlaySound(0); + } + } + + private void Play(ulong roleid, int state) + { + for (int i = 0; i < this.m_Members.Count; i++) + { + bool flag = this.m_Members[i].EntityID == roleid; + if (flag) + { + this.m_Members[i].PlaySound(state); + break; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorHandler.cs.meta new file mode 100644 index 00000000..255a5a5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76e1a7679dc55ae4c824e5f2c47ec920 +timeCreated: 1611403951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorState.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorState.cs new file mode 100644 index 00000000..41def556 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum XTeamMonitorState + { + TMS_Normal = 1, + TMS_Loading, + TMS_Left + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorState.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorState.cs.meta new file mode 100644 index 00000000..3ada348a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81a11c489e88b0b40b2948ce7a259b0a +timeCreated: 1611404037 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorStateMgr.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorStateMgr.cs new file mode 100644 index 00000000..0778bae2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorStateMgr.cs @@ -0,0 +1,74 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamMonitorStateMgr + { + private Dictionary m_EntityStates = new Dictionary(); + + private HashSet m_LoadingEntities = new HashSet(); + + private HashSet m_Entities = new HashSet(); + + public void SetState(ulong uid, XTeamMonitorState state) + { + bool flag = !this.m_Entities.Contains(uid); + if (!flag) + { + this.m_EntityStates[uid] = state; + bool flag2 = state == XTeamMonitorState.TMS_Loading; + if (flag2) + { + this.m_LoadingEntities.Add(uid); + } + else + { + this.m_LoadingEntities.Remove(uid); + } + } + } + + public void SetTotalCount(List list) + { + this.m_Entities.Clear(); + for (int i = 0; i < list.Count; i++) + { + bool flag = list[i].uid != XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + this.m_Entities.Add(list[i].uid); + } + } + } + + public void Reset() + { + this.m_EntityStates.Clear(); + this.m_LoadingEntities.Clear(); + this.m_Entities.Clear(); + } + + public XTeamMonitorState GetState(ulong uid) + { + XTeamMonitorState xteamMonitorState; + bool flag = this.m_EntityStates.TryGetValue(uid, out xteamMonitorState); + XTeamMonitorState result; + if (flag) + { + result = xteamMonitorState; + } + else + { + result = XTeamMonitorState.TMS_Loading; + } + return result; + } + + public bool HasLoadingEntity() + { + return this.m_LoadingEntities.Count > 0 || this.m_EntityStates.Count < this.m_Entities.Count; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorStateMgr.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorStateMgr.cs.meta new file mode 100644 index 00000000..8a6588a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamMonitorStateMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74c107ee0242a1a44b7b34484e1d1757 +timeCreated: 1611403944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamPartnerBonusHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamPartnerBonusHandler.cs new file mode 100644 index 00000000..06ae58c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamPartnerBonusHandler.cs @@ -0,0 +1,289 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamPartnerBonusHandler : DlgHandlerBase + { + private GameObject m_CurrentBuff; + + private GameObject m_DisableBuff; + + private IXUILabel[] m_Levels; + + private List m_QualityLevels; + + private IXUILabel m_DisableLevel; + + private GameObject m_Active; + + private GameObject m_Disactive; + + private GameObject m_PopActive; + + private GameObject m_PopDisactive; + + private IXUISprite m_BtnOpenPop; + + private GameObject m_PopPanel; + + private IXUISprite m_PopClose; + + private GameObject m_PopEmpty; + + private GameObject m_PopCurrentBuff; + + private GameObject m_PopNextBuff; + + private GameObject m_PopFinalBuff; + + private XTeamDocument _TeamDoc; + + private XDragonGuildDocument _Doc; + + private DragonGuildTable.RowData m_CurrentBuffData; + + private DragonGuildTable.RowData m_NextBuffData; + + private bool m_bFullLevel; + + private bool m_bActive; + + public bool bConsiderTeam = false; + + protected override void Init() + { + base.Init(); + this.m_Active = base.PanelObject.transform.Find("Active").gameObject; + this.m_Disactive = base.PanelObject.transform.Find("Disactive").gameObject; + this.m_CurrentBuff = this.m_Active.transform.Find("Buff").gameObject; + this.m_DisableBuff = this.m_Disactive.transform.Find("Buff").gameObject; + this.m_BtnOpenPop = (base.PanelObject.transform.Find("BtnOpenPop").GetComponent("XUISprite") as IXUISprite); + this.m_PopPanel = base.PanelObject.transform.Find("FriendBonusPop").gameObject; + this.m_PopClose = (this.m_PopPanel.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_PopActive = this.m_PopPanel.transform.Find("Active").gameObject; + this.m_PopDisactive = this.m_PopPanel.transform.Find("Disactive").gameObject; + this.m_PopEmpty = this.m_PopDisactive.transform.Find("Empty").gameObject; + IXUILabel ixuilabel = this.m_PopEmpty.transform.Find("Slogan").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TeamBonusNoPartner"))); + IXUIButton ixuibutton = this.m_PopEmpty.transform.Find("BtnPartner").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGotoPartnerClicked)); + this.m_PopCurrentBuff = this.m_PopActive.transform.Find("CurrentBuff").gameObject; + this.m_PopNextBuff = this.m_PopActive.transform.Find("NextBuff").gameObject; + this.m_PopFinalBuff = this.m_PopActive.transform.Find("FinalBuff").gameObject; + this.m_QualityLevels = XSingleton.singleton.GetIntList("TeamFriendDegreeBuffQuality"); + this.m_Levels = new IXUILabel[this.m_QualityLevels.Count]; + for (int i = 0; i < this.m_Levels.Length; i++) + { + this.m_Levels[i] = (this.m_Active.transform.Find(XSingleton.singleton.StringCombine("Level", i.ToString())).GetComponent("XUILabel") as IXUILabel); + } + this.m_DisableLevel = (this.m_Disactive.transform.Find("Level0").GetComponent("XUILabel") as IXUILabel); + this._TeamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this._Doc = XDragonGuildDocument.Doc; + this.m_PopPanel.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_PopClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnPopCloseClicked)); + this.m_BtnOpenPop.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnPopOpenClicked)); + } + + private void _OnPopCloseClicked(IXUISprite iSp) + { + this.m_PopPanel.SetActive(false); + } + + private void _OnPopOpenClicked(IXUISprite iSp) + { + bool flag = this.IsHadDragonGuildMemberInTeam(); + if (!flag) + { + bool flag2 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GuildCollectSummon); + if (flag2) + { + OpenSystemTable.RowData sysData = XSingleton.singleton.GetSysData(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildCollectSummon)); + bool flag3 = sysData != null; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL"), sysData.PlayerLevel), "fece00"); + } + } + else + { + this.m_PopPanel.SetActive(true); + this.RefreshPop(); + } + } + } + + public void RefreshCurrent() + { + this.m_CurrentBuffData = null; + bool bActive = this.IsHadDragonGuildMemberInTeam(); + uint level = this._Doc.BaseData.level; + DragonGuildTable.RowData bylevel = XDragonGuildDocument.DragonGuildBuffTable.GetBylevel(level); + bool flag = bylevel != null; + if (flag) + { + this.m_CurrentBuffData = bylevel; + this.m_bFullLevel = ((ulong)level == (ulong)((long)XDragonGuildDocument.DragonGuildBuffTable.Table.Length)); + } + this.m_bActive = bActive; + this.m_NextBuffData = bylevel; + bool flag2 = this.m_CurrentBuffData == null; + if (flag2) + { + this.m_CurrentBuffData = this.m_NextBuffData; + } + this.m_Active.SetActive(this.m_bActive); + this.m_Disactive.SetActive(!this.m_bActive); + bool flag3 = this.m_CurrentBuffData != null; + if (flag3) + { + bool bActive2 = this.m_bActive; + if (bActive2) + { + int num = 0; + for (int i = this.m_QualityLevels.Count - 1; i >= 0; i--) + { + bool flag4 = (ulong)this.m_CurrentBuffData.level >= (ulong)((long)this.m_QualityLevels[i]); + if (flag4) + { + num = i; + break; + } + } + for (int j = 0; j < this.m_Levels.Length; j++) + { + this.m_Levels[j].SetVisible(j == num); + } + this.m_Levels[num].SetText(this.m_CurrentBuffData.level.ToString()); + this._RefreshBuff(this.m_CurrentBuff, this.m_CurrentBuffData); + } + else + { + this.m_DisableLevel.SetText(this.m_CurrentBuffData.level.ToString()); + this._RefreshBuff(this.m_DisableBuff, this.m_CurrentBuffData); + } + } + else + { + bool flag5 = this.m_NextBuffData != null; + if (flag5) + { + this.m_DisableLevel.SetText(this.m_NextBuffData.level.ToString()); + this._RefreshBuff(this.m_DisableBuff, this.m_NextBuffData); + } + } + } + + private bool IsHadDragonGuildMemberInTeam() + { + bool result = false; + bool flag = this.bConsiderTeam; + if (flag) + { + bool flag2 = this._TeamDoc.bInTeam && this._Doc.IsInDragonGuild(); + if (flag2) + { + for (int i = 0; i < this._TeamDoc.MyTeam.members.Count; i++) + { + XTeamMember xteamMember = this._TeamDoc.MyTeam.members[i]; + bool flag3 = xteamMember == this._TeamDoc.MyTeam.myData; + if (!flag3) + { + bool flag4 = this._Doc.IsMyDragonGuildMember(xteamMember.dragonGuildID); + if (flag4) + { + result = true; + break; + } + } + } + } + } + else + { + result = true; + } + return result; + } + + public void RefreshPop() + { + bool flag = !this.m_PopPanel.activeSelf; + if (!flag) + { + this.m_PopActive.SetActive(this.m_bActive); + this.m_PopDisactive.SetActive(!this.m_bActive); + bool flag2 = !this.m_bActive; + if (!flag2) + { + bool bFullLevel = this.m_bFullLevel; + if (bFullLevel) + { + this.m_PopFinalBuff.SetActive(true); + this.m_PopCurrentBuff.SetActive(false); + this.m_PopNextBuff.SetActive(false); + this._RefreshDetailInfo(this.m_PopFinalBuff, this.m_CurrentBuffData); + } + else + { + this.m_PopFinalBuff.SetActive(false); + this.m_PopCurrentBuff.SetActive(true); + this.m_PopNextBuff.SetActive(true); + this._RefreshDetailInfo(this.m_PopCurrentBuff, this.m_CurrentBuffData); + this._RefreshDetailInfo(this.m_PopNextBuff, this.m_NextBuffData); + } + } + } + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshCurrent(); + this.RefreshPop(); + } + + private void _RefreshDetailInfo(GameObject go, DragonGuildTable.RowData rowData) + { + IXUILabel ixuilabel = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = go.transform.Find("Buff").gameObject; + ixuilabel.SetText(rowData.level.ToString()); + this._RefreshBuff(gameObject, rowData); + } + + private void _RefreshBuff(GameObject go, DragonGuildTable.RowData rowData) + { + IXUILabel ixuilabel = go.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(rowData.buf[0], rowData.buf[1]); + bool flag = buffData == null; + if (flag) + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + } + else + { + ixuilabel.SetText(buffData.BuffName); + ixuilabel2.SetText(string.Empty); + } + } + + private bool _OnGotoPartnerClicked(IXUIButton btn) + { + DlgBase.singleton.ShowTab(XSysDefine.XSys_GuildCollectSummon); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamPartnerBonusHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamPartnerBonusHandler.cs.meta new file mode 100644 index 00000000..25719b7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamPartnerBonusHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbe17952164919740885952a8c1f2c33 +timeCreated: 1611404676 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamPasswordHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamPasswordHandler.cs new file mode 100644 index 00000000..ffe9689d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamPasswordHandler.cs @@ -0,0 +1,133 @@ +using System; +using KKSG; +using UILib; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamPasswordHandler : DlgHandlerBase + { + public IXUICheckBox m_BtnNeedPwd; + + public IXUIInput m_IptPwd; + + public IXUITweenTool m_PwdTween; + + private XTeamDocument doc; + + private XOptionsDocument optionsDoc; + + protected override void Init() + { + base.Init(); + this.m_BtnNeedPwd = (base.PanelObject.transform.Find("BtnNeedPwd").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_IptPwd = (base.PanelObject.transform.Find("Input").GetComponent("XUIInput") as IXUIInput); + this.m_PwdTween = (base.PanelObject.transform.Find("BtnNeedPwd").GetComponent("XUIPlayTween") as IXUITweenTool); + this.doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.optionsDoc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnNeedPwd.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnUsePasswordChanged)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public void RefreshState() + { + bool bIsLeader = this.doc.bIsLeader; + if (bIsLeader) + { + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshData(); + } + else + { + base.SetVisible(true); + } + } + else + { + base.SetVisible(false); + } + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = !this.doc.bInTeam; + if (flag) + { + this.m_BtnNeedPwd.bChecked = false; + this.m_PwdTween.ResetTweenByCurGroup(false); + this.m_IptPwd.SetText(this.optionsDoc.GetStrValue(XOptionsDefine.OD_TEAM_PASSWORD)); + } + else + { + bool flag2 = string.IsNullOrEmpty(this.doc.password); + if (flag2) + { + base.SetVisible(false); + } + bool hasPwd = this.doc.MyTeam.teamBrief.hasPwd; + this.m_BtnNeedPwd.bChecked = hasPwd; + this.m_PwdTween.ResetTweenByCurGroup(hasPwd); + this.m_IptPwd.SetText(this.doc.MyTeam.teamBrief.password); + } + } + + public string GetPassword() + { + return this.m_BtnNeedPwd.bChecked ? this.m_IptPwd.GetText() : string.Empty; + } + + public string GetInputPassword() + { + return this.m_IptPwd.GetText(); + } + + private bool _OnUsePasswordChanged(IXUICheckBox ckb) + { + this.m_PwdTween.PlayTween(!ckb.bChecked, -1f); + bool bIsLeader = this.doc.bIsLeader; + if (bIsLeader) + { + bool bChecked = ckb.bChecked; + if (bChecked) + { + bool flag = !this.doc.MyTeam.teamBrief.hasPwd; + if (flag) + { + this.doc.ReqTeamOp(TeamOperate.TEAM_CHANGE_PASSWORD, 0UL, this.doc.password, TeamMemberType.TMT_NORMAL, null); + } + } + else + { + bool hasPwd = this.doc.MyTeam.teamBrief.hasPwd; + if (hasPwd) + { + this.doc.ReqTeamOp(TeamOperate.TEAM_CHANGE_PASSWORD, 0UL, string.Empty, TeamMemberType.TMT_NORMAL, null); + } + } + } + return true; + } + + private void _OnInputSubmit(IXUIInput input) + { + bool bIsLeader = this.doc.bIsLeader; + if (bIsLeader) + { + XSingleton.singleton.AddGreenLog("Change password to ", input.GetText(), null, null, null, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamPasswordHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamPasswordHandler.cs.meta new file mode 100644 index 00000000..e2c23087 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamPasswordHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e44955c0c9b92d43af2a3f1cc306296 +timeCreated: 1611403509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamPosition.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamPosition.cs new file mode 100644 index 00000000..c0f63601 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamPosition.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum XTeamPosition + { + TP_LEADER, + TP_MEMBER + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamPosition.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamPosition.cs.meta new file mode 100644 index 00000000..31019780 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamPosition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d567c5befa4850d46ad51f93123da2f5 +timeCreated: 1611404627 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamRelation.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamRelation.cs new file mode 100644 index 00000000..807c5838 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamRelation.cs @@ -0,0 +1,170 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XTeamRelation : IComparable + { + public bool bIsFriend + { + get + { + return this.HasRelation(XTeamRelation.Relation.TR_FRIEND); + } + } + + public bool bIsGuild + { + get + { + return this.HasRelation(XTeamRelation.Relation.TR_GUILD); + } + } + + public XTeamRelation.Relation ActualRelation + { + get + { + return this.m_Relation; + } + } + + public XTeamRelation.Relation FinalRelation + { + get + { + return this.m_FinalRelation; + } + } + + public XTeamRelation.Relation FinalRelation2 + { + get + { + return this.m_FinalRelation2; + } + } + + private XTeamRelation.Relation m_Relation = XTeamRelation.Relation.TR_NONE; + + private XTeamRelation.Relation m_FinalRelation = XTeamRelation.Relation.TR_NONE; + + private XTeamRelation.Relation m_FinalRelation2 = XTeamRelation.Relation.TR_NONE; + + public enum Relation + { + TR_NONE, + TR_FRIEND, + TR_GUILD, + TR_PARTNER = 4 + } + + public void Reset() + { + this.m_Relation = XTeamRelation.Relation.TR_NONE; + this.m_FinalRelation = XTeamRelation.Relation.TR_NONE; + this.m_FinalRelation2 = XTeamRelation.Relation.TR_NONE; + } + + public void DirectSet(XTeamRelation.Relation relation) + { + this.m_Relation = relation; + this.RefreshFinalRelation(); + } + + public void Append(XTeamRelation.Relation relation, bool bRefreshFinalImm = true) + { + this.m_Relation |= relation; + if (bRefreshFinalImm) + { + this.RefreshFinalRelation(); + } + } + + public void UpdateRelation(ulong roleUID, ulong guildUID, ulong roledragonguildid) + { + this.Reset(); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + XPartnerDocument specificDocument2 = XDocuments.GetSpecificDocument(XPartnerDocument.uuID); + bool flag = specificDocument.bInGuild && guildUID == specificDocument.UID; + if (flag) + { + this.Append(XTeamRelation.Relation.TR_GUILD, false); + } + bool flag2 = DlgBase.singleton.IsMyFriend(roleUID); + if (flag2) + { + this.Append(XTeamRelation.Relation.TR_FRIEND, false); + } + bool flag3 = XDragonGuildDocument.Doc.IsMyDragonGuildMember(roledragonguildid); + if (flag3) + { + this.Append(XTeamRelation.Relation.TR_PARTNER, false); + } + this.RefreshFinalRelation(); + } + + public void RefreshFinalRelation() + { + bool flag = XTeamRelation.HasRelation(this.m_Relation, XTeamRelation.Relation.TR_PARTNER); + if (flag) + { + this.m_FinalRelation = XTeamRelation.Relation.TR_PARTNER; + } + else + { + bool flag2 = XTeamRelation.HasRelation(this.m_Relation, XTeamRelation.Relation.TR_GUILD); + if (flag2) + { + this.m_FinalRelation = XTeamRelation.Relation.TR_GUILD; + } + else + { + bool flag3 = XTeamRelation.HasRelation(this.m_Relation, XTeamRelation.Relation.TR_FRIEND); + if (flag3) + { + this.m_FinalRelation = XTeamRelation.Relation.TR_FRIEND; + } + else + { + this.m_FinalRelation = XTeamRelation.Relation.TR_NONE; + } + } + } + this.m_FinalRelation2 = XTeamRelation.Relation.TR_NONE; + bool flag4 = XTeamRelation.HasRelation(this.m_Relation, XTeamRelation.Relation.TR_GUILD); + if (flag4) + { + this.m_FinalRelation2 = XTeamRelation.Relation.TR_GUILD; + } + bool flag5 = XTeamRelation.HasRelation(this.m_Relation, XTeamRelation.Relation.TR_PARTNER); + if (flag5) + { + this.m_FinalRelation2 |= XTeamRelation.Relation.TR_PARTNER; + } + else + { + bool flag6 = XTeamRelation.HasRelation(this.m_Relation, XTeamRelation.Relation.TR_FRIEND); + if (flag6) + { + this.m_FinalRelation2 |= XTeamRelation.Relation.TR_FRIEND; + } + } + } + + public static bool HasRelation(XTeamRelation.Relation relation0, XTeamRelation.Relation relation1) + { + return (relation0 & relation1) > XTeamRelation.Relation.TR_NONE; + } + + public bool HasRelation(XTeamRelation.Relation relation) + { + return XTeamRelation.HasRelation(this.m_Relation, relation); + } + + public int CompareTo(XTeamRelation other) + { + return -this.m_FinalRelation.CompareTo(other.m_FinalRelation); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamRelation.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamRelation.cs.meta new file mode 100644 index 00000000..44c166ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamRelation.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 845dd9ffb1d1a3542832740d1ecf54b6 +timeCreated: 1611404048 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamRift.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamRift.cs new file mode 100644 index 00000000..58c148f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamRift.cs @@ -0,0 +1,75 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamRift : XDataBase + { + public uint id; + + public int floor; + + public uint sceneID; + + public List buffs = new List(); + + public void SetData(TeamSynRift riftInfo, ExpeditionTable.RowData rowData) + { + bool flag = riftInfo == null; + if (!flag) + { + bool flag2 = riftInfo.floorinfo == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("floorinfo is null, while riftid == ", riftInfo.riftid.ToString(), null, null, null, null); + } + else + { + this.id = riftInfo.riftid; + this.floor = riftInfo.floorinfo.floor; + this.sceneID = riftInfo.floorinfo.sceneid; + this.buffs.Clear(); + for (int i = 0; i < riftInfo.floorinfo.buffs.Count; i++) + { + MapIntItem mapIntItem = riftInfo.floorinfo.buffs[i]; + BuffDesc item = default(BuffDesc); + item.BuffID = (int)mapIntItem.key; + item.BuffLevel = (int)mapIntItem.value; + this.buffs.Add(item); + } + } + } + } + + public override void Recycle() + { + base.Recycle(); + this.id = 0u; + this.floor = 0; + this.sceneID = 0u; + this.buffs.Clear(); + } + + public void SetUI(GameObject go) + { + IXUILabel ixuilabel = go.transform.Find("Floor").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("TEAMTOWER_LEVEL", new object[] + { + this.floor.ToString() + })); + } + + public string GetSceneName(string originName) + { + return XStringDefineProxy.GetString("SCENE_NAME_WITH_RIFT_FLOOR", new object[] + { + originName, + this.floor.ToString() + }); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamRift.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamRift.cs.meta new file mode 100644 index 00000000..a85ed376 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamRift.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 755c260231be708458fb961b8ef3e4db +timeCreated: 1611403946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamSettingHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamSettingHandler.cs new file mode 100644 index 00000000..4f5b594b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamSettingHandler.cs @@ -0,0 +1,331 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamSettingHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Team/TeamSetting"; + } + } + + private IXUISprite m_Close; + + private IXUIButton m_BtnOK; + + private List m_RewardList = new List(); + + private IXUICheckBox m_OpenReward; + + private IXUICheckBox m_OpenPPT; + + private IXUISprite m_AddPPT; + + private IXUISprite m_SubPPT; + + private IXUILabel m_PPT; + + private GameObject m_DisableReward; + + private XTeamDocument doc; + + private int m_RewardCount; + + private uint m_CurPPT; + + private uint m_MinPPT; + + private uint m_StepPPT; + + protected override void Init() + { + base.Init(); + this.m_Close = (base.PanelObject.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_BtnOK = (base.PanelObject.transform.Find("BtnOK").GetComponent("XUIButton") as IXUIButton); + int num = 1; + for (;;) + { + Transform transform = base.PanelObject.transform.Find(XSingleton.singleton.StringCombine("TeamReward/BtnLevel", num.ToString())); + bool flag = transform == null; + if (flag) + { + break; + } + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)(num - 1)); + this.m_RewardList.Add(ixuicheckBox); + num++; + } + this.m_OpenReward = (base.PanelObject.transform.Find("TeamReward/BtnOpen").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_OpenPPT = (base.PanelObject.transform.Find("PPTSetting/BtnOpen").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DisableReward = base.PanelObject.transform.Find("TeamRewardDisable").gameObject; + this.m_AddPPT = (base.PanelObject.transform.Find("PPTSetting/Count/Add").GetComponent("XUISprite") as IXUISprite); + this.m_SubPPT = (base.PanelObject.transform.Find("PPTSetting/Count/Sub").GetComponent("XUISprite") as IXUISprite); + this.m_PPT = (base.PanelObject.transform.Find("PPTSetting/Count/Label").GetComponent("XUILabel") as IXUILabel); + this.m_StepPPT = (uint)XSingleton.singleton.GetInt("TeamSettingPPTStep"); + this.doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + this.m_BtnOK.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKClicked)); + this.m_OpenPPT.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnOpenPPTChanged)); + this.m_OpenReward.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnOpenRewardChanged)); + for (int i = 0; i < this.m_RewardList.Count; i++) + { + this.m_RewardList[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnRewardChanged)); + } + this.m_AddPPT.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnAddPPTClicked)); + this.m_SubPPT.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSubPPTClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = !this.doc.bInTeam || this.doc.currentExpInfo == null; + if (flag) + { + base.SetVisible(false); + } + else + { + for (int i = 0; i < this.m_RewardList.Count; i++) + { + this.m_RewardList[i].ForceSetFlag(false); + } + bool flag2 = this.doc.currentExpInfo.CostType.Count == 0; + if (flag2) + { + this.m_OpenReward.ForceSetFlag(false); + this.m_DisableReward.SetActive(true); + this.m_RewardCount = 0; + } + else + { + this.m_DisableReward.SetActive(false); + this.m_OpenReward.ForceSetFlag(this.doc.MyTeam.teamBrief.goldGroup.bActive); + this.m_RewardCount = Math.Min(this.doc.currentExpInfo.CostType.Count, this.m_RewardList.Count); + int i; + for (i = 0; i < this.m_RewardCount; i++) + { + this.m_RewardList[i].gameObject.SetActive(true); + IXUILabel ixuilabel = this.m_RewardList[i].gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = this.m_RewardList[i].gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.doc.currentExpInfo.CostType[i, 1]); + bool flag3 = this.doc.currentExpInfo.CostType[i, 0] == 2u; + string text; + if (flag3) + { + text = ((itemConf == null) ? string.Empty : XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)); + } + else + { + text = this.doc.currentExpInfo.CostType[i, 2].ToString(); + } + ixuilabel.SetText(text); + ixuisprite.SetSprite((itemConf == null) ? string.Empty : XSingleton.singleton.ChooseProfString(itemConf.ItemIcon1, 0u)); + ixuisprite.MakePixelPerfect(); + bool flag4 = this.doc.MyTeam.teamBrief.goldGroup.bActive && i == this.doc.MyTeam.teamBrief.goldGroup.index; + if (flag4) + { + this.m_RewardList[i].bChecked = true; + } + } + while (i < this.m_RewardList.Count) + { + this.m_RewardList[i].gameObject.SetActive(false); + i++; + } + } + this.m_MinPPT = this.doc.currentExpInfo.DisplayPPT; + this.m_CurPPT = this.doc.MyTeam.teamBrief.teamPPT; + this.m_OpenPPT.bChecked = (this.doc.MyTeam.teamBrief.teamPPT > 0u); + } + } + + private void _OnCloseClicked(IXUISprite iSp) + { + base.SetVisible(false); + } + + private bool _OnOKClicked(IXUIButton btn) + { + bool flag = !this.doc.bInTeam; + bool result; + if (flag) + { + result = true; + } + else + { + int num = -1; + bool bChecked = this.m_OpenReward.bChecked; + if (bChecked) + { + for (int i = 0; i < this.m_RewardCount; i++) + { + bool bChecked2 = this.m_RewardList[i].bChecked; + if (bChecked2) + { + num = i; + break; + } + } + } + bool flag2 = num >= 0 && num < this.doc.currentExpInfo.CostType.Count; + if (flag2) + { + bool flag3 = this.doc.MyTeam.teamBrief.goldGroup.index != num; + if (flag3) + { + string key = XSingleton.singleton.StringCombine("TeamGoldGroup", this.doc.currentExpInfo.CostType[num, 0].ToString(), "SettingConfirm"); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.doc.currentExpInfo.CostType[num, 1]); + bool flag4 = itemConf == null; + if (flag4) + { + return true; + } + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString(key, new object[] + { + XGoldGroupData.GetName(ref this.doc.currentExpInfo.CostType, num), + XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u), + this.doc.currentExpInfo.CostType[num, 2].ToString() + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._DoOK)); + return true; + } + } + this._DoOK(btn); + result = true; + } + return result; + } + + private bool _DoOK(IXUIButton btn) + { + TeamExtraInfo teamExtraInfo = new TeamExtraInfo(); + bool bChecked = this.m_OpenReward.bChecked; + if (bChecked) + { + for (int i = 0; i < this.m_RewardCount; i++) + { + bool bChecked2 = this.m_RewardList[i].bChecked; + if (bChecked2) + { + teamExtraInfo.costindex = (uint)i; + break; + } + } + } + else + { + teamExtraInfo.costindex = uint.MaxValue; + } + bool bChecked3 = this.m_OpenPPT.bChecked; + if (bChecked3) + { + teamExtraInfo.pptlimit = this.m_CurPPT; + } + else + { + teamExtraInfo.pptlimit = 0u; + } + this.doc.ReqTeamOp(TeamOperate.TEAM_PPTLIMIT, 0UL, teamExtraInfo, TeamMemberType.TMT_NORMAL, null); + bool flag = this.doc.bInTeam && this.doc.MyTeam.teamBrief.goldGroup.index != (int)teamExtraInfo.costindex; + if (flag) + { + this.doc.ReqTeamOp(TeamOperate.TEAM_COSTTYPE, 0UL, teamExtraInfo, TeamMemberType.TMT_NORMAL, null); + } + base.SetVisible(false); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool _OnOpenRewardChanged(IXUICheckBox ckb) + { + bool bChecked = ckb.bChecked; + if (bChecked) + { + bool flag = this.m_RewardCount > 0; + if (flag) + { + this.m_RewardList[0].bChecked = true; + } + } + else + { + for (int i = 0; i < this.m_RewardCount; i++) + { + this.m_RewardList[i].bChecked = false; + } + } + return true; + } + + private bool _OnOpenPPTChanged(IXUICheckBox ckb) + { + bool flag = ckb.bChecked && this.m_CurPPT < this.m_MinPPT; + if (flag) + { + this.m_CurPPT = this.m_MinPPT; + } + this._RefreshPPT(); + return true; + } + + private bool _OnRewardChanged(IXUICheckBox ckb) + { + this.m_OpenReward.bChecked = ckb.bChecked; + return true; + } + + private void _OnAddPPTClicked(IXUISprite iSp) + { + bool flag = !this.m_OpenPPT.bChecked; + if (!flag) + { + bool flag2 = this.m_CurPPT >= uint.MaxValue - this.m_StepPPT; + if (!flag2) + { + this.m_CurPPT += this.m_StepPPT; + this._RefreshPPT(); + } + } + } + + private void _OnSubPPTClicked(IXUISprite iSp) + { + bool flag = !this.m_OpenPPT.bChecked; + if (!flag) + { + bool flag2 = this.m_CurPPT <= this.m_MinPPT; + if (!flag2) + { + this.m_CurPPT -= this.m_StepPPT; + this._RefreshPPT(); + } + } + } + + private void _RefreshPPT() + { + this.m_PPT.SetText(this.m_OpenPPT.bChecked ? this.m_CurPPT.ToString() : "0"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamSettingHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamSettingHandler.cs.meta new file mode 100644 index 00000000..8da0b0db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamSettingHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6893011d7c474cc48b8d3c164b7c7269 +timeCreated: 1611403882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamSmallChatHandler.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamSmallChatHandler.cs new file mode 100644 index 00000000..dc3a67aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamSmallChatHandler.cs @@ -0,0 +1,202 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTeamSmallChatHandler : DlgHandlerBase + { + private ChatChannelType CurrentChannel + { + get + { + return this.teamDoc.bInTeam ? ChatChannelType.Team : ChatChannelType.World; + } + } + + private static int MSG_DISPLAY_COUNT = 3; + + private XUIPool m_TextPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_AudioPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_BtnVoice; + + private GameObject m_SpeakInfo; + + private List m_ChatList = new List(); + + private XChatDocument chatDoc; + + private XTeamDocument teamDoc; + + private Vector2 m_DragDistance = Vector2.zero; + + private bool m_CancelRecord = false; + + protected override void Init() + { + base.Init(); + this.chatDoc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + this.teamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.m_BtnVoice = (base.PanelObject.transform.Find("BtnVoice").GetComponent("XUIButton") as IXUIButton); + this.m_SpeakInfo = base.PanelObject.transform.Find("SpeakPanel/SpeakInfo").gameObject; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnVoice.RegisterPressEventHandler(new ButtonPressEventHandler(this._OnVoiceBtn)); + this.m_BtnVoice.RegisterDragEventHandler(new ButtonDragEventHandler(this._OnVoiceButtonDrag)); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_SpeakInfo.SetActive(false); + } + + private void _OnVoiceButtonDrag(IXUIButton sp, Vector2 delta) + { + this.m_DragDistance += delta; + bool flag = this.m_DragDistance.magnitude >= 100f; + if (flag) + { + this.m_CancelRecord = true; + } + else + { + this.m_CancelRecord = false; + } + } + + private void _OnVoiceBtn(IXUIButton btn, bool state) + { + if (state) + { + this.m_DragDistance = Vector2.zero; + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, null); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, null); + } + } + else + { + DlgBase.singleton.SetActiveChannel(ChatChannelType.Team); + bool useApollo2 = XChatDocument.UseApollo; + if (useApollo2) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + } + } + + private void _OnChatBgClicked(IXUISprite iSp) + { + DlgBase.singleton.ShowChannel(this.CurrentChannel); + } + + public void RefreshPage() + { + List chatInfoList = this.chatDoc.GetChatInfoList(this.CurrentChannel); + int num = (chatInfoList != null) ? Math.Min(chatInfoList.Count, XTeamSmallChatHandler.MSG_DISPLAY_COUNT) : 0; + int num2 = Math.Max(0, num - XTeamSmallChatHandler.MSG_DISPLAY_COUNT); + this.m_ChatList.Clear(); + this.m_TextPool.FakeReturnAll(); + this.m_AudioPool.FakeReturnAll(); + for (int i = num2; i < num; i++) + { + this._SetChatInfo(chatInfoList[i]); + } + this.m_TextPool.ActualReturnAll(false); + this.m_AudioPool.ActualReturnAll(false); + this._SetAllChatInfoPosition(); + } + + public void OnGetChatInfo(ChatInfo newInfo) + { + bool flag = newInfo.mChannelId != this.CurrentChannel; + if (!flag) + { + this._SetChatInfo(newInfo); + this._SetAllChatInfoPosition(); + } + } + + private void _SetChatInfo(ChatInfo info) + { + XSmallChatInfo xsmallChatInfo = this._CreateSmallChatInfo(); + xsmallChatInfo.info = info; + xsmallChatInfo.uiobject = (info.isAudioChat ? this.m_AudioPool.FetchGameObject(false) : this.m_TextPool.FetchGameObject(false)); + this._SetChatUI(xsmallChatInfo.info, xsmallChatInfo.uiobject); + this.m_ChatList.Add(xsmallChatInfo); + } + + private void _SetAllChatInfoPosition() + { + int num = 0; + for (int i = 0; i < this.m_ChatList.Count; i++) + { + GameObject uiobject = this.m_ChatList[i].uiobject; + IXUILabel ixuilabel = uiobject.transform.Find("content").GetComponent("XUILabel") as IXUILabel; + uiobject.transform.localPosition = new Vector3(0f, (float)(-(float)num)); + num += (int)ixuilabel.GetPrintSize().y; + } + } + + private XSmallChatInfo _CreateSmallChatInfo() + { + bool flag = this.m_ChatList.Count == XTeamSmallChatHandler.MSG_DISPLAY_COUNT; + XSmallChatInfo xsmallChatInfo; + if (flag) + { + xsmallChatInfo = this.m_ChatList[0]; + for (int i = 0; i < this.m_ChatList.Count - 1; i++) + { + this.m_ChatList[i] = this.m_ChatList[i + 1]; + } + this.m_ChatList.RemoveAt(this.m_ChatList.Count - 1); + } + else + { + xsmallChatInfo = new XSmallChatInfo(); + } + bool flag2 = xsmallChatInfo.info != null && xsmallChatInfo.uiobject != null; + if (flag2) + { + bool isAudioChat = xsmallChatInfo.info.isAudioChat; + if (isAudioChat) + { + this.m_AudioPool.ReturnInstance(xsmallChatInfo.uiobject, false); + } + else + { + this.m_TextPool.ReturnInstance(xsmallChatInfo.uiobject, false); + } + } + return xsmallChatInfo; + } + + private void _SetChatUI(ChatInfo info, GameObject go) + { + XChatSmallView.InitMiniChatUI(info, go); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamSmallChatHandler.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamSmallChatHandler.cs.meta new file mode 100644 index 00000000..517de95d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamSmallChatHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8989b1f3ccb28d64c8142e0c3f0e0252 +timeCreated: 1611404088 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamState.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamState.cs new file mode 100644 index 00000000..c79b8bac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamState.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum XTeamState + { + TS_NOT_FULL, + TS_FULL, + TS_FIGHTING, + TS_VOTING + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamState.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamState.cs.meta new file mode 100644 index 00000000..fc2011df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd7621bc5304b894dbbfd03be047d6cc +timeCreated: 1611404452 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs new file mode 100644 index 00000000..b29a4814 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs @@ -0,0 +1,54 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XTeamTowerRankInfo : XBaseRankInfo + { + public ulong id1; + + public string name1; + + public string formatname1; + + public uint diff; + + public uint levelCount; + + public uint memberCount; + + private string m_Time; + + public override void ProcessData(RankData data) + { + this.memberCount = (uint)data.RoleIds.Count; + bool flag = this.memberCount > 0u; + if (flag) + { + this.name = data.RoleNames[0]; + this.id = data.RoleIds[0]; + this.formatname = XTitleDocument.GetTitleWithFormat((data.titleIDs.Count > 0) ? data.titleIDs[0] : 0u, XBaseRankInfo.GetUnderLineName(this.name)); + } + bool flag2 = this.memberCount > 1u; + if (flag2) + { + this.name1 = data.RoleNames[1]; + this.id1 = data.RoleIds[1]; + this.formatname1 = XTitleDocument.GetTitleWithFormat((data.titleIDs.Count > 1) ? data.titleIDs[1] : 0u, XBaseRankInfo.GetUnderLineName(this.name1)); + } + this.rank = data.Rank; + this.value = (ulong)data.towerThroughTime; + this.diff = data.towerHardLevel; + this.levelCount = data.towerFloor; + this.m_Time = XSingleton.singleton.TimeFormatString((int)this.value, 2, 3, 4, false, true); + this.startType = data.starttype; + } + + public override string GetValue() + { + return this.m_Time; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs.meta new file mode 100644 index 00000000..16c1f619 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d402b9229098a24ba3b39e6a533d65d +timeCreated: 1611403694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankList.cs b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankList.cs new file mode 100644 index 00000000..ff4a8150 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XTeamTowerRankList : XBaseRankList + { + public XTeamTowerRankList() + { + this.type = XRankType.TeamTowerRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XTeamTowerRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankList.cs.meta b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankList.cs.meta new file mode 100644 index 00000000..a78ae912 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Team/XTeamTowerRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 630f27ae0f66e8740bf746945fa10765 +timeCreated: 1611403843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TeamBriefSortType.cs b/Client/Assets/Scripts/XMainClient/TeamBriefSortType.cs new file mode 100644 index 00000000..54e1bda0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TeamBriefSortType.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum TeamBriefSortType + { + TBST_TEAM_ID, + TBST_TEAM_NAME, + TBST_DUNGEON_LEVEL, + TBST_MEMBER_COUNT, + TBST_CATEGORY, + TBST_DUNGEON_ID, + TBST_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/TeamBriefSortType.cs.meta b/Client/Assets/Scripts/XMainClient/TeamBriefSortType.cs.meta new file mode 100644 index 00000000..85473198 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TeamBriefSortType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 372b0cde328351344992b36dcd60b1a4 +timeCreated: 1611403564 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TeamLevelType.cs b/Client/Assets/Scripts/XMainClient/TeamLevelType.cs new file mode 100644 index 00000000..046aa57b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TeamLevelType.cs @@ -0,0 +1,36 @@ +using System; + +namespace XMainClient +{ + internal enum TeamLevelType + { + TeamLevelNone, + TeamLevelExpdition, + TeamLevelGuildHunt, + TeamLevelNest, + TeamLevelAbyss, + TeamLevelDragonNest = 6, + TeamLevelTeamTower, + TeamLevelCaptainPVP, + TeamLevelGoddessTrial, + TeamLevelEndlessAbyss, + TeamLevelSkyArena, + TeamLevelGuildMine, + TeamLevelGuildCamp, + TeamLevelWeekNest, + TeamLevelPartner, + TeamLevelHeroBattle, + TeamLevelTeamLeague, + TeamLevelFestival, + TeamLevelTask, + TeamLevelSkyCraft, + TeamLevelMultiPK, + TeamLevelWeekendParty, + TeamLevelMoba, + TeamLevelCustomPKTwo, + TeamLevelWedding = 26, + TeamLevelWeddingLicense, + TeamLevelCompete, + TeamLevelRift + } +} diff --git a/Client/Assets/Scripts/XMainClient/TeamLevelType.cs.meta b/Client/Assets/Scripts/XMainClient/TeamLevelType.cs.meta new file mode 100644 index 00000000..c031f80b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TeamLevelType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67d0566fe1e6b434b96c2f3aba1705d7 +timeCreated: 1611403880 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TeamLevelTypemgr.cs b/Client/Assets/Scripts/XMainClient/TeamLevelTypemgr.cs new file mode 100644 index 00000000..272768d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TeamLevelTypemgr.cs @@ -0,0 +1,13 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TeamLevelTypemgr + { + public static int GetTypeInt(TeamLevelType _type) + { + return XFastEnumIntEqualityComparer.ToInt(_type); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TeamLevelTypemgr.cs.meta b/Client/Assets/Scripts/XMainClient/TeamLevelTypemgr.cs.meta new file mode 100644 index 00000000..261f7245 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TeamLevelTypemgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6352a0627f35d9941be916c6bb6c00f3 +timeCreated: 1611403844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TeamTowerData.cs b/Client/Assets/Scripts/XMainClient/TeamTowerData.cs new file mode 100644 index 00000000..10f38b4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TeamTowerData.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal sealed class TeamTowerData + { + public int difficulty; + + public int time; + + public int level; + + public int maxlevel; + + public bool open; + + public bool showteam; + + public int sweeplefttime; + + public int sweepfloor; + + public float sweepreqtime; + + public int leftcount; + + public int refreshcount; + + public List firstpassreward; + } +} diff --git a/Client/Assets/Scripts/XMainClient/TeamTowerData.cs.meta b/Client/Assets/Scripts/XMainClient/TeamTowerData.cs.meta new file mode 100644 index 00000000..b6d1872a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TeamTowerData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 875d93f78eeff8749b45cbca1b55569b +timeCreated: 1611404078 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TimeOverFinishEventHandler.cs b/Client/Assets/Scripts/XMainClient/TimeOverFinishEventHandler.cs new file mode 100644 index 00000000..84d36d06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TimeOverFinishEventHandler.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate void TimeOverFinishEventHandler(object o); +} diff --git a/Client/Assets/Scripts/XMainClient/TimeOverFinishEventHandler.cs.meta b/Client/Assets/Scripts/XMainClient/TimeOverFinishEventHandler.cs.meta new file mode 100644 index 00000000..7d5fa47a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TimeOverFinishEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c84485355778c1344a854b8d193ce6d2 +timeCreated: 1611404534 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TipNode.cs b/Client/Assets/Scripts/XMainClient/TipNode.cs new file mode 100644 index 00000000..e30c36d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TipNode.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class TipNode + { + public int type; + + public object data; + } +} diff --git a/Client/Assets/Scripts/XMainClient/TipNode.cs.meta b/Client/Assets/Scripts/XMainClient/TipNode.cs.meta new file mode 100644 index 00000000..4098863b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TipNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2430340b11ebd344484e6af2a795b708 +timeCreated: 1611403459 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TitleClickEventHandler.cs b/Client/Assets/Scripts/XMainClient/TitleClickEventHandler.cs new file mode 100644 index 00000000..708fd59b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TitleClickEventHandler.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient +{ + internal delegate bool TitleClickEventHandler(ulong ID); +} diff --git a/Client/Assets/Scripts/XMainClient/TitleClickEventHandler.cs.meta b/Client/Assets/Scripts/XMainClient/TitleClickEventHandler.cs.meta new file mode 100644 index 00000000..6931c223 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TitleClickEventHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 448f29ace77ba4144a5ae8c867f8cbd9 +timeCreated: 1611403645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TitleDisplay.cs b/Client/Assets/Scripts/XMainClient/TitleDisplay.cs new file mode 100644 index 00000000..ffd910c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TitleDisplay.cs @@ -0,0 +1,98 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient; +using XUtliPoolLib; + +public class TitleDisplay +{ + public Transform transform { get; private set; } + + public GameObject gameObject + { + get + { + return this.transform.gameObject; + } + } + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_FightValue; + + private IXUISpriteAnimation m_TitleName; + + private IXUISprite m_TitleSprite; + + private IXUITexture m_TitleTexture; + + private XFx m_titleEffect; + + private int m_selectTitle = -1; + + public void Init(Transform go) + { + this.transform = go; + this.m_FightValue = (this.transform.Find("Fight/FightValue").GetComponent("XUILabel") as IXUILabel); + this.m_TitleName = (this.transform.Find("TitleName").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation); + this.m_TitleSprite = (this.transform.Find("TitleName").GetComponent("XUISprite") as IXUISprite); + this.m_TitleTexture = (this.transform.Find("TitleIcon").GetComponent("XUITexture") as IXUITexture); + Transform transform = this.transform.Find("Att/AttTmpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, true); + } + + public void Set(TitleTable.RowData rowData) + { + bool flag = rowData == null; + if (flag) + { + this.gameObject.SetActive(false); + } + else + { + bool flag2 = this.m_selectTitle == (int)rowData.RankID; + if (!flag2) + { + this.Reset(); + this.m_selectTitle = (int)rowData.RankID; + this.gameObject.SetActive(true); + this.m_ItemPool.FakeReturnAll(); + double num = 0.0; + int i = 0; + int count = rowData.Attribute.Count; + while (i < count) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + num += XSingleton.singleton.GetPPT(rowData.Attribute[i, 0], rowData.Attribute[i, 1], null, -1); + IXUILabel ixuilabel = gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(XStringDefineProxy.GetString((XAttributeDefine)rowData.Attribute[i, 0])); + ixuilabel.SetText(XSingleton.singleton.StringCombine("+", rowData.Attribute[i, 1].ToString())); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)i * 30 - 10), 0f); + i++; + } + this.m_ItemPool.ActualReturnAll(false); + this.m_FightValue.SetText(XSingleton.singleton.StringCombine("+", ((uint)num).ToString())); + this.m_TitleName.SetNamePrefix(rowData.RankAtlas, rowData.RankIcon); + this.m_TitleName.SetFrameRate(XTitleDocument.TITLE_FRAME_RATE); + this.m_TitleName.MakePixelPerfect(); + this.m_TitleTexture.SetTexturePath(rowData.RankPath); + bool flag3 = string.IsNullOrEmpty(rowData.AffectRoute); + if (!flag3) + { + this.m_titleEffect = XSingleton.singleton.CreateUIFx(rowData.AffectRoute, this.m_TitleTexture.gameObject.transform, false); + } + } + } + } + + public void Reset() + { + bool flag = this.m_titleEffect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_titleEffect, true); + } + this.m_TitleTexture.SetTexturePath(""); + } +} diff --git a/Client/Assets/Scripts/XMainClient/TitleDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/TitleDisplay.cs.meta new file mode 100644 index 00000000..62a70663 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TitleDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ab15fd4aad89ed41842a878b436c82e +timeCreated: 1611404202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TitleItemDisplay.cs b/Client/Assets/Scripts/XMainClient/TitleItemDisplay.cs new file mode 100644 index 00000000..fd57cb57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TitleItemDisplay.cs @@ -0,0 +1,148 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +public class TitleItemDisplay +{ + public Transform transform { get; private set; } + + public GameObject gameObject + { + get + { + return this.transform.gameObject; + } + } + + private Transform m_ItemGo; + + private IXUILabel m_PPTLabel; + + private IXUILabel m_RunLabel; + + private IXUILabel m_itemNum; + + private IXUILabel m_itemName; + + private Transform m_ItemIcon; + + public void Init(Transform go) + { + this.transform = go; + this.m_ItemGo = this.transform.Find("Item"); + this.m_ItemIcon = this.transform.Find("Item/Icon"); + this.m_itemNum = (this.transform.Find("Item/Num").GetComponent("XUILabel") as IXUILabel); + this.m_itemName = (this.transform.Find("Item/ItemName").GetComponent("XUILabel") as IXUILabel); + this.m_PPTLabel = (this.transform.Find("PPT").GetComponent("XUILabel") as IXUILabel); + this.m_RunLabel = (this.transform.Find("Leave").GetComponent("XUILabel") as IXUILabel); + this.m_RunLabel.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnClickLableHandler)); + } + + private void OnClickLableHandler(IXUILabel label) + { + bool flag = label.ID == 0UL; + if (flag) + { + DlgBase.singleton.ShowContent(FunctionDef.ZHANLI); + } + else + { + XSingleton.singleton.ShowItemAccess((int)label.ID, null); + } + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + + public void SetVisible(bool visible) + { + this.gameObject.SetActive(visible); + } + + public void Set(uint data0, uint data1, string desc) + { + this.m_RunLabel.ID = (ulong)data0; + bool flag = data0 == 0u; + if (flag) + { + this.SetFightValue(data1); + } + else + { + this.SetItemValue(data0, data1, desc); + } + } + + private void SetFightValue(uint value) + { + this.m_ItemGo.gameObject.SetActive(false); + this.m_PPTLabel.gameObject.SetActive(true); + double attr = XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + int num = (int)(value - (uint)((int)attr)); + bool flag = value <= attr; + if (flag) + { + this.m_RunLabel.Alpha = 0f; + this.m_PPTLabel.SetText(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_FMT", new object[] + { + (int)attr, + value + })); + } + else + { + this.m_RunLabel.Alpha = 1f; + this.m_RunLabel.SetText(XStringDefineProxy.GetString("TITLE_RUN_LABEL_1")); + this.m_PPTLabel.SetText(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT", new object[] + { + (int)attr, + value + })); + } + } + + private void ShowTooltipDialog(IXUISprite sprite) + { + bool flag = sprite.ID > 0UL; + if (flag) + { + XSingleton.singleton.ShowTooltipDialog((int)sprite.ID, null, 0u); + } + } + + private void SetItemValue(uint itemID, uint value, string desc) + { + this.m_ItemGo.gameObject.SetActive(true); + this.m_PPTLabel.gameObject.SetActive(false); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemID); + int num = (int)XBagDocument.BagDoc.GetItemCount((int)itemID); + this.m_itemName.SetText(desc); + XItemDrawerMgr.Param.IconType = 1u; + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_ItemIcon.gameObject, itemConf, 0, false); + IXUISprite ixuisprite = this.m_ItemIcon.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)itemConf.ItemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowTooltipDialog)); + bool flag = (long)num < (long)((ulong)value); + if (flag) + { + this.m_RunLabel.Alpha = 1f; + this.m_RunLabel.SetText(XStringDefineProxy.GetString("TITLE_RUN_LABEL_1")); + this.m_itemNum.SetText(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT", new object[] + { + num, + value + })); + } + else + { + this.m_RunLabel.Alpha = 0f; + this.m_itemNum.SetText(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_FMT", new object[] + { + num, + value + })); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TitleItemDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/TitleItemDisplay.cs.meta new file mode 100644 index 00000000..31b2ef2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TitleItemDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b89af60db695f5f45a3cb6217df5b4cb +timeCreated: 1611404405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TitleSelector.cs b/Client/Assets/Scripts/XMainClient/TitleSelector.cs new file mode 100644 index 00000000..ef9d8cab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TitleSelector.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public enum TitleSelector + { + Name, + Stage, + Fight, + Type, + Time, + End, + Nomal + } +} diff --git a/Client/Assets/Scripts/XMainClient/TitleSelector.cs.meta b/Client/Assets/Scripts/XMainClient/TitleSelector.cs.meta new file mode 100644 index 00000000..9b9d07db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TitleSelector.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e62fcb8c1cb29b4c9d0dddc3eae3eb1 +timeCreated: 1611403203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonActivateFashion.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonActivateFashion.cs new file mode 100644 index 00000000..2561f6c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonActivateFashion.cs @@ -0,0 +1,59 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonActivateFashion : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("FASHION_PUT_STORAGE"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + bool flag = item.itemConf.TimeLimit == 0u; + bool result; + if (flag) + { + result = false; + } + else + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + ClientFashionData clientFashionData = specificDocument.FindFashion(item.uid); + result = (clientFashionData != null && clientFashionData.timeleft < 0.0); + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + ClientFashionData clientFashionData = specificDocument.FindFashion(this.mainItemUID); + bool flag = clientFashionData == null || clientFashionData.timeleft > -1.0; + if (!flag) + { + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("FASHION_STORAGE_SURE"), @string, string2, new ButtonClickEventHandler(this.OnActivateFashion), 100); + } + } + + private bool OnActivateFashion(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + specificDocument.ActivateFashion(this.mainItemUID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonActivateFashion.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonActivateFashion.cs.meta new file mode 100644 index 00000000..fa8a0133 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonActivateFashion.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0949f8e7792074748be3de1f0b3592c6 +timeCreated: 1611403154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateBase.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateBase.cs new file mode 100644 index 00000000..61efba82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateBase.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal abstract class TooltipButtonOperateBase + { + protected ulong compareItemUID; + + protected ulong mainItemUID; + + public abstract string GetButtonText(); + + public abstract bool HasRedPoint(XItem item); + + public abstract bool IsButtonVisible(XItem item); + + public virtual void OnButtonClick(ulong mainUID, ulong compareUID) + { + this.mainItemUID = mainUID; + this.compareItemUID = compareUID; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateBase.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateBase.cs.meta new file mode 100644 index 00000000..0900d74e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65c299ddb5fdeca4a86a25d34e73f144 +timeCreated: 1611403851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateCompose.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateCompose.cs new file mode 100644 index 00000000..06eaa36d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateCompose.cs @@ -0,0 +1,125 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateCompose : TooltipButtonOperateBase + { + private int m_composeDividend = 1; + + private int m_level = 1; + + private string m_composeName = ""; + + private ItemList.RowData itemRowData = null; + + public override string GetButtonText() + { + return XStringDefineProxy.GetString("UPGRADE"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + bool flag = item == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Compose); + bool flag3 = !flag2; + if (flag3) + { + result = false; + } + else + { + XEquipCreateDocument doc = XEquipCreateDocument.Doc; + ItemComposeTable.RowData itemCoomposeRow = doc.GetItemCoomposeRow(item.itemID); + bool flag4 = itemCoomposeRow == null; + if (flag4) + { + result = false; + } + else + { + this.itemRowData = XBagDocument.GetItemConf(itemCoomposeRow.ItemID); + bool flag5 = this.itemRowData == null; + if (flag5) + { + result = false; + } + else + { + this.m_composeName = XSingleton.singleton.ChooseProfString(this.itemRowData.ItemName, 0u); + this.m_composeDividend = itemCoomposeRow.SrcItem1[1]; + this.m_level = itemCoomposeRow.Level; + result = true; + } + } + } + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + bool flag2 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)this.m_level); + if (flag2) + { + string text = string.Format(XSingleton.singleton.GetString("CannotCompose"), this.m_level); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + return; + } + } + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.mainItemUID); + bool flag3 = itemByUID == null; + if (!flag3) + { + int itemCount = itemByUID.itemCount; + string text2 = XSingleton.singleton.ChooseProfString(itemByUID.itemConf.ItemName, 0u); + bool flag4 = itemCount >= this.m_composeDividend; + if (flag4) + { + int num = itemCount / this.m_composeDividend; + int num2 = num * this.m_composeDividend; + string text3 = XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("ItemComposeTips1")); + text3 = string.Format(text3, new object[] + { + num2, + text2, + num, + this.m_composeName, + this.m_composeDividend + }); + XSingleton.singleton.ShowModalDialog(text3, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._OnComposeClicked)); + } + else + { + string text4 = string.Format(XSingleton.singleton.GetString("ItemComposeTips2"), this.m_composeDividend); + XSingleton.singleton.ShowSystemTip(text4, "fece00"); + } + } + } + + private bool _OnComposeClicked(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + XSingleton.singleton.Doc.XBagDoc.ReqItemCompose(this.mainItemUID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateCompose.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateCompose.cs.meta new file mode 100644 index 00000000..d4f77c8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateCompose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 024c630fb9cd4cc469b77a45bcb18d25 +timeCreated: 1611402956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemPutOn.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemPutOn.cs new file mode 100644 index 00000000..07db7593 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemPutOn.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class TooltipButtonOperateEmblemPutOn : TooltipButtonOperatePutOn + { + public override bool IsButtonVisible(XItem item) + { + XEmblemItem xemblemItem = item as XEmblemItem; + return xemblemItem.emblemInfo.thirdslot != 1u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemPutOn.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemPutOn.cs.meta new file mode 100644 index 00000000..62ac5e5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemPutOn.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3b54a756985ab141a47e7f9580cac79 +timeCreated: 1611404389 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemSmelt.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemSmelt.cs new file mode 100644 index 00000000..6e9ed232 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemSmelt.cs @@ -0,0 +1,30 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateEmblemSmelt : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("SMELT_REPLACE"); + } + + public override bool IsButtonVisible(XItem item) + { + XEmblemItem xemblemItem = item as XEmblemItem; + return !xemblemItem.bIsSkillEmblem && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Emblem_Smelting) && (int)item.itemConf.ReqLevel >= XSingleton.singleton.GetInt("SmeltEmblemMinLevel") && xemblemItem.changeAttr.Count > 0; + } + + public override bool HasRedPoint(XItem item) + { + return XSmeltDocument.Doc.IsHadRedDot(item); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XSmeltDocument.Doc.SelectEquip(this.mainItemUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemSmelt.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemSmelt.cs.meta new file mode 100644 index 00000000..9baeed69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEmblemSmelt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6c9061fef7122f4db8389225fe8d5ac +timeCreated: 1611404527 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchant.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchant.cs new file mode 100644 index 00000000..386c0f95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchant.cs @@ -0,0 +1,32 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateEnchant : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("ENCHANT"); + } + + public override bool HasRedPoint(XItem item) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + XEnchantDocument specificDocument = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + return equipConf != null && specificDocument.RedPointStates[(int)equipConf.EquipPos]; + } + + public override bool IsButtonVisible(XItem item) + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Enchant) && XEnchantDocument.CanEquipEnchant((int)item.itemConf.ReqLevel); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XEnchantDocument specificDocument = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + specificDocument.SelectEquip(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchant.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchant.cs.meta new file mode 100644 index 00000000..6668afca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchant.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ffc85a1e4a0898244a800005aec290a5 +timeCreated: 1611404948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchantTransform.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchantTransform.cs new file mode 100644 index 00000000..b5237c81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchantTransform.cs @@ -0,0 +1,60 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateEnchantTransform : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("ENCHANT_TRANSFORM"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XEquipItem xequipItem = item as XEquipItem; + return xequipItem.enchantInfo.bHasEnchant; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(mainUID); + bool flag = itemByUID != null; + if (flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag2 = equipConf != null; + if (flag2) + { + bool flag3 = this.compareItemUID == 0UL; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EnchantTrasform"), "fece00"); + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("EnchantTransformConfirm"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._EnchantTransform)); + } + } + } + } + + private bool _EnchantTransform(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + RpcC2G_EnchantTransfer rpcC2G_EnchantTransfer = new RpcC2G_EnchantTransfer(); + rpcC2G_EnchantTransfer.oArg.destuid = this.compareItemUID; + rpcC2G_EnchantTransfer.oArg.originuid = this.mainItemUID; + XSingleton.singleton.Send(rpcC2G_EnchantTransfer); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchantTransform.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchantTransform.cs.meta new file mode 100644 index 00000000..ac110e75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnchantTransform.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08210c5e56c8db240b8791da34d4145c +timeCreated: 1611402970 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhance.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhance.cs new file mode 100644 index 00000000..c60316a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhance.cs @@ -0,0 +1,32 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateEnhance : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("ENHANCE"); + } + + public override bool HasRedPoint(XItem item) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + XEnhanceDocument specificDocument = XDocuments.GetSpecificDocument(XEnhanceDocument.uuID); + return equipConf != null && specificDocument.RedPointEquips.Contains((int)equipConf.EquipPos); + } + + public override bool IsButtonVisible(XItem item) + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Enhance); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XEnhanceDocument specificDocument = XDocuments.GetSpecificDocument(XEnhanceDocument.uuID); + specificDocument.SelectEquip(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhance.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhance.cs.meta new file mode 100644 index 00000000..76e97187 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93096762b2417584b9aa7295a89d90f4 +timeCreated: 1611404148 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhanceTransform.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhanceTransform.cs new file mode 100644 index 00000000..dda15431 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhanceTransform.cs @@ -0,0 +1,67 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateEnhanceTransform : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("ENHANCE_TRANSFORM"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XEquipItem xequipItem = item as XEquipItem; + return xequipItem.enhanceInfo.EnhanceLevel > 0u; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID != null; + if (flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag2 = equipConf != null; + if (flag2) + { + XItem xitem = XBagDocument.BagDoc.EquipBag[(int)equipConf.EquipPos]; + bool flag3 = xitem == null || this.compareItemUID != xitem.uid; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EnhanceTrasform"), "fece00"); + } + else + { + EquipList.RowData equipConf2 = XBagDocument.GetEquipConf(xitem.itemID); + string text = ""; + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemByUID.itemID); + bool flag4 = itemConf != null; + if (flag4) + { + text = itemConf.ItemName[0]; + } + text = string.Format(XStringDefineProxy.GetString("EnhanceTrasformTips"), text); + XSingleton.singleton.ShowModalDialog(text, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.EnhanceTransform)); + } + } + } + } + + private bool EnhanceTransform(IXUIButton btn) + { + XEquipCreateDocument.Doc.ReqEnhanceTransform(this.mainItemUID, this.compareItemUID); + XSingleton.singleton.CloseModalDlg(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhanceTransform.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhanceTransform.cs.meta new file mode 100644 index 00000000..aaddcb30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEnhanceTransform.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fc6cf0b1e05cc347a703b922bcbc813 +timeCreated: 1611403519 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipFusion.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipFusion.cs new file mode 100644 index 00000000..52e5d314 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipFusion.cs @@ -0,0 +1,49 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateEquipFusion : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("EquipFusion"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_EquipFusion); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = item == null; + if (flag2) + { + result = false; + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + bool flag3 = equipConf == null; + result = (!flag3 && equipConf.FuseCanBreakNum > 0); + } + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + EquipFusionDocument.Doc.SelectEquip(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipFusion.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipFusion.cs.meta new file mode 100644 index 00000000..9579f31a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipFusion.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d3ee1cf0776c5e4eaeeb0c0aa69e89c +timeCreated: 1611403694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipUpgrade.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipUpgrade.cs new file mode 100644 index 00000000..e8f0884b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipUpgrade.cs @@ -0,0 +1,41 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateEquipUpgrade : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("UPGRADE"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + bool flag = item == null; + bool result; + if (flag) + { + result = false; + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + bool flag2 = equipConf == null; + result = (!flag2 && equipConf.UpgadeTargetID > 0u); + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + EquipUpgradeDocument.Doc.SelectEquip(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipUpgrade.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipUpgrade.cs.meta new file mode 100644 index 00000000..d0365d66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateEquipUpgrade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 349124af7b5dd86459fe7f327f99a2c2 +timeCreated: 1611403555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOn.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOn.cs new file mode 100644 index 00000000..31da4fed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOn.cs @@ -0,0 +1,35 @@ +using System; + +namespace XMainClient +{ + internal class TooltipButtonOperateFashionPutOn : TooltipButtonOperateBase + { + public override bool IsButtonVisible(XItem item) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + return specificDocument.ValidPart(item.itemID); + } + + public override string GetButtonText() + { + return XStringDefineProxy.GetString("PUTON"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + ClientFashionData clientFashionData = specificDocument.FindFashion(this.mainItemUID); + bool flag = clientFashionData == null; + if (!flag) + { + specificDocument.EquipFashion(true, this.mainItemUID, (int)clientFashionData.itemID); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOn.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOn.cs.meta new file mode 100644 index 00000000..f2c41898 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOn.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 07f0ae2d52b510b4597e0f32cea9dd0c +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOnSuit.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOnSuit.cs new file mode 100644 index 00000000..2c13cd67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOnSuit.cs @@ -0,0 +1,36 @@ +using System; + +namespace XMainClient +{ + internal class TooltipButtonOperateFashionPutOnSuit : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("PUTSUIT"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag = !specificDocument.ValidPart(item.itemID) || specificDocument.GetFashionSuit(item.itemID) == 0; + return !flag && specificDocument.ShowSuitAllButton(item.uid); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + ClientFashionData clientFashionData = specificDocument.FindFashion(this.mainItemUID); + bool flag = clientFashionData != null; + if (flag) + { + specificDocument.EquipFashionSuit(true, (int)clientFashionData.itemID); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOnSuit.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOnSuit.cs.meta new file mode 100644 index 00000000..b4ddb7f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionPutOnSuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d3cb934a5ec8dc4c84a327bec606f54 +timeCreated: 1611404000 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOff.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOff.cs new file mode 100644 index 00000000..cc7e14fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOff.cs @@ -0,0 +1,34 @@ +using System; + +namespace XMainClient +{ + internal class TooltipButtonOperateFashionTakeOff : TooltipButtonOperateBase + { + public override bool IsButtonVisible(XItem item) + { + return true; + } + + public override string GetButtonText() + { + return XStringDefineProxy.GetString("TAKEOFF"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + ClientFashionData clientFashionData = specificDocument.FindFashion(this.mainItemUID); + bool flag = clientFashionData != null; + if (flag) + { + specificDocument.EquipFashion(false, this.mainItemUID, (int)clientFashionData.itemID); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOff.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOff.cs.meta new file mode 100644 index 00000000..03e4f6ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3075a5183dd267c4b9d297f78054c4f7 +timeCreated: 1611403521 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOffSuit.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOffSuit.cs new file mode 100644 index 00000000..a5b24f6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOffSuit.cs @@ -0,0 +1,36 @@ +using System; + +namespace XMainClient +{ + internal class TooltipButtonOperateFashionTakeOffSuit : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("TAKEOFFALL"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag = specificDocument.GetFashionSuit(item.itemID) == 0; + return !flag && specificDocument.ShowSuitAllButton(item.uid); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + ClientFashionData clientFashionData = specificDocument.FindFashion(this.mainItemUID); + bool flag = clientFashionData == null; + if (!flag) + { + specificDocument.EquipFashionSuit(false, (int)clientFashionData.itemID); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOffSuit.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOffSuit.cs.meta new file mode 100644 index 00000000..74bcf505 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateFashionTakeOffSuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f37ea1e68e21edc428da394f1af84479 +timeCreated: 1611404849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateForge.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateForge.cs new file mode 100644 index 00000000..a24afc50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateForge.cs @@ -0,0 +1,31 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateForge : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("Forge"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + bool flag = equipConf == null; + return !flag && (XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Forge) && XForgeDocument.ForgeAttrMgr.IsHadThisEquip(item.itemID)) && equipConf.CanForge == 1; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XForgeDocument.Doc.SelectEquip(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateForge.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateForge.cs.meta new file mode 100644 index 00000000..2e0f2657 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateForge.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d79c2b35850809144bc21e34b18c6281 +timeCreated: 1611404636 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateIdentify.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateIdentify.cs new file mode 100644 index 00000000..ead5097d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateIdentify.cs @@ -0,0 +1,78 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateIdentify : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("IDENTIFY"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XEmblemItem xemblemItem = item as XEmblemItem; + return xemblemItem.emblemInfo.thirdslot == 1u; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(mainUID); + bool flag = itemByUID != null; + if (flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemByUID.itemID); + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(itemByUID.itemID); + bool flag2 = emblemConf != null && itemConf != null; + if (flag2) + { + bool flag3 = (long)emblemConf.DragonCoinCost <= (long)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN); + if (flag3) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("TOOLTIP_EMBLEM_IDENTIFY_MSG_FMT", new object[] + { + XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u), + emblemConf.DragonCoinCost + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Identify)); + } + else + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + XPurchaseDocument specificDocument2 = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + XPurchaseInfo purchaseInfo = specificDocument2.GetPurchaseInfo(level, vipLevel, ItemEnum.DRAGON_COIN); + bool flag4 = purchaseInfo.totalBuyNum > purchaseInfo.curBuyNum; + if (flag4) + { + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.DRAGON_COIN); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_AUCT_DRAGONCOINLESS"), "fece00"); + } + } + } + } + } + + private bool _Identify(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + RpcC2G_IdentifyEmblem rpcC2G_IdentifyEmblem = new RpcC2G_IdentifyEmblem(); + rpcC2G_IdentifyEmblem.oArg.uid = this.mainItemUID; + XSingleton.singleton.Send(rpcC2G_IdentifyEmblem); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateIdentify.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateIdentify.cs.meta new file mode 100644 index 00000000..84ab31e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateIdentify.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3918443768a2f2e46ac0469eafc5ffc7 +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemAny.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemAny.cs new file mode 100644 index 00000000..855b6897 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemAny.cs @@ -0,0 +1,112 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateItemAny : TooltipButtonOperateBase + { + private string m_Text; + + private ulong m_useCount; + + public override string GetButtonText() + { + return this.m_Text; + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + ItemType type = item.Type; + if (type != ItemType.PECK) + { + if (type == ItemType.EMBLEM_MATERIAL) + { + this.m_Text = XStringDefineProxy.GetString("Make"); + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Char_Emblem) && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_EquipCreate_EmblemSet); + } + } + else + { + ChestList.RowData chestConf = XBagDocument.GetChestConf(item.itemID); + bool flag = chestConf != null && chestConf.MultiOpen; + if (flag) + { + this.m_useCount = (ulong)((long)XBagDocument.BagDoc.ItemBag.GetItemCountByUid(item.uid)); + bool flag2 = this.m_useCount > 1UL; + if (flag2) + { + this.m_Text = XStringDefineProxy.GetString("OpenAll"); + return true; + } + } + } + return false; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID == null; + if (!flag) + { + ItemType type = itemByUID.Type; + if (type != ItemType.PECK) + { + if (type == ItemType.EMBLEM_MATERIAL) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_EquipCreate_EmblemSet, 0UL); + } + } + else + { + ChestList.RowData chestConf = XBagDocument.GetChestConf(itemByUID.itemID); + bool flag2 = chestConf != null && chestConf.MultiOpen; + if (flag2) + { + this.OpenAnyTimesTip(itemByUID); + } + } + } + } + + private void OpenAnyTimesTip(XItem item) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + bool flag = !item.bBinding && itemConf != null && itemConf.IsNeedShowTipsPanel == 1; + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("CanNotSeal"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.UseOnceItem)); + } + else + { + XSingleton.singleton.Doc.XBagDoc.UseItem(item, 0u, 0u); + } + } + + private bool UseOnceItem(IXUIButton btn) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID == null; + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 0u); + XSingleton.singleton.CloseModalDlg(); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemAny.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemAny.cs.meta new file mode 100644 index 00000000..1347987d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemAny.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7219d1a18d3f06741916e68cd431e43b +timeCreated: 1611403936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemUse.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemUse.cs new file mode 100644 index 00000000..ef0d7f1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemUse.cs @@ -0,0 +1,240 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateItemUse : TooltipButtonOperateBase + { + private uint m_SystemID; + + private ItemUseButtonList.RowData m_RowData; + + private bool m_biShowPutInBtn; + + private List m_EndlessabyssShopItem; + + public TooltipButtonOperateItemUse() + { + this.m_EndlessabyssShopItem = XSingleton.singleton.GetIntList("EndlessabyssShopItem"); + } + + public override string GetButtonText() + { + bool flag = this.m_RowData != null; + string result; + if (flag) + { + result = this.m_RowData.ButtonName; + } + else + { + result = string.Empty; + } + return result; + } + + public override bool IsButtonVisible(XItem item) + { + this.m_biShowPutInBtn = XSingleton.singleton.bShowPutInBtn; + XCharacterItemDocument specificDocument = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + this.m_RowData = specificDocument.GetButtonData((uint)item.itemID, item.type); + bool flag = this.m_RowData != null; + bool result; + if (flag) + { + this.m_SystemID = this.m_RowData.SystemID; + for (int i = 0; i < this.m_EndlessabyssShopItem.Count; i++) + { + bool flag2 = item.itemID == this.m_EndlessabyssShopItem[i]; + if (flag2) + { + this.m_SystemID = (uint)XFastEnumIntEqualityComparer.ToInt(ActivityHandler.GetShopSystem()); + break; + } + } + bool flag3 = item.Type == ItemType.EMBLEM_MATERIAL; + if (flag3) + { + bool flag4 = this.m_SystemID != 0u && (!XSingleton.singleton.IsSystemOpened((XSysDefine)this.m_SystemID) || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Char_Emblem)); + if (flag4) + { + return false; + } + } + else + { + bool flag5 = this.m_SystemID != 0u && !XSingleton.singleton.IsSystemOpened((XSysDefine)this.m_SystemID); + if (flag5) + { + return false; + } + } + result = true; + } + else + { + result = false; + } + return result; + } + + public override bool HasRedPoint(XItem item) + { + XCharacterItemDocument specificDocument = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + return specificDocument.AvailableItems.IsNew(item.uid); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = this.m_SystemID == 0u; + if (flag) + { + bool flag2 = itemByUID != null; + if (flag2) + { + ItemType type = itemByUID.Type; + if (type != ItemType.LOTTERY_BOX) + { + switch (type) + { + case ItemType.FOOD_MENU: + XHomeCookAndPartyDocument.Doc.SendActiveFoodMenu((uint)itemByUID.itemID); + goto IL_136; + case ItemType.Food_Eaten: + { + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 7u); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.PlayUseItemEffect(false); + } + goto IL_136; + } + case (ItemType)24: + case (ItemType)25: + break; + case ItemType.PANDORA: + { + PandoraHeart.RowData pandoraHeartConf = XBagDocument.GetPandoraHeartConf(itemByUID.itemID, XSingleton.singleton.XPlayerData.BasicTypeID); + PandoraDocument specificDocument = XDocuments.GetSpecificDocument(PandoraDocument.uuID); + specificDocument.ShowPandoraLotteryView(pandoraHeartConf.PandoraID, pandoraHeartConf); + goto IL_136; + } + default: + if (type == ItemType.BagExpandTicket) + { + this.UseBagExpandTicket(itemByUID); + goto IL_136; + } + break; + } + this.OpenOnceTip(itemByUID); + } + else + { + XCharacterItemDocument specificDocument2 = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + specificDocument2.ShowWheelView(itemByUID); + } + IL_136:; + } + } + else + { + bool flag4 = itemByUID != null; + if (flag4) + { + ItemType type2 = itemByUID.Type; + if (type2 != ItemType.Inscription) + { + XSingleton.singleton.OpenSystem((XSysDefine)this.m_SystemID, 0UL); + } + else + { + bool biShowPutInBtn = this.m_biShowPutInBtn; + if (biShowPutInBtn) + { + ArtifactDeityStoveDocument.Doc.Additem(mainUID); + } + else + { + XSingleton.singleton.OpenSystem((XSysDefine)this.m_SystemID, 0UL); + } + } + } + else + { + XSingleton.singleton.OpenSystem((XSysDefine)this.m_SystemID, 0UL); + } + } + } + + private void OpenOnceTip(XItem item) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + bool flag = !item.bBinding && itemConf != null && itemConf.IsNeedShowTipsPanel == 1; + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("CanNotSeal"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.UseOnceItem)); + } + else + { + XSingleton.singleton.Doc.XBagDoc.UseItem(item, 0u); + } + } + + private bool UseOnceItem(IXUIButton btn) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID != null; + if (flag) + { + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 0u); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void UseBagExpandTicket(XItem item) + { + BagExpandItemListTable.RowData expandItemConf = XBagDocument.GetExpandItemConf((uint)item.itemID); + bool flag = expandItemConf != null; + if (flag) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount(item.itemID); + BagExpandData bagExpandData = XBagDocument.BagDoc.GetBagExpandData((BagType)expandItemConf.Type); + bool flag2 = bagExpandData != null; + if (flag2) + { + bool flag3 = (uint)expandItemConf.NeedAndOpen.count > bagExpandData.ExpandTimes; + if (flag3) + { + bool flag4 = itemCount >= (ulong)expandItemConf.NeedAndOpen[(int)bagExpandData.ExpandTimes, 0]; + if (flag4) + { + XSingleton.singleton.Doc.XBagDoc.UseItem(item, 0u); + } + else + { + bool flag5 = item.itemConf != null; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("BagExpandNeedNum"), expandItemConf.NeedAndOpen[(int)bagExpandData.ExpandTimes, 0], item.itemConf.ItemName[0], expandItemConf.NeedAndOpen[(int)bagExpandData.ExpandTimes, 1]), "fece00"); + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetBagExpandFullTips((BagType)expandItemConf.Type), "fece00"); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemUse.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemUse.cs.meta new file mode 100644 index 00000000..899e4780 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateItemUse.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b587695010a6f248894743bfdb3e5de +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateJadeUpgrade.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateJadeUpgrade.cs new file mode 100644 index 00000000..f409bf56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateJadeUpgrade.cs @@ -0,0 +1,60 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateJadeUpgrade : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("UPGRADE"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + return true; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XJadeDocument xjadeDocument = XSingleton.singleton.Doc.GetXComponent(XJadeDocument.uuID) as XJadeDocument; + XJadeItem jadeItem = xjadeDocument.GetJadeItem(mainUID); + bool flag = jadeItem != null && XSingleton.singleton.XPlayerData != null; + if (flag) + { + JadeTable.RowData byJadeID = xjadeDocument.jadeTable.GetByJadeID((uint)jadeItem.itemID); + bool flag2 = byJadeID != null; + if (flag2) + { + bool flag3 = (ulong)byJadeID.JadeLevel >= (ulong)((long)xjadeDocument.JadeMosaicLevel.Count); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("JadeHadMax"), "fece00"); + return; + } + bool flag4 = XSingleton.singleton.XPlayerData == null; + if (flag4) + { + return; + } + int num = xjadeDocument.JadeLevelToMosaicLevel(byJadeID.JadeLevel + 1u); + int level = (int)XSingleton.singleton.XPlayerData.Level; + bool flag5 = level < num; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("JadeUpgradeNeedLevelTips"), num, byJadeID.JadeLevel + 1u), "fece00"); + return; + } + } + } + xjadeDocument.TryToCompose(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateJadeUpgrade.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateJadeUpgrade.cs.meta new file mode 100644 index 00000000..ef9fe6a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateJadeUpgrade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9213fc53f3531bb4daa43076788dc23f +timeCreated: 1611404145 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutIn.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutIn.cs new file mode 100644 index 00000000..198d5827 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutIn.cs @@ -0,0 +1,30 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperatePutIn : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("TAKEIN"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + return XSingleton.singleton.bShowPutInBtn; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + ArtifactDeityStoveDocument.Doc.Additem(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutIn.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutIn.cs.meta new file mode 100644 index 00000000..6a1cbbc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutIn.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 478fd7f4b26947a469b8e27ffeb4b751 +timeCreated: 1611403654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutOn.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutOn.cs new file mode 100644 index 00000000..5b87dbc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutOn.cs @@ -0,0 +1,150 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperatePutOn : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("PUTON"); + } + + public override bool HasRedPoint(XItem item) + { + XCharacterEquipDocument specificDocument = XDocuments.GetSpecificDocument(XCharacterEquipDocument.uuID); + EquipCompare mix = specificDocument.IsEquipMorePowerful(item.uid); + EquipCompare final = XCharacterEquipDocument.GetFinal(mix); + return final == EquipCompare.EC_MORE_POWERFUL; + } + + public override bool IsButtonVisible(XItem item) + { + return true; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID == null || itemByUID.itemConf == null; + if (!flag) + { + ItemList.RowData itemConf = itemByUID.itemConf; + bool flag2 = !itemByUID.bBinding && itemConf.ItemQuality >= 3; + if (flag2) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("BINDING_CONFIRM"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Equip)); + } + else + { + bool flag3 = itemByUID.Type == ItemType.EQUIP; + if (flag3) + { + EquipFusionDocument.IsEquipDown = true; + } + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 0u); + } + } + } + + private bool _Equip(IXUIButton btn) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID != null; + if (flag) + { + bool flag2 = itemByUID.Type == ItemType.EQUIP; + if (flag2) + { + EquipFusionDocument.IsEquipDown = true; + } + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 0u); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool _Equip0(IXUIButton btn) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID != null; + if (flag) + { + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 0u, 0u); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool _Equip1(IXUIButton btn) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID != null; + if (flag) + { + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 0u, 1u); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool IsNeedJadeTip(XEquipItem equip, XEquipItem equipedEquip) + { + bool flag = equip == null || equip.itemID == 0 || equipedEquip == null || equipedEquip.itemID == 0; + bool result; + if (flag) + { + result = false; + } + else + { + int num = 0; + foreach (uint num2 in equip.jadeInfo.AllSlots()) + { + XJadeItem xjadeItem = equip.jadeInfo.jades[num]; + bool flag2 = xjadeItem != null; + if (flag2) + { + return false; + } + num++; + } + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + num = 0; + foreach (uint num3 in equipedEquip.jadeInfo.AllSlots()) + { + XJadeItem xjadeItem = equipedEquip.jadeInfo.jades[num]; + bool flag3 = xjadeItem != null; + if (flag3) + { + JadeTable.RowData byJadeID = specificDocument.jadeTable.GetByJadeID((uint)xjadeItem.itemID); + bool flag4 = byJadeID == null || XSingleton.singleton.XPlayerData == null; + if (flag4) + { + continue; + } + int num4 = specificDocument.JadeLevelToMosaicLevel(byJadeID.JadeLevel); + bool flag5 = (ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)num4); + if (flag5) + { + foreach (uint num5 in equip.jadeInfo.AllSlots()) + { + bool flag6 = num5 == num3; + if (flag6) + { + return true; + } + } + } + } + num++; + } + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutOn.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutOn.cs.meta new file mode 100644 index 00000000..8eedc1cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperatePutOn.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e18aa6d0900078f438ea3d739da1eda2 +timeCreated: 1611404702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateRecycle.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateRecycle.cs new file mode 100644 index 00000000..c89da614 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateRecycle.cs @@ -0,0 +1,41 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateRecycle : TooltipButtonOperateBase + { + protected XSysDefine m_Sys; + + public TooltipButtonOperateRecycle(XSysDefine sys) + { + this.m_Sys = sys; + } + + public override string GetButtonText() + { + return XStringDefineProxy.GetString("DECOMPOSE"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + bool flag = XSingleton.singleton.bShowTakeOutBtn || XSingleton.singleton.bShowPutInBtn; + return !flag && (XSingleton.singleton.IsSystemOpened(this.m_Sys) && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Recycle_Equip)) && item.itemConf.IsCanRecycle == 1; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Recycle_Equip); + XRecycleItemDocument specificDocument = XDocuments.GetSpecificDocument(XRecycleItemDocument.uuID); + specificDocument.ToggleItemSelect(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateRecycle.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateRecycle.cs.meta new file mode 100644 index 00000000..6af8a87a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateRecycle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4e364038cbe83449b68a269be271b94 +timeCreated: 1611404284 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSell.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSell.cs new file mode 100644 index 00000000..b972c74d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSell.cs @@ -0,0 +1,85 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateSell : TooltipButtonOperateBase + { + private int itemCount = 0; + + private ItemList.RowData itemRowData = null; + + private uint moneyID = 0u; + + private uint moneyCount = 0u; + + public override string GetButtonText() + { + return XStringDefineProxy.GetString("SELL"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + return this._CanItemBeSold(item); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.moneyID); + bool flag = itemConf == null || this.itemRowData == null; + if (!flag) + { + string @string = XStringDefineProxy.GetString("ItemSellConfirm", new object[] + { + this.itemCount.ToString(), + XSingleton.singleton.ChooseProfString(this.itemRowData.ItemName, 0u), + ((long)((ulong)this.moneyCount * (ulong)((long)this.itemCount))).ToString(), + XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u) + }); + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._OnSellClicked)); + } + } + + protected bool _CanItemBeSold(XItem item) + { + bool flag = item == null || item.itemConf == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = item.itemConf.Sell[0] > 0u; + if (flag2) + { + this.itemCount = item.itemCount; + this.itemRowData = item.itemConf; + this.moneyID = item.itemConf.Sell[0]; + this.moneyCount = item.itemConf.Sell[1]; + result = true; + } + else + { + result = false; + } + } + return result; + } + + private bool _OnSellClicked(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + XSingleton.singleton.Doc.XBagDoc.ReqItemSell(this.mainItemUID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSell.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSell.cs.meta new file mode 100644 index 00000000..8516f400 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSell.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abcde1fef44cf6f42b0e3ebdb2223cb6 +timeCreated: 1611404308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmelt.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmelt.cs new file mode 100644 index 00000000..d65bf518 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmelt.cs @@ -0,0 +1,36 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateSmelt : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("SMELT_REPLACE"); + } + + public override bool HasRedPoint(XItem item) + { + return XSmeltDocument.Doc.IsHadRedDot(item); + } + + public override bool IsButtonVisible(XItem item) + { + EquipList.RowData rowData = null; + XEquipItem xequipItem = item as XEquipItem; + bool flag = item != null; + if (flag) + { + rowData = XBagDocument.GetEquipConf(item.itemID); + } + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Smelting) && (int)item.itemConf.ReqLevel >= XSingleton.singleton.GetInt("SmeltEquipMinLevel") && xequipItem.randAttrInfo.RandAttr.Count + xequipItem.forgeAttrInfo.ForgeAttr.Count > 0 && rowData != null && rowData.IsCanSmelt; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XSmeltDocument.Doc.SelectEquip(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmelt.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmelt.cs.meta new file mode 100644 index 00000000..b7b28d5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmelt.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: add5dfc724530fa4a9f6388eff9a0246 +timeCreated: 1611404336 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmeltReturn.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmeltReturn.cs new file mode 100644 index 00000000..6805b2cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmeltReturn.cs @@ -0,0 +1,108 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateSmeltReturn : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("SmeltReturn"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_SmeltReturn); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = item == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = item.Type == ItemType.EMBLEM; + if (flag3) + { + XEmblemItem xemblemItem = item as XEmblemItem; + bool bIsSkillEmblem = xemblemItem.bIsSkillEmblem; + if (bIsSkillEmblem) + { + return false; + } + } + result = true; + } + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(mainUID); + bool flag = itemByUID != null; + if (flag) + { + uint num = 0u; + bool flag2 = itemByUID.Type == ItemType.EMBLEM; + if (flag2) + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(itemByUID.itemID); + bool flag3 = emblemConf != null && emblemConf.SmeltNeedItem.count > 0; + if (flag3) + { + num = itemByUID.smeltDegreeNum * emblemConf.SmeltNeedItem[0, 1] * (uint)emblemConf.ReturnSmeltStoneRate / 100u; + } + } + else + { + bool flag4 = itemByUID.Type == ItemType.EQUIP; + if (flag4) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag5 = equipConf != null && equipConf.SmeltNeedItem.count > 0; + if (flag5) + { + num = itemByUID.smeltDegreeNum * equipConf.SmeltNeedItem[0, 1] * (uint)equipConf.ReturnSmeltStoneRate / 100u; + } + } + } + bool flag6 = num == 0u; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("SmeltReturnTips1"), "fece00"); + } + else + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("SmeltReturnTips2"), num), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.SmeltStoneReturn)); + } + } + } + + private bool SmeltStoneReturn(IXUIButton btn) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID != null; + if (flag) + { + XSmeltDocument.Doc.ReqSmeltReturn(itemByUID.uid); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmeltReturn.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmeltReturn.cs.meta new file mode 100644 index 00000000..9480a7fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateSmeltReturn.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: da9f1a6ccfe322040bef386c23a8bcab +timeCreated: 1611404648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOff.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOff.cs new file mode 100644 index 00000000..8bfdf9f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOff.cs @@ -0,0 +1,36 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateTakeOff : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("TAKEOFF"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + bool flag = XSingleton.singleton.bShowTakeOutBtn || XSingleton.singleton.bShowPutInBtn; + return !flag; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(mainUID); + bool flag = itemByUID != null; + if (flag) + { + XSingleton.singleton.Doc.XBagDoc.UseItem(itemByUID, 1u); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOff.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOff.cs.meta new file mode 100644 index 00000000..7c0098de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 231c5a80fc953db419d11f10641c1fdd +timeCreated: 1611403426 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOut.cs b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOut.cs new file mode 100644 index 00000000..6c711883 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOut.cs @@ -0,0 +1,30 @@ +using System; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TooltipButtonOperateTakeOut : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("TakeOut"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + return XSingleton.singleton.bShowTakeOutBtn; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + base.OnButtonClick(mainUID, compareUID); + ArtifactDeityStoveDocument.Doc.TakeOut(mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOut.cs.meta b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOut.cs.meta new file mode 100644 index 00000000..288ca529 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TooltipButtonOperateTakeOut.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cb5ab0e84c9ed545814b669234e0fba +timeCreated: 1611403503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TowerInfo.cs b/Client/Assets/Scripts/XMainClient/TowerInfo.cs new file mode 100644 index 00000000..1d6e2265 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TowerInfo.cs @@ -0,0 +1,166 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TowerInfo + { + public ulong UID; + + public float WarningSqrRadius; + + public ulong TargetUID; + + public XFx Fx; + + public XEntity Entity; + + public XTargetState TargetState; + + public XFxType FxType; + + public bool bInRange; + + public TowerInfo() + { + this.Init(); + } + + public void Init() + { + this.UID = 0UL; + this.WarningSqrRadius = 0f; + this.TargetUID = 0UL; + this.Fx = null; + this.Entity = null; + this.TargetState = XTargetState.TS_NONE; + this.FxType = XFxType.FT_NONE; + this.bInRange = false; + } + + public void Destroy() + { + this._DestroyFx(); + } + + private void _DestroyFx() + { + bool flag = this.Fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.Fx, true); + this.Fx = null; + } + } + + private void _SetDistanceType(float sqrDis) + { + this.bInRange = (sqrDis <= this.WarningSqrRadius); + } + + private void _SetTargetType(ulong playerUID) + { + bool flag = this.TargetUID == 0UL; + if (flag) + { + this.TargetState = XTargetState.TS_NONE; + } + else + { + bool flag2 = this.TargetUID == playerUID; + if (flag2) + { + this.TargetState = XTargetState.TS_ME; + } + else + { + this.TargetState = XTargetState.TS_OTHER; + } + } + } + + private void _SetFx(XFxType newFxType, Vector3 pos) + { + bool flag = newFxType == this.FxType; + if (!flag) + { + this.FxType = newFxType; + this._DestroyFx(); + bool flag2 = this.FxType == XFxType.FT_NONE; + if (!flag2) + { + bool flag3 = XEntity.FilterFx(pos, XFxMgr.FilterFxDis1); + if (!flag3) + { + switch (this.FxType) + { + case XFxType.FT_WARNING: + this.Fx = XSingleton.singleton.CreateFx(XSingleton.singleton.GetValue("MobaTowerFxWarning"), null, true); + break; + case XFxType.FT_OTHER: + this.Fx = XSingleton.singleton.CreateFx(XSingleton.singleton.GetValue("MobaTowerFxOther"), null, true); + break; + case XFxType.FT_ME: + this.Fx = XSingleton.singleton.CreateFx(XSingleton.singleton.GetValue("MobaTowerFxMe"), null, true); + break; + } + bool flag4 = this.Fx != null; + if (flag4) + { + this.Fx.Play(pos, Quaternion.identity, Vector3.one, 1f); + } + } + } + } + } + + private XFxType _GetFxType() + { + bool flag = !this.bInRange; + XFxType result; + if (flag) + { + result = XFxType.FT_NONE; + } + else + { + switch (this.TargetState) + { + case XTargetState.TS_NONE: + result = XFxType.FT_WARNING; + break; + case XTargetState.TS_ME: + result = XFxType.FT_ME; + break; + case XTargetState.TS_OTHER: + result = XFxType.FT_OTHER; + break; + default: + result = XFxType.FT_NONE; + break; + } + } + return result; + } + + public void Update() + { + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + bool flag2 = !XEntity.ValideEntity(this.Entity); + if (!flag2) + { + Vector3 position = this.Entity.MoveObj.Position; + Vector3 position2 = XSingleton.singleton.Player.MoveObj.Position; + float sqrMagnitude = (position - position2).sqrMagnitude; + this._SetDistanceType(sqrMagnitude); + this._SetTargetType(XSingleton.singleton.Player.ID); + XFxType newFxType = this._GetFxType(); + this._SetFx(newFxType, position); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TowerInfo.cs.meta b/Client/Assets/Scripts/XMainClient/TowerInfo.cs.meta new file mode 100644 index 00000000..02016878 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TowerInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc286f2fd0a48af4e9dee60429dfab63 +timeCreated: 1611404934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial.meta b/Client/Assets/Scripts/XMainClient/Tutorial.meta new file mode 100644 index 00000000..00144222 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 8e27d666f93c0534cb2e782901436273 +folderAsset: yes +timeCreated: 1611402942 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command.meta b/Client/Assets/Scripts/XMainClient/Tutorial/Command.meta new file mode 100644 index 00000000..e7aa6f11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: c5e472204f56cd34aa09add81fc53a06 +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandEmpty.cs b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandEmpty.cs new file mode 100644 index 00000000..d33f1585 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandEmpty.cs @@ -0,0 +1,68 @@ +using System; +using UILib; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.Tutorial.Command +{ + internal class XCommandEmpty : XBaseCommand + { + private uint _time = 0u; + + public override bool Execute() + { + this._startTime = Time.time; + bool flag = this._cmd.interalDelay > 0f; + if (flag) + { + base.SetOverlay(); + } + this._time = XSingleton.singleton.SetTimer(this._cmd.interalDelay, new XTimerMgr.ElapsedEventHandler(this.ShowFinger), null); + base.publicModule(); + return true; + } + + protected void ShowFinger(object o) + { + base.SetOverlay(); + base.SetAilin(); + bool flag = string.IsNullOrEmpty(this._cmd.ailinText) && XBaseCommand._Overlay != null; + if (flag) + { + IXUISprite ixuisprite = XBaseCommand._Overlay.transform.Find("Left").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMouseClick)); + } + bool pause = this._cmd.pause; + if (pause) + { + XSingleton.singleton.Pause = true; + } + } + + protected override void OnMouseClick(IXUISprite sp) + { + base.OnMouseClick(sp); + bool flag = string.IsNullOrEmpty(this._cmd.ailinText); + if (flag) + { + XSingleton.singleton.OnCmdFinished(); + } + } + + public override void Stop() + { + bool flag = this._time > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._time); + this._time = 0u; + } + base.DestroyText(); + base.DestroyAilin(); + base.DestroyOverlay(); + XSingleton.singleton.Pause = false; + XSingleton.singleton.NoforceClick = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandEmpty.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandEmpty.cs.meta new file mode 100644 index 00000000..5935b926 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandEmpty.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 093c136e3192d6c4490514b9e2233552 +timeCreated: 1611403152 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs new file mode 100644 index 00000000..7e1ce75a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs @@ -0,0 +1,39 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient.Tutorial.Command +{ + internal class XCommandHideSkills : XBaseCommand + { + public override bool Execute() + { + bool flag = !string.IsNullOrEmpty(this._cmd.param1); + if (flag) + { + this.Hide(int.Parse(this._cmd.param1)); + } + bool flag2 = !string.IsNullOrEmpty(this._cmd.param2); + if (flag2) + { + this.Hide(int.Parse(this._cmd.param2)); + } + bool flag3 = !string.IsNullOrEmpty(this._cmd.param3); + if (flag3) + { + this.Hide(int.Parse(this._cmd.param3)); + } + base.publicModule(); + return true; + } + + private void Hide(int idx) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.DisableSkill(idx); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs.meta new file mode 100644 index 00000000..63b106db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandHideSkills.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e038412c115d2ac4d8e9ec75c25092b7 +timeCreated: 1611404696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs new file mode 100644 index 00000000..7d5bbf98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs @@ -0,0 +1,37 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient.Tutorial.Command +{ + internal class XCommandIsShowButton : XBaseCommand + { + public override bool Execute() + { + bool flag = this._cmd.param1 == null || this._cmd.param2 == null; + bool result; + if (flag) + { + result = false; + } + else + { + int num = int.Parse(this._cmd.param2); + bool flag2 = num == 0; + bool learnSkillButtonState = !flag2; + bool flag3 = this._cmd.param1 == "LearnSkillButton"; + if (flag3) + { + this.SetLearnSkillButtonState(learnSkillButtonState); + } + base.publicModule(); + result = true; + } + return result; + } + + private void SetLearnSkillButtonState(bool state) + { + DlgBase.singleton.SetLearnSkillButtonState(state); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs.meta new file mode 100644 index 00000000..d666a895 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandIsShowButton.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ec22b9731eefe142900fac92e5881bc +timeCreated: 1611404131 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandNote.cs b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandNote.cs new file mode 100644 index 00000000..cc9a2c95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandNote.cs @@ -0,0 +1,167 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.Tutorial.Command +{ + internal class XCommandNote : XBaseCommand + { + private GameObject _finger; + + private int orgWidth; + + private int orgHeight; + + private GameObject _cloneGo; + + private GameObject _clickGo; + + private uint _time = 0u; + + public override bool Execute() + { + Transform transform = XSingleton.singleton.UIRoot.Find(this._cmd.param1 + "(Clone)"); + bool flag = !transform || !transform.gameObject.activeInHierarchy; + bool result; + if (flag) + { + result = false; + } + else + { + Transform transform2 = XSingleton.singleton.FindChild(transform, this._cmd.param2); + bool flag2 = transform2 == null || !transform2.gameObject.activeInHierarchy; + if (flag2) + { + bool flag3 = transform2 == null && this._cmd.isOutError; + if (flag3) + { + this._cmd.isOutError = false; + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TutorialId:", + this._cmd.TutorialID, + " Configuration File Path Error! tag:", + this._cmd.tag, + "\nPath:", + this._cmd.param1, + "(Clone)/", + this._cmd.param2 + }), null, null, null, null, null); + } + result = false; + } + else + { + this._startTime = Time.time; + this._clickGo = transform2.gameObject; + bool flag4 = this._cmd.interalDelay > 0f; + if (flag4) + { + base.SetOverlay(); + } + this._time = XSingleton.singleton.SetTimer(this._cmd.interalDelay, new XTimerMgr.ElapsedEventHandler(this.ShowFinger), null); + base.publicModule(); + result = true; + } + } + return result; + } + + protected void ShowFinger(object o) + { + bool flag = this._finger == null; + if (flag) + { + this._finger = (XSingleton.singleton.CreateFromPrefab("UI/Common/TutorialK", true, false) as GameObject); + } + this._finger.SetActive(false); + string param = this._cmd.param3; + string[] array = param.Split(XGlobalConfig.AllSeparators); + float num = float.Parse(array[0]); + float num2 = (array.Length > 1) ? float.Parse(array[1]) : num; + float num3 = (array.Length > 2) ? float.Parse(array[2]) : 0f; + float num4 = (array.Length > 3) ? float.Parse(array[3]) : 0f; + bool flag2 = num > 0f; + if (flag2) + { + IXUISprite ixuisprite = this._finger.transform.Find("Quan").GetComponent("XUISprite") as IXUISprite; + this.orgWidth = ixuisprite.spriteWidth; + this.orgHeight = ixuisprite.spriteHeight; + ixuisprite.spriteWidth = (int)((float)ixuisprite.spriteWidth * num); + ixuisprite.spriteHeight = (int)((float)ixuisprite.spriteHeight * num2); + ixuisprite.gameObject.transform.localPosition = new Vector3(num3, num4, 0f); + } + base.SetOverlay(); + this._cloneGo = XCommon.Instantiate(this._clickGo); + this.SetupCloneButton(this._clickGo, this._cloneGo); + base.SetTutorialText(this._cmd.textPos, this._cloneGo.transform); + this._finger.SetActive(false); + this._finger.SetActive(true); + base.SetAilin(); + bool pause = this._cmd.pause; + if (pause) + { + XSingleton.singleton.Pause = true; + } + } + + public override void Update() + { + base.Update(); + bool flag = this._cloneGo != null && this._clickGo != null; + if (flag) + { + Vector3 position = this._clickGo.transform.position; + Vector3 localPosition = XBaseCommand._Overlay.transform.InverseTransformPoint(position); + localPosition.z = 0f; + this._cloneGo.transform.localPosition = localPosition; + } + } + + protected void SetupCloneButton(GameObject targetGo, GameObject cloneGo) + { + XSingleton.singleton.AddChild(cloneGo.transform, this._finger.transform); + cloneGo.name = targetGo.name; + cloneGo.transform.parent = XBaseCommand._Overlay.transform; + Vector3 position = targetGo.transform.position; + Vector3 localPosition = XBaseCommand._Overlay.transform.InverseTransformPoint(position); + localPosition.z = 0f; + cloneGo.transform.localPosition = localPosition; + cloneGo.transform.localScale = targetGo.transform.localScale; + } + + public override void Stop() + { + bool flag = this._time > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._time); + this._time = 0u; + } + bool flag2 = this._finger != null; + if (flag2) + { + IXUISprite ixuisprite = this._finger.transform.Find("Quan").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = this.orgWidth; + ixuisprite.spriteHeight = this.orgHeight; + XResourceLoaderMgr.SafeDestroy(ref this._finger, false); + } + base.DestroyText(); + bool flag3 = this._cloneGo != null; + if (flag3) + { + this._cloneGo.transform.parent = null; + UnityEngine.Object.Destroy(this._cloneGo); + this._cloneGo = null; + } + base.DestroyAilin(); + base.DestroyOverlay(); + XSingleton.singleton.Pause = false; + XSingleton.singleton.NoforceClick = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandNote.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandNote.cs.meta new file mode 100644 index 00000000..35d519c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandNote.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6548cb3d77bf324697c4717bb9c063f +timeCreated: 1611404746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs new file mode 100644 index 00000000..eb4a36e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs @@ -0,0 +1,39 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient.Tutorial.Command +{ + internal class XCommandShowSkills : XBaseCommand + { + public override bool Execute() + { + bool flag = !string.IsNullOrEmpty(this._cmd.param1); + if (flag) + { + this.Show(int.Parse(this._cmd.param1)); + } + bool flag2 = !string.IsNullOrEmpty(this._cmd.param2); + if (flag2) + { + this.Show(int.Parse(this._cmd.param2)); + } + bool flag3 = !string.IsNullOrEmpty(this._cmd.param3); + if (flag3) + { + this.Show(int.Parse(this._cmd.param3)); + } + base.publicModule(); + return true; + } + + private void Show(int idx) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.EnableSkill(idx); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs.meta new file mode 100644 index 00000000..d2b63682 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/Command/XCommandShowSkills.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2cdcb4267af24843b241db51ef82ece +timeCreated: 1611404729 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmd.cs b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmd.cs new file mode 100644 index 00000000..85f427a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmd.cs @@ -0,0 +1,81 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +namespace XMainClient +{ + internal class XTutorialCmd + { + public int TutorialID; + + public int step; + + public string tag; + + public int mainTutorialBit; + + public List conditions; + + public List condParams; + + public XTutorialCmdFinishCondition endcondition; + + public List endParam; + + public string cmd; + + public string param1; + + public string param2; + + public string param3; + + public string param4; + + public string param5; + + public string param6; + + public XCmdState state; + + public string text; + + public Vector3 textPos; + + public bool pause; + + public float interalDelay; + + public string ailinText; + + public int ailinPos; + + public string ailinText2; + + public string buttomtext; + + public string audio; + + public string scroll; + + public int scrollPos; + + public string skipCondition; + + public string skipParam1; + + public string skipParam2; + + public string skipParam3; + + public string function; + + public string functionparam1; + + public bool bLastCmdInQueue; + + public bool isOutError; + + public bool isCanDestroyOverlay; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmd.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmd.cs.meta new file mode 100644 index 00000000..1e969a1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88b2842e5da2d1c469beb929e4faa836 +timeCreated: 1611404085 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecuteCondition.cs b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecuteCondition.cs new file mode 100644 index 00000000..5e3182d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecuteCondition.cs @@ -0,0 +1,40 @@ +using System; + +namespace XMainClient +{ + internal enum XTutorialCmdExecuteCondition + { + No_Condition, + Player_Level, + In_Level, + After_Level, + Musou_Above, + Cast_Skill, + External_String, + Talk_Npc, + Can_Accept_Task, + Can_Finish_Task, + Task_Over, + Task_Battle, + Task_Scene_Finish, + Time_Delay, + Sys_Notify, + Meet_Enemy, + Art_Skill, + Cutscene_Over, + Get_Focused, + No_SuperAmor, + Boss_Exist, + Enemy_OnGround, + No_Promote, + Team2, + Has_Target, + MainUI, + Has_Item, + Has_Body, + No_Stackui, + Activity_Open, + Dragon_Crusade_Open, + Battle_NPC_Talk_End + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecuteCondition.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecuteCondition.cs.meta new file mode 100644 index 00000000..9c265049 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecuteCondition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d051e9822a39534a933a578f33bef6d +timeCreated: 1611404102 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecutor.cs b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecutor.cs new file mode 100644 index 00000000..ddc5a61e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecutor.cs @@ -0,0 +1,1276 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.Tutorial.Command; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTutorialCmdExecutor + { + private XBaseCommand _command; + + public float _lastCmdFinishTime = 0f; + + private XCommandForceClick _forceCmd = new XCommandForceClick(); + + private XCommandCutscene _cutsceneCmd = new XCommandCutscene(); + + private XCommandExec _execCmd = new XCommandExec(); + + private XCommandForceSlide _forceSlideCmd = new XCommandForceSlide(); + + private XCommandGenericClick _genericClickCmd = new XCommandGenericClick(); + + private XCommandNewIcon _newIconCmd = new XCommandNewIcon(); + + private XCommandDirectSys _newDirectSys = new XCommandDirectSys(); + + private XCommandNoforceClick _noforceClickCmd = new XCommandNoforceClick(); + + private XCommandPureText _pureTextCmd = new XCommandPureText(); + + private XCommandMove _moveCmd = new XCommandMove(); + + private XCommandForceSkill _skillCmd = new XCommandForceSkill(); + + private XCommandPureOverlay _overlayCmd = new XCommandPureOverlay(); + + private XCommandPrefab _prefabCmd = new XCommandPrefab(); + + private XCommandNote _noteCmd = new XCommandNote(); + + private XCommandHideSkills _hideskillCmd = new XCommandHideSkills(); + + private XCommandShowSkills _showskillCmd = new XCommandShowSkills(); + + private XCommandIsShowButton _isshowbuttonCmd = new XCommandIsShowButton(); + + private XCommandClickEntity _clickEntityCmd = new XCommandClickEntity(); + + private XCommandEmpty _emptyCmd = new XCommandEmpty(); + + public void ExecuteCmd(ref XTutorialCmd Cmd) + { + this.ResetRelativeFlag(); + bool flag = this.IsSkip(Cmd); + if (flag) + { + bool flag2 = Cmd.skipParam1 != null && int.Parse(Cmd.skipParam1) != 0; + if (flag2) + { + XSingleton.singleton.SkipCurrentTutorial(false); + } + else + { + Cmd.state = XCmdState.Cmd_Finished; + XSingleton.singleton.AddLog("Skip Tutorial:" + Cmd.tag, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + else + { + bool flag3 = Cmd.cmd == "forceclick"; + if (flag3) + { + this._command = this._forceCmd; + this._command.SetCommand(Cmd); + bool flag4 = this._command.Execute(); + if (flag4) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag5 = Cmd.cmd == "forceskill"; + if (flag5) + { + this._command = this._skillCmd; + this._command.SetCommand(Cmd); + bool flag6 = this._command.Execute(); + if (flag6) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag7 = Cmd.cmd == "noforceclick"; + if (flag7) + { + this._command = this._noforceClickCmd; + this._command.SetCommand(Cmd); + bool flag8 = this._command.Execute(); + if (flag8) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag9 = Cmd.cmd == "forceslide"; + if (flag9) + { + this._command = this._forceSlideCmd; + this._command.SetCommand(Cmd); + bool flag10 = this._command.Execute(); + if (flag10) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag11 = Cmd.cmd == "movetutorial"; + if (flag11) + { + this._command = this._moveCmd; + this._command.SetCommand(Cmd); + bool flag12 = this._command.Execute(); + if (flag12) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag13 = Cmd.cmd == "newsys"; + if (flag13) + { + this._command = this._newIconCmd; + this._command.SetCommand(Cmd); + bool flag14 = this._command.Execute(); + if (flag14) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag15 = Cmd.cmd == "directsys"; + if (flag15) + { + this._command = this._newDirectSys; + this._command.SetCommand(Cmd); + bool flag16 = this._command.Execute(); + if (flag16) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + XSingleton.singleton.OnCmdFinished(); + } + else + { + bool flag17 = Cmd.cmd == "clickentity"; + if (flag17) + { + this._command = this._clickEntityCmd; + this._command.SetCommand(Cmd); + bool flag18 = this._command.Execute(); + if (flag18) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag19 = Cmd.cmd == "cutscene"; + if (flag19) + { + this._command = this._cutsceneCmd; + this._command.SetCommand(Cmd); + bool flag20 = this._command.Execute(); + if (flag20) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag21 = Cmd.cmd == "exec"; + if (flag21) + { + this._command = this._execCmd; + this._command.SetCommand(Cmd); + bool flag22 = this._command.Execute(); + if (flag22) + { + Cmd.state = XCmdState.Cmd_Finished; + } + } + else + { + bool flag23 = Cmd.cmd == "puretext"; + if (flag23) + { + this._command = this._pureTextCmd; + this._command.SetCommand(Cmd); + bool flag24 = this._command.Execute(); + if (flag24) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag25 = Cmd.cmd == "overlay"; + if (flag25) + { + this._command = this._overlayCmd; + this._command.SetCommand(Cmd); + bool flag26 = this._command.Execute(); + if (flag26) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag27 = Cmd.cmd == "genericclick"; + if (flag27) + { + this._command = this._genericClickCmd; + this._command.SetCommand(Cmd); + bool flag28 = this._command.Execute(); + if (flag28) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag29 = Cmd.cmd == "showprefab"; + if (flag29) + { + this._command = this._prefabCmd; + this._command.SetCommand(Cmd); + bool flag30 = this._command.Execute(); + if (flag30) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag31 = Cmd.cmd == "notewindow"; + if (flag31) + { + this._command = this._noteCmd; + this._command.SetCommand(Cmd); + bool flag32 = this._command.Execute(); + if (flag32) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + else + { + bool flag33 = Cmd.cmd == "hideskills"; + if (flag33) + { + this._command = this._hideskillCmd; + this._command.SetCommand(Cmd); + bool flag34 = this._command.Execute(); + if (flag34) + { + Cmd.state = XCmdState.Cmd_Finished; + } + } + else + { + bool flag35 = Cmd.cmd == "showskills"; + if (flag35) + { + this._command = this._showskillCmd; + this._command.SetCommand(Cmd); + bool flag36 = this._command.Execute(); + if (flag36) + { + Cmd.state = XCmdState.Cmd_Finished; + } + } + else + { + bool flag37 = Cmd.cmd == "showbutton"; + if (flag37) + { + this._command = this._isshowbuttonCmd; + this._command.SetCommand(Cmd); + bool flag38 = this._command.Execute(); + if (flag38) + { + Cmd.state = XCmdState.Cmd_Finished; + } + } + else + { + bool flag39 = Cmd.cmd == "empty"; + if (flag39) + { + this._command = this._emptyCmd; + this._command.SetCommand(Cmd); + bool flag40 = this._command.Execute(); + if (flag40) + { + Cmd.state = XCmdState.Cmd_In_Process; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + + public void UpdateCmd(ref XTutorialCmd Cmd) + { + this._command.Update(); + bool flag = this.CanCmdFinish(Cmd); + if (flag) + { + XSingleton.singleton.OnCmdFinished(); + } + } + + public void StopCmd() + { + this._command.Stop(); + } + + public void OnCmdFinish(ref XTutorialCmd Cmd) + { + this._command.OnFinish(); + Cmd.state = XCmdState.Cmd_Finished; + this._lastCmdFinishTime = Time.time; + } + + private bool ConditionSatisified(List conds, List param) + { + bool flag = true; + for (int i = 0; i < conds.Count; i++) + { + switch (conds[i]) + { + case XTutorialCmdExecuteCondition.Player_Level: + { + bool flag2 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)int.Parse(param[i])); + if (flag2) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.In_Level: + { + uint sceneID = XSingleton.singleton.SceneID; + bool flag3 = sceneID != (uint)int.Parse(param[i]); + if (flag3) + { + flag = false; + } + else + { + bool flag4 = sceneID == 1u; + if (flag4) + { + bool flag5 = !DlgBase.singleton.IsVisible(); + if (flag5) + { + flag = false; + } + } + } + break; + } + case XTutorialCmdExecuteCondition.After_Level: + { + uint lastFinishScene = XSingleton.singleton.LastFinishScene; + bool flag6 = lastFinishScene != (uint)int.Parse(param[i]); + if (flag6) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Cast_Skill: + { + bool flag7 = XSingleton.singleton.Boss == null || !XSingleton.singleton.Boss.Skill.IsCasting() || XSingleton.singleton.Boss.Skill.CurrentSkill.MainCore.ID != XSingleton.singleton.XHash(param[i]); + if (flag7) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.External_String: + { + bool flag8 = !XSingleton.singleton.QueryExternalString(param[i], false); + if (flag8) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Talk_Npc: + { + bool flag9 = !DlgBase.singleton.IsVisible(); + if (flag9) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Can_Accept_Task: + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + int num = int.Parse(param[i]); + bool flag10 = false; + for (int j = 0; j < specificDocument.TaskRecord.Tasks.Count; j++) + { + XTaskInfo xtaskInfo = specificDocument.TaskRecord.Tasks[j]; + bool flag11 = xtaskInfo != null && (ulong)xtaskInfo.ID == (ulong)((long)num); + if (flag11) + { + flag10 = true; + bool flag12 = xtaskInfo.Status != TaskStatus.TaskStatus_CanTake || !DlgBase.singleton.IsVisible(); + if (flag12) + { + flag = false; + } + break; + } + } + bool flag13 = !flag10; + if (flag13) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Can_Finish_Task: + case XTutorialCmdExecuteCondition.Task_Scene_Finish: + { + XTaskDocument specificDocument2 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + int num2 = int.Parse(param[i]); + bool flag14 = false; + for (int k = 0; k < specificDocument2.TaskRecord.Tasks.Count; k++) + { + XTaskInfo xtaskInfo2 = specificDocument2.TaskRecord.Tasks[k]; + bool flag15 = xtaskInfo2 != null && (ulong)xtaskInfo2.ID == (ulong)((long)num2); + if (flag15) + { + flag14 = true; + bool flag16 = xtaskInfo2.Status != TaskStatus.TaskStatus_Finish || !DlgBase.singleton.IsVisible(); + if (flag16) + { + flag = false; + } + break; + } + } + bool flag17 = !flag14; + if (flag17) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Task_Over: + { + XTaskDocument specificDocument3 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + uint taskid = uint.Parse(param[i]); + flag = specificDocument3.TaskRecord.IsTaskFinished(taskid); + break; + } + case XTutorialCmdExecuteCondition.Task_Battle: + { + XTaskDocument specificDocument4 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + uint num3 = uint.Parse(param[i]); + bool flag18 = false; + for (int l = 0; l < specificDocument4.TaskRecord.Tasks.Count; l++) + { + XTaskInfo xtaskInfo3 = specificDocument4.TaskRecord.Tasks[l]; + TaskTableNew.RowData tableData = xtaskInfo3.TableData; + uint sceneID2 = XTaskDocument.GetSceneID(ref tableData.PassScene); + uint sceneID3 = XTaskDocument.GetSceneID(ref tableData.TaskScene); + bool flag19 = xtaskInfo3 != null && (sceneID2 == num3 || sceneID3 == num3); + if (flag19) + { + flag18 = true; + bool flag20 = xtaskInfo3.Status != TaskStatus.TaskStatus_Taked || !DlgBase.singleton.IsVisible(); + if (flag20) + { + flag = false; + } + break; + } + } + bool flag21 = !flag18; + if (flag21) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Time_Delay: + { + float num4 = float.Parse(param[i]); + bool flag22 = num4 > 0f && Time.time - this._lastCmdFinishTime < num4; + if (flag22) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Sys_Notify: + { + bool flag23 = flag; + bool flag24 = !XSingleton.singleton.QueryExternalString("OpenSys" + param[i], false); + if (flag24) + { + flag = false; + } + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag25 = xplayerData.IsSystemOpened(uint.Parse(param[i])); + if (flag25) + { + flag = flag23; + } + break; + } + case XTutorialCmdExecuteCondition.Meet_Enemy: + { + bool flag26 = !XSingleton.singleton.MeetEnemy; + if (flag26) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Art_Skill: + { + bool flag27 = !XSingleton.singleton.ArtSkillOver; + if (flag27) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Cutscene_Over: + { + bool isPlaying = XSingleton.singleton.IsPlaying; + if (isPlaying) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Get_Focused: + { + bool flag28 = XSingleton.singleton.Boss == null || !XSingleton.singleton.Boss.Skill.IsCasting(); + if (flag28) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.No_SuperAmor: + { + XBoss boss = XSingleton.singleton.Boss; + bool flag29 = boss == null; + if (flag29) + { + flag = false; + } + else + { + List enemyList = DlgBase.singleton.EnemyInfoHandler.EnemyList; + double num5 = 0.0; + bool flag30 = enemyList.Count > 0; + if (flag30) + { + num5 = (double)enemyList[0].m_uiSuperArmor.value; + } + bool flag31 = num5 > 0.0; + if (flag31) + { + flag = false; + } + } + break; + } + case XTutorialCmdExecuteCondition.Boss_Exist: + { + bool flag32 = !XSingleton.singleton.HasBoss; + if (flag32) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Enemy_OnGround: + { + bool flag33 = !XSingleton.singleton.HitDownOnGround; + if (flag33) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.No_Promote: + { + bool flag34 = XSingleton.singleton.Player.TypeID >= 10u; + if (flag34) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Team2: + { + XTeamDocument specificDocument5 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag35 = !specificDocument5.bInTeam || specificDocument5.MyTeam.members.Count <= 1; + if (flag35) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Has_Target: + { + bool flag36 = !XSingleton.singleton.HasTarget; + if (flag36) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.MainUI: + { + bool flag37 = XSingleton.singleton.IsUIShowed() || XSingleton.singleton.IsHideTutorial(); + if (flag37) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Has_Item: + { + string[] array = param[i].Split(XGlobalConfig.SequenceSeparator); + int num6 = int.Parse(array[0]); + int num7 = int.Parse(array[1]); + num6 = XBagDocument.ConvertTemplate(num6); + XBagDocument specificDocument6 = XDocuments.GetSpecificDocument(XBagDocument.uuID); + int num8 = (int)specificDocument6.GetItemCount(num6); + XFashionDocument specificDocument7 = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag38 = specificDocument7.OwnFashion(num6); + if (flag38) + { + num8++; + } + bool flag39 = num8 < num7; + if (flag39) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Has_Body: + { + XBagDocument specificDocument8 = XDocuments.GetSpecificDocument(XBagDocument.uuID); + XItem xitem = null; + string[] array2 = param[i].Split(XGlobalConfig.SequenceSeparator); + string a = array2[0]; + int num9 = 0; + bool flag40 = array2.Length > 1; + if (flag40) + { + num9 = int.Parse(array2[1]); + } + XJadeDocument specificDocument9 = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + int num10 = 0; + bool flag41 = a == "boots"; + if (flag41) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Boots); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag42 = a == "earrings"; + if (flag42) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Earrings); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag43 = a == "gloves"; + if (flag43) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Gloves); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag44 = a == "headgear"; + if (flag44) + { + num10 = XBagDocument.BodyPosition(EquipPosition.EQUIP_START); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag45 = a == "lowerbody"; + if (flag45) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Lowerbody); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag46 = a == "mainweapon"; + if (flag46) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Mainweapon); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag47 = a == "necklace"; + if (flag47) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Necklace); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag48 = a == "rings"; + if (flag48) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Rings); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag49 = a == "secondaryweapon"; + if (flag49) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Secondaryweapon); + xitem = specificDocument8.EquipBag[num10]; + } + else + { + bool flag50 = a == "upperbody"; + if (flag50) + { + num10 = XBagDocument.BodyPosition(EquipPosition.Upperbody); + xitem = specificDocument8.EquipBag[num10]; + } + } + } + } + } + } + } + } + } + } + bool flag51 = num9 == 0; + if (flag51) + { + bool flag52 = xitem == null || xitem.itemID == 0; + if (flag52) + { + flag = false; + } + } + else + { + bool flag53 = !specificDocument9.HasRedPoint(num10); + if (flag53) + { + flag = false; + } + } + break; + } + case XTutorialCmdExecuteCondition.No_Stackui: + { + bool flag54 = XSingleton.singleton.IsUIShowed() || XSingleton.singleton.IsHideTutorial(); + if (flag54) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Activity_Open: + { + bool flag55 = !XSingleton.singleton.ActivityOpen; + if (flag55) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Dragon_Crusade_Open: + { + bool flag56 = !XSingleton.singleton.DragonCrusadeOpen; + if (flag56) + { + flag = false; + } + break; + } + case XTutorialCmdExecuteCondition.Battle_NPC_Talk_End: + { + bool flag57 = !XSingleton.singleton.BattleNPCTalkEnd; + if (flag57) + { + flag = false; + } + break; + } + } + bool flag58 = !flag; + if (flag58) + { + break; + } + } + return flag; + } + + public bool CanTutorialExecute(XTutorialMainCmd tutorial) + { + return this.ConditionSatisified(tutorial.conditions, tutorial.condParams); + } + + public bool CanCmdExecute(XTutorialCmd cmd) + { + bool flag = cmd.state == XCmdState.Cmd_In_Process || cmd.state == XCmdState.Cmd_Finished; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.ConditionSatisified(cmd.conditions, cmd.condParams); + bool flag3 = flag2; + if (flag3) + { + for (int i = 0; i < cmd.conditions.Count; i++) + { + XTutorialCmdExecuteCondition xtutorialCmdExecuteCondition = cmd.conditions[i]; + if (xtutorialCmdExecuteCondition != XTutorialCmdExecuteCondition.External_String) + { + if (xtutorialCmdExecuteCondition == XTutorialCmdExecuteCondition.Sys_Notify) + { + XSingleton.singleton.QueryExternalString("OpenSys" + cmd.condParams[i], true); + } + } + else + { + XSingleton.singleton.QueryExternalString(cmd.condParams[i], true); + } + } + result = true; + } + else + { + result = false; + } + } + return result; + } + + public bool CanCmdFinish(XTutorialCmd cmd) + { + bool flag = cmd.state != XCmdState.Cmd_In_Process; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = cmd.endcondition == XTutorialCmdFinishCondition.No_Condition; + if (flag2) + { + result = false; + } + else + { + bool flag3 = false; + switch (cmd.endcondition) + { + case XTutorialCmdFinishCondition.Time: + { + float time = Time.time; + float num = (cmd.endParam.Count > 0) ? float.Parse(cmd.endParam[0]) : 3f; + bool flag4 = time - this._command._startTime > num; + if (flag4) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.TalkingNpc: + { + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.WorldMap: + { + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.SkillLevelup: + { + bool skillLevelup = XSingleton.singleton.SkillLevelup; + if (skillLevelup) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.SkillBind: + { + bool skillBind = XSingleton.singleton.SkillBind; + if (skillBind) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.UseItem: + { + bool useItem = XSingleton.singleton.UseItem; + if (useItem) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.SysOpened: + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag7 = xplayerData.IsSystemOpened(uint.Parse(cmd.param1)); + if (flag7) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.GetReward: + { + bool getReward = XSingleton.singleton.GetReward; + if (getReward) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.Move: + { + bool moved = XSingleton.singleton.Moved; + if (moved) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.ComposeFashion: + { + bool fashionCompose = XSingleton.singleton.FashionCompose; + if (fashionCompose) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.ReinforceItem: + { + bool reinforceItem = XSingleton.singleton.ReinforceItem; + if (reinforceItem) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.EnhanceItem: + { + bool enhanceItem = XSingleton.singleton.EnhanceItem; + if (enhanceItem) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.ChangeProf: + { + bool switchProf = XSingleton.singleton.SwitchProf; + if (switchProf) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.HasTeam: + { + bool hasTeam = XSingleton.singleton.HasTeam; + if (hasTeam) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.Smelting: + { + bool smelting = XSingleton.singleton.Smelting; + if (smelting) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.SelectView: + { + bool selectView = XSingleton.singleton.SelectView; + if (selectView) + { + flag3 = true; + } + break; + } + case XTutorialCmdFinishCondition.SelectSkipTutorial: + { + bool selectSkipTutorial = XSingleton.singleton.SelectSkipTutorial; + if (selectSkipTutorial) + { + flag3 = true; + } + break; + } + } + bool flag8 = flag3; + result = flag8; + } + } + return result; + } + + private bool IsSkip(XTutorialCmd cmd) + { + string skipCondition = cmd.skipCondition; + bool flag = string.IsNullOrEmpty(skipCondition); + bool result; + if (flag) + { + result = false; + } + else + { + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + bool flag2 = false; + string text = skipCondition; + uint num = PrivateImplementationDetails.ComputeStringHash(text); + if (num <= 2100011009u) + { + if (num <= 985216048u) + { + if (num != 153474289u) + { + if (num != 461464819u) + { + if (num == 985216048u) + { + if (text == "MenuBtnInState2") + { + flag2 = !DlgBase.singleton.MenuSwitchBtnState; + } + } + } + else if (text == "ModalDlg") + { + flag2 = !DlgBase.singleton.IsVisible(); + } + } + else if (text == "NoLearnSkill") + { + bool flag3 = cmd.skipParam2 == null || cmd.skipParam3 == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TutorialId:", + cmd.TutorialID, + " Error\ntag:", + cmd.tag, + " Command:LearnSkill Param Num Error" + }), null, null, null, null, null); + } + flag2 = specificDocument.isTutorialNeed(int.Parse(cmd.skipParam2), int.Parse(cmd.skipParam3)); + } + } + else if (num <= 2057789062u) + { + if (num != 1035548905u) + { + if (num == 2057789062u) + { + if (text == "LearnSkill") + { + bool flag4 = cmd.skipParam2 == null || cmd.skipParam3 == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TutorialId:", + cmd.TutorialID, + " Error\ntag:", + cmd.tag, + " Command:LearnSkill Param Num Error" + }), null, null, null, null, null); + } + flag2 = !specificDocument.isTutorialNeed(int.Parse(cmd.skipParam2), int.Parse(cmd.skipParam3)); + } + } + } + else if (text == "MenuBtnInState1") + { + flag2 = DlgBase.singleton.MenuSwitchBtnState; + } + } + else if (num != 2090134647u) + { + if (num == 2100011009u) + { + if (text == "HasTaskTab") + { + flag2 = DlgBase.singleton._TaskNaviHandler._TaskSwitchBtnState; + } + } + } + else if (text == "SelectSight2.5D") + { + XOptionsDocument specificDocument2 = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + flag2 = (specificDocument2.GetValue(XOptionsDefine.OD_VIEW) == XFastEnumIntEqualityComparer.ToInt(XOperationMode.X25D)); + } + } + else if (num <= 2995591070u) + { + if (num != 2352948218u) + { + if (num != 2805484350u) + { + if (num == 2995591070u) + { + if (text == "InTeamTab") + { + flag2 = !DlgBase.singleton._TaskNaviHandler.IsShowingTaskTab; + } + } + } + else if (text == "PPTLess") + { + bool flag5 = cmd.skipParam2 == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TutorialId:", + cmd.TutorialID, + " Error\ntag:", + cmd.tag, + " Command:PPTLess Param Num Error" + }), null, null, null, null, null); + } + flag2 = (XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Total) < (double)int.Parse(cmd.skipParam2)); + } + } + else if (text == "InTaskTab") + { + flag2 = DlgBase.singleton._TaskNaviHandler.IsShowingTaskTab; + } + } + else if (num <= 3972437787u) + { + if (num != 3566417125u) + { + if (num == 3972437787u) + { + if (text == "RadioNoCanOpen") + { + XRadioDocument specificDocument3 = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + XOptionsDocument specificDocument4 = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + flag2 = (specificDocument3.roomState == XRadioDocument.BigRoomState.InRoom || specificDocument4.GetValue(XOptionsDefine.OD_RADIO) == 0); + } + } + } + else if (text == "CurSkillNoLearn") + { + flag2 = !specificDocument.CheckLevelUpButton(); + } + } + else if (num != 4122175948u) + { + if (num == 4247367664u) + { + if (text == "Chapter1Star8Box") + { + flag2 = XSingleton.singleton.HasChapterBoxFetched(1, 0); + } + } + } + else if (text == "ProfessionNo1Turn") + { + flag2 = (XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession) < 10); + } + result = flag2; + } + return result; + } + + public void ResetRelativeFlag() + { + XSingleton.singleton.SkillLevelup = false; + XSingleton.singleton.SkillBind = false; + XSingleton.singleton.UseItem = false; + XSingleton.singleton.GetReward = false; + XSingleton.singleton.FashionCompose = false; + XSingleton.singleton.ReinforceItem = false; + XSingleton.singleton.EnhanceItem = false; + XSingleton.singleton.SwitchProf = false; + XSingleton.singleton.MeetEnemy = false; + XSingleton.singleton.HasTeam = false; + XSingleton.singleton.Smelting = false; + XSingleton.singleton.HitDownOnGround = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecutor.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecutor.cs.meta new file mode 100644 index 00000000..b2d377c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdExecutor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0755b35cdae19cd42b9f5c13c230be66 +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdFinishCondition.cs b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdFinishCondition.cs new file mode 100644 index 00000000..f4e9af5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdFinishCondition.cs @@ -0,0 +1,27 @@ +using System; + +namespace XMainClient +{ + internal enum XTutorialCmdFinishCondition + { + No_Condition, + Click, + Time, + TalkingNpc, + WorldMap, + SkillLevelup, + SkillBind, + UseItem, + SysOpened, + GetReward, + Move, + ComposeFashion, + ReinforceItem, + EnhanceItem, + ChangeProf, + HasTeam, + Smelting, + SelectView, + SelectSkipTutorial + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdFinishCondition.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdFinishCondition.cs.meta new file mode 100644 index 00000000..6de6b04d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdFinishCondition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33d5bfe80659d8a48b0a41883a091258 +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdParser.cs b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdParser.cs new file mode 100644 index 00000000..1c71d0fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdParser.cs @@ -0,0 +1,962 @@ +using System; +using System.Collections.Generic; +using System.IO; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTutorialCmdParser + { + private XTutorialCmd _parseTmpCmd; + + private string[] _validateCmd = new string[] + { + "forceclick", + "newsys", + "exec", + "forceslide", + "noforceclick", + "noforceslide", + "forcedoubleclick", + "puretext", + "genericclick", + "cutscene", + "directsys", + "movetutorial", + "forceskill", + "overlay", + "showprefab", + "notewindow", + "hideskills", + "showskills", + "showbutton", + "clickentity", + "empty" + }; + + public bool Parse(string file, int initStep, ref Queue cmdQueue, int execStep) + { + Stream stream = XSingleton.singleton.ReadText(file, ".txt", true); + StreamReader streamReader = new StreamReader(stream); + string text = streamReader.ReadLine(); + int num = 1; + int num2 = 0; + XTutorialCmd xtutorialCmd = null; + bool flag = execStep <= 0; + for (;;) + { + text = streamReader.ReadLine(); + num++; + bool flag2 = text.StartsWith("end tutorial"); + if (flag2) + { + break; + } + bool flag3 = text.Length == 0; + if (!flag3) + { + bool flag4 = text.StartsWith("--"); + if (!flag4) + { + string[] array = text.Split(XGlobalConfig.TabSeparator, StringSplitOptions.RemoveEmptyEntries); + bool flag5 = false; + bool flag6 = text.StartsWith("step"); + if (flag6) + { + num2++; + bool flag7 = num2 <= initStep; + if (flag7) + { + continue; + } + this._parseTmpCmd = new XTutorialCmd(); + this._parseTmpCmd.mainTutorialBit = execStep; + bool flag8 = flag; + if (flag8) + { + this._parseTmpCmd.step = num2; + } + else + { + this._parseTmpCmd.step = -1; + } + bool flag9 = array.Length > 1; + if (flag9) + { + this._parseTmpCmd.tag = array[1]; + } + else + { + this._parseTmpCmd.tag = "NULL"; + } + this._parseTmpCmd.conditions = new List(); + this._parseTmpCmd.condParams = new List(); + this._parseTmpCmd.endParam = new List(); + this._parseTmpCmd.endcondition = XTutorialCmdFinishCondition.No_Condition; + this._parseTmpCmd.state = XCmdState.Cmd_In_Queue; + this._parseTmpCmd.bLastCmdInQueue = false; + this._parseTmpCmd.isOutError = true; + this._parseTmpCmd.TutorialID = execStep; + this._parseTmpCmd.isCanDestroyOverlay = true; + flag5 = true; + } + else + { + bool flag10 = text.StartsWith("scond"); + if (flag10) + { + bool flag11 = this._parseTmpCmd != null; + if (flag11) + { + bool flag12 = array.Length > 1; + if (flag12) + { + this._parseTmpCmd.conditions.Add(this.Str2Condition(array[1])); + } + bool flag13 = array.Length > 2; + if (flag13) + { + this._parseTmpCmd.condParams.Add(array[2]); + } + else + { + this._parseTmpCmd.condParams.Add("null"); + } + } + flag5 = true; + } + else + { + bool flag14 = text.StartsWith("econd"); + if (flag14) + { + bool flag15 = this._parseTmpCmd != null; + if (flag15) + { + bool flag16 = array.Length > 1; + if (flag16) + { + this._parseTmpCmd.endcondition = this.Str2EndCondition(array[1]); + } + bool flag17 = array.Length > 2; + if (flag17) + { + this._parseTmpCmd.endParam.Add(array[2]); + } + } + flag5 = true; + } + else + { + bool flag18 = text.StartsWith("text"); + if (flag18) + { + bool flag19 = this._parseTmpCmd != null; + if (flag19) + { + bool flag20 = array.Length > 1; + if (flag20) + { + this._parseTmpCmd.text = array[1]; + } + bool flag21 = array.Length > 3; + if (flag21) + { + this._parseTmpCmd.textPos = new Vector3((float)int.Parse(array[2]), (float)int.Parse(array[3])); + } + else + { + bool flag22 = array.Length > 2; + if (flag22) + { + this._parseTmpCmd.textPos = new Vector3((float)int.Parse(array[2]), 0f); + } + } + } + flag5 = true; + } + else + { + bool flag23 = text.StartsWith("internaldelay"); + if (flag23) + { + bool flag24 = this._parseTmpCmd != null; + if (flag24) + { + bool flag25 = array.Length > 1; + if (flag25) + { + this._parseTmpCmd.interalDelay = float.Parse(array[1]); + } + } + flag5 = true; + } + else + { + bool flag26 = text.StartsWith("ailin"); + if (flag26) + { + bool flag27 = this._parseTmpCmd != null; + if (flag27) + { + bool flag28 = array.Length > 1; + if (flag28) + { + this._parseTmpCmd.ailinText = array[1]; + } + bool flag29 = array.Length > 2; + if (flag29) + { + this._parseTmpCmd.ailinPos = int.Parse(array[2]); + } + bool flag30 = array.Length > 3; + if (flag30) + { + this._parseTmpCmd.ailinText2 = array[3]; + } + } + flag5 = true; + } + else + { + bool flag31 = text.StartsWith("buttomtext"); + if (flag31) + { + bool flag32 = this._parseTmpCmd != null; + if (flag32) + { + bool flag33 = array.Length > 1; + if (flag33) + { + this._parseTmpCmd.buttomtext = array[1]; + } + } + flag5 = true; + } + else + { + bool flag34 = text.StartsWith("pause"); + if (flag34) + { + bool flag35 = this._parseTmpCmd != null; + if (flag35) + { + this._parseTmpCmd.pause = true; + } + flag5 = true; + } + else + { + bool flag36 = text.StartsWith("audio"); + if (flag36) + { + bool flag37 = this._parseTmpCmd != null; + if (flag37) + { + bool flag38 = array.Length > 1; + if (flag38) + { + this._parseTmpCmd.audio = array[1]; + } + } + flag5 = true; + } + else + { + bool flag39 = text.StartsWith("skip"); + if (flag39) + { + bool flag40 = this._parseTmpCmd != null; + if (flag40) + { + bool flag41 = array.Length > 1; + if (flag41) + { + this._parseTmpCmd.skipCondition = array[1]; + } + bool flag42 = array.Length > 2; + if (flag42) + { + this._parseTmpCmd.skipParam1 = array[2]; + } + bool flag43 = array.Length > 3; + if (flag43) + { + this._parseTmpCmd.skipParam2 = array[3]; + } + bool flag44 = array.Length > 4; + if (flag44) + { + this._parseTmpCmd.skipParam3 = array[4]; + } + } + flag5 = true; + } + else + { + bool flag45 = text.StartsWith("scroll"); + if (flag45) + { + bool flag46 = this._parseTmpCmd != null; + if (flag46) + { + bool flag47 = array.Length > 1; + if (flag47) + { + this._parseTmpCmd.scroll = array[1]; + } + bool flag48 = array.Length > 2; + if (flag48) + { + this._parseTmpCmd.scrollPos = int.Parse(array[2]); + } + } + flag5 = true; + } + else + { + bool flag49 = text.StartsWith("function"); + if (flag49) + { + bool flag50 = this._parseTmpCmd != null; + if (flag50) + { + bool flag51 = array.Length > 1; + if (flag51) + { + this._parseTmpCmd.function = array[1]; + } + bool flag52 = array.Length > 2; + if (flag52) + { + this._parseTmpCmd.functionparam1 = array[2]; + } + } + flag5 = true; + } + else + { + bool flag53 = text.StartsWith("nodestroyoverlay"); + if (flag53) + { + this._parseTmpCmd.isCanDestroyOverlay = false; + flag5 = true; + } + else + { + bool flag54 = this._parseTmpCmd != null; + if (flag54) + { + for (int i = 0; i < this._validateCmd.Length; i++) + { + bool flag55 = array[0] == this._validateCmd[i]; + if (flag55) + { + this._parseTmpCmd.cmd = array[0]; + bool flag56 = array.Length > 1; + if (flag56) + { + this._parseTmpCmd.param1 = array[1]; + } + bool flag57 = array.Length > 2; + if (flag57) + { + this._parseTmpCmd.param2 = array[2]; + } + bool flag58 = array.Length > 3; + if (flag58) + { + this._parseTmpCmd.param3 = array[3]; + } + bool flag59 = array.Length > 4; + if (flag59) + { + this._parseTmpCmd.param4 = array[4]; + } + bool flag60 = array.Length > 5; + if (flag60) + { + this._parseTmpCmd.param5 = array[5]; + } + bool flag61 = array.Length > 6; + if (flag61) + { + this._parseTmpCmd.param6 = array[6]; + } + cmdQueue.Enqueue(this._parseTmpCmd); + xtutorialCmd = this._parseTmpCmd; + flag5 = true; + break; + } + } + } + else + { + flag5 = true; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + bool flag62 = !flag5; + if (flag62) + { + goto Block_63; + } + } + } + } + bool flag63 = xtutorialCmd != null; + if (flag63) + { + xtutorialCmd.bLastCmdInQueue = true; + xtutorialCmd.TutorialID = execStep; + bool flag64 = !flag; + if (flag64) + { + xtutorialCmd.step = execStep; + } + } + XSingleton.singleton.ClearStream(stream); + return true; + Block_63: + XSingleton.singleton.AddErrorLog(file, "Tutorial Format Error at line ", num.ToString(), " !", null, null); + XSingleton.singleton.ClearStream(stream); + return false; + } + + public bool Parse(string file, ref List cmdList, ref XBetterDictionary _SysTutorial) + { + XTutorialMainCmd xtutorialMainCmd = new XTutorialMainCmd(); + Stream stream = XSingleton.singleton.ReadText(file, ".txt", true); + StreamReader streamReader = new StreamReader(stream); + string text = streamReader.ReadLine(); + int num = 1; + for (;;) + { + text = streamReader.ReadLine(); + num++; + bool flag = text.StartsWith("end tutorial"); + if (flag) + { + break; + } + bool flag2 = text.Length == 0; + if (!flag2) + { + bool flag3 = text.StartsWith("--"); + if (!flag3) + { + string[] array = text.Split(XGlobalConfig.TabSeparator, StringSplitOptions.RemoveEmptyEntries); + bool flag4 = false; + bool flag5 = text.StartsWith("tutorial"); + if (flag5) + { + int savebit = int.Parse(array[1]); + xtutorialMainCmd = new XTutorialMainCmd(); + xtutorialMainCmd.savebit = savebit; + bool flag6 = array.Length > 2; + if (flag6) + { + xtutorialMainCmd.tag = array[2]; + } + else + { + xtutorialMainCmd.tag = "NULL"; + } + bool flag7 = array.Length > 3; + if (flag7) + { + xtutorialMainCmd.isMust = (array[3] == "must"); + } + else + { + xtutorialMainCmd.isMust = false; + } + xtutorialMainCmd.conditions = new List(); + xtutorialMainCmd.condParams = new List(); + flag4 = true; + } + else + { + bool flag8 = text.StartsWith("scond"); + if (flag8) + { + bool flag9 = xtutorialMainCmd != null; + if (flag9) + { + bool flag10 = array.Length > 1; + if (flag10) + { + XTutorialCmdExecuteCondition xtutorialCmdExecuteCondition = this.Str2Condition(array[1]); + xtutorialMainCmd.conditions.Add(xtutorialCmdExecuteCondition); + bool flag11 = array.Length > 2; + if (flag11) + { + xtutorialMainCmd.condParams.Add(array[2]); + bool flag12 = xtutorialCmdExecuteCondition == XTutorialCmdExecuteCondition.Sys_Notify; + if (flag12) + { + bool flag13 = array.Length > 3 && int.Parse(array[3]) > 0; + if (!flag13) + { + _SysTutorial.Add(uint.Parse(array[2]), xtutorialMainCmd); + } + } + } + else + { + xtutorialMainCmd.condParams.Add(""); + } + } + } + flag4 = true; + } + else + { + bool flag14 = text.StartsWith("exec"); + if (flag14) + { + bool flag15 = xtutorialMainCmd != null; + if (flag15) + { + xtutorialMainCmd.subTutorial = array[1]; + cmdList.Add(xtutorialMainCmd); + } + flag4 = true; + } + } + } + bool flag16 = !flag4; + if (flag16) + { + goto Block_16; + } + } + } + } + XSingleton.singleton.ClearStream(stream); + return true; + Block_16: + XSingleton.singleton.AddLog(file, "Tutorial Format Error at line ", num.ToString(), " !", null, null, XDebugColor.XDebug_None); + XSingleton.singleton.ClearStream(stream); + return false; + } + + private XTutorialCmdExecuteCondition Str2Condition(string strCondition) + { + bool flag = strCondition == "playerlevel"; + XTutorialCmdExecuteCondition result; + if (flag) + { + result = XTutorialCmdExecuteCondition.Player_Level; + } + else + { + bool flag2 = strCondition == "afterlevel"; + if (flag2) + { + result = XTutorialCmdExecuteCondition.After_Level; + } + else + { + bool flag3 = strCondition == "inlevel"; + if (flag3) + { + result = XTutorialCmdExecuteCondition.In_Level; + } + else + { + bool flag4 = strCondition == "musou"; + if (flag4) + { + result = XTutorialCmdExecuteCondition.Musou_Above; + } + else + { + bool flag5 = strCondition == "castskill"; + if (flag5) + { + result = XTutorialCmdExecuteCondition.Cast_Skill; + } + else + { + bool flag6 = strCondition == "exstring"; + if (flag6) + { + result = XTutorialCmdExecuteCondition.External_String; + } + else + { + bool flag7 = strCondition == "TalkingNpc"; + if (flag7) + { + result = XTutorialCmdExecuteCondition.Talk_Npc; + } + else + { + bool flag8 = strCondition == "accepttask"; + if (flag8) + { + result = XTutorialCmdExecuteCondition.Can_Accept_Task; + } + else + { + bool flag9 = strCondition == "dotaskbattle"; + if (flag9) + { + result = XTutorialCmdExecuteCondition.Task_Battle; + } + else + { + bool flag10 = strCondition == "taskscenefinished"; + if (flag10) + { + result = XTutorialCmdExecuteCondition.Task_Scene_Finish; + } + else + { + bool flag11 = strCondition == "taskover"; + if (flag11) + { + result = XTutorialCmdExecuteCondition.Task_Over; + } + else + { + bool flag12 = strCondition == "finishtask"; + if (flag12) + { + result = XTutorialCmdExecuteCondition.Can_Finish_Task; + } + else + { + bool flag13 = strCondition == "delay"; + if (flag13) + { + result = XTutorialCmdExecuteCondition.Time_Delay; + } + else + { + bool flag14 = strCondition == "SysNotify"; + if (flag14) + { + result = XTutorialCmdExecuteCondition.Sys_Notify; + } + else + { + bool flag15 = strCondition == "meetenemy"; + if (flag15) + { + result = XTutorialCmdExecuteCondition.Meet_Enemy; + } + else + { + bool flag16 = strCondition == "hastarget"; + if (flag16) + { + result = XTutorialCmdExecuteCondition.Has_Target; + } + else + { + bool flag17 = strCondition == "getfocus"; + if (flag17) + { + result = XTutorialCmdExecuteCondition.Get_Focused; + } + else + { + bool flag18 = strCondition == "artskill"; + if (flag18) + { + result = XTutorialCmdExecuteCondition.Art_Skill; + } + else + { + bool flag19 = strCondition == "superarmor0"; + if (flag19) + { + result = XTutorialCmdExecuteCondition.No_SuperAmor; + } + else + { + bool flag20 = strCondition == "cutsceneover"; + if (flag20) + { + result = XTutorialCmdExecuteCondition.Cutscene_Over; + } + else + { + bool flag21 = strCondition == "bossexist"; + if (flag21) + { + result = XTutorialCmdExecuteCondition.Boss_Exist; + } + else + { + bool flag22 = strCondition == "enemyonground"; + if (flag22) + { + result = XTutorialCmdExecuteCondition.Enemy_OnGround; + } + else + { + bool flag23 = strCondition == "nopromote"; + if (flag23) + { + result = XTutorialCmdExecuteCondition.No_Promote; + } + else + { + bool flag24 = strCondition == "team2"; + if (flag24) + { + result = XTutorialCmdExecuteCondition.Team2; + } + else + { + bool flag25 = strCondition == "MainUI"; + if (flag25) + { + result = XTutorialCmdExecuteCondition.MainUI; + } + else + { + bool flag26 = strCondition == "item"; + if (flag26) + { + result = XTutorialCmdExecuteCondition.Has_Item; + } + else + { + bool flag27 = strCondition == "hasbody"; + if (flag27) + { + result = XTutorialCmdExecuteCondition.Has_Body; + } + else + { + bool flag28 = strCondition == "nostackui"; + if (flag28) + { + result = XTutorialCmdExecuteCondition.No_Stackui; + } + else + { + bool flag29 = strCondition == "activityopen"; + if (flag29) + { + result = XTutorialCmdExecuteCondition.Activity_Open; + } + else + { + bool flag30 = strCondition == "dragoncrusadeopen"; + if (flag30) + { + result = XTutorialCmdExecuteCondition.Dragon_Crusade_Open; + } + else + { + bool flag31 = strCondition == "battleNPCtalkend"; + if (flag31) + { + result = XTutorialCmdExecuteCondition.Battle_NPC_Talk_End; + } + else + { + result = XTutorialCmdExecuteCondition.No_Condition; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + return result; + } + + private XTutorialCmdFinishCondition Str2EndCondition(string strCondition) + { + bool flag = strCondition == "click"; + XTutorialCmdFinishCondition result; + if (flag) + { + result = XTutorialCmdFinishCondition.Click; + } + else + { + bool flag2 = strCondition == "time"; + if (flag2) + { + result = XTutorialCmdFinishCondition.Time; + } + else + { + bool flag3 = strCondition == "TalkingNpc"; + if (flag3) + { + result = XTutorialCmdFinishCondition.TalkingNpc; + } + else + { + bool flag4 = strCondition == "WorldMapShow"; + if (flag4) + { + result = XTutorialCmdFinishCondition.WorldMap; + } + else + { + bool flag5 = strCondition == "SkillLevelup"; + if (flag5) + { + result = XTutorialCmdFinishCondition.SkillLevelup; + } + else + { + bool flag6 = strCondition == "SkillBind"; + if (flag6) + { + result = XTutorialCmdFinishCondition.SkillBind; + } + else + { + bool flag7 = strCondition == "UseItem"; + if (flag7) + { + result = XTutorialCmdFinishCondition.UseItem; + } + else + { + bool flag8 = strCondition == "SysOpened"; + if (flag8) + { + result = XTutorialCmdFinishCondition.SysOpened; + } + else + { + bool flag9 = strCondition == "GetReward"; + if (flag9) + { + result = XTutorialCmdFinishCondition.GetReward; + } + else + { + bool flag10 = strCondition == "Move"; + if (flag10) + { + result = XTutorialCmdFinishCondition.Move; + } + else + { + bool flag11 = strCondition == "ComposeFashion"; + if (flag11) + { + result = XTutorialCmdFinishCondition.ComposeFashion; + } + else + { + bool flag12 = strCondition == "EnhanceItem"; + if (flag12) + { + result = XTutorialCmdFinishCondition.EnhanceItem; + } + else + { + bool flag13 = strCondition == "ReinforceItem"; + if (flag13) + { + result = XTutorialCmdFinishCondition.ReinforceItem; + } + else + { + bool flag14 = strCondition == "ChooseProf"; + if (flag14) + { + result = XTutorialCmdFinishCondition.ChangeProf; + } + else + { + bool flag15 = strCondition == "HasTeam"; + if (flag15) + { + result = XTutorialCmdFinishCondition.HasTeam; + } + else + { + bool flag16 = strCondition == "Smelting"; + if (flag16) + { + result = XTutorialCmdFinishCondition.Smelting; + } + else + { + bool flag17 = strCondition == "SelectView"; + if (flag17) + { + result = XTutorialCmdFinishCondition.SelectView; + } + else + { + bool flag18 = strCondition == "SelectSkipTutorial"; + if (flag18) + { + result = XTutorialCmdFinishCondition.SelectSkipTutorial; + } + else + { + result = XTutorialCmdFinishCondition.No_Condition; + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdParser.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdParser.cs.meta new file mode 100644 index 00000000..e7d54d10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialCmdParser.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30555c238eaed904f8fce1385df8cad8 +timeCreated: 1611403521 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialHelper.cs b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialHelper.cs new file mode 100644 index 00000000..6e174fa9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialHelper.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTutorialHelper : XSingleton + { + protected List _newOpenedSystem; + + public bool SkillLevelup; + + public bool SkillBind; + + public bool UseItem; + + public bool GetReward; + + public bool Moved; + + public bool ArtSkillOver; + + public bool MeetEnemy; + + public bool HasBoss; + + public bool HasTarget; + + public bool FashionCompose; + + public bool ReinforceItem; + + public bool EnhanceItem; + + public bool SwitchProf; + + public bool Smelting; + + public bool DragonCrusadeOpen; + + public bool HasTeam; + + public bool HitDownOnGround; + + public bool SelectView; + + public bool SelectSkipTutorial; + + public bool ActivityOpen; + + public bool BattleNPCTalkEnd; + + public override bool Init() + { + this._newOpenedSystem = new List(); + this.SkillLevelup = false; + this.SkillBind = false; + this.UseItem = false; + this.GetReward = false; + this.Moved = false; + this.MeetEnemy = false; + this.HasTarget = false; + this.ArtSkillOver = false; + this.HasBoss = false; + this.FashionCompose = false; + this.ReinforceItem = false; + this.EnhanceItem = false; + this.SwitchProf = false; + this.HasTeam = false; + this.Smelting = false; + this.ActivityOpen = false; + this.HitDownOnGround = false; + this.DragonCrusadeOpen = false; + this.BattleNPCTalkEnd = false; + this.SelectView = false; + this.SelectSkipTutorial = false; + return true; + } + + public void NextCmdClear() + { + XSingleton.singleton.BattleNPCTalkEnd = false; + } + + public override void Uninit() + { + this._newOpenedSystem.Clear(); + } + + public void AddNewOpenSystem(uint sysID) + { + this._newOpenedSystem.Add(sysID); + } + + public bool IsSysOpend(uint SysID) + { + for (int i = 0; i < this._newOpenedSystem.Count; i++) + { + bool flag = this._newOpenedSystem[i] == SysID; + if (flag) + { + return true; + } + } + return false; + } + + public static Vector2 BaseScreenPos2Real(Vector2 basePos) + { + float num = basePos.x / (float)XSingleton.singleton.Base_UI_Width * (float)Screen.width; + float num2 = basePos.y / (float)XSingleton.singleton.Base_UI_Height * (float)Screen.height; + return new Vector2(num, num2); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialHelper.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialHelper.cs.meta new file mode 100644 index 00000000..320ef5a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialHelper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 500f1b3cad70e88488efa8ec4d272793 +timeCreated: 1611403702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMainCmd.cs b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMainCmd.cs new file mode 100644 index 00000000..c187b24e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMainCmd.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XTutorialMainCmd + { + public int savebit; + + public string tag; + + public bool isMust; + + public List conditions; + + public List condParams; + + public string subTutorial; + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMainCmd.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMainCmd.cs.meta new file mode 100644 index 00000000..4ce08531 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMainCmd.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1bacd2064c5883946b81f72438ebc11a +timeCreated: 1611403317 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMgr.cs b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMgr.cs new file mode 100644 index 00000000..02e6baa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMgr.cs @@ -0,0 +1,489 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XTutorialMgr : XSingleton, IXTutorial, IXInterface + { + public bool InTutorial + { + get + { + return this._currentCmd != null && this._currentCmd.state == XCmdState.Cmd_In_Process && this._currentCmd.cmd != "noforceclick"; + } + } + + public bool NeedTutorail { get; set; } + + public bool Exculsive { get; set; } + + public bool NoforceClick { get; set; } + + public bool ExculsiveOnGeneric { get; set; } + + public bool ExculsiveOnEntity { get; set; } + + public bool Deprecated { get; set; } + + private XTutorialCmdParser _parser; + + private XTutorialCmdExecutor _executor; + + private List _subTutorials; + + private Queue _subQueue; + + private XTutorialCmd _currentCmd; + + private static readonly uint TUTORIAL_CELL_MAX = 16u; + + public byte[] TutorialBitsArray = new byte[XTutorialMgr.TUTORIAL_CELL_MAX]; + + public List _externalString = new List(); + + private string _currentSubTutorial; + + private XBetterDictionary _SysIdToTutorial = new XBetterDictionary(0); + + private Dictionary SubTutorialExecution = new Dictionary(); + + private float _LastStartTutorial = 0f; + + public XTutorialMgr() + { + this.Exculsive = false; + this.NeedTutorail = false; + } + + public override bool Init() + { + return true; + } + + public override void Uninit() + { + this._externalString.Clear(); + this.SubTutorialExecution.Clear(); + bool flag = this._subTutorials != null; + if (flag) + { + this._subTutorials.Clear(); + } + bool flag2 = this._subQueue != null; + if (flag2) + { + this._subQueue.Clear(); + } + this._currentCmd = null; + this.NeedTutorail = false; + } + + public void OnLeaveScene() + { + bool flag = this._currentCmd != null && this._currentCmd.state == XCmdState.Cmd_In_Process; + if (flag) + { + this._executor.OnCmdFinish(ref this._currentCmd); + } + } + + public void Reset(byte[] tutorialBitsArray) + { + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("XTutorial"), this); + this.Reset(); + this._parser = new XTutorialCmdParser(); + this._executor = new XTutorialCmdExecutor(); + this._subTutorials = new List(); + string file = "Table/Tutorial/TutorialEntrance"; + this._parser.Parse(file, ref this._subTutorials, ref this._SysIdToTutorial); + this.NeedTutorail = true; + int num = 0; + while ((long)num < (long)((ulong)XTutorialMgr.TUTORIAL_CELL_MAX)) + { + bool flag = tutorialBitsArray != null && tutorialBitsArray.Length > num; + if (flag) + { + this.TutorialBitsArray[num] = tutorialBitsArray[num]; + } + else + { + this.TutorialBitsArray[num] = 0; + } + num++; + } + XSingleton.singleton.Init(); + this.SubTutorialExecution.Clear(); + } + + private bool TutorialFinished(int bit) + { + bit--; + int num = bit % 8; + int num2 = bit / 8; + return ((int)this.TutorialBitsArray[num2] & 1 << num) > 0; + } + + protected void Reset() + { + this._currentCmd = null; + this._externalString.Clear(); + bool flag = this._subQueue != null; + if (flag) + { + this._subQueue.Clear(); + } + this.Exculsive = false; + this.NeedTutorail = false; + this.NoforceClick = false; + this.ExculsiveOnGeneric = false; + this._LastStartTutorial = 0f; + } + + public void NewSubQueue(string script, int savebit) + { + bool flag = this._subQueue == null; + if (flag) + { + this._subQueue = new Queue(); + } + this._subQueue.Clear(); + this._parser.Parse(script, 0, ref this._subQueue, savebit); + } + + public void AddSubQueue(string script, int savebit) + { + Queue queue = new Queue(); + this._parser.Parse(script, 0, ref queue, savebit); + bool flag = this._subQueue == null; + if (flag) + { + this._subQueue = new Queue(); + } + while (queue.Count > 0) + { + this._subQueue.Enqueue(queue.Dequeue()); + } + } + + protected bool SubTutorialExecuted(int id) + { + bool flag = this.SubTutorialExecution.ContainsKey(id); + return flag && this.SubTutorialExecution[id]; + } + + protected void SetSubTutorialExecution(int id) + { + bool flag = this.SubTutorialExecution.ContainsKey(id); + if (flag) + { + this.SubTutorialExecution[id] = true; + } + else + { + this.SubTutorialExecution.Add(id, true); + } + } + + private bool LookupNewTutorial() + { + for (int i = 0; i < this._subTutorials.Count; i++) + { + bool flag = this.TutorialFinished(this._subTutorials[i].savebit); + if (!flag) + { + bool flag2 = this.SubTutorialExecuted(this._subTutorials[i].savebit); + if (!flag2) + { + bool flag3 = this._executor.CanTutorialExecute(this._subTutorials[i]); + if (flag3) + { + this.SetSubTutorialExecution(this._subTutorials[i].savebit); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag4 = specificDocument.GetValue(XOptionsDefine.OD_SKIP_TUTORIAL) == 1 && !this._subTutorials[i].isMust; + if (!flag4) + { + string script = "Table/Tutorial/" + this._subTutorials[i].subTutorial; + bool flag5 = Time.time - this._LastStartTutorial > 1f; + if (flag5) + { + bool flag6 = this._currentCmd != null; + if (flag6) + { + this.OnCmdFinished(); + } + bool flag7 = this._currentCmd != null && this._currentCmd.state == XCmdState.Cmd_In_Queue; + if (flag7) + { + this._currentCmd.state = XCmdState.Cmd_Finished; + } + this.NewSubQueue(script, this._subTutorials[i].savebit); + bool flag8 = this._subQueue != null && this._subQueue.Count > 0; + if (flag8) + { + this._currentCmd = this._subQueue.Dequeue(); + this._currentSubTutorial = this._subTutorials[i].subTutorial; + XSingleton.singleton.AddLog(string.Concat(new object[] + { + this._subTutorials[i].savebit, + ": ", + this._currentSubTutorial, + " start !" + }), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + else + { + this.AddSubQueue(script, this._subTutorials[i].savebit); + XSingleton.singleton.AddLog(string.Concat(new object[] + { + this._subTutorials[i].savebit, + ": ", + this._subTutorials[i].subTutorial, + " append !" + }), null, null, null, null, null, XDebugColor.XDebug_None); + } + this._LastStartTutorial = Time.time; + return true; + } + XSingleton.singleton.AddLog(string.Concat(new object[] + { + this._subTutorials[i].savebit, + ": ", + this._subTutorials[i].subTutorial, + " skip" + }), null, null, null, null, null, XDebugColor.XDebug_None); + this.UpdateTutorialState(this._subTutorials[i].savebit); + } + } + } + } + return false; + } + + private XTutorialCmd FetchNewCmd() + { + XTutorialCmd result = null; + bool flag = this._subQueue != null && this._subQueue.Count > 0; + if (flag) + { + result = this._subQueue.Dequeue(); + } + XSingleton.singleton.NextCmdClear(); + return result; + } + + public bool IsNextCmdOverlay() + { + bool flag = this._subQueue == null || this._subQueue.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + XTutorialCmd xtutorialCmd = this._subQueue.Peek(); + bool flag2 = xtutorialCmd != null && xtutorialCmd.cmd == "forceclick"; + result = flag2; + } + return result; + } + + public void SkipCurrentTutorial(bool isAll = false) + { + for (;;) + { + this.OnCmdFinished(); + this._currentCmd = this.FetchNewCmd(); + bool flag = this._currentCmd == null; + if (flag) + { + break; + } + bool bLastCmdInQueue = this._currentCmd.bLastCmdInQueue; + if (bLastCmdInQueue) + { + this.UpdateTutorialState(this._currentCmd.step); + bool flag2 = !isAll; + if (flag2) + { + goto Block_3; + } + } + } + return; + Block_3: + XSingleton.singleton.AddLog("Skip Current Tutorial:" + this._currentCmd.step, null, null, null, null, null, XDebugColor.XDebug_None); + this._currentCmd = this.FetchNewCmd(); + } + + public void CloseAllTutorial() + { + int num = 1; + while ((long)num < (long)((ulong)(8u * XTutorialMgr.TUTORIAL_CELL_MAX))) + { + this.UpdateTutorialState(num); + num++; + } + } + + public void ReExecuteCurrentCmd() + { + bool flag = this._currentCmd != null && this._currentCmd.state == XCmdState.Cmd_In_Process; + if (flag) + { + this._currentCmd.state = XCmdState.Cmd_In_Queue; + bool flag2 = this._executor.CanCmdExecute(this._currentCmd); + if (flag2) + { + this._executor.ExecuteCmd(ref this._currentCmd); + } + } + } + + public void Update() + { + bool flag = XSingleton.singleton.XConnect.GetSocketState() == SocketState.State_Closed; + if (flag) + { + bool flag2 = this._currentSubTutorial != "NewbieLevel"; + if (flag2) + { + this.SkipCurrentTutorial(false); + return; + } + } + bool flag3 = this.LookupNewTutorial(); + if (!flag3) + { + bool flag4 = this._currentCmd == null || this._currentCmd.state == XCmdState.Cmd_Finished; + if (flag4) + { + this._currentCmd = this.FetchNewCmd(); + } + } + bool flag5 = this._currentCmd != null && this._executor.CanCmdExecute(this._currentCmd); + if (flag5) + { + this._executor.ExecuteCmd(ref this._currentCmd); + } + bool flag6 = this._currentCmd != null && this._currentCmd.state == XCmdState.Cmd_In_Process; + if (flag6) + { + this._executor.UpdateCmd(ref this._currentCmd); + } + } + + public void OnTutorialClicked() + { + bool flag = this._currentCmd.endcondition == XTutorialCmdFinishCondition.No_Condition; + if (flag) + { + this.OnCmdFinished(); + } + } + + protected void UpdateTutorialState(int bit) + { + PtcC2G_UpdateTutorial ptcC2G_UpdateTutorial = new PtcC2G_UpdateTutorial(); + ptcC2G_UpdateTutorial.Data.tutorialID = (uint)bit; + XSingleton.singleton.Send(ptcC2G_UpdateTutorial); + bit--; + int num = bit % 8; + int num2 = bit / 8; + byte[] tutorialBitsArray = this.TutorialBitsArray; + int num3 = num2; + tutorialBitsArray[num3] |= (byte)(1 << num); + } + + public void OnCmdFinished() + { + bool flag = this._currentCmd != null && this._executor != null && this._currentCmd.state == XCmdState.Cmd_In_Process; + if (flag) + { + this._executor.OnCmdFinish(ref this._currentCmd); + XSingleton.singleton.AddLog("t step finished ", this._currentCmd.step.ToString(), ":", this._currentCmd.tag, null, null, XDebugColor.XDebug_None); + bool flag2 = this._currentCmd.step != -1; + if (flag2) + { + this.UpdateTutorialState(this._currentCmd.step); + } + } + } + + public void StopTutorial() + { + bool flag = this._currentCmd != null && this._executor != null && this._currentCmd.state == XCmdState.Cmd_In_Process; + if (flag) + { + this._executor.StopCmd(); + } + this.NeedTutorail = false; + XSingleton.singleton.DetachInterface(XSingleton.singleton.XHash("XTutorial")); + } + + public void SetExternalString(string str) + { + this._externalString.Add(str); + } + + public bool QueryExternalString(string str, bool autoRemove) + { + bool flag = false; + foreach (string a in this._externalString) + { + bool flag2 = a == str; + if (flag2) + { + flag = true; + } + } + bool flag3 = flag && autoRemove; + if (flag3) + { + this._externalString.Remove(str); + } + return flag; + } + + public bool IsImmediatelyOpenSystem(uint sysID) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + XTutorialMainCmd xtutorialMainCmd; + bool flag = this._SysIdToTutorial.TryGetValue(sysID, out xtutorialMainCmd); + if (flag) + { + byte b = this.TutorialBitsArray[xtutorialMainCmd.savebit / 8]; + int num = xtutorialMainCmd.savebit % 8; + bool flag2 = ((int)b & 1 << num) != 0; + if (flag2) + { + return true; + } + bool flag3 = specificDocument.GetValue(XOptionsDefine.OD_SKIP_TUTORIAL) == 0 || xtutorialMainCmd.isMust; + if (flag3) + { + return false; + } + } + return true; + } + + public int GetCurrentCmdStep() + { + bool flag = this._currentCmd == null || this._currentCmd.state == XCmdState.Cmd_Finished; + int result; + if (flag) + { + result = 0; + } + else + { + result = this._currentCmd.mainTutorialBit; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMgr.cs.meta b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMgr.cs.meta new file mode 100644 index 00000000..fccb8c66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Tutorial/XTutorialMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2b6b5df12255074ab867ca653e20874 +timeCreated: 1611404844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TutorialSkipBehaviour.cs b/Client/Assets/Scripts/XMainClient/TutorialSkipBehaviour.cs new file mode 100644 index 00000000..8a61bb2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TutorialSkipBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class TutorialSkipBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Skip; + + public IXUIButton m_NoSkip; + + public IXUILabel m_Label; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Skip = (base.transform.Find("Bg/Skip").GetComponent("XUIButton") as IXUIButton); + this.m_NoSkip = (base.transform.Find("Bg/NoSkip").GetComponent("XUIButton") as IXUIButton); + this.m_Label = (base.transform.Find("Bg/Label").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TutorialSkipBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/TutorialSkipBehaviour.cs.meta new file mode 100644 index 00000000..7474dfd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TutorialSkipBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 142d3f65056f81e4aaa8badf2861de4b +timeCreated: 1611403253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/TutorialSkipView.cs b/Client/Assets/Scripts/XMainClient/TutorialSkipView.cs new file mode 100644 index 00000000..a87922ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TutorialSkipView.cs @@ -0,0 +1,105 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class TutorialSkipView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TutorialSkip"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + protected override void Init() + { + base.uiBehaviour.m_Label.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TUTORIAL_SKIP"))); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Skip.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSkipClicked)); + base.uiBehaviour.m_NoSkip.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_SKIP_TUTORIAL, 0, false); + this.SetVisibleWithAnimation(false, null); + XSingleton.singleton.SelectSkipTutorial = true; + return true; + } + + public bool OnSkipClicked(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_SKIP_TUTORIAL, 1, false); + XSingleton.singleton.SkipCurrentTutorial(true); + this.SetVisibleWithAnimation(false, null); + XSingleton.singleton.SelectSkipTutorial = true; + return true; + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/TutorialSkipView.cs.meta b/Client/Assets/Scripts/XMainClient/TutorialSkipView.cs.meta new file mode 100644 index 00000000..8bff4c8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/TutorialSkipView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8cfb7094c3e0f154ea58db813a0f306e +timeCreated: 1611404102 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI.meta b/Client/Assets/Scripts/XMainClient/UI.meta new file mode 100644 index 00000000..a8327377 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: d9c8512c259ef744594d7df835769fa8 +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AccessData.cs b/Client/Assets/Scripts/XMainClient/UI/AccessData.cs new file mode 100644 index 00000000..22c197f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AccessData.cs @@ -0,0 +1,22 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AccessData + { + public int BQid; + + public int OpenLevel; + + public bool IsOpen; + + public FpStrengthenTable.RowData Row; + + public string SceStr = string.Empty; + + public string DescStr; + + public XSysDefine SysType; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AccessData.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AccessData.cs.meta new file mode 100644 index 00000000..a13de96a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AccessData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae25bbbabf22c9b46bd30a29ef9e7224 +timeCreated: 1611404338 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs new file mode 100644 index 00000000..b9fe7c79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs @@ -0,0 +1,49 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ActivityGoddessTrialBehaviour : DlgBehaviourBase + { + public IXUILabel m_canJoinTimeslab; + + public IXUILabel m_NeedTimesLab; + + public IXUIButton m_goBattleBtn; + + public IXUIButton m_closedBtn; + + public IXUIButton m_getBtn; + + public IXUIButton m_shopBtn; + + public IXUIButton m_Help; + + public GameObject m_noTimesGo; + + public GameObject m_hadGetGo; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg"); + this.m_closedBtn = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_goBattleBtn = (transform.Find("GoBattle").GetComponent("XUIButton") as IXUIButton); + this.m_getBtn = (transform.Find("GetRewardBtn").GetComponent("XUIButton") as IXUIButton); + this.m_shopBtn = (transform.Find("BtnShop").GetComponent("XUIButton") as IXUIButton); + this.m_canJoinTimeslab = (transform.Find("times").GetComponent("XUILabel") as IXUILabel); + this.m_NeedTimesLab = (transform.Find("Reward/NeedTimes").GetComponent("XUILabel") as IXUILabel); + this.m_noTimesGo = transform.Find("NoJoinTimesTips").gameObject; + this.m_hadGetGo = transform.Find("HadGet").gameObject; + transform = transform.Find("Reward/Item"); + this.m_ItemPool.SetupPool(transform.gameObject, transform.Find("Item").gameObject, 2u, true); + this.m_canJoinTimeslab.SetText(""); + this.m_NeedTimesLab.SetText(""); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs.meta new file mode 100644 index 00000000..d157bf9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cbd8de76590e7c142b17668fae45d728 +timeCreated: 1611404547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialDlg.cs new file mode 100644 index 00000000..792ca063 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialDlg.cs @@ -0,0 +1,215 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ActivityGoddessTrialDlg : DlgBase + { + public override string fileName + { + get + { + return "Hall/GoddessTrialDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XExpeditionDocument _doc; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this._doc.GoddessTrialView = this; + this.RefreshTimes(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDlg)); + base.uiBehaviour.m_goBattleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterTeamClick)); + base.uiBehaviour.m_getBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetReward)); + base.uiBehaviour.m_shopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoToShop)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Activity_GoddessTrial); + return true; + } + + protected override void OnShow() + { + this.FillItem(); + this.RequstLeftCount(); + } + + protected override void OnHide() + { + base.uiBehaviour.m_ItemPool.ReturnAll(false); + } + + private void FillItem() + { + base.uiBehaviour.m_ItemPool.ReturnAll(false); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("GoddessTrialRewards", true); + float num = (float)((int)(-(int)(sequenceList.Count - 1)) * base.uiBehaviour.m_ItemPool.TplWidth / 2); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(num + (float)(i * base.uiBehaviour.m_ItemPool.TplWidth), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, sequenceList[i, 0], sequenceList[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)sequenceList[i, 0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowTip)); + } + } + + public void RefreshTimes() + { + bool flag = this._doc == null || !base.IsVisible(); + if (!flag) + { + int dayCount = this._doc.GetDayCount(TeamLevelType.TeamLevelGoddessTrial, null); + int dayMaxCount = this._doc.GetDayMaxCount(TeamLevelType.TeamLevelGoddessTrial, null); + base.uiBehaviour.m_canJoinTimeslab.SetText(string.Format("{0}/{1}", dayCount, dayMaxCount)); + bool flag2 = dayCount > 0; + base.uiBehaviour.m_goBattleBtn.SetVisible(flag2); + base.uiBehaviour.m_noTimesGo.SetActive(!flag2); + base.uiBehaviour.m_hadGetGo.SetActive(false); + int goddessRewardsCanGetTimes = this._doc.GoddessRewardsCanGetTimes; + bool flag3 = goddessRewardsCanGetTimes > 0; + if (flag3) + { + base.uiBehaviour.m_getBtn.SetVisible(true); + base.uiBehaviour.m_NeedTimesLab.SetVisible(false); + } + else + { + bool flag4 = dayCount > 0; + if (flag4) + { + int num = dayMaxCount - dayCount; + int @int = XSingleton.singleton.GetInt("GoddessTrialNeedJoinTimes"); + base.uiBehaviour.m_getBtn.SetVisible(false); + base.uiBehaviour.m_NeedTimesLab.SetVisible(true); + base.uiBehaviour.m_NeedTimesLab.SetText(string.Format(XStringDefineProxy.GetString("GODDESSTRIAL_NEEDFIGHT_TIMES"), @int - num % @int)); + } + else + { + base.uiBehaviour.m_getBtn.SetVisible(false); + base.uiBehaviour.m_NeedTimesLab.SetVisible(false); + base.uiBehaviour.m_hadGetGo.SetActive(true); + } + } + } + } + + private void RequstLeftCount() + { + List expeditionList = this._doc.GetExpeditionList(TeamLevelType.TeamLevelGoddessTrial); + bool flag = expeditionList != null && expeditionList.Count > 0; + if (flag) + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + for (int i = 0; i < expeditionList.Count; i++) + { + bool flag2 = specificDocument.SealType == expeditionList[i].LevelSealType; + if (flag2) + { + this._doc.ExpeditionId = expeditionList[i].DNExpeditionID; + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument2.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + return; + } + } + } + XSingleton.singleton.AddLog("Df data is error,not find target DATA!", null, null, null, null, null, XDebugColor.XDebug_None); + } + + private bool OnCloseDlg(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnEnterTeamClick(IXUIButton button) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(this._doc.ExpeditionId); + return true; + } + + private bool OnGetReward(IXUIButton button) + { + RpcC2G_GetGoddessTrialRewards rpc = new RpcC2G_GetGoddessTrialRewards(); + XSingleton.singleton.Send(rpc); + return true; + } + + private bool OnGoToShop(IXUIButton button) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Tear, 0UL); + return true; + } + + private void ShowTip(IXUISprite sp) + { + bool flag = this._doc.GoddessRewardsCanGetTimes > 0; + if (flag) + { + this.OnGetReward(null); + } + else + { + XSingleton.singleton.OnItemClick(sp); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialDlg.cs.meta new file mode 100644 index 00000000..9d36cc3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityGoddessTrialDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a15b7a127463654ebe910bc11c6c8ad +timeCreated: 1611403161 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityHandler.cs new file mode 100644 index 00000000..337fde50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityHandler.cs @@ -0,0 +1,1424 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ActivityHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/DailyActivity/ActivityHandler"; + } + } + + private XActivityDocument m_doc; + + private Transform m_selectItemTra; + + private GameObject m_noDailyItemTips; + + private GameObject m_noMulItemTips; + + private GameObject m_mulItem; + + public IXUIScrollView m_dailyScrollView; + + private IXUIScrollView m_mulScrollView; + + private IXUIButton m_shopBtn; + + private IXUIButton m_viewBtn; + + private IXUILabel m_describeContentLab; + + private XUIPool m_dropItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_mulItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_dailyItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private bool m_bIsInit = false; + + private bool m_bIsDaily = true; + + private string m_describeTxt = ""; + + private XSysDefine m_selectSysId = XSysDefine.XSys_None; + + private List m_dailyDataList = new List(); + + private class DailyData + { + public bool IsOpen + { + get + { + return this.m_isOpen; + } + } + + public bool IsFinished + { + get + { + return this.m_isFinished & this.m_isOpen; + } + } + + public string CountStr + { + get + { + return this.m_countStr; + } + } + + public string NotOpenReason + { + get + { + return this.m_notOpenReason; + } + } + + public ActivityListTable.RowData Row + { + get + { + return this.m_row; + } + } + + public int CanBuyCount + { + get + { + return this.m_canBuyCount; + } + } + + public int LeftDay + { + get + { + return this.m_leftDay; + } + } + + private bool m_isOpen = false; + + private bool m_isFinished = false; + + private int m_leftCount = 0; + + private int m_totalCount = 0; + + private int m_canBuyCount = 0; + + private int m_leftDay = 0; + + private string m_countStr; + + private string m_notOpenReason; + + private ActivityListTable.RowData m_row; + + public DailyData(ActivityListTable.RowData row, int serverOpenDay) + { + this.SetData(row, serverOpenDay); + } + + public void SetCount(int leftCount, int totalCount, int canBuyCount, int leftDay) + { + this.m_leftCount = leftCount; + this.m_totalCount = totalCount; + this.m_canBuyCount = canBuyCount; + this.m_leftDay = leftDay; + XSysDefine sysID = (XSysDefine)this.m_row.SysID; + if (sysID <= XSysDefine.XSys_Activity_DragonNest) + { + if (sysID != XSysDefine.XSys_SuperRisk && sysID != XSysDefine.XSys_AbyssParty && sysID != XSysDefine.XSys_Activity_DragonNest) + { + goto IL_207; + } + } + else if (sysID <= XSysDefine.XSys_GuildDailyTask) + { + if (sysID != XSysDefine.XSys_Activity_TeamTowerSingle) + { + if (sysID != XSysDefine.XSys_GuildDailyTask) + { + goto IL_207; + } + XGuildDailyTaskDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDailyTaskDocument.uuID); + bool flag = specificDocument.GoToTakeTask(); + if (flag) + { + this.m_isFinished = false; + this.m_countStr = XSingleton.singleton.GetString("NoReceive"); + } + else + { + bool flag2 = leftCount == 0 || specificDocument.IsRewarded; + if (flag2) + { + this.m_isFinished = true; + this.m_countStr = string.Format("{0}/{1}", 0, this.m_totalCount); + } + else + { + this.m_isFinished = false; + this.m_countStr = string.Format("{0}/{1}", this.m_leftCount, this.m_totalCount); + } + } + return; + } + } + else + { + if (sysID == XSysDefine.XSys_GuildWeeklyBountyTask) + { + XGuildWeeklyBountyDocument doc = XGuildWeeklyBountyDocument.Doc; + bool flag3 = doc.GoToTakeTask(); + if (flag3) + { + this.m_isFinished = false; + this.m_countStr = XSingleton.singleton.GetString("NoReceive"); + } + else + { + bool flag4 = leftCount == 0 || doc.HasFinishWeeklyTasks(); + if (flag4) + { + this.m_isFinished = true; + this.m_countStr = string.Format("{0}/{1}", 0, this.m_totalCount); + } + else + { + this.m_isFinished = false; + this.m_countStr = string.Format("{0}/{1}", this.m_leftCount, this.m_totalCount); + } + } + return; + } + if (sysID != XSysDefine.xSys_Mysterious) + { + goto IL_207; + } + } + this.m_isFinished = false; + this.m_countStr = string.Format("{0}/{1}", this.m_leftCount, this.m_totalCount); + return; + IL_207: + bool flag5 = leftCount == 0; + if (flag5) + { + this.m_isFinished = true; + this.m_countStr = string.Format("{0}/{1}", this.m_leftCount, this.m_totalCount); + } + else + { + this.m_isFinished = false; + this.m_countStr = string.Format("{0}/{1}", this.m_leftCount, this.m_totalCount); + } + } + + private void SetData(ActivityListTable.RowData row, int serverOpenDay) + { + this.m_row = row; + int sysOpenServerDay = XSingleton.singleton.GetSysOpenServerDay((int)row.SysID); + bool flag = !XSingleton.singleton.IsSystemOpen((int)row.SysID); + if (flag) + { + this.m_isOpen = false; + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel((int)row.SysID); + bool flag2 = (long)sysOpenLevel > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag2) + { + int sysOpenLevel2 = XSingleton.singleton.GetSysOpenLevel((int)row.SysID); + this.m_notOpenReason = string.Format(XSingleton.singleton.GetString("LEVEL_REQUIRE_LEVEL"), sysOpenLevel2); + } + else + { + bool flag3 = serverOpenDay < sysOpenServerDay; + if (flag3) + { + this.m_notOpenReason = XStringDefineProxy.GetString("MulActivity_ServerOpenDay", new object[] + { + (sysOpenServerDay - serverOpenDay).ToString() + }); + } + } + } + else + { + this.m_isOpen = true; + } + } + } + + protected override void Init() + { + this.m_doc = (XSingleton.singleton.Doc.GetXComponent(XActivityDocument.uuID) as XActivityDocument); + this.m_doc.View = this; + this.m_noDailyItemTips = base.PanelObject.transform.Find("Bg/NoDailyActivity").gameObject; + this.m_noMulItemTips = base.PanelObject.transform.Find("Bg/NoMulActivity").gameObject; + Transform transform = base.PanelObject.transform.Find("Bg/ActivityPanel"); + this.m_dailyScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = base.PanelObject.transform.Find("Bg/DailyTpl"); + this.m_dailyItemPool.SetupPool(base.PanelObject, transform.gameObject, 2u, false); + transform = base.PanelObject.transform.Find("Bg/MulActivityPanel"); + this.m_mulItem = base.PanelObject.transform.Find("Bg/MulTpl").gameObject; + this.m_mulItemPool.SetupPool(base.PanelObject, this.m_mulItem, 2u, false); + this.m_mulScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = base.PanelObject.transform.Find("Bg/Bottom"); + this.m_describeContentLab = (transform.Find("DescribeContentLab").GetComponent("XUILabel") as IXUILabel); + this.m_shopBtn = (transform.Find("BtnShop").GetComponent("XUIButton") as IXUIButton); + this.m_viewBtn = (transform.Find("ActivityView").GetComponent("XUIButton") as IXUIButton); + transform = transform.Find("Rewards"); + this.m_dropItemPool.SetupPool(transform.gameObject, transform.Find("Item").gameObject, 4u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_noDailyItemTips.SetActive(false); + this.m_noMulItemTips.SetActive(false); + this.m_bIsInit = true; + XSingleton.singleton.ActivityOpen = false; + this.m_doc.ReqDayCount(); + this.m_doc.SendQueryGetMulActInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.ActivityOpen = false; + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.RefreshLeftTime(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = XSingleton.singleton.CurrentStage == null || !XSingleton.singleton.CurrentStage.IsEntered; + if (!flag) + { + this.OnShow(); + } + } + + public void RefreshDailyActivity() + { + this.FillDailyActivity(); + } + + public void RefreshMulActivity() + { + this.FillMulActivity(); + } + + private void FillDailyActivity() + { + this.m_dailyItemPool.ReturnAll(false); + int num = this.m_doc._ActivityListTable.Table.Length; + bool flag = num == 0; + if (flag) + { + this.m_noDailyItemTips.SetActive(true); + this.m_dailyScrollView.gameObject.SetActive(false); + } + else + { + this.SetDailyData(num); + this.m_noDailyItemTips.SetActive(false); + this.m_dailyScrollView.gameObject.SetActive(true); + this.FillDailyActivityItems(); + this.m_dailyScrollView.ResetPosition(); + } + } + + private void FillDailyActivityItems() + { + for (int i = 0; i < this.m_dailyDataList.Count; i++) + { + GameObject gameObject = this.m_dailyItemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_dailyScrollView.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = this.m_dailyItemPool.TplPos + new Vector3((float)(this.m_dailyItemPool.TplWidth * (i % 2)), (float)(-(float)this.m_dailyItemPool.TplHeight * (i / 2)), 0f); + this.FillDailyActivityItem(gameObject.transform, i, this.m_dailyDataList[i]); + } + this.m_dailyScrollView.gameObject.SetActive(false); + this.m_dailyScrollView.gameObject.SetActive(true); + } + + private void FillDailyActivityItem(Transform t, int index, ActivityHandler.DailyData daily) + { + bool flag = daily == null; + if (flag) + { + XSingleton.singleton.AddGreenLog("info is nil", null, null, null, null, null); + } + else + { + t.gameObject.name = string.Format("Item{0}", daily.Row.SysID); + t.Find("SelectIcon").transform.gameObject.SetActive(false); + IXUILabel ixuilabel = t.Find("Title").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(daily.Row.Tittle); + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(daily.Row.Icon, daily.Row.AtlasPath, false); + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickDailyIconSpr)); + bool bIsInit = this.m_bIsInit; + if (bIsInit) + { + this.m_bIsInit = false; + this.m_selectItemTra = t; + this.OnClickDailyIconSpr(ixuisprite); + } + ixuisprite = (t.Find("GongPing").GetComponent("XUISprite") as IXUISprite); + ixuisprite.gameObject.SetActive(true); + bool flag2 = daily.Row.SysID == 520u; + if (flag2) + { + bool flag3 = this.NestNeedTransform(); + bool flag4 = daily.Row.TagName != null; + if (flag4) + { + bool flag5 = flag3; + if (flag5) + { + bool flag6 = daily.Row.TagName.Length >= 1; + if (flag6) + { + ixuisprite.spriteName = daily.Row.TagName[0]; + } + else + { + ixuisprite.gameObject.SetActive(false); + } + } + else + { + bool flag7 = daily.Row.TagName.Length >= 2; + if (flag7) + { + ixuisprite.spriteName = daily.Row.TagName[1]; + } + else + { + ixuisprite.gameObject.SetActive(false); + } + } + } + else + { + ixuisprite.gameObject.SetActive(false); + } + } + else + { + bool flag8 = daily.Row.TagName == null || daily.Row.TagName.Length == 0; + if (flag8) + { + ixuisprite.gameObject.SetActive(false); + } + else + { + ixuisprite.spriteName = daily.Row.TagName[0]; + } + } + this.SetTags(t.Find("Tags"), daily.Row.TagNames); + IXUIButton ixuibutton = t.Find("JoinBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)daily.Row.SysID; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDailyJoinBtn)); + ixuibutton.gameObject.SetActive(daily.IsOpen && !daily.IsFinished); + GameObject gameObject = t.Find("LeftCount").gameObject; + GameObject gameObject2 = t.Find("Finished").gameObject; + IXUILabel ixuilabel2 = t.Find("UnReceive").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("ConditionLab").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Buy").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("resetting").GetComponent("XUILabel") as IXUILabel; + ixuisprite = (t.Find("Double").GetComponent("XUISprite") as IXUISprite); + gameObject.SetActive(false); + gameObject2.SetActive(false); + ixuilabel4.gameObject.SetActive(false); + ixuilabel5.gameObject.SetActive(false); + ixuilabel2.gameObject.SetActive(false); + ixuilabel3.gameObject.SetActive(false); + ixuisprite.gameObject.SetActive(false); + bool isOpen = daily.IsOpen; + if (isOpen) + { + ixuisprite.gameObject.SetActive(this.m_doc.IsInnerDropTime(daily.Row.SysID)); + gameObject2.SetActive(daily.IsFinished); + bool flag9 = daily.CanBuyCount != 0; + if (flag9) + { + ixuilabel4.gameObject.SetActive(true); + ixuilabel4.SetText(string.Format(XSingleton.singleton.GetString("CanBuyCount"), daily.CanBuyCount)); + } + bool flag10 = daily.LeftDay != 0; + if (flag10) + { + ixuilabel5.gameObject.SetActive(true); + ixuilabel5.SetText(string.Format(XSingleton.singleton.GetString("ResetTime"), daily.LeftDay)); + } + XSysDefine sysID = (XSysDefine)daily.Row.SysID; + if (sysID <= XSysDefine.XSys_GuildDailyTask) + { + if (sysID != XSysDefine.XSys_AbyssParty && sysID != XSysDefine.XSys_Activity_DragonNest) + { + if (sysID != XSysDefine.XSys_GuildDailyTask) + { + goto IL_5E1; + } + XGuildDailyTaskDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDailyTaskDocument.uuID); + bool flag11 = specificDocument.GoToTakeTask(); + if (flag11) + { + ixuilabel2.gameObject.SetActive(true); + ixuilabel2.SetText(daily.CountStr); + } + else + { + gameObject.SetActive(true); + ixuilabel = (t.Find("LeftCount/Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(daily.CountStr); + } + } + } + else if (sysID != XSysDefine.XSys_GuildInherit) + { + if (sysID != XSysDefine.XSys_GuildWeeklyBountyTask) + { + if (sysID != XSysDefine.xSys_Mysterious) + { + goto IL_5E1; + } + } + else + { + XGuildWeeklyBountyDocument doc = XGuildWeeklyBountyDocument.Doc; + bool flag12 = doc.GoToTakeTask(); + if (flag12) + { + ixuilabel2.gameObject.SetActive(true); + ixuilabel2.SetText(daily.CountStr); + } + else + { + gameObject.SetActive(true); + ixuilabel = (t.Find("LeftCount/Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(daily.CountStr); + } + } + } + goto IL_613; + IL_5E1: + gameObject.SetActive(true); + ixuilabel = (t.Find("LeftCount/Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(daily.CountStr); + IL_613:; + } + else + { + ixuilabel3.gameObject.SetActive(true); + ixuilabel3.SetText(daily.NotOpenReason); + } + } + } + + private bool NestNeedTransform() + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + bool flag = specificDocument.SealType < 3u; + bool result; + if (flag) + { + result = false; + } + else + { + List intList = XSingleton.singleton.GetIntList("NestTransform"); + DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0); + dateTime = dateTime.AddSeconds(this.m_doc.ServerTimeSince1970); + dateTime = dateTime.ToLocalTime(); + for (int i = 0; i < intList.Count; i++) + { + int num = (intList[i] != 7) ? intList[i] : 0; + bool flag2 = num < 0 || num > 6; + if (!flag2) + { + bool flag3 = num == XFastEnumIntEqualityComparer.ToInt(dateTime.DayOfWeek); + if (flag3) + { + bool flag4 = dateTime.Hour >= 5; + if (flag4) + { + return true; + } + } + num = ((num + 1 > 6) ? 0 : (num + 1)); + bool flag5 = num == XFastEnumIntEqualityComparer.ToInt(dateTime.DayOfWeek); + if (flag5) + { + bool flag6 = dateTime.Hour < 5; + if (flag6) + { + return true; + } + } + } + } + result = false; + } + return result; + } + + private void SetTags(Transform tra, string[] names) + { + int num = 0; + bool flag = names != null; + if (flag) + { + num = names.Length; + } + bool flag2 = num == 0; + if (flag2) + { + tra.gameObject.SetActive(false); + } + else + { + tra.gameObject.SetActive(true); + IXUISprite ixuisprite = tra.Find("Tag1").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = tra.Find("Tag2").GetComponent("XUISprite") as IXUISprite; + bool flag3 = num == 1; + if (flag3) + { + ixuisprite.SetSprite(names[0]); + ixuisprite2.gameObject.SetActive(false); + } + else + { + ixuisprite.SetSprite(names[0]); + ixuisprite2.gameObject.SetActive(true); + ixuisprite2.SetSprite(names[1]); + } + } + } + + private void SetDailyData(int count) + { + this.m_dailyDataList.Clear(); + int leftCount = 0; + int totalCount = 0; + int canBuyCount = 0; + int leftDay = 0; + uint num = XSingleton.singleton.XPlayerData.Level + (uint)XSingleton.singleton.GetInt("DailyActivityLimitLevel"); + for (int i = 0; i < count; i++) + { + bool flag = this.m_doc._ActivityListTable.Table[i] == null; + if (!flag) + { + ActivityHandler.DailyData dailyData = new ActivityHandler.DailyData(this.m_doc._ActivityListTable.Table[i], this.m_doc.ServerOpenDay); + this.m_doc.GetCount((int)dailyData.Row.SysID, ref leftCount, ref totalCount, ref canBuyCount); + this.m_doc.GetLeftDay((int)dailyData.Row.SysID, ref leftDay); + dailyData.SetCount(leftCount, totalCount, canBuyCount, leftDay); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel((XSysDefine)dailyData.Row.SysID); + bool flag2 = !dailyData.IsOpen && ((long)sysOpenLevel > (long)((ulong)num) || (long)sysOpenLevel <= (long)((ulong)XSingleton.singleton.XPlayerData.Level)); + if (!flag2) + { + this.m_dailyDataList.Add(dailyData); + } + } + } + this.m_dailyDataList.Sort(new Comparison(this.DailyDataCompare)); + } + + private int DailyDataCompare(ActivityHandler.DailyData left, ActivityHandler.DailyData right) + { + bool flag = left.IsFinished != right.IsFinished; + int result; + if (flag) + { + bool isFinished = left.IsFinished; + if (isFinished) + { + result = 1; + } + else + { + result = -1; + } + } + else + { + bool isFinished2 = left.IsFinished; + if (isFinished2) + { + result = (int)(left.Row.SortIndex - right.Row.SortIndex); + } + else + { + bool flag2 = left.IsOpen != right.IsOpen; + if (flag2) + { + bool isOpen = left.IsOpen; + if (isOpen) + { + result = -1; + } + else + { + result = 1; + } + } + else + { + result = (int)(left.Row.SortIndex - right.Row.SortIndex); + } + } + } + return result; + } + + public void SetScrollView(int sysId) + { + float position = 0f; + int num = 0; + bool flag = this.m_dailyDataList != null && this.m_dailyDataList.Count > 0; + if (flag) + { + for (int i = 0; i < this.m_dailyDataList.Count; i++) + { + bool flag2 = (long)sysId == (long)((ulong)this.m_dailyDataList[i].Row.SysID); + if (flag2) + { + num = i + 1; + break; + } + } + bool flag3 = num > XSingleton.singleton.GetInt("UiShowNum"); + if (flag3) + { + int num2 = (this.m_dailyDataList.Count % 2 == 0) ? (this.m_dailyDataList.Count / 2) : (this.m_dailyDataList.Count / 2 + 1); + int num3 = (num % 2 == 0) ? (num / 2) : (num / 2 + 1); + position = (float)num3 / (float)num2; + } + } + this.m_dailyScrollView.SetPosition(position); + } + + private void FillMulActivity() + { + this.m_mulItemPool.ReturnAll(false); + int count = this.m_doc.MulActivityList.Count; + bool flag = count == 0; + if (flag) + { + this.m_noMulItemTips.SetActive(true); + this.m_mulScrollView.gameObject.SetActive(false); + } + else + { + this.m_noMulItemTips.SetActive(false); + this.m_mulScrollView.gameObject.SetActive(true); + this.FillMulActivityItems(count); + this.m_mulScrollView.ResetPosition(); + } + } + + private void FillMulActivityItems(int count) + { + for (int i = 0; i < count; i++) + { + GameObject gameObject = this.m_mulItemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_mulScrollView.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = this.m_mulItemPool.TplPos + new Vector3(0f, (float)(-(float)this.m_mulItemPool.TplHeight * i), 0f); + this.FillMulActivityItem(gameObject.transform, i, this.m_doc.MulActivityList[i]); + } + this.m_mulScrollView.gameObject.SetActive(false); + this.m_mulScrollView.gameObject.SetActive(true); + } + + private void FillMulActivityItem(Transform t, int index, MulActivityInfo info) + { + bool flag = info == null; + if (flag) + { + XSingleton.singleton.AddGreenLog("info is nil", null, null, null, null, null); + } + else + { + t.gameObject.name = string.Format("Item{0}", info.Row.SystemID); + t.Find("SelectIcon").transform.gameObject.SetActive(false); + IXUILabel ixuilabel = t.Find("Title").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(info.Row.Name); + t.Find("Bg").gameObject.SetActive(info.state == MulActivityState.Open); + t.Find("Opening").gameObject.SetActive(info.tagType == MulActivityTagType.Opening); + t.Find("WillOpen").gameObject.SetActive(info.tagType == MulActivityTagType.WillOpen); + IXUIButton ixuibutton = t.Find("JoinBtn").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("LeftCountOpening").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("LeftCountUnOpen").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("OpenCondition").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("NoLimit").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = t.Find("WillOpening").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("Double").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(info.Row.Icon, info.Row.AtlasPath, false); + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickMulIconSpr)); + ixuisprite.SetGrey(info.state != MulActivityState.Grey && info.state > MulActivityState.Lock); + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickMulJoinBtn)); + ixuibutton.gameObject.SetActive(false); + ixuilabel2.gameObject.SetActive(false); + ixuilabel3.gameObject.SetActive(false); + ixuilabel4.gameObject.SetActive(false); + ixuilabel5.gameObject.SetActive(false); + ixuilabel6.gameObject.SetActive(false); + ixuisprite2.gameObject.SetActive(false); + switch (info.state) + { + case MulActivityState.Lock: + ixuilabel4.gameObject.SetActive(true); + ixuilabel4.SetText(XSingleton.singleton.ReplaceReturn(this.GetMissConditionString(info))); + break; + case MulActivityState.Grey: + { + ixuilabel4.gameObject.SetActive(true); + bool flag2 = info.timeState == MulActivityTimeState.MULACTIVITY_END; + if (flag2) + { + ixuilabel4.SetText(XStringDefineProxy.GetString("MulActivity_Tips1")); + } + else + { + bool flag3 = info.timeState == MulActivityTimeState.MULACTIVITY_UNOPEN_TODAY; + if (flag3) + { + ixuilabel4.SetText(XSingleton.singleton.ReplaceReturn(info.Row.OpenDayTips)); + } + else + { + ixuilabel4.SetText(XStringDefineProxy.GetString("MulActivity_Tips5")); + } + } + break; + } + case MulActivityState.WillOpen: + { + ixuilabel4.gameObject.SetActive(true); + ixuisprite2.gameObject.SetActive(this.m_doc.IsInnerDropTime((uint)info.Row.SystemID)); + bool flag4 = info.timeState == MulActivityTimeState.MULACTIVITY_BEfOREOPEN; + if (flag4) + { + string arg = XSingleton.singleton.TimeFormatString(info.startTime * 60, 3, 3, 3, false, true); + string arg2 = XSingleton.singleton.TimeFormatString(info.endTime * 60, 3, 3, 3, false, true); + ixuilabel4.SetText(string.Format("{0}-{1}", arg, arg2)); + } + else + { + ixuilabel4.SetText(XSingleton.singleton.ReplaceReturn(info.Row.OpenDayTips)); + } + break; + } + case MulActivityState.Open: + { + ixuisprite2.gameObject.SetActive(this.m_doc.IsInnerDropTime((uint)info.Row.SystemID)); + bool flag5 = !info.openState; + if (flag5) + { + ixuilabel6.gameObject.SetActive(true); + ixuilabel6.SetText(XStringDefineProxy.GetString("PVPActivity_Wait")); + } + else + { + bool flag6 = info.Row.SystemID == 992; + if (flag6) + { + ixuibutton.gameObject.SetActive(false); + } + else + { + ixuibutton.gameObject.SetActive(true); + } + bool flag7 = info.Row.DayCountMax == -1; + if (flag7) + { + ixuilabel5.gameObject.SetActive(true); + ixuilabel5.SetText(XSingleton.singleton.GetString("No_TimesLimit")); + } + else + { + ixuilabel2.gameObject.SetActive(true); + bool flag8 = info.Row.SystemID == 230; + if (flag8) + { + uint num = WeekEndNestDocument.Doc.MaxCount(); + ixuilabel2.SetText(string.Format("{0}/{1}", (long)((ulong)num - (ulong)((long)info.dayjoincount)), num)); + } + else + { + ixuilabel2.SetText(string.Format("{0}/{1}", info.Row.DayCountMax - info.dayjoincount, info.Row.DayCountMax)); + } + } + } + break; + } + } + } + } + + private string GetMissConditionString(MulActivityInfo info) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = info.serverOpenDayLeft > 0; + string result; + if (flag) + { + result = string.Format(XStringDefineProxy.GetString("MulActivity_ServerOpenDay"), info.serverOpenDayLeft); + } + else + { + bool flag2 = info.serverOpenWeekLeft > 0; + if (flag2) + { + result = string.Format(XStringDefineProxy.GetString("MulActivity_ServerOpenWeek"), info.serverOpenWeekLeft); + } + else + { + bool flag3 = XSingleton.singleton.XPlayerData.Level < info.roleLevel; + if (flag3) + { + result = string.Format(XStringDefineProxy.GetString("MulActivity_ShowTips9"), info.roleLevel); + } + else + { + bool flag4 = !specificDocument.bInGuild && info.Row.GuildLevel > 0u; + if (flag4) + { + result = XStringDefineProxy.GetString("MulActivity_ShowTips8"); + } + else + { + result = string.Format(XStringDefineProxy.GetString("MulActivity_ShowTips10"), info.Row.GuildLevel); + } + } + } + } + return result; + } + + public void RefreshLeftTime() + { + bool flag = this.m_selectSysId == XSysDefine.XSys_GuildInherit; + if (flag) + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + string teacherLeftTimeString = specificDocument.GetTeacherLeftTimeString(); + bool flag2 = !string.IsNullOrEmpty(teacherLeftTimeString); + if (flag2) + { + this.m_describeContentLab.SetText(string.Format("{0}({1})", this.m_describeTxt, teacherLeftTimeString)); + } + } + } + + private void FillBottom(bool isDaily, int index) + { + this.m_bIsDaily = isDaily; + if (isDaily) + { + bool flag = index >= this.m_dailyDataList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("FillBottom out of range: count = {0},index = {1}", this.m_dailyDataList.Count, index), null, null, null, null, null); + return; + } + ActivityHandler.DailyData dailyData = this.m_dailyDataList[index]; + bool flag2 = dailyData == null; + if (flag2) + { + return; + } + this.m_selectSysId = (XSysDefine)dailyData.Row.SysID; + this.SetDropsItems(dailyData.Row); + bool flag3 = dailyData.Row.SysID == 890u; + if (flag3) + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + string text = ""; + bool flag4 = dailyData.IsOpen && specificDocument.TryGetInheritCountString(out text); + if (flag4) + { + this.m_describeContentLab.SetText(text); + } + else + { + this.m_describeContentLab.SetText(dailyData.Row.Describe); + } + } + else + { + this.m_describeContentLab.SetText(dailyData.Row.Describe); + } + bool flag5 = dailyData.IsOpen && dailyData.IsFinished; + if (flag5) + { + this.m_viewBtn.gameObject.SetActive(true); + this.m_viewBtn.ID = (ulong)dailyData.Row.SysID; + } + else + { + this.m_viewBtn.gameObject.SetActive(false); + } + bool flag6 = dailyData.IsOpen && dailyData.Row.HadShop; + if (flag6) + { + this.m_shopBtn.gameObject.SetActive(true); + this.m_shopBtn.ID = (ulong)dailyData.Row.SysID; + } + else + { + this.m_shopBtn.gameObject.SetActive(false); + } + } + else + { + MulActivityInfo mulActivityInfo = this.m_doc.MulActivityList[index]; + bool flag7 = mulActivityInfo == null; + if (flag7) + { + return; + } + this.m_selectSysId = (XSysDefine)mulActivityInfo.Row.SystemID; + List list = new List(); + bool flag8 = mulActivityInfo.Row != null; + if (flag8) + { + for (int i = 0; i < mulActivityInfo.Row.DropItems.Count; i++) + { + list.Add(mulActivityInfo.Row.DropItems[i, 0]); + } + } + this.FillBottomItems(list); + this.m_describeContentLab.SetText(mulActivityInfo.Row.RewardTips); + bool flag9 = mulActivityInfo.state != MulActivityState.Open; + if (flag9) + { + this.m_viewBtn.ID = (ulong)((long)index); + XSysDefine selectSysId = this.m_selectSysId; + if (selectSysId <= XSysDefine.XSys_GuildRelax_JokerMatch) + { + if (selectSysId != XSysDefine.XSys_MulActivity_MulVoiceQA && selectSysId - XSysDefine.XSys_GuildRelax_VoiceQA > 1) + { + goto IL_2FD; + } + } + else if (selectSysId != XSysDefine.XSys_JockerKing && selectSysId != XSysDefine.XSys_GuildCollect) + { + goto IL_2FD; + } + this.m_viewBtn.gameObject.SetActive(false); + goto IL_311; + IL_2FD: + this.m_viewBtn.gameObject.SetActive(true); + IL_311:; + } + else + { + this.m_viewBtn.gameObject.SetActive(false); + } + bool flag10 = mulActivityInfo.state != MulActivityState.Lock && mulActivityInfo.Row.HadShop; + if (flag10) + { + this.m_shopBtn.gameObject.SetActive(true); + this.m_shopBtn.ID = (ulong)((long)mulActivityInfo.Row.SystemID); + } + else + { + this.m_shopBtn.gameObject.SetActive(false); + } + } + this.m_describeTxt = this.m_describeContentLab.GetText(); + this.m_shopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickShop)); + this.m_viewBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickView)); + } + + private void SetDropsItems(ActivityListTable.RowData data) + { + bool flag = data == null; + if (!flag) + { + List list = new List(); + XSysDefine sysID = (XSysDefine)data.SysID; + if (sysID != XSysDefine.XSys_Activity_Nest) + { + if (sysID != XSysDefine.XSys_Activity_DragonNest) + { + for (int i = 0; i < data.DropItems.Count; i++) + { + list.Add(data.DropItems[i, 0]); + } + } + else + { + XDragonNestDocument specificDocument = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + ExpeditionTable.RowData lastExpeditionRowData = specificDocument.GetLastExpeditionRowData(); + bool flag2 = lastExpeditionRowData == null; + if (flag2) + { + XSingleton.singleton.AddGreenLog("XSys_Activity_DragonNest,ExpeditionTable row is null", null, null, null, null, null); + } + else + { + bool flag3 = lastExpeditionRowData.ViewableDropList != null; + if (flag3) + { + for (int j = 0; j < lastExpeditionRowData.ViewableDropList.Length; j++) + { + list.Add(lastExpeditionRowData.ViewableDropList[j]); + } + } + } + } + } + else + { + XNestDocument specificDocument2 = XDocuments.GetSpecificDocument(XNestDocument.uuID); + ExpeditionTable.RowData lastExpeditionRowData2 = specificDocument2.GetLastExpeditionRowData(); + bool flag4 = lastExpeditionRowData2 == null; + if (flag4) + { + XSingleton.singleton.AddGreenLog("XSys_Activity_Nest,ExpeditionTable row is null", null, null, null, null, null); + } + else + { + bool flag5 = lastExpeditionRowData2.ViewableDropList != null; + if (flag5) + { + for (int k = 0; k < lastExpeditionRowData2.ViewableDropList.Length; k++) + { + list.Add(lastExpeditionRowData2.ViewableDropList[k]); + } + } + } + } + this.FillBottomItems(list); + } + } + + private void FillBottomItems(List lst) + { + this.m_dropItemPool.ReturnAll(false); + for (int i = 0; i < lst.Count; i++) + { + GameObject gameObject = this.m_dropItemPool.FetchGameObject(false); + gameObject.transform.localPosition = this.m_dropItemPool.TplPos + new Vector3((float)(this.m_dropItemPool.TplWidth * i), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)lst[i], 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)lst[i]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemIcon)); + } + } + + private bool OnClickShop(IXUIButton btn) + { + XSysDefine xsysDefine = (XSysDefine)btn.ID; + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 != XSysDefine.XSys_Level_Elite) + { + if (xsysDefine2 != XSysDefine.XSys_Activity_GoddessTrial) + { + if (xsysDefine2 == XSysDefine.XSys_EndlessAbyss) + { + xsysDefine = ActivityHandler.GetShopSystem(); + } + } + else + { + xsysDefine = XSysDefine.XSys_Mall_Tear; + } + } + else + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("AbyssTeamShopLevel", true); + List intList = XSingleton.singleton.GetIntList("AbyssTeamShopType"); + int level = (int)XSingleton.singleton.XPlayerData.Level; + bool flag = false; + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag2 = level >= sequenceList[i, 0] && level <= sequenceList[i, 1]; + if (flag2) + { + flag = true; + xsysDefine = (XSysDefine)(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Mall_MystShop) + intList[i]); + break; + } + } + bool flag3 = !flag; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Can't find player level state from golbalconfig by AbyssTeamShop. level = ", level.ToString(), null, null, null, null); + } + } + bool flag4 = XSingleton.singleton.IsSystemOpened(xsysDefine); + bool result; + if (flag4) + { + DlgBase.singleton.ShowShopSystem(xsysDefine, 0UL); + result = true; + } + else + { + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(XFastEnumIntEqualityComparer.ToInt(xsysDefine)); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("SHOP_OPEN_LEVEL"), sysOpenLevel), "fece00"); + result = false; + } + return result; + } + + public static XSysDefine GetShopSystem() + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("EndlessabyssLevelInterval", true); + List intList = XSingleton.singleton.GetIntList("EndlessabyssShopType"); + int level = (int)XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag = level >= sequenceList[i, 0] && level <= sequenceList[i, 1]; + if (flag) + { + return (XSysDefine)(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Mall_MystShop) + intList[i]); + } + } + XSingleton.singleton.AddErrorLog("Can't find player level state from golbalconfig EndlessabyssLevelInterval. level = ", level.ToString(), null, null, null, null); + return XSysDefine.XSys_Mall_32A; + } + + private bool OnClickView(IXUIButton btn) + { + bool bIsDaily = this.m_bIsDaily; + if (bIsDaily) + { + this.OnClickDailyJoinBtn(btn); + } + else + { + this.OnClickMulJoinBtn(btn); + } + return true; + } + + private bool OnClickDailyJoinBtn(IXUIButton btn) + { + XSysDefine xsysDefine = (XSysDefine)btn.ID; + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 != XSysDefine.XSys_GuildDailyTask && xsysDefine2 != XSysDefine.XSys_GuildWeeklyBountyTask) + { + XSingleton.singleton.OpenSystem(xsysDefine, 0UL); + } + else + { + XSingleton.singleton.CloseAllUI(); + XSingleton.singleton.OpenSystem(xsysDefine, 0UL); + } + return true; + } + + private void OnClickDailyIconSpr(IXUISprite spr) + { + this.m_selectItemTra.Find("SelectIcon").gameObject.SetActive(false); + this.m_selectItemTra = spr.transform.parent; + this.m_selectItemTra.Find("SelectIcon").gameObject.SetActive(true); + this.FillBottom(true, (int)spr.ID); + } + + private bool OnClickMulJoinBtn(IXUIButton btn) + { + int index = (int)btn.ID; + MulActivityInfo mulActivityInfo = this.m_doc.MulActivityList[index]; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + switch (mulActivityInfo.state) + { + case MulActivityState.Lock: + { + bool flag = mulActivityInfo.serverOpenDayLeft > 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("MulActivity_ServerOpenDay"), mulActivityInfo.serverOpenDayLeft), "fece00"); + } + else + { + bool flag2 = mulActivityInfo.serverOpenWeekLeft > 0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("MulActivity_ServerOpenWeek"), mulActivityInfo.serverOpenWeekLeft), "fece00"); + } + else + { + bool flag3 = XSingleton.singleton.XPlayerData.Level < mulActivityInfo.roleLevel; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("MulActivity_ShowTips1"), mulActivityInfo.roleLevel), "fece00"); + } + else + { + bool flag4 = !specificDocument.bInGuild && mulActivityInfo.Row.GuildLevel > 0u; + if (flag4) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("MulActivity_ShowTips3"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.JoinGuild)); + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("MulActivity_ShowTips2"), mulActivityInfo.Row.GuildLevel), "fece00"); + } + } + } + } + break; + } + case MulActivityState.Grey: + { + bool flag5 = mulActivityInfo.timeState == MulActivityTimeState.MULACTIVITY_UNOPEN_TODAY; + string @string; + if (flag5) + { + @string = XStringDefineProxy.GetString("MulActivity_ShowTips5"); + } + else + { + bool flag6 = mulActivityInfo.timeState == MulActivityTimeState.MULACTIVITY_END; + if (flag6) + { + @string = XStringDefineProxy.GetString("MulActivity_ShowTips4"); + } + else + { + @string = XStringDefineProxy.GetString("MulActivity_ShowTips7"); + } + } + XSingleton.singleton.ShowSystemTip(@string, "fece00"); + break; + } + case MulActivityState.WillOpen: + { + XSysDefine systemID = (XSysDefine)mulActivityInfo.Row.SystemID; + if (systemID != XSysDefine.XSys_MulActivity_MulVoiceQA && systemID != XSysDefine.XSys_GuildQualifier) + { + bool flag7 = mulActivityInfo.Row.GuildLevel == 0u; + if (flag7) + { + XSingleton.singleton.OpenSystem(mulActivityInfo.Row.SystemID); + } + else + { + XSingleton.singleton.OpenGuildSystem((XSysDefine)mulActivityInfo.Row.SystemID); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("MulActivity_ShowTips6"), "fece00"); + } + break; + } + case MulActivityState.Open: + { + XSysDefine systemID2 = (XSysDefine)mulActivityInfo.Row.SystemID; + if (systemID2 != XSysDefine.XSys_MulActivity_MulVoiceQA) + { + bool flag8 = mulActivityInfo.Row.GuildLevel == 0u; + if (flag8) + { + XSingleton.singleton.OpenSystem(mulActivityInfo.Row.SystemID); + } + else + { + XSingleton.singleton.OpenGuildSystem((XSysDefine)mulActivityInfo.Row.SystemID); + } + } + else + { + XVoiceQADocument specificDocument2 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument2.TempType = 2u; + XVoiceQADocument specificDocument3 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + bool isVoiceQAIng = specificDocument3.IsVoiceQAIng; + if (isVoiceQAIng) + { + DlgBase.singleton.SetVisible(true, true); + } + else + { + string label = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("VoiceQA_Enter_Description_" + specificDocument3.TempType.ToString())); + string string2 = XStringDefineProxy.GetString("VoiceQA_Enter_btn1"); + string string3 = XStringDefineProxy.GetString("VoiceQA_Enter_btn2"); + XSingleton.singleton.ShowModalDialog(label, string2, string3, new ButtonClickEventHandler(DlgBase.singleton.OnVoiceQAJoin), new ButtonClickEventHandler(DlgBase.singleton.OnVoiceQARefuse), false, XTempTipDefine.OD_START, 50); + } + } + break; + } + } + return true; + } + + private bool JoinGuild(IXUIButton btn) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private void OnClickMulIconSpr(IXUISprite spr) + { + bool flag = this.m_selectItemTra != null; + Transform transform; + if (flag) + { + transform = this.m_selectItemTra.Find("SelectIcon"); + bool flag2 = transform != null; + if (flag2) + { + transform.gameObject.SetActive(false); + } + } + this.m_selectItemTra = spr.transform.parent; + transform = this.m_selectItemTra.Find("SelectIcon"); + bool flag3 = transform != null; + if (flag3) + { + transform.gameObject.SetActive(true); + } + this.FillBottom(false, (int)spr.ID); + } + + private void OnClickItemIcon(IXUISprite spr) + { + XItem mainItem = XBagDocument.MakeXItem((int)spr.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, false, 0u); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityHandler.cs.meta new file mode 100644 index 00000000..6ddbcdcf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 313684c3f24d3a3479e07fb20f172e94 +timeCreated: 1611403542 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs new file mode 100644 index 00000000..923ea5f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs @@ -0,0 +1,104 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class ActivityRiftBehaviour : DlgBehaviourBase + { + public IXUIButton m_Help; + + public IXUIButton mMainClose; + + public IXUIButton m_btnFight; + + public IXUILabel m_lblFight; + + public const int max_rwd = 4; + + public const int max_buff = 5; + + public const int max_tab = 3; + + public GameObject[] m_goRwd = new GameObject[4]; + + public GameObject[] m_goBuff = new GameObject[5]; + + public IXUILabel m_lbltip; + + public IXUILabel m_lbldesc; + + public IXUILabel m_lbltime; + + public GameObject m_weekRwd; + + public IXUILabel m_lblMFloor; + + public IXUILabel m_lblMName; + + public IXUILabel m_lbblMTime; + + public IXUIButton m_btnShop; + + public IXUIButton m_btnIntro; + + public IXUIButton m_btnMember; + + public IXUIButton m_btnRwd; + + public IXUISprite m_sprRwdRed; + + public GameObject m_guildInfoPanel; + + public GameObject m_frameRankRwd; + + public GameObject m_frameWelfare; + + public GameObject m_frameWeek; + + public Transform m_tab; + + public IXUICheckBox[] m_tabs = new IXUICheckBox[3]; + + public IXUISprite[] m_reds = new IXUISprite[3]; + + private void Awake() + { + this.m_Help = (base.transform.Find("Bg/Stage/Help").GetComponent("XUIButton") as IXUIButton); + this.mMainClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_btnFight = (base.transform.Find("Bg/Stage/GoBattle").GetComponent("XUIButton") as IXUIButton); + this.m_lblFight = (base.transform.Find("Bg/Stage/fp").GetComponent("XUILabel") as IXUILabel); + for (int i = 0; i < 4; i++) + { + this.m_goRwd[i] = base.transform.Find("Bg/Stage/Reward/Item" + i).gameObject; + } + for (int j = 0; j < 5; j++) + { + this.m_goBuff[j] = base.transform.Find("Bg/Stage/Buff/BossBuff" + j).gameObject; + } + this.m_tab = base.transform.Find("Bg/Rewd/TabsFrame"); + for (int k = 0; k < 3; k++) + { + this.m_tabs[k] = (this.m_tab.Find("item" + k + "/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_reds[k] = (this.m_tabs[k].gameObject.transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite); + } + this.m_lbltime = (base.transform.Find("Bg/Top/name").GetComponent("XUILabel") as IXUILabel); + this.m_weekRwd = base.transform.Find("Bg/WeekReward").gameObject; + this.m_lbblMTime = (base.transform.Find("Bg/Main/Time").GetComponent("XUILabel") as IXUILabel); + this.m_lblMFloor = (base.transform.Find("Bg/Main/Floor").GetComponent("XUILabel") as IXUILabel); + this.m_lblMName = (base.transform.Find("Bg/Main/Name").GetComponent("XUILabel") as IXUILabel); + this.m_lbltip = (base.transform.Find("Bg/Stage/Buff/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_lbldesc = (base.transform.Find("Bg/Top/Text/T").GetComponent("XUILabel") as IXUILabel); + this.m_btnShop = (base.transform.Find("Bg/btns/BtnShop").GetComponent("XUIButton") as IXUIButton); + this.m_btnIntro = (base.transform.Find("Bg/btns/BtnIntroduce").GetComponent("XUIButton") as IXUIButton); + this.m_btnMember = (base.transform.Find("Bg/btns/BtnMemberRank").GetComponent("XUIButton") as IXUIButton); + this.m_btnRwd = (base.transform.Find("Bg/btns/BtnRwd").GetComponent("XUIButton") as IXUIButton); + this.m_sprRwdRed = (this.m_btnRwd.gameObject.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite); + this.m_guildInfoPanel = base.transform.Find("Bg/GuildRank").gameObject; + this.m_frameRankRwd = base.transform.Find("Bg/Rewd/frames/RankRewardFrame").gameObject; + this.m_frameWelfare = base.transform.Find("Bg/Rewd/frames/WelfareRewardFrame").gameObject; + this.m_frameWeek = base.transform.Find("Bg/Rewd/frames/weekRewardFrame").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs.meta new file mode 100644 index 00000000..a5df339b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7b342a3d5260d94180e6d9aa8777183 +timeCreated: 1611404532 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftDlg.cs new file mode 100644 index 00000000..8a76645f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftDlg.cs @@ -0,0 +1,578 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + [Hotfix] + internal class ActivityRiftDlg : DlgBase + { + public override string fileName + { + get + { + return "Hall/TeamMysteriousDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.xSys_Mysterious); + } + } + + private XExpeditionDocument _doc; + + private XRiftDocument _mdoc; + + private ActivityRiftItemsHandler _itemListHandler; + + private ActivityRiftGuidInfoHandler _guildinfoHandler; + + private XQualifyingRankRewardWindow m_RankRewardWindow; + + private XQualifyingPointRewardWindow m_WeekFirstPassWindow; + + private XQualifyingPointRewardWindow m_WelfareWindow; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this._doc.TeamMysteriourView = this; + this._mdoc = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + } + + protected override void OnLoad() + { + base.OnLoad(); + this.m_RankRewardWindow = new XQualifyingRankRewardWindow(base.uiBehaviour.m_frameRankRwd); + this.m_WeekFirstPassWindow = new XQualifyingPointRewardWindow(base.uiBehaviour.m_frameWeek); + this.m_WelfareWindow = new XQualifyingPointRewardWindow(base.uiBehaviour.m_frameWelfare); + DlgHandlerBase.EnsureCreate(ref this._itemListHandler, base.uiBehaviour.transform, false, null); + base.uiBehaviour.m_guildInfoPanel.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mMainClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDlg)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_btnFight.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFightClick)); + base.uiBehaviour.m_btnShop.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopClick)); + base.uiBehaviour.m_btnIntro.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnIntroClick)); + base.uiBehaviour.m_btnMember.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMemberClick)); + base.uiBehaviour.m_btnRwd.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRwdClick)); + int i = 0; + int num = base.uiBehaviour.m_tabs.Length; + while (i < num) + { + base.uiBehaviour.m_tabs[i].ID = (ulong)((long)i); + base.uiBehaviour.m_tabs[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRwdTabClick)); + i++; + } + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_tab.gameObject.SetActive(false); + this.CloseAllRwd(); + this.m_RankRewardWindow.SetVisible(false); + this.m_WeekFirstPassWindow.SetVisible(false); + base.uiBehaviour.m_lbldesc.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("RIFT_SYSTEM_HELP"))); + base.uiBehaviour.m_btnShop.gameObject.SetActive(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Mall_Rift)); + base.uiBehaviour.m_lbltip.SetVisible(false); + this._mdoc.ReqMyRiftInfo(); + this._mdoc.ReqFirstPassRwd(RiftFirstPassOpType.Rift_FirstPass_Op_GetInfo, 0u); + this._mdoc.ReqRankSelf(); + } + + public void Refresh() + { + int @int = XSingleton.singleton.GetInt("RiftRewardWeekLimitOpen"); + bool flag = @int == 1; + base.uiBehaviour.m_lbltime.SetVisible(flag); + base.uiBehaviour.m_weekRwd.SetActive(!flag); + this._mdoc.CulFirstPass(); + this._mdoc.ReculRankList(); + bool flag2 = !flag; + if (flag2) + { + this.RefreshWeekRwd(base.uiBehaviour.m_weekRwd.transform); + } + base.uiBehaviour.m_lbltime.SetText(XStringDefineProxy.GetString("RiftTimeString")); + string text = this._mdoc.currFloor.ToString(); + base.uiBehaviour.m_lblMFloor.SetText(text); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._mdoc.sceneid); + bool flag3 = sceneData != null; + if (flag3) + { + base.uiBehaviour.m_lblMName.SetText(sceneData.Comment); + bool flag4 = this._mdoc.currRiftRow != null; + if (flag4) + { + base.uiBehaviour.m_lblFight.SetText(this._mdoc.currRiftRow.RecommendPower.ToString()); + } + else + { + base.uiBehaviour.m_lblFight.SetText(sceneData.RecommendPower.ToString()); + } + for (int i = 0; i < (int)sceneData.LoseCondition.count; i++) + { + bool flag5 = sceneData.LoseCondition[i, 0] == 3; + if (flag5) + { + int num = sceneData.LoseCondition[i, 1]; + base.uiBehaviour.m_lbblMTime.SetText(this.TranNum2Date(num)); + } + } + } + this.RefreshFloorRwd(); + this.RefreshBuff(); + this.RefreshRwdOpen(); + } + + private string TranNum2Date(int num) + { + int num2 = num / 60; + int num3 = num % 60; + return num2.ToString("D2") + ":" + num3.ToString("D2"); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._itemListHandler); + DlgHandlerBase.EnsureUnload(ref this._guildinfoHandler); + this.m_WeekFirstPassWindow = null; + this.m_RankRewardWindow = null; + base.OnUnload(); + } + + private void RefreshRwdOpen() + { + bool active = XSingleton.singleton.GetInt("RiftGuaranteeAwardShowOpen") == 1; + base.uiBehaviour.m_tabs[2].gameObject.SetActive(active); + } + + public void RefreshRed() + { + base.uiBehaviour.m_sprRwdRed.SetVisible(this._mdoc.hasNewFirstPass); + base.uiBehaviour.m_reds[0].SetVisible(this._mdoc.hasNewFirstPass); + base.uiBehaviour.m_reds[1].SetVisible(false); + base.uiBehaviour.m_reds[2].SetVisible(false); + } + + private void RefreshWeekRwd(Transform t) + { + IXUIProgress ixuiprogress = t.Find("Icon1/Progress Bar").GetComponent("XUIProgress") as IXUIProgress; + IXUIProgress ixuiprogress2 = t.Find("Icon2/Progress Bar").GetComponent("XUIProgress") as IXUIProgress; + IXUILabel ixuilabel = t.Find("Icon1/value").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Icon2/value").GetComponent("XUILabel") as IXUILabel; + bool flag = this._mdoc.items != null && this._mdoc.items.Count > 0; + if (flag) + { + ixuilabel.SetText(this._mdoc.items[0].key + "/" + this._mdoc.items[0].value); + ixuilabel2.SetText(this._mdoc.items[1].key + "/" + this._mdoc.items[1].value); + ixuiprogress.value = this._mdoc.items[0].key / this._mdoc.items[0].value; + ixuiprogress2.value = this._mdoc.items[1].key / this._mdoc.items[1].value; + } + else + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("RiftRewardWeekLimit", true); + ixuilabel.SetText(0 + "/" + sequenceList[0, 1]); + ixuilabel2.SetText(0 + "/" + sequenceList[1, 0]); + ixuiprogress.value = 0f / (float)sequenceList[0, 1]; + ixuiprogress2.value = 0f / (float)sequenceList[1, 1]; + } + } + + private bool OnRwdTabClick(IXUICheckBox box) + { + bool bChecked = box.bChecked; + if (bChecked) + { + this.OnRwdSelect(box.ID); + } + return true; + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.xSys_Mysterious); + return true; + } + + private bool OnCloseDlg(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnFightClick(IXUIButton btn) + { + XSingleton.singleton.AddLog("OnFightClick", null, null, null, null, null, XDebugColor.XDebug_None); + List expeditionList = this._doc.GetExpeditionList(TeamLevelType.TeamLevelRift); + int dnexpeditionID = expeditionList[0].DNExpeditionID; + ExpeditionTable.RowData expeditionDataByID = this._doc.GetExpeditionDataByID(dnexpeditionID); + float num = float.Parse(XSingleton.singleton.GetValue("SceneGotoPower")); + bool flag = XSingleton.singleton.CheckMyPPT(Mathf.FloorToInt(expeditionDataByID.DisplayPPT * num)); + if (flag) + { + this.OnRealEnter(dnexpeditionID); + } + else + { + XSingleton.singleton.ShowPPTNotEnoughDlg((ulong)((long)dnexpeditionID), new ButtonClickEventHandler(this.OnRealEnterClicked)); + } + return true; + } + + private bool OnRealEnterClicked(IXUIButton go) + { + this.OnRealEnter((int)go.ID); + return true; + } + + private void OnRealEnter(int id) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(id); + } + + private bool OnShopClick(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Rift, 0UL); + return true; + } + + private bool OnMemberClick(IXUIButton btn) + { + XSingleton.singleton.AddLog("onguildinfo click", null, null, null, null, null, XDebugColor.XDebug_None); + this._mdoc.ReqGuildRank(); + return true; + } + + public void OpenGuildInfoHanlder() + { + DlgHandlerBase.EnsureCreate(ref this._guildinfoHandler, base.uiBehaviour.m_guildInfoPanel, this, true); + } + + private bool OnIntroClick(IXUIButton btn) + { + XSingleton.singleton.AddLog("OnIntroClick", null, null, null, null, null, XDebugColor.XDebug_None); + DlgHandlerBase.EnsureCreate(ref this._itemListHandler, base.uiBehaviour.transform, false, null); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("RiftAffixID", false); + PandoraDocument specificDocument = XDocuments.GetSpecificDocument(PandoraDocument.uuID); + specificDocument.GetShowItemList((uint)sequenceList[this._mdoc.currRift, 1]); + this._itemListHandler.ShowItemList(PandoraDocument.ItemList); + return true; + } + + private bool OnRwdClick(IXUIButton btn) + { + base.uiBehaviour.m_tab.gameObject.SetActive(true); + base.uiBehaviour.m_tabs[0].bChecked = true; + this.OnRwdSelect(0UL); + return true; + } + + private void OnRwdSelect(ulong index) + { + this.CloseAllRwd(); + this.RefreshRed(); + bool flag = index == 0UL; + if (flag) + { + this.m_WeekFirstPassWindow.SetVisible(true); + this.RefreshFirstPassRift(); + } + bool flag2 = index == 1UL; + if (flag2) + { + this.m_RankRewardWindow.SetVisible(true); + this.RefreshRankRwd(); + } + bool flag3 = index == 2UL; + if (flag3) + { + this.m_WelfareWindow.SetVisible(true); + this.RefreshWelfare(); + } + } + + private void CloseAllRwd() + { + this.m_RankRewardWindow.SetVisible(false); + this.m_WelfareWindow.SetVisible(false); + this.m_WeekFirstPassWindow.SetVisible(false); + } + + private void RefreshFloorRwd() + { + bool flag = this._mdoc != null && this._mdoc.currRiftRow != null; + if (flag) + { + int count = (int)this._mdoc.currRiftRow.weekfirstpass.count; + for (int i = 0; i < count; i++) + { + base.uiBehaviour.m_goRwd[i].SetActive(true); + uint num = this._mdoc.currRiftRow.weekfirstpass[i, 0]; + uint itemCount = this._mdoc.currRiftRow.weekfirstpass[i, 1]; + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_goRwd[i], (int)num, (int)itemCount, false); + IXUISprite ixuisprite = base.uiBehaviour.m_goRwd[i].transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + for (int j = count; j < base.uiBehaviour.m_goRwd.Length; j++) + { + base.uiBehaviour.m_goRwd[j].SetActive(false); + } + } + } + + private void RefreshBuff() + { + Rift.RowData currRiftRow = this._mdoc.currRiftRow; + this.RefreshBuff(base.uiBehaviour.m_goBuff[0], string.Empty, XSingleton.singleton.GetValue("RiftAttr"), currRiftRow.attack + "%"); + this.RefreshBuff(base.uiBehaviour.m_goBuff[1], string.Empty, XSingleton.singleton.GetValue("RiftHP"), currRiftRow.hp + "%"); + bool flag = this._mdoc != null && this._mdoc.currRiftRow != null; + if (flag) + { + int num = this._mdoc.buffIDS.Count + 2; + for (int i = 2; i < num; i++) + { + RiftBuffSuitMonsterType.RowData buffSuitRow = this._mdoc.GetBuffSuitRow((uint)this._mdoc.buffIDS[i - 2], this._mdoc.buffLevels[i - 2]); + base.uiBehaviour.m_goBuff[i].SetActive(true); + this.RefreshBuff(base.uiBehaviour.m_goBuff[i], buffSuitRow.atlas, buffSuitRow.icon, string.Empty); + IXUISprite ixuisprite = base.uiBehaviour.m_goBuff[i].transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)(i - 2)); + ixuisprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnBuffPress)); + } + for (int j = num; j < base.uiBehaviour.m_goBuff.Length; j++) + { + base.uiBehaviour.m_goBuff[j].SetActive(false); + } + } + } + + private bool OnBuffPress(IXUISprite spr, bool ispress) + { + int index = (int)spr.ID; + RiftBuffSuitMonsterType.RowData buffSuitRow = this._mdoc.GetBuffSuitRow((uint)this._mdoc.buffIDS[index], this._mdoc.buffLevels[index]); + base.uiBehaviour.m_lbltip.SetText(XSingleton.singleton.ReplaceReturn(buffSuitRow.scription)); + base.uiBehaviour.m_lbltip.SetVisible(ispress); + return true; + } + + private void RefreshBuff(GameObject go, string atlas, string sp, string text) + { + IXUILabel ixuilabel = go.transform.Find("value").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(text)); + bool flag = string.IsNullOrEmpty(atlas); + if (flag) + { + ixuisprite.SetSprite(sp); + } + else + { + ixuisprite.SetSprite(sp, atlas, false); + } + } + + private void RefreshWelfare() + { + this._mdoc.CulWelfare(); + this.RefreshRwd(this.m_WelfareWindow, this._mdoc.WelfareList, true); + IXUILabel ixuilabel = base.uiBehaviour.m_frameWelfare.transform.Find("Bg/CurrentPoint/Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._mdoc.all_finish ? this._mdoc.currFloor.ToString() : (this._mdoc.currFloor - 1).ToString()); + } + + public void RefreshFirstPassRift() + { + this.RefreshRwd(this.m_WeekFirstPassWindow, this._mdoc.WeekFirstPassList, true); + IXUILabel ixuilabel = base.uiBehaviour.m_frameWeek.transform.Find("Bg/LeftTime").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._mdoc.all_finish ? this._mdoc.currFloor.ToString() : (this._mdoc.currFloor - 1).ToString()); + } + + private void RefreshRwd(XQualifyingPointRewardWindow window, List list, bool resetPos) + { + window.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRwdCloseClicked)); + Vector3 tplPos = window.m_RewardPool.TplPos; + window.m_RewardPool.FakeReturnAll(); + window.m_ItemPool.FakeReturnAll(); + list.Sort(new Comparison(this._mdoc.RewardCompare)); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = window.m_RewardPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Point/Num").GetComponent("XUILabel") as IXUILabel; + uint point = list[i].point; + ixuilabel.SetText(point.ToString()); + Transform transform = gameObject.transform.Find("Bg/Tip"); + bool flag = transform != null; + if (flag) + { + IXUILabel ixuilabel2 = transform.GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuilabel2.ID = (ulong)list[i].point; + ixuilabel2.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnClaimFirstpassClick)); + GameObject gameObject2 = transform.Find("redp").gameObject; + uint status = list[i].status; + gameObject2.SetActive(status == 3u); + bool flag2 = status == 3u; + if (flag2) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("SRS_FETCH")); + } + bool flag3 = status == 2u; + if (flag3) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("LEVEL_CHALLENGE_FINISH")); + } + else + { + bool flag4 = status == 1u; + if (flag4) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("CAREER_TROPHY_UNREACH")); + } + else + { + bool flag5 = status == 0u; + if (flag5) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("SRS_FETCHED")); + } + } + } + ixuibutton.SetEnable(status == 3u, false); + } + for (int j = 0; j < list[i].reward.Count; j++) + { + GameObject gameObject3 = window.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject3, (int)list[i].reward[j, 0], (int)list[i].reward[j, 1], false); + IXUISprite ixuisprite = gameObject3.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)list[i].reward[j, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject3.transform.parent = gameObject.transform; + gameObject3.transform.localPosition = new Vector3(window.m_ItemPool.TplPos.x - window.m_RewardPool.TplPos.x + (float)(window.m_ItemPool.TplWidth * j), 0f); + } + gameObject.transform.localPosition = window.m_RewardPool.TplPos - new Vector3(0f, (float)(window.m_RewardPool.TplHeight * i)); + } + window.m_ItemPool.ActualReturnAll(false); + window.m_RewardPool.ActualReturnAll(false); + if (resetPos) + { + window.m_ScrollView.ResetPosition(); + } + } + + private void RefreshRankRwd() + { + this.m_RankRewardWindow.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRwdCloseClicked)); + IXUILabel ixuilabel = base.uiBehaviour.m_frameRankRwd.transform.Find("Bg/LeftTime").GetComponent("XUILabel") as IXUILabel; + bool flag = this._mdoc.self_rank > 0u; + if (flag) + { + ixuilabel.SetText(XStringDefineProxy.GetString("SMALLMONSTER_RANK", new object[] + { + this._mdoc.self_rank + })); + } + else + { + ixuilabel.SetText(XStringDefineProxy.GetString("ARENA_NO_RANK")); + } + Vector3 tplPos = this.m_RankRewardWindow.m_RewardPool.TplPos; + this.m_RankRewardWindow.m_RewardPool.FakeReturnAll(); + this.m_RankRewardWindow.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < this._mdoc.RankRewardList.Count; i++) + { + GameObject gameObject = this.m_RankRewardWindow.m_RewardPool.FetchGameObject(false); + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/Rank/RankNum").GetComponent("XUILabel") as IXUILabel; + bool isRange = this._mdoc.RankRewardList[i].isRange; + if (isRange) + { + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc2"), this._mdoc.RankRewardList[i].rank)); + } + else + { + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1"), this._mdoc.RankRewardList[i].rank)); + } + for (int j = 0; j < this._mdoc.RankRewardList[i].reward.Count; j++) + { + GameObject gameObject2 = this.m_RankRewardWindow.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)this._mdoc.RankRewardList[i].reward[j, 0], (int)this._mdoc.RankRewardList[i].reward[j, 1], false); + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this._mdoc.RankRewardList[i].reward[j, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3(this.m_RankRewardWindow.m_ItemPool.TplPos.x + (float)(this.m_RankRewardWindow.m_ItemPool.TplWidth * j), 0f); + } + gameObject.transform.localPosition = this.m_RankRewardWindow.m_RewardPool.TplPos - new Vector3(0f, (float)(this.m_RankRewardWindow.m_RewardPool.TplHeight * i)); + } + this.m_RankRewardWindow.m_ItemPool.ActualReturnAll(false); + this.m_RankRewardWindow.m_RewardPool.ActualReturnAll(false); + this.m_RankRewardWindow.m_ScrollView.ResetPosition(); + } + + private void OnClaimFirstpassClick(IXUILabel l) + { + ulong id = l.ID; + this._mdoc.ReqFirstPassRwd(RiftFirstPassOpType.Rift_FirstPass_Op_GetReward, (uint)id); + } + + private bool OnRwdCloseClicked(IXUIButton button) + { + this.CloseAllRwd(); + base.uiBehaviour.m_tab.gameObject.SetActive(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftDlg.cs.meta new file mode 100644 index 00000000..5f22f0a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dcc97680b1a7e5046a31e214eddb8c1a +timeCreated: 1611404680 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftGuidInfoHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftGuidInfoHandler.cs new file mode 100644 index 00000000..350b2c50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftGuidInfoHandler.cs @@ -0,0 +1,173 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + [Hotfix] + internal class ActivityRiftGuidInfoHandler : DlgHandlerBase + { + public IXUILabel m_lblRank; + + public IXUILabel m_lblTime; + + public IXUILabel m_lblName; + + public IXUIButton m_btnClose; + + public IXUIScrollView m_scroll; + + public GameObject[] m_goBuff = new GameObject[5]; + + public XUIPool m_RankPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private const int max_buff = 5; + + public XRiftDocument _doc; + + private Rift.RowData _bestRift; + + protected override void Init() + { + base.Init(); + this.m_lblName = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel); + this.m_lblTime = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_btnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_lblRank = (base.transform.Find("Bg/Floor").GetComponent("XUILabel") as IXUILabel); + GameObject gameObject = base.transform.Find("Bg/root/RewardTpl").gameObject; + GameObject gameObject2 = base.transform.Find("Bg/root/ScrollView").gameObject; + this.m_scroll = (gameObject2.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RankPool.SetupPool(gameObject2, gameObject, 2u, false); + for (int i = 0; i < 5; i++) + { + this.m_goBuff[i] = base.transform.Find("Bg/Buff/BossBuff" + i).gameObject; + } + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + } + + public override void OnUnload() + { + this._doc = null; + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + } + bool flag2 = this._doc.guildInfos != null && this._doc.guildInfos.Count > 0; + if (flag2) + { + this.m_lblName.SetText(this._doc.guildInfos[0].roleInfo.name); + this.m_lblRank.SetText(this._doc.guildInfos[0].riftFloor.ToString()); + this.m_lblTime.SetText(this._doc.guildInfos[0].costTime.ToString()); + this._bestRift = this._doc.GetRiftData(this._doc.guildInfos[0].riftFloor, this._doc.currGuidRiftID); + } + else + { + this.m_lblRank.SetText("0"); + this.m_lblTime.SetText("0"); + } + this.RefreshBuff(); + this.RefreshRank(); + } + + private bool OnClose(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private void RefreshBuff() + { + List guildBuffIDs = this._doc.guildBuffIDs; + int num = guildBuffIDs.Count + 2; + Rift.RowData bestRift = this._bestRift; + bool flag = bestRift == null; + if (flag) + { + int i = 0; + int num2 = this.m_goBuff.Length; + while (i < num2) + { + this.m_goBuff[i].SetActive(false); + i++; + } + } + else + { + this.m_goBuff[0].SetActive(true); + this.m_goBuff[1].SetActive(true); + this.RefreshBuff(this.m_goBuff[0], string.Empty, XSingleton.singleton.GetValue("RiftAttr"), bestRift.attack + "%"); + this.RefreshBuff(this.m_goBuff[1], string.Empty, XSingleton.singleton.GetValue("RiftHP"), bestRift.hp + "%"); + for (int j = 2; j < num; j++) + { + RiftBuffSuitMonsterType.RowData buffSuitRow = this._doc.GetBuffSuitRow((uint)guildBuffIDs[j - 2], 1); + this.m_goBuff[j].SetActive(true); + this.RefreshBuff(this.m_goBuff[j], buffSuitRow.atlas, buffSuitRow.icon, string.Empty); + } + for (int k = num; k < this.m_goBuff.Length; k++) + { + this.m_goBuff[k].SetActive(false); + } + } + } + + private void RefreshBuff(GameObject go, string atlas, string sp, string text) + { + IXUILabel ixuilabel = go.transform.Find("value").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(text); + bool flag = string.IsNullOrEmpty(atlas); + if (flag) + { + ixuisprite.SetSprite(sp); + } + else + { + ixuisprite.SetSprite(sp, atlas, false); + } + } + + private void RefreshRank() + { + bool flag = this._doc.guildInfos != null; + if (flag) + { + this.m_RankPool.FakeReturnAll(); + for (int i = 0; i < this._doc.guildInfos.Count; i++) + { + RiftGuildRankInfo riftGuildRankInfo = this._doc.guildInfos[i]; + GameObject gameObject = this.m_RankPool.FetchGameObject(false); + IXUILabel label = gameObject.transform.Find("Bg/RankNum").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel = gameObject.transform.Find("Bg/T").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/Floor").GetComponent("XUILabel") as IXUILabel; + IXUISprite sp = gameObject.transform.Find("Bg/RankImage").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.ShowRank(sp, label, i + 1); + gameObject.transform.localPosition = this.m_RankPool.TplPos - new Vector3(0f, (float)(this.m_RankPool.TplHeight * i)); + ixuilabel.SetText(riftGuildRankInfo.roleInfo.name); + int num = 3 * (5 - i) + 1; + ixuilabel2.SetText(riftGuildRankInfo.riftFloor.ToString()); + } + this.m_RankPool.ActualReturnAll(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftGuidInfoHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftGuidInfoHandler.cs.meta new file mode 100644 index 00000000..64595940 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftGuidInfoHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5191e61d00147eb4d82a0c6bf39101e1 +timeCreated: 1611403706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftItemsHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftItemsHandler.cs new file mode 100644 index 00000000..0006ecb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftItemsHandler.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ActivityRiftItemsHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/TeamMysteriousItemList"; + } + } + + public GameObject m_goTpl; + + public IXUIButton m_btnClose; + + public IXUIScrollView m_scroll; + + public XUIPool m_ItemsPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_data; + + private Vector3 m_pos; + + protected override void Init() + { + base.Init(); + this.m_btnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_goTpl = base.transform.Find("Bg/ScrollView/ItemTpl").gameObject; + this.m_pos = this.m_goTpl.transform.localPosition; + GameObject gameObject = base.transform.Find("Bg/ScrollView").gameObject; + this.m_scroll = (gameObject.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ItemsPool.SetupPool(gameObject, this.m_goTpl, 8u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + } + + public void ShowItemList(List list) + { + this.m_data = list; + base.SetVisible(true); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_ItemsPool.FakeReturnAll(); + for (int i = 0; i < this.m_data.Count; i++) + { + GameObject gameObject = this.m_ItemsPool.FetchGameObject(false); + this.SetitemInfo(gameObject, this.m_data[i]); + IXUILabel ixuilabel = gameObject.transform.Find("Intro").GetComponent("XUILabel") as IXUILabel; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.m_data[i]); + ixuilabel.SetText(itemConf.ItemDescription); + gameObject.transform.localPosition = new Vector3(this.m_pos.x, this.m_pos.y - (float)(110 * i), this.m_pos.z); + } + this.m_ItemsPool.ActualReturnAll(false); + } + + private void SetitemInfo(GameObject obj, uint itemID) + { + IXUISprite ixuisprite = obj.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)itemID; + XSingleton.singleton.normalItemDrawer.DrawItem(obj, (int)itemID, 0, false); + } + + private bool OnClose(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityRiftItemsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftItemsHandler.cs.meta new file mode 100644 index 00000000..0e000aa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityRiftItemsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0db3964ea740732409883f9cac33329c +timeCreated: 1611403197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlg.cs new file mode 100644 index 00000000..03c53a6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlg.cs @@ -0,0 +1,1289 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ActivityTeamTowerSingleDlg : DlgBase + { + public bool SweepFinished + { + get + { + return this._sweep_finished; + } + set + { + this._sweep_finished = value; + } + } + + public override string fileName + { + get + { + return "Hall/TeamTowerNewDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Activity_TeamTowerSingle); + } + } + + private XExpeditionDocument _doc; + + private uint _count_timer; + + private bool _in_sweeping = false; + + private float _time_left = 0f; + + private bool _sweep_finished = false; + + private float _sweep_time = 0f; + + private int _sweep_level = 0; + + private int _tower_max_floor = 100; + + private uint _show_sweep_timer = 0u; + + private float _effect_result = 1f; + + private List _random_list = new List(); + + private List _refresh_cost = new List(); + + private List _refresh_money = new List(); + + private List frames = new List(); + + private XElapseTimer timePass = new XElapseTimer(); + + public ActivityTeamTowerSingleDlg.State state = ActivityTeamTowerSingleDlg.State.None; + + private int _play_count = 0; + + private int _acc_time = 0; + + private int _all_count = 35; + + private bool _is_getting_reward = false; + + public enum State + { + BEGIN, + PLAY, + Idle, + FADE, + None + } + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this._doc.TeamTowerSingleView = this; + string value = XSingleton.singleton.GetValue("SweepTowerTime"); + string[] array = value.Split(new char[] + { + '|' + }); + this._sweep_time = float.Parse(array[0].Split(new char[] + { + '=' + })[1]); + string value2 = XSingleton.singleton.GetValue("RefreshSweepRand"); + string[] array2 = value2.Split(new char[] + { + '|' + }); + this._random_list.Clear(); + for (int i = 0; i < array2.Length; i++) + { + this._random_list.Add((float)int.Parse(array2[i].Split(new char[] + { + '=' + })[0]) / 100f); + } + string value3 = XSingleton.singleton.GetValue("RefreshSweepCost"); + string[] array3 = value3.Split(new char[] + { + '|' + }); + this._refresh_cost.Clear(); + this._refresh_money.Clear(); + for (int j = 0; j < array3.Length; j++) + { + string[] array4 = array3[j].Split(new char[] + { + '=' + }); + this._refresh_cost.Add(int.Parse(array4[1])); + this._refresh_money.Add(int.Parse(array4[0])); + } + this.frames.Clear(); + string value4 = XSingleton.singleton.GetValue("TeamTower_Ani"); + string[] array5 = value4.Split(new char[] + { + '|' + }); + for (int k = 0; k < array5.Length; k++) + { + this.frames.Add(int.Parse(array5[k])); + } + this._all_count = this.frames.Count; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mMainClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDlg)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.mSweepBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowSweepFrame)); + base.uiBehaviour.mSingleDoSweep.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQuickStartSweep)); + base.uiBehaviour.mDoubleSweep.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartSweep)); + base.uiBehaviour.mDoubleDoSweep.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQuickStartSweep)); + base.uiBehaviour.mBackClick.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseSweep)); + base.uiBehaviour.mCloseSweep.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseSweep)); + base.uiBehaviour.mResetBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReqResetSweep)); + base.uiBehaviour.mRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.ShowTeamTowerRank)); + base.uiBehaviour.mGoBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterBattle)); + base.uiBehaviour.mRewardRefresh.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshReward)); + base.uiBehaviour.mRewardGet.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetReward)); + base.uiBehaviour.mFirstPassBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowFirstPassReward)); + base.uiBehaviour.mFirstPassGetReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetFirstPassReward)); + base.uiBehaviour.mFirstPassBackClick.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHideFirstPassReward)); + base.uiBehaviour.mFirstPassCheckReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetDisableReward)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Activity_TeamTowerSingle); + return true; + } + + protected override void OnShow() + { + this.ShowTeamTowerFrame(); + } + + protected override void OnHide() + { + bool flag = this._count_timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._count_timer); + } + this._count_timer = 0u; + bool flag2 = this._show_sweep_timer > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._show_sweep_timer); + } + this._show_sweep_timer = 0u; + } + + private void ShowTeamTowerFrame() + { + base.uiBehaviour.mSweepFrame.SetVisible(false); + base.uiBehaviour.mSweepResult.SetVisible(false); + base.uiBehaviour.mFirstPassPanel.SetVisible(false); + this._sweep_level = 0; + this._sweep_finished = false; + this._is_getting_reward = false; + this._doc.GetSingleTowerActivityTop(); + } + + private bool OnCloseDlg(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool ShowTeamTowerRank(IXUIButton btn) + { + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank_TeamTower); + return true; + } + + public void OnRefreshTopInfo() + { + bool flag = this._doc == null || !base.IsVisible(); + if (!flag) + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + bool flag2 = singleTowerData == null; + if (!flag2) + { + bool flag3 = singleTowerData.sweeplefttime > 0; + if (flag3) + { + bool flag4 = (float)singleTowerData.sweeplefttime <= Time.time - singleTowerData.sweepreqtime; + if (flag4) + { + this._in_sweeping = false; + this._sweep_finished = true; + } + else + { + this._in_sweeping = true; + this._sweep_finished = false; + } + } + else + { + bool flag5 = singleTowerData.maxlevel == singleTowerData.sweepfloor && singleTowerData.maxlevel > 0; + if (flag5) + { + this._sweep_finished = true; + } + else + { + this._sweep_finished = false; + } + this._in_sweeping = false; + } + this._sweep_level = singleTowerData.sweepfloor; + int leftcount = this._doc.SingleTowerData.leftcount; + int num = singleTowerData.level + 1; + bool flag6 = num >= teamTowerTable.Length; + if (flag6) + { + num = teamTowerTable.Length; + } + base.uiBehaviour.mStage.SetText(string.Format(XSingleton.singleton.GetString("TEAMTOWER_LEVEL"), num)); + int num2 = 1; + int.TryParse(XSingleton.singleton.GetValue("TowerTeamDayCount"), out num2); + base.uiBehaviour.mResetNum.SetText(string.Format("{0}/{1}", leftcount, num2)); + bool flag7 = leftcount > 0; + if (flag7) + { + base.uiBehaviour.mResetSprite.SetVisible(true); + base.uiBehaviour.mResetCount.SetText(leftcount.ToString()); + } + else + { + base.uiBehaviour.mResetSprite.SetVisible(false); + } + this.OnInitMainReward(); + this.InitTowerMap(singleTowerData.level); + this.OnRefreshSweepInfo(); + this.OnInitFirstReward(); + bool sweep_finished = this._sweep_finished; + if (sweep_finished) + { + this.OnShowSweepResultFrame(); + } + else + { + this.OnHideSweepResultFrame(); + } + } + } + } + + public void OnRefreshSweepInfo() + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + this._time_left = (float)singleTowerData.sweeplefttime - (Time.time - singleTowerData.sweepreqtime); + this._in_sweeping = (this._time_left > 0f); + bool flag = this._time_left < 0f; + if (flag) + { + this._time_left = 0f; + } + bool flag2 = this._time_left > 0f; + if (flag2) + { + this.DoCountDown(null); + } + bool in_sweeping = this._in_sweeping; + if (in_sweeping) + { + this._show_sweep_timer = XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.LateShowSweepFrame), null); + } + } + + private bool HasFirstRewardRedPoint() + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + int num = 0; + bool flag = singleTowerData.firstpassreward.Count > 0; + if (flag) + { + num = singleTowerData.firstpassreward[singleTowerData.firstpassreward.Count - 1]; + } + int num2 = 0; + for (int i = singleTowerData.maxlevel - 1; i >= 0; i--) + { + bool flag2 = teamTowerTable[i].FirstPassReward.Count > 0 && teamTowerTable[i].preward != 0; + if (flag2) + { + num2 = i + 1; + break; + } + } + return num2 > num; + } + + private int GetRewardLevel() + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + int num = 0; + bool flag = singleTowerData.firstpassreward.Count > 0; + if (flag) + { + num = singleTowerData.firstpassreward[singleTowerData.firstpassreward.Count - 1]; + } + for (int i = num + 1; i < singleTowerData.maxlevel; i++) + { + bool flag2 = teamTowerTable[i].FirstPassReward.Count > 0 && teamTowerTable[i].preward > 0; + if (flag2) + { + return i + 1; + } + } + return singleTowerData.firstpassreward[singleTowerData.firstpassreward.Count - 1]; + } + + private int GetNextRewardLevel() + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + int num = 0; + bool flag = singleTowerData.firstpassreward.Count > 0; + if (flag) + { + num = singleTowerData.firstpassreward[singleTowerData.firstpassreward.Count - 1]; + } + for (int i = num + 1; i < teamTowerTable.Length; i++) + { + bool flag2 = teamTowerTable[i].FirstPassReward.Count > 0 && teamTowerTable[i].preward > 0; + if (flag2) + { + return i + 1; + } + } + return singleTowerData.firstpassreward[singleTowerData.firstpassreward.Count - 1]; + } + + private void OnInitFirstReward() + { + bool flag = this.HasFirstRewardRedPoint(); + if (flag) + { + base.uiBehaviour.mFirstPassRedPoint.SetVisible(true); + base.uiBehaviour.mFirstPassLevel.SetText(string.Format(XStringDefineProxy.GetString("TEAMTOWER_LEVEL"), this.GetRewardLevel())); + } + else + { + base.uiBehaviour.mFirstPassRedPoint.SetVisible(false); + base.uiBehaviour.mFirstPassLevel.SetText(string.Format(XStringDefineProxy.GetString("TEAMTOWER_LEVEL"), this.GetNextRewardLevel())); + } + bool flag2 = base.uiBehaviour.mFirstPassPanel.IsVisible(); + if (flag2) + { + this.OnShowFirstPassReward(null); + } + } + + public bool OnShowFirstPassReward(IXUIButton btn) + { + base.uiBehaviour.mFirstPassPanel.SetVisible(true); + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + bool flag = this.HasFirstRewardRedPoint(); + int num; + if (flag) + { + num = this.GetRewardLevel(); + base.uiBehaviour.mFirstPassGet.gameObject.transform.localPosition = new Vector3(0f, 0f, 0f); + base.uiBehaviour.mFIrstPassCheck.gameObject.transform.localPosition = new Vector3(1000f, 0f, 0f); + base.uiBehaviour.mFirstPassCongraThrough.SetText(string.Format(XSingleton.singleton.GetString("TEAMTOWER_CONGRA_THROUGH"), this.GetRewardLevel())); + } + else + { + num = this.GetNextRewardLevel(); + base.uiBehaviour.mFirstPassGet.gameObject.transform.localPosition = new Vector3(1000f, 0f, 0f); + base.uiBehaviour.mFIrstPassCheck.gameObject.transform.localPosition = new Vector3(0f, 0f, 0f); + base.uiBehaviour.mFirstPassPlsThrough.SetText(string.Format(XSingleton.singleton.GetString("TEAMTOWER_PLS_THROUGH"), this.GetNextRewardLevel())); + } + base.uiBehaviour.mFirstPassReward.ReturnAll(false); + SeqListRef firstPassReward = teamTowerTable[num - 1].FirstPassReward; + for (int i = 0; i < firstPassReward.Count; i++) + { + GameObject gameObject = base.uiBehaviour.mFirstPassReward.FetchGameObject(false); + XItem xitem = XBagDocument.MakeXItem(firstPassReward[i, 0], false); + xitem.itemCount = firstPassReward[i, 1]; + int num2 = (i % 2 == 0) ? 1 : -1; + int num3 = base.uiBehaviour.mFirstPassReward.TplWidth / 2; + bool flag2 = firstPassReward.Count % 2 == 1; + if (flag2) + { + num3 = 0; + } + XSingleton.singleton.DrawItem(gameObject.transform.Find("Item").gameObject, xitem); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.mFirstPassReward.TplPos.x + (float)(num2 * ((i + 1) / 2) * base.uiBehaviour.mFirstPassReward.TplWidth) + (float)num3, base.uiBehaviour.mFirstPassReward.TplPos.y, base.uiBehaviour.mFirstPassReward.TplPos.z); + } + return true; + } + + private void OnHideFirstPassReward(IXUISprite sp) + { + base.uiBehaviour.mFirstPassPanel.SetVisible(false); + } + + public bool OnGetFirstPassReward(IXUIButton btn) + { + bool is_getting_reward = this._is_getting_reward; + bool result; + if (is_getting_reward) + { + result = false; + } + else + { + this._doc.GetFirstPassReward(this.GetRewardLevel()); + this._is_getting_reward = true; + result = true; + } + return result; + } + + private bool OnGetDisableReward(IXUIButton btn) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("TEAMTOWER_CANOT_GET"), "fece00"); + return true; + } + + public void OnGetFirstPassRewardRes(ErrorCode error) + { + this._is_getting_reward = false; + bool flag = error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(error, "fece00"); + } + else + { + this._doc.GetSingleTowerActivityTop(); + } + } + + public void LateShowSweepFrame(object obj) + { + this.OnShowSweepFrame(null); + } + + public bool OnShowSweepFrame(IXUIButton btn) + { + bool sweep_finished = this._sweep_finished; + bool result; + if (sweep_finished) + { + base.uiBehaviour.mSweepResult.SetVisible(true); + result = true; + } + else + { + bool flag = this._doc.SingleTowerData.maxlevel == 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("TEAMTOWER_FIRST_NOT_SWEEP"), "fece00"); + result = false; + } + else + { + bool flag2 = this._doc.SingleTowerData.level == this._doc.SingleTowerData.maxlevel || this._sweep_finished; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("TEAMTOWER_LAST_NOT_SWEEP"), "fece00"); + result = false; + } + else + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + base.uiBehaviour.mSweepFrame.SetVisible(true); + base.uiBehaviour.mSweepedLevel.SetText(string.Format(XStringDefineProxy.GetString("TEAMTOWER_REACH_LEVEL"), singleTowerData.maxlevel)); + bool in_sweeping = this._in_sweeping; + if (in_sweeping) + { + base.uiBehaviour.mSingleDoSweep.SetVisible(true); + base.uiBehaviour.mDoubleSweep.SetVisible(false); + base.uiBehaviour.mDoubleDoSweep.SetVisible(false); + base.uiBehaviour.mSingleMoneyNum.SetText("20"); + string itemSmallIcon = XBagDocument.GetItemSmallIcon(7, 0u); + base.uiBehaviour.mSingleMoneySign.SetSprite(itemSmallIcon); + this.SetTimeLeft((int)this._time_left); + } + else + { + base.uiBehaviour.mSingleDoSweep.SetVisible(false); + base.uiBehaviour.mDoubleSweep.SetVisible(true); + base.uiBehaviour.mDoubleDoSweep.SetVisible(true); + base.uiBehaviour.mDoubleMoneyNum.SetText("20"); + string itemSmallIcon2 = XBagDocument.GetItemSmallIcon(7, 0u); + base.uiBehaviour.mDoubleMoneySign.SetSprite(itemSmallIcon2); + bool flag3 = singleTowerData.maxlevel > singleTowerData.level; + if (flag3) + { + this.SetTimeLeft((int)this._sweep_time * (singleTowerData.maxlevel - singleTowerData.level)); + } + else + { + this.SetTimeLeft((int)this._sweep_time * singleTowerData.maxlevel); + } + } + this.OnInitReward(base.uiBehaviour.mRewardPool, 1f); + result = true; + } + } + } + return result; + } + + private void SetTimeLeft(int time) + { + int num = time / 3600; + int num2 = (time - num * 3600) / 60; + int num3 = time % 60; + string text = string.Format("{0:D2}:{1:D2}:{2:D2}", num, num2, num3); + base.uiBehaviour.mSweepEstimateTime.SetText(text); + } + + private void OnInitReward(XUIPool pool, float rewardalpha = 1f) + { + Dictionary dictionary = new Dictionary(); + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + TeamTowerData singleTowerData = this._doc.SingleTowerData; + int maxlevel = singleTowerData.maxlevel; + int num = (maxlevel < teamTowerTable.Length) ? maxlevel : teamTowerTable.Length; + for (int i = singleTowerData.level; i < num; i++) + { + TeamTowerRewardTable.RowData rowData = teamTowerTable[i]; + for (int j = 0; j < rowData.Reward.Count; j++) + { + bool flag = dictionary.ContainsKey(rowData.Reward[j, 0]); + if (flag) + { + Dictionary dictionary2 = dictionary; + int key = rowData.Reward[j, 0]; + dictionary2[key] += rowData.Reward[j, 1]; + } + else + { + dictionary[rowData.Reward[j, 0]] = rowData.Reward[j, 1]; + } + } + } + List list = new List(dictionary.Keys); + pool.ReturnAll(false); + bool active = XActivityDocument.Doc.IsInnerDropTime(530u); + for (int k = 0; k < list.Count; k++) + { + GameObject gameObject = pool.FetchGameObject(false); + XItem xitem = XBagDocument.MakeXItem(list[k], false); + xitem.itemCount = (int)((float)dictionary[list[k]] * rewardalpha + 0.5f); + IXUITweenTool ixuitweenTool = gameObject.transform.Find("Item/Num").GetComponent("XUIPlayTween") as IXUITweenTool; + bool flag2 = ixuitweenTool != null; + if (flag2) + { + ixuitweenTool.ResetTweenByGroup(true, 0); + ixuitweenTool.PlayTween(true, -1f); + } + int num2 = (k % 2 == 0) ? 1 : -1; + int num3 = pool.TplWidth / 2; + bool flag3 = list.Count % 2 == 1; + if (flag3) + { + num3 = 0; + } + XSingleton.singleton.DrawItem(gameObject.transform.Find("Item").gameObject, xitem); + gameObject.transform.localPosition = new Vector3(pool.TplPos.x + (float)(num2 * ((k + 1) / 2) * pool.TplWidth) + (float)num3, pool.TplPos.y, pool.TplPos.z); + Transform transform = gameObject.transform.Find("Item/Double"); + bool flag4 = transform != null; + if (flag4) + { + transform.gameObject.SetActive(active); + } + } + } + + private void OnInitMainReward() + { + Dictionary dictionary = new Dictionary(); + Dictionary dictionary2 = new Dictionary(); + base.uiBehaviour.mMainRewardPool.ReturnAll(false); + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + int num = this._doc.SingleTowerData.level; + bool flag = num >= teamTowerTable.Length; + if (flag) + { + num = teamTowerTable.Length - 1; + } + TeamTowerRewardTable.RowData rowData = teamTowerTable[num]; + bool flag2 = rowData.preward == 0 && num >= this._doc.SingleTowerData.maxlevel; + if (flag2) + { + for (int i = 0; i < rowData.FirstPassReward.Count; i++) + { + bool flag3 = rowData.FirstPassReward[i, 1] > 0; + if (flag3) + { + bool flag4 = dictionary2.ContainsKey(rowData.FirstPassReward[i, 0]); + if (flag4) + { + Dictionary dictionary3 = dictionary2; + int key = rowData.FirstPassReward[i, 0]; + dictionary3[key] += rowData.FirstPassReward[i, 1]; + } + else + { + dictionary2[rowData.FirstPassReward[i, 0]] = rowData.FirstPassReward[i, 1]; + } + } + } + } + for (int j = 0; j < rowData.Reward.Count; j++) + { + bool flag5 = rowData.Reward[j, 1] > 0; + if (flag5) + { + bool flag6 = dictionary.ContainsKey(rowData.Reward[j, 0]); + if (flag6) + { + Dictionary dictionary3 = dictionary; + int key = rowData.Reward[j, 0]; + dictionary3[key] += rowData.Reward[j, 1]; + } + else + { + dictionary[rowData.Reward[j, 0]] = rowData.Reward[j, 1]; + } + } + } + List list = new List(dictionary.Keys); + List list2 = new List(dictionary2.Keys); + int num2 = list.Count + list2.Count; + for (int k = 0; k < list.Count; k++) + { + GameObject gameObject = base.uiBehaviour.mMainRewardPool.FetchGameObject(false); + XItem xitem = XBagDocument.MakeXItem(list[k], false); + xitem.itemCount = dictionary[list[k]]; + int num3 = base.uiBehaviour.mMainRewardPool.TplWidth / 2; + bool flag7 = num2 % 2 == 1; + if (flag7) + { + num3 = 0; + } + xitem.Description.ItemDrawer.DrawItem(gameObject, xitem, true); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.mMainRewardPool.TplPos.x + (float)(k - (num2 - 1) / 2) * 1f * (float)base.uiBehaviour.mMainRewardPool.TplWidth - (float)num3, base.uiBehaviour.mMainRewardPool.TplPos.y, base.uiBehaviour.mMainRewardPool.TplPos.z); + IXUISprite ixuisprite = gameObject.transform.Find("shoutong").GetComponent("XUISprite") as IXUISprite; + bool flag8 = ixuisprite != null; + if (flag8) + { + ixuisprite.SetVisible(false); + } + } + for (int l = 0; l < list2.Count; l++) + { + int num4 = l + list.Count; + GameObject gameObject2 = base.uiBehaviour.mMainRewardPool.FetchGameObject(false); + XItem xitem2 = XBagDocument.MakeXItem(list2[l], false); + xitem2.itemCount = dictionary2[list2[l]]; + int num5 = base.uiBehaviour.mMainRewardPool.TplWidth / 2; + bool flag9 = (list.Count + list2.Count) % 2 == 1; + if (flag9) + { + num5 = 0; + } + xitem2.Description.ItemDrawer.DrawItem(gameObject2, xitem2, true); + gameObject2.transform.localPosition = new Vector3(base.uiBehaviour.mMainRewardPool.TplPos.x + (float)(num4 - (num2 - 1) / 2) * 1f * (float)base.uiBehaviour.mMainRewardPool.TplWidth - (float)num5, base.uiBehaviour.mMainRewardPool.TplPos.y, base.uiBehaviour.mMainRewardPool.TplPos.z); + IXUISprite ixuisprite2 = gameObject2.transform.Find("shoutong").GetComponent("XUISprite") as IXUISprite; + bool flag10 = ixuisprite2 != null; + if (flag10) + { + ixuisprite2.SetVisible(true); + } + } + double attr = XSingleton.singleton.Player.PlayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Total); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData((uint)rowData.SceneID); + double num6 = (double)sceneData.RecommendPower * 1.0; + bool flag11 = sceneData != null; + if (flag11) + { + num6 = (double)sceneData.RecommendPower * 1.0; + } + double num7 = (attr - num6 * 1.0) / num6 * 1.0; + bool flag12 = num7 > 0.01; + if (flag12) + { + base.uiBehaviour.mDemandFP.SetText(num6.ToString()); + base.uiBehaviour.mDemandFP.SetColor(Color.green); + } + else + { + bool flag13 = num7 > -0.01; + if (flag13) + { + base.uiBehaviour.mDemandFP.SetText(string.Format("[e2ca9e]{0}[-]", num6)); + } + else + { + base.uiBehaviour.mDemandFP.SetText(num6.ToString()); + base.uiBehaviour.mDemandFP.SetColor(Color.red); + } + } + } + + public bool OnCloseSweep(IXUIButton btn) + { + base.uiBehaviour.mSweepFrame.SetVisible(false); + return true; + } + + public bool OnStartSweep(IXUIButton btn) + { + RpcC2G_SweepTower rpcC2G_SweepTower = new RpcC2G_SweepTower(); + rpcC2G_SweepTower.oArg.hardLevel = this.GetHardLevel(); + XSingleton.singleton.Send(rpcC2G_SweepTower); + return true; + } + + public int GetHardLevel() + { + return this._doc.ExpeditionId % 100 / 10 + 1; + } + + public void OnStartSweepRes(SweepTowerArg arg, int timeleft) + { + bool flag = arg.cost == null || arg.cost.itemID == 0u; + if (flag) + { + this._time_left = (float)timeleft; + this._in_sweeping = true; + this._sweep_finished = false; + this.DoCountDown(null); + TeamTowerData singleTowerData = this._doc.SingleTowerData; + singleTowerData.sweepreqtime = Time.time; + base.uiBehaviour.mSingleDoSweep.SetVisible(true); + base.uiBehaviour.mDoubleSweep.SetVisible(false); + base.uiBehaviour.mDoubleDoSweep.SetVisible(false); + } + else + { + this._time_left = 0f; + this._in_sweeping = false; + this._sweep_finished = true; + this.OnCloseSweep(null); + this.OnQuickStartSweepRes(); + } + } + + public bool OnQuickStartSweep(IXUIButton btn) + { + RpcC2G_SweepTower rpcC2G_SweepTower = new RpcC2G_SweepTower(); + rpcC2G_SweepTower.oArg.cost = new ItemBrief(); + rpcC2G_SweepTower.oArg.hardLevel = 1; + rpcC2G_SweepTower.oArg.cost.itemID = 7u; + XSingleton.singleton.Send(rpcC2G_SweepTower); + return true; + } + + public void OnQuickStartSweepRes() + { + this._sweep_finished = true; + this._in_sweeping = false; + this._time_left = 0f; + TeamTowerData singleTowerData = this._doc.SingleTowerData; + bool flag = singleTowerData.level >= this._doc.GetTeamTowerTopLevel(1); + if (flag) + { + this._doc.ExpeditionId = this._doc.ExpeditionId - this._doc.ExpeditionId % 10 + 1; + int count = this._doc.GetDayCount(TeamLevelType.TeamLevelTeamTower, null) - 1; + this._doc.OnRefreshDayCount(TeamLevelType.TeamLevelTeamTower, count); + } + this.OnCloseSweep(null); + this.OnShowSweepResultFrame(); + this._doc.GetSingleTowerActivityTop(); + } + + private bool OnReqResetSweep(IXUIButton btn) + { + bool flag = this._doc.SingleTowerData.leftcount <= 0; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAM_TOWER_DAYCOUNT, "fece00"); + result = false; + } + else + { + bool flag2 = this._doc.SingleTowerData.level == 0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("TEAMTOWER_FIRST_NOT_RESET"), "fece00"); + result = false; + } + else + { + bool in_sweeping = this._in_sweeping; + if (in_sweeping) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(true); + DlgBase.singleton.SetLabelsWithSymbols(XStringDefineProxy.GetString("TEAMTOWER_IN_SWEEP"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_OK")); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnCancelReset), new ButtonClickEventHandler(this.OnCancelReset)); + } + else + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(XStringDefineProxy.GetString("TEAMTOWER_RESET_INFO"), XStringDefineProxy.GetString("TEAMTOWER_RESET"), XStringDefineProxy.GetString("COMMON_CANCEL")); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnResetSweep), new ButtonClickEventHandler(this.OnCancelReset)); + } + result = true; + } + } + return result; + } + + private bool OnCancelReset(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public bool OnResetSweep(IXUIButton btn) + { + this._doc.ResetSingleTower(); + return true; + } + + public void OnResetSweepRes() + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + singleTowerData.sweepfloor = 1; + singleTowerData.sweeplefttime = 0; + this._in_sweeping = false; + this._sweep_finished = false; + this._doc.ExpeditionId = this._doc.ExpeditionId - this._doc.ExpeditionId % 10 + 1; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAMTOWER_RESETOK"), "fece00"); + this._doc.GetSingleTowerActivityTop(); + } + + public bool OnEnterBattle(IXUIButton btn) + { + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + int level = this._doc.SingleTowerData.level; + bool flag = level >= teamTowerTable.Length; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAMTOWER_REACH_TOP"), "fece00"); + result = false; + } + else + { + TeamTowerRewardTable.RowData rowData = teamTowerTable[this._doc.SingleTowerData.level]; + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = (uint)rowData.SceneID; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + result = true; + } + return result; + } + + public void DoCountDown(object obj) + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + this._time_left = (float)singleTowerData.sweeplefttime - (Time.time - singleTowerData.sweepreqtime); + bool flag = this._count_timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._count_timer); + } + bool flag2 = this._time_left <= 0f; + if (flag2) + { + this._time_left = 0f; + this._in_sweeping = false; + this._sweep_finished = true; + this.SetTimeLeft(0); + this.OnCloseSweep(null); + this._doc.GetSingleTowerActivityTop(); + } + else + { + this.SetTimeLeft((int)this._time_left); + this._count_timer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.DoCountDown), null); + } + } + + private void InitTowerMap(int curfloor = 1) + { + TeamTowerRewardTable.RowData[] teamTowerTable = this._doc.GetTeamTowerTable(); + this._tower_max_floor = teamTowerTable.Length; + int num = this._doc.SingleTowerData.maxlevel; + num = ((num + 5 >= this._tower_max_floor) ? this._tower_max_floor : (num + 5)); + num = ((num % 2 == 0) ? num : (num + 1)); + int num2 = num / 2 - 1; + IXUILabel ixuilabel = base.uiBehaviour.transform.Find("Bg/Tower/TowerBase/Floor").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = base.uiBehaviour.transform.Find("Bg/Tower/TowerBase/Floor/Current/Normal/UI_hasd_gk").gameObject; + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("TEAMTOWER_LEVEL"), 1)); + bool flag = this._doc.SingleTowerData.level + 1 == 1; + if (flag) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + ixuilabel = (base.uiBehaviour.transform.Find("Bg/Tower/TowerBase/Floor1").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("TEAMTOWER_LEVEL"), 2)); + gameObject = base.uiBehaviour.transform.Find("Bg/Tower/TowerBase/Floor1/Current/Normal/UI_hasd_gk").gameObject; + bool flag2 = this._doc.SingleTowerData.level + 1 == 2; + if (flag2) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + IXUISprite ixuisprite = base.uiBehaviour.transform.Find("Bg/Tower/TowerBase/Floor/FirstBlood").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetVisible(false); + IXUISprite ixuisprite2 = base.uiBehaviour.transform.Find("Bg/Tower/TowerBase/Floor").GetComponent("XUISprite") as IXUISprite; + TeamTowerRewardTable.RowData rowData = teamTowerTable[0]; + bool flag3 = curfloor >= 1; + if (flag3) + { + ixuisprite2.SetEnabled(false); + } + else + { + ixuisprite2.SetEnabled(true); + } + ixuisprite2 = (base.uiBehaviour.transform.Find("Bg/Tower/TowerBase/Floor1").GetComponent("XUISprite") as IXUISprite); + ixuisprite = (base.uiBehaviour.transform.Find("Bg/Tower/TowerBase/Floor1/FirstBlood").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetVisible(false); + rowData = teamTowerTable[1]; + bool flag4 = curfloor >= 2; + if (flag4) + { + ixuisprite2.SetEnabled(false); + } + else + { + ixuisprite2.SetEnabled(true); + } + base.uiBehaviour.mTowerPool.ReturnAll(false); + for (int i = 0; i < num2; i++) + { + GameObject gameObject2 = base.uiBehaviour.mTowerPool.FetchGameObject(false); + Vector3 localPosition; + localPosition = new Vector3(base.uiBehaviour.mTowerPool.TplPos.x, base.uiBehaviour.mTowerPool.TplPos.y + (float)((base.uiBehaviour.mTowerPool.TplHeight - 60) * i), base.uiBehaviour.mTowerPool.TplPos.z); + gameObject2.transform.localPosition = localPosition; + rowData = teamTowerTable[(i + 1) * 2]; + ixuilabel = (gameObject2.transform.Find("Floor").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("TEAMTOWER_LEVEL"), (i + 1) * 2 + 1)); + ixuisprite2 = (gameObject2.transform.Find("Floor").GetComponent("XUISprite") as IXUISprite); + ixuisprite = (gameObject2.transform.Find("Floor/FirstBlood").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetVisible(false); + gameObject = gameObject2.transform.Find("Floor/Current/Normal/UI_hasd_gk").gameObject; + bool flag5 = this._doc.SingleTowerData.level + 1 == (i + 1) * 2 + 1; + if (flag5) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + bool flag6 = curfloor >= (i + 1) * 2 + 1; + if (flag6) + { + ixuisprite2.SetEnabled(false); + } + else + { + ixuisprite2.SetEnabled(true); + } + ixuilabel = (gameObject2.transform.Find("Floor1").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("TEAMTOWER_LEVEL"), (i + 1) * 2 + 2)); + ixuisprite = (gameObject2.transform.Find("Floor1/FirstBlood").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetVisible(false); + rowData = teamTowerTable[(i + 1) * 2 + 1]; + ixuisprite2 = (gameObject2.transform.Find("Floor1").GetComponent("XUISprite") as IXUISprite); + bool flag7 = curfloor >= (i + 1) * 2 + 2; + if (flag7) + { + ixuisprite2.SetEnabled(false); + } + else + { + ixuisprite2.SetEnabled(true); + } + gameObject = gameObject2.transform.Find("Floor1/Current/Normal/UI_hasd_gk").gameObject; + bool flag8 = this._doc.SingleTowerData.level + 1 == (i + 1) * 2 + 2; + if (flag8) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + } + base.uiBehaviour.mScroll.NeedRecalcBounds(); + base.uiBehaviour.mScroll.SetPosition(1f - (float)curfloor * 1f / (float)num); + } + + private bool OnGetReward(IXUIButton btn) + { + this._doc.GetSweepSingleTowerReward(); + return true; + } + + public void OnGotReward() + { + base.uiBehaviour.mSweepResult.SetVisible(false); + this._doc.GetSingleTowerActivityTop(); + } + + public void OnShowSweepResultFrame() + { + base.uiBehaviour.mSweepResult.SetVisible(true); + base.uiBehaviour.mRewardFx.SetVisible(false); + base.uiBehaviour.mEffect.SetActive(false); + this.OnRefreshResult(); + } + + public void OnHideSweepResultFrame() + { + base.uiBehaviour.mSweepResult.SetVisible(false); + } + + private bool OnRefreshReward(IXUIButton btn) + { + base.uiBehaviour.mRewardRefresh.SetEnable(false, false); + base.uiBehaviour.mRewardGet.SetEnable(false, false); + this._doc.RefreshSingleSweepReward(); + return true; + } + + public void OnStartPlayRefreshResultEffect(ErrorCode code, int res) + { + bool flag = code > ErrorCode.ERR_SUCCESS; + if (flag) + { + base.uiBehaviour.mRewardRefresh.SetEnable(true, false); + base.uiBehaviour.mRewardGet.SetEnable(true, false); + } + else + { + this._effect_result = (float)res / 100f; + this._doc.SingleTowerData.refreshcount++; + bool flag2 = this._doc.SingleTowerData.refreshcount >= this._refresh_cost.Count; + if (flag2) + { + this._doc.SingleTowerData.refreshcount = this._refresh_cost.Count; + } + base.uiBehaviour.mRewardFx.SetVisible(true); + base.uiBehaviour.mEffect.SetActive(false); + base.uiBehaviour.mRewardFreeTime.SetText(string.Format("{0}/{1}", this._refresh_cost.Count - this._doc.SingleTowerData.refreshcount, this._refresh_cost.Count)); + int index = (this._doc.SingleTowerData.refreshcount >= this._refresh_cost.Count) ? (this._refresh_cost.Count - 1) : this._doc.SingleTowerData.refreshcount; + bool flag3 = this._refresh_cost[index] == 0; + if (flag3) + { + base.uiBehaviour.mRewardFreeLabel.SetVisible(true); + base.uiBehaviour.mRewardMoneyNum.SetVisible(false); + } + else + { + base.uiBehaviour.mRewardFreeLabel.SetVisible(false); + base.uiBehaviour.mRewardMoneyNum.SetVisible(true); + base.uiBehaviour.mRewardMoneyNum.SetText(this._refresh_cost[index].ToString()); + string itemSmallIcon = XBagDocument.GetItemSmallIcon(this._refresh_money[index], 0u); + base.uiBehaviour.mRewardMoneySign.SetSprite(itemSmallIcon); + } + this.state = ActivityTeamTowerSingleDlg.State.BEGIN; + this.timePass.LeftTime = 10f; + } + } + + private int GetFrame(uint index) + { + bool flag = this.frames.Count <= 0; + int result; + if (flag) + { + result = 15; + } + else + { + bool flag2 = (long)this.frames.Count <= (long)((ulong)index); + if (flag2) + { + result = this.frames[this.frames.Count - 1]; + } + else + { + result = this.frames[(int)index]; + } + } + return result; + } + + public void OnRefreshReverseCount() + { + this.OnRefreshSweepInfo(); + } + + public void RefreshAlpha() + { + int num = XSingleton.singleton.RandomInt(0, this._random_list.Count); + float num2 = this._random_list[num]; + base.uiBehaviour.mRewardAlpha.SetText(string.Format("{0:F1}{1}", num2, XSingleton.singleton.GetString("FOLD"))); + base.uiBehaviour.mRewardAlpha.SetColor(XSingleton.singleton.GetItemQualityColor(num)); + } + + private void PlayAlphaFinished() + { + base.uiBehaviour.mRewardAlpha.SetText(string.Format("{0:F1}{1}", this._effect_result, XSingleton.singleton.GetString("FOLD"))); + for (int i = 0; i < this._random_list.Count; i++) + { + bool flag = this._random_list[i] == this._effect_result; + if (flag) + { + base.uiBehaviour.mRewardAlpha.SetColor(XSingleton.singleton.GetItemQualityColor(i)); + } + } + base.uiBehaviour.mRewardFx.SetVisible(false); + this.OnInitReward(base.uiBehaviour.mRewardFramePool, this._effect_result); + base.uiBehaviour.mRewardRefresh.SetEnable(true, false); + base.uiBehaviour.mRewardGet.SetEnable(true, false); + base.uiBehaviour.mEffect.SetActive(true); + } + + public void OnRefreshResult() + { + TeamTowerData singleTowerData = this._doc.SingleTowerData; + base.uiBehaviour.mRewardLevel.SetText(string.Format(XSingleton.singleton.GetString("TEAMTOWER_REACH_LEVEL"), (singleTowerData.maxlevel == 0) ? 1 : singleTowerData.maxlevel)); + base.uiBehaviour.mRewardAlpha.SetText(string.Format("{0:F1}{1}", 1, XSingleton.singleton.GetString("FOLD"))); + base.uiBehaviour.mRewardAlpha.SetColor(XSingleton.singleton.GetItemQualityColor(0)); + base.uiBehaviour.mRewardFreeTime.SetText(string.Format("{0}/{1}", this._refresh_cost.Count - this._doc.SingleTowerData.refreshcount, this._refresh_cost.Count)); + int index = (this._doc.SingleTowerData.refreshcount >= this._refresh_cost.Count) ? (this._refresh_cost.Count - 1) : this._doc.SingleTowerData.refreshcount; + bool flag = this._refresh_cost[index] == 0; + if (flag) + { + base.uiBehaviour.mRewardFreeLabel.SetVisible(true); + base.uiBehaviour.mRewardMoneyNum.SetVisible(false); + } + else + { + base.uiBehaviour.mRewardFreeLabel.SetVisible(false); + base.uiBehaviour.mRewardMoneyNum.SetVisible(true); + base.uiBehaviour.mRewardMoneyNum.SetText(this._refresh_cost[index].ToString()); + string itemSmallIcon = XBagDocument.GetItemSmallIcon(this._refresh_money[index], 0u); + base.uiBehaviour.mRewardMoneySign.SetSprite(itemSmallIcon); + } + this.OnInitReward(base.uiBehaviour.mRewardFramePool, 1f); + } + + public override void OnUpdate() + { + bool flag = this.state == ActivityTeamTowerSingleDlg.State.BEGIN; + if (flag) + { + this._play_count = 0; + this._acc_time = 0; + this.timePass.LeftTime = 10f; + this.state = ActivityTeamTowerSingleDlg.State.PLAY; + } + else + { + bool flag2 = this.state == ActivityTeamTowerSingleDlg.State.PLAY; + if (flag2) + { + this.timePass.Update(); + this._acc_time = (int)(this.timePass.PassTime * 1000f); + bool flag3 = this._acc_time > this.GetFrame((uint)this._play_count); + if (flag3) + { + this.timePass.LeftTime = 1f; + this._acc_time = 0; + this._play_count++; + this.RefreshAlpha(); + bool flag4 = this._play_count >= this._all_count; + if (flag4) + { + this._play_count = 0; + this.state = ActivityTeamTowerSingleDlg.State.Idle; + } + } + } + else + { + bool flag5 = this.state == ActivityTeamTowerSingleDlg.State.Idle; + if (flag5) + { + this.state = ActivityTeamTowerSingleDlg.State.None; + this.PlayAlphaFinished(); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlg.cs.meta new file mode 100644 index 00000000..04071263 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23b409d7477963b4cb71109512d8c3ea +timeCreated: 1611403457 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlgBehaviour.cs new file mode 100644 index 00000000..31c8ba84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlgBehaviour.cs @@ -0,0 +1,185 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ActivityTeamTowerSingleDlgBehaviour : DlgBehaviourBase + { + public IXUILabel mStage; + + public IXUILabel mResetNum; + + public IXUILabel mCurrentTime; + + public IXUIButton mMainClose; + + public IXUIButton m_Help; + + public IXUIButton mRank; + + public IXUIButton mGoBattle; + + public IXUILabel mDemandFP; + + public IXUIButton mSweepBtn; + + public IXUIButton mResetBtn; + + public IXUILabel mSweepLabel; + + public IXUIButton mBackClick; + + public IXUISprite mSweepResult; + + public IXUIScrollView mScroll; + + public IXUILabel mResetCount; + + public IXUISprite mResetSprite; + + public IXUISprite mSweepFrame; + + public IXUILabel mSweepedLevel; + + public IXUILabel mSweepEstimateTime; + + public IXUIButton mSingleDoSweep; + + public IXUIButton mDoubleSweep; + + public IXUIButton mDoubleDoSweep; + + public IXUIButton mCloseSweep; + + public IXUISprite mSingleMoneySign; + + public IXUILabel mSingleMoneyNum; + + public IXUISprite mDoubleMoneySign; + + public IXUILabel mDoubleMoneyNum; + + public XUIPool mRewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool mMainRewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool mTowerPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel mRewardLevel; + + public IXUILabel mRewardAlpha; + + public IXUILabel mRewardFreeTime; + + public IXUIButton mRewardRefresh; + + public IXUIButton mRewardGet; + + public IXUISprite mRewardFx; + + public IXUILabel mRewardMoneyNum; + + public IXUISprite mRewardMoneySign; + + public IXUILabel mRewardFreeLabel; + + public GameObject mEffect; + + public IXUIButton mFirstPassBtn; + + public IXUISprite mFirstPassRedPoint; + + public IXUILabel mFirstPassLevel; + + public IXUISprite mFirstPassPanel; + + public IXUIButton mFirstPassGetReward; + + public IXUISprite mFIrstPassCheck; + + public IXUIButton mFirstPassCheckReward; + + public IXUISprite mFirstPassGet; + + public IXUILabel mFirstPassPlsThrough; + + public IXUILabel mFirstPassCongraThrough; + + public IXUISprite mFirstPassBackClick; + + public IXUITweenTool mFirstPassPlayTween; + + public XUIPool mRewardFramePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool mFirstPassReward = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.mCurrentTime = (base.transform.Find("Bg/times").GetComponent("XUILabel") as IXUILabel); + this.mSweepBtn = (base.transform.Find("Bg/SweepBtn").GetComponent("XUIButton") as IXUIButton); + this.mResetBtn = (base.transform.Find("Bg/Reset").GetComponent("XUIButton") as IXUIButton); + this.mSweepLabel = (base.transform.Find("Bg/SweepInfo").GetComponent("XUILabel") as IXUILabel); + this.mSweepFrame = (base.transform.Find("Bg/SweepFrame").GetComponent("XUISprite") as IXUISprite); + this.mResetCount = (base.transform.Find("Bg/Reset/Number/Num").GetComponent("XUILabel") as IXUILabel); + this.mResetSprite = (base.transform.Find("Bg/Reset/Number").GetComponent("XUISprite") as IXUISprite); + this.mStage = (base.transform.Find("Bg/Stagepanel/Stage").GetComponent("XUILabel") as IXUILabel); + this.mResetNum = (base.transform.Find("Bg/times").GetComponent("XUILabel") as IXUILabel); + this.mMainClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.mRank = (base.transform.Find("Bg/Rank").GetComponent("XUIButton") as IXUIButton); + this.mGoBattle = (base.transform.Find("Bg/GoBattle").GetComponent("XUIButton") as IXUIButton); + this.mScroll = (base.transform.Find("Bg/Tower").GetComponent("XUIScrollView") as IXUIScrollView); + this.mDemandFP = (base.transform.Find("Bg/Stagepanel/Reward/fp").GetComponent("XUILabel") as IXUILabel); + this.mSweepedLevel = (base.transform.Find("Bg/SweepFrame/SweepLevel").GetComponent("XUILabel") as IXUILabel); + this.mSweepEstimateTime = (base.transform.Find("Bg/SweepFrame/SweepTime").GetComponent("XUILabel") as IXUILabel); + this.mSingleDoSweep = (base.transform.Find("Bg/SweepFrame/SweepBtnNow").GetComponent("XUIButton") as IXUIButton); + this.mDoubleSweep = (base.transform.Find("Bg/SweepFrame/SweepBtnNormal").GetComponent("XUIButton") as IXUIButton); + this.mDoubleDoSweep = (base.transform.Find("Bg/SweepFrame/SweepBtnQuick").GetComponent("XUIButton") as IXUIButton); + this.mCloseSweep = (base.transform.Find("Bg/SweepFrame/Close").GetComponent("XUIButton") as IXUIButton); + this.mBackClick = (base.transform.Find("Bg/SweepFrame/backclick").GetComponent("XUIButton") as IXUIButton); + this.mSingleMoneySign = (base.transform.Find("Bg/SweepFrame/SweepBtnNow/moneysign").GetComponent("XUISprite") as IXUISprite); + this.mSingleMoneyNum = (base.transform.Find("Bg/SweepFrame/SweepBtnNow/moneynum").GetComponent("XUILabel") as IXUILabel); + this.mDoubleMoneySign = (base.transform.Find("Bg/SweepFrame/SweepBtnQuick/moneysign").GetComponent("XUISprite") as IXUISprite); + this.mDoubleMoneyNum = (base.transform.Find("Bg/SweepFrame/SweepBtnQuick/moneynum").GetComponent("XUILabel") as IXUILabel); + this.mRewardPool.SetupPool(base.transform.Find("Bg/SweepFrame/Grid").gameObject, base.transform.Find("Bg/SweepFrame/Grid/ItemTpl").gameObject, 2u, false); + this.mTowerPool.SetupPool(base.transform.Find("Bg/Tower").gameObject, base.transform.Find("Bg/Tower/Towerrepeat").gameObject, 5u, false); + this.mMainRewardPool.SetupPool(base.transform.Find("Bg/Stagepanel").gameObject, base.transform.Find("Bg/Stagepanel/Item").gameObject, 2u, false); + this.mSweepResult = (base.transform.Find("Bg/SweepResult").GetComponent("XUISprite") as IXUISprite); + this.mRewardLevel = (base.transform.Find("Bg/SweepResult/Result").GetComponent("XUILabel") as IXUILabel); + this.mRewardAlpha = (base.transform.Find("Bg/SweepResult/Buff/Time").GetComponent("XUILabel") as IXUILabel); + this.mRewardFreeTime = (base.transform.Find("Bg/SweepResult/Refresh/Time").GetComponent("XUILabel") as IXUILabel); + this.mRewardRefresh = (base.transform.Find("Bg/SweepResult/Refresh").GetComponent("XUIButton") as IXUIButton); + this.mRewardGet = (base.transform.Find("Bg/SweepResult/GetReward").GetComponent("XUIButton") as IXUIButton); + this.mRewardFx = (base.transform.Find("Bg/SweepResult/Buff/Fx").GetComponent("XUISprite") as IXUISprite); + this.mRewardMoneyNum = (base.transform.Find("Bg/SweepResult/Refresh/moneynum").GetComponent("XUILabel") as IXUILabel); + this.mRewardMoneySign = (base.transform.Find("Bg/SweepResult/Refresh/moneynum/moneysign").GetComponent("XUISprite") as IXUISprite); + this.mRewardFreeLabel = (base.transform.Find("Bg/SweepResult/Refresh/moneyfree").GetComponent("XUILabel") as IXUILabel); + this.mRewardFramePool.SetupPool(base.transform.Find("Bg/SweepResult").gameObject, base.transform.Find("Bg/SweepResult/Item").gameObject, 2u, false); + Transform transform = base.transform.Find("Bg/SweepResult/Buff/Time/UI_heianshendian/UI_heianshendian/kuosan_00"); + this.mEffect = base.transform.Find("Bg/SweepResult/Buff/Time/UI_heianshendian/UI_heianshendian").gameObject; + this.mFirstPassBtn = (base.transform.Find("Bg/FirstBlood").GetComponent("XUIButton") as IXUIButton); + this.mFirstPassRedPoint = (base.transform.Find("Bg/FirstBlood/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.mFirstPassLevel = (base.transform.Find("Bg/FirstBlood/StageNum/Num").GetComponent("XUILabel") as IXUILabel); + this.mFirstPassPanel = (base.transform.Find("Bg/FirstReward").GetComponent("XUISprite") as IXUISprite); + this.mFirstPassGetReward = (base.transform.Find("Bg/FirstReward/GetReward/BtnReward").GetComponent("XUIButton") as IXUIButton); + this.mFirstPassCheckReward = (base.transform.Find("Bg/FirstReward/CheckReward/BtnReward").GetComponent("XUIButton") as IXUIButton); + this.mFIrstPassCheck = (base.transform.Find("Bg/FirstReward/CheckReward").GetComponent("XUISprite") as IXUISprite); + this.mFirstPassGet = (base.transform.Find("Bg/FirstReward/GetReward").GetComponent("XUISprite") as IXUISprite); + this.mFirstPassPlsThrough = (base.transform.Find("Bg/FirstReward/CheckReward/Result").GetComponent("XUILabel") as IXUILabel); + this.mFirstPassCongraThrough = (base.transform.Find("Bg/FirstReward/GetReward/Result").GetComponent("XUILabel") as IXUILabel); + this.mFirstPassBackClick = (base.transform.Find("Bg/FirstReward/backclick").GetComponent("XUISprite") as IXUISprite); + this.mFirstPassPlayTween = (base.transform.Find("Bg/FirstBlood/Box").GetComponent("XUIPlayTween") as IXUITweenTool); + this.mFirstPassReward.SetupPool(base.transform.Find("Bg/FirstReward").gameObject, base.transform.Find("Bg/FirstReward/Item").gameObject, 3u, false); + } + + private void OnApplicationPause(bool pause) + { + XSingleton.singleton.AddLog("OnApplicationPause:", pause.ToString(), null, null, null, null, XDebugColor.XDebug_None); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.OnAppPaused(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlgBehaviour.cs.meta new file mode 100644 index 00000000..98bb881e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityTeamTowerSingleDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 351334df75378fd4d8b4d3a2117035f5 +timeCreated: 1611403557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityWeekendPartyView.cs b/Client/Assets/Scripts/XMainClient/UI/ActivityWeekendPartyView.cs new file mode 100644 index 00000000..5f706781 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityWeekendPartyView.cs @@ -0,0 +1,174 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ActivityWeekendPartyView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/WeekendPartyDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XWeekendPartyDocument _Doc; + + private uint sceneID = 0u; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.ReqWeekendPartInfo(); + this.RefreshMatchBtn(); + base.uiBehaviour.m_TimeTip.SetText(XSingleton.singleton.GetString("WeekendPartyTimeTip")); + } + + public void RefreshActivityInfo(WeekEnd4v4GetInfoRes oRes) + { + bool flag = !base.IsVisible(); + if (!flag) + { + WeekEnd4v4List.RowData activityInfo = this._Doc.GetActivityInfo(oRes.thisActivityID); + bool flag2 = activityInfo != null; + if (flag2) + { + this.sceneID = activityInfo.SceneID; + base.uiBehaviour.m_CurrActName.SetText(activityInfo.Name); + base.uiBehaviour.m_Rule.SetText(XSingleton.singleton.ReplaceReturn(activityInfo.Rule)); + base.uiBehaviour.m_Bg.SetTexturePath(activityInfo.TexturePath); + base.uiBehaviour.m_Times.SetText(string.Format("{0}/{1}", (activityInfo.RewardTimes > oRes.joinCount) ? (activityInfo.RewardTimes - oRes.joinCount) : 0u, activityInfo.RewardTimes)); + base.uiBehaviour.m_DropAwardPool.FakeReturnAll(); + for (int i = 0; i < activityInfo.DropItems.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_DropAwardPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_DropAward.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + this.FillAwardItem(gameObject, activityInfo.DropItems[i, 0], activityInfo.DropItems[i, 1]); + } + base.uiBehaviour.m_DropAwardPool.ActualReturnAll(true); + base.uiBehaviour.m_DropAward.Refresh(); + } + } + } + + private void FillAwardItem(GameObject item, uint id, uint count) + { + XSingleton.singleton.normalItemDrawer.DrawItem(item, (int)id, (int)count, false); + IXUISprite ixuisprite = item.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)id; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_SingleMatch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSingleMatchClick)); + base.uiBehaviour.m_TeamMatch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTeamMatchClick)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClick)); + } + + protected override void OnHide() + { + base.uiBehaviour.m_Bg.SetTexturePath(""); + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_MulActivity_WeekendParty); + return true; + } + + private bool OnSingleMatchClick(IXUIButton btn) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + bool result; + if (bInTeam) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CAPTAIN_SINGLE_MATCH_TIP"), "fece00"); + result = false; + } + else + { + KMatchOp op = (specificDocument.SoloMatchType != KMatchType.KMT_WEEKEND_ACT) ? KMatchOp.KMATCH_OP_START : KMatchOp.KMATCH_OP_STOP; + specificDocument.ReqMatchStateChange(KMatchType.KMT_WEEKEND_ACT, op, false); + result = true; + } + return result; + } + + public void RefreshMatchBtn() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + base.uiBehaviour.m_SingleMatchLabel.SetText((specificDocument.SoloMatchType == KMatchType.KMT_WEEKEND_ACT) ? string.Format("{0}...", XStringDefineProxy.GetString("MATCHING")) : XStringDefineProxy.GetString("CAPTAINPVP_SINGLE")); + base.uiBehaviour.m_TeamMatch.SetEnable(specificDocument.SoloMatchType != KMatchType.KMT_WEEKEND_ACT, false); + } + + private bool OnTeamMatchClick(IXUIButton btn) + { + this.SetVisible(false, true); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch((int)this.sceneID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ActivityWeekendPartyView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ActivityWeekendPartyView.cs.meta new file mode 100644 index 00000000..41dc79b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ActivityWeekendPartyView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a09d6b21027a25747bb45dfc014e6e88 +timeCreated: 1611404250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AncientHandler.cs b/Client/Assets/Scripts/XMainClient/UI/AncientHandler.cs new file mode 100644 index 00000000..3fdd3e25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AncientHandler.cs @@ -0,0 +1,279 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AncientHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/AncientActivityMain"; + } + } + + private const int cnt = 4; + + private uint present; + + private IXUIProgress m_prograss; + + public IXUIButton m_btn; + + public IXUISprite m_sprRBg; + + public IXUILabel m_lblPoint; + + public IXUILabel m_bldesc; + + private XDummy m_Dummy; + + private IUIDummy m_Snapshot; + + public IXUILabel m_lblName; + + public IXUILabel m_lblTime; + + private IXUISprite m_sprEnd; + + private IXUISprite m_sprEndRed; + + private IXUISprite[] chests = new IXUISprite[4]; + + private Transform[] reds = new Transform[4]; + + private Transform[] chests2 = new Transform[4]; + + private IXUIWrapContent m_wrap; + + private IXUIScrollView m_scroll; + + private List list; + + private int maxPoint = 0; + + private int itemid = 0; + + protected override void Init() + { + base.Init(); + this.present = (uint)XSingleton.singleton.GetInt("BigPrizeUid"); + this.maxPoint = XSingleton.singleton.GetInt("BigPrizeMax"); + this.itemid = XSingleton.singleton.GetInt("BigPrizeItemid"); + this.m_bldesc = (base.transform.Find("Main/UpView/t").GetComponent("XUILabel") as IXUILabel); + this.m_sprEnd = (base.transform.Find("Main/UpView/Progress/end").GetComponent("XUISprite") as IXUISprite); + this.m_sprEndRed = (this.m_sprEnd.transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_Snapshot = (base.transform.Find("Main/snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_lblName = (base.transform.Find("Main/endreward").GetComponent("XUILabel") as IXUILabel); + this.m_lblTime = (base.transform.Find("Main/t").GetComponent("XUILabel") as IXUILabel); + this.m_prograss = (base.transform.Find("Main/UpView/Progress").GetComponent("XUIProgress") as IXUIProgress); + this.m_sprRBg = (base.transform.Find("Main/snapshot/Bg").GetComponent("XUISprite") as IXUISprite); + this.m_btn = (base.transform.Find("Main/Btn").GetComponent("XUIButton") as IXUIButton); + this.m_lblPoint = (base.transform.Find("Main/UpView/dian").GetComponent("XUILabel") as IXUILabel); + this.m_scroll = (base.transform.Find("Main/RightView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_wrap = (base.transform.Find("Main/RightView/wrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + int i = 0; + int num = this.chests.Length; + while (i < num) + { + this.chests[i] = (base.transform.Find("Main/UpView/Progress/Chests/Chest" + i).GetComponent("XUISprite") as IXUISprite); + this.chests2[i] = base.transform.Find("Main/UpView/Progress/Chests/Chest_" + i); + this.reds[i] = this.chests[i].gameObject.transform.Find("RedPoint"); + i++; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_sprRBg.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnAvatarDrag)); + this.m_btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTaskBtnclick)); + this.m_wrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateItem)); + int i = 0; + int num = this.chests.Length; + while (i < num) + { + this.chests[i].ID = (ulong)((long)i); + this.chests[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClick)); + i++; + } + this.m_sprEnd.ID = (ulong)((long)this.chests.Length); + this.m_sprEnd.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_lblName.SetText(XStringDefineProxy.GetString("AncientName")); + this.m_lblTime.SetText(XStringDefineProxy.GetString("AncientTime")); + this.m_bldesc.SetText(XStringDefineProxy.GetString("AncientNamber")); + this.RefreshList(); + base.Alloc3DAvatarPool("BigPrizeHandler", 1); + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, this.present, this.m_Snapshot, this.m_Dummy, 1f); + } + + public void RefreshList() + { + XAncientDocument specificDocument = XDocuments.GetSpecificDocument(XAncientDocument.uuID); + this.list = specificDocument.GetSortTask(); + this.m_scroll.ResetPosition(); + this.m_wrap.SetContentCount(this.list.Count, false); + this.itemid = XSingleton.singleton.GetInt("BigPrizeItemid"); + XItem xitem = XBagDocument.MakeXItem(this.itemid, false); + int num = 0; + bool flag = xitem != null; + if (flag) + { + num = xitem.itemCount; + } + this.m_lblPoint.SetText(num + "/" + this.maxPoint); + this.m_prograss.value = (float)num / (float)this.maxPoint; + this.RefreshChest(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshList(); + XAncientDocument specificDocument = XDocuments.GetSpecificDocument(XAncientDocument.uuID); + specificDocument.CheckRed(); + base.Alloc3DAvatarPool("CarnivalRwdHander", 1); + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, this.present, this.m_Snapshot, this.m_Dummy, 1f); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + this.m_Dummy = null; + } + + protected override void OnHide() + { + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnHide(); + } + + public override void OnUnload() + { + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnUnload(); + } + + protected bool OnAvatarDrag(Vector2 delta) + { + bool flag = this.m_Dummy != null; + if (flag) + { + this.m_Dummy.EngineObject.Rotate(Vector3.up, -delta.x / 2f); + } + return true; + } + + public void RefreshChest() + { + XAncientDocument specificDocument = XDocuments.GetSpecificDocument(XAncientDocument.uuID); + bool flag = specificDocument.state != null; + if (flag) + { + int i = 0; + int num = this.chests.Length; + while (i < num) + { + bool flag2 = specificDocument.state[i]; + bool active = !flag2 && specificDocument.PointEnough(i); + this.reds[i].gameObject.SetActive(active); + this.chests2[i].gameObject.SetActive(flag2); + this.chests[i].SetAlpha((float)(flag2 ? 0 : 1)); + i++; + } + int num2 = this.chests.Length; + bool visible = !specificDocument.state[num2] && specificDocument.PointEnough(num2); + this.m_sprEndRed.SetVisible(visible); + } + } + + private void OnChestClick(IXUISprite spr) + { + int i = 0; + int num = XAncientDocument.ancientTable.Table.Length; + while (i < num) + { + AncientTimesTable.RowData rowData = XAncientDocument.ancientTable.Table[i]; + bool flag = rowData.ID == (uint)spr.ID + 1u; + if (flag) + { + DlgBase.singleton.Show(rowData); + break; + } + i++; + } + } + + private bool OnTaskBtnclick(IXUIButton btn) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + return true; + } + + private void UpdateItem(Transform t, int index) + { + bool flag = index < this.list.Count; + if (flag) + { + IXUIButton ixuibutton = t.Find("Go").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Description").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Progress").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Finish").GetComponent("XUISprite") as IXUISprite; + uint state = this.list[index].state; + ixuilabel.SetText(this.list[index].row.title); + ixuilabel3.SetText(string.Format("{0}/{1}", this.list[index].progress, this.list[index].row.cnt)); + ixuisprite.SetVisible(state == 2u); + ixuibutton.ID = (ulong)((long)index); + this.SetBtn(ixuibutton, (ActivityTaskState)state); + ixuilabel2.SetText(XStringDefineProxy.GetString("AncientDes", new object[] + { + this.list[index].row.items[0, 1] + })); + } + } + + private void SetBtn(IXUIButton btn, ActivityTaskState state) + { + btn.SetVisible(state != ActivityTaskState.Fetched); + IXUILabel ixuilabel = btn.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = btn.gameObject.transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText((state == ActivityTaskState.Uncomplete) ? XStringDefineProxy.GetString("PVPActivity_Go") : XStringDefineProxy.GetString("SRS_FETCH")); + ixuisprite.SetVisible(state == ActivityTaskState.Complete); + btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnItemBtnClick)); + } + + private bool OnItemBtnClick(IXUIButton btn) + { + BigPrizeNode bigPrizeNode = this.list[(int)btn.ID]; + bool flag = bigPrizeNode.state == 0u; + if (flag) + { + XSingleton.singleton.OpenSystem((int)bigPrizeNode.row.jump); + } + else + { + XAncientDocument specificDocument = XDocuments.GetSpecificDocument(XAncientDocument.uuID); + specificDocument.ReqClaim(bigPrizeNode.taskid); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AncientHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AncientHandler.cs.meta new file mode 100644 index 00000000..2ac951c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AncientHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7035e02118c81ca45b9589e0d428723e +timeCreated: 1611403931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AnnounceView.cs b/Client/Assets/Scripts/XMainClient/UI/AnnounceView.cs new file mode 100644 index 00000000..210cc59e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AnnounceView.cs @@ -0,0 +1,122 @@ +using System; +using System.Text; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AnnounceView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ForeshowDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool isHideTutorial + { + get + { + return true; + } + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickClosedSpr)); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + public void RefreshUI() + { + this.FillContent(); + } + + private void FillContent() + { + bool flag = base.uiBehaviour.m_playerTween != null; + if (flag) + { + base.uiBehaviour.m_playerTween.ResetTween(true); + base.uiBehaviour.m_playerTween.PlayTween(true, -1f); + } + SystemAnnounce.RowData sysAnnounceData = XSingleton.singleton.GetSysAnnounceData(XSingleton.singleton.XPlayerData.Level); + bool flag2 = sysAnnounceData == null; + if (!flag2) + { + base.uiBehaviour.m_iconSpr.SetSprite(sysAnnounceData.IconName); + base.uiBehaviour.m_nameLab.SetText(sysAnnounceData.SystemDescription); + base.uiBehaviour.m_levelLab.SetText(string.Format(XSingleton.singleton.GetString("SKILL_LEARN"), sysAnnounceData.OpenAnnounceLevel)); + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < sysAnnounceData.AnnounceDesc.Length; i++) + { + stringBuilder.Append(sysAnnounceData.AnnounceDesc[i]); + bool flag3 = i != sysAnnounceData.AnnounceDesc.Length - 1; + if (flag3) + { + stringBuilder.Append("{n}"); + } + } + base.uiBehaviour.m_describeLab.SetText(XSingleton.singleton.ReplaceReturn(stringBuilder.ToString())); + } + } + + protected void OnClickClosedSpr(IXUISprite sp) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AnnounceView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AnnounceView.cs.meta new file mode 100644 index 00000000..3e31faa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AnnounceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7552b31422f96fa44bc29492c5cbc0ea +timeCreated: 1611403946 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AnnouncementHandler.cs b/Client/Assets/Scripts/XMainClient/UI/AnnouncementHandler.cs new file mode 100644 index 00000000..60d906cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AnnouncementHandler.cs @@ -0,0 +1,254 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AnnouncementHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/ActivityAnnouncement"; + } + } + + private XAnnouncementDocument _doc; + + private IXUITable m_Table; + + private XUIPool m_NoticePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ActivityPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private GameObject _last_notice = null; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + base.Init(); + this.m_Table = (base.PanelObject.transform.Find("ScrollView/Table").GetComponent("XUITable") as IXUITable); + Transform transform = base.PanelObject.transform.Find("ScrollView/Table/NoticeTpl"); + this.m_NoticePool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.PanelObject.transform.Find("ScrollView/Table/ActivityTpl"); + this.m_ActivityPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.PanelObject.transform.Find("Tabs/TabTpl"); + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.CurrentTab = 0; + this._doc.SendFetchNotice(); + this.RefreshData(); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.DestroyTextureInActivePool(this.m_NoticePool, "ChildList/LevelTwoTpl/Texture"); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshTab(); + int currentTab = this._doc.CurrentTab; + if (currentTab != 0) + { + if (currentTab == 1) + { + this.RefreshNoticeList(); + } + } + else + { + this.RefreshActivityList(); + } + this._last_notice = null; + } + + public void RefreshTab() + { + this.m_TabPool.ReturnAll(false); + for (int i = 0; i < 2; i++) + { + GameObject gameObject = this.m_TabPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + Transform transform = gameObject.transform.Find("Bg/RedPoint"); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuilabel.SetText(XStringDefineProxy.GetString(string.Format("AnnouncementTab{0}", i))); + ixuilabel2.SetText(XStringDefineProxy.GetString(string.Format("AnnouncementTab{0}", i))); + transform.gameObject.SetActive(this._doc.GetTabRedPoint(i)); + ixuicheckBox.ForceSetFlag(i == this._doc.CurrentTab); + ixuicheckBox.ID = (ulong)((long)i); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClicked)); + gameObject.transform.localPosition = this.m_TabPool.TplPos + new Vector3((float)(i * this.m_TabPool.TplWidth), 0f); + } + } + + private bool OnTabClicked(IXUICheckBox checkbox) + { + bool bChecked = checkbox.bChecked; + if (bChecked) + { + this._doc.CurrentTab = (int)checkbox.ID; + this.RefreshData(); + } + return true; + } + + public void RefreshActivityList() + { + this.m_ActivityPool.ReturnAll(false); + this.m_NoticePool.ReturnAll(false); + for (int i = 0; i < this._doc.NoticeList.Count; i++) + { + bool flag = this._doc.NoticeList[i].type != 6u; + if (!flag) + { + GameObject gameObject = this.m_ActivityPool.FetchGameObject(false); + gameObject.name = "activity" + i.ToString("d4"); + IXUITexture ixuitexture = gameObject.GetComponent("XUITexture") as IXUITexture; + IXUITexture ixuitexture2 = gameObject.transform.Find("ActivityTex").GetComponent("XUITexture") as IXUITexture; + IXUILabel ixuilabel = gameObject.transform.Find("ChildList/LevelTwoTpl/Label").GetComponent("XUILabel") as IXUILabel; + Transform transform = gameObject.transform.Find("new"); + transform.gameObject.SetActive(this._doc.NoticeList[i].isnew); + ixuitexture2.SetVisible(true); + XSingleton.singleton.Load(this._doc.NoticeList[i].title, ixuitexture2, DlgBase.singleton.uiBehaviour); + ixuilabel.SetText(this._doc.NoticeList[i].content); + ixuitexture.ID = (ulong)((long)i); + ixuitexture.RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnActivityClicked)); + Transform transform2 = gameObject.transform.Find("ChildList"); + transform2.localScale = new Vector3(1f, 0f, 1f); + } + } + this.m_Table.RePositionNow(); + } + + public void RefreshNoticeList() + { + this.m_ActivityPool.ReturnAll(false); + this.m_NoticePool.ReturnAll(false); + for (int i = 0; i < this._doc.NoticeList.Count; i++) + { + bool flag = this._doc.NoticeList[i].type != 3u && this._doc.NoticeList[i].type != 4u; + if (!flag) + { + GameObject gameObject = this.m_NoticePool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + gameObject.name = "notice" + i.ToString("d4"); + Transform transform = gameObject.transform.Find("new"); + IXUILabel ixuilabel = gameObject.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Time").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Selected/Title").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject.transform.Find("Selected/Time").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = gameObject.transform.Find("ChildList/LevelTwoTpl/Label").GetComponent("XUILabel") as IXUILabel; + IXUITexture ixuitexture = gameObject.transform.Find("ChildList/LevelTwoTpl/Texture").GetComponent("XUITexture") as IXUITexture; + transform.gameObject.SetActive(this._doc.NoticeList[i].isnew); + ixuilabel.SetText(this._doc.NoticeList[i].title); + ixuilabel3.SetText(this._doc.NoticeList[i].title); + DateTime dateTime = XSingleton.singleton.TimeNow(this._doc.NoticeList[i].updatetime, true); + ixuilabel2.SetText(dateTime.ToString("yyyy-MM-dd")); + ixuilabel4.SetText(dateTime.ToString("yyyy-MM-dd")); + uint type = this._doc.NoticeList[i].type; + if (type != 3u) + { + if (type == 4u) + { + ixuilabel5.SetVisible(false); + ixuitexture.SetVisible(true); + XSingleton.singleton.Load(this._doc.NoticeList[i].content, ixuitexture, DlgBase.singleton.uiBehaviour); + } + } + else + { + ixuilabel5.SetVisible(true); + ixuitexture.SetVisible(false); + ixuilabel5.SetText(this._doc.NoticeList[i].content); + } + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnNoticeClicked)); + Transform transform2 = gameObject.transform.Find("Selected"); + Transform transform3 = gameObject.transform.Find("ChildList"); + transform2.gameObject.SetActive(false); + transform3.localScale = new Vector3(1f, 0f, 1f); + } + } + this.m_Table.RePositionNow(); + } + + private void OnNoticeClicked(IXUISprite sp) + { + bool flag = sp.gameObject == this._last_notice; + if (flag) + { + IXUITweenTool ixuitweenTool = this._last_notice.GetComponent("XUIPlayTween") as IXUITweenTool; + Transform transform = this._last_notice.transform.Find("Selected"); + transform.gameObject.SetActive(false); + ixuitweenTool.PlayTween(false, -1f); + this._last_notice = null; + } + else + { + IXUITweenTool ixuitweenTool2 = sp.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + Transform transform2 = sp.transform.Find("Selected"); + transform2.gameObject.SetActive(true); + ixuitweenTool2.PlayTween(true, -1f); + bool flag2 = this._last_notice != null; + if (flag2) + { + IXUITweenTool ixuitweenTool3 = this._last_notice.GetComponent("XUIPlayTween") as IXUITweenTool; + Transform transform3 = this._last_notice.transform.Find("Selected"); + transform3.gameObject.SetActive(false); + ixuitweenTool3.PlayTween(false, -1f); + } + this._last_notice = sp.gameObject; + } + bool isnew = this._doc.NoticeList[(int)sp.ID].isnew; + if (isnew) + { + this._doc.SendClickNotice(this._doc.NoticeList[(int)sp.ID]); + Transform transform4 = sp.transform.Find("new"); + transform4.gameObject.SetActive(false); + } + } + + private void OnActivityClicked(IXUITexture tex) + { + bool flag = tex.gameObject == this._last_notice; + if (flag) + { + IXUITweenTool ixuitweenTool = this._last_notice.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(false, -1f); + this._last_notice = null; + } + else + { + IXUITweenTool ixuitweenTool2 = tex.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool2.PlayTween(true, -1f); + bool flag2 = this._last_notice != null; + if (flag2) + { + IXUITweenTool ixuitweenTool3 = this._last_notice.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool3.PlayTween(false, -1f); + } + this._last_notice = tex.gameObject; + } + bool isnew = this._doc.NoticeList[(int)tex.ID].isnew; + if (isnew) + { + this._doc.SendClickNotice(this._doc.NoticeList[(int)tex.ID]); + Transform transform = tex.gameObject.transform.Find("new"); + transform.gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AnnouncementHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AnnouncementHandler.cs.meta new file mode 100644 index 00000000..6e48b67d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AnnouncementHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8470ef2dc28da394a824d7c5391e5170 +timeCreated: 1611404048 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactAtlasHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactAtlasHandler.cs new file mode 100644 index 00000000..a9b29484 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactAtlasHandler.cs @@ -0,0 +1,403 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactAtlasHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/ArtifactAtlasDlg"; + } + } + + private readonly int m_itemCount = 4; + + private uint m_selectArtifactId = 0u; + + private IXUIButton m_closedBtn; + + private ArtifactAtlasDocument m_doc; + + private IXUITable m_itemTypeTable; + + private IXUICheckBox m_curItemType2nd; + + private IXUIScrollView m_itemTypeScrollView; + + private XUIPool m_itemType1stPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_itemType2ndPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_suitNameLab; + + private IXUILabel m_effectTittleLab; + + private IXUILabel m_effectDesLab; + + private GameObject[] m_suitItemsGo; + + private Transform m_suitPanelTra; + + private XUIPool m_suitAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactAtlasDocument.Doc; + this.m_closedBtn = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.InitTypeList(); + this.InitSuit(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosed)); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowItemType(); + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_itemType1stPool != null; + if (flag) + { + this.m_itemType1stPool.ReturnAll(false); + } + bool flag2 = this.m_itemType2ndPool != null; + if (flag2) + { + this.m_itemType2ndPool.ReturnAll(false); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void InitTypeList() + { + Transform transform = base.PanelObject.transform.Find("Bg/TypeList"); + this.m_itemTypeScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = transform.Find("Table"); + this.m_itemTypeTable = (transform.GetComponent("XUITable") as IXUITable); + transform = base.PanelObject.transform.Find("Bg/TypeList/Table/LevelOneTpl"); + this.m_itemType1stPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + transform = base.PanelObject.transform.Find("Bg/TypeList/Table/LevelTwoTpl"); + this.m_itemType2ndPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + } + + private void InitSuit() + { + Transform transform = base.PanelObject.transform.Find("Bg/Bg/p"); + this.m_suitItemsGo = new GameObject[this.m_itemCount]; + Transform transform2; + for (int i = 0; i < this.m_itemCount; i++) + { + transform2 = transform.Find("item" + i.ToString()); + bool flag = transform2 == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("item" + i.ToString() + "is null", null, null, null, null, null); + } + else + { + this.m_suitItemsGo[i] = transform2.gameObject; + IXUISprite ixuisprite = transform2.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectItem)); + } + } + transform = base.PanelObject.transform.Find("Bg/Bg/EffectFrame"); + this.m_effectTittleLab = (transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_effectDesLab = (transform.Find("Panel/Text").GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Bg/Bg/SuitFrame"); + this.m_suitNameLab = (transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_suitPanelTra = transform.Find("Panel"); + transform2 = transform.Find("Attr"); + this.m_suitAttrPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 3u, true); + this.m_suitNameLab = (base.PanelObject.transform.Find("Bg/Bg/SuitName").GetComponent("XUILabel") as IXUILabel); + } + + private void ShowItemType() + { + List levelSuitList = this.m_doc.GetLevelSuitList(); + this.m_itemType1stPool.ReturnAll(true); + this.m_itemType2ndPool.ReturnAll(true); + for (int i = 0; i < levelSuitList.Count; i++) + { + ArtifactSuitLevel artifactSuitLevel = levelSuitList[i]; + bool flag = artifactSuitLevel == null; + if (!flag) + { + GameObject gameObject = this.m_itemType1stPool.FetchGameObject(false); + gameObject.name = artifactSuitLevel.SuitLevel.ToString(); + IXUISprite ixuisprite = gameObject.transform.Find("Switch").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemType1st)); + Transform transform = gameObject.transform.Find("ChildList"); + bool flag2 = (artifactSuitLevel.IsDefultSelect && transform.localScale.y == 0f) || (!artifactSuitLevel.IsDefultSelect && transform.localScale.y != 0f); + if (flag2) + { + ixuisprite.SetSprite("l_add_01"); + IXUITweenTool ixuitweenTool = ixuisprite.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + IXUILabel ixuilabel = gameObject.transform.Find("SelectLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("ArtifactLevel"), artifactSuitLevel.SuitLevel)); + ixuilabel.gameObject.SetActive(artifactSuitLevel.IsDefultSelect); + ixuilabel = (gameObject.transform.Find("UnSelectLab").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("ArtifactLevel"), artifactSuitLevel.SuitLevel)); + ixuilabel.gameObject.SetActive(!artifactSuitLevel.IsDefultSelect); + int num = 0; + foreach (uint num2 in artifactSuitLevel.SuitIdList) + { + ArtifactSuit suitBySuitId = ArtifactDocument.SuitMgr.GetSuitBySuitId(num2); + bool flag3 = suitBySuitId == null || suitBySuitId.EffectsNum == 0; + if (!flag3) + { + GameObject gameObject2 = this.m_itemType2ndPool.FetchGameObject(false); + gameObject2.name = num2.ToString(); + IXUICheckBox ixuicheckBox = gameObject2.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)num2; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickItemType2nd)); + gameObject2.transform.parent = transform; + gameObject2.transform.localScale = Vector3.one; + gameObject2.transform.localPosition = new Vector3(0f, -((float)transform.childCount - 0.5f) * (float)ixuicheckBox.spriteHeight, 0f); + IXUILabel ixuilabel2 = gameObject2.transform.Find("SelectLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(suitBySuitId.Name); + IXUILabel ixuilabel3 = gameObject2.transform.Find("UnSelectLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(suitBySuitId.Name); + bool flag4 = num == artifactSuitLevel.DefultNum && artifactSuitLevel.IsDefultSelect; + if (flag4) + { + this.m_curItemType2nd = ixuicheckBox; + ixuicheckBox.ForceSetFlag(true); + this.RefreshItemList(); + ixuilabel2.gameObject.SetActive(true); + ixuilabel3.gameObject.SetActive(false); + Transform parent = ixuicheckBox.gameObject.transform.parent.parent; + parent.Find("UnSelectLab").gameObject.SetActive(false); + parent.Find("SelectLab").gameObject.SetActive(true); + IXUISprite ixuisprite2 = parent.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite("l_button_06"); + } + else + { + ixuicheckBox.ForceSetFlag(false); + ixuilabel2.gameObject.SetActive(false); + ixuilabel3.gameObject.SetActive(true); + } + num++; + } + } + } + } + this.m_itemTypeTable.RePositionNow(); + this.m_itemTypeTable.Reposition(); + } + + private void FillSuitContent(uint suitId) + { + ArtifactSuit suitBySuitId = ArtifactDocument.SuitMgr.GetSuitBySuitId(suitId); + bool flag = suitBySuitId == null; + if (!flag) + { + this.m_suitNameLab.SetText(suitBySuitId.Name); + int num = 0; + foreach (uint num2 in suitBySuitId.Artifacts) + { + bool flag2 = num >= suitBySuitId.Artifacts.Count; + if (flag2) + { + break; + } + GameObject gameObject = this.m_suitItemsGo[num]; + bool flag3 = gameObject == null; + if (!flag3) + { + gameObject.SetActive(true); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)num2); + bool flag4 = itemConf == null; + if (flag4) + { + return; + } + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf.ItemID, 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num2; + bool flag5 = num == 0; + if (flag5) + { + this.OnSelectItem(ixuisprite); + } + num++; + } + } + for (int i = 0; i < this.m_itemCount; i++) + { + bool flag6 = i >= suitBySuitId.Artifacts.Count; + if (flag6) + { + GameObject gameObject = this.m_suitItemsGo[i]; + bool flag7 = gameObject != null; + if (flag7) + { + gameObject.SetActive(false); + } + } + } + this.FillSuitDes(suitId); + } + } + + private void FillEffectDes(uint artifactId) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData(artifactId); + bool flag = artifactListRowData == null; + if (!flag) + { + this.m_effectTittleLab.SetText(string.Format(XSingleton.singleton.GetString("ArtifactSkillEffect"), artifactListRowData.EffectNum)); + this.m_effectDesLab.SetText(XSingleton.singleton.ReplaceReturn(artifactListRowData.EffectDes)); + } + } + + private void FillSuitDes(uint suitId) + { + this.m_suitAttrPool.ReturnAll(true); + ArtifactSuit suitBySuitId = ArtifactDocument.SuitMgr.GetSuitBySuitId(suitId); + bool flag = suitBySuitId == null; + if (!flag) + { + int num = 0; + for (int i = 0; i < suitBySuitId.effects.Length; i++) + { + SeqListRef seqListRef = suitBySuitId.effects[i]; + bool flag2 = seqListRef.Count == 0; + if (!flag2) + { + for (int j = 0; j < seqListRef.Count; j++) + { + bool flag3 = seqListRef[j, 0] == 0u; + if (!flag3) + { + GameObject gameObject = this.m_suitAttrPool.FetchGameObject(false); + gameObject.transform.parent = this.m_suitPanelTra; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_suitAttrPool.TplHeight * num), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("[FFFFFF]{0}[-]", XStringDefineProxy.GetString("EQUIP_SUIT_EFFECT", new object[] + { + i + }))); + ixuilabel = (gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel); + string text = string.Format("{0}{1}", XStringDefineProxy.GetString((XAttributeDefine)seqListRef[j, 0]), XAttributeCommon.GetAttrValueStr((int)seqListRef[j, 0], (float)seqListRef[j, 1])); + ixuilabel.SetText(text); + num++; + } + } + } + } + } + } + + private void RefreshItemList() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.m_curItemType2nd != null; + if (flag2) + { + this.OnClickItemType2nd(this.m_curItemType2nd); + } + } + } + + private void OnClickItemType1st(IXUISprite spr) + { + bool flag = spr.spriteName == "l_add_00"; + if (flag) + { + spr.SetSprite("l_add_01"); + } + else + { + spr.SetSprite("l_add_00"); + } + } + + private void OnSelectItem(IXUISprite spr) + { + uint num = (uint)spr.ID; + bool flag = this.m_selectArtifactId == num; + if (!flag) + { + this.m_selectArtifactId = num; + this.FillEffectDes(num); + } + } + + private bool OnClosed(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnClickItemType2nd(IXUICheckBox cb) + { + bool flag = !cb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.m_curItemType2nd != null; + if (flag2) + { + this.SetSelectStatus(false); + } + this.m_curItemType2nd = cb; + this.SetSelectStatus(true); + this.FillSuitContent((uint)cb.ID); + result = true; + } + return result; + } + + private void SetSelectStatus(bool isSelected) + { + this.m_curItemType2nd.gameObject.transform.Find("UnSelectLab").gameObject.SetActive(!isSelected); + this.m_curItemType2nd.gameObject.transform.Find("SelectLab").gameObject.SetActive(isSelected); + Transform parent = this.m_curItemType2nd.gameObject.transform.parent.parent; + parent.Find("UnSelectLab").gameObject.SetActive(!isSelected); + parent.Find("SelectLab").gameObject.SetActive(isSelected); + IXUISprite ixuisprite = parent.GetComponent("XUISprite") as IXUISprite; + if (isSelected) + { + ixuisprite.SetSprite("l_button_06"); + } + else + { + ixuisprite.SetSprite("l_button_07"); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactAtlasHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactAtlasHandler.cs.meta new file mode 100644 index 00000000..0c93e00a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactAtlasHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b030e1236368664dae65596367adea0 +timeCreated: 1611403890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactBagHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactBagHandler.cs new file mode 100644 index 00000000..d23be095 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactBagHandler.cs @@ -0,0 +1,305 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactBagHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/ArtifactListPanel"; + } + } + + private ArtifactAtlasHandler m_atlasHandler; + + private ArtifactBagDocument m_doc; + + private XBagWindow m_bagWindow; + + private GameObject m_artifactBagPanel; + + private IXUIButton m_Help; + + private IXUIButton m_atlasBtn; + + private IXUILabel m_bagNumLab; + + public IXUIButton m_expandBagBtn; + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactBagDocument.Doc; + this.m_artifactBagPanel = base.PanelObject; + this.m_bagNumLab = (base.PanelObject.transform.Find("BagNum").GetComponent("XUILabel") as IXUILabel); + this.m_Help = (base.PanelObject.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_atlasBtn = (base.PanelObject.transform.Find("BtnShop").GetComponent("XUIButton") as IXUIButton); + this.m_expandBagBtn = (base.PanelObject.transform.Find("add").GetComponent("XUIButton") as IXUIButton); + this.m_bagWindow = new XBagWindow(this.m_artifactBagPanel, new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this.m_doc.GetArtifacts)); + this.m_bagWindow.Init(); + BagExpandItemListTable.RowData expandItemConfByType = XBagDocument.GetExpandItemConfByType((uint)XFastEnumIntEqualityComparer.ToInt(BagType.ArtifactBag)); + this.m_expandBagBtn.gameObject.SetActive(expandItemConfByType != null); + DlgHandlerBase.EnsureCreate(ref this.m_atlasHandler, base.PanelObject.transform.parent.parent, false, this); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + this.m_atlasBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAtlasClicked)); + this.m_expandBagBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBagExpandClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_doc.BagHandler = this; + this.RefreshBag(); + this.m_doc.NewItems.bCanClear = true; + this.RefreshRedPoints(); + this.SetBagNum(); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_doc.NewItems.TryClear(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshBag(); + this.m_doc.NewItems.bCanClear = true; + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_atlasHandler); + this.m_doc.BagHandler = null; + base.OnUnload(); + } + + private void RefreshBag() + { + this.m_bagWindow.ChangeData(new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this.m_doc.GetArtifacts)); + this.m_bagWindow.OnShow(); + this.SetBagNum(); + } + + public void Refresh() + { + this.m_bagWindow.RefreshWindow(); + this.SetBagNum(); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.m_bagWindow.m_XItemList == null || index >= this.m_bagWindow.m_XItemList.Count || index < 0; + if (flag) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + t.gameObject.name = XSingleton.singleton.StringCombine("empty", index.ToString()); + } + else + { + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.DrawItem(t.gameObject, this.m_bagWindow.m_XItemList[index]); + ixuisprite.ID = this.m_bagWindow.m_XItemList[index].uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + t.gameObject.name = XSingleton.singleton.StringCombine("artifact", this.m_bagWindow.m_XItemList[index].itemID.ToString()); + EquipCompare mix = this.m_doc.IsEquipMorePowerful(ixuisprite.ID); + EquipCompare final = ArtifactBagDocument.GetFinal(mix); + Transform transform = t.Find("Icon/RedPoint"); + bool flag2 = transform != null; + if (flag2) + { + transform.gameObject.SetActive(final == EquipCompare.EC_MORE_POWERFUL); + } + transform = t.Find("Icon/New"); + bool flag3 = transform != null; + if (flag3) + { + transform.gameObject.SetActive(this.m_doc.NewItems.IsNew(ixuisprite.ID)); + } + transform = t.Find("Icon/TimeBg"); + bool flag4 = transform != null; + if (flag4) + { + transform.gameObject.SetActive(false); + } + } + } + + private void SetBagNum() + { + int count = this.m_doc.GetArtifacts().Count; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + VIPTable.RowData byVIP = specificDocument.VIPReader.GetByVIP((int)specificDocument.VipLevel); + bool flag = byVIP != null; + if (flag) + { + uint num = byVIP.ArtifactMax; + BagExpandData bagExpandData = XBagDocument.BagDoc.GetBagExpandData(BagType.ArtifactBag); + bool flag2 = bagExpandData != null; + if (flag2) + { + num += bagExpandData.ExpandNum; + } + bool flag3 = (long)count >= (long)((ulong)num); + if (flag3) + { + this.m_bagNumLab.SetText(string.Format("[ff4366]{0}[-]/{1}", count, num)); + } + else + { + this.m_bagNumLab.SetText(string.Format("{0}[-]/{1}", count, num)); + } + } + } + + public void RefreshRedPoints() + { + } + + public void LoadEquip(XItem item, int slot) + { + DlgBase.singleton.HideToolTip(true); + bool flag = DlgBase.singleton._ArtifactFrameHandler != null && DlgBase.singleton._ArtifactFrameHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._ArtifactFrameHandler.SetEquipSlot(slot, item); + } + this.Refresh(); + } + + public void UnloadEquip(int slot) + { + DlgBase.singleton.HideToolTip(true); + bool flag = DlgBase.singleton._ArtifactFrameHandler != null && DlgBase.singleton._ArtifactFrameHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._ArtifactFrameHandler.SetEquipSlot(slot, null); + } + this.Refresh(); + } + + public void AddItem(List items) + { + this.m_bagWindow.UpdateBag(); + this.SetBagNum(); + } + + public void RemoveItem(List uids) + { + this.m_bagWindow.UpdateBag(); + this.SetBagNum(); + foreach (ulong num in uids) + { + bool flag = num == DlgBase.singleton.MainItemUID; + if (flag) + { + DlgBase.singleton.HideToolTip(false); + } + } + } + + public void SwapItem(XItem item1, XItem item2, int slot) + { + DlgBase.singleton.HideToolTip(true); + bool flag = DlgBase.singleton._ArtifactFrameHandler != null && DlgBase.singleton._ArtifactFrameHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._ArtifactFrameHandler.SetEquipSlot(slot, item1); + } + this.m_bagWindow.ReplaceItem(item1, item2); + } + + public void UpdateItem(XItem item) + { + this.m_bagWindow.UpdateItem(item); + DlgBase.singleton._ArtifactFrameHandler.UpdateEquipSlot(item); + bool flag = item.uid == DlgBase.singleton.MainItemUID; + if (flag) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag2 = item.uid == DlgBase.singleton.MainItemUID; + if (flag2) + { + DlgBase.singleton.HideToolTip(true); + } + } + + public void ItemNumChanged(XItem item) + { + this.m_bagWindow.UpdateItem(item); + this.SetBagNum(); + } + + public bool OnHelpClicked(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton._ArtifactFrameHandler != null && DlgBase.singleton._ArtifactFrameHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._ArtifactFrameHandler.HideEffects(); + } + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Artifact); + return true; + } + + public bool OnAtlasClicked(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton._ArtifactFrameHandler != null && DlgBase.singleton._ArtifactFrameHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._ArtifactFrameHandler.HideEffects(); + } + bool flag2 = this.m_atlasHandler != null; + if (flag2) + { + this.m_atlasHandler.SetVisible(true); + } + return true; + } + + public bool OnBagExpandClicked(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton._ArtifactFrameHandler != null && DlgBase.singleton._ArtifactFrameHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._ArtifactFrameHandler.HideEffects(); + } + XBagDocument.BagDoc.UseBagExpandTicket(BagType.ArtifactBag); + return true; + } + + private void OnItemClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID == null; + if (!flag) + { + bool flag2 = this.m_doc.NewItems.RemoveItem(iSp.ID, itemByUID.Type, false); + if (flag2) + { + this.m_doc.GetArtifacts(); + } + CharacterEquipHandler.OnItemClicked(iSp); + bool flag3 = DlgBase.singleton.IsVisible() && DlgBase.singleton._ArtifactFrameHandler != null && DlgBase.singleton._ArtifactFrameHandler.IsVisible(); + if (flag3) + { + DlgBase.singleton._ArtifactFrameHandler.HideEffects(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactBagHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactBagHandler.cs.meta new file mode 100644 index 00000000..a558fa20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactBagHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 682939fcc81702b42bd52d43eae09afc +timeCreated: 1611403881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactComposeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactComposeHandler.cs new file mode 100644 index 00000000..c3689fbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactComposeHandler.cs @@ -0,0 +1,235 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactComposeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/ArtifactComposeHandler"; + } + } + + private ArtifactComposeDocument m_doc; + + private ArtifactOneKeyHandler m_oneKeyHandler; + + private IXUISprite[] m_boxArray; + + private Transform[] m_itemArray; + + private IXUILabel m_tipsLab1; + + private IXUILabel m_tipsLab2; + + private IXUIButton m_composeBtn; + + private IXUIButton m_oneKeyComposeBtn; + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactComposeDocument.Doc; + this.m_doc.ComposeHandler = this; + Transform transform = base.PanelObject.transform.Find("Bg1"); + this.m_itemArray = new Transform[ArtifactComposeDocument.MAX_RECYCLE_COUNT]; + this.m_itemArray[0] = transform.Find("item0"); + this.m_itemArray[1] = transform.Find("item1"); + this.m_boxArray = new IXUISprite[ArtifactComposeDocument.MAX_RECYCLE_COUNT]; + this.m_boxArray[0] = (transform.Find("BgBox1").GetComponent("XUISprite") as IXUISprite); + this.m_boxArray[1] = (transform.Find("BgBox2").GetComponent("XUISprite") as IXUISprite); + this.m_tipsLab1 = (transform.Find("Label1").GetComponent("XUILabel") as IXUILabel); + this.m_tipsLab2 = (transform.Find("Label2").GetComponent("XUILabel") as IXUILabel); + this.m_composeBtn = (transform.Find("Get").GetComponent("XUIButton") as IXUIButton); + this.m_oneKeyComposeBtn = (base.PanelObject.transform.Find("BtnCompose").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = 0; i < this.m_itemArray.Length; i++) + { + IXUISprite ixuisprite = this.m_itemArray[i].Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnUnselectSprClicked)); + } + for (int j = 0; j < this.m_boxArray.Length; j++) + { + bool flag = this.m_boxArray[j] != null; + if (flag) + { + this.m_boxArray[j].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBgBox)); + } + } + this.m_composeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickComposed)); + this.m_oneKeyComposeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickOneKeyComposeBtn)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_doc.ResetSelection(false); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.FillFrame(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_doc.ComposeHandler = null; + } + + public void RefreshUi() + { + this.FillFrame(); + } + + private void FillFrame() + { + this.m_tipsLab1.SetText(XSingleton.singleton.GetString("ArtifactComposeTips4")); + this.m_tipsLab1.gameObject.SetActive((long)this.m_doc.SelectedItems.Count < (long)((ulong)ArtifactComposeDocument.MAX_RECYCLE_COUNT)); + bool flag = this.m_doc.CurSelectTabLevel > XSingleton.singleton.GetInt("ArtifactShowTipsLevel"); + if (flag) + { + this.m_tipsLab2.SetText(XSingleton.singleton.GetString("ArtifactComposeTips3")); + } + else + { + this.m_tipsLab2.SetText(XSingleton.singleton.GetString("ArtifactComposeTips3")); + } + int num = 0; + while (num < this.m_doc.SelectedItems.Count && num < this.m_itemArray.Length) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(this.m_doc.SelectedItems[num]); + bool flag2 = this.m_itemArray[num] != null; + if (flag2) + { + XSingleton.singleton.DrawItem(this.m_itemArray[num].gameObject, bagItemByUID); + IXUISprite ixuisprite = this.m_itemArray[num].Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this.m_doc.SelectedItems[num]; + } + num++; + } + while ((long)num < (long)((ulong)ArtifactComposeDocument.MAX_RECYCLE_COUNT)) + { + bool flag3 = this.m_itemArray[num] != null; + if (flag3) + { + XSingleton.singleton.DrawItem(this.m_itemArray[num].gameObject, null); + IXUISprite ixuisprite2 = this.m_itemArray[num].Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = 0UL; + } + num++; + } + } + + private void OnUnselectSprClicked(IXUISprite iSp) + { + bool flag = iSp.ID == 0UL; + if (!flag) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(iSp.ID); + bool flag2 = bagItemByUID == null; + if (!flag2) + { + bool flag3 = bagItemByUID.Type == ItemType.ARTIFACT; + if (flag3) + { + XSingleton.singleton.bShowTakeOutBtn = true; + } + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(bagItemByUID, iSp, true, 0u); + } + } + } + + private void OnClickBgBox(IXUISprite iSp) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PutTwoArtifact"), "fece00"); + } + + private bool OnClickComposed(IXUIButton btn) + { + bool flag = !this.m_doc.IsNumFit; + if (flag) + { + bool flag2 = this.m_doc.SelectedItems.Count == 0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactComposeTips4"), "fece00"); + return false; + } + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(this.m_doc.SelectedItems[0]); + bool flag3 = bagItemByUID != null && bagItemByUID.itemConf != null; + if (flag3) + { + ArtifactComposeTable.RowData composeRowData = this.m_doc.GetComposeRowData(this.m_doc.CurSelectTabLevel, (int)bagItemByUID.itemConf.ItemQuality); + bool flag4 = composeRowData != null; + if (flag4) + { + bool flag5 = composeRowData.ArtifactNum2DropID.count > 0; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactComposeTips1"), "fece00"); + } + } + return false; + } + } + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag6 = specificDocument.GetValue(XOptionsDefine.OD_NO_ARTIFACTCOMPOSE_REPLACE_CONFIRM) == 0; + bool result; + if (flag6) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("ArtifactComposeEnsureTips"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this.DoOK), new ButtonClickEventHandler(this.DoCancel), false, XTempTipDefine.OD_ARTIFACT_COMPOSE_TRAVELSET, 50); + result = true; + } + else + { + this.DoOK(null); + result = true; + } + return result; + } + + private bool DoCancel(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_ARTIFACTCOMPOSE_REPLACE_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_ARTIFACT_COMPOSE_TRAVELSET) ? 1 : 0, false); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool DoOK(IXUIButton btn) + { + this.m_doc.ReqCoposeArtifact(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_ARTIFACTCOMPOSE_REPLACE_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_ARTIFACT_COMPOSE_TRAVELSET) ? 1 : 0, false); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool OnClickOneKeyComposeBtn(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this.m_oneKeyHandler, base.PanelObject.transform, true, this); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactComposeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactComposeHandler.cs.meta new file mode 100644 index 00000000..31c6cb98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactComposeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8abc65b1837c8c845837d27f7c7b3ac0 +timeCreated: 1611404093 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactComposingHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactComposingHandler.cs new file mode 100644 index 00000000..108fbc56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactComposingHandler.cs @@ -0,0 +1,316 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactComposingHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/ArtifactComposeFrame"; + } + } + + public string CreatePath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_createPath); + if (flag) + { + this.m_createPath = XSingleton.singleton.GetValue("EquipCreatEffectPath"); + } + return this.m_createPath; + } + } + + private ArtifactComposeDocument m_doc; + + private ArtifactBagDocument m_artifactBagdoc; + + private IXUILabel m_textLab; + + private IXUIButton m_doBtn; + + private IXUILabel m_doLab; + + private IXUISprite m_sprBar; + + private GameObject m_barView; + + private XFx m_creatFx = null; + + private XFx m_successFx = null; + + private Transform m_successEffectTra; + + private EquipSetItemBaseView m_itemView; + + private ArtifactQuanlityFx m_quanlityFx = new ArtifactQuanlityFx(); + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private int m_barFullWidth; + + private string m_createPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactComposeDocument.Doc; + this.m_artifactBagdoc = ArtifactBagDocument.Doc; + this.m_textLab = (base.PanelObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + this.m_barView = base.PanelObject.transform.Find("Making").gameObject; + this.m_sprBar = (this.m_barView.transform.Find("Bar").GetComponent("XUISprite") as IXUISprite); + this.m_doBtn = (base.PanelObject.transform.Find("Do").GetComponent("XUIButton") as IXUIButton); + this.m_doLab = (base.PanelObject.transform.Find("Do/T").GetComponent("XUILabel") as IXUILabel); + this.m_successEffectTra = base.PanelObject.transform.Find("Suc"); + string @string = XSingleton.singleton.GetString("ArtifactComposeSuccessEffectName"); + this.m_successFx = XSingleton.singleton.CreateUIFx(@string, this.m_successEffectTra, false); + this.m_itemView = new EquipSetItemBaseView(); + this.m_itemView.FindFrom(base.PanelObject.transform); + this.m_barFullWidth = this.m_sprBar.spriteWidth; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + this.HideEffect(); + bool flag = this.m_successEffectTra != null; + if (flag) + { + this.m_successEffectTra.gameObject.SetActive(false); + } + base.PanelObject.SetActive(false); + this.m_quanlityFx.Reset(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_doc = null; + bool flag = this.m_creatFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_creatFx, true); + this.m_creatFx = null; + } + bool flag2 = this.m_successFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_successFx, true); + this.m_successFx = null; + } + this.m_quanlityFx.Reset(); + } + + private void FillContent() + { + bool flag = this.m_itemView.goItem != null; + if (flag) + { + this.m_itemView.goItem.SetActive(false); + } + } + + public void SetFinishState(bool bFinish) + { + this.m_barView.SetActive(!bFinish); + this.m_successEffectTra.gameObject.SetActive(bFinish); + this.m_doBtn.SetVisible(true); + if (bFinish) + { + this.HideEffect(); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Upgrade_Gear", true, AudioChannel.Action); + this.m_textLab.SetText(XStringDefineProxy.GetString("EQUIPCREATE_EQUIPSET_SUCCESS").Replace("{n}", "\n")); + this.m_doLab.SetText(XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + this.m_doBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonOK)); + } + else + { + this.ShowEffect(); + this.m_textLab.SetText(XStringDefineProxy.GetString("Artifact_compose_tips")); + this.m_doLab.SetText(XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL)); + this.m_doBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonCancel)); + } + } + + public void SetFinishArtifactInfo(XItem item) + { + bool flag = this.m_itemView.goItem != null; + if (flag) + { + this.m_itemView.goItem.SetActive(true); + } + bool flag2 = item != null && item.uid > 0UL && item.itemID > 0; + if (flag2) + { + bool flag3 = base.IsVisible() && this.m_itemView != null; + if (flag3) + { + EquipSetItemBaseView.stEquipInfoParam param; + param.isShowTooltip = false; + param.playerProf = 0; + this.m_itemView.SetItemInfo(item, param, item.bBinding); + bool flag4 = item.itemConf != null; + if (flag4) + { + this.SetEffect(this.m_itemView.goItem, item.itemID); + } + } + this.m_itemView.SetFinishItem(item); + } + } + + private void ShowEffect() + { + bool flag = this.m_creatFx == null; + if (flag) + { + this.m_creatFx = XSingleton.singleton.CreateFx(this.CreatePath, null, true); + } + else + { + this.m_creatFx.SetActive(true); + } + this.m_creatFx.Play(base.PanelObject.transform.Find("Bg"), Vector3.zero, Vector3.one, 1f, true, false); + XSingleton.singleton.PlayUISound("Audio/UI/UI_datie", true, AudioChannel.Action); + } + + private void SetEffect(GameObject go, int itemId) + { + bool flag = go == null; + if (!flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemId); + bool flag2 = itemConf == null; + if (!flag2) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)itemId); + bool flag3 = artifactListRowData == null; + if (!flag3) + { + ulong key = this.m_artifactBagdoc.MakeKey((uint)itemConf.ItemQuality, artifactListRowData.AttrType); + string path; + bool flag4 = !this.m_artifactBagdoc.GetArtifactEffectPath(key, out path); + if (flag4) + { + this.m_quanlityFx.Reset(); + } + else + { + bool flag5 = !this.m_quanlityFx.IsCanReuse(key); + if (flag5) + { + this.m_quanlityFx.SetData(key, go.transform.Find("Icon/Icon/Effects"), path); + } + } + } + } + } + } + + private void HideEffect() + { + bool flag = this.m_creatFx != null; + if (flag) + { + this.m_creatFx.SetActive(false); + this.m_creatFx.Stop(); + } + } + + public void SetBar(int f) + { + f = Mathf.Clamp(f, 1, 100); + this.m_sprBar.spriteWidth = this.m_barFullWidth * f / 100; + } + + private bool OnClickButtonOK(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = false; + } + else + { + bool isComposing = this.m_doc.IsComposing; + if (isComposing) + { + result = true; + } + else + { + base.SetVisible(false); + result = true; + } + } + return result; + } + + private bool OnClickButtonCancel(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = false; + } + else + { + bool isComposing = this.m_doc.IsComposing; + if (isComposing) + { + result = true; + } + else + { + base.SetVisible(false); + result = true; + } + } + return result; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactComposingHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactComposingHandler.cs.meta new file mode 100644 index 00000000..17edbd26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactComposingHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19c4b74055f562f4e93964a53ac04f96 +timeCreated: 1611403304 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactFrameHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactFrameHandler.cs new file mode 100644 index 00000000..3a93b956 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactFrameHandler.cs @@ -0,0 +1,381 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactFrameHandler : DlgHandlerBase + { + public GameObject[] ArtifactGo + { + get + { + return this.m_artifactGo; + } + } + + protected override string FileName + { + get + { + return "ItemNew/ArtifactFrame"; + } + } + + public static int Artifact_Slot_Count = XBagDocument.ArtifactMax; + + private XArtifactAttrView m_artifactAttrHandler; + + private ArtifactBagDocument m_doc; + + public IXUISprite[] m_artifactBg = new IXUISprite[ArtifactFrameHandler.Artifact_Slot_Count]; + + public IXUISprite[] m_artifactSlots = new IXUISprite[ArtifactFrameHandler.Artifact_Slot_Count]; + + private GameObject[] m_artifactGo = new GameObject[ArtifactFrameHandler.Artifact_Slot_Count]; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform TotalAttriPanel; + + private List m_templateIds = new List(); + + private IXUIButton m_AttriBtn; + + private IXUIButton m_ComposeBtn; + + private ArtifactQuanlityFx[] m_quanlityFx = new ArtifactQuanlityFx[ArtifactFrameHandler.Artifact_Slot_Count]; + + private XFx[] m_suitFxs = new XFx[ArtifactFrameHandler.Artifact_Slot_Count]; + + private XFx m_suitUltimateFx; + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactBagDocument.Doc; + this.m_templateIds.Add(296u); + this.m_templateIds.Add(297u); + this.m_templateIds.Add(298u); + this.m_templateIds.Add(299u); + this.TotalAttriPanel = base.PanelObject.transform.Find("Panel/TotalAttriPanel"); + Transform transform = base.PanelObject.transform.Find("Panel/Artifacts"); + this.m_ItemPool.SetupPool(transform.gameObject, transform.transform.Find("Tpl").gameObject, (uint)ArtifactFrameHandler.Artifact_Slot_Count, false); + this.m_AttriBtn = (base.PanelObject.transform.Find("Panel/AttriBtn").GetComponent("XUIButton") as IXUIButton); + this.m_ComposeBtn = (base.PanelObject.transform.Find("Panel/ComposeBtn").GetComponent("XUIButton") as IXUIButton); + string prefab_location = string.Empty; + for (int i = 0; i < ArtifactFrameHandler.Artifact_Slot_Count; i++) + { + this.m_artifactGo[i] = this.m_ItemPool.FetchGameObject(false); + GameObject gameObject = transform.Find("Artifact" + i).gameObject; + this.m_artifactGo[i].transform.localScale = Vector3.one; + this.m_artifactGo[i].transform.localPosition = gameObject.transform.localPosition; + this.m_artifactSlots[i] = (this.m_artifactGo[i].transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_artifactBg[i] = (gameObject.transform.GetComponent("XUISprite") as IXUISprite); + this.m_quanlityFx[i] = new ArtifactQuanlityFx(); + bool flag = i < this.m_doc.SuitEffectPosNames.Count; + if (flag) + { + prefab_location = string.Format("Effects/FX_Particle/UIfx/{0}", this.m_doc.SuitEffectPosNames[i]); + XFx xfx = XSingleton.singleton.CreateFx(prefab_location, null, true); + bool flag2 = xfx != null; + if (flag2) + { + this.m_suitFxs[i] = xfx; + xfx.SetParent(gameObject.transform); + } + } + } + DlgHandlerBase.EnsureCreate>(ref this.m_artifactAttrHandler, this.TotalAttriPanel, false, this); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_AttriBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAttrBtnClicked)); + this.m_ComposeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnComposeBtnClicked)); + for (int i = 0; i < ArtifactFrameHandler.Artifact_Slot_Count; i++) + { + this.m_artifactBg[i].ID = (ulong)((long)i); + this.m_artifactBg[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSlotBgClick)); + this.m_artifactSlots[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowArtifacts(); + } + + protected override void OnHide() + { + base.OnHide(); + this.HideEffects(); + this.RestQuanlityFx(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.HideEffects(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_ItemPool.ReturnAll(false); + DlgHandlerBase.EnsureUnload>(ref this.m_artifactAttrHandler); + for (int i = 0; i < ArtifactFrameHandler.Artifact_Slot_Count; i++) + { + bool flag = this.m_suitFxs[i] != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_suitFxs[i], true); + this.m_suitFxs[i] = null; + } + bool flag2 = this.m_quanlityFx[i] != null; + if (flag2) + { + this.m_quanlityFx[i].Reset(); + this.m_quanlityFx[i] = null; + } + } + } + + private void RestQuanlityFx() + { + for (int i = 0; i < ArtifactFrameHandler.Artifact_Slot_Count; i++) + { + bool flag = this.m_quanlityFx[i] != null; + if (flag) + { + this.m_quanlityFx[i].Reset(); + } + } + } + + public void HideEffects() + { + for (int i = 0; i < ArtifactFrameHandler.Artifact_Slot_Count; i++) + { + bool flag = this.m_suitFxs[i] != null; + if (flag) + { + this.m_suitFxs[i].SetActive(false); + } + } + bool flag2 = this.m_suitUltimateFx != null; + if (flag2) + { + this.m_suitUltimateFx.SetActive(false); + } + } + + public void ShowArtifacts() + { + XBodyBag artifactBag = XSingleton.singleton.Doc.XBagDoc.ArtifactBag; + for (int i = XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_START); i < XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_END); i++) + { + XItemDrawerMgr.Param.bHideBinding = true; + XSingleton.singleton.DrawItem(this.m_artifactGo[i], artifactBag[i]); + this.m_artifactGo[i].transform.Find("Icon/RedPoint").gameObject.SetActive(false); + bool flag = artifactBag[i] != null && artifactBag[i].itemConf != null; + if (flag) + { + this.SetEffect(this.m_artifactGo[i], artifactBag[i].itemID, i); + } + this.m_artifactSlots[i].ID = ((artifactBag[i] != null) ? artifactBag[i].uid : 0UL); + } + } + + public void SetEquipSlot(int slot, XItem item) + { + XItemDrawerMgr.Param.bHideBinding = true; + XSingleton.singleton.DrawItem(this.m_artifactGo[slot], item); + this.m_artifactGo[slot].transform.Find("Icon/RedPoint").gameObject.SetActive(false); + bool flag = item != null && item.itemConf != null; + if (flag) + { + this.SetEffect(this.m_artifactGo[slot], item.itemID, slot); + } + this.m_artifactSlots[slot].ID = ((item != null) ? item.uid : 0UL); + } + + public void UpdateEquipSlot(XItem item) + { + bool flag = item == null; + if (!flag) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)item.itemID); + bool flag2 = artifactListRowData == null; + if (!flag2) + { + bool flag3 = this.m_artifactSlots[(int)artifactListRowData.ArtifactPos].ID == item.uid; + if (flag3) + { + XItemDrawerMgr.Param.bHideBinding = true; + XSingleton.singleton.DrawItem(this.m_artifactGo[(int)artifactListRowData.ArtifactPos], item); + this.m_artifactGo[(int)artifactListRowData.ArtifactPos].transform.Find("Icon/RedPoint").gameObject.SetActive(false); + bool flag4 = item.itemConf != null; + if (flag4) + { + this.SetEffect(this.m_artifactGo[(int)artifactListRowData.ArtifactPos], item.itemID, (int)artifactListRowData.ArtifactPos); + } + } + } + } + } + + public void PlaySuitFx(uint suitId) + { + bool flag = DlgBase.singleton.IsVisible(); + if (!flag) + { + this.HideEffects(); + XBodyBag artifactBag = XSingleton.singleton.Doc.XBagDoc.ArtifactBag; + int num = 0; + for (int i = XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_START); i < XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_END); i++) + { + bool flag2 = artifactBag[i] == null; + if (!flag2) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)artifactBag[i].itemID); + bool flag3 = artifactListRowData == null; + if (!flag3) + { + bool flag4 = artifactListRowData.ArtifactSuit == suitId; + if (flag4) + { + bool flag5 = this.m_suitFxs.Length > i && this.m_suitFxs[i] != null; + if (flag5) + { + num++; + this.m_suitFxs[i].SetActive(true); + } + } + } + } + } + ArtifactSuit suitBySuitId = ArtifactDocument.SuitMgr.GetSuitBySuitId(suitId); + bool flag6 = (long)num == (long)((ulong)suitBySuitId.MaxSuitEffectCount); + if (flag6) + { + bool flag7 = this.m_suitUltimateFx == null; + if (flag7) + { + this.m_suitUltimateFx = XSingleton.singleton.CreateFx(string.Format("Effects/FX_Particle/UIfx/{0}", XSingleton.singleton.GetString("ArtifactSuitUltimateFxName")), null, true); + } + else + { + this.m_suitUltimateFx.SetActive(true); + } + this.m_suitUltimateFx.Play(base.PanelObject.transform.Find("Panel/Artifacts"), Vector3.zero, Vector3.one, 1f, true, false); + } + } + } + + private void SetEffect(GameObject go, int itemId, int slot) + { + bool flag = slot >= this.m_quanlityFx.Length; + if (!flag) + { + bool flag2 = go == null; + if (!flag2) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemId); + bool flag3 = itemConf == null; + if (!flag3) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)itemId); + bool flag4 = artifactListRowData == null; + if (!flag4) + { + ArtifactQuanlityFx artifactQuanlityFx = this.m_quanlityFx[slot]; + bool flag5 = artifactQuanlityFx == null; + if (flag5) + { + artifactQuanlityFx = new ArtifactQuanlityFx(); + this.m_quanlityFx[slot] = artifactQuanlityFx; + } + ulong key = this.m_doc.MakeKey((uint)itemConf.ItemQuality, artifactListRowData.AttrType); + string path; + bool flag6 = !this.m_doc.GetArtifactEffectPath(key, out path); + if (flag6) + { + artifactQuanlityFx.Reset(); + } + else + { + bool flag7 = !artifactQuanlityFx.IsCanReuse(key); + if (flag7) + { + artifactQuanlityFx.SetData(key, go.transform.Find("Icon/Icon/Effects"), path); + } + } + } + } + } + } + } + + private void OnSlotBgClick(IXUISprite spr) + { + uint num = (uint)spr.ID; + bool flag = this.m_doc.IsHadThisPosArtifact(num); + if (flag) + { + string artifactPartName = XSingleton.singleton.GetArtifactPartName((ArtifactPosition)num, true); + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("ArtifactPosClickPos"), artifactPartName), "fece00"); + } + else + { + bool flag2 = (ulong)num < (ulong)((long)this.m_templateIds.Count); + if (flag2) + { + this.HideEffects(); + XSingleton.singleton.ShowItemAccess((int)this.m_templateIds[(int)num], null); + } + } + } + + public bool OnAttrBtnClicked(IXUIButton button) + { + this.HideEffects(); + this.m_artifactAttrHandler.SetBaseData(XSingleton.singleton.Doc.XBagDoc.ArtifactBag); + this.m_artifactAttrHandler.SetVisible(true); + return true; + } + + public bool OnComposeBtnClicked(IXUIButton button) + { + this.HideEffects(); + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Artifact_DeityStove); + return true; + } + + public void OnItemClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID != null; + if (flag) + { + this.HideEffects(); + XBodyBag bodyBag = itemByUID.Description.BodyBag; + bool flag2 = bodyBag != null && bodyBag.HasItem(itemByUID.uid); + if (flag2) + { + XSingleton.singleton.bEquiped = true; + XSingleton.singleton.ShowTooltipDialog(itemByUID, null, iSp, true, 0u); + } + else + { + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(itemByUID, iSp, true, 0u); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactFrameHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactFrameHandler.cs.meta new file mode 100644 index 00000000..1b4b1cc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactFrameHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ac9f8ea89dad2842bf32989d800df69 +timeCreated: 1611404093 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactFuseHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactFuseHandler.cs new file mode 100644 index 00000000..07c34e9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactFuseHandler.cs @@ -0,0 +1,504 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactFuseHandler : DlgHandlerBase + { + private string SucEffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_sucEffectPath); + if (flag) + { + this.m_sucEffectPath = XSingleton.singleton.GetValue("FuseSucEffectPath"); + } + return this.m_sucEffectPath; + } + } + + private string FailEffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_failEffectPath); + if (flag) + { + this.m_failEffectPath = XSingleton.singleton.GetValue("FuseFailEffectPath"); + } + return this.m_failEffectPath; + } + } + + private string EffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_effectPath); + if (flag) + { + this.m_effectPath = XSingleton.singleton.GetValue("FuseEffectPath"); + } + return this.m_effectPath; + } + } + + protected override string FileName + { + get + { + return "ItemNew/ArtifactFuseHandler"; + } + } + + private ArtifactFuseDocument m_doc; + + private bool m_bMatIsEnough = false; + + private int m_needItemId = 0; + + private GameObject m_itemGo1; + + private GameObject m_itemGo2; + + private GameObject m_itemGo3; + + private Transform m_effectTra; + + private IXUISprite m_boxSpr1; + + private IXUISprite m_boxSpr2; + + private IXUICheckBox m_checkBox; + + private IXUIButton m_fuseBtn; + + private IXUILabel m_rateLab; + + private XFx m_fx; + + private XFx m_sucFx; + + private XFx m_failFx; + + private uint m_token = 0u; + + private float m_lastTime = 1f; + + private bool m_bIsPlayingEffect = false; + + private string m_sucEffectPath = string.Empty; + + private string m_failEffectPath = string.Empty; + + private string m_effectPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactFuseDocument.Doc; + this.m_doc.Handler = this; + Transform transform = base.PanelObject.transform.Find("Bg1"); + this.m_rateLab = (transform.Find("ossd").GetComponent("XUILabel") as IXUILabel); + this.m_itemGo1 = transform.Find("item1").gameObject; + this.m_itemGo2 = transform.Find("item2").gameObject; + this.m_itemGo3 = transform.Find("item3").gameObject; + this.m_boxSpr1 = (transform.Find("BgBox1").GetComponent("XUISprite") as IXUISprite); + this.m_boxSpr2 = (transform.Find("BgBox2").GetComponent("XUISprite") as IXUISprite); + this.m_checkBox = (transform.Find("BtnUse").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_fuseBtn = (transform.Find("Get").GetComponent("XUIButton") as IXUIButton); + this.m_effectTra = transform.Find("Effect"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_boxSpr1.ID = 1UL; + this.m_boxSpr1.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBox)); + this.m_boxSpr2.ID = 2UL; + this.m_boxSpr2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBox)); + this.m_checkBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickToggle)); + this.m_fuseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickFuseBtn)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this.m_token); + this.StopEffect(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_doc.Handler = null; + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + bool flag2 = this.m_sucFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_sucFx, true); + this.m_sucFx = null; + } + bool flag3 = this.m_failFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this.m_failFx, true); + this.m_failFx = null; + } + XSingleton.singleton.KillTimer(this.m_token); + } + + public void RefreshUi(FuseEffectType type) + { + this.FillContent(); + bool flag = type > FuseEffectType.None; + if (flag) + { + this.PlayEffect(type); + } + } + + private void FillContent() + { + bool flag = this.m_doc.FuseUid == 0UL; + if (flag) + { + XSingleton.singleton.DrawItem(this.m_itemGo1, null); + } + else + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.FuseUid); + XSingleton.singleton.DrawItem(this.m_itemGo1, itemByUID); + IXUISprite ixuisprite = this.m_itemGo1.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this.m_doc.FuseUid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + } + bool flag2 = this.m_doc.FusedUid == 0UL; + if (flag2) + { + XSingleton.singleton.DrawItem(this.m_itemGo2, null); + } + else + { + XItem itemByUID2 = XBagDocument.BagDoc.GetItemByUID(this.m_doc.FusedUid); + XSingleton.singleton.DrawItem(this.m_itemGo2, itemByUID2); + IXUISprite ixuisprite2 = this.m_itemGo2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = this.m_doc.FusedUid; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + } + bool flag3 = this.m_doc.FusedUid != 0UL && this.m_doc.FuseUid > 0UL; + if (flag3) + { + bool flag4 = this.m_fx == null; + if (flag4) + { + this.m_fx = XSingleton.singleton.CreateFx(this.EffectPath, null, true); + } + else + { + this.m_fx.SetActive(true); + } + this.m_fx.Play(this.m_effectTra, Vector3.zero, Vector3.one, 1f, true, false); + } + else + { + bool flag5 = this.m_fx != null; + if (flag5) + { + this.m_fx.SetActive(false); + } + } + this.m_checkBox.ForceSetFlag(this.m_doc.UseFuseStone); + this.FillNeedItem(); + } + + private void FillNeedItem() + { + IXUILabel ixuilabel = this.m_itemGo3.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + bool flag = this.m_doc.FuseUid == 0UL; + int num; + if (flag) + { + num = this.m_doc.FuseStoneItemId; + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_itemGo3, num, 2, false); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(num); + ixuilabel.SetText(string.Format("{0}/?", itemCount)); + this.m_rateLab.SetText(string.Format(XSingleton.singleton.GetString("FuseRateSucRate"), "?")); + this.m_bMatIsEnough = false; + } + else + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.FuseUid); + bool flag2 = itemByUID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("m_doc.FuseUid = {0} not find" + this.m_doc.FuseUid.ToString(), null, null, null, null, null); + return; + } + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)itemByUID.itemID); + bool flag3 = artifactListRowData == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Format("artifactlist not find this itemId = {0}", itemByUID.itemID), null, null, null, null, null); + return; + } + num = (int)artifactListRowData.FuseMaterials[0, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_itemGo3, num, 2, false); + ulong itemCount2 = XBagDocument.BagDoc.GetItemCount(num); + this.m_bMatIsEnough = (itemCount2 >= (ulong)artifactListRowData.FuseMaterials[0, 1]); + bool bMatIsEnough = this.m_bMatIsEnough; + if (bMatIsEnough) + { + ixuilabel.SetText(string.Format("[00ff00]{0}/{1}[-]", itemCount2, artifactListRowData.FuseMaterials[0, 1])); + } + else + { + ixuilabel.SetText(string.Format("[ff0000]{0}/{1}[-]", itemCount2, artifactListRowData.FuseMaterials[0, 1])); + } + bool useFuseStone = this.m_doc.UseFuseStone; + if (useFuseStone) + { + this.m_rateLab.SetText(string.Format(XSingleton.singleton.GetString("FuseRateSucRate"), artifactListRowData.FuseSucRateUseStone)); + } + else + { + this.m_bMatIsEnough = true; + this.m_rateLab.SetText(string.Format(XSingleton.singleton.GetString("FuseRateSucRate"), artifactListRowData.FuseSucRate[0])); + } + } + this.m_needItemId = num; + IXUISprite ixuisprite = this.m_itemGo3.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + ixuisprite = (this.m_itemGo3.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetGrey(this.m_doc.FuseUid > 0UL); + ixuisprite = (this.m_itemGo3.transform.Find("Quality").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetGrey(this.m_doc.FuseUid > 0UL); + } + + private void PlayEffect(FuseEffectType type) + { + bool flag = type == FuseEffectType.Sucess; + if (flag) + { + bool flag2 = this.m_sucFx == null; + if (flag2) + { + this.m_sucFx = XSingleton.singleton.CreateFx(this.SucEffectPath, null, true); + } + else + { + this.m_sucFx.SetActive(true); + } + this.m_sucFx.Play(base.PanelObject.transform, Vector3.zero, Vector3.one, 1f, true, false); + this.m_bIsPlayingEffect = true; + } + else + { + bool flag3 = type == FuseEffectType.Fail; + if (flag3) + { + bool flag4 = this.m_failFx == null; + if (flag4) + { + this.m_failFx = XSingleton.singleton.CreateFx(this.FailEffectPath, null, true); + } + else + { + this.m_failFx.SetActive(true); + } + this.m_failFx.Play(base.PanelObject.transform, Vector3.zero, Vector3.one, 1f, true, false); + this.m_bIsPlayingEffect = true; + } + } + XSingleton.singleton.KillTimer(this.m_token); + this.m_token = XSingleton.singleton.SetTimer(this.m_lastTime, new XTimerMgr.ElapsedEventHandler(this.OnEffectEnd), null); + } + + private void OnEffectEnd(object o = null) + { + bool flag = this.m_sucFx != null; + if (flag) + { + this.m_sucFx.SetActive(false); + } + bool flag2 = this.m_failFx != null; + if (flag2) + { + this.m_failFx.SetActive(false); + } + this.m_bIsPlayingEffect = false; + } + + private void StopEffect() + { + bool flag = this.m_sucFx != null; + if (flag) + { + this.m_sucFx.SetActive(false); + } + bool flag2 = this.m_failFx != null; + if (flag2) + { + this.m_failFx.SetActive(false); + } + bool flag3 = this.m_fx != null; + if (flag3) + { + this.m_fx.SetActive(false); + } + } + + private bool OnClickFuseBtn(IXUIButton btn) + { + bool bIsPlayingEffect = this.m_bIsPlayingEffect; + bool result; + if (bIsPlayingEffect) + { + result = false; + } + else + { + bool flag = this.m_doc.FuseUid == 0UL; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseTips1"), "fece00"); + result = false; + } + else + { + bool flag2 = this.m_doc.FusedUid == 0UL; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseTips2"), "fece00"); + result = false; + } + else + { + bool flag3 = !this.m_bMatIsEnough; + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.ShowItemAccess(this.m_needItemId, null); + result = false; + } + else + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag4 = specificDocument.GetValue(XOptionsDefine.OD_NO_FUSE_CONFIRM) == 1; + if (flag4) + { + this.m_doc.ReqFuse(); + } + else + { + bool useFuseStone = this.m_doc.UseFuseStone; + string @string; + if (useFuseStone) + { + @string = XStringDefineProxy.GetString("FuseEnsureTips2"); + } + else + { + @string = XStringDefineProxy.GetString("FuseEnsureTips1"); + } + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this.DoOK), new ButtonClickEventHandler(this.DoCancel), false, XTempTipDefine.OD_FUSE_CONFIRM, 50); + } + result = true; + } + } + } + } + return result; + } + + private bool DoOK(IXUIButton btn) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_FUSE_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_FUSE_CONFIRM) ? 1 : 0, false); + } + XSingleton.singleton.CloseModalDlg(); + this.m_doc.ReqFuse(); + return true; + } + + private bool DoCancel(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_FUSE_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_FUSE_CONFIRM) ? 1 : 0, false); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void OnClickBox(IXUISprite spr) + { + bool flag = spr.ID == 1UL; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseTips1"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FuseTips2"), "fece00"); + } + } + + private void OnClickTips(IXUISprite spr) + { + bool flag = spr.ID == 0UL; + if (!flag) + { + XItem xitem = XBagDocument.BagDoc.GetItemByUID(spr.ID); + bool flag2 = xitem == null; + if (flag2) + { + xitem = XBagDocument.MakeXItem((int)spr.ID, false); + } + bool flag3 = xitem == null; + if (!flag3) + { + bool flag4 = xitem.Type == ItemType.ARTIFACT; + if (flag4) + { + XSingleton.singleton.bShowTakeOutBtn = true; + } + XSingleton.singleton.ShowTooltipDialog(xitem, null, spr, true, 0u); + } + } + } + + private bool OnClickToggle(IXUICheckBox box) + { + bool flag = box.bChecked != this.m_doc.UseFuseStone; + if (flag) + { + this.m_doc.UseFuseStone = box.bChecked; + this.FillNeedItem(); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactFuseHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactFuseHandler.cs.meta new file mode 100644 index 00000000..a60d4f7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactFuseHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6aa71b04ae912aa4796884f6eaa07ef9 +timeCreated: 1611403889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactInscriptionHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactInscriptionHandler.cs new file mode 100644 index 00000000..7757d2b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactInscriptionHandler.cs @@ -0,0 +1,239 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactInscriptionHandler : DlgHandlerBase + { + private string EffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_effectPath); + if (flag) + { + this.m_effectPath = XSingleton.singleton.GetValue("InscriptionEffectPath"); + } + return this.m_effectPath; + } + } + + protected override string FileName + { + get + { + return "ItemNew/ArtifactInscriptionHandler"; + } + } + + private ArtifactInscriptionDocument m_doc; + + private GameObject m_itemGo1; + + private GameObject m_itemGo2; + + private Transform m_effectTra; + + private IXUISprite m_boxSpr1; + + private IXUISprite m_boxSpr2; + + private IXUIButton m_inscriptionBtn; + + private XFx m_fx; + + private string m_effectPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactInscriptionDocument.Doc; + this.m_doc.Handler = this; + Transform transform = base.PanelObject.transform.Find("Bg1"); + this.m_itemGo1 = transform.Find("item0").gameObject; + this.m_itemGo2 = transform.Find("item1").gameObject; + this.m_boxSpr1 = (transform.Find("BgBox1").GetComponent("XUISprite") as IXUISprite); + this.m_boxSpr2 = (transform.Find("BgBox2").GetComponent("XUISprite") as IXUISprite); + this.m_inscriptionBtn = (transform.Find("Get").GetComponent("XUIButton") as IXUIButton); + this.m_effectTra = transform.Find("Effect"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_boxSpr1.ID = 1UL; + this.m_boxSpr1.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBox)); + this.m_boxSpr2.ID = 2UL; + this.m_boxSpr2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBox)); + this.m_inscriptionBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickInscriptionBtn)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_fx != null; + if (flag) + { + this.m_fx.Stop(); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_doc.Handler = null; + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + } + + public void RefreshUi() + { + this.FillContent(); + } + + private void FillContent() + { + XItem xitem = XBagDocument.BagDoc.GetItemByUID(this.m_doc.ArtifactUid); + bool flag = xitem == null; + if (flag) + { + XSingleton.singleton.DrawItem(this.m_itemGo1, null); + } + else + { + XSingleton.singleton.DrawItem(this.m_itemGo1, xitem); + IXUISprite ixuisprite = this.m_itemGo1.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this.m_doc.ArtifactUid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + } + xitem = XBagDocument.BagDoc.GetBagItemByUID(this.m_doc.InscriptionUid); + bool flag2 = xitem == null; + if (flag2) + { + XSingleton.singleton.DrawItem(this.m_itemGo2, null); + } + else + { + XSingleton.singleton.DrawItem(this.m_itemGo2, xitem); + IXUISprite ixuisprite2 = this.m_itemGo2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = this.m_doc.InscriptionUid; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + } + bool flag3 = this.m_doc.ArtifactUid != 0UL && this.m_doc.InscriptionUid > 0UL; + if (flag3) + { + bool flag4 = this.m_fx == null; + if (flag4) + { + this.m_fx = XSingleton.singleton.CreateFx(this.EffectPath, null, true); + } + else + { + this.m_fx.SetActive(true); + } + this.m_fx.Play(this.m_effectTra, Vector3.zero, Vector3.one, 1f, true, false); + } + else + { + bool flag5 = this.m_fx != null; + if (flag5) + { + this.m_fx.SetActive(false); + } + } + } + + private bool OnClickInscriptionBtn(IXUIButton btn) + { + bool flag = this.m_doc.ArtifactUid == 0UL || this.m_doc.InscriptionUid == 0UL; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("InscriptionTips1"), "fece00"); + result = false; + } + else + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag2 = specificDocument.GetValue(XOptionsDefine.OD_NO_INSCRIPTION_CONFIRM) == 1; + if (flag2) + { + this.m_doc.ReqInscription(); + } + else + { + XSingleton.singleton.ShowModalDialog(XSingleton.singleton.GetString("InscriptionTips2"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this.DoOK), new ButtonClickEventHandler(this.DoCancel), false, XTempTipDefine.OD_INSCRIPTION_CONFIRM, 50); + } + result = true; + } + return result; + } + + private bool DoOK(IXUIButton btn) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_INSCRIPTION_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_INSCRIPTION_CONFIRM) ? 1 : 0, false); + } + XSingleton.singleton.CloseModalDlg(); + this.m_doc.ReqInscription(); + return true; + } + + private bool DoCancel(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_INSCRIPTION_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_INSCRIPTION_CONFIRM) ? 1 : 0, false); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void OnClickBox(IXUISprite spr) + { + bool flag = spr.ID == 1UL; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("InscriptionPutInTips1"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("InscriptionPutInTips2"), "fece00"); + } + } + + private void OnClickTips(IXUISprite spr) + { + bool flag = spr.ID == 0UL; + if (!flag) + { + XItem xitem = XBagDocument.BagDoc.GetItemByUID(spr.ID); + bool flag2 = xitem == null; + if (flag2) + { + xitem = XBagDocument.MakeXItem((int)spr.ID, false); + } + XSingleton.singleton.ShowTooltipDialog(xitem, null, spr, false, 0u); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactInscriptionHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactInscriptionHandler.cs.meta new file mode 100644 index 00000000..50870eb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactInscriptionHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2763a5d0a10dc1141a878548569c05f0 +timeCreated: 1611403471 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactItemsHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactItemsHandler.cs new file mode 100644 index 00000000..932f1ee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactItemsHandler.cs @@ -0,0 +1,229 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactItemsHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/ArtifactItemsHandler"; + } + } + + private ArtifactDeityStoveDocument m_doc; + + private XBagWindow m_bagWindow; + + private IXUICheckBox m_curSelectToggle; + + private IXUIScrollView m_scrollView; + + private XUIPool m_tabsPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("Tabs"); + this.m_tabsPool.SetupPool(transform.gameObject, transform.Find("TabTpl0").gameObject, 5u, true); + this.m_scrollView = (transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_doc = ArtifactDeityStoveDocument.Doc; + this.m_bagWindow = new XBagWindow(base.PanelObject, new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this.m_doc.GetArtifactByTabLevel)); + this.m_bagWindow.Init(); + this.m_doc.ItemsHandler = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillTabs(); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_bagWindow.OnHide(); + this.m_doc.NewItems.TryClear(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.FillBagList(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_bagWindow = null; + this.m_doc.ItemsHandler = null; + } + + public void RefreshUi() + { + this.FillBagList(); + } + + private void FillTabs() + { + this.m_tabsPool.ReturnAll(true); + List tabLevels = this.m_doc.GetTabLevels(); + int num = 0; + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + this.m_doc.LevelDic.TryGetValue((int)XSingleton.singleton.XPlayerData.Level, out num); + } + int num2 = num; + int num3 = 0; + int num4 = 0; + for (int i = 0; i < tabLevels.Count; i++) + { + bool flag2 = tabLevels[i] > num2; + if (flag2) + { + break; + } + num4 = i + 1; + GameObject gameObject = this.m_tabsPool.FetchGameObject(false); + gameObject.transform.parent = this.m_scrollView.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, this.m_tabsPool.TplPos.y - (float)(i * this.m_tabsPool.TplHeight), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("ArtifactLevel"), tabLevels[i])); + ixuilabel2.SetText(string.Format(XSingleton.singleton.GetString("ArtifactLevel"), tabLevels[i])); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)tabLevels[i]); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickTab)); + bool flag3 = tabLevels[i] == num; + if (flag3) + { + num3 = i + 1; + this.m_curSelectToggle = ixuicheckBox; + ixuicheckBox.ForceSetFlag(true); + this.OnClickTab(ixuicheckBox); + } + else + { + ixuicheckBox.ForceSetFlag(false); + } + } + bool flag4 = num3 > 8; + if (flag4) + { + this.m_scrollView.SetPosition((float)(num3 / num4)); + } + } + + private void FillBagList() + { + this.m_doc.NewItems.bCanClear = true; + this.m_bagWindow.ChangeData(new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this.m_doc.GetArtifactByTabLevel)); + this.m_bagWindow.OnShow(); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILongPress ixuilongPress = t.Find("Icon").GetComponent("XUILongPress") as IXUILongPress; + bool flag = this.m_bagWindow.m_XItemList == null || index >= this.m_bagWindow.m_XItemList.Count || index < 0; + if (flag) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + t.gameObject.name = XSingleton.singleton.StringCombine("empty", index.ToString()); + ixuisprite.RegisterSpriteClickEventHandler(null); + ixuilongPress.RegisterSpriteLongPressEventHandler(null); + } + else + { + ixuisprite.ID = this.m_bagWindow.m_XItemList[index].uid; + bool flag2 = this.m_doc.IsSelected(ixuisprite.ID); + if (flag2) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + ixuisprite.RegisterSpriteClickEventHandler(null); + } + else + { + XSingleton.singleton.DrawItem(t.gameObject, this.m_bagWindow.m_XItemList[index]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + } + t.gameObject.name = XSingleton.singleton.StringCombine("artifact", this.m_bagWindow.m_XItemList[index].itemID.ToString()); + Transform transform = t.Find("Icon/RedPoint"); + bool flag3 = transform != null; + if (flag3) + { + transform.gameObject.SetActive(false); + } + transform = t.Find("Icon/TimeBg"); + bool flag4 = transform != null; + if (flag4) + { + transform.gameObject.SetActive(false); + } + transform = t.Find("Icon/New"); + bool flag5 = transform != null; + if (flag5) + { + transform.gameObject.SetActive(this.m_doc.NewItems.IsNew(ixuisprite.ID)); + } + transform = t.Find("Icon/State"); + bool flag6 = transform != null; + if (flag6) + { + transform.gameObject.SetActive(XBagDocument.BagDoc.ArtifactBag.HasItem(this.m_bagWindow.m_XItemList[index].uid)); + } + } + } + + private bool OnClickTab(IXUICheckBox cb) + { + bool flag = !cb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_doc.ResetSelection(false); + this.m_curSelectToggle = cb; + this.m_doc.CurSelectTabLevel = (int)cb.ID; + this.m_doc.RefreshAllHandlerUi(); + result = true; + } + return result; + } + + private void OnItemClicked(IXUISprite iSp) + { + bool flag = iSp.ID == 0UL; + if (!flag) + { + bool flag2 = this.m_doc.NewItems.RemoveItem(iSp.ID, ItemType.ARTIFACT, false); + if (flag2) + { + this.FillBagList(); + } + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(iSp.ID); + bool flag3 = itemByUID == null; + if (!flag3) + { + XSingleton.singleton.bShowPutInBtn = true; + XSingleton.singleton.ShowTooltipDialog(itemByUID, null, iSp, true, 0u); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactItemsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactItemsHandler.cs.meta new file mode 100644 index 00000000..e4a4b3be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactItemsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c61bb2060b0ecf042a4845b92d70732a +timeCreated: 1611404508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactOneKeyHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactOneKeyHandler.cs new file mode 100644 index 00000000..9e47cbe9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactOneKeyHandler.cs @@ -0,0 +1,142 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class ArtifactOneKeyHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/ArtifactOneKeyFrame"; + } + } + + private ArtifactComposeDocument m_doc; + + private IXUIButton m_closedBtn; + + private IXUIButton m_oneKeyBtn; + + private IXUICheckBox m_checkBoxB; + + private IXUICheckBox m_checkBoxA; + + private float m_delayTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private List m_selectLst = new List(); + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactComposeDocument.Doc; + this.m_closedBtn = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_oneKeyBtn = (base.PanelObject.transform.Find("BtnOneKeyCompose").GetComponent("XUIButton") as IXUIButton); + this.m_checkBoxB = (base.PanelObject.transform.Find("Bg/All_B/Category/Normal").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_checkBoxA = (base.PanelObject.transform.Find("Bg/All_A/Category/Normal").GetComponent("XUICheckBox") as IXUICheckBox); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClosed)); + this.m_oneKeyBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickOneKeyCompose)); + this.m_checkBoxB.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickCheckBox)); + this.m_checkBoxB.ID = 2UL; + this.m_checkBoxA.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickCheckBox)); + this.m_checkBoxA.ID = 3UL; + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void FillContent() + { + this.m_selectLst.Clear(); + this.m_checkBoxB.ForceSetFlag(false); + this.m_checkBoxB.ForceSetFlag(true); + this.m_checkBoxA.ForceSetFlag(false); + } + + private bool OnClickClosed(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnClickOneKeyCompose(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_delayTime); + bool result; + if (flag) + { + result = true; + } + else + { + this.m_doc.ReqOneKeyCompose(this.m_selectLst); + result = true; + } + return result; + } + + private bool OnClickCheckBox(IXUICheckBox box) + { + bool flag = !box.bChecked; + if (flag) + { + this.m_selectLst.Remove((uint)box.ID); + } + else + { + uint item = (uint)box.ID; + bool flag2 = !this.m_selectLst.Contains(item); + if (flag2) + { + this.m_selectLst.Add(item); + } + } + return true; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactOneKeyHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactOneKeyHandler.cs.meta new file mode 100644 index 00000000..57e1cb18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactOneKeyHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c76dd8b09144de468d6499e9747424a +timeCreated: 1611403997 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactQuanlityFx.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactQuanlityFx.cs new file mode 100644 index 00000000..4ec5fd38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactQuanlityFx.cs @@ -0,0 +1,40 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactQuanlityFx + { + private bool m_isUsing = false; + + private ulong m_key = 0UL; + + private XFx m_fx = null; + + public void SetData(ulong key, Transform tra, string path) + { + this.Reset(); + this.m_isUsing = true; + this.m_key = key; + this.m_fx = XSingleton.singleton.CreateUIFx(path, tra, false); + } + + public void Reset() + { + this.m_key = 0UL; + this.m_isUsing = false; + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + } + + public bool IsCanReuse(ulong key) + { + return this.m_isUsing && this.m_key == key; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactQuanlityFx.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactQuanlityFx.cs.meta new file mode 100644 index 00000000..e4c14954 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactQuanlityFx.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72fdfc7dabb4e6d4fa2bc005779d838d +timeCreated: 1611403939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactRecastHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactRecastHandler.cs new file mode 100644 index 00000000..4be6b9c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactRecastHandler.cs @@ -0,0 +1,255 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactRecastHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/ArtifactRecastHandler"; + } + } + + private ArtifactRecastDocument m_doc; + + private GameObject m_itemGoMain; + + private GameObject m_itemGoMet; + + private IXUISprite m_boxSprMain; + + private IXUIButton m_recastBtn; + + private bool m_bIsEnough = true; + + private int m_needItemId = 0; + + private float m_delayTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactRecastDocument.Doc; + this.m_doc.Handler = this; + Transform transform = base.PanelObject.transform.Find("Bg1"); + this.m_itemGoMain = transform.Find("item0").gameObject; + this.m_itemGoMet = transform.Find("item1").gameObject; + this.m_boxSprMain = (transform.Find("BgBox1").GetComponent("XUISprite") as IXUISprite); + this.m_recastBtn = (transform.Find("Get").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_boxSprMain.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBox)); + this.m_recastBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRecastBtn)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_doc.Handler = null; + } + + public void RefreshUi() + { + this.FillContent(); + } + + private void FillContent() + { + bool flag = this.m_doc.SelectUid == 0UL; + if (flag) + { + this.FillNull(); + } + else + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.FillNull(); + } + else + { + XSingleton.singleton.DrawItem(this.m_itemGoMain, itemByUID); + IXUISprite ixuisprite = this.m_itemGoMain.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this.m_doc.SelectUid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)itemByUID.itemID); + bool flag3 = artifactListRowData == null || artifactListRowData.RecastMaterials[0, 0] == 0u; + if (flag3) + { + XSingleton.singleton.DrawItem(this.m_itemGoMet, null); + } + else + { + this.m_needItemId = (int)artifactListRowData.RecastMaterials[0, 0]; + uint num = artifactListRowData.RecastMaterials[0, 1]; + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_itemGoMet, this.m_needItemId, (int)num, false); + ixuisprite = (this.m_itemGoMet.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = (ulong)((long)this.m_needItemId); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(this.m_needItemId); + IXUILabel ixuilabel = this.m_itemGoMet.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + this.m_bIsEnough = (itemCount >= (ulong)num); + bool bIsEnough = this.m_bIsEnough; + if (bIsEnough) + { + ixuilabel.SetText(string.Format("[00ff00]{0}/{1}[-]", itemCount, num)); + } + else + { + ixuilabel.SetText(string.Format("[ff0000]{0}/{1}[-]", itemCount, num)); + } + } + } + } + } + + private void FillNull() + { + XSingleton.singleton.DrawItem(this.m_itemGoMain, null); + int @int = XSingleton.singleton.GetInt("RecastStoneItemId"); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_itemGoMet, @int, 2, false); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(@int); + IXUILabel ixuilabel = this.m_itemGoMet.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0}/?", itemCount)); + IXUISprite ixuisprite = this.m_itemGoMet.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)@int); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + } + + private bool OnClickRecastBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_delayTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_doc.SelectUid == 0UL; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactRecastTips2"), "fece00"); + result = false; + } + else + { + bool flag3 = !this.m_bIsEnough; + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.ShowItemAccess(this.m_needItemId, null); + result = false; + } + else + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag4 = specificDocument.GetValue(XOptionsDefine.OD_NO_RECAST_CONFIRM) == 1; + if (flag4) + { + this.m_doc.ReqRecast(); + } + else + { + XSingleton.singleton.ShowModalDialog(XSingleton.singleton.GetString("RecastEnsureTips"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this.DoOK), new ButtonClickEventHandler(this.DoCancel), false, XTempTipDefine.OD_RECAST_CONFIRM, 50); + } + result = true; + } + } + } + return result; + } + + private bool DoOK(IXUIButton btn) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_RECAST_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_RECAST_CONFIRM) ? 1 : 0, false); + } + XSingleton.singleton.CloseModalDlg(); + this.m_doc.ReqRecast(); + return true; + } + + private bool DoCancel(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_RECAST_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_RECAST_CONFIRM) ? 1 : 0, false); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void OnClickBox(IXUISprite spr) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactRecastTips1"), "fece00"); + } + + private void OnClickTips(IXUISprite spr) + { + XItem xitem = XBagDocument.BagDoc.GetItemByUID(spr.ID); + bool flag = xitem == null; + if (flag) + { + xitem = XBagDocument.MakeXItem((int)spr.ID, false); + } + bool flag2 = xitem == null; + if (!flag2) + { + bool flag3 = xitem.Type == ItemType.ARTIFACT; + if (flag3) + { + XSingleton.singleton.bShowTakeOutBtn = true; + } + XSingleton.singleton.ShowTooltipDialog(xitem, null, spr, true, 0u); + } + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactRecastHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactRecastHandler.cs.meta new file mode 100644 index 00000000..122a0c5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactRecastHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6c8aa3fdd062ea46aebd998efdab433 +timeCreated: 1611404527 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactRefinedHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactRefinedHandler.cs new file mode 100644 index 00000000..32f9dcde --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactRefinedHandler.cs @@ -0,0 +1,302 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactRefinedHandler : DlgHandlerBase + { + public RefinedReplaceHandler Handler + { + get + { + return this.m_handler; + } + } + + protected override string FileName + { + get + { + return "ItemNew/ArtifactCzHandler"; + } + } + + private ArtifactRefinedDocument m_doc; + + private GameObject m_itemGoMain; + + private GameObject m_itemGoMet; + + private GameObject m_resultNewGo; + + private IXUISprite m_boxSprMain; + + private IXUIButton m_refinedBtn; + + private bool m_bIsEnough = true; + + private int m_needItemId = 0; + + private float m_delayTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private uint m_needNum = 0u; + + private RefinedReplaceHandler m_handler; + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactRefinedDocument.Doc; + this.m_doc.Handler = this; + Transform transform = base.PanelObject.transform.Find("Bg1"); + this.m_itemGoMain = transform.Find("item0").gameObject; + this.m_itemGoMet = transform.Find("item1").gameObject; + this.m_boxSprMain = (transform.Find("BgBox1").GetComponent("XUISprite") as IXUISprite); + this.m_refinedBtn = (transform.Find("Get").GetComponent("XUIButton") as IXUIButton); + this.m_resultNewGo = base.PanelObject.transform.Find("ResultNew").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_handler, this.m_resultNewGo, null, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_boxSprMain.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBox)); + this.m_refinedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRefinedBtn)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_doc.Handler = null; + } + + public void RefreshUi() + { + this.FillContent(); + } + + public void ShowReplaceHandler() + { + bool flag = this.m_handler != null && !this.m_handler.IsVisible(); + if (flag) + { + this.m_handler.SetVisible(true); + } + } + + private void FillContent() + { + bool flag = this.m_doc.SelectUid == 0UL; + if (flag) + { + this.FillNull(); + } + else + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.FillNull(); + } + else + { + XSingleton.singleton.DrawItem(this.m_itemGoMain, itemByUID); + IXUISprite ixuisprite = this.m_itemGoMain.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this.m_doc.SelectUid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)itemByUID.itemID); + bool flag3 = artifactListRowData == null || artifactListRowData.RefinedMaterials[0, 0] == 0u; + if (flag3) + { + XSingleton.singleton.DrawItem(this.m_itemGoMet, null); + } + else + { + this.m_needItemId = (int)artifactListRowData.RefinedMaterials[0, 0]; + uint num = artifactListRowData.RefinedMaterials[0, 1]; + this.m_needNum = num; + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_itemGoMet, this.m_needItemId, (int)num, false); + ixuisprite = (this.m_itemGoMet.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = (ulong)((long)this.m_needItemId); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(this.m_needItemId); + IXUILabel ixuilabel = this.m_itemGoMet.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + this.m_bIsEnough = (itemCount >= (ulong)num); + bool bIsEnough = this.m_bIsEnough; + if (bIsEnough) + { + ixuilabel.SetText(string.Format("[00ff00]{0}/{1}[-]", itemCount, num)); + } + else + { + ixuilabel.SetText(string.Format("[ff0000]{0}/{1}[-]", itemCount, num)); + } + } + XArtifactItem xartifactItem = itemByUID as XArtifactItem; + bool flag4 = xartifactItem.UnSavedAttr != null && xartifactItem.UnSavedAttr.Count > 0; + if (flag4) + { + this.ShowReplaceHandler(); + } + } + } + } + + private void FillNull() + { + XSingleton.singleton.DrawItem(this.m_itemGoMain, null); + int @int = XSingleton.singleton.GetInt("ReFinedStoneItemId"); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_itemGoMet, @int, 2, false); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(@int); + IXUILabel ixuilabel = this.m_itemGoMet.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0}/?", itemCount)); + IXUISprite ixuisprite = this.m_itemGoMet.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)@int); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickTips)); + } + + private bool OnClickRefinedBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_delayTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_doc.SelectUid == 0UL; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactRefinedTips2"), "fece00"); + result = false; + } + else + { + bool flag3 = !this.m_bIsEnough; + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.ShowItemAccess(this.m_needItemId, null); + result = false; + } + else + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag4 = specificDocument.GetValue(XOptionsDefine.OD_NO_REFINED_CONFIRM) == 1; + if (flag4) + { + this.m_doc.ReqRefined(ArtifactDeityStoveOpType.ArtifactDeityStove_Refine); + } + else + { + string text = ""; + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.m_needItemId); + bool flag5 = itemConf != null; + if (flag5) + { + text = itemConf.ItemIcon[0]; + } + bool flag6 = text != ""; + if (flag6) + { + text = XLabelSymbolHelper.FormatAnimation("Item/Item2", text, 10); + text = string.Format("{0}X{1}", text, this.m_needNum); + } + text = string.Format(XSingleton.singleton.GetString("RefinedEnsureTips"), text); + XSingleton.singleton.ShowModalDialog(XSingleton.singleton.ReplaceReturn(text), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this.DoOK), new ButtonClickEventHandler(this.DoCancel), false, XTempTipDefine.OD_REFINED_CONFIRM, 50); + } + result = true; + } + } + } + return result; + } + + private bool DoOK(IXUIButton btn) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_REFINED_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_REFINED_CONFIRM) ? 1 : 0, false); + } + XSingleton.singleton.CloseModalDlg(); + this.m_doc.ReqRefined(ArtifactDeityStoveOpType.ArtifactDeityStove_Refine); + return true; + } + + private bool DoCancel(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_REFINED_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_REFINED_CONFIRM) ? 1 : 0, false); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void OnClickBox(IXUISprite spr) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ArtifactRefinedTips1"), "fece00"); + } + + private void OnClickTips(IXUISprite spr) + { + XItem xitem = XBagDocument.BagDoc.GetItemByUID(spr.ID); + bool flag = xitem == null; + if (flag) + { + xitem = XBagDocument.MakeXItem((int)spr.ID, false); + } + bool flag2 = xitem == null; + if (!flag2) + { + bool flag3 = xitem.Type == ItemType.ARTIFACT; + if (flag3) + { + XSingleton.singleton.bShowTakeOutBtn = true; + } + XSingleton.singleton.ShowTooltipDialog(xitem, null, spr, true, 0u); + } + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactRefinedHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactRefinedHandler.cs.meta new file mode 100644 index 00000000..de6b28f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactRefinedHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f552fb18d96b8040acba2ed2cecb172 +timeCreated: 1611403515 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactToolTipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactToolTipDlg.cs new file mode 100644 index 00000000..9409e491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactToolTipDlg.cs @@ -0,0 +1,405 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactToolTipDlg : TooltipDlg + { + public override string fileName + { + get + { + return "GameSystem/ArtifactToolTipDlg"; + } + } + + protected override int compareWindowDistance + { + get + { + return 20; + } + } + + protected override void Init() + { + base.Init(); + this.m_OperateList[0, 0] = new ArtifactTooltipButtonOperate(); + this.m_OperateList[0, 1] = new TooltipButtonOperateRecycle(XSysDefine.XSys_Artifact); + this.m_OperateList[0, 2] = new TooltipButtonOperatePutIn(); + this.m_OperateList[0, 3] = new TooltipButtonOperateTakeOut(); + this.m_OperateList[1, 0] = new TooltipButtonOperateTakeOff(); + this.m_OperateList[1, 1] = new TooltipButtonOperatePutIn(); + this.m_OperateList[1, 2] = new TooltipButtonOperateTakeOut(); + } + + protected override void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + XArtifactItem xartifactItem = item as XArtifactItem; + bool flag = xartifactItem == null; + if (!flag) + { + GameObject gameObject = goToolTip.transform.Find("ScrollPanel").gameObject; + this._SetupRandFrame(gameObject, item, bMain); + } + } + + private void _SetupRandFrame(GameObject scrollPanel, XItem mainItem, bool bMain) + { + XArtifactItem xartifactItem = mainItem as XArtifactItem; + bool flag = xartifactItem == null; + if (!flag) + { + bool flag2 = !xartifactItem.RandAttrInfo.bPreview && xartifactItem.RandAttrInfo.RandAttr.Count == 0; + if (!flag2) + { + GameObject gameObject = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject.transform.parent = scrollPanel.transform; + AttrFrameParam attrFrameParam = new AttrFrameParam(); + attrFrameParam.Title = XStringDefineProxy.GetString("HIDDEN_ATTR"); + bool bPreview = xartifactItem.RandAttrInfo.bPreview; + if (bPreview) + { + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(AttrParam.TextSb, XStringDefineProxy.GetString("HIDDEN_ATTR"), ""); + AttrParam.Append(AttrParam.ValueSb, "???", ""); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + } + for (int i = 0; i < xartifactItem.RandAttrInfo.RandAttr.Count; i++) + { + XItemChangeAttr xitemChangeAttr = xartifactItem.RandAttrInfo.RandAttr[i]; + bool flag3 = xitemChangeAttr.AttrID == 0u; + if (!flag3) + { + ArtifactAttrRange artifactAttrRange = ArtifactDocument.GetArtifactAttrRange((uint)xartifactItem.itemID, i, xitemChangeAttr.AttrID, xitemChangeAttr.AttrValue); + string color = this.GetColor(xitemChangeAttr.AttrValue, artifactAttrRange.Min, artifactAttrRange.Max); + AttrParam item2 = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(xitemChangeAttr, color, color); + AttrParam.ValueSb.Append(" ["); + AttrParam.ValueSb.Append(artifactAttrRange.Min); + AttrParam.ValueSb.Append(" - "); + AttrParam.ValueSb.Append(artifactAttrRange.Max); + AttrParam.ValueSb.Append("] "); + item2.SetTextFromSb(); + item2.SetValueFromSb(); + attrFrameParam.AttrList.Add(item2); + } + } + base.AppendFrame(gameObject, (float)this.SetupAttrFrame(gameObject, attrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + } + } + } + + public string GetColor(uint attrValue, uint min, uint max) + { + bool flag = min >= max; + float num; + if (flag) + { + num = 100f; + } + else + { + bool flag2 = attrValue < max; + if (flag2) + { + num = (attrValue - min) * 100u / (max - min); + } + else + { + num = 100f; + } + } + int quality = EquipAttrDataMgr.MarkList.Count - 1; + for (int i = 0; i < EquipAttrDataMgr.MarkList.Count; i++) + { + bool flag3 = num < (float)EquipAttrDataMgr.MarkList[i]; + if (flag3) + { + quality = i; + break; + } + } + return XSingleton.singleton.GetItemQualityRGB(quality); + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + Transform transform = goToolTip.transform; + GameObject gameObject = transform.Find("TopFrame/State").gameObject; + base._SetupLevel(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 1); + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)data.ItemID); + base._SetTopFrameLabel(goToolTip, 2, XStringDefineProxy.GetString("ToolTipText_Part"), (artifactListRowData != null) ? XSingleton.singleton.GetArtifactPartName((ArtifactPosition)artifactListRowData.ArtifactPos, true) : string.Empty); + gameObject.SetActive(!bMain || XSingleton.singleton.bEquiped); + } + + protected override int _GetPPT(XItem item, bool bMain, ref string valueText) + { + XArtifactItem xartifactItem = item as XArtifactItem; + bool flag = xartifactItem == null; + int result; + if (flag) + { + result = -1; + } + else + { + XAttributes attributes = bMain ? XSingleton.singleton.mainAttributes : XSingleton.singleton.compareAttributes; + double num = xartifactItem.GetPPT(attributes); + bool bPreview = xartifactItem.RandAttrInfo.bPreview; + if (bPreview) + { + uint num2 = (uint)num + ArtifactDocument.GetArtifactMinPPt((uint)xartifactItem.itemID, attributes); + uint num3 = (uint)num + ArtifactDocument.GetArtifactMaxPPt((uint)xartifactItem.itemID, attributes); + valueText = string.Format("{0} - {1}", num2, num3); + result = -1; + } + else + { + for (int i = 0; i < xartifactItem.RandAttrInfo.RandAttr.Count; i++) + { + bool flag2 = xartifactItem.RandAttrInfo.RandAttr[i].AttrID == 0u; + if (!flag2) + { + num += XSingleton.singleton.GetPPT(xartifactItem.RandAttrInfo.RandAttr[i], attributes, -1); + } + } + valueText = ((uint)num).ToString(); + result = (int)num; + } + } + return result; + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + this._SetupArtifactEffect(goToolTip, mainItem, compareItem, bMain); + this._SetupSuitFrame(goToolTip, mainItem, compareItem, bMain); + base.SetupOtherFrame(goToolTip, mainItem, compareItem, bMain); + } + + private void _SetupArtifactEffect(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + XArtifactItem xartifactItem = mainItem as XArtifactItem; + bool flag = xartifactItem == null; + if (!flag) + { + bool flag2 = xartifactItem.EffectInfoList.Count <= 0; + if (!flag2) + { + GameObject gameObject = goToolTip.transform.Find("ScrollPanel").gameObject; + GameObject gameObject2 = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject2.transform.parent = gameObject.transform; + AttrFrameParam attrFrameParam = new AttrFrameParam(); + attrFrameParam.Title = XStringDefineProxy.GetString("ArytifactSkillEffect"); + int num = int.MaxValue; + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)xartifactItem.itemID); + bool flag3 = artifactListRowData != null; + if (flag3) + { + num = (int)artifactListRowData.EffectNum; + } + for (int i = 0; i < xartifactItem.EffectInfoList.Count; i++) + { + XArtifactEffectInfo xartifactEffectInfo = xartifactItem.EffectInfoList[i]; + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + string text = ArtifactDocument.GetArtifactEffectDes(xartifactEffectInfo.EffectId, xartifactEffectInfo.GetValues()); + bool flag4 = !xartifactEffectInfo.IsValid; + if (flag4) + { + text = string.Format("{0}{1}", text, XSingleton.singleton.GetString("NotValid")); + } + bool flag5 = i >= num; + if (flag5) + { + text = XSingleton.singleton.StringCombine(XLabelSymbolHelper.FormatAnimation("common/Universal", "Emblem_0", 10), text); + } + AttrParam.Append(AttrParam.ValueSb, text, ""); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + } + base.AppendFrame(gameObject2, (float)this.SetupDesFrame(gameObject2, attrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject2); + } + } + } + + protected int SetupDesFrame(GameObject attrFrame, AttrFrameParam param, bool bMain) + { + int num = 0; + IXUILabel ixuilabel = attrFrame.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + bool flag = !string.IsNullOrEmpty(param.Title); + int num2; + if (flag) + { + ixuilabel.SetText(param.Title); + ixuilabel.SetVisible(true); + num2 = (int)ixuilabel.gameObject.transform.localPosition.y - ixuilabel.spriteHeight; + } + else + { + ixuilabel.SetVisible(false); + num2 = (int)ixuilabel.gameObject.transform.localPosition.y; + } + int num3 = 8; + IXUILabel ixuilabel2 = base.uiBehaviour.m_AttrPool._tpl.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + int num4 = base.uiBehaviour.m_AttrPool.TplHeight - ixuilabel2.fontSize; + for (int i = 0; i < param.AttrList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_DesFramePool.FetchGameObject(false); + gameObject.transform.parent = attrFrame.transform; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_AttrPool.TplPos.x, (float)(num2 + num), base.uiBehaviour.m_AttrPool.TplPos.z); + gameObject.transform.localScale = Vector3.one; + IXUILabelSymbol ixuilabelSymbol = gameObject.transform.Find("Text").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel3 = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabelSymbol.InputText = param.AttrList[i].strValue; + num -= ixuilabel3.spriteHeight + num3; + } + IXUISprite ixuisprite = attrFrame.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteHeight = -num - num2 - num4; + return ixuisprite.spriteHeight; + } + + private void _SetupSuitFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + IXUISprite ixuisprite = goToolTip.transform.Find("ScrollPanel/SuitFrame").GetComponent("XUISprite") as IXUISprite; + bool flag = mainItem == null; + if (flag) + { + ixuisprite.SetVisible(false); + } + else + { + ArtifactSuit suitByArtifactId = ArtifactDocument.SuitMgr.GetSuitByArtifactId((uint)mainItem.itemID); + bool flag2 = suitByArtifactId == null; + if (flag2) + { + ixuisprite.SetVisible(false); + } + else + { + ixuisprite.SetVisible(true); + bool flag3 = XSingleton.singleton.BodyBag == null; + if (flag3) + { + XSingleton.singleton.BodyBag = XSingleton.singleton.Doc.XBagDoc.ArtifactBag; + } + int num = suitByArtifactId.GetEquipedSuitCount(XSingleton.singleton.BodyBag); + bool flag4 = bMain && suitByArtifactId.WillChangeEquipedCount(mainItem.itemID, XSingleton.singleton.BodyBag); + if (flag4) + { + num++; + } + int num2 = 0; + AttrFrameParam attrFrameParam = new AttrFrameParam(); + for (int i = 0; i < suitByArtifactId.effects.Length; i++) + { + SeqListRef seqListRef = suitByArtifactId.effects[i]; + bool flag5 = seqListRef.Count == 0; + if (!flag5) + { + for (int j = 0; j < seqListRef.Count; j++) + { + bool flag6 = seqListRef[j, 0] == 0u; + if (!flag6) + { + bool flag7 = i <= num; + string text; + string color; + if (flag7) + { + text = "ffffff"; + color = XSingleton.singleton.GetColorStr(new Color(0.996078432f, 0.807843149f, 0f)); + } + else + { + text = XSingleton.singleton.GetColorStr(new Color(0.5019608f, 0.5019608f, 0.5019608f)); + color = text; + } + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(AttrParam.TextSb, XStringDefineProxy.GetString("EQUIP_SUIT_EFFECT", new object[] + { + i + }), color); + string s = string.Format("{0}{1}", XStringDefineProxy.GetString((XAttributeDefine)seqListRef[j, 0]), XAttributeCommon.GetAttrValueStr((int)seqListRef[j, 0], (float)seqListRef[j, 1])); + AttrParam.Append(AttrParam.ValueSb, s, text); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + num2++; + } + } + } + } + bool flag8 = num2 > 0; + if (flag8) + { + string arg = string.Format(XSingleton.singleton.GetString("ArtifactSuitEffectTittle"), suitByArtifactId.Name); + attrFrameParam.Title = string.Format("{0}({1}/{2})", arg, num.ToString(), suitByArtifactId.Artifacts.Count.ToString()); + base.AppendFrame(ixuisprite.gameObject, (float)this.SetupAttrFrame(ixuisprite.gameObject, attrFrameParam, bMain), null); + } + else + { + ixuisprite.SetVisible(false); + } + } + } + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + bool flag = !this.bShowButtons; + if (!flag) + { + if (bMain) + { + XArtifactItem xartifactItem = item as XArtifactItem; + bool flag2 = XSingleton.singleton.Doc.XBagDoc.ArtifactBag.HasItem(item.uid); + if (flag2) + { + base._SetupButtonVisiability(goToolTip, 1, item); + } + else + { + base._SetupButtonVisiability(goToolTip, 0, item); + } + } + } + } + + public override bool HideToolTip(bool forceHide = false) + { + bool flag = base.HideToolTip(forceHide); + bool flag2 = !flag; + bool result; + if (flag2) + { + result = flag; + } + else + { + bool flag3 = base.uiBehaviour.m_DesFramePool != null; + if (flag3) + { + base.uiBehaviour.m_DesFramePool.ReturnAll(false); + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactToolTipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactToolTipDlg.cs.meta new file mode 100644 index 00000000..b84a45c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactToolTipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1d6d3c15e0cdf44b879597cea05d610 +timeCreated: 1611404840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactTooltipDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ArtifactTooltipDlgBehaviour.cs new file mode 100644 index 00000000..1cf66b2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactTooltipDlgBehaviour.cs @@ -0,0 +1,23 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ArtifactTooltipDlgBehaviour : TooltipDlgBehaviour + { + public XUIPool m_DesFramePool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Awake() + { + GameObject gameObject = base.transform.Find("Bg/Bg").gameObject; + Transform transform = gameObject.transform.Find("ToolTip/ScrollPanel/BasicAttr/DesTpl"); + bool flag = transform != null; + if (flag) + { + this.m_DesFramePool.SetupPool(gameObject, transform.gameObject, 2u, false); + } + base.Awake(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ArtifactTooltipDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ArtifactTooltipDlgBehaviour.cs.meta new file mode 100644 index 00000000..7fc331ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ArtifactTooltipDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cca7b01b3e89eaa44a23e8f6004c1eb6 +timeCreated: 1611404551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AttrFrameParam.cs b/Client/Assets/Scripts/XMainClient/UI/AttrFrameParam.cs new file mode 100644 index 00000000..a90db936 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AttrFrameParam.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient.UI +{ + internal class AttrFrameParam + { + public string Title { get; set; } + + public List AttrList + { + get + { + return this.m_AttrList; + } + } + + private List m_AttrList = new List(); + + public void Clear() + { + this.m_AttrList.Clear(); + this.Title = string.Empty; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AttrFrameParam.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AttrFrameParam.cs.meta new file mode 100644 index 00000000..4100befa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AttrFrameParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96cff857515137648b14c2d2db7a0e56 +timeCreated: 1611404186 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AttrParam.cs b/Client/Assets/Scripts/XMainClient/UI/AttrParam.cs new file mode 100644 index 00000000..d8457f75 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AttrParam.cs @@ -0,0 +1,57 @@ +using System; +using System.Text; + +namespace XMainClient.UI +{ + internal struct AttrParam + { + public static StringBuilder TextSb = new StringBuilder(); + + public static StringBuilder ValueSb = new StringBuilder(); + + public string strText; + + public string strValue; + + public bool IsShowTipsIcon; + + public string IconName; + + public static void ResetSb() + { + AttrParam.TextSb.Length = 0; + AttrParam.ValueSb.Length = 0; + } + + public static void Append(StringBuilder sb, string s, string color = "") + { + bool flag = !string.IsNullOrEmpty(color); + if (flag) + { + sb.Append("[").Append(color).Append("]"); + } + sb.Append(s); + bool flag2 = !string.IsNullOrEmpty(color); + if (flag2) + { + sb.Append("[-]"); + } + } + + public static void Append(XItemChangeAttr attr, string textColor = "", string valueColor = "") + { + AttrParam.Append(AttrParam.TextSb, XAttributeCommon.GetAttrStr((int)attr.AttrID), textColor); + AttrParam.Append(AttrParam.ValueSb, XAttributeCommon.GetAttrValueStr((int)attr.AttrID, attr.AttrValue), valueColor); + } + + public void SetTextFromSb() + { + this.strText = AttrParam.TextSb.ToString(); + } + + public void SetValueFromSb() + { + this.strValue = AttrParam.ValueSb.ToString(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AttrParam.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AttrParam.cs.meta new file mode 100644 index 00000000..ceb37b3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AttrParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b1d75dde66837644288da691ac20ec26 +timeCreated: 1611404357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlg.cs new file mode 100644 index 00000000..d54437b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlg.cs @@ -0,0 +1,168 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AttrTooltipDlg : TooltipDlg + { + private IAttrTooltipDlgHandler CurrentTooltipDlgHandler + { + set + { + this._PreviousTooltipDlgHandler = this._CurrentTooltipDlgHandler; + this._CurrentTooltipDlgHandler = value; + } + } + + public override string fileName + { + get + { + return "GameSystem/AttrToolTipDlg"; + } + } + + protected override string _PPTTitle + { + get + { + bool flag = this._CurrentTooltipDlgHandler != null; + string ppttitle; + if (flag) + { + ppttitle = this._CurrentTooltipDlgHandler._PPTTitle; + } + else + { + ppttitle = base._PPTTitle; + } + return ppttitle; + } + } + + private IAttrTooltipDlgHandler _CurrentTooltipDlgHandler = null; + + private IAttrTooltipDlgHandler _PreviousTooltipDlgHandler = null; + + protected override void Init() + { + base.Init(); + } + + public override bool HideToolTip(bool forceHide = false) + { + bool flag = base.HideToolTip(forceHide); + if (flag) + { + base.uiBehaviour.m_EmblemPartPool.ReturnAll(false); + base.uiBehaviour.m_JadePartPool.ReturnAll(false); + bool flag2 = this._CurrentTooltipDlgHandler != null; + if (flag2) + { + this._CurrentTooltipDlgHandler.HideToolTip(forceHide); + } + bool flag3 = this._PreviousTooltipDlgHandler != null; + if (flag3) + { + this._PreviousTooltipDlgHandler.HideToolTip(forceHide); + } + } + return true; + } + + public override IXUISprite ShowToolTip(XItem mainItem, XItem compareItem, bool bShowButtons, uint profession = 0u) + { + bool flag = mainItem != null; + if (flag) + { + ItemType type = mainItem.Type; + this.CurrentTooltipDlgHandler = null; + } + return base.ShowToolTip(mainItem, compareItem, bShowButtons, profession); + } + + protected override void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + base.SetAllAttrFrames(goToolTip, item, compareItem, bMain); + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + IXUILabel ixuilabel = goToolTip.transform.Find("TopFrame/Type").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetItemTypeStr((int)data.ItemType)); + bool flag = this._CurrentTooltipDlgHandler != null; + if (flag) + { + this._CurrentTooltipDlgHandler.SetupTopFrame(goToolTip, data, instanceData, compareData); + } + } + + protected override int _GetPPT(XItem item, bool bMain, ref string valueText) + { + bool flag = this._CurrentTooltipDlgHandler != null; + int result; + if (flag) + { + result = this._CurrentTooltipDlgHandler._GetPPT(item, bMain, ref valueText); + } + else + { + result = -1; + } + return result; + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem item, XItem compareItem, bool bMain) + { + base.SetupOtherFrame(goToolTip, item, compareItem, bMain); + bool flag = this._CurrentTooltipDlgHandler != null; + if (flag) + { + this._CurrentTooltipDlgHandler.SetupOtherFrame(goToolTip, item, compareItem, bMain); + } + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + bool flag = this._CurrentTooltipDlgHandler != null; + if (flag) + { + this._CurrentTooltipDlgHandler.SetupToolTipButtons(goToolTip, item, bMain); + } + } + + protected override bool OnButton1Clicked(IXUIButton button) + { + bool flag = this._CurrentTooltipDlgHandler != null; + if (flag) + { + this._CurrentTooltipDlgHandler.OnButton1Clicked(button); + } + return base.OnButton1Clicked(button); + } + + protected override bool OnButton2Clicked(IXUIButton button) + { + bool flag = this._CurrentTooltipDlgHandler != null; + if (flag) + { + this._CurrentTooltipDlgHandler.OnButton2Clicked(button); + } + return base.OnButton2Clicked(button); + } + + protected override bool OnButton3Clicked(IXUIButton button) + { + bool flag = this._CurrentTooltipDlgHandler != null; + if (flag) + { + this._CurrentTooltipDlgHandler.OnButton3Clicked(button); + } + return base.OnButton3Clicked(button); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlg.cs.meta new file mode 100644 index 00000000..456cd149 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 61eedc08117a319479ae5c4286a838b9 +timeCreated: 1611403839 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlgBehaviour.cs new file mode 100644 index 00000000..7099f901 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlgBehaviour.cs @@ -0,0 +1,19 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AttrTooltipDlgBehaviour : TooltipDlgBehaviour + { + public XUIPool m_EmblemPartPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_JadePartPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Awake() + { + this.m_EmblemPartPool.SetupPool(base.transform.Find("Bg/Bg").gameObject, base.transform.Find("Bg/Bg/ToolTip/TopFrame/EmblemPart").gameObject, 2u, false); + this.m_JadePartPool.SetupPool(base.transform.Find("Bg/Bg").gameObject, base.transform.Find("Bg/Bg/ToolTip/TopFrame/JadePart").gameObject, 2u, false); + base.Awake(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlgBehaviour.cs.meta new file mode 100644 index 00000000..80312bb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AttrTooltipDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6866e9c86d8c7f47893bf59c62d1f8d +timeCreated: 1611404632 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionBillBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionBillBehaviour.cs new file mode 100644 index 00000000..7dcf0aac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionBillBehaviour.cs @@ -0,0 +1,112 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class AuctionBillBehaviour : DlgBehaviourBase + { + public IXUISprite m_maskSprite; + + public IXUILabel m_billTitleTxt; + + public GameObject m_ItemTpl; + + public IXUISprite m_iconSprite; + + public IXUILabel m_RecentPrice; + + public IXUILabel m_TotalPrice; + + public IXUILabel m_ProcedurePrice; + + public IXUILabel m_RecommondTxt; + + public IXUITable m_sellOper; + + public AuctionNumberOperate m_SinglePriceOperate; + + public AuctionNumberOperate m_CountOperate; + + public IXUIButton m_LeftButton; + + public IXUIButton m_RightButton; + + public IXUIButton m_CloseButton; + + private IXUILabel m_rightButtonLabel; + + private IXUILabel m_leftButtonLabel; + + private Vector3 m_leftPosition = new Vector3(-137f, -162f, 0f); + + private Vector3 m_rightPosition = new Vector3(137f, -162f, 0f); + + private Vector3 m_middlePosition = new Vector3(0f, -162f, 0f); + + private void Awake() + { + this.m_billTitleTxt = (base.transform.Find("Detail/Title").GetComponent("XUILabel") as IXUILabel); + this.m_ItemTpl = base.transform.Find("Detail/ItemTpl").gameObject; + this.m_iconSprite = (base.transform.Find("Detail/ItemTpl/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_RecentPrice = (base.transform.Find("Detail/SellSuccess/RecentPrice").GetComponent("XUILabel") as IXUILabel); + this.m_TotalPrice = (base.transform.Find("Detail/SellSuccess/Grid/Total/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ProcedurePrice = (base.transform.Find("Detail/SellSuccess/Grid/Procedure/Label").GetComponent("XUILabel") as IXUILabel); + this.m_SinglePriceOperate = new AuctionNumberOperate(base.transform.Find("Detail/SellSuccess/Grid/Price").gameObject, new Vector3(-98f, 96f, 0f)); + this.m_CountOperate = new AuctionNumberOperate(base.transform.Find("Detail/SellSuccess/Grid/Free").gameObject, new Vector3(-98f, 36f, 0f)); + this.m_LeftButton = (base.transform.Find("Detail/LeftButton").GetComponent("XUIButton") as IXUIButton); + this.m_RightButton = (base.transform.Find("Detail/RightButton").GetComponent("XUIButton") as IXUIButton); + this.m_maskSprite = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_RecommondTxt = (base.transform.Find("Detail/SellSuccess/Recommond").GetComponent("XUILabel") as IXUILabel); + this.m_rightButtonLabel = (base.transform.Find("Detail/RightButton/Label").GetComponent("XUILabel") as IXUILabel); + this.m_leftButtonLabel = (base.transform.Find("Detail/LeftButton/Label").GetComponent("XUILabel") as IXUILabel); + this.m_CloseButton = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_sellOper = (base.transform.Find("Detail/SellSuccess/Grid").GetComponent("XUITable") as IXUITable); + this.m_leftPosition = this.m_LeftButton.gameObject.transform.localPosition; + this.m_rightPosition = this.m_RightButton.gameObject.transform.localPosition; + this.m_middlePosition = new Vector3(0f, this.m_leftPosition.y, 0f); + } + + public void SetButtonPosition(string[] seq) + { + int num = 0; + bool flag = !string.IsNullOrEmpty(seq[0]); + if (flag) + { + this.m_RightButton.SetVisible(true); + this.m_rightButtonLabel.SetText(seq[0]); + num++; + } + else + { + this.m_RightButton.SetVisible(false); + } + bool flag2 = !string.IsNullOrEmpty(seq[1]); + if (flag2) + { + this.m_LeftButton.SetVisible(true); + this.m_leftButtonLabel.SetText(seq[1]); + num++; + } + else + { + this.m_LeftButton.SetVisible(false); + } + bool flag3 = num == 1; + if (flag3) + { + this.m_RightButton.gameObject.transform.localPosition = this.m_middlePosition; + } + else + { + bool flag4 = num == 2; + if (flag4) + { + this.m_LeftButton.gameObject.transform.localPosition = this.m_leftPosition; + this.m_RightButton.gameObject.transform.localPosition = this.m_rightPosition; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionBillBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionBillBehaviour.cs.meta new file mode 100644 index 00000000..46bc35d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionBillBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60f0a343841efc44aa2b50a554dd040b +timeCreated: 1611403836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionBillStyle.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionBillStyle.cs new file mode 100644 index 00000000..657a39f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionBillStyle.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + public enum AuctionBillStyle + { + PutAway, + RePutAway, + OutTime + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionBillStyle.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionBillStyle.cs.meta new file mode 100644 index 00000000..464157a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionBillStyle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db09df9b9c1734e4dad22c49812b20b7 +timeCreated: 1611404651 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionBillView.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionBillView.cs new file mode 100644 index 00000000..ea63bafe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionBillView.cs @@ -0,0 +1,183 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AuctionBillView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Auction/AuctionBillFrame"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private Dictionary m_billStyles; + + private AuctionBillStyle m_curBillStyle = AuctionBillStyle.PutAway; + + private int m_referPrice = 0; + + private ulong m_aucuid = 0UL; + + private XItem m_curItem; + + public void Set(XItem item, AuctionBillStyle style = AuctionBillStyle.PutAway, ulong uid = 0UL) + { + this.m_aucuid = uid; + this.m_curBillStyle = style; + this.m_curItem = item; + bool flag = this.m_curItem != null; + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + } + + protected override void Init() + { + base.Init(); + this.m_billStyles = new Dictionary(); + this.m_billStyles[AuctionBillStyle.PutAway] = new string[2]; + this.m_billStyles[AuctionBillStyle.PutAway][0] = XStringDefineProxy.GetString("AUCTION_PUTAWAY"); + this.m_billStyles[AuctionBillStyle.PutAway][1] = string.Empty; + this.m_billStyles[AuctionBillStyle.RePutAway] = new string[2]; + this.m_billStyles[AuctionBillStyle.RePutAway][0] = XStringDefineProxy.GetString("AUCTION_RPUTAWAY"); + this.m_billStyles[AuctionBillStyle.RePutAway][1] = XStringDefineProxy.GetString("ACUTION_SOLDOUT"); + this.m_billStyles[AuctionBillStyle.OutTime] = new string[2]; + this.m_billStyles[AuctionBillStyle.OutTime][0] = XStringDefineProxy.GetString("AUCTION_RPUTAWAY"); + this.m_billStyles[AuctionBillStyle.OutTime][1] = XStringDefineProxy.GetString("AUCTION_PUTDOWN"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_LeftButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickLeftHandler)); + base.uiBehaviour.m_RightButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRightHandler)); + base.uiBehaviour.m_SinglePriceOperate.RegisterOperateChange(new AuctionNumberOperate.NumberOperateCallBack(this.OnTotalPriceOperateChange)); + base.uiBehaviour.m_CountOperate.RegisterOperateChange(new AuctionNumberOperate.NumberOperateCallBack(this.OnTotalPriceOperateChange)); + base.uiBehaviour.m_CloseButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickCloseHandler)); + } + + protected override void OnShow() + { + base.OnShow(); + this.SetDetailInfo(); + } + + private void SetDetailInfo() + { + base.uiBehaviour.m_billTitleTxt.SetText(XStringDefineProxy.GetString((this.m_curBillStyle == AuctionBillStyle.OutTime) ? "AUCTION_TITLE_OUTTIME" : "AUCTION_TITLE_PUTAWAY")); + AuctionDocument specificDocument = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + base.uiBehaviour.SetButtonPosition(this.m_billStyles[this.m_curBillStyle]); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.m_curItem.itemID); + float discount = AuctionDocument.GetDiscount((uint)itemConf.AuctionGroup); + float num = this.m_curItem.Treasure ? float.Parse(XSingleton.singleton.GetValue("AuctTreasureTJPriceRate")) : 1f; + this.m_referPrice = Mathf.FloorToInt(itemConf.AuctPriceRecommend * discount * num); + uint referPrice; + bool flag = !specificDocument.TryGetAuctionBriefReferPrice((uint)this.m_curItem.itemID, out referPrice) || referPrice == 0u; + if (flag) + { + referPrice = (uint)this.m_referPrice; + } + float num2 = itemConf.AuctionRange[1]; + float num3 = itemConf.AuctionRange[0]; + int step = Mathf.CeilToInt((float)this.m_referPrice * float.Parse(XSingleton.singleton.GetValue("AuctionOperStep"))); + base.uiBehaviour.m_RecentPrice.SetText(referPrice.ToString()); + base.uiBehaviour.m_SinglePriceOperate.Set(Mathf.FloorToInt(num2 * (float)this.m_referPrice), Mathf.CeilToInt((float)this.m_referPrice * num3), this.m_referPrice, step, false, false); + bool flag2 = this.m_curBillStyle == AuctionBillStyle.PutAway; + if (flag2) + { + base.uiBehaviour.m_CountOperate.Set((itemConf.AuctionUpperLimit == 0) ? this.m_curItem.itemCount : Mathf.Min(this.m_curItem.itemCount, (int)itemConf.AuctionUpperLimit), 1, 1, 1, true, false); + base.uiBehaviour.m_CountOperate.SetEnable(true); + } + else + { + base.uiBehaviour.m_CountOperate.Set(this.m_curItem.itemCount, 1, this.m_curItem.itemCount, 1, true, false); + base.uiBehaviour.m_CountOperate.SetEnable(false); + } + XSingleton.singleton.DrawItem(base.uiBehaviour.m_ItemTpl, this.m_curItem); + base.uiBehaviour.m_iconSprite.ID = this.m_curItem.uid; + base.uiBehaviour.m_iconSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClick)); + base.uiBehaviour.m_ProcedurePrice.SetText(XSingleton.singleton.GetValue("AuctOnSaleCostGold")); + base.uiBehaviour.m_sellOper.Reposition(); + } + + private void OnItemClick(IXUISprite sprite) + { + XSingleton.singleton.ShowTooltipDialog(this.m_curItem, null, sprite, false, 0u); + } + + private void OnTotalPriceOperateChange() + { + int num = base.uiBehaviour.m_SinglePriceOperate.Cur * base.uiBehaviour.m_CountOperate.Cur; + base.uiBehaviour.m_TotalPrice.SetText(num.ToString()); + int num2 = Mathf.Abs(base.uiBehaviour.m_SinglePriceOperate.Cur - this.m_referPrice); + float num3 = 0f; + bool flag = this.m_referPrice != 0; + if (flag) + { + num3 = (float)num2 / (float)this.m_referPrice; + } + int num4 = Mathf.FloorToInt(num3 * 100f); + base.uiBehaviour.m_RecommondTxt.SetText(string.Format((base.uiBehaviour.m_SinglePriceOperate.Cur < this.m_referPrice) ? "-{0}%" : "+{0}%", num4)); + } + + private bool OnClickLeftHandler(IXUIButton btn) + { + AuctionDocument specificDocument = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + AuctionBillStyle curBillStyle = this.m_curBillStyle; + if (curBillStyle != AuctionBillStyle.RePutAway) + { + if (curBillStyle == AuctionBillStyle.OutTime) + { + specificDocument.RequestAuctionQuitSale(this.m_aucuid); + } + } + else + { + specificDocument.RequestAuctionQuitSale(this.m_aucuid); + } + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnClickRightHandler(IXUIButton btn) + { + AuctionDocument specificDocument = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + AuctionBillStyle curBillStyle = this.m_curBillStyle; + if (curBillStyle != AuctionBillStyle.PutAway) + { + if (curBillStyle - AuctionBillStyle.RePutAway <= 1) + { + specificDocument.RequestAcutionReSale(this.m_aucuid, (uint)base.uiBehaviour.m_SinglePriceOperate.Cur); + } + } + else + { + specificDocument.RequestAuctionSale(this.m_curItem.uid, (uint)this.m_curItem.itemID, (uint)base.uiBehaviour.m_CountOperate.Cur, (uint)base.uiBehaviour.m_SinglePriceOperate.Cur, this.m_curItem.Treasure); + } + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnClickCloseHandler(IXUIButton sprite) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionBillView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionBillView.cs.meta new file mode 100644 index 00000000..f33f439a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionBillView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be91aae943a275e4394cc78249d05c77 +timeCreated: 1611404462 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionBuyHandler.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionBuyHandler.cs new file mode 100644 index 00000000..142e7ea2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionBuyHandler.cs @@ -0,0 +1,560 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AuctionBuyHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Auction/AuctionBuyFrame"; + } + } + + private AuctionDocument _Doc; + + private IXUIScrollView m_typeListScrollView; + + private XUIPool m_levelOnePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_levelTwoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Dictionary m_typeDictionary = new Dictionary(); + + private int m_NormalSelect = 6; + + private IXUILabel m_refreshTime; + + private IXUILabelSymbol m_refreshButtonLabel; + + private IXUIButton m_refreshButton; + + private Transform m_ailinTransform; + + private IXUICheckBox m_ItemLevelCheck; + + private IXUICheckBox m_ItemBlockCheck; + + private int m_curAuctionType = 0; + + private Transform m_ItemWrap; + + private Transform m_GoodWrap; + + private List m_ShowAuctionList; + + private List m_showSelectItems; + + private AuctionWrapContentGroup m_ItemContentGroup; + + private AuctionWrapContentGroup m_AuctionItemGroup; + + private XElapseTimer m_freeRefreshTime = new XElapseTimer(); + + private bool m_freeRefresh = false; + + public override void OnUpdate() + { + base.OnUpdate(); + this.RefreshFreeRefreshCount(); + bool freeRefresh = this.m_freeRefresh; + if (freeRefresh) + { + this.UpdateNextFreshTime(); + } + } + + public override void OnUnload() + { + this.m_ItemContentGroup = null; + this.m_AuctionItemGroup = null; + bool flag = this.m_ShowAuctionList != null; + if (flag) + { + this.m_ShowAuctionList.Clear(); + this.m_ShowAuctionList = null; + } + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.m_ShowAuctionList = new List(); + this._Doc = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + this.m_typeListScrollView = (base.PanelObject.transform.Find("TypeList").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = base.PanelObject.transform.Find("TypeList/Table/LevelOneTpl"); + this.m_levelOnePool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + transform = base.PanelObject.transform.Find("TypeList/Table/LevelTwoTpl"); + this.m_levelTwoPool.SetupPool(transform.parent.gameObject, transform.gameObject, 30u, false); + this.m_ItemWrap = base.PanelObject.transform.Find("Item"); + this.m_GoodWrap = base.PanelObject.transform.Find("Good"); + this.m_ailinTransform = base.PanelObject.transform.Find("ailin"); + this.m_refreshTime = (base.PanelObject.transform.Find("RefreshTime").GetComponent("XUILabel") as IXUILabel); + this.m_refreshButton = (base.PanelObject.transform.Find("RefreshBtn").GetComponent("XUIButton") as IXUIButton); + this.m_refreshButtonLabel = (base.PanelObject.transform.Find("RefreshBtn/Label").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_ItemLevelCheck = (base.PanelObject.transform.Find("Item/TitleTip/ItemLevel").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ItemBlockCheck = (base.PanelObject.transform.Find("Item/TitleTip/ItemBlock").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ItemContentGroup = new AuctionWrapContentGroup(); + this.m_ItemContentGroup.SetAuctionWrapContentTemp(base.PanelObject.transform.Find("Item/ItemList"), new WrapItemUpdateEventHandler(this.OnItemWrapContentUpdate)); + this.m_AuctionItemGroup = new AuctionWrapContentGroup(); + this.m_AuctionItemGroup.SetAuctionWrapContentTemp(base.PanelObject.transform.Find("Good/GoodList"), new WrapItemUpdateEventHandler(this.OnAuctionItemUpdate)); + this.SetupTypeList(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ItemBlockCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnItemFilterCheckClicked)); + this.m_ItemLevelCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnItemFilterCheckClicked)); + this.m_refreshButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTimeFreshClick)); + } + + private void OnItemWrapContentUpdate(Transform t, int index) + { + bool flag = t == null; + if (!flag) + { + Transform transform = t.Find("DetailTpl"); + bool flag2 = transform == null; + if (!flag2) + { + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag3 = ixuicheckBox != null; + if (flag3) + { + ixuicheckBox.bChecked = false; + } + bool flag4 = index < 0 || index >= this.m_ShowAuctionList.Count; + if (flag4) + { + transform.gameObject.SetActive(false); + } + else + { + transform.gameObject.SetActive(true); + Transform transform2 = transform.Find("ItemTpl"); + IXUILabel ixuilabel = transform.Find("Price").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + ItemList.RowData rowData = this.m_ShowAuctionList[index]; + XSingleton.singleton.normalItemDrawer.DrawItem(transform2.gameObject, rowData, 0, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(transform2.gameObject, rowData.ItemID); + uint num = 0u; + this._Doc.TryGetAuctionBriefCount((uint)rowData.ItemID, out num); + ixuilabel.SetText(XStringDefineProxy.GetString("AUCTION_PURCHASE_ONLINE", new object[] + { + num + })); + ixuisprite.ID = (ulong)((long)rowData.ItemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCheckBoxOnCheckEventHandler)); + } + } + } + } + + private void OnAuctionItemUpdate(Transform t, int index) + { + bool flag = t == null; + if (!flag) + { + Transform transform = t.Find("DetailTpl"); + bool flag2 = this.m_showSelectItems == null || transform == null; + if (!flag2) + { + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag3 = ixuicheckBox != null; + if (flag3) + { + ixuicheckBox.bChecked = false; + } + bool flag4 = index < 0 || index >= this.m_showSelectItems.Count; + if (flag4) + { + transform.gameObject.SetActive(false); + } + else + { + transform.gameObject.SetActive(true); + Transform transform2 = transform.Find("ItemTpl"); + IXUISprite ixuisprite = transform.Find("ItemTpl/Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = transform.Find("Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite2 = transform.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = transform.Find("AptValue").GetComponent("XUILabel") as IXUILabel; + AuctionItem auctionItem = this.m_showSelectItems[index]; + ixuilabel.Alpha = 0f; + ixuilabel.SetText(string.Empty); + XSingleton.singleton.DrawItem(transform2.gameObject, auctionItem.itemData); + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + ixuilabelSymbol.InputText = XLabelSymbolHelper.FormatCostWithIconLast((int)auctionItem.perprice, ItemEnum.DRAGON_COIN); + ixuisprite2.ID = (ulong)((long)index); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickAuctionDetailHandler)); + } + } + } + } + + private bool OnTimeFreshClick(IXUIButton btn) + { + this._Doc.RequestAuctionRefresh(); + return false; + } + + private void OnCheckBoxOnCheckEventHandler(IXUISprite sprite) + { + uint itemid = (uint)sprite.ID; + this._Doc.RequestAuctionItemData(itemid); + } + + private void OnClickAuctionDetailHandler(IXUISprite checkBox) + { + int num = (int)checkBox.ID; + bool flag = this.m_showSelectItems.Count > num; + if (flag) + { + DlgBase.singleton.Set(this.m_showSelectItems[num]); + } + } + + private void OnItemClicked(IXUISprite sp) + { + bool flag = this.m_showSelectItems.Count > (int)sp.ID; + if (flag) + { + XItem itemData = this.m_showSelectItems[(int)sp.ID].itemData; + bool flag2 = itemData == null; + if (!flag2) + { + bool flag3 = itemData.type == 1u; + if (flag3) + { + XSingleton.singleton.ShowTooltipDialog(itemData.itemConf.ItemID, sp, 0u); + } + else + { + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(this.m_showSelectItems[(int)sp.ID].itemData, sp, false, 0u); + } + } + } + } + + private void ShowSelectItem() + { + this.m_ItemWrap.gameObject.SetActive(false); + this.m_GoodWrap.gameObject.SetActive(true); + this.m_showSelectItems = this._Doc.GetOverlapItems(); + this.m_AuctionItemGroup.SetWrapContentSize(this.m_showSelectItems.Count); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.RequestAuctionAllItemBrief(); + this.m_freeRefresh = false; + } + + public override void RefreshData() + { + bool showItemData = this._Doc.ShowItemData; + if (showItemData) + { + this.ShowSelectItem(); + } + else + { + this.CalculateAuctionSelect(); + this.SetNextFreeTime(); + this.RefreshFreeRefreshCount(); + } + } + + private void RefreshFreeRefreshCount() + { + bool flag = this._Doc.NextFreeRefreshTime > 0.0; + if (flag) + { + this.m_refreshButtonLabel.InputText = XStringDefineProxy.GetString("AUCTION_FREE", new object[] + { + XSingleton.singleton.StringCombine("\n(", XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.NextFreeRefreshTime, 5), ")") + }); + } + else + { + this.m_refreshButtonLabel.InputText = XStringDefineProxy.GetString("AUCTION_FREE", new object[] + { + string.Empty + }); + } + } + + private void SetNextFreeTime() + { + this.m_freeRefreshTime.LeftTime = this._Doc.NextOutoRefreshTime; + this.UpdateNextFreshTime(); + } + + private void UpdateNextFreshTime() + { + this.m_freeRefreshTime.Update(); + bool flag = this.m_freeRefreshTime.LeftTime > 0f; + if (flag) + { + this.m_freeRefresh = true; + this.m_refreshTime.SetText(XStringDefineProxy.GetString("AUCTION_FRESHTIME_LABEL", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this.m_freeRefreshTime.LeftTime, 5) + })); + } + else + { + this.m_freeRefresh = false; + this.m_refreshTime.SetText(string.Empty); + this._Doc.RequestAuctionAuto(); + } + } + + private void SetNormalSelect() + { + GameObject gameObject; + bool flag = this.m_typeDictionary.TryGetValue(this.m_curAuctionType, out gameObject); + if (flag) + { + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag2 = ixuicheckBox == null; + if (!flag2) + { + ixuicheckBox.bChecked = true; + } + } + } + + private void SetupTypeList() + { + this.m_levelOnePool.ReturnAll(false); + this.m_levelTwoPool.ReturnAll(true); + this.m_typeDictionary.Clear(); + for (int i = 0; i < this._Doc.AuctionTypeList.Table.Length; i++) + { + bool flag = this._Doc.AuctionTypeList.Table[i].pretype == 0; + if (flag) + { + GameObject gameObject = this.m_levelOnePool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Selected/Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("Switch").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)this._Doc.AuctionTypeList.Table[i].id; + gameObject.name = this._Doc.AuctionTypeList.Table[i].id.ToString(); + ixuilabel.SetText(this._Doc.AuctionTypeList.Table[i].name); + ixuilabel2.SetText(this._Doc.AuctionTypeList.Table[i].name); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTypeCheckBoxClicked)); + ixuisprite.SetAlpha(0f); + bool flag2 = !this.m_typeDictionary.ContainsKey(this._Doc.AuctionTypeList.Table[i].id); + if (flag2) + { + this.m_typeDictionary.Add(this._Doc.AuctionTypeList.Table[i].id, gameObject); + } + } + } + int j = 0; + while (j < this._Doc.AuctionTypeList.Table.Length) + { + bool flag3 = this._Doc.AuctionTypeList.Table[j].pretype != 0; + if (flag3) + { + bool flag4 = !this.m_typeDictionary.ContainsKey(this._Doc.AuctionTypeList.Table[j].pretype); + if (!flag4) + { + GameObject gameObject2 = this.m_levelTwoPool.FetchGameObject(false); + IXUILabel ixuilabel3 = gameObject2.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject2.transform.Find("Selected/Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = gameObject2.GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)this._Doc.AuctionTypeList.Table[j].id; + gameObject2.name = this._Doc.AuctionTypeList.Table[j].id.ToString(); + ixuilabel3.SetText(this._Doc.AuctionTypeList.Table[j].name); + ixuilabel4.SetText(this._Doc.AuctionTypeList.Table[j].name); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTypeCheckBoxClicked)); + Transform transform = this.m_typeDictionary[this._Doc.AuctionTypeList.Table[j].pretype].transform.Find("ChildList"); + IXUISprite ixuisprite4 = this.m_typeDictionary[this._Doc.AuctionTypeList.Table[j].pretype].transform.Find("Switch").GetComponent("XUISprite") as IXUISprite; + ixuisprite4.SetAlpha(1f); + gameObject2.transform.parent = transform; + gameObject2.transform.localScale = Vector3.one; + gameObject2.transform.localPosition = new Vector3(0f, -((float)transform.childCount - 0.5f) * (float)ixuisprite3.spriteHeight, 0f); + bool flag5 = !this.m_typeDictionary.ContainsKey(this._Doc.AuctionTypeList.Table[j].id); + if (flag5) + { + this.m_typeDictionary.Add(this._Doc.AuctionTypeList.Table[j].id, gameObject2); + } + } + } + IL_476: + j++; + continue; + goto IL_476; + } + this.ShowNormalSelect(); + } + + private void ShowNormalSelect() + { + int parentID = 0; + GameObject gameObject; + bool flag = this.m_typeDictionary.TryGetValue(this.m_NormalSelect, out gameObject); + if (flag) + { + this.m_curAuctionType = this.m_NormalSelect; + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.bChecked = true; + bool flag2 = AuctionDocument.TryGetAuctionTypeParentID(this.m_NormalSelect, out parentID); + if (flag2) + { + this.ShowSelectParent(parentID); + } + } + } + + private void ShowSelectParent(int parentID) + { + bool flag = parentID == 0; + if (!flag) + { + GameObject gameObject; + bool flag2 = this.m_typeDictionary.TryGetValue(parentID, out gameObject); + if (flag2) + { + IXUIPlayTweenGroup ixuiplayTweenGroup = gameObject.GetComponent("XUIPlayTweenGroup") as IXUIPlayTweenGroup; + bool flag3 = ixuiplayTweenGroup == null; + if (!flag3) + { + ixuiplayTweenGroup.PlayTween(true); + } + } + } + } + + private bool OnItemFilterCheckClicked(IXUICheckBox box) + { + this.CalculateAuctionSelect(); + return true; + } + + private void OnTypeCheckBoxClicked(IXUISprite box) + { + bool flag = this.m_curAuctionType != (int)box.ID || !this.m_ItemContentGroup.Active; + if (flag) + { + this.m_curAuctionType = (int)box.ID; + this.CalculateAuctionSelect(); + } + } + + private void CalculateAuctionSelect() + { + this.m_ItemWrap.gameObject.SetActive(true); + this.m_GoodWrap.gameObject.SetActive(false); + this.m_ShowAuctionList.Clear(); + int selectCount = this.m_ItemBlockCheck.bChecked ? 1 : 0; + bool bChecked = this.m_ItemLevelCheck.bChecked; + int minLevel; + int sealLevel; + if (bChecked) + { + XLevelSealDocument.GetSealLevelRange((int)XSingleton.singleton.XPlayerData.Level, out minLevel, out sealLevel); + } + else + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + sealLevel = (int)specificDocument.SealLevel; + minLevel = 0; + } + this.SelectItemList(this.m_curAuctionType, selectCount, sealLevel, minLevel); + List list; + bool flag = AuctionDocument.TryGetChildren(this.m_curAuctionType, out list); + if (flag) + { + int i = 0; + int count = list.Count; + while (i < count) + { + this.SelectItemList(list[i], selectCount, sealLevel, minLevel); + i++; + } + } + this.m_ailinTransform.gameObject.SetActive(this.m_ShowAuctionList.Count == 0); + this.m_ShowAuctionList.Sort(new Comparison(this.Compare)); + this.m_ItemContentGroup.SetWrapContentSize(this.m_ShowAuctionList.Count); + bool flag2 = this._Doc.CurrentSelectRefresh && this.m_ShowAuctionList.Count == 0; + if (flag2) + { + XSingleton.singleton.ShowLoginTip(XStringDefineProxy.GetString("AUCTION_EMPTY_MESSAGE")); + } + this._Doc.CurrentSelectRefresh = false; + } + + private void SelectItemList(int auctionType, int selectCount, int maxLeavl, int minLevel) + { + List list; + bool flag = XBagDocument.TryGetAuctionList((uint)auctionType, out list); + if (flag) + { + int i = 0; + int count = list.Count; + while (i < count) + { + bool flag2 = this.FilterAuctionItem(list[i], selectCount, maxLeavl, minLevel); + if (flag2) + { + this.m_ShowAuctionList.Add(list[i]); + } + i++; + } + } + } + + private int Compare(ItemList.RowData f, ItemList.RowData l) + { + bool flag = l.ReqLevel == f.ReqLevel; + int result; + if (flag) + { + bool flag2 = l.ItemQuality == f.ItemQuality; + if (flag2) + { + result = l.SortID - f.SortID; + } + else + { + result = (int)(l.ItemQuality - f.ItemQuality); + } + } + else + { + result = (int)(l.ReqLevel - f.ReqLevel); + } + return result; + } + + private bool FilterAuctionItem(ItemList.RowData rowData, int selectCount, int maxLeavl, int minLevel) + { + uint auctionBriefCount = this._Doc.GetAuctionBriefCount((uint)rowData.ItemID); + bool flag = (ulong)auctionBriefCount < (ulong)((long)selectCount); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = rowData.ReqLevel > 1 && ((int)rowData.ReqLevel < minLevel || (int)rowData.ReqLevel > maxLeavl); + result = !flag2; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionBuyHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionBuyHandler.cs.meta new file mode 100644 index 00000000..e2132dca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionBuyHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed95a1928297a054e9a2e52ffe7a03bd +timeCreated: 1611404791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionHouseHandler.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionHouseHandler.cs new file mode 100644 index 00000000..661deb76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionHouseHandler.cs @@ -0,0 +1,603 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AuctionHouseHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Auction/AuctionHouseFrame"; + } + } + + private AuctionHouseDocument _doc; + + private GameObject m_ResultWindow; + + private IXUILabel m_ResultTitle; + + private IXUIButton m_ResultCloseBtn; + + private IXUIScrollView m_ResultScrollView; + + private IXUIWrapContent m_ResultWrapContent; + + private XUIPool m_ResultPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_ResultBtn; + + private IXUILabel m_ResultLabel; + + private XUIPool m_LevelOnePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_LevelTwoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIScrollView m_ItemScrollView; + + private IXUIWrapContent m_ItemListWrapContent; + + private GameObject m_NoneItem; + + private IXUITable m_Table; + + private IXUILabel m_MySpoil; + + private IXUILabel m_NoSpoil; + + private List m_parentTypeTs = new List(); + + private uint _timeToken; + + private uint _reqToken; + + private IXUILabel[] _timeLabel = new IXUILabel[8]; + + private int[] _leftTime = new int[8]; + + private bool[] _gsq = new bool[8]; + + private IXUISprite _lastClickTabSprite; + + private double _signTime; + + private ulong _signUid; + + private uint _signPrice; + + private uint _signMaxPrice; + + private int _signActType; + + private static readonly int MAXSHOWITEM = 8; + + private int TYPEMAX; + + private float PERADDPRICE; + + private bool RefreshGuildTabs = false; + + private IXUISprite m_GeneraliSp; + + private IXUITweenTool m_SwitchTween; + + private bool m_TweenToggle = false; + + private string WaitStartString; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(AuctionHouseDocument.uuID); + this.TYPEMAX = XSingleton.singleton.GetInt("AuctHouseTypeMax"); + this.PERADDPRICE = (float)XSingleton.singleton.GetInt("GuildAuctUpRate") / 100f + 1f; + this.WaitStartString = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("AuctionHouseWaitStart")); + this.m_ResultWindow = base.PanelObject.transform.Find("ResultWindow").gameObject; + this.m_ResultWindow.SetActive(false); + this.m_ResultTitle = (this.m_ResultWindow.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_ResultCloseBtn = (this.m_ResultWindow.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_ResultScrollView = (this.m_ResultWindow.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ResultWrapContent = (this.m_ResultScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + Transform transform = this.m_ResultWrapContent.gameObject.transform.Find("Tpl"); + this.m_ResultPool.SetupPool(transform.parent.gameObject, transform.gameObject, 16u, false); + this.m_ResultBtn = (base.PanelObject.transform.Find("Result").GetComponent("XUIButton") as IXUIButton); + this.m_ResultLabel = (this.m_ResultBtn.gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel); + this.m_Table = (base.PanelObject.transform.Find("TypeList/Table").GetComponent("XUITable") as IXUITable); + transform = base.PanelObject.transform.Find("TypeList/Table/LevelOneTpl"); + this.m_LevelOnePool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + transform = base.PanelObject.transform.Find("TypeList/Table/LevelTwoTpl"); + this.m_LevelTwoPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_ItemScrollView = (base.PanelObject.transform.Find("Right/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ItemListWrapContent = (this.m_ItemScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_NoneItem = base.PanelObject.transform.Find("None").gameObject; + this.m_MySpoil = (base.PanelObject.transform.Find("MySpoil").GetComponent("XUILabel") as IXUILabel); + this.m_NoSpoil = (base.PanelObject.transform.Find("NoSpoil").GetComponent("XUILabel") as IXUILabel); + this.SetupLevelOneTypeList(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ResultCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnResultCloseBtnClick)); + this.m_ResultBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnResultBtnClick)); + this.m_ItemListWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.ItemWrapListUpdated)); + this.m_ItemListWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.ItemWrapListInit)); + this.m_ResultWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.ResultWrapListUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshGuildTabs = true; + this.OnTypeCheckBoxClick(this.m_GeneraliSp); + this.m_TweenToggle = !this.m_TweenToggle; + IXUICheckBox ixuicheckBox = this.m_GeneraliSp.gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.bChecked = true; + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Auction, false); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Auction, true); + DlgBase.singleton.SetGuildAuctionRedPointState(false); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this._timeToken); + XSingleton.singleton.KillTimer(this._reqToken); + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this._timeToken); + XSingleton.singleton.KillTimer(this._reqToken); + base.OnUnload(); + } + + public override void RefreshData() + { + switch (this._doc.DataState) + { + case GuildAuctReqType.GART_ACT_TYPE: + case GuildAuctReqType.GART_ITEM_TYPE: + { + this._signTime = this.GetNowTime(); + this.RefreshItemList(this._doc.ResetScrollView); + bool refreshGuildTabs = this.RefreshGuildTabs; + if (refreshGuildTabs) + { + this.RefreshGuildTabs = false; + this.SetupLevelTwoTypeList(); + bool flag = !this.m_TweenToggle; + if (flag) + { + this.m_TweenToggle = !this.m_TweenToggle; + this.m_SwitchTween.PlayTween(true, -1f); + } + } + bool flag2 = this._doc.LastReq != 0 && this._doc.LastReq < 100; + if (flag2) + { + bool flag3 = this._doc.MySpoils == uint.MaxValue; + if (flag3) + { + this.m_NoSpoil.SetVisible(true); + this.m_MySpoil.SetVisible(false); + this.m_NoSpoil.SetText(XStringDefineProxy.GetString("AuctionHouseNoSpoil")); + } + else + { + this.m_MySpoil.SetVisible(true); + this.m_NoSpoil.SetVisible(false); + this.m_MySpoil.SetText(this._doc.MySpoils.ToString()); + } + } + else + { + this.m_MySpoil.SetVisible(false); + this.m_NoSpoil.SetVisible(false); + } + XSingleton.singleton.KillTimer(this._reqToken); + bool flag4 = this._doc.ReqTime != -1; + if (flag4) + { + this._reqToken = XSingleton.singleton.SetTimer((float)this._doc.ReqTime, new XTimerMgr.ElapsedEventHandler(this.ForceQueryLastClick), null); + } + break; + } + case GuildAuctReqType.GART_BUY_AUCT: + case GuildAuctReqType.GART_BUY_NOW: + { + bool flag5 = this._doc.MySpoils == uint.MaxValue; + if (flag5) + { + this.m_NoSpoil.SetText(XStringDefineProxy.GetString("AuctionHouseNoSpoil")); + } + else + { + this.m_MySpoil.SetText(this._doc.MySpoils.ToString()); + } + this.RefreshItemList(false); + break; + } + case GuildAuctReqType.GART_AUCT_GUILD_HISTORY: + case GuildAuctReqType.GART_AUCT_WORLD_HISTORY: + this.RefreshHistoryList(); + break; + } + } + + private bool OnResultCloseBtnClick(IXUIButton btn) + { + this.m_ResultWindow.SetActive(false); + return true; + } + + private bool OnResultBtnClick(IXUIButton btn) + { + this.m_ResultWrapContent.SetContentCount(0, false); + this.m_ResultWindow.SetActive(true); + this._doc.QueryAuctionHistory(this._lastClickTabSprite.ID < 100UL); + return true; + } + + private void SetupLevelOneTypeList() + { + this.m_LevelOnePool.ReturnAll(false); + this.m_parentTypeTs.Clear(); + for (int i = 0; i < 2; i++) + { + GameObject gameObject = this.m_LevelOnePool.FetchGameObject(false); + this.m_parentTypeTs.Add(gameObject.transform); + IXUILabel ixuilabel = gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Selected/Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("Switch").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)i * 100L); + string @string = XStringDefineProxy.GetString(string.Format("AuctionHouseTitle{0}", i + 1)); + ixuilabel.SetText(@string); + ixuilabel2.SetText(@string); + ixuisprite.SetAlpha(0f); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTypeCheckBoxClick)); + bool flag = i == 0; + if (flag) + { + this.m_GeneraliSp = ixuisprite2; + this.m_SwitchTween = (gameObject.GetComponent("XUIPlayTween") as IXUITweenTool); + } + } + this.SetupLevelTwoTypeList(); + } + + private void SetupLevelTwoTypeList() + { + for (int i = 0; i < this.m_parentTypeTs.Count; i++) + { + IXUISprite ixuisprite = this.m_parentTypeTs[i].Find("Switch").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetAlpha(0f); + } + this.m_LevelTwoPool.ReturnAll(true); + for (int j = 0; j < this._doc.GuildActID.Count; j++) + { + GameObject gameObject = this.m_LevelTwoPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Selected/Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)this._doc.GuildActID[j]); + string @string = XStringDefineProxy.GetString(string.Format("AuctionHouseAct{0}", this._doc.GuildActID[j])); + ixuilabel.SetText(@string); + ixuilabel2.SetText(@string); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTypeCheckBoxClick)); + Transform transform = this.m_parentTypeTs[0].Find("ChildList"); + IXUISprite ixuisprite3 = this.m_parentTypeTs[0].Find("Switch").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.SetAlpha(1f); + gameObject.transform.parent = transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, -((float)transform.childCount - 0.5f) * (float)ixuisprite2.spriteHeight, 0f); + } + for (int k = 1; k <= this.TYPEMAX; k++) + { + GameObject gameObject2 = this.m_LevelTwoPool.FetchGameObject(false); + IXUILabel ixuilabel3 = gameObject2.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject2.transform.Find("Selected/Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite4 = gameObject2.GetComponent("XUISprite") as IXUISprite; + ixuisprite4.ID = (ulong)(100L + (long)k); + string string2 = XStringDefineProxy.GetString(string.Format("AuctionHouseType{0}", k)); + ixuilabel3.SetText(string2); + ixuilabel4.SetText(string2); + ixuisprite4.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTypeCheckBoxClick)); + Transform transform2 = this.m_parentTypeTs[1].Find("ChildList"); + IXUISprite ixuisprite5 = this.m_parentTypeTs[1].Find("Switch").GetComponent("XUISprite") as IXUISprite; + ixuisprite5.SetAlpha(1f); + gameObject2.transform.parent = transform2; + gameObject2.transform.localScale = Vector3.one; + gameObject2.transform.localPosition = new Vector3(0f, -((float)transform2.childCount - 0.5f) * (float)ixuisprite4.spriteHeight, 0f); + } + this.m_Table.Reposition(); + } + + private void OnTypeCheckBoxClick(IXUISprite isp) + { + bool flag = isp.ID == 0UL; + if (flag) + { + this.m_TweenToggle = !this.m_TweenToggle; + } + string @string = XStringDefineProxy.GetString((isp.ID < 100UL) ? "AuctionHouseGuildResult" : "AuctionHouseWorldResult"); + this.m_ResultTitle.SetText(@string); + this.m_ResultLabel.SetText(@string); + bool flag2 = !this.RefreshGuildTabs && this._lastClickTabSprite != null && this._lastClickTabSprite.ID == isp.ID; + if (!flag2) + { + this._lastClickTabSprite = isp; + this._doc.LastReq = (int)isp.ID; + this._doc.ResetScrollView = true; + bool flag3 = isp.ID < 100UL; + if (flag3) + { + this._doc.QueryGuildTypeList((int)isp.ID); + } + else + { + this._doc.QueryWorldTypeList((int)isp.ID - 100); + } + } + } + + private void RefreshItemList(bool resetScrollPos = true) + { + this._doc.ResetScrollView = false; + for (int i = 0; i < AuctionHouseHandler.MAXSHOWITEM; i++) + { + this._leftTime[i] = -1; + } + XSingleton.singleton.KillTimer(this._timeToken); + this._timeToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.RefreshLeftTime), null); + this.m_NoneItem.SetActive(this._doc.ItemList.Count == 0); + this.m_ItemListWrapContent.SetContentCount(this._doc.ItemList.Count, false); + if (resetScrollPos) + { + this.m_ItemScrollView.SetPosition(0f); + } + } + + private void ItemWrapListInit(Transform t, int i) + { + this._timeLabel[i] = (t.Find("Time").GetComponent("XUILabel") as IXUILabel); + } + + private void ItemWrapListUpdated(Transform t, int i) + { + bool flag = i < 0 || i >= this._doc.ItemList.Count; + if (!flag) + { + GameObject gameObject = t.Find("ItemTpl").gameObject; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.ItemList[i].itemid); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf, 0, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, (int)this._doc.ItemList[i].itemid); + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(itemConf.ItemName[0]); + int num = this._doc.PublicityTime - this._doc.GuildSaleTime + (int)this._doc.ItemList[i].lefttime; + bool flag2 = num > 0 && this._doc.LastReq < 100; + bool flag3 = this._doc.ItemList[i].lefttime == 0u; + if (flag3) + { + this._timeLabel[i % AuctionHouseHandler.MAXSHOWITEM].SetText(XStringDefineProxy.GetString("AuctionHouseTimeOut")); + this._leftTime[i % AuctionHouseHandler.MAXSHOWITEM] = 0; + } + else + { + bool flag4 = flag2; + if (flag4) + { + this._timeLabel[i % AuctionHouseHandler.MAXSHOWITEM].SetText(string.Format(this.WaitStartString, XSingleton.singleton.TimeFormatString(num, 2, 3, 4, false, true))); + this._leftTime[i % AuctionHouseHandler.MAXSHOWITEM] = num; + this._gsq[i % AuctionHouseHandler.MAXSHOWITEM] = true; + } + else + { + int totalSecond = (int)(this._doc.ItemList[i].lefttime - (uint)((int)(this.GetNowTime() - this._signTime))); + this._timeLabel[i % AuctionHouseHandler.MAXSHOWITEM].SetText(XSingleton.singleton.TimeFormatString(totalSecond, 2, 3, 4, false, true)); + this._leftTime[i % AuctionHouseHandler.MAXSHOWITEM] = (int)this._doc.ItemList[i].lefttime; + this._gsq[i % AuctionHouseHandler.MAXSHOWITEM] = false; + } + } + IXUILabel ixuilabel2 = t.Find("AuctionPrice").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(this._doc.ItemList[i].curauctprice.ToString()); + IXUILabel ixuilabel3 = t.Find("BuyPrice").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(this._doc.ItemList[i].maxprice.ToString()); + IXUIButton ixuibutton = t.Find("AuctionBtn").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel4 = ixuibutton.gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + bool flag5 = this._doc.ItemList[i].auctroleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + ixuibutton.SetEnable(false, false); + ixuilabel4.SetText(XStringDefineProxy.GetString("AuctionHouseAucType1")); + } + else + { + ixuilabel4.SetText(XStringDefineProxy.GetString("AuctionHouseAucType3")); + bool flag6 = flag2 || this._doc.ItemList[i].curauctprice * this.PERADDPRICE >= this._doc.ItemList[i].maxprice; + if (flag6) + { + ixuibutton.SetEnable(false, false); + } + else + { + ixuibutton.SetEnable(true, false); + ixuibutton.ID = (ulong)((long)i); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAuctionBtnClick)); + } + } + IXUIButton ixuibutton2 = t.Find("BuyBtn").GetComponent("XUIButton") as IXUIButton; + bool flag7 = flag2; + if (flag7) + { + ixuibutton2.SetEnable(false, false); + } + else + { + ixuibutton2.SetEnable(true, false); + ixuibutton2.ID = (ulong)((long)i); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClick)); + } + } + } + + private bool OnAuctionBtnClick(IXUIButton btn) + { + int index = (int)btn.ID; + this._signUid = this._doc.ItemList[index].uid; + this._signPrice = this._doc.ItemList[index].curauctprice; + this._signActType = this._doc.ItemList[index].acttype; + string arg = string.Format("{0}{1}", (int)(this._doc.ItemList[index].curauctprice * this.PERADDPRICE + 0.001f), XLabelSymbolHelper.FormatSmallIcon(7)); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.ItemList[index].itemid); + string label = XSingleton.singleton.ReplaceReturn(string.Format(XStringDefineProxy.GetString("AuctionHouseTips1"), arg, itemConf.ItemName[0])); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnAuctionSure)); + return true; + } + + private bool OnBuyBtnClick(IXUIButton btn) + { + int index = (int)btn.ID; + this._signUid = this._doc.ItemList[index].uid; + this._signActType = this._doc.ItemList[index].acttype; + this._signMaxPrice = this._doc.ItemList[index].maxprice; + string arg = string.Format("{0}{1}", this._doc.ItemList[index].maxprice, XLabelSymbolHelper.FormatSmallIcon(7)); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.ItemList[index].itemid); + string label = XSingleton.singleton.ReplaceReturn(string.Format(XStringDefineProxy.GetString("AuctionHouseTips2"), arg, itemConf.ItemName[0])); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnBuySure)); + return true; + } + + private bool OnAuctionSure(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + AuctionDocument specificDocument = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + ulong usr = (ulong)(this._signPrice * this.PERADDPRICE + 0.001f); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN)); + bool flag = specificDocument.TryDragonCoinFull(usr, itemCount); + if (flag) + { + this._doc.QueryAuctionItem(this._signUid, this._signPrice, this._signActType); + } + return true; + } + + private bool OnBuySure(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + AuctionDocument specificDocument = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + ulong usr = (ulong)this._signMaxPrice; + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN)); + bool flag = specificDocument.TryDragonCoinFull(usr, itemCount); + if (flag) + { + this._doc.QueryBuyItem(this._signUid, this._signActType); + } + return true; + } + + private void RefreshHistoryList() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = !this.m_ResultWindow.activeInHierarchy; + if (!flag2) + { + this.m_ResultScrollView.SetPosition(0f); + this.m_ResultWrapContent.SetContentCount(this._doc.HistoryList.Count, false); + } + } + } + + private void ResultWrapListUpdated(Transform t, int i) + { + IXUILabel ixuilabel = t.Find("ActName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString(string.Format("AuctionHouseAct{0}", this._doc.HistoryList[i].acttype))); + IXUILabel ixuilabel2 = t.Find("Date").GetComponent("XUILabel") as IXUILabel; + string text = XSingleton.singleton.TimeFormatSince1970((int)this._doc.HistoryList[i].saletime, XStringDefineProxy.GetString("AuctionHouseHistoryTime"), true); + ixuilabel2.SetText(text); + IXUILabel ixuilabel3 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.HistoryList[i].itemid); + ixuilabel3.SetText(itemConf.ItemName[0]); + IXUILabelSymbol ixuilabelSymbol = t.Find("Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + bool flag = this._doc.HistoryList[i].auctresult == GuildAuctResultType.GA_RESULT_TO_WORLD; + if (flag) + { + ixuilabelSymbol.InputText = XStringDefineProxy.GetString("AuctionHouseAucType4"); + } + else + { + string @string = XStringDefineProxy.GetString(string.Format("AuctionHouseAucType{0}", XFastEnumIntEqualityComparer.ToInt(this._doc.HistoryList[i].auctresult) + 1)); + ixuilabelSymbol.InputText = string.Format("{0}{1} {2}", this._doc.HistoryList[i].saleprice, XLabelSymbolHelper.FormatSmallIcon(7), @string); + } + GameObject gameObject = t.Find("Bg").gameObject; + gameObject.SetActive(i % 2 == 0); + } + + private void ForceQueryLastClick(object o = null) + { + this._doc.QueryRefreshUI(); + } + + private void RefreshLeftTime(object o = null) + { + for (int i = 0; i < AuctionHouseHandler.MAXSHOWITEM; i++) + { + bool flag = this._leftTime[i] >= 0; + if (flag) + { + int num = this._leftTime[i] - (int)(this.GetNowTime() - this._signTime); + bool flag2 = num < 0; + if (flag2) + { + this._leftTime[i] = -1; + num = 0; + } + bool flag3 = num == 0; + if (flag3) + { + bool flag4 = this._gsq[i]; + if (flag4) + { + this._timeLabel[i].SetText(XStringDefineProxy.GetString("AuctionHouseWaitTimeOut")); + } + else + { + this._timeLabel[i].SetText(XStringDefineProxy.GetString("AuctionHouseTimeOut")); + } + } + else + { + bool flag5 = this._gsq[i]; + if (flag5) + { + this._timeLabel[i].SetText(string.Format(this.WaitStartString, XSingleton.singleton.TimeFormatString(num, 2, 3, 4, false, true))); + } + else + { + this._timeLabel[i].SetText(XSingleton.singleton.TimeFormatString(num, 2, 3, 4, false, true)); + } + } + } + } + this._timeToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.RefreshLeftTime), null); + } + + private double GetNowTime() + { + return (double)(DateTime.Now.Ticks / 10000000L); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionHouseHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionHouseHandler.cs.meta new file mode 100644 index 00000000..726ebe4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionHouseHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b474033d8c09c743a632945e59c66ba +timeCreated: 1611404205 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionNumberOperate.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionNumberOperate.cs new file mode 100644 index 00000000..b576c12d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionNumberOperate.cs @@ -0,0 +1,242 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AuctionNumberOperate + { + public int Min + { + get + { + return this.m_min; + } + } + + public int Max + { + get + { + return this.m_max; + } + } + + public int Cur + { + get + { + return this.m_cur; + } + } + + public int Step + { + get + { + return this.m_step; + } + } + + private IXUISprite m_Add; + + private IXUISprite m_Sub; + + private IXUISprite m_Max; + + private IXUILabel m_Number; + + private Transform m_transform; + + private GameObject m_gameObject; + + private int m_min; + + private int m_max; + + private int m_cur; + + private int m_step; + + private Vector3 m_offset; + + private int m_inputNumberCall = 0; + + private bool m_curEnabel = true; + + private bool m_showNumber = true; + + private bool m_showUnderLine = false; + + private AuctionNumberOperate.NumberOperateCallBack m_numberOperateCall; + + public delegate void NumberOperateCallBack(); + + public AuctionNumberOperate(GameObject go, Vector3 offset) + { + this.m_gameObject = go; + this.m_transform = go.transform; + this.m_offset = offset; + this.m_Number = (this.m_transform.Find("Label").GetComponent("XUILabel") as IXUILabel); + this.m_Add = (this.m_transform.Find("Add").GetComponent("XUISprite") as IXUISprite); + this.m_Sub = (this.m_transform.Find("Sub").GetComponent("XUISprite") as IXUISprite); + Transform transform = this.m_transform.Find("Max"); + bool flag = transform != null; + if (flag) + { + this.m_Max = (transform.GetComponent("XUISprite") as IXUISprite); + } + this.m_Add.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddClickHandler)); + this.m_Sub.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSubClickHandler)); + this.m_Number.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnClickLabelHandler)); + bool flag2 = this.m_Max != null; + if (flag2) + { + this.m_Max.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMaxClickHandler)); + } + } + + public void SetEnable(bool enable) + { + this.m_curEnabel = enable; + bool flag = this.m_transform != null; + if (flag) + { + this.m_transform.gameObject.SetActive(this.m_curEnabel); + } + } + + public void Set(int max, int min = 1, int cur = 1, int step = 1, bool showNum = true, bool showUnderLine = false) + { + this.m_max = max; + this.m_min = min; + this.m_cur = cur; + this.m_step = step; + this.m_showNumber = showNum; + this.m_showUnderLine = showUnderLine; + this.CalculateOperate(this.m_cur, true); + } + + public void OnClickLabelHandler(IXUILabel label) + { + bool flag = !this.m_showNumber || !this.m_curEnabel || this.m_max == this.m_min; + if (!flag) + { + this.m_inputNumberCall = 0; + DlgBase.singleton.Show(new CalculatorKeyBack(this.OnCalculatorCall), this.m_offset); + } + } + + private void OnCalculatorCall(CalculatorKey value) + { + switch (value) + { + case CalculatorKey.OK: + this.CalculateOperate(this.m_inputNumberCall, true); + break; + case CalculatorKey.DEL: + this.m_inputNumberCall = 0; + this.SetTxt(this.m_inputNumberCall); + break; + case CalculatorKey.MAX: + this.m_inputNumberCall = this.m_max; + this.SetTxt(this.m_inputNumberCall); + break; + default: + { + int num = XFastEnumIntEqualityComparer.ToInt(value); + bool flag = num >= 0 && num <= 9; + if (flag) + { + this.m_inputNumberCall = this.m_inputNumberCall * 10 + num; + bool flag2 = this.m_inputNumberCall > this.m_max; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_COUNT_UNADD"), "fece00"); + } + this.m_inputNumberCall = Math.Min(this.m_inputNumberCall, this.m_max); + this.SetTxt(this.m_inputNumberCall); + } + break; + } + } + } + + private void SetTxt(int num) + { + bool showUnderLine = this.m_showUnderLine; + if (showUnderLine) + { + this.m_Number.SetText(string.Format("[u]{0}[-]", num)); + } + else + { + this.m_Number.SetText(num.ToString()); + } + } + + public void RegisterOperateChange(AuctionNumberOperate.NumberOperateCallBack call) + { + this.m_numberOperateCall = call; + } + + private void OnAddClickHandler(IXUISprite sprite) + { + bool flag = !this.m_curEnabel || this.m_max == this.m_min; + if (!flag) + { + bool flag2 = this.m_cur + this.m_step > this.m_max; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_COUNT_UNADD"), "fece00"); + } + this.CalculateOperate(this.m_cur + this.m_step, false); + } + } + + private void OnSubClickHandler(IXUISprite sprite) + { + bool flag = !this.m_curEnabel || this.m_max == this.m_min; + if (!flag) + { + bool flag2 = this.m_cur - this.m_step < this.m_min; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_COUNT_UNSUB"), "fece00"); + } + this.CalculateOperate(this.m_cur - this.m_step, false); + } + } + + private void OnMaxClickHandler(IXUISprite sprite) + { + this.CalculateOperate(this.m_max, false); + } + + private void CalculateOperate(int cur, bool active = false) + { + cur = Mathf.Max(this.m_min, cur); + cur = Mathf.Min(this.m_max, cur); + bool flag = !active && this.m_cur == cur; + if (!flag) + { + this.m_cur = cur; + this.m_Add.SetGrey(this.m_cur < this.m_max); + this.m_Sub.SetGrey(this.m_cur > this.m_min); + this.SetTxt(this.m_cur); + bool flag2 = this.m_numberOperateCall != null; + if (flag2) + { + this.m_numberOperateCall(); + } + } + } + + public virtual void Dispose() + { + this.m_numberOperateCall = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionNumberOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionNumberOperate.cs.meta new file mode 100644 index 00000000..a76621cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionNumberOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 626a39eea26684a45bf711c9b08ac1f2 +timeCreated: 1611403840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseBehaviour.cs new file mode 100644 index 00000000..de496ef3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseBehaviour.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class AuctionPurchaseBehaviour : DlgBehaviourBase + { + public GameObject m_ItemTpl; + + public IXUILabel m_SinglePrice; + + public IXUILabel m_HavCoin; + + public IXUILabel m_TotalPrice; + + public AuctionNumberOperate m_CurCountOperate; + + public IXUIButton m_Ok; + + public IXUIButton m_maskSprite; + + private void Awake() + { + this.m_ItemTpl = base.transform.Find("Bg/ItemTpl").gameObject; + this.m_SinglePrice = (base.transform.Find("Bg/Price/Label").GetComponent("XUILabel") as IXUILabel); + this.m_HavCoin = (base.transform.Find("Bg/Have/Label").GetComponent("XUILabel") as IXUILabel); + this.m_TotalPrice = (base.transform.Find("Bg/TotalPrice/Label").GetComponent("XUILabel") as IXUILabel); + this.m_CurCountOperate = new AuctionNumberOperate(base.transform.Find("Bg/Free").gameObject, new Vector3(-94f, 104f, 0f)); + this.m_Ok = (base.transform.Find("Bg/Ok").GetComponent("XUIButton") as IXUIButton); + this.m_maskSprite = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseBehaviour.cs.meta new file mode 100644 index 00000000..c39b88d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1ed657c0f9dc8d4e9b1f6177b28d3ae +timeCreated: 1611404492 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseView.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseView.cs new file mode 100644 index 00000000..7508a6fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseView.cs @@ -0,0 +1,123 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AuctionPurchaseView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Auction/AuctionPurchaseFrame"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private AuctionItem m_curOverlapItem; + + public void Set(AuctionItem item) + { + this.m_curOverlapItem = item; + this.SetVisibleWithAnimation(true, null); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_maskSprite.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickCloseHandler)); + base.uiBehaviour.m_Ok.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickPurchaseHandler)); + base.uiBehaviour.m_CurCountOperate.RegisterOperateChange(new AuctionNumberOperate.NumberOperateCallBack(this.OnOperateChangeHandler)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_SinglePrice.SetText(this.m_curOverlapItem.perprice.ToString()); + base.uiBehaviour.m_HavCoin.SetText(XSingleton.singleton.NumberFormat(XBagDocument.BagDoc.GetItemCount(7))); + base.uiBehaviour.m_CurCountOperate.Set(this.m_curOverlapItem.itemData.itemCount, 1, 1, 1, true, false); + XSingleton.singleton.DrawItem(base.uiBehaviour.m_ItemTpl.gameObject, this.m_curOverlapItem.itemData); + } + + public void OnVirtuelRefresh() + { + this.OnOperateChangeHandler(); + } + + private void OnOperateChangeHandler() + { + ulong num = (ulong)((long)(base.uiBehaviour.m_CurCountOperate.Cur * (int)this.m_curOverlapItem.perprice)); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(7); + bool flag = num > itemCount; + if (flag) + { + base.uiBehaviour.m_TotalPrice.SetText(string.Format("[ff0000]{0}[-]", num)); + } + else + { + base.uiBehaviour.m_TotalPrice.SetText(num.ToString()); + } + } + + private bool ClickCloseHandler(IXUIButton sprite) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool ClickPurchaseHandler(IXUIButton btn) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.m_curOverlapItem.itemData.itemID); + string text = (itemConf != null && itemConf.ItemName.Length != 0) ? itemConf.ItemName[0] : string.Empty; + ulong num = (ulong)((long)base.uiBehaviour.m_CurCountOperate.Cur * (long)((ulong)this.m_curOverlapItem.perprice)); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN)); + AuctionDocument specificDocument = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + bool flag = specificDocument.TryDragonCoinFull(num, itemCount); + if (flag) + { + bool flag2 = itemCount > 200UL; + if (flag2) + { + this.ShowDailog(XStringDefineProxy.GetString("AUCTION_SALE_FROST", new object[] + { + XLabelSymbolHelper.FormatCostWithIcon((int)num, ItemEnum.DRAGON_COIN), + text + }), new ButtonClickEventHandler(this.OnSureAuctionBuy)); + } + else + { + this.SendAuctionBuy(); + } + } + return true; + } + + private void ShowDailog(string message, ButtonClickEventHandler handler) + { + XSingleton.singleton.ShowModalDialog(message, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), handler); + } + + private bool OnSureAuctionBuy(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this.SendAuctionBuy(); + return true; + } + + private void SendAuctionBuy() + { + AuctionDocument specificDocument = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + specificDocument.RequestAuctionBuy(this.m_curOverlapItem.uid, (uint)this.m_curOverlapItem.itemData.itemID, (uint)base.uiBehaviour.m_CurCountOperate.Cur); + this.SetVisibleWithAnimation(false, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseView.cs.meta new file mode 100644 index 00000000..eb25bc32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionPurchaseView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c2714b4e28d41a4a8182e24daf101d2 +timeCreated: 1611403501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionSellHandler.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionSellHandler.cs new file mode 100644 index 00000000..38e88f74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionSellHandler.cs @@ -0,0 +1,201 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class AuctionSellHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Auction/AuctionSellFrame"; + } + } + + private AuctionDocument _Doc; + + private AuctionWrapContentGroup m_auctionSellGroup; + + private XBagWindow m_bagWindow; + + private Transform m_emptyInAuction; + + private IXUILabel m_curSaleValue; + + private IXUISprite m_tqSprite; + + private IXUILabel m_tqLabel; + + private IXUISprite m_tqBgSprite; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(AuctionDocument.uuID); + this.m_auctionSellGroup = new AuctionWrapContentGroup(); + this.m_auctionSellGroup.SetAuctionWrapContentTemp(base.PanelObject.transform.Find("SellList"), new WrapItemUpdateEventHandler(this.OnAuctionSellListUpdate)); + this.m_bagWindow = new XBagWindow(base.PanelObject.transform.Find("BagList").gameObject, new ItemUpdateHandler(this.OnBagItemUpdate), new GetItemHandler(this._Doc.GetItemList)); + this.m_bagWindow.Init(); + this.m_emptyInAuction = base.PanelObject.transform.Find("SellListEmpty"); + this.m_curSaleValue = (base.PanelObject.transform.Find("LeftCount/Value").GetComponent("XUILabel") as IXUILabel); + this.m_tqSprite = (base.PanelObject.transform.Find("tq").GetComponent("XUISprite") as IXUISprite); + this.m_tqLabel = (base.PanelObject.transform.Find("tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_tqBgSprite = (base.PanelObject.transform.Find("tq/p").GetComponent("XUISprite") as IXUISprite); + } + + private void OnAuctionSellListUpdate(Transform t, int index) + { + bool flag = t == null; + if (!flag) + { + Transform transform = t.Find("DetailTpl"); + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag2 = ixuicheckBox != null; + if (flag2) + { + ixuicheckBox.bChecked = false; + } + List auctionOnLineSaleList = this._Doc.AuctionOnLineSaleList; + bool flag3 = index < 0 || index >= auctionOnLineSaleList.Count; + if (flag3) + { + transform.gameObject.SetActive(false); + } + else + { + transform.gameObject.SetActive(true); + Transform transform2 = transform.Find("ItemTpl"); + IXUILabelSymbol ixuilabelSymbol = transform.Find("Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + Transform transform3 = transform.Find("Time"); + IXUISprite ixuisprite = transform2.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = transform.GetComponent("XUISprite") as IXUISprite; + AuctionSaleItem auctionSaleItem = auctionOnLineSaleList[index]; + transform3.gameObject.SetActive(auctionSaleItem.isOutTime); + ixuilabelSymbol.InputText = XLabelSymbolHelper.FormatCostWithIconLast((int)auctionSaleItem.perprice, ItemEnum.DRAGON_COIN); + XSingleton.singleton.DrawItem(transform2.gameObject, auctionSaleItem.itemData); + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemSaleClicked)); + ixuisprite2.ID = (ulong)((long)index); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemSaleCheckSelected)); + } + } + } + + public override void RegisterEvent() + { + this.m_tqBgSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMemberPrivilegeClicked)); + } + + private void OnMemberPrivilegeClicked(IXUISprite sprite) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + } + + private void OnBagItemUpdate(Transform transform, int index) + { + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag = this.m_bagWindow.m_XItemList == null || index < 0 || index >= this.m_bagWindow.m_XItemList.Count; + if (flag) + { + XSingleton.singleton.DrawItem(transform.gameObject, null); + } + else + { + XItem xitem = this.m_bagWindow.m_XItemList[index]; + ixuisprite.ID = (ulong)((long)index); + XSingleton.singleton.DrawItem(transform.gameObject, xitem); + GameObject gameObject = transform.Find("Icon/Bind").gameObject; + gameObject.SetActive(xitem.blocking > 0.0); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + } + } + + private void OnItemSaleCheckSelected(IXUISprite checkBox) + { + int num = (int)checkBox.ID; + bool flag = num < this._Doc.AuctionOnLineSaleList.Count; + if (flag) + { + AuctionSaleItem auctionSaleItem = this._Doc.AuctionOnLineSaleList[num]; + this._Doc.RequestAuctionPriceRecommend(auctionSaleItem.uid, auctionSaleItem.itemData, auctionSaleItem.isOutTime ? AuctionBillStyle.OutTime : AuctionBillStyle.RePutAway); + } + } + + private void OnItemSaleClicked(IXUISprite sp) + { + int num = (int)sp.ID; + bool flag = num < this._Doc.AuctionOnLineSaleList.Count; + if (flag) + { + XSingleton.singleton.ShowTooltipDialog(this._Doc.AuctionOnLineSaleList[num].itemData, null, sp, false, 0u); + } + } + + private void OnItemClicked(IXUISprite sp) + { + int num = (int)sp.ID; + bool flag = num < this.m_bagWindow.m_XItemList.Count; + if (flag) + { + bool flag2 = this.m_bagWindow.m_XItemList[num].blocking > 0.0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AUCTION_LOCK_TIME", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this.m_bagWindow.m_XItemList[num].blocking, 4) + }), "fece00"); + } + else + { + this._Doc.RequestAuctionPriceRecommend(0UL, this.m_bagWindow.m_XItemList[num], AuctionBillStyle.PutAway); + } + } + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.RequestAuctionMySale(); + this.RefreshData(); + } + + public override void RefreshData() + { + this.m_bagWindow.OnShow(); + this.RefreshSaleList(); + } + + private void RefreshSaleList() + { + bool flag = this.m_auctionSellGroup == null; + if (!flag) + { + int count = this._Doc.AuctionOnLineSaleList.Count; + this.m_auctionSellGroup.SetWrapContentSize(count); + this.m_emptyInAuction.gameObject.SetActive(count == 0); + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + uint num = specificDocument.GetCurrentVipPermissions().AuctionOnSaleMax; + XWelfareDocument specificDocument2 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.m_tqSprite.SetSprite(specificDocument2.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Court)); + bool flag2 = specificDocument2.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + if (flag2) + { + num += (uint)specificDocument2.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Court).AuctionCount; + this.m_tqSprite.SetGrey(true); + this.m_tqLabel.SetEnabled(true); + } + else + { + this.m_tqSprite.SetGrey(false); + this.m_tqLabel.SetEnabled(false); + } + this.m_curSaleValue.SetText(string.Format("{0}/{1}", count, num)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionSellHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionSellHandler.cs.meta new file mode 100644 index 00000000..4e240301 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionSellHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be734326df7fae840b7694e7eaef3017 +timeCreated: 1611404461 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionWrapContentGroup.cs b/Client/Assets/Scripts/XMainClient/UI/AuctionWrapContentGroup.cs new file mode 100644 index 00000000..c30f5846 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionWrapContentGroup.cs @@ -0,0 +1,62 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class AuctionWrapContentGroup + { + public int rowLines + { + get + { + return this.m_itemWrapContent.widthDimension; + } + } + + public int maxCount + { + get + { + return this.m_itemWrapContent.maxItemCount; + } + } + + public bool Active + { + get + { + return this.m_active; + } + } + + private IXUIScrollView m_itemScrollView; + + private IXUIWrapContent m_itemWrapContent; + + private Transform m_curTransform; + + private bool m_active = false; + + public void SetAuctionWrapContentTemp(Transform temp, WrapItemUpdateEventHandler handler) + { + this.m_curTransform = temp; + this.m_itemScrollView = (temp.gameObject.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_itemWrapContent = (temp.transform.Find("Table").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_itemWrapContent.RegisterItemUpdateEventHandler(handler); + } + + public void SetWrapContentSize(int listSize) + { + listSize = ((listSize % 2 == 1) ? (listSize + 1) : listSize); + this.m_itemWrapContent.SetContentCount(listSize, false); + this.m_itemScrollView.ResetPosition(); + } + + public void SetVisible(bool active) + { + this.m_active = active; + this.m_curTransform.gameObject.SetActive(active); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/AuctionWrapContentGroup.cs.meta b/Client/Assets/Scripts/XMainClient/UI/AuctionWrapContentGroup.cs.meta new file mode 100644 index 00000000..52420470 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/AuctionWrapContentGroup.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eeddfb9f57404514585fcbd2073b6e49 +timeCreated: 1611404800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle.meta b/Client/Assets/Scripts/XMainClient/UI/Battle.meta new file mode 100644 index 00000000..fe26d826 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: f44ce9b87ce55c9408f27f4f46277be0 +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs new file mode 100644 index 00000000..c204f219 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs @@ -0,0 +1,65 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI.Battle +{ + internal class BattleQTEDlgBehaviour : DlgBehaviourBase + { + public Transform m_Block; + + public Transform m_Bind; + + public IXUISprite m_BindLeftButton; + + public IXUISprite m_BindRightButton; + + public Transform m_BindArrow; + + public Transform m_Abnormal; + + public IXUISlider m_AbnormalBar; + + public IXUISprite m_AbnormalClickSpace; + + public IXUITweenTool m_AbnormalBeginTween; + + public IXUITweenTool m_AbnormalHitTween; + + public IXUITweenTool m_AbnormalSuccessTween; + + public IXUITweenTool m_AbnormalFailTween; + + public Transform m_AbnormalLeftTarget; + + public Transform m_AbnormalRightTarget; + + public Transform m_AbnormalThumb; + + public Transform m_Charge; + + public IXUISlider m_ChargeBar; + + private void Awake() + { + this.m_Block = base.transform.Find("Block"); + this.m_Bind = base.transform.Find("Bg/Bind"); + this.m_BindLeftButton = (this.m_Bind.Find("Left/Light").GetComponent("XUISprite") as IXUISprite); + this.m_BindRightButton = (this.m_Bind.Find("Right/Light").GetComponent("XUISprite") as IXUISprite); + this.m_BindArrow = this.m_Bind.Find("Arrow"); + this.m_Abnormal = base.transform.Find("Bg/AbnormalBar"); + this.m_AbnormalBar = (this.m_Abnormal.Find("Bar").GetComponent("XUISlider") as IXUISlider); + this.m_AbnormalClickSpace = (this.m_Abnormal.Find("ClickSpace").GetComponent("XUISprite") as IXUISprite); + this.m_AbnormalBeginTween = (this.m_Abnormal.Find("Thumb/Begin").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_AbnormalHitTween = (this.m_Abnormal.Find("Thumb/Hit").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_AbnormalSuccessTween = (this.m_Abnormal.Find("Success").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_AbnormalFailTween = (this.m_Abnormal.Find("Fail").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_AbnormalLeftTarget = this.m_Abnormal.Find("Target/Left"); + this.m_AbnormalRightTarget = this.m_Abnormal.Find("Target/Right"); + this.m_AbnormalThumb = this.m_Abnormal.Find("Thumb"); + this.m_Charge = base.transform.Find("Bg/ChargeBar"); + this.m_ChargeBar = (this.m_Charge.GetComponent("XUISlider") as IXUISlider); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs.meta new file mode 100644 index 00000000..115e7bc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/BattleQTEDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 95e52dde66495cd468b98bdfb6b9c367 +timeCreated: 1611404183 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs new file mode 100644 index 00000000..5cfcf248 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs @@ -0,0 +1,40 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI.Battle +{ + internal class ChallengeDlgBehaviour : DlgBehaviourBase + { + public IXUITweenTool m_Tween; + + public IXUILabel m_Accept; + + public IXUILabel m_MainDesc; + + public IXUILabel m_HintDesc; + + public IXUISprite m_HintBg; + + public IXUILabel m_HintState; + + public IXUILabel[] m_RewardValue = new IXUILabel[3]; + + public IXUISprite[] m_RewardIcon = new IXUISprite[3]; + + private void Awake() + { + this.m_Tween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Accept = (base.transform.Find("Bg/Accept").GetComponent("XUILabel") as IXUILabel); + this.m_MainDesc = (base.transform.Find("Bg/MainDesc").GetComponent("XUILabel") as IXUILabel); + for (int i = 0; i < 3; i++) + { + this.m_RewardValue[i] = (base.transform.Find(string.Format("Bg/Reward/Label{0}", i + 1)).GetComponent("XUILabel") as IXUILabel); + this.m_RewardIcon[i] = (base.transform.Find(string.Format("Bg/Reward/Label{0}/Icon", i + 1)).GetComponent("XUISprite") as IXUISprite); + } + this.m_HintBg = (base.transform.Find("Hint").GetComponent("XUISprite") as IXUISprite); + this.m_HintDesc = (base.transform.Find("Hint/Desc").GetComponent("XUILabel") as IXUILabel); + this.m_HintState = (base.transform.Find("Hint/State").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs.meta new file mode 100644 index 00000000..7ab0521a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/Battle/ChallengeDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a025658fce0b2d1438906e62ba4f9c8e +timeCreated: 1611404248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleContiBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/BattleContiBehaviour.cs new file mode 100644 index 00000000..40b161ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleContiBehaviour.cs @@ -0,0 +1,44 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleContiBehaviour : DlgBehaviourBase + { + public IXUILabel m_killer; + + public IXUILabel m_deader; + + public IXUISprite m_KillText; + + public Transform m_Parent; + + public Transform m_InfoTpl; + + public IXUITweenTool[] m_Killicon = new IXUITweenTool[XBattleCaptainPVPDocument.CONTINUOUS_KILL + 1u]; + + public IXUITweenTool m_AssitIcon; + + public IXPositionGroup m_KillInfoGroup = null; + + private void Awake() + { + this.m_Parent = base.transform.Find("Bg/KillInfoParent"); + this.m_InfoTpl = base.transform.Find("Bg/KillInfoParent/InfoTpl"); + this.m_killer = (base.transform.Find("Bg/KillInfoParent/InfoTpl/Bg/killer").GetComponent("XUILabel") as IXUILabel); + this.m_deader = (base.transform.Find("Bg/KillInfoParent/InfoTpl/Bg/dead").GetComponent("XUILabel") as IXUILabel); + this.m_KillText = (base.transform.Find("Bg/Continuous/KillText").GetComponent("XUISprite") as IXUISprite); + this.m_AssitIcon = (base.transform.Find("Bg/Continuous/AssistIcon").GetComponent("XUIPlayTween") as IXUITweenTool); + int num = 1; + while ((long)num <= (long)((ulong)XBattleCaptainPVPDocument.CONTINUOUS_KILL)) + { + this.m_Killicon[num] = (base.transform.Find(string.Format("Bg/Continuous/Killicon{0}", num)).GetComponent("XUIPlayTween") as IXUITweenTool); + num++; + } + this.m_KillInfoGroup = (this.m_Parent.GetComponent("PositionGroup") as IXPositionGroup); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleContiBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleContiBehaviour.cs.meta new file mode 100644 index 00000000..54156eab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleContiBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 602624d40873b6c48b9b580f8e5ba5f0 +timeCreated: 1611403832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleContiDlg.cs b/Client/Assets/Scripts/XMainClient/UI/BattleContiDlg.cs new file mode 100644 index 00000000..63e3866a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleContiDlg.cs @@ -0,0 +1,473 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleContiDlg : DlgBase + { + public ulong CurEnemy + { + get + { + return this._curEnemy; + } + } + + public override string fileName + { + get + { + return "Battle/BattleKillInfo"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XElapseTimer m_conKillerTime = new XElapseTimer(); + + private XElapseTimer m_battleKiller = new XElapseTimer(); + + private Queue _waitQueue = new Queue(); + + private GVGBattleSkill m_battleSkillTemp; + + private KillInfoMode _mode; + + public Queue _showqueue = new Queue(); + + private static readonly uint MULTIPLESHOWMAX = 5u; + + private static readonly float EACHSHOWTIME = 5f; + + private List _killLabelList = new List(); + + private XUIPool _killInfoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private MyBattleKillInfo myInfoTemp = new MyBattleKillInfo(); + + private Queue _killOrAssitQueue = new Queue(); + + private int _currShow; + + private bool _isRevengePlay = false; + + private ulong _curEnemy = 0UL; + + protected override void Init() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag) + { + this.InitMultiMode(); + } + else + { + this._mode = KillInfoMode.Single; + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag2) + { + base.uiBehaviour.m_KillInfoGroup.SetGroup(1); + } + else + { + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_FIGHT; + if (flag3) + { + base.uiBehaviour.m_KillInfoGroup.SetGroup(2); + this._isRevengePlay = true; + } + else + { + base.uiBehaviour.m_KillInfoGroup.SetGroup(0); + } + } + this.HideKillInfo(); + this._killOrAssitQueue.Clear(); + this.HideAll(); + } + + private void InitMultiMode() + { + this._mode = KillInfoMode.Multiple; + this._killInfoPool.SetupPool(base.uiBehaviour.m_InfoTpl.parent.gameObject, base.uiBehaviour.m_InfoTpl.gameObject, BattleContiDlg.MULTIPLESHOWMAX, true); + Vector3 tplPos = this._killInfoPool.TplPos; + this._killLabelList.Clear(); + this._showqueue.Clear(); + this._waitQueue.Clear(); + int num = 0; + while ((long)num < (long)((ulong)BattleContiDlg.MULTIPLESHOWMAX)) + { + GameObject gameObject = this._killInfoPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(num * this._killInfoPool.TplHeight)); + Transform transform = gameObject.transform.Find("Bg"); + transform.localPosition = XGameUI.Far_Far_Away; + IXUILabel item = transform.Find("killer").GetComponent("XUILabel") as IXUILabel; + IXUILabel item2 = transform.Find("dead").GetComponent("XUILabel") as IXUILabel; + this._killLabelList.Add(item); + this._killLabelList.Add(item2); + num++; + } + } + + public void AddBattleSkill(GVGBattleSkill battleSkill) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.m_battleSkillTemp = battleSkill; + this.SetVisibleWithAnimation(true, null); + } + else + { + this.m_battleSkillTemp = null; + this.SetBattleSkill(battleSkill); + } + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this.m_battleSkillTemp != null; + if (flag) + { + this.SetBattleSkill(this.m_battleSkillTemp); + } + } + + private void SetBattleSkill(GVGBattleSkill battleSkill) + { + bool flag = battleSkill.contiKillCount >= 0; + if (flag) + { + this._waitQueue.Enqueue(battleSkill); + } + bool flag2 = battleSkill.killerID == XSingleton.singleton.XPlayerData.RoleID || battleSkill.contiKillCount < 0; + if (flag2) + { + bool flag3 = battleSkill.contiKillCount != 0; + if (flag3) + { + bool flag4 = this._currShow == 0; + if (flag4) + { + this._currShow = -1; + } + bool flag5 = battleSkill.contiKillCount > 0; + if (flag5) + { + this._killOrAssitQueue.Clear(); + this.m_conKillerTime.LeftTime = 0f; + this.myInfoTemp.SetInfo(battleSkill.contiKillCount, this._isRevengePlay && this.IsRevenge(battleSkill.deadID)); + this._killOrAssitQueue.Enqueue(this.myInfoTemp); + } + else + { + this.myInfoTemp.SetInfo(battleSkill.contiKillCount, false); + this._killOrAssitQueue.Enqueue(this.myInfoTemp); + } + } + } + else + { + bool flag6 = battleSkill.deadID == XSingleton.singleton.XPlayerData.RoleID; + if (flag6) + { + bool isRevengePlay = this._isRevengePlay; + if (isRevengePlay) + { + this.ChangeEnemy(battleSkill.killerID); + } + bool flag7 = this._currShow > 0; + if (flag7) + { + this.HideConKill(); + this.m_conKillerTime.LeftTime = 0f; + } + } + } + } + + private void UpdateBattleSkill() + { + bool flag = this.m_battleKiller == null; + if (!flag) + { + this.m_battleKiller.Update(); + bool flag2 = this.m_battleKiller.LeftTime > 0f; + if (!flag2) + { + bool flag3 = this._mode == KillInfoMode.Single; + if (flag3) + { + bool flag4 = this._waitQueue.Count > 0; + if (flag4) + { + GVGBattleSkill battle = this._waitQueue.Dequeue(); + this.Set(battle, base.uiBehaviour.m_killer, base.uiBehaviour.m_deader); + this.m_battleKiller.LeftTime = ((this._waitQueue.Count > 0) ? 1f : 5f); + } + else + { + this.HideKillInfo(); + } + } + else + { + bool flag5 = this._showqueue.Count <= 0 && this._waitQueue.Count <= 0; + if (!flag5) + { + for (;;) + { + bool flag6 = this._showqueue.Count == 0; + if (flag6) + { + break; + } + GVGBattleSkill gvgbattleSkill = this._showqueue.Peek(); + bool flag7 = gvgbattleSkill.validTime < Time.time; + if (!flag7) + { + break; + } + this._showqueue.Dequeue(); + } + while ((long)this._showqueue.Count < (long)((ulong)BattleContiDlg.MULTIPLESHOWMAX) && this._waitQueue.Count > 0) + { + GVGBattleSkill gvgbattleSkill2 = this._waitQueue.Dequeue(); + gvgbattleSkill2.validTime = Time.time + BattleContiDlg.EACHSHOWTIME; + this._showqueue.Enqueue(gvgbattleSkill2); + } + int i = 0; + foreach (GVGBattleSkill battle2 in this._showqueue) + { + this.Set(battle2, this._killLabelList[i], this._killLabelList[i + 1]); + i += 2; + } + while (i < this._killLabelList.Count) + { + this._killLabelList[i].gameObject.transform.parent.localPosition = XGameUI.Far_Far_Away; + i += 2; + } + this.m_battleKiller.LeftTime = 0.5f; + } + } + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.UpdateBattleSkill(); + this.UpdateConKiller(); + } + + private void UpdateConKiller() + { + this.m_conKillerTime.Update(); + bool flag = this.m_conKillerTime.LeftTime > 0f; + if (!flag) + { + bool flag2 = this._currShow == 0; + if (!flag2) + { + bool flag3 = this._killOrAssitQueue.Count != 0; + if (flag3) + { + MyBattleKillInfo myBattleKillInfo = this._killOrAssitQueue.Dequeue(); + this.ShowConKill(myBattleKillInfo.contiKillCount, myBattleKillInfo.isRevenge); + } + else + { + this.HideAll(); + this._currShow = 0; + } + } + } + } + + public void Set(GVGBattleSkill battle, IXUILabel l1, IXUILabel l2) + { + bool flag = battle == null; + if (!flag) + { + l1.gameObject.transform.parent.localPosition = Vector3.zero; + bool killerPosition = battle.killerPosition; + if (killerPosition) + { + l1.SetText(XStringDefineProxy.GetString("GUILD_ARENA_BLUE", new object[] + { + battle.killerName + })); + l2.SetText(XStringDefineProxy.GetString("GUILD_ARENA_RED", new object[] + { + battle.deadName + })); + } + else + { + l1.SetText(XStringDefineProxy.GetString("GUILD_ARENA_RED", new object[] + { + battle.killerName + })); + l2.SetText(XStringDefineProxy.GetString("GUILD_ARENA_BLUE", new object[] + { + battle.deadName + })); + } + } + } + + public void HideKillInfo() + { + base.uiBehaviour.m_killer.gameObject.transform.parent.localPosition = XGameUI.Far_Far_Away; + } + + public void HideAll() + { + this.HideConKill(); + this.HideAssit(); + } + + public void HideConKill() + { + base.uiBehaviour.m_KillText.SetAlpha(0f); + int num = 1; + while ((long)num <= (long)((ulong)XBattleCaptainPVPDocument.CONTINUOUS_KILL)) + { + base.uiBehaviour.m_Killicon[num].gameObject.transform.localPosition = XGameUI.Far_Far_Away; + num++; + } + } + + public void HideAssit() + { + base.uiBehaviour.m_AssitIcon.gameObject.transform.localPosition = XGameUI.Far_Far_Away; + } + + public void ShowConKill(int count, bool isRevenge) + { + this._currShow = count; + bool flag = count >= 0; + if (flag) + { + this.HideAssit(); + this.m_conKillerTime.LeftTime = 3f; + if (isRevenge) + { + base.uiBehaviour.m_KillText.SetAlpha(1f); + base.uiBehaviour.m_KillText.SetSprite("revenge"); + base.uiBehaviour.m_KillText.MakePixelPerfect(); + } + else + { + bool flag2 = count <= 1; + if (flag2) + { + base.uiBehaviour.m_KillText.SetAlpha(0f); + } + else + { + base.uiBehaviour.m_KillText.SetAlpha(1f); + string arg = (count >= 9) ? "9" : count.ToString(); + base.uiBehaviour.m_KillText.SetSprite(string.Format("{0}{1}", "kill", arg)); + base.uiBehaviour.m_KillText.MakePixelPerfect(); + } + } + bool flag3 = count > 0; + if (flag3) + { + int num = (count >= 5) ? 5 : count; + XSingleton.singleton.PlayUISound(string.Format("Audio/VO/System/system{0}", num), true, AudioChannel.Action); + } + bool flag4 = (long)count >= (long)((ulong)XBattleCaptainPVPDocument.CONTINUOUS_KILL); + if (flag4) + { + count = (int)XBattleCaptainPVPDocument.CONTINUOUS_KILL; + } + int num2 = 1; + while ((long)num2 <= (long)((ulong)XBattleCaptainPVPDocument.CONTINUOUS_KILL)) + { + bool flag5 = num2 <= count; + if (flag5) + { + base.uiBehaviour.m_Killicon[num2].gameObject.transform.localPosition = new Vector3((float)(((double)((float)(num2 - 1) + 0.5f) - (double)count / 2.0) * (double)XBattleCaptainPVPDocument.ConKillIconDis), 0f, 0f); + base.uiBehaviour.m_Killicon[num2].PlayTween(true, -1f); + } + else + { + base.uiBehaviour.m_Killicon[num2].gameObject.transform.localPosition = XGameUI.Far_Far_Away; + } + num2++; + } + } + else + { + this.m_conKillerTime.LeftTime = 2f; + this.HideConKill(); + base.uiBehaviour.m_AssitIcon.gameObject.transform.localPosition = Vector3.zero; + base.uiBehaviour.m_AssitIcon.PlayTween(true, -1f); + } + } + + private bool IsRevenge(ulong deadID) + { + bool flag = this._curEnemy == deadID; + bool flag2 = flag; + if (flag2) + { + XBigMeleeEnemyChange @event = XEventPool.GetEvent(); + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(this._curEnemy); + @event.isEnemy = false; + @event.Firer = entityConsiderDeath; + XSingleton.singleton.FireEvent(@event); + this.ClearRevenge(); + } + return flag; + } + + private void ChangeEnemy(ulong KillID) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(KillID); + bool isRole = entityConsiderDeath.IsRole; + if (isRole) + { + XBigMeleeEnemyChange @event = XEventPool.GetEvent(); + XEntity entityConsiderDeath2 = XSingleton.singleton.GetEntityConsiderDeath(this._curEnemy); + @event.isEnemy = false; + @event.Firer = entityConsiderDeath2; + XSingleton.singleton.FireEvent(@event); + entityConsiderDeath2 = XSingleton.singleton.GetEntityConsiderDeath(KillID); + @event.isEnemy = true; + @event.Firer = entityConsiderDeath2; + XSingleton.singleton.FireEvent(@event); + this._curEnemy = KillID; + } + } + + public void ClearRevenge() + { + this._curEnemy = 0UL; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleContiDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleContiDlg.cs.meta new file mode 100644 index 00000000..f3dc91d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleContiDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d757dde2dc9914f488425c83b85649ab +timeCreated: 1611404635 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlg.cs b/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlg.cs new file mode 100644 index 00000000..4b0c233b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlg.cs @@ -0,0 +1,124 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleContinueDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/BattleContinueDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XLevelDocument _doc; + + protected override void Init() + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Continue.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnContinueClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + DlgBase.singleton.SetVisiblePure(false); + DlgBase.singleton.Show(false); + DlgBase.singleton.SetVisible(false, true); + base.uiBehaviour.m_tween.PlayTween(true, -1f); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisiblePure(false); + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.Show(false); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + protected bool OnContinueClicked(IXUIButton button) + { + this.SetVisible(false, true); + XBossBushDocument specificDocument = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + specificDocument.SendQuery(BossRushReqStatus.BOSSRUSH_RESULT_WIN); + specificDocument.SendQuery(BossRushReqStatus.BOSSRUSH_REQ_BASEDATA); + return true; + } + + protected bool OnReturnClicked(IXUIButton button) + { + XSingleton.singleton.ForceLevelFinish(true); + XSingleton.singleton.WaitingLevelContinueSelect = false; + this.SetVisible(false, true); + return true; + } + + public void ShowBossrushResult() + { + this.SetVisible(true, true); + XSingleton.singleton.WaitingLevelContinueSelect = true; + XBossBushDocument specificDocument = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + base.uiBehaviour.m_Next.gameObject.SetActive(true); + base.uiBehaviour.m_lblNum.SetText(XStringDefineProxy.GetString("BOSS_RATE_RWD", new object[] + { + specificDocument.rwdRate + })); + base.uiBehaviour.m_lblNum.SetVisible(specificDocument.rwdRate > 1f); + base.uiBehaviour.m_NextItemPool.ReturnAll(false); + for (int i = 0; i < specificDocument.bossRushRow.reward.Count; i++) + { + uint num = specificDocument.bossRushRow.reward[i, 0]; + uint num2 = specificDocument.bossRushRow.reward[i, 1]; + GameObject gameObject = base.uiBehaviour.m_NextItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num, (int)(num2 * specificDocument.rwdRate), false); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + bool flag = specificDocument.bossRushRow.reward.Count % 2 == 0; + if (flag) + { + gameObject.transform.localPosition = new Vector3(130f * ((float)(i - specificDocument.bossRushRow.reward.Count / 2) + 0.5f), 0f, 0f); + } + else + { + gameObject.transform.localPosition = new Vector3((float)(130 * (i - specificDocument.bossRushRow.reward.Count / 2)), 0f, 0f); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlg.cs.meta new file mode 100644 index 00000000..f109aa4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 368fa6feea65bed46aec0da4dcbb80f2 +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlgBehaviour.cs new file mode 100644 index 00000000..0bcb9049 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlgBehaviour.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleContinueDlgBehaviour : DlgBehaviourBase + { + public IXUIButton m_Continue; + + public IXUITweenTool m_tween; + + public Transform m_Next; + + public IXUILabel m_lblNum; + + public XUIPool m_NextItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Continue = (base.transform.Find("Bg/Continue").GetComponent("XUIButton") as IXUIButton); + this.m_tween = (base.transform.Find("Bg/Continue").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Next = base.transform.Find("Bg/Next"); + this.m_lblNum = (this.m_Next.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Next/Item"); + this.m_NextItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlgBehaviour.cs.meta new file mode 100644 index 00000000..68bc0bc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleContinueDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 42d3118b80673e341bdd5651094409c5 +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleDebugHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleDebugHandler.cs new file mode 100644 index 00000000..b4decf84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleDebugHandler.cs @@ -0,0 +1,43 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleDebugHandler : DlgHandlerBase + { + public XUIPool m_EnmityListPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("template"); + this.m_EnmityListPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_EnmityListPool.ReturnAll(false); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public void UpdateEnmityList(List enmity) + { + this.m_EnmityListPool.ReturnAll(false); + for (int i = 0; i < enmity.Count; i++) + { + GameObject gameObject = this.m_EnmityListPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_EnmityListPool.TplPos.x, this.m_EnmityListPool.TplPos.y - (float)(i * this.m_EnmityListPool.TplHeight), this.m_EnmityListPool.TplPos.z); + IXUILabel ixuilabel = gameObject.transform.Find("name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(enmity[i].entity.Name + ":" + enmity[i].value.ToString()); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleDebugHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleDebugHandler.cs.meta new file mode 100644 index 00000000..c12ee47a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleDebugHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 052550b164698a74396f4b0d1f227826 +timeCreated: 1611402962 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleDpsHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleDpsHandler.cs new file mode 100644 index 00000000..3d3c5d9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleDpsHandler.cs @@ -0,0 +1,88 @@ +using System; +using UILib; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleDpsHandler : DlgHandlerBase + { + private IXUILabel m_uiInfo; + + private IXUISprite m_uiBg; + + private ulong m_Dps; + + private int m_Rank; + + private XCombatStatisticsDocument doc; + + private string m_strTemplate; + + protected override void Init() + { + base.Init(); + this.m_uiInfo = (base.PanelObject.GetComponent("XUILabel") as IXUILabel); + this.m_uiBg = (base.PanelObject.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.doc = XDocuments.GetSpecificDocument(XCombatStatisticsDocument.uuID); + this.doc.DpsHandler = this; + this.m_Dps = 0UL; + this.m_Rank = 0; + this.m_strTemplate = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("DPS_INFO")); + } + + public override void OnUnload() + { + base.OnUnload(); + this.doc.DpsHandler = null; + } + + protected override void OnShow() + { + base.OnShow(); + this._Refresh(); + this.RefreshData(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + this.RefreshData(); + } + } + + public override void RefreshData() + { + base.RefreshData(); + this.doc.ReqDps(); + } + + public void SetDps(double dps, double rank) + { + ulong num = (ulong)dps; + int num2 = (int)rank; + bool flag = num != this.m_Dps || num2 != this.m_Rank; + if (flag) + { + this.m_Dps = num; + this.m_Rank = num2; + this._Refresh(); + } + } + + public void SetInfo(string s) + { + this.m_uiInfo.SetText(s); + this.m_uiBg.UpdateAnchors(); + } + + private void _Refresh() + { + string text = string.Format(this.m_strTemplate, XSingleton.singleton.NumberFormat(this.m_Dps), this.m_Rank.ToString()); + this.m_uiInfo.SetText(text); + this.m_uiBg.UpdateAnchors(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleDpsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleDpsHandler.cs.meta new file mode 100644 index 00000000..6799b5e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleDpsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2edc4d89c6de1824d92c435b8bfff3c1 +timeCreated: 1611403512 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlg.cs b/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlg.cs new file mode 100644 index 00000000..c4295a64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlg.cs @@ -0,0 +1,259 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleDramaDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/BattleDramaDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool exclusive + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private string leftTalker = ""; + + private string rightTalker = ""; + + private XDummy m_rightDummy; + + private XDummy m_leftDummy; + + private uint _close_timer = 0u; + + public override void RegisterEvent() + { + IXUISprite ixuisprite = base.uiBehaviour.m_TaskArea.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.GotoNextTalk)); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("BattleDramaDlg"); + XSingleton.singleton.EnableAllAI(false); + bool autoPlayOn = XSingleton.singleton.Player.PlayerAttributes.AutoPlayOn; + if (autoPlayOn) + { + float interval = float.Parse(XSingleton.singleton.GetValue("CloseDramaDlgTime")); + this._close_timer = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.AutoClose), null); + } + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.ClearDummy(this.m_dummPool); + XSingleton.singleton.BattleNPCTalkEnd = true; + XSingleton.singleton.EnableAllAI(true); + this.leftTalker = ""; + this.rightTalker = ""; + XSingleton.singleton.EnableMainDummy(false, null); + bool flag = base.uiBehaviour.m_rightSnapshot != null; + if (flag) + { + base.uiBehaviour.m_rightSnapshot.RefreshRenderQueue = null; + } + bool flag2 = base.uiBehaviour.m_leftSnapshot != null; + if (flag2) + { + base.uiBehaviour.m_leftSnapshot.RefreshRenderQueue = null; + } + this.m_leftDummy = null; + this.m_rightDummy = null; + bool flag3 = this._close_timer > 0u; + if (flag3) + { + XSingleton.singleton.KillTimer(this._close_timer); + this._close_timer = 0u; + } + } + + protected override void OnUnload() + { + XSingleton.singleton.Pause = false; + this.leftTalker = ""; + this.rightTalker = ""; + base.Return3DAvatarPool(); + this.m_leftDummy = null; + this.m_rightDummy = null; + base.OnUnload(); + } + + private void AutoClose(object obj) + { + bool flag = base.IsVisible(); + if (flag) + { + this.GotoNextTalk(null); + this._close_timer = XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.AutoClose), null); + } + } + + protected void GotoNextTalk(IXUISprite sp) + { + XSingleton.singleton.ExecuteNextCmd(); + } + + public void SetRightAvatar(string talker, string content, string voice) + { + bool onReconnect = XSingleton.singleton.XConnect.OnReconnect; + if (!onReconnect) + { + XSingleton.singleton.Cancel(); + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + } + this.SetVisible(true, true); + base.uiBehaviour.m_RightText.gameObject.SetActive(true); + base.uiBehaviour.m_name.gameObject.SetActive(true); + base.uiBehaviour.m_LeftText.gameObject.SetActive(false); + base.uiBehaviour.m_rightSnapshot.transform.localPosition = base.uiBehaviour.m_rightDummyPos; + base.uiBehaviour.m_leftSnapshot.transform.localPosition = XGameUI.Far_Far_Away; + string text = ""; + bool flag2 = talker == "[player]"; + if (flag2) + { + XSingleton.singleton.EnableMainDummy(false, null); + XSingleton.singleton.EnableMainDummy(true, base.uiBehaviour.m_rightSnapshot); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(XSingleton.singleton.XPlayerData.PresentID); + bool flag3 = byPresentID != null && byPresentID.AvatarPos != null; + if (flag3) + { + int num = XSingleton.singleton.RandomInt(0, byPresentID.AvatarPos.Length); + XSingleton.singleton.SetMainAnimation(byPresentID.AvatarPos[num]); + } + } + else + { + uint key = uint.Parse(talker); + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(key); + text = byNPCID.Name; + this.m_rightDummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, byNPCID.PresentID, base.uiBehaviour.m_rightSnapshot, this.m_rightDummy, 1f); + XEntityPresentation.RowData byPresentID2 = XSingleton.singleton.EntityInfo.GetByPresentID(byNPCID.PresentID); + bool flag4 = byPresentID2 != null && byPresentID2.AvatarPos != null; + if (flag4) + { + int num2 = XSingleton.singleton.RandomInt(0, byPresentID2.AvatarPos.Length); + this.m_rightDummy.SetAnimation(byPresentID2.AvatarPos[num2]); + } + } + base.uiBehaviour.m_name.SetText(text); + base.uiBehaviour.m_RightText.SetText(content); + bool flag5 = !string.IsNullOrEmpty(voice); + if (flag5) + { + XSingleton.singleton.PlayUISound(this.GetProfVoice(voice), true, AudioChannel.Action); + } + this.rightTalker = talker; + } + } + + public void SetLeftAvatar(string talker, string content, string voice) + { + bool onReconnect = XSingleton.singleton.XConnect.OnReconnect; + if (!onReconnect) + { + XSingleton.singleton.Cancel(); + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + } + this.SetVisible(true, true); + base.uiBehaviour.m_RightText.gameObject.SetActive(false); + base.uiBehaviour.m_name.gameObject.SetActive(false); + base.uiBehaviour.m_LeftText.gameObject.SetActive(true); + base.uiBehaviour.m_rightSnapshot.transform.localPosition = XGameUI.Far_Far_Away; + base.uiBehaviour.m_leftSnapshot.transform.localPosition = base.uiBehaviour.m_leftDummyPos; + string text = ""; + bool flag2 = talker == "[player]"; + if (flag2) + { + XSingleton.singleton.EnableMainDummy(false, null); + XSingleton.singleton.EnableMainDummy(true, base.uiBehaviour.m_leftSnapshot); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(XSingleton.singleton.XPlayerData.PresentID); + bool flag3 = byPresentID != null && byPresentID.AvatarPos != null; + if (flag3) + { + int num = XSingleton.singleton.RandomInt(0, byPresentID.AvatarPos.Length); + XSingleton.singleton.SetMainAnimation(byPresentID.AvatarPos[num]); + } + } + else + { + uint key = uint.Parse(talker); + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(key); + text = byNPCID.Name; + this.m_leftDummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, byNPCID.PresentID, base.uiBehaviour.m_leftSnapshot, this.m_leftDummy, 1f); + XEntityPresentation.RowData byPresentID2 = XSingleton.singleton.EntityInfo.GetByPresentID(byNPCID.PresentID); + bool flag4 = byPresentID2 != null && byPresentID2.AvatarPos != null; + if (flag4) + { + int num2 = XSingleton.singleton.RandomInt(0, byPresentID2.AvatarPos.Length); + this.m_leftDummy.SetAnimation(byPresentID2.AvatarPos[num2]); + } + } + base.uiBehaviour.m_name.SetText(text); + base.uiBehaviour.m_LeftText.SetText(content); + bool flag5 = !string.IsNullOrEmpty(voice); + if (flag5) + { + XSingleton.singleton.PlayUISound(this.GetProfVoice(voice), true, AudioChannel.Action); + } + this.leftTalker = talker; + } + } + + protected string GetProfVoice(string voice) + { + string[] array = voice.Split(new char[] + { + '|' + }); + uint basicTypeID = XSingleton.singleton.XPlayerData.BasicTypeID; + bool flag = (ulong)basicTypeID <= (ulong)((long)array.Length); + string result; + if (flag) + { + result = array[(int)(basicTypeID - 1u)]; + } + else + { + result = array[0]; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlg.cs.meta new file mode 100644 index 00000000..14ace7fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96c004cc332064b4c8ab11e325d6fc71 +timeCreated: 1611404186 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlgBehaviour.cs new file mode 100644 index 00000000..bf7617e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlgBehaviour.cs @@ -0,0 +1,38 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class BattleDramaDlgBehaviour : DlgBehaviourBase + { + public IUIDummy m_leftSnapshot; + + public IUIDummy m_rightSnapshot; + + public Vector3 m_leftDummyPos; + + public Vector3 m_rightDummyPos; + + public IXUILabel m_name; + + public Transform m_TaskArea; + + public IXUILabel m_RightText; + + public IXUILabel m_LeftText; + + private void Awake() + { + this.m_TaskArea = base.transform.Find("_canvas/TalkTextBg/TaskText"); + this.m_name = (base.transform.Find("_canvas/TalkTextBg/Text").GetComponent("XUILabel") as IXUILabel); + this.m_RightText = (base.transform.Find("_canvas/TalkTextBg/TaskText/Text").GetComponent("XUILabel") as IXUILabel); + this.m_LeftText = (base.transform.Find("_canvas/TalkTextBg/TaskText/PlayerText").GetComponent("XUILabel") as IXUILabel); + this.m_leftSnapshot = (base.transform.Find("_canvas/LeftSnapshot").GetComponent("UIDummy") as IUIDummy); + this.m_rightSnapshot = (base.transform.Find("_canvas/RightSnapshot").GetComponent("UIDummy") as IUIDummy); + this.m_leftDummyPos = this.m_leftSnapshot.transform.localPosition; + this.m_rightDummyPos = this.m_rightSnapshot.transform.localPosition; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlgBehaviour.cs.meta new file mode 100644 index 00000000..9f49104e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleDramaDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc802bb294920cf4795ed19dcd1ebc12 +timeCreated: 1611404447 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleEnemyType.cs b/Client/Assets/Scripts/XMainClient/UI/BattleEnemyType.cs new file mode 100644 index 00000000..4f6dfdb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleEnemyType.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient.UI +{ + internal enum BattleEnemyType + { + BET_BOSS, + BET_ROLE + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleEnemyType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleEnemyType.cs.meta new file mode 100644 index 00000000..9c94e701 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleEnemyType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14728630a550c6f4c85a1614c961dc3b +timeCreated: 1611403259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleIndicateHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleIndicateHandler.cs new file mode 100644 index 00000000..f9d5f174 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleIndicateHandler.cs @@ -0,0 +1,1508 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleIndicateHandler : DlgHandlerBase + { + public XUIPool m_TeamIndicatePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_Direction; + + private Vector3 m_DirectPos; + + private Transform m_CachedDirectionTarget; + + private List m_IndicatesList = new List(); + + private Dictionary m_EntityIndicates = new Dictionary(); + + private float _Half_H_Fov; + + private float _tan_half_H_fov; + + private float _Half_V_Fov; + + private float _tan_half_V_fov; + + private float _sqr_tan_half_V_fov; + + private Transform m_MiniMapRotation; + + private IXUITexture m_MiniMap; + + private Transform m_MiniMapCamera; + + private XUIPool m_MiniMapElementPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Dictionary m_MiniMapElements = new Dictionary(); + + private List m_MiniMapDoor = new List(); + + private List m_MiniMapBuff = new List(); + + private Dictionary m_MiniMapDoodadDic = new Dictionary(); + + private List m_MiniMapFx = new List(); + + private Dictionary m_MiniMapFxDic = new Dictionary(); + + private List m_MiniMapPic = new List(); + + private Dictionary m_MiniMapPicDic = new Dictionary(); + + private uint m_MiniMapFxToken = 0u; + + private uint m_MiniMapPicToken = 0u; + + private float MiniMapScale; + + private bool _staticMap; + + private Vector3 _referencePos; + + private Vector2 _outSize = Vector2.one; + + private int _heroBattleDepth_O; + + private int _heroBattleDepth_A; + + private static bool _hide_minimap_opponent; + + private XEntity _campEntity; + + private List _unInitEntityList = new List(); + + private Vector2 MiniMapSize; + + private readonly float BASESIZE = 65f; + + private Vector2 MapSizeInTable; + + private int MaxDisplayNum = 0; + + private List m_ShouldShowEnemyIndex = new List(); + + private HashSet m_ValidSet = new HashSet(); + + protected override void Init() + { + base.Init(); + this._campEntity = XSingleton.singleton.Player; + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + this.InitTeamIndicate(); + } + this.MiniMapSize = new Vector2(this.BASESIZE, this.BASESIZE); + this._staticMap = XSingleton.singleton.GetSceneStaticMiniMapCenter(XSingleton.singleton.SceneID, out this._referencePos); + this._outSize = Vector2.one; + this.SetMiniMapSize(XSingleton.singleton.GetSceneMiniMapOutSize(XSingleton.singleton.SceneID), 0f); + this.InitMiniMap(); + this._heroBattleDepth_O = 200; + this._heroBattleDepth_A = 100; + this.MaxDisplayNum = XSingleton.singleton.GetInt("MaxEnmeyIndicatorDisplayNum"); + } + + public void SetMiniMapSize(Vector2 size, float scale = 0f) + { + bool flag = size != this._outSize; + if (flag) + { + this.SetMiniMapOutSize(Vector2.one); + this.SetMiniMapOutSize(size); + } + bool flag2 = scale > 0f; + if (flag2) + { + this.MiniMapScale = scale; + } + } + + private void SetMiniMapOutSize(Vector2 size) + { + Vector2 outSize = this._outSize; + this._outSize = size; + this.MiniMapSize = new Vector2(this.BASESIZE * this._outSize.x, this.BASESIZE * this._outSize.y); + IXUISprite ixuisprite = base.PanelObject.transform.Find("Bg/MapBg").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = (int)((float)ixuisprite.spriteWidth / outSize.x * this._outSize.x); + ixuisprite.spriteHeight = (int)((float)ixuisprite.spriteHeight / outSize.y * this._outSize.y); + IXUIPanel ixuipanel = base.PanelObject.transform.Find("MiniMap").GetComponent("XUIPanel") as IXUIPanel; + Vector4 clipRange = ixuipanel.ClipRange; + float num = clipRange.z; + clipRange.z = clipRange.z / outSize.x * this._outSize.x; + clipRange.x = -(clipRange.z - num) / 2f; + num = clipRange.w; + clipRange.w = clipRange.w / outSize.y * this._outSize.y; + clipRange.y = -(clipRange.w - num) / 2f; + ixuipanel.ClipRange = clipRange; + IXUISprite ixuisprite2 = base.PanelObject.transform.Find("MiniMap/Bg").GetComponent("XUISprite") as IXUISprite; + Vector3 localPosition = ixuisprite2.transform.localPosition; + num = (float)ixuisprite2.spriteWidth; + ixuisprite2.spriteWidth = (int)((float)ixuisprite2.spriteWidth / outSize.x * this._outSize.x); + localPosition.x = -((float)ixuisprite2.spriteWidth - num) / 2f; + num = (float)ixuisprite2.spriteHeight; + ixuisprite2.spriteHeight = (int)((float)ixuisprite2.spriteHeight / outSize.y * this._outSize.y); + localPosition.y = -((float)ixuisprite2.spriteHeight - num) / 2f; + ixuisprite2.transform.localPosition = localPosition; + IXUISprite ixuisprite3 = base.PanelObject.transform.Find("Bg/NameBg").GetComponent("XUISprite") as IXUISprite; + num = (float)ixuisprite3.spriteWidth; + ixuisprite3.spriteWidth = (int)((float)ixuisprite3.spriteWidth / outSize.x * this._outSize.x); + localPosition = ixuisprite3.transform.localPosition; + ixuisprite3.transform.localPosition = new Vector3(-((float)ixuisprite3.spriteWidth - num) / 2f, localPosition.y); + IXUILabel ixuilabel = base.PanelObject.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel; + num = (float)ixuilabel.spriteWidth; + ixuilabel.spriteWidth = (int)((float)ixuilabel.spriteWidth / outSize.x * this._outSize.x); + localPosition = ixuilabel.gameObject.transform.localPosition; + ixuilabel.gameObject.transform.localPosition = new Vector3(-((float)ixuilabel.spriteWidth - num) / 2f, localPosition.y); + } + + public override void OnUnload() + { + foreach (MiniMapElement miniMapElement in this.m_MiniMapElements.Values) + { + this.DestroyFx(miniMapElement.notice); + } + foreach (MiniMapElement miniMapElement2 in this.m_MiniMapDoodadDic.Values) + { + this.DestroyFx(miniMapElement2.notice); + } + foreach (MiniMapElement miniMapElement3 in this.m_MiniMapFxDic.Values) + { + this.DestroyFx(miniMapElement3.notice); + } + foreach (MiniMapElement miniMapElement4 in this.m_MiniMapPicDic.Values) + { + this.DestroyFx(miniMapElement4.notice); + } + this.m_MiniMapDoor.Clear(); + this.m_MiniMapElements.Clear(); + this.m_MiniMapBuff.Clear(); + this.m_MiniMapDoodadDic.Clear(); + this.m_MiniMapFx.Clear(); + this.m_MiniMapPic.Clear(); + this.m_MiniMapFxDic.Clear(); + this.m_MiniMapPicDic.Clear(); + this.m_MiniMapElementPool.ReturnAll(false); + this.m_MiniMap.SetTexturePath(""); + base.OnUnload(); + } + + private void InitTeamIndicate() + { + this._Half_V_Fov = 0.0174532924f * (XSingleton.singleton.GameCamera.UnityCamera.fieldOfView * 0.5f); + float num = (float)XSingleton.singleton.Base_UI_Width / (float)XSingleton.singleton.Base_UI_Height; + this._Half_H_Fov = (float)Math.Atan(Math.Tan((double)this._Half_V_Fov) * (double)num) * 0.95f; + this._tan_half_H_fov = (float)Math.Tan((double)this._Half_H_Fov); + this._tan_half_V_fov = (float)Math.Tan((double)this._Half_V_Fov); + this._sqr_tan_half_V_fov = this._tan_half_V_fov * this._tan_half_V_fov; + Transform transform = base.PanelObject.transform.Find("EnemyIndicate"); + this.m_TeamIndicatePool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, true); + this.m_Direction = base.PanelObject.transform.Find("Direction"); + this.m_DirectPos = this.m_Direction.localPosition; + this.m_Direction.gameObject.transform.localPosition = XGameUI.Far_Far_Away; + this.m_EntityIndicates.Clear(); + this.m_IndicatesList.Clear(); + this.m_TeamIndicatePool.ReturnAll(false); + } + + private void InitMiniMap() + { + this.m_MiniMapCamera = base.PanelObject.transform.Find("MiniMap/Bg/Rotation/Camera"); + this.m_MiniMapCamera.gameObject.SetActive(!this._staticMap); + Transform transform = base.PanelObject.transform.Find("MiniMap/Bg/Rotation/Element"); + this.m_MiniMapElementPool.SetupPool(transform.parent.gameObject, transform.gameObject, 20u, true); + this.m_MiniMapRotation = base.PanelObject.transform.Find("MiniMap/Bg/Rotation"); + this.m_MiniMap = (base.PanelObject.transform.Find("MiniMap/Bg/Rotation/Map").GetComponent("XUITexture") as IXUITexture); + this.MiniMapScale = (float)XSingleton.singleton.GetInt("MiniMapScale") / 10f; + this.MiniMapInit(); + } + + private void MiniMapInit() + { + this.m_MiniMapDoor.Clear(); + this.m_MiniMapElements.Clear(); + this.m_MiniMapBuff.Clear(); + this.m_MiniMapDoodadDic.Clear(); + this.m_MiniMapFx.Clear(); + this.m_MiniMapPic.Clear(); + this.m_MiniMapFxDic.Clear(); + this.m_MiniMapPicDic.Clear(); + this.m_MiniMapElementPool.ReturnAll(false); + this.MiniMapAdd(XSingleton.singleton.Player); + uint sceneID = XSingleton.singleton.SceneID; + string sceneMiniMap = XSingleton.singleton.GetSceneMiniMap(sceneID); + bool flag = !string.IsNullOrEmpty(sceneMiniMap); + if (flag) + { + this.m_MiniMap.SetTexturePath("atlas/UI/Battle/minimap/" + sceneMiniMap); + } + short[] sceneMiniMapSize = XSingleton.singleton.GetSceneMiniMapSize(sceneID); + bool flag2 = sceneMiniMapSize != null; + if (flag2) + { + bool flag3 = sceneMiniMapSize.Length > 2; + if (flag3) + { + this.MiniMapScale = (float)sceneMiniMapSize[2] / 10f; + } + this.MapSizeInTable = new Vector2((float)sceneMiniMapSize[0], (float)sceneMiniMapSize[1]); + this.m_MiniMap.spriteWidth = (int)(this.MapSizeInTable.x * this.MiniMapScale); + this.m_MiniMap.spriteHeight = (int)(this.MapSizeInTable.y * this.MiniMapScale); + } + this.m_MiniMapRotation.transform.eulerAngles = new Vector3(0f, 0f, (float)XSingleton.singleton.GetSceneMiniMapRotation(sceneID)); + BattleIndicateHandler._hide_minimap_opponent = false; + } + + public void SetMiniMapRotation(float rotation) + { + bool flag = XSingleton.singleton.GetSceneMiniMapRotation(XSingleton.singleton.SceneID) < 0; + if (flag) + { + bool flag2 = this.m_MiniMapRotation != null; + if (flag2) + { + this.m_MiniMapRotation.transform.eulerAngles = new Vector3(0f, 0f, rotation); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + bool flag2 = !this._staticMap; + if (flag2) + { + this._referencePos = XSingleton.singleton.Player.EngineObject.Position; + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + this.m_ValidSet.Clear(); + this.UpdateTeamIndicate(); + this.UpdateEnemyIndicate(); + this.UpdateDirection(); + bool flag4 = this.m_IndicatesList.Count != this.m_ValidSet.Count; + if (flag4) + { + for (int i = this.m_IndicatesList.Count - 1; i >= 0; i--) + { + bool flag5 = !this.m_ValidSet.Contains(this.m_IndicatesList[i].id); + if (flag5) + { + BattleIndicator battleIndicator = this.m_IndicatesList[i]; + this.m_TeamIndicatePool.ReturnInstance(battleIndicator.sp.gameObject, false); + this.m_EntityIndicates.Remove(battleIndicator.id); + this.m_IndicatesList.RemoveAt(i); + } + } + } + } + this.UpdateMiniMap(); + } + } + + private void UpdateMiniMap() + { + bool flag = this._campEntity == null; + if (!flag) + { + this.m_MiniMap.spriteWidth = (int)(this.MapSizeInTable.x * this.MiniMapScale); + this.m_MiniMap.spriteHeight = (int)(this.MapSizeInTable.y * this.MiniMapScale); + MiniMapElement element; + bool flag2 = this.m_MiniMapElements.TryGetValue(this._campEntity.ID, out element); + if (flag2) + { + this.SetupMiniMapElement(this._campEntity, element, false); + this.m_MiniMap.gameObject.transform.localPosition = new Vector3(-this._referencePos.x, -this._referencePos.z) * this.MiniMapScale; + } + bool flag3 = !this._staticMap && this.m_MiniMapCamera != null && XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag3) + { + this.m_MiniMapCamera.localEulerAngles = new Vector3(0f, 0f, -XSingleton.singleton.GameCamera.UnityCamera.transform.eulerAngles.y); + } + List opponent = XSingleton.singleton.GetOpponent(this._campEntity); + for (int i = 0; i < opponent.Count; i++) + { + bool flag4 = this.m_MiniMapElements.TryGetValue(opponent[i].ID, out element); + if (flag4) + { + this.SetupMiniMapElement(opponent[i], element, BattleIndicateHandler._hide_minimap_opponent || !opponent[i].IsVisible); + } + } + List ally = XSingleton.singleton.GetAlly(this._campEntity); + for (int j = 0; j < ally.Count; j++) + { + bool flag5 = this.m_MiniMapElements.TryGetValue(ally[j].ID, out element); + if (flag5) + { + this.SetupMiniMapElement(ally[j], element, false); + } + } + for (int k = 0; k < this.m_MiniMapDoor.Count; k++) + { + this.SetupMiniMapStatic(this.m_MiniMapDoor[k]); + } + for (int l = 0; l < this.m_MiniMapBuff.Count; l++) + { + this.SetupMiniMapStatic(this.m_MiniMapBuff[l]); + } + for (int m = 0; m < this.m_MiniMapFx.Count; m++) + { + this.SetupMiniMapFxStatic(this.m_MiniMapFx[m]); + } + for (int n = 0; n < this.m_MiniMapPic.Count; n++) + { + this.SetupMiniMapFxStatic(this.m_MiniMapPic[n]); + } + } + } + + private void SetupMiniMapElement(XEntity entity, MiniMapElement element, bool hide = false) + { + bool deprecated = entity.Deprecated; + if (deprecated) + { + this.m_MiniMapElements.Remove(entity.ID); + this.DestroyFx(element.notice); + element.notice = null; + this.m_MiniMapElementPool.ReturnInstance(element.sp.gameObject, false); + } + else + { + Vector3 position = entity.EngineObject.Position; + float num = position.x - this._referencePos.x; + float num2 = position.z - this._referencePos.z; + element.transform.localPosition = new Vector3(num, num2) * this.MiniMapScale; + element.transform.parent = element.transform.parent.parent; + bool flag = element.transform.localPosition.x > this.MiniMapSize.x; + if (flag) + { + num = this.MiniMapSize.x; + } + else + { + bool flag2 = element.transform.localPosition.x < -this.MiniMapSize.x; + if (flag2) + { + num = -this.MiniMapSize.x; + } + else + { + num = element.transform.localPosition.x; + } + } + bool flag3 = element.transform.localPosition.y > this.MiniMapSize.y; + if (flag3) + { + num2 = this.MiniMapSize.y; + } + else + { + bool flag4 = element.transform.localPosition.y < -this.MiniMapSize.y; + if (flag4) + { + num2 = -this.MiniMapSize.y; + } + else + { + num2 = element.transform.localPosition.y; + } + } + element.transform.localPosition = new Vector3(num, num2); + element.transform.parent = this.m_MiniMapRotation; + element.sp.transform.localEulerAngles = -this.m_MiniMapRotation.transform.eulerAngles; + float alpha = 1f; + bool isPlayer = entity.IsPlayer; + if (!isPlayer) + { + bool isDead = entity.IsDead; + if (isDead) + { + alpha = 0f; + } + } + if (hide) + { + alpha = 0f; + } + element.sp.SetAlpha(alpha); + } + } + + private void SetupMiniMapStatic(MiniMapElement element) + { + element.sp.transform.localPosition = new Vector3(element.transform.position.x - this._referencePos.x, element.transform.position.z - this._referencePos.z) * this.MiniMapScale; + element.sp.transform.localEulerAngles = -this.m_MiniMapRotation.transform.eulerAngles; + } + + private void SetupMiniMapFxStatic(MiniMapElement element) + { + element.sp.transform.localPosition = new Vector3(element.pos.x - this._referencePos.x, element.pos.z - this._referencePos.z) * this.MiniMapScale; + } + + private void SetupMiniMapPicStatic(MiniMapElement element) + { + element.sp.transform.localPosition = new Vector3(element.pos.x - this._referencePos.x, element.pos.z - this._referencePos.z) * this.MiniMapScale; + } + + public void DelTeamIndicate(ulong uid) + { + BattleIndicator battleIndicator; + bool flag = this.m_EntityIndicates.TryGetValue(uid, out battleIndicator); + if (flag) + { + this.m_TeamIndicatePool.ReturnInstance(battleIndicator.sp.gameObject, false); + this.m_EntityIndicates.Remove(uid); + this.m_IndicatesList.Remove(battleIndicator); + } + } + + protected void UpdateTeamIndicate() + { + bool flag = XSingleton.singleton.SceneData == null || XSingleton.singleton.SceneData.HideTeamIndicate; + if (!flag) + { + List ally = XSingleton.singleton.GetAlly(this._campEntity); + for (int i = 0; i < ally.Count; i++) + { + bool flag2 = ally[i] == XSingleton.singleton.Player; + if (!flag2) + { + bool flag3 = !ally[i].IsRole; + if (!flag3) + { + BattleIndicator bi; + bool flag4 = !this.m_EntityIndicates.TryGetValue(ally[i].ID, out bi); + if (flag4) + { + this.CreateEntityIndicate(out bi, ally[i], true); + } + bool flag5 = !XEntity.ValideEntity(ally[i]); + if (!flag5) + { + this.m_ValidSet.Add(ally[i].ID); + this.ShowIndicatePosition(bi, ally[i], true); + } + } + } + } + } + } + + protected void UpdateEnemyIndicate() + { + List opponent = XSingleton.singleton.GetOpponent(this._campEntity); + this.m_ShouldShowEnemyIndex.Clear(); + for (int i = 0; i < opponent.Count; i++) + { + bool flag = !opponent[i].IsEnemy; + if (!flag) + { + bool isPuppet = opponent[i].IsPuppet; + if (!isPuppet) + { + bool flag2 = XSingleton.singleton.SyncMode && !opponent[i].IsServerFighting; + if (!flag2) + { + bool flag3 = !XSingleton.singleton.SyncMode && !opponent[i].IsFighting; + if (!flag3) + { + this.m_ShouldShowEnemyIndex.Add(i); + } + } + } + } + } + bool flag4 = this.m_ShouldShowEnemyIndex.Count > this.MaxDisplayNum; + if (flag4) + { + for (int j = 0; j < this.m_ShouldShowEnemyIndex.Count; j++) + { + BattleIndicator battleIndicator; + bool flag5 = this.m_EntityIndicates.TryGetValue(opponent[this.m_ShouldShowEnemyIndex[j]].ID, out battleIndicator); + if (flag5) + { + this.m_TeamIndicatePool.ReturnInstance(battleIndicator.sp.gameObject, false); + this.m_EntityIndicates.Remove(opponent[this.m_ShouldShowEnemyIndex[j]].ID); + } + } + } + else + { + for (int k = 0; k < this.m_ShouldShowEnemyIndex.Count; k++) + { + int index = this.m_ShouldShowEnemyIndex[k]; + bool flag6 = XEntity.ValideEntity(opponent[index]); + bool flag7 = !flag6; + BattleIndicator battleIndicator; + bool flag8 = !this.m_EntityIndicates.TryGetValue(opponent[index].ID, out battleIndicator); + if (flag8) + { + bool flag9 = !flag7; + if (flag9) + { + this.CreateEntityIndicate(out battleIndicator, opponent[index], false); + } + else + { + flag7 = false; + } + } + bool flag10 = flag7; + if (!flag10) + { + bool flag11 = flag6; + if (flag11) + { + this.ShowIndicatePosition(battleIndicator, opponent[index], false); + this.m_ValidSet.Add(opponent[index].ID); + } + } + } + } + } + + protected void CreateEntityIndicate(out BattleIndicator bi, XEntity e, bool IsTeamMember) + { + GameObject gameObject = this.m_TeamIndicatePool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + bi = default(BattleIndicator); + bi.id = e.ID; + bi.go = gameObject; + bi.sp = ixuisprite; + bi.arrow = bi.go.transform.Find("arrow"); + bi.leader = (bi.go.transform.Find("leader").GetComponent("XUISprite") as IXUISprite); + bi.xGameObject = e.EngineObject; + this.m_EntityIndicates.Add(e.ID, bi); + this.m_IndicatesList.Add(bi); + if (IsTeamMember) + { + string teamIndicateAvatar = XSingleton.singleton.GetTeamIndicateAvatar(e.TypeID % 10u); + ixuisprite.SetSprite(teamIndicateAvatar); + } + else + { + ixuisprite.SetSprite("monster_00"); + } + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag) + { + XBattleCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + bool flag2 = e.ID == specificDocument.MyPosition(false); + bi.leader.SetAlpha((float)(flag2 ? 1 : 0)); + } + else + { + bi.leader.SetAlpha(0f); + } + } + + protected void ShowIndicatePosition(BattleIndicator bi, XEntity e, bool IsTeamMember) + { + bool flag = bi.xGameObject == null || XSingleton.singleton.IsPlaying; + if (flag) + { + bi.sp.gameObject.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + } + else + { + Vector3 position = e.EngineObject.Position; + Camera unityCamera = XSingleton.singleton.GameCamera.UnityCamera; + Vector3 vector = XSingleton.singleton.Player.EngineObject.Position - position; + bool isVisible = bi.xGameObject.IsVisible; + if (isVisible) + { + if (IsTeamMember) + { + float num = float.Parse(XSingleton.singleton.GetValue("TeamIndicateDistance")); + bool flag2 = vector.sqrMagnitude < num * num; + if (flag2) + { + bi.sp.gameObject.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + } + else + { + float num2 = e.Height + 0.6f; + Vector3 vector2; + vector2 = new Vector3(position.x, position.y + num2, position.z); + Vector3 vector3 = unityCamera.WorldToViewportPoint(vector2); + bi.sp.SetAlpha(1f); + bi.sp.gameObject.transform.position = XSingleton.singleton.UICamera.ViewportToWorldPoint(vector3); + vector3 = bi.sp.gameObject.transform.localPosition; + vector3.x = (float)Mathf.FloorToInt(vector3.x); + vector3.y = (float)Mathf.FloorToInt(vector3.y); + vector3.z = 0f; + bi.sp.gameObject.transform.localPosition = vector3; + } + } + else + { + bi.sp.SetAlpha(0f); + } + } + else + { + int num3 = XSingleton.singleton.Base_UI_Width / 2; + int num4 = XSingleton.singleton.Base_UI_Height / 2; + Vector3 normalized = unityCamera.transform.forward.normalized; + Vector3 normalized2 = unityCamera.transform.right.normalized; + Vector3 vector4 = position - unityCamera.transform.position; + Vector3 vector5 = position - normalized2 * Vector3.Dot(normalized2, vector4); + Vector3 vector6 = vector5 - unityCamera.transform.position; + Vector3 vector7 = normalized * Vector3.Dot(normalized, vector6); + Vector3 vector8 = vector6 - vector7; + float num5 = vector8.sqrMagnitude / vector7.sqrMagnitude; + bool flag3 = Vector3.Dot(vector8, unityCamera.transform.up) > 0f || num5 < this._sqr_tan_half_V_fov; + if (flag3) + { + vector.Set(vector.x, 0f, vector.z); + Vector3 vector9; + vector9 = new Vector3(unityCamera.transform.forward.x, 0f, unityCamera.transform.forward.z); + float num6 = 0.0174532924f * Vector3.Angle(vector, vector9); + bool flag4 = !XSingleton.singleton.Clockwise(vector, vector9); + if (flag4) + { + num6 = -num6; + } + float num7 = (float)Math.Tan((double)num6) / this._tan_half_H_fov * (float)XSingleton.singleton.Base_UI_Width * 0.5f; + bool flag5 = num6 >= this._Half_H_Fov; + if (flag5) + { + float num8 = num7 - (float)num3; + float num9 = num8 * (float)num4 / num7; + num9 = Mathf.Clamp(num9, 0f, (float)XSingleton.singleton.Base_UI_Height); + bi.go.transform.localPosition = new Vector3((float)(num3 - this.m_TeamIndicatePool.TplWidth / 2), (float)(-(float)num4) + num9, 0f); + bi.arrow.transform.localRotation = Quaternion.identity; + bi.arrow.transform.Rotate(0f, 0f, 90f); + bool flag6 = num9 < 260f; + if (flag6) + { + bi.sp.SetAlpha(0.5f); + } + else + { + bi.sp.SetAlpha(1f); + } + } + else + { + float num10 = -num7 - (float)num3; + float num11 = num10 * (float)num4 / -num7; + num11 = Mathf.Clamp(num11, (float)(this.m_TeamIndicatePool.TplHeight / 2), (float)(XSingleton.singleton.Base_UI_Height - this.m_TeamIndicatePool.TplHeight / 2)); + bi.go.transform.localPosition = new Vector3((float)(-(float)num3 + this.m_TeamIndicatePool.TplWidth / 2), (float)(-(float)num4) + num11, 0f); + bi.arrow.transform.localRotation = Quaternion.identity; + bi.arrow.transform.Rotate(0f, 0f, -90f); + bi.sp.SetAlpha(1f); + } + } + else + { + vector.Set(vector.x, 0f, vector.z); + Vector3 vector10; + vector10 = new Vector3(unityCamera.transform.forward.x, 0f, unityCamera.transform.forward.z); + float num12 = 0.0174532924f * Vector3.Angle(vector, vector10); + bool flag7 = !XSingleton.singleton.Clockwise(vector, vector10); + if (flag7) + { + num12 = -num12; + } + float num13 = (float)Math.Tan((double)num12) / this._tan_half_H_fov * (float)XSingleton.singleton.Base_UI_Width * 0.5f; + bool flag8 = num12 <= this._Half_H_Fov && num12 >= -this._Half_H_Fov; + if (flag8) + { + num13 = Mathf.Clamp(num13, (float)(-(float)num3 + this.m_TeamIndicatePool.TplWidth / 2), (float)(num3 - this.m_TeamIndicatePool.TplWidth / 2)); + bi.go.transform.localPosition = new Vector3(num13, (float)(-(float)num4 + this.m_TeamIndicatePool.TplHeight / 2), 0f); + bi.arrow.transform.localRotation = Quaternion.identity; + bool flag9 = num13 > 165f; + if (flag9) + { + bi.sp.SetAlpha(0.5f); + } + else + { + bi.sp.SetAlpha(1f); + } + } + else + { + bool flag10 = num12 > this._Half_H_Fov; + if (flag10) + { + float num14 = num13 - (float)num3; + float num15 = num14 * (float)num4 / num13; + num15 = Mathf.Clamp(num15, 0f, (float)XSingleton.singleton.Base_UI_Height); + bi.go.transform.localPosition = new Vector3((float)(num3 - this.m_TeamIndicatePool.TplWidth / 2), (float)(-(float)num4) + num15, 0f); + bi.arrow.transform.localRotation = Quaternion.identity; + bi.arrow.transform.Rotate(0f, 0f, 90f); + bool flag11 = num15 < 260f; + if (flag11) + { + bi.sp.SetAlpha(0.5f); + } + else + { + bi.sp.SetAlpha(1f); + } + } + else + { + bool flag12 = num12 < this._Half_H_Fov; + if (flag12) + { + float num16 = -num13 - (float)num3; + float num17 = num16 * (float)num4 / -num13; + num17 = Mathf.Clamp(num17, (float)(this.m_TeamIndicatePool.TplHeight / 2), (float)(XSingleton.singleton.Base_UI_Height - this.m_TeamIndicatePool.TplHeight / 2)); + bi.go.transform.localPosition = new Vector3((float)(-(float)num3 + this.m_TeamIndicatePool.TplWidth / 2), (float)(-(float)num4) + num17, 0f); + bi.arrow.transform.localRotation = Quaternion.identity; + bi.arrow.transform.Rotate(0f, 0f, -90f); + bi.sp.SetAlpha(1f); + } + } + } + } + } + } + } + + private bool DealWithSpectatorWatchToNull(XEntity e) + { + bool flag = !XSingleton.singleton.bSpectator; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = XSingleton.singleton.Player.WatchTo == null; + if (flag2) + { + this._unInitEntityList.Add(e.ID); + result = true; + } + else + { + bool flag3 = e.ID == XSingleton.singleton.Player.WatchTo.ID && this._unInitEntityList.Count != 0; + if (flag3) + { + this._campEntity = XSingleton.singleton.Player.WatchTo; + for (int i = 0; i < this._unInitEntityList.Count; i++) + { + bool flag4 = this._unInitEntityList[i] == XSingleton.singleton.Player.WatchTo.ID; + if (!flag4) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(this._unInitEntityList[i]); + bool flag5 = entityConsiderDeath != null; + if (flag5) + { + this.MiniMapAdd(entityConsiderDeath); + } + } + } + this._unInitEntityList.Clear(); + } + result = false; + } + } + return result; + } + + public void MiniMapAdd(XEntity e) + { + bool flag = e == null || e.Attributes == null; + if (!flag) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(e.Attributes.TypeID); + bool flag2 = byID != null && byID.HideInMiniMap; + if (!flag2) + { + bool flag3 = this.DealWithSpectatorWatchToNull(e); + if (!flag3) + { + bool flag4 = XSingleton.singleton.IsNeutral(e) || e.IsPuppet || e.IsSubstance; + if (!flag4) + { + bool flag5 = !this.m_MiniMapElements.ContainsKey(e.ID); + if (flag5) + { + GameObject gameObject = this.m_MiniMapElementPool.FetchGameObject(false); + GameObject gameObject2 = gameObject.transform.Find("Circle").gameObject; + bool flag6 = gameObject2 != null; + if (flag6) + { + gameObject2.SetActive(false); + } + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + MiniMapElement miniMapElement = new MiniMapElement(); + miniMapElement.notice = null; + miniMapElement.sp = ixuisprite; + ixuisprite.SetAlpha(1f); + bool isPlayer = e.IsPlayer; + if (isPlayer) + { + miniMapElement.sp.SetSprite("smap_1"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 35; + gameObject.name = "Player"; + } + else + { + bool flag7 = this.SpecialIsOpponent(this._campEntity, e); + if (flag7) + { + bool isBoss = e.IsBoss; + if (isBoss) + { + miniMapElement.sp.SetSprite("smap_2"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 32; + gameObject.name = "Boss"; + } + else + { + bool isElite = e.IsElite; + if (isElite) + { + miniMapElement.sp.SetSprite("smap_3"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 31; + gameObject.name = "Elite"; + } + else + { + miniMapElement.sp.SetSprite("smap_6"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 30; + gameObject.name = "Enemy"; + } + } + } + else + { + bool flag8 = this.SpecialIsAlly(this._campEntity, e); + if (flag8) + { + bool isNpc = e.IsNpc; + if (isNpc) + { + miniMapElement.sp.SetSprite("smap_5"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 33; + gameObject.name = "Npc"; + } + else + { + miniMapElement.sp.SetSprite("smap_4"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 34; + gameObject.name = "Ally"; + } + } + else + { + miniMapElement.sp.SetSprite("none"); + miniMapElement.sp.SetAlpha(0f); + } + } + } + miniMapElement.transform = gameObject.transform; + this.m_MiniMapElements.Add(e.ID, miniMapElement); + this.SetupMiniMapElement(e, miniMapElement, false); + } + this.RefreshOnMoba(e); + this.RefreshOnHero(e); + } + } + } + } + } + + public bool SetMiniMapElement(ulong id, string spriteName, int width = -1, int height = -1) + { + MiniMapElement miniMapElement; + bool flag = this.m_MiniMapElements.TryGetValue(id, out miniMapElement); + bool result; + if (flag) + { + miniMapElement.sp.SetSprite(spriteName); + bool flag2 = width == -1 && height == -1; + if (flag2) + { + miniMapElement.sp.MakePixelPerfect(); + } + else + { + miniMapElement.sp.spriteWidth = width; + miniMapElement.sp.spriteHeight = height; + } + result = true; + } + else + { + result = false; + } + return result; + } + + public void RefreshOnMoba(XEntity e) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_MOBA || e.Attributes == null || XSingleton.singleton.XPlayerData == null; + if (!flag) + { + bool isRole = e.IsRole; + if (isRole) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + MobaMemberData mobaMemberData = null; + bool flag2 = specificDocument.MyData == null || !specificDocument.MobaData.TryGetValue(e.ID, out mobaMemberData); + if (!flag2) + { + bool flag3 = mobaMemberData.heroID == 0u; + if (!flag3) + { + this.SetHeroMiniMapElement(e.ID, mobaMemberData.heroID, specificDocument.MyData.teamID == mobaMemberData.teamID, true); + } + } + } + } + } + + public void RefreshOnHero(XEntity e) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_HEROBATTLE || e.Attributes == null || XSingleton.singleton.XPlayerData == null; + if (!flag) + { + bool isRole = e.IsRole; + if (isRole) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + uint num = 0u; + bool flag2 = !specificDocument.heroIDIndex.TryGetValue(e.ID, out num); + if (!flag2) + { + bool flag3 = num == 0u; + if (!flag3) + { + this.SetHeroMiniMapElement(e.ID, num, XSingleton.singleton.IsAlly(e), true); + } + } + } + } + } + + public void SetHeroMiniMapElement(ulong id, uint heroID, bool isMyTeam, bool force = false) + { + bool flag = heroID == 0u; + if (!flag) + { + MiniMapElement miniMapElement; + bool flag2 = this.m_MiniMapElements.TryGetValue(id, out miniMapElement); + if (flag2) + { + bool flag3 = !force && miniMapElement.heroID == heroID; + if (!flag3) + { + XSingleton.singleton.AddGreenLog("SetMiniMap hero ele, uid = ", id.ToString(), ", heroID = ", heroID.ToString(), null, null); + miniMapElement.heroID = heroID; + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + OverWatchTable.RowData byHeroID = specificDocument.OverWatchReader.GetByHeroID(heroID); + miniMapElement.sp.SetSprite(byHeroID.MiniMapIcon, "Battle/battledlg2", false); + miniMapElement.sp.MakePixelPerfect(); + if (isMyTeam) + { + IXUISprite sp = miniMapElement.sp; + int num = this._heroBattleDepth_A; + this._heroBattleDepth_A = num + 1; + sp.spriteDepth = num; + } + else + { + IXUISprite sp2 = miniMapElement.sp; + int num = this._heroBattleDepth_O; + this._heroBattleDepth_O = num + 1; + sp2.spriteDepth = num; + } + bool flag4 = id == XSingleton.singleton.XPlayerData.RoleID; + if (flag4) + { + miniMapElement.sp.spriteDepth = 300; + } + Transform transform = miniMapElement.sp.gameObject.transform.Find("Circle"); + bool flag5 = transform != null; + if (flag5) + { + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + bool flag6 = ixuisprite != null; + if (flag6) + { + ixuisprite.SetVisible(true); + ixuisprite.SetSprite(isMyTeam ? "smhead_o" : "smhead_e"); + if (isMyTeam) + { + IXUISprite ixuisprite2 = ixuisprite; + int num = this._heroBattleDepth_A; + this._heroBattleDepth_A = num + 1; + ixuisprite2.spriteDepth = num; + } + else + { + IXUISprite ixuisprite3 = ixuisprite; + int num = this._heroBattleDepth_O; + this._heroBattleDepth_O = num + 1; + ixuisprite3.spriteDepth = num; + } + bool flag7 = id == XSingleton.singleton.XPlayerData.RoleID; + if (flag7) + { + ixuisprite.spriteDepth = 301; + } + } + } + } + } + } + } + + public void ResetMiniMapAllElement() + { + List all = XSingleton.singleton.GetAll(); + for (int i = 0; i < all.Count; i++) + { + this.ResetMiniMapElement(all[i].ID); + } + } + + public bool ResetMiniMapElement(ulong id) + { + MiniMapElement miniMapElement; + bool flag = this.m_MiniMapElements.TryGetValue(id, out miniMapElement); + bool result; + if (flag) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(id); + bool flag2 = entityConsiderDeath == null; + if (flag2) + { + result = false; + } + else + { + miniMapElement.sp.SetAlpha(1f); + bool isPlayer = entityConsiderDeath.IsPlayer; + if (isPlayer) + { + miniMapElement.sp.SetSprite("smap_1"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 35; + } + else + { + bool flag3 = this.SpecialIsOpponent(this._campEntity, entityConsiderDeath); + if (flag3) + { + bool isBoss = entityConsiderDeath.IsBoss; + if (isBoss) + { + miniMapElement.sp.SetSprite("smap_2"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 32; + } + else + { + bool isElite = entityConsiderDeath.IsElite; + if (isElite) + { + miniMapElement.sp.SetSprite("smap_3"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 31; + } + else + { + miniMapElement.sp.SetSprite("smap_6"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 30; + } + } + } + else + { + bool flag4 = this.SpecialIsAlly(this._campEntity, entityConsiderDeath); + if (flag4) + { + bool isNpc = entityConsiderDeath.IsNpc; + if (isNpc) + { + miniMapElement.sp.SetSprite("smap_5"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 33; + } + else + { + miniMapElement.sp.SetSprite("smap_4"); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 34; + } + } + else + { + XSingleton.singleton.AddGreenLog("null", null, null, null, null, null); + miniMapElement.sp.SetAlpha(0f); + } + } + } + this.RefreshOnMoba(entityConsiderDeath); + this.RefreshOnHero(entityConsiderDeath); + result = true; + } + } + else + { + result = false; + } + return result; + } + + private bool SpecialIsOpponent(XEntity e1, XEntity e2) + { + bool flag = XSingleton.singleton.bSpectator && XSingleton.singleton.IsPVPScene() && e2.IsRole; + bool result; + if (flag) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag3; + bool flag2 = !specificDocument.TryGetEntityIsBlueTeam(e2, out flag3); + result = (!flag2 && !flag3); + } + else + { + result = XSingleton.singleton.IsOpponent(e1, e2); + } + return result; + } + + private bool SpecialIsAlly(XEntity e1, XEntity e2) + { + bool flag = XSingleton.singleton.bSpectator && XSingleton.singleton.IsPVPScene() && e2.IsRole; + bool result; + if (flag) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag3; + bool flag2 = !specificDocument.TryGetEntityIsBlueTeam(e2, out flag3); + result = (!flag2 && flag3); + } + else + { + result = XSingleton.singleton.IsAlly(e1, e2); + } + return result; + } + + public static void SetMiniMapOpponentStatus(bool hide) + { + BattleIndicateHandler._hide_minimap_opponent = hide; + } + + public void MiniMapAddDoor(Transform go) + { + Transform transform = go.Find("Target"); + bool flag = transform != null; + if (flag) + { + GameObject gameObject = this.m_MiniMapElementPool.FetchGameObject(false); + GameObject gameObject2 = gameObject.transform.Find("Circle").gameObject; + bool flag2 = gameObject2 != null; + if (flag2) + { + gameObject2.SetActive(false); + } + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetAlpha(1f); + MiniMapElement miniMapElement = new MiniMapElement(); + miniMapElement.notice = null; + miniMapElement.sp = ixuisprite; + miniMapElement.sp.SetSprite("smap_7"); + miniMapElement.sp.MakePixelPerfect(); + gameObject.name = "Door"; + miniMapElement.transform = go; + this.m_MiniMapDoor.Add(miniMapElement); + this.SetupMiniMapStatic(miniMapElement); + } + } + + public void OnMonsterDie(XEntity e) + { + } + + public void MiniMapDel(ulong uid) + { + MiniMapElement miniMapElement; + bool flag = this.m_MiniMapElements.TryGetValue(uid, out miniMapElement); + if (flag) + { + this.m_MiniMapElements.Remove(uid); + this.DestroyFx(miniMapElement.notice); + miniMapElement.notice = null; + this.m_MiniMapElementPool.ReturnInstance(miniMapElement.sp.gameObject, false); + } + } + + public void MiniMapDel(XEntity e) + { + bool flag = XSingleton.singleton.IsAlly(e); + if (!flag) + { + MiniMapElement miniMapElement; + bool flag2 = this.m_MiniMapElements.TryGetValue(e.ID, out miniMapElement); + if (flag2) + { + this.m_MiniMapElements.Remove(e.ID); + this.DestroyFx(miniMapElement.notice); + miniMapElement.notice = null; + this.m_MiniMapElementPool.ReturnInstance(miniMapElement.sp.gameObject, false); + } + } + } + + public void MiniMapNoticeAdd(XEntity e) + { + MiniMapElement element; + bool flag = this.m_MiniMapElements.TryGetValue(e.ID, out element); + if (flag) + { + this.CreateAndPlayFxFxFirework(element); + } + } + + public void MiniMapBuffAdd(XLevelDoodad doo) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)doo.id, 1); + bool flag = buffData == null; + if (!flag) + { + bool flag2 = string.IsNullOrEmpty(buffData.MiniMapIcon); + if (!flag2) + { + bool flag3 = !this.m_MiniMapDoodadDic.ContainsKey((ulong)doo.index); + if (flag3) + { + GameObject gameObject = this.m_MiniMapElementPool.FetchGameObject(false); + GameObject gameObject2 = gameObject.transform.Find("Circle").gameObject; + bool flag4 = gameObject2 != null; + if (flag4) + { + gameObject2.SetActive(false); + } + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + MiniMapElement miniMapElement = new MiniMapElement(); + miniMapElement.notice = null; + miniMapElement.sp = ixuisprite; + ixuisprite.SetAlpha(1f); + miniMapElement.sp.SetSprite(buffData.MiniMapIcon); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.spriteDepth = 36; + gameObject.name = "Buff"; + miniMapElement.transform = doo.doodad.transform; + this.m_MiniMapBuff.Add(miniMapElement); + this.m_MiniMapDoodadDic.Add((ulong)doo.index, miniMapElement); + this.SetupMiniMapStatic(miniMapElement); + } + } + } + } + + public void MiniMapBuffDel(XLevelDoodad doo) + { + MiniMapElement miniMapElement; + bool flag = this.m_MiniMapDoodadDic.TryGetValue((ulong)doo.index, out miniMapElement); + if (flag) + { + this.m_MiniMapBuff.Remove(miniMapElement); + this.m_MiniMapDoodadDic.Remove((ulong)doo.index); + this.DestroyFx(miniMapElement.notice); + miniMapElement.notice = null; + this.m_MiniMapElementPool.ReturnInstance(miniMapElement.sp.gameObject, false); + } + } + + public uint MiniMapFxAdd(Vector3 pos, string fx) + { + GameObject gameObject = this.m_MiniMapElementPool.FetchGameObject(false); + GameObject gameObject2 = gameObject.transform.Find("Circle").gameObject; + bool flag = gameObject2 != null; + if (flag) + { + gameObject2.SetActive(false); + } + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + MiniMapElement miniMapElement = new MiniMapElement(); + miniMapElement.notice = XSingleton.singleton.CreateFx(fx, null, true); + bool flag2 = miniMapElement.notice != null; + if (flag2) + { + miniMapElement.notice.Play(ixuisprite.transform, Vector3.zero, Vector3.one, 1f, true, false); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(ixuisprite.gameObject); + } + miniMapElement.sp = ixuisprite; + ixuisprite.SetAlpha(1f); + miniMapElement.pos = pos; + miniMapElement.sp.SetSprite(""); + gameObject.name = "Fx"; + miniMapElement.transform = null; + this.m_MiniMapFxToken += 1u; + this.m_MiniMapFx.Add(miniMapElement); + this.m_MiniMapFxDic.Add((ulong)this.m_MiniMapFxToken, miniMapElement); + this.SetupMiniMapFxStatic(miniMapElement); + return this.m_MiniMapFxToken; + } + + public void MiniMapFxDel(uint token) + { + MiniMapElement miniMapElement; + bool flag = this.m_MiniMapFxDic.TryGetValue((ulong)token, out miniMapElement); + if (flag) + { + this.m_MiniMapFx.Remove(miniMapElement); + this.m_MiniMapFxDic.Remove((ulong)token); + this.DestroyFx(miniMapElement.notice); + miniMapElement.notice = null; + this.m_MiniMapElementPool.ReturnInstance(miniMapElement.sp.gameObject, false); + } + } + + public uint MiniMapPicAdd(Vector3 pos, string pic) + { + GameObject gameObject = this.m_MiniMapElementPool.FetchGameObject(false); + GameObject gameObject2 = gameObject.transform.Find("Circle").gameObject; + bool flag = gameObject2 != null; + if (flag) + { + gameObject2.SetActive(false); + } + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + MiniMapElement miniMapElement = new MiniMapElement(); + miniMapElement.notice = null; + miniMapElement.sp = ixuisprite; + ixuisprite.SetAlpha(1f); + miniMapElement.pos = pos; + miniMapElement.sp.SetSprite(pic); + miniMapElement.sp.MakePixelPerfect(); + miniMapElement.sp.transform.localEulerAngles = -this.m_MiniMapRotation.transform.eulerAngles; + miniMapElement.sp.spriteDepth = 36; + gameObject.name = "Pic"; + miniMapElement.transform = null; + this.m_MiniMapPicToken += 1u; + this.m_MiniMapPic.Add(miniMapElement); + this.m_MiniMapPicDic.Add((ulong)this.m_MiniMapPicToken, miniMapElement); + this.SetupMiniMapPicStatic(miniMapElement); + return this.m_MiniMapPicToken; + } + + public void MiniMapPicDel(uint token) + { + MiniMapElement miniMapElement; + bool flag = this.m_MiniMapPicDic.TryGetValue((ulong)token, out miniMapElement); + if (flag) + { + this.m_MiniMapPic.Remove(miniMapElement); + this.m_MiniMapPicDic.Remove((ulong)token); + this.m_MiniMapElementPool.ReturnInstance(miniMapElement.sp.gameObject, false); + } + } + + public void CreateAndPlayFxFxFirework(MiniMapElement element) + { + this.DestroyFx(element.notice); + element.notice = null; + element.notice = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_xdtts", null, true); + element.notice.Play(element.sp.transform, Vector3.zero, Vector3.one, 1f, true, false); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(element.sp.gameObject); + } + + private void DestroyFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + } + } + + public void MiniMapNoticeDel(XEntity e) + { + MiniMapElement miniMapElement; + bool flag = this.m_MiniMapElements.TryGetValue(e.ID, out miniMapElement); + if (flag) + { + this.DestroyFx(miniMapElement.notice); + miniMapElement.notice = null; + } + } + + public void ShowDirection(Transform target) + { + this.m_CachedDirectionTarget = target; + bool flag = !XSingleton.singleton.bSpectator; + if (flag) + { + this.m_Direction.localPosition = this.m_DirectPos; + } + } + + public void UpdateDirection() + { + bool flag = this.m_CachedDirectionTarget != null; + if (flag) + { + XPlayer player = XSingleton.singleton.Player; + Camera unityCamera = XSingleton.singleton.GameCamera.UnityCamera; + Vector3 position = player.EngineObject.Position; + Vector3 vector; + vector = new Vector3(this.m_CachedDirectionTarget.transform.position.x, 0f, this.m_CachedDirectionTarget.transform.position.z); + Vector3 vector2; + vector2 = new Vector3(position.x, 0f, position.z); + Vector3 vector3 = vector - vector2; + Vector3 vector4; + vector4 = new Vector3(unityCamera.transform.forward.x, 0f, unityCamera.transform.forward.z); + float sqrMagnitude = vector3.sqrMagnitude; + float num = Vector3.Angle(vector4, vector3); + bool flag2 = XSingleton.singleton.Clockwise(vector4, vector3); + if (flag2) + { + this.m_Direction.transform.localRotation = Quaternion.AngleAxis(-num, Vector3.forward); + } + else + { + this.m_Direction.transform.localRotation = Quaternion.AngleAxis(num, Vector3.forward); + } + bool flag3 = sqrMagnitude < 50f; + if (flag3) + { + this.m_Direction.localPosition = XGameUI.Far_Far_Away; + this.m_CachedDirectionTarget = null; + } + } + } + + public void ClearTeamIndicate() + { + this.m_EntityIndicates.Clear(); + this.m_TeamIndicatePool.ReturnAll(false); + this.m_IndicatesList.Clear(); + } + + public void ChangeWatchToEntity(XEntity e) + { + this._campEntity = e; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleIndicateHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleIndicateHandler.cs.meta new file mode 100644 index 00000000..fb9602fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleIndicateHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 993a18a8d4cbf5943aef9e4d9f7b7fbd +timeCreated: 1611404194 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleIndicator.cs b/Client/Assets/Scripts/XMainClient/UI/BattleIndicator.cs new file mode 100644 index 00000000..fa8dfe01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleIndicator.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal struct BattleIndicator + { + public ulong id; + + public GameObject go; + + public IXUISprite sp; + + public Transform arrow; + + public IXUISprite leader; + + public XGameObject xGameObject; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleIndicator.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleIndicator.cs.meta new file mode 100644 index 00000000..b7502114 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleIndicator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87fc47d5333edbc47b2c4365d0d0975e +timeCreated: 1611404082 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleMain.cs b/Client/Assets/Scripts/XMainClient/UI/BattleMain.cs new file mode 100644 index 00000000..41ccd0fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleMain.cs @@ -0,0 +1,2004 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleMain : DlgBase + { + public BattleSkillHandler SkillHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_SkillHandler; + } + } + + public BattleIndicateHandler IndicateHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_IndicateHandler; + } + } + + public XTeamMonitorHandler TeamMonitor + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_TeamMonitor; + } + } + + public XBattleEnemyInfoHandler EnemyInfoHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_EnemyInfoHandler; + } + } + + public BattleTargetHandler BattleTargetHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_BattleTargetHandler; + } + } + + public XBattleTeamTowerHandler TeamTowerHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_TeamTowerHandler; + } + } + + public IXUILabel WarTimeLabel + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_WarTime; + } + } + + public IXUILabel LeftTimeLabel + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_LeftTime; + } + } + + public BattleDpsHandler DpsHandler + { + get + { + return this.m_DpsHandler; + } + } + + private float _strength_preseved_precent + { + get + { + bool flag = this._current_strength_preseved > this._total_strength_preseved; + if (flag) + { + this._total_strength_preseved = this._current_strength_preseved; + } + return this._current_strength_preseved / this._total_strength_preseved; + } + } + + public override string fileName + { + get + { + return "Battle/BattleDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public static uint _pool_size = 5u; + + private float NoticeTime = 0f; + + private static Color32 _hp_green = new Color32(110, 174, 0, byte.MaxValue); + + private static Color32 _hp_yellow = new Color32(196, 180, 32, byte.MaxValue); + + private static Color32 _hp_red = new Color32(196, 57, 18, byte.MaxValue); + + private static float _fYellow = 0f; + + private static float _fRed = 0f; + + private bool _can_auto_play = false; + + private Vector2 m_DragDistance = Vector2.zero; + + private bool m_CancelRecord = false; + + private bool m_IsRecording = false; + + private uint m_ChatLabelCd = 0u; + + public ProfressionTrialsHandler ProfTrialsHandler; + + public BattleShowInfoHandler m_BattleShowInfoHandler = null; + + private BattleCaptainPVPHandler m_BattleCaptainPVPHandler = null; + + private GuildMinePVPBattleHandler m_GuildMinePVPBattleHandler = null; + + private GuildMinePVPInfoHandler m_GuildMinePVPInfoHandler = null; + + private SkyArenaBattleHandler m_SkyArenaBattleHandler = null; + + private SkyArenaInfoHandler m_SkyArenaInfoHandler = null; + + private AbyssPartyBattleHandler m_AbyssPartyBattleHandler = null; + + public BigMeleeBattleHandler m_BigMeleeBattleHandler = null; + + public BattleFieldBattleHandler m_BattleFieldBattleHandler = null; + + private XOptionsBattleHandler m_XOptionBattleHandler = null; + + private RaceBattleHandler m_RaceBattleHandler = null; + + public GuildMiniReportHandler m_miniReportHandler = null; + + public BattleRiftHandler m_riftHandler = null; + + public GuildBattleMiniRankHandler m_miniRankHandler = null; + + public HeroBattleSkillHandler m_HeroBattleSkillHandler = null; + + public HeroBattleHandler m_HeroBattleHandler = null; + + public MobaBattleHandler m_MobaBattleHandler = null; + + public WeekendPartyHandler m_WeekendPartyHandler = null; + + public BattleStatisticsHandler m_BattleStatisticsHandler = null; + + private BattleDpsHandler m_DpsHandler = null; + + private SceneType sceneType; + + private XLeftTimeCounter leftTimeCounter; + + public XLeftTimeCounter timeConnter; + + private List _notice_collection = new List(); + + private float _notice_duration = 0f; + + private float _notice_pertime = 1f; + + private List _combo_buff_list = new List(); + + private int _combo_buff_to_add = -1; + + private int _combo_buff_added = -1; + + private XBattleDocument _doc; + + private XApolloDocument apolloDoc; + + private uint time_token = 0u; + + public bool SpectateInfoIsShow; + + private XEntity _strength_preseved_entity = null; + + private float _total_strength_preseved = 1f; + + private float _current_strength_preseved = 0f; + + private float _last_check_time = 0f; + + private XTimerMgr.ElapsedEventHandler _showSingleNoticeCb = null; + + private XTimerMgr.ElapsedEventHandler _endBigNoticeCb = null; + + private XTimerMgr.ElapsedEventHandler _endBigNoticeCmdCb = null; + + private XTimerMgr.ElapsedEventHandler _onSwitchToTeamChatCb = null; + + private XTimerMgr.ElapsedEventHandler _hideBattleChatUICb = null; + + private XSwitchSight m_SwitchSight; + + private int _maxHP = 0; + + private int _currentHP = 0; + + private int _maxMP = 0; + + private int _currentMP = 0; + + public XYuyinView _yuyinHandler; + + private int type; + + private float lastPingTime = -60f; + + private float lastDebugUITrigger = -1f; + + private GameObject _big_notice = null; + + private uint _big_notice_timer_token = 0u; + + public BattleMain() + { + this._showSingleNoticeCb = new XTimerMgr.ElapsedEventHandler(this.ShowSingleNotice); + this._endBigNoticeCb = new XTimerMgr.ElapsedEventHandler(this.EndBigNotice); + this._endBigNoticeCmdCb = new XTimerMgr.ElapsedEventHandler(this.EndBigNoticeCmd); + this._onSwitchToTeamChatCb = new XTimerMgr.ElapsedEventHandler(this.OnSwitchToTeamChat); + this._hideBattleChatUICb = new XTimerMgr.ElapsedEventHandler(this.HideBattleChatUI); + BattleMain._fYellow = float.Parse(XSingleton.singleton.GetValue("HP_Yellow")); + BattleMain._fRed = float.Parse(XSingleton.singleton.GetValue("HP_Red")); + } + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XBattleDocument.uuID); + this.apolloDoc = XDocuments.GetSpecificDocument(XApolloDocument.uuID); + this._doc.BattleMainView = this; + bool flag = XSingleton.singleton.Player != null && XSingleton.singleton.Player.Attributes != null; + if (flag) + { + this._doc.FakeTeamAdd(XSingleton.singleton.Player); + } + this.leftTimeCounter = new XLeftTimeCounter(base.uiBehaviour.m_LeftTime, true); + this.timeConnter = new XLeftTimeCounter(base.uiBehaviour.m_WarTime, false); + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA || XSingleton.singleton.SceneType == SceneType.SCENE_HORSE_RACE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING; + if (flag2) + { + (base.uiBehaviour.m_PingFrame.GetComponent("PositionGroup") as IXPositionGroup).SetGroup(1); + base.uiBehaviour.m_RoleInfo.gameObject.SetActive(false); + } + string value = XSingleton.singleton.GetValue("ComboBuff"); + string[] array = value.Split(XGlobalConfig.AllSeparators); + for (int i = 0; i < array.Length; i += 3) + { + ComboBuff comboBuff = new ComboBuff(); + comboBuff.combo = int.Parse(array[i]); + comboBuff.buffID = int.Parse(array[i + 1]); + comboBuff.buffLevel = int.Parse(array[i + 2]); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(comboBuff.buffID, comboBuff.buffLevel); + bool flag3 = buffData != null; + if (flag3) + { + comboBuff.buffName = buffData.BuffName; + } + else + { + XSingleton.singleton.AddErrorLog(string.Format("ComboBuff: Buff data not found: [{0} {1}]", comboBuff.buffID, comboBuff.buffLevel), null, null, null, null, null); + } + this._combo_buff_list.Add(comboBuff); + } + this.SetupHandler(); + } + + private void SetupHandler() + { + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType <= SceneType.SCENE_WEEKEND4V4_DUCK) + { + if (sceneType != SceneType.SCENE_PVP) + { + switch (sceneType) + { + case SceneType.SKYCITY_FIGHTING: + DlgHandlerBase.EnsureCreate(ref this.m_SkyArenaBattleHandler, base.uiBehaviour.m_canvas, true, this); + DlgHandlerBase.EnsureCreate(ref this.m_SkyArenaInfoHandler, base.uiBehaviour.m_canvas, true, null); + break; + case SceneType.SCENE_PROF_TRIALS: + DlgHandlerBase.EnsureCreate(ref this.ProfTrialsHandler, base.uiBehaviour.m_canvas, true, this); + break; + case SceneType.SCENE_GPR: + break; + case SceneType.SCENE_RESWAR_PVP: + DlgHandlerBase.EnsureCreate(ref this.m_GuildMinePVPBattleHandler, base.uiBehaviour.m_canvas, true, null); + DlgHandlerBase.EnsureCreate(ref this.m_GuildMinePVPInfoHandler, base.uiBehaviour.m_canvas, true, null); + break; + default: + switch (sceneType) + { + case SceneType.SCENE_HORSE_RACE: + case SceneType.SCENE_WEEKEND4V4_HORSERACING: + DlgHandlerBase.EnsureCreate(ref this.m_RaceBattleHandler, base.uiBehaviour.m_canvas, true, this); + DlgHandlerBase.EnsureCreate(ref this.m_BattleShowInfoHandler, base.uiBehaviour.m_canvas, true, this); + break; + case SceneType.SCENE_HEROBATTLE: + DlgHandlerBase.EnsureCreate(ref this.m_HeroBattleSkillHandler, base.uiBehaviour.m_canvas, true, this); + DlgHandlerBase.EnsureCreate(ref this.m_HeroBattleHandler, base.uiBehaviour.m_canvas, true, this); + this.m_HeroBattleSkillHandler.HandlerType = 0; + break; + case SceneType.SCENE_CASTLE_WAIT: + case SceneType.SCENE_CASTLE_FIGHT: + DlgHandlerBase.EnsureCreate(ref this.m_miniRankHandler, base.uiBehaviour.m_canvas, true, this); + DlgHandlerBase.EnsureCreate(ref this.m_miniReportHandler, base.uiBehaviour.m_canvas, true, this); + break; + case SceneType.SCENE_ABYSS_PARTY: + DlgHandlerBase.EnsureCreate(ref this.m_AbyssPartyBattleHandler, base.uiBehaviour.m_canvas, true, null); + break; + case SceneType.SCENE_MOBA: + DlgHandlerBase.EnsureCreate(ref this.m_HeroBattleSkillHandler, base.uiBehaviour.m_canvas, true, this); + DlgHandlerBase.EnsureCreate(ref this.m_MobaBattleHandler, base.uiBehaviour.m_canvas, true, this); + this.m_HeroBattleSkillHandler.HandlerType = 2; + break; + case SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT: + case SceneType.SCENE_WEEKEND4V4_GHOSTACTION: + case SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE: + case SceneType.SCENE_WEEKEND4V4_CRAZYBOMB: + case SceneType.SCENE_WEEKEND4V4_DUCK: + DlgHandlerBase.EnsureCreate(ref this.m_WeekendPartyHandler, base.uiBehaviour.m_canvas, true, this); + break; + } + break; + } + } + else + { + DlgHandlerBase.EnsureCreate(ref this.m_BattleCaptainPVPHandler, base.uiBehaviour.m_canvas, true, this); + } + } + else if (sceneType != SceneType.SCENE_BIGMELEE_FIGHT) + { + if (sceneType != SceneType.SCENE_BATTLEFIELD_FIGHT) + { + if (sceneType == SceneType.SCENE_RIFT) + { + DlgHandlerBase.EnsureCreate(ref this.m_riftHandler, base.uiBehaviour.m_canvas, true, this); + } + } + else + { + DlgHandlerBase.EnsureCreate(ref this.m_BattleFieldBattleHandler, base.uiBehaviour.m_canvas, true, this); + } + } + else + { + DlgHandlerBase.EnsureCreate(ref this.m_BigMeleeBattleHandler, base.uiBehaviour.m_canvas, true, this); + } + bool loadSkillHandler = XHeroBattleDocument.LoadSkillHandler; + if (loadSkillHandler) + { + DlgHandlerBase.EnsureCreate(ref this.m_HeroBattleSkillHandler, base.uiBehaviour.m_canvas, true, this); + this.m_HeroBattleSkillHandler.HandlerType = 1; + } + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_avatar.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAvatarClick)); + base.uiBehaviour.m_pause.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPauseClick)); + base.uiBehaviour.m_AutoPlay.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAutoPlay)); + base.uiBehaviour.m_CancelAuto.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAutoPlay)); + base.uiBehaviour.m_AutoPlayTip.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAutoPlayTip)); + base.uiBehaviour.m_HorseRide.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHorseRideClicked)); + this.m_SwitchSight = new XSwitchSight(new ButtonClickEventHandler(this.OnSightSelectClick), base.uiBehaviour.m_25D, base.uiBehaviour.m_3D, base.uiBehaviour.m_3DFree); + base.uiBehaviour.m_BtnDamageStatistics.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleStatisticsClick)); + base.uiBehaviour.m_Sight.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSightClick)); + } + + protected override void OnShow() + { + base.OnShow(); + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + base.uiBehaviour.m_SightSelect.gameObject.SetActive(false); + DlgBase.singleton.Show(true); + DlgBase.singleton.Show(true); + base.uiBehaviour.m_objBossRush.SetActive(XSingleton.singleton.SceneType == SceneType.SCENE_BOSSRUSH); + this.lastPingTime = -60f; + this._combo_buff_to_add = -1; + this._combo_buff_added = -1; + int profID = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.Player.PlayerAttributes.Profession); + base.uiBehaviour.m_avatar.spriteName = XSingleton.singleton.GetProfHeadIcon(profID); + this.SetTencentImage(); + base.uiBehaviour.m_Level.SetText(string.Format("{0}", XSingleton.singleton.XPlayerData.Level)); + base.uiBehaviour.m_Name.SetText(XSingleton.singleton.Player.Name); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.SpectateInfoIsShow = false; + XSpectateSceneDocument specificDocument2 = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + base.uiBehaviour.m_SpectateInfo.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + specificDocument2.GetTargetNum(true); + this.OnSpectateMessageChange(0, 0); + base.uiBehaviour.m_TeamLeader.SetActive(specificDocument.bIsLeader); + base.uiBehaviour.m_AutoPlayBorad.SetVisible(false); + base.uiBehaviour.m_AutoPlayCancelBoard.SetVisible(false); + base.uiBehaviour.m_SkillHandler.SetVisible(true); + base.uiBehaviour.m_IndicateHandler.SetVisible(true); + base.uiBehaviour.m_lblKill.SetVisible(false); + base.uiBehaviour.m_SceneName.SetText(XSingleton.singleton.SceneData.Comment); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData.TimeCounter == null || sceneData.TimeCounter.Length < 1; + if (flag) + { + this.SetTimeRecord(); + } + else + { + bool flag2 = sceneData.TimeCounter[0] == 1; + if (flag2) + { + bool flag3 = sceneData.TimeCounter.Length > 2; + if (flag3) + { + this.SetLeftTime((uint)sceneData.TimeCounter[1], (int)sceneData.TimeCounter[2]); + } + else + { + this.SetLeftTime((uint)sceneData.TimeCounter[1], -1); + } + } + } + XCombatStatisticsDocument specificDocument3 = XDocuments.GetSpecificDocument(XCombatStatisticsDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this.m_DpsHandler, base.uiBehaviour.m_DpsPanel, this, specificDocument3.bShowDps); + bool visible = false; + SeqListRef winCondition = sceneData.WinCondition; + for (int i = 0; i < winCondition.Count; i++) + { + bool flag4 = winCondition[i, 0] == 8; + if (flag4) + { + visible = true; + } + } + base.uiBehaviour.m_lblKill.SetVisible(visible); + this.UpdateKill(0); + this.sceneType = (SceneType)sceneData.type; + SceneType sceneType = this.sceneType; + if (sceneType <= SceneType.SCENE_TOWER) + { + if (sceneType != SceneType.SCENE_BATTLE) + { + switch (sceneType) + { + case SceneType.SCENE_WORLDBOSS: + case SceneType.SCENE_GUILD_BOSS: + base.uiBehaviour.m_WorldBossHandler.SetVisible(true); + break; + case (SceneType)8: + case SceneType.SCENE_BOSSRUSH: + case SceneType.SCENE_GUILD_HALL: + break; + case SceneType.SCENE_PK: + { + XQualifyingDocument specificDocument4 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + bool flag5 = specificDocument4.PkInfoList.Count > 0; + if (flag5) + { + this.SetEnemyRoleInfo(specificDocument4.PkInfoList[0].brief.roleName, specificDocument4.PkInfoList[0].brief.roleLevel); + } + break; + } + case SceneType.SCENE_ABYSSS: + break; + default: + if (sceneType == SceneType.SCENE_TOWER) + { + base.uiBehaviour.m_TeamTowerHandler.SetVisible(true); + } + break; + } + } + } + else if (sceneType <= SceneType.SCENE_GUILD_CAMP) + { + switch (sceneType) + { + case SceneType.SCENE_GODDESS: + case SceneType.SCENE_ENDLESSABYSS: + this.GetTeamLeftTimes(); + break; + case SceneType.SCENE_DRAGON_EXP: + break; + case SceneType.SCENE_RISK: + break; + default: + if (sceneType != SceneType.SCENE_GUILD_CAMP) + { + } + break; + } + } + else if (sceneType != SceneType.SCENE_INVFIGHT) + { + if (sceneType == SceneType.SCENE_CASTLE_WAIT) + { + base.uiBehaviour.m_SkillHandler.SetVisible(false); + } + } + else + { + XPKInvitationDocument specificDocument5 = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + bool flag6 = specificDocument5.PKInfoList.Count > 0; + if (flag6) + { + this.SetEnemyRoleInfo(specificDocument5.PKInfoList[0].roleName, specificDocument5.PKInfoList[0].roleLevel); + } + } + this.SetWinConditionTips(); + this.SetBattleExplainTips(); + XPlayerAttributes xplayerAttributes2 = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + bool flag7 = XSingleton.singleton.CanAutoPlay(XSingleton.singleton.SceneID); + bool flag8 = XSingleton.singleton.XPlayerData.Level < uint.Parse(XSingleton.singleton.GetValue("AutoPlayUnlockLevel")); + base.uiBehaviour.m_AutoPlayContent.SetActive(flag7); + bool flag9 = flag7; + if (flag9) + { + this._can_auto_play = true; + bool flag10 = flag8; + if (flag10) + { + base.uiBehaviour.m_AutoPlayBorad.SetVisible(true); + base.uiBehaviour.m_AutoPlay.SetEnable(false, false); + base.uiBehaviour.m_AutoPlayLock.SetVisible(true); + } + else + { + bool flag11 = this.sceneType == SceneType.SCENE_GODDESS; + if (flag11) + { + base.uiBehaviour.m_AutoPlayCancelBoard.SetVisible(true); + } + else + { + bool autoPlayOn = xplayerAttributes2.AutoPlayOn; + if (autoPlayOn) + { + base.uiBehaviour.m_AutoPlayCancelBoard.SetVisible(true); + } + else + { + base.uiBehaviour.m_AutoPlayBorad.SetVisible(true); + } + } + base.uiBehaviour.m_AutoPlayLock.SetVisible(false); + base.uiBehaviour.m_AutoPlay.SetEnable(true, false); + } + } + else + { + this._can_auto_play = false; + xplayerAttributes2.AutoPlayOn = false; + } + SceneType sceneType2 = this.sceneType; + if (sceneType2 != SceneType.SCENE_ARENA && sceneType2 != SceneType.SCENE_PK && sceneType2 != SceneType.SCENE_INVFIGHT) + { + this.EnemyInfoHandler.InitBoss(); + } + else + { + this.EnemyInfoHandler.InitRole(); + } + XTeamDocument specificDocument6 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag12 = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag12) + { + XBattleCaptainPVPDocument specificDocument7 = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + this.TeamMonitor.InitWhenShowMainUIByBloodList(specificDocument7.TeamBlood); + } + else + { + bool flag13 = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag13) + { + XHeroBattleDocument specificDocument8 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this.TeamMonitor.InitWhenShowMainUIByBloodList(specificDocument8.TeamBlood); + } + else + { + bool flag14 = XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_GHOSTACTION || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_DUCK; + if (flag14) + { + XWeekendPartyDocument specificDocument9 = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + this.TeamMonitor.InitWhenShowMainUIByBloodList(specificDocument9.TeamBlood); + } + else + { + this.TeamMonitor.InitWhenShowMainUIByTeam(specificDocument6.MyTeam); + } + } + } + bool flag15 = XSingleton.singleton.SceneID != 100u && XSingleton.singleton.SceneType != SceneType.SCENE_CALLBACK && (ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)int.Parse(XSingleton.singleton.GetValue("ShowChatLevelBattle"))); + if (flag15) + { + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + showSettingArgs.position = 2; + showSettingArgs.showsettings = false; + showSettingArgs.enablebackclick = true; + showSettingArgs.enabledrag = false; + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + } + base.uiBehaviour.m_StrengthPresevedBar.SetVisible(this._doc.ShowStrengthPresevedBar); + this.RefreshYuyin(); + this.InitView(); + bool flag16 = this.apolloDoc != null; + if (flag16) + { + this.apolloDoc.RequestJoinRoom(); + } + bool flag17 = XSingleton.singleton.SceneType == SceneType.SKYCITY_FIGHTING || XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_FIGHT; + if (flag17) + { + base.uiBehaviour.m_SkyAreanStage.gameObject.SetActive(true); + } + else + { + base.uiBehaviour.m_SkyAreanStage.gameObject.SetActive(false); + } + bool flag18 = (ulong)XSingleton.singleton.SceneID == (ulong)((long)int.Parse(XSingleton.singleton.GetValue("GuildCampHorseSceneID"))); + if (flag18) + { + base.uiBehaviour.m_HorseRide.gameObject.SetActive(true); + } + else + { + base.uiBehaviour.m_HorseRide.gameObject.SetActive(false); + } + base.uiBehaviour.m_GuildMineBuff.gameObject.SetActive(false); + base.uiBehaviour.m_pauseGroup.SetGroup((XSingleton.singleton.SceneType == SceneType.SCENE_MOBA) ? 1 : 0); + base.uiBehaviour.m_3D25D.gameObject.SetActive(XSingleton.singleton.SceneType != SceneType.SCENE_MOBA); + base.uiBehaviour.m_BtnDamageStatistics.SetVisible(sceneData.ShowBattleStatistics); + base.uiBehaviour.m_Menu.Refresh(); + } + + private void InitView() + { + this.SetView(XSingleton.singleton.OperationMode); + } + + public void SetView(XOperationMode mode) + { + bool flag = base.uiBehaviour == null || base.uiBehaviour.m_SightPic == null || base.uiBehaviour.m_SelectPic == null || base.uiBehaviour.m_SightSelect == null; + if (!flag) + { + switch (mode) + { + case XOperationMode.X25D: + base.uiBehaviour.m_SightPic.SetSprite("l_zdicon_1_1"); + base.uiBehaviour.m_SelectPic.SetSprite("l_zdicon_1_1"); + break; + case XOperationMode.X3D: + base.uiBehaviour.m_SightPic.SetSprite("l_zdicon_1_0"); + base.uiBehaviour.m_SelectPic.SetSprite("l_zdicon_1_0"); + break; + case XOperationMode.X3D_Free: + base.uiBehaviour.m_SightPic.SetSprite("l_zdicon_1_2"); + base.uiBehaviour.m_SelectPic.SetSprite("l_zdicon_1_2"); + break; + } + base.uiBehaviour.m_SightPic.MakePixelPerfect(); + base.uiBehaviour.m_SelectPic.MakePixelPerfect(); + base.uiBehaviour.m_SightSelect.gameObject.SetActive(false); + } + } + + private void SetStartAutoPlay() + { + this.SetAutoPlay(true); + } + + private void GetTeamLeftTimes() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + + private void SetWinConditionTips() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData == null || string.IsNullOrEmpty(sceneData.WinConditionTips); + if (flag) + { + base.uiBehaviour.m_winConditionTips.SetVisible(false); + } + else + { + base.uiBehaviour.m_winConditionTips.SetVisible(true); + string text = sceneData.WinConditionTips.Replace("/n", "\n"); + base.uiBehaviour.m_winConditionTips.SetText(text); + } + } + + private void SetBattleExplainTips() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData == null || string.IsNullOrEmpty(sceneData.BattleExplainTips); + if (flag) + { + base.uiBehaviour.m_BattleExplainTips.SetVisible(false); + } + else + { + base.uiBehaviour.m_BattleExplainTips.SetVisible(true); + string text = XSingleton.singleton.ReplaceReturn(sceneData.BattleExplainTips); + base.uiBehaviour.m_BattleExplainTips.SetText(text); + } + } + + public void SetTeamLeftTimes() + { + base.uiBehaviour.m_leftTimes.SetVisible(true); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData.type == 20; + if (flag) + { + int dayCount = specificDocument.GetDayCount(TeamLevelType.TeamLevelGoddessTrial, null); + int dayMaxCount = specificDocument.GetDayMaxCount(TeamLevelType.TeamLevelGoddessTrial, null); + base.uiBehaviour.m_leftTimes.SetText(string.Format("{0}({1}/{2})", XStringDefineProxy.GetString("GODDESS_NAME"), dayMaxCount - dayCount, dayMaxCount)); + } + else + { + bool flag2 = sceneData.type == 23; + if (flag2) + { + int dayCount = specificDocument.GetDayCount(TeamLevelType.TeamLevelEndlessAbyss, null); + int dayMaxCount = specificDocument.GetDayMaxCount(TeamLevelType.TeamLevelEndlessAbyss, null); + base.uiBehaviour.m_leftTimes.SetText(string.Format("{0}({1}/{2})", XStringDefineProxy.GetString("EndlessAbyss"), dayMaxCount - dayCount, dayMaxCount)); + } + else + { + base.uiBehaviour.m_leftTimes.SetVisible(false); + } + } + } + + protected override void OnLoad() + { + this._maxHP = 0; + this._currentHP = 0; + this._maxMP = 0; + this._currentMP = 0; + base.OnLoad(); + DlgHandlerBase.EnsureCreate(ref this._yuyinHandler, base.uiBehaviour.transform, true, this); + } + + protected override void OnHide() + { + base.uiBehaviour.m_SkillHandler.SetVisible(false); + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.Show(false); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.Show(false); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.SetVisible(false, true); + } + this._maxHP = 0; + this._currentHP = 0; + this._maxMP = 0; + this._currentMP = 0; + base.OnHide(); + } + + protected override void OnUnload() + { + this.m_uiBehaviour.m_txtHead.SetTexturePath(""); + DlgHandlerBase.EnsureUnload(ref this.m_BattleShowInfoHandler); + DlgHandlerBase.EnsureUnload(ref this.m_BattleCaptainPVPHandler); + DlgHandlerBase.EnsureUnload(ref this.m_GuildMinePVPBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_GuildMinePVPInfoHandler); + DlgHandlerBase.EnsureUnload(ref this.m_SkyArenaBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_SkyArenaInfoHandler); + DlgHandlerBase.EnsureUnload(ref this.m_AbyssPartyBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_BigMeleeBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_BattleFieldBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_XOptionBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_RaceBattleHandler); + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_WorldBossHandler); + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_SkillHandler); + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_IndicateHandler); + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_TeamMonitor); + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_EnemyInfoHandler); + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_PlayerBuffMonitorHandler); + DlgHandlerBase.EnsureUnload(ref this.ProfTrialsHandler); + DlgHandlerBase.EnsureUnload(ref this.m_DpsHandler); + DlgHandlerBase.EnsureUnload(ref this._yuyinHandler); + DlgHandlerBase.EnsureUnload(ref this.m_HeroBattleSkillHandler); + DlgHandlerBase.EnsureUnload(ref this.m_HeroBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_MobaBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_miniReportHandler); + DlgHandlerBase.EnsureUnload(ref this.m_miniRankHandler); + DlgHandlerBase.EnsureUnload(ref this.m_riftHandler); + DlgHandlerBase.EnsureUnload(ref this.m_WeekendPartyHandler); + DlgHandlerBase.EnsureUnload(ref this.m_BattleStatisticsHandler); + this._doc.BattleMainView = null; + bool flag = this.apolloDoc != null; + if (flag) + { + this.apolloDoc.QuitRoom(); + } + this.ClearBigNotice(); + base.OnUnload(); + } + + private void RefreshYuyin() + { + this.type = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.SceneType); + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Refresh(this.type); + } + } + + public void RefreshYuyin(ulong uid) + { + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Refresh(this.type); + } + } + + private void SetEnemyRoleInfo(string name, uint level) + { + } + + private bool OnTailToBackClick(IXUIButton go) + { + XSingleton.singleton.GameCamera.Tail.TailToBack(); + return true; + } + + private bool OnPauseClick(IXUIButton go) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag2 = sceneData != null; + if (flag2) + { + bool canPause = sceneData.CanPause; + if (canPause) + { + XSingleton.singleton.Pause = true; + } + } + bool flag3 = this.m_XOptionBattleHandler == null; + if (flag3) + { + bool flag4 = base.uiBehaviour != null; + if (flag4) + { + DlgHandlerBase.EnsureCreate(ref this.m_XOptionBattleHandler, base.uiBehaviour.m_canvas, true, this); + } + } + bool flag5 = this.m_XOptionBattleHandler != null && !this.m_XOptionBattleHandler.IsVisible(); + if (flag5) + { + this.m_XOptionBattleHandler.ShowUI(); + } + this.sceneType = XSingleton.singleton.SceneType; + result = true; + } + return result; + } + + private void OnAvatarClick(IXUISprite go) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + DlgBase.singleton.SetVisible(!flag2, true); + } + } + + public void SetTencentImage() + { + bool flag = XSingleton.singleton.playerInfo != null; + if (flag) + { + string pictureLarge = XSingleton.singleton.playerInfo.data.pictureLarge; + XSingleton.singleton.Load(pictureLarge, this.m_uiBehaviour.m_txtHead, this.m_uiBehaviour); + } + else + { + XSingleton.singleton.Load(string.Empty, this.m_uiBehaviour.m_txtHead, this.m_uiBehaviour); + } + XPrerogativeDocument specificDocument = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + XSingleton.singleton.ParseHeadIcon(specificDocument.PlayerSetid, base.uiBehaviour.m_sprFrame); + } + + private bool OnBussrushPauseClick(IXUIButton btn) + { + XSingleton.singleton.ReqLeaveScene(); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public void ShowBossrushQuit() + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string @string = XStringDefineProxy.GetString("BOSSRUSH_QUIT"); + string string2 = XStringDefineProxy.GetString("COMMON_OK"); + string string3 = XStringDefineProxy.GetString("COMMON_CANCEL"); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnBussrushPauseClick), null); + } + + private void UpdatePlayerInfo() + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData != null; + if (flag) + { + int num = (int)xplayerData.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + int num2 = (int)xplayerData.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + int num3 = (int)xplayerData.GetAttr(XAttributeDefine.XAttr_MaxMP_Total); + int num4 = (int)xplayerData.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + bool flag2 = num2 < 0; + if (flag2) + { + num2 = 0; + } + float num5 = (float)num2 / (float)num; + base.uiBehaviour.m_Hpbar.SetFillAmount(num5); + float fillAmount = (float)num4 / (float)num3; + base.uiBehaviour.m_Mpbar.SetFillAmount(fillAmount); + bool flag3 = this._currentHP != num2 || this._maxHP != num; + if (flag3) + { + base.uiBehaviour.m_HpText.SetText(string.Format("{0}/{1}", num2, num)); + this._currentHP = num2; + this._maxHP = num; + } + bool flag4 = this._currentMP != num4 || this._maxMP != num3; + if (flag4) + { + base.uiBehaviour.m_MpText.SetText(string.Format("{0}/{1}", num4, num3)); + this._currentMP = num4; + this._maxMP = num3; + } + Color color; + bool active; + BattleMain.GetHPColor(num5, out color, out active); + base.uiBehaviour.m_LowHP.SetActive(active); + } + } + + public static void GetHPColor(float hpPercent, out Color color, out bool bLowHP) + { + bool flag = hpPercent > BattleMain._fYellow; + if (flag) + { + color = BattleMain._hp_green; + bLowHP = false; + } + else + { + bool flag2 = hpPercent <= BattleMain._fYellow && hpPercent > BattleMain._fRed; + if (flag2) + { + color = BattleMain._hp_yellow; + bLowHP = false; + } + else + { + color = BattleMain._hp_red; + bLowHP = true; + } + } + } + + public void OnPlayerBuffChange() + { + base.uiBehaviour.m_PlayerBuffMonitorHandler.OnBuffChanged(XSingleton.singleton.Player.Buffs.GetUIBuffList()); + } + + public override void OnUpdate() + { + base.uiBehaviour.m_SkillHandler.OnUpdate(); + bool flag = !XSingleton.singleton.NeedFixedUpdate; + if (!flag) + { + base.OnUpdate(); + bool flag2 = this.lastDebugUITrigger > 0f; + if (flag2) + { + this.lastDebugUITrigger -= Time.deltaTime; + } + bool flag3 = this.lastDebugUITrigger <= 0f && Input.GetKey((KeyCode)285); + if (flag3) + { + DlgBase.singleton.Toggle(); + this.lastDebugUITrigger = 0.05f; + } + bool key = Input.GetKey((KeyCode)96); + if (key) + { + bool flag4 = Input.GetKey((KeyCode)256) || Input.GetKey((KeyCode)48); + if (flag4) + { + XSingleton.singleton.CustomCommand(0); + } + bool flag5 = Input.GetKey((KeyCode)257) || Input.GetKey((KeyCode)49); + if (flag5) + { + XSingleton.singleton.CustomCommand(1); + } + bool flag6 = Input.GetKey((KeyCode)258) || Input.GetKey((KeyCode)50); + if (flag6) + { + XSingleton.singleton.CustomCommand(2); + } + bool flag7 = Input.GetKey((KeyCode)259) || Input.GetKey((KeyCode)51); + if (flag7) + { + XSingleton.singleton.CustomCommand(3); + } + bool flag8 = Input.GetKey((KeyCode)260) || Input.GetKey((KeyCode)52); + if (flag8) + { + XSingleton.singleton.CustomCommand(4); + } + bool flag9 = Input.GetKey((KeyCode)261) || Input.GetKey((KeyCode)53); + if (flag9) + { + XSingleton.singleton.CustomCommand(5); + } + bool flag10 = Input.GetKey((KeyCode)262) || Input.GetKey((KeyCode)54); + if (flag10) + { + XSingleton.singleton.CustomCommand(6); + } + bool flag11 = Input.GetKey((KeyCode)263) || Input.GetKey((KeyCode)55); + if (flag11) + { + XSingleton.singleton.CustomCommand(7); + } + bool flag12 = Input.GetKey((KeyCode)264) || Input.GetKey((KeyCode)56); + if (flag12) + { + XSingleton.singleton.CustomCommand(8); + } + bool flag13 = Input.GetKey((KeyCode)265) || Input.GetKey((KeyCode)57); + if (flag13) + { + XSingleton.singleton.CustomCommand(9); + } + } + this.UpdatePlayerInfo(); + this.UpdateWifi(); + bool flag14 = Time.unscaledTime - this.lastPingTime > 60f || this.lastPingTime < 0f; + if (flag14) + { + this.RefreshPing(); + this.lastPingTime = Time.unscaledTime; + } + base.uiBehaviour.m_IndicateHandler.OnUpdate(); + bool flag15 = Time.time - this._last_check_time > 5f; + if (flag15) + { + this._last_check_time = Time.time; + this._doc.SendCheckTime(); + } + this.UpdateTime(); + this.UpdateLeftTime(); + bool flag16 = this.NoticeTime > 0f; + if (flag16) + { + bool flag17 = Time.time - this.NoticeTime > this._notice_duration; + if (flag17) + { + base.uiBehaviour.m_NoticeFrame.transform.localPosition = XGameUI.Far_Far_Away; + this.NoticeTime = 0f; + } + } + bool active = base.uiBehaviour.m_WorldBossHandler.active; + if (active) + { + base.uiBehaviour.m_WorldBossHandler.OnUpdate(); + } + IXGameSirControl gameSirControl = XSingleton.singleton.GameSirControl; + bool flag18 = gameSirControl != null && gameSirControl.IsConnected() && gameSirControl.GetButton(XGameSirKeyCode.BTN_THUMBR); + if (flag18) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + int num = specificDocument.GetValue(XOptionsDefine.OD_VIEW) + 1; + int num2 = XFastEnumIntEqualityComparer.ToInt(XOperationMode.X3D_Free); + bool flag19 = num > num2; + if (flag19) + { + num = XFastEnumIntEqualityComparer.ToInt(XOperationMode.X25D); + } + specificDocument.SetValue(XOptionsDefine.OD_VIEW, num, false); + specificDocument.SetBattleOptionValue(); + this.SetView((XOperationMode)num); + } + this.TeamMonitor.OnUpdate(); + this.EnemyInfoHandler.OnUpdate(); + base.uiBehaviour.m_PlayerBuffMonitorHandler.OnUpdate(); + bool flag20 = this._combo_buff_to_add > this._combo_buff_added; + if (flag20) + { + ComboBuff comboBuff = this._combo_buff_list[this._combo_buff_to_add]; + XBuff buffByID = XSingleton.singleton.Player.Buffs.GetBuffByID(comboBuff.buffID); + bool flag21 = buffByID != null; + if (flag21) + { + this._combo_buff_added = this._combo_buff_to_add; + this._combo_buff_to_add = -1; + } + } + bool flag22 = this._combo_buff_added >= 0; + if (flag22) + { + ComboBuff comboBuff2 = this._combo_buff_list[this._combo_buff_added]; + XBuff buffByID2 = XSingleton.singleton.Player.Buffs.GetBuffByID(comboBuff2.buffID); + bool flag23 = buffByID2 != null; + if (flag23) + { + float leftTime = buffByID2.GetLeftTime(); + Color comboQuality = this.GetComboQuality(this._combo_buff_added + 1); + base.uiBehaviour.m_ComboBuffName.SetText(comboBuff2.buffName); + base.uiBehaviour.m_ComboBuffName.SetColor(comboQuality); + base.uiBehaviour.m_ComboBuffTime.gameObject.SetActive(true); + bool flag24 = leftTime != -1f; + if (flag24) + { + base.uiBehaviour.m_ComboBuffTime.value = leftTime / buffByID2.Duration; + } + else + { + base.uiBehaviour.m_ComboBuffTime.value = 1f; + } + } + else + { + this._combo_buff_added = -1; + base.uiBehaviour.m_ComboBuffTime.gameObject.SetActive(false); + } + } + else + { + base.uiBehaviour.m_ComboBuffTime.gameObject.SetActive(false); + } + bool flag25 = base.uiBehaviour.m_StrengthPresevedBar.IsVisible(); + if (flag25) + { + this.RefreshStrengthPresevedBar(); + } + } + } + + protected Color GetComboQuality(int quality) + { + Color result; + switch (quality) + { + case 1: + result = new Color32(0, byte.MaxValue, 18, byte.MaxValue); + break; + case 2: + result = new Color32(0, 228, byte.MaxValue, byte.MaxValue); + break; + case 3: + result = new Color32(byte.MaxValue, 180, 0, byte.MaxValue); + break; + case 4: + result = new Color32(252, 0, byte.MaxValue, byte.MaxValue); + break; + default: + result = new Color32(252, 0, byte.MaxValue, byte.MaxValue); + break; + } + return result; + } + + private void UpdateWifi() + { + XSingleton.singleton.UpdateWifi(null, this.m_uiBehaviour.m_sprwifi); + } + + private void RefreshPing() + { + XSingleton.singleton.RefreshPing(base.uiBehaviour.m_lblTime, base.uiBehaviour.m_sliderBattery, base.uiBehaviour.m_lblfree); + } + + public void RefreshBossRush() + { + XBossBushDocument xbossBushDocument = XSingleton.singleton.Doc.GetXComponent(XBossBushDocument.uuID) as XBossBushDocument; + bool flag = xbossBushDocument != null && XSingleton.singleton.SceneType == SceneType.SCENE_BOSSRUSH; + if (flag) + { + this.m_uiBehaviour.m_sprBuff1.SetSprite(xbossBushDocument.bossBuff1Row.icon); + this.m_uiBehaviour.m_sprBuff2.SetSprite(xbossBushDocument.bossBuff2Row.icon); + this.m_uiBehaviour.m_lblBuff1.SetText(xbossBushDocument.bossBuff1Row.Comment); + this.m_uiBehaviour.m_lblBuff2.SetText(xbossBushDocument.bossBuff2Row.Comment); + int quality = xbossBushDocument.bossBuff1Row.Quality; + int quality2 = xbossBushDocument.bossBuff2Row.Quality; + string value = XSingleton.singleton.GetValue("Quality" + quality + "Color"); + string value2 = XSingleton.singleton.GetValue("Quality" + quality2 + "Color"); + this.m_uiBehaviour.m_sprBuff1.SetColor(XSingleton.singleton.ParseColor(value, 0)); + this.m_uiBehaviour.m_sprBuff2.SetColor(XSingleton.singleton.ParseColor(value2, 0)); + this.m_uiBehaviour.m_lblBuff1.SetColor(XSingleton.singleton.ParseColor(value, 0)); + this.m_uiBehaviour.m_lblBuff2.SetColor(XSingleton.singleton.ParseColor(value2, 0)); + base.uiBehaviour.m_lblTitle.SetText(XStringDefineProxy.GetString("BOSSRUSH_FIGHT", new object[] + { + xbossBushDocument.respData.currank + }) + " " + DlgBase.singleton.bossName); + base.uiBehaviour.m_rwdpool.ReturnAll(false); + for (int i = 0; i < xbossBushDocument.bossRushRow.reward.Count; i++) + { + uint itemid = xbossBushDocument.bossRushRow.reward[i, 0]; + uint num = xbossBushDocument.bossRushRow.reward[i, 1]; + GameObject gameObject = base.uiBehaviour.m_rwdpool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)itemid, (int)(num * xbossBushDocument.rwdRate), false); + bool flag2 = i < 2; + if (flag2) + { + gameObject.transform.localPosition = new Vector3((float)(10 + 100 * i), 0f, 0f); + } + else + { + gameObject.transform.localPosition = new Vector3((float)(10 + 100 * (i - 2)), -100f, 0f); + } + } + base.uiBehaviour.m_sprBossbg.spriteHeight = ((xbossBushDocument.bossRushRow.reward.Count > 2) ? 207 : 137); + } + } + + public void UpdateKill(int cnt) + { + bool flag = base.IsVisible(); + if (flag) + { + string @string = XStringDefineProxy.GetString("SMALLMONSTER_KILL"); + base.uiBehaviour.m_lblKill.SetText(string.Format(XStringDefineProxy.GetString("SMALLMONSTER_KILL"), cnt)); + } + } + + public void OnComboChange(uint combo) + { + bool flag = combo > 0u; + if (flag) + { + this.m_uiBehaviour.m_ComboFrame.transform.localPosition = Vector3.zero; + this.m_uiBehaviour.m_ComboText.SetText(combo.ToString()); + IXUITweenTool comboBgTween = this.m_uiBehaviour.m_ComboBgTween; + comboBgTween.PlayTween(true, -1f); + bool hasComboBuff = XSingleton.singleton.SceneData.HasComboBuff; + if (hasComboBuff) + { + int num = -1; + bool flag2 = (ulong)combo < (ulong)((long)this._combo_buff_list[0].combo); + if (flag2) + { + num = -1; + } + else + { + bool flag3 = (ulong)combo > (ulong)((long)this._combo_buff_list[this._combo_buff_list.Count - 1].combo); + if (flag3) + { + num = -1; + } + else + { + for (int i = 0; i < this._combo_buff_list.Count - 1; i++) + { + bool flag4 = (ulong)combo == (ulong)((long)this._combo_buff_list[i].combo); + if (flag4) + { + num = i; + break; + } + } + } + } + bool flag5 = num >= 0 && num <= this._combo_buff_list.Count - 1; + if (flag5) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc.BuffID = this._combo_buff_list[num].buffID; + @event.xBuffDesc.BuffLevel = this._combo_buff_list[num].buffLevel; + @event.Firer = XSingleton.singleton.Player; + @event.xBuffDesc.CasterID = XSingleton.singleton.Player.ID; + XSingleton.singleton.FireEvent(@event); + this._combo_buff_to_add = num; + } + else + { + base.uiBehaviour.m_ComboBuffTime.gameObject.SetActive(false); + } + } + else + { + base.uiBehaviour.m_ComboBuffTime.gameObject.SetActive(false); + } + } + else + { + this.m_uiBehaviour.m_ComboFrame.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + } + } + + public void ShowNotice(string text, float duration, float pertime = 1f) + { + this._notice_collection.Clear(); + string[] array = text.Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + this._notice_collection.Add(array[i]); + } + this._notice_duration = duration; + this._notice_pertime = pertime; + bool flag = this.time_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.time_token); + this.time_token = 0u; + } + bool flag2 = this._notice_collection.Count > 0; + if (flag2) + { + this.ShowSingleNotice(0); + } + } + + protected void ShowSingleNotice(object o) + { + int num = (int)o; + bool flag = num < this._notice_collection.Count; + if (flag) + { + string text = this._notice_collection[num]; + base.uiBehaviour.m_Notice.SetText(text); + base.uiBehaviour.m_NoticeFrame.transform.localPosition = base.uiBehaviour.m_NoticePos; + this.NoticeTime = Time.time; + this.time_token = XSingleton.singleton.SetTimer(this._notice_pertime, this._showSingleNoticeCb, num + 1); + bool flag2 = num == this._notice_collection.Count - 1; + if (flag2) + { + this._notice_collection.Clear(); + } + } + } + + public void StopNotice() + { + bool flag = this.time_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.time_token); + this.time_token = 0u; + } + base.uiBehaviour.m_NoticeFrame.transform.localPosition = XGameUI.Far_Far_Away; + } + + public void ShowSkillRemainingCD(string skillName, float time) + { + this.ShowBigNotice(XStringDefineProxy.GetString("SkillRemainingCD", new object[] + { + skillName, + time.ToString() + }), false); + } + + public void ShowBigNotice(string text, bool bCmd) + { + bool flag = !base.IsVisible(); + if (!flag) + { + XSingleton.singleton.KillTimer(this._big_notice_timer_token); + bool flag2 = this._big_notice == null; + if (flag2) + { + this._big_notice = (XSingleton.singleton.CreateFromPrefab("UI/Common/TutorialButtomText", true, false) as GameObject); + this._big_notice.transform.parent = base.uiBehaviour.transform; + this._big_notice.transform.localPosition = Vector3.zero; + this._big_notice.transform.localScale = Vector3.one; + } + IXUILabel ixuilabel = this._big_notice.transform.Find("TutorialText").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + IXUITweenTool ixuitweenTool = this._big_notice.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + if (bCmd) + { + this._big_notice_timer_token = XSingleton.singleton.SetTimer(5f, this._endBigNoticeCmdCb, null); + } + else + { + this._big_notice_timer_token = XSingleton.singleton.SetTimer(3f, this._endBigNoticeCb, null); + } + } + } + + protected void EndBigNotice(object o) + { + bool flag = this._big_notice != null; + if (flag) + { + XResourceLoaderMgr.SafeDestroy(ref this._big_notice, true); + } + this._big_notice_timer_token = 0u; + } + + protected void EndBigNoticeCmd(object o) + { + bool flag = this._big_notice != null; + if (flag) + { + XResourceLoaderMgr.SafeDestroy(ref this._big_notice, true); + XSingleton.singleton.ExecuteNextCmd(); + } + this._big_notice_timer_token = 0u; + } + + protected void ClearBigNotice() + { + bool flag = this._big_notice != null; + if (flag) + { + XResourceLoaderMgr.SafeDestroy(ref this._big_notice, true); + } + XSingleton.singleton.KillTimer(this._big_notice_timer_token); + this._big_notice_timer_token = 0u; + } + + public void ShowAutoReviveFrame(int time, uint cost, uint costType) + { + bool flag = base.uiBehaviour.m_WorldBossHandler != null && base.uiBehaviour.m_WorldBossHandler.active; + if (flag) + { + base.uiBehaviour.m_WorldBossHandler.SetAutoRevive(time, cost, costType); + } + } + + public void OnPlayerRevive() + { + bool flag = base.uiBehaviour.m_WorldBossHandler != null && base.uiBehaviour.m_WorldBossHandler.active; + if (flag) + { + base.uiBehaviour.m_WorldBossHandler.HideAutoRevive(); + } + base.uiBehaviour.m_LowHP.SetActive(false); + } + + public float GetLeftTime() + { + return this.leftTimeCounter.GetFloatLeftTime(); + } + + public void HideLeftTime() + { + this.timeConnter.SetLeftTime(0f, -1); + this.leftTimeCounter.SetLeftTime(0f, -1); + base.uiBehaviour.m_LeftTime.SetVisible(false); + base.uiBehaviour.m_WarTime.SetVisible(false); + } + + public void SetLeftTime(uint seconds, int noticeTime = -1) + { + base.uiBehaviour.m_LeftTime.SetVisible(true); + this.leftTimeCounter.SetLeftTime(seconds, noticeTime); + base.uiBehaviour.m_WarTime.SetVisible(false); + } + + public void SetTimeRecord() + { + base.uiBehaviour.m_WarTime.SetVisible(true); + this.timeConnter.SetForward(1); + this.timeConnter.SetLeftTime(0.01f, -1); + base.uiBehaviour.m_LeftTime.SetVisible(false); + } + + public void ResetLeftTime(int seconds) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData.TimeCounter == null || sceneData.TimeCounter.Length < 1; + if (flag) + { + this.timeConnter.SetLeftTime((float)seconds, -1); + } + else + { + bool flag2 = sceneData.TimeCounter[0] == 1; + if (flag2) + { + this.leftTimeCounter.SetLeftTime((float)((int)sceneData.TimeCounter[1] - seconds), -1); + } + } + } + + private void UpdateLeftTime() + { + bool sceneStarted = XSingleton.singleton.SceneStarted; + if (sceneStarted) + { + this.leftTimeCounter.Update(); + } + } + + private void UpdateTime() + { + bool sceneStarted = XSingleton.singleton.SceneStarted; + if (sceneStarted) + { + this.timeConnter.Update(); + } + } + + public void OnSwitchToTeamChat(object obj) + { + DlgBase.singleton.SelectChatTeam(); + } + + public void OnVoiceButtonDrag(IXUIButton sp, Vector2 delta) + { + this.m_DragDistance += delta; + bool flag = this.m_DragDistance.magnitude >= 100f; + if (flag) + { + this.m_CancelRecord = true; + } + else + { + this.m_CancelRecord = false; + } + } + + public void OnVoiceButton(IXUIButton sp, bool state) + { + if (state) + { + XSingleton.singleton.AddLog("Press down", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_DragDistance = Vector2.zero; + this.m_IsRecording = true; + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, null); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, null); + } + } + else + { + XSingleton.singleton.AddLog("Press up", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_IsRecording = false; + DlgBase.singleton.SetActiveChannel(ChatChannelType.Team); + bool useApollo2 = XChatDocument.UseApollo; + if (useApollo2) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + } + } + + public void OnStopVoiceRecord() + { + bool isRecording = this.m_IsRecording; + if (isRecording) + { + DlgBase.singleton.SetActiveChannel(ChatChannelType.Team); + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + this.m_IsRecording = false; + } + } + + public bool OnCommandBtnClick(IXUIButton btn) + { + return true; + } + + public bool OnAutoPlay(IXUIButton sp) + { + bool flag = !base.IsLoaded(); + return flag || this.SetAutoPlay(sp.ID == 1UL); + } + + private bool OnHorseRideClicked(IXUIButton btn) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + specificDocument.ReqRecentMount(); + result = true; + } + return result; + } + + private bool SetAutoPlay(bool isAuto) + { + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + xplayerAttributes.AutoPlayOn = isAuto; + XAIComponent ai = XSingleton.singleton.Player.AI; + bool flag = ai != null && !XSingleton.singleton.bSpectator; + if (flag) + { + XAIEnableAI @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + @event.Enable = isAuto; + @event.Puppet = false; + XSingleton.singleton.FireEvent(@event); + } + bool autoPlayOn = xplayerAttributes.AutoPlayOn; + if (autoPlayOn) + { + base.uiBehaviour.m_AutoPlayBorad.SetVisible(false); + base.uiBehaviour.m_AutoPlayCancelBoard.SetVisible(true); + XSingleton.singleton.ShowSystemNoticeTip(XStringDefineProxy.GetString("AutoPlayNotice")); + } + else + { + base.uiBehaviour.m_AutoPlayBorad.SetVisible(true); + base.uiBehaviour.m_AutoPlayCancelBoard.SetVisible(false); + } + return true; + } + + private void OnAutoPlayTip(IXUISprite go) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_ARENA; + if (flag2) + { + XSingleton.singleton.ShowSystemNoticeTip(XStringDefineProxy.GetString("ArenaAutoFight")); + } + else + { + XSingleton.singleton.ShowSystemNoticeTip(string.Format(XStringDefineProxy.GetString("AutoFightOpenLevel"), XSingleton.singleton.GetValue("AutoPlayUnlockLevel"))); + } + } + } + + private bool OnBattleStatisticsClick(IXUIButton btn) + { + bool flag = base.uiBehaviour == null; + bool result; + if (flag) + { + result = true; + } + else + { + DlgHandlerBase.EnsureCreate(ref this.m_BattleStatisticsHandler, base.uiBehaviour.m_canvas.transform, this.m_BattleStatisticsHandler == null || !this.m_BattleStatisticsHandler.IsVisible(), this); + result = true; + } + return result; + } + + public void ShowBattleVoice(ChatVoiceInfo info) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.m_ChatLabelCd = XSingleton.singleton.SetTimer((float)info.voiceTime + 2f, this._hideBattleChatUICb, info); + } + } + + public void HideBattleChatUI(object info) + { + this.m_ChatLabelCd = 0u; + } + + public void ShowCountDownFrame(bool status) + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_CountDownFrame.gameObject.SetActive(true); + base.uiBehaviour.m_CountDownTimeFrame.gameObject.SetActive(status); + base.uiBehaviour.m_CountDownBeginFrame.gameObject.SetActive(!status); + (base.uiBehaviour.m_CountDownTimeFrame.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool).PlayTween(status, -1f); + (base.uiBehaviour.m_CountDownBeginFrame.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool).PlayTween(!status, -1f); + } + } + + public void SetAutoPlayUI(bool isInAutoPlay) + { + bool flag = !this._can_auto_play; + if (!flag) + { + this.SetAutoPlay(isInAutoPlay); + } + } + + public void OnPlaySuperarmorFx(XEntity enemy, bool bBroken) + { + for (int i = 0; i < this.EnemyInfoHandler.EnemyList.Count; i++) + { + bool flag = this.EnemyInfoHandler.EnemyList[i].Entity == enemy; + if (flag) + { + this.EnemyInfoHandler.EnemyList[i].SetSuperArmorState(bBroken); + break; + } + } + } + + public void OnStopSuperarmorFx(XEntity enemy) + { + for (int i = 0; i < this.EnemyInfoHandler.EnemyList.Count; i++) + { + bool flag = this.EnemyInfoHandler.EnemyList[i].Entity == enemy; + if (flag) + { + this.EnemyInfoHandler.EnemyList[i].StopSuperArmorFx(); + break; + } + } + } + + public void OnProjectDamage(ProjectDamageResult damage, XEntity entity) + { + for (int i = 0; i < this.EnemyInfoHandler.EnemyList.Count; i++) + { + bool flag = this.EnemyInfoHandler.EnemyList[i].Entity == entity; + if (flag) + { + bool flag2 = damage.Caster == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.EnemyInfoHandler.EnemyList[i].OnBeHit(damage); + } + break; + } + } + } + + public void SetupSpeedFx(XEntity enemy, bool enable, Color c) + { + for (int i = 0; i < this.EnemyInfoHandler.EnemyList.Count; i++) + { + bool flag = this.EnemyInfoHandler.EnemyList[i].Entity == enemy; + if (flag) + { + IXUISprite uiSuperArmorSpeedFx = this.EnemyInfoHandler.EnemyList[i].m_uiSuperArmorSpeedFx; + uiSuperArmorSpeedFx.gameObject.SetActive(enable); + uiSuperArmorSpeedFx.SetColor(c); + break; + } + } + } + + public void ShowStrengthPresevedBar(XEntity entity) + { + base.uiBehaviour.m_StrengthPresevedBar.SetVisible(true); + this._strength_preseved_entity = entity; + this._total_strength_preseved = (float)this._strength_preseved_entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentXULI_Basic); + this._current_strength_preseved = this._total_strength_preseved; + this.RefreshStrengthPresevedBar(); + } + + public void HideStrengthPresevedBar() + { + base.uiBehaviour.m_StrengthPresevedBar.SetVisible(false); + this._strength_preseved_entity = null; + this._total_strength_preseved = 1f; + this._current_strength_preseved = 0f; + } + + public void RefreshStrengthPresevedBar() + { + bool flag = this._strength_preseved_entity != null && this._strength_preseved_entity.Attributes != null; + if (flag) + { + this._current_strength_preseved = (float)this._strength_preseved_entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentXULI_Basic); + } + bool flag2 = base.uiBehaviour != null && base.uiBehaviour.m_StrengthPresevedBar != null; + if (flag2) + { + base.uiBehaviour.m_StrengthPresevedBar.value = this._strength_preseved_precent; + } + } + + public void SetTargetTabVisable(bool status) + { + } + + public void OnTargetTabClick(IXUISprite sp) + { + } + + public bool OnSightSelectClick(IXUIButton sp) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + this.SetView((XOperationMode)sp.ID); + result = true; + } + return result; + } + + public bool OnSightClick(IXUIButton sp) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = base.uiBehaviour == null || base.uiBehaviour.m_SightSelect == null; + if (flag2) + { + result = false; + } + else + { + bool activeSelf = base.uiBehaviour.m_SightSelect.gameObject.activeSelf; + if (activeSelf) + { + base.uiBehaviour.m_SightSelect.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_SightSelect.gameObject.SetActive(true); + } + result = true; + } + } + return result; + } + + public void OnSpectateMessageChange(int watchNum, int commendNum) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool spectateInfoIsShow = this.SpectateInfoIsShow; + if (spectateInfoIsShow) + { + base.uiBehaviour.m_WatchNum.SetText(watchNum.ToString()); + base.uiBehaviour.m_CommendNum.SetText(commendNum.ToString()); + } + else + { + bool flag = watchNum >= specificDocument.WatchTarget || commendNum >= specificDocument.CommendTarget; + if (flag) + { + XSingleton.singleton.AddLog("watchNum and commendNum are enough now.", null, null, null, null, null, XDebugColor.XDebug_None); + this.SpectateInfoIsShow = true; + base.uiBehaviour.m_SpectateInfo.transform.localPosition = Vector3.zero; + base.uiBehaviour.m_WatchNum.SetText(watchNum.ToString()); + base.uiBehaviour.m_CommendNum.SetText(commendNum.ToString()); + } + } + } + + public void ShowGuildMineBuff(ResWarBuffRes data) + { + bool flag = data == null || !base.IsLoaded(); + if (!flag) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_RESWAR_PVE; + if (flag2) + { + GuildMineralBufflist.RowData mineBuffData = XGuildMineMainDocument.GetMineBuffData(data.buffid); + bool flag3 = mineBuffData == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("buffid:" + data.buffid, null, null, null, null, null); + } + else + { + uint num = mineBuffData.Quality - 1u; + base.uiBehaviour.m_GuildMineBuff.gameObject.SetActive(true); + base.uiBehaviour.m_GuildMineBuff.SetSprite(mineBuffData.icon); + base.uiBehaviour.m_GuildMineBuffText.SetText(mineBuffData.ratestring); + bool flag4 = (ulong)num >= (ulong)((long)DlgBase.singleton.BossColor.Length); + if (flag4) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "bossMineBuffIndex:", + num, + "\nBossColor:", + DlgBase.singleton.BossColor.Length + }), null, null, null, null, null); + num = 0u; + } + bool flag5 = (ulong)num < (ulong)((long)DlgBase.singleton.BossColor.Length); + if (flag5) + { + base.uiBehaviour.m_GuildMineBuff.SetColor(XSingleton.singleton.ParseColor(DlgBase.singleton.BossColor[(int)num], 0)); + base.uiBehaviour.m_GuildMineBuffText.SetColor(XSingleton.singleton.ParseColor(DlgBase.singleton.BossColor[(int)num], 0)); + } + } + } + } + } + + public void SetLoadingPrompt(List otherPalyerName, bool canAutoClose = false) + { + bool flag = !base.IsLoaded() || XSingleton.singleton.CurrentStage.Stage != EXStage.World || !XSingleton.singleton.SyncMode; + if (!flag) + { + bool flag2 = otherPalyerName == null || otherPalyerName.Count == 0; + if (flag2) + { + this.m_uiBehaviour.m_PromptLabel.SetText(XStringDefineProxy.GetString("WAIT_FOR_OTHERS")); + bool flag3 = canAutoClose && this.m_uiBehaviour.m_PromptFrame.gameObject.activeSelf; + if (flag3) + { + this.m_uiBehaviour.m_PromptFrame.gameObject.SetActive(false); + } + } + else + { + string text = string.Format(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WAIT_OTHER_PLAYER_PVP")), otherPalyerName.Count, otherPalyerName[0]); + this.m_uiBehaviour.m_PromptLabel.SetText(text); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleMain.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleMain.cs.meta new file mode 100644 index 00000000..55707455 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleMain.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0a5e8597c688044dad69417bb6e7826 +timeCreated: 1611404698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs new file mode 100644 index 00000000..53a9deab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs @@ -0,0 +1,291 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleMainBehaviour : DlgBehaviourBase + { + public IXUISprite m_GuildMineBuff; + + public IXUILabel m_GuildMineBuffText; + + public IXUIButton m_HorseRide; + + public Transform m_canvas; + + public Transform m_RoleInfo; + + public Transform m_PingFrame; + + public IXUISprite m_Hpbar = null; + + public IXUISprite m_Mpbar = null; + + public IXUILabel m_HpText; + + public IXUILabel m_MpText; + + public IXUISprite m_HpBackdrop; + + public IXUISprite m_avatar = null; + + public IXUISprite m_sprFrame = null; + + public IXUITexture m_txtHead = null; + + public IXUILabel m_Level = null; + + public IXUILabel m_Name = null; + + public GameObject m_TeamLeader = null; + + public IXUISlider m_sliderBattery; + + public IXUILabel m_lblTime; + + public IXUILabel m_lblfree; + + public GameObject m_avatarGO = null; + + public IXUILabel m_leftTimes = null; + + public IXUILabel m_winConditionTips = null; + + public IXUILabel m_BattleExplainTips = null; + + public IXUIButton m_pause = null; + + public IXPositionGroup m_pauseGroup = null; + + public IXUISprite m_sprwifi; + + public GameObject m_ComboFrame = null; + + public IXUILabel m_ComboText = null; + + public IXUITweenTool m_ComboTextTween = null; + + public IXUITweenTool m_ComboBgTween = null; + + public IXUIProgress m_ComboBuffTime = null; + + public IXUILabel m_ComboBuffName = null; + + public BattleSkillHandler m_SkillHandler; + + public BattleTargetHandler m_BattleTargetHandler; + + public GameObject m_NoticeFrame = null; + + public IXUILabel m_Notice = null; + + public Vector3 m_NoticePos; + + public Transform m_PromptFrame; + + public IXUILabel m_PromptLabel; + + public BattleIndicateHandler m_IndicateHandler; + + public IXUILabel m_LeftTime = null; + + public BattleWorldBossHandler m_WorldBossHandler; + + public XTeamMonitorHandler m_TeamMonitor; + + public XBattleEnemyInfoHandler m_EnemyInfoHandler; + + public XBattleTeamTowerHandler m_TeamTowerHandler; + + public XBuffMonitorHandler m_PlayerBuffMonitorHandler; + + public GameObject m_DpsPanel; + + public GameObject m_LowHP; + + public IXUISprite m_AutoPlayBorad; + + public IXUISprite m_AutoPlayCancelBoard; + + public IXUIButton m_AutoPlay; + + public IXUIButton m_CancelAuto; + + public IXUILabel m_AutoPlayLock; + + public IXUISprite m_AutoPlayTip; + + public IXUILabel m_lblKill; + + public IXUILabel m_WarTime; + + public IXUILabel m_SceneName; + + public Transform m_CountDownFrame; + + public Transform m_CountDownBeginFrame; + + public Transform m_CountDownTimeFrame; + + public IXUIProgress m_StrengthPresevedBar; + + public Transform m_3D25D; + + public Transform m_SightSelect; + + public IXUIButton m_25D; + + public IXUIButton m_3D; + + public IXUIButton m_3DFree; + + public IXUIButton m_Sight; + + public IXUISprite m_SightPic; + + public IXUISprite m_SelectPic; + + public GameObject m_objBossRush; + + public IXUISprite m_sprBuff1; + + public IXUILabel m_lblBuff1; + + public IXUISprite m_sprBuff2; + + public IXUILabel m_lblBuff2; + + public IXUILabel m_lblTitle; + + public GameObject m_objRwd; + + public IXUISprite m_sprBossbg; + + public XUIPool m_rwdpool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_SpectateInfo; + + public IXUILabel m_WatchNum; + + public IXUILabel m_CommendNum; + + public IXUILabel m_SkyAreanStage; + + public IXUISimpleList m_Menu; + + public GameObject m_AutoPlayContent; + + public IXUIButton m_BtnDamageStatistics; + + private void Awake() + { + this.m_canvas = base.transform.Find("_canvas"); + this.m_RoleInfo = base.transform.Find("_canvas/Bg/Bg"); + this.m_PingFrame = base.transform.Find("_canvas/Bg/PING"); + this.m_leftTimes = (base.transform.Find("_canvas/LeftTimes").GetComponent("XUILabel") as IXUILabel); + this.m_leftTimes.SetVisible(false); + this.m_winConditionTips = (base.transform.Find("_canvas/BattleWinTips").GetComponent("XUILabel") as IXUILabel); + this.m_winConditionTips.SetVisible(false); + this.m_BattleExplainTips = (base.transform.Find("_canvas/BattleExplainTips").GetComponent("XUILabel") as IXUILabel); + Transform transform = this.m_RoleInfo.Find("HpBar"); + this.m_Hpbar = (transform.Find("BackDrop").GetComponent("XUISprite") as IXUISprite); + this.m_HpBackdrop = this.m_Hpbar; + Transform transform2 = this.m_RoleInfo.Find("MpBar"); + this.m_Mpbar = (transform2.Find("BackDrop").GetComponent("XUISprite") as IXUISprite); + this.m_HpText = (this.m_RoleInfo.Find("HpText").GetComponent("XUILabel") as IXUILabel); + this.m_MpText = (this.m_RoleInfo.Find("MpText").GetComponent("XUILabel") as IXUILabel); + this.m_sliderBattery = (this.m_PingFrame.Find("Battery").GetComponent("XUISlider") as IXUISlider); + this.m_lblTime = (this.m_PingFrame.Find("TIME").GetComponent("XUILabel") as IXUILabel); + this.m_lblfree = (this.m_PingFrame.Find("T2").GetComponent("XUILabel") as IXUILabel); + Transform transform3 = this.m_RoleInfo.Find("Avatar"); + this.m_avatar = (transform3.GetComponent("XUISprite") as IXUISprite); + this.m_sprFrame = (transform3.Find("AvatarFrame").GetComponent("XUISprite") as IXUISprite); + this.m_txtHead = (this.m_RoleInfo.Find("HeadPanel/Head").GetComponent("XUITexture") as IXUITexture); + this.m_Level = (this.m_RoleInfo.Find("CoverPanel/Level").GetComponent("XUILabel") as IXUILabel); + this.m_Name = (this.m_RoleInfo.Find("PlayerName").GetComponent("XUILabel") as IXUILabel); + this.m_TeamLeader = this.m_RoleInfo.Find("CoverPanel/TeamLeader").gameObject; + Transform transform4 = base.transform.Find("_canvas/Pause"); + this.m_pause = (transform4.GetComponent("XUIButton") as IXUIButton); + this.m_pauseGroup = (transform4.GetComponent("PositionGroup") as IXPositionGroup); + this.m_sprwifi = (this.m_PingFrame.Find("SysWifi").GetComponent("XUISprite") as IXUISprite); + DlgHandlerBase.EnsureCreate(ref this.m_IndicateHandler, base.transform.Find("_canvas/Indicate").gameObject, null, false); + this.m_lblKill = (base.transform.Find("_canvas/KillFrame/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ComboFrame = base.transform.Find("_canvas/ComboFrame/Frame").gameObject; + Transform transform5 = base.transform.Find("_canvas/ComboFrame/Frame/Combo/ComboText"); + this.m_ComboText = (transform5.GetComponent("XUILabel") as IXUILabel); + this.m_ComboTextTween = (transform5.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_ComboBgTween = (base.transform.Find("_canvas/ComboFrame/Frame/Combo").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_ComboFrame.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + this.m_ComboBuffTime = (base.transform.Find("_canvas/ComboFrame/BuffArmor").GetComponent("XUIProgress") as IXUIProgress); + this.m_ComboBuffName = (base.transform.Find("_canvas/ComboFrame/BuffArmor/Buff").GetComponent("XUILabel") as IXUILabel); + this.m_ComboBuffTime.gameObject.SetActive(false); + this.m_PromptFrame = base.transform.Find("_canvas/PromptFrame"); + this.m_PromptLabel = (base.transform.Find("_canvas/PromptFrame/Notice").GetComponent("XUILabel") as IXUILabel); + this.m_PromptFrame.gameObject.SetActive(false); + this.m_NoticeFrame = base.transform.Find("_canvas/NoticeFrame").gameObject; + transform5 = base.transform.Find("_canvas/NoticeFrame/Notice"); + this.m_NoticePos = this.m_NoticeFrame.transform.localPosition; + this.m_Notice = (transform5.GetComponent("XUILabel") as IXUILabel); + this.m_NoticeFrame.transform.localPosition = XGameUI.Far_Far_Away; + this.m_LowHP = base.transform.Find("_canvas/LowHPNotice").gameObject; + this.m_LowHP.SetActive(false); + this.m_LeftTime = (base.transform.Find("_canvas/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime.SetVisible(false); + this.m_WarTime = (base.transform.Find("_canvas/WarTime").GetComponent("XUILabel") as IXUILabel); + this.m_WarTime.SetVisible(false); + this.m_SceneName = (base.transform.Find("_canvas/Indicate/Bg/Name").GetComponent("XUILabel") as IXUILabel); + DlgHandlerBase.EnsureCreate(ref this.m_WorldBossHandler, base.transform.Find("_canvas/WorldBossFrame").gameObject, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_SkillHandler, base.transform.Find("_canvas/SkillFrame").gameObject, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_TeamMonitor, base.transform.Find("_canvas/TeamFrame").gameObject, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_EnemyInfoHandler, base.transform.Find("_canvas/EnemyInfoFrame").gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.m_BattleTargetHandler, base.transform.Find("_canvas/BattleTaget").gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.m_TeamTowerHandler, base.transform.Find("_canvas/TeamTower").gameObject, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_PlayerBuffMonitorHandler, this.m_RoleInfo.Find("BuffFrame").gameObject, null, true); + this.m_PlayerBuffMonitorHandler.InitMonitor(XSingleton.singleton.BuffMaxDisplayCountPlayer, true, true); + this.m_AutoPlay = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayBoard/AutoPlay").GetComponent("XUIButton") as IXUIButton); + this.m_AutoPlay.ID = 1UL; + this.m_AutoPlayBorad = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayBoard").GetComponent("XUISprite") as IXUISprite); + this.m_AutoPlayCancelBoard = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayCancel").GetComponent("XUISprite") as IXUISprite); + this.m_AutoPlayTip = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayBoard/Content/Lock").GetComponent("XUISprite") as IXUISprite); + this.m_CancelAuto = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayCancel/AutoPlay").GetComponent("XUIButton") as IXUIButton); + this.m_CancelAuto.ID = 0UL; + this.m_AutoPlayLock = (base.transform.Find("_canvas/Menu/AutoPlayContent/AutoPlayBoard/Content").GetComponent("XUILabel") as IXUILabel); + this.m_CountDownFrame = base.transform.Find("_canvas/CountDownFrame"); + this.m_CountDownBeginFrame = this.m_CountDownFrame.Find("Begin"); + this.m_CountDownTimeFrame = this.m_CountDownFrame.Find("Time"); + this.m_CountDownFrame.gameObject.SetActive(false); + this.m_StrengthPresevedBar = (base.transform.Find("_canvas/ChargeBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_3D25D = base.transform.Find("_canvas/3D25D"); + this.m_SightSelect = base.transform.Find("_canvas/3D25D/Select"); + this.m_25D = (base.transform.Find("_canvas/3D25D/Select/25D").GetComponent("XUIButton") as IXUIButton); + this.m_3D = (base.transform.Find("_canvas/3D25D/Select/3D").GetComponent("XUIButton") as IXUIButton); + this.m_3DFree = (base.transform.Find("_canvas/3D25D/Select/3DFree").GetComponent("XUIButton") as IXUIButton); + this.m_Sight = (base.transform.Find("_canvas/3D25D/Sight").GetComponent("XUIButton") as IXUIButton); + this.m_SightPic = (base.transform.Find("_canvas/3D25D/Sight/Content").GetComponent("XUISprite") as IXUISprite); + this.m_SelectPic = (base.transform.Find("_canvas/3D25D/Select/Content").GetComponent("XUISprite") as IXUISprite); + this.m_objBossRush = base.transform.Find("_canvas/BossRushReward").gameObject; + this.m_sprBossbg = (this.m_objBossRush.transform.GetComponent("XUISprite") as IXUISprite); + this.m_sprBuff1 = (base.transform.Find("_canvas/BossRushReward/BuffIcon").GetComponent("XUISprite") as IXUISprite); + this.m_lblBuff1 = (this.m_sprBuff1.gameObject.transform.Find("T2").GetComponent("XUILabel") as IXUILabel); + this.m_sprBuff2 = (base.transform.Find("_canvas/BossRushReward/BuffIcon2").GetComponent("XUISprite") as IXUISprite); + this.m_lblBuff2 = (this.m_sprBuff2.gameObject.transform.Find("T2").GetComponent("XUILabel") as IXUILabel); + this.m_lblTitle = (base.transform.Find("_canvas/BossRushReward/name").GetComponent("XUILabel") as IXUILabel); + this.m_objRwd = base.transform.Find("_canvas/BossRushReward/ItemList/Item").gameObject; + this.m_rwdpool.SetupPool(this.m_objRwd.transform.parent.gameObject, this.m_objRwd, 2u, true); + this.m_SpectateInfo = base.transform.Find("_canvas/Spectate").gameObject; + this.m_WatchNum = (this.m_SpectateInfo.transform.Find("WatchNum").GetComponent("XUILabel") as IXUILabel); + this.m_CommendNum = (this.m_SpectateInfo.transform.Find("CommendNum").GetComponent("XUILabel") as IXUILabel); + this.m_DpsPanel = base.transform.Find("_canvas/Adlet").gameObject; + this.m_SkyAreanStage = (base.transform.Find("_canvas/SkyAreanStage").GetComponent("XUILabel") as IXUILabel); + this.m_HorseRide = (base.transform.Find("_canvas/LeftButton/HorseRide").GetComponent("XUIButton") as IXUIButton); + this.m_GuildMineBuff = (base.transform.Find("_canvas/GuildMineBuff").GetComponent("XUISprite") as IXUISprite); + this.m_GuildMineBuffText = (base.transform.Find("_canvas/GuildMineBuff/T").GetComponent("XUILabel") as IXUILabel); + this.m_Menu = (base.transform.Find("_canvas/Menu").GetComponent("XUISimpleList") as IXUISimpleList); + this.m_AutoPlayContent = this.m_Menu.gameObject.transform.Find("AutoPlayContent").gameObject; + this.m_BtnDamageStatistics = (this.m_Menu.gameObject.transform.Find("BtnDamageStatistics").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs.meta new file mode 100644 index 00000000..c6a3bee3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleMainBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 398327a0a5df99344b3a0397f8f44608 +timeCreated: 1611403592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs new file mode 100644 index 00000000..8615d1b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs @@ -0,0 +1,59 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class BattleMysteriourHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return ""; + } + } + + private IXUILabel m_lblLevel; + + private IXUILabel m_lblTime; + + private GameObject[] m_icons = new GameObject[3]; + + private IXUISlider m_slider; + + protected override void Init() + { + base.Init(); + int i = 0; + int num = this.m_icons.Length; + while (i < num) + { + this.m_icons[i] = base.transform.Find(string.Concat(i)).gameObject; + i++; + } + this.m_lblLevel = (base.transform.Find("").GetComponent("") as IXUILabel); + this.m_lblTime = (base.transform.Find("").GetComponent("") as IXUILabel); + this.m_slider = (base.transform.Find("").GetComponent("") as IXUISlider); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_lblLevel.SetText(""); + this.m_lblTime.SetText(""); + this.RefreshBuff(); + } + + private void RefreshBuff() + { + int i = 0; + int num = this.m_icons.Length; + while (i < num) + { + this.m_icons[i].SetActive(false); + i++; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs.meta new file mode 100644 index 00000000..2337064b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleMysteriourHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f512b001dce7d5f4ea2d334c9b28c505 +timeCreated: 1611404875 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs b/Client/Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs new file mode 100644 index 00000000..799fa763 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs @@ -0,0 +1,267 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.Battle; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleQTEDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/BattleQTEDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XBattleDocument _doc = null; + + private QteUIType _type = QteUIType.Bind; + + private float _abnormal_delta = 0.01f; + + private bool _abnormal_flag = false; + + private int _abnormal_wait = 0; + + private int _abnormal_send_wait = 0; + + private float _charge_value = 0f; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XBattleDocument.uuID); + } + + public void SetStatus(QteUIType type, bool status) + { + this._type = type; + this.SetVisible(status, true); + } + + public void SetChargeValue(float value) + { + this._charge_value = value; + base.uiBehaviour.m_ChargeBar.Value = this._charge_value; + } + + public void SetAbnormalValue(float value) + { + this._abnormal_delta = value; + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Bind.gameObject.SetActive(this._type == QteUIType.Bind); + base.uiBehaviour.m_Abnormal.gameObject.SetActive(this._type == QteUIType.Abnormal); + base.uiBehaviour.m_Charge.gameObject.SetActive(this._type == QteUIType.Charge); + base.uiBehaviour.m_Block.gameObject.SetActive(this._type != QteUIType.Charge); + switch (this._type) + { + case QteUIType.Bind: + { + base.uiBehaviour.m_BindLeftButton.SetVisible(true); + base.uiBehaviour.m_BindRightButton.SetVisible(false); + base.uiBehaviour.m_BindArrow.localPosition = new Vector3(base.uiBehaviour.m_BindLeftButton.parent.gameObject.transform.localPosition.x, 0f); + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.SkillHandler != null; + if (flag) + { + DlgBase.singleton.SkillHandler.SetVisible(false); + DlgBase.singleton.SkillHandler.ResetPressState(); + } + break; + } + case QteUIType.Abnormal: + { + this._abnormal_flag = true; + this._abnormal_wait = 0; + this._abnormal_send_wait = 0; + base.uiBehaviour.m_AbnormalBar.Value = 0f; + base.uiBehaviour.m_AbnormalSuccessTween.gameObject.SetActive(false); + base.uiBehaviour.m_AbnormalFailTween.gameObject.SetActive(false); + base.uiBehaviour.m_AbnormalHitTween.gameObject.SetActive(false); + base.uiBehaviour.m_AbnormalBeginTween.PlayTween(true, -1f); + bool flag2 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.SkillHandler != null; + if (flag2) + { + DlgBase.singleton.SkillHandler.SetVisible(false); + DlgBase.singleton.SkillHandler.ResetPressState(); + } + break; + } + case QteUIType.Charge: + base.uiBehaviour.m_ChargeBar.Value = this._charge_value; + break; + } + } + + protected override void OnHide() + { + base.OnHide(); + QteUIType type = this._type; + if (type > QteUIType.Abnormal) + { + if (type != QteUIType.Charge) + { + } + } + else + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.SkillHandler != null; + if (flag) + { + DlgBase.singleton.SkillHandler.SetVisible(true); + } + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_BindLeftButton.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnBindLeftButtonClick)); + base.uiBehaviour.m_BindRightButton.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnBindRightButtonClick)); + base.uiBehaviour.m_AbnormalClickSpace.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAbnormalClicked)); + } + + private void OnBindLeftButtonClick(IXUISprite sp) + { + base.uiBehaviour.m_BindLeftButton.SetVisible(false); + base.uiBehaviour.m_BindRightButton.SetVisible(true); + base.uiBehaviour.m_BindArrow.localPosition = new Vector3(base.uiBehaviour.m_BindRightButton.parent.gameObject.transform.localPosition.x, 0f); + this.SendBindOperation(); + } + + private void OnBindRightButtonClick(IXUISprite sp) + { + base.uiBehaviour.m_BindLeftButton.SetVisible(true); + base.uiBehaviour.m_BindRightButton.SetVisible(false); + base.uiBehaviour.m_BindArrow.localPosition = new Vector3(base.uiBehaviour.m_BindLeftButton.parent.gameObject.transform.localPosition.x, 0f); + this.SendBindOperation(); + } + + private void OnAbnormalClicked(IXUISprite sp) + { + bool flag = !this._abnormal_flag; + if (!flag) + { + this._abnormal_flag = false; + bool flag2 = base.uiBehaviour.m_AbnormalLeftTarget.localPosition.x <= base.uiBehaviour.m_AbnormalThumb.localPosition.x && base.uiBehaviour.m_AbnormalRightTarget.localPosition.x >= base.uiBehaviour.m_AbnormalThumb.localPosition.x; + if (flag2) + { + base.uiBehaviour.m_AbnormalSuccessTween.PlayTween(true, -1f); + base.uiBehaviour.m_AbnormalHitTween.PlayTween(true, -1f); + this._abnormal_send_wait = 30; + } + else + { + base.uiBehaviour.m_AbnormalFailTween.PlayTween(true, -1f); + this._abnormal_wait = 30; + } + } + } + + private void SendCheckAbnormalOperation() + { + PtcC2G_QTEOperation ptcC2G_QTEOperation = new PtcC2G_QTEOperation(); + ptcC2G_QTEOperation.Data.type = 2u; + ptcC2G_QTEOperation.Data.monsterid = (ulong)((long)this._doc.AbnormalBuffID); + XSingleton.singleton.Send(ptcC2G_QTEOperation); + } + + private void SendBindOperation() + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + PtcC2G_QTEOperation ptcC2G_QTEOperation = new PtcC2G_QTEOperation(); + ptcC2G_QTEOperation.Data.type = 2u; + ptcC2G_QTEOperation.Data.monsterid = (ulong)((long)this._doc.BindBuffID); + XSingleton.singleton.Send(ptcC2G_QTEOperation); + } + else + { + XBuff xbuff = null; + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + xbuff = XSingleton.singleton.Player.Buffs.GetBuffByID(this._doc.BindBuffID); + } + bool flag2 = xbuff != null; + if (flag2) + { + bool flag3 = XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_PhysicalAtkMod_Total) > XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_MagicAtkMod_Total); + double attr; + if (flag3) + { + attr = XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_PhysicalAtkMod_Total); + } + else + { + attr = XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_MagicAtkMod_Total); + } + xbuff.ChangeBuffHP((double)((float)(-(float)attr))); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + QteUIType type = this._type; + if (type == QteUIType.Abnormal) + { + bool flag = this._abnormal_wait != 0; + if (flag) + { + this._abnormal_wait--; + bool flag2 = this._abnormal_wait == 0; + if (flag2) + { + this._abnormal_flag = true; + } + } + bool flag3 = this._abnormal_send_wait != 0; + if (flag3) + { + this._abnormal_send_wait--; + bool flag4 = this._abnormal_send_wait == 0; + if (flag4) + { + this.SendCheckAbnormalOperation(); + } + } + bool abnormal_flag = this._abnormal_flag; + if (abnormal_flag) + { + base.uiBehaviour.m_AbnormalBar.Value += this._abnormal_delta; + bool flag5 = base.uiBehaviour.m_AbnormalBar.Value == 1f || base.uiBehaviour.m_AbnormalBar.Value == 0f; + if (flag5) + { + this._abnormal_delta = -this._abnormal_delta; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs.meta new file mode 100644 index 00000000..beeb65d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleQTEDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f70a31e74a13514f86a7edb9d06b307 +timeCreated: 1611403611 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleRecordGameInfo.cs b/Client/Assets/Scripts/XMainClient/UI/BattleRecordGameInfo.cs new file mode 100644 index 00000000..649760ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleRecordGameInfo.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient.UI +{ + internal class BattleRecordGameInfo + { + public List left = new List(); + + public List right = new List(); + + public HeroBattleOver result; + + public int point2V2; + + public uint militaryExploit; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleRecordGameInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleRecordGameInfo.cs.meta new file mode 100644 index 00000000..e97de5c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleRecordGameInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7b4de47fb273cd4db711f9487ff9090 +timeCreated: 1611404532 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleRecordHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleRecordHandler.cs new file mode 100644 index 00000000..997a614c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleRecordHandler.cs @@ -0,0 +1,177 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleRecordHandler : DlgHandlerBase + { + public IXUIButton m_RecordCloseBtn; + + public XUIPool m_RecordMemberPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RecordMessagePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_RecordEmpty; + + public Transform m_BattleRecordJustShowTips; + + public IXUIScrollView m_ScrollView; + + protected override void Init() + { + base.Init(); + this.m_RecordCloseBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Message/Tpl"); + this.m_RecordMemberPool.SetupPool(transform.parent.gameObject, transform.gameObject, 32u, false); + transform = base.PanelObject.transform.Find("Message/MessTpl"); + this.m_RecordMessagePool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_RecordEmpty = base.PanelObject.transform.Find("Empty").gameObject; + this.m_BattleRecordJustShowTips = base.PanelObject.transform.Find("Message/JustShow"); + this.m_ScrollView = (base.PanelObject.transform.Find("Message").GetComponent("XUIScrollView") as IXUIScrollView); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_RecordCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleRecordCloseBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void SetupRecord(List RecordList) + { + base.SetVisible(true); + this.m_RecordMemberPool.ReturnAll(true); + this.m_RecordMessagePool.ReturnAll(false); + this.m_RecordEmpty.SetActive(RecordList.Count == 0); + Vector3 tplPos = this.m_RecordMessagePool.TplPos; + for (int i = 0; i < RecordList.Count; i++) + { + GameObject gameObject = this.m_RecordMessagePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * this.m_RecordMessagePool.TplHeight)); + IXUISprite ixuisprite = gameObject.transform.Find("res").GetComponent("XUISprite") as IXUISprite; + Transform transform = gameObject.transform.Find("MilitaryValue"); + bool flag = transform != null; + if (flag) + { + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + bool flag2 = RecordList[i].result == HeroBattleOver.HeroBattleOver_Lose; + if (flag2) + { + ixuilabel.SetText("-" + RecordList[i].militaryExploit.ToString()); + } + else + { + ixuilabel.SetText("+" + RecordList[i].militaryExploit.ToString()); + } + } + transform = gameObject.transform.Find("Point2V2"); + bool flag3 = transform != null; + if (flag3) + { + IXUILabel ixuilabel2 = transform.GetComponent("XUILabel") as IXUILabel; + bool flag4 = RecordList[i].point2V2 >= 0; + if (flag4) + { + ixuilabel2.SetText("+" + RecordList[i].point2V2.ToString()); + } + else + { + ixuilabel2.SetText("-" + (-RecordList[i].point2V2).ToString()); + } + } + switch (RecordList[i].result) + { + case HeroBattleOver.HeroBattleOver_Win: + ixuisprite.spriteName = "bhdz_win"; + break; + case HeroBattleOver.HeroBattleOver_Lose: + ixuisprite.spriteName = "bhdz_lose"; + break; + case HeroBattleOver.HeroBattleOver_Draw: + ixuisprite.spriteName = "bhdz_p"; + break; + } + this.SetupRecordTeam(RecordList[i].left, gameObject.transform.Find("MyTeam")); + this.SetupRecordTeam(RecordList[i].right, gameObject.transform.Find("OtherTeam")); + } + this.m_BattleRecordJustShowTips.gameObject.SetActive(RecordList.Count == 10); + bool flag5 = RecordList.Count == 10; + if (flag5) + { + this.m_BattleRecordJustShowTips.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(10 * this.m_RecordMessagePool.TplHeight)); + } + this.m_ScrollView.ResetPosition(); + } + + private void SetupRecordTeam(List list, Transform parent) + { + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = this.m_RecordMemberPool.FetchGameObject(false); + gameObject.transform.parent = parent; + gameObject.transform.localPosition = new Vector3((float)(i * this.m_RecordMemberPool.TplWidth), 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon((int)list[i].profression); + bool flag = list[i].roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + ixuilabel.SetText(XStringDefineProxy.GetString("ME")); + ixuisprite.RegisterSpriteClickEventHandler(null); + } + else + { + ixuilabel.SetText(this.CutString(list[i].name)); + ixuisprite.ID = list[i].roleID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHeadClicked)); + } + } + } + + public string CutString(string str) + { + int num = 4; + int num2 = 0; + string text = ""; + foreach (char c in str) + { + num2++; + bool flag = num2 > num; + if (flag) + { + text += ".."; + break; + } + text += c.ToString(); + } + return text; + } + + private void OnHeadClicked(IXUISprite iSp) + { + bool flag = iSp.ID > 0UL; + if (flag) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(iSp.ID, false); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CAPTAIN_PLAYERS_DIFFERENT_SERVER"), "fece00"); + } + } + + private bool OnBattleRecordCloseBtnClick(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleRecordHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleRecordHandler.cs.meta new file mode 100644 index 00000000..527ec822 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleRecordHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f577f4b7eaac1c248867558276a84f0b +timeCreated: 1611404876 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleRecordPlayerInfo.cs b/Client/Assets/Scripts/XMainClient/UI/BattleRecordPlayerInfo.cs new file mode 100644 index 00000000..a6f81fe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleRecordPlayerInfo.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient.UI +{ + internal class BattleRecordPlayerInfo + { + public string name; + + public uint profression; + + public ulong roleID; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleRecordPlayerInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleRecordPlayerInfo.cs.meta new file mode 100644 index 00000000..c4611d89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleRecordPlayerInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d7ce280b5cdb264d811a2ce17d67f8a +timeCreated: 1611403901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleRiftHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleRiftHandler.cs new file mode 100644 index 00000000..bae05e22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleRiftHandler.cs @@ -0,0 +1,202 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleRiftHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/TeamMysteriousBattleDlg"; + } + } + + private XRiftDocument _doc; + + private const int max_buff = 5; + + public uint s_time = 0u; + + private uint all_time = 0u; + + private uint tri_time = 0u; + + private uint dob_time = 0u; + + private uint sceneid; + + public IXUIProgress m_progress; + + public IXUILabel m_lblFloor; + + public IXUILabel m_lblTime1; + + public IXUILabel m_lblTime2; + + private IXUILabel m_lbltip; + + public GameObject[] m_goBuff = new GameObject[5]; + + private float dtime = 0f; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + this.m_lblFloor = (base.transform.Find("Floor").GetComponent("XUILabel") as IXUILabel); + this.m_lblTime1 = (base.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_lblTime2 = (base.transform.Find("Time2").GetComponent("XUILabel") as IXUILabel); + this.m_lbltip = (base.transform.Find("Buff/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_progress = (base.transform.Find("Progress Bar").GetComponent("XUIProgress") as IXUIProgress); + for (int i = 0; i < 5; i++) + { + this.m_goBuff[i] = base.transform.Find("Buff/BossBuff" + i).gameObject; + } + } + + protected override void OnShow() + { + base.OnShow(); + this.ParseData(); + bool flag = this._doc.scene_rift_data != null; + if (flag) + { + this.Refresh((float)this._doc.scene_rift_data.floor, this._doc.scene_rift_data.buffIDs); + } + this.m_lbltip.SetVisible(false); + } + + public void Refresh(float floor, List buffs) + { + this.m_lblFloor.SetText(floor.ToString()); + this.RefreshBuff(buffs); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = Time.time - this.dtime > 1f && this._doc != null && !this._doc.stop_timer; + if (flag) + { + this.dtime = Time.time; + this.s_time += 1u; + this.RefreshTime(); + } + } + + private void RefreshTime() + { + float value = 1f - this.s_time / this.all_time; + this.m_progress.value = value; + this.m_lblTime1.SetText(this.TranNum2Date(this.all_time - this.s_time)); + bool flag = this.s_time < this.tri_time; + if (flag) + { + this.m_lblTime2.SetText(this.TranNum2Date(this.tri_time - this.s_time)); + } + else + { + bool flag2 = this.s_time < this.tri_time + this.dob_time; + if (flag2) + { + this.m_lblTime2.SetText(this.TranNum2Date(this.tri_time + this.dob_time - this.s_time)); + } + else + { + this.m_lblTime2.SetText(this.TranNum2Date(this.all_time - this.s_time)); + } + } + } + + private void ParseData() + { + this.sceneid = XSingleton.singleton.SceneID; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this.sceneid); + for (int i = 0; i < (int)sceneData.LoseCondition.count; i++) + { + bool flag = sceneData.LoseCondition[i, 0] == 3; + if (flag) + { + this.all_time = (uint)sceneData.LoseCondition[i, 1]; + } + } + for (int j = 0; j < XLevelRewardDocument.Table.Table.Length; j++) + { + bool flag2 = XLevelRewardDocument.Table.Table[j].scendid == this.sceneid; + if (flag2) + { + this.tri_time = XLevelRewardDocument.Table.Table[j].star3[2]; + this.dob_time = XLevelRewardDocument.Table.Table[j].star2[2] - this.tri_time; + break; + } + } + } + + private string TranNum2Date(uint num) + { + uint num2 = num / 60u; + uint num3 = num % 60u; + return num2.ToString("D2") + ":" + num3.ToString("D2"); + } + + private void RefreshBuff(List buffs) + { + int num = buffs.Count + 2; + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + Rift.RowData rowData = this._doc.currRiftRow; + bool flag = specificDocument.MyTeam != null && specificDocument.MyTeam.teamBrief != null && specificDocument.MyTeam.teamBrief.rift != null; + if (flag) + { + XTeamRift rift = specificDocument.MyTeam.teamBrief.rift; + rowData = this._doc.GetRiftData(rift.floor, (int)rift.id); + } + this.RefreshBuff(this.m_goBuff[0], string.Empty, XSingleton.singleton.GetValue("RiftAttr"), rowData.attack + "%"); + this.RefreshBuff(this.m_goBuff[1], string.Empty, XSingleton.singleton.GetValue("RiftHP"), rowData.hp + "%"); + for (int i = 2; i < num; i++) + { + RiftBuffSuitMonsterType.RowData buffSuitRow = this._doc.GetBuffSuitRow((uint)buffs[i - 2].buffID, buffs[i - 2].buffLevel); + this.m_goBuff[i].SetActive(true); + this.RefreshBuff(this.m_goBuff[i], buffSuitRow.atlas, buffSuitRow.icon, string.Empty); + IXUISprite ixuisprite = this.m_goBuff[i].transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)(i - 2)); + ixuisprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnBuffPress)); + } + for (int j = num; j < this.m_goBuff.Length; j++) + { + this.m_goBuff[j].SetActive(false); + } + } + + private bool OnBuffPress(IXUISprite spr, bool ispress) + { + int index = (int)spr.ID; + Buff buff = this._doc.scene_rift_data.buffIDs[index]; + RiftBuffSuitMonsterType.RowData buffSuitRow = this._doc.GetBuffSuitRow((uint)buff.buffID, buff.buffLevel); + this.m_lbltip.SetText(XSingleton.singleton.ReplaceReturn(buffSuitRow.scription)); + this.m_lbltip.SetVisible(ispress); + return true; + } + + private void RefreshBuff(GameObject go, string atlas, string sp, string text) + { + IXUILabel ixuilabel = go.transform.Find("value").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(text); + bool flag = string.IsNullOrEmpty(atlas); + if (flag) + { + ixuisprite.SetSprite(sp); + } + else + { + ixuisprite.SetSprite(sp, atlas, false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleRiftHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleRiftHandler.cs.meta new file mode 100644 index 00000000..e27c2645 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleRiftHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b0f9a44322e30a448348f5597147796 +timeCreated: 1611403313 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleShareHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleShareHandler.cs new file mode 100644 index 00000000..f8f8cd67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleShareHandler.cs @@ -0,0 +1,84 @@ +using System; +using UILib; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleShareHandler : DlgHandlerBase + { + private XHeroBattleDocument _doc = null; + + public IXUISprite mQQFrame; + + public IXUISprite mWeChatFrame; + + public IXUIButton mQQBtn1; + + public IXUIButton mQQBtn2; + + public IXUIButton mWeChatBtn1; + + public IXUIButton mWeChatBtn2; + + public IXUISprite mQQBackClick; + + public IXUISprite mWeChatBackClick; + + public IXUIButton mReqShareBtn; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this.mQQFrame = (base.PanelObject.transform.Find("/QQ").GetComponent("XUISprite") as IXUISprite); + this.mWeChatFrame = (base.PanelObject.transform.Find("Wc").GetComponent("XUISprite") as IXUISprite); + this.mQQBtn1 = (base.PanelObject.transform.Find("QQ/QQ1").GetComponent("XUIButton") as IXUIButton); + this.mQQBtn2 = (base.PanelObject.transform.Find("QQ/QQ2").GetComponent("XUIButton") as IXUIButton); + this.mWeChatBtn1 = (base.PanelObject.transform.Find("Wc/Wc1").GetComponent("XUIButton") as IXUIButton); + this.mWeChatBtn2 = (base.PanelObject.transform.Find("Wc/Wc2").GetComponent("XUIButton") as IXUIButton); + this.mQQBackClick = (base.transform.Find("QQ/back").GetComponent("XUISprite") as IXUISprite); + this.mWeChatBackClick = (base.transform.Find("Wc/back").GetComponent("XUISprite") as IXUISprite); + this.mReqShareBtn = (base.transform.Find("SwitchAccount").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.mReqShareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ReqShare)); + this.mQQBackClick.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseShare)); + this.mWeChatBackClick.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseShare)); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public bool ReqShare(IXUIButton btn) + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + this.mQQFrame.SetVisible(true); + this.mWeChatFrame.SetVisible(false); + } + else + { + this.mQQFrame.SetVisible(false); + this.mWeChatFrame.SetVisible(true); + } + return true; + } + + public void OnCloseShare(IXUISprite sp) + { + this.mQQFrame.SetVisible(false); + this.mWeChatFrame.SetVisible(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleShareHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleShareHandler.cs.meta new file mode 100644 index 00000000..d420dbe0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleShareHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b509f994acd342499f057f8b3687a4b +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleSkillHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleSkillHandler.cs new file mode 100644 index 00000000..68397aba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleSkillHandler.cs @@ -0,0 +1,1273 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleSkillHandler : DlgHandlerBase + { + public bool IsAwakeSlotSettingOn + { + get + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = specificDocument != null; + return !flag || specificDocument.GetValue(XOptionsDefine.OD_Awake_Slot) != 0; + } + } + + private BattleSkillHandler.XSkillButton[] m_buttons = null; + + private XBattleSkillDocument _doc = null; + + private XSkillTreeDocument _skill_doc = null; + + public float LastAttackTime = 0f; + + private bool bNormalAttackPressed = false; + + private XTimerMgr.ElapsedEventHandler _DestroyShowSkillFx = null; + + private IXGameSirControl m_sirControl; + + private List mSkillSets; + + private int mSkillSize = 0; + + private XFx _addFx; + + private XFx _skillFx; + + private XFx _moveFx; + + private int _showSkillNum; + + private uint _fxDelayToken; + + private uint _fxDelayDelToken; + + private XUIPool m_LevelPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private float _pressTime; + + private List[] skillSet = new List[10]; + + public struct XSkillButton + { + public bool Visible + { + get + { + return this.m_visible; + } + } + + public bool Enabled + { + get + { + return this.m_enabled; + } + } + + public bool Active; + + public bool AlwaysHot; + + public IXUIButton m_skill; + + public IXUISprite m_skillIcon; + + public IXUIProgress m_skillCD; + + public IXUITweenTool m_skillCDOver; + + public GameObject m_skillNoMp; + + public IXUILabel m_skillCDText; + + public float m_skillCost; + + public uint m_skillId; + + public GameObject m_skillHighlight; + + public IXUISprite m_lock; + + public IXUISprite m_add; + + public IXUISprite m_skillLevel; + + public int m_skillMaxLevel; + + public bool m_TimesVis; + + public IXUILabel m_Times; + + private bool m_enabled; + + private bool m_visible; + + private Vector3 m_OriginPos; + + private Vector3 m_CDOverOriginPos; + + public XSkillButton(GameObject panelObject, int idx) + { + this.AlwaysHot = false; + this.Active = true; + this.m_visible = true; + this.m_TimesVis = false; + Transform transform = panelObject.transform.Find("Skill" + idx + "/Bg"); + this.m_OriginPos = transform.transform.localPosition; + this.m_skill = (transform.GetComponent("XUIButton") as IXUIButton); + this.m_skill.ID = (ulong)((long)idx); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA && idx >= 2 && idx <= 5; + if (flag) + { + Transform transform2 = transform.transform.parent.Find("Addsp"); + transform2.gameObject.SetActive(true); + this.m_add = (transform2.GetComponent("XUISprite") as IXUISprite); + transform2.gameObject.SetActive(false); + transform2 = transform.transform.Find("level"); + transform2.gameObject.SetActive(true); + this.m_skillLevel = (transform2.GetComponent("XUISprite") as IXUISprite); + this.m_skillLevel.SetFillAmount(0f); + } + else + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB & idx == 0; + if (flag2) + { + this.m_add = null; + Transform transform3 = transform.transform.Find("level"); + transform3.gameObject.SetActive(true); + this.m_skillLevel = (transform3.GetComponent("XUISprite") as IXUISprite); + this.m_skillLevel.SetFillAmount(0f); + transform3 = transform.transform.Find("icon/p"); + transform3.gameObject.SetActive(false); + } + else + { + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_SURVIVE && idx == 0; + if (flag3) + { + this.m_add = null; + this.m_skillLevel = null; + Transform transform4 = transform.transform.Find("icon"); + Transform transform5 = transform.transform.Find("ChickenDinnerIcon"); + transform5.gameObject.SetActive(true); + transform5.localPosition = XGameUI.Far_Far_Away; + IXUISprite ixuisprite = transform4.GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = transform5.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = ixuisprite2.spriteWidth; + ixuisprite.spriteHeight = ixuisprite2.spriteHeight; + transform4.rotation = transform5.rotation; + } + else + { + this.m_add = null; + this.m_skillLevel = null; + } + } + } + this.m_skillMaxLevel = 0; + bool flag4 = (idx >= 2 && idx <= 6) || idx == XSkillTreeDocument.AwakeSkillSlot; + if (flag4) + { + this.m_Times = (transform.transform.Find("icon/Times").GetComponent("XUILabel") as IXUILabel); + this.m_Times.gameObject.transform.localPosition = XGameUI.Far_Far_Away; + } + else + { + this.m_Times = null; + } + this.m_skillIcon = (transform.transform.Find("icon").GetComponent("XUISprite") as IXUISprite); + this.m_skillCD = (this.m_skillIcon.gameObject.GetComponent("XUIProgress") as IXUIProgress); + this.m_skillCDOver = (this.m_skillIcon.transform.Find("cdover").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_CDOverOriginPos = this.m_skillCDOver.gameObject.transform.localPosition; + this.m_skillCDOver.gameObject.transform.localPosition = XGameUI.Far_Far_Away; + this.m_skillCDText = (this.m_skillIcon.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + this.m_skillNoMp = this.m_skillIcon.transform.Find("nomp").gameObject; + this.m_skillHighlight = transform.transform.Find("highlight").gameObject; + this.m_skillHighlight.transform.localPosition = XGameUI.Far_Far_Away; + this.m_lock = null; + Transform transform6 = transform.transform.Find("lock"); + bool flag5 = transform6 != null; + if (flag5) + { + this.m_lock = (transform6.GetComponent("XUISprite") as IXUISprite); + this.m_lock.gameObject.SetActive(false); + } + this.m_skillCost = 0f; + this.m_skillId = 0u; + this.m_enabled = true; + } + + public void SetButtonStatus(bool enable) + { + bool flag = this.m_enabled != enable; + if (flag) + { + if (enable) + { + this.m_skill.SetEnable(true, false); + } + else + { + this.m_skillNoMp.transform.localPosition = XGameUI.Far_Far_Away; + this.m_skill.SetEnable(false, this.m_skill.ID == 0UL); + } + } + this.m_enabled = enable; + } + + public void SetButtonHighlight(bool enable) + { + this.m_skillHighlight.transform.localPosition = (enable ? Vector3.zero : XGameUI.Far_Far_Away); + } + + public void SetButtonInRange(bool enable) + { + } + + public void SetButton(bool active) + { + this.m_visible = active; + this.m_skill.SetVisible(active); + } + + public void SetCDText(bool active) + { + this.m_skillCDText.gameObject.transform.localPosition = (active ? Vector3.zero : XGameUI.Far_Far_Away); + } + + public void SetCDOver(bool active) + { + } + + public void SetNoMP(bool active) + { + this.m_skillNoMp.gameObject.transform.localPosition = (active ? Vector3.zero : XGameUI.Far_Far_Away); + } + + private void _OnCDOverFinished(IXUITweenTool tween) + { + this.SetCDOver(false); + } + + public void SetSkillLevel(int level) + { + bool flag = this.m_skillLevel == null; + if (!flag) + { + this.m_skillLevel.SetFillAmount((float)level * 1f / (float)this.m_skillMaxLevel); + } + } + } + + public BattleSkillHandler() + { + this._DestroyShowSkillFx = new XTimerMgr.ElapsedEventHandler(this.DestroyShowSkillFx); + } + + protected override void Init() + { + base.Init(); + this._showSkillNum = 0; + Transform transform = base.PanelObject.transform.Find("LevelTpl"); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB; + if (flag) + { + this.m_LevelPool.SetupPool(transform.parent.gameObject, transform.gameObject, 16u, false); + } + else + { + transform.gameObject.SetActive(false); + } + this.m_buttons = new BattleSkillHandler.XSkillButton[XBattleSkillDocument.Total_skill_slot]; + int num = 0; + while ((long)num < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + this.m_buttons[num] = new BattleSkillHandler.XSkillButton(base.PanelObject, num); + num++; + } + this.m_sirControl = XSingleton.singleton.GameSirControl; + this._doc = XDocuments.GetSpecificDocument(XBattleSkillDocument.uuID); + this._doc.BattleView = this; + this._doc.Init(); + this._skill_doc = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + this.mSkillSets = new List(); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("GameSirKeyCodes", XGlobalConfig.ListSeparator); + bool flag2 = andSeparateValue == null || andSeparateValue.Length == 0; + if (flag2) + { + this.mSkillSize = 0; + } + else + { + this.mSkillSize = andSeparateValue.Length; + for (int i = 0; i < this.mSkillSize; i++) + { + this.mSkillSets.Add(andSeparateValue[i].Split(XGlobalConfig.SequenceSeparator)); + } + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + int num = 0; + while ((long)num < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + this.m_buttons[num].m_skill.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnSkillCast)); + bool flag = this.m_buttons[num].m_add != null; + if (flag) + { + this.m_buttons[num].m_add.ID = (ulong)((long)num); + this.m_buttons[num].m_add.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddClick)); + this.m_buttons[num].m_add.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnAddPress)); + } + bool flag2 = this.m_buttons[num].m_lock != null; + if (flag2) + { + this.m_buttons[num].m_lock.ID = (ulong)((long)num); + this.m_buttons[num].m_lock.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnLockClick)); + } + num++; + } + this.m_buttons[0].m_skill.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnAttackPressed)); + } + + public override void OnUnload() + { + bool flag = this._addFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._addFx, true); + } + bool flag2 = this._skillFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._skillFx, true); + } + bool flag3 = this._moveFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._moveFx, true); + } + this._doc.BattleView = null; + XSingleton.singleton.KillTimer(this._fxDelayToken); + XSingleton.singleton.KillTimer(this._fxDelayDelToken); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.bNormalAttackPressed = false; + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_HEROBATTLE; + if (flag) + { + this.ResetSkill(false, false); + } + } + + public void SetButtonNum(int num) + { + bool flag = this._showSkillNum == num; + if (!flag) + { + this._showSkillNum = num; + int group = 0; + bool flag2 = num != 0; + if (flag2) + { + group = 5 - num; + } + int num2 = 2; + while (num2 <= 5 && num2 < this.m_buttons.Length) + { + IXPositionGroup ixpositionGroup = this.m_buttons[num2].m_skill.gameObject.GetComponent("PositionGroup") as IXPositionGroup; + ixpositionGroup.SetGroup(group); + num2++; + } + } + } + + public void SetupSkillMobaLevel() + { + bool flag = XSingleton.singleton.Player == null || XSingleton.singleton.Player.Transformer == null; + if (!flag) + { + this.m_LevelPool.ReturnAll(true); + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag2) + { + int i = 2; + while (i <= 5) + { + bool flag3 = i < XSingleton.singleton.Player.SkillSlot.Length && i < this.m_buttons.Length; + if (flag3) + { + int skillMaxLevel = XSingleton.singleton.GetSkillMaxLevel(XSingleton.singleton.Player.SkillSlot[i], XSingleton.singleton.Player.SkillCasterTypeID); + bool flag4 = skillMaxLevel <= 1; + if (!flag4) + { + Transform parent = this.m_buttons[i].m_skillLevel.gameObject.transform.Find("p"); + for (int j = 0; j < skillMaxLevel; j++) + { + float num = (float)j * 2f * 3.14159274f / (float)skillMaxLevel; + GameObject gameObject = this.m_LevelPool.FetchGameObject(false); + gameObject.transform.parent = parent; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(Mathf.Sin(num) * 40f, Mathf.Cos(num) * 40f); + gameObject.transform.eulerAngles = new Vector3(0f, 0f, -num * 57.29578f); + } + this.m_buttons[i].m_skillMaxLevel = skillMaxLevel; + } + } + IL_1AF: + i++; + continue; + goto IL_1AF; + } + } + else + { + int skillMaxLevel2 = XSingleton.singleton.GetSkillMaxLevel(XSingleton.singleton.Player.SkillSlot[0], XSingleton.singleton.Player.SkillCasterTypeID); + Transform parent2 = this.m_buttons[0].m_skillLevel.gameObject.transform.Find("p"); + for (int k = 0; k < skillMaxLevel2; k++) + { + float num2 = (float)k * 2f * 3.14159274f / (float)skillMaxLevel2; + GameObject gameObject2 = this.m_LevelPool.FetchGameObject(false); + gameObject2.transform.parent = parent2; + gameObject2.transform.localScale = Vector3.one; + gameObject2.transform.localPosition = new Vector3(Mathf.Sin(num2) * 64f, Mathf.Cos(num2) * 64f); + gameObject2.transform.eulerAngles = new Vector3(0f, 0f, -num2 * 57.29578f); + } + this.m_buttons[0].m_skillMaxLevel = skillMaxLevel2; + this.SetMobaSkillLevel(0, false); + } + } + } + + private void _SetAttackGlow(bool bActive) + { + } + + public void ResetPressState() + { + this.bNormalAttackPressed = false; + this.m_buttons[0].m_skill.ResetState(); + this._SetAttackGlow(false); + } + + public void BindSkill(int idx, uint skill, bool rebind = false) + { + bool flag = (long)idx >= (long)((ulong)XBattleSkillDocument.Total_skill_slot) || (!rebind && skill == this.m_buttons[idx].m_skillId); + if (flag) + { + bool flag2 = skill == 0u && this.m_buttons[idx].m_lock != null; + if (flag2) + { + uint level = XSingleton.singleton.XPlayerData.Level; + uint skillSlotUnLockLevel = this._skill_doc.GetSkillSlotUnLockLevel(idx); + this.m_buttons[idx].SetButton(this._ShouldShowButton(skill, idx)); + bool flag3 = level < skillSlotUnLockLevel; + if (flag3) + { + this.m_buttons[idx].m_lock.gameObject.SetActive(true); + } + else + { + this.m_buttons[idx].m_lock.gameObject.SetActive(false); + } + } + } + else + { + bool flag4 = !this.m_buttons[idx].Active; + if (!flag4) + { + bool flag5 = skill > 0u; + if (flag5) + { + uint skillLevel = XSingleton.singleton.Player.Skill.IsSkillReplaced ? 1u : XSingleton.singleton.Player.Attributes.SkillLevelInfo.GetSkillLevel(skill); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skill, skillLevel, XSingleton.singleton.Player.SkillCasterTypeID); + bool flag6 = skillConfig != null; + if (flag6) + { + this.m_buttons[idx].m_skillCost = XSingleton.singleton.Player.SkillMgr.GetMPCost(skill); + this.m_buttons[idx].m_skillId = skill; + this.m_buttons[idx].m_skillIcon.SetSprite(skillConfig.Icon, skillConfig.Atlas, false); + bool flag7 = this.m_buttons[idx].m_lock != null; + if (flag7) + { + this.m_buttons[idx].m_lock.gameObject.SetActive(false); + } + } + else + { + this.m_buttons[idx].m_skillId = 0u; + this.m_buttons[idx].m_skillIcon.spriteName = ""; + this.m_buttons[idx].SetButtonStatus(false); + } + } + else + { + this.m_buttons[idx].m_skillId = 0u; + this.m_buttons[idx].m_skillIcon.spriteName = ""; + this.m_buttons[idx].SetButtonStatus(false); + } + } + } + } + + public void OnSetOptionsValue() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + int awakeSkillSlot = XSkillTreeDocument.AwakeSkillSlot; + bool flag = awakeSkillSlot < this.m_buttons.Length && awakeSkillSlot < XSingleton.singleton.Player.SkillSlot.Length; + if (flag) + { + this.m_buttons[awakeSkillSlot].SetButton(sceneData.ShowSkill && this._ShouldShowButton(XSingleton.singleton.Player.SkillSlot[awakeSkillSlot], awakeSkillSlot)); + } + } + + private bool IsAwakeSkillSlotNeedOpen() + { + return this._skill_doc.IsAwakeSkillSlotOpen && this._skill_doc.IsSelfAwaked && this.IsAwakeSlotSettingOn; + } + + private bool _ShouldShowButton(uint skillID, int idx) + { + bool flag = idx == XSkillTreeDocument.AwakeSkillSlot && !this.IsAwakeSkillSlotNeedOpen(); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = skillID > 0u; + if (flag2) + { + result = true; + } + else + { + bool flag3 = XSingleton.singleton.Player.IsTransform || XSingleton.singleton.Player.Skill.IsSkillReplaced; + if (flag3) + { + result = false; + } + else + { + SkillTypeEnum skillSlotType = this._skill_doc.GetSkillSlotType(idx); + result = (skillSlotType != SkillTypeEnum.Skill_Buff || this._skill_doc.GetSkillSlotUnLockLevel(XFastEnumIntEqualityComparer.ToInt(XSkillSlot.Skill_1_Buff)) <= XSingleton.singleton.XPlayerData.Level); + } + } + } + return result; + } + + public void ResetSkill(bool showfx = false, bool rebind = false) + { + int num = 0; + while ((long)num < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + this.ResetSkill(num, rebind); + bool flag = showfx && this.m_buttons[num].m_skillId > 0u; + if (flag) + { + this.PlayShowSkillFx(num); + } + this.m_buttons[num].SetButton(this._ShouldShowButton(this.m_buttons[num].m_skillId, num)); + num++; + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB; + if (flag2) + { + DlgBase.singleton.SkillHandler.SetupSkillMobaLevel(); + int num2 = 0; + while ((long)num2 < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + uint num3; + bool flag3 = XBattleSkillDocument.SkillLevelDict.TryGetValue(this.m_buttons[num2].m_skillId, out num3); + if (flag3) + { + XBattleSkillDocument.SkillLevel[num2] = (int)num3; + DlgBase.singleton.SkillHandler.SetMobaSkillLevel(num2, false); + } + num2++; + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag4) + { + DlgBase.singleton.SkillHandler.RefreshAddBtn(null); + } + } + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag5 = !sceneData.ShowSkill; + if (flag5) + { + int num4 = 1; + while ((long)num4 < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + this.m_buttons[num4].SetButton(false); + num4++; + } + } + bool flag6 = !sceneData.ShowNormalAttack; + if (flag6) + { + this.m_buttons[0].SetButton(false); + } + } + + public void ResetSkill(int idx, bool rebind = false) + { + bool flag = idx < XSingleton.singleton.Player.SkillSlot.Length; + if (flag) + { + this.BindSkill(idx, XSingleton.singleton.Player.SkillSlot[idx], rebind); + this.m_buttons[idx].SetButtonHighlight(false); + this.m_buttons[idx].SetButtonInRange(false); + } + else + { + XSingleton.singleton.AddErrorLog("skill slot ", idx.ToString(), "missing...", null, null, null); + } + } + + public void CoolDownSkillAll() + { + int num = 0; + while ((long)num < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + bool flag = this.m_buttons[num].m_skillId > 0u; + if (flag) + { + XSkillCore skill = XSingleton.singleton.Player.SkillMgr.GetSkill(this.m_buttons[num].m_skillId); + bool flag2 = skill != null; + if (flag2) + { + skill.CoolDown(); + } + this.PlayShowSkillFx(num); + } + num++; + } + } + + public void MakeCoolDownAtLaunch() + { + int num = 0; + while ((long)num < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + bool flag = this.m_buttons[num].m_skillId > 0u; + if (flag) + { + XSkillCore skill = XSingleton.singleton.Player.SkillMgr.GetSkill(this.m_buttons[num].m_skillId); + bool flag2 = skill != null; + if (flag2) + { + skill.MakeCoolDownAtLaunch(); + } + } + num++; + } + } + + public void DisableSkill(int idx) + { + this.BindSkill(idx, 0u, false); + this.m_buttons[idx].Active = false; + this.m_buttons[idx].SetButton(false); + } + + public void ShowSkillSlot(int index) + { + } + + public void EnableSkill(int idx) + { + this.m_buttons[idx].Active = true; + this.m_buttons[idx].SetButton(true); + bool flag = idx < XSingleton.singleton.Player.SkillSlot.Length; + if (flag) + { + this.BindSkill(idx, XSingleton.singleton.Player.SkillSlot[idx], false); + this.PlayShowSkillFx(idx); + } + else + { + XSingleton.singleton.AddErrorLog("skill slot ", idx.ToString(), "missing...", null, null, null); + } + } + + public void AlwaysHot(int idx, bool isHot) + { + this.m_buttons[idx].AlwaysHot = isHot; + this.m_buttons[idx].SetButtonStatus(true); + } + + public void OnDeath() + { + this.bNormalAttackPressed = false; + this.m_buttons[0].m_skill.ResetState(); + this._SetAttackGlow(false); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.bNormalAttackPressed; + if (flag) + { + this.CastNormalAttack(); + } + bool flag2 = !DlgBase.singleton.IsMainUIVisible(); + if (flag2) + { + this.UpdateKeyBoard(); + } + this.UpdateGameSirControl(); + this.UpdateSkillInfo(); + } + + protected void DestroyShowSkillFx(object o) + { + GameObject o2 = o as GameObject; + XSingleton.singleton.UnSafeDestroy(o2, true, false); + } + + public void OnAttackPressed(bool state) + { + this.OnAttackPressed(null, state); + } + + private void OnAttackPressed(IXUIButton go, bool state) + { + this.bNormalAttackPressed = state; + bool flag = !state; + if (!flag) + { + this._doc.OnSlotClicked(0); + } + } + + private void CastNormalAttack() + { + this.ImpCast(0); + } + + private void OnSkillCast(IXUIButton go, bool state) + { + bool flag = !state; + if (!flag) + { + this._doc.OnSlotClicked((int)go.ID); + this.ImpCast((int)go.ID); + } + } + + private void OnLockClick(IXUISprite sp) + { + int slotid = (int)sp.ID; + uint skillSlotUnLockLevel = this._skill_doc.GetSkillSlotUnLockLevel(slotid); + string text = string.Format(XStringDefineProxy.GetString("OpenSkillAtLevel"), skillSlotUnLockLevel); + XSingleton.singleton.ShowSystemNoticeTip(text); + } + + public void OnAddClick(IXUISprite sp) + { + bool flag = this._pressTime > 1f; + if (!flag) + { + bool flag2 = (int)sp.ID >= this.m_buttons.Length; + if (!flag2) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + bool flag3 = this.IsSkillCanLevelUp((int)sp.ID); + if (flag3) + { + specificDocument.QuerySkillLevelUp(this.m_buttons[(int)sp.ID].m_skillId); + } + } + } + } + + public void SetMobaSkillLevel(int slot, bool isLevelUp) + { + bool flag = isLevelUp && this.m_buttons[slot].m_add != null; + if (flag) + { + bool flag2 = this._addFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._addFx, true); + } + bool flag3 = this._skillFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._skillFx, true); + } + bool flag4 = this._moveFx != null; + if (flag4) + { + XSingleton.singleton.DestroyFx(this._moveFx, true); + } + Transform transform = this.m_buttons[slot].m_skillIcon.transform; + Transform transform2 = this.m_buttons[slot].m_add.transform.parent.Find("Fx"); + this._addFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_jiahao", transform2, false); + this._skillFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_jinenglan", transform, false); + this._moveFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_feixing", transform2, false); + this._addFx.Play(); + this._skillFx.Play(); + Vector3 vector = transform.position - transform2.position; + float num = Vector3.Angle(Vector3.right, vector); + bool flag5 = vector.y < 0f; + if (flag5) + { + num = -num; + } + this._moveFx.Play(transform2.transform.position, Quaternion.Euler(0f, 0f, num), Vector3.one, 1f); + } + this.m_buttons[slot].SetSkillLevel(XBattleSkillDocument.SkillLevel[slot]); + } + + public void DelayRefreshAddBtn() + { + XSingleton.singleton.KillTimer(this._fxDelayToken); + this._fxDelayToken = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.RefreshAddBtn), null); + XSingleton.singleton.KillTimer(this._fxDelayDelToken); + this._fxDelayDelToken = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.DelayRefreshFx), null); + } + + public void DelayRefreshFx(object o = null) + { + bool flag = this._addFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._addFx, true); + } + bool flag2 = this._skillFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._skillFx, true); + } + bool flag3 = this._moveFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._moveFx, true); + } + this._addFx = null; + this._skillFx = null; + this._moveFx = null; + } + + public void RefreshAddBtn(object o = null) + { + bool flag = XBattleSkillDocument.Total_skill_slot <= 5u || XSingleton.singleton.Player == null; + if (!flag) + { + bool flag2 = !XEntity.ValideEntity(XSingleton.singleton.Player.Transformer); + if (!flag2) + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + int skillPoint = specificDocument.SkillPoint; + for (int i = 2; i <= 5; i++) + { + this.m_buttons[i].m_add.SetVisible(this.IsSkillCanLevelUp(i)); + } + } + } + } + + public bool IsSkillCanLevelUp(int index) + { + bool flag = XBattleSkillDocument.Total_skill_slot <= 5u || XSingleton.singleton.Player == null; + bool result; + if (flag) + { + result = false; + } + else + { + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + bool flag2 = specificDocument.SkillPoint == 0; + if (flag2) + { + result = false; + } + else + { + int skillMaxLevel = XSingleton.singleton.GetSkillMaxLevel(this.m_buttons[index].m_skillId, XSingleton.singleton.Player.SkillCasterTypeID); + bool flag3 = XBattleSkillDocument.SkillLevel[index] >= skillMaxLevel; + if (flag3) + { + result = false; + } + else + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this.m_buttons[index].m_skillId, (uint)(XBattleSkillDocument.SkillLevel[index] + 1), XSingleton.singleton.Player.SkillCasterTypeID); + bool flag4 = skillConfig == null || XBattleSkillDocument.SkillLevel[index] >= skillConfig.UpReqRoleLevel.Length || (int)skillConfig.UpReqRoleLevel[XBattleSkillDocument.SkillLevel[index]] > specificDocument.MyLevel(); + result = !flag4; + } + } + } + return result; + } + + public bool OnAddPress(IXUISprite sp, bool state) + { + bool flag = (int)sp.ID >= this.m_buttons.Length; + bool result; + if (flag) + { + result = false; + } + else + { + if (state) + { + this._pressTime = Time.time; + } + else + { + this._pressTime = Time.time - this._pressTime; + } + bool flag2 = DlgBase.singleton.m_MobaBattleHandler != null; + if (flag2) + { + DlgBase.singleton.m_MobaBattleHandler.ShowSkillTips(state, this.m_buttons[(int)sp.ID].m_skillId, XBattleSkillDocument.SkillLevel[(int)sp.ID] + 1); + } + result = true; + } + return result; + } + + private void ImpCast(int idx) + { + bool flag = this.m_buttons[idx].m_skillId == 0u || !this.m_buttons[idx].Enabled || !this.m_buttons[idx].Visible; + if (!flag) + { + uint num = this._doc.NextJASkillBaseOnCurrent(); + bool flag2 = num == this.m_buttons[idx].m_skillId; + if (flag2) + { + bool flag3 = this._doc.IsInQTEChain(num); + if (flag3) + { + this._doc.CastSkill(this.m_buttons[idx]); + } + else + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + this._doc.FireSkillEvent(idx); + } + else + { + this.LastAttackTime = Time.time; + } + } + } + else + { + this._doc.CastSkill(this.m_buttons[idx]); + } + } + } + + protected void UpdateSkillInfo() + { + XPlayer player = XSingleton.singleton.Player; + bool flag = player == null; + if (!flag) + { + int num = (int)XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + int num2 = 0; + while ((long)num2 < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + XSkillCore xskillCore = this._doc.HasReplaced(this.m_buttons[num2].m_skillId); + bool flag2 = xskillCore != null; + if (flag2) + { + bool showRunningTime = xskillCore.ShowRunningTime; + if (showRunningTime) + { + bool flag3 = this.m_buttons[num2].m_Times != null; + if (flag3) + { + bool flag4 = xskillCore.LeftRunningTime != 0; + bool flag5 = this.m_buttons[num2].m_TimesVis != flag4; + if (flag5) + { + this.m_buttons[num2].m_TimesVis = flag4; + this.m_buttons[num2].m_Times.gameObject.transform.localPosition = (flag4 ? new Vector3(24f, -30f) : XGameUI.Far_Far_Away); + } + this.m_buttons[num2].m_Times.SetText(xskillCore.LeftRunningTime.ToString()); + } + } + else + { + bool flag6 = this.m_buttons[num2].m_Times != null; + if (flag6) + { + bool timesVis = this.m_buttons[num2].m_TimesVis; + if (timesVis) + { + this.m_buttons[num2].m_TimesVis = false; + this.m_buttons[num2].m_Times.gameObject.transform.localPosition = XGameUI.Far_Far_Away; + } + } + } + bool reloading = xskillCore.Reloading; + if (reloading) + { + float coolDown = xskillCore.GetCoolDown(); + float elapsedCD = xskillCore.GetElapsedCD(); + float num3 = (coolDown > 0f) ? (1f - elapsedCD / coolDown) : 0f; + bool flag7 = num2 > 0 || !XSingleton.singleton.Player.SkillMgr.IsPhysicalAttack(xskillCore.ID); + this.m_buttons[num2].m_skillCD.value = (flag7 ? num3 : 0f); + bool cooledDown = xskillCore.CooledDown; + if (cooledDown) + { + this.m_buttons[num2].SetCDText(false); + } + else + { + this.m_buttons[num2].SetCDText(true); + float num4 = coolDown - elapsedCD; + bool flag8 = num4 >= 1f; + if (flag8) + { + int num5 = (int)(coolDown - elapsedCD + 0.5f); + bool flag9 = this.m_buttons[num2].m_skillCDText.HasIdentityChanged(num5); + if (flag9) + { + string text = flag7 ? num5.ToString() : ""; + this.m_buttons[num2].m_skillCDText.SetText(text); + this.m_buttons[num2].m_skillCDText.SetIdentity(num5); + } + } + else + { + int num6 = (int)(num4 * 10f); + bool flag10 = this.m_buttons[num2].m_skillCDText.HasIdentityChanged(num6); + if (flag10) + { + string text = flag7 ? num4.ToString("F1") : ""; + this.m_buttons[num2].m_skillCDText.SetText(text); + this.m_buttons[num2].m_skillCDText.SetIdentity(num6); + } + } + } + } + else + { + this.m_buttons[num2].SetCDText(false); + this.m_buttons[num2].m_skillCD.value = 0f; + } + bool flag11 = this._doc.CanCast(xskillCore.ID, num2); + if (flag11) + { + this.m_buttons[num2].SetButtonStatus(true); + this.m_buttons[num2].SetNoMP((float)num < this.m_buttons[num2].m_skillCost); + bool flag12 = num2 > 1; + if (flag12) + { + this.m_buttons[num2].SetButtonInRange(xskillCore.CooledDown && this._doc.CanFind(xskillCore.ID)); + } + } + else + { + bool alwaysHot = this.m_buttons[num2].AlwaysHot; + if (alwaysHot) + { + this.m_buttons[num2].SetButtonStatus(true); + } + else + { + bool flag13 = num2 > 1; + if (flag13) + { + this.m_buttons[num2].SetButtonInRange(false); + } + this.m_buttons[num2].SetButtonStatus(false); + } + } + } + else + { + this.m_buttons[num2].m_skillCD.value = 0f; + this.m_buttons[num2].SetCDText(false); + this.m_buttons[num2].SetButtonStatus(false); + } + num2++; + } + } + } + + public void UpdateQTESkill(int idx, uint skill) + { + bool flag = skill > 0u; + if (flag) + { + this.BindSkill(idx, skill, false); + bool flag2 = !XSingleton.singleton.Player.QTE.IsInIgnorePresentState(); + if (flag2) + { + this.m_buttons[idx].SetButtonHighlight(true); + } + } + } + + private void PlayShowSkillFx(int idx) + { + this.m_buttons[idx].SetButtonStatus(true); + GameObject gameObject = XSingleton.singleton.CreateFromPrefab("UI/Common/ShowSkillFx", true, false) as GameObject; + Transform transform = this.m_buttons[idx].m_skill.gameObject.transform.Find("icon"); + bool flag = transform == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Skill Icon No Find", null, null, null, null, null); + } + else + { + XSingleton.singleton.AddChild(transform.gameObject, gameObject); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ResetAnimationAndPlay(); + XSingleton.singleton.SetTimer(5f, this._DestroyShowSkillFx, gameObject); + } + } + + private bool ExcuteSkill(int index, string[] skillNames) + { + bool flag = skillNames == null || skillNames.Length == 0; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = true; + int i = 0; + int num = skillNames.Length; + while (i < num) + { + flag2 = (flag2 && this.m_sirControl.GetButton(skillNames[i])); + bool flag3 = !flag2; + if (flag3) + { + break; + } + i++; + } + bool flag4 = flag2; + if (flag4) + { + bool flag5 = index == 0; + if (flag5) + { + this.CastNormalAttack(); + } + else + { + this.ImpCast(index); + } + } + result = flag2; + } + return result; + } + + private void UpdateGameSirControl() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.m_sirControl == null || !this.m_sirControl.IsConnected() || this.mSkillSets == null; + if (!flag2) + { + bool flag3 = this.mSkillSize == 0; + if (!flag3) + { + for (int i = 0; i < this.mSkillSize; i++) + { + this.ExcuteSkill(i, this.mSkillSets[i]); + } + } + } + } + } + + public void UpdateKeyBoard() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool keyDown = Input.GetKeyDown((KeyCode)104); + if (keyDown) + { + this.CastNormalAttack(); + } + bool keyDown2 = Input.GetKeyDown((KeyCode)32); + if (keyDown2) + { + this.ImpCast(1); + } + bool keyDown3 = Input.GetKeyDown((KeyCode)106); + if (keyDown3) + { + this.ImpCast(2); + } + bool keyDown4 = Input.GetKeyDown((KeyCode)107); + if (keyDown4) + { + this.ImpCast(3); + } + bool keyDown5 = Input.GetKeyDown((KeyCode)108); + if (keyDown5) + { + this.ImpCast(4); + } + bool keyDown6 = Input.GetKeyDown((KeyCode)59); + if (keyDown6) + { + this.ImpCast(5); + } + bool keyDown7 = Input.GetKeyDown((KeyCode)117); + if (keyDown7) + { + this.ImpCast(6); + } + bool keyDown8 = Input.GetKeyDown((KeyCode)111); + if (keyDown8) + { + this.ImpCast(7); + } + bool keyDown9 = Input.GetKeyDown((KeyCode)112); + if (keyDown9) + { + this.ImpCast(8); + } + bool keyDown10 = Input.GetKeyDown((KeyCode)105); + if (keyDown10) + { + this.ImpCast(9); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleSkillHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleSkillHandler.cs.meta new file mode 100644 index 00000000..a8b95154 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleSkillHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 949985562e22833408ee35c59277dca0 +timeCreated: 1611404155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleStatisticsHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleStatisticsHandler.cs new file mode 100644 index 00000000..d004f2a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleStatisticsHandler.cs @@ -0,0 +1,159 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleStatisticsHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/BattleStatistics"; + } + } + + private XCombatStatisticsDocument doc; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private IXUILabel m_Total; + + private IXUISprite m_BtnHelp; + + private IXUISprite m_BtnReset; + + private GameObject m_HelpFrame; + + private IXUILabel m_LabelHelp; + + private float m_Timer = 0f; + + private static float REFRESH_INTERVAL = 1f; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XCombatStatisticsDocument.uuID); + this.doc.StatisticsHandler = this; + this.m_ScrollView = (base.PanelObject.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (this.m_ScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_Total = (base.PanelObject.transform.Find("Bg/Total").GetComponent("XUILabel") as IXUILabel); + this.m_HelpFrame = base.PanelObject.transform.Find("Bg/HelpsFrame").gameObject; + this.m_LabelHelp = (this.m_HelpFrame.transform.Find("Helps").GetComponent("XUILabel") as IXUILabel); + this.m_LabelHelp.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BATTLE_STATISTICS_HELP"))); + this.m_BtnHelp = (base.PanelObject.transform.Find("Bg/BtnHelp").GetComponent("XUISprite") as IXUISprite); + this.m_BtnReset = (base.PanelObject.transform.Find("Bg/BtnReset").GetComponent("XUISprite") as IXUISprite); + this.m_HelpFrame.SetActive(false); + } + + public override void OnUnload() + { + base.OnUnload(); + this.doc.StatisticsHandler = null; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + this.m_BtnHelp.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnHelpClicked)); + this.m_BtnReset.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnResetClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.TeamMonitor != null; + if (flag) + { + DlgBase.singleton.TeamMonitor.TemporarilyHide(true); + } + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.TeamMonitor != null; + if (flag) + { + DlgBase.singleton.TeamMonitor.TemporarilyHide(false); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + float time = Time.time; + bool flag = time - this.m_Timer > BattleStatisticsHandler.REFRESH_INTERVAL; + if (flag) + { + this.m_Timer = time; + this.doc.ReqStatistics(); + } + } + + public override void RefreshData() + { + base.RefreshData(); + this.m_WrapContent.SetContentCount(this.doc.StatisticsList.Count, false); + this.m_Total.SetText(XSingleton.singleton.NumberFormat((ulong)this.doc.TotalDamage)); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this.doc.StatisticsList.Count; + if (!flag) + { + XCombatStatisticsInfo xcombatStatisticsInfo = this.doc.StatisticsList[index]; + bool flag2 = xcombatStatisticsInfo == null; + if (!flag2) + { + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Count").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Value").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Percentage").GetComponent("XUILabel") as IXUILabel; + ulong num = (ulong)xcombatStatisticsInfo.value; + ixuilabel.SetText(xcombatStatisticsInfo.name); + bool flag3 = xcombatStatisticsInfo.count > 999; + if (flag3) + { + ixuilabel2.SetText("..."); + } + else + { + bool flag4 = num != 0UL && xcombatStatisticsInfo.count == 0; + if (flag4) + { + ixuilabel2.SetText("1"); + } + else + { + ixuilabel2.SetText(xcombatStatisticsInfo.count.ToString()); + } + } + ixuilabel3.SetText(XSingleton.singleton.NumberFormat(num)); + ixuilabel4.SetText(string.Format("{0}%", (int)(xcombatStatisticsInfo.percent * 100f))); + } + } + } + + private bool _OnHelpClicked(IXUISprite iSp, bool isPressed) + { + this.m_HelpFrame.SetActive(isPressed); + return true; + } + + private void _OnResetClicked(IXUISprite iSp) + { + this.doc.ResetStatistics(); + this.doc.ReqStatistics(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleStatisticsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleStatisticsHandler.cs.meta new file mode 100644 index 00000000..86f6b321 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleStatisticsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 781bd63e736b0154c984b9c16f2713bb +timeCreated: 1611403957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleTargetHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleTargetHandler.cs new file mode 100644 index 00000000..2ed6e6ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleTargetHandler.cs @@ -0,0 +1,76 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleTargetHandler : DlgHandlerBase + { + public GameObject TargetFx; + + public GameObject PretargetFx; + + protected override void Init() + { + base.Init(); + this.TargetFx = base.PanelObject.transform.Find("Taget2").gameObject; + this.PretargetFx = base.PanelObject.transform.Find("Taget1").gameObject; + this.TargetFx.transform.localPosition = XGameUI.Far_Far_Away; + this.PretargetFx.transform.localPosition = XGameUI.Far_Far_Away; + } + + public void ShowTargetFx(bool show, XEntity e) + { + bool flag = !show; + if (flag) + { + this.TargetFx.transform.localPosition = XGameUI.Far_Far_Away; + } + bool flag2 = !XEntity.ValideEntity(e); + if (!flag2) + { + XSingleton.singleton.HasTarget = true; + this.TargetFx.transform.position = this.EntityOnUI(e); + Vector3 localPosition = this.TargetFx.transform.localPosition; + localPosition.x = (float)Mathf.FloorToInt(localPosition.x); + localPosition.y = (float)Mathf.FloorToInt(localPosition.y); + localPosition.z = 0f; + this.TargetFx.transform.localPosition = localPosition; + } + } + + public void ShowPretargetFx(bool show, XEntity e) + { + bool flag = !show; + if (flag) + { + this.PretargetFx.transform.localPosition = XGameUI.Far_Far_Away; + } + bool flag2 = !XEntity.ValideEntity(e); + if (!flag2) + { + this.PretargetFx.transform.position = this.EntityOnUI(e); + bool flag3 = this.PretargetFx.transform.position.z < 0f; + if (flag3) + { + this.PretargetFx.transform.localPosition = XGameUI.Far_Far_Away; + } + else + { + Vector3 localPosition = this.PretargetFx.transform.localPosition; + localPosition.x = (float)Mathf.FloorToInt(localPosition.x); + localPosition.y = (float)Mathf.FloorToInt(localPosition.y); + localPosition.z = 0f; + this.PretargetFx.transform.localPosition = localPosition; + } + } + } + + protected Vector3 EntityOnUI(XEntity e) + { + Vector3 vector = e.EngineObject.Position + new Vector3(0f, e.Height / 2f, 0f); + Vector3 vector2 = XSingleton.singleton.GameCamera.UnityCamera.WorldToViewportPoint(vector); + return XSingleton.singleton.UICamera.ViewportToWorldPoint(vector2); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleTargetHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleTargetHandler.cs.meta new file mode 100644 index 00000000..6fa6c5da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleTargetHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3403c715bb85c3645832c2a7e607cbe1 +timeCreated: 1611403554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleVoiceHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleVoiceHandler.cs new file mode 100644 index 00000000..c4e58e7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleVoiceHandler.cs @@ -0,0 +1,67 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleVoiceHandler : DlgHandlerBase + { + public GameObject tpl; + + private XUIPool m_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Dictionary dic = new Dictionary(); + + protected override void Init() + { + base.Init(); + this.tpl = base.PanelObject.transform.Find("tpl").gameObject; + this.m_pool.SetupPool(this.tpl.transform.parent.gameObject, this.tpl, 2u, true); + } + + public void Refresh(List _server) + { + this.dic.Clear(); + this.m_pool.ReturnAll(false); + for (int i = 0; i < _server.Count; i++) + { + GameObject gameObject = this.m_pool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(-147f, (float)(10 - 40 * i), 0f); + IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(_server[i].name); + GameObject gameObject2 = gameObject.transform.Find("voice").gameObject; + gameObject2.SetActive(true); + GameObject gameObject3 = gameObject.transform.Find("speak").gameObject; + gameObject3.SetActive(false); + BattleVoiceNode battleVoiceNode = new BattleVoiceNode(); + battleVoiceNode.memberid = _server[i].memberID; + battleVoiceNode.sign = false; + battleVoiceNode.roleid = _server[i].roleID; + battleVoiceNode.speak = gameObject3; + battleVoiceNode.voice = gameObject2; + this.dic.Add(battleVoiceNode.roleid, battleVoiceNode); + } + } + + public void Play(ulong[] roleids, int[] states) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + for (int i = 0; i < roleids.Length; i++) + { + bool flag2 = this.dic.ContainsKey(roleids[i]); + if (flag2) + { + this.dic[roleids[i]].speak.SetActive(states[i] == 2); + this.dic[roleids[i]].voice.SetActive(states[i] == 1); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleVoiceHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleVoiceHandler.cs.meta new file mode 100644 index 00000000..69c1dafc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleVoiceHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6cc0305a67fcb554a87aa97a053f8ebc +timeCreated: 1611403899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleVoiceNode.cs b/Client/Assets/Scripts/XMainClient/UI/BattleVoiceNode.cs new file mode 100644 index 00000000..4d82b85c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleVoiceNode.cs @@ -0,0 +1,18 @@ +using System; +using UnityEngine; + +namespace XMainClient.UI +{ + public class BattleVoiceNode + { + public int memberid; + + public bool sign; + + public ulong roleid; + + public GameObject voice; + + public GameObject speak; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleVoiceNode.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleVoiceNode.cs.meta new file mode 100644 index 00000000..91f0ee07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleVoiceNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4612984a8e59b944aa9c1c437051f73b +timeCreated: 1611403649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleWorldBossHandler.cs b/Client/Assets/Scripts/XMainClient/UI/BattleWorldBossHandler.cs new file mode 100644 index 00000000..2b0ef05f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleWorldBossHandler.cs @@ -0,0 +1,475 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BattleWorldBossHandler : DlgHandlerBase, IWorldBossBattleView + { + private IXUIButton _DamageRankBtn; + + private GameObject _EncouragePanel; + + private IXUIButton _DoEncourage; + + private IXUISprite _EncourageClose; + + private IXUILabel _CurrentEncourageEffect; + + private IXUILabel _CurrentEncourageTitle; + + private IXUILabel _CurrentEncourageType; + + private IXUILabel _EncourageEffect; + + private IXUILabel _EncourageMoneyCost; + + private IXUITweenTool _CurrentEncourageEffectTween; + + private GameObject _RankPanel; + + private GameObject _AutoRevivePanel; + + private IXUILabel _AutoReviveLeftTime; + + private IXUILabel _ReviveCost; + + private IXUISprite _ReviveCostIcon; + + private IXUIButton _DoRevive; + + public IXUITweenTool m_EncourageFrameTween; + + public IXUITweenTool m_RankFrameTween; + + private XWorldBossDamageRankHandler _RankHandler; + + public IWorldBossBattleSource BattleSource; + + private XElapseTimer m_AutoReviveLeftTime = new XElapseTimer(); + + private int m_nAutoReviveLeftTime; + + private uint _GetBattleInfoToken; + + private EncourageShowInfo[] m_encourageInfos; + + private uint _LeaveSceneToken = 0u; + + private uint _LeaveSceneTime = 0u; + + private int _SelectIndex = 0; + + protected override void Init() + { + base.Init(); + this._DamageRankBtn = (base.PanelObject.transform.Find("DamageRankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_encourageInfos = new EncourageShowInfo[2]; + this.m_encourageInfos[0] = new EncourageShowInfo(base.PanelObject.transform.Find("EncourageBtn0"), base.PanelObject.transform.Find("GuildBossbuff"), 0); + this.m_encourageInfos[1] = new EncourageShowInfo(base.PanelObject.transform.Find("EncourageBtn1"), base.PanelObject.transform.Find("GuildBossbuff1"), 1); + this._EncouragePanel = base.PanelObject.transform.Find("EncourageMenu").gameObject; + this._DoEncourage = (this._EncouragePanel.transform.Find("Do").GetComponent("XUIButton") as IXUIButton); + this._EncourageClose = (this._EncouragePanel.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this._CurrentEncourageEffect = (this._EncouragePanel.transform.Find("CurrentEffect").GetComponent("XUILabel") as IXUILabel); + this._CurrentEncourageEffectTween = (this._EncouragePanel.transform.Find("CurrentEffect").GetComponent("XUIPlayTween") as IXUITweenTool); + this._CurrentEncourageTitle = (this._EncouragePanel.transform.Find("CurrentTitle").GetComponent("XUILabel") as IXUILabel); + this._CurrentEncourageType = (this._EncouragePanel.transform.Find("CurrentType").GetComponent("XUILabel") as IXUILabel); + this._EncourageEffect = (this._EncouragePanel.transform.Find("Effect").GetComponent("XUILabel") as IXUILabel); + this._EncourageMoneyCost = (this._EncouragePanel.transform.Find("Do/MoneyCost").GetComponent("XUILabel") as IXUILabel); + this._RankPanel = base.PanelObject.transform.Find("WorldBossRankPanel").gameObject; + this._AutoRevivePanel = base.PanelObject.transform.Find("AutoRevivePanel").gameObject; + this._AutoReviveLeftTime = (this._AutoRevivePanel.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + this._ReviveCost = (this._AutoRevivePanel.transform.Find("DoRightnow/MoneyCost").GetComponent("XUILabel") as IXUILabel); + this._ReviveCostIcon = (this._AutoRevivePanel.transform.Find("DoRightnow/MoneyCost/Icon").GetComponent("XUISprite") as IXUISprite); + this._DoRevive = (this._AutoRevivePanel.transform.Find("DoRightnow").GetComponent("XUIButton") as IXUIButton); + this.m_EncourageFrameTween = (this._EncouragePanel.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_RankFrameTween = (this._RankPanel.GetComponent("XUIPlayTween") as IXUITweenTool); + DlgHandlerBase.EnsureCreate(ref this._RankHandler, this._RankPanel, null, true); + this._EncouragePanel.SetActive(false); + this._AutoRevivePanel.SetActive(false); + this._RankHandler.SetVisible(false); + this._SetupRank(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = 0; i < this.m_encourageInfos.Length; i++) + { + this.m_encourageInfos[i].RegisterCourageClick(new ButtonClickEventHandler(this._OnEncouragePanelClicked)); + } + this._DamageRankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDamageRankClicked)); + this._DoEncourage.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnEncourageDoClicked)); + this._EncourageClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnEncourageCloseClicked)); + this._DoRevive.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnReviveDoClicked)); + this.m_RankFrameTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this._OnTweenFinishEventHandler)); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._RankHandler != null && this._RankHandler.active; + if (flag) + { + this._RankHandler.OnUpdate(); + } + bool activeInHierarchy = this._AutoRevivePanel.activeInHierarchy; + if (activeInHierarchy) + { + this.m_AutoReviveLeftTime.Update(); + int num = (int)this.m_AutoReviveLeftTime.LeftTime; + bool flag2 = num != this.m_nAutoReviveLeftTime; + if (flag2) + { + this.m_nAutoReviveLeftTime = num; + this._AutoReviveLeftTime.SetText(XSingleton.singleton.TimeFormatString(this.m_nAutoReviveLeftTime, 2, 3, 4, false, true)); + } + } + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._RankHandler); + for (int i = 0; i < this.m_encourageInfos.Length; i++) + { + bool flag = this.m_encourageInfos[i] != null; + if (flag) + { + this.m_encourageInfos[i].OnDispose(); + } + this.m_encourageInfos[i] = null; + } + this.m_encourageInfos = null; + SceneType sceneType = XSingleton.singleton.SceneType; + SceneType sceneType2 = sceneType; + if (sceneType2 != SceneType.SCENE_WORLDBOSS) + { + if (sceneType2 == SceneType.SCENE_GUILD_BOSS) + { + XGuildDragonDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + specificDocument.BattleHandler = null; + } + } + else + { + XWorldBossDocument specificDocument2 = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument2.BattleHandler = null; + } + this.BattleSource = null; + bool flag2 = this._LeaveSceneToken > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._LeaveSceneToken); + this._LeaveSceneToken = 0u; + } + base.OnUnload(); + } + + private void _SetupRank() + { + List list = new List(); + SceneType sceneType = XSingleton.singleton.SceneType; + SceneType sceneType2 = sceneType; + if (sceneType2 != SceneType.SCENE_WORLDBOSS) + { + if (sceneType2 == SceneType.SCENE_GUILD_BOSS) + { + XGuildDragonDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + this.BattleSource = specificDocument; + this._RankHandler.RankSource = specificDocument; + specificDocument.BattleHandler = this; + specificDocument.RankHandler = this._RankHandler; + list.Add(RankeType.GuildBossRoleRank); + this.m_encourageInfos[0].Valid = true; + this.m_encourageInfos[0].attr_string = "GuildBossAddAttr"; + this.m_encourageInfos[0].cost_string = "GuildBossConsume"; + this.m_encourageInfos[0].encourage_type = "GUILDBOSS_ENCOURAGE_TYPE"; + this.m_encourageInfos[0].encourage_title = "GUILDBOSS_ENCOURAGE_TITLE"; + this.m_encourageInfos[0].encourage_effect = "GUILDBOSS_ENCOURAGE_EFFECT"; + this.m_encourageInfos[0].BattleSource = specificDocument; + this.m_encourageInfos[0].ReqEncourage = new Action(specificDocument.ReqEncourage); + this.m_encourageInfos[1].Valid = false; + } + } + else + { + XWorldBossDocument specificDocument2 = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + this.BattleSource = specificDocument2; + this._RankHandler.RankSource = specificDocument2; + specificDocument2.BattleHandler = this; + specificDocument2.RankHandler = this._RankHandler; + list.Add(RankeType.WorldBossDamageRank); + list.Add(RankeType.WorldBossGuildRank); + this.m_encourageInfos[0].Valid = true; + this.m_encourageInfos[0].attr_string = "WorldBossAddAttr"; + this.m_encourageInfos[0].cost_string = "WorldBossConsume"; + this.m_encourageInfos[0].encourage_type = "WORLDBOSS_ENCOURAGE_TYPE"; + this.m_encourageInfos[0].encourage_title = "WORLDBOSS_ENCOURAGE_TITLE"; + this.m_encourageInfos[0].encourage_effect = "WORLDBOSS_ENCOURAGE_EFFECT"; + this.m_encourageInfos[0].ReqEncourage = new Action(specificDocument2.ReqEncourage); + this.m_encourageInfos[0].BattleSource = specificDocument2; + XGuildDocument specificDocument3 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument3.bInGuild; + if (bInGuild) + { + this.m_encourageInfos[1].Valid = true; + this.m_encourageInfos[1].attr_string = "WorldBossGuildAddAttr"; + this.m_encourageInfos[1].cost_string = "WorldBossGuildConsume"; + this.m_encourageInfos[1].encourage_type = "GUILDBOSS_ENCOURAGE_TYPE"; + this.m_encourageInfos[1].encourage_title = "GUILDBOSS_ENCOURAGE_TITLE"; + this.m_encourageInfos[1].encourage_effect = "GUILDBOSS_ENCOURAGE_EFFECT"; + this.m_encourageInfos[1].ReqEncourage = new Action(specificDocument2.ReqEncourageTwo); + this.m_encourageInfos[1].BattleSource = specificDocument2; + list.Add(RankeType.WorldBossGuildRoleRank); + } + else + { + this.m_encourageInfos[1].Valid = false; + } + } + this._RankHandler.SetupRanks(list, true); + } + + protected override void OnShow() + { + base.OnShow(); + this.ReqBattleInfo(); + this._OnDamageRankClicked(this._DamageRankBtn); + } + + private void ReqBattleInfo() + { + this.BattleSource.ReqBattleInfo(); + XSingleton.singleton.KillTimer(this._GetBattleInfoToken); + this._GetBattleInfoToken = XSingleton.singleton.SetTimer(10f, new XTimerMgr.ElapsedEventHandler(this.ReqBattleInfoTimer), null); + } + + private void ReqBattleInfoTimer(object o) + { + this.ReqBattleInfo(); + } + + protected override void OnHide() + { + bool flag = this._LeaveSceneToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._LeaveSceneToken); + this._LeaveSceneToken = 0u; + } + base.OnHide(); + } + + public void RefreshAllEnacourage() + { + bool flag = this.m_encourageInfos == null; + if (!flag) + { + int i = 0; + int num = this.m_encourageInfos.Length; + while (i < num) + { + EncourageShowInfo encourageShowInfo = this.m_encourageInfos[i]; + bool flag2 = encourageShowInfo == null || !encourageShowInfo.Valid; + if (flag2) + { + break; + } + this.RefreshEncourage(i); + i++; + } + } + } + + public void RefreshEncourage() + { + this.RefreshEncourage(this._SelectIndex); + } + + public void RefreshEncourage(int index) + { + bool flag = !base.IsVisible(); + if (!flag) + { + EncourageShowInfo encourageShowInfo = this.m_encourageInfos[index]; + bool flag2 = encourageShowInfo == null || !encourageShowInfo.Valid; + if (!flag2) + { + string[] array = XSingleton.singleton.GetValue(encourageShowInfo.attr_string).Split(XGlobalConfig.ListSeparator); + string[] array2 = array[0].Split(XGlobalConfig.SequenceSeparator); + int num = int.Parse(array2[1]); + encourageShowInfo.SetEncourageValue(num); + bool flag3 = index == this._SelectIndex; + if (flag3) + { + this._EncourageEffect.SetText(XStringDefineProxy.GetString(encourageShowInfo.encourage_effect, new object[] + { + num + })); + this._CurrentEncourageTitle.SetText(XStringDefineProxy.GetString(encourageShowInfo.encourage_title)); + this._CurrentEncourageType.SetText(XStringDefineProxy.GetString(encourageShowInfo.encourage_type)); + this._CurrentEncourageEffect.SetText(string.Format("{0}%", (long)num * (long)((ulong)encourageShowInfo.EncourageCount))); + this._CurrentEncourageEffectTween.ResetTween(true); + this._CurrentEncourageEffectTween.PlayTween(true, 0.5f); + CostInfo costInfo = XSingleton.singleton.QueryCost(encourageShowInfo.cost_string, (int)encourageShowInfo.EncourageCount); + this._EncourageMoneyCost.SetText(costInfo.count.ToString()); + } + } + } + } + + private bool _OnEncouragePanelClicked(IXUIButton btn) + { + this._SelectIndex = (int)btn.ID; + XSingleton.singleton.AddGreenLog("_OnEncouragePanelClicked" + this._SelectIndex.ToString(), null, null, null, null, null); + this.RefreshEncourage(); + this.m_EncourageFrameTween.PlayTween(true, -1f); + return true; + } + + private bool _OnDamageRankClicked(IXUIButton btn) + { + bool flag = !base.IsVisible(); + bool result; + if (flag) + { + result = false; + } + else + { + IXUISprite ixuisprite = btn.gameObject.GetComponent("XUISprite") as IXUISprite; + bool flag2 = ixuisprite == null || this._RankHandler == null || this.m_RankFrameTween == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = !this._RankHandler.active; + if (flag3) + { + this._RankHandler.SetVisible(true); + this.m_RankFrameTween.PlayTween(true, -1f); + ixuisprite.SetFlipHorizontal(true); + } + else + { + this.m_RankFrameTween.PlayTween(false, -1f); + ixuisprite.SetFlipHorizontal(false); + } + result = true; + } + } + return result; + } + + private void _OnTweenFinishEventHandler(IXUITweenTool tween) + { + bool flag = !tween.bPlayForward && this._RankHandler != null; + if (flag) + { + this._RankHandler.SetVisible(false); + } + } + + private void _OnEncourageCloseClicked(IXUISprite iSp) + { + this._EncouragePanel.SetActive(false); + } + + private bool _OnEncourageDoClicked(IXUIButton btn) + { + EncourageShowInfo encourageShowInfo = this.m_encourageInfos[this._SelectIndex]; + bool flag = encourageShowInfo == null || encourageShowInfo.ReqEncourage == null; + bool result; + if (flag) + { + result = false; + } + else + { + CostInfo costInfo = XSingleton.singleton.QueryCost(encourageShowInfo.cost_string, (int)encourageShowInfo.EncourageCount); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN)); + bool flag2 = (ulong)costInfo.count > itemCount; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_AUCT_DRAGONCOINLESS"), "fece00"); + } + else + { + encourageShowInfo.ReqEncourage(); + } + result = true; + } + return result; + } + + public void SetLeftTime(uint leftTime) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetLeftTime(leftTime, -1); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetLeftTime(leftTime); + } + } + + private bool _OnReviveDoClicked(IXUIButton btn) + { + RpcC2G_Revive rpcC2G_Revive = new RpcC2G_Revive(); + rpcC2G_Revive.oArg.selectBuff = 0u; + rpcC2G_Revive.oArg.type = ReviveType.ReviveItem; + XSingleton.singleton.Send(rpcC2G_Revive); + return true; + } + + public void SetAutoRevive(int leftTime, uint cost, uint costType) + { + bool flag = leftTime <= 0; + if (!flag) + { + this._AutoRevivePanel.SetActive(true); + this.m_AutoReviveLeftTime.LeftTime = (float)leftTime; + this._AutoReviveLeftTime.SetText(XSingleton.singleton.TimeFormatString(leftTime, 2, 3, 4, false, true)); + this._ReviveCost.SetText(cost.ToString()); + string itemSmallIcon = XBagDocument.GetItemSmallIcon((int)costType, 0u); + this._ReviveCostIcon.SetSprite(itemSmallIcon); + } + } + + public void HideAutoRevive() + { + this._AutoRevivePanel.SetActive(false); + } + + public void OnLeaveSceneCountDown(uint time) + { + this._LeaveSceneTime = time; + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WORLDBOSS_LEAVE_SCENE_TIP"), "fece00"); + XSingleton.singleton.KillTimer(this._LeaveSceneToken); + this._LeaveSceneToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.ShowLeaveSceneTip), null); + } + + private void ShowLeaveSceneTip(object o) + { + XSingleton.singleton.ShowSystemTip(this._LeaveSceneTime.ToString(), "fece00"); + this._LeaveSceneTime -= 1u; + XSingleton.singleton.KillTimer(this._LeaveSceneToken); + this._LeaveSceneToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.ShowLeaveSceneTip), null); + bool flag = this._LeaveSceneTime <= 0u && this._LeaveSceneToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._LeaveSceneToken); + this._LeaveSceneToken = 0u; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BattleWorldBossHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BattleWorldBossHandler.cs.meta new file mode 100644 index 00000000..1bf834ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BattleWorldBossHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b14fe224f1b697140ae64b1ca2da161a +timeCreated: 1611404355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BossRushBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/BossRushBehavior.cs new file mode 100644 index 00000000..53099ca3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BossRushBehavior.cs @@ -0,0 +1,134 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class BossRushBehavior : DlgBehaviourBase + { + public IXUISprite m_sprBg; + + public IXUILabel m_lblLayer; + + public IXUILabel m_lblProgress; + + public IXUILabel m_lblTitle; + + public IXUILabel m_lblDiff; + + public GameObject m_objAtt; + + public GameObject m_objDef; + + public GameObject m_objLife; + + public IXUILabel m_lblDesc; + + public IXUILabel m_lblLeft; + + public IXUIButton m_btnClose; + + public IXUIButton m_Help; + + public IXUISprite m_sprVip; + + public IXUISprite m_sprPrivilegeBg; + + public IXUILabel m_lblPrivilege; + + public IXUITexture m_txtBoss; + + public XUIPool m_attpool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_defpool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_lifepool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_objRwd; + + public IXUISprite m_sprBuff1; + + public IXUISprite m_sprBuff2; + + public IXUILabel m_lblBuff1; + + public IXUILabel m_lblBuff2; + + public XUIPool m_rwdpool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_lblRefresh; + + public IXUILabel m_lblFree; + + public IXUISprite m_sprCoin; + + public IXUILabel m_lblCost; + + public IXUIButton m_btnRefesh; + + public IXUIButton m_btnBattle; + + public IXUILabel m_lblBattle; + + public GameObject m_objFx; + + public IUIDummy m_BossSnapshot; + + public IXUIButton m_SweepButton; + + private void Awake() + { + this.m_sprVip = (base.transform.Find("Bg/tq").GetComponent("XUISprite") as IXUISprite); + this.m_lblPrivilege = (base.transform.Find("Bg/tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_sprPrivilegeBg = (base.transform.Find("Bg/tq/p").GetComponent("XUISprite") as IXUISprite); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_lblLayer = (base.transform.Find("Bg/left/Layer").GetComponent("XUILabel") as IXUILabel); + this.m_lblProgress = (base.transform.Find("Bg/left/RemainTime").GetComponent("XUILabel") as IXUILabel); + this.m_lblTitle = (base.transform.Find("Bg/left/Name").GetComponent("XUILabel") as IXUILabel); + this.m_lblDiff = (base.transform.Find("Bg/left/Diff").GetComponent("XUILabel") as IXUILabel); + this.m_lblDesc = (base.transform.Find("Bg/left/Boss/SkillName").GetComponent("XUILabel") as IXUILabel); + this.m_objAtt = base.transform.Find("Bg/left/Boss/T/attTpl").gameObject; + this.m_objDef = base.transform.Find("Bg/left/Boss/T/attTpl").gameObject; + this.m_objLife = base.transform.Find("Bg/left/Boss/T/attTpl").gameObject; + this.m_btnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_lblLeft = (base.transform.Find("Bg/times").GetComponent("XUILabel") as IXUILabel); + this.m_objRwd = base.transform.Find("Bg/right/T1/ItemTpl").gameObject; + this.m_sprBuff1 = (base.transform.Find("Bg/right/T2/Icon1").GetComponent("XUISprite") as IXUISprite); + this.m_sprBuff2 = (base.transform.Find("Bg/right/T2/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_lblBuff1 = (base.transform.Find("Bg/right/T2/Icon1/T2").GetComponent("XUILabel") as IXUILabel); + this.m_lblBuff2 = (base.transform.Find("Bg/right/T2/Icon/T2").GetComponent("XUILabel") as IXUILabel); + this.m_txtBoss = (base.transform.Find("Bg/Boss").GetComponent("XUITexture") as IXUITexture); + this.m_lblRefresh = (base.transform.Find("Bg/btm/Refresh/Ti1").GetComponent("XUILabel") as IXUILabel); + this.m_lblFree = (base.transform.Find("Bg/btm/Refresh/free").GetComponent("XUILabel") as IXUILabel); + this.m_sprCoin = (base.transform.Find("Bg/btm/Refresh/P").GetComponent("XUISprite") as IXUISprite); + this.m_lblCost = (base.transform.Find("Bg/btm/Refresh/P/T1").GetComponent("XUILabel") as IXUILabel); + this.m_btnRefesh = (base.transform.Find("Bg/btm/Refresh").GetComponent("XUIButton") as IXUIButton); + this.m_btnBattle = (base.transform.Find("Bg/btm/Go").GetComponent("XUIButton") as IXUIButton); + this.m_lblBattle = (base.transform.Find("Bg/btm/Go/T1").GetComponent("XUILabel") as IXUILabel); + this.m_sprBg = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_objFx = base.transform.Find("Bg/effect").gameObject; + this.m_objFx.SetActive(false); + this.m_attpool.SetupPool(this.m_objAtt.transform.parent.gameObject, this.m_objAtt, 2u, true); + this.m_defpool.SetupPool(this.m_objDef.transform.parent.gameObject, this.m_objDef, 2u, true); + this.m_lifepool.SetupPool(this.m_objLife.transform.parent.gameObject, this.m_objLife, 2u, true); + this.m_rwdpool.SetupPool(this.m_objRwd.transform.parent.gameObject, this.m_objRwd, 2u, true); + this.m_BossSnapshot = (base.transform.Find("Bg/Boss").GetComponent("UIDummy") as IUIDummy); + this.m_SweepButton = (base.transform.Find("Bg/btm/SweepButton").GetComponent("XUIButton") as IXUIButton); + } + + public void LoadBossAndStart() + { + base.StartCoroutine(DlgBase.singleton.LoadBossAssets()); + } + + public void ResetPool() + { + this.m_attpool.ReturnAll(false); + this.m_defpool.ReturnAll(false); + this.m_lifepool.ReturnAll(false); + this.m_rwdpool.ReturnAll(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BossRushBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BossRushBehavior.cs.meta new file mode 100644 index 00000000..762e67ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BossRushBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d72c440a3d5866f4f953ae9168f2dacf +timeCreated: 1611404634 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/BossRushDlg.cs b/Client/Assets/Scripts/XMainClient/UI/BossRushDlg.cs new file mode 100644 index 00000000..d6617bbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BossRushDlg.cs @@ -0,0 +1,702 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class BossRushDlg : DlgBase + { + public override string fileName + { + get + { + return "Hall/BossRushNewDlg"; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_BossRush); + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public bool isHallUI + { + get + { + return XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + } + } + + public bool isBattle + { + get + { + return XSingleton.singleton.CurrentStage.Stage == EXStage.World; + } + } + + public uint killAllMonster + { + get + { + bool flag = this._doc == null || this._doc.respData == null; + uint result; + if (flag) + { + result = 1u; + } + else + { + XLevelState ls = XSingleton.singleton.ls; + result = ((this._doc.respData.currank >= this._doc.respData.maxrank && ls._boss_rush_kill > this.killedboss) ? 1u : 0u); + } + return result; + } + } + + public bool isWin + { + get + { + bool flag = this._doc == null || this._doc.respData == null; + bool result; + if (flag) + { + result = true; + } + else + { + XLevelState ls = XSingleton.singleton.ls; + result = (this._doc.respData.currank >= this._doc.respData.maxrank && ls._boss_rush_kill > this.killedboss); + } + return result; + } + } + + private bool isPrivilege + { + get + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = specificDocument == null; + return !flag && specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + } + } + + public string bossName + { + get + { + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + } + byte[] bossdifficult = this._doc.bossRushRow.bossdifficult; + bool flag2 = bossdifficult == null && bossdifficult.Length < 1; + string result; + if (flag2) + { + result = ""; + } + else + { + result = this.colors[(int)(bossdifficult[0] - 1)] + this._doc.entityRow.Name; + } + return result; + } + } + + private XBossBushDocument _doc = null; + + private XSweepDocument _sweepDoc = null; + + private XWelfareDocument _welfareDoc = null; + + public GameObject m_animPanel; + + private XDummy m_Dummy; + + private uint m_timertoken = 0u; + + public string[] colors = new string[] + { + "[00e901]", + "[ffffff]", + "[ffaf00]", + "[aa7de4]" + }; + + public bool startFromHall = false; + + private int killedboss = 0; + + public bool backHall = false; + + private int refreshCost = 0; + + private int refreshItemid = 1; + + private bool isProcessFighting = false; + + private bool isDelayRefresh = false; + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XBossBushDocument.uuID) as XBossBushDocument); + this._sweepDoc = XDocuments.GetSpecificDocument(XSweepDocument.uuID); + this._welfareDoc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.m_animPanel = this.m_uiBehaviour.transform.Find("Bg/RefreshAnim").gameObject; + XSingleton.singleton.Init(this.m_animPanel); + this.colors[0] = "[" + XSingleton.singleton.GetValue("Diff0Color") + "]"; + this.colors[1] = "[" + XSingleton.singleton.GetValue("Diff1Color") + "]"; + this.colors[2] = "[" + XSingleton.singleton.GetValue("Diff2Color") + "]"; + this.colors[3] = "[" + XSingleton.singleton.GetValue("Diff3Color") + "]"; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_uiBehaviour.m_btnRefesh.RegisterClickEventHandler(new ButtonClickEventHandler(this.OpenAnimDlg)); + this.m_uiBehaviour.m_btnBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoBattle)); + base.uiBehaviour.m_SweepButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSweepButtonClicked)); + this.m_uiBehaviour.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + this.m_uiBehaviour.m_sprBg.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnMonsterDrag)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_sprPrivilegeBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMemberPrivilegeClicked)); + } + + private void OnMemberPrivilegeClicked(IXUISprite btn) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_BossRush); + return true; + } + + protected override void OnShow() + { + this.m_animPanel.SetActive(false); + this.m_uiBehaviour.m_objFx.SetActive(false); + base.OnShow(); + base.Alloc3DAvatarPool("BossRushDlg"); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XBossBushDocument.uuID) as XBossBushDocument); + this._doc.ParseRefresh(); + this.isProcessFighting = false; + } + + protected bool OnMonsterDrag(Vector2 delta) + { + bool flag = this.m_Dummy != null; + if (flag) + { + this.m_Dummy.EngineObject.Rotate(Vector3.up, -delta.x / 2f); + } + return true; + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("BossRushDlg"); + this.RefreshBoss(); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + base.uiBehaviour.m_objFx.SetActive(false); + XSingleton.singleton.KillTimer(this.m_timertoken); + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + this.m_Dummy = null; + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool activeSelf = this.m_animPanel.activeSelf; + if (activeSelf) + { + XSingleton.singleton.OnUpdate(); + } + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this.m_timertoken); + base.Return3DAvatarPool(); + this.m_Dummy = null; + } + + protected override void OnUnload() + { + XSingleton.singleton.OnUnload(); + base.Return3DAvatarPool(); + this.m_Dummy = null; + bool flag = this.m_timertoken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.m_timertoken); + } + this.isDelayRefresh = false; + base.OnUnload(); + } + + private bool OnClose(IXUIButton btn) + { + bool isHallUI = this.isHallUI; + if (isHallUI) + { + this.SetVisible(false, true); + } + else + { + this.backHall = true; + XSingleton.singleton.ReqLeaveScene(); + } + return true; + } + + private bool OnGoBattle(IXUIButton btn) + { + bool flag = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnGoBattle), btn) || this.isProcessFighting; + bool result; + if (flag) + { + result = true; + } + else + { + this.isProcessFighting = true; + bool isBattle = this.isBattle; + if (isBattle) + { + base.uiBehaviour.LoadBossAndStart(); + } + else + { + this.GoBattle(); + } + result = true; + } + return result; + } + + private bool OnSweepButtonClicked(IXUIButton button) + { + bool flag = DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + if (flag) + { + this._sweepDoc.TrySweepQuery(2010u, 1u); + } + return true; + } + + public void MakeTips() + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BOSSRUSH_NOTE"), "fece00"); + } + + public bool GoBattle() + { + XLevelState ls = XSingleton.singleton.ls; + bool flag = ls != null; + if (flag) + { + this.killedboss = ls._boss_rush_kill; + } + this.startFromHall = this.isHallUI; + bool isHallUI = this.isHallUI; + if (isHallUI) + { + List list = ListPool.Get(); + XSingleton.singleton.GetSceneListByType(XChapterType.SCENE_BOSSRUSH, list); + bool flag2 = list != null && list.Count > 0; + if (flag2) + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = list[0]; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + } + else + { + XSingleton.singleton.AddErrorLog("not config bossrush in scenelist", null, null, null, null, null); + } + ListPool.Release(list); + } + else + { + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetVisiblePure(true); + DlgBase.singleton.Show(true); + DlgBase.singleton.SetVisible(true, true); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.SetVisiblePure(true); + DlgBase.singleton.Show(true); + DlgBase.singleton.SetVisible(true, true); + } + this.OnBossFadein(); + this.SetVisible(false, true); + } + return true; + } + + public IEnumerator LoadBossAssets() + { + DlgBase.singleton.SetVisible(true, true); + XEntityStatistics.RowData data = this._doc.entityRow; + XEntityPresentation.RowData presentData = this._doc.presentRow; + XSingleton.singleton.PreloadTemp(data.PresentID, data.ID, (EntitySpecies)data.Type); + yield return null; + DlgBase.singleton.SetVisible(false, true); + this._doc.SendQuery(BossRushReqStatus.BOSSRUSH_REQ_CONTINUE); + yield break; + } + + public void OnBossFadein() + { + this.MakeTips(); + this.ResetState(); + DlgBase.singleton.RefreshBossRush(); + this.isProcessFighting = false; + bool flag = DlgBase.singleton.timeConnter != null; + if (flag) + { + DlgBase.singleton.SetTimeRecord(); + } + } + + public void ResetState() + { + XBattleSkillDocument specificDocument = XDocuments.GetSpecificDocument(XBattleSkillDocument.uuID); + specificDocument.OnCoolDown(null); + } + + private bool OpenAnimDlg(IXUIButton btn) + { + bool flag = this.isDelayRefresh || this.isProcessFighting; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.refreshCost > 0 && XSingleton.singleton.Doc.XBagDoc.GetItemCount(this.refreshItemid) < (ulong)((long)this.refreshCost); + if (flag2) + { + bool flag3 = this.refreshItemid == XFastEnumIntEqualityComparer.ToInt(ItemEnum.GOLD); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_AUCTGOLDLESS"), "fece00"); + } + else + { + bool flag4 = this.refreshItemid == XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TEAMBUY_DRAGONCOIN_LESS"), "fece00"); + } + else + { + bool flag5 = this.refreshItemid == XFastEnumIntEqualityComparer.ToInt(ItemEnum.DIAMOND); + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TEAMBUY_DIAMOND_LESS"), "fece00"); + } + } + } + } + else + { + bool flag6 = this._doc.respData.currefreshcount >= this._doc.respData.maxrefreshcount; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BOSSRUSH_LIMIT"), "fece00"); + } + else + { + bool flag7 = !this._doc.isSendingRefreshMsg; + if (flag7) + { + this._doc.isSendingRefreshMsg = true; + this._doc.SendQuery(BossRushReqStatus.BOSSRUSH_REQ_REFRESH); + } + } + } + result = true; + } + return result; + } + + public void OnResOpenAnimDlg() + { + bool flag = base.IsVisible(); + if (flag) + { + XSingleton.singleton.Show(); + this.m_uiBehaviour.m_objFx.SetActive(false); + } + } + + public void DelayRefresh() + { + this.isDelayRefresh = true; + this.m_timertoken = XSingleton.singleton.SetTimer(0.3f, new XTimerMgr.ElapsedEventHandler(this.Refresh), null); + } + + public void Refresh() + { + this.Refresh(null); + } + + public void Refresh(object obj) + { + this.isDelayRefresh = false; + bool flag = this._doc == null; + if (flag) + { + this.Init(); + } + bool flag2 = this._doc.respData != null; + if (flag2) + { + base.uiBehaviour.ResetPool(); + this.RefreshBoss(); + this.RefreshRwd(); + this.RefreshBtns(); + } + } + + private void RefreshBoss() + { + byte[] bossdifficult = this._doc.bossRushRow.bossdifficult; + bool flag = bossdifficult == null && bossdifficult.Length < 4; + if (!flag) + { + base.uiBehaviour.m_lblLayer.SetText(this._doc.respData.currank.ToString()); + base.uiBehaviour.m_lblProgress.SetText(this._doc.respData.currank + "/" + this._doc.respData.maxrank); + base.uiBehaviour.m_lblTitle.SetText(this.bossName); + base.uiBehaviour.m_lblDesc.SetText(this._doc.bossRushRow.bosstip); + base.uiBehaviour.m_lblDiff.SetText(XStringDefineProxy.GetString("BOSSRUSH_DIF" + bossdifficult[0])); + base.uiBehaviour.m_lblLeft.SetText(this._doc.leftChanllageCnt + "/" + this._doc.respData.joincountmax); + for (int i = 0; i < (int)bossdifficult[1]; i++) + { + GameObject gameObject = base.uiBehaviour.m_attpool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(-6 + 24 * i), 3f, 0f); + } + for (int j = 0; j < (int)bossdifficult[2]; j++) + { + GameObject gameObject2 = base.uiBehaviour.m_defpool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3((float)(-6 + 24 * j), -23f, 0f); + } + for (int k = 0; k < (int)bossdifficult[3]; k++) + { + GameObject gameObject3 = base.uiBehaviour.m_lifepool.FetchGameObject(false); + gameObject3.transform.localPosition = new Vector3((float)(-6 + 24 * k), -49f, 0f); + } + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._doc.entityRow.ID); + bool flag2 = byID != null && base.uiBehaviour != null; + if (flag2) + { + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, byID.PresentID, this.m_uiBehaviour.m_BossSnapshot, this.m_Dummy, 1f); + } + else + { + XSingleton.singleton.AddErrorLog("id: ", this._doc.entityRow.ID.ToString(), " mono: " + (base.uiBehaviour == null).ToString(), " enemydata: " + (byID == null).ToString(), null, null); + } + } + } + + private void RefreshRwd() + { + for (int i = 0; i < this._doc.bossRushRow.reward.Count; i++) + { + uint num = this._doc.bossRushRow.reward[i, 0]; + uint num2 = this._doc.bossRushRow.reward[i, 1]; + GameObject gameObject = base.uiBehaviour.m_rwdpool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num, (int)(num2 * this._doc.rwdRate), false); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnIconClick)); + gameObject.transform.localPosition = new Vector3((float)(36 + 90 * i), -63f, 0f); + } + this.m_uiBehaviour.m_sprBuff1.SetSprite(this._doc.bossBuff1Row.icon); + this.m_uiBehaviour.m_lblBuff1.SetText(this._doc.bossBuff1Row.Comment); + this.m_uiBehaviour.m_sprBuff2.SetSprite(this._doc.bossBuff2Row.icon); + this.m_uiBehaviour.m_lblBuff2.SetText(this._doc.bossBuff2Row.Comment); + int quality = this._doc.bossBuff1Row.Quality; + int quality2 = this._doc.bossBuff2Row.Quality; + string value = XSingleton.singleton.GetValue("Quality" + quality + "Color"); + string value2 = XSingleton.singleton.GetValue("Quality" + quality2 + "Color"); + this.m_uiBehaviour.m_lblBuff1.SetColor(XSingleton.singleton.ParseColor(value, 0)); + this.m_uiBehaviour.m_sprBuff1.SetColor(XSingleton.singleton.ParseColor(value, 0)); + this.m_uiBehaviour.m_lblBuff2.SetColor(XSingleton.singleton.ParseColor(value2, 0)); + this.m_uiBehaviour.m_sprBuff2.SetColor(XSingleton.singleton.ParseColor(value2, 0)); + } + + private void OnIconClick(IXUISprite spr) + { + XSingleton.singleton.ShowTooltipDialog((int)spr.ID, spr.gameObject); + } + + private void RefreshBtns() + { + bool flag = this._doc == null || this._doc.respData == null || !base.IsVisible(); + if (!flag) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag2 = !this.isPrivilege; + if (flag2) + { + this.RefreshNoPriviedge(); + } + else + { + this.RefreshPriviledge(); + } + this.m_uiBehaviour.m_btnBattle.SetEnable(this._doc.leftChanllageCnt > 0, false); + this.m_uiBehaviour.m_lblBattle.SetText((this._doc.respData.currank > 1) ? XStringDefineProxy.GetString("BOSSRUSH_CHANG") : XStringDefineProxy.GetString("BOSSRUSH_CHAN")); + base.uiBehaviour.m_lblRefresh.SetVisible(false); + base.uiBehaviour.m_sprVip.SetGrey(this.isPrivilege); + base.uiBehaviour.m_lblPrivilege.SetEnabled(this.isPrivilege); + base.uiBehaviour.m_sprVip.SetSprite(specificDocument.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Adventurer)); + } + } + + private void RefreshPriviledge() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Adventurer); + int num = (memberPrivilegeConfig == null) ? 0 : memberPrivilegeConfig.BossRushCount; + int num2 = (specificDocument.PayMemberPrivilege == null) ? 0 : specificDocument.PayMemberPrivilege.usedBossRushCount; + int currefreshcount = this._doc.respData.currefreshcount; + bool flag = num2 < num || currefreshcount < num + this._doc.refreshConfig.freeIndex; + this.m_uiBehaviour.m_lblFree.SetVisible(flag); + this.m_uiBehaviour.m_sprCoin.gameObject.SetActive(!flag); + bool flag2 = !flag; + if (flag2) + { + bool flag3 = this._doc.refreshConfig.item1Index > currefreshcount - num2; + if (flag3) + { + this.refreshItemid = this._doc.refreshConfig.item1Id; + this.refreshCost = this._doc.refreshConfig.item1Start + this._doc.refreshConfig.item1Add * (currefreshcount - this._doc.refreshConfig.freeIndex - num2); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._doc.refreshConfig.item1Id); + string sprite = XSingleton.singleton.ChooseProfString(itemConf.ItemIcon1, XItemDrawerMgr.Param.Profession); + base.uiBehaviour.m_sprCoin.SetSprite(sprite); + } + else + { + this.refreshItemid = this._doc.refreshConfig.item2Id; + this.refreshCost = this._doc.refreshConfig.item2Start + this._doc.refreshConfig.item2Add * (currefreshcount - this._doc.refreshConfig.item1Index - num2); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf(this._doc.refreshConfig.item2Id); + bool flag4 = itemConf2 != null; + if (flag4) + { + string sprite2 = XSingleton.singleton.ChooseProfString(itemConf2.ItemIcon1, XItemDrawerMgr.Param.Profession); + base.uiBehaviour.m_sprCoin.SetSprite(sprite2); + } + } + this.m_uiBehaviour.m_lblCost.SetText(this.refreshCost.ToString()); + } + else + { + this.refreshCost = 0; + } + base.uiBehaviour.m_lblPrivilege.SetText(XStringDefineProxy.GetString("BOSSRUSH_PRIVILEGE", new object[] + { + num + })); + } + + private void RefreshNoPriviedge() + { + int currefreshcount = this._doc.respData.currefreshcount; + bool flag = this._doc.refreshConfig.freeIndex > currefreshcount; + this.m_uiBehaviour.m_lblFree.SetVisible(flag); + this.m_uiBehaviour.m_sprCoin.gameObject.SetActive(!flag); + bool flag2 = !flag; + if (flag2) + { + bool flag3 = this._doc.refreshConfig.item1Index > currefreshcount; + if (flag3) + { + this.refreshItemid = this._doc.refreshConfig.item1Id; + this.refreshCost = this._doc.refreshConfig.item1Start + this._doc.refreshConfig.item1Add * (currefreshcount - this._doc.refreshConfig.freeIndex); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._doc.refreshConfig.item1Id); + bool flag4 = itemConf != null; + if (flag4) + { + string sprite = XSingleton.singleton.ChooseProfString(itemConf.ItemIcon1, XItemDrawerMgr.Param.Profession); + base.uiBehaviour.m_sprCoin.SetSprite(sprite); + } + } + else + { + this.refreshItemid = this._doc.refreshConfig.item2Id; + this.refreshCost = this._doc.refreshConfig.item2Start + this._doc.refreshConfig.item2Add * (currefreshcount - this._doc.refreshConfig.item1Index); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf(this._doc.refreshConfig.item2Id); + bool flag5 = itemConf2 != null; + if (flag5) + { + string sprite2 = XSingleton.singleton.ChooseProfString(itemConf2.ItemIcon1, XItemDrawerMgr.Param.Profession); + base.uiBehaviour.m_sprCoin.SetSprite(sprite2); + } + } + this.m_uiBehaviour.m_lblCost.SetText(this.refreshCost.ToString()); + } + else + { + this.refreshCost = 0; + } + } + + public void PlayRefreshEff() + { + base.uiBehaviour.m_objFx.SetActive(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/BossRushDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/BossRushDlg.cs.meta new file mode 100644 index 00000000..dc53fc9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/BossRushDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e0f380885d278b4cbe4f6ab6cef5b39 +timeCreated: 1611403809 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CandidatesViewRecommendType.cs b/Client/Assets/Scripts/XMainClient/UI/CandidatesViewRecommendType.cs new file mode 100644 index 00000000..f1f41c5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CandidatesViewRecommendType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + public enum CandidatesViewRecommendType + { + None, + Pupil, + Master + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CandidatesViewRecommendType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CandidatesViewRecommendType.cs.meta new file mode 100644 index 00000000..6c53ef72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CandidatesViewRecommendType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7adbb62180257b34aa1da59b7c188fe8 +timeCreated: 1611403992 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CandidatesViewType.cs b/Client/Assets/Scripts/XMainClient/UI/CandidatesViewType.cs new file mode 100644 index 00000000..c01dae28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CandidatesViewType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + public enum CandidatesViewType + { + None, + Recommend, + Application + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CandidatesViewType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CandidatesViewType.cs.meta new file mode 100644 index 00000000..9bd71d54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CandidatesViewType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3205fd0a94a0a9b4fab3af01f5724f10 +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ChallegeType.cs b/Client/Assets/Scripts/XMainClient/UI/ChallegeType.cs new file mode 100644 index 00000000..d6dfd76c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ChallegeType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + internal enum ChallegeType + { + CT_COMBO = 2, + CT_PASSTIME = 4, + CT_OPENCHEST = 7 + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ChallegeType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ChallegeType.cs.meta new file mode 100644 index 00000000..5fbb590c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ChallegeType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f193263023e31974aabdb6dceff213f7 +timeCreated: 1611404838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ChallengeDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ChallengeDlg.cs new file mode 100644 index 00000000..38bf566f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ChallengeDlg.cs @@ -0,0 +1,190 @@ +using System; +using System.Text; +using UILib; +using UnityEngine; +using XMainClient.UI.Battle; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ChallengeDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/ChallengeDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XLevelDocument _doc; + + private RandomTaskTable.RowData _CurrentTaskData; + + private StringBuilder _SB = new StringBuilder(); + + protected override void Init() + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Accept.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnAcceptClick)); + base.uiBehaviour.m_HintBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHintClick)); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._UpdateState(); + } + + public void ShowRandomTask(int rtask) + { + this.SetVisible(true, true); + base.uiBehaviour.m_Tween.SetTweenGroup(1); + base.uiBehaviour.m_Tween.RegisterOnFinishEventHandler(null); + base.uiBehaviour.m_Tween.PlayTween(true, -1f); + RandomTaskTable.RowData randomTaskData = this._doc.GetRandomTaskData(rtask); + this._CurrentTaskData = randomTaskData; + string text = string.Format(randomTaskData.TaskDescription, randomTaskData.TaskParam); + base.uiBehaviour.m_MainDesc.SetText(text); + base.uiBehaviour.m_HintDesc.SetText(text); + bool flag = randomTaskData.TaskReward.Count == 1; + if (flag) + { + base.uiBehaviour.m_RewardValue[0].gameObject.SetActive(false); + base.uiBehaviour.m_RewardValue[1].gameObject.SetActive(false); + base.uiBehaviour.m_RewardValue[2].gameObject.SetActive(true); + this.SetReward(2, randomTaskData.TaskReward[0, 0], randomTaskData.TaskReward[0, 1]); + } + else + { + bool flag2 = randomTaskData.TaskReward.Count == 2; + if (flag2) + { + base.uiBehaviour.m_RewardValue[0].gameObject.SetActive(true); + base.uiBehaviour.m_RewardValue[1].gameObject.SetActive(true); + base.uiBehaviour.m_RewardValue[2].gameObject.SetActive(false); + this.SetReward(0, randomTaskData.TaskReward[0, 0], randomTaskData.TaskReward[0, 1]); + this.SetReward(1, randomTaskData.TaskReward[1, 0], randomTaskData.TaskReward[1, 1]); + } + } + base.uiBehaviour.m_HintBg.gameObject.SetActive(false); + this._UpdateState(); + } + + protected void OnTweenOver(IXUITweenTool tween) + { + base.uiBehaviour.m_Tween.gameObject.SetActive(false); + } + + protected void SetReward(int slot, int itemid, int value) + { + base.uiBehaviour.m_RewardValue[slot].SetText(value.ToString()); + base.uiBehaviour.m_RewardIcon[slot].SetSprite(XBagDocument.GetItemSmallIcon(itemid, 0u)); + } + + protected void OnAcceptClick(IXUILabel lb) + { + base.uiBehaviour.m_Tween.SetTweenGroup(2); + base.uiBehaviour.m_Tween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnTweenOver)); + base.uiBehaviour.m_Tween.PlayTween(true, -1f); + base.uiBehaviour.m_HintBg.gameObject.SetActive(true); + } + + protected void OnHintClick(IXUISprite sp) + { + base.uiBehaviour.m_Tween.SetTweenGroup(1); + base.uiBehaviour.m_Tween.RegisterOnFinishEventHandler(null); + base.uiBehaviour.m_Tween.PlayTween(true, -1f); + } + + private void _UpdateState() + { + bool flag = this._CurrentTaskData == null; + if (!flag) + { + string text = null; + ChallegeType taskCondition = (ChallegeType)this._CurrentTaskData.TaskCondition; + if (taskCondition != ChallegeType.CT_COMBO) + { + if (taskCondition != ChallegeType.CT_PASSTIME) + { + if (taskCondition == ChallegeType.CT_OPENCHEST) + { + bool flag2 = XSingleton.singleton.ls._box_enemy_kill >= this._CurrentTaskData.TaskParam; + if (flag2) + { + text = XStringDefineProxy.GetString("LEVEL_CHALLENGE_FINISH"); + } + else + { + text = string.Format("{0}/{1}", XSingleton.singleton.ls._box_enemy_kill, this._CurrentTaskData.TaskParam); + } + } + } + else + { + bool flag3 = XSingleton.singleton.ls._end_time > 0f && (float)this._CurrentTaskData.TaskParam - (XSingleton.singleton.ls._end_time - XSingleton.singleton.ls._start_time) >= 0f; + if (flag3) + { + text = XStringDefineProxy.GetString("LEVEL_CHALLENGE_FINISH"); + } + else + { + int num = (int)((float)this._CurrentTaskData.TaskParam - (Time.time - XSingleton.singleton.ls._start_time)); + bool flag4 = num < 0; + if (flag4) + { + num = 0; + } + text = XSingleton.singleton.TimeFormatString(num, 2, 2, 4, false, true); + } + } + } + else + { + bool flag5 = (ulong)XSingleton.singleton.ls._max_combo >= (ulong)((long)this._CurrentTaskData.TaskParam); + if (flag5) + { + text = XStringDefineProxy.GetString("LEVEL_CHALLENGE_FINISH"); + } + else + { + text = string.Format("{0}/{1}", XSingleton.singleton.ls._max_combo, this._CurrentTaskData.TaskParam); + } + } + bool flag6 = text != null; + if (flag6) + { + this._SB.Remove(0, this._SB.Length); + this._SB.Append('(').Append(text).Append(')'); + base.uiBehaviour.m_HintState.SetText(this._SB.ToString()); + } + else + { + base.uiBehaviour.m_HintState.SetText(""); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ChallengeDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ChallengeDlg.cs.meta new file mode 100644 index 00000000..8895f89c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ChallengeDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e1fef16037c7d2d4da2ba9bdfbc7d7e9 +timeCreated: 1611404703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CharacterEquipBagHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CharacterEquipBagHandler.cs new file mode 100644 index 00000000..08bde5ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CharacterEquipBagHandler.cs @@ -0,0 +1,416 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CharacterEquipBagHandler : DlgHandlerBase + { + private XBagWindow bagWindow + { + get + { + return DlgBase.singleton.BagWindow; + } + } + + private XItemMorePowerfulTipMgr powerfullMgr + { + get + { + return DlgBase.singleton.RedPointMgr; + } + } + + private XItemMorePowerfulTipMgr newItemMgr + { + get + { + return DlgBase.singleton.NewItemMgr; + } + } + + protected override string FileName + { + get + { + return "ItemNew/EquipListPanel"; + } + } + + private XCharacterEquipDocument _doc; + + private EnhanceMasterHandler m_EnhanceMasterHandler; + + private GameObject m_topGo; + + private IXUILabel m_masterHisMaxLevelLab; + + private IXUIButton m_mastetBtn; + + private IXUIButton m_BtnShowAttr; + + private IXUIButton m_BtnShowTitle; + + private GameObject m_TitleRedPoint; + + private IXUIButton m_Help; + + private IXUILabel m_bagNumLab; + + private List m_RedPointEquipPosList = new List(); + + public IXUIButton m_expandBagBtn; + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XCharacterEquipDocument.uuID) as XCharacterEquipDocument); + this._doc.Handler = this; + this.m_topGo = base.PanelObject.transform.Find("Top").gameObject; + this.m_masterHisMaxLevelLab = (base.PanelObject.transform.Find("Top/Lab").GetComponent("XUILabel") as IXUILabel); + this.m_mastetBtn = (base.PanelObject.transform.Find("Top/Btn").GetComponent("XUIButton") as IXUIButton); + this.m_BtnShowAttr = (base.transform.Find("ShowAttr").GetComponent("XUIButton") as IXUIButton); + this.m_BtnShowTitle = (base.transform.Find("ShowTitle").GetComponent("XUIButton") as IXUIButton); + this.m_TitleRedPoint = base.transform.Find("ShowTitle/RedPoint").gameObject; + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_bagNumLab = (base.PanelObject.transform.Find("BagNum").GetComponent("XUILabel") as IXUILabel); + this.m_expandBagBtn = (base.PanelObject.transform.Find("add").GetComponent("XUIButton") as IXUIButton); + BagExpandItemListTable.RowData expandItemConfByType = XBagDocument.GetExpandItemConfByType((uint)XFastEnumIntEqualityComparer.ToInt(BagType.EquipBag)); + this.m_expandBagBtn.gameObject.SetActive(expandItemConfByType != null); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_mastetBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowEnhanceMaster)); + this.m_BtnShowAttr.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowAttrClick)); + this.m_BtnShowTitle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowTitleClick)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + this.m_expandBagBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBagExpandClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Item_Equip); + return true; + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshBag(); + this._doc.NewItems.bCanClear = true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshBag(); + this.ShowEnhanceMasterLevel(); + this._doc.NewItems.bCanClear = true; + bool flag = this.m_EnhanceMasterHandler != null; + if (flag) + { + this.m_EnhanceMasterHandler.SetVisible(false); + } + this.RefreshRedPoints(); + this.RefreshTitleRedPoint(); + this.SetBagNum(); + } + + public void RefreshRedPoints() + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton._equipHandler != null; + if (flag) + { + this.m_RedPointEquipPosList.Clear(); + XEnhanceDocument specificDocument = XDocuments.GetSpecificDocument(XEnhanceDocument.uuID); + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Enhance); + if (flag2) + { + for (int i = 0; i < specificDocument.MorePowerfulEquips.Count; i++) + { + this.m_RedPointEquipPosList.Add(specificDocument.MorePowerfulEquips[i]); + } + } + XSmeltDocument doc = XSmeltDocument.Doc; + doc.GetRedDotEquips(); + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Smelting); + if (flag3) + { + for (int j = 0; j < doc.MorePowerfulEquips.Count; j++) + { + bool flag4 = !this.m_RedPointEquipPosList.Contains(doc.MorePowerfulEquips[j]); + if (flag4) + { + this.m_RedPointEquipPosList.Add(doc.MorePowerfulEquips[j]); + } + } + } + bool flag5 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Enchant); + if (flag5) + { + XEnchantDocument specificDocument2 = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + for (int k = 0; k < XBagDocument.EquipMax; k++) + { + bool flag6 = specificDocument2.RedPointStates[k]; + if (flag6) + { + this.m_RedPointEquipPosList.Add(k); + } + } + } + DlgBase.singleton._equipHandler.SetArrows(this.m_RedPointEquipPosList); + } + } + + public void RefreshTitleRedPoint() + { + this.m_BtnShowTitle.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Title)); + XTitleDocument specificDocument = XDocuments.GetSpecificDocument(XTitleDocument.uuID); + this.m_TitleRedPoint.SetActive(specificDocument.bEnableTitleLevelUp); + } + + protected override void OnHide() + { + this.powerfullMgr.ReturnAll(); + this.newItemMgr.ReturnAll(); + this.bagWindow.OnHide(); + this._doc.NewItems.TryClear(); + base.OnHide(); + } + + private void RefreshBag() + { + this.bagWindow.ChangeData(new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this._doc.GetEquips)); + DlgBase.singleton._equipHandler.RegisterItemClickEvents(null); + this.bagWindow.OnShow(); + this.SetBagNum(); + } + + public override void OnUnload() + { + this._doc.Handler = null; + DlgHandlerBase.EnsureUnload(ref this.m_EnhanceMasterHandler); + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshBag(); + } + + public void Refresh() + { + this.bagWindow.RefreshWindow(); + this.SetBagNum(); + } + + public void ShowEnhanceMasterLevel() + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Enhance); + if (flag) + { + this.m_topGo.SetActive(false); + } + else + { + this.m_topGo.SetActive(true); + this.m_masterHisMaxLevelLab.SetText(string.Format(XStringDefineProxy.GetString("EnhanceMasterLevel"), XEnhanceDocument.Doc.HistoryMaxLevel)); + } + } + + private void SetBagNum() + { + int count = this._doc.GetEquips().Count; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + VIPTable.RowData byVIP = specificDocument.VIPReader.GetByVIP((int)specificDocument.VipLevel); + bool flag = byVIP != null; + if (flag) + { + uint num = byVIP.EquipMax; + BagExpandData bagExpandData = XBagDocument.BagDoc.GetBagExpandData(BagType.EquipBag); + bool flag2 = bagExpandData != null; + if (flag2) + { + num += bagExpandData.ExpandNum; + } + bool flag3 = (long)count >= (long)((ulong)num); + if (flag3) + { + this.m_bagNumLab.SetText(string.Format("[ff4366]{0}[-]/{1}", count, num)); + } + else + { + this.m_bagNumLab.SetText(string.Format("{0}[-]/{1}", count, num)); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + Transform transform = t.Find("Icon/SupplementBrought"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(false); + } + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag2 = this.bagWindow.m_XItemList == null || index >= this.bagWindow.m_XItemList.Count || index < 0; + if (flag2) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + this.powerfullMgr.ReturnInstance(ixuisprite); + this.newItemMgr.ReturnInstance(ixuisprite); + t.gameObject.name = XSingleton.singleton.StringCombine("empty", index.ToString()); + } + else + { + XSingleton.singleton.DrawItem(t.gameObject, this.bagWindow.m_XItemList[index]); + ixuisprite.ID = this.bagWindow.m_XItemList[index].uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + t.gameObject.name = XSingleton.singleton.StringCombine("equip", this.bagWindow.m_XItemList[index].itemID.ToString()); + EquipCompare mix = this._doc.IsEquipMorePowerful(ixuisprite.ID); + EquipCompare final = XCharacterEquipDocument.GetFinal(mix); + bool flag3 = final == EquipCompare.EC_MORE_POWERFUL; + if (flag3) + { + this.powerfullMgr.SetTip(ixuisprite); + } + else + { + this.powerfullMgr.ReturnInstance(ixuisprite); + } + bool flag4 = this._doc.NewItems.IsNew(ixuisprite.ID); + if (flag4) + { + this.newItemMgr.SetTip(ixuisprite); + } + else + { + this.newItemMgr.ReturnInstance(ixuisprite); + } + } + } + + public void LoadEquip(XItem item, int slot) + { + DlgBase.singleton.HideToolTip(true); + bool flag = DlgBase.singleton._equipHandler != null && DlgBase.singleton._equipHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._equipHandler.SetEquipSlot(slot, item); + } + this.Refresh(); + } + + public void UnloadEquip(int slot) + { + DlgBase.singleton.HideToolTip(true); + bool flag = DlgBase.singleton._equipHandler != null && DlgBase.singleton._equipHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._equipHandler.SetEquipSlot(slot, null); + } + this.Refresh(); + } + + public void AddItem(List items) + { + this.bagWindow.UpdateBag(); + this.SetBagNum(); + } + + public void RemoveItem(List uids) + { + this.bagWindow.UpdateBag(); + this.SetBagNum(); + foreach (ulong num in uids) + { + bool flag = num == DlgBase.singleton.MainItemUID; + if (flag) + { + DlgBase.singleton.HideToolTip(false); + } + } + } + + public void ItemNumChanged(XItem item) + { + this.bagWindow.UpdateItem(item); + this.SetBagNum(); + } + + public void SwapItem(XItem item1, XItem item2, int slot) + { + DlgBase.singleton.HideToolTip(true); + bool flag = DlgBase.singleton._equipHandler != null && DlgBase.singleton._equipHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._equipHandler.SetEquipSlot(slot, item1); + } + this.bagWindow.ReplaceItem(item1, item2); + } + + public void UpdateItem(XItem item) + { + this.bagWindow.UpdateItem(item); + DlgBase.singleton._equipHandler.UpdateEquipSlot(item); + bool flag = item.uid == DlgBase.singleton.MainItemUID; + if (flag) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag2 = item.uid == DlgBase.singleton.MainItemUID; + if (flag2) + { + DlgBase.singleton.HideToolTip(true); + } + } + + private void _OnItemClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID == null; + if (!flag) + { + bool flag2 = this._doc.NewItems.RemoveItem(iSp.ID, itemByUID.Type, false); + if (flag2) + { + this._doc.GetEquips(); + } + CharacterEquipHandler.OnItemClicked(iSp); + } + } + + private bool OnShowEnhanceMaster(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this.m_EnhanceMasterHandler, base.PanelObject.transform.parent.parent.Find("LeftPanel"), true, this); + return true; + } + + private bool OnShowAttrClick(IXUIButton btn) + { + DlgBase.singleton._CharacterAttrHandler.SetVisible(true); + return true; + } + + private bool OnShowTitleClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + public bool OnBagExpandClicked(IXUIButton button) + { + XBagDocument.BagDoc.UseBagExpandTicket(BagType.EquipBag); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CharacterEquipBagHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CharacterEquipBagHandler.cs.meta new file mode 100644 index 00000000..21141039 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CharacterEquipBagHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b94fb0ffcd33284295ebb9c29c0604e +timeCreated: 1611403994 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CharacterEquipHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CharacterEquipHandler.cs new file mode 100644 index 00000000..08241a9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CharacterEquipHandler.cs @@ -0,0 +1,456 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CharacterEquipHandler : DlgHandlerBase + { + public GameObject[] EquipGo + { + get + { + return this.m_EquipGo; + } + } + + protected override string FileName + { + get + { + return "ItemNew/EquipFrame"; + } + } + + public string EnhanceMasterPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_enhanceMasterPath); + if (flag) + { + this.m_enhanceMasterPath = XSingleton.singleton.GetValue("EnhanceMasterEffectPath"); + } + return this.m_enhanceMasterPath; + } + } + + public static int Equip_Slot_Count = XBagDocument.EquipMax; + + private GameObject[] m_EquipGo = new GameObject[CharacterEquipHandler.Equip_Slot_Count]; + + public IXUISprite[] m_EquipSlots = new IXUISprite[CharacterEquipHandler.Equip_Slot_Count]; + + public IXUISprite[] m_EquipBg = new IXUISprite[CharacterEquipHandler.Equip_Slot_Count]; + + private XItemSelector _ItemSelector = new XItemSelector(0u); + + private XItemMorePowerfulTipMgr _MorePowerfulMgr = new XItemMorePowerfulTipMgr(); + + private XItemMorePowerfulTipMgr _WeakMorePowerfulMgr = new XItemMorePowerfulTipMgr(); + + private XItemMorePowerfulTipMgr _ItemShining = null; + + private XItemMorePowerfulTipMgr _SuitFxMgr = new XItemMorePowerfulTipMgr(); + + private Dictionary _ShiningTimerTokens = new Dictionary(); + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private bool bNormal = true; + + private XFx m_EnhanceMasterEffect; + + private ArtifactQuanlityFx[] m_fuseBreakFx = new ArtifactQuanlityFx[CharacterEquipHandler.Equip_Slot_Count]; + + private EquipFusionDocument m_doc; + + private string m_enhanceMasterPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.m_doc = EquipFusionDocument.Doc; + this.m_ItemPool.SetupPool(base.PanelObject, base.PanelObject.transform.Find("ItemTpl").gameObject, (uint)CharacterEquipHandler.Equip_Slot_Count, false); + for (int i = 0; i < CharacterEquipHandler.Equip_Slot_Count; i++) + { + this.m_EquipGo[i] = this.m_ItemPool.FetchGameObject(false); + GameObject gameObject = base.PanelObject.transform.Find("Part" + i).gameObject; + this.m_EquipGo[i].transform.localPosition = gameObject.transform.localPosition; + this.m_EquipSlots[i] = (this.m_EquipGo[i].transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_EquipBg[i] = (gameObject.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + } + this._MorePowerfulMgr.Load("ItemMorePowerfulTip2"); + this._MorePowerfulMgr.SetupPool(base.PanelObject); + this._WeakMorePowerfulMgr.SetupPool(base.PanelObject); + Transform transform = base.PanelObject.transform.Find("SuitFx"); + bool flag = transform != null; + if (flag) + { + this._SuitFxMgr.LoadFromUI(transform.gameObject); + this._SuitFxMgr.SetupPool(base.PanelObject); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = 0; i < CharacterEquipHandler.Equip_Slot_Count; i++) + { + this.m_EquipBg[i].ID = (ulong)((long)i); + this.m_EquipBg[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSlotBgClick)); + } + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this.m_EnhanceMasterEffect != null; + if (flag) + { + this.m_EnhanceMasterEffect.SetActive(false); + } + this._ItemSelector.Hide(); + this._MorePowerfulMgr.ReturnAll(); + this._WeakMorePowerfulMgr.ReturnAll(); + this._SuitFxMgr.ReturnAll(); + this.ShowEquipments(); + } + + protected override void OnHide() + { + bool flag = this.m_EnhanceMasterEffect != null; + if (flag) + { + this.m_EnhanceMasterEffect.SetActive(false); + } + this._StopItemShining(); + this.RestQuanlityFx(); + base.OnHide(); + } + + public override void OnUnload() + { + this._ItemSelector.Unload(); + this._MorePowerfulMgr.Unload(); + this._WeakMorePowerfulMgr.Unload(); + this._SuitFxMgr.Unload(); + bool flag = this.m_EnhanceMasterEffect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_EnhanceMasterEffect, true); + this.m_EnhanceMasterEffect = null; + } + this._StopItemShining(); + for (int i = 0; i < CharacterEquipHandler.Equip_Slot_Count; i++) + { + bool flag2 = this.m_fuseBreakFx[i] != null; + if (flag2) + { + this.m_fuseBreakFx[i].Reset(); + this.m_fuseBreakFx[i] = null; + } + } + base.OnUnload(); + } + + public override void StackRefresh() + { + bool flag = this.m_EnhanceMasterEffect != null; + if (flag) + { + this.m_EnhanceMasterEffect.SetActive(false); + } + base.StackRefresh(); + } + + private void _StopItemShining() + { + foreach (uint token in this._ShiningTimerTokens.Values) + { + XSingleton.singleton.KillTimer(token); + } + this._ShiningTimerTokens.Clear(); + } + + private void _StartItemShining() + { + this._StopItemShining(); + this._ItemShining.FakeReturnAll(); + for (int i = XBagDocument.BodyPosition(EquipPosition.EQUIP_START); i < XBagDocument.BodyPosition(EquipPosition.EQUIP_END); i++) + { + bool flag = this.m_EquipSlots[i].ID == 0UL; + if (!flag) + { + GameObject gameObject = this._ItemShining.SetTip(this.m_EquipSlots[i]); + this._ShowItemShining(gameObject); + gameObject.transform.Find("Icon").gameObject.SetActive(false); + } + } + this._ItemShining.ActualReturnAll(); + } + + private void _ShowItemShining(object o) + { + GameObject gameObject = o as GameObject; + bool flag = this._ShiningTimerTokens.ContainsKey(gameObject); + if (flag) + { + IXUISpriteAnimation ixuispriteAnimation = gameObject.transform.Find("Icon").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.Reset(); + ixuispriteAnimation.gameObject.SetActive(true); + } + float interval = XSingleton.singleton.RandomFloat(3f, 15f); + this._ShiningTimerTokens[gameObject] = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this._ShowItemShining), gameObject); + } + + public void SetRedPoints(List equipList) + { + this._MorePowerfulMgr.ReturnAll(); + bool flag = equipList != null; + if (flag) + { + foreach (int num in equipList) + { + this._MorePowerfulMgr.SetTip(this.m_EquipSlots[num]); + } + } + } + + public void SetArrows(List equipList) + { + this._WeakMorePowerfulMgr.ReturnAll(); + bool flag = equipList != null; + if (flag) + { + foreach (int num in equipList) + { + this._WeakMorePowerfulMgr.SetTip(this.m_EquipSlots[num]); + } + } + } + + public void ShowEquipments() + { + XBodyBag equipBag = XSingleton.singleton.Doc.XBagDoc.EquipBag; + for (int i = XBagDocument.BodyPosition(EquipPosition.EQUIP_START); i < XBagDocument.BodyPosition(EquipPosition.EQUIP_END); i++) + { + XItemDrawerMgr.Param.bHideBinding = true; + bool flag = equipBag[i] != null; + if (flag) + { + this.m_EquipGo[i].SetActive(true); + XSingleton.singleton.DrawItem(this.m_EquipGo[i], equipBag[i]); + this.m_EquipSlots[i].ID = equipBag[i].uid; + XEquipItem xequipItem = equipBag[i] as XEquipItem; + this.SetEffect(this.m_EquipGo[i], xequipItem.fuseInfo.BreakNum, i); + } + else + { + XSingleton.singleton.DrawItem(this.m_EquipGo[i], null); + this.m_EquipSlots[i].ID = 0UL; + this.SetEffect(this.m_EquipGo[i], 0u, i); + } + } + } + + public void ShowNormalEquip(bool bFlag) + { + this.bNormal = bFlag; + for (int i = XBagDocument.BodyPosition(EquipPosition.EQUIP_START); i < XBagDocument.BodyPosition(EquipPosition.EQUIP_END); i++) + { + this.m_EquipGo[i].SetActive(bFlag); + } + } + + public void PlayEnhanceMasterEffect() + { + bool flag = this.m_EnhanceMasterEffect != null; + if (flag) + { + this.m_EnhanceMasterEffect.SetActive(false); + } + bool flag2 = this.m_EnhanceMasterEffect == null; + if (flag2) + { + this.m_EnhanceMasterEffect = XSingleton.singleton.CreateFx(this.EnhanceMasterPath, null, true); + } + else + { + bool flag3 = this.m_EnhanceMasterEffect != null; + if (flag3) + { + this.m_EnhanceMasterEffect.SetActive(true); + } + } + this.m_EnhanceMasterEffect.Play(base.PanelObject.transform.parent.parent, Vector3.zero, Vector3.one, 1f, true, false); + } + + private void SetEffect(GameObject go, uint breakLevel, int slot) + { + bool flag = slot >= this.m_fuseBreakFx.Length; + if (!flag) + { + bool flag2 = go == null; + if (!flag2) + { + ArtifactQuanlityFx artifactQuanlityFx = this.m_fuseBreakFx[slot]; + bool flag3 = artifactQuanlityFx == null; + if (flag3) + { + artifactQuanlityFx = new ArtifactQuanlityFx(); + this.m_fuseBreakFx[slot] = artifactQuanlityFx; + } + string path; + bool flag4 = !this.m_doc.GetEffectPath(breakLevel, out path); + if (flag4) + { + artifactQuanlityFx.Reset(); + } + else + { + bool flag5 = !artifactQuanlityFx.IsCanReuse((ulong)breakLevel); + if (flag5) + { + artifactQuanlityFx.SetData((ulong)breakLevel, go.transform.Find("Icon/Icon/Effects"), path); + } + } + } + } + } + + private void RestQuanlityFx() + { + for (int i = 0; i < CharacterEquipHandler.Equip_Slot_Count; i++) + { + bool flag = this.m_fuseBreakFx[i] != null; + if (flag) + { + this.m_fuseBreakFx[i].Reset(); + } + } + } + + public void UpdateEquipSlot(XItem item) + { + bool flag = item == null; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + bool flag2 = equipConf == null; + if (!flag2) + { + bool flag3 = this.m_EquipSlots[(int)equipConf.EquipPos].ID == item.uid; + if (flag3) + { + XItemDrawerMgr.Param.bHideBinding = true; + XSingleton.singleton.DrawItem(this.m_EquipGo[(int)equipConf.EquipPos], item); + XEquipItem xequipItem = item as XEquipItem; + this.SetEffect(this.m_EquipGo[(int)equipConf.EquipPos], xequipItem.fuseInfo.BreakNum, (int)equipConf.EquipPos); + } + } + } + } + + public void SetEquipSlot(int slot, XItem item) + { + XItemDrawerMgr.Param.bHideBinding = true; + XSingleton.singleton.DrawItem(this.m_EquipGo[slot], item); + this.m_EquipSlots[slot].ID = ((item != null) ? item.uid : 0UL); + bool flag = item != null; + if (flag) + { + XEquipItem xequipItem = item as XEquipItem; + this.SetEffect(this.m_EquipGo[slot], xequipItem.fuseInfo.BreakNum, slot); + } + else + { + this.SetEffect(this.m_EquipGo[slot], 0u, slot); + } + } + + public void RegisterItemClickEvents(SpriteClickEventHandler handle = null) + { + SpriteClickEventHandler eventHandler = handle; + bool flag = handle == null; + if (flag) + { + eventHandler = new SpriteClickEventHandler(CharacterEquipHandler.OnItemClicked); + } + for (int i = 0; i < CharacterEquipHandler.Equip_Slot_Count; i++) + { + this.m_EquipSlots[i].RegisterSpriteClickEventHandler(eventHandler); + } + } + + public void SelectEquip(ulong uid) + { + bool flag = uid == 0UL; + if (flag) + { + this._ItemSelector.Hide(); + } + else + { + for (int i = 0; i < CharacterEquipHandler.Equip_Slot_Count; i++) + { + bool flag2 = this.m_EquipSlots[i].ID == uid; + if (flag2) + { + this._ItemSelector.Select(this.m_EquipSlots[i]); + break; + } + } + } + } + + public static void OnItemClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID != null; + if (flag) + { + XBodyBag bodyBag = itemByUID.Description.BodyBag; + bool flag2 = bodyBag != null && bodyBag.HasItem(itemByUID.uid); + if (flag2) + { + XSingleton.singleton.bEquiped = true; + XSingleton.singleton.ShowTooltipDialog(itemByUID, null, iSp, true, 0u); + } + else + { + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(itemByUID, iSp, true, 0u); + } + } + } + + private void _OnSlotBgClick(IXUISprite iSp) + { + EquipPosition equipPosition = (EquipPosition)iSp.ID; + string text = XSingleton.singleton.GetEquipPartName(equipPosition, true); + bool flag = equipPosition == EquipPosition.Earrings || equipPosition == EquipPosition.Rings || equipPosition == EquipPosition.Necklace; + if (flag) + { + text = XStringDefineProxy.GetString("SHIPIN_FROM", new object[] + { + text + }); + } + XSingleton.singleton.ShowSystemTip(text, "fece00"); + } + + public void PlaySuitFx(List equipPos) + { + this._SuitFxMgr.FakeReturnAll(); + for (int i = 0; i < equipPos.Count; i++) + { + GameObject gameObject = this._SuitFxMgr.SetTip(this.m_EquipSlots[equipPos[i]]); + IXUITweenTool ixuitweenTool = gameObject.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + this._SuitFxMgr.ActualReturnAll(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CharacterEquipHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CharacterEquipHandler.cs.meta new file mode 100644 index 00000000..1a757895 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CharacterEquipHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e61f0d4af6b8c94fa9e401484bb67c4 +timeCreated: 1611403203 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CharacterItemBagHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CharacterItemBagHandler.cs new file mode 100644 index 00000000..4444c86a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CharacterItemBagHandler.cs @@ -0,0 +1,412 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CharacterItemBagHandler : DlgHandlerBase + { + private XItemMorePowerfulTipMgr newItemMgr + { + get + { + return DlgBase.singleton.NewItemMgr; + } + } + + private XItemMorePowerfulTipMgr redPointMgr + { + get + { + return DlgBase.singleton.RedPointMgr; + } + } + + public XWheelOfFortuneHandler WheelOfFortune + { + get + { + return this._WheelOfFortune; + } + } + + protected override string FileName + { + get + { + return "ItemNew/BagListPanel"; + } + } + + private XCharacterItemDocument m_doc; + + private IXUILabel m_bagNumLab; + + private IXUIButton m_helpBtn; + + private IXUIButton m_expandBagBtn; + + private XBagWindow m_bagWindow; + + private XWheelOfFortuneHandler _WheelOfFortune; + + private XUIPool m_tabTplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Dictionary m_tabReddotDic = new Dictionary(); + + private Dictionary itemBtnDic = new Dictionary(); + + protected override void Init() + { + base.Init(); + GameObject gameObject = base.PanelObject.transform.Find("WheelOfFortune").gameObject; + DlgHandlerBase.EnsureCreate(ref this._WheelOfFortune, gameObject, this, false); + this.m_bagNumLab = (base.PanelObject.transform.Find("BagNum").GetComponent("XUILabel") as IXUILabel); + this.m_expandBagBtn = (base.PanelObject.transform.Find("add").GetComponent("XUIButton") as IXUIButton); + this.m_helpBtn = (base.PanelObject.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + gameObject = base.PanelObject.transform.Find("Items").gameObject; + this.m_bagWindow = new XBagWindow(gameObject, null, null); + this.m_bagWindow.Init(); + gameObject = base.PanelObject.transform.Find("TabsFrame/Tpl").gameObject; + this.m_tabTplPool.SetupPool(gameObject.transform.parent.gameObject, gameObject, 4u, false); + this.m_doc = (XSingleton.singleton.Doc.GetXComponent(XCharacterItemDocument.uuID) as XCharacterItemDocument); + this.m_doc.Handler = this; + BagExpandItemListTable.RowData expandItemConfByType = XBagDocument.GetExpandItemConfByType((uint)XFastEnumIntEqualityComparer.ToInt(BagType.ItemBag)); + this.m_expandBagBtn.gameObject.SetActive(expandItemConfByType != null); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_expandBagBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBagExpandClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_doc.BagType = 0u; + this.FillTabs(); + } + + protected override void OnHide() + { + this.m_bagWindow.OnHide(); + this.itemBtnDic.Clear(); + this.newItemMgr.ReturnAll(); + this.redPointMgr.ReturnAll(); + this.m_doc.NewItems.TryClear(); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshBag(); + this.UpdateTabRedDot(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._WheelOfFortune); + this.m_doc.Handler = null; + base.OnUnload(); + } + + private void FillTabs() + { + this.m_tabTplPool.ReturnAll(false); + bool flag = XCharacterItemDocument.TabList == null; + if (!flag) + { + int count = XCharacterItemDocument.TabList.Count; + this.m_tabReddotDic.Clear(); + for (int i = 0; i < count; i++) + { + XTuple xtuple = XCharacterItemDocument.TabList[i]; + bool flag2 = xtuple == null; + if (!flag2) + { + GameObject gameObject = this.m_tabTplPool.FetchGameObject(false); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(this.m_tabTplPool.TplWidth * i), 0f, 0f); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)xtuple.Item1; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabTooggleClicked)); + this.m_tabReddotDic.Add(xtuple.Item1, gameObject.transform.Find("Bg/RedPoint").gameObject); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(xtuple.Item2); + ixuilabel = (gameObject.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(xtuple.Item2); + bool flag3 = i == 0; + if (flag3) + { + ixuicheckBox.ForceSetFlag(true); + this.OnTabTooggleClicked(ixuicheckBox); + } + else + { + ixuicheckBox.ForceSetFlag(false); + } + } + } + this.UpdateTabRedDot(); + } + } + + private void FillContent() + { + this.RefreshBag(); + this._WheelOfFortune.SetVisible(false); + this.m_doc.NewItems.bCanClear = true; + } + + private void RefreshBag() + { + this.m_bagWindow.ChangeData(new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this.m_doc.GetItem)); + this.m_bagWindow.OnShow(); + this.SetBagNum(); + } + + public void Refresh() + { + this.m_bagWindow.RefreshWindow(); + this.SetBagNum(); + } + + public void UpdateBag() + { + this.itemBtnDic.Clear(); + this.m_bagWindow.UpdateBag(); + this.SetBagNum(); + } + + public void UpdateTabRedDot() + { + bool flag = this.m_tabReddotDic == null; + if (!flag) + { + foreach (KeyValuePair keyValuePair in this.m_tabReddotDic) + { + bool active; + bool flag2 = this.m_doc.m_bagTypeRedDotDic.TryGetValue(keyValuePair.Key, out active); + if (flag2) + { + bool flag3 = keyValuePair.Value != null; + if (flag3) + { + keyValuePair.Value.SetActive(active); + } + } + else + { + bool flag4 = keyValuePair.Value != null; + if (flag4) + { + keyValuePair.Value.SetActive(false); + } + } + } + } + } + + private void SetBagNum() + { + int totalNum = this.m_doc.GetTotalNum(); + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + VIPTable.RowData byVIP = specificDocument.VIPReader.GetByVIP((int)specificDocument.VipLevel); + bool flag = byVIP != null; + if (flag) + { + uint num = byVIP.BagMax; + BagExpandData bagExpandData = XBagDocument.BagDoc.GetBagExpandData(BagType.ItemBag); + bool flag2 = bagExpandData != null; + if (flag2) + { + num += bagExpandData.ExpandNum; + } + bool flag3 = (long)totalNum >= (long)((ulong)num); + if (flag3) + { + this.m_bagNumLab.SetText(string.Format("[ff4366]{0}[-]/{1}", totalNum, num)); + } + else + { + this.m_bagNumLab.SetText(string.Format("{0}[-]/{1}", totalNum, num)); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("RedPoint").gameObject; + bool flag = this.m_bagWindow.m_XItemList == null || index >= this.m_bagWindow.m_XItemList.Count || index < 0; + if (flag) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + this.newItemMgr.ReturnInstance(ixuisprite); + gameObject.SetActive(false); + t.gameObject.name = XSingleton.singleton.StringCombine("empty", index.ToString()); + } + else + { + t.gameObject.name = XSingleton.singleton.StringCombine("item", this.m_bagWindow.m_XItemList[index].itemID.ToString()); + XItem xitem = this.m_bagWindow.m_XItemList[index]; + XSingleton.singleton.DrawItem(t.gameObject, xitem); + ixuisprite.ID = xitem.uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + bool flag2 = this.itemBtnDic.ContainsKey(ixuisprite.ID); + if (flag2) + { + this.itemBtnDic[ixuisprite.ID] = ixuisprite; + } + else + { + this.itemBtnDic.Add(ixuisprite.ID, ixuisprite); + } + bool flag3 = this.m_doc.NewItems.IsNew(ixuisprite.ID); + if (flag3) + { + this.newItemMgr.SetTip(ixuisprite); + } + else + { + this.newItemMgr.ReturnInstance(ixuisprite); + } + bool flag4 = this.m_doc.AvailableItems.IsNew(ixuisprite.ID); + if (flag4) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + } + } + + public void AddItem(List items) + { + this.m_bagWindow.UpdateBag(); + } + + public void RemoveItem(List uids) + { + this.UpdateBag(); + foreach (ulong num in uids) + { + bool flag = num == DlgBase.singleton.MainItemUID; + if (flag) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag2 = num == DlgBase.singleton.MainItemUID; + if (flag2) + { + DlgBase.singleton.HideToolTip(true); + } + } + } + + public void ItemNumChanged(XItem item) + { + this.m_bagWindow.UpdateItem(item); + } + + public void UpdateItem(XItem item) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + bool flag = equipConf == null; + if (flag) + { + this.m_bagWindow.UpdateItem(item); + } + bool flag2 = item.uid == DlgBase.singleton.MainItemUID; + if (flag2) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag3 = item.uid == DlgBase.singleton.MainItemUID; + if (flag3) + { + DlgBase.singleton.HideToolTip(true); + } + } + + public void RefreshTips(ulong uid) + { + IXUISprite ixuisprite; + bool flag = this.itemBtnDic.TryGetValue(uid, out ixuisprite); + if (flag) + { + bool flag2 = ixuisprite == null; + if (!flag2) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(ixuisprite.ID); + bool flag3 = itemByUID == null; + if (!flag3) + { + bool flag4 = itemByUID.Type == ItemType.PANDORA; + if (flag4) + { + PandoraHeart.RowData pandoraHeartConf = XBagDocument.GetPandoraHeartConf(itemByUID.itemID, XSingleton.singleton.XPlayerData.BasicTypeID); + int num = 0; + bool flag5 = pandoraHeartConf != null; + if (flag5) + { + num = XBagDocument.BagDoc.ItemBag.GetItemCount((int)pandoraHeartConf.FireID); + } + bool flag6 = num > 2; + if (!flag6) + { + this._OnItemClicked(ixuisprite); + } + } + } + } + } + } + + private void _OnItemClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID == null; + if (!flag) + { + bool flag2 = this.m_doc.NewItems.RemoveItem(iSp.ID, itemByUID.Type, false); + if (flag2) + { + this.Refresh(); + } + CharacterEquipHandler.OnItemClicked(iSp); + } + } + + public bool OnBagExpandClicked(IXUIButton button) + { + XBagDocument.BagDoc.UseBagExpandTicket(BagType.ItemBag); + return true; + } + + private bool OnTabTooggleClicked(IXUICheckBox cb) + { + bool flag = !cb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_doc.BagType = (uint)cb.ID; + this.FillContent(); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CharacterItemBagHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CharacterItemBagHandler.cs.meta new file mode 100644 index 00000000..6a2930f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CharacterItemBagHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a531da2cb0084084e8182b1d900d2762 +timeCreated: 1611404285 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs b/Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs new file mode 100644 index 00000000..06e475d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient.UI +{ + internal class ComboBuff + { + public int combo; + + public int buffID; + + public int buffLevel; + + public string buffName; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs.meta new file mode 100644 index 00000000..cb7afbf3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ComboBuff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 172f0f05aa8589c4aa2cae850117eb5a +timeCreated: 1611403292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CompeteNestBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/CompeteNestBehaviour.cs new file mode 100644 index 00000000..f4272ac4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CompeteNestBehaviour.cs @@ -0,0 +1,54 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CompeteNestBehaviour : DlgBehaviourBase + { + public IXUITexture m_bgTexture; + + public IXUILabel m_tittleLab; + + public IXUILabel m_timesLab; + + public IXUILabel m_tipsLab; + + public IXUIButton m_rankBtn; + + public IXUIButton m_goBattleBtn; + + public IXUIButton m_closedBtn; + + public IXUIButton m_claimBtn; + + public Transform m_claimredpoint; + + public GameObject m_itemsGo; + + public Transform m_rankTra; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_rankTra = base.transform.Find("Rank"); + this.m_closedBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Main/Tittles"); + this.m_tittleLab = (transform.Find("Tittle1").GetComponent("XUILabel") as IXUILabel); + this.m_timesLab = (base.transform.Find("Main/Right/Times").GetComponent("XUILabel") as IXUILabel); + transform = base.transform.Find("Main"); + this.m_bgTexture = (transform.Find("P").GetComponent("XUITexture") as IXUITexture); + this.m_rankBtn = (transform.Find("RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_goBattleBtn = (transform.Find("Right/BtnStartTeam").GetComponent("XUIButton") as IXUIButton); + this.m_claimBtn = (transform.Find("Right/BtnStartSingle").GetComponent("XUIButton") as IXUIButton); + this.m_claimredpoint = transform.Find("Right/BtnStartSingle/RedPoint"); + transform = base.transform.Find("Main/ListPanel"); + this.m_itemsGo = transform.gameObject; + this.m_ItemPool.SetupPool(transform.gameObject, transform.Find("Grid/ItemTpl").gameObject, 2u, false); + this.m_tipsLab = (base.transform.Find("Main/t").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CompeteNestBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CompeteNestBehaviour.cs.meta new file mode 100644 index 00000000..69704770 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CompeteNestBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37e5ff1e78de5cc4e885fc70a50a0343 +timeCreated: 1611403568 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CompeteNestDlg.cs b/Client/Assets/Scripts/XMainClient/UI/CompeteNestDlg.cs new file mode 100644 index 00000000..0cfb694c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CompeteNestDlg.cs @@ -0,0 +1,247 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CompeteNestDlg : DlgBase + { + public override string fileName + { + get + { + return "OperatingActivity/CompeteNest"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XCompeteDocument m_doc; + + public CompeteNestRankHandler m_rankHandler; + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XCompeteDocument.uuID); + this.m_doc.View = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_goBattleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoBattleClicked)); + base.uiBehaviour.m_rankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankBtnClicked)); + base.uiBehaviour.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClosed)); + base.uiBehaviour.m_claimBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClaim)); + } + + protected override void OnShow() + { + this.m_doc.HadRedDot = false; + base.uiBehaviour.m_tipsLab.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeekDragonTips"))); + this.m_doc.ReqCompeteDragonInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnUnload() + { + base.uiBehaviour.m_bgTexture.SetTexturePath(""); + DlgHandlerBase.EnsureUnload(ref this.m_rankHandler); + base.OnUnload(); + } + + public void Resfresh() + { + this.FillContent(); + } + + private void FillContent() + { + XExpeditionDocument xexpeditionDocument = XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument; + ExpeditionTable.RowData expeditionDataByID = xexpeditionDocument.GetExpeditionDataByID(this.m_doc.CurDNid); + int leftRewardCount = this.m_doc.LeftRewardCount; + int getRewardMax = this.m_doc.GetRewardMax; + base.uiBehaviour.m_timesLab.SetText(string.Format("{0}/{1}", leftRewardCount, getRewardMax)); + base.uiBehaviour.m_claimBtn.SetEnable(this.m_doc.CanGetCount != 0, false); + base.uiBehaviour.m_claimredpoint.gameObject.SetActive(this.m_doc.CanGetCount > 0); + this.FillBgTexture(); + bool flag = expeditionDataByID != null; + if (flag) + { + base.uiBehaviour.m_tittleLab.SetText(expeditionDataByID.DNExpeditionName); + this.FillItem(expeditionDataByID); + } + } + + private void FillItem(ExpeditionTable.RowData rowData) + { + base.uiBehaviour.m_ItemPool.ReturnAll(false); + bool flag = rowData.ViewableDropList == null || rowData.ViewableDropList.Length == 0; + if (!flag) + { + for (int i = 0; i < rowData.ViewableDropList.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_itemsGo.transform; + gameObject.name = i.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(base.uiBehaviour.m_ItemPool.TplWidth * i), 0f, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rowData.ViewableDropList[i]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.ViewableDropList[i], 0, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + + private void FillBgTexture() + { + string picNameByDNid = this.m_doc.GetPicNameByDNid((uint)this.m_doc.CurDNid); + bool flag = picNameByDNid == "" || picNameByDNid == null; + if (flag) + { + base.uiBehaviour.m_bgTexture.SetTexturePath("atlas/UI/common/Pic/Loading_23_h2Split"); + } + else + { + base.uiBehaviour.m_bgTexture.SetTexturePath("atlas/UI/common/Pic/" + this.m_doc.GetPicNameByDNid((uint)this.m_doc.CurDNid)); + } + } + + private bool OnGoBattleClicked(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(this.m_doc.CurDNid); + result = true; + } + return result; + } + + private bool OnRankBtnClicked(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + DlgHandlerBase.EnsureCreate(ref this.m_rankHandler, base.uiBehaviour.m_rankTra, true, this); + result = true; + } + return result; + } + + private bool OnClickClosed(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + this.SetVisible(false, true); + result = true; + } + return result; + } + + private bool OnClickClaim(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + this.m_doc.ReqFetchReward(); + result = true; + } + return result; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CompeteNestDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CompeteNestDlg.cs.meta new file mode 100644 index 00000000..c78d43e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CompeteNestDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa57540d408418344ada38c0ea18a0de +timeCreated: 1611404302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CookingHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CookingHandler.cs new file mode 100644 index 00000000..954f957b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CookingHandler.cs @@ -0,0 +1,602 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CookingHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Home/CookingHandler"; + } + } + + protected IXUILabel _upCuisineLevel; + + protected IXUILabel _upExpPercent; + + protected IXUISlider _upProgress; + + protected Transform _middCuisineItem; + + protected IXUILabel _middCuisineName; + + protected IXUILabel _middCuisineAddExp; + + protected IXUILabel _middMakeTimes; + + protected IXUILabel _downCuisineDec; + + protected Transform _needMats; + + protected IXUIButton _makeBtn; + + protected IXUIButton _cancelMakingBtn = null; + + protected IXUIButton _oneKeyCookingBtn = null; + + protected uint _curCookID = 0u; + + protected uint _curCookLevel = 0u; + + protected Transform _selectedFoodItem; + + protected Transform _tabs; + + protected IXUITable _tabTable; + + protected XUIPool _levelCuisinePool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected XUIPool _cuisineChildPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected XUIPool _foodItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected List _childCuisineItems = new List(); + + protected List _levelItems = new List(); + + protected ulong _preCookID = 0UL; + + protected bool _isOneKeyCooking = false; + + protected Transform _cookingProgressFrame; + + protected IXUISlider _cookingSlider; + + protected Transform _cookingItem; + + protected Transform _makingTrans; + + protected Transform _successEffect; + + protected Transform _cookingEffect; + + protected IXUIButton _doBtn; + + protected Transform _toggleSprite; + + protected override void Init() + { + base.Init(); + this.InitUIPool(); + this.InitProperties(); + this.InitClickCallback(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshUI(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void RefreshUI() + { + this._selectedFoodItem = null; + this._curCookLevel = HomeMainDocument.Doc.GetCookingLevel(); + this.InitLeftPanel(); + this.InitSelectedFood(); + this.RefreshRightDetail(this._curCookID); + } + + protected void InitSelectedFood() + { + bool flag = this._levelItems.Count <= 0; + if (!flag) + { + bool flag2 = null != this._selectedFoodItem; + IXUICheckBox ixuicheckBox; + if (flag2) + { + ixuicheckBox = (this._selectedFoodItem.GetComponent("XUICheckBox") as IXUICheckBox); + } + else + { + bool flag3 = this._childCuisineItems.Count > 0; + if (flag3) + { + ixuicheckBox = (this._childCuisineItems[0].GetComponent("XUICheckBox") as IXUICheckBox); + } + else + { + IXUITweenTool ixuitweenTool = this._levelItems[0].GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + ixuicheckBox = (this._levelItems[0].Find("Children").GetChild(0).GetComponent("XUICheckBox") as IXUICheckBox); + } + } + bool flag4 = ixuicheckBox == null; + if (!flag4) + { + this._curCookID = (uint)ixuicheckBox.ID; + ixuicheckBox.ForceSetFlag(true); + Transform parent = ixuicheckBox.gameObject.transform.parent.parent; + Transform transform = parent.Find("ToggleSprite"); + transform.gameObject.SetActive(true); + this.SwitchToggleSprite(transform); + } + } + } + + private void SwitchToggleSprite(Transform spriteToggle) + { + bool flag = this._toggleSprite != null && this._toggleSprite != spriteToggle; + if (flag) + { + this._toggleSprite.gameObject.SetActive(false); + } + this._toggleSprite = spriteToggle; + } + + protected void InitProperties() + { + this._cookingProgressFrame = base.transform.Find("Content/CookingProgressFrame"); + this._cookingProgressFrame.gameObject.SetActive(true); + Transform transform = this._cookingProgressFrame.Find("Making/Bar"); + this._cookingSlider = (transform.GetComponent("XUISlider") as IXUISlider); + this._doBtn = (this._cookingProgressFrame.Find("Do").GetComponent("XUIButton") as IXUIButton); + this._cancelMakingBtn = (this._cookingProgressFrame.Find("Cancel").GetComponent("XUIButton") as IXUIButton); + this._doBtn.gameObject.SetActive(false); + this._cookingItem = this._cookingProgressFrame.Find("Item"); + this._successEffect = this._cookingProgressFrame.Find("Suc"); + this._cookingEffect = this._cookingProgressFrame.Find("effex"); + this._makingTrans = this._cookingProgressFrame.Find("Making"); + this._successEffect.gameObject.SetActive(false); + this._cookingProgressFrame.gameObject.SetActive(false); + this._makeBtn = (base.transform.Find("MakeBtn").GetComponent("XUIButton") as IXUIButton); + this._oneKeyCookingBtn = (base.transform.Find("AllMake").GetComponent("XUIButton") as IXUIButton); + this._oneKeyCookingBtn.gameObject.SetActive(true); + this._upCuisineLevel = (base.transform.Find("Content/CookLevel/NameLab").GetComponent("XUILabel") as IXUILabel); + this._upExpPercent = (base.transform.Find("Content/CookLevel/planLab").GetComponent("XUILabel") as IXUILabel); + this._upProgress = (base.transform.Find("Content/CookLevel/Bar").GetComponent("XUISlider") as IXUISlider); + this._middCuisineItem = base.transform.Find("Content/CookItem/Item"); + this._middCuisineName = (base.transform.Find("Content/CookItem/Name").GetComponent("XUILabel") as IXUILabel); + this._middCuisineAddExp = (base.transform.Find("Content/CookItem/Exp").GetComponent("XUILabel") as IXUILabel); + this._middMakeTimes = (base.transform.Find("Content/CookItem/Tips").GetComponent("XUILabel") as IXUILabel); + this._downCuisineDec = (base.transform.Find("Content/ContentLab").GetComponent("XUILabel") as IXUILabel); + } + + protected void InitUIPool() + { + this._tabs = base.transform.Find("Tabs"); + this._tabTable = (this._tabs.Find("UITable").GetComponent("XUITable") as IXUITable); + this._needMats = base.transform.Find("Content/Items"); + Transform transform = this._tabs.Find("UITable/TittleTpl"); + Transform transform2 = this._tabs.Find("UITable/ChildTpl"); + this._levelCuisinePool.SetupPool(this._tabs.gameObject, transform.gameObject, 2u, false); + this._cuisineChildPool.SetupPool(this._tabs.gameObject, transform2.gameObject, 2u, false); + this._foodItemPool.SetupPool(this._needMats.gameObject, this._needMats.Find("Item").gameObject, 2u, false); + } + + protected void InitLeftPanel() + { + uint num = Math.Min(this._curCookLevel + 1u, XHomeCookAndPartyDocument.Doc.GetMaxLevel()); + this._levelCuisinePool.ReturnAll(false); + this._cuisineChildPool.ReturnAll(true); + this._childCuisineItems.Clear(); + this._levelItems.Clear(); + XHomeCookAndPartyDocument.Doc.SortFoodTableData(); + CookingFoodInfo.RowData[] table = XHomeCookAndPartyDocument.CookingFoolInfoTable.Table; + int num2 = 0; + int num3 = (int)this._levelCuisinePool.TplPos.y; + Transform transform = null; + for (int i = 0; i < table.Length; i++) + { + bool flag = (ulong)table[i].Level != (ulong)((long)num2); + if (flag) + { + num2++; + bool flag2 = (long)num2 > (long)((ulong)num); + if (flag2) + { + break; + } + transform = this.SetLevelItem(ref num3, num2); + this._levelItems.Add(transform); + } + CookingFoodInfo.RowData rowData = table[i]; + uint basicTypeID = XSingleton.singleton.XPlayerData.BasicTypeID; + foreach (uint num4 in rowData.Profession) + { + bool flag3 = num4 == basicTypeID; + if (flag3) + { + this.SetChildItem(ref num3, table[i], transform.Find("Children")); + break; + } + } + } + this._tabTable.Reposition(); + } + + protected Transform SetLevelItem(ref int height, int level) + { + GameObject gameObject = this._levelCuisinePool.FetchGameObject(false); + gameObject.transform.parent = this._tabs.Find("UITable"); + gameObject.transform.localPosition = new Vector3(this._levelCuisinePool.TplPos.x, (float)height, 0f); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)level); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClicklevel)); + height -= this._levelCuisinePool.TplHeight; + IXUILabel ixuilabel = gameObject.transform.Find("NameLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("FoodLevel"), level)); + IXUILabel ixuilabel2 = gameObject.transform.Find("ToggleSprite/NameLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format(XSingleton.singleton.GetString("FoodLevel"), level)); + Transform transform = gameObject.transform.Find("ToggleSprite"); + transform.gameObject.SetActive(false); + return gameObject.transform; + } + + protected Transform SetChildItem(ref int height, CookingFoodInfo.RowData info, Transform parent) + { + GameObject gameObject = this._cuisineChildPool.FetchGameObject(false); + gameObject.transform.parent = parent; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this._levelCuisinePool.TplHeight - (parent.childCount - 1) * this._cuisineChildPool.TplHeight), 0f); + height -= this._cuisineChildPool.TplHeight; + Transform transform = gameObject.transform.Find("NewSpr"); + transform.gameObject.SetActive(XHomeCookAndPartyDocument.Doc.IsNewAddedCookItem(info.FoodID)); + IXUILabel ixuilabel = gameObject.transform.Find("SelectLab").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("UnSelectLab").GetComponent("XUILabel") as IXUILabel; + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuilabel.SetText(info.FoodName); + IXUISprite ixuisprite = gameObject.transform.Find("Sprite").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(null); + ixuisprite.gameObject.GetComponent().enabled = false; + ixuicheckBox.SetEnable(true); + bool flag = HomeMainDocument.Doc.IsFoodIDActive(info.FoodID); + if (flag) + { + ixuicheckBox.ID = (ulong)info.FoodID; + ixuilabel2.SetText(info.FoodName); + } + else + { + ixuilabel2.SetText("? ? ? ?"); + ixuicheckBox.ID = 0UL; + ixuicheckBox.SetEnable(false); + ixuisprite.gameObject.GetComponent().enabled = true; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnUnactiveFood)); + } + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCuisineToggleChanged)); + gameObject.transform.localScale = Vector3.one; + bool flag2 = this._preCookID != 0UL && (ulong)info.FoodID == this._preCookID; + if (flag2) + { + this._selectedFoodItem = gameObject.transform; + } + bool flag3 = gameObject.transform.parent.localScale.y > 0.02f; + if (flag3) + { + this._childCuisineItems.Add(gameObject.transform); + } + return gameObject.transform; + } + + protected void OnClicklevel(IXUISprite uiSprite) + { + foreach (object obj in uiSprite.gameObject.transform) + { + Transform transform = (Transform)obj; + } + } + + protected void OnUnactiveFood(IXUISprite sprite) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CookMenuNotActive"), "fece00"); + } + + protected void InitClickCallback() + { + this._makeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.StartToCooking)); + this._oneKeyCookingBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OneShotCooking)); + this._doBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickCookingButtonOK)); + this._cancelMakingBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.CancelCooking)); + } + + protected bool OnCuisineToggleChanged(IXUICheckBox checkbox) + { + bool bChecked = checkbox.bChecked; + if (bChecked) + { + bool flag = checkbox.ID > 0UL; + if (flag) + { + this._curCookID = (uint)checkbox.ID; + Transform transform = checkbox.gameObject.transform.parent.parent.Find("ToggleSprite"); + transform.gameObject.SetActive(true); + this.SwitchToggleSprite(transform); + bool flag2 = XHomeCookAndPartyDocument.Doc.RemoveNewCookItem(this._curCookID); + if (flag2) + { + Transform transform2 = checkbox.gameObject.transform.Find("NewSpr"); + transform2.gameObject.SetActive(false); + } + this.RefreshRightDetail(this._curCookID); + return true; + } + } + return false; + } + + protected void RefreshRightDetail(uint cuisineId) + { + CookingFoodInfo.RowData cookInfoByCuisineID = XHomeCookAndPartyDocument.Doc.GetCookInfoByCuisineID(cuisineId); + bool flag = cookInfoByCuisineID != null; + if (flag) + { + this._preCookID = (ulong)this._curCookID; + this._upCuisineLevel.SetText(this._curCookLevel.ToString()); + uint cookingExp = HomeMainDocument.Doc.GetCookingExp(); + uint expByCookLevel = XHomeCookAndPartyDocument.Doc.GetExpByCookLevel(this._curCookLevel); + this._upExpPercent.SetText(cookingExp + "/" + expByCookLevel); + bool flag2 = expByCookLevel == 0u; + if (flag2) + { + this._upProgress.Value = 0f; + } + else + { + this._upProgress.Value = cookingExp / expByCookLevel; + } + XSingleton.singleton.normalItemDrawer.DrawItem(this._middCuisineItem.gameObject, (int)cuisineId, 1, false); + IXUISprite ixuisprite = this._middCuisineItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)cuisineId; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + this._middCuisineAddExp.SetText(cookInfoByCuisineID.AddExp.ToString()); + this._middCuisineName.SetText(cookInfoByCuisineID.FoodName); + string text = ""; + bool flag3 = cookInfoByCuisineID.Frequency > 0u; + if (flag3) + { + text = string.Format(XSingleton.singleton.GetString("CookItemMaxTimes"), cookInfoByCuisineID.Frequency); + } + this._middMakeTimes.SetText(text); + this._downCuisineDec.SetText(cookInfoByCuisineID.Desc); + this._foodItemPool.ReturnAll(false); + for (int i = 0; i < cookInfoByCuisineID.Ingredients.Count; i++) + { + GameObject gameObject = this._foodItemPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + uint num = cookInfoByCuisineID.Ingredients[i, 0]; + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)num); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num, (int)cookInfoByCuisineID.Ingredients[i, 1], true); + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)num; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + string text2 = itemCount + "/" + cookInfoByCuisineID.Ingredients[i, 1]; + bool flag4 = itemCount < (ulong)cookInfoByCuisineID.Ingredients[i, 1]; + if (flag4) + { + text2 = string.Concat(new object[] + { + "[ff0000]", + itemCount, + "/", + cookInfoByCuisineID.Ingredients[i, 1], + "[-]" + }); + } + ixuilabel.SetText(text2); + gameObject.transform.localPosition = new Vector3(this._foodItemPool.TplPos.x + (float)(i * this._foodItemPool.TplWidth), this._foodItemPool.TplPos.y, 0f); + } + bool flag5 = cookInfoByCuisineID.Level > this._curCookLevel; + if (flag5) + { + this._oneKeyCookingBtn.SetEnable(false, false); + this._makeBtn.SetEnable(false, false); + } + else + { + this._oneKeyCookingBtn.SetEnable(true, false); + this._makeBtn.SetEnable(true, false); + } + } + } + + protected void SendMakeCuisineReq() + { + XHomeCookAndPartyDocument.Doc.ReqGardenCookingFood(this._curCookID); + } + + protected bool StartToCooking(IXUIButton cook) + { + bool flag = XHomeCookAndPartyDocument.Doc.IsTimeLimited(this._curCookID); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FoodMakingMaxTimes"), "fece00"); + result = false; + } + else + { + bool flag2 = this.IsValidCooking(); + if (flag2) + { + XSingleton.singleton.PlayUISound("Audio/UI/Cook_ing", true, AudioChannel.Action); + XHomeCookAndPartyDocument.Doc.StartCreateFood(this._curCookID); + this.RefreshProgressFrame(); + result = true; + } + else + { + bool isOneKeyCooking = this._isOneKeyCooking; + if (isOneKeyCooking) + { + this.CancelCooking(null); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FoodMatsLack"), "fece00"); + } + result = false; + } + } + return result; + } + + protected bool OneShotCooking(IXUIButton cook) + { + bool flag = XHomeCookAndPartyDocument.Doc.IsTimeLimited(this._curCookID); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FoodMakingMaxTimes"), "fece00"); + result = false; + } + else + { + bool flag2 = this.IsValidCooking(); + if (flag2) + { + this.OneKeyContinue(true); + this.StartToCooking(null); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FoodMatsLack"), "fece00"); + } + result = true; + } + return result; + } + + private void OneKeyContinue(bool continueCooking) + { + this._isOneKeyCooking = continueCooking; + this._cancelMakingBtn.gameObject.SetActive(continueCooking); + this._doBtn.gameObject.SetActive(!continueCooking); + } + + private bool CancelCooking(IXUIButton button) + { + this.OneKeyContinue(false); + XHomeCookAndPartyDocument.Doc.StopCreateFoodTimer(); + XSingleton.singleton.StopUISound(); + this._cookingEffect.gameObject.SetActive(false); + this._cookingProgressFrame.gameObject.SetActive(false); + return true; + } + + protected void RefreshProgressFrame() + { + this._cookingProgressFrame.gameObject.SetActive(true); + this._successEffect.gameObject.SetActive(false); + this._cookingSlider.Value = 0f; + this._cookingEffect.gameObject.SetActive(true); + this._makingTrans.gameObject.SetActive(true); + this._doBtn.gameObject.SetActive(false); + XSingleton.singleton.normalItemDrawer.DrawItem(this._cookingItem.gameObject, (int)this._curCookID, 1, false); + this._cookingItem.gameObject.SetActive(false); + } + + protected bool IsValidCooking() + { + CookingFoodInfo.RowData cookInfoByCuisineID = XHomeCookAndPartyDocument.Doc.GetCookInfoByCuisineID(this._curCookID); + bool flag = cookInfoByCuisineID != null; + bool result; + if (flag) + { + for (int i = 0; i < cookInfoByCuisineID.Ingredients.Count; i++) + { + uint itemid = cookInfoByCuisineID.Ingredients[i, 0]; + uint num = cookInfoByCuisineID.Ingredients[i, 1]; + uint num2 = (uint)XBagDocument.BagDoc.GetItemCount((int)itemid); + bool flag2 = num2 < num; + if (flag2) + { + return false; + } + } + result = true; + } + else + { + result = false; + } + return result; + } + + private bool OnClickCookingButtonOK(IXUIButton btn) + { + this._successEffect.gameObject.SetActive(false); + this._cookingProgressFrame.gameObject.SetActive(false); + return true; + } + + public void CookingTimeEnd() + { + this._doBtn.gameObject.SetActive(!this._isOneKeyCooking); + this._cookingEffect.gameObject.SetActive(false); + this.SendMakeCuisineReq(); + } + + public void CookingSuccess() + { + this._successEffect.gameObject.SetActive(true); + this._cookingItem.gameObject.SetActive(true); + this._makingTrans.gameObject.SetActive(false); + this._doBtn.gameObject.SetActive(!this._isOneKeyCooking); + this._curCookLevel = HomeMainDocument.Doc.GetCookingLevel(); + this.RefreshRightDetail(this._curCookID); + bool flag = !this._isOneKeyCooking || !this.StartToCooking(null); + if (flag) + { + XSingleton.singleton.StopUISound(); + XSingleton.singleton.PlayUISound("Audio/UI/Cook_Over", true, AudioChannel.Action); + } + } + + public void SetProgress(float percent) + { + this._cookingSlider.Value = percent; + bool flag = percent >= 1f; + if (flag) + { + this.CookingTimeEnd(); + } + } + + public void RefreshRightInfo() + { + this.RefreshRightDetail(this._curCookID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CookingHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CookingHandler.cs.meta new file mode 100644 index 00000000..38bb4b11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CookingHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d919ac890684164aa31729a772c8ad5 +timeCreated: 1611404001 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleMember.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleMember.cs new file mode 100644 index 00000000..df4b2129 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleMember.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class CrossGVGBattleMember : GVGBattleMemberBase + { + protected override void SetupOtherMemberInfo(Transform t, GmfRole role) + { + IXUILabel ixuilabel = t.Find("Fight").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(role.ppt.ToString()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleMember.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleMember.cs.meta new file mode 100644 index 00000000..9bcfa9fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48a19b5048944a344b014919677ba7c6 +timeCreated: 1611403659 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareBehaviour.cs new file mode 100644 index 00000000..ba9bd6ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class CrossGVGBattlePrepareBehaviour : GVGBattlePrepareBehaviour + { + public GameObject mRankFrame; + + public IGVGBattleMember mRankPanel; + + public IXUIButton mRevive; + + public IXUILabelSymbol mReviveSymbol; + + protected override void Awake() + { + base.Awake(); + this.mRankFrame = base.transform.Find("RankFrame").gameObject; + this.mRevive = (base.transform.Find("LeftTime/Revive").GetComponent("XUIButton") as IXUIButton); + this.mReviveSymbol = (base.transform.Find("LeftTime/Revive/Label").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareBehaviour.cs.meta new file mode 100644 index 00000000..80c45fd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa14e760ca6fcbd4e9cc3cb6b58b8d9c +timeCreated: 1611404902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareView.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareView.cs new file mode 100644 index 00000000..b20a12e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareView.cs @@ -0,0 +1,103 @@ +using System; +using UILib; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CrossGVGBattlePrepareView : GVGBattlePrepareBase + { + public override string fileName + { + get + { + return "Battle/CrossGVGBattlePrepare"; + } + } + + protected override void OnLoad() + { + base.OnLoad(); + base.uiBehaviour.mBluePanel = new CrossGVGBattleMember(); + base.uiBehaviour.mBluePanel.Setup(base.uiBehaviour.mBlueView, 1); + base.uiBehaviour.mRankPanel = new CrossGVGBattleRankFrame(); + base.uiBehaviour.mRankPanel.Setup(base.uiBehaviour.mRankFrame, 1); + base.uiBehaviour.mRevive.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnReviveNotify)); + } + + public override void ReFreshGroup() + { + bool flag = !XSingleton.singleton.bSpectator && base.uiBehaviour.mRankPanel.IsActive(); + if (flag) + { + base.uiBehaviour.mRankPanel.ReFreshData(this._Doc.BlueInfo); + } + base.ReFreshGroup(); + } + + protected override void SelectionPattern() + { + base.uiBehaviour.mCombatScore.SetActive(false); + base.uiBehaviour.mBattleDuelInfo.SetVisible(this._Doc.IsGCF()); + } + + protected override void SectionShowReady() + { + base.uiBehaviour.mRankPanel.SetActive(false); + base.SectionShowReady(); + } + + protected override void SectionShowBattle() + { + base.SectionShowBattle(); + bool flag = !XSingleton.singleton.bSpectator && !base.uiBehaviour.mRankPanel.IsActive(); + if (flag) + { + base.uiBehaviour.mRankPanel.SetActive(true); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = !XSingleton.singleton.bSpectator && base.uiBehaviour.mRankPanel.IsActive(); + if (flag) + { + base.uiBehaviour.mRankPanel.OnUpdate(); + } + } + + protected override void OnUnload() + { + bool flag = base.uiBehaviour.mRankPanel != null; + if (flag) + { + base.uiBehaviour.mRankPanel.Recycle(); + base.uiBehaviour.mRankPanel = null; + } + base.OnUnload(); + } + + protected override void SetupOtherResurgence() + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + bool flag = specificDocument.ReviveItemID > 0u && specificDocument.ReviveItemNumber > 0u; + if (flag) + { + base.uiBehaviour.mRevive.SetVisible(true); + string inputText = XLabelSymbolHelper.FormatItemSmallIcon(XStringDefineProxy.GetString("ReviveOntime"), (int)specificDocument.ReviveItemID, (int)specificDocument.ReviveItemNumber); + base.uiBehaviour.mReviveSymbol.InputText = inputText; + } + else + { + base.uiBehaviour.mRevive.SetVisible(false); + } + } + + private bool _OnReviveNotify(IXUIButton btn) + { + XGuildArenaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument.SendVSPayRevive(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareView.cs.meta new file mode 100644 index 00000000..c24d3c13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattlePrepareView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 146468024a3ab6b43831724182efb50c +timeCreated: 1611403257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleRankFrame.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleRankFrame.cs new file mode 100644 index 00000000..92ac3b1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleRankFrame.cs @@ -0,0 +1,8 @@ +using System; + +namespace XMainClient.UI +{ + internal class CrossGVGBattleRankFrame : GVGBattleRankFrameBase + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleRankFrame.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleRankFrame.cs.meta new file mode 100644 index 00000000..d0bfaa64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGBattleRankFrame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5fefd0eef1ca8148805a07f66d6b958 +timeCreated: 1611404879 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGCombatHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGCombatHandler.cs new file mode 100644 index 00000000..0b207b0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGCombatHandler.cs @@ -0,0 +1,87 @@ +using System; +using KKSG; +using UILib; + +namespace XMainClient.UI +{ + internal class CrossGVGCombatHandler : GVGCombatHandlerBase + { + protected override string FileName + { + get + { + return "Guild/CrossGVG/CrossGVGCombatFrame"; + } + } + + protected override bool InGVGTime + { + get + { + return this._doc.TimeStep == CrossGvgTimeState.CGVG_Guess || this._doc.TimeStep == CrossGvgTimeState.CGVG_Knockout || this._doc.TimeStep == CrossGvgTimeState.CGVG_SeasonEnd; + } + } + + protected override CrossGvgRoomState RoomState + { + get + { + return this._doc.RoomState; + } + } + + protected override bool VisibelEnterBattle + { + get + { + return this._doc.VisibleEnterBattle; + } + } + + protected override bool HasGVGJion + { + get + { + return this._doc.HasAvailableJoin; + } + } + + private XCrossGVGDocument _doc; + + private IXUILabel _SupportLabel; + + private IXUIButton _helpSprite; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + this.m_helpLabel.SetText(XStringDefineProxy.GetString("CrossGVG_combat_message")); + this._SupportLabel = (base.transform.Find("Support").GetComponent("XUILabel") as IXUILabel); + this._helpSprite = (base.transform.Find("Title/Help").GetComponent("XUIButton") as IXUIButton); + this._helpSprite.SetVisible(false); + this.m_showRank.SetVisible(false); + } + + protected override void SetupOtherInfo() + { + this._SupportLabel.SetText(this._doc.ToSupportString()); + this.m_RegistrationCount.SetText(XStringDefineProxy.GetString("GUILD_ARENA_INDEX", new object[] + { + this._doc.RegisterationCount + })); + } + + protected override XGVGCombatGroupData GetCombatGroup(uint roomID) + { + XGVGCombatGroupData result = null; + this._doc.TryGetCombatRoom(roomID, out result); + return result; + } + + protected override void EnterScene() + { + this._doc.SendCrossGVGOper(CrossGvgOperType.CGOT_EnterKnockout, 0UL); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGCombatHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CrossGVGCombatHandler.cs.meta new file mode 100644 index 00000000..a50c6719 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGCombatHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff0444ac33ad852469af0e8ff6870cb9 +timeCreated: 1611404944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs new file mode 100644 index 00000000..5c8beb9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs @@ -0,0 +1,54 @@ +using System; +using KKSG; +using UILib; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CrossGVGDuelHandler : GVGDuelHandlerBase + { + protected override string FileName + { + get + { + return "Guild/CrossGVG/CrossGVGDuelFrame"; + } + } + + private XCrossGVGDocument _doc; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + this.m_DuelHelp.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("CrossGVG_duel_message"))); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override int GetDuelInfoSize() + { + return this._doc.GVGDuels.Count; + } + + public override void RefreshData() + { + base.RefreshData(); + base.ShowOrHide(!this._doc.HasDuelCombat); + } + + protected override GVGDuelCombatInfo GetDuelInfo(int index) + { + return this._doc.GVGDuels[index]; + } + + protected override void OnEnterScene(IXUISprite sprite) + { + this._doc.SendCrossGVGOper(CrossGvgOperType.CGOT_EnterPointRace, 0UL); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs.meta new file mode 100644 index 00000000..740fb266 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGDuelHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cd98c4829bff9d47adbe68e9ebb6de7 +timeCreated: 1611403803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGHallHandle.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGHallHandle.cs new file mode 100644 index 00000000..84910578 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGHallHandle.cs @@ -0,0 +1,69 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CrossGVGHallHandle : GVGHallBase + { + protected override string FileName + { + get + { + return "Guild/CrossGVG/CrossGVGHallFrame"; + } + } + + private XCrossGVGDocument _doc; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + this.SetupRewardList(XSingleton.singleton.GetAndSeparateValue("CrossGVG_Award", XGlobalConfig.ListSeparator)); + this.m_HelpText.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("CrossGVG_hall_message"))); + } + + protected override int GetContentSize() + { + return this._doc.GVGRanks.Count; + } + + protected override void OnItemWrapUpdate(Transform t, int index) + { + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("GuildName").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel2 = t.Find("Score").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol2 = t.Find("ServerName").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel3 = t.Find("KillNum").GetComponent("XUILabel") as IXUILabel; + bool flag = index == -1; + if (flag) + { + ixuilabel.SetText(string.Empty); + ixuilabelSymbol.InputText = XStringDefineProxy.GetString("GUILD_ARENA_UNLAYOUT"); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(string.Empty); + ixuilabelSymbol2.InputText = string.Empty; + } + else + { + XGVGGuildInfo xgvgguildInfo = this._doc.GVGRanks[index]; + ixuilabel.SetText((index + 1).ToString()); + ixuilabelSymbol.InputText = xgvgguildInfo.guildName; + ixuilabel2.SetText(xgvgguildInfo.score.ToString()); + ixuilabel3.SetText(xgvgguildInfo.killNum.ToString()); + ixuilabelSymbol2.InputText = XStringDefineProxy.GetString("CROSS_GVG_GUILDNAME", new object[] + { + xgvgguildInfo.serverID, + "" + }); + bool flag2 = xgvgguildInfo.uid == this.selfGuildID; + if (flag2) + { + this.selfIndex = index; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGHallHandle.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CrossGVGHallHandle.cs.meta new file mode 100644 index 00000000..3a346c31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGHallHandle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 613150806c4752d42813bd82f6cdc5bd +timeCreated: 1611403837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGMainView.cs b/Client/Assets/Scripts/XMainClient/UI/CrossGVGMainView.cs new file mode 100644 index 00000000..c768c2d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGMainView.cs @@ -0,0 +1,225 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CrossGVGMainView : TabDlgBase + { + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CrossGVG); + } + } + + public override string fileName + { + get + { + return "Guild/CrossGVG/CrossGVGArenaDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XCrossGVGDocument _doc; + + private Dictionary m_handlers = new Dictionary(); + + private IXUIButton m_Help; + + private IXUISprite m_maskSprite; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + this.m_Help = (base.uiBehaviour.m_root.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_maskSprite = (base.uiBehaviour.m_root.Find("Mask").GetComponent("XUISprite") as IXUISprite); + this.RegisterHandler(GuildArenaTab.Hall); + this.RegisterHandler(GuildArenaTab.Duel); + this.RegisterHandler(GuildArenaTab.Combat); + } + + private void RegisterHandler(GuildArenaTab index) where T : DlgHandlerBase, new() + { + bool flag = !this.m_handlers.ContainsKey(index); + if (flag) + { + T t = default(T); + t = DlgHandlerBase.EnsureCreate(ref t, base.uiBehaviour.m_root, false, this); + this.m_handlers.Add(index, t); + } + } + + private void RemoveHandler(GuildArenaTab index) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(index, out dlgHandlerBase); + if (flag) + { + DlgHandlerBase.EnsureUnload(ref dlgHandlerBase); + this.m_handlers.Remove(index); + } + } + + protected override void OnUnload() + { + this.RemoveHandler(GuildArenaTab.Hall); + this.RemoveHandler(GuildArenaTab.Duel); + this.RemoveHandler(GuildArenaTab.Combat); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._CloseClickHandle)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnHelpClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.InitTabTableControl(); + this._doc.SendCrossGVGData(); + } + + public void SelectTabIndex(GuildArenaTab tab) + { + bool flag = !base.IsVisible(); + if (!flag) + { + ulong num = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(tab)); + IXUICheckBox byCheckBoxId = this.m_uiBehaviour.m_tabcontrol.GetByCheckBoxId(num); + bool flag2 = byCheckBoxId == null; + if (!flag2) + { + byCheckBoxId.bChecked = true; + this._OnTabControlUpdate(num); + } + } + } + + protected override void OnHide() + { + this.SetHandlerVisible(this._doc.SelectTabIndex, false); + this._doc.SendCrossGVGOper(CrossGvgOperType.CGOT_LeaveUI, 0UL); + base.OnHide(); + } + + public void RefreshData() + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(this._doc.SelectTabIndex, out dlgHandlerBase) && dlgHandlerBase.IsVisible(); + if (flag) + { + dlgHandlerBase.RefreshData(); + } + } + + private void InitTabTableControl() + { + List list = new List + { + 1, + 2, + 3 + }; + List list2 = new List(); + int i = 0; + int count = list.Count; + while (i < count) + { + list2.Add(string.Format("CrossGVG_Tab{0}", list[i])); + i++; + } + base.uiBehaviour.m_tabcontrol.SetupTabs(list, list2, new XUITabControl.UITabControlCallback(this._OnTabControlUpdate), true, 1f, -1, true); + } + + private void SetHandlerVisible(GuildArenaTab handlerID, bool isVisble) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(handlerID, out dlgHandlerBase); + if (flag) + { + dlgHandlerBase.SetVisible(isVisble); + if (isVisble) + { + this._doc.SelectTabIndex = handlerID; + } + } + } + + private void _OnTabControlUpdate(ulong handId) + { + this.SetHandlerVisible(this._doc.SelectTabIndex, false); + this.SetHandlerVisible((GuildArenaTab)handId, true); + this.m_maskSprite.SetAlpha((this._doc.SelectTabIndex == GuildArenaTab.Hall) ? 0f : 1f); + } + + private bool _OnHelpClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_CrossGVG); + return true; + } + + private bool _CloseClickHandle(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CrossGVGMainView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CrossGVGMainView.cs.meta new file mode 100644 index 00000000..ac01847b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CrossGVGMainView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3d9e949df56a4a4ca783ed4048a84e6 +timeCreated: 1611404499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle.meta new file mode 100644 index 00000000..25c7a3ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: b83f49e51d735044dbfa71e3c6bae357 +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeDetailHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeDetailHandler.cs new file mode 100644 index 00000000..600b3432 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeDetailHandler.cs @@ -0,0 +1,255 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattleBountyModeDetailHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/BountyModeDetailFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUISprite _close; + + private IXUILabel _title; + + private IXUILabel _win_count; + + private IXUISprite[] _fail_flag = new IXUISprite[3]; + + private IXUISlider _slider; + + private IXUILabel _slider_count; + + private Transform _reward_frame; + + private IXUILabelSymbol _current_reward1; + + private IXUILabelSymbol _current_reward2; + + private IXUILabelSymbol _next_reward1; + + private IXUILabelSymbol _next_reward2; + + private IXUIButton _giveup; + + private IXUIButton _start; + + private IXUISprite _box; + + private IXUILabel _box_time; + + private IXUISprite _game_icon; + + private XLeftTimeCounter _boxCD; + + private IXUILabel _canfetch; + + private Transform _fx_point; + + private XFx _fx = null; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._close = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this._title = (base.transform.Find("Bg/Title").GetComponent("XUILabel") as IXUILabel); + this._win_count = (base.transform.Find("Bg/Left/Win/Count").GetComponent("XUILabel") as IXUILabel); + for (int i = 0; i < 3; i++) + { + this._fail_flag[i] = (base.transform.Find(string.Format("Bg/Left/Fail/Fail{0}/Flag", i)).GetComponent("XUISprite") as IXUISprite); + } + this._slider = (base.transform.Find("Bg/Left/Slider").GetComponent("XUISlider") as IXUISlider); + this._slider_count = (base.transform.Find("Bg/Left/Slider/Count").GetComponent("XUILabel") as IXUILabel); + this._reward_frame = base.transform.Find("Bg/Left/RewardTip"); + this._current_reward1 = (base.transform.Find("Bg/Left/RewardTip/Current/Reward1").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._current_reward2 = (base.transform.Find("Bg/Left/RewardTip/Current/Reward2").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._next_reward1 = (base.transform.Find("Bg/Left/RewardTip/Next/Reward1").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._next_reward2 = (base.transform.Find("Bg/Left/RewardTip/Next/Reward2").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._giveup = (base.transform.Find("Bg/Right/BtnGiveup").GetComponent("XUIButton") as IXUIButton); + this._start = (base.transform.Find("Bg/Right/BtnStart").GetComponent("XUIButton") as IXUIButton); + this._box = (base.transform.Find("Bg/Right/Box").GetComponent("XUISprite") as IXUISprite); + this._box_time = (base.transform.Find("Bg/Right/Box/Time").GetComponent("XUILabel") as IXUILabel); + this._canfetch = (base.transform.Find("Bg/Right/Box/CanFetch").GetComponent("XUILabel") as IXUILabel); + this._fx_point = base.transform.Find("Bg/Right/Box/Fx"); + this._game_icon = (base.transform.Find("Bg/Right/GameIcon").GetComponent("XUISprite") as IXUISprite); + this._boxCD = new XLeftTimeCounter(this._box_time, true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + this._doc.DestoryFx(this._fx); + this._fx = null; + base.OnHide(); + } + + public override void OnUnload() + { + this._doc.DestoryFx(this._fx); + this._fx = null; + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this._title.SetText(this._doc.CurrentBountyData.gameName); + this._win_count.SetText(this._doc.CurrentBountyData.winCount.ToString()); + for (int i = 0; i < 3; i++) + { + this._fail_flag[i].SetAlpha((float)(((long)i < (long)((ulong)this._doc.CurrentBountyData.loseCount)) ? 1 : 0)); + } + this._slider.Value = this._doc.CurrentBountyData.winPrecent; + this._slider_count.SetText(this._doc.CurrentBountyData.winText); + SeqListRef systemBattleReward = this._doc.GetSystemBattleReward((uint)this._doc.CurrentBountyData.gameID, this._doc.CurrentBountyData.winCount); + this._current_reward1.InputText = ""; + this._current_reward2.InputText = ""; + bool flag = systemBattleReward.Count > 0; + if (flag) + { + this._current_reward1.InputText = XLabelSymbolHelper.FormatSmallIcon((int)systemBattleReward[0, 0]) + " " + systemBattleReward[0, 1].ToString(); + } + bool flag2 = systemBattleReward.Count > 1; + if (flag2) + { + this._current_reward2.InputText = XLabelSymbolHelper.FormatSmallIcon((int)systemBattleReward[1, 0]) + " " + systemBattleReward[1, 1].ToString(); + } + SeqListRef systemBattleReward2 = this._doc.GetSystemBattleReward((uint)this._doc.CurrentBountyData.gameID, this._doc.CurrentBountyData.winCount + 1u); + this._next_reward1.InputText = ""; + this._next_reward2.InputText = ""; + bool flag3 = systemBattleReward2.Count > 0; + if (flag3) + { + this._next_reward1.InputText = XLabelSymbolHelper.FormatSmallIcon((int)systemBattleReward2[0, 0]) + " " + systemBattleReward2[0, 1].ToString(); + } + else + { + this._next_reward1.InputText = XSingleton.singleton.GetString("MaxRewardTip"); + } + bool flag4 = systemBattleReward2.Count > 1; + if (flag4) + { + this._next_reward2.InputText = XLabelSymbolHelper.FormatSmallIcon((int)systemBattleReward2[1, 0]) + " " + systemBattleReward2[1, 1].ToString(); + } + this._doc.DestoryFx(this._fx); + this._fx = null; + switch (this._doc.CurrentBountyData.status) + { + case CustomBattleRoleState.CustomBattle_RoleState_Join: + this._giveup.SetVisible(true); + this._start.SetVisible(true); + this._box.SetVisible(false); + this._reward_frame.gameObject.SetActive(true); + this._giveup.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGiveUpButtonClicked)); + this._start.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartButtonClicked)); + break; + case CustomBattleRoleState.CustomBattle_RoleState_Reward: + { + this._giveup.SetVisible(false); + this._start.SetVisible(false); + this._box.SetVisible(true); + this._boxCD.SetLeftTime(this._doc.CurrentBountyData.boxLeftTime, -1); + this._reward_frame.gameObject.SetActive(false); + this._canfetch.gameObject.SetActive(this._doc.CurrentBountyData.boxLeftTime <= 0u); + bool flag5 = this._doc.CurrentBountyData.boxLeftTime <= 0u; + if (flag5) + { + this._fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_BountyModeListFrame_Clip01", this._fx_point, false); + } + this._box.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnBoxClicked)); + break; + } + case CustomBattleRoleState.Custombattle_RoleState_Taken: + this._giveup.SetVisible(false); + this._start.SetVisible(false); + this._box.SetVisible(false); + this._reward_frame.gameObject.SetActive(false); + break; + default: + this._giveup.SetVisible(false); + this._start.SetVisible(false); + this._box.SetVisible(false); + this._reward_frame.gameObject.SetActive(false); + break; + } + CustomBattleSystemTable.RowData systemBattleData = this._doc.GetSystemBattleData((uint)this._doc.CurrentBountyData.gameID); + bool flag6 = systemBattleData != null; + if (flag6) + { + this._game_icon.SetSprite(systemBattleData.IconSpritePath); + } + } + + private void OnCloseClicked(IXUISprite sp) + { + base.SetVisible(false); + } + + private bool OnGiveUpButtonClicked(IXUIButton button) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("UnJoinBountyModeTip"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnUnJoinOkClicked)); + return true; + } + + private bool OnUnJoinOkClicked(IXUIButton button) + { + DlgBase.singleton.SetVisible(false, true); + this._doc.SendCustomBattleDrop(this._doc.CurrentBountyData.gameID); + return true; + } + + private bool OnStartButtonClicked(IXUIButton button) + { + bool flag = this._doc.CurrentBountyData.expID == 0; + if (flag) + { + bool flag2 = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnStartButtonClicked), button); + if (flag2) + { + return true; + } + this._doc.SendCustomBattleMatch(this._doc.CurrentBountyData.gameID); + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(this._doc.CurrentBountyData.expID); + } + return true; + } + + private void OnBoxClicked(IXUISprite sp) + { + DlgBase.singleton.ShowChestHandler(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._boxCD.Update(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeDetailHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeDetailHandler.cs.meta new file mode 100644 index 00000000..b306da17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeDetailHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12230a71528ce9343b0236446ac84acc +timeCreated: 1611403241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeListHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeListHandler.cs new file mode 100644 index 00000000..08e5a53c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeListHandler.cs @@ -0,0 +1,297 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattleBountyModeListHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/BountyModeListFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUILabel _tip; + + private IXUIScrollView _scroll_view; + + private IXUIWrapContent _wrap_content; + + private Dictionary timers = new Dictionary(); + + private ulong _cache_gameid = 0UL; + + private Dictionary _fx_list = new Dictionary(); + + private Vector3 _fx_scale = new Vector3(0.7f, 0.7f); + + protected override void Init() + { + base.Init(); + this.timers.Clear(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._tip = (base.transform.Find("Bg/Tip").GetComponent("XUILabel") as IXUILabel); + this._tip.SetText(XSingleton.singleton.GetString("BountyModeGameTip")); + this._scroll_view = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this._wrap_content = (base.transform.Find("Bg/Panel/List").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._wrap_content.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.SendCustomBattleQueryBountyMode(); + } + + protected override void OnHide() + { + this.DestoryAllFx(); + base.OnHide(); + } + + public override void OnUnload() + { + this.DestoryAllFx(); + base.OnUnload(); + } + + private void DestoryAllFx() + { + foreach (KeyValuePair keyValuePair in this._fx_list) + { + this._doc.DestoryFx(keyValuePair.Value); + } + this._fx_list.Clear(); + } + + public override void RefreshData() + { + base.RefreshData(); + this._wrap_content.SetContentCount(this._doc.BountyList.Count, false); + this._scroll_view.ResetPosition(); + } + + private void WrapContentUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.BountyList.Count; + if (flag) + { + t.gameObject.SetActive(false); + } + else + { + this.SetupBounty(t, index); + } + } + + private void SetupBounty(Transform t, int index) + { + Transform transform = t.Find("Box"); + Transform transform2 = t.Find("BtnEnter"); + Transform transform3 = t.Find("Course"); + IXUILabel ixuilabel = t.Find("Course/win/Count").GetComponent("XUILabel") as IXUILabel; + IXUISprite[] array = new IXUISprite[3]; + for (int i = 0; i < 3; i++) + { + array[i] = (t.Find(string.Format("Course/fail/Flag{0}/Flag", i)).GetComponent("XUISprite") as IXUISprite); + } + Transform transform4 = t.Find("Lock"); + IXUILabel ixuilabel2 = t.Find("Lock/Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel3 = t.Find("Game/name").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("Reward1").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol2 = t.Find("Reward2").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUIButton ixuibutton = t.Find("BtnEnter").GetComponent("XUIButton") as IXUIButton; + IXUILabelSymbol ixuilabelSymbol3 = t.Find("BtnEnter/Label").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite2 = t.Find("Game/Helpicon").GetComponent("XUISprite") as IXUISprite; + Transform parent = t.Find("Box/Fx"); + IXUISprite ixuisprite3 = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = t.Find("Game/NameIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)index; + ixuibutton.ID = (ulong)index; + ixuisprite2.ID = (ulong)this._doc.BountyList[index].gameType; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpClicked)); + ixuilabel3.SetText(this._doc.BountyList[index].gameName); + SeqListRef systemBattleReward = this._doc.GetSystemBattleReward((uint)this._doc.BountyList[index].gameID, this._doc.BountyList[index].winMax); + ixuilabelSymbol.InputText = ""; + ixuilabelSymbol2.InputText = ""; + bool flag = systemBattleReward.Count > 0; + if (flag) + { + ixuilabelSymbol.InputText = XLabelSymbolHelper.FormatSmallIcon((int)systemBattleReward[0, 0]) + " " + systemBattleReward[0, 1].ToString(); + } + bool flag2 = systemBattleReward.Count > 1; + if (flag2) + { + ixuilabelSymbol2.InputText = XLabelSymbolHelper.FormatSmallIcon((int)systemBattleReward[1, 0]) + " " + systemBattleReward[1, 1].ToString(); + } + IXUILabel ixuilabel4 = t.Find("Box/CanFetch").GetComponent("XUILabel") as IXUILabel; + bool flag3 = !this.timers.ContainsKey(t); + if (flag3) + { + IXUILabel label = t.Find("Box/Time").GetComponent("XUILabel") as IXUILabel; + this.timers.Add(t, new XLeftTimeCounter(label, true)); + } + bool flag4 = this._fx_list.ContainsKey(t); + if (flag4) + { + this._doc.DestoryFx(this._fx_list[t]); + this._fx_list[t] = null; + } + XLeftTimeCounter xleftTimeCounter = this.timers[t]; + bool flag5 = this._doc.BountyList[index].boxLeftTime > 0u; + if (flag5) + { + xleftTimeCounter.SetLeftTime(this._doc.BountyList[index].boxLeftTime, -1); + ixuilabel4.gameObject.SetActive(false); + } + else + { + xleftTimeCounter.SetLeftTime(0f, -1); + ixuilabel4.gameObject.SetActive(true); + this._fx_list[t] = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_BountyModeListFrame_Clip01", parent, this._fx_scale, false); + } + switch (this._doc.BountyList[index].status) + { + case CustomBattleRoleState.CustomBattle_RoleState_Ready: + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(true); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(false); + ixuisprite.RegisterSpriteClickEventHandler(null); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinClicked)); + ixuilabelSymbol3.InputText = XLabelSymbolHelper.FormatSmallIcon((int)this._doc.BountyList[index].ticket.itemID) + " " + this._doc.BountyList[index].ticket.itemCount.ToString(); + break; + case CustomBattleRoleState.CustomBattle_RoleState_Join: + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(true); + transform4.gameObject.SetActive(false); + ixuilabel.SetText(this._doc.BountyList[index].winCount.ToString()); + for (int j = 0; j < 3; j++) + { + array[j].SetAlpha((float)(((long)j < (long)((ulong)this._doc.BountyList[index].loseCount)) ? 1 : 0)); + } + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnEnterDetailClicked)); + ixuibutton.RegisterClickEventHandler(null); + break; + case CustomBattleRoleState.CustomBattle_RoleState_Reward: + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnEnterDetailClicked)); + ixuibutton.RegisterClickEventHandler(null); + break; + case CustomBattleRoleState.Custombattle_RoleState_Taken: + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnEnterDetailClicked)); + ixuibutton.RegisterClickEventHandler(null); + break; + default: + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(false); + break; + } + CustomBattleSystemTable.RowData systemBattleData = this._doc.GetSystemBattleData((uint)this._doc.BountyList[index].gameID); + bool flag6 = systemBattleData != null; + if (flag6) + { + bool flag7 = systemBattleData.levellimit > XSingleton.singleton.XPlayerData.Level; + if (flag7) + { + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(true); + ixuilabel2.SetText(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL", new object[] + { + systemBattleData.levellimit + })); + ixuisprite.RegisterSpriteClickEventHandler(null); + ixuibutton.RegisterClickEventHandler(null); + } + ixuisprite3.SetSprite(systemBattleData.IconSpritePath); + ixuisprite4.SetSprite(systemBattleData.TitleSpriteName); + } + } + + private void OnEnterDetailClicked(IXUISprite sp) + { + this.ShowDetailByIndex((int)sp.ID); + } + + public void ShowDetailByIndex(int index) + { + bool flag = index >= this._doc.BountyList.Count; + if (!flag) + { + this._doc.CurrentBountyData = this._doc.BountyList[index]; + DlgBase.singleton.ShowBountyModeDetailHandler(); + } + } + + private void OnHelpClicked(IXUISprite sp) + { + CustomBattleTypeTable.RowData customBattleTypeData = this._doc.GetCustomBattleTypeData((int)sp.ID); + string title = (customBattleTypeData != null) ? customBattleTypeData.name : ""; + string @string = XSingleton.singleton.GetString(string.Format("CustomTypeTip_{0}", sp.ID)); + DlgBase.singleton.ShowHelp(title, @string); + } + + private bool OnJoinClicked(IXUIButton button) + { + bool flag = (int)button.ID >= this._doc.BountyList.Count; + bool result; + if (flag) + { + result = false; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("JoinBountyCost", new object[] + { + XLabelSymbolHelper.FormatSmallIcon((int)this._doc.BountyList[(int)button.ID].ticket.itemID) + " " + this._doc.BountyList[(int)button.ID].ticket.itemCount.ToString() + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnJoinOkClicked)); + this._cache_gameid = this._doc.BountyList[(int)button.ID].gameID; + result = true; + } + return result; + } + + private bool OnJoinOkClicked(IXUIButton button) + { + this._doc.SendCustomBattleJoin(this._cache_gameid, false, ""); + this._cache_gameid = 0UL; + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public override void OnUpdate() + { + base.OnUpdate(); + foreach (KeyValuePair keyValuePair in this.timers) + { + bool activeInHierarchy = keyValuePair.Key.gameObject.activeInHierarchy; + if (activeInHierarchy) + { + keyValuePair.Value.Update(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeListHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeListHandler.cs.meta new file mode 100644 index 00000000..67219963 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBountyModeListHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df292cafa66e9df45827f16016456515 +timeCreated: 1611404691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBriefHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBriefHandler.cs new file mode 100644 index 00000000..d4995594 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBriefHandler.cs @@ -0,0 +1,172 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattleBriefHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/CustomModeBriefFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUISprite _close; + + private IXUILabel _name; + + private IXUILabel _type; + + private IXUILabel _creater; + + private Transform _slider; + + private IXUILabel _left_time; + + private IXUILabel _left_time_tip; + + private IXUILabel _size; + + private IXUILabel _length; + + private IXUILabel _limit; + + private IXUILabel _id; + + private IXUIButton _start; + + private IXUIButton _edit; + + private XLeftTimeCounter _lefttime_counter; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._close = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this._name = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel); + this._type = (base.transform.Find("Bg/Type").GetComponent("XUILabel") as IXUILabel); + this._creater = (base.transform.Find("Bg/Creater").GetComponent("XUILabel") as IXUILabel); + this._slider = base.transform.Find("Bg/Slider"); + this._left_time = (base.transform.Find("Bg/Slider/Time").GetComponent("XUILabel") as IXUILabel); + this._left_time_tip = (base.transform.Find("Bg/Slider/Time/Tip").GetComponent("XUILabel") as IXUILabel); + this._lefttime_counter = new XLeftTimeCounter(this._left_time, false); + this._size = (base.transform.Find("Bg/Size").GetComponent("XUILabel") as IXUILabel); + this._length = (base.transform.Find("Bg/Length").GetComponent("XUILabel") as IXUILabel); + this._limit = (base.transform.Find("Bg/Limit").GetComponent("XUILabel") as IXUILabel); + this._id = (base.transform.Find("Bg/ID").GetComponent("XUILabel") as IXUILabel); + this._start = (base.transform.Find("Bg/Start").GetComponent("XUIButton") as IXUIButton); + this._edit = (base.transform.Find("Bg/Edit").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + this._start.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartButtonClicked)); + this._edit.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEditButtonClicked)); + } + + private void OnCloseClicked(IXUISprite sp) + { + base.SetVisible(false); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = this._doc.CurrentCustomData == null; + if (flag) + { + base.SetVisible(false); + } + else + { + CustomBattleTable.RowData customBattleData = this._doc.GetCustomBattleData(this._doc.CurrentCustomData.configID); + this._type.SetText(customBattleData.desc); + this._name.SetText(this._doc.CurrentCustomData.gameName); + this._id.SetText(this._doc.CurrentCustomData.token); + this._creater.SetText(this._doc.CurrentCustomData.gameCreator); + this._size.SetText(this._doc.CurrentCustomData.joinText); + this._length.SetText(XSingleton.singleton.TimeAccFormatString((int)this._doc.CurrentCustomData.gameLength, 4, 0)); + uint num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleScale.CustomBattle_Scale_Friend); + bool flag2 = (this._doc.CurrentCustomData.gameMask & num) == num; + num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleScale.CustomBattle_Scale_Guild); + bool flag3 = (this._doc.CurrentCustomData.gameMask & num) == num; + string text = ""; + bool flag4 = flag2; + if (flag4) + { + text += XSingleton.singleton.GetString("FriendOnlyJoin"); + } + bool flag5 = flag3; + if (flag5) + { + text = text + ((text == "") ? "" : ",") + XSingleton.singleton.GetString("GuildOnlyJoin"); + } + bool flag6 = text == ""; + if (flag6) + { + text = XSingleton.singleton.GetString("AllJoin"); + } + this._limit.SetText(text); + this._start.SetEnable(this._doc.CurrentCustomData.creatorID == XSingleton.singleton.XPlayerData.RoleID, false); + this._edit.SetEnable(this._doc.CurrentCustomData.creatorID == XSingleton.singleton.XPlayerData.RoleID, false); + switch (this._doc.CurrentCustomData.gameStatus) + { + case CustomBattleState.CustomBattle_Ready: + this._left_time_tip.SetText(XSingleton.singleton.GetString("WaitForStart")); + this._lefttime_counter.SetLeftTime(this._doc.CurrentCustomData.gameStartLeftTime, -1); + break; + case CustomBattleState.CustomBattle_Going: + this._left_time_tip.SetText(XSingleton.singleton.GetString("WaitForEnd")); + this._lefttime_counter.SetLeftTime(this._doc.CurrentCustomData.gameEndLeftTime, -1); + this._start.SetEnable(false, false); + break; + case CustomBattleState.CustomBattle_End: + this._left_time_tip.SetText(XSingleton.singleton.GetString("WaitForEnd")); + this._lefttime_counter.SetLeftTime(this._doc.CurrentCustomData.gameEndLeftTime, -1); + this._start.SetEnable(false, false); + break; + case CustomBattleState.CustomBattle_Destory: + this._left_time_tip.SetText(XSingleton.singleton.GetString("WaitForEnd")); + this._lefttime_counter.SetLeftTime(this._doc.CurrentCustomData.gameEndLeftTime, -1); + this._start.SetEnable(false, false); + break; + } + } + } + + private bool OnStartButtonClicked(IXUIButton button) + { + this._doc.SendCustomBattleStartNow(this._doc.CurrentCustomData.gameID); + return true; + } + + private bool OnEditButtonClicked(IXUIButton button) + { + DlgBase.singleton.ShowPasswordSettingHandler(); + return true; + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._lefttime_counter.Update(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBriefHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBriefHandler.cs.meta new file mode 100644 index 00000000..e4ef50a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleBriefHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e36a3045d0e5e2b4c885f6bb1a2d957c +timeCreated: 1611404732 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleChestHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleChestHandler.cs new file mode 100644 index 00000000..22b9569b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleChestHandler.cs @@ -0,0 +1,213 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattleChestHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/ChestFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUISprite _close; + + private XUIPool _item_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton _fetch_btn; + + private Transform _wait_open_frame; + + private IXUIButton _open_now; + + private IXUILabel _left_time; + + private IXUILabelSymbol _cost; + + private XLeftTimeCounter _boxCD; + + private Transform _fx_point; + + private XFx _fx = null; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._close = (base.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("List/Item"); + this._item_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this._fetch_btn = (base.transform.Find("FetchBtn").GetComponent("XUIButton") as IXUIButton); + this._wait_open_frame = base.transform.Find("WaitFrame"); + this._open_now = (base.transform.Find("WaitFrame/OpenBtn").GetComponent("XUIButton") as IXUIButton); + this._left_time = (base.transform.Find("WaitFrame/Time").GetComponent("XUILabel") as IXUILabel); + this._boxCD = new XLeftTimeCounter(this._left_time, false); + this._cost = (base.transform.Find("WaitFrame/OpenBtn/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._fx_point = base.transform.Find("Title/Box/Fx"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + this._fetch_btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFetchButtonClicked)); + this._open_now.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOpenNowButtonClicked)); + } + + protected override void OnHide() + { + this._doc.DestoryFx(this._fx); + this._fx = null; + base.OnHide(); + } + + public override void OnUnload() + { + this._doc.DestoryFx(this._fx); + this._fx = null; + base.OnUnload(); + } + + private void OnCloseClicked(IXUISprite sp) + { + base.SetVisible(false); + } + + private bool OnFetchButtonClicked(IXUIButton button) + { + bool flag = DlgBase.singleton._BountyModeDetailHandler != null && DlgBase.singleton._BountyModeDetailHandler.IsVisible(); + if (flag) + { + this._doc.SendCustomBattleGetReward(this._doc.CurrentBountyData.gameID); + } + bool flag2 = DlgBase.singleton._CustomModeDetailHandler != null && DlgBase.singleton._CustomModeDetailHandler.IsVisible(); + if (flag2) + { + this._doc.SendCustomBattleGetReward(this._doc.CurrentCustomData.gameID); + } + return true; + } + + private bool OnOpenNowButtonClicked(IXUIButton button) + { + bool flag = DlgBase.singleton._BountyModeDetailHandler != null && DlgBase.singleton._BountyModeDetailHandler.IsVisible(); + if (flag) + { + this._doc.SendCustomBattleClearCD(this._doc.CurrentBountyData.gameID); + } + bool flag2 = DlgBase.singleton._CustomModeDetailHandler != null && DlgBase.singleton._CustomModeDetailHandler.IsVisible(); + if (flag2) + { + this._doc.SendCustomBattleClearCD(this._doc.CurrentCustomData.gameID); + } + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = DlgBase.singleton._BountyModeDetailHandler != null && DlgBase.singleton._BountyModeDetailHandler.IsVisible(); + if (flag) + { + this.RefreshBountyData(); + } + bool flag2 = DlgBase.singleton._CustomModeDetailHandler != null && DlgBase.singleton._CustomModeDetailHandler.IsVisible(); + if (flag2) + { + this.RefreshCustomData(); + } + } + + private void RefreshBountyData() + { + bool flag = this._doc.CurrentBountyData == null; + if (!flag) + { + this._item_pool.ReturnAll(false); + SeqListRef systemBattleReward = this._doc.GetSystemBattleReward((uint)this._doc.CurrentBountyData.gameID, this._doc.CurrentBountyData.winCount); + for (int i = 0; i < systemBattleReward.Count; i++) + { + GameObject gameObject = this._item_pool.FetchGameObject(false); + gameObject.transform.localPosition = this._item_pool.TplPos + new Vector3(((float)i - (float)(systemBattleReward.Count - 1) / 2f) * (float)this._item_pool.TplWidth, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)systemBattleReward[i, 0], (int)systemBattleReward[i, 1], false); + } + this._doc.DestoryFx(this._fx); + this._fx = null; + bool flag2 = this._doc.CurrentBountyData.boxLeftTime == 0u; + if (flag2) + { + this._fetch_btn.SetVisible(true); + this._wait_open_frame.gameObject.SetActive(false); + this._boxCD.SetLeftTime(0f, -1); + this._fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_BountyModeListFrame_Clip01", this._fx_point, false); + } + else + { + this._fetch_btn.SetVisible(false); + this._wait_open_frame.gameObject.SetActive(true); + this._boxCD.SetLeftTime(this._doc.CurrentBountyData.boxLeftTime, -1); + SeqRef systemBattleQuickOpenCost = this._doc.GetSystemBattleQuickOpenCost((uint)this._doc.CurrentBountyData.gameID, this._doc.CurrentBountyData.winCount); + this._cost.InputText = XLabelSymbolHelper.FormatSmallIcon((int)systemBattleQuickOpenCost[0]) + " " + systemBattleQuickOpenCost[1].ToString(); + } + } + } + + private void RefreshCustomData() + { + bool flag = this._doc.CurrentCustomData == null; + if (!flag) + { + this._item_pool.ReturnAll(false); + SeqListRef customBattleRewardByRank = this._doc.GetCustomBattleRewardByRank(this._doc.CurrentCustomData.configID, this._doc.CurrentCustomData.selfRank); + for (int i = 0; i < customBattleRewardByRank.Count; i++) + { + GameObject gameObject = this._item_pool.FetchGameObject(false); + gameObject.transform.localPosition = this._item_pool.TplPos + new Vector3(((float)i - (float)(customBattleRewardByRank.Count - 1) / 2f) * (float)this._item_pool.TplWidth, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)customBattleRewardByRank[i, 0], (int)customBattleRewardByRank[i, 1], false); + } + this._doc.DestoryFx(this._fx); + this._fx = null; + bool flag2 = this._doc.CurrentCustomData.boxLeftTime == 0u; + if (flag2) + { + this._fetch_btn.SetVisible(true); + this._wait_open_frame.gameObject.SetActive(false); + this._boxCD.SetLeftTime(0f, -1); + this._fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_BountyModeListFrame_Clip01", this._fx_point, false); + } + else + { + this._fetch_btn.SetVisible(false); + this._wait_open_frame.gameObject.SetActive(true); + this._boxCD.SetLeftTime(this._doc.CurrentCustomData.boxLeftTime, -1); + SeqRef customBattleQuickOpenCost = this._doc.GetCustomBattleQuickOpenCost(this._doc.CurrentCustomData.configID, this._doc.CurrentCustomData.selfRank); + this._cost.InputText = XLabelSymbolHelper.FormatSmallIcon((int)customBattleQuickOpenCost[0]) + " " + customBattleQuickOpenCost[1].ToString(); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool activeInHierarchy = this._wait_open_frame.gameObject.activeInHierarchy; + if (activeInHierarchy) + { + this._boxCD.Update(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleChestHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleChestHandler.cs.meta new file mode 100644 index 00000000..b56b0df7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleChestHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 645424fe5db17b9408c4656e13df2952 +timeCreated: 1611403847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeCreateHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeCreateHandler.cs new file mode 100644 index 00000000..fa6d3f3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeCreateHandler.cs @@ -0,0 +1,491 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattleCustomModeCreateHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/CustomModeCreateFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUIButton _close; + + private IXUILabelSymbol _reward1; + + private IXUILabelSymbol _reward2; + + private IXUISprite _add_reward; + + private IXUISprite _sub_reward; + + private IXUISprite _reward_box; + + private IXUISprite _reward_info; + + private IXUILabel _reward_tip; + + private IXUILabel _game_size; + + private IXUILabel _game_wait_time; + + private IXUILabel _game_time; + + private IXUISprite _game_time_add; + + private IXUISprite _game_time_sub; + + private IXUIInput _game_name; + + private IXUISprite _game_name_edit; + + private IXUISprite _friendsonly_switch; + + private IXUISprite _guildonly_switch; + + private IXUISprite _fairmode_switch; + + private IXUISprite _password_switch; + + private IXUITexture _game_type_change; + + private IXUILabel _game_type_name; + + private IXUIButton _game_create; + + private IXUILabelSymbol _game_create_cost; + + private Transform _check_frame; + + private IXUILabel _check_game_name; + + private IXUILabelSymbol _check_game_reward1; + + private IXUILabelSymbol _check_game_reward2; + + private IXUIButton _check_cancel; + + private IXUIButton _check_create; + + private IXUILabelSymbol _check_create_cost; + + private Transform _change_frame; + + private IXUIScrollView _game_type_scrollview; + + private XUIPool _game_type_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUISprite _change_frame_close; + + private Transform _fx_point; + + private XFx _fx = null; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this._reward1 = (base.transform.Find("Box/Reward1").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._reward2 = (base.transform.Find("Box/Reward2").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._add_reward = (base.transform.Find("Box/Right").GetComponent("XUISprite") as IXUISprite); + this._sub_reward = (base.transform.Find("Box/Left").GetComponent("XUISprite") as IXUISprite); + this._reward_box = (base.transform.Find("Box/Box").GetComponent("XUISprite") as IXUISprite); + this._reward_info = (base.transform.Find("Box/Box/Info").GetComponent("XUISprite") as IXUISprite); + this._reward_tip = (base.transform.Find("Box/Box/Tips").GetComponent("XUILabel") as IXUILabel); + this._reward_tip.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("CustomBattleCreateBoxTip"))); + this._game_size = (base.transform.Find("Box/Size").GetComponent("XUILabel") as IXUILabel); + this._game_wait_time = (base.transform.Find("Box/WaitTime").GetComponent("XUILabel") as IXUILabel); + this._game_time = (base.transform.Find("Box/Time").GetComponent("XUILabel") as IXUILabel); + this._game_time_add = (base.transform.Find("Box/Time/Add").GetComponent("XUISprite") as IXUISprite); + this._game_time_sub = (base.transform.Find("Box/Time/Sub").GetComponent("XUISprite") as IXUISprite); + this._game_name = (base.transform.Find("Settings/Name/Input").GetComponent("XUIInput") as IXUIInput); + this._game_name_edit = (base.transform.Find("Settings/Name/Edit").GetComponent("XUISprite") as IXUISprite); + this._friendsonly_switch = (base.transform.Find("Settings/FriendsOnly").GetComponent("XUISprite") as IXUISprite); + this._guildonly_switch = (base.transform.Find("Settings/GuildOnly").GetComponent("XUISprite") as IXUISprite); + this._fairmode_switch = (base.transform.Find("Settings/FairMode").GetComponent("XUISprite") as IXUISprite); + this._password_switch = (base.transform.Find("Settings/Password").GetComponent("XUISprite") as IXUISprite); + this._game_type_change = (base.transform.Find("Settings/GameChange").GetComponent("XUITexture") as IXUITexture); + this._game_type_name = (base.transform.Find("Settings/GameChange/Name").GetComponent("XUILabel") as IXUILabel); + this._game_create = (base.transform.Find("BtnCreate").GetComponent("XUIButton") as IXUIButton); + this._game_create_cost = (base.transform.Find("BtnCreate/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._check_frame = base.transform.Find("CheckFrame"); + this._check_game_name = (base.transform.Find("CheckFrame/Name").GetComponent("XUILabel") as IXUILabel); + this._check_game_reward1 = (base.transform.Find("CheckFrame/Reward/Reward1").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._check_game_reward2 = (base.transform.Find("CheckFrame/Reward/Reward2").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._check_cancel = (base.transform.Find("CheckFrame/Cancel").GetComponent("XUIButton") as IXUIButton); + this._check_create = (base.transform.Find("CheckFrame/BtnCreate").GetComponent("XUIButton") as IXUIButton); + this._check_create_cost = (base.transform.Find("CheckFrame/BtnCreate/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._change_frame = base.transform.Find("ChangeFrame"); + this._game_type_scrollview = (base.transform.Find("ChangeFrame/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this._change_frame_close = (base.transform.Find("ChangeFrame/Close").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("ChangeFrame/Panel/Tpl"); + this._game_type_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this._fx_point = base.transform.Find("Box/Box/Fx"); + } + + protected override void OnHide() + { + this._doc.DestoryFx(this._fx); + this._fx = null; + base.OnHide(); + } + + public override void OnUnload() + { + List list = ListPool.Get(); + this._game_type_pool.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + IXUITexture ixuitexture = list[i].transform.Find("Background").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(""); + } + ListPool.Release(list); + this._game_type_change.SetTexturePath(""); + this._doc.DestoryFx(this._fx); + this._fx = null; + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseButtonClicked)); + this._add_reward.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddRewardClicked)); + this._sub_reward.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSubRewardClicked)); + this._reward_box.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRewardBoxClicked)); + this._reward_info.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnRewardInfoPressed)); + this._game_time_add.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGameTimeAddClicked)); + this._game_time_sub.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGameTimeSubClicked)); + this._game_name_edit.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGameNameEditClicked)); + this._friendsonly_switch.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnFriendOnlySwitchClicked)); + this._guildonly_switch.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGuildOnlySwitchClicked)); + this._fairmode_switch.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnFairModeSwitchClicked)); + this._password_switch.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPasswordSwitchClicked)); + this._game_type_change.RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnGameTypeChangeClicked)); + this._game_create.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGameCreateButtonClicked)); + this._check_cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCheckCancelButtonClicked)); + this._check_create.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCheckCreateButtonClicked)); + this._change_frame_close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChangeFrameCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this._reward_tip.Alpha = 0f; + this._doc.DestoryFx(this._fx); + this._fx = null; + this._fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_BountyModeListFrame_Clip01", this._fx_point, false); + this._doc.ResetCustomModeCreateData(); + this.RefreshData(); + this.RefreshTypeList(); + } + + private void RefreshTypeList() + { + this._game_type_pool.ReturnAll(false); + CustomBattleTypeTable.RowData[] customBattleTypelist = this._doc.GetCustomBattleTypelist(); + for (int i = 0; i < customBattleTypelist.Length; i++) + { + bool flag = customBattleTypelist[i].gmcreate && !this._doc.IsCreateGM; + if (!flag) + { + GameObject gameObject = this._game_type_pool.FetchGameObject(false); + gameObject.transform.localPosition = this._game_type_pool.TplPos + new Vector3(0f, (float)(-(float)i * this._game_type_pool.TplHeight)); + IXUITexture ixuitexture = gameObject.transform.Find("Background").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath("atlas/UI/" + customBattleTypelist[i].show); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(customBattleTypelist[i].name); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)customBattleTypelist[i].type); + GameObject gameObject2 = gameObject.transform.Find("Lock").gameObject; + IXUILabel ixuilabel2 = gameObject2.GetComponent("XUILabel") as IXUILabel; + bool notopen = customBattleTypelist[i].notopen; + if (notopen) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTypeSelect)); + ixuitexture.SetEnabled(true); + gameObject2.SetActive(true); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(null); + ixuitexture.SetEnabled(false); + gameObject2.SetActive(false); + } + uint customBattleLevelLimitByType = this._doc.GetCustomBattleLevelLimitByType((uint)customBattleTypelist[i].type); + bool flag2 = customBattleLevelLimitByType > XSingleton.singleton.XPlayerData.Level; + if (flag2) + { + gameObject2.SetActive(true); + ixuilabel2.SetText(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL", new object[] + { + customBattleLevelLimitByType + })); + ixuisprite.RegisterSpriteClickEventHandler(null); + } + else + { + gameObject2.SetActive(false); + } + } + } + } + + public override void RefreshData() + { + base.RefreshData(); + this._change_frame.gameObject.SetActive(false); + this._check_frame.gameObject.SetActive(false); + this._game_name.SetText(this._doc.CustomCreateData.gameName); + uint num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleScale.CustomBattle_Scale_Friend); + bool flag = (this._doc.CustomCreateData.scaleMask & num) == num; + num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleScale.CustomBattle_Scale_Guild); + bool flag2 = (this._doc.CustomCreateData.scaleMask & num) == num; + this.SetSwitchSprite(this._friendsonly_switch, flag); + this.SetSwitchSprite(this._guildonly_switch, flag2); + this.SetSwitchSprite(this._fairmode_switch, this._doc.CustomCreateData.isFair); + this.SetSwitchSprite(this._password_switch, this._doc.CustomCreateData.hasPassword); + this.ShowGameType(1u); + } + + public void SetPasswordSwitchSprite(bool flag) + { + this.SetSwitchSprite(this._password_switch, flag); + XSingleton.singleton.ShowSystemTip(flag ? XSingleton.singleton.GetString("SetPasswordSucc") : XSingleton.singleton.GetString("CancelPassword"), "fece00"); + } + + internal void SetSwitchSprite(IXUISprite sp, bool flag) + { + sp.SetSprite(flag ? "UI_Sw_on" : "UI_Sw_off"); + } + + private bool OnCloseButtonClicked(IXUIButton button) + { + base.SetVisible(false); + return true; + } + + private void OnAddRewardClicked(IXUISprite sp) + { + uint customBattleNextID = this._doc.GetCustomBattleNextID(this._doc.CustomCreateData.gameType, this._doc.CustomCreateData.configID); + this.ShowConfig(customBattleNextID); + } + + private void OnSubRewardClicked(IXUISprite sp) + { + uint customBattlePreID = this._doc.GetCustomBattlePreID(this._doc.CustomCreateData.gameType, this._doc.CustomCreateData.configID); + this.ShowConfig(customBattlePreID); + } + + private void OnRewardBoxClicked(IXUISprite sp) + { + } + + private bool OnRewardInfoPressed(IXUISprite sp, bool isPressed) + { + this._reward_tip.Alpha = (float)(isPressed ? 1 : 0); + return true; + } + + private void OnGameTimeAddClicked(IXUISprite sp) + { + CustomBattleTable.RowData customBattleData = this._doc.GetCustomBattleData(this._doc.CustomCreateData.configID); + int num = customBattleData.timespan.Length; + bool flag = (ulong)this._doc.CustomCreateData.battleTimeIndex < (ulong)((long)(num - 1)); + if (flag) + { + XCustomBattleDocument doc = this._doc; + doc.CustomCreateData.battleTimeIndex = doc.CustomCreateData.battleTimeIndex + 1u; + } + this._game_time.SetText(XSingleton.singleton.TimeAccFormatString((int)customBattleData.timespan[(int)this._doc.CustomCreateData.battleTimeIndex], 4, 0)); + } + + private void OnGameTimeSubClicked(IXUISprite sp) + { + CustomBattleTable.RowData customBattleData = this._doc.GetCustomBattleData(this._doc.CustomCreateData.configID); + bool flag = this._doc.CustomCreateData.battleTimeIndex > 0u; + if (flag) + { + XCustomBattleDocument doc = this._doc; + doc.CustomCreateData.battleTimeIndex = doc.CustomCreateData.battleTimeIndex - 1u; + } + this._game_time.SetText(XSingleton.singleton.TimeAccFormatString((int)customBattleData.timespan[(int)this._doc.CustomCreateData.battleTimeIndex], 4, 0)); + } + + private void OnGameNameEditClicked(IXUISprite sp) + { + this._game_name.selected(true); + } + + private void OnFriendOnlySwitchClicked(IXUISprite sp) + { + uint num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleScale.CustomBattle_Scale_Friend); + XCustomBattleDocument doc = this._doc; + doc.CustomCreateData.scaleMask = (doc.CustomCreateData.scaleMask ^ num); + bool flag = (this._doc.CustomCreateData.scaleMask & num) == num; + this.SetSwitchSprite(this._friendsonly_switch, flag); + } + + private void OnGuildOnlySwitchClicked(IXUISprite sp) + { + uint num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleScale.CustomBattle_Scale_Guild); + XCustomBattleDocument doc = this._doc; + doc.CustomCreateData.scaleMask = (doc.CustomCreateData.scaleMask ^ num); + bool flag = (this._doc.CustomCreateData.scaleMask & num) == num; + this.SetSwitchSprite(this._guildonly_switch, flag); + } + + private void OnFairModeSwitchClicked(IXUISprite sp) + { + this._doc.CustomCreateData.isFair = !this._doc.CustomCreateData.isFair; + this.SetSwitchSprite(this._fairmode_switch, this._doc.CustomCreateData.isFair); + } + + private void OnPasswordSwitchClicked(IXUISprite sp) + { + bool flag = !this._doc.CustomCreateData.hasPassword; + if (flag) + { + this.SetSwitchSprite(this._password_switch, true); + DlgBase.singleton.ShowPasswordSettingHandler(); + } + else + { + this._doc.CustomCreateData.hasPassword = false; + this.SetPasswordSwitchSprite(false); + } + } + + private void OnGameTypeChangeClicked(IXUITexture sp) + { + this._change_frame.gameObject.SetActive(true); + } + + private bool OnGameCreateButtonClicked(IXUIButton button) + { + this._check_game_name.SetText(this._game_name.GetText()); + this._doc.CustomCreateData.gameName = this._game_name.GetText(); + SeqListRef customBattleBestReward = this._doc.GetCustomBattleBestReward(this._doc.CustomCreateData.configID); + this._check_game_reward1.InputText = ""; + this._check_game_reward2.InputText = ""; + bool flag = customBattleBestReward.Count > 0; + if (flag) + { + this._check_game_reward1.InputText = XLabelSymbolHelper.FormatSmallIcon((int)customBattleBestReward[0, 0]) + " " + customBattleBestReward[0, 1].ToString(); + } + bool flag2 = customBattleBestReward.Count > 1; + if (flag2) + { + this._check_game_reward2.InputText = XLabelSymbolHelper.FormatSmallIcon((int)customBattleBestReward[1, 0]) + " " + customBattleBestReward[1, 1].ToString(); + } + this._check_create_cost.InputText = XLabelSymbolHelper.FormatSmallIcon((int)this._doc.CustomCreateData.cost.itemID) + " " + this._doc.CustomCreateData.cost.itemCount.ToString(); + this._check_frame.gameObject.SetActive(true); + return true; + } + + private bool OnCheckCancelButtonClicked(IXUIButton button) + { + this._check_frame.gameObject.SetActive(false); + return true; + } + + private bool OnCheckCreateButtonClicked(IXUIButton button) + { + this._doc.SendCustomBattleCreate(); + return true; + } + + private void OnChangeFrameCloseClicked(IXUISprite sp) + { + this._change_frame.gameObject.SetActive(false); + } + + private void OnTypeSelect(IXUISprite sp) + { + uint num = (uint)sp.ID; + this._change_frame.gameObject.SetActive(false); + bool flag = num != this._doc.CustomCreateData.gameType; + if (flag) + { + this._doc.CustomCreateData.gameType = num; + this.ShowGameType(num); + } + } + + private void ShowGameType(uint typeid) + { + uint customBattleFirstID = this._doc.GetCustomBattleFirstID(typeid); + CustomBattleTypeTable.RowData customBattleTypeData = this._doc.GetCustomBattleTypeData((int)typeid); + this._game_type_change.SetTexturePath("atlas/UI/" + customBattleTypeData.show); + this._game_type_name.SetText(customBattleTypeData.name); + this.ShowConfig(customBattleFirstID); + } + + private void ShowConfig(uint configID) + { + CustomBattleTable.RowData customBattleData = this._doc.GetCustomBattleData(configID); + bool flag = customBattleData == null; + if (!flag) + { + this._doc.CustomCreateData.configID = configID; + this._doc.CustomCreateData.canJoinCount = customBattleData.joincount; + this._doc.CustomCreateData.readyTime = customBattleData.readytimepan; + this._game_size.SetText(this._doc.CustomCreateData.canJoinCount.ToString()); + this._game_wait_time.SetText(XSingleton.singleton.TimeAccFormatString((int)this._doc.CustomCreateData.readyTime, 4, 0)); + bool flag2 = (ulong)this._doc.CustomCreateData.battleTimeIndex >= (ulong)((long)customBattleData.timespan.Length); + if (flag2) + { + this._doc.CustomCreateData.battleTimeIndex = (uint)(customBattleData.timespan.Length - 1); + } + this._game_time.SetText(XSingleton.singleton.TimeAccFormatString((int)customBattleData.timespan[(int)this._doc.CustomCreateData.battleTimeIndex], 4, 0)); + SeqListRef customBattleBestReward = this._doc.GetCustomBattleBestReward(configID); + this._reward1.InputText = ""; + this._reward2.InputText = ""; + bool flag3 = customBattleBestReward.Count > 0; + if (flag3) + { + this._reward1.InputText = XLabelSymbolHelper.FormatSmallIcon((int)customBattleBestReward[0, 0]) + " " + customBattleBestReward[0, 1].ToString(); + } + bool flag4 = customBattleBestReward.Count > 1; + if (flag4) + { + this._reward2.InputText = XLabelSymbolHelper.FormatSmallIcon((int)customBattleBestReward[1, 0]) + " " + customBattleBestReward[1, 1].ToString(); + } + this._doc.CustomCreateData.cost.itemID = customBattleData.create[0, 0]; + this._doc.CustomCreateData.cost.itemCount = customBattleData.create[0, 1]; + this._game_create_cost.InputText = XLabelSymbolHelper.FormatSmallIcon((int)this._doc.CustomCreateData.cost.itemID) + " " + this._doc.CustomCreateData.cost.itemCount.ToString(); + bool flag5 = uint.MaxValue == this._doc.GetCustomBattleNextID(this._doc.CustomCreateData.gameType, configID); + if (flag5) + { + this._add_reward.SetAlpha(0f); + } + else + { + this._add_reward.SetAlpha(1f); + } + bool flag6 = this._doc.GetCustomBattlePreID(this._doc.CustomCreateData.gameType, configID) == 0u; + if (flag6) + { + this._sub_reward.SetAlpha(0f); + } + else + { + this._sub_reward.SetAlpha(1f); + } + this._reward_box.SetSprite(customBattleData.BoxSpriteName); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeCreateHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeCreateHandler.cs.meta new file mode 100644 index 00000000..025a1fec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeCreateHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b42979cfc366e224da0f14e9de385864 +timeCreated: 1611404392 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeDetailHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeDetailHandler.cs new file mode 100644 index 00000000..b02aff14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeDetailHandler.cs @@ -0,0 +1,386 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattleCustomModeDetailHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/CustomModeDetailFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUIScrollView _scroll_view; + + private IXUIWrapContent _wrap_content; + + private IXUISprite _selfinfo_rankimage; + + private IXUILabel _selfinfo_rank; + + private IXUILabel _selfinfo_name; + + private IXUILabel _selfinfo_point; + + private IXUILabelSymbol _selfinfo_reward; + + private IXUISprite _game_info_button; + + private IXUILabel _game_type; + + private IXUILabel _game_name; + + private IXUILabel _game_id; + + private IXUILabel _game_creater; + + private IXUILabel _game_size; + + private IXUILabel _game_time; + + private IXUILabel _game_time_tip; + + private Transform _game_time_slider; + + private IXUIButton _game_match; + + private IXUIButton _game_join; + + private IXUIButton _game_exit; + + private IXUISprite _game_box; + + private IXUILabel _game_notice; + + private IXUILabel _game_box_time; + + private IXUILabel _can_fetch; + + private Transform _fx_point; + + private XLeftTimeCounter _left_time; + + private XLeftTimeCounter _box_left_time; + + private IXUIButton _back; + + private XFx _fx; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._scroll_view = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this._wrap_content = (base.transform.Find("Bg/Panel/List").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._wrap_content.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentUpdated)); + this._selfinfo_rankimage = (base.transform.Find("Bg/MyInfo/RankImage").GetComponent("XUISprite") as IXUISprite); + this._selfinfo_rank = (base.transform.Find("Bg/MyInfo/Rank").GetComponent("XUILabel") as IXUILabel); + this._selfinfo_name = (base.transform.Find("Bg/MyInfo/Name").GetComponent("XUILabel") as IXUILabel); + this._selfinfo_point = (base.transform.Find("Bg/MyInfo/Point").GetComponent("XUILabel") as IXUILabel); + this._selfinfo_reward = (base.transform.Find("Bg/MyInfo/Reward").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._game_info_button = (base.transform.Find("Bg/GameInfo/Info").GetComponent("XUISprite") as IXUISprite); + this._game_type = (base.transform.Find("Bg/GameInfo/Type").GetComponent("XUILabel") as IXUILabel); + this._game_name = (base.transform.Find("Bg/GameInfo/Name").GetComponent("XUILabel") as IXUILabel); + this._game_id = (base.transform.Find("Bg/GameInfo/ID").GetComponent("XUILabel") as IXUILabel); + this._game_creater = (base.transform.Find("Bg/GameInfo/Creater").GetComponent("XUILabel") as IXUILabel); + this._game_size = (base.transform.Find("Bg/GameInfo/Size").GetComponent("XUILabel") as IXUILabel); + this._game_time = (base.transform.Find("Bg/GameInfo/Slider/Time").GetComponent("XUILabel") as IXUILabel); + this._game_time_tip = (base.transform.Find("Bg/GameInfo/Slider/Time/T").GetComponent("XUILabel") as IXUILabel); + this._game_time_slider = base.transform.Find("Bg/GameInfo/Slider"); + this._left_time = new XLeftTimeCounter(this._game_time, false); + this._game_match = (base.transform.Find("Bg/GameInfo/BtnStart").GetComponent("XUIButton") as IXUIButton); + this._game_join = (base.transform.Find("Bg/GameInfo/BtnJoin").GetComponent("XUIButton") as IXUIButton); + this._game_exit = (base.transform.Find("Bg/GameInfo/BtnExit").GetComponent("XUIButton") as IXUIButton); + this._game_box = (base.transform.Find("Bg/GameInfo/Box").GetComponent("XUISprite") as IXUISprite); + this._game_box_time = (base.transform.Find("Bg/GameInfo/Box/Time").GetComponent("XUILabel") as IXUILabel); + this._game_notice = (base.transform.Find("Bg/GameInfo/Notice").GetComponent("XUILabel") as IXUILabel); + this._can_fetch = (base.transform.Find("Bg/GameInfo/Box/CanFetch").GetComponent("XUILabel") as IXUILabel); + this._box_left_time = new XLeftTimeCounter(this._game_box_time, true); + this._fx_point = base.transform.Find("Bg/GameInfo/Box/Fx"); + this._back = (base.transform.Find("Bg/Back").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._game_info_button.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGameInfoButtonClicked)); + this._game_match.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGameMatchButtonClicked)); + this._game_join.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGameJoinButtonClicked)); + this._game_exit.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGameExitButtonClicked)); + this._game_box.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGameBoxClicked)); + this._back.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBackButtonClicked)); + } + + protected override void OnHide() + { + this._doc.DestoryFx(this._fx); + this._fx = null; + base.OnHide(); + } + + public override void OnUnload() + { + this._doc.DestoryFx(this._fx); + this._fx = null; + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.SendCustomBattleSearchCustomModeList(this._doc.CurrentCustomData.gameID); + this._doc.SendCustomBattleQueryCustomModeSelfInfo(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + CustomBattleTable.RowData customBattleData = this._doc.GetCustomBattleData(this._doc.CurrentCustomData.configID); + bool flag = customBattleData == null || this._doc.CurrentCustomData == null; + if (!flag) + { + this._game_type.SetText(customBattleData.desc); + this._game_name.SetText(this._doc.CurrentCustomData.gameName); + this._game_id.SetText(this._doc.CurrentCustomData.token); + this._game_creater.SetText(this._doc.CurrentCustomData.gameCreator); + this._game_size.SetText(this._doc.CurrentCustomData.joinText); + this._doc.DestoryFx(this._fx); + this._fx = null; + bool flag2 = this._doc.SelfCustomData != null && this._doc.CurrentCustomData.gameID == this._doc.SelfCustomData.gameID; + switch (this._doc.CurrentCustomData.gameStatus) + { + case CustomBattleState.CustomBattle_Ready: + this._game_box.SetVisible(false); + this._game_match.SetVisible(false); + this._game_time_slider.gameObject.SetActive(true); + this._game_time_tip.SetText(XSingleton.singleton.GetString("WaitForStart")); + this._left_time.SetLeftTime(this._doc.CurrentCustomData.gameStartLeftTime, -1); + this._game_exit.SetVisible(flag2); + this._game_join.SetVisible(!flag2); + this._game_notice.SetText(flag2 ? XSingleton.singleton.GetString("WaitForShowMatch") : ""); + break; + case CustomBattleState.CustomBattle_Going: + this._game_box.SetVisible(false); + this._game_time_slider.gameObject.SetActive(true); + this._game_time_tip.SetText(XSingleton.singleton.GetString("WaitForEnd")); + this._left_time.SetLeftTime(this._doc.CurrentCustomData.gameEndLeftTime, -1); + this._game_match.SetVisible(flag2); + this._game_exit.SetVisible(flag2); + this._game_join.SetVisible(!flag2); + this._game_notice.SetText(""); + break; + case CustomBattleState.CustomBattle_End: + { + CustomBattleRoleState selfStatus = this._doc.CurrentCustomData.selfStatus; + if (selfStatus != CustomBattleRoleState.CustomBattle_RoleState_Reward) + { + if (selfStatus != CustomBattleRoleState.Custombattle_RoleState_Taken) + { + this._game_box.SetVisible(false); + this._game_match.SetVisible(false); + this._game_join.SetVisible(false); + this._game_exit.SetVisible(false); + this._game_time_slider.gameObject.SetActive(false); + this._game_notice.SetText(XSingleton.singleton.GetString("GameEnd")); + } + else + { + this._game_box.SetVisible(false); + this._game_match.SetVisible(false); + this._game_join.SetVisible(false); + this._game_exit.SetVisible(flag2); + this._game_time_slider.gameObject.SetActive(false); + this._game_notice.SetText(XSingleton.singleton.GetString("GameEnd")); + } + } + else + { + this._game_box.SetVisible(flag2); + this._game_match.SetVisible(false); + this._game_join.SetVisible(false); + this._game_exit.SetVisible(flag2); + this._game_time_slider.gameObject.SetActive(false); + this._can_fetch.SetVisible(this._doc.CurrentCustomData.boxLeftTime <= 0u); + this._box_left_time.SetLeftTime(this._doc.CurrentCustomData.boxLeftTime, -1); + bool flag3 = this._doc.CurrentCustomData.boxLeftTime <= 0u; + if (flag3) + { + this._fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_BountyModeListFrame_Clip01", this._fx_point, false); + } + this._game_notice.SetText(flag2 ? "" : XSingleton.singleton.GetString("GameEnd")); + } + break; + } + case CustomBattleState.CustomBattle_Destory: + this._game_box.SetVisible(false); + this._game_match.SetVisible(false); + this._game_join.SetVisible(false); + this._game_exit.SetVisible(false); + this._game_time_slider.gameObject.SetActive(false); + this._game_notice.SetText(XSingleton.singleton.GetString("GameEnd")); + break; + } + bool flag4 = this._doc.SelfCustomData != null && this._doc.CurrentCustomData.gameID == this._doc.SelfCustomData.gameID; + if (flag4) + { + } + this._wrap_content.SetContentCount(this._doc.CurrentCustomData.rankList.Count, false); + this._scroll_view.ResetPosition(); + this.SetupSelf(); + } + } + + private void WrapContentUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.CurrentCustomData.rankList.Count; + if (flag) + { + t.gameObject.SetActive(false); + } + else + { + this.SetupRank(t, index); + } + } + + private void SetupRank(Transform t, int index) + { + IXUISprite ixuisprite = t.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("ViewBattle").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Point").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("Reward").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + CustomBattleRank customBattleRank = this._doc.CurrentCustomData.rankList[index]; + ixuisprite.SetVisible(index < 3); + ixuilabel.SetVisible(index >= 3); + ixuisprite2.SetVisible(false); + ixuisprite.SetSprite(string.Format("N{0}", index + 1)); + ixuilabel.SetText((index + 1).ToString()); + ixuilabel2.SetText(customBattleRank.name); + ixuilabel3.SetText(customBattleRank.point.ToString()); + SeqListRef customBattleRewardByRank = this._doc.GetCustomBattleRewardByRank(this._doc.CurrentCustomData.configID, (uint)(index + 1)); + string text = ""; + for (int i = 0; i < customBattleRewardByRank.Count; i++) + { + text = string.Concat(new string[] + { + text, + (i == 0) ? "" : " ", + XLabelSymbolHelper.FormatSmallIcon((int)customBattleRewardByRank[i, 0]), + " ", + customBattleRewardByRank[i, 1].ToString() + }); + } + ixuilabelSymbol.InputText = text; + } + + private void SetupSelf() + { + bool flag = this._doc.CurrentCustomData.selfRank == 0u; + if (flag) + { + this._selfinfo_rankimage.SetSprite(""); + this._selfinfo_rank.SetText(""); + this._selfinfo_name.SetText(""); + this._selfinfo_point.SetText(""); + this._selfinfo_reward.InputText = ""; + } + else + { + this._selfinfo_rankimage.SetVisible(this._doc.CurrentCustomData.selfRank <= 3u); + this._selfinfo_rank.SetVisible(this._doc.CurrentCustomData.selfRank > 3u); + this._selfinfo_rankimage.SetSprite(string.Format("N{0}", this._doc.CurrentCustomData.selfRank)); + this._selfinfo_rank.SetText(this._doc.CurrentCustomData.selfRank.ToString()); + this._selfinfo_name.SetText(XSingleton.singleton.XPlayerData.Name); + this._selfinfo_point.SetText(this._doc.CurrentCustomData.selfPoint.ToString()); + SeqListRef customBattleRewardByRank = this._doc.GetCustomBattleRewardByRank(this._doc.CurrentCustomData.configID, this._doc.CurrentCustomData.selfRank); + string text = ""; + for (int i = 0; i < customBattleRewardByRank.Count; i++) + { + text = string.Concat(new string[] + { + text, + (i == 0) ? "" : " ", + XLabelSymbolHelper.FormatSmallIcon((int)customBattleRewardByRank[i, 0]), + " ", + customBattleRewardByRank[i, 1].ToString() + }); + } + this._selfinfo_reward.InputText = text; + } + } + + private void OnGameInfoButtonClicked(IXUISprite sp) + { + DlgBase.singleton.ShowCustomModeBriefHandler(); + } + + private bool OnGameMatchButtonClicked(IXUIButton button) + { + bool flag = this._doc.CurrentCustomData.expID == 0; + if (flag) + { + bool flag2 = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnGameMatchButtonClicked), button); + if (flag2) + { + return true; + } + this._doc.SendCustomBattleMatch(this._doc.CurrentCustomData.gameID); + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(this._doc.CurrentCustomData.expID); + } + return true; + } + + private bool OnGameJoinButtonClicked(IXUIButton button) + { + this._doc.SendCustomBattleJoin(this._doc.CurrentCustomData.gameID, this._doc.CurrentCustomData.hasPassword, ""); + return true; + } + + private bool OnGameExitButtonClicked(IXUIButton button) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("UnJoinCustomModeTip"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnUnJoinOkClicked)); + return true; + } + + private bool OnUnJoinOkClicked(IXUIButton button) + { + DlgBase.singleton.SetVisible(false, true); + this._doc.SendCustomBattleExit(this._doc.CurrentCustomData.gameID); + return true; + } + + private void OnGameBoxClicked(IXUISprite sp) + { + DlgBase.singleton.ShowChestHandler(); + } + + private bool OnBackButtonClicked(IXUIButton button) + { + DlgBase.singleton.ShowCustomModeListHandler(); + return true; + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._left_time.Update(); + this._box_left_time.Update(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeDetailHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeDetailHandler.cs.meta new file mode 100644 index 00000000..e604b9b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeDetailHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14c6b16e189ff28439a7d7232b922618 +timeCreated: 1611403259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeListHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeListHandler.cs new file mode 100644 index 00000000..4660c87b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeListHandler.cs @@ -0,0 +1,334 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattleCustomModeListHandler : DlgHandlerBase + { + private int wrapCount + { + get + { + bool flag = this._doc == null; + int result; + if (flag) + { + result = 0; + } + else + { + result = ((this._doc.SelfCustomData == null) ? this._doc.CustomList.Count : (this._doc.CustomList.Count + 1)); + } + return result; + } + } + + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/CustomModeListFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUIInput _input; + + private IXUISprite _search; + + private IXUIButton _create_game; + + private IXUIButton _my_game; + + private Transform _red_point; + + private IXUIButton _refresh; + + private IXUISprite _show_other; + + private Transform _show_flag; + + private Transform _empty_game; + + private IXUIScrollView _scroll_view; + + private IXUIWrapContent _wrap_content; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._input = (base.transform.Find("Bg/Input").GetComponent("XUIInput") as IXUIInput); + this._search = (base.transform.Find("Bg/Input/Search").GetComponent("XUISprite") as IXUISprite); + this._create_game = (base.transform.Find("Bg/BtnCreateGame").GetComponent("XUIButton") as IXUIButton); + this._my_game = (base.transform.Find("Bg/BtnMyGame").GetComponent("XUIButton") as IXUIButton); + this._red_point = base.transform.Find("Bg/BtnMyGame/RedPoint"); + this._refresh = (base.transform.Find("Bg/BtnRefresh").GetComponent("XUIButton") as IXUIButton); + this._show_other = (base.transform.Find("Bg/BtnOther").GetComponent("XUISprite") as IXUISprite); + this._show_flag = base.transform.Find("Bg/BtnOther/Flag"); + this._empty_game = base.transform.Find("Bg/EmptyGame"); + this._scroll_view = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this._wrap_content = (base.transform.Find("Bg/Panel/List").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._wrap_content.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentUpdated)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._search.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSearchClicked)); + this._create_game.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCreateGameButtonClicked)); + this._my_game.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMyGameButtonClicked)); + this._refresh.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshButtonClicked)); + this._show_other.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowOtherClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this._input.SetText(""); + this._show_flag.gameObject.SetActive(this._doc.QueryCross); + this._doc.SendCustomBattleQueryCustomModeList(this._doc.QueryCross); + this._doc.SendCustomBattleQueryCustomModeSelfInfo(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = this._doc.SelfCustomData != null; + if (flag) + { + this._create_game.SetVisible(false); + this._my_game.SetVisible(true); + this._red_point.gameObject.SetActive(this._doc.SelfCustomData.selfStatus == CustomBattleRoleState.CustomBattle_RoleState_Reward && this._doc.SelfCustomData.boxLeftTime == 0u); + } + else + { + this._create_game.SetVisible(true); + this._my_game.SetVisible(false); + } + this._wrap_content.SetContentCount(this.wrapCount, false); + this._empty_game.gameObject.SetActive(this.wrapCount == 0); + this._scroll_view.ResetPosition(); + } + + private void WrapContentUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this.wrapCount; + if (flag) + { + t.gameObject.SetActive(false); + } + else + { + this.SetupCustom(t, index); + } + } + + private void SetupCustom(Transform t, int index) + { + Transform transform = t.Find("FairMode"); + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Type").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Creator").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("JoinCount").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("JoinBtn").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("DetailBtn").GetComponent("XUIButton") as IXUIButton; + bool flag = this._doc.SelfCustomData == null; + XCustomBattleDocument.CustomModeData customModeData; + if (flag) + { + customModeData = this._doc.CustomList[index]; + } + else + { + bool flag2 = index == 0; + if (flag2) + { + customModeData = this._doc.SelfCustomData; + } + else + { + customModeData = this._doc.CustomList[index - 1]; + } + } + transform.gameObject.SetActive(customModeData.fairMode); + string text = " "; + uint num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleTag.CustomBattle_Tag_Friend); + bool flag3 = (customModeData.tagMask & num) == num; + num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleTag.CustomBattle_Tag_Guild); + bool flag4 = (customModeData.tagMask & num) == num; + num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleTag.CustomBattle_Tag_Cross); + bool flag5 = (customModeData.tagMask & num) == num; + num = 1u << XFastEnumIntEqualityComparer.ToInt(CustomBattleTag.CustomBattle_Tag_GM); + bool flag6 = (customModeData.tagMask & num) == num; + bool flag7 = flag3; + if (flag7) + { + text += XLabelSymbolHelper.FormatImage("common/Universal", "chat_tag_8"); + } + bool flag8 = flag4; + if (flag8) + { + text += XLabelSymbolHelper.FormatImage("common/Universal", "chat_tag_2"); + } + bool flag9 = flag5; + if (flag9) + { + text += XLabelSymbolHelper.FormatImage("common/Universal", "chat_tag_11"); + } + bool flag10 = flag6; + if (flag10) + { + text += XLabelSymbolHelper.FormatImage("common/Universal", "chat_tag_12"); + } + ixuilabelSymbol.InputText = customModeData.gameName + text; + CustomBattleTypeTable.RowData customBattleTypeData = this._doc.GetCustomBattleTypeData((int)customModeData.gameType); + ixuilabel.SetText((customBattleTypeData != null) ? customBattleTypeData.name : ""); + ixuilabel2.SetText(customModeData.gameCreator); + ixuilabel3.SetText(customModeData.joinText); + ixuibutton.ID = (ulong)((long)index); + ixuibutton2.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinButtonClicked)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDetailButtonClicked)); + bool flag11 = this._doc.SelfCustomData != null && this._doc.SelfCustomData.gameID == customModeData.gameID; + if (flag11) + { + ixuibutton.SetEnable(false, false); + } + else + { + ixuibutton.SetEnable(true, false); + } + } + + private void OnSearchClicked(IXUISprite sp) + { + this._doc.SendCustomBattleSearch(this._input.GetText()); + this._input.SetText(""); + } + + private bool OnCreateGameButtonClicked(IXUIButton button) + { + DlgBase.singleton.ShowCustomModeCreateHandler(); + return true; + } + + private bool OnMyGameButtonClicked(IXUIButton button) + { + bool flag = this._doc.SelfCustomData == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._doc.CurrentCustomData = this._doc.SelfCustomData; + DlgBase.singleton.ShowCustomModeDetailHandler(); + result = true; + } + return result; + } + + private bool OnRefreshButtonClicked(IXUIButton button) + { + this._doc.SendCustomBattleQueryCustomModeList(this._doc.QueryCross); + this._doc.SendCustomBattleQueryCustomModeSelfInfo(); + this._input.SetText(""); + return true; + } + + private void OnShowOtherClicked(IXUISprite sp) + { + this._doc.QueryCross = !this._doc.QueryCross; + this._show_flag.gameObject.SetActive(this._doc.QueryCross); + this.OnRefreshButtonClicked(null); + } + + private bool OnJoinButtonClicked(IXUIButton button) + { + bool flag = (int)button.ID >= this.wrapCount; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this._doc.SelfCustomData != null; + if (flag2) + { + bool flag3 = button.ID == 0UL; + if (flag3) + { + this._doc.CurrentCustomData = this._doc.SelfCustomData; + this._doc.SendCustomBattleJoin(this._doc.SelfCustomData.gameID, this._doc.SelfCustomData.hasPassword, ""); + } + else + { + this._doc.CurrentCustomData = this._doc.CustomList[(int)button.ID - 1]; + this._doc.SendCustomBattleJoin(this._doc.CustomList[(int)button.ID - 1].gameID, this._doc.CustomList[(int)button.ID - 1].hasPassword, ""); + } + } + else + { + this._doc.CurrentCustomData = this._doc.CustomList[(int)button.ID]; + this._doc.SendCustomBattleJoin(this._doc.CustomList[(int)button.ID].gameID, this._doc.CustomList[(int)button.ID].hasPassword, ""); + } + result = true; + } + return result; + } + + private bool OnDetailButtonClicked(IXUIButton button) + { + this.ShowDetailByIndex((int)button.ID); + return true; + } + + public bool ShowDetailByIndex(int index) + { + bool flag = index >= this.wrapCount; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this._doc.SelfCustomData != null; + if (flag2) + { + bool flag3 = index == 0; + if (flag3) + { + this._doc.CurrentCustomData = this._doc.SelfCustomData; + } + else + { + this._doc.CurrentCustomData = this._doc.CustomList[index - 1]; + } + } + else + { + this._doc.CurrentCustomData = this._doc.CustomList[index]; + } + DlgBase.singleton.ShowCustomModeDetailHandler(); + result = true; + } + return result; + } + + public void ShowSelfDetail() + { + this._doc.CurrentCustomData = this._doc.SelfCustomData; + DlgBase.singleton.ShowCustomModeDetailHandler(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeListHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeListHandler.cs.meta new file mode 100644 index 00000000..4afdd4b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleCustomModeListHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea74f24d0b7939b40aba295ab2204107 +timeCreated: 1611404779 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs new file mode 100644 index 00000000..14fb4780 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs @@ -0,0 +1,40 @@ +using System; +using UILib; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattleMatchingHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/MatchingFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUIButton _cancel; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._cancel = (base.transform.Find("Cancel").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancelButtonClicked)); + } + + private bool OnCancelButtonClicked(IXUIButton button) + { + this._doc.SendCustomBattleUnMatch(); + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs.meta new file mode 100644 index 00000000..1a772b19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattleMatchingHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a9a41dfb20578340ad1e457c2fec5f5 +timeCreated: 1611404201 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattlePasswordSettingHandler.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattlePasswordSettingHandler.cs new file mode 100644 index 00000000..e45ce9a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattlePasswordSettingHandler.cs @@ -0,0 +1,130 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI.CustomBattle +{ + internal class CustomBattlePasswordSettingHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CustomBattle/PasswordSettingFrame"; + } + } + + private XCustomBattleDocument _doc = null; + + private IXUIButton _ok; + + private IXUIButton _cancel; + + private IXUIInput _password; + + private bool passwordForJoin = false; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._ok = (base.transform.Find("OK").GetComponent("XUIButton") as IXUIButton); + this._cancel = (base.transform.Find("Cancel").GetComponent("XUIButton") as IXUIButton); + this._password = (base.transform.Find("Password").GetComponent("XUIInput") as IXUIInput); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._ok.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOKButtonClicked)); + this._cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancelButtonClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.passwordForJoin = this._doc.passwordForJoin; + this._doc.passwordForJoin = false; + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = DlgBase.singleton._CustomModeCreateHandler != null && DlgBase.singleton._CustomModeCreateHandler.IsVisible(); + if (flag) + { + bool flag2 = this._doc.CustomCreateData.hasPassword && !string.IsNullOrEmpty(this._doc.CustomCreateData.password); + if (flag2) + { + this._password.SetText(this._doc.CustomCreateData.password); + } + } + } + + private bool OnOKButtonClicked(IXUIButton button) + { + bool flag = this.passwordForJoin; + bool result; + if (flag) + { + bool flag2 = this._password.GetText() == this._password.GetDefault(); + if (flag2) + { + this._doc.SendCustomBattleJoin(this._doc.CurrentCustomData.gameID, false, ""); + } + else + { + this._doc.SendCustomBattleJoin(this._doc.CurrentCustomData.gameID, false, this._password.GetText()); + } + base.SetVisible(false); + result = true; + } + else + { + bool flag3 = this._password.GetText() == "" || this._password.GetText() == this._password.GetDefault(); + if (flag3) + { + bool flag4 = DlgBase.singleton._CustomModeCreateHandler != null && DlgBase.singleton._CustomModeCreateHandler.IsVisible(); + if (flag4) + { + this._doc.CustomCreateData.hasPassword = false; + this._doc.CustomCreateData.password = ""; + DlgBase.singleton._CustomModeCreateHandler.SetPasswordSwitchSprite(false); + } + } + else + { + bool flag5 = DlgBase.singleton._CustomModeCreateHandler != null && DlgBase.singleton._CustomModeCreateHandler.IsVisible(); + if (flag5) + { + this._doc.CustomCreateData.hasPassword = true; + this._doc.CustomCreateData.password = this._password.GetText(); + DlgBase.singleton._CustomModeCreateHandler.SetPasswordSwitchSprite(true); + } + } + bool flag6 = DlgBase.singleton._CustomModeBriefHandler != null && DlgBase.singleton._CustomModeBriefHandler.IsVisible(); + if (flag6) + { + this._doc.SendCustomBattleModifyPassword(this._doc.CurrentCustomData.gameID, this._password.GetText()); + } + base.SetVisible(false); + result = true; + } + return result; + } + + private bool OnCancelButtonClicked(IXUIButton button) + { + bool flag = DlgBase.singleton._CustomModeCreateHandler != null && DlgBase.singleton._CustomModeCreateHandler.IsVisible(); + if (flag) + { + this._doc.CustomCreateData.hasPassword = false; + this._doc.CustomCreateData.password = ""; + DlgBase.singleton._CustomModeCreateHandler.SetPasswordSwitchSprite(false); + } + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattlePasswordSettingHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattlePasswordSettingHandler.cs.meta new file mode 100644 index 00000000..ea6be6e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattle/CustomBattlePasswordSettingHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efb5e705336a38b4691c4457bfa2ee5c +timeCreated: 1611404805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattleView.cs b/Client/Assets/Scripts/XMainClient/UI/CustomBattleView.cs new file mode 100644 index 00000000..656bd634 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattleView.cs @@ -0,0 +1,257 @@ +using System; +using UILib; +using XMainClient.UI.CustomBattle; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class CustomBattleView : TabDlgBase + { + public override string fileName + { + get + { + return "GameSystem/CustomBattle/CustomBattleDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CustomBattle); + } + } + + protected override bool bHorizontal + { + get + { + return false; + } + } + + private XCustomBattleDocument _doc = null; + + public CustomBattleBountyModeDetailHandler _BountyModeDetailHandler = null; + + public CustomBattleBountyModeListHandler _BountyModeListHandler = null; + + public CustomBattleBriefHandler _CustomModeBriefHandler = null; + + public CustomBattleChestHandler _ChestHandler = null; + + public CustomBattleCustomModeCreateHandler _CustomModeCreateHandler = null; + + public CustomBattleCustomModeDetailHandler _CustomModeDetailHandler = null; + + public CustomBattleCustomModeListHandler _CustomModeListHandler = null; + + public CustomBattleMatchingHandler _MatchingHandler = null; + + public CustomBattlePasswordSettingHandler _PasswordSettingHandler = null; + + private IXUIButton _help; + + private IXUIButton _shop; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this._help = (base.uiBehaviour.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this._shop = (base.uiBehaviour.transform.Find("Bg/BtnShop").GetComponent("XUIButton") as IXUIButton); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_CustomBattle); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._BountyModeDetailHandler); + DlgHandlerBase.EnsureUnload(ref this._BountyModeListHandler); + DlgHandlerBase.EnsureUnload(ref this._CustomModeBriefHandler); + DlgHandlerBase.EnsureUnload(ref this._ChestHandler); + DlgHandlerBase.EnsureUnload(ref this._CustomModeCreateHandler); + DlgHandlerBase.EnsureUnload(ref this._CustomModeDetailHandler); + DlgHandlerBase.EnsureUnload(ref this._CustomModeListHandler); + DlgHandlerBase.EnsureUnload(ref this._MatchingHandler); + DlgHandlerBase.EnsureUnload(ref this._PasswordSettingHandler); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + this._shop.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopClicked)); + } + + private bool OnCloseClicked(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + private bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_CustomBattle); + return true; + } + + private bool OnShopClicked(IXUIButton button) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Mall_AllPkMatch, 0UL); + return true; + } + + public void ShowBountyModeDetailHandler() + { + DlgHandlerBase.EnsureCreate(ref this._BountyModeDetailHandler, base.uiBehaviour.m_root, true, null); + } + + public void ShowBountyModeListHandler() + { + this.HideAll(); + DlgHandlerBase.EnsureCreate(ref this._BountyModeListHandler, base.uiBehaviour.m_root, true, null); + } + + public void ShowCustomModeBriefHandler() + { + DlgHandlerBase.EnsureCreate(ref this._CustomModeBriefHandler, base.uiBehaviour.m_root, true, null); + } + + public void ShowChestHandler() + { + DlgHandlerBase.EnsureCreate(ref this._ChestHandler, base.uiBehaviour.m_root, true, null); + } + + public void ShowCustomModeCreateHandler() + { + DlgHandlerBase.EnsureCreate(ref this._CustomModeCreateHandler, base.uiBehaviour.m_root, true, null); + } + + public void ShowCustomModeDetailHandler() + { + this.HideAll(); + DlgHandlerBase.EnsureCreate(ref this._CustomModeDetailHandler, base.uiBehaviour.m_root, true, null); + } + + public void ShowCustomModeListHandler() + { + this.HideAll(); + DlgHandlerBase.EnsureCreate(ref this._CustomModeListHandler, base.uiBehaviour.m_root, true, null); + } + + public void ShowMatchingHandler() + { + DlgHandlerBase.EnsureCreate(ref this._MatchingHandler, base.uiBehaviour.m_root, true, null); + } + + public void ShowPasswordSettingHandler() + { + DlgHandlerBase.EnsureCreate(ref this._PasswordSettingHandler, base.uiBehaviour.m_root, true, null); + } + + private void HideHandler(DlgHandlerBase handler) + { + bool flag = handler == null; + if (!flag) + { + handler.SetVisible(false); + } + } + + private void HideAll() + { + this.HideHandler(this._BountyModeDetailHandler); + this.HideHandler(this._BountyModeListHandler); + this.HideHandler(this._CustomModeBriefHandler); + this.HideHandler(this._ChestHandler); + this.HideHandler(this._CustomModeCreateHandler); + this.HideHandler(this._CustomModeDetailHandler); + this.HideHandler(this._CustomModeListHandler); + this.HideHandler(this._MatchingHandler); + this.HideHandler(this._PasswordSettingHandler); + } + + public override void SetupHandlers(XSysDefine sys) + { + if (sys != XSysDefine.XSys_CustomBattle_BountyMode) + { + if (sys == XSysDefine.XSys_CustomBattle_CustomMode) + { + bool flag = this._doc.SelfCustomData != null; + if (flag) + { + this._doc.CurrentCustomData = this._doc.SelfCustomData; + this.ShowCustomModeDetailHandler(); + } + else + { + this.ShowCustomModeListHandler(); + } + } + } + else + { + bool flag2 = this._doc.CurrentBountyData != null && this._doc.CurrentBountyData.gameID == this._doc.CacheGameID; + if (flag2) + { + this.ShowBountyModeListHandler(); + this.ShowBountyModeDetailHandler(); + } + else + { + this.ShowBountyModeListHandler(); + } + } + this._doc.CacheGameID = 0UL; + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._BountyModeListHandler != null; + if (flag) + { + this._BountyModeListHandler.OnUpdate(); + } + bool flag2 = this._BountyModeDetailHandler != null; + if (flag2) + { + this._BountyModeDetailHandler.OnUpdate(); + } + bool flag3 = this._CustomModeDetailHandler != null; + if (flag3) + { + this._CustomModeDetailHandler.OnUpdate(); + } + bool flag4 = this._ChestHandler != null; + if (flag4) + { + this._ChestHandler.OnUpdate(); + } + bool flag5 = this._CustomModeBriefHandler != null; + if (flag5) + { + this._CustomModeBriefHandler.OnUpdate(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CustomBattleView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CustomBattleView.cs.meta new file mode 100644 index 00000000..fa46dd02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CustomBattleView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c542c62af9160cb4897a21f1924707be +timeCreated: 1611404505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs b/Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs new file mode 100644 index 00000000..887ab86e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs @@ -0,0 +1,121 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class CutSceneUI : DlgBase + { + public override string fileName + { + get + { + return "Common/CutSceneUI"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool exclusive + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void Init() + { + base.uiBehaviour.m_BG.SetVisible(true); + base.uiBehaviour.m_Text.SetText(""); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Skip.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnSkipClick)); + base.uiBehaviour.m_Overlay.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOverlayClick)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Overlay.gameObject.SetActive(true); + base.uiBehaviour.m_Skip.gameObject.SetActive(false); + base.uiBehaviour.m_IntroTween.gameObject.SetActive(false); + } + + protected override void OnHide() + { + base.OnHide(); + base.uiBehaviour.m_Text.SetText(""); + } + + protected void OnSkipClick(IXUILabel uiSprite) + { + bool isPlaying = XSingleton.singleton.IsPlaying; + if (isPlaying) + { + XSingleton.singleton.Stop(false); + } + } + + protected void OnOverlayClick(IXUISprite go) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + base.uiBehaviour.m_Overlay.gameObject.SetActive(false); + base.uiBehaviour.m_Skip.gameObject.SetActive(true); + } + } + + public void SetText(string text) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + base.uiBehaviour.m_Text.SetText(text); + } + + public void SetIntroText(bool enabled, string name, string text, float x, float y) + { + bool flag = !base.IsVisible(); + if (!flag) + { + if (enabled) + { + base.uiBehaviour.m_Name.SetText(name); + base.uiBehaviour.m_IntroTween.gameObject.transform.localPosition = new Vector2(x, y); + base.uiBehaviour.m_IntroText.SetText(text); + base.uiBehaviour.m_IntroTween.SetTweenGroup(0); + base.uiBehaviour.m_IntroTween.ResetTweenByGroup(true, 0); + base.uiBehaviour.m_IntroTween.PlayTween(true, -1f); + } + else + { + base.uiBehaviour.m_IntroTween.SetTweenGroup(1); + base.uiBehaviour.m_IntroTween.ResetTweenByGroup(true, 1); + base.uiBehaviour.m_IntroTween.PlayTween(true, -1f); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs.meta new file mode 100644 index 00000000..7b53d97e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CutSceneUI.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 715b5415dfff02b4dbaf6130c89b11d5 +timeCreated: 1611403934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/CutSceneUIBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/CutSceneUIBehaviour.cs new file mode 100644 index 00000000..2618c780 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CutSceneUIBehaviour.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class CutSceneUIBehaviour : DlgBehaviourBase + { + public IXUISprite m_BG; + + public IXUILabel m_Text; + + public IXUILabel m_Skip; + + public IXUISprite m_Overlay; + + public IXUITweenTool m_IntroTween; + + public IXUILabel m_Name; + + public IXUILabel m_IntroText; + + private void Awake() + { + this.m_BG = (base.transform.Find("_canvas/DownBG").GetComponent("XUISprite") as IXUISprite); + this.m_Text = (base.transform.Find("_canvas/DownBG/Text").GetComponent("XUILabel") as IXUILabel); + this.m_Skip = (base.transform.Find("_canvas/DownBG/UpBG/Skip").GetComponent("XUILabel") as IXUILabel); + this.m_Overlay = (base.transform.Find("_canvas/Overlay").GetComponent("XUISprite") as IXUISprite); + this.m_IntroTween = (base.transform.Find("_canvas/Intro").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Name = (base.transform.Find("_canvas/Intro/Name").GetComponent("XUILabel") as IXUILabel); + this.m_IntroText = (base.transform.Find("_canvas/Intro/Text").GetComponent("XUILabel") as IXUILabel); + this.m_IntroTween.gameObject.SetActive(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/CutSceneUIBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/CutSceneUIBehaviour.cs.meta new file mode 100644 index 00000000..08b3088a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/CutSceneUIBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff16b068406664b4a969727b28c51ee9 +timeCreated: 1611404945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DailyActivityDlg.cs b/Client/Assets/Scripts/XMainClient/UI/DailyActivityDlg.cs new file mode 100644 index 00000000..384755c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DailyActivityDlg.cs @@ -0,0 +1,96 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DailyActivityDlg : TabDlgBase + { + public ActivityHandler ActivityHandler + { + get + { + return this.m_activityHandler; + } + } + + public override string fileName + { + get + { + return "GameSystem/DailyActivity/DailyActivityDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + protected override bool bHorizontal + { + get + { + return false; + } + } + + private ActivityHandler m_activityHandler; + + public XDailyActivitiesView _livenessActivityHandler; + + private Transform parent; + + protected override void Init() + { + base.Init(); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_DailyAcitivity); + } + + protected override void OnLoad() + { + base.OnLoad(); + this.parent = base.uiBehaviour.transform.Find("Bg"); + } + + protected override void OnUnload() + { + base.OnUnload(); + DlgHandlerBase.EnsureUnload(ref this.m_activityHandler); + DlgHandlerBase.EnsureUnload(ref this._livenessActivityHandler); + } + + public override void SetupHandlers(XSysDefine sys) + { + XSysDefine xsysDefine = sys; + if (xsysDefine != XSysDefine.XSys_Activity) + { + if (xsysDefine != XSysDefine.XSys_Reward_Activity) + { + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._livenessActivityHandler, this.parent, true, this)); + } + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_activityHandler, this.parent, true, this)); + } + } + + public void ShowSubSystem(XSysDefine sys) + { + bool flag = !base.IsLoaded(); + if (flag) + { + base.Load(); + } + base.ShowSubGamsSystem(sys); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DailyActivityDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DailyActivityDlg.cs.meta new file mode 100644 index 00000000..9f102eb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DailyActivityDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 70bcc31f37827eb4c90d9f9367cb90c5 +timeCreated: 1611403932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DanceMotionHandler.cs b/Client/Assets/Scripts/XMainClient/UI/DanceMotionHandler.cs new file mode 100644 index 00000000..277680e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DanceMotionHandler.cs @@ -0,0 +1,192 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DanceMotionHandler : DlgHandlerBase + { + private IXUIList m_MotionList; + + private XUIPool m_MotionPool; + + private IXUISprite m_MotionPanelBg; + + private GameObject m_MotionPanel; + + private GameObject m_ConditionPanel; + + private IXUIList m_ConditionList; + + private XUIPool m_ConditionPool; + + private IXUISprite m_ConditionPanelBg; + + private List m_listMotionData; + + private GameObject m_LastSelect; + + protected override void Init() + { + this.m_MotionPanel = base.PanelObject.transform.Find("MotionFrame").gameObject; + this.m_MotionPanelBg = (base.transform.Find("MotionFrame/Bg").GetComponent("XUISprite") as IXUISprite); + this.m_MotionList = (base.transform.Find("MotionFrame/MotionSV/MotionList").GetComponent("XUIList") as IXUIList); + GameObject gameObject = this.m_MotionList.gameObject.transform.Find("DanceTpl").gameObject; + this.m_MotionPool = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_MotionPool.SetupPool(this.m_MotionList.gameObject, gameObject, 3u, false); + this.m_MotionList.Refresh(); + this.m_ConditionPanel = base.PanelObject.transform.Find("UnlockFrame").gameObject; + this.m_ConditionPanel.SetActive(false); + this.m_ConditionList = (base.transform.Find("UnlockFrame/Condition/ScrollView/ConditionList").GetComponent("XUIList") as IXUIList); + this.m_ConditionPanelBg = (base.PanelObject.transform.Find("UnlockFrame/Bg").GetComponent("XUISprite") as IXUISprite); + GameObject gameObject2 = this.m_ConditionList.gameObject.transform.Find("tpl").gameObject; + this.m_ConditionPool = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_ConditionPool.SetupPool(this.m_ConditionList.gameObject, gameObject2, 3u, false); + this.m_ConditionList.Refresh(); + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_MotionPanelBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMotionPanelClicked)); + this.m_ConditionPanelBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnConditionPanelClose)); + } + + protected override void OnShow() + { + base.OnShow(); + Vector3 position = this.m_MotionPanel.transform.position; + position.y = DlgBase.singleton.GetSelectDanceMotionBtnPos().y; + this.m_MotionPanel.transform.position = position; + position = this.m_ConditionPanel.transform.position; + position.y = DlgBase.singleton.GetSelectDanceMotionBtnPos().y; + this.m_ConditionPanel.transform.position = position; + } + + protected override void OnHide() + { + base.OnHide(); + this.ShowUnlockPanel(false, 0u, 0u); + bool flag = this.m_LastSelect != null; + if (flag) + { + this.m_LastSelect.SetActive(false); + } + } + + private void OnMotionPanelClicked(IXUISprite btn) + { + base.SetVisible(false); + } + + private void OnConditionPanelClose(IXUISprite btn) + { + this.ShowUnlockPanel(false, 0u, 0u); + } + + public void RefreshMotionPanel(List listMotionData) + { + bool flag = !base.IsVisible() || !this.m_MotionPanel.activeSelf; + if (!flag) + { + this.m_listMotionData = listMotionData; + this.m_MotionPool.FakeReturnAll(); + for (int i = 0; i < listMotionData.Count; i++) + { + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(listMotionData[i].motionID); + GameObject gameObject = this.m_MotionPool.FetchGameObject(false); + gameObject.name = string.Format("DanceBtn{0}", i); + gameObject.transform.parent = this.m_MotionList.gameObject.transform; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(danceConfig.HallBtnIcon, danceConfig.IconAtlas, false); + ixuisprite.MakePixelPerfect(); + GameObject gameObject2 = gameObject.transform.Find("Lock").gameObject; + gameObject2.SetActive(!XDanceDocument.Doc.IsUnlock(listMotionData[i].valid, danceConfig.Condition)); + IXUIButton ixuibutton = gameObject.transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)i); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDanceMotionBtnClicked)); + GameObject gameObject3 = ixuibutton.gameObject.transform.Find("Select").gameObject; + gameObject3.SetActive(false); + } + this.m_MotionPool.ActualReturnAll(false); + this.m_MotionList.Refresh(); + this.ShowUnlockPanel(false, 0u, 0u); + } + } + + private bool OnDanceMotionBtnClicked(IXUIButton btn) + { + bool flag = this.m_LastSelect != null; + if (flag) + { + this.m_LastSelect.SetActive(false); + } + this.m_LastSelect = btn.gameObject.transform.Find("Select").gameObject; + this.m_LastSelect.SetActive(true); + int num = (int)btn.ID; + bool flag2 = this.m_listMotionData != null && num < this.m_listMotionData.Count; + if (flag2) + { + uint motionID = this.m_listMotionData[num].motionID; + GameObject gameObject = btn.gameObject.transform.Find("Lock").gameObject; + bool activeSelf = gameObject.activeSelf; + if (activeSelf) + { + this.ShowUnlockPanel(true, motionID, this.m_listMotionData[num].valid); + } + else + { + this.ShowUnlockPanel(false, 0u, 0u); + XDanceDocument.Doc.ReqStartJustDance(motionID); + } + } + return true; + } + + private void ShowUnlockPanel(bool show, uint motionID = 0u, uint valid = 0u) + { + this.m_ConditionPanel.SetActive(show); + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(motionID); + bool flag = show && danceConfig != null; + if (flag) + { + this.m_ConditionPool.FakeReturnAll(); + for (int i = 0; i < danceConfig.Condition.Count; i++) + { + GameObject gameObject = this.m_ConditionPool.FetchGameObject(false); + gameObject.transform.parent = this.m_ConditionList.gameObject.transform; + IXUILabel ixuilabel = gameObject.transform.Find("condition1").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText((i < danceConfig.ConditionDesc.Length) ? danceConfig.ConditionDesc[i] : "?"); + IXUILabel ixuilabel2 = gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText((i < danceConfig.GoText.Length) ? danceConfig.GoText[i] : "?"); + ixuilabel2.ID = (ulong)((long)((i < danceConfig.GoSystemID.Length) ? danceConfig.GoSystemID[i] : 0)); + ixuilabel2.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnGoSystemBtnClicked)); + ixuilabel2.SetVisible(!XDanceDocument.Doc.IsUnlock(valid, danceConfig.Condition[i, 0])); + GameObject gameObject2 = gameObject.transform.Find("ok").gameObject; + gameObject2.SetActive(XDanceDocument.Doc.IsUnlock(valid, danceConfig.Condition[i, 0])); + } + this.m_ConditionPool.ActualReturnAll(false); + this.m_ConditionList.Refresh(); + } + } + + private void OnGoSystemBtnClicked(IXUILabel label) + { + int sys = (int)label.ID; + bool flag = !XSingleton.singleton.IsSystemOpen(sys); + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_SYS_NOTOPEN, "fece00"); + } + else + { + XSingleton.singleton.OpenSystem(sys); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DanceMotionHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DanceMotionHandler.cs.meta new file mode 100644 index 00000000..bc147502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DanceMotionHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91539af90cebc23459388b7ad7670df1 +timeCreated: 1611404142 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DemoUI.cs b/Client/Assets/Scripts/XMainClient/UI/DemoUI.cs new file mode 100644 index 00000000..33ed55d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DemoUI.cs @@ -0,0 +1,372 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DemoUI : DlgBase + { + public override string fileName + { + get + { + return "DebugDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public static uint MAX_MESSAGE_COUNT = 20u; + + private Queue messages = new Queue(); + + private LinkedList inputs = new LinkedList(); + + private LinkedListNode lastInput = null; + + private float lastMessageY = 0f; + + private object locker = new object(); + + private IPlatform _platform = null; + + protected override void Init() + { + this._platform = XSingleton.singleton.XPlatform; + } + + public override void Reset() + { + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Button.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButtonClick)); + base.uiBehaviour.m_PreviousButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._onPreviousBtnClick)); + base.uiBehaviour.m_NextButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._onNextBtnClick)); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._onCloseBtnClick)); + base.uiBehaviour.m_Input.RegisterKeyTriggeredEventHandler(new InputKeyTriggeredEventHandler(this._onKeyTriggered)); + base.uiBehaviour.m_Input.RegisterSubmitEventHandler(new InputSubmitEventHandler(this.OnSubmit)); + base.uiBehaviour.m_Open.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFpsClick)); + } + + protected override void OnShow() + { + this._refreshMessages(); + base.uiBehaviour.m_ScrollView.ResetPosition(); + base.uiBehaviour.m_Input.selected(true); + base.uiBehaviour.m_Bg.SetActive(true); + } + + public override void OnUpdate() + { + this.UpdateFPS(); + } + + private bool _onPreviousBtnClick(IXUIButton go) + { + this._onKeyTriggered(base.uiBehaviour.m_Input, (KeyCode)273); + return true; + } + + private bool _onNextBtnClick(IXUIButton go) + { + this._onKeyTriggered(base.uiBehaviour.m_Input, (KeyCode)274); + return true; + } + + private bool _onCloseBtnClick(IXUIButton go) + { + base.uiBehaviour.m_Bg.SetActive(false); + return true; + } + + private void _onKeyTriggered(IXUIInput input, KeyCode key) + { + bool flag = key == (KeyCode)273; + if (flag) + { + bool flag2 = this.inputs.Count == 0; + if (flag2) + { + return; + } + bool flag3 = this.lastInput != null; + if (flag3) + { + bool flag4 = this.lastInput.Previous != null; + if (flag4) + { + this.lastInput = this.lastInput.Previous; + } + } + else + { + this.lastInput = this.inputs.Last; + } + } + else + { + bool flag5 = key == (KeyCode)274; + if (!flag5) + { + return; + } + bool flag6 = this.inputs.Count == 0; + if (flag6) + { + return; + } + bool flag7 = this.lastInput != null; + if (flag7) + { + bool flag8 = this.lastInput.Next != null; + if (flag8) + { + this.lastInput = this.lastInput.Next; + } + } + else + { + this.lastInput = this.inputs.First; + } + } + bool flag9 = this.lastInput != null; + if (flag9) + { + base.uiBehaviour.m_Input.SetText(this.lastInput.Value); + } + } + + private void UpdateLastLabelPos(IXUILabel label) + { + this.lastMessageY -= (float)label.spriteHeight; + } + + private float GetLastLabelPos(IXUILabel label) + { + return this.lastMessageY - (float)(label.spriteHeight / 2); + } + + private void _refreshMessages() + { + Vector3 tplPos = base.uiBehaviour.m_MessagePool.TplPos; + this.lastMessageY = tplPos.y; + base.uiBehaviour.m_MessagePool.ReturnAll(false); + base.uiBehaviour.m_ActiveMessages.Clear(); + foreach (string text in this.messages) + { + GameObject gameObject = base.uiBehaviour.m_MessagePool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + base.uiBehaviour.m_ActiveMessages.Add(ixuilabel); + gameObject.transform.localPosition = new Vector3(tplPos.x, this.GetLastLabelPos(ixuilabel), 0f); + this.UpdateLastLabelPos(ixuilabel); + } + } + + public void AddMessage(string message) + { + bool flag = !base.IsVisible(); + if (!flag) + { + object obj = this.locker; + lock (obj) + { + bool flag2 = (long)this.messages.Count > (long)((ulong)DemoUI.MAX_MESSAGE_COUNT); + if (flag2) + { + this.messages.Dequeue(); + } + this.messages.Enqueue(message); + bool flag3 = this.messages.Count != base.uiBehaviour.m_ActiveMessages.Count; + if (flag3) + { + bool flag4 = this.messages.Count - base.uiBehaviour.m_ActiveMessages.Count == 1; + if (flag4) + { + GameObject gameObject = base.uiBehaviour.m_MessagePool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(message); + base.uiBehaviour.m_ActiveMessages.Add(ixuilabel); + Vector3 tplPos = base.uiBehaviour.m_MessagePool.TplPos; + gameObject.transform.localPosition = new Vector3(tplPos.x, this.GetLastLabelPos(ixuilabel), 0f); + this.UpdateLastLabelPos(ixuilabel); + } + else + { + this._refreshMessages(); + } + } + else + { + int num = -1; + Vector3 tplPos2 = base.uiBehaviour.m_MessagePool.TplPos; + this.lastMessageY = tplPos2.y; + foreach (string text in this.messages) + { + IXUILabel ixuilabel2 = base.uiBehaviour.m_ActiveMessages[++num]; + ixuilabel2.SetText(text); + ixuilabel2.gameObject.transform.localPosition = new Vector3(tplPos2.x, this.GetLastLabelPos(ixuilabel2), 0f); + this.UpdateLastLabelPos(ixuilabel2); + } + } + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + } + + private void _addInput(string s) + { + bool flag = (long)this.inputs.Count > (long)((ulong)DemoUI.MAX_MESSAGE_COUNT); + if (flag) + { + this.inputs.RemoveFirst(); + } + this.inputs.AddLast(s); + this.lastInput = null; + } + + private void OnSubmit(IXUIInput go) + { + this.Submit(); + } + + private bool OnButtonClick(IXUIButton go) + { + this.Submit(); + return true; + } + + private void Submit() + { + string text = base.uiBehaviour.m_Input.GetText(); + this._addInput(text); + string[] separator = new string[] + { + "\n" + }; + string[] array = text.Split(separator, StringSplitOptions.None); + for (int i = 0; i < array.Length; i++) + { + this.AddMessage("> " + array[i]); + bool flag = !XSingleton.singleton.ProcessCommand(array[i]); + if (flag) + { + this.AddMessage(string.Format("[ff0000]Invalid Command: {0}[-]", array[i])); + } + } + base.uiBehaviour.m_Input.SetText(""); + base.uiBehaviour.m_Input.selected(true); + } + + private bool OnFpsClick(IXUIButton go) + { + bool activeInHierarchy = base.uiBehaviour.m_Bg.activeInHierarchy; + if (activeInHierarchy) + { + base.uiBehaviour.m_Bg.SetActive(false); + } + else + { + base.uiBehaviour.m_Bg.SetActive(true); + } + return true; + } + + public void UpdateFPS() + { + bool flag = !XSingleton.singleton.NeedFixedUpdate; + if (!flag) + { + bool flag2 = !this._platform.IsPublish(); + if (flag2) + { + bool showBuildLog = XSingleton.singleton.ShowBuildLog; + if (showBuildLog) + { + string syncModeString = XSingleton.singleton.GetSyncModeString(); + string text = "Debug Q"; + base.uiBehaviour.m_fps.SetText(string.Concat(new object[] + { + text, + " Build:", + XLinkTimeStamp.BuildDateTime.ToString(), + "\nFps: ", + XSingleton.singleton.Fps.ToString("F1"), + " Avg Fps: ", + XSingleton.singleton.FpsAvg.ToString("F1"), + "\n", + syncModeString, + XSingleton.singleton.ServerIP, + "\nSend:", + XSingleton.singleton.SendBytes, + " Recv:", + XSingleton.singleton.RecvBytes, + " delay:", + XSingleton.singleton.GetDelay() + })); + } + else + { + base.uiBehaviour.m_fps.SetText(""); + } + } + } + } + + public void Toggle() + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + else + { + bool activeInHierarchy = base.uiBehaviour.m_Bg.activeInHierarchy; + if (activeInHierarchy) + { + base.uiBehaviour.m_Bg.SetActive(false); + base.uiBehaviour.m_Input.selected(false); + } + else + { + base.uiBehaviour.m_Bg.SetActive(true); + base.uiBehaviour.m_Input.selected(true); + } + } + } + + public bool IsMainUIVisible() + { + return base.IsVisible() && base.uiBehaviour.m_Bg.activeInHierarchy; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DemoUI.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DemoUI.cs.meta new file mode 100644 index 00000000..1ed3a0b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DemoUI.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 38205e7648d521f428b3b8fed9b6f2f4 +timeCreated: 1611403569 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DemoUIBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/DemoUIBehaviour.cs new file mode 100644 index 00000000..e212625a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DemoUIBehaviour.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DemoUIBehaviour : DlgBehaviourBase + { + public IXUIButton m_Button = null; + + public IXUIButton m_PreviousButton = null; + + public IXUIButton m_NextButton = null; + + public IXUIInput m_Input = null; + + public IXUIButton m_Close = null; + + public XUIPool m_MessagePool; + + public List m_ActiveMessages; + + public IXUIScrollView m_ScrollView; + + public GameObject m_Bg; + + public IXUILabel m_fps = null; + + public IXUIButton m_Open = null; + + private void Awake() + { + this.m_Bg = base.transform.Find("Bg").gameObject; + Transform transform = base.transform.Find("Bg/DebugCommitBtn"); + bool flag = null != transform; + if (flag) + { + this.m_Button = (transform.GetComponent("XUIButton") as IXUIButton); + } + this.m_PreviousButton = (base.transform.Find("Bg/PreviousBtn").GetComponent("XUIButton") as IXUIButton); + this.m_NextButton = (base.transform.Find("Bg/NextBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform2 = base.transform.Find("Bg/DebugDlgInput"); + bool flag2 = null != transform2; + if (flag2) + { + this.m_Input = (transform2.GetComponent("XUIInput") as IXUIInput); + } + this.m_ScrollView = (base.transform.Find("Bg/MessageDisplay").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_MessagePool = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_MessagePool.SetupPool(base.transform.Find("Bg/MessageDisplay").gameObject, base.transform.Find("Bg/MessageDisplay/MessageTpl").gameObject, DemoUI.MAX_MESSAGE_COUNT, false); + this.m_ActiveMessages = new List((int)DemoUI.MAX_MESSAGE_COUNT); + Transform transform3 = base.transform.Find("fps"); + bool flag3 = null != transform3; + if (flag3) + { + this.m_fps = (transform3.GetComponent("XUILabel") as IXUILabel); + Transform transform4 = transform3.Find("Open"); + bool flag4 = transform4 != null; + if (flag4) + { + this.m_Open = (transform4.GetComponent("XUIButton") as IXUIButton); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DemoUIBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DemoUIBehaviour.cs.meta new file mode 100644 index 00000000..18229ea2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DemoUIBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a290a8fbe6f3cb478febbb03d98fe28 +timeCreated: 1611403161 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeBehavior.cs new file mode 100644 index 00000000..10b4b3d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeBehavior.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class DragonCrusadeBehavior : DlgBehaviourBase + { + public IXUIButton m_Help; + + public IXUISprite slideSprite = null; + + public GameObject goLoading = null; + + public IXUILabel goLoadingTxt = null; + + public GameObject mMyRank = null; + + public IXUIButton m_closed = null; + + public IXUIButton m_leftBtn = null; + + public IXUIButton m_rightBtn = null; + + public IXUISprite m_myRankSpr = null; + + private void Awake() + { + this.m_closed = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_myRankSpr = (base.transform.Find("Bg/MyRank").GetComponent("XUISprite") as IXUISprite); + this.m_leftBtn = (base.transform.Find("Bg/Left").GetComponent("XUIButton") as IXUIButton); + this.m_rightBtn = (base.transform.Find("Bg/Right").GetComponent("XUIButton") as IXUIButton); + this.slideSprite = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.mMyRank = base.transform.Find("Bg/MyRank/My").gameObject; + this.goLoading = base.transform.Find("Loading").gameObject; + this.goLoadingTxt = (base.transform.Find("Loading/Bg/Slogan").GetComponent("XUILabel") as IXUILabel); + this.goLoading.SetActive(false); + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeBehavior.cs.meta new file mode 100644 index 00000000..30c8e1ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e070011d2c7491749b8089e2e7ca478c +timeCreated: 1611404697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeDlg.cs b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeDlg.cs new file mode 100644 index 00000000..faf13010 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeDlg.cs @@ -0,0 +1,618 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DragonCrusadeDlg : DlgBase + { + public override string fileName + { + get + { + return "DragonCrusade/DragonCrusadeDlg"; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public bool isHallUI + { + get + { + return XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return 50; + } + } + + private XDragonCrusadeDocument mDoc = null; + + private GameObject goDragonExpedition = null; + + private IXDragonExpedition ixDragonExpedition = null; + + private XFx _FxFirework = null; + + private const int MAX_RANK = 3; + + public Dictionary listBillBoards = new Dictionary(); + + private Vector3 localDefaultScale = new Vector3(-0.02f, 0.02f, 0.02f); + + private Action mSyncDoneCallBack = null; + + private bool mSyncLoading = false; + + private bool mDoneFinish = false; + + private float intertime = 0.5f; + + private LoadCallBack mDragonExpeditionLoadTask = null; + + private Dictionary m_AvatarDummys = new Dictionary(); + + private class DragonExpeditionLoadTask + { + private DragonCrusadeDlg mDlg; + + public DragonExpeditionLoadTask(DragonCrusadeDlg dlg) + { + this.mDlg = dlg; + } + + public void LoadFinish(UnityEngine.Object obj) + { + bool flag = this.mDlg != null; + if (flag) + { + this.mDlg.goDragonExpedition = (obj as GameObject); + this.mDlg.LoadPrefabSyncDone(); + this.mDlg = null; + } + } + } + + protected override void OnLoad() + { + base.OnLoad(); + this.mDoc = (XSingleton.singleton.Doc.GetXComponent(XDragonCrusadeDocument.uuID) as XDragonCrusadeDocument); + bool flag = this.mDragonExpeditionLoadTask == null; + if (flag) + { + this.mDragonExpeditionLoadTask = new LoadCallBack(this.LoadFinish); + } + } + + protected override void Init() + { + base.Init(); + base.uiBehaviour.goLoadingTxt.SetText(XStringDefineProxy.GetString("DragonLoadMessage")); + } + + private void LoadFinish(UnityEngine.Object obj, object cbOjb) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + this.goDragonExpedition = (obj as GameObject); + this.LoadPrefabSyncDone(); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_uiBehaviour.slideSprite.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnMonsterDrag)); + this.m_uiBehaviour.slideSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMouseClick)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + this.m_uiBehaviour.m_myRankSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRankInfo)); + base.uiBehaviour.m_closed.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.m_leftBtn.ID = 1UL; + base.uiBehaviour.m_rightBtn.ID = 2UL; + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_DragonCrusade); + return true; + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.ixDragonExpedition != null; + if (flag) + { + this.ixDragonExpedition.GetDragonCamera().enabled = false; + } + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("DragonCrusadeDlg"); + bool flag = this.ixDragonExpedition != null; + if (flag) + { + this.ixDragonExpedition.GetDragonCamera().enabled = true; + } + } + + protected override void OnUnload() + { + this.mDoneFinish = false; + this.mSyncLoading = false; + bool flag = this._FxFirework != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._FxFirework, true); + } + this._FxFirework = null; + this.DeleteAvatar(); + this.UnloadPrefab(); + foreach (KeyValuePair keyValuePair in this.listBillBoards) + { + XSingleton.singleton.UnSafeDestroy(keyValuePair.Value, true, false); + } + this.listBillBoards.Clear(); + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("DragonCrusadeDlg"); + bool flag = this.ixDragonExpedition != null; + if (flag) + { + this.ixDragonExpedition.GetDragonCamera().enabled = true; + } + } + + public override void OnXNGUIClick(GameObject obj, string path) + { + base.OnXNGUIClick(obj, path); + } + + private void LoadPrefab() + { + } + + private void UnloadPrefab() + { + this.ixDragonExpedition = null; + XResourceLoaderMgr.SafeDestroy(ref this.goDragonExpedition, true); + } + + protected void OnMonsterDrag(IXUIButton button, Vector2 delta) + { + bool flag = button.ID == 1UL; + if (flag) + { + delta = Vector2.one * (float)Screen.width; + } + else + { + delta = Vector2.one * (float)(-(float)Screen.width); + } + bool flag2 = this.ixDragonExpedition == null; + if (!flag2) + { + this.ixDragonExpedition.Drag(delta.x); + } + } + + protected bool OnMonsterDrag(Vector2 delta) + { + bool flag = this.ixDragonExpedition == null; + bool result; + if (flag) + { + result = true; + } + else + { + this.ixDragonExpedition.Drag(delta.x); + result = true; + } + return result; + } + + protected void OnMouseClick(IXUISprite sp) + { + bool flag = this.ixDragonExpedition == null; + if (!flag) + { + GameObject gameObject = this.ixDragonExpedition.Click(); + bool flag2 = gameObject != null; + if (flag2) + { + this.OnGateInfo(gameObject.name); + } + } + } + + private bool OnClose(IXUIButton btn) + { + this.SetVisible(false, true); + XSingleton.singleton.DragonCrusadeOpen = false; + return true; + } + + private void OnGateInfo(string gatename) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + for (int i = 0; i < XDragonCrusadeDocument._DragonCrusageGateDataInfo.Count; i++) + { + DragonCrusageGateData dragonCrusageGateData = XDragonCrusadeDocument._DragonCrusageGateDataInfo[i]; + bool flag = dragonCrusageGateData.expData.ResName == gatename; + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.FreshInfo(dragonCrusageGateData); + } + } + } + + public void OnRankInfo(IXUISprite uiSprite) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.RefreshRankWindow(this.mDoc.oResRank); + } + + public void RefreshRank(DERankRes oRes) + { + for (int i = 0; i < 3; i++) + { + Transform transform = base.uiBehaviour.transform.Find("Bg/MyRank/ScrollView/Tpl" + (i + 1).ToString()); + IXUILabel ixuilabel = transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = transform.Find("Reward").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = transform.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + DERank derank = (i < oRes.ranks.Count) ? oRes.ranks[i] : null; + bool flag = derank != null; + if (flag) + { + ixuilabel.SetText("No." + derank.rank); + bool flag2 = i < 3; + if (flag2) + { + ixuisprite.SetSprite("N" + (i + 1)); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetVisible(true); + } + ixuilabel2.SetText(derank.rolename); + string text = string.Empty; + for (int j = 0; j < derank.reward.Count; j++) + { + ItemBrief itemBrief = derank.reward[j]; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemBrief.itemID); + text += itemBrief.itemCount.ToString(); + } + ixuilabel3.gameObject.SetActive(true); + ixuilabel3.SetText(text); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel2.SetText(""); + ixuilabel.SetText(""); + ixuilabel3.SetText(""); + ixuilabel3.gameObject.SetActive(false); + } + } + bool flag3 = false; + for (int k = 0; k < oRes.ranks.Count; k++) + { + DERank derank2 = oRes.ranks[k]; + bool flag4 = derank2.roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag4) + { + flag3 = true; + base.SetXUILable("Bg/MyRank/My/Rank", derank2.rank.ToString()); + base.SetXUILable("Bg/MyRank/My/Name", XSingleton.singleton.XPlayerData.Name); + string text2 = string.Empty; + for (int l = 0; l < derank2.reward.Count; l++) + { + ItemBrief itemBrief2 = derank2.reward[l]; + ItemList.RowData itemConf2 = XBagDocument.GetItemConf((int)itemBrief2.itemID); + text2 += itemBrief2.itemCount.ToString(); + } + base.SetXUILable("Bg/MyRank/My/Reward", text2); + bool flag5 = k < 3; + if (flag5) + { + base.uiBehaviour.mMyRank.SetActive(false); + } + break; + } + } + bool flag6 = !flag3; + if (flag6) + { + base.SetXUILable("Bg/MyRank/My/Rank", ""); + base.SetXUILable("Bg/MyRank/My/Name", ""); + base.SetXUILable("Bg/MyRank/My/Reward", ""); + } + } + + private void InitData() + { + for (int i = 0; i < XDragonCrusadeDocument._DragonCrusageGateDataInfo.Count; i++) + { + DragonCrusageGateData dragonCrusageGateData = XDragonCrusadeDocument._DragonCrusageGateDataInfo[i]; + Transform go = this.ixDragonExpedition.GetGO(dragonCrusageGateData.expData.ResName); + bool flag = go == null; + if (!flag) + { + GameObject value = null; + bool flag2 = !this.listBillBoards.TryGetValue(dragonCrusageGateData.SceneID, out value); + if (flag2) + { + value = this.RefreshGateEnter(dragonCrusageGateData, go.gameObject); + this.listBillBoards.Add(dragonCrusageGateData.SceneID, value); + } + bool flag3 = XDragonCrusadeDocument.SectonChapterMax[dragonCrusageGateData.Chapter] == dragonCrusageGateData.expData.ChapterID[1]; + if (flag3) + { + GameObject gameObject = new GameObject("Snap"); + gameObject.transform.parent = go.gameObject.transform; + bool flag4 = dragonCrusageGateData.expData.SnapPos != null && dragonCrusageGateData.expData.SnapPos.Length == 3; + if (flag4) + { + gameObject.transform.localPosition = new Vector3(dragonCrusageGateData.expData.SnapPos[0], dragonCrusageGateData.expData.SnapPos[1], dragonCrusageGateData.expData.SnapPos[2]); + } + else + { + gameObject.transform.localPosition = new Vector3(0.1f, -0.26f, -0.49f); + } + gameObject.transform.localEulerAngles = new Vector3(0f, 20f, 0f); + gameObject.transform.localScale = Vector3.one * 1.5f; + IUIDummy snapShot = XSingleton.singleton.XPlatform.AddComponent(gameObject, EComponentType.EUIDummy) as IUIDummy; + this.CreateAvatar(snapShot, dragonCrusageGateData); + } + } + } + } + + private void UpdateBillBoard() + { + foreach (KeyValuePair keyValuePair in this.listBillBoards) + { + GameObject value = keyValuePair.Value; + Vector3 normalized = (value.transform.position - this.ixDragonExpedition.GetDragonCamera().transform.position).normalized; + value.transform.rotation *= Quaternion.LookRotation(normalized); + } + } + + private GameObject RefreshGateEnter(DragonCrusageGateData data, GameObject obj) + { + uint sceneID = data.SceneID; + GameObject gameObject = XSingleton.singleton.CreateFromPrefab("UI/Billboard/DragonCrusadeBillboard", true, false) as GameObject; + XSingleton.singleton.AddChild(obj, gameObject); + gameObject.name = data.SceneID + "_" + data.expData.ResName; + gameObject.transform.localScale = this.localDefaultScale; + gameObject.transform.position = obj.transform.position; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data.sceneData.Comment); + return gameObject; + } + + public void RefreshProgressFromNet() + { + bool flag = !this.mDoneFinish; + if (!flag) + { + this.RefreshProgress(); + } + } + + public void RefreshProgressSync(Action done) + { + bool flag = this.ixDragonExpedition != null; + if (flag) + { + bool flag2 = done != null; + if (flag2) + { + done(true); + } + XSingleton.singleton.DragonCrusadeOpen = true; + } + else + { + bool flag3 = this.mSyncLoading; + if (!flag3) + { + this.LoadPrefabSync(done); + } + } + } + + private void LoadPrefabSync(Action done) + { + base.uiBehaviour.goLoading.SetActive(true); + this.mSyncLoading = true; + this.mDoneFinish = false; + this.mSyncDoneCallBack = done; + XSingleton.singleton.CreateFromPrefabAsync("Common/DragonExpedition", this.mDragonExpeditionLoadTask, null, true); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = !this.mSyncLoading; + if (!flag) + { + bool flag2 = this.mSyncLoading; + if (flag2) + { + } + bool flag3 = this.intertime > 0f; + if (flag3) + { + this.intertime -= Time.deltaTime; + } + else + { + this.intertime = 0.5f; + bool flag4 = this.mSyncLoading && this.mDoneFinish; + if (flag4) + { + bool flag5 = this.mDragonExpeditionLoadTask != null; + if (flag5) + { + this.mDragonExpeditionLoadTask = null; + } + base.uiBehaviour.goLoading.SetActive(false); + this.mSyncLoading = false; + } + } + } + } + + private void LoadPrefabSyncDone() + { + this.ixDragonExpedition = (this.goDragonExpedition.GetComponent("XDragonExpedition") as IXDragonExpedition); + this._FxFirework = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_lzy_gk", null, true); + this.InitData(); + this.RefreshProgress(); + this.mDoneFinish = true; + bool flag = this.mSyncDoneCallBack != null; + if (flag) + { + this.mSyncDoneCallBack(true); + } + this.mSyncDoneCallBack = null; + bool flag2 = this.ixDragonExpedition != null; + if (flag2) + { + this.ixDragonExpedition.GetDragonCamera().enabled = true; + } + XSingleton.singleton.DragonCrusadeOpen = true; + } + + private void RefreshProgress() + { + GameObject gameObject = null; + for (int i = 0; i < XDragonCrusadeDocument._DragonCrusageGateDataInfo.Count; i++) + { + DragonCrusageGateData dragonCrusageGateData = XDragonCrusadeDocument._DragonCrusageGateDataInfo[i]; + DEProgress deProgress = dragonCrusageGateData.deProgress; + bool flag = this.listBillBoards.TryGetValue(deProgress.sceneID, out gameObject); + if (flag) + { + Transform transform = gameObject.transform.Find("StageConquered"); + Transform transform2 = gameObject.transform.Find("BossHP"); + IXUIProgress ixuiprogress = transform2.GetComponent("XUIProgress") as IXUIProgress; + ixuiprogress.value = (float)deProgress.bossavghppercent / 100f; + IXUILabel ixuilabel = gameObject.transform.Find("BossHP/Percent").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(deProgress.bossavghppercent + "%"); + switch (dragonCrusageGateData.deProgress.state) + { + case DEProgressState.DEPS_FINISH: + { + transform2.localScale = Vector3.zero; + transform.gameObject.SetActive(true); + this.ixDragonExpedition.SetLimitPos(dragonCrusageGateData.expData.LimitPos); + Transform go = this.ixDragonExpedition.GetGO(dragonCrusageGateData.expData.ResName); + Renderer component = go.GetComponent(); + Material sharedMaterial = component.sharedMaterial; + component.material = new Material(sharedMaterial) + { + shader = ShaderManager._transparentGrayMaskRNoLight, + renderQueue = 3002 + }; + break; + } + case DEProgressState.DEPS_FIGHT: + { + this.ixDragonExpedition.SetLimitPos(dragonCrusageGateData.expData.LimitPos); + this._FxFirework.Play(gameObject.transform.position, Quaternion.identity, Vector3.one, 1f); + transform2.localScale = Vector3.one; + transform.gameObject.SetActive(false); + bool flag2 = gameObject.transform.parent != null; + if (flag2) + { + this.ixDragonExpedition.Assign(gameObject.transform.parent.localPosition.x); + } + break; + } + case DEProgressState.DEPS_NOTOPEN: + transform.gameObject.SetActive(false); + transform2.localScale = Vector3.zero; + break; + } + } + base.SetXUILable("Bg/ChallengeCount/Value", string.Format("{0}/{1}", dragonCrusageGateData.leftcount, dragonCrusageGateData.allcount)); + } + } + + private void CreateAvatar(IUIDummy snapShot, DragonCrusageGateData data) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(data.expData.BossID); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + bool flag = !this.m_AvatarDummys.ContainsKey((int)data.expData.ChapterID[0]); + if (flag) + { + XDummy xdummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, byID.PresentID, snapShot, null, 25f); + xdummy.Scale = byPresentID.UIAvatarScale; + xdummy.EngineObject.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, Vector3.one * 0.3f, true); + this.m_AvatarDummys.Add((int)data.expData.ChapterID[0], xdummy); + } + } + + private void DeleteAvatar() + { + base.Return3DAvatarPool(); + this.m_AvatarDummys.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeDlg.cs.meta new file mode 100644 index 00000000..8adf4bdb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e267eada3085bc4e82a2567c2a82a81 +timeCreated: 1611403903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs new file mode 100644 index 00000000..e63adffd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs @@ -0,0 +1,249 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DragonCrusadeGateDlg : DlgBase + { + public override string fileName + { + get + { + return "DragonCrusade/DragonCrusadeGate"; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return 50; + } + } + + private XDummy m_Dummy; + + private DragonCrusageGateData mDragonCrusageGateData = null; + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mClosedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.mRwdBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnChallenge)); + } + + public override void OnXNGUIClick(GameObject obj, string path) + { + base.OnXNGUIClick(obj, path); + } + + protected override void OnShow() + { + base.Alloc3DAvatarPool("DragonCrusadeGateDlg"); + base.OnShow(); + } + + protected override void OnUnload() + { + base.Return3DAvatarPool(); + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("DragonCrusadeGateDlg"); + } + + private bool OnClose(IXUIButton btn) + { + base.Return3DAvatarPool(); + this.m_Dummy = null; + this.SetVisible(false, true); + return true; + } + + private bool OnChallenge(IXUIButton btn) + { + bool flag = this.mDragonCrusageGateData.leftcount <= 0; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DragonCrusadeEnoughCount"), "fece00"); + result = true; + } + else + { + bool flag2 = this.mDragonCrusageGateData.deProgress.state == DEProgressState.DEPS_NOTOPEN; + if (flag2) + { + string text = string.Format(XSingleton.singleton.GetString("DragonCrusadeLast"), this.GetAheadGate().sceneData.Comment); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + result = true; + } + else + { + bool flag3 = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnChallenge), btn); + if (flag3) + { + result = true; + } + else + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = this.mDragonCrusageGateData.SceneID; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + XDragonCrusadeDocument.QuitFromCrusade = true; + XSingleton.singleton.CacheUI(XSysDefine.XSys_DragonCrusade, EXStage.Hall); + result = true; + } + } + } + return result; + } + + private DragonCrusageGateData GetAheadGate() + { + for (int i = 0; i < XDragonCrusadeDocument._DragonCrusageGateDataInfo.Count; i++) + { + DragonCrusageGateData dragonCrusageGateData = XDragonCrusadeDocument._DragonCrusageGateDataInfo[i]; + bool flag = dragonCrusageGateData.deProgress.state == DEProgressState.DEPS_FIGHT; + if (flag) + { + return dragonCrusageGateData; + } + } + return null; + } + + public void FreshInfo(DragonCrusageGateData data) + { + this.mDragonCrusageGateData = data; + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(data.expData.BossID); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + GameObject gameObject = base.SetXUILable("Bg/ContentFrame/BossStatus/TitleLabel", data.sceneData.Comment); + IUIDummy snapShot = gameObject.transform.Find("SnapShot").GetComponent("UIDummy") as IUIDummy; + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, byID.PresentID, snapShot, this.m_Dummy, 25f); + this.m_Dummy.Scale = byPresentID.UIAvatarScale; + XSingleton.singleton.EnableCommonDummy(this.m_Dummy, snapShot, true); + GameObject gameObject2 = base.SetXUILable("Bg/ContentFrame/BossStatus/HP/Percent", data.deProgress.bossavghppercent.ToString() + "%"); + IXUIProgress ixuiprogress = gameObject2.transform.Find("HP").GetComponent("XUIProgress") as IXUIProgress; + ixuiprogress.value = (float)data.deProgress.bossavghppercent / 100f; + base.SetXUILable("Bg/ContentFrame/content/contentLabel", data.expData.Description); + int num = (int)XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + string content = string.Format(XSingleton.singleton.GetString("DragonCrusadeCurrent"), num); + IXUILabel ixuilabel = base.SetXUILable("Bg/ContentFrame/FightValue/Current", content).GetComponent("XUILabel") as IXUILabel; + string content2 = string.Format(XSingleton.singleton.GetString("DragonCrusadeBossFight"), data.sceneData.RecommendPower); + IXUILabel ixuilabel2 = base.SetXUILable("Bg/ContentFrame/FightValue/Original", content2).GetComponent("XUILabel") as IXUILabel; + bool flag = data.sceneData.RecommendPower >= num; + if (flag) + { + ixuilabel.SetColor(Color.red); + } + else + { + ixuilabel.SetColor(Color.green); + } + GameObject gameObject3 = base.uiBehaviour.transform.Find("Bg/ContentFrame/FightValue/Buff").gameObject; + bool flag2 = data.SealLevel < data.expData.SealLevel; + if (flag2) + { + gameObject3.SetActive(true); + IXUISprite ixuisprite = gameObject3.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(data.expData.BuffIcon); + base.SetXUILable("Bg/ContentFrame/FightValue/Buff/Label", data.expData.BuffDes); + } + else + { + gameObject3.SetActive(false); + } + base.SetXUILable("Bg/ContentFrame/FightValue/Buff/Label", data.expData.BuffDes); + base.SetXUILable("ChallengeCount/Value", string.Format("{0}/{1}", data.leftcount, data.allcount)); + base.uiBehaviour.mBuff.SetSprite(data.expData.BuffIcon); + bool flag3 = (uint)data.sceneData.RequiredLevel > XSingleton.singleton.XPlayerData.Level; + if (flag3) + { + string content3 = string.Format(XSingleton.singleton.GetString("DragonCrusadeNeedLevel"), data.sceneData.RequiredLevel); + base.SetXUILable("Bg/ContentFrame/NeedLevel", content3); + } + else + { + base.SetXUILable("Bg/ContentFrame/NeedLevel", ""); + } + for (int i = 0; i < 4; i++) + { + GameObject gameObject4 = base.uiBehaviour.transform.Find("Bg/ContentFrame/items/Item" + i.ToString().ToString()).gameObject; + bool flag4 = i < data.expData.WinReward.Count; + if (flag4) + { + gameObject4.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject4, (int)data.expData.WinReward[i, 0], (int)data.expData.WinReward[i, 1], false); + IXUISprite ixuisprite2 = gameObject4.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)data.expData.WinReward[i, 0]; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + gameObject4.SetActive(false); + } + } + GameObject gameObject5 = base.SetXUILable("Bg/ContentFrame/ResultLabel", XSingleton.singleton.GetString("DragonCrusadeDone")); + GameObject gameObject6 = base.uiBehaviour.transform.Find("Bg/ContentFrame/btm").gameObject; + bool flag5 = this.mDragonCrusageGateData.deProgress.state == DEProgressState.DEPS_FINISH; + if (flag5) + { + gameObject5.SetActive(true); + gameObject6.SetActive(false); + } + else + { + gameObject6.SetActive(true); + gameObject5.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs.meta new file mode 100644 index 00000000..b4d8f6b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeGateDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6583d2f6d99c14648ac5cd5bfa85b1e7 +timeCreated: 1611403850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankBehavior.cs new file mode 100644 index 00000000..27e8d97e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankBehavior.cs @@ -0,0 +1,23 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class DragonCrusadeRankBehavior : DlgBehaviourBase + { + public IXUIScrollView m_scroll_view; + + public IXUIButton mClosedBtn = null; + + public GameObject m_EmptyHint; + + private void Awake() + { + this.mClosedBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_scroll_view = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_EmptyHint = base.transform.Find("ScrollView/EmptyRank").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankBehavior.cs.meta new file mode 100644 index 00000000..bdcee956 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04a58a88605134d43b5b0a13beab0fb5 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs new file mode 100644 index 00000000..39815649 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs @@ -0,0 +1,225 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DragonCrusadeRankDlg : DlgBase + { + public override string fileName + { + get + { + return "DragonCrusade/DragonCrusadeRank"; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public bool isHallUI + { + get + { + return XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + } + } + + public override int sysid + { + get + { + return 50; + } + } + + private XDragonCrusadeDocument mDoc = null; + + private XLeftTimeCounter m_LeftTime; + + private XUIPool m_role_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + public override void OnXNGUIClick(GameObject obj, string path) + { + base.OnXNGUIClick(obj, path); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mClosedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + } + + protected override void Init() + { + base.Init(); + } + + protected override void OnLoad() + { + base.OnLoad(); + this.mDoc = (XSingleton.singleton.Doc.GetXComponent(XDragonCrusadeDocument.uuID) as XDragonCrusadeDocument); + GameObject gameObject = base.SetXUILable("Bg/CountDown/CountDown", ""); + IXUILabel label = gameObject.GetComponent("XUILabel") as IXUILabel; + this.m_LeftTime = new XLeftTimeCounter(label, false); + this.ScrollViewInit(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_LeftTime != null; + if (flag) + { + this.m_LeftTime.Update(); + bool flag2 = this.m_LeftTime.GetLeftTime() <= 0; + if (flag2) + { + } + } + } + + private void ScrollViewInit() + { + Transform transform = base.uiBehaviour.transform.Find("ScrollView/GuildList/Tpl"); + this.m_role_pool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + } + + public void RefreshRankWindow(DERankRes oRes) + { + bool flag = oRes != null; + if (flag) + { + this.m_LeftTime.SetLeftTime(oRes.rewardlefttime, -1); + } + bool flag2 = oRes == null || oRes.ranks == null || oRes.ranks.Count == 0; + if (flag2) + { + base.uiBehaviour.m_EmptyHint.SetActive(true); + } + else + { + Vector3 tplPos = this.m_role_pool.TplPos; + this.m_role_pool.FakeReturnAll(); + for (int i = 0; i < oRes.ranks.Count; i++) + { + DERank derank = oRes.ranks[i]; + GameObject gameObject = this.m_role_pool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject.transform.Find("LeaderName").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(derank.rank.ToString()); + IXUISprite ixuisprite2 = gameObject.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag3 = i < 3; + if (flag3) + { + ixuisprite2.SetSprite("N" + (i + 1)); + ixuisprite2.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite2.SetVisible(false); + ixuilabel.SetVisible(true); + } + ixuilabel2.SetText(derank.rolename); + string text = string.Empty; + for (int j = 0; j < derank.reward.Count; j++) + { + ItemBrief itemBrief = derank.reward[j]; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemBrief.itemID); + text += itemBrief.itemCount.ToString(); + } + ixuilabel3.SetText(text); + bool flag4 = derank.progress != null; + if (flag4) + { + ixuilabel4.SetText(this.mDoc.GetChapter(derank.progress.sceneID) + " " + (100 - derank.progress.bossavghppercent).ToString() + "%"); + } + else + { + ixuilabel4.SetText(this.mDoc.GetChapter(derank.progress.sceneID) + "info.progress == null%"); + } + ixuilabel2.ID = derank.roleID; + bool flag5 = derank.roleID == 0UL; + if (flag5) + { + ixuilabel2.RegisterLabelClickEventHandler(null); + } + else + { + ixuilabel2.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnRankItemClicked)); + } + bool flag6 = i % 2 == 0; + if (flag6) + { + ixuisprite.SetVisible(true); + ixuisprite.SetSprite("Panel_popup2_back"); + } + else + { + ixuisprite.SetVisible(false); + ixuisprite.SetSprite("Panel_popup2_back"); + } + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(this.m_role_pool.TplHeight * i), tplPos.z); + } + this.m_role_pool.ActualReturnAll(false); + base.uiBehaviour.m_scroll_view.ResetPosition(); + base.uiBehaviour.m_EmptyHint.SetActive(false); + } + } + + private void OnRankItemClicked(IXUILabel label) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(label.ID, false); + } + + protected bool OnClose(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs.meta new file mode 100644 index 00000000..58fb61e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonCrusadeRankDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d56abd953eca54d4ba8085da7dd7124c +timeCreated: 1611404627 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs new file mode 100644 index 00000000..b82f983a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs @@ -0,0 +1,47 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DragonGuildLivenessBehaviour : DlgBehaviourBase + { + public ILoopScrollView m_loopScrool; + + public XUIPool m_ActivityItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ChestPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_closedSpr; + + public XChestProgress m_Progress; + + public IXUILabel m_totalExp; + + public XNumberTween m_TotalExpTween; + + public IXUILabel m_chestTips; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/RightView/ActivityTpl"); + this.m_ActivityItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_closedSpr = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_Progress = new XChestProgress(base.transform.Find("Bg/UpView/Progress").GetComponent("XUIProgress") as IXUIProgress); + transform = base.transform.Find("Bg/UpView/Progress/Chests/Chest"); + this.m_ChestPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/LeftView/Item"); + this.m_RewardItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_totalExp = (base.transform.Find("Bg/UpView/CurrentExp").GetComponent("XUILabel") as IXUILabel); + this.m_TotalExpTween = XNumberTween.Create(this.m_totalExp); + this.m_TotalExpTween.SetNumberWithTween(0UL, "", false, true); + this.m_chestTips = (base.transform.Find("Bg/LeftView/BigChest/Tips/Exp").GetComponent("XUILabel") as IXUILabel); + this.m_loopScrool = (base.transform.Find("Bg/RightView").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_ChestPool.ReturnAll(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs.meta new file mode 100644 index 00000000..2276e62a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6656c8889c6335b42af690724fce4673 +timeCreated: 1611403854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessDlg.cs b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessDlg.cs new file mode 100644 index 00000000..c9175cfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessDlg.cs @@ -0,0 +1,270 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DragonGuildLivenessDlg : DlgBase + { + public override string fileName + { + get + { + return "DungeonTroop/DungeonTroopLiveness"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + private static readonly uint m_expIncreaseSpeed = 800u; + + private XDragonGuildDocument m_doc = XDragonGuildDocument.Doc; + + private List m_dragonguildLivenessRow; + + private int m_CurSelectIndex = 0; + + private float m_CoolTime = 0.5f; + + private float m_LastClickTime = 0f; + + protected override void Init() + { + XDragonGuildDocument.DragonGuildLivenessData.View = this; + GameObject tpl = base.uiBehaviour.m_loopScrool.GetTpl(); + bool flag = tpl != null && tpl.GetComponent() == null; + if (flag) + { + tpl.AddComponent(); + } + base.uiBehaviour.m_Progress.IncreaseSpeed = DragonGuildLivenessDlg.m_expIncreaseSpeed; + this.m_dragonguildLivenessRow = null; + XDragonGuildDocument.DragonGuildLivenessData.GetDragonGuildLivenessRowsByLevel(this.m_doc.BaseData.level, out this.m_dragonguildLivenessRow); + for (int i = 0; i < this.m_dragonguildLivenessRow.Count; i++) + { + GameObject chest = base.uiBehaviour.m_ChestPool.FetchGameObject(false); + XChest chest2 = new XChest(chest, this.m_dragonguildLivenessRow[i].boxPic); + base.uiBehaviour.m_Progress.AddChest(chest2); + } + this.ChangeChestProgressState(true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClosed)); + this.m_dragonguildLivenessRow = null; + XDragonGuildDocument.DragonGuildLivenessData.GetDragonGuildLivenessRowsByLevel(this.m_doc.BaseData.level, out this.m_dragonguildLivenessRow); + for (int i = 0; i < this.m_dragonguildLivenessRow.Count; i++) + { + base.uiBehaviour.m_Progress.ChestList[i].m_Chest.ID = (ulong)((long)i); + base.uiBehaviour.m_Progress.ChestList[i].m_Chest.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClicked)); + } + } + + protected override void OnShow() + { + XDragonGuildDocument.DragonGuildLivenessData.ReqDragonGuildLivenessInfo(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetRelatedDlg(this); + } + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetRelatedDlg(null); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnUnload() + { + base.OnUnload(); + base.uiBehaviour.m_Progress.Unload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + base.uiBehaviour.m_Progress.Update(Time.deltaTime); + } + + public void FillContent() + { + this.RefreshBox(); + List list = new List(); + string empty = string.Empty; + for (int i = 0; i < XDragonGuildDocument.DragonGuildLivenessData.RecordList.Count; i++) + { + DragonGuildLivenessRecord dragonGuildLivenessRecord = XDragonGuildDocument.DragonGuildLivenessData.RecordList[i]; + dragonGuildLivenessRecord.LoopID = XSingleton.singleton.XHash(XDragonGuildDocument.DragonGuildLivenessData.RecordList[i].ToString() + i); + list.Add(dragonGuildLivenessRecord); + } + base.uiBehaviour.m_loopScrool.Init(list, new DelegateHandler(this.RefreshRecordItem), null, 0, true); + } + + public void RefreshBox() + { + this.ChangeChestProgressState(false); + this.SetCurrentExpAmi(); + this.ShowReward(XDragonGuildDocument.DragonGuildLivenessData.FindNeedShowReward()); + } + + private void RefreshRecordItem(ILoopItemObject item, LoopItemData data) + { + DragonGuildLivenessRecord dragonGuildLivenessRecord = data as DragonGuildLivenessRecord; + bool flag = dragonGuildLivenessRecord != null; + if (flag) + { + GameObject obj = item.GetObj(); + bool flag2 = obj != null; + if (flag2) + { + DragonGuildLivenessRecordItem component = obj.GetComponent(); + bool flag3 = component != null; + if (flag3) + { + component.Refresh(dragonGuildLivenessRecord); + } + } + } + else + { + XSingleton.singleton.AddErrorLog("GuildMiniReportItem info is null", null, null, null, null, null); + } + } + + public void SetCurrentExpAmi() + { + base.uiBehaviour.m_Progress.TargetExp = XDragonGuildDocument.DragonGuildLivenessData.CurExp; + base.uiBehaviour.m_TotalExpTween.SetNumberWithTween((ulong)XDragonGuildDocument.DragonGuildLivenessData.CurExp, "", false, true); + } + + public void ChangeChestProgressState(bool init = false) + { + for (int i = 0; i < this.m_dragonguildLivenessRow.Count; i++) + { + XChest xchest = base.uiBehaviour.m_Progress.ChestList[i]; + if (init) + { + xchest.SetExp(this.m_dragonguildLivenessRow[i].liveness); + } + xchest.Opened = XDragonGuildDocument.DragonGuildLivenessData.IsChestOpened(i + 1); + } + if (init) + { + base.uiBehaviour.m_Progress.SetExp(0u, XDragonGuildDocument.DragonGuildLivenessData.MaxExp); + } + } + + public void ResetBoxRedDot(int index) + { + bool flag = index < 0 || index >= base.uiBehaviour.m_Progress.ChestList.Count; + if (!flag) + { + base.uiBehaviour.m_Progress.ChestList[index].Open(); + } + } + + private void OnChestClicked(IXUISprite iSp) + { + bool flag = this.SetButtonCool(this.m_CoolTime); + if (!flag) + { + int index = (int)iSp.ID; + this.ShowReward(index); + bool flag2 = base.uiBehaviour.m_Progress.IsExpEnough(index); + if (flag2) + { + DragonGuildLivenessTable.RowData rowData = this.m_dragonguildLivenessRow[index]; + bool flag3 = rowData != null; + if (flag3) + { + XDragonGuildDocument.DragonGuildLivenessData.ReqTakeDragonGuildChest(rowData.index); + } + } + } + } + + public void ShowReward(int index) + { + this.m_CurSelectIndex = index; + base.uiBehaviour.m_RewardItemPool.ReturnAll(false); + DragonGuildLivenessTable.RowData rowData = this.m_dragonguildLivenessRow[this.m_CurSelectIndex]; + for (int i = 0; i < rowData.viewabledrop.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardItemPool.FetchGameObject(false); + bool flag = rowData.viewabledrop[i, 0] == 4u; + if (flag) + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.viewabledrop[i, 0], 0, false); + } + else + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.viewabledrop[i, 0], (int)rowData.viewabledrop[i, 1], true); + } + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, (int)rowData.viewabledrop[i, 0]); + Vector3 tplPos = base.uiBehaviour.m_RewardItemPool.TplPos; + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)base.uiBehaviour.m_RewardItemPool.TplWidth * ((float)(-(float)rowData.viewabledrop.Count) / 2f + 0.5f + (float)i), tplPos.y, tplPos.z); + } + base.uiBehaviour.m_chestTips.SetText(rowData.liveness.ToString()); + } + + private void OnClosed(IXUISprite spr) + { + this.SetVisible(false, true); + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_LastClickTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_LastClickTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessDlg.cs.meta new file mode 100644 index 00000000..a1659b62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15f439f07b6ddbe4bb6a10219c5892b6 +timeCreated: 1611403267 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessRecordItem.cs b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessRecordItem.cs new file mode 100644 index 00000000..824a3f69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessRecordItem.cs @@ -0,0 +1,41 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + public class DragonGuildLivenessRecordItem : MonoBehaviour + { + public IXUILabel m_nameLab; + + public IXUILabel m_timeLab; + + public IXUILabel m_contentLab; + + private IXUISprite m_sprRoot; + + private IXUISprite m_bgSpr; + + private void Awake() + { + this.m_sprRoot = (base.GetComponent("XUISprite") as IXUISprite); + this.m_bgSpr = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_nameLab = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel); + this.m_timeLab = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_contentLab = (base.transform.Find("Bg/Description").GetComponent("XUILabel") as IXUILabel); + } + + public void Refresh(DragonGuildLivenessRecord record) + { + bool flag = record == null; + if (!flag) + { + this.m_nameLab.SetText(record.Name); + this.m_timeLab.SetText(record.ShowTimeStr); + this.m_contentLab.SetText(record.ShowString); + this.m_sprRoot.spriteHeight = 46 + this.m_contentLab.spriteHeight; + this.m_bgSpr.spriteHeight = this.m_sprRoot.spriteHeight; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessRecordItem.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessRecordItem.cs.meta new file mode 100644 index 00000000..0ed93a67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildLivenessRecordItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d921147122e2334c8ab13204fc3383e +timeCreated: 1611403506 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildShopRecordsHandler.cs b/Client/Assets/Scripts/XMainClient/UI/DragonGuildShopRecordsHandler.cs new file mode 100644 index 00000000..0f1d2f21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildShopRecordsHandler.cs @@ -0,0 +1,150 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DragonGuildShopRecordsHandler : DlgHandlerBase + { + private XDragonGuildDocument m_doc + { + get + { + return XDragonGuildDocument.Doc; + } + } + + protected override string FileName + { + get + { + return "Partner/PartnerShopRecords"; + } + } + + private IXUIButton m_closeBtn; + + private IXUIWrapContent m_wrapContent; + + private GameObject m_tipsGo; + + private IXUIScrollView m_ScrollView; + + protected override void Init() + { + base.Init(); + this.m_doc.ShopRecordsHandler = this; + this.m_closeBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Panel"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_wrapContent = (transform.Find("Wrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_tipsGo = base.PanelObject.transform.Find("Tips").gameObject; + this.m_ScrollView.ResetPosition(); + this.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosedClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_doc.ReqShopRecords(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + this.m_doc.ShopRecordsHandler = null; + base.OnUnload(); + } + + private void FillDefault() + { + this.m_tipsGo.SetActive(true); + this.m_wrapContent.gameObject.SetActive(false); + } + + public void FillContent() + { + bool flag = this.m_doc.ShopRecordList == null; + if (flag) + { + XSingleton.singleton.AddGreenLog("ShopRecordList is null", null, null, null, null, null); + } + else + { + bool flag2 = this.m_doc.ShopRecordList.Count == 0; + if (flag2) + { + this.m_tipsGo.SetActive(true); + this.m_wrapContent.gameObject.SetActive(false); + } + else + { + this.m_tipsGo.SetActive(false); + this.m_wrapContent.gameObject.SetActive(true); + int count = this.m_doc.ShopRecordList.Count; + this.m_wrapContent.SetContentCount(count, false); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = index >= this.m_doc.ShopRecordList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("index >= ShopRecordList.Count", null, null, null, null, null); + } + else + { + DragonGuildShopRecord dragonGuildShopRecord = this.m_doc.ShopRecordList[index]; + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(dragonGuildShopRecord.TimeStr.Replace("/n", "\n")); + ixuilabel = (t.Find("ItemName").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(dragonGuildShopRecord.ItemName); + ixuilabel = (t.Find("ItemNum").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(dragonGuildShopRecord.BuyCount.ToString()); + IXUILabelSymbol ixuilabelSymbol = t.Find("PlayerName").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = dragonGuildShopRecord.PlayerName; + ixuilabelSymbol.ID = (ulong)((long)index); + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this.OnClickName)); + } + } + + private void OnClickName(IXUILabelSymbol iSp) + { + bool flag = this.m_doc.ShopRecordList == null; + if (!flag) + { + int index = (int)iSp.ID / 100; + DragonGuildShopRecord dragonGuildShopRecord = this.m_doc.ShopRecordList[index]; + bool flag2 = dragonGuildShopRecord == null; + if (!flag2) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(dragonGuildShopRecord.RoleId, false); + } + } + } + + private bool OnClosedClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DragonGuildShopRecordsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DragonGuildShopRecordsHandler.cs.meta new file mode 100644 index 00000000..33b87539 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DragonGuildShopRecordsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f44377c413274e445a7b9a644cf3e3d0 +timeCreated: 1611404853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs b/Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs new file mode 100644 index 00000000..cd5b318d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs @@ -0,0 +1,848 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DramaDlg : DlgBase + { + public override string fileName + { + get + { + return "Hall/DramaDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool exclusive + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideTutorial + { + get + { + return true; + } + } + + public XNpc m_npc; + + protected XNpcAttributes m_npcAttr; + + public Queue m_DialogQueue = new Queue(); + + private XDummy m_npcDummy; + + private XTaskDocument taskDoc; + + private XTaskInfo m_RelativeTask; + + private uint m_RelativeTaskID; + + private XDramaDocument doc; + + private XNPCFavorDramaSend sendHandler = null; + + private XNPCFavorDramaExchange exchangeHandler = null; + + protected override void Init() + { + this._TogglePage(DramaPage.DP_MAX); + this.taskDoc = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + this.doc = XDocuments.GetSpecificDocument(XDramaDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this.sendHandler, base.uiBehaviour.m_FavorFrame, false, this); + DlgHandlerBase.EnsureCreate(ref this.exchangeHandler, base.uiBehaviour.m_FavorFrame, false, this); + } + + public override void RegisterEvent() + { + IXUISprite ixuisprite = base.uiBehaviour.m_TaskArea.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.GotoNextTalk)); + ixuisprite = (base.uiBehaviour.m_OperateArea.GetComponent("XUISprite") as IXUISprite); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + ixuisprite = (base.uiBehaviour.m_FavorGB.GetComponent("XUISprite") as IXUISprite); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + base.uiBehaviour.m_RewardBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRewardClick)); + base.uiBehaviour.m_FuncArea.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnNormalFuncClick)); + base.uiBehaviour.m_BtnAccept.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnBtnAcceptTaskClicked)); + base.uiBehaviour.m_BtnReject.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnBtnRejectTaskClicked)); + } + + protected void OnNormalFuncClick(IXUISprite sp) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = this.m_npc != null && !this.m_npc.Deprecated; + if (flag2) + { + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(this.m_npc.TypeID); + bool flag3 = byNPCID != null && byNPCID.NPCType == 3u; + if (flag3) + { + HomePlantDocument.Doc.HomeSprite.SetNextStepOperation(); + } + bool flag4 = byNPCID != null && byNPCID.NPCType == 4u; + if (flag4) + { + XGuildCollectDocument specificDocument = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + specificDocument.OnMeetNpc(this.m_npc.TypeID); + } + } + this.SetVisible(false, true); + } + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("DramaDlg"); + this.m_npc = null; + this.m_npcAttr = null; + this._TogglePage(DramaPage.DP_MAX); + XSingleton.singleton.HpbarRoot.gameObject.SetActive(false); + XSingleton.singleton.NpcHpbarRoot.gameObject.SetActive(false); + XSingleton.singleton.MakeEffectEnable(XPostEffect.GausBlur, false); + XSingleton.singleton.StopUISound(); + } + + protected override void OnHide() + { + this.doc.OnUIClose(); + this.m_RelativeTask = null; + XSingleton.singleton.EnableMainDummy(false, null); + bool flag = base.uiBehaviour.m_leftSnapshot != null; + if (flag) + { + base.uiBehaviour.m_rightSnapshot.RefreshRenderQueue = null; + } + bool flag2 = base.uiBehaviour.m_leftSnapshot != null; + if (flag2) + { + base.uiBehaviour.m_leftSnapshot.RefreshRenderQueue = null; + } + base.Return3DAvatarPool(); + this.m_npcDummy = null; + XCameraCloseUpEndEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + DlgBase.singleton.DramaDlgCloseTime = Time.time; + XSingleton.singleton.HpbarRoot.gameObject.SetActive(true); + XSingleton.singleton.NpcHpbarRoot.gameObject.SetActive(true); + bool flag3 = this.sendHandler != null; + if (flag3) + { + this.sendHandler.SetVisible(false); + } + bool flag4 = this.exchangeHandler != null; + if (flag4) + { + this.exchangeHandler.SetVisible(false); + } + XNPCFavorDocument specificDocument = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + DlgBase.singleton.SetSystemRedPointState(XSysDefine.XSys_NPCFavor, specificDocument.IsNeedShowRedpoint); + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.sendHandler); + DlgHandlerBase.EnsureUnload(ref this.exchangeHandler); + base.Return3DAvatarPool(); + this.doc.OnUIClose(); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + for (int i = 0; i < base.uiBehaviour.MAX_OPERATE_BTN_COUNT; i++) + { + base.uiBehaviour.m_OperateBtns[i].Update(); + } + for (int j = 0; j < base.uiBehaviour.MAX_OPERATE_LIST_COUNT; j++) + { + base.uiBehaviour.m_OperateLists[j].Update(); + } + } + + private void _TogglePage(DramaPage page) + { + base.uiBehaviour.m_TaskArea.gameObject.SetActive(page == DramaPage.DP_DIALOG || page == DramaPage.DP_ACCEPT); + base.uiBehaviour.m_RewardArea.gameObject.SetActive(page == DramaPage.DP_REWARD); + base.uiBehaviour.m_FuncArea.gameObject.SetActive(page == DramaPage.DP_FUNC); + base.uiBehaviour.m_TaskAcceptArea.SetActive(page == DramaPage.DP_ACCEPT); + base.uiBehaviour.m_OperateArea.SetActive(page == DramaPage.DP_OPERATE); + base.uiBehaviour.m_FavorGB.SetActive(page == DramaPage.DP_FAVOR); + } + + public void ShowNpcDialog(XNpc npc) + { + bool flag = !XEntity.ValideEntity(npc); + if (!flag) + { + XSingleton.singleton.OnGenericClick(); + bool flag2 = XSingleton.singleton.IsRecording(); + if (flag2) + { + XCameraCloseUpEndEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + else + { + this.SetVisible(true, true); + this.m_npc = npc; + this.m_npcAttr = (npc.Attributes as XNpcAttributes); + bool flag3 = this.m_npcAttr == null; + if (flag3) + { + this.SetVisible(false, true); + } + else + { + this.SetupTalkerName(this.m_npcAttr.Name); + npc.ShowUp(null); + NpcTaskState npcTaskState = this.taskDoc.GetNpcTaskState(npc.TypeID, ref this.m_RelativeTask); + bool flag4 = this.m_RelativeTask != null; + if (flag4) + { + this.m_RelativeTaskID = this.m_RelativeTask.ID; + } + else + { + this.m_RelativeTaskID = 0u; + } + bool flag5 = npcTaskState == NpcTaskState.Normal || npc.NPCType == 3u; + if (flag5) + { + int index = this.PlayNpcVoice(); + this.SetupNpcNormalDialog(index, npc.NPCType); + } + else + { + this.m_DialogQueue.Clear(); + XTaskDialog curDialog = this.m_RelativeTask.CurDialog; + for (int i = 0; i < curDialog.Dialog.Count; i++) + { + this.m_DialogQueue.Enqueue(curDialog.Dialog[i]); + } + this.SetupNpcTaskDialog(); + } + } + } + } + } + + protected void OnRewardClick(IXUISprite sp) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + XTaskInfo xtaskInfo = null; + NpcTaskState npcTaskState = this.taskDoc.GetNpcTaskState(this.m_npc.TypeID, ref xtaskInfo); + bool flag2 = npcTaskState == NpcTaskState.TaskEnd; + if (flag2) + { + RpcC2G_TaskOperate rpcC2G_TaskOperate = new RpcC2G_TaskOperate(); + rpcC2G_TaskOperate.oArg.taskID = (int)xtaskInfo.ID; + rpcC2G_TaskOperate.oArg.taskOP = 2; + XSingleton.singleton.Send(rpcC2G_TaskOperate); + XSingleton.singleton.DoScriptRecord("finishtask+" + xtaskInfo.ID); + DlgBase.singleton.SetVisible(false, true); + } + } + } + + protected void _PlayVoice(string voice, bool isNPC) + { + if (isNPC) + { + bool flag = XSingleton.singleton.Player != null && XSingleton.singleton.IsPlayingSound(XSingleton.singleton.Player, AudioChannel.Motion); + if (flag) + { + XSingleton.singleton.StopSound(XSingleton.singleton.Player, AudioChannel.Motion); + } + bool flag2 = this.m_npc != null && !string.IsNullOrEmpty(voice); + if (flag2) + { + XSingleton.singleton.PlaySound(this.m_npc, AudioChannel.Motion, voice); + } + } + else + { + bool flag3 = this.m_npc != null && XSingleton.singleton.IsPlayingSound(this.m_npc, AudioChannel.Motion); + if (flag3) + { + XSingleton.singleton.StopSound(this.m_npc, AudioChannel.Motion); + } + bool flag4 = XSingleton.singleton.Player != null && !string.IsNullOrEmpty(voice); + if (flag4) + { + XSingleton.singleton.PlaySound(XSingleton.singleton.Player, AudioChannel.Motion, voice); + } + } + } + + public void StopVoice() + { + bool flag = XSingleton.singleton.Player != null && XSingleton.singleton.IsPlayingSound(XSingleton.singleton.Player, AudioChannel.Motion); + if (flag) + { + XSingleton.singleton.StopSound(XSingleton.singleton.Player, AudioChannel.Motion); + } + bool flag2 = this.m_npc != null && XSingleton.singleton.IsPlayingSound(this.m_npc, AudioChannel.Motion); + if (flag2) + { + XSingleton.singleton.StopSound(this.m_npc, AudioChannel.Motion); + } + } + + protected void GotoNextTalk(IXUISprite sp) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool activeSelf = base.uiBehaviour.m_TaskAcceptArea.activeSelf; + if (!activeSelf) + { + bool flag2 = this.m_DialogQueue.Count > 0; + if (flag2) + { + XDialogSentence xdialogSentence = this.m_DialogQueue.Dequeue(); + bool flag3 = xdialogSentence.bCanReject && this.m_RelativeTask.Status == TaskStatus.TaskStatus_CanTake; + if (flag3) + { + this._TogglePage(DramaPage.DP_ACCEPT); + this.ShowTaskAccept(ref xdialogSentence); + } + else + { + this._TogglePage(DramaPage.DP_DIALOG); + } + bool flag4 = xdialogSentence.Talker == 1; + if (flag4) + { + this.SetupNpcText(this.m_npc, XSingleton.singleton.ReplaceReturn(xdialogSentence.Content)); + this._PlayVoice(xdialogSentence.Voice, true); + } + else + { + this.SetupPlayerText(XSingleton.singleton.ReplaceReturn(xdialogSentence.Content)); + this._PlayVoice(xdialogSentence.Voice, false); + } + } + else + { + this.SetupNpcText(this.m_npc, ""); + NpcTaskState npcTaskState = NpcTaskState.Normal; + this.m_RelativeTask = this.taskDoc.GetTaskInfo(this.m_RelativeTaskID); + bool flag5 = this.m_RelativeTask != null; + if (flag5) + { + npcTaskState = this.m_RelativeTask.NpcState; + } + bool flag6 = npcTaskState == NpcTaskState.TaskBegin; + if (flag6) + { + RpcC2G_TaskOperate rpcC2G_TaskOperate = new RpcC2G_TaskOperate(); + rpcC2G_TaskOperate.oArg.taskID = (int)this.m_RelativeTask.ID; + rpcC2G_TaskOperate.oArg.taskOP = 1; + XSingleton.singleton.Send(rpcC2G_TaskOperate); + XSingleton.singleton.DoScriptRecord("accepttask+" + this.m_RelativeTask.ID); + bool flag7 = !this.CanAutoContinue(this.m_RelativeTask); + if (flag7) + { + this.SetVisible(false, true); + } + } + else + { + bool flag8 = npcTaskState == NpcTaskState.TaskEnd; + if (flag8) + { + this.ShowTaskReward(this.m_RelativeTask.ID); + } + else + { + this.SetVisible(false, true); + } + } + } + } + } + } + + public bool CanAutoContinue(XTaskInfo taskInfo) + { + return (taskInfo != null & taskInfo.Conds.Count == 0) && XSingleton.singleton.ChooseProfData(taskInfo.TableData.BeginTaskNPCID, 0u) == XSingleton.singleton.ChooseProfData(taskInfo.TableData.EndTaskNPCID, 0u); + } + + protected void ShowTaskAccept(ref XDialogSentence dialog) + { + bool flag = this.m_RelativeTask == null || this.m_RelativeTask.TableData == null; + if (!flag) + { + this._TogglePage(DramaPage.DP_ACCEPT); + TaskTableNew.RowData tableData = this.m_RelativeTask.TableData; + bool flag2 = tableData.RewardItem.Count > 0; + if (flag2) + { + base.uiBehaviour.m_AcceptItemBg.SetActive(true); + base.uiBehaviour.m_AcceptItemPool.FakeReturnAll(); + for (int i = 0; i < tableData.RewardItem.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_AcceptItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_AcceptItemPool.TplPos.x + (float)(i * base.uiBehaviour.m_AcceptItemPool.TplWidth), base.uiBehaviour.m_AcceptItemPool.TplPos.y, base.uiBehaviour.m_AcceptItemPool.TplPos.z); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)tableData.RewardItem[i, 0], (int)tableData.RewardItem[i, 1], false); + } + base.uiBehaviour.m_AcceptItemPool.ActualReturnAll(false); + } + else + { + base.uiBehaviour.m_AcceptItemBg.SetActive(false); + } + } + } + + protected void ShowTaskReward(uint taskID) + { + TaskTableNew.RowData taskData = XTaskDocument.GetTaskData(taskID); + base.uiBehaviour.m_RewardGold.SetText("0"); + base.uiBehaviour.m_RewardExp.SetText("0"); + bool flag = taskData != null; + if (flag) + { + this._TogglePage(DramaPage.DP_REWARD); + bool flag2 = taskData.RewardItem.Count > 0; + if (flag2) + { + base.uiBehaviour.m_RewardItemBg.gameObject.SetActive(true); + Vector3 localPosition = base.uiBehaviour.m_RewardItemPool._tpl.transform.localPosition; + float num = (float)(base.uiBehaviour.m_RewardItemPool.TplWidth + 5); + base.uiBehaviour.m_RewardItemPool.ReturnAll(false); + int i = 0; + int num2 = 0; + while (i < taskData.RewardItem.Count) + { + int num3 = (int)taskData.RewardItem[i, 0]; + int itemCount = (int)taskData.RewardItem[i, 1]; + bool flag3 = num3 == 1; + if (flag3) + { + base.uiBehaviour.m_RewardGold.SetText(itemCount.ToString()); + } + else + { + bool flag4 = num3 == 4; + if (flag4) + { + base.uiBehaviour.m_RewardExp.SetText(itemCount.ToString()); + } + else + { + GameObject gameObject = base.uiBehaviour.m_RewardItemPool.FetchGameObject(false); + gameObject.transform.localPosition = localPosition + new Vector3((float)num2 * num, 0f, 0f); + num2++; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, num3, itemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, num3); + } + } + i++; + } + } + else + { + base.uiBehaviour.m_RewardItemBg.gameObject.SetActive(false); + } + } + } + + protected void SetupNpcTaskDialog() + { + bool flag = this.m_DialogQueue.Count > 0; + if (flag) + { + this.GotoNextTalk(null); + } + } + + protected void SetupNPCAvatar(uint presentID, bool playtween) + { + base.uiBehaviour.m_rightSnapshot.transform.localPosition = base.uiBehaviour.m_rightDummyPos; + base.uiBehaviour.m_leftSnapshot.transform.localPosition = XGameUI.Far_Far_Away; + this.m_npcDummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, presentID, base.uiBehaviour.m_rightSnapshot, this.m_npcDummy, 1f); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(presentID); + bool flag = byPresentID != null && byPresentID.AvatarPos != null; + if (flag) + { + int num = XSingleton.singleton.RandomInt(0, byPresentID.AvatarPos.Length); + this.m_npcDummy.SetAnimation(byPresentID.AvatarPos[num]); + } + } + + protected void SetupTalkerName(string name) + { + base.uiBehaviour.m_name.SetText(name); + } + + protected void SetupNpcNormalDialog(int index, uint npcType) + { + this._TogglePage(DramaPage.DP_FUNC); + bool flag = npcType == 3u; + if (flag) + { + HomePlantDocument homePlantDocument = HomePlantDocument.Doc; + base.uiBehaviour.m_FuncText.SetText(homePlantDocument.HomeSprite.GetDialogue()); + this.SetupNPCAvatar(this.m_npcAttr.PresentID, true); + } + else + { + index = ((this.m_npcAttr.Content != null && index >= this.m_npcAttr.Content.Length) ? 0 : index); + base.uiBehaviour.m_FuncText.SetText(this.m_npcAttr.Content[index]); + this.SetupNPCAvatar(this.m_npcAttr.PresentID, true); + Vector3 localPosition = base.uiBehaviour.m_FuncPool._tpl.transform.localPosition; + float num = (float)(base.uiBehaviour.m_FuncPool.TplHeight + 2); + base.uiBehaviour.m_FuncPool.ReturnAll(false); + bool flag2 = this.m_npcAttr.Content != null && this.m_npcAttr.FunctionList != null; + if (flag2) + { + for (int i = 0; i < this.m_npcAttr.FunctionList.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_FuncPool.FetchGameObject(false); + gameObject.transform.localPosition = localPosition + new Vector3(0f, (float)(-(float)i) * num); + IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetSysName(this.m_npcAttr.FunctionList[i])); + ixuilabel.ID = (ulong)((long)this.m_npcAttr.FunctionList[i]); + } + } + bool flag3 = this.m_npcAttr.FunctionList == null || this.m_npcAttr.FunctionList.Length == 0; + if (flag3) + { + base.uiBehaviour.m_FuncTplBg.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_FuncTplBg.gameObject.SetActive(true); + } + } + } + + protected int PlayNpcVoice() + { + bool flag = this.m_npcAttr.Voice == null || this.m_npcAttr.Voice.Length == 0; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = !XSingleton.singleton.IsPlayingSound(this.m_npc, AudioChannel.Motion); + if (flag2) + { + int num = XSingleton.singleton.RandomInt(0, this.m_npcAttr.Voice.Length); + XSingleton.singleton.PlaySound(this.m_npc, AudioChannel.Motion, this.m_npcAttr.Voice[num]); + result = num; + } + else + { + result = 0; + } + } + return result; + } + + protected void SetupNpcText(XNpc npc, string text) + { + base.uiBehaviour.m_NpcText.gameObject.SetActive(true); + base.uiBehaviour.m_PlayerText.gameObject.SetActive(false); + base.uiBehaviour.m_name.gameObject.transform.parent.gameObject.SetActive(true); + this.SetupNPCAvatar(this.m_npcAttr.PresentID, false); + base.uiBehaviour.m_NpcText.SetText(text); + } + + protected void SetupPlayerText(string text) + { + base.uiBehaviour.m_NpcText.gameObject.SetActive(false); + base.uiBehaviour.m_PlayerText.gameObject.SetActive(true); + base.uiBehaviour.m_name.gameObject.transform.parent.gameObject.SetActive(false); + base.uiBehaviour.m_PlayerText.SetText(text); + base.uiBehaviour.m_rightSnapshot.transform.localPosition = XGameUI.Far_Far_Away; + base.uiBehaviour.m_leftSnapshot.transform.localPosition = base.uiBehaviour.m_leftDummyPos; + XSingleton.singleton.EnableMainDummy(true, base.uiBehaviour.m_leftSnapshot); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(XSingleton.singleton.XPlayerData.PresentID); + bool flag = byPresentID != null && byPresentID.AvatarPos != null; + if (flag) + { + int num = XSingleton.singleton.RandomInt(0, byPresentID.AvatarPos.Length); + XSingleton.singleton.SetMainAnimation(byPresentID.AvatarPos[num]); + } + } + + private bool _OnBtnAcceptTaskClicked(IXUIButton btn) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_RelativeTask == null; + if (flag2) + { + result = true; + } + else + { + RpcC2G_TaskOperate rpcC2G_TaskOperate = new RpcC2G_TaskOperate(); + rpcC2G_TaskOperate.oArg.taskID = (int)this.m_RelativeTask.ID; + rpcC2G_TaskOperate.oArg.taskOP = 1; + XSingleton.singleton.Send(rpcC2G_TaskOperate); + XSingleton.singleton.DoScriptRecord("accepttask+" + this.m_RelativeTask.ID); + this.SetVisible(false, true); + result = true; + } + } + return result; + } + + private bool _OnBtnRejectTaskClicked(IXUIButton btn) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + this.SetVisible(false, true); + result = true; + } + return result; + } + + private void _OnCloseClicked(IXUISprite iSp) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool bBlockClose = this.doc.bBlockClose; + if (!bBlockClose) + { + this.SetVisible(false, true); + } + } + } + + public void SetupOperate(XDramaOperateParam param) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + this._TogglePage(DramaPage.DP_OPERATE); + bool flag2 = param.Npc != null; + if (flag2) + { + this.m_npc = param.Npc; + this.m_npcAttr = (this.m_npc.Attributes as XNpcAttributes); + this.SetupTalkerName(this.m_npcAttr.Name); + this.m_npc.ShowUp(null); + this.SetupNPCAvatar(this.m_npcAttr.PresentID, true); + } + bool flag3 = param.Text != null; + if (flag3) + { + base.uiBehaviour.m_OperateText.SetText(param.Text); + } + bool flag4 = param.ButtonCount > 0; + if (flag4) + { + base.uiBehaviour.m_OperateBtnPanel.SetActive(true); + int i = 0; + while (i < param.ButtonCount && i < base.uiBehaviour.MAX_OPERATE_BTN_COUNT) + { + XDramaOperateButton xdramaOperateButton = param.Buttons[i]; + DramaDlgBehaviour.OperateButton operateButton = base.uiBehaviour.m_OperateBtns[i]; + operateButton.SetActive(true); + operateButton.SetButton(xdramaOperateButton.Name, xdramaOperateButton.RID, xdramaOperateButton.ClickEvent, xdramaOperateButton.StateEnable); + operateButton.SetLeftTime(xdramaOperateButton.TargetTime - Time.realtimeSinceStartup, xdramaOperateButton.TimeNote); + i++; + } + while (i < base.uiBehaviour.MAX_OPERATE_BTN_COUNT) + { + base.uiBehaviour.m_OperateBtns[i].SetActive(false); + i++; + } + } + else + { + base.uiBehaviour.m_OperateBtnPanel.SetActive(false); + } + bool flag5 = param.ListCount > 0; + if (flag5) + { + base.uiBehaviour.m_OperateListPanel.SetActive(true); + int j = 0; + while (j < param.ListCount && j < base.uiBehaviour.MAX_OPERATE_LIST_COUNT) + { + XDramaOperateList xdramaOperateList = param.Lists[j]; + DramaDlgBehaviour.OperateList operateList = base.uiBehaviour.m_OperateLists[j]; + operateList.SetActive(true); + SpriteClickEventHandler spriteClickEventHandler = new SpriteClickEventHandler(xdramaOperateList.ClickEvent.Invoke); + spriteClickEventHandler = (SpriteClickEventHandler)Delegate.Combine(spriteClickEventHandler, new SpriteClickEventHandler(this._OnOperateListClicked)); + operateList.SetList(xdramaOperateList.Name, xdramaOperateList.RID, spriteClickEventHandler); + operateList.SetLeftTime(xdramaOperateList.TargetTime - Time.realtimeSinceStartup, xdramaOperateList.TimeNote); + this._ToggleOperateListSelection(j, false); + j++; + } + while (j < base.uiBehaviour.MAX_OPERATE_LIST_COUNT) + { + base.uiBehaviour.m_OperateLists[j].SetActive(false); + j++; + } + } + else + { + base.uiBehaviour.m_OperateListPanel.SetActive(false); + } + } + } + + private void _OnOperateListClicked(IXUISprite iSp) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + this._SelectOperateList((int)iSp.ID); + } + } + + private void _ToggleOperateListSelection(int index, bool bSelect) + { + base.uiBehaviour.m_OperateLists[index].SetSelect(bSelect); + } + + private void _SelectOperateList(int index) + { + for (int i = 0; i < base.uiBehaviour.MAX_OPERATE_LIST_COUNT; i++) + { + this._ToggleOperateListSelection(i, index == i); + } + } + + public void SetUpFavorParam(XFavorParam param) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + this._TogglePage(DramaPage.DP_FAVOR); + bool flag2 = param.Npc != null; + if (flag2) + { + this.m_npc = param.Npc; + this.m_npcAttr = (this.m_npc.Attributes as XNpcAttributes); + this.SetupTalkerName(this.m_npcAttr.Name); + this.m_npc.ShowUp(null); + this.SetupNPCAvatar(this.m_npcAttr.PresentID, true); + } + bool flag3 = param.Text != null; + if (flag3) + { + base.uiBehaviour.m_FavorText.SetText(param.Text); + } + base.uiBehaviour.m_SendBtn.gameObject.SetActive(param.isShowSend); + base.uiBehaviour.m_SendBtn.RegisterClickEventHandler(param.sendCallback); + base.uiBehaviour.m_ExchangeBtn.gameObject.SetActive(param.isShowExchange); + base.uiBehaviour.m_ExchangeBtn.RegisterClickEventHandler(param.exchangeCallback); + base.uiBehaviour.m_ExchangeRedPoint.SetActive(param.isShowExchangeRedpoint); + base.uiBehaviour.m_FavorBtnList.Refresh(); + } + } + + public void NtfSendDramaRefresh() + { + bool flag = this.sendHandler.IsVisible(); + if (flag) + { + this.sendHandler.RefreshData(); + } + } + + public void NtfExchangeDramaRefresh() + { + bool flag = this.exchangeHandler.IsVisible(); + if (flag) + { + this.exchangeHandler.RefreshData(); + } + } + + public void NtfExchangeDlgClose() + { + bool flag = this.exchangeHandler.IsVisible(); + if (flag) + { + this.exchangeHandler.SetVisible(false); + } + } + + public void ShowNPCFavorSend() + { + bool flag = this.exchangeHandler.IsVisible(); + if (flag) + { + this.exchangeHandler.SetVisible(false); + } + this.sendHandler.SetVisible(true); + } + + public void ShowNPCFavorExchnage() + { + bool flag = this.sendHandler.IsVisible(); + if (flag) + { + this.sendHandler.SetVisible(false); + } + this.exchangeHandler.SetVisible(true); + } + + public bool IsSendDilogVisible() + { + return this.sendHandler != null && this.sendHandler.IsVisible(); + } + + public bool IsChangeDialogVisible() + { + return this.exchangeHandler != null && this.exchangeHandler.IsVisible(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs.meta new file mode 100644 index 00000000..5a23fefa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DramaDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ccad7e365e6e20479fca0a03a37348d +timeCreated: 1611404101 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DramaDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/DramaDlgBehaviour.cs new file mode 100644 index 00000000..d5936204 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DramaDlgBehaviour.cs @@ -0,0 +1,255 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DramaDlgBehaviour : DlgBehaviourBase + { + public IXUILabel m_name; + + public IUIDummy m_leftSnapshot; + + public IUIDummy m_rightSnapshot; + + public Vector3 m_leftDummyPos; + + public Vector3 m_rightDummyPos; + + public Transform m_TaskArea; + + public Transform m_RewardArea; + + public IXUISprite m_FuncArea; + + public IXUILabel m_NpcText; + + public IXUILabel m_PlayerText; + + public IXUIButton m_TaskNext; + + public IXUISprite m_RewardBg; + + public IXUILabel m_RewardGold; + + public IXUILabel m_RewardExp; + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_RewardNext; + + public Transform m_RewardItemBg; + + public IXUILabel m_FuncText; + + public XUIPool m_FuncPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_FuncTplBg; + + public GameObject m_TaskAcceptArea; + + public IXUIButton m_BtnAccept; + + public IXUIButton m_BtnReject; + + public XUIPool m_AcceptItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_AcceptItemBg; + + public GameObject m_OperateArea; + + public GameObject m_OperateBtnPanel; + + public GameObject m_OperateListPanel; + + public IXUILabel m_OperateText; + + public DramaDlgBehaviour.OperateButton[] m_OperateBtns = new DramaDlgBehaviour.OperateButton[4]; + + public DramaDlgBehaviour.OperateList[] m_OperateLists = new DramaDlgBehaviour.OperateList[4]; + + public int MAX_OPERATE_BTN_COUNT; + + public int MAX_OPERATE_LIST_COUNT; + + public GameObject m_FavorGB; + + public IXUIList m_FavorBtnList; + + public IXUIButton m_SendBtn; + + public IXUIButton m_ExchangeBtn; + + public GameObject m_ExchangeRedPoint; + + public IXUILabel m_FavorText; + + public Transform m_FavorFrame; + + public class OperateBase + { + protected GameObject m_go; + + protected XLeftTimeCounter leftTime; + + protected IXUILabel leftTimeNote; + + public OperateBase(GameObject go) + { + this.m_go = go; + } + + public void SetActive(bool bActive) + { + this.m_go.SetActive(bActive); + } + + public void SetLeftTime(float second, string note) + { + bool flag = this.leftTime != null; + if (flag) + { + this.leftTime.SetLeftTime(second, -1); + } + bool flag2 = this.leftTimeNote != null; + if (flag2) + { + this.leftTimeNote.SetText(note); + } + } + + public void Update() + { + bool flag = !this.m_go.activeSelf; + if (!flag) + { + bool flag2 = this.leftTime != null; + if (flag2) + { + this.leftTime.Update(); + } + } + } + } + + public class OperateButton : DramaDlgBehaviour.OperateBase + { + public IXUIButton btn; + + public IXUILabel text; + + public OperateButton(GameObject go) : base(go) + { + this.btn = (this.m_go.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton); + this.text = (this.btn.gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel); + this.leftTime = new XLeftTimeCounter(this.m_go.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel, true); + this.leftTimeNote = (this.m_go.transform.Find("LeftTime/Note").GetComponent("XUILabel") as IXUILabel); + } + + public void SetButton(string buttonName, ulong id, ButtonClickEventHandler clickEvent, bool enable) + { + this.btn.ID = id; + this.btn.RegisterClickEventHandler(clickEvent); + this.btn.SetEnable(enable, false); + this.text.SetText(buttonName); + } + } + + public class OperateList : DramaDlgBehaviour.OperateBase + { + public IXUISprite bg; + + public IXUILabel text; + + public GameObject selected; + + public OperateList(GameObject go) : base(go) + { + this.bg = (this.m_go.GetComponent("XUISprite") as IXUISprite); + this.text = (this.m_go.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + this.selected = this.m_go.transform.Find("Selected").gameObject; + this.leftTime = new XLeftTimeCounter(this.m_go.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel, true); + this.leftTimeNote = (this.m_go.transform.Find("LeftTime/Note").GetComponent("XUILabel") as IXUILabel); + } + + public void SetList(string name, ulong id, SpriteClickEventHandler clickEvent) + { + this.bg.ID = id; + this.bg.RegisterSpriteClickEventHandler(clickEvent); + this.text.SetText(name); + } + + public void SetSelect(bool bSelect) + { + this.selected.SetActive(bSelect); + } + } + + private void Awake() + { + this.m_name = (base.transform.Find("_canvas/TalkTextBg/Talker/Text").GetComponent("XUILabel") as IXUILabel); + this.m_TaskArea = base.transform.Find("_canvas/TalkTextBg/TaskText"); + this.m_RewardArea = base.transform.Find("_canvas/TalkTextBg/TaskReward"); + this.m_FuncArea = (base.transform.Find("_canvas/TalkTextBg/NormalFunc").GetComponent("XUISprite") as IXUISprite); + this.m_NpcText = (base.transform.Find("_canvas/TalkTextBg/TaskText/Text").GetComponent("XUILabel") as IXUILabel); + this.m_TaskNext = (base.transform.Find("_canvas/TalkTextBg/TaskText/Next").GetComponent("XUIButton") as IXUIButton); + this.m_PlayerText = (base.transform.Find("_canvas/TalkTextBg/TaskText/PlayerText").GetComponent("XUILabel") as IXUILabel); + this.m_RewardBg = (base.transform.Find("_canvas/TalkTextBg/TaskReward").GetComponent("XUISprite") as IXUISprite); + this.m_RewardGold = (base.transform.Find("_canvas/TalkTextBg/TaskReward/Gold/Value").GetComponent("XUILabel") as IXUILabel); + this.m_RewardExp = (base.transform.Find("_canvas/TalkTextBg/TaskReward/Exp/Value").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("_canvas/TalkTextBg/TaskReward/P/ItemTpl"); + this.m_RewardItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_RewardNext = (base.transform.Find("_canvas/TalkTextBg/TaskReward/Next").GetComponent("XUIButton") as IXUIButton); + this.m_RewardItemBg = base.transform.Find("_canvas/TalkTextBg/TaskReward/P"); + this.m_FuncText = (base.transform.Find("_canvas/TalkTextBg/NormalFunc/Text").GetComponent("XUILabel") as IXUILabel); + transform = base.transform.Find("_canvas/TalkTextBg/NormalFunc/P/FuncTpl"); + this.m_FuncPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_FuncTplBg = base.transform.Find("_canvas/TalkTextBg/NormalFunc/P"); + this.m_leftSnapshot = (base.transform.Find("_canvas/LeftSnapshot").GetComponent("UIDummy") as IUIDummy); + this.m_rightSnapshot = (base.transform.Find("_canvas/RightSnapshot").GetComponent("UIDummy") as IUIDummy); + this.m_leftDummyPos = this.m_leftSnapshot.transform.localPosition; + this.m_rightDummyPos = this.m_rightSnapshot.transform.localPosition; + this.m_TaskAcceptArea = base.transform.Find("_canvas/TalkTextBg/TaskAccept").gameObject; + this.m_BtnAccept = (this.m_TaskAcceptArea.transform.Find("BtnOK").GetComponent("XUIButton") as IXUIButton); + this.m_BtnReject = (this.m_TaskAcceptArea.transform.Find("BtnCancel").GetComponent("XUIButton") as IXUIButton); + this.m_AcceptItemBg = this.m_TaskAcceptArea.transform.Find("ItemList").gameObject; + transform = this.m_AcceptItemBg.transform.Find("ItemTpl"); + this.m_AcceptItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_OperateArea = base.transform.Find("_canvas/TalkTextBg/Operate").gameObject; + this.m_OperateBtnPanel = this.m_OperateArea.transform.Find("Buttons").gameObject; + this.m_OperateListPanel = this.m_OperateArea.transform.Find("List").gameObject; + this.m_OperateText = (this.m_OperateArea.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + for (int i = 0; i < 5; i++) + { + transform = this.m_OperateBtnPanel.transform.Find("Btn" + i); + bool flag = transform == null; + if (flag) + { + this.MAX_OPERATE_BTN_COUNT = i; + break; + } + this.m_OperateBtns[i] = new DramaDlgBehaviour.OperateButton(transform.gameObject); + } + for (int j = 0; j < 4; j++) + { + transform = this.m_OperateListPanel.transform.Find("List" + j); + bool flag2 = transform == null; + if (flag2) + { + this.MAX_OPERATE_LIST_COUNT = j; + break; + } + this.m_OperateLists[j] = new DramaDlgBehaviour.OperateList(transform.gameObject); + } + this.m_FavorGB = base.transform.Find("_canvas/TalkTextBg/NpcBlessing").gameObject; + this.m_FavorBtnList = (this.m_FavorGB.transform.Find("Grid").GetComponent("XUIList") as IXUIList); + this.m_SendBtn = (this.m_FavorGB.transform.Find("Grid/BtnSend").GetComponent("XUIButton") as IXUIButton); + this.m_ExchangeBtn = (this.m_FavorGB.transform.Find("Grid/BtnChange").GetComponent("XUIButton") as IXUIButton); + this.m_ExchangeRedPoint = this.m_FavorGB.transform.Find("Grid/BtnChange/RedPoint").gameObject; + this.m_FavorText = (this.m_FavorGB.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + this.m_FavorFrame = this.m_FavorGB.transform.Find("FavorFrame"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DramaDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DramaDlgBehaviour.cs.meta new file mode 100644 index 00000000..93afd819 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DramaDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d357707c085d8a48879f5d3e0ecfccf +timeCreated: 1611404235 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DramaPage.cs b/Client/Assets/Scripts/XMainClient/UI/DramaPage.cs new file mode 100644 index 00000000..75e62c90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DramaPage.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient.UI +{ + internal enum DramaPage + { + DP_DIALOG, + DP_REWARD, + DP_FUNC, + DP_ACCEPT, + DP_OPERATE, + DP_FAVOR, + DP_MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DramaPage.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DramaPage.cs.meta new file mode 100644 index 00000000..41cefcb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DramaPage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9b96385a5f555a4e8c9fdbd06f13a9d +timeCreated: 1611404645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DungeonSelect.cs b/Client/Assets/Scripts/XMainClient/UI/DungeonSelect.cs new file mode 100644 index 00000000..865f43e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DungeonSelect.cs @@ -0,0 +1,2445 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DungeonSelect : DlgBase + { + private bool _bLevelIsMoving + { + get + { + return this.m_bLevelIsMoving; + } + set + { + bool flag = base.uiBehaviour.m_hardBox != null; + if (flag) + { + base.uiBehaviour.m_hardBox.enabled = !value; + } + bool flag2 = base.uiBehaviour.m_normalBox != null; + if (flag2) + { + base.uiBehaviour.m_normalBox.enabled = !value; + } + this.m_bLevelIsMoving = value; + } + } + + public string EffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_effectPath); + if (flag) + { + this.m_effectPath = XSingleton.singleton.GetValue("DungeonSelectRoleEffectPath"); + } + return this.m_effectPath; + } + } + + public string EffectPath1 + { + get + { + bool flag = string.IsNullOrEmpty(this.m_effectPath1); + if (flag) + { + this.m_effectPath1 = XSingleton.singleton.GetValue("DungeonSelectRoleEffectPath1"); + } + return this.m_effectPath1; + } + } + + public override string fileName + { + get + { + return "Hall/DungeonSelect"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + private bool _isShowBossAvatar = true; + + private int _HardModeNeedLevel = 0; + + private uint _SelectDifficult = 0u; + + private int _SelectedChapter = 0; + + private uint _SelectScene = 0u; + + private bool _bAutoSelect = false; + + private bool _bAutoSelectChapterId = true; + + private GameObject _MainFrame; + + private GameObject _LeftFrame; + + private GameObject _RightFrame; + + private bool m_bLevelIsMoving = false; + + private int _ChapterRank; + + private int _ChapterTotalRank; + + private const float LEVEL_FRAME_OFFSET = 1136f; + + private uint _FirstNoRankScene = 0u; + + private Dictionary SceneDic = new Dictionary(); + + private uint _SceneRemainTime = 9999u; + + public bool IsTaskMode = false; + + private float m_fSweepBtnCoolTime = 0.5f; + + private float m_fGoBattleCoolTime = 5f; + + private float m_fLastClickBtnTime = 0f; + + private DungeonSelect.FrameCache main; + + private DungeonSelect.FrameCache left; + + private DungeonSelect.FrameCache right; + + private XDummy bossDummy = null; + + private XWelfareDocument _welfareDoc; + + private GameObject m_goLevelUpGo; + + private XFx m_fx; + + private XFx m_fx1; + + private string m_effectPath = string.Empty; + + private string m_effectPath1 = string.Empty; + + private struct FrameCache + { + public IUIDummy snapShot; + + public GameObject fx; + + public void Clear() + { + this.snapShot = null; + this.fx = null; + } + + public void Copy(ref DungeonSelect.FrameCache fc) + { + this.snapShot = fc.snapShot; + bool flag = this.fx != null; + if (flag) + { + this.fx.SetActive(false); + } + this.fx = fc.fx; + } + } + + protected override void Init() + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + this._welfareDoc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = this._SelectedChapter == 0; + if (flag) + { + this._SelectedChapter = XSingleton.singleton.GetPlayerLastChapter(this._SelectDifficult); + } + OpenSystemTable.RowData sysData = XSingleton.singleton.GetSysData(XSysDefineMgr.GetTypeInt(XSysDefine.XSys_Level_Elite)); + bool flag2 = sysData != null; + if (flag2) + { + this._HardModeNeedLevel = sysData.PlayerLevel; + } + else + { + this._HardModeNeedLevel = 1; + XSingleton.singleton.AddErrorLog("_sysData is nill", null, null, null, null, null); + } + } + + public GameObject GetGoLevelUpInfo() + { + return this.m_goLevelUpGo; + } + + public void FadeShow() + { + bool flag = !base.IsVisible(); + if (flag) + { + XAutoFade.FadeOut2In(0.5f, 0.5f); + XSingleton.singleton.SetTimer(0.484f, new XTimerMgr.ElapsedEventHandler(this.InnerShow), null); + } + } + + private void InnerShow(object o) + { + this.SetVisible(true, true); + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + specificDocument.ResetNavi(); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_SceneDetail.SetActive(false); + base.Alloc3DAvatarPool("DungeonSelect"); + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.OnTopUIRefreshed(this); + XTaskDocument specificDocument2 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + bool isTaskMode = this.IsTaskMode; + if (isTaskMode) + { + int naviScene = (int)specificDocument2.NaviScene; + bool flag = naviScene != 0; + if (flag) + { + this.SetAutoSelectScene(naviScene, 0, 0u); + this._bAutoSelect = false; + this._bAutoSelectChapterId = true; + } + this.IsTaskMode = false; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.OnCloseClicked(null); + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag6 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag7 = this._SelectDifficult == 0u; + base.uiBehaviour.m_cbNormal.ForceSetFlag(false); + base.uiBehaviour.m_cbHard.ForceSetFlag(false); + bool bAutoSelect = this._bAutoSelect; + if (bAutoSelect) + { + this.OnSwitchDifficult(flag7 ? base.uiBehaviour.m_Normal : base.uiBehaviour.m_Hard); + } + else + { + base.uiBehaviour.m_cbNormal.bChecked = flag7; + base.uiBehaviour.m_cbHard.bChecked = !flag7; + this.SetupChapterImage(); + } + XTeamDocument specificDocument3 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument3.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + XDailyActivitiesDocument specificDocument4 = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + specificDocument4.QueryDailyActivityData(); + } + + private void ResetTexture(GameObject frame) + { + bool flag = frame != null; + if (flag) + { + Transform transform = frame.transform.Find("BG"); + bool flag2 = transform != null; + if (flag2) + { + IXUITexture ixuitexture = transform.GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(""); + } + } + } + + protected override void OnHide() + { + base.OnHide(); + this.main.Clear(); + this.left.Clear(); + this.right.Clear(); + base.Return3DAvatarPool(); + this.bossDummy = null; + XSingleton.singleton.Freezed = false; + this.ResetTexture(this._MainFrame); + this.ResetTexture(this._LeftFrame); + this.ResetTexture(this._RightFrame); + this._bLevelIsMoving = false; + base.uiBehaviour.m_LevelTween.StopTween(); + base.uiBehaviour.m_LevelTween.ResetTweenByGroup(true, 1); + base.uiBehaviour.m_cbHard.ForceSetFlag(false); + base.uiBehaviour.m_cbNormal.ForceSetFlag(false); + } + + protected override void OnUnload() + { + XSingleton.singleton.OnUIUnloadMainDummy(this.main.snapShot); + base.Return3DAvatarPool(); + this.bossDummy = null; + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + bool flag2 = this.m_fx1 != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_fx1, true); + this.m_fx1 = null; + } + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Normal.ID = 0UL; + base.uiBehaviour.m_Hard.ID = 1UL; + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Normal.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSwitchDifficult)); + base.uiBehaviour.m_Hard.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSwitchDifficult)); + base.uiBehaviour.m_LevelBg.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnLevelBgDrag)); + base.uiBehaviour.m_SceneClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDetailClose)); + base.uiBehaviour.m_SceneQuick1.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQuickClicked)); + base.uiBehaviour.m_SceneQuick10.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQuickClicked)); + base.uiBehaviour.m_SceneGoBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoBattleBtnClicked)); + base.uiBehaviour.m_SceneSoloBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSoloBattleClicked)); + base.uiBehaviour.m_SceneTeamBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTeamBattleClicked)); + base.uiBehaviour.m_ShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopBtnClick)); + base.uiBehaviour.m_Left.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMoveLeft)); + base.uiBehaviour.m_Right.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMoveRight)); + base.uiBehaviour.m_BoxFrameBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChapterBoxBgClick)); + base.uiBehaviour.m_BtnAddHardLeftCount0.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnAddHardCountClicked)); + base.uiBehaviour.m_BtnAddHardLeftCount1.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnAddHardCountClicked)); + base.uiBehaviour.m_PrerogativeBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMemberPrivilegeClicked)); + base.uiBehaviour.m_addTicketSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickAddTicketBtn)); + } + + private void OnMemberPrivilegeClicked(IXUISprite btn) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + } + + private void OnClickAddTicketBtn(IXUISprite spr) + { + XSingleton.singleton.ShowItemAccess(XSingleton.singleton.GetInt("SweepTicketId"), null); + } + + protected void OnSwitchDifficult(IXUISprite sp) + { + bool bLevelIsMoving = this._bLevelIsMoving; + if (!bLevelIsMoving) + { + uint num = (uint)sp.ID; + bool flag = this._IsHardModeEnable(); + bool flag2 = 1u == num; + if (flag2) + { + bool flag3 = !flag; + if (flag3) + { + base.uiBehaviour.m_cbHard.bChecked = false; + base.uiBehaviour.m_cbNormal.bChecked = true; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DUNGEONSELECT_HARDMODE_LEVEL_LIMIT_FMT", new object[] + { + this._HardModeNeedLevel + }), "fece00"); + return; + } + } + else + { + bool flag4 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Level_Normal); + if (flag4) + { + return; + } + } + base.uiBehaviour.m_cbHard.bChecked = (1u == num); + base.uiBehaviour.m_cbNormal.bChecked = (1u != num); + bool bAutoSelectChapterId = this._bAutoSelectChapterId; + if (bAutoSelectChapterId) + { + int playerLocationChapter = XSingleton.singleton.GetPlayerLocationChapter(num); + this._SelectedChapter = playerLocationChapter; + } + else + { + this._bAutoSelectChapterId = true; + } + this._SelectDifficult = num; + this.SetupChapterImage(); + XSingleton.singleton.AddGreenLog("OnSwitchDifficult", null, null, null, null, null); + } + } + + private bool _IsHardModeEnable() + { + bool flag = XSingleton.singleton.XPlayerData != null; + bool result; + if (flag) + { + result = ((long)this._HardModeNeedLevel <= (long)((ulong)XSingleton.singleton.XPlayerData.Level)); + } + else + { + XSingleton.singleton.AddGreenLog("XAttributeMgr.singleton.XPlayerData is null", null, null, null, null, null); + result = false; + } + return result; + } + + public void AutoShowLastChapter(uint difficult, bool showDetailFrame = true) + { + bool flag = 1u == difficult && !this._IsHardModeEnable(); + if (flag) + { + difficult = 0u; + } + this._SelectDifficult = difficult; + this._SelectedChapter = XSingleton.singleton.GetPlayerLocationChapter(this._SelectDifficult); + this._SelectScene = XSingleton.singleton.GetPlayerLastSceneInChapter(this._SelectedChapter); + bool flag2 = this._SelectDifficult == 0u; + if (flag2) + { + this.OnSwitchDifficult(base.uiBehaviour.m_Normal); + } + else + { + this.OnSwitchDifficult(base.uiBehaviour.m_Hard); + } + bool flag3 = this._SelectScene > 0u && showDetailFrame; + if (flag3) + { + this._SetupDetailFrame(this._SelectScene); + } + } + + protected bool OnQuickClicked(IXUIButton button) + { + bool flag = this.SetButtonCool(this.m_fSweepBtnCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Level_Swap); + bool flag3 = !flag2; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SWAP_NOT_OPEN"), "fece00"); + result = true; + } + else + { + bool flag4 = this._SelectDifficult == 1u; + if (flag4) + { + XMainInterfaceDocument xmainInterfaceDocument = XSingleton.singleton.Doc.GetXComponent(XMainInterfaceDocument.uuID) as XMainInterfaceDocument; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._SelectScene); + bool flag5 = sceneData != null && xmainInterfaceDocument != null && xmainInterfaceDocument.GetPlayerPPT() < sceneData.SweepNeedPPT; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SWEEPPPT_NOTENOUGH"), "fece00"); + return true; + } + bool flag6 = XSingleton.singleton.Doc.XBagDoc.GetItemCount(87) <= 0UL; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SWEEPTICKETS_NOTENOUGH"), "fece00"); + return true; + } + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int expIDBySceneID = specificDocument.GetExpIDBySceneID(this._SelectScene); + bool flag7 = !specificDocument.CheckCountAndBuy(expIDBySceneID, sceneData); + if (flag7) + { + return true; + } + } + bool flag8 = this.OnLackPower(); + if (flag8) + { + result = true; + } + else + { + bool flag9 = this._SelectScene > 0u; + if (flag9) + { + XSweepDocument specificDocument2 = XDocuments.GetSpecificDocument(XSweepDocument.uuID); + bool flag10 = button.gameObject.name == "Quick1"; + if (flag10) + { + specificDocument2.StartSweep(this._SelectScene, 1u); + } + else + { + bool flag11 = button.gameObject.name == "Quick10"; + if (flag11) + { + bool flag12 = this._SelectDifficult == 0u; + if (flag12) + { + specificDocument2.StartSweep(this._SelectScene, 10u); + } + else + { + bool flag13 = this._SelectDifficult == 1u; + if (flag13) + { + specificDocument2.StartSweep(this._SelectScene, 5u); + } + } + } + } + } + result = true; + } + } + } + return result; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + + protected bool OnCloseClicked(IXUIButton button) + { + bool bLevelIsMoving = this._bLevelIsMoving; + bool result; + if (bLevelIsMoving) + { + XSingleton.singleton.AddLog("isMoving!!!!", null, null, null, null, null, XDebugColor.XDebug_None); + result = true; + } + else + { + this.SetVisible(false, true); + result = true; + } + return result; + } + + protected bool OnResetClicked(IXUIButton button) + { + int num = 0; + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + bool flag = xlevelDocument.SceneBuyCount.ContainsKey(this._SelectScene); + if (flag) + { + num = (int)xlevelDocument.SceneBuyCount[this._SelectScene]; + } + List list = ListPool.Get(); + string[] array = XSingleton.singleton.GetValue("BuyStageCountCost").Split(XGlobalConfig.ListSeparator); + uint num2 = 0u; + while ((ulong)num2 < (ulong)((long)array.Length)) + { + list.Add(uint.Parse(array[(int)num2])); + num2 += 1u; + } + bool flag2 = num >= list.Count; + if (flag2) + { + num = list.Count - 1; + } + uint num3 = list[num]; + string label = string.Format(XStringDefineProxy.GetString("RESET_LEVEL"), num3); + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._ResetScene)); + ListPool.Release(list); + return true; + } + + protected bool _ResetScene(IXUIButton button) + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + xlevelDocument.ResetScene((int)this._SelectScene); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public void OnResetSucc() + { + this._SetupDetailFrame(this._SelectScene); + } + + public bool OnGoBattleBtnClicked(IXUIButton go) + { + bool flag = this._SelectScene > 0u; + if (flag) + { + bool flag2 = this.OnLackPower(); + if (flag2) + { + return true; + } + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._SelectScene); + bool flag3 = sceneData == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("sceneData is null", null, null, null, null, null); + return true; + } + float num = float.Parse(XSingleton.singleton.GetValue("SceneGotoPower")); + bool flag4 = XSingleton.singleton.CheckMyPPT(Mathf.FloorToInt((float)sceneData.RecommendPower * num)); + if (flag4) + { + this.GoBattle(null); + } + else + { + base.uiBehaviour.m_SceneDetail.gameObject.SetActive(false); + XSingleton.singleton.ShowPPTNotEnoughDlg(0UL, new ButtonClickEventHandler(this.GoBattle)); + } + } + return true; + } + + public bool OnSoloBattleClicked(IXUIButton go) + { + bool flag = this._SelectDifficult == 1u; + if (flag) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._SelectScene); + bool flag2 = sceneData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("sceneData is null", null, null, null, null, null); + return true; + } + float num = float.Parse(XSingleton.singleton.GetValue("SceneGotoPower")); + bool flag3 = XSingleton.singleton.CheckMyPPT(Mathf.FloorToInt((float)sceneData.RecommendPower * num)); + if (flag3) + { + this.OnRealSoloBattleClicked(null); + } + else + { + base.uiBehaviour.m_SceneDetail.gameObject.SetActive(false); + XSingleton.singleton.ShowPPTNotEnoughDlg(0UL, new ButtonClickEventHandler(this.OnRealSoloBattleClicked)); + } + } + return true; + } + + public bool OnRealSoloBattleClicked(IXUIButton go) + { + bool flag = this.OnLackPower(); + bool result; + if (flag) + { + result = true; + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TEAM_ALREADY_INTEAM"), "fece00"); + result = true; + } + else + { + result = true; + } + } + return result; + } + + public bool OnTeamBattleClicked(IXUIButton go) + { + bool flag = this._SelectDifficult == 1u; + if (flag) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._SelectScene); + float num = float.Parse(XSingleton.singleton.GetValue("SceneGotoPower")); + bool flag2 = sceneData != null; + if (flag2) + { + bool flag3 = XSingleton.singleton.CheckMyPPT(Mathf.FloorToInt((float)sceneData.RecommendPower * num)); + if (flag3) + { + this.OnRealTeamBattleClicked(null); + } + else + { + base.uiBehaviour.m_SceneDetail.gameObject.SetActive(false); + XSingleton.singleton.ShowPPTNotEnoughDlg(0UL, new ButtonClickEventHandler(this.OnRealTeamBattleClicked)); + } + } + } + return true; + } + + public bool OnRealTeamBattleClicked(IXUIButton go) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + int expIDBySceneID = specificDocument.GetExpIDBySceneID(this._SelectScene); + specificDocument2.SetAndMatch(expIDBySceneID); + return true; + } + + private bool OnLackPower() + { + return this.OnLackPower(1); + } + + private bool OnLackPower(int times) + { + bool flag = !XSingleton.singleton.CanEnterBattleScene(this._SelectScene, times); + bool result; + if (flag) + { + bool flag2 = XSingleton.singleton.IsMaxBuyPowerCnt(); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_SCENE_NOFATIGUE"), "fece00"); + } + else + { + DlgBase.singleton.ShowBorad(ItemEnum.FATIGUE); + } + result = true; + } + else + { + result = false; + } + return result; + } + + protected bool GoBattle(IXUIButton go) + { + DlgBase.singleton.SetVisible(false, true); + bool flag = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.GoBattle), go); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.SetButtonCool(this.m_fGoBattleCoolTime); + if (flag2) + { + result = true; + } + else + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = this._SelectScene; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + result = true; + } + } + return result; + } + + public void SetAutoSelectScene(int sceneid, int chapterid, uint diff) + { + this._bAutoSelectChapterId = false; + bool flag = sceneid == 0; + if (flag) + { + this._SelectDifficult = diff; + this._SelectedChapter = chapterid; + this._SelectScene = 0u; + bool flag2 = this._SelectedChapter == 0; + if (flag2) + { + this._SelectedChapter = XSingleton.singleton.GetPlayerLocationChapter(this._SelectDifficult); + } + this._bAutoSelect = true; + } + else + { + this._SelectScene = (uint)sceneid; + this._SelectedChapter = XSingleton.singleton.GetSceneChapter(sceneid); + this._SelectDifficult = (uint)XSingleton.singleton.GetSceneDifficult(sceneid); + this._bAutoSelect = true; + } + } + + public void SelectChapter(int chapterid, uint diff) + { + this._SelectScene = 0u; + this._SelectedChapter = chapterid; + this._SelectDifficult = diff; + this.FadeShow(); + } + + protected GameObject GetLevelFrame() + { + return base.uiBehaviour.m_SceneFramePool.FetchGameObject(false); + } + + protected void SetupChapterBaseImage(int chapter, uint difficult, GameObject frame) + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + XChapter.RowData chapter2 = XSingleton.singleton.GetChapter(chapter); + IXUILabel ixuilabel = frame.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + bool flag = chapter2 != null; + if (flag) + { + ixuilabel.SetText(chapter2.Comment); + } + Transform transform = frame.transform.Find("me"); + IXUISprite ixuisprite = frame.transform.Find("me/me/me").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetSuperRiskAvatar(XSingleton.singleton.Player.BasicTypeID); + ixuisprite.MakePixelPerfect(); + transform.gameObject.SetActive(false); + Transform transform2 = frame.transform.Find("BG"); + bool flag2 = transform2 != null; + if (flag2) + { + IXUITexture ixuitexture = transform2.GetComponent("XUITexture") as IXUITexture; + bool flag3 = chapter2 != null; + if (flag3) + { + ixuitexture.SetTexturePath("atlas/UI/Hall/LevelBg/" + chapter2.Pic); + } + } + List list = ListPool.Get(); + XSingleton.singleton.GetSceneListByChapter(chapter, list); + bool flag4 = list.Count == 0; + if (flag4) + { + ListPool.Release(list); + } + else + { + list.Sort(); + bool flag5 = difficult == 0u; + if (flag5) + { + base.uiBehaviour.m_NormalBg.SetActive(true); + base.uiBehaviour.m_HardBg.SetActive(false); + base.uiBehaviour.m_HardLeftCountGo0.SetActive(false); + base.uiBehaviour.m_ShopBtn.SetVisible(false); + } + else + { + base.uiBehaviour.m_PrerogativeSpr.SetGrey(this._welfareDoc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer)); + base.uiBehaviour.m_PrerogativeSpr.SetSprite(this._welfareDoc.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Adventurer)); + base.uiBehaviour.m_PrerogativeLab.SetEnabled(this._welfareDoc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer)); + base.uiBehaviour.m_PrerogativeLab.SetText(string.Format(XStringDefineProxy.GetString("Prerogative_Abyss"), this._welfareDoc.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Adventurer).AbyssCount)); + base.uiBehaviour.m_NormalBg.SetActive(false); + base.uiBehaviour.m_HardBg.SetActive(true); + base.uiBehaviour.m_HardLeftCountGo0.SetActive(true); + base.uiBehaviour.m_ShopBtn.SetVisible(true); + } + bool flag6 = false; + GameObject fx = null; + Transform parent = frame.transform.Find("Levels"); + XSingleton.singleton.ClearDummy(this.m_dummPool); + this.bossDummy = null; + bool flag7 = frame == this._MainFrame; + if (flag7) + { + this._isShowBossAvatar = true; + } + for (int i = 0; i < list.Count; i++) + { + uint num = list[i]; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(num); + int num2 = XSingleton.singleton.GetRank(sceneData.id); + bool flag8 = num2 == -1; + if (flag8) + { + num2 = 0; + } + bool flag9 = sceneData != null; + if (flag9) + { + GameObject gameObject = base.uiBehaviour.m_ScenePool.FetchGameObject(false); + gameObject.name = sceneData.id.ToString(); + gameObject.transform.parent = parent; + bool flag10 = sceneData.UIPos != null; + if (flag10) + { + gameObject.transform.localPosition = new Vector3((float)sceneData.UIPos[0], (float)sceneData.UIPos[1], 600f); + } + else + { + XSingleton.singleton.AddErrorLog("'uipos' is null,To the plotter(ce hua) Find a solution,please,sceneId = " + num.ToString(), null, null, null, null, null); + } + gameObject.transform.localScale = Vector3.one; + this.SceneDic[num] = gameObject; + IXUISprite ixuisprite2 = gameObject.transform.Find("SprBtn").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)sceneData.id; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSceneSelected)); + IXUISprite ixuisprite3 = gameObject.transform.Find("LevelPic").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = gameObject.transform.Find("Star1").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite5 = gameObject.transform.Find("Star2").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite6 = gameObject.transform.Find("Star3").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject2 = gameObject.transform.Find("TaskHint").gameObject; + Transform transform3 = gameObject.transform.Find("Snapshot"); + IXUISprite ixuisprite7 = gameObject.transform.Find("Box").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = gameObject.transform.Find("Hint").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Hint/GoLevelup").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite8 = gameObject.transform.Find("BoxFx").GetComponent("XUISprite") as IXUISprite; + ixuisprite7.gameObject.SetActive(false); + ixuilabel2.gameObject.SetActive(false); + ixuisprite8.gameObject.SetActive(false); + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + gameObject2.SetActive(specificDocument.GetSceneTaskState(num).Count > 0); + bool flag11 = difficult == 0u; + if (flag11) + { + ixuisprite3.SetSprite("gk_0"); + } + else + { + ixuisprite3.SetSprite("gk_1"); + } + ixuisprite4.gameObject.SetActive(true); + ixuisprite4.spriteName = "gk_3"; + ixuisprite5.gameObject.SetActive(true); + ixuisprite5.spriteName = "gk_3"; + ixuisprite6.gameObject.SetActive(true); + ixuisprite6.spriteName = "gk_3"; + bool flag12 = num2 >= 1; + if (flag12) + { + ixuisprite4.spriteName = "gk_4"; + } + bool flag13 = num2 >= 2; + if (flag13) + { + ixuisprite5.spriteName = "gk_4"; + } + bool flag14 = num2 >= 3; + if (flag14) + { + ixuisprite6.spriteName = "gk_4"; + } + bool flag15 = num2 == 0; + if (flag15) + { + ixuisprite4.gameObject.SetActive(false); + ixuisprite5.gameObject.SetActive(false); + ixuisprite6.gameObject.SetActive(false); + } + ixuisprite3.SetGrey(!flag6); + bool flag16 = num2 <= 0; + if (flag16) + { + SceneRefuseReason sceneRefuseReason = SceneRefuseReason.Invalid; + bool flag17 = !flag6; + if (flag17) + { + sceneRefuseReason = xlevelDocument.CanLevelOpen(num); + ixuisprite3.SetGrey(true); + transform.localPosition = gameObject.transform.localPosition; + fx = transform.gameObject; + bool flag18 = i == list.Count - 1; + if (flag18) + { + this._isShowBossAvatar = false; + } + bool flag19 = sceneRefuseReason != SceneRefuseReason.Admit; + if (flag19) + { + ixuilabel2.gameObject.SetActive(true); + bool flag20 = sceneRefuseReason == SceneRefuseReason.PreTask_Notfinish; + if (flag20) + { + ixuilabel3.SetText(XStringDefineProxy.GetString("LEVEL_GO_TASK")); + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("LEVEl_REQUIRE_TASK"), new object[0])); + ixuilabel3.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnGoLevelupClick)); + } + else + { + bool flag21 = sceneRefuseReason == SceneRefuseReason.PreScene_Notfinish; + if (flag21) + { + ixuilabel3.SetText(XStringDefineProxy.GetString("LEVEL_GO_SCENE")); + int unFinishedPreSceneID = xlevelDocument.GetUnFinishedPreSceneID(sceneData); + SceneTable.RowData sceneData2 = XSingleton.singleton.GetSceneData((uint)unFinishedPreSceneID); + bool flag22 = sceneData2 != null; + if (flag22) + { + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_PRELEVEL"), sceneData2.Comment)); + } + ixuilabel3.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnGoLevelupClick)); + } + else + { + bool flag23 = SceneRefuseReason.ReachLimitTimes == sceneRefuseReason; + if (flag23) + { + ixuilabel3.SetText(XStringDefineProxy.GetString("LEVEL_REACH_LIMIT_TIMES")); + ixuilabel2.SetText(XStringDefineProxy.GetString("LEVEL_REACH_LIMIT_TIMES")); + ixuilabel3.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnGoLevelupClick)); + } + else + { + ixuilabel3.SetText(XStringDefineProxy.GetString("LEVEL_GO_UP")); + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL"), sceneData.RequiredLevel)); + this.m_goLevelUpGo = ixuilabel2.gameObject; + XSingleton.singleton.AddGreenLog("get farme", null, null, null, null, null); + } + } + } + ixuilabel3.ID = (ulong)sceneData.id; + } + } + bool flag24 = sceneRefuseReason == SceneRefuseReason.Admit; + if (flag24) + { + transform.localPosition = gameObject.transform.localPosition; + fx = transform.gameObject; + } + flag6 = true; + } + else + { + transform.localPosition = gameObject.transform.localPosition; + fx = transform.gameObject; + } + bool flag25 = sceneData.SceneChest != 0 && sceneData.BoxUIPos != null && sceneData.BoxUIPos.Length == 2; + if (flag25) + { + GameObject gameObject3 = base.uiBehaviour.m_ScenePool.FetchGameObject(false); + gameObject3.name = "chest" + num; + gameObject3.transform.parent = parent; + gameObject3.transform.localPosition = new Vector3((float)sceneData.BoxUIPos[0], (float)sceneData.BoxUIPos[1], 600f); + gameObject3.transform.localScale = Vector3.one; + this.SetupLevelChest(gameObject3, num, sceneData.SceneChest, num2); + } + } + } + ListPool.Release(list); + bool flag26 = frame == this._MainFrame; + if (flag26) + { + this.main.fx = fx; + } + else + { + bool flag27 = frame == this._LeftFrame; + if (flag27) + { + this.left.fx = fx; + } + else + { + bool flag28 = frame == this._RightFrame; + if (flag28) + { + this.right.fx = fx; + } + } + } + } + } + + protected void OnGoLevelupClick(IXUILabel go) + { + uint sceneID = (uint)go.ID; + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + switch (xlevelDocument.CanLevelOpen(sceneID)) + { + case SceneRefuseReason.PreTask_Notfinish: + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + XTaskInfo mainTask = specificDocument.TaskRecord.MainTask; + bool flag = mainTask != null; + if (flag) + { + uint sceneID2 = XTaskDocument.GetSceneID(ref mainTask.TableData.PassScene); + bool flag2 = mainTask.Status == TaskStatus.TaskStatus_Taked && sceneID2 > 0u; + if (flag2) + { + this._SelectedChapter = XSingleton.singleton.GetSceneChapter((int)sceneID2); + this._SelectDifficult = (uint)XSingleton.singleton.GetSceneDifficult((int)sceneID2); + this._SelectScene = sceneID2; + this._SetupDetailFrame(sceneID2); + } + else + { + this.SetVisible(false, true); + specificDocument.DoTask(mainTask.ID); + } + } + break; + } + case SceneRefuseReason.PreScene_Notfinish: + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneID); + bool flag3 = sceneData == null; + if (flag3) + { + XSingleton.singleton.AddGreenLog("scenedata is null", null, null, null, null, null); + } + else + { + int unFinishedPreSceneID = xlevelDocument.GetUnFinishedPreSceneID(sceneData); + int rank = XSingleton.singleton.GetRank(unFinishedPreSceneID); + bool flag4 = rank > 0 || xlevelDocument.CanLevelOpen((uint)unFinishedPreSceneID) == SceneRefuseReason.Admit; + if (flag4) + { + this._SelectScene = (uint)unFinishedPreSceneID; + int sceneChapter = XSingleton.singleton.GetSceneChapter(unFinishedPreSceneID); + int sceneDifficult = XSingleton.singleton.GetSceneDifficult(unFinishedPreSceneID); + bool flag5 = sceneChapter != this._SelectedChapter || (long)sceneDifficult != (long)((ulong)this._SelectDifficult); + if (flag5) + { + base.uiBehaviour.m_cbNormal.ForceSetFlag(false); + base.uiBehaviour.m_cbHard.ForceSetFlag(false); + bool flag6 = sceneDifficult == 0; + if (flag6) + { + base.uiBehaviour.m_cbNormal.bChecked = true; + this.OnSwitchDifficult(base.uiBehaviour.m_Normal); + } + else + { + base.uiBehaviour.m_cbHard.bChecked = true; + this.OnSwitchDifficult(base.uiBehaviour.m_Hard); + } + this._SelectDifficult = (uint)sceneDifficult; + this._SelectedChapter = sceneChapter; + } + this._SetupDetailFrame((uint)unFinishedPreSceneID); + } + else + { + int sceneChapter2 = XSingleton.singleton.GetSceneChapter(unFinishedPreSceneID); + int sceneDifficult2 = XSingleton.singleton.GetSceneDifficult(unFinishedPreSceneID); + bool flag7 = sceneChapter2 != this._SelectedChapter || (long)sceneDifficult2 != (long)((ulong)this._SelectDifficult); + if (flag7) + { + IXUICheckBox ixuicheckBox = base.uiBehaviour.m_Normal.gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + IXUICheckBox ixuicheckBox2 = base.uiBehaviour.m_Hard.gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.bChecked = false; + ixuicheckBox2.bChecked = false; + bool flag8 = sceneDifficult2 == 0; + if (flag8) + { + ixuicheckBox.bChecked = true; + this.OnSwitchDifficult(base.uiBehaviour.m_Normal); + } + else + { + ixuicheckBox2.bChecked = true; + this.OnSwitchDifficult(base.uiBehaviour.m_Hard); + } + this._SelectDifficult = (uint)sceneDifficult2; + this._SelectedChapter = sceneChapter2; + } + } + } + break; + } + } + } + + protected void SetupBossAvatar(int chapter, uint difficult, GameObject frame) + { + bool flag = this.bossDummy != null; + if (flag) + { + XSingleton.singleton.EnableCommonDummy(this.bossDummy, null, false); + } + List list = ListPool.Get(); + XSingleton.singleton.GetSceneListByChapter(chapter, list); + bool flag2 = list.Count == 0; + if (flag2) + { + ListPool.Release(list); + } + else + { + list.Sort(); + bool flag3 = list.Count == 0; + if (!flag3) + { + uint sceneID = list[list.Count - 1]; + bool flag4 = !this._isShowBossAvatar; + if (!flag4) + { + int rank = XSingleton.singleton.GetRank((int)sceneID); + bool flag5 = rank >= 0; + if (flag5) + { + ListPool.Release(list); + } + else + { + bool flag6 = rank < 0 && list.Count > 1; + if (flag6) + { + bool flag7 = list.Count < 2; + if (flag7) + { + return; + } + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + uint sceneID2 = list[list.Count - 2]; + int rank2 = XSingleton.singleton.GetRank((int)sceneID2); + bool flag8 = rank2 > 0 && xlevelDocument.CanLevelOpen(sceneID) == SceneRefuseReason.Admit; + if (flag8) + { + ListPool.Release(list); + return; + } + } + ListPool.Release(list); + Transform transform = frame.transform.Find("Levels"); + Transform child = transform.GetChild(transform.childCount - 1); + bool flag9 = child.gameObject.name.StartsWith("chest"); + if (flag9) + { + child = transform.GetChild(transform.childCount - 2); + } + IUIDummy iuidummy = child.Find("Snapshot").GetComponent("UIDummy") as IUIDummy; + Vector3 localPosition = iuidummy.transform.localPosition; + localPosition.z = -100f; + iuidummy.transform.localPosition = localPosition; + XChapter.RowData chapter2 = XSingleton.singleton.GetChapter(chapter); + bool flag10 = chapter2 != null; + if (flag10) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID((uint)chapter2.BossID); + bool flag11 = byID == null; + if (!flag11) + { + this.bossDummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, byID.PresentID, iuidummy, this.bossDummy, 1f); + } + } + else + { + XSingleton.singleton.AddErrorLog(string.Format("error chapterId = {0}", chapter), null, null, null, null, null); + } + } + } + } + } + } + + public void SetupChapterImage() + { + base.uiBehaviour.m_ScenePool.ReturnAll(true); + base.uiBehaviour.m_SceneFramePool.ReturnAll(false); + this.SceneDic.Clear(); + this._MainFrame = null; + this._LeftFrame = null; + this._RightFrame = null; + this._bLevelIsMoving = false; + this._MainFrame = this.GetLevelFrame(); + base.uiBehaviour.m_LevelTween.gameObject.transform.Find("LevelFramePanel").localPosition = Vector3.zero; + this._MainFrame.transform.localPosition = Vector3.zero; + this._MainFrame.name = string.Format("chapter{0}", this._SelectedChapter); + this._ChapterRank = 0; + this._ChapterTotalRank = 0; + this._FirstNoRankScene = 0u; + this.SetupChapterBaseImage(this._SelectedChapter, this._SelectDifficult, this._MainFrame); + this.SetupChapterExInfo(); + bool bAutoSelect = this._bAutoSelect; + if (bAutoSelect) + { + bool flag = this._SelectScene > 0u; + if (flag) + { + this._SetupDetailFrame(this._SelectScene); + } + this._bAutoSelect = false; + } + } + + protected void SetupLeftChapterImage() + { + int previousChapter = XSingleton.singleton.GetPreviousChapter(this._SelectedChapter); + bool flag = previousChapter == 0; + if (!flag) + { + bool flag2 = this._LeftFrame == null; + if (flag2) + { + this._LeftFrame = this.GetLevelFrame(); + } + bool flag3 = this._LeftFrame == null; + if (flag3) + { + XSingleton.singleton.AddGreenLog("SetupLeftChapterImage,_LeftFrame is null!", null, null, null, null, null); + } + else + { + bool flag4 = this._MainFrame == null; + if (flag4) + { + XSingleton.singleton.AddGreenLog("SetupLeftChapterImage,_MainFrame is null!", null, null, null, null, null); + } + else + { + this._LeftFrame.transform.localPosition = this._MainFrame.transform.localPosition + new Vector3(-1136f, 0f); + this._LeftFrame.name = "chapter" + previousChapter; + this.SetupChapterBaseImage(previousChapter, this._SelectDifficult, this._LeftFrame); + } + } + } + } + + protected void SetupRightChapterImage() + { + int nextChapter = XSingleton.singleton.GetNextChapter(this._SelectedChapter); + bool flag = nextChapter == this._SelectedChapter; + if (!flag) + { + int playerLastChapter = XSingleton.singleton.GetPlayerLastChapter(this._SelectDifficult); + bool flag2 = nextChapter > playerLastChapter; + if (!flag2) + { + bool flag3 = this._RightFrame == null; + if (flag3) + { + this._RightFrame = this.GetLevelFrame(); + } + bool flag4 = this._RightFrame == null; + if (flag4) + { + XSingleton.singleton.AddGreenLog("SetupRightChapterImage,_RightFrame is null!", null, null, null, null, null); + } + else + { + bool flag5 = this._MainFrame == null; + if (flag5) + { + XSingleton.singleton.AddGreenLog("SetupRightChapterImage,_MainFrame is null!", null, null, null, null, null); + } + else + { + this._RightFrame.transform.localPosition = this._MainFrame.transform.localPosition + new Vector3(1136f, 0f, 0f); + this._RightFrame.name = "chapter" + nextChapter; + this.SetupChapterBaseImage(nextChapter, this._SelectDifficult, this._RightFrame); + } + } + } + } + } + + protected void SetupLevelChest(GameObject level, uint sceneID, int dropID, int rank) + { + IXUISprite ixuisprite = level.transform.Find("LevelPic").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = level.transform.Find("Star1").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = level.transform.Find("Star2").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = level.transform.Find("Star3").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = level.transform.Find("TaskHint").gameObject; + IXUISprite ixuisprite5 = level.transform.Find("Box").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite6 = level.transform.Find("BoxFx").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = level.transform.Find("Hint").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite7 = level.transform.Find("SprBtn").GetComponent("XUISprite") as IXUISprite; + ixuisprite7.SetGrey(rank > 0); + ixuisprite7.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSceneChestClicked)); + ixuisprite7.ID = (ulong)sceneID; + ixuisprite6.gameObject.SetActive(false); + bool flag = this._SelectDifficult == 0u; + if (flag) + { + ixuisprite.SetSprite("gk_0"); + } + else + { + ixuisprite.SetSprite("gk_1"); + } + ixuisprite2.gameObject.SetActive(false); + ixuisprite3.gameObject.SetActive(false); + ixuisprite4.gameObject.SetActive(false); + gameObject.gameObject.SetActive(false); + ixuilabel.gameObject.SetActive(false); + ixuisprite5.gameObject.SetActive(true); + ixuisprite5.ID = (ulong)sceneID; + } + + public void SetupChangeChapterUI() + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + int previousChapter = XSingleton.singleton.GetPreviousChapter(this._SelectedChapter); + bool flag = previousChapter > 0; + if (flag) + { + base.uiBehaviour.m_Left.gameObject.SetActive(true); + GameObject gameObject = base.uiBehaviour.m_Left.gameObject.transform.Find("RedPoint").gameObject; + bool flag2 = xlevelDocument.HasChapterRedpoint(previousChapter); + if (flag2) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + } + else + { + base.uiBehaviour.m_Left.gameObject.SetActive(false); + } + int nextChapter = XSingleton.singleton.GetNextChapter(this._SelectedChapter); + int playerLastChapter = XSingleton.singleton.GetPlayerLastChapter(this._SelectDifficult); + bool flag3 = nextChapter != this._SelectedChapter && playerLastChapter >= nextChapter; + if (flag3) + { + base.uiBehaviour.m_Right.gameObject.SetActive(true); + GameObject gameObject2 = base.uiBehaviour.m_Right.gameObject.transform.Find("RedPoint").gameObject; + bool flag4 = xlevelDocument.HasChapterRedpoint(nextChapter); + if (flag4) + { + gameObject2.SetActive(true); + } + else + { + gameObject2.SetActive(false); + } + } + else + { + base.uiBehaviour.m_Right.gameObject.SetActive(false); + } + bool flag5 = this._SelectDifficult == 0u; + if (flag5) + { + base.uiBehaviour.m_NormalRedpoint.SetActive(false); + base.uiBehaviour.m_HardRedpoint.SetActive(xlevelDocument.HasDifficultAllChapterRedpoint(1)); + } + else + { + base.uiBehaviour.m_HardRedpoint.SetActive(false); + base.uiBehaviour.m_NormalRedpoint.SetActive(xlevelDocument.HasDifficultAllChapterRedpoint(0)); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("DungeonSelect"); + this.SetupPlayerAvatar(); + this.SetupBossAvatar(this._SelectedChapter, this._SelectDifficult, this._MainFrame); + this.RefreshHardLeftCount(); + } + + public void SetupPlayerAvatar() + { + bool flag = this.main.fx != null; + if (flag) + { + this.main.fx.SetActive(true); + IXUITweenTool ixuitweenTool = this.main.fx.transform.Find("me").GetComponent("XUIPlayTween") as IXUITweenTool; + bool flag2 = ixuitweenTool != null; + if (flag2) + { + ixuitweenTool.StopTween(); + ixuitweenTool.ResetTween(true); + ixuitweenTool.PlayTween(true, -1f); + } + } + } + + public void UpdateSceneEnterTime() + { + bool activeInHierarchy = base.uiBehaviour.m_SceneDetail.activeInHierarchy; + if (activeInHierarchy) + { + this._SetupDetailFrame(this._SelectScene); + this.RefreshHardLeftCount(); + } + } + + public void UpdateSceneBox() + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + Transform transform = this._MainFrame.transform.Find("Levels"); + int childCount = transform.childCount; + for (int i = 0; i < childCount; i++) + { + Transform child = transform.GetChild(i); + bool flag = !child.gameObject.name.StartsWith("chest"); + if (!flag) + { + IXUISprite ixuisprite = child.Find("LevelPic").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = child.Find("Box").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = child.Find("BoxFx").GetComponent("XUISprite") as IXUISprite; + IXUITweenTool ixuitweenTool = child.Find("Box").GetComponent("XUIPlayTween") as IXUITweenTool; + uint num = (uint)ixuisprite2.ID; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(num); + bool flag2 = sceneData != null && sceneData.SceneChest > 0; + if (flag2) + { + ixuisprite2.gameObject.SetActive(true); + bool flag3 = xlevelDocument.SceneBox.Contains(num); + if (flag3) + { + ixuisprite2.spriteName = "xz01_1"; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSceneChestClicked)); + ixuisprite3.gameObject.SetActive(false); + ixuisprite.SetEnabled(true); + ixuitweenTool.ResetTween(true); + } + else + { + ixuisprite2.spriteName = "xz01_0"; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSceneChestClicked)); + int rank = XSingleton.singleton.GetRank((int)num); + bool flag4 = rank <= 0; + if (flag4) + { + ixuisprite3.gameObject.SetActive(false); + ixuisprite.SetEnabled(false); + ixuitweenTool.ResetTween(true); + } + else + { + ixuisprite3.gameObject.SetActive(true); + ixuisprite.SetEnabled(true); + ixuitweenTool.PlayTween(true, -1f); + } + } + } + } + } + this.SetupChangeChapterUI(); + } + + protected void OnSceneChestClicked(IXUISprite sp) + { + base.uiBehaviour.m_BoxFrame.SetActive(true); + base.uiBehaviour.m_BoxFetch.ID = sp.ID; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData((uint)sp.ID); + bool flag = sceneData == null; + if (flag) + { + XSingleton.singleton.AddGreenLog("OnSceneChestClicked sceneData is null", null, null, null, null, null); + } + else + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + base.uiBehaviour.m_BoxRedPoint.SetActive(false); + base.uiBehaviour.m_BoxChest.SetActive(true); + base.uiBehaviour.m_BoxStar.gameObject.SetActive(false); + int rank = XSingleton.singleton.GetRank((int)sp.ID); + bool flag2 = rank <= 0; + if (flag2) + { + base.uiBehaviour.m_BoxFetch.SetEnable(false, false); + base.uiBehaviour.m_BoxFetch.SetCaption(XStringDefineProxy.GetString("SRS_FETCH")); + } + else + { + bool flag3 = xlevelDocument.SceneBox.Contains((uint)sceneData.id); + if (flag3) + { + base.uiBehaviour.m_BoxFetch.SetEnable(false, false); + base.uiBehaviour.m_BoxFetch.SetCaption(XStringDefineProxy.GetString("SRS_FETCHED")); + } + else + { + base.uiBehaviour.m_BoxFetch.SetEnable(true, false); + base.uiBehaviour.m_BoxRedPoint.SetActive(true); + base.uiBehaviour.m_BoxFetch.SetCaption(XStringDefineProxy.GetString("SRS_FETCH")); + } + } + this.SetupBoxReward(sceneData.SceneChest); + base.uiBehaviour.m_BoxFetch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSceneChestBoxFetch)); + } + } + + protected void ReturnLevelFrameToPool(GameObject frame) + { + bool flag = frame == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("ReturnLevelFrameToPool frame is null", null, null, null, null, null); + } + else + { + List list = new List(); + Transform transform = frame.transform.Find("Levels"); + bool flag2 = transform == null; + if (!flag2) + { + for (int i = 0; i < transform.childCount; i++) + { + list.Add(transform.GetChild(i).gameObject); + } + for (int j = 0; j < list.Count; j++) + { + base.uiBehaviour.m_ScenePool.ReturnInstance(list[j], true); + } + base.uiBehaviour.m_SceneFramePool.ReturnInstance(frame, false); + } + } + } + + protected bool OnLevelBgDrag(Vector2 delta) + { + bool flag = delta.x > 0f; + if (flag) + { + this.OnMoveLeft(null); + } + else + { + this.OnMoveRight(null); + } + return true; + } + + protected bool OnMoveLeft(IXUIButton go) + { + bool bLevelIsMoving = this._bLevelIsMoving; + bool result; + if (bLevelIsMoving) + { + result = true; + } + else + { + int previousChapter = XSingleton.singleton.GetPreviousChapter(this._SelectedChapter); + bool flag = previousChapter > 0; + if (flag) + { + this._SelectedChapter = previousChapter; + Vector3 localPosition = base.uiBehaviour.m_LevelTween.gameObject.transform.Find("LevelFramePanel").localPosition; + Vector3 to = localPosition + new Vector3(1136f, 0f); + bool flag2 = base.uiBehaviour.m_LevelTween != null; + if (flag2) + { + this._bLevelIsMoving = true; + } + base.uiBehaviour.m_LevelTween.ResetTweenByGroup(true, 0); + base.uiBehaviour.m_LevelTween.SetPositionTweenPos(1, localPosition, to); + base.uiBehaviour.m_LevelTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnMoveLeftOver)); + base.uiBehaviour.m_LevelTween.PlayTween(true, -1f); + XSingleton.singleton.AddLog("MoveLeft-->> _bLevelIsMoving =" + this._bLevelIsMoving.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + result = true; + } + return result; + } + + protected void OnMoveLeftOver(IXUITweenTool tween) + { + this._bLevelIsMoving = false; + this.ReturnLevelFrameToPool(this._MainFrame); + bool flag = this._RightFrame != null; + if (flag) + { + this.ReturnLevelFrameToPool(this._RightFrame); + } + this._RightFrame = null; + this._MainFrame = this._LeftFrame; + this._LeftFrame = null; + this.main.Copy(ref this.left); + this.left.Clear(); + this.right.Clear(); + this.SetupChapterExInfo(); + XSingleton.singleton.AddLog("MoveLeftOver..... _bLevelIsMoving =" + this._bLevelIsMoving.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + + protected bool OnMoveRight(IXUIButton go) + { + bool bLevelIsMoving = this._bLevelIsMoving; + bool result; + if (bLevelIsMoving) + { + result = true; + } + else + { + int nextChapter = XSingleton.singleton.GetNextChapter(this._SelectedChapter); + int playerLastChapter = XSingleton.singleton.GetPlayerLastChapter(this._SelectDifficult); + bool flag = nextChapter != this._SelectedChapter && playerLastChapter >= nextChapter; + if (flag) + { + this._SelectedChapter = nextChapter; + Vector3 localPosition = base.uiBehaviour.m_LevelTween.gameObject.transform.Find("LevelFramePanel").localPosition; + Vector3 to = localPosition + new Vector3(-1136f, 0f); + bool flag2 = base.uiBehaviour.m_LevelTween != null; + if (flag2) + { + this._bLevelIsMoving = true; + } + base.uiBehaviour.m_LevelTween.ResetTweenByGroup(true, 0); + base.uiBehaviour.m_LevelTween.SetPositionTweenPos(1, localPosition, to); + base.uiBehaviour.m_LevelTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnMoveRightOver)); + base.uiBehaviour.m_LevelTween.PlayTween(true, -1f); + XSingleton.singleton.AddLog("MoveRight-->> _bLevelIsMoving =" + this._bLevelIsMoving.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + result = true; + } + return result; + } + + protected void OnMoveRightOver(IXUITweenTool tween) + { + this._bLevelIsMoving = false; + this.ReturnLevelFrameToPool(this._MainFrame); + bool flag = this._LeftFrame != null; + if (flag) + { + this.ReturnLevelFrameToPool(this._LeftFrame); + } + this._LeftFrame = null; + this._MainFrame = this._RightFrame; + this._RightFrame = null; + this.main.Copy(ref this.right); + this.left.Clear(); + this.right.Clear(); + this.SetupChapterExInfo(); + XSingleton.singleton.AddLog("MoveRightOver..... _bLevelIsMoving =" + this._bLevelIsMoving.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + + protected void SetupChapterExInfo() + { + bool flag = this._MainFrame == null; + if (flag) + { + this._bLevelIsMoving = false; + XSingleton.singleton.AddGreenLog("SetupChapterExInfo,_MainFrame is null!", null, null, null, null, null); + } + else + { + Transform parent = this._MainFrame.transform.Find("me/Effect"); + this.PlayEffect(ref this.m_fx, this.EffectPath, parent); + parent = this._MainFrame.transform.Find("me/Effect/Effect"); + this.PlayEffect(ref this.m_fx1, this.EffectPath1, parent); + this.SetupLeftChapterImage(); + this.SetupRightChapterImage(); + this.SetupPlayerAvatar(); + this.SetupBossAvatar(this._SelectedChapter, this._SelectDifficult, this._MainFrame); + this.SetupChapterBoxProgress(); + this.SetupChangeChapterUI(); + this.UpdateSceneEnterTime(); + this.UpdateSceneBox(); + } + } + + private void PlayEffect(ref XFx fx, string path, Transform parent) + { + bool flag = fx == null; + if (flag) + { + fx = XSingleton.singleton.CreateFx(path, null, true); + } + else + { + fx.SetActive(true); + } + fx.Play(parent, Vector3.zero, Vector3.one, 1f, true, false); + } + + public void SetupChapterBoxProgress() + { + List list = ListPool.Get(); + XSingleton.singleton.GetSceneListByChapter(this._SelectedChapter, list); + bool flag = list.Count == 0; + if (flag) + { + ListPool.Release(list); + } + else + { + list.Sort(); + this._ChapterTotalRank = (this._ChapterRank = 0); + this._FirstNoRankScene = 0u; + for (int i = 0; i < list.Count; i++) + { + uint num = list[i]; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(num); + int num2 = 0; + bool flag2 = sceneData != null; + if (flag2) + { + num2 = XSingleton.singleton.GetRank(sceneData.id); + } + bool flag3 = num2 == -1; + if (flag3) + { + num2 = 0; + } + bool flag4 = sceneData != null; + if (flag4) + { + this._ChapterTotalRank += 3; + this._ChapterRank += num2; + } + bool flag5 = num2 <= 0; + if (flag5) + { + bool flag6 = this._FirstNoRankScene == 0u; + if (flag6) + { + this._FirstNoRankScene = num; + } + } + } + ListPool.Release(list); + base.uiBehaviour.m_Rank.SetText(this._ChapterRank + "/" + this._ChapterTotalRank); + base.uiBehaviour.m_RankProgress.value = (float)this._ChapterRank / (float)this._ChapterTotalRank; + XChapter.RowData chapter = XSingleton.singleton.GetChapter(this._SelectedChapter); + bool flag7 = chapter == null; + if (flag7) + { + XSingleton.singleton.AddErrorLog("SetupChapterBoxProgress chData is null", null, null, null, null, null); + } + else + { + int num3 = 390; + base.uiBehaviour.m_RankBox.FakeReturnAll(); + for (int j = 0; j < chapter.Drop.Count; j++) + { + int num4 = chapter.Drop[j, 0]; + GameObject gameObject = base.uiBehaviour.m_RankBox.FetchGameObject(false); + gameObject.transform.localPosition = base.uiBehaviour.m_RankBox.TplPos + new Vector3((float)(num3 * num4 / this._ChapterTotalRank), 0f); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Box").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Star").GetComponent("XUILabel") as IXUILabel; + IXUITweenTool ixuitweenTool = gameObject.transform.Find("Box").GetComponent("XUIPlayTween") as IXUITweenTool; + IXUISprite ixuisprite3 = gameObject.transform.Find("Fx").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(num4.ToString()); + ixuisprite2.ID = (ulong)((long)j); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChapterBoxClicked)); + ixuisprite.ID = (ulong)((long)j); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChapterBoxClicked)); + bool flag8 = this._ChapterRank >= num4; + if (flag8) + { + bool flag9 = XSingleton.singleton.HasChapterBoxFetched(this._SelectedChapter, j); + if (flag9) + { + ixuisprite2.spriteName = "xz02_1"; + ixuisprite3.SetAlpha(0f); + ixuitweenTool.ResetTween(true); + } + else + { + ixuisprite2.spriteName = "xz02_0"; + ixuisprite3.SetAlpha(1f); + ixuitweenTool.PlayTween(true, -1f); + } + } + else + { + ixuisprite2.spriteName = "xz02_0"; + ixuisprite3.SetAlpha(0f); + ixuitweenTool.ResetTween(true); + } + } + base.uiBehaviour.m_RankBox.ActualReturnAll(false); + } + } + } + + protected void OnChapterBoxClicked(IXUISprite sp) + { + bool bLevelIsMoving = this._bLevelIsMoving; + if (!bLevelIsMoving) + { + base.uiBehaviour.m_BoxFrame.SetActive(true); + int index = (int)sp.ID; + base.uiBehaviour.m_BoxFetch.ID = sp.ID; + base.uiBehaviour.m_BoxRedPoint.SetActive(false); + XChapter.RowData chapter = XSingleton.singleton.GetChapter(this._SelectedChapter); + bool flag = chapter == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("OnChapterBoxClicked chdata is null", null, null, null, null, null); + } + else + { + base.uiBehaviour.m_BoxChest.SetActive(false); + base.uiBehaviour.m_BoxStar.gameObject.SetActive(true); + base.uiBehaviour.m_BoxStar.SetText(chapter.Drop[index, 0] + "/" + this._ChapterTotalRank); + bool flag2 = this._ChapterRank < chapter.Drop[index, 0]; + if (flag2) + { + base.uiBehaviour.m_BoxFetch.SetEnable(false, false); + base.uiBehaviour.m_BoxFetch.SetCaption(XStringDefineProxy.GetString("SRS_FETCH")); + } + else + { + bool flag3 = XSingleton.singleton.HasChapterBoxFetched(this._SelectedChapter, index); + if (flag3) + { + base.uiBehaviour.m_BoxFetch.SetEnable(false, false); + base.uiBehaviour.m_BoxFetch.SetCaption(XStringDefineProxy.GetString("SRS_FETCHED")); + } + else + { + base.uiBehaviour.m_BoxFetch.SetEnable(true, false); + base.uiBehaviour.m_BoxRedPoint.SetActive(true); + base.uiBehaviour.m_BoxFetch.SetCaption(XStringDefineProxy.GetString("SRS_FETCH")); + } + } + this.SetupBoxReward(chapter.Drop[index, 1]); + base.uiBehaviour.m_BoxFetch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnChapterBoxFetch)); + } + } + } + + protected void SetupBoxReward(int dropID) + { + base.uiBehaviour.m_BoxRewardPool.ReturnAll(false); + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + List dropData = xlevelDocument.GetDropData(dropID); + bool flag = dropData != null; + if (flag) + { + int num = (dropData.Count + 1) / 2 - 1; + int num2 = (int)((float)((dropData.Count + 1) % 2) * base.uiBehaviour.m_BoxRewardPool.TplPos.x); + Vector3 vector; + vector = new Vector3((float)(num2 - num * base.uiBehaviour.m_BoxRewardPool.TplWidth), base.uiBehaviour.m_BoxRewardPool.TplPos.y); + for (int i = 0; i < dropData.Count; i++) + { + XDropData xdropData = dropData[i]; + GameObject gameObject = base.uiBehaviour.m_BoxRewardPool.FetchGameObject(false); + gameObject.transform.localPosition = vector + new Vector3((float)(i * base.uiBehaviour.m_BoxRewardPool.TplWidth), 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, xdropData.itemID, xdropData.count, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)xdropData.itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + + protected void OnChapterBoxBgClick(IXUISprite sp) + { + base.uiBehaviour.m_BoxFrame.SetActive(false); + } + + protected bool OnChapterBoxFetch(IXUIButton go) + { + RpcC2G_FetchChapterChest rpcC2G_FetchChapterChest = new RpcC2G_FetchChapterChest(); + rpcC2G_FetchChapterChest.oArg.chapterID = this._SelectedChapter; + rpcC2G_FetchChapterChest.oArg.chestID = (int)go.ID; + XSingleton.singleton.Send(rpcC2G_FetchChapterChest); + return true; + } + + protected bool OnSceneChestBoxFetch(IXUIButton go) + { + RpcC2G_OpenSceneChest rpcC2G_OpenSceneChest = new RpcC2G_OpenSceneChest(); + rpcC2G_OpenSceneChest.oArg.sceneID = (uint)go.ID; + XSingleton.singleton.Send(rpcC2G_OpenSceneChest); + return true; + } + + public void OnFetchSceneChestSucc() + { + base.uiBehaviour.m_BoxFrame.SetActive(false); + this.UpdateSceneBox(); + } + + public void OnFetchChapterBoxSucc() + { + base.uiBehaviour.m_BoxFrame.SetActive(false); + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + xlevelDocument.RefreshRedPoint(); + this.SetupChapterBoxProgress(); + } + + protected void _SetupDetailFrame(uint sceneID) + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + XMainInterfaceDocument xmainInterfaceDocument = XSingleton.singleton.Doc.GetXComponent(XMainInterfaceDocument.uuID) as XMainInterfaceDocument; + base.uiBehaviour.m_SceneDetail.gameObject.SetActive(true); + this._SceneRemainTime = 9999u; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneID); + int rank = XSingleton.singleton.GetRank((int)sceneID); + uint sceneDifficult = (uint)XSingleton.singleton.GetSceneDifficult((int)sceneID); + bool flag = sceneData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("_SetupDetailFrame sceneData is null", null, null, null, null, null); + } + else + { + base.uiBehaviour.m_SceneRecommendHint.SetVisible(0 < sceneData.RecommendHint.Length); + base.uiBehaviour.m_SceneRecommendHint.SetText(string.Format(" {0}", sceneData.RecommendHint)); + bool flag2 = sceneDifficult == 0u; + if (flag2) + { + base.uiBehaviour.m_SceneNormal.SetActive(true); + base.uiBehaviour.m_SceneHard.SetActive(false); + base.uiBehaviour.m_HardLeftCountGo1.SetActive(false); + base.uiBehaviour.m_SceneSoloBattle.gameObject.SetActive(false); + base.uiBehaviour.m_SceneTeamBattle.gameObject.SetActive(false); + base.uiBehaviour.m_SceneGoBattle.gameObject.SetActive(true); + } + else + { + base.uiBehaviour.m_SceneNormal.SetActive(false); + base.uiBehaviour.m_SceneHard.SetActive(true); + base.uiBehaviour.m_HardLeftCountGo1.SetActive(true); + base.uiBehaviour.m_SceneGoBattle.gameObject.SetActive(false); + bool flag3 = rank <= 0; + if (flag3) + { + base.uiBehaviour.m_SceneSoloBattle.gameObject.SetActive(false); + base.uiBehaviour.m_SceneTeamBattle.gameObject.SetActive(true); + base.uiBehaviour.m_SceneTeamBattle.gameObject.transform.localPosition = base.uiBehaviour.m_SceneGoBattle.gameObject.transform.localPosition; + } + else + { + base.uiBehaviour.m_SceneSoloBattle.gameObject.SetActive(false); + base.uiBehaviour.m_SceneTeamBattle.gameObject.SetActive(true); + base.uiBehaviour.m_SceneTeamBattle.gameObject.transform.localPosition = base.uiBehaviour.m_SceneTeamBattlePos; + } + } + base.uiBehaviour.m_SceneName.SetText(sceneData.Comment); + int num = -1; + for (int i = 0; i < XLevelRewardDocument.Table.Table.Length; i++) + { + bool flag4 = XLevelRewardDocument.Table.Table[i].scendid == sceneID; + if (flag4) + { + num = i; + break; + } + } + bool flag5 = num >= 0; + if (flag5) + { + base.uiBehaviour.m_SceneStarCond[1].SetText(LevelRewardGerenalHandler.GetReqText(XLevelRewardDocument.Table.Table[num], 1)); + base.uiBehaviour.m_SceneStarCond[2].SetText(LevelRewardGerenalHandler.GetReqText(XLevelRewardDocument.Table.Table[num], 2)); + } + for (int j = 0; j < 3; j++) + { + bool rankDetail = XSingleton.singleton.GetRankDetail((int)sceneID, j); + if (rankDetail) + { + base.uiBehaviour.m_SceneStar[j].SetColor(Color.white); + } + else + { + base.uiBehaviour.m_SceneStar[j].SetColor(Color.grey); + } + } + base.uiBehaviour.m_SceneDropPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_SceneDropPool.TplPos; + int tplWidth = base.uiBehaviour.m_SceneDropPool.TplWidth; + int tplHeight = base.uiBehaviour.m_SceneDropPool.TplHeight; + bool flag6 = XSingleton.singleton.XPlayerData != null; + if (flag6) + { + int num2 = (int)(xlevelDocument.GetExpAddition((int)XSingleton.singleton.XPlayerData.Level) * (double)sceneData.Exp); + base.uiBehaviour.m_DropExpLab.SetText(num2.ToString()); + } + bool flag7 = sceneData.Money == 0; + if (flag7) + { + base.uiBehaviour.m_DropExpLab1.gameObject.transform.parent.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_DropExpLab1.gameObject.transform.parent.gameObject.SetActive(true); + base.uiBehaviour.m_DropExpLab1.SetText(sceneData.Money.ToString()); + } + int num3 = (sceneData.ViewableDropList != null) ? sceneData.ViewableDropList.Length : 0; + int num4 = 6; + int num5 = Mathf.Max(num3, num4); + for (int k = 0; k < num5; k++) + { + int num6 = k; + GameObject gameObject = base.uiBehaviour.m_SceneDropPool.FetchGameObject(false); + gameObject.name = k.ToString(); + gameObject.transform.localPosition = tplPos + new Vector3((float)(tplWidth * num6), 0f, 0f); + gameObject.transform.localScale = Vector3.one; + GameObject gameObject2 = gameObject.transform.Find("Item").gameObject; + bool flag8 = k >= num3 && k < num4; + if (flag8) + { + gameObject2.SetActive(false); + } + else + { + gameObject2.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, sceneData.ViewableDropList[k], 0, false); + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)sceneData.ViewableDropList[k]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemIcon)); + } + } + int playerPPT = xmainInterfaceDocument.GetPlayerPPT(); + string difficulty = XLevelDocument.GetDifficulty(playerPPT, sceneData.RecommendPower); + base.uiBehaviour.m_SceneHint.SetText(difficulty); + base.uiBehaviour.m_SceneRecommendPPT.SetText(string.Format("{0}{1}[-]", difficulty.Substring(0, 8), sceneData.RecommendPower)); + base.uiBehaviour.m_SceneMyPPT.SetText(playerPPT.ToString()); + bool flag9 = this._SelectDifficult == 1u; + if (flag9) + { + bool flag10 = playerPPT >= sceneData.SweepNeedPPT; + string arg; + if (flag10) + { + arg = "[9ce500]"; + } + else + { + arg = "[e30000]"; + } + bool flag11 = XSingleton.singleton.XPlayerData != null; + if (flag11) + { + bool flag12 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.GetInt("SweepPPTLevelLimit")); + if (flag12) + { + base.uiBehaviour.m_SweepPPT.gameObject.SetActive(false); + base.uiBehaviour.m_SweepPPTName.SetActive(false); + } + else + { + base.uiBehaviour.m_SweepPPT.gameObject.SetActive(true); + base.uiBehaviour.m_SweepPPT.SetText(string.Format("{0}{1}[-]", arg, sceneData.SweepNeedPPT)); + base.uiBehaviour.m_SweepPPTName.SetActive(true); + base.uiBehaviour.m_SweepTicketLab.SetText(XBagDocument.BagDoc.GetItemCount(XSingleton.singleton.GetInt("SweepTicketId")).ToString()); + } + } + base.uiBehaviour.m_SceneQuick10Lab.SetText(string.Format(XStringDefineProxy.GetString("SWEEP_TITLE"), 5)); + } + else + { + base.uiBehaviour.m_SweepPPT.SetText(""); + base.uiBehaviour.m_SweepPPTName.SetActive(false); + base.uiBehaviour.m_SceneQuick10Lab.SetText(string.Format(XStringDefineProxy.GetString("SWEEP_TITLE"), 10)); + } + uint num7 = sceneData.DayLimitGroupID; + bool flag13 = num7 == 0u; + if (flag13) + { + num7 = sceneID; + } + uint num8 = 0u; + bool flag14 = xlevelDocument.SceneDayEnter.TryGetValue(num7, out num8); + if (flag14) + { + this._SceneRemainTime = (uint)sceneData.DayLimit - num8; + bool flag15 = (long)sceneData.DayLimit - (long)((ulong)num8) == 0L; + if (flag15) + { + base.uiBehaviour.m_SceneQuick1.gameObject.SetActive(false); + base.uiBehaviour.m_SceneQuick10.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_SceneQuick1.gameObject.SetActive(true); + base.uiBehaviour.m_SceneQuick10.gameObject.SetActive(true); + } + } + else + { + base.uiBehaviour.m_SceneQuick1.gameObject.SetActive(true); + base.uiBehaviour.m_SceneQuick10.gameObject.SetActive(true); + } + bool flag16 = rank < 3; + if (flag16) + { + base.uiBehaviour.m_SceneQuick1.gameObject.SetActive(false); + base.uiBehaviour.m_SceneQuick10.gameObject.SetActive(false); + base.uiBehaviour.m_SweepTicketGo.SetActive(false); + base.uiBehaviour.m_SceneFirstSSS.SetActive(true); + string text = ""; + for (int l = 0; l < sceneData.FirstSSS.Count; l++) + { + text += XLabelSymbolHelper.FormatCostWithIcon((int)sceneData.FirstSSS[l, 1], (ItemEnum)sceneData.FirstSSS[l, 0]); + } + base.uiBehaviour.m_SceneFirstSSSReward.InputText = text; + } + else + { + bool flag17 = this._SelectDifficult == 0u; + if (flag17) + { + base.uiBehaviour.m_SceneQuick1.gameObject.SetActive(true); + base.uiBehaviour.m_SceneQuick10.gameObject.SetActive(true); + base.uiBehaviour.m_SweepTicketGo.SetActive(false); + } + else + { + bool flag18 = XSingleton.singleton.XPlayerData != null; + if (flag18) + { + bool flag19 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.GetInt("SweepPPTLevelLimit")); + if (flag19) + { + base.uiBehaviour.m_SceneQuick1.gameObject.SetActive(false); + base.uiBehaviour.m_SceneQuick10.gameObject.SetActive(false); + base.uiBehaviour.m_SweepTicketGo.SetActive(false); + } + else + { + base.uiBehaviour.m_SceneQuick1.gameObject.SetActive(true); + base.uiBehaviour.m_SceneQuick10.gameObject.SetActive(true); + base.uiBehaviour.m_SweepTicketGo.SetActive(true); + } + } + } + base.uiBehaviour.m_SceneFirstSSS.SetActive(false); + } + base.uiBehaviour.m_Cost.InputText = XLabelSymbolHelper.FormatCostWithIcon(sceneData.FatigueCost[0, 1], ItemEnum.FATIGUE); + base.uiBehaviour.m_SceneSoloBattleCost.InputText = XLabelSymbolHelper.FormatCostWithIcon(sceneData.FatigueCost[0, 1], ItemEnum.FATIGUE); + base.uiBehaviour.m_SceneTeamBattleCost.InputText = XLabelSymbolHelper.FormatCostWithIcon(sceneData.FatigueCost[0, 1], ItemEnum.FATIGUE); + } + } + + private void OnClickItemIcon(IXUISprite spr) + { + XItem mainItem = XBagDocument.MakeXItem((int)spr.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, false, 0u); + } + + private void OnSceneSelected(IXUISprite sp) + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + this._SelectScene = (uint)sp.ID; + bool flag = this._FirstNoRankScene > 0u; + if (flag) + { + bool flag2 = this._SelectScene == this._FirstNoRankScene; + if (flag2) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._SelectScene); + bool flag3 = sceneData == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("OnSceneSelected sceneData is null", null, null, null, null, null); + return; + } + SceneRefuseReason sceneRefuseReason = xlevelDocument.CanLevelOpen(this._SelectScene); + bool flag4 = sceneRefuseReason == SceneRefuseReason.PreTask_Notfinish; + if (flag4) + { + base.uiBehaviour.m_MainHintText.SetText(string.Format(XStringDefineProxy.GetString("LEVEl_REQUIRE_TASK"), sceneData.RequiredLevel)); + base.uiBehaviour.m_MainHint.PlayTween(true, -1f); + return; + } + bool flag5 = sceneRefuseReason == SceneRefuseReason.PreScene_Notfinish; + if (flag5) + { + int unFinishedPreSceneID = xlevelDocument.GetUnFinishedPreSceneID(sceneData); + SceneTable.RowData sceneData2 = XSingleton.singleton.GetSceneData((uint)unFinishedPreSceneID); + bool flag6 = sceneData2 != null; + if (flag6) + { + base.uiBehaviour.m_MainHintText.SetText(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_PRELEVEL"), sceneData2.Comment)); + } + base.uiBehaviour.m_MainHint.PlayTween(true, -1f); + return; + } + bool flag7 = sceneRefuseReason == SceneRefuseReason.Level_NotEnough; + if (flag7) + { + base.uiBehaviour.m_MainHintText.SetText(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL"), sceneData.RequiredLevel)); + base.uiBehaviour.m_MainHint.PlayTween(true, -1f); + return; + } + bool flag8 = sceneRefuseReason == SceneRefuseReason.ReachLimitTimes; + if (flag8) + { + base.uiBehaviour.m_MainHintText.SetText(XStringDefineProxy.GetString("LEVEL_REACH_LIMIT_TIMES")); + base.uiBehaviour.m_MainHint.PlayTween(false, -1f); + return; + } + } + bool flag9 = this._SelectScene > this._FirstNoRankScene; + if (flag9) + { + base.uiBehaviour.m_MainHintText.SetText(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_DEFAULT"), new object[0])); + base.uiBehaviour.m_MainHint.PlayTween(true, -1f); + return; + } + } + this._SetupDetailFrame(this._SelectScene); + } + + public void OnPlayerLevelUp() + { + bool flag = base.IsVisible(); + if (flag) + { + this.SetupChapterImage(); + } + } + + public void OnGotSweepRes() + { + bool flag = base.IsVisible(); + if (flag) + { + this.SetupChapterImage(); + } + } + + public bool OnDetailClose(IXUIButton go) + { + base.uiBehaviour.m_SceneDetail.SetActive(false); + return true; + } + + public void RefreshHardLeftCount() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int dayCount = specificDocument.GetDayCount(TeamLevelType.TeamLevelAbyss, null); + int dayMaxCount = specificDocument.GetDayMaxCount(TeamLevelType.TeamLevelAbyss, null); + string text = string.Format("{0}/{1}", dayCount, dayMaxCount); + base.uiBehaviour.m_HardLeftCount1.SetText(text); + bool flag = this._welfareDoc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + if (flag) + { + int num = 0; + PayMemberTable.RowData memberPrivilegeConfig = this._welfareDoc.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Adventurer); + bool flag2 = memberPrivilegeConfig != null; + if (flag2) + { + num = memberPrivilegeConfig.AbyssCount; + } + int num2 = 0; + bool flag3 = this._welfareDoc.PayMemberPrivilege != null; + if (flag3) + { + num2 = this._welfareDoc.PayMemberPrivilege.usedAbyssCount; + } + bool flag4 = num2 >= num; + if (flag4) + { + base.uiBehaviour.m_HardLeftCount0.SetText(string.Format("{0}/{1}", dayCount, dayMaxCount)); + base.uiBehaviour.m_HardLeftCount1.SetText(string.Format("{0}/{1}", dayCount, dayMaxCount)); + } + else + { + base.uiBehaviour.m_HardLeftCount0.SetText(string.Format("[ffb400][c]{0}[/c][-]/{1}", dayCount, dayMaxCount)); + base.uiBehaviour.m_HardLeftCount1.SetText(string.Format("[ffb400][c]{0}[/c][-]/{1}", dayCount, dayMaxCount)); + } + } + else + { + base.uiBehaviour.m_HardLeftCount0.SetText(string.Format("{0}/{1}", dayCount, dayMaxCount)); + base.uiBehaviour.m_HardLeftCount1.SetText(string.Format("{0}/{1}", dayCount, dayMaxCount)); + } + } + + private void _OnAddHardCountClicked(IXUISprite iSp) + { + DlgBase.singleton.ActiveShow(TeamLevelType.TeamLevelAbyss); + } + + private bool OnShopBtnClick(IXUIButton btn) + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("AbyssTeamShopLevel", true); + List intList = XSingleton.singleton.GetIntList("AbyssTeamShopType"); + int num = 0; + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + num = (int)XSingleton.singleton.XPlayerData.Level; + } + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag2 = num >= sequenceList[i, 0] && num <= sequenceList[i, 1]; + if (flag2) + { + XSysDefine xsysDefine = (XSysDefine)(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Mall_MystShop) + intList[i]); + bool flag3 = XSingleton.singleton.IsSystemOpened(xsysDefine); + bool result; + if (flag3) + { + DlgBase.singleton.ShowShopSystem(xsysDefine, 0UL); + result = true; + } + else + { + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(XFastEnumIntEqualityComparer.ToInt(xsysDefine)); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("SHOP_OPEN_LEVEL"), sysOpenLevel), "fece00"); + result = false; + } + return result; + } + } + XSingleton.singleton.AddErrorLog("Can't find player level state from golbalconfig by AbyssTeamShop. level = ", num.ToString(), null, null, null, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DungeonSelect.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DungeonSelect.cs.meta new file mode 100644 index 00000000..2f995017 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DungeonSelect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 221f66d310983b749a204191c1ba59e0 +timeCreated: 1611403419 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs new file mode 100644 index 00000000..f69ef925 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs @@ -0,0 +1,238 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class DungeonSelectBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUISprite m_Normal; + + public IXUISprite m_Hard; + + public IXUICheckBox m_cbNormal; + + public IXUICheckBox m_cbHard; + + public GameObject m_NormalRedpoint; + + public GameObject m_HardRedpoint; + + public GameObject m_NormalBg; + + public GameObject m_HardBg; + + public BoxCollider m_hardBox; + + public BoxCollider m_normalBox; + + public IXUISprite m_LevelBg; + + public IXUITweenTool m_LevelTween; + + public XUIPool m_SceneFramePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ScenePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_Rank; + + public IXUIProgress m_RankProgress; + + public XUIPool m_RankBox = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_BoxFrame; + + public IXUISprite m_BoxFrameBg; + + public GameObject m_BoxChest; + + public IXUILabel m_BoxStar; + + public XUIPool m_BoxRewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_BoxFetch; + + public GameObject m_BoxRedPoint; + + public GameObject m_SceneDetail; + + public GameObject m_SceneNormal; + + public GameObject m_SceneHard; + + public IXUILabel m_SceneName; + + public IXUIButton m_SceneClose; + + public IXUILabel[] m_SceneStarCond = new IXUILabel[3]; + + public IXUISprite[] m_SceneStar = new IXUISprite[3]; + + public XUIPool m_SceneDropPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_SceneHint; + + public IXUILabel m_SceneMyPPT; + + public IXUILabel m_SceneRecommendPPT; + + public IXUILabel m_SweepPPT; + + public GameObject m_SweepPPTName; + + public IXUILabel m_SweepTicketLab; + + public IXUISprite m_addTicketSpr; + + public GameObject m_SweepTicketGo; + + public IXUIButton m_SceneGoBattle; + + public IXUIButton m_SceneSoloBattle; + + public IXUIButton m_SceneTeamBattle; + + public IXUILabelSymbol m_SceneSoloBattleCost; + + public IXUILabelSymbol m_SceneTeamBattleCost; + + public IXUIButton m_SceneQuick1; + + public IXUIButton m_SceneQuick10; + + public IXUILabel m_SceneQuick10Lab; + + public IXUILabel m_DropExpLab; + + public IXUILabel m_DropExpLab1; + + public GameObject m_SceneFirstSSS; + + public IXUILabelSymbol m_SceneFirstSSSReward; + + public IXUILabelSymbol m_Cost; + + public IXUILabel m_SceneRecommendHint; + + public Vector3 m_SceneTeamBattlePos; + + public IXUIButton m_Left; + + public IXUIButton m_Right; + + public IXUITweenTool m_MainHint; + + public IXUILabel m_MainHintText; + + public GameObject m_HardLeftCountGo0; + + public GameObject m_HardLeftCountGo1; + + public IXUILabel m_HardLeftCount0; + + public IXUILabel m_HardLeftCount1; + + public IXUISprite m_BtnAddHardLeftCount0; + + public IXUISprite m_BtnAddHardLeftCount1; + + public IXUISprite m_PrerogativeSpr; + + public IXUILabel m_PrerogativeLab; + + public IXUISprite m_PrerogativeBg; + + public IXUIButton m_ShopBtn; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Normal = (base.transform.Find("Bg/Normal").GetComponent("XUISprite") as IXUISprite); + this.m_Hard = (base.transform.Find("Bg/Hard").GetComponent("XUISprite") as IXUISprite); + this.m_NormalRedpoint = base.transform.Find("Bg/Normal/RedPoint").gameObject; + this.m_HardRedpoint = base.transform.Find("Bg/Hard/RedPoint").gameObject; + this.m_cbNormal = (this.m_Normal.gameObject.GetComponent("XUICheckBox") as IXUICheckBox); + this.m_cbHard = (this.m_Hard.gameObject.GetComponent("XUICheckBox") as IXUICheckBox); + this.m_normalBox = base.transform.Find("Bg/Normal").GetComponent(); + this.m_hardBox = base.transform.Find("Bg/Hard").GetComponent(); + Transform transform = base.transform.Find("Bg/PlayTween"); + this.m_LevelTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_LevelBg = (transform.GetComponent("XUISprite") as IXUISprite); + Transform transform2 = base.transform.Find("Bg/PlayTween/LevelFramePanel/LevelFrame/LevelTpl"); + this.m_ScenePool.SetupPool(transform.Find("LevelFramePanel").gameObject, transform2.gameObject, 20u, false); + transform2 = base.transform.Find("Bg/PlayTween/LevelFramePanel/LevelFrame"); + this.m_SceneFramePool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 3u, false); + this.m_NormalBg = base.transform.Find("Bg/NormalBg").gameObject; + this.m_HardBg = base.transform.Find("Bg/HardBg").gameObject; + this.m_Rank = (base.transform.Find("Bg/StarBar/Text").GetComponent("XUILabel") as IXUILabel); + this.m_RankProgress = (base.transform.Find("Bg/StarBar").GetComponent("XUIProgress") as IXUIProgress); + transform2 = base.transform.Find("Bg/StarBar/Reward"); + this.m_RankBox.SetupPool(transform2.parent.gameObject, transform2.gameObject, 3u, false); + this.m_BoxFrame = base.transform.Find("Bg/BoxFrame").gameObject; + this.m_BoxFrame.SetActive(false); + this.m_BoxFrameBg = (base.transform.Find("Bg/BoxFrame/Bg").GetComponent("XUISprite") as IXUISprite); + this.m_BoxChest = base.transform.Find("Bg/BoxFrame/T1").gameObject; + this.m_BoxStar = (base.transform.Find("Bg/BoxFrame/Text").GetComponent("XUILabel") as IXUILabel); + transform2 = base.transform.Find("Bg/BoxFrame/DropFrame/ItemTpl"); + this.m_BoxRewardPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 10u, false); + this.m_BoxFetch = (base.transform.Find("Bg/BoxFrame/Fetch").GetComponent("XUIButton") as IXUIButton); + this.m_BoxRedPoint = base.transform.Find("Bg/BoxFrame/RedPoint").gameObject; + this.m_SceneDetail = base.transform.Find("Bg/DetailFrame").gameObject; + this.m_SceneDetail.gameObject.SetActive(false); + this.m_SceneNormal = this.m_SceneDetail.transform.Find("Normal").gameObject; + this.m_SceneHard = this.m_SceneDetail.transform.Find("Hard").gameObject; + this.m_SceneName = (this.m_SceneDetail.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_SceneClose = (this.m_SceneDetail.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + for (int i = 0; i < 3; i++) + { + this.m_SceneStarCond[i] = (this.m_SceneDetail.transform.Find("Name/Star" + (i + 1) + "/Desc").GetComponent("XUILabel") as IXUILabel); + this.m_SceneStar[i] = (this.m_SceneDetail.transform.Find("Name/Star" + (i + 1)).GetComponent("XUISprite") as IXUISprite); + } + transform2 = this.m_SceneDetail.transform.Find("DropFrame/Panel/Grid/ItemTpl"); + this.m_SceneDropPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 10u, false); + this.m_DropExpLab = (this.m_SceneDetail.transform.Find("DropFrame/ResouceDrop/Label").GetComponent("XUILabel") as IXUILabel); + this.m_DropExpLab1 = (this.m_SceneDetail.transform.Find("DropFrame/ResouceDrop1/Label").GetComponent("XUILabel") as IXUILabel); + transform2 = this.m_SceneDetail.transform.Find("Bg"); + this.m_SceneHint = (transform2.Find("Hint").GetComponent("XUILabel") as IXUILabel); + this.m_SceneMyPPT = (transform2.Find("MyPPT").GetComponent("XUILabel") as IXUILabel); + this.m_SceneRecommendPPT = (transform2.Find("RecommendPPT").GetComponent("XUILabel") as IXUILabel); + this.m_SweepPPT = (transform2.Find("SweepPPT").GetComponent("XUILabel") as IXUILabel); + this.m_SweepPPTName = this.m_SceneDetail.transform.Find("P/T4").gameObject; + this.m_SweepTicketGo = transform2.Find("SweepQuantity").gameObject; + this.m_SweepTicketLab = (this.m_SweepTicketGo.transform.GetComponent("XUILabel") as IXUILabel); + this.m_addTicketSpr = (this.m_SweepTicketGo.transform.Find("BtnAdd").GetComponent("XUISprite") as IXUISprite); + this.m_SceneGoBattle = (transform2.Find("GoBattle").GetComponent("XUIButton") as IXUIButton); + this.m_SceneSoloBattle = (transform2.Find("GoAloneBattle").GetComponent("XUIButton") as IXUIButton); + this.m_SceneSoloBattleCost = (transform2.Find("GoAloneBattle/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SceneTeamBattle = (transform2.Find("GoTeamBattle").GetComponent("XUIButton") as IXUIButton); + this.m_SceneTeamBattleCost = (transform2.Find("GoTeamBattle/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SceneTeamBattlePos = this.m_SceneTeamBattle.gameObject.transform.localPosition; + this.m_SceneQuick1 = (transform2.Find("Quick1").GetComponent("XUIButton") as IXUIButton); + this.m_SceneQuick10 = (transform2.Find("Quick10").GetComponent("XUIButton") as IXUIButton); + this.m_SceneQuick10Lab = (transform2.Find("Quick10/T1").GetComponent("XUILabel") as IXUILabel); + this.m_Cost = (transform2.Find("GoBattle/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SceneFirstSSS = transform2.Find("First3Star").gameObject; + this.m_SceneFirstSSSReward = (this.m_SceneFirstSSS.transform.Find("Num").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SceneRecommendHint = (base.transform.Find("Bg/DetailFrame/Tj").GetComponent("XUILabel") as IXUILabel); + this.m_Left = (base.transform.Find("Bg/Left").GetComponent("XUIButton") as IXUIButton); + this.m_Right = (base.transform.Find("Bg/Right").GetComponent("XUIButton") as IXUIButton); + this.m_MainHint = (base.transform.Find("Bg/MainHint").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_MainHintText = (base.transform.Find("Bg/MainHint").GetComponent("XUILabel") as IXUILabel); + this.m_HardLeftCountGo0 = base.transform.Find("Bg/HardLeftCount").gameObject; + this.m_HardLeftCountGo1 = base.transform.Find("Bg/DetailFrame/HardLeftCount").gameObject; + this.m_PrerogativeBg = (this.m_HardLeftCountGo0.transform.Find("tq/p").GetComponent("XUISprite") as IXUISprite); + this.m_PrerogativeSpr = (this.m_HardLeftCountGo0.transform.Find("tq").GetComponent("XUISprite") as IXUISprite); + this.m_PrerogativeLab = (this.m_HardLeftCountGo0.transform.Find("tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_HardLeftCount0 = (this.m_HardLeftCountGo0.transform.Find("Value").GetComponent("XUILabel") as IXUILabel); + this.m_HardLeftCount1 = (this.m_HardLeftCountGo1.transform.Find("Value").GetComponent("XUILabel") as IXUILabel); + this.m_BtnAddHardLeftCount0 = (this.m_HardLeftCountGo0.transform.Find("BtnAdd").GetComponent("XUISprite") as IXUISprite); + this.m_BtnAddHardLeftCount1 = (this.m_HardLeftCountGo1.transform.Find("BtnAdd").GetComponent("XUISprite") as IXUISprite); + this.m_MainHint.gameObject.SetActive(false); + this.m_ShopBtn = (base.transform.Find("Bg/BtnShop").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs.meta new file mode 100644 index 00000000..bee8fc41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/DungeonSelectBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2337a4966ae78f48a19b09a1a1ee21d +timeCreated: 1611404256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EFavorState.cs b/Client/Assets/Scripts/XMainClient/UI/EFavorState.cs new file mode 100644 index 00000000..52c4053d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EFavorState.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient.UI +{ + internal enum EFavorState + { + None, + CanSend, + SendWithExchange, + Exchange + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EFavorState.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EFavorState.cs.meta new file mode 100644 index 00000000..720d9bc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EFavorState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 830715e3e88d3264abcf0675d05b9118 +timeCreated: 1611404042 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemBagMode.cs b/Client/Assets/Scripts/XMainClient/UI/EmblemBagMode.cs new file mode 100644 index 00000000..de742773 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemBagMode.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient.UI +{ + internal enum EmblemBagMode + { + EBM_NORMAL, + EBM_SELECT + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemBagMode.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EmblemBagMode.cs.meta new file mode 100644 index 00000000..16644815 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemBagMode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f97b3ca60ff1f64a9095451069e09f8 +timeCreated: 1611403517 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemBagView.cs b/Client/Assets/Scripts/XMainClient/UI/EmblemBagView.cs new file mode 100644 index 00000000..45a6c528 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemBagView.cs @@ -0,0 +1,328 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EmblemBagView : DlgHandlerBase + { + private XItemMorePowerfulTipMgr powerfullMgr + { + get + { + return DlgBase.singleton.RedPointMgr; + } + } + + private XItemMorePowerfulTipMgr newItemMgr + { + get + { + return DlgBase.singleton.NewItemMgr; + } + } + + private XBagWindow bagWindow + { + get + { + return DlgBase.singleton.BagWindow; + } + } + + public string IdentifyEffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_identifyEffectPath); + if (flag) + { + this.m_identifyEffectPath = XSingleton.singleton.GetValue("EmblemIdentifyEffectPath"); + } + return this.m_identifyEffectPath; + } + } + + protected override string FileName + { + get + { + return "ItemNew/EmblemListPanel"; + } + } + + public IXUIButton m_Help; + + private XEmblemDocument _doc; + + private IXUILabel m_bagNumLab; + + private Dictionary itemBtnDic = new Dictionary(); + + public IXUIButton m_expandBagBtn; + + private Transform EffectTra; + + private XFx m_identifyFx; + + private uint m_emblemIdentifyToken = 0u; + + private string m_identifyEffectPath = string.Empty; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + this._doc._BagHandler = this; + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_bagNumLab = (base.PanelObject.transform.Find("Panel/BagNum").GetComponent("XUILabel") as IXUILabel); + this.m_expandBagBtn = (base.PanelObject.transform.Find("add").GetComponent("XUIButton") as IXUIButton); + BagExpandItemListTable.RowData expandItemConfByType = XBagDocument.GetExpandItemConfByType((uint)XFastEnumIntEqualityComparer.ToInt(BagType.EmblemBag)); + this.m_expandBagBtn.gameObject.SetActive(expandItemConfByType != null); + this.EffectTra = base.PanelObject.transform.Find("Effect"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + this.m_expandBagBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBagExpandClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Char_Emblem); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.Show(); + } + + private void Show() + { + this.bagWindow.ChangeData(new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this._doc.GetEmblemItems)); + this.bagWindow.OnShow(); + this.SetBagNum(); + this._doc.NewItems.bCanClear = true; + } + + protected override void OnHide() + { + this.powerfullMgr.ReturnAll(); + this.newItemMgr.ReturnAll(); + this.bagWindow.OnHide(); + this._doc.NewItems.TryClear(); + this.itemBtnDic.Clear(); + XSingleton.singleton.KillTimer(this.m_emblemIdentifyToken); + this.HideEffect(this.m_identifyFx); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.Show(); + } + + public override void OnUnload() + { + this._doc._BagHandler = null; + bool flag = this.m_identifyFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_identifyFx, true); + this.m_identifyFx = null; + } + base.OnUnload(); + } + + public void Refresh() + { + this.bagWindow.RefreshWindow(); + this.SetBagNum(); + } + + public void RefreshTips(ulong uid) + { + IXUISprite ixuisprite; + bool flag = this.itemBtnDic.TryGetValue(uid, out ixuisprite); + if (flag) + { + bool flag2 = ixuisprite != null; + if (flag2) + { + this.OnItemClicked(ixuisprite); + } + } + } + + private void SetBagNum() + { + int count = this._doc.GetEmblemItems().Count; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + VIPTable.RowData byVIP = specificDocument.VIPReader.GetByVIP((int)specificDocument.VipLevel); + bool flag = byVIP != null; + if (flag) + { + uint num = byVIP.EmblemMax; + BagExpandData bagExpandData = XBagDocument.BagDoc.GetBagExpandData(BagType.EmblemBag); + bool flag2 = bagExpandData != null; + if (flag2) + { + num += bagExpandData.ExpandNum; + } + bool flag3 = (long)count >= (long)((ulong)num); + if (flag3) + { + this.m_bagNumLab.SetText(string.Format("[ff4366]{0}[-]/{1}", count, num)); + } + else + { + this.m_bagNumLab.SetText(string.Format("{0}[-]/{1}", count, num)); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + Transform transform = t.Find("Icon/SupplementBrought"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(false); + } + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag2 = this.bagWindow.m_XItemList == null || index >= this.bagWindow.m_XItemList.Count || index < 0; + if (flag2) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + this.powerfullMgr.ReturnInstance(ixuisprite); + this.newItemMgr.ReturnInstance(ixuisprite); + t.gameObject.name = XSingleton.singleton.StringCombine("empty", index.ToString()); + } + else + { + t.gameObject.name = XSingleton.singleton.StringCombine("emblem", this.bagWindow.m_XItemList[index].itemID.ToString()); + XSingleton.singleton.DrawItem(t.gameObject, this.bagWindow.m_XItemList[index]); + ixuisprite.ID = this.bagWindow.m_XItemList[index].uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + bool flag3 = this.itemBtnDic.ContainsKey(ixuisprite.ID); + if (flag3) + { + this.itemBtnDic[ixuisprite.ID] = ixuisprite; + } + else + { + this.itemBtnDic.Add(ixuisprite.ID, ixuisprite); + } + XEmblemItem xemblemItem = this.bagWindow.m_XItemList[index] as XEmblemItem; + bool flag4 = this._doc.IsEmblemMorePowerful(ixuisprite.ID); + if (flag4) + { + this.powerfullMgr.SetTip(ixuisprite); + } + else + { + this.powerfullMgr.ReturnInstance(ixuisprite); + } + bool flag5 = this._doc.NewItems.IsNew(ixuisprite.ID); + if (flag5) + { + this.newItemMgr.SetTip(ixuisprite); + } + else + { + this.newItemMgr.ReturnInstance(ixuisprite); + } + } + } + + public void ShowEmblemIdentifyEffect() + { + bool flag = this.m_identifyFx == null; + if (flag) + { + this.m_identifyFx = XSingleton.singleton.CreateFx(this.IdentifyEffectPath, null, true); + } + else + { + this.m_identifyFx.SetActive(true); + } + this.m_identifyFx.Play(this.EffectTra, Vector3.zero, Vector3.one, 1f, true, false); + XSingleton.singleton.KillTimer(this.m_emblemIdentifyToken); + this.m_emblemIdentifyToken = XSingleton.singleton.SetTimerAccurate(5f, new XTimerMgr.AccurateElapsedEventHandler(this.OnEmblemIdentifyTimer), null); + } + + private void OnEmblemIdentifyTimer(object param, float delay) + { + this.HideEffect(this.m_identifyFx); + XSingleton.singleton.KillTimer(this.m_emblemIdentifyToken); + this.m_emblemIdentifyToken = 0u; + } + + private void HideEffect(XFx fx) + { + bool flag = fx != null; + if (flag) + { + fx.Stop(); + fx.SetActive(false); + } + } + + public void OnItemClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID == null; + if (!flag) + { + bool flag2 = this._doc.NewItems.RemoveItem(iSp.ID, itemByUID.Type, false); + if (flag2) + { + this.Refresh(); + } + CharacterEquipHandler.OnItemClicked(iSp); + } + } + + public void OnAddItem() + { + this.bagWindow.UpdateBag(); + this.SetBagNum(); + } + + public void OnRemoveItem() + { + this.bagWindow.UpdateBag(); + this.SetBagNum(); + } + + public void OnItemCountChanged(XItem item) + { + this.bagWindow.UpdateItem(item); + } + + public void OnSwapItem(XItem item1, XItem item2, int slot) + { + this.bagWindow.ReplaceItem(item1, item2); + } + + public void OnUpdateItem(XItem item) + { + this.bagWindow.UpdateItem(item); + } + + public bool OnBagExpandClicked(IXUIButton button) + { + XBagDocument.BagDoc.UseBagExpandTicket(BagType.EmblemBag); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemBagView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EmblemBagView.cs.meta new file mode 100644 index 00000000..50b1cc2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemBagView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76576883e0547554dbe810dfc522ec75 +timeCreated: 1611403949 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemEquipView.cs b/Client/Assets/Scripts/XMainClient/UI/EmblemEquipView.cs new file mode 100644 index 00000000..78403e24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemEquipView.cs @@ -0,0 +1,300 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EmblemEquipView : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/EmblemOperateFrame"; + } + } + + public XEmblemDocument _doc; + + public XSmeltDocument _smeltDoc; + + public static int Emblem_Slot_Count = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_END); + + public GameObject[] m_EmblemBg = new GameObject[EmblemEquipView.Emblem_Slot_Count]; + + public IXUISprite[] m_EmblemSlots = new IXUISprite[EmblemEquipView.Emblem_Slot_Count]; + + public IXUISprite[] m_EmblemSlotCovers = new IXUISprite[EmblemEquipView.Emblem_Slot_Count]; + + public IXUISprite[] m_EmblemP = new IXUISprite[EmblemEquipView.Emblem_Slot_Count]; + + public IXUISprite[] m_EmblemSlotBgs = new IXUISprite[EmblemEquipView.Emblem_Slot_Count]; + + public XUIPool m_EmblemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XEmbleAttrView embleAttrView; + + private Transform TotalAttriPanel; + + private IXUITweenTool m_BuySlotTween; + + private SpriteClickEventHandler m_finalHandle = null; + + private ulong m_slottingSlot = 0UL; + + private static int GetSlotIndex(EquipPosition pos) + { + int num = XBagDocument.BodyPosition(pos); + bool flag = num >= XEmblemDocument.Position_TotalStart && num < XEmblemDocument.Position_TotalEnd; + int result; + if (flag) + { + result = num - XEmblemDocument.Position_TotalStart; + } + else + { + result = -1; + } + return result; + } + + protected override void Init() + { + base.Init(); + this.TotalAttriPanel = base.PanelObject.transform.Find("TotalAttriPanel"); + IXUIButton ixuibutton = base.PanelObject.transform.Find("Panel/Btn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickEmblemAccess)); + IXUIButton ixuibutton2 = base.PanelObject.transform.Find("Panel/AttriBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAttriBtn)); + this.m_EmblemPool.SetupPool(base.PanelObject.transform.Find("Panel/Frame/Emblems").gameObject, base.PanelObject.transform.Find("Panel/Frame/Emblems/EmblemTpl").gameObject, (uint)EmblemEquipView.Emblem_Slot_Count, false); + for (int i = 0; i < EmblemEquipView.Emblem_Slot_Count; i++) + { + Transform transform = base.PanelObject.transform.Find("Panel/Frame/Emblems/Emblem" + i); + GameObject gameObject = this.m_EmblemPool.FetchGameObject(false); + this.m_EmblemBg[i] = gameObject; + gameObject.transform.localPosition = transform.localPosition; + gameObject.transform.localScale = transform.localScale; + this.m_EmblemSlots[i] = (gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_EmblemP[i] = (gameObject.transform.Find("P").GetComponent("XUISprite") as IXUISprite); + this.m_EmblemSlotCovers[i] = (gameObject.transform.Find("Cover").GetComponent("XUISprite") as IXUISprite); + this.m_EmblemSlotCovers[i].ID = (ulong)((long)i); + this.m_EmblemSlotCovers[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSlotCoverClicked)); + this.m_EmblemSlotBgs[i] = (gameObject.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_EmblemSlotBgs[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSlotBgClicked)); + } + this.m_BuySlotTween = (base.PanelObject.transform.Find("Panel/Frame/Emblems/Light").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_BuySlotTween.gameObject.SetActive(false); + DlgHandlerBase.EnsureCreate>(ref this.embleAttrView, this.TotalAttriPanel, false, this); + this._doc = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + this._doc._EquipHandler = this; + this._smeltDoc = XSmeltDocument.Doc; + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowEquipments(); + this.m_BuySlotTween.gameObject.SetActive(false); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.ShowEquipments(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload>(ref this.embleAttrView); + this._doc._EquipHandler = null; + base.OnUnload(); + } + + public void ShowEquipments() + { + this._doc.UpdateEquipLockState(XSingleton.singleton.XPlayerData.Level); + this._doc.UpdateEquipSlottingState(); + XBodyBag emblemBag = XSingleton.singleton.Doc.XBagDoc.EmblemBag; + EmblemSlotStatus[] equipLock = this._doc.EquipLock; + for (int i = XEmblemDocument.Position_TotalStart; i < XEmblemDocument.Position_TotalEnd; i++) + { + this.SetSlot(i, emblemBag[i], equipLock[i - XEmblemDocument.Position_TotalStart]); + } + } + + public void SetSlot(int slot, XItem item, EmblemSlotStatus slotStatus = null) + { + int num = slot - XEmblemDocument.Position_TotalStart; + bool flag = slotStatus != null && slotStatus.IsLock; + if (flag) + { + XSingleton.singleton.DrawItem(this.m_EmblemBg[num], null); + this.m_EmblemSlots[num].RegisterSpriteClickEventHandler(null); + this.m_EmblemBg[num].transform.Find("RedPoint").gameObject.SetActive(false); + this.m_EmblemSlotCovers[num].SetVisible(true); + this.m_EmblemP[num].gameObject.SetActive(!slotStatus.LevelIsdOpen); + } + else + { + bool flag2 = item == null || item.itemID == 0 || (ulong)item.type != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM)); + if (flag2) + { + XSingleton.singleton.DrawItem(this.m_EmblemBg[num], null); + this.m_EmblemSlotCovers[num].SetVisible(false); + this.m_EmblemP[num].SetVisible(false); + this.m_EmblemSlots[num].RegisterSpriteClickEventHandler(null); + this.m_EmblemBg[num].transform.Find("RedPoint").gameObject.SetActive(false); + } + else + { + this.m_EmblemSlotCovers[num].SetVisible(false); + this.m_EmblemP[num].SetVisible(false); + XItemDrawerMgr.Param.bHideBinding = true; + XSingleton.singleton.DrawItem(this.m_EmblemBg[num], item); + bool flag3 = this.m_finalHandle == null; + if (flag3) + { + this.m_EmblemSlots[num].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(CharacterEquipHandler.OnItemClicked)); + } + this.m_EmblemSlots[num].ID = item.uid; + bool active = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Smelting) && this._smeltDoc.IsHadRedDot(item); + this.m_EmblemBg[num].transform.Find("RedPoint").gameObject.SetActive(active); + } + } + } + + public void RegisterItemClickEvents(SpriteClickEventHandler handle = null) + { + this.m_finalHandle = handle; + bool flag = this.m_finalHandle == null; + if (flag) + { + for (int i = 0; i < EmblemEquipView.Emblem_Slot_Count; i++) + { + this.m_EmblemSlots[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(CharacterEquipHandler.OnItemClicked)); + } + } + else + { + for (int j = 0; j < EmblemEquipView.Emblem_Slot_Count; j++) + { + this.m_EmblemSlots[j].RegisterSpriteClickEventHandler(this.m_finalHandle); + } + } + } + + public void OnSlotBgClicked(IXUISprite iSp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EMBLEM_SLOT_NO_SELECT"), "fece00"); + } + + public bool OnClickEmblemAccess(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_EquipCreate_EmblemSet, 0UL); + return true; + } + + public bool OnClickAttriBtn(IXUIButton btn) + { + this.embleAttrView.SetBaseData(XSingleton.singleton.Doc.XBagDoc.EmblemBag); + this.embleAttrView.SetVisible(true); + return true; + } + + public void OnSlotCoverClicked(IXUISprite iSp) + { + EmblemSlotStatus[] equipLock = this._doc.EquipLock; + checked + { + bool flag = equipLock[(int)((IntPtr)iSp.ID)] == null; + if (!flag) + { + this.m_slottingSlot = iSp.ID; + bool isLock = equipLock[(int)((IntPtr)iSp.ID)].IsLock; + if (isLock) + { + List emblemSlotUnlockLevel = this._doc.emblemSlotUnlockLevel; + int num = unchecked((int)iSp.ID); + bool flag2 = !equipLock[(int)((IntPtr)iSp.ID)].LevelIsdOpen; + if (flag2) + { + bool flag3 = num < XEmblemDocument.Position_AttrEnd; + string @string; + if (flag3) + { + @string = XStringDefineProxy.GetString("EMBLEM_ATTR"); + } + else + { + @string = XStringDefineProxy.GetString("EMBLEM_SKILL"); + } + XSingleton.singleton.ShowSystemTip(@string + XStringDefineProxy.GetString("EMBLEM_SLOT_OPEN_AT_LEVEL", new object[] + { + emblemSlotUnlockLevel[num] + }), "ff0000"); + } + else + { + bool flag4 = !equipLock[(int)((IntPtr)iSp.ID)].HadSlotting; + if (flag4) + { + int num2 = this._doc.IsCanSlotting(equipLock[(int)((IntPtr)iSp.ID)].Slot); + bool flag5 = num2 == 0; + if (flag5) + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("SlotThisEmblemNeedMoney"), this._doc.SlottingNeedMoney(equipLock[(int)((IntPtr)iSp.ID)].Slot)), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.EmblemSlotting)); + } + else + { + bool flag6 = num2 == 1; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NeedUnlockLastSlotting"), "fece00"); + } + } + } + } + } + } + } + } + + public void PlayBuySlotFx(int index) + { + bool flag = index >= this.m_EmblemBg.Length; + if (!flag) + { + this.m_BuySlotTween.gameObject.transform.localPosition = this.m_EmblemBg[index].transform.localPosition; + this.m_BuySlotTween.PlayTween(true, -1f); + XSingleton.singleton.PlayUISound("Audio/UI/UI_winfavor", true, AudioChannel.Action); + } + } + + private bool EmblemSlotting(IXUIButton btn) + { + this._doc.ReqEmbleSlotting(this.m_slottingSlot); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public static void OnItemClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID != null; + if (flag) + { + bool flag2 = XSingleton.singleton.Doc.XBagDoc.EmblemBag.HasItem(itemByUID.uid); + if (flag2) + { + XSingleton.singleton.ShowTooltipDialog(itemByUID, null, iSp, true, 0u); + } + else + { + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(itemByUID, iSp, true, 0u); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemEquipView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EmblemEquipView.cs.meta new file mode 100644 index 00000000..718fc850 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemEquipView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55540edbed91f20479809fff16966633 +timeCreated: 1611403737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlg.cs new file mode 100644 index 00000000..d9b07c7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlg.cs @@ -0,0 +1,321 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EmblemTooltipDlg : TooltipDlg + { + public override string fileName + { + get + { + return "GameSystem/EmblemToolTipDlg"; + } + } + + private AttrFrameParam tmpAttrFrameParam = new AttrFrameParam(); + + protected override void Init() + { + base.Init(); + this.m_OperateList[0, 0] = new TooltipButtonOperateEmblemPutOn(); + this.m_OperateList[0, 1] = new TooltipButtonOperateIdentify(); + this.m_OperateList[0, 2] = new TooltipButtonOperateRecycle(XSysDefine.XSys_Char_Emblem); + this.m_OperateList[0, 3] = new TooltipButtonOperateSell(); + this.m_OperateList[0, 4] = new TooltipButtonOperateSmeltReturn(); + this.m_OperateList[1, 0] = new TooltipButtonOperateTakeOff(); + this.m_OperateList[1, 1] = new TooltipButtonOperateEmblemSmelt(); + } + + public void ShowToolTip(ulong MainUID, ulong CompareUID, bool bShowButtons = true) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(MainUID); + XItem xitem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(CompareUID); + bool flag = xitem.uid == 0UL; + if (flag) + { + xitem = null; + } + this.ShowToolTip(itemByUID, xitem, bShowButtons, 0u); + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + Transform transform = goToolTip.transform.Find("ScrollPanel"); + IXUISprite ixuisprite = transform.Find("Description").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = ixuisprite.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + XEmblemItem xemblemItem = mainItem as XEmblemItem; + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(xemblemItem.itemID); + bool flag = emblemConf != null; + if (flag) + { + bool flag2 = emblemConf.EmblemType <= 1000; + if (flag2) + { + base._SetTopFrameLabel(goToolTip, 0, XStringDefineProxy.GetString("ToolTipText_Type"), XStringDefineProxy.GetString("EMBLEM_ATTR")); + ixuisprite.gameObject.SetActive(false); + } + else + { + base._SetTopFrameLabel(goToolTip, 0, XStringDefineProxy.GetString("ToolTipText_Type"), XStringDefineProxy.GetString("EMBLEM_SKILL")); + ixuisprite.gameObject.SetActive(true); + ixuilabel.SetText(XEmblemDocument.GetEmblemSkillAttrString(emblemConf.EmblemID)); + base.AppendFrame(ixuisprite.gameObject, (float)ixuisprite.spriteHeight, null); + } + } + else + { + base._SetTopFrameLabel(goToolTip, 0, XStringDefineProxy.GetString("ToolTipText_Type"), string.Empty); + } + IXUISprite ixuisprite2 = transform.Find("IdentifyHint").GetComponent("XUISprite") as IXUISprite; + bool flag3 = xemblemItem.emblemInfo.thirdslot == 1u; + if (flag3) + { + ixuisprite2.gameObject.SetActive(true); + base.AppendFrame(ixuisprite2.gameObject, (float)ixuisprite2.spriteHeight, null); + } + else + { + ixuisprite2.gameObject.SetActive(false); + } + base.SetupOtherFrame(goToolTip, mainItem, compareItem, bMain); + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + base._SetupType(goToolTip, data, 0); + base._SetupLevel(goToolTip, data, 1); + base._SetupProf(goToolTip, data, bMain, instanceData, 2); + } + + protected override int SetupAttrFrame(GameObject attrFrame, AttrFrameParam param, bool bMain) + { + int num = 0; + IXUILabel ixuilabel = attrFrame.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + bool flag = !string.IsNullOrEmpty(param.Title); + int num2; + if (flag) + { + ixuilabel.SetText(param.Title); + ixuilabel.SetVisible(true); + num2 = (int)ixuilabel.gameObject.transform.localPosition.y - ixuilabel.spriteHeight; + } + else + { + ixuilabel.SetVisible(false); + num2 = (int)ixuilabel.gameObject.transform.localPosition.y; + } + int num3 = 0; + while (num3 < param.AttrList.Count && num3 < 2) + { + GameObject gameObject = base.uiBehaviour.m_AttrPool.FetchGameObject(false); + gameObject.transform.parent = attrFrame.transform; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_AttrPool.TplPos.x, (float)(num2 + num), base.uiBehaviour.m_AttrPool.TplPos.z); + gameObject.transform.localScale = Vector3.one; + IXUILabel ixuilabel2 = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(param.AttrList[num3].strText); + ixuilabel3.SetText(param.AttrList[num3].strValue); + num -= base.uiBehaviour.m_AttrPool.TplHeight; + num3++; + } + IXUISprite ixuisprite = attrFrame.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteHeight = -num - num2; + return ixuisprite.spriteHeight; + } + + protected override void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + bool flag = item == null || item.changeAttr.Count == 0; + if (!flag) + { + GameObject gameObject = goToolTip.transform.Find("ScrollPanel").gameObject; + this.SetEmlemAttrFrame(gameObject, item, compareItem, bMain); + } + } + + protected void SetEmlemAttrFrame(GameObject scrollPanel, XAttrItem item, XAttrItem compareItem, bool bMain) + { + GameObject gameObject = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject.transform.parent = scrollPanel.transform; + this.tmpAttrFrameParam.Clear(); + this.tmpAttrFrameParam.Title = XStringDefineProxy.GetString("TOOLTIP_BASIC_ATTR"); + int num; + int endIndex; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)item.itemID, out num, out endIndex); + bool flag = num >= 0; + if (flag) + { + for (int i = 0; i < item.changeAttr.Count; i++) + { + AttrParam item2 = default(AttrParam); + AttrParam.ResetSb(); + XItemChangeAttr xitemChangeAttr = item.changeAttr[i]; + bool flag2 = !XAttributeCommon.IsPercentRange((int)xitemChangeAttr.AttrID); + if (flag2) + { + AttributeEmblem.RowData rowData = XEquipCreateDocument.FindAttr(num, endIndex, i, xitemChangeAttr.AttrID); + bool flag3 = rowData != null; + if (flag3) + { + string prefixColor = XEquipCreateDocument.GetPrefixColor(rowData, xitemChangeAttr.AttrValue); + AttrParam.Append(xitemChangeAttr, prefixColor, prefixColor); + AttrParam.ValueSb.Append(" ["); + AttrParam.ValueSb.Append(rowData.Range[0]); + AttrParam.ValueSb.Append(" - "); + AttrParam.ValueSb.Append(rowData.Range[1]); + AttrParam.ValueSb.Append("] "); + } + else + { + AttrParam.Append(xitemChangeAttr, "", ""); + } + } + else + { + AttrParam.Append(xitemChangeAttr, "", ""); + } + item2.SetTextFromSb(); + item2.SetValueFromSb(); + this.tmpAttrFrameParam.AttrList.Add(item2); + } + } + base.AppendFrame(gameObject, (float)this.SetupAttrFrame(gameObject, this.tmpAttrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + this.SetAttrOther(scrollPanel.transform, this.tmpAttrFrameParam); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + } + + protected override void SetAttrOther(Transform ParentTra, AttrFrameParam param) + { + bool flag = param.AttrList.Count <= 2; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject.transform.parent = ParentTra; + base.AppendFrame(gameObject, (float)this.SetAttrThird(gameObject, param), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + } + } + + private int SetAttrThird(GameObject attrFrame, AttrFrameParam param) + { + int num = 0; + IXUILabel ixuilabel = attrFrame.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("IdentifyThird")); + ixuilabel.SetVisible(true); + int num2 = (int)ixuilabel.gameObject.transform.localPosition.y - ixuilabel.spriteHeight; + for (int i = 2; i < param.AttrList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_AttrPool.FetchGameObject(false); + gameObject.transform.parent = attrFrame.transform; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_AttrPool.TplPos.x, (float)(num2 + num), base.uiBehaviour.m_AttrPool.TplPos.z); + gameObject.transform.localScale = Vector3.one; + IXUILabel ixuilabel2 = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = gameObject.transform.Find("Value").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + bool flag = ixuilabelSymbol.gameObject.transform.localPosition.x > 230f; + if (flag) + { + ixuilabelSymbol.gameObject.transform.localPosition = new Vector3(120f, -13f, 0f); + } + ixuilabel2.SetText(param.AttrList[i].strText); + ixuilabelSymbol.InputText = param.AttrList[i].strValue; + num -= base.uiBehaviour.m_AttrPool.TplHeight; + } + IXUISprite ixuisprite = attrFrame.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteHeight = -num - num2; + return ixuisprite.spriteHeight; + } + + protected override int _GetPPT(XItem item, bool bMain, ref string valueText) + { + XEmblemItem xemblemItem = item as XEmblemItem; + bool flag = xemblemItem == null; + int result; + if (flag) + { + result = -1; + } + else + { + bool bIsSkillEmblem = xemblemItem.bIsSkillEmblem; + if (bIsSkillEmblem) + { + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)xemblemItem.itemID); + bool flag2 = emblemSkillConf == null; + if (flag2) + { + valueText = "SKILL EMBLEM."; + result = -1; + } + else + { + valueText = emblemSkillConf.SkillPPT.ToString(); + result = (int)emblemSkillConf.SkillPPT; + } + } + else + { + XAttributes attributes = bMain ? XSingleton.singleton.mainAttributes : XSingleton.singleton.compareAttributes; + bool flag3 = xemblemItem.emblemInfo.thirdslot == 1u || xemblemItem.emblemInfo.thirdslot == 10u; + if (flag3) + { + int num; + int endIndex; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)item.itemID, out num, out endIndex); + bool flag4 = num >= 0; + if (flag4) + { + bool flag5 = xemblemItem.emblemInfo.thirdslot == 1u; + uint num2; + uint num3; + if (flag5) + { + uint ppt = xemblemItem.GetPPT(attributes); + XEquipCreateDocument.GetRandomPPT(num, endIndex, out num2, out num3); + } + else + { + XEquipCreateDocument.GetPPT(num, endIndex, false, true, out num2, out num3); + } + valueText = string.Format("{0} - {1}", num2, num3); + } + result = -1; + } + else + { + uint ppt = xemblemItem.GetPPT(attributes); + valueText = xemblemItem.GetPPT(attributes).ToString(); + result = (int)ppt; + } + } + } + return result; + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + bool flag = !this.bShowButtons; + if (!flag) + { + XEmblemItem xemblemItem = item as XEmblemItem; + if (bMain) + { + bool flag2 = XSingleton.singleton.Doc.XBagDoc.EmblemBag.HasItem(item.uid); + if (flag2) + { + base._SetupButtonVisiability(goToolTip, 1, item); + } + else + { + base._SetupButtonVisiability(goToolTip, 0, item); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlg.cs.meta new file mode 100644 index 00000000..0049a563 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15102da85de58214fa4da2c35697a9eb +timeCreated: 1611403261 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlgBehaviour.cs new file mode 100644 index 00000000..113148a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlgBehaviour.cs @@ -0,0 +1,8 @@ +using System; + +namespace XMainClient.UI +{ + internal class EmblemTooltipDlgBehaviour : TooltipDlgBehaviour + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlgBehaviour.cs.meta new file mode 100644 index 00000000..314b3eb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemTooltipDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d86499bf6ee41e3458f0c88ad396ad0d +timeCreated: 1611404639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemTotalAttributeView.cs b/Client/Assets/Scripts/XMainClient/UI/EmblemTotalAttributeView.cs new file mode 100644 index 00000000..51768e49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemTotalAttributeView.cs @@ -0,0 +1,179 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EmblemTotalAttributeView : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/TotalAttribute"; + } + } + + private XEmblemDocument m_doc; + + private GameObject _HadGo; + + private GameObject _NoGo; + + public IXUISprite m_closedBtn; + + public XUIPool m_AttriPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_TittlePool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + this.m_closedBtn = (base.PanelObject.transform.Find("ClisedSpr").GetComponent("XUISprite") as IXUISprite); + this.m_closedBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickClosedBtn)); + this._HadGo = base.PanelObject.transform.Find("HadEmblem").gameObject; + this._NoGo = base.PanelObject.transform.Find("NoEmblem").gameObject; + Transform transform = this._HadGo.transform.Find("Grid"); + this.m_AttriPool.SetupPool(transform.gameObject, this._HadGo.transform.Find("AttriItem").gameObject, 2u, false); + this.m_SkillPool.SetupPool(transform.gameObject, this._HadGo.transform.Find("SkillItem").gameObject, 2u, false); + this.m_TittlePool.SetupPool(transform.gameObject, this._HadGo.transform.Find("TittleItem").gameObject, 2u, false); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void FillContent() + { + this._HadGo.SetActive(false); + this._NoGo.SetActive(false); + bool isEquipEmblem = this.m_doc.IsEquipEmblem; + if (isEquipEmblem) + { + this.FillHadContent(); + } + else + { + this.FillNoContent(); + } + } + + private void FillHadContent() + { + this._HadGo.SetActive(true); + this.m_AttriPool.ReturnAll(false); + this.m_TittlePool.ReturnAll(false); + this.m_SkillPool.ReturnAll(false); + List list = new List(); + List list2 = new List(); + List list3 = new List(); + this.GetData(ref list, ref list2, ref list3); + int num = 0; + GameObject gameObject = this.m_TittlePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("Tittle").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("EmblemAttriTittle")); + num += this.m_TittlePool.TplHeight; + for (int i = 0; i < list.Count; i++) + { + gameObject = this.m_AttriPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num), 0f); + ixuilabel = (gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(list[i].Name); + ixuilabel = (gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(list[i].NumStr); + num += this.m_AttriPool.TplHeight; + } + num += 20; + for (int j = 0; j < list2.Count; j++) + { + gameObject = this.m_AttriPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num), 0f); + ixuilabel = (gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(list2[j].Name); + ixuilabel = (gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(list2[j].NumStr); + num += this.m_AttriPool.TplHeight; + } + bool flag = list3.Count <= 0; + if (!flag) + { + num += 30; + gameObject = this.m_TittlePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num), 0f); + ixuilabel = (gameObject.transform.Find("Tittle").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XStringDefineProxy.GetString("EmblemSkillTittle")); + num += this.m_TittlePool.TplHeight; + for (int k = 0; k < list3.Count; k++) + { + gameObject = this.m_SkillPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num), 0f); + ixuilabel = (gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(list3[k].NeedLevelStr); + ixuilabel = (gameObject.transform.Find("SkillName").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(list3[k].SkillDes); + num += this.m_SkillPool.TplHeight; + } + } + } + + private void GetData(ref List lst1, ref List lst2, ref List lst3) + { + List list = this.m_doc.AttriDataList(); + for (int i = 0; i < list.Count; i++) + { + bool flag = list[i].TypeID == 1u; + if (flag) + { + lst1.Add(list[i]); + } + else + { + bool flag2 = list[i].TypeID == 2u; + if (flag2) + { + lst2.Add(list[i]); + } + else + { + bool flag3 = list[i].TypeID == 3u; + if (flag3) + { + lst3.Add(list[i]); + } + } + } + } + } + + private void FillNoContent() + { + this._NoGo.SetActive(true); + IXUILabel ixuilabel = this._NoGo.transform.Find("Tittle1").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("EmblemAttriTittle")); + ixuilabel = (this._NoGo.transform.Find("Content1").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XStringDefineProxy.GetString("EmblemAttriDes")); + ixuilabel = (this._NoGo.transform.Find("Tittle2").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XStringDefineProxy.GetString("EmblemSkillTittle")); + ixuilabel = (this._NoGo.transform.Find("Content2").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XStringDefineProxy.GetString("EmblemSkillDes")); + } + + private void OnClickClosedBtn(IXUISprite spr) + { + base.SetVisible(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EmblemTotalAttributeView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EmblemTotalAttributeView.cs.meta new file mode 100644 index 00000000..dd3d98de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EmblemTotalAttributeView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4a5652c36c14d94ba3b106af241a5d7 +timeCreated: 1611404283 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantActiveHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EnchantActiveHandler.cs new file mode 100644 index 00000000..9074b47d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantActiveHandler.cs @@ -0,0 +1,194 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EnchantActiveHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/EnchantActivationPanel"; + } + } + + private XEnchantDocument _doc = null; + + private IXUIWrapContent _wrapContent; + + private IXUIScrollView _scrollView; + + private uint _curSelectedAttribute; + + private XEnchantInfo _curEnchantInfo; + + private GameObject _uiEquipItem; + + private GameObject _emptyTag; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this._doc._EnchantActiveHandler = null; + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + this._curSelectedAttribute = xequipItem.enchantInfo.ChooseAttr; + this._curEnchantInfo = xequipItem.enchantInfo; + this._wrapContent.SetContentCount(this._curEnchantInfo.AttrList.Count, false); + this._scrollView.ResetPosition(); + this._emptyTag.SetActive(this._curEnchantInfo.AttrList.Count == 0); + XSingleton.singleton.DrawItem(this._uiEquipItem, xequipItem); + } + } + + private void SetChooseAttrItem() + { + List list = new List(); + this._wrapContent.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + IXUICheckBox ixuicheckBox = list[i].GetComponent("XUICheckBox") as IXUICheckBox; + bool flag = ixuicheckBox.ID == (ulong)this._curEnchantInfo.ChooseAttr; + if (flag) + { + ixuicheckBox.bChecked = true; + break; + } + } + } + + private void InitProperties() + { + this._doc = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + this._doc._EnchantActiveHandler = this; + this._scrollView = (base.transform.Find("BagPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this._wrapContent = (base.transform.Find("BagPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._wrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.WrapContentInit)); + this._wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentUpdate)); + IXUIButton ixuibutton = base.transform.Find("BtnOk").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ConfirmActiveAttribute)); + this._uiEquipItem = base.transform.Find("Top/EquipItem").gameObject; + IXUISprite ixuisprite = this._uiEquipItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnEquipIconClicked)); + IXUISprite ixuisprite2 = base.transform.Find("Close").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClose)); + this._emptyTag = base.transform.Find("Empty").gameObject; + } + + private void OnClose(IXUISprite uiSprite) + { + base.SetVisible(false); + } + + private bool ConfirmActiveAttribute(IXUIButton button) + { + bool flag = this._curSelectedAttribute == 0u || this._curSelectedAttribute == this._curEnchantInfo.ChooseAttr; + bool result; + if (flag) + { + result = true; + } + else + { + this._doc.SendEnchantActiveAttribute(this._curSelectedAttribute); + result = true; + } + return result; + } + + private void _OnEquipIconClicked(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID), null, iSp, false, 0u); + } + + private void WrapContentUpdate(Transform itemTransform, int index) + { + bool flag = index >= this._curEnchantInfo.AttrList.Count; + if (!flag) + { + XItemChangeAttr xitemChangeAttr = this._curEnchantInfo.AttrList[index]; + uint attrID = xitemChangeAttr.AttrID; + uint attrValue = xitemChangeAttr.AttrValue; + IXUICheckBox ixuicheckBox = itemTransform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)attrID; + IXUILabel ixuilabel = itemTransform.Find("Attr").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = itemTransform.Find("Attr/Value").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = itemTransform.Find("PPT").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XAttributeCommon.GetAttrStr((int)attrID)); + ixuilabel2.SetText("+" + attrValue); + bool flag2 = this._curSelectedAttribute == attrID; + if (flag2) + { + ixuicheckBox.bChecked = true; + } + else + { + ixuicheckBox.ForceSetFlag(false); + } + double ppt = XSingleton.singleton.GetPPT(attrID, attrValue, null, -1); + ixuilabel3.SetText(((int)ppt).ToString()); + } + } + + private void WrapContentInit(Transform itemTransform, int index) + { + IXUICheckBox ixuicheckBox = itemTransform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectAttributeItem)); + } + + private bool OnSelectAttributeItem(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._curSelectedAttribute = (uint)iXUICheckBox.ID; + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantActiveHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EnchantActiveHandler.cs.meta new file mode 100644 index 00000000..b7f0c00c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantActiveHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d679026e0d15eb438d22521355344ce +timeCreated: 1611403805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantAttrPreviewHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EnchantAttrPreviewHandler.cs new file mode 100644 index 00000000..c664c6ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantAttrPreviewHandler.cs @@ -0,0 +1,89 @@ +using System; +using UILib; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EnchantAttrPreviewHandler : DlgHandlerBase + { + private XEnchantDocument _doc = null; + + private IXUISprite m_Close; + + private IXUILabel m_AttrName; + + private IXUILabel m_AttrValue; + + private EnchantEquip.RowData m_Data; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + this.m_Close = (base.PanelObject.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_AttrName = (base.PanelObject.transform.Find("Detail/AttrName").GetComponent("XUILabel") as IXUILabel); + this.m_AttrValue = (base.PanelObject.transform.Find("Detail/AttrValue").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = this.m_Data == null; + if (!flag) + { + XPrefixAttributes enchantAttrs = this._doc.GetEnchantAttrs(this.m_Data.EnchantID); + bool flag2 = enchantAttrs == null; + if (!flag2) + { + XSingleton.singleton.shareSB.Length = 0; + for (int i = 0; i < enchantAttrs.AttributeList.Count; i++) + { + XSingleton.singleton.shareSB.Append(XAttributeCommon.GetAttrStr((int)enchantAttrs.AttributeList[i].attrid)); + XSingleton.singleton.shareSB.Append('\n'); + } + this.m_AttrName.SetText(XSingleton.singleton.shareSB.ToString()); + XSingleton.singleton.shareSB.Length = 0; + for (int j = 0; j < enchantAttrs.AttributeList.Count; j++) + { + XSingleton.singleton.shareSB.Append(XAttributeCommon.GetAttrValueStr(enchantAttrs.AttributeList[j].attrid, (uint)enchantAttrs.AttributeList[j].minValue, true)); + XSingleton.singleton.shareSB.Append('~'); + XSingleton.singleton.shareSB.Append(XAttributeCommon.GetAttrValueStr(enchantAttrs.AttributeList[j].attrid, (uint)enchantAttrs.AttributeList[j].maxValue, false)); + XSingleton.singleton.shareSB.Append('\n'); + } + this.m_AttrValue.SetText(XSingleton.singleton.shareSB.ToString()); + } + } + } + + private void _OnCloseClicked(IXUISprite iSp) + { + base.SetVisible(false); + } + + public void Show(int itemid) + { + this.m_Data = this._doc.GetEnchantEquipData(itemid); + bool flag = this.m_Data == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Cant find enchant item config: " + itemid, null, null, null, null, null); + } + else + { + base.SetVisible(true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantAttrPreviewHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EnchantAttrPreviewHandler.cs.meta new file mode 100644 index 00000000..4ae9c269 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantAttrPreviewHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd4a77338ced97f4bb195e66a5d12cfe +timeCreated: 1611404450 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantBagHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EnchantBagHandler.cs new file mode 100644 index 00000000..5281d425 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantBagHandler.cs @@ -0,0 +1,152 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EnchantBagHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/EnchantListPanel"; + } + } + + private XEnchantDocument _doc = null; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ScrollView; + + private IXUISprite m_Close; + + private IXUIButton m_BtnObtain; + + private GameObject m_Empty; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + this._doc._EnchantBagHandler = this; + this.m_WrapContent = (base.PanelObject.transform.Find("BagPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ScrollView = (base.PanelObject.transform.Find("BagPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Close = (base.PanelObject.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_BtnObtain = (base.PanelObject.transform.Find("Empty/BtnObtain").GetComponent("XUIButton") as IXUIButton); + this.m_Empty = base.PanelObject.transform.Find("Empty").gameObject; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnBagWrapContentUpdated)); + this.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + this.m_BtnObtain.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnObtainClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this._doc._EnchantBagHandler = null; + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + this._doc.GetEnchantItems(); + this.m_WrapContent.SetContentCount(this._doc.ItemList.Count, false); + this.m_Empty.SetActive(this._doc.ItemList.Count == 0); + this.m_ScrollView.ResetPosition(); + } + + private void _OnBagWrapContentUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.ItemList.Count; + if (!flag) + { + IXUILabel ixuilabel = t.Find("AttrName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("AttrValue").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = t.Find("ItemTpl").gameObject; + XSingleton.singleton.DrawItem(gameObject, this._doc.ItemList[index]); + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + } + } + + private void _OnCloseClicked(IXUISprite iSp) + { + base.SetVisible(false); + } + + private void _OnItemClicked(IXUISprite iSp) + { + int num = (int)iSp.ID; + bool flag = num < 0 || num >= this._doc.ItemList.Count; + if (!flag) + { + XItem xitem = this._doc.ItemList[num]; + EnchantEquip.RowData enchantEquipData = this._doc.GetEnchantEquipData(xitem.itemID); + EnchantCheckResult enchantCheckResult = this._doc.CanEnchant(enchantEquipData); + bool flag2 = enchantCheckResult == EnchantCheckResult.ECR_OK; + if (flag2) + { + this._doc.SelectEnchantItem(xitem.itemID); + } + else + { + bool flag3 = xitem.itemConf != null; + if (flag3) + { + EnchantCheckResult enchantCheckResult2 = enchantCheckResult; + if (enchantCheckResult2 != EnchantCheckResult.ECR_ITEM_TOO_LOW) + { + if (enchantCheckResult2 == EnchantCheckResult.ECR_ITEM_TOO_HIGH) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EnchantIntervalRequired", new object[] + { + xitem.itemConf.ReqLevel, + XEnchantDocument.EnchantNeedLevel[(int)enchantEquipData.EnchantLevel] + }), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EnchantMaxLevelRequired", new object[] + { + xitem.itemConf.ReqLevel, + xitem.itemConf.ReqLevel + }), "fece00"); + } + } + } + } + } + + private bool OnObtainClicked(IXUIButton btn) + { + XSingleton.singleton.ShowItemAccess(240, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantBagHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EnchantBagHandler.cs.meta new file mode 100644 index 00000000..fad472b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantBagHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 396a08bd9bca2714f9ddc8f7a9ed1236 +timeCreated: 1611403592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantOperateHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EnchantOperateHandler.cs new file mode 100644 index 00000000..62eb0ee7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantOperateHandler.cs @@ -0,0 +1,528 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EnchantOperateHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/EnchantFrame"; + } + } + + private XEnchantDocument _doc = null; + + private EnchantBagHandler _BagHandler = null; + + private EnchantAttrPreviewHandler _PreviewHandler = null; + + private EnchantActiveHandler _activeHandler = null; + + private EnchantResultHandler _resultHandler = null; + + private GameObject m_uiOperateFrame; + + private GameObject m_uiSelectFrame; + + private GameObject m_uiEquipItem; + + private GameObject m_uiEnchantItem; + + private IXUIButton m_BtnOK; + + private IXUIButton m_BtnClose; + + private IXUIButton m_BtnHelp; + + private IXUILabel m_tipsLab; + + private GameObject m_uiNoBeforeAttr; + + private IXUILabel m_uiCostValue; + + private IXUISprite m_uiCostIcon; + + private IXUISprite m_uiSelect; + + private IXUISprite m_uiPreview; + + private IXUISprite m_uiActiveAttribute; + + private IXUIWrapContent _curEnchantPropertiesContent; + + private IXUIScrollView _scrollView; + + private XItemRequiredCollector m_ItemRequiredCollector = new XItemRequiredCollector(); + + private List m_RedPointEquipPosList = new List(); + + private XEnchantInfo _curEnchantInfo; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + this._doc._EnchantOperateHandler = this; + this.m_tipsLab = (base.PanelObject.transform.Find("Bg/AttrTip/T2").GetComponent("XUILabel") as IXUILabel); + this.m_BtnClose = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnHelp = (base.PanelObject.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_uiOperateFrame = base.PanelObject.transform.Find("Bg/OperateFrame").gameObject; + this.m_uiSelectFrame = base.PanelObject.transform.Find("Bg/SelectFrame").gameObject; + this.m_uiSelect = (this.m_uiSelectFrame.transform.Find("Select").GetComponent("XUISprite") as IXUISprite); + this.m_uiPreview = (this.m_uiOperateFrame.transform.Find("Preview").GetComponent("XUISprite") as IXUISprite); + this.m_uiActiveAttribute = (base.transform.Find("Bg/BtnActivation").GetComponent("XUISprite") as IXUISprite); + this.m_uiEquipItem = base.PanelObject.transform.Find("Bg/Top/EquipItem").gameObject; + this.m_uiEnchantItem = this.m_uiOperateFrame.transform.Find("EnchantItem").gameObject; + this.m_BtnOK = (base.transform.Find("Bg/BtnOK").GetComponent("XUIButton") as IXUIButton); + this.m_uiCostValue = (this.m_uiOperateFrame.transform.Find("Bottom/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_uiCostIcon = (this.m_uiOperateFrame.transform.Find("Bottom/Cost/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_uiNoBeforeAttr = base.transform.Find("Bg/Enchant/NoBeforeAttr").gameObject; + this._curEnchantPropertiesContent = (base.transform.Find("Bg/Enchant/CurEnchantList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._scrollView = (base.transform.Find("Bg/Enchant").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_tipsLab.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("EnchantNewTip"))); + DlgHandlerBase.EnsureCreate(ref this._BagHandler, base.PanelObject.transform, false, this); + DlgHandlerBase.EnsureCreate(ref this._PreviewHandler, base.PanelObject.transform.Find("Bg/AttrPanel").gameObject, this, false); + DlgHandlerBase.EnsureCreate(ref this._activeHandler, base.PanelObject.transform, false, this); + DlgHandlerBase.EnsureCreate(ref this._resultHandler, base.PanelObject.transform, false, this); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnOK.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKClicked)); + this.m_BtnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseClicked)); + this.m_uiSelect.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnEnchantItemClicked)); + this.m_BtnHelp.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnHelpClicked)); + this.m_uiPreview.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnPreviewClicked)); + this.m_uiActiveAttribute.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnToActiveEnchantAttribute)); + IXUISprite ixuisprite = this.m_uiEquipItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnEquipIconClicked)); + IXUISprite ixuisprite2 = this.m_uiEnchantItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnEnchantItemClicked)); + this._curEnchantPropertiesContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.EnchantListUpdate)); + } + + private void EnchantListUpdate(Transform itemTransform, int index) + { + bool flag = index < this._curEnchantInfo.AttrList.Count; + if (flag) + { + XItemChangeAttr xitemChangeAttr = this._curEnchantInfo.AttrList[index]; + IXUISprite ixuisprite = itemTransform.Find("Sprite").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetVisible(this._curEnchantInfo.ChooseAttr == xitemChangeAttr.AttrID); + IXUILabel ixuilabel = itemTransform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText("+" + xitemChangeAttr.AttrValue); + IXUILabel ixuilabel2 = itemTransform.GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(XAttributeCommon.GetAttrStr((int)xitemChangeAttr.AttrID)); + IXUILabel ixuilabel3 = itemTransform.Find("AfterAttr").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(""); + EnchantEquip.RowData enchantEquipData = this._doc.GetEnchantEquipData(this._doc.SelectedItemID); + bool flag2 = false; + bool flag3 = enchantEquipData != null; + if (flag3) + { + for (int i = 0; i < (int)enchantEquipData.Attribute.count; i++) + { + bool flag4 = enchantEquipData.Attribute[i, 0] == xitemChangeAttr.AttrID; + if (flag4) + { + ixuilabel3.SetText(string.Concat(new object[] + { + "[", + enchantEquipData.Attribute[i, 1], + ",", + enchantEquipData.Attribute[i, 2], + "]" + })); + flag2 = true; + break; + } + } + } + bool flag5 = !flag2 && !this.m_uiSelectFrame.activeInHierarchy; + if (flag5) + { + ixuilabel3.SetText(XSingleton.singleton.GetString("CurEnchantNoAttr")); + } + } + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = DlgBase.singleton._equipHandler != null; + if (flag) + { + DlgBase.singleton._equipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this._OnEquipClicked)); + } + bool flag2 = this._BagHandler.IsVisible(); + if (flag2) + { + this._BagHandler.SetVisible(false); + } + bool flag3 = this._PreviewHandler.IsVisible(); + if (flag3) + { + this._PreviewHandler.SetVisible(false); + } + bool flag4 = this._activeHandler.IsVisible(); + if (flag4) + { + this._activeHandler.SetVisible(false); + } + bool flag5 = this._resultHandler.IsVisible(); + if (flag5) + { + this._resultHandler.SetVisible(false); + } + this.UpdateShowingItems(); + this.RefreshData(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshData(); + bool flag = this._BagHandler != null && this._BagHandler.IsVisible(); + if (flag) + { + this._BagHandler.StackRefresh(); + } + bool flag2 = DlgBase.singleton._equipHandler != null; + if (flag2) + { + DlgBase.singleton._equipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this._OnEquipClicked)); + } + } + + protected override void OnHide() + { + this._doc.ToggleBlock(false); + this._KillTimer(); + DlgBase.singleton.OnPopHandlerSetVisible(false, null); + DlgBase.singleton.StackRefresh(); + bool flag = DlgBase.singleton._equipHandler != null; + if (flag) + { + DlgBase.singleton._equipHandler.RegisterItemClickEvents(null); + DlgBase.singleton._equipHandler.SelectEquip(0UL); + } + base.OnHide(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._BagHandler); + DlgHandlerBase.EnsureUnload(ref this._PreviewHandler); + DlgHandlerBase.EnsureUnload(ref this._resultHandler); + DlgHandlerBase.EnsureUnload(ref this._activeHandler); + this._doc._EnchantOperateHandler = null; + this._KillTimer(); + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this._RefreshPage(); + } + + private void _RefreshPage() + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID) as XEquipItem; + bool flag = xequipItem == null; + if (flag) + { + base.SetVisible(false); + } + else + { + this._curEnchantInfo = xequipItem.enchantInfo; + this._doc.ToggleBlock(false); + this.ResetOKCD(); + XSingleton.singleton.DrawItem(this.m_uiEquipItem, xequipItem); + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + bool flag2 = equipConf == null; + if (!flag2) + { + EnchantEquip.RowData enchantEquipData = this._doc.GetEnchantEquipData(this._doc.SelectedItemID); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._doc.SelectedItemID); + bool flag3 = XEnchantDocument.IsEnchantMatched(equipConf, enchantEquipData) && this._doc.CanEnchant(enchantEquipData) == EnchantCheckResult.ECR_OK; + if (flag3) + { + this._ShowOperatePage(xequipItem, enchantEquipData); + } + else + { + this._ShowSelectPage(); + } + this._curEnchantPropertiesContent.SetContentCount(xequipItem.enchantInfo.AttrList.Count, false); + this._scrollView.ResetPosition(); + this._RefreshNoAttr(xequipItem, enchantEquipData); + } + } + } + + private void _ShowOperatePage(XEquipItem equipItem, EnchantEquip.RowData enchantData) + { + this.m_uiOperateFrame.SetActive(true); + this.m_uiSelectFrame.SetActive(false); + this._RefreshItems(enchantData); + } + + private void _RefreshItems(EnchantEquip.RowData enchantData) + { + this.m_ItemRequiredCollector.Init(); + this._RefreshEnchantItem(enchantData); + this._RefreshCost(enchantData); + } + + private void _RefreshEnchantItem(EnchantEquip.RowData enchantData) + { + bool flag = this._doc.SelectedItemID == 0 || enchantData == null; + if (!flag) + { + XItemRequired requiredItem = this.m_ItemRequiredCollector.GetRequiredItem((uint)this._doc.SelectedItemID, (ulong)enchantData.Num, 1f); + bool flag2 = requiredItem == null; + if (!flag2) + { + Color value = requiredItem.bEnough ? Color.white : Color.red; + XItemDrawerMgr.Param.MaxItemCount = (int)enchantData.Num; + XItemDrawerMgr.Param.NumColor = new Color?(value); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_uiEnchantItem, this._doc.SelectedItemID, (int)requiredItem.ownedCount, true); + } + } + } + + private void _RefreshNoAttr(XEquipItem equipItem, EnchantEquip.RowData enchantData) + { + bool flag = equipItem == null; + if (flag) + { + equipItem = (XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID) as XEquipItem); + } + this.m_uiActiveAttribute.gameObject.SetActive(this._curEnchantInfo.AttrList.Count > 0); + this.m_uiNoBeforeAttr.SetActive(true); + IXUILabel ixuilabel = this.m_uiNoBeforeAttr.GetComponent("XUILabel") as IXUILabel; + bool flag2 = this.m_uiSelectFrame.activeInHierarchy && equipItem.enchantInfo.AttrList.Count == 0; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("EnchantNOItemTip"))); + } + else + { + bool flag3 = equipItem != null && equipItem.enchantInfo.AttrList.Count == 0; + if (flag3) + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("EnchantNOAttrTip"))); + } + else + { + this.m_uiNoBeforeAttr.SetActive(false); + } + } + } + + private void _RefreshOMG(ref XEnchantInfo info) + { + } + + public void RefreshItems() + { + EnchantEquip.RowData enchantEquipData = this._doc.GetEnchantEquipData(this._doc.SelectedItemID); + this._RefreshItems(enchantEquipData); + } + + private void _RefreshCost(EnchantEquip.RowData enchantData) + { + bool flag = enchantData != null; + if (flag) + { + for (int i = 0; i < enchantData.Cost.Count; i++) + { + XItemRequired requiredItem = this.m_ItemRequiredCollector.GetRequiredItem(enchantData.Cost[i, 0], (ulong)enchantData.Cost[i, 1], 1f); + bool flag2 = requiredItem == null; + if (!flag2) + { + this.m_uiCostValue.SetText(requiredItem.requiredCount.ToString()); + this.m_uiCostValue.SetColor(requiredItem.bEnough ? Color.white : Color.red); + this.m_uiCostIcon.SetSprite(XBagDocument.GetItemSmallIcon(requiredItem.itemID, 0u)); + } + } + } + } + + private void _ShowSelectPage() + { + this.m_uiOperateFrame.SetActive(false); + this.m_uiSelectFrame.SetActive(true); + } + + public void RefreshRedPoints() + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton._equipHandler != null; + if (flag) + { + this.m_RedPointEquipPosList.Clear(); + for (int i = 0; i < XBagDocument.EquipMax; i++) + { + bool flag2 = this._doc.RedPointStates[i]; + if (flag2) + { + this.m_RedPointEquipPosList.Add(i); + } + } + DlgBase.singleton._equipHandler.SetArrows(this.m_RedPointEquipPosList); + } + } + + private bool _OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool _OnOKClicked(IXUIButton btn) + { + bool activeInHierarchy = this.m_uiSelectFrame.activeInHierarchy; + bool result; + if (activeInHierarchy) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("NoEnchantItem"), "fece00"); + result = true; + } + else + { + bool flag = !this.m_ItemRequiredCollector.bItemsEnough; + if (flag) + { + for (int i = 0; i < this.m_ItemRequiredCollector.RequiredItems.Count; i++) + { + bool flag2 = !this.m_ItemRequiredCollector.RequiredItems[i].bEnough; + if (flag2) + { + DlgBase.singleton.ShowBorad(this.m_ItemRequiredCollector.RequiredItems[i].itemID); + break; + } + } + result = true; + } + else + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID) as XEquipItem; + bool flag3 = xequipItem == null; + if (flag3) + { + result = true; + } + else + { + this._DoOK(null); + result = true; + } + } + } + return result; + } + + private bool _DoOK(IXUIButton btn) + { + this._resultHandler.SetVisible(true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_ENCHANT_REPLACE_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_ENCHANT_REPLACE) ? 1 : 0, false); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool _DoCancel(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_ENCHANT_REPLACE_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_ENCHANT_REPLACE) ? 1 : 0, false); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public void PlayFx() + { + } + + private void _KillTimer() + { + } + + private void _OnEnchantItemClicked(IXUISprite iSp) + { + this._doc.GetEnchantItems(); + bool flag = this._doc.ItemList.Count > 0; + if (flag) + { + this._BagHandler.SetVisible(true); + } + else + { + int itemid = (this._doc.SelectedItemID == 0) ? 240 : this._doc.SelectedItemID; + XSingleton.singleton.ShowItemAccess(itemid, null); + } + } + + private void _OnEquipClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID != null; + if (flag) + { + this._doc.SelectEquip(itemByUID.uid); + } + } + + private bool _OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Item_Enchant); + return true; + } + + private void _OnEquipIconClicked(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID), null, iSp, false, 0u); + } + + private void _OnEnchantIconClicked(IXUISprite iSp) + { + XSingleton.singleton.ShowTooltipDialog(this._doc.SelectedItemID, iSp, 0u); + } + + private void _OnPreviewClicked(IXUISprite iSp) + { + bool flag = this._doc.SelectedItemID > 0; + if (flag) + { + this._PreviewHandler.Show(this._doc.SelectedItemID); + } + } + + private void _OnToActiveEnchantAttribute(IXUISprite uiSprite) + { + this._activeHandler.SetVisible(true); + } + + private void UpdateShowingItems() + { + } + + public void ResetOKCD() + { + this.m_BtnOK.ResetCD(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantOperateHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EnchantOperateHandler.cs.meta new file mode 100644 index 00000000..85495056 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantOperateHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e75dec414cb5ffb4892874b71f6e2f95 +timeCreated: 1611404749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantResultHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EnchantResultHandler.cs new file mode 100644 index 00000000..a87bc1ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantResultHandler.cs @@ -0,0 +1,305 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EnchantResultHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/EnchantResultPanel"; + } + } + + private XEnchantDocument _doc = null; + + private GameObject _equipItem; + + private IXUISprite _enchantIcon; + + private IXUIButton _accessBtn; + + private XItemRequiredCollector m_ItemRequiredCollector = new XItemRequiredCollector(); + + private IXUILabel _costStone; + + private IXUILabel m_uiCostValue; + + private IXUISprite m_uiCostIcon; + + private IXUISprite m_Close; + + private IXUIScrollView _scrollView; + + private IXUIWrapContent _wrapContent; + + private XEnchantInfo _curEnchantInfo; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + this._doc._EnchantResultHandler = this; + this.InitProperties(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.ReqEnchant(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this._doc._EnchantResultHandler = null; + this._doc = null; + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID) as XEquipItem; + bool flag = xequipItem == null; + if (flag) + { + base.SetVisible(false); + } + else + { + this._curEnchantInfo = xequipItem.enchantInfo; + this._RefreshCost(); + this._wrapContent.SetContentCount(this._curEnchantInfo.AttrList.Count, false); + this._scrollView.ResetPosition(); + } + } + + private void InitProperties() + { + IXUIButton ixuibutton = base.PanelObject.transform.Find("Bottom/BtnOK").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ContinueToEnchant)); + this.m_uiCostValue = (base.transform.Find("Bottom/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_uiCostIcon = (base.transform.Find("Bottom/Cost/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_Close = (base.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClose)); + this._equipItem = base.transform.Find("Top/EquipItem").gameObject; + this._enchantIcon = (base.transform.Find("Bottom/CostStone/Icon").GetComponent("XUISprite") as IXUISprite); + this._accessBtn = (base.transform.Find("Bottom/BtnGet").GetComponent("XUIButton") as IXUIButton); + this._accessBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ToAccesss)); + this._costStone = (base.transform.Find("Bottom/CostStone").GetComponent("XUILabel") as IXUILabel); + this._wrapContent = (base.transform.Find("Detail/wrapcontent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateWrapContent)); + this._scrollView = (base.transform.Find("Detail").GetComponent("XUIScrollView") as IXUIScrollView); + } + + private void UpdateWrapContent(Transform itemTransform, int index) + { + bool flag = index >= this._curEnchantInfo.AttrList.Count; + if (!flag) + { + GameObject gameObject = itemTransform.Find("New").gameObject; + IXUILabel ixuilabel = itemTransform.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = itemTransform.Find("Right").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject2 = itemTransform.Find("Jt/Up").gameObject; + GameObject gameObject3 = itemTransform.Find("Jt/Down").gameObject; + GameObject gameObject4 = itemTransform.Find("Jt/unchanged").gameObject; + gameObject2.SetActive(false); + gameObject3.SetActive(false); + gameObject4.SetActive(false); + gameObject.SetActive(false); + XItemChangeAttr xitemChangeAttr = this._curEnchantInfo.AttrList[index]; + string text = XAttributeCommon.GetAttrStr((int)xitemChangeAttr.AttrID) + "+" + xitemChangeAttr.AttrValue; + bool flag2 = xitemChangeAttr.AttrID == this._doc.LastEnchantAttr.AttrID; + if (flag2) + { + int changedPreAttrValue = this.GetChangedPreAttrValue(); + gameObject.SetActive(changedPreAttrValue < 0); + bool flag3 = changedPreAttrValue >= 0; + if (flag3) + { + gameObject4.gameObject.SetActive((long)changedPreAttrValue == (long)((ulong)this._doc.LastEnchantAttr.AttrValue)); + gameObject2.SetActive((long)changedPreAttrValue < (long)((ulong)this._doc.LastEnchantAttr.AttrValue)); + gameObject3.SetActive((long)changedPreAttrValue > (long)((ulong)this._doc.LastEnchantAttr.AttrValue)); + bool flag4 = (long)changedPreAttrValue < (long)((ulong)this._doc.LastEnchantAttr.AttrValue); + if (flag4) + { + text = string.Concat(new object[] + { + "[00ff00]", + text, + " ", + (long)((ulong)this._doc.LastEnchantAttr.AttrValue - (ulong)((long)changedPreAttrValue)), + "[-]" + }); + } + else + { + bool flag5 = (long)changedPreAttrValue > (long)((ulong)this._doc.LastEnchantAttr.AttrValue); + if (flag5) + { + text = string.Concat(new object[] + { + text, + " [ff0000]", + (long)changedPreAttrValue - (long)((ulong)this._doc.LastEnchantAttr.AttrValue), + "[-]" + }); + } + } + } + } + string text2 = ""; + EnchantEquip.RowData enchantEquipData = this._doc.GetEnchantEquipData(this._doc.SelectedItemID); + bool flag6 = enchantEquipData != null; + if (flag6) + { + for (int i = 0; i < (int)enchantEquipData.Attribute.count; i++) + { + bool flag7 = enchantEquipData.Attribute[i, 0] == xitemChangeAttr.AttrID; + if (flag7) + { + text2 = string.Concat(new object[] + { + " [", + enchantEquipData.Attribute[i, 1], + ",", + enchantEquipData.Attribute[i, 2], + "]" + }); + break; + } + } + } + ixuilabel.SetText(text); + ixuilabel2.SetText(text2); + } + } + + private bool ToAccesss(IXUIButton button) + { + XSingleton.singleton.ShowItemAccess(240, null); + return true; + } + + private bool ContinueToEnchant(IXUIButton button) + { + bool flag = !this.m_ItemRequiredCollector.bItemsEnough; + bool result; + if (flag) + { + for (int i = 0; i < this.m_ItemRequiredCollector.RequiredItems.Count; i++) + { + bool flag2 = !this.m_ItemRequiredCollector.RequiredItems[i].bEnough; + if (flag2) + { + DlgBase.singleton.ShowBorad(this.m_ItemRequiredCollector.RequiredItems[i].itemID); + break; + } + } + result = true; + } + else + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID) as XEquipItem; + bool flag3 = xequipItem == null; + if (flag3) + { + result = true; + } + else + { + this._doc.ReqEnchant(); + result = true; + } + } + return result; + } + + private void OnClose(IXUISprite uiSprite) + { + base.SetVisible(false); + } + + private void _RefreshCost() + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._doc.SelectedItemID); + bool flag = itemConf != null; + if (flag) + { + this._enchantIcon.SetSprite(itemConf.ItemIcon1[0]); + } + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.SelectedEquipUID) as XEquipItem; + bool flag2 = xequipItem != null; + if (flag2) + { + XSingleton.singleton.DrawItem(this._equipItem, xequipItem); + } + this.m_ItemRequiredCollector.Init(); + EnchantEquip.RowData enchantEquipData = this._doc.GetEnchantEquipData(this._doc.SelectedItemID); + bool flag3 = enchantEquipData != null; + if (flag3) + { + for (int i = 0; i < enchantEquipData.Cost.Count; i++) + { + XItemRequired requiredItem = this.m_ItemRequiredCollector.GetRequiredItem(enchantEquipData.Cost[i, 0], (ulong)enchantEquipData.Cost[i, 1], 1f); + bool flag4 = requiredItem == null; + if (!flag4) + { + this.m_uiCostValue.SetText(requiredItem.requiredCount.ToString()); + this.m_uiCostValue.SetColor(requiredItem.bEnough ? Color.white : Color.red); + this.m_uiCostIcon.SetSprite(XBagDocument.GetItemSmallIcon(requiredItem.itemID, 0u)); + } + } + } + XItemRequired requiredItem2 = this.m_ItemRequiredCollector.GetRequiredItem((uint)this._doc.SelectedItemID, (ulong)enchantEquipData.Num, 1f); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(this._doc.SelectedItemID); + uint num = (enchantEquipData == null) ? 0u : enchantEquipData.Num; + this._costStone.SetText(itemCount + "/" + num); + this._costStone.SetColor((itemCount >= (ulong)num) ? Color.white : Color.red); + this._costStone.gameObject.transform.Find("GetTip").gameObject.SetActive(itemCount < (ulong)num); + } + + private void RefreshAfterAttri() + { + } + + private int GetChangedPreAttrValue() + { + XEnchantInfo preEnchantInfo = this._doc.GetPreEnchantInfo(); + XEnchantInfo curEnchantInfo = this._curEnchantInfo; + int result = -1; + uint attrID = this._doc.LastEnchantAttr.AttrID; + for (int i = 0; i < preEnchantInfo.AttrList.Count; i++) + { + bool flag = preEnchantInfo.AttrList[i].AttrID == attrID; + if (flag) + { + result = (int)preEnchantInfo.AttrList[i].AttrValue; + break; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EnchantResultHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EnchantResultHandler.cs.meta new file mode 100644 index 00000000..48bda0d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnchantResultHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee6524004232b9b44ad9171a91cd0d95 +timeCreated: 1611404797 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EncourageShowInfo.cs b/Client/Assets/Scripts/XMainClient/UI/EncourageShowInfo.cs new file mode 100644 index 00000000..c3c729d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EncourageShowInfo.cs @@ -0,0 +1,112 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + public class EncourageShowInfo + { + public uint EncourageCount + { + get + { + return this._battleSource.GetEncourageCount(this._index); + } + } + + public bool Valid + { + get + { + return this._valid; + } + set + { + this._valid = value; + this.ReqEncourage = null; + this._encourageTransform.gameObject.SetActive(value); + this._buffTransfrom.gameObject.SetActive(value); + } + } + + public IWorldBossBattleSource BattleSource + { + get + { + return this._battleSource; + } + set + { + this._battleSource = value; + } + } + + public string attr_string; + + public string cost_string; + + public string encourage_type; + + public string encourage_title; + + public string encourage_effect; + + private IWorldBossBattleSource _battleSource; + + private bool _valid = true; + + private IXUIButton _courageBtn; + + private IXUILabel _courageValueText; + + private IXUITweenTool _courageValueTween; + + private IXUILabel _courageLabel; + + private Transform _encourageTransform; + + private Transform _buffTransfrom; + + private int _index; + + public Action ReqEncourage = null; + + public bool isNeedGuild = false; + + public EncourageShowInfo(Transform encourage, Transform buff, int index) + { + this._index = index; + this._encourageTransform = encourage; + this._buffTransfrom = buff; + this._courageBtn = (encourage.GetComponent("XUIButton") as IXUIButton); + this._courageValueText = (buff.transform.Find("buff").GetComponent("XUILabel") as IXUILabel); + this._courageValueTween = (buff.transform.Find("buff").GetComponent("XUIPlayTween") as IXUITweenTool); + this._courageLabel = (buff.transform.Find("text").GetComponent("XUILabel") as IXUILabel); + this._courageValueText.SetText("0%"); + this._courageBtn.ID = (ulong)((long)index); + } + + public void RegisterCourageClick(ButtonClickEventHandler handler) + { + bool flag = this._courageBtn != null; + if (flag) + { + this._courageBtn.RegisterClickEventHandler(handler); + } + } + + public void SetEncourageValue(int attrValue) + { + this._courageLabel.SetText(XStringDefineProxy.GetString(this.encourage_title)); + this._courageValueText.SetVisible(true); + this._courageValueText.SetText(string.Format("{0}%", (long)attrValue * (long)((ulong)this.EncourageCount))); + this._courageValueTween.ResetTween(true); + this._courageValueTween.PlayTween(true, 0.5f); + } + + public void OnDispose() + { + this.ReqEncourage = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EncourageShowInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EncourageShowInfo.cs.meta new file mode 100644 index 00000000..8545e343 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EncourageShowInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca2b1983fc5e1284cb61fdf754d3f82c +timeCreated: 1611404540 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssBehaviour.cs new file mode 100644 index 00000000..5481db72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssBehaviour.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EndlessAbyssBehaviour : DlgBehaviourBase + { + public IXUIButton m_closedBtn; + + public IXUIButton m_Help; + + public IXUIButton m_shopBtn; + + public IXUIButton m_goBattleBtn; + + public GameObject m_noTimesGo; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_canJoinTimeslab; + + private void Awake() + { + Transform transform = base.transform.Find("Bg"); + this.m_closedBtn = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_goBattleBtn = (transform.Find("GoBattle").GetComponent("XUIButton") as IXUIButton); + this.m_shopBtn = (transform.Find("BtnShop").GetComponent("XUIButton") as IXUIButton); + this.m_noTimesGo = transform.Find("NoJoinTimesTips").gameObject; + Transform transform2 = transform.Find("Reward/Item/ItemTpl"); + this.m_ItemPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 3u, false); + this.m_canJoinTimeslab = (transform.Find("times").GetComponent("XUILabel") as IXUILabel); + this.m_canJoinTimeslab.SetText(""); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssBehaviour.cs.meta new file mode 100644 index 00000000..f810e204 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee108dbd68ca97c48883ebb6c5b0ad7b +timeCreated: 1611404794 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssDlg.cs b/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssDlg.cs new file mode 100644 index 00000000..df205601 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssDlg.cs @@ -0,0 +1,211 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EndlessAbyssDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/EndlessAbyssDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XExpeditionDocument _doc; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this.RefreshTimes(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDlg)); + base.uiBehaviour.m_goBattleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterTeamClick)); + base.uiBehaviour.m_shopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoToShop)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_EndlessAbyss); + return true; + } + + protected override void OnShow() + { + this.RequstLeftCount(); + this.FillItem(); + } + + protected override void OnHide() + { + } + + private bool OnGoToShop(IXUIButton button) + { + DlgBase.singleton.ShowShopSystem(EndlessAbyssDlg.GetShopSystem(), 0UL); + return true; + } + + public static XSysDefine GetShopSystem() + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("EndlessabyssLevelInterval", true); + List intList = XSingleton.singleton.GetIntList("EndlessabyssShopType"); + int level = (int)XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag = level >= sequenceList[i, 0] && level <= sequenceList[i, 1]; + if (flag) + { + return (XSysDefine)(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Mall_MystShop) + intList[i]); + } + } + XSingleton.singleton.AddErrorLog("Can't find player level state from golbalconfig EndlessabyssLevelInterval. level = ", level.ToString(), null, null, null, null); + return XSysDefine.XSys_Mall_32A; + } + + private void FillItem() + { + string text = ""; + List stringList = XSingleton.singleton.GetStringList("EndlessabyssDropShow"); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("EndlessabyssLevelInterval", true); + bool flag = (int)sequenceList.Count != stringList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("EndlessAbyss reward config error! level interval's count is not the same as reward interval's cout.", null, null, null, null, null); + } + uint level = XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag2 = (ulong)level >= (ulong)((long)sequenceList[i, 0]) && (ulong)level <= (ulong)((long)sequenceList[i, 1]); + if (flag2) + { + text = stringList[i]; + } + } + bool flag3 = text == ""; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Can't find the reward of EndlessAbyss from globalconfig, level = ", level.ToString(), null, null, null, null); + } + string[] array = text.Split(XGlobalConfig.SequenceSeparator); + base.uiBehaviour.m_ItemPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_ItemPool.TplPos; + float num = tplPos.x - ((float)array.Length - 1f) / 2f * (float)base.uiBehaviour.m_ItemPool.TplWidth; + for (int j = 0; j < array.Length; j++) + { + int num2 = int.Parse(array[j]); + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(num + (float)(j * base.uiBehaviour.m_ItemPool.TplWidth), tplPos.y); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, num2, 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num2); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowTip)); + } + } + + public void RefreshTimes() + { + bool flag = this._doc == null || !base.IsVisible(); + if (!flag) + { + int dayCount = this._doc.GetDayCount(TeamLevelType.TeamLevelEndlessAbyss, null); + int dayMaxCount = this._doc.GetDayMaxCount(TeamLevelType.TeamLevelEndlessAbyss, null); + base.uiBehaviour.m_canJoinTimeslab.SetText(string.Format("{0}/{1}", dayCount, dayMaxCount)); + bool flag2 = dayCount > 0; + base.uiBehaviour.m_goBattleBtn.SetVisible(flag2); + base.uiBehaviour.m_noTimesGo.SetActive(!flag2); + } + } + + private void RequstLeftCount() + { + List expeditionList = this._doc.GetExpeditionList(TeamLevelType.TeamLevelEndlessAbyss); + bool flag = expeditionList != null && expeditionList.Count > 0; + if (flag) + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + for (int i = 0; i < expeditionList.Count; i++) + { + bool flag2 = specificDocument.SealType == expeditionList[i].LevelSealType; + if (flag2) + { + this._doc.ExpeditionId = expeditionList[i].DNExpeditionID; + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument2.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + return; + } + } + } + XSingleton.singleton.AddLog("Df data is error,not find target DATA!", null, null, null, null, null, XDebugColor.XDebug_None); + } + + private bool OnCloseDlg(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnEnterTeamClick(IXUIButton button) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(this._doc.ExpeditionId); + return true; + } + + private void ShowTip(IXUISprite sp) + { + XSingleton.singleton.OnItemClick(sp); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssDlg.cs.meta new file mode 100644 index 00000000..356665b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EndlessAbyssDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9939addb79472248b61b06ec7453634 +timeCreated: 1611404299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EnemyInfoUpdater.cs b/Client/Assets/Scripts/XMainClient/UI/EnemyInfoUpdater.cs new file mode 100644 index 00000000..481a4be2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnemyInfoUpdater.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient.UI +{ + internal delegate void EnemyInfoUpdater(); +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EnemyInfoUpdater.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EnemyInfoUpdater.cs.meta new file mode 100644 index 00000000..f979c721 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnemyInfoUpdater.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c29e43c5d6efc6046bd0fcd4b6b89890 +timeCreated: 1611404494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EnhanceMasterHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EnhanceMasterHandler.cs new file mode 100644 index 00000000..fd403e21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnhanceMasterHandler.cs @@ -0,0 +1,158 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EnhanceMasterHandler : DlgHandlerBase + { + private XEnhanceDocument m_doc + { + get + { + return XEnhanceDocument.Doc; + } + } + + protected override string FileName + { + get + { + return "ItemNew/EnhanceMaster"; + } + } + + private XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_HistoryMaxLevel; + + private IXUILabel m_NextStageLevel; + + private IXUILabel m_effectTipsLab; + + private IXUISprite m_closedSpr; + + private GameObject m_CurAttrListGo; + + private GameObject m_NextStageAttrListGo; + + private GameObject m_NoTipsGo; + + private GameObject m_MaxTipsGo; + + private readonly int m_gap = 30; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("AttriTpl"); + this.m_AttrPool.SetupPool(base.PanelObject, transform.gameObject, 2u, false); + this.m_CurAttrListGo = base.PanelObject.transform.Find("CurAttrList").gameObject; + this.m_NextStageAttrListGo = base.PanelObject.transform.Find("NextStageAttrList").gameObject; + this.m_NoTipsGo = base.PanelObject.transform.Find("NoTips").gameObject; + this.m_MaxTipsGo = base.PanelObject.transform.Find("MaxTips").gameObject; + this.m_HistoryMaxLevel = (base.PanelObject.transform.Find("HistoryLevel/Num").GetComponent("XUILabel") as IXUILabel); + this.m_NextStageLevel = (base.PanelObject.transform.Find("NextStage/Num").GetComponent("XUILabel") as IXUILabel); + this.m_effectTipsLab = (base.PanelObject.transform.Find("EffectTips").GetComponent("XUILabel") as IXUILabel); + this.m_closedSpr = (base.PanelObject.transform.Find("Bg/Box").GetComponent("XUISprite") as IXUISprite); + this.m_doc.enhanceMasterView = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closedSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickClose)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_AttrPool.ReturnAll(false); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void RefreshView() + { + this.FillContent(); + } + + private void FillContent() + { + this.m_HistoryMaxLevel.SetText(string.Format("{0}{1}", this.m_doc.HistoryMaxLevel, XStringDefineProxy.GetString("LevelName"))); + this.m_NextStageLevel.SetText(""); + this.m_effectTipsLab.SetText(XEquipDocument.GetTips(XSingleton.singleton.XPlayerData.BasicTypeID, this.m_doc.HistoryMaxLevel)); + this.m_AttrPool.ReturnAll(false); + bool flag = this.m_doc.HistoryMaxLevel == 0u; + if (flag) + { + this.m_NoTipsGo.SetActive(true); + } + else + { + this.m_NoTipsGo.SetActive(false); + EnhanceMaster.RowData curStageEnhanceMasterRowData = this.m_doc.GetCurStageEnhanceMasterRowData(this.m_doc.HistoryMaxLevel); + bool flag2 = curStageEnhanceMasterRowData != null; + if (flag2) + { + for (int i = 0; i < curStageEnhanceMasterRowData.Attribute.Count; i++) + { + GameObject gameObject = this.m_AttrPool.FetchGameObject(false); + gameObject.name = i.ToString(); + gameObject.transform.parent = this.m_CurAttrListGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)i * this.m_gap), 0f); + this.FillAttrItem(gameObject, curStageEnhanceMasterRowData.Attribute[i, 0], curStageEnhanceMasterRowData.Attribute[i, 1]); + } + } + } + bool flag3 = this.m_doc.HistoryMaxLevel >= this.m_doc.TheMasterMaxLevel; + if (flag3) + { + this.m_MaxTipsGo.SetActive(true); + } + else + { + this.m_MaxTipsGo.SetActive(false); + EnhanceMaster.RowData nextStageEnhanceMasterRowData = this.m_doc.GetNextStageEnhanceMasterRowData(this.m_doc.HistoryMaxLevel); + bool flag4 = nextStageEnhanceMasterRowData != null; + if (flag4) + { + for (int j = 0; j < nextStageEnhanceMasterRowData.Attribute.Count; j++) + { + GameObject gameObject = this.m_AttrPool.FetchGameObject(false); + gameObject.name = j.ToString(); + gameObject.transform.parent = this.m_NextStageAttrListGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)j * this.m_gap), 0f); + this.FillAttrItem(gameObject, nextStageEnhanceMasterRowData.Attribute[j, 0], nextStageEnhanceMasterRowData.Attribute[j, 1]); + } + this.m_NextStageLevel.SetText(string.Format("{0}{1}", nextStageEnhanceMasterRowData.TotalEnhanceLevel, XStringDefineProxy.GetString("LevelName"))); + } + } + } + + private void FillAttrItem(GameObject go, uint id, uint value) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString((XAttributeDefine)id)); + ixuilabel = (go.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("+{0}", value)); + } + + private void OnClickClose(IXUISprite sp) + { + base.SetVisible(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EnhanceMasterHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EnhanceMasterHandler.cs.meta new file mode 100644 index 00000000..4c96592b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnhanceMasterHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2ea59cb0cfad6741b6b2181d5584d3f +timeCreated: 1611404730 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EnhanceView.cs b/Client/Assets/Scripts/XMainClient/UI/EnhanceView.cs new file mode 100644 index 00000000..460f891e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnhanceView.cs @@ -0,0 +1,772 @@ +using System; +using System.Collections.Generic; +using System.Text; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EnhanceView : DlgHandlerBase + { + private XEnhanceDocument m_doc + { + get + { + return XEnhanceDocument.Doc; + } + } + + protected override string FileName + { + get + { + return "ItemNew/EnhanceFrame"; + } + } + + public string EnhanceSucPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_enhanceSucPath); + if (flag) + { + this.m_enhanceSucPath = XSingleton.singleton.GetValue("EnhanceSucEffectPath"); + } + return this.m_enhanceSucPath; + } + } + + public string BreakSucPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_breakSucPath); + if (flag) + { + this.m_breakSucPath = XSingleton.singleton.GetValue("BreakSucEffectPath"); + } + return this.m_breakSucPath; + } + } + + public string EnhanceLostPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_enhanceLostPath); + if (flag) + { + this.m_enhanceLostPath = XSingleton.singleton.GetValue("EnhanceLostEffectPath"); + } + return this.m_enhanceLostPath; + } + } + + private XUIPool m_BeforeAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_AfterAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_Help; + + private IXUIButton m_CloseBtn; + + private IXUIButton m_EnhanceBtn; + + private IXUILabel m_SuccessRateLab; + + private IXUILabel m_AddRateLab; + + private IXUILabel m_TipsLab; + + private IXUILabel m_TittleLab; + + private IXUILabel m_EnhanceBtnLab; + + private IXUILabel m_MaxTipsLab; + + private IXUILabel m_BreakRateLab; + + private GameObject m_topItemGo; + + private GameObject m_EnhanceGo; + + private GameObject m_EnhanceMaxGo; + + private GameObject m_BeforeEnhanceGo; + + private GameObject m_AfterEnhanceGo; + + private GameObject m_MaxAttrListGo; + + private List m_effectGoList = new List(); + + private Transform m_effectsTra; + + private XFx m_EnhanceSucceedEffect; + + private XFx m_BreakSucceedEffect; + + private XFx m_EnhanceLostEffect; + + private List m_costItemTras; + + private uint m_token = 0u; + + private uint m_effectToken; + + private readonly int m_gap = 30; + + private bool m_bIsCanClick = true; + + private float m_delayTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private string m_enhanceSucPath = string.Empty; + + private string m_breakSucPath = string.Empty; + + private string m_enhanceLostPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.m_CloseBtn = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Bg/Top"); + this.m_topItemGo = transform.Find("EnhanceItem").gameObject; + this.m_SuccessRateLab = (transform.Find("SuccessRate").GetComponent("XUILabel") as IXUILabel); + this.m_AddRateLab = (transform.Find("AddRate").GetComponent("XUILabel") as IXUILabel); + this.m_BreakRateLab = (transform.Find("BreakRate").GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Bg/EnhanceMax"); + this.m_EnhanceMaxGo = transform.gameObject; + this.m_MaxAttrListGo = transform.Find("MaxAttrList").gameObject; + this.m_MaxTipsLab = (transform.Find("Bottom/MaxTips").GetComponent("XUILabel") as IXUILabel); + this.m_EnhanceGo = base.PanelObject.transform.Find("Bg/Enhance").gameObject; + transform = this.m_EnhanceGo.transform.Find("EnhanceAttr"); + this.m_BeforeEnhanceGo = transform.Find("BeforeEnhance").gameObject; + this.m_AfterEnhanceGo = transform.Find("AfterEnhance").gameObject; + this.m_TipsLab = (transform.Find("Tips").GetComponent("XUILabel") as IXUILabel); + this.m_effectsTra = base.PanelObject.transform.Find("Bg/Effects"); + transform = this.m_EnhanceGo.transform.Find("Bottom"); + this.m_TittleLab = (transform.Find("Tittle").GetComponent("XUILabel") as IXUILabel); + this.m_EnhanceBtn = (transform.Find("EnhanceBtn").GetComponent("XUIButton") as IXUIButton); + this.m_EnhanceBtnLab = (transform.Find("EnhanceBtn/T").GetComponent("XUILabel") as IXUILabel); + bool flag = this.m_costItemTras == null; + if (flag) + { + this.m_costItemTras = new List(); + } + else + { + this.m_costItemTras.Clear(); + } + this.m_costItemTras.Add(transform.Find("CostItem2")); + this.m_costItemTras.Add(transform.Find("CostItem1")); + transform = base.PanelObject.transform.Find("Bg/BeforeAttrTpl"); + this.m_BeforeAttrPool.SetupPool(this.m_BeforeEnhanceGo, transform.gameObject, 3u, false); + transform = base.PanelObject.transform.Find("Bg/AfterAttrTpl"); + this.m_AfterAttrPool.SetupPool(this.m_AfterEnhanceGo, transform.gameObject, 3u, false); + this.m_doc.enhanceView = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseClicked)); + this.m_EnhanceBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnhanceClicked)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Item_Enhance); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void StackRefresh() + { + this.RefreshData(); + base.StackRefresh(); + } + + protected override void OnHide() + { + this.m_BeforeAttrPool.ReturnAll(false); + this.m_AfterAttrPool.ReturnAll(false); + XSingleton.singleton.KillTimer(this.m_token); + XSingleton.singleton.KillTimer(this.m_effectToken); + this.DeActiveEffect(); + DlgBase.singleton.OnPopHandlerSetVisible(false, null); + DlgBase.singleton.StackRefresh(); + bool flag = DlgBase.singleton._equipHandler != null; + if (flag) + { + DlgBase.singleton._equipHandler.SelectEquip(0UL); + DlgBase.singleton._equipHandler.RegisterItemClickEvents(null); + } + base.OnHide(); + } + + public override void OnUnload() + { + this.m_doc.enhanceView = null; + bool flag = this.m_EnhanceSucceedEffect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_EnhanceSucceedEffect, true); + this.m_EnhanceSucceedEffect = null; + } + bool flag2 = this.m_BreakSucceedEffect != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_BreakSucceedEffect, true); + this.m_BreakSucceedEffect = null; + } + bool flag3 = this.m_EnhanceLostEffect != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this.m_EnhanceLostEffect, true); + this.m_EnhanceLostEffect = null; + } + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + DlgBase.singleton._equipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this.OnEquipClicked)); + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.EquipBag.GetItemByUID(this.m_doc.selectedEquip); + bool flag = itemByUID == null; + if (flag) + { + this.m_doc.SelectEquip(0UL); + } + else + { + this.m_doc.SelectEquip(this.m_doc.selectedEquip); + } + this.ChangeEquip(); + } + + public void ChangeEquip() + { + this.DeActiveEffect(); + this.FillContent(); + this.m_doc.ReqEnhanceAttr(); + } + + public void RefreshPage() + { + this.DeActiveEffect(); + this.FillContent(); + this.m_doc.ReqEnhanceAttr(); + } + + public void PlayEffect() + { + this.m_bIsCanClick = false; + this.DeActiveEffect(); + bool flag = this.m_doc.CombainItems != null && this.m_doc.CombainItems.Count != 0; + if (flag) + { + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < this.m_doc.CombainItems.Count; i++) + { + bool flag2 = this.m_doc.CombainItems[i].itemId <= 0u; + if (!flag2) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.m_doc.CombainItems[i].itemId); + bool flag3 = itemConf == null; + if (!flag3) + { + stringBuilder.Append(this.m_doc.CombainItems[i].comNum).Append(XStringDefineProxy.GetString("Ge")).Append(itemConf.ItemName[0]).Append(","); + } + } + } + float interval = 0f; + bool flag4 = stringBuilder.Length > 1; + if (flag4) + { + stringBuilder.Remove(stringBuilder.Length - 1, 1); + string text = string.Format(XStringDefineProxy.GetString("CombainSucceed"), stringBuilder.ToString()); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + interval = 1f; + } + XSingleton.singleton.KillTimer(this.m_token); + this.m_token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.DelayPlayEffect), null); + } + else + { + this.DelayPlayEffect(null); + } + } + + public void FillAttrUi() + { + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.m_doc.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + this.m_EnhanceGo.SetActive(false); + this.m_EnhanceMaxGo.SetActive(false); + bool flag2 = xequipItem.enhanceInfo.EnhanceLevel >= this.m_doc.GetMaxEnhanceLevel(); + if (flag2) + { + this.FillMaxEnhanceInfo(); + } + else + { + this.FillEnhanceInfo(); + } + } + } + + private void PlayEnhanceSucceedEffect() + { + bool flag = this.m_EnhanceSucceedEffect == null; + if (flag) + { + this.m_EnhanceSucceedEffect = XSingleton.singleton.CreateFx(this.EnhanceSucPath, null, true); + } + else + { + this.m_EnhanceSucceedEffect.SetActive(true); + } + this.m_EnhanceSucceedEffect.Play(this.m_effectsTra, Vector3.zero, Vector3.one, 1f, true, false); + XSingleton.singleton.KillTimer(this.m_effectToken); + this.m_effectToken = XSingleton.singleton.SetTimer(this.m_delayTime, new XTimerMgr.ElapsedEventHandler(this.DelayRefresh), null); + } + + private void PlayBreakSucceedEffect() + { + bool flag = this.m_BreakSucceedEffect == null; + if (flag) + { + this.m_BreakSucceedEffect = XSingleton.singleton.CreateFx(this.BreakSucPath, null, true); + } + else + { + this.m_BreakSucceedEffect.SetActive(true); + } + this.m_BreakSucceedEffect.Play(this.m_effectsTra, Vector3.zero, Vector3.one, 1f, true, false); + XSingleton.singleton.KillTimer(this.m_effectToken); + this.m_effectToken = XSingleton.singleton.SetTimer(this.m_delayTime, new XTimerMgr.ElapsedEventHandler(this.DelayRefresh), null); + } + + private void PlayEnhanceLostEffect() + { + bool flag = this.m_EnhanceLostEffect == null; + if (flag) + { + this.m_EnhanceLostEffect = XSingleton.singleton.CreateFx(this.EnhanceLostPath, null, true); + } + else + { + this.m_EnhanceLostEffect.SetActive(true); + } + this.m_EnhanceLostEffect.Play(this.m_effectsTra, Vector3.zero, Vector3.one, 1f, true, false); + XSingleton.singleton.KillTimer(this.m_effectToken); + this.m_effectToken = XSingleton.singleton.SetTimer(this.m_delayTime, new XTimerMgr.ElapsedEventHandler(this.DelayRefresh), null); + } + + private void DeActiveEffect() + { + bool flag = this.m_EnhanceSucceedEffect != null; + if (flag) + { + this.m_EnhanceSucceedEffect.SetActive(false); + } + bool flag2 = this.m_BreakSucceedEffect != null; + if (flag2) + { + this.m_BreakSucceedEffect.SetActive(false); + } + bool flag3 = this.m_EnhanceLostEffect != null; + if (flag3) + { + this.m_EnhanceLostEffect.SetActive(false); + } + } + + private void FillContent() + { + bool flag = this.m_doc.rpcState == XEnhanceRpcState.ERS_RECEIVING; + if (!flag) + { + this.m_bIsCanClick = true; + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.m_doc.selectedEquip) as XEquipItem; + bool flag2 = xequipItem == null; + if (!flag2) + { + EnhanceTable.RowData enhanceRowData = this.m_doc.GetEnhanceRowData(xequipItem); + bool flag3 = enhanceRowData != null; + if (flag3) + { + this.m_doc.IsNeedBreak = (enhanceRowData.IsNeedBreak > 0u); + } + this.FillTopInfo(); + } + } + } + + private void FillTopInfo() + { + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.m_doc.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + XSingleton.singleton.DrawItem(this.m_topItemGo, xequipItem); + IXUISprite ixuisprite = this.m_topItemGo.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = ((xequipItem != null) ? xequipItem.uid : 0UL); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedItemClicked)); + bool flag2 = xequipItem.enhanceInfo.EnhanceLevel >= this.m_doc.GetMaxEnhanceLevel(); + if (flag2) + { + this.m_SuccessRateLab.gameObject.SetActive(false); + this.m_AddRateLab.gameObject.SetActive(false); + this.m_BreakRateLab.gameObject.SetActive(false); + } + else + { + EnhanceTable.RowData enhanceRowData = this.m_doc.GetEnhanceRowData(xequipItem); + bool flag3 = !this.m_doc.IsNeedBreak; + if (flag3) + { + this.m_SuccessRateLab.gameObject.SetActive(true); + this.m_AddRateLab.gameObject.SetActive(true); + this.m_BreakRateLab.gameObject.SetActive(false); + uint num = 0u; + uint num2 = 0u; + this.m_doc.GetSuccessRate(xequipItem, ref num, ref num2); + bool flag4 = num2 == 0u; + if (flag4) + { + this.m_SuccessRateLab.SetText(string.Format("[efd156]{0}{1}%[-]", XStringDefineProxy.GetString("EnhanceRate"), num)); + } + else + { + this.m_SuccessRateLab.SetText(string.Format("[efd156]{0}{1}%[-] [63ff85]+ {2}%[-]", XStringDefineProxy.GetString("EnhanceRate"), num, num2)); + } + this.m_AddRateLab.SetText(string.Format("{0}+{1}%", XStringDefineProxy.GetString("EnhanceAddRate"), enhanceRowData.UpRate)); + } + else + { + this.m_SuccessRateLab.gameObject.SetActive(false); + this.m_AddRateLab.gameObject.SetActive(false); + this.m_BreakRateLab.gameObject.SetActive(true); + this.m_BreakRateLab.SetText(XStringDefineProxy.GetString("FullBreakRate")); + } + } + } + } + + private void FillEnhanceInfo() + { + this.m_BeforeAttrPool.ReturnAll(false); + this.m_AfterAttrPool.ReturnAll(false); + this.m_EnhanceGo.SetActive(true); + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.m_doc.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + EnhanceTable.RowData enhanceRowData = this.m_doc.GetEnhanceRowData(xequipItem); + List list = new List(); + bool isNeedBreak = this.m_doc.IsNeedBreak; + if (isNeedBreak) + { + this.m_TittleLab.SetText(XStringDefineProxy.GetString("BreakCons")); + this.m_EnhanceBtnLab.SetText(XStringDefineProxy.GetString("Break")); + this.m_TipsLab.SetText(XStringDefineProxy.GetString("AfterBreakCanEnhance")); + string @string = XStringDefineProxy.GetString("EnhanceLevel"); + list.Add(new EnhanceAttr(@string, xequipItem.enhanceInfo.EnhanceLevel, xequipItem.enhanceInfo.EnhanceLevel + 1u)); + list.AddRange(this.m_doc.EnhanceAttrLst); + } + else + { + this.m_TittleLab.SetText(XStringDefineProxy.GetString("EnhanceConsume")); + this.m_EnhanceBtnLab.SetText(XStringDefineProxy.GetString("XSys_Item_Enhance")); + this.m_TipsLab.SetText(XStringDefineProxy.GetString("EnhanceCanFullTrans")); + list = this.m_doc.EnhanceAttrLst; + } + float num = (float)((list.Count - 1) * this.m_gap / 2); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = this.m_BeforeAttrPool.FetchGameObject(false); + gameObject.name = i.ToString(); + gameObject.transform.parent = this.m_BeforeEnhanceGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, num - (float)(this.m_gap * i), 0f); + this.FillAttrWithName(gameObject, list[i]); + gameObject = this.m_AfterAttrPool.FetchGameObject(false); + gameObject.name = i.ToString(); + gameObject.transform.parent = this.m_AfterEnhanceGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, num - (float)(this.m_gap * i), 0f); + this.FillAttrNoName(gameObject, list[i]); + } + this.FillCostItem(enhanceRowData); + } + } + + private void FillMaxEnhanceInfo() + { + this.m_BeforeAttrPool.ReturnAll(false); + this.m_EnhanceMaxGo.SetActive(true); + float num = (float)((this.m_doc.EnhanceAttrLst.Count - 1) * this.m_gap / 2); + for (int i = 0; i < this.m_doc.EnhanceAttrLst.Count; i++) + { + GameObject gameObject = this.m_BeforeAttrPool.FetchGameObject(false); + gameObject.name = i.ToString(); + gameObject.transform.parent = this.m_MaxAttrListGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, num - (float)(this.m_gap * i), 0f); + this.FillAttrWithName(gameObject, this.m_doc.EnhanceAttrLst[i]); + } + this.m_TipsLab.SetText(XStringDefineProxy.GetString("EnhanceCanFullTrans")); + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.m_doc.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(xequipItem.itemID); + this.m_MaxTipsLab.SetText(XStringDefineProxy.GetString("CanEnhanceMaxLevel", new object[] + { + itemConf.ReqLevel, + this.m_doc.GetMaxEnhanceLevel() + })); + } + } + + private void FillAttrWithName(GameObject go, EnhanceAttr attr) + { + IXUILabel ixuilabel = go.transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(attr.Name); + ixuilabel = (go.transform.Find("Value").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(attr.BeforeAttrNum.ToString()); + } + + private void FillAttrNoName(GameObject go, EnhanceAttr attr) + { + IXUILabel ixuilabel = go.transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(attr.AfterAttrNum.ToString()); + bool flag = attr.D_value == 0; + if (flag) + { + go.transform.Find("Up").gameObject.SetActive(false); + go.transform.Find("Down").gameObject.SetActive(false); + } + else + { + bool flag2 = attr.D_value > 0; + if (flag2) + { + go.transform.Find("Down").gameObject.SetActive(false); + ixuilabel = (go.transform.Find("Up").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[63ff85]{0}[-]", attr.D_value)); + ixuilabel.gameObject.SetActive(true); + } + else + { + go.transform.Find("Up").gameObject.SetActive(false); + ixuilabel = (go.transform.Find("Down").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[ff3e3e]{0}[-]", -attr.D_value)); + ixuilabel.gameObject.SetActive(true); + } + } + } + + private void FillCostItem(EnhanceTable.RowData rowData) + { + for (int i = 0; i < this.m_costItemTras.Count; i++) + { + bool flag = rowData.NeedItem.Count <= i; + if (flag) + { + this.m_costItemTras[i].gameObject.SetActive(false); + } + else + { + this.m_costItemTras[i].gameObject.SetActive(true); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)rowData.NeedItem[i, 0]); + bool flag2 = itemConf != null; + if (flag2) + { + IXUISprite ixuisprite = this.m_costItemTras[i].Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(itemConf.ItemIcon1[0]); + } + ulong itemCountByID = this.m_doc.GetItemCountByID(rowData.NeedItem[i, 0]); + IXUILabel ixuilabel = this.m_costItemTras[i].GetComponent("XUILabel") as IXUILabel; + bool flag3 = itemCountByID >= (ulong)rowData.NeedItem[i, 1]; + if (flag3) + { + ixuilabel.SetText(string.Format("{0}/{1}", XSingleton.singleton.NumberFormat(itemCountByID), rowData.NeedItem[i, 1])); + } + else + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT"), XSingleton.singleton.NumberFormat(itemCountByID), rowData.NeedItem[i, 1])); + } + IXUIButton ixuibutton = this.m_costItemTras[i].Find("LabBtn").GetComponent("XUIButton") as IXUIButton; + bool flag4 = itemCountByID < (ulong)rowData.NeedItem[i, 1]; + if (flag4) + { + ixuibutton.gameObject.SetActive(true); + ixuibutton.ID = (ulong)rowData.NeedItem[i, 0]; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetItemAccess)); + } + else + { + ixuibutton.gameObject.SetActive(false); + } + } + } + } + + private void DelayPlayEffect(object o = null) + { + bool flag = this.m_doc.rpcState == XEnhanceRpcState.ERS_ENHANCESUCCEED; + if (flag) + { + this.PlayEnhanceSucceedEffect(); + } + else + { + bool flag2 = this.m_doc.rpcState == XEnhanceRpcState.ERS_BREAKSUCCEED; + if (flag2) + { + this.PlayBreakSucceedEffect(); + } + else + { + bool flag3 = this.m_doc.rpcState == XEnhanceRpcState.ERS_ENHANCEFAIED; + if (flag3) + { + this.PlayEnhanceLostEffect(); + } + else + { + this.FillContent(); + this.FillAttrUi(); + } + } + } + } + + private void DelayRefresh(object o = null) + { + this.FillContent(); + this.FillAttrUi(); + } + + private bool _OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnGetItemAccess(IXUIButton btn) + { + int itemid = (int)btn.ID; + this.DeActiveEffect(); + XSingleton.singleton.ShowItemAccess(itemid, null); + return true; + } + + private void OnSelectedItemClicked(IXUISprite iSp) + { + ulong id = iSp.ID; + XSingleton.singleton.ShowTooltipDialog(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(id), null, iSp, false, 0u); + } + + public void OnEquipClicked(IXUISprite iSp) + { + this.m_doc.SelectEquip(iSp.ID); + } + + private bool OnEnhanceClicked(IXUIButton btn) + { + bool flag = !this.m_bIsCanClick; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.SetButtonCool(this.m_delayTime); + if (flag2) + { + result = true; + } + else + { + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.m_doc.selectedEquip) as XEquipItem; + bool flag3 = xequipItem == null; + if (flag3) + { + result = true; + } + else + { + bool flag4 = xequipItem.enhanceInfo.EnhanceLevel >= this.m_doc.GetMaxEnhanceLevel(); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EnhanceMoreThanMax"), "fece00"); + result = true; + } + else + { + EnhanceTable.RowData enhanceRowData = this.m_doc.GetEnhanceRowData(xequipItem); + bool flag5 = enhanceRowData != null; + if (flag5) + { + for (int i = 0; i < enhanceRowData.NeedItem.Count; i++) + { + ulong itemCountByID = this.m_doc.GetItemCountByID(enhanceRowData.NeedItem[i, 0]); + bool flag6 = itemCountByID < (ulong)enhanceRowData.NeedItem[i, 1]; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_REINFORCE_LACKMONEY"), "fece00"); + return true; + } + } + } + else + { + XSingleton.singleton.AddErrorLog(xequipItem.itemID.ToString(), "is not find in enhanceTab", null, null, null, null); + } + this.m_doc.ReqEnhance(); + result = true; + } + } + } + } + return result; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EnhanceView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EnhanceView.cs.meta new file mode 100644 index 00000000..19d4941a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EnhanceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f4ca468c26697140967773b9e4348c4 +timeCreated: 1611403514 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipCreateDlg.cs b/Client/Assets/Scripts/XMainClient/UI/EquipCreateDlg.cs new file mode 100644 index 00000000..29df6591 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipCreateDlg.cs @@ -0,0 +1,143 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EquipCreateDlg : TabDlgBase + { + public override string fileName + { + get + { + return "GameSystem/EquipCreateDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + protected override bool bHorizontal + { + get + { + return false; + } + } + + public EquipSetHandler equipSetHandler; + + private GameObject equipSetFrame; + + public EmblemSetHandler emblemSetHandler; + + private GameObject emblemSetFrame; + + public EquipSetCreateHandler equipSetCreateHandler; + + private GameObject equipSetCreateFrame; + + public EquipSetCreateConfirmHandler equipSetCreateConfirmHandler; + + private GameObject equipSetCreateConfirmFrame; + + public ArtifactSetHandler m_artifactSetHandler; + + private GameObject m_artifactSetFrame; + + public IXUIButton m_Help; + + protected override void Init() + { + base.Init(); + this.m_Help = (base.uiBehaviour.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_EquipCreate); + } + + protected override void OnLoad() + { + base.OnLoad(); + this.equipSetFrame = base.uiBehaviour.transform.Find("Bg/EquipSetFrame").gameObject; + this.emblemSetFrame = base.uiBehaviour.transform.Find("Bg/EmblemSetFrame").gameObject; + this.equipSetCreateFrame = base.uiBehaviour.transform.Find("Bg/EquipSetCreateFrame").gameObject; + this.equipSetCreateConfirmFrame = base.uiBehaviour.transform.Find("Bg/EquipSetCreateConfirmFrame").gameObject; + this.m_artifactSetFrame = base.uiBehaviour.transform.Find("Bg/ArtifactSetFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this.equipSetHandler, this.equipSetFrame, null, false); + DlgHandlerBase.EnsureCreate(ref this.emblemSetHandler, this.emblemSetFrame, null, false); + DlgHandlerBase.EnsureCreate(ref this.equipSetCreateHandler, this.equipSetCreateFrame, null, false); + DlgHandlerBase.EnsureCreate(ref this.equipSetCreateConfirmHandler, this.equipSetCreateConfirmFrame, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_artifactSetHandler, this.m_artifactSetFrame, null, false); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.equipSetCreateHandler); + this.equipSetCreateFrame = null; + DlgHandlerBase.EnsureUnload(ref this.equipSetCreateConfirmHandler); + this.equipSetCreateConfirmFrame = null; + DlgHandlerBase.EnsureUnload(ref this.equipSetHandler); + this.equipSetFrame = null; + DlgHandlerBase.EnsureUnload(ref this.emblemSetHandler); + this.emblemSetFrame = null; + DlgHandlerBase.EnsureUnload(ref this.m_artifactSetHandler); + this.m_artifactSetFrame = null; + base.OnUnload(); + } + + public override void SetupRedpointEx() + { + base.SetupRedpointEx(); + } + + public override void StackRefresh() + { + for (int i = 0; i < this.m_ActiveHandlers.Count; i++) + { + bool flag = this.m_ActiveHandlers[i] != null; + if (flag) + { + this.m_ActiveHandlers[i].StackRefresh(); + } + } + base.StackRefresh(); + } + + public override void SetupHandlers(XSysDefine sys) + { + switch (sys) + { + case XSysDefine.XSys_EquipCreate_EquipSet: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.equipSetHandler, this.equipSetFrame, this, true)); + break; + case XSysDefine.XSys_EquipCreate_EmblemSet: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.emblemSetHandler, this.emblemSetFrame, this, true)); + break; + case XSysDefine.XSys_EquipCreate_ArtifactSet: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_artifactSetHandler, this.m_artifactSetFrame, this, true)); + break; + default: + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + break; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_EquipCreate); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipCreateDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EquipCreateDlg.cs.meta new file mode 100644 index 00000000..77bd4bc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipCreateDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3497745796ccbfc47b44a55454605006 +timeCreated: 1611403556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipFusionHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EquipFusionHandler.cs new file mode 100644 index 00000000..b5a7d21c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipFusionHandler.cs @@ -0,0 +1,732 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EquipFusionHandler : DlgHandlerBase + { + public string FxPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_fxPath); + if (flag) + { + this.m_fxPath = XSingleton.singleton.GetValue("EquipfuseEffectPath"); + } + return this.m_fxPath; + } + } + + protected override string FileName + { + get + { + return "ItemNew/EquipFusionFrame"; + } + } + + private EquipFusionDocument m_doc; + + private EquipFusionSelectHandler m_selectHandler; + + private IXUIButton m_closedBtn; + + private IXUIButton m_helpBtn; + + private IXUIButton m_fuseHelpBtn; + + private IXUIButton m_fuseBtn; + + private IXUILabel m_breakLevelLab; + + private IXUILabel m_processValueLab; + + private IXUILabel m_previewValueLab; + + private IXUILabel m_contentLab; + + private IXUILabelSymbol m_symbolLab; + + private IXUILabel m_tipsLab; + + private IXUIProgress m_process; + + private IXUISprite m_addSpr; + + private IXUISprite m_previewSpr; + + private GameObject m_equipItemGo; + + private GameObject m_itemGo; + + private GameObject m_contentGo; + + private XUIPool m_tplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_itemsGoList; + + private bool m_materialIsEnough = true; + + private float m_delayTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private XFx m_fuseBreakFx; + + private XFx m_fx; + + private string m_fxPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.m_doc = EquipFusionDocument.Doc; + this.m_doc.Handler = this; + this.m_closedBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_helpBtn = (base.PanelObject.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Top"); + this.m_equipItemGo = transform.Find("FuseItem").gameObject; + this.m_symbolLab = (transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_breakLevelLab = (transform.Find("RzLabel").GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Process"); + this.m_contentGo = transform.Find("Panel/Content").gameObject; + this.m_contentLab = (this.m_contentGo.transform.GetComponent("XUILabel") as IXUILabel); + this.m_contentGo.SetActive(false); + this.m_processValueLab = (transform.Find("ProcessValue").GetComponent("XUILabel") as IXUILabel); + this.m_process = (transform.Find("Slider").GetComponent("XUIProgress") as IXUIProgress); + this.m_fuseHelpBtn = (transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_previewValueLab = (transform.Find("PreviewValue").GetComponent("XUILabel") as IXUILabel); + this.m_previewSpr = (transform.Find("Slider/preview").GetComponent("XUISprite") as IXUISprite); + transform = base.PanelObject.transform.Find("ResultPanel"); + this.m_tplPool.SetupPool(transform.gameObject, transform.Find("Tpl").gameObject, 2u, false); + transform = base.PanelObject.transform.Find("Bottom"); + this.m_itemGo = transform.Find("Item").gameObject; + this.m_addSpr = (transform.Find("BoxAdd").GetComponent("XUISprite") as IXUISprite); + this.m_fuseBtn = (transform.Find("FuseBtn").GetComponent("XUIButton") as IXUIButton); + this.m_tipsLab = (transform.Find("BoxAdd/T").GetComponent("XUILabel") as IXUILabel); + this.m_itemsGoList = new List(); + transform = transform.Find("Items"); + for (int i = 0; i < transform.childCount; i++) + { + this.m_itemsGoList.Add(transform.GetChild(i).gameObject); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosed)); + this.m_helpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelp)); + this.m_fuseHelpBtn.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnFuseHelpPress)); + this.m_fuseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFuse)); + this.m_addSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectItem)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + base.OnHide(); + DlgBase.singleton.OnPopHandlerSetVisible(false, null); + DlgBase.singleton.StackRefresh(); + this.DeActiveEffect(); + bool flag = DlgBase.singleton._equipHandler != null; + if (flag) + { + DlgBase.singleton._equipHandler.SelectEquip(0UL); + DlgBase.singleton._equipHandler.RegisterItemClickEvents(null); + } + bool flag2 = this.m_selectHandler != null; + if (flag2) + { + this.m_selectHandler.SetVisible(false); + } + } + + public override void OnUnload() + { + base.OnUnload(); + DlgHandlerBase.EnsureUnload(ref this.m_selectHandler); + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + bool flag2 = this.m_fuseBreakFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_fuseBreakFx, true); + this.m_fuseBreakFx = null; + } + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = DlgBase.singleton._equipHandler != null; + if (flag) + { + DlgBase.singleton._equipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this.OnEquipClicked)); + } + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.EquipBag.GetItemByUID(this.m_doc.SelectUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.m_doc.SelectEquip(0UL); + } + else + { + this.m_doc.SelectEquip(this.m_doc.SelectUid); + } + this.FillContent(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshData(); + } + + public void ShowUI(bool playEffect = false) + { + if (playEffect) + { + this.PlayBreakEffect(); + } + this.FillContent(); + } + + private void PlayBreakEffect() + { + bool flag = this.m_fx == null; + if (flag) + { + this.m_fx = XSingleton.singleton.CreateFx(this.FxPath, null, true); + } + else + { + this.m_fx.SetActive(true); + } + this.m_fx.Play(base.PanelObject.transform.Find("Effect"), Vector3.zero, Vector3.one, 1f, true, false); + } + + private void FillContent() + { + this.m_contentGo.SetActive(false); + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag = itemByUID == null || itemByUID.Type != ItemType.EQUIP; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag2 = equipConf == null; + if (!flag2) + { + XSingleton.singleton.DrawItem(this.m_equipItemGo, itemByUID); + IXUISprite ixuisprite = this.m_equipItemGo.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = itemByUID.uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItem)); + this.SetEffect(this.m_equipItemGo, (itemByUID as XEquipItem).fuseInfo.BreakNum); + XEquipItem xequipItem = itemByUID as XEquipItem; + bool flag3 = equipConf.FuseCanBreakNum > 0; + if (flag3) + { + this.m_breakLevelLab.SetText(string.Format(XSingleton.singleton.GetString("FuseBreakNum"), xequipItem.fuseInfo.BreakNum, equipConf.FuseCanBreakNum)); + } + else + { + this.m_breakLevelLab.SetText(""); + } + bool flag4 = itemByUID.itemConf != null; + if (flag4) + { + bool flag5 = xequipItem.fuseInfo.BreakNum > 0u; + string text; + if (flag5) + { + text = this.m_doc.GetFuseIconName(xequipItem.fuseInfo.BreakNum); + bool flag6 = text != ""; + if (flag6) + { + text = XLabelSymbolHelper.FormatAnimation("Item/Item", text, 10); + } + text = string.Format("{0}[{1}]{2}", text, XSingleton.singleton.GetItemQualityColorStr((int)itemByUID.itemConf.ItemQuality), itemByUID.itemConf.ItemName[0]); + bool flag7 = xequipItem.enhanceInfo.EnhanceLevel > 0u; + if (flag7) + { + text = XSingleton.singleton.StringCombine(text, "+", xequipItem.enhanceInfo.EnhanceLevel.ToString()); + } + } + else + { + text = string.Format("[{0}]{1}", XSingleton.singleton.GetItemQualityColorStr((int)itemByUID.itemConf.ItemQuality), itemByUID.itemConf.ItemName[0]); + bool flag8 = xequipItem.enhanceInfo.EnhanceLevel > 0u; + if (flag8) + { + text = string.Format("{0}+{1}", text, xequipItem.enhanceInfo.EnhanceLevel); + } + } + this.m_symbolLab.InputText = text; + } + this.m_contentLab.SetText(XSingleton.singleton.GetString("EquipFuseTips")); + this.FillAttribute(); + this.FillButtom(xequipItem.fuseInfo, equipConf); + } + } + } + + private void FillAttribute() + { + this.m_tplPool.ReturnAll(false); + float num = (float)((this.m_doc.FuseDataList.Count - 1) * this.m_tplPool.TplHeight / 2); + for (int i = 0; i < this.m_doc.FuseDataList.Count; i++) + { + GameObject gameObject = this.m_tplPool.FetchGameObject(false); + gameObject.name = i.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, num - (float)(i * this.m_tplPool.TplHeight), 0f); + EquipFuseData equipFuseData = this.m_doc.FuseDataList[i]; + IXUILabel ixuilabel = gameObject.transform.Find("Now").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0}", XStringDefineProxy.GetString((XAttributeDefine)equipFuseData.AttrId))); + ixuilabel = (gameObject.transform.Find("Now/NowValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(equipFuseData.BeforeAddNum.ToString()); + ixuilabel = (gameObject.transform.Find("AfterValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(equipFuseData.AfterAddNum.ToString()); + uint upNum = equipFuseData.UpNum; + ixuilabel = (gameObject.transform.Find("Up").GetComponent("XUILabel") as IXUILabel); + bool flag = upNum == 0u; + if (flag) + { + ixuilabel.gameObject.SetActive(false); + } + else + { + ixuilabel.gameObject.SetActive(true); + ixuilabel.SetText(string.Format("+{0}", upNum)); + } + } + } + + private void SetItemActive(bool flag) + { + bool flag2 = this.m_itemsGoList == null; + if (!flag2) + { + for (int i = 0; i < this.m_itemsGoList.Count; i++) + { + this.m_itemsGoList[i].SetActive(false); + } + } + } + + private void FillButtom(XequipFuseInfo info, EquipList.RowData row) + { + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + EquipFusionTable.RowData fuseData = this.m_doc.GetFuseData(XSingleton.singleton.Player.BasicTypeID, row, info.BreakNum); + bool flag2 = fuseData == null; + if (!flag2) + { + this.FillNeedItem(row.ItemID, fuseData); + IXUILabel ixuilabel = this.m_fuseBtn.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + bool isBreak = this.m_doc.IsBreak; + if (isBreak) + { + this.m_tipsLab.SetText(XSingleton.singleton.GetString("EquipFuseNoCoreItem")); + ixuilabel.SetText(XSingleton.singleton.GetString("CATD_ATTRIBUTE_ACTIVE2")); + } + else + { + this.m_tipsLab.SetText(XSingleton.singleton.GetString("EquipFuseNoCoreItem1")); + ixuilabel.SetText(XSingleton.singleton.GetString("EquipFusion")); + } + IXUISprite ixuisprite = this.m_fuseBtn.gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetGrey(!this.m_doc.IsMax); + } + } + } + + private void FillNeedItem(int itemId, EquipFusionTable.RowData fuseRow) + { + bool isBreak = this.m_doc.IsBreak; + if (isBreak) + { + this.m_itemGo.SetActive(false); + this.SetItemActive(false); + this.m_addSpr.gameObject.SetActive(false); + this.m_materialIsEnough = true; + this.UpdateProcessBar(); + int num = 0; + while (num < (int)fuseRow.BreakNeedMaterial.count && num < this.m_itemsGoList.Count) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)fuseRow.BreakNeedMaterial[num, 0]); + bool flag = itemConf == null; + if (!flag) + { + GameObject gameObject = this.m_itemsGoList[num]; + gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)fuseRow.BreakNeedMaterial[num, 0], 0, false); + IXUILabel ixuilabel = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)fuseRow.BreakNeedMaterial[num, 0]); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(null); + bool flag2 = itemConf.ItemType == 3; + if (flag2) + { + ixuilabel.SetText(fuseRow.BreakNeedMaterial[num, 1].ToString()); + bool flag3 = (ulong)fuseRow.BreakNeedMaterial[num, 1] > itemCount; + if (flag3) + { + ixuilabel.SetText(string.Format("[ff0000]{0}[-]", fuseRow.BreakNeedMaterial[num, 1])); + this.m_materialIsEnough = false; + } + else + { + ixuilabel.SetText(fuseRow.BreakNeedMaterial[num, 1].ToString()); + } + } + else + { + bool flag4 = (ulong)fuseRow.BreakNeedMaterial[num, 1] > itemCount; + if (flag4) + { + ixuilabel.SetText(string.Format("{0} [ff0000]{1}[-]/{2}", itemConf.ItemName[0], itemCount, fuseRow.BreakNeedMaterial[num, 1])); + this.m_materialIsEnough = false; + ixuisprite.ID = (ulong)fuseRow.BreakNeedMaterial[num, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemIcon)); + } + else + { + ixuilabel.SetText(string.Format("{0} [00ff00]{1}[-]/{2}", itemConf.ItemName[0], itemCount, fuseRow.BreakNeedMaterial[num, 1])); + } + } + } + num++; + } + } + else + { + this.UpdateItem(); + } + } + + public void UpdateItem() + { + this.SetItemActive(false); + this.m_addSpr.gameObject.SetActive(true); + this.m_materialIsEnough = true; + this.UpdateProcessBar(); + bool flag = this.m_doc.MaterialId == 0; + if (flag) + { + this.m_materialIsEnough = false; + this.m_itemGo.SetActive(false); + } + else + { + bool flag2 = XSingleton.singleton.Player == null; + if (!flag2) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag3 = itemByUID == null || itemByUID.Type != ItemType.EQUIP; + if (!flag3) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag4 = equipConf == null; + if (!flag4) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + EquipFusionTable.RowData fuseData = this.m_doc.GetFuseData(XSingleton.singleton.Player.BasicTypeID, equipConf, xequipItem.fuseInfo.BreakNum); + bool flag5 = fuseData == null; + if (!flag5) + { + uint addExp = this.m_doc.GetAddExp((uint)this.m_doc.MaterialId); + uint num = (fuseData.NeedExpPerLevel % addExp == 0u) ? (fuseData.NeedExpPerLevel / addExp) : (fuseData.NeedExpPerLevel / addExp + 1u); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(this.m_doc.MaterialId); + this.m_itemGo.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_itemGo, this.m_doc.MaterialId, 0, false); + IXUILabel ixuilabel = this.m_itemGo.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + bool flag6 = itemCount >= (ulong)num; + if (flag6) + { + ixuilabel.SetText(string.Format("[00ff00]{0}[-]/{1}", itemCount, num)); + } + else + { + this.m_materialIsEnough = false; + ixuilabel.SetText(string.Format("[ff0000]{0}[-]/{1}", itemCount, num)); + } + SeqListRef assistItems = this.m_doc.GetAssistItems((uint)this.m_doc.MaterialId); + int num2 = 0; + while (num2 < (int)assistItems.count && num2 < this.m_itemsGoList.Count) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)assistItems[num2, 0]); + bool flag7 = itemConf == null; + if (!flag7) + { + GameObject gameObject = this.m_itemsGoList[num2]; + gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)assistItems[num2, 0], 0, false); + ixuilabel = (gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.gameObject.SetActive(true); + itemCount = XBagDocument.BagDoc.GetItemCount((int)assistItems[num2, 0]); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(null); + bool flag8 = itemConf.ItemType == 3; + if (flag8) + { + bool flag9 = (ulong)(assistItems[num2, 1] * num) > itemCount; + if (flag9) + { + ixuilabel.SetText(string.Format("[ff0000]{0}[-]", assistItems[num2, 1] * num)); + this.m_materialIsEnough = false; + } + else + { + ixuilabel.SetText((assistItems[num2, 1] * num).ToString()); + } + } + else + { + bool flag10 = (ulong)(assistItems[num2, 1] * num) > itemCount; + if (flag10) + { + ixuilabel.SetText(string.Format("{0} [ff0000]{1}[-]/{2}", itemConf.ItemName[0], itemCount, assistItems[num2, 1] * num)); + this.m_materialIsEnough = false; + ixuisprite.ID = (ulong)assistItems[num2, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemIcon)); + } + else + { + ixuilabel.SetText(string.Format("{0} [00ff00]{1}[-]/{2}", itemConf.ItemName[0], itemCount, assistItems[num2, 1] * num)); + } + } + } + num2++; + } + } + } + } + } + } + } + + private void UpdateProcessBar() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag = itemByUID == null || itemByUID.Type != ItemType.EQUIP; + if (!flag) + { + bool flag2 = XSingleton.singleton.Player == null; + if (!flag2) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag3 = equipConf == null; + if (!flag3) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + EquipFusionTable.RowData fuseData = this.m_doc.GetFuseData(XSingleton.singleton.Player.BasicTypeID, equipConf, xequipItem.fuseInfo.BreakNum); + bool flag4 = fuseData == null; + if (!flag4) + { + uint num = fuseData.NeedExpPerLevel * fuseData.LevelNum; + this.m_processValueLab.SetText(string.Format("{0}/{1}", xequipItem.fuseInfo.FuseExp, num)); + float num2 = xequipItem.fuseInfo.FuseExp / num; + this.m_process.value = ((num2 > 1f) ? 1f : num2); + bool flag5 = this.m_doc.MaterialId == 0 || this.m_doc.IsBreak; + if (flag5) + { + this.m_previewValueLab.SetText(""); + this.m_previewSpr.SetFillAmount((num2 > 1f) ? 1f : num2); + } + else + { + uint num3 = this.m_doc.GetAddExp((uint)this.m_doc.MaterialId); + num3 = Math.Max(num3, fuseData.NeedExpPerLevel); + this.m_previewValueLab.SetText(string.Format("+{0}", num3)); + num2 = (xequipItem.fuseInfo.FuseExp + num3) / num; + this.m_previewSpr.SetFillAmount((num2 > 1f) ? 1f : num2); + } + } + } + } + } + } + + public void UpdateButtom() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag = itemByUID == null || itemByUID.Type != ItemType.EQUIP; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag2 = equipConf == null; + if (!flag2) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + this.FillButtom(xequipItem.fuseInfo, equipConf); + } + } + } + + private void DeActiveEffect() + { + bool flag = this.m_fx != null; + if (flag) + { + this.m_fx.SetActive(false); + } + bool flag2 = this.m_fuseBreakFx != null; + if (flag2) + { + this.m_fuseBreakFx.SetActive(false); + } + } + + private void SetEffect(GameObject go, uint breakLevel) + { + bool flag = go == null; + if (!flag) + { + bool flag2 = this.m_fuseBreakFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_fuseBreakFx, true); + this.m_fuseBreakFx = null; + } + string location; + bool flag3 = !this.m_doc.GetEffectPath(breakLevel, out location); + if (!flag3) + { + this.m_fuseBreakFx = XSingleton.singleton.CreateUIFx(location, go.transform.Find("Icon/Icon/Effects"), false); + XFx.SyncRefreshUIRenderQueue(this.m_fuseBreakFx); + } + } + } + + private bool OnClosed(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnHelp(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_EquipFusion); + return true; + } + + private bool OnFuse(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_delayTime); + bool result; + if (flag) + { + result = false; + } + else + { + bool isMax = this.m_doc.IsMax; + if (isMax) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("EquipFuseBreakMax"), "fece00"); + result = false; + } + else + { + bool flag2 = !this.m_doc.IsBreak && this.m_doc.MaterialId == 0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("EquipFuseNoCoreItem1"), "fece00"); + result = false; + } + else + { + bool flag3 = !this.m_materialIsEnough; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("EquipFuseMaterialNotEnough"), "fece00"); + result = false; + } + else + { + this.m_doc.ReqEquipFuseMes(); + result = true; + } + } + } + } + return result; + } + + private void OnSelectItem(IXUISprite spr) + { + bool flag = this.m_doc.IsBreak || this.m_doc.IsMax; + if (!flag) + { + DlgHandlerBase.EnsureCreate(ref this.m_selectHandler, base.PanelObject.transform, true, this); + } + } + + private void OnClickItem(IXUISprite iSp) + { + ulong id = iSp.ID; + XItem xitem = XBagDocument.BagDoc.GetItemByUID(id); + bool flag = xitem == null; + if (flag) + { + xitem = XBagDocument.MakeXItem((int)id, false); + } + bool flag2 = xitem == null; + if (!flag2) + { + XSingleton.singleton.ShowTooltipDialog(xitem, null, iSp, false, 0u); + } + } + + public void OnEquipClicked(IXUISprite iSp) + { + this.m_doc.SelectEquip(iSp.ID); + } + + private void OnClickItemIcon(IXUISprite spr) + { + int itemid = (int)spr.ID; + XSingleton.singleton.ShowItemAccess(itemid, null); + } + + private void OnFuseHelpPress(IXUIButton btn, bool isPressed) + { + this.m_contentGo.SetActive(isPressed); + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipFusionHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EquipFusionHandler.cs.meta new file mode 100644 index 00000000..860ed4f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipFusionHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2396afd01ec002741af4abac3e36ca08 +timeCreated: 1611403455 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipFusionSelectHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EquipFusionSelectHandler.cs new file mode 100644 index 00000000..efb796f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipFusionSelectHandler.cs @@ -0,0 +1,148 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EquipFusionSelectHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/EquipFusionSelectWindow"; + } + } + + private EquipFusionDocument m_doc; + + private IXUIButton m_closeBtn; + + private uint[] m_needMaterial; + + private uint m_needExp = 0u; + + private Transform m_parentTra; + + private XUIPool m_tplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_doc = EquipFusionDocument.Doc; + this.m_closeBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_parentTra = base.PanelObject.transform.Find("Bg/Panel"); + this.m_tplPool.SetupPool(base.PanelObject.transform.Find("Bg").gameObject, this.m_parentTra.Find("ItemTpl").gameObject, 2u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosed)); + } + + protected override void OnShow() + { + base.OnShow(); + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag = itemByUID == null; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag2 = equipConf == null; + if (!flag2) + { + this.m_needMaterial = equipConf.FuseCoreItems; + bool flag3 = XSingleton.singleton.Player == null; + if (!flag3) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + EquipFusionTable.RowData fuseData = this.m_doc.GetFuseData(XSingleton.singleton.Player.BasicTypeID, equipConf, xequipItem.fuseInfo.BreakNum); + bool flag4 = fuseData == null; + if (!flag4) + { + this.m_needExp = fuseData.NeedExpPerLevel; + this.FillItems(); + } + } + } + } + } + + protected override void OnHide() + { + base.OnHide(); + this.m_tplPool.ReturnAll(false); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_tplPool.ReturnAll(false); + } + + public override void RefreshData() + { + base.RefreshData(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private void FillItems() + { + this.m_tplPool.ReturnAll(false); + for (int i = 0; i < this.m_needMaterial.Length; i++) + { + GameObject gameObject = this.m_tplPool.FetchGameObject(false); + gameObject.transform.parent = this.m_parentTra; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(this.m_tplPool.TplWidth * (i % 2)), (float)(-(float)this.m_tplPool.TplHeight * (i / 2)), 0f); + uint num = this.m_needMaterial[i]; + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)num); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num, 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItem)); + IXUILabel ixuilabel = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + uint addExp = this.m_doc.GetAddExp(num); + uint num2 = 0u; + bool flag = addExp > 0u; + if (flag) + { + num2 = ((this.m_needExp % addExp == 0u) ? (this.m_needExp / addExp) : (this.m_needExp / addExp + 1u)); + } + bool flag2 = itemCount >= (ulong)num2; + if (flag2) + { + ixuilabel.SetText(string.Format("[00ff00]{0}[-]/{1}", itemCount, num2)); + } + else + { + ixuilabel.SetText(string.Format("[ff0000]{0}[-]/{1}", itemCount, num2)); + } + } + } + + private bool OnClosed(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private void OnClickItem(IXUISprite spr) + { + int num = (int)spr.ID; + bool flag = num >= this.m_needMaterial.Length; + if (!flag) + { + this.m_doc.AddMaterial((int)this.m_needMaterial[num]); + base.SetVisible(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipFusionSelectHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EquipFusionSelectHandler.cs.meta new file mode 100644 index 00000000..05872169 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipFusionSelectHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58b1d481efbb14a4d922c4762ccc2aef +timeCreated: 1611403759 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipSetItemBaseView.cs b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemBaseView.cs new file mode 100644 index 00000000..8a304a51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemBaseView.cs @@ -0,0 +1,266 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EquipSetItemBaseView + { + public IXUILabel lbProfName; + + public IXUILabel lbLevel; + + public IXUILabel lbPartName; + + public GameObject goItem; + + public GameObject goHadGet; + + public EquipSetItemBaseView.stQualityEffectItem[] qualityEffectItemArr; + + public GameObject goCurrentEffect; + + private XItem mXItemToShow; + + private bool bBinding = false; + + public struct stQualityEffectItem + { + public GameObject effect; + + public int quality; + } + + public struct stEquipInfoParam + { + public bool isShowTooltip; + + public int playerProf; + } + + public void SetFinishItem(XItem item) + { + this.mXItemToShow = item; + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(this.goItem, item.itemID, new SpriteClickEventHandler(this._OnClickItemIcon)); + } + + public virtual void FindFrom(Transform t) + { + bool flag = null != t; + if (flag) + { + Transform transform = t.Find("Level"); + bool flag2 = transform == null; + if (flag2) + { + this.lbLevel = null; + } + else + { + this.lbLevel = (transform.GetComponent("XUILabel") as IXUILabel); + } + transform = t.Find("Prof"); + bool flag3 = transform == null; + if (flag3) + { + this.lbProfName = null; + } + else + { + this.lbProfName = (transform.GetComponent("XUILabel") as IXUILabel); + } + transform = t.Find("Part"); + bool flag4 = transform == null; + if (flag4) + { + this.lbPartName = null; + } + else + { + this.lbPartName = (transform.GetComponent("XUILabel") as IXUILabel); + } + this.goItem = t.Find("Item").gameObject; + transform = t.Find("Item/Yyy"); + bool flag5 = transform != null; + if (flag5) + { + this.goHadGet = transform.gameObject; + } + else + { + this.goHadGet = null; + } + transform = t.Find("Item/Name"); + int childCount = transform.childCount; + bool flag6 = childCount > 0; + if (flag6) + { + this.qualityEffectItemArr = new EquipSetItemBaseView.stQualityEffectItem[childCount]; + for (int i = 0; i < childCount; i++) + { + this.qualityEffectItemArr[i].effect = transform.GetChild(i).gameObject; + this.qualityEffectItemArr[i].effect.SetActive(false); + int.TryParse(this.qualityEffectItemArr[i].effect.name, out this.qualityEffectItemArr[i].quality); + } + } + else + { + this.qualityEffectItemArr = null; + } + } + } + + public void SetItemInfo(int _itemID, EquipSetItemBaseView.stEquipInfoParam _param, bool _isBind = false) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(_itemID); + this.SetItemInfo(itemConf, _param, _isBind); + } + + public void SetItemInfo(XItem item, EquipSetItemBaseView.stEquipInfoParam _param, bool _isBind = false) + { + bool flag = item == null; + if (!flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + this.SetItemInfo(itemConf, _param, _isBind); + XSingleton.singleton.DrawItem(this.goItem, item); + } + } + + public void SetItemInfo(ItemList.RowData _item, EquipSetItemBaseView.stEquipInfoParam _param, bool _isBind = false) + { + bool flag = _item == null; + if (!flag) + { + this.bBinding = _isBind; + XItemDrawerMgr.Param.bBinding = _isBind; + XSingleton.singleton.normalItemDrawer.DrawItem(this.goItem, _item.ItemID, 0, false); + bool flag2 = true; + bool flag3 = this.qualityEffectItemArr != null && _item != null; + if (flag3) + { + for (int i = 0; i < this.qualityEffectItemArr.Length; i++) + { + bool flag4 = this.qualityEffectItemArr[i].quality == (int)_item.ItemQuality; + if (flag4) + { + this.goCurrentEffect = this.qualityEffectItemArr[i].effect; + flag2 = false; + break; + } + } + } + bool flag5 = flag2; + if (flag5) + { + this.goCurrentEffect = null; + } + bool flag6 = this.qualityEffectItemArr != null; + if (flag6) + { + for (int j = 0; j < this.qualityEffectItemArr.Length; j++) + { + this.qualityEffectItemArr[j].effect.SetActive(false); + } + } + bool isShowTooltip = _param.isShowTooltip; + if (isShowTooltip) + { + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(this.goItem, _item.ItemID, new SpriteClickEventHandler(this._OnClickItemIcon)); + this.mXItemToShow = XBagDocument.MakeXItem(_item.ItemID, _isBind); + } + else + { + XSingleton.singleton.normalItemDrawer.CloseClickShowTooltipEvent(this.goItem); + this.mXItemToShow = null; + } + int num = 0; + bool flag7 = _item != null; + if (flag7) + { + num = (int)_item.Profession; + } + string profName = XSingleton.singleton.GetProfName(num); + bool flag8 = _param.playerProf == 0 || _param.playerProf == num || num == 0; + if (flag8) + { + bool flag9 = this.lbProfName != null; + if (flag9) + { + this.lbProfName.SetText(profName); + } + bool flag10 = this.goCurrentEffect != null; + if (flag10) + { + this.goCurrentEffect.SetActive(true); + } + } + else + { + bool flag11 = this.lbProfName != null; + if (flag11) + { + this.lbProfName.SetText(string.Format(XStringDefineProxy.GetString("EQUIPCREATE_ERROR_FMT"), profName)); + } + bool flag12 = this.goCurrentEffect != null; + if (flag12) + { + this.goCurrentEffect.SetActive(false); + } + } + bool flag13 = this.lbPartName != null; + if (flag13) + { + EquipList.RowData rowData = null; + ItemType itemType = (ItemType)_item.ItemType; + bool flag14 = itemType == ItemType.EQUIP; + if (flag14) + { + rowData = XBagDocument.GetEquipConf(_item.ItemID); + } + bool flag15 = rowData != null; + if (flag15) + { + this.lbPartName.SetText(XSingleton.singleton.GetEquipPartName((EquipPosition)rowData.EquipPos, true)); + } + else + { + this.lbPartName.SetText(XSingleton.singleton.GetItemTypeStr(itemType)); + } + } + bool flag16 = this.goHadGet != null; + if (flag16) + { + ulong num2 = 0UL; + ItemType itemType2 = (ItemType)_item.ItemType; + bool flag17 = itemType2 == ItemType.EQUIP || itemType2 == ItemType.ARTIFACT; + if (flag17) + { + num2 = XSingleton.singleton.Doc.XBagDoc.GetItemCount(_item.ItemID); + } + bool flag18 = num2 > 0UL; + if (flag18) + { + this.goHadGet.SetActive(true); + } + else + { + num2 = (ulong)((long)XSingleton.singleton.Doc.XBagDoc.GetBodyItemCountByID(_item.ItemID)); + this.goHadGet.SetActive(num2 > 0UL); + } + } + } + } + + private void _OnClickItemIcon(IXUISprite spr) + { + bool flag = this.mXItemToShow == null; + if (flag) + { + this.mXItemToShow = XBagDocument.MakeXItem((int)spr.ID, this.bBinding); + } + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(this.mXItemToShow, spr, false, 0u); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipSetItemBaseView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemBaseView.cs.meta new file mode 100644 index 00000000..3c0d171c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemBaseView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c50db2ea9ed22d44e89bfaad7aa7302b +timeCreated: 1611404504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs new file mode 100644 index 00000000..ff0d8146 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs @@ -0,0 +1,51 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class EquipSetItemView : EquipSetItemBaseView + { + public GameObject goItem1; + + public GameObject goItem2; + + public GameObject goItem3; + + public GameObject goItem4; + + public IXUILabel lbItemCount1; + + public IXUILabel lbItemCount2; + + public IXUILabel lbItemCount3; + + public IXUILabel lbItemCount4; + + public IXUIButton btnCreate; + + public IXUILabel lbCost; + + public GameObject goRedpoint; + + public override void FindFrom(Transform t) + { + bool flag = null != t; + if (flag) + { + base.FindFrom(t); + this.goItem1 = t.Find("Item1").gameObject; + this.lbItemCount1 = (this.goItem1.transform.Find("FCount").GetComponent("XUILabel") as IXUILabel); + this.goItem2 = t.Find("Item2").gameObject; + this.lbItemCount2 = (this.goItem2.transform.Find("FCount").GetComponent("XUILabel") as IXUILabel); + this.goItem3 = t.Find("Item3").gameObject; + this.lbItemCount3 = (this.goItem3.transform.Find("FCount").GetComponent("XUILabel") as IXUILabel); + this.goItem4 = t.Find("Item4").gameObject; + this.lbItemCount4 = (this.goItem4.transform.Find("FCount").GetComponent("XUILabel") as IXUILabel); + this.btnCreate = (t.Find("Create").GetComponent("XUIButton") as IXUIButton); + this.lbCost = (this.btnCreate.gameObject.transform.Find("V").GetComponent("XUILabel") as IXUILabel); + this.goRedpoint = this.btnCreate.gameObject.transform.Find("RedPoint").gameObject; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs.meta new file mode 100644 index 00000000..12df82c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipSetItemView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc193587d2c412a459a40f575f89993b +timeCreated: 1611404444 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlg.cs new file mode 100644 index 00000000..c2dfc8ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlg.cs @@ -0,0 +1,669 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EquipTooltipDlg : TooltipDlg + { + public override string fileName + { + get + { + return "GameSystem/EquipToolTipDlg"; + } + } + + protected override int compareWindowDistance + { + get + { + return 20; + } + } + + protected override void Init() + { + base.Init(); + this.m_OperateList[0, 0] = new TooltipButtonOperatePutOn(); + this.m_OperateList[0, 1] = new TooltipButtonOperateEnhanceTransform(); + this.m_OperateList[0, 2] = new TooltipButtonOperateEnchantTransform(); + this.m_OperateList[0, 3] = new TooltipButtonOperateRecycle(XSysDefine.XSys_Item_Equip); + this.m_OperateList[0, 4] = new TooltipButtonOperateSmeltReturn(); + this.m_OperateList[1, 0] = new TooltipButtonOperateTakeOff(); + this.m_OperateList[1, 1] = new TooltipButtonOperateEnhance(); + this.m_OperateList[1, 2] = new TooltipButtonOperateSmelt(); + this.m_OperateList[1, 3] = new TooltipButtonOperateForge(); + this.m_OperateList[1, 4] = new TooltipButtonOperateEnchant(); + this.m_OperateList[1, 5] = new TooltipButtonOperateEquipFusion(); + this.m_OperateList[1, 6] = new TooltipButtonOperateEquipUpgrade(); + } + + public override bool HideToolTip(bool forceHide = false) + { + bool flag = base.HideToolTip(forceHide); + bool result; + if (flag) + { + base.uiBehaviour.m_JadeItemPool.ReturnAll(false); + result = true; + } + else + { + result = false; + } + return result; + } + + public void ShowToolTip(ulong MainUID, ulong CompareUID, bool bShowButtons = true) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(MainUID); + XItem xitem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(CompareUID); + bool flag = xitem.uid == 0UL; + if (flag) + { + xitem = null; + } + this.ShowToolTip(itemByUID, xitem, bShowButtons, 0u); + } + + private void _SetEnhanceAttrFrame(GameObject scrollPanel, XEquipItem equipItem, bool bMain) + { + GameObject gameObject = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject.transform.parent = scrollPanel.transform; + string itemQualityColorStr = XSingleton.singleton.GetItemQualityColorStr(1); + AttrFrameParam attrFrameParam = new AttrFrameParam(); + attrFrameParam.Title = XStringDefineProxy.GetString("TOOLTIP_ENHANCE_ATTR"); + for (int i = 0; i < equipItem.enhanceInfo.EnhanceAttr.Count; i++) + { + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(equipItem.enhanceInfo.EnhanceAttr[i], itemQualityColorStr, itemQualityColorStr); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + } + base.AppendFrame(gameObject, (float)this.SetupAttrFrame(gameObject, attrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + } + + private void _SetJadeAttrFrame(GameObject scrollPanel, XEquipItem equipItem, bool bMain) + { + bool flag = equipItem == null; + if (!flag) + { + uint level = 0u; + bool flag2 = XSingleton.singleton.XPlayerData != null; + if (flag2) + { + level = XSingleton.singleton.XPlayerData.Level; + } + bool flag3 = XSingleton.singleton.mainAttributes != null; + if (flag3) + { + level = XSingleton.singleton.mainAttributes.Level; + } + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + EquipList.RowData equipConf = XBagDocument.GetEquipConf(equipItem.itemID); + bool flag4 = equipConf == null; + if (!flag4) + { + bool flag5 = specificDocument.JadeIsOpen(equipConf.EquipPos, level); + bool flag6 = !flag5; + if (!flag6) + { + GameObject gameObject = null; + AttrFrameParam attrFrameParam = null; + for (int i = 0; i < equipItem.jadeInfo.jades.Length; i++) + { + XJadeItem xjadeItem = equipItem.jadeInfo.jades[i]; + bool flag7 = xjadeItem == null; + if (!flag7) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(xjadeItem.itemID); + bool flag8 = itemConf == null; + if (!flag8) + { + bool flag9 = gameObject == null; + if (flag9) + { + gameObject = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject.transform.parent = scrollPanel.gameObject.transform; + attrFrameParam = new AttrFrameParam(); + attrFrameParam.Title = XStringDefineProxy.GetString("TOOLTIP_JADE_ATTR"); + } + foreach (XItemChangeAttr attr in xjadeItem.BasicAttr()) + { + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.TextSb.Append(XSingleton.singleton.ChooseProfString(itemConf.ItemName, base.profession)).Append(" "); + AttrParam.Append(attr, "", ""); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + } + } + } + } + bool flag10 = gameObject != null; + if (flag10) + { + base.AppendFrame(gameObject, (float)this.SetupAttrFrame(gameObject, attrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + } + } + } + } + } + + protected override void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + XEquipItem xequipItem = item as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + GameObject gameObject = goToolTip.transform.Find("ScrollPanel").gameObject; + this.SetBasicAttrFrame(gameObject, item, compareItem, bMain); + this._SetupRandAndForgeFrame(goToolTip, item, bMain); + this._SetupEnchantFrame(goToolTip, item, compareItem, bMain); + bool flag2 = xequipItem.enhanceInfo.EnhanceLevel > 0u; + if (flag2) + { + this._SetEnhanceAttrFrame(gameObject, xequipItem, bMain); + } + uint level = 0u; + bool flag3 = XSingleton.singleton.XPlayerData != null; + if (flag3) + { + level = XSingleton.singleton.XPlayerData.Level; + } + bool flag4 = XSingleton.singleton.mainAttributes != null; + if (flag4) + { + level = XSingleton.singleton.mainAttributes.Level; + } + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + bool flag5 = false; + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + bool flag6 = equipConf != null; + if (flag6) + { + flag5 = specificDocument.JadeIsOpen(equipConf.EquipPos, level); + } + bool flag7 = flag5; + if (flag7) + { + this._SetJadeAttrFrame(gameObject, xequipItem, bMain); + } + } + } + + protected new void SetBasicAttrFrame(GameObject scrollPanel, XAttrItem item, XAttrItem compareItem, bool bMain) + { + GameObject gameObject = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject.transform.parent = scrollPanel.transform; + uint profession = 0u; + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + profession = XSingleton.singleton.Player.BasicTypeID; + } + bool flag2 = XSingleton.singleton.mainAttributes != null; + if (flag2) + { + profession = XSingleton.singleton.mainAttributes.BasicTypeID; + } + List nowFuseData = EquipFusionDocument.Doc.GetNowFuseData(item, profession); + AttrFrameParam attrFrameParam = new AttrFrameParam(); + attrFrameParam.Title = XStringDefineProxy.GetString("TOOLTIP_BASIC_ATTR"); + for (int i = 0; i < nowFuseData.Count; i++) + { + AttrParam item2 = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.TextSb.Append(XAttributeCommon.GetAttrStr((int)nowFuseData[i].AttrId)).Append(" ").Append(nowFuseData[i].BeforeBaseAttrNum); + bool flag3 = nowFuseData[i].BeforeAddNum > 0u; + if (flag3) + { + AttrParam.ValueSb.Append("+").Append(nowFuseData[i].BeforeAddNum); + } + item2.IsShowTipsIcon = nowFuseData[i].IsExtra; + item2.IconName = "zb_rzsx"; + item2.SetTextFromSb(); + item2.SetValueFromSb(); + attrFrameParam.AttrList.Add(item2); + } + base.AppendFrame(gameObject, (float)this.SetupAttrFrame(gameObject, attrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + this.SetAttrOther(scrollPanel.transform, attrFrameParam); + Transform transform = gameObject.transform.Find("EquipRz"); + XEquipItem xequipItem = item as XEquipItem; + bool flag4 = transform != null; + if (flag4) + { + bool flag5 = xequipItem.fuseInfo.BreakNum == 0u; + if (flag5) + { + transform.gameObject.SetActive(false); + } + else + { + string fuseIconName = EquipFusionDocument.Doc.GetFuseIconName(xequipItem.fuseInfo.BreakNum); + bool flag6 = fuseIconName != null; + if (flag6) + { + transform.gameObject.SetActive(true); + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = fuseIconName; + } + } + } + transform = gameObject.transform.Find("RzLabel"); + bool flag7 = transform != null; + if (flag7) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + bool flag8 = equipConf != null; + if (flag8) + { + bool flag9 = equipConf.FuseCanBreakNum > 0; + if (flag9) + { + transform.gameObject.SetActive(true); + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("FuseBreakNum"), xequipItem.fuseInfo.BreakNum, equipConf.FuseCanBreakNum)); + } + else + { + transform.gameObject.SetActive(false); + } + } + else + { + transform.gameObject.SetActive(false); + } + } + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + Transform transform = goToolTip.transform; + GameObject gameObject = transform.Find("TopFrame/State").gameObject; + base._SetupLevel(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 1); + EquipList.RowData equipConf = XBagDocument.GetEquipConf(data.ItemID); + base._SetTopFrameLabel(goToolTip, 2, XStringDefineProxy.GetString("ToolTipText_Part"), (equipConf != null) ? XSingleton.singleton.GetEquipPartName((EquipPosition)equipConf.EquipPos, true) : string.Empty); + gameObject.SetActive(!bMain || XSingleton.singleton.bEquiped); + } + + protected override int _GetPPT(XItem item, bool bMain, ref string valueText) + { + XEquipItem xequipItem = item as XEquipItem; + bool flag = xequipItem == null; + int result; + if (flag) + { + result = -1; + } + else + { + XAttributes attributes = bMain ? XSingleton.singleton.mainAttributes : XSingleton.singleton.compareAttributes; + double num = xequipItem.GetPPT(attributes); + bool bPreview = xequipItem.randAttrInfo.bPreview; + if (bPreview) + { + uint num2 = 0u; + uint num3 = 0u; + EquipSlotAttrDatas attrData = XCharacterEquipDocument.RandomAttrMgr.GetAttrData((uint)xequipItem.itemID); + bool flag2 = attrData != null; + if (flag2) + { + num2 = (uint)num + EquipSlotAttrDatas.GetMinPPT(attrData, attributes, false); + num3 = (uint)num + EquipSlotAttrDatas.GetMaxPPT(attrData, attributes); + } + EquipSlotAttrDatas attrData2 = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)xequipItem.itemID); + bool flag3 = attrData2 != null; + if (flag3) + { + num2 += (uint)num + EquipSlotAttrDatas.GetMinPPT(attrData, attributes, true); + num3 += (uint)num + EquipSlotAttrDatas.GetMaxPPT(attrData, attributes); + } + valueText = string.Format("{0} - {1}", num2, num3); + result = -1; + } + else + { + for (int i = 0; i < xequipItem.randAttrInfo.RandAttr.Count; i++) + { + num += XSingleton.singleton.GetPPT(xequipItem.randAttrInfo.RandAttr[i], attributes, -1); + } + for (int j = 0; j < xequipItem.forgeAttrInfo.ForgeAttr.Count; j++) + { + num += (uint)XSingleton.singleton.GetPPT(xequipItem.forgeAttrInfo.ForgeAttr[j], attributes, -1); + } + valueText = ((uint)num).ToString(); + result = (int)num; + } + } + return result; + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + this._SetupSuitFrame(goToolTip, mainItem, compareItem, bMain); + this._SetupJadeFrame(goToolTip, mainItem, compareItem, bMain); + base.SetupOtherFrame(goToolTip, mainItem, compareItem, bMain); + } + + private void _SetupJadeFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + XEquipItem xequipItem = mainItem as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + bool flag2 = equipConf == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("equipListRowData == null while id = ", xequipItem.itemID.ToString(), null, null, null, null); + } + else + { + uint num = 0u; + bool flag3 = XSingleton.singleton.XPlayerData != null; + if (flag3) + { + num = XSingleton.singleton.XPlayerData.Level; + } + bool flag4 = XSingleton.singleton.mainAttributes != null; + if (flag4) + { + num = XSingleton.singleton.mainAttributes.Level; + } + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + IXUISprite ixuisprite = goToolTip.transform.Find("JadeFrame").GetComponent("XUISprite") as IXUISprite; + bool flag5 = specificDocument.JadeIsOpen(equipConf.EquipPos, num); + bool flag6 = !flag5; + if (flag6) + { + ixuisprite.SetVisible(false); + } + else + { + SeqListRef slotInfoByPos = specificDocument.GetSlotInfoByPos(equipConf.EquipPos); + int num2 = 4; + int i; + for (i = 0; i < (int)slotInfoByPos.count; i++) + { + bool flag7 = i >= num2; + if (flag7) + { + break; + } + bool flag8 = num >= slotInfoByPos[i, 1]; + if (flag8) + { + GameObject gameObject = base.uiBehaviour.m_JadeItemPool.FetchGameObject(false); + gameObject.name = "jadeItem" + i; + Transform transform = goToolTip.transform.Find("JadeFrame/Jade" + i); + gameObject.transform.parent = ixuisprite.gameObject.transform; + gameObject.transform.localPosition = transform.localPosition; + gameObject.transform.localScale = Vector3.one; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + XJadeItem realItem = xequipItem.jadeInfo.jades[i]; + XItemDrawerMgr.Param.Profession = base.profession; + XSingleton.singleton.jadeSlotDrawer.DrawItem(gameObject, slotInfoByPos[i, 0], false, realItem); + } + } + bool flag9 = i > 0; + if (flag9) + { + this.bHadJade = true; + ixuisprite.SetVisible(true); + Vector3 localPosition = ixuisprite.gameObject.transform.localPosition; + ixuisprite.gameObject.transform.localPosition = new Vector3(localPosition.x, -this.totalFrameHeight, localPosition.z); + this.totalFrameHeight += (float)ixuisprite.spriteHeight; + } + else + { + ixuisprite.SetVisible(false); + } + } + } + } + } + + private void _SetupRandAndForgeFrame(GameObject goToolTip, XItem mainItem, bool bMain) + { + XEquipItem xequipItem = mainItem as XEquipItem; + bool flag = !xequipItem.randAttrInfo.bPreview && xequipItem.randAttrInfo.RandAttr.Count == 0 && !xequipItem.forgeAttrInfo.bPreview && xequipItem.forgeAttrInfo.ForgeAttr.Count == 0; + if (!flag) + { + EquipSlotAttrDatas attrData = XCharacterEquipDocument.RandomAttrMgr.GetAttrData((uint)xequipItem.itemID); + EquipSlotAttrDatas attrData2 = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)xequipItem.itemID); + bool flag2 = attrData == null && attrData2 == null; + if (!flag2) + { + GameObject gameObject = goToolTip.transform.Find("ScrollPanel").gameObject; + GameObject gameObject2 = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject2.transform.parent = gameObject.transform; + string itemQualityColorStr = XSingleton.singleton.GetItemQualityColorStr(2); + AttrFrameParam attrFrameParam = new AttrFrameParam(); + attrFrameParam.Title = XStringDefineProxy.GetString("HIDDEN_ATTR"); + bool bPreview = xequipItem.randAttrInfo.bPreview; + if (bPreview) + { + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(AttrParam.TextSb, XStringDefineProxy.GetString("HIDDEN_ATTR"), itemQualityColorStr); + AttrParam.Append(AttrParam.ValueSb, "???", itemQualityColorStr); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + } + int count = xequipItem.randAttrInfo.RandAttr.Count; + List list = new List(); + for (int i = 0; i < count; i++) + { + list.Add(xequipItem.randAttrInfo.RandAttr[i]); + } + for (int j = 0; j < xequipItem.forgeAttrInfo.ForgeAttr.Count; j++) + { + list.Add(xequipItem.forgeAttrInfo.ForgeAttr[j]); + } + for (int k = 0; k < list.Count; k++) + { + XItemChangeAttr xitemChangeAttr = list[k]; + bool flag3 = xitemChangeAttr.AttrID == 0u; + if (!flag3) + { + bool flag4 = k < count; + bool flag5 = flag4; + EquipSlotAttrDatas equipSlotAttrDatas; + int slot; + if (flag5) + { + equipSlotAttrDatas = attrData; + slot = k + 1; + } + else + { + equipSlotAttrDatas = attrData2; + slot = count - k + 1; + } + bool flag6 = equipSlotAttrDatas == null; + if (!flag6) + { + AttrParam item2 = default(AttrParam); + AttrParam.ResetSb(); + item2.IsShowTipsIcon = !flag4; + item2.IconName = "zb_dzsx"; + EquipAttrData attrData3 = equipSlotAttrDatas.GetAttrData(slot, xitemChangeAttr); + bool flag7 = attrData3 != null; + if (flag7) + { + string color = equipSlotAttrDatas.GetColor(slot, xitemChangeAttr); + AttrParam.Append(xitemChangeAttr, color, color); + AttrParam.ValueSb.Append(" ["); + AttrParam.ValueSb.Append(attrData3.RangValue.Min); + AttrParam.ValueSb.Append(" - "); + AttrParam.ValueSb.Append(attrData3.RangValue.Max); + AttrParam.ValueSb.Append("] "); + } + else + { + AttrParam.Append(xitemChangeAttr, itemQualityColorStr, itemQualityColorStr); + } + item2.SetTextFromSb(); + item2.SetValueFromSb(); + attrFrameParam.AttrList.Add(item2); + } + } + } + base.AppendFrame(gameObject2, (float)this.SetupAttrFrame(gameObject2, attrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject2); + } + } + } + + private void _SetupEnchantFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + XEquipItem xequipItem = mainItem as XEquipItem; + bool flag = !xequipItem.enchantInfo.bHasEnchant; + if (!flag) + { + GameObject gameObject = goToolTip.transform.Find("ScrollPanel").gameObject; + GameObject gameObject2 = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject2.transform.parent = gameObject.transform; + string itemQualityColorStr = XSingleton.singleton.GetItemQualityColorStr(2); + AttrFrameParam attrFrameParam = new AttrFrameParam(); + attrFrameParam.Title = XStringDefineProxy.GetString("TOOLTIP_ENCHANT_ATTR"); + XEnchantInfo enchantInfo = xequipItem.enchantInfo; + bool flag2 = enchantInfo.ChooseAttr > 0u; + if (flag2) + { + for (int i = 0; i < xequipItem.enchantInfo.AttrList.Count; i++) + { + bool flag3 = enchantInfo.AttrList[i].AttrID == enchantInfo.ChooseAttr; + if (flag3) + { + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(xequipItem.enchantInfo.AttrList[i], "", ""); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + } + } + } + base.AppendFrame(gameObject2, (float)this.SetupAttrFrame(gameObject2, attrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject2); + } + } + + private void _SetupSuitFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + IXUISprite ixuisprite = goToolTip.transform.Find("ScrollPanel/SuitFrame").GetComponent("XUISprite") as IXUISprite; + bool flag = mainItem == null; + if (flag) + { + ixuisprite.SetVisible(false); + } + else + { + int itemID = mainItem.itemID; + EquipSuitTable.RowData suit = XCharacterEquipDocument.SuitManager.GetSuit(itemID, true); + bool flag2 = suit == null; + if (flag2) + { + ixuisprite.SetVisible(false); + } + else + { + ixuisprite.SetVisible(true); + bool flag3 = XSingleton.singleton.BodyBag == null; + if (flag3) + { + XSingleton.singleton.BodyBag = XSingleton.singleton.Doc.XBagDoc.EquipBag; + } + int num = XEquipSuitManager.GetEquipedSuits(suit, XSingleton.singleton.BodyBag, null); + bool flag4 = bMain && XEquipSuitManager.WillChangeEquipedCount(suit, mainItem.itemID, XSingleton.singleton.BodyBag); + if (flag4) + { + num++; + } + int num2 = 0; + AttrFrameParam attrFrameParam = new AttrFrameParam(); + for (int i = 0; i < XEquipSuitManager.GetEffectDataCount(); i++) + { + int num3 = 0; + int effectData = XEquipSuitManager.GetEffectData(suit, i, out num3); + bool flag5 = (float)effectData != 0f; + if (flag5) + { + bool flag6 = i <= num; + string text; + string color; + if (flag6) + { + text = "ffffff"; + color = XSingleton.singleton.GetColorStr(new Color(0.996078432f, 0.807843149f, 0f)); + } + else + { + text = XSingleton.singleton.GetColorStr(new Color(0.5019608f, 0.5019608f, 0.5019608f)); + color = text; + } + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(AttrParam.TextSb, XStringDefineProxy.GetString("EQUIP_SUIT_EFFECT", new object[] + { + i + }), color); + string s = string.Format("{0} +{1}", XStringDefineProxy.GetString((XAttributeDefine)effectData), num3); + AttrParam.Append(AttrParam.ValueSb, s, text); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + num2++; + } + } + bool flag7 = num2 > 0; + if (flag7) + { + attrFrameParam.Title = string.Format("({0}/{1})", num, suit.SuitNum); + base.AppendFrame(ixuisprite.gameObject, (float)this.SetupAttrFrame(ixuisprite.gameObject, attrFrameParam, bMain), null); + } + else + { + ixuisprite.SetVisible(false); + } + } + } + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + bool flag = !this.bShowButtons; + if (!flag) + { + if (bMain) + { + XEquipItem xequipItem = item as XEquipItem; + bool flag2 = XSingleton.singleton.Doc.XBagDoc.EquipBag.HasItem(item.uid); + if (flag2) + { + base._SetupButtonVisiability(goToolTip, 1, item); + } + else + { + base._SetupButtonVisiability(goToolTip, 0, item); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlg.cs.meta new file mode 100644 index 00000000..af4cd17b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1472322bc6d198f4181e200943bcc4c1 +timeCreated: 1611403258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlgBehaviour.cs new file mode 100644 index 00000000..49b276be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlgBehaviour.cs @@ -0,0 +1,16 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EquipTooltipDlgBehaviour : TooltipDlgBehaviour + { + public XUIPool m_JadeItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Awake() + { + this.m_JadeItemPool.SetupPool(base.transform.Find("Bg/Bg").gameObject, base.transform.Find("Bg/Bg/ToolTip/JadeFrame/JadeTpl").gameObject, 2u, false); + base.Awake(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlgBehaviour.cs.meta new file mode 100644 index 00000000..9645ca1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipTooltipDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0f5616f1d7203648b573dfcca7fffe7 +timeCreated: 1611404251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipUpgradeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/EquipUpgradeHandler.cs new file mode 100644 index 00000000..65710a56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipUpgradeHandler.cs @@ -0,0 +1,330 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class EquipUpgradeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/UpgradeFrame"; + } + } + + private EquipUpgradeDocument m_doc; + + private GameObject m_beforeItem; + + private GameObject m_afterItem; + + private GameObject m_beforeUpgradeGo; + + private GameObject m_afterUpgradeGo; + + private IXUIButton m_helpBtn; + + private IXUIButton m_closeBtn; + + private IXUIButton m_upgradeBtn; + + private XUIPool m_needItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_BeforeAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_AfterAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private readonly int m_gap = 30; + + private float m_delayTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + protected override void Init() + { + base.Init(); + this.m_doc = EquipUpgradeDocument.Doc; + this.m_doc.Handler = this; + Transform transform = base.PanelObject.transform.Find("Bg/Top"); + this.m_beforeItem = transform.Find("UpgradeItemBefore").gameObject; + this.m_afterItem = transform.Find("UpgradeItemAfter").gameObject; + transform = base.PanelObject.transform.Find("Bg"); + this.m_helpBtn = (transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_closeBtn = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + transform = base.PanelObject.transform.Find("Bg/Bottom"); + this.m_upgradeBtn = (transform.Find("UpgradeBtn").GetComponent("XUIButton") as IXUIButton); + transform = transform.Find("Items"); + this.m_needItemPool.SetupPool(transform.gameObject, transform.Find("Item").gameObject, 2u, true); + transform = base.PanelObject.transform.Find("Bg/UpgradeAttr"); + this.m_beforeUpgradeGo = transform.Find("BeforeEnhance").gameObject; + this.m_afterUpgradeGo = transform.Find("AfterEnhance").gameObject; + this.m_BeforeAttrPool.SetupPool(this.m_beforeUpgradeGo, transform.Find("BeforeAttrTpl").gameObject, 2u, false); + this.m_AfterAttrPool.SetupPool(this.m_afterUpgradeGo, transform.Find("AfterAttrTpl").gameObject, 2u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosed)); + this.m_helpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelp)); + this.m_upgradeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnUpgrade)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + base.OnHide(); + DlgBase.singleton.OnPopHandlerSetVisible(false, null); + DlgBase.singleton.StackRefresh(); + bool flag = DlgBase.singleton._equipHandler != null; + if (flag) + { + DlgBase.singleton._equipHandler.SelectEquip(0UL); + DlgBase.singleton._equipHandler.RegisterItemClickEvents(null); + } + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = DlgBase.singleton._equipHandler != null; + if (flag) + { + DlgBase.singleton._equipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this.OnEquipClicked)); + } + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.EquipBag.GetItemByUID(this.m_doc.SelectUid); + bool flag2 = itemByUID == null; + if (flag2) + { + this.m_doc.SelectEquip(0UL); + } + else + { + this.m_doc.SelectEquip(this.m_doc.SelectUid); + } + this.FillContent(); + } + + public override void StackRefresh() + { + this.RefreshData(); + base.StackRefresh(); + } + + public void ShowUI() + { + this.FillContent(); + } + + private void FillContent() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag = itemByUID == null; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag2 = equipConf == null; + if (!flag2) + { + XSingleton.singleton.DrawItem(this.m_beforeItem, itemByUID); + IXUISprite ixuisprite = this.m_beforeItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = itemByUID.uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItem)); + EquipList.RowData equipConf2 = XBagDocument.GetEquipConf((int)equipConf.UpgadeTargetID); + bool flag3 = equipConf2 != null; + if (flag3) + { + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_afterItem, equipConf2.ItemID, 0, false); + ixuisprite = (this.m_afterItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = (ulong)equipConf2.ItemID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItem)); + } + this.FillAttribute(equipConf, equipConf2); + this.FillNeedItem(equipConf.UpgradeNeedMaterials); + } + } + } + + private void FillAttribute(EquipList.RowData row, EquipList.RowData targetRow) + { + bool flag = targetRow == null; + if (!flag) + { + this.m_BeforeAttrPool.ReturnAll(false); + this.m_AfterAttrPool.ReturnAll(false); + SeqListRef attributes = row.Attributes; + float num = (float)((attributes.Count - 1) * this.m_gap / 2); + for (int i = 0; i < attributes.Count; i++) + { + GameObject gameObject = this.m_BeforeAttrPool.FetchGameObject(false); + gameObject.name = i.ToString(); + gameObject.transform.parent = this.m_beforeUpgradeGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, num - (float)(this.m_gap * i), 0f); + this.FillAttrWithName(gameObject, attributes[i, 0], attributes[i, 1]); + int data = this.GetData(attributes[i, 0], targetRow.Attributes); + int dvalue = data - attributes[i, 1]; + gameObject = this.m_AfterAttrPool.FetchGameObject(false); + gameObject.name = i.ToString(); + gameObject.transform.parent = this.m_afterUpgradeGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, num - (float)(this.m_gap * i), 0f); + this.FillAttrNoName(gameObject, data, dvalue); + } + } + } + + private void FillAttrWithName(GameObject go, int attrId, int num) + { + IXUILabel ixuilabel = go.transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString((XAttributeDefine)attrId)); + ixuilabel = (go.transform.Find("Value").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(num.ToString()); + } + + private void FillAttrNoName(GameObject go, int num, int dvalue) + { + IXUILabel ixuilabel = go.transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(num.ToString()); + bool flag = dvalue > 0; + if (flag) + { + ixuilabel = (go.transform.Find("Up").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[63ff85]{0}[-]", dvalue)); + ixuilabel.gameObject.SetActive(true); + } + else + { + go.transform.Find("Up").gameObject.SetActive(false); + } + } + + private int GetData(int id, SeqListRef seq) + { + for (int i = 0; i < (int)seq.count; i++) + { + bool flag = seq[i, 0] == id; + if (flag) + { + return seq[i, 1]; + } + } + return 0; + } + + private void FillNeedItem(SeqListRef items) + { + this.m_needItemPool.ReturnAll(false); + for (int i = 0; i < (int)items.count; i++) + { + uint num = items[i, 0]; + GameObject gameObject = this.m_needItemPool.FetchGameObject(false); + gameObject.name = num.ToString(); + gameObject.transform.localPosition = new Vector3((float)(this.m_needItemPool.TplWidth * i), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num, 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + IXUILabel ixuilabel = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + uint num2 = (uint)XBagDocument.BagDoc.GetItemCount((int)num); + bool flag = num2 >= items[i, 1]; + if (flag) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItem)); + ixuilabel.SetText(string.Format("[00ff00]{0}[-]/{1}", num2, items[i, 1])); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetItemAccess)); + ixuilabel.SetText(string.Format("[ff0000]{0}[-]/{1}", num2, items[i, 1])); + } + } + } + + private bool OnClosed(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnHelp(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_EquipUpgrade); + return true; + } + + private bool OnUpgrade(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_delayTime); + bool result; + if (flag) + { + result = true; + } + else + { + this.m_doc.ReqUpgrade(); + result = true; + } + return result; + } + + private void OnClickItem(IXUISprite iSp) + { + ulong id = iSp.ID; + XItem xitem = XBagDocument.BagDoc.GetItemByUID(id); + bool flag = xitem == null; + if (flag) + { + xitem = XBagDocument.MakeXItem((int)id, false); + } + bool flag2 = xitem == null; + if (!flag2) + { + XSingleton.singleton.ShowTooltipDialog(xitem, null, iSp, false, 0u); + } + } + + public void OnEquipClicked(IXUISprite iSp) + { + this.m_doc.SelectEquip(iSp.ID); + } + + private void OnGetItemAccess(IXUISprite iSp) + { + int itemid = (int)iSp.ID; + XSingleton.singleton.ShowItemAccess(itemid, null); + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/EquipUpgradeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/EquipUpgradeHandler.cs.meta new file mode 100644 index 00000000..1c038ee2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/EquipUpgradeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33c57c402a0505e42b655ba5cd456477 +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ExchangeItemBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ExchangeItemBehaviour.cs new file mode 100644 index 00000000..15957ec0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ExchangeItemBehaviour.cs @@ -0,0 +1,94 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ExchangeItemBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabel m_Title; + + public XUIPool m_MyItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ItemScrollView; + + public GameObject m_MySelect; + + public GameObject m_MyItemGo; + + public IXUILabel m_MyItemName; + + public GameObject m_OtherSelect; + + public GameObject m_OtherItemGo; + + public IXUILabel m_OtherItemName; + + public IXUILabel m_Tips; + + public IXUILabel m_MyEnsureText; + + public IXUILabel m_OtherEnsureText; + + public IXUIButton m_EnsureBtn; + + public IXUIButton m_Input; + + public IXUIButton m_SpeakBtn; + + public IXUISprite m_MyVoiceBtn; + + public IXUISprite m_OtherVoiceBtn; + + public GameObject m_MyInputGo; + + public GameObject m_OtherInputGo; + + public IXUILabel m_MyInputText; + + public IXUILabel m_OtherInputText; + + public IXUILabel m_MyVoiceText; + + public IXUILabel m_OtherVoiceText; + + public IXUISpriteAnimation m_MyVoiceAni; + + public IXUISpriteAnimation m_OtherVoiceAni; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Title = (base.transform.Find("Bg/Title/content").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Self/List/ItemTpl"); + this.m_MyItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 16u, false); + this.m_ItemScrollView = (base.transform.Find("Bg/Self/List").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_MySelect = base.transform.Find("Bg/Self/MyItem/Item").gameObject; + this.m_MyItemGo = base.transform.Find("Bg/Self/MyItem").gameObject; + this.m_MyItemName = (base.transform.Find("Bg/Self/MyItem/Name").GetComponent("XUILabel") as IXUILabel); + this.m_OtherSelect = base.transform.Find("Bg/Other/OtherItem/Item").gameObject; + this.m_OtherItemGo = base.transform.Find("Bg/Other/OtherItem").gameObject; + this.m_OtherItemName = (base.transform.Find("Bg/Other/OtherItem/Name").GetComponent("XUILabel") as IXUILabel); + this.m_Tips = (base.transform.Find("Bg/Self/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_MyEnsureText = (base.transform.Find("Bg/Self/OK/Text").GetComponent("XUILabel") as IXUILabel); + this.m_OtherEnsureText = (base.transform.Find("Bg/Other/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_EnsureBtn = (base.transform.Find("Bg/Self/OK").GetComponent("XUIButton") as IXUIButton); + this.m_Input = (base.transform.Find("Bg/Input").GetComponent("XUIButton") as IXUIButton); + this.m_SpeakBtn = (base.transform.Find("Bg/Speak").GetComponent("XUIButton") as IXUIButton); + this.m_MyVoiceBtn = (base.transform.Find("Bg/Self/chatvoice").GetComponent("XUISprite") as IXUISprite); + this.m_MyInputGo = base.transform.Find("Bg/Self/chattext").gameObject; + this.m_MyInputText = (base.transform.Find("Bg/Self/chattext/text/content").GetComponent("XUILabel") as IXUILabel); + this.m_MyVoiceText = (base.transform.Find("Bg/Self/chatvoice/voice/content").GetComponent("XUILabel") as IXUILabel); + this.m_MyVoiceAni = (base.transform.Find("Bg/Self/chatvoice/voice/sign").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation); + this.m_OtherVoiceBtn = (base.transform.Find("Bg/Other/chatvoice").GetComponent("XUISprite") as IXUISprite); + this.m_OtherInputGo = base.transform.Find("Bg/Other/chattext").gameObject; + this.m_OtherInputText = (base.transform.Find("Bg/Other/chattext/text/content").GetComponent("XUILabel") as IXUILabel); + this.m_OtherVoiceText = (base.transform.Find("Bg/Other/chatvoice/voice/content").GetComponent("XUILabel") as IXUILabel); + this.m_OtherVoiceAni = (base.transform.Find("Bg/Other/chatvoice/voice/sign").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ExchangeItemBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ExchangeItemBehaviour.cs.meta new file mode 100644 index 00000000..d276cd30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ExchangeItemBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd61be3370f37ef43b4fb668ac01429c +timeCreated: 1611404451 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ExchangeItemDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ExchangeItemDlg.cs new file mode 100644 index 00000000..6b9fcc8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ExchangeItemDlg.cs @@ -0,0 +1,367 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ExchangeItemDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "Guild/GuildCollect/ExchangeItemDlg"; + } + } + + private XExchangeItemDocument _doc = null; + + private readonly int COLNUM = 4; + + private Vector2 m_DragDistance = Vector2.zero; + + private bool m_CancelRecord = false; + + private uint _audioPlayToken; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XExchangeItemDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_EnsureBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnsureBtnClick)); + base.uiBehaviour.m_Input.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnInputBtnClick)); + base.uiBehaviour.m_SpeakBtn.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnVoiceButton)); + base.uiBehaviour.m_SpeakBtn.RegisterDragEventHandler(new ButtonDragEventHandler(this.OnVoiceButtonDrag)); + base.uiBehaviour.m_MyVoiceBtn.ID = 0UL; + base.uiBehaviour.m_MyVoiceBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAudioPlayClick)); + base.uiBehaviour.m_OtherVoiceBtn.ID = 1UL; + base.uiBehaviour.m_OtherVoiceBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAudioPlayClick)); + } + + protected override void OnShow() + { + base.uiBehaviour.m_MyVoiceBtn.SetVisible(false); + base.uiBehaviour.m_MyInputGo.SetActive(false); + base.uiBehaviour.m_OtherVoiceBtn.SetVisible(false); + base.uiBehaviour.m_OtherInputGo.SetActive(false); + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl/Except_Quiz", 0f); + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl/Quiz ", 1f); + DlgBase.singleton.SetMaqueeSwitch(false); + XSingleton.singleton.EnableAutoPlay(false); + base.OnShow(); + } + + public void InitShow(string name, uint prof) + { + this.SetVisibleWithAnimation(true, null); + base.uiBehaviour.m_Title.SetText(string.Format(XStringDefineProxy.GetString("ExchangeTitle"), this._doc.ExchangeItemStr)); + base.uiBehaviour.m_MyItemGo.SetActive(false); + base.uiBehaviour.m_OtherItemGo.SetActive(false); + IXUILabel ixuilabel = base.uiBehaviour.transform.Find("Bg/Other/Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = base.uiBehaviour.transform.Find("Bg/Other/head").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(name); + ixuisprite.spriteName = XSingleton.singleton.GetSuperRiskAvatar(prof % 10u); + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + IXUILabel ixuilabel2 = base.uiBehaviour.transform.Find("Bg/Self/Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = base.uiBehaviour.transform.Find("Bg/Self/head").GetComponent("XUISprite") as IXUISprite; + ixuilabel2.SetText(XSingleton.singleton.XPlayerData.Name); + ixuisprite2.spriteName = XSingleton.singleton.GetSuperRiskAvatar(XSingleton.singleton.XPlayerData.TypeID % 10u); + } + this.OnTipsChange(); + this.OnEnsureStateChange(); + ulong typeFilter = 1UL << this._doc.ExchangeType; + this._doc.ItemList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this._doc.ItemList); + this.RefreshMyItemList(); + base.uiBehaviour.m_ItemScrollView.ResetPosition(); + } + + public void RefreshMyItemList() + { + base.uiBehaviour.m_MyItemPool.FakeReturnAll(); + Vector3 tplPos = base.uiBehaviour.m_MyItemPool.TplPos; + int num = 0; + for (int i = 0; i < this._doc.ItemList.Count; i++) + { + bool flag = this._doc.ItemList[i].uid == this._doc.CurrentSelectUid && this._doc.ItemList[i].itemCount == 1; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_MyItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(num % this.COLNUM * base.uiBehaviour.m_MyItemPool.TplWidth), tplPos.y - (float)(num / this.COLNUM * base.uiBehaviour.m_MyItemPool.TplHeight), 0f); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._doc.ItemList[i].itemID); + int itemCount = (this._doc.ItemList[i].uid == this._doc.CurrentSelectUid) ? (this._doc.ItemList[i].itemCount - 1) : this._doc.ItemList[i].itemCount; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf, itemCount, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this._doc.ItemList[i].uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClick)); + num++; + } + } + base.uiBehaviour.m_MyItemPool.ActualReturnAll(false); + } + + public void OnMySelectChange(ulong SelectID) + { + bool flag = SelectID == 0UL; + if (flag) + { + base.uiBehaviour.m_MyItemGo.SetActive(false); + } + else + { + base.uiBehaviour.m_MyItemGo.SetActive(true); + int i = 0; + while (i < this._doc.ItemList.Count) + { + bool flag2 = this._doc.ItemList[i].uid == SelectID; + if (flag2) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._doc.ItemList[i].itemID); + bool flag3 = itemConf == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Can't find my select itemid for itemlist. selectID = ", SelectID.ToString(), null, null, null, null); + return; + } + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_MySelect, itemConf, 0, false); + base.uiBehaviour.m_MyItemName.SetText(XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)); + IXUISprite ixuisprite = base.uiBehaviour.m_MySelect.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = 0UL; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClick)); + return; + } + else + { + i++; + } + } + XSingleton.singleton.AddErrorLog("Can't find MySelectID for bag. MySelectID = ", SelectID.ToString(), null, null, null, null); + } + } + + public void OnOtherSelectChange(int SelectID) + { + bool flag = SelectID == 0; + if (flag) + { + base.uiBehaviour.m_OtherItemGo.SetActive(false); + } + else + { + base.uiBehaviour.m_OtherItemGo.SetActive(true); + ItemList.RowData itemConf = XBagDocument.GetItemConf(SelectID); + bool flag2 = itemConf == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Can't find Other select itemid for itemlist. selectID = ", SelectID.ToString(), null, null, null, null); + } + else + { + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_OtherSelect, itemConf, 0, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(base.uiBehaviour.m_OtherSelect, SelectID); + base.uiBehaviour.m_OtherItemName.SetText(XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)); + } + } + } + + public void OnEnsureStateChange() + { + base.uiBehaviour.m_MyEnsureText.SetText(XStringDefineProxy.GetString(string.Format("ExchangeMyEnsureTips_{0}", this._doc.MyEnsureState ? 1 : 0))); + base.uiBehaviour.m_OtherEnsureText.SetText(XStringDefineProxy.GetString(string.Format("ExchangeOtherEnsureTips_{0}", this._doc.OtherEnsureState ? 1 : 0))); + } + + public void OnTipsChange() + { + string text = XStringDefineProxy.GetString(string.Format("ExchangeTips_{0}", this._doc.TipsState)); + bool flag = this._doc.TipsState == 0 || this._doc.TipsState == 2; + if (flag) + { + text = string.Format(text, this._doc.ExchangeItemStr); + } + base.uiBehaviour.m_Tips.SetText(text); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this._audioPlayToken); + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl/Except_Quiz", 1f); + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl/Quiz ", 1f); + DlgBase.singleton.SetMaqueeSwitch(true); + XSingleton.singleton.EnableAutoPlay(true); + XSingleton.singleton.StopAutoPlay(); + base.OnHide(); + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this._audioPlayToken); + base.OnUnload(); + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + this._doc.QueryCloseUI(); + return true; + } + + private void OnItemClick(IXUISprite iSp) + { + bool flag = this._doc.CurrentSelectUid != iSp.ID; + if (flag) + { + this._doc.QuerySelectItem(iSp.ID); + } + } + + private bool OnEnsureBtnClick(IXUIButton btn) + { + this._doc.QueryEnsureExchange(!this._doc.MyEnsureState); + return true; + } + + public void RefreshMyChat() + { + bool flag = this._doc.MyAudioID == 0UL; + if (flag) + { + base.uiBehaviour.m_MyInputGo.SetActive(true); + base.uiBehaviour.m_MyVoiceBtn.SetVisible(false); + base.uiBehaviour.m_MyInputText.SetText(this._doc.MyInputText); + } + else + { + base.uiBehaviour.m_MyInputGo.SetActive(false); + base.uiBehaviour.m_MyVoiceBtn.SetVisible(true); + this.OnAudioPlayClick(base.uiBehaviour.m_MyVoiceBtn); + base.uiBehaviour.m_MyVoiceText.SetText(this._doc.MyInputText); + } + } + + public void RefreshOtherChat() + { + bool flag = this._doc.OtherAudioID == 0UL; + if (flag) + { + base.uiBehaviour.m_OtherInputGo.SetActive(true); + base.uiBehaviour.m_OtherVoiceBtn.SetVisible(false); + base.uiBehaviour.m_OtherInputText.SetText(this._doc.OtherInputText); + } + else + { + base.uiBehaviour.m_OtherInputGo.SetActive(false); + base.uiBehaviour.m_OtherVoiceBtn.SetVisible(true); + this.OnAudioPlayClick(base.uiBehaviour.m_OtherVoiceBtn); + base.uiBehaviour.m_OtherVoiceText.SetText(this._doc.OtherInputText); + } + } + + private void OnAudioPlayClick(IXUISprite iSp) + { + XSingleton.singleton.StopAutoPlay(); + base.uiBehaviour.m_MyVoiceAni.StopAndReset(); + base.uiBehaviour.m_OtherVoiceAni.StopAndReset(); + XSingleton.singleton.KillTimer(this._audioPlayToken); + bool flag = iSp.ID == 0UL; + if (flag) + { + XSingleton.singleton.StartPlayAudioId(this._doc.MyAudioID); + base.uiBehaviour.m_MyVoiceAni.Reset(); + this._audioPlayToken = XSingleton.singleton.SetTimer(this._doc.MyAudioTime / 1000f, new XTimerMgr.ElapsedEventHandler(this.OnPlayEnd), null); + XSingleton.singleton.AddLog("exchange my voice time = ", this._doc.MyAudioTime.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XSingleton.singleton.StartPlayAudioId(this._doc.OtherAudioID); + base.uiBehaviour.m_OtherVoiceAni.Reset(); + this._audioPlayToken = XSingleton.singleton.SetTimer(this._doc.OtherAudioTime / 1000f, new XTimerMgr.ElapsedEventHandler(this.OnPlayEnd), null); + XSingleton.singleton.AddLog("exchange other voice time = ", this._doc.OtherAudioTime.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + + private void OnPlayEnd(object o = null) + { + base.uiBehaviour.m_MyVoiceAni.StopAndReset(); + base.uiBehaviour.m_OtherVoiceAni.StopAndReset(); + } + + private bool OnInputBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowChatInput(new ChatInputStringBack(this.OnInputStringGet)); + DlgBase.singleton.SetInputType(ChatInputType.TEXT); + DlgBase.singleton.SetCharacterLimit(50); + return true; + } + + public void OnInputStringGet(string str) + { + XSingleton.singleton.AddLog("Player input string is ", str, null, null, null, null, XDebugColor.XDebug_None); + this._doc.SendChat(str, 0UL, 0u); + } + + private void OnVoiceButtonDrag(IXUIButton sp, Vector2 delta) + { + this.m_DragDistance += delta; + bool flag = this.m_DragDistance.magnitude >= 100f; + if (flag) + { + this.m_CancelRecord = true; + } + else + { + this.m_CancelRecord = false; + } + } + + private void OnVoiceButton(IXUIButton sp, bool state) + { + if (state) + { + this.m_CancelRecord = false; + XSingleton.singleton.AddLog("Press down", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_DragDistance = Vector2.zero; + bool answerUseApollo = XChatDocument.m_AnswerUseApollo; + if (answerUseApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.GUILDCOLLECT, null); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.GUILDCOLLECT, null); + } + } + else + { + XSingleton.singleton.AddLog("Press up", null, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.SetActiveChannel(ChatChannelType.Team); + bool answerUseApollo2 = XChatDocument.m_AnswerUseApollo; + if (answerUseApollo2) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + this.m_CancelRecord = false; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ExchangeItemDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ExchangeItemDlg.cs.meta new file mode 100644 index 00000000..7232794a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ExchangeItemDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 95e221fe61ee412498d6a0602a1046d3 +timeCreated: 1611404182 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionAttrTotalHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FashionAttrTotalHandler.cs new file mode 100644 index 00000000..0056a506 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionAttrTotalHandler.cs @@ -0,0 +1,233 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionAttrTotalHandler : DlgHandlerBase + { + private XUIPool AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool SuitAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool CharmAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XFashionDocument _doc; + + private XFashionStorageDocument _fsDoc; + + private IXUIScrollView m_scrollView; + + private IXUISprite _close; + + private IXUISprite _closebg; + + private GameObject SuitFrame = null; + + private GameObject BaseFrame = null; + + private GameObject NoAttrGo = null; + + private GameObject NoSuitAttrGo = null; + + private GameObject SuitFrameAnchor = null; + + private GameObject CharmFrame = null; + + private GameObject NotCharmAttrGo = null; + + private List UDataSource = null; + + public bool ShowCharm = false; + + protected override void Init() + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XFashionDocument.uuID) as XFashionDocument); + this._fsDoc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + this._close = (base.PanelObject.transform.Find("ToolTip/Close").GetComponent("XUISprite") as IXUISprite); + this._closebg = (base.PanelObject.transform.Find("ToolTip/CloseBg").GetComponent("XUISprite") as IXUISprite); + this.m_scrollView = (base.PanelObject.transform.Find("ToolTip/Frame").GetComponent("XUIScrollView") as IXUIScrollView); + this.SuitFrameAnchor = base.PanelObject.transform.Find("ToolTip/Frame/SuitFrameAnchor").gameObject; + this.CharmFrame = base.PanelObject.transform.Find("ToolTip/Frame/CharmFrame").gameObject; + Transform transform = this.CharmFrame.transform.Find("Attr1"); + this.CharmAttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.NotCharmAttrGo = this.CharmFrame.transform.Find("NoSuitAttr").gameObject; + this.BaseFrame = base.PanelObject.transform.Find("ToolTip/Frame/BaseFrame").gameObject; + transform = this.BaseFrame.transform.Find("Attr1"); + this.AttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.NoAttrGo = base.PanelObject.transform.Find("ToolTip/Frame/BaseFrame/NoSuitAttr").gameObject; + this.SuitFrame = base.PanelObject.transform.Find("ToolTip/Frame/SuitFrame").gameObject; + this.NoSuitAttrGo = this.SuitFrame.transform.Find("NoSuitAttr").gameObject; + transform = this.SuitFrame.transform.Find("Attr1"); + this.SuitAttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClose)); + this._closebg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClose)); + } + + protected void OnClose(IXUISprite sp) + { + base.SetVisible(false); + } + + public void SetDataSource(List s) + { + this.UDataSource = s; + } + + protected override void OnShow() + { + Vector3 localPosition = this.SuitFrameAnchor.transform.localPosition; + bool showCharm = this.ShowCharm; + Dictionary dictionary; + if (showCharm) + { + this.CharmFrame.SetActive(true); + int num = 0; + int num2 = 0; + this.CharmFrame.transform.localPosition = localPosition; + bool flag = this._fsDoc.TryGetCharmAttr(out dictionary, out num, out num2); + this.CharmAttrPool.ReturnAll(false); + int num3 = 0; + bool flag2 = flag; + if (flag2) + { + foreach (KeyValuePair keyValuePair in dictionary) + { + bool flag3 = keyValuePair.Value == 0u; + if (!flag3) + { + GameObject gameObject = this.CharmAttrPool.FetchGameObject(false); + gameObject.transform.localPosition = this.CharmAttrPool.TplPos + new Vector3(0f, (float)(-(float)num3 * this.CharmAttrPool.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString((XAttributeDefine)keyValuePair.Key)); + ixuilabel2.SetText(string.Format(" +{0}", keyValuePair.Value)); + num3++; + } + } + } + this.NotCharmAttrGo.SetActive(num3 == 0); + bool flag4 = num3 == 0; + if (flag4) + { + num3 += 2; + } + else + { + num3++; + } + localPosition.y -= (float)(this.CharmAttrPool.TplHeight * num3); + } + else + { + this.CharmFrame.SetActive(false); + this.NotCharmAttrGo.SetActive(false); + } + this.BaseFrame.transform.localPosition = localPosition; + int num4 = 0; + dictionary = ((this.UDataSource == null) ? this._doc.GetOnBodyAttr() : this._doc.GetFashonListAttr(this.UDataSource)); + this.AttrPool.ReturnAll(false); + foreach (KeyValuePair keyValuePair2 in dictionary) + { + GameObject gameObject2 = this.AttrPool.FetchGameObject(false); + gameObject2.transform.localPosition = this.AttrPool.TplPos + new Vector3(0f, (float)(-(float)num4 * this.AttrPool.TplHeight)); + IXUILabel ixuilabel3 = gameObject2.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject2.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(XStringDefineProxy.GetString((XAttributeDefine)keyValuePair2.Key)); + ixuilabel4.SetText(string.Format(" +{0}", keyValuePair2.Value)); + num4++; + } + this.NoAttrGo.SetActive(num4 == 0); + bool flag5 = num4 == 0; + if (flag5) + { + num4 += 2; + } + else + { + num4++; + } + localPosition.y -= (float)(this.AttrPool.TplHeight * num4); + this.SuitFrame.transform.localPosition = localPosition; + int num5 = 0; + Dictionary dictionary2 = (this.UDataSource == null) ? this._doc.GetTotalQualityCountOnBody(false) : this._doc.GetTotalQualityCount(this.UDataSource, false); + this.SuitAttrPool.ReturnAll(false); + foreach (KeyValuePair keyValuePair3 in dictionary2) + { + for (int i = 2; i <= 7; i++) + { + bool flag6 = (long)i > (long)((ulong)keyValuePair3.Value); + if (flag6) + { + break; + } + SeqListRef qualityEffect = this._doc.GetQualityEffect(keyValuePair3.Key, i, false); + bool flag7 = qualityEffect.Count == 0; + if (!flag7) + { + for (int j = 0; j < qualityEffect.Count; j++) + { + bool flag8 = qualityEffect[j, 0] == 0u; + if (!flag8) + { + GameObject gameObject3 = this.SuitAttrPool.FetchGameObject(false); + gameObject3.transform.localPosition = this.SuitAttrPool.TplPos + new Vector3(0f, (float)(-(float)num5 * this.SuitAttrPool.TplHeight)); + IXUILabel ixuilabel5 = gameObject3.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = gameObject3.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetText(XStringDefineProxy.GetString("SUIT_PART_COUNT_EFFECT", new object[] + { + this._doc.GetQualityName(keyValuePair3.Key) + XStringDefineProxy.GetString("SUIT_QUALITY") + i + })); + ixuilabel6.SetText(XStringDefineProxy.GetString((XAttributeDefine)qualityEffect[j, 0]) + XAttributeCommon.GetAttrValueStr((int)qualityEffect[j, 0], (float)qualityEffect[j, 1])); + num5++; + } + } + } + } + } + Dictionary dictionary3 = (this.UDataSource == null) ? this._doc.GetTotalQualityCountOnBody(true) : this._doc.GetTotalQualityCount(this.UDataSource, true); + foreach (KeyValuePair keyValuePair4 in dictionary3) + { + for (int k = 2; k <= 7; k++) + { + bool flag9 = (long)k > (long)((ulong)keyValuePair4.Value); + if (flag9) + { + break; + } + SeqListRef qualityEffect2 = this._doc.GetQualityEffect(keyValuePair4.Key, k, true); + bool flag10 = qualityEffect2.Count == 0; + if (!flag10) + { + for (int l = 0; l < qualityEffect2.Count; l++) + { + bool flag11 = qualityEffect2[l, 0] == 0u; + if (!flag11) + { + GameObject gameObject4 = this.SuitAttrPool.FetchGameObject(false); + gameObject4.transform.localPosition = this.SuitAttrPool.TplPos + new Vector3(0f, (float)(-(float)num5 * this.SuitAttrPool.TplHeight)); + IXUILabel ixuilabel7 = gameObject4.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel8 = gameObject4.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel7.SetText(XStringDefineProxy.GetString("SUIT_PART_COUNT_EFFECT", new object[] + { + this._doc.GetQualityName(keyValuePair4.Key) + XStringDefineProxy.GetString("SUIT_QUALITY_THREE") + k + })); + ixuilabel8.SetText(XStringDefineProxy.GetString((XAttributeDefine)qualityEffect2[l, 0]) + XAttributeCommon.GetAttrValueStr((int)qualityEffect2[l, 0], (float)qualityEffect2[l, 1])); + num5++; + } + } + } + } + } + this.NoSuitAttrGo.SetActive(num5 == 0); + this.m_scrollView.ResetPosition(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionAttrTotalHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionAttrTotalHandler.cs.meta new file mode 100644 index 00000000..fe254b54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionAttrTotalHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad77266f7099f9f45bcdfa03ca8a084d +timeCreated: 1611404335 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionBagHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FashionBagHandler.cs new file mode 100644 index 00000000..8cdc7024 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionBagHandler.cs @@ -0,0 +1,356 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionBagHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/FashionListPanel"; + } + } + + public GameObject m_ComboBox; + + public GameObject m_ItemBagPanel; + + public IXUIButton m_ShopButton; + + public IXUIButton m_BtnClothes; + + public IXUISprite m_OutLookRedPoint; + + public IXUIButton m_CollectionButton; + + public IXUIButton m_TotalAttrButton; + + public GameObject m_TotalAttrPanel; + + public IXUIButton m_Help; + + public IXUISprite[] m_Fashion = new IXUISprite[10]; + + public IXUISprite[] m_FashionBg = new IXUISprite[10]; + + private FashionAttrTotalHandler _attrHandler; + + private XFashionDocument _doc; + + private FashionComboBox _comboBox; + + private XBagWindow bagWindow; + + private uint _timer; + + private float update_interval = 180f; + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XFashionDocument.uuID) as XFashionDocument); + this._doc.FashionDlg = this; + this.m_ComboBox = base.PanelObject.transform.Find("ComboBox").gameObject; + this.m_ItemBagPanel = base.PanelObject.gameObject; + this.m_ShopButton = (base.PanelObject.transform.Find("BtnShop").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + for (int i = XBagDocument.BodyPosition(FashionPosition.FASHION_START); i < XBagDocument.BodyPosition(FashionPosition.FASHION_END); i++) + { + this.m_Fashion[i] = (base.PanelObject.transform.Find("EquipFrame/Part" + i + "/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_FashionBg[i] = (base.PanelObject.transform.Find("EquipFrame/Part" + i + "/Bg").GetComponent("XUISprite") as IXUISprite); + this.m_FashionBg[i].ID = (ulong)((long)i); + } + this.m_CollectionButton = (base.PanelObject.transform.Find("BtnCollection").GetComponent("XUIButton") as IXUIButton); + this.m_TotalAttrButton = (base.PanelObject.transform.Find("BtnAttrTotal").GetComponent("XUIButton") as IXUIButton); + this.m_TotalAttrPanel = base.PanelObject.transform.Find("AttrTotal").gameObject; + this.bagWindow = new XBagWindow(this.m_ItemBagPanel, new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this._doc.GetItem)); + this.bagWindow.Init(); + this._comboBox = new FashionComboBox(this.m_ComboBox, new ComboboxClickEventHandler(this.OnSelectPart), 2); + this.m_BtnClothes = (base.PanelObject.transform.Find("Btnclothes").GetComponent("XUIButton") as IXUIButton); + this.m_OutLookRedPoint = (base.PanelObject.transform.Find("Btnclothes/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_OutLookRedPoint.SetVisible(false); + for (int j = XBagDocument.BodyPosition(FashionPosition.FASHION_START); j < XBagDocument.BodyPosition(FashionPosition.FASHION_END); j++) + { + this._comboBox.AddItem(XSingleton.singleton.GetFashionPartName((FashionPosition)j, false), j); + } + this._comboBox.AddItem(XSingleton.singleton.GetFashionPartName(FashionPosition.Hair, false), XFastEnumIntEqualityComparer.ToInt(FashionPosition.Hair)); + this._comboBox.AddItem(XStringDefineProxy.GetString("ALL"), -1); + this._comboBox.SetSelect(-1); + DlgHandlerBase.EnsureCreate(ref this._attrHandler, this.m_TotalAttrPanel, null, false); + this._attrHandler.ShowCharm = true; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = XBagDocument.BodyPosition(FashionPosition.FASHION_START); i < XBagDocument.BodyPosition(FashionPosition.FASHION_END); i++) + { + this.m_Fashion[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + this.m_FashionBg[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnBgClicked)); + } + this.m_BtnClothes.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClothClick)); + this.m_TotalAttrButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTotalAttrClick)); + this.m_CollectionButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCollectionClick)); + this.m_ShopButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopClick)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public void RefreshOutLookRedPoint() + { + this.m_BtnClothes.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Fashion_OutLook)); + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + this.m_OutLookRedPoint.SetVisible(specificDocument.RedPoint); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Fashion_Fashion); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowFashions(); + this.RefreshOutLookRedPoint(); + this.bagWindow.ChangeData(new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this._doc.GetItem)); + this.bagWindow.OnShow(); + this._timer = XSingleton.singleton.SetTimer(this.update_interval, new XTimerMgr.ElapsedEventHandler(this.UpdateFahionCD), null); + } + + protected override void OnHide() + { + this.bagWindow.OnHide(); + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + this._timer = 0u; + } + base.OnHide(); + } + + public override void OnUnload() + { + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + this._timer = 0u; + } + DlgHandlerBase.EnsureUnload(ref this._attrHandler); + this._doc.FashionDlg = null; + this.bagWindow = null; + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.ShowFashions(); + this.RefreshOutLookRedPoint(); + this.bagWindow.OnShow(); + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + this._timer = 0u; + } + this._timer = XSingleton.singleton.SetTimer(this.update_interval, new XTimerMgr.ElapsedEventHandler(this.UpdateFahionCD), null); + } + + public void ShowFashions() + { + for (int i = XBagDocument.BodyPosition(FashionPosition.FASHION_START); i < XBagDocument.BodyPosition(FashionPosition.FASHION_END); i++) + { + ClientFashionData partFashion = this._doc.GetPartFashion(i); + this.m_Fashion[i].ID = partFashion.uid; + XSingleton.singleton.fashionDrawer.DrawItem(this.m_Fashion[i].gameObject.transform.parent.gameObject, partFashion); + this.m_Fashion[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + this.SetFashionCD(this.m_Fashion[i].gameObject.transform.parent.gameObject, partFashion); + } + bool flag = this.bagWindow != null; + if (flag) + { + this.bagWindow.RefreshWindow(); + } + } + + public void UpdateBag() + { + this.bagWindow.UpdateBag(); + } + + private void UpdateFahionCD(object o) + { + bool flag = base.IsVisible(); + if (flag) + { + for (int i = XBagDocument.BodyPosition(FashionPosition.FASHION_START); i < XBagDocument.BodyPosition(FashionPosition.FASHION_END); i++) + { + ClientFashionData partFashion = this._doc.GetPartFashion(i); + this.SetFashionCD(this.m_Fashion[i].gameObject.transform.parent.gameObject, partFashion); + } + bool flag2 = this.bagWindow != null; + if (flag2) + { + this.bagWindow.RefreshWindow(); + } + } + this._timer = XSingleton.singleton.SetTimer(this.update_interval, new XTimerMgr.ElapsedEventHandler(this.UpdateFahionCD), null); + } + + private void SetFashionCD(GameObject item, ClientFashionData d) + { + Transform transform = item.transform.Find("Icon/TimeBg/cd"); + bool flag = transform == null; + if (!flag) + { + bool flag2 = d == null; + if (flag2) + { + transform.parent.gameObject.SetActive(false); + } + else + { + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)d.itemID); + bool flag3 = itemConf != null; + if (flag3) + { + bool flag4 = itemConf.TimeLimit == 0u; + if (flag4) + { + transform.parent.gameObject.SetActive(false); + } + else + { + transform.parent.gameObject.SetActive(true); + bool flag5 = d.timeleft < 0.0; + if (flag5) + { + ixuisprite.SetFillAmount(0f); + } + else + { + ixuisprite.SetFillAmount(1f - (float)d.timeleft / itemConf.TimeLimit); + } + } + } + else + { + transform.parent.gameObject.SetActive(false); + } + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("P").gameObject; + GameObject gameObject2 = t.Find("RedPoint").gameObject; + bool flag = this.bagWindow.m_XItemList == null || index >= this.bagWindow.m_XItemList.Count || index < 0; + if (flag) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + this.SetFashionCD(t.gameObject, null); + gameObject2.SetActive(false); + } + else + { + XItem xitem = this.bagWindow.m_XItemList[index]; + ClientFashionData clientFashionData = this._doc.FindFashion(xitem.uid); + bool flag2 = clientFashionData == null; + if (flag2) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + this.SetFashionCD(t.gameObject, null); + gameObject2.SetActive(false); + } + else + { + XSingleton.singleton.fashionDrawer.DrawItem(t.gameObject, clientFashionData); + ixuisprite.ID = xitem.uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + bool flag3 = index % this.bagWindow.COL_COUNT == 0; + if (flag3) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + this.SetFashionCD(t.gameObject, clientFashionData); + gameObject2.SetActive(this._doc.HasFashionRedPoint(clientFashionData)); + } + } + } + + private bool OnClothClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private void _OnItemClicked(IXUISprite sp) + { + ulong id = sp.ID; + ClientFashionData clientFashionData = this._doc.FindFashion(id); + bool flag = clientFashionData != null; + if (flag) + { + XItem mainItem = this._doc.MakeXItem(clientFashionData); + XSingleton.singleton.ShowTooltipDialog(mainItem, null, sp, true, 0u); + } + } + + private void _OnBgClicked(IXUISprite sp) + { + int part = (int)sp.ID; + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("FASHION_EQUIP_HINT"), XSingleton.singleton.GetFashionPartName((FashionPosition)part, false)), "fece00"); + } + + private bool OnTotalAttrClick(IXUIButton button) + { + this._attrHandler.SetVisible(true); + return true; + } + + private void OnSelectPart(int value) + { + this._doc.fashion_filter = value; + this.bagWindow.UpdateBag(); + } + + private bool OnCollectionClick(IXUIButton button) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + + private bool OnShopClick(IXUIButton button) + { + XSingleton.singleton.ShowItemAccess(199, null); + return true; + } + + public void OnBodyFashionDisappear(int pos) + { + ClientFashionData partFashion = this._doc.GetPartFashion(pos); + XSingleton.singleton.fashionDrawer.DrawItem(this.m_Fashion[pos].gameObject.transform.parent.gameObject, partFashion); + this.SetFashionCD(this.m_Fashion[pos].gameObject.transform.parent.gameObject, partFashion); + } + + public void OnBagFashionDisappear(ulong uid) + { + this.bagWindow.UpdateBag(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionBagHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionBagHandler.cs.meta new file mode 100644 index 00000000..c6b29fc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionBagHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93254620c3685ad43afe911dcf084da2 +timeCreated: 1611404149 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlg.cs b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlg.cs new file mode 100644 index 00000000..fabaa7fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlg.cs @@ -0,0 +1,262 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionCollectionDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/FashionColletionDlg"; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public XCharacterInfoView _InfoView; + + private XFashionDocument _doc; + + private int _selectedSuit = 0; + + private List allSuit = new List(); + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XFashionDocument.uuID) as XFashionDocument); + DlgHandlerBase.EnsureCreate(ref this._InfoView, base.uiBehaviour.m_CharacterInfoFrame, null, true); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_ShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopClick)); + } + + protected bool OnCloseClick(IXUIButton button) + { + XSingleton.singleton.OnFashionChanged(XSingleton.singleton.Player); + XSingleton.singleton.EnableMainDummy(false, null); + this.SetVisible(false, true); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void StackRefresh() + { + this._InfoView.StackRefresh(); + this.RefreshData(); + } + + private void RefreshData() + { + bool flag = this.m_uiBehaviour.m_SnapShot != null; + if (flag) + { + XSingleton.singleton.EnableMainDummy(true, this.m_uiBehaviour.m_SnapShot); + } + this.ShowSuitList(); + } + + protected override void OnUnload() + { + XSingleton.singleton.OnUIUnloadMainDummy(this.m_uiBehaviour.m_SnapShot); + this._selectedSuit = 0; + this.allSuit.Clear(); + DlgHandlerBase.EnsureUnload(ref this._InfoView); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < this.allSuit.Count && index >= 0; + if (flag) + { + FashionSuitTable.RowData suitData = this._doc.GetSuitData(this.allSuit[index]); + IXUILabel ixuilabel = t.Find("Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(suitData.SuitName); + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + string strAtlas = ""; + string strSprite = ""; + this._doc.GetSuitIcon(suitData, ref strAtlas, ref strSprite); + ixuisprite.SetSprite(strSprite, strAtlas, false); + IXUISprite ixuisprite2 = t.Find("Quality").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(XSingleton.singleton.GetItemQualityFrame(suitData.SuitQuality, 1)); + IXUILabel ixuilabel2 = t.Find("Num").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = t.Find("GetAll").gameObject; + GameObject gameObject2 = t.Find("NoSale").gameObject; + int suitCollectCount = this._doc.GetSuitCollectCount(this.allSuit[index]); + int suitTotalCount = this._doc.GetSuitTotalCount(this.allSuit[index]); + bool flag2 = suitCollectCount == suitTotalCount; + if (flag2) + { + ixuilabel2.gameObject.SetActive(false); + gameObject.SetActive(true); + } + else + { + ixuilabel2.gameObject.SetActive(true); + gameObject.SetActive(false); + ixuilabel2.SetText(suitCollectCount + "/" + suitTotalCount); + } + gameObject2.SetActive(this._doc.IsSuitNoSale(this.allSuit[index])); + IXUICheckBox ixuicheckBox = t.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)this.allSuit[index]); + bool flag3 = this._selectedSuit == this.allSuit[index]; + if (flag3) + { + ixuicheckBox.bChecked = true; + } + else + { + ixuicheckBox.ForceSetFlag(false); + } + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSuitClick)); + bool flag4 = this._selectedSuit == 0 && index == 0; + if (flag4) + { + ixuicheckBox.bChecked = true; + } + } + } + + protected void ShowSuitList() + { + bool flag = this.allSuit.Count == 0; + if (flag) + { + this.allSuit = this._doc.GetSuitCollectionList(); + base.uiBehaviour.m_WrapContent.SetContentCount(this.allSuit.Count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + base.uiBehaviour.m_TotalCollection.SetText(this._doc.GetFullCollectionSuitCount() + "/" + this.allSuit.Count); + } + + protected bool OnSuitClick(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._selectedSuit = (int)box.ID; + FashionSuitTable.RowData suitData = this._doc.GetSuitData(this._selectedSuit); + this.EquipSuit(suitData); + this.SetSuitInfo(suitData); + result = true; + } + return result; + } + + protected void EquipSuit(FashionSuitTable.RowData suitData) + { + XSingleton.singleton.OnFashionSuitChanged(XSingleton.singleton.Player, suitData); + } + + protected void SetSuitInfo(FashionSuitTable.RowData suitData) + { + base.uiBehaviour.m_SuitName.SetText(suitData.SuitName); + base.uiBehaviour.FashionPool.ReturnAll(false); + bool flag = suitData.FashionID != null; + if (flag) + { + for (int i = 0; i < suitData.FashionID.Length; i++) + { + GameObject gameObject = base.uiBehaviour.FashionPool.FetchGameObject(false); + gameObject.transform.localPosition = base.uiBehaviour.ShowPos[i]; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.fashionDrawer.DrawItem(gameObject.gameObject, (int)suitData.FashionID[i]); + ixuisprite.SetGrey(this._doc.HasCollected(suitData.FashionID[i])); + ixuisprite.ID = (ulong)suitData.FashionID[i]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + } + } + base.uiBehaviour.AttrPool.ReturnAll(false); + int num = 0; + for (int j = 2; j <= 7; j++) + { + SeqListRef suitPartCountEffect = this._doc.GetSuitPartCountEffect(suitData.SuitID, j); + bool flag2 = suitPartCountEffect.Count == 0; + if (!flag2) + { + for (int k = 0; k < suitPartCountEffect.Count; k++) + { + bool flag3 = suitPartCountEffect[k, 0] == 0u; + if (!flag3) + { + GameObject gameObject2 = base.uiBehaviour.AttrPool.FetchGameObject(false); + gameObject2.transform.localPosition = base.uiBehaviour.AttrPool.TplPos + new Vector3(0f, (float)(-(float)num * base.uiBehaviour.AttrPool.TplHeight)); + IXUILabel ixuilabel = gameObject2.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject2.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("EQUIP_SUIT_EFFECT", new object[] + { + j + })); + ixuilabel2.SetText(XStringDefineProxy.GetString((XAttributeDefine)suitPartCountEffect[k, 0]) + XAttributeCommon.GetAttrValueStr((int)suitPartCountEffect[k, 0], (float)suitPartCountEffect[k, 1])); + num++; + } + } + } + } + } + + private void _OnItemClicked(IXUISprite sp) + { + int itemID = (int)sp.ID; + XItem mainItem = XBagDocument.MakeXItem(itemID, false); + XSingleton.singleton.ShowTooltipDialog(mainItem, null, sp, false, 0u); + } + + private bool OnShopClick(IXUIButton go) + { + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.FASHION, 0UL); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlg.cs.meta new file mode 100644 index 00000000..0a303c91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: adcee32d3dd1be84c9679a432b81c068 +timeCreated: 1611404336 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs new file mode 100644 index 00000000..0e41f9ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs @@ -0,0 +1,54 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionCollectionDlgBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public GameObject m_CharacterInfoFrame; + + public IXUILabel m_TotalCollection; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public IXUILabel m_SuitName; + + public IXUIButton m_ShopBtn; + + public XUIPool FashionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Vector3[] ShowPos = new Vector3[7]; + + public IUIDummy m_SnapShot = null; + + private void Awake() + { + this.m_CharacterInfoFrame = base.transform.Find("Bg/CharacterInfoFrame").gameObject; + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_TotalCollection = (base.transform.Find("Bg/ListFrame/Bg/P/CollectNum/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ScrollView = (base.transform.Find("Bg/ListFrame/ListPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/ListFrame/ListPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_SuitName = (base.transform.Find("Bg/InfoFrame/SuitName").GetComponent("XUILabel") as IXUILabel); + this.m_ShopBtn = (base.transform.Find("Bg/InfoFrame/BtnShop").GetComponent("XUIButton") as IXUIButton); + for (int i = 0; i < 7; i++) + { + Transform transform = base.transform.Find("Bg/InfoFrame/ItemLocation" + (i + 1)); + this.ShowPos[i] = transform.localPosition; + } + Transform transform2 = base.transform.Find("Bg/InfoFrame/ItemTpl"); + this.FashionPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 7u, false); + transform2 = base.transform.Find("Bg/InfoFrame/AttrFrame/AttrTpl"); + this.AttrPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 3u, false); + this.m_SnapShot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs.meta new file mode 100644 index 00000000..e65f0c68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionCollectionDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 017e84820c1513342b9b656e1c6dbee4 +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionComboBox.cs b/Client/Assets/Scripts/XMainClient/UI/FashionComboBox.cs new file mode 100644 index 00000000..ed0ab8d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionComboBox.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionComboBox + { + private ComboboxClickEventHandler _handler; + + private IXUISprite selector = null; + + private Transform droplist = null; + + private IXUISprite close = null; + + private IXUILabel selecttext = null; + + private XUIPool itempool = new XUIPool(XSingleton.singleton.m_uiTool); + + private int itemPerRow = 0; + + private int itemcount = 0; + + private Dictionary value2string = new Dictionary(); + + public FashionComboBox(GameObject go, ComboboxClickEventHandler handler, int PerRow = 2) + { + this._handler = handler; + this.itemPerRow = PerRow; + this.selector = (go.transform.Find("Difficulty").GetComponent("XUISprite") as IXUISprite); + this.close = (go.transform.Find("Difficulty/DropList/Close").GetComponent("XUISprite") as IXUISprite); + this.selecttext = (go.transform.Find("Difficulty/SelectedText").GetComponent("XUILabel") as IXUILabel); + this.droplist = go.transform.Find("Difficulty/DropList"); + Transform transform = go.transform.Find("Difficulty/DropList/ItemTpl"); + this.itempool.SetupPool(this.droplist.gameObject, transform.gameObject, 6u, false); + this.droplist.gameObject.SetActive(false); + this.selector.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectorClick)); + this.close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClick)); + } + + private void OnSelectorClick(IXUISprite sp) + { + this.droplist.gameObject.SetActive(true); + } + + private void OnCloseClick(IXUISprite sp) + { + this.droplist.gameObject.SetActive(false); + } + + public void AddItem(string text, int value) + { + GameObject gameObject = this.itempool.FetchGameObject(false); + int num = this.itemcount % this.itemPerRow; + int num2 = this.itemcount / this.itemPerRow; + gameObject.transform.localPosition = this.itempool.TplPos + new Vector3((float)(num * this.itempool.TplWidth), (float)(-(float)num2 * this.itempool.TplHeight)); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)value); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClick)); + IXUILabel ixuilabel = gameObject.transform.Find("ItemText").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + this.value2string.Add(value, text); + this.itemcount++; + } + + private void OnItemClick(IXUISprite sp) + { + this.selecttext.SetText(this.value2string[(int)sp.ID]); + this.droplist.gameObject.SetActive(false); + this._handler((int)sp.ID); + } + + public void SetSelect(int value) + { + string text; + bool flag = this.value2string.TryGetValue(value, out text); + if (flag) + { + this.selecttext.SetText(text); + this.droplist.gameObject.SetActive(false); + this._handler(value); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionComboBox.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionComboBox.cs.meta new file mode 100644 index 00000000..1a76d153 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionComboBox.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65139ca98ebdb1b49a7356c9c2b1ce99 +timeCreated: 1611403849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipBehaviour.cs new file mode 100644 index 00000000..c719d405 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipBehaviour.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient.UI +{ + internal class FashionHairToolTipBehaviour : TooltipDlgBehaviour + { + protected override void Awake() + { + base.Awake(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipBehaviour.cs.meta new file mode 100644 index 00000000..bdd667ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c5b794873787a6468fcfe8a25c1eade +timeCreated: 1611403502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipDlg.cs new file mode 100644 index 00000000..c89b86b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipDlg.cs @@ -0,0 +1,137 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionHairToolTipDlg : TooltipDlg + { + public override string fileName + { + get + { + return "GameSystem/FashionHairToolToolDlg"; + } + } + + private XFashionDocument _doc; + + private IXUILabel time; + + public override bool HideToolTip(bool forceHide = false) + { + return base.HideToolTip(forceHide); + } + + protected override void Init() + { + base.Init(); + this.m_OperateList[0, 0] = new TooltipButtonOperateRecycle(XSysDefine.XSys_Fashion_Fashion); + this.m_OperateList[0, 1] = new TooltipButtonOperateSell(); + this.m_OperateList[0, 2] = new TooltipButtonActivateFashion(); + this._doc = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + base._SetupLevel(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 1); + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(data.ItemID); + base._SetTopFrameLabel(goToolTip, 2, XStringDefineProxy.GetString("ToolTipText_Part"), (fashionConf != null) ? XSingleton.singleton.GetFashionPartName((FashionPosition)fashionConf.EquipPos, true) : string.Empty); + this.time = (goToolTip.transform.Find("TopFrame/Time/Left").GetComponent("XUILabel") as IXUILabel); + ClientFashionData clientFashionData = this._doc.FindFashion(this.mainItemUID); + ItemList.RowData itemConf = XBagDocument.GetItemConf(data.ItemID); + bool flag = itemConf != null; + if (flag) + { + bool flag2 = itemConf.TimeLimit == 0u; + if (flag2) + { + this.time.SetText(XStringDefineProxy.GetString("FASHION_LIMIT_ALWAYS")); + } + else + { + bool flag3 = clientFashionData == null; + if (flag3) + { + this.time.SetText(XSingleton.singleton.TimeDuarationFormatString((int)itemConf.TimeLimit, 5) + XStringDefineProxy.GetString("FASHION_LIMIT_UNWEAR")); + } + else + { + bool flag4 = clientFashionData.timeleft < 0.0; + if (flag4) + { + this.time.SetText(XSingleton.singleton.TimeDuarationFormatString((int)itemConf.TimeLimit, 5) + XStringDefineProxy.GetString("FASHION_LIMIT_UNWEAR")); + } + else + { + this.time.SetText(XSingleton.singleton.TimeDuarationFormatString((int)itemConf.TimeLimit, 5)); + } + } + } + } + } + + protected override void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem item, XItem compareItem, bool bMain) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + this._SetupDescription(goToolTip, itemConf); + } + + protected override void SetupOtherFrame(GameObject goToolTip, ItemList.RowData data) + { + this._SetupDescription(goToolTip, data); + } + + protected void _SetupDescription(GameObject goToolTip, ItemList.RowData data) + { + Transform transform = goToolTip.transform; + IXUISprite ixuisprite = transform.Find("ScrollPanel/Description").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = ixuisprite.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + bool flag = data == null; + if (flag) + { + ixuilabel.SetText(""); + } + else + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(data.ItemDescription)); + } + ixuisprite.spriteHeight = ixuilabel.spriteHeight + -(int)ixuilabel.gameObject.transform.localPosition.y; + this.totalFrameHeight += (float)ixuisprite.spriteHeight; + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + bool flag = !this.bShowButtons; + if (!flag) + { + if (bMain) + { + base._SetupButtonVisiability(goToolTip, 0, item); + } + } + } + + public override void OnUpdate() + { + ClientFashionData clientFashionData = this._doc.FindFashion(this.mainItemUID); + bool flag = clientFashionData != null && clientFashionData.timeleft > 0.0; + if (flag) + { + bool flag2 = this.time != null; + if (flag2) + { + this.time.SetText(XSingleton.singleton.TimeDuarationFormatString((int)clientFashionData.timeleft, 5)); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipDlg.cs.meta new file mode 100644 index 00000000..ddf416e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionHairToolTipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98007569a6de00b43919383a887bc275 +timeCreated: 1611404190 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageAttributeFrame.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageAttributeFrame.cs new file mode 100644 index 00000000..9b979ec4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageAttributeFrame.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class FashionStorageAttributeFrame : DlgHandlerBase + { + private IXUIScrollView m_scrollView; + + private IXUIWrapContent m_wrapContent; + + private IXUILabel m_titleLabel; + + private IXUIButton m_editPortrait; + + private IXUISprite m_redPoint; + + private IFashionStorageSelect m_select; + + private XFashionStorageDocument m_doc; + + private Color m_normaColor = new Color(225f, 145f, 65f); + + private IXUILabel m_descLabel; + + private Transform m_getAll; + + private IXUILabel m_fightLabel; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + this.m_titleLabel = (base.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_editPortrait = (base.transform.Find("EditPortrait").GetComponent("XUIButton") as IXUIButton); + this.m_scrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_wrapContent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_redPoint = (base.transform.Find("EditPortrait/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_descLabel = (base.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_getAll = base.transform.Find("T22"); + this.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + this.m_editPortrait.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickEditPortrait)); + this.m_fightLabel = (base.transform.Find("T2").GetComponent("XUILabel") as IXUILabel); + } + + private bool ClickEditPortrait(IXUIButton btn) + { + bool flag = btn.ID == 0UL || this.m_select == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool redPoint = this.m_select.RedPoint; + if (redPoint) + { + this.m_doc.SendActivateFashion((uint)btn.ID); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FASHION_STORAGE_ACTIVATE_TIPS"), "fece00"); + } + result = true; + } + return result; + } + + private void OnWrapContentUpdate(Transform t, int index) + { + bool flag = this.m_select == null; + if (!flag) + { + bool flag2 = index < this.m_select.GetAttributeCharm().Count && index >= 0; + if (flag2) + { + IXUILabel ixuilabel = t.GetComponent("XUILabel") as IXUILabel; + AttributeCharm attributeCharm = this.m_select.GetAttributeCharm()[index]; + string @string = XStringDefineProxy.GetString((XAttributeDefine)attributeCharm.key); + ixuilabel.SetText(XStringDefineProxy.GetString("FASHION_STORAGE_ATT", new object[] + { + attributeCharm.index, + @string, + attributeCharm.value + })); + ixuilabel.SetColor(attributeCharm.active ? this.m_normaColor : Color.gray); + } + } + } + + private int GetPPT(List charms) + { + double num = 0.0; + int i = 0; + int count = charms.Count; + while (i < count) + { + num += XSingleton.singleton.GetPPT(charms[i].key, charms[i].value, null, -1); + i++; + } + return (int)num; + } + + internal void SetFashionCharm(IFashionStorageSelect select = null) + { + this.m_select = select; + bool flag = select == null; + if (flag) + { + this.m_wrapContent.SetContentCount(0, false); + this.m_scrollView.ResetPosition(); + this.m_titleLabel.SetText(""); + this.m_editPortrait.SetVisible(false); + this.m_editPortrait.ID = 0UL; + this.m_redPoint.SetVisible(false); + this.m_descLabel.SetText(""); + this.m_fightLabel.SetText(""); + bool flag2 = this.m_getAll != null; + if (flag2) + { + this.m_getAll.gameObject.SetActive(false); + } + } + else + { + this.m_wrapContent.SetContentCount(this.m_select.GetAttributeCharm().Count, false); + this.m_scrollView.ResetPosition(); + this.m_editPortrait.ID = (ulong)((long)this.m_select.GetID()); + this.m_titleLabel.SetText(XStringDefineProxy.GetString("FASHIONSTORAGE_ATT_TITLE", new object[] + { + this.m_select.GetCount(), + this.m_select.GetFashionList().Length + })); + this.m_editPortrait.SetVisible(!this.m_select.ActivateAll); + this.m_fightLabel.SetText(XStringDefineProxy.GetString("FASHION_FIGHT_DESC", new object[] + { + this.m_select.GetFashionList().Length, + this.GetPPT(this.m_select.GetAttributeCharm()) + })); + this.m_redPoint.SetVisible(this.m_select.RedPoint); + bool flag3 = this.m_getAll != null; + if (flag3) + { + this.m_getAll.gameObject.SetActive(this.m_select.ActivateAll); + } + this.m_editPortrait.SetGrey(this.m_select.RedPoint); + bool flag4 = this.m_select is FashionStorageFashionCollection; + if (flag4) + { + this.m_descLabel.SetText(XStringDefineProxy.GetString("FASHION_STORAGE_FASHION_DESC")); + } + else + { + bool flag5 = this.m_select is FashionStorageEquipCollection; + if (flag5) + { + this.m_descLabel.SetText(XStringDefineProxy.GetString("FASHION_STORAGE_EQUIP_DESC")); + } + else + { + this.m_descLabel.SetText(""); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageAttributeFrame.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageAttributeFrame.cs.meta new file mode 100644 index 00000000..a8f0741c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageAttributeFrame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b61967f1507a3e14b91e36cbd24b4b47 +timeCreated: 1611404396 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageBehaviour.cs new file mode 100644 index 00000000..535467a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageBehaviour.cs @@ -0,0 +1,91 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageBehaviour : DlgBehaviourBase + { + public IXUIButton m_close; + + public IXUICheckBox m_outLook; + + public IXUICheckBox m_equipRecord; + + public IXUICheckBox m_fashionRecord; + + public IXUIScrollView m_scrollView; + + public IXUIWrapContent m_wrapContent; + + public Transform m_effectContainer; + + public IXUISprite m_outLookRedPoint; + + public IXUISprite m_fashionCharmRedPoint; + + public IXUISprite m_equipCharmRedPoint; + + public IXUISprite m_avatarSprite; + + public IUIDummy m_Snapshot; + + public GameObject m_fashionList; + + public GameObject m_attributeInfo; + + public GameObject m_hairFrame; + + public GameObject m_effectFrame; + + public IXUISprite m_colorSprite; + + public IXUISprite m_effectIcon; + + public IXUISprite m_effectSprite; + + public IXUISprite m_effectRedPoint; + + public Transform[] m_partList; + + private void Awake() + { + this.m_close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_avatarSprite = (base.transform.Find("Bg/Bg3").GetComponent("XUISprite") as IXUISprite); + this.m_outLook = (base.transform.Find("Navigation/OutLook").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_outLook.ID = 0UL; + this.m_outLookRedPoint = (base.transform.Find("Navigation/OutLook/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_equipRecord = (base.transform.Find("Navigation/EquipRecord").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_equipRecord.ID = 2UL; + this.m_equipCharmRedPoint = (base.transform.Find("Navigation/EquipRecord/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_fashionRecord = (base.transform.Find("Navigation/FashionRecord").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_fashionRecord.ID = 1UL; + this.m_fashionCharmRedPoint = (base.transform.Find("Navigation/FashionRecord/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_Snapshot = (base.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_scrollView = (base.transform.Find("Select/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_wrapContent = (base.transform.Find("Select/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_effectContainer = base.transform.Find("Bg/Bg2"); + this.m_fashionList = base.transform.Find("FashionList").gameObject; + this.m_attributeInfo = base.transform.Find("Attribute").gameObject; + this.m_hairFrame = base.transform.Find("HairFrame").gameObject; + this.m_effectFrame = base.transform.Find("EffectFrame").gameObject; + int num = XBagDocument.BodyPosition(FashionPosition.FASHION_START); + int num2 = XBagDocument.BodyPosition(FashionPosition.FASHION_ALL_END); + bool flag = this.m_partList == null; + if (flag) + { + this.m_partList = new Transform[num2]; + } + for (int i = num; i < num2; i++) + { + this.m_partList[i] = base.transform.Find(string.Format("EquipFrame/Part{0}", i)); + } + this.m_effectIcon = (base.transform.Find("EffectSprite/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_effectSprite = (base.transform.Find("EffectSprite").GetComponent("XUISprite") as IXUISprite); + this.m_colorSprite = (base.transform.Find(string.Format("EquipFrame/Part{0}/Icon/Color", XFastEnumIntEqualityComparer.ToInt(FashionPosition.Hair))).GetComponent("XUISprite") as IXUISprite); + this.m_effectRedPoint = (base.transform.Find("EffectSprite/RedPoint").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageBehaviour.cs.meta new file mode 100644 index 00000000..209a83f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af3054d914eb03e41867cbf676b695ca +timeCreated: 1611404343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageButtonGoFashion.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageButtonGoFashion.cs new file mode 100644 index 00000000..c1684ea7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageButtonGoFashion.cs @@ -0,0 +1,29 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageButtonGoFashion : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("FASHION_STORAGE_GO"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + return !specificDocument.InDisplay((uint)item.itemID); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + XSingleton.singleton.ShowItemAccess((int)mainUID, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageButtonGoFashion.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageButtonGoFashion.cs.meta new file mode 100644 index 00000000..c27d7c6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageButtonGoFashion.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efb2cde36742e68439e9a51751f70cc6 +timeCreated: 1611404805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageColouring.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageColouring.cs new file mode 100644 index 00000000..5ba4d085 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageColouring.cs @@ -0,0 +1,30 @@ +using System; + +namespace XMainClient.UI +{ + internal class FashionStorageColouring : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("HAIR_COULORING"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + bool flag = specificDocument.fashionStorageType > FashionStorageType.OutLook; + return !flag && XFashionDocument.IsTargetPart(item.itemID, FashionPosition.Hair); + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + specificDocument.SelectHair((uint)mainUID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageColouring.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageColouring.cs.meta new file mode 100644 index 00000000..2b0b5957 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageColouring.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c2e4ccce4bb4ce41bd6c4b56f8ef015 +timeCreated: 1611404098 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageDlg.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageDlg.cs new file mode 100644 index 00000000..e73adf0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageDlg.cs @@ -0,0 +1,632 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/FashionStorageDlg"; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + private OutLook outLook + { + get + { + bool flag = this.m_outLook == null; + if (flag) + { + this.m_outLook = new OutLook(); + } + bool flag2 = this.m_outLook.display_fashion == null; + if (flag2) + { + this.m_outLook.display_fashion = new OutLookDisplayFashion(); + } + return this.m_outLook; + } + } + + private XFashionStorageDocument m_doc; + + private List m_SelectList; + + private IFashionStorageSelect m_select; + + private FashionStotageDisplayHandle m_FashinListFrame; + + private FashionStorageAttributeFrame m_AttributeFrame; + + private FashionStorageHairColorFrame m_HairColorFrame; + + private FashionStorageEffectFrame m_effectFrame; + + private Vector3 m_dummyAngle = new Vector3(0f, 180f, 0f); + + private XFx m_fashionFx; + + private XDummy m_Dummy; + + private string m_fashionFxURL = "Effects/FX_Particle/UIfx/UI_UI_FashionStorageDlg_fx01"; + + private FashionStoragePreview m_previewType = FashionStoragePreview.None; + + private uint[] allParts = null; + + private OutLook m_outLook; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + base.uiBehaviour.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.ItemWrapContentUpdate)); + base.uiBehaviour.m_avatarSprite.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnAvatarDrag)); + this.m_FashinListFrame = DlgHandlerBase.EnsureCreate(ref this.m_FashinListFrame, base.uiBehaviour.m_fashionList, null, false); + this.m_AttributeFrame = DlgHandlerBase.EnsureCreate(ref this.m_AttributeFrame, base.uiBehaviour.m_attributeInfo, null, false); + this.m_HairColorFrame = DlgHandlerBase.EnsureCreate(ref this.m_HairColorFrame, base.uiBehaviour.m_hairFrame, null, false); + this.m_effectFrame = DlgHandlerBase.EnsureCreate(ref this.m_effectFrame, base.uiBehaviour.m_effectFrame, null, false); + } + + private void ItemWrapContentUpdate(Transform t, int index) + { + bool flag = this.m_SelectList == null || index >= this.m_SelectList.Count || this.m_SelectList[index] == null; + if (!flag) + { + IFashionStorageSelect fashionStorageSelect = this.m_SelectList[index]; + IXUISprite ixuisprite = t.Find("Bg").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("Bg/Selected").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = t.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel3 = t.Find("Count").GetComponent("XUILabel") as IXUILabel; + Transform transform = t.Find("p"); + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectClick)); + string name = fashionStorageSelect.GetName(); + ixuilabel.SetText(name); + ixuilabel2.SetText(name); + float alpha = fashionStorageSelect.Select ? 1f : 0f; + ixuilabel2.Alpha = alpha; + ixuisprite2.SetAlpha(alpha); + ixuisprite3.SetVisible(fashionStorageSelect.RedPoint); + ixuilabel3.SetText(fashionStorageSelect.GetLabel()); + transform.gameObject.SetActive(fashionStorageSelect.GetItems().Count == fashionStorageSelect.GetFashionList().Length && this.m_doc.fashionStorageType > FashionStorageType.OutLook); + } + } + + public void Refresh() + { + this.OnTabChange(this.m_doc.fashionStorageType, true, false); + bool flag = this.m_HairColorFrame != null && this.m_HairColorFrame.IsVisible(); + if (flag) + { + this.m_HairColorFrame.RefreshData(); + } + bool flag2 = this.m_effectFrame != null && this.m_effectFrame.IsVisible(); + if (flag2) + { + this.m_effectFrame.RefreshData(); + } + bool showEffect = this.m_doc.ShowEffect; + if (showEffect) + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_yh", base.uiBehaviour.transform, Vector3.zero, Vector3.one, 1f, true, 5f, true); + } + } + + private void RefreshRedPoint() + { + base.uiBehaviour.m_outLookRedPoint.SetVisible(this.m_doc.SuitRedPoint); + base.uiBehaviour.m_fashionCharmRedPoint.SetVisible(this.m_doc.FashionRedPoint); + base.uiBehaviour.m_equipCharmRedPoint.SetVisible(this.m_doc.EquipRedPoint); + base.uiBehaviour.m_effectRedPoint.SetVisible(this.m_doc.fashionStorageType == FashionStorageType.OutLook && this.m_doc.SuitRedPoint); + } + + private void SetSelectIndex(int index = -1) + { + bool flag = this.m_SelectList == null || this.m_SelectList.Count == 0; + if (!flag) + { + bool flag2 = index > -1; + if (flag2) + { + int i = 0; + int count = this.m_SelectList.Count; + while (i < count) + { + this.m_SelectList[i].Select = (i == index); + i++; + } + } + else + { + index = 0; + bool flag3 = false; + int j = 0; + int count2 = this.m_SelectList.Count; + while (j < count2) + { + bool select = this.m_SelectList[j].Select; + if (select) + { + index = j; + flag3 = true; + break; + } + j++; + } + bool flag4 = !flag3; + if (flag4) + { + this.m_SelectList[index].Select = true; + } + } + base.uiBehaviour.m_wrapContent.RefreshAllVisibleContents(); + this.m_select = this.m_SelectList[index]; + this.OnReSelect(); + } + } + + private void OnReSelect() + { + uint[] fashionList = this.m_select.GetFashionList(); + this.ShowAvatar(fashionList); + this.SetPartInfo(fashionList); + FashionStorageType fashionStorageType = this.m_doc.fashionStorageType; + if (fashionStorageType != FashionStorageType.OutLook) + { + if (fashionStorageType - FashionStorageType.FashionCollection <= 1) + { + this.m_AttributeFrame.SetFashionCharm(this.m_select); + } + } + else + { + this.m_FashinListFrame.SetFashionStorageSelect(this.m_select); + } + } + + private void SetupEffect(uint effectid) + { + bool flag = effectid == 0u; + if (flag) + { + base.uiBehaviour.m_effectIcon.SetSprite(null, null, false); + } + else + { + FashionSuitSpecialEffects.RowData specialEffect = XFashionStorageDocument.GetSpecialEffect(effectid); + bool flag2 = specialEffect == null; + if (flag2) + { + base.uiBehaviour.m_effectIcon.SetSprite(null, null, false); + } + else + { + string[] array = string.IsNullOrEmpty(specialEffect.Icon) ? null : specialEffect.Icon.Split(XGlobalConfig.SequenceSeparator); + bool flag3 = array != null; + if (flag3) + { + bool flag4 = array.Length > 1; + if (flag4) + { + base.uiBehaviour.m_effectIcon.SetSprite(array[1], array[0], false); + } + else + { + bool flag5 = array.Length != 0; + if (flag5) + { + base.uiBehaviour.m_effectIcon.SetSprite(array[0]); + } + else + { + base.uiBehaviour.m_effectIcon.SetSprite(null, null, false); + } + } + } + } + } + } + + private void ReSetSelect() + { + this.ShowAvatar(null); + this.SetPartInfo(null); + FashionStorageType fashionStorageType = this.m_doc.fashionStorageType; + if (fashionStorageType != FashionStorageType.OutLook) + { + if (fashionStorageType - FashionStorageType.FashionCollection <= 1) + { + this.m_AttributeFrame.SetFashionCharm(null); + } + } + else + { + this.m_FashinListFrame.SetFashionStorageSelect(null); + } + } + + private void ShowFx(bool fx = false) + { + bool flag = this.m_fashionFx == null; + if (flag) + { + this.m_fashionFx = XSingleton.singleton.CreateUIFx(this.m_fashionFxURL, base.uiBehaviour.m_effectContainer, false); + } + } + + private void DestroyFx() + { + bool flag = this.m_fashionFx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(this.m_fashionFx, true); + this.m_fashionFx = null; + } + } + + private void ResetNormalParts() + { + bool flag = this.allParts == null; + if (flag) + { + this.allParts = new uint[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_ALL_END)]; + } + int i = 0; + int num = this.allParts.Length; + while (i < num) + { + this.allParts[i] = 0u; + i++; + } + } + + private void SetPartInfo(uint[] part = null) + { + this.ResetNormalParts(); + bool flag = part != null; + int i; + int num; + if (flag) + { + i = 0; + num = part.Length; + while (i < num) + { + uint num2 = part[i]; + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)num2); + bool flag2 = fashionConf != null; + if (flag2) + { + this.allParts[(int)fashionConf.EquipPos] = num2; + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf((int)num2); + bool flag3 = equipConf != null; + if (flag3) + { + this.allParts[(int)equipConf.EquipPos] = num2; + } + } + i++; + } + } + XItemDrawerMgr.Param.Reset(); + int num3 = XFastEnumIntEqualityComparer.ToInt(FashionPosition.Hair); + i = 0; + num = this.allParts.Length; + while (i < num) + { + uint num4 = this.allParts[i]; + bool flag4 = base.uiBehaviour.m_partList[i] == null; + if (!flag4) + { + Transform transform = base.uiBehaviour.m_partList[i]; + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.normalItemDrawer.DrawItem(ixuisprite.gameObject, (int)num4, 0, false); + IXUISprite ixuisprite2 = transform.Find("unGet").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)num4; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickPart)); + bool flag5 = num4 > 0u && (this.m_doc.fashionStorageType == FashionStorageType.EquipCollection || this.m_doc.fashionStorageType == FashionStorageType.FashionCollection); + if (flag5) + { + bool flag6 = this.m_select != null && this.m_select.GetItems().Contains(num4); + ixuisprite2.SetVisible(!flag6); + ixuisprite.SetGrey(flag6); + } + else + { + ixuisprite2.SetVisible(false); + ixuisprite.SetGrey(true); + } + bool flag7 = i == num3; + if (flag7) + { + HairColorTable.RowData rowData = null; + bool flag8 = num4 > 0u && this.m_doc.TryGetSelfHairColor(out rowData); + if (flag8) + { + base.uiBehaviour.m_colorSprite.SetVisible(true); + base.uiBehaviour.m_colorSprite.SetSprite(rowData.Icon); + base.uiBehaviour.m_colorSprite.SetColor(XSingleton.singleton.GetColor(rowData.Color)); + this.Switch(this.m_previewType); + } + else + { + base.uiBehaviour.m_colorSprite.SetVisible(false); + bool flag9 = this.m_previewType == FashionStoragePreview.Hair; + if (flag9) + { + this.Switch(FashionStoragePreview.None); + } + } + } + } + i++; + } + } + + private void _EffectSpriteClick(IXUISprite sprite) + { + XSingleton.singleton.AddGreenLog("_EffectSpriteClick", null, null, null, null, null); + this.Switch(FashionStoragePreview.Effect); + } + + private void OnClickPart(IXUISprite sprite) + { + bool flag = sprite.ID == 0UL; + if (!flag) + { + int itemID = (int)sprite.ID; + XItem item = XBagDocument.MakeXItem(itemID, true); + XSingleton.singleton.ShowOutLookDialog(item, null, 0u); + XSingleton.singleton.AddGreenLog("sprite id :" + sprite.ID.ToString(), null, null, null, null, null); + } + } + + private void OnSelectClick(IXUISprite sprite) + { + this.Switch(FashionStoragePreview.None); + this.SetSelectIndex((int)sprite.ID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_outLook.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + base.uiBehaviour.m_equipRecord.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + base.uiBehaviour.m_fashionRecord.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + base.uiBehaviour.m_effectSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._EffectSpriteClick)); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("FashionStorageDlg"); + base.uiBehaviour.m_outLook.bChecked = true; + this.Switch(FashionStoragePreview.None); + this.ShowFx(true); + this.OnTabChange(this.m_doc.fashionStorageType, true, true); + } + + protected override void OnHide() + { + this.DestroyFx(); + this.m_previewType = FashionStoragePreview.None; + bool flag = this.m_HairColorFrame != null; + if (flag) + { + this.m_HairColorFrame.SetVisible(false); + } + bool flag2 = this.m_dummPool != -1; + if (flag2) + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + } + this.m_dummPool = -1; + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("FashionStorageDlg"); + } + + public void ShowAvatar() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.m_select == null; + if (flag2) + { + this.ShowAvatar(null); + } + else + { + this.ShowAvatar(this.m_select.GetFashionList()); + } + } + } + + private void ShowAvatar(uint[] fashionList = null) + { + this.outLook.display_fashion.display_fashions.Clear(); + this.m_dummyAngle.y = 180f; + bool flag = fashionList != null; + if (flag) + { + this.outLook.display_fashion.display_fashions.AddRange(fashionList); + } + bool flag2 = this.m_doc.fashionStorageType == FashionStorageType.OutLook; + if (flag2) + { + bool flag3 = this.m_doc.preview == FashionStoragePreview.Hair; + if (flag3) + { + this.outLook.display_fashion.hair_color_id = this.m_doc.previewHairColor; + } + else + { + this.outLook.display_fashion.hair_color_id = this.m_doc.selfHairColor; + } + bool flag4 = this.m_doc.preview == FashionStoragePreview.Effect; + if (flag4) + { + this.outLook.display_fashion.special_effects_id = this.m_doc.previewEffectID; + } + else + { + this.outLook.display_fashion.special_effects_id = this.m_doc.selfEffectID; + } + } + else + { + this.outLook.display_fashion.hair_color_id = 0u; + this.outLook.display_fashion.special_effects_id = 0u; + } + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + uint unitType = (uint)XFastEnumIntEqualityComparer.ToInt(xplayerData.Profession); + this.m_Dummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, xplayerData.RoleID, unitType, this.outLook, base.uiBehaviour.m_Snapshot, this.m_Dummy); + bool flag5 = this.m_Dummy != null; + if (flag5) + { + this.m_Dummy.EngineObject.LocalEulerAngles = this.m_dummyAngle; + } + } + + private bool OnAvatarDrag(Vector2 delta) + { + bool flag = this.m_Dummy != null; + if (flag) + { + this.m_Dummy.EngineObject.Rotate(Vector2.up, -delta.x / 2f); + this.m_dummyAngle = this.m_Dummy.EngineObject.LocalEulerAngles; + } + else + { + XSingleton.singleton.RotateMain(-delta.x / 2f); + } + return true; + } + + protected override void OnUnload() + { + this.m_outLook = null; + this.DestroyFx(); + bool flag = this.m_dummPool > -1; + if (flag) + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + } + this.m_dummPool = -1; + DlgHandlerBase.EnsureUnload(ref this.m_FashinListFrame); + DlgHandlerBase.EnsureUnload(ref this.m_AttributeFrame); + DlgHandlerBase.EnsureUnload(ref this.m_HairColorFrame); + DlgHandlerBase.EnsureUnload(ref this.m_effectFrame); + base.OnUnload(); + } + + private bool OnCloseClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + + private bool OnTabClick(IXUICheckBox check) + { + bool bChecked = check.bChecked; + if (bChecked) + { + FashionStorageType define = (FashionStorageType)check.ID; + this.Switch(FashionStoragePreview.None); + this.OnTabChange(define, false, true); + } + return true; + } + + private void OnTabChange(FashionStorageType define, bool atOnce = false, bool reset = false) + { + bool flag = !atOnce && define == this.m_doc.fashionStorageType; + if (!flag) + { + this.m_doc.fashionStorageType = define; + this.SwitchOutLook(); + this.m_AttributeFrame.SetVisible(define == FashionStorageType.FashionCollection || define == FashionStorageType.EquipCollection); + this.m_doc.GetCollection(ref this.m_SelectList, define); + base.uiBehaviour.m_wrapContent.SetContentCount(this.m_SelectList.Count, false); + if (reset) + { + base.uiBehaviour.m_scrollView.ResetPosition(); + } + bool flag2 = this.m_SelectList.Count > 0; + if (flag2) + { + this.SetSelectIndex(-1); + } + else + { + this.ReSetSelect(); + } + } + } + + public void Switch(FashionStoragePreview preview) + { + bool flag = !base.IsVisible() || this.m_previewType == preview; + if (!flag) + { + this.m_previewType = preview; + this.SwitchOutLook(); + } + } + + private void SwitchOutLook() + { + bool flag = this.m_doc.fashionStorageType == FashionStorageType.OutLook; + this.m_HairColorFrame.SetVisible(flag && this.m_previewType == FashionStoragePreview.Hair); + this.m_FashinListFrame.SetVisible(flag && this.m_previewType == FashionStoragePreview.None); + this.m_effectFrame.SetVisible(flag && this.m_previewType == FashionStoragePreview.Effect); + this.RefreshRedPoint(); + this.SetupEffect(flag ? this.m_doc.selfEffectID : 0u); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageDlg.cs.meta new file mode 100644 index 00000000..139c7f49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cb5f08e7de4d5c4c9f1d839cd7bacb7 +timeCreated: 1611403348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageEffectFrame.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageEffectFrame.cs new file mode 100644 index 00000000..cf986d04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageEffectFrame.cs @@ -0,0 +1,203 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageEffectFrame : DlgHandlerBase + { + private IXUIButton _Close; + + private IXUIButton _EditPortrait; + + private IXUILabel _Message; + + private IXUIScrollView _ScrollView; + + private IXUIWrapContent _WrapContent; + + private XBetterList _ActivateSuits; + + private uint _SelectEffectID = 0u; + + private XFashionStorageDocument _doc; + + private IFashionStorageSelect _activateSuit; + + private IXUILabel _Content; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + this._Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this._Message = (base.transform.Find("Message").GetComponent("XUILabel") as IXUILabel); + this._Content = (base.transform.Find("t").GetComponent("XUILabel") as IXUILabel); + this._EditPortrait = (base.transform.Find("EditPortrait").GetComponent("XUIButton") as IXUIButton); + this._ScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this._WrapContent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._EffectWrapContent)); + this._Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._CloseClick)); + this._EditPortrait.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnEditPortrait)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + bool flag = this._doc.preview == FashionStoragePreview.Effect; + if (flag) + { + this._doc.preview = FashionStoragePreview.None; + this._doc.previewEffectID = 0u; + DlgBase.singleton.ShowAvatar(); + } + base.OnHide(); + } + + public override void RefreshData() + { + this._ActivateSuits = this._doc.GetActivateSuits(); + this._WrapContent.SetContentCount((this._ActivateSuits == null) ? 0 : this._ActivateSuits.Count, false); + this._ScrollView.ResetPosition(); + this.ShowActivateSuitPortrait(); + } + + private void _EffectWrapContent(Transform tr, int index) + { + Transform transform = tr.Find("detal"); + IXUISprite ixuisprite = tr.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = tr.Find("Name").GetComponent("XUILabel") as IXUILabel; + bool flag = index >= XFashionStorageDocument.SpecialEffectIDs.Length; + if (flag) + { + transform.gameObject.SetActive(false); + ixuisprite.SetEnabled(false); + ixuilabel.SetText(""); + } + else + { + ixuisprite.SetEnabled(true); + IFashionStorageSelect fashionStorageSelect = this._ActivateSuits[index]; + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + IXUISprite ixuisprite2 = transform.Find("Color").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = transform.Find("Lock").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = transform.Find("Selected").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite5 = transform.Find("Select").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite6 = transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)fashionStorageSelect.GetID()); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSelectEffect)); + FashionSuitSpecialEffects.RowData specialEffect = XFashionStorageDocument.GetSpecialEffect((uint)fashionStorageSelect.GetID()); + ixuilabel.SetText(fashionStorageSelect.GetName()); + ixuisprite6.SetVisible(fashionStorageSelect.RedPoint); + string[] array = string.IsNullOrEmpty(specialEffect.Icon) ? null : specialEffect.Icon.Split(XGlobalConfig.SequenceSeparator); + bool flag2 = array != null; + if (flag2) + { + bool flag3 = array.Length > 1; + if (flag3) + { + ixuisprite2.SetSprite(array[1], array[0], false); + } + else + { + bool flag4 = array.Length != 0; + if (flag4) + { + ixuisprite2.SetSprite(array[0]); + } + else + { + ixuisprite2.SetSprite(null, null, false); + } + } + } + bool flag5 = this._doc.selfEffectID == specialEffect.suitid; + if (flag5) + { + ixuisprite4.SetAlpha(1f); + ixuicheckBox.bChecked = true; + this._SelectEffectID = specialEffect.suitid; + } + else + { + ixuisprite4.SetAlpha(0f); + } + ixuisprite5.SetAlpha((this._SelectEffectID == specialEffect.suitid) ? 1f : 0f); + ixuisprite3.SetVisible(!this._doc.isActivateEffect(specialEffect.suitid)); + } + } + + private bool _CloseClick(IXUIButton btn) + { + DlgBase.singleton.Switch(FashionStoragePreview.None); + return true; + } + + private bool _OnEditPortrait(IXUIButton btn) + { + this._doc.GetActiveSuitEffect(this._SelectEffectID); + return true; + } + + private void _OnSelectEffect(IXUISprite sprite) + { + this._SelectEffectID = (uint)sprite.ID; + IXUICheckBox ixuicheckBox = sprite.transform.Find("detal").GetComponent("XUICheckBox") as IXUICheckBox; + bool flag = ixuicheckBox != null; + if (flag) + { + ixuicheckBox.bChecked = true; + } + bool flag2 = this._doc.isActivateEffect(this._SelectEffectID); + if (flag2) + { + this._EditPortrait.SetVisible(false); + this._doc.preview = FashionStoragePreview.None; + this._doc.GetActiveSuitEffect(this._SelectEffectID); + } + else + { + this._doc.preview = FashionStoragePreview.Effect; + this._doc.previewEffectID = this._SelectEffectID; + DlgBase.singleton.ShowAvatar(); + } + this.ShowActivateSuitPortrait(); + } + + private void ShowActivateSuitPortrait() + { + this._activateSuit = this._doc.GetActivateSuit(this._SelectEffectID); + this._EditPortrait.SetVisible(this._activateSuit != null && this._activateSuit.RedPoint); + bool flag = this._activateSuit == null || this._activateSuit.Active; + if (flag) + { + this._Content.SetText(""); + } + else + { + this._Content.SetText(XStringDefineProxy.GetString("FASHION_STORAGE_EFFECT_CONTENT", new object[] + { + this._activateSuit.GetName() + })); + } + } + + public override void OnUnload() + { + bool flag = this._doc.preview == FashionStoragePreview.Effect; + if (flag) + { + this._doc.preview = FashionStoragePreview.None; + this._doc.previewEffectID = 0u; + } + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageEffectFrame.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageEffectFrame.cs.meta new file mode 100644 index 00000000..86b7d43a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageEffectFrame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6546e7c38791b843b85d3cd8a8322a4 +timeCreated: 1611404745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageEquipToolTipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageEquipToolTipDlg.cs new file mode 100644 index 00000000..5918d3c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageEquipToolTipDlg.cs @@ -0,0 +1,51 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageEquipToolTipDlg : FashionStorageTooltipBase + { + public override string fileName + { + get + { + return "GameSystem/FashionStorageEquipToolTipDlg"; + } + } + + protected override void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + base._SetupLevel(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 1); + base._SetupType(goToolTip, data, 2); + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem item, XItem compareItem, bool bMain) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + this._SetupDescription(goToolTip, itemConf); + } + + protected override void SetupOtherFrame(GameObject goToolTip, ItemList.RowData data) + { + this._SetupDescription(goToolTip, data); + } + + protected void _SetupDescription(GameObject goToolTip, ItemList.RowData data) + { + Transform transform = goToolTip.transform; + IXUISprite ixuisprite = transform.Find("ScrollPanel/Description").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = ixuisprite.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn((data == null) ? "" : data.ItemDescription)); + ixuisprite.spriteHeight = ixuilabel.spriteHeight + -(int)ixuilabel.gameObject.transform.localPosition.y; + this.totalFrameHeight += (float)ixuisprite.spriteHeight; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageEquipToolTipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageEquipToolTipDlg.cs.meta new file mode 100644 index 00000000..841ddf2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageEquipToolTipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2036a15c40194da46a4a3ccd5fbbb31c +timeCreated: 1611403405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionHairToolTipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionHairToolTipDlg.cs new file mode 100644 index 00000000..4b2c6c15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionHairToolTipDlg.cs @@ -0,0 +1,65 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageFashionHairToolTipDlg : FashionStorageTooltipBase + { + public override string fileName + { + get + { + return "GameSystem/FashionStorageFashionHairToolTipDlg"; + } + } + + private IXUILabel time = null; + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + base._SetupLevel(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 1); + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(data.ItemID); + base._SetTopFrameLabel(goToolTip, 2, XStringDefineProxy.GetString("ToolTipText_Part"), (fashionConf != null) ? XSingleton.singleton.GetFashionPartName((FashionPosition)fashionConf.EquipPos, true) : string.Empty); + this.time = (goToolTip.transform.Find("TopFrame/Time/Left").GetComponent("XUILabel") as IXUILabel); + ItemList.RowData itemConf = XBagDocument.GetItemConf(data.ItemID); + bool flag = itemConf == null || itemConf.TimeLimit == 0u; + if (flag) + { + this.time.SetText(XStringDefineProxy.GetString("FASHION_LIMIT_ALWAYS")); + } + else + { + this.time.SetText(XStringDefineProxy.GetString("Designation_Tab_Name5")); + } + } + + protected override void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem item, XItem compareItem, bool bMain) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + this._SetupDescription(goToolTip, itemConf); + } + + protected override void SetupOtherFrame(GameObject goToolTip, ItemList.RowData data) + { + this._SetupDescription(goToolTip, data); + } + + protected void _SetupDescription(GameObject goToolTip, ItemList.RowData data) + { + Transform transform = goToolTip.transform; + IXUISprite ixuisprite = transform.Find("ScrollPanel/Description").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = ixuisprite.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn((data == null) ? "" : data.ItemDescription)); + ixuisprite.spriteHeight = ixuilabel.spriteHeight + -(int)ixuilabel.gameObject.transform.localPosition.y; + this.totalFrameHeight += (float)ixuisprite.spriteHeight; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionHairToolTipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionHairToolTipDlg.cs.meta new file mode 100644 index 00000000..28094793 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionHairToolTipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 006f97b4b5f560d4e9cd48ea62ee5ee8 +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOn.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOn.cs new file mode 100644 index 00000000..9002c462 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOn.cs @@ -0,0 +1,62 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageFashionPutOn : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("PUT_FASHION"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + bool flag = specificDocument.fashionStorageType > FashionStorageType.OutLook; + bool result; + if (flag) + { + result = false; + } + else + { + XFashionDocument specificDocument2 = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + result = !specificDocument2.IsOverAll(item.itemID); + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag = specificDocument.IsOverAll((int)mainUID); + if (!flag) + { + XFashionStorageDocument specificDocument2 = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + bool flag2 = XFashionDocument.IsTargetPart((int)mainUID, FashionPosition.FASHION_START); + if (flag2) + { + specificDocument2.CheckMutuexHeadgear((int)mainUID); + } + else + { + bool flag3 = XFashionDocument.IsTargetPart((int)mainUID, FashionPosition.Hair); + if (flag3) + { + specificDocument2.CheckMutuexHair((int)mainUID); + } + } + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.FashionDisplayWear); + rpcC2G_UseItem.oArg.itemID = (uint)mainUID; + XSingleton.singleton.Send(rpcC2G_UseItem); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOn.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOn.cs.meta new file mode 100644 index 00000000..dfd2ab0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOn.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 42b7239b2c5bb5d4fb14b0836a9977c0 +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOnSuit.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOnSuit.cs new file mode 100644 index 00000000..2619d3fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOnSuit.cs @@ -0,0 +1,95 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageFashionPutOnSuit : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("PUT_FASHIONSUIT"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + bool flag = specificDocument.fashionStorageType == FashionStorageType.OutLook; + bool result; + if (flag) + { + XFashionDocument specificDocument2 = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag2 = specificDocument2.GetFashionSuit(item.itemID) > 0; + result = (flag2 || XCharacterEquipDocument.SuitManager.GetSuit(item.itemID, false) != null); + } + else + { + result = false; + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + XFashionStorageDocument specificDocument2 = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + int num = specificDocument.GetFashionSuit((int)mainUID); + bool flag = num == 0; + if (flag) + { + EquipSuitTable.RowData suit = XCharacterEquipDocument.SuitManager.GetSuit((int)mainUID, false); + bool flag2 = suit != null; + if (flag2) + { + bool flag3 = suit.EquipID != null; + if (flag3) + { + for (int i = 0; i < suit.EquipID.Length; i++) + { + int num2 = suit.EquipID[i]; + bool flag4 = XFashionDocument.IsTargetPart(num2, FashionPosition.FASHION_START); + if (flag4) + { + specificDocument2.CheckMutuexHeadgear(num2); + break; + } + } + } + num = suit.SuitID; + } + } + else + { + FashionSuitTable.RowData suitData = specificDocument.GetSuitData(num); + bool flag5 = suitData != null && suitData.FashionID != null; + if (flag5) + { + int j = 0; + int num3 = suitData.FashionID.Length; + while (j < num3) + { + bool flag6 = XFashionDocument.IsTargetPart((int)suitData.FashionID[j], FashionPosition.FASHION_START); + if (flag6) + { + specificDocument2.CheckMutuexHeadgear((int)suitData.FashionID[j]); + break; + } + j++; + } + } + } + bool flag7 = num == 0; + if (!flag7) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.FashionSuitDisplayWear); + rpcC2G_UseItem.oArg.suit_id = (uint)num; + XSingleton.singleton.Send(rpcC2G_UseItem); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOnSuit.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOnSuit.cs.meta new file mode 100644 index 00000000..b8069d7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionPutOnSuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2159be446da174c4882e233966c558e1 +timeCreated: 1611403413 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionTakeOff.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionTakeOff.cs new file mode 100644 index 00000000..a025f789 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionTakeOff.cs @@ -0,0 +1,48 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageFashionTakeOff : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("TAKEOFF_FASHION"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + bool flag = specificDocument.fashionStorageType > FashionStorageType.OutLook; + bool result; + if (flag) + { + result = false; + } + else + { + XFashionDocument specificDocument2 = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + result = !specificDocument2.IsOverAll(item.itemID); + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag = specificDocument.IsOverAll((int)mainUID); + if (!flag) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.FashionDisplayOff); + rpcC2G_UseItem.oArg.itemID = (uint)mainUID; + XSingleton.singleton.Send(rpcC2G_UseItem); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionTakeOff.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionTakeOff.cs.meta new file mode 100644 index 00000000..01b49d46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionTakeOff.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f91f43752213f5c4290857ddb0f53260 +timeCreated: 1611404897 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionToolTipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionToolTipDlg.cs new file mode 100644 index 00000000..e66997f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionToolTipDlg.cs @@ -0,0 +1,203 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageFashionToolTipDlg : FashionStorageTooltipBase + { + public override string fileName + { + get + { + return "GameSystem/FashionStorageFashionToolTip"; + } + } + + private IXUILabel time = null; + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + base._SetupLevel(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 1); + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(data.ItemID); + base._SetTopFrameLabel(goToolTip, 2, XStringDefineProxy.GetString("ToolTipText_Part"), (fashionConf != null) ? XSingleton.singleton.GetFashionPartName((FashionPosition)fashionConf.EquipPos, true) : string.Empty); + Transform transform = goToolTip.transform; + GameObject gameObject = transform.Find("TopFrame/State").gameObject; + gameObject.SetActive(false); + this.time = (transform.Find("TopFrame/Time/Left").GetComponent("XUILabel") as IXUILabel); + ItemList.RowData itemConf = XBagDocument.GetItemConf(data.ItemID); + bool flag = itemConf == null || itemConf.TimeLimit == 0u; + if (flag) + { + this.time.SetText(XStringDefineProxy.GetString("FASHION_LIMIT_ALWAYS")); + } + else + { + this.time.SetText(XStringDefineProxy.GetString("Designation_Tab_Name5")); + } + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem item, XItem compareItem, bool bMain) + { + this._SetupSuitFrame(goToolTip, item, compareItem, bMain); + base.SetupOtherFrame(goToolTip, item, compareItem, bMain); + } + + protected override int _GetPPT(XItem item, bool bMain, ref string valueText) + { + bool flag = item == null; + int result; + if (flag) + { + result = -1; + } + else + { + uint ppt = item.GetPPT(bMain ? XSingleton.singleton.mainAttributes : XSingleton.singleton.compareAttributes); + valueText = ppt.ToString(); + result = (int)ppt; + } + return result; + } + + private void _SetupSuitFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + IXUISprite ixuisprite = goToolTip.transform.Find("ScrollPanel/SuitFrame").GetComponent("XUISprite") as IXUISprite; + bool flag = mainItem == null; + if (flag) + { + ixuisprite.SetVisible(false); + } + else + { + ixuisprite.SetVisible(true); + ItemList.RowData itemConf = XBagDocument.GetItemConf(mainItem.itemID); + int itemQuality = (int)itemConf.ItemQuality; + bool flag2 = this.m_fashionDoc.IsFashionThreeSpecial(mainItem.itemID); + int fashionSuit = this.m_fashionDoc.GetFashionSuit(mainItem.itemID); + bool flag3 = flag2 && fashionSuit == 0; + if (flag3) + { + ixuisprite.SetVisible(false); + } + else + { + int num = 0; + int num2 = (XSingleton.singleton.FashionOnBody == null) ? this.m_fashionDoc.GetQualityCountOnBody(itemQuality, flag2) : this.GetFashionCount(itemQuality, flag2); + AttrFrameParam attrFrameParam = new AttrFrameParam(); + for (int i = 2; i <= 7; i++) + { + SeqListRef qualityEffect = this.m_fashionDoc.GetQualityEffect(itemQuality, i, flag2); + bool flag4 = qualityEffect.Count == 0; + if (!flag4) + { + for (int j = 0; j < qualityEffect.Count; j++) + { + bool flag5 = qualityEffect[j, 0] == 0u; + if (!flag5) + { + bool flag6 = i <= num2; + string text; + string color; + if (flag6) + { + text = "ffffff"; + color = XSingleton.singleton.GetColorStr(new Color(0.996078432f, 0.807843149f, 0f)); + } + else + { + text = XSingleton.singleton.GetColorStr(new Color(0.5019608f, 0.5019608f, 0.5019608f)); + color = text; + } + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(AttrParam.TextSb, XStringDefineProxy.GetString("EQUIP_SUIT_EFFECT", new object[] + { + i + }), color); + string s = string.Format("{0}{1}", XStringDefineProxy.GetString((XAttributeDefine)qualityEffect[j, 0]), XAttributeCommon.GetAttrValueStr((int)qualityEffect[j, 0], (float)qualityEffect[j, 1])); + AttrParam.Append(AttrParam.ValueSb, s, text); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + num++; + } + } + } + } + bool flag7 = num > 0; + if (flag7) + { + bool flag8 = !flag2; + if (flag8) + { + string @string = XStringDefineProxy.GetString("EQUIP_SUIT_TITLE", new object[] + { + this.m_fashionDoc.GetQualityName(itemQuality) + }); + string str = string.Format("({0}/{1})", num2, 7); + attrFrameParam.Title = @string + str; + } + else + { + string string2 = XStringDefineProxy.GetString("EQUIP_SUIT_THREE_TITLE", new object[] + { + this.m_fashionDoc.GetQualityName(itemQuality) + }); + string str2 = string.Format("({0}/{1})", num2, 3); + attrFrameParam.Title = string2 + str2; + } + base.AppendFrame(ixuisprite.gameObject, (float)this.SetupAttrFrame(ixuisprite.gameObject, attrFrameParam, bMain), null); + } + else + { + ixuisprite.SetVisible(false); + } + } + } + } + + private int GetFashionCount(int quality, bool IsThreeSuit) + { + bool flag = XSingleton.singleton.FashionOnBody == null; + int result; + if (flag) + { + result = 0; + } + else + { + int num = 0; + int i = 0; + int count = XSingleton.singleton.FashionOnBody.Count; + while (i < count) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)XSingleton.singleton.FashionOnBody[i]); + bool flag2 = itemConf == null; + if (!flag2) + { + bool flag3 = IsThreeSuit ^ this.m_fashionDoc.IsFashionThreeSpecial((int)XSingleton.singleton.FashionOnBody[i]); + if (!flag3) + { + bool flag4 = IsThreeSuit && this.m_fashionDoc.GetFashionSuit((int)XSingleton.singleton.FashionOnBody[i]) == 0; + if (!flag4) + { + bool flag5 = (int)itemConf.ItemQuality == quality; + if (flag5) + { + num++; + } + } + } + } + i++; + } + result = num; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionToolTipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionToolTipDlg.cs.meta new file mode 100644 index 00000000..e2afea78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashionToolTipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d690433352eca24c8ebc4efa0b5598f +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashtionTakeOffSuit.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashtionTakeOffSuit.cs new file mode 100644 index 00000000..ab29e261 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashtionTakeOffSuit.cs @@ -0,0 +1,60 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageFashtionTakeOffSuit : TooltipButtonOperateBase + { + public override string GetButtonText() + { + return XStringDefineProxy.GetString("TAKEOFF_FASHIONSUIT"); + } + + public override bool HasRedPoint(XItem item) + { + return false; + } + + public override bool IsButtonVisible(XItem item) + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + bool flag = specificDocument.fashionStorageType == FashionStorageType.OutLook; + bool result; + if (flag) + { + XFashionDocument specificDocument2 = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag2 = specificDocument2.GetFashionSuit(item.itemID) > 0; + result = (flag2 || XCharacterEquipDocument.SuitManager.GetSuit(item.itemID, false) != null); + } + else + { + result = false; + } + return result; + } + + public override void OnButtonClick(ulong mainUID, ulong compareUID) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + int num = specificDocument.GetFashionSuit((int)mainUID); + bool flag = num == 0; + if (flag) + { + EquipSuitTable.RowData suit = XCharacterEquipDocument.SuitManager.GetSuit((int)mainUID, false); + bool flag2 = suit != null; + if (flag2) + { + num = suit.SuitID; + } + } + bool flag3 = num == 0; + if (!flag3) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.FashionSuitDisplayOff); + rpcC2G_UseItem.oArg.suit_id = (uint)num; + XSingleton.singleton.Send(rpcC2G_UseItem); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashtionTakeOffSuit.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashtionTakeOffSuit.cs.meta new file mode 100644 index 00000000..ec09a7f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageFashtionTakeOffSuit.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3dd9c3522633e7843ab451c221b7b0b7 +timeCreated: 1611403605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageHairColorFrame.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageHairColorFrame.cs new file mode 100644 index 00000000..8bba35ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageHairColorFrame.cs @@ -0,0 +1,206 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStorageHairColorFrame : DlgHandlerBase + { + private IXUIButton m_Submit; + + private IXUIButton m_Close; + + private IXUIButton m_EditPortrait; + + private IXUILabelSymbol m_EditorPortraitLabel; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private XFashionStorageDocument m_Doc; + + private uint m_SelectColorID = 0u; + + private IFashionStorageSelect m_SelectHairData; + + private IXUILabel m_HairNameLabel; + + private IXUILabel m_MessageLabel; + + protected override void Init() + { + this.m_Doc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + this.m_Submit = (base.transform.Find("Submit").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_EditPortrait = (base.transform.Find("EditPortrait").GetComponent("XUIButton") as IXUIButton); + this.m_EditorPortraitLabel = (base.transform.Find("EditPortrait/T").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_ScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_HairNameLabel = (base.transform.Find("HairName").GetComponent("XUILabel") as IXUILabel); + this.m_MessageLabel = (base.transform.Find("Message").GetComponent("XUILabel") as IXUILabel); + this.m_MessageLabel.SetText(XStringDefineProxy.GetString("FASHION_STORAGE_HARI_MESSAGE")); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + bool flag = this.m_Doc.preview == FashionStoragePreview.Hair; + if (flag) + { + this.m_Doc.preview = FashionStoragePreview.None; + this.m_Doc.previewHairColor = 0u; + DlgBase.singleton.ShowAvatar(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FASHION_HAIRCOLOR_UNSAVE"), "fece00"); + } + base.OnHide(); + } + + public override void OnUnload() + { + bool flag = (this.m_Doc.preview & FashionStoragePreview.Hair) == FashionStoragePreview.Hair; + if (flag) + { + this.m_Doc.preview = FashionStoragePreview.None; + this.m_Doc.previewHairColor = 0u; + } + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.m_SelectHairData = this.m_Doc.GetFashionHair(this.m_Doc.selectHairID); + this.m_HairNameLabel.SetText(this.m_SelectHairData.GetName()); + bool flag = this.m_SelectHairData == null; + if (flag) + { + this.m_WrapContent.SetContentCount(0, false); + this.m_MessageLabel.SetVisible(true); + } + else + { + this.m_WrapContent.SetContentCount(this.m_SelectHairData.GetFashionList().Length, false); + this.m_MessageLabel.SetVisible(this.m_SelectHairData.GetFashionList().Length <= this.m_WrapContent.widthDimension * 2); + } + this.m_ScrollView.ResetPosition(); + } + + private void OnWrapContentUpdate(Transform tr, int index) + { + Transform transform = tr.Find("detal"); + IXUISprite ixuisprite = tr.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = tr.Find("Name").GetComponent("XUILabel") as IXUILabel; + bool flag = index >= this.m_SelectHairData.GetFashionList().Length; + if (flag) + { + transform.gameObject.SetActive(false); + ixuisprite.SetEnabled(false); + ixuilabel.SetText(""); + } + else + { + ixuisprite.SetEnabled(true); + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + IXUISprite ixuisprite2 = transform.Find("Color").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = transform.Find("Lock").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = transform.Find("Selected").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite5 = transform.Find("Select").GetComponent("XUISprite") as IXUISprite; + HairColorTable.RowData hairColorData = this.m_Doc.GetHairColorData(this.m_SelectHairData.GetFashionList()[index]); + ixuisprite.ID = (ulong)hairColorData.ID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectHairColor)); + ixuilabel.SetText(hairColorData.Name); + ixuisprite2.SetColor(XSingleton.singleton.GetColor(hairColorData.Color)); + bool flag2 = this.m_Doc.CurHairColor == hairColorData.ID; + if (flag2) + { + ixuisprite4.SetAlpha(1f); + ixuicheckBox.bChecked = true; + this.m_SelectColorID = hairColorData.ID; + this.ShowActivateHairPortrait(); + } + else + { + ixuisprite4.SetAlpha(0f); + } + ixuisprite5.SetAlpha((this.m_SelectColorID == hairColorData.ID) ? 1f : 0f); + ixuisprite3.SetVisible(!this.m_SelectHairData.GetItems().Contains(hairColorData.ID)); + } + } + + private void OnSelectHairColor(IXUISprite sprite) + { + this.m_SelectColorID = (uint)sprite.ID; + IXUICheckBox ixuicheckBox = sprite.transform.Find("detal").GetComponent("XUICheckBox") as IXUICheckBox; + bool flag = ixuicheckBox != null; + if (flag) + { + ixuicheckBox.bChecked = true; + } + bool flag2 = this.m_Doc.IsActivateHairColor(this.m_Doc.selectHairID, this.m_SelectColorID); + if (flag2) + { + this.m_EditPortrait.SetVisible(false); + this.m_Doc.preview = FashionStoragePreview.None; + this.m_Doc.GetActivateHairColor(this.m_Doc.selectHairID, this.m_SelectColorID); + } + else + { + this.m_Doc.preview = FashionStoragePreview.Hair; + this.m_Doc.previewHairColor = this.m_SelectColorID; + DlgBase.singleton.ShowAvatar(); + } + this.ShowActivateHairPortrait(); + } + + private void ShowActivateHairPortrait() + { + uint num; + uint cost = 0; + bool flag = !this.m_Doc.IsActivateHairColor(this.m_Doc.selectHairID, this.m_SelectColorID) && this.m_Doc.TryGetActivateUseItem(this.m_Doc.selectHairID, this.m_SelectColorID, out num, out cost); + if (flag) + { + this.m_EditPortrait.SetVisible(true); + this.m_EditorPortraitLabel.InputText = XSingleton.singleton.StringCombine(XLabelSymbolHelper.FormatCostWithIcon((int)cost, ItemEnum.HAIR_COLORING), " ", XStringDefineProxy.GetString("HAIR_COULORING")); + } + else + { + this.m_EditPortrait.SetVisible(false); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Submit.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubmitHandle)); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseHandle)); + this.m_EditPortrait.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEditPortrait)); + } + + private bool OnCloseHandle(IXUIButton btn) + { + DlgBase.singleton.Switch(FashionStoragePreview.None); + return true; + } + + private bool OnEditPortrait(IXUIButton btn) + { + this.m_Doc.GetActivateHairColor(this.m_Doc.selectHairID, this.m_Doc.previewHairColor); + return true; + } + + private bool OnSubmitHandle(IXUIButton btn) + { + XSingleton.singleton.ShowItemAccess(XFastEnumIntEqualityComparer.ToInt(ItemEnum.HAIR_COLORING), null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageHairColorFrame.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageHairColorFrame.cs.meta new file mode 100644 index 00000000..e6210488 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageHairColorFrame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d317a9f21c2a1554e965a271cce97b22 +timeCreated: 1611404598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageTooltipBase.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageTooltipBase.cs new file mode 100644 index 00000000..ec07084d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageTooltipBase.cs @@ -0,0 +1,103 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class FashionStorageTooltipBase : TooltipDlg, ITooltipDlg where TDlgClass : IXUIDlg, new() where TUIBehaviour : TooltipDlgBehaviour + { + public override string fileName + { + get + { + return "GameSystem/FashionStorageToolTip"; + } + } + + protected XFashionStorageDocument m_doc; + + protected XFashionDocument m_fashionDoc; + + protected int itemID; + + public override bool HideToolTip(bool forceHide = false) + { + return base.HideToolTip(forceHide); + } + + protected override void Init() + { + base.Init(); + this.m_OperateList[0, 0] = new FashionStorageFashionPutOn(); + this.m_OperateList[0, 1] = new FashionStorageFashionPutOnSuit(); + this.m_OperateList[1, 0] = new FashionStorageFashionTakeOff(); + this.m_OperateList[1, 1] = new FashionStorageFashtionTakeOffSuit(); + this.m_OperateList[1, 2] = new FashionStorageColouring(); + this.m_OperateList[2, 0] = new FashionStorageButtonGoFashion(); + this.m_fashionDoc = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + this.m_doc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + this.itemID = item.itemID; + if (bMain) + { + bool flag = this.m_doc.fashionStorageType == FashionStorageType.OutLook; + if (flag) + { + bool flag2 = this.m_doc.FashionInBody(item.itemID); + if (flag2) + { + base._SetupButtonVisiability(goToolTip, 1, item); + } + else + { + base._SetupButtonVisiability(goToolTip, 0, item); + } + } + else + { + base._SetupButtonVisiability(goToolTip, 2, item); + } + } + } + + protected override bool OnButton1Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 0] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 0].OnButtonClick((ulong)((long)this.itemID), 0UL); + } + this.HideToolTip(true); + return true; + } + + protected override bool OnButton2Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 1] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 1].OnButtonClick((ulong)((long)this.itemID), 0UL); + } + this.HideToolTip(true); + return true; + } + + protected override bool OnButton3Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 2] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 2].OnButtonClick((ulong)((long)this.itemID), 0UL); + } + this.HideToolTip(true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageTooltipBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageTooltipBase.cs.meta new file mode 100644 index 00000000..dab0dc4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageTooltipBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d438609be3ef7445a31baded42ef145 +timeCreated: 1611404235 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageType.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStorageType.cs new file mode 100644 index 00000000..750fd55b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + public enum FashionStorageType + { + OutLook, + FashionCollection, + EquipCollection + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStorageType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStorageType.cs.meta new file mode 100644 index 00000000..08f5f8b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStorageType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff782ddf615a4d348a3cd22da92e853b +timeCreated: 1611404947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStotageDisplayHandle.cs b/Client/Assets/Scripts/XMainClient/UI/FashionStotageDisplayHandle.cs new file mode 100644 index 00000000..765b891d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStotageDisplayHandle.cs @@ -0,0 +1,76 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionStotageDisplayHandle : DlgHandlerBase + { + private IXUIScrollView m_fashionBagView; + + private IXUIWrapContent m_fashionWrapContent; + + private IFashionStorageSelect m_Select; + + private XFashionStorageDocument m_doc; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + this.m_fashionBagView = (base.transform.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_fashionWrapContent = (base.FindInChild("XUIWrapContent", "WrapContent") as IXUIWrapContent); + this.m_fashionWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.ItemWrapContentUpdate)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + private void ItemWrapContentUpdate(Transform t, int index) + { + uint num = (this.m_Select != null && index >= 0 && index < this.m_Select.GetItems().Count) ? this.m_Select.GetItems()[index] : 0u; + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.normalItemDrawer.DrawItem(t.gameObject, (int)num, 0, false); + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ItemClick)); + ixuisprite2.SetAlpha(this.m_doc.FashionInBody((int)num) ? 1f : 0f); + } + + private void ItemClick(IXUISprite iconSprite) + { + bool flag = iconSprite.ID == 0UL; + if (!flag) + { + int itemID = (int)iconSprite.ID; + XItem item = XBagDocument.MakeXItem(itemID, true); + XSingleton.singleton.ShowOutLookDialog(item, iconSprite, 0u); + } + } + + public void SetFashionStorageSelect(IFashionStorageSelect select = null) + { + this.m_Select = select; + int num = (this.m_Select == null) ? 0 : this.m_Select.GetItems().Count; + int num2 = this.m_fashionWrapContent.widthDimension * this.m_fashionWrapContent.heightDimensionMax; + bool flag = num > this.m_fashionWrapContent.widthDimension * this.m_fashionWrapContent.heightDimensionMax; + if (flag) + { + bool flag2 = num % this.m_fashionWrapContent.widthDimension > 0; + if (flag2) + { + num = (num / this.m_fashionWrapContent.widthDimension + 1) * this.m_fashionWrapContent.widthDimension; + } + } + else + { + num = num2; + } + this.m_fashionWrapContent.SetContentCount(num, false); + this.m_fashionBagView.ResetPosition(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionStotageDisplayHandle.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionStotageDisplayHandle.cs.meta new file mode 100644 index 00000000..89ec149b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionStotageDisplayHandle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf8fc20cf7ed83045939fc0586c33b6a +timeCreated: 1611404483 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlg.cs new file mode 100644 index 00000000..50baf82d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlg.cs @@ -0,0 +1,297 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FashionTooltipDlg : TooltipDlg + { + public override string fileName + { + get + { + return "GameSystem/FashionToolTipDlg"; + } + } + + protected override int compareWindowDistance + { + get + { + return 20; + } + } + + private XFashionDocument _doc; + + private IXUILabel time = null; + + protected override void Init() + { + base.Init(); + this.m_OperateList[0, 0] = new TooltipButtonOperateFashionPutOn(); + this.m_OperateList[0, 1] = new TooltipButtonOperateFashionPutOnSuit(); + this.m_OperateList[0, 2] = new TooltipButtonOperateRecycle(XSysDefine.XSys_Fashion_Fashion); + this.m_OperateList[0, 3] = new TooltipButtonOperateSell(); + this.m_OperateList[0, 4] = new TooltipButtonActivateFashion(); + this.m_OperateList[1, 0] = new TooltipButtonOperateFashionTakeOff(); + this.m_OperateList[1, 1] = new TooltipButtonOperateFashionTakeOffSuit(); + this._doc = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + } + + public override bool HideToolTip(bool forceHide = false) + { + return base.HideToolTip(forceHide); + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + base._SetupLevel(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 1); + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(data.ItemID); + base._SetTopFrameLabel(goToolTip, 2, XStringDefineProxy.GetString("ToolTipText_Part"), (fashionConf != null) ? XSingleton.singleton.GetFashionPartName((FashionPosition)fashionConf.EquipPos, true) : string.Empty); + Transform transform = goToolTip.transform; + GameObject gameObject = transform.Find("TopFrame/State").gameObject; + this.time = (transform.Find("TopFrame/Time/Left").GetComponent("XUILabel") as IXUILabel); + bool flag = this.mainItemUID > 0UL; + if (flag) + { + gameObject.SetActive(this._doc.IsFashionEquipOn(this.mainItemUID)); + } + else + { + gameObject.SetActive(false); + } + ClientFashionData clientFashionData = this._doc.FindFashion(this.mainItemUID); + ItemList.RowData itemConf = XBagDocument.GetItemConf(data.ItemID); + bool flag2 = itemConf != null; + if (flag2) + { + bool flag3 = itemConf.TimeLimit == 0u; + if (flag3) + { + this.time.SetText(XStringDefineProxy.GetString("FASHION_LIMIT_ALWAYS")); + } + else + { + bool flag4 = clientFashionData == null; + if (flag4) + { + this.time.SetText(XSingleton.singleton.TimeDuarationFormatString((int)itemConf.TimeLimit, 5) + XStringDefineProxy.GetString("FASHION_LIMIT_UNWEAR")); + } + else + { + bool flag5 = clientFashionData.timeleft < 0.0; + if (flag5) + { + this.time.SetText(XSingleton.singleton.TimeDuarationFormatString((int)itemConf.TimeLimit, 5) + XStringDefineProxy.GetString("FASHION_LIMIT_UNWEAR")); + } + else + { + this.time.SetText(XSingleton.singleton.TimeDuarationFormatString((int)itemConf.TimeLimit, 5)); + } + } + } + } + } + + protected override int _GetPPT(XItem item, bool bMain, ref string valueText) + { + bool flag = item == null; + int result; + if (flag) + { + result = -1; + } + else + { + uint ppt = item.GetPPT(bMain ? XSingleton.singleton.mainAttributes : XSingleton.singleton.compareAttributes); + valueText = ppt.ToString(); + result = (int)ppt; + } + return result; + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + this._SetupSuitFrame(goToolTip, mainItem, compareItem, bMain); + base.SetupOtherFrame(goToolTip, mainItem, compareItem, bMain); + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + bool flag = !this.bShowButtons; + if (!flag) + { + if (bMain) + { + bool flag2 = this._doc.IsFashionEquipOn(item.uid); + if (flag2) + { + base._SetupButtonVisiability(goToolTip, 1, item); + } + else + { + base._SetupButtonVisiability(goToolTip, 0, item); + } + } + } + } + + private void _SetupSuitFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + IXUISprite ixuisprite = goToolTip.transform.Find("ScrollPanel/SuitFrame").GetComponent("XUISprite") as IXUISprite; + bool flag = mainItem == null; + if (flag) + { + ixuisprite.SetVisible(false); + } + else + { + ixuisprite.SetVisible(true); + ItemList.RowData itemConf = XBagDocument.GetItemConf(mainItem.itemID); + int itemQuality = (int)itemConf.ItemQuality; + bool flag2 = this._doc.IsFashionThreeSpecial(mainItem.itemID); + int fashionSuit = this._doc.GetFashionSuit(mainItem.itemID); + bool flag3 = flag2 && fashionSuit == 0; + if (flag3) + { + ixuisprite.SetVisible(false); + } + else + { + int num = 0; + int num2 = (XSingleton.singleton.FashionOnBody == null) ? this._doc.GetQualityCountOnBody(itemQuality, flag2) : this.GetFashionCount(itemQuality, flag2); + AttrFrameParam attrFrameParam = new AttrFrameParam(); + for (int i = 2; i <= 7; i++) + { + SeqListRef qualityEffect = this._doc.GetQualityEffect(itemQuality, i, flag2); + bool flag4 = qualityEffect.Count == 0; + if (!flag4) + { + for (int j = 0; j < qualityEffect.Count; j++) + { + bool flag5 = qualityEffect[j, 0] == 0u; + if (!flag5) + { + bool flag6 = i <= num2; + string text; + string color; + if (flag6) + { + text = "ffffff"; + color = XSingleton.singleton.GetColorStr(new Color(0.996078432f, 0.807843149f, 0f)); + } + else + { + text = XSingleton.singleton.GetColorStr(new Color(0.5019608f, 0.5019608f, 0.5019608f)); + color = text; + } + AttrParam item = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(AttrParam.TextSb, XStringDefineProxy.GetString("EQUIP_SUIT_EFFECT", new object[] + { + i + }), color); + string s = string.Format("{0}{1}", XStringDefineProxy.GetString((XAttributeDefine)qualityEffect[j, 0]), XAttributeCommon.GetAttrValueStr((int)qualityEffect[j, 0], (float)qualityEffect[j, 1])); + AttrParam.Append(AttrParam.ValueSb, s, text); + item.SetTextFromSb(); + item.SetValueFromSb(); + attrFrameParam.AttrList.Add(item); + num++; + } + } + } + } + bool flag7 = num > 0; + if (flag7) + { + bool flag8 = !flag2; + if (flag8) + { + string @string = XStringDefineProxy.GetString("EQUIP_SUIT_TITLE", new object[] + { + this._doc.GetQualityName(itemQuality) + }); + string str = string.Format("({0}/{1})", num2, 7); + attrFrameParam.Title = @string + str; + } + else + { + string string2 = XStringDefineProxy.GetString("EQUIP_SUIT_THREE_TITLE", new object[] + { + this._doc.GetQualityName(itemQuality) + }); + string str2 = string.Format("({0}/{1})", num2, 3); + attrFrameParam.Title = string2 + str2; + } + base.AppendFrame(ixuisprite.gameObject, (float)this.SetupAttrFrame(ixuisprite.gameObject, attrFrameParam, bMain), null); + ixuisprite.SetVisible(false); + ixuisprite.SetVisible(true); + } + else + { + ixuisprite.SetVisible(false); + } + } + } + } + + private int GetFashionCount(int quality, bool IsThreeSuit) + { + bool flag = XSingleton.singleton.FashionOnBody == null; + int result; + if (flag) + { + result = 0; + } + else + { + int num = 0; + int i = 0; + int count = XSingleton.singleton.FashionOnBody.Count; + while (i < count) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)XSingleton.singleton.FashionOnBody[i]); + bool flag2 = itemConf == null; + if (!flag2) + { + bool flag3 = IsThreeSuit ^ this._doc.IsFashionThreeSpecial((int)XSingleton.singleton.FashionOnBody[i]); + if (!flag3) + { + bool flag4 = IsThreeSuit && this._doc.GetFashionSuit((int)XSingleton.singleton.FashionOnBody[i]) == 0; + if (!flag4) + { + bool flag5 = (int)itemConf.ItemQuality == quality; + if (flag5) + { + num++; + } + } + } + } + i++; + } + result = num; + } + return result; + } + + public override void OnUpdate() + { + ClientFashionData clientFashionData = this._doc.FindFashion(this.mainItemUID); + bool flag = clientFashionData != null && clientFashionData.timeleft > 0.0; + if (flag) + { + bool flag2 = this.time != null; + if (flag2) + { + this.time.SetText(XSingleton.singleton.TimeDuarationFormatString((int)clientFashionData.timeleft, 5)); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlg.cs.meta new file mode 100644 index 00000000..184b3e40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 95ed526ff5cc54747b482ba0515e07d9 +timeCreated: 1611404183 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlgBehaviour.cs new file mode 100644 index 00000000..5d676ec4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlgBehaviour.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient.UI +{ + internal class FashionTooltipDlgBehaviour : TooltipDlgBehaviour + { + protected override void Awake() + { + base.Awake(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlgBehaviour.cs.meta new file mode 100644 index 00000000..7aa78030 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FashionTooltipDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f22a4614a61609345a835b979f6e728d +timeCreated: 1611404842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FeastHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FeastHandler.cs new file mode 100644 index 00000000..b00e49ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FeastHandler.cs @@ -0,0 +1,287 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FeastHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Home/FeastHandler"; + } + } + + protected XUIPool _tabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected XUIPool _itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform _rewardSnap; + + private IXUILabel _packageName; + + private IXUILabel _partyDesc; + + private Transform _tabs; + + private Transform _items; + + private IXUIButton _inviteBtn; + + private IXUIButton _holdPartyBtn; + + private List _tabList = new List(); + + private uint _banquetID = 0u; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + this.InitLeftTabs(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshUI(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void RefreshUI() + { + this.SetHoldPatryState(); + this.SetDefaultTab(); + } + + public void BeginToFeast() + { + XSingleton.singleton.AddGreenLog("BeginToFeast", null, null, null, null, null); + this.RefreshPartyBtnState(false); + } + + public void RefreshPartyBtnState(bool enable) + { + this._holdPartyBtn.SetEnable(enable, false); + } + + private void InitLeftTabs() + { + this._tabList.Clear(); + this._tabPool.ReturnAll(false); + GardenBanquetCfg.RowData[] table = XHomeCookAndPartyDocument.GardenBanquetCfgTable.Table; + for (int i = 0; i < table.Length; i++) + { + GameObject gameObject = this._tabPool.FetchGameObject(false); + this.InitTabItem(gameObject.transform, table[i]); + gameObject.transform.parent = this._tabs; + gameObject.transform.localPosition = new Vector3(this._tabPool.TplPos.x, this._tabPool.TplPos.y - (float)(i * this._tabPool.TplHeight), 0f); + this._tabList.Add(gameObject.transform); + } + } + + private void InitProperties() + { + this._tabs = base.transform.Find("Tabs"); + this._tabPool.SetupPool(this._tabs.gameObject, this._tabs.Find("Combo").gameObject, 2u, false); + this._items = base.transform.Find("Content/NeedFood/Items"); + this._itemPool.SetupPool(this._items.gameObject, this._items.Find("Item").gameObject, 2u, false); + this._packageName = (base.transform.Find("Content/Tittle/Name").GetComponent("XUILabel") as IXUILabel); + this._partyDesc = (base.transform.Find("Content/FeastDes/ContentLab").GetComponent("XUILabel") as IXUILabel); + this._rewardSnap = base.transform.Find("Content/FeastReward/SnapShot"); + this._holdPartyBtn = (base.transform.Find("HoldFeastBtn").GetComponent("XUIButton") as IXUIButton); + this._holdPartyBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickHoldParty)); + this._inviteBtn = (base.transform.Find("InviteFriendsBtn").GetComponent("XUIButton") as IXUIButton); + this._inviteBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickInviteBtn)); + } + + private void InitTabItem(Transform item, GardenBanquetCfg.RowData info) + { + IXUICheckBox ixuicheckBox = item.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)info.BanquetID; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnPackageChange)); + Transform transform = item.Find("Tittle"); + IXUILabel ixuilabel = item.Find("Tittle").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = item.Find("Select/SL").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(info.BanquetName); + ixuilabel2.SetText(info.BanquetName); + } + + private void SetDefaultTab() + { + bool flag = this._tabList.Count > 0; + if (flag) + { + IXUICheckBox ixuicheckBox = this._tabList[0].GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ForceSetFlag(true); + this.RefreshRightPanel((uint)ixuicheckBox.ID); + } + } + + private void RefreshRightPanel(uint id) + { + GardenBanquetCfg.RowData gardenBanquetInfoByID = XHomeCookAndPartyDocument.Doc.GetGardenBanquetInfoByID(id); + bool flag = gardenBanquetInfoByID != null; + if (flag) + { + this._itemPool.ReturnAll(false); + this._packageName.SetText(gardenBanquetInfoByID.BanquetName); + this._partyDesc.SetText(gardenBanquetInfoByID.Desc); + for (int i = 0; i < gardenBanquetInfoByID.Stuffs.Count; i++) + { + Transform transform = this.DrawItem((int)gardenBanquetInfoByID.Stuffs[i, 0], (int)gardenBanquetInfoByID.Stuffs[i, 1], this._items, i); + IXUILabel ixuilabel = transform.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + uint itemid = gardenBanquetInfoByID.Stuffs[i, 0]; + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)itemid); + string text = itemCount + "/" + gardenBanquetInfoByID.Stuffs[i, 1]; + bool flag2 = itemCount < (ulong)gardenBanquetInfoByID.Stuffs[i, 1]; + if (flag2) + { + text = string.Concat(new object[] + { + "[ff0000]", + itemCount, + "/", + gardenBanquetInfoByID.Stuffs[i, 1], + "[-]" + }); + } + ixuilabel.SetText(text); + } + for (int j = 0; j < gardenBanquetInfoByID.BanquetAwards.Count; j++) + { + this.DrawItem((int)gardenBanquetInfoByID.BanquetAwards[j, 0], (int)gardenBanquetInfoByID.BanquetAwards[j, 1], this._rewardSnap, j); + } + } + } + + private Transform DrawItem(int itemID, int num, Transform parent, int index) + { + GameObject gameObject = this._itemPool.FetchGameObject(false); + gameObject.transform.parent = parent; + gameObject.transform.localPosition = new Vector3((float)(index * this._itemPool.TplWidth), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemID, num, true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + return gameObject.transform; + } + + private bool OnPackageChange(IXUICheckBox box) + { + bool bChecked = box.bChecked; + bool result; + if (bChecked) + { + uint num = (uint)box.ID; + this._banquetID = num; + this.RefreshRightPanel(num); + result = true; + } + else + { + result = false; + } + return result; + } + + private bool OnClickInviteBtn(IXUIButton btn) + { + XActivityInviteDocument.Doc.ShowActivityInviteView(2, XActivityInviteDocument.OpType.Invite); + return true; + } + + private bool OnClickHoldParty(IXUIButton btn) + { + bool flag = !this.IsFoodEnough(); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FoodNotEnough"), "fece00"); + result = false; + } + else + { + bool flag2 = this.IsHasEnoughParters(); + if (flag2) + { + XHomeCookAndPartyDocument.Doc.SendGardenBanquet(this._banquetID); + result = true; + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GargenPepleLack"), "fece00"); + result = false; + } + } + return result; + } + + private bool IsHasEnoughParters() + { + List all = XSingleton.singleton.GetAll(); + int num = 0; + for (int i = 0; i < all.Count; i++) + { + bool isRole = all[i].IsRole; + if (isRole) + { + num++; + } + } + return num >= XSingleton.singleton.GetInt("GardenBanquetGuests"); + } + + private void SetHoldPatryState() + { + bool flag = !HomeMainDocument.Doc.IsInMyOwnHomeGarden() || XHomeCookAndPartyDocument.Doc.CurBanquetState > 0u; + if (flag) + { + this._holdPartyBtn.SetEnable(false, false); + } + else + { + this._holdPartyBtn.SetEnable(true, false); + } + } + + protected bool IsFoodEnough() + { + GardenBanquetCfg.RowData gardenBanquetInfoByID = XHomeCookAndPartyDocument.Doc.GetGardenBanquetInfoByID(this._banquetID); + bool flag = gardenBanquetInfoByID != null; + if (flag) + { + for (int i = 0; i < gardenBanquetInfoByID.Stuffs.Count; i++) + { + uint itemid = gardenBanquetInfoByID.Stuffs[i, 0]; + uint num = gardenBanquetInfoByID.Stuffs[i, 1]; + uint num2 = (uint)XBagDocument.BagDoc.GetItemCount((int)itemid); + bool flag2 = num2 < num; + if (flag2) + { + return false; + } + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FeastHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FeastHandler.cs.meta new file mode 100644 index 00000000..8261bd7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FeastHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69805867e355647468bdd357c6b82830 +timeCreated: 1611403886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FindBackData.cs b/Client/Assets/Scripts/XMainClient/UI/FindBackData.cs new file mode 100644 index 00000000..ba98f73e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FindBackData.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient.UI +{ + internal class FindBackData + { + public int findid = 0; + + public int maxfindback = 0; + + public int findindex = 0; + + public bool isfind = false; + + public int findbacklevel = 0; + + public List findbackinfo = new List(); + + public Dictionary> goldItemCount = new Dictionary>(); + + public Dictionary> dragonCoinItemCount = new Dictionary>(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FindBackData.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FindBackData.cs.meta new file mode 100644 index 00000000..f843595c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FindBackData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b2f8f7591cbfd84c98062ab5d938f57 +timeCreated: 1611403498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassGhjcHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FirstPassGhjcHandler.cs new file mode 100644 index 00000000..dadd2bc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassGhjcHandler.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FirstPassGhjcHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/FirstPassGhjc"; + } + } + + public IXUIButton m_btnGo; + + protected override void Init() + { + base.Init(); + this.m_btnGo = (base.transform.Find("BtnGo").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnGo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + private bool OnBtnClick(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Team, 0UL); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassGhjcHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FirstPassGhjcHandler.cs.meta new file mode 100644 index 00000000..71a907c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassGhjcHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ea7e12eb5dfe2d4791c13f81c31715a +timeCreated: 1611403204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassGuindRankHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FirstPassGuindRankHandler.cs new file mode 100644 index 00000000..7e32e57f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassGuindRankHandler.cs @@ -0,0 +1,283 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FirstPassGuindRankHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/FirstPassGuildRank"; + } + } + + private IXUILabel m_TimeLabel; + + private IXUILabel m_DescLabel; + + private IXUILabel m_MarkLabel; + + private IXUILabel m_UnJoinLabel; + + private IXUILabel m_GuildRankLabel; + + private IXUIButton m_ShowRank; + + private IXUIButton m_JoinGuild; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private uint m_timer = 0u; + + private XGuildRankDocument _Doc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildRankDocument.uuID); + this.m_TimeLabel = (base.transform.Find("Titles/Time").GetComponent("XUILabel") as IXUILabel); + this.m_DescLabel = (base.transform.Find("Titles/Desc").GetComponent("XUILabel") as IXUILabel); + this.m_MarkLabel = (base.transform.Find("Titles/Mark").GetComponent("XUILabel") as IXUILabel); + this.m_UnJoinLabel = (base.transform.Find("Control/UnJoin").GetComponent("XUILabel") as IXUILabel); + this.m_GuildRankLabel = (base.transform.Find("Control/Rank").GetComponent("XUILabel") as IXUILabel); + this.m_ShowRank = (base.transform.Find("Control/ShowRank").GetComponent("XUIButton") as IXUIButton); + this.m_JoinGuild = (base.transform.Find("Control/JoinGuild").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("RankContent/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("RankContent/ScrollView/GuildList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendGuildRankInfo(); + this.CheckInGuild(); + this.RefreshTitles(); + this.SetRewardInfo(); + this.CheckTime(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.CheckInGuild(); + this.RefreshTitles(); + this.CheckTime(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshTitles(); + this.CheckInGuild(); + this.CheckTime(); + } + + private void SetRewardInfo() + { + this.m_WrapContent.SetContentCount(XGuildRankDocument.m_RankRewardTable.Table.Length, false); + this.m_ScrollView.ResetPosition(); + } + + private void OnWrapContentUpdate(Transform t, int index) + { + GuildRankRewardTable.RowData rowData = XGuildRankDocument.m_RankRewardTable.Table[index]; + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("IndexSprite").GetComponent("XUISprite") as IXUISprite; + bool flag = rowData.Rank[0] == rowData.Rank[1]; + if (flag) + { + bool flag2 = rowData.Rank[0] <= 3u; + if (flag2) + { + ixuisprite.SetAlpha(1f); + ixuilabel.Alpha = 0f; + ixuisprite.SetSprite(XSingleton.singleton.StringCombine("N", rowData.Rank[0].ToString())); + } + else + { + ixuisprite.SetAlpha(0f); + ixuilabel.Alpha = 1f; + ixuilabel.SetText(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1", new object[] + { + rowData.Rank[0] + })); + } + } + else + { + ixuisprite.SetAlpha(0f); + ixuilabel.Alpha = 1f; + ixuilabel.SetText(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc4", new object[] + { + rowData.Rank[0], + rowData.Rank[1] + })); + } + this.SetRewardList(t.Find("Leader"), ref rowData.LeaderReward); + this.SetRewardList(t.Find("Officer"), ref rowData.OfficerRreward); + this.SetRewardList(t.Find("Member"), ref rowData.MemberReward); + } + + private void SetRewardList(Transform t, ref SeqListRef rewards) + { + IXUIList ixuilist = t.GetComponent("XUIList") as IXUIList; + int i = 0; + int num = 3; + while (i < num) + { + Transform transform = t.Find(XSingleton.singleton.StringCombine("Item", i.ToString())); + bool flag = i < rewards.Count; + if (flag) + { + transform.gameObject.SetActive(true); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rewards[i, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, (int)rewards[i, 0], (int)rewards[i, 1], false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnIconClick)); + } + else + { + transform.gameObject.SetActive(false); + } + i++; + } + ixuilist.Refresh(); + } + + private void OnIconClick(IXUISprite spr) + { + XItem mainItem = XBagDocument.MakeXItem((int)spr.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, false, 0u); + } + + private void RefreshTitles() + { + this.m_MarkLabel.SetText(XStringDefineProxy.GetString("GUILD_RANK_MARK", new object[] + { + XSingleton.singleton.TimeFormatSince1970((int)this._Doc.KeepTime, XStringDefineProxy.GetString("TIME_FORMAT_YYMMDD"), true) + })); + this.m_DescLabel.SetText(XStringDefineProxy.GetString("GUILD_RANK_DESC")); + } + + private void CheckTime() + { + XSingleton.singleton.KillTimer(this.m_timer); + bool flag = this._Doc.LastTime > 0; + if (flag) + { + XGuildRankDocument doc = this._Doc; + int lastTime = doc.LastTime; + doc.LastTime = lastTime - 1; + this.m_timer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.DoTimer), null); + bool flag2 = this._Doc.LastTime >= 86400; + if (flag2) + { + this.m_TimeLabel.SetText(XStringDefineProxy.GetString("GUILD_RANK_TIME", new object[] + { + XSingleton.singleton.TimeFormatSince1970((int)this._Doc.EndTime, XStringDefineProxy.GetString("TIME_FORMAT_YYMMDD"), true), + XStringDefineProxy.GetString("GUILD_QUALIFER_STYLE1", new object[] + { + XSingleton.singleton.TimeDuarationFormatString(this._Doc.LastTime, 2) + }) + })); + } + else + { + this.m_TimeLabel.SetText(XStringDefineProxy.GetString("GUILD_RANK_TIME", new object[] + { + XSingleton.singleton.TimeFormatSince1970((int)this._Doc.EndTime, XStringDefineProxy.GetString("TIME_FORMAT_YYMMDD"), true), + XStringDefineProxy.GetString("GUILD_QUALIFER_STYLE1", new object[] + { + XSingleton.singleton.TimeDuarationFormatString(this._Doc.LastTime, 5) + }) + })); + } + } + else + { + this.m_TimeLabel.SetText(XStringDefineProxy.GetString("GUILD_RANK_TIME", new object[] + { + XSingleton.singleton.TimeFormatSince1970((int)this._Doc.EndTime, XStringDefineProxy.GetString("TIME_FORMAT_YYMMDD"), true), + XStringDefineProxy.GetString("GUILD_QUALIFER_STYLE2") + })); + } + } + + private void DoTimer(object o = null) + { + XSingleton.singleton.KillTimer(this.m_timer); + this.CheckTime(); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.m_timer); + base.OnHide(); + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this.m_timer); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ShowRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowRankClick)); + this.m_JoinGuild.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinGuild)); + } + + private bool OnShowRankClick(IXUIButton btn) + { + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank_Guild); + return false; + } + + private bool OnJoinGuild(IXUIButton btn) + { + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild); + if (flag) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag2 = specificDocument != null; + if (flag2) + { + specificDocument.TryShowGuildHallUI(); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_UNJION"), "fece00"); + } + return true; + } + + private void CheckInGuild() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument.bInGuild; + if (bInGuild) + { + this.m_JoinGuild.SetVisible(false); + this.m_UnJoinLabel.SetVisible(false); + this.m_GuildRankLabel.SetVisible(true); + this.m_GuildRankLabel.SetText(this._Doc.RankIndex.ToString()); + } + else + { + this.m_JoinGuild.SetVisible(true); + this.m_UnJoinLabel.SetVisible(true); + this.m_GuildRankLabel.SetVisible(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassGuindRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FirstPassGuindRankHandler.cs.meta new file mode 100644 index 00000000..66b8a942 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassGuindRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: edb5dc5fb2a301d4d9819a09cb973d24 +timeCreated: 1611404792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassMainHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FirstPassMainHandler.cs new file mode 100644 index 00000000..1260c5b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassMainHandler.cs @@ -0,0 +1,391 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FirstPassMainHandler : DlgHandlerBase + { + private FirstPassDocument m_doc + { + get + { + return FirstPassDocument.Doc; + } + } + + public FirstPassTeamInfoHandler TeamInfoHandler + { + get + { + return this.m_TeamInfoHandler; + } + } + + protected override string FileName + { + get + { + return "OperatingActivity/FirstPassMain"; + } + } + + private IXUILabel m_tittle1Lab; + + private IXUILabel m_tittle2Lab; + + private IXUILabel m_myRankLab; + + private IXUILabel m_itemTittleLab; + + private IXUILabel m_goLab; + + private IXUILabel m_tipsLab; + + private IXUILabel m_timeLab; + + private IXUIButton m_viewRewardBtn; + + private IXUIButton m_topTeamInfoBtn; + + private IXUIButton m_goBtn; + + private IXUISprite m_leftSpr; + + private IXUISprite m_rightSpr; + + private IXUITexture m_bgTexture; + + private GameObject m_getRewardRedDot; + + private GameObject m_leftRedDot; + + private GameObject m_rightRedDot; + + private GameObject m_itemsGo; + + private GameObject m_PariseRedDot; + + private FirstPassTeamInfoHandler m_TeamInfoHandler; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_doc.View = this; + this.m_leftSpr = (base.PanelObject.transform.Find("Arrow/Left").GetComponent("XUISprite") as IXUISprite); + this.m_rightSpr = (base.PanelObject.transform.Find("Arrow/Right").GetComponent("XUISprite") as IXUISprite); + this.m_leftRedDot = this.m_leftSpr.gameObject.transform.Find("RedPoint").gameObject; + this.m_rightRedDot = this.m_rightSpr.gameObject.transform.Find("RedPoint").gameObject; + Transform transform = base.PanelObject.transform.Find("Main/Tittles"); + this.m_tittle1Lab = (transform.Find("Tittle1").GetComponent("XUILabel") as IXUILabel); + this.m_tittle2Lab = (transform.Find("Tittle2").GetComponent("XUILabel") as IXUILabel); + this.m_myRankLab = (transform.Find("MyRank").GetComponent("XUILabel") as IXUILabel); + this.m_tipsLab = (transform.Find("Tips").GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Main/Btns"); + this.m_viewRewardBtn = (transform.Find("ViewRewardBtn").GetComponent("XUIButton") as IXUIButton); + this.m_topTeamInfoBtn = (transform.Find("TopTeamInfoBtn").GetComponent("XUIButton") as IXUIButton); + this.m_goBtn = (transform.Find("GoBtn").GetComponent("XUIButton") as IXUIButton); + this.m_goLab = (transform.Find("GoBtn/T").GetComponent("XUILabel") as IXUILabel); + this.m_getRewardRedDot = transform.Find("GoBtn/RedPoint").gameObject; + this.m_PariseRedDot = transform.Find("TopTeamInfoBtn/RedPoint").gameObject; + this.m_bgTexture = (base.PanelObject.transform.Find("Main/P").GetComponent("XUITexture") as IXUITexture); + transform = base.PanelObject.transform.Find("Main/Items"); + this.m_itemsGo = transform.gameObject; + this.m_ItemPool.SetupPool(this.m_itemsGo, transform.Find("Item").gameObject, 2u, false); + this.m_itemTittleLab = (transform.Find("Tittle").GetComponent("XUILabel") as IXUILabel); + this.m_timeLab = (base.PanelObject.transform.Find("Main/TimeLab").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_viewRewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnViewRewardClicked)); + this.m_topTeamInfoBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTopTeamInfoClicked)); + this.m_goBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoClicked)); + this.m_leftSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnLeftClicked)); + this.m_rightSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRightClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_doc.CurData = this.m_doc.AutoSelectFirstPassData; + this.FillBgTexture(); + this.m_doc.ReqFirstPassInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_bgTexture.SetTexturePath(""); + bool flag = this.m_TeamInfoHandler != null; + if (flag) + { + this.m_TeamInfoHandler.SetVisible(false); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_TeamInfoHandler); + base.OnUnload(); + } + + public void RefreshUI() + { + this.FillContent(); + } + + public void UiBackRefrsh() + { + this.FillBgTexture(); + this.FillContent(); + } + + private void FillContent() + { + bool flag = this.m_doc.CurData == null; + if (!flag) + { + this.FillTime(); + this.m_tittle1Lab.SetText(string.Format(XStringDefineProxy.GetString("FirstPassTips"), this.m_doc.CurData.FirstPassRow.Des)); + string text = string.Format(XStringDefineProxy.GetString("CanGetReward"), this.m_doc.NeedPassTeamCount); + text = string.Format("{0}({1}/{2})", text, this.m_doc.CurData.PassTeamCount, this.m_doc.NeedPassTeamCount); + this.m_tittle2Lab.SetText(text); + bool flag2 = this.m_doc.CurData.CurRank == 0; + if (flag2) + { + text = XStringDefineProxy.GetString("NoPass"); + } + else + { + text = string.Format(XStringDefineProxy.GetString("MyRank"), this.m_doc.CurData.CurRank); + } + this.m_myRankLab.SetText(text); + bool isHadReward = this.m_doc.CurData.IsHadReward; + if (isHadReward) + { + this.m_goLab.SetText(XStringDefineProxy.GetString("SRS_FETCH")); + this.m_getRewardRedDot.SetActive(true); + } + else + { + this.m_goLab.SetText(XStringDefineProxy.GetString("GoToBattle")); + this.m_getRewardRedDot.SetActive(false); + } + this.m_leftSpr.gameObject.SetActive(this.m_doc.IsHadLastData); + this.m_rightSpr.gameObject.SetActive(this.m_doc.IsHadNextData); + this.m_leftRedDot.SetActive(this.m_doc.MainArrowRedDot(ArrowDirection.Left)); + this.m_rightRedDot.SetActive(this.m_doc.MainArrowRedDot(ArrowDirection.Right)); + this.m_PariseRedDot.SetActive(this.m_doc.CurData.IsCanPrise); + bool flag3 = this.m_doc.CurData.PassTeamCount >= this.m_doc.NeedPassTeamCount; + if (flag3) + { + this.m_tipsLab.gameObject.SetActive(true); + this.m_tipsLab.SetText(XStringDefineProxy.GetString("RewardIsNone")); + this.m_itemsGo.SetActive(false); + } + else + { + this.m_tipsLab.gameObject.SetActive(false); + this.m_itemsGo.SetActive(true); + bool flag4 = !this.m_doc.CurData.IsHadReward; + if (flag4) + { + this.FileItems(this.m_doc.CurData.GetFirstPassReward(this.m_doc.CurData.PassTeamCount + 1)); + } + else + { + this.FileItems(this.m_doc.CurData.GetFirstPassReward(this.m_doc.CurData.CurRank)); + } + } + } + } + + private void FillTime() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + bool flag = this.m_doc.CurData == null || this.m_doc.CurData.FirstPassRow == null || this.m_doc.CurData.FirstPassRow.SceneID.Length < 1; + if (!flag) + { + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID(this.m_doc.CurData.FirstPassRow.SceneID[0]); + bool flag2 = expeditionDataByID == null; + if (flag2) + { + this.m_timeLab.SetText(""); + } + else + { + string text = ""; + int num = (int)expeditionDataByID.ServerOpenTime[0]; + int num2 = (int)expeditionDataByID.ServerOpenTime[1]; + XActivityDocument doc = XActivityDocument.Doc; + uint severOpenSecond = doc.SeverOpenSecond; + bool flag3 = doc.ServerOpenDay < num; + if (flag3) + { + text = string.Format(XSingleton.singleton.GetString("MulActivity_ServerOpenDay"), num - doc.ServerOpenDay); + } + else + { + bool flag4 = doc.ServerOpenDay == num; + if (flag4) + { + bool flag5 = severOpenSecond % 3600u == 0u; + uint num3; + if (flag5) + { + num3 = severOpenSecond / 3600u; + } + else + { + num3 = severOpenSecond / 3600u + 1u; + } + bool flag6 = (ulong)num3 < (ulong)((long)num2); + if (flag6) + { + text = string.Format("{0}{1}", (long)num2 - (long)((ulong)num3), XSingleton.singleton.GetString("HOUR_DUARATION")); + text = string.Format(XSingleton.singleton.GetString("ActivityOpenTime"), text); + } + else + { + bool flag7 = (ulong)num3 == (ulong)((long)num2); + if (flag7) + { + bool flag8 = severOpenSecond % 3600u < 60u; + if (flag8) + { + text = string.Format(XSingleton.singleton.GetString("ActivityOpenTime"), XSingleton.singleton.GetString("LessOneHour")); + } + } + } + } + } + this.m_timeLab.SetText(text); + } + } + } + + private void FillBgTexture() + { + this.m_bgTexture.SetTexturePath("atlas/UI/common/Pic/" + this.m_doc.CurData.FirstPassRow.BgTexName); + } + + private void FileItems(RewardAuxData data) + { + bool flag = data == null; + if (!flag) + { + bool flag2 = data.RankRang[1] == 1; + if (flag2) + { + this.m_itemTittleLab.SetText(XStringDefineProxy.GetString("FirstPassReward")); + } + else + { + this.m_itemTittleLab.SetText(string.Format(XStringDefineProxy.GetString("RankReward1"), data.RankRang[1])); + } + this.m_ItemPool.ReturnAll(false); + for (int i = 0; i < data.RewardDataList.Count; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_itemsGo.transform; + gameObject.name = i.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(this.m_ItemPool.TplWidth * i), 0f, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)data.RewardDataList[i].Id); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, data.RewardDataList[i].Id, data.RewardDataList[i].Count, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + + private bool OnViewRewardClicked(IXUIButton sp) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + + private bool OnTopTeamInfoClicked(IXUIButton sp) + { + this.m_leftSpr.gameObject.SetActive(false); + this.m_rightSpr.gameObject.SetActive(false); + DlgHandlerBase.EnsureCreate(ref this.m_TeamInfoHandler, this.parent, true, this); + return true; + } + + private bool OnGoClicked(IXUIButton sp) + { + bool flag = this.m_doc.CurData == null; + bool result; + if (flag) + { + result = true; + } + else + { + bool isHadReward = this.m_doc.CurData.IsHadReward; + if (isHadReward) + { + this.m_doc.ReqFirstPassReward(this.m_doc.CurData.Id); + } + else + { + bool flag2 = !XSingleton.singleton.IsSystemOpened((XSysDefine)this.m_doc.CurData.FirstPassRow.SystemId); + if (flag2) + { + int sysOpenServerDay = XSingleton.singleton.GetSysOpenServerDay(this.m_doc.CurData.FirstPassRow.SystemId); + XActivityDocument specificDocument = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + int serverOpenDay = specificDocument.ServerOpenDay; + int num = sysOpenServerDay - serverOpenDay; + bool flag3 = sysOpenServerDay == 0 || num <= 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SYSTEM_NOT_OPEN"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("MulActivity_ServerOpenDay"), num), "fece00"); + } + return true; + } + XSingleton.singleton.OpenSystem(this.m_doc.CurData.FirstPassRow.SystemId); + } + result = true; + } + return result; + } + + private void OnLeftClicked(IXUISprite sp) + { + bool isHadLastData = this.m_doc.IsHadLastData; + if (isHadLastData) + { + this.m_doc.CurData = this.m_doc.GetLastFirstPassData(); + this.FillBgTexture(); + this.FillContent(); + } + } + + private void OnRightClicked(IXUISprite sp) + { + bool isHadNextData = this.m_doc.IsHadNextData; + if (isHadNextData) + { + this.m_doc.CurData = this.m_doc.GetNextFirstPassData(); + this.FillBgTexture(); + this.FillContent(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassMainHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FirstPassMainHandler.cs.meta new file mode 100644 index 00000000..83a26604 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassMainHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5d7a96e3d8f3e9d4fadff7e8f5d426eb +timeCreated: 1611403806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassMwcxHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FirstPassMwcxHandler.cs new file mode 100644 index 00000000..11edbe7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassMwcxHandler.cs @@ -0,0 +1,25 @@ +using System; + +namespace XMainClient.UI +{ + internal class FirstPassMwcxHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/FirstPassMwcx"; + } + } + + protected override void Init() + { + base.Init(); + } + + protected override void OnShow() + { + base.OnShow(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassMwcxHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FirstPassMwcxHandler.cs.meta new file mode 100644 index 00000000..c22e2312 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassMwcxHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0cc41d3e7fa61da47b751f15421df0fc +timeCreated: 1611403175 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassTeamInfoHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FirstPassTeamInfoHandler.cs new file mode 100644 index 00000000..309184cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassTeamInfoHandler.cs @@ -0,0 +1,412 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FirstPassTeamInfoHandler : DlgHandlerBase + { + private FirstPassDocument m_doc + { + get + { + return FirstPassDocument.Doc; + } + } + + protected override string FileName + { + get + { + return "OperatingActivity/FirstPassTeamInfo"; + } + } + + private IXUIButton m_returnBtn; + + private IXUIButton m_rankBtn; + + private IXUIButton m_priseBtn; + + private IXUISprite m_leftSpr; + + private IXUISprite m_rightSpr; + + private IXUILabel m_tittleLab2; + + private IXUILabel m_priseLab; + + private IXUILabel m_starLab; + + private GameObject m_starGo; + + private GameObject m_leftRedDot; + + private GameObject m_rightRedDot; + + private GameObject m_fourPos; + + private GameObject m_sixPos; + + private GameObject m_tipsGo; + + private GameObject m_redDotGo; + + private GameObject m_priseGo2; + + private List m_fourList; + + private List m_sixList; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private IUIDummy[] m_Snapshots = new IUIDummy[FirstPassDocument.MaxAvata]; + + private XDummy[] m_dummys = new XDummy[FirstPassDocument.MaxAvata]; + + protected override void Init() + { + base.Init(); + this.m_leftSpr = (base.PanelObject.transform.Find("Left").GetComponent("XUISprite") as IXUISprite); + this.m_rightSpr = (base.PanelObject.transform.Find("Right").GetComponent("XUISprite") as IXUISprite); + this.m_leftRedDot = this.m_leftSpr.gameObject.transform.Find("RedPoint").gameObject; + this.m_rightRedDot = this.m_rightSpr.gameObject.transform.Find("RedPoint").gameObject; + Transform transform = base.PanelObject.transform.Find("Btns"); + this.m_returnBtn = (transform.Find("BackBtn").GetComponent("XUIButton") as IXUIButton); + this.m_rankBtn = (transform.Find("RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_priseBtn = (transform.Find("PaiseBtn").GetComponent("XUIButton") as IXUIButton); + this.m_priseGo2 = transform.Find("PaiseBtn2").gameObject; + this.m_priseLab = (transform.Find("PaiseBtn/T").GetComponent("XUILabel") as IXUILabel); + this.m_redDotGo = transform.Find("PaiseBtn/RedPoint").gameObject; + transform = base.PanelObject.transform.Find("Tittles"); + this.m_tittleLab2 = (transform.Find("Tittle2").GetComponent("XUILabel") as IXUILabel); + this.m_tipsGo = base.PanelObject.transform.Find("Tips").gameObject; + this.m_starGo = transform.Find("Image").gameObject; + this.m_starLab = (this.m_starGo.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Item"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_fourList = new List(); + transform = base.PanelObject.transform.Find("FourPos"); + this.m_fourPos = transform.gameObject; + for (int i = 0; i < transform.childCount; i++) + { + this.m_fourList.Add(transform.GetChild(i).gameObject); + } + this.m_sixList = new List(); + transform = base.PanelObject.transform.Find("SixPos"); + this.m_sixPos = transform.gameObject; + for (int j = 0; j < transform.childCount; j++) + { + this.m_sixList.Add(transform.GetChild(j).gameObject); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_returnBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnClicked)); + this.m_rankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankClicked)); + this.m_priseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPriseClicked)); + this.m_leftSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnLeftClicked)); + this.m_rightSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRightClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("FirstPassTeamInfoHandler", 1); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + base.Return3DAvatarPool(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("FirstPassTeamInfoHandler", 1); + } + + public override void OnUnload() + { + base.Return3DAvatarPool(); + base.OnUnload(); + } + + private void FillContent() + { + this.SetDefault(); + this.m_leftSpr.gameObject.SetActive(this.m_doc.IsHadLastData); + this.m_rightSpr.gameObject.SetActive(this.m_doc.IsHadNextData); + this.m_doc.ReqFirstPassTopRoleInfo(this.m_doc.CurData.Id); + } + + public void RefreshUI() + { + bool flag = this.m_doc.CurData.PassTeamCount == 0; + if (flag) + { + this.m_priseGo2.SetActive(false); + this.m_priseBtn.gameObject.SetActive(false); + } + else + { + bool flag2 = !this.m_doc.CurData.IsGivedPrise; + if (flag2) + { + this.m_priseBtn.gameObject.SetActive(true); + this.m_priseGo2.SetActive(false); + } + else + { + this.m_priseBtn.gameObject.SetActive(false); + this.m_priseGo2.SetActive(true); + } + } + this.RefreshArrowRedDot(); + } + + public void FillAvata() + { + this.RefreshUI(); + bool flag = this.m_doc.CurData.TeamInfoList == null || this.m_doc.CurData.TeamInfoList.Count == 0; + if (flag) + { + this.SetDefault(); + } + else + { + this.FillTopLab(); + List list = null; + this.m_tipsGo.SetActive(false); + bool flag2 = this.m_doc.CurData.TeamInfoList.Count <= 4; + if (flag2) + { + this.m_fourPos.SetActive(true); + this.m_sixPos.SetActive(false); + list = this.m_fourList; + } + else + { + bool flag3 = this.m_doc.CurData.TeamInfoList.Count <= 6; + if (flag3) + { + this.m_fourPos.SetActive(false); + this.m_sixPos.SetActive(true); + list = this.m_sixList; + } + } + bool flag4 = list == null; + if (!flag4) + { + this.m_ItemPool.ReturnAll(false); + for (int i = 0; i < this.m_doc.CurData.TeamInfoList.Count; i++) + { + UnitAppearance unitAppearance = this.m_doc.CurData.TeamInfoList[i]; + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = list[i].transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = Vector3.zero; + IXUILabel ixuilabel = gameObject.transform.Find("Name/Lab").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(unitAppearance.unitName); + IXUISprite ixuisprite = gameObject.transform.Find("Name/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfIcon((int)(unitAppearance.unitType % 10u))); + ixuilabel = (gameObject.transform.Find("GuildName/Lab").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText((unitAppearance.outlook != null && unitAppearance.outlook.guild != null) ? unitAppearance.outlook.guild.name : ""); + ixuisprite = (gameObject.transform.Find("GuildName/Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetSprite((unitAppearance.outlook != null && unitAppearance.outlook.guild != null) ? unitAppearance.outlook.guild.icon.ToString() : ""); + this.m_Snapshots[i] = (gameObject.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + ixuisprite = (gameObject.transform.Find("Box").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = unitAppearance.uID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickavata)); + } + int j = this.m_doc.CurData.TeamInfoList.Count; + int num = this.m_Snapshots.Length; + while (j < num) + { + this.m_Snapshots[j] = null; + j++; + } + this.RefreshAvataData(); + } + } + } + + private void SetDefault() + { + this.m_starGo.SetActive(false); + this.m_tittleLab2.SetText(""); + this.m_fourPos.SetActive(false); + this.m_sixPos.SetActive(false); + this.m_tipsGo.SetActive(true); + } + + private void FillTopLab() + { + bool flag = this.m_doc.CurData == null; + if (!flag) + { + bool flag2 = this.m_doc.CurData.PassTimeStr != string.Empty; + if (flag2) + { + this.m_tittleLab2.SetText(string.Format("{0}{1}", this.m_doc.CurData.PassTimeStr, this.m_doc.CurData.SceneName)); + } + else + { + this.m_tittleLab2.SetText(""); + } + bool flag3 = this.m_doc.CurData.Star == -1; + if (flag3) + { + this.m_starGo.SetActive(false); + } + else + { + this.m_starGo.SetActive(true); + this.m_starLab.SetText(this.m_doc.CurData.Star.ToString()); + } + } + } + + private void RefreshArrowRedDot() + { + this.m_leftRedDot.SetActive(this.m_doc.InfoArrowRedDot(ArrowDirection.Left)); + this.m_rightRedDot.SetActive(this.m_doc.InfoArrowRedDot(ArrowDirection.Right)); + } + + private void RefreshAvataData() + { + int num = 0; + while (num < this.m_doc.CurData.TeamInfoList.Count && num < FirstPassDocument.MaxAvata) + { + bool flag = this.m_Snapshots[num] != null; + if (flag) + { + this.m_dummys[num] = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, this.m_doc.CurData.TeamInfoList[num], this.m_Snapshots[num], this.m_dummys[num]); + } + num++; + } + } + + private bool OnReturnClicked(IXUIButton sp) + { + base.SetVisible(false); + bool flag = this.m_doc.View != null; + if (flag) + { + this.m_doc.View.UiBackRefrsh(); + } + return true; + } + + private bool OnRankClicked(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + DlgBase.singleton.SetVisible(true, true); + result = true; + } + return result; + } + + private bool OnPriseClicked(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_doc.CurData == null; + if (flag2) + { + result = true; + } + else + { + bool isCanPrise = this.m_doc.CurData.IsCanPrise; + if (isCanPrise) + { + this.m_doc.ReqCommendFirstPass(this.m_doc.CurData.Id); + } + result = true; + } + } + return result; + } + + private void OnLeftClicked(IXUISprite sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + if (!flag) + { + bool isHadLastData = this.m_doc.IsHadLastData; + if (isHadLastData) + { + this.m_doc.CurData = this.m_doc.GetLastFirstPassData(); + this.FillContent(); + } + } + } + + private void OnRightClicked(IXUISprite sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + if (!flag) + { + bool isHadNextData = this.m_doc.IsHadNextData; + if (isHadNextData) + { + this.m_doc.CurData = this.m_doc.GetNextFirstPassData(); + this.FillContent(); + } + } + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + + private void OnClickavata(IXUISprite sp) + { + bool flag = sp == null; + if (!flag) + { + ulong id = sp.ID; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(id, false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FirstPassTeamInfoHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FirstPassTeamInfoHandler.cs.meta new file mode 100644 index 00000000..dcbe3bff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FirstPassTeamInfoHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8de90214e1d2e2b4e83b0f509a0d1863 +timeCreated: 1611404106 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FlowerActivityHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FlowerActivityHandler.cs new file mode 100644 index 00000000..ffbe4f6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FlowerActivityHandler.cs @@ -0,0 +1,82 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FlowerActivityHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/FlowerActivityFrame"; + } + } + + private IXUILabel m_Tip1; + + private IXUILabel m_Tip2; + + private IXUILabel m_AwardRankCount; + + private IXUIButton m_GoWeekRank; + + private Transform m_AwardRoot; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_Tip1 = (base.PanelObject.transform.Find("Main/Tip1").GetComponent("XUILabel") as IXUILabel); + this.m_Tip2 = (base.PanelObject.transform.Find("Main/Tip2").GetComponent("XUILabel") as IXUILabel); + this.m_AwardRankCount = (base.PanelObject.transform.Find("Main/Items/RankNum").GetComponent("XUILabel") as IXUILabel); + this.m_GoWeekRank = (base.PanelObject.transform.Find("Main/Btns/ViewRewardBtn").GetComponent("XUIButton") as IXUIButton); + this.m_AwardRoot = base.PanelObject.transform.Find("Main/Items"); + GameObject gameObject = base.PanelObject.transform.Find("Main/Items/Item").gameObject; + this.m_ItemPool.SetupPool(this.m_AwardRoot.gameObject, gameObject, 7u, false); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_Tip1.SetText(XSingleton.singleton.GetString("FLOWER_ACTIVITY_TIP1")); + this.m_Tip2.SetText(XSingleton.singleton.GetString("FLOWER_ACTIVITY_TIP3")); + this.m_AwardRankCount.SetText(XSingleton.singleton.GetString("FLOWER_ACTIVITY_AWARD_RANK")); + this.SetAwardsInfo(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_GoWeekRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoWeekRankClicked)); + } + + private bool OnGoWeekRankClicked(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Flower_Rank_Week, 0UL); + return true; + } + + private void SetAwardsInfo() + { + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + SeqListRef weekRankAward = specificDocument.GetWeekRankAward(1); + this.m_ItemPool.ReturnAll(false); + for (int i = 0; i < weekRankAward.Count; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_AwardRoot; + gameObject.name = i.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(this.m_ItemPool.TplWidth * i), 0f, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)weekRankAward[i, 0]); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, weekRankAward[i, 0], weekRankAward[i, 1], false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FlowerActivityHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FlowerActivityHandler.cs.meta new file mode 100644 index 00000000..0983b81b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FlowerActivityHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1bf8dcefa7b2e6d4e8801cccd25ebf9f +timeCreated: 1611403341 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ForgeAttrPreViewHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ForgeAttrPreViewHandler.cs new file mode 100644 index 00000000..255de326 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ForgeAttrPreViewHandler.cs @@ -0,0 +1,141 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ForgeAttrPreViewHandler : DlgHandlerBase + { + private XForgeDocument m_doc; + + private IXUISprite m_closeBtn; + + private IXUIScrollView m_scrollView; + + private GameObject m_detailGo; + + private GameObject m_WithoutAttrGo; + + private GameObject m_WithAttrGo; + + private XUIPool m_itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_doc = XForgeDocument.Doc; + this.m_closeBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_scrollView = (base.PanelObject.transform.Find("Detail").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_detailGo = base.PanelObject.transform.Find("Detail").gameObject; + this.m_itemPool.SetupPool(base.PanelObject, base.PanelObject.transform.Find("Tpl").gameObject, 3u, true); + this.m_WithoutAttrGo = base.PanelObject.transform.Find("Withoutattr").gameObject; + this.m_WithAttrGo = base.PanelObject.transform.Find("Withattr").gameObject; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + this.m_itemPool.ReturnAll(false); + base.OnHide(); + } + + public override void OnUnload() + { + this.m_doc.View = null; + base.OnUnload(); + } + + private void FillContent() + { + this.m_itemPool.ReturnAll(true); + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag = itemByUID == null; + if (!flag) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + bool flag2 = xequipItem.forgeAttrInfo.ForgeAttr.Count == 0; + if (flag2) + { + this.m_WithoutAttrGo.SetActive(true); + this.m_WithAttrGo.SetActive(false); + } + else + { + this.m_WithoutAttrGo.SetActive(false); + this.m_WithAttrGo.SetActive(true); + } + EquipSlotAttrDatas attrData = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)itemByUID.itemID); + bool flag3 = attrData == null; + if (!flag3) + { + EquipSlotAttrData attrData2 = attrData.GetAttrData(1); + bool flag4 = attrData2 == null; + if (!flag4) + { + int num = 0; + for (int i = 0; i < attrData2.AttrDataList.Count; i++) + { + EquipAttrData equipAttrData = attrData2.AttrDataList[i]; + bool flag5 = equipAttrData.Prob == 0u; + if (!flag5) + { + string text = XAttributeCommon.GetAttrStr((int)equipAttrData.AttrId); + bool flag6 = XSingleton.singleton.XPlayerData != null; + if (flag6) + { + ProfessionTable.RowData byProfID = XSingleton.singleton.RoleInfo.GetByProfID(XSingleton.singleton.XPlayerData.BasicTypeID); + bool flag7 = byProfID != null; + if (flag7) + { + List list; + bool flag8 = this.m_doc.AttackTypeDic.TryGetValue((int)byProfID.AttackType, out list); + if (flag8) + { + for (int j = 0; j < list.Count; j++) + { + bool flag9 = (long)list[j] == (long)((ulong)equipAttrData.AttrId); + if (flag9) + { + text = string.Empty; + break; + } + } + } + } + } + bool flag10 = text == string.Empty; + if (!flag10) + { + GameObject gameObject = this.m_itemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_detailGo.transform; + gameObject.transform.localPosition = this.m_itemPool.TplPos + new Vector3((float)(this.m_itemPool.TplWidth * (num % 2)), (float)(-(float)this.m_itemPool.TplHeight * (num / 2)), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("AttrName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + num++; + } + } + } + } + } + } + } + + private void OnCloseClicked(IXUISprite spr) + { + base.SetVisible(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ForgeAttrPreViewHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ForgeAttrPreViewHandler.cs.meta new file mode 100644 index 00000000..2e6d47dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ForgeAttrPreViewHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4679cdc789ec4e478b99eb29eb7fcbd +timeCreated: 1611404501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ForgeMainHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ForgeMainHandler.cs new file mode 100644 index 00000000..c2b0c9d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ForgeMainHandler.cs @@ -0,0 +1,766 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ForgeMainHandler : DlgHandlerBase + { + public ForgeSuccessHandler ForgeSuccessHandler + { + get + { + return this.m_forgeSuccessHandler; + } + } + + public ForgeReplaceHandler ForgeReplaceHandler + { + get + { + return this.m_forgeReplaceHandler; + } + } + + protected override string FileName + { + get + { + return "ItemNew/ForgeMainHandler"; + } + } + + public string ForgeSucPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_forgeSucPath); + if (flag) + { + this.m_forgeSucPath = XSingleton.singleton.GetValue("ForgeSucEffectPath"); + } + return this.m_forgeSucPath; + } + } + + public string ForgeLostPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_forgeLostPath); + if (flag) + { + this.m_forgeLostPath = XSingleton.singleton.GetValue("ForgeLostEffectPath"); + } + return this.m_forgeLostPath; + } + } + + private XForgeDocument m_doc; + + private bool m_bIsPlayingEffect = false; + + private float m_delayTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private uint m_effectToken = 0u; + + private bool m_bStoneIsEnough = false; + + private bool m_bMetailIsEnough = false; + + private XFx m_ForgeSucceedEffect; + + private XFx m_ForgeLostEffect; + + private IXUIButton m_closeBtn; + + private IXUIButton m_detailBtn; + + private IXUIButton m_forgeBtn; + + private IXUIButton m_helpBtn; + + private IXUISprite m_checkBoxSpr; + + private IXUILabel m_rateLab; + + private IXUILabel m_attrValueLab; + + private IXUILabel m_tipsLab; + + private IXUILabel m_tipsLab1; + + private IXUILabel m_emptyLab; + + private IXUILabel m_refreshLab; + + private GameObject m_attrGo; + + private GameObject m_popGo; + + private GameObject m_resultNewGo; + + private GameObject m_topItemGo; + + private GameObject m_redefinStoneGo; + + private Transform m_effectsTra; + + private XUIPool m_needItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private ForgeAttrPreViewHandler m_forgeAttrPreviewHandler; + + private ForgeSuccessHandler m_forgeSuccessHandler; + + private ForgeReplaceHandler m_forgeReplaceHandler; + + private int m_lessItemId = 0; + + private int m_lessStoneId = 0; + + private string m_forgeSucPath = string.Empty; + + private string m_forgeLostPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.m_doc = XForgeDocument.Doc; + this.m_doc.View = this; + this.m_closeBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_detailBtn = (base.PanelObject.transform.Find("DetailBtn").GetComponent("XUIButton") as IXUIButton); + this.m_forgeBtn = (base.PanelObject.transform.Find("ForgeBtn").GetComponent("XUIButton") as IXUIButton); + this.m_helpBtn = (base.PanelObject.transform.Find("Tittle/Help").GetComponent("XUIButton") as IXUIButton); + this.m_attrGo = base.PanelObject.transform.Find("Attr").gameObject; + this.m_popGo = base.PanelObject.transform.Find("Pop").gameObject; + this.m_resultNewGo = base.PanelObject.transform.Find("ResultNew").gameObject; + this.m_topItemGo = base.PanelObject.transform.Find("Top").gameObject; + this.m_effectsTra = base.PanelObject.transform.Find("Effect"); + Transform transform = base.PanelObject.transform.Find("Special"); + this.m_checkBoxSpr = (transform.Find("Toggle").GetComponent("XUISprite") as IXUISprite); + this.m_tipsLab = (transform.Find("Tips").GetComponent("XUILabel") as IXUILabel); + this.m_redefinStoneGo = transform.Find("DaZaoShi").gameObject; + transform = base.PanelObject.transform.Find("Result"); + this.m_refreshLab = (transform.Find("RefreshLab").GetComponent("XUILabel") as IXUILabel); + this.m_rateLab = (transform.Find("RateLab").GetComponent("XUILabel") as IXUILabel); + transform = transform.Find("AttrItem"); + this.m_attrValueLab = (transform.Find("NowValue").GetComponent("XUILabel") as IXUILabel); + this.m_emptyLab = (transform.Find("Empty").GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Bottom"); + this.m_tipsLab1 = (transform.Find("Tips1").GetComponent("XUILabel") as IXUILabel); + transform = transform.Find("Items"); + this.m_needItemPool.SetupPool(transform.gameObject, transform.Find("Item").gameObject, 2u, true); + DlgHandlerBase.EnsureCreate(ref this.m_forgeAttrPreviewHandler, this.m_attrGo, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_forgeSuccessHandler, this.m_popGo, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_forgeReplaceHandler, this.m_resultNewGo, null, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + this.m_forgeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickForge)); + this.m_detailBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDetail)); + this.m_helpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + this.m_checkBoxSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickToggle)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + this.m_doc.Clear(); + this.DeActiveEffect(); + this.m_bIsPlayingEffect = false; + XSingleton.singleton.KillTimer(this.m_effectToken); + DlgBase.singleton.OnPopHandlerSetVisible(false, null); + DlgBase.singleton.StackRefresh(); + bool flag = DlgBase.singleton._equipHandler != null; + if (flag) + { + DlgBase.singleton._equipHandler.SelectEquip(0UL); + DlgBase.singleton._equipHandler.RegisterItemClickEvents(null); + } + base.OnHide(); + } + + public override void OnUnload() + { + this.m_doc.View = null; + bool flag = this.m_forgeAttrPreviewHandler != null; + if (flag) + { + DlgHandlerBase.EnsureUnload(ref this.m_forgeAttrPreviewHandler); + this.m_forgeAttrPreviewHandler = null; + } + bool flag2 = this.m_forgeSuccessHandler != null; + if (flag2) + { + DlgHandlerBase.EnsureUnload(ref this.m_forgeSuccessHandler); + this.m_forgeSuccessHandler = null; + } + bool flag3 = this.m_forgeReplaceHandler != null; + if (flag3) + { + DlgHandlerBase.EnsureUnload(ref this.m_forgeReplaceHandler); + this.m_forgeReplaceHandler = null; + } + bool flag4 = this.m_ForgeSucceedEffect != null; + if (flag4) + { + XSingleton.singleton.DestroyFx(this.m_ForgeSucceedEffect, true); + this.m_ForgeSucceedEffect = null; + } + bool flag5 = this.m_ForgeLostEffect != null; + if (flag5) + { + XSingleton.singleton.DestroyFx(this.m_ForgeLostEffect, true); + this.m_ForgeLostEffect = null; + } + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.DeActiveEffect(); + GameObject gameObject = this.m_checkBoxSpr.transform.Find("selected").gameObject; + bool flag = !this.m_doc.IsUsedStone; + if (flag) + { + this.m_checkBoxSpr.ID = 0UL; + gameObject.SetActive(false); + } + else + { + this.m_checkBoxSpr.ID = 1UL; + gameObject.SetActive(true); + } + bool flag2 = DlgBase.singleton._equipHandler != null; + if (flag2) + { + DlgBase.singleton._equipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this.OnEquipClicked)); + } + this.FillContent(); + } + + public override void StackRefresh() + { + this.RefreshData(); + base.StackRefresh(); + } + + public void ShowUI() + { + this.FillContent(); + } + + public void ShowEffect(bool isSucceed) + { + this.DeActiveEffect(); + if (isSucceed) + { + this.PlayForgeSucceedEffect(); + } + else + { + this.PlayForgeLostEffect(); + } + } + + public void ShowReplaceHandler() + { + bool flag = this.m_forgeReplaceHandler != null && !this.m_forgeReplaceHandler.IsVisible(); + if (flag) + { + this.m_forgeReplaceHandler.SetVisible(true); + } + } + + private void FillContent() + { + this.m_tipsLab1.SetText(XSingleton.singleton.GetString("ForgeTips1")); + this.m_emptyLab.SetText(XSingleton.singleton.GetString("NoForgeAttr")); + bool flag = this.m_doc.EquipRow == null; + if (flag) + { + this.m_tipsLab.SetText(string.Format(XSingleton.singleton.GetString("ForgeTips"), this.m_doc.EquipRow.ForgeHighRate)); + } + else + { + this.m_tipsLab.SetText(string.Format(XSingleton.singleton.GetString("ForgeTips"), 100)); + } + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag2 = itemByUID == null; + if (!flag2) + { + XSingleton.singleton.DrawItem(this.m_topItemGo, itemByUID); + IXUISprite ixuisprite = this.m_topItemGo.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this.m_doc.CurUid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedHadItemClicked)); + XEquipItem xequipItem = itemByUID as XEquipItem; + this.FillAttribute(xequipItem); + this.SetSelectStatus(); + this.RefreshOnSelectRedfinStone(); + this.FillNeedItem(); + bool flag3 = xequipItem.forgeAttrInfo.UnSavedAttrid != 0u && xequipItem.forgeAttrInfo.ForgeAttr.Count > 0; + if (flag3) + { + this.ShowReplaceHandler(); + } + } + } + + private void FillAttribute(XEquipItem item) + { + bool flag = item.forgeAttrInfo.ForgeAttr.Count == 0; + if (flag) + { + this.m_emptyLab.gameObject.SetActive(true); + this.m_attrValueLab.gameObject.SetActive(false); + } + else + { + this.m_emptyLab.gameObject.SetActive(false); + this.m_attrValueLab.gameObject.SetActive(true); + EquipSlotAttrDatas attrData = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)item.itemID); + bool flag2 = attrData == null; + if (!flag2) + { + string color = attrData.GetColor(1, item.forgeAttrInfo.ForgeAttr[0]); + string arg = string.Format("[{0}]{1}[-]", color, XAttributeCommon.GetAttrStr((int)item.forgeAttrInfo.ForgeAttr[0].AttrID)); + string arg2 = string.Format("[{0}]{1}[-]", color, item.forgeAttrInfo.ForgeAttr[0].AttrValue); + this.m_attrValueLab.SetText(string.Format("{0} {1}", arg, arg2)); + } + } + } + + private void FillNeedItem() + { + bool flag = this.m_doc.EquipRow == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("m_doc.EquipRow is null", null, null, null, null, null); + } + else + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag2 = itemByUID == null; + if (!flag2) + { + this.m_needItemPool.ReturnAll(false); + this.m_bMetailIsEnough = true; + bool flag3 = (itemByUID as XEquipItem).forgeAttrInfo.ForgeAttr.Count == 0; + SeqListRef seqListRef; + if (flag3) + { + seqListRef = this.m_doc.EquipRow.ForgeNeedItem; + } + else + { + seqListRef = this.m_doc.EquipRow.ForgeNeedItemAfter; + } + for (int i = 0; i < (int)seqListRef.count; i++) + { + GameObject gameObject = this.m_needItemPool.FetchGameObject(false); + gameObject.transform.localPosition = this.m_needItemPool.TplPos + new Vector3((float)(i * this.m_needItemPool.TplWidth), 0f, 0f); + int num = (int)seqListRef[i, 0]; + int num2 = (int)seqListRef[i, 1]; + int num3 = (int)XBagDocument.BagDoc.GetItemCount(num); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, num, num2, true); + IXUILabel ixuilabel = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + bool flag4 = num3 >= num2; + if (flag4) + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_ENOUGH_FMT"), num3, num2)); + } + else + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT"), num3, num2)); + } + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num); + bool flag5 = num2 > num3; + if (flag5) + { + bool bMetailIsEnough = this.m_bMetailIsEnough; + if (bMetailIsEnough) + { + this.m_lessItemId = num; + } + this.m_bMetailIsEnough = false; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetItemAccess)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedItemClicked)); + } + } + } + } + } + + private void SetSelectStatus() + { + bool isSelect = this.m_doc.IsSelect; + if (!isSelect) + { + bool flag = this.m_doc.EquipRow == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("m_doc.EquipRow is null", null, null, null, null, null); + } + else + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag2 = itemByUID == null; + if (!flag2) + { + int count = (itemByUID as XEquipItem).forgeAttrInfo.ForgeAttr.Count; + bool flag3 = count == 0; + SeqRef seqRef; + if (flag3) + { + seqRef = this.m_doc.EquipRow.ForgeSpecialItem; + } + else + { + seqRef = this.m_doc.EquipRow.ForgeSpecialItemAfter; + } + int itemid = (int)seqRef[0]; + int num = (int)seqRef[1]; + int num2 = (int)XBagDocument.BagDoc.GetItemCount(itemid); + bool flag4 = num2 < num; + if (flag4) + { + this.m_doc.IsUsedStone = false; + this.m_checkBoxSpr.ID = 0UL; + } + else + { + this.m_doc.IsUsedStone = true; + this.m_checkBoxSpr.ID = 1UL; + this.m_doc.IsSelect = true; + } + } + } + } + } + + private void RefreshOnSelectRedfinStone() + { + bool flag = this.m_doc.EquipRow == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("m_doc.EquipRow is null", null, null, null, null, null); + } + else + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag2 = itemByUID == null; + if (!flag2) + { + int count = (itemByUID as XEquipItem).forgeAttrInfo.ForgeAttr.Count; + bool flag3 = count == 0; + SeqRef seqRef; + uint num; + uint num2; + if (flag3) + { + seqRef = this.m_doc.EquipRow.ForgeSpecialItem; + num = (uint)this.m_doc.EquipRow.ForgeLowRate; + num2 = (uint)this.m_doc.EquipRow.ForgeHighRate; + } + else + { + seqRef = this.m_doc.EquipRow.ForgeSpecialItemAfter; + num = (uint)this.m_doc.EquipRow.ForgeLowRateAfter; + num2 = (uint)this.m_doc.EquipRow.ForgeHighRateAfter; + } + int num3 = (int)seqRef[0]; + int num4 = (int)seqRef[1]; + int num5 = (int)XBagDocument.BagDoc.GetItemCount(num3); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_redefinStoneGo, num3, num4, true); + IXUILabel ixuilabel = this.m_redefinStoneGo.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + bool flag4 = num5 >= num4; + if (flag4) + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_ENOUGH_FMT"), num5, num4)); + } + else + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT"), num5, num4)); + } + IXUISprite ixuisprite = this.m_redefinStoneGo.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetGrey(this.m_doc.IsUsedStone); + IXUISprite ixuisprite2 = this.m_redefinStoneGo.transform.Find("Quality").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetGrey(this.m_doc.IsUsedStone); + GameObject gameObject = this.m_checkBoxSpr.transform.Find("selected").gameObject; + gameObject.SetActive(this.m_doc.IsUsedStone); + ixuisprite.ID = (ulong)((long)num3); + bool flag5 = num5 < num4; + if (flag5) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetItemAccess)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.SelectReDefineStone)); + } + this.m_lessStoneId = num3; + this.m_bStoneIsEnough = (num5 >= num4); + bool flag6 = !this.m_doc.IsUsedStone; + int num6; + if (flag6) + { + this.m_bStoneIsEnough = true; + num6 = (int)(100u - num); + bool flag7 = count != 0; + if (flag7) + { + this.m_rateLab.SetText(string.Format(XSingleton.singleton.GetString("RefreshForgeOriAttr"), XSingleton.singleton.StringCombine(num.ToString(), "%"))); + } + else + { + this.m_rateLab.SetText(string.Format(XSingleton.singleton.GetString("ActivityForgeOriAttr"), XSingleton.singleton.StringCombine(num.ToString(), "%"))); + } + } + else + { + num6 = (int)(100u - num2); + bool flag8 = count != 0; + if (flag8) + { + this.m_rateLab.SetText(string.Format(XSingleton.singleton.GetString("RefreshForgeOriAttrFull"), XSingleton.singleton.StringCombine(num2.ToString(), "%"))); + } + else + { + this.m_rateLab.SetText(string.Format(XSingleton.singleton.GetString("ActivityForgeOriAttrFull"), XSingleton.singleton.StringCombine(num2.ToString(), "%"))); + } + } + bool flag9 = num6 > 0 && count != 0; + if (flag9) + { + this.m_refreshLab.gameObject.SetActive(true); + this.m_refreshLab.SetText(string.Format(XSingleton.singleton.GetString("SaveForgeOriAttr"), num6)); + } + else + { + this.m_refreshLab.gameObject.SetActive(false); + } + } + } + } + + private void PlayForgeSucceedEffect() + { + bool flag = this.m_ForgeSucceedEffect == null; + if (flag) + { + this.m_ForgeSucceedEffect = XSingleton.singleton.CreateFx(this.ForgeSucPath, null, true); + } + else + { + this.m_ForgeSucceedEffect.SetActive(true); + } + this.m_ForgeSucceedEffect.Play(this.m_effectsTra, Vector3.zero, Vector3.one, 1f, true, false); + this.m_bIsPlayingEffect = true; + XSingleton.singleton.KillTimer(this.m_effectToken); + this.m_effectToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.DelayShowTipsUI), null); + } + + private void DelayShowTipsUI(object o = null) + { + this.m_bIsPlayingEffect = false; + } + + private void PlayForgeLostEffect() + { + bool flag = this.m_ForgeLostEffect == null; + if (flag) + { + this.m_ForgeLostEffect = XSingleton.singleton.CreateFx(this.ForgeLostPath, null, true); + } + else + { + this.m_ForgeLostEffect.SetActive(true); + } + this.m_ForgeLostEffect.Play(this.m_effectsTra, Vector3.zero, Vector3.one, 1f, true, false); + } + + private void DeActiveEffect() + { + bool flag = this.m_ForgeSucceedEffect != null; + if (flag) + { + this.m_ForgeSucceedEffect.SetActive(false); + } + bool flag2 = this.m_ForgeLostEffect != null; + if (flag2) + { + this.m_ForgeLostEffect.SetActive(false); + } + } + + public void OnEquipClicked(IXUISprite iSp) + { + this.m_doc.SelectEquip(iSp.ID); + } + + private bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Item_Forge); + return true; + } + + private bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnClickForge(IXUIButton btn) + { + bool bIsPlayingEffect = this.m_bIsPlayingEffect; + bool result; + if (bIsPlayingEffect) + { + result = true; + } + else + { + bool flag = this.SetButtonCool(this.m_delayTime); + if (flag) + { + result = true; + } + else + { + bool flag2 = !this.m_bStoneIsEnough; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("RedefineStoneNotEnough"), "fece00"); + XSingleton.singleton.ShowItemAccess(this.m_lessStoneId, null); + result = true; + } + else + { + bool flag3 = !this.m_bMetailIsEnough; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FoodNotEnough"), "fece00"); + XSingleton.singleton.ShowItemAccess(this.m_lessItemId, null); + result = true; + } + else + { + this.m_doc.ReqForgeEquip(ForgeOpType.Forge_Equip); + result = true; + } + } + } + } + return result; + } + + private bool OnClickDetail(IXUIButton btn) + { + bool bIsPlayingEffect = this.m_bIsPlayingEffect; + bool result; + if (bIsPlayingEffect) + { + result = true; + } + else + { + bool flag = this.SetButtonCool(this.m_delayTime); + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_forgeAttrPreviewHandler != null; + if (flag2) + { + this.m_forgeAttrPreviewHandler.SetVisible(true); + } + result = true; + } + } + return result; + } + + private void OnClickToggle(IXUISprite spr) + { + GameObject gameObject = spr.transform.Find("selected").gameObject; + bool flag = spr.ID == 0UL; + if (flag) + { + spr.ID = 1UL; + gameObject.SetActive(true); + this.m_doc.IsUsedStone = true; + } + else + { + spr.ID = 0UL; + gameObject.SetActive(false); + this.m_doc.IsUsedStone = false; + } + this.RefreshOnSelectRedfinStone(); + } + + private void OnGetItemAccess(IXUISprite iSp) + { + this.DeActiveEffect(); + int itemid = (int)iSp.ID; + XSingleton.singleton.ShowItemAccess(itemid, null); + } + + private void OnSelectedItemClicked(IXUISprite iSp) + { + XItem mainItem = XBagDocument.MakeXItem((int)iSp.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, iSp, false, 0u); + } + + private void SelectReDefineStone(IXUISprite iSp) + { + XSingleton.singleton.OnItemClick(iSp); + DlgBase.singleton.ItemSelector.Hide(); + } + + private void OnSelectedHadItemClicked(IXUISprite iSp) + { + ulong id = iSp.ID; + XSingleton.singleton.ShowTooltipDialog(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(id), null, iSp, false, 0u); + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ForgeMainHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ForgeMainHandler.cs.meta new file mode 100644 index 00000000..85f0e502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ForgeMainHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04b96a87f10e313459dbd3e52ad4df88 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingHandler.cs new file mode 100644 index 00000000..044e5baa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingHandler.cs @@ -0,0 +1,477 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FriendsWeddingHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Wedding/FriendsWeddingFrame"; + } + } + + private XWeddingDocument m_doc = XWeddingDocument.Doc; + + private IUIDummy[] m_Snapshots = new IUIDummy[XWeddingDocument.MaxAvata]; + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private GameObject m_emptyGo; + + private GameObject m_obtainedGo; + + private IXUIButton m_gotoBtn; + + private IXUILabel m_noPartnerTips; + + private IXUILabel m_ruleLab; + + private XUIPool m_emptyItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_ShopBtn; + + private IXUIButton m_livenessBtn; + + private IXUIButton m_levelBtn; + + private IXUILabel m_levelText; + + private IXUIButton m_weddingTeamBtn; + + private IXUILabel m_buffName; + + private XUIPool m_itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_CloseValue; + + private GameObject m_CloseValueMax; + + private IXUIButton m_CloseValueHelp; + + private IXUIProgress m_CloseValueProgress; + + private GameObject m_CloseValueHelpPanel; + + private IXUIButton m_HelpClose; + + private IXUILabel m_HelpContent; + + private IXUILabel m_LoverLevel; + + private IXUIButton m_LoverPrivilegeBtn; + + private IXUIButton m_LoverPrivilegeClose; + + private GameObject m_PrivilegeFrame; + + private FriendsWeddingPrivilegeHandler m_PrivilegeHandler; + + protected override void Init() + { + base.Init(); + this.m_doc.View = this; + this.m_emptyGo = base.PanelObject.transform.Find("Bg/Empty").gameObject; + this.m_obtainedGo = base.PanelObject.transform.Find("Bg/Obtained").gameObject; + Transform transform = this.m_emptyGo.transform.Find("PartnerPrior/Grid"); + this.m_emptyItemPool.SetupPool(transform.gameObject, transform.Find("Tpl").gameObject, 3u, false); + this.m_gotoBtn = (this.m_emptyGo.transform.Find("ButtonR").GetComponent("XUIButton") as IXUIButton); + this.m_noPartnerTips = (this.m_emptyGo.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_ruleLab = (this.m_emptyGo.transform.Find("RulePanel/RuleLab").GetComponent("XUILabel") as IXUILabel); + this.m_weddingTeamBtn = (this.m_emptyGo.transform.Find("Buttonf").GetComponent("XUIButton") as IXUIButton); + this.m_livenessBtn = (this.m_obtainedGo.transform.Find("LivenessBtn").GetComponent("XUIButton") as IXUIButton); + this.m_levelBtn = (this.m_obtainedGo.transform.Find("BreakupBtn").GetComponent("XUIButton") as IXUIButton); + this.m_levelText = (this.m_levelBtn.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_ShopBtn = (this.m_obtainedGo.transform.Find("BtnShop").GetComponent("XUIButton") as IXUIButton); + transform = this.m_obtainedGo.transform.Find("ModleParent"); + this.m_itemPool.SetupPool(transform.gameObject, transform.Find("Tpl").gameObject, 4u, false); + this.m_buffName = (base.PanelObject.transform.Find("Bg/Obtained/FriendBonusFrame/Active/Buff").GetComponent("XUILabel") as IXUILabel); + this.m_CloseValueMax = this.m_obtainedGo.transform.Find("LoverDetail/Progress/Max").gameObject; + this.m_CloseValue = (this.m_obtainedGo.transform.Find("LoverDetail/Progress/Exp").GetComponent("XUILabel") as IXUILabel); + this.m_CloseValueHelp = (this.m_obtainedGo.transform.Find("LoverDetail/Help").GetComponent("XUIButton") as IXUIButton); + this.m_CloseValueProgress = (this.m_obtainedGo.transform.Find("LoverDetail/Progress").GetComponent("XUIProgress") as IXUIProgress); + this.m_LoverLevel = (this.m_obtainedGo.transform.Find("LoverDetail/Level/Value").GetComponent("XUILabel") as IXUILabel); + this.m_LoverPrivilegeBtn = (this.m_obtainedGo.transform.Find("LoverDetail/Go").GetComponent("XUIButton") as IXUIButton); + this.m_CloseValueHelpPanel = this.m_obtainedGo.transform.Find("Help").gameObject; + this.m_CloseValueHelpPanel.SetActive(false); + this.m_HelpClose = (this.m_obtainedGo.transform.Find("Help/Close").GetComponent("XUIButton") as IXUIButton); + this.m_HelpContent = (this.m_obtainedGo.transform.Find("Help/Content").GetComponent("XUILabel") as IXUILabel); + this.m_LoverPrivilegeClose = (this.m_obtainedGo.transform.Find("Privilege/Close").GetComponent("XUIButton") as IXUIButton); + this.m_PrivilegeFrame = this.m_obtainedGo.transform.Find("Privilege").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_PrivilegeHandler, this.m_PrivilegeFrame, null, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_gotoBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGoToBtn)); + this.m_weddingTeamBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWeddingTeamBtn)); + this.m_livenessBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickLivenessBtn)); + this.m_levelBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickLevelBtn)); + this.m_ShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopClick)); + this.m_CloseValueHelp.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseValueHelpBtnClicked)); + this.m_LoverPrivilegeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPrivilegeBtnClicked)); + this.m_HelpClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpCloseBtnClicked)); + this.m_LoverPrivilegeClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPrivilegeCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("FriendsWeddingHandler", 1); + this.m_doc.ReqPartnerDetailInfo(); + this.m_ShopBtn.gameObject.SetActive(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Mall_WeddingLover)); + this.m_HelpContent.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeddingLoverCloseHelp"))); + this.CheckMarriageLevelUp(); + } + + protected override void OnHide() + { + base.Return3DAvatarPool(); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("FriendsWeddingHandler", 1); + } + + public override void OnUnload() + { + base.Return3DAvatarPool(); + this.m_doc.View = null; + DlgHandlerBase.EnsureUnload(ref this.m_PrivilegeHandler); + this.m_PrivilegeHandler = null; + base.OnUnload(); + } + + private void FillContent() + { + this.m_emptyGo.SetActive(false); + this.m_obtainedGo.SetActive(false); + bool flag = this.m_doc.PartnerList.Count == 0; + if (flag) + { + this.FillNoPartner(); + } + else + { + this.m_doc.ReqPartnerDetailInfo(); + } + } + + public void RefreshUi() + { + this.m_emptyGo.SetActive(false); + this.m_obtainedGo.SetActive(false); + bool flag = this.m_doc.PartnerList.Count == 0; + if (flag) + { + this.FillNoPartner(); + } + else + { + this.FillHadPartner(); + } + } + + private void FillNoPartner() + { + this.m_emptyGo.SetActive(true); + this.m_emptyItemPool.ReturnAll(false); + string[] array = XSingleton.singleton.GetString("WeddingWelfare").Split(new char[] + { + '|' + }); + for (int i = 0; i < array.Length; i++) + { + GameObject gameObject = this.m_emptyItemPool.FetchGameObject(false); + gameObject.SetActive(true); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)i * this.m_emptyItemPool.TplHeight), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(array[i])); + } + this.m_ruleLab.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeddingRule"))); + this.m_noPartnerTips.SetText(XSingleton.singleton.GetString("NoWeddingTips")); + } + + private void FillHadPartner() + { + this.m_obtainedGo.SetActive(true); + this.RefreshUIRedPoint(); + this.m_itemPool.ReturnAll(false); + int num = 0; + for (int i = 0; i < this.m_doc.PartnerList.Count; i++) + { + GameObject gameObject = this.m_itemPool.FetchGameObject(false); + gameObject.SetActive(true); + gameObject.transform.localPosition = new Vector3((float)(this.m_itemPool.TplWidth * num), 0f, 0f); + this.FillAvataItem(gameObject, this.m_doc.PartnerList[i], num); + num++; + } + base.Return3DAvatarPool(); + base.Alloc3DAvatarPool("PartnerMainHandler", 1); + int j = this.m_doc.PartnerList.Count; + int num2 = this.m_Snapshots.Length; + while (j < num2) + { + this.m_Snapshots[j] = null; + j++; + } + this.RefreshAvataData(); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int dayCount = specificDocument.GetDayCount(TeamLevelType.TeamLevelWedding, null); + int dayMaxCount = specificDocument.GetDayMaxCount(TeamLevelType.TeamLevelWedding, null); + this.m_levelText.SetText(XStringDefineProxy.GetString("WeddingLevel", new object[] + { + dayCount, + dayMaxCount + })); + WeddingType myWeddingType = XWeddingDocument.Doc.GetMyWeddingType(); + string[] array = null; + WeddingType weddingType = myWeddingType; + if (weddingType != WeddingType.WeddingType_Normal) + { + if (weddingType == WeddingType.WeddingType_Luxury) + { + array = XSingleton.singleton.GetAndSeparateValue("PartnerSkill2", XGlobalConfig.SequenceSeparator); + } + } + else + { + array = XSingleton.singleton.GetAndSeparateValue("PartnerSkill", XGlobalConfig.SequenceSeparator); + } + bool flag = array != null && array.Length == 2; + if (flag) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(int.Parse(array[0]), int.Parse(array[1])); + bool flag2 = buffData != null; + if (flag2) + { + this.m_buffName.SetText(buffData.BuffName); + } + } + this.RefreshMarriageLevelValue(); + } + + private void FillAvataItem(GameObject go, RoleOutLookBrief partner, int count) + { + bool flag = partner == null || go == null || partner == null; + if (!flag) + { + IXUISprite ixuisprite = go.transform.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfIcon((int)((int)partner.profession % 10))); + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(partner.name); + ixuilabel = (go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(partner.level.ToString()); + ixuilabel = (go.transform.Find("Battlepoint").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(partner.ppt.ToString()); + ixuisprite = (go.transform.Find("Bg/BgSmall").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = partner.roleid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickavata)); + this.m_Snapshots[count] = (go.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + } + } + + private void RefreshAvataData() + { + int num = 0; + for (int i = 0; i < this.m_doc.PartnerList.Count; i++) + { + bool flag = num >= XWeddingDocument.MaxAvata; + if (flag) + { + break; + } + bool flag2 = this.m_Snapshots[num] != null; + if (flag2) + { + XDummy xdummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, this.m_doc.PartnerList[i].roleid, (uint)XFastEnumIntEqualityComparer.ToInt(this.m_doc.PartnerList[i].profession), this.m_doc.PartnerList[i].outlook, this.m_Snapshots[num], null); + num++; + } + } + } + + public void RefreshUIRedPoint() + { + this.m_livenessBtn.gameObject.transform.Find("RedPoint").gameObject.SetActive(this.m_doc.IsHadLivenessRedPoint); + } + + public void CheckMarriageLevelUp() + { + bool flag = this.m_doc.MarriageLevelUp > 0; + if (flag) + { + MarriageLevel.RowData byLevel = XWeddingDocument.MarriageLevelTable.GetByLevel(this.m_doc.MarriageLevelUp); + bool flag2 = byLevel != null; + if (flag2) + { + bool flag3 = byLevel.PrerogativeID != 0u || byLevel.PrivilegeBuffs[0] > 0u; + if (flag3) + { + DlgBase.singleton.SetVisible(true, true); + } + } + } + } + + public void RefreshMarriageLevelValue() + { + bool flag = this.m_doc.MarriageLevel != null; + if (flag) + { + int key = this.m_doc.MarriageLevel.marriageLevel + 1; + MarriageLevel.RowData byLevel = XWeddingDocument.MarriageLevelTable.GetByLevel(key); + bool flag2 = byLevel != null; + if (flag2) + { + this.m_CloseValueMax.SetActive(false); + this.m_CloseValue.gameObject.SetActive(true); + this.m_CloseValue.SetText(string.Format("{0}/{1}", this.m_doc.MarriageLevel.marriageLevelValue, byLevel.NeedIntimacyValue)); + this.m_CloseValueProgress.value = ((byLevel.NeedIntimacyValue == 0) ? 1f : ((float)this.m_doc.MarriageLevel.marriageLevelValue / (float)byLevel.NeedIntimacyValue)); + } + else + { + this.m_CloseValueMax.SetActive(true); + this.m_CloseValue.gameObject.SetActive(false); + this.m_CloseValueProgress.value = 1f; + } + this.m_LoverLevel.SetText(string.Format("{0}/{1}", this.m_doc.MarriageLevel.marriageLevel, XWeddingDocument.MaxMarriageLevel)); + } + } + + private bool OnClickGoToBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.CloseAllUI(); + uint num = 0u; + XNpcInfo npcInfo = XSingleton.singleton.NpcInfo; + for (int i = 0; i < npcInfo.Table.Length; i++) + { + bool flag2 = npcInfo.Table[i].LinkSystem == 702; + if (flag2) + { + num = npcInfo.Table[i].ID; + break; + } + } + bool flag3 = num == 0u; + if (flag3) + { + XSingleton.singleton.AddErrorLog("had not find partner npc", null, null, null, null, null); + result = true; + } + else + { + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc(num); + result = true; + } + } + return result; + } + + private bool OnWeddingTeamBtn(IXUIButton btn) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(XSingleton.singleton.GetInt("WeddingTeamLevel")); + return true; + } + + private bool OnClickLivenessBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool OnClickLevelBtn(IXUIButton btn) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(XSingleton.singleton.GetInt("WeddingLevel")); + return true; + } + + private void OnClickavata(IXUISprite sp) + { + bool flag = sp == null; + if (!flag) + { + ulong id = sp.ID; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(id, false); + } + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + + private bool OnShopClick(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_WeddingLover, 0UL); + return true; + } + + private bool OnCloseValueHelpBtnClicked(IXUIButton btn) + { + this.m_CloseValueHelpPanel.SetActive(true); + return true; + } + + private bool OnHelpCloseBtnClicked(IXUIButton btn) + { + this.m_CloseValueHelpPanel.SetActive(false); + return true; + } + + private bool OnPrivilegeCloseClicked(IXUIButton btn) + { + this.m_PrivilegeHandler.SetVisible(false); + return false; + } + + private bool OnPrivilegeBtnClicked(IXUIButton btn) + { + this.m_PrivilegeHandler.SetVisible(true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingHandler.cs.meta new file mode 100644 index 00000000..8681d544 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1aa9981a6431344fac36f5dd5a13c7f +timeCreated: 1611404592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpBehaviour.cs new file mode 100644 index 00000000..cd780ac4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpBehaviour.cs @@ -0,0 +1,41 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class FriendsWeddingLevelUpBehaviour : DlgBehaviourBase + { + public IXUILabel m_LevelTip; + + public IXUIButton m_GetBtn; + + public GameObject m_ItemDesc; + + public IXUILabel m_SkillName; + + public IXUISprite m_SkillIcon; + + public GameObject m_Skill; + + public IXUILabel m_ItemName; + + public Transform m_ItemIconTran; + + public GameObject m_Item; + + private void Awake() + { + this.m_LevelTip = (base.transform.Find("open/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_GetBtn = (base.transform.Find("open/OK").GetComponent("XUIButton") as IXUIButton); + this.m_ItemDesc = base.transform.Find("open/desc").gameObject; + this.m_Skill = base.transform.Find("open/Skill").gameObject; + this.m_SkillName = (base.transform.Find("open/Skill/tmp/Name").GetComponent("XUILabel") as IXUILabel); + this.m_SkillIcon = (base.transform.Find("open/Skill/tmp/SkillIcon").GetComponent("XUISprite") as IXUISprite); + this.m_Item = base.transform.Find("open/items").gameObject; + this.m_ItemName = (base.transform.Find("open/items/tmp/Name").GetComponent("XUILabel") as IXUILabel); + this.m_ItemIconTran = base.transform.Find("open/items/tmp"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpBehaviour.cs.meta new file mode 100644 index 00000000..7f3f6755 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd8afe4a983393b449079998b769872a +timeCreated: 1611404555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpView.cs b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpView.cs new file mode 100644 index 00000000..5445661e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpView.cs @@ -0,0 +1,90 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FriendsWeddingLevelUpView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/Wedding/WeddingLoverLevelUpDlg"; + } + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = XWeddingDocument.Doc.MarriageLevelUp > 0; + if (flag) + { + base.uiBehaviour.m_LevelTip.SetText(XStringDefineProxy.GetString("WeddingLoverLevelUpTip", new object[] + { + XWeddingDocument.Doc.MarriageLevelUp + })); + MarriageLevel.RowData byLevel = XWeddingDocument.MarriageLevelTable.GetByLevel(XWeddingDocument.Doc.MarriageLevelUp); + bool flag2 = byLevel != null; + if (flag2) + { + bool flag3 = byLevel.PrerogativeID > 0u; + if (flag3) + { + base.uiBehaviour.m_Skill.SetActive(false); + base.uiBehaviour.m_Item.SetActive(true); + base.uiBehaviour.m_ItemDesc.SetActive(true); + PrerogativeContent.RowData prerogativeByID = XPrerogativeDocument.GetPrerogativeByID(byLevel.PrerogativeID); + PreSettingNodeHandler.SetupPrerogativeTpl(base.uiBehaviour.m_ItemIconTran, prerogativeByID); + string @string = XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("PRE_TYPE_NAME", prerogativeByID.Type.ToString())); + base.uiBehaviour.m_ItemName.SetText(@string); + } + else + { + bool flag4 = byLevel.PrivilegeBuffs[0] > 0u; + if (flag4) + { + base.uiBehaviour.m_Skill.SetActive(true); + base.uiBehaviour.m_Item.SetActive(false); + base.uiBehaviour.m_ItemDesc.SetActive(false); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)byLevel.PrivilegeBuffs[0], (int)byLevel.PrivilegeBuffs[1]); + bool flag5 = buffData != null; + if (flag5) + { + base.uiBehaviour.m_SkillName.SetText(buffData.BuffName); + } + string[] array = byLevel.BuffIcon.Split(new char[] + { + '=' + }); + base.uiBehaviour.m_SkillIcon.SetSprite(array[1], array[0], false); + } + } + } + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_GetBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + } + + private bool OnCloseBtnClicked(IXUIButton btn) + { + XWeddingDocument specificDocument = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + specificDocument.GetMarriagePrivilege(); + this.SetVisibleWithAnimation(false, null); + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpView.cs.meta new file mode 100644 index 00000000..30fd4db3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingLevelUpView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b77bd6ce54868a4495918b746d06865 +timeCreated: 1611403799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingPrivilegeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingPrivilegeHandler.cs new file mode 100644 index 00000000..f757a587 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingPrivilegeHandler.cs @@ -0,0 +1,152 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FriendsWeddingPrivilegeHandler : DlgHandlerBase + { + private XWeddingDocument m_doc = XWeddingDocument.Doc; + + private IXUILabel m_CurrLevel; + + private IXUILabel m_NextLevel; + + private IXUIWrapContent m_CurrWrapContent; + + private IXUIScrollView m_CurrScrollView; + + private GameObject m_NextOnlyOne; + + private GameObject m_MaxLevelText; + + private GameObject m_CurrEmpty; + + private List m_PrivilegeList = new List(); + + protected override void Init() + { + base.Init(); + this.m_CurrLevel = (base.PanelObject.transform.Find("Bg/Curr/Level").GetComponent("XUILabel") as IXUILabel); + this.m_NextLevel = (base.PanelObject.transform.Find("Bg/Next/Level").GetComponent("XUILabel") as IXUILabel); + this.m_MaxLevelText = base.PanelObject.transform.Find("Bg/Next/MaxLevel").gameObject; + this.m_MaxLevelText.SetActive(false); + this.m_CurrEmpty = base.PanelObject.transform.Find("T2").gameObject; + this.m_CurrEmpty.SetActive(false); + this.m_CurrWrapContent = (base.PanelObject.transform.Find("Bg/Curr/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_CurrScrollView = (base.PanelObject.transform.Find("Bg/Curr/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_NextOnlyOne = base.PanelObject.transform.Find("Bg/Next/OnlyOne").gameObject; + this.m_NextOnlyOne.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_CurrWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.CurrPrivilegeWrapListUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_PrivilegeList.Clear(); + bool flag = this.m_doc.MarriageLevel != null; + if (flag) + { + this.m_CurrLevel.SetText(this.m_doc.MarriageLevel.marriageLevel.ToString()); + int key = this.m_doc.MarriageLevel.marriageLevel + 1; + MarriageLevel.RowData byLevel = XWeddingDocument.MarriageLevelTable.GetByLevel(key); + bool flag2 = byLevel != null; + if (flag2) + { + this.m_NextLevel.SetText(key.ToString()); + this.SetNextPrivilegeInfo(byLevel); + } + this.m_NextLevel.gameObject.SetActive(byLevel != null); + this.m_MaxLevelText.gameObject.SetActive(byLevel == null); + this.m_NextOnlyOne.SetActive(byLevel != null); + for (int i = 1; i <= this.m_doc.MarriageLevel.marriageLevel; i++) + { + MarriageLevel.RowData byLevel2 = XWeddingDocument.MarriageLevelTable.GetByLevel(i); + bool flag3 = byLevel2.PrerogativeID != 0u || byLevel2.PrivilegeBuffs[0] > 0u; + if (flag3) + { + this.m_PrivilegeList.Add(byLevel2); + } + } + this.m_CurrEmpty.SetActive(this.m_PrivilegeList.Count == 0); + this.m_CurrWrapContent.SetContentCount(this.m_PrivilegeList.Count, false); + this.m_CurrScrollView.ResetPosition(); + } + } + + private void SetNextPrivilegeInfo(MarriageLevel.RowData rowData) + { + IXUILabel ixuilabel = this.m_NextOnlyOne.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = this.m_NextOnlyOne.transform.Find("Desc").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = this.m_NextOnlyOne.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetColor(Color.white); + bool flag = rowData.PrerogativeID > 0u; + if (flag) + { + PrerogativeContent.RowData prerogativeByID = XPrerogativeDocument.GetPrerogativeByID(rowData.PrerogativeID); + PreSettingNodeHandler.SetupPrerogativeTpl(this.m_NextOnlyOne.transform, prerogativeByID); + string @string = XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("PRE_TYPE_NAME", prerogativeByID.Type.ToString())); + ixuilabel.SetText(@string); + } + else + { + bool flag2 = rowData.PrivilegeBuffs[0] > 0u; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.GetString("WeddingBuffDesc")); + string[] array = rowData.BuffIcon.Split(new char[] + { + '=' + }); + ixuisprite.SetSprite(array[1], array[0], false); + } + } + ixuilabel2.SetText(rowData.Desc); + } + + private void CurrPrivilegeWrapListUpdated(Transform item, int index) + { + bool flag = index >= this.m_PrivilegeList.Count; + if (!flag) + { + IXUILabel ixuilabel = item.Find("Desc").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = item.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetColor(Color.white); + MarriageLevel.RowData rowData = this.m_PrivilegeList[index]; + bool flag2 = rowData.PrerogativeID > 0u; + if (flag2) + { + PrerogativeContent.RowData prerogativeByID = XPrerogativeDocument.GetPrerogativeByID(rowData.PrerogativeID); + PreSettingNodeHandler.SetupPrerogativeTpl(item, prerogativeByID); + string @string = XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("PRE_TYPE_NAME", prerogativeByID.Type.ToString())); + ixuilabel.SetText(@string); + } + else + { + bool flag3 = rowData.PrivilegeBuffs[0] > 0u; + if (flag3) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)rowData.PrivilegeBuffs[0], (int)rowData.PrivilegeBuffs[1]); + bool flag4 = buffData != null; + if (flag4) + { + ixuilabel.SetText(buffData.BuffName); + } + string[] array = rowData.BuffIcon.Split(new char[] + { + '=' + }); + ixuisprite.SetSprite(array[1], array[0], false); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingPrivilegeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingPrivilegeHandler.cs.meta new file mode 100644 index 00000000..819bb2ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FriendsWeddingPrivilegeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f0395444a828494ca9777cb858eaff0 +timeCreated: 1611403811 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FrozenSealHandler.cs b/Client/Assets/Scripts/XMainClient/UI/FrozenSealHandler.cs new file mode 100644 index 00000000..064a18f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FrozenSealHandler.cs @@ -0,0 +1,365 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class FrozenSealHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/CrushingSeal"; + } + } + + protected XUIPool _frozenSealPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected XUIPool _rewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected Dictionary _itemsDic = new Dictionary(); + + protected List _sortList = new List(); + + protected uint curActid = 0u; + + protected IXUIScrollView _scrollview; + + protected IXUILabel _timeLabel; + + public class FrozenSealSortData + { + public ulong id = 0UL; + + public FrozenSealState state = FrozenSealState.None; + } + + protected override void Init() + { + base.Init(); + this.curActid = XOperatingActivityDocument.Doc.CurSealActID; + bool flag = this.curActid > 0u; + if (flag) + { + this.InitUIPool(); + this.InitScrollView(); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + uint num = this.curActid; + this.curActid = XOperatingActivityDocument.Doc.CurSealActID; + bool flag = num > 0u && this.curActid != num; + if (flag) + { + this.Clear(); + this.InitScrollView(); + } + bool flag2 = this.curActid > 0u; + if (flag2) + { + this.RefreshAllItem(); + } + } + + protected bool OnFetch(IXUIButton btn) + { + RpcC2G_GetSpActivityReward rpcC2G_GetSpActivityReward = new RpcC2G_GetSpActivityReward(); + rpcC2G_GetSpActivityReward.oArg.actid = this.curActid; + rpcC2G_GetSpActivityReward.oArg.taskid = (uint)btn.ID; + XSingleton.singleton.Send(rpcC2G_GetSpActivityReward); + return true; + } + + protected bool OnJump(IXUIButton btn) + { + uint num = (uint)btn.ID; + List sealDatas = XOperatingActivityDocument.Doc.SealDatas; + for (int i = 0; i < sealDatas.Count; i++) + { + bool flag = sealDatas[i].taskid == num; + if (flag) + { + SuperActivityTask.RowData rowData = sealDatas[i]; + bool flag2 = rowData.arg != null && rowData.arg.Length != 0; + if (flag2) + { + bool flag3 = rowData.arg[0] == 1; + if (flag3) + { + DlgBase.singleton.SelectChapter(rowData.arg[1], (uint)rowData.arg[2]); + } + else + { + bool flag4 = rowData.arg[0] == 2; + if (flag4) + { + DlgBase.singleton.ShowView(rowData.arg[1]); + } + } + } + else + { + XSingleton.singleton.OpenSystem((int)rowData.jump); + } + return true; + } + } + return false; + } + + protected void InitItemInfo(Transform item, SuperActivityTask.RowData data) + { + IXUILabel ixuilabel = item.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data.title); + Transform transform = item.Find("Fetch"); + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)data.taskid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFetch)); + Transform transform2 = item.Find("Go"); + IXUIButton ixuibutton2 = transform2.GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = (ulong)data.taskid; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJump)); + IXUILabel ixuilabel2 = item.Find("Go/Tip").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = item.Find("Go/LinkTo").GetComponent("XUILabel") as IXUILabel; + transform.gameObject.SetActive(false); + bool flag = data.jump > 0u; + if (flag) + { + this._sortList.Add(new FrozenSealHandler.FrozenSealSortData + { + id = (ulong)data.taskid, + state = FrozenSealState.LeaveFor + }); + ixuilabel2.gameObject.SetActive(true); + ixuilabel3.gameObject.SetActive(false); + } + else + { + this._sortList.Add(new FrozenSealHandler.FrozenSealSortData + { + id = (ulong)data.taskid, + state = FrozenSealState.UnFinish + }); + ixuibutton2.SetEnable(false, false); + ixuilabel3.gameObject.SetActive(true); + ixuilabel2.gameObject.SetActive(false); + } + item.Find("Fetched").gameObject.SetActive(false); + Transform parent = item.Find("ItemReward"); + for (int i = 0; i < data.items.Count; i++) + { + GameObject gameObject = this._rewardPool.FetchGameObject(false); + gameObject.transform.parent = parent; + gameObject.transform.localPosition = new Vector3((float)(this._rewardPool.TplWidth * i), 0f, 0f); + uint num = data.items[i, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num, (int)data.items[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + + protected void RefreshItemState(uint taskid, ActivityTaskState state) + { + Transform parent = null; + bool flag = this._itemsDic.TryGetValue((ulong)taskid, out parent); + if (flag) + { + Transform childByName = this.GetChildByName(parent, "Fetch"); + Transform childByName2 = this.GetChildByName(parent, "Go"); + Transform childByName3 = this.GetChildByName(parent, "Fetched"); + bool flag2 = state == ActivityTaskState.Uncomplete; + if (!flag2) + { + bool flag3 = state == ActivityTaskState.Complete; + if (flag3) + { + childByName2.gameObject.SetActive(false); + childByName.gameObject.SetActive(true); + } + else + { + bool flag4 = state == ActivityTaskState.Fetched; + if (flag4) + { + childByName.gameObject.SetActive(false); + childByName2.gameObject.SetActive(false); + childByName3.gameObject.SetActive(true); + } + } + } + } + } + + protected void UpdateItemState(uint taskid, ActivityTaskState state) + { + for (int i = 0; i < this._sortList.Count; i++) + { + bool flag = this._sortList[i].id == (ulong)taskid; + if (flag) + { + bool flag2 = state == ActivityTaskState.Complete; + if (flag2) + { + this._sortList[i].state = FrozenSealState.CanFetch; + } + else + { + bool flag3 = state == ActivityTaskState.Fetched; + if (flag3) + { + this._sortList[i].state = FrozenSealState.Fetched; + } + } + } + } + } + + protected FrozenSealState GetFrozenSealStateById(ulong id) + { + return FrozenSealState.CanFetch; + } + + protected Transform GetChildByName(Transform parent, string name) + { + foreach (object obj in parent) + { + Transform transform = (Transform)obj; + bool flag = transform.name.Equals(name); + if (flag) + { + return transform; + } + } + XSingleton.singleton.AddErrorLog("wrong child name", null, null, null, null, null); + return null; + } + + protected void RefreshAllItem() + { + this.UpdateTime(); + this.RefreshAllStates(); + this.SortListItems(); + this._scrollview.SetPosition(0f); + } + + public void UpdateTime() + { + int remainDays = XTempActivityDocument.Doc.GetRemainDays(this.curActid); + bool flag = remainDays == 1; + if (flag) + { + this._timeLabel.SetText(XStringDefineProxy.GetString("CarnivalLast")); + } + else + { + this._timeLabel.SetText(XStringDefineProxy.GetString("CarnivalEnd", new object[] + { + remainDays + })); + } + } + + protected void UpdateStates() + { + for (int i = 0; i < XOperatingActivityDocument.Doc.SealDatas.Count; i++) + { + SuperActivityTask.RowData rowData = XOperatingActivityDocument.Doc.SealDatas[i]; + FrozenSealHandler.FrozenSealSortData frozenSealSortData = this._sortList[i]; + uint activityState = XTempActivityDocument.Doc.GetActivityState(this.curActid, rowData.taskid); + bool flag = activityState == 1u; + if (flag) + { + frozenSealSortData.state = FrozenSealState.CanFetch; + } + else + { + bool flag2 = activityState == 2u; + if (flag2) + { + frozenSealSortData.state = FrozenSealState.Fetched; + } + } + } + } + + protected void RefreshAllStates() + { + List sealDatas = XOperatingActivityDocument.Doc.SealDatas; + for (int i = 0; i < sealDatas.Count; i++) + { + uint activityState = XTempActivityDocument.Doc.GetActivityState(this.curActid, sealDatas[i].taskid); + this.RefreshItemState(sealDatas[i].taskid, (ActivityTaskState)activityState); + this.UpdateItemState(sealDatas[i].taskid, (ActivityTaskState)activityState); + } + } + + protected int SortItemList(FrozenSealHandler.FrozenSealSortData x1, FrozenSealHandler.FrozenSealSortData x2) + { + int num = (x1.state.CompareTo(x2.state) == 0) ? x1.id.CompareTo(x2.id) : x1.state.CompareTo(x2.state); + return -num; + } + + public void SortListItems() + { + this._sortList.Sort(new Comparison(this.SortItemList)); + for (int i = 0; i < this._sortList.Count; i++) + { + this._itemsDic[this._sortList[i].id].name = i.ToString("D2"); + this._itemsDic[this._sortList[i].id].localPosition = new Vector3(this._frozenSealPool.TplPos.x, this._frozenSealPool.TplPos.y - (float)(this._frozenSealPool.TplHeight * i), 0f); + } + } + + public void InitScrollView() + { + this._scrollview = (base.transform.Find("Scrollview").GetComponent("XUIScrollView") as IXUIScrollView); + this._timeLabel = (base.transform.Find("CountDown/Time").GetComponent("XUILabel") as IXUILabel); + this._frozenSealPool.ReturnAll(false); + this._rewardPool.ReturnAll(false); + this._scrollview.SetPosition(0f); + List sealDatas = XOperatingActivityDocument.Doc.SealDatas; + for (int i = 0; i < sealDatas.Count; i++) + { + GameObject gameObject = this._frozenSealPool.FetchGameObject(false); + this.InitItemInfo(gameObject.transform, sealDatas[i]); + this._itemsDic.Add((ulong)sealDatas[i].taskid, gameObject.transform); + gameObject.transform.localPosition = new Vector3(this._frozenSealPool.TplPos.x, this._frozenSealPool.TplPos.y - (float)(this._frozenSealPool.TplHeight * i), 0f); + } + } + + public void RefreshItemWithTaskidAndState(uint taskId, ActivityTaskState state) + { + this.UpdateItemState(taskId, state); + this.RefreshItemState(taskId, state); + this.SortListItems(); + } + + public void Clear() + { + this._itemsDic.Clear(); + this._sortList.Clear(); + this._rewardPool.ReturnAll(false); + this._frozenSealPool.ReturnAll(false); + } + + private void InitUIPool() + { + Transform transform = base.transform.Find("Scrollview/FirstPassFsItem"); + this._frozenSealPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + Transform transform2 = base.transform.Find("Scrollview/ItemTpl"); + this._rewardPool.SetupPool(base.transform.gameObject, transform2.gameObject, 2u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FrozenSealHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FrozenSealHandler.cs.meta new file mode 100644 index 00000000..93418219 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FrozenSealHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b047241c72750bc4d9b29c49a8e200fa +timeCreated: 1611404350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FrozenSealState.cs b/Client/Assets/Scripts/XMainClient/UI/FrozenSealState.cs new file mode 100644 index 00000000..5795e7bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FrozenSealState.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient.UI +{ + public enum FrozenSealState + { + None, + Fetched, + UnFinish, + LeaveFor, + CanFetch + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FrozenSealState.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FrozenSealState.cs.meta new file mode 100644 index 00000000..a6d5d6b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FrozenSealState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c61808cf2d2b7ef4d836822efdf7a07e +timeCreated: 1611404507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/FunctionDef.cs b/Client/Assets/Scripts/XMainClient/UI/FunctionDef.cs new file mode 100644 index 00000000..47826660 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FunctionDef.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient.UI +{ + public enum FunctionDef + { + ZHANLI, + DENGJI, + FASHION, + JINBI, + LONGBI, + EQUIP, + QIANGHUA, + EMBLEM, + JADE, + SKILL, + END + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/FunctionDef.cs.meta b/Client/Assets/Scripts/XMainClient/UI/FunctionDef.cs.meta new file mode 100644 index 00000000..3fcf772a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/FunctionDef.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d1e393f0f8a47c14abcb2f6adeeaba5d +timeCreated: 1611404593 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGBattleMemberBase.cs b/Client/Assets/Scripts/XMainClient/UI/GVGBattleMemberBase.cs new file mode 100644 index 00000000..a62e837d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGBattleMemberBase.cs @@ -0,0 +1,317 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GVGBattleMemberBase : IGVGBattleMember + { + private Transform transform; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ScrollView; + + private IXUILabelSymbol m_GuildName; + + private XGuildArenaBattleDocument _Doc; + + private XGuildDocument _GuildDoc; + + private List mRoles; + + private int mIndex = 1; + + private bool isSelfGuild = false; + + private ulong needRemoveID; + + public void Setup(GameObject sv, int index) + { + this.mIndex = index; + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.transform = sv.transform; + this.m_GuildName = (this.transform.Find("Title/Title1").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_ScrollView = (this.transform.Find("MemberScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (this.transform.Find("MemberScrollView/MemberList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapItemUpdateEventHandler)); + } + + private void FormatRole(ref List roles) + { + bool flag = roles == null; + if (flag) + { + roles = new List(); + } + int battleSignNumber = this._Doc.GetBattleSignNumber(); + bool flag2 = roles.Count < battleSignNumber; + if (flag2) + { + int count = roles.Count; + for (int i = count; i < battleSignNumber; i++) + { + GmfRole gmfRole = new GmfRole(); + gmfRole.rolename = XSingleton.singleton.GetString("GUILD_ARENA_TAB_PERSON"); + gmfRole.index = i; + gmfRole.roleID = 0UL; + gmfRole.profession = 0; + roles.Add(gmfRole); + } + } + } + + public void ReFreshData(GVGBattleInfo battleInfo) + { + bool flag = battleInfo.Base == null || battleInfo.Group == null; + if (!flag) + { + bool flag2 = this.mRoles == null; + if (flag2) + { + this.mRoles = new List(); + } + this.mRoles.Clear(); + this.mRoles.AddRange(battleInfo.Group); + this.FormatRole(ref this.mRoles); + this.isSelfGuild = (this._GuildDoc.bInGuild && this._GuildDoc.BasicData.uid == battleInfo.Base.guildid); + this.m_WrapContent.SetContentCount(this.mRoles.Count, false); + this.m_ScrollView.ResetPosition(); + bool flag3 = this._Doc.IsGCF(); + if (flag3) + { + this.m_GuildName.InputText = XStringDefineProxy.GetString("CROSS_GVG_GUILDNAME", new object[] + { + battleInfo.Base.serverid, + battleInfo.Base.guildname + }); + } + else + { + this.m_GuildName.InputText = battleInfo.Base.guildname; + } + } + } + + private void WrapItemUpdateEventHandler(Transform t, int index) + { + bool flag = index < 0 || index >= this.mRoles.Count; + if (!flag) + { + GmfRole gmfRole = this.mRoles[index]; + bool flag2 = gmfRole == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("XMainClient.UI.GuildArenaBattleMemberPanel.WrapItemUpdateEventHandler is null ", null, null, null, null, null); + } + else + { + IXUILabel ixuilabel = t.Find("Status/Num").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Status/Battle").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Fight").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("kick").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = t.Find("job").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("icon").gameObject; + ixuilabel.SetText((index + 1).ToString()); + ixuilabel3.SetText(gmfRole.rolename); + ixuisprite3.SetAlpha(1f); + ixuisprite3.SetSprite(XSingleton.singleton.GetProfIcon(gmfRole.profession)); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRemove)); + ixuisprite2.ID = gmfRole.roleID; + bool flag3 = gmfRole.roleID == 0UL; + if (flag3) + { + ixuisprite.gameObject.SetActive(false); + ixuilabel2.gameObject.SetActive(false); + ixuisprite2.gameObject.SetActive(false); + gameObject.SetActive(false); + ixuilabel.SetVisible(true); + ixuilabel.SetColor(Color.white); + ixuilabel3.SetColor(Color.white); + ixuilabel2.SetColor(Color.white); + bool flag4 = ixuisprite3 != null; + if (flag4) + { + ixuisprite3.SetAlpha(0f); + } + } + else + { + ixuisprite.gameObject.SetActive(true); + ixuilabel2.gameObject.SetActive(true); + ixuisprite2.gameObject.SetActive(true); + gameObject.SetActive(true); + this.SetupOtherMemberInfo(t, gmfRole); + bool flag5 = this.isSelfGuild; + XGuildArenaBattleDocument.GuildArenaSection mArenaSection = this._Doc.mArenaSection; + if (mArenaSection != XGuildArenaBattleDocument.GuildArenaSection.Prepare) + { + if (mArenaSection == XGuildArenaBattleDocument.GuildArenaSection.Battle) + { + flag5 &= this.SetMatchFightState(gmfRole, ixuisprite, ixuilabel, ixuilabel3, ixuilabel2); + } + } + else + { + flag5 &= this.SetPrepareFightState(gmfRole, ixuisprite, ixuilabel, ixuilabel3); + } + bool flag6 = this._GuildDoc.Position != GuildPosition.GPOS_LEADER && this._GuildDoc.Position != GuildPosition.GPOS_VICELEADER; + if (flag6) + { + flag5 = false; + } + else + { + bool flag7 = this._GuildDoc.Position == GuildPosition.GPOS_VICELEADER; + if (flag7) + { + bool flag8 = gmfRole.guildpos == 0 || gmfRole.guildpos == 1; + if (flag8) + { + flag5 = false; + } + } + } + bool flag9 = gmfRole.roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag9) + { + flag5 = false; + } + bool flag10 = this._Doc.MyReadyType == XGuildArenaBattleDocument.ReadyType.Observer; + if (flag10) + { + flag5 = false; + } + ixuisprite2.gameObject.SetActive(flag5); + } + } + } + } + + protected virtual void SetupOtherMemberInfo(Transform t, GmfRole role) + { + } + + private void OnRemove(IXUISprite button) + { + this.needRemoveID = button.ID; + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_ARENA_KICK"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnRemoveQuery)); + } + + private bool OnRemoveQuery(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + bool flag = this.needRemoveID > 0UL; + if (flag) + { + this._Doc.ReadyReq(this.needRemoveID, GMFReadyType.GMF_READY_KICK); + } + this.needRemoveID = 0UL; + return true; + } + + private bool SetPrepareFightState(GmfRole roleInfo, IXUISprite sprite, IXUILabel rank, IXUILabel name) + { + rank.gameObject.SetActive(true); + sprite.gameObject.SetActive(false); + Color color = Color.white; + bool flag = roleInfo.roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + color = Color.green; + } + name.SetColor(color); + return true; + } + + private bool SetMatchFightState(GmfRole roleInfo, IXUISprite sprite, IXUILabel rank, IXUILabel name, IXUILabel fight) + { + bool result = true; + Color color = Color.white; + bool flag = roleInfo.roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + color = Color.green; + } + switch (roleInfo.state) + { + case GuildMatchFightState.GUILD_MF_WAITING: + { + sprite.gameObject.SetActive(false); + rank.gameObject.SetActive(true); + bool flag2 = this._GuildDoc.Position != GuildPosition.GPOS_LEADER && this._GuildDoc.Position != GuildPosition.GPOS_VICELEADER; + result = !flag2; + break; + } + case GuildMatchFightState.GUILD_MF_FIGHTING: + { + sprite.gameObject.SetActive(true); + rank.gameObject.SetActive(false); + bool flag3 = this.mIndex == 2; + string sprite2; + if (flag3) + { + sprite2 = "guildpvp_icon_4"; + color = new Color(0.92f, 0.23f, 0.23f); + } + else + { + sprite2 = "guildpvp_icon_3"; + color= new Color(0f, 0.658f, 1f); + } + sprite.SetSprite(sprite2); + result = false; + break; + } + case GuildMatchFightState.GUILD_MF_FAILED: + { + sprite.gameObject.SetActive(true); + rank.gameObject.SetActive(false); + string sprite2 = "guildpvp_icon_0"; + sprite.SetSprite(sprite2); + color = Color.white; + result = false; + break; + } + } + rank.SetColor(color); + name.SetColor(color); + fight.SetColor(color); + return result; + } + + public void OnUpdate() + { + } + + public void SetActive(bool active) + { + bool flag = this.transform != null; + if (flag) + { + this.transform.gameObject.SetActive(active); + } + } + + public bool IsActive() + { + return this.transform != null && this.transform.gameObject.activeSelf; + } + + public void Recycle() + { + bool flag = this.mRoles != null; + if (flag) + { + this.mRoles.Clear(); + this.mRoles = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGBattleMemberBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGBattleMemberBase.cs.meta new file mode 100644 index 00000000..d8376d65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGBattleMemberBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6eb60297399f2241aa724c70982d662 +timeCreated: 1611404747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBase.cs b/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBase.cs new file mode 100644 index 00000000..846b270f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBase.cs @@ -0,0 +1,599 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GVGBattlePrepareBase : DlgBase, IGVGBattlePrepare, IXUIDlg where T : IXUIDlg, new() where V : GVGBattlePrepareBehaviour + { + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected XGuildArenaBattleDocument _Doc; + + private int m_leftTime = 0; + + private uint m_leftTimerID = 0u; + + private int blue_label_num = 0; + + private int red_label_num = 0; + + private bool blueState = true; + + private XElapseTimer m_lastTime = new XElapseTimer(); + + private List inspires = null; + + protected override void OnShow() + { + base.OnShow(); + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + this.SetResurgence(0); + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + this.RefreshSection(); + this.blueState = true; + this.OnLeftToogle(null); + this.OnInitInspire(); + } + + private void OnInitInspire() + { + int num = 0; + float value = 0f; + bool progress = this.GetProgress(this._Doc.BlueInfo.Inspire, out num, out value); + if (progress) + { + base.SetXUILable("Battle/Encourage/Blue/Time", XSingleton.singleton.StringCombine("x", num.ToString())); + base.uiBehaviour.mBlueCourageBar.Value = value; + } + bool progress2 = this.GetProgress(this._Doc.RedInfo.Inspire, out num, out value); + if (progress2) + { + base.SetXUILable("Battle/Encourage/Red/Time", XSingleton.singleton.StringCombine("x", num.ToString())); + base.uiBehaviour.mRedCourageBar.Value = value; + } + } + + protected override void OnHide() + { + base.OnHide(); + this.SetResurgence(0); + this.ResetCommonUI(); + } + + protected override void OnUnload() + { + bool flag = base.uiBehaviour.mBluePanel != null; + if (flag) + { + base.uiBehaviour.mBluePanel.Recycle(); + base.uiBehaviour.mBluePanel = null; + } + this.ResetCommonUI(); + base.OnUnload(); + } + + public override void OnUpdate() + { + this.UpdateCountTime(); + this.UpdateInspireTime(); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.LeftTime.SetVisible(false); + } + } + else + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.WarTimeLabel.SetVisible(false); + DlgBase.singleton.LeftTimeLabel.SetVisible(false); + } + } + } + + protected override void OnLoad() + { + base.uiBehaviour.mInspireCD = new GuildArenaInspireCD(base.uiBehaviour.mEncourageButton.transform); + base.uiBehaviour.mBattleDuelInfo = new GuildArenaBattleDuelInfo(); + base.uiBehaviour.mBattleDuelInfo.Init(base.uiBehaviour.mCombatInfo); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mLetmedieUpSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnUp)); + base.uiBehaviour.mLetmedieDownSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnDown)); + base.uiBehaviour.mEncourageSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnInspireReq)); + base.uiBehaviour.mHelpSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelp)); + base.uiBehaviour.mLeftCloseSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnLeftToogle)); + } + + public override void OnXNGUIClick(GameObject obj, string path) + { + base.OnXNGUIClick(obj, path); + } + + private void OnLeftToogle(IXUISprite spr) + { + bool flag = this.blueState; + if (flag) + { + this.m_uiBehaviour.mBlueView.transform.localPosition = new Vector3(-413f, 49f, 0f); + base.uiBehaviour.mUpSprite.transform.localPosition = new Vector3(-406f, -160f, 0f); + base.uiBehaviour.mDownSprite.transform.localPosition = new Vector3(-406f, -160f, 0f); + base.uiBehaviour.mDownTips.transform.localPosition = new Vector3(-406f, -112f, 0f); + base.uiBehaviour.mUpTips.transform.localPosition = new Vector3(-406f, -112f, 0f); + this.blueState = false; + } + else + { + this.m_uiBehaviour.mBlueView.transform.localPosition = new Vector3(-665f, 49f, 0f); + base.uiBehaviour.mUpSprite.transform.localPosition = new Vector3(-740f, -160f, 0f); + base.uiBehaviour.mDownSprite.transform.localPosition = new Vector3(-740f, -160f, 0f); + base.uiBehaviour.mUpTips.transform.localPosition = new Vector3(-740f, -112f, 0f); + base.uiBehaviour.mDownTips.transform.localPosition = new Vector3(-740f, -112f, 0f); + this.blueState = true; + } + } + + public void OnEnterSceneFinally() + { + bool flag = !base.IsLoaded(); + if (!flag) + { + this.RefreshSection(); + } + } + + private void RefreshCommonUI() + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.LeftTime.SetVisible(false); + } + } + else + { + bool flag2 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SkillHandler.SetVisible(false); + DlgBase.singleton.IndicateHandler.SetVisible(false); + DlgBase.singleton.WarTimeLabel.SetVisible(false); + DlgBase.singleton.LeftTimeLabel.SetVisible(false); + } + } + } + + private void ResetCommonUI() + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SkillHandler.SetVisible(true); + DlgBase.singleton.IndicateHandler.SetVisible(true); + DlgBase.singleton.WarTimeLabel.SetVisible(true); + DlgBase.singleton.LeftTimeLabel.SetVisible(true); + } + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.LeftTime.SetVisible(true); + } + } + } + + public void RefreshSection() + { + this.RefreshCommonUI(); + XGuildArenaBattleDocument.GuildArenaSection mArenaSection = this._Doc.mArenaSection; + if (mArenaSection != XGuildArenaBattleDocument.GuildArenaSection.Prepare) + { + if (mArenaSection == XGuildArenaBattleDocument.GuildArenaSection.Battle) + { + base.uiBehaviour.mGoPrepare.SetActive(false); + base.uiBehaviour.mGoBattle.SetActive(true); + this.ShowOrHideLetmedie(false); + base.uiBehaviour.mRoundLabel.SetVisible(this._Doc.IsGPR() || this._Doc.IsGCF()); + base.uiBehaviour.mRoundLabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_ROUNDLABEL", new object[] + { + this._Doc.Round + 1u + })); + } + } + else + { + base.uiBehaviour.mGoPrepare.SetActive(true); + base.uiBehaviour.mGoBattle.SetActive(false); + this.ShowOrHideLetmedie(true); + base.uiBehaviour.mRoundLabel.SetVisible(false); + } + this.OnSectionShow(); + } + + private void ShowOrHideLetmedie(bool isActive) + { + base.uiBehaviour.mDownSprite.SetVisible(isActive); + base.uiBehaviour.mUpSprite.SetVisible(isActive); + base.uiBehaviour.mUpTips.SetActive(isActive); + base.uiBehaviour.mDownTips.SetActive(isActive); + } + + private void InPlayerLetmedie(bool isActive) + { + base.uiBehaviour.mDownSprite.SetVisible(!isActive); + base.uiBehaviour.mDownTips.SetActive(!isActive); + base.uiBehaviour.mUpSprite.SetVisible(isActive); + base.uiBehaviour.mUpTips.SetActive(isActive); + } + + public void OnSectionShow() + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + base.uiBehaviour.mGoBg.SetActive(this._Doc.IsGMF()); + this.ShowOrHideLetmedie(false); + } + else + { + base.uiBehaviour.mEncourageButton.SetActive(false); + } + XGuildArenaBattleDocument.GuildArenaSection mArenaSection = this._Doc.mArenaSection; + if (mArenaSection != XGuildArenaBattleDocument.GuildArenaSection.Prepare) + { + if (mArenaSection == XGuildArenaBattleDocument.GuildArenaSection.Battle) + { + this.SectionShowBattle(); + } + } + else + { + this.SectionShowReady(); + } + this.SelectionPattern(); + this.ReFreshGroup(); + } + + protected virtual void SelectionPattern() + { + } + + protected virtual void SectionShowReady() + { + this.RefreshCommonUI(); + base.uiBehaviour.mGoBg.SetActive(true); + base.SetXUILable("Prepare/T", XSingleton.singleton.GetString("GUILD_ARENA_READY")); + switch (this._Doc.MyReadyType) + { + case XGuildArenaBattleDocument.ReadyType.Ready: + this.InPlayerLetmedie(false); + break; + case XGuildArenaBattleDocument.ReadyType.NoReady: + this.InPlayerLetmedie(true); + break; + case XGuildArenaBattleDocument.ReadyType.Observer: + this.ShowOrHideLetmedie(false); + break; + } + } + + protected virtual void SectionShowBattle() + { + base.uiBehaviour.mGoBg.SetActive(false); + this.ShowOrHideLetmedie(false); + base.uiBehaviour.mEncourageButton.SetActive(false); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag = this._Doc.MyReadyType == XGuildArenaBattleDocument.ReadyType.NoReady || this._Doc.MyReadyType == XGuildArenaBattleDocument.ReadyType.Ready; + if (flag) + { + base.uiBehaviour.mGoBg.SetActive(this._Doc.IsGMF()); + base.uiBehaviour.mEncourageButton.SetActive(true); + } + } + bool flag2 = this._Doc.MyFightState == GuildMatchFightState.GUILD_MF_FIGHTING; + if (flag2) + { + base.uiBehaviour.mEncourageButton.SetActive(false); + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SkillHandler.SetVisible(true); + DlgBase.singleton.IndicateHandler.SetVisible(true); + DlgBase.singleton.WarTimeLabel.SetVisible(false); + DlgBase.singleton.LeftTimeLabel.SetVisible(false); + } + } + } + + private void OnHelp(IXUISprite spr) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Arena); + } + + public void RefreahCountTime(float time) + { + this.m_lastTime.LeftTime = time; + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.HideLeftTime(); + } + } + + private void UpdateCountTime() + { + this.m_lastTime.Update(); + bool flag = this.m_lastTime.LeftTime > 0f; + if (flag) + { + base.SetXUILable("Time/countdown", XSingleton.singleton.TimeFormatString((int)this.m_lastTime.LeftTime, 2, 3, 4, false, true)); + } + } + + private void OnUp(IXUISprite spr) + { + bool bCantUpForKicked = this._Doc.bCantUpForKicked; + if (bCantUpForKicked) + { + double num = 0.0; + bool flag = this._Doc._kicked_token > 0u; + if (flag) + { + num = XSingleton.singleton.TimeLeft(this._Doc._kicked_token); + } + string text = string.Format(XSingleton.singleton.GetString("GUILD_ARENA_UP_HINT_BY_KICKED"), num.ToString("f0")); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + } + else + { + bool flag2 = this._Doc.BlueInfo.Size >= this._Doc.GetBattleSignNumber(); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_ARENA_TAB_FULL"), "fece00"); + } + else + { + this._Doc.ReadyReq(XSingleton.singleton.XPlayerData.RoleID, GMFReadyType.GMF_READY_UP); + } + } + } + + private void OnDown(IXUISprite spr) + { + this._Doc.ReadyReq(XSingleton.singleton.XPlayerData.RoleID, GMFReadyType.GMF_READY_DOWN); + } + + public void UpdateDownUp() + { + switch (this._Doc.MyReadyType) + { + case XGuildArenaBattleDocument.ReadyType.Ready: + this.InPlayerLetmedie(false); + base.SetXUILable("Bg/LetmedieDownBg/T", XSingleton.singleton.GetString("GUILD_ARENA_DOWN_HINT")); + break; + case XGuildArenaBattleDocument.ReadyType.NoReady: + this.InPlayerLetmedie(true); + base.SetXUILable("Bg/LetmedieDownBg/T", ""); + break; + case XGuildArenaBattleDocument.ReadyType.Observer: + this.ShowOrHideLetmedie(false); + base.SetXUILable("Bg/LetmedieDownBg/T", XSingleton.singleton.GetString("GUILD_ARENA_UP_HINT")); + break; + } + base.uiBehaviour.mUpSprite.SetGrey(!this._Doc.bCantUpForKicked); + base.uiBehaviour.mDownSprite.SetGrey(!this._Doc.bCantUpForKicked); + } + + public virtual void ReFreshGroup() + { + XSingleton.singleton.AddGreenLog("targetBlueCourage:", this._Doc.BlueInfo.Inspire.ToString(), " targetRedCourage", this._Doc.RedInfo.Inspire.ToString(), null, null); + this.SetProgress(this._Doc.BlueInfo.Inspire, base.uiBehaviour.mBlueCourageBar, ref this.blue_label_num, "Battle/Encourage/Blue/Time", base.uiBehaviour.BlueInspireTween, base.uiBehaviour.mBlueCourage, "Effects/FX_Particle/UIfx/UI_GuildArenaPrepareDlg_Blue"); + this.SetProgress(this._Doc.RedInfo.Inspire, base.uiBehaviour.mRedCourageBar, ref this.red_label_num, "Battle/Encourage/Red/Time", base.uiBehaviour.RedInspireTween, base.uiBehaviour.mRedCourage, "Effects/FX_Particle/UIfx/UI_GuildArenaPrepareDlg_Red"); + base.uiBehaviour.mBluePanel.ReFreshData(this._Doc.BlueInfo); + bool flag = this._Doc.Pattern == GuildArenaBattlePattern.GMF; + if (flag) + { + base.SetXUILable("Battle/Score/Bluenum", this._Doc.GMFGroupBlueMatchPoint.ToString()); + base.SetXUILable("Battle/Score/Rednum", this._Doc.GMFGroupRedMatchPoint.ToString()); + } + else + { + base.uiBehaviour.mBattleDuelInfo.RedInfo.Set(this._Doc.redCombatInfo); + base.uiBehaviour.mBattleDuelInfo.BlueInfo.Set(this._Doc.blueCombatInfo); + } + this.UpdateDownUp(); + } + + private void UpdateInspireTime() + { + bool flag = base.uiBehaviour.mInspireCD != null; + if (flag) + { + base.uiBehaviour.mInspireCD.ExcuteInspireCD(this._Doc.InspireCDTime); + } + } + + private void OnInspireReq(IXUISprite spr) + { + bool flag = this._Doc.InspireCDTime > 0.0; + if (flag) + { + string @string = XStringDefineProxy.GetString("GUILD_ARENA_UP_HINT_BY_INSPIRT", new object[] + { + this._Doc.InspireCDTime.ToString("f0") + }); + XSingleton.singleton.ShowSystemTip(@string, "fece00"); + } + else + { + this._Doc.InspireReq(); + } + } + + public void RefreshInspire() + { + bool flag = this._Doc.fxEncourageButton != null; + if (flag) + { + this._Doc.fxEncourageButton.Play(base.uiBehaviour.mEncourageButton.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + bool flag2 = this._Doc.fxEncourageProgressAdd != null; + if (flag2) + { + this._Doc.fxEncourageProgressAdd.Play(base.uiBehaviour.mEncourageButton.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + private bool GetProgress(float spiritCount, out int label, out float progress) + { + label = 0; + progress = 0f; + bool flag = this.inspires == null; + if (flag) + { + this.inspires = XSingleton.singleton.GetIntList("GuildArenaInspireCount"); + } + bool flag2 = this.inspires == null; + bool result; + if (flag2) + { + XSingleton.singleton.AddErrorLog("XMainClient.UI.GuildArenaBattlePrepareDlg.GetProgress inspires == null", null, null, null, null, null); + result = false; + } + else + { + int num = 0; + int num2 = 0; + int i = 0; + int count = this.inspires.Count; + while (i < count) + { + bool flag3 = spiritCount <= (float)this.inspires[i]; + if (flag3) + { + label = i; + num = this.inspires[i]; + break; + } + num2 = this.inspires[i]; + i++; + } + bool flag4 = spiritCount >= (float)num; + if (flag4) + { + spiritCount = (float)num; + } + progress = (spiritCount - (float)num2) / (float)(num - num2); + result = true; + } + return result; + } + + private void SetProgress(float cour, IXUISlider progress, ref int cur_label_num, string labelName, GameObject labelTween, GameObject effectParent, string effectName) + { + int num = 0; + float value = 0f; + bool progress2 = this.GetProgress(cour, out num, out value); + if (progress2) + { + progress.Value = value; + base.SetXUILable(labelName, num.ToString()); + bool flag = cur_label_num != num; + if (flag) + { + cur_label_num = num; + bool flag2 = this._Doc.fxEncourageProgressNum != null; + if (flag2) + { + this._Doc.fxEncourageProgressNum.Play(labelTween.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + bool flag3 = this._Doc.fxEncourageProgressAdd != null; + if (flag3) + { + this._Doc.fxEncourageProgressAdd.Play(base.uiBehaviour.mEncourageButtonBg.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + bool flag4 = !string.IsNullOrEmpty(effectName); + if (flag4) + { + XSingleton.singleton.CreateAndPlay(effectName, effectParent.transform, Vector3.zero, Vector3.one, 1f, true, 3f, true); + } + } + } + } + + public void SetResurgence(int leftTime) + { + this.m_leftTime = leftTime; + this.SetResurgenceTime(this.m_leftTime); + } + + private void SetResurgenceTime(int time) + { + bool flag = time > 0; + base.uiBehaviour.mLeftTime.SetVisible(flag); + bool flag2 = flag; + if (flag2) + { + base.uiBehaviour.mLeftTime.SetText(time.ToString()); + this.m_leftTimerID = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.UpdateTimeFrame), null); + this.SetupOtherResurgence(); + } + else + { + bool flag3 = this.m_leftTimerID > 0u; + if (flag3) + { + XSingleton.singleton.KillTimer(this.m_leftTimerID); + } + } + } + + protected virtual void SetupOtherResurgence() + { + } + + private void UpdateTimeFrame(object o) + { + this.m_leftTime--; + this.SetResurgence(this.m_leftTime); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBase.cs.meta new file mode 100644 index 00000000..aa7ddca5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b51ff48fa84b4db47ad9e87b4d573cc0 +timeCreated: 1611404394 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBehaviour.cs new file mode 100644 index 00000000..fa59385d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBehaviour.cs @@ -0,0 +1,104 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GVGBattlePrepareBehaviour : DlgBehaviourBase + { + protected internal GameObject mBlueView; + + protected internal IXUISlider mBlueCourageBar; + + protected internal IXUISlider mRedCourageBar; + + protected internal GameObject BlueInspireTween = null; + + protected internal GameObject RedInspireTween = null; + + protected internal GameObject mUp; + + protected internal GameObject mDown; + + protected internal IXUISprite mUpSprite; + + protected internal IXUISprite mDownSprite; + + protected internal GameObject mUpTips; + + protected internal GameObject mDownTips; + + protected internal GameObject mGoPrepare = null; + + protected internal GameObject mGoBattle = null; + + protected internal GameObject mGoBg = null; + + protected internal IGVGBattleMember mBluePanel; + + protected internal GuildArenaInspireCD mInspireCD; + + protected internal GameObject mEncourageButton; + + protected internal GameObject mEncourageButtonBg; + + protected internal Transform mCombatInfo; + + protected internal GameObject mCombatScore; + + protected internal IXUILabel mLeftTime; + + protected internal IXUILabel mRoundLabel; + + protected internal GameObject mBlueCourage; + + protected internal GameObject mRedCourage; + + protected internal GuildArenaBattleDuelInfo mBattleDuelInfo; + + protected internal Transform mBattleSkillTransform; + + protected internal IXUISprite mLetmedieUpSpr; + + protected internal IXUISprite mLetmedieDownSpr; + + protected internal IXUISprite mEncourageSpr; + + protected internal IXUISprite mHelpSpr; + + protected internal IXUISprite mLeftCloseSpr; + + protected virtual void Awake() + { + this.mGoBg = base.transform.Find("Bg").gameObject; + this.mGoPrepare = base.transform.Find("Prepare").gameObject; + this.mGoBattle = base.transform.Find("Battle").gameObject; + this.mCombatInfo = base.transform.Find("Battle/Info"); + this.mCombatScore = base.transform.Find("Battle/Score").gameObject; + this.mBlueView = base.transform.Find("Bg/LeftView").gameObject; + this.mBlueCourage = base.transform.Find("Battle/Encourage/Blue").gameObject; + this.mRedCourage = base.transform.Find("Battle/Encourage/Red").gameObject; + this.mBlueCourageBar = (base.transform.Find("Battle/Encourage/Blue/Bar").GetComponent("XUISlider") as IXUISlider); + this.mRedCourageBar = (base.transform.Find("Battle/Encourage/Red/Bar").GetComponent("XUISlider") as IXUISlider); + this.mUp = base.transform.Find("Bg/LetmedieUp").gameObject; + this.mUpSprite = (this.mUp.GetComponent("XUISprite") as IXUISprite); + this.mDown = base.transform.Find("Bg/LetmedieDown").gameObject; + this.mDownSprite = (this.mDown.GetComponent("XUISprite") as IXUISprite); + this.BlueInspireTween = base.transform.Find("Battle/Encourage/Blue/Time").gameObject; + this.RedInspireTween = base.transform.Find("Battle/Encourage/Red/Time").gameObject; + this.mEncourageButton = base.transform.Find("Battle/GuildMember/Encourage").gameObject; + this.mEncourageButtonBg = base.transform.Find("Battle/Encourage/Bg1").gameObject; + this.mLeftTime = (base.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + this.mRoundLabel = (base.transform.Find("GuildAreanStage").GetComponent("XUILabel") as IXUILabel); + this.mBattleSkillTransform = base.transform.Find("KillInfo"); + this.mLetmedieUpSpr = (this.mGoBg.transform.Find("LetmedieUp").GetComponent("XUISprite") as IXUISprite); + this.mLetmedieDownSpr = (this.mGoBg.transform.Find("LetmedieDown").GetComponent("XUISprite") as IXUISprite); + this.mUpTips = base.transform.Find("Bg/LetmedieUpBg").gameObject; + this.mDownTips = base.transform.Find("Bg/LetmedieDownBg").gameObject; + this.mEncourageSpr = (base.transform.Find("Battle/GuildMember/Encourage").GetComponent("XUISprite") as IXUISprite); + this.mHelpSpr = (base.transform.Find("Prepare/Help").GetComponent("XUISprite") as IXUISprite); + this.mLeftCloseSpr = (this.mGoBg.transform.Find("LeftView/close").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBehaviour.cs.meta new file mode 100644 index 00000000..744c2335 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGBattlePrepareBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19f7cf1ee3b45294e88a05f35d16b388 +timeCreated: 1611403307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGBattleRankFrameBase.cs b/Client/Assets/Scripts/XMainClient/UI/GVGBattleRankFrameBase.cs new file mode 100644 index 00000000..602fca8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGBattleRankFrameBase.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GVGBattleRankFrameBase : IGVGBattleMember + { + private int _index = 0; + + private IXUIScrollView _scrollView; + + private IXUIWrapContent _wrapContent; + + private GameObject _gameObject; + + private Transform _transform; + + private List _roles; + + private GVGBattleInfo _battleInfo; + + public void ReFreshData(GVGBattleInfo battleInfo) + { + this._battleInfo = battleInfo; + bool flag = this._roles == null; + if (flag) + { + this._roles = new List(); + } + else + { + this._roles.Clear(); + } + bool flag2 = battleInfo.Group != null; + if (flag2) + { + this._roles.AddRange(battleInfo.Group); + } + this._wrapContent.SetContentCount(this._roles.Count, false); + this._wrapContent.RefreshAllVisibleContents(); + } + + public void Setup(GameObject sv, int index) + { + this._index = index; + this._gameObject = sv; + this._transform = sv.transform; + this._scrollView = (this._transform.GetComponent("XUIScrollView") as IXUIScrollView); + this._wrapContent = (this._transform.Find("RankList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnWrapContentUpdate)); + } + + private void _OnWrapContentUpdate(Transform t, int index) + { + bool flag = this._roles.Count <= index; + if (!flag) + { + IXUIProgress ixuiprogress = t.Find("HpBar").GetComponent("XUIProgress") as IXUIProgress; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("KillValue").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("DieValue").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("job").GetComponent("XUISprite") as IXUISprite; + GmfRole gmfRole = this._roles[index]; + ixuisprite.SetSprite(XSingleton.singleton.GetProfIcon(gmfRole.profession)); + ixuilabel.SetText(gmfRole.rolename); + GmfCombat gmfCombat = null; + bool flag2 = this._battleInfo != null && this._battleInfo.TryGetCombat(gmfRole.roleID, out gmfCombat); + if (flag2) + { + ixuilabel2.SetText(gmfCombat.killcount.ToString()); + ixuilabel3.SetText(gmfCombat.deadcount.ToString()); + } + else + { + ixuilabel2.SetText("0"); + ixuilabel3.SetText("0"); + } + XEntity entity = XSingleton.singleton.GetEntity(gmfRole.roleID); + float value = 1f; + bool flag3 = entity != null && entity.Attributes != null; + if (flag3) + { + int num = (int)entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + int num2 = (int)entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag4 = num2 < 0; + if (flag4) + { + num2 = 0; + } + value = (float)num2 / (float)num; + } + ixuiprogress.value = value; + } + } + + public void OnUpdate() + { + bool flag = !this.IsActive(); + if (!flag) + { + this._wrapContent.RefreshAllVisibleContents(); + } + } + + public void SetActive(bool active) + { + bool flag = this._transform != null; + if (flag) + { + this._transform.gameObject.SetActive(active); + } + } + + public bool IsActive() + { + return this._transform != null && this._transform.gameObject.activeSelf; + } + + public void Recycle() + { + bool flag = this._roles != null; + if (flag) + { + this._roles.Clear(); + this._roles = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGBattleRankFrameBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGBattleRankFrameBase.cs.meta new file mode 100644 index 00000000..6adbcc99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGBattleRankFrameBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 43dfb4206547cf549bb47b693b5c8dc1 +timeCreated: 1611403643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGCombatGuildDisplay.cs b/Client/Assets/Scripts/XMainClient/UI/GVGCombatGuildDisplay.cs new file mode 100644 index 00000000..f380b96c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGCombatGuildDisplay.cs @@ -0,0 +1,157 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GVGCombatGuildDisplay + { + private IXUILabel m_GuildNameLabel; + + private IXUISprite m_GuildHeadSprite; + + private IXUISprite m_unKnowSprite; + + private Transform _Support; + + private XGuildBasicData _baseData; + + public void Setup(Transform t) + { + this.m_GuildNameLabel = (t.Find("txt_GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_GuildHeadSprite = (t.Find("GuildIcon").GetComponent("XUISprite") as IXUISprite); + this.m_unKnowSprite = (t.Find("UnKnow").GetComponent("XUISprite") as IXUISprite); + this._Support = t.Find("BtnSupport"); + this.SetEmptyMember(); + } + + public void Recycle() + { + this._Support = null; + this.m_GuildHeadSprite = null; + this.m_GuildNameLabel = null; + this.m_unKnowSprite = null; + } + + public void SetGuildMember(XGuildBasicData baseData, XGuildBasicData winData = null, bool isCup = false) + { + this._baseData = baseData; + bool flag = baseData == null; + if (flag) + { + this.SetEmptyMember(); + bool flag2 = this._Support != null; + if (flag2) + { + this._Support.gameObject.SetActive(false); + } + if (isCup) + { + this.m_unKnowSprite.SetVisible(false); + } + } + else + { + this.SetShowMember(); + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + XGuildDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.m_GuildHeadSprite.ID = baseData.uid; + this.m_GuildNameLabel.SetText(baseData.ToGuildNameString()); + this.m_GuildHeadSprite.SetSprite(XGuildDocument.GetPortraitName(baseData.portraitIndex)); + this.m_GuildNameLabel.SetColor((specificDocument2.bInGuild && specificDocument2.BasicData.uid == baseData.uid) ? Color.green : Color.white); + bool flag3 = winData == null; + if (flag3) + { + this.m_GuildHeadSprite.SetGrey(true); + } + else + { + this.m_GuildHeadSprite.SetGrey(winData.uid == baseData.uid); + } + bool flag4 = this._Support != null; + if (flag4) + { + XCrossGVGDocument specificDocument3 = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + bool flag5 = specificDocument3.TimeStep == CrossGvgTimeState.CGVG_Guess; + if (flag5) + { + this._Support.gameObject.SetActive(true); + IXUIButton ixuibutton = this._Support.GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = this._Support.Find("Label").GetComponent("XUILabel") as IXUILabel; + bool flag6 = specificDocument3.IsSupportExist(baseData.uid); + bool flag7 = flag6; + if (flag7) + { + ixuilabel.SetText(XStringDefineProxy.GetString("CROSSGVG_SUPPORT_TRUE")); + } + else + { + ixuilabel.SetText(XStringDefineProxy.GetString("CROSSGVG_SUPPORT_FALSE")); + } + ixuibutton.SetEnable(!flag6 && !specificDocument3.IsSupportFull(), false); + ixuibutton.ID = baseData.uid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSupportClick)); + } + else + { + this._Support.gameObject.SetActive(false); + } + } + } + } + + private bool _OnSupportClick(IXUIButton btn) + { + bool flag = this._baseData == null; + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("CrossGVG_confirm_message", new object[] + { + this._baseData.ToGuildNameString() + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._OnSureSupport)); + result = true; + } + return result; + } + + private bool _OnSureSupport(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = this._baseData == null; + bool result; + if (flag) + { + result = false; + } + else + { + XCrossGVGDocument specificDocument = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + specificDocument.SendCrossGVGOper(CrossGvgOperType.CGOT_SupportGuild, this._baseData.uid); + result = true; + } + return result; + } + + private void SetShowMember() + { + this.m_GuildNameLabel.SetVisible(true); + this.m_GuildHeadSprite.SetVisible(true); + this.m_unKnowSprite.SetVisible(false); + } + + private void SetEmptyMember() + { + this.m_GuildHeadSprite.ID = 0UL; + this.m_GuildNameLabel.SetVisible(false); + this.m_GuildHeadSprite.SetVisible(false); + this.m_unKnowSprite.SetVisible(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGCombatGuildDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGCombatGuildDisplay.cs.meta new file mode 100644 index 00000000..f1f5acf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGCombatGuildDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 969d658f6deb33d4db7091c5576e5bf8 +timeCreated: 1611404186 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGCombatHandlerBase.cs b/Client/Assets/Scripts/XMainClient/UI/GVGCombatHandlerBase.cs new file mode 100644 index 00000000..2210c998 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGCombatHandlerBase.cs @@ -0,0 +1,272 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GVGCombatHandlerBase : DlgHandlerBase + { + protected virtual bool InGVGTime + { + get + { + return false; + } + } + + protected virtual bool HasGVGJion + { + get + { + return false; + } + } + + protected virtual bool VisibelEnterBattle + { + get + { + return false; + } + } + + protected virtual CrossGvgRoomState RoomState + { + get + { + return CrossGvgRoomState.CGRS_Idle; + } + } + + protected virtual GuildArenaState TimeState + { + get + { + return GuildArenaState.GUILD_ARENA_END; + } + } + + private Transform m_CombatPanel; + + private Transform m_NaPanel; + + private List m_GuildCombat = new List(); + + private GVGCombatGuildDisplay m_GuildCup; + + private IXUILabel m_combatTips; + + private IXUISprite m_honorSprite; + + private IXUILabel m_naLabel; + + private IXUIButton m_enterBattle; + + protected IXUIButton m_showRank; + + protected IXUILabel m_RegistrationCount; + + protected IXUILabel m_helpLabel; + + protected uint FirstRoomSize = 4u; + + protected uint SecondRoomSize = 2u; + + protected uint TopRoomSize = 1u; + + protected virtual XGVGCombatGroupData GetCombatGroup(uint roomID) + { + return null; + } + + protected virtual void SetupOtherInfo() + { + } + + protected virtual void EnterScene() + { + } + + public override void RefreshData() + { + base.RefreshData(); + bool inGVGTime = this.InGVGTime; + if (inGVGTime) + { + this.m_RegistrationCount.SetVisible(true); + this.m_CombatPanel.gameObject.SetActive(true); + this.m_NaPanel.gameObject.SetActive(false); + this.RefreshMessage(); + this.RefreshCombatHandle(); + } + else + { + this.m_RegistrationCount.SetVisible(false); + this.m_CombatPanel.gameObject.SetActive(false); + this.m_NaPanel.gameObject.SetActive(true); + } + this.SetupOtherInfo(); + bool flag = this.HasGVGJion && this.VisibelEnterBattle; + if (flag) + { + this.m_enterBattle.SetVisible(true); + this.m_enterBattle.SetGrey(this.RoomState == CrossGvgRoomState.CGRS_Fighting); + } + else + { + this.m_enterBattle.SetVisible(false); + } + } + + protected override void Init() + { + base.Init(); + this.m_CombatPanel = base.PanelObject.transform.Find("Combat"); + this.m_NaPanel = base.PanelObject.transform.Find("NA"); + this.m_naLabel = (base.PanelObject.transform.Find("NA/tip").GetComponent("XUILabel") as IXUILabel); + this.m_naLabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_COMBAT_NA")); + this.m_helpLabel = (base.PanelObject.transform.Find("txt_helpLabel").GetComponent("XUILabel") as IXUILabel); + this.m_GuildCup = new GVGCombatGuildDisplay(); + this.m_GuildCup.Setup(base.PanelObject.transform.Find("Combat/Cup")); + this.m_combatTips = (base.PanelObject.transform.Find("Combat/txt_TimeLabel").GetComponent("XUILabel") as IXUILabel); + this.m_honorSprite = (base.PanelObject.transform.Find("Combat/honor").GetComponent("XUISprite") as IXUISprite); + this.m_enterBattle = (base.PanelObject.transform.Find("Combat/LetMeDie").GetComponent("XUIButton") as IXUIButton); + this.m_enterBattle.SetVisible(false); + this.m_showRank = (base.PanelObject.transform.Find("TopRankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_RegistrationCount = (base.PanelObject.transform.Find("Title/Period").GetComponent("XUILabel") as IXUILabel); + this.m_RegistrationCount.SetVisible(false); + this.InitCombatHandle(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_enterBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterBattleClick)); + this.m_showRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowRankClick)); + } + + private bool OnShowRankClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool OnEnterBattleClick(IXUIButton btn) + { + bool flag = this.RoomState != CrossGvgRoomState.CGRS_Fighting; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_ARENA_OUTTIME"), "fece00"); + result = false; + } + else + { + this.EnterScene(); + result = false; + } + return result; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void OnUnload() + { + this.UnLoadCombatHandle(ref this.m_GuildCombat); + bool flag = this.m_GuildCup != null; + if (flag) + { + this.m_GuildCup.Recycle(); + this.m_GuildCup = null; + } + base.OnUnload(); + } + + private void InitCombatHandle() + { + this.CreateCombatHandle(0, this.FirstRoomSize); + this.CreateCombatHandle(1, this.SecondRoomSize); + this.CreateCombatHandle(2, this.TopRoomSize); + } + + private void UnLoadCombatHandle(ref List guildCombats) + { + bool flag = guildCombats == null; + if (!flag) + { + int i = 0; + int count = guildCombats.Count; + while (i < count) + { + bool flag2 = guildCombats[i] != null; + if (flag2) + { + guildCombats[i].Recycle(); + guildCombats[i] = null; + } + i++; + } + guildCombats.Clear(); + guildCombats = null; + } + } + + private void CreateCombatHandle(int combat, uint size) + { + int num = 0; + while ((long)num < (long)((ulong)size)) + { + string text = string.Format("Combat/Battle/Battle_{0}_{1}", combat, num); + GVGCombatInfoDisplay gvgcombatInfoDisplay = new GVGCombatInfoDisplay(); + gvgcombatInfoDisplay.Setup(base.PanelObject.transform.Find(text)); + gvgcombatInfoDisplay.Set(combat, num); + this.m_GuildCombat.Add(gvgcombatInfoDisplay); + num++; + } + } + + private void RefreshCombatHandle() + { + int i = 0; + int count = this.m_GuildCombat.Count; + while (i < count) + { + this.m_GuildCombat[i].SetGroup(this.GetCombatGroup(this.m_GuildCombat[i].RoomID)); + i++; + } + XGVGCombatGroupData combatGroup = this.GetCombatGroup(7u); + this.m_GuildCup.SetGuildMember((combatGroup != null && combatGroup.Winner != null) ? combatGroup.Winner : null, null, true); + } + + private void RefreshMessage() + { + string text = string.Empty; + switch (this.TimeState) + { + case GuildArenaState.GUILD_ARENA_NOT_BEGIN: + case GuildArenaState.GUILD_ARENA_BEGIN: + case GuildArenaState.GUILD_ARENA_BATTLE_ONE: + text = XStringDefineProxy.GetString("GUILD_ARENA_MESSAGE1"); + break; + case GuildArenaState.GUILD_ARENA_BATTLE_TWO: + text = XStringDefineProxy.GetString("GUILD_ARENA_MESSAGE2"); + break; + case GuildArenaState.GUILD_ARENA_BATTLE_FINAL: + text = XStringDefineProxy.GetString("GUILD_ARENA_MESSAGE3"); + break; + default: + text = string.Empty; + break; + } + this.m_combatTips.SetText(text); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGCombatHandlerBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGCombatHandlerBase.cs.meta new file mode 100644 index 00000000..e1b2571a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGCombatHandlerBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d13a3dc77a918ff4eadbb4210d9b6827 +timeCreated: 1611404591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs b/Client/Assets/Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs new file mode 100644 index 00000000..aba484a6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs @@ -0,0 +1,116 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class GVGCombatInfoDisplay + { + public uint RoomID + { + get + { + return this.m_battleID; + } + } + + public uint BattleID + { + get + { + return this.m_battleID; + } + } + + private GVGCombatGuildDisplay m_guildMemberA; + + private GVGCombatGuildDisplay m_guildMemberB; + + private IXUIButton m_watchBtn; + + private int m_combatID; + + private int m_index; + + private uint m_battleID; + + public void Setup(Transform t) + { + this.m_watchBtn = (t.Find("btn_Watch").GetComponent("XUIButton") as IXUIButton); + this.m_guildMemberA = new GVGCombatGuildDisplay(); + this.m_guildMemberA.Setup(t.Find("Team1")); + this.m_guildMemberB = new GVGCombatGuildDisplay(); + this.m_guildMemberB.Setup(t.Find("Team2")); + this.m_watchBtn.SetVisible(false); + this.m_watchBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWatchClick)); + } + + public void Set(int combat, int index) + { + this.m_combatID = combat; + this.m_index = index; + switch (combat) + { + case 0: + this.m_battleID = (uint)(index + 1); + break; + case 1: + this.m_battleID = (uint)(index + 5); + break; + case 2: + this.m_battleID = 7u; + break; + } + } + + public void SetGroup(XGVGCombatGroupData combat) + { + bool flag = combat == null; + if (flag) + { + this.m_watchBtn.ID = 0UL; + this.SetCombatState((CrossGvgRoomState)0, 0u); + } + else + { + this.m_watchBtn.ID = (ulong)combat.WatchID; + this.m_guildMemberA.SetGuildMember(combat.GuildOne, combat.Winner, false); + this.m_guildMemberB.SetGuildMember(combat.GuildTwo, combat.Winner, false); + this.SetCombatState(combat.RoomState, combat.WatchID); + } + } + + public void SetCombatState(CrossGvgRoomState state, uint watchID = 0u) + { + this.m_watchBtn.SetVisible(state == CrossGvgRoomState.CGRS_Fighting && watchID > 0u); + } + + public void Recycle() + { + bool flag = this.m_guildMemberA != null; + if (flag) + { + this.m_guildMemberA.Recycle(); + this.m_guildMemberA = null; + } + bool flag2 = this.m_guildMemberB != null; + if (flag2) + { + this.m_guildMemberB.Recycle(); + this.m_guildMemberB = null; + } + } + + private bool OnWatchClick(IXUIButton watchBtn) + { + bool flag = watchBtn.ID > 0UL; + if (flag) + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.EnterSpectateBattle((uint)watchBtn.ID, LiveType.LIVE_CROSSGVG); + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs.meta new file mode 100644 index 00000000..ce38696f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGCombatInfoDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ef7c70338ad56940851c4dc0438f388 +timeCreated: 1611404243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGDuelHandlerBase.cs b/Client/Assets/Scripts/XMainClient/UI/GVGDuelHandlerBase.cs new file mode 100644 index 00000000..3f23e154 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGDuelHandlerBase.cs @@ -0,0 +1,76 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class GVGDuelHandlerBase : DlgHandlerBase + { + private IXUIWrapContent _WrapContent; + + private IXUIScrollView _WrapScroll; + + private Transform _emptyTransform; + + protected IXUILabel m_DuelHelp; + + private GVGDuelWrapDisplay _display; + + protected override void Init() + { + this._WrapScroll = (base.transform.Find("DuelList").GetComponent("XUIScrollView") as IXUIScrollView); + this._WrapContent = (base.transform.Find("DuelList/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_DuelHelp = (base.transform.Find("Intro").GetComponent("XUILabel") as IXUILabel); + this._emptyTransform = base.transform.Find("UnApply"); + this._WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnItemWrapContentUpdate)); + } + + public override void OnUnload() + { + bool flag = this._display != null; + if (flag) + { + this._display.Recycle(); + this._display = null; + } + base.OnUnload(); + } + + public override void RefreshData() + { + int duelInfoSize = this.GetDuelInfoSize(); + this._WrapContent.SetContentCount(duelInfoSize, false); + this._WrapScroll.ResetPosition(); + } + + protected void ShowOrHide(bool active) + { + this._emptyTransform.gameObject.SetActive(active); + } + + protected virtual void OnEnterScene(IXUISprite sprite) + { + } + + protected virtual int GetDuelInfoSize() + { + return 0; + } + + protected virtual GVGDuelCombatInfo GetDuelInfo(int index) + { + return null; + } + + private void OnItemWrapContentUpdate(Transform t, int index) + { + bool flag = this._display == null; + if (flag) + { + this._display = new GVGDuelWrapDisplay(); + } + this._display.Setup(t, index, new SpriteClickEventHandler(this.OnEnterScene)); + this._display.Set(this.GetDuelInfo(index)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGDuelHandlerBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGDuelHandlerBase.cs.meta new file mode 100644 index 00000000..bce99258 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGDuelHandlerBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 197d656f6b79a984ba4e731aef9d85ee +timeCreated: 1611403302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs b/Client/Assets/Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs new file mode 100644 index 00000000..1bd74fca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs @@ -0,0 +1,160 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GVGDuelWrapDisplay + { + private IXUILabel m_time; + + private IXUILabel m_guildNameCurrent; + + private IXUILabel m_guildNameUsed; + + private IXUILabel m_guildNameNext; + + private IXUISprite m_PortraitCurrent; + + private IXUISprite m_PortraitUsed; + + private IXUISprite m_PortraitNext; + + private IXUISprite m_enterBattle; + + private IXUILabel m_score; + + private Transform m_UsedPortraitEmpty; + + private Transform m_CurrentPortraitEmpty; + + private Transform m_NextPortraitEmpty; + + private Transform m_CurrentVS; + + private Transform m_CurrentMessage; + + private Transform m_win; + + private Transform m_lose; + + private Transform m_current; + + private Transform m_next; + + private Transform m_used; + + private int _index; + + public void Setup(Transform t, int index, SpriteClickEventHandler handler) + { + this._index = index; + this.m_current = t.Find("Current"); + this.m_next = t.Find("Next"); + this.m_used = t.Find("Used"); + this.m_win = t.Find("Used/Result/Win"); + this.m_lose = t.Find("Used/Result/Lose"); + this.m_time = (t.Find("Day").GetComponent("XUILabel") as IXUILabel); + this.m_guildNameCurrent = (t.Find("Current/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_guildNameUsed = (t.Find("Used/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_guildNameNext = (t.Find("Next/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_PortraitCurrent = (t.Find("Current/Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_PortraitUsed = (t.Find("Used/Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_PortraitNext = (t.Find("Next/Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_CurrentPortraitEmpty = t.Find("Current/Portrait_empty"); + this.m_UsedPortraitEmpty = t.Find("Used/Portrait_empty"); + this.m_NextPortraitEmpty = t.Find("Next/Portrait_empty"); + this.m_CurrentVS = t.Find("Current/VS"); + this.m_CurrentMessage = t.Find("Current/VS_empty"); + this.m_score = (t.Find("Used/Score").GetComponent("XUILabel") as IXUILabel); + this.m_enterBattle = (t.Find("Current/Btn").GetComponent("XUISprite") as IXUISprite); + this.m_enterBattle.RegisterSpriteClickEventHandler(handler); + this.m_enterBattle.ID = (ulong)((long)index); + } + + public void Reset() + { + this.m_time.SetText(string.Empty); + this.m_next.gameObject.SetActive(true); + this.m_used.gameObject.SetActive(false); + this.m_current.gameObject.SetActive(false); + } + + public void Set(GVGDuelCombatInfo combatInfo) + { + bool flag = combatInfo == null; + if (flag) + { + this.Reset(); + } + else + { + this.m_time.SetText(combatInfo.ToTimeString()); + this.m_next.gameObject.SetActive(combatInfo.gs == GVGDuelStatu.IDLE); + this.m_used.gameObject.SetActive(combatInfo.gs == GVGDuelStatu.FINISH); + this.m_current.gameObject.SetActive(combatInfo.gs == GVGDuelStatu.FIGHTING); + GVGDuelStatu gs = combatInfo.gs; + if (gs != GVGDuelStatu.FINISH) + { + if (gs != GVGDuelStatu.FIGHTING) + { + this.m_guildNameNext.SetText(combatInfo.GetGuildName()); + this.m_PortraitNext.SetSprite(combatInfo.GetPortraitName()); + this.m_PortraitNext.SetVisible(combatInfo.Pass()); + this.m_PortraitNext.SetVisible(combatInfo.Pass()); + this.m_PortraitNext.ID = combatInfo.GuildID; + this.m_NextPortraitEmpty.gameObject.SetActive(!combatInfo.Pass()); + } + else + { + this.m_guildNameCurrent.SetText(combatInfo.GetGuildName()); + this.m_PortraitCurrent.SetSprite(combatInfo.GetPortraitName()); + this.m_PortraitCurrent.SetVisible(combatInfo.Pass()); + this.m_PortraitCurrent.SetVisible(combatInfo.Pass()); + this.m_PortraitCurrent.ID = combatInfo.GuildID; + this.m_CurrentPortraitEmpty.gameObject.SetActive(!combatInfo.Pass()); + this.m_enterBattle.SetGrey(combatInfo.gs == GVGDuelStatu.FIGHTING); + this.m_enterBattle.SetVisible(combatInfo.Pass()); + this.m_CurrentVS.gameObject.SetActive(combatInfo.Pass()); + this.m_CurrentMessage.gameObject.SetActive(!combatInfo.Pass()); + } + } + else + { + this.m_guildNameUsed.SetText(combatInfo.GetGuildName()); + this.m_PortraitUsed.SetSprite(combatInfo.GetPortraitName()); + this.m_UsedPortraitEmpty.gameObject.SetActive(!combatInfo.Pass()); + this.m_PortraitUsed.SetVisible(combatInfo.Pass()); + this.m_score.SetText(XSingleton.singleton.StringCombine("+", combatInfo.AddScore.ToString())); + this.m_win.gameObject.SetActive(combatInfo.Winner); + this.m_lose.gameObject.SetActive(!combatInfo.Winner); + this.m_PortraitUsed.ID = combatInfo.GuildID; + } + } + } + + public void Recycle() + { + this.m_time = null; + this.m_guildNameCurrent = null; + this.m_guildNameUsed = null; + this.m_guildNameNext = null; + this.m_PortraitCurrent = null; + this.m_PortraitUsed = null; + this.m_PortraitNext = null; + this.m_enterBattle = null; + this.m_score = null; + this.m_UsedPortraitEmpty = null; + this.m_CurrentPortraitEmpty = null; + this.m_NextPortraitEmpty = null; + this.m_CurrentVS = null; + this.m_CurrentMessage = null; + this.m_win = null; + this.m_lose = null; + this.m_current = null; + this.m_next = null; + this.m_used = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs.meta new file mode 100644 index 00000000..ea5c32fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGDuelWrapDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 324de7c8e6533484fb424b872196035c +timeCreated: 1611403549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGHallBase.cs b/Client/Assets/Scripts/XMainClient/UI/GVGHallBase.cs new file mode 100644 index 00000000..29049f70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGHallBase.cs @@ -0,0 +1,91 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GVGHallBase : DlgHandlerBase + { + private IXUIWrapContent _rankWrapContent; + + private IXUIScrollView _rankScrollView; + + private Transform _selfTransform; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_ItemReward; + + protected IXUILabel m_HelpText; + + protected ulong selfGuildID = 0UL; + + protected int selfIndex = -1; + + protected override void Init() + { + Transform transform = base.PanelObject.transform.Find("Reward/item"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_ItemReward = base.PanelObject.transform.Find("Reward"); + this._rankScrollView = (base.PanelObject.transform.Find("RankList/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this._rankWrapContent = (base.PanelObject.transform.Find("RankList/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._selfTransform = base.PanelObject.transform.Find("MyRank/Detail"); + this._rankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnItemWrapUpdate)); + this.m_HelpText = (base.PanelObject.transform.Find("help/Intro/Text").GetComponent("XUILabel") as IXUILabel); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.SetupRankList(); + } + + private void SetupRankList() + { + this.selfIndex = -1; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.selfGuildID = specificDocument.BasicData.uid; + this._rankWrapContent.SetContentCount(this.GetContentSize(), false); + this._rankScrollView.ResetPosition(); + this.SetSelfGuildInfo(this.selfIndex); + } + + protected virtual int GetContentSize() + { + return 0; + } + + protected void SetSelfGuildInfo(int index) + { + this.OnItemWrapUpdate(this._selfTransform, index); + } + + protected virtual void OnItemWrapUpdate(Transform t, int index) + { + } + + protected virtual void SetupRewardList(string[] values) + { + int num = values.Length; + this.m_ItemPool.ReturnAll(false); + for (int i = 0; i < num; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_ItemReward; + gameObject.transform.localPosition = new Vector3((float)(i * 80), 0f); + int num2 = int.Parse(values[i]); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, num2, 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num2); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GVGHallBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GVGHallBase.cs.meta new file mode 100644 index 00000000..fe9c60db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GVGHallBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 67515b6ba6cc1904884b10b452ef0e60 +timeCreated: 1611403857 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GameCommunityHandler.cs b/Client/Assets/Scripts/XMainClient/UI/GameCommunityHandler.cs new file mode 100644 index 00000000..1433a267 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GameCommunityHandler.cs @@ -0,0 +1,358 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GameCommunityHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/GameCommunityDlg"; + } + } + + private XMainInterfaceDocument _doc = null; + + private int _bgWidthDelta; + + private bool _widthInit = false; + + public IXUISprite m_Bg; + + public Transform m_SystemParent; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + this.m_Bg = (base.transform.Find("Bg/Bg").GetComponent("XUISprite") as IXUISprite); + this.m_SystemParent = base.transform.Find("Bg/Sys"); + XSingleton.singleton.RefreshWebViewConfig(); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + int num = 0; + int num2 = 0; + for (int i = 0; i < this._doc.GameCommunityReader.Table.Length; i++) + { + GameCommunityTable.RowData rowData = this._doc.GameCommunityReader.Table[i]; + IXUIButton ixuibutton = this.m_SystemParent.Find(rowData.ButtonName).GetComponent("XUIButton") as IXUIButton; + ixuibutton.SetVisible(false); + GameObject gameObject = ixuibutton.gameObject.transform.Find("RedPoint").gameObject; + bool flag2 = i == 0; + if (flag2) + { + num2 = ixuibutton.spriteWidth; + bool flag3 = !this._widthInit; + if (flag3) + { + this._widthInit = true; + this._bgWidthDelta = this.m_Bg.spriteWidth - num2; + } + } + bool flag4 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)rowData.OpenLevel); + if (!flag4) + { + bool flag5 = !XSingleton.singleton.IsSystemOpened((XSysDefine)rowData.SysID); + if (!flag5) + { + bool flag6 = !this.LoginStateTrue(rowData); + if (!flag6) + { + bool flag7 = rowData.ID == 13; + if (flag7) + { + bool flag8 = this.IsSuportReplay(); + if (flag8) + { + ixuibutton.SetVisible(true); + ixuibutton.gameObject.transform.localPosition = new Vector3((float)(num * num2), 0f); + ixuibutton.ID = (ulong)((long)rowData.ID); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSysBtnClick)); + num++; + } + } + else + { + bool flag9 = rowData.ID == 12; + if (flag9) + { + bool flag10 = this.GetQuestionnaireStage() == 0; + if (!flag10) + { + ixuibutton.SetVisible(true); + ixuibutton.gameObject.transform.localPosition = new Vector3((float)(num * num2), 0f); + ixuibutton.ID = (ulong)((long)rowData.ID); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSysBtnClick)); + num++; + gameObject.SetActive(XSingleton.singleton.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Questionnaire)); + } + } + else + { + bool flag11 = rowData.ID == 14; + if (flag11) + { + XSingleton.singleton.AddLog("Is show tv: ", this._doc.ShowWebView.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag12 = SystemInfo.processorType.StartsWith("Intel"); + int num3 = int.Parse(XSingleton.singleton.GetValue("HideWebView")); + bool flag13 = SystemInfo.systemMemorySize >= XSingleton.singleton.GetInt("WebMemory"); + XSingleton.singleton.AddLog("memory: ", flag13.ToString(), " x86: ", flag12.ToString(), " hide: ", num3.ToString(), XDebugColor.XDebug_None); + bool flag14 = this._doc.ShowWebView && num3 != 1 && !flag12 && flag13; + ixuibutton.SetVisible(flag14); + bool flag15 = flag14; + if (flag15) + { + ixuibutton.gameObject.transform.localPosition = new Vector3((float)(num * num2), 0f); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSysBtnClick)); + num++; + ixuibutton.ID = (ulong)((long)rowData.ID); + } + } + else + { + bool flag16 = rowData.ID == 8 && (XSingleton.singleton.GetLaunchTypeServerInfo() != StartUpType.StartUp_QQ || XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ); + if (!flag16) + { + bool flag17 = rowData.ID == 9 && (XSingleton.singleton.GetLaunchTypeServerInfo() != StartUpType.StartUp_WX || XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_WeChat); + if (!flag17) + { + ixuibutton.SetVisible(true); + ixuibutton.gameObject.transform.localPosition = new Vector3((float)(num * num2), 0f); + ixuibutton.ID = (ulong)((long)rowData.ID); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSysBtnClick)); + num++; + gameObject.SetActive(XSingleton.singleton.GetSysRedPointStateConsiderBlock((XSysDefine)rowData.SysID)); + } + } + } + } + } + } + } + } + } + this.m_Bg.spriteWidth = this._bgWidthDelta + num * num2; + } + + private bool OnSysBtnClick(IXUIButton btn) + { + Dictionary dictionary = new Dictionary(); + ulong id = btn.ID; + ulong num = id - 1UL; + if (num <= 15UL) + { + switch ((uint)num) + { + case 0u: + { + PtcC2G_CloseHintNtf ptcC2G_CloseHintNtf = new PtcC2G_CloseHintNtf(); + ptcC2G_CloseHintNtf.Data.systemid = (uint)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GC_XinYueVIP); + XSingleton.singleton.Send(ptcC2G_CloseHintNtf); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GC_XinYueVIP, false); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GameCommunity, true); + GameObject gameObject = btn.gameObject.transform.Find("RedPoint").gameObject; + gameObject.SetActive(false); + string text = string.Format("{0}?game_id={1}&opencode={2}&partition_id={3}&role_id={4}", new object[] + { + XSingleton.singleton.GetValue("XinYueInternalURL"), + XSingleton.singleton.GameId, + XSingleton.singleton.OpenCode, + XSingleton.singleton.ServerID, + XSingleton.singleton.XPlayerData.RoleID + }); + XSingleton.singleton.AddLog("url = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + dictionary["url"] = text; + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + break; + } + case 6u: + XSingleton.singleton.OpenHtmlUrl("DeepLinkAddress"); + break; + case 7u: + case 8u: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + break; + case 9u: + { + string text = string.Format("{0}?partition={1}&roleid={2}&area={3}&algorithm={4}&version={5}×tamp={6}&appid={7}&openid={8}&sig={9}&encode={10}", new object[] + { + XSingleton.singleton.GetValue("MicroCommunityURL"), + XSingleton.singleton.ServerID, + XSingleton.singleton.XPlayerData.RoleID, + XSingleton.singleton.AreaId, + "v2", + XSingleton.singleton.Version, + XSingleton.singleton.GetTimeStamp(), + XSingleton.singleton.AppId, + XSingleton.singleton.OpenID, + XSingleton.singleton.XPlatform.GetMD5(string.Format("{0}{1}", XSingleton.singleton.MSDKKey, XSingleton.singleton.GetTimeStamp())), + "2" + }); + XSingleton.singleton.AddLog("url = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + dictionary["url"] = text; + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + break; + } + case 10u: + XSingleton.singleton.OpenHtmlUrl("HordeInsideAddress"); + break; + case 11u: + { + PtcC2G_CancelRedDotReq ptcC2G_CancelRedDotReq = new PtcC2G_CancelRedDotReq(); + ptcC2G_CancelRedDotReq.Data.systemid = (uint)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Questionnaire); + XSingleton.singleton.Send(ptcC2G_CancelRedDotReq); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Questionnaire, false); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GameCommunity, true); + GameObject gameObject2 = btn.gameObject.transform.Find("RedPoint").gameObject; + gameObject2.SetActive(false); + int questionnaireStage = this.GetQuestionnaireStage(); + dictionary["url"] = XSingleton.singleton.GetValue(string.Format("QuestionnaireUrl{0}", questionnaireStage)); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + break; + } + case 12u: + this.OnReplayClick(btn); + break; + case 13u: + DlgBase.singleton.SetVisible(true, true); + break; + case 14u: + { + XSingleton.singleton.CloseSysAndNoticeServer((uint)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GC_XiaoYueGuanJia)); + btn.gameObject.transform.Find("RedPoint").gameObject.SetActive(false); + string text2 = ((int)Application.platform == 11) ? "1" : "0"; + string text = string.Format("{0}?game_id={1}&opencode={2}&sig={3}×tamp={4}&role_id={5}&partition_id={6}&plat_id={7}", new object[] + { + XSingleton.singleton.GetValue("XiaoYueUrl"), + XSingleton.singleton.GetValue("XiaoYueGameID"), + XSingleton.singleton.OpenCode, + XSingleton.singleton.XPlatform.GetMD5(string.Format("{0}{1}", XSingleton.singleton.MSDKKey, XSingleton.singleton.GetTimeStamp())), + XSingleton.singleton.GetTimeStamp(), + XSingleton.singleton.GetRoleId(), + XSingleton.singleton.ServerID, + text2 + }); + XSingleton.singleton.AddLog("url = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + dictionary["url"] = text; + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + break; + } + case 15u: + XSingleton.singleton.OpenHtmlUrl("LibaozhongxinUrl"); + break; + } + } + return true; + } + + private bool LoginStateTrue(GameCommunityTable.RowData data) + { + bool flag = (int)Application.platform == 7 || Application.platform == 0; + bool result; + if (flag) + { + result = true; + } + else + { + switch (XSingleton.singleton.Channel) + { + case XAuthorizationChannel.XAuthorization_QQ: + result = data.QQ; + break; + case XAuthorizationChannel.XAuthorization_WeChat: + result = data.WX; + break; + case XAuthorizationChannel.XAuthorization_Guest: + result = data.YK; + break; + default: + result = false; + break; + } + } + return result; + } + + public bool IsSuportReplay() + { + bool flag = (int)Application.platform == 8; + return flag && !this.isIpadMode() && XSingleton.singleton.XPlatform.CheckStatus("is_screen_record_available", ""); + } + + private bool isIpadMode() + { + return false; + } + + private bool OnReplayClick(IXUIButton btn) + { + bool flag = DlgBase.singleton.isPlaying || DlgBase.singleton.isReadyPlaying; + if (flag) + { + XSingleton.singleton.AddLog("Close Replay..", null, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.OnStopClick(null); + } + else + { + bool isBroadcast = DlgBase.singleton.isBroadcast; + if (isBroadcast) + { + XSingleton.singleton.AddLog("replay isBroadcasting", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Replay_IsBroadcasting"), "fece00"); + } + else + { + bool flag2 = XSingleton.singleton.XPlatform.CheckStatus("is_broadcasting", ""); + XSingleton.singleton.AddLog("open: ", flag2.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = !flag2; + if (flag3) + { + DlgBase.singleton.OpenRepaly(); + } + else + { + bool flag4 = (int) Application.platform == 7; + if (flag4) + { + DlgBase.singleton.Show(true); + } + } + } + } + return true; + } + + private int GetQuestionnaireStage() + { + uint level = XSingleton.singleton.XPlayerData.Level; + SeqList sequenceList = XSingleton.singleton.GetSequenceList("QuestionnaireLevel", true); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag = (ulong)level >= (ulong)((long)sequenceList[i, 0]) && (ulong)level <= (ulong)((long)sequenceList[i, 1]); + if (flag) + { + return i + 1; + } + } + return 0; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GameCommunityHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GameCommunityHandler.cs.meta new file mode 100644 index 00000000..fa0bf02d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GameCommunityHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a74d05d2a25d8b45ad75e55d7aa81d7 +timeCreated: 1611403989 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GameSystem.meta b/Client/Assets/Scripts/XMainClient/UI/GameSystem.meta new file mode 100644 index 00000000..0cafc76d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GameSystem.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 77e6f7b6b85b95c4794ce41ed992e45a +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GameSystem/SkillDlgPromoteHandler.cs b/Client/Assets/Scripts/XMainClient/UI/GameSystem/SkillDlgPromoteHandler.cs new file mode 100644 index 00000000..ec15c8e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GameSystem/SkillDlgPromoteHandler.cs @@ -0,0 +1,783 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI.GameSystem +{ + internal class SkillDlgPromoteHandler : DlgHandlerBase + { + private XSkillTreeDocument _doc = null; + + public int CurrStage; + + public bool IsShowAwake = false; + + private GameObject m_NormalTurnPro; + + private GameObject m_PreviewWindow; + + private GameObject m_AwakePage; + + private IXUILabel m_AwakePoint; + + private IXUILabel m_AwakeTips; + + private IXUITexture m_AwakeBgTex; + + private IXUIButton m_TurnAwakeBtn; + + private IXUILabel m_TurnAwakeBtnText; + + private IXUILabel m_AwakeDesc; + + private int _awakePro; + + private int _pro_L; + + private int _pro_R; + + private int _pro_V; + + private int _currChoosePro; + + private int _currSkill; + + private IXUIButton m_PreviewClose; + + private IXUITexture m_BgTex; + + private readonly string TEXPATH = "atlas/UI/common/ProfPic"; + + private string _texPath; + + private GameObject m_BranchGo1; + + private GameObject m_BranchGo2; + + private GameObject m_BranchGo3; + + private IXUIButton m_PreViewBtn; + + private IXUIButton m_TurnProBtn; + + private IXUILabel m_CurrSelectPro; + + private IXUILabel m_TurnProTips; + + private IXUILabel m_TurnProBtnText; + + private IXUICheckBox m_ProChoose_L; + + private IXUICheckBox m_ProChoose_R; + + private IXUICheckBox m_ProChoose_V; + + private XUIPool m_PreViewSkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITexture m_Snapshot; + + private RenderTexture skillPreView; + + public IXUISprite m_PlayBtn; + + private IXUILabel m_SkillName; + + private IXUILabel m_SkillDesc; + + private XUIPool m_Star_L = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_Star_R = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_Star_V = new XUIPool(XSingleton.singleton.m_uiTool); + + private int old_branch = 0; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + this.m_PreviewWindow = base.PanelObject.transform.Find("PreviewWindow").gameObject; + this.m_PreviewClose = (base.PanelObject.transform.Find("PreviewWindow/Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BgTex = (base.PanelObject.transform.Find("Bg/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_BranchGo1 = base.PanelObject.transform.Find("Bg/TurnBranch1").gameObject; + this.m_BranchGo2 = base.PanelObject.transform.Find("Bg/TurnBranch2").gameObject; + this.m_BranchGo3 = base.PanelObject.transform.Find("Bg/TurnBranch3").gameObject; + this.m_PreViewBtn = (base.PanelObject.transform.Find("Bg/PreviewBtn").GetComponent("XUIButton") as IXUIButton); + this.m_TurnProBtn = (base.PanelObject.transform.Find("Bg/TurnProBtn").GetComponent("XUIButton") as IXUIButton); + this.m_CurrSelectPro = (base.PanelObject.transform.Find("Bg/ProName").GetComponent("XUILabel") as IXUILabel); + this.m_TurnProTips = (base.PanelObject.transform.Find("Bg/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_TurnProBtnText = (this.m_TurnProBtn.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.PanelObject.transform.Find("PreviewWindow/ShowFrame/ShowSkill/Tpl"); + this.m_PreViewSkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_Snapshot = (base.PanelObject.transform.Find("PreviewWindow/ShowFrame/Snapshot").GetComponent("XUITexture") as IXUITexture); + this.m_PlayBtn = (base.PanelObject.transform.Find("PreviewWindow/Play").GetComponent("XUISprite") as IXUISprite); + this.m_SkillName = (base.PanelObject.transform.Find("PreviewWindow/ShowFrame/SkillDesc/SkillName").GetComponent("XUILabel") as IXUILabel); + this.m_SkillDesc = (base.PanelObject.transform.Find("PreviewWindow/ShowFrame/SkillDesc/SkillDesc").GetComponent("XUILabel") as IXUILabel); + this.m_NormalTurnPro = base.PanelObject.transform.Find("Bg").gameObject; + this.m_AwakePage = base.PanelObject.transform.Find("Awake").gameObject; + this.m_AwakePoint = (base.PanelObject.transform.Find("Awake/Point/value").GetComponent("XUILabel") as IXUILabel); + this.m_AwakeTips = (base.PanelObject.transform.Find("Awake/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_AwakeBgTex = (base.PanelObject.transform.Find("Awake/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_TurnAwakeBtn = (base.PanelObject.transform.Find("Awake/TurnAwakeBtn").GetComponent("XUIButton") as IXUIButton); + this.m_TurnAwakeBtnText = (this.m_TurnAwakeBtn.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + this.m_AwakeDesc = (base.PanelObject.transform.Find("Awake/Text").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_PreviewClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWindowCloseClicked)); + this.m_PreViewBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPreViewBtnClick)); + this.m_PlayBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPlayBtnClick)); + } + + public bool OnWindowCloseClicked(IXUIButton go) + { + this.m_PreviewWindow.SetActive(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this.skillPreView == null; + if (flag) + { + this.skillPreView = new RenderTexture(634, 357, 1, 0, 0); + this.skillPreView.name = "SkillPreview"; + this.skillPreView.autoGenerateMips = false; + this.skillPreView.Create(); + } + this.m_Snapshot.SetRuntimeTex(this.skillPreView, true); + this._doc.SetSkillPreviewTexture(this.skillPreView); + this.SetUVRectangle(); + this.m_PreviewWindow.SetActive(false); + bool flag2 = !this.IsShowAwake; + if (flag2) + { + bool flag3 = !this.m_NormalTurnPro.activeSelf; + if (flag3) + { + this.m_NormalTurnPro.SetActive(true); + } + bool activeSelf = this.m_AwakePage.activeSelf; + if (activeSelf) + { + this.m_AwakePage.SetActive(false); + } + this.CalPro(); + this.SetInfo(); + } + else + { + bool activeSelf2 = this.m_NormalTurnPro.activeSelf; + if (activeSelf2) + { + this.m_NormalTurnPro.SetActive(false); + } + bool flag4 = !this.m_AwakePage.activeSelf; + if (flag4) + { + this.m_AwakePage.SetActive(true); + } + this.SetAwakeInfo(); + } + } + + protected override void OnHide() + { + this.m_BgTex.SetTexturePath(""); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this._doc.SetSkillPreviewTexture(DlgBase.singleton.skillPreView); + XSingleton.singleton.SkillShowEnd(this._doc.Dummy); + } + bool flag2 = this.skillPreView != null; + if (flag2) + { + this.m_Snapshot.SetRuntimeTex(null, true); + this.skillPreView = null; + } + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void CalPro() + { + int num = 1; + for (int i = 0; i < this.CurrStage; i++) + { + num *= 10; + } + this._pro_L = num + (int)XSingleton.singleton.XPlayerData.TypeID; + this._pro_R = num * 2 + (int)XSingleton.singleton.XPlayerData.TypeID; + this._pro_V = num * 3 + (int)XSingleton.singleton.XPlayerData.TypeID; + bool flag = !XSingleton.singleton.GetProfIsInLeft(this._pro_L); + if (flag) + { + int pro_L = this._pro_L; + this._pro_L = this._pro_R; + this._pro_R = pro_L; + } + bool flag2 = this._currChoosePro != this._pro_L && this._currChoosePro != this._pro_R && this._currChoosePro != this._pro_V; + if (flag2) + { + this._currChoosePro = this._pro_L; + this.m_CurrSelectPro.SetText(XSingleton.singleton.GetProfName(this._currChoosePro)); + } + } + + private void ChangeGo() + { + bool flag = XSingleton.singleton.IsExistProf(this._pro_L); + bool flag2 = XSingleton.singleton.IsExistProf(this._pro_R); + bool flag3 = XSingleton.singleton.IsExistProf(this._pro_V); + bool flag4 = flag3; + if (flag4) + { + flag3 = XSkillTreeDocument.IsAvengerTaskDone(this._pro_V); + } + int num = 0; + bool flag5 = flag; + if (flag5) + { + num++; + } + bool flag6 = flag2; + if (flag6) + { + num++; + } + bool flag7 = flag3; + if (flag7) + { + num++; + } + bool flag8 = num != this.old_branch; + if (flag8) + { + this.m_BranchGo1.SetActive(1 == num); + this.m_BranchGo2.SetActive(2 == num); + this.m_BranchGo3.SetActive(3 == num); + } + Transform transform = base.PanelObject.transform.Find(string.Format("Bg/TurnBranch{0}", num)); + bool flag9 = transform != null; + if (flag9) + { + bool flag10 = flag; + if (flag10) + { + GameObject gameObject = transform.Find("ProDetail1").gameObject; + this.SetProGo(gameObject, this._pro_L, num); + } + bool flag11 = flag2; + if (flag11) + { + GameObject gameObject2 = transform.Find("ProDetail2").gameObject; + this.SetProGo(gameObject2, this._pro_R, num); + } + bool flag12 = flag3; + if (flag12) + { + GameObject gameObject3 = transform.Find("ProDetail3").gameObject; + this.SetProGo(gameObject3, this._pro_V, num); + } + } + string profPic = XSingleton.singleton.GetProfPic((!flag3) ? this._pro_L : this._pro_V); + this._texPath = string.Format("{0}/{1}", this.TEXPATH, profPic); + this.m_BgTex.SetTexturePath(this._texPath); + this.old_branch = num; + } + + private void SetInfo() + { + this.ChangeGo(); + this.SetProfBtnInfo(); + } + + private void SetProfBtnInfo() + { + bool flag = this.IsAvengr(this._currChoosePro); + if (flag) + { + bool flag2 = XSkillTreeDocument.IsAvengerTaskDone(this._currChoosePro); + if (flag2) + { + this.m_TurnProTips.SetVisible(false); + this.m_TurnProBtnText.SetText(XStringDefineProxy.GetString("TurnProfessionBtnTips2")); + this.m_TurnProBtn.SetGrey(true); + this.m_TurnProBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTurnProBtnClick)); + } + else + { + this.m_TurnProTips.SetVisible(false); + this.m_TurnProBtnText.SetText(XStringDefineProxy.GetString("TurnProfessionBtnTips2")); + this.m_TurnProBtn.SetGrey(false); + this.m_TurnProBtn.RegisterClickEventHandler(null); + } + } + else + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + uint taskid = (uint)this._doc.TurnProTaskIDList[this.CurrStage - 1]; + bool flag3 = specificDocument.TaskRecord.IsTaskFinished(taskid); + if (flag3) + { + this.m_TurnProTips.SetVisible(false); + this.m_TurnProBtnText.SetText(XStringDefineProxy.GetString("TurnProfessionBtnTips2")); + this.m_TurnProBtn.SetGrey(true); + this.m_TurnProBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTurnProBtnClick)); + } + else + { + this.m_TurnProTips.SetVisible(true); + this.m_TurnProTips.SetText(this._doc.TransferLimit[this.CurrStage].ToString()); + this.m_TurnProBtnText.SetText(XStringDefineProxy.GetString("TurnProfessionBtnTips1")); + bool flag4 = XSingleton.singleton.XPlayerData.Level >= this._doc.TransferLimit[this.CurrStage]; + if (flag4) + { + this.m_TurnProBtn.SetGrey(true); + this.m_TurnProBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoToTask)); + } + else + { + this.m_TurnProBtn.SetGrey(false); + this.m_TurnProBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCanNotGoToTaskClick)); + } + } + } + } + + private void SetAwakeInfo() + { + int num = 1; + for (int i = 0; i < this.CurrStage; i++) + { + num *= 10; + } + this._awakePro = num + (int)XSingleton.singleton.XPlayerData.TypeID; + string profPic = XSingleton.singleton.GetProfPic(this._awakePro); + this._texPath = string.Format("{0}/{1}", this.TEXPATH, profPic); + this.m_AwakeBgTex.SetTexturePath(this._texPath); + this.m_AwakeDesc.SetText(XSingleton.singleton.GetProfDesc(this._awakePro)); + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + bool flag = false; + bool flag2 = this.CurrStage - 1 < this._doc.TurnProTaskIDList.Count; + if (flag2) + { + uint taskid = (uint)this._doc.TurnProTaskIDList[this.CurrStage - 1]; + flag = specificDocument.TaskRecord.IsTaskFinished(taskid); + } + else + { + XSingleton.singleton.AddLog("GlobalConfig 觉醒任务ID未配置!", null, null, null, null, null, XDebugColor.XDebug_None); + } + bool flag3 = flag; + if (flag3) + { + this.m_AwakeTips.SetVisible(false); + this.m_TurnAwakeBtnText.SetText(XStringDefineProxy.GetString("TurnAwakeBtnTips2")); + this.m_TurnAwakeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAwakeComplete)); + } + else + { + this.m_AwakeTips.SetVisible(true); + this.m_AwakeTips.SetText(XStringDefineProxy.GetString("TurnAwakeTips")); + this.m_TurnAwakeBtnText.SetText(XStringDefineProxy.GetString("TurnProfessionBtnTips1")); + bool flag4 = XSingleton.singleton.XPlayerData.Level >= this._doc.TransferLimit[this.CurrStage]; + if (flag4) + { + this.m_TurnAwakeBtn.SetGrey(true); + this.m_TurnAwakeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoToAwakeTask)); + } + else + { + this.m_TurnAwakeBtn.SetGrey(false); + this.m_TurnAwakeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCanNotGoToAwakeTaskClick)); + } + } + int num2 = (int)XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.AWAKE_POINT); + int @int = XSingleton.singleton.GetInt("AwakeNeedPoint"); + this.m_AwakePoint.SetText(string.Format("{0}{1}/{2}", (num2 < @int) ? "[e60012]" : "", num2, @int)); + } + + private void SetProGo(GameObject go, int pro, int branch) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Desc").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetProfIcon(pro); + ixuilabel.SetText(XSingleton.singleton.GetProfName(pro)); + ixuilabel2.SetText(XSingleton.singleton.GetProfDesc(pro)); + IXUICheckBox ixuicheckBox = go.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)pro); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnProClick)); + bool flag = pro == this._pro_L; + XUIPool xuipool; + if (flag) + { + this.m_ProChoose_L = ixuicheckBox; + bool flag2 = branch != this.old_branch; + if (flag2) + { + Transform transform = base.PanelObject.transform.Find(string.Format("Bg/TurnBranch{0}/ProDetail1/Star/Tpl", branch)); + this.m_Star_L.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + } + xuipool = this.m_Star_L; + } + else + { + bool flag3 = pro == this._pro_V; + if (flag3) + { + this.m_ProChoose_V = ixuicheckBox; + bool flag4 = branch != this.old_branch; + if (flag4) + { + Transform transform2 = base.PanelObject.transform.Find(string.Format("Bg/TurnBranch{0}/ProDetail3/Star/Tpl", branch)); + this.m_Star_V.SetupPool(transform2.parent.gameObject, transform2.gameObject, 5u, false); + } + xuipool = this.m_Star_V; + } + else + { + this.m_ProChoose_R = ixuicheckBox; + bool flag5 = branch != this.old_branch; + if (flag5) + { + Transform transform3 = base.PanelObject.transform.Find(string.Format("Bg/TurnBranch{0}/ProDetail2/Star/Tpl", branch)); + this.m_Star_R.SetupPool(transform3.parent.gameObject, transform3.gameObject, 5u, false); + } + xuipool = this.m_Star_R; + } + } + ixuicheckBox.bChecked = (pro == this._currChoosePro); + xuipool.ReturnAll(false); + Vector3 tplPos = xuipool.TplPos; + uint profOperateLevel = XSingleton.singleton.GetProfOperateLevel(pro); + int @int = XSingleton.singleton.GetInt("ProfOperateLevelMax"); + for (int i = 0; i < @int; i++) + { + GameObject gameObject = xuipool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(i * xuipool.TplWidth), tplPos.y); + IXUISprite ixuisprite2 = gameObject.transform.Find("Star").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteName = (((long)i < (long)((ulong)profOperateLevel)) ? "BossrushStar_1" : "BossrushStar_0"); + } + } + + private bool OnProClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this._currChoosePro = (int)icb.ID; + this.m_CurrSelectPro.SetText(XSingleton.singleton.GetProfName(this._currChoosePro)); + this.SetProfBtnInfo(); + result = true; + } + return result; + } + + private bool IsAvengr(int prof) + { + return prof > 10 && prof / 10 % 10 == 3; + } + + private bool OnPreViewBtnClick(IXUIButton btn) + { + this.ShowPreView(); + return true; + } + + private void ShowPreView() + { + this.m_PreviewWindow.SetActive(true); + this.SetupPreViewTab(); + this.SetupPreViewInfo(); + } + + private bool OnPreViewCheckBoxClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this._currChoosePro = (int)icb.ID; + this.m_CurrSelectPro.SetText(XSingleton.singleton.GetProfName(this._currChoosePro)); + bool flag2 = this._currChoosePro == this._pro_L; + if (flag2) + { + this.m_ProChoose_L.bChecked = true; + } + else + { + bool flag3 = this._currChoosePro == this._pro_V; + if (flag3) + { + this.m_ProChoose_V.bChecked = true; + } + else + { + this.m_ProChoose_R.bChecked = true; + } + } + this.SetupPreViewInfo(); + result = true; + } + return result; + } + + private void SetupPreViewTab() + { + IXUICheckBox ixuicheckBox = base.PanelObject.transform.Find("PreviewWindow/ShowFrame/Tab1").GetComponent("XUICheckBox") as IXUICheckBox; + IXUICheckBox ixuicheckBox2 = base.PanelObject.transform.Find("PreviewWindow/ShowFrame/Tab2").GetComponent("XUICheckBox") as IXUICheckBox; + IXUICheckBox ixuicheckBox3 = base.PanelObject.transform.Find("PreviewWindow/ShowFrame/Tab3").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)this._pro_L); + ixuicheckBox2.ID = (ulong)((long)this._pro_R); + ixuicheckBox3.ID = (ulong)((long)this._pro_V); + bool flag = this._currChoosePro == this._pro_L; + if (flag) + { + ixuicheckBox.bChecked = true; + } + else + { + bool flag2 = this._currChoosePro == this._pro_R; + if (flag2) + { + ixuicheckBox2.bChecked = true; + } + else + { + ixuicheckBox3.bChecked = true; + } + } + bool flag3 = XSingleton.singleton.IsExistProf(this._pro_L); + bool flag4 = XSingleton.singleton.IsExistProf(this._pro_R); + bool flag5 = XSingleton.singleton.IsExistProf(this._pro_V); + bool flag6 = flag5; + if (flag6) + { + flag5 = XSkillTreeDocument.IsAvengerTaskDone(this._pro_V); + } + ixuicheckBox.gameObject.SetActive(flag3); + ixuicheckBox2.gameObject.SetActive(flag4); + ixuicheckBox3.gameObject.SetActive(flag5); + bool flag7 = flag3; + if (flag7) + { + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnPreViewCheckBoxClick)); + string profName = XSingleton.singleton.GetProfName(this._pro_L); + IXUILabel ixuilabel = ixuicheckBox.gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(profName); + ixuilabel = (ixuicheckBox.gameObject.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(profName); + } + bool flag8 = flag4; + if (flag8) + { + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnPreViewCheckBoxClick)); + string profName2 = XSingleton.singleton.GetProfName(this._pro_R); + IXUILabel ixuilabel2 = ixuicheckBox2.gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(profName2); + ixuilabel2 = (ixuicheckBox2.gameObject.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel); + ixuilabel2.SetText(profName2); + } + bool flag9 = flag5; + if (flag9) + { + ixuicheckBox3.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnPreViewCheckBoxClick)); + string profName3 = XSingleton.singleton.GetProfName(this._pro_V); + IXUILabel ixuilabel3 = ixuicheckBox3.gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(profName3); + ixuilabel3 = (ixuicheckBox3.gameObject.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel); + ixuilabel3.SetText(profName3); + } + } + + private void SetupPreViewInfo() + { + List profSkillID = XSingleton.singleton.GetProfSkillID(this._currChoosePro); + this.m_PreViewSkillPool.ReturnAll(false); + Vector3 tplPos = this.m_PreViewSkillPool.TplPos; + IXUICheckBox ixuicheckBox = null; + for (int i = 0; i < profSkillID.Count; i++) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(profSkillID[i], 0u); + GameObject gameObject = this.m_PreViewSkillPool.FetchGameObject(false); + gameObject.name = profSkillID[i].ToString(); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * this.m_PreViewSkillPool.TplHeight)); + IXUISprite ixuisprite = gameObject.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + bool flag = skillConfig.SkillType == 2; + if (flag) + { + ixuisprite.SetSprite("JN_dk_0"); + } + else + { + ixuisprite.SetSprite("JN_dk"); + } + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(skillConfig.Icon, skillConfig.Atlas, false); + IXUICheckBox ixuicheckBox2 = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ID = (ulong)profSkillID[i]; + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSkillPreViewClick)); + bool flag2 = i == 0; + if (flag2) + { + this._currSkill = (int)profSkillID[i]; + ixuicheckBox = ixuicheckBox2; + this.SetupSkillInfo(); + } + } + bool flag3 = ixuicheckBox != null; + if (flag3) + { + ixuicheckBox.bChecked = true; + } + } + + private bool OnSkillPreViewClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this._currSkill = (int)icb.ID; + this.SetupSkillInfo(); + result = true; + } + return result; + } + + private void SetupSkillInfo() + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig((uint)this._currSkill, 0u); + this.m_SkillName.SetText(skillConfig.ScriptName); + this.m_SkillDesc.SetText(skillConfig.CurrentLevelDescription); + this.m_PlayBtn.SetVisible(true); + XSingleton.singleton.SkillShowEnd(this._doc.Dummy); + XSingleton.singleton.SkillShowBegin(this._doc.Dummy, this._doc.BlackHouseCamera); + } + + private void OnPlayBtnClick(IXUISprite iSp) + { + this.PlaySkill(this._currSkill); + } + + private void PlaySkill(int pro) + { + this.m_PlayBtn.SetVisible(false); + XSingleton.singleton.ShowSkill(this._doc.Dummy, (uint)this._currSkill, 0u); + } + + protected bool OnTurnProBtnClick(IXUIButton go) + { + DlgBase.singleton._bHasGrey = false; + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabels(string.Format(XStringDefineProxy.GetString(XStringDefine.SKILL_WILL_PROMOTE), XSingleton.singleton.GetProfName(this._currChoosePro)), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL)); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnPromoteConfirmed), null); + DlgBase.singleton.SetTweenTargetAndPlay(DlgBase.singleton.uiBehaviour.gameObject); + return true; + } + + private bool OnPromoteConfirmed(IXUIButton go) + { + RpcC2G_ChooseProfession rpcC2G_ChooseProfession = new RpcC2G_ChooseProfession(); + rpcC2G_ChooseProfession.oArg.prof = (RoleType)this._currChoosePro; + XSingleton.singleton.Send(rpcC2G_ChooseProfession); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnGoToTask(IXUIButton btn) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_HALL; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SKILL_HALL_REQUIRED"), "fece00"); + result = true; + } + else + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.AddLog("Find Npc ", this._doc.NpcID[(int)(XSingleton.singleton.XPlayerData.TypeID % 10u - 1u)].ToString(), null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc((uint)this._doc.NpcID[(int)(XSingleton.singleton.XPlayerData.TypeID % 10u - 1u)]); + result = true; + } + return result; + } + + private bool OnCanNotGoToTaskClick(IXUIButton btn) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TURNPROF_LEVELFAIL"), "fece00"); + return true; + } + + public void SetUVRectangle() + { + Rect rect = this._doc.BlackHouseCamera.rect; + rect.y = (rect.y * 357f + 1f) / 357f; + rect.height = (rect.height * 357f - 2f) / 357f; + this.m_Snapshot.SetUVRect(rect); + } + + private bool OnAwakeComplete(IXUIButton btn) + { + XSingleton.singleton.AddLog("Awake Completed", null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2G_ChooseProfession rpcC2G_ChooseProfession = new RpcC2G_ChooseProfession(); + rpcC2G_ChooseProfession.oArg.prof = (RoleType)this._awakePro; + XSingleton.singleton.Send(rpcC2G_ChooseProfession); + return true; + } + + private bool OnGoToAwakeTask(IXUIButton btn) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_HALL; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SKILL_HALL_REQUIRED"), "fece00"); + result = true; + } + else + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.AddLog("Find Npc ", this._doc.NpcID[(int)(XSingleton.singleton.XPlayerData.TypeID % 10u - 1u)].ToString(), null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc((uint)this._doc.NpcID[(int)(XSingleton.singleton.XPlayerData.TypeID % 10u - 1u)]); + result = true; + } + return result; + } + + private bool OnCanNotGoToAwakeTaskClick(IXUIButton btn) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TURNAWAKE_LEVELFAIL"), "fece00"); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GameSystem/SkillDlgPromoteHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GameSystem/SkillDlgPromoteHandler.cs.meta new file mode 100644 index 00000000..3a393e3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GameSystem/SkillDlgPromoteHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f6345300aa83cf4d9a476ba56bcce9a +timeCreated: 1611403516 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs new file mode 100644 index 00000000..8b855f85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs @@ -0,0 +1,40 @@ +using System; +using UnityEngine; + +namespace XMainClient.UI +{ + public class GuildArenaBattleDuelInfo + { + private Transform transfrom; + + public GuildArenaBattleDuelTeamInfo BlueInfo; + + public GuildArenaBattleDuelTeamInfo RedInfo; + + public void Init(Transform t) + { + this.transfrom = t; + this.BlueInfo = new GuildArenaBattleDuelTeamInfo(); + this.BlueInfo.Init(this.transfrom.Find("Blue")); + this.RedInfo = new GuildArenaBattleDuelTeamInfo(); + this.RedInfo.Init(this.transfrom.Find("Red")); + } + + public void SetVisible(bool active) + { + this.transfrom.gameObject.SetActive(active); + } + + public void Reset() + { + this.BlueInfo.Reset(); + this.RedInfo.Reset(); + } + + public void Destroy() + { + this.BlueInfo = null; + this.RedInfo = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs.meta new file mode 100644 index 00000000..bf97a98e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 919462975f8595f4da996c8b090b2339 +timeCreated: 1611404143 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs new file mode 100644 index 00000000..63958e78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + public class GuildArenaBattleDuelTeamInfo + { + private Transform transform; + + private IXUILabel m_damageLabel; + + private IXUILabel m_killLabel; + + private List m_scoreSprites = new List(); + + public void Init(Transform t) + { + this.transform = t; + this.m_damageLabel = (this.transform.Find("Damage").GetComponent("XUILabel") as IXUILabel); + this.m_killLabel = (this.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel); + string format = "Score/Score{0}/Win"; + string format2 = "Score/Score{0}/Lose"; + for (int i = 1; i < 4; i++) + { + IXUISprite item = this.transform.Find(string.Format(format, i)).GetComponent("XUISprite") as IXUISprite; + this.m_scoreSprites.Add(item); + IXUISprite ixuisprite = this.transform.Find(string.Format(format2, i)).GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetAlpha(0f); + } + this.Reset(); + } + + public void Set(GVGCombatInfo info) + { + this.Set(info.DamageString, info.KillCountString, info.Score); + } + + public void Reset() + { + this.Set("0", "0", 0); + } + + private void Set(string damage, string kill, int score) + { + this.m_damageLabel.SetText(damage); + this.m_killLabel.SetText(kill); + int i = 0; + int count = this.m_scoreSprites.Count; + while (i < count) + { + this.m_scoreSprites[i].SetAlpha((score > i) ? 1f : 0f); + i++; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs.meta new file mode 100644 index 00000000..6d90f097 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaBattleDuelTeamInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14d8a4dde45b0e441af160fe9038b938 +timeCreated: 1611403260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatHandle.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatHandle.cs new file mode 100644 index 00000000..2e45d867 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatHandle.cs @@ -0,0 +1,264 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaCombatHandle : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Guild/GuildArena/CombatFrame"; + } + } + + private Transform m_CombatPanel; + + private Transform m_NaPanel; + + private XUITabControl m_tabControl = new XUITabControl(); + + private List m_GuildCombat = new List(); + + private GuildArenaGuildInfo m_GuildCup; + + private IXUILabel m_combatTips; + + private XGuildArenaDocument _Doc = null; + + private IXUISprite m_honorSprite; + + private IXUILabel m_naLabel; + + private IXUIButton m_enterBattle; + + private IXUIButton m_showRank; + + private IXUILabel m_RegistrationCount; + + public override void RefreshData() + { + base.RefreshData(); + bool bInArenaTime = this._Doc.bInArenaTime; + if (bInArenaTime) + { + this.m_RegistrationCount.SetVisible(true); + this.m_CombatPanel.gameObject.SetActive(true); + this.m_NaPanel.gameObject.SetActive(false); + this.RefreshMessage(); + this.RefreshCombatHandle(); + } + else + { + this.m_RegistrationCount.SetVisible(false); + this.m_CombatPanel.gameObject.SetActive(false); + this.m_NaPanel.gameObject.SetActive(true); + } + bool flag = this._Doc.bHasAvailableJion && this._Doc.VisibleEnterBattle; + if (flag) + { + this.m_enterBattle.SetVisible(true); + uint canEnterBattle = this._Doc.CanEnterBattle; + if (canEnterBattle - 1u > 1u) + { + if (canEnterBattle != 3u) + { + this.m_enterBattle.SetGrey(false); + } + else + { + this.m_enterBattle.SetGrey(false); + } + } + else + { + this.m_enterBattle.SetGrey(true); + } + } + else + { + this.m_enterBattle.SetVisible(false); + } + } + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + this.m_CombatPanel = base.PanelObject.transform.Find("Combat"); + this.m_NaPanel = base.PanelObject.transform.Find("NA"); + this.m_naLabel = (base.PanelObject.transform.Find("NA/tip").GetComponent("XUILabel") as IXUILabel); + this.m_naLabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_COMBAT_NA")); + Transform tabTpl = base.PanelObject.transform.Find("Combat/Tabs/TabTpl"); + this.m_tabControl.SetTabTpl(tabTpl); + this.m_GuildCup = DlgHandlerBase.EnsureCreate(ref this.m_GuildCup, base.PanelObject.transform.Find("Combat/Cup").gameObject, null, true); + this.m_combatTips = (base.PanelObject.transform.Find("Combat/txt_TimeLabel").GetComponent("XUILabel") as IXUILabel); + this.m_honorSprite = (base.PanelObject.transform.Find("Combat/honor").GetComponent("XUISprite") as IXUISprite); + this.m_enterBattle = (base.PanelObject.transform.Find("Combat/LetMeDie").GetComponent("XUIButton") as IXUIButton); + this.m_enterBattle.SetVisible(false); + this.m_showRank = (base.PanelObject.transform.Find("TopRankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_RegistrationCount = (base.PanelObject.transform.Find("Title/Period").GetComponent("XUILabel") as IXUILabel); + this.m_RegistrationCount.SetVisible(false); + this.InitCombatHandle(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_enterBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterBattleClick)); + this.m_showRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowRankClick)); + } + + private bool OnShowRankClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool OnEnterBattleClick(IXUIButton btn) + { + bool flag = this._Doc.CanEnterBattle != 1u && this._Doc.CanEnterBattle != 2u; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_ARENA_OUTTIME"), "fece00"); + result = false; + } + else + { + this._Doc.SendGuildArenaJoinBattle(); + result = false; + } + return result; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + this.m_RegistrationCount.SetText(XStringDefineProxy.GetString("CROSS_GVG_Registration", new object[] + { + this._Doc.RegistrationCount + })); + this._Doc.SendGuildArenaInfo(); + } + + public override void OnUnload() + { + this.UnLoadCombatHandle(ref this.m_GuildCombat); + DlgHandlerBase.EnsureUnload(ref this.m_GuildCup); + bool flag = this.m_tabControl != null; + if (flag) + { + this.m_tabControl = null; + } + base.OnUnload(); + } + + private void InitCombatHandle() + { + this.CreateCombatHandle(0, 4); + this.CreateCombatHandle(1, 2); + this.CreateCombatHandle(2, 1); + } + + private void UnLoadCombatHandle(ref List guildCombats) + { + bool flag = guildCombats == null; + if (!flag) + { + int i = 0; + int count = guildCombats.Count; + while (i < count) + { + bool flag2 = guildCombats[i] != null; + if (flag2) + { + guildCombats[i].OnUnload(); + guildCombats[i] = null; + } + i++; + } + guildCombats.Clear(); + guildCombats = null; + } + } + + private void CreateCombatHandle(int combat, int size) + { + for (int i = 0; i < size; i++) + { + string text = string.Format("Combat/Battle/Battle_{0}_{1}", combat, i); + GuildArenaCombatInfo guildArenaCombatInfo = null; + guildArenaCombatInfo = DlgHandlerBase.EnsureCreate(ref guildArenaCombatInfo, base.PanelObject.transform.Find(text).gameObject, null, true); + guildArenaCombatInfo.Set(combat, i); + this.m_GuildCombat.Add(guildArenaCombatInfo); + } + } + + private void RefreshCombatHandle() + { + this.RefreshTitleHandle(); + int i = 0; + int count = this.m_GuildCombat.Count; + while (i < count) + { + this.m_GuildCombat[i].SetCombatGroup((uint)this._Doc.SelectWarIndex); + i++; + } + uint battleID = 7u; + ulong arenaWinnerGuildID = this._Doc.GetArenaWinnerGuildID((uint)this._Doc.SelectWarIndex, battleID); + this.m_GuildCup.SetGuildMember(arenaWinnerGuildID, arenaWinnerGuildID, true); + } + + private void RefreshTitleHandle() + { + string sprite = string.Empty; + switch (this._Doc.SelectWarIndex) + { + case 1: + sprite = "guildpvp_honor_0"; + break; + case 2: + sprite = "guildpvp_honor_1"; + break; + case 3: + sprite = "guildpvp_honor_2"; + break; + } + this.m_honorSprite.SetSprite(sprite); + this.m_honorSprite.MakePixelPerfect(); + } + + private void RefreshMessage() + { + GuildArenaState timeState = this._Doc.TimeState; + string text = string.Empty; + switch (timeState) + { + case GuildArenaState.GUILD_ARENA_NOT_BEGIN: + case GuildArenaState.GUILD_ARENA_BEGIN: + case GuildArenaState.GUILD_ARENA_BATTLE_ONE: + text = XStringDefineProxy.GetString("GUILD_ARENA_MESSAGE1"); + break; + case GuildArenaState.GUILD_ARENA_BATTLE_TWO: + text = XStringDefineProxy.GetString("GUILD_ARENA_MESSAGE2"); + break; + case GuildArenaState.GUILD_ARENA_BATTLE_FINAL: + text = XStringDefineProxy.GetString("GUILD_ARENA_MESSAGE3"); + break; + default: + text = string.Empty; + break; + } + this.m_combatTips.SetText(text); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatHandle.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatHandle.cs.meta new file mode 100644 index 00000000..0420259b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatHandle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83e338be6d361d5429b91b2c2a08b4dd +timeCreated: 1611404046 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatInfo.cs new file mode 100644 index 00000000..fea0b6e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatInfo.cs @@ -0,0 +1,128 @@ +using System; +using KKSG; +using UILib; + +namespace XMainClient.UI +{ + internal class GuildArenaCombatInfo : DlgHandlerBase + { + public uint BattleID + { + get + { + return this.m_battleID; + } + } + + private GuildArenaGuildInfo m_guildMemberA; + + private GuildArenaGuildInfo m_guildMemberB; + + private IXUIButton m_watchBtn; + + private int m_combatID; + + private int m_index; + + private uint m_battleID; + + private XGuildArenaDocument m_Doc; + + private GuildArenaGroupData m_GroupData; + + protected override void Init() + { + base.Init(); + this.m_Doc = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + this.m_watchBtn = (base.PanelObject.transform.Find("btn_Watch").GetComponent("XUIButton") as IXUIButton); + this.m_guildMemberA = DlgHandlerBase.EnsureCreate(ref this.m_guildMemberA, base.PanelObject.transform.Find("Team1").gameObject, null, true); + this.m_guildMemberB = DlgHandlerBase.EnsureCreate(ref this.m_guildMemberB, base.PanelObject.transform.Find("Team2").gameObject, null, true); + this.m_watchBtn.SetVisible(false); + } + + public void Set(int combat, int index) + { + this.m_combatID = combat; + this.m_index = index; + switch (combat) + { + case 0: + this.m_battleID = (uint)(index + 1); + break; + case 1: + this.m_battleID = (uint)(index + 5); + break; + case 2: + this.m_battleID = 7u; + break; + } + } + + public void SetCombatGroup(uint selectTabIndex) + { + this.m_GroupData = this.m_Doc.GetGuildGroup(selectTabIndex, this.BattleID); + bool flag = this.m_GroupData == null; + if (flag) + { + this.m_watchBtn.ID = 0UL; + this.SetCombatState(0u, 0u); + this.SetNextWinner(selectTabIndex); + } + else + { + this.m_watchBtn.ID = (ulong)this.m_GroupData.watchId; + this.m_guildMemberA.SetGuildMember(this.m_GroupData.guildOneId, this.m_GroupData.winerId, false); + this.m_guildMemberB.SetGuildMember(this.m_GroupData.guildTwoId, this.m_GroupData.winerId, false); + this.SetCombatState(this.m_GroupData.warstate, this.m_GroupData.watchId); + } + } + + private void SetNextWinner(uint selectTabIndex) + { + switch (this.m_battleID) + { + case 5u: + this.m_guildMemberA.SetGuildMember(this.m_Doc.GetArenaWinnerGuildID(selectTabIndex, 1u), 0UL, false); + this.m_guildMemberB.SetGuildMember(this.m_Doc.GetArenaWinnerGuildID(selectTabIndex, 2u), 0UL, false); + break; + case 6u: + this.m_guildMemberA.SetGuildMember(this.m_Doc.GetArenaWinnerGuildID(selectTabIndex, 3u), 0UL, false); + this.m_guildMemberB.SetGuildMember(this.m_Doc.GetArenaWinnerGuildID(selectTabIndex, 4u), 0UL, false); + break; + case 7u: + this.m_guildMemberA.SetGuildMember(this.m_Doc.GetArenaWinnerGuildID(selectTabIndex, 5u), 0UL, false); + this.m_guildMemberB.SetGuildMember(this.m_Doc.GetArenaWinnerGuildID(selectTabIndex, 6u), 0UL, false); + break; + } + } + + public void SetCombatState(uint state, uint watchID = 0u) + { + this.m_watchBtn.SetVisible(state == 2u && watchID > 0u); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_watchBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWatchClick)); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_guildMemberA); + DlgHandlerBase.EnsureUnload(ref this.m_guildMemberB); + base.OnUnload(); + } + + private bool OnWatchClick(IXUIButton watchBtn) + { + bool flag = watchBtn.ID > 0UL; + if (flag) + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.EnterSpectateBattle((uint)watchBtn.ID, LiveType.LIVE_GUILDBATTLE); + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatInfo.cs.meta new file mode 100644 index 00000000..980cce29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaCombatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d94a5e3ee05832648a40b3a50497b387 +timeCreated: 1611404643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatBehaviour.cs new file mode 100644 index 00000000..22f53edb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatBehaviour.cs @@ -0,0 +1,41 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildArenaDefeatBehaviour : DlgBehaviourBase + { + public GameObject mRoundResult; + + public GameObject mFinalResult; + + public IXUISprite blueSprite; + + public IXUISprite redSprite; + + public IXUISprite uiBlueAvatar; + + public IXUISprite uiRedAvatar; + + public IXUISprite mReturnSpr; + + protected internal IXUISprite mBlueGuildHeadSprite; + + protected internal IXUISprite mRedGuildHeadSprite; + + private void Awake() + { + this.mRoundResult = base.transform.Find("RoundResult").gameObject; + this.mFinalResult = base.transform.Find("FinalResult").gameObject; + this.uiBlueAvatar = (base.transform.Find("RoundResult/Blue/head").GetComponent("XUISprite") as IXUISprite); + this.uiRedAvatar = (base.transform.Find("RoundResult/Red/head").GetComponent("XUISprite") as IXUISprite); + this.blueSprite = (base.transform.Find("FinalResult/Blue/Portrait").GetComponent("XUISprite") as IXUISprite); + this.redSprite = (base.transform.Find("FinalResult/Red/Portrait").GetComponent("XUISprite") as IXUISprite); + this.mBlueGuildHeadSprite = (base.transform.Find("FinalResult/Blue/Portrait").GetComponent("XUISprite") as IXUISprite); + this.mRedGuildHeadSprite = (base.transform.Find("FinalResult/Red/Portrait").GetComponent("XUISprite") as IXUISprite); + this.mReturnSpr = (base.transform.Find("FinalResult/return").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatBehaviour.cs.meta new file mode 100644 index 00000000..3ab9e8b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d63e44c9e0ac2874e81957a26c1422fd +timeCreated: 1611404630 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs new file mode 100644 index 00000000..7fb92772 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs @@ -0,0 +1,234 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaDefeatDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/GuildArenaBattleResult"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildArenaBattleDocument _Doc; + + private XElapseTimer m_lastTime = new XElapseTimer(); + + private bool Countdown = false; + + private bool mDone = false; + + protected override void Init() + { + base.Init(); + } + + protected override void OnShow() + { + base.OnShow(); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + } + base.uiBehaviour.mRoundResult.SetActive(false); + base.uiBehaviour.mFinalResult.SetActive(false); + } + + protected override void OnHide() + { + base.OnHide(); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + } + else + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisible(true, true); + } + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + base.uiBehaviour.mReturnSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturn)); + } + + public override void OnXNGUIClick(GameObject obj, string path) + { + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.UpdateCountTime(); + } + + public void SetSmallResult(string descrption) + { + base.uiBehaviour.mRoundResult.SetActive(true); + base.uiBehaviour.mFinalResult.SetActive(false); + this.RoundResult(); + } + + private void RoundResult() + { + base.SetXUILable("RoundResult/Score/Bluenum", this._Doc.GMFGroupBlueMatchPoint.ToString()); + base.SetXUILable("RoundResult/Blue/GuildName", this._Doc.blueBattleEndData.Guild.guildname); + base.SetXUILable("RoundResult/Blue/name", this._Doc.blueBattleEndData.Role.rolename); + bool isWin = this._Doc.blueBattleEndData.isWin; + if (isWin) + { + base.uiBehaviour.mRoundResult.transform.Find("Blue/Result/Win").gameObject.SetActive(true); + base.uiBehaviour.mRoundResult.transform.Find("Blue/Result/Lose").gameObject.SetActive(false); + } + else + { + base.uiBehaviour.mRoundResult.transform.Find("Blue/Result/Win").gameObject.SetActive(false); + base.uiBehaviour.mRoundResult.transform.Find("Blue/Result/Lose").gameObject.SetActive(true); + } + base.uiBehaviour.uiBlueAvatar.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)this._Doc.blueBattleEndData.Role.profession)); + base.SetXUILable("RoundResult/Score/Rednum", this._Doc.GMFGroupRedMatchPoint.ToString()); + base.SetXUILable("RoundResult/Red/GuildName", this._Doc.redBattleEndData.Guild.guildname); + base.SetXUILable("RoundResult/Red/name", this._Doc.redBattleEndData.Role.rolename); + bool isWin2 = this._Doc.redBattleEndData.isWin; + if (isWin2) + { + base.uiBehaviour.mRoundResult.transform.Find("Red/Result/Win").gameObject.SetActive(true); + base.uiBehaviour.mRoundResult.transform.Find("Red/Result/Lose").gameObject.SetActive(false); + } + else + { + base.uiBehaviour.mRoundResult.transform.Find("Red/Result/Win").gameObject.SetActive(false); + base.uiBehaviour.mRoundResult.transform.Find("Red/Result/Lose").gameObject.SetActive(true); + } + base.uiBehaviour.uiRedAvatar.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)this._Doc.redBattleEndData.Role.profession)); + } + + public void RefreahCountTime(float time, bool Done) + { + this.m_lastTime.LeftTime = time; + this.Countdown = true; + this.mDone = Done; + } + + private void UpdateCountTime() + { + bool flag = !this.Countdown; + if (!flag) + { + this.m_lastTime.Update(); + bool flag2 = this.m_lastTime.LeftTime > 0f; + if (flag2) + { + base.SetXUILable("CountDown/Time", XSingleton.singleton.TimeFormatString((int)this.m_lastTime.LeftTime, 1, 3, 4, false, true)); + } + else + { + this.Countdown = false; + bool flag3 = this.mDone; + if (flag3) + { + this.OnReturn(null); + } + } + } + } + + private void OnReturn(IXUISprite spr) + { + XSingleton.singleton.ReqLeaveScene(); + } + + public void SetGuildResult(string descrption) + { + base.uiBehaviour.mFinalResult.SetActive(true); + base.uiBehaviour.mRoundResult.SetActive(false); + this.FinalResult(); + } + + private void FinalResult() + { + base.SetXUILable("FinalResult/ScoreBig/Bluenum", this._Doc.GMFGroupBlueMatchPoint.ToString()); + base.SetXUILable("FinalResult/Blue/GuildName", this._Doc.blueAllFightEnd.Guild.guildname); + base.uiBehaviour.mBlueGuildHeadSprite.SetSprite(XGuildDocument.GetPortraitName((int)this._Doc.blueAllFightEnd.Guild.guildicon)); + bool isWin = this._Doc.blueAllFightEnd.isWin; + if (isWin) + { + base.uiBehaviour.mFinalResult.transform.Find("Blue/Result/Win").gameObject.SetActive(true); + base.uiBehaviour.mFinalResult.transform.Find("Blue/Result/Lose").gameObject.SetActive(false); + } + else + { + base.uiBehaviour.mFinalResult.transform.Find("Blue/Result/Win").gameObject.SetActive(false); + base.uiBehaviour.mFinalResult.transform.Find("Blue/Result/Lose").gameObject.SetActive(true); + } + base.SetXUILable("FinalResult/ScoreBig/Rednum", this._Doc.GMFGroupRedMatchPoint.ToString()); + base.SetXUILable("FinalResult/Red/GuildName", this._Doc.redAllFightEnd.Guild.guildname); + base.uiBehaviour.mRedGuildHeadSprite.SetSprite(XGuildDocument.GetPortraitName((int)this._Doc.redAllFightEnd.Guild.guildicon)); + bool isWin2 = this._Doc.redAllFightEnd.isWin; + if (isWin2) + { + base.uiBehaviour.mFinalResult.transform.Find("Red/Result/Win").gameObject.SetActive(true); + base.uiBehaviour.mFinalResult.transform.Find("Red/Result/Lose").gameObject.SetActive(false); + } + else + { + base.uiBehaviour.mFinalResult.transform.Find("Red/Result/Win").gameObject.SetActive(false); + base.uiBehaviour.mFinalResult.transform.Find("Red/Result/Lose").gameObject.SetActive(true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs.meta new file mode 100644 index 00000000..07736cde --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDefeatDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 52b14d314b38cdb46a5d13d82e9c5cce +timeCreated: 1611403709 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultBehaviour.cs new file mode 100644 index 00000000..e843bc2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildArenaDuelFinalResultBehaviour : DlgBehaviourBase + { + public IXUISprite m_maskSprite; + + public IXUILabel m_timeLabel; + + public GuildArenadDuelFinalInfo m_BlueInfo = new GuildArenadDuelFinalInfo(); + + public GuildArenadDuelFinalInfo m_RedInfo = new GuildArenadDuelFinalInfo(); + + private void Awake() + { + this.m_BlueInfo.Init(base.transform.Find("Bg/Blue")); + this.m_RedInfo.Init(base.transform.Find("Bg/Red")); + this.m_maskSprite = (base.transform.Find("Bg/Mask").GetComponent("XUISprite") as IXUISprite); + this.m_timeLabel = (base.transform.Find("Bg/CountDown/Time").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultBehaviour.cs.meta new file mode 100644 index 00000000..5f78aa71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 74fdbe7563a7101428ed1463a96ec439 +timeCreated: 1611403945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultDlg.cs new file mode 100644 index 00000000..34e65b8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultDlg.cs @@ -0,0 +1,158 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaDuelFinalResultDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/GuildArenaDuelFinalResultDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildArenaBattleDocument _Doc; + + private XElapseTimer m_lastTime = new XElapseTimer(); + + private bool Countdown = false; + + private bool mDone = false; + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + this.RefreahCountTime(10f, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + bool flag3 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + DlgBase.singleton.SetVisible(false, true); + } + } + } + + protected override void OnHide() + { + base.OnHide(); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + } + else + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisible(true, true); + } + } + } + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_maskSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickClose)); + } + + private void RefreshData() + { + base.uiBehaviour.m_BlueInfo.Set(this._Doc.BlueDuelResult); + base.uiBehaviour.m_RedInfo.Set(this._Doc.RedDuelResult); + } + + private void ClickClose(IXUISprite sprite) + { + this.ReturnHall(); + } + + public void RefreahCountTime(float time, bool Done) + { + this.m_lastTime.LeftTime = time; + this.Countdown = true; + this.mDone = Done; + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.UpdateCountTime(); + } + + private void UpdateCountTime() + { + bool flag = !this.Countdown; + if (!flag) + { + this.m_lastTime.Update(); + bool flag2 = this.m_lastTime.LeftTime > 0f; + if (flag2) + { + base.uiBehaviour.m_timeLabel.SetText(XSingleton.singleton.TimeDuarationFormatString((int)this.m_lastTime.LeftTime, 5)); + } + else + { + this.Countdown = false; + bool flag3 = this.mDone; + if (flag3) + { + this.ReturnHall(); + } + } + } + } + + private void ReturnHall() + { + XSingleton.singleton.ReqLeaveScene(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultDlg.cs.meta new file mode 100644 index 00000000..020d0156 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelFinalResultDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be7e7ffbfe054214d8450a5e72fd7d40 +timeCreated: 1611404461 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelHandler.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelHandler.cs new file mode 100644 index 00000000..98ec59a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelHandler.cs @@ -0,0 +1,73 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaDuelHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Guild/GuildArena/DuelFrame"; + } + } + + private XGuildArenaDocument _Doc; + + private List m_duelInfos; + + private Transform m_UnApply; + + private Transform m_DuelList; + + private int m_length = 4; + + private IXUILabel m_DuelHelp; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + this.m_UnApply = base.transform.Find("UnApply"); + this.m_DuelList = base.transform.Find("DuelList"); + this.m_DuelHelp = (base.transform.Find("Intro").GetComponent("XUILabel") as IXUILabel); + this.m_duelInfos = new List(); + for (int i = 0; i < this.m_length; i++) + { + GuildArenaDuelInfo guildArenaDuelInfo = new GuildArenaDuelInfo(); + guildArenaDuelInfo.Init(base.transform.Find(XSingleton.singleton.StringCombine("DuelList/Duel", i.ToString())), i); + guildArenaDuelInfo.Reset(); + this.m_duelInfos.Add(guildArenaDuelInfo); + } + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendIntegralBattleInfo(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.m_UnApply.gameObject.SetActive(!this._Doc.RegistrationStatu); + this.m_DuelList.gameObject.SetActive(this._Doc.RegistrationStatu); + bool registrationStatu = this._Doc.RegistrationStatu; + if (registrationStatu) + { + int i = 0; + int count = this.m_duelInfos.Count; + while (i < count) + { + this.m_duelInfos[i].Refresh(); + i++; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelHandler.cs.meta new file mode 100644 index 00000000..5da4d6c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a5ea8868b543544eb202c5e6f10f596 +timeCreated: 1611404091 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelInfo.cs new file mode 100644 index 00000000..836be32e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelInfo.cs @@ -0,0 +1,137 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaDuelInfo + { + private IXUILabel m_time; + + private IXUILabel m_guildNameCurrent; + + private IXUILabel m_guildNameUsed; + + private IXUISprite m_PortraitCurrent; + + private IXUISprite m_PortraitUsed; + + private IXUISprite m_enterBattle; + + private IXUILabel m_score; + + private Transform m_UsedPortraitEmpty; + + private Transform m_CurrentPortraitEmpty; + + private Transform m_CurrentVS; + + private Transform m_CurrentMessage; + + private Transform m_win; + + private Transform m_lose; + + private Transform m_current; + + private Transform m_next; + + private Transform m_used; + + private int m_index; + + public void Init(Transform t, int index) + { + this.m_index = index; + this.m_current = t.Find("Current"); + this.m_next = t.Find("Next"); + this.m_used = t.Find("Used"); + this.m_win = t.Find("Used/Result/Win"); + this.m_lose = t.Find("Used/Result/Lose"); + this.m_time = (t.Find("Day").GetComponent("XUILabel") as IXUILabel); + this.m_guildNameCurrent = (t.Find("Current/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_guildNameUsed = (t.Find("Used/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_PortraitCurrent = (t.Find("Current/Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_PortraitUsed = (t.Find("Used/Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_CurrentPortraitEmpty = t.Find("Current/Portrait_empty"); + this.m_UsedPortraitEmpty = t.Find("Used/Portrait_empty"); + this.m_CurrentVS = t.Find("Current/VS"); + this.m_CurrentMessage = t.Find("Current/VS_empty"); + this.m_score = (t.Find("Used/Score").GetComponent("XUILabel") as IXUILabel); + this.m_enterBattle = (t.Find("Current/Btn").GetComponent("XUISprite") as IXUISprite); + this.m_PortraitCurrent.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickGuildHandle)); + this.m_PortraitUsed.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickGuildHandle)); + this.m_enterBattle.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnEnterBattle)); + } + + public void Refresh() + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + bool flag = this.m_index < specificDocument.DuelCombatInfos.Count; + if (flag) + { + GuildArenaDuelCombatInfo guildArenaDuelCombatInfo = specificDocument.DuelCombatInfos[this.m_index]; + this.m_time.SetText(guildArenaDuelCombatInfo.ToTimeString()); + this.m_next.gameObject.SetActive(guildArenaDuelCombatInfo.Statu == GuildArenaDuelCombatStatu.Next); + this.m_used.gameObject.SetActive(guildArenaDuelCombatInfo.Statu == GuildArenaDuelCombatStatu.Used); + this.m_current.gameObject.SetActive(guildArenaDuelCombatInfo.Statu == GuildArenaDuelCombatStatu.Current); + GuildArenaDuelCombatStatu statu = guildArenaDuelCombatInfo.Statu; + if (statu != GuildArenaDuelCombatStatu.Used) + { + if (statu == GuildArenaDuelCombatStatu.Current) + { + this.m_guildNameCurrent.SetText(guildArenaDuelCombatInfo.GetGuildName()); + this.m_PortraitCurrent.SetSprite(guildArenaDuelCombatInfo.GetPortraitName()); + this.m_PortraitCurrent.SetVisible(guildArenaDuelCombatInfo.Pass()); + this.m_PortraitCurrent.SetVisible(guildArenaDuelCombatInfo.Pass()); + this.m_CurrentPortraitEmpty.gameObject.SetActive(!guildArenaDuelCombatInfo.Pass()); + this.m_enterBattle.SetGrey(guildArenaDuelCombatInfo.Step == IntegralState.integralenterscene || guildArenaDuelCombatInfo.Step == IntegralState.integralwatch); + this.m_enterBattle.SetVisible(guildArenaDuelCombatInfo.Pass()); + this.m_CurrentVS.gameObject.SetActive(guildArenaDuelCombatInfo.Pass()); + this.m_CurrentMessage.gameObject.SetActive(!guildArenaDuelCombatInfo.Pass()); + } + } + else + { + this.m_guildNameUsed.SetText(guildArenaDuelCombatInfo.GetGuildName()); + this.m_PortraitUsed.SetSprite(guildArenaDuelCombatInfo.GetPortraitName()); + this.m_UsedPortraitEmpty.gameObject.SetActive(!guildArenaDuelCombatInfo.Pass()); + this.m_PortraitUsed.SetVisible(guildArenaDuelCombatInfo.Pass()); + this.m_score.SetText(XSingleton.singleton.StringCombine("+", guildArenaDuelCombatInfo.GuildScore.ToString())); + this.m_win.gameObject.SetActive(guildArenaDuelCombatInfo.Winner); + this.m_lose.gameObject.SetActive(!guildArenaDuelCombatInfo.Winner); + } + } + else + { + this.Reset(); + } + } + + private void OnEnterBattle(IXUISprite sprite) + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.SendEnterDuelBattle(this.m_index); + } + + public void Reset() + { + this.m_time.SetText(string.Empty); + this.m_next.gameObject.SetActive(true); + this.m_used.gameObject.SetActive(false); + this.m_current.gameObject.SetActive(false); + } + + private void OnClickGuildHandle(IXUISprite sprite) + { + bool flag = sprite.ID > 0UL; + if (flag) + { + XGuildViewDocument specificDocument = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + specificDocument.View(sprite.ID); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelInfo.cs.meta new file mode 100644 index 00000000..58b995ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6bee550eacee18d4dbf68e87b18397af +timeCreated: 1611403893 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelResultInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelResultInfo.cs new file mode 100644 index 00000000..e51ad80b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelResultInfo.cs @@ -0,0 +1,94 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaDuelResultInfo + { + private IXUIScrollView m_SccrollView; + + private IXUIWrapContent m_WrapContent; + + private Transform m_LoseTransform; + + private Transform m_WinTransform; + + private IXUILabel m_DamageLabel; + + private IXUILabel m_GuildName; + + private IXUISprite m_GuildIcon; + + private IXUILabel m_TotalKiller; + + private List m_combats; + + private Transform m_EmptyTransform; + + public void Init(Transform t) + { + this.m_SccrollView = (t.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (t.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_LoseTransform = t.Find("Result/Lose"); + this.m_WinTransform = t.Find("Result/Win"); + this.m_DamageLabel = (t.Find("Damage").GetComponent("XUILabel") as IXUILabel); + this.m_GuildName = (t.Find("GuildInfo/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_GuildIcon = (t.Find("GuildInfo/GuildIcon").GetComponent("XUISprite") as IXUISprite); + this.m_TotalKiller = (t.Find("GuildInfo/TotalKiller").GetComponent("XUILabel") as IXUILabel); + this.m_EmptyTransform = t.Find("Empty"); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + } + + public void Set(GVGDuelResult result) + { + this.m_LoseTransform.gameObject.SetActive(!result.isWinner); + this.m_WinTransform.gameObject.SetActive(result.isWinner); + this.m_GuildName.SetText(result.ToGuildNameString()); + this.m_GuildIcon.SetSprite(XGuildDocument.GetPortraitName((int)result.Guild.guildicon)); + this.m_combats = result.RoleCombats; + this.m_TotalKiller.SetText(result.TotalKiller.ToString()); + this.m_DamageLabel.SetText(((int)result.TotalDamage).ToString()); + this.m_WrapContent.SetContentCount(this.m_combats.Count, false); + this.m_SccrollView.ResetPosition(); + this.m_EmptyTransform.gameObject.SetActive(this.m_combats.Count == 0); + } + + private void OnWrapContentUpdate(Transform t, int index) + { + bool flag = this.m_combats == null || index >= this.m_combats.Count; + if (!flag) + { + GmfRoleCombat gmfRoleCombat = this.m_combats[index]; + IXUISprite ixuisprite = t.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("MVP").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = t.Find("AddFriend").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon((int)gmfRoleCombat.gmfrole.profession)); + ixuisprite2.SetAlpha(0f); + ixuilabel.SetText(gmfRoleCombat.gmfrole.rolename); + ixuilabel2.SetText(string.Format("Lv.{0}", 0)); + ixuilabel2.Alpha = 0f; + ixuilabel3.SetText(gmfRoleCombat.combat.killcount.ToString()); + ixuisprite3.ID = gmfRoleCombat.gmfrole.roleid; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddFriendClick)); + bool flag2 = gmfRoleCombat.gmfrole.roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + ixuisprite3.SetVisible(false); + } + } + } + + private void OnAddFriendClick(IXUISprite sp) + { + DlgBase.singleton.AddFriendById(sp.ID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelResultInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelResultInfo.cs.meta new file mode 100644 index 00000000..283e792f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelResultInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13e0df7f899d57a439c7cce96cf58354 +timeCreated: 1611403251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultBehaviour.cs new file mode 100644 index 00000000..382e708e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultBehaviour.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildArenaDuelRoundResultBehaviour : DlgBehaviourBase + { + public IXUILabel m_RoundLabel; + + public IXUILabel m_TimeLabel; + + public IXUISprite m_MaskSprite; + + public IXUILabel m_GuildName; + + public Transform m_EmptyWin; + + public GuildArenaDuelResultInfo m_Blue = new GuildArenaDuelResultInfo(); + + public GuildArenaDuelResultInfo m_Red = new GuildArenaDuelResultInfo(); + + private void Awake() + { + this.m_Blue.Init(base.transform.Find("Bg/Blue")); + this.m_Red.Init(base.transform.Find("Bg/Red")); + this.m_RoundLabel = (base.transform.Find("Bg/Round").GetComponent("XUILabel") as IXUILabel); + this.m_TimeLabel = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_MaskSprite = (base.transform.Find("Bg/Mask").GetComponent("XUISprite") as IXUISprite); + this.m_GuildName = (base.transform.Find("Bg/EmptyWin/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_EmptyWin = base.transform.Find("Bg/EmptyWin"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultBehaviour.cs.meta new file mode 100644 index 00000000..507402d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6e669a6f987ef24390bb5d58e425751 +timeCreated: 1611404747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultDlg.cs new file mode 100644 index 00000000..b5337d9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultDlg.cs @@ -0,0 +1,202 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaDuelRoundResultDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/GuildArenaDuelRoundResultDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildArenaBattleDocument _Doc; + + private XElapseTimer m_lastTime; + + private bool Countdown = false; + + private bool mDone = false; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnHideBattle(); + this.RefreshData(); + this.RefreahCountTime((float)XSingleton.singleton.GetInt("GPRFightAfterTime"), true); + } + + private void OnHideBattle() + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + } + } + + private void RefreshData() + { + base.uiBehaviour.m_RoundLabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_ROUNDLABEL", new object[] + { + this._Doc.Round + })); + base.uiBehaviour.m_Blue.Set(this._Doc.BlueDuelResult); + base.uiBehaviour.m_Red.Set(this._Doc.RedDuelResult); + bool flag = this._Doc.BlueDuelResult.RoleCombats.Count == 0 && this._Doc.RedDuelResult.RoleCombats.Count == 0; + base.uiBehaviour.m_EmptyWin.gameObject.SetActive(flag); + bool flag2 = flag; + if (flag2) + { + bool isWinner = this._Doc.BlueDuelResult.isWinner; + if (isWinner) + { + base.uiBehaviour.m_GuildName.SetText(this._Doc.BlueDuelResult.Guild.guildname); + } + else + { + bool isWinner2 = this._Doc.RedDuelResult.isWinner; + if (isWinner2) + { + base.uiBehaviour.m_GuildName.SetText(this._Doc.RedDuelResult.Guild.guildname); + } + else + { + base.uiBehaviour.m_GuildName.SetText(string.Empty); + } + } + } + } + + private void ClickClose(IXUISprite sprite) + { + this.ReturnHall(); + } + + protected override void OnUnload() + { + this.m_lastTime = null; + base.OnUnload(); + } + + public void RefreahCountTime(float time, bool Done) + { + bool flag = this.m_lastTime == null; + if (flag) + { + this.m_lastTime = new XElapseTimer(); + } + bool flag2 = !this._Doc.InBattleGroup; + if (flag2) + { + this.m_lastTime.LeftTime = time - 2f; + } + else + { + this.m_lastTime.LeftTime = time; + } + this.Countdown = true; + this.mDone = Done; + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.UpdateCountTime(); + } + + private void UpdateCountTime() + { + bool flag = !this.Countdown || this.m_lastTime == null; + if (!flag) + { + this.m_lastTime.Update(); + bool flag2 = this.m_lastTime.LeftTime > 0f; + if (flag2) + { + bool flag3 = this._Doc.Round == 3u; + if (flag3) + { + base.uiBehaviour.m_TimeLabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_FINALWATTING", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this.m_lastTime.LeftTime, 5) + })); + } + else + { + base.uiBehaviour.m_TimeLabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_ROUNDWATTING", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this.m_lastTime.LeftTime, 5) + })); + } + } + else + { + this.Countdown = false; + bool flag4 = this.mDone; + if (flag4) + { + this.ReturnHall(); + } + } + } + } + + public void ReturnHall() + { + bool flag = !this._Doc.InBattleGroup; + if (flag) + { + XSingleton.singleton.ReqLeaveScene(); + } + else + { + this.SetVisibleWithAnimation(false, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultDlg.cs.meta new file mode 100644 index 00000000..d60cf328 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaDuelRoundResultDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdd467cb215473b4e9819635f9a39fb4 +timeCreated: 1611404576 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaGuildInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaGuildInfo.cs new file mode 100644 index 00000000..b6fdd168 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaGuildInfo.cs @@ -0,0 +1,88 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class GuildArenaGuildInfo : DlgHandlerBase + { + private IXUILabel m_GuildNameLabel; + + private IXUISprite m_GuildHeadSprite; + + private IXUISprite m_unKnowSprite; + + protected override void Init() + { + base.Init(); + this.m_GuildNameLabel = (base.PanelObject.transform.Find("txt_GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_GuildHeadSprite = (base.PanelObject.transform.Find("GuildIcon").GetComponent("XUISprite") as IXUISprite); + this.m_unKnowSprite = (base.PanelObject.transform.Find("UnKnow").GetComponent("XUISprite") as IXUISprite); + this.SetEmptyMember(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_GuildHeadSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGuildHeadClickHandle)); + } + + public void SetGuildMember(ulong guildID, ulong winnerID = 0UL, bool isCup = false) + { + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + XGuildDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + XGuildBasicData xguildBasicData = null; + bool flag = !specificDocument.TryGetGuildInfo(guildID, out xguildBasicData); + if (flag) + { + this.SetEmptyMember(); + if (isCup) + { + this.m_unKnowSprite.SetVisible(false); + } + } + else + { + this.SetShowMember(); + this.m_GuildHeadSprite.ID = guildID; + this.m_GuildNameLabel.SetText(xguildBasicData.guildName); + this.m_GuildHeadSprite.SetSprite(XGuildDocument.GetPortraitName(xguildBasicData.portraitIndex)); + this.m_GuildNameLabel.SetColor((specificDocument2.bInGuild && specificDocument2.BasicData.uid == guildID) ? Color.green : Color.white); + bool flag2 = winnerID == 0UL; + if (flag2) + { + this.m_GuildHeadSprite.SetGrey(true); + } + else + { + this.m_GuildHeadSprite.SetGrey(winnerID == guildID); + } + } + } + + private void OnGuildHeadClickHandle(IXUISprite sprite) + { + bool flag = sprite.ID > 0UL; + if (flag) + { + XGuildViewDocument specificDocument = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + specificDocument.View(sprite.ID); + } + } + + private void SetShowMember() + { + this.m_GuildNameLabel.SetVisible(true); + this.m_GuildHeadSprite.SetVisible(true); + this.m_unKnowSprite.SetVisible(false); + } + + private void SetEmptyMember() + { + this.m_GuildHeadSprite.ID = 0UL; + this.m_GuildNameLabel.SetVisible(false); + this.m_GuildHeadSprite.SetVisible(false); + this.m_unKnowSprite.SetVisible(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaGuildInfo.cs.meta new file mode 100644 index 00000000..69df89e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ed9765b565b55e4988a9db5c5e8d758 +timeCreated: 1611403511 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaHallHandle.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaHallHandle.cs new file mode 100644 index 00000000..4b9f4d50 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaHallHandle.cs @@ -0,0 +1,222 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaHallHandle : GVGHallBase + { + protected override string FileName + { + get + { + return "Guild/GuildArena/HallFrame"; + } + } + + private XGuildArenaDocument _Doc; + + private IXUILabel m_Status; + + private IXUIButton m_SignUp; + + private IXUILabel m_SignUpLabel; + + private bool m_responseNow = false; + + public override void OnUpdate() + { + base.OnUpdate(); + bool responseNow = this.m_responseNow; + if (responseNow) + { + this.UpdateSignUpTime(); + } + } + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + this.m_Status = (base.PanelObject.transform.Find("Go/Status").GetComponent("XUILabel") as IXUILabel); + this.m_SignUp = (base.PanelObject.transform.Find("Go/Btn_Go").GetComponent("XUIButton") as IXUIButton); + this.m_SignUpLabel = (base.PanelObject.transform.Find("Go/Btn_Go/Go").GetComponent("XUILabel") as IXUILabel); + this.SetupRewardList(XSingleton.singleton.GetAndSeparateValue("Guild_Arena_Award", XGlobalConfig.ListSeparator)); + } + + protected override void OnShow() + { + base.OnShow(); + this.StackRefresh(); + } + + protected override int GetContentSize() + { + return this._Doc.IntegralUnits.Count; + } + + public override void StackRefresh() + { + this._Doc.SendGetApplyGuildList(); + this.UpdateSignStatu(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.UpdateSignStatu(); + } + + protected override void OnItemWrapUpdate(Transform t, int index) + { + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("GuildName").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel2 = t.Find("Score").GetComponent("XUILabel") as IXUILabel; + bool flag = index == -1; + if (flag) + { + ixuilabel.SetText(string.Empty); + ixuilabelSymbol.InputText = XStringDefineProxy.GetString("GUILD_ARENA_UNLAYOUT"); + ixuilabel2.SetText(string.Empty); + } + else + { + Integralunit integralunit = this._Doc.IntegralUnits[index]; + ixuilabel.SetText((index + 1).ToString()); + ixuilabelSymbol.InputText = integralunit.name; + ixuilabel2.SetText(integralunit.guildscore.ToString()); + bool flag2 = integralunit.guildid == this.selfGuildID; + if (flag2) + { + this.selfIndex = index; + } + } + } + + private void UpdateSignUpTime() + { + bool flag = this._Doc.RegistrationTime > 0.0; + if (flag) + { + this.m_Status.SetText(XStringDefineProxy.GetString("GUILD_ARENA_SIGN_TIME", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.RegistrationTime, 5) + })); + } + else + { + this.m_Status.SetText(XStringDefineProxy.GetString("GUILD_ARENA_OVER")); + this.UpdateSignStatu(); + } + } + + private void UpdateSignStatu() + { + this.m_responseNow = false; + bool flag = this._Doc.BattleStep == GuildArenaType.notopen; + if (flag) + { + this.m_Status.SetText(XStringDefineProxy.GetString("GUILD_ARENA_UNOPEN")); + } + else + { + bool flag2 = this._Doc.BattleStep == GuildArenaType.resttime; + if (flag2) + { + this.m_Status.SetText(XStringDefineProxy.GetString("GUILD_ARENA_OVER")); + } + else + { + bool flag3 = this._Doc.RegistrationTime > 0.0; + if (flag3) + { + this.m_responseNow = true; + } + else + { + this.m_Status.SetText(XStringDefineProxy.GetString("GUILD_ARENA_OVER")); + } + } + } + bool flag4 = this._Doc.BattleStep == GuildArenaType.notopen || !this._Doc.RegistrationStatu; + if (flag4) + { + this.m_SignUpLabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_SIGN_HAVE")); + } + else + { + this.m_SignUpLabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_SIGN_SHOW")); + } + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag5 = specificDocument.Position == GuildPosition.GPOS_VICELEADER || specificDocument.Position == GuildPosition.GPOS_LEADER; + this.m_SignUp.SetGrey(this._Doc.RegistrationStatu || (this._Doc.BattleStep == GuildArenaType.apply && flag5)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_SignUp.RegisterClickEventHandler(new ButtonClickEventHandler(this.RegistractionClick)); + } + + private bool RegistractionClick(IXUIButton btn) + { + bool flag = this._Doc.BattleStep == GuildArenaType.notopen; + bool result; + if (flag) + { + result = false; + } + else + { + bool registrationStatu = this._Doc.RegistrationStatu; + if (registrationStatu) + { + bool flag2 = this._Doc.BattleStep == GuildArenaType.battlefinal; + if (flag2) + { + DlgBase.singleton.SelectTabIndex(GuildArenaTab.Combat); + } + else + { + DlgBase.singleton.SelectTabIndex(GuildArenaTab.Duel); + } + } + else + { + bool flag3 = this._Doc.BattleStep != GuildArenaType.apply; + if (flag3) + { + return false; + } + bool flag4 = this._Doc.RegistrationTime > 0.0; + if (flag4) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag5 = specificDocument.CheckUnlockLevel(XSysDefine.XSys_GuildPvp); + if (flag5) + { + bool flag6 = specificDocument.Position == GuildPosition.GPOS_VICELEADER || specificDocument.Position == GuildPosition.GPOS_LEADER; + if (flag6) + { + this._Doc.SendApplyGuildArena(); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_ARENA_SIGN_PROFESSION"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_ARENA_SIGN_LOW_LEVEL"), "fece00"); + } + } + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaHallHandle.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaHallHandle.cs.meta new file mode 100644 index 00000000..d1ea84cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaHallHandle.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4b5a8b7bd422e44bb808b4bb6d54f2f +timeCreated: 1611404739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaInspireCD.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaInspireCD.cs new file mode 100644 index 00000000..7fd6f4e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaInspireCD.cs @@ -0,0 +1,81 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildArenaInspireCD + { + private IXUILabel m_cdText; + + private IXUISprite m_cdSprite; + + private double m_inspireCdTotal = 20.0; + + private bool m_canInspire = true; + + private Transform transform; + + public GuildArenaInspireCD(Transform t) + { + this.transform = t; + this.m_inspireCdTotal = double.Parse(XSingleton.singleton.GetValue("GMFInspireCoolDown")); + this.m_cdText = (t.Find("cd").GetComponent("XUILabel") as IXUILabel); + this.m_cdSprite = (t.Find("cd/Quan").GetComponent("XUISprite") as IXUISprite); + this.ClearInspireCD(); + } + + public bool IsActive() + { + return !(this.transform == null) && this.transform.gameObject.activeInHierarchy; + } + + private void ClearInspireCD() + { + this.m_canInspire = true; + this.m_cdSprite.SetAlpha(0f); + this.m_cdText.Alpha = 0f; + } + + public void ExcuteInspireCD(double curInspire) + { + bool flag = !this.IsActive(); + if (!flag) + { + bool flag2 = curInspire > 0.0; + if (flag2) + { + bool flag3 = curInspire > this.m_inspireCdTotal; + if (flag3) + { + curInspire = this.m_inspireCdTotal; + } + float fillAmount = (float)(curInspire / this.m_inspireCdTotal); + this.m_cdText.Alpha = 1f; + this.m_cdSprite.SetAlpha(1f); + this.m_cdSprite.SetFillAmount(fillAmount); + this.m_canInspire = false; + bool flag4 = curInspire >= 1.0; + if (flag4) + { + int num = (int)(curInspire + 0.5); + this.m_cdText.SetText(num.ToString()); + } + else + { + this.m_cdText.SetText(curInspire.ToString("F1")); + } + } + else + { + bool flag5 = !this.m_canInspire; + if (flag5) + { + this.ClearInspireCD(); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaInspireCD.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaInspireCD.cs.meta new file mode 100644 index 00000000..15c19808 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaInspireCD.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f6f5c236e22d4d4a96fb74657a80d27 +timeCreated: 1611404030 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankBehaviour.cs new file mode 100644 index 00000000..190a8636 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankBehaviour.cs @@ -0,0 +1,26 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildArenaRankBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public Transform m_NA; + + private void Awake() + { + this.m_NA = base.transform.Find("Bg/NA"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankBehaviour.cs.meta new file mode 100644 index 00000000..92502b95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a092cc8751443564ea29bb35d61707fe +timeCreated: 1611404249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankDlg.cs new file mode 100644 index 00000000..d867c98f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankDlg.cs @@ -0,0 +1,114 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildArenaRankDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildArena/GuildArenaRankDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private List m_historys; + + protected override void Init() + { + base.Init(); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + } + + protected override void OnShow() + { + base.OnShow(); + this.Refresh(); + XGuildArenaDocument specificDocument = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument.SendReqGuildArenaHistory(); + } + + private void OnWrapContentUpdate(Transform t, int index) + { + IXUILabelSymbol ixuilabelSymbol = t.Find("First").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol2 = t.Find("Second").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Number").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("Btn_View").GetComponent("XUIButton") as IXUIButton; + ixuibutton.SetVisible(false); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickShow)); + ixuilabel.SetText(XStringDefineProxy.GetString("GUILD_ARENA_INDEX", new object[] + { + index + 1 + })); + bool flag = this.m_historys == null || index >= this.m_historys.Count; + if (flag) + { + ixuilabelSymbol.InputText = "?"; + ixuilabelSymbol2.InputText = "?"; + } + else + { + GuildArenaHistory guildArenaHistory = this.m_historys[index]; + ixuilabelSymbol.InputText = guildArenaHistory.first; + ixuilabelSymbol2.InputText = guildArenaHistory.second; + } + } + + public void SetHistoryList(List historys) + { + this.m_historys = historys; + this.Refresh(); + } + + public void Refresh() + { + int num = 0; + bool flag = this.m_historys != null; + if (flag) + { + num = this.m_historys.Count; + } + base.uiBehaviour.m_WrapContent.SetContentCount(num, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + base.uiBehaviour.m_NA.gameObject.SetActive(num == 0); + } + + private bool ClickShow(IXUIButton btn) + { + return false; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickClose)); + } + + private bool ClickClose(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankDlg.cs.meta new file mode 100644 index 00000000..157d6b48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenaRankDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4e47669a8725324bb6a508a26ad998f +timeCreated: 1611404393 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenadDuelFinalInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildArenadDuelFinalInfo.cs new file mode 100644 index 00000000..38f904e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenadDuelFinalInfo.cs @@ -0,0 +1,41 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class GuildArenadDuelFinalInfo + { + private IXUISprite m_Portrait; + + private IXUILabel m_GuildName; + + private Transform m_LoseTransform; + + private Transform m_WinTransform; + + private IXUILabel m_WinLabel; + + private IXUILabel m_LoseLabel; + + public void Init(Transform t) + { + this.m_Portrait = (t.Find("Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_GuildName = (t.Find("GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_LoseTransform = t.Find("Result/Lose"); + this.m_WinTransform = t.Find("Result/Win"); + this.m_WinLabel = (t.Find("WinLabel").GetComponent("XUILabel") as IXUILabel); + this.m_LoseLabel = (t.Find("LoseLabel").GetComponent("XUILabel") as IXUILabel); + } + + public void Set(GVGDuelResult result) + { + this.m_GuildName.SetText(result.ToGuildNameString()); + this.m_Portrait.SetSprite(XGuildDocument.GetPortraitName((int)result.Guild.guildicon)); + this.m_LoseTransform.gameObject.SetActive(!result.isWinner); + this.m_WinTransform.gameObject.SetActive(result.isWinner); + this.m_WinLabel.SetText(result.Score.ToString()); + this.m_LoseLabel.SetText(string.Empty); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildArenadDuelFinalInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildArenadDuelFinalInfo.cs.meta new file mode 100644 index 00000000..8e5f230d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildArenadDuelFinalInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6121bde23d1da444cb617a588f42ab41 +timeCreated: 1611403837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildBuffOperationHandler.cs b/Client/Assets/Scripts/XMainClient/UI/GuildBuffOperationHandler.cs new file mode 100644 index 00000000..aa1140ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildBuffOperationHandler.cs @@ -0,0 +1,508 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildBuffOperationHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Guild/GuildMine/PropsFrame"; + } + } + + private IXUITweenTool _slider; + + private IXUITweenTool _curTween = null; + + private ulong _curTargetGuildID = 0UL; + + private uint _curBuffItemID = 0u; + + private Dictionary _tableChildren = new Dictionary(); + + protected XUIPool _buffDetailItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected XUIPool _personalUseItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected XUIPool _guildUseItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected IXUITable _buffTable; + + protected Transform _buffTableTrans; + + private bool _close; + + private bool _inited; + + private bool sliding = false; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + this.InitUIPool(); + this.InitUI(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._close = false; + this.RefreshUI(); + this.sliding = true; + this.StartToSlide(); + bool flag = !this._inited; + if (flag) + { + this._inited = true; + this.FoldChildren(); + } + } + + protected override void OnHide() + { + this._close = false; + base.OnHide(); + } + + public override void OnUnload() + { + this._tableChildren.Clear(); + this._slider = null; + this._curTween = null; + this._curTargetGuildID = 0UL; + this._curBuffItemID = 0u; + base.OnUnload(); + } + + public void StartToSlide() + { + bool flag = this._slider != null; + if (flag) + { + bool bPlayForward = this._slider.bPlayForward; + if (bPlayForward) + { + bool flag2 = this._curTween != null; + if (flag2) + { + this._curTween.PlayTween(false, -1f); + } + this._curTween = null; + this._slider.PlayTween(false, -1f); + } + else + { + this._slider.PlayTween(true, -1f); + } + } + } + + public void RefreshCardCd() + { + GuildBuffTable guildBuffData = XGuildResContentionBuffDocument.GuildBuffData; + uint guildBuffCDTime = XGuildResContentionBuffDocument.Doc.GuildBuffCDTime; + for (int i = 0; i < guildBuffData.Table.Length; i++) + { + Transform transform = null; + uint itemid = guildBuffData.Table[i].itemid; + bool flag = this._tableChildren.TryGetValue(itemid, out transform); + if (flag) + { + Transform transform2 = transform.Find("CDTime"); + transform2.gameObject.SetActive(true); + IXUILabel ixuilabel = transform2.GetComponent("XUILabel") as IXUILabel; + bool flag2 = guildBuffCDTime > 0u; + if (flag2) + { + ixuilabel.SetText(XGuildResContentionBuffDocument.Doc.GuildBuffCDTime.ToString()); + } + else + { + transform2.gameObject.SetActive(false); + } + } + } + } + + public void RefreshOwnedBuffItem(uint itemID, uint cd) + { + this.UpdateBuffItemByItemID(itemID); + bool flag = cd > 0u && this._curTween != null; + if (flag) + { + this._curTween.PlayTween(false, -1f); + this._curTween = null; + } + uint guildBuffCDTime = XGuildResContentionBuffDocument.Doc.GuildBuffCDTime; + bool flag2 = guildBuffCDTime > 0u; + if (flag2) + { + this.RefreshCardCd(); + } + } + + public void FoldByHasGuildBuffCd() + { + uint guildBuffCDTime = XGuildResContentionBuffDocument.Doc.GuildBuffCDTime; + bool flag = guildBuffCDTime > 0u && this._curTween != null; + if (flag) + { + this._curTween.PlayTween(false, -1f); + this._curTween = null; + } + } + + public void ResetPostion() + { + bool flag = this._slider != null; + if (flag) + { + this._slider.ResetTween(true); + } + } + + private void InitProperties() + { + this._buffTableTrans = base.transform.Find("ScrollPanel/UITable"); + this._buffTable = (this._buffTableTrans.GetComponent("XUITable") as IXUITable); + this._slider = (base.transform.GetComponent("XUIPlayTween") as IXUITweenTool); + this._slider.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.SetVisible)); + IXUIButton ixuibutton = base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnclickCloseBtn)); + this._inited = false; + } + + private void FoldChildren() + { + foreach (object obj in this._buffTableTrans) + { + Transform transform = (Transform)obj; + bool activeSelf = transform.gameObject.activeSelf; + if (activeSelf) + { + Transform transform2 = transform.gameObject.transform.Find("Child"); + IXUITweenTool ixuitweenTool = transform2.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + } + } + + private bool OnclickCloseBtn(IXUIButton button) + { + bool flag = this.sliding; + bool result; + if (flag) + { + result = true; + } + else + { + this.StartToSlide(); + this._close = true; + result = true; + } + return result; + } + + private void SetVisible(IXUITweenTool tween) + { + bool close = this._close; + if (close) + { + base.SetVisible(false); + } + else + { + this.sliding = false; + } + } + + private void InitUIPool() + { + this._buffDetailItemPool.SetupPool(this._buffTableTrans.gameObject, this._buffTableTrans.Find("ItemTpl").gameObject, 10u, false); + this._guildUseItemPool.SetupPool(this._buffTableTrans.gameObject, this._buffTableTrans.Find("Other").gameObject, 7u, false); + this._personalUseItemPool.SetupPool(this._buffTableTrans.gameObject, this._buffTableTrans.Find("Use").gameObject, 4u, false); + } + + private void InitUI() + { + this._tableChildren.Clear(); + this._buffDetailItemPool.ReturnAll(false); + this._guildUseItemPool.ReturnAll(false); + this._personalUseItemPool.ReturnAll(false); + foreach (GuildMineralStorage.RowData rowData in XGuildResContentionBuffDocument.GuildMineralStorageTable.Table) + { + Transform transform = this._buffDetailItemPool.FetchGameObject(false).transform; + Transform transform2 = transform.Find("Child"); + Transform transform3 = null; + GuildBuffTargetType self = (GuildBuffTargetType)rowData.self; + if (self > GuildBuffTargetType.SelfGuild) + { + if (self == GuildBuffTargetType.OtherGuild) + { + transform3 = this._guildUseItemPool.FetchGameObject(false).transform; + } + } + else + { + transform3 = this._personalUseItemPool.FetchGameObject(false).transform; + } + Vector2 vector = transform2.localScale; + transform.parent = this._buffTableTrans; + transform2.localScale = Vector3.one; + transform3.parent = transform2; + transform2.localScale = vector; + this._tableChildren.Add(rowData.itemid, transform); + } + } + + private void RefreshUI() + { + this._curTween = null; + foreach (GuildMineralStorage.RowData rowData in XGuildResContentionBuffDocument.GuildMineralStorageTable.Table) + { + Transform transform = null; + bool flag = this._tableChildren.TryGetValue(rowData.itemid, out transform); + if (flag) + { + Transform transform2 = transform.Find("Child"); + Transform child = transform2.GetChild(0); + this.UpdateBuffItem(transform, child, rowData); + } + } + uint guildBuffCDTime = XGuildResContentionBuffDocument.Doc.GuildBuffCDTime; + bool flag2 = guildBuffCDTime > 0u; + if (flag2) + { + this.RefreshCardCd(); + } + } + + private void UpdateBuffItem(Transform parent, Transform child, GuildMineralStorage.RowData info) + { + IXUICheckBox ixuicheckBox = parent.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)info.itemid; + ixuicheckBox.ForceSetFlag(true); + ixuicheckBox.ForceSetFlag(false); + IXUISprite ixuisprite = ixuicheckBox.gameObject.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = parent.Find("BuffName").GetComponent("XUILabel") as IXUILabel; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)info.itemid); + ixuilabel.SetText(itemConf.ItemName[0]); + IXUISprite ixuisprite2 = parent.Find("BuffIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(itemConf.ItemIcon[0]); + IXUILabel ixuilabel2 = parent.Find("Des").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(info.effect); + IXUILabel ixuilabel3 = parent.Find("Count").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(""); + Transform transform = parent.Find("CDTime"); + transform.gameObject.SetActive(false); + Transform transform2 = parent.Find("TargetPersonal"); + transform2.gameObject.SetActive(info.self == 0u); + Transform transform3 = parent.Find("TargetOtherGuild"); + transform3.gameObject.SetActive(info.self == 2u); + Transform transform4 = parent.Find("TargetMyGuild"); + transform4.gameObject.SetActive(info.self == 1u); + GuildBuffInfo ownedBuffInfo = this.GetOwnedBuffInfo(info); + bool flag = ownedBuffInfo == null; + if (flag) + { + ixuisprite.SetColor(new Color(0f, 0f, 0f, 1f)); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnNoBuffCard)); + } + else + { + ixuisprite.SetColor(Color.white); + ixuilabel3.SetText("X" + ownedBuffInfo.count); + ixuisprite.ID = (ulong)info.itemid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnclickBuffSprite)); + } + bool flag2 = info.self == 2u; + if (flag2) + { + WarResGuildInfo pkguildInfos = XGuildResContentionBuffDocument.Doc.GetPKGuildInfos(1); + bool flag3 = pkguildInfos != null; + if (flag3) + { + Transform transform5 = child.Find("OneGuild"); + IXUIButton ixuibutton = transform5.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = pkguildInfos.guildID; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.UseBuffOnGuild)); + IXUILabel ixuilabel4 = transform5.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel4.SetText(pkguildInfos.guildName); + } + pkguildInfos = XGuildResContentionBuffDocument.Doc.GetPKGuildInfos(2); + bool flag4 = pkguildInfos != null; + if (flag4) + { + Transform transform6 = child.Find("TwoGuild"); + IXUIButton ixuibutton2 = transform6.GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = pkguildInfos.guildID; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.UseBuffOnGuild)); + IXUILabel ixuilabel5 = transform6.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetText(pkguildInfos.guildName); + } + } + else + { + IXUIButton ixuibutton3 = child.GetComponent("XUIButton") as IXUIButton; + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnUsePositiveBuff)); + } + } + + private void OnNoBuffCard(IXUISprite uiSprite) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_GUILDBUFF_ITEM"), "fece00"); + } + + private GuildBuffInfo GetOwnedBuffInfo(GuildMineralStorage.RowData info) + { + bool flag = info.self > 0u; + GuildBuffInfo result; + if (flag) + { + result = XGuildResContentionBuffDocument.Doc.GetGuildOwnedSomeCardInfo(info.itemid); + } + else + { + result = XGuildResContentionBuffDocument.Doc.GetMyOwnedSomeCardInfo(info.itemid); + } + return result; + } + + private void OnclickBuffSprite(IXUISprite uiSprite) + { + Transform transform = uiSprite.gameObject.transform.Find("Child"); + IXUITweenTool ixuitweenTool = transform.GetComponent("XUIPlayTween") as IXUITweenTool; + bool bPlayForward = ixuitweenTool.bPlayForward; + if (bPlayForward) + { + ixuitweenTool.PlayTween(false, -1f); + } + else + { + ixuitweenTool.PlayTween(true, -1f); + } + this._curBuffItemID = (uint)uiSprite.ID; + bool flag = this._curTween == null; + if (flag) + { + this._curTween = ixuitweenTool; + } + else + { + bool flag2 = this._curTween != ixuitweenTool; + if (flag2) + { + this._curTween.PlayTween(false, -1f); + this._curTween = ixuitweenTool; + } + else + { + this._curTween = null; + } + } + } + + private bool OnClickBuffItem(IXUICheckBox iXUICheckBox) + { + return false; + } + + private void UpdateBuffItemByItemID(uint itemID) + { + Transform transform = null; + bool flag = this._tableChildren.TryGetValue(itemID, out transform); + if (flag) + { + GuildMineralStorage.RowData mineralStorageByID = XGuildResContentionBuffDocument.Doc.GetMineralStorageByID(itemID); + bool flag2 = mineralStorageByID == null; + if (!flag2) + { + Transform child = transform.Find("Child").GetChild(0); + bool flag3 = this._curBuffItemID == itemID; + if (flag3) + { + GuildBuffInfo ownedBuffInfo = this.GetOwnedBuffInfo(mineralStorageByID); + bool flag4 = ownedBuffInfo == null; + if (flag4) + { + bool flag5 = this._curTween != null; + if (flag5) + { + this._curTween.PlayTween(false, -1f); + this._curTween = null; + } + } + } + this.UpdateBuffItem(transform, child, mineralStorageByID); + } + } + } + + private bool UseBuffOnGuild(IXUIButton button) + { + bool flag = this.HasNoCardCD(); + if (flag) + { + this._curTargetGuildID = button.ID; + XGuildResContentionBuffDocument.Doc.SendGuildBuffReq(this._curTargetGuildID, this._curBuffItemID); + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("HasGuildBuffCD"), XGuildResContentionBuffDocument.Doc.GuildBuffCDTime), "fece00"); + } + return true; + } + + private bool OnUsePositiveBuff(IXUIButton button) + { + GuildMineralStorage.RowData mineralStorageByID = XGuildResContentionBuffDocument.Doc.GetMineralStorageByID(this._curBuffItemID); + bool flag = mineralStorageByID == null; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = mineralStorageByID.self == 0u; + if (flag2) + { + XGuildResContentionBuffDocument.Doc.SendPersonalBuffOpReq(XSingleton.singleton.XPlayerData.RoleID, this._curBuffItemID, PersonalBuffOpType.UseBuff); + } + else + { + XGuildResContentionBuffDocument.Doc.SendGuildBuffReq(XGuildResContentionBuffDocument.Doc.GuildID, this._curBuffItemID); + } + result = true; + } + return result; + } + + private bool HasNoCardCD() + { + return XGuildResContentionBuffDocument.Doc.GuildBuffCDTime <= 0u; + } + + private void ResetBuffItemSpriteState() + { + foreach (KeyValuePair keyValuePair in this._tableChildren) + { + IXUISprite ixuisprite = keyValuePair.Value.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetEnabled(true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildBuffOperationHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildBuffOperationHandler.cs.meta new file mode 100644 index 00000000..3478ef09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildBuffOperationHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 418a013697dc34b4fb1d3d1d998cf135 +timeCreated: 1611403617 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardBehaviour.cs new file mode 100644 index 00000000..05d1c2d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardBehaviour.cs @@ -0,0 +1,32 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildCollectRewardBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUILabel m_LeftTime; + + public XUIPool m_CollectPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Title/Help").GetComponent("XUIButton") as IXUIButton); + this.m_LeftTime = (base.transform.Find("Bg/LeftTime").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Panel/Tpl"); + this.m_CollectPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + transform = base.transform.Find("Bg/Panel/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 30u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardBehaviour.cs.meta new file mode 100644 index 00000000..3ea8baa4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4236f5a89faf3a6439eff418c51dcb26 +timeCreated: 1611403639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardDlg.cs new file mode 100644 index 00000000..424dd77f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardDlg.cs @@ -0,0 +1,161 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildCollectRewardDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "Guild/GuildCollect/GuildCollectReward"; + } + } + + private XGuildCollectDocument _doc = null; + + private string _tipsStr; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + this._tipsStr = XStringDefineProxy.GetString("GuildCollectRewardTimeTips"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.QueryGetRewardCount(); + this.Refresh(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public void Refresh() + { + base.uiBehaviour.m_CollectPool.ReturnAll(false); + base.uiBehaviour.m_ItemPool.ReturnAll(true); + Vector3 tplPos = base.uiBehaviour.m_CollectPool.TplPos; + for (int i = 0; i < this._doc.RewardReader.Table.Length; i++) + { + GuildCampPartyReward.RowData rowData = this._doc.RewardReader.Table[i]; + GameObject gameObject = base.uiBehaviour.m_CollectPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * base.uiBehaviour.m_CollectPool.TplHeight)); + Transform parent = gameObject.transform.Find("CollectList"); + Transform parent2 = gameObject.transform.Find("RewardList"); + IXUIButton ixuibutton = gameObject.transform.Find("BtnFetch").GetComponent("XUIButton") as IXUIButton; + GameObject gameObject2 = gameObject.transform.Find("Get").gameObject; + bool grey = true; + for (int j = 0; j < rowData.Items.Count; j++) + { + GameObject gameObject3 = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject3.transform.parent = parent; + gameObject3.transform.localPosition = new Vector3((float)(j * base.uiBehaviour.m_ItemPool.TplWidth), 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject3, (int)rowData.Items[j, 0], (int)rowData.Items[j, 1], true); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject3, (int)rowData.Items[j, 0]); + IXUILabel ixuilabel = gameObject3.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + int num = (int)XBagDocument.BagDoc.GetItemCount((int)rowData.Items[j, 0]); + ixuilabel.SetText(string.Format("{0}{1}/{2}", (num >= (int)rowData.Items[j, 1]) ? "[ffffff]" : "[fd4343]", num, (int)rowData.Items[j, 1])); + bool flag = num < (int)rowData.Items[j, 1]; + if (flag) + { + grey = false; + } + } + for (int k = 0; k < rowData.Reward.Count; k++) + { + GameObject gameObject4 = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject4.transform.parent = parent2; + gameObject4.transform.localPosition = new Vector3((float)(k * base.uiBehaviour.m_ItemPool.TplWidth), 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject4, (int)rowData.Reward[k, 0], (int)rowData.Reward[k, 1], false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject4, (int)rowData.Reward[k, 0]); + } + int num2 = 0; + this._doc.CollectUseDict.TryGetValue(rowData.ID, out num2); + bool flag2 = num2 > 0; + if (flag2) + { + gameObject2.SetActive(true); + ixuibutton.SetVisible(false); + } + else + { + gameObject2.SetActive(false); + ixuibutton.SetVisible(true); + ixuibutton.SetGrey(grey); + ixuibutton.ID = (ulong)rowData.ID; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFetchBtnClick)); + } + } + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnFetchBtnClick(IXUIButton btn) + { + this._doc.QueryGetReward((uint)btn.ID); + return true; + } + + private bool OnHelpBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildCollect); + return true; + } + + public void RefreshTime(int time) + { + base.uiBehaviour.m_LeftTime.SetText(string.Format(this._tipsStr, XSingleton.singleton.TimeDuarationFormatString(time, 5))); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardDlg.cs.meta new file mode 100644 index 00000000..3c01e3e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildCollectRewardDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0959331cee8738f48aee5dc2024e68b8 +timeCreated: 1611403155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildDragonChallengeResultView.cs b/Client/Assets/Scripts/XMainClient/UI/GuildDragonChallengeResultView.cs new file mode 100644 index 00000000..78572ee8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildDragonChallengeResultView.cs @@ -0,0 +1,66 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildDragonChallengeResultView : DlgBase + { + public override string fileName + { + get + { + return "Battle/Comcotinue"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildDragonDocument _Doc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + this._Doc._GuildDragonChallengeResultView = this; + } + + protected override void OnShow() + { + base.OnShow(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_ReturnBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturn)); + } + + private void OnReturn(IXUISprite sp) + { + this._Doc.ReqQutiScene(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildDragonChallengeResultView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildDragonChallengeResultView.cs.meta new file mode 100644 index 00000000..f6a3d6dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildDragonChallengeResultView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1926ad50b218d254d9125b0e49f4d4e4 +timeCreated: 1611403301 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildFiexdRedPackageView.cs b/Client/Assets/Scripts/XMainClient/UI/GuildFiexdRedPackageView.cs new file mode 100644 index 00000000..0a627ed0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildFiexdRedPackageView.cs @@ -0,0 +1,149 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildFiexdRedPackageView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildFiexdRedPacketDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_SevenActivity); + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildRedPacketDocument _Doc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickClose)); + base.uiBehaviour.m_HelpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickHelp)); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendGuildBonusSendList(); + } + + private bool ClickClose(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + + private bool OnSendClick(IXUIButton btn) + { + this._Doc.SendGuildBonusInSend((uint)btn.ID); + return true; + } + + private bool ClickHelp(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildBoon_FixedRedPacket); + return true; + } + + public void Refresh() + { + int count = this._Doc.GuildBonusSendList.Count; + base.uiBehaviour.m_WrapContent.SetContentCount(count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + base.uiBehaviour.m_Empty.gameObject.SetActive(count == 0); + } + + private void OnWrapContentUpdate(Transform t, int index) + { + bool flag = index >= this._Doc.GuildBonusSendList.Count; + if (!flag) + { + IXUIButton ixuibutton = t.Find("Go").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Desc").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("Value").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + XGuildRedPackageSendBrief xguildRedPackageSendBrief = this._Doc.GuildBonusSendList[index]; + ixuilabel.SetText(xguildRedPackageSendBrief.senderName); + ItemEnum itemid = (ItemEnum)xguildRedPackageSendBrief.itemid; + string sprite = string.Empty; + bool flag2 = itemid == ItemEnum.GOLD; + if (flag2) + { + sprite = "l_red_jinbi_01"; + } + else + { + bool flag3 = itemid == ItemEnum.DRAGON_COIN; + if (flag3) + { + sprite = "l_red_longbi_01"; + } + else + { + sprite = "l_red_longbi_01"; + } + } + ixuisprite.SetSprite(sprite); + ixuisprite.MakePixelPerfect(); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSendClick)); + ixuibutton.ID = xguildRedPackageSendBrief.uid; + ixuibutton.SetVisible(xguildRedPackageSendBrief.senderType == BonusSender.Bonus_Self); + bool flag4 = xguildRedPackageSendBrief.bonusInfo != null; + if (flag4) + { + ixuilabel2.SetText(xguildRedPackageSendBrief.bonusInfo.GuildBonusName); + ixuilabelSymbol.InputText = XLabelSymbolHelper.FormatCostWithIcon((int)xguildRedPackageSendBrief.bonusInfo.GuildBonusReward[1], (ItemEnum)xguildRedPackageSendBrief.bonusInfo.GuildBonusReward[0]); + } + else + { + ixuilabel2.SetText(string.Empty); + ixuilabelSymbol.InputText = string.Empty; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildFiexdRedPackageView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildFiexdRedPackageView.cs.meta new file mode 100644 index 00000000..2dc9687a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildFiexdRedPackageView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06d4e68b2e49c264f92063c2098a9c9b +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildInheritBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildInheritBehaviour.cs new file mode 100644 index 00000000..4e3dcec0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildInheritBehaviour.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildInheritBehaviour : DlgBehaviourBase + { + public IXUIButton Close; + + public IXUIScrollView ScrollView; + + public IXUIWrapContent WrapContent; + + public IXUIButton OverLook; + + public IXUIButton NotAccept; + + private void Awake() + { + this.Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.ScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.WrapContent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.OverLook = (base.transform.Find("OverLook").GetComponent("XUIButton") as IXUIButton); + this.NotAccept = (base.transform.Find("NotAccept").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildInheritBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildInheritBehaviour.cs.meta new file mode 100644 index 00000000..141681e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildInheritBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fbd8f01c5c13d24b8e83708336fc929 +timeCreated: 1611403212 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildInheritDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildInheritDlg.cs new file mode 100644 index 00000000..5eec78fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildInheritDlg.cs @@ -0,0 +1,114 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildInheritDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildInheritDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildInheritDocument _Doc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnItemUpdateHandler)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.OverLook.RegisterClickEventHandler(new ButtonClickEventHandler(this.CloseClick)); + base.uiBehaviour.Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.CloseClick)); + base.uiBehaviour.NotAccept.RegisterClickEventHandler(new ButtonClickEventHandler(this.OverLookClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendInheritList(); + } + + public void RefreshData() + { + base.uiBehaviour.WrapContent.SetContentCount(this._Doc.InheritList.Count, false); + base.uiBehaviour.ScrollView.ResetPosition(); + } + + private bool OverLookClick(IXUIButton btn) + { + this._Doc.SendDelInherit(); + this.SetVisibleWithAnimation(false, null); + return false; + } + + private bool CloseClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + + private void OnItemUpdateHandler(Transform t, int index) + { + bool flag = index >= this._Doc.InheritList.Count; + if (!flag) + { + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Position").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("LastLoginTime").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("BtnReceive").GetComponent("XUIButton") as IXUIButton; + GuildInheritInfo guildInheritInfo = this._Doc.InheritList[index]; + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickReceive)); + ixuilabel.SetText(guildInheritInfo.GetLevelString()); + ixuilabel2.SetText(guildInheritInfo.GetSceneName()); + ixuilabel3.SetText(guildInheritInfo.GetTimeString()); + ixuilabelSymbol.InputText = guildInheritInfo.name; + } + } + + private bool OnClickReceive(IXUIButton btn) + { + bool flag = btn.ID >= 0UL; + if (flag) + { + this._Doc.SendAccpetInherit((int)btn.ID); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildInheritDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildInheritDlg.cs.meta new file mode 100644 index 00000000..78e77953 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildInheritDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87b3a5bfe3b9f9346b368e15755f1692 +timeCreated: 1611404081 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessBehaviour.cs new file mode 100644 index 00000000..386f6052 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class GuildInheritProcessBehaviour : DlgBehaviourBase + { + protected internal IXUISlider mProcessSlider; + + protected internal IXUILabel mProcessLabel; + + protected internal IXUILabel mContentLabel; + + private void Awake() + { + this.mProcessSlider = (base.transform.Find("Bg/Process").GetComponent("XUISlider") as IXUISlider); + this.mProcessLabel = (base.transform.Find("Bg/ProcessLabel").GetComponent("XUILabel") as IXUILabel); + this.mContentLabel = (base.transform.Find("Bg/Content").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessBehaviour.cs.meta new file mode 100644 index 00000000..d19d1d41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87f931453d16aee4f8f2440a81493588 +timeCreated: 1611404082 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessDlg.cs new file mode 100644 index 00000000..9762b083 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessDlg.cs @@ -0,0 +1,90 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildInheritProcessDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildInheritProcessDlg"; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + private XElapseTimer m_lastTime; + + private float m_totalTime; + + private GuildInheritProcessDlg.OnSliderProcessEnd _endEvent; + + public delegate void OnSliderProcessEnd(); + + public void ShowProcess(float countdownTime, string mess, string tips, GuildInheritProcessDlg.OnSliderProcessEnd events = null) + { + bool flag = this.m_lastTime == null; + if (flag) + { + this.m_lastTime = new XElapseTimer(); + } + this._endEvent = events; + this.m_totalTime = countdownTime; + this.m_lastTime.LeftTime = this.m_totalTime; + this.SetVisibleWithAnimation(true, null); + base.uiBehaviour.mProcessLabel.SetText(mess); + base.uiBehaviour.mContentLabel.SetText(tips); + } + + public void HideProcess() + { + this.SetVisibleWithAnimation(false, null); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnUnload() + { + this.m_lastTime = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.UpdateTime(); + } + + private void UpdateTime() + { + this.m_lastTime.Update(); + bool flag = this.m_lastTime.LeftTime > 0f; + if (flag) + { + float value = this.m_lastTime.LeftTime / this.m_totalTime; + base.uiBehaviour.mProcessSlider.Value = value; + } + else + { + this.SetVisibleWithAnimation(false, null); + bool flag2 = this._endEvent != null; + if (flag2) + { + this._endEvent(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessDlg.cs.meta new file mode 100644 index 00000000..72d0cd7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildInheritProcessDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d618896f254a1334e840b7b3c9b0a37e +timeCreated: 1611404630 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildJockerMatchView.cs b/Client/Assets/Scripts/XMainClient/UI/GuildJockerMatchView.cs new file mode 100644 index 00000000..6031f501 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildJockerMatchView.cs @@ -0,0 +1,17 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildJockerMatchView : DlgBase where T : IXUIDlg, new() + { + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildJokerMatchDlg"; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildJockerMatchView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildJockerMatchView.cs.meta new file mode 100644 index 00000000..5b915e06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildJockerMatchView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97f903093522b744795869050ac95fea +timeCreated: 1611404189 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportHandler.cs b/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportHandler.cs new file mode 100644 index 00000000..6a793bd1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportHandler.cs @@ -0,0 +1,373 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildMiniReportHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/BattleMiniReportDlg"; + } + } + + public readonly int max_count = 40; + + public static List msgs = new List(); + + public string lastCahceMsg = string.Empty; + + public ILoopScrollView loopScrool; + + public IXUIButton m_btnReport; + + public IXUIButton m_btnHelp; + + public GameObject m_objpreparing; + + public IXUITweenTool m_tween; + + private Vector3 infoDis; + + public XUIPool m_ShowIntoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel[] m_Killer = new IXUILabel[XBattleCaptainPVPDocument.GAME_INFO]; + + public IXUILabel[] m_Dead = new IXUILabel[XBattleCaptainPVPDocument.GAME_INFO]; + + public IXUISprite[] m_InfoIcon = new IXUISprite[XBattleCaptainPVPDocument.GAME_INFO]; + + public Transform m_objMyinfo; + + public IXUILabel m_lblRank; + + public IXUILabel m_lblAttack; + + public IXUILabel m_lblAccupy; + + private XGuildTerritoryDocument _doc; + + private bool isopen = true; + + private Vector3 NoVisible = new Vector3(2000f, 0f, 0f); + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + this.m_btnReport = (base.transform.Find("Bg/Report").GetComponent("XUIButton") as IXUIButton); + this.m_btnHelp = (base.transform.Find("Bg/help").GetComponent("XUIButton") as IXUIButton); + this.loopScrool = (base.transform.Find("Bg/items").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_objpreparing = base.transform.Find("Bg/Preparing").gameObject; + this.m_tween = (base.transform.Find("Bg/BeginFrame").GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform = base.transform.Find("Bg/buffs/InfoTpl"); + this.m_ShowIntoPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_ShowIntoPool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)XGuildTerritoryDocument.GAME_INFO)) + { + GameObject gameObject = this.m_ShowIntoPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + this.infoDis = new Vector3(0f, (float)(-(float)ixuisprite.spriteHeight), 0f); + gameObject.transform.localPosition = this.infoDis * (float)num; + this.m_Killer[num] = (gameObject.transform.Find("killer").GetComponent("XUILabel") as IXUILabel); + this.m_Dead[num] = (gameObject.transform.Find("dead").GetComponent("XUILabel") as IXUILabel); + this.m_InfoIcon[num] = (gameObject.transform.Find("icon").GetComponent("XUISprite") as IXUISprite); + num++; + } + this.m_ShowIntoPool.ActualReturnAll(false); + this.m_objMyinfo = base.transform.Find("Bg/MyInfo"); + this.m_lblRank = (this.m_objMyinfo.Find("Label_rank").GetComponent("XUILabel") as IXUILabel); + this.m_lblAttack = (this.m_objMyinfo.Find("Label_attack").GetComponent("XUILabel") as IXUILabel); + this.m_lblAccupy = (this.m_objMyinfo.Find("Label_accupy").GetComponent("XUILabel") as IXUILabel); + this.m_objpreparing.SetActive(false); + this.m_tween.gameObject.SetActive(false); + this.m_objMyinfo.gameObject.SetActive(XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT); + GameObject tpl = this.loopScrool.GetTpl(); + bool flag = tpl != null && tpl.GetComponent() == null; + if (flag) + { + tpl.AddComponent(); + } + bool flag2 = XSingleton.singleton.SceneType != SceneType.SCENE_CASTLE_WAIT && XSingleton.singleton.SceneType != SceneType.SCENE_CASTLE_FIGHT; + if (flag2) + { + GuildMiniReportHandler.msgs.Clear(); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnReport.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReportClick)); + this.m_btnHelp.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.qInfo.Clear(); + this.ShowList(); + this.ShowBuffs(); + } + + public void Push(GCFG2CSynType type, GCFG2CSynPara para) + { + string text = string.Empty; + switch (type) + { + case GCFG2CSynType.GCF_G2C_SYN_MUL_POINT: + { + TerritoryBattle.RowData byID = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(para.territoryid); + GuildTransfer.RowData bySceneID = this.GetBySceneID(para.mapid); + bool flag = byID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("territory id: " + para.territoryid, null, null, null, null, null); + } + else + { + bool flag2 = byID.territorylevel == 1u; + if (flag2) + { + text = XStringDefineProxy.GetString("TERRITORY_TYPE3", new object[] + { + bySceneID.name, + byID.territoryname, + para.mulpoint + }); + } + else + { + bool flag3 = byID.territorylevel == 2u; + if (flag3) + { + text = XStringDefineProxy.GetString("TERRITORY_TYPE4", new object[] + { + bySceneID.name, + byID.territoryname, + para.mulpoint + }); + } + else + { + bool flag4 = byID.territorylevel == 3u; + if (flag4) + { + text = XStringDefineProxy.GetString("TERRITORY_TYPE5", new object[] + { + bySceneID.name, + byID.territoryname, + para.mulpoint + }); + } + } + } + } + break; + } + case GCFG2CSynType.GCF_G2C_SYN_OCCUPY: + { + int num = XFastEnumIntEqualityComparer.ToInt(para.jvdian.type); + XEntity entity = XSingleton.singleton.GetEntity(para.roleid); + bool flag5 = entity != null; + if (flag5) + { + string @string = XStringDefineProxy.GetString("Territory_judian" + num); + text = XStringDefineProxy.GetString("TERRITORY_TYPE2", new object[] + { + entity.Name, + para.jvdian.guildname, + @string + }); + } + else + { + XSingleton.singleton.AddWarningLog("entity is null, roleid: ", para.roleid.ToString(), null, null, null, null); + } + break; + } + } + bool flag6 = !string.IsNullOrEmpty(text); + if (flag6) + { + this.Push(text); + } + } + + public GuildTransfer.RowData GetBySceneID(uint sceneid) + { + for (int i = 0; i < XGuildTerritoryDocument.mGuildTransfer.Table.Length; i++) + { + bool flag = XGuildTerritoryDocument.mGuildTransfer.Table[i].sceneid == sceneid; + if (flag) + { + return XGuildTerritoryDocument.mGuildTransfer.Table[i]; + } + } + return null; + } + + public void Push(string content) + { + ReportMsg reportMsg = new ReportMsg(); + reportMsg.LoopID = XSingleton.singleton.XHash(content + DateTime.Now.ToString()); + reportMsg.content = content; + GuildMiniReportHandler.msgs.Add(reportMsg); + this.ShowList(); + } + + public void ShowPrepare(bool show) + { + bool flag = this.m_objpreparing != null; + if (flag) + { + this.m_objpreparing.SetActive(show); + } + bool flag2 = this.m_objMyinfo != null; + if (flag2) + { + this.m_objMyinfo.gameObject.SetActive(!show); + } + } + + public void ShowBegin(bool open) + { + bool flag = this.m_tween != null; + if (flag) + { + bool flag2 = open && open != this.isopen; + if (flag2) + { + this.m_tween.gameObject.SetActive(true); + this.m_tween.ResetTween(true); + this.m_tween.PlayTween(true, -1f); + } + this.isopen = open; + } + } + + public void ShowList() + { + bool flag = base.IsVisible(); + if (flag) + { + List list = new List(); + string b = string.Empty; + for (int i = 0; i < GuildMiniReportHandler.msgs.Count; i++) + { + ReportMsg reportMsg = new ReportMsg(); + reportMsg.LoopID = XSingleton.singleton.XHash(GuildMiniReportHandler.msgs[i].content + i); + reportMsg.content = GuildMiniReportHandler.msgs[i].content; + list.Add(reportMsg); + b = reportMsg.content; + } + bool flag2 = string.IsNullOrEmpty(this.lastCahceMsg) || this.lastCahceMsg != b; + if (flag2) + { + this.loopScrool.Init(list, new DelegateHandler(this.RefreshItem), null, (GuildMiniReportHandler.msgs.Count < 4) ? 0 : 1, false); + } + bool flag3 = GuildMiniReportHandler.msgs != null && GuildMiniReportHandler.msgs.Count > 0; + if (flag3) + { + int index = GuildMiniReportHandler.msgs.Count - 1; + this.lastCahceMsg = GuildMiniReportHandler.msgs[index].content; + } + } + } + + public void ShowBuffs() + { + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + } + this.m_ShowIntoPool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)XGuildTerritoryDocument.GAME_INFO)) + { + GameObject gameObject = this.m_ShowIntoPool.FetchGameObject(false); + bool flag2 = this._doc.qInfo.Count <= num; + if (flag2) + { + gameObject.transform.localPosition = this.NoVisible; + } + else + { + gameObject.transform.localPosition = this.infoDis * (float)num; + int num2 = 0; + foreach (XBattleCaptainPVPDocument.KillInfo killInfo in this._doc.qInfo) + { + bool flag3 = num2 == num; + if (flag3) + { + this.m_Killer[num].SetText(killInfo.KillName); + this.m_Dead[num].SetText(killInfo.DeadName); + this.m_InfoIcon[num].SetSprite("hall_zljt_0"); + break; + } + num2++; + } + } + num++; + } + this.m_ShowIntoPool.ActualReturnAll(false); + } + + private void RefreshItem(ILoopItemObject item, LoopItemData data) + { + ReportMsg reportMsg = data as ReportMsg; + bool flag = reportMsg != null; + if (flag) + { + GameObject obj = item.GetObj(); + bool flag2 = obj != null; + if (flag2) + { + GuildMiniReportItem component = obj.GetComponent(); + bool flag3 = component != null; + if (flag3) + { + component.Refresh(reportMsg.content); + } + } + } + else + { + XSingleton.singleton.AddErrorLog("GuildMiniReportItem info is null", null, null, null, null, null); + } + } + + private bool OnReportClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + + private bool OnHelpClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildTerritory); + return true; + } + + public void RefreshMyInfo(GCFRoleBrief info) + { + bool flag = info != null; + if (flag) + { + uint rank = info.rank; + this.m_lblRank.SetText((rank == 0u) ? "-" : rank.ToString()); + this.m_lblAttack.SetText(info.killcount.ToString()); + this.m_lblAccupy.SetText(info.occupycount.ToString()); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportHandler.cs.meta new file mode 100644 index 00000000..e444c556 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc97ef1c054759b418fd07b0f7cbd9a5 +timeCreated: 1611404448 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportItem.cs b/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportItem.cs new file mode 100644 index 00000000..c1f987da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportItem.cs @@ -0,0 +1,29 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + public class GuildMiniReportItem : MonoBehaviour + { + public IXUILabel m_lblContent; + + public IXUISprite m_sprRoot; + + private void Awake() + { + this.m_sprRoot = (base.GetComponent("XUISprite") as IXUISprite); + this.m_lblContent = (base.transform.Find("content").GetComponent("XUILabel") as IXUILabel); + } + + public void Refresh(string content) + { + bool flag = this.m_lblContent != null && !string.IsNullOrEmpty(content); + if (flag) + { + this.m_lblContent.SetText(content); + this.m_sprRoot.spriteHeight = 10 + this.m_lblContent.spriteHeight; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportItem.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportItem.cs.meta new file mode 100644 index 00000000..e5d47d47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildMiniReportItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ad5f85db53d91444ad6042587ed3bcf +timeCreated: 1611403666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildPositionBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildPositionBehaviour.cs new file mode 100644 index 00000000..5301052d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildPositionBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildPositionBehaviour : DlgBehaviourBase + { + public XUIPool m_MenuPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_backSprite; + + public IXUISprite m_memuSprite; + + private void Awake() + { + Transform transform = base.transform.Find("Memu/template"); + this.m_MenuPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, true); + this.m_backSprite = (base.transform.Find("Memu/back").GetComponent("XUISprite") as IXUISprite); + this.m_memuSprite = (base.transform.Find("Memu").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildPositionBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildPositionBehaviour.cs.meta new file mode 100644 index 00000000..68725840 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildPositionBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd5519b0f6c2aef499fe4519c5950d5b +timeCreated: 1611404554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildPositionMenu.cs b/Client/Assets/Scripts/XMainClient/UI/GuildPositionMenu.cs new file mode 100644 index 00000000..44201fa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildPositionMenu.cs @@ -0,0 +1,128 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildPositionMenu : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildPositionMenu"; + } + } + + private GuildPosition _SelectPosition; + + private ulong _MemberID; + + private XGuildMemberDocument _memberDoc; + + public void ShowMenu(ulong MemberID) + { + this._MemberID = MemberID; + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshView(); + } + else + { + this.SetVisibleWithAnimation(true, null); + } + } + + protected override void Init() + { + base.Init(); + this._memberDoc = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshView(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_memuSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickClose)); + } + + private void RefreshView() + { + base.uiBehaviour.m_MenuPool.ReturnAll(false); + float x = base.uiBehaviour.m_MenuPool.TplPos.x; + float num = base.uiBehaviour.m_MenuPool.TplPos.y; + float z = base.uiBehaviour.m_MenuPool.TplPos.z; + int num2 = XFastEnumIntEqualityComparer.ToInt(GuildPosition.GPOS_COUNT); + bool flag = num2 > 2; + if (flag) + { + num += (float)((num2 - 2) * base.uiBehaviour.m_MenuPool.TplHeight / 2); + } + int spriteHeight = base.uiBehaviour.m_MenuPool.TplHeight * (num2 - 1); + int num3 = XFastEnumIntEqualityComparer.ToInt(this._memberDoc.GetMemberPosition(this._MemberID)); + for (int i = 0; i < num2; i++) + { + bool flag2 = num3 == i; + if (!flag2) + { + GameObject gameObject = base.uiBehaviour.m_MenuPool.FetchGameObject(false); + bool flag3 = i < num3; + if (flag3) + { + gameObject.transform.localPosition = new Vector3(x, num - (float)(base.uiBehaviour.m_MenuPool.TplHeight * i), z); + } + else + { + gameObject.transform.localPosition = new Vector3(x, num - (float)(base.uiBehaviour.m_MenuPool.TplHeight * (i - 1)), z); + } + IXUIButton ixuibutton = gameObject.transform.Find("button").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = gameObject.transform.Find("button/name").GetComponent("XUILabel") as IXUILabel; + ixuibutton.ID = (ulong)((long)i); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickHandler)); + ixuilabel.SetText(XGuildDocument.GuildPP.GetPositionName((GuildPosition)i, false)); + } + } + base.uiBehaviour.m_memuSprite.spriteHeight = spriteHeight; + } + + private bool ClickHandler(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + this._SelectPosition = (GuildPosition)btn.ID; + bool flag = this._SelectPosition == GuildPosition.GPOS_LEADER; + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_CHANGELEADER_CONFIRM", new object[] + { + XGuildDocument.GuildPP.GetPositionName(GuildPosition.GPOS_LEADER, false) + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnSelectPositionHandler)); + } + else + { + this.OnSelectPositionHandler(null); + } + return true; + } + + private bool OnSelectPositionHandler(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this._memberDoc.ReqChangePosition(this._MemberID, this._SelectPosition); + return true; + } + + private void ClickClose(IXUISprite sprite) + { + this.SetVisibleWithAnimation(false, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildPositionMenu.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildPositionMenu.cs.meta new file mode 100644 index 00000000..55d755c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildPositionMenu.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89c26ea92e2324d46aca5d4004ecaa95 +timeCreated: 1611404089 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildQualifierBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierBehavior.cs new file mode 100644 index 00000000..04fed371 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierBehavior.cs @@ -0,0 +1,72 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildQualifierBehavior : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Go; + + public IXUIScrollView m_RankScrollView; + + public IXUIWrapContent m_RankWrapContent; + + public IXUIScrollView m_FrameScrollView; + + public IXUIWrapContent m_FrameWrapContent; + + public IXUILabel m_Time; + + public IXUILabel m_Rule; + + public IXUILabel m_Content; + + public IXUILabel m_EmptyRank; + + public Transform m_SelfRankWrapItem; + + public IXUICheckBox m_SelectAll; + + public IXUICheckBox m_SelectSelf; + + public Transform m_RewardList; + + public XUIPool m_FrameItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_unJoin; + + public Transform m_Rank; + + public Transform m_Frame; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Go = (base.transform.Find("Bg/Frame/Go").GetComponent("XUIButton") as IXUIButton); + this.m_RankScrollView = (base.transform.Find("Bg/Rank/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RankWrapContent = (base.transform.Find("Bg/Rank/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_FrameScrollView = (base.transform.Find("Bg/Frame/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_FrameWrapContent = (base.transform.Find("Bg/Frame/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_SelfRankWrapItem = base.transform.Find("Bg/Rank/RankTpl"); + this.m_EmptyRank = (base.transform.Find("Bg/Rank/EmptyRank").GetComponent("XUILabel") as IXUILabel); + this.m_SelectAll = (base.transform.Find("Bg/Rank/Select/All").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_SelectSelf = (base.transform.Find("Bg/Rank/Select/Self").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Time = (base.transform.Find("Bg/Frame/Title/Time").GetComponent("XUILabel") as IXUILabel); + this.m_Rule = (base.transform.Find("Bg/Frame/Title/Rule").GetComponent("XUILabel") as IXUILabel); + this.m_Content = (base.transform.Find("Bg/Frame/content").GetComponent("XUILabel") as IXUILabel); + this.m_unJoin = base.transform.Find("Bg/EmptyRank"); + this.m_Rank = base.transform.Find("Bg/Rank"); + this.m_Frame = base.transform.Find("Bg/Frame"); + this.m_RewardList = base.transform.Find("Bg/Frame/Reward"); + Transform transform = base.transform.Find("Bg/Frame/Reward/item"); + this.m_RewardPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 3u, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildQualifierBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierBehavior.cs.meta new file mode 100644 index 00000000..1eadc651 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c711b5fbe325924698ece826d5ae6b9 +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildQualifierDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierDlg.cs new file mode 100644 index 00000000..41c04476 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierDlg.cs @@ -0,0 +1,362 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildQualifierDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildQualifierDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildQualifierDocument _Doc; + + private Vector3 m_ItemScale = new Vector3(0.5f, 0.5f, 0.5f); + + public override void OnUpdate() + { + base.OnUpdate(); + this.RespositionActive(); + } + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildQualifierDocument.uuID); + this._Doc.QualifierView = this; + base.uiBehaviour.m_FrameWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnFrameWrapUpdate)); + base.uiBehaviour.m_RankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnRankWrapUpdate)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClose)); + base.uiBehaviour.m_Go.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoHandler)); + base.uiBehaviour.m_SelectAll.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectAllChecked)); + base.uiBehaviour.m_SelectSelf.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectSelfChecked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.InitAwardList(); + this._Doc.Select = GuildQualifierSelect.ALL; + base.uiBehaviour.m_SelectAll.bChecked = true; + this._Doc.SendSelectQualifierList(); + this.RefreshData(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this._Doc.SendSelectQualifierList(); + } + + public void RefreshData() + { + this.m_uiBehaviour.m_Frame.gameObject.SetActive(this._Doc.ServerActive); + this.m_uiBehaviour.m_Rank.gameObject.SetActive(this._Doc.ServerActive); + this.m_uiBehaviour.m_unJoin.gameObject.SetActive(!this._Doc.ServerActive); + bool serverActive = this._Doc.ServerActive; + if (serverActive) + { + this.RepositionRank(); + this.RepositionFrame(); + this.RespositionActive(); + this.RepositionLastRewardCount(); + } + } + + private void RespositionActive() + { + bool flag = this._Doc.ActiveTime > 0.0; + if (flag) + { + base.uiBehaviour.m_Time.SetText(XSingleton.singleton.StringCombine(XStringDefineProxy.GetString("GUILD_QUALIFIER_TIME"), "(", XStringDefineProxy.GetString("GUILD_QUALIFER_STYLE1", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.ActiveTime, 5) + }), ")")); + } + else + { + base.uiBehaviour.m_Time.SetText(XSingleton.singleton.StringCombine(XStringDefineProxy.GetString("GUILD_QUALIFIER_TIME"), XStringDefineProxy.GetString("GUILD_QUALIFER_STYLE2"))); + } + } + + private void RepositionLastRewardCount() + { + uint lastRewardCount = this._Doc.GetLastRewardCount(); + base.uiBehaviour.m_Content.SetText(XStringDefineProxy.GetString("GUILD_QUALIFIER_CONTENT", new object[] + { + lastRewardCount + })); + base.uiBehaviour.m_Rule.SetText(XStringDefineProxy.GetString("GUILD_QUALIFIER_RULE")); + } + + private void RepositionRank() + { + List guildRoleRankList = this._Doc.GuildRoleRankList; + bool flag = guildRoleRankList == null || guildRoleRankList.Count == 0; + if (flag) + { + base.uiBehaviour.m_SelfRankWrapItem.gameObject.SetActive(false); + base.uiBehaviour.m_RankWrapContent.SetContentCount(0, false); + base.uiBehaviour.m_EmptyRank.Alpha = 1f; + } + else + { + base.uiBehaviour.m_RankWrapContent.SetContentCount(guildRoleRankList.Count, false); + base.uiBehaviour.m_RankScrollView.ResetPosition(); + base.uiBehaviour.m_EmptyRank.Alpha = (float)((guildRoleRankList.Count > 0) ? 0 : 1); + int num = -1; + int i = 0; + int count = guildRoleRankList.Count; + while (i < count) + { + bool flag2 = guildRoleRankList[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + num = i; + break; + } + i++; + } + bool flag3 = num >= 0; + if (flag3) + { + base.uiBehaviour.m_SelfRankWrapItem.gameObject.SetActive(true); + this.OnRankWrapUpdate(base.uiBehaviour.m_SelfRankWrapItem, num); + } + else + { + base.uiBehaviour.m_SelfRankWrapItem.gameObject.SetActive(false); + } + } + } + + private void RepositionFrame() + { + List guildRankList = this._Doc.GuildRankList; + bool flag = guildRankList == null || guildRankList.Count == 0; + if (flag) + { + base.uiBehaviour.m_FrameWrapContent.SetContentCount(0, false); + } + else + { + base.uiBehaviour.m_FrameWrapContent.SetContentCount(guildRankList.Count, false); + } + base.uiBehaviour.m_RankScrollView.ResetPosition(); + } + + private void OnRankWrapUpdate(Transform t, int index) + { + bool flag = t == null; + if (!flag) + { + List guildRoleRankList = this._Doc.GuildRoleRankList; + bool flag2 = index >= guildRoleRankList.Count || index < 0; + if (!flag2) + { + GuildLadderRoleRank guildLadderRoleRank = guildRoleRankList[index]; + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Rank3").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Rank").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Win").GetComponent("XUILabel") as IXUILabel; + uint index2; + bool flag3 = this._Doc.TryGetGuildIcon(guildLadderRoleRank.guildid, out index2); + string inputText; + if (flag3) + { + inputText = XSingleton.singleton.StringCombine(XLabelSymbolHelper.FormatImage("common/Billboard", XGuildDocument.GetPortraitName((int)index2)), guildLadderRoleRank.name); + } + else + { + inputText = guildLadderRoleRank.name; + } + ixuilabelSymbol.InputText = inputText; + bool flag4 = index + 1 > 3; + ixuilabel.Alpha = (float)(flag4 ? 1 : 0); + ixuilabel.SetText((index + 1).ToString()); + ixuisprite.SetAlpha((float)(flag4 ? 0 : 1)); + ixuisprite.SetSprite(XSingleton.singleton.StringCombine("N", (index + 1).ToString())); + ixuilabel2.SetText(guildLadderRoleRank.wintimes.ToString()); + } + } + } + + private void OnFrameWrapUpdate(Transform t, int index) + { + bool flag = t == null; + if (!flag) + { + List guildRankList = this._Doc.GuildRankList; + bool flag2 = index >= guildRankList.Count || index < 0; + if (!flag2) + { + GuildLadderRank guildLadderRank = guildRankList[index]; + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Rank3").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Rank").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Win").GetComponent("XUILabel") as IXUILabel; + string s = XLabelSymbolHelper.FormatImage("common/Billboard", XGuildDocument.GetPortraitName((int)guildLadderRank.icon)); + ixuilabelSymbol.InputText = XSingleton.singleton.StringCombine(s, guildLadderRank.guildname); + bool flag3 = index + 1 > 3; + ixuilabel.Alpha = (float)(flag3 ? 1 : 0); + ixuisprite.SetAlpha((float)(flag3 ? 0 : 1)); + ixuilabel2.SetText(XStringDefineProxy.GetString("GUILD_QUALIFER_WINNER", new object[] + { + guildLadderRank.wintimes + })); + ixuisprite.SetSprite(XSingleton.singleton.StringCombine("N", (index + 1).ToString())); + Transform transform = t.Find("AwardList"); + GuildPkRankReward.RowData rowData; + bool flag4 = XGuildQualifierDocument.TryGetRankReward(index + 1, out rowData); + if (flag4) + { + transform.gameObject.SetActive(true); + SeqListRef reward = rowData.reward; + for (int i = 0; i < 4; i++) + { + GameObject gameObject = transform.Find(XSingleton.singleton.StringCombine("item", i.ToString())).gameObject; + bool flag5 = i < reward.Count; + if (flag5) + { + gameObject.SetActive(true); + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = gameObject.transform.Find("Quality").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)reward[i, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)reward[i, 0], (int)reward[i, 1], false); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + gameObject.SetActive(false); + } + } + } + else + { + transform.gameObject.SetActive(false); + } + } + } + } + + private void InitAwardList() + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("GuildLadderReward", true); + base.uiBehaviour.m_RewardPool.ReturnAll(false); + int i = 0; + int count = (int)sequenceList.Count; + while (i < count) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_RewardList; + gameObject.transform.localPosition = new Vector3((float)(i * 100), 0f, 0f); + gameObject.transform.localScale = Vector3.one; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, sequenceList[i, 0], sequenceList[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)sequenceList[i, 0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + i++; + } + } + + private bool OnSelectSelfChecked(IXUICheckBox checkBox) + { + bool flag = !checkBox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._Doc.Select = GuildQualifierSelect.SELF; + this.RepositionRank(); + result = false; + } + return result; + } + + private bool OnSelectAllChecked(IXUICheckBox checkBox) + { + bool flag = !checkBox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._Doc.Select = GuildQualifierSelect.ALL; + this.RepositionRank(); + result = false; + } + return result; + } + + private bool OnClickClose(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnGoHandler(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Qualifying, 0UL); + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildQualifierDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierDlg.cs.meta new file mode 100644 index 00000000..bf5a33aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9132b5d86d56d93469b34b67c3c498ab +timeCreated: 1611404142 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildQualifierHandler.cs b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierHandler.cs new file mode 100644 index 00000000..45aebc84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierHandler.cs @@ -0,0 +1,128 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildQualifierHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Guild/GuildQualifierRankFrame"; + } + } + + private IXUIWrapContent m_qualifierContent; + + private IXUIScrollView m_qualifierScrollView; + + private IXUILabel m_timeLabel; + + private XGuildQualifierDocument _Doc; + + private uint refreshTime = 0u; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildQualifierDocument.uuID); + this.m_qualifierContent = (base.transform.Find("ScrollView/Rank").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_qualifierScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_timeLabel = (base.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_qualifierContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.GuildQualifierWrapUpdate)); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this.refreshTime); + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this.refreshTime); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.CheckActive(); + } + + public override void RefreshData() + { + base.RefreshData(); + bool flag = this.refreshTime > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.refreshTime); + } + this.CheckActive(); + this.refreshTime = XSingleton.singleton.SetTimer((float)XSingleton.singleton.GetInt("GuildLadderRefreshTime"), new XTimerMgr.ElapsedEventHandler(this.UpdateTimeFrame), null); + bool flag2 = this._Doc.GuildRankList == null; + if (flag2) + { + this.m_qualifierContent.SetContentCount(0, false); + } + else + { + this.m_qualifierContent.SetContentCount(this._Doc.GuildRankList.Count, false); + } + } + + private void CheckActive() + { + bool flag = this._Doc.ActiveTime > 0.0; + if (flag) + { + this.m_timeLabel.SetText(XStringDefineProxy.GetString("GUILD_QUALIFER_STYLE1", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.ActiveTime, 5) + })); + } + else + { + this.m_timeLabel.SetText(XStringDefineProxy.GetString("GUILD_QUALIFER_STYLE2")); + } + } + + private void UpdateTimeFrame(object o) + { + XSingleton.singleton.KillTimer(this.refreshTime); + this._Doc.SendGuildLadderRankInfo(); + } + + private void GuildQualifierWrapUpdate(Transform t, int index) + { + bool flag = index >= this._Doc.GuildRankList.Count; + if (!flag) + { + GuildLadderRank guildLadderRank = this._Doc.GuildRankList[index]; + IXUISprite ixuisprite = t.Find("IndexSprite").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Index").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Winner").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string s = XLabelSymbolHelper.FormatImage("common/Billboard", XGuildDocument.GetPortraitName((int)guildLadderRank.icon)); + ixuilabel2.SetText(guildLadderRank.wintimes.ToString()); + ixuilabelSymbol.InputText = XSingleton.singleton.StringCombine(s, guildLadderRank.guildname); + bool flag2 = index < 3; + if (flag2) + { + ixuilabel.Alpha = 0f; + ixuisprite.SetAlpha(1f); + ixuisprite.SetSprite(XSingleton.singleton.StringCombine("N", (index + 1).ToString())); + } + else + { + ixuilabel.Alpha = 1f; + ixuisprite.SetAlpha(0f); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildQualifierHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierHandler.cs.meta new file mode 100644 index 00000000..9e6f26bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildQualifierHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2aa770c5f33020f449325b1da024cfdc +timeCreated: 1611403496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildSalaryDescHandler.cs b/Client/Assets/Scripts/XMainClient/UI/GuildSalaryDescHandler.cs new file mode 100644 index 00000000..f3f7021a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildSalaryDescHandler.cs @@ -0,0 +1,133 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildSalaryDescHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Guild/GuildSalaryDescDlg"; + } + } + + private IXUIButton m_Close; + + private XUITabControl m_tabControl = new XUITabControl(); + + private IXUIProgress m_Progress; + + private IXUILabel m_ScoreValue; + + private IXUILabel m_ScoreMark; + + private IXUILabel m_ProgressLabel; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private XGuildSalaryDocument _Doc; + + private List m_salaryDesc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildSalaryDocument.uuID); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform tabTpl = base.transform.Find("Bg/Tabs/TabTpl"); + this.m_tabControl.SetTabTpl(tabTpl); + this.m_Progress = (base.transform.Find("Bg/Progress").GetComponent("XUIProgress") as IXUIProgress); + this.m_WrapContent = (base.transform.Find("Bg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ScrollView = (base.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ScoreMark = (base.transform.Find("Bg/Progress/FriendTxt").GetComponent("XUILabel") as IXUILabel); + this.m_ProgressLabel = (base.transform.Find("Bg/Progress/Num").GetComponent("XUILabel") as IXUILabel); + this.m_ScoreValue = (base.transform.Find("Bg/P/Num").GetComponent("XUILabel") as IXUILabel); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapUpdateContent)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClose)); + } + + protected override void OnShow() + { + base.OnShow(); + this.InitTabInfos(); + this.SetBaseInfo(); + } + + private void InitTabInfos() + { + List tabIndexs = XGuildSalaryDocument.TabIndexs; + List tabNames = XGuildSalaryDocument.TabNames; + this.m_tabControl.SetupTabs(tabIndexs, tabNames, new XUITabControl.UITabControlCallback(this.OnSelectTable), true, 1f, this._Doc.SelectTabs, true); + } + + private void OnSelectTable(ulong id) + { + int num = (int)id; + this._Doc.SelectTabs = num; + this.SetBaseInfo(); + bool flag = XGuildSalaryDocument.GuildSalaryDescDic.TryGetValue(num, out this.m_salaryDesc); + if (flag) + { + this.m_WrapContent.SetContentCount(this.m_salaryDesc.Count, false); + } + else + { + this.m_WrapContent.SetContentCount(0, false); + } + this.m_ScrollView.ResetPosition(); + } + + private bool OnClickClose(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private void OnWrapUpdateContent(Transform t, int index) + { + bool flag = this.m_salaryDesc == null || index >= this.m_salaryDesc.Count; + if (!flag) + { + IXUILabel ixuilabel = t.Find("Content").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Go/Go").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnClickGoHandler)); + GuildSalaryDesc.RowData rowData = this.m_salaryDesc[index]; + ixuilabel.SetText(rowData.Desc); + ixuilabel2.SetText(rowData.GoLabel); + ixuilabel2.ID = (ulong)((long)rowData.Go); + ixuilabel2.SetVisible(rowData.Go > 0); + } + } + + private void OnClickGoHandler(IXUILabel label) + { + bool flag = label.ID > 0UL; + if (flag) + { + XSingleton.singleton.OpenSystem((int)label.ID); + } + } + + private void SetBaseInfo() + { + XGuildSalaryInfo value = this._Doc.GetValue(this._Doc.SelectTabs); + this.m_ScoreValue.SetText(value.Score.ToString()); + this.m_ScoreMark.SetText(XGuildSalaryDocument.GetGradeName((int)value.Grade)); + this.m_Progress.value = value.Percent; + this.m_ProgressLabel.SetText(string.Format("{0}/{1}", value.Value, value.TotalScore)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildSalaryDescHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildSalaryDescHandler.cs.meta new file mode 100644 index 00000000..c82702d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildSalaryDescHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 059651832fd569443a1907ec5918ca03 +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildSalayBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/GuildSalayBehavior.cs new file mode 100644 index 00000000..8c952d8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildSalayBehavior.cs @@ -0,0 +1,103 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildSalayBehavior : DlgBehaviourBase + { + public Transform m_Root; + + public Transform m_Right; + + public Transform m_Empty; + + public IXUIButton m_Close; + + public IXUILabel m_thisWeekScore; + + public IXUITexture m_thisWeekGrade; + + public GuildScoreInfo m_BottomInfo = new GuildScoreInfo(); + + public GuildScoreInfo m_LeftInfo = new GuildScoreInfo(); + + public GuildScoreInfo m_UpInfo = new GuildScoreInfo(); + + public GuildScoreInfo m_RightInfo = new GuildScoreInfo(); + + public IXRadarMap m_radarMap; + + public IXUILabel m_LastWeekScore; + + public IXUITexture m_LastWeekGrade; + + public IXUILabel m_LastScoreLabel; + + public IXUILabel m_GuildLevel; + + public IXUILabel m_GuildPosition; + + public IXUILabel m_TitleLabel; + + public IXUIScrollView m_RewardScrollView; + + public IXUIWrapContent m_WrapContent; + + public IXUIButton m_GetButton; + + public IXUILabel m_GetLabel; + + public IXUILabel m_CanNot; + + public IXUILabel m_ShowNextReward; + + public Transform m_DropView; + + public IXUIScrollView m_DropScrollView; + + public IXUIWrapContent m_DropWrapContent; + + public IXUISprite m_DropClose; + + public IXUILabel[] topPlayers = new IXUILabel[5]; + + private void Awake() + { + this.m_Root = base.transform.Find("Bg"); + this.m_Right = base.transform.Find("Bg/frame/Right"); + this.m_Empty = base.transform.Find("Bg/frame/Empty"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_thisWeekGrade = (base.transform.Find("Bg/frame/Left/Score/Grade").GetComponent("XUITexture") as IXUITexture); + this.m_thisWeekScore = (base.transform.Find("Bg/frame/Left/Score/ScoreValue").GetComponent("XUILabel") as IXUILabel); + this.m_BottomInfo.Init(base.transform.Find("Bg/frame/Left/Bottom"), 0); + this.m_LeftInfo.Init(base.transform.Find("Bg/frame/Left/Left"), 1); + this.m_UpInfo.Init(base.transform.Find("Bg/frame/Left/Up"), 2); + this.m_RightInfo.Init(base.transform.Find("Bg/frame/Left/Right"), 3); + this.m_radarMap = (base.transform.Find("Bg/frame/Left/RadarMap/RadarMap").GetComponent("XRadarMap") as IXRadarMap); + this.m_WrapContent = (base.transform.Find("Bg/frame/Right/CanGet/ScrollView/Reward").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RewardScrollView = (base.transform.Find("Bg/frame/Right/CanGet/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_LastWeekGrade = (base.transform.Find("Bg/frame/Right/Score/Grade").GetComponent("XUITexture") as IXUITexture); + this.m_LastWeekScore = (base.transform.Find("Bg/frame/Right/Score/ScoreValue").GetComponent("XUILabel") as IXUILabel); + this.m_LastScoreLabel = (base.transform.Find("Bg/frame/Right/Score/Last").GetComponent("XUILabel") as IXUILabel); + this.m_TitleLabel = (base.transform.Find("Bg/frame/Right/Score/Title").GetComponent("XUILabel") as IXUILabel); + this.m_GuildLevel = (base.transform.Find("Bg/frame/Right/Level/Value").GetComponent("XUILabel") as IXUILabel); + this.m_GuildPosition = (base.transform.Find("Bg/frame/Right/CanGet/Position/Value").GetComponent("XUILabel") as IXUILabel); + this.m_GetButton = (base.transform.Find("Bg/frame/Right/CanGet/Get").GetComponent("XUIButton") as IXUIButton); + this.m_GetLabel = (base.transform.Find("Bg/frame/Right/CanGet/Get/Label").GetComponent("XUILabel") as IXUILabel); + this.m_CanNot = (base.transform.Find("Bg/frame/Right/CanNot").GetComponent("XUILabel") as IXUILabel); + this.m_ShowNextReward = (base.transform.Find("Bg/frame/Right/Score/t").GetComponent("XUILabel") as IXUILabel); + this.m_DropView = base.transform.Find("Bg/BoxFrame"); + this.m_DropScrollView = (this.m_DropView.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_DropWrapContent = (this.m_DropView.Find("ScrollView/DropFrame").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_DropClose = (this.m_DropView.Find("Close").GetComponent("XUISprite") as IXUISprite); + for (int i = 0; i < this.topPlayers.Length; i++) + { + this.topPlayers[i] = (base.transform.Find(XSingleton.singleton.StringCombine("Bg/frame/Right/p5/player", i.ToString())).GetComponent("XUILabel") as IXUILabel); + this.topPlayers[i].SetText(""); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildSalayBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildSalayBehavior.cs.meta new file mode 100644 index 00000000..c2df4df5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildSalayBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02b3ebe048d96ee4684234089c4555b8 +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs new file mode 100644 index 00000000..e10f4f2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs @@ -0,0 +1,349 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildSalayDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildSalaryDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildSalaryDocument _Doc; + + private GuildSalaryDescHandler m_DescHandler; + + private SeqListRef m_GuildSalayList; + + private SeqListRef m_NextGuildSalayList; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildSalaryDocument.uuID); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnRewardWrapUpdate)); + base.uiBehaviour.m_DropWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnNextRewardUpdate)); + base.uiBehaviour.m_CanNot.SetText(XStringDefineProxy.GetString("GuildSalaryMessage")); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendAskGuildWageInfo(); + this.Refresh(); + } + + public void Refresh() + { + this.SetSalaryInfo(); + this.RefreshTopPlayers(); + bool flag = this._Doc.RewardState == WageRewardState.notreward; + if (flag) + { + this.SetLastWeekBaseInfo(); + } + else + { + this.SetThisWeekInfo(); + } + } + + private void SetLastWeekBaseInfo() + { + base.uiBehaviour.m_GuildLevel.SetText(this._Doc.LastLevel.ToString()); + base.uiBehaviour.m_TitleLabel.SetText(XStringDefineProxy.GetString("GUILD_SALAY_LASTWEEK")); + base.uiBehaviour.m_GuildPosition.SetText(XGuildDocument.GuildPP.GetPositionName(this._Doc.LastPosition, false)); + bool flag = this._Doc.LastGrade < 1u; + if (flag) + { + base.uiBehaviour.m_LastWeekGrade.SetTexturePath("atlas/UI/GameSystem/Activity/pj_0"); + } + else + { + base.uiBehaviour.m_LastWeekGrade.SetTexturePath(string.Format("atlas/UI/GameSystem/Activity/pj_{0}", this._Doc.LastGrade - 1u)); + } + base.uiBehaviour.m_LastWeekScore.SetText(this._Doc.LastScore.ToString()); + this.m_GuildSalayList = this._Doc.GetGuildSalayList(this._Doc.LastLevel, this._Doc.LastPosition, this._Doc.LastGrade); + base.uiBehaviour.m_WrapContent.SetContentCount((this.m_GuildSalayList.Count > 0) ? this.m_GuildSalayList.Count : 0, false); + base.uiBehaviour.m_RewardScrollView.ResetPosition(); + this.SetNextRewardTemp(this._Doc.LastGrade, this._Doc.MulMaxScore); + base.uiBehaviour.m_GetButton.SetVisible(true); + } + + private void SetThisWeekInfo() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + base.uiBehaviour.m_TitleLabel.SetText(XStringDefineProxy.GetString("GUILD_SALAY_THISWEEK")); + base.uiBehaviour.m_GuildLevel.SetText(specificDocument.BasicData.level.ToString()); + base.uiBehaviour.m_GuildPosition.SetText(XGuildDocument.GuildPP.GetPositionName(specificDocument.Position, false)); + bool flag = this._Doc.CurGrade < 1u; + if (flag) + { + base.uiBehaviour.m_LastWeekGrade.SetTexturePath("atlas/UI/GameSystem/Activity/pj_0"); + } + else + { + base.uiBehaviour.m_LastWeekGrade.SetTexturePath(string.Format("atlas/UI/GameSystem/Activity/pj_{0}", this._Doc.CurGrade - 1u)); + } + base.uiBehaviour.m_LastWeekScore.SetText(this._Doc.CurScore.ToString()); + this.m_GuildSalayList = this._Doc.GetGuildSalayList(specificDocument.BasicData.level, specificDocument.Position, this._Doc.CurGrade); + this.SetNextRewardTemp(this._Doc.CurGrade, this._Doc.CurMulScore); + base.uiBehaviour.m_WrapContent.SetContentCount((this.m_GuildSalayList.Count > 0) ? this.m_GuildSalayList.Count : 0, false); + base.uiBehaviour.m_RewardScrollView.ResetPosition(); + base.uiBehaviour.m_GetButton.SetVisible(false); + base.uiBehaviour.m_DropView.gameObject.SetActive(false); + } + + private void SetSalaryInfo() + { + bool flag = this._Doc.CurGrade < 1u; + if (flag) + { + base.uiBehaviour.m_thisWeekGrade.SetTexturePath("atlas/UI/GameSystem/Activity/pj_0"); + } + else + { + base.uiBehaviour.m_thisWeekGrade.SetTexturePath(string.Format("atlas/UI/GameSystem/Activity/pj_{0}", this._Doc.CurGrade - 1u)); + } + base.uiBehaviour.m_thisWeekScore.SetText(this._Doc.CurScore.ToString()); + base.uiBehaviour.m_BottomInfo.SetInfo(this._Doc.RoleNum.Score, this._Doc.RoleNum.Value); + base.uiBehaviour.m_radarMap.SetSite(0, this._Doc.RoleNum.Percent); + base.uiBehaviour.m_LeftInfo.SetInfo(this._Doc.Prestige.Score, this._Doc.Prestige.Value); + base.uiBehaviour.m_radarMap.SetSite(2, this._Doc.Prestige.Percent); + base.uiBehaviour.m_UpInfo.SetInfo(this._Doc.Activity.Score, this._Doc.Activity.Value); + base.uiBehaviour.m_radarMap.SetSite(3, this._Doc.Activity.Percent); + base.uiBehaviour.m_RightInfo.SetInfo(this._Doc.Exp.Score, this._Doc.Exp.Value); + base.uiBehaviour.m_radarMap.SetSite(1, this._Doc.Exp.Percent); + } + + private void RefreshTopPlayers() + { + List topPlayers = this._Doc.TopPlayers; + int num = (topPlayers == null) ? 0 : topPlayers.Count; + int i = 0; + int num2 = base.uiBehaviour.topPlayers.Length; + while (i < num2) + { + bool flag = i < num; + if (flag) + { + base.uiBehaviour.topPlayers[i].SetVisible(true); + base.uiBehaviour.topPlayers[i].SetText(topPlayers[i].name); + IXUILabel ixuilabel = base.uiBehaviour.topPlayers[i].gameObject.transform.Find("t1").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(topPlayers[i].score.ToString()); + } + else + { + base.uiBehaviour.topPlayers[i].SetVisible(false); + } + i++; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickClose)); + base.uiBehaviour.m_GetButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickGet)); + base.uiBehaviour.m_BottomInfo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDescHandler)); + base.uiBehaviour.m_UpInfo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDescHandler)); + base.uiBehaviour.m_LeftInfo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDescHandler)); + base.uiBehaviour.m_RightInfo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDescHandler)); + base.uiBehaviour.m_DropClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickNextHandler)); + base.uiBehaviour.m_ShowNextReward.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnShowNextReward)); + } + + private void SetNextRewardTemp(uint grade, uint mul) + { + bool flag = grade > 1u && grade <= 5u; + base.uiBehaviour.m_ShowNextReward.SetVisible(flag); + base.uiBehaviour.m_LastScoreLabel.SetVisible(flag); + bool flag2 = flag; + if (flag2) + { + string nextGradeString = this.GetNextGradeString(grade); + base.uiBehaviour.m_ShowNextReward.SetText(XStringDefineProxy.GetString("GuildSalaryNextReward", new object[] + { + nextGradeString + })); + base.uiBehaviour.m_LastScoreLabel.SetText(XStringDefineProxy.GetString("GuildSalaryMulDesc", new object[] + { + nextGradeString, + mul + })); + } + } + + private string GetNextGradeString(uint grade) + { + string result = "S"; + switch (grade) + { + case 2u: + result = "S"; + break; + case 3u: + result = "A"; + break; + case 4u: + result = "B"; + break; + case 5u: + result = "C"; + break; + } + return result; + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_DescHandler != null; + if (flag) + { + this.m_DescHandler.SetVisible(false); + } + } + + protected override void OnUnload() + { + base.uiBehaviour.m_thisWeekGrade.SetTexturePath(""); + base.uiBehaviour.m_LastWeekGrade.SetTexturePath(""); + base.OnUnload(); + } + + protected override void OnLoad() + { + bool flag = this.m_DescHandler != null; + if (flag) + { + DlgHandlerBase.EnsureUnload(ref this.m_DescHandler); + } + base.OnLoad(); + } + + private bool OnClickDescHandler(IXUIButton sprite) + { + this._Doc.SelectTabs = (int)sprite.ID; + DlgHandlerBase.EnsureCreate(ref this.m_DescHandler, base.uiBehaviour.m_Root, true, null); + return true; + } + + private bool ClickClose(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool ClickGet(IXUIButton btn) + { + this._Doc.SendGuildWageReward(); + return true; + } + + private void OnRewardWrapUpdate(Transform t, int index) + { + bool flag = index >= this.m_GuildSalayList.Count; + if (!flag) + { + this.SetWrapContent(t, this.m_GuildSalayList[index, 0], this.m_GuildSalayList[index, 1]); + } + } + + private void OnNextRewardUpdate(Transform t, int index) + { + bool flag = index >= this.m_NextGuildSalayList.Count; + if (!flag) + { + this.SetWrapContent(t, this.m_NextGuildSalayList[index, 0], this.m_NextGuildSalayList[index, 1]); + } + } + + private void OnClickNextHandler(IXUISprite sprite) + { + base.uiBehaviour.m_DropView.gameObject.SetActive(false); + } + + private void OnShowNextReward(IXUILabel label) + { + base.uiBehaviour.m_DropView.gameObject.SetActive(true); + bool flag = this._Doc.RewardState == WageRewardState.notreward; + if (flag) + { + this.m_NextGuildSalayList = this._Doc.GetGuildSalayList(this._Doc.LastLevel, this._Doc.LastPosition, this._Doc.LastGrade - 1u); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.m_NextGuildSalayList = this._Doc.GetGuildSalayList(specificDocument.BasicData.level, specificDocument.Position, this._Doc.CurGrade - 1u); + } + base.uiBehaviour.m_DropWrapContent.SetContentCount((this.m_NextGuildSalayList.Count > 0) ? this.m_GuildSalayList.Count : 0, false); + base.uiBehaviour.m_DropScrollView.ResetPosition(); + } + + private void SetWrapContent(Transform t, uint seq0, uint seq1) + { + XSingleton.singleton.normalItemDrawer.DrawItem(t.gameObject, (int)seq0, (int)seq1, false); + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)seq0; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs.meta new file mode 100644 index 00000000..70c48b23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildSalayDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 910cb7f218f50a847addfd1f0ec31d7e +timeCreated: 1611404141 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildScoreInfo.cs b/Client/Assets/Scripts/XMainClient/UI/GuildScoreInfo.cs new file mode 100644 index 00000000..57ec0f12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildScoreInfo.cs @@ -0,0 +1,53 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class GuildScoreInfo + { + public int Index + { + get + { + return this.m_index; + } + } + + private Transform m_transform; + + private IXUILabel m_Score; + + private IXUILabel m_Value; + + private IXUIButton m_Go; + + private int m_index; + + public void Init(Transform t, int index) + { + this.m_transform = t; + this.m_index = index; + this.m_Score = (t.Find("Score").GetComponent("XUILabel") as IXUILabel); + this.m_Value = (t.Find("Value").GetComponent("XUILabel") as IXUILabel); + this.m_Go = (t.Find("Go").GetComponent("XUIButton") as IXUIButton); + this.m_Go.ID = (ulong)((long)this.m_index); + } + + public void SetInfo(uint score, uint value) + { + this.m_Score.SetText(score.ToString()); + this.m_Value.SetText(value.ToString()); + } + + public void RegisterClickEventHandler(ButtonClickEventHandler click) + { + this.m_Go.RegisterClickEventHandler(click); + } + + public void Destroy() + { + this.m_Go.RegisterClickEventHandler(null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildScoreInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildScoreInfo.cs.meta new file mode 100644 index 00000000..a7070bb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildScoreInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd676b6dd831bc04fad6c3054529ce00 +timeCreated: 1611404555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryBahaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryBahaviour.cs new file mode 100644 index 00000000..82fe2a20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryBahaviour.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildTerritoryBahaviour : DlgBehaviourBase + { + public IXUIButton _close_btn; + + public IXUILabel m_lblGuildName; + + public IXUILabel m_lblTime; + + public IXUISprite m_sprIcon; + + public IXUIScrollView m_scroll; + + public IXUIWrapContent m_wrap; + + private void Awake() + { + this._close_btn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_lblGuildName = (base.transform.Find("Winner/Guild").GetComponent("XUILabel") as IXUILabel); + this.m_lblTime = (base.transform.Find("Time/Guild").GetComponent("XUILabel") as IXUILabel); + this.m_sprIcon = (base.transform.Find("Sprite").GetComponent("XUISprite") as IXUISprite); + this.m_wrap = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_scroll = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryBahaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryBahaviour.cs.meta new file mode 100644 index 00000000..e65f4f16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryBahaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a2d7f6b7c212534e9fd3043650c3ff3 +timeCreated: 1611404090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareBehaviour.cs new file mode 100644 index 00000000..199a092a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareBehaviour.cs @@ -0,0 +1,49 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildTerritoryDeclareBehaviour : DlgBehaviourBase + { + public IXUIButton mClose; + + public IXUISprite mSprite; + + public IXUIScrollView mAllianceScrollView; + + public IXUIWrapContent mAllianceWrapContent; + + public IXUILabel mMessage; + + public IXUILabel mTerritoryName; + + public IXUILabel mTerritoryGuildName; + + public IXUILabel mTerritoryCount; + + public IXUILabel mTerritoryLevel; + + public IXUIButton mTerritoryDeclare; + + public IXUIButton mTerritoryJoin; + + public IXUILabel mTerritoryMessage; + + private void Awake() + { + this.mAllianceScrollView = (base.transform.Find("Alliance").GetComponent("XUIScrollView") as IXUIScrollView); + this.mAllianceWrapContent = (base.transform.Find("Alliance/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.mSprite = (base.transform.Find("Sprite").GetComponent("XUISprite") as IXUISprite); + this.mClose = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.mMessage = (base.transform.Find("Message").GetComponent("XUILabel") as IXUILabel); + this.mTerritoryName = (base.transform.Find("TerritoryName").GetComponent("XUILabel") as IXUILabel); + this.mTerritoryGuildName = (base.transform.Find("TerritoryGuildName").GetComponent("XUILabel") as IXUILabel); + this.mTerritoryLevel = (base.transform.Find("TerritoryLevel").GetComponent("XUILabel") as IXUILabel); + this.mTerritoryCount = (base.transform.Find("TerritoryCount").GetComponent("XUILabel") as IXUILabel); + this.mTerritoryDeclare = (base.transform.Find("Declare").GetComponent("XUIButton") as IXUIButton); + this.mTerritoryJoin = (base.transform.Find("Join").GetComponent("XUIButton") as IXUIButton); + this.mTerritoryMessage = (base.transform.Find("TerritoryMessage").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareBehaviour.cs.meta new file mode 100644 index 00000000..84b3386d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 318d36caa53ee204b83702631f73162a +timeCreated: 1611403546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareDlg.cs new file mode 100644 index 00000000..223f3e70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareDlg.cs @@ -0,0 +1,379 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildTerritoryDeclareDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildTerritory/GuildTerritoryDeclareDlg"; + } + } + + private XGuildTerritoryDocument _Doc; + + private XElapseTimer m_lastTime; + + private bool mCountDown = false; + + private ulong AllianceGuildID = 0UL; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + base.uiBehaviour.mMessage.SetText(XStringDefineProxy.GetString("TB_DECLEAR_MESSAGE")); + base.uiBehaviour.mAllianceWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnTerritoryUpdate)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.mTerritoryDeclare.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTerritoryDeclareClick)); + base.uiBehaviour.mTerritoryJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTerritoryJoinClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshWhenShow(); + } + + protected override void OnUnload() + { + this.m_lastTime = null; + base.OnUnload(); + } + + protected override void OnHide() + { + base.uiBehaviour.mAllianceWrapContent.SetContentCount(0, false); + base.OnHide(); + } + + private bool OnTerritoryDeclareClick(IXUIButton btn) + { + CityData cityData; + bool flag = !this._Doc.TryGetCityData(this._Doc.CurrentTerritoryID, out cityData); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = cityData.type != GUILDTERRTYPE.ALLIANCE; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TB_ENTRANCE_NO_PERMISSION"), "fece00"); + result = false; + } + else + { + string territoryname = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(this._Doc.CurrentTerritoryID).territoryname; + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("GuildTerritoryCost", XGlobalConfig.SequenceSeparator); + string arg = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(andSeparateValue[1]), (ItemEnum)int.Parse(andSeparateValue[0])); + string format = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TB_DECLEAR_COST")); + string label = string.Format(format, arg, territoryname); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnSureAllianceGuildTerr), 100); + result = true; + } + } + return result; + } + + private bool OnSureAllianceGuildTerr(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this._Doc.SendAllianceGuildTerr(this._Doc.CurrentTerritoryID); + return true; + } + + private bool OnTerritoryJoinClick(IXUIButton btn) + { + bool flag = this.m_lastTime != null && this.m_lastTime.LeftTime > 0f; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TERRITORY_CDTIME", new object[] + { + (int)this.m_lastTime.LeftTime + }), "fece00"); + result = false; + } + else + { + this._Doc.SendWaitScene(this._Doc.CurrentTerritoryID); + result = true; + } + return result; + } + + private bool OnCloseClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void OnListUpdate(Transform t, int index) + { + GuildTerrChallInfo guildTerrChallInfo = this._Doc.GuildTerrChallList[index]; + IXUILabel ixuilabel = t.Find("Index").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("GuildName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText((index + 1).ToString()); + ixuilabel2.SetText(guildTerrChallInfo.guildname); + } + + private void OnTerritoryUpdate(Transform t, int index) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + GuildTerritoryAllianceInfo guildTerritoryAllianceInfo = this._Doc.GuildTerrAllianceInfos[index]; + IXUILabel ixuilabel = t.Find("Index").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("GuildName").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Alliance").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("Allianced").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText((index + 1).ToString()); + ixuilabel2.SetText(guildTerritoryAllianceInfo.GetAllinceString()); + IXUIButton ixuibutton = t.Find("Get").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = guildTerritoryAllianceInfo.GuildID; + CityData cityData; + bool flag = this._Doc.TryGetCityData(this._Doc.CurrentTerritoryID, out cityData); + if (flag) + { + ixuibutton.SetVisible(!guildTerritoryAllianceInfo.isAllicance && this._Doc.SelfAllianceID == 0UL && this._Doc.CurrentTerritoryID != this._Doc.SelfGuildTerritoryID && !guildTerritoryAllianceInfo.Contains(specificDocument.BasicData.uid) && specificDocument.BasicData.uid != guildTerritoryAllianceInfo.GuildID && this._Doc.CurrentTerritoryID == this._Doc.SelfTargetTerritoryID && cityData.guildid > 0UL); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAllianceClick)); + ixuisprite2.SetVisible(guildTerritoryAllianceInfo.isAllicance); + ixuisprite.SetVisible(!guildTerritoryAllianceInfo.isAllicance && this._Doc.SelfAllianceID == 0UL && guildTerritoryAllianceInfo.Contains(specificDocument.BasicData.uid)); + } + else + { + ixuibutton.SetVisible(false); + ixuisprite.SetVisible(false); + ixuisprite2.SetVisible(false); + } + } + + private bool OnAllianceClick(IXUIButton btn) + { + XSingleton.singleton.AddGreenLog("Alliance:", btn.ID.ToString(), null, null, null, null); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = specificDocument.Position != GuildPosition.GPOS_LEADER && specificDocument.Position != GuildPosition.GPOS_VICELEADER; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TB_ALLIANCE_NO_PERMISSON"), "fece00"); + result = false; + } + else + { + bool flag2 = this._Doc.CurrentTerritoryID != this._Doc.SelfTargetTerritoryID; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TB_ALLIANCE_NO_DECLEAR"), "fece00"); + result = false; + } + else + { + CityData cityData; + bool flag3 = !this._Doc.TryGetCityData(this._Doc.CurrentTerritoryID, out cityData); + if (flag3) + { + result = false; + } + else + { + string text; + bool flag4 = !this._Doc.TryGetTerritoryGuildName(btn.ID, out text); + if (flag4) + { + result = false; + } + else + { + bool flag5 = cityData.guildid > 0UL; + if (flag5) + { + string territoryname = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(this._Doc.CurrentTerritoryID).territoryname; + string @string = XStringDefineProxy.GetString("TB_ALLIANCE_SEND", new object[] + { + text, + territoryname + }); + string string2 = XStringDefineProxy.GetString("COMMON_OK"); + string string3 = XStringDefineProxy.GetString("COMMON_CANCEL"); + this.AllianceGuildID = btn.ID; + XSingleton.singleton.ShowModalDialog(@string, string2, string3, new ButtonClickEventHandler(this.TrySendTryAlliance), 100); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TB_DECLEAR_NO_ALLIANCE"), "fece00"); + } + result = true; + } + } + } + } + return result; + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = !this.mCountDown; + if (!flag) + { + bool flag2 = this.m_lastTime == null; + if (flag2) + { + this.mCountDown = false; + } + else + { + this.m_lastTime.Update(); + bool flag3 = this.m_lastTime.LeftTime <= 0f; + if (flag3) + { + this.mCountDown = false; + this._Doc.RefreshGuildTerritoryInfo(); + } + } + } + } + + private bool TrySendTryAlliance(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = this.AllianceGuildID > 0UL; + if (flag) + { + this._Doc.SendTryAlliance(this.AllianceGuildID); + } + return false; + } + + private bool CheckDeclare(CityData cityData) + { + return cityData.id != this._Doc.SelfTargetTerritoryID && cityData.type == GUILDTERRTYPE.ALLIANCE; + } + + public void RefreshWhenShow() + { + XSingleton.singleton.CloseModalDlg(); + TerritoryBattle.RowData byID = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(this._Doc.CurrentTerritoryID); + bool flag = byID == null; + if (flag) + { + base.uiBehaviour.mTerritoryName.SetText(string.Empty); + base.uiBehaviour.mTerritoryLevel.SetText(string.Empty); + base.uiBehaviour.mSprite.SetSprite(string.Empty); + base.uiBehaviour.mTerritoryCount.SetText("0"); + base.uiBehaviour.mSprite.MakePixelPerfect(); + } + else + { + base.uiBehaviour.mTerritoryName.SetText(byID.territoryname); + base.uiBehaviour.mTerritoryLevel.SetText(byID.territorylevelname); + base.uiBehaviour.mSprite.SetSprite(byID.territoryIcon); + base.uiBehaviour.mTerritoryCount.SetText(this._Doc.GuildTerrChallList.Count.ToString()); + base.uiBehaviour.mSprite.MakePixelPerfect(); + } + CityData cityData; + bool flag2 = this._Doc.TryGetCityData(this._Doc.CurrentTerritoryID, out cityData); + if (flag2) + { + bool flag3 = cityData.guildid > 0UL; + if (flag3) + { + base.uiBehaviour.mTerritoryGuildName.SetText(cityData.guildname); + } + else + { + base.uiBehaviour.mTerritoryGuildName.SetText(XStringDefineProxy.GetString("TERRITORY_EMPTY")); + } + bool flag4 = cityData.type == GUILDTERRTYPE.TERR_WARING || cityData.type == GUILDTERRTYPE.WAITING; + bool flag5 = this.CheckDeclare(cityData); + base.uiBehaviour.mTerritoryDeclare.SetVisible(flag5); + base.uiBehaviour.mTerritoryJoin.SetVisible(flag4); + int num = 0; + bool flag6 = !flag4 && (this._Doc.CurrentType == GUILDTERRTYPE.TERR_WARING || this._Doc.CurrentType == GUILDTERRTYPE.WAITING); + if (flag6) + { + int targetTerrioryType = (int)this._Doc.GetTargetTerrioryType(cityData.id); + int targetTerrioryType2 = (int)this._Doc.GetTargetTerrioryType(this._Doc.SelfGuildTerritoryID); + int num2 = targetTerrioryType - targetTerrioryType2; + bool flag7 = num2 == 1; + if (flag7) + { + base.uiBehaviour.mTerritoryMessage.SetText(XStringDefineProxy.GetString("ERR_TB_ALLIANCE_NO_DECLEAR")); + } + else + { + base.uiBehaviour.mTerritoryMessage.SetText(XStringDefineProxy.GetString("ERR_TB_ENTRANCE_NO_PERMISSION")); + } + } + else + { + bool flag8 = this._Doc.CurrentType == GUILDTERRTYPE.ALLIANCE && !flag5 && !this._Doc.TryTerritoryAlliance(cityData.id, out num) && num > 0; + if (flag8) + { + string @string = XStringDefineProxy.GetString(string.Format("ERR_TB_DECLEAR_LIMIT{0}", num)); + base.uiBehaviour.mTerritoryMessage.SetText(@string); + } + else + { + base.uiBehaviour.mTerritoryMessage.SetText(string.Empty); + } + } + XSingleton.singleton.AddGreenLog(string.Format("{0} -- {1}", this._Doc.CurrentType, num), null, null, null, null, null); + bool flag9 = cityData.type == GUILDTERRTYPE.WAITING; + if (flag9) + { + bool flag10 = this.m_lastTime == null; + if (flag10) + { + this.m_lastTime = new XElapseTimer(); + } + this.m_lastTime.LeftTime = this._Doc.EnterBattleTime; + this.mCountDown = true; + } + } + else + { + base.uiBehaviour.mTerritoryGuildName.SetText(XStringDefineProxy.GetString("TERRITORY_EMPTY")); + base.uiBehaviour.mTerritoryDeclare.SetVisible(false); + base.uiBehaviour.mTerritoryJoin.SetVisible(false); + base.uiBehaviour.mTerritoryMessage.SetText(string.Empty); + this.mCountDown = false; + } + this.RefreshAllianceContent(); + } + + private void RefreshAllianceContent() + { + bool flag = !base.uiBehaviour.mAllianceScrollView.IsVisible(); + if (!flag) + { + bool flag2 = this._Doc.GuildTerrAllianceInfos == null; + if (flag2) + { + base.uiBehaviour.mAllianceWrapContent.SetContentCount(0, false); + } + else + { + base.uiBehaviour.mAllianceWrapContent.SetContentCount(this._Doc.GuildTerrAllianceInfos.Count, false); + } + base.uiBehaviour.mAllianceWrapContent.RefreshAllVisibleContents(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareDlg.cs.meta new file mode 100644 index 00000000..d1029f63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDeclareDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5cd99f1cc0364304da798c919d497e41 +timeCreated: 1611403803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDisplay.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDisplay.cs new file mode 100644 index 00000000..1ca6222b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDisplay.cs @@ -0,0 +1,106 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildTerritoryDisplay + { + public Transform transform; + + public IXUILabel mGuildName; + + public IXUISprite mGuildIcon; + + public Transform mOccupy; + + public IXUISprite mTerritoryIcon; + + public IXUILabel mTerritoryName; + + public IXUISprite mTerritorySprite; + + public IXUIButton mTerritoryButton; + + public Transform mCrossGVGPrimary; + + public uint mTerritoryID = 0u; + + public void Init(uint territoryID, Transform t) + { + this.transform = t; + this.mTerritoryID = territoryID; + this.mOccupy = this.transform.Find("guildname/Occupy"); + this.mGuildName = (this.transform.Find("guildname/Occupy/GuildName").GetComponent("XUILabel") as IXUILabel); + this.mGuildIcon = (this.transform.Find("guildname/Occupy/GuildIcon").GetComponent("XUISprite") as IXUISprite); + this.mTerritoryIcon = (this.transform.Find("guildname/Icon").GetComponent("XUISprite") as IXUISprite); + this.mTerritoryName = (this.transform.Find("guildname/Name").GetComponent("XUILabel") as IXUILabel); + this.mTerritorySprite = (this.transform.Find("Sprite").GetComponent("XUISprite") as IXUISprite); + this.mTerritoryButton = (this.transform.GetComponent("XUIButton") as IXUIButton); + this.mTerritoryButton.ID = (ulong)((long)int.Parse(this.transform.name)); + this.mCrossGVGPrimary = this.transform.Find("CrossGVGPrimary"); + this.mTerritoryButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTerritoryClick)); + this.Clear(); + } + + private void Clear() + { + this.mOccupy.gameObject.SetActive(false); + this.mCrossGVGPrimary.gameObject.SetActive(false); + } + + public void Refresh() + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + XCrossGVGDocument specificDocument2 = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + CityData cityData; + bool flag = specificDocument.TryGetCityData(this.mTerritoryID, out cityData); + if (flag) + { + this.mOccupy.gameObject.SetActive(cityData.guildid > 0UL); + this.mGuildName.SetText(cityData.guildname); + XSingleton.singleton.AddGreenLog("cityData Singlon :", cityData.type.ToString(), null, null, null, null); + string sprite; + float alpha; + switch (cityData.type) + { + case GUILDTERRTYPE.ALLIANCE: + sprite = "Guild_icon05"; + alpha = 1f; + goto IL_DD; + case GUILDTERRTYPE.TERR_WARING: + case GUILDTERRTYPE.WAITING: + sprite = "Guild_icon06"; + alpha = 1f; + goto IL_DD; + } + sprite = string.Empty; + alpha = 0f; + IL_DD: + this.mTerritoryIcon.SetAlpha(alpha); + this.mTerritoryIcon.SetSprite(sprite); + this.mTerritoryIcon.MakePixelPerfect(); + uint targetTerrioryType = specificDocument.GetTargetTerrioryType(this.mTerritoryID); + uint @int = (uint)XSingleton.singleton.GetInt("CrossGvgTerrLevel"); + this.mCrossGVGPrimary.gameObject.SetActive(specificDocument2.TimeStep == CrossGvgTimeState.CGVG_Select && targetTerrioryType >= @int); + } + else + { + this.mOccupy.gameObject.SetActive(false); + this.mTerritoryIcon.SetAlpha(0f); + this.mCrossGVGPrimary.gameObject.SetActive(false); + } + } + + private bool OnTerritoryClick(IXUIButton btn) + { + uint uid = (uint)btn.ID; + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.SendGuildTerritoryChallInfo(uid); + XSingleton.singleton.AddGreenLog("OnTerritoryClick:", uid.ToString(), null, null, null, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDisplay.cs.meta new file mode 100644 index 00000000..70f6a936 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 382c2c88ada599342a10fa2e55291573 +timeCreated: 1611403569 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueBehaviour.cs new file mode 100644 index 00000000..79869cfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueBehaviour.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildTerritoryLeagueBehaviour : DlgBehaviourBase + { + public IXUICheckBox mCheckBox; + + public IXUIButton mClose; + + public IXUIButton mClear; + + public IXUIScrollView mScrollView; + + public IXUIWrapContent mWrapContent; + + private void Awake() + { + this.mCheckBox = (base.transform.Find("AllSelItem").GetComponent("XUICheckBox") as IXUICheckBox); + this.mClose = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.mClear = (base.transform.Find("Clear").GetComponent("XUIButton") as IXUIButton); + this.mScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.mWrapContent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueBehaviour.cs.meta new file mode 100644 index 00000000..9cf4d48c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: afacf21856d2be44bb95d30f3bda9215 +timeCreated: 1611404346 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueDlg.cs new file mode 100644 index 00000000..798ebe94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueDlg.cs @@ -0,0 +1,105 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildTerritoryLeagueDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildTerritory/GuildTerritoryLeagueDlg"; + } + } + + private XGuildTerritoryDocument _Doc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + base.uiBehaviour.mWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnTerritoryLeagueHandler)); + base.uiBehaviour.mCheckBox.SetVisible(false); + base.uiBehaviour.mCheckBox.bChecked = this._Doc.mShowMessage; + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendGuildTerrAllianceInfo(); + } + + public void RefreshData() + { + this.RefreshWhenShow(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.mClear.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClearClick)); + } + + private bool OnCloseClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnClearClick(IXUIButton btn) + { + this._Doc.SendClearGuildTerrAlliance(); + this.SetVisibleWithAnimation(false, null); + return false; + } + + private bool OnCheckBoxClick(IXUICheckBox checkBox) + { + this._Doc.mShowMessage = checkBox.bChecked; + return true; + } + + private void OnTerritoryLeagueHandler(Transform t, int index) + { + IXUILabel ixuilabel = t.Find("GuildName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("MemberCount").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("OK").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel4 = t.Find("nb").GetComponent("XUILabel") as IXUILabel; + GuildTerrAllianceInfo guildTerrAllianceInfo = this._Doc.guildAllianceInfos[index]; + ixuilabel.SetText(guildTerrAllianceInfo.guildname); + ixuilabel4.SetText(string.Format("Lv:{0}", guildTerrAllianceInfo.guildlvl)); + ixuilabel2.SetText(guildTerrAllianceInfo.guildRoleNum.ToString()); + ixuilabel3.SetText(XSingleton.singleton.TimeAgoFormatString((int)guildTerrAllianceInfo.time)); + ixuibutton.ID = guildTerrAllianceInfo.guildId; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSureClick)); + } + + private bool OnSureClick(IXUIButton btn) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.SendRecAlliance(btn.ID); + return true; + } + + private void RefreshWhenShow() + { + bool flag = this._Doc.guildAllianceInfos == null; + if (flag) + { + base.uiBehaviour.mWrapContent.SetContentCount(0, false); + } + else + { + base.uiBehaviour.mWrapContent.SetContentCount(this._Doc.guildAllianceInfos.Count, false); + } + base.uiBehaviour.mScrollView.ResetPosition(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueDlg.cs.meta new file mode 100644 index 00000000..bf866409 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryLeagueDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c093ce3f4f73fb7449fff39574eed3fa +timeCreated: 1611404487 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainBehaviour.cs new file mode 100644 index 00000000..feb0728d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainBehaviour.cs @@ -0,0 +1,50 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildTerritoryMainBehaviour : DlgBehaviourBase + { + public IXUIButton mClose; + + public IXUIButton mMessage; + + public IXUILabel mContent; + + public IXUIButton mHelp; + + public IXUIButton mRwd; + + public IXUIScrollView mScrollView; + + public IXUIWrapContent mWrapContent; + + public IXUILabel mTerritoryName; + + public IXUILabel mTerritoryTarget; + + public Transform mTerritoryTransform; + + public Transform mCrossGVG; + + public IXUILabel mCrossGVGDescribe; + + private void Awake() + { + this.mClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.mMessage = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.mContent = (base.transform.Find("Bg/Message").GetComponent("XUILabel") as IXUILabel); + this.mScrollView = (base.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.mWrapContent = (base.transform.Find("Bg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.mHelp = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.mRwd = (base.transform.Find("Bg/Rwd").GetComponent("XUIButton") as IXUIButton); + this.mTerritoryName = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel); + this.mTerritoryTarget = (base.transform.Find("Bg/Target").GetComponent("XUILabel") as IXUILabel); + this.mTerritoryTransform = base.transform.Find("Bg/Territories"); + this.mCrossGVG = base.transform.Find("Bg/CrossGVG"); + this.mCrossGVGDescribe = (base.transform.Find("Bg/CrossGVG/Describe").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainBehaviour.cs.meta new file mode 100644 index 00000000..e1eab6ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 570280d136bcbfd40a51efcbed1a5b73 +timeCreated: 1611403746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainDlg.cs new file mode 100644 index 00000000..580da933 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainDlg.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildTerritoryMainDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildTerritory/GuildTerritoryMainDlg"; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private List mTerritoryDisplays; + + private XGuildTerritoryDocument _Doc; + + private SeqList TerritoryRewardValues; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + base.uiBehaviour.mWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnItemWrapUpdate)); + XSingleton.singleton.AddGreenLog(XSingleton.singleton.GetValue("TerritoryReward"), null, null, null, null, null); + this.TerritoryRewardValues = XSingleton.singleton.GetSequenceList("TerritoryReward", false); + base.uiBehaviour.mWrapContent.SetContentCount((int)this.TerritoryRewardValues.Count, false); + base.uiBehaviour.mContent.SetText(XStringDefineProxy.GetString("TERRITORY_MAIN_DESCRIPTION")); + base.uiBehaviour.mCrossGVGDescribe.SetText(XStringDefineProxy.GetString("CrossGVG_selectweek_message")); + this.InitTerritoryDisplay(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mMessage.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickMessage)); + base.uiBehaviour.mClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClose)); + base.uiBehaviour.mHelp.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpHandler)); + base.uiBehaviour.mRwd.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRwdClick)); + } + + private bool OnHelpHandler(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildTerritory); + return false; + } + + private bool OnRwdClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + return false; + } + + public void RefreshData() + { + int i = 0; + int count = this.mTerritoryDisplays.Count; + while (i < count) + { + this.mTerritoryDisplays[i].Refresh(); + i++; + } + bool flag = this._Doc.SelfGuildTerritoryID > 0u; + if (flag) + { + TerritoryBattle.RowData byID = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(this._Doc.SelfGuildTerritoryID); + base.uiBehaviour.mTerritoryName.SetText(byID.territoryname); + } + else + { + base.uiBehaviour.mTerritoryName.SetText(XStringDefineProxy.GetString("TERRITORY_CURRENT")); + } + bool flag2 = this._Doc.SelfTargetTerritoryID > 0u; + if (flag2) + { + TerritoryBattle.RowData byID2 = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(this._Doc.SelfTargetTerritoryID); + base.uiBehaviour.mTerritoryTarget.SetText(byID2.territoryname); + } + else + { + base.uiBehaviour.mTerritoryTarget.SetText(XStringDefineProxy.GetString("TERRITORY_TARGET")); + } + base.uiBehaviour.mMessage.SetVisible(this._Doc.CurrentType == GUILDTERRTYPE.TERR_END); + XCrossGVGDocument specificDocument = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + base.uiBehaviour.mCrossGVG.gameObject.SetActive(specificDocument.TimeStep == CrossGvgTimeState.CGVG_Select); + } + + public override void StackRefresh() + { + this._Doc.SendGuildTerritoryCityInfo(); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendGuildTerritoryCityInfo(); + } + + private void OnItemWrapUpdate(Transform t, int index) + { + int num = this.TerritoryRewardValues[index, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(t.gameObject, num, 0, false); + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + Transform transform = t.Find("Flag"); + transform.gameObject.SetActive(this.TerritoryRewardValues[index, 1] == 1); + ixuisprite.ID = (ulong)((long)num); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + private bool OnClickClose(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnClickMessage(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private void InitTerritoryDisplay() + { + bool flag = this.mTerritoryDisplays == null; + if (flag) + { + this.mTerritoryDisplays = new List(); + } + this.mTerritoryDisplays.Clear(); + int childCount = base.uiBehaviour.mTerritoryTransform.childCount; + for (int i = 0; i < childCount; i++) + { + Transform child = base.uiBehaviour.mTerritoryTransform.GetChild(i); + GuildTerritoryDisplay guildTerritoryDisplay = new GuildTerritoryDisplay(); + guildTerritoryDisplay.Init(uint.Parse(child.name), child); + this.mTerritoryDisplays.Add(guildTerritoryDisplay); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainDlg.cs.meta new file mode 100644 index 00000000..6da13e43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMainDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7fdd53466732cce4fb82d5b844f26f8a +timeCreated: 1611404032 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageBehaviour.cs new file mode 100644 index 00000000..a89bd643 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class GuildTerritoryMessageBehaviour : DlgBehaviourBase + { + public IXUIButton mClose; + + public IXUIScrollView mScrollView; + + public IXUIWrapContent mWrapContent; + + public IXUILabel mNameLabel; + + private void Awake() + { + this.mClose = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.mScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.mNameLabel = (base.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.mWrapContent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageBehaviour.cs.meta new file mode 100644 index 00000000..48e11bbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2c2655a94efb684689ea20028804a8c +timeCreated: 1611404258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageDlg.cs new file mode 100644 index 00000000..c8aa32e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageDlg.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildTerritoryMessageDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildTerritory/GuildTerritoryMessageDlg"; + } + } + + private XGuildTerritoryDocument _Doc; + + private List mCityDataList; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + base.uiBehaviour.mNameLabel.SetText(string.Empty); + base.uiBehaviour.mWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapUpdateItem)); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.SendReceiveTerritroyInfo(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClose)); + } + + public void SetNewInfo(List dataList) + { + this.mCityDataList = dataList; + this.ShowMessage(); + base.uiBehaviour.mWrapContent.SetContentCount(this.mCityDataList.Count, false); + base.uiBehaviour.mScrollView.ResetPosition(); + } + + private void ShowMessage() + { + bool flag = false; + string text = string.Empty; + int i = 0; + int count = this.mCityDataList.Count; + while (i < count) + { + bool flag2 = this.mCityDataList[i].id == 13u; + if (flag2) + { + bool flag3 = this.mCityDataList[i].guildid > 0UL; + if (flag3) + { + flag = true; + text = XStringDefineProxy.GetString("TERRITORY_RESULT1", new object[] + { + this.mCityDataList[i].name + }); + } + break; + } + i++; + } + bool flag4 = !flag; + if (flag4) + { + text = XStringDefineProxy.GetString("TERRITORY_RESULT"); + } + base.uiBehaviour.mNameLabel.SetText(text); + } + + private bool OnClickClose(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + + private void OnWrapUpdateItem(Transform t, int index) + { + IXUISprite ixuisprite = t.Find("Sprite").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("GuildName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("nb").GetComponent("XUILabel") as IXUILabel; + TerrData terrData = this.mCityDataList[index]; + TerritoryBattle.RowData byID = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(terrData.id); + ixuisprite.SetSprite(byID.territoryIcon); + ixuilabel2.SetText(byID.territoryname); + ixuilabel3.SetText(byID.territorylevelname); + ixuilabel.SetText(terrData.name); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageDlg.cs.meta new file mode 100644 index 00000000..fc2f57a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryMessageDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 564a347efb8f1374f9b57fad8bd097ef +timeCreated: 1611403743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryReportDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryReportDlg.cs new file mode 100644 index 00000000..16758002 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryReportDlg.cs @@ -0,0 +1,185 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildTerritoryReportDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/GuildTerritoryBattleInfo"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + private XGuildTerritoryDocument _doc = null; + + private Dictionary dic = new Dictionary(); + + private List reportList = new List(); + + public XLeftTimeCounter timeConnter; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + base.uiBehaviour.m_wrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateItem)); + GuildTransfer.RowData[] table = XGuildTerritoryDocument.mGuildTransfer.Table; + this.dic.Clear(); + for (int i = 0; i < table.Length; i++) + { + bool flag = !this.dic.ContainsKey(table[i].sceneid); + if (flag) + { + this.dic.Add(table[i].sceneid, table[i]); + } + } + this.timeConnter = new XLeftTimeCounter(base.uiBehaviour.m_lblTime, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour._close_btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + protected override void OnShow() + { + this._doc.SendGCFCommonReq(GCFReqType.GCF_FIGHT_REPORT); + } + + public void RefreshAll() + { + this.MergeInfo(); + this.RefreshTitleInfo(); + this.RefreshList(); + } + + public override void OnUpdate() + { + bool flag = this.timeConnter != null; + if (flag) + { + this.timeConnter.Update(); + } + } + + private void MergeInfo() + { + this.reportList.Clear(); + List fields = this._doc.fields; + for (int i = 0; i < fields.Count; i++) + { + ReportNode reportNode = new ReportNode(); + reportNode.row = this.dic[fields[i].mapid]; + for (int j = 0; j < fields[i].jvdians.Count; j++) + { + bool flag = fields[i].jvdians[j].type == GCFJvDianType.GCF_JUDIAN_UP; + if (flag) + { + reportNode.up = fields[i].jvdians[j].guildname; + } + else + { + bool flag2 = fields[i].jvdians[j].type == GCFJvDianType.GCF_JUDIAN_MID; + if (flag2) + { + reportNode.mid = fields[i].jvdians[j].guildname; + } + else + { + bool flag3 = fields[i].jvdians[j].type == GCFJvDianType.GCF_JUDIAN_DOWN; + if (flag3) + { + reportNode.btm = fields[i].jvdians[j].guildname; + } + } + } + } + reportNode.info = fields[i].zhanchinfo; + this.reportList.Add(reportNode); + } + } + + private void RefreshTitleInfo() + { + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + } + GCFGuildBrief winguild = this._doc.winguild; + base.uiBehaviour.m_lblGuildName.SetText(winguild.guildname); + this.timeConnter.SetLeftTime(this._doc.fight_lefttime, -1); + TerritoryBattle.RowData byID = XGuildTerritoryDocument.mGuildTerritoryList.GetByID(this._doc.territoryid); + base.uiBehaviour.m_sprIcon.SetSprite(byID.territoryIcon); + } + + private void RefreshList() + { + base.uiBehaviour.m_scroll.ResetPosition(); + base.uiBehaviour.m_wrap.SetContentCount(6, false); + } + + private void UpdateItem(Transform t, int index) + { + bool flag = this.reportList.Count > index; + if (flag) + { + IXUISprite ixuisprite = t.Find("Gate").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Top/GuildName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Middle/GuildName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Bottom/GuildName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("Triple/T").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = t.Find("Triple").gameObject; + IXUILabel ixuilabel6 = t.Find("PlayerNum").GetComponent("XUILabel") as IXUILabel; + ixuilabel4.SetText(this.reportList[index].row.name); + ixuilabel.SetText(string.IsNullOrEmpty(this.reportList[index].up) ? "-" : this.reportList[index].up); + ixuilabel2.SetText(string.IsNullOrEmpty(this.reportList[index].mid) ? "-" : this.reportList[index].mid); + ixuilabel3.SetText(string.IsNullOrEmpty(this.reportList[index].btm) ? "-" : this.reportList[index].btm); + ixuisprite.SetSprite(this.reportList[index].row.icon); + GCFZhanChBriefInfo info = this.reportList[index].info; + bool flag2 = info != null; + if (flag2) + { + gameObject.SetActive(info.multipoint >= 2u); + ixuilabel5.SetText(XStringDefineProxy.GetString("Territtory_Score" + info.multipoint)); + ixuilabel6.SetText(info.curusercount + "/" + info.maxusercount); + } + else + { + XSingleton.singleton.AddLog("info is nil " + ixuilabel4.GetText(), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryReportDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryReportDlg.cs.meta new file mode 100644 index 00000000..ce66186d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryReportDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 382ed534363f5a841a3ae0283155e9d2 +timeCreated: 1611403569 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardBehaviour.cs new file mode 100644 index 00000000..f40b557f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardBehaviour.cs @@ -0,0 +1,30 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildTerritoryRewardBehaviour : DlgBehaviourBase + { + public IXUIButton _close_btn; + + public IXUIWrapContent m_wrap; + + public IXUIScrollView m_scrool; + + public GameObject m_objTpl; + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_scrool = (base.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_objTpl = base.transform.Find("Bg/Bg/ScrollView/wrapcontent/Item").gameObject; + this._close_btn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_wrap = (base.transform.Find("Bg/Bg/ScrollView/wrapcontent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RewardItemPool.SetupPool(base.transform.gameObject, this.m_objTpl, 30u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardBehaviour.cs.meta new file mode 100644 index 00000000..9f90124a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b59a00ed2683e244f8fcfb23c6072b00 +timeCreated: 1611404396 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardDlg.cs b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardDlg.cs new file mode 100644 index 00000000..f08d4fd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardDlg.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class GuildTerritoryRewardDlg : DlgBase + { + private XGuildTerritoryDocument doc + { + get + { + return XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + } + } + + public override string fileName + { + get + { + return "Guild/GuildTerritory/GuildTerritoryReward"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + private List list = new List(); + + protected override void Init() + { + base.uiBehaviour.m_wrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateItem)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour._close_btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + protected override void OnShow() + { + this.CulResult(); + base.uiBehaviour.m_wrap.SetContentCount(this.list.Count, false); + base.uiBehaviour.m_scrool.ResetPosition(); + } + + private void CulResult() + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint sealType = specificDocument.SealType; + this.list.Clear(); + foreach (TerritoryRewd.RowData rowData in XGuildTerritoryDocument.mTerritoryRewd.Table) + { + bool flag = (long)rowData.ID == (long)((ulong)sealType); + if (flag) + { + this.list.Add(rowData); + } + } + } + + private void UpdateItem(Transform t, int index) + { + IXUILabel ixuilabel = t.transform.Find("Bg/Rank/RankNum").GetComponent("XUILabel") as IXUILabel; + bool flag = this.list.Count > index; + if (flag) + { + TerritoryRewd.RowData rowData = this.list[index]; + ixuilabel.SetText(rowData.Point.ToString()); + for (int i = 0; i < rowData.Reward.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardItemPool.FetchGameObject(false); + gameObject.transform.parent = t; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(base.uiBehaviour.m_RewardItemPool.TplWidth * i) + base.uiBehaviour.m_RewardItemPool._tpl.transform.localPosition.x, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rowData.Reward[i, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.Reward[i, 0], (int)rowData.Reward[i, 1], false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardDlg.cs.meta new file mode 100644 index 00000000..9d71825e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/GuildTerritoryRewardDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4dd8e88909805604cbce0079a3e76252 +timeCreated: 1611403697 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs new file mode 100644 index 00000000..528f07ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs @@ -0,0 +1,52 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HallFameBehavior : DlgBehaviourBase + { + public IXUIButton CloseBtn; + + public IXUIButton RankBtn; + + public IXUIButton ShareBtn; + + public IXUIButton SupportBtn; + + public IXUIButton HelpBtn; + + public IXUILabel DateSeasonLabel; + + public XUIPool TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform RoleList; + + public Transform RoleDetail; + + public Transform RecentEmpty; + + public Transform CurrentEmpty; + + public GameObject EffectWidget; + + private void Awake() + { + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.RankBtn = (base.transform.Find("Bg/RankList").GetComponent("XUIButton") as IXUIButton); + this.ShareBtn = (base.transform.Find("Bg/BtnShare").GetComponent("XUIButton") as IXUIButton); + this.SupportBtn = (base.transform.Find("Bg/Support").GetComponent("XUIButton") as IXUIButton); + this.HelpBtn = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.DateSeasonLabel = (base.transform.Find("Bg/date").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Tabs/TabTpl"); + this.TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.RoleList = base.transform.Find("Bg/RoleList"); + this.RoleDetail = base.transform.Find("Bg/RoleDetail"); + this.RecentEmpty = this.RoleDetail.Find("HistoryRecord/Emport"); + this.CurrentEmpty = this.RoleDetail.Find("Empty"); + this.EffectWidget = base.transform.Find("Bg/EffectWidget").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs.meta new file mode 100644 index 00000000..8b565c83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 02a837b2cc9c3c947a94fd7cbd389574 +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameDlg.cs b/Client/Assets/Scripts/XMainClient/UI/HallFameDlg.cs new file mode 100644 index 00000000..507f43ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameDlg.cs @@ -0,0 +1,542 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HallFameDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/HallFameDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_HallFame); + } + } + + public ArenaStarType CurSelectedType + { + get + { + return this._curSelectedType; + } + } + + private List _tabs = new List(); + + private ArenaStarType _curSelectedType; + + private const int avatarMax = 4; + + private const int maxShowDetail = 4; + + private const int maxShowTopOneIcon = 5; + + private XDummy[] _avatars = new XDummy[4]; + + private XFx _selectedRoleEffect; + + private ulong _curRoleID; + + private IUIDummy _mainPlayerDummy; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnShow() + { + base.OnShow(); + this.UpdateTabs(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshRightView(this._curSelectedType); + } + + protected override void OnHide() + { + XSingleton.singleton.EnableMainDummy(false, null); + base.Return3DAvatarPool(); + this.ClearAvatarStates(); + bool flag = this._selectedRoleEffect != null; + if (flag) + { + this._selectedRoleEffect.SetActive(false); + } + this._mainPlayerDummy = null; + this._curRoleID = 0UL; + base.OnHide(); + } + + protected override void OnUnload() + { + this._tabs.Clear(); + base.uiBehaviour.TabPool.ReturnAll(false); + base.Return3DAvatarPool(); + bool flag = this._selectedRoleEffect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._selectedRoleEffect, true); + this._selectedRoleEffect = null; + } + this._curSelectedType = (ArenaStarType)0; + base.OnUnload(); + } + + public void RefreshRightView(ArenaStarType id) + { + bool flag = id == this._curSelectedType; + if (flag) + { + base.Return3DAvatarPool(); + this.ClearAvatarStates(); + this._mainPlayerDummy = null; + XSingleton.singleton.EnableMainDummy(false, null); + base.Alloc3DAvatarPool("HallFameDlg"); + List rankInfoListBySysID = XHallFameDocument.Doc.GetRankInfoListBySysID(id); + int num = Mathf.Min(rankInfoListBySysID.Count, base.uiBehaviour.RoleList.childCount); + int i = 0; + while (i < num) + { + HallFameRoleInfo roleInfo = rankInfoListBySysID[i]; + Transform child = base.uiBehaviour.RoleList.GetChild(i++); + this.SetRankRoleInfoShow(child, roleInfo, i - 1); + } + while (i < base.uiBehaviour.RoleList.childCount) + { + Transform child2 = base.uiBehaviour.RoleList.GetChild(i++); + child2.gameObject.SetActive(false); + } + bool flag2 = num > 0; + if (flag2) + { + this.SelectDefaultRole(); + } + else + { + base.uiBehaviour.RoleDetail.gameObject.SetActive(false); + } + bool active = false; + for (int j = 0; j < rankInfoListBySysID.Count; j++) + { + bool flag3 = XSingleton.singleton.XPlayerData != null && rankInfoListBySysID[j].OutLook.roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + active = true; + break; + } + } + base.uiBehaviour.RankBtn.gameObject.SetActive(this.CurSelectedType != ArenaStarType.AST_LEAGUE); + base.uiBehaviour.ShareBtn.gameObject.SetActive(active); + this.UpdateSeasonDate(); + this.RefreshRedPoint(); + } + } + + private void SelectDefaultRole() + { + base.uiBehaviour.RoleDetail.gameObject.SetActive(true); + Transform child = base.uiBehaviour.RoleList.GetChild(0); + IXUISprite uiSprite = child.GetComponent("XUISprite") as IXUISprite; + this.OnRoleSelected(uiSprite); + } + + private void InitProperties() + { + this._curSelectedType = (ArenaStarType)0; + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickCloseBtn)); + base.uiBehaviour.ShareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickShareBtn)); + base.uiBehaviour.SupportBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSupportBtn)); + base.uiBehaviour.RankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRankBtn)); + base.uiBehaviour.HelpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.TabPool.ReturnAll(false); + ArenaStarType[] array = (ArenaStarType[])Enum.GetValues(typeof(ArenaStarType)); + this._tabs.Clear(); + for (int i = 0; i < array.Length; i++) + { + GameObject gameObject = base.uiBehaviour.TabPool.FetchGameObject(false); + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)array[i]); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckTabItem)); + Transform transform = ixuicheckBox.gameObject.transform; + transform.localPosition = new Vector3(base.uiBehaviour.TabPool.TplPos.x, base.uiBehaviour.TabPool.TplPos.y - (float)(base.uiBehaviour.TabPool.TplHeight * i), 0f); + IXUILabel ixuilabel = transform.Find("Selected/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetString(array[i].ToString() + "_Hall_Fame")); + ixuilabel = (transform.Find("NormalTextLabel").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XSingleton.singleton.GetString(array[i].ToString() + "_Hall_Fame")); + this._tabs.Add(ixuicheckBox); + } + this._selectedRoleEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_HallFameDlg_fx01", null, true); + this._selectedRoleEffect.SetActive(false); + } + + private bool OnClickRankBtn(IXUIButton button) + { + switch (this._curSelectedType) + { + case ArenaStarType.AST_PK: + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.SetupRankWindow(specificDocument.LastSeasonRankList); + break; + } + case ArenaStarType.AST_HEROBATTLE: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.SetupRankFrame(); + break; + case ArenaStarType.AST_WEEKNEST: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.Refresh(); + break; + case ArenaStarType.AST_LEAGUE: + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XRankDocument specificDocument2 = XDocuments.GetSpecificDocument(XRankDocument.uuID); + DlgBase.singleton.RefreshUI(specificDocument2.LastWeekLeagueTeamRankList); + break; + } + } + return true; + } + + private bool OnClickSupportBtn(IXUIButton button) + { + XHallFameDocument.Doc.SendArenaStarRoleReq(ArenaStarReqType.ASRT_DIANZAN, this._curSelectedType, 0UL); + return true; + } + + private bool OnClickShareBtn(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private void RefreshRoleRaceDetail(ulong roleID) + { + HallFameRoleInfo roleInfoByRoleID = XHallFameDocument.Doc.GetRoleInfoByRoleID(roleID); + bool flag = roleInfoByRoleID == null; + if (!flag) + { + ArenaStarHistData hisData = roleInfoByRoleID.hisData; + this._curRoleID = roleID; + IXUISprite ixuisprite = base.uiBehaviour.RoleDetail.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)roleInfoByRoleID.OutLook.profession)); + IXUILabel ixuilabel = base.uiBehaviour.RoleDetail.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(roleInfoByRoleID.OutLook.name); + bool flag2 = hisData != null; + if (flag2) + { + IXUILabel ixuilabel2 = base.uiBehaviour.RoleDetail.Find("History/ChampionNum").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(hisData.rankOneNum.ToString()); + IXUILabel ixuilabel3 = base.uiBehaviour.RoleDetail.Find("History/TopTenNum").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(hisData.rankTenNum.ToString()); + IXUILabel ixuilabel4 = base.uiBehaviour.RoleDetail.Find("HistoryRecord/HistoryRecordValue").GetComponent("XUILabel") as IXUILabel; + string text = ""; + for (int i = 0; i < hisData.rankRecent.Count - 1; i++) + { + uint num = hisData.rankRecent[i].rank; + num = ((num == uint.MaxValue) ? 0u : num); + text += ((num == 0u) ? XSingleton.singleton.GetString("NoRank") : string.Format(XSingleton.singleton.GetString("RANK"), num)); + text += "\n"; + } + bool flag3 = hisData.rankRecent.Count > 0; + if (flag3) + { + uint num2 = hisData.rankRecent[hisData.rankRecent.Count - 1].rank; + num2 = ((num2 == uint.MaxValue) ? 0u : num2); + text += ((num2 == 0u) ? XSingleton.singleton.GetString("NoRank") : string.Format(XSingleton.singleton.GetString("RANK"), num2)); + } + ixuilabel4.SetText(text); + base.uiBehaviour.RecentEmpty.gameObject.SetActive(string.IsNullOrEmpty(text)); + } + bool flag4 = XHallFameDocument.Doc.Season_time <= 1u; + if (flag4) + { + base.uiBehaviour.RoleDetail.Find("NOW").gameObject.SetActive(false); + base.uiBehaviour.CurrentEmpty.gameObject.SetActive(true); + } + else + { + base.uiBehaviour.RoleDetail.Find("NOW").gameObject.SetActive(true); + base.uiBehaviour.CurrentEmpty.gameObject.SetActive(false); + List lastData = roleInfoByRoleID.LastData; + bool flag5 = lastData != null; + if (flag5) + { + for (int j = 0; j < 4; j++) + { + IXUILabel ixuilabel5 = base.uiBehaviour.RoleDetail.Find("NOW/ShowValue_" + (j + 1)).GetComponent("XUILabel") as IXUILabel; + string text2 = (j < lastData.Count) ? lastData[j].ToString() : ""; + bool flag6 = j < lastData.Count && j == 0 && this.CurSelectedType == ArenaStarType.AST_WEEKNEST; + if (flag6) + { + text2 += XSingleton.singleton.GetString("SECOND_DUARATION"); + } + bool flag7 = j < lastData.Count && j == 2 && this.CurSelectedType == ArenaStarType.AST_HEROBATTLE; + if (flag7) + { + text2 += "%"; + } + bool flag8 = j < lastData.Count && j == 2 && this.CurSelectedType == ArenaStarType.AST_LEAGUE; + if (flag8) + { + text2 += "%"; + } + ixuilabel5.SetText(text2); + IXUILabel ixuilabel6 = ixuilabel5.gameObject.transform.Find("Content").GetComponent("XUILabel") as IXUILabel; + text2 = ((j < lastData.Count) ? XSingleton.singleton.GetString(string.Concat(new object[] + { + "Fame_Hall_", + this._curSelectedType, + "_", + j + 1 + })) : ""); + ixuilabel6.SetText(text2); + } + } + } + } + } + + public void RefreshRedPoint() + { + foreach (IXUICheckBox ixuicheckBox in this._tabs) + { + Transform transform = ixuicheckBox.gameObject.transform; + Transform transform2 = transform.Find("RedPoint"); + transform2.gameObject.SetActive(XHallFameDocument.Doc.CanSupportType.Contains((ArenaStarType)ixuicheckBox.ID)); + } + this.RefreshSupportBtn(); + } + + private bool OnCheckTabItem(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + XRankDocument specificDocument = XDocuments.GetSpecificDocument(XRankDocument.uuID); + ArenaStarType arenaStarType = (ArenaStarType)iXUICheckBox.ID; + this._curSelectedType = arenaStarType; + switch (arenaStarType) + { + case ArenaStarType.AST_PK: + specificDocument.ReqRankList(XRankType.LastWeek_PKRank); + break; + case ArenaStarType.AST_HEROBATTLE: + { + XHeroBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument2.QueryLastSeasonRankInfo(); + break; + } + case ArenaStarType.AST_WEEKNEST: + XWeekNestDocument.Doc.ReqLastSeasonRankList(); + break; + case ArenaStarType.AST_LEAGUE: + specificDocument.ReqRankList(XRankType.LastWeek_LeagueTeamRank); + break; + default: + return false; + } + XHallFameDocument.Doc.SendArenaStarRoleReq(ArenaStarReqType.ASRT_ROLEDATA, arenaStarType, 0UL); + } + return true; + } + + private bool OnClickCloseBtn(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + private void UpdateTabs() + { + this.SetTabsState(); + } + + private void RefreshSupportBtn() + { + base.uiBehaviour.SupportBtn.SetEnable(XHallFameDocument.Doc.CanSupportType.Contains(this._curSelectedType), false); + Transform transform = base.uiBehaviour.SupportBtn.gameObject.transform.Find("RedPoint"); + transform.gameObject.SetActive(XHallFameDocument.Doc.CanSupportType.Contains(this._curSelectedType)); + } + + private void SetTabsState() + { + ArenaStarType[] array = (ArenaStarType[])Enum.GetValues(typeof(ArenaStarType)); + int num = Mathf.Min(array.Length, this._tabs.Count); + int i; + for (i = 0; i < num; i++) + { + this._tabs[i].ID = (ulong)((long)array[i]); + } + while (i < this._tabs.Count) + { + this._tabs[i++].SetEnable(false); + } + bool bChecked = this._tabs[0].bChecked; + if (bChecked) + { + this.OnCheckTabItem(this._tabs[0]); + } + else + { + this._tabs[0].bChecked = true; + } + } + + private void SetRankRoleInfoShow(Transform role, HallFameRoleInfo roleInfo, int index) + { + string sprite = "mrt_mh" + (this._curSelectedType - ArenaStarType.AST_PK); + Transform transform = role.Find("TitleFrame/KingRoot"); + int childCount = transform.childCount; + IXUISprite ixuisprite = role.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRoleSelected)); + ixuisprite.ID = roleInfo.OutLook.roleid; + role.gameObject.SetActive(true); + IXUILabel ixuilabel = role.Find("TitleFrame/Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(roleInfo.OutLook.name); + IXUILabel ixuilabel2 = role.Find("TitleFrame/Rank").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText("NO." + roleInfo.Rank); + IXUISprite ixuisprite2 = role.Find("TitleFrame/ProfIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(XSingleton.singleton.GetProfIcon((int)roleInfo.OutLook.profession)); + IXUILabel ixuilabel3 = role.Find("TitleFrame/Guild").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(roleInfo.TeamName); + Transform transform2 = role.Find("Snapshot"); + IUIDummy iuidummy = transform2.GetComponent("UIDummy") as IUIDummy; + bool flag = roleInfo.OutLook.roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + XSingleton.singleton.EnableMainDummy(true, iuidummy); + XSingleton.singleton.ResetMainAnimation(); + this._mainPlayerDummy = iuidummy; + } + else + { + XDummy xdummy = XSingleton.singleton.FindCreateCommonRoleDummy(this.m_dummPool, roleInfo.OutLook.roleid, (uint)XFastEnumIntEqualityComparer.ToInt(roleInfo.OutLook.profession), roleInfo.OutLook.outlook, iuidummy, index); + this._avatars[index] = xdummy; + } + ArenaStarHistData hisData = roleInfo.hisData; + bool flag2 = hisData != null; + if (flag2) + { + Transform child = transform.GetChild(0); + int num = Mathf.Min((int)hisData.rankOneNum, 5); + IXUISprite ixuisprite3 = child.GetComponent("XUISprite") as IXUISprite; + int i = 0; + float num2 = (hisData.rankOneNum > 0u) ? ((float)(num - 1) / 2f * (float)ixuisprite3.spriteWidth) : 0f; + while (i < childCount) + { + Transform child2 = transform.GetChild(i); + bool flag3 = (long)i < (long)((ulong)hisData.rankOneNum); + if (flag3) + { + child2.localPosition = new Vector3(-num2 + (float)(i * ixuisprite3.spriteWidth), child2.localPosition.y, child2.localPosition.z); + child2.gameObject.SetActive(true); + IXUISprite ixuisprite4 = child2.GetChild(0).GetComponent("XUISprite") as IXUISprite; + ixuisprite4.SetSprite(sprite); + } + else + { + child2.gameObject.SetActive(false); + } + i++; + } + } + } + + private void OnRoleSelected(IXUISprite uiSprite) + { + this.RefreshRoleRaceDetail(uiSprite.ID); + bool flag = this._selectedRoleEffect != null; + if (flag) + { + this._selectedRoleEffect.SetUIWidget(uiSprite.gameObject.transform.Find("p").gameObject); + this._selectedRoleEffect.SetActive(true); + this._selectedRoleEffect.Play(uiSprite.gameObject.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + private void ClearAvatarStates() + { + for (int i = 0; i < 4; i++) + { + bool flag = this._avatars[i] == null; + if (!flag) + { + this._avatars[i] = null; + } + } + } + + private void UpdateSeasonDate() + { + DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(XHallFameDocument.Doc.SeasonBeginTime).ToLocalTime(); + DateTime dateTime2 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(XHallFameDocument.Doc.SeasonEndTime).ToLocalTime(); + base.uiBehaviour.DateSeasonLabel.SetText(((XHallFameDocument.Doc.SeasonBeginTime == 0UL) ? "--.--" : dateTime.ToString("MM.dd")) + "_" + ((XHallFameDocument.Doc.SeasonEndTime == 0UL) ? "--.--" : dateTime2.ToString("MM.dd"))); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_HallFame); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HallFameDlg.cs.meta new file mode 100644 index 00000000..e1a97d29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2fb518e5d4252e46b4777e00360f97a +timeCreated: 1611404597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameShareBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/HallFameShareBehavior.cs new file mode 100644 index 00000000..5e586bdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameShareBehavior.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class HallFameShareBehavior : DlgBehaviourBase + { + public IXUIButton ShareBtn; + + public IXUIButton CloseBtn; + + public IUIDummy uiDummy; + + public Transform ParticleHanging; + + public IXUILabel RecentSeason; + + public IXUILabel RoleName; + + public IXUILabel ChampionTimes; + + public IXUILabel SeasonSpan; + + public IXUILabel TopTenTimes; + + private void Awake() + { + this.ShareBtn = (base.transform.Find("Bg/Board/ShareBtn").GetComponent("XUIButton") as IXUIButton); + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Snapshot"); + this.uiDummy = (transform.GetComponent("UIDummy") as IUIDummy); + this.ParticleHanging = base.transform.Find("Bg/pHanging"); + this.RecentSeason = (base.transform.Find("Bg/Board/RecentSeason").GetComponent("XUILabel") as IXUILabel); + this.RoleName = (base.transform.Find("Bg/Board/RoleName").GetComponent("XUILabel") as IXUILabel); + this.ChampionTimes = (base.transform.Find("Bg/Board/ChampionTimes").GetComponent("XUILabel") as IXUILabel); + this.SeasonSpan = (base.transform.Find("Bg/Board/SeasonSpan").GetComponent("XUILabel") as IXUILabel); + this.TopTenTimes = (base.transform.Find("Bg/Board/TopTenTimes").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameShareBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HallFameShareBehavior.cs.meta new file mode 100644 index 00000000..6077b7f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameShareBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 582d7a9d87be40a48b40613b126a5f1f +timeCreated: 1611403754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameShareDlg.cs b/Client/Assets/Scripts/XMainClient/UI/HallFameShareDlg.cs new file mode 100644 index 00000000..6531e8f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameShareDlg.cs @@ -0,0 +1,192 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HallFameShareDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/HallFameShareDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XFx _roleEffect; + + private uint m_show_time_token = 0u; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.ShareBtn.SetAlpha(1f); + this.ShowMainRoleAvatar(); + this.UpdateRoleDetail(); + this.PlayVictoryAction(); + } + + private void PlayVictoryAction() + { + float interval = XSingleton.singleton.SetMainAnimationGetLength(XSingleton.singleton.Player.Present.PresentLib.Disappear); + this.m_show_time_token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.KillDummyTimer), null); + } + + private void UpdateRoleDetail() + { + ulong roleID = XSingleton.singleton.XPlayerData.RoleID; + HallFameRoleInfo roleInfoByRoleID = XHallFameDocument.Doc.GetRoleInfoByRoleID(roleID); + bool flag = roleInfoByRoleID != null; + if (flag) + { + ArenaStarType curSelectedType = DlgBase.singleton.CurSelectedType; + string @string = XSingleton.singleton.GetString(curSelectedType.ToString() + "_Hall_Fame"); + IXUILabel ixuilabel = base.uiBehaviour.RoleName.gameObject.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(@string + XSingleton.singleton.GetString("SeasonFame")); + base.uiBehaviour.RoleName.SetText(roleInfoByRoleID.OutLook.name); + ixuilabel = (base.uiBehaviour.TopTenTimes.gameObject.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(@string + XSingleton.singleton.GetString("TotalTopTen")); + base.uiBehaviour.TopTenTimes.SetText(roleInfoByRoleID.hisData.rankTenNum.ToString()); + ixuilabel = (base.uiBehaviour.SeasonSpan.gameObject.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(@string + XSingleton.singleton.GetString("SeasonTime")); + DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(XHallFameDocument.Doc.SeasonBeginTime).ToLocalTime(); + DateTime dateTime2 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddSeconds(XHallFameDocument.Doc.SeasonEndTime).ToLocalTime(); + base.uiBehaviour.SeasonSpan.SetText(((XHallFameDocument.Doc.SeasonBeginTime == 0UL) ? "--:--" : dateTime.ToString("MM.dd")) + "_" + ((XHallFameDocument.Doc.SeasonEndTime == 0UL) ? "--:--" : dateTime2.ToString("MM.dd"))); + ixuilabel = (base.uiBehaviour.ChampionTimes.gameObject.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(@string + XSingleton.singleton.GetString("TotalTopOne")); + base.uiBehaviour.ChampionTimes.SetText(roleInfoByRoleID.hisData.rankOneNum.ToString()); + string text = (roleInfoByRoleID.hisData.rankRecent.Count == 0) ? "" : roleInfoByRoleID.hisData.rankRecent[0].rank.ToString(); + for (int i = 1; i < roleInfoByRoleID.hisData.rankRecent.Count; i++) + { + uint num = roleInfoByRoleID.hisData.rankRecent[i].rank; + num = ((num == uint.MaxValue) ? 0u : num); + text = text + "/" + num; + } + base.uiBehaviour.RecentSeason.SetText(text); + } + } + + private void ShowMainRoleAvatar() + { + XSingleton.singleton.EnableMainDummy(true, base.uiBehaviour.uiDummy); + bool flag = this._roleEffect != null; + if (flag) + { + this._roleEffect.SetActive(true); + } + } + + protected override void OnHide() + { + XSingleton.singleton.EnableMainDummy(false, null); + bool flag = this._roleEffect != null; + if (flag) + { + this._roleEffect.SetActive(false); + } + this.KillTimer(); + XSingleton.singleton.ResetMainAnimation(); + base.OnHide(); + } + + protected override void OnUnload() + { + bool flag = this._roleEffect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._roleEffect, true); + this._roleEffect = null; + } + this.KillTimer(); + XSingleton.singleton.ResetMainAnimation(); + base.OnUnload(); + } + + private void InitProperties() + { + base.uiBehaviour.ShareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickToShare)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickToClose)); + this._roleEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_HallFameDlg_fx02", null, true); + this._roleEffect.SetActive(false); + this._roleEffect.SetParent(base.uiBehaviour.ParticleHanging); + } + + private bool ClickToClose(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool ClickToShare(IXUIButton button) + { + bool flag = XSingleton.singleton.CheckPlatfomStatus(); + if (flag) + { + base.uiBehaviour.ShareBtn.SetAlpha(0f); + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.ShowGlory); + XSingleton.singleton.StartExternalScreenShotView(new ScreenShotCallback(this.ShareSuccess)); + } + return true; + } + + private void ShareSuccess(bool succ) + { + XSingleton.singleton.AddGreenLog("ShareSuccess", null, null, null, null, null); + bool flag = base.IsVisible(); + if (flag) + { + base.uiBehaviour.ShareBtn.SetAlpha(1f); + this.SetVisible(false, true); + } + } + + private void KillDummyTimer(object sender) + { + this.KillTimer(); + bool flag = XSingleton.singleton.Player != null && XSingleton.singleton.Player.Present != null; + if (flag) + { + XSingleton.singleton.SetMainAnimation(XSingleton.singleton.Player.Present.PresentLib.AttackIdle); + } + } + + private void KillTimer() + { + XSingleton.singleton.KillTimer(this.m_show_time_token); + this.m_show_time_token = 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HallFameShareDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HallFameShareDlg.cs.meta new file mode 100644 index 00000000..f3b3e01f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HallFameShareDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 950ec5faf2536d6429b81134f10d4d64 +timeCreated: 1611404179 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs new file mode 100644 index 00000000..28f9e5bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs @@ -0,0 +1,62 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HeroAttrBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public GameObject m_HeroFrame; + + public GameObject m_SkillFrame; + + public GameObject m_GamePlayFrame; + + public IXUICheckBox[] m_Tab = new IXUICheckBox[3]; + + public IXUISprite m_HeroIcon; + + public IXUILabel m_HeroName; + + public IXUILabel m_HeroSmallTips; + + public IXUIScrollView m_DescScrollView; + + public XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ScrollView; + + public IXUILabel m_GamePlayTips; + + public IXUIScrollView m_GamePlayScrollView; + + private void Awake() + { + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_HeroFrame = base.transform.Find("HeroFrame").gameObject; + this.m_SkillFrame = base.transform.Find("SkillFrame").gameObject; + this.m_GamePlayFrame = base.transform.Find("GamePlayFrame").gameObject; + for (int i = 0; i < 3; i++) + { + this.m_Tab[i] = (base.transform.Find(string.Format("Tabs/Tab{0}", i)).GetComponent("XUICheckBox") as IXUICheckBox); + } + this.m_HeroIcon = (this.m_HeroFrame.transform.Find("Left/Hero").GetComponent("XUISprite") as IXUISprite); + this.m_HeroName = (this.m_HeroFrame.transform.Find("Left/Name").GetComponent("XUILabel") as IXUILabel); + this.m_HeroSmallTips = (this.m_HeroFrame.transform.Find("Left/ScrollView/Desc").GetComponent("XUILabel") as IXUILabel); + this.m_DescScrollView = (this.m_HeroFrame.transform.Find("Left/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = this.m_HeroFrame.transform.Find("Panel/Tpl"); + this.m_AttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 15u, false); + transform = this.m_SkillFrame.transform.Find("Panel/Tpl"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 15u, false); + this.m_ScrollView = (this.m_SkillFrame.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_GamePlayTips = (this.m_GamePlayFrame.transform.Find("ScrollView/Desc").GetComponent("XUILabel") as IXUILabel); + this.m_GamePlayScrollView = (this.m_GamePlayFrame.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs.meta new file mode 100644 index 00000000..516c2a3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroAttrBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ae529425c455b349947082277e3d1f4 +timeCreated: 1611404202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs b/Client/Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs new file mode 100644 index 00000000..ca112370 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs @@ -0,0 +1,270 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HeroAttrDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "Battle/HeroAttrDlg"; + } + } + + private XHeroBattleDocument _doc; + + private SceneType _type; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + for (int i = 0; i < 3; i++) + { + base.uiBehaviour.m_Tab[i].ID = (ulong)((long)i); + base.uiBehaviour.m_Tab[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + } + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void ShowByType(SceneType type, uint heroID) + { + bool flag = XSingleton.singleton.XPlayerData == null; + if (!flag) + { + bool flag2 = heroID == 0u; + if (!flag2) + { + this._type = type; + this.SetVisible(true, true); + base.uiBehaviour.m_Tab[0].ForceSetFlag(true); + base.uiBehaviour.m_Tab[1].ForceSetFlag(false); + base.uiBehaviour.m_Tab[2].ForceSetFlag(false); + this.SetHeroFrameState(true); + } + } + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + public uint GetHeroID() + { + bool flag = XSingleton.singleton.Player == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + bool flag2 = !XEntity.ValideEntity(XSingleton.singleton.Player.Transformer); + if (flag2) + { + result = 0u; + } + else + { + uint typeID = XSingleton.singleton.Player.Transformer.TypeID; + int num = (this._type == SceneType.SCENE_HEROBATTLE) ? 0 : 2; + for (int i = 0; i < this._doc.OverWatchReader.Table.Length; i++) + { + bool flag3 = this._doc.OverWatchReader.Table[i].StatisticsID[num] == typeID; + if (flag3) + { + return this._doc.OverWatchReader.Table[i].HeroID; + } + } + result = 0u; + } + } + return result; + } + + private bool OnTabClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.SetHeroFrameState(icb.ID == 0UL); + this.SetSkillFrameState(icb.ID == 1UL); + this.SetGamePlayState(icb.ID == 2UL); + result = true; + } + return result; + } + + private void SetHeroFrameState(bool state) + { + bool flag = XSingleton.singleton.XPlayerData == null; + if (!flag) + { + base.uiBehaviour.m_HeroFrame.SetActive(state); + if (state) + { + uint heroID = this.GetHeroID(); + bool flag2 = heroID == 0u; + if (flag2) + { + this.SetVisible(false, true); + XSingleton.singleton.AddLog("Show HeroAttrDlg by HeroID = 0 Error.", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + OverWatchTable.RowData byHeroID = this._doc.OverWatchReader.GetByHeroID(heroID); + base.uiBehaviour.m_HeroIcon.SetSprite(byHeroID.Icon, byHeroID.IconAtlas, false); + base.uiBehaviour.m_HeroName.SetText(byHeroID.Name); + base.uiBehaviour.m_HeroSmallTips.SetText(XSingleton.singleton.ReplaceReturn((this._type == SceneType.SCENE_HEROBATTLE) ? byHeroID.HeroUseTips : byHeroID.MobaUseTips)); + base.uiBehaviour.m_DescScrollView.SetPosition(0f); + base.uiBehaviour.m_AttrPool.ReturnAll(false); + List intList = XSingleton.singleton.GetIntList("HeroAttrShow"); + for (int i = 0; i < intList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_AttrPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_AttrPool.TplPos.x + (float)(base.uiBehaviour.m_AttrPool.TplWidth * (i % 2)), base.uiBehaviour.m_AttrPool.TplPos.y - (float)(base.uiBehaviour.m_AttrPool.TplHeight * (i / 2))); + IXUILabel ixuilabel = gameObject.transform.Find("Attr").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format("{0}:", XStringDefineProxy.GetString(string.Format("HeroAttr_{0}", intList[i])))); + ixuilabel.SetText(((int)XSingleton.singleton.XPlayerData.GetAttr((XAttributeDefine)intList[i])).ToString()); + } + } + } + } + } + + private void SetSkillFrameState(bool state) + { + base.uiBehaviour.m_SkillFrame.SetActive(state); + if (state) + { + uint heroID = this.GetHeroID(); + bool flag = heroID == 0u; + if (flag) + { + this.SetVisible(false, true); + XSingleton.singleton.AddLog("Show HeroAttrDlg by HeroID = 0 Error.", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + OverWatchTable.RowData byHeroID = this._doc.OverWatchReader.GetByHeroID(heroID); + uint num = byHeroID.StatisticsID[(this._type == SceneType.SCENE_HEROBATTLE) ? 0 : 2]; + uint presentID = XSingleton.singleton.EntityStatistics.GetByID(num).PresentID; + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(presentID); + int num2 = (this._type == SceneType.SCENE_HEROBATTLE) ? 5 : 4; + List list = new List(); + int num3 = 0; + while (list.Count < num2 && num3 < byPresentID.OtherSkills.Length) + { + bool flag2 = string.IsNullOrEmpty(byPresentID.OtherSkills[num3]) || byPresentID.OtherSkills[num3] == "E"; + if (!flag2) + { + list.Add(XSingleton.singleton.GetSkillID(byPresentID.OtherSkills[num3], num)); + } + num3++; + } + base.uiBehaviour.m_SkillPool.ReturnAll(false); + for (int i = 0; i < list.Count; i++) + { + uint num4 = 0u; + bool flag3 = this._type == SceneType.SCENE_MOBA; + if (flag3) + { + XBattleSkillDocument.SkillLevelDict.TryGetValue(list[i], out num4); + } + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(list[i], num4, XSingleton.singleton.Player.SkillCasterTypeID); + GameObject gameObject = base.uiBehaviour.m_SkillPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_SkillPool.TplPos.x + (float)(i * base.uiBehaviour.m_SkillPool.TplWidth), base.uiBehaviour.m_SkillPool.TplPos.y); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("CD").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("MP").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject.transform.Find("Desc").GetComponent("XUILabel") as IXUILabel; + ixuisprite.SetSprite(skillConfig.Icon, skillConfig.Atlas, false); + ixuilabel.SetText(skillConfig.ScriptName); + bool flag4 = this._type == SceneType.SCENE_MOBA && num4 == 0u; + if (flag4) + { + ixuilabel3.SetText(XStringDefineProxy.GetString("NOT_LEARN")); + ixuilabel2.SetText(XStringDefineProxy.GetString("NOT_LEARN")); + } + else + { + ixuilabel3.SetText((skillConfig.CostMP[0] + skillConfig.CostMP[1] * num4).ToString()); + bool flag5 = XSingleton.singleton.Player != null && XEntity.ValideEntity(XSingleton.singleton.Player.Transformer); + string text; + if (flag5) + { + text = string.Format("{0}s", Math.Round((double)XSkillMgr.GetCD(XSingleton.singleton.Player.Transformer, skillConfig.SkillScript, num4) + 0.01, 1)); + } + else + { + text = "0s"; + } + ixuilabel2.SetText(text); + } + ixuilabel4.SetText(skillConfig.CurrentLevelDescription); + bool flag6 = i == list.Count - 1; + if (flag6) + { + gameObject.transform.Find("line").gameObject.SetActive(false); + } + } + base.uiBehaviour.m_ScrollView.SetPosition(0f); + } + } + } + + private void SetGamePlayState(bool state) + { + base.uiBehaviour.m_GamePlayFrame.SetActive(state); + if (state) + { + base.uiBehaviour.m_GamePlayTips.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString(string.Format("HeroGamePlay_{0}", XFastEnumIntEqualityComparer.ToInt(this._type))))); + base.uiBehaviour.m_GamePlayScrollView.SetPosition(0f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs.meta new file mode 100644 index 00000000..0d909dc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroAttrDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35a4ca8043ac90c42968ec1f38c7a6a6 +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs b/Client/Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs new file mode 100644 index 00000000..9e0169f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs @@ -0,0 +1,613 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HeroBattleDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/HeroBattleDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_HeroBattle); + } + } + + private XHeroBattleDocument _doc = null; + + private XHeroBattleSkillDocument _skillDoc = null; + + public HeroBattleSkillHandler m_HeroBattleSkillHandler; + + public BattleRecordHandler m_HeroBattleRecordHandler; + + private XDummy m_Dummy; + + private bool _InitUI; + + private uint _selectAnimToken; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this._skillDoc = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + this.m_HeroBattleSkillHandler = DlgHandlerBase.EnsureCreate(ref this.m_HeroBattleSkillHandler, base.uiBehaviour.m_SkillPreViewTs, false, null); + this.m_HeroBattleSkillHandler.HandlerType = 0; + this.m_HeroBattleSkillHandler.OtherViewBuyBtn = base.uiBehaviour.m_BuyBtn; + DlgHandlerBase.EnsureCreate(ref this.m_HeroBattleRecordHandler, base.uiBehaviour.m_BattleRecordFrame, null, false); + base.uiBehaviour.m_RewardPreViewFrame.SetActive(false); + base.uiBehaviour.m_RankFrame.SetActive(false); + this._InitUI = true; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_SkillPreViewBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSkillPreViewBtnClick)); + base.uiBehaviour.m_BuyBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClick)); + base.uiBehaviour.m_ClickGet.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetRewardClick)); + base.uiBehaviour.m_BattleRecordBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBattleRecordBtnClick)); + base.uiBehaviour.m_RewardPreViewBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardPreViewBtnClick)); + base.uiBehaviour.m_RewardPreViewCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardPreViewCloseBtnClick)); + base.uiBehaviour.m_ShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopBtnClick)); + base.uiBehaviour.m_SingleMatch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSingleMatchBtnClick)); + base.uiBehaviour.m_TeamMatch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTeamMatchBtnClick)); + base.uiBehaviour.m_SnapDrag.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnMonsterDrag)); + IXUIButton ixuibutton = base.uiBehaviour.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClicked)); + base.uiBehaviour.m_RankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankBtnClick)); + base.uiBehaviour.m_RankCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankCloseBtnClick)); + base.uiBehaviour.m_RankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapListUpdated)); + base.uiBehaviour.m_Privilege.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPrivilegeClick)); + base.uiBehaviour.m_ResearchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnResearchBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_BgTex.SetTexturePath("atlas/UI/GameSystem/HeroBattle/l_herozcbj_h2Split"); + base.Alloc3DAvatarPool("HeroBattleDlg"); + bool initUI = this._InitUI; + if (initUI) + { + this._InitUI = false; + } + else + { + this.RefreshSelectMsg(); + } + this._doc.QueryHeroBattleUIInfo(); + this.m_HeroBattleSkillHandler.SetVisible(true); + this._skillDoc.m_HeroBattleSkillHandler = this.m_HeroBattleSkillHandler; + this.Refresh(); + DlgBase.singleton.TryOpenUI(); + this.RefreshPrivilegeInfo(); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this._selectAnimToken); + this.m_HeroBattleRecordHandler.SetVisible(false); + base.uiBehaviour.m_BgTex.SetTexturePath(""); + bool flag = this.m_HeroBattleSkillHandler != null; + if (flag) + { + this.m_HeroBattleSkillHandler.SetVisible(false); + this._skillDoc.m_HeroBattleSkillHandler = null; + } + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = this.m_HeroBattleSkillHandler != null; + if (flag) + { + this.m_HeroBattleSkillHandler.SetVisible(true); + } + base.Alloc3DAvatarPool("HeroBattleDlg"); + this.RefreshSelectMsg(); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + bool flag = this.m_HeroBattleSkillHandler != null; + if (flag) + { + this.m_HeroBattleSkillHandler.SetSkillPreViewState(false, 0); + this.m_HeroBattleSkillHandler.SetVisible(false); + } + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + this.m_Dummy = null; + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this._selectAnimToken); + DlgHandlerBase.EnsureUnload(ref this.m_HeroBattleSkillHandler); + DlgHandlerBase.EnsureUnload(ref this.m_HeroBattleRecordHandler); + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnUnload(); + } + + public void Refresh() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + base.uiBehaviour.m_SingleMatchLabel.SetText((specificDocument.SoloMatchType == KMatchType.KMT_HERO) ? string.Format("{0}...", XStringDefineProxy.GetString("MATCHING")) : XStringDefineProxy.GetString("CAPTAINPVP_SINGLE")); + base.uiBehaviour.m_TeamMatch.SetEnable(specificDocument.SoloMatchType != KMatchType.KMT_HERO, false); + } + + public void RefreshInfo() + { + base.uiBehaviour.m_BattleTotal.SetText(this._doc.BattleTotal.ToString()); + base.uiBehaviour.m_BattleWin.SetText(this._doc.BattleWin.ToString()); + base.uiBehaviour.m_BattleLose.SetText(this._doc.BattleLose.ToString()); + bool flag = this._doc.BattleTotal == 0u; + if (flag) + { + base.uiBehaviour.m_BattleRate.SetText("0%"); + } + else + { + base.uiBehaviour.m_BattleRate.SetText(string.Format("{0}%", (int)(this._doc.BattleWin * 100f / this._doc.BattleTotal))); + } + int @int = XSingleton.singleton.GetInt("HeroBattleSpecialNum"); + base.uiBehaviour.m_WeekCurrentWin.SetText(this._doc.WinThisWeek.ToString()); + base.uiBehaviour.m_ClickGet.SetVisible(this._doc.RewardState == HeroBattleRewardState.CanGet); + base.uiBehaviour.m_HadGet.SetActive(this._doc.RewardState == HeroBattleRewardState.GetEnd); + int num = Math.Max(@int - (int)this._doc.JoinToday, 0); + string arg = (num == 0) ? "[ff3e3e]" : "[00ff37]"; + string arg2 = string.Format("{0}{1}[-]", arg, num); + HeroBattleWeekReward.RowData byid = this._doc.HeroBattleWeekRewardReader.GetByid(this._doc.GetRewardStage + 1u); + base.uiBehaviour.m_WeekBattleTips.SetText(string.Format(XStringDefineProxy.GetString("HeroBattleWeekRewardTips"), byid.winnum)); + base.uiBehaviour.m_BattleTips.SetText(string.Format(XStringDefineProxy.GetString("HeroBattleRewardTips"), @int.ToString(), arg2, @int.ToString())); + base.uiBehaviour.m_RewardPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_RewardPool.TplPos; + List list = new List(); + for (int i = 0; i < byid.reward.Length; i++) + { + ItemBrief itemBrief = new ItemBrief(); + int num2; + int num3; + CVSReader.GetRowDataListByField(XBagDocument.DropTable.Table, (int)byid.reward[i], out num2, out num3, XBagDocument.comp); + bool flag2 = num2 < 0; + if (!flag2) + { + itemBrief.itemID = (uint)XBagDocument.DropTable.Table[num2].ItemID; + itemBrief.itemCount = (uint)XBagDocument.DropTable.Table[num2].ItemCount; + itemBrief.isbind = XBagDocument.DropTable.Table[num2].ItemBind; + list.Add(itemBrief); + } + } + float num4 = tplPos.x - ((float)list.Count - 1f) / 2f * (float)base.uiBehaviour.m_RewardPool.TplWidth; + for (int j = 0; j < list.Count; j++) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_WeekRewardTs; + gameObject.transform.localPosition = new Vector3(num4 + (float)(j * base.uiBehaviour.m_RewardPool.TplWidth), tplPos.y); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)list[j].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf, (int)list[j].itemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, (int)list[j].itemID); + GameObject gameObject2 = gameObject.transform.Find("Other/RedPoint").gameObject; + gameObject2.SetActive(j == list.Count - 1 && this._doc.RewardState == HeroBattleRewardState.CanGet); + GameObject gameObject3 = gameObject.transform.Find("Other/OutterLight").gameObject; + gameObject3.SetActive(this._doc.RewardState == HeroBattleRewardState.CanGet); + } + List intList = XSingleton.singleton.GetIntList("HeroBattleSpecialReward"); + list.Clear(); + for (int k = 0; k < intList.Count; k++) + { + ItemBrief itemBrief2 = new ItemBrief(); + int num2; + int num3; + CVSReader.GetRowDataListByField(XBagDocument.DropTable.Table, intList[k], out num2, out num3, XBagDocument.comp); + bool flag3 = num2 < 0; + if (!flag3) + { + itemBrief2.itemID = (uint)XBagDocument.DropTable.Table[num2].ItemID; + itemBrief2.itemCount = (uint)XBagDocument.DropTable.Table[num2].ItemCount; + itemBrief2.isbind = XBagDocument.DropTable.Table[num2].ItemBind; + list.Add(itemBrief2); + } + } + num4 = tplPos.x - ((float)list.Count - 1f) / 2f * (float)base.uiBehaviour.m_RewardPool.TplWidth; + for (int l = 0; l < list.Count; l++) + { + GameObject gameObject4 = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject4.transform.parent = base.uiBehaviour.m_DayRewardTs; + gameObject4.transform.localPosition = new Vector3(num4 + (float)(l * base.uiBehaviour.m_RewardPool.TplWidth), tplPos.y); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf((int)list[l].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject4, itemConf2, (int)list[l].itemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject4, (int)list[l].itemID); + GameObject gameObject5 = gameObject4.transform.Find("Other/RedPoint").gameObject; + gameObject5.SetActive(false); + GameObject gameObject6 = gameObject4.transform.Find("Other/OutterLight").gameObject; + gameObject6.SetActive(false); + } + } + + private void SetupRewardPreView() + { + base.uiBehaviour.m_PreViewItemPool.ReturnAll(true); + base.uiBehaviour.m_PreViewBgPool.ReturnAll(false); + base.uiBehaviour.m_CurrentWinThisWeek.SetText(this._doc.WinThisWeek.ToString()); + List list = new List(); + Vector3 tplPos = base.uiBehaviour.m_PreViewItemPool.TplPos; + for (int i = 0; i < this._doc.HeroBattleWeekRewardReader.Table.Length; i++) + { + HeroBattleWeekReward.RowData rowData = this._doc.HeroBattleWeekRewardReader.Table[i]; + GameObject gameObject = base.uiBehaviour.m_PreViewBgPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_PreViewBgPool.TplPos.x, base.uiBehaviour.m_PreViewBgPool.TplPos.y - (float)(i * base.uiBehaviour.m_PreViewBgPool.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Point/Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.winnum.ToString()); + list.Clear(); + for (int j = 0; j < rowData.reward.Length; j++) + { + ItemBrief itemBrief = new ItemBrief(); + int num; + int num2; + CVSReader.GetRowDataListByField(XBagDocument.DropTable.Table, (int)rowData.reward[j], out num, out num2, XBagDocument.comp); + bool flag = num < 0; + if (!flag) + { + itemBrief.itemID = (uint)XBagDocument.DropTable.Table[num].ItemID; + itemBrief.itemCount = (uint)XBagDocument.DropTable.Table[num].ItemCount; + itemBrief.isbind = XBagDocument.DropTable.Table[num].ItemBind; + list.Add(itemBrief); + } + } + for (int k = 0; k < list.Count; k++) + { + GameObject gameObject2 = base.uiBehaviour.m_PreViewItemPool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3(tplPos.x + (float)(k * base.uiBehaviour.m_PreViewItemPool.TplWidth), tplPos.y); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)list[k].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, itemConf, (int)list[k].itemCount, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject2, (int)list[k].itemID); + } + tplPos.y -= (float)base.uiBehaviour.m_PreViewBgPool.TplHeight; + } + } + + public void RefreshSelectMsg() + { + bool flag = !this._skillDoc.IsPreViewShow && !this._skillDoc.AlreadyGetList.Contains(this._skillDoc.CurrentSelect); + base.uiBehaviour.m_BuyBtn.SetVisible(flag); + bool flag2 = flag; + if (flag2) + { + OverWatchTable.RowData byHeroID = this._doc.OverWatchReader.GetByHeroID(this._skillDoc.CurrentSelect); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)byHeroID.Price[0]); + IXUISprite ixuisprite = base.uiBehaviour.m_BuyBtn.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = itemConf.ItemIcon1[0]; + IXUILabel ixuilabel = base.uiBehaviour.m_BuyBtn.gameObject.transform.Find("Cost").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(byHeroID.Price[1].ToString()); + } + OverWatchTable.RowData byHeroID2 = this._doc.OverWatchReader.GetByHeroID(this._skillDoc.CurrentSelect); + bool flag3 = byHeroID2 == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("get hero data error! id = ", this._skillDoc.CurrentSelect.ToString(), null, null, null, null); + } + else + { + base.uiBehaviour.m_HeroDescription.SetText(XSingleton.singleton.ReplaceReturn(byHeroID2.Description)); + base.uiBehaviour.m_HeroName.SetText(byHeroID2.Name); + bool flag4 = !this._skillDoc.AlreadyGetList.Contains(this._skillDoc.CurrentSelect) && this._skillDoc.ExperienceList.Contains(this._skillDoc.CurrentSelect); + if (flag4) + { + base.uiBehaviour.m_ExperienceTime.SetVisible(true); + int totalSecond = (int)this._skillDoc.ExperienceTimeDict[this._skillDoc.CurrentSelect]; + string text = string.Format(XStringDefineProxy.GetString("HeroBattleExperienceTime", new object[] + { + XSingleton.singleton.TimeAccFormatString(totalSecond, 3, 0) + }), new object[0]); + base.uiBehaviour.m_ExperienceTime.SetText(text); + } + else + { + base.uiBehaviour.m_ExperienceTime.SetVisible(false); + } + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(byHeroID2.StatisticsID[0]); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + bool flag5 = byID != null; + if (flag5) + { + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, byID.PresentID, this.m_uiBehaviour.m_Snapshot, this.m_Dummy, 1f); + bool flag6 = this.m_Dummy != null; + if (flag6) + { + float interval = this.m_Dummy.SetAnimationGetLength(byHeroID2.SelectAnim); + XSingleton.singleton.KillTimer(this._selectAnimToken); + this._selectAnimToken = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.SetIdleAnimation), byPresentID.AvatarPos[0]); + } + } + else + { + XSingleton.singleton.AddErrorLog("set model error. id = ", this._skillDoc.CurrentSelect.ToString(), null, null, null, null); + } + } + } + + public void SetIdleAnimation(object o) + { + string animationGetLength = o as string; + bool flag = this.m_Dummy != null; + if (flag) + { + this.m_Dummy.SetAnimationGetLength(animationGetLength); + } + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_HeroBattle); + return true; + } + + private void OnGetRewardClick(IXUISprite iSp) + { + this._doc.QueryGetReward(); + } + + private bool OnMonsterDrag(Vector2 delta) + { + bool flag = this.m_Dummy != null; + if (flag) + { + this.m_Dummy.EngineObject.Rotate(Vector3.up, -delta.x / 2f); + } + return true; + } + + private bool OnBattleRecordBtnClick(IXUIButton btn) + { + this._doc.QueryBattleRecord(); + this.m_HeroBattleRecordHandler.SetupRecord(this._doc.RecordList); + return true; + } + + private bool OnRewardPreViewBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_RewardPreViewFrame.SetActive(true); + this.SetupRewardPreView(); + return true; + } + + private bool OnRewardPreViewCloseBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_RewardPreViewFrame.SetActive(false); + return true; + } + + private bool OnShopBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Honer, 0UL); + return true; + } + + private bool OnSkillPreViewBtnClick(IXUIButton btn) + { + this.m_HeroBattleSkillHandler.SetSkillPreViewState(true, 0); + return true; + } + + private bool OnBuyBtnClick(IXUIButton btn) + { + this._skillDoc.QueryBuyHero(this._skillDoc.CurrentSelect); + return true; + } + + private bool OnSingleMatchBtnClick(IXUIButton btn) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + bool result; + if (bInTeam) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CAPTAIN_SINGLE_MATCH_TIP"), "fece00"); + result = false; + } + else + { + KMatchOp op = (specificDocument.SoloMatchType != KMatchType.KMT_HERO) ? KMatchOp.KMATCH_OP_START : KMatchOp.KMATCH_OP_STOP; + specificDocument.ReqMatchStateChange(KMatchType.KMT_HERO, op, false); + result = true; + } + return result; + } + + private bool OnTeamMatchBtnClick(IXUIButton btn) + { + this.SetVisible(false, true); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelHeroBattle); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = expeditionList.Count > 0; + if (flag) + { + specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID); + } + return true; + } + + private bool OnRankBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_RankFrame.SetActive(true); + this._doc.QueryRankInfo(); + this.SetupRankFrame(); + return true; + } + + private bool OnRankCloseBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_RankFrame.SetActive(false); + return true; + } + + public void SetupRankFrame() + { + bool flag = !base.uiBehaviour.m_RankFrame.activeInHierarchy; + if (!flag) + { + this.SetRankTpl(base.uiBehaviour.m_MyRankTs, 0, true); + base.uiBehaviour.m_RankWrapContent.SetContentCount(this._doc.MainRankList.Count, false); + base.uiBehaviour.m_RankScrollView.ResetPosition(); + } + } + + public void WrapListUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.MainRankList.Count; + if (!flag) + { + this.SetRankTpl(t, index, false); + } + } + + public void SetRankTpl(Transform t, int index, bool isMy) + { + HeroBattleRankData heroBattleRankData = isMy ? this._doc.MyRankData : this._doc.MainRankList[index]; + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Value1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Value2").GetComponent("XUILabel") as IXUILabel; + bool flag = heroBattleRankData.rank < 3u; + if (flag) + { + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + ixuisprite.spriteName = string.Format("N{0}", heroBattleRankData.rank + 1u); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetVisible(true); + ixuilabel.SetText(string.Format("No.{0}", heroBattleRankData.rank + 1u)); + } + if (isMy) + { + bool flag2 = heroBattleRankData.rank == uint.MaxValue; + if (flag2) + { + base.uiBehaviour.m_OutOfRank.SetActive(true); + ixuisprite.SetVisible(false); + ixuilabel.SetVisible(false); + } + else + { + base.uiBehaviour.m_OutOfRank.SetActive(false); + } + } + bool flag3 = heroBattleRankData.fightTotal == 0u; + int num; + if (flag3) + { + num = 0; + } + else + { + num = (int)Mathf.Floor(heroBattleRankData.winTotal * 100u / heroBattleRankData.fightTotal); + } + ixuilabel2.SetText(heroBattleRankData.name); + ixuilabel3.SetText(string.Format("{0}%", num)); + ixuilabel4.SetText(heroBattleRankData.fightTotal.ToString()); + ixuilabel2.ID = heroBattleRankData.roleID; + ixuilabel2.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnPlayerInfoClick)); + } + + private void OnPlayerInfoClick(IXUILabel label) + { + bool flag = label.ID == 0UL; + if (!flag) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(label.ID, false); + } + } + + private void OnPrivilegeClick(IXUISprite btn) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + } + + private void OnResearchBtnClick(IXUISprite iSp) + { + XSingleton.singleton.OpenHtmlUrl("HeroBattlePlayUrl"); + } + + private void RefreshPrivilegeInfo() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + base.uiBehaviour.m_PrivilegeIcon.SetGrey(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer)); + base.uiBehaviour.m_PrivilegeIcon.SetSprite(specificDocument.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Adventurer)); + base.uiBehaviour.m_PrivilegeName.SetEnabled(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer)); + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Adventurer); + bool flag = memberPrivilegeConfig != null; + if (flag) + { + base.uiBehaviour.m_PrivilegeName.SetText(XStringDefineProxy.GetString("HeroBattlePrevilege", new object[] + { + memberPrivilegeConfig.HeroBattleFree + })); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs.meta new file mode 100644 index 00000000..69709320 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c5e748c72fc80b46a95add89190591c +timeCreated: 1611404232 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleHandler.cs b/Client/Assets/Scripts/XMainClient/UI/HeroBattleHandler.cs new file mode 100644 index 00000000..8c394044 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleHandler.cs @@ -0,0 +1,655 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HeroBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/HeroBattleHandler"; + } + } + + private XHeroBattleDocument _doc = null; + + private XHeroBattleSkillDocument _skillDoc = null; + + private List m_Team = new List(); + + private GameObject m_Death; + + private IXUILabel m_ReviveLeftTime; + + private Transform m_ProgressTs; + + private IXUILabel m_ProgressTips; + + private Transform m_ProgressTipsTs; + + private IXUIProgress m_Progress; + + private Transform m_AddTimeTs; + + private IXUIProgress m_AddTimeProgress; + + private IXUIButton m_ChangeHeroBtn; + + private IXUILabel m_KillText; + + private IXUILabel m_DeadText; + + private IXUILabel m_AssitText; + + private Transform m_AncientParent; + + private IXUILabel m_AncientPercent; + + private IXUIProgress m_AncientSlider; + + private IXUISprite[] m_AncientSkill = new IXUISprite[3]; + + private bool _isAncientFull; + + private IXUISprite m_AttrShowBtn; + + private IXUISprite m_AncientTipsBtn; + + private IXUISprite m_AncientTipsCloseBtn; + + private IXUILabel m_AncientTips; + + private uint m_AncientTipsCloseToken; + + private Color blueColor; + + private Color redColor; + + private XFx _Fx; + + private XFx _OccupantFx; + + private XFx _EndFx; + + private uint _MiniMapFxToken; + + private uint _CurrentOccupant; + + private bool _InCircleMyself; + + private bool _IsInFight; + + private uint _ProgressTeam; + + private bool _InAddTime; + + private float _AddTimePerTurn; + + private float _SignTime; + + private bool _OnDeath; + + private float _ReviveTime; + + private float _ReviveSignTime; + + private float _LootProgress; + + private bool _HaveEnd; + + private XFx[] _skillFx = new XFx[3]; + + private XFx _barFx; + + public MapSignalHandler m_MapSignalHandler; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this._skillDoc = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + this._doc._HeroBattleHandler = this; + this.m_Death = base.transform.Find("Death").gameObject; + this.m_Death.transform.localPosition = XGameUI.Far_Far_Away; + this.m_ReviveLeftTime = (this.m_Death.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_ChangeHeroBtn = (this.m_Death.gameObject.transform.Find("ChangeHeroBtn").GetComponent("XUIButton") as IXUIButton); + this.m_ProgressTs = base.transform.Find("Progress"); + this.m_ProgressTipsTs = base.transform.Find("TextTs"); + this.m_ProgressTs.localPosition = XGameUI.Far_Far_Away; + this.m_ProgressTipsTs.localPosition = XGameUI.Far_Far_Away; + this.m_Progress = (this.m_ProgressTs.Find("ProgressBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_AddTimeTs = base.transform.Find("AddTime"); + this.m_AddTimeTs.localPosition = XGameUI.Far_Far_Away; + this.m_AddTimeProgress = (this.m_AddTimeTs.Find("AddtimeBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_ProgressTips = (base.transform.Find("TextTs/Text").GetComponent("XUILabel") as IXUILabel); + this.m_ProgressTips.SetText(XStringDefineProxy.GetString("HeroBattleLoot")); + GameObject gameObject = base.transform.Find("Score").gameObject; + gameObject.SetActive(!XSingleton.singleton.bSpectator); + this.m_KillText = (base.transform.Find("Score/kill").GetComponent("XUILabel") as IXUILabel); + this.m_DeadText = (base.transform.Find("Score/dead").GetComponent("XUILabel") as IXUILabel); + this.m_AssitText = (base.transform.Find("Score/help").GetComponent("XUILabel") as IXUILabel); + this.m_AttrShowBtn = (base.transform.Find("AttrShowBtn").GetComponent("XUISprite") as IXUISprite); + this.m_AncientParent = base.transform.Find("AncientBarParent"); + this.m_AncientPercent = (base.transform.Find("AncientBarParent/AncientSkillBar/Num").GetComponent("XUILabel") as IXUILabel); + this.m_AncientSlider = (base.transform.Find("AncientBarParent/AncientSkillBar").GetComponent("XUIProgress") as IXUIProgress); + for (int i = 0; i < 3; i++) + { + this.m_AncientSkill[i] = (base.transform.Find(string.Format("AncientSkill/Skill{0}", i)).GetComponent("XUISprite") as IXUISprite); + this.m_AncientSkill[i].ID = (ulong)((long)i + 1L); + this.m_AncientSkill[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAncientSkillClick)); + this.m_AncientSkill[i].SetVisible(false); + } + this._isAncientFull = false; + this.SetAncientPercent(0f); + this.m_AncientTipsBtn = (base.transform.Find("AncientBarParent/AncientSkillBar/Foreground").GetComponent("XUISprite") as IXUISprite); + this.m_AncientTips = (base.transform.Find("AncientTips/Desc").GetComponent("XUILabel") as IXUILabel); + this.m_AncientTipsCloseBtn = (base.transform.Find("AncientTips/Close").GetComponent("XUISprite") as IXUISprite); + this.m_AncientTips.gameObject.transform.parent.gameObject.SetActive(false); + this.m_Team.Clear(); + HeroBattleTeam item = new HeroBattleTeam(base.transform.Find("Scoreboard/BlueTeam")); + HeroBattleTeam item2 = new HeroBattleTeam(base.transform.Find("Scoreboard/RedTeam")); + this.m_Team.Add(item); + this.m_Team.Add(item2); + List intList = XSingleton.singleton.GetIntList("HeroBattleBlueColor"); + this.blueColor = new Color((float)intList[0] / 255f, (float)intList[1] / 255f, (float)intList[2] / 255f); + intList = XSingleton.singleton.GetIntList("HeroBattleRedColor"); + this.redColor = new Color((float)intList[0] / 255f, (float)intList[1] / 255f, (float)intList[2] / 255f); + this._AddTimePerTurn = float.Parse(XSingleton.singleton.GetValue("HeroBattleOverTime")); + this._ReviveTime = float.Parse(XSingleton.singleton.GetValue("HeroBattleReviveTime")); + this._CurrentOccupant = 0u; + this._InCircleMyself = false; + this._IsInFight = false; + this._ProgressTeam = 0u; + this._LootProgress = 0f; + this._MiniMapFxToken = 0u; + this._InAddTime = false; + this._OnDeath = false; + this._HaveEnd = false; + this.SetFx(0u); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + this.m_AncientSlider.SetVisible(false); + base.transform.Find("MapSignalHandler").gameObject.SetActive(false); + this.m_AttrShowBtn.SetVisible(false); + } + else + { + DlgHandlerBase.EnsureCreate(ref this.m_MapSignalHandler, base.transform.Find("MapSignalHandler").gameObject, this, true); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ChangeHeroBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnChangeHeroBtnClick)); + this.m_AttrShowBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAttrShowBtnClick)); + this.m_AncientTipsBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAncientTipsBtnClick)); + this.m_AncientTipsCloseBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAncientCloseBtnClick)); + } + + public void OnAttrShowBtnClick(IXUISprite isp) + { + bool flag = XSingleton.singleton.XPlayerData == null; + if (!flag) + { + uint num = 0u; + this._doc.heroIDIndex.TryGetValue(XSingleton.singleton.XPlayerData.RoleID, out num); + bool flag2 = num > 0u; + if (flag2) + { + DlgBase.singleton.ShowByType(SceneType.SCENE_HEROBATTLE, num); + } + } + } + + public override void OnUnload() + { + this._doc._HeroBattleHandler = null; + XSingleton.singleton.KillTimer(this.m_AncientTipsCloseToken); + bool flag = this._Fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._Fx, true); + this._Fx = null; + } + bool flag2 = this._OccupantFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._OccupantFx, true); + this._OccupantFx = null; + } + bool flag3 = this._EndFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._EndFx, true); + this._EndFx = null; + } + bool flag4 = this._barFx != null; + if (flag4) + { + XSingleton.singleton.DestroyFx(this._barFx, true); + this._barFx = null; + } + for (int i = 0; i < this._skillFx.Length; i++) + { + bool flag5 = this._skillFx[i] != null; + if (flag5) + { + XSingleton.singleton.DestroyFx(this._skillFx[i], true); + this._skillFx[i] = null; + } + } + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + XSpectateSceneDocument.DelMiniMapFx(this._MiniMapFxToken); + } + else + { + XBattleDocument.DelMiniMapFx(this._MiniMapFxToken); + } + bool flag6 = this.m_MapSignalHandler != null; + if (flag6) + { + DlgHandlerBase.EnsureUnload(ref this.m_MapSignalHandler); + } + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void SetTeamData(HeroBattleTeamMsg data) + { + int num = (this._doc.MyTeam == data.teamdata[0].teamid) ? 0 : 1; + this.m_Team[0].Score = data.teamdata[num].point; + this.m_Team[1].Score = data.teamdata[1 - num].point; + bool flag = !this._HaveEnd; + if (flag) + { + bool flag2 = data.teamdata[0].point == 100u || data.teamdata[1].point == 100u; + if (flag2) + { + this._HaveEnd = true; + bool flag3 = data.teamdata[0].point == 100u; + if (flag3) + { + this.SetResultFx(data.teamdata[0].teamid == this._doc.MyTeam); + } + else + { + this.SetResultFx(data.teamdata[1].teamid == this._doc.MyTeam); + } + } + } + } + + public void SetResultFx(bool isWinMySelf) + { + HeroBattleMapCenter.RowData bySceneID = this._doc.HeroBattleMapReader.GetBySceneID(XSingleton.singleton.SceneID); + bool flag = bySceneID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find hero battle map data by sceneID = ", XSingleton.singleton.SceneID.ToString(), null, null, null, null); + } + else + { + Vector3 position; + position= new Vector3(bySceneID.Center[0], bySceneID.Center[1], bySceneID.Center[2]); + bool flag2 = this._EndFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._EndFx, true); + } + if (isWinMySelf) + { + this._EndFx = XSingleton.singleton.CreateFx(bySceneID.OccWinFx[0], null, true); + } + else + { + this._EndFx = XSingleton.singleton.CreateFx(bySceneID.OccWinFx[1], null, true); + } + this._EndFx.Play(position, Quaternion.identity, Vector3.one, 1f); + } + } + + public void SetProgressData(HeroBattleSyncData data) + { + bool flag = this._IsInFight != data.isInFight; + if (flag) + { + this.m_ProgressTips.SetText(XStringDefineProxy.GetString(data.isInFight ? "HeroBattleInFight" : "HeroBattleLoot")); + this._IsInFight = data.isInFight; + } + bool flag2 = this._CurrentOccupant != data.occupant; + int num; + if (flag2) + { + num = ((this._doc.MyTeam == data.occupant) ? 0 : 1); + this.m_Team[num].SetOccupantState(true); + this.m_Team[1 - num].SetOccupantState(false); + this._CurrentOccupant = data.occupant; + this.SetFx(this._CurrentOccupant); + } + num = ((this._doc.MyTeam == data.lootTeam) ? 0 : 1); + bool flag3 = this._ProgressTeam != data.lootTeam; + if (flag3) + { + bool flag4 = data.lootTeam > 0u; + if (flag4) + { + this.m_Progress.SetForegroundColor((num == 0) ? this.blueColor : this.redColor); + this.m_Team[(this._ProgressTeam == this._doc.MyTeam) ? 0 : 1].SetOccupyValue(0f); + } + else + { + this.m_Team[(this._ProgressTeam == this._doc.MyTeam) ? 0 : 1].SetOccupyValue(0f); + this.m_ProgressTs.localPosition = XGameUI.Far_Far_Away; + this.m_ProgressTipsTs.localPosition = XGameUI.Far_Far_Away; + } + this._ProgressTeam = data.lootTeam; + } + bool flag5 = this._ProgressTeam > 0u; + if (flag5) + { + this.m_Team[num].SetOccupyValue(data.lootProgress / 100f); + this.m_Progress.value = data.lootProgress / 100f; + this._LootProgress = data.lootProgress; + } + this.m_ProgressTs.localPosition = ((this._InCircleMyself && this._ProgressTeam != 0u && this._LootProgress > 0.5f) ? Vector3.zero : XGameUI.Far_Far_Away); + this.m_ProgressTipsTs.localPosition = ((this._IsInFight || (this._InCircleMyself && this._ProgressTeam != 0u)) ? Vector3.zero : XGameUI.Far_Far_Away); + } + + public void SetInCircleData(HeroBattleInCircle data) + { + bool flag = false; + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + flag = true; + } + else + { + for (int i = 0; i < data.roleInCircle.Count; i++) + { + bool flag2 = data.roleInCircle[i] == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + flag = true; + } + } + } + bool flag3 = this._InCircleMyself != flag; + if (flag3) + { + this._InCircleMyself = flag; + this.m_ProgressTs.localPosition = ((this._InCircleMyself && this._ProgressTeam != 0u && this._LootProgress > 0.5f) ? Vector3.zero : XGameUI.Far_Far_Away); + } + this.m_ProgressTipsTs.localPosition = ((this._IsInFight || (this._InCircleMyself && this._ProgressTeam != 0u)) ? Vector3.zero : XGameUI.Far_Far_Away); + } + + public void StartAddTime(int time) + { + this._InAddTime = (time != 0); + this._AddTimePerTurn = (float)time / 1000f; + this.m_AddTimeTs.localPosition = (this._InAddTime ? Vector3.zero : XGameUI.Far_Far_Away); + this._SignTime = Time.realtimeSinceStartup; + } + + public void RefreshScoreBoard(uint kill, uint dead, uint assit) + { + this.m_KillText.SetText(kill.ToString()); + this.m_DeadText.SetText(dead.ToString()); + this.m_AssitText.SetText(assit.ToString()); + } + + public void SetFx(uint occupant) + { + HeroBattleMapCenter.RowData bySceneID = this._doc.HeroBattleMapReader.GetBySceneID(XSingleton.singleton.SceneID); + bool flag = bySceneID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find hero battle map data by sceneID = ", XSingleton.singleton.SceneID.ToString(), null, null, null, null); + } + else + { + Vector3 vector; + vector= new Vector3(bySceneID.Center[0], bySceneID.Center[1], bySceneID.Center[2]); + float num = bySceneID.Param[0] * bySceneID.ClientFxScalse; + float num2 = ((bySceneID.CenterType == 1u) ? bySceneID.Param[0] : bySceneID.Param[1]) * bySceneID.ClientFxScalse; + Vector3 scale; + scale= new Vector3(num, 1f, num2); + bool flag2 = this._Fx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._Fx, true); + this._Fx = null; + } + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + XSpectateSceneDocument.DelMiniMapFx(this._MiniMapFxToken); + } + else + { + XBattleDocument.DelMiniMapFx(this._MiniMapFxToken); + } + bool flag3 = occupant == 0u; + if (flag3) + { + this._Fx = XSingleton.singleton.CreateFx(bySceneID.OccupantFx[0], null, true); + bool bSpectator2 = XSingleton.singleton.bSpectator; + if (bSpectator2) + { + this._MiniMapFxToken = XSpectateSceneDocument.AddMiniMapFx(vector, bySceneID.MiniMapFx[0]); + } + else + { + this._MiniMapFxToken = XBattleDocument.AddMiniMapFx(vector, bySceneID.MiniMapFx[0]); + } + } + else + { + bool flag4 = occupant == this._doc.MyTeam; + if (flag4) + { + this._Fx = XSingleton.singleton.CreateFx(bySceneID.OccupantFx[1], null, true); + bool bSpectator3 = XSingleton.singleton.bSpectator; + if (bSpectator3) + { + this._MiniMapFxToken = XSpectateSceneDocument.AddMiniMapFx(vector, bySceneID.MiniMapFx[1]); + } + else + { + this._MiniMapFxToken = XBattleDocument.AddMiniMapFx(vector, bySceneID.MiniMapFx[1]); + } + } + else + { + this._Fx = XSingleton.singleton.CreateFx(bySceneID.OccupantFx[2], null, true); + bool bSpectator4 = XSingleton.singleton.bSpectator; + if (bSpectator4) + { + this._MiniMapFxToken = XSpectateSceneDocument.AddMiniMapFx(vector, bySceneID.MiniMapFx[2]); + } + else + { + this._MiniMapFxToken = XBattleDocument.AddMiniMapFx(vector, bySceneID.MiniMapFx[2]); + } + } + } + this._Fx.Play(vector, Quaternion.identity, scale, 1f); + bool flag5 = occupant > 0u; + if (flag5) + { + bool flag6 = this._OccupantFx != null; + if (flag6) + { + XSingleton.singleton.DestroyFx(this._OccupantFx, true); + } + bool flag7 = occupant == this._doc.MyTeam; + if (flag7) + { + this._OccupantFx = XSingleton.singleton.CreateFx(bySceneID.OccSuccessFx[0], null, true); + } + else + { + this._OccupantFx = XSingleton.singleton.CreateFx(bySceneID.OccSuccessFx[1], null, true); + } + this._OccupantFx.Play(vector, Quaternion.identity, scale, 1f); + } + } + } + + private bool OnChangeHeroBtnClick(IXUIButton btn) + { + bool flag = this._skillDoc.m_HeroBattleSkillHandler != null; + if (flag) + { + this._skillDoc.m_HeroBattleSkillHandler.SetVisible(true); + this._skillDoc.m_HeroBattleSkillHandler.RefreshTab(); + } + return true; + } + + public void SetDeathGoState(bool state) + { + this.m_Death.gameObject.transform.localPosition = (state ? Vector3.zero : XGameUI.Far_Far_Away); + } + + public void SetReviveLeftTime() + { + this._OnDeath = true; + this._ReviveSignTime = Time.realtimeSinceStartup; + } + + public override void OnUpdate() + { + bool inAddTime = this._InAddTime; + if (inAddTime) + { + float num = Time.realtimeSinceStartup - this._SignTime; + this.m_AddTimeProgress.value = 1f - num / this._AddTimePerTurn; + bool flag = num > this._AddTimePerTurn; + if (flag) + { + this._InAddTime = false; + this.m_AddTimeTs.localPosition = XGameUI.Far_Far_Away; + } + } + bool onDeath = this._OnDeath; + if (onDeath) + { + float num = Time.realtimeSinceStartup - this._ReviveSignTime; + int num2 = (int)(this._ReviveTime - num); + this.m_ReviveLeftTime.SetText(num2.ToString()); + bool flag2 = this._ReviveTime - num < 0f; + if (flag2) + { + this._OnDeath = false; + } + } + } + + private void PlayShowSkillFx() + { + bool flag = this._barFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._barFx, true); + } + this._barFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_jindutiao", this.m_AncientParent, false); + for (int i = 0; i < 3; i++) + { + bool flag2 = this._skillFx[i] != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._skillFx[i], true); + } + switch (i) + { + case 0: + this._skillFx[i] = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_tubiao_hong", this.m_AncientSkill[i].transform, false); + break; + case 1: + this._skillFx[i] = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_tubiao_lan", this.m_AncientSkill[i].transform, false); + break; + case 2: + this._skillFx[i] = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_tubiao_lu", this.m_AncientSkill[i].transform, false); + break; + } + } + } + + protected void DestroyShowSkillFx(object o) + { + GameObject o2 = o as GameObject; + XSingleton.singleton.UnSafeDestroy(o2, true, false); + } + + private void OnAncientSkillClick(IXUISprite iSp) + { + this._doc.QueryUseAncientSkill((int)iSp.ID); + } + + public void SetAncientPercent(float percent) + { + bool flag = percent > 99.99f; + if (flag) + { + percent = 100f; + } + bool flag2 = percent == 100f; + bool flag3 = flag2 != this._isAncientFull; + if (flag3) + { + for (int i = 0; i < 3; i++) + { + this.m_AncientSkill[i].SetVisible(flag2); + } + this.m_AncientSlider.SetVisible(!flag2); + bool flag4 = flag2; + if (flag4) + { + this.PlayShowSkillFx(); + } + this._isAncientFull = flag2; + bool flag5 = flag2; + if (flag5) + { + this.OnAncientCloseBtnClick(null); + } + } + this.m_AncientSlider.value = percent / 100f; + this.m_AncientPercent.SetText(string.Format("{0}%", (int)(percent + 0.49f))); + } + + public void OnAncientTipsBtnClick(IXUISprite iSp) + { + this.m_AncientTips.gameObject.transform.parent.gameObject.SetActive(true); + this.m_AncientTips.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("HeroBattleAncientTips"))); + this.m_AncientTipsCloseToken = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(this.AutoClose), null); + } + + public void AutoClose(object o = null) + { + this.OnAncientCloseBtnClick(null); + } + + public void OnAncientCloseBtnClick(IXUISprite iSp) + { + this.m_AncientTips.gameObject.transform.parent.gameObject.SetActive(false); + XSingleton.singleton.KillTimer(this.m_AncientTipsCloseToken); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroBattleHandler.cs.meta new file mode 100644 index 00000000..1530f396 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 078e63b8dcbc7f54eb08f2aaed1ec40d +timeCreated: 1611402968 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleMVPDlg.cs b/Client/Assets/Scripts/XMainClient/UI/HeroBattleMVPDlg.cs new file mode 100644 index 00000000..e7e553dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleMVPDlg.cs @@ -0,0 +1,130 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HeroBattleMVPDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/HeroBattleMVPDlg"; + } + } + + private XLevelRewardDocument _doc = null; + + private uint _timerToken; + + private float _signTime; + + private float _miniCloseTime; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_ShareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.Refresh(); + float interval = float.Parse(XSingleton.singleton.GetValue("HeroBattleMvpAutoEnd")); + this._miniCloseTime = float.Parse(XSingleton.singleton.GetValue("HeroBattleMvpEnd")); + this._signTime = Time.time; + this._timerToken = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.AutoClose), null); + } + + public void Refresh() + { + base.uiBehaviour.LogoDN.SetActive(false); + base.uiBehaviour.LogoTX.SetActive(false); + base.uiBehaviour.LogoWC.SetActive(false); + base.uiBehaviour.LogoQQ.SetActive(false); + XLevelRewardDocument.HeroBattleData heroBattleData = (XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE) ? this._doc.HeroData : this._doc.MobaData; + base.uiBehaviour.m_ShareBtn.SetVisible(heroBattleData.MvpData.uID == XSingleton.singleton.XPlayerData.RoleID); + base.uiBehaviour.m_Name.SetText(heroBattleData.MvpData.Name); + base.uiBehaviour.m_Kill.SetText(heroBattleData.MvpData.KillCount.ToString()); + base.uiBehaviour.m_Death.SetText(heroBattleData.MvpData.DeathCount.ToString()); + base.uiBehaviour.m_Assit.SetText(heroBattleData.MvpData.AssitCount.ToString()); + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + OverWatchTable.RowData byHeroID = specificDocument.OverWatchReader.GetByHeroID(heroBattleData.MvpHeroID); + bool flag = byHeroID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find overwatch data in HeroMvpDlg by heroID = ", heroBattleData.MvpHeroID.ToString(), null, null, null, null); + } + else + { + base.uiBehaviour.m_HeroName.SetText(byHeroID.Name); + base.uiBehaviour.m_HeroDesc.SetText(byHeroID.Description); + base.uiBehaviour.m_HeroSay.SetText(byHeroID.Motto); + } + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._timerToken); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + private void AutoClose(object o = null) + { + bool flag = base.IsVisible(); + if (flag) + { + this.OnCloseBtnClick(null); + } + } + + private void OnCloseBtnClick(IXUISprite iSp) + { + bool flag = Time.time - this._signTime < this._miniCloseTime; + if (!flag) + { + this._signTime = Time.time; + XSingleton.singleton.Stop(true); + DlgBase.singleton.CutSceneShowEnd(); + } + } + + private bool OnShareBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_ShareBtn.SetAlpha(0f); + base.uiBehaviour.LogoDN.SetActive(true); + base.uiBehaviour.LogoTX.SetActive(true); + base.uiBehaviour.LogoWC.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + base.uiBehaviour.LogoQQ.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + XSingleton.singleton.shareCallbackType = ShareCallBackType.WeekShare; + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.ShowGlory); + XSingleton.singleton.StartExternalScreenShotView(null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleMVPDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroBattleMVPDlg.cs.meta new file mode 100644 index 00000000..56dd90c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleMVPDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 630f391f0e666e74e9199f1f8c9e3dee +timeCreated: 1611403843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleSkillHandler.cs b/Client/Assets/Scripts/XMainClient/UI/HeroBattleSkillHandler.cs new file mode 100644 index 00000000..bfc113cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleSkillHandler.cs @@ -0,0 +1,718 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HeroBattleSkillHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/HeroBattleSkill"; + } + } + + private XHeroBattleSkillDocument _doc = null; + + private XHeroBattleDocument _heroDoc = null; + + public GameObject m_ShowFrame; + + public IXUIButton m_BuyBtn; + + private IXUIButton m_OKBtn; + + private IXUISprite m_PlayBtn; + + private IXUIButton m_CloseBtn; + + public IXUILabel m_HeroName; + + private IXUILabel m_SkillName; + + private IXUILabel m_SkillDesc; + + private GameObject m_Back; + + private XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIPanel m_Panel; + + private bool _isBattleScene; + + public RenderTexture skillPreView; + + public IXUITexture m_Snapshot; + + public IXUISprite LastSelectSprite; + + private uint _currSkill; + + private bool _OnCountDown; + + private float _CountDownTime; + + private IXUILabel m_CountDown; + + private IXUILabel m_CountDownTips; + + private bool _showRefresh; + + private bool _battleFirstClick; + + private IXUISprite m_BoxC; + + private Transform _FxTs; + + private XFx _Fx; + + public IXUIButton OtherViewBuyBtn = null; + + public int HandlerType; + + public HeroBattleTeamHandler m_HeroBattleTeamHandler; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + this._heroDoc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this._doc.m_HeroBattleSkillHandler = this; + this._doc.CreateSkillBlackHouse(); + this._isBattleScene = (XSingleton.singleton.CurrentStage.Stage != EXStage.Hall); + this.m_CountDown = (base.PanelObject.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_CountDownTips = (this.m_CountDown.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_Back = base.PanelObject.transform.Find("Back").gameObject; + Transform transform = base.PanelObject.transform.Find("ShowFrame"); + this.m_ShowFrame = transform.gameObject; + this.m_BuyBtn = (transform.Find("BuyBtn").GetComponent("XUIButton") as IXUIButton); + this.m_OKBtn = (transform.Find("OKBtn").GetComponent("XUIButton") as IXUIButton); + this.m_PlayBtn = (transform.Find("PlayTs/Play").GetComponent("XUISprite") as IXUISprite); + this.m_CloseBtn = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_Snapshot = (transform.Find("Snapshot").GetComponent("XUITexture") as IXUITexture); + transform = base.PanelObject.transform.Find("ShowFrame"); + this.m_HeroName = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_SkillName = (transform.Find("SkillDesc/SkillName").GetComponent("XUILabel") as IXUILabel); + this.m_SkillDesc = (transform.Find("SkillDesc/SkillDesc").GetComponent("XUILabel") as IXUILabel); + this.m_Panel = (base.PanelObject.transform.Find("ScrollView").GetComponent("XUIPanel") as IXUIPanel); + this._FxTs = base.PanelObject.transform.Find("FxTs"); + transform = base.PanelObject.transform.Find("ScrollView/Tpl"); + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + bool flag = this._isBattleScene && ixuisprite.spriteHeight * ((this._heroDoc.OverWatchReader.Table.Length + 1) / 2) > 640; + if (flag) + { + transform.gameObject.transform.localPosition = new Vector3(transform.gameObject.transform.localPosition.x, transform.gameObject.transform.localPosition.y + 64f); + } + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + transform = base.PanelObject.transform.Find("ShowFrame/ShowSkill/Tpl"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.SetupTabs(); + this._showRefresh = false; + this._battleFirstClick = true; + this.m_BoxC = (base.PanelObject.transform.Find("Box").GetComponent("XUISprite") as IXUISprite); + bool isBattleScene = this._isBattleScene; + if (isBattleScene) + { + this.m_Panel.ClipRange = new Vector4(0f, 0f, 300f, 640f); + this.m_CountDown.SetVisible(true); + this._doc.IsPreViewShow = true; + this.m_ShowFrame.SetActive(false); + this.m_Back.SetActive(true); + this.m_BoxC.SetVisible(true); + this.m_HeroBattleTeamHandler = DlgHandlerBase.EnsureCreate(ref this.m_HeroBattleTeamHandler, base.PanelObject.transform.Find("TeamTs"), false, null); + } + else + { + this.SetSkillPreViewState(false, 0); + this.m_BuyBtn.SetVisible(false); + this.m_OKBtn.SetVisible(false); + this.m_CountDown.SetVisible(false); + this.m_Panel.ClipRange = new Vector4(0f, -32f, 300f, 586f); + this.m_Back.SetActive(false); + this.m_BoxC.SetVisible(false); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + this.m_PlayBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPlayBtnClick)); + this.m_OKBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOKBtnClick)); + this.m_BuyBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this.skillPreView == null; + if (flag) + { + this.skillPreView = new RenderTexture(600, 338, 1, 0, 0); + this.skillPreView.name = "SkillPreview"; + this.skillPreView.autoGenerateMips = false; + this.skillPreView.Create(); + } + this.m_Snapshot.SetRuntimeTex(this.skillPreView, true); + this._doc.SetSkillPreviewTexture(this.skillPreView); + this.SetUVRectangle(); + bool flag2 = this._showRefresh && this.LastSelectSprite != null; + if (flag2) + { + this._showRefresh = false; + this.OnTabClick(this.LastSelectSprite); + } + bool flag3 = this.m_HeroBattleTeamHandler != null; + if (flag3) + { + this.m_HeroBattleTeamHandler.SetVisible(true); + } + } + + protected override void OnHide() + { + base.OnHide(); + this._doc.DelDummy(); + bool flag = this._doc.BlackHouseCamera != null; + if (flag) + { + this._doc.BlackHouseCamera.enabled = false; + } + this._doc.SetSkillPreviewTexture(null); + bool flag2 = this._Fx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._Fx, true); + } + bool flag3 = this.skillPreView != null; + if (flag3) + { + this.m_Snapshot.SetRuntimeTex(null, true); + this.skillPreView.Release(); + this.skillPreView = null; + } + bool isBattleScene = this._isBattleScene; + if (isBattleScene) + { + this._showRefresh = true; + } + bool flag4 = this.m_HeroBattleTeamHandler != null; + if (flag4) + { + this.m_HeroBattleTeamHandler.SetVisible(false); + } + } + + public override void OnUnload() + { + this.LastSelectSprite = null; + this._doc.m_HeroBattleSkillHandler = null; + DlgHandlerBase.EnsureUnload(ref this.m_HeroBattleTeamHandler); + this._doc.DelDummy(); + bool flag = this._doc.BlackHouseCamera != null; + if (flag) + { + this._doc.BlackHouseCamera.enabled = false; + } + this._doc.SetSkillPreviewTexture(null); + bool flag2 = this.skillPreView != null; + if (flag2) + { + this.skillPreView.Release(); + this.skillPreView = null; + } + bool flag3 = this._Fx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._Fx, true); + this._Fx = null; + } + base.OnUnload(); + } + + public void SetFx() + { + bool isBattleScene = this._isBattleScene; + if (!isBattleScene) + { + bool flag = this._Fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._Fx, true); + } + this._Fx = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_yh", null, true); + this._Fx.Play(this._FxTs, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + bool isBattleScene = this._isBattleScene; + if (isBattleScene) + { + bool flag = !this._doc.AlSelectHero; + if (flag) + { + return false; + } + base.SetVisible(false); + } + else + { + this.SetSkillPreViewState(false, 0); + } + return true; + } + + private void OnPlayBtnClick(IXUISprite iSp) + { + this.SetPlayBtnState(false); + XSingleton.singleton.ShowSkill(this._doc.Dummy, this._currSkill, this._doc.CurrentEntityStatisticsID[this.HandlerType]); + } + + private bool OnOKBtnClick(IXUIButton btn) + { + this._doc.QuerySelectBattleHero(); + return true; + } + + public bool OnSureUseExperienceTicket(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this._doc.QueryUseExperienceTicket(); + return true; + } + + public void OnExperienceClick(IXUISprite iSp) + { + bool flag = !this._doc.CSSH && this._doc.TAS.Contains((uint)iSp.ID); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("HeroBattleSameHeroTips"), "fece00"); + } + bool flag2 = this._doc.AlreadyGetList.Contains((uint)iSp.ID) || this._doc.WeekFreeList.Contains((uint)iSp.ID) || this._doc.ExperienceList.Contains((uint)iSp.ID); + if (!flag2) + { + uint experienceTicketID = this._heroDoc.GetExperienceTicketID((uint)iSp.ID); + bool flag3 = experienceTicketID > 0u; + if (flag3) + { + HeroBattleExperienceHero.RowData byItemID = this._heroDoc.HeroExperienceReader.GetByItemID(experienceTicketID); + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID((uint)iSp.ID); + bool flag4 = byItemID == null || byHeroID == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("UseExperienceTicket error. itemid = ", experienceTicketID.ToString(), null, null, null, null); + } + else + { + this._doc.CurrentSelectExperienceTicketID = experienceTicketID; + string text = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("HeroBattleExperienceQues")); + text = string.Format(text, byHeroID.Name, byItemID.ShowTime); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(text, @string, string2, new ButtonClickEventHandler(this.OnSureUseExperienceTicket)); + } + } + } + } + + public void OnTabClick(IXUISprite iSp) + { + bool flag = this._isBattleScene && this._battleFirstClick; + if (flag) + { + this._battleFirstClick = false; + this.m_ShowFrame.SetActive(true); + } + bool flag2 = this.LastSelectSprite != null; + GameObject gameObject; + if (flag2) + { + gameObject = this.LastSelectSprite.gameObject.transform.Find("select").gameObject; + gameObject.SetActive(false); + } + this.LastSelectSprite = iSp; + this._doc.CurrentSelect = (uint)iSp.ID; + gameObject = iSp.gameObject.transform.Find("select").gameObject; + gameObject.SetActive(true); + bool isBattleScene = this._isBattleScene; + if (isBattleScene) + { + bool flag3 = this._doc.AlreadyGetList.Contains(this._doc.CurrentSelect) || this._doc.WeekFreeList.Contains(this._doc.CurrentSelect) || this._doc.ExperienceList.Contains(this._doc.CurrentSelect); + if (flag3) + { + this.m_OKBtn.SetVisible(true); + bool flag4 = !this._doc.CSSH && this._doc.TAS.Contains(this._doc.CurrentSelect); + this.m_OKBtn.SetGrey(!flag4); + this.m_BuyBtn.SetVisible(false); + } + else + { + this.m_OKBtn.SetVisible(false); + this.m_BuyBtn.SetVisible(true); + this.SetBuyBtnPrice(this.m_BuyBtn); + } + } + else + { + bool flag5 = this._doc.IsPreViewShow && !this._doc.AlreadyGetList.Contains(this._doc.CurrentSelect); + this.m_BuyBtn.SetVisible(flag5); + bool flag6 = flag5; + if (flag6) + { + this.SetBuyBtnPrice(this.m_BuyBtn); + } + } + bool flag7 = !this._isBattleScene && DlgBase.singleton.IsVisible(); + if (flag7) + { + DlgBase.singleton.RefreshSelectMsg(); + } + bool flag8 = !this._isBattleScene && DlgBase.singleton.IsVisible(); + if (flag8) + { + DlgBase.singleton.RefreshSelectMsg(); + } + bool activeInHierarchy = this.m_ShowFrame.activeInHierarchy; + if (activeInHierarchy) + { + this.SetupPreViewInfo(0); + XSingleton.singleton.SkillShowEnd(this._doc.Dummy); + XSingleton.singleton.SkillShowBegin(this._doc.Dummy, this._doc.BlackHouseCamera); + } + } + + private int Compare(uint x, uint y) + { + bool flag = x == y; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = this._doc.ExperienceList.Contains(x) != this._doc.ExperienceList.Contains(y); + if (flag2) + { + result = (this._doc.ExperienceList.Contains(x) ? -1 : 1); + } + else + { + bool flag3 = this._doc.WeekFreeList.Contains(x) != this._doc.WeekFreeList.Contains(y); + if (flag3) + { + bool flag4 = this._doc.ExperienceList.Contains(x) && this._doc.ExperienceList.Contains(y); + if (flag4) + { + result = (this._doc.WeekFreeList.Contains(x) ? 1 : -1); + } + else + { + result = (this._doc.WeekFreeList.Contains(x) ? -1 : 1); + } + } + else + { + bool flag5 = this._doc.AlreadyGetList.Contains(x) != this._doc.AlreadyGetList.Contains(y); + if (flag5) + { + bool flag6 = this._doc.ExperienceList.Contains(x) && this._doc.ExperienceList.Contains(y); + if (flag6) + { + result = (this._doc.AlreadyGetList.Contains(x) ? 1 : -1); + } + else + { + result = (this._doc.AlreadyGetList.Contains(x) ? -1 : 1); + } + } + else + { + result = this._heroDoc.OverWatchReader.GetByHeroID(x).SortID - this._heroDoc.OverWatchReader.GetByHeroID(y).SortID; + } + } + } + } + return result; + } + + public void SetupTabs() + { + this.LastSelectSprite = null; + this._doc.SetUnSelect(); + this.m_TabPool.ReturnAll(false); + List list = new List(); + for (int i = 0; i < this._heroDoc.OverWatchReader.Table.Length; i++) + { + list.Add(this._heroDoc.OverWatchReader.Table[i].HeroID); + } + list.Sort(new Comparison(this.Compare)); + SpriteClickEventHandler spriteClickEventHandler = new SpriteClickEventHandler(this.OnTabClick); + spriteClickEventHandler = (SpriteClickEventHandler)Delegate.Combine(spriteClickEventHandler, new SpriteClickEventHandler(this.OnExperienceClick)); + Vector3 tplPos = this.m_TabPool.TplPos; + for (int j = 0; j < list.Count; j++) + { + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID(list[j]); + GameObject gameObject = this.m_TabPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)((j & 1) * this.m_TabPool.TplWidth), tplPos.y - (float)(j / 2 * this.m_TabPool.TplHeight)); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)byHeroID.HeroID; + ixuisprite.RegisterSpriteClickEventHandler(spriteClickEventHandler); + IXUISprite ixuisprite2 = gameObject.transform.Find("Bg/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(byHeroID.Icon, byHeroID.IconAtlas, false); + GameObject gameObject2 = gameObject.transform.Find("select").gameObject; + gameObject2.SetActive(false); + this.RefreshSingleTab(byHeroID, gameObject); + bool flag = !this._isBattleScene && this._doc.CurrentSelect == this._doc.UNSELECT; + if (flag) + { + this.OnTabClick(ixuisprite); + } + } + } + + public void RefreshTab() + { + List list = ListPool.Get(); + this.m_TabPool.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = list[i]; + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID((uint)ixuisprite.ID); + this.RefreshSingleTab(byHeroID, gameObject); + } + ListPool.Release(list); + bool flag = this.LastSelectSprite != null; + if (flag) + { + this.OnTabClick(this.LastSelectSprite); + } + } + + private void RefreshSingleTab(OverWatchTable.RowData data, GameObject go) + { + GameObject gameObject = go.transform.Find("Bg/Have").gameObject; + gameObject.SetActive(this._doc.AlreadyGetList.Contains(data.HeroID)); + GameObject gameObject2 = go.transform.Find("Bg/xm").gameObject; + gameObject2.SetActive(this._doc.WeekFreeList.Contains(data.HeroID)); + IXUISprite ixuisprite = go.transform.Find("Bg/Icon").GetComponent("XUISprite") as IXUISprite; + bool flag = this._doc.WeekFreeList.Contains(data.HeroID) || this._doc.AlreadyGetList.Contains(data.HeroID) || this._doc.ExperienceList.Contains(data.HeroID); + bool flag2 = !this._doc.CSSH; + if (flag2) + { + flag = (flag && !this._doc.TAS.Contains(data.HeroID)); + } + ixuisprite.SetGrey(flag); + bool flag3 = !flag; + if (flag3) + { + ixuisprite.SetAlpha(1f); + } + GameObject gameObject3 = go.transform.Find("Bg/Experience").gameObject; + gameObject3.SetActive(!this._doc.AlreadyGetList.Contains(data.HeroID) && !this._doc.WeekFreeList.Contains(data.HeroID) && this._doc.ExperienceList.Contains(data.HeroID)); + GameObject gameObject4 = go.transform.Find("Bg/UseExperience").gameObject; + gameObject4.SetActive(!this._doc.WeekFreeList.Contains(data.HeroID) && !this._doc.AlreadyGetList.Contains(data.HeroID) && !this._doc.ExperienceList.Contains(data.HeroID) && this._heroDoc.GetExperienceTicketID(data.HeroID) > 0u); + GameObject gameObject5 = go.transform.Find("Bg/TeammateChoose").gameObject; + gameObject5.SetActive(this._isBattleScene && !this._doc.CSSH && this._doc.TAS.Contains(data.HeroID)); + } + + private void SetupPreViewInfo(int index = 0) + { + this._doc.ReplaceDummy(this.HandlerType); + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID(this._doc.CurrentSelect); + this.m_HeroName.SetText(byHeroID.Name); + List list = new List(); + uint presentID = XSingleton.singleton.EntityStatistics.GetByID(this._doc.CurrentEntityStatisticsID[this.HandlerType]).PresentID; + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(presentID); + int num = (this.HandlerType == 2) ? 4 : 5; + int num2 = 0; + while (list.Count < num && num2 < byPresentID.OtherSkills.Length) + { + bool flag = string.IsNullOrEmpty(byPresentID.OtherSkills[num2]) || byPresentID.OtherSkills[num2] == "E"; + if (!flag) + { + list.Add(XSingleton.singleton.GetSkillID(byPresentID.OtherSkills[num2], this._doc.CurrentEntityStatisticsID[this.HandlerType])); + } + num2++; + } + this.m_SkillPool.ReturnAll(false); + Vector3 tplPos = this.m_SkillPool.TplPos; + IXUICheckBox ixuicheckBox = null; + for (int i = 0; i < list.Count; i++) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(list[i], 0u, this._doc.CurrentEntityStatisticsID[this.HandlerType]); + GameObject gameObject = this.m_SkillPool.FetchGameObject(false); + gameObject.name = list[i].ToString(); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * this.m_SkillPool.TplHeight)); + IXUISprite ixuisprite = gameObject.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + bool flag2 = skillConfig.SkillType == 2; + if (flag2) + { + ixuisprite.SetSprite("JN_dk_0"); + } + else + { + ixuisprite.SetSprite("JN_dk"); + } + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(skillConfig.Icon, skillConfig.Atlas, false); + IXUICheckBox ixuicheckBox2 = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ID = (ulong)list[i]; + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSkillPreViewClick)); + ixuicheckBox2.bChecked = false; + bool flag3 = i == index; + if (flag3) + { + this._currSkill = list[i]; + ixuicheckBox = ixuicheckBox2; + this.SetupSkillInfo(); + } + } + ixuicheckBox.bChecked = true; + } + + public List SkillInfo() + { + List list = new List(); + uint presentID = XSingleton.singleton.EntityStatistics.GetByID(this._doc.CurrentEntityStatisticsID[this.HandlerType]).PresentID; + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(presentID); + for (int i = 0; i < byPresentID.OtherSkills.Length; i++) + { + bool flag = string.IsNullOrEmpty(byPresentID.OtherSkills[i]) || byPresentID.OtherSkills[i] == "E"; + if (!flag) + { + list.Add(XSingleton.singleton.GetSkillID(byPresentID.OtherSkills[i], this._doc.CurrentEntityStatisticsID[this.HandlerType])); + } + } + return list; + } + + private bool OnSkillPreViewClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this._currSkill = (uint)icb.ID; + this.SetupSkillInfo(); + result = true; + } + return result; + } + + private bool OnBuyBtnClick(IXUIButton btn) + { + this._doc.QueryBuyHero(this._doc.CurrentSelect); + return true; + } + + private void SetupSkillInfo() + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this._currSkill, 0u, this._doc.CurrentEntityStatisticsID[this.HandlerType]); + this.m_SkillName.SetText(skillConfig.ScriptName); + this.m_SkillDesc.SetText(skillConfig.CurrentLevelDescription); + this.SetPlayBtnState(true); + XSingleton.singleton.SkillShowEnd(this._doc.Dummy); + XSingleton.singleton.SkillShowBegin(this._doc.Dummy, this._doc.BlackHouseCamera); + } + + public void SetSkillPreViewState(bool state, int index = 0) + { + this._doc.IsPreViewShow = state; + this.m_ShowFrame.SetActive(state); + bool flag = !this._isBattleScene; + if (flag) + { + this.m_Back.SetActive(state); + } + if (state) + { + this.SetupPreViewInfo(index); + if (state) + { + bool flag2 = this._doc.IsPreViewShow && !this._doc.AlreadyGetList.Contains(this._doc.CurrentSelect); + this.m_BuyBtn.SetVisible(flag2); + bool flag3 = flag2; + if (flag3) + { + this.SetBuyBtnPrice(this.m_BuyBtn); + } + } + } + bool flag4 = !this._isBattleScene && this.OtherViewBuyBtn != null; + if (flag4) + { + bool flag5 = !this._doc.IsPreViewShow && !this._doc.AlreadyGetList.Contains(this._doc.CurrentSelect); + this.OtherViewBuyBtn.SetVisible(flag5); + bool flag6 = flag5; + if (flag6) + { + this.SetBuyBtnPrice(this.OtherViewBuyBtn); + } + } + } + + private void SetBuyBtnPrice(IXUIButton btn) + { + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID(this._doc.CurrentSelect); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)byHeroID.Price[0]); + IXUISprite ixuisprite = btn.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = itemConf.ItemIcon1[0]; + IXUILabel ixuilabel = btn.gameObject.transform.Find("Cost").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(byHeroID.Price[1].ToString()); + } + + public void SetUVRectangle() + { + Rect rect = this._doc.BlackHouseCamera.rect; + rect.y = (rect.y * 338f + 1f) / 338f; + rect.height = (rect.height * 338f - 2f) / 338f; + this.m_Snapshot.SetUVRect(rect); + } + + public void SetPlayBtnState(bool state) + { + this.m_PlayBtn.transform.localPosition = (state ? Vector3.zero : XGameUI.Far_Far_Away); + } + + public void SetCountDown(float time, bool isChooseHero) + { + this.m_CountDownTips.SetText(XStringDefineProxy.GetString(isChooseHero ? "HeroBattleSelectHeroTips" : "HeroBattleChangeHeroTips")); + this._OnCountDown = true; + this._CountDownTime = Time.realtimeSinceStartup + time; + } + + public override void OnUpdate() + { + bool onCountDown = this._OnCountDown; + if (onCountDown) + { + int num = 0; + bool flag = this._CountDownTime < Time.realtimeSinceStartup; + if (flag) + { + this._OnCountDown = false; + } + else + { + num = (int)(this._CountDownTime - Time.realtimeSinceStartup); + } + this.m_CountDown.SetText(num.ToString()); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleSkillHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroBattleSkillHandler.cs.meta new file mode 100644 index 00000000..8c597e16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleSkillHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd8c6d88c0b31744a88713fbe6830b91 +timeCreated: 1611404556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeam.cs b/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeam.cs new file mode 100644 index 00000000..e4f9b5df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeam.cs @@ -0,0 +1,54 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class HeroBattleTeam + { + public uint Score + { + set + { + bool flag = this._score != value; + if (flag) + { + this._score = value; + this.m_Score.SetText(string.Format("{0}%", this._score)); + } + } + } + + public GameObject m_OccupantCircle; + + public IXUIProgress m_Ring; + + public IXUILabel m_Score; + + private uint _score = 0u; + + public HeroBattleTeam(Transform ts) + { + this.m_Ring = (ts.Find("Ring").GetComponent("XUIProgress") as IXUIProgress); + this.m_Ring.value = 0f; + this.m_Score = (ts.Find("Score").GetComponent("XUILabel") as IXUILabel); + this.m_Score.SetText("0%"); + this.m_OccupantCircle = ts.Find("Circle").gameObject; + this.m_OccupantCircle.transform.localPosition = XGameUI.Far_Far_Away; + } + + public void SetOccupyValue(float value) + { + this.m_Ring.value = value; + } + + public void SetOccupantState(bool state) + { + this.m_OccupantCircle.transform.localPosition = (state ? Vector3.zero : XGameUI.Far_Far_Away); + if (state) + { + this.SetOccupyValue(0f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeam.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeam.cs.meta new file mode 100644 index 00000000..b99ec1e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7b4d52460aeb534b8632a104317d730 +timeCreated: 1611404749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeamHandler.cs b/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeamHandler.cs new file mode 100644 index 00000000..10921583 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeamHandler.cs @@ -0,0 +1,144 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HeroBattleTeamHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/HeroBattleTeam"; + } + } + + private XHeroBattleDocument _heroDoc = null; + + private XHeroBattleSkillDocument _skillDoc = null; + + private XMobaBattleDocument _mobaDoc = null; + + private XUIPool m_MemberPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List _teamList = new List(); + + private int _playerNum; + + protected override void Init() + { + base.Init(); + this._heroDoc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this._skillDoc = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + this._mobaDoc = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + this._skillDoc._HeroBattleTeamHandler = this; + Transform transform = base.PanelObject.transform.Find("ScrollView/Tpl"); + this.m_MemberPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID(18); + this._playerNum = expeditionDataByID.PlayerNumber; + Vector3 tplPos = this.m_MemberPool.TplPos; + for (int i = 0; i < this._playerNum; i++) + { + GameObject gameObject = this.m_MemberPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * this.m_MemberPool.TplHeight)); + this._teamList.Add(gameObject); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.Refresh(); + } + + public void Refresh() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag2) + { + bool flag3 = this._mobaDoc.MyData == null; + if (!flag3) + { + int num = 0; + for (int i = 0; i < this._mobaDoc.MobaData.BufferValues.Count; i++) + { + bool flag4 = !this._mobaDoc.MobaData.BufferValues[i].isMy && this._mobaDoc.MobaData.BufferValues[i].teamID == this._mobaDoc.MyData.teamID; + if (flag4) + { + this._teamList[num].SetActive(true); + this.SetMemberSelect(this._teamList[num++], this._mobaDoc.MobaData.BufferValues[i].heroID, this._mobaDoc.MobaData.BufferValues[i].name); + } + } + for (int j = num; j < this._playerNum; j++) + { + this._teamList[j].SetActive(false); + } + } + } + else + { + for (int k = 0; k < this._playerNum; k++) + { + bool flag5 = k >= this._heroDoc.TeamBlood.Count; + if (flag5) + { + this._teamList[k].SetActive(false); + } + else + { + this._teamList[k].SetActive(true); + uint heroID = 0u; + this._heroDoc.heroIDIndex.TryGetValue(this._heroDoc.TeamBlood[k].uid, out heroID); + this.SetMemberSelect(this._teamList[k], heroID, this._heroDoc.TeamBlood[k].name); + } + } + } + } + } + + public void SetMemberSelect(GameObject go, uint heroID, string name) + { + GameObject gameObject = go.transform.Find("Bg/UnSelect").gameObject; + IXUISprite ixuisprite = go.transform.Find("Bg/Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(name); + bool flag = heroID == 0u; + if (flag) + { + gameObject.SetActive(true); + ixuisprite.SetVisible(false); + } + else + { + gameObject.SetActive(false); + ixuisprite.SetVisible(true); + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID(heroID); + ixuisprite.SetSprite(byHeroID.Icon, byHeroID.IconAtlas, false); + } + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this._skillDoc._HeroBattleTeamHandler = null; + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeamHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeamHandler.cs.meta new file mode 100644 index 00000000..52ef25eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroBattleTeamHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 517a54ca71681c14198c17f823e57c93 +timeCreated: 1611403706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroSkillType.cs b/Client/Assets/Scripts/XMainClient/UI/HeroSkillType.cs new file mode 100644 index 00000000..e8b02106 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroSkillType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + public enum HeroSkillType + { + HeroBattle, + WeekNest, + MobaBattle + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HeroSkillType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HeroSkillType.cs.meta new file mode 100644 index 00000000..dbe6fa7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HeroSkillType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc3c6e971d873fe49be9eacb00bdabce +timeCreated: 1611404677 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HolidayHandler.cs b/Client/Assets/Scripts/XMainClient/UI/HolidayHandler.cs new file mode 100644 index 00000000..4fc8f2ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HolidayHandler.cs @@ -0,0 +1,134 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HolidayHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/HolidayFrame"; + } + } + + private XOperatingActivityDocument doc; + + private IXUILabel m_Tip1; + + private IXUILabel m_Tip2; + + private IXUIButton m_Enter; + + private IXUITexture m_Bg; + + private Transform m_AwardRoot; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XLeftTimeCounter m_LeftTime; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + this.m_Tip1 = (base.PanelObject.transform.Find("Main/Tip1").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime = new XLeftTimeCounter(this.m_Tip1, true); + this.m_LeftTime.SetTimeFormat(0, 3, 4, false); + this.m_Tip2 = (base.PanelObject.transform.Find("Main/Tip2").GetComponent("XUILabel") as IXUILabel); + this.m_Enter = (base.PanelObject.transform.Find("Main/Btns/EnterBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Bg = (base.PanelObject.transform.Find("Main/Bg").GetComponent("XUITexture") as IXUITexture); + this.m_AwardRoot = base.PanelObject.transform.Find("Main/Items"); + GameObject gameObject = base.PanelObject.transform.Find("Main/Items/Item").gameObject; + this.m_ItemPool.SetupPool(this.m_AwardRoot.gameObject, gameObject, 7u, false); + } + + protected override void OnShow() + { + base.OnShow(); + this.doc.SendQueryHolidayData(); + this.Refresh(); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_Bg.SetTexturePath(""); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Enter.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterClicked)); + } + + public void Refresh() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.doc.GetFestivalLeftTime() == 0u; + if (flag2) + { + this.m_LeftTime.SetLeftTime(1E+07f, -1); + this.m_LeftTime.SetFormatString(XSingleton.singleton.GetString("HOLIDAY_TIP3")); + } + else + { + this.m_LeftTime.SetLeftTime(this.doc.GetFestivalLeftTime(), -1); + this.m_LeftTime.SetFormatString(XSingleton.singleton.GetString("HOLIDAY_TIP1")); + } + this.m_Tip2.SetText(string.Format(XSingleton.singleton.GetString("HOLIDAY_TIP2"), this.doc.GetFestivalLeftCount())); + this.SetAwardsInfo(); + this.SetBG(); + } + } + + private bool OnEnterClicked(IXUIButton btn) + { + this.doc.EnterHolidayLevel(); + return true; + } + + private void SetBG() + { + string festivalPicPath = this.doc.GetFestivalPicPath(); + bool flag = string.IsNullOrEmpty(festivalPicPath); + if (!flag) + { + this.m_Bg.SetTexturePath(festivalPicPath); + } + } + + private void SetAwardsInfo() + { + this.m_ItemPool.ReturnAll(false); + uint[] festivalRewardList = this.doc.GetFestivalRewardList(); + bool flag = festivalRewardList == null; + if (!flag) + { + for (int i = 0; i < festivalRewardList.Length; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_AwardRoot; + gameObject.name = i.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(this.m_ItemPool.TplWidth * i), 0f, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)festivalRewardList[i]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)festivalRewardList[i], 0, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.m_LeftTime.Update(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HolidayHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HolidayHandler.cs.meta new file mode 100644 index 00000000..46541d83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HolidayHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7eb94380509162640b23be441a76fe98 +timeCreated: 1611404005 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeCropInfoHandler.cs b/Client/Assets/Scripts/XMainClient/UI/HomeCropInfoHandler.cs new file mode 100644 index 00000000..a32af69f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeCropInfoHandler.cs @@ -0,0 +1,767 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HomeCropInfoHandler : DlgHandlerBase + { + private bool m_bIsPlayingAction + { + get + { + return DlgBase.singleton.IsPlayingAction; + } + set + { + DlgBase.singleton.IsPlayingAction = value; + } + } + + protected override string FileName + { + get + { + return "Home/SeedInfo"; + } + } + + private GameObject m_itemGo; + + private GameObject m_operateBtnGo; + + private IXUILabel m_tittleLab; + + private IXUILabel m_cdLab; + + private IXUILabel m_harvestNeedTimeLab; + + private IXUILabel m_statueLab; + + private IXUILabel m_harvestLab; + + private IXUILabel m_growUpLab; + + private IXUILabel m_growUpStateLab; + + private IXUISlider m_growthSlider; + + private List m_homeLogs = new List(); + + private IXUIButton m_harvestBtn; + + private IXUIButton m_stealBtn; + + private IXUIButton m_fertilizerBtn; + + private IXUIButton m_disinsectionBtn; + + private IXUIButton m_wateringBtn; + + private IXUIButton m_cancleBtn; + + private HomePlantDocument m_doc; + + private Farmland m_farmLand; + + private uint m_token; + + private uint m_token1; + + private float m_fCoolTime = 3.5f; + + private float m_fLastClickBtnTime = 0f; + + private float m_harvestActionTime = 2.5f; + + private float m_waterActionTime = 2.5f; + + private readonly string m_waterFxPath = "Effects/FX_Particle/UIfx/UI_jy_ss"; + + private readonly string m_harvestFxPath = "Effects/FX_Particle/UIfx/UI_jy_sh"; + + protected override void Init() + { + this.m_tittleLab = (base.PanelObject.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_cdLab = (base.PanelObject.transform.Find("CD").GetComponent("XUILabel") as IXUILabel); + this.m_cancleBtn = (base.PanelObject.transform.Find("BtnCancelPlant").GetComponent("XUIButton") as IXUIButton); + this.m_cancleBtn.gameObject.SetActive(true); + Transform transform = base.PanelObject.transform.Find("Info"); + this.m_harvestNeedTimeLab = (transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_statueLab = (transform.Find("status").GetComponent("XUILabel") as IXUILabel); + this.m_harvestLab = (transform.Find("harvest").GetComponent("XUILabel") as IXUILabel); + this.m_growUpLab = (transform.Find("GrowUp").GetComponent("XUILabel") as IXUILabel); + this.m_growUpStateLab = (transform.Find("GrowUp/T").GetComponent("XUILabel") as IXUILabel); + this.m_growthSlider = (transform.Find("Bar").GetComponent("XUISlider") as IXUISlider); + transform = transform.Find("Log"); + IXUILabel item = transform.Find("0").GetComponent("XUILabel") as IXUILabel; + this.m_homeLogs.Add(item); + item = (transform.Find("1").GetComponent("XUILabel") as IXUILabel); + this.m_homeLogs.Add(item); + item = (transform.Find("2").GetComponent("XUILabel") as IXUILabel); + this.m_homeLogs.Add(item); + this.m_itemGo = base.PanelObject.transform.Find("Item").gameObject; + this.m_operateBtnGo = base.PanelObject.transform.Find("OperateBtn").gameObject; + this.m_fertilizerBtn = (this.m_operateBtnGo.transform.Find("FertilizerBtn").GetComponent("XUIButton") as IXUIButton); + this.m_disinsectionBtn = (this.m_operateBtnGo.transform.Find("DisinsectionBtn").GetComponent("XUIButton") as IXUIButton); + this.m_wateringBtn = (this.m_operateBtnGo.transform.Find("WateringBtn").GetComponent("XUIButton") as IXUIButton); + this.m_harvestBtn = (base.PanelObject.transform.Find("BtnHarvest").GetComponent("XUIButton") as IXUIButton); + this.m_stealBtn = (base.PanelObject.transform.Find("BtnSteal").GetComponent("XUIButton") as IXUIButton); + this.m_doc = HomePlantDocument.Doc; + base.Init(); + } + + public override void RegisterEvent() + { + this.m_harvestBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickHarvestBtn)); + this.m_stealBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickStealBtn)); + this.m_fertilizerBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickFertilizerBtn)); + this.m_disinsectionBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDisinsectionBtn)); + this.m_wateringBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickWateringBtn)); + this.m_cancleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickCancleBtn)); + base.RegisterEvent(); + } + + protected override void OnShow() + { + this.m_bIsPlayingAction = false; + this.Fillcontent(); + base.OnShow(); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.m_token); + XSingleton.singleton.KillTimer(this.m_token1); + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.PlayStateBack(); + } + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void RefreshUI() + { + this.Fillcontent(); + } + + private void Fillcontent() + { + this.m_cancleBtn.gameObject.SetActive(false); + this.m_farmLand = this.m_doc.GetFarmland(this.m_doc.CurFarmlandId); + bool flag = this.m_farmLand == null || this.m_farmLand.IsFree; + if (flag) + { + XSingleton.singleton.AddErrorLog("data error,the farm is null or Free!", null, null, null, null, null); + } + else + { + switch (this.m_doc.HomeType) + { + case HomeTypeEnum.MyHome: + this.m_cancleBtn.gameObject.SetActive(this.m_farmLand.Stage != GrowStage.Ripe); + break; + case HomeTypeEnum.OtherHome: + this.m_cancleBtn.gameObject.SetActive(false); + break; + case HomeTypeEnum.GuildHome: + { + bool flag2 = XSingleton.singleton.XPlayerData != null && this.m_farmLand.OwnerRoleId == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.m_cancleBtn.gameObject.SetActive(true); + } + else + { + this.m_cancleBtn.gameObject.SetActive(false); + } + break; + } + default: + this.m_cancleBtn.gameObject.SetActive(false); + break; + } + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_itemGo, this.m_farmLand.Row.PlantID[0], 0, false); + IXUISprite ixuisprite = this.m_itemGo.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)this.m_farmLand.Row.PlantID[0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + this.m_tittleLab.SetText(this.m_farmLand.Row.PlantName); + this.m_growUpLab.SetText(string.Format("{0}%", Math.Round((double)(this.m_farmLand.GrowSpeed * 100f)))); + bool flag3 = this.m_farmLand.State > CropState.None; + if (flag3) + { + this.m_growUpStateLab.SetVisible(true); + } + else + { + this.m_growUpStateLab.SetVisible(false); + } + this.m_growthSlider.Value = this.m_farmLand.GrowPercent; + this.m_harvestLab.SetText(this.m_farmLand.Row.PlantID[1].ToString()); + bool flag4 = this.m_farmLand.Stage != GrowStage.Ripe; + if (flag4) + { + this.m_harvestNeedTimeLab.SetVisible(true); + string timeString = this.GetTimeString((ulong)this.m_farmLand.GrowLeftTime(), XStringDefineProxy.GetString("HomeCropRipeNeedTime")); + this.m_harvestNeedTimeLab.SetText(timeString); + } + else + { + this.m_harvestNeedTimeLab.SetVisible(false); + } + this.SetLogInfos(this.m_farmLand); + bool flag5 = this.m_farmLand.State > CropState.None; + if (flag5) + { + this.m_operateBtnGo.SetActive(true); + this.m_harvestBtn.SetVisible(false); + this.m_stealBtn.SetVisible(false); + this.m_cdLab.SetVisible(false); + this.m_statueLab.SetText(XStringDefineProxy.GetString("NeedHelp")); + } + else + { + this.m_operateBtnGo.SetActive(false); + this.m_harvestBtn.SetVisible(false); + this.m_stealBtn.SetVisible(false); + this.m_cdLab.SetVisible(false); + bool flag6 = this.m_farmLand.Stage == GrowStage.Ripe; + if (flag6) + { + bool flag7 = XSingleton.singleton.XPlayerData != null && this.m_farmLand.OwnerRoleId == XSingleton.singleton.XPlayerData.RoleID; + if (flag7) + { + this.m_harvestBtn.SetVisible(true); + } + else + { + this.m_stealBtn.SetVisible(true); + } + this.m_statueLab.SetText(XStringDefineProxy.GetString("HadRipe")); + } + else + { + this.m_cdLab.SetVisible(true); + string timeString2 = this.GetTimeString(this.m_farmLand.StateLeftTime, XStringDefineProxy.GetString("HomeSeedCoolTime")); + this.m_cdLab.SetText(timeString2); + this.m_statueLab.SetText(XStringDefineProxy.GetString("Plant_Growing")); + } + } + XSingleton.singleton.KillTimer(this.m_token); + this.m_token = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(this.QequestInfo), null); + } + } + + private void SetLogInfos(Farmland farm) + { + float num = 0f; + for (int i = 0; i < this.m_homeLogs.Count; i++) + { + bool flag = i >= this.m_farmLand.FarmLogList.Count; + if (flag) + { + this.m_homeLogs[i].SetVisible(false); + } + else + { + this.m_homeLogs[i].SetVisible(true); + this.m_homeLogs[i].SetText(this.m_farmLand.FarmLogList[i].Txt); + this.m_homeLogs[i].gameObject.transform.localPosition = new Vector3(0f, num, 0f); + num -= (float)this.m_homeLogs[i].spriteHeight; + num -= 5f; + } + } + } + + public void QequestInfo(object o = null) + { + XSingleton.singleton.KillTimer(this.m_token); + HomePlantDocument doc = HomePlantDocument.Doc; + doc.FetchPlantInfo(doc.CurFarmlandId); + this.m_token = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(this.QequestInfo), null); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_farmLand == null || this.m_farmLand.IsFree; + if (!flag) + { + bool flag2 = this.m_farmLand.Stage != GrowStage.Ripe; + if (flag2) + { + this.m_harvestNeedTimeLab.SetVisible(true); + string timeString = this.GetTimeString((ulong)this.m_farmLand.GrowLeftTime(), XStringDefineProxy.GetString("HomeCropRipeNeedTime")); + this.m_harvestNeedTimeLab.SetText(timeString); + this.m_growthSlider.Value = this.m_farmLand.GrowPercent; + bool flag3 = this.m_farmLand.State == CropState.None; + if (flag3) + { + this.m_cdLab.SetVisible(true); + timeString = this.GetTimeString(this.m_farmLand.StateLeftTime, XStringDefineProxy.GetString("HomeSeedCoolTime")); + this.m_cdLab.SetText(timeString); + } + } + else + { + this.m_harvestNeedTimeLab.SetVisible(false); + this.m_cdLab.SetVisible(false); + } + } + } + + private string GetTimeString(ulong ti, string str) + { + bool flag = ti < 60UL; + string result; + if (flag) + { + string arg = string.Format("{0}{1}", ti, XStringDefineProxy.GetString("MINUTE_DUARATION")); + result = string.Format(str, arg); + } + else + { + ulong num = ti / 60UL; + ulong num2 = ti % 60UL; + bool flag2 = num2 > 0UL; + string arg; + if (flag2) + { + arg = string.Format("{0}{1}{2}{3}", new object[] + { + num, + XStringDefineProxy.GetString("HOUR_DUARATION"), + num2, + XStringDefineProxy.GetString("MINUTE_DUARATION") + }); + } + else + { + arg = string.Format("{0}{1}", num, XStringDefineProxy.GetString("HOUR_DUARATION")); + } + result = string.Format(str, arg); + } + return result; + } + + private bool OnClickHarvestBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = XSingleton.singleton.XPlayerData == null || this.m_farmLand.OwnerRoleId != XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + result = true; + } + else + { + bool flag3 = this.m_farmLand.Stage != GrowStage.Ripe; + if (flag3) + { + result = true; + } + else + { + bool bIsPlayingAction = this.m_bIsPlayingAction; + if (bIsPlayingAction) + { + result = true; + } + else + { + bool flag4 = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (flag4) + { + result = true; + } + else + { + bool flag5 = this.m_doc.HomeType == HomeTypeEnum.GuildHome; + if (flag5) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GuildHomeHarvestTips"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.PlayHarvestAction)); + } + else + { + this.PlayHarvestAction(); + } + result = true; + } + } + } + } + } + return result; + } + + private bool PlayHarvestAction(IXUIButton btn) + { + this.PlayHarvestAction(); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void PlayHarvestAction() + { + bool flag = XSingleton.singleton.Player == null; + if (flag) + { + this.m_bIsPlayingAction = false; + } + else + { + XSingleton.singleton.Player.PlaySpecifiedAnimation(this.m_doc.GetHomePlantAction(ActionType.Harvest)); + XSingleton.singleton.KillTimer(this.m_token1); + this.m_token1 = XSingleton.singleton.SetTimer(this.m_harvestActionTime, new XTimerMgr.ElapsedEventHandler(this.QequestHarvest), null); + XSingleton.singleton.CreateAndPlay(this.m_harvestFxPath, XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, false, this.m_harvestActionTime, true); + XSingleton.singleton.PlayUISound("Audio/UI/Farm_PlantLV1", true, AudioChannel.Action); + this.m_bIsPlayingAction = true; + } + } + + private bool OnClickStealBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_farmLand.OwnerRoleId == 0UL || (XSingleton.singleton.XPlayerData != null && this.m_farmLand.OwnerRoleId == XSingleton.singleton.XPlayerData.RoleID); + if (flag2) + { + result = true; + } + else + { + bool flag3 = this.m_farmLand.Stage != GrowStage.Ripe; + if (flag3) + { + result = true; + } + else + { + bool flag4 = XSingleton.singleton.Player == null; + if (flag4) + { + result = true; + } + else + { + int num = this.m_farmLand.CanSteal(); + bool flag5 = num == 1; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CannotStealed1"), "fece00"); + result = true; + } + else + { + bool flag6 = num == 2; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CannotStealed2"), "fece00"); + result = true; + } + else + { + bool flag7 = XSingleton.singleton.Player == null; + if (flag7) + { + result = true; + } + else + { + bool flag8 = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (flag8) + { + result = true; + } + else + { + bool bIsPlayingAction = this.m_bIsPlayingAction; + if (bIsPlayingAction) + { + result = true; + } + else + { + this.m_bIsPlayingAction = true; + XSingleton.singleton.Player.PlaySpecifiedAnimation(this.m_doc.GetHomePlantAction(ActionType.Harvest)); + XSingleton.singleton.KillTimer(this.m_token1); + this.m_token1 = XSingleton.singleton.SetTimer(this.m_harvestActionTime, new XTimerMgr.ElapsedEventHandler(this.QequestSteal), null); + XSingleton.singleton.CreateAndPlay(this.m_harvestFxPath, XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, false, this.m_harvestActionTime, true); + XSingleton.singleton.PlayUISound("Audio/UI/Farm_PlantLV1", true, AudioChannel.Action); + result = true; + } + } + } + } + } + } + } + } + } + return result; + } + + private bool OnClickFertilizerBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_farmLand.State == CropState.None; + if (flag2) + { + result = true; + } + else + { + bool flag3 = XSingleton.singleton.Player == null; + if (flag3) + { + result = true; + } + else + { + bool flag4 = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (flag4) + { + result = true; + } + else + { + bool bIsPlayingAction = this.m_bIsPlayingAction; + if (bIsPlayingAction) + { + result = true; + } + else + { + this.m_bIsPlayingAction = true; + XSingleton.singleton.KillTimer(this.m_token1); + this.m_token1 = XSingleton.singleton.SetTimer(this.m_waterActionTime, new XTimerMgr.ElapsedEventHandler(this.QequestPlantCultivation), CropState.Fertilizer); + XSingleton.singleton.Player.PlaySpecifiedAnimation(this.m_doc.GetHomePlantAction(ActionType.Fertilizer)); + XSingleton.singleton.CreateAndPlay(HomePlantDocument.PlantEffectPath, XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, false, this.m_waterActionTime, true); + XSingleton.singleton.PlayUISound("Audio/UI/Farm_Planting", true, AudioChannel.Action); + result = true; + } + } + } + } + } + return result; + } + + private bool OnClickDisinsectionBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_farmLand.State == CropState.None; + if (flag2) + { + result = true; + } + else + { + bool flag3 = XSingleton.singleton.Player == null; + if (flag3) + { + result = true; + } + else + { + bool flag4 = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (flag4) + { + result = true; + } + else + { + bool bIsPlayingAction = this.m_bIsPlayingAction; + if (bIsPlayingAction) + { + result = true; + } + else + { + this.m_bIsPlayingAction = true; + XSingleton.singleton.KillTimer(this.m_token1); + this.m_token1 = XSingleton.singleton.SetTimer(this.m_waterActionTime, new XTimerMgr.ElapsedEventHandler(this.QequestPlantCultivation), CropState.Disinsection); + XSingleton.singleton.Player.PlaySpecifiedAnimation(this.m_doc.GetHomePlantAction(ActionType.Disinsection)); + XSingleton.singleton.CreateAndPlay(HomePlantDocument.PlantEffectPath, XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, false, this.m_waterActionTime, true); + XSingleton.singleton.PlayUISound("Audio/UI/Farm_Planting", true, AudioChannel.Action); + result = true; + } + } + } + } + } + return result; + } + + private bool OnClickWateringBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_farmLand.State == CropState.None; + if (flag2) + { + result = true; + } + else + { + bool flag3 = XSingleton.singleton.Player == null; + if (flag3) + { + result = true; + } + else + { + bool flag4 = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (flag4) + { + result = true; + } + else + { + bool bIsPlayingAction = this.m_bIsPlayingAction; + if (bIsPlayingAction) + { + result = true; + } + else + { + this.m_bIsPlayingAction = true; + XSingleton.singleton.KillTimer(this.m_token1); + this.m_token1 = XSingleton.singleton.SetTimer(this.m_waterActionTime, new XTimerMgr.ElapsedEventHandler(this.QequestPlantCultivation), CropState.Watering); + XSingleton.singleton.Player.PlaySpecifiedAnimation(this.m_doc.GetHomePlantAction(ActionType.Watering)); + XSingleton.singleton.CreateAndPlay(this.m_waterFxPath, XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, false, this.m_waterActionTime, true); + XSingleton.singleton.PlayUISound("Audio/UI/Farm_Sprayingwater", true, AudioChannel.Action); + result = true; + } + } + } + } + } + return result; + } + + private bool OnClickCancleBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.m_farmLand == null; + if (flag2) + { + result = true; + } + else + { + this.m_doc.StartPlant(this.m_farmLand.FarmlandID, this.m_farmLand.SeedId, true); + result = true; + } + } + return result; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + + public void QequestHarvest(object o = null) + { + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.PlayStateBack(); + } + this.m_doc.PlantHarvest(this.m_farmLand.FarmlandID); + this.m_bIsPlayingAction = false; + } + + public void QequestSteal(object o = null) + { + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.PlayStateBack(); + } + this.m_doc.HomeSteal(this.m_farmLand.FarmlandID); + this.m_bIsPlayingAction = false; + } + + public void QequestPlantCultivation(object o = null) + { + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.PlayStateBack(); + } + bool flag2 = o != null; + if (flag2) + { + this.m_doc.PlantCultivation(this.m_farmLand.FarmlandID, this.m_doc.GrowStateTrans((CropState)o)); + } + this.m_bIsPlayingAction = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeCropInfoHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomeCropInfoHandler.cs.meta new file mode 100644 index 00000000..e3c3feb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeCropInfoHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b899c6ba2a482244a0712e59491f37c +timeCreated: 1611403316 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeFishingBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/HomeFishingBehaviour.cs new file mode 100644 index 00000000..1cfa1151 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeFishingBehaviour.cs @@ -0,0 +1,99 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HomeFishingBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public GameObject m_InFishingFrame; + + public GameObject m_NotFishingFrame; + + public IXUIButton m_StartFishingBtn; + + public IXUIButton m_SweepBtn; + + public IXUIButton m_FishLevelBtn; + + public IXUILabel m_FishLevelNum; + + public IXUIProgress m_FishExpValue; + + public IXUILabel m_StoshNum; + + public IXUIButton m_HomeMainBtn; + + public IXUIButton m_HomeShopBtn; + + public IXUIButton m_HomeCookingBtn; + + public GameObject m_FishingTips; + + public GameObject m_NoFishTips; + + public GameObject m_NoStosh; + + public GameObject m_HighQualityFx; + + public GameObject m_LowQualityFx; + + public IXUIScrollView m_ItemScrollView; + + public XUIPool m_FishPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_FishLevelFrame; + + public IXUILabel m_LevelFrameLevel; + + public IXUILabel m_LevelFrameExp; + + public IXUIProgress m_LevelFrameExpBar; + + public IXUIScrollView m_FishLevelScrollView; + + public IXUIButton m_LevelFrameCloseBtn; + + public XUIPool m_FishLevelPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_LevelItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/InFishingFrame/Close").GetComponent("XUIButton") as IXUIButton); + this.m_InFishingFrame = base.transform.Find("Bg/InFishingFrame").gameObject; + this.m_NotFishingFrame = base.transform.Find("Bg/NotFishingFrame").gameObject; + this.m_StartFishingBtn = (this.m_NotFishingFrame.transform.Find("StartFishingBtn").GetComponent("XUIButton") as IXUIButton); + this.m_SweepBtn = (this.m_NotFishingFrame.transform.Find("SweepBtn").GetComponent("XUIButton") as IXUIButton); + this.m_FishLevelBtn = (this.m_InFishingFrame.transform.Find("Level").GetComponent("XUIButton") as IXUIButton); + this.m_FishLevelNum = (this.m_FishLevelBtn.gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.m_FishExpValue = (this.m_InFishingFrame.transform.Find("Exp").GetComponent("XUIProgress") as IXUIProgress); + this.m_StoshNum = (this.m_InFishingFrame.transform.Find("Stosh/Num").GetComponent("XUILabel") as IXUILabel); + this.m_HomeMainBtn = (this.m_InFishingFrame.transform.Find("HomeMainBtn").GetComponent("XUIButton") as IXUIButton); + this.m_HomeShopBtn = (this.m_InFishingFrame.transform.Find("HomeShopBtn").GetComponent("XUIButton") as IXUIButton); + this.m_HomeCookingBtn = (this.m_InFishingFrame.transform.Find("HomeCookingBtn").GetComponent("XUIButton") as IXUIButton); + this.m_FishingTips = this.m_InFishingFrame.transform.Find("Auto").gameObject; + this.m_NoFishTips = this.m_InFishingFrame.transform.Find("Items/Tips").gameObject; + this.m_NoStosh = this.m_InFishingFrame.transform.Find("Stosh/red").gameObject; + this.m_HighQualityFx = this.m_InFishingFrame.transform.Find("Items/UI_jy_dy_pzkL").gameObject; + this.m_LowQualityFx = this.m_InFishingFrame.transform.Find("Items/UI_jy_dy_pzk").gameObject; + this.m_ItemScrollView = (this.m_InFishingFrame.transform.Find("Items/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = this.m_InFishingFrame.transform.Find("Items/ScrollView/Tpl"); + this.m_FishPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_FishLevelFrame = base.transform.Find("Bg/InFishingFrame/FishingLevelFrame").gameObject; + this.m_LevelFrameCloseBtn = (this.m_FishLevelFrame.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_LevelFrameLevel = (this.m_FishLevelFrame.transform.Find("Info/Level").GetComponent("XUILabel") as IXUILabel); + this.m_LevelFrameExp = (this.m_FishLevelFrame.transform.Find("Info/Exp").GetComponent("XUILabel") as IXUILabel); + this.m_LevelFrameExpBar = (this.m_FishLevelFrame.transform.Find("Info/Bar").GetComponent("XUIProgress") as IXUIProgress); + this.m_FishLevelScrollView = (this.m_FishLevelFrame.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + transform = this.m_FishLevelFrame.transform.Find("ScrollView/Tpl"); + this.m_FishLevelPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + transform = this.m_FishLevelFrame.transform.Find("ScrollView/Item"); + this.m_LevelItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeFishingBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomeFishingBehaviour.cs.meta new file mode 100644 index 00000000..47a829d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeFishingBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecb0ef76fded6164ea9cc4def51c2415 +timeCreated: 1611404788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeFishingDlg.cs b/Client/Assets/Scripts/XMainClient/UI/HomeFishingDlg.cs new file mode 100644 index 00000000..40642b5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeFishingDlg.cs @@ -0,0 +1,445 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HomeFishingDlg : DlgBase + { + public override string fileName + { + get + { + return "Home/FishingDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XHomeFishingDocument _doc = null; + + private XCharacterItemDocument _itemDoc = null; + + private XSweepDocument _sweepDoc = null; + + private XWelfareDocument _welfareDoc = null; + + public XYuyinView _yuyinHandler; + + private uint _timeToken; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XHomeFishingDocument.uuID); + this._itemDoc = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + this._sweepDoc = XDocuments.GetSpecificDocument(XSweepDocument.uuID); + this._welfareDoc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + base.uiBehaviour.m_FishLevelFrame.SetActive(false); + base.uiBehaviour.m_HighQualityFx.SetActive(false); + base.uiBehaviour.m_LowQualityFx.SetActive(false); + } + + protected override void OnLoad() + { + DlgHandlerBase.EnsureCreate(ref this._yuyinHandler, base.uiBehaviour.transform, true, this); + this._yuyinHandler.SetVisible(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_StartFishingBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartFishingBtnClick)); + base.uiBehaviour.m_SweepBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSweepButtonClicked)); + base.uiBehaviour.m_HomeMainBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHomeMainBtnClick)); + base.uiBehaviour.m_HomeShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHomeShopBtnClick)); + base.uiBehaviour.m_HomeCookingBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHomeCookingBtnClick)); + base.uiBehaviour.m_FishLevelBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFishLevelBtnClick)); + base.uiBehaviour.m_LevelFrameCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFishLevelFrameCloseBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_FishingTips.SetActive(false); + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Show(YuyinIconType.HOME, 2); + this._yuyinHandler.Refresh(YuyinIconType.HOME); + } + } + + protected override void OnHide() + { + bool isFishing = this._doc.IsFishing; + if (isFishing) + { + this._doc.LeaveFishing(); + XSingleton.singleton.Freezed = false; + } + this._itemDoc.ToggleBlock(false); + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + XSingleton.singleton.KillTimer(this._timeToken); + base.uiBehaviour.m_HighQualityFx.SetActive(false); + base.uiBehaviour.m_LowQualityFx.SetActive(false); + base.OnHide(); + } + + protected override void OnUnload() + { + bool isFishing = this._doc.IsFishing; + if (isFishing) + { + this._doc.LeaveFishing(); + } + XSingleton.singleton.Freezed = false; + this._itemDoc.ToggleBlock(false); + XSingleton.singleton.KillTimer(this._timeToken); + DlgHandlerBase.EnsureUnload(ref this._yuyinHandler); + base.OnUnload(); + } + + public void Refresh(bool showFishResult = false) + { + this._itemDoc.ToggleBlock(false); + bool flag = showFishResult && !this._doc.LastFishingHasFish; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("HomeFishingFail"), "fece00"); + } + bool lastLevelUp = this._doc.LastLevelUp; + if (lastLevelUp) + { + XSingleton.singleton.CreateAndPlay(XHomeFishingDocument.LEVELUPFX, XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, false, 2f, true); + this._doc.LastLevelUp = false; + } + base.uiBehaviour.m_FishLevelNum.SetText(this._doc.FishingLevel.ToString()); + GardenFishConfig.RowData byFishLeve = this._doc._HomeFishTable.GetByFishLeve(this._doc.FishingLevel); + base.uiBehaviour.m_FishExpValue.value = ((byFishLeve.Experience == 0u) ? 1f : (this._doc.CurrentExp * 1f / byFishLeve.Experience)); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XHomeFishingDocument.stoshID); + base.uiBehaviour.m_StoshNum.SetText(itemCount.ToString()); + base.uiBehaviour.m_NoStosh.SetActive(itemCount == 0UL); + base.uiBehaviour.m_NoFishTips.SetActive(this._doc.FishList.Count == 0); + base.uiBehaviour.m_ItemScrollView.SetPosition(0f); + base.uiBehaviour.m_FishPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_FishPool.TplPos; + for (int i = this._doc.FishList.Count - 1; i >= 0; i--) + { + GameObject gameObject = base.uiBehaviour.m_FishPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)((this._doc.FishList.Count - 1 - i) * base.uiBehaviour.m_FishPool.TplWidth), tplPos.y); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.FishList[i].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf, (int)this._doc.FishList[i].itemCount, true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this._doc.FishList[i].itemID; + bool flag2 = !itemConf.CanTrade; + if (flag2) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + bool activeInHierarchy = base.uiBehaviour.m_FishLevelFrame.activeInHierarchy; + if (activeInHierarchy) + { + base.uiBehaviour.m_LevelFrameLevel.SetText(this._doc.FishingLevel.ToString()); + bool flag3 = byFishLeve.Experience == 0u; + if (flag3) + { + base.uiBehaviour.m_LevelFrameExp.SetText(XStringDefineProxy.GetString("FishingLevelMax")); + base.uiBehaviour.m_LevelFrameExpBar.value = 1f; + } + else + { + base.uiBehaviour.m_LevelFrameExp.SetText(string.Format("{0}/{1}", this._doc.CurrentExp, byFishLeve.Experience)); + base.uiBehaviour.m_LevelFrameExpBar.value = this._doc.CurrentExp * 1f / byFishLeve.Experience; + } + } + } + + private void ShowFishLevelFrame() + { + uint fishingLevel = this._doc.FishingLevel; + int num = this._doc._HomeFishTable.Table.Length; + uint num2 = 0u; + base.uiBehaviour.m_FishLevelFrame.SetActive(true); + base.uiBehaviour.m_LevelFrameLevel.SetText(this._doc.FishingLevel.ToString()); + base.uiBehaviour.m_FishLevelPool.ReturnAll(false); + base.uiBehaviour.m_LevelItemPool.ReturnAll(false); + List list = new List(); + HashSet hashSet = new HashSet(); + for (int i = 0; i < this._doc.FishInfoTable.Table.Length; i++) + { + bool flag = !this._doc.FishInfoTable.Table[i].ShowInLevel; + if (flag) + { + hashSet.Add((int)this._doc.FishInfoTable.Table[i].FishID); + } + } + IXUIPanel ixuipanel = base.uiBehaviour.m_FishLevelPool._tpl.transform.parent.GetComponent("XUIPanel") as IXUIPanel; + int num3 = (int)(fishingLevel - 1u); + int num4 = num3; + bool flag2 = false; + bool flag3 = (float)(base.uiBehaviour.m_FishLevelPool.TplHeight * (num - num3)) < ixuipanel.ClipRange.w; + if (flag3) + { + num4 = 0; + flag2 = true; + } + Vector3 tplPos = base.uiBehaviour.m_FishLevelPool.TplPos; + Vector3 tplPos2 = base.uiBehaviour.m_LevelItemPool.TplPos; + for (int j = 0; j < num; j++) + { + GardenFishConfig.RowData rowData = this._doc._HomeFishTable.Table[j]; + GameObject gameObject = base.uiBehaviour.m_FishLevelPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0}{1}", rowData.FishLeve, XStringDefineProxy.GetString("LevelName"))); + IXUILabel ixuilabel2 = gameObject.transform.Find("Rate").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format("{0}%", rowData.SuccessRate)); + IXUILabel ixuilabel3 = gameObject.transform.Find("Exp").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(num2.ToString()); + num2 = rowData.Experience; + bool flag4 = j == num3; + if (flag4) + { + base.uiBehaviour.m_LevelFrameExp.SetText(string.Format("{0}/{1}", this._doc.CurrentExp, num2)); + base.uiBehaviour.m_LevelFrameExpBar.value = this._doc.CurrentExp * 1f / num2; + } + int num5 = 0; + for (int k = 0; k < rowData.FishWeight.Count; k++) + { + bool flag5 = !hashSet.Contains(rowData.FishWeight[k, 0]); + if (flag5) + { + hashSet.Add(rowData.FishWeight[k, 0]); + GameObject gameObject2 = base.uiBehaviour.m_LevelItemPool.FetchGameObject(false); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3(tplPos2.x + (float)(num5 * base.uiBehaviour.m_LevelItemPool.TplWidth), 0f); + ItemList.RowData itemConf = XBagDocument.GetItemConf(rowData.FishWeight[k, 0]); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, itemConf, 0, false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject2, rowData.FishWeight[k, 0]); + num5++; + } + } + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(base.uiBehaviour.m_FishLevelPool.TplHeight * (j - num4)), 0f); + bool flag6 = !flag2 && j < num3; + if (flag6) + { + gameObject.SetActive(false); + list.Add(gameObject); + } + } + base.uiBehaviour.m_FishLevelScrollView.ResetPosition(); + bool flag7 = flag2; + if (flag7) + { + base.uiBehaviour.m_FishLevelScrollView.SetPosition(1f); + } + else + { + for (int l = 0; l < list.Count; l++) + { + list[l].SetActive(true); + } + } + } + + private bool OnFishLevelBtnClick(IXUIButton btn) + { + this.ShowFishLevelFrame(); + return true; + } + + private bool OnFishLevelFrameCloseBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_FishLevelFrame.SetActive(false); + return true; + } + + private bool OnSweepButtonClicked(IXUIButton button) + { + bool flag = DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + if (flag) + { + bool flag2 = XBagDocument.BagDoc.GetItemCount(XHomeFishingDocument.stoshID) == 0UL; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FishingStoshLess"), "fece00"); + return true; + } + bool flag3 = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (flag3) + { + return true; + } + bool flag4 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetVisible(false, true); + } + this._doc.isSweep = true; + this._yuyinHandler.SetVisible(true); + this._doc.SendLevelExpQuery(); + this._doc.FishList.Clear(); + base.uiBehaviour.m_NoFishTips.SetActive(true); + this.Refresh(false); + base.uiBehaviour.m_InFishingFrame.SetActive(true); + base.uiBehaviour.m_NotFishingFrame.SetActive(false); + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetForceShow(true); + XSingleton.singleton.Freezed = true; + this._doc.StartFishing(); + } + return true; + } + + private bool OnStartFishingBtnClick(IXUIButton btn) + { + bool flag = XBagDocument.BagDoc.GetItemCount(XHomeFishingDocument.stoshID) == 0UL; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FishingStoshLess"), "fece00"); + result = true; + } + else + { + bool flag2 = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (flag2) + { + result = true; + } + else + { + bool flag3 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + } + this._doc.isSweep = false; + this._yuyinHandler.SetVisible(true); + this._doc.SendLevelExpQuery(); + this._doc.FishList.Clear(); + base.uiBehaviour.m_NoFishTips.SetActive(true); + this.Refresh(false); + base.uiBehaviour.m_InFishingFrame.SetActive(true); + base.uiBehaviour.m_NotFishingFrame.SetActive(false); + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetForceShow(true); + XSingleton.singleton.Freezed = true; + this._doc.StartFishing(); + result = true; + } + } + return result; + } + + private bool OnHomeMainBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Home); + return true; + } + + private bool OnHomeCookingBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Home_Cooking); + return true; + } + + public bool OnCloseBtnClick(IXUIButton btn) + { + this._yuyinHandler.SetVisible(false); + this._doc.LeaveFishing(); + DlgBase.singleton.SetForceShow(false); + DlgBase.singleton.SetFakeHide(false); + XSingleton.singleton.KillTimer(this._timeToken); + base.uiBehaviour.m_InFishingFrame.SetActive(false); + base.uiBehaviour.m_HighQualityFx.SetActive(false); + base.uiBehaviour.m_LowQualityFx.SetActive(false); + base.uiBehaviour.m_NotFishingFrame.SetActive(true); + DlgBase.singleton.SetVisible(true, true); + XSingleton.singleton.Freezed = false; + this._itemDoc.ToggleBlock(false); + bool flag = this._doc.FishList.Count != 0; + if (flag) + { + DlgBase.singleton.ShowByTitle(this._doc.FishList, XStringDefineProxy.GetString("FishRewardTitle"), null); + } + return true; + } + + public void SetFishingTipsState(bool state) + { + base.uiBehaviour.m_FishingTips.SetActive(state); + } + + private bool OnHomeShopBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Home, 0UL); + return true; + } + + public void SetUIState(bool state) + { + if (state) + { + this.SetVisibleWithAnimation(true, null); + base.uiBehaviour.m_InFishingFrame.SetActive(false); + base.uiBehaviour.m_NotFishingFrame.SetActive(true); + } + else + { + this.SetVisible(false, true); + } + } + + public void PlayGetFishFx(bool high) + { + base.uiBehaviour.m_HighQualityFx.SetActive(false); + base.uiBehaviour.m_LowQualityFx.SetActive(false); + if (high) + { + base.uiBehaviour.m_HighQualityFx.SetActive(true); + } + else + { + base.uiBehaviour.m_LowQualityFx.SetActive(true); + } + } + + public void DelayShowFish() + { + this._timeToken = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.ShowGetFish), null); + } + + private void ShowGetFish(object o = null) + { + this.Refresh(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeFishingDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomeFishingDlg.cs.meta new file mode 100644 index 00000000..f2f6a5e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeFishingDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98fa3519d58df6540919ffd421fffd1f +timeCreated: 1611404193 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeFriendHandler.cs b/Client/Assets/Scripts/XMainClient/UI/HomeFriendHandler.cs new file mode 100644 index 00000000..42ec5cac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeFriendHandler.cs @@ -0,0 +1,245 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HomeFriendHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Home/HomeFriendHandler"; + } + } + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIWrapContent m_wrapContent; + + private GameObject m_noFriendsGo; + + private IXUIButton m_AddFriendsBtn; + + private GameObject m_hadFriendsGo; + + private HomeMainDocument m_doc; + + private IXUIScrollView m_scrollView; + + protected override void Init() + { + this.m_wrapContent = (base.PanelObject.transform.Find("Panel/ItemsWrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + this.m_noFriendsGo = base.PanelObject.transform.Find("NoFriends").gameObject; + this.m_AddFriendsBtn = (this.m_noFriendsGo.transform.Find("Add").GetComponent("XUIButton") as IXUIButton); + this.m_hadFriendsGo = base.PanelObject.transform.Find("Panel").gameObject; + this.m_scrollView = (this.m_hadFriendsGo.transform.GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = base.PanelObject.transform.Find("Item"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 1u, false); + this.m_doc = HomeMainDocument.Doc; + this.m_doc.HomeFriend = this; + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_AddFriendsBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddFriendsBtnClick)); + } + + protected override void OnShow() + { + this.m_doc.ReqPlantFriendList(); + base.OnShow(); + } + + protected override void OnHide() + { + this.m_ItemPool.ReturnAll(false); + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void RefreshUi() + { + this.FillContent(); + } + + private void FillContent() + { + bool flag = this.m_doc.PlantFriendList == null || this.m_doc.PlantFriendList.Count == 0; + if (flag) + { + this.m_noFriendsGo.SetActive(true); + this.m_hadFriendsGo.SetActive(false); + } + else + { + this.m_ItemPool.ReturnAll(false); + this.m_noFriendsGo.SetActive(false); + this.m_hadFriendsGo.SetActive(true); + this.m_wrapContent.SetContentCount(this.m_doc.PlantFriendList.Count, false); + } + bool flag2 = this.m_scrollView != null; + if (flag2) + { + this.m_scrollView.ResetPosition(); + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.m_doc.PlantFriendList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("no data", null, null, null, null, null); + } + else + { + bool flag2 = index >= this.m_doc.PlantFriendList.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("index >= m_doc.PlantFriendList.Count", null, null, null, null, null); + } + else + { + FriendPlantLog friendPlantLog = this.m_doc.PlantFriendList[index]; + Transform transform = t.Find("Info"); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)friendPlantLog.profession_id)); + IXUILabel ixuilabel = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(friendPlantLog.role_name); + IXUIButton ixuibutton = t.Find("VisitBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnVisitClicked)); + transform = t.Find("Status"); + for (int i = 0; i < transform.childCount; i++) + { + GameObject gameObject = transform.GetChild(i).gameObject; + this.m_ItemPool.ReturnInstance(gameObject, false); + } + int num = 0; + bool mature = friendPlantLog.mature; + if (mature) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = transform; + gameObject.transform.localPosition = new Vector3((float)(num * this.m_ItemPool.TplWidth), 0f, 0f); + ixuisprite = (gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetSprite("HomeView_2"); + ixuisprite.ID = 0UL; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickStateIcon)); + num++; + } + bool abnormal_state = friendPlantLog.abnormal_state; + if (abnormal_state) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = transform; + gameObject.transform.localPosition = new Vector3((float)(-(float)num * this.m_ItemPool.TplWidth), 0f, 0f); + ixuisprite = (gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetSprite("HomeView_0"); + ixuisprite.ID = 1UL; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickStateIcon)); + num++; + } + bool exist_sprite = friendPlantLog.exist_sprite; + if (exist_sprite) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = transform; + gameObject.transform.localPosition = new Vector3((float)(-(float)num * this.m_ItemPool.TplWidth), 0f, 0f); + ixuisprite = (gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.SetSprite("HomeView_1"); + ixuisprite.ID = 2UL; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickStateIcon)); + num++; + } + bool flag3 = num == 0; + if (flag3) + { + t.Find("No").gameObject.SetActive(true); + } + else + { + t.Find("No").gameObject.SetActive(false); + } + } + } + } + + private bool OnVisitClicked(IXUIButton sp) + { + bool flag = (int)sp.ID >= this.m_doc.PlantFriendList.Count; + bool result; + if (flag) + { + result = false; + } + else + { + FriendPlantLog friendPlantLog = this.m_doc.PlantFriendList[(int)sp.ID]; + bool flag2 = friendPlantLog == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("not find data", null, null, null, null, null); + result = true; + } + else + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag3 = sceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag3) + { + ulong gardenId = HomePlantDocument.Doc.GardenId; + bool flag4 = gardenId == friendPlantLog.role_id; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("EnterOtherHomeAgainTips"), friendPlantLog.role_name), "fece00"); + return true; + } + } + this.m_doc.ReqEnterHomeScene(friendPlantLog.role_id, friendPlantLog.role_name); + result = true; + } + } + return result; + } + + private void ClickStateIcon(IXUISprite spr) + { + ulong id = spr.ID; + ulong num = id; + if (num <= 2UL) + { + switch ((uint)num) + { + case 0u: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CanStealTips"), "fece00"); + break; + case 1u: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CanHelpFriend"), "fece00"); + break; + case 2u: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DriveTroubleMaker"), "fece00"); + break; + } + } + } + + private bool OnAddFriendsBtnClick(IXUIButton btn) + { + DlgBase.singleton.RandomFriend(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeFriendHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomeFriendHandler.cs.meta new file mode 100644 index 00000000..0a036458 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeFriendHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35b4c2a71ef5ef04c900fa39f83ff4a5 +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/HomeHandler.cs new file mode 100644 index 00000000..1b3ebcf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeHandler.cs @@ -0,0 +1,171 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HomeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Home/HomeHandler"; + } + } + + private GameObject m_redDotGo; + + private IXUIButton m_exitHomeBtn; + + private IXUIButton m_plantingBtn; + + private IXUIButton m_fishingBtn; + + private IXUIButton m_3dBtn; + + private IXUIButton m_25dBtn; + + private IXUILabel m_nameLab; + + private Vector3 m_plantPos = Vector3.zero; + + private Vector3 m_fishingPos = Vector3.zero; + + private XSwitchSight m_SwitchSight; + + protected override void Init() + { + this.m_exitHomeBtn = (base.PanelObject.transform.Find("ExitHome").GetComponent("XUIButton") as IXUIButton); + this.m_plantingBtn = (base.PanelObject.transform.Find("Planting").GetComponent("XUIButton") as IXUIButton); + this.m_fishingBtn = (base.PanelObject.transform.Find("Fishing").GetComponent("XUIButton") as IXUIButton); + this.m_3dBtn = (base.PanelObject.transform.Find("3d2.5d/3d").GetComponent("XUIButton") as IXUIButton); + this.m_25dBtn = (base.PanelObject.transform.Find("3d2.5d/2.5d").GetComponent("XUIButton") as IXUIButton); + this.m_nameLab = (base.PanelObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_redDotGo = base.PanelObject.transform.Find("Planting/RedPoint").gameObject; + List floatList = XSingleton.singleton.GetFloatList("PlantPosition"); + bool flag = floatList.Count >= 3; + if (flag) + { + this.m_plantPos = new Vector3(floatList[0], floatList[1], floatList[2]); + } + floatList = XSingleton.singleton.GetFloatList("FishingPosition"); + bool flag2 = floatList.Count >= 3; + if (flag2) + { + this.m_fishingPos = new Vector3(floatList[0], floatList[1], floatList[2]); + } + base.Init(); + } + + public override void RegisterEvent() + { + this.m_exitHomeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickExitHome)); + this.m_plantingBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickPlanting)); + this.m_fishingBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickFishing)); + this.m_SwitchSight = new XSwitchSight(new ButtonClickEventHandler(this.OnViewClick), this.m_25dBtn, this.m_3dBtn, null); + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshPlantRedDot(); + this.m_nameLab.SetText(string.Format(XStringDefineProxy.GetString("HomeName"), HomePlantDocument.Doc.HomeOwnerName)); + bool flag = XSingleton.singleton.OperationMode == XOperationMode.X3D_Free; + if (flag) + { + XSingleton.singleton.OperationMode = XOperationMode.X3D; + } + this.SetView(XSingleton.singleton.OperationMode); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private bool OnClickExitHome(IXUIButton btn) + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag = sceneType != SceneType.SCENE_FAMILYGARDEN; + bool result; + if (flag) + { + result = true; + } + else + { + HomeMainDocument.Doc.ReqLeaveHome(); + result = true; + } + return result; + } + + private bool OnClickPlanting(IXUIButton btn) + { + this.GoTargetPoint(this.m_plantPos); + return true; + } + + private bool OnClickFishing(IXUIButton btn) + { + this.GoTargetPoint(this.m_fishingPos); + return true; + } + + private void GoTargetPoint(Vector3 v3) + { + XSingleton.singleton.LastNpc = null; + XNavigationEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + @event.Dest = v3; + XSingleton.singleton.FireEvent(@event); + } + + private bool OnViewClick(IXUIButton btn) + { + this.SetView((XOperationMode)btn.ID); + return true; + } + + public void SetView(XOperationMode mode) + { + if (mode != XOperationMode.X25D) + { + if (mode == XOperationMode.X3D) + { + this.m_3dBtn.gameObject.SetActive(true); + this.m_25dBtn.gameObject.SetActive(false); + } + } + else + { + this.m_3dBtn.gameObject.SetActive(false); + this.m_25dBtn.gameObject.SetActive(true); + } + } + + public void EnableBackToMainCity(bool allow) + { + base.transform.gameObject.SetActive(allow); + } + + public void RefreshPlantRedDot() + { + bool flag = this.m_redDotGo != null; + if (flag) + { + this.m_redDotGo.SetActive(HomePlantDocument.Doc.HadRedDot); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomeHandler.cs.meta new file mode 100644 index 00000000..6824cbe8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e491c43d56ab8b46bee4b0ec3db807f +timeCreated: 1611404004 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeMainDlg.cs b/Client/Assets/Scripts/XMainClient/UI/HomeMainDlg.cs new file mode 100644 index 00000000..f07e89a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeMainDlg.cs @@ -0,0 +1,129 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HomeMainDlg : TabDlgBase + { + public override string fileName + { + get + { + return "Home/HomeMainView"; + } + } + + protected override bool bHorizontal + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return 150; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + public CookingHandler HomeCookingHandler + { + get + { + return this.m_cookingHandler; + } + } + + public FeastHandler HomeFeastHandler + { + get + { + return this.m_feastHandler; + } + } + + private MyHomeHandler m_myHomeHandler; + + private HomeFriendHandler m_homeFriendHandler; + + private CookingHandler m_cookingHandler; + + private FeastHandler m_feastHandler; + + private XSysDefine m_curSelectedTab; + + private Transform m_handlersTra; + + protected override void Init() + { + this.m_handlersTra = base.uiBehaviour.transform.Find("Bg/Handlers"); + base.Init(); + } + + protected override void OnShow() + { + base.OnShow(); + HomeMainDocument.Doc.ReqGardenOverview(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnLoad() + { + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_myHomeHandler); + DlgHandlerBase.EnsureUnload(ref this.m_homeFriendHandler); + DlgHandlerBase.EnsureUnload(ref this.m_cookingHandler); + DlgHandlerBase.EnsureUnload(ref this.m_feastHandler); + base.OnUnload(); + } + + public void Show(XSysDefine sys = XSysDefine.XSys_Home_MyHome) + { + this.m_curSelectedTab = sys; + } + + public override void SetupHandlers(XSysDefine sys) + { + switch (sys) + { + case XSysDefine.XSys_Home_Cooking: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_cookingHandler, this.m_handlersTra, true, this)); + return; + case XSysDefine.XSys_Home_Feast: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_feastHandler, this.m_handlersTra, true, this)); + return; + case XSysDefine.XSys_Home_MyHome: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_myHomeHandler, this.m_handlersTra, true, this)); + return; + case XSysDefine.XSys_Home_HomeFriends: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this.m_homeFriendHandler, this.m_handlersTra, true, this)); + return; + } + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeMainDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomeMainDlg.cs.meta new file mode 100644 index 00000000..e768f68f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeMainDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9bee8e8a1027bb446ab9c812eb9cd12c +timeCreated: 1611404207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomePlantBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/HomePlantBehaviour.cs new file mode 100644 index 00000000..c071fad3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomePlantBehaviour.cs @@ -0,0 +1,20 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class HomePlantBehaviour : DlgBehaviourBase + { + public IXUISprite m_closedSpr; + + public Transform m_handlerTra; + + private void Awake() + { + this.m_closedSpr = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_handlerTra = base.transform.Find("Bg/SeedHandler"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomePlantBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomePlantBehaviour.cs.meta new file mode 100644 index 00000000..a4a9410e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomePlantBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f76f70c7e85532b4aa60ab1a75536612 +timeCreated: 1611404888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomePlantDlg.cs b/Client/Assets/Scripts/XMainClient/UI/HomePlantDlg.cs new file mode 100644 index 00000000..16661f64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomePlantDlg.cs @@ -0,0 +1,271 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HomePlantDlg : DlgBase + { + public override string fileName + { + get + { + return "Home/PlantDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool exclusive + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private DlgHandlerBase m_CurrHandler; + + private HomeSeedBagHandler m_homeSeedBagHandler; + + private HomeCropInfoHandler m_homeCropInfoHandler; + + private HomePlantDocument m_doc; + + public bool IsPlayingAction = false; + + private XEntity m_lastNpc = null; + + protected override void Init() + { + DlgHandlerBase.EnsureCreate(ref this.m_homeSeedBagHandler, base.uiBehaviour.m_handlerTra, false, this); + DlgHandlerBase.EnsureCreate(ref this.m_homeCropInfoHandler, base.uiBehaviour.m_handlerTra, false, this); + this.m_doc = HomePlantDocument.Doc; + this.m_doc.View = this; + base.Init(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_closedSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickClosed)); + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + XCameraCloseUpEventArgs @event = XEventPool.GetEvent(); + @event.Target = XSingleton.singleton.LastNpc; + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + Farmland farmland = this.m_doc.GetFarmland(this.m_doc.CurFarmlandId); + bool flag = farmland == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("farm is null!", null, null, null, null, null); + } + else + { + bool isFree = farmland.IsFree; + if (isFree) + { + this.m_homeCropInfoHandler.SetVisible(false); + this.m_CurrHandler = this.m_homeSeedBagHandler; + this.m_CurrHandler.SetVisible(true); + } + else + { + this.m_homeSeedBagHandler.SetVisible(false); + this.m_CurrHandler = this.m_homeCropInfoHandler; + this.m_CurrHandler.SetVisible(true); + } + } + } + + public void Show(XEntity npc) + { + this.m_lastNpc = npc; + HomePlantDocument doc = HomePlantDocument.Doc; + Farmland farmland = doc.GetFarmland(doc.CurFarmlandId); + HomeTypeEnum homeType = doc.HomeType; + bool flag = farmland != null; + if (flag) + { + bool isLock = farmland.IsLock; + if (isLock) + { + HomeTypeEnum homeTypeEnum = homeType; + if (homeTypeEnum != HomeTypeEnum.MyHome) + { + if (homeTypeEnum != HomeTypeEnum.GuildHome) + { + doc.FetchPlantInfo(doc.CurFarmlandId); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag2 = specificDocument.bInGuild && (ulong)specificDocument.Level < (ulong)((long)farmland.BreakLevel); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("BreakNewFarmlandLevelNotEnough_Guild"), farmland.BreakLevel), "fece00"); + } + } + } + else + { + bool flag3 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)farmland.BreakLevel); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("BreakNewFarmlandLevelNotEnough"), farmland.BreakLevel), "fece00"); + } + else + { + int cost = 0; + int num = 0; + doc.GetBreakHomeFarmlandData(out num, out cost); + bool flag4 = num == 0; + if (flag4) + { + XSingleton.singleton.AddGreenLog("itemid cannont zero", null, null, null, null, null); + } + else + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("BreakNewFarmlandTips"), XLabelSymbolHelper.FormatCostWithIcon(cost, (ItemEnum)num)), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.ReqBreakNewFarmland)); + } + } + } + } + else + { + doc.FetchPlantInfo(doc.CurFarmlandId); + } + } + } + + protected override void OnHide() + { + XCameraCloseUpEndEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + bool flag = this.m_CurrHandler != null; + if (flag) + { + this.m_CurrHandler.SetVisible(false); + } + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_homeSeedBagHandler); + DlgHandlerBase.EnsureUnload(ref this.m_homeCropInfoHandler); + base.OnUnload(); + } + + public void RefreshUI() + { + this.ShowSubHandler(); + } + + private void ShowSubHandler() + { + Farmland farmland = this.m_doc.GetFarmland(this.m_doc.CurFarmlandId); + bool flag = farmland == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("farm is null!", null, null, null, null, null); + } + else + { + bool isFree = farmland.IsFree; + if (isFree) + { + bool flag2 = this.m_CurrHandler != this.m_homeSeedBagHandler; + if (flag2) + { + this.m_CurrHandler.SetVisible(false); + this.m_CurrHandler = this.m_homeSeedBagHandler; + } + bool flag3 = this.m_CurrHandler.IsVisible(); + if (flag3) + { + this.m_homeSeedBagHandler.RefreshUI(); + } + else + { + this.m_CurrHandler.SetVisible(true); + } + } + else + { + bool flag4 = this.m_CurrHandler != this.m_homeCropInfoHandler; + if (flag4) + { + this.m_CurrHandler.SetVisible(false); + this.m_CurrHandler = this.m_homeCropInfoHandler; + } + bool flag5 = this.m_CurrHandler.IsVisible(); + if (flag5) + { + this.m_homeCropInfoHandler.RefreshUI(); + } + else + { + this.m_CurrHandler.SetVisible(true); + } + } + } + } + + private bool ReqBreakNewFarmland(IXUIButton btn) + { + HomePlantDocument doc = HomePlantDocument.Doc; + int itemid = 0; + int num = 0; + doc.GetBreakHomeFarmlandData(out itemid, out num); + bool flag = XBagDocument.BagDoc.GetItemCount(itemid) < (ulong)((long)num); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_AUCT_DRAGONCOINLESS"), "fece00"); + result = true; + } + else + { + doc.ReqBreakNewFarmland(doc.CurFarmlandId); + XSingleton.singleton.CloseModalDlg(); + result = true; + } + return result; + } + + private void OnClickClosed(IXUISprite spr) + { + bool isPlayingAction = this.IsPlayingAction; + if (!isPlayingAction) + { + this.SetVisible(false, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomePlantDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomePlantDlg.cs.meta new file mode 100644 index 00000000..a2637fb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomePlantDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 080ddd5d742c53e40bb8b8ee6b1b2792 +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeSeedBagHandler.cs b/Client/Assets/Scripts/XMainClient/UI/HomeSeedBagHandler.cs new file mode 100644 index 00000000..6a5486c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeSeedBagHandler.cs @@ -0,0 +1,385 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class HomeSeedBagHandler : DlgHandlerBase + { + private HomePlantDocument m_doc + { + get + { + return HomePlantDocument.Doc; + } + } + + private bool m_bIsPlayingAction + { + get + { + return DlgBase.singleton.IsPlayingAction; + } + set + { + DlgBase.singleton.IsPlayingAction = value; + } + } + + protected override string FileName + { + get + { + return "Home/SeedBag"; + } + } + + private IXUIWrapContent m_wrapContent; + + private GameObject m_hadSeedGo; + + private GameObject m_noSeddGo; + + private GameObject m_ItemGo; + + private GameObject m_tplGo; + + private GameObject m_noSeedTipsGo; + + private IXUILabel m_describeLab; + + private IXUILabel m_timeLab; + + private IXUILabel m_harvestLab; + + private IXUIButton m_plantBtn; + + private IXUIButton m_gotoShopBtn; + + private IXUILabel m_sprNameLab; + + private XBagWindow m_bagWindow; + + private XItemSelector _ItemSelector = new XItemSelector(0u); + + private uint m_token; + + private float m_plantActionTime = 2.5f; + + private float m_fCoolTime = 3f; + + private float m_fLastClickBtnTime = 0f; + + protected override void Init() + { + this.m_hadSeedGo = base.PanelObject.transform.Find("HadSeed").gameObject; + this.m_noSeddGo = base.PanelObject.transform.Find("NoSeed").gameObject; + this.m_noSeedTipsGo = this.m_noSeddGo.transform.Find("tip").gameObject; + Transform transform = this.m_hadSeedGo.transform.Find("ItemView"); + this.m_ItemGo = transform.Find("Item").gameObject; + this.m_describeLab = (transform.Find("Panel/Describe").GetComponent("XUILabel") as IXUILabel); + this.m_timeLab = (transform.Find("time").GetComponent("XUILabel") as IXUILabel); + this.m_harvestLab = (transform.Find("harvest").GetComponent("XUILabel") as IXUILabel); + this.m_sprNameLab = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + transform = this.m_hadSeedGo.transform.Find("Items/Panel/WrapContent"); + this.m_wrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + this.m_tplGo = this.m_hadSeedGo.transform.Find("Items").gameObject; + this.m_plantBtn = (this.m_hadSeedGo.transform.Find("BtnPlant").GetComponent("XUIButton") as IXUIButton); + this.m_gotoShopBtn = (this.m_noSeddGo.transform.Find("BtnShop").GetComponent("XUIButton") as IXUIButton); + this.m_bagWindow = new XBagWindow(this.m_tplGo, null, null); + this.m_bagWindow.Init(); + base.Init(); + } + + public override void RegisterEvent() + { + this.m_gotoShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGoToShopBtn)); + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_bIsPlayingAction = false; + this.FillContent(); + } + + protected override void OnHide() + { + this.m_bagWindow.OnHide(); + this._ItemSelector.Hide(); + this.m_bIsPlayingAction = false; + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.FillContent(); + } + + public override void OnUnload() + { + this._ItemSelector.Unload(); + base.OnUnload(); + } + + public void RefreshUI() + { + this.FillContent(); + } + + private void FillContent() + { + this.m_doc.GetHadSeedList(); + bool flag = this.m_doc.HadSeedList == null || this.m_doc.HadSeedList.Count == 0; + if (flag) + { + this.m_noSeddGo.SetActive(true); + this.m_hadSeedGo.SetActive(false); + this.m_gotoShopBtn.gameObject.SetActive(this.m_doc.HomeType != HomeTypeEnum.GuildHome); + this.m_noSeedTipsGo.SetActive(this.m_doc.HomeType != HomeTypeEnum.GuildHome); + } + else + { + this.m_noSeddGo.SetActive(false); + this.m_hadSeedGo.SetActive(true); + this.m_bagWindow.ChangeData(new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this.m_doc.GetHadSeedsList)); + this.m_bagWindow.OnShow(); + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.m_doc.HadSeedList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("no data", null, null, null, null, null); + } + else + { + bool flag2 = index >= this.m_doc.HadSeedList.Count; + if (flag2) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + } + else + { + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + XItem xitem = this.m_doc.HadSeedList[index]; + XSingleton.singleton.DrawItem(t.gameObject, xitem); + ixuisprite.ID = xitem.uid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + bool flag3 = index == 0; + if (flag3) + { + this.OnItemClicked(ixuisprite); + } + } + } + } + + private void FillSeedInfo(XItem item) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + bool flag = itemConf != null; + if (flag) + { + this.m_describeLab.SetText(XSingleton.singleton.ReplaceReturn(itemConf.ItemDescription)); + } + else + { + this.m_describeLab.SetText(string.Empty); + } + PlantSeed.RowData bySeedID = HomePlantDocument.PlantSeedTable.GetBySeedID((uint)item.itemID); + bool flag2 = bySeedID != null; + if (flag2) + { + this.m_sprNameLab.SetText(bySeedID.SeedName); + this.m_timeLab.SetText(this.GetTimeString((ulong)bySeedID.PredictGrowUpTime)); + this.m_harvestLab.SetText(bySeedID.PlantID[1].ToString()); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_ItemGo, bySeedID.PlantID[0], 0, false); + IXUISprite ixuisprite = this.m_ItemGo.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)bySeedID.PlantID[0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + this.m_sprNameLab.SetText(""); + this.m_timeLab.SetText(""); + this.m_harvestLab.SetText(""); + } + this.m_plantBtn.ID = (ulong)((long)item.itemID); + this.m_plantBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickPlantBtn)); + } + + private string GetTimeString(ulong ti) + { + bool flag = ti < 60UL; + string result; + if (flag) + { + string text = string.Format("{0}{1}", ti, XStringDefineProxy.GetString("MINUTE_DUARATION")); + result = text; + } + else + { + ulong num = ti / 60UL; + ulong num2 = ti % 60UL; + bool flag2 = num2 > 0UL; + string text; + if (flag2) + { + text = string.Format("{0}{1}{2}{3}", new object[] + { + num, + XStringDefineProxy.GetString("HOUR_DUARATION"), + num2, + XStringDefineProxy.GetString("MINUTE_DUARATION") + }); + } + else + { + text = string.Format("{0}{1}", num, XStringDefineProxy.GetString("HOUR_DUARATION")); + } + result = text; + } + return result; + } + + private bool OnClickPlantBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + Farmland farmland = this.m_doc.GetFarmland(this.m_doc.CurFarmlandId); + bool flag2 = farmland == null || !farmland.IsFree; + if (flag2) + { + result = true; + } + else + { + bool bIsPlayingAction = this.m_bIsPlayingAction; + if (bIsPlayingAction) + { + result = true; + } + else + { + List hadSeedsList = this.m_doc.GetHadSeedsList(); + bool flag3 = hadSeedsList == null || hadSeedsList.Count == 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_GARDEN_NOSEED"), "fece00"); + result = true; + } + else + { + bool flag4 = XSingleton.singleton.Player == null; + if (flag4) + { + result = true; + } + else + { + bool flag5 = !XOutlookHelper.CanPlaySpecifiedAnimation(XSingleton.singleton.Player); + if (flag5) + { + result = true; + } + else + { + this.m_bIsPlayingAction = true; + XSingleton.singleton.Player.PlaySpecifiedAnimation(this.m_doc.GetHomePlantAction(ActionType.Plant)); + XSingleton.singleton.KillTimer(this.m_token); + this.m_token = XSingleton.singleton.SetTimer(this.m_plantActionTime, new XTimerMgr.ElapsedEventHandler(this.QequestPlant), (uint)btn.ID); + XSingleton.singleton.CreateAndPlay(HomePlantDocument.PlantEffectPath, XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, false, this.m_plantActionTime, true); + XSingleton.singleton.PlayUISound("Audio/UI/Farm_Planting", true, AudioChannel.Action); + result = true; + } + } + } + } + } + } + return result; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + + public void QequestPlant(object o = null) + { + XSingleton.singleton.Player.PlayStateBack(); + bool flag = o != null; + if (flag) + { + this.m_doc.StartPlant(this.m_doc.CurFarmlandId, (uint)o, false); + } + this.m_bIsPlayingAction = false; + } + + private bool OnClickGoToShopBtn(IXUIButton btn) + { + HomeTypeEnum homeType = this.m_doc.HomeType; + bool flag = homeType == HomeTypeEnum.GuildHome; + if (flag) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag2 = !specificDocument.CheckInGuild(); + if (flag2) + { + return true; + } + bool flag3 = !specificDocument.CheckUnlockLevel(XSysDefine.XSys_GuildBoon_Shop); + if (flag3) + { + return true; + } + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Guild, 0UL); + } + else + { + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Home, 0UL); + } + return true; + } + + private void OnItemClicked(IXUISprite iSp) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(iSp.ID); + bool flag = itemByUID == null; + if (!flag) + { + this.FillSeedInfo(itemByUID); + this._ItemSelector.Select(iSp); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/HomeSeedBagHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/HomeSeedBagHandler.cs.meta new file mode 100644 index 00000000..df3780bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/HomeSeedBagHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa8d9d2940603e94a858b0fbbba902e7 +timeCreated: 1611404904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/IAttrTooltipDlgHandler.cs b/Client/Assets/Scripts/XMainClient/UI/IAttrTooltipDlgHandler.cs new file mode 100644 index 00000000..d52df86c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IAttrTooltipDlgHandler.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal interface IAttrTooltipDlgHandler + { + AttrTooltipDlg tooltipDlg { get; set; } + + string _PPTTitle { get; } + + void Init(AttrTooltipDlg parent); + + void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, XItem instanceData = null, XItem compareData = null); + + void SetupOtherFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain); + + void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain); + + bool OnButton2Clicked(IXUIButton button); + + bool OnButton3Clicked(IXUIButton button); + + bool OnButton1Clicked(IXUIButton button); + + void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain); + + bool HideToolTip(bool forceHide = false); + + int _GetPPT(XItem item, bool bMain, ref string valueText); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/IAttrTooltipDlgHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/IAttrTooltipDlgHandler.cs.meta new file mode 100644 index 00000000..c666e96f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IAttrTooltipDlgHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a188ced7db477c48948720df8d45e02 +timeCreated: 1611404199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/IGVGBattleMember.cs b/Client/Assets/Scripts/XMainClient/UI/IGVGBattleMember.cs new file mode 100644 index 00000000..6e75f438 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IGVGBattleMember.cs @@ -0,0 +1,20 @@ +using System; +using UnityEngine; + +namespace XMainClient.UI +{ + internal interface IGVGBattleMember + { + void Setup(GameObject sv, int index); + + void ReFreshData(GVGBattleInfo battleInfo); + + void SetActive(bool active); + + bool IsActive(); + + void OnUpdate(); + + void Recycle(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/IGVGBattleMember.cs.meta b/Client/Assets/Scripts/XMainClient/UI/IGVGBattleMember.cs.meta new file mode 100644 index 00000000..bbbeef10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IGVGBattleMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b5b2785d86bad7479cb0fc235915aef +timeCreated: 1611403686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/IGVGBattlePrepare.cs b/Client/Assets/Scripts/XMainClient/UI/IGVGBattlePrepare.cs new file mode 100644 index 00000000..ff8f0756 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IGVGBattlePrepare.cs @@ -0,0 +1,24 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal interface IGVGBattlePrepare : IXUIDlg + { + bool IsLoaded(); + + void OnEnterSceneFinally(); + + void RefreshSection(); + + void ReFreshGroup(); + + void RefreshInspire(); + + void RefreahCountTime(float time); + + void SetResurgence(int leftTime); + + void UpdateDownUp(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/IGVGBattlePrepare.cs.meta b/Client/Assets/Scripts/XMainClient/UI/IGVGBattlePrepare.cs.meta new file mode 100644 index 00000000..b76c9dc2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IGVGBattlePrepare.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37f8a8876ae42d8468b3543d1a307f79 +timeCreated: 1611403568 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/IRankSource.cs b/Client/Assets/Scripts/XMainClient/UI/IRankSource.cs new file mode 100644 index 00000000..a5b1f3e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IRankSource.cs @@ -0,0 +1,12 @@ +using System; +using KKSG; + +namespace XMainClient.UI +{ + internal interface IRankSource + { + void ReqRankData(RankeType type, bool inFight); + + XBaseRankList GetRankList(RankeType type); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/IRankSource.cs.meta b/Client/Assets/Scripts/XMainClient/UI/IRankSource.cs.meta new file mode 100644 index 00000000..24c3e0f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IRankSource.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae5a821e89470a84d871f6e10aea637a +timeCreated: 1611404339 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/IRankView.cs b/Client/Assets/Scripts/XMainClient/UI/IRankView.cs new file mode 100644 index 00000000..e887170d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IRankView.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient.UI +{ + internal interface IRankView + { + void RefreshPage(); + + bool IsVisible(); + + void RefreshVoice(ulong[] roleids, int[] states); + + void HideVoice(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/IRankView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/IRankView.cs.meta new file mode 100644 index 00000000..dab1848c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IRankView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 571a47437c3c02c4abb8fe1566a41ef4 +timeCreated: 1611403748 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ITooltipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ITooltipDlg.cs new file mode 100644 index 00000000..e3d9aa29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ITooltipDlg.cs @@ -0,0 +1,14 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal interface ITooltipDlg + { + XItemSelector ItemSelector { get; } + + IXUISprite ShowToolTip(XItem mainItem, XItem compareItem, bool _bShowButtons, uint prof); + + void SetPosition(IXUISprite clickIcon); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ITooltipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ITooltipDlg.cs.meta new file mode 100644 index 00000000..cb632703 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ITooltipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 352962559b43c3842b3e53d29fece507 +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleSource.cs b/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleSource.cs new file mode 100644 index 00000000..ff1b48e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleSource.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient.UI +{ + public interface IWorldBossBattleSource + { + uint EncourageCount { get; } + + void ReqEncourage(); + + void ReqEncourageTwo(); + + void ReqBattleInfo(); + + uint GetEncourageCount(int index); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleSource.cs.meta b/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleSource.cs.meta new file mode 100644 index 00000000..c601e6bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleSource.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dae3dc8441db7c14b8c2211cf4b9c09b +timeCreated: 1611404650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleView.cs b/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleView.cs new file mode 100644 index 00000000..73b737dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleView.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient.UI +{ + internal interface IWorldBossBattleView + { + void SetLeftTime(uint time); + + void RefreshEncourage(); + + bool IsVisible(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleView.cs.meta new file mode 100644 index 00000000..0d5c14a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/IWorldBossBattleView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20938f7d555f8fa42b1ab4485c2479e4 +timeCreated: 1611403407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattleMember.cs b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattleMember.cs new file mode 100644 index 00000000..6820d412 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattleMember.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class InnerGVGBattleMember : GVGBattleMemberBase + { + protected override void SetupOtherMemberInfo(Transform t, GmfRole role) + { + IXUILabel ixuilabel = t.Find("Fight").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(role.pkpoint.ToString()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattleMember.cs.meta b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattleMember.cs.meta new file mode 100644 index 00000000..854354cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattleMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bfa7012439c55df4e8f92b6b23b82797 +timeCreated: 1611404484 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareBehaviour.cs new file mode 100644 index 00000000..a4ec92ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareBehaviour.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient.UI +{ + internal class InnerGVGBattlePrepareBehaviour : GVGBattlePrepareBehaviour + { + protected override void Awake() + { + base.Awake(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareBehaviour.cs.meta new file mode 100644 index 00000000..fc4be9d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b94d1d942e315b4dbd5e3ad43b9fa10 +timeCreated: 1611403994 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareView.cs b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareView.cs new file mode 100644 index 00000000..c85e3f7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareView.cs @@ -0,0 +1,29 @@ +using System; + +namespace XMainClient.UI +{ + internal class InnerGVGBattlePrepareView : GVGBattlePrepareBase + { + public override string fileName + { + get + { + return "Battle/GuildArenaPrepareDlg"; + } + } + + protected override void OnLoad() + { + base.OnLoad(); + base.uiBehaviour.mBluePanel = new InnerGVGBattleMember(); + base.uiBehaviour.mBluePanel.Setup(base.uiBehaviour.mBlueView, 1); + } + + protected override void SelectionPattern() + { + base.SelectionPattern(); + base.uiBehaviour.mCombatScore.SetActive(this._Doc.IsGMF()); + base.uiBehaviour.mBattleDuelInfo.SetVisible(this._Doc.IsGPR()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareView.cs.meta new file mode 100644 index 00000000..ac6dfd02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/InnerGVGBattlePrepareView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea1a0d745334d944492a0df9e810b5e3 +timeCreated: 1611404777 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs new file mode 100644 index 00000000..4d6dbf60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs @@ -0,0 +1,410 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ItemAccessDlg : DlgBase + { + public override string fileName + { + get + { + return "Common/ItemAccessDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XFPStrengthenDocument _bqDocument; + + private AccessCallback _callback; + + private int _access_item = 0; + + private Dictionary _idParam = new Dictionary(); + + protected override void Init() + { + this._bqDocument = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected bool OnCloseClicked(IXUIButton go) + { + this.SetVisible(false, true); + return true; + } + + public void ShowAccess(int itemid, List ids, List param, AccessCallback callback = null) + { + this.SetVisible(true, true); + this._idParam.Clear(); + this._callback = callback; + this._access_item = itemid; + base.uiBehaviour.m_Item.SetActive(true); + base.uiBehaviour.m_BossItem.SetActive(false); + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_Item, itemid, 0, false); + this.SetScrollViewItems(ids, param); + } + + public void ShowMonsterAccess(uint monsterID, List BQList, List param, AccessCallback callback = null) + { + this.SetVisible(true, true); + base.uiBehaviour.m_Item.SetActive(false); + base.uiBehaviour.m_BossItem.SetActive(true); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(monsterID); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + bool flag = byPresentID == null; + if (!flag) + { + IXUISprite ixuisprite = base.uiBehaviour.m_BossItem.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(byPresentID.Avatar, byPresentID.Atlas, false); + bool flag2 = param != null && param.Count > 0; + if (flag2) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData((uint)param[0]); + bool flag3 = sceneData != null; + if (flag3) + { + base.uiBehaviour.m_bossDec.SetText(sceneData.Comment); + } + } + else + { + bool flag4 = byID != null; + if (flag4) + { + base.uiBehaviour.m_bossDec.SetText(byID.Name); + } + } + this._idParam.Clear(); + this._callback = callback; + this._access_item = (int)monsterID; + this.SetScrollViewItems(BQList, param); + } + } + + private void SetScrollViewItems(List BQList, List param) + { + bool flag = BQList == null || param == null; + if (!flag) + { + List list = new List(); + for (int i = 0; i < BQList.Count; i++) + { + FpStrengthenTable.RowData strengthData = this._bqDocument.GetStrengthData(BQList[i]); + bool flag2 = strengthData == null; + if (!flag2) + { + bool flag3 = this._idParam.ContainsKey(BQList[i]); + if (!flag3) + { + this._idParam.Add(BQList[i], param[i]); + AccessData accessData = new AccessData(); + accessData.Row = strengthData; + accessData.BQid = BQList[i]; + FpStrengthenTable.RowData strengthData2 = this._bqDocument.GetStrengthData(BQList[i]); + XSysDefine bqsystem = (XSysDefine)strengthData2.BQSystem; + accessData.SysType = bqsystem; + bool flag4 = XSingleton.singleton.IsSystemOpened(bqsystem); + accessData.OpenLevel = XSingleton.singleton.GetSysOpenLevel(XFastEnumIntEqualityComparer.ToInt(bqsystem)); + bool flag5 = flag4; + if (flag5) + { + bool flag6 = XSysDefine.XSys_Level_Normal == bqsystem; + if (flag6) + { + XLevelDocument xlevelDocument = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + bool flag7 = param[i] > 0; + if (flag7) + { + flag4 = (SceneRefuseReason.Admit == xlevelDocument.CanLevelOpen((uint)param[i])); + } + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData((uint)param[i]); + bool flag8 = sceneData != null; + if (flag8) + { + accessData.OpenLevel = (int)sceneData.RequiredLevel; + } + } + else + { + bool flag9 = XSysDefine.XSys_Level_Elite == bqsystem; + if (flag9) + { + bool flag10 = 0 < param[i]; + if (flag10) + { + XLevelDocument xlevelDocument2 = XSingleton.singleton.Doc.GetXComponent(XLevelDocument.uuID) as XLevelDocument; + bool flag11 = param[i] < 10; + if (!flag11) + { + flag4 = (SceneRefuseReason.Admit == xlevelDocument2.CanLevelOpen((uint)param[i])); + } + } + SceneTable.RowData sceneData2 = XSingleton.singleton.GetSceneData((uint)param[i]); + bool flag12 = sceneData2 != null; + if (flag12) + { + accessData.OpenLevel = (int)sceneData2.RequiredLevel; + } + } + else + { + bool flag13 = XSysDefine.XSys_Activity_Nest == bqsystem; + if (flag13) + { + XExpeditionDocument xexpeditionDocument = XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument; + int expIDBySceneID = xexpeditionDocument.GetExpIDBySceneID((uint)param[i]); + ExpeditionTable.RowData expeditionDataByID = xexpeditionDocument.GetExpeditionDataByID(expIDBySceneID); + bool flag14 = expeditionDataByID != null; + if (flag14) + { + flag4 = xexpeditionDocument.TeamCategoryMgr.IsExpOpened(expeditionDataByID); + accessData.OpenLevel = expeditionDataByID.RequiredLevel; + } + else + { + flag4 = false; + } + } + } + } + } + accessData.IsOpen = flag4; + accessData.DescStr = strengthData.BQTips; + bool flag15 = param[i] > 0; + if (flag15) + { + SceneTable.RowData sceneData3 = XSingleton.singleton.GetSceneData((uint)param[i]); + bool flag16 = sceneData3 != null; + if (flag16) + { + accessData.DescStr = string.Format(strengthData.BQTips, sceneData3.Comment); + accessData.SceStr = sceneData3.Comment; + } + else + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "SceneId not exist ", + i, + " ", + param[i] + }), null, null, null, null, null); + } + } + list.Add(accessData); + } + } + } + list.Sort(new Comparison(this.Compare)); + base.uiBehaviour.m_RecordPool.ReturnAll(false); + for (int j = 0; j < list.Count; j++) + { + AccessData accessData2 = list[j]; + bool flag17 = accessData2 == null; + if (!flag17) + { + GameObject gameObject = base.uiBehaviour.m_RecordPool.FetchGameObject(false); + gameObject.name = XSingleton.singleton.StringCombine("access", accessData2.BQid.ToString()); + gameObject.transform.localPosition = base.uiBehaviour.m_RecordPool.TplPos + new Vector3(0f, (float)(-(float)base.uiBehaviour.m_RecordPool.TplHeight * j), 0f); + IXUISprite ixuisprite = gameObject.transform.Find("icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("desc").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("scene").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = gameObject.transform.Find("goto").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel4 = gameObject.transform.Find("notopen").GetComponent("XUILabel") as IXUILabel; + ixuisprite.SetSprite(accessData2.Row.BQImageID); + ixuilabel.SetText(accessData2.Row.BQName); + ixuilabel2.SetText(accessData2.DescStr); + ixuilabel3.SetText(accessData2.SceStr); + bool isOpen = accessData2.IsOpen; + if (isOpen) + { + ixuibutton.gameObject.SetActive(true); + ixuilabel4.gameObject.SetActive(false); + ixuibutton.ID = (ulong)((long)accessData2.BQid); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.GoToAccessSys)); + } + else + { + ixuibutton.gameObject.SetActive(false); + ixuilabel4.gameObject.SetActive(true); + bool flag18 = XSysDefine.XSys_Level_Elite == accessData2.SysType || XSysDefine.XSys_Level_Normal == accessData2.SysType; + if (flag18) + { + bool flag19 = (long)accessData2.OpenLevel > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag19) + { + ixuilabel4.SetText(string.Format(XSingleton.singleton.GetString("SKILL_LEARN"), accessData2.OpenLevel)); + } + else + { + ixuilabel4.SetText(XSingleton.singleton.GetString("ShouldFinishMainTask")); + } + } + else + { + ixuilabel4.SetText(string.Format(XSingleton.singleton.GetString("SKILL_LEARN"), accessData2.OpenLevel)); + } + } + bool flag20 = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag20) + { + ixuibutton.SetVisible(false); + } + } + } + base.uiBehaviour.m_RecordScrollView.ResetPosition(); + } + } + + private int Compare(AccessData left, AccessData right) + { + bool isOpen = left.IsOpen; + int result; + if (isOpen) + { + result = -1; + } + else + { + result = 1; + } + return result; + } + + public bool GoToAccessSys(IXUIButton sp) + { + int num = (int)sp.ID; + FpStrengthenTable.RowData strengthData = this._bqDocument.GetStrengthData(num); + bool flag = strengthData == null; + bool result; + if (flag) + { + result = false; + } + else + { + XSysDefine bqsystem = (XSysDefine)strengthData.BQSystem; + XSysDefine xsysDefine = bqsystem; + if (xsysDefine <= XSysDefine.XSys_Mall_Mall) + { + if (xsysDefine == XSysDefine.XSys_Level_Normal) + { + XLevelDocument specificDocument = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + specificDocument.AutoGoBattle(this._idParam[num], 0, 0u); + goto IL_284; + } + if (xsysDefine == XSysDefine.XSys_Level_Elite) + { + XLevelDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + bool flag2 = this._idParam[num] < 10; + if (flag2) + { + specificDocument2.AutoGoBattle(0, this._idParam[num], 1u); + } + else + { + specificDocument2.AutoGoBattle(this._idParam[num], 0, 1u); + } + goto IL_284; + } + if (xsysDefine != XSysDefine.XSys_Mall_Mall) + { + goto IL_261; + } + } + else + { + if (xsysDefine == XSysDefine.XSys_Mall_Guild) + { + XGuildDocument specificDocument3 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.SetVisible(false, true); + bool flag3 = !specificDocument3.bInGuild; + if (flag3) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Guild, 0UL); + } + else + { + XSingleton.singleton.OpenSystem((XSysDefine)strengthData.BQSystem, (ulong)((long)this._access_item)); + } + goto IL_284; + } + if (xsysDefine == XSysDefine.XSys_Activity_Nest) + { + this.SetVisible(false, true); + bool flag4 = 0 <= this._idParam[num]; + if (flag4) + { + XExpeditionDocument xexpeditionDocument = XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument; + int expIDBySceneID = xexpeditionDocument.GetExpIDBySceneID((uint)this._idParam[num]); + ExpeditionTable.RowData expeditionDataByID = xexpeditionDocument.GetExpeditionDataByID(expIDBySceneID); + bool flag5 = expeditionDataByID != null; + if (flag5) + { + ExpeditionTable.RowData expeditionDataByID2 = xexpeditionDocument.GetExpeditionDataByID(this._idParam[num]); + bool flag6 = expeditionDataByID2 != null; + if (flag6) + { + DlgBase.singleton.ShowView(expeditionDataByID2.DNExpeditionID); + } + else + { + DlgBase.singleton.ShowView(-1); + } + } + } + else + { + DlgBase.singleton.ShowViewByExpID(this._idParam[num]); + } + goto IL_284; + } + if (xsysDefine != XSysDefine.XSys_Activity_TeamTower) + { + goto IL_261; + } + } + this.SetVisible(false, true); + bool flag7 = this._callback != null; + if (flag7) + { + this._callback(); + } + XSingleton.singleton.OpenSystem(bqsystem, 0UL); + goto IL_284; + IL_261: + this.SetVisible(false, true); + XSingleton.singleton.OpenSystem((XSysDefine)strengthData.BQSystem, (ulong)((long)this._access_item)); + IL_284: + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs.meta new file mode 100644 index 00000000..57b936c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f02355a82812f4f41bba2fdf8036d1f8 +timeCreated: 1611404829 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs new file mode 100644 index 00000000..2284534f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ItemAccessDlgBehaviour : DlgBehaviourBase + { + public GameObject m_Item; + + public XUIPool m_RecordPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_RecordScrollView; + + public IXUIButton m_Close; + + public GameObject m_BossItem; + + public IXUILabel m_bossDec; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Item = base.transform.Find("Bg/Item").gameObject; + this.m_BossItem = base.transform.Find("Bg/Boss").gameObject; + this.m_bossDec = (this.m_BossItem.transform.Find("Des").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/ListPanel/ItemTpl"); + this.m_RecordPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_RecordScrollView = (base.transform.Find("Bg/ListPanel").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs.meta new file mode 100644 index 00000000..5ab17168 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemAccessDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efb71303c2365324586471b9221bd68a +timeCreated: 1611404805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlg.cs new file mode 100644 index 00000000..39082bb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlg.cs @@ -0,0 +1,148 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ItemIconListDlg : DlgBase + { + public override string fileName + { + get + { + return "Common/ItemIconListDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void Init() + { + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + } + + public void SetTitle(string text) + { + base.uiBehaviour.m_Title.SetText(text); + } + + private Rect _GetValidRect() + { + Rect result = default(Rect); + result.Set((float)(-(float)(XSingleton.singleton.Base_UI_Width - base.uiBehaviour.m_Bg.spriteWidth) / 2), (float)(-(float)(XSingleton.singleton.Base_UI_Height - base.uiBehaviour.m_Bg.spriteHeight) / 2), (float)(XSingleton.singleton.Base_UI_Width - base.uiBehaviour.m_Bg.spriteWidth), (float)(XSingleton.singleton.Base_UI_Height - base.uiBehaviour.m_Bg.spriteHeight)); + return result; + } + + public void SetGlobalPosition(Vector3 position) + { + base.uiBehaviour.m_Bg.gameObject.transform.position = position; + Vector3 localPosition = base.uiBehaviour.m_Bg.gameObject.transform.localPosition; + localPosition.y -= (float)(base.uiBehaviour.m_Bg.spriteHeight / 2 + 50); + Rect rect = this._GetValidRect(); + base.uiBehaviour.m_Arrow.gameObject.SetActive(false); + base.uiBehaviour.m_ArrowDown.gameObject.SetActive(false); + Transform transform = base.uiBehaviour.m_Arrow; + bool flag = localPosition.y < rect.yMin; + if (flag) + { + localPosition.y = base.uiBehaviour.m_Bg.gameObject.transform.localPosition.y + (float)(base.uiBehaviour.m_Bg.spriteHeight / 2 + 50); + transform = base.uiBehaviour.m_ArrowDown; + } + localPosition.x = Mathf.Max(rect.xMin, localPosition.x); + localPosition.x = Mathf.Min(rect.xMax, localPosition.x); + localPosition.y = Mathf.Max(rect.yMin, localPosition.y); + localPosition.y = Mathf.Min(rect.yMax, localPosition.y); + base.uiBehaviour.m_Bg.gameObject.transform.localPosition = localPosition; + transform.position = new Vector3(position.x, transform.position.y, transform.position.z); + float num = Mathf.Clamp(transform.localPosition.x, (float)(-(float)base.uiBehaviour.m_Bg.spriteWidth / 2 + 5), (float)(base.uiBehaviour.m_Bg.spriteWidth / 2 - 5)); + transform.localPosition = new Vector3(num, transform.localPosition.y, transform.localPosition.z); + transform.gameObject.SetActive(true); + this.SetVisible(true, true); + } + + public void Show(List itemid, List itemCount, bool isCamp = false) + { + this.SetVisible(true, true); + bool flag = itemid.Count != itemCount.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("itemid.Count != itemCount.Count", null, null, null, null, null); + } + else + { + bool flag2 = isCamp && itemid.Count < 2; + if (flag2) + { + XSingleton.singleton.AddErrorLog("itemid.Count <2", null, null, null, null, null); + } + else + { + float num = 0f; + if (isCamp) + { + num = (float)(-(float)base.uiBehaviour.m_Split.spriteWidth) * 0.5f; + base.uiBehaviour.m_Split.SetVisible(true); + } + else + { + base.uiBehaviour.m_Split.SetVisible(false); + } + base.uiBehaviour.m_ItemPool.FakeReturnAll(); + float num2 = (float)itemid.Count * 0.5f - 0.5f; + Vector3 tplPos = base.uiBehaviour.m_ItemPool.TplPos; + for (int i = 0; i < itemid.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)itemid[i], (int)itemCount[i], false); + gameObject.transform.localPosition = new Vector3(((float)i - num2) * (float)base.uiBehaviour.m_ItemPool.TplWidth + num, tplPos.y); + bool flag3 = isCamp && i == itemid.Count - 1; + if (flag3) + { + gameObject.transform.localPosition += new Vector3((float)base.uiBehaviour.m_Split.spriteWidth, 0f, 0f); + base.uiBehaviour.m_SplitPos.transform.localPosition = gameObject.transform.localPosition; + } + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)itemid[i]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + base.uiBehaviour.m_ItemPool.ActualReturnAll(false); + int num3 = base.uiBehaviour.m_ItemPool.ActiveCount * base.uiBehaviour.m_ItemPool.TplWidth; + if (isCamp) + { + num3 += base.uiBehaviour.m_Split.spriteWidth; + } + num3 -= base.uiBehaviour.m_BorderWidth; + num3 = Mathf.Max(num3, base.uiBehaviour.m_MinFrame.spriteWidth); + base.uiBehaviour.m_Bg.spriteWidth = num3; + base.uiBehaviour.m_Title.gameObject.transform.localPosition = new Vector3((float)(-(float)base.uiBehaviour.m_ItemPool.TplWidth) * 0.5f + num, base.uiBehaviour.m_Title.gameObject.transform.localPosition.y); + } + } + } + + private void OnCloseClicked(IXUISprite iSp) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlg.cs.meta new file mode 100644 index 00000000..dde2dd04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e37f4b6f6a94384d816f02986fddb5c +timeCreated: 1611403904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlgBehaviour.cs new file mode 100644 index 00000000..336f74ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlgBehaviour.cs @@ -0,0 +1,49 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ItemIconListDlgBehaviour : DlgBehaviourBase + { + public IXUILabel m_Title = null; + + public IXUISprite m_Bg = null; + + public IXUISprite m_Close = null; + + public IXUISprite m_MinFrame = null; + + public Transform m_Arrow = null; + + public Transform m_ArrowDown = null; + + public IXUISprite m_Split = null; + + public Transform m_SplitPos = null; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public int m_BorderWidth; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Title"); + this.m_Title = (transform.GetComponent("XUILabel") as IXUILabel); + transform = base.transform.Find("Close"); + this.m_Close = (transform.GetComponent("XUISprite") as IXUISprite); + transform = base.transform.Find("Bg"); + this.m_Bg = (transform.GetComponent("XUISprite") as IXUISprite); + transform = base.transform.Find("Bg/MinFrame"); + this.m_MinFrame = (transform.GetComponent("XUISprite") as IXUISprite); + this.m_ItemPool.SetupPool(base.transform.Find("Bg/ListPanel").gameObject, base.transform.Find("Bg/ListPanel/ItemTpl").gameObject, 3u, false); + this.m_BorderWidth = this.m_Bg.spriteWidth - this.m_MinFrame.spriteWidth; + this.m_Arrow = base.transform.Find("Bg/Arrow"); + this.m_ArrowDown = base.transform.Find("Bg/ArrowDown"); + this.m_Split = (base.transform.Find("Bg/Split").GetComponent("XUISprite") as IXUISprite); + this.m_SplitPos = base.transform.Find("Bg/Split/Sprite"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlgBehaviour.cs.meta new file mode 100644 index 00000000..d3392bc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemIconListDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a663fcdf3b7f9e9489315dca1ac2865d +timeCreated: 1611404288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs new file mode 100644 index 00000000..b6bfa3ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs @@ -0,0 +1,356 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ItemSystemDlg : TabDlgBase + { + public override string fileName + { + get + { + return "ItemNew/ItemNewDlg"; + } + } + + protected override bool bHorizontal + { + get + { + return false; + } + } + + public CharacterEquipHandler _equipHandler; + + public XCharacterInfoView _InfoView; + + public JadeEquipHandler _JadeEquipHandler; + + public EmblemEquipView _EmblemEquipHandler; + + public ArtifactFrameHandler _ArtifactFrameHandler; + + public CharacterEquipBagHandler _EquipBagHandler; + + public JadeBagHandler _JadeBagHandler; + + public JadeComposeHandler _JadeComposeHandler; + + public JadeComposeFrameHandler _JadeComposeFrameHandler; + + public CharacterItemBagHandler _ItemBagHandler; + + public EmblemBagView _EmblemBagHandler; + + public XDesignationView _DesignationHandler; + + public FashionBagHandler _FashionBagHandler; + + public EquipSetWearingHandler _WearingHandler; + + public XCharacterAttrView _CharacterAttrHandler; + + public EnhanceView _EnhanceHandler; + + public SmeltMainHandler _SmeltMainHandler; + + public EnchantOperateHandler _EnchantHandler; + + public ForgeMainHandler _ForgeMainHandler; + + public ArtifactBagHandler _ArtifactBagHandler; + + public EquipUpgradeHandler _equipUpgradeHandler; + + public EquipFusionHandler _equipFusionHandler; + + private DlgHandlerBase _RightPopHandler; + + private Transform m_leftPanelTra; + + private Transform m_rightPanelTra; + + private Transform m_jadeFrameTra; + + private GameObject m_items; + + private IXUIButton m_Photo; + + private Transform m_useItemEffect; + + public XBagWindow BagWindow; + + public XItemMorePowerfulTipMgr NewItemMgr = new XItemMorePowerfulTipMgr(); + + public XItemMorePowerfulTipMgr RedPointMgr = new XItemMorePowerfulTipMgr(); + + protected override void Init() + { + base.Init(); + this.m_leftPanelTra = base.uiBehaviour.transform.Find("Bg/LeftPanel"); + this.m_rightPanelTra = base.uiBehaviour.transform.Find("Bg/RightPanel"); + this.m_jadeFrameTra = this.m_leftPanelTra.Find("JadeFrame"); + this.m_useItemEffect = base.uiBehaviour.transform.Find("Bg/UseItemEffect"); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_Item); + this.NewItemMgr.Load("New"); + this.NewItemMgr.SetupPool(this.m_rightPanelTra.gameObject); + this.RedPointMgr.Load("ItemMorePowerfulTip2"); + this.RedPointMgr.SetupPool(this.m_rightPanelTra.gameObject); + this.m_items = this.m_rightPanelTra.Find("Items").gameObject; + this.m_Photo = (base.uiBehaviour.transform.Find("Bg/SysAPhoto").GetComponent("XUIButton") as IXUIButton); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = null != this.m_useItemEffect; + if (flag) + { + this.m_useItemEffect.gameObject.SetActive(false); + } + this._RightPopHandler = null; + this.m_Photo.SetVisible(true); + } + + protected override void OnHide() + { + bool flag = this.m_useItemEffect != null; + if (flag) + { + this.m_useItemEffect.gameObject.SetActive(false); + } + base.OnHide(); + } + + public override void RegisterEvent() + { + this.m_Photo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowScreenShotShare)); + base.RegisterEvent(); + } + + public override void StackRefresh() + { + bool flag = this._InfoView != null; + if (flag) + { + this._InfoView.StackRefresh(); + } + base.StackRefresh(); + } + + public override void LeaveStackTop() + { + bool flag = this.m_useItemEffect != null; + if (flag) + { + this.m_useItemEffect.gameObject.SetActive(false); + } + } + + protected override void OnLoad() + { + this.InitItems(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._EquipBagHandler); + DlgHandlerBase.EnsureUnload(ref this._InfoView); + DlgHandlerBase.EnsureUnload(ref this._equipHandler); + DlgHandlerBase.EnsureUnload(ref this._JadeBagHandler); + DlgHandlerBase.EnsureUnload(ref this._JadeEquipHandler); + DlgHandlerBase.EnsureUnload(ref this._JadeComposeHandler); + DlgHandlerBase.EnsureUnload(ref this._JadeComposeFrameHandler); + DlgHandlerBase.EnsureUnload(ref this._ItemBagHandler); + DlgHandlerBase.EnsureUnload(ref this._EmblemBagHandler); + DlgHandlerBase.EnsureUnload(ref this._EmblemEquipHandler); + DlgHandlerBase.EnsureUnload(ref this._DesignationHandler); + DlgHandlerBase.EnsureUnload(ref this._FashionBagHandler); + DlgHandlerBase.EnsureUnload(ref this._WearingHandler); + DlgHandlerBase.EnsureUnload>(ref this._CharacterAttrHandler); + DlgHandlerBase.EnsureUnload(ref this._SmeltMainHandler); + DlgHandlerBase.EnsureUnload(ref this._EnhanceHandler); + DlgHandlerBase.EnsureUnload(ref this._EnchantHandler); + DlgHandlerBase.EnsureUnload(ref this._ForgeMainHandler); + DlgHandlerBase.EnsureUnload(ref this._ArtifactFrameHandler); + DlgHandlerBase.EnsureUnload(ref this._ArtifactBagHandler); + DlgHandlerBase.EnsureUnload(ref this._equipUpgradeHandler); + DlgHandlerBase.EnsureUnload(ref this._equipFusionHandler); + this.BagWindow = null; + this.NewItemMgr.Unload(); + this.RedPointMgr.Unload(); + base.OnUnload(); + } + + public override void SetupHandlers(XSysDefine sys) + { + XSysDefine xsysDefine = sys; + if (xsysDefine <= XSysDefine.XSys_Item_Jade) + { + if (xsysDefine == XSysDefine.XSys_Fashion) + { + this.m_items.SetActive(false); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._FashionBagHandler, this.m_rightPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._InfoView, this.m_leftPanelTra, true, this)); + goto IL_3B1; + } + if (xsysDefine == XSysDefine.XSys_Item_Equip) + { + this.m_items.SetActive(true); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._equipHandler, this.m_leftPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._EquipBagHandler, this.m_rightPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._InfoView, this.m_leftPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._WearingHandler, this.m_rightPanelTra, false, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate>(ref this._CharacterAttrHandler, this.m_leftPanelTra, false, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._EnhanceHandler, this.m_rightPanelTra, false, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._SmeltMainHandler, this.m_rightPanelTra, false, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._EnchantHandler, this.m_rightPanelTra, false, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._ForgeMainHandler, this.m_rightPanelTra, false, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._equipUpgradeHandler, this.m_rightPanelTra, false, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._equipFusionHandler, this.m_rightPanelTra, false, this)); + this._CharacterAttrHandler.SetAttributes(XSingleton.singleton.XPlayerData); + goto IL_3B1; + } + if (xsysDefine == XSysDefine.XSys_Item_Jade) + { + this.m_items.SetActive(false); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._JadeBagHandler, this.m_rightPanelTra, false, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._JadeEquipHandler, this.m_jadeFrameTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._JadeComposeFrameHandler, this.m_rightPanelTra, false, this)); + goto IL_3B1; + } + } + else if (xsysDefine <= XSysDefine.XSys_Bag_Item) + { + if (xsysDefine == XSysDefine.XSys_Char_Emblem) + { + this.m_items.SetActive(true); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._EmblemBagHandler, this.m_rightPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._EmblemEquipHandler, this.m_leftPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._SmeltMainHandler, this.m_rightPanelTra, false, this)); + goto IL_3B1; + } + if (xsysDefine == XSysDefine.XSys_Bag_Item) + { + this.m_items.SetActive(false); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._ItemBagHandler, this.m_rightPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._InfoView, this.m_leftPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._JadeComposeFrameHandler, this.m_rightPanelTra, false, this)); + goto IL_3B1; + } + } + else + { + if (xsysDefine == XSysDefine.XSys_Design_Designation) + { + this.m_items.SetActive(false); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._DesignationHandler, this.m_rightPanelTra, true, this)); + goto IL_3B1; + } + if (xsysDefine == XSysDefine.XSys_Artifact) + { + this.m_items.SetActive(false); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._ArtifactBagHandler, this.m_rightPanelTra, true, this)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._ArtifactFrameHandler, this.m_leftPanelTra, true, this)); + goto IL_3B1; + } + } + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + return; + IL_3B1: + bool flag = sys == XSysDefine.XSys_Fashion_Fashion; + if (flag) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag2 = specificDocument.HasOneFashionSuit() && XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_Guest && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Photo); + if (flag2) + { + this.m_Photo.SetVisible(true); + } + else + { + this.m_Photo.SetVisible(false); + } + } + else + { + this.m_Photo.SetVisible(false); + } + } + + public void PlayUseItemEffect(bool enable) + { + bool flag = null != this.m_useItemEffect; + if (flag) + { + this.m_useItemEffect.gameObject.SetActive(enable); + } + } + + public void OnLevelChange() + { + bool flag = this._equipHandler != null && this._equipHandler.active; + if (flag) + { + this._equipHandler.ShowEquipments(); + } + bool flag2 = this._ArtifactFrameHandler != null && this._ArtifactFrameHandler.IsVisible(); + if (flag2) + { + this._ArtifactFrameHandler.ShowArtifacts(); + } + } + + public void ShowRightPopView(DlgHandlerBase toOpenHandler) + { + bool flag = toOpenHandler == null; + if (!flag) + { + this.OnPopHandlerSetVisible(true, toOpenHandler); + bool flag2 = !toOpenHandler.IsVisible(); + if (flag2) + { + toOpenHandler.SetVisible(true); + } + else + { + toOpenHandler.RefreshData(); + } + } + } + + public void OnPopHandlerSetVisible(bool bVisible, DlgHandlerBase toOpenHandler = null) + { + if (bVisible) + { + bool flag = this._RightPopHandler != toOpenHandler && this._RightPopHandler != null; + if (flag) + { + this._RightPopHandler.SetVisible(false); + } + this._RightPopHandler = toOpenHandler; + } + else + { + this._RightPopHandler = null; + } + } + + private void InitItems() + { + this.BagWindow = new XBagWindow(this.m_items, null, null); + this.BagWindow.Init(); + } + + private bool OnShowScreenShotShare(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.ShowCharView(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs.meta new file mode 100644 index 00000000..6fe76a61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemSystemDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b61267f2346a3a340bcc8f01eb0855f1 +timeCreated: 1611404396 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlg.cs new file mode 100644 index 00000000..610332d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlg.cs @@ -0,0 +1,159 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ItemTooltipDlg : TooltipDlg + { + public override string fileName + { + get + { + return "GameSystem/ItemToolTipDlg"; + } + } + + private bool m_bIsNeedTimeUpdate = false; + + private IXUILabel m_timeLab; + + private string m_tempStr = string.Empty; + + private float m_nextTime = 0f; + + protected override void Init() + { + base.Init(); + this.m_OperateList[0, 0] = new TooltipButtonOperateItemUse(); + this.m_OperateList[0, 1] = new TooltipButtonOperateItemAny(); + this.m_OperateList[0, 2] = new TooltipButtonOperateRecycle(XSysDefine.XSys_Bag_Item); + this.m_OperateList[0, 3] = new TooltipButtonOperateSell(); + this.m_OperateList[0, 4] = new TooltipButtonOperateCompose(); + } + + public void ShowToolTip(ulong MainUID, ulong CompareUID, bool bShowButtons = true) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(MainUID); + XItem xitem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(CompareUID); + bool flag = xitem.uid == 0UL; + if (flag) + { + xitem = null; + } + this.ShowToolTip(itemByUID, xitem, bShowButtons, 0u); + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + ItemType itemType = (ItemType)data.ItemType; + if (itemType != ItemType.ENCHANT) + { + base._SetupLevel(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 1); + base._SetupType(goToolTip, data, 2); + } + else + { + XEnchantDocument specificDocument = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + EnchantEquip.RowData enchantEquipData = specificDocument.GetEnchantEquipData(data.ItemID); + base._SetTopFrameLabel(goToolTip, 0, XStringDefineProxy.GetString("ToolTipText_Level"), XStringDefineProxy.GetString("ToolTipText_UnderLevel", new object[] + { + data.ReqLevel.ToString() + })); + base._SetTopFrameLabel(goToolTip, 1, XStringDefineProxy.GetString("ToolTipText_Part"), (enchantEquipData != null) ? XStringDefineProxy.GetString("ToolTipText_EnchantType" + enchantEquipData.VisiblePos.ToString()) : string.Empty); + base._SetupType(goToolTip, data, 2); + } + this.m_timeLab = goToolTip.transform.Find("TopFrame/countdown").GetComponent(); + this.m_bIsNeedTimeUpdate = true; + this.m_timeLab.gameObject.SetActive(true); + this.SetTimeLab(); + } + + private void SetTimeLab() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.mainItemUID); + bool flag = itemByUID == null || this.m_timeLab.gameObject == null; + if (flag) + { + this.m_timeLab.gameObject.SetActive(false); + this.m_bIsNeedTimeUpdate = false; + } + else + { + uint serverTimeSince = XActivityDocument.Doc.ServerTimeSince1970; + bool flag2 = serverTimeSince >= itemByUID.bexpirationTime; + if (flag2) + { + this.m_bIsNeedTimeUpdate = false; + this.m_timeLab.gameObject.SetActive(false); + } + else + { + this.m_tempStr = XSingleton.singleton.TimeDuarationFormatString((int)(itemByUID.bexpirationTime - serverTimeSince), 4); + this.m_tempStr = XSingleton.singleton.ReplaceReturn(string.Format("{0}{1}", XSingleton.singleton.GetString("TipsEndTime"), this.m_tempStr)); + this.m_timeLab.SetText(this.m_tempStr); + } + } + } + + protected override void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem item, XItem compareItem, bool bMain) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + this._SetupDescription(goToolTip, itemConf); + } + + protected override void SetupOtherFrame(GameObject goToolTip, ItemList.RowData data) + { + this._SetupDescription(goToolTip, data); + } + + protected void _SetupDescription(GameObject goToolTip, ItemList.RowData data) + { + Transform transform = goToolTip.transform; + IXUISprite ixuisprite = transform.Find("ScrollPanel/Description").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = ixuisprite.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + bool flag = data == null; + if (flag) + { + ixuilabel.SetText(""); + } + else + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(data.ItemDescription)); + } + ixuisprite.spriteHeight = ixuilabel.spriteHeight + -(int)ixuilabel.gameObject.transform.localPosition.y; + this.totalFrameHeight += (float)ixuisprite.spriteHeight; + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_bIsNeedTimeUpdate && Time.realtimeSinceStartup >= this.m_nextTime; + if (flag) + { + this.m_nextTime = Time.realtimeSinceStartup + 60f; + this.SetTimeLab(); + } + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + bool flag = !this.bShowButtons; + if (!flag) + { + if (bMain) + { + base._SetupButtonVisiability(goToolTip, 0, item); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlg.cs.meta new file mode 100644 index 00000000..9c8dd004 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68de21bf1d3a5fb498cd6465b1b84bac +timeCreated: 1611403884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlgBehaviour.cs new file mode 100644 index 00000000..6473233e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlgBehaviour.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient.UI +{ + internal class ItemTooltipDlgBehaviour : TooltipDlgBehaviour + { + protected override void Awake() + { + base.Awake(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlgBehaviour.cs.meta new file mode 100644 index 00000000..e94d793b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemTooltipDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea9d4fd3dc44ba34d8949617e7f9e8df +timeCreated: 1611404780 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlg.cs new file mode 100644 index 00000000..2724279f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlg.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ItemUseListDlg : DlgBase + { + public override string fileName + { + get + { + return "Hall/ShapeshiftDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private List m_ItemList = null; + + private ButtonClickEventHandler m_ClickHandler = null; + + protected override void Init() + { + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdated)); + } + + public void SetTitle(string text) + { + base.uiBehaviour.m_Title.SetText(text); + } + + public void Set(ButtonClickEventHandler clickHandler, List itemList) + { + bool flag = itemList == null; + if (!flag) + { + this.m_ItemList = itemList; + this.m_ClickHandler = clickHandler; + this.SetVisible(true, true); + } + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this.m_ItemList != null; + if (flag) + { + base.uiBehaviour.m_WrapContent.SetContentCount(this.m_ItemList.Count, false); + } + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + + private void OnWrapContentUpdated(Transform t, int index) + { + bool flag = index < 0 || this.m_ItemList == null || index >= this.m_ItemList.Count; + if (!flag) + { + XItem item = this.m_ItemList[index]; + Transform transform = t.Find("Item"); + IXUIButton ixuibutton = t.Find("BtnUse").GetComponent("XUIButton") as IXUIButton; + XSingleton.singleton.DrawItem(transform.gameObject, item); + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnUseClicked)); + } + } + + private bool OnUseClicked(IXUIButton btn) + { + bool flag = this.m_ClickHandler != null; + if (flag) + { + this.m_ClickHandler(btn); + } + this.SetVisible(false, true); + return true; + } + + private void OnCloseClicked(IXUISprite iSp) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlg.cs.meta new file mode 100644 index 00000000..0d3714f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c6e31f03d8186f340b9cb149ff4e93fa +timeCreated: 1611404528 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlgBehaviour.cs new file mode 100644 index 00000000..bdb166db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlgBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class ItemUseListDlgBehaviour : DlgBehaviourBase + { + public IXUILabel m_Title = null; + + public IXUISprite m_Bg = null; + + public IXUISprite m_Close = null; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Title/Label"); + this.m_Title = (transform.GetComponent("XUILabel") as IXUILabel); + transform = base.transform.Find("Bg/Close"); + this.m_Close = (transform.GetComponent("XUISprite") as IXUISprite); + transform = base.transform.Find("Bg"); + this.m_Bg = (transform.GetComponent("XUISprite") as IXUISprite); + transform = base.transform.Find("Bg/ScrollView"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = base.transform.Find("Bg/ScrollView/WrapContent"); + this.m_WrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlgBehaviour.cs.meta new file mode 100644 index 00000000..9c529da4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ItemUseListDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2c158d423cdcea438d7e7a3366575f1 +timeCreated: 1611404495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeBagHandler.cs b/Client/Assets/Scripts/XMainClient/UI/JadeBagHandler.cs new file mode 100644 index 00000000..7d127e15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeBagHandler.cs @@ -0,0 +1,172 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class JadeBagHandler : DlgHandlerBase + { + private XItemMorePowerfulTipMgr powerfullMgr + { + get + { + return DlgBase.singleton.RedPointMgr; + } + } + + protected override string FileName + { + get + { + return "ItemNew/JadeListPanel"; + } + } + + private XJadeDocument _doc = null; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ScrollView; + + private IXUISprite m_Close; + + private IXUILabel m_Limit; + + private ulong m_TargetJadeUID = 0UL; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + this.m_WrapContent = (base.PanelObject.transform.Find("BagPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ScrollView = (base.PanelObject.transform.Find("BagPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Close = (base.PanelObject.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_Limit = (base.PanelObject.transform.Find("Limit").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnBagWrapContentUpdated)); + this.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + this._doc.NewItems.bCanClear = true; + } + + protected override void OnHide() + { + this.powerfullMgr.ReturnAll(); + this._doc.NewItems.TryClear(); + base.OnHide(); + } + + public override void OnUnload() + { + this.powerfullMgr.Unload(); + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.m_WrapContent.SetContentCount(this._doc.SelectedSlotItemList.Count, false); + this.m_ScrollView.ResetPosition(); + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + int num = this._doc.EquipLevel2JadeLevel(level); + this.m_Limit.SetText(XStringDefineProxy.GetString("JADE_LEVEL_REQUIREMENT", new object[] + { + level.ToString(), + num.ToString() + })); + } + else + { + this.m_Limit.SetText(string.Empty); + } + } + + private void _OnBagWrapContentUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.SelectedSlotItemList.Count; + if (!flag) + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.selectedEquip) as XEquipItem; + bool flag2 = xequipItem == null; + if (!flag2) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + bool flag3 = equipConf == null; + if (!flag3) + { + XJadeItem xjadeItem = this._doc.SelectedSlotItemList[index] as XJadeItem; + JadeEquipHandler.DrawJadeWithAttr(t.gameObject, this._doc.GetSlot(equipConf.EquipPos, this._doc.selectedSlotIndex), xjadeItem, 0u); + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnBagJadeClicked)); + IXUISprite ixuisprite2 = t.Find("JadeTpl/Icon").GetComponent("XUISprite") as IXUISprite; + bool flag4 = this._doc.CanBeMorePowerful(xequipItem, this._doc.selectedSlotIndex, xjadeItem); + if (flag4) + { + this.powerfullMgr.SetTip(ixuisprite2); + } + else + { + this.powerfullMgr.ReturnInstance(ixuisprite2); + } + t.name = XSingleton.singleton.StringCombine("jade", xjadeItem.itemID.ToString()); + } + } + } + } + + private void _OnBagJadeClicked(IXUISprite iSp) + { + int num = (int)iSp.ID; + bool flag = num < 0 || num >= this._doc.SelectedSlotItemList.Count; + if (!flag) + { + XItem xitem = this._doc.SelectedSlotItemList[num]; + this.m_TargetJadeUID = xitem.uid; + bool bBinding = xitem.bBinding; + if (bBinding) + { + this._doc.ReqPutOnJade(this.m_TargetJadeUID); + base.SetVisible(false); + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("BINDING_CONFIRM"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Equip)); + } + } + } + + private bool _Equip(IXUIButton btn) + { + this._doc.ReqPutOnJade(this.m_TargetJadeUID); + XSingleton.singleton.CloseModalDlg(); + base.SetVisible(false); + return true; + } + + private void _OnCloseClicked(IXUISprite iSp) + { + base.SetVisible(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeBagHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/JadeBagHandler.cs.meta new file mode 100644 index 00000000..0751c584 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeBagHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4f93ff375f0fe145998935bee98c68c +timeCreated: 1611404394 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeComposeFrameHandler.cs b/Client/Assets/Scripts/XMainClient/UI/JadeComposeFrameHandler.cs new file mode 100644 index 00000000..8f1fd396 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeComposeFrameHandler.cs @@ -0,0 +1,481 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class JadeComposeFrameHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/JadeComposeFrame"; + } + } + + private XJadeDocument m_doc = null; + + private IXUIButton m_closedBtn; + + private IXUIButton m_composeBtn; + + private IXUIButton m_reduceBtn; + + private IXUIButton m_addBtn; + + private IXUILabel m_costLab; + + private IXUILabel m_costMallLab; + + private IXUILabel m_lackJadTipsLab; + + private GameObject m_sourceJade; + + private GameObject m_targetJade; + + private GameObject m_hadShopPos; + + private GameObject m_noShopPos; + + private GameObject m_shopPos; + + private Transform m_effectParentTra; + + private XUIPool m_jadeTplPool1 = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_jadeTplPool2 = new XUIPool(XSingleton.singleton.m_uiTool); + + private XFx m_fx = null; + + private int m_type = 0; + + private ulong m_jadeUid = 0UL; + + private uint m_itemId = 0u; + + private uint m_curLevel = 0u; + + private uint m_addLevel = 0u; + + private ulong m_needGold = 0UL; + + private uint m_needMall = 0u; + + private float m_delayTime = 0.3f; + + private uint m_token = 0u; + + private bool m_isNeedPlayEffect = false; + + private bool m_effectIsEnd = true; + + private float m_coolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + this.m_closedBtn = (base.PanelObject.transform.Find("ComposeMenu/Close").GetComponent("XUIButton") as IXUIButton); + this.m_composeBtn = (base.PanelObject.transform.Find("ComposeMenu/BtnCompose").GetComponent("XUIButton") as IXUIButton); + this.m_reduceBtn = (base.PanelObject.transform.Find("ComposeMenu/minus1").GetComponent("XUIButton") as IXUIButton); + this.m_addBtn = (base.PanelObject.transform.Find("ComposeMenu/add1").GetComponent("XUIButton") as IXUIButton); + this.m_costLab = (base.PanelObject.transform.Find("ComposeMenu/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_costMallLab = (base.PanelObject.transform.Find("ComposeMenu/CostMall").GetComponent("XUILabel") as IXUILabel); + this.m_lackJadTipsLab = (base.PanelObject.transform.Find("ComposeMenu/CostJade/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_sourceJade = base.PanelObject.transform.Find("ComposeMenu/SourceJade/JadeTpl").gameObject; + this.m_targetJade = base.PanelObject.transform.Find("ComposeMenu/TargetJade/JadeTpl").gameObject; + this.m_effectParentTra = base.PanelObject.transform.Find("ComposeMenu/Effect"); + Transform transform = base.PanelObject.transform.Find("ComposeMenu/CostJade"); + this.m_hadShopPos = transform.Find("Pos1/Panel").gameObject; + this.m_noShopPos = transform.Find("Pos2/Panel").gameObject; + this.m_shopPos = transform.Find("Shop").gameObject; + this.m_jadeTplPool1.SetupPool(transform.gameObject, transform.Find("Pos1/Panel/JadeTpl1").gameObject, 1u, false); + this.m_jadeTplPool2.SetupPool(transform.gameObject, transform.Find("Pos2/Panel/JadeTpl2").gameObject, 1u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClosed)); + this.m_composeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickComposed)); + this.m_reduceBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickReduceBtn)); + this.m_addBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAddBtn)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_effectIsEnd = true; + this.m_isNeedPlayEffect = false; + this.FillContent(); + } + + protected override void OnHide() + { + this.m_jadeTplPool1.ReturnAll(true); + this.m_jadeTplPool2.ReturnAll(true); + XSingleton.singleton.KillTimer(this.m_token); + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + this.m_effectIsEnd = true; + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + this.m_effectIsEnd = true; + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + } + + public override void RefreshData() + { + base.RefreshData(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public void ShowUi(int type, uint sourceItemId, uint curJadeLevel, ulong uid = 0UL) + { + this.m_type = type; + this.m_itemId = sourceItemId; + this.m_curLevel = curJadeLevel; + this.m_jadeUid = uid; + this.m_addLevel = 1u; + this.m_isNeedPlayEffect = true; + bool flag = base.IsVisible(); + if (flag) + { + this.FillContent(); + } + else + { + base.SetVisible(true); + } + } + + private void FillContent() + { + bool isNeedPlayEffect = this.m_isNeedPlayEffect; + if (isNeedPlayEffect) + { + this.PlayEffect(); + this.m_isNeedPlayEffect = false; + } + else + { + XSingleton.singleton.jadeItemDrawer.DrawItem(this.m_sourceJade, (int)this.m_itemId, 1, false); + IXUISprite ixuisprite = this.m_sourceJade.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this.m_itemId; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedItemClicked)); + this.FillChangedItem(); + } + } + + private void FillChangedItem() + { + bool flag = XSingleton.singleton.XPlayerData == null; + if (!flag) + { + int num = this.m_doc.JadeLevelToMosaicLevel(this.m_curLevel + this.m_addLevel); + bool flag2 = num == -1 || (long)num > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag2) + { + this.m_addLevel = 0u; + } + uint targetItemId = this.m_doc.GetTargetItemId(this.m_itemId, this.m_addLevel); + this.m_doc.TargetItemId = targetItemId; + bool flag3 = targetItemId == 0u; + if (!flag3) + { + XSingleton.singleton.jadeItemDrawer.DrawItem(this.m_targetJade, (int)targetItemId, 1, false); + IXUISprite ixuisprite = this.m_targetJade.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)targetItemId; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedItemClicked)); + List> list; + XTuple xtuple; + bool needItems = this.m_doc.GetNeedItems(targetItemId, this.m_itemId, this.m_type, out list, out xtuple, out this.m_needGold, out this.m_needMall); + ulong virtualItemCount = XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.GOLD); + bool flag4 = this.m_needGold > virtualItemCount; + if (flag4) + { + this.m_costLab.SetText(string.Format("[ff0000]{0}[-]", this.m_needGold)); + } + else + { + this.m_costLab.SetText(this.m_needGold.ToString()); + } + this.m_jadeTplPool1.ReturnAll(true); + this.m_jadeTplPool2.ReturnAll(true); + bool flag5 = needItems; + GameObject gameObject2; + if (flag5) + { + this.m_costMallLab.gameObject.SetActive(true); + this.m_lackJadTipsLab.gameObject.SetActive(true); + virtualItemCount = XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN); + bool flag6 = (ulong)this.m_needMall > virtualItemCount; + if (flag6) + { + this.m_costMallLab.SetText(string.Format("[ff0000]{0}[-]", this.m_needMall)); + } + else + { + this.m_costMallLab.SetText(this.m_needMall.ToString()); + } + this.m_lackJadTipsLab.SetText(string.Format(XSingleton.singleton.GetString("NeedBuyOtherJade"), xtuple.Item2)); + this.m_shopPos.SetActive(true); + GameObject gameObject = this.m_shopPos.transform.Find("JadeTpl").gameObject; + XSingleton.singleton.jadeItemDrawer.DrawItem(gameObject, (int)xtuple.Item1, (int)xtuple.Item2, false); + ixuisprite = (gameObject.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = (ulong)xtuple.Item1; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedItemClicked)); + this.m_noShopPos.transform.parent.gameObject.SetActive(false); + this.m_hadShopPos.transform.parent.gameObject.SetActive(true); + gameObject2 = this.m_hadShopPos; + for (int i = 0; i < list.Count; i++) + { + gameObject = this.m_jadeTplPool1.FetchGameObject(false); + gameObject.transform.parent = gameObject2.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(i * this.m_jadeTplPool1.TplWidth), 0f, 0f); + XSingleton.singleton.jadeItemDrawer.DrawItem(gameObject, (int)list[i].Item1, (int)list[i].Item2, false); + ixuisprite = (gameObject.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = (ulong)list[i].Item1; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedItemClicked)); + } + } + else + { + this.m_shopPos.SetActive(false); + this.m_costMallLab.gameObject.SetActive(false); + this.m_lackJadTipsLab.gameObject.SetActive(false); + this.m_hadShopPos.transform.parent.gameObject.SetActive(false); + this.m_noShopPos.transform.parent.gameObject.SetActive(true); + gameObject2 = this.m_noShopPos; + for (int j = 0; j < list.Count; j++) + { + GameObject gameObject = this.m_jadeTplPool2.FetchGameObject(false); + gameObject.transform.parent = gameObject2.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(j * this.m_jadeTplPool2.TplWidth), 0f, 0f); + XSingleton.singleton.jadeItemDrawer.DrawItem(gameObject, (int)list[j].Item1, (int)list[j].Item2, false); + ixuisprite = (gameObject.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = (ulong)list[j].Item1; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedItemClicked)); + } + } + gameObject2.SetActive(false); + gameObject2.SetActive(true); + } + } + } + + private void PlayEffect() + { + this.m_effectIsEnd = false; + bool flag = this.m_fx == null; + if (flag) + { + this.m_fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_lyqh_02", this.m_effectParentTra, false); + } + else + { + this.m_fx.Play(); + } + XSingleton.singleton.KillTimer(this.m_token); + this.m_token = XSingleton.singleton.SetTimer(this.m_delayTime, new XTimerMgr.ElapsedEventHandler(this.DelayFill), null); + } + + private void DelayFill(object o = null) + { + XSingleton.singleton.jadeItemDrawer.DrawItem(this.m_sourceJade, (int)this.m_itemId, 1, false); + this.FillChangedItem(); + this.m_effectIsEnd = true; + } + + private bool OnClickClosed(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnClickComposed(IXUIButton btn) + { + bool flag = !this.m_effectIsEnd; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.SetButtonCool(this.m_coolTime); + if (flag2) + { + result = false; + } + else + { + bool flag3 = this.m_addLevel == 0u; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("JadeHadCurMax"), "fece00"); + result = false; + } + else + { + ulong virtualItemCount = XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.GOLD); + bool flag4 = virtualItemCount < this.m_needGold; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_LACKCOIN"), "fece00"); + result = false; + } + else + { + virtualItemCount = XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN); + bool flag5 = virtualItemCount < (ulong)this.m_needMall; + if (flag5) + { + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.DRAGON_COIN); + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_AUCT_DRAGONCOINLESS"), "fece00"); + result = false; + } + else + { + bool flag6 = this.m_needMall > 0u; + if (flag6) + { + string message = string.Format(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("JadeComposeTips")), this.m_needMall); + XSingleton.singleton.ShowModalDialog(message, new ButtonClickEventHandler(this.DoOK)); + } + else + { + bool flag7 = this.m_type == -1; + if (flag7) + { + this.m_doc.ReqComposeJade(this.m_jadeUid, this.m_addLevel); + } + else + { + this.m_doc.ReqUpdateJade((uint)this.m_type, this.m_addLevel); + } + } + result = true; + } + } + } + } + } + return result; + } + + private bool DoOK(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = this.m_type == -1; + if (flag) + { + this.m_doc.ReqComposeJade(this.m_jadeUid, this.m_addLevel); + } + else + { + this.m_doc.ReqUpdateJade((uint)this.m_type, this.m_addLevel); + } + return true; + } + + private bool OnClickReduceBtn(IXUIButton btn) + { + bool flag = this.m_addLevel <= 1u; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("JadeHadLeast"), "fece00"); + result = false; + } + else + { + this.m_addLevel -= 1u; + this.FillChangedItem(); + result = true; + } + return result; + } + + private bool OnClickAddBtn(IXUIButton btn) + { + bool flag = XSingleton.singleton.XPlayerData == null; + bool result; + if (flag) + { + result = false; + } + else + { + int num = this.m_doc.JadeLevelToMosaicLevel(this.m_curLevel + this.m_addLevel + 1u); + bool flag2 = num == -1 || (long)num > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("JadeHadCurMax"), "fece00"); + result = false; + } + else + { + this.m_addLevel += 1u; + this.FillChangedItem(); + result = true; + } + } + return result; + } + + private void OnSelectedItemClicked(IXUISprite iSp) + { + ulong id = iSp.ID; + XItem xitem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(id); + bool flag = xitem == null; + if (flag) + { + xitem = XBagDocument.MakeXItem((int)id, false); + } + XSingleton.singleton.ShowTooltipDialog(xitem, null, iSp, false, 0u); + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeComposeFrameHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/JadeComposeFrameHandler.cs.meta new file mode 100644 index 00000000..3017e986 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeComposeFrameHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0949722b15e1c8144bc00ce70e853204 +timeCreated: 1611403153 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeComposeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/JadeComposeHandler.cs new file mode 100644 index 00000000..1adb2fab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeComposeHandler.cs @@ -0,0 +1,329 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class JadeComposeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/JadeComposePanel"; + } + } + + private XJadeDocument _doc = null; + + public GameObject m_ComposeMenu; + + public IXUIButton m_BtnComposeOne; + + public IXUILabel m_ComposeMenuTitle; + + public IXUILabel m_ComposeCost; + + public uint BtnComposeID; + + public IXUIButton m_BtnCompose; + + public IXUICheckBox m_ComposeMax; + + public IXUICheckBox m_ComposeOne; + + public GameObject m_IconComposeSource; + + public GameObject m_IconComposeTarget; + + private int _sourceID; + + private int _sourceCount; + + private int _requiredCount; + + private int _targetID; + + private int _sourceBindCount; + + private int _useCount; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + this.m_ComposeMenu = base.PanelObject.transform.Find("ComposeMenu").gameObject; + this.m_IconComposeSource = this.m_ComposeMenu.transform.Find("SourceJade/JadeTpl").gameObject; + this.m_IconComposeTarget = this.m_ComposeMenu.transform.Find("TargetJade/JadeTpl").gameObject; + this.m_ComposeCost = (this.m_ComposeMenu.transform.Find("Cost").GetComponent("XUILabel") as IXUILabel); + this.m_BtnComposeOne = (this.m_ComposeMenu.transform.Find("BtnComposeOne").GetComponent("XUIButton") as IXUIButton); + this.m_BtnCompose = (this.m_ComposeMenu.transform.Find("BtnCompose").GetComponent("XUIButton") as IXUIButton); + this.m_ComposeMax = (this.m_ComposeMenu.transform.Find("ComposeMax").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ComposeOne = (this.m_ComposeMenu.transform.Find("ComposeOne").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ComposeMenuTitle = (this.m_ComposeMenu.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnComposeOne.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnComposeJadeEquipClicked)); + this.m_BtnCompose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOnComposeJadeBagClicked)); + this.m_ComposeMax.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnComposeMaxCheckBoxClicked)); + this.m_ComposeOne.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnComposeOneCheckBoxClicked)); + IXUIButton ixuibutton = this.m_ComposeMenu.transform.Find("Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnComposeCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void RefreshData() + { + base.RefreshData(); + } + + private void _OnCloseClicked(IXUISprite iSp) + { + base.SetVisible(false); + } + + public void ToggleComposeMenu(bool open, int type = 0, int sourceID = 0, int sourceCount = 0, int requiredCount = 0, int targetID = 0, int sourceBindCount = -1) + { + base.SetVisible(open); + if (open) + { + this._sourceID = sourceID; + this._sourceCount = sourceCount; + this._requiredCount = requiredCount; + this._targetID = targetID; + this._sourceBindCount = sourceBindCount; + bool flag = type == -1; + if (flag) + { + this.m_ComposeMax.gameObject.SetActive(true); + this.m_ComposeOne.gameObject.SetActive(true); + this.m_BtnCompose.gameObject.SetActive(true); + this.m_BtnComposeOne.gameObject.SetActive(false); + this.DrawComposeItem(true); + this.m_ComposeMax.bChecked = true; + this.m_BtnCompose.ID = 1UL; + } + else + { + bool flag2 = type >= 0; + if (flag2) + { + this.m_ComposeMax.gameObject.SetActive(false); + this.m_ComposeOne.gameObject.SetActive(false); + this.m_BtnCompose.gameObject.SetActive(false); + this.m_BtnComposeOne.gameObject.SetActive(true); + this.DrawComposeItem(false); + this.m_BtnComposeOne.ID = (ulong)((long)type); + } + } + } + } + + protected bool OnComposeCloseClicked(IXUIButton btn) + { + this.ToggleComposeMenu(false, 0, 0, 0, 0, 0, -1); + return true; + } + + protected bool OnComposeJadeEquipClicked(IXUIButton btn) + { + this.ToggleComposeMenu(false, 0, 0, 0, 0, 0, -1); + return true; + } + + private bool _Compose(IXUIButton btn) + { + bool flag = this.BtnComposeID == 1u; + if (flag) + { + this.ToggleComposeMenu(false, 0, 0, 0, 0, 0, -1); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool _NoCompose(IXUIButton btn) + { + return true; + } + + protected bool OnOnComposeJadeBagClicked(IXUIButton btn) + { + this.BtnComposeID = (uint)btn.ID; + bool flag = false; + bool flag2 = false; + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + JadeTable.RowData byJadeID = specificDocument.jadeTable.GetByJadeID((uint)this._sourceID); + bool flag3 = XSingleton.singleton.XPlayerData == null; + bool result; + if (flag3) + { + result = false; + } + else + { + uint level = XSingleton.singleton.XPlayerData.Level; + int num = specificDocument.JadeLevelToMosaicLevel(byJadeID.JadeLevel + 1u); + bool flag4 = (long)num > (long)((ulong)level) && !DlgBase.singleton.GetTempTip(XTempTipDefine.OD_JADE_UPGRADE_NO_EQUIP); + if (flag4) + { + flag2 = true; + } + bool flag5 = this._sourceBindCount < this._useCount && this._sourceBindCount < this._sourceCount && this._useCount <= this._sourceCount && !DlgBase.singleton.GetTempTip(XTempTipDefine.OD_JADE_UPGRADE_NO_BIND); + if (flag5) + { + flag = true; + } + bool flag6 = flag2 && !flag; + if (flag6) + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("JADE_COMPOSE_TIP_EQUIP"), num), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Compose), null, false, XTempTipDefine.OD_JADE_UPGRADE_NO_EQUIP, 50); + result = false; + } + else + { + bool flag7 = !flag2 && flag; + if (flag7) + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("JADE_COMPOSE_TIP_BIND"), new object[0]), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Compose), null, false, XTempTipDefine.OD_JADE_UPGRADE_NO_BIND, 50); + result = false; + } + else + { + bool flag8 = flag2 && flag; + if (flag8) + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("JADE_COMPOSE_TIP_BIND_EQUIP"), num), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Compose)); + result = false; + } + else + { + bool flag9 = this.BtnComposeID == 1u; + if (flag9) + { + this.ToggleComposeMenu(false, 0, 0, 0, 0, 0, -1); + } + result = true; + } + } + } + } + return result; + } + + protected bool OnComposeAllClicked(IXUIButton btn) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("JADE_DIALOG_COMPOSE_ALL"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._DoComposeAll)); + return true; + } + + private bool _DoComposeAll(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnComposeOneCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_BtnCompose.ID = 0UL; + this.DrawComposeItem(false); + result = true; + } + return result; + } + + private bool OnComposeMaxCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_BtnCompose.ID = 1UL; + this.DrawComposeItem(true); + result = true; + } + return result; + } + + private bool DrawComposeItem(bool isAll) + { + int num2; + int num3; + if (isAll) + { + bool flag = this._requiredCount == 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("Jade RequiredCount Is 0", null, null, null, null, null); + } + int num = this._sourceCount / this._requiredCount; + bool flag2 = num == 0; + if (flag2) + { + num = 1; + } + num2 = num * this._requiredCount; + num3 = num; + this._useCount = num2; + } + else + { + num2 = this._requiredCount; + num3 = 1; + this._useCount = num2; + } + JadeTable.RowData byJadeID = this._doc.jadeTable.GetByJadeID((uint)this._sourceID); + bool flag3 = (ulong)byJadeID.JadeLevel < (ulong)((long)this._doc.JadeLevelUpCost.Length); + if (flag3) + { + int num4 = this._doc.JadeLevelUpCost[(int)byJadeID.JadeLevel] * num3; + this.m_ComposeCost.SetText(num4.ToString()); + } + else + { + this.m_ComposeCost.SetText(""); + XSingleton.singleton.AddErrorLog("Jade Level Up Cost No Find!\nJade Level:" + byJadeID.JadeLevel + 1, null, null, null, null, null); + } + XSingleton.singleton.jadeItemDrawer.DrawItem(this.m_IconComposeSource, this._sourceID, num2, true, this._sourceCount); + XSingleton.singleton.jadeItemDrawer.DrawItem(this.m_IconComposeTarget, this._targetID, num3, true); + XJadeItem jade = XBagDocument.MakeXItem(this._sourceID, false) as XJadeItem; + XJadeItem jade2 = XBagDocument.MakeXItem(this._targetID, false) as XJadeItem; + JadeEquipHandler.DrawAttr(this.m_IconComposeSource.gameObject.transform.parent.gameObject, jade); + JadeEquipHandler.DrawAttr(this.m_IconComposeTarget.gameObject.transform.parent.gameObject, jade2); + return true; + } + + public void RefreshComposeItem() + { + bool activeSelf = this.m_ComposeMenu.activeSelf; + if (activeSelf) + { + this._sourceCount = (int)XBagDocument.BagDoc.GetItemCount(this._sourceID); + this._sourceBindCount = (int)XBagDocument.BagDoc.GetItemCount(this._sourceID, true); + this.DrawComposeItem(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeComposeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/JadeComposeHandler.cs.meta new file mode 100644 index 00000000..4d38331f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeComposeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6413844b5b121794dadf2fbafc669fb8 +timeCreated: 1611403846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeEquipHandler.cs b/Client/Assets/Scripts/XMainClient/UI/JadeEquipHandler.cs new file mode 100644 index 00000000..c828dd38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeEquipHandler.cs @@ -0,0 +1,651 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class JadeEquipHandler : DlgHandlerBase + { + public CharacterEquipHandler EquipHandler + { + get + { + return this.m_EquipHandler; + } + } + + protected override string FileName + { + get + { + return "ItemNew/JadeEquipFrame"; + } + } + + private XJadeDocument _doc = null; + + private static uint SLOT_COUNT = 4u; + + private XUIPool m_JadeInfoPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_JadeSlots = new List(); + + private CharacterEquipHandler m_EquipHandler; + + private GameObject m_SelectedEquip; + + private GameObject m_EmptyEquiped; + + private GameObject m_EquipedPanel; + + private GameObject m_SelectMenu; + + private GameObject m_OperateMenu; + + private IXUITweenTool m_SelectMenuTween; + + private GameObject m_CanReplaceRedpoint; + + private GameObject m_CanUpdateRedpoint; + + private XUIPool m_JadeSlotSmallPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private GameObject m_EquipFrame; + + private GameObject[] m_JadeEquip = new GameObject[10]; + + private GameObject[,] m_JadeEquipItem; + + private XItemMorePowerfulTipMgr powerfullMgr = new XItemMorePowerfulTipMgr(); + + private IXUIButton m_JadeShop; + + private IXUIButton m_JadeUnload; + + private IXUIButton m_Help; + + private int m_SelectedSlotIndex; + + private string[][] m_SlotLevelLimit; + + protected override void Init() + { + base.Init(); + this.m_SlotLevelLimit = new string[XSingleton.singleton.MaxEquipPosType + 1][]; + JadeEquipHandler.SLOT_COUNT = 0u; + for (int i = 1; i <= XSingleton.singleton.MaxEquipPosType; i++) + { + this.m_SlotLevelLimit[i] = XSingleton.singleton.GetValue("JadeOpenLevel" + i).Split(XGlobalConfig.ListSeparator); + bool flag = JadeEquipHandler.SLOT_COUNT == 0u; + if (flag) + { + JadeEquipHandler.SLOT_COUNT = (uint)this.m_SlotLevelLimit[i].Length; + } + else + { + bool flag2 = JadeEquipHandler.SLOT_COUNT != (uint)this.m_SlotLevelLimit[i].Length; + if (flag2) + { + XSingleton.singleton.AddErrorLog("JadeOpenLevels are not the same.", null, null, null, null, null); + } + } + } + this.m_JadeEquipItem = new GameObject[XBagDocument.EquipMax, (int)JadeEquipHandler.SLOT_COUNT]; + this._doc = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + this._doc.equipHandler = this; + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_EquipedPanel = base.PanelObject.transform.Find("EquipedPanel").gameObject; + this.m_SelectMenu = this.m_EquipedPanel.transform.Find("SelectMenu").gameObject; + this.m_OperateMenu = this.m_EquipedPanel.transform.Find("OperateMenu").gameObject; + this.m_EmptyEquiped = base.PanelObject.transform.Find("Empty").gameObject; + this.m_SelectMenuTween = (this.m_SelectMenu.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_CanReplaceRedpoint = this.m_OperateMenu.transform.Find("BtnChange/RedPoint").gameObject; + this.m_CanUpdateRedpoint = this.m_OperateMenu.transform.Find("BtnUpgrade/RedPoint").gameObject; + this.m_SelectedEquip = base.PanelObject.transform.Find("SelectedEquip").gameObject; + Transform transform = this.m_EquipedPanel.transform.Find("JadeInfoTpl"); + this.powerfullMgr.LoadFromUI(transform.Find("RedPoint").gameObject); + this.powerfullMgr.SetupPool(base.PanelObject); + this.m_JadeInfoPool.SetupPool(transform.parent.gameObject, transform.gameObject, JadeEquipHandler.SLOT_COUNT, false); + int num = 0; + while ((long)num < (long)((ulong)JadeEquipHandler.SLOT_COUNT)) + { + GameObject gameObject = this.m_JadeInfoPool.FetchGameObject(false); + gameObject.transform.localPosition = this.m_EquipedPanel.transform.Find("Pos" + num).localPosition; + this.m_JadeSlots.Add(gameObject); + num++; + } + this.m_EquipFrame = base.PanelObject.transform.Find("EquipFrame").gameObject; + this.m_JadeSlotSmallPool.SetupPool(this.m_EquipFrame, this.m_EquipFrame.transform.Find("JadeTpl").gameObject, 10u, false); + for (int j = 0; j < 10; j++) + { + GameObject gameObject2 = this.m_EquipFrame.transform.Find("Part" + j).gameObject; + GameObject gameObject3 = this.m_JadeSlotSmallPool.FetchGameObject(false); + this.m_JadeEquip[j] = gameObject3; + XSingleton.singleton.AddChild(this.m_EquipFrame, gameObject3); + gameObject3.transform.localPosition = gameObject2.transform.localPosition; + int num2 = 0; + while ((long)num2 < (long)((ulong)JadeEquipHandler.SLOT_COUNT)) + { + transform = gameObject3.transform.Find("Jade" + num2); + bool flag3 = transform != null; + if (flag3) + { + this.m_JadeEquipItem[j, num2] = transform.gameObject; + } + else + { + this.m_JadeEquipItem[j, num2] = null; + } + num2++; + } + } + this.m_JadeShop = (base.PanelObject.transform.Find("JadeShop").GetComponent("XUIButton") as IXUIButton); + this.m_JadeUnload = (base.PanelObject.transform.Find("JadeUnload").GetComponent("XUIButton") as IXUIButton); + DlgHandlerBase.EnsureCreate(ref this.m_EquipHandler, this.m_EquipFrame, this, true); + this.m_EquipHandler.ShowNormalEquip(true); + this.m_EquipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this.OnEquipClick)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_JadeShop.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJadeShopClick)); + this.m_JadeUnload.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJadeUnloadClick)); + IXUIButton ixuibutton = this.m_OperateMenu.transform.Find("BtnUpgrade").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = this.m_SelectMenu.transform.Find("BtnTakeoff").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton3 = this.m_OperateMenu.transform.Find("BtnChange").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSelectedJadeUpgradeClicked)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSelectedJadeTakeoffClicked)); + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSelectedJadeChangeClicked)); + IXUISprite ixuisprite = this.m_SelectedEquip.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedEquipClick)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Item_Jade); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.m_EquipHandler.SetVisible(true); + List powerfulEquips = this._doc.UpdateRedPoints(); + for (int i = 0; i < XBagDocument.BagDoc.EquipBag.Length; i++) + { + XItem xitem = XBagDocument.BagDoc.EquipBag[i]; + bool flag = xitem == null || xitem.itemID == 0; + if (flag) + { + this.m_JadeEquip[i].SetActive(false); + } + else + { + this.m_JadeEquip[i].SetActive(true); + this.RefreshSmallJade(i); + } + } + this._DefaultSelect(powerfulEquips); + } + + private void _DefaultSelect(List powerfulEquips) + { + int[] array = new int[] + { + 4, + 3, + 2, + 1, + 0, + 9, + 8, + 7, + 6, + 5 + }; + int num = -1; + int num2 = -1; + XBodyBag equipBag = XSingleton.singleton.Doc.XBagDoc.EquipBag; + for (int i = XBagDocument.BodyPosition(EquipPosition.EQUIP_START); i < XBagDocument.BodyPosition(EquipPosition.EQUIP_END); i++) + { + int num3 = int.MinValue; + XItem xitem = equipBag[i]; + bool flag = xitem != null && xitem.itemID != 0; + if (flag) + { + num3 = array[i]; + for (int j = 0; j < powerfulEquips.Count; j++) + { + bool flag2 = powerfulEquips[j] == i; + if (flag2) + { + num3 += 10; + break; + } + } + } + bool flag3 = num < num3; + if (flag3) + { + num = num3; + num2 = i; + } + } + bool flag4 = num2 >= 0; + if (flag4) + { + XItem xitem2 = equipBag[num2]; + this._doc.SelectEquip(xitem2.uid); + } + else + { + this._doc.SelectEquip(0UL); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + XEquipItem equipNew = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.selectedEquip) as XEquipItem; + this.SetEquipNew(equipNew); + } + + private void RefreshSmallJade(int pos) + { + XItem xitem = XBagDocument.BagDoc.EquipBag[pos]; + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(xitem.uid) as XEquipItem; + int i = 0; + bool flag = xequipItem != null; + if (flag) + { + SeqListRef slotInfoByPos = this._doc.GetSlotInfoByPos((byte)pos); + while (i < (int)slotInfoByPos.count) + { + bool flag2 = (long)i >= (long)((ulong)JadeEquipHandler.SLOT_COUNT); + if (flag2) + { + break; + } + GameObject gameObject = this.m_JadeEquipItem[pos, i]; + bool flag3 = gameObject != null; + if (flag3) + { + XJadeItem xjadeItem = xequipItem.jadeInfo.jades[i]; + bool flag4 = this._doc.SlotLevelIsOpen((byte)pos, i); + if (flag4) + { + gameObject.SetActive(true); + GameObject gameObject2 = gameObject.transform.Find("Icon").gameObject; + gameObject2.SetActive(xjadeItem != null); + } + else + { + gameObject.SetActive(false); + } + } + i++; + } + while ((long)i < (long)((ulong)JadeEquipHandler.SLOT_COUNT)) + { + GameObject gameObject3 = this.m_JadeEquipItem[pos, i]; + bool flag5 = gameObject3 != null; + if (flag5) + { + gameObject3.SetActive(false); + } + i++; + } + } + } + + protected override void OnHide() + { + this.m_EquipHandler.SetVisible(false); + base.OnHide(); + } + + public override void OnUnload() + { + this.powerfullMgr.Unload(); + this._doc.equipHandler = null; + DlgHandlerBase.EnsureUnload(ref this.m_EquipHandler); + base.OnUnload(); + } + + public void OnEquipClick(IXUISprite iSp) + { + this._doc.SelectEquip(iSp.ID); + } + + public void OnSelectedEquipClick(IXUISprite iSp) + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + XSingleton.singleton.ShowTooltipDialog(xequipItem, null, iSp, false, 0u); + } + } + + private bool OnJadeShopClick(IXUIButton sp) + { + XSingleton.singleton.ShowItemAccess(198, null); + return true; + } + + private bool OnJadeUnloadClick(IXUIButton sp) + { + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + bool flag = specificDocument.selectedEquip == 0UL; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("JADE_DIALOG_NOEQUIP"), "fece00"); + result = false; + } + else + { + RpcC2G_TakeOffAllJade rpcC2G_TakeOffAllJade = new RpcC2G_TakeOffAllJade(); + rpcC2G_TakeOffAllJade.oArg.uid = specificDocument.selectedEquip; + XSingleton.singleton.Send(rpcC2G_TakeOffAllJade); + result = true; + } + return result; + } + + public void SetEquipNew(XEquipItem equip) + { + this.m_EquipHandler.ShowEquipments(); + this._ToggleOperateMenu(false, 0); + this.m_JadeSlots.Clear(); + this.m_JadeInfoPool.FakeReturnAll(); + XItemDrawerMgr.Param.bHideBinding = true; + XSingleton.singleton.DrawItem(this.m_SelectedEquip, equip); + this.m_EmptyEquiped.SetActive(equip == null); + this.m_EquipedPanel.SetActive(equip != null); + bool flag = equip != null; + if (flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(equip.itemID); + bool flag2 = equipConf == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("equipListRowData == null while id = ", equip.itemID.ToString(), null, null, null, null); + return; + } + bool flag3 = XSingleton.singleton.XPlayerData == null; + if (flag3) + { + return; + } + uint level = XSingleton.singleton.XPlayerData.Level; + SeqListRef slotInfoByPos = this._doc.GetSlotInfoByPos(equipConf.EquipPos); + for (int i = 0; i < (int)slotInfoByPos.count; i++) + { + bool flag4 = (long)i >= (long)((ulong)JadeEquipHandler.SLOT_COUNT); + if (flag4) + { + break; + } + GameObject gameObject = this.m_JadeInfoPool.FetchGameObject(false); + gameObject.transform.localPosition = this.m_EquipedPanel.transform.Find("Pos" + i.ToString()).localPosition; + this.m_JadeSlots.Add(gameObject); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSlotClicked)); + GameObject gameObject2 = gameObject.transform.Find("HasJade").gameObject; + GameObject gameObject3 = gameObject.transform.Find("Empty").gameObject; + GameObject gameObject4 = gameObject.transform.Find("Lock").gameObject; + bool flag5 = level >= slotInfoByPos[i, 1]; + if (flag5) + { + XJadeItem xjadeItem = equip.jadeInfo.jades[i]; + gameObject2.SetActive(xjadeItem != null); + gameObject3.SetActive(xjadeItem == null); + gameObject4.SetActive(false); + bool flag6 = xjadeItem != null; + if (flag6) + { + xjadeItem.bBinding = false; + JadeEquipHandler.DrawJadeWithAttr(gameObject2, slotInfoByPos[i, 0], xjadeItem, 1u); + } + else + { + JadeEquipHandler.DrawJadeWithAttr(gameObject3, slotInfoByPos[i, 0], xjadeItem, 1u); + } + } + else + { + gameObject2.SetActive(false); + gameObject3.SetActive(false); + gameObject4.SetActive(true); + IXUILabel ixuilabel = gameObject4.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(slotInfoByPos[i, 1].ToString()); + } + } + int pos; + bool flag7 = !XSingleton.singleton.Doc.XBagDoc.EquipBag.GetItemPos(equip.uid, out pos); + if (flag7) + { + XSingleton.singleton.AddErrorLog("No Find Equip uid=" + equip.uid, null, null, null, null, null); + return; + } + this.RefreshSmallJade(pos); + } + this.m_JadeInfoPool.ActualReturnAll(false); + int num = this.RecalcMorePowerfulTip(); + bool flag8 = num >= 0; + if (flag8) + { + this._ToggleOperateMenu(true, num); + } + } + + public static void DrawJadeWithAttr(GameObject go, uint slot, XJadeItem jade, uint iconType = 1u) + { + XItemDrawerMgr.Param.IconType = iconType; + XSingleton.singleton.jadeSlotDrawer.DrawItem(go.transform.Find("JadeTpl").gameObject, slot, false, jade); + JadeEquipHandler.DrawAttr(go, jade); + } + + public static void DrawAttr(GameObject go, XJadeItem jade) + { + bool flag = jade != null; + if (flag) + { + IXUILabel ixuilabel = go.transform.Find("AttrName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("AttrValue").GetComponent("XUILabel") as IXUILabel; + ItemList.RowData itemConf = XBagDocument.GetItemConf(jade.itemID); + bool flag2 = itemConf != null && jade.changeAttr.Count > 0; + if (flag2) + { + ixuilabel.SetText(XAttributeCommon.GetAttrStr((int)jade.changeAttr[0].AttrID)); + ixuilabel2.SetText(XAttributeCommon.GetAttrValueStr(jade.changeAttr[0].AttrID, jade.changeAttr[0].AttrValue, true)); + Color itemQualityColor = XSingleton.singleton.GetItemQualityColor((int)itemConf.ItemQuality); + ixuilabel.SetColor(itemQualityColor); + ixuilabel2.SetColor(itemQualityColor); + } + else + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + } + } + } + + private void _OnSlotClicked(IXUISprite iSp) + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + bool flag2 = equipConf == null; + if (!flag2) + { + int num = (int)iSp.ID; + XJadeItem xjadeItem = xequipItem.jadeInfo.jades[num]; + bool flag3 = !this._doc.SlotLevelIsOpen(equipConf.EquipPos, num); + if (!flag3) + { + bool flag4 = xjadeItem != null; + if (flag4) + { + this._ToggleOperateMenu(true, num); + } + else + { + uint slot = this._doc.GetSlot(equipConf.EquipPos, num); + bool flag5 = slot != XJadeInfo.SLOT_NOTOPEN && slot != XJadeInfo.SLOT_NOTEXIST; + if (flag5) + { + this._doc.SelectSlot(num); + } + } + } + } + } + } + + private void _ToggleOperateMenu(bool bShow, int slotIndex = 0) + { + if (bShow) + { + this.m_SelectedSlotIndex = slotIndex; + this.m_SelectMenu.SetActive(true); + this.m_OperateMenu.SetActive(true); + this.m_SelectMenuTween.PlayTween(true, -1f); + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (flag) + { + this.m_CanReplaceRedpoint.SetActive(false); + } + this.m_CanReplaceRedpoint.SetActive(this._doc.CanReplace(xequipItem, slotIndex)); + this.m_CanUpdateRedpoint.SetActive(this._doc.CanUpdate(xequipItem, slotIndex)); + this.m_SelectMenu.transform.localPosition = this.m_JadeSlots[this.m_SelectedSlotIndex].transform.localPosition; + } + else + { + this.m_SelectMenu.SetActive(false); + this.m_OperateMenu.SetActive(false); + } + } + + private bool _OnSelectedJadeUpgradeClicked(IXUIButton btn) + { + this._doc.TryToCompose((uint)this.m_SelectedSlotIndex); + return true; + } + + private bool _OnSelectedJadeTakeoffClicked(IXUIButton btn) + { + this._doc.ReqTakeOffJade((uint)this.m_SelectedSlotIndex); + return true; + } + + private bool _OnSelectedJadeChangeClicked(IXUIButton btn) + { + this._doc.SelectSlot(this.m_SelectedSlotIndex); + return true; + } + + public int RecalcMorePowerfulTip() + { + int num = -1; + bool flag = false; + this.powerfullMgr.ReturnAll(); + bool flag2 = this._doc.selectedEquip == 0UL; + int result; + if (flag2) + { + result = num; + } + else + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this._doc.selectedEquip) as XEquipItem; + bool flag3 = xequipItem == null; + if (flag3) + { + result = num; + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + bool flag4 = equipConf == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("equipListRowData == null while id = ", xequipItem.itemID.ToString(), null, null, null, null); + result = num; + } + else + { + SeqListRef slotInfoByPos = this._doc.GetSlotInfoByPos(equipConf.EquipPos); + int num2 = 0; + while ((long)num2 < (long)((ulong)JadeEquipHandler.SLOT_COUNT) && num2 < (int)slotInfoByPos.count) + { + bool flag5 = XSingleton.singleton.XPlayerData == null || slotInfoByPos[num2, 1] > XSingleton.singleton.XPlayerData.Level; + if (!flag5) + { + bool flag6 = false; + bool flag7 = false; + bool flag8 = this._doc.CanUpdate(xequipItem, num2); + if (flag8) + { + flag6 = true; + } + else + { + bool flag9 = this._doc.CanReplace(xequipItem, num2); + if (flag9) + { + XJadeItem xjadeItem = xequipItem.jadeInfo.jades[num2]; + bool flag10 = xjadeItem != null; + if (!flag10) + { + flag7 = true; + } + flag6 = true; + } + } + bool flag11 = flag6; + if (flag11) + { + GameObject gameObject = this.m_JadeSlots[num2]; + IXUISprite tip = gameObject.GetComponent("XUISprite") as IXUISprite; + this.powerfullMgr.SetTip(tip); + bool flag12 = !flag && !flag7; + if (flag12) + { + num = num2; + flag = true; + } + } + else + { + bool flag13 = num < 0; + if (flag13) + { + bool flag14 = XJadeInfo.SlotHasJade(num2, xequipItem.jadeInfo); + if (flag14) + { + num = num2; + } + } + } + } + num2++; + } + result = num; + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeEquipHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/JadeEquipHandler.cs.meta new file mode 100644 index 00000000..5573c672 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeEquipHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc23eb302c84adb4da555cf656858581 +timeCreated: 1611404444 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeTooltipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/JadeTooltipDlg.cs new file mode 100644 index 00000000..876e3381 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeTooltipDlg.cs @@ -0,0 +1,96 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class JadeTooltipDlg : TooltipDlg + { + public override string fileName + { + get + { + return "GameSystem/JadeToolTipDlg"; + } + } + + private uint _slot = 0u; + + public void ShowToolTip(XItem mainItem, XItem compareItem, uint slot, bool bShowButtons = true) + { + this._slot = slot; + this.ShowToolTip(mainItem, compareItem, bShowButtons, 0u); + } + + protected override void Init() + { + base.Init(); + this.m_OperateList[0, 0] = new TooltipButtonOperateJadeUpgrade(); + this.m_OperateList[0, 1] = new TooltipButtonOperateRecycle(XSysDefine.XSys_Item_Jade); + this.m_OperateList[0, 2] = new TooltipButtonOperateSell(); + } + + protected override void SetupOtherFrame(GameObject goToolTip, XItem mainItem, XItem compareItem, bool bMain) + { + Transform transform = goToolTip.transform.Find("ScrollPanel"); + IXUISprite ixuisprite = transform.Find("Place").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = transform.Find("Description").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = transform.Find("Place/T").GetComponent("XUILabel") as IXUILabel; + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(specificDocument.jadeTable.GetByJadeID((uint)mainItem.itemID).MosaicPlace)); + ixuisprite.spriteHeight = -(int)ixuilabel.gameObject.transform.localPosition.y + ixuilabel.spriteHeight; + base.AppendFrame(ixuisprite.gameObject, (float)ixuisprite.spriteHeight, null); + base.AppendFrame(ixuisprite2.gameObject, (float)ixuisprite2.spriteHeight, null); + base.SetupOtherFrame(goToolTip, mainItem, compareItem, bMain); + } + + protected override void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + base.SetupTopFrame(goToolTip, data, bMain, instanceData, compareData); + base._SetupType(goToolTip, data, 0); + base._SetupProf(goToolTip, data, bMain, instanceData, 2); + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + uint jadeLevel = specificDocument.jadeTable.GetByJadeID((uint)data.ItemID).JadeLevel; + base._SetTopFrameLabel(goToolTip, 1, XStringDefineProxy.GetString("ToolTipText_Level"), string.Format(XStringDefineProxy.GetString("JADE_LEVEL_LIMIT"), specificDocument.JadeMosaicLevel[(int)(jadeLevel - 1u)].ToString())); + } + + protected override int _GetPPT(XItem item, bool bMain, ref string valueText) + { + bool flag = item == null; + int result; + if (flag) + { + result = -1; + } + else + { + uint ppt = item.GetPPT(bMain ? XSingleton.singleton.mainAttributes : XSingleton.singleton.compareAttributes); + valueText = ppt.ToString(); + result = (int)ppt; + } + return result; + } + + protected override void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + base.SetupToolTipButtons(goToolTip, item, bMain); + bool flag = !this.bShowButtons; + if (!flag) + { + if (bMain) + { + bool flag2 = item.uid == 0UL; + if (flag2) + { + base._SetupButtonVisiability(goToolTip, 1, item); + } + else + { + base._SetupButtonVisiability(goToolTip, 0, item); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/JadeTooltipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/JadeTooltipDlg.cs.meta new file mode 100644 index 00000000..4bacbba0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JadeTooltipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1db310b613d0885489c306bda2f9022e +timeCreated: 1611403357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/JokerKingMainBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/JokerKingMainBehavior.cs new file mode 100644 index 00000000..326e6f97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JokerKingMainBehavior.cs @@ -0,0 +1,58 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class JokerKingMainBehavior : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_BtnRankReward; + + public IXUIButton m_BtnGo; + + public IXUIButton m_BtnDisable; + + public IXUILabelSymbol m_LabelSymbol; + + public IXUILabel m_info; + + public Transform m_Matching; + + public IXUISprite m_BtnRankSprite; + + public Transform m_RankList; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public IXUILabel m_IntroText; + + public Transform m_Reward; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnGo = (base.transform.Find("Bg/Btn_Go").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRankReward = (base.transform.Find("Bg/BtnRankReward").GetComponent("XUIButton") as IXUIButton); + this.m_BtnDisable = (base.transform.Find("Bg/Btn_Disable").GetComponent("XUIButton") as IXUIButton); + this.m_info = (base.transform.Find("Bg/Info").GetComponent("XUILabel") as IXUILabel); + this.m_RankList = base.transform.Find("Bg/RankList"); + this.m_ScrollView = (base.transform.Find("Bg/RankList/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/RankList/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_IntroText = (base.transform.Find("Bg/help/Intro/Text").GetComponent("XUILabel") as IXUILabel); + this.m_Reward = base.transform.Find("Bg/help/Intro/Reward"); + Transform transform = base.transform.Find("Bg/help/Intro/Reward/item"); + this.m_RewardPool.SetupPool(this.m_Reward.gameObject, transform.gameObject, 5u, true); + this.m_Matching = base.transform.Find("Bg/Matching"); + this.m_BtnRankSprite = (base.transform.Find("Bg/RankList/Mask").GetComponent("XUISprite") as IXUISprite); + this.m_LabelSymbol = (base.transform.Find("Bg/Btn_Go/Go").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/JokerKingMainBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/JokerKingMainBehavior.cs.meta new file mode 100644 index 00000000..4093a9f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/JokerKingMainBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a8ab8eeb6413b684c8d693ecd91a6380 +timeCreated: 1611404296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/KillInfoMode.cs b/Client/Assets/Scripts/XMainClient/UI/KillInfoMode.cs new file mode 100644 index 00000000..9cf67123 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/KillInfoMode.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient.UI +{ + public enum KillInfoMode + { + Single, + Multiple + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/KillInfoMode.cs.meta b/Client/Assets/Scripts/XMainClient/UI/KillInfoMode.cs.meta new file mode 100644 index 00000000..2237db59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/KillInfoMode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55f01f93b466557408827f5e549578eb +timeCreated: 1611403740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs b/Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs new file mode 100644 index 00000000..c24822f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs @@ -0,0 +1,161 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class LoadingDlg : DlgBase + { + public override string fileName + { + get + { + return "Common/LoadingDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + private string _pic = null; + + protected override void Init() + { + this.SetWaitForOthersTip(""); + } + + public void SetLoadingProgress(float f) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = this.m_uiBehaviour.m_LoadingProgress.IsVisible(); + if (flag2) + { + this.m_uiBehaviour.m_LoadingProgress.value = f; + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && !XSingleton.singleton.IsPVPScene && XSingleton.singleton.SyncMode; + if (flag3) + { + this.SetWaitForOthersTip((f == 1f) ? XStringDefineProxy.GetString("WAIT_FOR_OTHERS") : ""); + } + } + } + } + + public void SetLoadingPrompt(List otherPalyerName) + { + bool flag = !base.IsLoaded() || XSingleton.singleton.CurrentStage.Stage != EXStage.World || !XSingleton.singleton.SyncMode; + if (!flag) + { + bool flag2 = otherPalyerName == null || otherPalyerName.Count == 0; + if (flag2) + { + this.SetWaitForOthersTip(XStringDefineProxy.GetString("WAIT_FOR_OTHERS")); + } + else + { + string waitForOthersTip = string.Format(XSingleton.singleton.GetString("WAIT_OTHER_PLAYER_PVE"), otherPalyerName.Count, otherPalyerName[0]); + this.SetWaitForOthersTip(waitForOthersTip); + } + } + } + + private void SetWaitForOthersTip(string tips) + { + base.uiBehaviour.m_WaitForOthersTip.SetText(tips); + base.uiBehaviour.m_WaitForOthersTip.SetVisible(!string.IsNullOrEmpty(tips)); + } + + public void SetLoadingTip(string tip) + { + base.uiBehaviour.m_LoadingTips.SetText(tip); + } + + public void SetLoadingPic(string pic) + { + this._pic = pic; + bool flag = string.IsNullOrEmpty(pic); + if (flag) + { + XSingleton.singleton.AddErrorLog("null laoding pic", null, null, null, null, null); + } + else + { + base.uiBehaviour.m_LoadingPic.SetTexturePath("atlas/UI/common/Pic/" + this._pic); + } + bool flag2 = base.uiBehaviour.m_Dog != null; + if (flag2) + { + base.uiBehaviour.m_Dog.SetSprite("Animation"); + } + } + + public void HideSelf(bool bFadeIn) + { + if (bFadeIn) + { + base.uiBehaviour.m_LoadingBg.gameObject.SetActive(false); + base.uiBehaviour.m_Canvas.gameObject.SetActive(true); + IXUITweenTool ixuitweenTool = base.uiBehaviour.m_Canvas.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetTweenEnabledWhenFinish(false); + ixuitweenTool.SetTargetGameObject(base.uiBehaviour.m_Canvas.gameObject); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnFinish)); + ixuitweenTool.PlayTween(true, -1f); + } + else + { + this.ReleaseTexture(); + this.SetVisible(false, true); + } + } + + protected void OnFinish(IXUITweenTool tween) + { + base.uiBehaviour.m_LoadingBg.gameObject.SetActive(true); + base.uiBehaviour.m_Canvas.gameObject.SetActive(false); + this.ReleaseTexture(); + this.SetVisible(false, true); + } + + private void ReleaseTexture() + { + bool flag = base.uiBehaviour != null; + if (flag) + { + bool flag2 = base.uiBehaviour.m_LoadingPic != null; + if (flag2) + { + base.uiBehaviour.m_LoadingPic.SetTexturePath(""); + } + bool flag3 = base.uiBehaviour.m_Dog != null; + if (flag3) + { + base.uiBehaviour.m_Dog.SetSprite("", "", false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs.meta new file mode 100644 index 00000000..0afa60b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoadingDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4749352e8a22874cb581fa56c67b9a8 +timeCreated: 1611404501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs new file mode 100644 index 00000000..5021137f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class LoadingDlgBehaviour : DlgBehaviourBase + { + public IXUIProgress m_LoadingProgress = null; + + public Transform m_LoadingBg = null; + + public Transform m_Canvas = null; + + public IXUILabel m_LoadingTips = null; + + public IXUITexture m_LoadingPic = null; + + public IXUILabel m_WaitForOthersTip = null; + + public IXUISprite m_Dog = null; + + private void Awake() + { + Transform transform = base.transform.Find("Dynamics/LoadingProgress"); + this.m_LoadingProgress = (transform.GetComponent("XUIProgress") as IXUIProgress); + this.m_Dog = (transform.Find("Dog/").GetComponent("XUISprite") as IXUISprite); + this.m_Canvas = base.transform.Find("fade_canvas"); + this.m_LoadingTips = (base.transform.Find("Bg/Label").GetComponent("XUILabel") as IXUILabel); + this.m_LoadingBg = base.transform.Find("Bg"); + this.m_LoadingPic = (base.transform.Find("Bg").GetComponent("XUITexture") as IXUITexture); + this.m_WaitForOthersTip = (base.transform.Find("Bg/WaitOthers").GetComponent("XUILabel") as IXUILabel); + this.m_Canvas.gameObject.SetActive(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs.meta new file mode 100644 index 00000000..c69c1d15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoadingDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 258db1abd23094b4a8351b99a22aeb66 +timeCreated: 1611403465 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LoginWindowBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/LoginWindowBehaviour.cs new file mode 100644 index 00000000..b09a695b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoginWindowBehaviour.cs @@ -0,0 +1,117 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class LoginWindowBehaviour : DlgBehaviourBase + { + public GameObject m_normalFrame; + + public GameObject m_ServerListFrame; + + public GameObject m_QueueFrame; + + public IXUIInput m_Account; + + public IXUIInput m_Password; + + public IXUIButton m_Login; + + public IXUIButton m_GuestLogin; + + public IXUIButton m_QQLogin; + + public IXUIButton m_WXLogin; + + public IXUITweenTool m_Tween; + + public IXUITweenTool m_SelectPlatformTween; + + public Transform m_BlockWindow; + + public IXUILabel m_Version; + + public IXUIButton m_Notice; + + public IXUIButton m_CG; + + public IXUIButton m_CustomerService; + + public IXUIButton m_EnterToSelectChar; + + public IXUIButton m_ReturnToLogin; + + public IXUISprite m_ServerListButton; + + public IXUILabel m_CurrentServer; + + public Transform m_ServerList; + + public IXUISprite m_CloseServerList; + + public XUIPool m_AreaPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_AreaScrollView; + + public XUIPool m_ServerPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ServerScrollView; + + public IXUIWrapContent m_FriendWrapContent; + + public IXUIScrollView m_FriendScrollView; + + public Transform m_ServerFrame; + + public Transform m_FriendFrame; + + public IXUILabel m_QueueTip; + + public IXUIButton m_LeaveQueue; + + private void Awake() + { + this.m_normalFrame = base.transform.Find("Bg/NormalFrame").gameObject; + this.m_ServerListFrame = base.transform.Find("Bg/SelectServerFrame").gameObject; + this.m_QueueFrame = base.transform.Find("Bg/Queue").gameObject; + this.m_Tween = (this.m_normalFrame.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Account = (this.m_normalFrame.transform.Find("iptAccount").GetComponent("XUIInput") as IXUIInput); + this.m_Password = (this.m_normalFrame.transform.Find("iptPassword").GetComponent("XUIInput") as IXUIInput); + this.m_Login = (this.m_normalFrame.transform.Find("SelectPlatform/btnLogin").GetComponent("XUIButton") as IXUIButton); + this.m_GuestLogin = (this.m_normalFrame.transform.Find("SelectPlatform/btnGuest").GetComponent("XUIButton") as IXUIButton); + this.m_QQLogin = (this.m_normalFrame.transform.Find("SelectPlatform/btnQQ").GetComponent("XUIButton") as IXUIButton); + this.m_WXLogin = (this.m_normalFrame.transform.Find("SelectPlatform/btnWX").GetComponent("XUIButton") as IXUIButton); + this.m_SelectPlatformTween = (this.m_normalFrame.transform.Find("SelectPlatform").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_BlockWindow = base.transform.Find("Bg/Block"); + this.m_Version = (base.transform.Find("Bg/Version").GetComponent("XUILabel") as IXUILabel); + this.m_Notice = (this.m_ServerListFrame.transform.Find("Notice").GetComponent("XUIButton") as IXUIButton); + this.m_CG = (this.m_ServerListFrame.transform.Find("CG").GetComponent("XUIButton") as IXUIButton); + this.m_CustomerService = (this.m_ServerListFrame.transform.Find("CustomerService").GetComponent("XUIButton") as IXUIButton); + this.m_EnterToSelectChar = (this.m_ServerListFrame.transform.Find("Enter").GetComponent("XUIButton") as IXUIButton); + this.m_ReturnToLogin = (this.m_ServerListFrame.transform.Find("Back").GetComponent("XUIButton") as IXUIButton); + this.m_ServerListButton = (this.m_ServerListFrame.transform.Find("CurrentServer").GetComponent("XUISprite") as IXUISprite); + this.m_CurrentServer = (this.m_ServerListFrame.transform.Find("CurrentServer/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ServerList = this.m_ServerListFrame.transform.Find("SelectServer"); + this.m_CloseServerList = (this.m_ServerListFrame.transform.Find("SelectServer/Close").GetComponent("XUISprite") as IXUISprite); + this.m_AreaScrollView = (this.m_ServerListFrame.transform.Find("SelectServer/AreaList").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ServerScrollView = (this.m_ServerListFrame.transform.Find("SelectServer/ServerList").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = this.m_ServerListFrame.transform.Find("SelectServer/AreaList/AreaTpl"); + this.m_AreaPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = this.m_ServerListFrame.transform.Find("SelectServer/ServerList/ServerTpl"); + this.m_ServerPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_FriendScrollView = (this.m_ServerListFrame.transform.Find("SelectServer/FriendList").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_FriendWrapContent = (this.m_ServerListFrame.transform.Find("SelectServer/FriendList/List").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ServerFrame = this.m_ServerListFrame.transform.Find("SelectServer/ServerList"); + this.m_FriendFrame = this.m_ServerListFrame.transform.Find("SelectServer/FriendList"); + this.m_QueueTip = (this.m_QueueFrame.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.m_LeaveQueue = (this.m_QueueFrame.transform.Find("Leave").GetComponent("XUIButton") as IXUIButton); + this.m_normalFrame.SetActive(false); + this.m_ServerListFrame.SetActive(false); + this.m_QueueFrame.SetActive(false); + this.m_BlockWindow.gameObject.SetActive(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LoginWindowBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LoginWindowBehaviour.cs.meta new file mode 100644 index 00000000..f7fef686 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoginWindowBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2d067cf315045a4c86e8b45914af6b1 +timeCreated: 1611404729 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LoverLivenessRecordItem.cs b/Client/Assets/Scripts/XMainClient/UI/LoverLivenessRecordItem.cs new file mode 100644 index 00000000..80418324 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoverLivenessRecordItem.cs @@ -0,0 +1,41 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + public class LoverLivenessRecordItem : MonoBehaviour + { + public IXUILabel m_nameLab; + + public IXUILabel m_timeLab; + + public IXUILabel m_contentLab; + + private IXUISprite m_sprRoot; + + private IXUISprite m_bgSpr; + + private void Awake() + { + this.m_sprRoot = (base.GetComponent("XUISprite") as IXUISprite); + this.m_bgSpr = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_nameLab = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel); + this.m_timeLab = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_contentLab = (base.transform.Find("Bg/Description").GetComponent("XUILabel") as IXUILabel); + } + + public void Refresh(LoverLivenessRecord record) + { + bool flag = record == null; + if (!flag) + { + this.m_nameLab.SetText(record.Name); + this.m_timeLab.SetText(record.ShowTimeStr); + this.m_contentLab.SetText(record.ShowString); + this.m_sprRoot.spriteHeight = 46 + this.m_contentLab.spriteHeight; + this.m_bgSpr.spriteHeight = this.m_sprRoot.spriteHeight; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LoverLivenessRecordItem.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LoverLivenessRecordItem.cs.meta new file mode 100644 index 00000000..5ecc6993 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoverLivenessRecordItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fe07bbd370edf94ba24d6416db3fafa +timeCreated: 1611403214 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LoversLivenessBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/LoversLivenessBehaviour.cs new file mode 100644 index 00000000..a80bbe8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoversLivenessBehaviour.cs @@ -0,0 +1,53 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class LoversLivenessBehaviour : DlgBehaviourBase + { + public ILoopScrollView m_loopScrool; + + public XUIPool m_ActivityItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ChestPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_closedSpr; + + public XChestProgress m_Progress; + + public IXUILabel m_totalExp; + + public XNumberTween m_TotalExpTween; + + public IXUILabel m_chestTips; + + public IXUILabel m_Name; + + public IXUILabel m_Tip; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/RightView/ActivityTpl"); + this.m_ActivityItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_closedSpr = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_Progress = new XChestProgress(base.transform.Find("Bg/UpView/Progress").GetComponent("XUIProgress") as IXUIProgress); + transform = base.transform.Find("Bg/UpView/Progress/Chests/Chest"); + this.m_ChestPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/LeftView/Item"); + this.m_RewardItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_totalExp = (base.transform.Find("Bg/UpView/CurrentExp").GetComponent("XUILabel") as IXUILabel); + this.m_TotalExpTween = XNumberTween.Create(this.m_totalExp); + this.m_TotalExpTween.SetNumberWithTween(0UL, "", false, true); + this.m_chestTips = (base.transform.Find("Bg/LeftView/BigChest/Tips/Exp").GetComponent("XUILabel") as IXUILabel); + this.m_loopScrool = (base.transform.Find("Bg/RightView").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_ChestPool.ReturnAll(false); + this.m_Name = (base.transform.Find("Bg/UpView/CurrentExp/T").GetComponent("XUILabel") as IXUILabel); + this.m_Tip = (base.transform.Find("Bg/Bg/Label").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LoversLivenessBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LoversLivenessBehaviour.cs.meta new file mode 100644 index 00000000..b54ce03c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoversLivenessBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5968575c04631845b4af86f6edce48f +timeCreated: 1611404877 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LoversLivenessDlg.cs b/Client/Assets/Scripts/XMainClient/UI/LoversLivenessDlg.cs new file mode 100644 index 00000000..f4e603b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoversLivenessDlg.cs @@ -0,0 +1,254 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class LoversLivenessDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Wedding/WeddingLoverLiveness"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + private static readonly uint m_expIncreaseSpeed = 800u; + + private int m_CurSelectIndex = 0; + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + protected override void Init() + { + GameObject tpl = base.uiBehaviour.m_loopScrool.GetTpl(); + bool flag = tpl != null && tpl.GetComponent() == null; + if (flag) + { + tpl.AddComponent(); + } + base.uiBehaviour.m_Progress.IncreaseSpeed = LoversLivenessDlg.m_expIncreaseSpeed; + for (int i = 0; i < XWeddingDocument.LoverLivenessTable.Table.Length; i++) + { + WeddingLoverLiveness.RowData rowData = XWeddingDocument.LoverLivenessTable.Table[i]; + GameObject chest = base.uiBehaviour.m_ChestPool.FetchGameObject(false); + XChest chest2 = new XChest(chest, rowData.boxPic); + base.uiBehaviour.m_Progress.AddChest(chest2); + } + this.ChangeChestProgressState(true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClosed)); + for (int i = 0; i < XWeddingDocument.LoverLivenessTable.Table.Length; i++) + { + base.uiBehaviour.m_Progress.ChestList[i].m_Chest.ID = (ulong)((long)i); + base.uiBehaviour.m_Progress.ChestList[i].m_Chest.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClicked)); + } + } + + protected override void OnShow() + { + base.uiBehaviour.m_Name.SetText(XStringDefineProxy.GetString("WeddingLoverLivenessName")); + base.uiBehaviour.m_Tip.SetText(XStringDefineProxy.GetString("WeddingLoverLivenessTip")); + XWeddingDocument.Doc.ReqPartnerLivenessInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnUnload() + { + base.OnUnload(); + base.uiBehaviour.m_Progress.Unload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + base.uiBehaviour.m_Progress.Update(Time.deltaTime); + } + + public void FillContent() + { + this.RefreshBox(); + List list = new List(); + string empty = string.Empty; + for (int i = 0; i < XWeddingDocument.Doc.RecordList.Count; i++) + { + LoverLivenessRecord loverLivenessRecord = XWeddingDocument.Doc.RecordList[i]; + loverLivenessRecord.LoopID = XSingleton.singleton.XHash(XWeddingDocument.Doc.RecordList[i].ToString() + i); + list.Add(loverLivenessRecord); + } + base.uiBehaviour.m_loopScrool.Init(list, new DelegateHandler(this.RefreshRecordItem), null, 0, true); + } + + public void RefreshBox() + { + this.ChangeChestProgressState(false); + this.SetCurrentExpAmi(); + this.ShowReward(XWeddingDocument.Doc.FindNeedShowReward()); + } + + private void RefreshRecordItem(ILoopItemObject item, LoopItemData data) + { + LoverLivenessRecord loverLivenessRecord = data as LoverLivenessRecord; + bool flag = loverLivenessRecord != null; + if (flag) + { + GameObject obj = item.GetObj(); + bool flag2 = obj != null; + if (flag2) + { + LoverLivenessRecordItem component = obj.GetComponent(); + bool flag3 = component != null; + if (flag3) + { + component.Refresh(loverLivenessRecord); + } + } + } + else + { + XSingleton.singleton.AddErrorLog("GuildMiniReportItem info is null", null, null, null, null, null); + } + } + + public void SetCurrentExpAmi() + { + base.uiBehaviour.m_Progress.TargetExp = XWeddingDocument.Doc.CurrExp; + base.uiBehaviour.m_TotalExpTween.SetNumberWithTween((ulong)XWeddingDocument.Doc.CurrExp, "", false, true); + } + + public void ChangeChestProgressState(bool init = false) + { + for (int i = 0; i < XWeddingDocument.LoverLivenessTable.Table.Length; i++) + { + XChest xchest = base.uiBehaviour.m_Progress.ChestList[i]; + if (init) + { + xchest.SetExp(XWeddingDocument.LoverLivenessTable.Table[i].liveness); + } + xchest.Opened = XWeddingDocument.Doc.IsChestOpened(i + 1); + } + if (init) + { + base.uiBehaviour.m_Progress.SetExp(0u, XWeddingDocument.MaxExp); + } + } + + public void ResetBoxRedDot(int index) + { + bool flag = index < 0 || index >= base.uiBehaviour.m_Progress.ChestList.Count; + if (!flag) + { + base.uiBehaviour.m_Progress.ChestList[index].Open(); + } + } + + private void OnChestClicked(IXUISprite iSp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + if (!flag) + { + int num = (int)iSp.ID; + this.ShowReward(num); + bool flag2 = base.uiBehaviour.m_Progress.IsExpEnough(num); + if (flag2) + { + WeddingLoverLiveness.RowData rowData = XWeddingDocument.LoverLivenessTable.Table[num]; + bool flag3 = rowData != null; + if (flag3) + { + XWeddingDocument.Doc.ReqTakePartnerChest(rowData.index); + } + } + } + } + + public void ShowReward(int index) + { + this.m_CurSelectIndex = index; + base.uiBehaviour.m_RewardItemPool.ReturnAll(false); + WeddingLoverLiveness.RowData rowData = XWeddingDocument.LoverLivenessTable.Table[index]; + for (int i = 0; i < rowData.viewabledrop.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardItemPool.FetchGameObject(false); + bool flag = rowData.viewabledrop[i, 0] == 4u; + if (flag) + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.viewabledrop[i, 0], 0, false); + } + else + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.viewabledrop[i, 0], (int)rowData.viewabledrop[i, 1], true); + } + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, (int)rowData.viewabledrop[i, 0]); + Vector3 tplPos = base.uiBehaviour.m_RewardItemPool.TplPos; + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)base.uiBehaviour.m_RewardItemPool.TplWidth * ((float)(-(float)rowData.viewabledrop.Count) / 2f + 0.5f + (float)i), tplPos.y, tplPos.z); + } + base.uiBehaviour.m_chestTips.SetText(rowData.liveness.ToString()); + } + + private void OnClosed(IXUISprite spr) + { + this.SetVisible(false, true); + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LoversLivenessDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LoversLivenessDlg.cs.meta new file mode 100644 index 00000000..adb47ed3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LoversLivenessDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0df793c081370848b2566afbd987fac +timeCreated: 1611404251 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableFrameHandler.cs b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableFrameHandler.cs new file mode 100644 index 00000000..501bd1d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableFrameHandler.cs @@ -0,0 +1,493 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class LuckyTurntableFrameHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/LuckyTurntableFrame"; + } + } + + private XOperatingActivityDocument doc; + + private XCharacterItemDocument doc_item; + + private IXUIButton m_btnBuy; + + private IXUIButton m_btnUse; + + private IXUITweenTool m_btnUseFxControl; + + private IXUIButton m_btnInvalid; + + private IXUIButton m_btnRecord; + + private IXUIButton m_btnHelp; + + private Transform m_AwardRoot; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_CostRoot; + + private IXUISprite m_CostImg; + + private IXUILabel m_CostLabel; + + private IXUILabel m_TipTime; + + private IXUILabel m_TipDesc; + + private Vector3[] m_positions = new Vector3[8]; + + private IXUITweenTool[] m_tail_fxes = new IXUITweenTool[8]; + + private IXUILabel m_LabelDataRange1; + + private IXUILabel m_LabelDataNum2; + + private IXUILabel m_LabelDataRange3; + + private double[] m_DataRange1; + + private double m_DateRange2; + + private int m_DataNum2; + + private double[] m_DataRange3; + + private Transform m_SelectFxRoot; + + private IXUITweenTool m_SelectFxControl; + + private IEnumerator _fx_coroutine; + + private List m_ItemEffectList = new List(); + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + this.doc_item = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + this.m_btnRecord = (base.PanelObject.transform.Find("Main/EnterBtn").GetComponent("XUIButton") as IXUIButton); + this.m_btnBuy = (base.PanelObject.transform.Find("Main/BuyBtn").GetComponent("XUIButton") as IXUIButton); + this.m_btnUse = (base.PanelObject.transform.Find("Main/BeginBtn").GetComponent("XUIButton") as IXUIButton); + this.m_btnUseFxControl = (this.m_btnUse.gameObject.transform.Find("FxUse").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_btnInvalid = (base.PanelObject.transform.Find("Main/EndBtn").GetComponent("XUIButton") as IXUIButton); + this.m_btnHelp = (base.PanelObject.transform.Find("Main/Help").GetComponent("XUIButton") as IXUIButton); + this.m_CostRoot = base.PanelObject.transform.Find("Main/Tip2"); + this.m_CostImg = (this.m_CostRoot.Find("p").GetComponent("XUISprite") as IXUISprite); + this.m_CostLabel = (this.m_CostRoot.Find("Tip2").GetComponent("XUILabel") as IXUILabel); + this.m_TipTime = (base.PanelObject.transform.Find("Main/TipTime").GetComponent("XUILabel") as IXUILabel); + this.m_TipDesc = (base.PanelObject.transform.Find("Main/TipDesc").GetComponent("XUILabel") as IXUILabel); + this.m_LabelDataRange1 = (base.PanelObject.transform.Find("Main/DataRange1").GetComponent("XUILabel") as IXUILabel); + this.m_LabelDataNum2 = (base.PanelObject.transform.Find("Main/DataNum2").GetComponent("XUILabel") as IXUILabel); + this.m_LabelDataRange3 = (base.PanelObject.transform.Find("Main/DataRange3").GetComponent("XUILabel") as IXUILabel); + this.m_LabelDataRange1.gameObject.SetActive(false); + this.m_LabelDataNum2.gameObject.SetActive(false); + this.m_LabelDataRange3.gameObject.SetActive(false); + this.m_TipTime.SetText(XStringDefineProxy.GetString("LuckyTurnTable_Tip_Time")); + this.m_TipDesc.SetText(XStringDefineProxy.GetString("LuckyTurnTable_Tip_Desc")); + this.m_AwardRoot = base.PanelObject.transform.Find("Main/Items"); + GameObject gameObject = base.PanelObject.transform.Find("Main/Items/ItemTpl").gameObject; + this.m_ItemPool.SetupPool(this.m_AwardRoot.gameObject, gameObject, 8u, false); + for (int i = 0; i < 8; i++) + { + Transform transform = this.m_AwardRoot.Find("Item" + i); + this.m_positions[i] = transform.localPosition; + } + this.m_SelectFxRoot = base.PanelObject.transform.Find("Main/Items/Selected"); + this.m_SelectFxControl = (this.m_SelectFxRoot.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_SelectFxRoot.gameObject.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnRecord.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRecordBtn)); + this.m_btnBuy.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickBuyBtn)); + this.m_btnUse.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickUseBtn)); + this.m_btnInvalid.RegisterClickEventHandler((IXUIButton btn) => true); + this.m_btnHelp.RegisterClickEventHandler(delegate(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XStringDefineProxy.GetString("LuckyTurnTable_HelpTitle"), XStringDefineProxy.GetString("LuckyTurnTable_HelpMessage")); + return true; + }); + } + + private bool OnClickRecordBtn(IXUIButton btn) + { + XOperatingActivityDocument.LuckyTurntableInfo luckyTurntableData = this.doc.m_LuckyTurntableData; + List> list = new List>(); + foreach (XOperatingActivityDocument.LuckyTurntableItem luckyTurntableItem in luckyTurntableData.Items) + { + bool hasReceived = luckyTurntableItem.HasReceived; + if (hasReceived) + { + list.Add(new KeyValuePair(luckyTurntableItem.ItemID, luckyTurntableItem.ItemCount)); + } + } + DlgBase.singleton.ShowList(list); + return true; + } + + private bool OnClickBuyBtn(IXUIButton btn) + { + bool flag = this._fx_coroutine != null; + bool result; + if (flag) + { + result = true; + } + else + { + XOperatingActivityDocument.LuckyTurntableInfo luckyTurntableData = this.doc.m_LuckyTurntableData; + bool flag2 = !luckyTurntableData.IsPay && luckyTurntableData.CanBuy; + if (flag2) + { + int currencyType = luckyTurntableData.CurrencyType; + int price = (int)luckyTurntableData.Price; + ulong itemCount = XBagDocument.BagDoc.GetItemCount(currencyType); + bool flag3 = itemCount < (ulong)((long)price); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_ITEM_NOT_ENOUGH, "fece00"); + return true; + } + this.doc.RequestBuyLuckyTurntable(); + } + else + { + XSingleton.singleton.ShowSystemNoticeTip("Can not buy"); + } + result = true; + } + return result; + } + + private bool OnClickUseBtn(IXUIButton btn) + { + bool flag = this._fx_coroutine != null; + bool result; + if (flag) + { + result = true; + } + else + { + XOperatingActivityDocument.LuckyTurntableInfo luckyTurntableData = this.doc.m_LuckyTurntableData; + bool isPay = luckyTurntableData.IsPay; + if (isPay) + { + this.doc_item.ToggleBlock(true); + this.doc.RequestUseLuckyTurntable(); + } + else + { + XSingleton.singleton.ShowSystemNoticeTip("Can not use"); + } + result = true; + } + return result; + } + + private void PlayFxAt(int index, bool first = false) + { + this.m_SelectFxRoot.localPosition = this.m_positions[index]; + bool flag = !first; + if (flag) + { + int num = (8 + index - 1) % 8; + IXUITweenTool ixuitweenTool = this.m_tail_fxes[num]; + bool flag2 = ixuitweenTool != null; + if (flag2) + { + ixuitweenTool.gameObject.SetActive(true); + ixuitweenTool.ResetTween(true); + ixuitweenTool.PlayTween(true, -1f); + } + } + } + + private void MoveFxTo(int index, double left_time, double total_time) + { + } + + private void GetDataFromLabel() + { + string[] array = this.m_LabelDataRange1.GetText().Split(new char[] + { + ',' + }); + this.m_DataRange1 = new double[array.Length]; + for (int i = 0; i < array.Length; i++) + { + this.m_DataRange1[i] = double.Parse(array[i].Trim()); + } + this.m_DateRange2 = this.m_DataRange1[this.m_DataRange1.Length - 1]; + string text = this.m_LabelDataNum2.GetText(); + this.m_DataNum2 = int.Parse(text.Trim()); + string[] array2 = this.m_LabelDataRange3.GetText().Split(new char[] + { + ',' + }); + this.m_DataRange3 = new double[array2.Length]; + for (int j = 0; j < array2.Length; j++) + { + this.m_DataRange3[j] = double.Parse(array2[j].Trim()); + } + } + + private IEnumerator PlayFx(int index) + { + this.m_SelectFxRoot.gameObject.SetActive(true); + this.m_SelectFxControl.SetTweenGroup(0); + this.m_SelectFxControl.PlayTween(true, -1f); + this.m_btnUseFxControl.gameObject.SetActive(true); + this.m_btnUseFxControl.StopTween(); + this.m_btnUseFxControl.SetTweenGroup(0); + this.m_btnUseFxControl.PlayTween(true, -1f); + try + { + this.GetDataFromLabel(); + } + catch + { + this.doc_item.ToggleBlock(false); + this.RefeshInfo(); + yield break; + } + double wait_time = 0.0; + int idx = new System.Random(Time.frameCount).Next(0, 7); + int num2 = 32; + double[] ts = this.m_DataRange1; + double ts2 = this.m_DateRange2; + num2 = this.m_DataNum2 * 8; + double[] ts3 = this.m_DataRange3; + bool first = true; + int num3; + for (int i = 0; i < ts.Length; i = num3 + 1) + { + idx = (idx + 1) % 8; + this.PlayFxAt(idx, first); + first = false; + for (wait_time = ts[i]; wait_time > 0.0; wait_time -= (double)Time.deltaTime) + { + this.MoveFxTo(idx, wait_time, ts[i]); + yield return null; + } + num3 = i; + } + int mid_num = (index - ts3.Length - idx + 160) % 8 + num2; + for (int j = 0; j < mid_num; j = num3 + 1) + { + idx = (idx + 1) % 8; + this.PlayFxAt(idx, false); + for (wait_time = ts2; wait_time > 0.0; wait_time -= (double)Time.deltaTime) + { + this.MoveFxTo(idx, wait_time, ts2); + yield return null; + } + num3 = j; + } + for (int k = 0; k < ts3.Length; k = num3 + 1) + { + idx = (idx + 1) % 8; + this.PlayFxAt(idx, false); + for (wait_time = ts3[k]; wait_time > 0.0; wait_time -= (double)Time.deltaTime) + { + this.MoveFxTo(idx, wait_time, ts3[k]); + yield return null; + } + num3 = k; + } + this.doc_item.ToggleBlock(false); + this.m_btnUseFxControl.SetTweenGroup(1); + this.m_btnUseFxControl.PlayTween(true, -1f); + this.m_SelectFxControl.StopTween(); + this.m_SelectFxControl.SetTweenGroup(1); + this.m_SelectFxControl.PlayTween(true, -1f); + for (wait_time = 1.0; wait_time > 0.0; wait_time -= (double)Time.deltaTime) + { + yield return null; + } + this.RefeshInfo(); + yield break; + } + + protected override void OnHide() + { + base.OnHide(); + this._fx_coroutine = null; + this.doc_item.ToggleBlock(false); + } + + public override void OnUnload() + { + this.ClearEffectList(false); + base.OnUnload(); + this._fx_coroutine = null; + this.doc_item.ToggleBlock(false); + } + + public override void OnUpdate() + { + bool flag = this._fx_coroutine != null; + if (flag) + { + bool flag2 = !this._fx_coroutine.MoveNext(); + if (flag2) + { + this._fx_coroutine = null; + } + } + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.SetSysRedState(XSysDefine.XSys_LuckyTurntable, false); + this.doc.RefreshRedPoints(); + this.doc.RequestGetLuckyTurntableData(); + this._fx_coroutine = null; + } + + public void RefeshInfo() + { + XOperatingActivityDocument.LuckyTurntableInfo luckyTurntableData = this.doc.m_LuckyTurntableData; + this.m_btnBuy.gameObject.SetActive(false); + this.m_btnInvalid.gameObject.SetActive(false); + this.m_btnUse.gameObject.SetActive(false); + this.m_CostRoot.gameObject.SetActive(false); + bool isPay = luckyTurntableData.IsPay; + if (isPay) + { + this.m_btnUse.gameObject.SetActive(true); + this.m_btnUseFxControl.gameObject.SetActive(false); + } + else + { + bool canBuy = luckyTurntableData.CanBuy; + if (canBuy) + { + this.m_btnBuy.gameObject.SetActive(true); + Transform transform = this.m_btnBuy.gameObject.transform.Find("Label"); + bool flag = luckyTurntableData.Price > 0u; + if (flag) + { + this.m_CostRoot.gameObject.SetActive(true); + this.m_CostLabel.SetText(luckyTurntableData.Price.ToString()); + string strSprite; + string strAtlas; + XBagDocument.GetItemSmallIconAndAtlas(luckyTurntableData.CurrencyType, out strSprite, out strAtlas, 0u); + this.m_CostImg.SetSprite(strSprite, strAtlas, false); + bool flag2 = transform != null; + if (flag2) + { + transform.gameObject.SetActive(false); + } + } + else + { + bool flag3 = transform != null; + if (flag3) + { + transform.gameObject.SetActive(true); + } + } + } + else + { + this.m_btnInvalid.gameObject.SetActive(true); + } + } + this.RefreashList(); + } + + public void OnGetIndex(int index) + { + this._fx_coroutine = this.PlayFx(index); + } + + public void OnBuy() + { + this.RefeshInfo(); + this.OnClickUseBtn(null); + } + + private void RefreashList() + { + this._fx_coroutine = null; + this.m_SelectFxRoot.gameObject.SetActive(false); + this.ClearEffectList(true); + XOperatingActivityDocument.LuckyTurntableInfo luckyTurntableData = this.doc.m_LuckyTurntableData; + this.m_ItemPool.ReturnAll(false); + int num = Math.Min(8, luckyTurntableData.Items.Count); + for (int i = 0; i < num; i++) + { + XOperatingActivityDocument.LuckyTurntableItem luckyTurntableItem = luckyTurntableData.Items[i]; + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.name = i.ToString() + "-" + luckyTurntableItem.ItemID.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = this.m_positions[i]; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Quality").GetComponent("XUISprite") as IXUISprite; + IXUITweenTool ixuitweenTool = gameObject.transform.Find("tail_fx").GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.gameObject.SetActive(false); + this.m_tail_fxes[i] = ixuitweenTool; + ixuisprite.ID = (ulong)((long)luckyTurntableItem.ItemID); + bool flag = !luckyTurntableItem.HasReceived; + if (flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(luckyTurntableItem.ItemID); + this.SetItemEffect(ixuisprite2.gameObject, itemConf.ItemEffect); + } + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, luckyTurntableItem.ItemID, luckyTurntableItem.ItemCount, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + ixuisprite.SetGrey(!luckyTurntableItem.HasReceived); + ixuisprite2.SetGrey(!luckyTurntableItem.HasReceived); + } + } + + private void ClearEffectList(bool immediate) + { + bool flag = this.m_ItemEffectList != null; + if (flag) + { + int i = 0; + int count = this.m_ItemEffectList.Count; + while (i < count) + { + XSingleton.singleton.DestroyFx(this.m_ItemEffectList[i], immediate); + i++; + } + this.m_ItemEffectList.Clear(); + } + } + + private void SetItemEffect(GameObject parent, string effectName) + { + bool flag = string.IsNullOrEmpty(effectName); + if (!flag) + { + XFx xfx = XSingleton.singleton.CreateUIFx(effectName, parent.transform, false); + bool flag2 = xfx != null; + if (flag2) + { + this.m_ItemEffectList.Add(xfx); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableFrameHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableFrameHandler.cs.meta new file mode 100644 index 00000000..44256ac0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableFrameHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69686fc8b4b1bc74395f40a90732e476 +timeCreated: 1611403886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordBehaviour.cs new file mode 100644 index 00000000..e6a128b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordBehaviour.cs @@ -0,0 +1,9 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class LuckyTurntableRecordBehaviour : DlgBehaviourBase + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordBehaviour.cs.meta new file mode 100644 index 00000000..3c23d3c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c004d6ec9d29c043914bf03b8478cb0 +timeCreated: 1611404097 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordView.cs b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordView.cs new file mode 100644 index 00000000..9fa9f3a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordView.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class LuckyTurntableRecordView : DlgBase + { + public override string fileName + { + get + { + return "OperatingActivity/LuckyRecordDlg"; + } + } + + private IXUIButton m_btnBack; + + private IXUIButton m_btnClose; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_root; + + private Dictionary m_map = new Dictionary(); + + protected override void Init() + { + this.m_btnBack = (base.uiBehaviour.transform.Find("backclick").GetComponent("XUIButton") as IXUIButton); + this.m_btnClose = (base.uiBehaviour.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_root = base.uiBehaviour.transform.Find("Bg/ScrollView"); + GameObject gameObject = base.uiBehaviour.transform.Find("Bg/ScrollView/Item").gameObject; + this.m_ItemPool.SetupPool(this.m_root.gameObject, gameObject, 8u, false); + } + + public void ShowList(List> list) + { + this.m_map.Clear(); + foreach (KeyValuePair keyValuePair in list) + { + bool flag = !this.m_map.ContainsKey(keyValuePair.Key); + if (flag) + { + this.m_map[keyValuePair.Key] = 0; + } + Dictionary map = this.m_map; + int key = keyValuePair.Key; + map[key] += keyValuePair.Value; + } + this.SetVisibleWithAnimation(true, null); + this.RefreshList(); + } + + public void RefreshList() + { + this.m_ItemPool.ReturnAll(false); + List> list = new List>(this.m_map); + list.Sort(delegate(KeyValuePair a, KeyValuePair b) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(a.Key); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf(b.Key); + bool flag = itemConf == null; + int result; + if (flag) + { + result = 1; + } + else + { + bool flag2 = itemConf2 == null; + if (flag2) + { + result = -1; + } + else + { + bool flag3 = itemConf.ItemQuality > itemConf2.ItemQuality; + if (flag3) + { + result = -1; + } + else + { + bool flag4 = itemConf.ItemQuality < itemConf2.ItemQuality; + if (flag4) + { + result = 1; + } + else + { + result = itemConf.SortID.CompareTo(itemConf2.SortID); + } + } + } + } + return result; + }); + for (int i = 0; i < list.Count; i++) + { + KeyValuePair keyValuePair = list[i]; + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.name = keyValuePair.Key.ToString(); + gameObject.transform.localPosition = new Vector3((float)(i * this.m_ItemPool.TplWidth), 0f, 0f) + this.m_ItemPool.TplPos; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)keyValuePair.Key); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, keyValuePair.Key, keyValuePair.Value, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + + public override void RegisterEvent() + { + this.m_btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + this.m_btnBack.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + private bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordView.cs.meta new file mode 100644 index 00000000..b6befe46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/LuckyTurntableRecordView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5aa4ec89fbaad3b4093873e0c7e4877e +timeCreated: 1611403791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MailSystemDlg.cs b/Client/Assets/Scripts/XMainClient/UI/MailSystemDlg.cs new file mode 100644 index 00000000..9b807db7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MailSystemDlg.cs @@ -0,0 +1,94 @@ +using System; +using UnityEngine; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class MailSystemDlg : TabDlgBase + { + public override string fileName + { + get + { + return "GameSystem/MailDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public XSystemMailView _systemFrameView; + + public XPlayerMailView _playerFrameView; + + public XContentMailView _contMailView; + + private XMailDocument _doc = null; + + public GameObject m_systemFramePanel; + + public GameObject m_playerFramePanel; + + public GameObject m_contentFramePanel; + + public Transform tabTpl; + + public XUITabControl m_tabcontrol = new XUITabControl(); + + protected override void Init() + { + base.Init(); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_Mail); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XMailDocument.uuID) as XMailDocument); + } + + protected override void OnLoad() + { + base.OnLoad(); + this.tabTpl = base.uiBehaviour.transform.Find("Bg/Tabs/TabTpl"); + this.m_tabcontrol.SetTabTpl(this.tabTpl); + this.m_systemFramePanel = base.uiBehaviour.transform.Find("Bg/SystemFrame").gameObject; + this.m_systemFramePanel.SetActive(true); + this.m_playerFramePanel = base.uiBehaviour.transform.Find("Bg/PlayerFrame").gameObject; + this.m_playerFramePanel.SetActive(false); + this.m_contentFramePanel = base.uiBehaviour.transform.Find("Bg/ContentFrame").gameObject; + this.m_contentFramePanel.SetActive(true); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._systemFrameView); + DlgHandlerBase.EnsureUnload(ref this._playerFrameView); + DlgHandlerBase.EnsureUnload(ref this._contMailView); + base.OnUnload(); + } + + public override void SetupHandlers(XSysDefine sys) + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XMailDocument.uuID) as XMailDocument); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._contMailView, this.m_contentFramePanel, null, true)); + XSysDefine xsysDefine = sys; + if (xsysDefine != XSysDefine.XSys_Mail_System) + { + if (xsysDefine != XSysDefine.XSys_Mail_Player) + { + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._playerFrameView, this.m_playerFramePanel, this, true)); + } + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._systemFrameView, this.m_systemFramePanel, this, true)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MailSystemDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MailSystemDlg.cs.meta new file mode 100644 index 00000000..95149d20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MailSystemDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7ce35a759146784887f8f4f5e89d5ca +timeCreated: 1611404292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MallSystemDlg.cs b/Client/Assets/Scripts/XMainClient/UI/MallSystemDlg.cs new file mode 100644 index 00000000..21dea622 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MallSystemDlg.cs @@ -0,0 +1,262 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class MallSystemDlg : DlgBase + { + public XShopPurchaseView PurchaseView + { + get + { + return this._PurchaseView; + } + } + + public override string fileName + { + get + { + return "GameSystem/MallDlg"; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(this._sys); + } + } + + public XSysDefine SetSys + { + set + { + this._sys = value; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public XMystShopView _MystShopView; + + public XNormalShopView _NormalShopView; + + public XShopPurchaseView _PurchaseView; + + public XShopTabCategoryHandler _TabCategoryHandler; + + public GameObject m_MystShopPanel; + + public GameObject m_NormalShopPanel; + + private GameObject m_TabShopPanel; + + public bool m_OpenFromGeneral = false; + + private XSysDefine _sys = XSysDefine.XSys_Mall_Mall; + + public List m_MoneyTypeList = new List(); + + protected XSysDefine m_Sys = XSysDefine.XSys_Invalid; + + protected override void Init() + { + base.Init(); + this.m_MystShopPanel = base.uiBehaviour.transform.Find("Bg/MystShopFrame").gameObject; + this.m_MystShopPanel.SetActive(false); + this.m_NormalShopPanel = base.uiBehaviour.transform.Find("Bg/NormalShopFrame").gameObject; + this.m_NormalShopPanel.SetActive(false); + this.m_TabShopPanel = base.uiBehaviour.transform.Find("Bg/TabShopFrame").gameObject; + this.m_TabShopPanel.SetActive(false); + DlgHandlerBase.EnsureCreate(ref this._MystShopView, this.m_MystShopPanel, null, false); + DlgHandlerBase.EnsureCreate(ref this._NormalShopView, this.m_NormalShopPanel, this, false); + DlgHandlerBase.EnsureCreate(ref this._TabCategoryHandler, this.m_TabShopPanel, null, false); + Transform parent = base.uiBehaviour.transform.Find("Bg"); + DlgHandlerBase.EnsureCreate(ref this._PurchaseView, parent, false, this); + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._MystShopView); + DlgHandlerBase.EnsureUnload(ref this._NormalShopView); + DlgHandlerBase.EnsureUnload(ref this._PurchaseView); + DlgHandlerBase.EnsureUnload(ref this._TabCategoryHandler); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseShop)); + } + + public bool OnCloseShop(IXUIButton sp) + { + this.SetVisible(false, true); + this._PurchaseView.SetVisible(false); + this._NormalShopView.SetVisible(false); + this._MystShopView.SetVisible(false); + this._TabCategoryHandler.SetVisible(false); + this.m_OpenFromGeneral = false; + return true; + } + + public void HideShopSystem() + { + bool flag = this._NormalShopView != null; + if (flag) + { + this._NormalShopView.SetVisible(false); + } + } + + public void ShowShopSystem(XSysDefine sys, ulong itemID = 0UL) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.ToSelectShopItemID = itemID; + ShopTypeTable.RowData shopTypeData = specificDocument.GetShopTypeData(sys); + bool flag = shopTypeData == null; + if (!flag) + { + this.m_Sys = sys; + this.SetVisibleWithAnimation(true, null); + base.uiBehaviour.m_ShopName.SetText(shopTypeData.ShopName); + bool flag2 = sys == XSysDefine.XSys_Mall_MystShop; + if (flag2) + { + this.m_NormalShopPanel.SetActive(false); + this.m_MystShopPanel.SetActive(true); + this._MystShopView.SetVisible(true); + } + else + { + bool flag3 = specificDocument.IsTabShop(sys); + if (flag3) + { + this.m_NormalShopPanel.SetActive(false); + this.m_MystShopPanel.SetActive(false); + this._TabCategoryHandler.SetShopType(sys); + bool flag4 = this._TabCategoryHandler.IsVisible(); + if (flag4) + { + this._TabCategoryHandler.OnRefreshData(); + } + else + { + this._TabCategoryHandler.SetVisible(true); + } + } + else + { + bool flag5 = specificDocument.IsShop(sys); + if (flag5) + { + this.m_TabShopPanel.SetActive(false); + this.m_NormalShopPanel.SetActive(true); + this.m_MystShopPanel.SetActive(false); + this._NormalShopView.SetShopType(sys); + bool flag6 = this._NormalShopView.IsVisible(); + if (flag6) + { + this._NormalShopView.OnRefreshData(); + } + else + { + this._NormalShopView.SetVisible(true); + } + } + else + { + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + } + } + } + } + } + + public void RefreshMoneyBoard(List goodsList) + { + Dictionary dictionary = new Dictionary(); + this.m_MoneyTypeList.Clear(); + for (int i = 0; i < goodsList.Count; i++) + { + int priceType = goodsList[i].priceType; + dictionary[priceType] = 0; + } + foreach (int item in dictionary.Keys) + { + this.m_MoneyTypeList.Add(item); + } + for (int j = 0; j < MallSystemBehaviour.MAX_MONEY_NUM; j++) + { + bool flag = this.m_MoneyTypeList.Count > j; + if (flag) + { + base.uiBehaviour.m_MoneyBoard[j].SetVisible(true); + string itemSmallIcon = XBagDocument.GetItemSmallIcon(this.m_MoneyTypeList[j], 0u); + base.uiBehaviour.m_MoneyIcon[j].SetSprite(itemSmallIcon); + base.uiBehaviour.m_MoneyBack[j].ID = (ulong)((long)this.m_MoneyTypeList[j]); + base.uiBehaviour.m_MoneyBack[j].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMoneyAddClick)); + XSingleton.singleton.SetVirtualItem(base.uiBehaviour.m_MoneyTween[j], XSingleton.singleton.Doc.XBagDoc.GetItemCount(this.m_MoneyTypeList[j]), false, ""); + } + else + { + base.uiBehaviour.m_MoneyBoard[j].SetVisible(false); + } + } + } + + public bool OnVirtualItemChanged(ItemEnum e, ulong newValue) + { + return true; + } + + public bool OnItemCountChanged(int itemID, int itemCount) + { + return true; + } + + protected void OnMoneyAddClick(IXUISprite sp) + { + int num = (int)sp.ID; + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(num); + bool flag = fashionConf == null; + if (flag) + { + XSingleton.singleton.ShowItemAccess(num, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MallSystemDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MallSystemDlg.cs.meta new file mode 100644 index 00000000..02b375bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MallSystemDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 938660f360f650f4ab28fd5503d1580f +timeCreated: 1611404151 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MilitaryRankDlg.cs b/Client/Assets/Scripts/XMainClient/UI/MilitaryRankDlg.cs new file mode 100644 index 00000000..9daf4b36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MilitaryRankDlg.cs @@ -0,0 +1,350 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class MilitaryRankDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/MilitaryRankDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_MilitaryRank); + } + } + + private XMilitaryRankDocument _doc = null; + + public BattleRecordHandler m_BattleRecordHandler; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XMilitaryRankDocument.uuID); + this.SetRewardInfo(); + base.uiBehaviour.m_RewardFrame.SetActive(false); + DlgHandlerBase.EnsureCreate(ref this.m_BattleRecordHandler, base.uiBehaviour.m_BattleRecordFrame, null, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_RewardBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRewardBtnClick)); + base.uiBehaviour.m_RecordBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRecordBtnClick)); + base.uiBehaviour.m_RewardCloseBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRewardCloseBtnClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapListUpdated)); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_RewardSeasonIcb.ID = 1UL; + base.uiBehaviour.m_RewardResultIcb.ID = 2UL; + base.uiBehaviour.m_RewardSeasonIcb.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRewardCheckBoxClick)); + base.uiBehaviour.m_RewardResultIcb.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRewardCheckBoxClick)); + base.uiBehaviour.m_RecordHBtab.ID = 1UL; + base.uiBehaviour.m_RecordCPtab.ID = 0UL; + base.uiBehaviour.m_RecordHBtab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRecordTabClick)); + base.uiBehaviour.m_RecordCPtab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRecordTabClick)); + IXUIButton ixuibutton = base.uiBehaviour.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.EnableMainDummy(true, base.uiBehaviour.m_snapshotTransfrom); + this._doc.QueryRankInfo(); + } + + protected override void OnHide() + { + this.m_BattleRecordHandler.SetVisible(false); + XSingleton.singleton.EnableMainDummy(false, null); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_BattleRecordHandler); + base.OnUnload(); + } + + public void Refresh() + { + this.SetBaseInfo(); + base.uiBehaviour.m_WrapContent.SetContentCount(this._doc.RankList.Count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + this.SetRankData(base.uiBehaviour.m_MyRank, true, 0); + } + + private void SetBaseInfo() + { + XActivityDocument specificDocument = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0); + int hours = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).Hours; + dateTime = dateTime.AddSeconds((double)((ulong)specificDocument.ServerTimeSince1970 + (ulong)((long)(hours * 3600)))); + int num = DateTime.DaysInMonth(dateTime.Year, dateTime.Month); + string arg = string.Format("{0}.{1}.1-{2}.{3}.{4}", new object[] + { + dateTime.Year, + dateTime.Month, + dateTime.Year, + dateTime.Month, + num + }); + base.uiBehaviour.m_DateTime.SetText(string.Format(XStringDefineProxy.GetString("MilitaryDateTime"), arg)); + MilitaryRankByExploit.RowData byMilitaryRank = this._doc.MilitaryReader.GetByMilitaryRank(this._doc.MyData.MilitaryLevel); + bool flag = byMilitaryRank == null; + if (!flag) + { + MilitaryRankByExploit.RowData byMilitaryRank2 = this._doc.MilitaryReader.GetByMilitaryRank(this._doc.MyData.MilitaryLevel + 1u); + base.uiBehaviour.m_MilitaryValue.SetText(this._doc.MyData.MilitaryPoint.ToString()); + base.uiBehaviour.m_MilitaryRange.SetText(byMilitaryRank.ShowRange); + base.uiBehaviour.m_NextMilitary.SetText((byMilitaryRank2 == null) ? XStringDefineProxy.GetString("MilitaryLevelMax") : byMilitaryRank2.Name); + base.uiBehaviour.m_NextMilitaryIcon.spriteName = ((byMilitaryRank2 == null) ? "" : byMilitaryRank2.Icon); + base.uiBehaviour.m_MilitaryName.SetText(byMilitaryRank.Name); + base.uiBehaviour.m_MilitaryIcon.spriteName = byMilitaryRank.Icon; + } + } + + private void WrapListUpdated(Transform t, int i) + { + bool flag = i < 0 || i >= this._doc.RankList.Count; + if (!flag) + { + base.uiBehaviour.m_EmptyRank.SetActive(this._doc.RankList.Count == 0); + this.SetRankData(t, false, i); + } + } + + private void SetRankData(Transform t, bool isMy, int index) + { + MilitaryRankData militaryRankData = isMy ? this._doc.MyData : this._doc.RankList[index]; + MilitaryRankByExploit.RowData byMilitaryRank = this._doc.MilitaryReader.GetByMilitaryRank(militaryRankData.MilitaryLevel); + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("MilitaryName").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("MilitaryIcon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel3 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Value").GetComponent("XUILabel") as IXUILabel; + if (isMy) + { + GameObject gameObject = t.Find("OutOfRange").gameObject; + ixuilabel.SetVisible(militaryRankData.rank != uint.MaxValue); + gameObject.SetActive(militaryRankData.rank == uint.MaxValue); + } + bool flag = militaryRankData.rank < 3u; + if (flag) + { + ixuisprite.SetVisible(true); + ixuisprite.spriteName = string.Format("N{0}", militaryRankData.rank + 1u); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText((militaryRankData.rank + 1u).ToString()); + } + ixuisprite2.spriteName = ((byMilitaryRank == null) ? "" : byMilitaryRank.Icon); + ixuilabel2.SetText((byMilitaryRank == null) ? XStringDefineProxy.GetString("NONE") : byMilitaryRank.Name); + ixuilabel3.SetText(militaryRankData.name); + ixuilabel4.SetText(militaryRankData.MilitaryPoint.ToString()); + } + + private void SetRewardInfo() + { + base.uiBehaviour.m_RewardItemPool.ReturnAll(true); + base.uiBehaviour.m_RewardSeasonPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_RewardSeasonPool.TplPos; + for (int i = 0; i < this._doc.MilitarySeasonReader.Table.Length; i++) + { + MilitaryRankReward.RowData rowData = this._doc.MilitarySeasonReader.Table[i]; + GameObject gameObject = base.uiBehaviour.m_RewardSeasonPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * base.uiBehaviour.m_RewardSeasonPool.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + Transform parent = gameObject.transform.Find("Reward"); + bool flag = rowData.Rank[0] == rowData.Rank[1]; + if (flag) + { + ixuilabel.SetText(string.Format("No.{0}", rowData.Rank[0])); + } + else + { + ixuilabel.SetText(string.Format("No.{0}-{1}", rowData.Rank[0], rowData.Rank[1])); + } + for (int j = 0; j < (int)rowData.Reward.count; j++) + { + GameObject gameObject2 = base.uiBehaviour.m_RewardItemPool.FetchGameObject(false); + gameObject2.transform.parent = parent; + gameObject2.transform.localScale = Vector3.one; + gameObject2.transform.localPosition = new Vector3((float)(j * base.uiBehaviour.m_RewardItemPool.TplWidth), 0f); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)rowData.Reward[j, 0]); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, itemConf, (int)rowData.Reward[j, 1], false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject2, (int)rowData.Reward[j, 0]); + } + } + base.uiBehaviour.m_RewardResultPool.ReturnAll(false); + tplPos = base.uiBehaviour.m_RewardResultPool.TplPos; + for (int k = 0; k < this._doc.MilitaryReader.Table.Length; k++) + { + MilitaryRankByExploit.RowData rowData2 = this._doc.MilitaryReader.Table[k]; + bool flag2 = rowData2.MilitaryExploit[0] == 0u && rowData2.MilitaryExploit[1] == 0u; + GameObject gameObject3 = base.uiBehaviour.m_RewardResultPool.FetchGameObject(false); + gameObject3.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(k * base.uiBehaviour.m_RewardResultPool.TplHeight)); + IXUISprite ixuisprite = gameObject3.transform.Find("MilitaryIcon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = gameObject3.transform.Find("MilitaryName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject3.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuisprite.spriteName = rowData2.Icon; + ixuilabel2.SetText(rowData2.Name); + bool flag3 = flag2; + if (flag3) + { + ixuilabel3.SetText(XSingleton.singleton.ReplaceReturn(rowData2.RewardTips)); + } + else + { + ixuilabel3.SetText(string.Format("{0}-{1}", rowData2.MilitaryExploit[0], rowData2.MilitaryExploit[1])); + } + Transform parent2 = gameObject3.transform.Find("Reward"); + for (int l = 0; l < (int)rowData2.Reward.count; l++) + { + GameObject gameObject4 = base.uiBehaviour.m_RewardItemPool.FetchGameObject(false); + gameObject4.transform.parent = parent2; + gameObject4.transform.localScale = Vector3.one; + gameObject4.transform.localPosition = new Vector3((float)(l * base.uiBehaviour.m_RewardItemPool.TplWidth), 0f); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf((int)rowData2.Reward[l, 0]); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject4, itemConf2, (int)rowData2.Reward[l, 1], false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject4, (int)rowData2.Reward[l, 0]); + } + } + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void OnRewardBtnClick(IXUISprite iSp) + { + base.uiBehaviour.m_RewardFrame.SetActive(true); + } + + private void OnRecordBtnClick(IXUISprite iSp) + { + this.m_BattleRecordHandler.SetVisible(true); + bool bChecked = base.uiBehaviour.m_RecordHBtab.bChecked; + if (bChecked) + { + this.OnRecordTabClick(base.uiBehaviour.m_RecordHBtab); + } + else + { + this.OnRecordTabClick(base.uiBehaviour.m_RecordCPtab); + } + } + + private bool OnRecordTabClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = icb.ID == 1UL; + if (flag2) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument.QueryBattleRecord(); + } + else + { + XCaptainPVPDocument specificDocument2 = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + specificDocument2.ReqGetHistory(); + } + result = true; + } + return result; + } + + private void OnRewardCloseBtnClick(IXUISprite iSp) + { + base.uiBehaviour.m_RewardFrame.SetActive(false); + } + + private bool OnRewardCheckBoxClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + base.uiBehaviour.m_RewardSeasonFrame.SetActive(icb.ID == 1UL); + base.uiBehaviour.m_RewardResultFrame.SetActive(icb.ID != 1UL); + result = true; + } + return result; + } + + private bool OnHelpBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_MilitaryRank); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MilitaryRankDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MilitaryRankDlg.cs.meta new file mode 100644 index 00000000..4272527b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MilitaryRankDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ebb26d875f855a4c923eee3ca6b337c +timeCreated: 1611403906 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MiniMapElement.cs b/Client/Assets/Scripts/XMainClient/UI/MiniMapElement.cs new file mode 100644 index 00000000..3db528f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MiniMapElement.cs @@ -0,0 +1,20 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class MiniMapElement + { + public IXUISprite sp; + + public Transform transform; + + public Vector3 pos; + + public XFx notice; + + public uint heroID = 0u; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MiniMapElement.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MiniMapElement.cs.meta new file mode 100644 index 00000000..69306ee1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MiniMapElement.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d5084ea5a9cd3a14094f7431e2782624 +timeCreated: 1611404605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs b/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs new file mode 100644 index 00000000..b5ed22b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs @@ -0,0 +1,78 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class MobaActivityDlg : TabDlgBase + { + public override string fileName + { + get + { + return "GameSystem/DailyActivity/MobaActivityDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + protected override bool bHorizontal + { + get + { + return false; + } + } + + public PVPActivityDlg _PVPActivityView; + + private Transform parent; + + protected override void Init() + { + base.Init(); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_MobaAcitivity); + } + + protected override void OnLoad() + { + base.OnLoad(); + this.parent = base.uiBehaviour.transform.Find("Bg"); + } + + protected override void OnUnload() + { + base.OnUnload(); + DlgHandlerBase.EnsureUnload(ref this._PVPActivityView); + } + + public override void SetupHandlers(XSysDefine sys) + { + XSysDefine xsysDefine = sys; + if (xsysDefine != XSysDefine.XSys_PVPAcitivity) + { + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._PVPActivityView, this.parent, true, this)); + } + } + + public void ShowSubSystem(XSysDefine sys) + { + bool flag = !base.IsLoaded(); + if (flag) + { + base.Load(); + } + base.ShowSubGamsSystem(sys); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs.meta new file mode 100644 index 00000000..6951c03e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaActivityDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7b634117915619418cf21a38a719fb3 +timeCreated: 1611404403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaBattleHandler.cs b/Client/Assets/Scripts/XMainClient/UI/MobaBattleHandler.cs new file mode 100644 index 00000000..18cfcc7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaBattleHandler.cs @@ -0,0 +1,534 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class MobaBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/MobaBattleHandler"; + } + } + + private XMobaBattleDocument _doc = null; + + private IXUISprite m_SkillTips; + + private IXUILabel m_SkillName; + + private IXUILabel m_SkillAttr; + + private IXUILabel m_SkillMP; + + private IXUILabel m_SkillCD; + + private IXUILabel m_SkillDesc; + + private IXUILabel m_BlueKill; + + private IXUILabel m_RedKill; + + private IXUILabel m_BlueLevel; + + private IXUILabel m_RedLevel; + + private IXUILabel m_MyKill; + + private IXUILabel m_MyDead; + + private IXUILabel m_MyAssist; + + private GameObject m_AdditionFrame; + + private IXUISprite[] m_AdditionBtn = new IXUISprite[3]; + + private IXUISprite m_DetailBtn; + + private GameObject m_DetailFrame; + + private IXUIButton m_DetailCloseBtn; + + private XUIPool m_RedPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_BluePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List _labelList = new List(); + + private List _uidList = new List(); + + private float _refreshSignTime; + + private IXUILabel m_ReviveLeftTime; + + private bool _OnDeath; + + private uint _additionCloseDelayToken; + + private XFx _addFx; + + private XFx _boardFx; + + private XFx _moveFx; + + private int _curExpInd = 0; + + private static readonly int EXPMAXCOUT = 8; + + private XUIPool m_ExpPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private MobaBattleHandler.MobaExp[] m_ExpList = new MobaBattleHandler.MobaExp[MobaBattleHandler.EXPMAXCOUT]; + + private IXUISprite m_AttrShowBtn; + + public MapSignalHandler m_MapSignalHandler; + + private MobaHeadCondition m_headCondition; + + private class MobaExp + { + public GameObject m_Go; + + public IXUILabel m_Label; + + public IXUITweenTool m_PlayTween; + + public IUI3DFollow m_3DFollow; + + public bool state = false; + + public float vaildTime; + + public MobaExp(GameObject go) + { + this.m_Go = go; + this.m_3DFollow = (go.GetComponent("UI3DFollow") as IUI3DFollow); + this.m_Label = (go.transform.GetChild(0).GetComponent("XUILabel") as IXUILabel); + this.m_PlayTween = (this.m_Label.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool); + go.SetActive(false); + } + + public void SetExp(Vector3 pos, int exp) + { + this.m_Go.SetActive(true); + this.state = true; + this.m_3DFollow.SetPos(pos); + this.m_Label.SetText(string.Format("jy+{0}", exp)); + this.m_PlayTween.PlayTween(true, -1f); + this.vaildTime = Time.realtimeSinceStartup + 1f; + } + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + this.m_SkillTips = (base.transform.Find("SkillTips").GetComponent("XUISprite") as IXUISprite); + this.m_SkillName = (this.m_SkillTips.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_SkillAttr = (this.m_SkillTips.transform.Find("Attr").GetComponent("XUILabel") as IXUILabel); + this.m_SkillMP = (this.m_SkillTips.transform.Find("MP").GetComponent("XUILabel") as IXUILabel); + this.m_SkillCD = (this.m_SkillTips.transform.Find("CD").GetComponent("XUILabel") as IXUILabel); + this.m_SkillDesc = (this.m_SkillTips.transform.Find("Desc").GetComponent("XUILabel") as IXUILabel); + this.m_SkillTips.SetVisible(false); + this.m_BlueKill = (base.transform.Find("ScoreBoard/BlueKill").GetComponent("XUILabel") as IXUILabel); + this.m_RedKill = (base.transform.Find("ScoreBoard/RedKill").GetComponent("XUILabel") as IXUILabel); + this.m_BlueLevel = (base.transform.Find("ScoreBoard/BlueLevel/Num").GetComponent("XUILabel") as IXUILabel); + this.m_RedLevel = (base.transform.Find("ScoreBoard/RedLevel/Num").GetComponent("XUILabel") as IXUILabel); + this.m_MyKill = (base.transform.Find("ScoreBoard/MyScore/Kill").GetComponent("XUILabel") as IXUILabel); + this.m_MyDead = (base.transform.Find("ScoreBoard/MyScore/Dead").GetComponent("XUILabel") as IXUILabel); + this.m_MyAssist = (base.transform.Find("ScoreBoard/MyScore/Assist").GetComponent("XUILabel") as IXUILabel); + this.m_AdditionFrame = base.transform.Find("Addition").gameObject; + for (int i = 0; i < 3; i++) + { + this.m_AdditionBtn[i] = (this.m_AdditionFrame.transform.Find("ADD" + i.ToString()).GetComponent("XUISprite") as IXUISprite); + this.m_AdditionBtn[i].ID = (ulong)((long)i); + } + this.m_DetailBtn = (base.transform.Find("ScoreBoard/DetailBtn").GetComponent("XUISprite") as IXUISprite); + this.m_DetailFrame = base.transform.Find("DetailFrame").gameObject; + this.m_DetailCloseBtn = (this.m_DetailFrame.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = this.m_DetailFrame.transform.Find("BlueTeam/BlueTpl"); + this.m_BluePool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = this.m_DetailFrame.transform.Find("RedTeam/RedTpl"); + this.m_RedPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_DetailFrame.SetActive(false); + this.m_ReviveLeftTime = (base.transform.Find("ReviveLeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveLeftTime.SetVisible(false); + this._OnDeath = false; + this._curExpInd = 0; + transform = base.transform.Find("ExpMgr/Tpl"); + this.m_ExpPool.SetupPool(transform.parent.gameObject, transform.gameObject, (uint)MobaBattleHandler.EXPMAXCOUT, false); + for (int j = 0; j < MobaBattleHandler.EXPMAXCOUT; j++) + { + GameObject go = this.m_ExpPool.FetchGameObject(false); + this.m_ExpList[j] = new MobaBattleHandler.MobaExp(go); + } + this.m_AttrShowBtn = (base.transform.Find("AttrShowBtn").GetComponent("XUISprite") as IXUISprite); + DlgHandlerBase.EnsureCreate(ref this.m_headCondition, base.transform.Find("condition").gameObject, this, true); + DlgHandlerBase.EnsureCreate(ref this.m_MapSignalHandler, base.transform.Find("MapSignalHandler").gameObject, this, true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = 0; i < 3; i++) + { + this.m_AdditionBtn[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAdditionBtnClick)); + } + this.m_DetailBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowDetailBtnClick)); + this.m_DetailCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDetailBtnClick)); + this.m_SkillTips.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSkillTipsCloseClick)); + this.m_AttrShowBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAttrShowBtnClick)); + } + + public override void OnUnload() + { + bool flag = this._addFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._addFx, true); + } + bool flag2 = this._boardFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._boardFx, true); + } + bool flag3 = this._moveFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._moveFx, true); + } + XSingleton.singleton.KillTimer(this._additionCloseDelayToken); + DlgHandlerBase.EnsureUnload(ref this.m_headCondition); + DlgHandlerBase.EnsureUnload(ref this.m_MapSignalHandler); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void RefreshMyScore() + { + bool flag = this._doc.MyData != null; + if (flag) + { + this.m_MyKill.SetText(this._doc.MyData.kill.ToString()); + this.m_MyDead.SetText(this._doc.MyData.dead.ToString()); + this.m_MyAssist.SetText(this._doc.MyData.assist.ToString()); + } + } + + public void RefreshBattleMsg() + { + this.m_BlueKill.SetText(this._doc.MyTeamkill.ToString()); + this.m_BlueLevel.SetText(this._doc.MyTeamLevel.ToString()); + this.m_RedKill.SetText(this._doc.OtherTeamKill.ToString()); + this.m_RedLevel.SetText(this._doc.OtherTeamLevel.ToString()); + } + + public void OnAdditionBtnClick(IXUISprite iSp) + { + this._doc.QueryAdditionLevelUp((int)iSp.ID); + } + + public void OnShowDetailBtnClick(IXUISprite iSp) + { + this.m_DetailFrame.SetActive(true); + this.SetupDetailMsg(); + } + + public bool OnCloseDetailBtnClick(IXUIButton btn) + { + this.m_DetailFrame.SetActive(false); + return true; + } + + public void SetGetExpAnimation(uint exp, uint posxz) + { + Vector3 pos; + pos= new Vector3((posxz >> 16) / 100f, 0f, (posxz & 65535u) / 100f); + int curExpInd = this._curExpInd; + this._curExpInd = (this._curExpInd + 1) % MobaBattleHandler.EXPMAXCOUT; + this.m_ExpList[this._curExpInd].SetExp(pos, (int)exp); + } + + public void SetupDetailMsg() + { + bool flag = !this.m_DetailFrame.activeInHierarchy; + if (!flag) + { + this.m_BluePool.FakeReturnAll(); + this.m_RedPool.FakeReturnAll(); + this._labelList.Clear(); + this._uidList.Clear(); + int num = 0; + int num2 = 0; + bool flag2 = this._doc.MyData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("show detail msg error. mydata is null.", null, null, null, null, null); + } + else + { + this.SetupSingleDetail(this._doc.MyData, true, num++); + int i = 0; + int count = this._doc.MobaData.BufferValues.Count; + while (i < count) + { + bool flag3 = this._doc.MobaData.BufferValues[i].uid == this._doc.MyData.uid; + if (!flag3) + { + bool flag4 = this._doc.MobaData.BufferValues[i].teamID == this._doc.MyData.teamID; + if (flag4) + { + this.SetupSingleDetail(this._doc.MobaData.BufferValues[i], true, num++); + } + else + { + this.SetupSingleDetail(this._doc.MobaData.BufferValues[i], false, num2++); + } + } + i++; + } + this.m_BluePool.ActualReturnAll(false); + this.m_RedPool.ActualReturnAll(false); + } + } + } + + public void SetupSingleDetail(MobaMemberData data, bool isBlue, int index) + { + GameObject gameObject = isBlue ? this.m_BluePool.FetchGameObject(false) : this.m_RedPool.FetchGameObject(false); + OverWatchTable.RowData dataByHeroID = XHeroBattleDocument.GetDataByHeroID(data.heroID); + gameObject.transform.localPosition = new Vector3(this.m_BluePool.TplPos.x, this.m_BluePool.TplPos.y - (float)(this.m_BluePool.TplHeight * index)); + this._uidList.Add(data.uid); + this._labelList.Add(gameObject.transform.Find("TIME").GetComponent("XUILabel") as IXUILabel); + IXUISprite ixuisprite = gameObject.transform.Find("HeroIcon").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject2 = gameObject.transform.Find("UnSelect").gameObject; + bool flag = dataByHeroID == null; + if (flag) + { + ixuisprite.SetVisible(false); + gameObject2.SetActive(true); + } + else + { + ixuisprite.SetVisible(true); + gameObject2.SetActive(false); + ixuisprite.SetSprite(dataByHeroID.Icon, dataByHeroID.IconAtlas, false); + } + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data.name); + IXUILabel ixuilabel2 = gameObject.transform.Find("HeroName").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText((dataByHeroID == null) ? "" : dataByHeroID.Name); + IXUILabel ixuilabel3 = gameObject.transform.Find("AttackLevel").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(string.Format(XStringDefineProxy.GetString("LEVEL"), data.attackLevel)); + IXUILabel ixuilabel4 = gameObject.transform.Find("DefenseLevel").GetComponent("XUILabel") as IXUILabel; + ixuilabel4.SetText(string.Format(XStringDefineProxy.GetString("LEVEL"), data.defenseLevel)); + IXUILabel ixuilabel5 = gameObject.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetText(data.kill.ToString()); + IXUILabel ixuilabel6 = gameObject.transform.Find("Dead").GetComponent("XUILabel") as IXUILabel; + ixuilabel6.SetText(data.dead.ToString()); + IXUILabel ixuilabel7 = gameObject.transform.Find("Assist").GetComponent("XUILabel") as IXUILabel; + ixuilabel7.SetText(data.assist.ToString()); + GameObject gameObject3 = gameObject.transform.Find("Me").gameObject; + gameObject3.SetActive(data.isMy); + } + + public void SetAdditionFrameState(bool state) + { + bool flag = state == this.m_AdditionFrame.activeSelf; + if (!flag) + { + if (state) + { + this.m_AdditionFrame.SetActive(state); + } + else + { + XSingleton.singleton.KillTimer(this._additionCloseDelayToken); + this._additionCloseDelayToken = XSingleton.singleton.SetTimer(0.15f, new XTimerMgr.ElapsedEventHandler(this.DelayCloseAdditionFrame), null); + } + } + } + + public void DelayCloseAdditionFrame(object o = null) + { + this.m_AdditionFrame.SetActive(false); + } + + public void ShowAdditionFx(int index) + { + bool flag = this._addFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._addFx, true); + } + bool flag2 = this._boardFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._boardFx, true); + } + bool flag3 = this._moveFx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._moveFx, true); + } + Transform transform = base.transform.Find(string.Format("AddFx{0}", index)); + Transform transform2 = this.m_BlueLevel.gameObject.transform; + this._addFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_xishou", transform, false); + this._boardFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_fangkai", transform2, false); + this._moveFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yxxg_guocheng", transform, false); + this._addFx.Play(); + this._boardFx.Play(); + Vector3 vector = transform2.position - transform.position; + float num = Vector3.Angle(Vector3.right, vector); + bool flag4 = vector.y < 0f; + if (flag4) + { + num = -num; + } + this._moveFx.Play(transform.transform.position, Quaternion.Euler(0f, 0f, num), Vector3.one, 1f); + } + + public void OnSkillTipsCloseClick(IXUISprite iSp) + { + this.m_SkillTips.SetVisible(false); + } + + public void ShowSkillTips(bool state, uint skillID, int skillLevel) + { + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + this.m_SkillTips.SetVisible(state); + if (state) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, (uint)skillLevel, XSingleton.singleton.Player.SkillCasterTypeID); + bool flag2 = skillConfig == null; + if (flag2) + { + XSingleton.singleton.AddLog("moba skill tips can't find skillconfig, skillID = ", skillID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + this.m_SkillTips.SetVisible(false); + } + else + { + this.m_SkillName.SetText(skillConfig.ScriptName); + this.m_SkillAttr.SetText(XSkillTreeDocument.GetSkillAttrStr((int)skillConfig.Element)); + this.m_SkillMP.SetText((skillConfig.CostMP[0] + skillConfig.CostMP[1] * (float)skillLevel).ToString()); + bool flag3 = XSingleton.singleton.Player != null && XEntity.ValideEntity(XSingleton.singleton.Player.Transformer); + string text; + if (flag3) + { + text = string.Format("{0}s", Math.Round((double)XSkillMgr.GetCD(XSingleton.singleton.Player.Transformer, skillConfig.SkillScript, (uint)skillLevel) + 0.01, 1)); + } + else + { + text = "0s"; + } + this.m_SkillCD.SetText(text); + this.m_SkillDesc.SetText(skillConfig.CurrentLevelDescription); + } + } + } + } + + public void SetOnDeath() + { + this._OnDeath = true; + this.m_ReviveLeftTime.SetVisible(true); + } + + public void OnAttrShowBtnClick(IXUISprite isp) + { + bool flag = DlgBase.singleton.IsVisible(); + DlgBase.singleton.SetVisible(!flag, true); + bool flag2 = this._doc.MyData == null; + if (!flag2) + { + DlgBase.singleton.ShowByType(SceneType.SCENE_MOBA, this._doc.MyData.heroID); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = Camera.main != null; + if (flag) + { + int i = 0; + while (i < MobaBattleHandler.EXPMAXCOUT) + { + bool state = this.m_ExpList[i].state; + if (state) + { + bool flag2 = Time.realtimeSinceStartup > this.m_ExpList[i].vaildTime; + if (flag2) + { + this.m_ExpList[i].state = false; + this.m_ExpList[i].m_Go.SetActive(false); + } + } + IL_6E: + i++; + continue; + goto IL_6E; + } + } + bool flag3 = Time.realtimeSinceStartup - this._refreshSignTime < 1f; + if (!flag3) + { + bool activeInHierarchy = this.m_DetailFrame.activeInHierarchy; + if (activeInHierarchy) + { + this._refreshSignTime = Time.realtimeSinceStartup; + for (int j = 0; j < this._uidList.Count; j++) + { + MobaMemberData mobaMemberData; + bool flag4 = !this._doc.MobaData.TryGetValue(this._uidList[j], out mobaMemberData); + if (flag4) + { + XSingleton.singleton.AddErrorLog("can't update label because not find data by uid = ", this._uidList[j].ToString(), null, null, null, null); + } + else + { + bool flag5 = mobaMemberData.reviveTime <= 0f; + if (flag5) + { + this._labelList[j].SetVisible(false); + } + else + { + this._labelList[j].SetVisible(true); + this._labelList[j].SetText(mobaMemberData.reviveTime.ToString()); + } + } + } + } + bool flag6 = this._OnDeath && this._doc.MyData != null; + if (flag6) + { + this._refreshSignTime = Time.realtimeSinceStartup; + bool flag7 = this._doc.MyData.reviveTime <= 0f; + if (flag7) + { + this._OnDeath = false; + this.m_ReviveLeftTime.SetVisible(false); + } + else + { + this.m_ReviveLeftTime.SetText(this._doc.MyData.reviveTime.ToString()); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MobaBattleHandler.cs.meta new file mode 100644 index 00000000..d5fdd8ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 28035d19015a75844acfec68ff0b7b3f +timeCreated: 1611403473 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/MobaBehaviour.cs new file mode 100644 index 00000000..3e37d276 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaBehaviour.cs @@ -0,0 +1,16 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class MobaBehaviour : DlgBehaviourBase + { + public IXUITexture m_Texture; + + private void Awake() + { + this.m_Texture = (base.transform.Find("End/Icon").GetComponent("XUITexture") as IXUITexture); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MobaBehaviour.cs.meta new file mode 100644 index 00000000..ee5986ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2be63ba31d3dac45b9fa927a3adac24 +timeCreated: 1611404596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs b/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs new file mode 100644 index 00000000..2cd70f66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs @@ -0,0 +1,62 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class MobaEndDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/MobaEndDlg"; + } + } + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void SetPic(bool isWin) + { + if (isWin) + { + base.uiBehaviour.m_Texture.SetTexturePath("atlas/UI/Battle/victery"); + } + else + { + base.uiBehaviour.m_Texture.SetTexturePath("atlas/UI/Battle/failure"); + } + } + + protected override void OnHide() + { + base.uiBehaviour.m_Texture.SetTexturePath(""); + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs.meta new file mode 100644 index 00000000..841dd9bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaEndDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe9afbcda8e696f4aa161e450977d6a8 +timeCreated: 1611404942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaHeadCondition.cs b/Client/Assets/Scripts/XMainClient/UI/MobaHeadCondition.cs new file mode 100644 index 00000000..46144beb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaHeadCondition.cs @@ -0,0 +1,185 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class MobaHeadCondition : DlgHandlerBase + { + public List SelfTeamDatas + { + get + { + bool flag = this.m_selfTeamDatas == null; + if (flag) + { + this.m_selfTeamDatas = new List(); + } + return this.m_selfTeamDatas; + } + } + + public List OtherTeamDatas + { + get + { + bool flag = this.m_otherTeamDatas == null; + if (flag) + { + this.m_otherTeamDatas = new List(); + } + return this.m_otherTeamDatas; + } + } + + private List m_selfTeamPlayers; + + private List m_otherTeamPlayers; + + private List m_selfTeamDatas; + + private List m_otherTeamDatas; + + private IXUISprite m_selfTemp; + + private IXUISprite m_otherTemp; + + private XMobaBattleDocument m_doc; + + private float _RefreshSignTime = 0f; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + this.m_selfTemp = (base.transform.Find("blue").GetComponent("XUISprite") as IXUISprite); + this.m_selfTemp.SetVisible(false); + this.m_otherTemp = (base.transform.Find("red").GetComponent("XUISprite") as IXUISprite); + this.m_otherTemp.SetVisible(false); + } + + public override void OnUnload() + { + bool flag = this.m_selfTeamPlayers != null; + if (flag) + { + this.m_selfTeamPlayers.Clear(); + this.m_selfTeamPlayers = null; + } + bool flag2 = this.m_otherTeamDatas != null; + if (flag2) + { + this.m_otherTeamPlayers.Clear(); + this.m_otherTeamPlayers = null; + } + bool flag3 = this.m_selfTeamDatas != null; + if (flag3) + { + this.m_selfTeamDatas.Clear(); + this.m_selfTeamDatas = null; + } + bool flag4 = this.m_otherTeamDatas != null; + if (flag4) + { + this.m_otherTeamDatas.Clear(); + this.m_otherTeamDatas = null; + } + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = Time.realtimeSinceStartup - this._RefreshSignTime < 1f; + if (!flag) + { + this._RefreshSignTime = Time.realtimeSinceStartup; + this.SelfTeamDatas.Clear(); + this.OtherTeamDatas.Clear(); + int i = 0; + int count = this.m_doc.MobaData.BufferValues.Count; + while (i < count) + { + bool flag2 = this.FilterSelfTeamPlayer(this.m_doc.MobaData.BufferValues[i]); + if (flag2) + { + this.SelfTeamDatas.Add(this.m_doc.MobaData.BufferValues[i]); + } + else + { + bool flag3 = this.FilterOtherTeamPlayer(this.m_doc.MobaData.BufferValues[i]); + if (flag3) + { + this.OtherTeamDatas.Add(this.m_doc.MobaData.BufferValues[i]); + } + } + i++; + } + this.ShowHeaders(ref this.m_selfTeamPlayers, this.SelfTeamDatas, this.m_selfTemp); + this.ShowHeaders(ref this.m_otherTeamPlayers, this.OtherTeamDatas, this.m_otherTemp); + } + } + + private void ShowHeaders(ref List headers, List members, IXUISprite tempSprite) + { + bool flag = headers == null; + if (flag) + { + headers = new List(); + } + int count = members.Count; + int i = headers.Count; + while (i < count) + { + GameObject gameObject = XCommon.Instantiate(tempSprite.gameObject); + gameObject.transform.parent = tempSprite.transform.parent; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = tempSprite.transform.localPosition + new Vector3((float)(tempSprite.spriteWidth * i), 0f, 0f); + gameObject.name = tempSprite.gameObject.name + i.ToString(); + i++; + headers.Add(gameObject.transform); + } + for (int j = 0; j < i; j++) + { + bool flag2 = j < count; + if (flag2) + { + headers[j].gameObject.SetActive(true); + IXUISprite ixuisprite = headers[j].Find("HeroIcon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = headers[j].Find("TIME").GetComponent("XUILabel") as IXUILabel; + string strAtlas; + string strSprite; + XHeroBattleDocument.GetIconByHeroID(members[j].heroID, out strAtlas, out strSprite); + ixuisprite.SetSprite(strSprite, strAtlas, false); + bool flag3 = members[j].reviveTime > 0f; + if (flag3) + { + ixuisprite.SetGrey(false); + ixuilabel.SetText(((int)members[j].reviveTime).ToString()); + } + else + { + ixuisprite.SetGrey(true); + ixuilabel.SetText(string.Empty); + } + } + else + { + headers[j].gameObject.SetActive(false); + } + } + } + + private bool FilterSelfTeamPlayer(MobaMemberData mobaMember) + { + return this.m_doc.isAlly((int)mobaMember.teamID) && !mobaMember.isMy; + } + + private bool FilterOtherTeamPlayer(MobaMemberData mobaMember) + { + return !this.m_doc.isAlly((int)mobaMember.teamID) && mobaMember.reviveTime > 0f; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MobaHeadCondition.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MobaHeadCondition.cs.meta new file mode 100644 index 00000000..a644735b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MobaHeadCondition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21ca97beb40add14194b4bce9a7a4444 +timeCreated: 1611403415 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs new file mode 100644 index 00000000..be329e28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs @@ -0,0 +1,250 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class ModalDlg : DlgBase, IModalDlg, IXInterface + { + public bool Deprecated { get; set; } + + public override string fileName + { + get + { + return "Common/GreyModalDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public bool _bHasGrey = true; + + private ButtonClickEventHandler _bFrButtonDelegate = null; + + private ButtonClickEventHandler _bSecButtonDelegate = null; + + private Dictionary tempTip = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private XTempTipDefine _current; + + private string _title = ""; + + public XTempTipDefine StartTip = XTempTipDefine.OD_START; + + public ModalDlg() + { + int num = 0; + for (XTempTipDefine xtempTipDefine = (XTempTipDefine)num; xtempTipDefine != XTempTipDefine.OD_END; xtempTipDefine = (XTempTipDefine)num) + { + this.tempTip.Add(xtempTipDefine, false); + num++; + } + this._current = XTempTipDefine.OD_START; + } + + protected override void Init() + { + this.SetSingleButtonMode(true); + base.uiBehaviour.m_CloseButton.SetVisible(false); + base.uiBehaviour.m_title.gameObject.SetActive(false); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowNoTip(this.StartTip); + } + + protected override void OnHide() + { + this.StartTip = XTempTipDefine.OD_START; + base.uiBehaviour.m_lblTip.SetText(XStringDefineProxy.GetString("MODAL_NOTIP")); + base.uiBehaviour.m_CloseButton.gameObject.SetActive(false); + base.uiBehaviour.m_title.gameObject.SetActive(false); + this._title = ""; + base.OnHide(); + } + + public void SetPanelDepth(int depth) + { + base.uiBehaviour.m_Panel.SetDepth(depth); + } + + public void SetSingleButtonMode(bool bFlag) + { + float y = base.uiBehaviour.m_OKButton.gameObject.transform.localPosition.y; + if (bFlag) + { + base.uiBehaviour.m_CancelButton.SetVisible(false); + base.uiBehaviour.m_OKButton.gameObject.transform.localPosition = new Vector3(0f, y); + } + else + { + base.uiBehaviour.m_CancelButton.SetVisible(true); + base.uiBehaviour.m_OKButton.gameObject.transform.localPosition = base.uiBehaviour.m_TwoButtonPos0.transform.localPosition; + base.uiBehaviour.m_CancelButton.gameObject.transform.localPosition = base.uiBehaviour.m_TwoButtonPos1.transform.localPosition; + } + } + + public void SetCloseButtonVisible(bool visible) + { + base.uiBehaviour.m_CloseButton.SetVisible(visible); + } + + public void SetTitle(string title) + { + this._title = title; + } + + public void LuaShow(string content, ButtonClickEventHandler handler, ButtonClickEventHandler handler2) + { + this.SetVisible(true, true); + this.SetSingleButtonMode(false); + this.SetLabelsWithSymbols(content, "OK", "Cancel"); + base.uiBehaviour.m_OKButton.RegisterClickEventHandler(handler); + base.uiBehaviour.m_CancelButton.RegisterClickEventHandler(handler2); + } + + public void SetLabels(string mainLabel, string frLabel, string secLabel) + { + base.uiBehaviour.m_LabelSymbol.InputText = ""; + base.uiBehaviour.m_Label.SetText(mainLabel); + base.uiBehaviour.m_OKButton.SetCaption(frLabel); + base.uiBehaviour.m_CancelButton.SetCaption(secLabel); + } + + public void SetLabelsWithSymbols(string mainLabel, string frLabel, string secLabel) + { + base.uiBehaviour.m_LabelSymbol.InputText = mainLabel; + base.uiBehaviour.m_OKButton.SetCaption(frLabel); + base.uiBehaviour.m_CancelButton.SetCaption(secLabel); + base.uiBehaviour.m_title.gameObject.SetActive(!string.IsNullOrEmpty(this._title)); + base.uiBehaviour.m_title.SetText(this._title); + } + + public void SetModalCallback(ButtonClickEventHandler handle, ButtonClickEventHandler handle2 = null) + { + this._bFrButtonDelegate = new ButtonClickEventHandler(this.SetTempTip); + this._bFrButtonDelegate = (ButtonClickEventHandler)Delegate.Combine(this._bFrButtonDelegate, handle); + base.uiBehaviour.m_OKButton.RegisterClickEventHandler(this._bFrButtonDelegate); + this._bSecButtonDelegate = new ButtonClickEventHandler(this.SetTempTip); + bool flag = handle2 != null; + if (flag) + { + this._bSecButtonDelegate = (ButtonClickEventHandler)Delegate.Combine(this._bSecButtonDelegate, handle2); + } + else + { + this._bSecButtonDelegate = (ButtonClickEventHandler)Delegate.Combine(this._bSecButtonDelegate, new ButtonClickEventHandler(this.DoCancel)); + } + base.uiBehaviour.m_CancelButton.RegisterClickEventHandler(this._bSecButtonDelegate); + } + + public void SetTweenTargetAndPlay(GameObject go) + { + this.SetVisible(true, true); + base.uiBehaviour.m_PlayTween.SetTargetGameObject(go); + base.uiBehaviour.m_PlayTween.PlayTween(true, -1f); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_CancelButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoCancel)); + base.uiBehaviour.m_CloseButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoClose)); + } + + public bool SetTempTip(IXUIButton go) + { + bool flag = this._current == XTempTipDefine.OD_START; + bool result; + if (flag) + { + result = false; + } + else + { + this.tempTip[this._current] = base.uiBehaviour.m_NoTip.bChecked; + result = true; + } + return result; + } + + public void ForceSetTipsValue(XTempTipDefine type, bool state) + { + this.tempTip[type] = state; + } + + public bool DoCancel(IXUIButton go) + { + this.SetVisible(false, true); + return true; + } + + public void DoCancel(IXUISprite sp) + { + this.SetVisible(false, true); + } + + public bool DoClose(IXUIButton go) + { + this.SetVisible(false, true); + return true; + } + + public bool GetTempTip(XTempTipDefine tip) + { + bool flag = tip == XTempTipDefine.OD_START; + return !flag && this.tempTip[tip]; + } + + public void ShowNoTip(XTempTipDefine tip) + { + bool flag = tip == XTempTipDefine.OD_START; + if (flag) + { + base.uiBehaviour.m_NoTip.gameObject.transform.parent.gameObject.SetActive(false); + } + else + { + bool flag2 = tip == XTempTipDefine.OD_CHAT_WORLD; + if (flag2) + { + base.uiBehaviour.m_lblTip.SetText(XStringDefineProxy.GetString("MODAL_CHAT")); + } + else + { + base.uiBehaviour.m_lblTip.SetText(XStringDefineProxy.GetString("MODAL_NOTIP")); + } + base.uiBehaviour.m_NoTip.gameObject.transform.parent.gameObject.SetActive(true); + base.uiBehaviour.m_NoTip.bChecked = false; + } + this._current = tip; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs.meta new file mode 100644 index 00000000..b94d2cd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d28c3921e33a58744850b9b895b80ec9 +timeCreated: 1611404595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs b/Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs new file mode 100644 index 00000000..0eef6134 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs @@ -0,0 +1,91 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class ModalDlg2 : DlgBase + { + public override string fileName + { + get + { + return "Common/GreyModalDlg2"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private ButtonClickEventHandler _bFrButtonDelegate = null; + + private ButtonClickEventHandler _bSecButtonDelegate = null; + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_Select1.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSelect1BtnClick)); + base.uiBehaviour.m_Select2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSelect2BtnClick)); + } + + public bool OnCloseBtnClick(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + public bool OnSelect1BtnClick(IXUIButton btn) + { + this._bFrButtonDelegate(base.uiBehaviour.m_Select1); + this.SetVisible(false, true); + return true; + } + + public bool OnSelect2BtnClick(IXUIButton btn) + { + this._bSecButtonDelegate(base.uiBehaviour.m_Select2); + this.SetVisible(false, true); + return true; + } + + public void SetBtnMsg(IXUIButton btn, string price, string label) + { + IXUILabelSymbol ixuilabelSymbol = btn.gameObject.transform.Find("Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = btn.gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + ixuilabelSymbol.InputText = price; + ixuilabel.SetText(label); + } + + public void InitShow(string text, ButtonClickEventHandler func1, ButtonClickEventHandler func2, string price1, string price2, string btnLabel1, string btnLabel2) + { + this.SetVisible(true, true); + this.SetBtnMsg(base.uiBehaviour.m_Select1, price1, btnLabel1); + this.SetBtnMsg(base.uiBehaviour.m_Select2, price2, btnLabel2); + base.uiBehaviour.m_Text.InputText = text; + this._bFrButtonDelegate = func1; + this._bSecButtonDelegate = func2; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs.meta new file mode 100644 index 00000000..b87c5394 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalDlg2.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3271e014731b3e44c9d14c6743d39041 +timeCreated: 1611403549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalDlg2Behaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ModalDlg2Behaviour.cs new file mode 100644 index 00000000..4c40c01a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalDlg2Behaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class ModalDlg2Behaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabelSymbol m_Text; + + public IXUIButton m_Select1; + + public IXUIButton m_Select2; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Text = (base.transform.Find("Bg/Label").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Select1 = (base.transform.Find("Bg/Select1").GetComponent("XUIButton") as IXUIButton); + this.m_Select2 = (base.transform.Find("Bg/Select2").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalDlg2Behaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ModalDlg2Behaviour.cs.meta new file mode 100644 index 00000000..fb2691ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalDlg2Behaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4cbd68b665cb5b54f8fc177e704fae2d +timeCreated: 1611403693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs new file mode 100644 index 00000000..4bf66194 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs @@ -0,0 +1,58 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class ModalDlgBehaviour : DlgBehaviourBase + { + public IXUILabel m_Label = null; + + public IXUILabelSymbol m_LabelSymbol = null; + + public IXUIButton m_OKButton = null; + + public IXUIButton m_CancelButton = null; + + public IXUIButton m_CloseButton = null; + + public IXUISprite m_Grey = null; + + public IXUITweenTool m_PlayTween = null; + + public IXUIPanel m_Panel = null; + + public GameObject m_TwoButtonPos0; + + public GameObject m_TwoButtonPos1; + + public IXUICheckBox m_NoTip = null; + + public IXUILabel m_lblTip = null; + + public IXUILabel m_title = null; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Label"); + this.m_Label = (transform.GetComponent("XUILabel") as IXUILabel); + this.m_LabelSymbol = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol); + Transform transform2 = base.transform.Find("Bg/OK"); + this.m_OKButton = (transform2.GetComponent("XUIButton") as IXUIButton); + Transform transform3 = base.transform.Find("Bg/Cancel"); + this.m_CancelButton = (transform3.GetComponent("XUIButton") as IXUIButton); + this.m_CloseButton = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_CloseButton.SetVisible(false); + this.m_Grey = (base.transform.Find("Grey").GetComponent("XUISprite") as IXUISprite); + Transform transform4 = base.transform.Find("Bg"); + this.m_PlayTween = (transform4.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Panel = (base.transform.GetComponent("XUIPanel") as IXUIPanel); + this.m_TwoButtonPos0 = base.transform.Find("Bg/TwoButtonPos0").gameObject; + this.m_TwoButtonPos1 = base.transform.Find("Bg/TwoButtonPos1").gameObject; + this.m_NoTip = (transform4.Find("NoTip/NoTip").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_lblTip = (transform4.transform.Find("NoTip/T").GetComponent("XUILabel") as IXUILabel); + this.m_title = (transform4.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs.meta new file mode 100644 index 00000000..9c4a888f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4361208f1b0f5b4d852533df78e60e8 +timeCreated: 1611404852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlg.cs new file mode 100644 index 00000000..2a404408 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlg.cs @@ -0,0 +1,164 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class ModalSettingNumberDlg : DlgBase + { + public override string fileName + { + get + { + return "Common/ModelSettingNumber"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public uint MinNumber = 0u; + + public uint MaxNumber = 100u; + + public uint step = 1u; + + public uint ItemID = 0u; + + public string Title; + + public ModalSettingNumberDlg.GetInputNumber callBack; + + public delegate void GetInputNumber(uint number); + + protected override void Init() + { + base.uiBehaviour.CancelBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoCancel)); + base.uiBehaviour.OkBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoClose)); + base.uiBehaviour.backSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.DoCancel)); + base.uiBehaviour.AddBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoAdd)); + base.uiBehaviour.SubBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoSub)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.numLabel.SetText(this.MinNumber.ToString()); + base.uiBehaviour.titleLabel.SetText(this.Title); + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.itemObject, (int)this.ItemID, 1, false); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public void SetPanelDepth(int depth) + { + } + + public void SetSingleButtonMode(bool bFlag) + { + } + + public void SetCloseButtonVisible(bool visible) + { + } + + public void SetModalInfo(ModalSettingNumberDlg.GetInputNumber handle) + { + this.callBack = handle; + } + + public void SetTweenTargetAndPlay(GameObject go) + { + } + + public override void RegisterEvent() + { + } + + private bool DoSub(IXUIButton button) + { + int num = 0; + bool flag = int.TryParse(base.uiBehaviour.numLabel.GetText(), out num); + if (flag) + { + num = Math.Max((int)this.MinNumber, (int)((long)num - (long)((ulong)this.step))); + base.uiBehaviour.numLabel.SetText(num.ToString()); + } + return true; + } + + private bool DoAdd(IXUIButton button) + { + uint num = 0u; + bool flag = uint.TryParse(base.uiBehaviour.numLabel.GetText(), out num); + if (flag) + { + num = Math.Min(this.MaxNumber, num + this.step); + base.uiBehaviour.numLabel.SetText(num.ToString()); + } + return true; + } + + public bool DoCancel(IXUIButton go) + { + this.SetVisible(false, true); + this.callBack = null; + return true; + } + + public void DoCancel(IXUISprite sp) + { + this.ResetData(); + } + + private void ResetData() + { + this.callBack = null; + this.step = 1u; + base.uiBehaviour.numLabel.SetText("1"); + this.SetVisible(false, true); + } + + public bool DoClose(IXUIButton go) + { + bool flag = this.callBack != null; + if (flag) + { + uint number = 0u; + bool flag2 = uint.TryParse(base.uiBehaviour.numLabel.GetText(), out number); + if (flag2) + { + this.callBack(number); + } + } + this.ResetData(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlg.cs.meta new file mode 100644 index 00000000..c92df503 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a80571a4406e1a8488f5c630c87c06d2 +timeCreated: 1611404294 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlgBehaviour.cs new file mode 100644 index 00000000..da2aa8b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlgBehaviour.cs @@ -0,0 +1,38 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class ModalSettingNumberDlgBehaviour : DlgBehaviourBase + { + public IXUIButton AddBtn; + + public IXUIButton SubBtn; + + public IXUIButton CancelBtn; + + public IXUIButton OkBtn; + + public GameObject itemObject; + + public IXUILabel numLabel; + + public IXUILabel titleLabel; + + public IXUISprite backSprite; + + private void Awake() + { + this.AddBtn = (base.transform.Find("Count/Add").GetComponent("XUIButton") as IXUIButton); + this.SubBtn = (base.transform.Find("Count/Sub").GetComponent("XUIButton") as IXUIButton); + this.numLabel = (base.transform.Find("Count/number").GetComponent("XUILabel") as IXUILabel); + this.titleLabel = (base.transform.Find("findname").GetComponent("XUILabel") as IXUILabel); + this.CancelBtn = (base.transform.Find("BtnNO").GetComponent("XUIButton") as IXUIButton); + this.OkBtn = (base.transform.Find("BtnOK").GetComponent("XUIButton") as IXUIButton); + this.itemObject = base.transform.Find("ItemTemplate").gameObject; + this.backSprite = (base.transform.Find("back").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlgBehaviour.cs.meta new file mode 100644 index 00000000..5a8d62fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalSettingNumberDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b2ef5ce52c574e4cb0c0631c07d2be7 +timeCreated: 1611403166 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs new file mode 100644 index 00000000..494b48a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs @@ -0,0 +1,148 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class ModalThreeDlg : DlgBase + { + public bool Deprecated { get; set; } + + public override string fileName + { + get + { + return "Common/ThreeChoiceModalDlg"; + } + } + + public override int layer + { + get + { + return 90; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private ButtonClickEventHandler _bFrButtonDelegate = null; + + private ButtonClickEventHandler _bSecButtonDelegate = null; + + private ButtonClickEventHandler _bTrdButtonDelegate = null; + + protected override void Init() + { + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public void SetPanelDepth(int depth) + { + base.uiBehaviour.m_Panel.SetDepth(depth); + } + + public void SetCloseButtonVisible(bool visible) + { + base.uiBehaviour.m_CloseButton.SetVisible(visible); + } + + public void SetLabels(string mainLabel, string frLabel, string secLabel, string thdLabel) + { + base.uiBehaviour.m_LabelSymbol.InputText = ""; + base.uiBehaviour.m_Label.SetText(mainLabel); + base.uiBehaviour.m_Button1.SetCaption(frLabel); + base.uiBehaviour.m_Button2.SetCaption(secLabel); + base.uiBehaviour.m_Button3.SetCaption(thdLabel); + } + + public void SetLabelsWithSymbols(string mainLabel, string frLabel, string secLabel, string thdLabel) + { + base.uiBehaviour.m_LabelSymbol.InputText = mainLabel; + base.uiBehaviour.m_Button1.SetCaption(frLabel); + base.uiBehaviour.m_Button2.SetCaption(secLabel); + base.uiBehaviour.m_Button3.SetCaption(thdLabel); + } + + public void SetMainLabel(string mainlabel) + { + base.uiBehaviour.m_LabelSymbol.InputText = mainlabel; + } + + public void SetModalCallback(ButtonClickEventHandler handle, ButtonClickEventHandler handle2 = null, ButtonClickEventHandler handle3 = null) + { + this._bFrButtonDelegate = new ButtonClickEventHandler(this.DoCancel); + bool flag = handle != null; + if (flag) + { + this._bFrButtonDelegate = handle; + } + base.uiBehaviour.m_Button1.RegisterClickEventHandler(this._bFrButtonDelegate); + this._bSecButtonDelegate = new ButtonClickEventHandler(this.DoCancel); + bool flag2 = handle2 != null; + if (flag2) + { + this._bSecButtonDelegate = handle2; + } + base.uiBehaviour.m_Button2.RegisterClickEventHandler(this._bSecButtonDelegate); + this._bTrdButtonDelegate = new ButtonClickEventHandler(this.DoCancel); + bool flag3 = handle3 != null; + if (flag3) + { + this._bTrdButtonDelegate = handle3; + } + base.uiBehaviour.m_Button3.RegisterClickEventHandler(this._bTrdButtonDelegate); + } + + public void SetTweenTargetAndPlay(GameObject go) + { + this.SetVisible(true, true); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_CloseButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoClose)); + } + + public bool DoCancel(IXUIButton go) + { + this.SetVisible(false, true); + return true; + } + + public void DoCancel(IXUISprite sp) + { + this.SetVisible(false, true); + } + + public bool DoClose(IXUIButton go) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs.meta new file mode 100644 index 00000000..dbcf7364 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb0614b8a1abbd0449d092f5f98e9608 +timeCreated: 1611404929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlgBehaviour.cs new file mode 100644 index 00000000..c3180f51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlgBehaviour.cs @@ -0,0 +1,36 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class ModalThreeDlgBehaviour : DlgBehaviourBase + { + public IXUIButton m_Button1; + + public IXUIButton m_Button2; + + public IXUIButton m_Button3; + + public IXUIButton m_CloseButton; + + public IXUIPanel m_Panel; + + public IXUILabel m_Label = null; + + public IXUILabelSymbol m_LabelSymbol = null; + + private void Awake() + { + this.m_Button1 = (base.transform.Find("Bg/choice1").GetComponent("XUIButton") as IXUIButton); + this.m_Button2 = (base.transform.Find("Bg/choice2").GetComponent("XUIButton") as IXUIButton); + this.m_Button3 = (base.transform.Find("Bg/choice3").GetComponent("XUIButton") as IXUIButton); + this.m_CloseButton = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Panel = (base.transform.GetComponent("XUIPanel") as IXUIPanel); + Transform transform = base.transform.Find("Bg/Info"); + this.m_Label = (transform.GetComponent("XUILabel") as IXUILabel); + this.m_LabelSymbol = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlgBehaviour.cs.meta new file mode 100644 index 00000000..5d155709 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ModalThreeDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 910886703b99a6740a89878f17a55656 +timeCreated: 1611404141 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MoneyTreeData.cs b/Client/Assets/Scripts/XMainClient/UI/MoneyTreeData.cs new file mode 100644 index 00000000..471ef9ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MoneyTreeData.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient.UI +{ + internal class MoneyTreeData + { + public uint free_count = 0u; + + public uint free_all_count = 0u; + + public uint count = 0u; + + public uint all_count = 0u; + + public uint left_time = 0u; + + public float req_time = 0f; + + public List result = new List(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MoneyTreeData.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MoneyTreeData.cs.meta new file mode 100644 index 00000000..fb09567a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MoneyTreeData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6616cfb1a1ed65f46a1967e7ce647010 +timeCreated: 1611403853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MyBattleKillInfo.cs b/Client/Assets/Scripts/XMainClient/UI/MyBattleKillInfo.cs new file mode 100644 index 00000000..827c0d62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MyBattleKillInfo.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient.UI +{ + public class MyBattleKillInfo + { + public int contiKillCount; + + public bool isRevenge; + + public void SetInfo(int _contiKillCount, bool _isRevenge = false) + { + this.contiKillCount = _contiKillCount; + this.isRevenge = _isRevenge; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MyBattleKillInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MyBattleKillInfo.cs.meta new file mode 100644 index 00000000..bf3018d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MyBattleKillInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d0954293983b6e4fb7ceb53b84b0336 +timeCreated: 1611403999 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/MyHomeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/MyHomeHandler.cs new file mode 100644 index 00000000..44edc819 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MyHomeHandler.cs @@ -0,0 +1,380 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class MyHomeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Home/MyHomeHandler"; + } + } + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_LogItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_gotoMyHome; + + private Transform m_visitedTimesTra; + + private Transform m_fishingLevelTra; + + private Transform m_baitNumTra; + + private Transform m_plantNumTra; + + private Transform m_harvestTimeTra; + + private Transform m_homeStatusTra; + + private GameObject m_hadFriendsGo; + + private GameObject m_noFriendsGo; + + private GameObject m_hadInfoGo; + + private GameObject m_noInfoGo; + + private GameObject m_redDotGo; + + private IXUIWrapContent m_friendsRankWrap; + + private HomeMainDocument m_doc; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("HomeInfo"); + this.m_gotoMyHome = (transform.Find("GoToHome").GetComponent("XUIButton") as IXUIButton); + this.m_redDotGo = transform.Find("RedPoint").gameObject; + this.m_visitedTimesTra = transform.Find("VisitedTimes"); + this.m_fishingLevelTra = transform.Find("FishingLevel"); + this.m_baitNumTra = transform.Find("BaitNum"); + this.m_plantNumTra = transform.Find("PlantNum"); + this.m_harvestTimeTra = transform.Find("HarvestTime"); + this.m_homeStatusTra = transform.Find("HomeStatus"); + transform = this.m_homeStatusTra.Find("Status"); + this.m_ItemPool.SetupPool(transform.gameObject, transform.Find("Icon").gameObject, 3u, false); + this.m_hadInfoGo = base.PanelObject.transform.Find("HomeLog/Panel").gameObject; + this.m_noInfoGo = base.PanelObject.transform.Find("HomeLog/NoInfo").gameObject; + transform = base.PanelObject.transform.Find("HomeLog/Panel/LabsWrap"); + this.m_LogItemPool.SetupPool(transform.gameObject, transform.Find("Tpl").gameObject, 2u, false); + this.m_hadFriendsGo = base.PanelObject.transform.Find("FriendsRank/Panel").gameObject; + this.m_noFriendsGo = base.PanelObject.transform.Find("FriendsRank/NoFriends").gameObject; + transform = base.PanelObject.transform.Find("FriendsRank/Panel"); + this.m_friendsRankWrap = (transform.Find("ItemsWrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_friendsRankWrap.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.FriendsRankWrapItemUpdated)); + this.m_doc = HomeMainDocument.Doc; + this.m_doc.HomeHandler = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_gotoMyHome.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGotoHome)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + this.m_LogItemPool.ReturnAll(false); + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void RefreshUi() + { + this.FillContent(); + } + + private void FillContent() + { + this.m_redDotGo.SetActive(this.m_doc.IsHadRedDot); + IXUILabel ixuilabel = this.m_visitedTimesTra.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this.m_doc.VisitedTimes.ToString()); + ixuilabel = (this.m_fishingLevelTra.Find("Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("EQUIPCREATE_EQUIPSET_LEVEL_FMT"), this.m_doc.FishLevel)); + ixuilabel = (this.m_baitNumTra.Find("Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(this.m_doc.FishBaitNum.ToString()); + ixuilabel = (this.m_plantNumTra.Find("Num").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("{0}/{1}", this.m_doc.PlantAmount, this.m_doc.MaxCanPlantAmount)); + ixuilabel = (this.m_harvestTimeTra.Find("Num").GetComponent("XUILabel") as IXUILabel); + bool flag = this.m_doc.ShowFarm == null; + if (flag) + { + ixuilabel.SetText(XStringDefineProxy.GetString("CanPlanting")); + } + else + { + bool flag2 = this.m_doc.ShowFarm.Stage == GrowStage.Ripe; + if (flag2) + { + ixuilabel.SetText(XStringDefineProxy.GetString("CanHarvest")); + } + else + { + ixuilabel.SetText(this.GetTimeString(this.m_doc.ShowFarm.GrowLeftTime())); + } + } + this.m_ItemPool.ReturnAll(false); + int num = 0; + bool hadHarvest = this.m_doc.HadHarvest; + if (hadHarvest) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(-(float)num * this.m_ItemPool.TplWidth), 0f, 0f); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite("HomeView_2"); + num++; + } + bool hadSpecificState = this.m_doc.HadSpecificState; + if (hadSpecificState) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(-(float)num * this.m_ItemPool.TplWidth), 0f, 0f); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite("HomeView_0"); + num++; + } + bool hadTroublemaker = this.m_doc.HadTroublemaker; + if (hadTroublemaker) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(-(float)num * this.m_ItemPool.TplWidth), 0f, 0f); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite("HomeView_1"); + num++; + } + bool flag3 = this.m_doc.HomeLogList == null || this.m_doc.HomeLogList.Count == 0; + if (flag3) + { + this.m_hadInfoGo.SetActive(false); + this.m_noInfoGo.SetActive(true); + } + else + { + this.m_hadInfoGo.SetActive(true); + this.m_noInfoGo.SetActive(false); + this.SetHomeLog(); + } + bool flag4 = this.m_doc.PlantFriendList == null || this.m_doc.PlantFriendList.Count == 0; + if (flag4) + { + this.m_hadFriendsGo.SetActive(false); + this.m_noFriendsGo.SetActive(true); + } + else + { + this.m_hadFriendsGo.SetActive(true); + this.m_noFriendsGo.SetActive(false); + this.m_friendsRankWrap.SetContentCount(this.m_doc.PlantFriendList.Count, false); + } + } + + private void SetHomeLog() + { + this.m_LogItemPool.ReturnAll(false); + float num = 0f; + for (int i = 0; i < this.m_doc.HomeLogList.Count; i++) + { + GameObject gameObject = this.m_LogItemPool.FetchGameObject(false); + gameObject.SetActive(false); + gameObject.SetActive(true); + gameObject.transform.localPosition = new Vector3(0f, num, 0f); + HomeEventLog homeEventLog = this.m_doc.HomeLogList[i]; + IXUILabel ixuilabel = gameObject.transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(homeEventLog.Txt); + num -= (float)(ixuilabel.spriteHeight + 5); + ixuilabel = (gameObject.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(homeEventLog.Time); + } + } + + private void FriendsRankWrapItemUpdated(Transform t, int index) + { + bool flag = this.m_doc.PlantFriendList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("no data", null, null, null, null, null); + } + else + { + bool flag2 = index >= this.m_doc.PlantFriendList.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("index >= m_doc.PlantFriendList.Count", null, null, null, null, null); + } + else + { + bool flag3 = index >= 3; + if (!flag3) + { + FriendPlantLog friendPlantLog = this.m_doc.PlantFriendList[index]; + Transform transform = t.Find("Info"); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)friendPlantLog.profession_id)); + IXUILabel ixuilabel = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(friendPlantLog.role_name); + ixuilabel = (transform.Find("Times").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("{0}{1}", XStringDefineProxy.GetString("HelpTimes"), friendPlantLog.help_times)); + IXUIButton ixuibutton = t.Find("VisitBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGotoOtherHome)); + this.SetRank(t, index); + } + } + } + } + + private void SetRank(Transform tra, int rankIndex) + { + IXUILabel ixuilabel = tra.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = tra.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = (long)rankIndex == (long)((ulong)XRankDocument.INVALID_RANK); + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + bool flag2 = rankIndex < 3; + if (flag2) + { + ixuisprite.SetSprite("N" + (rankIndex + 1)); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText((rankIndex + 1).ToString()); + ixuilabel.SetVisible(true); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_doc == null || this.m_doc.ShowFarm == null; + if (!flag) + { + IXUILabel ixuilabel = this.m_harvestTimeTra.Find("Num").GetComponent("XUILabel") as IXUILabel; + bool flag2 = this.m_doc.ShowFarm.Stage == GrowStage.Ripe; + if (flag2) + { + ixuilabel.SetText(XStringDefineProxy.GetString("CanHarvest")); + } + else + { + bool flag3 = this.m_doc.ShowFarm.Stage > GrowStage.None; + if (flag3) + { + ixuilabel.SetText(this.GetTimeString(this.m_doc.ShowFarm.GrowLeftTime())); + } + } + } + } + + private string GetTimeString(long ti) + { + bool flag = ti < 60L; + string result; + if (flag) + { + string text = string.Format("{0}{1}", ti, XStringDefineProxy.GetString("MINUTE_DUARATION")); + result = text; + } + else + { + long num = ti / 60L; + long num2 = ti % 60L; + bool flag2 = num2 != 0L; + string text; + if (flag2) + { + text = string.Format("{0}{1}{2}{3}", new object[] + { + num, + XStringDefineProxy.GetString("HOUR_DUARATION"), + num2, + XStringDefineProxy.GetString("MINUTE_DUARATION") + }); + } + else + { + text = string.Format("{0}{1}", num, XStringDefineProxy.GetString("HOUR_DUARATION")); + } + result = text; + } + return result; + } + + private bool OnGotoHome(IXUIButton btn) + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag = sceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag) + { + HomeTypeEnum homeType = HomePlantDocument.Doc.HomeType; + bool flag2 = homeType == HomeTypeEnum.MyHome; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EnterHomeAgainTips"), "fece00"); + return true; + } + } + DlgBase.singleton.SetVisible(false, true); + this.m_doc.ReqEnterHomeScene(XSingleton.singleton.XPlayerData.RoleID, XSingleton.singleton.XPlayerData.Name); + return true; + } + + private bool OnGotoOtherHome(IXUIButton btn) + { + FriendPlantLog friendPlantLog = this.m_doc.PlantFriendList[(int)btn.ID]; + bool flag = friendPlantLog == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("not find data", null, null, null, null, null); + result = true; + } + else + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag2 = sceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag2) + { + ulong gardenId = HomePlantDocument.Doc.GardenId; + bool flag3 = gardenId == friendPlantLog.role_id; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("EnterOtherHomeAgainTips"), friendPlantLog.role_name), "fece00"); + return true; + } + } + this.m_doc.ReqEnterHomeScene(friendPlantLog.role_id, friendPlantLog.role_name); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/MyHomeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/MyHomeHandler.cs.meta new file mode 100644 index 00000000..2debb2ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/MyHomeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78880a3157a814e48b9cee5b9dee4614 +timeCreated: 1611403981 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/NestStarRewardHandler.cs b/Client/Assets/Scripts/XMainClient/UI/NestStarRewardHandler.cs new file mode 100644 index 00000000..808c8f82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/NestStarRewardHandler.cs @@ -0,0 +1,120 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class NestStarRewardHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/NestStarReward"; + } + } + + private IXUIButton m_Close; + + private GameObject m_itemParentGo; + + private XUIPool m_ItemPool1 = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ItemPool2 = new XUIPool(XSingleton.singleton.m_uiTool); + + private XNestDocument m_doc; + + protected override void Init() + { + base.Init(); + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_itemParentGo = base.transform.Find("Panel/List").gameObject; + Transform transform = this.m_itemParentGo.transform.Find("Tpl"); + this.m_ItemPool1.SetupPool(this.m_itemParentGo, transform.gameObject, 5u, false); + this.m_ItemPool2.SetupPool(transform.gameObject, this.m_itemParentGo.transform.Find("Item").gameObject, 4u, false); + this.m_doc = XDocuments.GetSpecificDocument(XNestDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + this.m_ItemPool1.ReturnAll(false); + this.m_ItemPool2.ReturnAll(false); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + this.m_ItemPool1.ReturnAll(false); + this.m_ItemPool2.ReturnAll(false); + base.OnUnload(); + } + + private void FillContent() + { + this.m_ItemPool1.ReturnAll(false); + this.m_ItemPool2.ReturnAll(false); + List nestStarRewards = this.m_doc.GetNestStarRewards(this.m_doc.NestType); + for (int i = 0; i < nestStarRewards.Count; i++) + { + NestStarReward.RowData rowData = nestStarRewards[i]; + bool flag = rowData == null; + if (!flag) + { + GameObject gameObject = this.m_ItemPool1.FetchGameObject(false); + gameObject.transform.parent = this.m_itemParentGo.transform; + gameObject.name = i.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_ItemPool1.TplHeight * i), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Tittle); + ixuilabel = (gameObject.transform.Find("ch").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XStringDefineProxy.GetString("FirstPassPlayerTittle")); + ixuilabel.gameObject.SetActive(rowData.IsHadTittle == 1u); + ixuilabel = (gameObject.transform.Find("Image/Rank").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(rowData.Stars.ToString()); + this.FillItem(rowData, gameObject); + } + } + } + + private void FillItem(NestStarReward.RowData data, GameObject parentGo) + { + for (int i = 0; i < data.Reward.Count; i++) + { + GameObject gameObject = this.m_ItemPool2.FetchGameObject(false); + gameObject.transform.parent = parentGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(-170 + this.m_ItemPool2.TplWidth * i), -16f, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)data.Reward[i, 0]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)data.Reward[i, 0], (int)data.Reward[i, 1], false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + + public bool OnCloseClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/NestStarRewardHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/NestStarRewardHandler.cs.meta new file mode 100644 index 00000000..7cf6c8c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/NestStarRewardHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfd3ad138da6a78448053ad7858e9fcf +timeCreated: 1611404582 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/OldFriendsReplayHandler.cs b/Client/Assets/Scripts/XMainClient/UI/OldFriendsReplayHandler.cs new file mode 100644 index 00000000..e0bed07e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/OldFriendsReplayHandler.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class OldFriendsReplayHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/OldFriendsBack"; + } + } + + protected XUIPool _itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + Transform transform = base.transform.Find("ThreeRoot/Item"); + Transform transform2 = base.transform.Find("ThreeRoot"); + Transform transform3 = base.transform.Find("FiveRoot"); + IXUILabel ixuilabel = transform2.Find("ThreeLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = transform3.Find("FiveLabel").GetComponent("XUILabel") as IXUILabel; + List intList = XSingleton.singleton.GetIntList("BackThreeFriendsCount"); + string @string = XSingleton.singleton.GetString("BackOldFriendsTip"); + ixuilabel.SetText(string.Format(@string, intList[0])); + ixuilabel2.SetText(string.Format(@string, intList[1])); + IXUISprite ixuisprite = base.transform.Find("DetailBtn").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OpenUrl)); + this._itemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + this._itemPool.ReturnAll(false); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("BackThreeFriendsRewards", true); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + GameObject gameObject = this._itemPool.FetchGameObject(false); + gameObject.transform.parent = transform2; + gameObject.transform.localPosition = new Vector3((float)(this._itemPool.TplWidth * i), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, sequenceList[i, 0], sequenceList[i, 1], false); + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)sequenceList[i, 0]); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + SeqList sequenceList2 = XSingleton.singleton.GetSequenceList("BackFiveFriendsRewards", true); + for (int j = 0; j < (int)sequenceList2.Count; j++) + { + GameObject gameObject2 = this._itemPool.FetchGameObject(false); + gameObject2.transform.parent = transform3; + gameObject2.transform.localPosition = new Vector3((float)(this._itemPool.TplWidth * j), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, sequenceList2[j, 0], sequenceList2[j, 1], false); + IXUISprite ixuisprite3 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)((long)sequenceList2[j, 0]); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + + private void OpenUrl(IXUISprite uiSprite) + { + XSingleton.singleton.OpenHtmlUrl("BackThreeFriendsUrl"); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnHide() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/OldFriendsReplayHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/OldFriendsReplayHandler.cs.meta new file mode 100644 index 00000000..fd2e3751 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/OldFriendsReplayHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 208b83d302362ed4f8d2328462696856 +timeCreated: 1611403407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PPTBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/PPTBehaviour.cs new file mode 100644 index 00000000..dc3f2ea3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PPTBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class PPTBehaviour : DlgBehaviourBase + { + public IXUILabel m_PPT; + + public IXUILabel m_IncreasePPT; + + public IXUILabel m_DecreasePPT; + + private void Awake() + { + this.m_PPT = (base.transform.Find("Bg/PPT").GetComponent("XUILabel") as IXUILabel); + this.m_IncreasePPT = (base.transform.Find("Bg/Delta/Inc").GetComponent("XUILabel") as IXUILabel); + this.m_DecreasePPT = (base.transform.Find("Bg/Delta/Dec").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PPTBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PPTBehaviour.cs.meta new file mode 100644 index 00000000..3e9fcf4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PPTBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 838a1ddbf661f4941bb9f440b73a7286 +timeCreated: 1611404045 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs b/Client/Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs new file mode 100644 index 00000000..71822a51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs @@ -0,0 +1,62 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PPTCheckMgr : XSingleton + { + private ButtonClickEventHandler mGoStillHandler; + + public bool CheckMyPPT(int needPPT) + { + XMainInterfaceDocument xmainInterfaceDocument = XSingleton.singleton.Doc.GetXComponent(XMainInterfaceDocument.uuID) as XMainInterfaceDocument; + int playerPPT = xmainInterfaceDocument.GetPlayerPPT(); + return playerPPT >= needPPT; + } + + public void ShowPPTNotEnoughDlg(ulong btnID, ButtonClickEventHandler goBattleHandle) + { + this.mGoStillHandler = goBattleHandle; + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetLabelsWithSymbols(XStringDefineProxy.GetString("LEVEL_POWERLOWER"), XStringDefineProxy.GetString("LEVEL_POWERUP"), XStringDefineProxy.GetString("LEVEL_CONTINUE")); + DlgBase.singleton.uiBehaviour.m_CancelButton.ID = btnID; + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.GoPowerUp), new ButtonClickEventHandler(this.GoStill)); + DlgBase.singleton.SetTweenTargetAndPlay(DlgBase.singleton.uiBehaviour.gameObject); + } + + private bool GoStill(IXUIButton go) + { + DlgBase.singleton.SetVisible(false, true); + bool flag = this.mGoStillHandler != null; + if (flag) + { + this.mGoStillHandler(go); + } + this.mGoStillHandler = null; + return true; + } + + private bool GoPowerUp(IXUIButton go) + { + DlgBase.singleton.SetVisible(false, true); + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Strong); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("StrengthNotOpen"), "fece00"); + result = true; + } + else + { + XSingleton.singleton.ClearUIinStack(); + XSingleton.singleton.OpenSystem(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Strong)); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs.meta new file mode 100644 index 00000000..e1fb3f97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PPTCheckMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e601ad90f1030c449cad8349337a914 +timeCreated: 1611403607 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs b/Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs new file mode 100644 index 00000000..551f8fe6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs @@ -0,0 +1,176 @@ +using System; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PPTDlg : DlgBase + { + public override string fileName + { + get + { + return "Common/PPTDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + private int _curPPT = 0; + + private int _targetPPT = 0; + + private float _PPTtime = 0f; + + private const float _PPTExistTime = 2.5f; + + private int delta = 0; + + private DateTime _last_power_sound_time = DateTime.Now; + + private bool is_inited = false; + + public void InitDlg() + { + bool flag = !this.is_inited; + if (flag) + { + XPlayer player = XSingleton.singleton.Player; + XPlayerAttributes xplayerAttributes = player.Attributes as XPlayerAttributes; + this._curPPT = (int)xplayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + this._targetPPT = this._curPPT; + this.is_inited = true; + } + } + + public void UnInit() + { + this.is_inited = false; + this._targetPPT = (this._curPPT = 0); + } + + protected override void Init() + { + base.Init(); + } + + public override void OnUpdate() + { + bool flag = this._curPPT != this._targetPPT; + if (flag) + { + this._curPPT += this.delta; + bool flag2 = (this.delta > 0 && this._curPPT >= this._targetPPT) || (this.delta < 0 && this._curPPT <= this._targetPPT); + if (flag2) + { + this._curPPT = this._targetPPT; + this._PPTtime = Time.time; + } + base.uiBehaviour.m_PPT.SetText(this._curPPT.ToString()); + } + else + { + bool flag3 = this._PPTtime > 0f && Time.time - this._PPTtime > 2.5f; + if (flag3) + { + this._PPTtime = 0f; + bool flag4 = base.IsVisible(); + if (flag4) + { + this.SetVisible(false, true); + } + } + } + } + + public void ShowPPT(int ppt) + { + this.InitDlg(); + bool flag = ppt != this._targetPPT; + if (flag) + { + this.SetPowerpoint(ppt); + } + } + + private void SetPowerpoint(int ppt) + { + bool flag = ppt > this._curPPT; + if (flag) + { + bool flag2 = (DateTime.Now - this._last_power_sound_time).TotalMilliseconds > 1000.0; + if (flag2) + { + this._last_power_sound_time = DateTime.Now; + XSingleton.singleton.PlayUISound("Audio/UI/zhandoulitishen", true, AudioChannel.Action); + } + } + bool flag3 = ppt != this._targetPPT; + if (flag3) + { + this.OnPowerpointChanged(this._targetPPT, ppt); + } + else + { + this._targetPPT = ppt; + this._curPPT = ppt; + } + } + + public void OnPowerpointChanged(int oldValue, int newValue) + { + this._curPPT = oldValue; + this._targetPPT = newValue; + this._PPTtime = 0f; + int num = newValue - oldValue; + bool flag = num > 0; + if (flag) + { + this.SetVisible(true, true); + base.uiBehaviour.m_IncreasePPT.SetVisible(true); + base.uiBehaviour.m_IncreasePPT.SetText(num.ToString()); + base.uiBehaviour.m_DecreasePPT.SetVisible(false); + } + else + { + bool flag2 = num < 0; + if (flag2) + { + this.SetVisible(true, true); + base.uiBehaviour.m_IncreasePPT.SetVisible(false); + base.uiBehaviour.m_DecreasePPT.SetText((-num).ToString()); + base.uiBehaviour.m_DecreasePPT.SetVisible(true); + } + } + this.delta = (newValue - oldValue) / 30; + bool flag3 = this.delta == 0; + if (flag3) + { + this.delta = 1; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs.meta new file mode 100644 index 00000000..ebfdc6c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PPTDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58e96592e2884294c905ce3cd1e9e1ee +timeCreated: 1611403760 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PVPActivityDlg.cs b/Client/Assets/Scripts/XMainClient/UI/PVPActivityDlg.cs new file mode 100644 index 00000000..14a16b07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PVPActivityDlg.cs @@ -0,0 +1,292 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PVPActivityDlg : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/DailyActivity/PVPActivityFrame"; + } + } + + private XPVPActivityDocument _doc; + + public XUIPool m_ActivityPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ScrollView; + + private IXUIButton m_FameHallBtn; + + private static readonly string ATLAS_PATH = "atlas/UI/GameSystem/Activity/"; + + public IXUIButton m_MilitaryRankBtn; + + protected override void Init() + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XPVPActivityDocument.uuID) as XPVPActivityDocument); + this.m_ScrollView = (base.PanelObject.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = base.PanelObject.transform.Find("Panel/Tpl"); + this.m_ActivityPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_FameHallBtn = (base.transform.Find("Down/Btn_MobaFamous").GetComponent("XUIButton") as IXUIButton); + this.m_FameHallBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickedFameHallBtn)); + this.m_MilitaryRankBtn = (base.PanelObject.transform.Find("Down/Btn_MobaRank").GetComponent("XUIButton") as IXUIButton); + this.m_MilitaryRankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMilitaryRankBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_MilitaryRankBtn.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_MilitaryRank)); + this.Refresh(); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.DestroyTextureInActivePool(this.m_ActivityPool, "Tex"); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.Refresh(); + this.RefreshHallFameBtn(); + } + + private bool OnMilitaryRankBtnClick(IXUIButton btn) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_MilitaryRank); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_SYS_NOTOPEN"), "fece00"); + result = false; + } + else + { + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(XSysDefine.XSys_MilitaryRank); + bool flag2 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)sysOpenLevel); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL"), sysOpenLevel), "fece00"); + } + else + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_MilitaryRank, 0UL); + } + result = true; + } + return result; + } + + private string GetMissConditionString(PVPActivityList.RowData data) + { + XActivityDocument specificDocument = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + int sysOpenServerDay = XSingleton.singleton.GetSysOpenServerDay((int)data.SysID); + bool flag = specificDocument.ServerOpenDay < sysOpenServerDay; + string result; + if (flag) + { + result = string.Format(XStringDefineProxy.GetString("MulActivity_ServerOpenDay"), sysOpenServerDay - specificDocument.ServerOpenDay); + } + else + { + bool flag2 = XSingleton.singleton.XPlayerData != null && (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.GetSysOpenLevel((int)data.SysID)); + if (flag2) + { + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel((int)data.SysID); + result = string.Format(XStringDefineProxy.GetString("MulActivity_ShowTips9"), sysOpenLevel); + } + else + { + result = XStringDefineProxy.GetString("PVPActivityUnOpen"); + } + } + return result; + } + + public void OnPVPActivityClick(IXUISprite iSp) + { + XSysDefine xsysDefine = (XSysDefine)iSp.ID; + PVPActivityList.RowData bySysID = this._doc.PVPActivityTable.GetBySysID((uint)iSp.ID); + XActivityDocument specificDocument = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + XFreeTeamVersusLeagueDocument specificDocument2 = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + int sysOpenServerDay = XSingleton.singleton.GetSysOpenServerDay((int)iSp.ID); + bool flag = specificDocument.ServerOpenDay < sysOpenServerDay; + if (flag) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("MulActivity_ServerOpenDay"), sysOpenServerDay - specificDocument.ServerOpenDay), "fece00"); + } + else + { + bool flag2 = !XSingleton.singleton.IsSystemOpened(xsysDefine); + if (flag2) + { + bool flag3 = XSingleton.singleton.XPlayerData != null && (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XSingleton.singleton.GetSysOpenLevel((int)bySysID.SysID)); + if (flag3) + { + int sysid = XFastEnumIntEqualityComparer.ToInt(xsysDefine); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(sysid); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + sysOpenLevel + }) + XSingleton.singleton.GetSysName(sysid), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PVPActivityUnOpen"), "fece00"); + } + } + else + { + bool flag4 = xsysDefine == XSysDefine.XSys_TeamLeague && !specificDocument2.IsOpen; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PVPActivityUnOpen"), "fece00"); + } + else + { + XSingleton.singleton.OpenSystem(xsysDefine, 0UL); + } + } + } + } + + public void Refresh() + { + this.RefreshHallFameBtn(); + this.m_ScrollView.SetPosition(0f); + this.m_ActivityPool.ReturnAll(false); + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + XActivityDocument specificDocument2 = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + for (int i = 0; i < this._doc.PVPActivityTable.Table.Length; i++) + { + PVPActivityList.RowData rowData = this._doc.PVPActivityTable.Table[i]; + GameObject gameObject = this.m_ActivityPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_ActivityPool.TplPos.x + (float)(i * this.m_ActivityPool.TplWidth), this.m_ActivityPool.TplPos.y, 0f); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rowData.SysID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPVPActivityClick)); + IXUITexture ixuitexture = gameObject.transform.Find("Tex").GetComponent("XUITexture") as IXUITexture; + IXUILabel ixuilabel = gameObject.transform.Find("Desc").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Go").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject2 = gameObject.transform.Find("Lock").gameObject; + GameObject gameObject3 = gameObject.transform.Find("kf").gameObject; + GameObject gameObject4 = gameObject.transform.Find("RedPoint").gameObject; + bool flag = XSingleton.singleton.IsSystemOpened((XSysDefine)rowData.SysID) && specificDocument2.ServerOpenDay >= XSingleton.singleton.GetSysOpenServerDay((int)rowData.SysID); + bool flag2 = true; + bool flag3 = rowData.SysID == 960u; + if (flag3) + { + flag2 = specificDocument.IsOpen; + } + string texturePath = string.Format("{0}{1}", PVPActivityDlg.ATLAS_PATH, rowData.Icon); + ixuitexture.SetTexturePath(texturePath); + ixuitexture.SetEnabled(flag && flag2); + bool flag4 = flag && flag2; + if (flag4) + { + ixuitexture.SetAlpha(1f); + } + else + { + ixuitexture.SetAlpha(0.7058824f); + } + gameObject2.SetActive(!flag); + gameObject3.SetActive(rowData.SysID == 960u && specificDocument.IsCross); + bool sysRedPointState = XSingleton.singleton.GetSysRedPointState((int)rowData.SysID); + gameObject4.SetActive(sysRedPointState); + bool flag5 = sysRedPointState; + if (flag5) + { + IXUILabel ixuilabel3 = gameObject4.gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(this.GetLeftCount((XSysDefine)rowData.SysID).ToString()); + } + bool flag6 = !flag; + if (flag6) + { + ixuilabel2.SetText(this.GetMissConditionString(rowData)); + } + else + { + bool flag7 = !flag2; + if (flag7) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("PVPActivityUnOpen")); + } + else + { + ixuilabel2.SetText(""); + } + } + ixuilabel.SetText(rowData.Description); + } + } + + private void RefreshHallFameBtn() + { + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_HallFame); + this.m_FameHallBtn.gameObject.SetActive(flag); + bool flag2 = flag; + if (flag2) + { + Transform transform = this.m_FameHallBtn.gameObject.transform.Find("RedPoint"); + transform.gameObject.SetActive(XHallFameDocument.Doc.CanSupportType.Count > 0); + } + } + + private int GetLeftCount(XSysDefine sys) + { + XSysDefine xsysDefine = sys; + if (xsysDefine <= XSysDefine.XSys_CustomBattle) + { + if (xsysDefine == XSysDefine.XSys_Qualifying) + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + int @int = XSingleton.singleton.GetInt("QualifyingFirstRewardCount"); + return Mathf.Max(@int - (int)specificDocument.LeftFirstRewardCount, 0); + } + if (xsysDefine == XSysDefine.XSys_CustomBattle) + { + XCustomBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + return (specificDocument2.BountyModeRedPoint ? 1 : 0) + (specificDocument2.CustomModeRedPoint ? 1 : 0); + } + } + else + { + if (xsysDefine == XSysDefine.XSys_WeekNest) + { + XExpeditionDocument specificDocument3 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + return specificDocument3.GetDayCount(TeamLevelType.TeamLevelWeekNest, null); + } + if (xsysDefine == XSysDefine.XSys_HeroBattle) + { + XHeroBattleDocument specificDocument4 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + int int2 = XSingleton.singleton.GetInt("HeroBattleSpecialNum"); + return Math.Max(int2 - (int)specificDocument4.JoinToday, 0); + } + if (xsysDefine == XSysDefine.XSys_Moba) + { + int int3 = XSingleton.singleton.GetInt("MobaStageNum"); + XMobaEntranceDocument specificDocument5 = XDocuments.GetSpecificDocument(XMobaEntranceDocument.uuID); + return ((ulong)specificDocument5.GetRewardStage < (ulong)((long)int3)) ? 1 : 0; + } + } + XSingleton.singleton.AddErrorLog("needless pvpactivity count but try to get it. sys = ", sys.ToString(), null, null, null, null); + return 0; + } + + private bool OnClickedFameHallBtn(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PVPActivityDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PVPActivityDlg.cs.meta new file mode 100644 index 00000000..650863fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PVPActivityDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 003d8f16026a1b341b29e0d042db6186 +timeCreated: 1611402949 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteBehaviour.cs new file mode 100644 index 00000000..e6f0e3ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class PairsPetInviteBehaviour : DlgBehaviourBase + { + public IXUIButton m_closeBtn; + + public IXUIButton m_ignoreBtn; + + public IXUIButton m_tempRejectBtn; + + public IXUIWrapContent m_wrapContent; + + private void Awake() + { + this.m_closeBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ignoreBtn = (base.transform.Find("Bg/BtnNo").GetComponent("XUIButton") as IXUIButton); + this.m_tempRejectBtn = (base.transform.Find("Bg/BtnOk").GetComponent("XUIButton") as IXUIButton); + this.m_wrapContent = (base.transform.Find("Bg/List/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteBehaviour.cs.meta new file mode 100644 index 00000000..bf790030 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37095f3d1baa1d448a93d5baf2ce9fb0 +timeCreated: 1611403564 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteView.cs b/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteView.cs new file mode 100644 index 00000000..694ac524 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteView.cs @@ -0,0 +1,203 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PairsPetInviteView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/DoublepetInvitation"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XPetDocument m_doc; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_ignoreBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickIgnoreAllBtn)); + base.uiBehaviour.m_tempRejectBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickTempRejectBtn)); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XPetDocument.uuID); + base.uiBehaviour.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_wrapContent.gameObject.SetActive(false); + this.m_doc.OnReqInviteList(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public void RefreshUi() + { + this.FillContent(); + } + + private void FillContent() + { + base.uiBehaviour.m_wrapContent.gameObject.SetActive(true); + base.uiBehaviour.m_wrapContent.SetContentCount(this.m_doc.PetInviteInfolist.Count, false); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = index >= this.m_doc.PetInviteInfolist.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("index >= PetInviteInfolist.Count", null, null, null, null, null); + } + else + { + PetInviteInfo petInviteInfo = this.m_doc.PetInviteInfolist[index]; + IXUISprite ixuisprite = t.Find("head").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetSuperRiskAvatar(petInviteInfo.profession % 10u); + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = petInviteInfo.rolename; + IXUILabel ixuilabel = t.Find("PPT").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(petInviteInfo.ppt.ToString()); + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(petInviteInfo.petconfigid); + ixuisprite = (t.Find("Item/Quality").GetComponent("XUISprite") as IXUISprite); + bool flag2 = petInfo != null; + if (flag2) + { + ixuisprite.SetSprite(XSingleton.singleton.GetItemQualityFrame((int)petInfo.quality, 0)); + } + else + { + ixuisprite.SetSprite(""); + } + ixuisprite = (t.Find("Item/PetIcon").GetComponent("XUISprite") as IXUISprite); + bool flag3 = petInfo != null; + if (flag3) + { + ixuisprite.SetSprite(petInfo.icon, petInfo.Atlas, false); + } + else + { + ixuisprite.SetSprite(""); + } + ixuilabel = (t.Find("PetName").GetComponent("XUILabel") as IXUILabel); + bool flag4 = petInfo != null; + if (flag4) + { + ixuilabel.SetText(petInfo.name); + } + else + { + ixuilabel.SetText(""); + } + ixuilabel = (t.Find("PetPPT").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(petInviteInfo.petppt.ToString()); + ixuilabel = (t.Find("SpeedUp").GetComponent("XUILabel") as IXUILabel); + bool flag5 = petInfo != null; + if (flag5) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)petInfo.SpeedBuff, 1); + bool flag6 = buffData != null; + if (flag6) + { + ixuilabel.SetText(string.Format("{0}%", (buffData.BuffChangeAttribute[0, 1] + 100f).ToString())); + } + } + else + { + ixuilabel.SetText(""); + } + IXUIButton ixuibutton = t.Find("Mentorship").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = petInviteInfo.roleid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDrive)); + } + } + + private bool OnCloseClicked(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + private bool OnClickIgnoreAllBtn(IXUIButton btn) + { + this.SetVisible(false, true); + this.m_doc.OnReqIgnoreAll(); + return true; + } + + private bool OnClickTempRejectBtn(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + private bool OnClickDrive(IXUIButton btn) + { + ulong id = btn.ID; + this.m_doc.ReqPetPetOperationOther(PetOtherOp.AgreePetPairRide, id); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteView.cs.meta new file mode 100644 index 00000000..a5e92bde --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PairsPetInviteView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47972b798746b6a45bbef51180894e36 +timeCreated: 1611403654 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PairsPetSetHandler.cs b/Client/Assets/Scripts/XMainClient/UI/PairsPetSetHandler.cs new file mode 100644 index 00000000..5146f4d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PairsPetSetHandler.cs @@ -0,0 +1,136 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class PairsPetSetHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/DoublepetSet"; + } + } + + private XPetDocument m_doc; + + private IXUICheckBox m_yesToggle; + + private IXUICheckBox m_noToggle; + + private IXUIButton m_closeBtn; + + private bool m_isAllow = true; + + protected override void Init() + { + this.m_doc = XDocuments.GetSpecificDocument(XPetDocument.uuID); + this.m_closeBtn = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_yesToggle = (base.PanelObject.transform.Find("Bg/Yes/Normal").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_noToggle = (base.PanelObject.transform.Find("Bg/No/Normal").GetComponent("XUICheckBox") as IXUICheckBox); + base.Init(); + } + + public override void RegisterEvent() + { + this.m_yesToggle.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.ClickYesToggle)); + this.m_noToggle.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.ClickNoToggle)); + this.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickClosed)); + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private void FillContent() + { + bool flag = this.m_doc.CurSelectedPet == null; + if (!flag) + { + this.m_isAllow = this.m_doc.CurSelectedPet.Canpairride; + bool isAllow = this.m_isAllow; + if (isAllow) + { + this.m_yesToggle.ForceSetFlag(true); + this.m_noToggle.ForceSetFlag(false); + } + else + { + this.m_yesToggle.ForceSetFlag(false); + this.m_noToggle.ForceSetFlag(true); + } + } + } + + private bool ClickYesToggle(IXUICheckBox checkBox) + { + bool flag = !checkBox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_isAllow = true; + result = true; + } + return result; + } + + private bool ClickNoToggle(IXUICheckBox checkBox) + { + bool flag = !checkBox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_isAllow = false; + result = true; + } + return result; + } + + private bool ClickClosed(IXUIButton btn) + { + bool flag = this.m_doc.CurSelectedPet != null; + if (flag) + { + bool flag2 = this.m_doc.CurSelectedPet.Canpairride != this.m_isAllow; + if (flag2) + { + this.m_doc.OnReqSetTravelSet(this.m_isAllow); + } + } + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PairsPetSetHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PairsPetSetHandler.cs.meta new file mode 100644 index 00000000..6c6844b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PairsPetSetHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7dc70a2a29a08c742bf400c17d3ad38c +timeCreated: 1611404002 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PandoraBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/PandoraBehaviour.cs new file mode 100644 index 00000000..5d32e8fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PandoraBehaviour.cs @@ -0,0 +1,55 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PandoraBehaviour : DlgBehaviourBase + { + public Transform m_DisplayFrame; + + public Transform m_RewardFrame; + + public Transform m_FxPoint; + + public IXUIButton m_OnceButton; + + public IXUIButton m_TenButton; + + public IXUILabel[] m_DisplayLabel = new IXUILabel[3]; + + public IXUISprite[] m_DisplayPoint = new IXUISprite[3]; + + public IUIDummy[] m_DisplayAvatar = new IUIDummy[3]; + + public IXUISprite m_BackButton; + + public IXUIButton m_ItemListButton; + + public IXUIButton m_OKButton; + + public XUIPool m_ResultPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_DisplayFrame = base.transform.Find("Bg/DisplayFrame"); + this.m_RewardFrame = base.transform.Find("Bg/RewardFrame"); + this.m_FxPoint = base.transform.Find("Bg/FxPoint"); + this.m_OnceButton = (this.m_DisplayFrame.Find("Once").GetComponent("XUIButton") as IXUIButton); + this.m_TenButton = (this.m_DisplayFrame.Find("Ten").GetComponent("XUIButton") as IXUIButton); + for (int i = 0; i < 3; i++) + { + this.m_DisplayLabel[i] = (this.m_DisplayFrame.Find(string.Format("Display{0}/Label", i)).GetComponent("XUILabel") as IXUILabel); + this.m_DisplayPoint[i] = (this.m_DisplayFrame.Find(string.Format("Display{0}/Bg/Point", i)).GetComponent("XUISprite") as IXUISprite); + this.m_DisplayAvatar[i] = (this.m_DisplayFrame.Find(string.Format("Display{0}/Bg/avatar", i)).GetComponent("UIDummy") as IUIDummy); + } + this.m_BackButton = (this.m_DisplayFrame.Find("Back").GetComponent("XUISprite") as IXUISprite); + this.m_ItemListButton = (this.m_DisplayFrame.Find("ItemList").GetComponent("XUIButton") as IXUIButton); + this.m_OKButton = (this.m_RewardFrame.Find("OK").GetComponent("XUIButton") as IXUIButton); + Transform transform = this.m_RewardFrame.Find("ResultTpl"); + this.m_ResultPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PandoraBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PandoraBehaviour.cs.meta new file mode 100644 index 00000000..28a85d44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PandoraBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cbd7f4d5e75ef14caa3ca9ea5fb5ad6 +timeCreated: 1611403348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PandoraSDKHandler.cs b/Client/Assets/Scripts/XMainClient/UI/PandoraSDKHandler.cs new file mode 100644 index 00000000..8771b360 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PandoraSDKHandler.cs @@ -0,0 +1,65 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PandoraSDKHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/PandoraFrame"; + } + } + + private XSysDefine currSys = XSysDefine.XSys_None; + + protected override void Init() + { + base.Init(); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowPandoraTab(); + } + + protected override void OnHide() + { + base.OnHide(); + this.HidePandoraTab(); + } + + private void ShowPandoraTab() + { + bool flag = this.currSys == XSysDefine.XSys_None; + if (!flag) + { + int sysID = XFastEnumIntEqualityComparer.ToInt(this.currSys); + XSingleton.singleton.ShowPandoraTab(sysID, true, base.PanelObject); + } + } + + private void HidePandoraTab() + { + bool flag = this.currSys == XSysDefine.XSys_None; + if (!flag) + { + int sysID = XFastEnumIntEqualityComparer.ToInt(this.currSys); + XSingleton.singleton.ShowPandoraTab(sysID, false, base.PanelObject); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public void SetCurrSys(XSysDefine sys) + { + this.currSys = sys; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PandoraSDKHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PandoraSDKHandler.cs.meta new file mode 100644 index 00000000..bde4fe78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PandoraSDKHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e45e005ac6e72794889418c6415d30a2 +timeCreated: 1611404737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PandoraView.cs b/Client/Assets/Scripts/XMainClient/UI/PandoraView.cs new file mode 100644 index 00000000..45ac3886 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PandoraView.cs @@ -0,0 +1,442 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PandoraView : DlgBase + { + private OutLook outLook + { + get + { + bool flag = this.m_outLook == null; + if (flag) + { + this.m_outLook = new OutLook(); + } + bool flag2 = this.m_outLook.display_fashion == null; + if (flag2) + { + this.m_outLook.display_fashion = new OutLookDisplayFashion(); + } + return this.m_outLook; + } + } + + public override string fileName + { + get + { + return "GameSystem/PandoraDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Pandora); + } + } + + private PandoraDocument _doc; + + private XShowGetItemDocument _showItemDoc; + + private ItemListHandler _itemListHandler; + + private XFx m_OpenFx = null; + + private List m_FxList = new List(); + + private XDummy[] m_Dummy = new XDummy[3]; + + private Vector3[] m_DummyAngle = new Vector3[3]; + + private Vector3[] m_DummyScale = new Vector3[3]; + + private const int _avatarSlot = 8; + + private uint _fxTimeToken = 0u; + + private OutLook m_outLook; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(PandoraDocument.uuID); + this._showItemDoc = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + } + + public override int[] GetTitanBarItems() + { + return new int[] + { + (int)this._doc.PandoraData.PandoraID, + (int)this._doc.PandoraData.FireID + }; + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("PandoraView"); + this._showItemDoc.bIgonre = true; + this.m_DummyAngle[0] = new Vector3(this._doc.PandoraData.DisplayAngle0[0], this._doc.PandoraData.DisplayAngle0[1], this._doc.PandoraData.DisplayAngle0[2]); + this.m_DummyAngle[1] = new Vector3(this._doc.PandoraData.DisplayAngle1[0], this._doc.PandoraData.DisplayAngle1[1], this._doc.PandoraData.DisplayAngle1[2]); + this.m_DummyAngle[2] = new Vector3(this._doc.PandoraData.DisplayAngle2[0], this._doc.PandoraData.DisplayAngle2[1], this._doc.PandoraData.DisplayAngle2[2]); + this.m_DummyScale[0] = new Vector3(this._doc.PandoraData.DisplayAngle0[3], this._doc.PandoraData.DisplayAngle0[4], this._doc.PandoraData.DisplayAngle0[5]); + this.m_DummyScale[1] = new Vector3(this._doc.PandoraData.DisplayAngle1[3], this._doc.PandoraData.DisplayAngle1[4], this._doc.PandoraData.DisplayAngle1[5]); + this.m_DummyScale[2] = new Vector3(this._doc.PandoraData.DisplayAngle2[3], this._doc.PandoraData.DisplayAngle2[4], this._doc.PandoraData.DisplayAngle2[5]); + base.uiBehaviour.m_DisplayLabel[0].SetText(this._doc.PandoraData.DisplayName0); + base.uiBehaviour.m_DisplayLabel[1].SetText(this._doc.PandoraData.DisplayName1); + base.uiBehaviour.m_DisplayLabel[2].SetText(this._doc.PandoraData.DisplayName2); + this.ShowDisplayFrame(); + } + + protected override void OnHide() + { + this._showItemDoc.bIgonre = false; + this.ClearAllFx(); + this._doc.DestroyFx(this.m_OpenFx); + this.m_OpenFx = null; + base.Return3DAvatarPool(); + XSingleton.singleton.KillTimer(this._fxTimeToken); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("PandoraView"); + this._showItemDoc.bIgonre = true; + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + this._showItemDoc.bIgonre = false; + } + + protected override void OnUnload() + { + this.ClearAllFx(); + this._doc.DestroyFx(this.m_OpenFx); + this.m_OpenFx = null; + this.m_outLook = null; + base.Return3DAvatarPool(); + XSingleton.singleton.KillTimer(this._fxTimeToken); + DlgHandlerBase.EnsureUnload(ref this._itemListHandler); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_BackButton.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnBackClicked)); + base.uiBehaviour.m_OnceButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOnceButtonClicked)); + base.uiBehaviour.m_TenButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTenButtonClicked)); + base.uiBehaviour.m_OKButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOKButtonClicked)); + base.uiBehaviour.m_ItemListButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnItemListButtonClicked)); + base.uiBehaviour.m_DisplayPoint[0].RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnAvatarDrag0)); + base.uiBehaviour.m_DisplayPoint[1].RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnAvatarDrag1)); + base.uiBehaviour.m_DisplayPoint[2].RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnAvatarDrag2)); + } + + private void OnBackClicked(IXUISprite sp) + { + this.SetVisible(false, true); + } + + private bool OnOnceButtonClicked(IXUIButton button) + { + this._doc.SendPandoraLottery(true); + return true; + } + + private bool OnTenButtonClicked(IXUIButton button) + { + this._doc.SendPandoraLottery(false); + return true; + } + + private bool OnOKButtonClicked(IXUIButton button) + { + this.ShowDisplayFrame(); + XScreenShotShareDocument specificDocument = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + bool flag = specificDocument.CurShareBgType == ShareBgType.LuckyPandora && specificDocument.SpriteID > 0u; + if (flag) + { + XSingleton.singleton.shareCallbackType = ShareCallBackType.GloryPic; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + return true; + } + + private bool OnItemListButtonClicked(IXUIButton button) + { + DlgHandlerBase.EnsureCreate(ref this._itemListHandler, base.uiBehaviour.transform, false, null); + this._itemListHandler.ShowItemList(PandoraDocument.ItemList); + return true; + } + + private bool OnAvatarDrag0(Vector2 delta) + { + bool flag = this.m_Dummy[0] != null; + if (flag) + { + this.m_Dummy[0].EngineObject.Rotate(Vector3.up, -delta.x / 2f); + this.m_DummyAngle[0] = this.m_Dummy[0].EngineObject.LocalEulerAngles; + } + return true; + } + + private bool OnAvatarDrag1(Vector2 delta) + { + bool flag = this.m_Dummy[1] != null; + if (flag) + { + this.m_Dummy[1].EngineObject.Rotate(Vector3.up, -delta.x / 2f); + this.m_DummyAngle[1] = this.m_Dummy[1].EngineObject.LocalEulerAngles; + } + return true; + } + + private bool OnAvatarDrag2(Vector2 delta) + { + bool flag = this.m_Dummy[2] != null; + if (flag) + { + this.m_Dummy[2].EngineObject.Rotate(Vector3.up, -delta.x / 2f); + this.m_DummyAngle[2] = this.m_Dummy[2].EngineObject.LocalEulerAngles; + } + return true; + } + + public void ShowDisplayFrame() + { + base.uiBehaviour.m_DisplayFrame.gameObject.SetActive(true); + base.uiBehaviour.m_RewardFrame.gameObject.SetActive(false); + base.uiBehaviour.m_BackButton.SetVisible(true); + base.uiBehaviour.m_OnceButton.SetVisible(true); + base.uiBehaviour.m_TenButton.SetVisible(true); + this.RefreshDummy(); + } + + private void RefreshDummy() + { + for (int i = 0; i < 3; i++) + { + uint[] array = null; + switch (i) + { + case 0: + array = this._doc.PandoraData.DisplaySlot0; + break; + case 1: + array = this._doc.PandoraData.DisplaySlot1; + break; + case 2: + array = this._doc.PandoraData.DisplaySlot2; + break; + } + bool flag = array == null; + if (!flag) + { + base.uiBehaviour.m_DisplayAvatar[i].transform.localScale = this.m_DummyScale[i]; + uint num = array[0]; + if (num != 0u) + { + if (num == 1u) + { + uint presentID = this.TransItemToPresentID(array[1]); + string rideAnim = this.GetRideAnim(array[1]); + this.m_Dummy[i] = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, presentID, base.uiBehaviour.m_DisplayAvatar[i], this.m_Dummy[i], 1f); + this.m_Dummy[i].SetAnimation(rideAnim); + this.m_Dummy[i].EngineObject.LocalEulerAngles = this.m_DummyAngle[i]; + } + } + else + { + List list = new List(); + for (int j = 1; j < array.Length; j++) + { + list.Add(array[j]); + } + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag2 = xplayerData != null; + if (flag2) + { + this.outLook.display_fashion.display_fashions.Clear(); + this.outLook.display_fashion.display_fashions.AddRange(list); + this.m_Dummy[i] = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, xplayerData.RoleID, (uint)XFastEnumIntEqualityComparer.ToInt(xplayerData.Profession), this.outLook, base.uiBehaviour.m_DisplayAvatar[i], this.m_Dummy[i]); + this.m_Dummy[i].EngineObject.LocalEulerAngles = this.m_DummyAngle[i]; + } + } + } + } + } + + private uint TransItemToPresentID(uint itemid) + { + uint petID = XPetDocument.GetPetID(itemid); + return XPetDocument.GetPresentID(petID); + } + + private string GetRideAnim(uint itemid) + { + uint petID = XPetDocument.GetPetID(itemid); + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + PetBubble.RowData petBubble = specificDocument.GetPetBubble(XPetActionFile.IDLE, petID); + bool flag = petBubble == null; + string result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "PetBubble No Find\nitemid:", + itemid, + " petid:", + petID + }), null, null, null, null, null); + result = null; + } + else + { + result = petBubble.ActionFile; + } + return result; + } + + public void PlayOpenFx() + { + base.uiBehaviour.m_BackButton.SetVisible(false); + base.uiBehaviour.m_OnceButton.SetVisible(false); + base.uiBehaviour.m_TenButton.SetVisible(false); + this._doc.DestroyFx(this.m_OpenFx); + this.m_OpenFx = null; + this.m_OpenFx = this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_pdlzx_Clip01", base.uiBehaviour.m_FxPoint); + XSingleton.singleton.PlayUISound("Audio/UI/UI_PandoraHeart_Ten", true, AudioChannel.Action); + this._fxTimeToken = XSingleton.singleton.SetTimer((float)XSingleton.singleton.GetInt("PandoraFxTime") / 10f, new XTimerMgr.ElapsedEventHandler(this.ShowRewardFrame), null); + } + + public void ShowRewardFrame(object o = null) + { + base.uiBehaviour.m_DisplayFrame.gameObject.SetActive(false); + base.uiBehaviour.m_RewardFrame.gameObject.SetActive(true); + this.ClearAllFx(); + this._doc.DestroyFx(this.m_OpenFx); + this.m_OpenFx = null; + base.uiBehaviour.m_ResultPool.FakeReturnAll(); + for (int i = 0; i < this._doc.ItemCache.Count; i++) + { + this.SetupItem(i); + } + base.uiBehaviour.m_ResultPool.ActualReturnAll(false); + } + + private void SetupItem(int index) + { + GameObject gameObject = base.uiBehaviour.m_ResultPool.FetchGameObject(false); + IXUITweenTool ixuitweenTool = gameObject.GetComponent("XUIPlayTween") as IXUITweenTool; + GameObject gameObject2 = gameObject.transform.Find("ItemTpl").gameObject; + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)this._doc.ItemCache[index].itemID, (int)this._doc.ItemCache[index].itemCount, false); + Transform parent = gameObject.transform.Find("Fx"); + ixuisprite.ID = (ulong)this._doc.ItemCache[index].itemID; + bool isbind = this._doc.ItemCache[index].isbind; + if (isbind) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.ItemCache[index].itemID); + switch (itemConf.ItemQuality) + { + case 3: + this.m_FxList.Add(this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_04_orange", parent)); + break; + case 4: + this.m_FxList.Add(this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_04_purple", parent)); + break; + case 5: + this.m_FxList.Add(this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_04_red", parent)); + break; + } + gameObject.transform.localPosition = this.GetItemPos(index, this._doc.ItemCache.Count, 5, (float)base.uiBehaviour.m_ResultPool.TplWidth, (float)base.uiBehaviour.m_ResultPool.TplHeight, base.uiBehaviour.m_ResultPool.TplPos); + ixuitweenTool.ResetTween(true); + ixuitweenTool.PlayTween(true, -1f); + } + + private Vector3 GetItemPos(int index, int totalCount, int lineCount, float width, float height, Vector3 centerPos) + { + float num = centerPos.x - (float)(lineCount - 1) * width / 2f; + float num2 = centerPos.y + (float)((totalCount + lineCount - 1) / lineCount) * height / 2f; + bool flag = totalCount / lineCount == index / lineCount; + if (flag) + { + num += (float)(lineCount - totalCount % lineCount) * width / 2f; + } + float num3 = num + (float)(index % lineCount) * width; + float num4 = num2 - (float)(index / lineCount) * height; + return new Vector3(num3, num4); + } + + private void ClearAllFx() + { + for (int i = 0; i < this.m_FxList.Count; i++) + { + this._doc.DestroyFx(this.m_FxList[i]); + } + this.m_FxList.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PandoraView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PandoraView.cs.meta new file mode 100644 index 00000000..f70295a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PandoraView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5319f81452b9db345a09d11f58934bf8 +timeCreated: 1611403710 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs new file mode 100644 index 00000000..51798bfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs @@ -0,0 +1,53 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PartnerLivenessBehaviour : DlgBehaviourBase + { + public ILoopScrollView m_loopScrool; + + public XUIPool m_ActivityItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ChestPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_closedSpr; + + public XChestProgress m_Progress; + + public IXUILabel m_totalExp; + + public XNumberTween m_TotalExpTween; + + public IXUILabel m_chestTips; + + public IXUILabel m_Name; + + public IXUILabel m_Tip; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/RightView/ActivityTpl"); + this.m_ActivityItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_closedSpr = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_Progress = new XChestProgress(base.transform.Find("Bg/UpView/Progress").GetComponent("XUIProgress") as IXUIProgress); + transform = base.transform.Find("Bg/UpView/Progress/Chests/Chest"); + this.m_ChestPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.transform.Find("Bg/LeftView/Item"); + this.m_RewardItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_totalExp = (base.transform.Find("Bg/UpView/CurrentExp").GetComponent("XUILabel") as IXUILabel); + this.m_TotalExpTween = XNumberTween.Create(this.m_totalExp); + this.m_TotalExpTween.SetNumberWithTween(0UL, "", false, true); + this.m_chestTips = (base.transform.Find("Bg/LeftView/BigChest/Tips/Exp").GetComponent("XUILabel") as IXUILabel); + this.m_loopScrool = (base.transform.Find("Bg/RightView").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_ChestPool.ReturnAll(false); + this.m_Name = (base.transform.Find("Bg/UpView/CurrentExp/T").GetComponent("XUILabel") as IXUILabel); + this.m_Tip = (base.transform.Find("Bg/Bg/Label").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs.meta new file mode 100644 index 00000000..e69ba86e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ea22a18e1cc4a84ca45818f8c14a1b0 +timeCreated: 1611404242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessDlg.cs b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessDlg.cs new file mode 100644 index 00000000..076904dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessDlg.cs @@ -0,0 +1,278 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PartnerLivenessDlg : DlgBase + { + public override string fileName + { + get + { + return "Partner/PartnerLiveness"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + private static readonly uint m_expIncreaseSpeed = 800u; + + private XPartnerDocument m_doc = XPartnerDocument.Doc; + + private List m_partnerLivenessRow; + + private int m_CurSelectIndex = 0; + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + protected override void Init() + { + XPartnerDocument.PartnerLivenessData.View = this; + GameObject tpl = base.uiBehaviour.m_loopScrool.GetTpl(); + bool flag = tpl != null && tpl.GetComponent() == null; + if (flag) + { + tpl.AddComponent(); + } + base.uiBehaviour.m_Progress.IncreaseSpeed = PartnerLivenessDlg.m_expIncreaseSpeed; + this.m_partnerLivenessRow = null; + XPartnerDocument.PartnerLivenessData.GetPartnerLivenessRowsByLevel(this.m_doc.CurPartnerLevel, out this.m_partnerLivenessRow); + for (int i = 0; i < this.m_partnerLivenessRow.Count; i++) + { + GameObject chest = base.uiBehaviour.m_ChestPool.FetchGameObject(false); + XChest chest2 = new XChest(chest, this.m_partnerLivenessRow[i].boxPic); + base.uiBehaviour.m_Progress.AddChest(chest2); + } + this.ChangeChestProgressState(true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClosed)); + this.m_partnerLivenessRow = null; + XPartnerDocument.PartnerLivenessData.GetPartnerLivenessRowsByLevel(this.m_doc.CurPartnerLevel, out this.m_partnerLivenessRow); + for (int i = 0; i < this.m_partnerLivenessRow.Count; i++) + { + base.uiBehaviour.m_Progress.ChestList[i].m_Chest.ID = (ulong)((long)i); + base.uiBehaviour.m_Progress.ChestList[i].m_Chest.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClicked)); + } + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Activity_GoddessTrial); + return true; + } + + protected override void OnShow() + { + base.uiBehaviour.m_Name.SetText(XStringDefineProxy.GetString("PartnerLivenessName")); + base.uiBehaviour.m_Tip.SetText(XStringDefineProxy.GetString("PartnerLivenessTip")); + XPartnerDocument.PartnerLivenessData.ReqPartnerLivenessInfo(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetRelatedDlg(this); + } + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetRelatedDlg(null); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnUnload() + { + base.OnUnload(); + base.uiBehaviour.m_Progress.Unload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + base.uiBehaviour.m_Progress.Update(Time.deltaTime); + } + + public void FillContent() + { + this.RefreshBox(); + List list = new List(); + string empty = string.Empty; + for (int i = 0; i < XPartnerDocument.PartnerLivenessData.RecordList.Count; i++) + { + PartnerLivenessRecord partnerLivenessRecord = XPartnerDocument.PartnerLivenessData.RecordList[i]; + partnerLivenessRecord.LoopID = XSingleton.singleton.XHash(XPartnerDocument.PartnerLivenessData.RecordList[i].ToString() + i); + list.Add(partnerLivenessRecord); + } + base.uiBehaviour.m_loopScrool.Init(list, new DelegateHandler(this.RefreshRecordItem), null, 0, true); + } + + public void RefreshBox() + { + this.ChangeChestProgressState(false); + this.SetCurrentExpAmi(); + this.ShowReward(XPartnerDocument.PartnerLivenessData.FindNeedShowReward()); + } + + private void RefreshRecordItem(ILoopItemObject item, LoopItemData data) + { + PartnerLivenessRecord partnerLivenessRecord = data as PartnerLivenessRecord; + bool flag = partnerLivenessRecord != null; + if (flag) + { + GameObject obj = item.GetObj(); + bool flag2 = obj != null; + if (flag2) + { + PartnerLivenessRecordItem component = obj.GetComponent(); + bool flag3 = component != null; + if (flag3) + { + component.Refresh(partnerLivenessRecord); + } + } + } + else + { + XSingleton.singleton.AddErrorLog("GuildMiniReportItem info is null", null, null, null, null, null); + } + } + + public void SetCurrentExpAmi() + { + base.uiBehaviour.m_Progress.TargetExp = XPartnerDocument.PartnerLivenessData.CurExp; + base.uiBehaviour.m_TotalExpTween.SetNumberWithTween((ulong)XPartnerDocument.PartnerLivenessData.CurExp, "", false, true); + } + + public void ChangeChestProgressState(bool init = false) + { + for (int i = 0; i < this.m_partnerLivenessRow.Count; i++) + { + XChest xchest = base.uiBehaviour.m_Progress.ChestList[i]; + if (init) + { + xchest.SetExp(this.m_partnerLivenessRow[i].liveness); + } + xchest.Opened = XPartnerDocument.PartnerLivenessData.IsChestOpened(i + 1); + } + if (init) + { + base.uiBehaviour.m_Progress.SetExp(0u, XPartnerDocument.PartnerLivenessData.MaxExp); + } + } + + public void ResetBoxRedDot(int index) + { + bool flag = index < 0 || index >= base.uiBehaviour.m_Progress.ChestList.Count; + if (!flag) + { + base.uiBehaviour.m_Progress.ChestList[index].Open(); + } + } + + private void OnChestClicked(IXUISprite iSp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + if (!flag) + { + int index = (int)iSp.ID; + this.ShowReward(index); + bool flag2 = base.uiBehaviour.m_Progress.IsExpEnough(index); + if (flag2) + { + PartnerLivenessTable.RowData rowData = this.m_partnerLivenessRow[index]; + bool flag3 = rowData != null; + if (flag3) + { + XPartnerDocument.PartnerLivenessData.ReqTakePartnerChest(rowData.index); + } + } + } + } + + public void ShowReward(int index) + { + this.m_CurSelectIndex = index; + base.uiBehaviour.m_RewardItemPool.ReturnAll(false); + PartnerLivenessTable.RowData rowData = this.m_partnerLivenessRow[this.m_CurSelectIndex]; + for (int i = 0; i < rowData.viewabledrop.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardItemPool.FetchGameObject(false); + bool flag = rowData.viewabledrop[i, 0] == 4u; + if (flag) + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.viewabledrop[i, 0], 0, false); + } + else + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.viewabledrop[i, 0], (int)rowData.viewabledrop[i, 1], true); + } + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, (int)rowData.viewabledrop[i, 0]); + Vector3 tplPos = base.uiBehaviour.m_RewardItemPool.TplPos; + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)base.uiBehaviour.m_RewardItemPool.TplWidth * ((float)(-(float)rowData.viewabledrop.Count) / 2f + 0.5f + (float)i), tplPos.y, tplPos.z); + } + base.uiBehaviour.m_chestTips.SetText(rowData.liveness.ToString()); + } + + private void OnClosed(IXUISprite spr) + { + this.SetVisible(false, true); + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessDlg.cs.meta new file mode 100644 index 00000000..06879ab4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 448d0abcf4c8f7048bac5ea6f92d143e +timeCreated: 1611403645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessRecordItem.cs b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessRecordItem.cs new file mode 100644 index 00000000..3f336f3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessRecordItem.cs @@ -0,0 +1,41 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + public class PartnerLivenessRecordItem : MonoBehaviour + { + public IXUILabel m_nameLab; + + public IXUILabel m_timeLab; + + public IXUILabel m_contentLab; + + private IXUISprite m_sprRoot; + + private IXUISprite m_bgSpr; + + private void Awake() + { + this.m_sprRoot = (base.GetComponent("XUISprite") as IXUISprite); + this.m_bgSpr = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_nameLab = (base.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel); + this.m_timeLab = (base.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this.m_contentLab = (base.transform.Find("Bg/Description").GetComponent("XUILabel") as IXUILabel); + } + + public void Refresh(PartnerLivenessRecord record) + { + bool flag = record == null; + if (!flag) + { + this.m_nameLab.SetText(record.Name); + this.m_timeLab.SetText(record.ShowTimeStr); + this.m_contentLab.SetText(record.ShowString); + this.m_sprRoot.spriteHeight = 46 + this.m_contentLab.spriteHeight; + this.m_bgSpr.spriteHeight = this.m_sprRoot.spriteHeight; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessRecordItem.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessRecordItem.cs.meta new file mode 100644 index 00000000..068d5986 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerLivenessRecordItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2eb36fb2b437ba429b6a6ad4f618408 +timeCreated: 1611404845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerMainHandler.cs b/Client/Assets/Scripts/XMainClient/UI/PartnerMainHandler.cs new file mode 100644 index 00000000..c6af4a86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerMainHandler.cs @@ -0,0 +1,554 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PartnerMainHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Partner/PartnerFrame"; + } + } + + private XPartnerDocument m_doc = XPartnerDocument.Doc; + + private IUIDummy[] m_Snapshots = new IUIDummy[XPartnerDocument.MaxAvata]; + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private uint m_token; + + private GameObject m_emptyGo; + + private GameObject m_obtainedGo; + + private IXUIButton m_shopBtn; + + private IXUIButton m_gotoTeamBtn; + + private IXUIButton m_gotoBtn; + + private IXUILabel m_noPartnerTips; + + private IXUILabel m_ruleLab; + + private XUIPool m_emptyItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_livenessTra; + + private IXUIButton m_livenessBtn; + + private IXUIButton m_breakupBtn; + + private IXUIButton m_cancleBreakUpBtn; + + private IXUILabel m_breakUpCutDownLab; + + private XUIPool m_itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XTeamPartnerBonusHandler m_FriendBonusHandler = null; + + protected override void Init() + { + base.Init(); + this.m_doc.View = this; + this.m_emptyGo = base.PanelObject.transform.Find("Bg/Empty").gameObject; + this.m_obtainedGo = base.PanelObject.transform.Find("Bg/Obtained").gameObject; + this.m_shopBtn = (base.PanelObject.transform.Find("Bg/BtnShop").GetComponent("XUIButton") as IXUIButton); + Transform transform = this.m_emptyGo.transform.Find("PartnerPrior/Grid"); + this.m_emptyItemPool.SetupPool(transform.gameObject, transform.Find("Tpl").gameObject, 3u, false); + this.m_gotoBtn = (this.m_emptyGo.transform.Find("ButtonR").GetComponent("XUIButton") as IXUIButton); + this.m_gotoTeamBtn = (this.m_emptyGo.transform.Find("GoTeam").GetComponent("XUIButton") as IXUIButton); + this.m_noPartnerTips = (this.m_emptyGo.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_ruleLab = (this.m_emptyGo.transform.Find("RuleLab").GetComponent("XUILabel") as IXUILabel); + this.m_livenessTra = this.m_obtainedGo.transform.Find("Bar"); + this.m_livenessBtn = (this.m_obtainedGo.transform.Find("LivenessBtn").GetComponent("XUIButton") as IXUIButton); + this.m_breakupBtn = (this.m_obtainedGo.transform.Find("BreakupBtn").GetComponent("XUIButton") as IXUIButton); + this.m_cancleBreakUpBtn = (this.m_obtainedGo.transform.Find("CancleBreakupBtn").GetComponent("XUIButton") as IXUIButton); + this.m_breakUpCutDownLab = (this.m_obtainedGo.transform.Find("BreakUpCutDownLab").GetComponent("XUILabel") as IXUILabel); + transform = this.m_obtainedGo.transform.Find("ModleParent"); + this.m_itemPool.SetupPool(transform.gameObject, transform.Find("Tpl").gameObject, 4u, false); + DlgHandlerBase.EnsureCreate(ref this.m_FriendBonusHandler, this.m_obtainedGo.transform.Find("FriendBonusFrame").gameObject, this, true); + this.m_FriendBonusHandler.bConsiderTeam = false; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_shopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickShopBtn)); + this.m_gotoBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGoToBtn)); + this.m_gotoTeamBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGoToTeamBtn)); + this.m_livenessBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickLivenessBtn)); + this.m_breakupBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickbreakupBtn)); + this.m_cancleBreakUpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickCancleBreakupBtn)); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("PartnerMainHandler", 1); + this.FillContent(); + } + + protected override void OnHide() + { + base.Return3DAvatarPool(); + base.OnHide(); + XSingleton.singleton.KillTimer(this.m_token); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("PartnerMainHandler", 1); + } + + public override void OnUnload() + { + base.Return3DAvatarPool(); + this.m_doc.View = null; + base.OnUnload(); + } + + private void FillContent() + { + this.m_emptyGo.SetActive(false); + this.m_obtainedGo.SetActive(false); + this.m_shopBtn.gameObject.SetActive(false); + bool flag = this.m_doc.PartnerID == 0UL; + if (flag) + { + this.FillNoPartner(); + } + else + { + this.m_doc.ReqPartnerDetailInfo(); + } + } + + public void RefreshUi() + { + this.m_emptyGo.SetActive(false); + this.m_obtainedGo.SetActive(false); + this.m_shopBtn.gameObject.SetActive(false); + bool flag = this.m_doc.PartnerID == 0UL; + if (flag) + { + this.FillNoPartner(); + } + else + { + this.FillHadPartner(); + } + } + + private void FillNoPartner() + { + this.m_emptyGo.SetActive(true); + this.m_emptyItemPool.ReturnAll(false); + for (int i = 0; i < XPartnerDocument.PartnerWelfareTab.Table.Length; i++) + { + PartnerWelfare.RowData rowData = XPartnerDocument.PartnerWelfareTab.Table[i]; + bool flag = rowData == null; + if (!flag) + { + GameObject gameObject = this.m_emptyItemPool.FetchGameObject(false); + gameObject.SetActive(true); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)i * this.m_emptyItemPool.TplHeight), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(rowData.ContentTxt)); + } + } + this.m_ruleLab.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("PartnerRule"))); + this.m_noPartnerTips.SetText(XSingleton.singleton.GetString("NoPartnerTips")); + } + + private void FillHadPartner() + { + this.m_obtainedGo.SetActive(true); + this.m_shopBtn.gameObject.SetActive(true); + this.RefreshUIRedPoint(); + Partner myParnerInfo = this.m_doc.GetMyParnerInfo(); + XSingleton.singleton.KillTimer(this.m_token); + bool flag = myParnerInfo != null; + if (flag) + { + bool is_apply_leave = myParnerInfo.Detail.is_apply_leave; + if (is_apply_leave) + { + this.m_breakUpCutDownLab.gameObject.SetActive(true); + this.m_breakUpCutDownLab.SetText(this.GetTimeString((ulong)myParnerInfo.Detail.left_leave_time, XSingleton.singleton.GetString("BreakPartner"))); + this.m_breakupBtn.gameObject.SetActive(false); + this.m_cancleBreakUpBtn.gameObject.SetActive(true); + this.m_token = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(this.SetTime), myParnerInfo.Detail.left_leave_time); + } + else + { + this.m_breakUpCutDownLab.gameObject.SetActive(false); + this.m_breakupBtn.gameObject.SetActive(true); + this.m_cancleBreakUpBtn.gameObject.SetActive(false); + } + } + IXUISlider ixuislider = this.m_livenessTra.Find("slider").GetComponent("XUISlider") as IXUISlider; + IXUILabel ixuilabel = this.m_livenessTra.Find("slider/PLabel").GetComponent("XUILabel") as IXUILabel; + float num = (this.m_doc.CurLevelMaxExp == 0f) ? 1u : this.m_doc.CurLevelMaxExp; + ixuislider.Value = this.m_doc.Degree / num; + ixuilabel.SetText(string.Format("{0}/{1}", this.m_doc.Degree, this.m_doc.CurLevelMaxExp)); + this.m_FriendBonusHandler.RefreshData(); + this.m_itemPool.ReturnAll(false); + int num2 = 0; + foreach (KeyValuePair keyValuePair in this.m_doc.PartnerDic) + { + GameObject gameObject = this.m_itemPool.FetchGameObject(false); + gameObject.SetActive(true); + gameObject.transform.localPosition = new Vector3((float)(this.m_itemPool.TplWidth * num2), 0f, 0f); + this.FillAvataItem(gameObject, keyValuePair.Value, num2); + num2++; + } + base.Return3DAvatarPool(); + base.Alloc3DAvatarPool("PartnerMainHandler", 1); + int i = this.m_doc.PartnerDic.Count; + int num3 = this.m_Snapshots.Length; + while (i < num3) + { + this.m_Snapshots[i] = null; + i++; + } + this.RefreshAvataData(); + } + + private void FillAvataItem(GameObject go, Partner partner, int count) + { + bool flag = partner == null || go == null || partner.Detail == null; + if (!flag) + { + IXUISprite ixuisprite = go.transform.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfIcon((int)((int)partner.Detail.profession % 10))); + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(partner.Detail.name); + ixuilabel = (go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(partner.Detail.level.ToString()); + ixuilabel = (go.transform.Find("Battlepoint").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(partner.Detail.ppt.ToString()); + bool is_apply_leave = partner.Detail.is_apply_leave; + if (is_apply_leave) + { + go.transform.Find("Breakup").gameObject.SetActive(true); + } + else + { + go.transform.Find("Breakup").gameObject.SetActive(false); + } + ixuisprite = (go.transform.Find("Bg/BgSmall").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = partner.MemberId; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickavata)); + this.m_Snapshots[count] = (go.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + } + } + + private void RefreshAvataData() + { + int num = 0; + foreach (KeyValuePair keyValuePair in this.m_doc.PartnerDic) + { + bool flag = num >= XPartnerDocument.MaxAvata; + if (flag) + { + break; + } + bool flag2 = this.m_Snapshots[num] != null; + if (flag2) + { + XDummy xdummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, keyValuePair.Value.Detail.memberid, (uint)XFastEnumIntEqualityComparer.ToInt(keyValuePair.Value.Detail.profession), keyValuePair.Value.Detail.outlook, this.m_Snapshots[num], null); + num++; + } + } + } + + private string GetTimeString(ulong ti, string str) + { + bool flag = ti < 60UL; + string result; + if (flag) + { + string arg = string.Format("{0}{1}", ti, XStringDefineProxy.GetString("SECOND_DUARATION")); + result = string.Format(str, arg); + } + else + { + ulong num = ti / 60UL; + ulong num2 = ti % 60UL; + bool flag2 = num < 60UL; + string arg; + if (flag2) + { + bool flag3 = num2 > 0UL; + if (flag3) + { + arg = string.Format("{0}{1}{2}{3}", new object[] + { + num, + XStringDefineProxy.GetString("MINUTE_DUARATION"), + num2, + XStringDefineProxy.GetString("SECOND_DUARATION") + }); + } + else + { + arg = string.Format("{0}{1}", num, XStringDefineProxy.GetString("MINUTE_DUARATION")); + } + } + else + { + bool flag4 = num2 > 0UL; + if (flag4) + { + num += 1UL; + } + ulong num3 = num / 60UL; + num %= 60UL; + bool flag5 = num > 0UL; + if (flag5) + { + arg = string.Format("{0}{1}{2}{3}", new object[] + { + num3, + XStringDefineProxy.GetString("HOUR_DUARATION"), + num, + XStringDefineProxy.GetString("MINUTE_DUARATION") + }); + } + else + { + arg = string.Format("{0}{1}", num3, XStringDefineProxy.GetString("HOUR_DUARATION")); + } + } + result = string.Format(str, arg); + } + return result; + } + + public void RefreshUIRedPoint() + { + this.m_shopBtn.gameObject.transform.Find("RedPoint").gameObject.SetActive(this.m_doc.IsHadShopRedPoint); + this.m_livenessBtn.gameObject.transform.Find("RedPoint").gameObject.SetActive(this.m_doc.IsHadLivenessRedPoint); + } + + public void SetTime(object o = null) + { + uint num = (uint)o; + this.m_breakUpCutDownLab.SetText(this.GetTimeString((ulong)num, XSingleton.singleton.GetString("BreakPartner"))); + bool flag = num == 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.m_token); + } + num -= 1u; + this.m_token = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.SetTime), num); + } + + private bool OnClickShopBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + this.m_doc.IsHadShopRedPoint = false; + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Partner, 0UL); + result = true; + } + return result; + } + + private bool OnClickGoToBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.CloseAllUI(); + uint num = 0u; + XNpcInfo npcInfo = XSingleton.singleton.NpcInfo; + for (int i = 0; i < npcInfo.Table.Length; i++) + { + bool flag2 = npcInfo.Table[i].LinkSystem == 700; + if (flag2) + { + num = npcInfo.Table[i].ID; + break; + } + } + bool flag3 = num == 0u; + if (flag3) + { + XSingleton.singleton.AddErrorLog("had not find partner npc", null, null, null, null, null); + result = true; + } + else + { + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc(num); + result = true; + } + } + return result; + } + + private bool OnClickGoToTeamBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelPartner); + bool flag2 = expeditionList != null && expeditionList.Count > 0; + if (flag2) + { + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID); + } + result = true; + } + return result; + } + + private bool OnClickLivenessBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + DlgBase.singleton.SetVisible(true, true); + result = true; + } + return result; + } + + private bool OnClickbreakupBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + Partner myParnerInfo = this.m_doc.GetMyParnerInfo(); + bool flag2 = myParnerInfo == null; + if (flag2) + { + result = true; + } + else + { + bool is_apply_leave = myParnerInfo.Detail.is_apply_leave; + if (is_apply_leave) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("IsLeavingPartner"), "fece00"); + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("SureBreakUpPartner"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.BreakUp)); + result = true; + } + } + } + return result; + } + + private bool BreakUp(IXUIButton btn) + { + this.m_doc.ReqLeavePartner(); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool OnClickCancleBreakupBtn(IXUIButton btn) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + Partner myParnerInfo = this.m_doc.GetMyParnerInfo(); + bool flag2 = myParnerInfo == null; + if (flag2) + { + result = true; + } + else + { + bool flag3 = !myParnerInfo.Detail.is_apply_leave; + if (flag3) + { + result = true; + } + else + { + this.m_doc.ReqCancleLeavePartner(); + result = true; + } + } + } + return result; + } + + private void OnClickavata(IXUISprite sp) + { + bool flag = sp == null; + if (!flag) + { + ulong id = sp.ID; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(id, false); + } + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerMainHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PartnerMainHandler.cs.meta new file mode 100644 index 00000000..c64e6e96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerMainHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e5e825e0d03fc34ea8577194f36f18a +timeCreated: 1611403607 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerShopRecordsHandler.cs b/Client/Assets/Scripts/XMainClient/UI/PartnerShopRecordsHandler.cs new file mode 100644 index 00000000..bff5f648 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerShopRecordsHandler.cs @@ -0,0 +1,147 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PartnerShopRecordsHandler : DlgHandlerBase + { + private XPartnerDocument m_doc + { + get + { + return XPartnerDocument.Doc; + } + } + + protected override string FileName + { + get + { + return "Partner/PartnerShopRecords"; + } + } + + private IXUIButton m_closeBtn; + + private IXUIWrapContent m_wrapContent; + + private GameObject m_tipsGo; + + protected override void Init() + { + base.Init(); + this.m_doc.ShopRecordsHandler = this; + this.m_closeBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Panel"); + this.m_wrapContent = (transform.Find("Wrap").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_tipsGo = base.PanelObject.transform.Find("Tips").gameObject; + this.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosedClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillDefault(); + this.m_doc.ReqShopRecords(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + this.m_doc.ShopRecordsHandler = null; + base.OnUnload(); + } + + private void FillDefault() + { + this.m_tipsGo.SetActive(true); + this.m_wrapContent.gameObject.SetActive(false); + } + + public void FillContent() + { + bool flag = this.m_doc.ShopRecordList == null; + if (flag) + { + XSingleton.singleton.AddGreenLog("ShopRecordList is null", null, null, null, null, null); + } + else + { + bool flag2 = this.m_doc.ShopRecordList.Count == 0; + if (flag2) + { + this.m_tipsGo.SetActive(true); + this.m_wrapContent.gameObject.SetActive(false); + } + else + { + this.m_tipsGo.SetActive(false); + this.m_wrapContent.gameObject.SetActive(true); + int count = this.m_doc.ShopRecordList.Count; + this.m_wrapContent.SetContentCount(count, false); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = index >= this.m_doc.ShopRecordList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("index >= ShopRecordList.Count", null, null, null, null, null); + } + else + { + partnerShopRecord partnerShopRecord = this.m_doc.ShopRecordList[index]; + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(partnerShopRecord.TimeStr.Replace("/n", "\n")); + ixuilabel = (t.Find("ItemName").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(partnerShopRecord.ItemName); + ixuilabel = (t.Find("ItemNum").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(partnerShopRecord.BuyCount.ToString()); + IXUILabelSymbol ixuilabelSymbol = t.Find("PlayerName").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = partnerShopRecord.PlayerName; + ixuilabelSymbol.ID = (ulong)((long)index); + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this.OnClickName)); + } + } + + private bool OnClosedClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + + private void OnClickName(IXUILabelSymbol iSp) + { + bool flag = this.m_doc.ShopRecordList == null; + if (!flag) + { + int index = (int)iSp.ID / 100; + partnerShopRecord partnerShopRecord = this.m_doc.ShopRecordList[index]; + bool flag2 = partnerShopRecord == null; + if (!flag2) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(partnerShopRecord.RoleId, false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PartnerShopRecordsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PartnerShopRecordsHandler.cs.meta new file mode 100644 index 00000000..ee3dd8df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PartnerShopRecordsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65fe1a01f09d2d24582fba5c705a9530 +timeCreated: 1611403852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PressTipsBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/PressTipsBehaviour.cs new file mode 100644 index 00000000..09326afa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PressTipsBehaviour.cs @@ -0,0 +1,20 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class PressTipsBehaviour : DlgBehaviourBase + { + public IXUILabel _ContentValue; + + public Transform _ContentTransform; + + private void Awake() + { + this._ContentTransform = base.transform.Find("Info"); + this._ContentValue = (this._ContentTransform.GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PressTipsBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PressTipsBehaviour.cs.meta new file mode 100644 index 00000000..f9c8bc99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PressTipsBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 82f56d1ccc2578e4bb26886092cd7b69 +timeCreated: 1611404042 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/PressTipsDlg.cs b/Client/Assets/Scripts/XMainClient/UI/PressTipsDlg.cs new file mode 100644 index 00000000..af9a5581 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PressTipsDlg.cs @@ -0,0 +1,90 @@ +using System; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class PressTipsDlg : DlgBase + { + public override string fileName + { + get + { + return "Common/PressTipDlg"; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private string _contentKey; + + private Vector3 _offset; + + private Vector3 _pos; + + public void Setup(bool show, string key, Vector3 pos, Vector3 offset) + { + if (show) + { + this._contentKey = key; + this._offset = offset; + this._pos = pos; + bool flag = !base.IsVisible(); + if (flag) + { + this._Show(); + } + else + { + this.RefreshData(); + } + } + else + { + bool flag2 = base.IsVisible(); + if (flag2) + { + this._Close(); + } + } + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + private void RefreshData() + { + bool flag = string.IsNullOrEmpty(this._contentKey); + if (flag) + { + this._Close(); + } + else + { + base.uiBehaviour.transform.position = this._pos; + base.uiBehaviour.transform.localPosition += this._offset; + base.uiBehaviour._ContentValue.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString(this._contentKey))); + } + } + + private void _Close() + { + this.SetVisibleWithAnimation(false, null); + } + + private void _Show() + { + this.SetVisibleWithAnimation(true, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/PressTipsDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/PressTipsDlg.cs.meta new file mode 100644 index 00000000..cc0dcc82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/PressTipsDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b60c11e9f129f8449972ccd3786f88e +timeCreated: 1611403891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ProfessionChangeDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ProfessionChangeDlg.cs new file mode 100644 index 00000000..1ffc131a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ProfessionChangeDlg.cs @@ -0,0 +1,304 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ProfessionChangeDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override string fileName + { + get + { + return "GameSystem/ProfessionChangeDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_ProfessionChange); + } + } + + private XProfessionChangeDocument _doc = null; + + private readonly string TEXPATH = "atlas/UI/common/ProfPic"; + + private string _texPath = ""; + + private bool _init; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XProfessionChangeDocument.uuID); + base.uiBehaviour.m_TipsWindow.SetActive(false); + this.SetupTabs(); + this._init = true; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_TipsClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTipsWindowCloseBtnClick)); + base.uiBehaviour.m_ChangeProfBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnChangeProfBtnClick)); + base.uiBehaviour.m_TryProfBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnExperienceBtnClick)); + base.uiBehaviour.m_GetPathBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetPathBtnClick)); + base.uiBehaviour.m_OKBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSureChangeProfBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + bool init = this._init; + if (init) + { + this._init = false; + } + else + { + base.uiBehaviour.m_Texture.SetTexturePath(this._texPath); + } + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + int num = this._doc.LastExperienceProfID; + int num2 = (int)(XSingleton.singleton.XPlayerData.TypeID % 10u); + bool flag2 = num2 < this._doc.LastExperienceProfID; + if (flag2) + { + num--; + } + for (int i = XGame.RoleCount - 2; i >= 0; i--) + { + Transform transform = base.uiBehaviour.transform.Find(string.Format("Bg/Tabs/item{0}", i)); + bool flag3 = transform != null; + if (flag3) + { + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag4 = ixuicheckBox != null; + if (flag4) + { + ixuicheckBox.bChecked = (i == num - 1); + } + } + } + this._doc.LastExperienceProfID = 1; + } + } + + protected override void OnHide() + { + base.uiBehaviour.m_Texture.SetTexturePath(""); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + private void SetupTabs() + { + base.uiBehaviour.m_TabPool.ReturnAll(false); + int num = (int)(XSingleton.singleton.XPlayerData.TypeID % 10u); + Vector3 tplPos = base.uiBehaviour.m_TabPool.TplPos; + IXUICheckBox ixuicheckBox = null; + int num2 = 0; + for (int i = 0; i < XGame.RoleCount; i++) + { + bool flag = i + 1 == num; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_TabPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(num2 * base.uiBehaviour.m_TabPool.TplHeight)); + num2++; + IXUICheckBox ixuicheckBox2 = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ID = (ulong)((long)i + 1L); + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + bool flag2 = ixuicheckBox == null; + if (flag2) + { + ixuicheckBox = ixuicheckBox2; + } + IXUILabel ixuilabel = gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetProfName(i + 1)); + ixuilabel2.SetText(XSingleton.singleton.GetProfName(i + 1)); + } + } + ixuicheckBox.bChecked = true; + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnTipsWindowCloseBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_TipsWindow.SetActive(false); + return true; + } + + private bool OnExperienceBtnClick(IXUIButton btn) + { + string label = string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("ProfessionChangeExperience")), XSingleton.singleton.GetProfName(this._doc.SelectProfession)); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnExperienceSure)); + return true; + } + + private bool OnExperienceSure(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = this._doc.SceneID; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + return true; + } + + private bool OnChangeProfBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_TipsWindow.SetActive(true); + string @string = XStringDefineProxy.GetString(string.Format("ProfessionChangeType{0}", this._doc.SelectProfession)); + base.uiBehaviour.m_TipsType.SetText(string.Format(XStringDefineProxy.GetString("ProfessionChangeTips"), @string)); + base.uiBehaviour.m_TipsDesc.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("ProfessionChangeDesc"))); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("ProfessionChangeUseItem", true); + int num = (int)XBagDocument.BagDoc.GetItemCount(sequenceList[0, 0]); + base.uiBehaviour.m_TipsUse.SetText(string.Format("{0}{1}[-]/{2}", num, (num < sequenceList[0, 1]) ? "[ff3e3e]" : "[ffffff]", sequenceList[0, 1])); + base.uiBehaviour.m_GetPathBtn.ID = (ulong)((long)sequenceList[0, 0]); + return true; + } + + private void OnGetPathBtnClick(IXUISprite btn) + { + XSingleton.singleton.ShowItemAccess((int)btn.ID, null); + } + + private bool OnSureChangeProfBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_TipsWindow.SetActive(false); + for (int i = 0; i < XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Count; i++) + { + RoleBriefInfo roleBriefInfo = XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo[i]; + bool flag = roleBriefInfo == null; + if (!flag) + { + bool flag2 = XFastEnumIntEqualityComparer.ToInt(roleBriefInfo.type) % 10 == this._doc.SelectProfession; + if (flag2) + { + string format = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("ProfessionChangeCoverTips")); + string label = string.Format(format, roleBriefInfo.level, XSingleton.singleton.GetProfName(XFastEnumIntEqualityComparer.ToInt(roleBriefInfo.type)), roleBriefInfo.name); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnSureCoverBtnClick)); + return true; + } + } + } + this._doc.QueryChangeProfession(); + return true; + } + + private bool OnSureCoverBtnClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this._doc.QueryChangeProfession(); + return true; + } + + private bool OnTabClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + int profID = (int)icb.ID; + this._doc.SelectProfession = (int)icb.ID; + XSingleton.singleton.AddGreenLog("current select profession = ", this._doc.SelectProfession.ToString(), null, null, null, null); + base.uiBehaviour.m_ProfName.SetText(XSingleton.singleton.GetProfName(profID)); + base.uiBehaviour.m_ProfIcon.spriteName = XSingleton.singleton.GetProfIcon(profID); + base.uiBehaviour.m_Desc.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetProfDesc(profID))); + base.uiBehaviour.m_TextScrollView.SetPosition(0f); + base.uiBehaviour.m_StarPool.ReturnAll(false); + uint profOperateLevel = XSingleton.singleton.GetProfOperateLevel(profID); + Vector3 tplPos = base.uiBehaviour.m_StarPool.TplPos; + int num = 0; + while ((long)num < (long)((ulong)profOperateLevel)) + { + GameObject gameObject = base.uiBehaviour.m_StarPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(num * base.uiBehaviour.m_StarPool.TplWidth), tplPos.y); + num++; + } + string profPic = XSingleton.singleton.GetProfPic(profID); + this._texPath = string.Format("{0}/{1}", this.TEXPATH, profPic); + base.uiBehaviour.m_Texture.SetTexturePath(this._texPath); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ProfessionChangeDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ProfessionChangeDlg.cs.meta new file mode 100644 index 00000000..0cc69750 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ProfessionChangeDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a71fd509549ec147a6e6241070960bb +timeCreated: 1611403163 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ProfressionTrialsHandler.cs b/Client/Assets/Scripts/XMainClient/UI/ProfressionTrialsHandler.cs new file mode 100644 index 00000000..e3043286 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ProfressionTrialsHandler.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ProfressionTrialsHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/ProfTrialsDlg"; + } + } + + private List _pro = new List(); + + private int[] MI = new int[] + { + 1, + 10, + 100, + 1000, + 10000 + }; + + private static readonly bool IsShowAvengerProf = false; + + private List _FxList = new List(); + + private List _ClickTips = new List(); + + private IXUICheckBox m_GeneralTab; + + protected override void Init() + { + base.Init(); + this.GetProfressional(); + this._FxList.Clear(); + this._ClickTips.Clear(); + Transform transform = base.PanelObject.transform.Find("Bg/Tabs/Tab1"); + bool flag = this._pro.Count > 0; + if (flag) + { + this.SetProSelect(transform, 0); + } + transform = base.PanelObject.transform.Find("Bg/Tabs/Tab2"); + bool flag2 = this._pro.Count > 1; + if (flag2) + { + transform.gameObject.SetActive(true); + this.SetProSelect(transform, 1); + } + else + { + transform.gameObject.SetActive(false); + } + transform = base.PanelObject.transform.Find("Bg/Tabs/Tab3"); + bool flag3 = this._pro.Count > 2; + if (flag3) + { + transform.gameObject.SetActive(true); + this.SetProSelect(transform, 2); + } + else + { + transform.gameObject.SetActive(false); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + private void GetProfressional() + { + XProfessionChangeDocument specificDocument = XDocuments.GetSpecificDocument(XProfessionChangeDocument.uuID); + bool flag = XSingleton.singleton.SceneID != specificDocument.SceneID; + if (flag) + { + List intList = XSingleton.singleton.GetIntList("ChangeProTaskIds"); + int num = 0; + XTaskDocument specificDocument2 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + for (int i = 0; i < intList.Count; i++) + { + bool flag2 = !specificDocument2.TaskRecord.IsTaskFinished((uint)intList[i]); + if (flag2) + { + num = i + 1; + break; + } + } + bool flag3 = num == 0; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Profression trials task error. promote = 0", null, null, null, null, null); + } + int typeID = (int)XSingleton.singleton.XPlayerData.TypeID; + int num2 = typeID + this.MI[num]; + int num3 = typeID + this.MI[num] * 2; + int num4 = typeID + this.MI[num] * 3; + this._pro.Clear(); + bool flag4 = XSingleton.singleton.IsExistProf(num2); + bool flag5 = XSingleton.singleton.IsExistProf(num3); + bool flag6 = XSingleton.singleton.IsExistProf(num4) && ProfressionTrialsHandler.IsShowAvengerProf; + bool profIsInLeft = XSingleton.singleton.GetProfIsInLeft(num2); + if (profIsInLeft) + { + bool flag7 = flag4; + if (flag7) + { + this._pro.Add(num2); + } + bool flag8 = flag5; + if (flag8) + { + this._pro.Add(num3); + } + } + else + { + bool flag9 = flag5; + if (flag9) + { + this._pro.Add(num3); + } + bool flag10 = flag4; + if (flag10) + { + this._pro.Add(num2); + } + } + bool flag11 = flag6; + if (flag11) + { + flag6 = XSkillTreeDocument.IsAvengerTaskDone(num4); + bool flag12 = flag6; + if (flag12) + { + this._pro.Add(num4); + } + } + } + else + { + int selectProfession = specificDocument.SelectProfession; + int num5 = selectProfession + 10; + int item = selectProfession + 20; + int num6 = selectProfession + 30; + this._pro.Clear(); + bool profIsInLeft2 = XSingleton.singleton.GetProfIsInLeft(num5); + if (profIsInLeft2) + { + this._pro.Add(num5); + this._pro.Add(item); + } + else + { + this._pro.Add(item); + this._pro.Add(num5); + } + bool flag13 = XSingleton.singleton.IsExistProf(num6) && ProfressionTrialsHandler.IsShowAvengerProf; + bool flag14 = flag13; + if (flag14) + { + flag13 = XSkillTreeDocument.IsAvengerTaskDone(num6); + bool flag15 = flag13; + if (flag15) + { + this._pro.Add(num6); + } + } + } + } + + private void SetProSelect(Transform ts, int i) + { + IXUICheckBox ixuicheckBox = ts.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)i); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckBoxClick)); + bool flag = i == 0; + if (flag) + { + this.m_GeneralTab = ixuicheckBox; + } + GameObject gameObject = ts.Find("Selected/FX").gameObject; + this._FxList.Add(gameObject); + GameObject gameObject2 = ts.Find("ClickText").gameObject; + this._ClickTips.Add(gameObject2); + IXUISprite ixuisprite = ts.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetProfIcon(this._pro[i]); + IXUILabel ixuilabel = ts.Find("ProName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetProfName(this._pro[i])); + } + + private bool OnCheckBoxClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + int num = (int)icb.ID; + for (int i = 0; i < this._FxList.Count; i++) + { + this._FxList[i].SetActive(i == num); + } + for (int i = 0; i < this._ClickTips.Count; i++) + { + this._ClickTips[i].SetActive(i != num); + } + uint promoteExperienceID = XSingleton.singleton.GetPromoteExperienceID(this._pro[num]); + XSingleton.singleton.AddLog("Change PromoteExperienceID to ", promoteExperienceID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.Player.OnTransform(promoteExperienceID); + result = true; + } + return result; + } + + public void SetGeneralTab() + { + bool flag = this.m_GeneralTab != null; + if (flag) + { + this.m_GeneralTab.bChecked = true; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ProfressionTrialsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ProfressionTrialsHandler.cs.meta new file mode 100644 index 00000000..7483b7f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ProfressionTrialsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f43849e9af70e75458baa66c2d074a7e +timeCreated: 1611404852 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/QAAudioPriority.cs b/Client/Assets/Scripts/XMainClient/UI/QAAudioPriority.cs new file mode 100644 index 00000000..dd16af2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QAAudioPriority.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + public enum QAAudioPriority + { + BEFORE, + URGEN, + AFTER + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/QAAudioPriority.cs.meta b/Client/Assets/Scripts/XMainClient/UI/QAAudioPriority.cs.meta new file mode 100644 index 00000000..93d4ac9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QAAudioPriority.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bb544102aa0ae8428256e465f3c8972 +timeCreated: 1611403600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/QteUIType.cs b/Client/Assets/Scripts/XMainClient/UI/QteUIType.cs new file mode 100644 index 00000000..3209e54f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QteUIType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + internal enum QteUIType + { + Bind, + Abnormal, + Charge + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/QteUIType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/QteUIType.cs.meta new file mode 100644 index 00000000..a2ca902d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QteUIType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b45b8875bd5b8604aaa51c7534ad2656 +timeCreated: 1611404392 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/QualityFilterCallback.cs b/Client/Assets/Scripts/XMainClient/UI/QualityFilterCallback.cs new file mode 100644 index 00000000..2fbec332 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QualityFilterCallback.cs @@ -0,0 +1,6 @@ +using System; + +namespace XMainClient.UI +{ + internal delegate void QualityFilterCallback(int mask); +} diff --git a/Client/Assets/Scripts/XMainClient/UI/QualityFilterCallback.cs.meta b/Client/Assets/Scripts/XMainClient/UI/QualityFilterCallback.cs.meta new file mode 100644 index 00000000..790d874b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QualityFilterCallback.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66af005b2d04a384ab44d244f4577e38 +timeCreated: 1611403855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/QualityFilterHandler.cs b/Client/Assets/Scripts/XMainClient/UI/QualityFilterHandler.cs new file mode 100644 index 00000000..904a9caa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QualityFilterHandler.cs @@ -0,0 +1,94 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class QualityFilterHandler : DlgHandlerBase + { + private static readonly int QualityCount = 6; + + private IXUICheckBox[] m_Opt = new IXUICheckBox[QualityFilterHandler.QualityCount]; + + private IXUIButton m_OK; + + private IXUIButton m_Cancel; + + private QualityFilterCallback m_Callback; + + private int m_Mask; + + protected override void Init() + { + base.Init(); + this.m_OK = (base.PanelObject.transform.Find("Menu/OK").GetComponent("XUIButton") as IXUIButton); + this.m_Cancel = (base.PanelObject.transform.Find("Menu/Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_Opt[0] = (base.PanelObject.transform.Find("Menu/C").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Opt[1] = (base.PanelObject.transform.Find("Menu/C").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Opt[2] = (base.PanelObject.transform.Find("Menu/B").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Opt[3] = (base.PanelObject.transform.Find("Menu/A").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Opt[4] = (base.PanelObject.transform.Find("Menu/S").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Opt[5] = (base.PanelObject.transform.Find("Menu/L").GetComponent("XUICheckBox") as IXUICheckBox); + for (int i = 0; i < 6; i++) + { + IXUISprite ixuisprite = this.m_Opt[i].gameObject.GetComponent("XUISprite") as IXUISprite; + bool flag = ixuisprite != null; + if (flag) + { + ixuisprite.RegisterSpriteClickEventHandler(null); + } + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_OK.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKClick)); + this.m_Cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCancelClick)); + } + + protected override void OnShow() + { + base.OnShow(); + int num = 1; + foreach (IXUICheckBox ixuicheckBox in this.m_Opt) + { + ixuicheckBox.bChecked = ((this.m_Mask & num) != 0); + num <<= 1; + } + } + + public void Set(int mask, QualityFilterCallback callback) + { + this.m_Mask = mask; + this.m_Callback = callback; + } + + protected bool _OnOKClick(IXUIButton go) + { + int num = 1; + this.m_Mask = 0; + foreach (IXUICheckBox ixuicheckBox in this.m_Opt) + { + bool bChecked = ixuicheckBox.bChecked; + if (bChecked) + { + this.m_Mask |= num; + } + num <<= 1; + } + bool flag = this.m_Callback != null; + if (flag) + { + this.m_Callback(this.m_Mask); + } + base.SetVisible(false); + return true; + } + + protected bool _OnCancelClick(IXUIButton go) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/QualityFilterHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/QualityFilterHandler.cs.meta new file mode 100644 index 00000000..8a7c0409 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QualityFilterHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4acf314bca8474458723606e9332aaa +timeCreated: 1611404502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs b/Client/Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs new file mode 100644 index 00000000..3613672b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs @@ -0,0 +1,188 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class QuickReplyDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/QuickReplyDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XQuickReplyDocument _Doc; + + private int m_quickReplyType = 1; + + private Vector2 m_DragDistance = Vector2.zero; + + private bool m_CancelRecord = false; + + private Action m_cancelAction = null; + + public void ShowView(int type, Action action = null) + { + this.m_quickReplyType = type; + this.m_cancelAction = action; + this.SetVisibleWithAnimation(true, null); + } + + protected override void Init() + { + this._Doc = XDocuments.GetSpecificDocument(XQuickReplyDocument.uuID); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnUpdateReplyList(); + this.OnShowTitle(); + } + + private void OnShowTitle() + { + string key = string.Format("QUICK_REPLY_{0}", this.m_quickReplyType); + this.m_uiBehaviour.m_Title.SetText(XStringDefineProxy.GetString(key)); + } + + private void OnUpdateReplyList() + { + List quickReplyList = this._Doc.GetQuickReplyList(this.m_quickReplyType); + bool flag = quickReplyList == null; + if (!flag) + { + int count = quickReplyList.Count; + this.m_uiBehaviour.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < count; i++) + { + GameObject gameObject = this.m_uiBehaviour.m_ItemPool.FetchGameObject(false); + QuickReplyTable.RowData rowData = quickReplyList[i]; + gameObject.name = rowData.ID.ToString(); + gameObject.transform.localPosition = this.m_uiBehaviour.m_ItemPool.TplPos - new Vector3(0f, (float)(this.m_uiBehaviour.m_ItemPool.TplHeight * i)); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Content").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Content); + ixuisprite.ID = (ulong)((long)rowData.ID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReplyClicked)); + } + this.m_uiBehaviour.m_ItemPool.ActualReturnAll(false); + this.m_uiBehaviour.m_WrapScrollView.ResetPosition(); + } + } + + private void OnReplyClicked(IXUISprite button) + { + QuickReplyTable.RowData rowData = this._Doc.GetRowData((int)button.ID); + DlgBase.singleton.AddChat(rowData.Content, ChatChannelType.Guild, null, false); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("INVITATION_SENT_NOTIFICATION"), "fece00"); + bool flag = this.m_cancelAction != null; + if (flag) + { + this.m_cancelAction(true); + this.m_cancelAction = null; + this.SetVisible(false, true); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Voice.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnVoicePressButton)); + base.uiBehaviour.m_Voice.RegisterDragEventHandler(new ButtonDragEventHandler(this.OnVoiceDragButton)); + } + + private void OnCloseClicked(IXUISprite go) + { + bool flag = this.m_cancelAction != null; + if (flag) + { + this.m_cancelAction(false); + this.m_cancelAction = null; + } + this.SetVisible(false, true); + } + + private void OnVoicePressButton(IXUIButton button, bool state) + { + if (state) + { + this.m_DragDistance = Vector2.zero; + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, null); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, null); + } + } + else + { + DlgBase.singleton.SetActiveChannel(ChatChannelType.Guild); + bool useApollo2 = XChatDocument.UseApollo; + if (useApollo2) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + bool flag = !this.m_CancelRecord; + if (flag) + { + bool flag2 = this.m_cancelAction != null; + if (flag2) + { + this.m_cancelAction(true); + this.m_cancelAction = null; + this.SetVisible(false, true); + } + } + } + } + + private void OnVoiceDragButton(IXUIButton button, Vector2 delta) + { + this.m_DragDistance += delta; + bool flag = this.m_DragDistance.magnitude >= 100f; + if (flag) + { + this.m_CancelRecord = true; + } + else + { + this.m_CancelRecord = false; + } + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs.meta new file mode 100644 index 00000000..1dc33a48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/QuickReplyDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75b7c041f44771e409f49513a0dc2c8e +timeCreated: 1611403948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyDlg.cs new file mode 100644 index 00000000..c37e1c02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyDlg.cs @@ -0,0 +1,314 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ReceiveEnergyDlg : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/ReceiveEnergy"; + } + } + + private SystemRewardTable.RowData mSupperRewardInfo; + + private SystemRewardTable.RowData mDinnerRewardInfo; + + private XSystemRewardData mSupperRewardData; + + private XSystemRewardData mDinnerRewardData; + + private XSystemRewardDocument mDoc; + + public IXUIButton m_btnDo; + + public ReceiveEnergyPanelModelView supperPanel = new ReceiveEnergyPanelModelView(); + + public ReceiveEnergyPanelModelView dinnerPanel = new ReceiveEnergyPanelModelView(); + + private SeqList dinnerData; + + private SeqList supperData; + + public IXUIButton m_BtnSubscribe; + + public IXUIButton m_BtnCancelSubscribe; + + private ulong m_rewardUid = 0UL; + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private ulong SubscribebuttonID = 0UL; + + protected override void Init() + { + this.mDoc = (XSingleton.singleton.Doc.GetXComponent(XSystemRewardDocument.uuID) as XSystemRewardDocument); + this.mSupperRewardInfo = this.mDoc.GetTableDataByType(SystemRewardTypeMrg.GetTypeUInt(SystemRewardType.RewardSupper)); + this.mDinnerRewardInfo = this.mDoc.GetTableDataByType(SystemRewardTypeMrg.GetTypeUInt(SystemRewardType.RewardDinner)); + this.m_btnDo = (base.transform.Find("Bg/GetReward").GetComponent("XUIButton") as IXUIButton); + this.dinnerPanel.FindFrom(base.transform.Find("Bg/L")); + this.supperPanel.FindFrom(base.transform.Find("Bg/R")); + this.dinnerData = XSingleton.singleton.GetSequenceList("DinnerReward", false); + this.supperData = XSingleton.singleton.GetSequenceList("SupperReward", false); + this.m_BtnSubscribe = (base.transform.Find("Bg/Subscribe").GetComponent("XUIButton") as IXUIButton); + this.m_BtnCancelSubscribe = (base.transform.Find("Bg/UnSubscribe").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + this.m_btnDo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonDo)); + this.m_BtnSubscribe.ID = 0UL; + this.m_BtnSubscribe.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubscribeClick)); + this.m_BtnCancelSubscribe.ID = 1UL; + this.m_BtnCancelSubscribe.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubscribeClick)); + } + + public override void RefreshData() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.mSupperRewardData = null; + this.mDinnerRewardData = null; + List dataList = this.mDoc.DataList; + for (int i = 0; i < dataList.Count; i++) + { + bool flag2 = dataList[i].type == SystemRewardTypeMrg.GetTypeUInt(SystemRewardType.RewardSupper); + if (flag2) + { + this.mSupperRewardData = dataList[i]; + } + else + { + bool flag3 = dataList[i].type == SystemRewardTypeMrg.GetTypeUInt(SystemRewardType.RewardDinner); + if (flag3) + { + this.mDinnerRewardData = dataList[i]; + } + } + bool flag4 = this.mSupperRewardData != null && this.mDinnerRewardData != null; + if (flag4) + { + break; + } + } + bool flag5 = this.mSupperRewardData != null; + if (flag5) + { + this.supperPanel.m_sprFinish.SetVisible(this.mSupperRewardData.state == XSystemRewardState.SRS_FETCHED); + this.SetItemStatue(this.supperData, this.supperPanel); + } + else + { + this.supperPanel.m_sprFinish.SetVisible(false); + } + bool flag6 = this.mDinnerRewardData != null; + if (flag6) + { + this.dinnerPanel.m_sprFinish.SetVisible(this.mDinnerRewardData.state == XSystemRewardState.SRS_FETCHED); + this.SetItemStatue(this.dinnerData, this.dinnerPanel); + } + else + { + this.dinnerPanel.m_sprFinish.SetVisible(false); + } + this.m_btnDo.SetVisible((this.mSupperRewardData == null && this.mDinnerRewardData == null) || (this.mSupperRewardData != null && this.mSupperRewardData.state == XSystemRewardState.SRS_CAN_FETCH) || (this.mDinnerRewardData != null && this.mDinnerRewardData.state == XSystemRewardState.SRS_CAN_FETCH)); + } + } + + private void SetItemStatue(SeqList lst, ReceiveEnergyPanelModelView go) + { + bool flag = lst.Count > 1; + if (flag) + { + int itemID = lst[0, 0]; + int num = lst[0, 1]; + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + bool flag2 = itemConf.ItemIcon1 != null && itemConf.ItemIcon1.Length != 0; + if (flag2) + { + go.m_EnerySpr.SetSprite(itemConf.ItemIcon1[0]); + go.m_lbNum.SetText(num.ToString()); + } + else + { + this.dinnerPanel.m_lbNum.SetText(""); + } + itemID = lst[1, 0]; + num = lst[1, 1]; + itemConf = XBagDocument.GetItemConf(itemID); + bool flag3 = itemConf.ItemIcon1 != null && itemConf.ItemIcon1.Length != 0; + if (flag3) + { + go.m_ItemGo.SetActive(true); + go.m_ItemIcon.SetSprite(itemConf.ItemIcon1[0]); + go.m_ItemNumLab.SetText(num.ToString()); + } + else + { + go.m_ItemGo.SetActive(false); + } + } + else + { + bool flag4 = lst.Count == 1; + if (flag4) + { + int itemID2 = lst[0, 0]; + int num2 = lst[0, 1]; + ItemList.RowData itemConf2 = XBagDocument.GetItemConf(itemID2); + bool flag5 = itemConf2.ItemIcon1 != null && itemConf2.ItemIcon1.Length != 0; + if (flag5) + { + go.m_EnerySpr.SetSprite(itemConf2.ItemIcon1[0]); + go.m_lbNum.SetText(num2.ToString()); + } + else + { + this.dinnerPanel.m_lbNum.SetText(""); + } + go.m_ItemGo.SetActive(false); + } + else + { + go.m_lbNum.SetVisible(false); + } + } + } + + private bool OnClickButtonDo(IXUIButton go) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + int num = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE); + bool flag2 = this.mSupperRewardData != null && this.mSupperRewardData.state == XSystemRewardState.SRS_CAN_FETCH; + if (flag2) + { + this.m_rewardUid = this.mSupperRewardData.uid; + bool flag3 = num + this.supperData[0, 1] > int.Parse(XSingleton.singleton.GetValue("MaxFatigue")); + if (flag3) + { + XSingleton.singleton.ShowFatigueSureDlg(new ButtonClickEventHandler(this.GetFatigueSure)); + return true; + } + this.mDoc.ReqFetchReward(this.m_rewardUid); + } + else + { + bool flag4 = this.mDinnerRewardData != null && this.mDinnerRewardData.state == XSystemRewardState.SRS_CAN_FETCH; + if (flag4) + { + this.m_rewardUid = this.mDinnerRewardData.uid; + bool flag5 = num + this.dinnerData[0, 1] > int.Parse(XSingleton.singleton.GetValue("MaxFatigue")); + if (flag5) + { + XSingleton.singleton.ShowFatigueSureDlg(new ButtonClickEventHandler(this.GetFatigueSure)); + return true; + } + this.mDoc.ReqFetchReward(this.m_rewardUid); + } + } + result = true; + } + return result; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + + private bool GetFatigueSure(IXUIButton btn) + { + this.mDoc.ReqFetchReward(this.m_rewardUid); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public override void OnUnload() + { + this.mSupperRewardInfo = null; + this.mDinnerRewardInfo = null; + this.mDoc = null; + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + this.RefreshSubscribe(); + } + + protected override void OnHide() + { + } + + protected void OnHideTweenFinished(IXUITweenTool tween) + { + base.SetVisible(false); + } + + private bool OnSubscribeClick(IXUIButton button) + { + this.SubscribebuttonID = button.ID; + PushSubscribeTable.RowData pushSubscribe = XPushSubscribeDocument.GetPushSubscribe(PushSubscribeOptions.ReceiveEnergy); + XSingleton.singleton.ShowModalDialog((button.ID == 0UL) ? pushSubscribe.SubscribeDescription : pushSubscribe.CancelDescription, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.ReqSubscribeChange)); + return true; + } + + private bool ReqSubscribeChange(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XPushSubscribeDocument specificDocument = XDocuments.GetSpecificDocument(XPushSubscribeDocument.uuID); + specificDocument.ReqSetSubscribe(PushSubscribeOptions.ReceiveEnergy, this.SubscribebuttonID == 0UL); + return true; + } + + public void RefreshSubscribe() + { + PushSubscribeTable.RowData pushSubscribe = XPushSubscribeDocument.GetPushSubscribe(PushSubscribeOptions.ReceiveEnergy); + XPushSubscribeDocument specificDocument = XDocuments.GetSpecificDocument(XPushSubscribeDocument.uuID); + bool flag = XSingleton.singleton.AccountType == LoginType.LGOIN_WECHAT_PF && pushSubscribe.IsShow && specificDocument.OptionsDefault != null && specificDocument.OptionsDefault.Count != 0; + if (flag) + { + bool curSubscribeStatus = specificDocument.GetCurSubscribeStatus(PushSubscribeOptions.ReceiveEnergy); + this.m_BtnSubscribe.gameObject.SetActive(!curSubscribeStatus); + this.m_BtnCancelSubscribe.gameObject.SetActive(curSubscribeStatus); + } + else + { + this.m_BtnSubscribe.gameObject.SetActive(false); + this.m_BtnCancelSubscribe.gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyDlg.cs.meta new file mode 100644 index 00000000..cc81d502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4965e8875e6ca88449e47fbe3bb57a0d +timeCreated: 1611403661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs new file mode 100644 index 00000000..861600a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs @@ -0,0 +1,40 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class ReceiveEnergyPanelModelView + { + public IXUILabel m_lbNum; + + public IXUISprite m_sprFinish; + + public IXUISprite m_EnerySpr; + + public GameObject m_ItemGo; + + public IXUISprite m_ItemIcon; + + public IXUILabel m_ItemNumLab; + + public void FindFrom(Transform t) + { + bool flag = null == t; + if (!flag) + { + this.m_lbNum = (t.GetComponent("XUILabel") as IXUILabel); + this.m_sprFinish = (t.Find("F").GetComponent("XUISprite") as IXUISprite); + this.m_EnerySpr = (t.Find("Icon").GetComponent("XUISprite") as IXUISprite); + Transform transform = t.Find("Item"); + bool flag2 = transform != null; + if (flag2) + { + this.m_ItemGo = transform.gameObject; + this.m_ItemNumLab = (transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.m_ItemIcon = (transform.Find("Icon1").GetComponent("XUISprite") as IXUISprite); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs.meta new file mode 100644 index 00000000..e172583a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReceiveEnergyPanelModelView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66b701998316e944499a71a833892052 +timeCreated: 1611403855 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RecycleItemBagView.cs b/Client/Assets/Scripts/XMainClient/UI/RecycleItemBagView.cs new file mode 100644 index 00000000..667d1e31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RecycleItemBagView.cs @@ -0,0 +1,126 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RecycleItemBagView : DlgHandlerBase + { + private XRecycleItemDocument _doc = null; + + private QualityFilterHandler qualityFilter; + + private static int QualityMask = 3; + + private IXUIScrollView bagScrollView = null; + + private XBagWindow bagWindow; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XRecycleItemDocument.uuID); + this._doc.BagView = this; + DlgHandlerBase.EnsureCreate(ref this.qualityFilter, base.PanelObject.transform.Find("FilterPanel").gameObject, null, true); + this.qualityFilter.Set(RecycleItemBagView.QualityMask, new QualityFilterCallback(this._OnFilterOK)); + this.bagScrollView = (base.PanelObject.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.bagWindow = new XBagWindow(base.PanelObject, new ItemUpdateHandler(this.WrapContentItemUpdated), new GetItemHandler(this._doc.GetItems)); + this.bagWindow.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = base.PanelObject.transform.Find("FilterBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnFilterClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.bagWindow.OnShow(); + this.qualityFilter.SetVisible(false); + } + + protected override void OnHide() + { + base.OnHide(); + this.bagWindow.OnHide(); + this._doc.ResetSelection(false); + } + + public override void OnUnload() + { + this._doc.BagView = null; + this.bagWindow = null; + base.OnUnload(); + } + + public void Refresh() + { + this.bagWindow.RefreshWindow(); + } + + public void UpdateView() + { + this.bagWindow.UpdateBag(); + } + + protected bool _OnFilterClicked(IXUIButton btn) + { + this.qualityFilter.SetVisible(true); + return true; + } + + protected void _OnFilterOK(int mask) + { + RecycleItemBagView.QualityMask = mask; + this._doc.GetQuickSelectItems(mask); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILongPress ixuilongPress = ixuisprite.gameObject.GetComponent("XUILongPress") as IXUILongPress; + bool flag = this.bagWindow.m_XItemList == null || index >= this.bagWindow.m_XItemList.Count || index < 0; + if (flag) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + ixuilongPress.RegisterSpriteLongPressEventHandler(null); + } + else + { + ixuisprite.ID = this.bagWindow.m_XItemList[index].uid; + int num = 0; + this._doc.IsSelected(ixuisprite.ID, out num); + bool flag2 = num == 0; + if (flag2) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + ixuilongPress.RegisterSpriteLongPressEventHandler(null); + ixuisprite.RegisterSpriteClickEventHandler(null); + } + else + { + XSingleton.singleton.DrawItem(t.gameObject, this.bagWindow.m_XItemList[index]); + ixuilongPress.RegisterSpriteLongPressEventHandler(new SpriteClickEventHandler(this.OnItemLongPressed)); + IXUILabel ixuilabel = t.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(num.ToString()); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + } + } + } + + public void OnItemClicked(IXUISprite iSp) + { + this._doc.ToggleItemSelect(iSp.ID); + } + + public void OnItemLongPressed(IXUISprite iSp) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(iSp.ID); + XSingleton.singleton.ShowTooltipDialog(bagItemByUID, null, iSp, false, 0u); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RecycleItemBagView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RecycleItemBagView.cs.meta new file mode 100644 index 00000000..1c07ad05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RecycleItemBagView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d91e9dfae125a9849bab656c54fccbe3 +timeCreated: 1611404642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RecycleItemOperateView.cs b/Client/Assets/Scripts/XMainClient/UI/RecycleItemOperateView.cs new file mode 100644 index 00000000..3698aa35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RecycleItemOperateView.cs @@ -0,0 +1,262 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RecycleItemOperateView : DlgHandlerBase + { + private XRecycleItemDocument _doc = null; + + private GameObject[] m_ItemList = new GameObject[XRecycleItemDocument.MAX_RECYCLE_COUNT]; + + private IXUISprite[] m_ItemIconList = new IXUISprite[XRecycleItemDocument.MAX_RECYCLE_COUNT]; + + private Transform[] m_ItemContainers = new Transform[XRecycleItemDocument.MAX_RECYCLE_COUNT]; + + private XFx m_RecyclingFx; + + private IXUITweenTool m_RecyclingEatTween; + + private GameObject m_RecyclingFxParent; + + private XFx criticalEffect; + + private uint _setPosition; + + protected override void Init() + { + base.Init(); + XUIPool xuipool = new XUIPool(XSingleton.singleton.m_uiTool); + xuipool.SetupPool(base.PanelObject.transform.Find("Frame/Items").gameObject, base.PanelObject.transform.Find("Frame/Items/ItemTpl").gameObject, XRecycleItemDocument.MAX_RECYCLE_COUNT, false); + for (uint num = 0u; num < XRecycleItemDocument.MAX_RECYCLE_COUNT; num += 1u) + { + this.m_ItemContainers[(int)num] = base.PanelObject.transform.Find("Frame/Items/Item" + num); + GameObject gameObject = xuipool.FetchGameObject(false); + this.m_ItemList[(int)num] = gameObject; + this.m_ItemIconList[(int)num] = (gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + gameObject.transform.parent = this.m_ItemContainers[(int)num]; + gameObject.transform.localPosition = Vector3.zero; + gameObject.transform.localScale = Vector3.one; + } + this.m_RecyclingEatTween = (base.PanelObject.transform.Find("Frame/Items").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_RecyclingFxParent = base.PanelObject.transform.Find("Frame/P/Fire").gameObject; + this.criticalEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_gorgeous", null, true); + this._doc = XDocuments.GetSpecificDocument(XRecycleItemDocument.uuID); + this._doc.OperateView = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = base.PanelObject.transform.Find("Frame/DoBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDoClicked)); + int num = 0; + while ((long)num < (long)((ulong)XRecycleItemDocument.MAX_RECYCLE_COUNT)) + { + this.m_ItemIconList[num].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + IXUILongPress ixuilongPress = this.m_ItemIconList[num].gameObject.GetComponent("XUILongPress") as IXUILongPress; + ixuilongPress.RegisterSpriteLongPressEventHandler(new SpriteClickEventHandler(this._OnItemLongPressed)); + num++; + } + } + + protected override void OnShow() + { + base.OnShow(); + this.Refresh(); + this._ResetItemStates(); + } + + public override void OnUnload() + { + this._doc.OperateView = null; + bool flag = this.m_RecyclingFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_RecyclingFx, true); + this.m_RecyclingFx = null; + } + base.OnUnload(); + } + + private bool _OnShopBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Fasion, 0UL); + return true; + } + + private bool _OnDoClicked(IXUIButton btn) + { + bool flag = this._doc.SelectedItems.Count == 0; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RECYCLE_SELECTION_EMPTY"), "fece00"); + result = true; + } + else + { + foreach (KeyValuePair keyValuePair in this._doc.SelectedItems) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(keyValuePair.Key); + bool flag2 = itemByUID != null && itemByUID.type == 1u; + if (flag2) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + int @int = XSingleton.singleton.GetInt("RecycleFirstTipsLevel"); + int int2 = XSingleton.singleton.GetInt("RecycleSecondTipsLevel"); + bool flag3 = @int >= int2; + if (flag3) + { + XSingleton.singleton.AddGreenLog("firstLevel should >= secondLevel", null, null, null, null, null); + } + bool flag4 = (ulong)xequipItem.enhanceInfo.EnhanceLevel >= (ulong)((long)@int) && (ulong)xequipItem.enhanceInfo.EnhanceLevel < (ulong)((long)int2); + if (flag4) + { + this.OnAddLeftTimeClicked(btn); + return true; + } + bool flag5 = (ulong)xequipItem.enhanceInfo.EnhanceLevel >= (ulong)((long)int2); + if (flag5) + { + btn.ID = (ulong)((long)int2); + this.SurecClick(btn); + return true; + } + } + } + result = this._DoClicked(btn); + } + return result; + } + + private void OnAddLeftTimeClicked(IXUIButton btn) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("Recycle_EnhancedEquip"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._DoClicked)); + } + + private void SurecClick(IXUIButton btn) + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("Cannot_recycl"), btn.ID), XStringDefineProxy.GetString("COMMON_OK")); + } + + private bool _DoClicked(IXUIButton btn) + { + DlgBase.singleton.ToggleInputBlocker(true); + this.m_RecyclingEatTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this._OnFinishEatItems)); + this.m_RecyclingEatTween.PlayTween(true, -1f); + XSingleton.singleton.PlayUISound("Audio/UI/UI_ItemMelt", true, AudioChannel.Action); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private void _OnFinishEatItems(IXUITweenTool it) + { + bool flag = this.m_RecyclingFx == null; + if (flag) + { + this.m_RecyclingFx = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_zbhs", null, true); + } + this.m_RecyclingFx.SetActive(true); + this.m_RecyclingFx.Play(this.m_RecyclingFxParent.transform, Vector3.zero, Vector3.one, 1f, false, false); + this._doc.Recycle(); + this._ResetItemStates(); + DlgBase.singleton.ToggleInputBlocker(false); + XSingleton.singleton.KillTimer(this._setPosition); + this._setPosition = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.SetPos), null); + } + + public void SetPos(object o = null) + { + bool flag = this.m_RecyclingFx != null; + if (flag) + { + this.m_RecyclingFx.SetActive(false); + } + } + + private void _ResetItemStates() + { + this.m_RecyclingEatTween.ResetTween(true); + } + + private void _OnItemClicked(IXUISprite iSp) + { + this._doc.ToggleItemUnSelect(iSp.ID); + } + + private void _OnItemLongPressed(IXUISprite iSp) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(iSp.ID); + XSingleton.singleton.ShowTooltipDialog(bagItemByUID, null, iSp, false, 0u); + } + + public void Refresh() + { + int num = 0; + foreach (KeyValuePair keyValuePair in this._doc.SelectedItems) + { + ulong key = keyValuePair.Key; + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(key); + XSingleton.singleton.DrawItem(this.m_ItemList[num], bagItemByUID); + IXUILabel ixuilabel = this.m_ItemList[num].transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(keyValuePair.Value.ToString()); + this.m_ItemIconList[num].ID = key; + num++; + } + while ((long)num < (long)((ulong)XRecycleItemDocument.MAX_RECYCLE_COUNT)) + { + XSingleton.singleton.DrawItem(this.m_ItemList[num], null); + this.m_ItemIconList[num].ID = 0UL; + num++; + } + } + + public void ToggleItem(ulong uid, ulong count, bool bSelect) + { + int num = -1; + int num2 = 0; + while ((long)num2 < (long)((ulong)XRecycleItemDocument.MAX_RECYCLE_COUNT)) + { + bool flag = this.m_ItemIconList[num2].ID == uid; + if (flag) + { + num = num2; + break; + } + bool flag2 = this.m_ItemIconList[num2].ID == 0UL && num < 0; + if (flag2) + { + num = num2; + } + num2++; + } + if (bSelect) + { + XItem bagItemByUID = XBagDocument.BagDoc.GetBagItemByUID(uid); + XSingleton.singleton.DrawItem(this.m_ItemList[num], bagItemByUID); + IXUILabel ixuilabel = this.m_ItemList[num].transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(count.ToString()); + this.m_ItemIconList[num].ID = uid; + } + else + { + bool flag3 = this.m_ItemIconList[num].ID == uid; + if (flag3) + { + XSingleton.singleton.DrawItem(this.m_ItemList[num], null); + this.m_ItemIconList[num].ID = 0UL; + } + } + } + + public void PlayCritical() + { + this.criticalEffect.Play(Vector3.zero, Quaternion.identity, Vector3.one, 1f); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RecycleItemOperateView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RecycleItemOperateView.cs.meta new file mode 100644 index 00000000..f9302c5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RecycleItemOperateView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a38086157e8ad94f830b23713a7d9f6 +timeCreated: 1611404199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RecycleSystemDlg.cs b/Client/Assets/Scripts/XMainClient/UI/RecycleSystemDlg.cs new file mode 100644 index 00000000..daacdabd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RecycleSystemDlg.cs @@ -0,0 +1,128 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RecycleSystemDlg : TabDlgBase + { + public string EffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_effectPath); + if (flag) + { + this.m_effectPath = XSingleton.singleton.GetValue("RecycleEffectPath"); + } + return this.m_effectPath; + } + } + + public override string fileName + { + get + { + return "GameSystem/RecycleDlg"; + } + } + + public RecycleItemBagView _RecycleItemBagView; + + public RecycleItemOperateView _RecycleItemOperateView; + + public GameObject m_RecycleItemBagPanel; + + public GameObject m_RecycleItemOperatePanel; + + public GameObject m_InputBlocker; + + public IXUIButton m_helpBtn; + + private XFx m_fx; + + private string m_effectPath = string.Empty; + + protected override void Init() + { + base.Init(); + this.m_RecycleItemBagPanel = base.uiBehaviour.transform.Find("Bg/ItemListPanel").gameObject; + this.m_RecycleItemBagPanel.SetActive(false); + this.m_RecycleItemOperatePanel = base.uiBehaviour.transform.Find("Bg/LeftPanel/ItemOperateFrame").gameObject; + this.m_RecycleItemOperatePanel.SetActive(false); + this.m_InputBlocker = base.uiBehaviour.transform.Find("Bg/BlockerPanel/InputBlocker").gameObject; + this.m_helpBtn = (base.uiBehaviour.transform.Find("Bg/LeftPanel/T/Help").GetComponent("XUIButton") as IXUIButton); + this.m_helpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ShowHelp)); + bool flag = this.m_fx == null; + if (flag) + { + this.m_fx = XSingleton.singleton.CreateFx(this.EffectPath, null, true); + } + else + { + this.m_fx.SetActive(true); + } + this.m_fx.Play(base.uiBehaviour.transform.Find("Bg/p"), Vector3.zero, Vector3.one, 1f, true, false); + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + protected override void OnUnload() + { + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + DlgHandlerBase.EnsureUnload(ref this._RecycleItemBagView); + DlgHandlerBase.EnsureUnload(ref this._RecycleItemOperateView); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + DlgBase.singleton.ShowRecycleTips(); + } + + private bool ShowHelp(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Recycle_Equip); + return false; + } + + public override void SetupHandlers(XSysDefine sys) + { + XRecycleItemDocument specificDocument = XDocuments.GetSpecificDocument(XRecycleItemDocument.uuID); + specificDocument.CurrentSys = sys; + XSysDefine xsysDefine = sys; + if (xsysDefine != XSysDefine.XSys_Recycle_Equip) + { + if (xsysDefine != XSysDefine.XSys_Recycle_Jade) + { + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + return; + } + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._RecycleItemBagView, this.m_RecycleItemBagPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._RecycleItemOperateView, this.m_RecycleItemOperatePanel, this, true)); + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._RecycleItemBagView, this.m_RecycleItemBagPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._RecycleItemOperateView, this.m_RecycleItemOperatePanel, this, true)); + } + this.ToggleInputBlocker(false); + } + + public void ToggleInputBlocker(bool bBlock) + { + this.m_InputBlocker.SetActive(bBlock); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RecycleSystemDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RecycleSystemDlg.cs.meta new file mode 100644 index 00000000..c6350650 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RecycleSystemDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c62c7ca0d41f0ba469b7f6f3811e20e4 +timeCreated: 1611404508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RefinedReplaceHandler.cs b/Client/Assets/Scripts/XMainClient/UI/RefinedReplaceHandler.cs new file mode 100644 index 00000000..71b519c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RefinedReplaceHandler.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RefinedReplaceHandler : DlgHandlerBase + { + private ArtifactRefinedDocument m_doc; + + private IXUIButton m_cancleBtn; + + private IXUIButton m_sureBtn; + + private Transform m_parentTra; + + private readonly int m_gap = 42; + + private XUIPool m_itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_doc = ArtifactRefinedDocument.Doc; + this.m_cancleBtn = (base.PanelObject.transform.Find("Bg/Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_sureBtn = (base.PanelObject.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.m_parentTra = base.PanelObject.transform.Find("Bg/AttrGos"); + this.m_itemPool.SetupPool(this.m_parentTra.gameObject, this.m_parentTra.Find("AttrItem").gameObject, 2u, true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_cancleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancleClicked)); + this.m_sureBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSureClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void FillContent() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.SelectUid); + bool flag = itemByUID == null; + if (!flag) + { + XArtifactItem xartifactItem = itemByUID as XArtifactItem; + bool flag2 = xartifactItem.RandAttrInfo.RandAttr.Count == 0; + if (!flag2) + { + List list = new List(); + List list2 = new List(); + for (int i = 0; i < xartifactItem.RandAttrInfo.RandAttr.Count; i++) + { + bool flag3 = xartifactItem.RandAttrInfo.RandAttr[i].AttrID > 0u; + if (flag3) + { + list.Add(xartifactItem.RandAttrInfo.RandAttr[i]); + } + } + for (int j = 0; j < xartifactItem.UnSavedAttr.Count; j++) + { + bool flag4 = xartifactItem.UnSavedAttr[j].AttrID > 0u; + if (flag4) + { + list2.Add(xartifactItem.UnSavedAttr[j]); + } + } + string text = string.Empty; + bool flag5 = XSingleton.singleton.XPlayerData != null; + if (flag5) + { + ProfessionTable.RowData byProfID = XSingleton.singleton.RoleInfo.GetByProfID(XSingleton.singleton.XPlayerData.TypeID); + bool flag6 = byProfID != null; + if (flag6) + { + text = XStringDefineProxy.GetString("ZizhiType" + byProfID.AttackType); + } + } + this.m_itemPool.ReturnAll(false); + int num = (list.Count < list2.Count) ? list.Count : list2.Count; + float num2 = (float)(num * this.m_gap / 2); + for (int k = 0; k <= num; k++) + { + GameObject gameObject = this.m_itemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_parentTra; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, num2 - (float)(this.m_gap * k), 0f); + bool flag7 = k == 0; + if (flag7) + { + int ppt = this.GetPPT(itemByUID, false); + int ppt2 = this.GetPPT(itemByUID, true); + IXUILabel ixuilabel = gameObject.transform.Find("BeforeName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + ixuilabel = (gameObject.transform.Find("BeforeValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(this.GetPPT(itemByUID, false).ToString()); + ixuilabel = (gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(text); + ixuilabel = (gameObject.transform.Find("NowValue").GetComponent("XUILabel") as IXUILabel); + bool flag8 = ppt >= ppt2; + if (flag8) + { + ixuilabel.SetText(string.Format("[ff0000]{0}[-]", this.GetPPT(itemByUID, true))); + } + else + { + ixuilabel.SetText(string.Format("[00ff00]{0}[-]", this.GetPPT(itemByUID, true))); + } + } + else + { + int num3 = k - 1; + XItemChangeAttr xitemChangeAttr = list[num3]; + ArtifactAttrRange artifactAttrRange = ArtifactDocument.GetArtifactAttrRange((uint)xartifactItem.itemID, num3, xitemChangeAttr.AttrID, xitemChangeAttr.AttrValue); + string color = this.GetColor(xitemChangeAttr.AttrValue, artifactAttrRange.Min, artifactAttrRange.Max); + IXUILabel ixuilabel = gameObject.transform.Find("BeforeName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("[{0}]{1}[-]", color, XAttributeCommon.GetAttrStr((int)xitemChangeAttr.AttrID))); + ixuilabel = (gameObject.transform.Find("BeforeValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[{0}]{1}[-]", color, xitemChangeAttr.AttrValue)); + xitemChangeAttr = list2[num3]; + artifactAttrRange = ArtifactDocument.GetArtifactAttrRange((uint)xartifactItem.itemID, num3, xitemChangeAttr.AttrID, xitemChangeAttr.AttrValue); + color = this.GetColor(xitemChangeAttr.AttrValue, artifactAttrRange.Min, artifactAttrRange.Max); + ixuilabel = (gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[{0}]{1}[-]", color, XAttributeCommon.GetAttrStr((int)xitemChangeAttr.AttrID))); + ixuilabel = (gameObject.transform.Find("NowValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[{0}]{1}[-]", color, xitemChangeAttr.AttrValue)); + } + } + } + } + } + + private string GetColor(uint attrValue, uint min, uint max) + { + bool flag = min >= max; + float num; + if (flag) + { + num = 100f; + } + else + { + bool flag2 = attrValue < max; + if (flag2) + { + num = (attrValue - min) * 100u / (max - min); + } + else + { + num = 100f; + } + } + int quality = EquipAttrDataMgr.MarkList.Count - 1; + for (int i = 0; i < EquipAttrDataMgr.MarkList.Count; i++) + { + bool flag3 = num < (float)EquipAttrDataMgr.MarkList[i]; + if (flag3) + { + quality = i; + break; + } + } + return XSingleton.singleton.GetItemQualityRGB(quality); + } + + private int GetPPT(XItem item, bool isTemp) + { + XArtifactItem xartifactItem = item as XArtifactItem; + bool flag = xartifactItem == null; + int result; + if (flag) + { + result = -1; + } + else + { + XAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag2 = xplayerData == null; + if (flag2) + { + result = -1; + } + else + { + double num = xartifactItem.GetPPT(xplayerData); + bool flag3 = !isTemp; + if (flag3) + { + for (int i = 0; i < xartifactItem.RandAttrInfo.RandAttr.Count; i++) + { + bool flag4 = xartifactItem.RandAttrInfo.RandAttr[i].AttrID == 0u; + if (!flag4) + { + num += XSingleton.singleton.GetPPT(xartifactItem.RandAttrInfo.RandAttr[i], xplayerData, -1); + } + } + } + else + { + for (int j = 0; j < xartifactItem.UnSavedAttr.Count; j++) + { + bool flag5 = xartifactItem.UnSavedAttr[j].AttrID == 0u; + if (!flag5) + { + num += XSingleton.singleton.GetPPT(xartifactItem.UnSavedAttr[j], xplayerData, -1); + } + } + } + result = (int)num; + } + } + return result; + } + + private bool OnCancleClicked(IXUIButton btn) + { + base.SetVisible(false); + this.m_doc.ReqRefined(ArtifactDeityStoveOpType.ArtifactDeityStove_RefineRetain); + return true; + } + + private bool OnSureClicked(IXUIButton btn) + { + base.SetVisible(false); + this.m_doc.ReqRefined(ArtifactDeityStoveOpType.ArtifactDeityStove_RefineReplace); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RefinedReplaceHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RefinedReplaceHandler.cs.meta new file mode 100644 index 00000000..0096070a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RefinedReplaceHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a872e8ba7cccdb642907a94445e3fcc0 +timeCreated: 1611404295 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RenameBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/RenameBehaviour.cs new file mode 100644 index 00000000..eab328f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RenameBehaviour.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RenameBehaviour : DlgBehaviourBase + { + public IXUISprite mClose; + + public IXUILabel mMessage; + + public IXUILabel mTitle; + + public IXUIInput mInput; + + public IXUILabel mInputText; + + public IXUIButton mOk; + + private void Awake() + { + this.mClose = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.mMessage = (base.transform.Find("Bg/T").GetComponent("XUILabel") as IXUILabel); + this.mTitle = (base.transform.Find("Bg/pp/T").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/p"); + XSingleton.singleton.AddGreenLog("T = NULL?" + (transform == null).ToString(), null, null, null, null, null); + this.mInput = (base.transform.Find("Bg/p").GetComponent("XUIInput") as IXUIInput); + this.mInputText = (base.transform.Find("Bg/p/T").GetComponent("XUILabel") as IXUILabel); + this.mOk = (base.transform.Find("Bg/ok").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RenameBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RenameBehaviour.cs.meta new file mode 100644 index 00000000..0ea804d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RenameBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0cfc3e50fa6635e41beaf99da16d4309 +timeCreated: 1611403176 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs b/Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs new file mode 100644 index 00000000..3a708078 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs @@ -0,0 +1,266 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RenameDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ReNameDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XRenameDocument _Doc; + + private string mTargetName = string.Empty; + + private XRenameDocument.RenameType curType = XRenameDocument.RenameType.PLAYER_NAME_COST; + + public void ShowRenameSystem(XRenameDocument.RenameType type) + { + this.curType = type; + this.SetVisibleWithAnimation(true, null); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc = XDocuments.GetSpecificDocument(XRenameDocument.uuID); + this.SwitchRenameShow(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickClose)); + base.uiBehaviour.mOk.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickSure)); + } + + private void ClickClose(IXUISprite sprite) + { + this.SetVisibleWithAnimation(false, null); + } + + private bool ClickSure(IXUIButton btn) + { + this.mTargetName = base.uiBehaviour.mInputText.GetText(); + bool flag = string.IsNullOrEmpty(this.mTargetName) || this.mTargetName.Contains(" "); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenameInputNullString"), "fece00"); + result = false; + } + else + { + string @string = XStringDefineProxy.GetString("RenameInputDefault"); + bool flag2 = this.mTargetName.Equals(@string); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenameInputInputName"), "fece00"); + result = false; + } + else + { + bool flag3 = this.mTargetName.Length > 8; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenamePlayerSizeErr"), "fece00"); + result = false; + } + else + { + switch (this.curType) + { + case XRenameDocument.RenameType.GUILD_NAME_VOLUME: + this.SureGuildRenameVolume(); + break; + case XRenameDocument.RenameType.PLAYER_NAME_VOLUME: + this.SurePlayerRenameVolume(); + break; + case XRenameDocument.RenameType.PLAYER_NAME_COST: + this.SurePlayerRenameCost(); + break; + case XRenameDocument.RenameType.DRAGON_GUILD_NAME_VOLUME: + this.SureDragonGuildRenameVolume(); + break; + } + result = true; + } + } + } + return result; + } + + private void SureDragonGuildRenameVolume() + { + XDragonGuildDocument doc = XDragonGuildDocument.Doc; + bool flag = doc.IsInDragonGuild(); + if (flag) + { + bool flag2 = doc.Position > DragonGuildPosition.DGPOS_LEADER; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_DG_NO_PERMISSION"), "fece00"); + } + else + { + this._Doc.SendDragonGuildRenameVolume(this.mTargetName); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_DG_NOT_IN_GUILD"), "fece00"); + } + } + + private void SureGuildRenameVolume() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument.bInGuild; + if (bInGuild) + { + bool flag = specificDocument.Position > GuildPosition.GPOS_LEADER; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_GUILD_NO_PERMISSION"), "fece00"); + } + else + { + this._Doc.SendGuildRenameVolume(this.mTargetName); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WORLDBOSS_NO_GUILD"), "fece00"); + } + } + + private void SurePlayerRenameVolume() + { + this._Doc.SendPlayerConstRename(this.mTargetName, true); + } + + private void SurePlayerRenameCost() + { + uint level = XSingleton.singleton.XPlayerData.Level; + bool flag = (ulong)level < (ulong)((long)XSingleton.singleton.GetInt("RenamePlayerFreeCost")); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenamePlayerLevelLow"), "fece00"); + } + else + { + string label = (this._Doc.renameTimes < 1u) ? XStringDefineProxy.GetString("RenamePlayerSureChange", new object[] + { + this.mTargetName + }) : XStringDefineProxy.GetString("RenamePlayerSureCost", new object[] + { + this._Doc.GetRenameCost(this._Doc.renameTimes) + }); + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnSurePlayerRename)); + } + } + + private bool OnSurePlayerRename(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this._Doc.SendPlayerConstRename(this.mTargetName, false); + return true; + } + + private void SwitchRenameShow() + { + switch (this.curType) + { + case XRenameDocument.RenameType.GUILD_NAME_VOLUME: + this.ShowGuildRenameVolume(); + break; + case XRenameDocument.RenameType.PLAYER_NAME_VOLUME: + this.ShowPlayerRenameVolume(); + break; + case XRenameDocument.RenameType.PLAYER_NAME_COST: + this.ShowPlayerRenameCost(); + break; + case XRenameDocument.RenameType.DRAGON_GUILD_NAME_VOLUME: + this.ShowDragonGuildRenameVolume(); + break; + } + } + + private void ShowPlayerRenameCost() + { + base.uiBehaviour.mInput.SetText(string.Empty); + base.uiBehaviour.mInputText.SetText(XStringDefineProxy.GetString("RenameInputDefault")); + base.uiBehaviour.mTitle.SetText(XStringDefineProxy.GetString("RenamePlayerTitle")); + bool flag = this._Doc.renameTimes < 1u; + if (flag) + { + base.uiBehaviour.mMessage.SetText(XStringDefineProxy.GetString("RenamePlayerFreeCost", new object[] + { + XSingleton.singleton.GetValue("RenamePlayerFreeCost") + })); + } + else + { + base.uiBehaviour.mMessage.SetText(XStringDefineProxy.GetString("RenamePlayerCost", new object[] + { + this._Doc.GetRenameCost(this._Doc.renameTimes) + })); + } + } + + private void ShowPlayerRenameVolume() + { + base.uiBehaviour.mInput.SetText(string.Empty); + base.uiBehaviour.mInputText.SetText(XStringDefineProxy.GetString("RenameInputDefault")); + base.uiBehaviour.mTitle.SetText(XStringDefineProxy.GetString("RenamePlayerTitle")); + base.uiBehaviour.mMessage.SetText(string.Empty); + } + + private void ShowGuildRenameVolume() + { + base.uiBehaviour.mInput.SetText(string.Empty); + base.uiBehaviour.mInputText.SetText(XStringDefineProxy.GetString("RenameInputDefault")); + base.uiBehaviour.mTitle.SetText(XStringDefineProxy.GetString("RenameGuildTitle")); + base.uiBehaviour.mMessage.SetText(string.Empty); + } + + private void ShowDragonGuildRenameVolume() + { + base.uiBehaviour.mInput.SetText(string.Empty); + base.uiBehaviour.mInputText.SetText(XStringDefineProxy.GetString("RenameInputDefault")); + base.uiBehaviour.mTitle.SetText(XStringDefineProxy.GetString("RenameDragonGuildTitle")); + base.uiBehaviour.mMessage.SetText(string.Empty); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs.meta new file mode 100644 index 00000000..ddaea421 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RenameDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9357bd29914fbb94cbacd6f1ab0469ca +timeCreated: 1611404150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs b/Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs new file mode 100644 index 00000000..06d5b54e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs @@ -0,0 +1,10 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class ReportMsg : LoopItemData + { + public string content; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs.meta new file mode 100644 index 00000000..0f9502c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReportMsg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 538063ee410954c44bd95d927dd58cce +timeCreated: 1611403711 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ReportNode.cs b/Client/Assets/Scripts/XMainClient/UI/ReportNode.cs new file mode 100644 index 00000000..441dfac9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReportNode.cs @@ -0,0 +1,19 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class ReportNode + { + public GuildTransfer.RowData row = new GuildTransfer.RowData(); + + public string up; + + public string mid; + + public string btm; + + public GCFZhanChBriefInfo info; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ReportNode.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ReportNode.cs.meta new file mode 100644 index 00000000..32c88f83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReportNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 798a414bb0b2f094e878e48d20204996 +timeCreated: 1611403986 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RequestBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/RequestBehaviour.cs new file mode 100644 index 00000000..268cbb0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RequestBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class RequestBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public IXUIButton m_ClearBtn; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/List").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/List/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ClearBtn = (base.transform.Find("Bg/ClearBtn").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RequestBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RequestBehaviour.cs.meta new file mode 100644 index 00000000..c45d6ba8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RequestBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1727e52b9b1efa74baca7279b279366f +timeCreated: 1611403292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs b/Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs new file mode 100644 index 00000000..9f507bb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs @@ -0,0 +1,114 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RequestDlg : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "Guild/GuildCollect/RequestDlg"; + } + } + + private XRequestDocument _doc; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XRequestDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DesWrapListUpdated)); + base.uiBehaviour.m_ClearBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClearBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.QueryRequestList(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public void Refresh(bool resetScrollPos = true) + { + base.uiBehaviour.m_WrapContent.SetContentCount(this._doc.List.Count, false); + if (resetScrollPos) + { + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + + private void DesWrapListUpdated(Transform t, int index) + { + PartyExchangeItemInfo partyExchangeItemInfo = this._doc.List[index]; + IXUISprite ixuisprite = t.Find("Head").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Prof").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("YesBtn").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("NoBtn").GetComponent("XUIButton") as IXUIButton; + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon((int)partyExchangeItemInfo.profession_id); + ixuilabel.SetText(partyExchangeItemInfo.name); + ixuilabel2.SetText(partyExchangeItemInfo.level.ToString()); + ixuilabel3.SetText(XSingleton.singleton.GetProfName((int)partyExchangeItemInfo.profession_id)); + ixuilabel4.SetText(XSingleton.singleton.TimeAccFormatString((int)partyExchangeItemInfo.time, 3, 0) + XStringDefineProxy.GetString("AGO")); + ixuibutton.ID = partyExchangeItemInfo.role_id; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnYesBtnClick)); + ixuibutton2.ID = partyExchangeItemInfo.role_id; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnNoBtnClick)); + } + + private bool OnCloseBtnClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnClearBtnClick(IXUIButton btn) + { + this._doc.ClearList(); + return true; + } + + private bool OnYesBtnClick(IXUIButton btn) + { + this._doc.QueryAcceptExchange(btn.ID); + return true; + } + + private bool OnNoBtnClick(IXUIButton btn) + { + this._doc.QueryRefuseExchange(btn.ID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs.meta new file mode 100644 index 00000000..1a69e336 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RequestDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a314f20ac555f404da6a26d47981b916 +timeCreated: 1611404259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs b/Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs new file mode 100644 index 00000000..1ce5bea6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs @@ -0,0 +1,127 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ReviveDlg : DlgBase + { + public override string fileName + { + get + { + return "Battle/ReviveDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + private XReviveDocument _doc = null; + + private XWelfareDocument _welfareDoc = null; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XReviveDocument.uuID); + this._welfareDoc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_CancelButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancelButtonClicked)); + } + + private bool OnReviveButtonClicked(IXUIButton button) + { + this._doc.SendReviveRpc(ReviveType.ReviveItem); + return true; + } + + public void ShowSpecialReviveFrame() + { + string sprite = ""; + string atlas = ""; + XBagDocument.GetItemSmallIconAndAtlas((int)this._doc.SpecialCostID, out sprite, out atlas, 0u); + string label = string.Format(XSingleton.singleton.GetString("REVIVE_COST_NOT_ENOUGH"), string.Format("{0}{1}", XLabelSymbolHelper.FormatImage(atlas, sprite), this._doc.SpecialCostCount)); + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnSpecialReviveClicked)); + } + + private bool OnSpecialReviveClicked(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + this._doc.SendReviveRpc(ReviveType.ReviveMoney); + return true; + } + + private bool OnVipReviveClicked(IXUIButton button) + { + this._doc.SendReviveRpc(ReviveType.ReviveVIP); + return true; + } + + private bool OnCancelButtonClicked(IXUIButton button) + { + this.ShowReturnFrame(); + return true; + } + + private void ShowReturnFrame() + { + XSingleton.singleton.ShowModalDialog(this._doc.LeaveSceneTip, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnReturnButtonClicked)); + } + + private bool OnReturnButtonClicked(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + this._doc.SendLeaveScene(); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_ReviveBuff.SetText(this._doc.BuffStringTip); + string strSprite = ""; + string strAtlas = ""; + int payMemberReviveLeftCount = this._welfareDoc.GetPayMemberReviveLeftCount(); + bool flag = payMemberReviveLeftCount > 0 && this._doc.CanVipRevive && this._doc.VipReviveCount > 0u; + if (flag) + { + base.uiBehaviour.m_ReviveCostIcon.SetSprite(this._welfareDoc.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Adventurer), XWelfareDocument.MEMBER_PRIVILEGE_ATLAS, false); + base.uiBehaviour.m_ReviveCost.SetText(this._doc.VipReviveCount.ToString()); + base.uiBehaviour.m_ReviveButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnVipReviveClicked)); + } + else + { + XBagDocument.GetItemSmallIconAndAtlas((int)this._doc.NormalCostID, out strSprite, out strAtlas, 0u); + base.uiBehaviour.m_ReviveCostIcon.SetSprite(strSprite, strAtlas, false); + base.uiBehaviour.m_ReviveCost.SetText(this._doc.NormalCostCount.ToString()); + base.uiBehaviour.m_ReviveButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReviveButtonClicked)); + } + base.uiBehaviour.m_ReviveLeftTime.SetText(XStringDefineProxy.GetString("LEFT_REVIVE_COUNT", new object[] + { + this._doc.ReviveMaxTime - this._doc.ReviveUsedTime, + this._doc.ReviveMaxTime + })); + base.uiBehaviour.m_ReviveFrameTween.PlayTween(true, -1f); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs.meta new file mode 100644 index 00000000..f681ae43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReviveDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80f60810c8177d6428784fa6df1be9d2 +timeCreated: 1611404035 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs new file mode 100644 index 00000000..e3c8f0c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class ReviveDlgBehaviour : DlgBehaviourBase + { + public Transform m_ReviveFrame; + + public IXUITweenTool m_ReviveFrameTween; + + public IXUIButton m_ReviveButton; + + public IXUIButton m_CancelButton; + + public IXUILabel m_ReviveCost; + + public IXUISprite m_ReviveCostIcon; + + public IXUILabel m_ReviveBuff; + + public IXUILabel m_ReviveLeftTime; + + private void Awake() + { + this.m_ReviveFrame = base.transform.Find("Frame/ReviveFrame"); + this.m_ReviveFrameTween = (this.m_ReviveFrame.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_ReviveButton = (this.m_ReviveFrame.Find("Revive").GetComponent("XUIButton") as IXUIButton); + this.m_CancelButton = (this.m_ReviveFrame.Find("Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_ReviveCost = (this.m_ReviveFrame.Find("Revive/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveCostIcon = (this.m_ReviveFrame.Find("Revive/Cost/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_ReviveBuff = (this.m_ReviveFrame.Find("Buff").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveLeftTime = (this.m_ReviveFrame.Find("Revive/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveFrame.gameObject.SetActive(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs.meta new file mode 100644 index 00000000..b30072ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ReviveDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8d11dee2567c4f44998fbd0a726831e6 +timeCreated: 1611404103 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RewardSystemDlg.cs b/Client/Assets/Scripts/XMainClient/UI/RewardSystemDlg.cs new file mode 100644 index 00000000..0d7f8c6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RewardSystemDlg.cs @@ -0,0 +1,136 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RewardSystemDlg : TabDlgBase + { + public override string fileName + { + get + { + return "GameSystem/RewardDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + protected override bool bHorizontal + { + get + { + return false; + } + } + + public XAchieveView _AchieveView; + + public XTargetRewardView _TargetRewardView; + + public XRewardLevelView _LevelRewardView; + + public XServerActivityView _ServerActivityView; + + public XDragonRwdHandler _DragonView; + + private Transform _bg; + + public GameObject m_AchievementPanel; + + public GameObject m_TargetRewardPanel; + + public GameObject m_LevelRewardPanel; + + public GameObject m_ServerActivePanel; + + public GameObject m_dragonPanel; + + private GameObject _sharePanel; + + private WeekShareRewardHandler _shareHandler; + + protected override void Init() + { + base.Init(); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_Reward); + } + + protected override void OnLoad() + { + base.OnLoad(); + this._bg = base.uiBehaviour.transform.Find("Bg"); + this.m_AchievementPanel = base.uiBehaviour.transform.Find("Bg/AchievementFrame").gameObject; + this.m_AchievementPanel.SetActive(false); + this.m_TargetRewardPanel = base.uiBehaviour.transform.Find("Bg/TargetReward").gameObject; + this.m_TargetRewardPanel.SetActive(false); + this.m_LevelRewardPanel = base.uiBehaviour.transform.Find("Bg/LevelFrame").gameObject; + this.m_LevelRewardPanel.SetActive(false); + this.m_ServerActivePanel = base.uiBehaviour.transform.Find("Bg/ServerActivityFrame").gameObject; + this.m_ServerActivePanel.SetActive(false); + this._sharePanel = base.uiBehaviour.transform.Find("Bg/ShareFrame").gameObject; + this._sharePanel.SetActive(false); + this.m_dragonPanel = base.uiBehaviour.transform.Find("Bg/DragonFrame").gameObject; + this.m_dragonPanel.SetActive(false); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._AchieveView); + DlgHandlerBase.EnsureUnload(ref this._TargetRewardView); + DlgHandlerBase.EnsureUnload(ref this._ServerActivityView); + DlgHandlerBase.EnsureUnload(ref this._LevelRewardView); + DlgHandlerBase.EnsureUnload(ref this._shareHandler); + DlgHandlerBase.EnsureUnload(ref this._DragonView); + base.OnUnload(); + } + + public override void SetupHandlers(XSysDefine sys) + { + XSysDefine xsysDefine = sys; + if (xsysDefine <= XSysDefine.XSys_WeekShareReward) + { + if (xsysDefine == XSysDefine.XSys_ServerActivity) + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._ServerActivityView, this.m_ServerActivePanel, this, true)); + return; + } + if (xsysDefine == XSysDefine.XSys_LevelReward) + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._LevelRewardView, this.m_LevelRewardPanel, this, true)); + return; + } + if (xsysDefine == XSysDefine.XSys_WeekShareReward) + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._shareHandler, this._sharePanel, this, true)); + return; + } + } + else + { + if (xsysDefine == XSysDefine.XSys_Design_Achieve) + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._AchieveView, this.m_AchievementPanel, this, true)); + return; + } + if (xsysDefine == XSysDefine.XSys_Reward_Dragon) + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._DragonView, this.m_dragonPanel, this, true)); + return; + } + if (xsysDefine == XSysDefine.XSys_Reward_Target) + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._TargetRewardView, this.m_TargetRewardPanel, this, true)); + return; + } + } + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RewardSystemDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RewardSystemDlg.cs.meta new file mode 100644 index 00000000..1b353a0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RewardSystemDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 834fc5cb37d85ea4fb2a89f6be320a36 +timeCreated: 1611404044 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RewdAnimBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/RewdAnimBehaviour.cs new file mode 100644 index 00000000..211149f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RewdAnimBehaviour.cs @@ -0,0 +1,30 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class RewdAnimBehaviour : DlgBehaviourBase + { + public GameObject m_objTmp; + + public IXUIButton m_btnok; + + public IXUITweenTool m_tweenbg; + + public IXUITweenTool m_tweentitle; + + public IXUILabel m_TitleLabel; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/ItemTpl"); + this.m_btnok = (base.transform.Find("OK").GetComponent("XUIButton") as IXUIButton); + this.m_tweenbg = (base.transform.Find("CriticalConfirm/P").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_tweentitle = (base.transform.Find("CriticalConfirm/P/titleLabel").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_TitleLabel = (base.transform.Find("CriticalConfirm/P/titleLabel").GetComponent("XUILabel") as IXUILabel); + this.m_objTmp = base.transform.Find("items/tmp").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RewdAnimBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RewdAnimBehaviour.cs.meta new file mode 100644 index 00000000..01ed04ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RewdAnimBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0215980f62b06c4389559c51084da81 +timeCreated: 1611404485 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs b/Client/Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs new file mode 100644 index 00000000..a5276b22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs @@ -0,0 +1,261 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class RewdAnimDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/RewdAnimDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool isHideTutorial + { + get + { + return true; + } + } + + public override bool isPopup + { + get + { + return true; + } + } + + private int[] m_to_x = new int[10]; + + private int[] m_from_x = new int[10]; + + private bool ani_start = false; + + private float ani_duration = 1f; + + private float ani_time = 0f; + + private int items_cnt = 1; + + private int ani_sped = 1; + + private Vector3 items_pos; + + private List m_items; + + private List m_xitems; + + private List m_objlist = new List(); + + private Action m_delClose; + + private XUIPool m_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_btnok.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOKClick)); + } + + protected override void Init() + { + base.Init(); + this.m_pool.SetupPool(this.m_uiBehaviour.m_objTmp.transform.parent.gameObject, this.m_uiBehaviour.m_objTmp, 3u, true); + } + + public void Show(List items, Action onclose) + { + List list = new List(); + for (int i = 0; i < items.Count; i++) + { + list.Add(new ItemBrief + { + itemID = items[i].ItemID, + itemCount = items[i].ItemCount + }); + } + this.Show(list, onclose); + this.m_xitems = items; + } + + public void Show(List items, List xitems, Action onClose) + { + List list = new List(); + for (int i = 0; i < items.Count; i++) + { + list.Add(new ItemBrief + { + itemID = items[i].itemID, + itemCount = items[i].itemCount + }); + } + for (int j = 0; j < xitems.Count; j++) + { + list.Add(new ItemBrief + { + itemID = xitems[j].ItemID, + itemCount = xitems[j].ItemCount + }); + } + this.Show(list, onClose); + this.m_xitems = xitems; + } + + public void Show(List items, Action onClose) + { + int num = 10; + bool flag = items.Count > num; + if (flag) + { + items.RemoveRange(num, items.Count - num); + } + this.m_delClose = onClose; + bool flag2 = this.m_xitems != null; + if (flag2) + { + this.m_xitems.Clear(); + } + this.m_items = items; + this.SetVisibleWithAnimation(true, null); + } + + public void ShowByTitle(List items, string title, Action onClose) + { + this.Show(items, onClose); + base.uiBehaviour.m_TitleLabel.SetText(title); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_tweenbg.ResetTween(true); + base.uiBehaviour.m_tweentitle.ResetTween(true); + base.uiBehaviour.m_tweenbg.PlayTween(true, -1f); + base.uiBehaviour.m_tweentitle.PlayTween(true, -1f); + this.m_pool.ReturnAll(false); + this.m_objlist.Clear(); + this.OnTweenEnd(null); + this.items_cnt = this.m_items.Count; + for (int i = 0; i < this.items_cnt; i++) + { + GameObject gameObject = this.m_pool.FetchGameObject(false); + this.m_objlist.Add(gameObject); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.m_items[i].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)this.m_items[i].itemID, (int)this.m_items[i].itemCount, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this.m_items[i].itemID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowTips)); + int num = (this.items_cnt % 2 == 0) ? ((int)((float)i - (float)this.items_cnt / 2f) * 100 + 50) : ((int)((float)i - (float)(this.items_cnt - 1) / 2f) * 100); + this.m_to_x[i] = num; + int num2 = (this.items_cnt % 2 == 0) ? ((int)(-(int)((float)this.items_cnt / 2f)) * 100 + 50) : ((int)((float)(-(float)(this.items_cnt - 1)) / 2f) * 100); + this.m_from_x[i] = 0; + this.items_pos = new Vector3(0f, 14f, 0f); + gameObject.transform.localPosition = this.items_pos; + } + } + + private void ShowTips(IXUISprite spr) + { + bool flag = this.m_xitems != null; + if (flag) + { + for (int i = 0; i < this.m_xitems.Count; i++) + { + bool flag2 = (ulong)this.m_xitems[i].ItemID == spr.ID; + if (flag2) + { + XItem mainItem = XBagDocument.MakeXItem(this.m_xitems[i]); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, false, 0u); + return; + } + } + } + bool flag3 = this.m_items != null; + if (flag3) + { + for (int j = 0; j < this.m_items.Count; j++) + { + bool flag4 = (ulong)this.m_items[j].itemID == spr.ID; + if (flag4) + { + XItem mainItem2 = XBagDocument.MakeXItem((int)this.m_items[j].itemID, this.m_items[j].isbind); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem2, spr, false, 0u); + return; + } + } + } + XItem mainItem3 = XBagDocument.MakeXItem((int)spr.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem3, spr, false, 0u); + } + + public override void OnUpdate() + { + bool flag = this.ani_start; + if (flag) + { + bool flag2 = Time.realtimeSinceStartup - this.ani_time >= this.ani_duration; + if (flag2) + { + this.ani_start = false; + } + else + { + for (int i = 0; i < this.items_cnt; i++) + { + this.items_pos.x = Mathf.Lerp((float)this.m_from_x[i], (float)this.m_to_x[i], (float)this.ani_sped * (Time.realtimeSinceStartup - this.ani_time / this.ani_duration)); + bool flag3 = this.m_objlist.Count > i && this.m_objlist[i] != null; + if (flag3) + { + this.m_objlist[i].transform.localPosition = this.items_pos; + } + } + } + } + base.OnUpdate(); + } + + private void OnTweenEnd(IXUITweenTool tween) + { + this.ani_time = Time.realtimeSinceStartup; + this.ani_duration = 1f; + this.ani_start = true; + this.ani_sped = 6; + } + + private bool OnOKClick(IXUIButton btn) + { + this.SetVisible(false, true); + bool flag = this.m_delClose != null; + if (flag) + { + this.m_delClose(); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs.meta new file mode 100644 index 00000000..7ce95521 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RewdAnimDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62bf5131901edcf46948d59564e2beaa +timeCreated: 1611403841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs b/Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs new file mode 100644 index 00000000..20ab5848 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + public enum RoundFlag + { + EightToFour = 1, + FourToTwo, + TwoToOne + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs.meta b/Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs.meta new file mode 100644 index 00000000..f25fa442 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/RoundFlag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c2b53649d33e6d47b8af6758e037987 +timeCreated: 1611403801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareBehaviour.cs new file mode 100644 index 00000000..a9ccadf6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareBehaviour.cs @@ -0,0 +1,198 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ScreenShotShareBehaviour : DlgBehaviourBase + { + public GameObject mCharFrame; + + public IXUITweenTool mQQPlayTween; + + public IXUITweenTool mWCPlayTween; + + public IXUISprite mQQFrame; + + public IXUISprite mWeChatFrame; + + public IXUIButton mQQBtn1; + + public IXUIButton mQQBtn2; + + public IXUIButton mWeChatBtn1; + + public IXUIButton mWeChatBtn2; + + public IXUIButton mDoScreenShot; + + public IUIDummy mSnapShot; + + public IXUIButton mClose; + + public GameObject mShareFrame; + + public IXUISprite mKacha; + + public IXUISprite mKachaFrame; + + public IXUIButton mReqShareBtn; + + public IXUIButton mSnapShotAgain; + + public IXUITweenTool mPlayTween; + + public IXUITweenTool mPicFramePlayTween; + + public IXUITexture mCaptureTexture; + + public GameObject mScaleDoing; + + public IXUISprite mSnapRoot; + + public IXUISprite mQQBackClick; + + public IXUISprite mWeChatBackClick; + + public IXUIButton mReqSave; + + public IXUISprite mModeSp; + + public IXUISprite mModeSelect; + + public IXUISprite mModeBack; + + public IXUISprite mDanceSp; + + public IXUISprite mDanceSelect; + + public IXUISprite mDanceBack; + + public IXUIPanel mDanceBackSV; + + public IXUIList mDanceBackList; + + public IXUISprite mEffectsSp; + + public IXUISprite mEffectsSelect; + + public IXUISprite mEffectsBack; + + public IXUISprite mEffectsMore; + + public IXUISprite mEffectsRedpoint; + + public IXUISprite mUnlockFrame; + + public IXUISprite mUnlockCondition; + + public IXUISprite mUnlockOption; + + public IXUISprite mUnlockBack; + + public IXUISprite mUnlockEffectWindow; + + public Transform mEffectParent; + + public IXUISlider mZoomSlider; + + public GameObject mZoom; + + public IXUISprite mThumb; + + public GameObject mLogo; + + public GameObject mLogoQQ; + + public GameObject mLogoWC; + + public IXUILabel mPlayerName; + + public IXUILabel mServerName; + + public IXUISprite mModeBg; + + public IXUISprite mDanceBg; + + public IXUISprite mEffectBg; + + public XUIPool mModePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool mDancePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool mEffectPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool mEffectListPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool mConditionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.mCharFrame = base.transform.Find("CharacterFrame").gameObject; + this.mShareFrame = base.transform.Find("Bg/sharebutton").gameObject; + this.mQQFrame = (base.transform.Find("Bg/sharebutton/QQ").GetComponent("XUISprite") as IXUISprite); + this.mQQPlayTween = (base.transform.Find("Bg/sharebutton/QQ").GetComponent("XUIPlayTween") as IXUITweenTool); + this.mWCPlayTween = (base.transform.Find("Bg/sharebutton/Wc").GetComponent("XUIPlayTween") as IXUITweenTool); + this.mWeChatFrame = (base.transform.Find("Bg/sharebutton/Wc").GetComponent("XUISprite") as IXUISprite); + this.mQQBtn1 = (base.transform.Find("Bg/sharebutton/QQ/QQ1").GetComponent("XUIButton") as IXUIButton); + this.mQQBtn2 = (base.transform.Find("Bg/sharebutton/QQ/QQ2").GetComponent("XUIButton") as IXUIButton); + this.mWeChatBtn1 = (base.transform.Find("Bg/sharebutton/Wc/Wc1").GetComponent("XUIButton") as IXUIButton); + this.mWeChatBtn2 = (base.transform.Find("Bg/sharebutton/Wc/Wc2").GetComponent("XUIButton") as IXUIButton); + this.mDoScreenShot = (base.transform.Find("Bg/kacha/Ok").GetComponent("XUIButton") as IXUIButton); + this.mSnapShot = (base.transform.Find("CharacterFrame/SnapRoot/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.mKachaFrame = (base.transform.Find("Bg/kacha").GetComponent("XUISprite") as IXUISprite); + this.mClose = (base.transform.Find("Bg/kacha/Close").GetComponent("XUIButton") as IXUIButton); + this.mKacha = (base.transform.Find("Bg/kacha/kacha").GetComponent("XUISprite") as IXUISprite); + this.mReqShareBtn = (base.transform.Find("Bg/sharebutton/SwitchAccount").GetComponent("XUIButton") as IXUIButton); + this.mSnapShotAgain = (base.transform.Find("Bg/sharebutton/Again").GetComponent("XUIButton") as IXUIButton); + this.mPlayTween = (base.transform.Find("Bg/kacha/kacha").GetComponent("XUIPlayTween") as IXUITweenTool); + this.mPicFramePlayTween = (base.transform.Find("Bg/sharebutton").GetComponent("XUIPlayTween") as IXUITweenTool); + this.mCaptureTexture = (base.transform.Find("Bg/sharebutton").GetComponent("XUITexture") as IXUITexture); + this.mScaleDoing = base.transform.Find("Bg/kacha/Ok/doing").gameObject; + this.mSnapRoot = (base.transform.Find("CharacterFrame/SnapRoot").GetComponent("XUISprite") as IXUISprite); + this.mQQBackClick = (base.transform.Find("Bg/sharebutton/QQ/back").GetComponent("XUISprite") as IXUISprite); + this.mWeChatBackClick = (base.transform.Find("Bg/sharebutton/Wc/back").GetComponent("XUISprite") as IXUISprite); + this.mReqSave = (base.transform.Find("Bg/sharebutton/Save").GetComponent("XUIButton") as IXUIButton); + this.mEffectParent = base.transform.Find("CharacterFrame/effect"); + this.mModeSp = (base.transform.Find("Bg/kacha/Mode").GetComponent("XUISprite") as IXUISprite); + this.mModeSelect = (base.transform.Find("Bg/kacha/Mode/Select").GetComponent("XUISprite") as IXUISprite); + this.mModeBack = (base.transform.Find("Bg/kacha/Mode/Select/bar").GetComponent("XUISprite") as IXUISprite); + this.mDanceSp = (base.transform.Find("Bg/kacha/Dance").GetComponent("XUISprite") as IXUISprite); + this.mDanceSelect = (base.transform.Find("Bg/kacha/Dance/Select").GetComponent("XUISprite") as IXUISprite); + this.mDanceBack = (base.transform.Find("Bg/kacha/Dance/Select/bar").GetComponent("XUISprite") as IXUISprite); + this.mDanceBackSV = (base.transform.Find("Bg/kacha/Dance/Select/option").GetComponent("XUIPanel") as IXUIPanel); + this.mDanceBackList = (base.transform.Find("Bg/kacha/Dance/Select/option/grid").GetComponent("XUIList") as IXUIList); + this.mEffectsSp = (base.transform.Find("Bg/kacha/Effects").GetComponent("XUISprite") as IXUISprite); + this.mEffectsSelect = (base.transform.Find("Bg/kacha/Effects/Select").GetComponent("XUISprite") as IXUISprite); + this.mEffectsBack = (base.transform.Find("Bg/kacha/Effects/Select/bar").GetComponent("XUISprite") as IXUISprite); + this.mEffectsMore = (base.transform.Find("Bg/kacha/Effects/Select/option/more").GetComponent("XUISprite") as IXUISprite); + this.mEffectsRedpoint = (base.transform.Find("Bg/kacha/Effects/Select/option/more/redpoint").GetComponent("XUISprite") as IXUISprite); + this.mUnlockFrame = (base.transform.Find("Bg/kacha/unlock").GetComponent("XUISprite") as IXUISprite); + this.mUnlockOption = (base.transform.Find("Bg/kacha/unlock/unlock/option1").GetComponent("XUISprite") as IXUISprite); + this.mUnlockCondition = (base.transform.Find("Bg/kacha/unlock/condition/condition1").GetComponent("XUISprite") as IXUISprite); + this.mUnlockBack = (base.transform.Find("Bg/kacha/unlock/back").GetComponent("XUISprite") as IXUISprite); + this.mUnlockEffectWindow = (base.transform.Find("Bg/kacha/unlock/window").GetComponent("XUISprite") as IXUISprite); + this.mZoomSlider = (base.transform.Find("Bg/kacha/bar/bar").GetComponent("XUISlider") as IXUISlider); + this.mThumb = (base.transform.Find("Bg/kacha/Mode").GetComponent("XUISprite") as IXUISprite); + this.mZoom = base.transform.Find("Bg/kacha/bar").gameObject; + this.mLogo = base.transform.Find("Bg/kacha/Logo").gameObject; + this.mLogoQQ = base.transform.Find("Bg/kacha/Logo/LogoQQ").gameObject; + this.mLogoWC = base.transform.Find("Bg/kacha/Logo/LogoWC").gameObject; + this.mPlayerName = (base.transform.Find("Bg/kacha/Logo/label/name").GetComponent("XUILabel") as IXUILabel); + this.mServerName = (base.transform.Find("Bg/kacha/Logo/label/fuwuqi").GetComponent("XUILabel") as IXUILabel); + this.mModeBg = (base.transform.Find("Bg/kacha/Mode/Select/bg").GetComponent("XUISprite") as IXUISprite); + this.mModeBg.ID = 1UL; + this.mDanceBg = (base.transform.Find("Bg/kacha/Dance/Select/bg").GetComponent("XUISprite") as IXUISprite); + this.mDanceBg.ID = 2UL; + this.mEffectBg = (base.transform.Find("Bg/kacha/Effects/Select/bg").GetComponent("XUISprite") as IXUISprite); + this.mEffectBg.ID = 3UL; + this.mModePool.SetupPool(this.mModeSelect.gameObject, this.mModeSelect.transform.Find("option").gameObject, 5u, false); + this.mDancePool.SetupPool(this.mDanceBackList.gameObject, this.mDanceBackList.gameObject.transform.Find("option1").gameObject, 5u, false); + this.mEffectPool.SetupPool(this.mEffectsSelect.transform.Find("option").gameObject, this.mEffectsSelect.transform.Find("option/option1").gameObject, 5u, false); + this.mEffectListPool.SetupPool(this.mUnlockOption.parent.gameObject, this.mUnlockOption.gameObject, 5u, false); + this.mConditionPool.SetupPool(this.mUnlockCondition.parent.gameObject, this.mUnlockCondition.gameObject, 5u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareBehaviour.cs.meta new file mode 100644 index 00000000..ed604dfc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1806ea9d97939749bdf70afe47a381a +timeCreated: 1611404253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareView.cs b/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareView.cs new file mode 100644 index 00000000..2d284520 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareView.cs @@ -0,0 +1,1116 @@ +using System; +using System.Collections.Generic; +using System.IO; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class ScreenShotShareView : DlgBase + { + public override string fileName + { + get + { + return "Common/Share"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override int group + { + get + { + return 1; + } + } + + private XScreenShotShareDocument _doc = null; + + private int _share_count = 0; + + private uint _dance_timer_token = 0u; + + private uint _check_pic_token = 0u; + + private XFx _playing_fx = null; + + private float _max_dist = 9f; + + private float _min_dist = 3f; + + private HashSet _check_index = new HashSet(); + + private List _mode_go = new List(); + + private List _mode_effectgo = new List(); + + private string _saved_file_path = ""; + + private int _dance_num = 0; + + private XFx fx; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + this._doc.ScreenShotView = this; + string value = XSingleton.singleton.GetValue("CameraValue"); + string[] array = value.Split(new char[] + { + '|' + }); + this._min_dist = float.Parse(array[0]); + this._max_dist = float.Parse(array[1]); + this.fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_Share", base.uiBehaviour.mEffectParent, false); + this.InitLeftMenu(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.mQQBtn1.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQQShareSession)); + base.uiBehaviour.mQQBtn2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQQShareQZone)); + base.uiBehaviour.mWeChatBtn1.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWeChatShareSession)); + base.uiBehaviour.mWeChatBtn2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWeChatShareTimeLine)); + base.uiBehaviour.mClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.mDoScreenShot.RegisterClickEventHandler(new ButtonClickEventHandler(this.CaptureScreenShot)); + base.uiBehaviour.mReqShareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ReqShare)); + base.uiBehaviour.mSnapShotAgain.RegisterClickEventHandler(new ButtonClickEventHandler(this.ReScreenShot)); + base.uiBehaviour.mQQBackClick.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseShare)); + base.uiBehaviour.mWeChatBackClick.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseShare)); + base.uiBehaviour.mSnapRoot.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnCharacterWindowDrag)); + base.uiBehaviour.mReqSave.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSavePic)); + base.uiBehaviour.mModeSp.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowMode)); + base.uiBehaviour.mDanceSp.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowAnim)); + base.uiBehaviour.mEffectsSp.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowFx)); + base.uiBehaviour.mEffectsMore.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowMoreFx)); + base.uiBehaviour.mUnlockBack.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHideUnlock)); + base.uiBehaviour.mZoomSlider.RegisterValueChangeEventHandler(new SliderValueChangeEventHandler(this.OnZoomSliderChanged)); + base.uiBehaviour.mModeBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBg)); + base.uiBehaviour.mDanceBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBg)); + base.uiBehaviour.mEffectBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickBg)); + base.RegisterEvent(); + } + + protected override void OnShow() + { + this.ShowCaptureFrame(); + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType != SceneType.SCENE_FAMILYGARDEN) + { + if (sceneType != SceneType.SCENE_WEDDING) + { + if (sceneType == SceneType.SCENE_LEISURE) + { + bool flag = DlgBase.singleton._yorozuyaHandler != null; + if (flag) + { + DlgBase.singleton._yorozuyaHandler.SetVisible(false); + } + } + } + else + { + bool flag2 = DlgBase.singleton._WeddingHandler != null; + if (flag2) + { + DlgBase.singleton._WeddingHandler.SetVisible(false); + } + } + } + else + { + bool flag3 = DlgBase.singleton._HomeHandler != null; + if (flag3) + { + DlgBase.singleton._HomeHandler.SetVisible(false); + } + } + this.OnReqEffect(); + base.uiBehaviour.mDoScreenShot.SetAudioClip("Audio/UI/Cam_photo"); + base.uiBehaviour.mZoomSlider.Value = (XSingleton.singleton.GameCamera.TargetOffset - this._min_dist) / (this._max_dist - this._min_dist); + this.InitDance(); + XSingleton.singleton.shareCallbackType = ShareCallBackType.WeekShare; + } + + protected override void OnHide() + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.StackRefresh(); + } + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType != SceneType.SCENE_FAMILYGARDEN) + { + if (sceneType != SceneType.SCENE_WEDDING) + { + if (sceneType == SceneType.SCENE_LEISURE) + { + bool flag2 = DlgBase.singleton._yorozuyaHandler != null; + if (flag2) + { + DlgBase.singleton._yorozuyaHandler.SetVisible(true); + } + } + } + else + { + bool flag3 = DlgBase.singleton._WeddingHandler != null; + if (flag3) + { + DlgBase.singleton._WeddingHandler.SetVisible(true); + } + } + } + else + { + bool flag4 = DlgBase.singleton._HomeHandler != null; + if (flag4) + { + DlgBase.singleton._HomeHandler.SetVisible(true); + } + } + XSingleton.singleton.KillTimer(this._dance_timer_token); + this._dance_timer_token = 0u; + XSingleton.singleton.KillTimer(this._check_pic_token); + this._check_pic_token = 0u; + this.OnResetEntityRender(); + this.OnStopPlayingFX(); + for (int i = 0; i < this._mode_go.Count; i++) + { + GameObject gameObject = this._mode_go[i]; + IXUICheckBox ixuicheckBox = gameObject.transform.Find("option1/Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.bChecked = true; + } + for (int j = 0; j < this._mode_effectgo.Count; j++) + { + GameObject gameObject2 = this._mode_effectgo[j]; + IXUICheckBox ixuicheckBox2 = gameObject2.transform.Find("Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.bChecked = false; + } + XSingleton.singleton.GameCamera.TargetOffset = XSingleton.singleton.GameCamera.DefaultOffset; + XSingleton.singleton.MakeEffectEnable(XPostEffect.GausBlur, false); + base.uiBehaviour.mCaptureTexture.SetRuntimeTex(null, true); + } + + protected override void OnUnload() + { + bool flag = this.fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.fx, true); + this.fx = null; + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + XSingleton.singleton.EnableMainDummy(true, base.uiBehaviour.mSnapShot); + } + + public void ShowMainView() + { + base.uiBehaviour.mCharFrame.SetActive(false); + base.uiBehaviour.mUnlockFrame.SetVisible(false); + base.uiBehaviour.mModeSelect.SetVisible(false); + base.uiBehaviour.mDanceSelect.SetVisible(false); + base.uiBehaviour.mEffectsSelect.SetVisible(false); + } + + public void ShowCharView() + { + base.uiBehaviour.mCharFrame.SetActive(true); + base.uiBehaviour.mUnlockFrame.SetVisible(false); + base.uiBehaviour.mModeSelect.SetVisible(false); + base.uiBehaviour.mDanceSelect.SetVisible(false); + base.uiBehaviour.mEffectsSelect.SetVisible(false); + XSingleton.singleton.EnableMainDummy(true, base.uiBehaviour.mSnapShot); + } + + private void ShowCaptureFrame() + { + base.uiBehaviour.mCaptureTexture.SetRuntimeTex(null, true); + base.uiBehaviour.mDoScreenShot.SetVisible(true); + base.uiBehaviour.mKacha.SetVisible(false); + base.uiBehaviour.mShareFrame.SetActive(false); + base.uiBehaviour.mClose.SetVisible(true); + base.uiBehaviour.mScaleDoing.SetActive(true); + base.uiBehaviour.mLogo.SetActive(false); + XSingleton.singleton.MakeEffectEnable(XPostEffect.GausBlur, false); + base.uiBehaviour.mSnapRoot.transform.localPosition = new Vector3(base.uiBehaviour.mSnapRoot.transform.localPosition.x, base.uiBehaviour.mSnapRoot.transform.localPosition.y, 0f); + } + + public void IOS3DTouchScreenShot() + { + base.uiBehaviour.mDoScreenShot.SetVisible(false); + base.uiBehaviour.mClose.SetVisible(false); + base.uiBehaviour.mScaleDoing.SetActive(false); + base.uiBehaviour.mModeSp.SetVisible(false); + base.uiBehaviour.mDanceSp.SetVisible(false); + base.uiBehaviour.mEffectsSp.SetVisible(false); + base.uiBehaviour.mZoom.SetActive(false); + base.uiBehaviour.mZoom.SetActive(true); + base.uiBehaviour.mLogo.SetActive(true); + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + base.uiBehaviour.mLogoQQ.SetActive(true); + base.uiBehaviour.mLogoWC.SetActive(false); + } + else + { + base.uiBehaviour.mLogoQQ.SetActive(false); + base.uiBehaviour.mLogoWC.SetActive(true); + } + base.uiBehaviour.mPlayerName.SetText(XSingleton.singleton.XPlayerData.Name); + base.uiBehaviour.mServerName.SetText(XSingleton.singleton.Server); + DlgBase.singleton.SetMaqueeSwitch(false); + XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(XSingleton.singleton.CaptureScreenshot), null); + XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(this.PlayScreenFx), null); + } + + public bool CaptureScreenShot(IXUIButton btn) + { + base.uiBehaviour.mDoScreenShot.SetVisible(false); + base.uiBehaviour.mClose.SetVisible(false); + base.uiBehaviour.mScaleDoing.SetActive(false); + base.uiBehaviour.mModeSp.SetVisible(false); + base.uiBehaviour.mDanceSp.SetVisible(false); + base.uiBehaviour.mEffectsSp.SetVisible(false); + base.uiBehaviour.mZoom.SetActive(false); + base.uiBehaviour.mLogo.SetActive(true); + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + base.uiBehaviour.mLogoQQ.SetActive(true); + base.uiBehaviour.mLogoWC.SetActive(false); + } + else + { + base.uiBehaviour.mLogoQQ.SetActive(false); + base.uiBehaviour.mLogoWC.SetActive(true); + } + base.uiBehaviour.mPlayerName.SetText(XSingleton.singleton.XPlayerData.Name); + base.uiBehaviour.mServerName.SetText(XSingleton.singleton.Server); + DlgBase.singleton.SetMaqueeSwitch(false); + XSingleton.singleton.CaptureScreenshot(null); + XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(this.PlayScreenFx), null); + return true; + } + + public bool ReqShare(IXUIButton btn) + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + bool flag2 = XSingleton.singleton.XPlatform.CheckStatus("QQ_Installed", ""); + bool flag3 = !flag2; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_QQ_NOT_INSTALLED"), "fece00"); + return false; + } + base.uiBehaviour.mQQFrame.SetVisible(true); + base.uiBehaviour.mWeChatFrame.SetVisible(false); + base.uiBehaviour.mQQPlayTween.SetTweenGroup(0); + base.uiBehaviour.mQQPlayTween.ResetTweenByGroup(true, 0); + base.uiBehaviour.mQQPlayTween.PlayTween(true, -1f); + } + else + { + bool flag4 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag4) + { + bool flag5 = XSingleton.singleton.XPlatform.CheckStatus("Weixin_Installed", ""); + bool flag6 = !flag5; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_WECHAT_NOT_INSTALLED"), "fece00"); + return false; + } + base.uiBehaviour.mQQFrame.SetVisible(false); + base.uiBehaviour.mWeChatFrame.SetVisible(true); + base.uiBehaviour.mWCPlayTween.SetTweenGroup(0); + base.uiBehaviour.mWCPlayTween.ResetTweenByGroup(true, 0); + base.uiBehaviour.mWCPlayTween.PlayTween(true, -1f); + } + } + return true; + } + + public bool ReScreenShot(IXUIButton btn) + { + this.ShowCaptureFrame(); + return true; + } + + private void PlayScreenFx(object obj) + { + base.uiBehaviour.mKacha.SetVisible(true); + base.uiBehaviour.mPlayTween.SetTweenGroup(0); + base.uiBehaviour.mPlayTween.ResetTweenByGroup(true, 0); + base.uiBehaviour.mPlayTween.PlayTween(true, -1f); + XSingleton.singleton.SetTimer(0.4f, new XTimerMgr.ElapsedEventHandler(this.ShowShare), null); + base.uiBehaviour.mSnapRoot.transform.localPosition = new Vector3(base.uiBehaviour.mSnapRoot.transform.localPosition.x, base.uiBehaviour.mSnapRoot.transform.localPosition.y, 1000f); + this._share_count = 0; + } + + private void ShowShare(object obj) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = !File.Exists(XSingleton.singleton.FilePath); + if (flag2) + { + base.uiBehaviour.mSnapRoot.transform.localPosition = new Vector3(base.uiBehaviour.mSnapRoot.transform.localPosition.x, base.uiBehaviour.mSnapRoot.transform.localPosition.y, 0f); + this._share_count++; + bool flag3 = this._share_count > 30; + if (flag3) + { + XSingleton.singleton.ShowSystemTip("Failed", "fece00"); + } + else + { + XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.ShowShare), null); + } + } + else + { + base.uiBehaviour.mSnapRoot.transform.localPosition = new Vector3(base.uiBehaviour.mSnapRoot.transform.localPosition.x, base.uiBehaviour.mSnapRoot.transform.localPosition.y, 1000f); + base.uiBehaviour.mShareFrame.SetActive(true); + base.uiBehaviour.mDoScreenShot.SetVisible(false); + base.uiBehaviour.mQQFrame.SetVisible(false); + base.uiBehaviour.mWeChatFrame.SetVisible(false); + base.uiBehaviour.mModeSp.SetVisible(true); + base.uiBehaviour.mDanceSp.SetVisible(true); + base.uiBehaviour.mEffectsSp.SetVisible(true); + base.uiBehaviour.mZoom.SetActive(true); + base.uiBehaviour.mLogo.SetActive(false); + bool visible = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Photo_Share); + base.uiBehaviour.mReqShareBtn.SetVisible(visible); + DlgBase.singleton.SetMaqueeSwitch(true); + this.OnStopPlayingFX(); + XSingleton.singleton.MakeEffectEnable(XPostEffect.GausBlur, true); + base.uiBehaviour.mPicFramePlayTween.SetTweenGroup(0); + base.uiBehaviour.mPicFramePlayTween.ResetTweenByGroup(true, 0); + base.uiBehaviour.mPicFramePlayTween.PlayTween(true, -1f); + XSingleton.singleton.AddLog("The screen file path: ", XSingleton.singleton.FilePath, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("File exist: ", File.Exists(XSingleton.singleton.FilePath).ToString(), null, null, null, null, XDebugColor.XDebug_None); + RuntimePlatform platform = Application.platform; + if ((int)platform != 8 && (int)platform != 11) + { + byte[] array = File.ReadAllBytes(XSingleton.singleton.FilePath); + bool flag4 = array != null; + if (flag4) + { + Texture2D texture2D = new Texture2D(2, 2); + texture2D.LoadImage(array); + base.uiBehaviour.mCaptureTexture.SetRuntimeTex(texture2D, true); + } + } + else + { + byte[] array2 = File.ReadAllBytes(XSingleton.singleton.FilePath); + Texture2D texture2D2 = new Texture2D(2, 2); + bool flag5 = texture2D2.LoadImage(array2); + bool flag6 = flag5; + if (flag6) + { + base.uiBehaviour.mCaptureTexture.SetRuntimeTex(texture2D2, true); + int width = texture2D2.width; + int height = texture2D2.height; + bool flag7 = width <= 600; + if (flag7) + { + this.ShowCaptureFrame(); + } + } + else + { + bool flag8 = !flag5; + if (flag8) + { + this.ShowCaptureFrame(); + } + } + } + } + } + } + + public bool OnQQShareSession(IXUIButton btn) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.MainCityShare); + XSingleton.singleton.ShareScreen(true); + return true; + } + + public bool OnQQShareQZone(IXUIButton btn) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.MainCityShare); + XSingleton.singleton.ShareScreen(false); + return true; + } + + public bool OnWeChatShareSession(IXUIButton btn) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.MainCityShare); + XSingleton.singleton.ShareScreen(true); + return true; + } + + public bool OnWeChatShareTimeLine(IXUIButton btn) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.MainCityShare); + XSingleton.singleton.ShareScreen(false); + return true; + } + + public bool OnClose(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + public void OnCloseShare(IXUISprite sp) + { + base.uiBehaviour.mQQFrame.SetVisible(false); + base.uiBehaviour.mWeChatFrame.SetVisible(false); + } + + private bool OnDance(IXUIButton btn) + { + float num = XSingleton.singleton.SetMainAnimationGetLength(XSingleton.singleton.Player.Present.PresentLib.Dance); + XSingleton.singleton.KillTimer(this._dance_timer_token); + int @int = XSingleton.singleton.GetInt("DanceLoopCount"); + this._dance_timer_token = XSingleton.singleton.SetTimer(num * (float)@int, new XTimerMgr.ElapsedEventHandler(this.OnFinishDance), null); + return true; + } + + private void OnFinishDance(object obj) + { + XSingleton.singleton.SetMainAnimation(XSingleton.singleton.Player.Present.PresentLib.Idle); + } + + protected bool OnCharacterWindowDrag(Vector2 delta) + { + XSingleton.singleton.RotateMain(-delta.x / 2f); + return true; + } + + private void OnShowMode(IXUISprite sp) + { + bool flag = base.uiBehaviour.mModeSelect.IsVisible(); + if (flag) + { + base.uiBehaviour.mModeSelect.SetVisible(false); + } + else + { + base.uiBehaviour.mModeSelect.SetVisible(true); + } + base.uiBehaviour.mDanceSelect.SetVisible(false); + base.uiBehaviour.mEffectsSelect.SetVisible(false); + } + + private void OnShowAnim(IXUISprite sp) + { + bool flag = this._dance_num == 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_NO_DANCE_ANIM"), "fece00"); + } + else + { + base.uiBehaviour.mModeSelect.SetVisible(false); + bool flag2 = base.uiBehaviour.mDanceSelect.IsVisible(); + if (flag2) + { + base.uiBehaviour.mDanceSelect.SetVisible(false); + } + else + { + base.uiBehaviour.mDanceSelect.SetVisible(true); + } + base.uiBehaviour.mEffectsSelect.SetVisible(false); + } + } + + private void OnShowFx(IXUISprite sp) + { + base.uiBehaviour.mModeSelect.SetVisible(false); + base.uiBehaviour.mDanceSelect.SetVisible(false); + bool flag = base.uiBehaviour.mEffectsSelect.IsVisible(); + if (flag) + { + base.uiBehaviour.mEffectsSelect.SetVisible(false); + } + else + { + base.uiBehaviour.mEffectsSelect.SetVisible(true); + } + } + + private void OnShowMoreFx(IXUISprite sp) + { + base.uiBehaviour.mEffectsSelect.SetVisible(false); + bool flag = base.uiBehaviour.mUnlockFrame.IsVisible(); + if (!flag) + { + int num = this.OnShowMoreFxFrame(); + bool flag2 = num > 0; + if (flag2) + { + base.uiBehaviour.mUnlockFrame.SetVisible(true); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_NO_MORE_EFFECTS"), "fece00"); + } + } + } + + private int OnShowMoreFxFrame() + { + this.OnStopPlayingFX(); + base.uiBehaviour.mEffectListPool.ReturnAll(false); + uint num = 0u; + int num2 = 0; + for (int i = 0; i < this._doc.EffectAllListId.Count; i++) + { + bool flag = this._doc.EffectListId.Contains(this._doc.EffectAllListId[i]); + if (!flag) + { + bool flag2 = num == 0u; + if (flag2) + { + num = this._doc.EffectAllListId[i]; + } + List rowDataById = this._doc.GetRowDataById(this._doc.EffectAllListId[i]); + GameObject gameObject = base.uiBehaviour.mEffectListPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.mEffectListPool.TplPos.x, base.uiBehaviour.mEffectListPool.TplPos.y - (float)(num2 * base.uiBehaviour.mEffectListPool.TplHeight), base.uiBehaviour.mEffectListPool.TplPos.z); + IXUILabel ixuilabel = gameObject.transform.Find("t").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowDataById[0].EffectName); + IXUILabel ixuilabel2 = gameObject.transform.Find("t2").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(rowDataById[0].EffectName); + IXUICheckBox ixuicheckBox = gameObject.transform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectEffect)); + ixuicheckBox.ID = (ulong)this._doc.EffectAllListId[i]; + bool flag3 = num2 == 0; + if (flag3) + { + ixuicheckBox.bChecked = true; + this.OnSetEffect((int)this._doc.EffectAllListId[i]); + } + else + { + ixuicheckBox.bChecked = false; + } + num2++; + } + } + this.OnInitUnlockInfo(num); + return num2; + } + + private void OnInitUnlockInfo(uint index) + { + List rowDataById = this._doc.GetRowDataById(index); + base.uiBehaviour.mConditionPool.ReturnAll(false); + for (int i = 0; i < rowDataById.Count; i++) + { + bool flag = false; + GameObject gameObject = base.uiBehaviour.mConditionPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.mConditionPool.TplPos.x, base.uiBehaviour.mConditionPool.TplPos.y - (float)(i * base.uiBehaviour.mConditionPool.TplHeight), base.uiBehaviour.mConditionPool.TplPos.z); + IXUILabel ixuilabel = gameObject.transform.Find("condition1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("ok").GetComponent("XUISprite") as IXUISprite; + uint num = rowDataById[i].Condition[0, 0]; + uint num2 = rowDataById[i].Condition[0, 1]; + switch (num) + { + case 1u: + { + bool flag2 = this._doc.CharmVal >= num2; + if (flag2) + { + flag = true; + } + break; + } + case 2u: + { + uint level = XSingleton.singleton.Player.PlayerAttributes.Level; + bool flag3 = level >= num2; + if (flag3) + { + flag = true; + } + break; + } + case 3u: + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + bool flag4 = specificDocument.TotalPay >= num2; + if (flag4) + { + flag = true; + } + break; + } + case 4u: + { + XWelfareDocument specificDocument2 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag5 = specificDocument2.IsOwnMemberPrivilege((MemberPrivilege)num2); + if (flag5) + { + flag = true; + } + break; + } + } + ixuilabel.SetText(rowDataById[i].ConditionDesc); + ixuilabel2.SetText(rowDataById[i].desc); + ixuilabel2.ID = (ulong)rowDataById[i].SystemID; + ixuilabel2.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnEnterSystemUnlock)); + bool flag6 = flag; + if (flag6) + { + ixuisprite.SetVisible(true); + ixuilabel2.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel2.SetVisible(true); + } + } + } + + private void OnStopPlayingFX() + { + bool flag = this._playing_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._playing_fx, true); + } + this._playing_fx = null; + } + + private void OnEnterSystemUnlock(IXUILabel lb) + { + this.SetVisible(false, true); + XSingleton.singleton.OpenSystem((XSysDefine)lb.ID, 0UL); + } + + private void OnHideUnlock(IXUISprite sp) + { + base.uiBehaviour.mUnlockFrame.SetVisible(false); + this.OnStopPlayingFX(); + } + + public bool OnModeChanged(IXUICheckBox box) + { + bool flag = !box.bChecked; + if (flag) + { + bool flag2 = this._check_index.Contains((uint)box.ID); + if (flag2) + { + this._check_index.Remove((uint)box.ID); + } + } + else + { + bool flag3 = !this._check_index.Contains((uint)box.ID); + if (flag3) + { + this._check_index.Add((uint)box.ID); + } + } + this.OnRefreshPlayerRender(); + return true; + } + + public bool OnAnimChanged(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + XDanceDocument.Doc.ReqStartJustDance((uint)box.ID); + result = true; + } + return result; + } + + public bool OnEffectChanged(IXUICheckBox box) + { + this.OnStopPlayingFX(); + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + Transform transform = XSingleton.singleton.UIRoot.Find("Camera").transform; + List rowDataById = this._doc.GetRowDataById((uint)box.ID); + this._playing_fx = XSingleton.singleton.CreateAndPlay(rowDataById[0].EffectRoute, transform, Vector3.zero, Vector3.one, 1f, true, 3600f, true); + result = true; + } + return result; + } + + private void OnSetEffect(int index) + { + this.OnInitUnlockInfo((uint)index); + this.OnStopPlayingFX(); + List rowDataById = this._doc.GetRowDataById((uint)index); + this._playing_fx = XSingleton.singleton.CreateUIFx(rowDataById[0].EffectRoute, base.uiBehaviour.mUnlockEffectWindow.transform, new Vector3(0.25f, 0.25f, 0.25f), false); + } + + public bool OnSelectEffect(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnSetEffect((int)box.ID); + result = true; + } + return result; + } + + public bool OnSavePic(IXUIButton btn) + { + bool flag = this._saved_file_path == XSingleton.singleton.FilePath; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CAMERA_SAVED_ERR"), "fece00"); + result = false; + } + else + { + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform == 11) + { + string text = "/../../../../DCIM/Camera"; + text = Application.persistentDataPath + text; + bool flag2 = !Directory.Exists(text); + if (flag2) + { + Directory.CreateDirectory(text); + } + string destFileName = text + "/" + XSingleton.singleton.FileName; + File.Copy(XSingleton.singleton.FilePath, destFileName); + XSingleton.singleton.RefreshPhotoView(text); + } + } + else + { + this._saved_file_path = XSingleton.singleton.FilePath; + XSingleton.singleton.SaveScreenshotPic(this._saved_file_path); + } + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CAMERA_SAVED"), "fece00"); + this._saved_file_path = XSingleton.singleton.FilePath; + result = true; + } + return result; + } + + public void OnAnimStart(IXUISprite sp) + { + } + + public void OnClickBg(IXUISprite sp) + { + bool flag = sp.ID == 1UL; + if (flag) + { + base.uiBehaviour.mModeSelect.SetVisible(false); + } + else + { + bool flag2 = sp.ID == 2UL; + if (flag2) + { + base.uiBehaviour.mDanceSelect.SetVisible(false); + } + else + { + bool flag3 = sp.ID == 3UL; + if (flag3) + { + base.uiBehaviour.mEffectsSelect.SetVisible(false); + } + } + } + } + + public bool OnZoomSliderChanged(float val) + { + XSingleton.singleton.GameCamera.TargetOffset = this._min_dist + (this._max_dist - this._min_dist) * val; + return true; + } + + public bool CanRenderOtherPalyers() + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + return flag || this._check_index.Contains(1u); + } + + private void OnRefreshPlayerRender() + { + bool flag = this._check_index.Contains(0u); + bool flag2 = XSingleton.singleton.Player != null; + if (flag2) + { + XSingleton.singleton.GameCamera.SetCameraLayer(XPlayer.PlayerLayer, flag); + XSingleton.singleton.SetCullLayer(flag); + XBillboardShowCtrlEventArgs @event = XEventPool.GetEvent(); + @event.show = flag; + @event.Firer = XSingleton.singleton.Player; + @event.type = BillBoardHideType.Photo; + XSingleton.singleton.FireEvent(@event); + } + bool flag3 = this._check_index.Contains(2u); + XSingleton.singleton.GameCamera.SetCameraLayer(XNpc.NpcLayer, flag3); + List npcs = XSingleton.singleton.GetNpcs(XSingleton.singleton.SceneID); + bool flag4 = npcs != null; + if (flag4) + { + for (int i = 0; i < npcs.Count; i++) + { + XNpc npc = XSingleton.singleton.GetNpc(npcs[i]); + bool flag5 = npc != null; + if (flag5) + { + XBillboardShowCtrlEventArgs event2 = XEventPool.GetEvent(); + event2.show = flag3; + event2.Firer = npc; + event2.type = BillBoardHideType.Photo; + XSingleton.singleton.FireEvent(event2); + } + } + } + bool flag6 = this._check_index.Contains(1u); + XSingleton.singleton.GameCamera.SetCameraLayer(XRole.RoleLayer, flag6); + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + bool flag7 = ally != null; + if (flag7) + { + for (int j = 0; j < ally.Count; j++) + { + bool flag8 = ally[j] != null; + if (flag8) + { + bool flag9 = ally[j].IsRole && !ally[j].IsPlayer; + if (flag9) + { + XBillboardShowCtrlEventArgs event3 = XEventPool.GetEvent(); + event3.show = flag6; + event3.Firer = ally[j]; + event3.type = BillBoardHideType.Photo; + XSingleton.singleton.FireEvent(event3); + } + } + } + } + } + + private void OnResetEntityRender() + { + XSingleton.singleton.GameCamera.SetCameraLayer(XPlayer.PlayerLayer, true); + XBillboardShowCtrlEventArgs @event = XEventPool.GetEvent(); + @event.show = true; + @event.type = BillBoardHideType.Photo; + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + XSingleton.singleton.GameCamera.SetCameraLayer(XNpc.NpcLayer, true); + List npcs = XSingleton.singleton.GetNpcs(XSingleton.singleton.SceneID); + bool flag = npcs != null; + if (flag) + { + for (int i = 0; i < npcs.Count; i++) + { + XNpc npc = XSingleton.singleton.GetNpc(npcs[i]); + bool flag2 = npc != null; + if (flag2) + { + XBillboardShowCtrlEventArgs event2 = XEventPool.GetEvent(); + event2.show = true; + event2.Firer = npc; + event2.type = BillBoardHideType.Photo; + XSingleton.singleton.FireEvent(event2); + } + } + } + XSingleton.singleton.GameCamera.SetCameraLayer(XRole.RoleLayer, true); + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int j = 0; j < ally.Count; j++) + { + bool flag3 = ally[j].IsRole && !ally[j].IsPlayer; + if (flag3) + { + XBillboardShowCtrlEventArgs event3 = XEventPool.GetEvent(); + event3.show = true; + event3.Firer = ally[j]; + event3.type = BillBoardHideType.Photo; + XSingleton.singleton.FireEvent(event3); + } + } + } + + private void OnReqEffect() + { + RpcC2G_PhotographEffect rpc = new RpcC2G_PhotographEffect(); + XSingleton.singleton.Send(rpc); + } + + public void OnRefreshEffects() + { + base.uiBehaviour.mEffectPool.ReturnAll(false); + this._mode_effectgo.Clear(); + base.uiBehaviour.mEffectsBack.spriteHeight = base.uiBehaviour.mEffectPool.TplHeight * this._doc.EffectListId.Count + 60; + int num = (this._doc.EffectListId.Count % 2 == 0) ? (base.uiBehaviour.mEffectPool.TplHeight / 2) : 0; + for (int i = 0; i < this._doc.EffectListId.Count; i++) + { + List rowDataById = this._doc.GetRowDataById(this._doc.EffectListId[i]); + int num2 = (i % 2 == 0) ? 1 : -1; + GameObject gameObject = base.uiBehaviour.mEffectPool.FetchGameObject(false); + this._mode_effectgo.Add(gameObject); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.mEffectPool.TplPos.x, base.uiBehaviour.mEffectPool.TplPos.y + (float)(num2 * ((i + 1) / 2) * base.uiBehaviour.mEffectPool.TplHeight) + (float)num, base.uiBehaviour.mEffectPool.TplPos.z); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowDataById[0].EffectName); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnEffectChanged)); + ixuicheckBox.ID = (ulong)this._doc.EffectListId[i]; + ixuicheckBox.bChecked = false; + } + base.uiBehaviour.mEffectsMore.transform.localPosition = new Vector3(base.uiBehaviour.mEffectsMore.transform.localPosition.x, base.uiBehaviour.mEffectPool.TplPos.y - (float)((this._doc.EffectListId.Count + 1) * base.uiBehaviour.mEffectPool.TplHeight / 2), base.uiBehaviour.mEffectsMore.transform.localPosition.z); + bool flag = this._doc.EffectAllListId.Count == this._doc.EffectListId.Count; + if (flag) + { + base.uiBehaviour.mEffectsRedpoint.SetVisible(false); + } + else + { + base.uiBehaviour.mEffectsRedpoint.SetVisible(true); + } + } + + private void InitLeftMenu() + { + base.uiBehaviour.mModePool.ReturnAll(false); + string value = XSingleton.singleton.GetValue("PhotoShowName"); + string[] array = value.Split(new char[] + { + '|' + }); + this._mode_go.Clear(); + base.uiBehaviour.mModeBack.spriteHeight = base.uiBehaviour.mModePool.TplHeight * array.Length; + for (int i = 0; i < array.Length; i++) + { + GameObject gameObject = base.uiBehaviour.mModePool.FetchGameObject(false); + int num = (i % 2 == 0) ? 1 : -1; + int num2 = base.uiBehaviour.mModePool.TplHeight / 2; + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.mModePool.TplPos.x, base.uiBehaviour.mModePool.TplPos.y + (float)(num * ((i + 1) / 2) * base.uiBehaviour.mModePool.TplHeight), base.uiBehaviour.mModePool.TplPos.z); + IXUILabel ixuilabel = gameObject.transform.Find("option1/Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(array[i]); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("option1/Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnModeChanged)); + ixuicheckBox.ID = (ulong)((long)i); + ixuicheckBox.bChecked = true; + this._check_index.Add((uint)i); + this._mode_go.Add(gameObject); + } + this.OnRefreshEffects(); + } + + private void InitDance() + { + base.uiBehaviour.mDancePool.FakeReturnAll(); + this._dance_num = 0; + int num = 0; + for (int i = 0; i < XDanceDocument.Doc.SelfConfigData.Count; i++) + { + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(XDanceDocument.Doc.SelfConfigData[i].motionID); + bool flag = danceConfig != null && XDanceDocument.Doc.IsUnlock(XDanceDocument.Doc.SelfConfigData[i].valid, danceConfig.Condition); + if (flag) + { + this._dance_num++; + } + } + float num2 = (this._dance_num > 8) ? 8.5f : ((float)this._dance_num); + base.uiBehaviour.mDanceBack.spriteHeight = (int)((float)base.uiBehaviour.mModePool.TplHeight * num2) + 30; + base.uiBehaviour.mDanceBackSV.SetSize((float)base.uiBehaviour.mDanceBack.spriteWidth, (float)base.uiBehaviour.mModePool.TplHeight * num2); + for (int j = 0; j < XDanceDocument.Doc.SelfConfigData.Count; j++) + { + DanceConfig.RowData danceConfig2 = XDanceDocument.GetDanceConfig(XDanceDocument.Doc.SelfConfigData[j].motionID); + bool flag2 = danceConfig2 != null && XDanceDocument.Doc.IsUnlock(XDanceDocument.Doc.SelfConfigData[j].valid, danceConfig2.Condition); + if (flag2) + { + GameObject gameObject = base.uiBehaviour.mDancePool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.mDanceBackList.gameObject.transform; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(danceConfig2.MotionName); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnAnimChanged)); + ixuicheckBox.ID = (ulong)danceConfig2.MotionID; + num++; + } + } + base.uiBehaviour.mDancePool.ActualReturnAll(false); + base.uiBehaviour.mDanceBackList.Refresh(); + } + + public bool IsInReadyScreenShowView() + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + return !flag && base.uiBehaviour.mDoScreenShot.IsVisible(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareView.cs.meta new file mode 100644 index 00000000..7c9b6447 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/ScreenShotShareView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 370f19d7c47fd394883cc554277f7df6 +timeCreated: 1611403564 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SelectCharWindowBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/SelectCharWindowBehaviour.cs new file mode 100644 index 00000000..4ac8db60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SelectCharWindowBehaviour.cs @@ -0,0 +1,130 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SelectCharWindowBehaviour : DlgBehaviourBase + { + public IXUIButton m_enterworld; + + public IXUILabel m_enterWorldLabel; + + public IXUIButton m_return; + + public Transform m_selectFrame = null; + + public IXUITweenTool m_SelectTween; + + public IXUISprite m_profIntro; + + public IXUILabel m_profDetail; + + public IXUILabel m_profType; + + public XUIPool m_AttrPoint = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_profName; + + public IXUITweenTool m_profTween; + + public IXUIInput m_createName; + + public GameObject m_createNameFrame; + + public IXUITweenTool m_createNameTween; + + public IXUISprite m_createRandom; + + public IXUISprite[] m_create_profp = new IXUISprite[XGame.RoleCount]; + + public Transform m_playerNameFrame = null; + + public IXUILabel m_playerNameLabel; + + public IXUILabel m_playerLevelLabel; + + public Transform m_block; + + public IXUILabel m_Version; + + public IXUILabel m_preLevel; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/SelectFrame/EnterGame"); + this.m_enterworld = (transform.GetComponent("XUIButton") as IXUIButton); + this.m_enterWorldLabel = (base.transform.Find("Bg/SelectFrame/EnterGame/Label").GetComponent("XUILabel") as IXUILabel); + transform = base.transform.Find("Bg/Return"); + this.m_return = (transform.GetComponent("XUIButton") as IXUIButton); + this.m_selectFrame = base.transform.Find("Bg/SelectFrame"); + this.m_SelectTween = (base.transform.Find("Bg/SelectFrame").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_profName = (base.transform.Find("Bg/SelectFrame/ProfName").GetComponent("XUISprite") as IXUISprite); + this.m_profIntro = (base.transform.Find("Bg/SelectFrame/ProfName/ProfIntro").GetComponent("XUISprite") as IXUISprite); + this.m_profDetail = (base.transform.Find("Bg/SelectFrame/ProfName/ProfIntro/Detail").GetComponent("XUILabel") as IXUILabel); + this.m_profType = (base.transform.Find("Bg/SelectFrame/ProfName/ProfIntro/Attr").GetComponent("XUILabel") as IXUILabel); + this.m_profTween = (base.transform.Find("Bg/SelectFrame/ProfName").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_profTween.SetTargetGameObject(this.m_profTween.gameObject); + transform = base.transform.Find("Bg/SelectFrame/ProfName/ProfIntro/Point"); + this.m_AttrPoint.SetupPool(transform.parent.gameObject, transform.gameObject, 40u, false); + this.m_createName = (base.transform.Find("Bg/SelectFrame/NameFrame/PlayerName").GetComponent("XUIInput") as IXUIInput); + this.m_preLevel = (base.transform.Find("Bg/SelectFrame/NameFrame/PlayerName/PreLevel").GetComponent("XUILabel") as IXUILabel); + this.m_createNameFrame = base.transform.Find("Bg/SelectFrame/NameFrame").gameObject; + this.m_createNameTween = (base.transform.Find("Bg/SelectFrame/NameFrame").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_createRandom = (base.transform.Find("Bg/SelectFrame/NameFrame/Random").GetComponent("XUISprite") as IXUISprite); + this.m_playerNameFrame = base.transform.Find("Bg/SelectFrame/PlayerName"); + this.m_playerNameLabel = (base.transform.Find("Bg/SelectFrame/PlayerName/Text").GetComponent("XUILabel") as IXUILabel); + this.m_playerLevelLabel = (base.transform.Find("Bg/SelectFrame/PlayerName/Level").GetComponent("XUILabel") as IXUILabel); + string[] array = XSingleton.singleton.GetValue("OpenProfession").Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < XGame.RoleCount; i++) + { + this.m_create_profp[i] = (base.transform.Find("Bg/SelectFrame/ProfFrame/Prof" + (i + 1)).GetComponent("XUISprite") as IXUISprite); + this.m_create_profp[i].ID = (ulong)((long)(i + 1)); + bool active = true; + for (int j = 0; j < array.Length; j++) + { + bool flag = int.Parse(array[j]) == i + 1; + if (flag) + { + active = false; + break; + } + } + this.m_create_profp[i].gameObject.transform.Find("Disable").gameObject.SetActive(active); + } + this.m_block = base.transform.Find("Bg/Block"); + this.m_Version = (base.transform.Find("Bg/LabelVersion").GetComponent("XUILabel") as IXUILabel); + this.m_selectFrame.gameObject.SetActive(false); + this.m_return.SetVisible(false); + this.m_block.gameObject.SetActive(false); + } + + private void OnDestroy() + { + this.m_enterworld = null; + this.m_enterWorldLabel = null; + this.m_return = null; + this.m_selectFrame = null; + this.m_SelectTween = null; + this.m_profIntro = null; + this.m_profName = null; + this.m_profTween = null; + this.m_createName = null; + this.m_createNameFrame = null; + this.m_createNameTween = null; + this.m_createRandom = null; + this.m_create_profp = new IXUISprite[XGame.RoleCount]; + for (int i = 0; i < this.m_create_profp.Length; i++) + { + this.m_create_profp[i] = null; + } + this.m_playerNameFrame = null; + this.m_playerNameLabel = null; + this.m_playerLevelLabel = null; + this.m_block = null; + this.m_Version = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SelectCharWindowBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SelectCharWindowBehaviour.cs.meta new file mode 100644 index 00000000..0f192ae0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SelectCharWindowBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b9e77505a0332c439d961d303af0dd1 +timeCreated: 1611403994 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SevenLoginBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/SevenLoginBehaviour.cs new file mode 100644 index 00000000..9c831bba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SevenLoginBehaviour.cs @@ -0,0 +1,51 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SevenLoginBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabel m_LoginDayLabel; + + public IXUIScrollView m_WrapContentScrollView; + + public Transform m_WrapContentTemp; + + public Transform m_WrapContentRewardTemp; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_MessageLabel; + + public IXUITexture m_shardTexture; + + public IXUITexture m_dialogTexture; + + public Transform m_dialogTransform; + + public IXUIButton m_dialogClose; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_LoginDayLabel = (base.transform.Find("Bg/LoginDay").GetComponent("XUILabel") as IXUILabel); + this.m_WrapContentScrollView = (base.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContentTemp = base.transform.Find("Bg/ScrollView/ItemTpl"); + this.m_WrapContentTemp.gameObject.SetActive(false); + this.m_WrapContentRewardTemp = base.transform.Find("Bg/RewardTemp"); + this.m_RewardPool.SetupPool(this.m_WrapContentRewardTemp.parent.gameObject, this.m_WrapContentRewardTemp.gameObject, 30u, false); + this.m_WrapContentRewardTemp.gameObject.SetActive(false); + this.m_MessageLabel = (base.transform.Find("Bg/Message").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Show"); + this.m_shardTexture = (base.transform.Find("Bg/Show/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_dialogClose = (base.transform.Find("Bg/Dialog/Close").GetComponent("XUIButton") as IXUIButton); + this.m_dialogTexture = (base.transform.Find("Bg/Dialog/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_dialogTransform = base.transform.Find("Bg/Dialog"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SevenLoginBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SevenLoginBehaviour.cs.meta new file mode 100644 index 00000000..c8a0d8c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SevenLoginBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5c27dbf8bb9357a419904384565ee945 +timeCreated: 1611403801 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs b/Client/Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs new file mode 100644 index 00000000..954d1f00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs @@ -0,0 +1,411 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SevenLoginDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/SevenAwardDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_SevenActivity); + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XSevenLoginDocument _Doc; + + private List m_WrapContentItems; + + private int m_wrapContentHeight = 104; + + private Vector3 m_RewardStartPos = Vector3.zero; + + private uint m_TimeRecord = 0u; + + private List m_ItemEffectList; + + private Vector3 m_ItemScale; + + private string m_dialogSharedLocation = string.Empty; + + private int mCurDayID = 0; + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickCloseHandle)); + base.uiBehaviour.m_dialogClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickDialogClose)); + } + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XSevenLoginDocument.uuID); + this._Doc.SevenLoginView = this; + base.uiBehaviour.m_dialogTransform.gameObject.SetActive(false); + } + + protected override void OnLoad() + { + base.OnLoad(); + this.m_WrapContentItems = new List(); + this.m_ItemEffectList = new List(); + this.m_ItemScale = new Vector3(0.8f, 0.8f, 0.8f); + } + + protected override void OnUnload() + { + bool flag = this.m_WrapContentItems != null; + if (flag) + { + int i = 0; + int count = this.m_WrapContentItems.Count; + while (i < count) + { + this.m_WrapContentItems[i] = null; + i++; + } + this.m_WrapContentItems.Clear(); + this.m_WrapContentItems = null; + } + bool flag2 = this.m_ItemEffectList != null; + if (flag2) + { + int j = 0; + int count2 = this.m_ItemEffectList.Count; + while (j < count2) + { + XSingleton.singleton.DestroyFx(this.m_ItemEffectList[j], true); + j++; + } + this.m_ItemEffectList.Clear(); + this.m_ItemEffectList = null; + } + this.ClearShardTexture(); + this.ClearDialogSharedTexture(); + this._Doc.SevenLoginView = null; + base.OnUnload(); + } + + private void ClearEffectList() + { + bool flag = this.m_ItemEffectList != null; + if (flag) + { + int i = 0; + int count = this.m_ItemEffectList.Count; + while (i < count) + { + XSingleton.singleton.DestroyFx(this.m_ItemEffectList[i], true); + i++; + } + this.m_ItemEffectList.Clear(); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.Refresh(); + } + + protected override void OnHide() + { + int i = 0; + int count = this.m_ItemEffectList.Count; + while (i < count) + { + XSingleton.singleton.DestroyFx(this.m_ItemEffectList[i], true); + i++; + } + XSingleton.singleton.KillTimer(this.m_TimeRecord); + base.OnHide(); + } + + public void Refresh() + { + this.ConfigSevenItemList(); + this.ConfigSevenMessage(); + this.ConfigImportTime(null); + } + + public void ShowDialogSheredTexture() + { + bool flag = this._Doc.NextImportItem == 0; + if (!flag) + { + this.ClearDialogSharedTexture(); + string dialogSharedString = this._Doc.GetDialogSharedString(); + bool flag2 = string.IsNullOrEmpty(dialogSharedString) || dialogSharedString.Equals(this.m_dialogSharedLocation); + if (!flag2) + { + base.uiBehaviour.m_dialogTexture.SetTexturePath(dialogSharedString); + this.m_dialogSharedLocation = dialogSharedString; + base.uiBehaviour.m_dialogTransform.gameObject.SetActive(true); + base.uiBehaviour.m_dialogTexture.MakePixelPerfect(); + } + } + } + + private bool ClickDialogClose(IXUIButton btn) + { + base.uiBehaviour.m_dialogTransform.gameObject.SetActive(false); + return true; + } + + private bool OnClickCloseHandle(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void ConfigImportTime(object o) + { + XSingleton.singleton.KillTimer(this.m_TimeRecord); + int lastSecond = this._Doc.GetLastSecond(); + bool flag = lastSecond > 0; + if (flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._Doc.NextImportItem); + base.uiBehaviour.m_LoginDayLabel.SetText(XStringDefineProxy.GetString("SEVEN_LOGIN_TIMERECORD", new object[] + { + (itemConf == null) ? string.Empty : itemConf.ItemName[0], + XSingleton.singleton.TimeDuarationFormatString(lastSecond, 3) + })); + this.m_TimeRecord = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.ConfigImportTime), null); + } + else + { + base.uiBehaviour.m_LoginDayLabel.SetText(string.Empty); + } + } + + private void ConfigSevenMessage() + { + bool flag = this._Doc.NextImportDay > 0; + if (flag) + { + base.uiBehaviour.m_MessageLabel.SetVisible(true); + string key = XSingleton.singleton.StringCombine("SEVEN_LOGIN_MESSAGE", this._Doc.NextImportDay.ToString()); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._Doc.NextImportItem); + base.uiBehaviour.m_MessageLabel.SetText(XStringDefineProxy.GetString(key, new object[] + { + this._Doc.NextImportDay, + (itemConf == null) ? string.Empty : itemConf.ItemName[0] + })); + string sharedString = this._Doc.GetSharedString(); + base.uiBehaviour.m_shardTexture.SetTexturePath(sharedString); + } + else + { + this.ResetShow(); + base.uiBehaviour.m_MessageLabel.SetVisible(false); + } + } + + private void ClearShardTexture() + { + base.uiBehaviour.m_shardTexture.SetTexturePath(""); + } + + private void ClearDialogSharedTexture() + { + this.m_uiBehaviour.m_dialogTexture.SetTexturePath(""); + this.m_dialogSharedLocation = string.Empty; + } + + private void ResetShow() + { + int i = 0; + int count = this.m_ItemEffectList.Count; + while (i < count) + { + XSingleton.singleton.DestroyFx(this.m_ItemEffectList[i], true); + i++; + } + } + + private void ConfigSevenItemList() + { + this.ClearEffectList(); + int i = this.m_WrapContentItems.Count; + List loginRewards = this._Doc.LoginRewards; + loginRewards.Sort(new Comparison(this.CompareWrapItem)); + int count = loginRewards.Count; + Vector3 localPosition = base.uiBehaviour.m_WrapContentTemp.localPosition; + while (i < count) + { + GameObject gameObject = XCommon.Instantiate(base.uiBehaviour.m_WrapContentTemp.gameObject); + gameObject.SetActive(true); + gameObject.name = XSingleton.singleton.StringCombine("WrapItem_", i.ToString()); + gameObject.transform.parent = base.uiBehaviour.m_WrapContentScrollView.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = localPosition; + localPosition.y += (float)this.m_wrapContentHeight; + SevenLoginWrapItem sevenLoginWrapItem = new SevenLoginWrapItem(); + sevenLoginWrapItem.Init(gameObject.transform); + this.m_WrapContentItems.Add(sevenLoginWrapItem); + sevenLoginWrapItem.m_GetButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetRewardClick)); + i++; + } + base.uiBehaviour.m_RewardPool.FakeReturnAll(); + for (int j = 0; j < i; j++) + { + bool flag = j < count; + if (flag) + { + this.WrapContentItemUpdated(this.m_WrapContentItems[j], loginRewards[j]); + } + else + { + this.WrapContentItemUpdated(this.m_WrapContentItems[j], null); + } + XSingleton.singleton.m_uiTool.MarkParentAsChanged(this.m_WrapContentItems[j].transform.gameObject); + } + base.uiBehaviour.m_RewardPool.ActualReturnAll(false); + base.uiBehaviour.m_WrapContentScrollView.ResetPosition(); + } + + private bool OnGetRewardClick(IXUIButton btn) + { + this.mCurDayID = (int)btn.ID; + int num = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE); + uint redayFatigue = this._Doc.GetRedayFatigue(this.mCurDayID); + int @int = XSingleton.singleton.GetInt("MaxFatigue"); + bool flag = redayFatigue > 0u && (long)num + (long)((ulong)redayFatigue) > (long)@int; + if (flag) + { + XSingleton.singleton.ShowFatigueSureDlg(new ButtonClickEventHandler(this.GetSureLogReward)); + } + else + { + btn.SetEnable(false, false); + this.GetSureLogReward(null); + } + return true; + } + + private bool GetSureLogReward(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this._Doc.GetLoginReward(this.mCurDayID); + return true; + } + + private void SetItemEffect(GameObject parent, string effectName) + { + bool flag = string.IsNullOrEmpty(effectName); + if (!flag) + { + XFx xfx = XSingleton.singleton.CreateUIFx(effectName, parent.transform, false); + bool flag2 = xfx != null; + if (flag2) + { + this.m_ItemEffectList.Add(xfx); + } + } + } + + private void WrapContentItemUpdated(SevenLoginWrapItem slwi, LoginReward reward) + { + bool flag = reward == null; + if (flag) + { + slwi.Set(null); + } + else + { + List items = reward.items; + slwi.Set(reward); + int i = 0; + int count = items.Count; + while (i < count) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject.transform.parent = slwi.RewardParent; + gameObject.transform.localPosition = new Vector3(this.m_RewardStartPos.x + (float)(i * 75), this.m_RewardStartPos.y, this.m_RewardStartPos.z); + gameObject.transform.localScale = this.m_ItemScale; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Quality").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)items[i].itemID; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)items[i].itemID); + this.SetItemEffect(ixuisprite2.gameObject, itemConf.ItemEffect); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf, (int)items[i].itemCount, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + i++; + } + } + } + + private int CompareWrapItem(LoginReward reward1, LoginReward reward2) + { + bool flag = reward1.state == reward2.state; + int result; + if (flag) + { + result = reward2.day - reward1.day; + } + else + { + result = this.GetSortIndexByState(reward1.state) - this.GetSortIndexByState(reward2.state); + } + return result; + } + + private int GetSortIndexByState(LoginRewardState state) + { + int result = 0; + switch (state) + { + case LoginRewardState.LOGINRS_CANNOT: + result = 2; + break; + case LoginRewardState.LOGINRS_HAVEHOT: + result = 3; + break; + case LoginRewardState.LOGINRS_HAVE: + result = 1; + break; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs.meta new file mode 100644 index 00000000..94b17077 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SevenLoginDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22d6718445c7c024998e0286128e0fce +timeCreated: 1611403425 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SevenLoginWrapItem.cs b/Client/Assets/Scripts/XMainClient/UI/SevenLoginWrapItem.cs new file mode 100644 index 00000000..1d889564 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SevenLoginWrapItem.cs @@ -0,0 +1,62 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class SevenLoginWrapItem + { + public Transform transform + { + get + { + return this.m_transform; + } + } + + public Transform m_transform; + + public Transform RewardParent; + + public IXUILabel m_DayLabel; + + public Transform m_UnGetLabel; + + public Transform m_HadGetSprite; + + public IXUIButton m_GetButton; + + private LoginReward m_LoginReward; + + public void Init(Transform tf) + { + this.m_transform = tf; + this.RewardParent = tf.Find("AwardList"); + this.m_DayLabel = (tf.Find("DayLabel").GetComponent("XUILabel") as IXUILabel); + this.m_GetButton = (tf.Find("Response/GetButton").GetComponent("XUIButton") as IXUIButton); + this.m_HadGetSprite = tf.Find("Response/HadGet"); + this.m_UnGetLabel = tf.Find("Response/UnGet"); + } + + public void Set(LoginReward reward) + { + bool flag = reward == null; + if (flag) + { + this.m_transform.gameObject.SetActive(false); + } + else + { + this.m_transform.gameObject.SetActive(true); + this.m_LoginReward = reward; + this.m_DayLabel.SetText(this.m_LoginReward.day.ToString()); + this.m_GetButton.ID = (ulong)((long)reward.day); + this.m_GetButton.gameObject.SetActive(reward.state == LoginRewardState.LOGINRS_HAVEHOT); + this.m_GetButton.SetEnable(true, false); + this.m_HadGetSprite.gameObject.SetActive(reward.state == LoginRewardState.LOGINRS_HAVE); + this.m_UnGetLabel.gameObject.SetActive(reward.state == LoginRewardState.LOGINRS_CANNOT); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SevenLoginWrapItem.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SevenLoginWrapItem.cs.meta new file mode 100644 index 00000000..a65ba40b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SevenLoginWrapItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce28a4e672d9fef47bf6145a6f1545cd +timeCreated: 1611404578 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SmeltMainHandler.cs b/Client/Assets/Scripts/XMainClient/UI/SmeltMainHandler.cs new file mode 100644 index 00000000..5af239b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SmeltMainHandler.cs @@ -0,0 +1,747 @@ +using System; +using System.Collections.Generic; +using System.Text; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SmeltMainHandler : DlgHandlerBase + { + private XSmeltDocument m_doc + { + get + { + return XSmeltDocument.Doc; + } + } + + public string EffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_effectPath); + if (flag) + { + this.m_effectPath = XSingleton.singleton.GetValue("SmeltEffectPath"); + } + return this.m_effectPath; + } + } + + protected override string FileName + { + get + { + return "ItemNew/SmeltMainHandler"; + } + } + + private XUIPool m_AttrTplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_ClosedBtn; + + private IXUIButton m_SmeltBtn; + + private IXUIButton m_Help; + + private IXUILabel m_TittleLab; + + private IXUILabel m_NeedGoldLab; + + private IXUILabel m_tips1Lab; + + private IXUILabel m_tips2Lab; + + public GameObject m_btnRedDot; + + public GameObject m_resultGo; + + private GameObject m_SmeltItemGo; + + private GameObject m_AttrParentGo; + + private List m_itemGoList; + + private Transform m_curTra = null; + + private bool m_needItemIsEnough = true; + + private bool m_bIsInit = true; + + private bool m_bIsNeedRandTips = true; + + private List> m_NeedSmeltStoneLst = new List>(); + + private int m_smeltItemId = 0; + + private XFx m_fx; + + private string m_effectPath = string.Empty; + + private bool m_bStatus = false; + + private float m_cdTime = 0.2f; + + private float m_lastClickTime = 0f; + + protected override void Init() + { + base.Init(); + this.m_AttrParentGo = base.PanelObject.transform.Find("AttrParentGo").gameObject; + Transform transform = base.PanelObject.transform.Find("AttrTpl"); + this.m_AttrTplPool.SetupPool(this.m_AttrParentGo, transform.gameObject, 3u, false); + transform = base.PanelObject.transform.Find("Top"); + this.m_SmeltItemGo = transform.Find("SmeltItem").gameObject; + this.m_tips1Lab = (transform.Find("Tips1").GetComponent("XUILabel") as IXUILabel); + this.m_tips2Lab = (transform.Find("Tips2").GetComponent("XUILabel") as IXUILabel); + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_ClosedBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_TittleLab = (base.PanelObject.transform.Find("TittleLab").GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Bottom"); + this.m_SmeltBtn = (transform.Find("SmeltBtn").GetComponent("XUIButton") as IXUIButton); + this.m_NeedGoldLab = (transform.Find("NeedGoldLab").GetComponent("XUILabel") as IXUILabel); + this.m_btnRedDot = this.m_SmeltBtn.gameObject.transform.Find("RedPoint").gameObject; + this.m_resultGo = base.PanelObject.transform.Find("Result").gameObject; + bool flag = this.m_itemGoList == null; + if (flag) + { + transform = transform.Find("Items"); + this.m_itemGoList = new List(); + for (int i = 0; i < transform.childCount; i++) + { + this.m_itemGoList.Add(transform.GetChild(i).gameObject); + } + } + this.m_doc.View = this; + this.m_tips1Lab.SetText(XSingleton.singleton.GetString("SmeltNewTips1")); + this.m_tips2Lab.SetText(XSingleton.singleton.GetString("SmeltNewTips2")); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ClosedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + this.m_SmeltBtn.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnIconPress)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Item_Smelting); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + this.m_doc.Clear(); + bool flag = DlgBase.singleton._EmblemEquipHandler != null; + if (flag) + { + DlgBase.singleton._EmblemEquipHandler.RegisterItemClickEvents(null); + } + DlgBase.singleton.OnPopHandlerSetVisible(false, null); + DlgBase.singleton.StackRefresh(); + bool flag2 = DlgBase.singleton._equipHandler != null; + if (flag2) + { + DlgBase.singleton._equipHandler.SelectEquip(0UL); + DlgBase.singleton._equipHandler.RegisterItemClickEvents(null); + } + bool flag3 = this.m_fx != null; + if (flag3) + { + this.m_fx.Stop(); + this.m_fx.SetActive(false); + } + this.m_bStatus = false; + base.OnHide(); + } + + public override void OnUnload() + { + this.m_doc.View = null; + this.m_doc.MesIsBack = true; + bool flag = this.m_fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag = itemByUID != null; + if (flag) + { + bool flag2 = DlgBase.singleton._equipHandler != null && DlgBase.singleton._equipHandler.IsVisible() && itemByUID.Type == ItemType.EQUIP; + if (flag2) + { + DlgBase.singleton._equipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this.OnEquipClicked)); + } + else + { + bool flag3 = itemByUID.Type == ItemType.EMBLEM && DlgBase.singleton._EmblemEquipHandler != null && DlgBase.singleton._EmblemEquipHandler.IsVisible(); + if (flag3) + { + DlgBase.singleton._EmblemEquipHandler.RegisterItemClickEvents(new SpriteClickEventHandler(this.OnEquipClicked)); + } + } + } + this.ShowUi(); + } + + public override void StackRefresh() + { + this.RefreshData(); + base.StackRefresh(); + } + + public void RefreshUi(bool randTips) + { + this.m_bIsInit = false; + this.m_bIsNeedRandTips = randTips; + this.FillContent(); + } + + public void ShowUi() + { + this.m_bIsInit = true; + this.GetShowIndex(); + this.FillContent(); + } + + public void UpdateUi(bool randTips) + { + this.m_bIsInit = true; + this.m_bIsNeedRandTips = randTips; + this.FillContent(); + } + + private void FillContent() + { + this.FillTop(); + this.FillAttrList(); + this.FillResultPanel(); + this.FillBottom(); + } + + private void FillTop() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_doc.CurUid); + bool flag = itemByUID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("not find uid : ", this.m_doc.CurUid.ToString(), null, null, null, null); + } + else + { + bool flag2 = itemByUID.Type == ItemType.EQUIP; + if (flag2) + { + XSingleton.singleton.DrawItem(this.m_SmeltItemGo, itemByUID as XEquipItem); + } + else + { + bool flag3 = itemByUID.Type == ItemType.EMBLEM; + if (flag3) + { + XSingleton.singleton.DrawItem(this.m_SmeltItemGo, itemByUID as XEmblemItem); + } + else + { + XSingleton.singleton.DrawItem(this.m_SmeltItemGo, itemByUID); + } + } + IXUISprite ixuisprite = this.m_SmeltItemGo.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this.m_doc.CurUid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectedItemClicked)); + bool flag4 = itemByUID.Type == ItemType.EQUIP; + if (flag4) + { + this.m_TittleLab.SetText(XStringDefineProxy.GetString("EquipSmelt")); + } + else + { + this.m_TittleLab.SetText(XStringDefineProxy.GetString("EmbleSmelt")); + } + } + } + + private void FillAttrList() + { + this.m_AttrTplPool.ReturnAll(false); + bool flag = this.m_fx != null; + if (flag) + { + this.m_fx.Stop(); + this.m_fx.SetActive(false); + } + bool flag2 = this.m_doc.SmeltAttrList == null || this.m_doc.SmeltAttrList.Count == 0; + if (!flag2) + { + for (int i = 0; i < this.m_doc.SmeltAttrList.Count; i++) + { + GameObject gameObject = this.m_AttrTplPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(0f, (float)(-57 * i), 0f); + this.FillAttrItem(gameObject, this.m_doc.GetSmeltAttr(i), i); + } + } + } + + private void FillAttrItem(GameObject go, SmeltAttr attr, int index) + { + bool flag = attr == null; + if (!flag) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + string text = string.Format("[{0}]{1}[-]", attr.ColorStr, XAttributeCommon.GetAttrStr((int)attr.AttrID)); + ixuilabel.SetText(text); + text = string.Format("[{0}]{1}[-]", attr.ColorStr, attr.RealValue); + ixuilabel = (go.transform.Find("Name/Value").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(text); + text = string.Format("[{0}]{1}[{2}-{3}][-]", new object[] + { + attr.ColorStr, + XStringDefineProxy.GetString("SmeltRange"), + attr.Min, + attr.Max + }); + ixuilabel = (go.transform.Find("RangeVlue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(text); + go.transform.Find("Select").gameObject.SetActive(false); + go.transform.Find("Select1").gameObject.SetActive(false); + IXUISprite ixuisprite = go.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickCheckBox)); + go.transform.Find("RedPoint").gameObject.SetActive(false); + bool flag2 = index == this.m_doc.SelectIndex; + if (flag2) + { + this.m_curTra = go.transform; + this.m_curTra.Find("Select").gameObject.SetActive(true); + this.m_curTra.Find("Select1").gameObject.SetActive(true); + bool flag3 = !this.m_bIsInit; + if (flag3) + { + bool flag4 = this.m_fx == null; + if (flag4) + { + this.m_fx = XSingleton.singleton.CreateFx(this.EffectPath, null, true); + } + else + { + this.m_fx.SetActive(true); + } + this.m_fx.Play(go.transform.Find("effect"), Vector3.zero, Vector3.one, 1f, true, false); + } + this.FillResultPanel(); + } + } + } + + private void FillResultPanel() + { + SmeltAttr smeltAttr = this.m_doc.GetSmeltAttr(this.m_doc.SelectIndex); + bool flag = smeltAttr == null; + if (flag) + { + this.m_resultGo.SetActive(false); + } + else + { + this.m_resultGo.SetActive(true); + IXUILabel ixuilabel = this.m_resultGo.transform.Find("Tips").GetComponent("XUILabel") as IXUILabel; + bool bIsNeedRandTips = this.m_bIsNeedRandTips; + if (bIsNeedRandTips) + { + ixuilabel.SetText(this.GetTips()); + } + else + { + this.m_bIsNeedRandTips = true; + } + this.m_btnRedDot.SetActive(false); + ixuilabel = (this.m_resultGo.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + string text = string.Format("[{0}]{1}[-]", smeltAttr.ColorStr, XAttributeCommon.GetAttrStr((int)smeltAttr.AttrID)); + ixuilabel.SetText(text); + bool flag2 = smeltAttr.LastValue == -1; + if (flag2) + { + ixuilabel = (this.m_resultGo.transform.Find("NowValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[{0}]{1}[-]", smeltAttr.ColorStr, this.GetAttrValue())); + ixuilabel = (this.m_resultGo.transform.Find("AfterValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[{0}]{1}[-]", smeltAttr.ColorStr, "???")); + ixuilabel.gameObject.transform.Find("Up").gameObject.SetActive(false); + ixuilabel.gameObject.transform.Find("Down").gameObject.SetActive(false); + } + else + { + ixuilabel = (this.m_resultGo.transform.Find("NowValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[{0}]{1}[-]", smeltAttr.ColorStr, smeltAttr.LastValue)); + ixuilabel = (this.m_resultGo.transform.Find("AfterValue").GetComponent("XUILabel") as IXUILabel); + bool isReplace = smeltAttr.IsReplace; + if (isReplace) + { + ixuilabel.SetText(string.Format("[63ff85]{0}[-]", smeltAttr.SmeltResult)); + ixuilabel.gameObject.transform.Find("Down").gameObject.SetActive(false); + ixuilabel = (ixuilabel.gameObject.transform.Find("Up").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[63ff85]{0}[-]", (long)((ulong)smeltAttr.SmeltResult - (ulong)((long)smeltAttr.LastValue)))); + ixuilabel.gameObject.SetActive(true); + } + else + { + ixuilabel.SetText(string.Format("[ff3e3e]{0}[-]", smeltAttr.SmeltResult)); + ixuilabel.gameObject.transform.Find("Up").gameObject.SetActive(false); + ixuilabel = (ixuilabel.gameObject.transform.Find("Down").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Format("[ff3e3e]{0}[-]", (long)smeltAttr.LastValue - (long)((ulong)smeltAttr.SmeltResult))); + ixuilabel.gameObject.SetActive(true); + } + } + } + } + + private string GetTips() + { + SmeltAttr smeltAttr = this.m_doc.GetSmeltAttr(this.m_doc.SelectIndex); + bool flag = smeltAttr == null || smeltAttr.LastValue == -1; + string @string; + if (flag) + { + @string = XStringDefineProxy.GetString("SmeltBadNotReplace"); + } + else + { + int num = UnityEngine.Random.Range(0, 10); + bool isReplace = smeltAttr.IsReplace; + if (isReplace) + { + @string = XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("SmeltSucceed", num.ToString())); + } + else + { + @string = XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("SmeltLost", num.ToString())); + } + } + return @string; + } + + private uint GetAttrValue() + { + SmeltAttr smeltAttr = this.m_doc.GetSmeltAttr(this.m_doc.SelectIndex); + bool flag = smeltAttr == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = smeltAttr.RealValue; + } + return result; + } + + public void UpdateNeedItem() + { + this.FillBottom(); + } + + private void FillBottom() + { + this.m_NeedGoldLab.SetText(this.m_doc.GetNeedGold().ToString()); + SeqListRef needItem = this.m_doc.GetNeedItem(); + this.m_needItemIsEnough = true; + for (int i = 0; i < this.m_itemGoList.Count; i++) + { + GameObject gameObject = this.m_itemGoList[i]; + bool flag = gameObject == null; + if (!flag) + { + bool flag2 = i >= needItem.Count; + if (flag2) + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, null, 0, false); + } + else + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)needItem[i, 0], (int)needItem[i, 1], false); + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)needItem[i, 0]); + bool flag3 = itemCount >= (ulong)needItem[i, 1]; + bool flag4 = i == 0; + if (flag4) + { + int num = 0; + this.m_NeedSmeltStoneLst = this.m_doc.GetShouldShowItems((int)needItem[i, 0], (int)needItem[i, 1], ref num); + flag3 = ((long)num >= (long)((ulong)needItem[i, 1])); + this.m_smeltItemId = (int)needItem[i, 0]; + } + bool flag5 = !flag3; + if (flag5) + { + this.m_needItemIsEnough = false; + } + IXUILabel ixuilabel = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + bool flag6 = flag3; + if (flag6) + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_ENOUGH_FMT"), itemCount, needItem[i, 1])); + } + else + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT"), itemCount, needItem[i, 1])); + } + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)needItem[i, 0]; + bool flag7 = flag3; + if (flag7) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetItemAccess)); + } + } + } + } + } + + private void GetShowIndex() + { + this.m_doc.SelectIndex = 0; + bool flag = this.m_doc.SmeltAttrList == null || this.m_doc.SmeltAttrList.Count == 0; + if (!flag) + { + for (int i = 0; i < this.m_doc.SmeltAttrList.Count; i++) + { + bool flag2 = !this.m_doc.SmeltAttrList[i].IsFull; + if (flag2) + { + this.m_doc.SelectIndex = i; + break; + } + } + } + } + + private string GetTipsStr() + { + StringBuilder stringBuilder = new StringBuilder(); + ItemList.RowData itemConf; + for (int i = 0; i < this.m_NeedSmeltStoneLst.Count; i++) + { + itemConf = XBagDocument.GetItemConf(this.m_NeedSmeltStoneLst[i].Item1); + bool flag = itemConf != null; + if (flag) + { + stringBuilder.Append(this.m_NeedSmeltStoneLst[i].Item2).Append(XSingleton.singleton.GetString("Ge")).Append("[00ff00]").Append(itemConf.ItemName[0]).Append("[-]"); + bool flag2 = i != this.m_NeedSmeltStoneLst.Count; + if (flag2) + { + stringBuilder.Append(","); + } + } + } + itemConf = XBagDocument.GetItemConf(this.m_smeltItemId); + bool flag3 = itemConf != null; + string result; + if (flag3) + { + result = string.Format(XSingleton.singleton.GetString("SmeltStoneExchangedTips"), itemConf.ItemName[0], stringBuilder); + } + else + { + result = ""; + } + return result; + } + + private bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool Smelt() + { + uint needGold = this.m_doc.GetNeedGold(); + bool flag = (ulong)needGold >= XBagDocument.BagDoc.GetItemCount(1); + bool result; + if (flag) + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + XPurchaseDocument xpurchaseDocument = XSingleton.singleton.Doc.GetXComponent(XPurchaseDocument.uuID) as XPurchaseDocument; + XPurchaseInfo purchaseInfo = xpurchaseDocument.GetPurchaseInfo(level, vipLevel, ItemEnum.GOLD); + bool flag2 = purchaseInfo.totalBuyNum > purchaseInfo.curBuyNum; + if (flag2) + { + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.GOLD); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_LACKCOIN"), "fece00"); + } + this.m_bStatus = false; + result = true; + } + else + { + bool flag3 = !this.m_needItemIsEnough; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_SMELTING_LACKMONEY"), "fece00"); + this.m_bStatus = false; + result = true; + } + else + { + SmeltAttr smeltAttr = this.m_doc.GetSmeltAttr(this.m_doc.SelectIndex); + bool flag4 = smeltAttr == null; + if (flag4) + { + this.m_bStatus = false; + result = true; + } + else + { + bool isFull = smeltAttr.IsFull; + if (isFull) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SmeltAttrFull"), "fece00"); + this.m_bStatus = false; + result = true; + } + else + { + bool flag5 = !smeltAttr.IsCanSmelt; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ThisAttrCannotSmelt"), "fece00"); + this.m_bStatus = false; + result = true; + } + else + { + XOptionsDocument specificDocument2 = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag6 = (this.m_NeedSmeltStoneLst.Count == 1 && this.m_NeedSmeltStoneLst[0].Item1 == this.m_smeltItemId) || specificDocument2.GetValue(XOptionsDefine.OD_NO_SMELTSTONE_EXCHANGED_CONFIRM) == 1; + if (flag6) + { + this.m_doc.ReqSmelt(); + } + else + { + XSingleton.singleton.ShowModalDialog(this.GetTipsStr(), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this.DoOK), new ButtonClickEventHandler(this.DoCancel), false, XTempTipDefine.OD_SMELTSTONE_EXCHANGED, 50); + this.m_bStatus = false; + } + result = true; + } + } + } + } + } + return result; + } + + private bool DoCancel(IXUIButton btn) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_SMELTSTONE_EXCHANGED_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_SMELTSTONE_EXCHANGED) ? 1 : 0, false); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool DoOK(IXUIButton btn) + { + this.m_doc.ReqSmelt(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_SMELTSTONE_EXCHANGED_CONFIRM, DlgBase.singleton.GetTempTip(XTempTipDefine.OD_SMELTSTONE_EXCHANGED) ? 1 : 0, false); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void OnSelectedItemClicked(IXUISprite iSp) + { + this.m_bStatus = false; + ulong id = iSp.ID; + XSingleton.singleton.ShowTooltipDialog(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(id), null, iSp, false, 0u); + } + + private void OnGetItemAccess(IXUISprite iSp) + { + this.m_bStatus = false; + int itemid = (int)iSp.ID; + XSingleton.singleton.ShowItemAccess(itemid, null); + } + + public void OnEquipClicked(IXUISprite iSp) + { + bool flag = !this.m_doc.MesIsBack; + if (!flag) + { + this.m_bStatus = false; + this.m_doc.SelectEquip(iSp.ID); + } + } + + private void OnClickCheckBox(IXUISprite iSp) + { + bool flag = !this.m_doc.MesIsBack; + if (!flag) + { + this.m_bStatus = false; + this.m_doc.SelectIndex = (int)iSp.ID; + bool flag2 = this.m_curTra != null; + if (flag2) + { + this.m_curTra.Find("Select").gameObject.SetActive(false); + this.m_curTra.Find("Select1").gameObject.SetActive(false); + } + this.m_curTra = iSp.gameObject.transform.parent; + this.m_curTra.Find("Select").gameObject.SetActive(true); + this.m_curTra.Find("Select1").gameObject.SetActive(true); + this.FillResultPanel(); + } + } + + private void OnIconPress(IXUIButton btn, bool state) + { + XSingleton.singleton.AddGreenLog("icon press", null, null, null, null, null); + this.m_bStatus = state; + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_bStatus && this.m_doc.MesIsBack; + if (flag) + { + bool flag2 = Time.realtimeSinceStartup - this.m_lastClickTime >= this.m_cdTime; + if (flag2) + { + this.m_lastClickTime = Time.realtimeSinceStartup; + this.Smelt(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SmeltMainHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SmeltMainHandler.cs.meta new file mode 100644 index 00000000..62570ea0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SmeltMainHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8cc3234f40bff443ac2823db9004902 +timeCreated: 1611404407 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpectateLevelRewardView.cs b/Client/Assets/Scripts/XMainClient/UI/SpectateLevelRewardView.cs new file mode 100644 index 00000000..323b21e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpectateLevelRewardView.cs @@ -0,0 +1,300 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpectateLevelRewardView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "Battle/SpectateLevelReward"; + } + } + + private XSpectateLevelRewardDocument _doc; + + public int MemberAndSplitHeight; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XSpectateLevelRewardDocument.uuID); + base.uiBehaviour.m_GoOnBtnText.SetText(XStringDefineProxy.GetString("Spectate_Goon")); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_BackToMainCityBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.BackToMainCityBtnClick)); + base.uiBehaviour.m_GoOnBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGoOnBtnClick)); + } + + public void BackToMainCityBtnClick(IXUISprite btn) + { + this._doc.LevelScene(); + } + + public void OnGoOnBtnClick(IXUISprite iSp) + { + this.SetVisible(false, true); + DlgBase.singleton.SetVisible(true, true); + } + + private void OnAddFriendClick(IXUISprite sp) + { + DlgBase.singleton.AddFriendById(sp.ID); + } + + protected override void OnShow() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + public void ShowData() + { + bool flag = DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.m_XOptionBattleHandler != null && DlgBase.singleton.m_XOptionBattleHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton.m_XOptionBattleHandler.OnCloseClicked(null); + } + this.SetVisibleWithAnimation(true, null); + base.uiBehaviour.m_MVP.SetActive(false); + this.MemberAndSplitHeight = base.uiBehaviour.MemberHeight; + base.uiBehaviour.m_WatchNum.SetText(this._doc.WatchNum.ToString()); + base.uiBehaviour.m_CommendNum.SetText(this._doc.CommendNum.ToString()); + this.InitPool(); + this.SetTitle(); + this.SetMember(); + } + } + + public void InitPool() + { + base.uiBehaviour.m_TitlePool.ReturnAll(true); + base.uiBehaviour.m_MemberPool.ReturnAll(true); + base.uiBehaviour.m_DetailPool.ReturnAll(true); + base.uiBehaviour.m_SplitPool.ReturnAll(true); + base.uiBehaviour.m_LabelPool.ReturnAll(true); + base.uiBehaviour.m_StarPool.ReturnAll(true); + base.uiBehaviour.m_WinLosePool.ReturnAll(true); + } + + public void SetTitle() + { + int num = -this._doc.WidthTotal / 2; + bool flag = this._doc.DataType != null; + if (flag) + { + for (int i = 0; i < this._doc.DataType.Length; i++) + { + bool flag2 = this._doc.WidthList[i] == 0; + if (!flag2) + { + GameObject gameObject = base.uiBehaviour.m_TitlePool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_TitleParent; + Vector3 localPosition = gameObject.transform.localPosition; + localPosition.x = (float)(num + this._doc.WidthList[i] / 2); + gameObject.transform.localPosition = localPosition; + IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetString(string.Format("SpectateLevelRewardTitle{0}", this._doc.DataType[i]))); + IXUISprite ixuisprite = gameObject.transform.Find("Button").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = this._doc.WidthList[i] - 4; + num += this._doc.WidthList[i]; + } + } + } + } + + public void SetMember() + { + int num = -this._doc.WidthTotal / 2; + int num2 = base.uiBehaviour.MemberStartY; + for (int i = 0; i < this._doc.DataList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_MemberPool.FetchGameObject(true); + gameObject.transform.parent = base.uiBehaviour.m_MemberParent; + gameObject.transform.localPosition = new Vector3(0f, (float)num2, 0f); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = this._doc.WidthTotal; + bool flag = this._doc.DataType != null; + if (flag) + { + for (int j = 0; j < this._doc.DataType.Length; j++) + { + switch (this._doc.DataType[j]) + { + case 3: + this.SetHeadIcon(num, i, this._doc.WidthList[j], gameObject); + break; + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + this.SetJustText(num, i, this._doc.DataType[j], this._doc.WidthList[j], gameObject); + break; + case 11: + this.SetStar(num, i, this._doc.WidthList[j], gameObject); + break; + case 12: + this.SetWinLose(num, i, this._doc.WidthList[j], gameObject); + break; + case 13: + this.SetMvp(num, i, this._doc.WidthList[j], gameObject); + break; + } + num += this._doc.WidthList[j]; + bool flag2 = j != this._doc.DataType.Length - 1; + if (flag2) + { + GameObject gameObject2 = base.uiBehaviour.m_SplitPool.FetchGameObject(false); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3((float)(num - 1), 0f, 0f); + } + } + } + num = -this._doc.WidthTotal / 2; + num2 -= this.MemberAndSplitHeight; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + } + } + + public void SetHeadIcon(int x, int index, int width, GameObject parentGo) + { + GameObject gameObject = base.uiBehaviour.m_DetailPool.FetchGameObject(false); + gameObject.transform.parent = parentGo.transform; + gameObject.transform.localPosition = new Vector3((float)(x + width / 2), 0f, 0f); + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag = true; + bool flag2 = !specificDocument.IsBlueTeamDict.TryGetValue(this._doc.DataList[index].roleid, out flag); + if (flag2) + { + XSingleton.singleton.AddErrorLog("spectate level reward can't find this player's team, player name = ", this._doc.DataList[index].name, null, null, null, null); + } + string text = string.Format("{0}{1}", flag ? "[00bdff]" : "[ff0000]", this._doc.DataList[index].name); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + IXUISprite ixuisprite = gameObject.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon((int)this._doc.DataList[index].profession); + GameObject gameObject2 = gameObject.transform.Find("Avatar/Leader").gameObject; + gameObject2.SetActive(this._doc.DataList[index].type == 1u); + IXUISprite ixuisprite2 = gameObject.transform.Find("AddFriend/Add").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = this._doc.DataList[index].roleid; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddFriendClick)); + } + + private void SetJustText(int x, int index, int type, int width, GameObject parentGo) + { + GameObject gameObject = base.uiBehaviour.m_LabelPool.FetchGameObject(false); + gameObject.transform.parent = parentGo.transform; + gameObject.transform.localPosition = new Vector3((float)(x + width / 2), 0f, 0f); + IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel; + switch (type) + { + case 5: + ixuilabel.SetText(this._doc.DataList[index].killcount.ToString()); + break; + case 6: + ixuilabel.SetText(this._doc.DataList[index].damageall.ToString("0.0")); + break; + case 7: + ixuilabel.SetText(string.Format("{0}%", ((this._doc.DamageSum < 1.0) ? 0.0 : (this._doc.DataList[index].damageall * 100.0 / this._doc.DamageSum)).ToString("0.0"))); + break; + case 8: + ixuilabel.SetText(this._doc.DataList[index].treatcount.ToString()); + break; + case 9: + ixuilabel.SetText(this._doc.DataList[index].deadcount.ToString()); + break; + case 10: + ixuilabel.SetText(this._doc.DataList[index].combomax.ToString()); + break; + } + } + + private void SetStar(int x, int index, int width, GameObject parentGo) + { + uint num = 0u; + bool flag = !this._doc.StarDict.TryGetValue(this._doc.DataList[index].roleid, out num); + if (flag) + { + XSingleton.singleton.AddLog("spectate level reward can't find this player' star, player name = ", this._doc.DataList[index].name, " maybe nest fail.", null, null, null, XDebugColor.XDebug_None); + } + int num2 = this.CalStarNum((int)num); + int num3 = x + width / 2 - base.uiBehaviour.m_StarPool.TplWidth; + for (int i = 0; i < 3; i++) + { + GameObject gameObject = base.uiBehaviour.m_StarPool.FetchGameObject(false); + gameObject.transform.parent = parentGo.transform; + gameObject.transform.localPosition = new Vector3((float)(num3 + i * base.uiBehaviour.m_StarPool.TplWidth), 0f, 0f); + GameObject gameObject2 = gameObject.transform.Find("Fg").gameObject; + gameObject2.SetActive(i < num2); + } + } + + private void SetWinLose(int x, int index, int width, GameObject parentGo) + { + GameObject gameObject = base.uiBehaviour.m_WinLosePool.FetchGameObject(false); + gameObject.transform.parent = parentGo.transform; + gameObject.transform.localPosition = new Vector3((float)(x + width / 2), 0f, 0f); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + bool flag = this._doc.WinTag == 0; + if (flag) + { + ixuisprite.spriteName = "bhdz_p"; + } + else + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag2 = true; + bool flag3 = !specificDocument.IsBlueTeamDict.TryGetValue(this._doc.DataList[index].roleid, out flag2); + if (flag3) + { + XSingleton.singleton.AddErrorLog("spectate level reward can't find this player's team, player name = ", this._doc.DataList[index].name, null, null, null, null); + } + ixuisprite.spriteName = (((flag2 && this._doc.WinTag == 1) || (!flag2 && this._doc.WinTag == -1)) ? "bhdz_win" : "bhdz_lose"); + } + } + + private void SetMvp(int x, int index, int width, GameObject parentGo) + { + bool flag = this._doc.DataList[index].roleid == this._doc.MvpUid; + if (flag) + { + base.uiBehaviour.m_MVP.SetActive(true); + base.uiBehaviour.m_MVP.transform.parent = parentGo.transform; + base.uiBehaviour.m_MVP.transform.localPosition = new Vector3((float)(x + width / 2), 0f, 0f); + } + } + + private int CalStarNum(int num) + { + int num2 = 0; + while (num != 0) + { + num2++; + num -= (num & -num); + } + return num2; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpectateLevelRewardView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpectateLevelRewardView.cs.meta new file mode 100644 index 00000000..361e3547 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpectateLevelRewardView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a07f7bce4d867543813f513c1f994ec +timeCreated: 1611403790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpectateSceneBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/SpectateSceneBehaviour.cs new file mode 100644 index 00000000..cfa3beac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpectateSceneBehaviour.cs @@ -0,0 +1,123 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class SpectateSceneBehaviour : DlgBehaviourBase + { + public Transform m_canvas; + + public GameObject m_avatarGO = null; + + public IXUILabel m_fps = null; + + public IXUIButton m_pause = null; + + public IXUISprite m_sprwifi; + + public IXUISlider m_sliderBattery; + + public IXUILabel m_lblTime; + + public IXUILabel m_lblFree; + + public BattleTargetHandler m_BattleTargetHandler; + + public GameObject m_NoticeFrame = null; + + public IXUILabel m_Notice = null; + + public Vector3 m_NoticePos; + + public IXUILabel m_LeftTime = null; + + public XSpectateTeamMonitorHandler m_SpectateTeamMonitor; + + public SpectateHandler m_SpectateHandler; + + public XBattleEnemyInfoHandler m_EnemyInfoHandler; + + public BattleIndicateHandler m_IndicateHandler; + + public IXUILabel m_WarTime; + + public IXUILabel m_SceneName; + + public Transform m_CountDownFrame; + + public Transform m_CountDownBeginFrame; + + public Transform m_CountDownTimeFrame; + + public IXUIProgress m_StrengthPresevedBar; + + public Transform m_SightSelect; + + public IXUISprite m_SightPic; + + public IXUISprite m_SelectPic; + + public IXUIButton m_Sight; + + public IXUIButton m_3DFree; + + public IXUIButton m_3D; + + public IXUIButton m_25D; + + public IXUIButton m_barrageOpen; + + public IXUIButton m_barrageClose; + + public IXUIButton m_btnShare; + + private void Awake() + { + this.m_canvas = base.transform.Find("_canvas"); + Transform transform = base.transform.Find("_canvas/fps"); + bool flag = null != transform; + if (flag) + { + this.m_fps = (transform.GetComponent("XUILabel") as IXUILabel); + } + Transform transform2 = base.transform.Find("_canvas/Spectate/Quit"); + this.m_pause = (transform2.GetComponent("XUIButton") as IXUIButton); + this.m_sprwifi = (base.transform.Find("_canvas/PING/SysWifi").GetComponent("XUISprite") as IXUISprite); + this.m_lblTime = (base.transform.Find("_canvas/PING/TIME").GetComponent("XUILabel") as IXUILabel); + this.m_sliderBattery = (base.transform.Find("_canvas/PING/Battery").GetComponent("XUISlider") as IXUISlider); + this.m_lblFree = (base.transform.Find("_canvas/PING/T2").GetComponent("XUILabel") as IXUILabel); + this.m_NoticeFrame = base.transform.Find("_canvas/NoticeFrame").gameObject; + Transform transform3 = base.transform.Find("_canvas/NoticeFrame/Notice"); + this.m_NoticePos = this.m_NoticeFrame.transform.localPosition; + this.m_Notice = (transform3.GetComponent("XUILabel") as IXUILabel); + this.m_NoticeFrame.transform.localPosition = XGameUI.Far_Far_Away; + this.m_LeftTime = (base.transform.Find("_canvas/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime.SetVisible(false); + this.m_WarTime = (base.transform.Find("_canvas/WarTime").GetComponent("XUILabel") as IXUILabel); + this.m_WarTime.SetVisible(false); + this.m_SceneName = (base.transform.Find("_canvas/Indicate/Bg/Name").GetComponent("XUILabel") as IXUILabel); + DlgHandlerBase.EnsureCreate(ref this.m_SpectateTeamMonitor, base.transform.Find("_canvas/TeamFrame").gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.m_IndicateHandler, base.transform.Find("_canvas/Indicate").gameObject, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_SpectateHandler, base.transform.Find("_canvas/Spectate").gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.m_EnemyInfoHandler, base.transform.Find("_canvas/EnemyInfoFrame").gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.m_BattleTargetHandler, base.transform.Find("_canvas/BattleTaget").gameObject, null, true); + this.m_CountDownFrame = base.transform.Find("_canvas/CountDownFrame"); + this.m_CountDownBeginFrame = this.m_CountDownFrame.Find("Begin"); + this.m_CountDownTimeFrame = this.m_CountDownFrame.Find("Time"); + this.m_CountDownFrame.gameObject.SetActive(false); + this.m_StrengthPresevedBar = (base.transform.Find("_canvas/ChargeBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_SightSelect = base.transform.Find("_canvas/Spectate/3D25D/Select"); + this.m_3DFree = (base.transform.Find("_canvas/Spectate/3D25D/Select/3DFree").GetComponent("XUIButton") as IXUIButton); + this.m_3D = (base.transform.Find("_canvas/Spectate/3D25D/Select/3D").GetComponent("XUIButton") as IXUIButton); + this.m_25D = (base.transform.Find("_canvas/Spectate/3D25D/Select/25D").GetComponent("XUIButton") as IXUIButton); + this.m_Sight = (base.transform.Find("_canvas/Spectate/3D25D/Sight").GetComponent("XUIButton") as IXUIButton); + this.m_SightPic = (base.transform.Find("_canvas/Spectate/3D25D/Sight/Content").GetComponent("XUISprite") as IXUISprite); + this.m_SelectPic = (base.transform.Find("_canvas/Spectate/3D25D/Select/Content").GetComponent("XUISprite") as IXUISprite); + this.m_barrageOpen = (base.transform.Find("_canvas/Spectate/Barrage/open").GetComponent("XUIButton") as IXUIButton); + this.m_barrageClose = (base.transform.Find("_canvas/Spectate/Barrage/close").GetComponent("XUIButton") as IXUIButton); + this.m_btnShare = (base.transform.Find("_canvas/Spectate/Share").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpectateSceneBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpectateSceneBehaviour.cs.meta new file mode 100644 index 00000000..3f3cd983 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpectateSceneBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff09ce5236b9f154d93836ac36f0d94a +timeCreated: 1611404944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpectateSceneView.cs b/Client/Assets/Scripts/XMainClient/UI/SpectateSceneView.cs new file mode 100644 index 00000000..f9bde1bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpectateSceneView.cs @@ -0,0 +1,1277 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpectateSceneView : DlgBase + { + public XSpectateTeamMonitorHandler SpectateTeamMonitor + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_SpectateTeamMonitor; + } + } + + public BattleIndicateHandler IndicateHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_IndicateHandler; + } + } + + public XBattleEnemyInfoHandler EnemyInfoHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_EnemyInfoHandler; + } + } + + public BattleTargetHandler BattleTargetHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_BattleTargetHandler; + } + } + + public SpectateHandler SpectateHandler + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_SpectateHandler; + } + } + + public IXUILabel LeftTime + { + get + { + return (base.uiBehaviour == null) ? null : base.uiBehaviour.m_LeftTime; + } + } + + private float _strength_preseved_precent + { + get + { + bool flag = this._current_strength_preseved > this._total_strength_preseved; + if (flag) + { + this._total_strength_preseved = this._current_strength_preseved; + } + return this._current_strength_preseved / this._total_strength_preseved; + } + } + + public override string fileName + { + get + { + return "Battle/BattleViewDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public static uint _pool_size = 5u; + + private XPlayerAttributes _attrComp = null; + + private float NoticeTime = 0f; + + private Color32 _hp_green = new Color32(46, 203, 0, byte.MaxValue); + + private Color32 _hp_yellow = new Color32(byte.MaxValue, 249, 32, byte.MaxValue); + + private Color32 _hp_red = new Color32(byte.MaxValue, 39, 39, byte.MaxValue); + + private Vector2 m_DragDistance = Vector2.zero; + + private bool m_CancelRecord = false; + + private bool m_IsRecording = false; + + private uint m_ChatLabelCd = 0u; + + public XOptionsBattleHandler m_XOptionBattleHandler = null; + + private BattleCaptainPVPHandler m_BattleCaptainPVPHandler = null; + + public HeroBattleHandler _HeroBattleHandler = null; + + private SceneType sceneType; + + private XLeftTimeCounter leftTimeCounter; + + private XLeftTimeCounter timeConnter; + + private float _last_check_time = 0f; + + private IPlatform _platform = null; + + private List _notice_collection = new List(); + + private float _notice_duration = 0f; + + private float _notice_pertime = 1f; + + private List _combo_buff_list = new List(); + + private Vector2 _yuyin_init_pos = Vector2.zero; + + private Vector2 _yuyin_offset = new Vector2(65f, 0f); + + private XSpectateSceneDocument _doc; + + private uint time_token = 0u; + + private XEntity _strength_preseved_entity = null; + + private float _total_strength_preseved = 1f; + + private float _current_strength_preseved = 0f; + + private XTimerMgr.ElapsedEventHandler _showSingleNoticeCb = null; + + private XTimerMgr.ElapsedEventHandler _endBigNoticeCb = null; + + private XTimerMgr.ElapsedEventHandler _onSwitchToTeamChatCb = null; + + private XTimerMgr.ElapsedEventHandler _hideBattleChatUICb = null; + + private float _fYellow = 0f; + + private float _fRed = 0f; + + private XSwitchSight m_SwitchSight; + + public XYuyinView _yuyinHandler; + + private float lastPingTime = -60f; + + private GameObject _big_notice = null; + + public SpectateSceneView() + { + this._showSingleNoticeCb = new XTimerMgr.ElapsedEventHandler(this.ShowSingleNotice); + this._endBigNoticeCb = new XTimerMgr.ElapsedEventHandler(this.EndBigNotice); + this._onSwitchToTeamChatCb = new XTimerMgr.ElapsedEventHandler(this.OnSwitchToTeamChat); + this._hideBattleChatUICb = new XTimerMgr.ElapsedEventHandler(this.HideBattleChatUI); + this._fYellow = float.Parse(XSingleton.singleton.GetValue("HP_Yellow")); + this._fRed = float.Parse(XSingleton.singleton.GetValue("HP_Red")); + } + + protected override void Init() + { + this._platform = XSingleton.singleton.XPlatform; + this._doc = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + this._doc._SpectateSceneView = this; + this._doc.LeftTeamMonitorData.Clear(); + this._doc.RightTeamMonitorData.Clear(); + this._attrComp = (XSingleton.singleton.Player.Attributes as XPlayerAttributes); + this.leftTimeCounter = new XLeftTimeCounter(base.uiBehaviour.m_LeftTime, true); + this.timeConnter = new XLeftTimeCounter(base.uiBehaviour.m_WarTime, false); + string value = XSingleton.singleton.GetValue("ComboBuff"); + string[] array = value.Split(XGlobalConfig.AllSeparators); + for (int i = 0; i < array.Length; i += 3) + { + ComboBuff comboBuff = new ComboBuff(); + comboBuff.combo = int.Parse(array[i]); + comboBuff.buffID = int.Parse(array[i + 1]); + comboBuff.buffLevel = int.Parse(array[i + 2]); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(comboBuff.buffID, comboBuff.buffLevel); + bool flag = buffData != null; + if (flag) + { + comboBuff.buffName = buffData.BuffName; + } + else + { + XSingleton.singleton.AddErrorLog(string.Format("ComboBuff: Buff data not found: [{0} {1}]", comboBuff.buffID, comboBuff.buffLevel), null, null, null, null, null); + } + this._combo_buff_list.Add(comboBuff); + } + this.SetupHandler(); + } + + private void SetupHandler() + { + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType != SceneType.SCENE_PVP) + { + if (sceneType == SceneType.SCENE_HEROBATTLE) + { + DlgHandlerBase.EnsureCreate(ref this._HeroBattleHandler, base.uiBehaviour.m_canvas, true, this); + } + } + else + { + DlgHandlerBase.EnsureCreate(ref this.m_BattleCaptainPVPHandler, base.uiBehaviour.m_canvas, true, this); + } + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_pause.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPauseClick)); + this.m_SwitchSight = new XSwitchSight(new ButtonClickEventHandler(this.OnViewClick), base.uiBehaviour.m_25D, base.uiBehaviour.m_3D, base.uiBehaviour.m_3DFree); + base.uiBehaviour.m_Sight.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSightClick)); + base.uiBehaviour.m_barrageOpen.ID = 1UL; + base.uiBehaviour.m_barrageOpen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBarrageClick)); + base.uiBehaviour.m_barrageClose.ID = 0UL; + base.uiBehaviour.m_barrageClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBarrageClick)); + base.uiBehaviour.m_btnShare.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShareClick)); + } + + protected override void OnLoad() + { + base.OnLoad(); + DlgHandlerBase.EnsureCreate(ref this._yuyinHandler, base.uiBehaviour.transform, true, this); + } + + protected override void OnShow() + { + this.lastPingTime = -60f; + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + DlgBase.singleton.Show(true); + DlgBase.singleton.Show(true); + base.uiBehaviour.m_SightSelect.gameObject.SetActive(false); + int num = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.Player.PlayerAttributes.Profession); + base.uiBehaviour.m_IndicateHandler.SetVisible(true); + base.uiBehaviour.m_SceneName.SetText(XSingleton.singleton.SceneData.Comment); + this.SetTimeRecord(); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + this.sceneType = (SceneType)sceneData.type; + SceneType sceneType = this.sceneType; + if (sceneType <= SceneType.SCENE_ABYSSS) + { + if (sceneType != SceneType.SCENE_BATTLE) + { + switch (sceneType) + { + case SceneType.SCENE_PK: + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + bool flag = specificDocument.PkInfoList.Count > 0; + if (flag) + { + this.SetEnemyRoleInfo(specificDocument.PkInfoList[0].brief.roleName, specificDocument.PkInfoList[0].brief.roleLevel); + } + break; + } + } + } + } + else if (sceneType != SceneType.SCENE_TOWER) + { + if (sceneType != SceneType.SCENE_LEAGUE_BATTLE) + { + } + } + SceneType sceneType2 = this.sceneType; + if (sceneType2 != SceneType.SCENE_ARENA && sceneType2 != SceneType.SCENE_PK) + { + this.EnemyInfoHandler.InitBoss(); + } + else + { + this.EnemyInfoHandler.InitRole(); + } + this.SpectateTeamMonitor.InitWhenShowMainUI(); + bool flag2 = XSingleton.singleton.SceneID != 100u && XSingleton.singleton.XPlayerData.Level >= 10u; + if (flag2) + { + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + showSettingArgs.position = 3; + showSettingArgs.showsettings = false; + showSettingArgs.enablebackclick = true; + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + } + base.uiBehaviour.m_StrengthPresevedBar.SetVisible(this._doc.ShowStrengthPresevedBar); + this.LoadYuyin(); + this.InitView(); + this.ShowBarrge(); + } + + private void ShowBarrge() + { + bool openBarrage = DlgBase.singleton.openBarrage; + DlgBase.singleton.SetVisible(openBarrage, true); + base.uiBehaviour.m_barrageClose.SetVisible(openBarrage); + base.uiBehaviour.m_barrageOpen.SetVisible(!openBarrage); + } + + private void InitView() + { + this.SetView(XSingleton.singleton.OperationMode); + } + + public void SetView(XOperationMode mode) + { + switch (mode) + { + case XOperationMode.X25D: + base.uiBehaviour.m_SightPic.SetSprite("l_zdicon_1_1"); + base.uiBehaviour.m_SelectPic.SetSprite("l_zdicon_1_1"); + break; + case XOperationMode.X3D: + base.uiBehaviour.m_SightPic.SetSprite("l_zdicon_1_0"); + base.uiBehaviour.m_SelectPic.SetSprite("l_zdicon_1_0"); + break; + case XOperationMode.X3D_Free: + base.uiBehaviour.m_SightPic.SetSprite("l_zdicon_1_2"); + base.uiBehaviour.m_SelectPic.SetSprite("l_zdicon_1_2"); + break; + } + base.uiBehaviour.m_SightPic.MakePixelPerfect(); + base.uiBehaviour.m_SelectPic.MakePixelPerfect(); + base.uiBehaviour.m_SightSelect.gameObject.SetActive(false); + } + + public bool OnSightClick(IXUIButton sp) + { + bool activeSelf = base.uiBehaviour.m_SightSelect.gameObject.activeSelf; + if (activeSelf) + { + base.uiBehaviour.m_SightSelect.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_SightSelect.gameObject.SetActive(true); + } + return true; + } + + protected override void OnHide() + { + DlgBase.singleton.Show(false); + DlgBase.singleton.Show(false); + DlgBase.singleton.SetVisible(false, true); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_XOptionBattleHandler); + DlgHandlerBase.EnsureUnload(ref this.m_BattleCaptainPVPHandler); + DlgHandlerBase.EnsureUnload(ref this._HeroBattleHandler); + base.uiBehaviour.m_IndicateHandler.OnUnload(); + base.uiBehaviour.m_SpectateTeamMonitor.OnUnload(); + base.uiBehaviour.m_SpectateHandler.OnUnload(); + base.uiBehaviour.m_EnemyInfoHandler.OnUnload(); + DlgHandlerBase.EnsureUnload(ref this._yuyinHandler); + this._doc._SpectateSceneView = null; + base.OnUnload(); + } + + private void LoadYuyin() + { + YuyinIconType type = YuyinIconType.SPECTATE; + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Refresh(type); + } + } + + private void SetEnemyRoleInfo(string name, uint level) + { + } + + public void RefreshYuyin(ulong uid) + { + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Refresh(YuyinIconType.SPECTATE); + } + } + + private bool OnPauseClick(IXUIButton go) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag2 = sceneData != null; + if (flag2) + { + bool canPause = sceneData.CanPause; + if (canPause) + { + XSingleton.singleton.Pause = true; + } + } + bool flag3 = this.m_XOptionBattleHandler == null; + if (flag3) + { + bool flag4 = base.uiBehaviour != null; + if (flag4) + { + DlgHandlerBase.EnsureCreate(ref this.m_XOptionBattleHandler, base.uiBehaviour.m_canvas, true, DlgBase.singleton); + } + } + bool flag5 = this.m_XOptionBattleHandler != null && !this.m_XOptionBattleHandler.IsVisible(); + if (flag5) + { + this.m_XOptionBattleHandler.ShowUI(); + } + this.sceneType = XSingleton.singleton.SceneType; + result = true; + } + return result; + } + + public override void OnUpdate() + { + bool flag = !XSingleton.singleton.NeedFixedUpdate; + if (!flag) + { + base.OnUpdate(); + this.UpdateFPS(); + this.UpdateWifi(); + base.uiBehaviour.m_IndicateHandler.OnUpdate(); + bool flag2 = Time.time - this._last_check_time > 5f; + if (flag2) + { + this._last_check_time = Time.time; + this._doc.SendCheckTime(); + } + this.UpdateTime(); + this.UpdateLeftTime(); + bool flag3 = Time.unscaledTime - this.lastPingTime > 60f || this.lastPingTime < 0f; + if (flag3) + { + this.RefreshPing(); + this.lastPingTime = Time.unscaledTime; + } + bool flag4 = this.NoticeTime > 0f; + if (flag4) + { + bool flag5 = Time.time - this.NoticeTime > this._notice_duration; + if (flag5) + { + base.uiBehaviour.m_NoticeFrame.transform.localPosition = XGameUI.Far_Far_Away; + this.NoticeTime = 0f; + } + } + this.SpectateTeamMonitor.OnUpdate(); + this.EnemyInfoHandler.OnUpdate(); + bool flag6 = base.uiBehaviour.m_StrengthPresevedBar.IsVisible(); + if (flag6) + { + this.RefreshStrengthPresevedBar(); + } + } + } + + private void UpdateWifi() + { + XSingleton.singleton.UpdateWifi(null, this.m_uiBehaviour.m_sprwifi); + } + + private void RefreshPing() + { + XSingleton.singleton.RefreshPing(base.uiBehaviour.m_lblTime, base.uiBehaviour.m_sliderBattery, base.uiBehaviour.m_lblFree); + } + + public void UpdateFPS() + { + bool flag = !this._platform.IsPublish(); + if (flag) + { + bool showBuildLog = XSingleton.singleton.ShowBuildLog; + if (showBuildLog) + { + string syncModeString = XSingleton.singleton.GetSyncModeString(); + base.uiBehaviour.m_fps.SetText(string.Concat(new object[] + { + "Build:", + XLinkTimeStamp.BuildDateTime.ToString(), + "\n", + XSingleton.singleton.Fps.ToString("F1"), + syncModeString, + XSingleton.singleton.ServerIP, + "\nSend:", + XSingleton.singleton.SendBytes, + " Recv:", + XSingleton.singleton.RecvBytes, + " delay:", + XSingleton.singleton.GetDelay() + })); + } + else + { + base.uiBehaviour.m_fps.SetText(""); + } + } + } + + public void ShowNotice(string text, float duration, float pertime = 1f) + { + this._notice_collection.Clear(); + bool flag = string.IsNullOrEmpty(text); + if (!flag) + { + string[] array = text.Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + this._notice_collection.Add(array[i]); + } + this._notice_duration = duration; + this._notice_pertime = pertime; + bool flag2 = this.time_token > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this.time_token); + this.time_token = 0u; + } + bool flag3 = this._notice_collection.Count > 0; + if (flag3) + { + this.ShowSingleNotice(0); + } + } + } + + protected void ShowSingleNotice(object o) + { + int num = (int)o; + bool flag = num < this._notice_collection.Count; + if (flag) + { + string text = this._notice_collection[num]; + base.uiBehaviour.m_Notice.SetText(text); + base.uiBehaviour.m_NoticeFrame.transform.localPosition = base.uiBehaviour.m_NoticePos; + this.NoticeTime = Time.time; + this.time_token = XSingleton.singleton.SetTimer(this._notice_pertime, this._showSingleNoticeCb, num + 1); + bool flag2 = num == this._notice_collection.Count - 1; + if (flag2) + { + XSingleton.singleton.ExecuteNextCmd(); + this._notice_collection.Clear(); + } + } + } + + public void StopNotice() + { + bool flag = this.time_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.time_token); + this.time_token = 0u; + } + base.uiBehaviour.m_NoticeFrame.transform.localPosition = XGameUI.Far_Far_Away; + } + + public void ShowBigNotice(string text) + { + this._big_notice = (XSingleton.singleton.CreateFromPrefab("UI/Common/TutorialButtomText", true, false) as GameObject); + this._big_notice.transform.parent = XSingleton.singleton.UIRoot; + this._big_notice.transform.localPosition = Vector3.zero; + this._big_notice.transform.localScale = Vector3.one; + IXUILabel ixuilabel = this._big_notice.transform.Find("TutorialText").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + IXUITweenTool ixuitweenTool = this._big_notice.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + XSingleton.singleton.SetTimer(5f, this._endBigNoticeCb, null); + } + + protected void EndBigNotice(object o) + { + bool flag = this._big_notice != null; + if (flag) + { + XResourceLoaderMgr.SafeDestroy(ref this._big_notice, true); + XSingleton.singleton.ExecuteNextCmd(); + } + } + + public void SetLeftTime(uint seconds) + { + base.uiBehaviour.m_LeftTime.SetVisible(true); + this.leftTimeCounter.SetLeftTime(seconds, -1); + base.uiBehaviour.m_WarTime.SetVisible(false); + } + + public void SetTimeRecord() + { + base.uiBehaviour.m_WarTime.SetVisible(true); + this.timeConnter.SetForward(1); + this.timeConnter.SetLeftTime(0.01f, -1); + } + + public void ResetLeftTime(int seconds) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData.TimeCounter == null || sceneData.TimeCounter.Length < 1; + if (flag) + { + this.timeConnter.SetLeftTime((float)seconds, -1); + } + else + { + bool flag2 = sceneData.TimeCounter[0] == 1; + if (flag2) + { + this.leftTimeCounter.SetLeftTime((float)((int)sceneData.TimeCounter[1] - seconds), -1); + } + } + } + + private void UpdateLeftTime() + { + this.leftTimeCounter.Update(); + } + + private void UpdateTime() + { + this.timeConnter.Update(); + } + + public bool OnShowChatDlg(IXUIButton sp) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XSingleton.singleton.SetTimer(0.5f, this._onSwitchToTeamChatCb, null); + return true; + } + + public void OnSwitchToTeamChat(object obj) + { + DlgBase.singleton.SelectChatTeam(); + } + + public void OnVoiceButtonDrag(IXUIButton sp, Vector2 delta) + { + this.m_DragDistance += delta; + bool flag = this.m_DragDistance.magnitude >= 100f; + if (flag) + { + this.m_CancelRecord = true; + } + else + { + this.m_CancelRecord = false; + } + } + + public void OnVoiceButton(IXUIButton sp, bool state) + { + if (state) + { + XSingleton.singleton.AddLog("Press down", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_DragDistance = Vector2.zero; + this.m_IsRecording = true; + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, null); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, null); + } + } + else + { + XSingleton.singleton.AddLog("Press up", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_IsRecording = false; + DlgBase.singleton.SetActiveChannel(ChatChannelType.Team); + bool useApollo2 = XChatDocument.UseApollo; + if (useApollo2) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + } + } + + public void OnStopVoiceRecord() + { + bool isRecording = this.m_IsRecording; + if (isRecording) + { + DlgBase.singleton.SetActiveChannel(ChatChannelType.Team); + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + this.m_IsRecording = false; + } + } + + public bool OnCommandBtnClick(IXUIButton btn) + { + return true; + } + + private void OnAutoPlayTip(IXUISprite go) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_ARENA; + if (flag) + { + XSingleton.singleton.ShowSystemNoticeTip(XStringDefineProxy.GetString("ArenaAutoFight")); + } + else + { + XSingleton.singleton.ShowSystemNoticeTip(string.Format(XStringDefineProxy.GetString("AutoFightOpenLevel"), XSingleton.singleton.GetValue("AutoPlayUnlockLevel"))); + } + } + + public void ShowBattleVoice(ChatVoiceInfo info) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.m_ChatLabelCd = XSingleton.singleton.SetTimer((float)info.voiceTime + 2f, this._hideBattleChatUICb, info); + } + } + + public void HideBattleChatUI(object info) + { + this.m_ChatLabelCd = 0u; + } + + public void ShowCountDownFrame(bool status) + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_CountDownFrame.gameObject.SetActive(true); + base.uiBehaviour.m_CountDownTimeFrame.gameObject.SetActive(status); + base.uiBehaviour.m_CountDownBeginFrame.gameObject.SetActive(!status); + (base.uiBehaviour.m_CountDownTimeFrame.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool).PlayTween(status, -1f); + (base.uiBehaviour.m_CountDownBeginFrame.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool).PlayTween(!status, -1f); + } + } + + public void OnPlaySuperarmorFx(XEntity enemy, bool bBroken) + { + for (int i = 0; i < this.EnemyInfoHandler.EnemyList.Count; i++) + { + bool flag = this.EnemyInfoHandler.EnemyList[i].Entity == enemy; + if (flag) + { + this.EnemyInfoHandler.EnemyList[i].SetSuperArmorState(bBroken); + break; + } + } + } + + public void OnStopSuperarmorFx(XEntity enemy) + { + for (int i = 0; i < this.EnemyInfoHandler.EnemyList.Count; i++) + { + bool flag = this.EnemyInfoHandler.EnemyList[i].Entity == enemy; + if (flag) + { + this.EnemyInfoHandler.EnemyList[i].StopSuperArmorFx(); + break; + } + } + } + + public void OnProjectDamage(ProjectDamageResult damage, XEntity entity) + { + for (int i = 0; i < this.EnemyInfoHandler.EnemyList.Count; i++) + { + bool flag = this.EnemyInfoHandler.EnemyList[i].Entity == entity; + if (flag) + { + bool flag2 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.WatchTo != null && damage.Caster == XSingleton.singleton.Player.WatchTo.ID; + if (flag2) + { + this.EnemyInfoHandler.EnemyList[i].OnBeHit(damage); + } + break; + } + } + } + + public void SetupSpeedFx(XEntity enemy, bool enable, Color c) + { + for (int i = 0; i < this.EnemyInfoHandler.EnemyList.Count; i++) + { + bool flag = this.EnemyInfoHandler.EnemyList[i].Entity == enemy; + if (flag) + { + IXUISprite uiSuperArmorSpeedFx = this.EnemyInfoHandler.EnemyList[i].m_uiSuperArmorSpeedFx; + uiSuperArmorSpeedFx.gameObject.SetActive(enable); + uiSuperArmorSpeedFx.SetColor(c); + break; + } + } + } + + public void ShowStrengthPresevedBar(XEntity entity) + { + base.uiBehaviour.m_StrengthPresevedBar.SetVisible(true); + this._strength_preseved_entity = entity; + this._total_strength_preseved = (float)this._strength_preseved_entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentXULI_Basic); + this._current_strength_preseved = this._total_strength_preseved; + this.RefreshStrengthPresevedBar(); + } + + public void HideStrengthPresevedBar() + { + base.uiBehaviour.m_StrengthPresevedBar.SetVisible(false); + this._strength_preseved_entity = null; + this._total_strength_preseved = 1f; + this._current_strength_preseved = 0f; + } + + public void RefreshStrengthPresevedBar() + { + this._current_strength_preseved = (float)this._strength_preseved_entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentXULI_Basic); + base.uiBehaviour.m_StrengthPresevedBar.value = this._strength_preseved_precent; + } + + public bool OnViewClick(IXUIButton sp) + { + this.SetView((XOperationMode)sp.ID); + return true; + } + + public bool OnBarrageClick(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num == 1; + base.uiBehaviour.m_barrageOpen.SetVisible(!flag); + base.uiBehaviour.m_barrageClose.SetVisible(flag); + DlgBase.singleton.openBarrage = flag; + bool flag2 = !flag; + if (flag2) + { + DlgBase.singleton.ClearAll(); + } + DlgBase.singleton.SetVisible(flag, true); + return true; + } + + public bool OnShareClick(IXUIButton btn) + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + LiveType liveTypeBySceneType = XSpectateDocument.GetLiveTypeBySceneType(XSingleton.singleton.SceneType); + XSingleton.singleton.AddLog("Share btn click, live type is: " + liveTypeBySceneType, null, null, null, null, null, XDebugColor.XDebug_None); + uint num = (uint)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.World); + XInvitationDocument specificDocument2 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + XSpectateSceneDocument specificDocument3 = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + uint liveID = specificDocument3.liveRecordInfo.liveID; + DlgBase.singleton.DoOpenChatWindow(null); + bool flag = liveTypeBySceneType == LiveType.LIVE_PVP; + if (flag) + { + int tianTiLevel = specificDocument3.liveRecordInfo.tianTiLevel; + string name = specificDocument3.liveRecordInfo.nameInfos[0].roleInfo.name; + string name2 = specificDocument3.liveRecordInfo.nameInfos[1].roleInfo.name; + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100002u, new object[] + { + tianTiLevel, + name, + name2 + }), new Action(this.OnChatSend)); + } + else + { + bool flag2 = liveTypeBySceneType == LiveType.LIVE_NEST; + if (flag2) + { + string title = specificDocument.GetTitle(specificDocument3.liveRecordInfo); + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100003u, new object[] + { + title + }), new Action(this.OnChatSend)); + } + else + { + bool flag3 = liveTypeBySceneType == LiveType.LIVE_PROTECTCAPTAIN; + if (flag3) + { + List nameInfos = specificDocument3.liveRecordInfo.nameInfos; + string teamLeaderName = nameInfos[0].teamLeaderName; + string teamLeaderName2 = nameInfos[1].teamLeaderName; + for (int i = 0; i < nameInfos.Count; i++) + { + bool isLeft = nameInfos[i].isLeft; + if (isLeft) + { + bool flag4 = nameInfos[i].teamLeaderName != ""; + if (flag4) + { + teamLeaderName = nameInfos[i].teamLeaderName; + } + } + else + { + bool flag5 = nameInfos[i].teamLeaderName != ""; + if (flag5) + { + teamLeaderName2 = nameInfos[i].teamLeaderName; + } + } + } + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100004u, new object[] + { + teamLeaderName, + teamLeaderName2 + }), new Action(this.OnChatSend)); + } + else + { + bool flag6 = liveTypeBySceneType == LiveType.LIVE_GUILDBATTLE; + if (flag6) + { + string guildName = specificDocument3.liveRecordInfo.nameInfos[0].guildName; + string guildName2 = specificDocument3.liveRecordInfo.nameInfos[1].guildName; + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100005u, new object[] + { + guildName, + guildName2 + }), new Action(this.OnChatSend)); + } + else + { + bool flag7 = liveTypeBySceneType == LiveType.LIVE_DRAGON; + if (flag7) + { + string title2 = specificDocument.GetTitle(specificDocument3.liveRecordInfo); + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100006u, new object[] + { + title2 + }), new Action(this.OnChatSend)); + } + else + { + bool flag8 = liveTypeBySceneType == LiveType.LIVE_HEROBATTLE; + if (flag8) + { + string title3 = specificDocument.GetTitle(specificDocument3.liveRecordInfo); + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100008u, new object[] + { + title3 + }), new Action(this.OnChatSend)); + } + else + { + bool flag9 = liveTypeBySceneType == LiveType.LIVE_LEAGUEBATTLE; + if (flag9) + { + string teamName = specificDocument3.liveRecordInfo.nameInfos[0].teamName; + string teamName2 = specificDocument3.liveRecordInfo.nameInfos[1].teamName; + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100009u, new object[] + { + teamName, + teamName2 + }), new Action(this.OnChatSend)); + } + else + { + bool flag10 = liveTypeBySceneType == LiveType.LIVE_PVP2; + if (flag10) + { + string text = ""; + string text2 = ""; + for (int j = 0; j < specificDocument3.liveRecordInfo.nameInfos.Count; j++) + { + bool flag11 = specificDocument3.liveRecordInfo.nameInfos[j].teamLeaderName != ""; + if (flag11) + { + bool isLeft2 = specificDocument3.liveRecordInfo.nameInfos[j].isLeft; + if (isLeft2) + { + text = specificDocument3.liveRecordInfo.nameInfos[j].teamLeaderName; + } + else + { + text2 = specificDocument3.liveRecordInfo.nameInfos[j].teamLeaderName; + } + } + } + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100010u, new object[] + { + text, + text2 + }), new Action(this.OnChatSend)); + } + else + { + bool flag12 = liveTypeBySceneType == LiveType.LIVE_CUSTOMPK; + if (flag12) + { + string name3 = specificDocument3.liveRecordInfo.nameInfos[0].roleInfo.name; + string name4 = specificDocument3.liveRecordInfo.nameInfos[1].roleInfo.name; + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100011u, new object[] + { + name3, + name4 + }), new Action(this.OnChatSend)); + } + else + { + bool flag13 = liveTypeBySceneType == LiveType.LIVE_CROSSGVG; + if (flag13) + { + string guildName3 = specificDocument3.liveRecordInfo.nameInfos[0].guildName; + string guildName4 = specificDocument3.liveRecordInfo.nameInfos[1].guildName; + DlgBase.singleton.RegistLinkSend(specificDocument2.GetSpectateLinkString(100013u, new object[] + { + guildName3, + guildName4 + }), new Action(this.OnChatSend)); + } + } + } + } + } + } + } + } + } + } + return true; + } + + private void OnChatSend() + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + LiveType liveTypeBySceneType = XSpectateDocument.GetLiveTypeBySceneType(XSingleton.singleton.SceneType); + XSingleton.singleton.AddLog("Share btn click, live type is:" + liveTypeBySceneType, null, null, null, null, null, XDebugColor.XDebug_None); + uint num = (uint)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.World); + XInvitationDocument specificDocument2 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + XSpectateSceneDocument specificDocument3 = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + uint liveID = specificDocument3.liveRecordInfo.liveID; + bool flag = liveTypeBySceneType == LiveType.LIVE_PVP; + if (flag) + { + int tianTiLevel = specificDocument3.liveRecordInfo.tianTiLevel; + string name = specificDocument3.liveRecordInfo.nameInfos[0].roleInfo.name; + string name2 = specificDocument3.liveRecordInfo.nameInfos[1].roleInfo.name; + specificDocument2.SendSpectateInvitation(100002u, liveID, liveTypeBySceneType, new object[] + { + tianTiLevel, + name, + name2 + }); + } + else + { + bool flag2 = liveTypeBySceneType == LiveType.LIVE_NEST; + if (flag2) + { + string title = specificDocument.GetTitle(specificDocument3.liveRecordInfo); + specificDocument2.SendSpectateInvitation(100003u, liveID, liveTypeBySceneType, new object[] + { + title + }); + } + else + { + bool flag3 = liveTypeBySceneType == LiveType.LIVE_PROTECTCAPTAIN; + if (flag3) + { + List nameInfos = specificDocument3.liveRecordInfo.nameInfos; + string teamLeaderName = nameInfos[0].teamLeaderName; + string teamLeaderName2 = nameInfos[1].teamLeaderName; + for (int i = 0; i < nameInfos.Count; i++) + { + bool isLeft = nameInfos[i].isLeft; + if (isLeft) + { + bool flag4 = nameInfos[i].teamLeaderName != ""; + if (flag4) + { + teamLeaderName = nameInfos[i].teamLeaderName; + } + } + else + { + bool flag5 = nameInfos[i].teamLeaderName != ""; + if (flag5) + { + teamLeaderName2 = nameInfos[i].teamLeaderName; + } + } + } + specificDocument2.SendSpectateInvitation(100004u, liveID, liveTypeBySceneType, new object[] + { + teamLeaderName, + teamLeaderName2 + }); + } + else + { + bool flag6 = liveTypeBySceneType == LiveType.LIVE_GUILDBATTLE; + if (flag6) + { + string guildName = specificDocument3.liveRecordInfo.nameInfos[0].guildName; + string guildName2 = specificDocument3.liveRecordInfo.nameInfos[1].guildName; + specificDocument2.SendSpectateInvitation(100005u, liveID, liveTypeBySceneType, new object[] + { + guildName, + guildName2 + }); + } + else + { + bool flag7 = liveTypeBySceneType == LiveType.LIVE_DRAGON; + if (flag7) + { + string title2 = specificDocument.GetTitle(specificDocument3.liveRecordInfo); + specificDocument2.SendSpectateInvitation(100006u, liveID, liveTypeBySceneType, new object[] + { + title2 + }); + } + else + { + bool flag8 = liveTypeBySceneType == LiveType.LIVE_HEROBATTLE; + if (flag8) + { + string title3 = specificDocument.GetTitle(specificDocument3.liveRecordInfo); + specificDocument2.SendSpectateInvitation(100008u, liveID, liveTypeBySceneType, new object[] + { + title3 + }); + } + else + { + bool flag9 = liveTypeBySceneType == LiveType.LIVE_LEAGUEBATTLE; + if (flag9) + { + string teamName = specificDocument3.liveRecordInfo.nameInfos[0].teamName; + string teamName2 = specificDocument3.liveRecordInfo.nameInfos[1].teamName; + specificDocument2.SendSpectateInvitation(100009u, liveID, liveTypeBySceneType, new object[] + { + teamName, + teamName2 + }); + } + else + { + bool flag10 = liveTypeBySceneType == LiveType.LIVE_PVP2; + if (flag10) + { + string text = ""; + string text2 = ""; + for (int j = 0; j < specificDocument3.liveRecordInfo.nameInfos.Count; j++) + { + bool flag11 = specificDocument3.liveRecordInfo.nameInfos[j].teamLeaderName != ""; + if (flag11) + { + bool isLeft2 = specificDocument3.liveRecordInfo.nameInfos[j].isLeft; + if (isLeft2) + { + text = specificDocument3.liveRecordInfo.nameInfos[j].teamLeaderName; + } + else + { + text2 = specificDocument3.liveRecordInfo.nameInfos[j].teamLeaderName; + } + } + } + specificDocument2.SendSpectateInvitation(100010u, liveID, liveTypeBySceneType, new object[] + { + text, + text2 + }); + } + else + { + bool flag12 = liveTypeBySceneType == LiveType.LIVE_CUSTOMPK; + if (flag12) + { + string name3 = specificDocument3.liveRecordInfo.nameInfos[0].roleInfo.name; + string name4 = specificDocument3.liveRecordInfo.nameInfos[1].roleInfo.name; + specificDocument2.SendSpectateInvitation(100011u, liveID, liveTypeBySceneType, new object[] + { + name3, + name4 + }); + } + else + { + bool flag13 = liveTypeBySceneType == LiveType.LIVE_CROSSGVG; + if (flag13) + { + string guildName3 = specificDocument3.liveRecordInfo.nameInfos[0].guildName; + string guildName4 = specificDocument3.liveRecordInfo.nameInfos[1].guildName; + specificDocument2.SendSpectateInvitation(100013u, liveID, liveTypeBySceneType, new object[] + { + guildName3, + guildName4 + }); + } + } + } + } + } + } + } + } + } + } + } + + public void ShowBackToMainCityTips() + { + string @string = XStringDefineProxy.GetString("ERR_WATCH_LIVEISOVER"); + string string2 = XStringDefineProxy.GetString("Spectate_Goon"); + string string3 = XStringDefineProxy.GetString("LEVEL_REWARD_RETURN"); + XSingleton.singleton.ShowModalDialog(@string, string2, string3, new ButtonClickEventHandler(this.OnGoOnBtnClick), new ButtonClickEventHandler(this.OnBackToMainCityBtnClick), false, XTempTipDefine.OD_START, 251); + } + + private bool OnBackToMainCityBtnClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this._doc.LevelScene(); + return true; + } + + private bool OnGoOnBtnClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetVisible(true, true); + return true; + } + + public float GetLeftTime() + { + return this.leftTimeCounter.GetFloatLeftTime(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpectateSceneView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpectateSceneView.cs.meta new file mode 100644 index 00000000..2068df55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpectateSceneView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fa6388301570c2045bdb149fa1226938 +timeCreated: 1611404903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpectateView.cs b/Client/Assets/Scripts/XMainClient/UI/SpectateView.cs new file mode 100644 index 00000000..ff0bcd9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpectateView.cs @@ -0,0 +1,666 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpectateView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/SpectateDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Spectate); + } + } + + private XSpectateDocument _doc; + + private string PROFRESSION_ICON_ATLAS = "SkillIcon/SkillTree"; + + private static readonly string GUILD_ICON_ATLAS = "common/Billboard"; + + private static readonly string TAG_ICON_ATLAS = "common/Universal"; + + private string _guildTagStr; + + private string _friendTagStr; + + private string _crossTagStr; + + private string _leagueTagStr; + + private string _splitSpace = " "; + + private string _splitBigSpace = " "; + + private float LastLevelSceneTime = 0f; + + private IXUICheckBox _recommendCheckBox; + + private IXUICheckBox _spectateTabCheckBox; + + private IXUIButton _currClickBtn; + + private int _tabCount; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + this._guildTagStr = XLabelSymbolHelper.FormatImage(SpectateView.TAG_ICON_ATLAS, "chat_tag_2"); + this._friendTagStr = XLabelSymbolHelper.FormatImage(SpectateView.TAG_ICON_ATLAS, "chat_tag_8"); + this._crossTagStr = XLabelSymbolHelper.FormatImage(SpectateView.TAG_ICON_ATLAS, "chat_tag_11"); + this._leagueTagStr = XLabelSymbolHelper.FormatImage(SpectateView.TAG_ICON_ATLAS, "chat_tag_9"); + this.SetupTabs(); + List list = new List(); + list.Add(0); + list.Add(1); + List list2 = new List(); + for (int i = 0; i < 2; i++) + { + list2.Add(string.Format("SpectateTags_{0}", i.ToString())); + } + base.uiBehaviour.m_tabControl.SetupTabs(list, list2, new XUITabControl.UITabControlCallback(this.OnTagCheckBoxClick), false, 1f, -1, true); + this._spectateTabCheckBox = base.uiBehaviour.m_tabControl.GetByCheckBoxId(0UL); + this.PROFRESSION_ICON_ATLAS = XSingleton.singleton.GetValue("PROFRESSION_ICON_ATLAS"); + base.uiBehaviour.m_SettingBtn.SetVisible(XSingleton.singleton.CurrentStage.Stage == EXStage.Hall); + } + + protected override void OnShow() + { + base.OnShow(); + this._spectateTabCheckBox.bChecked = true; + this.OnTagCheckBoxClick(0UL); + base.uiBehaviour.m_PKTips.SetVisible(false); + base.uiBehaviour.m_SettingFrame.SetActive(false); + base.uiBehaviour.m_BroadcastCamera.SetVisible(false); + this.MyRecordInit(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_RefreshBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshBtnClick)); + base.uiBehaviour.m_PreviousBtn.ID = 0UL; + base.uiBehaviour.m_PreviousBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.TurnPageBtnClick)); + base.uiBehaviour.m_NextBtn.ID = 1UL; + base.uiBehaviour.m_NextBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.TurnPageBtnClick)); + base.uiBehaviour.m_BroadcastCamera.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBroadcastCamera)); + base.uiBehaviour.m_SettingBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSettingBtnClick)); + base.uiBehaviour.m_SettingCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSettingCloseBtnClick)); + base.uiBehaviour.m_SettingSureBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSettingOkBtnClick)); + base.uiBehaviour.m_SettingAllow.ID = 0UL; + base.uiBehaviour.m_SettingDeny.ID = 1UL; + base.uiBehaviour.m_SettingAllow.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSettingCheckBoxClick)); + base.uiBehaviour.m_SettingDeny.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSettingCheckBoxClick)); + } + + private void SetupTabs() + { + base.uiBehaviour.m_SpectateTabs.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_SpectateTabs.TplPos; + this._tabCount = XSingleton.singleton.GetInt("Spectate_PVP_TabCount"); + for (int i = 0; i < this._tabCount; i++) + { + GameObject gameObject = base.uiBehaviour.m_SpectateTabs.FetchGameObject(false); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)i + 1L); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSpectateTabsClick)); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/Selected/TextLabel").GetComponent("XUILabel") as IXUILabel; + string @string = XStringDefineProxy.GetString("Spectate_Type_" + (i + 1).ToString()); + ixuilabel.SetText(@string); + ixuilabel2.SetText(@string); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(base.uiBehaviour.m_SpectateTabs.TplHeight * i), 0f); + bool flag = i == 0; + if (flag) + { + this._recommendCheckBox = ixuicheckBox; + } + } + } + + private void SpectateInit() + { + this._recommendCheckBox.bChecked = true; + this.OnSpectateTabsClick(this._recommendCheckBox); + } + + private void MyRecordInit() + { + this._doc.SendQueryMyLiveInfo(); + } + + protected bool OnCloseClicked(IXUIButton go) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.SetVisibleWithAnimation(false, null); + } + else + { + bool flag2 = Time.time - this.LastLevelSceneTime < 5f; + if (flag2) + { + return false; + } + this.LastLevelSceneTime = Time.time; + XSingleton.singleton.ReqLeaveScene(); + } + return true; + } + + private bool OnSpectateTabsClick(IXUICheckBox icheckBox) + { + bool flag = !icheckBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = icheckBox.ID == 2UL; + if (flag2) + { + base.uiBehaviour.m_PKTips.SetVisible(true); + base.uiBehaviour.m_PKTips.SetText(XStringDefineProxy.GetString("Spectate_PK_Tips")); + } + else + { + base.uiBehaviour.m_PKTips.SetVisible(false); + } + this._doc.SendQuerySpectateInfo((int)icheckBox.ID); + result = true; + } + return result; + } + + private void OnTagCheckBoxClick(ulong id) + { + bool flag = id == 0UL; + if (flag) + { + base.uiBehaviour.m_SpectateFrame.SetActive(true); + this.SpectateInit(); + base.uiBehaviour.m_MyLiveRecordFrame.SetActive(false); + } + else + { + base.uiBehaviour.m_SpectateFrame.SetActive(false); + base.uiBehaviour.m_MyLiveRecordFrame.SetActive(true); + this.RefreshMyRecord(); + } + } + + private void TurnPageBtnClick(IXUISprite btn) + { + bool flag = btn.ID == 0UL; + int num; + if (flag) + { + num = this._doc.CurrPage - 1; + } + else + { + num = this._doc.CurrPage + 1; + } + bool flag2 = num < 0 || num >= this._doc.MaxPage; + if (!flag2) + { + this.RefreshSpectate(num); + } + } + + private bool OnBroadcastCamera(IXUIButton btn) + { + XSingleton.singleton.OnOpenWebView(); + return true; + } + + private bool OnRefreshBtnClick(IXUIButton btn) + { + this._doc.SendQuerySpectateInfo(this._doc.CurrTabs); + return true; + } + + private bool OnWatchLiveBtnClick(IXUIButton btn) + { + this._currClickBtn = btn; + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + specificDocument.WatchNum = this._doc.SpectateRecord[(int)btn.ID].watchNum; + specificDocument.CommendNum = this._doc.SpectateRecord[(int)btn.ID].commendNum; + this._doc.EnterSpectateBattle(this._doc.SpectateRecord[(int)btn.ID].liveID, this._doc.SpectateRecord[(int)btn.ID].liveType); + return true; + } + + public void SetWatchBtnGrey(bool isOver) + { + if (isOver) + { + this._doc.SpectateRecord[(int)this._currClickBtn.ID].canEnter = false; + } + this._currClickBtn.SetGrey(false); + } + + public void RefreshSpectate(int page) + { + base.uiBehaviour.m_EmptyTips.SetActive(this._doc.MaxPage == 0); + base.uiBehaviour.m_PageNum.gameObject.SetActive(this._doc.MaxPage != 0); + base.uiBehaviour.m_SpectateLivePool.ReturnAll(false); + bool flag = this._doc.MaxPage == 0; + if (flag) + { + this._doc.CurrPage = 0; + base.uiBehaviour.m_PreviousBtn.gameObject.SetActive(false); + base.uiBehaviour.m_NextBtn.gameObject.SetActive(false); + } + else + { + this._doc.CurrPage = page; + base.uiBehaviour.m_PreviousBtn.gameObject.SetActive(page > 0); + base.uiBehaviour.m_NextBtn.gameObject.SetActive(page < this._doc.MaxPage - 1); + base.uiBehaviour.m_PageNum.SetText((page + 1).ToString() + "/" + this._doc.MaxPage.ToString()); + for (int i = 0; i < this._doc.ITEMPERPAGE; i++) + { + int num = page * this._doc.ITEMPERPAGE + i; + bool flag2 = num < 0 || num >= this._doc.SpectateRecord.Count; + GameObject gameObject; + if (flag2) + { + for (int j = i; j < this._doc.ITEMPERPAGE; j++) + { + gameObject = base.uiBehaviour.m_SpectateLivePool.FetchGameObject(false); + gameObject.SetActive(false); + } + break; + } + OneLiveRecordInfo info = this._doc.SpectateRecord[num]; + gameObject = base.uiBehaviour.m_SpectateLivePool.FetchGameObject(false); + Vector3 tplPos = base.uiBehaviour.m_SpectateLivePool.TplPos; + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * base.uiBehaviour.m_SpectateLivePool.TplHeight), 0f); + this.SetMessageInTpl(gameObject, info, true, num); + } + } + } + + public void RefreshMyRecord() + { + this.SetVisibleSettingTextState(); + IXUILabel ixuilabel = base.uiBehaviour.m_MyLiveRecordFrame.transform.Find("Watch").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("Spectate_MyRecord_TotalWatchText"), this._doc.TotalWatch)); + IXUILabel ixuilabel2 = base.uiBehaviour.m_MyLiveRecordFrame.transform.Find("Commend").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("Spectate_MyRecord_TotalCommendText"), this._doc.TotalCommend)); + GameObject gameObject = base.uiBehaviour.m_MyLiveRecordFrame.transform.Find("NA").gameObject; + gameObject.SetActive(this._doc.WatchMostRecord == null); + GameObject gameObject2 = base.uiBehaviour.m_MyLiveRecordFrame.transform.Find("UpView/Watch/itemTpl").gameObject; + gameObject2.SetActive(this._doc.WatchMostRecord != null); + bool flag = this._doc.WatchMostRecord != null; + if (flag) + { + this.SetMessageInTpl(gameObject2, this._doc.WatchMostRecord, false, 0); + } + GameObject gameObject3 = base.uiBehaviour.m_MyLiveRecordFrame.transform.Find("UpView/Commend/itemTpl").gameObject; + gameObject3.SetActive(this._doc.CommendMostRecord != null); + bool flag2 = this._doc.CommendMostRecord != null; + if (flag2) + { + this.SetMessageInTpl(gameObject3, this._doc.CommendMostRecord, false, 0); + } + base.uiBehaviour.m_MyLiveUpView.SetActive(this._doc.WatchMostRecord != null); + base.uiBehaviour.m_MyLiveDownView.SetActive(this._doc.WatchMostRecord != null); + base.uiBehaviour.m_MyLivePool.ReturnAll(false); + for (int i = 0; i < this._doc.MyRecentRecord.Count; i++) + { + GameObject gameObject4 = base.uiBehaviour.m_MyLivePool.FetchGameObject(false); + Vector3 tplPos = base.uiBehaviour.m_MyLivePool.TplPos; + gameObject4.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * base.uiBehaviour.m_MyLivePool.TplHeight), 0f); + this.SetMessageInTpl(gameObject4, this._doc.MyRecentRecord[i], false, 0); + } + } + + private void SetMessageInTpl(GameObject go, OneLiveRecordInfo info, bool showWatchBtn, int index = 0) + { + if (showWatchBtn) + { + IXUIButton ixuibutton = go.transform.Find("Bg/Message/WatchBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWatchLiveBtnClick)); + ixuibutton.SetGrey(info.canEnter); + int num = this._doc.CurrTime - info.beginTime; + bool flag = num < 0; + if (flag) + { + num = 0; + } + IXUILabel ixuilabel = go.transform.Find("Bg/Desc/Time").GetComponent("XUILabel") as IXUILabel; + bool flag2 = num < 3600; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.TimeAccFormatString(num, 3, 0) + XStringDefineProxy.GetString("AGO")); + } + else + { + ixuilabel.SetText(XSingleton.singleton.TimeAccFormatString(num, 2, 0) + XStringDefineProxy.GetString("AGO")); + } + } + IXUILabel ixuilabel2 = go.transform.Find("Bg/Desc/Commend/Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(info.commendNum.ToString() + XStringDefineProxy.GetString("Spectate_times")); + IXUILabel ixuilabel3 = go.transform.Find("Bg/Desc/Watch/Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(info.watchNum.ToString() + XStringDefineProxy.GetString("Spectate_times")); + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("Bg/Desc/Title").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string text = this._doc.GetTitle(info); + bool hasGuild = info.hasGuild; + if (hasGuild) + { + text += this._guildTagStr; + } + bool hasFriend = info.hasFriend; + if (hasFriend) + { + text += this._friendTagStr; + } + bool isCross = info.isCross; + if (isCross) + { + text += this._crossTagStr; + } + ixuilabelSymbol.InputText = text; + GameObject gameObject = go.transform.Find("Bg/Message/1V1").gameObject; + GameObject gameObject2 = go.transform.Find("Bg/Message/NVN").gameObject; + GameObject gameObject3 = go.transform.Find("Bg/Message/Center").gameObject; + GameObject gameObject4 = go.transform.Find("Bg/Message/VS").gameObject; + bool flag3 = info.liveType != LiveType.LIVE_DRAGON && info.liveType != LiveType.LIVE_NEST; + bool flag4 = info.liveType == LiveType.LIVE_PVP2 || ((info.liveType == LiveType.LIVE_PROTECTCAPTAIN || info.liveType == LiveType.LIVE_HEROBATTLE) && showWatchBtn); + gameObject.SetActive(flag3 && !flag4); + gameObject2.SetActive(flag3 && flag4); + gameObject3.SetActive(!flag3); + gameObject4.SetActive(flag3); + IXUILabelSymbol ixuilabelSymbol2 = gameObject.transform.Find("L").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol3 = gameObject.transform.Find("R").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol4 = gameObject2.transform.Find("DL").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol5 = gameObject2.transform.Find("DR").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol6 = gameObject2.transform.Find("UL").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol7 = gameObject2.transform.Find("UR").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol8 = gameObject3.transform.Find("Min").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string text2 = ""; + string text3 = ""; + switch (info.liveType) + { + case LiveType.LIVE_PVP: + case LiveType.LIVE_CUSTOMPK: + ixuilabelSymbol2.InputText = this.GetProIconString(info.nameInfos[0].roleInfo.type) + this._splitSpace + info.nameInfos[0].roleInfo.name; + ixuilabelSymbol3.InputText = this.GetProIconString(info.nameInfos[1].roleInfo.type) + this._splitSpace + info.nameInfos[1].roleInfo.name; + return; + case LiveType.LIVE_NEST: + case LiveType.LIVE_DRAGON: + for (int i = 0; i < info.nameInfos.Count; i++) + { + bool flag5 = info.nameInfos[i].teamLeaderName != ""; + if (flag5) + { + text2 = string.Format(XStringDefineProxy.GetString("TEAM_NAME"), info.nameInfos[i].teamLeaderName); + } + } + text2 += this._splitBigSpace; + for (int j = 0; j < info.nameInfos.Count; j++) + { + text2 += this.GetProIconString(info.nameInfos[j].roleInfo.type); + } + ixuilabelSymbol8.InputText = text2; + return; + case LiveType.LIVE_PROTECTCAPTAIN: + case LiveType.LIVE_HEROBATTLE: + if (showWatchBtn) + { + for (int k = 0; k < info.nameInfos.Count; k++) + { + bool isLeft = info.nameInfos[k].isLeft; + if (isLeft) + { + bool flag6 = info.nameInfos[k].teamLeaderName != ""; + if (flag6) + { + ixuilabelSymbol6.InputText = string.Format(XStringDefineProxy.GetString("TEAM_NAME"), info.nameInfos[k].teamLeaderName); + } + text2 += this.GetProIconString(info.nameInfos[k].roleInfo.type); + } + else + { + bool flag7 = info.nameInfos[k].teamLeaderName != ""; + if (flag7) + { + ixuilabelSymbol7.InputText = string.Format(XStringDefineProxy.GetString("TEAM_NAME"), info.nameInfos[k].teamLeaderName); + } + text3 += this.GetProIconString(info.nameInfos[k].roleInfo.type); + } + } + ixuilabelSymbol4.InputText = text2; + ixuilabelSymbol5.InputText = text3; + } + else + { + for (int l = 0; l < info.nameInfos.Count; l++) + { + bool isLeft2 = info.nameInfos[l].isLeft; + if (isLeft2) + { + bool flag8 = info.nameInfos[l].teamLeaderName != ""; + if (flag8) + { + text2 = string.Format(XStringDefineProxy.GetString("TEAM_NAME"), info.nameInfos[l].teamLeaderName); + } + } + else + { + bool flag9 = info.nameInfos[l].teamLeaderName != ""; + if (flag9) + { + text3 = string.Format(XStringDefineProxy.GetString("TEAM_NAME"), info.nameInfos[l].teamLeaderName); + } + } + } + text2 += this._splitSpace; + text3 += this._splitSpace; + for (int m = 0; m < info.nameInfos.Count; m++) + { + bool isLeft3 = info.nameInfos[m].isLeft; + if (isLeft3) + { + text2 += this.GetProIconString(info.nameInfos[m].roleInfo.type); + } + else + { + text3 += this.GetProIconString(info.nameInfos[m].roleInfo.type); + } + } + ixuilabelSymbol2.InputText = text2; + ixuilabelSymbol3.InputText = text3; + } + return; + case LiveType.LIVE_GUILDBATTLE: + ixuilabelSymbol2.InputText = this.GetGuildIconString(info.nameInfos[0].guildIcon) + info.nameInfos[0].guildName; + ixuilabelSymbol3.InputText = this.GetGuildIconString(info.nameInfos[1].guildIcon) + info.nameInfos[1].guildName; + return; + case LiveType.LIVE_LEAGUEBATTLE: + ixuilabelSymbol2.InputText = string.Format("{0}{1}", this._leagueTagStr, info.nameInfos[0].teamName); + ixuilabelSymbol3.InputText = string.Format("{0}{1}", this._leagueTagStr, info.nameInfos[1].teamName); + return; + case LiveType.LIVE_PVP2: + { + bool flag10 = true; + bool flag11 = true; + ixuilabelSymbol6.SetVisible(false); + ixuilabelSymbol4.SetVisible(false); + ixuilabelSymbol7.SetVisible(false); + ixuilabelSymbol5.SetVisible(false); + for (int n = 0; n < info.nameInfos.Count; n++) + { + bool isLeft4 = info.nameInfos[n].isLeft; + if (isLeft4) + { + bool flag12 = flag10; + if (flag12) + { + flag10 = false; + ixuilabelSymbol6.SetVisible(true); + ixuilabelSymbol6.InputText = this.GetProIconString(info.nameInfos[n].roleInfo.type) + this._splitSpace + info.nameInfos[n].roleInfo.name; + } + else + { + ixuilabelSymbol4.SetVisible(true); + ixuilabelSymbol4.InputText = this.GetProIconString(info.nameInfos[n].roleInfo.type) + this._splitSpace + info.nameInfos[n].roleInfo.name; + } + } + else + { + bool flag13 = flag11; + if (flag13) + { + flag11 = false; + ixuilabelSymbol7.SetVisible(true); + ixuilabelSymbol7.InputText = this.GetProIconString(info.nameInfos[n].roleInfo.type) + this._splitSpace + info.nameInfos[n].roleInfo.name; + } + else + { + ixuilabelSymbol5.SetVisible(true); + ixuilabelSymbol5.InputText = this.GetProIconString(info.nameInfos[n].roleInfo.type) + this._splitSpace + info.nameInfos[n].roleInfo.name; + } + } + } + return; + } + case LiveType.LIVE_CROSSGVG: + { + string arg = this.GetGuildIconString(info.nameInfos[0].guildIcon) + info.nameInfos[0].guildName; + ixuilabelSymbol2.InputText = string.Format(XStringDefineProxy.GetString("CROSS_GVG_GUILDNAME"), info.nameInfos[0].serverid, arg); + arg = this.GetGuildIconString(info.nameInfos[1].guildIcon) + info.nameInfos[1].guildName; + ixuilabelSymbol3.InputText = string.Format(XStringDefineProxy.GetString("CROSS_GVG_GUILDNAME"), info.nameInfos[1].serverid, arg); + return; + } + } + XSingleton.singleton.AddErrorLog("UnDefine LiveType.", null, null, null, null, null); + } + + private string GetProIconString(RoleType type) + { + int profID = XFastEnumIntEqualityComparer.ToInt(type); + return XLabelSymbolHelper.FormatImage(this.PROFRESSION_ICON_ATLAS, XSingleton.singleton.GetProfIcon(profID)); + } + + private string GetGuildIconString(int guildIconID) + { + return XLabelSymbolHelper.FormatImage(SpectateView.GUILD_ICON_ATLAS, "ghicon_" + guildIconID.ToString()); + } + + private bool OnSettingBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_SettingFrame.SetActive(true); + base.uiBehaviour.m_SettingDesc.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("SpectateSettingStr"))); + this._doc.TempSetting = this._doc.VisibleSetting; + base.uiBehaviour.m_SettingAllow.bChecked = this._doc.TempSetting; + base.uiBehaviour.m_SettingDeny.bChecked = !this._doc.TempSetting; + return true; + } + + private bool OnSettingCloseBtnClick(IXUIButton btn) + { + base.uiBehaviour.m_SettingFrame.SetActive(false); + return true; + } + + private bool OnSettingCheckBoxClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this._doc.TempSetting = (icb.ID == 0UL); + result = true; + } + return result; + } + + private bool OnSettingOkBtnClick(IXUIButton btn) + { + RpcC2G_ChangeLiveVisible rpcC2G_ChangeLiveVisible = new RpcC2G_ChangeLiveVisible(); + rpcC2G_ChangeLiveVisible.oArg.visible = this._doc.TempSetting; + XSingleton.singleton.Send(rpcC2G_ChangeLiveVisible); + this.OnSettingCloseBtnClick(null); + return true; + } + + public void SetVisibleSettingTextState() + { + base.uiBehaviour.m_VisText.SetActive(this._doc.VisibleSetting); + base.uiBehaviour.m_UnVisText.SetActive(!this._doc.VisibleSetting); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpectateView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpectateView.cs.meta new file mode 100644 index 00000000..af64df85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpectateView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 64324c1b997cb5f44a15352612d88017 +timeCreated: 1611403847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteEggLotteryType.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteEggLotteryType.cs new file mode 100644 index 00000000..9b0c73bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteEggLotteryType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient.UI +{ + public enum SpriteEggLotteryType + { + None, + Normal, + Special, + Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteEggLotteryType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteEggLotteryType.cs.meta new file mode 100644 index 00000000..c8a82b6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteEggLotteryType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20ba8b28e3af30b4fb80186d455b1b59 +timeCreated: 1611403408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteFightFrame.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteFightFrame.cs new file mode 100644 index 00000000..529b38db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteFightFrame.cs @@ -0,0 +1,218 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpriteFightFrame : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteFightFrame"; + } + } + + private XSpriteSystemDocument _doc; + + public SpriteSelectHandler _SpriteSelectHandler; + + public XSpriteAvatarHandler[] _SpriteAvatarHandler = new XSpriteAvatarHandler[4]; + + private IXUISprite[] _IXUISpriteList = new IXUISprite[4]; + + private IXUILabel m_Tips; + + private List m_SetLeaderBtnList = new List(); + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this.RefreshPosition(); + this.m_Tips = (base.PanelObject.transform.Find("Tips").GetComponent("XUILabel") as IXUILabel); + for (int i = 0; i < 3; i++) + { + IXUISprite ixuisprite = base.PanelObject.transform.Find(string.Format("Avatar{0}/Open/CBtn", i + 1)).GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)(i + 1)); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSwapTeamLeaderClick)); + this.m_SetLeaderBtnList.Add(ixuisprite); + } + DlgHandlerBase.EnsureCreate(ref this._SpriteSelectHandler, base.PanelObject.transform.Find("SelectHandlerParent"), false, this); + } + + public void RefreshPosition() + { + for (int i = 0; i < 4; i++) + { + bool flag = (long)i < (long)((ulong)this._doc.MaxFightNum); + GameObject gameObject = base.PanelObject.transform.Find(string.Format("Avatar{0}/Open", i)).gameObject; + GameObject gameObject2 = base.PanelObject.transform.Find(string.Format("Avatar{0}/UnOpen", i)).gameObject; + gameObject.SetActive(flag); + gameObject2.SetActive(!flag); + bool flag2 = flag; + if (flag2) + { + DlgHandlerBase.EnsureCreate(ref this._SpriteAvatarHandler[i], gameObject.transform.Find("AvatarHandlerParent"), true, this); + this._IXUISpriteList[i] = (gameObject.GetComponent("XUISprite") as IXUISprite); + } + else + { + IXUILabel ixuilabel = gameObject2.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL"), this._doc.PositionLevelCondition[i])); + } + } + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._SpriteSelectHandler); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this._SpriteSelectHandler.SetVisible(true); + this.SetSpriteAvatarHandlerVisible(true); + this.RefreshFightList(); + } + + protected override void OnHide() + { + this._SpriteSelectHandler.SetVisible(false); + this.SetSpriteAvatarHandlerVisible(false); + base.OnHide(); + } + + private void SetSpriteAvatarHandlerVisible(bool visible) + { + for (int i = 0; i < this._SpriteAvatarHandler.Length; i++) + { + bool flag = this._SpriteAvatarHandler[i] != null; + if (flag) + { + this._SpriteAvatarHandler[i].SetVisible(visible); + } + } + } + + public void RefreshFightList() + { + bool flag = this._doc.FightingList[0] == 0UL; + if (flag) + { + this.m_Tips.SetText(XStringDefineProxy.GetString("SpriteSkill_NoneCaptainTips")); + } + else + { + int indexByUid = this._doc.GetIndexByUid(this._doc.FightingList[0]); + bool flag2 = indexByUid == -1; + if (flag2) + { + this._doc.FightingList[0] = 0UL; + this.m_Tips.SetText(XStringDefineProxy.GetString("SpriteSkill_NoneCaptainTips")); + } + else + { + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(this._doc.SpriteList[indexByUid].SpriteID); + SpriteSkill.RowData spriteSkillData = this._doc.GetSpriteSkillData((short)bySpriteID.SpriteSkillID, true, this._doc.SpriteList[indexByUid].EvolutionLevel); + this.m_Tips.SetText(spriteSkillData.Tips); + } + } + int num = 0; + while ((long)num < (long)((ulong)this._doc.MaxFightNum)) + { + bool flag3 = num != 0; + if (flag3) + { + this.m_SetLeaderBtnList[num - 1].SetVisible(this._doc.FightingList[num] > 0UL); + } + bool flag4 = this._doc.FightingList[num] == 0UL; + if (flag4) + { + this._IXUISpriteList[num].RegisterSpriteClickEventHandler(null); + this._SpriteAvatarHandler[num].HideAvatar(); + } + else + { + this._IXUISpriteList[num].ID = (ulong)((long)num); + this._IXUISpriteList[num].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRightListClick)); + int indexByUid2 = this._doc.GetIndexByUid(this._doc.FightingList[num]); + bool flag5 = indexByUid2 == -1; + if (flag5) + { + this._doc.FightingList[num] = 0UL; + this._IXUISpriteList[num].RegisterSpriteClickEventHandler(null); + this._SpriteAvatarHandler[num].HideAvatar(); + } + else + { + this._SpriteAvatarHandler[num].SetSpriteInfoByIndex(indexByUid2, num, false, true); + } + } + num++; + } + } + + public void SetAvatar() + { + bool flag = this._doc.MaxFightNum == 0u; + if (!flag) + { + bool flag2 = this._doc.FightingList[0] == 0UL; + if (!flag2) + { + int indexByUid = this._doc.GetIndexByUid(this._doc.FightingList[0]); + bool flag3 = indexByUid == -1; + if (!flag3) + { + this._SpriteAvatarHandler[0].SetSpriteInfoByIndex(indexByUid, 0, false, true); + } + } + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = base.IsVisible(); + if (flag) + { + this.SetAvatar(); + } + } + + public void OnRightListClick(IXUISprite iSp) + { + this._doc.QueryFightOut(this._doc.FightingList[(int)iSp.ID]); + } + + public void OnLeftListClick(IXUISprite iSp) + { + ulong uid = this._doc.SpriteList[(int)iSp.ID].uid; + bool flag = this._doc.isSpriteFight(uid); + if (flag) + { + this._doc.QueryFightOut(uid); + } + else + { + this._doc.QueryFightIn(uid); + } + } + + private void OnSwapTeamLeaderClick(IXUISprite iSp) + { + int index = (int)iSp.ID; + bool flag = this._doc.FightingList[index] > 0UL; + if (flag) + { + this._doc.QuerySwapTeamLeader(this._doc.FightingList[index]); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteFightFrame.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteFightFrame.cs.meta new file mode 100644 index 00000000..a556c2fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteFightFrame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0cdcbe9596394241b39450b8c4dc41b +timeCreated: 1611404353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteLotteryHandler.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteLotteryHandler.cs new file mode 100644 index 00000000..16e145d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteLotteryHandler.cs @@ -0,0 +1,374 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpriteLotteryHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteLotteryHandler"; + } + } + + private XSpriteSystemDocument _doc = null; + + private IXUIButton m_NormalLotteryOnce; + + private IXUIButton m_NormalLotteryTen; + + private IXUILabelSymbol m_NormalLotteryOncePrice; + + private IXUILabelSymbol m_NormalLotteryTenPrice; + + private IXUIButton m_NormalLotteryDrop; + + private IXUIButton m_SpecialLotteryOnce; + + private IXUIButton m_SpecialLotteryTen; + + private IXUILabelSymbol m_SpecialLotteryOncePrice; + + private IXUILabelSymbol m_SpecialLotteryTenPrice; + + private IXUIButton m_SpecialLotteryDrop; + + private Transform m_NormalLottery; + + private Transform m_SpecialLottery; + + private Transform m_ResultFrame; + + private IXUILabelSymbol m_SafeCountTip; + + private Vector3 m_LotteryOnePos; + + private Vector3 m_LotteryTenPos; + + private XUIPool m_ResultPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_OkButton; + + private GameObject m_Block; + + private IXUITweenTool m_OkButtonTween; + + private int _maxColdDrawCount; + + private List m_FxList = new List(); + + private List m_ResultList = new List(); + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this._maxColdDrawCount = XSingleton.singleton.GetInt("GoldDrawFreeDayCount"); + this.InitUI(); + } + + private void InitUI() + { + this.m_NormalLotteryOnce = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Once").GetComponent("XUIButton") as IXUIButton); + this.m_NormalLotteryTen = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Ten").GetComponent("XUIButton") as IXUIButton); + this.m_NormalLotteryOncePrice = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Once/Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_NormalLotteryTenPrice = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Ten/Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_NormalLotteryDrop = (base.PanelObject.transform.Find("Bg/NormalLottery/Detail/Drop").GetComponent("XUIButton") as IXUIButton); + this.m_SpecialLotteryOnce = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Once").GetComponent("XUIButton") as IXUIButton); + this.m_SpecialLotteryTen = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Ten").GetComponent("XUIButton") as IXUIButton); + this.m_SpecialLotteryOncePrice = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Once/Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SpecialLotteryTenPrice = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Ten/Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SpecialLotteryDrop = (base.PanelObject.transform.Find("Bg/SpecialLottery/Detail/Drop").GetComponent("XUIButton") as IXUIButton); + this.m_NormalLotteryOnce.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_GoldDraw_One)); + this.m_NormalLotteryTen.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_GoldDraw_Ten)); + this.m_SpecialLotteryOnce.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_Draw_One)); + this.m_SpecialLotteryTen.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_Draw_Ten)); + this.m_SafeCountTip = (base.PanelObject.transform.Find("Bg/SpecialLottery/Tip").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + string[] array = XSingleton.singleton.GetValue("SpriteGoldDrawCost").Split(XGlobalConfig.SequenceSeparator); + string[] array2 = XSingleton.singleton.GetValue("SpriteGoldTenDrawCost").Split(XGlobalConfig.SequenceSeparator); + string[] array3 = XSingleton.singleton.GetValue("SpriteDrawCost").Split(XGlobalConfig.SequenceSeparator); + string[] array4 = XSingleton.singleton.GetValue("SpriteTenDrawCost").Split(XGlobalConfig.SequenceSeparator); + bool flag = array.Length == 2 && array2.Length == 2; + if (flag) + { + this.m_NormalLotteryOncePrice.InputText = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(array[1]), (ItemEnum)int.Parse(array[0])); + this.m_NormalLotteryTenPrice.InputText = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(array2[1]), (ItemEnum)int.Parse(array2[0])); + } + bool flag2 = array3.Length == 2 && array4.Length == 2; + if (flag2) + { + this.m_SpecialLotteryOncePrice.InputText = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(array3[1]), (ItemEnum)int.Parse(array3[0])); + this.m_SpecialLotteryTenPrice.InputText = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(array4[1]), (ItemEnum)int.Parse(array4[0])); + } + this.m_NormalLottery = base.PanelObject.transform.Find("Bg/NormalLottery"); + this.m_SpecialLottery = base.PanelObject.transform.Find("Bg/SpecialLottery"); + this.m_ResultFrame = base.PanelObject.transform.Find("Bg/ResultFrame"); + this.m_LotteryOnePos = base.PanelObject.transform.Find("Bg/ResultFrame/OnePos").localPosition; + this.m_LotteryTenPos = base.PanelObject.transform.Find("Bg/ResultFrame/TenPos").localPosition; + Transform transform = base.PanelObject.transform.Find("Bg/ResultFrame/ResultTpl"); + this.m_ResultPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_OkButton = (base.PanelObject.transform.Find("Bg/ResultFrame/OkButton").GetComponent("XUIButton") as IXUIButton); + this.m_Block = base.PanelObject.transform.Find("Bg/ResultFrame/Block").gameObject; + this.m_OkButtonTween = (base.PanelObject.transform.Find("Bg/ResultFrame/OkButton").GetComponent("XUIPlayTween") as IXUITweenTool); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_NormalLotteryOnce.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_NormalLotteryTen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_NormalLotteryDrop.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnNormalLotteryDropClicked)); + this.m_SpecialLotteryOnce.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_SpecialLotteryTen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_SpecialLotteryDrop.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSpecialLotteryDropClicked)); + this.m_OkButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOkButtonClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.QueryBuyEggCD(); + this.ShowLotteryFrame(); + } + + protected override void OnHide() + { + this.ClearAllFx(); + this.m_ResultList.Clear(); + base.OnHide(); + } + + public override void OnUnload() + { + this.ClearAllFx(); + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshSpriteFx(); + } + + private bool OnLotteryClicked(IXUIButton button) + { + this._doc.SendLotteryRpc((uint)button.ID); + return true; + } + + private bool OnNormalLotteryDropClicked(IXUIButton button) + { + DlgBase.singleton.OpenWindows(SpriteWindow.Illustration); + DlgBase.singleton._IllustrationHandler.ShowSpriteEggIllustration(SpriteEggLotteryType.Normal); + return true; + } + + private bool OnSpecialLotteryDropClicked(IXUIButton button) + { + DlgBase.singleton.OpenWindows(SpriteWindow.Illustration); + DlgBase.singleton._IllustrationHandler.ShowSpriteEggIllustration(SpriteEggLotteryType.Special); + return true; + } + + public void RefreshSafeCountUI() + { + this.m_SafeCountTip.InputText = XStringDefineProxy.GetString("SpriteLotterySafeTip", new object[] + { + this._doc.SpecialSafeCount + }); + } + + public bool OnOkButtonClicked(IXUIButton button) + { + bool flag = false; + for (int i = 0; i < this._doc.ResultShowList.Count; i++) + { + flag |= this._doc.ResultShowList[i]; + } + bool flag2 = !flag; + if (flag2) + { + bool flag3 = button != null; + if (flag3) + { + this.ShowLotteryFrame(); + } + else + { + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + this._doc.AutoShowEpicSprite = true; + for (int j = 0; j < this.m_ResultList.Count; j++) + { + IXUISprite ixuisprite = this.m_ResultList[j].transform.Find("SpecialResult").GetComponent("XUISprite") as IXUISprite; + bool flag4 = this._doc.ResultShowList[(int)ixuisprite.ID]; + if (flag4) + { + this.OnEpicItemClicked(ixuisprite); + break; + } + } + } + return true; + } + + private void ShowLotteryFrame() + { + this.m_NormalLottery.gameObject.SetActive(true); + this.m_SpecialLottery.gameObject.SetActive(true); + this.m_ResultFrame.gameObject.SetActive(false); + this.ClearAllFx(); + } + + public void ShowResultFrame() + { + this.m_NormalLottery.gameObject.SetActive(false); + this.m_SpecialLottery.gameObject.SetActive(false); + this.m_ResultFrame.gameObject.SetActive(true); + this.RefreshResultFrame(); + } + + private void RefreshResultFrame() + { + this._doc.AutoShowEpicSprite = false; + this.m_Block.SetActive(true); + this.m_ResultPool.ReturnAll(false); + this.m_ResultList.Clear(); + for (int i = 0; i < this._doc.CachedLotteryResult.Count; i++) + { + XSingleton.singleton.SetTimer((float)i * 0.3f, new XTimerMgr.ElapsedEventHandler(this.SetupItem), i); + } + this.m_OkButton.SetAlpha(0f); + XSingleton.singleton.SetTimer((float)this._doc.CachedLotteryResult.Count * 0.3f + 0.3f, new XTimerMgr.ElapsedEventHandler(this.ShowOkButton), null); + } + + private void ShowOkButton(object o) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.m_Block.SetActive(false); + this.m_OkButtonTween.ResetTween(true); + this.m_OkButtonTween.PlayTween(true, -1f); + } + } + + private void ClearAllFx() + { + for (int i = 0; i < this.m_FxList.Count; i++) + { + this._doc.DestroyFx(this.m_FxList[i]); + } + this.m_FxList.Clear(); + } + + private void SetupItem(object o) + { + bool flag = !base.IsVisible(); + if (!flag) + { + int num = (int)o; + Vector3 vector = (this._doc.CachedLotteryResult.Count == 1) ? this.m_LotteryOnePos : this.m_LotteryTenPos; + GameObject gameObject = this.m_ResultPool.FetchGameObject(false); + this.m_ResultList.Add(gameObject); + IXUITweenTool ixuitweenTool = gameObject.GetComponent("XUIPlayTween") as IXUITweenTool; + GameObject gameObject2 = gameObject.transform.Find("ItemTpl").gameObject; + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("SpecialResult").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)this._doc.CachedLotteryResult[num].itemID, (int)this._doc.CachedLotteryResult[num].itemCount, false); + Transform parent = gameObject.transform.Find("Fx"); + LotteryType currentLotteryType = (LotteryType)this._doc.CurrentLotteryType; + if (currentLotteryType - LotteryType.Sprite_Draw_One > 2) + { + if (currentLotteryType - LotteryType.Sprite_GoldDraw_One <= 2) + { + ixuisprite2.SetSprite("Fairy_EggNormal"); + } + } + else + { + ixuisprite2.SetSprite("Fairy_EggGold"); + } + ixuisprite.ID = (ulong)this._doc.CachedLotteryResult[num].itemID; + bool isbind = this._doc.CachedLotteryResult[num].isbind; + if (isbind) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + ixuisprite2.ID = (ulong)num; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnEpicItemClicked)); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.CachedLotteryResult[num].itemID); + ixuisprite2.SetVisible(this._doc.ResultShowList[num]); + gameObject2.SetActive(!this._doc.ResultShowList[num]); + bool flag2 = this._doc.ResultShowList[num]; + if (flag2) + { + switch (itemConf.ItemQuality) + { + case 3: + this.m_FxList.Add(this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_04_orange", parent)); + break; + case 4: + this.m_FxList.Add(this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_04_purple", parent)); + break; + case 5: + this.m_FxList.Add(this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_04_red", parent)); + break; + } + } + gameObject.transform.localPosition = new Vector3(vector.x + (float)(num % 5 * this.m_ResultPool.TplWidth), vector.y - (float)(num / 5 * this.m_ResultPool.TplHeight)); + ixuitweenTool.ResetTween(true); + ixuitweenTool.PlayTween(true, -1f); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Appear_NormalLoot", true, AudioChannel.Action); + } + } + + public void RefreshSpriteFx() + { + for (int i = 0; i < this.m_FxList.Count; i++) + { + bool flag = this.m_FxList[i] != null; + if (flag) + { + this.m_FxList[i].Play(); + } + } + } + + private void OnEpicItemClicked(IXUISprite sp) + { + bool flag = (int)sp.ID >= this._doc.CachedLotteryResult.Count; + if (!flag) + { + XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.ShowEpicItem), sp); + this._doc.EpicSpriteShow((int)sp.ID); + } + } + + private void ShowEpicItem(object o) + { + IXUISprite ixuisprite = o as IXUISprite; + bool flag = ixuisprite != null; + if (flag) + { + GameObject gameObject = ixuisprite.parent.gameObject.transform.Find("ItemTpl").gameObject; + gameObject.SetActive(true); + ixuisprite.SetVisible(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteLotteryHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteLotteryHandler.cs.meta new file mode 100644 index 00000000..8dabcdbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteLotteryHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd6136b73bc03bb4e99510f6fc607a45 +timeCreated: 1611404682 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteMainFrame.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteMainFrame.cs new file mode 100644 index 00000000..2e67d90d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteMainFrame.cs @@ -0,0 +1,455 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpriteMainFrame : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteMainFrame"; + } + } + + private XSpriteSystemDocument _doc; + + public IXUISprite m_StarUpBtn; + + private IXUISprite m_AwakeBtn; + + private GameObject m_FeedGo; + + private GameObject m_FoodList; + + private IXUIProgress m_Exp; + + private IXUILabel m_ExpNum; + + private IXUILabel m_Level; + + private Transform m_EffectParent; + + private GameObject m_FeedBtnRedPoint; + + private XUIPool m_FoodPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public SpriteSelectHandler _SpriteSelectHandler; + + public XSpriteAvatarHandler _SpriteAvatarHandler; + + public XSpriteAttributeHandler _SpritePropertyHandler; + + public int CurrentClick = 10000; + + public IXUISprite m_CurrentClickSprite; + + private float _lastEffectTime = 0f; + + private float[] _lastFeedTime = new float[3]; + + private float[] _lastClickTime = new float[3]; + + private bool[] _feedState = new bool[3]; + + private IXUILabel[] m_FoodNum; + + private float _feedInterval; + + private float _feedStart; + + public bool AnimEnd = true; + + private int _animLevelTarget; + + private int _animCurrLevel; + + private float _AnimExpTarget; + + private float _animSpeed = 0.1f; + + private XFx _fxFirework; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this._feedInterval = float.Parse(XSingleton.singleton.GetValue("SpriteFeedIntervalTime")); + this._feedStart = float.Parse(XSingleton.singleton.GetValue("SpriteFeedStartTime")); + this.m_AwakeBtn = (base.PanelObject.transform.Find("Other/AwakeBtn").GetComponent("XUISprite") as IXUISprite); + this.m_StarUpBtn = (base.PanelObject.transform.Find("Other/StarUpBtn").GetComponent("XUISprite") as IXUISprite); + this.m_FeedGo = base.PanelObject.transform.Find("Other/FeedBtn").gameObject; + this.m_FeedBtnRedPoint = this.m_FeedGo.transform.Find("RedPoint").gameObject; + this.m_FoodList = base.PanelObject.transform.Find("Other/FoodList").gameObject; + this.m_Exp = (base.PanelObject.transform.Find("Other/Exp/ProgressBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_ExpNum = (base.PanelObject.transform.Find("Other/Exp/Progress").GetComponent("XUILabel") as IXUILabel); + this.m_Level = (base.PanelObject.transform.Find("Other/Level").GetComponent("XUILabel") as IXUILabel); + this.m_EffectParent = base.PanelObject.transform.Find("Other/FeedEffect"); + Transform transform = base.PanelObject.transform.Find("Other/FoodList/ItemTpl"); + this.m_FoodPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + IXUICheckBox ixuicheckBox = this.m_FeedGo.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnFeedBtnClick)); + Vector3 tplPos = this.m_FoodPool.TplPos; + this.m_FoodNum = new IXUILabel[(int)this._doc.FoodList.Count]; + for (int i = 0; i < (int)this._doc.FoodList.Count; i++) + { + GameObject gameObject = this.m_FoodPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y + (float)(((int)this._doc.FoodList.Count - i - 1) * this.m_FoodPool.TplHeight)); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnFoodBtnPress)); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, this._doc.FoodList[i, 0], 2, false); + this.m_FoodNum[i] = (ixuisprite.gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + } + DlgHandlerBase.EnsureCreate(ref this._SpritePropertyHandler, base.PanelObject.transform.Find("PropertyHandlerParent"), true, this); + DlgHandlerBase.EnsureCreate(ref this._SpriteAvatarHandler, base.PanelObject.transform.Find("AvatarHandlerParent"), true, this); + DlgHandlerBase.EnsureCreate(ref this._SpriteSelectHandler, base.PanelObject.transform.Find("SelectHandlerParent"), false, this); + } + + protected override void OnShow() + { + base.OnShow(); + this._SpriteAvatarHandler.SetVisible(true); + this._SpriteAvatarHandler.HideAvatar(); + this.m_Exp.value = 0f; + this.m_ExpNum.SetText("0/0"); + this.m_Level.SetText("Lv.0"); + this.CurrentClick = 10000; + this._SpriteSelectHandler.SetVisible(true); + this._SpritePropertyHandler.SetSpriteAttributeInfo((this.CurrentClick < this._doc.SpriteList.Count) ? this._doc.SpriteList[this.CurrentClick] : null, XSingleton.singleton.XPlayerData, null); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.RefreshFoodNum(); + this.RefreshAwakeBtn(); + } + + private void CheckLastAwakeFinished() + { + bool flag = this._doc._AwakeSpriteData != null; + if (flag) + { + for (int i = 0; i < this._doc.SpriteList.Count; i++) + { + bool flag2 = this._doc.SpriteList[i].uid == this._doc._AwakeSpriteData.uid; + if (flag2) + { + DlgBase.singleton.OpenWindows(SpriteWindow.Awake); + DlgBase.singleton._AwakeWindow.SetSpritesInfo(this._doc.SpriteList[i], this._doc._AwakeSpriteData); + this._doc._AwakeSpriteData = null; + break; + } + } + } + } + + protected override void OnHide() + { + base.OnHide(); + this._SpriteSelectHandler.SetVisible(false); + this._SpriteAvatarHandler.SetVisible(false); + this.CurrentClick = 10000; + for (int i = 0; i < 3; i++) + { + this._feedState[i] = false; + } + bool flag = this._fxFirework != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fxFirework, true); + this._fxFirework = null; + } + this.AnimEnd = true; + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._SpriteSelectHandler); + DlgHandlerBase.EnsureUnload(ref this._SpritePropertyHandler); + DlgHandlerBase.EnsureUnload(ref this._SpriteAvatarHandler); + bool flag = this._fxFirework != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fxFirework, true); + this._fxFirework = null; + } + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_StarUpBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnStarUpBtnClick)); + this.m_AwakeBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAwakeBtnClick)); + } + + private void LevelUp() + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLevelUpTips"), "fece00"); + } + + private void RefreshFoodNum() + { + for (int i = 0; i < (int)this._doc.FoodList.Count; i++) + { + this.m_FoodNum[i].SetText(XBagDocument.BagDoc.GetItemCount(this._doc.FoodList[i, 0]).ToString()); + } + this.RefreshFeedBtnRedPoint(); + } + + private void RefreshFeedBtnRedPoint() + { + this.m_FeedBtnRedPoint.SetActive(!this._doc.isSpriteFoodEmpty() && this.CurrentClick != 10000 && this._doc.isSpriteFight(this._doc.SpriteList[this.CurrentClick].uid) && this._doc.isSpriteNeed2Feed(this._doc.SpriteList[this.CurrentClick].uid, false)); + } + + public void OnStarUpBtnClick(IXUISprite btn) + { + bool flag = this.CurrentClick == 10000; + if (!flag) + { + DlgBase.singleton.OpenWindows(SpriteWindow.StarUp); + } + } + + public bool OnFeedBtnClick(IXUICheckBox icb) + { + this.m_FoodList.SetActive(icb.bChecked); + return true; + } + + public void RefreshAwakeBtn() + { + } + + private bool AwakeItemEnough(ref uint consumeCount) + { + bool flag = this.CurrentClick > this._doc.SpriteList.Count; + bool result; + if (flag) + { + result = false; + } + else + { + ulong itemCount = XSingleton.singleton.Doc.XBagDoc.GetItemCount(XSingleton.singleton.GetInt("SpriteAwakeItemID")); + uint spriteQuality = this._doc._SpriteTable.GetBySpriteID(this._doc.SpriteList[this.CurrentClick].SpriteID).SpriteQuality; + List stringList = XSingleton.singleton.GetStringList("SpriteAwakeConsume"); + bool flag2 = (ulong)spriteQuality >= (ulong)((long)stringList.Count); + if (flag2) + { + XSingleton.singleton.AddErrorLog("Sprite Quality Error", null, null, null, null, null); + result = false; + } + else + { + consumeCount = uint.Parse(stringList[(int)spriteQuality]); + bool flag3 = itemCount < (ulong)consumeCount; + result = !flag3; + } + } + return result; + } + + public void OnAwakeBtnClick(IXUISprite btn) + { + bool flag = this.CurrentClick >= this._doc.SpriteList.Count; + if (!flag) + { + int @int = XSingleton.singleton.GetInt("SpriteAwakeMinLevel"); + bool flag2 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)@int); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("SpriteAwakeLevelLimit"), @int), "fece00"); + } + else + { + uint num = 0u; + bool flag3 = !this.AwakeItemEnough(ref num); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteAwake_Error", new object[] + { + num + }), "fece00"); + XSingleton.singleton.ShowItemAccess(XSingleton.singleton.GetInt("SpriteAwakeItemID"), null); + } + else + { + bool tempTip = DlgBase.singleton.GetTempTip(XTempTipDefine.OD_SPRITE_AWAKE); + if (tempTip) + { + this._doc.ReqSpriteOperation(SpriteType.Sprite_Awake); + } + else + { + string mainLabel = string.Format("{0}\n{1}\n{2}", XStringDefineProxy.GetString("SpriteAwake_Title"), XStringDefineProxy.GetString("SpriteAwake_Tip"), XStringDefineProxy.GetString("SpriteAwake_Consume", new object[] + { + XLabelSymbolHelper.FormatSmallIcon(XSingleton.singleton.GetInt("SpriteAwakeItemID")), + num + })); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.ShowNoTip(XTempTipDefine.OD_SPRITE_AWAKE); + DlgBase.singleton.SetLabelsWithSymbols(mainLabel, @string, string2); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnEnsureAwakeClick), null); + } + } + } + } + } + + private bool OnEnsureAwakeClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this._doc.ReqSpriteOperation(SpriteType.Sprite_Awake); + return true; + } + + public void OnServerReturn(ulong uid) + { + bool flag = !base.IsVisible(); + if (!flag) + { + SpriteInfo spriteInfo = this._doc.SpriteList[this.CurrentClick]; + bool flag2 = uid != spriteInfo.uid; + if (!flag2) + { + this.AnimEnd = false; + this._animLevelTarget = (int)spriteInfo.Level; + uint spriteLevelUpExp = this._doc.GetSpriteLevelUpExp(this.CurrentClick); + this._AnimExpTarget = spriteInfo.Exp * 1f / spriteLevelUpExp; + this.RefreshFoodNum(); + bool flag3 = this._doc.isSpriteFoodEmpty(); + if (flag3) + { + this._SpriteSelectHandler.SetSpriteList(this._doc.SpriteList, false); + } + bool flag4 = Time.time - this._lastEffectTime > 3f; + if (flag4) + { + this._lastEffectTime = Time.time; + bool flag5 = this._fxFirework != null; + if (flag5) + { + XSingleton.singleton.DestroyFx(this._fxFirework, true); + } + this._fxFirework = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_jl_weiyang", this.m_EffectParent, Vector3.zero, Vector3.one, 1f, true, 2f, true); + } + } + } + } + + public void SetAvatar() + { + this._SpriteAvatarHandler.SetSpriteInfoByIndex(this.CurrentClick, 0, false, false); + } + + private void SetExp() + { + SpriteInfo spriteInfo = this._doc.SpriteList[this.CurrentClick]; + uint spriteLevelUpExpByLevel = this._doc.GetSpriteLevelUpExpByLevel(this.CurrentClick, this._animCurrLevel); + float num = this.m_Exp.value + this._animSpeed; + bool flag = (this._animCurrLevel == this._animLevelTarget && num > this._AnimExpTarget) || this._animCurrLevel > this._animLevelTarget; + if (flag) + { + this.AnimEnd = true; + this._animCurrLevel = this._animLevelTarget; + num = this._AnimExpTarget; + this._SpriteSelectHandler.SetSpriteList(this._doc.SpriteList, false); + } + bool flag2 = num > 1f; + if (flag2) + { + num = 0f; + this._animCurrLevel++; + XSingleton.singleton.AddLog(string.Format("Sprite level up to {0}", this._animCurrLevel), null, null, null, null, null, XDebugColor.XDebug_None); + this.LevelUp(); + } + this.m_Exp.value = num; + this.m_ExpNum.SetText(string.Format("{0}/{1}", spriteInfo.Exp, spriteLevelUpExpByLevel)); + this.m_Level.SetText(string.Format("Lv.{0}", this._animCurrLevel)); + } + + public void OnSpriteListClick(IXUISprite iSp) + { + bool flag = this.m_CurrentClickSprite != null; + if (flag) + { + this.m_CurrentClickSprite.gameObject.transform.Find("Select").gameObject.SetActive(false); + } + bool flag2 = this.CurrentClick != (int)iSp.ID; + if (flag2) + { + this.AnimEnd = true; + } + this.CurrentClick = (int)iSp.ID; + this.m_CurrentClickSprite = iSp; + this.m_CurrentClickSprite.gameObject.transform.Find("Select").gameObject.SetActive(true); + SpriteInfo spriteInfo = this._doc.SpriteList[this.CurrentClick]; + this.SetAvatar(); + this.RefreshFeedBtnRedPoint(); + this._SpritePropertyHandler.SetSpriteAttributeInfo(this._doc.SpriteList[this.CurrentClick], XSingleton.singleton.XPlayerData, null); + uint spriteLevelUpExp = this._doc.GetSpriteLevelUpExp(this.CurrentClick); + this.m_Exp.value = spriteInfo.Exp * 1f / spriteLevelUpExp; + this.m_ExpNum.SetText(string.Format("{0}/{1}", spriteInfo.Exp, spriteLevelUpExp)); + this.m_Level.SetText(string.Format("Lv.{0}", spriteInfo.Level)); + this._animCurrLevel = (int)spriteInfo.Level; + this.RefreshAwakeBtn(); + } + + private bool OnFoodBtnPress(IXUISprite iSp, bool state) + { + this._feedState[(int)iSp.ID] = state; + if (state) + { + this._lastClickTime[(int)iSp.ID] = Time.time; + bool flag = !this._doc.QueryFeedSprite(this.CurrentClick, (uint)this._doc.FoodList[(int)iSp.ID, 0]); + if (flag) + { + this._feedState[(int)iSp.ID] = false; + } + } + return true; + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshFoodNum(); + this.SetAvatar(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + for (int i = 0; i < 3; i++) + { + bool flag = this._feedState[i]; + if (flag) + { + bool flag2 = Time.time - this._lastClickTime[i] > this._feedStart && Time.time - this._lastFeedTime[i] > this._feedInterval; + if (flag2) + { + this._lastFeedTime[i] = Time.time; + bool flag3 = !this._doc.QueryFeedSprite(this.CurrentClick, (uint)this._doc.FoodList[i, 0]); + if (flag3) + { + this._feedState[i] = false; + } + } + } + } + bool flag4 = !this.AnimEnd; + if (flag4) + { + this.SetExp(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteMainFrame.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteMainFrame.cs.meta new file mode 100644 index 00000000..43ddf2b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteMainFrame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92090fe87f42f164b942a43bc2f82685 +timeCreated: 1611404144 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteResolveFrame.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteResolveFrame.cs new file mode 100644 index 00000000..ae2b97a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteResolveFrame.cs @@ -0,0 +1,297 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpriteResolveFrame : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteResolveFrame"; + } + } + + private XSpriteSystemDocument _doc; + + public SpriteSelectHandler _SpriteSelectHandler; + + public XUIPool m_SpritePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ScrollView; + + public IXUISprite m_ResolveBtn; + + public GameObject m_ResolveTips; + + public IXUILabel m_JustTips; + + private HashSet _resolveHash = new HashSet(); + + public List SelectList = new List(); + + private uint _resolveMaxNum; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this._resolveMaxNum = uint.Parse(XSingleton.singleton.GetValue("SpriteResolveMaxNum")); + Transform transform = base.PanelObject.transform.Find("ScrollView/Tpl"); + this.m_ScrollView = (base.PanelObject.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_SpritePool.SetupPool(transform.parent.gameObject, transform.gameObject, 12u, false); + this.m_ResolveBtn = (base.PanelObject.transform.Find("ResolveBtn").GetComponent("XUISprite") as IXUISprite); + this.m_ResolveTips = base.PanelObject.transform.Find("ResolveTips").gameObject; + this.m_JustTips = (base.PanelObject.transform.Find("info").GetComponent("XUILabel") as IXUILabel); + this.m_JustTips.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("SpriteResolveTips"))); + DlgHandlerBase.EnsureCreate(ref this._SpriteSelectHandler, base.PanelObject.transform.Find("SelectHandlerParent"), false, this); + } + + protected override void OnShow() + { + base.OnShow(); + this._SpriteSelectHandler.SetVisible(true); + this.CheckSelectList(); + } + + protected override void OnHide() + { + base.OnHide(); + this._SpriteSelectHandler.SetVisible(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_ResolveBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnResolveBtnClick)); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._SpriteSelectHandler); + base.OnUnload(); + } + + public void CheckSelectList() + { + this.SelectList.Clear(); + for (int i = 0; i < this._doc.ResolveList.Count; i++) + { + bool flag = this._resolveHash.Contains(this._doc.ResolveList[i].uid); + if (flag) + { + bool flag2 = this._doc.isSpriteFight(this._doc.ResolveList[i].uid); + if (flag2) + { + this._resolveHash.Remove(this._doc.ResolveList[i].uid); + } + else + { + this.SelectList.Add(this._doc.ResolveList[i]); + } + } + } + for (int j = 0; j < this._doc.FightingList.Count; j++) + { + bool flag3 = this._resolveHash.Contains(this._doc.FightingList[j]); + if (flag3) + { + this._resolveHash.Remove(this._doc.FightingList[j]); + } + } + this.SetSpriteList(true); + } + + public void SetSpriteList(bool resetScrollPos = true) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.m_ResolveBtn.SetGrey(this.SelectList.Count != 0); + this.m_ResolveTips.SetActive(this.SelectList.Count == 0); + this.m_SpritePool.ReturnAll(false); + Vector3 tplPos = this.m_SpritePool.TplPos; + for (int i = 0; i < this.SelectList.Count; i++) + { + GameObject gameObject = this.m_SpritePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(i % 3 * this.m_SpritePool.TplWidth), tplPos.y - (float)(i / 3 * this.m_SpritePool.TplHeight)); + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(this.SelectList[i].SpriteID); + Transform ts = gameObject.transform.Find("Star"); + this.SetStar(ts, this.SelectList[i].EvolutionLevel); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("[{0}]{1}", this._doc.NAMECOLOR[(int)bySpriteID.SpriteQuality], bySpriteID.SpriteName)); + IXUILabel ixuilabel2 = gameObject.transform.Find("PPT").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("BOSSRUSH_POWER"), this.SelectList[i].PowerPoint)); + IXUILabel ixuilabel3 = gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(string.Format("Lv.{0}", this.SelectList[i].Level)); + IXUISprite ixuisprite = gameObject.transform.Find("Frame").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = string.Format("kuang_dj_{0}", bySpriteID.SpriteQuality); + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteName = bySpriteID.SpriteIcon; + IXUISprite ixuisprite3 = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)((long)i); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSpriteScorllViewListClick)); + } + if (resetScrollPos) + { + this.m_ScrollView.SetPosition(0f); + } + } + } + + private void SetStar(Transform ts, uint num) + { + uint num2 = num / XSpriteSystemDocument.MOONWORTH; + uint num3 = num % XSpriteSystemDocument.MOONWORTH; + for (int i = 0; i < 7; i++) + { + IXUISprite ixuisprite = ts.Find(string.Format("star{0}", i)).GetComponent("XUISprite") as IXUISprite; + bool flag = (long)i < (long)((ulong)(num2 + num3)); + if (flag) + { + ixuisprite.SetVisible(true); + ixuisprite.spriteName = (((long)i < (long)((ulong)num2)) ? "l_stars_02" : "l_stars_01"); + } + else + { + ixuisprite.SetVisible(false); + } + } + } + + public bool ScrollViewHasSprite(ulong id) + { + return this._resolveHash.Contains(id); + } + + public void OnSpriteListClick(IXUISprite iSp) + { + bool flag = (int)iSp.ID >= this._doc.ResolveList.Count; + if (!flag) + { + SpriteInfo spriteInfo = this._doc.ResolveList[(int)iSp.ID]; + bool flag2 = this._resolveHash.Contains(spriteInfo.uid); + if (flag2) + { + this.SelectList.Remove(spriteInfo); + this._resolveHash.Remove(spriteInfo.uid); + iSp.gameObject.transform.Find("Select").gameObject.SetActive(false); + this.SetSpriteList(false); + } + else + { + bool flag3 = this.SelectList.Count >= this._doc.SpriteList.Count - 1; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteResolveAllTips"), "fece00"); + } + else + { + bool flag4 = (long)this.SelectList.Count >= (long)((ulong)this._resolveMaxNum); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteResolveMaxTips"), "fece00"); + } + else + { + this.SelectList.Add(spriteInfo); + this._resolveHash.Add(spriteInfo.uid); + iSp.gameObject.transform.Find("Select").gameObject.SetActive(true); + this.SetSpriteList(false); + } + } + } + } + } + + public void OnSpriteScorllViewListClick(IXUISprite iSp) + { + this._resolveHash.Remove(this.SelectList[(int)iSp.ID].uid); + this.SelectList.RemoveAt((int)iSp.ID); + this.SetSpriteList(false); + this._SpriteSelectHandler.SetSpriteList(this._doc.ResolveList, false); + } + + public void OnResolveBtnClick(IXUISprite iSp) + { + bool flag = this.SelectList.Count == 0; + if (!flag) + { + bool flag2 = this.SelectList.Count == this._doc.SpriteList.Count; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteResolveAllTips"), "fece00"); + } + else + { + bool flag3 = this.CheckWhetherNeedToTips(); + if (flag3) + { + string label = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("SpriteResolveSureTips")); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnResolveSure)); + } + else + { + this.SendResolveList(); + } + } + } + } + + private bool CheckWhetherNeedToTips() + { + int i = 0; + while (i < this.SelectList.Count) + { + bool flag = this.SelectList[i].Level > 1u; + bool result; + if (flag) + { + result = true; + } + else + { + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(this.SelectList[i].SpriteID); + bool flag2 = bySpriteID.SpriteQuality > 2u; + if (!flag2) + { + i++; + continue; + } + result = true; + } + return result; + } + return false; + } + + private bool OnResolveSure(IXUIButton btn) + { + this.SendResolveList(); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private void SendResolveList() + { + XSingleton.singleton.AddLog("Resolve", null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.QueryResolveSprite(this.SelectList); + } + + public void Clean() + { + this.SelectList.Clear(); + this._resolveHash.Clear(); + this.SetSpriteList(true); + this._SpriteSelectHandler.SetSpriteList(this._doc.ResolveList, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteResolveFrame.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteResolveFrame.cs.meta new file mode 100644 index 00000000..4724d9e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteResolveFrame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5413a85dfa9c83c4e87074dcbc951a5a +timeCreated: 1611403713 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteSelectHandler.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteSelectHandler.cs new file mode 100644 index 00000000..034fc5b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteSelectHandler.cs @@ -0,0 +1,154 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpriteSelectHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteSelectHandler"; + } + } + + private XSpriteSystemDocument _doc; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + private List _list; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + Transform transform = base.PanelObject.transform.Find("ScrollView/WrapContent/Tpl"); + this.m_ScrollView = (base.PanelObject.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (this.m_ScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DesWrapListUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = DlgBase.singleton._SpriteMainFrame != null && DlgBase.singleton._SpriteMainFrame.IsVisible(); + if (flag) + { + this.SetSpriteList(this._doc.SpriteList, true); + } + bool flag2 = DlgBase.singleton._SpriteResolveFrame != null && DlgBase.singleton._SpriteResolveFrame.IsVisible(); + if (flag2) + { + this._doc.DealWithResolveList(); + this.SetSpriteList(this._doc.ResolveList, true); + } + bool flag3 = DlgBase.singleton._SpriteFightFrame != null && DlgBase.singleton._SpriteFightFrame.IsVisible(); + if (flag3) + { + this.SetSpriteList(this._doc.SpriteList, true); + } + } + + public void SetSpriteList(List list, bool resetScrollPos = true) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this._list = list; + this.m_WrapContent.SetContentCount(list.Count, false); + if (resetScrollPos) + { + this.m_ScrollView.SetPosition(0f); + } + } + } + + private void DesWrapListUpdated(Transform t, int i) + { + bool flag = i < 0 || i >= this._list.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("leftScrollView_index is out of range of sprite list. index = ", i.ToString(), " cout = ", this._list.Count.ToString(), null, null); + } + else + { + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(this._list[i].SpriteID); + GameObject gameObject = t.Find("Fight").gameObject; + gameObject.SetActive(this._doc.CurrentTag == SpriteHandlerTag.Main && this._doc.isSpriteFight(this._list[i].uid)); + GameObject gameObject2 = t.Find("Fight2").gameObject; + gameObject2.SetActive(this._doc.CurrentTag != SpriteHandlerTag.Main && this._doc.isSpriteFight(this._list[i].uid)); + IXUISprite ixuisprite = t.Find("Frame").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = string.Format("kuang_dj_{0}", bySpriteID.SpriteQuality); + IXUISprite ixuisprite2 = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteName = bySpriteID.SpriteIcon; + Transform ts = t.Find("Star"); + this.SetStar(ts, this._list[i].EvolutionLevel); + GameObject gameObject3 = t.Find("Up").gameObject; + bool active = (this._doc.CurrentTag == SpriteHandlerTag.Fight && this.isUpIconShow(i)) || (this._doc.CurrentTag == SpriteHandlerTag.Main && this._doc.isSpriteFight(this._list[i].uid) && !this._doc.isSpriteFoodEmpty() && this._doc.isSpriteNeed2Feed(this._list[i].uid, false)); + gameObject3.SetActive(active); + IXUISprite ixuisprite3 = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)((long)i); + switch (this._doc.CurrentTag) + { + case SpriteHandlerTag.Main: + { + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(DlgBase.singleton._SpriteMainFrame.OnSpriteListClick)); + bool flag2 = DlgBase.singleton._SpriteMainFrame.CurrentClick == 10000 && i == 0; + if (flag2) + { + DlgBase.singleton._SpriteMainFrame.OnSpriteListClick(ixuisprite3); + } + t.transform.Find("Select").gameObject.SetActive(i == DlgBase.singleton._SpriteMainFrame.CurrentClick); + break; + } + case SpriteHandlerTag.Fight: + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(DlgBase.singleton._SpriteFightFrame.OnLeftListClick)); + t.transform.Find("Select").gameObject.SetActive(false); + break; + case SpriteHandlerTag.Resolve: + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(DlgBase.singleton._SpriteResolveFrame.OnSpriteListClick)); + t.Find("Select").gameObject.SetActive(DlgBase.singleton._SpriteResolveFrame.ScrollViewHasSprite(this._list[i].uid)); + break; + } + } + } + + private bool isUpIconShow(int i) + { + return this._doc.isSpriteNeed2Fight(i); + } + + private void SetStar(Transform ts, uint num) + { + uint num2 = num / XSpriteSystemDocument.MOONWORTH; + uint num3 = num % XSpriteSystemDocument.MOONWORTH; + for (int i = 0; i < 7; i++) + { + IXUISprite ixuisprite = ts.Find(string.Format("star{0}", i)).GetComponent("XUISprite") as IXUISprite; + bool flag = (long)i < (long)((ulong)(num2 + num3)); + if (flag) + { + ixuisprite.SetVisible(true); + ixuisprite.spriteName = (((long)i < (long)((ulong)num2)) ? "l_stars_02" : "l_stars_01"); + } + else + { + ixuisprite.SetVisible(false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteSelectHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteSelectHandler.cs.meta new file mode 100644 index 00000000..6cf64973 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteSelectHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c52d4dd0588954045a84f71843c03beb +timeCreated: 1611404505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteShopHandler.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteShopHandler.cs new file mode 100644 index 00000000..e8628afa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteShopHandler.cs @@ -0,0 +1,217 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpriteShopHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteShopHandler"; + } + } + + private XSpriteSystemDocument _doc = null; + + private IXUIButton m_NormalLotteryOnce; + + private IXUIButton m_NormalLotteryTen; + + private IXUIButton m_NormalLotteryFree; + + private IXUILabelSymbol m_NormalLotteryOncePrice; + + private IXUILabelSymbol m_NormalLotteryTenPrice; + + private IXUILabel m_NormalLotteryTip; + + private IXUIButton m_SpecialLotteryOnce; + + private IXUIButton m_SpecialLotteryTen; + + private IXUIButton m_SpecialLotteryFree; + + private IXUILabelSymbol m_SpecialLotteryOncePrice; + + private IXUILabelSymbol m_SpecialLotteryTenPrice; + + private IXUILabel m_SpecialLotteryTip; + + private Transform m_NormalLottery; + + private Transform m_SpecialLottery; + + private Transform m_ResultFrame; + + private IXUITweenTool m_ResultTween; + + private XUIPool m_ResultPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIList m_ResultList; + + private int _maxColdDrawCount; + + private XLeftTimeCounter _normalCD; + + private XLeftTimeCounter _specialCD; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this._maxColdDrawCount = XSingleton.singleton.GetInt("GoldDrawFreeDayCount"); + this.InitUI(); + } + + private void InitUI() + { + this.m_NormalLotteryOnce = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Once").GetComponent("XUIButton") as IXUIButton); + this.m_NormalLotteryTen = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Ten").GetComponent("XUIButton") as IXUIButton); + this.m_NormalLotteryFree = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Free").GetComponent("XUIButton") as IXUIButton); + this.m_NormalLotteryOncePrice = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Once/Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_NormalLotteryTenPrice = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Ten/Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_NormalLotteryTip = (base.PanelObject.transform.Find("Bg/NormalLottery/Button/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_SpecialLotteryOnce = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Once").GetComponent("XUIButton") as IXUIButton); + this.m_SpecialLotteryTen = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Ten").GetComponent("XUIButton") as IXUIButton); + this.m_SpecialLotteryFree = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Free").GetComponent("XUIButton") as IXUIButton); + this.m_SpecialLotteryOncePrice = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Once/Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SpecialLotteryTenPrice = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Ten/Price").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SpecialLotteryTip = (base.PanelObject.transform.Find("Bg/SpecialLottery/Button/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_NormalLotteryFree.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_GoldDraw_One_Free)); + this.m_NormalLotteryOnce.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_GoldDraw_One)); + this.m_NormalLotteryTen.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_GoldDraw_Ten)); + this.m_SpecialLotteryFree.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_Draw_One_Free)); + this.m_SpecialLotteryOnce.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_Draw_One)); + this.m_SpecialLotteryTen.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(LotteryType.Sprite_Draw_Ten)); + string[] array = XSingleton.singleton.GetValue("SpriteShopGoldOneCost").Split(XGlobalConfig.SequenceSeparator); + string[] array2 = XSingleton.singleton.GetValue("SpriteShopGoldTenCost").Split(XGlobalConfig.SequenceSeparator); + string[] array3 = XSingleton.singleton.GetValue("SpriteShopOneCost").Split(XGlobalConfig.SequenceSeparator); + string[] array4 = XSingleton.singleton.GetValue("SpriteShopTenCost").Split(XGlobalConfig.SequenceSeparator); + bool flag = array.Length == 2 && array2.Length == 2; + if (flag) + { + this.m_NormalLotteryOncePrice.InputText = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(array[1]), (ItemEnum)int.Parse(array[0])); + this.m_NormalLotteryTenPrice.InputText = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(array2[1]), (ItemEnum)int.Parse(array2[0])); + } + bool flag2 = array3.Length == 2 && array4.Length == 2; + if (flag2) + { + this.m_SpecialLotteryOncePrice.InputText = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(array3[1]), (ItemEnum)int.Parse(array3[0])); + this.m_SpecialLotteryTenPrice.InputText = XLabelSymbolHelper.FormatCostWithIcon(int.Parse(array4[1]), (ItemEnum)int.Parse(array4[0])); + } + this._normalCD = new XLeftTimeCounter(this.m_NormalLotteryTip, true); + this._specialCD = new XLeftTimeCounter(this.m_SpecialLotteryTip, true); + this.m_NormalLottery = base.PanelObject.transform.Find("Bg/NormalLottery"); + this.m_SpecialLottery = base.PanelObject.transform.Find("Bg/SpecialLottery"); + this.m_ResultFrame = base.PanelObject.transform.Find("Bg/ResultFrame"); + this.m_ResultFrame.gameObject.SetActive(false); + this.m_ResultTween = (base.PanelObject.transform.Find("Bg/ResultFrame/Result").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_ResultList = (base.PanelObject.transform.Find("Bg/ResultFrame/Result/Grid").GetComponent("XUIList") as IXUIList); + Transform transform = base.PanelObject.transform.Find("Bg/ResultFrame/Result/Grid/ResultTpl"); + this.m_ResultPool.SetupPool(transform.parent.gameObject, transform.gameObject, 1u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_NormalLotteryOnce.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_NormalLotteryTen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_NormalLotteryFree.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_SpecialLotteryOnce.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_SpecialLotteryTen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_SpecialLotteryFree.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLotteryClicked)); + this.m_ResultTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnShowFinished)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.QueryBuyEggCD(); + this.RefreshLotteryFrame(); + } + + private bool OnLotteryClicked(IXUIButton button) + { + this._doc.SendBuySpriteEggRpc((uint)button.ID); + return true; + } + + private void OnShowFinished(IXUITweenTool tween) + { + this.m_ResultFrame.gameObject.SetActive(false); + } + + public void ShowResultFrame(List item) + { + this.m_ResultFrame.gameObject.SetActive(true); + this.m_ResultTween.ResetTween(true); + this.m_ResultTween.PlayTween(true, -1f); + this.RefreshResultFrame(item); + } + + public void RefreshLotteryFrame() + { + this.ShowNormalButton(this._doc.NormalCoolDown == 0u); + this.ShowSpecialButton(this._doc.SpecialCoolDown == 0u); + } + + private void RefreshResultFrame(List gift) + { + this.m_ResultPool.ReturnAll(false); + for (int i = 0; i < gift.Count; i++) + { + GameObject gameObject = this.m_ResultPool.FetchGameObject(false); + gameObject.transform.parent = this.m_ResultList.gameObject.transform; + GameObject gameObject2 = gameObject.transform.Find("ItemTpl").gameObject; + IXUILabel ixuilabel = gameObject.transform.Find("ItemTpl/Name").GetComponent("XUILabel") as IXUILabel; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)gift[i].itemID); + bool flag = itemConf != null; + if (flag) + { + ixuilabel.SetText(XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)); + } + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)gift[i].itemID, (int)gift[i].itemCount, false); + } + this.m_ResultList.Refresh(); + } + + private void ShowNormalButton(bool free) + { + this.m_NormalLotteryFree.SetVisible(free); + this.m_NormalLotteryOnce.SetVisible(!free); + this.m_NormalLotteryTen.SetVisible(!free); + this._normalCD.SetLeftTime(this._doc.NormalCoolDown, -1); + bool flag = this._doc.NormalFreeCount == this._doc.NormalMaxCount; + if (flag) + { + this._normalCD.SetFormatString(string.Format("{0}({1}/{2})", XStringDefineProxy.GetString("FREE_COUNT_RUNOUT"), this._doc.NormalMaxCount - this._doc.NormalFreeCount, this._doc.NormalMaxCount)); + } + else + { + this._normalCD.SetFormatString(string.Format("{0}({1}/{2})", XStringDefineProxy.GetString("SpriteLotteryNextFreeTime"), this._doc.NormalMaxCount - this._doc.NormalFreeCount, this._doc.NormalMaxCount)); + } + } + + private void ShowSpecialButton(bool free) + { + this.m_SpecialLotteryFree.SetVisible(free); + this.m_SpecialLotteryOnce.SetVisible(!free); + this.m_SpecialLotteryTen.SetVisible(!free); + this._specialCD.SetLeftTime(this._doc.SpecialCoolDown, -1); + this._specialCD.SetFormatString(XStringDefineProxy.GetString("SpriteLotteryNextFreeTime")); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this._normalCD.Update(); + this._specialCD.Update(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteShopHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteShopHandler.cs.meta new file mode 100644 index 00000000..05d33cb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteShopHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4253b4759640dd4faeb44b403fb0a18 +timeCreated: 1611404736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteStarUpWindow.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteStarUpWindow.cs new file mode 100644 index 00000000..af27d31d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteStarUpWindow.cs @@ -0,0 +1,596 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpriteStarUpWindow : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteStarUpWindow"; + } + } + + private XSpriteSystemDocument _doc; + + public XUIPool m_CurrAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_LastAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XSpriteAvatarHandler _SpriteAvatarHandler; + + public IXUISprite m_StarUpBtn; + + public IXUILabel m_StarUpText; + + public IXUILabelSymbol m_Cost; + + public IXUIButton m_Close; + + public GameObject m_CurrSkill; + + private Transform m_EffectParent; + + private XFx _fxFirework; + + public int CurrentClick; + + public List LastAttrList = new List(); + + public List LastValueList = new List(); + + private List _lockList = new List(); + + private SeqList _lockCost; + + private int _lockMaxNum; + + private GameObject m_LastEmpty; + + private IXUIProgress m_Progress; + + private IXUILabel m_ProgressValue; + + private IXUIButton m_HelpBtn; + + private GameObject m_HelpTips; + + public IXUISprite m_RebornBtn; + + private GameObject m_TrainFx; + + private GameObject m_MaxFx; + + private uint _currProcess; + + private uint _needProcess; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this._SpriteAvatarHandler, base.PanelObject.transform.Find("AvatarHandlerParent"), true, this); + Transform transform = base.PanelObject.transform.Find("Property/Label/TplCurrent"); + this.m_CurrAttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = base.PanelObject.transform.Find("Property/Label/TplLast"); + this.m_LastAttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_StarUpBtn = (base.PanelObject.transform.Find("StarUpBtn").GetComponent("XUISprite") as IXUISprite); + this.m_StarUpText = (this.m_StarUpBtn.gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + this.m_Cost = (base.PanelObject.transform.Find("Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Close = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_CurrSkill = base.PanelObject.transform.Find("Skill/SkillIconPos1/SkillTpl").gameObject; + this.m_EffectParent = base.PanelObject.transform.Find("EffectParent"); + for (int i = 0; i < 4; i++) + { + this._lockList.Add(true); + } + this.m_LastEmpty = base.PanelObject.transform.Find("Property/Label/LastEmpty").gameObject; + this.m_Progress = (base.PanelObject.transform.Find("Process/Slider").GetComponent("XUIProgress") as IXUIProgress); + this.m_ProgressValue = (base.PanelObject.transform.Find("Process/ProcessValue").GetComponent("XUILabel") as IXUILabel); + this.m_HelpBtn = (base.PanelObject.transform.Find("Process/Help").GetComponent("XUIButton") as IXUIButton); + this.m_HelpTips = base.PanelObject.transform.Find("Process/Content").gameObject; + this.m_HelpTips.SetActive(false); + this.m_RebornBtn = (base.PanelObject.transform.Find("RebornBtn").GetComponent("XUISprite") as IXUISprite); + this.m_TrainFx = base.PanelObject.transform.Find("Bg/Bg/P/Fx").gameObject; + this.m_TrainFx.SetActive(false); + this.m_MaxFx = base.PanelObject.transform.Find("Process/Slider/Overlay/UI_SpriteStarUpWindow_Clip03").gameObject; + this._lockCost = XSingleton.singleton.GetSequence4List("SpriteTrainCost", false); + this._lockMaxNum = XSingleton.singleton.GetInt("SpriteTrainNoToChooseMaxNum"); + } + + protected override void OnShow() + { + base.OnShow(); + this.LastAttrList.Clear(); + this.LastValueList.Clear(); + for (int i = 0; i < this._lockList.Count; i++) + { + this._lockList[i] = true; + } + this._SpriteAvatarHandler.SetVisible(true); + this._SpriteAvatarHandler.SetSpriteInfoByIndex(DlgBase.singleton._SpriteMainFrame.CurrentClick, 0, false, true); + this.SetInfo(DlgBase.singleton._SpriteMainFrame.CurrentClick); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_StarUpBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnStarUpBtnClick)); + this.m_RebornBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRebornBtnClick)); + this.m_HelpBtn.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnHelpBtnPress)); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_TrainFx.SetActive(false); + DlgBase.singleton._SpriteMainFrame.SetAvatar(); + bool flag = this._fxFirework != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fxFirework, true); + this._fxFirework = null; + } + this._SpriteAvatarHandler.SetVisible(false); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._SpriteAvatarHandler); + bool flag = this._fxFirework != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fxFirework, true); + this._fxFirework = null; + } + base.OnUnload(); + } + + public void OnServerReturn(SpriteType type) + { + this.SetInfo(this.CurrentClick); + this.SetAvatar(); + bool flag = type == SpriteType.Sprite_Evolution; + if (flag) + { + this.ShowStarUpSuccessEffect(); + } + bool flag2 = type == SpriteType.Sprite_Train; + if (flag2) + { + this.m_TrainFx.SetActive(false); + this.m_TrainFx.SetActive(true); + } + } + + public void SetAvatar() + { + this._SpriteAvatarHandler.SetSpriteInfoByIndex(this.CurrentClick, 0, false, true); + } + + private void SetInfo(int index) + { + this.CurrentClick = index; + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(this._doc.SpriteList[index].SpriteID); + SpriteInfo spriteInfo = this._doc.SpriteList[index]; + SpriteEvolution.RowData rowData = null; + bool flag = spriteInfo.EvolutionLevel >= XSpriteSystemDocument.MAXSTARLEVEL[(int)this._doc.GetSpriteQuality(index)]; + bool flag2 = !flag; + if (flag2) + { + rowData = this._doc.GetStarUpData(bySpriteID.SpriteQuality, spriteInfo.EvolutionLevel); + } + bool flag3 = rowData != null; + if (flag3) + { + this._currProcess = spriteInfo.TrainExp; + this._needProcess = rowData.TrainExp[1]; + } + else + { + this._currProcess = 1u; + this._needProcess = 1u; + } + this.m_MaxFx.SetActive(this._currProcess >= this._needProcess); + this.m_Cost.SetVisible(this._currProcess < this._needProcess); + this.m_StarUpBtn.SetGrey(!flag && ((this._currProcess < this._needProcess && this.CostEnough(rowData, bySpriteID)) || (this._currProcess >= this._needProcess && this.CanStarUp(rowData)))); + this.m_RebornBtn.SetEnabled(this._currProcess != 0u || spriteInfo.EvolutionLevel > 0u); + this.m_StarUpText.SetText(XStringDefineProxy.GetString((this._currProcess < this._needProcess) ? "SpriteTrainText" : "SpriteStarUpText")); + bool flag4 = !flag; + if (flag4) + { + string arg = string.Format("{0}X{1}", XLabelSymbolHelper.FormatSmallIcon((int)rowData.EvolutionCost[0]), rowData.EvolutionCost[1]); + bool flag5 = this._lockCost[(int)(bySpriteID.SpriteQuality - 1u), this.GetUnLockNum() + 1] != 0; + if (flag5) + { + arg = string.Format("{0} {1}X{2}", arg, XLabelSymbolHelper.FormatSmallIcon(this._lockCost[(int)(bySpriteID.SpriteQuality - 1u), 0]), this._lockCost[(int)(bySpriteID.SpriteQuality - 1u), this.GetUnLockNum() + 1]); + } + this.m_Cost.InputText = string.Format(XStringDefineProxy.GetString("SpriteCostText"), arg); + } + else + { + this.m_Cost.InputText = XStringDefineProxy.GetString("SpriteStarMaxTips"); + } + this.SetSkillIcon(this.m_CurrSkill, spriteInfo.SkillID, true, spriteInfo.EvolutionLevel); + bool flag6 = flag; + if (flag6) + { + this.m_ProgressValue.SetText(XStringDefineProxy.GetString("SpriteStarMaxTips")); + this.m_Progress.value = 1f; + } + else + { + this.m_ProgressValue.SetText(string.Format("{0}/{1}", this._currProcess, this._needProcess)); + this.m_Progress.value = this._currProcess * 1f / this._needProcess; + } + this.m_LastAttrPool.ReturnAll(false); + bool flag7 = this.LastAttrList.Count == 0; + Vector3 tplPos; + float num; + if (flag7) + { + this.m_LastEmpty.SetActive(true); + } + else + { + this.m_LastEmpty.SetActive(false); + tplPos = this.m_LastAttrPool.TplPos; + num = tplPos.y + ((float)this.LastAttrList.Count - 1f) / 2f * (float)this.m_LastAttrPool.TplHeight; + for (int i = 0; i < this.LastAttrList.Count; i++) + { + GameObject gameObject = this.m_LastAttrPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, num - (float)(i * this.m_LastAttrPool.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("Attr").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this.GetAttrName((uint)this.LastAttrList[i])); + IXUILabel ixuilabel2 = gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(this.LastValueList[i].ToString()); + } + } + this.m_CurrAttrPool.ReturnAll(false); + tplPos = this.m_CurrAttrPool.TplPos; + num = tplPos.y + ((float)spriteInfo.AttrID.Count - 2f) / 2f * (float)this.m_CurrAttrPool.TplHeight; + Dictionary dictionary = new Dictionary(); + for (int j = 0; j < spriteInfo.ThisLevelEvoAttrID.Count; j++) + { + dictionary[spriteInfo.ThisLevelEvoAttrID[j]] = (uint)spriteInfo.ThisLevelEvoAttrValue[j]; + } + int num2 = 0; + for (int k = 0; k < spriteInfo.AttrID.Count; k++) + { + bool flag8 = k == 1; + if (!flag8) + { + GameObject gameObject2 = this.m_CurrAttrPool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3(tplPos.x, num - (float)(num2 * this.m_CurrAttrPool.TplHeight)); + IXUISprite ixuisprite = gameObject2.transform.Find("Locker").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num2); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnLockClick)); + GameObject gameObject3 = gameObject2.transform.Find("Locker/Locked").gameObject; + gameObject3.SetActive(this._lockList[num2]); + IXUILabel ixuilabel3 = gameObject2.transform.Find("Attr").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(this.GetAttrName(spriteInfo.AttrID[k])); + IXUILabel ixuilabel4 = gameObject2.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + uint num3 = 0u; + dictionary.TryGetValue(spriteInfo.AttrID[k], out num3); + ixuilabel4.SetText(num3.ToString()); + num2++; + } + } + } + + private void OnLockClick(IXUISprite iSp) + { + bool flag = this._lockList[(int)iSp.ID] && this.GetUnLockNum() >= this._lockMaxNum; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteStarUpLockMaxTips"), "fece00"); + } + else + { + this._lockList[(int)iSp.ID] = !this._lockList[(int)iSp.ID]; + GameObject gameObject = iSp.gameObject.transform.Find("Locked").gameObject; + gameObject.SetActive(this._lockList[(int)iSp.ID]); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(this._lockList[(int)iSp.ID] ? "SpriteStarUpLock" : "SpriteStarUpUnLock"), "fece00"); + SpriteInfo spriteInfo = this._doc.SpriteList[this.CurrentClick]; + bool flag2 = spriteInfo.EvolutionLevel < XSpriteSystemDocument.MAXSTARLEVEL[(int)this._doc.GetSpriteQuality(this.CurrentClick)]; + if (flag2) + { + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(this._doc.SpriteList[this.CurrentClick].SpriteID); + SpriteEvolution.RowData starUpData = this._doc.GetStarUpData(bySpriteID.SpriteQuality, this._doc.SpriteList[this.CurrentClick].EvolutionLevel); + string arg = string.Format("{0}X{1}", XLabelSymbolHelper.FormatSmallIcon((int)starUpData.EvolutionCost[0]), starUpData.EvolutionCost[1]); + bool flag3 = this._lockCost[(int)(bySpriteID.SpriteQuality - 1u), this.GetUnLockNum() + 1] != 0; + if (flag3) + { + arg = string.Format("{0} {1}X{2}", arg, XLabelSymbolHelper.FormatSmallIcon(this._lockCost[(int)(bySpriteID.SpriteQuality - 1u), 0]), this._lockCost[(int)(bySpriteID.SpriteQuality - 1u), this.GetUnLockNum() + 1]); + } + this.m_Cost.InputText = string.Format(XStringDefineProxy.GetString("SpriteCostText"), arg); + } + } + } + + private bool CanStarUp(SpriteEvolution.RowData cost) + { + bool flag = cost == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Get SpriteEvolution cost data error.", null, null, null, null, null); + } + bool flag2 = this._doc.SpriteList[this.CurrentClick].Level < (uint)cost.LevelLimit; + return !flag2; + } + + private bool CostEnough(SpriteEvolution.RowData cost, SpriteTable.RowData data) + { + bool flag = cost == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Get SpriteEvolution cost data error.", null, null, null, null, null); + } + bool flag2 = XBagDocument.BagDoc.GetItemCount((int)cost.EvolutionCost[0]) < (ulong)cost.EvolutionCost[1]; + bool result; + if (flag2) + { + result = false; + } + else + { + bool flag3 = XBagDocument.BagDoc.GetItemCount(this._lockCost[(int)(data.SpriteQuality - 1u), 0]) < (ulong)this._lockCost[(int)(data.SpriteQuality - 1u), this.GetUnLockNum() + 1]; + result = !flag3; + } + return result; + } + + private void SetSkillIcon(GameObject go, uint skillID, bool mainSkill = false, uint evolutionLevel = 0u) + { + IXUISprite ixuisprite = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Zhu").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = go.transform.Find("Frame").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)evolutionLevel; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSkillIconClicked)); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteSkill.RowData spriteSkillData = specificDocument.GetSpriteSkillData((short)skillID, mainSkill, evolutionLevel); + bool flag = spriteSkillData != null; + if (flag) + { + ixuisprite.SetSprite(spriteSkillData.Icon); + } + ixuilabel.SetVisible(mainSkill); + ixuisprite2.SetVisible(!mainSkill); + bool flag2 = !mainSkill; + if (flag2) + { + ixuisprite2.SetSprite(string.Format("kuang_zq0{0}", spriteSkillData.SkillQuality)); + } + ixuilabel2.SetText(string.Format("[b]Lv.{0}[-]", evolutionLevel + 1u)); + ixuilabel2.SetVisible(mainSkill); + } + + private void OnSkillIconClicked(IXUISprite obj) + { + SpriteInfo spriteInfo = this._doc.SpriteList[this.CurrentClick]; + uint level = (uint)obj.ID; + DlgBase.singleton.ItemSelector.Select(obj); + DlgBase.singleton.ShowSpriteSkill(spriteInfo.SkillID, true, level); + } + + private int GetUnLockNum() + { + int num = 0; + for (int i = 0; i < this._lockList.Count; i++) + { + bool flag = !this._lockList[i]; + if (flag) + { + num++; + } + } + return num; + } + + public void OnStarUpBtnClick(IXUISprite btn) + { + bool flag = this._doc.SpriteList[this.CurrentClick].EvolutionLevel >= XSpriteSystemDocument.MAXSTARLEVEL[(int)this._doc.GetSpriteQuality(this.CurrentClick)]; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteStarMaxTips"), "fece00"); + } + else + { + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(this._doc.SpriteList[this.CurrentClick].SpriteID); + SpriteEvolution.RowData starUpData = this._doc.GetStarUpData(bySpriteID.SpriteQuality, this._doc.SpriteList[this.CurrentClick].EvolutionLevel); + SpriteInfo spriteInfo = this._doc.SpriteList[this.CurrentClick]; + bool flag2 = this._currProcess < this._needProcess; + if (flag2) + { + bool flag3 = !this.CostEnough(starUpData, bySpriteID); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_CHANGEPRO_ITEMLIMIT"), "fece00"); + } + else + { + int num = 0; + List list = new List(); + string text = ""; + for (int i = 0; i < spriteInfo.AttrID.Count; i++) + { + bool flag4 = i == 1; + if (!flag4) + { + bool flag5 = !this._lockList[num]; + if (flag5) + { + list.Add(spriteInfo.AttrID[i]); + text = string.Format("{0} {1}", text, this.GetAttrName(spriteInfo.AttrID[i])); + } + num++; + } + } + bool flag6 = list.Count == 0 || DlgBase.singleton.GetTempTip(XTempTipDefine.OD_SPRITE_TRAIN); + if (flag6) + { + XSingleton.singleton.AddLog("Train!", null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.QueryTrain(this.CurrentClick, list); + } + else + { + string format = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("SpriteTrainCostTipe")); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._lockCost[(int)(bySpriteID.SpriteQuality - 1u), 0]); + string label = string.Format(format, this._lockCost[(int)(bySpriteID.SpriteQuality - 1u), this.GetUnLockNum() + 1], itemConf.ItemName[0], text); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnTrainSure), null, false, XTempTipDefine.OD_SPRITE_TRAIN, 50); + } + } + } + else + { + bool flag7 = this._doc.SpriteList[this.CurrentClick].Level < (uint)starUpData.LevelLimit; + if (flag7) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("SpriteStarUpLevelTips", new object[] + { + starUpData.LevelLimit + }), new object[0]), "fece00"); + } + else + { + string label2 = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("SpriteStarUpSure")); + string string3 = XStringDefineProxy.GetString("COMMON_OK"); + string string4 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label2, string3, string4, new ButtonClickEventHandler(this.OnStarUpSure)); + } + } + } + } + + private bool OnStarUpSure(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.AddLog("StarUp!", null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.QueryStarUp(this.CurrentClick); + return true; + } + + private bool OnTrainSure(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + SpriteInfo spriteInfo = this._doc.SpriteList[this.CurrentClick]; + int num = 0; + List list = new List(); + for (int i = 0; i < spriteInfo.AttrID.Count; i++) + { + bool flag = i == 1; + if (!flag) + { + bool flag2 = !this._lockList[num]; + if (flag2) + { + list.Add(spriteInfo.AttrID[i]); + } + num++; + } + } + XSingleton.singleton.AddLog("Train!", null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.QueryTrain(this.CurrentClick, list); + return true; + } + + private void OnRebornBtnClick(IXUISprite iSp) + { + bool flag = this.CurrentClick >= this._doc.SpriteList.Count; + if (!flag) + { + bool flag2 = this._doc.SpriteList[this.CurrentClick].TrainExp == 0u; + if (flag2) + { + string message = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("SpriteRebornToZeroTips")); + XSingleton.singleton.ShowModalDialog(message, new ButtonClickEventHandler(this.OnRebornToZeroSure)); + } + else + { + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(this._doc.SpriteList[this.CurrentClick].SpriteID); + SpriteEvolution.RowData starUpData = this._doc.GetStarUpData(bySpriteID.SpriteQuality, this._doc.SpriteList[this.CurrentClick].EvolutionLevel); + string format = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("SpriteRebornTips")); + string text = string.Format("{0}{1}", XLabelSymbolHelper.FormatSmallIcon((int)starUpData.ResetTrainCost[0, 0]), starUpData.ResetTrainCost[0, 1]); + string text2 = string.Format("{0}{1}", XLabelSymbolHelper.FormatSmallIcon((int)starUpData.ResetTrainCost[1, 0]), starUpData.ResetTrainCost[1, 1]); + string text3 = string.Format(format, text, text2); + string @string = XStringDefineProxy.GetString("SpriteRebornText"); + DlgBase.singleton.InitShow(text3, new ButtonClickEventHandler(this.OnRebornSure1), new ButtonClickEventHandler(this.OnRebornSure2), text, text2, @string, @string); + } + } + } + + private bool OnRebornSure1(IXUIButton btn) + { + XSingleton.singleton.AddLog("ResetTrain1!", null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.QueryResetTrain(this.CurrentClick, SpriteType.Sprite_ResetTrain, 0u); + return true; + } + + private bool OnRebornSure2(IXUIButton btn) + { + XSingleton.singleton.AddLog("ResetTrain2!", null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.QueryResetTrain(this.CurrentClick, SpriteType.Sprite_ResetTrain, 1u); + return true; + } + + private bool OnRebornToZeroSure(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.AddLog("Rebirth!", null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.QueryResetTrain(this.CurrentClick, SpriteType.Sprite_Rebirth, 0u); + return true; + } + + private void OnHelpBtnPress(IXUIButton btn, bool state) + { + bool flag = this.m_HelpTips.activeInHierarchy != state; + if (flag) + { + this.m_HelpTips.SetActive(state); + } + } + + public bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + public void ShowStarUpSuccessEffect() + { + bool flag = this._fxFirework != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fxFirework, true); + } + this._fxFirework = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_jl_level", this.m_EffectParent, Vector3.zero, Vector3.one, 1f, false, 3f, true); + } + + private string GetAttrName(uint AttrID) + { + bool flag = AttrID == 11u; + string @string; + if (flag) + { + @string = XStringDefineProxy.GetString("SpriteStarUpAttr"); + } + else + { + string key = string.Format("Sprite_{0}", (XAttributeDefine)AttrID); + @string = XStringDefineProxy.GetString(key); + } + return @string; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteStarUpWindow.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteStarUpWindow.cs.meta new file mode 100644 index 00000000..3a20b47f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteStarUpWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cbcc4c0405d262d4286db6874d66f2ab +timeCreated: 1611404547 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteSystemDlg.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteSystemDlg.cs new file mode 100644 index 00000000..ba374c42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteSystemDlg.cs @@ -0,0 +1,211 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SpriteSystemDlg : TabDlgBase + { + public override string fileName + { + get + { + return "GameSystem/SpriteSystem/SpriteSystemDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + protected override bool bHorizontal + { + get + { + return false; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_SpriteSystem); + } + } + + private IXUIButton m_illustration; + + private Transform parent; + + public SpriteMainFrame _SpriteMainFrame; + + public SpriteLotteryHandler _SpriteLotteryHandler; + + public SpriteFightFrame _SpriteFightFrame; + + public SpriteResolveFrame _SpriteResolveFrame; + + public SpriteShopHandler _SpriteShopHandler; + + private Transform windowParent; + + public SpriteStarUpWindow _StarUpWindow; + + public XSpriteIllustrationHandler _IllustrationHandler; + + public XSpriteAwakeHandler _AwakeWindow; + + private XSpriteSystemDocument _doc; + + private XSysDefine _CurrSys; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this.parent = base.uiBehaviour.transform.Find("Bg"); + this.windowParent = base.uiBehaviour.transform.Find("Bg/Windows"); + base.RegisterSubSysRedPointMgr(XSysDefine.XSys_SpriteSystem); + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_illustration = (base.uiBehaviour.transform.Find("Bg/Illustration").GetComponent("XUIButton") as IXUIButton); + this.m_illustration.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnIllustrationClicked)); + IXUIButton ixuibutton = base.uiBehaviour.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClicked)); + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._SpriteMainFrame); + DlgHandlerBase.EnsureUnload(ref this._SpriteLotteryHandler); + DlgHandlerBase.EnsureUnload(ref this._SpriteFightFrame); + DlgHandlerBase.EnsureUnload(ref this._SpriteResolveFrame); + DlgHandlerBase.EnsureUnload(ref this._StarUpWindow); + DlgHandlerBase.EnsureUnload(ref this._IllustrationHandler); + DlgHandlerBase.EnsureUnload(ref this._AwakeWindow); + DlgHandlerBase.EnsureUnload(ref this._SpriteShopHandler); + base.OnUnload(); + } + + public override void SetupHandlers(XSysDefine sys) + { + this._CurrSys = sys; + this._doc.SortList(); + switch (sys) + { + case XSysDefine.XSys_SpriteSystem_Main: + this._doc.CurrentTag = SpriteHandlerTag.Main; + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._SpriteMainFrame, this.parent, true, this)); + return; + case XSysDefine.XSys_SpriteSystem_Lottery: + this._doc.CurrentTag = SpriteHandlerTag.Lottery; + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._SpriteLotteryHandler, this.parent, true, this)); + return; + case XSysDefine.XSys_SpriteSystem_Fight: + this._doc.CurrentTag = SpriteHandlerTag.Fight; + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._SpriteFightFrame, this.parent, true, this)); + return; + case XSysDefine.XSys_SpriteSystem_Resolve: + this._doc.CurrentTag = SpriteHandlerTag.Resolve; + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._SpriteResolveFrame, this.parent, true, this)); + return; + case XSysDefine.XSys_SpriteSystem_Shop: + this._doc.CurrentTag = SpriteHandlerTag.Shop; + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._SpriteShopHandler, this.parent, true, this)); + return; + } + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + } + + public void RefreshTopUI() + { + bool flag = !base.IsVisible(); + if (!flag) + { + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.OnTopUIRefreshed(this); + } + } + + public override int[] GetTitanBarItems() + { + OpenSystemTable.RowData sysData = XSingleton.singleton.GetSysData(XFastEnumIntEqualityComparer.ToInt(this._CurrSys)); + bool flag = sysData == null; + int[] result; + if (flag) + { + result = null; + } + else + { + result = sysData.TitanItems; + } + return result; + } + + public void OpenWindows(SpriteWindow type) + { + switch (type) + { + case SpriteWindow.StarUp: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._StarUpWindow, this.windowParent, true, this)); + break; + case SpriteWindow.Awake: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._AwakeWindow, this.windowParent, true, this)); + break; + case SpriteWindow.Illustration: + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._IllustrationHandler, this.windowParent, true, this)); + break; + } + } + + private bool OnIllustrationClicked(IXUIButton btn) + { + this.OpenWindows(SpriteWindow.Illustration); + this._IllustrationHandler.ShowSpriteAllIllustration(); + return true; + } + + private bool OnHelpBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_SpriteSystem); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.m_illustration.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_SpriteSystem_Lottery)); + this.CheckSpriteSummonRedpoint(); + } + + public void CheckSpriteSummonRedpoint() + { + string[] array = XSingleton.singleton.GetValue("SpriteDrawCost").Split(XGlobalConfig.SequenceSeparator); + string[] array2 = XSingleton.singleton.GetValue("SpriteGoldDrawCost").Split(XGlobalConfig.SequenceSeparator); + bool flag = array.Length != 2 || array2.Length != 2; + if (!flag) + { + XBagDocument specificDocument = XDocuments.GetSpecificDocument(XBagDocument.uuID); + bool bState = specificDocument.GetItemCount(int.Parse(array[0])) > 0UL || specificDocument.GetItemCount(int.Parse(array2[0])) > 0UL; + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_SpriteSystem_Lottery, bState); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_SpriteSystem_Lottery, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteSystemDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteSystemDlg.cs.meta new file mode 100644 index 00000000..733bc328 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteSystemDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15ee616fb3f830d40b8943f5c6df8267 +timeCreated: 1611403266 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteWindow.cs b/Client/Assets/Scripts/XMainClient/UI/SpriteWindow.cs new file mode 100644 index 00000000..6682417a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteWindow.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient.UI +{ + public enum SpriteWindow + { + StarUp, + Awake, + Illustration + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SpriteWindow.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SpriteWindow.cs.meta new file mode 100644 index 00000000..46640d77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SpriteWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b45648f1cfa52804ab9d55ea81c73a54 +timeCreated: 1611404392 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs b/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs new file mode 100644 index 00000000..962d67ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs @@ -0,0 +1,156 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SuperRiskDlg : DlgBase + { + private XSuperRiskDocument _doc + { + get + { + return XSuperRiskDocument.Doc; + } + } + + public override string fileName + { + get + { + return "GameSystem/SuperRisk/SuperRiskDlg"; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private SuperRiskSelectMapHandler _SelectMapHandler; + + private SuperRiskGameHandler _GameHandler; + + protected override void Init() + { + DlgHandlerBase.EnsureCreate(ref this._GameHandler, base.uiBehaviour.m_RiskMapPanel.transform, false, null); + DlgHandlerBase.EnsureCreate(ref this._SelectMapHandler, base.uiBehaviour.m_SelectMapPanel.transform, false, null); + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._SelectMapHandler); + DlgHandlerBase.EnsureUnload(ref this._GameHandler); + base.OnUnload(); + } + + public override void LeaveStackTop() + { + bool flag = this._GameHandler != null && this._GameHandler.IsVisible(); + if (flag) + { + this._GameHandler.LeaveStackTop(); + } + base.LeaveStackTop(); + } + + public override void RegisterEvent() + { + } + + protected override void OnHide() + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_SuperRisk, true); + base.OnHide(); + } + + protected override void OnShow() + { + bool isNeedEnterMainGame = this._doc.IsNeedEnterMainGame; + if (isNeedEnterMainGame) + { + this.ShowGameMap(); + XSuperRiskDocument.Doc.IsNeedEnterMainGame = false; + } + else + { + this.ShowSelectMap(); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._GameHandler != null && this._GameHandler.IsVisible(); + if (flag) + { + this._GameHandler.OnUpdate(); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = this._GameHandler != null && this._GameHandler.IsVisible(); + if (flag) + { + this._GameHandler.StackRefresh(); + } + } + + public void Show(bool isNeedEnterMainGame, int mapId = 0) + { + this._doc.CurrentMapID = mapId; + bool flag = !this._doc.IsNeedEnterMainGame; + if (flag) + { + this._doc.IsNeedEnterMainGame = isNeedEnterMainGame; + } + this.SetVisibleWithAnimation(true, null); + } + + public void ShowGameMap() + { + this._SelectMapHandler.SetVisible(false); + this._GameHandler.SetVisible(true); + } + + public void ShowSelectMap() + { + this._GameHandler.SetVisible(false); + this._SelectMapHandler.SetVisible(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs.meta new file mode 100644 index 00000000..7a12fa44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3528394bd55e42541b024bdf5dead193 +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlgBehaviour.cs new file mode 100644 index 00000000..264720db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlgBehaviour.cs @@ -0,0 +1,19 @@ +using System; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class SuperRiskDlgBehaviour : DlgBehaviourBase + { + public GameObject m_SelectMapPanel; + + public GameObject m_RiskMapPanel; + + private void Awake() + { + this.m_SelectMapPanel = base.transform.Find("Bg/SelectMap").gameObject; + this.m_RiskMapPanel = base.transform.Find("Bg/RiskMap").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlgBehaviour.cs.meta new file mode 100644 index 00000000..a2749d93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c5c66d2eab6ee04fbdbd41c3e8bd7d8 +timeCreated: 1611403895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskGameHandler.cs b/Client/Assets/Scripts/XMainClient/UI/SuperRiskGameHandler.cs new file mode 100644 index 00000000..52b6ac0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskGameHandler.cs @@ -0,0 +1,1400 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SuperRiskGameHandler : DlgHandlerBase + { + public string ScrollEffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_scrollEffectPath); + if (flag) + { + this.m_scrollEffectPath = XSingleton.singleton.GetValue("RiskScrollEffectPath"); + } + return this.m_scrollEffectPath; + } + } + + public string DungeonEffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_dungeonEffectPath); + if (flag) + { + this.m_dungeonEffectPath = XSingleton.singleton.GetValue("RiskDungeonEffectPath"); + } + return this.m_dungeonEffectPath; + } + } + + public string BoxEffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_boxEffectPath); + if (flag) + { + this.m_boxEffectPath = XSingleton.singleton.GetValue("RiskBoxEffectPath"); + } + return this.m_boxEffectPath; + } + } + + protected override string FileName + { + get + { + return "GameSystem/SuperRisk/GameHandler"; + } + } + + private readonly Color GreyColor = new Color(0.3019608f, 0.3019608f, 0.3019608f, 1f); + + private readonly Color NormalColor = new Color(1f, 1f, 1f, 1f); + + private XSuperRiskDocument _doc; + + private XWelfareDocument _welfareDoc; + + private IXUISprite PlayerAvatar = null; + + private IXUITweenTool PlayerTween = null; + + private IXUITweenTool ResetTween = null; + + public static uint total_slot_box = 3u; + + private IXUIButton m_Close; + + private IXUIButton m_Help; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUISprite m_rollBtn; + + private IXUITweenTool m_rollTween; + + private Transform m_rollFx; + + private GameObject m_rollBarGo; + + private Dictionary m_MapItems = new Dictionary(); + + private Transform m_DiceDummyPoint; + + private XDummy m_DiceDummy; + + private Transform m_controller; + + private int m_DiceAnimValue = 0; + + private static float DiceAnimationTime = 2f; + + private uint m_DiceTimer; + + private IXUILabel m_LeftTime; + + private IXUILabel m_RecoverTime; + + private IXUILabel m_mapTittleLab; + + private IXUILabel m_RecoverFullLab; + + private IXUISprite m_PrerogativeSpr; + + private IXUILabel m_PrerogativeLab; + + private IXUISprite m_PrerogativeBg; + + private XUIPool SlotBoxPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel[] m_CachedBoxSlotTimeLabel = new IXUILabel[3]; + + private IXUILabelSymbol[] m_CachedBoxCostLabel = new IXUILabelSymbol[3]; + + private IXUITweenTool m_BoxSlotTween; + + private GameObject m_GetBoxFrame; + + private IXUITweenTool m_GetBoxTween; + + private uint m_CacheItemID; + + private int m_CacheSlot; + + private Transform m_theEndTra; + + private IXUITexture m_mapTexture; + + public GameObject m_OpenBoxFrame; + + private GameObject m_OnlineBoxFrame; + + private SuperRiskOpenboxHandler m_OpenBoxHandler; + + private SuperRiskOnlineBoxHandler m_OnlineBoxHandler; + + private bool m_bIsPlayingResetAnimation = false; + + public GameObject m_NoticeFrame; + + public IXUIButton m_NoticeYes; + + private float m_fCoolTime = 0.7f; + + private float m_fLastClickBtnTime = 0f; + + private static CommandCallback _playDiceCb = new CommandCallback(SuperRiskGameHandler._PlayDice); + + private XFx m_scrollFx; + + private List m_dungeonFxs = new List(); + + private XFx[] m_boxFxs = new XFx[3]; + + private string m_scrollEffectPath = string.Empty; + + private string m_dungeonEffectPath = string.Empty; + + private string m_boxEffectPath = string.Empty; + + private int m_discardBoxId = 0; + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XSuperRiskDocument.uuID) as XSuperRiskDocument); + this._doc.GameViewHandler = this; + this._welfareDoc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.PlayerAvatar = (base.PanelObject.transform.Find("PlayerAvatar/Me").GetComponent("XUISprite") as IXUISprite); + this.PlayerTween = (base.PanelObject.transform.Find("PlayerAvatar").GetComponent("XUIPlayTween") as IXUITweenTool); + this.PlayerAvatar.spriteName = XSingleton.singleton.GetSuperRiskAvatar(XSingleton.singleton.Player.BasicTypeID); + this.ResetTween = (base.PanelObject.transform.Find("again/again").GetComponent("XUIPlayTween") as IXUITweenTool); + this.ResetTween.SetTweenGroup(0); + this.ResetTween.gameObject.SetActive(false); + this.m_Close = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Dynamic/Item"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 20u, false); + this.m_LeftTime = (base.PanelObject.transform.Find("Panel/Time").GetComponent("XUILabel") as IXUILabel); + this.m_RecoverTime = (base.PanelObject.transform.Find("Panel/Time/Recover").GetComponent("XUILabel") as IXUILabel); + this.m_RecoverFullLab = (base.PanelObject.transform.Find("Panel/Time/Tips").GetComponent("XUILabel") as IXUILabel); + this.m_PrerogativeSpr = (base.PanelObject.transform.Find("Panel/Time/tq").GetComponent("XUISprite") as IXUISprite); + this.m_PrerogativeLab = (base.PanelObject.transform.Find("Panel/Time/tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_PrerogativeBg = (base.PanelObject.transform.Find("Panel/Time/tq/p").GetComponent("XUISprite") as IXUISprite); + this.m_rollBtn = (base.PanelObject.transform.Find("Roll/Rollbutton").GetComponent("XUISprite") as IXUISprite); + this.m_rollTween = (base.PanelObject.transform.Find("Roll/Rollbutton").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_rollFx = base.PanelObject.transform.Find("Roll/Rollbutton/FX"); + this.m_rollBarGo = base.PanelObject.transform.Find("Roll/k").gameObject; + this.m_rollBarGo.SetActive(false); + this.m_DiceDummyPoint = base.PanelObject.transform.Find("Roll/DicePoint"); + transform = base.PanelObject.transform.Find("BoxSlot/BoxTpl"); + this.SlotBoxPool.SetupPool(transform.parent.gameObject, transform.gameObject, SuperRiskGameHandler.total_slot_box, false); + this.m_BoxSlotTween = (base.PanelObject.transform.Find("BoxSlot").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_GetBoxFrame = base.PanelObject.transform.Find("Getbox").gameObject; + this.m_GetBoxTween = (this.m_GetBoxFrame.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_GetBoxFrame.SetActive(false); + this.m_mapTexture = (base.PanelObject.transform.Find("GameMap").GetComponent("XUITexture") as IXUITexture); + this.m_mapTittleLab = (base.PanelObject.transform.Find("GameMap/T").GetComponent("XUILabel") as IXUILabel); + this.m_OpenBoxFrame = base.PanelObject.transform.Find("Openbox").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_OpenBoxHandler, this.m_OpenBoxFrame, null, false); + this.m_OnlineBoxFrame = base.PanelObject.transform.Find("Openlihe").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_OnlineBoxHandler, this.m_OnlineBoxFrame, null, false); + this.m_theEndTra = base.PanelObject.transform.Find("Dynamic/TheEnd"); + this.m_NoticeFrame = base.PanelObject.transform.Find("Notice").gameObject; + this.m_NoticeYes = (base.PanelObject.transform.Find("Notice/Buy").GetComponent("XUIButton") as IXUIButton); + this.m_NoticeFrame.SetActive(false); + } + + public override void OnUnload() + { + this._doc.GameViewHandler = null; + bool flag = this.m_scrollFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_scrollFx, true); + this.m_scrollFx = null; + } + for (int i = 0; i < this.m_dungeonFxs.Count; i++) + { + bool flag2 = this.m_dungeonFxs[i] != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_dungeonFxs[i], true); + this.m_dungeonFxs[i] = null; + } + } + for (int j = 0; j < this.m_boxFxs.Length; j++) + { + bool flag3 = this.m_boxFxs[j] != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this.m_boxFxs[j], true); + this.m_boxFxs[j] = null; + } + } + DlgHandlerBase.EnsureUnload(ref this.m_OpenBoxHandler); + DlgHandlerBase.EnsureUnload(ref this.m_OnlineBoxHandler); + bool flag4 = this._doc.GameState == SuperRiskState.SuperRiskMoving; + if (flag4) + { + this._doc.NoticeMoveOver(); + } + base.OnUnload(); + } + + public override void RegisterEvent() + { + this.m_NoticeYes.RegisterClickEventHandler(new ButtonClickEventHandler(this._NoticeYesClick)); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + this.m_PrerogativeBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMemberPrivilegeClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_SuperRisk); + return true; + } + + protected override void OnShow() + { + this.InitMapBaseInfo(); + this._doc.ReqMapDynamicInfo(this._doc.CurrentMapID, false, false); + } + + public override void LeaveStackTop() + { + XSingleton.singleton.AddGreenLog("LeaveStackTop!", null, null, null, null, null); + this.Clear(); + base.LeaveStackTop(); + } + + public void RefreshUi() + { + this.RefreshMap(); + this.SetDiceLeftTime(); + this.SetupSlotBoxes(); + this.ShowCatchedOnlineBox(); + } + + protected override void OnHide() + { + this.Clear(); + base.OnHide(); + } + + private void Clear() + { + bool flag = this.m_DiceTimer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.m_DiceTimer); + this.m_DiceTimer = 0u; + } + bool flag2 = this.m_DiceDummy != null; + if (flag2) + { + XSingleton.singleton.DestroyEntity(this.m_DiceDummy); + this.m_DiceDummy = null; + } + this.m_controller = null; + this.m_bIsPlayingResetAnimation = false; + bool flag3 = this.m_GetBoxTween != null && this.m_GetBoxTween.gameObject.activeSelf; + if (flag3) + { + this.m_GetBoxTween.StopTweenByGroup(0); + this.m_GetBoxTween.ResetTween(true); + this.m_GetBoxFrame.SetActive(false); + } + bool flag4 = this.m_rollTween != null && this.m_rollTween.gameObject.activeSelf; + if (flag4) + { + this.m_rollTween.StopTweenByGroup(0); + this.m_rollTween.ResetTweenByGroup(true, 0); + } + bool flag5 = this.ResetTween != null && this.ResetTween.gameObject.activeSelf; + if (flag5) + { + this.ResetTween.StopTweenByGroup(0); + this.ResetTween.ResetTweenByGroup(true, 0); + this.ResetTween.gameObject.SetActive(false); + } + bool flag6 = this.PlayerTween != null && this.PlayerTween.gameObject.activeSelf; + if (flag6) + { + this.PlayerTween.StopTweenByGroup(0); + this.PlayerTween.ResetTweenByGroup(true, 0); + } + bool flag7 = this.m_OpenBoxHandler != null && this.m_OpenBoxHandler.IsVisible(); + if (flag7) + { + this.m_OpenBoxHandler.SetVisible(false); + } + bool flag8 = this.m_OnlineBoxHandler != null && this.m_OnlineBoxHandler.IsVisible(); + if (flag8) + { + this.m_OnlineBoxHandler.SetVisible(false); + } + this.DestoryTex(); + bool flag9 = this.m_OpenBoxFrame != null; + if (flag9) + { + this.m_OpenBoxHandler.ClearCatchTex(); + } + bool flag10 = this._doc != null; + if (flag10) + { + bool flag11 = this._doc.GameState == SuperRiskState.SuperRiskDicing || this._doc.GameState == SuperRiskState.SuperRiskMoving; + if (flag11) + { + this._doc.NoticeMoveOver(); + } + this._doc.StopStep(); + } + bool flag12 = this.m_scrollFx != null; + if (flag12) + { + this.m_scrollFx.Stop(); + this.m_scrollFx.SetActive(false); + } + for (int i = 0; i < this.m_dungeonFxs.Count; i++) + { + bool flag13 = this.m_dungeonFxs[i] != null; + if (flag13) + { + this.m_dungeonFxs[i].Stop(); + this.m_dungeonFxs[i].SetActive(false); + } + } + for (int j = 0; j < this.m_boxFxs.Length; j++) + { + bool flag14 = this.m_boxFxs[j] != null; + if (flag14) + { + this.m_boxFxs[j].Stop(); + this.m_boxFxs[j].SetActive(false); + } + } + } + + private void DestoryTex() + { + this.m_mapTexture.SetTexturePath(""); + } + + public override void StackRefresh() + { + this.InitMapBaseInfo(); + this._doc.ReqMapDynamicInfo(this._doc.CurrentMapID, false, false); + } + + public void RefreshMap() + { + this.PlayerAvatar.gameObject.SetActive(true); + this.PlayerAvatar.gameObject.transform.parent.localPosition = this._doc.GetPlayerAvatarPos(); + this.m_ItemPool.FakeReturnAll(); + this.m_MapItems.Clear(); + RiskMapFile.RowData currentMapData = this._doc.GetCurrentMapData(); + int num = 0; + for (int i = 0; i < this._doc.CurrentDynamicInfo.Count; i++) + { + RiskGridInfo riskGridInfo = this._doc.CurrentDynamicInfo[i]; + bool flag = riskGridInfo == null; + if (!flag) + { + Vector2 gridPos = this._doc.GetGridPos(riskGridInfo.x, riskGridInfo.y); + char c; + XSingleton.singleton.CurrentMap.GetNodeGroup(new Coordinate(riskGridInfo.x, riskGridInfo.y), out c); + bool flag2 = c == 'T'; + if (flag2) + { + this.m_theEndTra.gameObject.SetActive(true); + this.m_theEndTra.localPosition = gridPos; + } + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.Find("Di").GetComponent("XUISprite") as IXUISprite; + bool flag3 = currentMapData != null; + if (flag3) + { + ixuisprite.SetSprite(currentMapData.MapGridBg); + } + ixuisprite.spriteDepth = 15 + riskGridInfo.y * 2; + ixuisprite = (gameObject.transform.Find("Card").GetComponent("XUISprite") as IXUISprite); + ixuisprite.spriteDepth = 16 + riskGridInfo.y * 2; + switch (riskGridInfo.gridType) + { + case RiskGridType.RISK_GRID_EMPTY: + ixuisprite.SetVisible(false); + break; + case RiskGridType.RISK_GRID_NORMALREWARD: + { + ixuisprite.SetVisible(true); + bool flag4 = riskGridInfo.boxState != RiskBoxState.RISK_BOX_UNLOCKED; + ixuisprite.SetEnabled(flag4); + bool flag5 = !flag4; + if (flag5) + { + ixuisprite.SetColor(this.GreyColor); + } + else + { + ixuisprite.SetColor(this.NormalColor); + } + ixuisprite.SetSprite("dmxkuang_0"); + break; + } + case RiskGridType.RISK_GRID_REWARDBOX: + { + ixuisprite.SetVisible(true); + bool flag4 = riskGridInfo.boxState != RiskBoxState.RISK_BOX_UNLOCKED; + ixuisprite.SetEnabled(flag4); + bool flag6 = !flag4; + if (flag6) + { + ixuisprite.SetColor(this.GreyColor); + } + else + { + ixuisprite.SetColor(this.NormalColor); + } + ixuisprite.SetSprite(this.GetBoxSprNameByState(riskGridInfo.rewardItem.itemID)); + break; + } + case RiskGridType.RISK_GRID_ADVENTURE: + { + ixuisprite.SetVisible(true); + bool flag4 = riskGridInfo.boxState != RiskBoxState.RISK_BOX_UNLOCKED; + ixuisprite.SetEnabled(flag4); + bool flag7 = !flag4; + if (flag7) + { + ixuisprite.SetColor(this.GreyColor); + } + else + { + ixuisprite.SetColor(this.NormalColor); + } + ixuisprite.SetSprite("dmxkuang_4"); + bool flag8 = this.m_dungeonFxs.Count <= num; + if (flag8) + { + XFx item = XSingleton.singleton.CreateFx(this.DungeonEffectPath, null, true); + this.m_dungeonFxs.Add(item); + } + else + { + this.m_dungeonFxs[num].SetActive(true); + } + bool flag9 = flag4; + if (flag9) + { + this.m_dungeonFxs[num].Play(ixuisprite.gameObject.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + else + { + this.m_dungeonFxs[num].SetActive(false); + this.m_dungeonFxs[num].Stop(); + } + num++; + break; + } + case RiskGridType.RISK_GRID_DICE: + { + ixuisprite.SetVisible(true); + bool flag4 = riskGridInfo.boxState != RiskBoxState.RISK_BOX_UNLOCKED; + ixuisprite.SetEnabled(flag4); + bool flag10 = !flag4; + if (flag10) + { + ixuisprite.SetColor(this.GreyColor); + } + else + { + ixuisprite.SetColor(this.NormalColor); + } + ixuisprite.SetSprite("dmxkuang_5"); + break; + } + } + IXUISprite ixuisprite2 = gameObject.transform.Find("Di").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(riskGridInfo.gridType)); + bool flag11 = i != 0; + if (flag11) + { + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowItemTips)); + } + else + { + ixuisprite2.RegisterSpriteClickEventHandler(null); + ixuisprite.SetSprite("SuperBegin"); + ixuisprite.SetEnabled(true); + ixuisprite.SetVisible(true); + } + gameObject.transform.localPosition = gridPos; + this.m_MapItems.Add(riskGridInfo, gameObject); + } + } + bool flag12 = this.m_dungeonFxs.Count > num; + if (flag12) + { + for (int j = num; j < this.m_dungeonFxs.Count; j++) + { + bool flag13 = this.m_dungeonFxs[j] != null; + if (flag13) + { + this.m_dungeonFxs[j].SetActive(false); + this.m_dungeonFxs[j].Stop(); + } + } + } + this.m_ItemPool.ActualReturnAll(false); + } + + private void OnShowItemTips(IXUISprite spr) + { + switch ((int)spr.ID) + { + case 1: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SuperRiskEmpty"), "fece00"); + break; + case 2: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SuperRiskHandBook"), "fece00"); + break; + case 3: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SuperRiskBox"), "fece00"); + break; + case 4: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SuperRiskAdvance"), "fece00"); + break; + case 5: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SuperRiskDice"), "fece00"); + break; + } + } + + private void InitMapBaseInfo() + { + RiskMapFile.RowData currentMapData = this._doc.GetCurrentMapData(); + bool flag = currentMapData != null; + if (flag) + { + this.m_mapTexture.SetTexturePath("atlas/UI/GameSystem/SuperRisk/" + currentMapData.MapBgName); + this.m_mapTittleLab.SetText(string.Format("[b]{0}[-]", currentMapData.MapTittleName)); + } + this.PlayerAvatar.gameObject.SetActive(false); + this.m_theEndTra.gameObject.SetActive(false); + this.HideDice(); + this.m_PrerogativeSpr.SetGrey(this._welfareDoc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce)); + this.m_PrerogativeSpr.SetSprite(this._welfareDoc.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Commerce)); + this.m_PrerogativeLab.SetEnabled(this._welfareDoc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce)); + } + + private void OnMemberPrivilegeClicked(IXUISprite btn) + { + bool flag = this._doc.GameState == SuperRiskState.SuperRiskSendingRollMes || this._doc.GameState == SuperRiskState.SuperRiskRolling || this._doc.GameState == SuperRiskState.SuperRiskDicing || this._doc.GameState == SuperRiskState.SuperRiskMoving || this._doc.GameState == SuperRiskState.SuperRiskEvent || this._doc.GameState == SuperRiskState.SuperRiskRefreshMap; + if (!flag) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + } + } + + public void HideDice() + { + bool flag = this.m_DiceDummy != null; + if (flag) + { + this.m_DiceDummy.EngineObject.SetActive(false, ""); + } + } + + public void OnMapItemFetched(Coordinate c) + { + RiskGridInfo gridDynamicInfo = this._doc.GetGridDynamicInfo(c); + bool flag = gridDynamicInfo == null; + if (!flag) + { + bool flag2 = !this.m_MapItems.ContainsKey(gridDynamicInfo); + if (!flag2) + { + IXUISprite ixuisprite = this.m_MapItems[gridDynamicInfo].transform.Find("Card").GetComponent("XUISprite") as IXUISprite; + switch (gridDynamicInfo.gridType) + { + case RiskGridType.RISK_GRID_NORMALREWARD: + { + ixuisprite.SetEnabled(false); + ixuisprite.SetColor(this.GreyColor); + bool flag3 = gridDynamicInfo.rewardItem.itemID > 0u; + if (flag3) + { + this.HideDice(); + DlgBase.singleton.Show(new List + { + gridDynamicInfo.rewardItem + }, new Action(this._doc.RewdAnimCallBack)); + } + else + { + bool isHadOnlineBoxCache = this._doc.IsHadOnlineBoxCache; + if (isHadOnlineBoxCache) + { + this._doc.IsHadOnlineBoxCache = false; + this.HideDice(); + this.ShowOnlineBox(); + } + } + break; + } + case RiskGridType.RISK_GRID_REWARDBOX: + ixuisprite.SetEnabled(false); + ixuisprite.SetColor(this.GreyColor); + break; + case RiskGridType.RISK_GRID_ADVENTURE: + { + ixuisprite.SetEnabled(false); + ixuisprite.SetColor(this.GreyColor); + bool flag4 = ixuisprite.gameObject.transform.childCount > 0; + if (flag4) + { + ixuisprite.gameObject.transform.GetChild(0).gameObject.SetActive(false); + } + break; + } + case RiskGridType.RISK_GRID_DICE: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("AddDiceTips"), "fece00"); + ixuisprite.SetEnabled(false); + ixuisprite.SetColor(this.GreyColor); + break; + } + } + } + } + + public string GetBoxSprNameByState(uint itemID) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemID); + bool flag = itemConf == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + result = XSingleton.singleton.StringCombine("Boxicon_", ((int)(itemConf.ItemQuality - 1)).ToString()); + } + return result; + } + + public string GetHandbookSprName(int itemId) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemId); + bool flag = itemConf == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + switch (itemConf.ItemQuality) + { + case 1: + result = "tujicon_0"; + break; + case 2: + result = "tujicon_3"; + break; + case 3: + result = "tujicon_2"; + break; + case 4: + result = "tujicon_1"; + break; + case 5: + result = "tujicon_4"; + break; + default: + result = "tujicon_0"; + break; + } + } + return result; + } + + public string GetBoxPicByState(uint itemID, RiskBoxState state) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemID); + bool flag = itemConf != null; + string result; + if (flag) + { + string text = string.Format("atlas/UI/GameSystem/SuperRisk/bx{0}", (int)(itemConf.ItemQuality - 1)); + bool flag2 = state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag2) + { + text += "_1"; + } + result = text; + } + else + { + result = ""; + } + return result; + } + + public void SetDiceLeftTime() + { + bool flag = this._doc.LeftDiceTime <= 0; + string arg; + if (flag) + { + arg = "[ff0000]" + this._doc.LeftDiceTime + "[-]"; + this.m_rollBtn.SetGrey(false); + this.m_rollBtn.RegisterSpritePressEventHandler(null); + this.m_rollBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnRollClick)); + } + else + { + arg = this._doc.LeftDiceTime.ToString(); + this.m_rollBtn.SetGrey(true); + this.m_rollBtn.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnRollPress)); + this.m_rollBtn.RegisterSpriteClickEventHandler(null); + } + int num = 0; + PayMemberTable.RowData memberPrivilegeConfig = this._welfareDoc.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce); + bool flag2 = memberPrivilegeConfig != null; + if (flag2) + { + num = memberPrivilegeConfig.SuperRiskCount; + } + bool flag3 = this._welfareDoc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + if (flag3) + { + int num2 = 0; + bool flag4 = this._welfareDoc.PayMemberPrivilege != null; + if (flag4) + { + num2 = this._welfareDoc.PayMemberPrivilege.usedSuperRiskCount; + } + int num3 = (num > num2) ? (num - num2) : 0; + this.m_PrerogativeLab.SetText(string.Format("{0}{1}/{2}", XStringDefineProxy.GetString("Prerogative_Superrisk"), num3, num)); + this.m_LeftTime.SetText(string.Format("[b]{0}/{1}[/b]", this._doc.LeftDiceTime - num3, XSingleton.singleton.GetValue("RiskDiceMaxNum"))); + } + else + { + this.m_PrerogativeLab.SetText(string.Format("{0}{1}/{2}", XStringDefineProxy.GetString("Prerogative_Superrisk"), num, num)); + this.m_LeftTime.SetText(string.Format("[b]{0}/{1}[/b]", arg, XSingleton.singleton.GetValue("RiskDiceMaxNum"))); + } + bool flag5 = this._doc.RefreshDiceTime == -1f; + if (flag5) + { + this.m_RecoverFullLab.gameObject.SetActive(true); + this.m_RecoverFullLab.SetText(XStringDefineProxy.GetString("ReplyDiceFullTips")); + this.m_RecoverTime.gameObject.SetActive(false); + } + else + { + this.m_RecoverTime.gameObject.SetActive(true); + this.m_RecoverTime.SetText(XSingleton.singleton.TimeFormatString((int)this._doc.RefreshDiceTime, 2, 3, 4, false, true)); + this.m_RecoverFullLab.gameObject.SetActive(false); + } + } + + public void SetupSlotBoxes() + { + this.SlotBoxPool.FakeReturnAll(); + for (int i = 0; i < 3; i++) + { + GameObject gameObject = this.SlotBoxPool.FetchGameObject(false); + gameObject.name = XSingleton.singleton.StringCombine("slot", i.ToString()); + gameObject.transform.localPosition = this.SlotBoxPool.TplPos + new Vector3((float)(i * this.SlotBoxPool.TplWidth), 0f); + this.m_CachedBoxSlotTimeLabel[i] = (gameObject.transform.Find("State/Time").GetComponent("XUILabel") as IXUILabel); + this.m_CachedBoxCostLabel[i] = (gameObject.transform.Find("State/Time/SpeedBtn/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + bool flag = this._doc.SlotBoxInfo.ContainsKey(i); + if (flag) + { + this.SetupSlotBox(gameObject, this._doc.SlotBoxInfo[i], i); + } + else + { + this.SetupSlotBox(gameObject, null, i); + } + } + this.SlotBoxPool.ActualReturnAll(false); + } + + private void ShowCatchedOnlineBox() + { + RiskGridInfo gridDynamicInfo = this._doc.GetGridDynamicInfo(XSingleton.singleton.CurrentMap.PlayerCoord); + bool flag = gridDynamicInfo == null; + if (!flag) + { + bool flag2 = gridDynamicInfo.gridType != RiskGridType.RISK_GRID_ADVENTURE; + if (!flag2) + { + bool isHadOnlineBoxCache = this._doc.IsHadOnlineBoxCache; + if (isHadOnlineBoxCache) + { + this._doc.IsHadOnlineBoxCache = false; + this.HideDice(); + this.ShowOnlineBox(); + } + } + } + } + + protected void SetupSlotBox(GameObject go, ClientBoxInfo info, int slot) + { + IXUISprite ixuisprite = go.GetComponent("XUISprite") as IXUISprite; + IXUITexture ixuitexture = go.transform.Find("Box").GetComponent("XUITexture") as IXUITexture; + IXUISprite ixuisprite2 = ixuitexture.gameObject.transform.Find("Closed").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = go.transform.Find("State").gameObject; + bool flag = info == null; + if (flag) + { + ixuitexture.gameObject.SetActive(false); + gameObject.SetActive(false); + } + else + { + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickDiscardBox)); + ixuisprite2.ID = (ulong)slot; + bool flag2 = info.state == RiskBoxState.RISK_BOX_CANGETREWARD; + if (flag2) + { + ixuisprite2.SetVisible(false); + } + else + { + ixuisprite2.SetVisible(true); + } + ixuitexture.gameObject.SetActive(true); + gameObject.SetActive(true); + ixuitexture.SetTexturePath(this.GetBoxPicByState(info.itemID, RiskBoxState.RISK_BOX_LOCKED)); + Transform transform = go.transform.Find("State/Time"); + Transform transform2 = go.transform.Find("State/unlock"); + Transform transform3 = go.transform.Find("State/open"); + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + switch (info.state) + { + case RiskBoxState.RISK_BOX_LOCKED: + transform2.gameObject.SetActive(true); + this.m_BoxSlotTween.SetTargetGameObject(ixuitexture.gameObject); + this.m_BoxSlotTween.ResetTween(true); + break; + case RiskBoxState.RISK_BOX_UNLOCKED: + transform.gameObject.SetActive(true); + this.m_BoxSlotTween.SetTargetGameObject(ixuitexture.gameObject); + this.m_BoxSlotTween.ResetTween(true); + break; + case RiskBoxState.RISK_BOX_CANGETREWARD: + { + transform3.gameObject.SetActive(true); + bool flag3 = this.m_boxFxs[slot] == null; + if (flag3) + { + this.m_boxFxs[slot] = XSingleton.singleton.CreateFx(this.BoxEffectPath, null, true); + } + else + { + this.m_boxFxs[slot].SetActive(true); + } + this.m_boxFxs[slot].Play(transform3, Vector3.zero, Vector3.one, 1f, true, false); + this.m_BoxSlotTween.SetTargetGameObject(ixuitexture.gameObject); + this.m_BoxSlotTween.PlayTween(true, -1f); + break; + } + } + ixuisprite.ID = (ulong)((long)slot); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnBoxSlotClicked)); + } + } + + protected void OnBoxSlotClicked(IXUISprite sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + if (!flag) + { + int num = (int)sp.ID; + bool flag2 = this._doc.SlotBoxInfo.ContainsKey(num); + if (flag2) + { + ClientBoxInfo clientBoxInfo = this._doc.SlotBoxInfo[num]; + bool flag3 = clientBoxInfo != null; + if (flag3) + { + bool flag4 = clientBoxInfo.state == RiskBoxState.RISK_BOX_LOCKED || clientBoxInfo.state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag4) + { + this.HideDice(); + this.m_OpenBoxHandler.ShowBox(num); + } + else + { + this._doc.ChangeBoxState(num, RiskBoxState.RISK_BOX_GETREWARD); + } + } + } + } + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + + public void MoveStep(Vector2 targetPos) + { + XSingleton.singleton.PlayUISound("Audio/UI/UI_Anim_DiceGame_CharacterMove", true, AudioChannel.Action); + this.PlayerTween.SetPositionTweenPos(0, this.PlayerAvatar.gameObject.transform.parent.localPosition, targetPos); + this.PlayerTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnMoveStepOver)); + this.PlayerTween.PlayTween(true, -1f); + } + + protected void OnMoveStepOver(IXUITweenTool tween) + { + XSingleton.singleton.StopUISound(); + this._doc.OnGoStepOver(); + } + + public void ResetMapAni() + { + this.m_bIsPlayingResetAnimation = true; + this.ResetTween.gameObject.SetActive(true); + this.ResetTween.SetTweenGroup(0); + this.ResetTween.ResetTweenByGroup(true, 0); + this.ResetTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnResetMapOver)); + this.ResetTween.PlayTween(true, -1f); + } + + protected void OnResetMapOver(IXUITweenTool tween) + { + this.m_bIsPlayingResetAnimation = false; + } + + private void _OnRollClick(IXUISprite uiSprite) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NoDice"), "fece00"); + } + + private bool _OnRollPress(IXUISprite uiSprite, bool isPressed) + { + if (isPressed) + { + bool flag = this._doc.StartRoll() && !this.m_bIsPlayingResetAnimation; + if (flag) + { + this.m_rollBarGo.SetActive(true); + bool flag2 = this.m_scrollFx == null; + if (flag2) + { + this.m_scrollFx = XSingleton.singleton.CreateFx(this.ScrollEffectPath, null, true); + } + else + { + this.m_scrollFx.SetActive(true); + } + this.m_scrollFx.Play(this.m_rollFx.Find("FX"), Vector3.one, Vector3.one, 1f, true, false); + this.HideDice(); + this.m_rollTween.SetTweenGroup(10); + this.m_rollTween.PlayTween(true, -1f); + this.m_rollTween.SetTweenGroup(4); + this.m_rollTween.PlayTween(true, -1f); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Button_Dice", true, AudioChannel.Behit); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Loop_Dice", true, AudioChannel.Action); + } + } + else + { + bool flag3 = this._doc.GameState == SuperRiskState.SuperRiskRolling; + if (flag3) + { + this.m_rollBarGo.SetActive(false); + bool flag4 = this.m_scrollFx != null; + if (flag4) + { + this.m_scrollFx.SetActive(false); + this.m_scrollFx.Stop(); + } + this.m_rollTween.ResetTweenByGroup(true, 10); + this.m_rollTween.StopTweenByGroup(4); + float z = this.m_rollFx.localRotation.eulerAngles.z; + int rollResult = this.GetRollResult(z); + XSingleton.singleton.StopUISound(); + this._doc.GameState = SuperRiskState.SuperRiskSendingRollMes; + this._doc.RequestDicing(rollResult); + } + } + return true; + } + + protected int GetRollResult(float pos) + { + float num = 75f; + float num2 = 0f; + float num3 = (num - pos) / (num - num2); + bool flag = (double)num3 <= 0.333; + int result; + if (flag) + { + result = 2; + } + else + { + bool flag2 = num3 <= 0.667f; + if (flag2) + { + result = 4; + } + else + { + result = 6; + } + } + return result; + } + + private static void _PlayDice(XGameObject gameObject, object o, int commandID) + { + SuperRiskGameHandler superRiskGameHandler = o as SuperRiskGameHandler; + bool flag = superRiskGameHandler != null; + if (flag) + { + bool flag2 = superRiskGameHandler.m_controller == null; + if (flag2) + { + Transform transform = gameObject.Find(""); + bool flag3 = transform != null; + if (flag3) + { + superRiskGameHandler.m_controller = transform.GetChild(1).GetChild(0).GetChild(0).GetChild(0).GetChild(0); + } + } + bool flag4 = superRiskGameHandler.m_controller != null; + if (flag4) + { + superRiskGameHandler.m_controller.localRotation = superRiskGameHandler.ValueToQuaternion(superRiskGameHandler.m_DiceAnimValue); + } + int num = XSingleton.singleton.RandomInt(0, 5); + string animationGetLength = (num > 0) ? (superRiskGameHandler.m_DiceDummy.Present.PresentLib.Idle + "_0" + num.ToString()) : superRiskGameHandler.m_DiceDummy.Present.PresentLib.Idle; + SuperRiskGameHandler.DiceAnimationTime = superRiskGameHandler.m_DiceDummy.SetAnimationGetLength(animationGetLength); + bool flag5 = superRiskGameHandler.m_DiceDummy.Ator != null; + if (flag5) + { + superRiskGameHandler.m_DiceDummy.Ator.RealPlay(); + } + superRiskGameHandler.m_DiceTimer = XSingleton.singleton.SetTimer(SuperRiskGameHandler.DiceAnimationTime, new XTimerMgr.ElapsedEventHandler(superRiskGameHandler.OnDiceAnimationOver), superRiskGameHandler.m_DiceAnimValue); + } + } + + public void PlayDiceAnimation(int value) + { + bool flag = this.m_DiceDummy == null; + if (flag) + { + this.m_DiceDummy = XSingleton.singleton.CreateDummy(5102u, 0u, null, false, false, true); + } + XSingleton.singleton.PlayUISound("Audio/UI/UI_Anim_Dice", true, AudioChannel.Action); + this.m_DiceDummy.EngineObject.SetActive(true, ""); + this.m_DiceDummy.EngineObject.SetParentTrans(this.m_DiceDummyPoint); + this.m_DiceDummy.EngineObject.SetLocalPRS(Vector3.zero, true, Quaternion.identity, false, new Vector3(320f, 320f, 320f), true); + this.m_DiceAnimValue = value; + this.m_DiceDummy.EngineObject.CallCommand(SuperRiskGameHandler._playDiceCb, this, -1, false); + } + + protected Quaternion ValueToQuaternion(int value) + { + Quaternion result; + switch (value) + { + case 1: + result = Quaternion.Euler(180f, 0f, 0f); + break; + case 2: + result = Quaternion.Euler(0f, 90f, 0f); + break; + case 3: + result = Quaternion.Euler(90f, 0f, 0f); + break; + case 4: + result = Quaternion.Euler(0f, 270f, 0f); + break; + case 5: + result = Quaternion.Euler(270f, 0f, 0f); + break; + case 6: + result = Quaternion.Euler(0f, 0f, 0f); + break; + default: + result = Quaternion.identity; + break; + } + return result; + } + + protected void OnDiceAnimationOver(object o) + { + XSingleton.singleton.StopUISound(); + int num = (int)o; + XSingleton.singleton.AddLog("go" + num, null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.Go(num); + } + + public void PlayGetBoxAnimation(uint itemID, int slot) + { + this.HideDice(); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Anim_DiceGame_ChestDrop", true, AudioChannel.Action); + this.m_GetBoxFrame.SetActive(true); + this.m_CacheItemID = itemID; + this.m_CacheSlot = slot; + IXUITexture ixuitexture = this.m_GetBoxFrame.transform.Find("Box").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(this.GetBoxPicByState(itemID, RiskBoxState.RISK_BOX_LOCKED)); + GameObject gameObject = this.m_GetBoxFrame.transform.Find("FX").gameObject; + this.m_GetBoxTween.SetTargetGameObject(gameObject); + this.m_GetBoxTween.SetTweenGroup(0); + this.m_GetBoxTween.PlayTween(true, -1f); + this.m_GetBoxTween.SetTargetGameObject(ixuitexture.gameObject); + this.m_GetBoxTween.SetTweenGroup(0); + this.m_GetBoxTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.BoxFlyInOver)); + this.m_GetBoxTween.PlayTween(true, -1f); + } + + protected void BoxFlyInOver(IXUITweenTool tween) + { + GameObject gameObject = this.m_GetBoxFrame.transform.Find("Box").gameObject; + List list = ListPool.Get(); + this.SlotBoxPool.GetActiveList(list); + Transform transform = list[this.m_CacheSlot].transform; + ListPool.Release(list); + Vector3 vector = gameObject.transform.parent.InverseTransformPoint(transform.position); + this.m_GetBoxTween.SetTargetGameObject(gameObject); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Anim_DiceGame_ChestDrop", true, AudioChannel.Action); + this.m_GetBoxTween.SetPositionTweenPos(2, new Vector3(0f, -128f), vector + new Vector3(0f, -34f)); + this.m_GetBoxTween.SetTweenGroup(2); + this.m_GetBoxTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.ShowBoxOver)); + this.m_GetBoxTween.PlayTween(true, -1f); + } + + protected void ShowBoxOver(IXUITweenTool tween) + { + this.m_GetBoxFrame.SetActive(false); + IXUITexture ixuitexture = this.m_GetBoxFrame.transform.Find("Box").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(""); + this.UpdateSlotBox(this.m_CacheSlot); + XSingleton.singleton.StopUISound(); + this._doc.OnGetBoxAnimationOver(); + } + + public void UpdateSlotBox(int slot) + { + Transform transform = base.PanelObject.transform.Find("BoxSlot/slot" + slot); + bool flag = transform == null; + if (!flag) + { + GameObject gameObject = transform.gameObject; + bool flag2 = this._doc.SlotBoxInfo.ContainsKey(slot); + if (flag2) + { + ClientBoxInfo info = this._doc.SlotBoxInfo[slot]; + this.SetupSlotBox(gameObject, info, slot); + } + else + { + this.SetupSlotBox(gameObject, null, slot); + } + bool flag3 = this.m_OpenBoxHandler != null && this.m_OpenBoxHandler.IsVisible(); + if (flag3) + { + this.m_OpenBoxHandler.BoxStateChange(slot); + } + } + } + + public void ShowOnlineBox() + { + bool flag = !this.m_OnlineBoxHandler.IsVisible(); + if (flag) + { + this.m_OnlineBoxHandler.SetVisible(true); + } + } + + public void CloseOnlineBox() + { + bool flag = this.m_OnlineBoxHandler.IsVisible(); + if (flag) + { + this.m_OnlineBoxHandler.SetVisible(false); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._doc == null; + if (!flag) + { + bool flag2 = this._doc.RefreshDiceTime < 0f; + if (flag2) + { + this.m_RecoverFullLab.gameObject.SetActive(true); + this.m_RecoverFullLab.SetText(XStringDefineProxy.GetString("ReplyDiceFullTips")); + this.m_RecoverTime.gameObject.SetActive(false); + } + else + { + this.m_RecoverTime.gameObject.SetActive(true); + this.m_RecoverTime.SetText(XSingleton.singleton.TimeFormatString((int)this._doc.RefreshDiceTime, 2, 3, 4, false, true)); + this.m_RecoverFullLab.gameObject.SetActive(false); + } + int num = 0; + while ((long)num < (long)((ulong)SuperRiskGameHandler.total_slot_box)) + { + bool flag3 = this._doc.SlotBoxInfo.ContainsKey(num); + if (flag3) + { + bool flag4 = this._doc.SlotBoxInfo[num] != null && this._doc.SlotBoxInfo[num].state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag4) + { + float leftTime = this._doc.SlotBoxInfo[num].leftTime; + bool flag5 = this.m_CachedBoxSlotTimeLabel[num] != null; + if (flag5) + { + this.m_CachedBoxSlotTimeLabel[num].SetText(XSingleton.singleton.TimeFormatString((int)leftTime, 2, 3, 4, false, true)); + this.SetCost(this._doc.SlotBoxInfo[num], this.m_CachedBoxCostLabel[num]); + } + } + } + num++; + } + bool flag6 = this.m_OpenBoxHandler != null; + if (flag6) + { + this.m_OpenBoxHandler.OnUpdate(); + } + } + } + + private void SetCost(ClientBoxInfo data, IXUILabelSymbol lab) + { + bool flag = data == null; + if (flag) + { + lab.InputText = XLabelSymbolHelper.FormatCostWithIcon(0, (ItemEnum)0); + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)data.itemID); + bool flag2 = itemConf == null; + if (flag2) + { + lab.InputText = XLabelSymbolHelper.FormatCostWithIcon(0, (ItemEnum)0); + } + else + { + int itemQuality = (int)itemConf.ItemQuality; + SuperRiskSpeedCost speedCost = this._doc.GetSpeedCost(itemQuality); + bool flag3 = (int)data.leftTime % speedCost.time == 0; + int cost; + if (flag3) + { + cost = (int)data.leftTime / speedCost.time * speedCost.itemCount; + } + else + { + cost = ((int)data.leftTime / speedCost.time + 1) * speedCost.itemCount; + } + lab.InputText = XLabelSymbolHelper.FormatCostWithIcon(cost, (ItemEnum)speedCost.itemID); + } + } + } + + public void ShowNoticeFrame() + { + this.HideDice(); + this.m_NoticeFrame.SetActive(true); + } + + protected bool _NoticeYesClick(IXUIButton sp) + { + this.m_NoticeFrame.SetActive(false); + return true; + } + + protected bool _NoticeNoClick(IXUIButton sp) + { + this.m_NoticeFrame.SetActive(false); + this._doc.NoticeMoveOver(); + return true; + } + + private void OnClickDiscardBox(IXUISprite sp) + { + this.m_discardBoxId = (int)sp.ID; + ClientBoxInfo clientBoxInfo = this._doc.SlotBoxInfo[this.m_discardBoxId]; + bool flag = clientBoxInfo == null; + if (!flag) + { + bool flag2 = clientBoxInfo.state == RiskBoxState.RISK_BOX_CANGETREWARD; + if (!flag2) + { + string @string = XStringDefineProxy.GetString("DiscardSuperriskBox"); + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.SendDiscardBoxMes)); + } + } + } + + private bool SendDiscardBoxMes(IXUIButton btn) + { + this._doc.ChangeBoxState(this.m_discardBoxId, RiskBoxState.RISK_BOX_DELETE); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool OnCloseClick(IXUIButton go) + { + bool flag = this._doc.GameState == SuperRiskState.SuperRiskSendingRollMes || this._doc.GameState == SuperRiskState.SuperRiskRolling || this._doc.GameState == SuperRiskState.SuperRiskDicing || this._doc.GameState == SuperRiskState.SuperRiskMoving || this._doc.GameState == SuperRiskState.SuperRiskEvent || this._doc.GameState == SuperRiskState.SuperRiskRefreshMap; + bool result; + if (flag) + { + result = true; + } + else + { + this._doc.GameState = SuperRiskState.SuperRiskReadyToMove; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.ShowSelectMap(); + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskGameHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SuperRiskGameHandler.cs.meta new file mode 100644 index 00000000..4ad79619 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskGameHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a8e632df4b7ed344d82487db01579ca7 +timeCreated: 1611404296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskOnlineBoxHandler.cs b/Client/Assets/Scripts/XMainClient/UI/SuperRiskOnlineBoxHandler.cs new file mode 100644 index 00000000..ad829bea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskOnlineBoxHandler.cs @@ -0,0 +1,96 @@ +using System; +using UILib; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SuperRiskOnlineBoxHandler : DlgHandlerBase + { + private XSuperRiskDocument _doc; + + private IXUITweenTool m_BoxTween; + + private IXUIButton m_BuyBtn; + + private IXUIButton m_CancleBtn; + + private IXUILabel m_CostLab; + + private IXUISprite m_CostIcon; + + protected override void Init() + { + this._doc = XSuperRiskDocument.Doc; + this.m_CancleBtn = (base.PanelObject.transform.Find("no").GetComponent("XUIButton") as IXUIButton); + this.m_BuyBtn = (base.PanelObject.transform.Find("Buy").GetComponent("XUIButton") as IXUIButton); + this.m_CostLab = (base.PanelObject.transform.Find("Buy/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_CostIcon = (base.PanelObject.transform.Find("Buy/Cost/b").GetComponent("XUISprite") as IXUISprite); + this.m_BoxTween = (base.PanelObject.transform.Find("Box").GetComponent("XUIPlayTween") as IXUITweenTool); + } + + public override void RegisterEvent() + { + this.m_CancleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCancleClick)); + this.m_BuyBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyClick)); + base.RegisterEvent(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + this.FillContent(); + base.OnShow(); + } + + private void FillContent() + { + bool flag = this._doc.OnlineBoxCost != null; + if (flag) + { + this.m_CostLab.SetText(this._doc.OnlineBoxCost.itemCount.ToString()); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this._doc.OnlineBoxCost.itemID); + this.m_CostIcon.SetSprite(itemConf.ItemIcon1[0]); + } + XSingleton.singleton.PlayUISound("Audio/UI/UI_Anim_DiceGame_OpenChest", true, AudioChannel.Action); + this.m_BoxTween.SetTweenGroup(0); + this.m_BoxTween.ResetTweenByGroup(true, 0); + this.m_BoxTween.PlayTween(true, -1f); + } + + private bool OnCancleClick(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool OnBuyClick(IXUIButton btn) + { + bool flag = this._doc.OnlineBoxCost == null; + bool result; + if (flag) + { + result = true; + } + else + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)this._doc.OnlineBoxCost.itemID); + bool flag2 = (ulong)this._doc.OnlineBoxCost.itemCount > itemCount; + if (flag2) + { + XSingleton.singleton.ShowItemAccess((int)this._doc.OnlineBoxCost.itemID, null); + result = true; + } + else + { + this._doc.ReqBuyOnlineBox(); + result = true; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskOnlineBoxHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SuperRiskOnlineBoxHandler.cs.meta new file mode 100644 index 00000000..7cd36261 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskOnlineBoxHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7fc727f1ebc123d479b4b48259d60702 +timeCreated: 1611404031 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskOpenboxHandler.cs b/Client/Assets/Scripts/XMainClient/UI/SuperRiskOpenboxHandler.cs new file mode 100644 index 00000000..d04822e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskOpenboxHandler.cs @@ -0,0 +1,359 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SuperRiskOpenboxHandler : DlgHandlerBase + { + private IXUITexture m_TopBox; + + private XUIPool BoxPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private GameObject m_SpeedFrame; + + private IXUILabel m_SpeedTime; + + private IXUIButton m_SpeedButton; + + private IXUILabelSymbol m_SpeedCost; + + private IXUIButton m_StartButton; + + private IXUILabel m_StartTime; + + private IXUISprite m_CloseBg; + + private XSuperRiskDocument _doc; + + private int m_CurrentSlot = -1; + + private float m_fCoolTime = 1f; + + private float m_fLastClickBtnTime = 0f; + + private float m_fLastClickBtnTime1 = 0f; + + protected override void Init() + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XSuperRiskDocument.uuID) as XSuperRiskDocument); + this.m_CloseBg = (base.PanelObject.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_TopBox = (base.PanelObject.transform.Find("Box").GetComponent("XUITexture") as IXUITexture); + Transform transform = base.PanelObject.transform.Find("List/Item"); + this.BoxPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_SpeedFrame = base.PanelObject.transform.Find("SpeedFrame").gameObject; + this.m_SpeedTime = (base.PanelObject.transform.Find("SpeedFrame/Time").GetComponent("XUILabel") as IXUILabel); + this.m_SpeedButton = (base.PanelObject.transform.Find("SpeedFrame/SpeedBtn").GetComponent("XUIButton") as IXUIButton); + this.m_SpeedCost = (base.PanelObject.transform.Find("SpeedFrame/SpeedBtn/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_StartButton = (base.PanelObject.transform.Find("OpenBtn").GetComponent("XUIButton") as IXUIButton); + this.m_StartTime = (base.PanelObject.transform.Find("OpenBtn/Time").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + this.m_CloseBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClick)); + this.m_SpeedButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSpeedClick)); + this.m_StartButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartClick)); + base.RegisterEvent(); + } + + protected void OnCloseClick(IXUISprite sp) + { + base.SetVisible(false); + } + + protected override void OnHide() + { + this.m_CurrentSlot = -1; + base.OnHide(); + } + + public void ClearCatchTex() + { + this.m_TopBox.SetTexturePath(""); + } + + public void ShowBox(int slot) + { + base.SetVisible(true); + ClientBoxInfo clientBoxInfo = this._doc.SlotBoxInfo[slot]; + bool flag = clientBoxInfo != null; + if (flag) + { + this.m_CurrentSlot = slot; + int num = -1; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)clientBoxInfo.itemID); + bool flag2 = itemConf != null; + if (flag2) + { + num = (int)itemConf.ItemQuality; + } + this.m_TopBox.SetTexturePath(this.GetBoxPicByState(clientBoxInfo.itemID, RiskBoxState.RISK_BOX_LOCKED)); + this.BoxPool.ReturnAll(false); + int num2 = 0; + RiskMapFile.RowData currentMapData = this._doc.GetCurrentMapData(); + for (int i = 0; i < currentMapData.BoxPreview.Count; i++) + { + bool flag3 = currentMapData.BoxPreview[i, 0] == num; + if (flag3) + { + num2++; + } + } + int num3 = -(num2 - 1) * this.BoxPool.TplWidth / 2; + int num4 = 0; + for (int j = 0; j < currentMapData.BoxPreview.Count; j++) + { + bool flag4 = currentMapData.BoxPreview[j, 0] == num; + if (flag4) + { + GameObject gameObject = this.BoxPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(num3 + num4 * this.BoxPool.TplWidth), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, currentMapData.BoxPreview[j, 1], currentMapData.BoxPreview[j, 2], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)currentMapData.BoxPreview[j, 1]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + num4++; + } + } + bool flag5 = clientBoxInfo.state == RiskBoxState.RISK_BOX_LOCKED; + if (flag5) + { + this.m_StartButton.gameObject.SetActive(true); + this.m_SpeedFrame.SetActive(false); + this.m_StartTime.SetText(XSingleton.singleton.TimeFormatString((int)clientBoxInfo.leftTime, 2, 3, 4, false, true)); + } + bool flag6 = clientBoxInfo.state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag6) + { + this.m_StartButton.gameObject.SetActive(false); + this.m_SpeedFrame.SetActive(true); + SuperRiskSpeedCost speedCost = this._doc.GetSpeedCost(num); + bool flag7 = (int)clientBoxInfo.leftTime % speedCost.time == 0; + int cost; + if (flag7) + { + cost = (int)clientBoxInfo.leftTime / speedCost.time * speedCost.itemCount; + } + else + { + cost = ((int)clientBoxInfo.leftTime / speedCost.time + 1) * speedCost.itemCount; + } + this.m_SpeedCost.InputText = XLabelSymbolHelper.FormatCostWithIcon(cost, (ItemEnum)speedCost.itemID); + } + bool flag8 = clientBoxInfo.state == RiskBoxState.RISK_BOX_CANGETREWARD || clientBoxInfo.state == RiskBoxState.RISK_BOX_GETREWARD; + if (flag8) + { + XSingleton.singleton.AddErrorLog("Wrong super risk state!", null, null, null, null, null); + } + } + } + + public void BoxStateChange(int slot) + { + bool flag = slot != this.m_CurrentSlot; + if (!flag) + { + bool flag2 = this._doc.SlotBoxInfo.ContainsKey(slot); + if (flag2) + { + ClientBoxInfo clientBoxInfo = this._doc.SlotBoxInfo[slot]; + bool flag3 = clientBoxInfo != null && clientBoxInfo.state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag3) + { + this.m_StartButton.gameObject.SetActive(false); + this.m_SpeedFrame.SetActive(true); + this.m_SpeedTime.SetText(XSingleton.singleton.TimeFormatString((int)clientBoxInfo.leftTime, 0, 3, 4, false, true)); + int quality = 1; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)clientBoxInfo.itemID); + bool flag4 = itemConf != null; + if (flag4) + { + quality = (int)itemConf.ItemQuality; + } + SuperRiskSpeedCost speedCost = this._doc.GetSpeedCost(quality); + bool flag5 = (int)clientBoxInfo.leftTime % speedCost.time == 0; + int cost; + if (flag5) + { + cost = (int)clientBoxInfo.leftTime / speedCost.time * speedCost.itemCount; + } + else + { + cost = ((int)clientBoxInfo.leftTime / speedCost.time + 1) * speedCost.itemCount; + } + this.m_SpeedCost.InputText = XLabelSymbolHelper.FormatCostWithIcon(cost, (ItemEnum)speedCost.itemID); + } + bool flag6 = clientBoxInfo.state == RiskBoxState.RISK_BOX_CANGETREWARD; + if (flag6) + { + base.SetVisible(false); + } + } + else + { + base.SetVisible(false); + } + } + } + + private string GetBoxPicByState(uint itemID, RiskBoxState state) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemID); + bool flag = itemConf != null; + string result; + if (flag) + { + string text = XSingleton.singleton.StringCombine("atlas/UI/GameSystem/SuperRisk/bx", ((int)(itemConf.ItemQuality - 1)).ToString()); + bool flag2 = state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag2) + { + text = XSingleton.singleton.StringCombine(text, "_1"); + } + result = text; + } + else + { + result = ""; + } + return result; + } + + public bool OnSpeedClick(IXUIButton button) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + ClientBoxInfo clientBoxInfo = this._doc.SlotBoxInfo[this.m_CurrentSlot]; + bool flag2 = clientBoxInfo == null; + if (flag2) + { + result = true; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)clientBoxInfo.itemID); + bool flag3 = itemConf == null; + if (flag3) + { + result = true; + } + else + { + int itemQuality = (int)itemConf.ItemQuality; + SuperRiskSpeedCost speedCost = this._doc.GetSpeedCost(itemQuality); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(speedCost.itemID); + bool flag4 = (int)clientBoxInfo.leftTime % speedCost.time == 0; + int num; + if (flag4) + { + num = (int)clientBoxInfo.leftTime / speedCost.time * speedCost.itemCount; + } + else + { + num = ((int)clientBoxInfo.leftTime / speedCost.time + 1) * speedCost.itemCount; + } + bool flag5 = (long)num > (long)itemCount; + if (flag5) + { + XSingleton.singleton.ShowItemAccess(speedCost.itemID, null); + result = true; + } + else + { + this._doc.ChangeBoxState(this.m_CurrentSlot, RiskBoxState.RISK_BOX_CANGETREWARD); + result = true; + } + } + } + } + return result; + } + + public bool OnStartClick(IXUIButton button) + { + bool flag = this.SetButtonCool1(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + foreach (KeyValuePair keyValuePair in this._doc.SlotBoxInfo) + { + bool flag2 = keyValuePair.Value.state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CannotUnLockAnyBox"), "fece00"); + return true; + } + } + this._doc.ChangeBoxState(this.m_CurrentSlot, RiskBoxState.RISK_BOX_UNLOCKED); + result = true; + } + return result; + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_CurrentSlot == -1; + if (!flag) + { + bool flag2 = this._doc.SlotBoxInfo.ContainsKey(this.m_CurrentSlot); + if (flag2) + { + ClientBoxInfo clientBoxInfo = this._doc.SlotBoxInfo[this.m_CurrentSlot]; + bool flag3 = clientBoxInfo.state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag3) + { + this.m_SpeedTime.SetText(XSingleton.singleton.TimeFormatString((int)clientBoxInfo.leftTime, 2, 3, 4, false, true)); + } + } + } + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + + private bool SetButtonCool1(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime1; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime1 = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskOpenboxHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SuperRiskOpenboxHandler.cs.meta new file mode 100644 index 00000000..d7956005 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskOpenboxHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f348663f6853934da13c58db3df7686 +timeCreated: 1611404244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskSelectMapHandler.cs b/Client/Assets/Scripts/XMainClient/UI/SuperRiskSelectMapHandler.cs new file mode 100644 index 00000000..5139f4b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskSelectMapHandler.cs @@ -0,0 +1,206 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SuperRiskSelectMapHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SuperRisk/SelectMapHandler"; + } + } + + private XSuperRiskDocument _doc; + + private IXUIButton m_Close; + + private IXUIButton m_Help; + + private List m_btnTras = new List(); + + private float m_fCoolTime = 1f; + + private float m_fLastClickBtnTime = 0f; + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XSuperRiskDocument.uuID) as XSuperRiskDocument); + this.m_btnTras.Clear(); + Transform transform = base.PanelObject.transform.Find("Bg/RiskMap/SelectMap"); + for (int i = 0; i < transform.childCount; i++) + { + Transform item = transform.Find(XSingleton.singleton.StringCombine("Map", i.ToString())); + this.m_btnTras.Add(item); + } + this.m_Close = (base.PanelObject.transform.Find("Bg/panel/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/panel/Help").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_SuperRisk); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + private void FillContent() + { + bool flag = false; + for (int i = 0; i < this.m_btnTras.Count; i++) + { + RiskMapFile.RowData mapIdByIndex = this._doc.GetMapIdByIndex(i); + bool flag2 = mapIdByIndex == null; + if (flag2) + { + this.m_btnTras[i].Find("Map").gameObject.SetActive(false); + this.m_btnTras[i].Find("Cloud/T").gameObject.SetActive(false); + this.m_btnTras[i].Find("Cloud").gameObject.SetActive(true); + } + else + { + uint num = 0u; + bool flag3 = XSingleton.singleton.XPlayerData != null; + if (flag3) + { + num = XSingleton.singleton.XPlayerData.Level; + } + this.m_btnTras[i].Find("Map").gameObject.SetActive(false); + bool flag4 = (ulong)num > (ulong)((long)mapIdByIndex.NeedLevel); + if (flag4) + { + this.m_btnTras[i].Find("Cloud").gameObject.SetActive(false); + IXUISprite ixuisprite = this.m_btnTras[i].GetComponent("XUISprite") as IXUISprite; + bool flag5 = mapIdByIndex == null; + if (flag5) + { + ixuisprite.ID = 0UL; + } + else + { + ixuisprite.ID = (ulong)((long)mapIdByIndex.MapID); + } + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMapClick)); + ixuisprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnMapPress)); + } + else + { + bool flag6 = (ulong)num < (ulong)((long)mapIdByIndex.NeedLevel); + if (flag6) + { + bool flag7 = flag; + if (flag7) + { + this.m_btnTras[i].Find("Cloud").gameObject.SetActive(true); + this.m_btnTras[i].Find("Cloud/T").gameObject.SetActive(false); + } + else + { + this.m_btnTras[i].Find("Cloud").gameObject.SetActive(true); + IXUILabel ixuilabel = this.m_btnTras[i].Find("Cloud/T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.gameObject.SetActive(true); + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("OPEN_AT_LEVEL"), mapIdByIndex.NeedLevel)); + flag = true; + } + } + else + { + bool flag8 = num > this._doc.HisMaxLevel.PreLevel; + if (flag8) + { + this._doc.HisMaxLevel.PreLevel = num; + this.m_btnTras[i].Find("Cloud/T").gameObject.SetActive(false); + IXUITweenTool ixuitweenTool = this.m_btnTras[i].Find("Cloud").GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.gameObject.SetActive(true); + ixuitweenTool.SetTweenGroup(0); + ixuitweenTool.ResetTweenByGroup(true, 0); + ixuitweenTool.PlayTween(true, -1f); + } + else + { + this.m_btnTras[i].Find("Cloud").gameObject.SetActive(false); + } + IXUISprite ixuisprite = this.m_btnTras[i].GetComponent("XUISprite") as IXUISprite; + bool flag9 = mapIdByIndex == null; + if (flag9) + { + ixuisprite.ID = 0UL; + } + else + { + ixuisprite.ID = (ulong)((long)mapIdByIndex.MapID); + } + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMapClick)); + ixuisprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnMapPress)); + } + } + } + } + } + + private bool OnCloseClick(IXUIButton go) + { + XSuperRiskDocument specificDocument = XDocuments.GetSpecificDocument(XSuperRiskDocument.uuID); + specificDocument.NeedUpdate = false; + base.SetVisible(false); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private void OnMapClick(IXUISprite button) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + if (!flag) + { + bool flag2 = button.ID == 0UL; + if (!flag2) + { + this._doc.CurrentMapID = (int)button.ID; + DlgBase.singleton.ShowGameMap(); + } + } + } + + private bool OnMapPress(IXUISprite uiSprite, bool isPressed) + { + GameObject gameObject = uiSprite.gameObject.transform.Find("Map").gameObject; + gameObject.SetActive(isPressed); + return true; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SuperRiskSelectMapHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SuperRiskSelectMapHandler.cs.meta new file mode 100644 index 00000000..dbc83d9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SuperRiskSelectMapHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f34c1654bba2aa44c820da5ad77e9724 +timeCreated: 1611404847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SystemHelpBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/SystemHelpBehaviour.cs new file mode 100644 index 00000000..c6273a6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SystemHelpBehaviour.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class SystemHelpBehaviour : DlgBehaviourBase + { + public IXUILabel m_Label = null; + + public IXUILabelSymbol m_LabelSymbol = null; + + public IXUILabel m_Title = null; + + public IXUILabelSymbol m_TitleSymbol = null; + + public IXUIButton m_OKButton = null; + + public IXUISprite m_Grey = null; + + public IXUITweenTool m_PlayTween = null; + + public IXUIPanel m_Panel = null; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Label"); + this.m_Label = (transform.GetComponent("XUILabel") as IXUILabel); + this.m_LabelSymbol = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol); + Transform transform2 = base.transform.Find("Bg/Title"); + this.m_Title = (transform2.GetComponent("XUILabel") as IXUILabel); + this.m_TitleSymbol = (transform2.GetComponent("XUILabelSymbol") as IXUILabelSymbol); + Transform transform3 = base.transform.Find("Bg/OK"); + this.m_OKButton = (transform3.GetComponent("XUIButton") as IXUIButton); + this.m_Grey = (base.transform.Find("Grey").GetComponent("XUISprite") as IXUISprite); + Transform transform4 = base.transform.Find("Bg"); + this.m_PlayTween = (transform4.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Panel = (base.transform.GetComponent("XUIPanel") as IXUIPanel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SystemHelpBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SystemHelpBehaviour.cs.meta new file mode 100644 index 00000000..d456a9c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SystemHelpBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1dc3fd85dd267214d9ed24812b5db31e +timeCreated: 1611403359 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs b/Client/Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs new file mode 100644 index 00000000..97d38a0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs @@ -0,0 +1,95 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class SystemHelpDlg : DlgBase, IModalDlg, IXInterface + { + public override string fileName + { + get + { + return "Common/SystemHelpDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public bool Deprecated { get; set; } + + public bool _bHasGrey = true; + + protected override void OnShow() + { + base.OnShow(); + } + + public void SetPanelDepth(int depth) + { + base.uiBehaviour.m_Panel.SetDepth(depth); + } + + public void LuaShow(string content, ButtonClickEventHandler handler, ButtonClickEventHandler handler2) + { + this.SetVisible(true, true); + this.SetLabelsWithSymbols(content, "OK", "Cancel"); + base.uiBehaviour.m_OKButton.RegisterClickEventHandler(handler); + } + + public void SetLabels(string mainLabel, string titleLabel, string frLabel) + { + base.uiBehaviour.m_LabelSymbol.InputText = ""; + base.uiBehaviour.m_TitleSymbol.InputText = ""; + base.uiBehaviour.m_Label.SetText(mainLabel); + base.uiBehaviour.m_Title.SetText(titleLabel); + base.uiBehaviour.m_OKButton.SetCaption(frLabel); + } + + public void SetLabelsWithSymbols(string mainLabel, string titleLabel, string frLabel) + { + base.uiBehaviour.m_LabelSymbol.InputText = mainLabel; + base.uiBehaviour.m_TitleSymbol.InputText = titleLabel; + base.uiBehaviour.m_OKButton.SetCaption(frLabel); + } + + public void SetTweenTargetAndPlay(GameObject go) + { + this.SetVisible(true, true); + base.uiBehaviour.m_PlayTween.SetTargetGameObject(go); + base.uiBehaviour.m_PlayTween.PlayTween(true, -1f); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_OKButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoCancel)); + } + + public bool DoCancel(IXUIButton go) + { + this.SetVisible(false, true); + return true; + } + + public void DoCancel(IXUISprite sp) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs.meta new file mode 100644 index 00000000..587de08a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SystemHelpDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e405a51fa04b3842a0ade2a17573c1f +timeCreated: 1611404240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/SystemRewardTypeMrg.cs b/Client/Assets/Scripts/XMainClient/UI/SystemRewardTypeMrg.cs new file mode 100644 index 00000000..5b8aad4e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SystemRewardTypeMrg.cs @@ -0,0 +1,14 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class SystemRewardTypeMrg + { + public static uint GetTypeUInt(SystemRewardType _type) + { + return (uint)XFastEnumIntEqualityComparer.ToInt(_type); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/SystemRewardTypeMrg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/SystemRewardTypeMrg.cs.meta new file mode 100644 index 00000000..90b2e21f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/SystemRewardTypeMrg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a79407af4e99bd41b60bdedb6b44fa7 +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs b/Client/Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs new file mode 100644 index 00000000..0d46f9d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs @@ -0,0 +1,193 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class TaJieHelpDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TajiebbDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private TaJieHelpDocument m_doc; + + private List m_tempData; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.m_doc = TaJieHelpDocument.Doc; + base.uiBehaviour.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.FillContent(); + } + + private void FillContent() + { + this.m_tempData = this.m_doc.GetTaJieHelpData(); + base.uiBehaviour.m_wrapContent.SetContentCount(this.m_tempData.Count, false); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + TaJieHelpTab.RowData rowData = this.m_tempData[index]; + bool flag = rowData == null; + if (!flag) + { + IXUISprite ixuisprite = t.Find("BQ").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = rowData.IconName; + IXUILabel ixuilabel = t.Find("Label1").GetComponent("XUILabel") as IXUILabel; + string text = rowData.Name; + bool flag2 = rowData.SysID == 0u; + if (flag2) + { + text = this.m_doc.GetSceneName(); + } + ixuilabel.SetText(text); + ixuilabel = (t.Find("Label2").GetComponent("XUILabel") as IXUILabel); + IXUILabel ixuilabel2 = t.Find("Label3").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.gameObject.SetActive(false); + int curType = this.m_doc.CurType; + bool flag3 = rowData.SysID == 0u && curType == 18; + if (flag3) + { + ixuilabel.SetText(this.m_doc.GetdDragonTips()); + } + else + { + ixuilabel.SetText(rowData.Des); + } + IXUIButton ixuibutton = t.Find("GO").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)rowData.SysID; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoClick)); + ixuilabel = (t.Find("GO/MoneyCost").GetComponent("XUILabel") as IXUILabel); + bool flag4 = rowData.SysID == 0u; + if (flag4) + { + ixuilabel.SetText(XSingleton.singleton.GetString("CheckTheStrategy")); + } + else + { + ixuilabel.SetText(XSingleton.singleton.GetString("PVPActivity_Go")); + } + } + } + + private bool OnCloseClicked(IXUIButton btn) + { + string label = XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("TaJieHelpTips4")); + XSingleton.singleton.ShowModalDialog(label, XSingleton.singleton.GetString("CloseUp"), XSingleton.singleton.GetString("PackUp"), new ButtonClickEventHandler(this.DoOK), new ButtonClickEventHandler(this.DoCancle), false, XTempTipDefine.OD_START, 50); + return true; + } + + private bool DoOK(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this.SetVisible(false, true); + this.m_doc.ShowHallBtn = false; + return true; + } + + private bool DoCancle(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this.SetVisible(false, true); + return true; + } + + private bool OnGoClick(IXUIButton btn) + { + ulong id = btn.ID; + bool flag = id == 0UL; + if (flag) + { + string url = this.m_doc.GetUrl(); + bool flag2 = url != string.Empty; + if (flag2) + { + XSingleton.singleton.OpenUrl(url, false); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("NoStrategy"), "fece00"); + } + } + else + { + XSingleton.singleton.OpenSystem((int)id); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs.meta new file mode 100644 index 00000000..fa318709 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TaJieHelpDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 488c9722e0ac4ce4eaddb6429508770e +timeCreated: 1611403658 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs b/Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs new file mode 100644 index 00000000..0513ec0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs @@ -0,0 +1,240 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal abstract class TabDlgBase : DlgBase where T : IXUIDlg, new() + { + protected virtual bool bHorizontal + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/CharacterDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(this.mCurrentSys); + } + } + + protected List m_ActiveHandlers = new List(); + + protected XSubSysRedPointMgr redpointMgr = new XSubSysRedPointMgr(); + + protected XSysDefine mainSys = XSysDefine.XSys_Invalid; + + protected XSysDefine mCurrentSys; + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnUnload() + { + this.m_ActiveHandlers.Clear(); + XSingleton.singleton.RegisterSubSysRedPointMgr(this.mainSys, null); + this.mainSys = XSysDefine.XSys_Invalid; + base.OnUnload(); + } + + protected override void Init() + { + this.mCurrentSys = XSysDefine.XSys_Invalid; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + protected void RegisterSubSysRedPointMgr(XSysDefine sys) + { + this.mainSys = sys; + XSingleton.singleton.RegisterSubSysRedPointMgr(this.mainSys, this.redpointMgr); + } + + public void UpdateSubSysRedPoints() + { + this.redpointMgr.UpdateRedPointUI(); + } + + public void OnTabChanged(ulong id) + { + this.ShowSubGamsSystem((XSysDefine)id); + } + + public virtual void SetupHandlers(XSysDefine sys) + { + } + + protected void _AddActiveHandler(DlgHandlerBase handler) + { + this.m_ActiveHandlers.Add(handler); + } + + public void ShowSubGamsSystem(XSysDefine sys) + { + bool flag = this.mCurrentSys == sys; + if (!flag) + { + this.mCurrentSys = sys; + for (int i = 0; i < this.m_ActiveHandlers.Count; i++) + { + this.m_ActiveHandlers[i].SetVisible(false); + } + this.m_ActiveHandlers.Clear(); + this.SetupHandlers(sys); + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.OnTopUIRefreshed(this); + } + } + + public void ShowWorkGameSystem(XSysDefine sys) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + bool flag2 = sys != XSysDefine.XSys_Invalid; + if (flag2) + { + this.mCurrentSys = XSysDefine.XSys_Invalid; + List list; + XSysDefine targetSys = XUITabControl.GetTargetSys(sys, out list); + this.ShowSubGamsSystem(targetSys); + XSubSysRedPointMgr xsubSysRedPointMgr = this.redpointMgr; + IXUIObject[] btns = base.uiBehaviour.m_tabcontrol.SetupTabs(sys, new XUITabControl.UITabControlCallback(this.OnTabChanged), this.bHorizontal, 1f); + xsubSysRedPointMgr.SetupRedPoints(btns); + } + this.SetupRedpointEx(); + } + + public virtual void SetupRedpointEx() + { + } + + public virtual void Close(bool bWithAnim = true) + { + if (bWithAnim) + { + this.SetVisibleWithAnimation(false, null); + } + else + { + this.SetVisible(false, true); + } + } + + protected bool OnCloseClick(IXUIButton go) + { + this.Close(true); + return true; + } + + protected override void OnHide() + { + base.OnHide(); + for (int i = 0; i < this.m_ActiveHandlers.Count; i++) + { + this.m_ActiveHandlers[i].SetVisible(false); + } + this.m_ActiveHandlers.Clear(); + this.redpointMgr.SetupRedPoints(null); + this.mCurrentSys = XSysDefine.XSys_Invalid; + } + + protected void OnCloseAnimationOver() + { + for (int i = 0; i < this.m_ActiveHandlers.Count; i++) + { + this.m_ActiveHandlers[i].SetVisible(false); + } + this.m_ActiveHandlers.Clear(); + } + + public override void StackRefresh() + { + bool flag = this.mCurrentSys != XSysDefine.XSys_Invalid; + if (flag) + { + XSubSysRedPointMgr xsubSysRedPointMgr = this.redpointMgr; + IXUIObject[] btns = base.uiBehaviour.m_tabcontrol.SetupTabs(this.mCurrentSys, new XUITabControl.UITabControlCallback(this.OnTabChanged), this.bHorizontal, 1f); + xsubSysRedPointMgr.SetupRedPoints(btns); + } + this.SetupRedpointEx(); + base.StackRefresh(); + } + + public bool CurrentSysIs(XSysDefine sys) + { + bool flag = !base.IsLoaded(); + return !flag && sys == this.mCurrentSys; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs.meta new file mode 100644 index 00000000..293da75d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TabDlgBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2b9b01fb7e8fd046b708f2f8723b612 +timeCreated: 1611404495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TabDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/TabDlgBehaviour.cs new file mode 100644 index 00000000..86f57d70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TabDlgBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; + +namespace XMainClient.UI +{ + internal class TabDlgBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public Transform m_root; + + public XUITabControl m_tabcontrol = new XUITabControl(); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_root = base.transform.Find("Bg"); + Transform tabTpl = base.transform.Find("Bg/Tabs/TabTpl"); + this.m_tabcontrol.SetTabTpl(tabTpl); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TabDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TabDlgBehaviour.cs.meta new file mode 100644 index 00000000..a87d7676 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TabDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 273b245b65b679e4caddf1114f33ee5f +timeCreated: 1611403470 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TheExpBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/TheExpBehaviour.cs new file mode 100644 index 00000000..b614fa4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TheExpBehaviour.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class TheExpBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUILabel m_MyPPT; + + public IXUILabel m_LeftCount; + + public IXUIButton m_AddCount; + + public GameObject m_Free; + + public Transform m_parent; + + public IXUITexture m_NestBg; + + public IXUILabel m_NestName; + + public IXUILabel m_NestEquipText; + + public IXUILabel m_NestPPT; + + public IXUILabel m_NestLevel; + + public IXUILabel m_NestMember; + + public IXUIButton m_GoBattle; + + public IXUIButton m_SweepButton; + + public GameObject m_SweepCostItem; + + public IXUILabel m_SweepCostItemNum; + + public IXUILabel m_starLab; + + public IXUIButton m_rewardBtn; + + public IXUIButton m_rankBtn; + + public GameObject m_starImageGo; + + public IXUISprite m_quanMinSpr; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUITabControl m_tabcontrol = new XUITabControl(); + + public XUIPool m_ExpPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public List m_DiffList = new List(); + + public List m_DiffSelectList = new List(); + + public IXUILabel m_Fatigue; + + public GameObject m_LeftCountGo; + + public GameObject m_FirstPassDropGo; + + public GameObject m_NormalDropGo; + + private void Awake() + { + this.m_parent = base.transform; + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + Transform tabTpl = base.transform.Find("Bg/Tabs/Panel/TabTpl"); + this.m_tabcontrol.SetTabTpl(tabTpl); + this.m_MyPPT = (base.transform.Find("Bg/DetailFrame/NestName/MyPPT").GetComponent("XUILabel") as IXUILabel); + this.m_LeftCountGo = base.transform.Find("Bg/DetailFrame/NestName/Fatigue").gameObject; + this.m_LeftCount = (base.transform.Find("Bg/DetailFrame/NestName/Fatigue/Label").GetComponent("XUILabel") as IXUILabel); + this.m_LeftCount.SetText(""); + this.m_AddCount = (base.transform.Find("Bg/DetailFrame/NestName/Fatigue").GetComponent("XUIButton") as IXUIButton); + this.m_NestBg = (base.transform.Find("Bg/DetailFrame/BgPanel/Bg").GetComponent("XUITexture") as IXUITexture); + this.m_NestName = (base.transform.Find("Bg/DetailFrame/NestName").GetComponent("XUILabel") as IXUILabel); + this.m_NestEquipText = (base.transform.Find("Bg/DetailFrame/NestName/Tj").GetComponent("XUILabel") as IXUILabel); + this.m_NestMember = (base.transform.Find("Bg/DetailFrame/NestName/Member").GetComponent("XUILabel") as IXUILabel); + this.m_NestPPT = (base.transform.Find("Bg/DetailFrame/NestName/PPT").GetComponent("XUILabel") as IXUILabel); + this.m_NestLevel = (base.transform.Find("Bg/DetailFrame/NestName/Level").GetComponent("XUILabel") as IXUILabel); + this.m_GoBattle = (base.transform.Find("Bg/DetailFrame/Do").GetComponent("XUIButton") as IXUIButton); + this.m_starImageGo = base.transform.Find("Bg/DetailFrame/Image").gameObject; + this.m_starLab = (base.transform.Find("Bg/DetailFrame/Image/Rank").GetComponent("XUILabel") as IXUILabel); + this.m_SweepButton = (base.transform.Find("Bg/DetailFrame/SweepButton").GetComponent("XUIButton") as IXUIButton); + this.m_SweepCostItem = base.transform.Find("Bg/DetailFrame/SweepButton/Item").gameObject; + this.m_SweepCostItemNum = (base.transform.Find("Bg/DetailFrame/SweepButton/Item/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_rewardBtn = (base.transform.Find("Bg/DetailFrame/Btn1").GetComponent("XUIButton") as IXUIButton); + this.m_rankBtn = (base.transform.Find("Bg/DetailFrame/Btn2").GetComponent("XUIButton") as IXUIButton); + this.m_Free = base.transform.Find("Bg/DetailFrame/Free").gameObject; + this.m_Fatigue = (base.transform.Find("Bg/DetailFrame/Do/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_quanMinSpr = (base.transform.Find("Bg/DetailFrame/qmms").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("Bg/DetailFrame/ItemList/ItemTpl"); + this.m_RewardPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_DiffList.Add(null); + this.m_DiffSelectList.Add(null); + int num = 1; + for (;;) + { + transform = base.transform.Find("Bg/DetailFrame/DiffList/Diff" + num.ToString()); + bool flag = transform == null; + if (flag) + { + break; + } + this.m_DiffList.Add(transform.gameObject); + this.m_DiffSelectList.Add(transform.Find("Select").gameObject); + num++; + } + this.m_FirstPassDropGo = base.transform.Find("Bg/DetailFrame/ItemList/FirstPassDrop").gameObject; + this.m_NormalDropGo = base.transform.Find("Bg/DetailFrame/ItemList/NormalDrop").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TheExpBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TheExpBehaviour.cs.meta new file mode 100644 index 00000000..35284dbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TheExpBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f00ec7690377cdd4584f26ddc791a937 +timeCreated: 1611404828 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TheExpView.cs b/Client/Assets/Scripts/XMainClient/UI/TheExpView.cs new file mode 100644 index 00000000..5c872b5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TheExpView.cs @@ -0,0 +1,704 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class TheExpView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TheExpDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int group + { + get + { + return 1; + } + } + + private XExpeditionDocument _doc; + + private XTeamDocument _teamDoc; + + private XLevelDocument _LevelDoc; + + private XNestDocument _NestDoc; + + private XSweepDocument _sweepDoc = null; + + private NestStarRewardHandler _nestStarRewardHandler; + + private int m_Catergory; + + private int m_Difficulty; + + private int m_SpecialExpID = -1; + + private IXUICheckBox[] m_TabCheckboxs; + + private Dictionary m_FirstOpenExpCache = new Dictionary(); + + private List m_IDCache = new List(); + + private List m_NameCache = new List(); + + private string m_PPTEnoughColor; + + private string m_PPTNotEnoughColor; + + protected override void Init() + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument); + this._teamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this._LevelDoc = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + this._NestDoc = XDocuments.GetSpecificDocument(XNestDocument.uuID); + this._sweepDoc = XDocuments.GetSpecificDocument(XSweepDocument.uuID); + this.m_Catergory = -1; + this.m_SpecialExpID = -1; + this.m_TabCheckboxs = null; + this.m_PPTEnoughColor = XSingleton.singleton.GetValue("PPTEnoughColor"); + this.m_PPTNotEnoughColor = XSingleton.singleton.GetValue("PPTNotEnoughColor"); + base.uiBehaviour.m_rewardBtn.gameObject.SetActive(false); + base.uiBehaviour.m_rankBtn.gameObject.SetActive(false); + DlgHandlerBase.EnsureCreate(ref this._nestStarRewardHandler, base.uiBehaviour.m_parent, false, this); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_AddCount.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnAddFatigueClick)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_rewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnClickPreviewRewardBtn)); + base.uiBehaviour.m_rankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnClickRankBtn)); + base.uiBehaviour.m_quanMinSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._onClickQuanMinSpr)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Activity_Nest); + return true; + } + + protected override void OnUnload() + { + this._doc = null; + this._teamDoc = null; + this.m_TabCheckboxs = null; + bool flag = this._nestStarRewardHandler != null; + if (flag) + { + DlgHandlerBase.EnsureUnload(ref this._nestStarRewardHandler); + this._nestStarRewardHandler = null; + } + base.OnUnload(); + } + + public void ShowView(int expid = -1) + { + base.Load(); + this.m_SpecialExpID = expid; + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + this._RefreshTabs(); + } + + public void ShowViewByExpID(int expID) + { + base.Load(); + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + this.m_SpecialExpID = expID; + this._RefreshTabs(); + } + + private string _GetSubCategoryName(int SubCategory) + { + return string.Format("TeamSubCategory{0}{1}", XFastEnumIntEqualityComparer.ToInt(TeamLevelType.TeamLevelNest), SubCategory); + } + + private void _RefreshTabs() + { + HashSet hashSet = new HashSet(); + int num = -1; + NestListTable.RowData byNestID = XNestDocument.NestListData.GetByNestID(this.m_SpecialExpID); + bool flag = byNestID != null; + if (flag) + { + num = byNestID.Type; + } + this.m_FirstOpenExpCache.Clear(); + for (int i = 0; i < XNestDocument.NestListData.Table.Length; i++) + { + NestListTable.RowData rowData = XNestDocument.NestListData.Table[i]; + bool flag2 = hashSet.Contains(rowData.Type); + if (!flag2) + { + ExpeditionTable.RowData expeditionDataByID = this._doc.GetExpeditionDataByID(rowData.NestID); + bool flag3 = expeditionDataByID == null; + if (!flag3) + { + bool flag4 = this._doc.TeamCategoryMgr.IsExpOpened(expeditionDataByID); + if (flag4) + { + hashSet.Add(rowData.Type); + } + else + { + ExpeditionTable.RowData rowData2; + bool flag5 = this.m_FirstOpenExpCache.TryGetValue(rowData.Type, out rowData2); + if (flag5) + { + bool flag6 = rowData2.RequiredLevel > expeditionDataByID.RequiredLevel; + if (flag6) + { + this.m_FirstOpenExpCache[rowData.Type] = expeditionDataByID; + } + } + else + { + this.m_FirstOpenExpCache.Add(rowData.Type, expeditionDataByID); + } + } + } + } + } + this.m_IDCache.Clear(); + this.m_NameCache.Clear(); + int num2 = 0; + bool flag7 = false; + for (int j = 0; j < XNestDocument.NestTypeData.Table.Length; j++) + { + NestTypeTable.RowData rowData3 = XNestDocument.NestTypeData.Table[j]; + bool flag8 = !flag7 && hashSet.Contains(rowData3.TypeID); + if (flag8) + { + bool flag9 = rowData3.TypeID == num; + if (flag9) + { + num2 = j; + flag7 = true; + } + num2 = Mathf.Max(j, num2); + } + this.m_IDCache.Add(rowData3.TypeID); + this.m_NameCache.Add(rowData3.TypeName); + } + int select = -1; + bool flag10 = num2 < this.m_IDCache.Count; + if (flag10) + { + select = this.m_IDCache[num2]; + } + this.m_TabCheckboxs = base.uiBehaviour.m_tabcontrol.SetupTabs(this.m_IDCache, this.m_NameCache, new XUITabControl.UITabControlCallback(this._UITabControlCallback), false, 1f, select, false); + for (int k = 0; k < this.m_TabCheckboxs.Length; k++) + { + IXUICheckBox ixuicheckBox = this.m_TabCheckboxs[k]; + IXUISprite ixuisprite = ixuicheckBox.gameObject.transform.parent.Find("Lock").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = ixuicheckBox.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + NestTypeTable.RowData byTypeID = XNestDocument.NestTypeData.GetByTypeID((int)ixuicheckBox.ID); + bool flag11 = byTypeID == null; + if (!flag11) + { + ixuisprite2.SetSprite(byTypeID.TypeIcon); + bool flag12 = !hashSet.Contains((int)ixuicheckBox.ID); + if (flag12) + { + ixuisprite.SetVisible(true); + int key = (int)ixuicheckBox.ID; + ExpeditionTable.RowData rowData4; + this.m_FirstOpenExpCache.TryGetValue(key, out rowData4); + bool flag13 = rowData4 != null; + if (flag13) + { + ixuisprite.ID = (ulong)((long)rowData4.DNExpeditionID); + } + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnLockClicked)); + ixuicheckBox.SetEnable(false); + } + else + { + ixuisprite.SetVisible(false); + ixuicheckBox.SetEnable(true); + } + } + } + } + + private void _OnLockClicked(IXUISprite iSp) + { + ExpeditionTable.RowData expeditionDataByID = this._doc.GetExpeditionDataByID((int)iSp.ID); + NestListTable.RowData byNestID = XNestDocument.NestListData.GetByNestID((int)iSp.ID); + bool flag = expeditionDataByID == null; + if (!flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + expeditionDataByID.RequiredLevel + }) + XStringDefineProxy.GetString(this._GetSubCategoryName(byNestID.Type)), "fece00"); + } + } + + private void _UITabControlCallback(ulong id) + { + int num = (int)id; + NestTypeTable.RowData byTypeID = XNestDocument.NestTypeData.GetByTypeID(num); + bool flag = byTypeID == null; + if (!flag) + { + this.m_Catergory = num; + base.uiBehaviour.m_NestBg.SetTexturePath(byTypeID.TypeBg); + bool flag2 = byTypeID.TypeBgTransform == null || byTypeID.TypeBgTransform.Length != 3; + if (flag2) + { + base.uiBehaviour.m_NestBg.gameObject.transform.localPosition = Vector3.zero; + } + else + { + base.uiBehaviour.m_NestBg.gameObject.transform.localPosition = new Vector3(byTypeID.TypeBgTransform[0], byTypeID.TypeBgTransform[1], byTypeID.TypeBgTransform[2]); + } + this._RefreshDiffs(); + } + } + + private void _RefreshDiffs() + { + for (int i = 1; i < base.uiBehaviour.m_DiffList.Count; i++) + { + base.uiBehaviour.m_DiffList[i].SetActive(false); + } + NestListTable.RowData rowData = null; + ExpeditionTable.RowData rowData2 = null; + int starNestId = this._NestDoc.GetStarNestId(this.m_Catergory); + int j = 0; + while (j < XNestDocument.NestListData.Table.Length) + { + NestListTable.RowData rowData3 = XNestDocument.NestListData.Table[j]; + bool flag = rowData3.Type == this.m_Catergory; + if (flag) + { + bool flag2 = rowData3.Difficulty >= base.uiBehaviour.m_DiffList.Count || rowData3.Difficulty <= 0; + if (!flag2) + { + ExpeditionTable.RowData expeditionDataByID = this._doc.GetExpeditionDataByID(rowData3.NestID); + bool flag3 = expeditionDataByID != null && expeditionDataByID.CostCountType == 0; + if (flag3) + { + bool flag4 = starNestId != 0 && rowData3.NestID != starNestId; + if (flag4) + { + bool flag5 = expeditionDataByID.Stars[0] != 1u; + if (flag5) + { + goto IL_1DB; + } + } + } + GameObject gameObject = base.uiBehaviour.m_DiffList[rowData3.Difficulty]; + gameObject.SetActive(true); + bool flag6 = this._SetDiff(gameObject, rowData3.Difficulty, rowData3); + bool flag7 = flag6; + if (flag7) + { + bool flag8 = rowData3.NestID == this.m_SpecialExpID; + if (flag8) + { + rowData = rowData3; + rowData2 = expeditionDataByID; + } + else + { + bool flag9 = rowData == null || (rowData.NestID != this.m_SpecialExpID && (rowData.Difficulty < rowData3.Difficulty || (rowData.Difficulty == rowData3.Difficulty && rowData2.Stars[0] < expeditionDataByID.Stars[0]))); + if (flag9) + { + rowData2 = expeditionDataByID; + rowData = rowData3; + } + } + } + } + } + IL_1DB: + j++; + continue; + goto IL_1DB; + } + bool flag10 = rowData == null; + if (flag10) + { + XSingleton.singleton.AddErrorLog("This category has no diffs that can be selected, " + this.m_Catergory.ToString(), null, null, null, null, null); + } + else + { + this._TrySelectDiff(rowData); + } + } + + private bool _SetDiff(GameObject go, int index, NestListTable.RowData rowData) + { + IXUISprite ixuisprite = go.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)rowData.NestID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnDiffClicked)); + GameObject gameObject = go.transform.Find("Lock").gameObject; + SceneRefuseReason sceneRefuseReason = this._LevelDoc.CanLevelOpen(this._doc.GetSceneIDByExpID(rowData.NestID)); + gameObject.SetActive(sceneRefuseReason != SceneRefuseReason.Admit); + return sceneRefuseReason == SceneRefuseReason.Admit; + } + + private void _OnDiffClicked(IXUISprite iSp) + { + NestListTable.RowData byNestID = XNestDocument.NestListData.GetByNestID((int)iSp.ID); + this._TrySelectDiff(byNestID); + } + + private void _TrySelectDiff(NestListTable.RowData rowData) + { + bool flag = rowData == null; + if (!flag) + { + uint sceneIDByExpID = this._doc.GetSceneIDByExpID(rowData.NestID); + SceneRefuseReason sceneRefuseReason = this._LevelDoc.CanLevelOpen(sceneIDByExpID); + bool flag2 = sceneRefuseReason == SceneRefuseReason.Admit; + if (flag2) + { + this.m_SpecialExpID = -1; + this._SelectDiff(rowData.Difficulty); + this.OnComboBoxChange(rowData); + } + else + { + SceneRefuseReason sceneRefuseReason2 = sceneRefuseReason; + if (sceneRefuseReason2 != SceneRefuseReason.PreScene_Notfinish) + { + if (sceneRefuseReason2 == SceneRefuseReason.Level_NotEnough) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneIDByExpID); + bool flag3 = sceneData != null; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL", new object[] + { + sceneData.RequiredLevel + }), "fece00"); + } + } + } + else + { + SceneTable.RowData sceneData2 = XSingleton.singleton.GetSceneData(sceneIDByExpID); + bool flag4 = sceneData2 != null; + if (flag4) + { + int unFinishedPreSceneID = this._LevelDoc.GetUnFinishedPreSceneID(sceneData2); + int expIDBySceneID = this._doc.GetExpIDBySceneID((uint)unFinishedPreSceneID); + ExpeditionTable.RowData expeditionDataByID = this._doc.GetExpeditionDataByID(expIDBySceneID); + bool flag5 = expeditionDataByID != null; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("LEVEL_REQUIRE_PRELEVEL", new object[] + { + XExpeditionDocument.GetFullName(expeditionDataByID) + }), "fece00"); + } + } + } + } + } + } + + private void _SelectDiff(int index) + { + for (int i = 1; i < base.uiBehaviour.m_DiffSelectList.Count; i++) + { + base.uiBehaviour.m_DiffSelectList[i].SetActive(i == index); + } + } + + private void OnComboBoxChange(NestListTable.RowData nestListData) + { + this.m_Difficulty = nestListData.Difficulty; + ExpeditionTable.RowData expeditionDataByID = this._doc.GetExpeditionDataByID(nestListData.NestID); + bool flag = expeditionDataByID == null; + if (!flag) + { + base.uiBehaviour.m_rewardBtn.ID = (ulong)((long)nestListData.Type); + base.uiBehaviour.m_rankBtn.ID = (ulong)((long)nestListData.Type); + base.uiBehaviour.m_rewardBtn.gameObject.SetActive(expeditionDataByID.CostCountType == 0); + base.uiBehaviour.m_rankBtn.gameObject.SetActive(expeditionDataByID.CostCountType == 0); + bool flag2 = expeditionDataByID.Stars[0] == 0u; + if (flag2) + { + base.uiBehaviour.m_starImageGo.SetActive(false); + } + else + { + base.uiBehaviour.m_starImageGo.SetActive(true); + base.uiBehaviour.m_starLab.SetText(expeditionDataByID.Stars[0].ToString()); + } + base.uiBehaviour.m_NestName.SetText(expeditionDataByID.DNExpeditionName); + base.uiBehaviour.m_NestMember.SetText(expeditionDataByID.PlayerNumber.ToString()); + base.uiBehaviour.m_NestPPT.SetText(string.Format("[{0}]{1}[-]", (expeditionDataByID.DisplayPPT <= XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic)) ? this.m_PPTEnoughColor : this.m_PPTNotEnoughColor, expeditionDataByID.DisplayPPT.ToString())); + base.uiBehaviour.m_NestLevel.SetText(expeditionDataByID.RequiredLevel.ToString()); + base.uiBehaviour.m_NestEquipText.SetText(XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("NEST_DIFFICULTY_EQUIP_TEXT_", (this.m_Catergory * 10 + this.m_Difficulty).ToString()))); + base.uiBehaviour.m_RewardPool.ReturnAll(false); + base.uiBehaviour.m_quanMinSpr.gameObject.SetActive(this.m_Difficulty != 4); + base.uiBehaviour.m_LeftCountGo.SetActive(this.m_Difficulty != 4); + base.uiBehaviour.m_MyPPT.gameObject.SetActive(this.m_Difficulty == 4); + base.uiBehaviour.m_NestPPT.gameObject.SetActive(this.m_Difficulty == 4); + Vector3 tplPos = base.uiBehaviour.m_RewardPool.TplPos; + bool flag3 = expeditionDataByID.ViewableDropList != null; + if (flag3) + { + for (int i = 0; i < expeditionDataByID.ViewableDropList.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_RewardPool._tpl.transform.parent; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)expeditionDataByID.ViewableDropList[i], 0, false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(base.uiBehaviour.m_RewardPool.TplWidth * i), tplPos.y); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)expeditionDataByID.ViewableDropList[i]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + } + } + bool bEnable = this._doc.TeamCategoryMgr.IsExpOpened(expeditionDataByID); + base.uiBehaviour.m_GoBattle.SetEnable(bEnable, false); + base.uiBehaviour.m_GoBattle.ID = (ulong)((long)expeditionDataByID.DNExpeditionID); + base.uiBehaviour.m_GoBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnEnterClicked)); + base.uiBehaviour.m_SweepButton.ID = (ulong)((long)expeditionDataByID.DNExpeditionID); + base.uiBehaviour.m_SweepButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSweepButtonClicked)); + this.SetupSweepCost(expeditionDataByID); + base.uiBehaviour.m_Fatigue.SetVisible(false); + uint sceneIDByExpID = this._doc.GetSceneIDByExpID(expeditionDataByID.DNExpeditionID); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneIDByExpID); + bool flag4 = sceneData != null; + if (flag4) + { + bool flag5 = sceneData.FatigueCost.Count > 0; + if (flag5) + { + for (int j = 0; j < sceneData.FatigueCost.Count; j++) + { + int num = sceneData.FatigueCost[j, 0]; + bool flag6 = num == 6; + if (flag6) + { + base.uiBehaviour.m_Fatigue.SetVisible(true); + base.uiBehaviour.m_Fatigue.SetText(sceneData.FatigueCost[j, 1].ToString()); + break; + } + } + } + } + base.uiBehaviour.m_LeftCountGo.SetActive(expeditionDataByID.CostCountType != 0); + base.uiBehaviour.m_Free.SetActive(expeditionDataByID.CostCountType == 0); + base.uiBehaviour.m_FirstPassDropGo.SetActive(expeditionDataByID.CostCountType == 0); + base.uiBehaviour.m_NormalDropGo.SetActive(expeditionDataByID.CostCountType != 0); + } + } + + private void SetupSweepCost(ExpeditionTable.RowData expData) + { + uint sceneIDByExpID = this._doc.GetSceneIDByExpID(expData.DNExpeditionID); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneIDByExpID); + bool flag = sceneData.SweepTicket != null && sceneData.SweepTicket.Length != 0; + if (flag) + { + base.uiBehaviour.m_SweepButton.SetVisible(true); + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_SweepCostItem, (int)sceneData.SweepTicket[0], 0, false); + base.uiBehaviour.m_SweepCostItemNum.SetText("x1"); + IXUISprite ixuisprite = base.uiBehaviour.m_SweepCostItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)sceneData.SweepTicket[0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + base.uiBehaviour.m_SweepButton.SetVisible(false); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshLeftCount(); + } + + protected override void OnShow() + { + base.OnShow(); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + base.uiBehaviour.m_MyPPT.SetText(((int)XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic)).ToString()); + this.RefreshLeftCount(); + } + + protected override void OnHide() + { + bool flag = this._nestStarRewardHandler != null; + if (flag) + { + this._nestStarRewardHandler.SetVisible(false); + } + base.uiBehaviour.m_NestBg.SetTexturePath(""); + this.m_SpecialExpID = -1; + base.OnHide(); + } + + private void OnClickLockedDificulty(IXUISprite spr) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NEST_DIFFICULTY_LOCK_MSG"), "fece00"); + } + + public void RefreshLeftCount() + { + int dayCount = this._doc.GetDayCount(TeamLevelType.TeamLevelNest, null); + int dayMaxCount = this._doc.GetDayMaxCount(TeamLevelType.TeamLevelNest, null); + this._SetSpirit(dayCount, dayMaxCount); + } + + private void _SetSpirit(int cur, int total) + { + base.uiBehaviour.m_LeftCount.SetText(string.Format("{0}/{1}", cur, total)); + } + + private bool _OnAddFatigueClick(IXUIButton sp) + { + DlgBase.singleton.ActiveShow(TeamLevelType.TeamLevelNest); + return true; + } + + protected bool OnCloseClicked(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnSweepButtonClicked(IXUIButton button) + { + this._sweepDoc.TrySweepQuery(0u, (uint)button.ID, 1u); + return true; + } + + private bool _OnEnterClicked(IXUIButton go) + { + ExpeditionTable.RowData expeditionDataByID = this._doc.GetExpeditionDataByID((int)go.ID); + float num = float.Parse(XSingleton.singleton.GetValue("SceneGotoPower")); + bool flag = XSingleton.singleton.CheckMyPPT(Mathf.FloorToInt(expeditionDataByID.DisplayPPT * num)); + if (flag) + { + this._OnRealEnter((int)go.ID); + } + else + { + XSingleton.singleton.ShowPPTNotEnoughDlg(go.ID, new ButtonClickEventHandler(this._OnRealEnterClicked)); + } + return true; + } + + private bool _OnRealEnterClicked(IXUIButton go) + { + this._OnRealEnter((int)go.ID); + return true; + } + + private bool _OnClickPreviewRewardBtn(IXUIButton go) + { + bool flag = go == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._NestDoc.NestType = (uint)go.ID; + bool flag2 = this._nestStarRewardHandler != null; + if (flag2) + { + this._nestStarRewardHandler.SetVisible(true); + } + result = true; + } + return result; + } + + private bool _OnClickRankBtn(IXUIButton go) + { + FirstPassDocument.Doc.SetCurDataByNestType((int)go.ID); + DlgBase.singleton.SetVisible(true, true); + return true; + } + + private void _onClickQuanMinSpr(IXUISprite spr) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Nest_QuanMin); + } + + private void _OnRealEnter(int id) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(id); + } + + private void _OnItemClicked(IXUISprite iSp) + { + XItem mainItem = XBagDocument.MakeXItem((int)iSp.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, iSp, false, 0u); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TheExpView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TheExpView.cs.meta new file mode 100644 index 00000000..7874e0ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TheExpView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b73d0d516258bad4b82ed0a6e01061ee +timeCreated: 1611404401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TitanBarBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/TitanBarBehaviour.cs new file mode 100644 index 00000000..be905db9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitanBarBehaviour.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class TitanBarBehaviour : DlgBehaviourBase + { + public List m_ItemList = new List(); + + public List m_ItemGoList = new List(); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + Transform transform = base.transform.Find("TitanFrame/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TitanBarBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TitanBarBehaviour.cs.meta new file mode 100644 index 00000000..48e32fd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitanBarBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f32493dca4bb11f4cb344b6a569f6025 +timeCreated: 1611404846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TitanbarView.cs b/Client/Assets/Scripts/XMainClient/UI/TitanbarView.cs new file mode 100644 index 00000000..76074963 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitanbarView.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class TitanbarView : DlgBase + { + public override string fileName + { + get + { + return "Hall/TitanBar"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private int[] m_DefaultItemID; + + protected override void Init() + { + base.Init(); + string[] array = XSingleton.singleton.GetValue("DefaultTitanItems").Split(XGlobalConfig.ListSeparator); + this.m_DefaultItemID = new int[array.Length]; + for (int i = 0; i < array.Length; i++) + { + this.m_DefaultItemID[i] = int.Parse(array[i]); + } + } + + public void SetTitanItems(XSysDefine sys) + { + int[] titanItems = this._GetItemIDs(sys); + this.SetTitanItems(titanItems); + } + + public void SetTitanItems(int[] itemids) + { + base.uiBehaviour.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < base.uiBehaviour.m_ItemList.Count; i++) + { + base.uiBehaviour.m_ItemList[i].Recycle(); + } + base.uiBehaviour.m_ItemList.Clear(); + bool flag = itemids != null; + if (flag) + { + Vector3 tplPos = base.uiBehaviour.m_ItemPool.TplPos; + for (int j = 0; j < itemids.Length; j++) + { + XTitanItem data = XDataPool.GetData(); + base.uiBehaviour.m_ItemList.Add(data); + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x - (float)(base.uiBehaviour.m_ItemPool.TplWidth * (itemids.Length - 1 - j)), tplPos.y, tplPos.z); + data.Set(itemids[j], gameObject); + } + } + base.uiBehaviour.m_ItemPool.ActualReturnAll(false); + } + + public void TryRefresh(List itemids) + { + bool flag = !base.IsVisible(); + if (!flag) + { + for (int i = 0; i < itemids.Count; i++) + { + this.TryRefresh(itemids[i]); + } + } + } + + public void TryRefresh(int itemid) + { + bool flag = !base.IsVisible(); + if (!flag) + { + for (int i = 0; i < base.uiBehaviour.m_ItemList.Count; i++) + { + bool flag2 = base.uiBehaviour.m_ItemList[i].ItemID == itemid; + if (flag2) + { + base.uiBehaviour.m_ItemList[i].RefreshValue(true); + break; + } + } + } + } + + private int[] _GetItemIDs(XSysDefine sys) + { + OpenSystemTable.RowData sysData = XSingleton.singleton.GetSysData(XFastEnumIntEqualityComparer.ToInt(sys)); + bool flag = sysData == null; + int[] result; + if (flag) + { + result = this.m_DefaultItemID; + } + else + { + result = sysData.TitanItems; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TitanbarView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TitanbarView.cs.meta new file mode 100644 index 00000000..2162b500 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitanbarView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb885974178137e4c9be3015deda6ff3 +timeCreated: 1611404783 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs b/Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs new file mode 100644 index 00000000..15794af0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs @@ -0,0 +1,219 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class TitleDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TitleDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Title); + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XTitleDocument _Doc; + + private List m_titleDisplay; + + private Vector3 m_leftPos; + + private Vector3 m_rightPos; + + private Vector3 m_middlePos; + + protected override void OnLoad() + { + base.OnLoad(); + this.m_titleDisplay = new List(); + } + + protected override void OnUnload() + { + this._Doc.TitleView = null; + bool flag = this.m_titleDisplay != null; + if (flag) + { + this.m_titleDisplay.Clear(); + this.m_titleDisplay = null; + } + bool flag2 = base.uiBehaviour != null; + if (flag2) + { + base.uiBehaviour.m_CurrentTitle.Reset(); + base.uiBehaviour.m_NextTitle.Reset(); + } + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XTitleDocument.uuID); + this._Doc.TitleView = this; + this.m_leftPos = base.uiBehaviour.m_CurrentTitle.transform.localPosition; + this.m_rightPos = base.uiBehaviour.m_NextTitle.transform.localPosition; + this.m_middlePos = new Vector3(0f, this.m_leftPos.y, this.m_leftPos.z); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickClose)); + base.uiBehaviour.m_Promote.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickPromote)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickHelp)); + } + + private bool ClickHelp(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Title); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshTitleDisplay(); + } + + public void Refresh() + { + this.RefreshTitleDisplay(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.Refresh(); + } + + private bool ClickClose(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + + private void RefreshTitleDisplay() + { + base.uiBehaviour.m_CurrentTitle.Set(this._Doc.CurrentTitle); + base.uiBehaviour.m_NextTitle.Set(this._Doc.NextTitle); + this.SetNextInfo(this._Doc.NextTitle); + base.uiBehaviour.m_CurrentTitle.transform.localPosition = (this._Doc.IsMax ? this.m_middlePos : this.m_leftPos); + base.uiBehaviour.m_point.SetActive(!this._Doc.IsMax); + base.uiBehaviour.m_Promote.SetEnable(this._Doc.bEnableTitleLevelUp, false); + base.uiBehaviour.m_redPoint.SetAlpha((float)(this._Doc.bEnableTitleLevelUp ? 1 : 0)); + } + + private void SetNextInfo(TitleTable.RowData rowData) + { + bool flag = rowData == null; + if (flag) + { + this.ResetActive(); + base.uiBehaviour.m_MaxTitle.SetActive(true); + } + else + { + int i = this.m_titleDisplay.Count; + int num = 1 + rowData.NeedItem.Count; + bool flag2 = i != num; + while (i < num) + { + GameObject gameObject = XCommon.Instantiate(base.uiBehaviour.m_ItemTpl); + gameObject.name = XSingleton.singleton.StringCombine("item_", i.ToString()); + gameObject.transform.parent = base.uiBehaviour.m_ScrollView.gameObject.transform; + gameObject.transform.localPosition = new Vector3(0f, (float)(-35 * i), 0f); + gameObject.transform.localScale = Vector3.one; + TitleItemDisplay titleItemDisplay = new TitleItemDisplay(); + titleItemDisplay.Init(gameObject.transform); + this.m_titleDisplay.Add(titleItemDisplay); + i++; + } + for (int j = 0; j < i; j++) + { + bool flag3 = j == 0; + if (flag3) + { + this.m_titleDisplay[j].SetVisible(true); + this.m_titleDisplay[j].Set(0u, rowData.NeedPowerPoint, rowData.desc); + } + else + { + bool flag4 = j < num; + if (flag4) + { + this.m_titleDisplay[j].SetVisible(true); + this.m_titleDisplay[j].Set(rowData.NeedItem[j - 1, 0], rowData.NeedItem[j - 1, 1], rowData.desc); + } + else + { + this.m_titleDisplay[j].SetVisible(false); + } + } + } + bool flag5 = flag2; + if (flag5) + { + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + base.uiBehaviour.m_MaxTitle.SetActive(false); + } + } + + private void ResetActive() + { + bool flag = this.m_titleDisplay != null && this.m_titleDisplay.Count > 0; + if (flag) + { + int count = this.m_titleDisplay.Count; + for (int i = 0; i < count; i++) + { + this.m_titleDisplay[i].SetVisible(false); + } + } + } + + private bool ClickPromote(IXUIButton btn) + { + this._Doc.GetTitleLevelUp(); + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs.meta new file mode 100644 index 00000000..31ff377e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a616a658907f4c4ca1ccee865a0fd70 +timeCreated: 1611403790 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs new file mode 100644 index 00000000..35b888ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs @@ -0,0 +1,45 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class TitleDlgBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_Promote; + + public IXUIScrollView m_ScrollView; + + public GameObject m_ItemTpl; + + public GameObject m_point; + + public GameObject m_MaxTitle; + + public IXUISprite m_redPoint; + + public TitleDisplay m_CurrentTitle = new TitleDisplay(); + + public TitleDisplay m_NextTitle = new TitleDisplay(); + + private void Awake() + { + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Promote = (base.transform.Find("Bg/Promote").GetComponent("XUIButton") as IXUIButton); + this.m_redPoint = (base.transform.Find("Bg/Promote/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_ScrollView = (base.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ItemTpl = base.transform.Find("Bg/ScrollView/ItemTpl").gameObject; + this.m_point = base.transform.Find("Bg/Point").gameObject; + this.m_ItemTpl.gameObject.SetActive(false); + this.m_MaxTitle = base.transform.Find("Bg/MaxTitle").gameObject; + this.m_CurrentTitle.Init(base.transform.Find("Bg/Current")); + this.m_NextTitle.Init(base.transform.Find("Bg/Next")); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs.meta new file mode 100644 index 00000000..53eb2647 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3aa1477f83818e7499f073dc662d9d66 +timeCreated: 1611403597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleShareBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/TitleShareBehaviour.cs new file mode 100644 index 00000000..7ba89422 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleShareBehaviour.cs @@ -0,0 +1,32 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class TitleShareBehaviour : DlgBehaviourBase + { + public TitleDisplay m_currentTitle = new TitleDisplay(); + + public IXUITexture m_maskTexture; + + public IUIDummy m_snapshotTransfrom; + + public Transform m_closeTips; + + public IXUILabel m_message; + + public IXUISprite m_Close; + + private void Awake() + { + this.m_snapshotTransfrom = (base.transform.Find("Bg/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_maskTexture = (base.transform.Find("Bg/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_currentTitle.Init(base.transform.Find("Bg/Current")); + this.m_closeTips = base.transform.Find("Bg/KeepOn"); + this.m_message = (base.transform.Find("Bg/Message").GetComponent("XUILabel") as IXUILabel); + this.m_Close = (base.transform.Find("Bg/P").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleShareBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TitleShareBehaviour.cs.meta new file mode 100644 index 00000000..87c19781 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleShareBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8358ca3fef185ee4096cbd58f832ff42 +timeCreated: 1611404044 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleShareDlg.cs b/Client/Assets/Scripts/XMainClient/UI/TitleShareDlg.cs new file mode 100644 index 00000000..741e8c3b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleShareDlg.cs @@ -0,0 +1,134 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class TitleShareDlg : DlgBase + { + public override int layer + { + get + { + return 1; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Title_Share); + } + } + + public override string fileName + { + get + { + return "GameSystem/TitleShareDlg"; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XTitleDocument _Doc; + + private uint m_showTime; + + private bool m_canClose; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XTitleDocument.uuID); + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ClickTitleShared)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_canClose = false; + TitleTable.RowData currentTitle = this._Doc.CurrentTitle; + base.uiBehaviour.m_closeTips.gameObject.SetActive(this.m_canClose); + base.uiBehaviour.m_currentTitle.Set(currentTitle); + bool flag = !string.IsNullOrEmpty(currentTitle.AffectRoute); + if (flag) + { + XSingleton.singleton.CreateAndPlay(currentTitle.AffectRoute + "_Clip01", base.uiBehaviour.transform, Vector3.zero, Vector3.one, 1f, false, 1f, true); + } + XSingleton.singleton.EnableMainDummy(true, base.uiBehaviour.m_snapshotTransfrom); + float interval = XSingleton.singleton.SetMainAnimationGetLength(XSingleton.singleton.Player.Present.PresentLib.Disappear); + this.m_showTime = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.KillTimer), null); + base.uiBehaviour.m_message.SetText(XStringDefineProxy.GetString("TITLE_NEW_GET", new object[] + { + currentTitle.RankName + })); + } + + private void KillTimer(object sender) + { + this.m_canClose = true; + base.uiBehaviour.m_closeTips.gameObject.SetActive(this.m_canClose); + XSingleton.singleton.KillTimer(this.m_showTime); + XSingleton.singleton.SetMainAnimation(XSingleton.singleton.Player.Present.PresentLib.AttackIdle); + } + + protected override void OnHide() + { + XSingleton.singleton.EnableMainDummy(false, base.uiBehaviour.m_snapshotTransfrom); + base.OnHide(); + this.m_showTime = 0u; + XSingleton.singleton.EnableMainDummy(false, null); + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this.m_showTime); + XSingleton.singleton.OnUIUnloadMainDummy(base.uiBehaviour.m_snapshotTransfrom); + bool flag = base.uiBehaviour != null; + if (flag) + { + base.uiBehaviour.m_currentTitle.Reset(); + } + base.OnUnload(); + } + + private void ClickTitleShared(IXUISprite texture) + { + bool flag = !this.m_canClose; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TITILE_QUIKE"), "fece00"); + } + else + { + this.SetVisibleWithAnimation(false, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TitleShareDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TitleShareDlg.cs.meta new file mode 100644 index 00000000..ee6a57a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TitleShareDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de563c2fea737d54abef263c41f971f9 +timeCreated: 1611404686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs b/Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs new file mode 100644 index 00000000..77eeea39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs @@ -0,0 +1,946 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal abstract class TooltipDlg : DlgBase, ITooltipDlg where TDlgClass : IXUIDlg, new() where TUIBehaviour : TooltipDlgBehaviour + { + public XItemSelector ItemSelector + { + get + { + return this._ItemSelector; + } + } + + public uint profession + { + get + { + return this._profession; + } + set + { + this._profession = value; + bool flag = this._profession == 0u; + if (flag) + { + this._profession = XItemDrawerParam.DefaultProfession; + } + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected virtual int compareWindowDistance + { + get + { + return 0; + } + } + + protected virtual int funcFrameWidth + { + get + { + return 150; + } + } + + public ulong MainItemUID + { + get + { + return this.mainItemUID; + } + } + + protected virtual string _PPTTitle + { + get + { + return null; + } + } + + public ulong mainItemUID = 0UL; + + public ulong compareItemUID = 0UL; + + protected bool _bShowedThisFrame = false; + + protected bool _bButtonClickedThisFrame = false; + + protected float _bgTopOffset; + + protected bool _bNeedReposition; + + public float totalFrameHeight; + + public bool bShowButtons = true; + + protected bool bHadJade = false; + + protected TooltipButtonOperateBase[,] m_OperateList = new TooltipButtonOperateBase[TooltipDlgBehaviour.MAX_GROUP_COUNT, TooltipDlgBehaviour.MAX_BUTTON_COUNT]; + + private IXUILabel blockTime = null; + + private IXUILabel compareBlockTime = null; + + private XItemSelector _ItemSelector = new XItemSelector(XSingleton.singleton.DefaultIconWidth); + + private int _ActiveButtonCount = 0; + + protected uint _profession = 0u; + + private List m_TempList = new List(); + + protected override void Init() + { + base.Init(); + this._bgTopOffset = (float)((XSingleton.singleton.Base_UI_Height - base.uiBehaviour.m_PanelPool.TplHeight) / 2); + } + + protected override void OnUnload() + { + this._ItemSelector.Unload(); + base.OnUnload(); + } + + public virtual bool HideToolTip(bool forceHide = false) + { + bool flag = !forceHide; + if (flag) + { + bool bShowedThisFrame = this._bShowedThisFrame; + if (bShowedThisFrame) + { + return false; + } + bool bButtonClickedThisFrame = this._bButtonClickedThisFrame; + if (bButtonClickedThisFrame) + { + return false; + } + } + this.SetVisible(false, true); + this._ItemSelector.Hide(); + this.profession = 0u; + this.mainItemUID = 0UL; + this.compareItemUID = 0UL; + base.uiBehaviour.m_AttrPool.ReturnAll(false); + base.uiBehaviour.m_PanelPool.ReturnAll(false); + base.uiBehaviour.m_AttrFramePool.ReturnAll(false); + return true; + } + + public override void OnUpdate() + { + bool flag = this.blockTime == null; + if (!flag) + { + int num = -1; + bool flag2 = this.mainItemUID > 0UL && XSingleton.singleton.Doc.XBagDoc.ItemBag.FindItem(this.mainItemUID, out num) && num > -1; + if (flag2) + { + XItem xitem = XSingleton.singleton.Doc.XBagDoc.ItemBag[num]; + bool flag3 = xitem != null && !xitem.bBinding && xitem.blocking > 0.0; + if (flag3) + { + bool flag4 = this.blockTime != null; + if (flag4) + { + this.blockTime.SetText(XStringDefineProxy.GetString("AUCTION_BLOCKING", new object[] + { + XSingleton.singleton.TimeDuarationFormatSizeString((int)xitem.blocking, 2, 1) + })); + } + } + } + bool flag5 = this.compareItemUID > 0UL && XSingleton.singleton.Doc.XBagDoc.ItemBag.FindItem(this.compareItemUID, out num) && num > -1; + if (flag5) + { + XItem xitem2 = XSingleton.singleton.Doc.XBagDoc.ItemBag[num]; + bool flag6 = xitem2 != null && !xitem2.bBinding && xitem2.blocking > 0.0; + if (flag6) + { + bool flag7 = this.compareBlockTime != null; + if (flag7) + { + this.compareBlockTime.SetText(XStringDefineProxy.GetString("AUCTION_BLOCKING", new object[] + { + XSingleton.singleton.TimeDuarationFormatSizeString((int)xitem2.blocking, 2, 1) + })); + } + } + } + } + } + + public override void OnPostUpdate() + { + this._bShowedThisFrame = false; + this._bButtonClickedThisFrame = false; + } + + public void SetPosition(IXUISprite clickIcon) + { + int num = base.uiBehaviour.m_TotalFrame.spriteHeight / 2; + Vector3 localPosition = base.uiBehaviour.m_TotalFrame.gameObject.transform.localPosition; + base.uiBehaviour.m_TotalFrame.gameObject.transform.localPosition = new Vector3(localPosition.x, (float)num, localPosition.z); + base.uiBehaviour.DelayShow(this); + } + + public virtual IXUISprite ShowToolTip(XItem mainItem, XItem compareItem, bool _bShowButtons, uint prof = 0u) + { + this.bShowButtons = _bShowButtons; + this.HideToolTip(true); + this.mainItemUID = ((mainItem == null || mainItem.itemID == 0) ? 0UL : mainItem.uid); + this.compareItemUID = ((compareItem == null || compareItem.itemID == 0) ? 0UL : compareItem.uid); + this.SetVisible(true, true); + GameObject gameObject = base.uiBehaviour.m_PanelPool.FetchGameObject(false); + gameObject.name = "main"; + this.profession = prof % 10u; + this.SetupToolTip(gameObject, mainItem, compareItem, true); + GameObject gameObject2 = null; + bool flag = compareItem != null && compareItem.itemID != 0; + if (flag) + { + gameObject2 = base.uiBehaviour.m_PanelPool.FetchGameObject(false); + gameObject2.name = "compare"; + this.profession = prof % 10u; + this.SetupToolTip(gameObject2, compareItem, mainItem, false); + } + IXUISprite ixuisprite = null; + bool flag2 = compareItem == null || compareItem.itemID == 0; + IXUISprite ixuisprite2; + if (flag2) + { + ixuisprite2 = (gameObject.GetComponent("XUISprite") as IXUISprite); + base.uiBehaviour.m_TotalFrame.spriteWidth = ixuisprite2.spriteWidth; + base.uiBehaviour.m_TotalFrame.spriteHeight = ixuisprite2.spriteHeight; + } + else + { + int num = 0; + int num2 = 0; + ixuisprite2 = (gameObject.GetComponent("XUISprite") as IXUISprite); + num += ixuisprite2.spriteWidth; + bool flag3 = ixuisprite2.spriteHeight > num2; + if (flag3) + { + num2 = ixuisprite2.spriteHeight; + } + ixuisprite = (gameObject2.GetComponent("XUISprite") as IXUISprite); + num += ixuisprite.spriteWidth; + bool flag4 = ixuisprite.spriteHeight > num2; + if (flag4) + { + num2 = ixuisprite.spriteHeight; + } + base.uiBehaviour.m_TotalFrame.spriteWidth = num + this.compareWindowDistance; + base.uiBehaviour.m_TotalFrame.spriteHeight = num2; + } + if (_bShowButtons) + { + base.uiBehaviour.m_TotalFrame.spriteWidth += this.funcFrameWidth * 2; + } + bool flag5 = compareItem == null || compareItem.itemID == 0; + if (flag5) + { + gameObject.transform.localPosition = Vector3.zero; + } + else + { + gameObject.transform.localPosition = new Vector3((float)(ixuisprite2.spriteWidth / 2 + this.compareWindowDistance / 2), 0f); + gameObject2.transform.localPosition = new Vector3((float)(-(float)ixuisprite.spriteWidth / 2 - this.compareWindowDistance / 2), 0f); + } + this._bShowedThisFrame = true; + this._bNeedReposition = true; + return base.uiBehaviour.m_TotalFrame; + } + + public IXUISprite ShowToolTip(int itemid, uint prof = 0u) + { + this.HideToolTip(true); + this.SetVisible(true, true); + this.profession = prof % 10u; + this.mainItemUID = 0UL; + this.compareItemUID = 0UL; + GameObject gameObject = base.uiBehaviour.m_PanelPool.FetchGameObject(false); + gameObject.name = "main"; + gameObject.transform.localPosition = base.uiBehaviour.m_PanelPool._tpl.transform.localPosition; + this.SetupToolTip(gameObject, itemid); + this._bShowedThisFrame = true; + this._bNeedReposition = true; + gameObject.transform.localPosition = Vector3.zero; + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + base.uiBehaviour.m_TotalFrame.spriteWidth = ixuisprite.spriteWidth; + base.uiBehaviour.m_TotalFrame.spriteHeight = ixuisprite.spriteHeight; + return base.uiBehaviour.m_TotalFrame; + } + + protected void SetupToolTip(GameObject goToolTip, int itemid) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + this.totalFrameHeight = base.uiBehaviour.m_TooltipBorder; + bool flag = itemConf != null; + if (flag) + { + this.SetupTopFrame(goToolTip, itemConf, true, null, null); + } + this.bHadJade = false; + this.SetupOtherFrame(goToolTip, itemConf); + IXUISprite ixuisprite = goToolTip.GetComponent("XUISprite") as IXUISprite; + bool flag2 = !this.bHadJade; + if (flag2) + { + ixuisprite.spriteHeight = (int)(Math.Min(this.totalFrameHeight, base.uiBehaviour.m_MaxTooltipHeight) + base.uiBehaviour.m_TooltipBorder); + } + else + { + ixuisprite.spriteHeight = (int)(Math.Min(this.totalFrameHeight, base.uiBehaviour.m_MaxTooltipHeightWithJade) + base.uiBehaviour.m_TooltipBorder); + } + Transform transform = goToolTip.transform.Find("FuncFrame"); + transform.gameObject.SetActive(false); + } + + protected void SetupToolTip(GameObject goToolTip, XItem item, XItem compareItem, bool bMain) + { + bool flag = item == null; + if (!flag) + { + this.totalFrameHeight = base.uiBehaviour.m_TooltipBorder; + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + bool flag2 = itemConf != null; + if (flag2) + { + this.SetupTopFrame(goToolTip, itemConf, bMain, item, compareItem); + } + this.SetAllAttrFrames(goToolTip, item as XAttrItem, compareItem as XAttrItem, bMain); + this.bHadJade = false; + this.SetupOtherFrame(goToolTip, item, compareItem, bMain); + this.SetupToolTipButtons(goToolTip, item, bMain); + IXUIScrollView ixuiscrollView = goToolTip.transform.Find("ScrollPanel").GetComponent("XUIScrollView") as IXUIScrollView; + ixuiscrollView.ResetPosition(); + IXUISprite ixuisprite = goToolTip.GetComponent("XUISprite") as IXUISprite; + bool flag3 = bMain && !XSingleton.singleton.bEquiped; + if (flag3) + { + ixuisprite.SetSprite("kuang_09"); + } + else + { + ixuisprite.SetSprite("kuang_02"); + } + bool flag4 = !this.bHadJade; + if (flag4) + { + ixuisprite.spriteHeight = (int)(Math.Min(this.totalFrameHeight, base.uiBehaviour.m_MaxTooltipHeight) + base.uiBehaviour.m_TooltipBorder); + } + else + { + ixuisprite.spriteHeight = (int)(Math.Min(this.totalFrameHeight, base.uiBehaviour.m_MaxTooltipHeightWithJade) + base.uiBehaviour.m_TooltipBorder); + } + Transform transform = goToolTip.transform.Find("FuncFrame"); + Vector3 localPosition = transform.localPosition; + transform.localPosition = new Vector3(localPosition.x, (float)(-(float)ixuisprite.spriteHeight), localPosition.z); + float x = goToolTip.transform.localPosition.x; + } + } + + protected virtual void SetupTopFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + bool flag = data == null; + if (!flag) + { + bool flag2 = data.Profession > 0; + if (flag2) + { + this.profession = (uint)data.Profession; + } + this._SetupName(goToolTip, data, instanceData); + this._SetupQuality(goToolTip, data, bMain); + this._SetupBinding(goToolTip, data, bMain, instanceData); + this._SetupIcon(goToolTip, data, instanceData); + this.totalFrameHeight += (float)base.uiBehaviour.m_TopFrameHeight; + this.totalFrameHeight += base.uiBehaviour.m_ScrollPanelSoftnessOffset; + this._SetupPPTFrame(goToolTip, data, bMain, instanceData, compareData); + } + } + + protected virtual void _SetupPPTFrame(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null, XItem compareData = null) + { + Transform transform = goToolTip.transform.Find("TopFrame/PPTFrame"); + bool flag = transform == null; + if (!flag) + { + bool flag2 = instanceData == null; + if (flag2) + { + transform.gameObject.SetActive(false); + } + else + { + transform.gameObject.SetActive(true); + Transform transform2 = transform.Find("Good"); + Transform transform3 = transform.Find("Bad"); + Transform transform4 = transform.Find("Normal"); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(false); + string empty = string.Empty; + string empty2 = string.Empty; + int num = this._GetPPT(instanceData, true, ref empty); + int num2 = this._GetPPT(compareData, false, ref empty2); + bool flag3 = num < 0 || num2 < 0 || num == num2; + Transform transform5; + if (flag3) + { + transform5 = transform4; + } + else + { + bool flag4 = num > num2; + if (flag4) + { + transform5 = transform2; + } + else + { + transform5 = transform3; + } + } + transform5.gameObject.SetActive(true); + IXUILabel ixuilabel = transform5.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(empty); + IXUILabel ixuilabel2 = transform5.Find("Title").GetComponent("XUILabel") as IXUILabel; + XAttributes xattributes = bMain ? XSingleton.singleton.mainAttributes : XSingleton.singleton.compareAttributes; + bool flag5 = xattributes == null; + if (flag5) + { + xattributes = XSingleton.singleton.XPlayerData; + } + ProfessionTable.RowData byProfID = XSingleton.singleton.RoleInfo.GetByProfID(xattributes.TypeID); + string text = (byProfID == null) ? string.Empty : XStringDefineProxy.GetString("ZizhiType" + byProfID.AttackType); + bool flag6 = text != null; + if (flag6) + { + ixuilabel2.SetText(text); + } + } + } + } + + protected virtual int _GetPPT(XItem item, bool bMain, ref string valueText) + { + return -1; + } + + protected XItemChangeAttr FindCorrespondingAttr(IEnumerable attrs, uint attrID) + { + foreach (XItemChangeAttr xitemChangeAttr in attrs) + { + bool flag = xitemChangeAttr.AttrID == attrID; + if (flag) + { + return xitemChangeAttr; + } + } + return default(XItemChangeAttr); + } + + protected virtual void SetAllAttrFrames(GameObject goToolTip, XAttrItem item, XAttrItem compareItem, bool bMain) + { + bool flag = item == null || item.changeAttr.Count == 0; + if (!flag) + { + GameObject gameObject = goToolTip.transform.Find("ScrollPanel").gameObject; + this.SetBasicAttrFrame(gameObject, item, compareItem, bMain); + } + } + + protected void SetBasicAttrFrame(GameObject scrollPanel, XAttrItem item, XAttrItem compareItem, bool bMain) + { + GameObject gameObject = base.uiBehaviour.m_AttrFramePool.FetchGameObject(false); + gameObject.transform.parent = scrollPanel.transform; + AttrFrameParam attrFrameParam = new AttrFrameParam(); + attrFrameParam.Title = XStringDefineProxy.GetString("TOOLTIP_BASIC_ATTR"); + for (int i = 0; i < item.changeAttr.Count; i++) + { + AttrParam item2 = default(AttrParam); + AttrParam.ResetSb(); + AttrParam.Append(item.changeAttr[i], "", ""); + item2.SetTextFromSb(); + item2.SetValueFromSb(); + attrFrameParam.AttrList.Add(item2); + } + this.AppendFrame(gameObject, (float)this.SetupAttrFrame(gameObject, attrFrameParam, bMain), new Vector3?(base.uiBehaviour.m_AttrFramePool.TplPos)); + this.SetAttrOther(scrollPanel.transform, attrFrameParam); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + } + + public void AppendFrame(GameObject go, float frameHeight, Vector3? tplPos = null) + { + Vector3 vector = tplPos ?? go.transform.localPosition; + go.transform.localPosition = new Vector3(vector.x, -this.totalFrameHeight, vector.z); + this.totalFrameHeight += frameHeight; + } + + protected virtual int SetupAttrFrame(GameObject attrFrame, AttrFrameParam param, bool bMain) + { + int num = 0; + IXUILabel ixuilabel = attrFrame.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + bool flag = !string.IsNullOrEmpty(param.Title); + int num2; + if (flag) + { + ixuilabel.SetText(param.Title); + ixuilabel.SetVisible(true); + num2 = (int)ixuilabel.gameObject.transform.localPosition.y - ixuilabel.spriteHeight; + } + else + { + ixuilabel.SetVisible(false); + num2 = (int)ixuilabel.gameObject.transform.localPosition.y; + } + Transform transform = attrFrame.transform.Find("EquipRz"); + bool flag2 = transform != null; + if (flag2) + { + transform.gameObject.SetActive(false); + } + transform = attrFrame.transform.Find("RzLabel"); + bool flag3 = transform != null; + if (flag3) + { + transform.gameObject.SetActive(false); + } + for (int i = 0; i < param.AttrList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_AttrPool.FetchGameObject(false); + gameObject.transform.parent = attrFrame.transform; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_AttrPool.TplPos.x, (float)(num2 + num), base.uiBehaviour.m_AttrPool.TplPos.z); + gameObject.transform.localScale = Vector3.one; + Transform transform2 = gameObject.transform.Find("Icon"); + bool flag4 = transform2 != null; + if (flag4) + { + bool isShowTipsIcon = param.AttrList[i].IsShowTipsIcon; + if (isShowTipsIcon) + { + transform2.gameObject.SetActive(true); + IXUISprite ixuisprite = transform2.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(param.AttrList[i].IconName); + } + else + { + transform2.gameObject.SetActive(false); + } + } + IXUILabel ixuilabel2 = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(param.AttrList[i].strText); + ixuilabel3.SetText(param.AttrList[i].strValue); + ixuilabel3.SetVisible(false); + ixuilabel3.SetVisible(true); + num -= base.uiBehaviour.m_AttrPool.TplHeight; + } + IXUISprite ixuisprite2 = attrFrame.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteHeight = -num - num2; + return ixuisprite2.spriteHeight; + } + + protected virtual void SetAttrOther(Transform ParentTra, AttrFrameParam param) + { + } + + protected virtual void SetupOtherFrame(GameObject goToolTip, XItem item, XItem compareItem, bool bMain) + { + } + + protected virtual void SetupOtherFrame(GameObject goToolTip, ItemList.RowData data) + { + } + + protected virtual void SetupToolTipButtons(GameObject goToolTip, XItem item, bool bMain) + { + for (int i = 0; i < base.uiBehaviour.m_ButtonsVisible.Length; i++) + { + base.uiBehaviour.m_ButtonsVisible[i] = false; + } + bool flag = this.bShowButtons && bMain; + if (flag) + { + goToolTip.transform.Find("FuncFrame").gameObject.SetActive(true); + Transform transform = goToolTip.transform.Find("FuncFrame/Button1"); + bool flag2 = transform != null; + if (flag2) + { + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButton1Clicked)); + } + transform = goToolTip.transform.Find("FuncFrame/Button2"); + bool flag3 = transform != null; + if (flag3) + { + IXUIButton ixuibutton2 = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButton2Clicked)); + } + transform = goToolTip.transform.Find("FuncFrame/Button3"); + bool flag4 = transform != null; + if (flag4) + { + IXUIButton ixuibutton3 = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButton3Clicked)); + } + transform = goToolTip.transform.Find("FuncFrame/Button4"); + bool flag5 = transform != null; + if (flag5) + { + IXUIButton ixuibutton4 = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton4.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButton4Clicked)); + } + transform = goToolTip.transform.Find("FuncFrame/Button5"); + bool flag6 = transform != null; + if (flag6) + { + IXUIButton ixuibutton5 = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton5.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButton5Clicked)); + } + transform = goToolTip.transform.Find("FuncFrame/Button6"); + bool flag7 = transform != null; + if (flag7) + { + IXUIButton ixuibutton6 = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton6.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButton6Clicked)); + } + transform = goToolTip.transform.Find("FuncFrame/Button7"); + bool flag8 = transform != null; + if (flag8) + { + IXUIButton ixuibutton7 = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton7.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnButton7Clicked)); + } + } + else + { + goToolTip.transform.Find("FuncFrame").gameObject.SetActive(false); + } + } + + protected Vector3 _GetNextButtonPos() + { + Vector3[] buttonsOriginPos = base.uiBehaviour.m_ButtonsOriginPos; + int activeButtonCount = this._ActiveButtonCount; + this._ActiveButtonCount = activeButtonCount + 1; + return buttonsOriginPos[activeButtonCount]; + } + + public void SetupButtons(GameObject goToolTip, int group, bool bMain, int selectedIndex = -1, List redPointIndex = null) + { + this._ActiveButtonCount = 0; + bool flag = group >= TooltipDlgBehaviour.MAX_GROUP_COUNT; + if (flag) + { + XSingleton.singleton.AddErrorLog("Group id out of range: ", group.ToString(), null, null, null, null); + } + else + { + int num = bMain ? 1 : -1; + for (int i = 0; i < TooltipDlgBehaviour.MAX_BUTTON_COUNT; i++) + { + Transform transform = goToolTip.transform.Find("FuncFrame/Button" + (i + 1)); + bool flag2 = transform != null; + if (flag2) + { + bool flag3 = base.uiBehaviour.m_ButtonsVisible[i]; + if (flag3) + { + transform.gameObject.SetActive(true); + IXUILabel ixuilabel = transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(base.uiBehaviour.m_ButtonsText[group, i]); + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)group); + Vector3 vector = this._GetNextButtonPos(); + transform.localPosition = new Vector3(Mathf.Abs(vector.x) * (float)num, vector.y, vector.z); + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + bool flag4 = ixuisprite != null; + if (flag4) + { + bool flag5 = redPointIndex != null && redPointIndex.Count != 0 && redPointIndex.Contains(i); + if (flag5) + { + ixuisprite.gameObject.transform.Find("RedPoint").gameObject.SetActive(true); + } + else + { + ixuisprite.gameObject.transform.Find("RedPoint").gameObject.SetActive(false); + } + } + } + else + { + transform.gameObject.SetActive(false); + } + } + } + } + } + + protected void _SetupButtonVisiability(GameObject goToolTip, int group, XItem item) + { + this.m_TempList.Clear(); + for (int i = 0; i < TooltipDlgBehaviour.MAX_BUTTON_COUNT; i++) + { + TooltipButtonOperateBase tooltipButtonOperateBase = this.m_OperateList[group, i]; + bool flag = tooltipButtonOperateBase != null; + if (flag) + { + this.m_uiBehaviour.m_ButtonsVisible[i] = tooltipButtonOperateBase.IsButtonVisible(item); + this.m_uiBehaviour.m_ButtonsText[group, i] = tooltipButtonOperateBase.GetButtonText(); + bool flag2 = tooltipButtonOperateBase.HasRedPoint(item); + if (flag2) + { + this.m_TempList.Add(i); + } + } + } + this.SetupButtons(goToolTip, group, true, -1, this.m_TempList); + } + + protected virtual bool OnButton7Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 6] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 6].OnButtonClick(this.mainItemUID, this.compareItemUID); + } + this.HideToolTip(true); + return true; + } + + protected virtual bool OnButton6Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 5] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 5].OnButtonClick(this.mainItemUID, this.compareItemUID); + } + this.HideToolTip(true); + return true; + } + + protected virtual bool OnButton5Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 4] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 4].OnButtonClick(this.mainItemUID, this.compareItemUID); + } + this.HideToolTip(true); + return true; + } + + protected virtual bool OnButton4Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 3] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 3].OnButtonClick(this.mainItemUID, this.compareItemUID); + } + this.HideToolTip(true); + return true; + } + + protected virtual bool OnButton3Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 2] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 2].OnButtonClick(this.mainItemUID, this.compareItemUID); + } + this.HideToolTip(true); + return true; + } + + protected virtual bool OnButton2Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 1] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 1].OnButtonClick(this.mainItemUID, this.compareItemUID); + } + this.HideToolTip(true); + return true; + } + + protected virtual bool OnButton1Clicked(IXUIButton button) + { + this._bButtonClickedThisFrame = true; + bool flag = this.m_OperateList[(int)button.ID, 0] != null; + if (flag) + { + this.m_OperateList[(int)button.ID, 0].OnButtonClick(this.mainItemUID, this.compareItemUID); + } + this.HideToolTip(true); + return true; + } + + protected void _SetTopFrameLabel(GameObject goToolTip, int index, string key, string value) + { + IXUILabel ixuilabel = goToolTip.transform.Find("TopFrame/Text" + index.ToString()).GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = ixuilabel.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(value); + ixuilabel2.SetText(key); + } + + protected void _SetupQuality(GameObject goToolTip, ItemList.RowData data, bool bMain) + { + GameObject gameObject = goToolTip.transform.Find("TopFrame/Quality/MainFrame").gameObject; + GameObject gameObject2 = goToolTip.transform.Find("TopFrame/Quality/CompareFrame").gameObject; + bool flag = bMain && !XSingleton.singleton.bEquiped; + gameObject.SetActive(flag); + gameObject2.SetActive(!flag); + IXUISprite ixuisprite = goToolTip.transform.Find("TopFrame/Quality").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetItemQualityIcon((int)data.ItemQuality); + } + + protected void _SetupBinding(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData = null) + { + Transform transform = goToolTip.transform.Find("TopFrame/Binding/Yes"); + Transform transform2 = goToolTip.transform.Find("TopFrame/Binding/No"); + Transform transform3 = goToolTip.transform.Find("TopFrame/Binding/Blocking"); + bool flag = transform3 != null; + if (flag) + { + if (bMain) + { + this.blockTime = (transform3.GetComponent("XUILabel") as IXUILabel); + } + else + { + this.compareBlockTime = (transform3.GetComponent("XUILabel") as IXUILabel); + } + } + bool flag2 = XSingleton.singleton.bBinded; + double num = 0.0; + bool flag3 = instanceData != null; + if (flag3) + { + num = instanceData.blocking; + flag2 = instanceData.bBinding; + } + bool flag4 = this.blockTime != null && bMain; + if (flag4) + { + this.blockTime.SetText((!flag2 && num > 0.0) ? XStringDefineProxy.GetString("AUCTION_BLOCKING", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)instanceData.blocking, 4) + }) : string.Empty); + } + bool flag5 = this.compareBlockTime != null && !bMain; + if (flag5) + { + this.compareBlockTime.SetText((!flag2 && num > 0.0) ? XStringDefineProxy.GetString("AUCTION_BLOCKING", new object[] + { + XSingleton.singleton.TimeDuarationFormatString((int)instanceData.blocking, 4) + }) : string.Empty); + } + bool flag6 = transform != null; + if (flag6) + { + transform.gameObject.SetActive(flag2); + } + bool flag7 = transform2 != null; + if (flag7) + { + transform2.gameObject.SetActive(!flag2); + } + } + + protected void _SetupIcon(GameObject goToolTip, ItemList.RowData data, XItem instanceData) + { + XItemDrawerMgr.Param.Profession = this.profession; + bool flag = instanceData == null; + if (flag) + { + XSingleton.singleton.normalItemDrawer.DrawItem(goToolTip.transform.Find("TopFrame/ItemTpl").gameObject, data, 0, false); + } + else + { + XSingleton.singleton.DrawItem(goToolTip.transform.Find("TopFrame/ItemTpl").gameObject, instanceData); + } + } + + protected void _SetupLevel(GameObject goToolTip, ItemList.RowData data, int index) + { + this._SetTopFrameLabel(goToolTip, index, XStringDefineProxy.GetString("ToolTipText_Level"), ((long)data.ReqLevel > (long)((ulong)XSingleton.singleton.XPlayerData.Level)) ? ("[ff0000]" + data.ReqLevel.ToString()) : data.ReqLevel.ToString()); + } + + protected void _SetupProf(GameObject goToolTip, ItemList.RowData data, bool bMain, XItem instanceData, int index) + { + this._SetTopFrameLabel(goToolTip, index, XStringDefineProxy.GetString("ToolTipText_Prof"), this._GetProf(data, bMain, instanceData)); + } + + protected void _SetupType(GameObject goToolTip, ItemList.RowData data, int index) + { + this._SetTopFrameLabel(goToolTip, index, XStringDefineProxy.GetString("ToolTipText_Type"), XSingleton.singleton.GetItemTypeStr((int)data.ItemType)); + } + + protected void _SetupName(GameObject goToolTip, ItemList.RowData data, XItem instanceData = null) + { + IXUILabel ixuilabel = goToolTip.transform.Find("TopFrame/Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetEquipName(data, instanceData, this.profession)); + ixuilabel.SetColor(XSingleton.singleton.GetItemQualityColor((int)data.ItemQuality)); + } + + protected string _GetProf(ItemList.RowData data, bool bMain, XItem instanceData) + { + bool flag = XBagDocument.IsProfMatched((uint)data.Profession); + string result; + if (flag) + { + result = XSingleton.singleton.GetProfName((int)data.Profession); + } + else + { + result = "[ff0000]" + XSingleton.singleton.GetProfName((int)data.Profession); + } + return result; + } + + public static Rect GetValidPos(int width, int height) + { + Rect result = default(Rect); + result.Set((float)(-(float)(XSingleton.singleton.Base_UI_Width - width) / 2), (float)(-(float)XSingleton.singleton.Base_UI_Height / 2 + height), (float)(XSingleton.singleton.Base_UI_Width - width), (float)(XSingleton.singleton.Base_UI_Height - height)); + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs.meta new file mode 100644 index 00000000..e00c15ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TooltipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94ba52b1d45763440820e9785776261a +timeCreated: 1611404156 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TooltipDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/TooltipDlgBehaviour.cs new file mode 100644 index 00000000..7d2270c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TooltipDlgBehaviour.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class TooltipDlgBehaviour : DlgBehaviourBase + { + public XUIPool m_PanelPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_AttrFramePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Vector3 m_OriginPos; + + public Color m_OriginAttrNameColor; + + public Color m_OriginAttrValueColor; + + public GameObject m_Black; + + public IXUISprite m_TotalFrame; + + public IXUISprite m_ToolTipMain; + + public int m_TopFrameHeight; + + public float m_ScrollPanelSoftnessOffset; + + public float m_TooltipBorder; + + public float m_MaxTooltipHeight; + + public float m_MaxTooltipHeightWithJade; + + public Vector3[] m_ButtonsOriginPos = new Vector3[TooltipDlgBehaviour.MAX_BUTTON_COUNT]; + + public string[,] m_ButtonsText = new string[TooltipDlgBehaviour.MAX_GROUP_COUNT, TooltipDlgBehaviour.MAX_BUTTON_COUNT]; + + public bool[] m_ButtonsVisible = new bool[TooltipDlgBehaviour.MAX_BUTTON_COUNT]; + + public static readonly int MAX_BUTTON_COUNT = 7; + + public static readonly int MAX_GROUP_COUNT = 4; + + protected virtual void Awake() + { + Transform transform = base.transform.Find("Black"); + bool flag = transform != null; + if (flag) + { + this.m_Black = transform.gameObject; + } + GameObject gameObject = base.transform.Find("Bg/Bg").gameObject; + this.m_TotalFrame = (gameObject.GetComponent("XUISprite") as IXUISprite); + this.m_OriginPos = this.m_TotalFrame.gameObject.transform.localPosition; + transform = base.transform.Find("Bg/Bg/ToolTip/TopFrame"); + this.m_TooltipBorder = -transform.localPosition.y; + this.m_TopFrameHeight = (transform.GetComponent("XUISprite") as IXUISprite).spriteHeight; + transform = base.transform.Find("Bg/Bg/ToolTip/ScrollPanel/BasicAttr/Attr1"); + bool flag2 = transform != null; + if (flag2) + { + this.m_AttrPool.SetupPool(gameObject, transform.gameObject, 2u, false); + } + transform = base.transform.Find("Bg/Bg/ToolTip/ScrollPanel/BasicAttr"); + bool flag3 = transform != null; + if (flag3) + { + this.m_AttrFramePool.SetupPool(gameObject, transform.gameObject, 2u, false); + } + transform = base.transform.Find("Bg/Bg/ToolTip/ScrollPanel"); + IXUIPanel ixuipanel = transform.GetComponent("XUIPanel") as IXUIPanel; + IXUISprite ixuisprite = base.transform.Find("Bg/Bg/ToolTip").GetComponent("XUISprite") as IXUISprite; + this.m_ScrollPanelSoftnessOffset = ixuipanel.softness.y; + this.m_MaxTooltipHeightWithJade = (float)ixuisprite.spriteHeight - this.m_TooltipBorder; + this.m_MaxTooltipHeight = (float)(this.m_TopFrameHeight + (int)ixuipanel.GetBaseRect().w) + this.m_ScrollPanelSoftnessOffset + this.m_TooltipBorder; + transform = base.transform.Find("Bg/Bg/ToolTip/ScrollPanel/PlaceHolder"); + bool flag4 = transform != null; + if (flag4) + { + transform.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_TopFrameHeight) - this.m_ScrollPanelSoftnessOffset - this.m_TooltipBorder); + } + transform = base.transform.Find("Bg/Bg/ToolTip/FuncFrame/ButtonTpl"); + XUIPool xuipool = new XUIPool(XSingleton.singleton.m_uiTool); + xuipool.SetupPool(transform.parent.gameObject, transform.gameObject, (uint)TooltipDlgBehaviour.MAX_BUTTON_COUNT, false); + for (int i = 0; i < TooltipDlgBehaviour.MAX_BUTTON_COUNT; i++) + { + transform = xuipool.FetchGameObject(false).transform; + transform.name = "Button" + (i + 1); + transform.localPosition = new Vector3(xuipool.TplPos.x, xuipool.TplPos.y + (float)(xuipool.TplHeight * i)); + bool flag5 = transform != null; + if (flag5) + { + this.m_ButtonsOriginPos[i] = transform.localPosition; + } + this.m_ButtonsVisible[i] = false; + } + transform = base.transform.Find("Bg/Bg/ToolTip"); + this.m_ToolTipMain = (transform.gameObject.GetComponent("XUISprite") as IXUISprite); + this.m_PanelPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + bool flag6 = this.m_AttrPool._tpl != null; + if (flag6) + { + this.m_OriginAttrNameColor = (this.m_AttrPool._tpl.transform.Find("Text").GetComponent("XUILabel") as IXUILabel).GetColor(); + this.m_OriginAttrValueColor = (this.m_AttrPool._tpl.transform.Find("Value").GetComponent("XUILabel") as IXUILabel).GetColor(); + } + } + + public void DelayShow(IXUIDlg dlg) + { + base.StartCoroutine(this.InnerShow(dlg)); + } + + private IEnumerator InnerShow(IXUIDlg dlg) + { + IXUIPanel panel = base.gameObject.transform.Find("Bg").gameObject.GetComponent("XUIPanel") as IXUIPanel; + panel.SetAlpha(0f); + yield return null; + panel.SetAlpha(1f); + yield break; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TooltipDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TooltipDlgBehaviour.cs.meta new file mode 100644 index 00000000..2d8fb272 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TooltipDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc4bcb341579e2347933f4f69157670b +timeCreated: 1611404934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/TooltipParam.cs b/Client/Assets/Scripts/XMainClient/UI/TooltipParam.cs new file mode 100644 index 00000000..4c694f17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TooltipParam.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class TooltipParam : XSingleton + { + public XBodyBag BodyBag = null; + + public List FashionOnBody; + + public bool bEquiped = false; + + public bool bBinded = false; + + public bool bShowPutInBtn = false; + + public bool bShowTakeOutBtn = false; + + public XAttributes mainAttributes = null; + + public XAttributes compareAttributes = null; + + public void Reset() + { + this.BodyBag = null; + this.bEquiped = false; + this.bBinded = false; + this.bShowPutInBtn = false; + this.bShowTakeOutBtn = false; + this.mainAttributes = null; + this.compareAttributes = null; + this.FashionOnBody = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/TooltipParam.cs.meta b/Client/Assets/Scripts/XMainClient/UI/TooltipParam.cs.meta new file mode 100644 index 00000000..5ccfbd73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/TooltipParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a87f1f4569b501541a9bc58ed4fb7e7c +timeCreated: 1611404296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon.meta b/Client/Assets/Scripts/XMainClient/UI/UICommon.meta new file mode 100644 index 00000000..da4e5ced --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: f26ddce421d634246b8ab19a778db02e +folderAsset: yes +timeCreated: 1611402943 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBase.cs b/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBase.cs new file mode 100644 index 00000000..234b0f2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBase.cs @@ -0,0 +1,750 @@ +using System; +using UILib; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI.UICommon +{ + public abstract class DlgBase : IXUIDlg, IDlgHandlerMgr where TDlgClass : IXUIDlg, new() where TUIBehaviour : DlgBehaviourBase + { + public static TDlgClass singleton + { + get + { + bool flag = DlgBase.s_instance == null; + if (flag) + { + object obj = DlgBase.s_objLock; + lock (obj) + { + bool flag2 = DlgBase.s_instance == null; + if (flag2) + { + DlgBase.s_instance = Activator.CreateInstance(); + } + } + } + return DlgBase.s_instance; + } + } + + public IXUIBehaviour uiBehaviourInterface + { + get + { + return this.m_uiBehaviour; + } + } + + public TUIBehaviour uiBehaviour + { + get + { + return this.m_uiBehaviour; + } + } + + public virtual string fileName + { + get + { + return ""; + } + } + + public string luaFileName + { + get + { + bool flag = this.fileName.Length > 1 && this.fileName.Contains("/"); + string result; + if (flag) + { + result = this.fileName.Substring(this.fileName.LastIndexOf('/') + 1); + } + else + { + result = this.fileName; + } + return result; + } + } + + public virtual int layer + { + get + { + return 2; + } + } + + public virtual int group + { + get + { + return 0; + } + } + + public virtual bool exclusive + { + get + { + return false; + } + } + + public virtual bool autoload + { + get + { + return false; + } + } + + public virtual bool isHideChat + { + get + { + return true; + } + } + + public virtual bool hideMainMenu + { + get + { + return false; + } + } + + public virtual bool pushstack + { + get + { + return false; + } + } + + public virtual bool isMainUI + { + get + { + return false; + } + } + + public virtual bool isHideTutorial + { + get + { + return false; + } + } + + public virtual int sysid + { + get + { + return 0; + } + } + + public virtual bool fullscreenui + { + get + { + return false; + } + } + + public bool Prepared + { + get + { + return null != this.m_uiBehaviour; + } + } + + public virtual bool isPopup + { + get + { + return false; + } + } + + public virtual bool needOnTop + { + get + { + return false; + } + } + + public DlgHandlerMgr HandlerMgr + { + get + { + return this.m_DlgHandlerMgr; + } + } + + private LoadUIFinishedEventHandler _loadUICb = null; + + protected int m_dummPool = -1; + + private IXNGUICallback panelCB = null; + + protected TUIBehaviour m_uiBehaviour = default(TUIBehaviour); + + private static TDlgClass s_instance = default(TDlgClass); + + private static object s_objLock = new object(); + + private bool m_bVisible = false; + + protected bool m_bLoaded = false; + + private float m_fDepthZ = 0f; + + private bool m_bBindedReverse = false; + + private Transform m_DlgController = null; + + private bool m_bCacheVisible = false; + + private DlgBase.OnAnimationOver m_animationOver; + + private IXUIDlg m_RelatedDlg; + + private DlgHandlerMgr m_DlgHandlerMgr = new DlgHandlerMgr(); + + public delegate void OnAnimationOver(); + + public DlgBase() + { + this._loadUICb = new LoadUIFinishedEventHandler(this.OnLoadUIFinishedEventHandler); + } + + public virtual void OnUpdate() + { + this.HandlerMgr.OnUpdate(); + } + + public virtual void OnPostUpdate() + { + } + + public void SetVisiblePure(bool bVisible) + { + bool flag = !this.m_bLoaded && this.autoload; + if (flag) + { + this.Load(); + } + else + { + bool flag2 = !this.m_bLoaded && !this.autoload; + if (flag2) + { + return; + } + } + this.uiBehaviour.SetVisible(bVisible); + this.m_bVisible = bVisible; + this.OnSetVisiblePure(bVisible); + bool flag3 = this.m_RelatedDlg != null; + if (flag3) + { + this.m_RelatedDlg.SetRelatedVisible(this.m_bVisible); + } + } + + public virtual void SetVisible(bool bIsVisible, bool bEnableAuto = true) + { + bool bLoaded = this.m_bLoaded; + if (!bLoaded) + { + bool flag = this.autoload && bEnableAuto; + if (!flag) + { + return; + } + this.Load(); + } + bool flag2 = bIsVisible && !this._CanShow(); + if (!flag2) + { + bool prepared = this.Prepared; + if (prepared) + { + bool flag3 = this.m_bVisible != bIsVisible; + if (flag3) + { + this.uiBehaviour.SetVisible(bIsVisible); + this.m_bVisible = bIsVisible; + if (bIsVisible) + { + XSingleton.singleton.OnDlgShow(DlgBase.s_instance); + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + bool flag4 = !xluaEngine.hotfixMgr.TryFixRefresh(HotfixMode.BEFORE, this.luaFileName, this.uiBehaviour.gameObject); + if (flag4) + { + this.OnShow(); + xluaEngine.hotfixMgr.TryFixRefresh(HotfixMode.AFTER, this.luaFileName, this.uiBehaviour.gameObject); + } + bool flag5 = this.fullscreenui && XSingleton.singleton.GameCamera != null && XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag5) + { + XSingleton.singleton.GameCamera.UnityCamera.enabled = false; + } + } + else + { + this.OnHide(); + XSingleton.singleton.OnDlgHide(DlgBase.s_instance); + ILuaEngine xluaEngine2 = XSingleton.singleton.XLuaEngine; + xluaEngine2.hotfixMgr.TryFixRefresh(HotfixMode.HIDE, this.luaFileName, this.uiBehaviour.gameObject); + bool flag6 = XSingleton.singleton.GetFullScreenUICount() == 0 && XSingleton.singleton.GameCamera != null && XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag6) + { + XSingleton.singleton.GameCamera.UnityCamera.enabled = true; + } + } + bool flag7 = this.m_RelatedDlg != null; + if (flag7) + { + this.m_RelatedDlg.SetVisible(this.m_bVisible, true); + } + } + } + } + } + + public virtual void SetVisibleWithAnimation(bool bVisible, DlgBase.OnAnimationOver AnimationOverDelegate) + { + bool flag = !this.m_bLoaded; + if (flag) + { + this.Load(); + } + bool flag2 = bVisible && !this._CanShow(); + if (!flag2) + { + int fullScreenUICount = XSingleton.singleton.GetFullScreenUICount(); + bool flag3 = (bVisible && fullScreenUICount > 0) || (!bVisible && ((this.fullscreenui && fullScreenUICount > 1) || (!this.fullscreenui && fullScreenUICount > 0))); + if (flag3) + { + this.SetVisible(bVisible, true); + bool flag4 = AnimationOverDelegate != null; + if (flag4) + { + AnimationOverDelegate(); + } + } + else + { + this.SetVisible(bVisible, true); + this.m_bCacheVisible = bVisible; + this.m_animationOver = AnimationOverDelegate; + bool flag5 = AnimationOverDelegate != null; + if (flag5) + { + AnimationOverDelegate(); + } + } + } + } + + protected void OnShowAnimationFinish(IXUITweenTool tween) + { + bool fullscreenui = this.fullscreenui; + if (fullscreenui) + { + XSingleton.singleton.GameCamera.UnityCamera.enabled = false; + } + } + + protected void OnCloseAnimationFinish(IXUITweenTool tween) + { + this.SetVisible(false, true); + bool flag = this.m_animationOver != null; + if (flag) + { + this.m_animationOver(); + } + } + + protected virtual void OnShow() + { + } + + protected virtual void OnHide() + { + } + + protected virtual void OnLoad() + { + } + + protected virtual void OnUnload() + { + this.UnRegisterEvent(); + } + + public bool IsVisible() + { + bool bLoaded = this.m_bLoaded; + return bLoaded && this.uiBehaviour.IsVisible(); + } + + public void SetDepthZ(int nDepthZ) + { + this.m_fDepthZ = (float)(nDepthZ * 10); + bool prepared = this.Prepared; + if (prepared) + { + Vector3 localPosition = this.uiBehaviour.transform.localPosition; + localPosition.z = this.m_fDepthZ; + this.uiBehaviour.transform.localPosition = localPosition; + } + } + + public virtual void Reset() + { + } + + public virtual void StackRefresh() + { + bool flag = this.HandlerMgr != null; + if (flag) + { + this.HandlerMgr.StackRefresh(); + } + } + + public virtual void LeaveStackTop() + { + bool flag = this.HandlerMgr != null; + if (flag) + { + this.HandlerMgr.LeaveStackTop(); + } + } + + protected virtual void OnSetVisiblePure(bool bShow) + { + } + + protected virtual void Init() + { + } + + private void InnerInit() + { + this.m_uiBehaviour.Init(); + Vector3 localPosition = this.uiBehaviour.transform.localPosition; + localPosition.z = this.m_fDepthZ; + this.uiBehaviour.transform.localPosition = localPosition; + this.m_DlgController = this.uiBehaviour.transform.Find("DlgController"); + } + + public void Load() + { + bool flag = !this.m_bLoaded; + if (flag) + { + this.m_bLoaded = true; + XSingleton.singleton.LoadUI(this.fileName, this._loadUICb); + XSingleton.singleton.AddDlg(DlgBase.s_instance); + this.OnLoad(); + } + } + + public bool IsLoaded() + { + return this.m_bLoaded; + } + + public void UnLoad(bool bTransfer = false) + { + bool bLoaded = this.m_bLoaded; + if (bLoaded) + { + if (bTransfer) + { + this.SetVisible(false, false); + } + else + { + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.TryFixRefresh(HotfixMode.UNLOAD, this.luaFileName, this.uiBehaviour.gameObject); + this.OnUnload(); + this.HandlerMgr.Unload(); + XSingleton.singleton.RemoveDlg(DlgBase.s_instance); + XSingleton.singleton.UnSafeDestroy(this.uiBehaviour.gameObject, false, true); + this.m_uiBehaviour = default(TUIBehaviour); + this.m_uiBehaviour = default(TUIBehaviour); + this.m_bLoaded = false; + bool flag = !XSingleton.singleton.switchScene; + if (flag) + { + bool flag2 = XSingleton.singleton.unloadUICount >= 10; + if (flag2) + { + Resources.UnloadUnusedAssets(); + XSingleton.singleton.unloadUICount = 0; + } + else + { + XSingleton.singleton.unloadUICount++; + } + } + } + } + } + + public void SetAlpha(float a) + { + IXUIPanel ixuipanel = this.uiBehaviour.gameObject.GetComponent("XUIPanel") as IXUIPanel; + bool flag = ixuipanel != null; + if (flag) + { + ixuipanel.SetAlpha(a); + } + } + + public float GetAlpha() + { + IXUIPanel ixuipanel = this.uiBehaviour.gameObject.GetComponent("XUIPanel") as IXUIPanel; + bool flag = ixuipanel != null; + float result; + if (flag) + { + result = ixuipanel.GetAlpha(); + } + else + { + result = 1f; + } + return result; + } + + public void RegCallBack() + { + this.panelCB = (this.uiBehaviour.gameObject.GetComponent("NGUIAssetCallBack") as IXNGUICallback); + bool flag = this.panelCB != null; + if (flag) + { + this.panelCB.RegisterClickEventHandler(new IXNGUIClickEventHandler(this.OnXNGUIClick)); + } + } + + public virtual void OnXNGUIClick(GameObject obj, string path) + { + XSingleton.singleton.AddLog(obj.name, " ", path, null, null, null, XDebugColor.XDebug_None); + } + + protected GameObject SetXUILable(string name, string content) + { + bool flag = this.uiBehaviour.transform == null; + GameObject result; + if (flag) + { + result = null; + } + else + { + bool flag2 = string.IsNullOrEmpty(content); + if (flag2) + { + content = string.Empty; + } + IXUILabel ixuilabel = this.uiBehaviour.transform.Find(name).GetComponent("XUILabel") as IXUILabel; + bool flag3 = ixuilabel == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("SetXUILable ", name, " ", content, null, null); + result = null; + } + else + { + ixuilabel.SetText(content); + result = ixuilabel.gameObject; + } + } + return result; + } + + private void OnLoadUIFinishedEventHandler(string location) + { + GameObject gameObject = XSingleton.singleton.CreateFromPrefab("UI/" + location, true, false) as GameObject; + bool flag = null != gameObject; + if (flag) + { + gameObject.transform.parent = XSingleton.singleton.UIRoot; + gameObject.transform.localPosition = new Vector3(0f, 0f, 0f); + gameObject.transform.localScale = new Vector3(1f, 1f, 1f); + this.m_uiBehaviour = gameObject.AddComponent(); + this.m_uiBehaviour.uiDlgInterface = this; + bool flag2 = !this.m_bBindedReverse; + if (flag2) + { + this.Init(); + this.InnerInit(); + this.RegisterEvent(); + this.RegCallBack(); + this.uiBehaviour.SetVisible(false); + this.m_bVisible = false; + } + } + } + + public bool BindReverse(IXUIBehaviour iXUIBehaviour) + { + TUIBehaviour tuibehaviour = iXUIBehaviour as TUIBehaviour; + bool flag = null == tuibehaviour; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_bLoaded = true; + this.m_uiBehaviour = tuibehaviour; + this.m_uiBehaviour.uiDlgInterface = this; + this.RegisterEvent(); + this.InnerInit(); + this.Init(); + this.m_bBindedReverse = true; + result = true; + } + return result; + } + + public virtual void RegisterEvent() + { + } + + protected virtual void UnRegisterEvent() + { + } + + public virtual void SetRelatedDlg(IXUIDlg dlg) + { + this.m_RelatedDlg = dlg; + } + + protected virtual void OnRelatedShow() + { + } + + protected virtual void OnRelatedHide() + { + } + + public void SetRelatedVisible(bool bVisible) + { + bool bLoaded = this.m_bLoaded; + if (bLoaded) + { + this.SetVisiblePure(bVisible); + if (bVisible) + { + this.OnRelatedShow(); + } + else + { + this.OnRelatedHide(); + } + } + } + + private bool _CanShow() + { + bool flag = this.isPopup && XSingleton.singleton.InTutorial; + bool result; + if (flag) + { + this.OnPopupBlocked(); + result = false; + } + else + { + result = true; + } + return result; + } + + protected virtual void OnPopupBlocked() + { + } + + public virtual int[] GetTitanBarItems() + { + return null; + } + + protected void Alloc3DAvatarPool(string user) + { + bool flag = this.m_dummPool < 0; + if (flag) + { + this.m_dummPool = XSingleton.singleton.AllocDummyPool(user, 1); + } + } + + protected void Return3DAvatarPool() + { + XSingleton.singleton.ReturnDummyPool(this.m_dummPool); + this.m_dummPool = -1; + } + + public static Transform FindChildRecursively(string childName) + { + TDlgClass singleton = DlgBase.singleton; + TUIBehaviour tuibehaviour = singleton.uiBehaviourInterface as TUIBehaviour; + bool flag = !tuibehaviour.IsVisible(); + Transform result; + if (flag) + { + result = null; + } + else + { + Transform transform = XSingleton.singleton.FindChildRecursively(tuibehaviour.transform, childName); + result = transform; + } + return result; + } + + public static Vector3 GetChildWorldPos(string childName) + { + TDlgClass singleton = DlgBase.singleton; + TUIBehaviour tuibehaviour = singleton.uiBehaviourInterface as TUIBehaviour; + bool flag = !tuibehaviour.IsVisible(); + Vector3 result; + if (flag) + { + result = Vector3.zero; + } + else + { + Transform transform = XSingleton.singleton.FindChildRecursively(tuibehaviour.transform, childName); + bool flag2 = transform != null; + if (flag2) + { + result = transform.position; + } + else + { + result = Vector3.zero; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBase.cs.meta new file mode 100644 index 00000000..a0c60016 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b88aeb92feab8b24eaca74836f7b7ce3 +timeCreated: 1611404405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBehaviourBase.cs b/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBehaviourBase.cs new file mode 100644 index 00000000..82af93d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBehaviourBase.cs @@ -0,0 +1,130 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI.UICommon +{ + public class DlgBehaviourBase : MonoBehaviour, IXUIBehaviour, IXUIObject + { + public IXUIObject parent + { + get + { + return null; + } + set + { + } + } + + public ulong ID + { + get + { + return this.m_id; + } + set + { + this.m_id = value; + } + } + + public bool Exculsive + { + get + { + return this.m_bExculsive; + } + set + { + this.m_bExculsive = value; + } + } + + public IXUIDlg uiDlgInterface + { + get + { + return this.m_uiDlgInterface; + } + set + { + this.m_uiDlgInterface = value; + } + } + + public IXUIObject[] uiChilds + { + get + { + return this.m_uiChilds; + } + } + + private IXUIDlg m_uiDlgInterface = null; + + private IXUIObject[] m_uiChilds = null; + + private ulong m_id; + + private bool m_bExculsive = false; + + public bool IsVisible() + { + return base.gameObject.activeInHierarchy; + } + + public void SetVisible(bool bVisible) + { + base.gameObject.SetActive(bVisible); + } + + public IXUIObject GetUIObject(string strName) + { + Transform transform = base.transform.Find(strName); + bool flag = null != transform; + IXUIObject result; + if (flag) + { + result = transform.GetComponent(); + } + else + { + result = null; + } + return result; + } + + public void OnPress() + { + this.OnFocus(); + } + + public void OnFocus() + { + } + + public virtual void Init() + { + IXUIObject[] componentsInChildren = base.GetComponentsInChildren(); + this.m_uiChilds = componentsInChildren; + for (int i = 0; i < this.m_uiChilds.Length; i++) + { + XUIObjectBase xuiobjectBase = this.m_uiChilds[i] as XUIObjectBase; + xuiobjectBase.Init(); + } + } + + public virtual void Highlight(bool bTrue) + { + } + + GameObject IXUIObject.gameObject + { + get + { + return base.gameObject; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBehaviourBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBehaviourBase.cs.meta new file mode 100644 index 00000000..e0064525 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/DlgBehaviourBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 093a7d627ed1d7245be463c2fa874487 +timeCreated: 1611403150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/TabHandleBase.cs b/Client/Assets/Scripts/XMainClient/UI/UICommon/TabHandleBase.cs new file mode 100644 index 00000000..9877b620 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/TabHandleBase.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; + +namespace XMainClient.UI.UICommon +{ + internal class TabHandleBase : DlgBase, IDlgHandlerMgr where T : IXUIDlg, new() where V : DlgBehaviourBase + { + private Dictionary m_handles = new Dictionary(); + + protected XSysDefine m_select; + + public virtual void RefreshData() + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handles.TryGetValue(this.m_select, out dlgHandlerBase) && dlgHandlerBase.IsVisible(); + if (flag) + { + dlgHandlerBase.RefreshData(); + } + } + + protected void SetHandleVisible(XSysDefine define, bool isVisible) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handles.TryGetValue(define, out dlgHandlerBase); + if (flag) + { + dlgHandlerBase.SetVisible(isVisible); + if (isVisible) + { + this.m_select = define; + } + } + } + + protected void RegisterHandler(XSysDefine define, GameObject g, bool show = false) where C : DlgHandlerBase, new() + { + bool flag = !this.m_handles.ContainsKey(define); + if (flag) + { + C c = default(C); + c = DlgHandlerBase.EnsureCreate(ref c, g, this, false); + this.m_handles.Add(define, c); + } + } + + protected void RemoveHandler(XSysDefine define) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handles.TryGetValue(define, out dlgHandlerBase); + if (flag) + { + DlgHandlerBase.EnsureUnload(ref dlgHandlerBase); + this.m_handles.Remove(define); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/TabHandleBase.cs.meta b/Client/Assets/Scripts/XMainClient/UI/UICommon/TabHandleBase.cs.meta new file mode 100644 index 00000000..fc6bb5f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/TabHandleBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4570d8459fc126439209e57f1539a48 +timeCreated: 1611404737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/UIManager.cs b/Client/Assets/Scripts/XMainClient/UI/UICommon/UIManager.cs new file mode 100644 index 00000000..0daba0f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/UIManager.cs @@ -0,0 +1,586 @@ +using System; +using System.Collections.Generic; +using System.Text; +using UILib; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI.UICommon +{ + internal class UIManager : XSingleton + { + public Transform UIRoot + { + get + { + return this.m_uiRoot; + } + set + { + this.m_uiRoot = value; + } + } + + private Dictionary m_dicDlgs = new Dictionary(); + + private Dictionary> m_dicUILayer = new Dictionary>(); + + private List m_iterDlgs = new List(); + + private Transform m_uiRoot = null; + + private Dictionary m_GroupDlg = new Dictionary(); + + private List m_ShowedDlg = new List(); + + private int m_TutorialClashUICount = 0; + + private List m_ToBeUnloadDlg = new List(); + + private XLFU m_LFU = new XLFU(5); + + private List m_CachedExculsiveUI = new List(); + + private Stack m_ShowUIStack = new Stack(); + + private List m_StoreUIList = new List(); + + private List m_AvatarStack = new List(); + + public int unloadUICount = 0; + + public void OnEnterScene() + { + this.m_LFU.Clear(); + this.m_ShowedDlg.Clear(); + this.m_TutorialClashUICount = 0; + this.m_CachedExculsiveUI.Clear(); + this.m_ShowUIStack.Clear(); + this.m_ToBeUnloadDlg.Clear(); + this.m_StoreUIList.Clear(); + this.unloadUICount = 0; + } + + public void OnLeaveScene(bool transfer) + { + for (int i = this.m_iterDlgs.Count - 1; i >= 0; i--) + { + bool flag = i < this.m_iterDlgs.Count && this.m_iterDlgs[i] != null; + if (flag) + { + this.m_iterDlgs[i].UnLoad(transfer); + } + } + this.m_AvatarStack.Clear(); + this.unloadUICount = 0; + } + + public override bool Init() + { + RuntimePlatform platform = Application.platform; + int @int; + if ((int)platform != 8) + { + if ((int)platform != 11) + { + @int = XSingleton.singleton.GetInt("UIUnloadLFUSizeDefault"); + } + else + { + @int = XSingleton.singleton.GetInt("UIUnloadLFUSizeAndroid"); + } + } + else + { + @int = XSingleton.singleton.GetInt("UIUnloadLFUSizeIPhone"); + } + this.m_LFU = new XLFU(@int); + return true; + } + + public override void Uninit() + { + } + + public void LoadUI(string strUIFile, LoadUIFinishedEventHandler eventHandler) + { + bool flag = eventHandler != null; + if (flag) + { + eventHandler(strUIFile); + } + } + + public void Update(float fDeltaT) + { + int i = 0; + while (i < this.m_iterDlgs.Count) + { + IXUIDlg ixuidlg = this.m_iterDlgs[i]; + bool flag = ixuidlg != null; + if (flag) + { + bool flag2 = ixuidlg.uiBehaviourInterface == null || ixuidlg.uiBehaviourInterface.gameObject == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("UI missing: ", ixuidlg.fileName, null, null, null, null); + } + else + { + bool activeInHierarchy = ixuidlg.uiBehaviourInterface.gameObject.activeInHierarchy; + if (activeInHierarchy) + { + ixuidlg.OnUpdate(); + } + } + } + IL_78: + i++; + continue; + goto IL_78; + } + } + + public void PostUpdate(float fDeltaT) + { + for (int i = 0; i < this.m_iterDlgs.Count; i++) + { + bool flag = this.m_iterDlgs[i] != null; + if (flag) + { + this.m_iterDlgs[i].OnPostUpdate(); + } + } + bool flag2 = this.m_ToBeUnloadDlg.Count > 0; + if (flag2) + { + for (int j = 0; j < this.m_ToBeUnloadDlg.Count; j++) + { + this.m_ToBeUnloadDlg[j].UnLoad(false); + } + this.m_ToBeUnloadDlg.Clear(); + } + } + + public bool IsUIShowed() + { + bool flag = this.m_ShowUIStack.Count > 0; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag2) + { + result = true; + } + else + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + result = true; + } + else + { + bool flag4 = XSingleton.singleton.XLuaEngine.luaUIManager.IsUIShowed(); + result = flag4; + } + } + } + return result; + } + + public bool IsHideTutorial() + { + return this.m_TutorialClashUICount != 0; + } + + public int GetUIStackCount() + { + return this.m_ShowUIStack.Count; + } + + public int GetFullScreenUICount() + { + int num = 0; + foreach (IXUIDlg ixuidlg in this.m_ShowUIStack) + { + bool fullscreenui = ixuidlg.fullscreenui; + if (fullscreenui) + { + num++; + } + } + return num; + } + + public void RemoveDlg(IXUIDlg dlg) + { + List list = null; + bool flag = this.m_dicUILayer.TryGetValue(dlg.layer, out list); + if (flag) + { + list.Remove(dlg); + } + bool flag2 = this.m_dicDlgs.ContainsKey(dlg.fileName); + if (flag2) + { + this.m_dicDlgs.Remove(dlg.fileName); + this.m_iterDlgs.Remove(dlg); + } + bool flag3 = this.m_GroupDlg.ContainsKey(dlg.group); + if (flag3) + { + this.m_GroupDlg.Remove(dlg.group); + } + bool flag4 = this.m_ShowedDlg.Contains(dlg); + if (flag4) + { + bool isHideTutorial = dlg.isHideTutorial; + if (isHideTutorial) + { + this.ChangeTutorialClashUI(false); + } + this.m_ShowedDlg.Remove(dlg); + } + this.m_LFU.Remove(dlg); + this.m_AvatarStack.Remove(dlg); + } + + public bool AddDlg(IXUIDlg dlg) + { + bool flag = this.m_dicDlgs.ContainsKey(dlg.fileName); + bool result; + if (flag) + { + XSingleton.singleton.AddLog("true == m_dicDlgs.ContainsKey(dlg.fileName): ", dlg.fileName, null, null, null, null, XDebugColor.XDebug_None); + result = false; + } + else + { + this.m_dicDlgs.Add(dlg.fileName, dlg); + this.m_iterDlgs.Add(dlg); + List list = null; + bool flag2 = this.m_dicUILayer.TryGetValue(dlg.layer, out list); + if (flag2) + { + list.Add(dlg); + } + else + { + list = new List(); + list.Add(dlg); + this.m_dicUILayer.Add(dlg.layer, list); + } + result = true; + } + return result; + } + + protected void CacheExclusiveUI() + { + this.m_CachedExculsiveUI.Clear(); + for (int i = 0; i < this.m_ShowedDlg.Count; i++) + { + this.m_CachedExculsiveUI.Add(this.m_ShowedDlg[i]); + } + } + + public void CloseAllUI() + { + this.ClearUIinStack(); + List list = new List(); + for (int i = 0; i < this.m_ShowedDlg.Count; i++) + { + bool flag = !this.m_ShowedDlg[i].isMainUI; + if (flag) + { + list.Add(this.m_ShowedDlg[i]); + } + } + for (int j = 0; j < list.Count; j++) + { + list[j].SetVisible(false, true); + } + } + + public void OnDlgShow(IXUIDlg dlg) + { + bool exclusive = dlg.exclusive; + if (exclusive) + { + this.CloseAllUI(); + this.CacheExclusiveUI(); + for (int i = 0; i < this.m_CachedExculsiveUI.Count; i++) + { + this.m_CachedExculsiveUI[i].uiBehaviourInterface.uiDlgInterface.SetVisiblePure(false); + } + this.ChangeTutorialClashUI(true); + } + else + { + bool flag = !this.m_ShowedDlg.Contains(dlg); + if (flag) + { + this.m_ShowedDlg.Add(dlg); + bool isHideTutorial = dlg.isHideTutorial; + if (isHideTutorial) + { + this.ChangeTutorialClashUI(true); + } + } + bool flag2 = !dlg.needOnTop; + if (flag2) + { + this.m_AvatarStack.Remove(dlg); + this.m_AvatarStack.Add(dlg); + } + else + { + Vector3 localPosition = dlg.uiBehaviourInterface.gameObject.transform.localPosition; + localPosition.z = 0f; + dlg.uiBehaviourInterface.gameObject.transform.localPosition = localPosition; + } + float num = 0f; + for (int j = this.m_AvatarStack.Count - 1; j >= 0; j--) + { + IXUIDlg ixuidlg = this.m_AvatarStack[j]; + Vector3 localPosition2 = ixuidlg.uiBehaviourInterface.gameObject.transform.localPosition; + localPosition2.z = num; + ixuidlg.uiBehaviourInterface.gameObject.transform.localPosition = localPosition2; + num += 800f; + } + } + bool pushstack = dlg.pushstack; + if (pushstack) + { + IXUIDlg ixuidlg2 = this.m_LFU.Add(dlg); + bool flag3 = ixuidlg2 != null; + if (flag3) + { + this.m_ToBeUnloadDlg.Add(ixuidlg2); + XSingleton.singleton.AddGreenLog("Auto Unload UI: ", ixuidlg2.fileName, " while opening ", dlg.fileName, null, null); + } + XSingleton.singleton.Cancel(); + } + bool hideMainMenu = dlg.hideMainMenu; + if (hideMainMenu) + { + this.UIBlurEffect(true); + } + bool pushstack2 = dlg.pushstack; + if (pushstack2) + { + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + bool flag4 = this.m_ShowUIStack.Count > 0; + if (flag4) + { + IXUIDlg ixuidlg3 = this.m_ShowUIStack.Peek(); + ixuidlg3.LeaveStackTop(); + ixuidlg3.uiBehaviourInterface.uiDlgInterface.SetVisiblePure(false); + Stack stack = new Stack(); + IXUIDlg ixuidlg4 = this.m_ShowUIStack.Pop(); + while (ixuidlg4 != dlg && this.m_ShowUIStack.Count > 0) + { + stack.Push(ixuidlg4); + ixuidlg4 = this.m_ShowUIStack.Pop(); + } + bool flag5 = ixuidlg4 != dlg; + if (flag5) + { + this.m_ShowUIStack.Push(ixuidlg4); + } + while (stack.Count > 0) + { + this.m_ShowUIStack.Push(stack.Pop()); + } + } + this.m_ShowUIStack.Push(dlg); + specificDocument.OnTopUIRefreshed(dlg); + } + DlgBase.singleton.TryCloseChat(dlg); + } + + public void UIBlurEffect(bool bOn) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.FakeShowSelf(!bOn); + } + } + + public void OnDlgHide(IXUIDlg dlg) + { + bool exclusive = dlg.exclusive; + if (exclusive) + { + for (int i = 0; i < this.m_CachedExculsiveUI.Count; i++) + { + this.m_CachedExculsiveUI[i].uiBehaviourInterface.uiDlgInterface.SetVisiblePure(true); + } + this.ChangeTutorialClashUI(false); + } + else + { + this.m_ShowedDlg.Remove(dlg); + bool isHideTutorial = dlg.isHideTutorial; + if (isHideTutorial) + { + this.ChangeTutorialClashUI(false); + } + this.m_AvatarStack.Remove(dlg); + } + bool pushstack = dlg.pushstack; + if (pushstack) + { + this.m_LFU.MarkCanPop(dlg, true); + } + bool hideMainMenu = dlg.hideMainMenu; + if (hideMainMenu) + { + this.UIBlurEffect(false); + } + bool flag = dlg.pushstack && this.m_ShowUIStack.Count > 0; + if (flag) + { + IXUIDlg ixuidlg = this.m_ShowUIStack.Peek(); + bool flag2 = ixuidlg != dlg; + if (flag2) + { + XSingleton.singleton.AddLog("Not hide top of ui stack!:", dlg.fileName, null, null, null, null, XDebugColor.XDebug_None); + Stack stack = new Stack(); + for (IXUIDlg ixuidlg2 = this.m_ShowUIStack.Pop(); ixuidlg2 != dlg; ixuidlg2 = this.m_ShowUIStack.Pop()) + { + stack.Push(ixuidlg2); + bool flag3 = this.m_ShowUIStack.Count == 0; + if (flag3) + { + StringBuilder sharedStringBuilder = XSingleton.singleton.GetSharedStringBuilder(); + sharedStringBuilder.Length = 0; + sharedStringBuilder.Append("Hide UI not in stack!!!! : ").Append(dlg.fileName); + sharedStringBuilder.Append("; UIs in stack: "); + foreach (IXUIDlg ixuidlg3 in stack) + { + sharedStringBuilder.Append(ixuidlg3.fileName).Append(" "); + } + XSingleton.singleton.AddErrorLog(sharedStringBuilder.ToString(), null, null, null, null, null); + break; + } + } + while (stack.Count > 0) + { + this.m_ShowUIStack.Push(stack.Pop()); + } + bool flag4 = this.m_ShowUIStack.Count > 0; + if (flag4) + { + IXUIDlg ixuidlg4 = this.m_ShowUIStack.Peek(); + bool hideMainMenu2 = ixuidlg4.hideMainMenu; + if (hideMainMenu2) + { + this.UIBlurEffect(true); + } + } + } + else + { + this.m_ShowUIStack.Pop(); + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + bool flag5 = this.m_ShowUIStack.Count > 0; + if (flag5) + { + IXUIDlg ixuidlg5 = this.m_ShowUIStack.Peek(); + ixuidlg5.uiBehaviourInterface.uiDlgInterface.SetVisiblePure(true); + ixuidlg5.StackRefresh(); + specificDocument.OnTopUIRefreshed(ixuidlg5); + bool hideMainMenu3 = ixuidlg5.hideMainMenu; + if (hideMainMenu3) + { + this.UIBlurEffect(true); + } + } + else + { + specificDocument.OnTopUIRefreshed(null); + } + } + } + } + + public List GetShowedUI() + { + return this.m_ShowedDlg; + } + + public void ClearUIinStack() + { + while (this.m_ShowUIStack.Count > 0) + { + IXUIDlg ixuidlg = this.m_ShowUIStack.Peek(); + bool flag = ixuidlg != null; + if (flag) + { + ixuidlg.SetVisiblePure(true); + ixuidlg.SetVisible(false, true); + } + } + this.UIBlurEffect(false); + } + + public void HideAllUIWithOutCall() + { + for (int i = 0; i < this.m_ShowedDlg.Count; i++) + { + bool flag = this.m_ShowedDlg[i] == DlgBase.singleton || this.m_ShowedDlg[i] == DlgBase.singleton || this.m_ShowedDlg[i] == DlgBase.singleton; + if (!flag) + { + bool flag2 = this.m_ShowedDlg[i].IsVisible(); + if (flag2) + { + this.m_StoreUIList.Add(this.m_ShowedDlg[i]); + this.m_ShowedDlg[i].SetVisiblePure(false); + } + } + } + } + + public void RestoreAllUIWithOutCall() + { + for (int i = 0; i < this.m_StoreUIList.Count; i++) + { + bool flag = this.m_StoreUIList[i] != null; + if (flag) + { + this.m_StoreUIList[i].SetVisiblePure(true); + } + } + this.m_StoreUIList.Clear(); + } + + private void ChangeTutorialClashUI(bool isAdd) + { + if (isAdd) + { + this.m_TutorialClashUICount++; + XSingleton.singleton.AddGreenLog("TutorialClashUICount++:" + this.m_TutorialClashUICount, null, null, null, null, null); + } + else + { + this.m_TutorialClashUICount--; + XSingleton.singleton.AddGreenLog("TutorialClashUICount--:" + this.m_TutorialClashUICount, null, null, null, null, null); + bool flag = this.m_TutorialClashUICount < 0; + if (flag) + { + this.m_TutorialClashUICount = 0; + XSingleton.singleton.AddErrorLog("TutorialClashUICount Error", null, null, null, null, null); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/UIManager.cs.meta b/Client/Assets/Scripts/XMainClient/UI/UICommon/UIManager.cs.meta new file mode 100644 index 00000000..479bd1c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/UIManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fd49ef83c692c14989b481f9d306410 +timeCreated: 1611403214 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/VirtualJoystick.cs b/Client/Assets/Scripts/XMainClient/UI/UICommon/VirtualJoystick.cs new file mode 100644 index 00000000..679b3431 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/VirtualJoystick.cs @@ -0,0 +1,139 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI.UICommon +{ + internal class VirtualJoystick : DlgBase + { + public override string fileName + { + get + { + return "Common/VirtualJoyStick"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private bool _bLogicalVisible; + + protected override void Init() + { + this.Hide(); + } + + protected void Hide() + { + bool flag = !base.IsLoaded(); + if (!flag) + { + base.uiBehaviour.m_Panel.gameObject.transform.localPosition = new Vector3((float)XGameUI._far_far_away, (float)XGameUI._far_far_away, 0f); + this._bLogicalVisible = false; + } + } + + public void ShowPanel(bool bShow, Vector2 screenPos = default(Vector2)) + { + Debug.Log("screenPos=" + screenPos); + if (bShow) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + Vector3 vector = XSingleton.singleton.UICamera.ScreenToWorldPoint(screenPos); + Vector3 vec = this.m_uiBehaviour.transform.InverseTransformPoint(vector); + Vector3 finalPos = /*this.LimitPosition(*/vec/*)*/; + Debug.Log("Virtual Joystick Pos = " + finalPos); + base.uiBehaviour.m_Panel.gameObject.transform.localPosition = finalPos; + bool flag2 = !this._bLogicalVisible; + if (flag2) + { + IXUITweenTool ixuitweenTool = base.uiBehaviour.m_Direction.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + this._bLogicalVisible = true; + } + else + { + this.Hide(); + } + } + + public void SetJoystickPos(float radius, float angle) + { + float num = this.GetPanelRadius() + this.GetJoystickRadius(); + float num2 = (radius > num) ? num : radius; + float num3 = angle / 180f * 3.14159274f; + float num4 = Mathf.Cos(num3) * num2; + float num5 = -Mathf.Sin(num3) * num2; + base.uiBehaviour.m_Direction.gameObject.transform.localPosition = new Vector3(num4, num5, 0f); + } + + public float GetPanelRadius() + { + bool flag = !this.m_bLoaded && this.autoload; + if (flag) + { + base.Load(); + } + return (float)(base.uiBehaviour.m_Panel.spriteWidth / 2); + } + + public float GetJoystickRadius() + { + bool flag = !this.m_bLoaded && this.autoload; + if (flag) + { + base.Load(); + } + return (float)(base.uiBehaviour.m_Joystick.spriteWidth / 2 - 15); + } + + protected Vector3 LimitPosition(Vector3 vec) + { + Vector3 result = vec; + int base_UI_Width = XSingleton.singleton.Base_UI_Width; + int base_UI_Height = XSingleton.singleton.Base_UI_Height; + float num = this.GetPanelRadius() + this.GetJoystickRadius() * 2f; + bool flag = vec.x - num < (float)(-(float)base_UI_Width / 2); + if (flag) + { + result.x = (float)(-(float)base_UI_Width / 2) + num; + } + bool flag2 = vec.x + num > (float)(base_UI_Width / 2); + if (flag2) + { + result.x = (float)(base_UI_Width / 2) - num; + } + bool flag3 = vec.y + num > (float)(base_UI_Height / 2); + if (flag3) + { + result.y = (float)(base_UI_Height / 2) - num; + } + bool flag4 = vec.y - num < (float)(-(float)base_UI_Height / 2); + if (flag4) + { + result.y = (float)(-(float)base_UI_Height / 2) + num; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/UICommon/VirtualJoystick.cs.meta b/Client/Assets/Scripts/XMainClient/UI/UICommon/VirtualJoystick.cs.meta new file mode 100644 index 00000000..66e596b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UICommon/VirtualJoystick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0731ce81c4a25cd40b1d3e2bca49bf54 +timeCreated: 1611402967 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/UiUtility.cs b/Client/Assets/Scripts/XMainClient/UI/UiUtility.cs new file mode 100644 index 00000000..0cf27e63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UiUtility.cs @@ -0,0 +1,2850 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Text; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class UiUtility : XSingleton, IUiUtility, IXInterface + { + public bool Deprecated { get; set; } + + private StringBuilder _Timebuilder = new StringBuilder(); + + private int[] TimeDuaration = new int[] + { + 2592000, + 86400, + 3600, + 60, + 1 + }; + + private string[] TimeDuarationName = new string[] + { + "MONTH_DUARATION", + "DAY_DUARATION", + "HOUR_DUARATION", + "MINUTE_DUARATION", + "SECOND_DUARATION" + }; + + private string[] TimeName = new string[] + { + "MONTH_DUARATION", + "DAY_DUARATION", + "HOUR_DUARATION", + "MINUTE_TIME", + "SECOND_DUARATION" + }; + + private string[] NumberSeparatorNames = null; + + private string wifiBtn; + + private uint wifi_green = 0u; + + private uint wifi_yellow = 0u; + + private bool wifi_forward = true; + + private float wifi_duration = 1f; + + private float wifi_cur = 0f; + + public List ComSpriteStr = new List(); + + private bool FatalErrorButtonCallback(IXUIButton go) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.Pause = false; + XSingleton.singleton.OnFatalErrorCallback(); + return true; + } + + public void OnFatalErrorClosed(ErrorCode code) + { + XSingleton.singleton.StopTutorial(); + XSingleton.singleton.Pause = true; + string @string = XStringDefineProxy.GetString(code); + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(true); + this._ShowModalDialog(@string, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), "-", new ButtonClickEventHandler(this.FatalErrorButtonCallback), 300, ""); + } + + public void OnFatalErrorClosed(string text) + { + XSingleton.singleton.StopTutorial(); + XSingleton.singleton.Pause = true; + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(true); + this._ShowModalDialog(text, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), "-", new ButtonClickEventHandler(this.FatalErrorButtonCallback), 300, ""); + } + + public void ShowErrorCode(ErrorCode code) + { + string @string = XStringDefineProxy.GetString(code); + this.ShowModalDialog(@string, XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + } + + internal string GetEquipName(ItemList.RowData data, XItem instanceData = null, uint profession = 0u) + { + bool flag = instanceData != null && instanceData.Type == ItemType.EQUIP; + if (flag) + { + XEquipItem xequipItem = instanceData as XEquipItem; + bool flag2 = xequipItem.enhanceInfo.EnhanceLevel > 0u; + if (flag2) + { + return string.Format("{0}+{1}", XSingleton.singleton.ChooseProfString(data.ItemName, profession), xequipItem.enhanceInfo.EnhanceLevel.ToString()); + } + } + return XSingleton.singleton.ChooseProfString(data.ItemName, profession); + } + + internal void ShowTooltipDialogWithSearchingCompare(XItem mainItem, IXUISprite icon = null, bool bShowButtons = true, uint profession = 0u) + { + bool flag = mainItem == null; + if (!flag) + { + XItem compareItem = null; + bool flag2 = mainItem.type == 1u; + if (flag2) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(mainItem.itemID); + bool flag3 = equipConf == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Cannot find equip config for id: ", mainItem.itemID.ToString(), null, null, null, null); + return; + } + compareItem = XSingleton.singleton.Doc.XBagDoc.EquipBag[(int)equipConf.EquipPos]; + } + else + { + bool flag4 = mainItem.type == 6u; + if (flag4) + { + compareItem = XEmblemDocument.CheckEquipedEmblemsAttrs(XSingleton.singleton.Doc.XBagDoc.EmblemBag, mainItem); + } + else + { + bool flag5 = mainItem.type == 31u; + if (flag5) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)mainItem.itemID); + bool flag6 = artifactListRowData == null; + if (flag6) + { + XSingleton.singleton.AddErrorLog("Cannot find artifact config for id: ", mainItem.itemID.ToString(), null, null, null, null); + return; + } + compareItem = XSingleton.singleton.Doc.XBagDoc.ArtifactBag[(int)artifactListRowData.ArtifactPos]; + } + } + } + this.ShowTooltipDialog(mainItem, compareItem, icon, bShowButtons, profession); + } + } + + internal void ShowTooltipDialog(XItem mainItem, XItem compareItem, IXUISprite icon = null, bool bShowButtons = true, uint profession = 0u) + { + bool flag = mainItem == null; + if (!flag) + { + bool flag2 = compareItem != null && compareItem.itemID != 0 && mainItem.Type != compareItem.Type; + if (flag2) + { + XSingleton.singleton.AddErrorLog("mainItem.Type != compareItem.Type", null, null, null, null, null); + } + else + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.HideToolTip(true); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.HideToolTip(true); + } + bool flag5 = DlgBase.singleton.IsLoaded(); + if (flag5) + { + DlgBase.singleton.HideToolTip(true); + } + bool flag6 = DlgBase.singleton.IsLoaded(); + if (flag6) + { + DlgBase.singleton.HideToolTip(true); + } + bool flag7 = DlgBase.singleton.IsLoaded(); + if (flag7) + { + DlgBase.singleton.HideToolTip(true); + } + bool flag8 = DlgBase.singleton.IsLoaded(); + if (flag8) + { + DlgBase.singleton.HideToolTip(true); + } + bool flag9 = DlgBase.singleton.IsLoaded(); + if (flag9) + { + DlgBase.singleton.HideToolTip(true); + } + ITooltipDlg tooltipDlg = mainItem.Description.TooltipDlg; + tooltipDlg.ShowToolTip(mainItem, compareItem, bShowButtons, profession); + tooltipDlg.ItemSelector.Select(icon); + tooltipDlg.SetPosition(icon); + XSingleton.singleton.Reset(); + } + } + } + + public void PushBarrage(string nick, string content) + { + DlgBase.singleton.Push(nick, content); + } + + public void StartBroadcast(bool start) + { + if (start) + { + DlgBase.singleton.isBroadcast = true; + DlgBase.singleton.Show(true); + } + else + { + DlgBase.singleton.isBroadcast = false; + DlgBase.singleton.Show(false); + } + } + + public void ShowDetailTooltip(int itemID, GameObject icon = null) + { + XItem mainItem = XBagDocument.MakeXItem(itemID, false); + this.ShowTooltipDialog(mainItem, null, icon.GetComponent("XUISprite") as IXUISprite, false, 0u); + } + + public void ParseHeadIcon(List setid, IXUISprite spr) + { + bool flag = setid == null; + if (flag) + { + spr.SetVisible(false); + } + else + { + string text = XPrerogativeDocument.ConvertTypeToPreContent(PrerogativeType.PreHeadPortrait, setid); + string text2 = string.Empty; + bool flag2 = !string.IsNullOrEmpty(text); + if (flag2) + { + string[] array = text.Split(new char[] + { + '=' + }); + bool flag3 = array.Length >= 2; + if (flag3) + { + text2 = array[1]; + } + } + bool flag4 = !string.IsNullOrEmpty(text2); + if (flag4) + { + spr.SetVisible(true); + spr.SetSprite(text2); + } + else + { + spr.SetVisible(false); + } + } + } + + public void ShowTooltipDialog(int itemID, GameObject icon = null) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + bool flag = itemConf == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("rowData == null: ", itemID.ToString(), null, null, null, null); + } + else + { + IXUISprite ixuisprite = null; + bool flag2 = null != icon; + if (flag2) + { + ixuisprite = (icon.GetComponent("XUISprite") as IXUISprite); + } + bool flag3 = itemConf.ItemType == 5; + if (flag3) + { + XItem mainItem = XBagDocument.MakeXItem(itemID, false); + XSingleton.singleton.ShowTooltipDialog(mainItem, null, ixuisprite, false, 0u); + } + else + { + itemID = XBagDocument.ConvertTemplate(itemConf); + DlgBase.singleton.ShowToolTip(itemID, 0u); + DlgBase.singleton.ItemSelector.Select(icon); + DlgBase.singleton.SetPosition(ixuisprite); + XSingleton.singleton.Reset(); + } + } + } + + internal void ShowOutLookDialog(XItem item, IXUISprite icon = null, uint proferssion = 0u) + { + bool flag = item == null; + if (!flag) + { + bool flag2 = item.Type == ItemType.FASHION; + if (flag2) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(item.itemID); + bool flag3 = fashionConf != null && (int)fashionConf.EquipPos == XFastEnumIntEqualityComparer.ToInt(FashionPosition.Hair); + if (flag3) + { + DlgBase.singleton.ShowToolTip(item, null, true, proferssion); + DlgBase.singleton.ItemSelector.Select(icon); + DlgBase.singleton.SetPosition(icon); + } + else + { + DlgBase.singleton.ShowToolTip(item, null, true, proferssion); + DlgBase.singleton.ItemSelector.Select(icon); + DlgBase.singleton.SetPosition(icon); + } + XSingleton.singleton.Reset(); + } + else + { + bool flag4 = item.Type == ItemType.EQUIP; + if (flag4) + { + DlgBase.singleton.ShowToolTip(item, null, true, proferssion); + DlgBase.singleton.ItemSelector.Select(icon); + DlgBase.singleton.SetPosition(icon); + XSingleton.singleton.Reset(); + } + } + } + } + + public void ShowTooltipDialog(int itemID, IXUISprite icon = null, uint profession = 0u) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + bool flag = itemConf == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("rowData == null: ", itemID.ToString(), null, null, null, null); + } + else + { + bool flag2 = itemConf.ItemType == 5; + if (flag2) + { + XItem mainItem = XBagDocument.MakeXItem(itemID, false); + XSingleton.singleton.ShowTooltipDialog(mainItem, null, icon, false, 0u); + } + else + { + itemID = XBagDocument.ConvertTemplate(itemConf); + DlgBase.singleton.ShowToolTip(itemID, profession); + DlgBase.singleton.ItemSelector.Select(icon); + DlgBase.singleton.SetPosition(icon); + XSingleton.singleton.Reset(); + } + } + } + + public void ShowTooltipDialogByUID(string strUID, GameObject icon = null) + { + ulong uid = 0UL; + bool flag = ulong.TryParse(strUID, out uid); + if (flag) + { + XItem xitem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(uid); + bool flag2 = xitem == null; + if (flag2) + { + XFashionDocument xfashionDocument = XSingleton.singleton.Doc.GetXComponent(XFashionDocument.uuID) as XFashionDocument; + ClientFashionData clientFashionData = xfashionDocument.FindFashion(uid); + bool flag3 = clientFashionData != null; + if (flag3) + { + xitem = xfashionDocument.MakeXItem(clientFashionData); + } + } + bool flag4 = xitem != null; + if (flag4) + { + IXUISprite icon2 = null; + bool flag5 = null != icon; + if (flag5) + { + icon2 = (icon.GetComponent("XUISprite") as IXUISprite); + } + this.ShowTooltipDialog(xitem, null, icon2, false, 0u); + } + } + } + + public void ShowSystemHelp(string main, string title, string label) + { + DlgBase.singleton.Load(); + this._ShowSystemHelp(main, title, label, 50); + } + + public void ShowModalDialogWithTitle(string title, string label, string firstBtn, ButtonClickEventHandler handler = null, int depth = 50) + { + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(true); + DlgBase.singleton.SetCloseButtonVisible(false); + this._ShowModalDialog(label, firstBtn, "-", handler, depth, title); + } + + public void ShowModalDialog(string label, string firstBtn) + { + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(true); + this._ShowModalDialog(label, firstBtn, "-", null, 50, ""); + } + + public void ShowModalDialog(string label, string firstBtn, ButtonClickEventHandler handler = null, int depth = 50) + { + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(true); + this._ShowModalDialog(label, firstBtn, "-", handler, depth, ""); + } + + public void ShowModalDialog(string label, string firstBtn, string secondBtn, ButtonClickEventHandler handler = null) + { + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(false); + this._ShowModalDialog(label, firstBtn, secondBtn, handler, 50, ""); + } + + public void ShowModalDialog(string label, string firstBtn, string secondBtn, ButtonClickEventHandler handler = null, int depth = 50) + { + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(false); + this._ShowModalDialog(label, firstBtn, secondBtn, handler, depth, ""); + } + + public void ShowModalDialog(string label, string firstBtn, string secondBtn, ButtonClickEventHandler handler, ButtonClickEventHandler handler2, bool showCloseBtn = false, XTempTipDefine showNoTip = XTempTipDefine.OD_START, int depth = 50) + { + DlgBase.singleton.StartTip = showNoTip; + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetCloseButtonVisible(showCloseBtn); + this._ShowModalDialog(label, firstBtn, secondBtn, handler, handler2, depth); + } + + public void ShowModalDialog(string title, string label, string firstBtn, string secondBtn, ButtonClickEventHandler handler, ButtonClickEventHandler handler2, bool showCloseBtn = false, XTempTipDefine showNoTip = XTempTipDefine.OD_START, int depth = 50) + { + DlgBase.singleton.StartTip = showNoTip; + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetCloseButtonVisible(showCloseBtn); + DlgBase.singleton.SetTitle(title); + this._ShowModalDialog(label, firstBtn, secondBtn, handler, handler2, depth); + } + + public void ShowModalDialog(string message, ButtonClickEventHandler handler) + { + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + this.ShowModalDialog(message, @string, string2, handler); + } + + protected void _ShowModalDialog(string label, string firstBtn, string secondBtn, ButtonClickEventHandler handler, ButtonClickEventHandler handler2, int depth = 50) + { + DlgBase.singleton.SetPanelDepth(depth); + DlgBase.singleton._bHasGrey = false; + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetLabelsWithSymbols(label, firstBtn, secondBtn); + DlgBase.singleton.SetModalCallback(handler, handler2); + DlgBase.singleton.SetTweenTargetAndPlay(DlgBase.singleton.uiBehaviour.gameObject); + } + + protected void _ShowModalDialog(string label, string firstBtn, string secondBtn, ButtonClickEventHandler handler = null, int depth = 50, string title = "") + { + DlgBase.singleton.SetPanelDepth(depth); + DlgBase.singleton._bHasGrey = false; + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetTitle(title); + DlgBase.singleton.SetLabelsWithSymbols(label, firstBtn, secondBtn); + bool flag = handler == null; + if (flag) + { + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.FrButtonCallback), null); + } + else + { + DlgBase.singleton.SetModalCallback(handler, null); + } + DlgBase.singleton.SetTweenTargetAndPlay(DlgBase.singleton.uiBehaviour.gameObject); + } + + protected void _ShowSystemHelp(string main, string title, string label, int depth = 50) + { + DlgBase.singleton.SetPanelDepth(depth); + DlgBase.singleton._bHasGrey = false; + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetLabels(main, title, label); + DlgBase.singleton.SetTweenTargetAndPlay(DlgBase.singleton.uiBehaviour.gameObject); + } + + public void ShowLeaveTeamModalDialog(ButtonClickEventHandler handler, string tips = "") + { + bool flag = tips == ""; + string label; + if (flag) + { + label = XStringDefineProxy.GetString("TEAM_SHOULD_LEAVE_TEAM_CONFIRM"); + } + else + { + label = tips; + } + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, handler); + } + + public void CloseHelp() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + public void CloseModalDlg() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + private bool FrButtonCallback(IXUIButton go) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.Pause = false; + return true; + } + + public string RoleTypeToString(RoleType type) + { + return "UnknownProf"; + } + + private Vector3 GetScreenPointMin() + { + Vector2 vector; + vector= new Vector3((float)(-(float)XSingleton.singleton.Base_UI_Width / 2), (float)(XSingleton.singleton.Base_UI_Height / 2)); + Vector3 vector2 = XSingleton.singleton.UIRoot.TransformPoint(vector); + return XSingleton.singleton.UICamera.WorldToScreenPoint(vector2); + } + + private Vector3 GetScreenPointMax() + { + Vector2 vector; + vector= new Vector3((float)(XSingleton.singleton.Base_UI_Width / 2), (float)(-(float)XSingleton.singleton.Base_UI_Height / 2)); + Vector3 vector2 = XSingleton.singleton.UIRoot.TransformPoint(vector); + return XSingleton.singleton.UICamera.WorldToScreenPoint(vector2); + } + + public string GetColorStr(Color color) + { + return string.Format("{0:X2}{1:X2}{2:X2}", (uint)(color.r * 255f), (uint)(color.g * 255f), (uint)(color.b * 255f)); + } + + public Color GetColor(float[] rgb) + { + bool flag = rgb == null; + Color result; + if (flag) + { + result = Color.white; + } + else + { + bool flag2 = rgb.Length > 3; + if (flag2) + { + result = new Color(rgb[0] / 255f, rgb[1] / 255f, rgb[2] / 255f, rgb[3] / 100f); + } + else + { + bool flag3 = rgb.Length > 2; + if (flag3) + { + result = new Color(rgb[0] / 255f, rgb[1] / 255f, rgb[2] / 255f); + } + else + { + bool flag4 = rgb.Length > 1; + if (flag4) + { + result = new Color(rgb[0] / 255f, rgb[1] / 255f, 1f); + } + else + { + bool flag5 = rgb.Length != 0; + if (flag5) + { + result = new Color(rgb[0] / 255f, 1f, 1f); + } + else + { + result = Color.white; + } + } + } + } + } + return result; + } + + public string GetItemQualityFrame(int quality, int type) + { + string result; + switch (quality) + { + case 0: + result = "kuang_dj_0"; + break; + case 1: + result = "kuang_dj_1"; + break; + case 2: + result = "kuang_dj_2"; + break; + case 3: + result = "kuang_dj_3"; + break; + case 4: + result = "kuang_dj_4"; + break; + case 5: + result = "kuang_dj_5"; + break; + default: + result = "kuang_dj_0"; + break; + } + return result; + } + + public string GetItemQualityRGB(int quality) + { + string value; + switch (quality) + { + case 0: + value = XSingleton.singleton.GetValue("Quality0Color"); + break; + case 1: + value = XSingleton.singleton.GetValue("Quality1Color"); + break; + case 2: + value = XSingleton.singleton.GetValue("Quality2Color"); + break; + case 3: + value = XSingleton.singleton.GetValue("Quality3Color"); + break; + case 4: + value = XSingleton.singleton.GetValue("Quality4Color"); + break; + case 5: + value = XSingleton.singleton.GetValue("Quality5Color"); + break; + default: + value = XSingleton.singleton.GetValue("Quality0Color"); + break; + } + return value; + } + + public Color GetItemQualityColor(int quality) + { + string itemQualityColorStr = this.GetItemQualityColorStr(quality); + bool flag = string.IsNullOrEmpty(itemQualityColorStr); + Color result; + if (flag) + { + result = Color.white; + } + else + { + result = new Color32(Convert.ToByte(itemQualityColorStr.Substring(0, 2), 16), Convert.ToByte(itemQualityColorStr.Substring(2, 2), 16), Convert.ToByte(itemQualityColorStr.Substring(4, 2), 16), byte.MaxValue); + } + return result; + } + + public Color ConvertRGBStringToColor(string c) + { + return new Color32(Convert.ToByte(c.Substring(0, 2), 16), Convert.ToByte(c.Substring(2, 2), 16), Convert.ToByte(c.Substring(4, 2), 16), byte.MaxValue); + } + + public string GetItemQualityColorStr(int quality) + { + string result = ""; + switch (quality) + { + case 0: + result = XSingleton.singleton.GetValue("Quality0Color"); + break; + case 1: + result = XSingleton.singleton.GetValue("Quality1Color"); + break; + case 2: + result = XSingleton.singleton.GetValue("Quality2Color"); + break; + case 3: + result = XSingleton.singleton.GetValue("Quality3Color"); + break; + case 4: + result = XSingleton.singleton.GetValue("Quality4Color"); + break; + case 5: + result = XSingleton.singleton.GetValue("Quality5Color"); + break; + } + return result; + } + + public string GetItemQualityIcon(int quality) + { + string result; + switch (quality) + { + case 0: + result = "icondjdj_0"; + break; + case 1: + result = "icondjdj_1"; + break; + case 2: + result = "icondjdj_2"; + break; + case 3: + result = "icondjdj_3"; + break; + case 4: + result = "icondjdj_4"; + break; + case 5: + result = "icondjdj_5"; + break; + default: + result = "null"; + break; + } + return result; + } + + public string GetItemQualityName(int quality) + { + string result; + switch (quality) + { + case 0: + result = "D"; + break; + case 1: + result = "C"; + break; + case 2: + result = "B"; + break; + case 3: + result = "A"; + break; + case 4: + result = "S"; + break; + case 5: + result = "L"; + break; + default: + result = string.Empty; + break; + } + return result; + } + + public string GetScorePic(int score) + { + string result; + switch (score) + { + case 1: + result = "F-S"; + break; + case 2: + result = "F-SS"; + break; + case 3: + result = "F-SSS"; + break; + default: + result = ""; + break; + } + return result; + } + + public string GetEquipFusionIconName(int fusionLevel) + { + string result = string.Empty; + switch (fusionLevel) + { + case 1: + result = "equip_0_00000"; + break; + case 2: + result = "equip_1_00000"; + break; + case 3: + result = "equip_2_00000"; + break; + case 4: + result = "equip_3_00000"; + break; + case 5: + result = "equip_4_00000"; + break; + default: + result = "equip_0_00000"; + break; + } + return result; + } + + internal string GetEquipPartName(EquipPosition part, bool bPrefix = true) + { + string result; + switch (part) + { + case EquipPosition.EQUIP_START: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_HEAD); + break; + case EquipPosition.Upperbody: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_UPPERBODY); + break; + case EquipPosition.Lowerbody: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_LOWERBODY); + break; + case EquipPosition.Gloves: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_GLOVES); + break; + case EquipPosition.Boots: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_BOOTS); + break; + case EquipPosition.Mainweapon: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_MAINWEAPON); + break; + case EquipPosition.Secondaryweapon: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_SECWEAPON); + break; + case EquipPosition.Necklace: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_NECKLACE); + break; + case EquipPosition.Earrings: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_EARRING); + break; + case EquipPosition.Rings: + result = XStringDefineProxy.GetString(XStringDefine.ITEM_PART_RING1); + break; + default: + result = ""; + break; + } + return result; + } + + internal string GetFashionPartName(FashionPosition part, bool bPrefix = true) + { + switch (part) + { + case FashionPosition.FASHION_START: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_HEAD); + case FashionPosition.FashionUpperBody: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_UPPERBODY); + case FashionPosition.FashionLowerBody: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_LOWERBODY); + case FashionPosition.FashionGloves: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_GLOVES); + case FashionPosition.FashionBoots: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_BOOTS); + case FashionPosition.FashionMainWeapon: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_MAINWEAPON); + case FashionPosition.FashionSecondaryWeapon: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_SECWEAPON); + case FashionPosition.FashionWings: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_WINGS); + case FashionPosition.FashionTail: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_TAIL); + case FashionPosition.FashionDecal: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_DECAL); + case FashionPosition.Hair: + return (bPrefix ? XStringDefineProxy.GetString(XStringDefine.FASHION_PREFIX) : "") + XStringDefineProxy.GetString(XStringDefine.FASHION_HAIR); + } + return ""; + } + + internal string GetArtifactPartName(ArtifactPosition part, bool bPrefix = true) + { + string result; + switch (part) + { + case ArtifactPosition.ARTIFACT_START: + result = XStringDefineProxy.GetString(XStringDefine.ARTIFACT_ANSAB); + break; + case ArtifactPosition.Grail: + result = XStringDefineProxy.GetString(XStringDefine.ARTIFACT_GRAIL); + break; + case ArtifactPosition.Battleheart: + result = XStringDefineProxy.GetString(XStringDefine.ARTIFACT_BATTLEHEART); + break; + case ArtifactPosition.DragonHorn: + result = XStringDefineProxy.GetString(XStringDefine.ARTIFACT_DRAGONHORN); + break; + default: + result = ""; + break; + } + return result; + } + + public string ChooseProfString(List ProfStringList, uint basicTypeId = 0u) + { + bool flag = ProfStringList.Count == 1; + string result; + if (flag) + { + result = ProfStringList[0]; + } + else + { + bool flag2 = ProfStringList.Count == 0; + if (flag2) + { + result = ""; + } + else + { + bool flag3 = basicTypeId <= 0u; + if (flag3) + { + basicTypeId = XItemDrawerParam.DefaultProfession; + } + int index = (int)(basicTypeId - 1u); + result = ProfStringList[index]; + } + } + return result; + } + + public string ChooseProfString(string[] ProfStringList, uint basicTypeId = 0u) + { + bool flag = ProfStringList == null || ProfStringList.Length == 0; + string result; + if (flag) + { + result = ""; + } + else + { + bool flag2 = ProfStringList.Length == 1; + if (flag2) + { + result = ProfStringList[0]; + } + else + { + bool flag3 = basicTypeId <= 0u; + if (flag3) + { + basicTypeId = XItemDrawerParam.DefaultProfession; + } + int num = (int)(basicTypeId - 1u); + bool flag4 = num < 0 || num >= ProfStringList.Length; + if (flag4) + { + XSingleton.singleton.AddErrorLog("There's no data for prof ", basicTypeId.ToString(), ", data: {", string.Join(", ", ProfStringList), "}", null); + result = string.Empty; + } + else + { + result = ProfStringList[num]; + } + } + } + return result; + } + + internal T ChooseProfData(List ProfDataList, uint basicTypeId = 0u) + { + bool flag = ProfDataList == null || ProfDataList.Count == 0; + T result; + if (flag) + { + result = default(T); + } + else + { + bool flag2 = ProfDataList.Count == 1; + if (flag2) + { + result = ProfDataList[0]; + } + else + { + bool flag3 = basicTypeId <= 0u; + if (flag3) + { + basicTypeId = XItemDrawerParam.DefaultProfession; + } + int num = (int)(basicTypeId - 1u); + bool flag4 = num < 0 || num >= ProfDataList.Count; + if (flag4) + { + XSingleton.singleton.shareSB.Length = 0; + for (int i = 0; i < ProfDataList.Count; i++) + { + bool flag5 = i != 0; + if (flag5) + { + XSingleton.singleton.shareSB.Append(", "); + } + StringBuilder shareSB = XSingleton.singleton.shareSB; + T t = ProfDataList[i]; + shareSB.Append(t.ToString()); + } + XSingleton.singleton.AddErrorLog("There's no data for prof ", basicTypeId.ToString(), ", data: {", XSingleton.singleton.shareSB.ToString(), "}", null); + result = default(T); + } + else + { + result = ProfDataList[num]; + } + } + } + return result; + } + + internal T ChooseProfData(T[] ProfDataList, uint basicTypeId = 0u) + { + bool flag = ProfDataList == null || ProfDataList.Length == 0; + T result; + if (flag) + { + result = default(T); + } + else + { + bool flag2 = ProfDataList.Length == 1; + if (flag2) + { + result = ProfDataList[0]; + } + else + { + bool flag3 = basicTypeId == 0u; + if (flag3) + { + basicTypeId = XItemDrawerParam.DefaultProfession; + } + int num = (int)(basicTypeId - 1u); + bool flag4 = num < 0 || num >= ProfDataList.Length; + if (flag4) + { + XSingleton.singleton.shareSB.Length = 0; + for (int i = 0; i < ProfDataList.Length; i++) + { + bool flag5 = i != 0; + if (flag5) + { + XSingleton.singleton.shareSB.Append(", "); + } + XSingleton.singleton.shareSB.Append(ProfDataList[i].ToString()); + } + XSingleton.singleton.AddErrorLog("There's no data for prof ", basicTypeId.ToString(), ", data: {", XSingleton.singleton.shareSB.ToString(), "}", null); + result = default(T); + } + else + { + result = ProfDataList[num]; + } + } + } + return result; + } + + internal T ChooseProfData(ref SeqListRef ProfDataList, uint basicTypeId = 0u, int index = 0) + { + bool flag = ProfDataList.Count == 0; + T result; + if (flag) + { + result = default(T); + } + else + { + bool flag2 = ProfDataList.Count == 1; + if (flag2) + { + result = ProfDataList[0, index]; + } + else + { + bool flag3 = basicTypeId == 0u; + if (flag3) + { + basicTypeId = XItemDrawerParam.DefaultProfession; + } + int num = (int)(basicTypeId - 1u); + bool flag4 = num < 0 || num >= ProfDataList.Count; + if (flag4) + { + XSingleton.singleton.shareSB.Length = 0; + for (int i = 0; i < ProfDataList.Count; i++) + { + bool flag5 = i != 0; + if (flag5) + { + XSingleton.singleton.shareSB.Append(", "); + } + StringBuilder shareSB = XSingleton.singleton.shareSB; + T t = ProfDataList[i, index]; + shareSB.Append(t.ToString()); + } + XSingleton.singleton.AddErrorLog("There's no data for prof ", basicTypeId.ToString(), ", data: {", XSingleton.singleton.shareSB.ToString(), "}", null); + result = default(T); + } + else + { + result = ProfDataList[num, index]; + } + } + } + return result; + } + + internal string ReplaceReturn(string s) + { + return s.Replace("{n}", "\n"); + } + + public void AddChild(Transform parent, Transform child) + { + child.parent = parent; + child.localPosition = Vector3.zero; + child.localRotation = Quaternion.identity; + child.localScale = Vector3.one; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(child.gameObject); + } + + public void AddChild(GameObject parent, GameObject child) + { + child.transform.parent = parent.transform; + child.transform.localPosition = Vector3.zero; + child.transform.localRotation = Quaternion.identity; + child.transform.localScale = Vector3.one; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(child.gameObject); + } + + public void AddChildNoMark(GameObject parent, GameObject child) + { + child.transform.parent = parent.transform; + child.transform.localPosition = Vector3.zero; + child.transform.localRotation = Quaternion.identity; + child.transform.localScale = Vector3.one; + } + + public void AddChild(IUIRect parent, GameObject child, IXUIPanel panel) + { + child.transform.parent = parent.transform; + child.transform.localPosition = Vector3.zero; + child.transform.localRotation = Quaternion.identity; + child.transform.localScale = Vector3.one; + bool flag = XSingleton.singleton.m_uiTool != null; + if (flag) + { + XSingleton.singleton.m_uiTool.ChangePanel(child, parent, panel); + } + } + + public long GetTimeStamp() + { + return (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000L) / 10000000L; + } + + public string TimeFormatSince1970(int elapsedSeconds, string format, bool isCountTimeZone = false) + { + return this.TimeNow((double)elapsedSeconds, isCountTimeZone).ToString(format); + } + + public DateTime TimeNow(double elapsedSeconds, bool isCountTimeZone = false) + { + int num = 0; + if (isCountTimeZone) + { + num = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).Hours; + } + DateTime result = new DateTime(1970, 1, 1, 0, 0, 0); + elapsedSeconds = Math.Max(0.0, elapsedSeconds); + result = result.AddSeconds(elapsedSeconds + (double)(num * 3600)); + return result; + } + + public double TimeFormatLastTime(double elapsedSeconds, bool isCountTimeZone = false) + { + return (this.TimeNow(elapsedSeconds, isCountTimeZone) - DateTime.Now).TotalSeconds; + } + + public string TimeFormatString(int totalSecond, int lowCount = 0, int upCount = 3, int minUnit = 4, bool isCarry = false, bool needPadLeft = true) + { + this._Timebuilder.Length = 0; + upCount = Math.Min(3, upCount); + int num = 2 + (3 - upCount); + if (isCarry) + { + totalSecond = (int)Math.Ceiling((double)totalSecond / (double)this.TimeDuaration[minUnit]) * this.TimeDuaration[minUnit]; + } + int i = num; + while (i < 5) + { + int num2 = totalSecond / this.TimeDuaration[i]; + totalSecond %= this.TimeDuaration[i]; + bool flag = 5 - i > 4 - minUnit + lowCount && this._Timebuilder.Length == 0; + if (!flag) + { + goto IL_96; + } + bool flag2 = num2 == 0; + if (!flag2) + { + goto IL_96; + } + IL_118: + i++; + continue; + IL_96: + bool flag3 = this._Timebuilder.Length != 0; + if (flag3) + { + this._Timebuilder.Append(":"); + } + bool flag4 = i == 2 || !needPadLeft; + if (flag4) + { + this._Timebuilder.Append(num2.ToString()); + } + else + { + this._Timebuilder.Append(num2.ToString().PadLeft(2, '0')); + } + bool flag5 = i == minUnit; + if (flag5) + { + return this._Timebuilder.ToString(); + } + goto IL_118; + } + return this._Timebuilder.ToString(); + } + + public string TimeFormatString(float totalSecondFloat, int lowCount = 0, int upCount = 3, int minUnit = 4, bool isCarry = false) + { + this.TimeFormatString((int)totalSecondFloat, lowCount, upCount, minUnit, isCarry, true); + totalSecondFloat %= 1f; + totalSecondFloat *= 100f; + this._Timebuilder.Append(string.Format(".{0}", ((int)totalSecondFloat).ToString().PadLeft(2, '0'))); + return this._Timebuilder.ToString(); + } + + public string TimeAgoFormatString(int totalSecond) + { + bool flag = totalSecond < 0; + string @string; + if (flag) + { + @string = XStringDefineProxy.GetString("ONLINE"); + } + else + { + for (int i = 0; i < 5; i++) + { + int num = this.TimeDuaration[i]; + int num2 = totalSecond / num; + bool flag2 = num2 > 0; + if (flag2) + { + return string.Format("{0}{1}{2}", num2.ToString(), XStringDefineProxy.GetString(this.TimeDuarationName[i]), XStringDefineProxy.GetString("AGO")); + } + } + @string = XStringDefineProxy.GetString("JUSTNOW"); + } + return @string; + } + + public string TimeOnOrOutFromString(int totalSecond) + { + bool flag = totalSecond < 0; + string @string; + if (flag) + { + @string = XStringDefineProxy.GetString("ONLINE"); + } + else + { + @string = XStringDefineProxy.GetString("OUTLINE"); + } + return @string; + } + + public string TimeAccFormatString(int totalSecond, int minTime, int maxTime = 0) + { + bool flag = totalSecond < 0; + string @string; + if (flag) + { + @string = XStringDefineProxy.GetString("ONLINE"); + } + else + { + for (int i = maxTime; i < 5; i++) + { + int num = this.TimeDuaration[i]; + int num2 = totalSecond / num; + bool flag2 = num2 > 0 || i == minTime; + if (flag2) + { + return string.Format("{0}{1}", ((num2 > 0) ? num2 : 1).ToString(), XStringDefineProxy.GetString(this.TimeDuarationName[i])); + } + } + @string = XStringDefineProxy.GetString("JUSTNOW"); + } + return @string; + } + + public string TimeDuarationFormatString(int totalSecond, int minTime = 5) + { + StringBuilder stringBuilder = new StringBuilder(); + bool flag = false; + bool flag2 = totalSecond <= 0; + if (flag2) + { + stringBuilder.Append(0).Append(XStringDefineProxy.GetString("SECOND_DUARATION")); + } + else + { + for (int i = 0; i < minTime; i++) + { + int num = this.TimeDuaration[i]; + int num2 = totalSecond / num; + bool flag3 = num2 > 0; + if (flag3) + { + flag = true; + } + bool flag4 = flag; + if (flag4) + { + stringBuilder.Append(num2).Append(XStringDefineProxy.GetString(this.TimeName[i])); + } + totalSecond -= num2 * num; + bool flag5 = totalSecond == 0; + if (flag5) + { + break; + } + } + } + return stringBuilder.ToString(); + } + + public string TimeDuarationFormatSizeString(int totalSecond, int size = 5, int start = 0) + { + StringBuilder stringBuilder = new StringBuilder(); + bool flag = false; + int num = 0; + bool flag2 = totalSecond <= 0; + if (flag2) + { + stringBuilder.Append(0).Append(XStringDefineProxy.GetString("SECOND_DUARATION")); + } + else + { + for (int i = start; i < 5; i++) + { + int num2 = this.TimeDuaration[i]; + int num3 = totalSecond / num2; + bool flag3 = num3 > 0; + if (flag3) + { + flag = true; + } + bool flag4 = flag; + if (flag4) + { + num++; + stringBuilder.Append(num3).Append(XStringDefineProxy.GetString(this.TimeName[i])); + } + totalSecond -= num3 * num2; + bool flag5 = totalSecond == 0 || num >= size; + if (flag5) + { + break; + } + } + } + return stringBuilder.ToString(); + } + + public string TimeDurationBackFormatString(int totalSecond, int minTime = 5) + { + StringBuilder stringBuilder = new StringBuilder(); + bool flag = false; + bool flag2 = totalSecond <= 0; + if (flag2) + { + stringBuilder.Append(0).Append(XStringDefineProxy.GetString("SECOND_DUARATION")); + } + else + { + for (int i = 0; i < minTime; i++) + { + int num = this.TimeDuaration[i]; + int num2 = totalSecond / num; + bool flag3 = num2 > 0; + if (flag3) + { + flag = true; + } + bool flag4 = flag; + if (flag4) + { + stringBuilder.Append(num2).Append(XStringDefineProxy.GetString(this.TimeName[i])); + } + totalSecond -= num2 * num; + bool flag5 = totalSecond == 0; + if (flag5) + { + break; + } + } + } + return stringBuilder.ToString(); + } + + public string NumberFormat(int number) + { + bool flag = number < 0; + number = Math.Abs(number); + bool flag2 = number < 10000; + string text; + if (flag2) + { + text = number.ToString(); + } + else + { + number /= 10000; + text = number.ToString() + "W"; + } + bool flag3 = flag; + if (flag3) + { + text = "-" + text; + } + return text; + } + + public string NumberFormat(ulong number) + { + bool flag = number < XSingleton.singleton.MinSeparateNum; + string result; + if (flag) + { + result = number.ToString(); + } + else + { + ulong[] numberSeparators = XSingleton.singleton.NumberSeparators; + int num = -1; + for (int i = 0; i < numberSeparators.Length; i++) + { + bool flag2 = numberSeparators[i] <= number; + if (!flag2) + { + break; + } + num = i; + } + bool flag3 = num == -1; + if (flag3) + { + result = number.ToString(); + } + else + { + bool flag4 = this.NumberSeparatorNames == null; + if (flag4) + { + this.NumberSeparatorNames = new string[numberSeparators.Length]; + for (int j = 0; j < numberSeparators.Length; j++) + { + this.NumberSeparatorNames[j] = "NumberSeparator" + j.ToString(); + } + } + result = string.Format("{0}{1}", (number / numberSeparators[num]).ToString(), XStringDefineProxy.GetString(this.NumberSeparatorNames[num])); + } + } + return result; + } + + public string NumberFormatBillion(ulong number) + { + double num = 100000000.0; + bool flag = number > num; + string result; + if (flag) + { + double num2 = number / num; + ulong num3 = (ulong)(num2 * 100.0); + double num4 = num3 / 100.0; + result = string.Format("{0}{1}", num4, XStringDefineProxy.GetString("NumberSeparator1")); + } + else + { + result = this.NumberFormat(number); + } + return result; + } + + public string GetBagExpandFullTips(BagType type) + { + string result; + switch (type) + { + case BagType.EquipBag: + result = XSingleton.singleton.GetString("ExpandEquipBagFull"); + break; + case BagType.EmblemBag: + result = XSingleton.singleton.GetString("ExpandEmbleBagFull"); + break; + case BagType.ArtifactBag: + result = XSingleton.singleton.GetString("ExpandArtifactBagFull"); + break; + case BagType.ItemBag: + result = XSingleton.singleton.GetString("ExpandItemBagFull"); + break; + default: + result = string.Empty; + break; + } + return result; + } + + public Transform FindChild(Transform dlg, string childName) + { + string text = childName; + bool flag = childName.Contains("?profession?"); + if (flag) + { + int num = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession) % 10; + childName = childName.Replace("?profession?", num.ToString()); + text = text.Replace("?profession?", num.ToString()); + } + bool flag2 = childName.Contains("?profession1turn?"); + if (flag2) + { + int num2 = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + bool flag3 = num2 >= 10; + if (flag3) + { + int num3 = num2 % 100 / 10 + num2 % 10 * 2 - 2; + childName = childName.Replace("?profession1turn?", num3.ToString("d2")); + text = text.Replace("?profession1turn?", num3.ToString("d2")); + } + } + bool flag4 = childName.Contains("{"); + Transform result; + if (flag4) + { + int num4 = childName.IndexOf("{"); + int num5 = childName.IndexOf("}"); + int num6 = int.Parse(childName.Substring(num4 + 1, num5 - num4 - 1)) - 1; + string text2 = childName.Substring(0, num4 - 1); + string text3 = childName.Substring(num5 + 1); + Transform transform = dlg.Find(text2); + bool flag5 = transform == null; + if (flag5) + { + result = null; + } + else + { + bool flag6 = num6 >= transform.childCount; + if (flag6) + { + result = null; + } + else + { + Transform transform2 = null; + int num7 = -1; + for (int i = 0; i < transform.childCount; i++) + { + transform2 = transform.GetChild(i); + bool activeSelf = transform2.gameObject.activeSelf; + if (activeSelf) + { + num7++; + } + bool flag7 = num6 == num7; + if (flag7) + { + break; + } + } + bool flag8 = text3 != ""; + if (flag8) + { + result = transform2.Find(text3.Substring(1)); + } + else + { + result = transform2; + } + } + } + } + else + { + Transform transform3 = dlg.Find(text); + result = transform3; + } + return result; + } + + public int GetItemCount(int itemID) + { + return XSingleton.singleton.Doc.XBagDoc.ItemBag.GetItemCount(itemID); + } + + public bool IsMaxBuyPowerCnt() + { + return this.IsMaxBuyCnt(ItemEnum.FATIGUE); + } + + public bool IsMaxBuyCnt(ItemEnum type) + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + XPurchaseDocument specificDocument2 = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + XPurchaseInfo purchaseInfo = specificDocument2.GetPurchaseInfo(level, vipLevel, type); + return purchaseInfo.totalBuyNum <= purchaseInfo.curBuyNum; + } + + public bool CanEnterBattleScene(uint sceneID) + { + return this.CanEnterBattleScene(sceneID, 1); + } + + public bool CanEnterBattleScene(uint sceneID, int cnt) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneID); + bool flag = sceneData == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = true; + for (int i = 0; i < sceneData.FatigueCost.Count; i++) + { + int num = 0; + bool flag3 = sceneData.FatigueCost[i, 0] <= 50; + if (flag3) + { + num = (int)XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount((ItemEnum)sceneData.FatigueCost[i, 0]); + } + else + { + int num2 = -1; + XSingleton.singleton.Doc.XBagDoc.ItemBag.FindItem((ulong)((long)sceneData.FatigueCost[i, 0]), out num2); + bool flag4 = num2 >= 0; + if (flag4) + { + XItem xitem = XSingleton.singleton.Doc.XBagDoc.ItemBag[num2]; + num = xitem.itemCount; + } + } + bool flag5 = num < sceneData.FatigueCost[i, 1]; + if (flag5) + { + flag2 = false; + break; + } + } + result = flag2; + } + return result; + } + + public void ShowLoginTip(string text) + { + DlgBase.singleton.ShowTips(text); + } + + public void StopLoginTip() + { + DlgBase.singleton.StopTips(); + } + + public void ShowSystemTip(string text, string rgb = "fece00") + { + XSystemTipDocument specificDocument = XDocuments.GetSpecificDocument(XSystemTipDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.ShowTip(text, rgb); + } + } + + public void ShowSystemTip(int errcode, string rgb = "fece00") + { + XSystemTipDocument specificDocument = XDocuments.GetSpecificDocument(XSystemTipDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.ShowTip(XStringDefineProxy.GetString((ErrorCode)errcode), rgb); + } + } + + public void ShowSystemTip(ErrorCode errcode, string rgb = "fece00") + { + XSystemTipDocument specificDocument = XDocuments.GetSpecificDocument(XSystemTipDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.ShowTip(this.ReplaceReturn(XStringDefineProxy.GetString(errcode)), rgb); + } + } + + public void OnGetInvalidRequest(string name) + { + XSingleton.singleton.AddErrorLog("GetInvalidRequest: ", name, null, null, null, null); + } + + public uint ShowSystemNoticeTip(string text) + { + XShowGetItemDocument specificDocument = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + return specificDocument.AddTip(text); + } + + public void EditSystemNoticeTip(string text, uint id) + { + XShowGetItemDocument specificDocument = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + specificDocument.EditTip(text, id); + } + + public int GetRowCount(int count, int columnCount) + { + bool flag = count <= 0; + int result; + if (flag) + { + result = 0; + } + else + { + result = (count - 1) / columnCount + 1; + } + return result; + } + + public void SetVirtualItem(XNumberTween numTween, ulong num, bool bAnim = true, string postfix = "") + { + numTween.SetNumberWithTween(num, postfix, !bAnim, true); + bool flag = !bAnim; + if (!flag) + { + IXUITweenTool iconTween = numTween.IconTween; + bool flag2 = iconTween != null; + if (flag2) + { + iconTween.PlayTween(true, -1f); + } + } + } + + public void ShowItemAccess(int itemid, AccessCallback callback = null) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + bool flag = itemConf != null && itemConf.Access.Count > 0; + if (flag) + { + List list = new List(); + List list2 = new List(); + for (int i = 0; i < itemConf.Access.Count; i++) + { + list.Add(itemConf.Access[i, 0]); + list2.Add(itemConf.Access[i, 1]); + } + DlgBase.singleton.ShowAccess(itemid, list, list2, callback); + } + } + + public void OnItemClick(IXUISprite sp) + { + int itemID = (int)sp.ID; + this.ShowTooltipDialog(itemID, sp, 0u); + } + + public void OnBindItemClick(IXUISprite sp) + { + int itemID = (int)sp.ID; + XSingleton.singleton.bBinded = true; + this.ShowTooltipDialog(itemID, sp, 0u); + } + + public void SetUIDepthDelta(GameObject go, int delta) + { + IXUITool uiTool = XSingleton.singleton.m_uiTool; + uiTool.SetUIDepthDelta(go, delta); + } + + public void UpdateWifi(IXUIButton btn, IXUISprite spr) + { + bool flag = this.wifi_green == 0u || this.wifi_yellow == 0u; + if (flag) + { + this.wifi_green = uint.Parse(XSingleton.singleton.GetValue("WIFI_GREEN")); + this.wifi_yellow = uint.Parse(XSingleton.singleton.GetValue("WIFI_YELO")); + } + long delay = XSingleton.singleton.GetDelay(); + bool flag2 = delay <= (long)((ulong)this.wifi_green); + if (flag2) + { + this.wifiBtn = "xh_2"; + bool flag3 = btn != null; + if (flag3) + { + btn.SetAlpha(1f); + } + bool flag4 = spr != null; + if (flag4) + { + spr.SetAlpha(1f); + } + } + else + { + bool flag5 = delay <= (long)((ulong)this.wifi_yellow); + if (flag5) + { + this.wifiBtn = "xh_1"; + bool flag6 = btn != null; + if (flag6) + { + btn.SetAlpha(1f); + } + bool flag7 = spr != null; + if (flag7) + { + spr.SetAlpha(1f); + } + } + else + { + this.wifiBtn = "xh_0"; + bool flag8 = btn != null; + if (flag8) + { + btn.SetAlpha(1f); + } + bool flag9 = spr != null; + if (flag9) + { + spr.SetAlpha(1f); + } + } + } + bool flag10 = btn != null; + if (flag10) + { + btn.SetSprites(this.wifiBtn, this.wifiBtn, this.wifiBtn); + } + bool flag11 = spr != null; + if (flag11) + { + spr.SetSprite(this.wifiBtn); + } + bool flag12 = delay >= XServerTimeMgr.SyncTimeOut; + if (flag12) + { + bool flag13 = this.wifi_cur >= 1f && this.wifi_forward; + if (flag13) + { + this.wifi_forward = false; + } + bool flag14 = this.wifi_cur <= 0f && !this.wifi_forward; + if (flag14) + { + this.wifi_forward = true; + } + this.wifi_cur = (this.wifi_forward ? (Time.time % this.wifi_duration / this.wifi_duration) : (1f - Time.time % this.wifi_duration / this.wifi_duration)); + bool flag15 = btn != null; + if (flag15) + { + btn.SetAlpha(this.wifi_cur); + } + bool flag16 = spr != null; + if (flag16) + { + spr.SetAlpha(this.wifi_cur); + } + } + } + + public bool IsWeakNetwork() + { + uint num = uint.Parse(XSingleton.singleton.GetValue("WIFI_GREEN")); + uint num2 = uint.Parse(XSingleton.singleton.GetValue("WIFI_YELO")); + long delay = XSingleton.singleton.GetDelay(); + bool flag = delay <= (long)((ulong)num) || delay <= (long)((ulong)num2); + return !flag; + } + + public void RefreshPing(IXUILabel _time, IXUISlider _slider, IXUILabel _free) + { + string batteryLevel = XSingleton.singleton.XPlatform.GetBatteryLevel(); + string text = DateTime.Now.ToString("HH:mm"); + bool flag = _time != null; + if (flag) + { + _time.SetText(text); + } + int num = 100; + int.TryParse(batteryLevel, out num); + bool flag2 = _slider != null; + if (flag2) + { + _slider.Value = (float)num / 100f; + } + bool flag3 = _free != null; + if (flag3) + { + _free.Alpha = (float)(XSingleton.singleton.freeflow ? 1 : 0); + } + } + + public bool IsSystemExpress(string txt) + { + byte[] bytes = Encoding.UTF8.GetBytes(txt); + bool flag = bytes == null || bytes.Length <= 1; + return !flag && bytes[0] == 240; + } + + public string StripInvalidUnicodeCharacters(string str) + { + return str; + } + + public void ShowAfterLoginAnnouncement(PlatNotice announcement) + { + bool flag = announcement == null; + if (!flag) + { + bool isopen = announcement.isopen; + if (isopen) + { + DlgBase.singleton.ShowAnnouncement(announcement.content); + } + } + } + + public void ShowPatface() + { + DlgBase.singleton.bShow = true; + RpcC2M_FetchPlatNotice rpcC2M_FetchPlatNotice = new RpcC2M_FetchPlatNotice(); + rpcC2M_FetchPlatNotice.oArg.type = XSingleton.singleton.AccountType; + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform == 11) + { + rpcC2M_FetchPlatNotice.oArg.platid = PlatType.PLAT_ANDROID; + } + } + else + { + rpcC2M_FetchPlatNotice.oArg.platid = PlatType.PLAT_IOS; + } + XSingleton.singleton.Send(rpcC2M_FetchPlatNotice); + } + + public string GlobalConfigGetValue(string cfgName) + { + return XSingleton.singleton.GetValue(cfgName); + } + + public Color StringToColor(string str) + { + bool flag = string.IsNullOrEmpty(str); + Color result; + if (flag) + { + result = Color.white; + } + else + { + int num = int.Parse(str, NumberStyles.AllowHexSpecifier); + float num2 = (float)(num / 65536); + float num3 = (float)(num / 256 % 256); + float num4 = (float)(num % 256); + result = new Color(num2 / 255f, num3 / 255f, num4 / 255f); + } + return result; + } + + public string GetChatDesignation(uint desID, string specDesi, string name = "") + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + DesignationTable.RowData byID = specificDocument._DesignationTable.GetByID((int)desID); + bool flag = byID == null || !byID.ShowInChat; + string result; + if (flag) + { + result = name; + } + else + { + bool flag2 = byID.Effect != ""; + if (flag2) + { + result = string.Format("{0}{1}", XLabelSymbolHelper.FormatDesignation(byID.Atlas, byID.Effect, 16), name); + } + else + { + bool flag3 = name != ""; + if (flag3) + { + name = string.Format(" {0}", name); + } + bool special = byID.Special; + if (special) + { + result = string.Format("{0}{1}[-]{2}", byID.Color, specDesi, name); + } + else + { + result = string.Format("{0}{1}[-]{2}", byID.Color, byID.Designation, name); + } + } + } + return result; + } + + public string SetChatCoverDesignation(string name, uint desID, bool justPicDesc = false) + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + DesignationTable.RowData byID = specificDocument._DesignationTable.GetByID((int)desID); + string text = string.Format("{0}{1}", XSingleton.singleton.GetValue("XUILabelSymbolNameColor"), name); + bool flag = byID == null || byID.Effect != ""; + if (flag) + { + bool flag2 = byID != null; + if (flag2) + { + text = string.Format("{0}{1}", XLabelSymbolHelper.FormatDesignation(byID.Atlas, byID.Effect, 16), text); + } + } + else + { + bool flag3 = !justPicDesc; + if (flag3) + { + text = string.Format("{0}{1} {2}", XSingleton.singleton.GetValue("XUILabelSymbolDesignationColor"), byID.Designation, text); + } + } + return text; + } + + public Color ParseColor(string text, int offset) + { + int num = this.HexToDecimal(text[offset]) << 4 | this.HexToDecimal(text[offset + 1]); + int num2 = this.HexToDecimal(text[offset + 2]) << 4 | this.HexToDecimal(text[offset + 3]); + int num3 = this.HexToDecimal(text[offset + 4]) << 4 | this.HexToDecimal(text[offset + 5]); + float num4 = 0.003921569f; + return new Color(num4 * (float)num, num4 * (float)num2, num4 * (float)num3); + } + + public int HexToDecimal(char ch) + { + switch (ch) + { + case '0': + return 0; + case '1': + return 1; + case '2': + return 2; + case '3': + return 3; + case '4': + return 4; + case '5': + return 5; + case '6': + return 6; + case '7': + return 7; + case '8': + return 8; + case '9': + return 9; + case ':': + case ';': + case '<': + case '=': + case '>': + case '?': + case '@': + goto IL_D4; + case 'A': + break; + case 'B': + goto IL_BB; + case 'C': + goto IL_C0; + case 'D': + goto IL_C5; + case 'E': + goto IL_CA; + case 'F': + goto IL_CF; + default: + switch (ch) + { + case 'a': + break; + case 'b': + goto IL_BB; + case 'c': + goto IL_C0; + case 'd': + goto IL_C5; + case 'e': + goto IL_CA; + case 'f': + goto IL_CF; + default: + goto IL_D4; + } + break; + } + return 10; + IL_BB: + return 11; + IL_C0: + return 12; + IL_C5: + return 13; + IL_CA: + return 14; + IL_CF: + return 15; + IL_D4: + return 15; + } + + public void ShowFatigueSureDlg(ButtonClickEventHandler handler) + { + string label = string.Format(XStringDefineProxy.GetString("FATIGUEOVERFLOWTIPS"), XSingleton.singleton.GetValue("MaxFatigue")); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, handler, 100); + } + + public void ShowRank(IXUISprite sp, IXUILabel label, int rank) + { + bool flag = 1 <= rank && rank <= 3; + if (flag) + { + sp.gameObject.SetActive(true); + label.gameObject.SetActive(false); + bool flag2 = rank == 1; + if (flag2) + { + sp.SetSprite("N1"); + } + bool flag3 = rank == 2; + if (flag3) + { + sp.SetSprite("N2"); + } + bool flag4 = rank == 3; + if (flag4) + { + sp.SetSprite("N3"); + } + } + else + { + sp.gameObject.SetActive(false); + label.gameObject.SetActive(true); + bool flag5 = rank <= 0; + if (flag5) + { + label.SetText(XStringDefineProxy.GetString("NoRank")); + } + else + { + label.SetText(rank.ToString()); + } + } + } + + public void DestroyTextureInActivePool(XUIPool pool, string path) + { + List list = ListPool.Get(); + pool.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = list[i]; + IXUITexture ixuitexture = gameObject.transform.Find("path").GetComponent("XUITexture") as IXUITexture; + bool flag = ixuitexture != null; + if (flag) + { + ixuitexture.SetTexturePath(""); + } + } + ListPool.Release(list); + } + + public void SetMiniMapOpponentStatus(bool hide) + { + BattleIndicateHandler.SetMiniMapOpponentStatus(hide); + } + + public string GetItemTypeStr(ItemType type) + { + return this.GetItemTypeStr(XFastEnumIntEqualityComparer.ToInt(type)); + } + + public string GetItemTypeStr(int type) + { + return XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("ItemType", type.ToString())); + } + + public void OnPayCallback(string msg) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.OnPayCallback(msg); + } + + public void SDKPandoraBuyGoods(string json) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.SDKPandoraBuyGoods(json); + } + + public void OnQQVipPayCallback(string msg) + { + XPlatformAbilityDocument specificDocument = XDocuments.GetSpecificDocument(XPlatformAbilityDocument.uuID); + specificDocument.OnQQVipPayCallback(msg); + } + + public void OnGameCenterWakeUp(int type) + { + XSingleton.singleton.AddLog("[OnGameCenterWakeUp] StartUpType = " + type, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = (type == 2 && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ) || (type == 3 && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + if (flag) + { + XSingleton.singleton.AddLog("[OnGameCenterWakeUp] PtcC2N_UpdateStartUpTypeNtf type = " + type, null, null, null, null, null, XDebugColor.XDebug_None); + PtcC2N_UpdateStartUpTypeNtf ptcC2N_UpdateStartUpTypeNtf = new PtcC2N_UpdateStartUpTypeNtf(); + ptcC2N_UpdateStartUpTypeNtf.Data.type = (StartUpType)type; + XSingleton.singleton.Send(ptcC2N_UpdateStartUpTypeNtf); + DlgBase.singleton.RefreshGameCenterInfo(); + } + } + + public void OnGetPlatFriendsInfo() + { + XSingleton.singleton.AddLog("[UiUtility] OnGetPlatFriendsInfo", null, null, null, null, null, XDebugColor.XDebug_None); + XFriendsDocument.Doc.SyncPlatFriendsInfo(); + XSingleton.singleton.SetFriendServerIcon(); + XSingleton.singleton.XPlatform.SendGameExData("QuerySelf", ""); + bool flag = XSingleton.singleton.playerInfo != null; + if (flag) + { + string pictureLarge = XSingleton.singleton.playerInfo.data.pictureLarge; + XSingleton.singleton.SetMainIcon(pictureLarge); + } + } + + public void SerialHandle3DTouch(string msg) + { + XSingleton.singleton.OnProcess3DTouch(msg); + } + + public void SerialHandleScreenLock(string msg) + { + } + + public void OnPayMarketingInfo(List listInfo) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument.OnGetPayMarketingInfo(listInfo); + } + + public void ShowSettingNumberDialog(uint itemID, string title, uint min, uint max, uint step, ModalSettingNumberDlg.GetInputNumber handler, int depth = 50) + { + DlgBase.singleton.Load(); + DlgBase.singleton.MaxNumber = max; + DlgBase.singleton.MinNumber = min; + DlgBase.singleton.Title = title; + DlgBase.singleton.step = step; + DlgBase.singleton.ItemID = itemID; + DlgBase.singleton.SetModalInfo(handler); + DlgBase.singleton.SetVisible(true, true); + } + + public string GetPartitionId() + { + return XSingleton.singleton.ServerID.ToString(); + } + + public string GetRoleId() + { + bool flag = XSingleton.singleton.Player != null; + string result; + if (flag) + { + result = XSingleton.singleton.Player.Attributes.RoleID.ToString(); + } + else + { + result = "0"; + } + return result; + } + + public void OnReplayStart() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.isPlaying = true; + DlgBase.singleton.Show(true); + } + } + + public void OnSetBg(bool on) + { + XSingleton.singleton.SetBackMusicOn(on); + } + + public void OpenHtmlUrl(string key) + { + Dictionary dictionary = new Dictionary(); + dictionary["url"] = XSingleton.singleton.GetValue(key); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + + public void CloseSysAndNoticeServer(uint sysID) + { + PtcC2G_CloseHintNtf ptcC2G_CloseHintNtf = new PtcC2G_CloseHintNtf(); + ptcC2G_CloseHintNtf.Data.systemid = sysID; + XSingleton.singleton.Send(ptcC2G_CloseHintNtf); + XSingleton.singleton.SetSysRedPointState((XSysDefine)sysID, false); + XSingleton.singleton.RecalculateRedPointState((XSysDefine)sysID, true); + } + + public void OpenUrl(string url, bool landscape) + { + Dictionary dictionary = new Dictionary(); + dictionary["url"] = url; + dictionary["screendir"] = (landscape ? "LANDSCAPE" : "SENSOR"); + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + + public void Shuffle(ref List list) + { + for (int i = list.Count - 1; i > 0; i--) + { + int num = XSingleton.singleton.RandomInt(0, i + 1); + bool flag = num != i; + if (flag) + { + T value = list[i]; + list[i] = list[num]; + list[num] = value; + } + } + } + + public void OnSetWebViewMenu(int menutype) + { + DlgBase.singleton.OnSetWebViewMenu(menutype); + } + + public void OnWebViewBackGame(int backtype) + { + DlgBase.singleton.OnWebViewBackGame(backtype); + } + + public void OnWebViewRefershRefPoint(string jsonstr) + { + DlgBase.singleton.OnWebViewRefershRefPoint(jsonstr); + } + + public void OnWebViewSetheaderInfo(string jsonstr) + { + DlgBase.singleton.OnWebViewSetheaderInfo(jsonstr); + } + + public void OnWebViewCloseLoading(int show) + { + DlgBase.singleton.OnWebViewCloseLoading(show); + } + + public void OnWebViewShowReconnect(int show) + { + DlgBase.singleton.OnWebViewShowReconnect(show); + } + + public void OnWebViewClose() + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + public void OnWebViewLiveTab() + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.OnTabLive(); + } + } + + public void ShowPandoraPopView(bool bShow) + { + bool flag = bShow && XSingleton.singleton.GameCamera != null && XSingleton.singleton.GameCamera.UnityCamera != null && !XSingleton.singleton.GameCamera.UnityCamera.enabled; + if (flag) + { + XSingleton.singleton.GameCamera.UnityCamera.enabled = true; + } + XSingleton.singleton.AddGreenLog("Pandora UiUtiliy ShowPandoraPopView bShow = " + bShow.ToString(), null, null, null, null, null); + DlgBase.singleton.SetVisible(bShow, true); + } + + public void OnWXGroupResult(string apiId, string result, int error, WXGroupCallBackType type) + { + if (type != WXGroupCallBackType.DragonGuild) + { + if (type == WXGroupCallBackType.Guild) + { + DlgBase.singleton.GuildGroupResult(apiId, result, error); + } + } + else + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.Guild; + XDragonGuildDocument.Doc.View.DragonGuildGroupResult(apiId, result, error); + } + } + + public void RefreshWXGroupBtn(WXGroupCallBackType type) + { + if (type != WXGroupCallBackType.DragonGuild) + { + if (type == WXGroupCallBackType.Guild) + { + DlgBase.singleton.RefreshWXGroupBtn(); + } + } + else + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.Guild; + XDragonGuildDocument.Doc.RefreshWXGroupBtn(); + } + } + + public void NoticeShareResult(string result, ShareCallBackType type) + { + XSingleton.singleton.AddLog("NoticeShareResult " + result + ", type = " + type.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = type != ShareCallBackType.AddQQFriend; + if (flag) + { + this.ShowSystemTip((result == "Success") ? XSingleton.singleton.GetString("GUILD_GROUP_SHARE_SUC") : XSingleton.singleton.GetString("GUILD_GROUP_SHARE_FAIL"), "fece00"); + } + else + { + this.ShowSystemTip((result == "Success") ? XSingleton.singleton.GetString("FRIEND_ADD_QQ_FRIEND_SEND_SUC") : XSingleton.singleton.GetString("FRIEND_ADD_QQ_FRIEND_SEND_FAIL"), "fece00"); + } + switch (type) + { + case ShareCallBackType.Normal: + XSingleton.singleton.NoticePandoraShareResult(result); + break; + case ShareCallBackType.GloryPic: + { + XAchievementDocument specificDocument = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + bool flag2 = result.Contains("Success"); + if (flag2) + { + specificDocument.SendWeekShareSuccess(0u); + } + break; + } + case ShareCallBackType.DungeonShare: + { + XSingleton.singleton.AddLog("DungeonShare " + result, null, null, null, null, null, XDebugColor.XDebug_None); + XAchievementDocument specificDocument2 = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + bool flag3 = result.Contains("Success"); + if (flag3) + { + specificDocument2.SendWeekShareSuccess(specificDocument2.FirstPassSceneID); + } + specificDocument2.FirstPassSceneID = 0u; + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + break; + } + case ShareCallBackType.WeekShare: + { + XAchievementDocument specificDocument3 = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + bool flag5 = result.Contains("Success"); + if (flag5) + { + specificDocument3.SendWeekShareSuccess(0u); + } + break; + } + } + } + + public bool CheckWXInstalled() + { + bool flag = XSingleton.singleton.XPlatform.CheckStatus("Weixin_Installed", ""); + bool flag2 = !flag; + bool result; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_WECHAT_NOT_INSTALLED"), "fece00"); + result = false; + } + else + { + result = true; + } + return result; + } + + public bool CheckQQInstalled() + { + bool flag = XSingleton.singleton.XPlatform.CheckStatus("QQ_Installed", ""); + bool flag2 = !flag; + bool result; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_QQ_NOT_INSTALLED"), "fece00"); + result = false; + } + else + { + result = true; + } + return result; + } + + public void UpdatePandoraSDKRedPoint(int pandoraSysID, bool showRedPoint, string module) + { + if (showRedPoint) + { + bool flag = XSingleton.singleton.IsActivityTabShow(pandoraSysID); + if (flag) + { + XSingleton.singleton.ForceUpdateSysRedPointImmediately(pandoraSysID, showRedPoint); + } + } + else + { + XSingleton.singleton.ForceUpdateSysRedPointImmediately(pandoraSysID, showRedPoint); + } + bool flag2 = module == "action"; + if (flag2) + { + XOperatingActivityDocument specificDocument = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + specificDocument.RefreshRedPoints(); + } + else + { + bool flag3 = module == "callBack"; + if (flag3) + { + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.CallLuaFunc("LuaBackflowDocument", "RefreshPandoraTabRedpoint"); + } + } + } + + public void AttachPandoraSDKRedPoint(int sysID, string module) + { + bool flag = module == "action"; + if (flag) + { + XOperatingActivityDocument specificDocument = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + specificDocument.AttachPandoraRedPoint(sysID); + } + else + { + bool flag2 = module == "callBack"; + if (flag2) + { + XBackFlowDocument specificDocument2 = XDocuments.GetSpecificDocument(XBackFlowDocument.uuID); + specificDocument2.AttachPandoraRedPoint(sysID); + } + } + } + + public void ResetAllPopPLParent() + { + XSingleton.singleton.ResetAllPopPLParent(); + } + + public void BillBoardCommonSetSpriteStr(params string[] strs) + { + this.ComSpriteStr.Clear(); + for (int i = 0; i < strs.Length; i++) + { + this.ComSpriteStr.Add(strs[i]); + } + } + + public double GetMachineTime() + { + return (double)(DateTime.Now.Ticks / 10000000L); + } + + public int GetMachineTimeFrom1970() + { + return (int)((DateTime.Now - new DateTime(1970, 1, 1)).Ticks / 10000000L); + } + + public string Decrypt(string CipherText) + { + byte[] bytes = Encoding.BigEndianUnicode.GetBytes(CipherText); + int num = bytes.Length; + byte[] array = new byte[num / 2]; + for (int i = 0; i < num; i += 4) + { + byte b = bytes[i + 1]; + byte b2 = bytes[i + 3]; + int num2 = (int)(b & 15) << 4; + int num3 = (int)(b & 240); + int num4 = (int)(b2 & 15); + int num5 = (b2 & 240) >> 4; + array[i / 2] = Convert.ToByte(num2 | num5); + array[i / 2 + 1] = Convert.ToByte(num3 | num4); + } + return Encoding.BigEndianUnicode.GetString(array, 0, array.Length); + } + + public bool CheckPlatfomStatus() + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + bool flag2 = !this.CheckQQInstalled(); + if (flag2) + { + return false; + } + } + bool flag3 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag3) + { + bool flag4 = !this.CheckWXInstalled(); + if (flag4) + { + return false; + } + } + return true; + } + + public bool IsOppositeSex(int one, int two) + { + one %= 10; + two %= 10; + List intList = XSingleton.singleton.GetIntList("MaleTypeList"); + List intList2 = XSingleton.singleton.GetIntList("FemaleTypeList"); + return (intList.Contains(one) && intList2.Contains(two)) || (intList.Contains(two) && intList2.Contains(one)); + } + + public void ShareToWXFriendBackEnd(string openID, string title, string desc, string tag) + { + Dictionary dictionary = new Dictionary(); + dictionary["openId"] = openID; + dictionary["title"] = title; + dictionary["description"] = desc; + dictionary["thumbMediaId"] = ""; + dictionary["mediaTagName"] = tag; + dictionary["messageExt"] = "ShareWithWeixin"; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("ShareToWXFriend paramStr = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("share_send_to_friend_wx", text); + } + + public void ShareToQQFreindBackEnd(string openID, string title, string desc, string tag, string targetUrl, string imageUrl, string previewText) + { + Dictionary dictionary = new Dictionary(); + dictionary["act"] = 1; + dictionary["openId"] = openID; + dictionary["title"] = title; + dictionary["summary"] = desc; + dictionary["targetUrl"] = targetUrl; + dictionary["imageUrl"] = imageUrl; + dictionary["previewText"] = previewText; + dictionary["gameTag"] = tag; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("SharePkToQQFriend paramStr = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("share_send_to_friend_qq", text); + } + + public void PandoraPicShare(string accountType, string scene, string objPath) + { + XSingleton.singleton.AddLog(string.Concat(new string[] + { + "UiUtility PandoraPicShare : accountType = ", + accountType, + ",scene = ", + scene, + ",objPath = ", + objPath + }), null, null, null, null, null, XDebugColor.XDebug_None); + GameObject gameObject = GameObject.Find(objPath); + bool flag = gameObject != null; + if (flag) + { + XSingleton.singleton.AddLog("UiUtility PandoraPicShare find obj", null, null, null, null, null, XDebugColor.XDebug_None); + Bounds boundsIncludesChildren = XSingleton.singleton.XPandoraManager.GetBoundsIncludesChildren(gameObject.transform); + Vector3 vector = XSingleton.singleton.UICamera.WorldToScreenPoint(boundsIncludesChildren.min); + Vector3 vector2 = XSingleton.singleton.UICamera.WorldToScreenPoint(boundsIncludesChildren.max); + Rect rect; + rect= new Rect(vector.x, vector.y, vector2.x - vector.x, vector2.y - vector.y); + XSingleton.singleton.PartCaptureScreen(rect, accountType, scene); + } + } + + public void OneKeyAddQQFriend(string openID, string friendName) + { + bool flag = (int)Application.platform == 8; + if (flag) + { + XSingleton.singleton.shareCallbackType = ShareCallBackType.AddQQFriend; + } + string name = XSingleton.singleton.XPlayerData.Name; + string @string = XStringDefineProxy.GetString("FRIEND_ADD_QQ_FRIEND_REMARK", new object[] + { + friendName + }); + string string2 = XStringDefineProxy.GetString("FRIEND_ADD_QQ_FRIEND", new object[] + { + name + }); + Dictionary dictionary = new Dictionary(); + dictionary["openId"] = openID; + dictionary["desc"] = @string; + dictionary["verifyMsg"] = string2; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("AddQQFriend paramStr = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("add_game_qq_friend", text); + } + + public void ShowPressToolTips(bool pressed, string content, Vector3 pos, Vector3 offset) + { + DlgBase.singleton.Setup(pressed, content, pos, offset); + } + + public bool ToDownLoadCorrectPackage(IXUIButton button) + { + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform == 11) + { + string @string = XSingleton.singleton.GetString("XUPDATE_ERROR_VERSIONNOTMATCH_ANDROID_URL"); + XSingleton.singleton.AddLog("AndroidAppStore Url: ", @string, null, null, null, null, XDebugColor.XDebug_None); + Application.OpenURL(@string); + } + } + else + { + string string2 = XSingleton.singleton.GetString("XUPDATE_ERROR_VERSIONNOTMATCH_URL"); + XSingleton.singleton.AddLog("AppStore Url: ", string2, null, null, null, null, XDebugColor.XDebug_None); + Application.OpenURL(string2); + } + return true; + } + + public bool ToDownLoadCorrectPackagePre(IXUIButton button) + { + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform == 11) + { + string @string = XSingleton.singleton.GetString("XUPDATE_ERROR_VERSIONNOTMATCH_ANDROID_PRE_URL"); + XSingleton.singleton.AddLog("AndroidAppStore Url: ", @string, null, null, null, null, XDebugColor.XDebug_None); + Application.OpenURL(@string); + } + } + else + { + string string2 = XSingleton.singleton.GetString("XUPDATE_ERROR_VERSIONNOTMATCH_URL"); + XSingleton.singleton.AddLog("AppStore Url: ", string2, null, null, null, null, XDebugColor.XDebug_None); + Application.OpenURL(string2); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/UiUtility.cs.meta b/Client/Assets/Scripts/XMainClient/UI/UiUtility.cs.meta new file mode 100644 index 00000000..8bc079b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/UiUtility.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 270c9b56c2a368449838a16a42bd081f +timeCreated: 1611403469 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs b/Client/Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs new file mode 100644 index 00000000..bc3d2f43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient.UI +{ + internal class VoiceQAAudio + { + public bool isTips; + + public ulong audioID; + + public float audioTime; + + public VoiceQATipsType tipsType; + + public float signTime; + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs.meta b/Client/Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs.meta new file mode 100644 index 00000000..6e84f615 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/VoiceQAAudio.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 334103efffd2287479f7534cb992509f +timeCreated: 1611403551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/VoiceQATipsType.cs b/Client/Assets/Scripts/XMainClient/UI/VoiceQATipsType.cs new file mode 100644 index 00000000..45f76448 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/VoiceQATipsType.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient.UI +{ + public enum VoiceQATipsType + { + WELCOME, + RIGHT, + START, + NEXT, + OVER + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/VoiceQATipsType.cs.meta b/Client/Assets/Scripts/XMainClient/UI/VoiceQATipsType.cs.meta new file mode 100644 index 00000000..3c4d2104 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/VoiceQATipsType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aec5449b84de7624391c1de80ab0d303 +timeCreated: 1611404341 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WebView.cs b/Client/Assets/Scripts/XMainClient/UI/WebView.cs new file mode 100644 index 00000000..539c4bd7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WebView.cs @@ -0,0 +1,439 @@ +using System; +using System.Collections.Generic; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class WebView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/PlatformAbility/WebViewDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private uint _network_token = 0u; + + private uint _loading_token = 0u; + + private bool _is_loading = false; + + private XMainInterfaceDocument _doc = null; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.mCloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.mBackBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBack)); + base.uiBehaviour.mCheckLive.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnModeChanged)); + base.uiBehaviour.mCheckVideo.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnModeChanged)); + base.uiBehaviour.mCollect.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCollectPage)); + base.uiBehaviour.mTryAgain.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnRetryLabel)); + } + + private void OnRedPointRefersh(bool show) + { + base.uiBehaviour.mRedPoint.SetVisible(show); + } + + protected override void OnShow() + { + base.uiBehaviour.mVideoTitle.SetVisible(false); + base.uiBehaviour.mChoiceSp.SetVisible(true); + base.uiBehaviour.mRedPoint.SetVisible(false); + base.uiBehaviour.mTryAgainTip.SetVisible(false); + this._network_token = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.OnRefreshNetWorkStatus), null); + this.StartLoading(); + base.uiBehaviour.mCheckLive.bChecked = true; + XSingleton.singleton.OnOpenWebView(); + base.uiBehaviour.mBackBtn.SetVisible(false); + base.uiBehaviour.mCloseBtn.SetVisible(true); + this.SetNetWorkStatus(0); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._network_token); + this._network_token = 0u; + XSingleton.singleton.KillTimer(this._loading_token); + this._loading_token = 0u; + this._is_loading = false; + } + + private bool OnClose(IXUIButton btn) + { + XSingleton.singleton.OnCloseWebView(); + this.SetVisible(false, true); + return true; + } + + private bool OnBack(IXUIButton btn) + { + XSingleton.singleton.OnEvalWebViewJs("DNBackClick()"); + return true; + } + + private bool OnCollectPage(IXUIButton btn) + { + XSingleton.singleton.OnEvalWebViewJs("DNCollectClick()"); + return true; + } + + public bool OnModeChanged(IXUICheckBox box) + { + bool is_loading = this._is_loading; + bool result; + if (is_loading) + { + result = false; + } + else + { + bool bChecked = box.bChecked; + if (bChecked) + { + bool flag = box.ID == 1UL; + if (flag) + { + XSingleton.singleton.AddLog("Live click", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.OnEvalWebViewJs("DNLiveClick()"); + } + else + { + bool flag2 = box.ID == 2UL; + if (flag2) + { + XSingleton.singleton.AddLog("Video click", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.OnEvalWebViewJs("DNVideoClick()"); + } + } + } + result = true; + } + return result; + } + + public void OnRetryLabel(IXUILabel label) + { + this.StartLoading(); + XSingleton.singleton.OnRefreshWebViewShow(true); + } + + public void OnShowDetail(string label) + { + base.uiBehaviour.mVideoTitle.SetVisible(true); + base.uiBehaviour.mVideoTitle.SetText(label); + base.uiBehaviour.mChoiceSp.SetVisible(false); + base.uiBehaviour.mBackBtn.SetVisible(true); + base.uiBehaviour.mCloseBtn.SetVisible(false); + } + + public void SetNetWorkStatus(int status) + { + bool flag = status == 0; + if (flag) + { + base.uiBehaviour.mNetWorkStaus.SetVisible(false); + base.uiBehaviour.mNetWorkWifi.SetVisible(true); + } + else + { + bool flag2 = status == 1; + if (flag2) + { + base.uiBehaviour.mNetWorkStaus.SetVisible(true); + base.uiBehaviour.mNetWorkWifi.SetVisible(false); + base.uiBehaviour.mNetWorkStaus.SetSprite("xh_2"); + } + else + { + base.uiBehaviour.mNetWorkStaus.SetVisible(true); + base.uiBehaviour.mNetWorkWifi.SetVisible(false); + base.uiBehaviour.mNetWorkStaus.SetSprite("xh_0"); + } + } + } + + public void OnRefreshNetWorkStatus(object obj) + { + int netWorkStatus = 0; + bool flag = Application.internetReachability == 0; + if (flag) + { + netWorkStatus = 2; + } + else + { + bool flag2 = (int)Application.internetReachability == 2; + if (flag2) + { + netWorkStatus = 0; + } + else + { + bool flag3 = (int)Application.internetReachability == 1; + if (flag3) + { + netWorkStatus = 1; + } + } + } + this.SetNetWorkStatus(netWorkStatus); + this._network_token = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.OnRefreshNetWorkStatus), null); + } + + public void OnTabLive() + { + bool flag = base.IsVisible(); + if (flag) + { + base.uiBehaviour.mCheckLive.bChecked = true; + } + } + + private void StartLoading() + { + this._is_loading = true; + this._loading_token = XSingleton.singleton.SetTimer(10f, new XTimerMgr.ElapsedEventHandler(this.OnLoadingFailed), null); + base.uiBehaviour.mLoading.SetVisible(true); + base.uiBehaviour.mTryAgainTip.SetVisible(false); + } + + private void OnLoadingFailed(object obj) + { + this._is_loading = false; + base.uiBehaviour.mLoading.SetVisible(false); + base.uiBehaviour.mTryAgainTip.SetVisible(true); + } + + public void OnLoadFinished() + { + base.uiBehaviour.mLoading.SetVisible(false); + this._is_loading = false; + XSingleton.singleton.KillTimer(this._loading_token); + this._loading_token = 0u; + } + + public void OnSetWebViewMenu(int menutype) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + bool flag2 = menutype == 0; + if (flag2) + { + base.uiBehaviour.mVideoTitle.SetVisible(false); + base.uiBehaviour.mChoiceSp.SetVisible(true); + } + else + { + base.uiBehaviour.mVideoTitle.SetVisible(true); + base.uiBehaviour.mChoiceSp.SetVisible(false); + base.uiBehaviour.mVideoTitle.SetText(""); + base.uiBehaviour.mBackBtn.SetVisible(true); + base.uiBehaviour.mCloseBtn.SetVisible(false); + } + } + } + + public void OnWebViewBackGame(int backtype) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + bool flag2 = backtype == 0; + if (flag2) + { + base.uiBehaviour.mVideoTitle.SetVisible(false); + base.uiBehaviour.mChoiceSp.SetVisible(true); + } + else + { + this.SetVisible(false, true); + } + } + } + + public void OnWebViewRefershRefPoint(string jsonstr) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + object obj = Json.Deserialize(jsonstr); + Dictionary dictionary = obj as Dictionary; + bool flag2 = dictionary.ContainsKey("extendMenus"); + if (flag2) + { + object obj2 = dictionary["extendMenus"]; + List list = obj2 as List; + bool flag3 = list != null && list.Count > 0; + if (flag3) + { + Dictionary dictionary2 = list[0] as Dictionary; + bool flag4 = dictionary2 != null && dictionary2.ContainsKey("isRed"); + if (flag4) + { + int num = 0; + int.TryParse(dictionary2["isRed"].ToString(), out num); + base.uiBehaviour.mRedPoint.SetVisible(num == 1); + } + } + } + } + } + + public void OnWebViewSetheaderInfo(string jsonstr) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + this.OnWebViewRefershRefPoint(jsonstr); + object obj = Json.Deserialize(jsonstr); + Dictionary dictionary = obj as Dictionary; + bool flag2 = dictionary.ContainsKey("title"); + if (flag2) + { + string text = dictionary["title"] as string; + bool flag3 = !string.IsNullOrEmpty(text); + if (flag3) + { + base.uiBehaviour.mVideoTitle.SetText(text); + base.uiBehaviour.mBackBtn.SetVisible(true); + base.uiBehaviour.mCloseBtn.SetVisible(false); + } + } + } + } + + public void OnWebViewCloseLoading(int show) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + bool flag2 = show == 1; + if (flag2) + { + base.uiBehaviour.mLoading.SetVisible(true); + base.uiBehaviour.mTryAgainTip.SetVisible(false); + this._is_loading = true; + this._loading_token = XSingleton.singleton.SetTimer(10f, new XTimerMgr.ElapsedEventHandler(this.OnLoadingFailed), null); + } + else + { + base.uiBehaviour.mLoading.SetVisible(false); + XSingleton.singleton.KillTimer(this._loading_token); + this._loading_token = 0u; + this._is_loading = false; + } + } + } + + public void OnWebViewShowReconnect(int show) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + bool flag2 = show == 1; + if (flag2) + { + base.uiBehaviour.mLoading.SetVisible(false); + base.uiBehaviour.mTryAgainTip.SetVisible(true); + } + else + { + base.uiBehaviour.mTryAgainTip.SetVisible(false); + } + } + } + + public void OnScreenLock(bool islock) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + XSingleton.singleton.OnWebViewScreenLock(islock); + } + } + + public void HandleScreenLock(string msg) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + XSingleton.singleton.AddLog("Screen lock: ", msg, null, null, null, null, XDebugColor.XDebug_None); + object obj = Json.Deserialize(msg); + Dictionary dictionary = obj as Dictionary; + bool flag2 = dictionary.ContainsKey("data"); + if (flag2) + { + Dictionary dictionary2 = dictionary["data"] as Dictionary; + bool flag3 = dictionary2 != null; + if (flag3) + { + bool flag4 = dictionary2.ContainsKey("flag"); + if (flag4) + { + bool flag5 = dictionary2["flag"].ToString() == "lock"; + bool islock = flag5; + XSingleton.singleton.AddLog("Will eval screen lock: ", islock.ToString(), null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.OnWebViewScreenLock(islock); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WebView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WebView.cs.meta new file mode 100644 index 00000000..f81388c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WebView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 603e19574c8a6984892d026ad910e024 +timeCreated: 1611403833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WebViewBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/WebViewBehaviour.cs new file mode 100644 index 00000000..20c4c04a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WebViewBehaviour.cs @@ -0,0 +1,56 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class WebViewBehaviour : DlgBehaviourBase + { + public IXUIButton mCloseBtn; + + public IXUIButton mBackBtn; + + public IXUIButton mCollect; + + public IXUICheckBox mCheckLive; + + public IXUICheckBox mCheckVideo; + + public IXUILabel mTryAgain; + + public IXUILabel mTryAgainTip; + + public IXUILabel mVideoTitle; + + public IXUISprite mLoading; + + public IXUISprite mChoiceSp; + + public IXUISprite mRedPoint; + + public IXUISprite mNetWorkStaus; + + public IXUISprite mNetWorkWifi; + + private void Awake() + { + this.mCloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.mCloseBtn.ID = 1UL; + this.mBackBtn = (base.transform.Find("Bg/Return").GetComponent("XUIButton") as IXUIButton); + this.mBackBtn.ID = 2UL; + this.mCollect = (base.transform.Find("Bg/Collect").GetComponent("XUIButton") as IXUIButton); + this.mCheckLive = (base.transform.Find("Bg/TabTpl/tab1/template/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.mCheckLive.ID = 1UL; + this.mCheckVideo = (base.transform.Find("Bg/TabTpl/tab2/template/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.mCheckVideo.ID = 2UL; + this.mTryAgain = (base.transform.Find("Bg/Tip/Again").GetComponent("XUILabel") as IXUILabel); + this.mTryAgainTip = (base.transform.Find("Bg/Tip").GetComponent("XUILabel") as IXUILabel); + this.mVideoTitle = (base.transform.Find("Bg/Title").GetComponent("XUILabel") as IXUILabel); + this.mChoiceSp = (base.transform.Find("Bg/TabTpl").GetComponent("XUISprite") as IXUISprite); + this.mRedPoint = (base.transform.Find("Bg/Collect/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.mNetWorkStaus = (base.transform.Find("Bg/Sys4G").GetComponent("XUISprite") as IXUISprite); + this.mNetWorkWifi = (base.transform.Find("Bg/SysWifi").GetComponent("XUISprite") as IXUISprite); + this.mLoading = (base.transform.Find("Bg/loading").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WebViewBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WebViewBehaviour.cs.meta new file mode 100644 index 00000000..e38a74ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WebViewBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e5e75fdc12d7e2b4b88ad2c9be7bdbec +timeCreated: 1611404744 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyBehaviour.cs new file mode 100644 index 00000000..588c2ce8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyBehaviour.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class WeddingEnterApplyBehaviour : DlgBehaviourBase + { + public IXUICheckBox m_ToggleEnter; + + public IXUICheckBox m_ToggleApply; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public IXUILabel m_EmptyList; + + public IXUILabel m_EmptyList2; + + public IXUIButton m_GoApplyTab; + + public IXUIButton m_ClosedSpr; + + public IXUILabel m_Title; + + private void Awake() + { + this.m_ToggleEnter = (base.transform.Find("Bg/ToggleEnter").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ToggleApply = (base.transform.Find("Bg/ToggleApply").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ToggleEnter.ID = 0UL; + this.m_ToggleApply.ID = 1UL; + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_EmptyList = (base.transform.Find("Bg/Empty").GetComponent("XUILabel") as IXUILabel); + this.m_EmptyList2 = (base.transform.Find("Bg/Empty2").GetComponent("XUILabel") as IXUILabel); + this.m_GoApplyTab = (base.transform.Find("Bg/GoApply").GetComponent("XUIButton") as IXUIButton); + this.m_Title = (base.transform.Find("Bg/Title").GetComponent("XUILabel") as IXUILabel); + this.m_ClosedSpr = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyBehaviour.cs.meta new file mode 100644 index 00000000..a938d5b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f0bfe9ec97723e40a03198f047f45fb +timeCreated: 1611403699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyView.cs b/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyView.cs new file mode 100644 index 00000000..e4454cb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyView.cs @@ -0,0 +1,290 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class WeddingEnterApplyView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Wedding/WeddingEnterApplyDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private int m_SelectedTab = -1; + + private uint _CDToken = 0u; + + private List m_TimeLabelList = new List(); + + private List m_TimeInvID = new List(); + + private Dictionary m_TimeDic = new Dictionary(); + + protected override void Init() + { + base.uiBehaviour.m_EmptyList.SetText(XSingleton.singleton.GetString("WeddingEnterEmpty")); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_ToggleEnter.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnToggleChanged)); + base.uiBehaviour.m_ToggleApply.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnToggleChanged)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + base.uiBehaviour.m_ClosedSpr.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseClicked)); + base.uiBehaviour.m_GoApplyTab.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoApplyTabClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_ToggleEnter.bChecked = true; + XWeddingDocument specificDocument = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + specificDocument.GetAllWeddingInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._CDToken); + } + + public override void StackRefresh() + { + XWeddingDocument specificDocument = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + specificDocument.GetAllWeddingInfo(); + } + + public void RefreshInfo() + { + bool flag = this.m_SelectedTab < 0; + if (!flag) + { + bool active = this.m_SelectedTab == 0 && this.GetCurrWeddingList().Count == 0; + base.uiBehaviour.m_EmptyList.gameObject.SetActive(active); + base.uiBehaviour.m_GoApplyTab.gameObject.SetActive(active); + bool active2 = this.m_SelectedTab == 1 && this.GetCurrWeddingList().Count == 0; + base.uiBehaviour.m_EmptyList2.gameObject.SetActive(active2); + this.StartTimer(); + base.uiBehaviour.m_WrapContent.SetContentCount(this.GetCurrWeddingList().Count, false); + } + } + + private List GetCurrWeddingList() + { + XWeddingDocument specificDocument = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + bool flag = this.m_SelectedTab == 0; + List result; + if (flag) + { + result = specificDocument.CanEnterWedding; + } + else + { + result = specificDocument.CanApplyWedding; + } + return result; + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.m_SelectedTab < 0; + if (!flag) + { + bool flag2 = index >= this.GetCurrWeddingList().Count; + if (!flag2) + { + List currWeddingList = this.GetCurrWeddingList(); + WeddingBriefInfo weddingBriefInfo = currWeddingList[index]; + bool flag3 = weddingBriefInfo == null; + if (!flag3) + { + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + string @string = XStringDefineProxy.GetString((weddingBriefInfo.brief.type == WeddingType.WeddingType_Normal) ? "WeddingEnterApplyNameN" : "WeddingEnterApplyNameS", new object[] + { + weddingBriefInfo.brief.role1.name, + weddingBriefInfo.brief.role2.name + }); + ixuilabel.SetText(@string); + IXUILabel ixuilabel2 = t.Find("Invited").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText((this.m_SelectedTab == 0) ? XStringDefineProxy.GetString("WeddingEnterApplyType1") : XStringDefineProxy.GetString("WeddingEnterApplyType2")); + IXUIButton ixuibutton = t.Find("Invited/BtnInvite").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = weddingBriefInfo.brief.weddingid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWeddingBtnClicked)); + ixuilabel2.gameObject.SetActive(!weddingBriefInfo.isApply); + GameObject gameObject = t.Find("Bg2").gameObject; + gameObject.SetActive(weddingBriefInfo.isApply); + IXUILabel ixuilabel3 = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + int num = this.m_TimeLabelList.IndexOf(ixuilabel3); + bool flag4 = num >= 0 && num < this.m_TimeInvID.Count; + if (flag4) + { + this.m_TimeInvID[num] = weddingBriefInfo.brief.weddingid; + } + else + { + this.m_TimeLabelList.Add(ixuilabel3); + this.m_TimeInvID.Add(weddingBriefInfo.brief.weddingid); + } + uint num2; + bool flag5 = this.m_TimeDic.TryGetValue(weddingBriefInfo.brief.weddingid, out num2); + if (flag5) + { + bool flag6 = num2 > 0u; + if (flag6) + { + ixuilabel3.SetText(XSingleton.singleton.TimeFormatString((int)num2, 2, 3, 4, false, true)); + } + else + { + ixuilabel3.SetText(XSingleton.singleton.GetString("WeddingEnterApplyEnd")); + } + } + } + } + } + } + + public void StartTimer() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.m_TimeLabelList.Clear(); + this.m_TimeInvID.Clear(); + this.m_TimeDic.Clear(); + List currWeddingList = this.GetCurrWeddingList(); + for (int i = 0; i < currWeddingList.Count; i++) + { + this.m_TimeDic[currWeddingList[i].brief.weddingid] = currWeddingList[i].brief.lefttime; + } + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + } + + private void LeftTimeUpdate(object o) + { + List currWeddingList = this.GetCurrWeddingList(); + for (int i = 0; i < currWeddingList.Count; i++) + { + bool flag = currWeddingList[i].brief.lefttime > 0u; + if (flag) + { + WeddingBrief brief = currWeddingList[i].brief; + uint lefttime = brief.lefttime; + brief.lefttime = lefttime - 1u; + } + this.m_TimeDic[currWeddingList[i].brief.weddingid] = currWeddingList[i].brief.lefttime; + int num = this.m_TimeInvID.IndexOf(currWeddingList[i].brief.weddingid); + bool flag2 = num >= 0 && num < this.m_TimeLabelList.Count; + if (flag2) + { + IXUILabel ixuilabel = this.m_TimeLabelList[num]; + bool flag3 = ixuilabel.IsVisible(); + if (flag3) + { + bool flag4 = currWeddingList[i].brief.lefttime > 0u; + if (flag4) + { + ixuilabel.SetText(XSingleton.singleton.TimeFormatString((int)currWeddingList[i].brief.lefttime, 2, 3, 4, false, true)); + } + else + { + ixuilabel.SetText(XSingleton.singleton.GetString("WeddingEnterApplyEnd")); + } + } + } + } + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + + private bool OnWeddingBtnClicked(IXUIButton btn) + { + ulong id = btn.ID; + XWeddingDocument specificDocument = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + bool flag = this.m_SelectedTab == 0; + if (flag) + { + specificDocument.EnterWedding(id); + } + else + { + specificDocument.WeddingInviteOperate(WeddingInviteOperType.Wedding_Apply, XSingleton.singleton.XPlayerData.RoleID, id); + this.UpdateApplyBtnState(btn); + } + return true; + } + + public void UpdateApplyBtnState(IXUIButton btn) + { + GameObject gameObject = btn.gameObject.transform.parent.parent.Find("Bg2").gameObject; + gameObject.SetActive(true); + btn.gameObject.transform.parent.gameObject.SetActive(false); + } + + private bool OnGoApplyTabClicked(IXUIButton btn) + { + base.uiBehaviour.m_ToggleApply.bChecked = true; + return true; + } + + private bool _OnCloseClicked(IXUIButton iSp) + { + this.SetVisible(false, true); + return true; + } + + private bool _OnToggleChanged(IXUICheckBox go) + { + bool flag = !go.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_SelectedTab = (int)go.ID; + base.uiBehaviour.m_Title.SetText((this.m_SelectedTab == 0) ? XStringDefineProxy.GetString("WeddingEnterApplyTab1") : XStringDefineProxy.GetString("WeddingEnterApplyTab2")); + XWeddingDocument specificDocument = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + specificDocument.GetAllWeddingInfo(); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyView.cs.meta new file mode 100644 index 00000000..aa73efca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeddingEnterApplyView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f68381fbc7cfd024b88722841902d3ab +timeCreated: 1611404882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WeddingInviteTab.cs b/Client/Assets/Scripts/XMainClient/UI/WeddingInviteTab.cs new file mode 100644 index 00000000..76b6863e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeddingInviteTab.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient.UI +{ + public enum WeddingInviteTab + { + WeddingFriends, + WeddingGuild, + WeddingInvited, + WeddingApplyList + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WeddingInviteTab.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WeddingInviteTab.cs.meta new file mode 100644 index 00000000..a2bae78e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeddingInviteTab.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e09d5e0e5f421d408fbadb0ee306479 +timeCreated: 1611404239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WeddingSceneHandler.cs b/Client/Assets/Scripts/XMainClient/UI/WeddingSceneHandler.cs new file mode 100644 index 00000000..e7c0be48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeddingSceneHandler.cs @@ -0,0 +1,581 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class WeddingSceneHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Wedding/WeddingSceneHandler"; + } + } + + private IXUIButton m_exitHomeBtn; + + private IXUIButton m_FlowerBtn; + + private GameObject m_FlowerCD; + + private IXUILabel m_FlowerCDTime; + + private IXUIButton m_FireworksBtn; + + private GameObject m_FireworksCD; + + private IXUILabel m_FireworksCDTime; + + private IXUIButton m_SwearBtn; + + private IXUIButton m_InviteFriendsBtn; + + private IXUILabel m_Happiness; + + private IXUILabel m_HappinessMax; + + private IXUILabel m_Content; + + private IXUILabel m_WeddingName; + + private IXUIList m_BtnsGrid; + + private IXUISprite m_HappinessBtn; + + private GameObject m_SwearDlg; + + private IXUIButton m_AskSwearBtn; + + private IXUILabel m_HappinessValue; + + private IXUIButton m_CloseSwearBtn; + + private GameObject m_SwearFX; + + private GameObject m_InviteRedPoint; + + private IXUILabel m_Tip1; + + private IXUILabel m_Tip2; + + private XFx m_Fireworks; + + private XFx m_Candy; + + private uint m_Tip1CDToken; + + private string m_Tip1Content; + + private bool m_UpdateTip2 = false; + + private int m_FlowerTime = 0; + + private int m_FireworksTime = 0; + + private uint _CDTokenFlower = 0u; + + private uint _CDTokenFireworks = 0u; + + private List m_vecGuestShowTime = new List(); + + private int m_guestIndex = 0; + + private uint m_weddingRunTime = 0u; + + private bool m_HasVows = false; + + private bool m_HasShowVows = false; + + protected override void Init() + { + this.m_exitHomeBtn = (base.PanelObject.transform.Find("ExitHome").GetComponent("XUIButton") as IXUIButton); + this.m_Happiness = (base.PanelObject.transform.Find("Happiness/Value").GetComponent("XUILabel") as IXUILabel); + this.m_HappinessMax = (base.PanelObject.transform.Find("Happiness/Max").GetComponent("XUILabel") as IXUILabel); + this.m_HappinessBtn = (base.PanelObject.transform.Find("Happiness/P").GetComponent("XUISprite") as IXUISprite); + this.m_FlowerBtn = (base.PanelObject.transform.Find("Grid/SysAFlower").GetComponent("XUIButton") as IXUIButton); + this.m_FlowerCDTime = (base.PanelObject.transform.Find("Grid/SysAFlower/Mask/time").GetComponent("XUILabel") as IXUILabel); + this.m_FlowerCD = base.PanelObject.transform.Find("Grid/SysAFlower/Mask").gameObject; + this.m_FlowerCD.SetActive(false); + this.m_FireworksBtn = (base.PanelObject.transform.Find("Grid/SysBFireworks").GetComponent("XUIButton") as IXUIButton); + this.m_FireworksCDTime = (base.PanelObject.transform.Find("Grid/SysBFireworks/Mask/time").GetComponent("XUILabel") as IXUILabel); + this.m_FireworksCD = base.PanelObject.transform.Find("Grid/SysBFireworks/Mask").gameObject; + this.m_FireworksCD.SetActive(false); + this.m_SwearBtn = (base.PanelObject.transform.Find("Grid/SysDSwear").GetComponent("XUIButton") as IXUIButton); + this.m_InviteFriendsBtn = (base.PanelObject.transform.Find("Grid/SysCInvite").GetComponent("XUIButton") as IXUIButton); + this.m_InviteRedPoint = base.PanelObject.transform.Find("Grid/SysCInvite/RedPoint").gameObject; + this.m_WeddingName = (base.PanelObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_BtnsGrid = (base.PanelObject.transform.Find("Grid").GetComponent("XUIList") as IXUIList); + this.m_SwearFX = base.PanelObject.transform.Find("Grid/SysDSwear/FX").gameObject; + this.m_SwearDlg = base.PanelObject.transform.Find("SwearDlg").gameObject; + this.m_AskSwearBtn = (base.PanelObject.transform.Find("SwearDlg/Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.m_CloseSwearBtn = (base.PanelObject.transform.Find("SwearDlg/Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_HappinessValue = (base.PanelObject.transform.Find("SwearDlg/Bg/Happiness/Value").GetComponent("XUILabel") as IXUILabel); + this.m_Content = (base.PanelObject.transform.Find("SwearDlg/Bg/Label").GetComponent("XUILabel") as IXUILabel); + this.m_SwearDlg.gameObject.SetActive(false); + this.m_Tip1 = (base.PanelObject.transform.Find("Tip1").GetComponent("XUILabel") as IXUILabel); + this.m_Tip1.gameObject.SetActive(false); + this.m_Tip2 = (base.PanelObject.transform.Find("Tip2").GetComponent("XUILabel") as IXUILabel); + this.m_Tip2.gameObject.SetActive(false); + base.Init(); + } + + public override void RegisterEvent() + { + this.m_exitHomeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickExitHome)); + this.m_FlowerBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickFlowerBtn)); + this.m_FireworksBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickFireworksBtn)); + this.m_SwearBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSwearBtn)); + this.m_InviteFriendsBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickInviteFriendsBtn)); + this.m_AskSwearBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAskSwearBtn)); + this.m_CloseSwearBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseSwear)); + this.m_HappinessBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHappinessClick)); + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_HappinessMax.SetText(string.Format("/{0}", XSingleton.singleton.GetValue("WeddingMaxHappyness"))); + this.m_vecGuestShowTime = XSingleton.singleton.GetUIntList("WeddingGuestShowTime"); + this.m_weddingRunTime = uint.Parse(XSingleton.singleton.GetValue("WeddingRunningTime")); + this.m_Content.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeddingSwearTip"))); + bool flag = XWeddingDocument.Doc.CurrWeddingInfo != null && XWeddingDocument.Doc.CurrWeddingInfo.role1 != null && XWeddingDocument.Doc.CurrWeddingInfo.role2 != null; + if (flag) + { + this.m_WeddingName.SetText(XStringDefineProxy.GetString("WeddingName", new object[] + { + XWeddingDocument.Doc.CurrWeddingInfo.role1.name, + XWeddingDocument.Doc.CurrWeddingInfo.role2.name + })); + this.m_SwearBtn.gameObject.SetActive(this.IsWeddingLover()); + this.m_InviteFriendsBtn.gameObject.SetActive(this.IsWeddingLover()); + this.m_BtnsGrid.Refresh(); + } + this.m_FlowerCD.SetActive(false); + this.m_FireworksCD.SetActive(false); + this.m_HasVows = false; + this.m_SwearFX.SetActive(false); + this.m_InviteRedPoint.SetActive(XWeddingDocument.Doc.HasApplyCandidate); + this.m_HasShowVows = false; + } + + private bool IsWeddingLover() + { + bool flag = XWeddingDocument.Doc.CurrWeddingInfo != null && XWeddingDocument.Doc.CurrWeddingInfo.role1 != null && XWeddingDocument.Doc.CurrWeddingInfo.role2 != null; + bool result; + if (flag) + { + ulong roleID = XSingleton.singleton.XPlayerData.RoleID; + result = (roleID == XWeddingDocument.Doc.CurrWeddingInfo.role1.roleid || roleID == XWeddingDocument.Doc.CurrWeddingInfo.role2.roleid); + } + else + { + result = false; + } + return result; + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_Fireworks != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_Fireworks, true); + this.m_Fireworks = null; + } + bool flag2 = this.m_Candy != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_Candy, true); + this.m_Candy = null; + } + XSingleton.singleton.KillTimer(this.m_Tip1CDToken); + XSingleton.singleton.KillTimer(this._CDTokenFlower); + XSingleton.singleton.KillTimer(this._CDTokenFireworks); + } + + private bool OnClickExitHome(IXUIButton btn) + { + XSingleton.singleton.ReqLeaveScene(); + return true; + } + + private bool OnClickFlowerBtn(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("WeddingFlowerCost", XGlobalConfig.SequenceSeparator); + uint num = uint.Parse(andSeparateValue[1]) * XWeddingDocument.Doc.AllAttendPlayerCount; + string text = ""; + ItemList.RowData itemConf = XBagDocument.GetItemConf(int.Parse(andSeparateValue[0])); + bool flag = itemConf != null; + if (flag) + { + text = XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u); + } + string mainLabel = string.Format(XStringDefineProxy.GetString("WeddingFlowerTip", new object[] + { + num, + text + }), new object[0]); + string @string = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL); + DlgBase.singleton.SetLabelsWithSymbols(mainLabel, @string, string2); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.EnsureFlower), null); + return true; + } + + private bool EnsureFlower(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XWeddingDocument.Doc.WeddingSceneOperator(WeddingOperType.WeddingOper_Flower); + return true; + } + + public void RefreshInviteRedPoint() + { + this.m_InviteRedPoint.SetActive(XWeddingDocument.Doc.HasApplyCandidate); + } + + public void OnFlowerRain() + { + Transform transform = XSingleton.singleton.UIRoot.Find("Camera").transform; + string value = XSingleton.singleton.GetValue("WeddingFlowerFxPath"); + XFx xfx = XSingleton.singleton.CreateUIFx(value, transform, false); + xfx.DelayDestroy = 3f; + XSingleton.singleton.DestroyFx(xfx, false); + } + + private bool OnClickFireworksBtn(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("WeddingFireworksCost", XGlobalConfig.SequenceSeparator); + uint num = uint.Parse(andSeparateValue[1]) * XWeddingDocument.Doc.AllAttendPlayerCount; + string text = ""; + ItemList.RowData itemConf = XBagDocument.GetItemConf(int.Parse(andSeparateValue[0])); + bool flag = itemConf != null; + if (flag) + { + text = XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u); + } + string mainLabel = string.Format(XStringDefineProxy.GetString("WeddingFireworksTip", new object[] + { + num, + text + }), new object[0]); + string @string = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL); + DlgBase.singleton.SetLabelsWithSymbols(mainLabel, @string, string2); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.EnsureFireworks), null); + return true; + } + + private bool EnsureFireworks(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XWeddingDocument.Doc.WeddingSceneOperator(WeddingOperType.WeddingOper_Fireworks); + return true; + } + + public void OnFireworks() + { + bool flag = this.m_Fireworks != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_Fireworks, true); + } + Transform transform = XSingleton.singleton.UIRoot.Find("Camera").transform; + string value = XSingleton.singleton.GetValue("WeddingFireworksPath"); + this.m_Fireworks = XSingleton.singleton.CreateUIFx(value, transform, false); + } + + public void OnCandyFx() + { + bool flag = this.m_Candy != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_Candy, true); + } + Transform transform = XSingleton.singleton.UIRoot.Find("Camera").transform; + string value = XSingleton.singleton.GetValue("WeddingCandyPath"); + this.m_Candy = XSingleton.singleton.CreateUIFx(value, transform, false); + } + + private bool OnClickSwearBtn(IXUIButton btn) + { + this.m_SwearDlg.SetActive(true); + return true; + } + + public void CoolDownBtn(WeddingOperType type) + { + if (type != WeddingOperType.WeddingOper_Flower) + { + if (type == WeddingOperType.WeddingOper_Fireworks) + { + this.m_FireworksTime = XSingleton.singleton.GetInt("WeddingFireworksCD"); + this.m_FireworksCDTime.SetText(this.m_FireworksTime.ToString()); + this.m_FireworksCD.SetActive(true); + this.StarFireworksTimer(); + } + } + else + { + this.m_FlowerTime = XSingleton.singleton.GetInt("WeddingFlowCD"); + this.m_FlowerCDTime.SetText(this.m_FlowerTime.ToString()); + this.m_FlowerCD.SetActive(true); + this.StarFlowerTimer(); + } + } + + private void StarFlowerTimer() + { + bool flag = !base.IsVisible(); + if (!flag) + { + XSingleton.singleton.KillTimer(this._CDTokenFlower); + this._CDTokenFlower = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdateFlower), null); + } + } + + private void StarFireworksTimer() + { + bool flag = !base.IsVisible(); + if (!flag) + { + XSingleton.singleton.KillTimer(this._CDTokenFireworks); + this._CDTokenFireworks = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdateFireworks), null); + } + } + + private void LeftTimeUpdateFlower(object o) + { + this.m_FlowerTime--; + XSingleton.singleton.KillTimer(this._CDTokenFlower); + bool flag = this.m_FlowerTime <= 0; + if (flag) + { + this.m_FlowerCD.SetActive(false); + } + else + { + this.m_FlowerCDTime.SetText(this.m_FlowerTime.ToString()); + this._CDTokenFlower = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdateFlower), null); + } + } + + private void LeftTimeUpdateFireworks(object o) + { + this.m_FireworksTime--; + XSingleton.singleton.KillTimer(this._CDTokenFireworks); + bool flag = this.m_FireworksTime <= 0; + if (flag) + { + this.m_FireworksCD.SetActive(false); + } + else + { + this.m_FireworksCDTime.SetText(this.m_FireworksTime.ToString()); + this._CDTokenFireworks = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdateFireworks), null); + } + } + + private bool OnClickInviteFriendsBtn(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + public void ShowPartnerSwearNtf(string name) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string @string = XStringDefineProxy.GetString("WeddingSwearTitle"); + string mainLabel = string.Format(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeddingSwearContent")), name); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string3 = XStringDefineProxy.GetString("WeddingSwearCancel"); + DlgBase.singleton.SetTitle(@string); + DlgBase.singleton.SetLabelsWithSymbols(mainLabel, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.EnsureSwear), new ButtonClickEventHandler(this.NotEnsureSwear)); + } + + private bool EnsureSwear(IXUIButton btn) + { + XWeddingDocument.Doc.WeddingSceneOperator(WeddingOperType.WeddingOper_AgreeVows); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool NotEnsureSwear(IXUIButton btn) + { + XWeddingDocument.Doc.WeddingSceneOperator(WeddingOperType.WeddingOper_DisAgreeVows); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnAskSwearBtn(IXUIButton btn) + { + XWeddingDocument.Doc.WeddingSceneOperator(WeddingOperType.WeddingOper_ApplyVows); + return true; + } + + public void ApplyVowsSuss() + { + bool activeSelf = this.m_SwearDlg.activeSelf; + if (activeSelf) + { + this.m_SwearDlg.SetActive(false); + } + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WeddingSwearSucc"), "fece00"); + } + + private bool OnCloseSwear(IXUIButton btn) + { + this.m_SwearDlg.SetActive(false); + return true; + } + + public void UpdateHappiness(uint happiness) + { + bool flag = (ulong)happiness >= (ulong)((long)XSingleton.singleton.GetInt("WeddingMaxHappyness")) && !this.m_HasVows && this.IsWeddingLover() && !this.m_HasShowVows; + if (flag) + { + this.OnSwearPop(); + this.m_SwearFX.SetActive(true); + this.m_HasShowVows = true; + } + this.m_HappinessValue.SetText(happiness.ToString()); + this.m_Happiness.SetText(happiness.ToString()); + } + + public void OnVowsPrepare() + { + this.m_HasVows = true; + bool flag = this.IsWeddingLover(); + if (flag) + { + this.m_SwearFX.SetActive(false); + } + } + + public void UpdateWeddingState(WeddingState state, uint lefttime, bool vows) + { + this.m_HasVows = vows; + XSingleton.singleton.AddLog("weddingstate:" + state.ToString() + ", lefttime:" + lefttime.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + WeddingState weddingState = state; + if (weddingState != WeddingState.WeddingState_Prepare) + { + if (weddingState == WeddingState.WeddingState_Running) + { + this.m_Tip1Content = "WeddingState2"; + this.m_UpdateTip2 = true; + XSingleton.singleton.KillTimer(this.m_Tip1CDToken); + this.m_Tip1CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTime1Update), lefttime); + this.SetTipTime(this.m_Tip1, lefttime, this.m_Tip1Content); + this.CheckGuestShow(lefttime); + } + } + else + { + this.m_Tip1Content = "WeddingState1"; + this.m_UpdateTip2 = false; + XSingleton.singleton.KillTimer(this.m_Tip1CDToken); + this.m_Tip1CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTime1Update), lefttime); + this.SetTipTime(this.m_Tip1, lefttime, this.m_Tip1Content); + bool flag = this.IsWeddingLover(); + if (flag) + { + this.m_Tip2.SetText(XStringDefineProxy.GetString("WeddingState4")); + this.m_Tip2.gameObject.SetActive(true); + } + } + } + + private void LeftTime1Update(object o) + { + uint num = (uint)o - 1u; + this.SetTipTime(this.m_Tip1, num, this.m_Tip1Content); + bool updateTip = this.m_UpdateTip2; + if (updateTip) + { + this.CheckGuestShow(num); + } + XSingleton.singleton.KillTimer(this.m_Tip1CDToken); + bool flag = num > 0u; + if (flag) + { + this.m_Tip1CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTime1Update), num); + } + } + + private void CheckGuestShow(uint weddingLeftTime) + { + bool flag = this.m_guestIndex >= this.m_vecGuestShowTime.Count; + if (!flag) + { + uint num = this.m_weddingRunTime - weddingLeftTime; + uint num2 = this.m_vecGuestShowTime[this.m_guestIndex]; + uint time = (num2 > num) ? (num2 - num) : 0u; + this.SetTipTime(this.m_Tip2, time, "WeddingState3"); + bool flag2 = num2 <= num; + if (flag2) + { + this.m_guestIndex++; + } + } + } + + private void SetTipTime(IXUILabel label, uint time, string content) + { + bool flag = time > 0u && time < 60u; + if (flag) + { + label.SetText(XStringDefineProxy.GetString(content, new object[] + { + time, + XSingleton.singleton.GetString("SECOND_DUARATION") + })); + } + else + { + uint num = time / 60u; + label.SetText(XStringDefineProxy.GetString(content, new object[] + { + num, + XSingleton.singleton.GetString("MINUTE_DUARATION") + })); + } + label.gameObject.SetActive(time > 0u); + } + + private void OnHappinessClick(IXUISprite btn) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(true); + string @string = XStringDefineProxy.GetString("WeddingHappinessTitle"); + string mainLabel = string.Format(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeddingHappinessContent")), new object[0]); + DlgBase.singleton.SetTitle(@string); + DlgBase.singleton.SetLabelsWithSymbols(mainLabel, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.CloseHappinessDlg), null); + } + + private bool CloseHappinessDlg(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public void OnSwearPop() + { + this.m_SwearDlg.SetActive(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WeddingSceneHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WeddingSceneHandler.cs.meta new file mode 100644 index 00000000..1d92df88 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeddingSceneHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c63c7e9eb33517140a5f25ab444902dc +timeCreated: 1611404508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WeekNestDlg.cs b/Client/Assets/Scripts/XMainClient/UI/WeekNestDlg.cs new file mode 100644 index 00000000..f09939ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeekNestDlg.cs @@ -0,0 +1,225 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class WeekNestDlg : DlgBase + { + public override string fileName + { + get + { + return "OperatingActivity/WeekNest"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private float m_fCoolTime = 0.5f; + + private float m_fLastClickBtnTime = 0f; + + private XWeekNestDocument m_doc; + + public WeekNestRankHandler m_weekNestRankHandler; + + protected override void Init() + { + base.Init(); + this.m_doc = XWeekNestDocument.Doc; + this.m_doc.View = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_goBattleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoBattleClicked)); + base.uiBehaviour.m_rankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankBtnClicked)); + base.uiBehaviour.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClosed)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Activity_GoddessTrial); + return true; + } + + protected override void OnShow() + { + this.m_doc.HadRedDot = false; + base.uiBehaviour.m_tipsLab.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeekNestTips"))); + this.m_doc.ReqTeamCount(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnUnload() + { + base.uiBehaviour.m_bgTexture.SetTexturePath(""); + DlgHandlerBase.EnsureUnload(ref this.m_weekNestRankHandler); + base.OnUnload(); + } + + public void Resfresh() + { + this.FillContent(); + } + + private void FillContent() + { + XExpeditionDocument xexpeditionDocument = XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument; + ExpeditionTable.RowData expeditionDataByID = xexpeditionDocument.GetExpeditionDataByID(this.m_doc.CurDNid); + int dayCount = xexpeditionDocument.GetDayCount(TeamLevelType.TeamLevelWeekNest, null); + int dayMaxCount = xexpeditionDocument.GetDayMaxCount(TeamLevelType.TeamLevelWeekNest, null); + base.uiBehaviour.m_timesLab.SetText(string.Format("{0}{1}/{2}", XSingleton.singleton.GetString("WeekNestFight"), dayCount, dayMaxCount)); + this.FillBgTexture(); + bool flag = expeditionDataByID != null; + if (flag) + { + base.uiBehaviour.m_tittleLab.SetText(expeditionDataByID.DNExpeditionName); + this.FillItem(expeditionDataByID); + } + } + + private void FillItem(ExpeditionTable.RowData rowData) + { + base.uiBehaviour.m_ItemPool.ReturnAll(false); + bool flag = rowData.ViewableDropList == null || rowData.ViewableDropList.Length == 0; + if (!flag) + { + for (int i = 0; i < rowData.ViewableDropList.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_itemsGo.transform; + gameObject.name = i.ToString(); + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(base.uiBehaviour.m_ItemPool.TplWidth * i), 0f, 0f); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rowData.ViewableDropList[i]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.ViewableDropList[i], 0, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + + private void FillBgTexture() + { + base.uiBehaviour.m_bgTexture.SetTexturePath("atlas/UI/common/Pic/" + this.m_doc.GetPicNameByDNid((uint)this.m_doc.CurDNid)); + } + + private bool OnGoBattleClicked(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(this.m_doc.CurDNid); + result = true; + } + return result; + } + + private bool OnRankBtnClicked(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + DlgHandlerBase.EnsureCreate(ref this.m_weekNestRankHandler, base.uiBehaviour.m_rankTra, true, this); + result = true; + } + return result; + } + + private bool OnClickClosed(IXUIButton sp) + { + bool flag = this.SetButtonCool(this.m_fCoolTime); + bool result; + if (flag) + { + result = true; + } + else + { + this.SetVisible(false, true); + result = true; + } + return result; + } + + private bool SetButtonCool(float time) + { + float num = Time.realtimeSinceStartup - this.m_fLastClickBtnTime; + bool flag = num < time; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_fLastClickBtnTime = Time.realtimeSinceStartup; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WeekNestDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WeekNestDlg.cs.meta new file mode 100644 index 00000000..f3727f95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeekNestDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0af5848d963b37b4c996c57011c1e2d2 +timeCreated: 1611403165 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WeekShareRewardHandler.cs b/Client/Assets/Scripts/XMainClient/UI/WeekShareRewardHandler.cs new file mode 100644 index 00000000..c7a17a36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeekShareRewardHandler.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class WeekShareRewardHandler : DlgHandlerBase + { + private IXUIButton _shareBtn; + + private IXUIButton _getBtn; + + private IXUILabel _weekDes; + + private IXUILabel _activityDes; + + private XUIPool _itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected XAchievementDocument _doc; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = !this._doc.Monday; + if (flag) + { + DlgBase.singleton.uiBehaviour.StartCoroutine(this.RefreshMonday()); + } + this.RefreshUI(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this._itemPool.ReturnAll(false); + this._doc.ShareHandler = null; + this._doc = null; + base.OnUnload(); + } + + public void RefreshUI() + { + this.RefreshBtnState(); + this.RefreshRewards(); + } + + public void RefreshBtnState() + { + this._shareBtn.gameObject.SetActive(!this._doc.HasWeekReward); + this._getBtn.gameObject.SetActive(this._doc.HasWeekReward); + } + + private void InitProperties() + { + this._doc = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + this._doc.ShareHandler = this; + this._shareBtn = (base.transform.Find("BtnShare").GetComponent("XUIButton") as IXUIButton); + this._shareBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickToShare)); + this._getBtn = (base.transform.Find("BtnGet").GetComponent("XUIButton") as IXUIButton); + this._getBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGetBtn)); + this._weekDes = (base.transform.Find("WeekDesc").GetComponent("XUILabel") as IXUILabel); + this._activityDes = (base.transform.Find("ActivityDes").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("ItemList"); + GameObject gameObject = transform.Find("ItemTpl").gameObject; + this._itemPool.SetupPool(transform.gameObject, gameObject, 4u, false); + } + + private bool OnClickGetBtn(IXUIButton button) + { + this._doc.SendToGetWeekShareReward(); + return true; + } + + private bool ClickToShare(IXUIButton button) + { + XSingleton.singleton.shareCallbackType = ShareCallBackType.WeekShare; + XSingleton.singleton.CloseAllUI(); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.ShowMainView(); + return true; + } + + private void RefreshRewards() + { + this._weekDes.SetText(XSingleton.singleton.GetString("WeekRewardsTime")); + this._activityDes.SetText(XSingleton.singleton.GetString("WeekShareDec")); + this._itemPool.ReturnAll(false); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("WeekShareReward", true); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + GameObject gameObject = this._itemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(i * this._itemPool.TplWidth), 0f, 0f); + IXUILabel ixuilabel = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + int num = sequenceList[i, 0]; + int itemCount = sequenceList[i, 1]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, num, itemCount, true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + + private IEnumerator RefreshMonday() + { + yield return new WaitForEndOfFrame(); + this._doc.DisappearMonday(); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_WeekShareReward, true); + yield break; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WeekShareRewardHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WeekShareRewardHandler.cs.meta new file mode 100644 index 00000000..71547af0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeekShareRewardHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bfa8d1f83ef1d7345b4423b1ca97ec85 +timeCreated: 1611404484 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WeekendPartyHandler.cs b/Client/Assets/Scripts/XMainClient/UI/WeekendPartyHandler.cs new file mode 100644 index 00000000..130f40c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeekendPartyHandler.cs @@ -0,0 +1,98 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class WeekendPartyHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/WeekendPartyBattleDlg"; + } + } + + private XWeekendPartyDocument m_Doc; + + private IXUILabel m_BlueScore; + + private IXUILabel m_RedScore; + + private IXUILabel m_ReviveTime; + + private XLeftTimeCounter m_LeftTimeCounter; + + protected override void Init() + { + base.Init(); + this.m_Doc = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + this.m_Doc.WeekendPartyBattleHandler = this; + this.m_BlueScore = (base.PanelObject.transform.Find("Battle/Score/Bluenum").GetComponent("XUILabel") as IXUILabel); + this.m_RedScore = (base.PanelObject.transform.Find("Battle/Score/Rednum").GetComponent("XUILabel") as IXUILabel); + this.m_ReviveTime = (base.PanelObject.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTimeCounter = new XLeftTimeCounter(this.m_ReviveTime, true); + this.m_LeftTimeCounter.SetFormat(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void OnUnload() + { + this.m_Doc.WeekendPartyBattleHandler = null; + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshWeekendPartyBattleData(); + this.SetLeftTime(); + } + + private void SetLeftTime() + { + WeekEnd4v4List.RowData activityInfo = this.m_Doc.GetActivityInfo(this.m_Doc.CurrActID); + bool flag = activityInfo != null; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetLeftTime(activityInfo.MaxTime, -1); + } + } + } + + public void RefreshWeekendPartyBattleData() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE; + if (flag) + { + this.m_BlueScore.SetText(this.m_Doc.EnemyScore.ToString()); + this.m_RedScore.SetText(this.m_Doc.SelfScore.ToString()); + } + else + { + this.m_BlueScore.SetText(this.m_Doc.SelfScore.ToString()); + this.m_RedScore.SetText(this.m_Doc.EnemyScore.ToString()); + } + } + + public void ShowReviveUI(uint time) + { + this.m_LeftTimeCounter.SetLeftTime(time, -1); + } + + public override void OnUpdate() + { + this.m_LeftTimeCounter.Update(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WeekendPartyHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WeekendPartyHandler.cs.meta new file mode 100644 index 00000000..2dba9e22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeekendPartyHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bf8b048108921543bac6c8313f7f946 +timeCreated: 1611403689 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs new file mode 100644 index 00000000..224decd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs @@ -0,0 +1,48 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class WeeknestBehaviour : DlgBehaviourBase + { + public IXUILabel m_tittleLab; + + public IXUILabel m_timesLab; + + public IXUILabel m_tipsLab; + + public IXUIButton m_rankBtn; + + public IXUIButton m_goBattleBtn; + + public IXUIButton m_closedBtn; + + public IXUITexture m_bgTexture; + + public GameObject m_itemsGo; + + public Transform m_rankTra; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_rankTra = base.transform.Find("Rank"); + this.m_closedBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Main/Tittles"); + this.m_tittleLab = (transform.Find("Tittle1").GetComponent("XUILabel") as IXUILabel); + this.m_timesLab = (transform.Find("Times").GetComponent("XUILabel") as IXUILabel); + transform = base.transform.Find("Main/Btns"); + this.m_rankBtn = (transform.Find("RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_goBattleBtn = (transform.Find("GoBtn").GetComponent("XUIButton") as IXUIButton); + this.m_bgTexture = (base.transform.Find("Main/P").GetComponent("XUITexture") as IXUITexture); + transform = base.transform.Find("Main/Items"); + this.m_itemsGo = transform.gameObject; + this.m_ItemPool.SetupPool(transform.gameObject, transform.Find("Item").gameObject, 2u, false); + this.m_tipsLab = (transform.Find("t").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs.meta new file mode 100644 index 00000000..1624cdb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WeeknestBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d060606b552ff46478e2ab02ba2a2580 +timeCreated: 1611404587 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/WelfareGrowthFundItem.cs b/Client/Assets/Scripts/XMainClient/UI/WelfareGrowthFundItem.cs new file mode 100644 index 00000000..e4e0bd80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WelfareGrowthFundItem.cs @@ -0,0 +1,158 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class WelfareGrowthFundItem + { + private Transform m_transform; + + private IXUIButton m_getBtn; + + private IXUILabel m_contentLabel; + + private IXUILabel m_valueLabel; + + private IXUILabel m_messageLabel; + + private IXUISprite m_hasBuySprite; + + private int m_type; + + private int m_key; + + private int m_value; + + public void Init(Transform tf) + { + this.m_transform = tf; + this.m_getBtn = (tf.Find("Recharge").GetComponent("XUIButton") as IXUIButton); + this.m_contentLabel = (tf.Find("Content").GetComponent("XUILabel") as IXUILabel); + this.m_valueLabel = (tf.Find("Value").GetComponent("XUILabel") as IXUILabel); + this.m_messageLabel = (tf.Find("Message").GetComponent("XUILabel") as IXUILabel); + this.m_hasBuySprite = (tf.Find("HasBuy").GetComponent("XUISprite") as IXUISprite); + this.m_getBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickGetHandler)); + } + + private bool OnClickGetHandler(IXUIButton btn) + { + bool flag = this.m_type == 0; + bool result; + if (flag) + { + result = true; + } + else + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.GetGrowthFundAward(this.m_type, this.m_key); + result = true; + } + return result; + } + + public void Set(int type, int key, int value) + { + this.m_type = type; + this.m_key = key; + this.m_value = value; + this.m_valueLabel.SetText(this.m_value.ToString()); + bool flag = this.m_type == 0; + if (flag) + { + this.m_contentLabel.SetText(XStringDefineProxy.GetString("WELFARE_GROWTHFUND_CONTENT")); + } + else + { + this.m_contentLabel.SetText(XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("WELFARE_GROWTHFUND_CONTENT", this.m_type.ToString()), new object[] + { + this.m_key + })); + } + } + + public void Refresh() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = !specificDocument.HasBuyGrowthFund; + if (flag) + { + this.m_messageLabel.SetText(XStringDefineProxy.GetString("WELFARE_GROWTHFUND_ERROR")); + this.m_getBtn.SetVisible(false); + this.m_hasBuySprite.SetVisible(false); + } + else + { + bool flag2 = this.m_type == 0; + if (flag2) + { + this.m_hasBuySprite.SetVisible(true); + this.m_getBtn.SetVisible(false); + this.m_messageLabel.SetText(string.Empty); + } + else + { + bool flag3 = specificDocument.HasGrowthFundGet(this.m_type, this.m_key); + if (flag3) + { + this.m_hasBuySprite.SetVisible(true); + this.m_messageLabel.SetText(string.Empty); + this.m_getBtn.SetVisible(false); + } + else + { + this.m_hasBuySprite.SetVisible(false); + bool flag4 = this.m_type == 1; + if (flag4) + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + bool flag5 = level < this.m_key; + if (flag5) + { + this.m_messageLabel.SetText(XStringDefineProxy.GetString("WELFARE_GROWTHFUND_MESSAGE1", new object[] + { + this.m_key - level + })); + this.m_getBtn.SetVisible(false); + } + else + { + this.m_messageLabel.SetText(string.Empty); + this.m_getBtn.SetVisible(true); + } + } + else + { + bool flag6 = this.m_type == 2; + if (flag6) + { + int loginDayCount = specificDocument.LoginDayCount; + bool flag7 = loginDayCount < this.m_key; + if (flag7) + { + this.m_messageLabel.SetText(XStringDefineProxy.GetString("WELFARE_GROWTHFUND_MESSAGE2", new object[] + { + this.m_key - loginDayCount + })); + this.m_getBtn.SetVisible(false); + } + else + { + this.m_messageLabel.SetText(string.Empty); + this.m_getBtn.SetVisible(true); + } + } + else + { + this.m_messageLabel.SetText(string.Empty); + this.m_getBtn.SetVisible(false); + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/WelfareGrowthFundItem.cs.meta b/Client/Assets/Scripts/XMainClient/UI/WelfareGrowthFundItem.cs.meta new file mode 100644 index 00000000..08bfd55b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/WelfareGrowthFundItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7703afd8db973de409f586dc2dbd46cf +timeCreated: 1611403951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XAchieveView.cs b/Client/Assets/Scripts/XMainClient/UI/XAchieveView.cs new file mode 100644 index 00000000..620248b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XAchieveView.cs @@ -0,0 +1,435 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XAchieveView : DlgHandlerBase + { + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_PanelScrollView; + + public AchieveType m_achieveType; + + private List list = new List(); + + private IXUILabel m_labAchipoint; + + private IXUIProgress m_proAchiAll; + + private IXUILabel m_lblAchiAll; + + private IXUILabel m_rewarDesc; + + private IXUIButton m_getBtn; + + private IXUISprite m_sprRed; + + private IXUIProgress[] m_proAchivType = new IXUIProgress[5]; + + private IXUILabel[] m_lblAchiType = new IXUILabel[5]; + + private GameObject[] m_rwds = new GameObject[3]; + + private bool canClaimPoint = false; + + private XDesignationDocument _doc = null; + + private IXUICheckBox[] m_padTabs = new IXUICheckBox[6]; + + private IXUISprite[] m_padPoint = new IXUISprite[6]; + + private GameObject m_objSurvey; + + private GameObject m_objDetail; + + private void InitDetail() + { + this.m_PanelScrollView = (base.PanelObject.transform.Find("detail/detail").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("detail/detail/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + private void ReqDetailInfo(int index) + { + bool flag = this._doc != null; + if (flag) + { + this.m_achieveType = (AchieveType)index; + this._doc.FetchAchieveType(this.m_achieveType); + } + } + + public void RefreshDetails() + { + this.m_WrapContent.SetContentCount(this._doc.achievesDetails.Count, false); + this.m_PanelScrollView.ResetPosition(); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this._doc != null; + if (flag) + { + bool flag2 = index < this._doc.achievesDetails.Count && index >= 0; + if (flag2) + { + AchieveItemInfo info = this._doc.achievesDetails[index]; + this._SetRecord(t, info); + } + } + else + { + XSingleton.singleton.AddErrorLog("_doc is nil or index: ", index.ToString(), null, null, null, null); + } + } + + protected void _SetRecord(Transform t, AchieveItemInfo info) + { + IXUILabel ixuilabel = t.Find("TLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("DLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("CLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("ch").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("Get").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("Fini").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = t.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("ch_desc").gameObject; + GameObject gameObject2 = t.Find("bj").gameObject; + GameObject gameObject3 = t.Find("bj/bj").gameObject; + ixuilabel.SetText(info.row.Achievement); + ixuilabel2.SetText(info.row.Explanation); + string text = string.Empty; + string value = XSingleton.singleton.GetValue("AchieveColor"); + for (int i = 0; i < info.row.Reward.Count; i++) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(info.row.Reward[i, 0]); + text = string.Concat(new object[] + { + text, + "[c]", + value, + itemConf.ItemName[0], + "[-][/c] ", + info.row.Reward[i, 1] + }); + bool flag = i != info.row.Reward.Count - 1; + if (flag) + { + text += "\n"; + } + } + ixuilabel3.SetText(text); + gameObject3.SetActive(info.state == AchieveState.Claim); + ixuisprite3.SetVisible(info.state == AchieveState.Claim); + ixuisprite2.SetVisible(info.state == AchieveState.Claimed); + ixuibutton.SetVisible(info.state != AchieveState.Claimed); + gameObject2.SetActive(info.state != AchieveState.Normal); + ixuisprite.SetSprite(info.row.ICON); + bool flag2 = info.row.DesignationName != ""; + if (flag2) + { + ixuilabel4.gameObject.SetActive(true); + gameObject.SetActive(true); + ixuilabel4.SetText(info.row.DesignationName); + } + else + { + ixuilabel4.gameObject.SetActive(false); + gameObject.SetActive(false); + } + ixuibutton.SetEnable(info.state != AchieveState.Normal, false); + ixuibutton.ID = (ulong)((long)info.row.ID); + bool flag3 = info.state != AchieveState.Normal; + if (flag3) + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnClick)); + } + } + + public bool UnCompleteTipsBtn(IXUIButton btn) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Achi_Or_Des_UnComplete"), "fece00"); + return true; + } + + private bool OnBtnClick(IXUIButton btn) + { + AchieveItemInfo achieveItemInfo = new AchieveItemInfo(); + bool flag = false; + for (int i = 0; i < this._doc.achievesDetails.Count; i++) + { + bool flag2 = this._doc.achievesDetails[i].row.ID == (int)btn.ID; + if (flag2) + { + flag = true; + achieveItemInfo = this._doc.achievesDetails[i]; + break; + } + } + bool flag3 = flag && achieveItemInfo.state == AchieveState.Claim; + if (flag3) + { + this._doc.ClaimAchieve(achieveItemInfo.row.ID); + } + return true; + } + + private void InitSurvey() + { + this.m_labAchipoint = (base.PanelObject.transform.Find("survey/title/Bg/TextLabel").GetComponent("XUILabel") as IXUILabel); + this.m_proAchiAll = (base.PanelObject.transform.Find("survey/slider").GetComponent("XUIProgress") as IXUIProgress); + this.m_lblAchiAll = (base.PanelObject.transform.Find("survey/slider/PLabel").GetComponent("XUILabel") as IXUILabel); + this.m_rewarDesc = (base.PanelObject.transform.Find("survey/desc/DescLabel").GetComponent("XUILabel") as IXUILabel); + this.m_getBtn = (base.PanelObject.transform.Find("survey/Get").GetComponent("XUIButton") as IXUIButton); + this.m_sprRed = (base.PanelObject.transform.Find("survey/Get/RedPoint").GetComponent("XUISprite") as IXUISprite); + for (int i = 0; i < this.m_proAchivType.Length; i++) + { + this.m_proAchivType[i] = (base.PanelObject.transform.Find("survey/right/cj" + i + "/slider1").GetComponent("XUIProgress") as IXUIProgress); + this.m_lblAchiType[i] = (base.PanelObject.transform.Find("survey/right/cj" + i + "/slider1/PLabel").GetComponent("XUILabel") as IXUILabel); + } + for (int j = 0; j < this.m_rwds.Length; j++) + { + this.m_rwds[j] = base.PanelObject.transform.Find("survey/items/item" + j).gameObject; + } + this.m_getBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetRewardBtnClick)); + } + + public bool OnGetRewardBtnClick(IXUIButton btn) + { + bool flag = this._doc != null && this._doc.achieveSurveyInfo != null; + if (flag) + { + this._doc.SendQueryGetAchiPointReward(this._doc.achieveSurveyInfo.rewardId); + } + return true; + } + + public void RequstSurvey() + { + bool flag = this._doc != null; + if (flag) + { + this._doc.FetchAchieveSurvey(); + } + } + + public void RefreshSurvey() + { + bool flag = this._doc != null && this._doc.achieveSurveyInfo != null; + if (flag) + { + this.m_labAchipoint.SetText(this._doc.achieveSurveyInfo.achievePoint.ToString()); + } + this.RefreshRws(); + this.RefreshTypes(); + this.RefreshProAll(); + this.RefreshPoints(); + } + + private void RefreshRws() + { + AchievementPointRewardTable.RowData[] table = XDesignationDocument.achieveRwdTable.Table; + uint achievePoint = this._doc.achieveSurveyInfo.achievePoint; + SeqListRef seqListRef = default(SeqListRef); + bool flag = this._doc.achieveSurveyInfo.rewardId == 0u; + if (flag) + { + this.m_rewarDesc.SetText(XStringDefineProxy.GetString("Achi_Point_Reward_Desc_NULL")); + } + else + { + this.m_rewarDesc.SetText(string.Format(XStringDefineProxy.GetString("Achi_Point_Reward_Desc"), table[(int)(this._doc.achieveSurveyInfo.rewardId - 1u)].Point)); + seqListRef = table[(int)(this._doc.achieveSurveyInfo.rewardId - 1u)].Reward; + } + bool flag2 = this._doc.achieveSurveyInfo.rewardId != 0u && (ulong)achievePoint >= (ulong)((long)table[(int)(this._doc.achieveSurveyInfo.rewardId - 1u)].Point) && seqListRef.Count > 0; + if (flag2) + { + this.m_getBtn.SetEnable(true, false); + this.m_sprRed.SetVisible(true); + this.canClaimPoint = true; + } + else + { + this.m_getBtn.SetEnable(false, false); + this.m_sprRed.SetVisible(false); + this.canClaimPoint = false; + } + int num = Math.Min(this.m_rwds.Length, seqListRef.Count); + IXUISprite ixuisprite = this.m_rwds[0].GetComponent("XUISprite") as IXUISprite; + int spriteWidth = ixuisprite.spriteWidth; + for (int i = 0; i < num; i++) + { + this.m_rwds[i].SetActive(true); + this.m_rwds[i].transform.localPosition = new Vector3(((float)i - (float)(num - 1) / 2f) * (float)spriteWidth, 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_rwds[i], seqListRef[i, 0], seqListRef[i, 1], false); + } + bool flag3 = seqListRef.Count < this.m_rwds.Length; + if (flag3) + { + for (int j = seqListRef.Count; j < this.m_rwds.Length; j++) + { + this.m_rwds[j].SetActive(false); + } + } + } + + private void RefreshTypes() + { + for (int i = 0; i < this.m_lblAchiType.Length; i++) + { + List dataList = this._doc.achieveSurveyInfo.dataList; + AchieveBriefInfo achieveBriefInfo = this.ParseBriefInfo(i); + this.m_lblAchiType[i].SetText(achieveBriefInfo.achievePoint + "/" + achieveBriefInfo.maxAchievePoint); + float value = achieveBriefInfo.achievePoint / achieveBriefInfo.maxAchievePoint; + bool flag = achieveBriefInfo.maxAchievePoint == 0u; + if (flag) + { + value = 0f; + } + this.m_proAchivType[i].value = value; + } + } + + private AchieveBriefInfo ParseBriefInfo(int index) + { + List dataList = this._doc.achieveSurveyInfo.dataList; + for (int i = 0; i < dataList.Count; i++) + { + bool flag = dataList[i].achieveClassifyType == (uint)(index + 1); + if (flag) + { + return dataList[i]; + } + } + return null; + } + + private void RefreshProAll() + { + uint achievePoint = this._doc.achieveSurveyInfo.achievePoint; + uint maxAchievePoint = this._doc.achieveSurveyInfo.maxAchievePoint; + float value = achievePoint / maxAchievePoint; + this.m_proAchiAll.value = value; + this.m_lblAchiAll.SetText(achievePoint + "/" + maxAchievePoint); + } + + public void RefreshPoints() + { + bool bState = false; + bool flag = this.canClaimPoint; + if (flag) + { + bState = true; + } + bool flag2 = base.IsVisible(); + if (flag2) + { + this.m_padPoint[0].SetVisible(this.canClaimPoint); + for (int i = 1; i < this.m_padPoint.Length; i++) + { + AchieveBriefInfo achieveBriefInfo = this.ParseBriefInfo(i - 1); + bool flag3 = achieveBriefInfo != null; + if (flag3) + { + bool flag4 = achieveBriefInfo.canRewardCount > 0u; + if (flag4) + { + bState = true; + } + this.m_padPoint[i].SetVisible(achieveBriefInfo.canRewardCount > 0u); + } + } + } + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Design_Achieve, bState); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Design_Achieve, true); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Design, true); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward, true); + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + for (int i = 0; i < this.m_padTabs.Length; i++) + { + this.m_padTabs[i] = (base.PanelObject.transform.Find("padTabs/TabTpl" + i + "/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_padPoint[i] = (base.PanelObject.transform.Find("padTabs/TabTpl" + i + "/Bg/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_padPoint[i].gameObject.SetActive(false); + bool flag = this.m_padTabs[i] != null; + if (flag) + { + this.m_padTabs[i].ID = (ulong)i; + this.m_padTabs[i].ForceSetFlag(i == 0); + this.m_padTabs[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabControlStateChange)); + } + } + this.m_objSurvey = base.PanelObject.transform.Find("survey").gameObject; + this.m_objDetail = base.PanelObject.transform.Find("detail").gameObject; + this.InitSurvey(); + this.InitDetail(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + this._doc.achieveView = this; + this.m_objSurvey.SetActive(true); + this.m_objDetail.SetActive(false); + this.m_padTabs[0].ForceSetFlag(true); + this.RequstSurvey(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + protected override void OnHide() + { + base.OnHide(); + base.PanelObject.SetActive(false); + } + + public override void OnUnload() + { + this._doc = null; + base.OnUnload(); + } + + public bool OnTabControlStateChange(IXUICheckBox chkBox) + { + bool bChecked = chkBox.bChecked; + if (bChecked) + { + this.OnTabClick((int)chkBox.ID); + } + return true; + } + + private void OnTabClick(int index) + { + this.m_objDetail.SetActive(index > 0); + this.m_objSurvey.SetActive(index <= 0); + bool flag = index <= 0; + if (flag) + { + this.RequstSurvey(); + } + else + { + this.ReqDetailInfo(index); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XAchieveView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XAchieveView.cs.meta new file mode 100644 index 00000000..ee971951 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XAchieveView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19d073c6fab4a284bbd5f1dce04106bb +timeCreated: 1611403306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XActivityInviteBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XActivityInviteBehavior.cs new file mode 100644 index 00000000..1f4f3743 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XActivityInviteBehavior.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XActivityInviteBehavior : DlgBehaviourBase + { + public IXUIButton AddFriendBtn; + + public IXUIButton JoinGuildBtn; + + public IXUIScrollView ScrollView; + + public IXUIWrapContent WrapContent; + + public Transform Tabs; + + public IXUISprite Close; + + public Transform EmptyFlag; + + public IXUILabel FriendText; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/BtnAddFriendMiddle"); + this.AddFriendBtn = (transform.GetComponent("XUIButton") as IXUIButton); + this.JoinGuildBtn = (base.transform.Find("Bg/BtnJoinGuild").GetComponent("XUIButton") as IXUIButton); + this.ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.Tabs = base.transform.Find("Tabs"); + this.Close = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.EmptyFlag = base.transform.Find("Bg/Empty"); + this.FriendText = (base.transform.Find("Bg/Text").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XActivityInviteBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XActivityInviteBehavior.cs.meta new file mode 100644 index 00000000..7227b640 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XActivityInviteBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33f778be650779a45a9d01995b713b45 +timeCreated: 1611403554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XActivityInviteView.cs b/Client/Assets/Scripts/XMainClient/UI/XActivityInviteView.cs new file mode 100644 index 00000000..f158cdb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XActivityInviteView.cs @@ -0,0 +1,439 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XActivityInviteView : DlgBase + { + public override string fileName + { + get + { + return "Home/ActivityInviteDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected List _tabs = new List(); + + protected int _curTab = 2; + + protected List curList = new List(); + + protected List _tabPos = new List(); + + protected override void Init() + { + this.InitTabs(); + this.InitProperties(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._curTab = 2; + this.RefreshTabs(); + bool flag = DlgBase.singleton.friendData.Count == 0; + if (flag) + { + this.Refresh(ActivityInviteTarget.Friend); + } + else + { + DlgBase.singleton.QueryRoleState(); + } + bool flag2 = (4 & XActivityInviteDocument.Doc.ShowType) > 0; + if (flag2) + { + XGuildMemberDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + specificDocument.ReqMemberList(); + } + base.uiBehaviour.FriendText.SetText(XStringDefineProxy.GetString("PresentDegree", new object[] + { + XSingleton.singleton.GetInt("IBShopDegree") + })); + } + + public override void OnXNGUIClick(GameObject obj, string path) + { + base.OnXNGUIClick(obj, path); + } + + private void OnCloseClicked(IXUISprite iSp) + { + this.SetVisible(false, true); + this.ResetSendFlag(); + } + + private void ResetSendFlag() + { + foreach (List list in XActivityInviteDocument.Doc.MemberInfos.Values) + { + foreach (InviteMemberInfo inviteMemberInfo in list) + { + inviteMemberInfo.bSent = false; + } + } + } + + private bool OnAddFriendClicked(IXUIButton btn) + { + DlgBase.singleton.RandomFriend(); + this.SetVisible(false, true); + return true; + } + + private void InitTabs() + { + this._tabs.Clear(); + this._tabPos.Clear(); + int num = 0; + foreach (object obj in base.uiBehaviour.Tabs) + { + Transform transform = (Transform)obj; + num++; + this._tabs.Add(transform); + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = 1UL << num; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.RefreshItems)); + this._tabPos.Add(transform.localPosition); + } + } + + private void InitProperties() + { + base.uiBehaviour.AddFriendBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddFriendClicked)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.WrapContentItemInit)); + base.uiBehaviour.JoinGuildBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinGuildClicked)); + base.uiBehaviour.Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + } + + public void Refresh(ActivityInviteTarget target) + { + this.RefreshCurTabItem(target); + base.uiBehaviour.FriendText.SetVisible(XActivityInviteDocument.Doc.CurOpType == XActivityInviteDocument.OpType.Send); + } + + public void RefreshTabs() + { + base.uiBehaviour.JoinGuildBtn.gameObject.SetActive(false); + base.uiBehaviour.AddFriendBtn.gameObject.SetActive(false); + int[] array = Enum.GetValues(typeof(ActivityInviteTarget)) as int[]; + int num = -1; + int num2 = Mathf.Min(array.Length, this._tabs.Count); + for (int i = 0; i < num2; i++) + { + bool flag = (array[i] & XActivityInviteDocument.Doc.ShowType) > 0; + if (flag) + { + this._tabs[i].gameObject.SetActive(true); + this._tabs[i].transform.localPosition = this._tabPos[++num]; + } + else + { + this._tabs[i].gameObject.SetActive(false); + } + } + } + + public bool RefreshCurTabItem(ActivityInviteTarget target) + { + for (int i = 0; i < this._tabs.Count; i++) + { + GameObject gameObject = this._tabs[i].gameObject; + bool activeSelf = gameObject.activeSelf; + if (activeSelf) + { + int num = 1 << i + 1; + bool flag = this._curTab == 0 || (target == (ActivityInviteTarget)this._curTab && num == this._curTab); + if (flag) + { + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + bool bChecked = ixuicheckBox.bChecked; + if (bChecked) + { + this.RefreshItems(ixuicheckBox); + } + else + { + ixuicheckBox.bChecked = true; + } + } + } + } + return true; + } + + public bool RefreshItems(IXUICheckBox go) + { + bool flag = !go.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._curTab = (int)go.ID; + List list = null; + ActivityInviteTarget curTab = (ActivityInviteTarget)this._curTab; + bool flag2 = XActivityInviteDocument.Doc.MemberInfos.ContainsKey(curTab); + if (flag2) + { + list = XActivityInviteDocument.Doc.MemberInfos[curTab]; + } + bool flag3 = list != null; + if (flag3) + { + base.uiBehaviour.WrapContent.SetContentCount(list.Count, false); + base.uiBehaviour.ScrollView.ResetPosition(); + bool flag4 = list.Count == 0; + if (flag4) + { + bool flag5 = (long)this._curTab == 4L; + if (flag5) + { + XGuildMemberDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + List memberList = specificDocument.MemberList; + base.uiBehaviour.EmptyFlag.gameObject.SetActive(memberList.Count != 0); + base.uiBehaviour.JoinGuildBtn.gameObject.SetActive(memberList.Count == 0); + } + else + { + bool flag6 = (long)this._curTab == 2L; + if (flag6) + { + base.uiBehaviour.AddFriendBtn.gameObject.SetActive(true); + } + } + } + else + { + base.uiBehaviour.EmptyFlag.gameObject.SetActive(false); + base.uiBehaviour.JoinGuildBtn.gameObject.SetActive(false); + base.uiBehaviour.AddFriendBtn.gameObject.SetActive(false); + this.curList = list; + } + } + result = true; + } + return result; + } + + private void WrapContentItemInit(Transform t, int index) + { + IXUIButton ixuibutton = t.Find("BtnInvite").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnInviteClick)); + } + + private bool OnInviteClick(IXUIButton go) + { + go.SetEnable(false, false); + this.SetSend(go.ID); + base.uiBehaviour.WrapContent.RefreshAllVisibleContents(); + XActivityInviteDocument.OpType curOpType = XActivityInviteDocument.Doc.CurOpType; + XActivityInviteDocument.OpType opType = curOpType; + if (opType != XActivityInviteDocument.OpType.Send) + { + if (opType == XActivityInviteDocument.OpType.Invite) + { + this.PerformInvite(go.ID); + } + } + else + { + IXUILabel ixuilabel = go.gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + bool flag = ixuilabel.GetText() == XSingleton.singleton.GetString("ActivityDegree"); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ActivityDegree"), "fece00"); + } + else + { + XSingleton.singleton.AddLog("send btn clicked", null, null, null, null, null, XDebugColor.XDebug_None); + this.SetVisible(false, true); + DlgBase.singleton.Show(go.ID); + } + } + return true; + } + + private void PerformInvite(ulong roleID) + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + this.PreHandlerInviteType((ActivityInviteTarget)this._curTab, roleID); + specificDocument.SendActivityInvitation(XSysDefine.XSys_Home_Feast, XSingleton.singleton.XPlayerData.RoleID, true); + } + + private void PreHandlerInviteType(ActivityInviteTarget type, ulong roleID) + { + if (type != ActivityInviteTarget.Friend) + { + if (type != ActivityInviteTarget.Guild) + { + } + } + else + { + DlgBase.singleton.ChatFriendId = roleID; + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + ChatFriendData chatFriendData = specificDocument.FindFriendData(roleID); + bool flag = chatFriendData == null; + if (flag) + { + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(roleID); + ChatFriendData chatFriendData2 = new ChatFriendData(); + chatFriendData2.name = friendDataById.name; + chatFriendData2.roleid = friendDataById.roleid; + chatFriendData2.powerpoint = friendDataById.powerpoint; + chatFriendData2.profession = friendDataById.profession; + chatFriendData2.viplevel = friendDataById.viplevel; + chatFriendData2.isfriend = true; + chatFriendData2.msgtime = DateTime.Now; + chatFriendData2.setid = friendDataById.setid; + specificDocument.ChatFriendList.Add(chatFriendData2); + } + else + { + chatFriendData.msgtime = DateTime.Now; + } + } + } + + private bool OnJoinGuildClicked(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = !XActivityInviteDocument.Doc.MemberInfos.ContainsKey((ActivityInviteTarget)this._curTab); + if (!flag) + { + List list = XActivityInviteDocument.Doc.MemberInfos[(ActivityInviteTarget)this._curTab]; + bool flag2 = index >= list.Count; + if (!flag2) + { + InviteMemberInfo inviteMemberInfo = list[index]; + IXUILabel ixuilabel = t.Find("Info/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Info/Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Info/AvatarBG/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("Info/Profession").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel3 = t.Find("Info/AvatarBG/BattlePointBG/Power").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Info/GuildName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("State").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetText(""); + Transform transform = t.Find("Info/AvatarBG/Relation"); + ixuilabel.SetText(inviteMemberInfo.name); + ixuilabel2.SetText("Lv." + inviteMemberInfo.level.ToString()); + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon2((int)inviteMemberInfo.profession); + ixuisprite2.spriteName = XSingleton.singleton.GetProfIcon((int)inviteMemberInfo.profession); + ixuilabel3.SetText(inviteMemberInfo.ppt.ToString()); + bool flag3 = string.IsNullOrEmpty(inviteMemberInfo.guildname); + if (flag3) + { + ixuilabel4.SetText(XSingleton.singleton.GetString("NoGuild")); + } + else + { + ixuilabel4.SetText(inviteMemberInfo.guildname); + } + Transform transform2 = transform.Find("Guild"); + Transform transform3 = transform.Find("Friend"); + transform2.gameObject.SetActive(this._curTab == 4); + transform3.gameObject.SetActive(this._curTab == 2); + IXUIButton ixuibutton = t.Find("BtnInvite").GetComponent("XUIButton") as IXUIButton; + ixuibutton.SetEnable(true, false); + ixuibutton.SetVisible(!inviteMemberInfo.bSent); + this.SetOpBtnContent(t, inviteMemberInfo); + } + } + } + + private void SetSend(ulong id) + { + for (int i = 0; i < this.curList.Count; i++) + { + bool @checked = this.GetChecked(this.curList[i], id); + if (@checked) + { + this.curList[i].bSent = true; + } + } + } + + private bool GetChecked(InviteMemberInfo info, ulong id) + { + XActivityInviteDocument.OpType curOpType = XActivityInviteDocument.Doc.CurOpType; + XActivityInviteDocument.OpType opType = curOpType; + return opType == XActivityInviteDocument.OpType.Invite && info.uid == id; + } + + private void SetOpBtnContent(Transform item, InviteMemberInfo info) + { + IXUIButton ixuibutton = item.Find("BtnInvite").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = item.Find("Invited").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = item.Find("BtnInvite/Label").GetComponent("XUILabel") as IXUILabel; + XActivityInviteDocument.OpType curOpType = XActivityInviteDocument.Doc.CurOpType; + XActivityInviteDocument.OpType opType = curOpType; + if (opType != XActivityInviteDocument.OpType.Send) + { + if (opType == XActivityInviteDocument.OpType.Invite) + { + ixuibutton.ID = info.uid; + string text = info.bSent ? XSingleton.singleton.GetString("ActivityInvited") : ""; + ixuilabel.SetText(text); + ixuilabel2.SetText(XSingleton.singleton.GetString("ActivityInvite")); + } + } + else + { + ixuibutton.ID = info.uid; + int @int = XSingleton.singleton.GetInt("IBShopDegree"); + string @string = XSingleton.singleton.GetString(((ulong)info.degree < (ulong)((long)@int)) ? "ActivityDegree" : "ActivitySend"); + ixuilabel.SetText(@string); + ixuilabel2.SetText(@string); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XActivityInviteView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XActivityInviteView.cs.meta new file mode 100644 index 00000000..9c5f8e04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XActivityInviteView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6141843cbc9745c4c9a4fff6b2309871 +timeCreated: 1611403838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBackFlowMallHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XBackFlowMallHandler.cs new file mode 100644 index 00000000..68c1e025 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBackFlowMallHandler.cs @@ -0,0 +1,209 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + [Hotfix] + internal class XBackFlowMallHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/BfMallHandler"; + } + } + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIList m_ShopItemList; + + private IXUIButton m_RefreshBtn; + + private IXUILabel m_CloseTip; + + private IXUILabel m_ResetdTip; + + private IXUILabel m_LeftTimes; + + private int currLeftTime; + + private uint _CDToken = 0u; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("ShopItemList/Grid/ShopItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_RefreshBtn = (base.PanelObject.transform.Find("BtnRefresh").GetComponent("XUIButton") as IXUIButton); + this.m_ShopItemList = (base.PanelObject.transform.Find("ShopItemList/Grid").GetComponent("XUIList") as IXUIList); + this.m_CloseTip = (base.PanelObject.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_ResetdTip = (base.PanelObject.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTimes = (base.PanelObject.transform.Find("Times").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_RefreshBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshBtnClicked)); + } + + private bool OnRefreshBtnClicked(IXUIButton sp) + { + XBackFlowDocument.Doc.SendBackFlowActivityOperation(BackFlowActOp.BackFlowAct_ShopUpdate, 0u); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + XBackFlowDocument.Doc.SendBackFlowActivityOperation(BackFlowActOp.BackFlowAct_ShopData, 0u); + this.m_ResetdTip.SetText(XStringDefineProxy.GetString("BackFlowShopResetTip")); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._CDToken); + } + + public override void RefreshData() + { + bool flag = XBackFlowDocument.Doc.BackflowShopData == null; + if (!flag) + { + this.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < XBackFlowDocument.Doc.BackflowShopData.goods.Count; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_ShopItemList.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + this.SetShopItemInfo(gameObject, XBackFlowDocument.Doc.BackflowShopData.goods[i]); + } + this.m_ShopItemList.Refresh(); + this.m_ItemPool.ActualReturnAll(false); + int @int = XSingleton.singleton.GetInt("BackFlowShopFreshCount"); + this.m_LeftTimes.SetText(string.Format("{0}/{1}", XBackFlowDocument.Doc.BackflowShopData.freshCount, @int)); + this.currLeftTime = (int)XBackFlowDocument.Doc.ShopLeftTime; + this.SetCloseLeftTime(); + } + } + + private void SetCloseLeftTime() + { + XSingleton.singleton.KillTimer(this._CDToken); + bool flag = this.currLeftTime > 0; + if (flag) + { + bool flag2 = this.currLeftTime >= 43200; + string arg; + if (flag2) + { + arg = XSingleton.singleton.TimeDuarationFormatString(this.currLeftTime, 4); + } + else + { + arg = XSingleton.singleton.TimeDuarationFormatString(this.currLeftTime, 5); + } + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + this.m_CloseTip.SetText(string.Format(XStringDefineProxy.GetString("BackFlowShopCloseTime"), arg)); + } + this.m_CloseTip.SetVisible(this.currLeftTime > 0); + } + + private void LeftTimeUpdate(object o) + { + this.currLeftTime--; + this.SetCloseLeftTime(); + } + + private void SetShopItemInfo(GameObject shopItem, BackFlowShopGood goodsInfo) + { + BackflowShop.RowData byGoodID = XBackFlowDocument.BackflowShopTable.GetByGoodID(goodsInfo.GoodID); + bool flag = byGoodID == null; + if (!flag) + { + this.SetQualityBorder(shopItem, byGoodID.Quality); + GameObject gameObject = shopItem.transform.Find("Item").gameObject; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)byGoodID.ItemID, (int)byGoodID.ItemCount, true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)byGoodID.ItemID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + IXUIButton ixuibutton = shopItem.transform.Find("BtnBuy").GetComponent("XUIButton") as IXUIButton; + ixuibutton.gameObject.SetActive(!goodsInfo.IsBuy); + ixuibutton.ID = (ulong)goodsInfo.GoodID; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClicked)); + string itemSmallIcon = XBagDocument.GetItemSmallIcon((int)byGoodID.CostType, 0u); + IXUISprite ixuisprite2 = ixuibutton.gameObject.transform.Find("MoneyCost/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(itemSmallIcon); + IXUILabel ixuilabel = ixuibutton.gameObject.transform.Find("MoneyCost").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(byGoodID.CostNum.ToString()); + GameObject gameObject2 = shopItem.transform.Find("Empty").gameObject; + gameObject2.SetActive(goodsInfo.IsBuy); + GameObject gameObject3 = shopItem.transform.Find("limit").gameObject; + gameObject3.SetActive(byGoodID.Discount > 0u && byGoodID.Discount != 100u && !goodsInfo.IsBuy); + IXUILabel ixuilabel2 = shopItem.transform.Find("limit/num").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText((byGoodID.Discount / 10f).ToString()); + } + } + + private void SetQualityBorder(GameObject shopItem, uint quality) + { + for (int i = 0; i <= 5; i++) + { + string text = string.Format("Quality{0}", i); + Transform transform = shopItem.transform.Find(text); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive((long)i == (long)((ulong)quality)); + } + } + } + + private bool OnBuyBtnClicked(IXUIButton btn) + { + BackflowShop.RowData byGoodID = XBackFlowDocument.BackflowShopTable.GetByGoodID((uint)btn.ID); + bool flag = byGoodID == null; + bool result; + if (flag) + { + result = false; + } + else + { + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.uiBehaviour.m_OKButton.ID = btn.ID; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)byGoodID.ItemID); + bool flag2 = itemConf == null; + if (flag2) + { + result = false; + } + else + { + string text = XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u); + string message = string.Format(XStringDefineProxy.GetString("BackFlowShopBuyTip", new object[] + { + byGoodID.ItemCount, + text + }), new object[0]); + XSingleton.singleton.ShowModalDialog(message, new ButtonClickEventHandler(this.OnClickOKBtn)); + result = true; + } + } + return result; + } + + private bool OnClickOKBtn(IXUIButton btn) + { + XBackFlowDocument.Doc.SendBackFlowActivityOperation(BackFlowActOp.BackFlowAct_ShopBuy, (uint)btn.ID); + DlgBase.singleton.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBackFlowMallHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBackFlowMallHandler.cs.meta new file mode 100644 index 00000000..845f6998 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBackFlowMallHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c964e3840535b9479d35c849a8caaed +timeCreated: 1611403602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBackFlowPandoraSDKHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XBackFlowPandoraSDKHandler.cs new file mode 100644 index 00000000..2b8e736e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBackFlowPandoraSDKHandler.cs @@ -0,0 +1,65 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBackFlowPandoraSDKHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/BfPandoraSDKHandler"; + } + } + + private XSysDefine currSys = XSysDefine.XSys_None; + + protected override void Init() + { + base.Init(); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowPandoraTab(); + } + + protected override void OnHide() + { + base.OnHide(); + this.HidePandoraTab(); + } + + private void ShowPandoraTab() + { + bool flag = this.currSys == XSysDefine.XSys_None; + if (!flag) + { + int sysID = XFastEnumIntEqualityComparer.ToInt(this.currSys); + XSingleton.singleton.ShowPandoraTab(sysID, true, base.PanelObject); + } + } + + private void HidePandoraTab() + { + bool flag = this.currSys == XSysDefine.XSys_None; + if (!flag) + { + int sysID = XFastEnumIntEqualityComparer.ToInt(this.currSys); + XSingleton.singleton.ShowPandoraTab(sysID, false, base.PanelObject); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public void SetCurrSys(XSysDefine sys) + { + this.currSys = sys; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBackFlowPandoraSDKHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBackFlowPandoraSDKHandler.cs.meta new file mode 100644 index 00000000..e80050f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBackFlowPandoraSDKHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d81aa3bccc73d64b88ea0b252f46cf6 +timeCreated: 1611403355 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfo.cs b/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfo.cs new file mode 100644 index 00000000..79340e95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfo.cs @@ -0,0 +1,488 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBattleEnemyInfo + { + public int SequenceNum + { + get + { + return this.m_CurSequence; + } + set + { + this.m_CurSequence = value; + } + } + + public XEntity Entity { get; set; } + + public float HitTime + { + get + { + return this.m_HitTime; + } + } + + public bool bNotBeHitRecently + { + get + { + return Time.time - this.m_HitTime > XBattleEnemyInfo.fNotBeHitTime; + } + } + + public static bool bShow; + + public static float fNotBeHitTime = 3f; + + private int m_CurSequence; + + private int m_PreSequence; + + public GameObject m_Go; + + private BattleEnemyType m_Type; + + private float m_HitTime = 0f; + + private bool m_bIsSuperArmorBroken = false; + + public GameObject m_uiBg = null; + + public IXUISprite m_uiAvatar = null; + + public IXUILabel m_uiName = null; + + public IXUIProgress m_uiProgressHp = null; + + public IXUISprite m_uiSpriteHp = null; + + public IXUISprite m_uiHpBackDrop = null; + + public IXUIProgress m_uiSuperArmor = null; + + public IXUISprite m_uiMp = null; + + public IXUITweenTool m_uiSuperArmorFx = null; + + public IXUISprite m_uiSuperArmorSpeedFx = null; + + public IXUITweenTool m_uiBeHitTween; + + public IXUITweenTool m_uiPositionTween; + + public IXUIPanel m_uiPanel; + + public IXUILabel m_uiLevel; + + public IXUILabel m_uiHpLabel; + + public IXUILabel m_uiMpLabel; + + public XBuffMonitorHandler m_BuffMonitor; + + public void SwapData(XBattleEnemyInfo other) + { + XEntity entity = this.Entity; + this.Entity = other.Entity; + other.Entity = entity; + float hitTime = this.m_HitTime; + this.m_HitTime = other.m_HitTime; + other.m_HitTime = hitTime; + bool bIsSuperArmorBroken = this.m_bIsSuperArmorBroken; + this.m_bIsSuperArmorBroken = other.m_bIsSuperArmorBroken; + other.m_bIsSuperArmorBroken = bIsSuperArmorBroken; + } + + public XBattleEnemyInfo(int index, GameObject go, BattleEnemyType type) + { + this.m_CurSequence = index; + this.m_PreSequence = index; + this.m_Go = go; + this.m_Type = type; + this._InitUI(); + } + + public bool AttachUI(GameObject go) + { + bool flag = this.m_Go != null; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_Go = go; + this._InitUI(); + result = true; + } + return result; + } + + private void _InitUI() + { + bool flag = this.m_Go == null; + if (flag) + { + this.m_uiPanel = null; + this.m_uiBg = null; + this.m_uiAvatar = null; + this.m_uiName = null; + this.m_uiBeHitTween = null; + this.m_uiPositionTween = null; + this.m_uiProgressHp = null; + this.m_uiSuperArmor = null; + this.m_uiSuperArmorFx = null; + this.m_uiSuperArmorSpeedFx = null; + this.m_uiSpriteHp = null; + this.m_uiLevel = null; + this.m_uiHpLabel = null; + this.m_uiMpLabel = null; + this.m_BuffMonitor = null; + } + else + { + Transform transform = this.m_Go.transform; + this.m_uiPanel = (transform.GetComponent("XUIPanel") as IXUIPanel); + this.m_uiBg = transform.Find("Bg").gameObject; + this.m_uiAvatar = (transform.Find("Bg/Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_uiName = (transform.Find("Bg/PlayerName").GetComponent("XUILabel") as IXUILabel); + this.m_uiBeHitTween = (this.m_uiBg.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_uiPositionTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_uiPositionTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this._OnTweenPositionFinished)); + bool flag2 = this.m_Type == BattleEnemyType.BET_BOSS; + if (flag2) + { + this.m_uiProgressHp = (transform.Find("Bg/HpBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_uiProgressHp.value = 0f; + this.m_uiSuperArmor = (transform.Find("Bg/SuperArmor").GetComponent("XUIProgress") as IXUIProgress); + this.m_uiSuperArmorFx = (transform.Find("Bg/SuperArmorFx").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_uiSuperArmorFx.gameObject.SetActive(false); + this.m_uiSuperArmorSpeedFx = (transform.Find("Bg/SpeedFx").GetComponent("XUISprite") as IXUISprite); + this.m_uiSuperArmorSpeedFx.gameObject.SetActive(false); + } + else + { + bool flag3 = this.m_Type == BattleEnemyType.BET_ROLE; + if (flag3) + { + this.m_uiSpriteHp = (transform.Find("Bg/HpBar/BackDrop").GetComponent("XUISprite") as IXUISprite); + this.m_uiSpriteHp.SetFillAmount(0f); + this.m_uiLevel = (transform.Find("Bg/Level").GetComponent("XUILabel") as IXUILabel); + this.m_uiHpLabel = (transform.Find("Bg/HpText").GetComponent("XUILabel") as IXUILabel); + this.m_uiMpLabel = (transform.Find("Bg/MpText").GetComponent("XUILabel") as IXUILabel); + this.m_uiMp = (transform.Find("Bg/MpBar/BackDrop").GetComponent("XUISprite") as IXUISprite); + this.m_uiHpBackDrop = (transform.Find("Bg/HpBar/BackDrop").GetComponent("XUISprite") as IXUISprite); + this.m_uiMp.SetFillAmount(0f); + } + } + DlgHandlerBase.EnsureCreate(ref this.m_BuffMonitor, transform.Find("Bg/BuffFrame").gameObject, null, true); + this.m_BuffMonitor.InitMonitor(XSingleton.singleton.BuffMaxDisplayCountBoss, false, true); + this.m_Go.SetActive(false); + } + } + + public void SetSuperArmorState(bool bBroken) + { + this.m_bIsSuperArmorBroken = bBroken; + bool flag = this.m_uiSuperArmorFx != null; + if (flag) + { + this.m_uiSuperArmorFx.PlayTween(true, -1f); + } + } + + public void StopSuperArmorFx() + { + bool flag = this.m_uiSuperArmorFx != null; + if (flag) + { + this.m_uiSuperArmorFx.StopTween(); + this.m_uiSuperArmorFx.gameObject.SetActive(false); + } + } + + private void _UpdateRole() + { + bool deprecated = this.Entity.Deprecated; + if (!deprecated) + { + double attr = this.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double num = this.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag = num < 0.0; + if (flag) + { + num = 0.0; + } + bool flag2 = num < attr && !XBattleEnemyInfo.bShow; + if (flag2) + { + XBattleEnemyInfo.bShow = true; + } + bool flag3 = this.m_Go == null; + if (!flag3) + { + double attr2 = this.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxMP_Total); + double num2 = this.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + bool flag4 = this.Entity is XRole; + if (flag4) + { + int profID = XFastEnumIntEqualityComparer.ToInt((this.Entity.Attributes as XRoleAttributes).Profession); + string profHeadIcon = XSingleton.singleton.GetProfHeadIcon(profID); + this.m_uiAvatar.spriteName = profHeadIcon; + } + else + { + this.m_uiAvatar.SetSprite(this.Entity.Present.PresentLib.Avatar, this.Entity.Present.PresentLib.Atlas, false); + } + this.m_uiName.SetText(this.Entity.Name); + this.m_uiLevel.SetText(this.Entity.Attributes.Level.ToString()); + bool flag5 = attr == 0.0; + if (flag5) + { + this.m_uiSpriteHp.SetVisible(false); + this.m_uiHpLabel.SetVisible(false); + } + else + { + this.m_uiSpriteHp.SetVisible(true); + this.m_uiHpLabel.SetVisible(true); + this.m_uiSpriteHp.SetFillAmount((float)(num / attr)); + this.m_uiHpLabel.SetText(string.Format("{0}/{1}", ((int)num).ToString(), ((int)attr).ToString())); + } + bool flag6 = num2 < 0.0; + if (flag6) + { + num2 = 0.0; + } + bool flag7 = attr2 == 0.0; + if (flag7) + { + this.m_uiMp.SetVisible(false); + this.m_uiMpLabel.SetVisible(false); + } + else + { + this.m_uiMp.SetVisible(true); + this.m_uiMpLabel.SetVisible(true); + this.m_uiMp.SetFillAmount((float)(num2 / attr2)); + this.m_uiMpLabel.SetText(string.Format("{0}/{1}", ((int)num2).ToString(), ((int)attr2).ToString())); + } + } + } + } + + private void _UpdateBoss() + { + bool deprecated = this.Entity.Deprecated; + if (!deprecated) + { + double attr = this.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double num = this.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag = num < 0.0; + if (flag) + { + num = 0.0; + } + bool flag2 = num < attr && !XBattleEnemyInfo.bShow; + if (flag2) + { + XBattleEnemyInfo.bShow = true; + } + bool flag3 = this.m_Go == null; + if (!flag3) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this.Entity.TypeID); + bool flag4 = byID.HpSection > 1u; + if (flag4) + { + this.m_uiProgressHp.SetTotalSection(byID.HpSection); + } + else + { + this.m_uiProgressHp.SetTotalSection(1u); + } + double attr2 = this.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Total); + double attr3 = this.Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Total); + this.m_uiAvatar.SetSprite(this.Entity.Present.PresentLib.Avatar, this.Entity.Present.PresentLib.Atlas, false); + this.m_uiName.SetText(this.Entity.Name); + bool flag5 = num == 0.0; + if (flag5) + { + this.m_uiProgressHp.SetVisible(false); + this.m_uiSuperArmor.SetVisible(false); + } + else + { + this.m_uiProgressHp.SetVisible(true); + this.m_uiSuperArmor.SetVisible(true); + this.m_uiProgressHp.value = (float)(num / attr); + bool flag6 = attr2 > 0.0; + if (flag6) + { + this.m_uiSuperArmor.gameObject.SetActive(true); + bool flag7 = attr3 <= attr2; + if (flag7) + { + this.m_uiSuperArmor.value = (float)(attr3 / attr2); + } + bool bIsSuperArmorBroken = this.m_bIsSuperArmorBroken; + if (bIsSuperArmorBroken) + { + this.m_uiSuperArmor.SetForegroundColor(new Color32(140, 219, 0, byte.MaxValue)); + } + else + { + this.m_uiSuperArmor.SetForegroundColor(Color.white); + } + } + else + { + this.m_uiSuperArmor.value = 0f; + this.m_uiSuperArmor.gameObject.SetActive(false); + } + } + } + } + } + + public void Update() + { + bool flag = this.Entity == null; + if (!flag) + { + bool flag2 = this.m_BuffMonitor != null; + if (flag2) + { + this.m_BuffMonitor.OnUpdate(); + } + bool flag3 = this.m_Type == BattleEnemyType.BET_BOSS; + if (flag3) + { + this._UpdateBoss(); + } + else + { + bool flag4 = this.m_Type == BattleEnemyType.BET_ROLE; + if (flag4) + { + this._UpdateRole(); + } + } + } + } + + public void SetVisible(bool bShow) + { + bool flag = this.m_Go != null; + if (flag) + { + this.m_Go.SetActive(bShow); + } + } + + public bool IsRecentlyHit(float fMainTargetHitTime) + { + return this.m_HitTime > fMainTargetHitTime + XBattleEnemyInfo.fNotBeHitTime; + } + + public void SetPosition(bool bAnim) + { + bool flag = this.m_CurSequence == this.m_PreSequence; + if (flag) + { + if (bAnim) + { + return; + } + bool flag2 = this.m_CurSequence == 0; + if (flag2) + { + this.m_PreSequence = 1; + } + else + { + this.m_PreSequence = 0; + } + } + else + { + bool flag3 = this.m_PreSequence * this.m_CurSequence != 0; + if (flag3) + { + bool flag4 = !bAnim; + if (flag4) + { + this.m_PreSequence = 0; + } + } + } + int num = this.m_PreSequence * 10 + this.m_CurSequence; + bool flag5 = this.m_uiPanel != null; + if (flag5) + { + if (bAnim) + { + this.m_uiPanel.SetDepth(30 - num); + this.m_uiPositionTween.SetTweenGroup(num); + this.m_uiPositionTween.PlayTween(true, -1f); + } + else + { + this.m_uiPanel.SetDepth(0); + this.m_uiPositionTween.ResetTweenByGroup(false, num); + } + } + this.m_PreSequence = this.m_CurSequence; + } + + private void _OnTweenPositionFinished(IXUITweenTool tween) + { + bool flag = this.m_uiPanel != null; + if (flag) + { + this.m_uiPanel.SetDepth(0); + } + } + + public void OnBeHit(ProjectDamageResult result) + { + bool flag = result.Value <= 0.0; + if (!flag) + { + bool flag2 = this.m_uiBeHitTween != null; + if (flag2) + { + this.m_uiBeHitTween.PlayTween(true, -1f); + } + this.m_HitTime = Time.time; + } + } + + public void RefreshBuff() + { + bool flag = this.Entity == null || this.Entity.Deprecated; + if (!flag) + { + bool flag2 = this.Entity.Buffs != null && this.m_BuffMonitor != null; + if (flag2) + { + this.m_BuffMonitor.OnBuffChanged(this.Entity.Buffs.GetUIBuffList()); + } + } + } + + public void Unload() + { + DlgHandlerBase.EnsureUnload(ref this.m_BuffMonitor); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfo.cs.meta new file mode 100644 index 00000000..fe97e831 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c91494eb396504f48818c0f84c729768 +timeCreated: 1611404537 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfoHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfoHandler.cs new file mode 100644 index 00000000..1e2ea595 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfoHandler.cs @@ -0,0 +1,387 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBattleEnemyInfoHandler : DlgHandlerBase + { + public List EnemyList + { + get + { + return this.m_EnemyList; + } + } + + private int m_MainTargetIndex = -1; + + private int m_NextMainTargetIndex = -1; + + private BattleEnemyType m_Type; + + private XUIPool m_BossPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_RolePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_EnemyList = new List(); + + private int m_CurUICount = 0; + + private int m_MaxUICount = 3; + + private enum SwapRes + { + Success, + Fail, + NoUI + } + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("BossInfo"); + this.m_BossPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + transform = base.PanelObject.transform.Find("RoleInfo"); + this.m_RolePool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + XBattleEnemyInfo.fNotBeHitTime = float.Parse(XSingleton.singleton.GetValue("BossNotBeHitTime")); + } + + public override void OnUnload() + { + for (int i = 0; i < this.m_EnemyList.Count; i++) + { + this.m_EnemyList[i].Unload(); + } + base.OnUnload(); + } + + public void InitBoss() + { + this.m_Type = BattleEnemyType.BET_BOSS; + this._Init(); + } + + public void InitRole() + { + this.m_Type = BattleEnemyType.BET_ROLE; + this._Init(); + } + + private void _Init() + { + for (int i = 0; i < this.m_EnemyList.Count; i++) + { + this.m_EnemyList[i].Unload(); + } + this.m_EnemyList.Clear(); + this.m_BossPool.ReturnAll(false); + this.m_RolePool.ReturnAll(false); + XBattleEnemyInfo.bShow = false; + this.m_MainTargetIndex = -1; + } + + private XBattleEnemyInfo _CreateEnemy() + { + GameObject go = null; + bool flag = this.m_CurUICount < this.m_MaxUICount; + if (flag) + { + bool flag2 = this.m_Type == BattleEnemyType.BET_BOSS; + if (flag2) + { + go = this.m_BossPool.FetchGameObject(false); + } + else + { + go = this.m_RolePool.FetchGameObject(false); + } + this.m_CurUICount++; + } + XBattleEnemyInfo xbattleEnemyInfo = new XBattleEnemyInfo(this.m_EnemyList.Count, go, this.m_Type); + this.m_EnemyList.Add(xbattleEnemyInfo); + return xbattleEnemyInfo; + } + + private void _TryGetEnemy() + { + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + bool bSpectator = XSingleton.singleton.bSpectator; + List opponent; + if (bSpectator) + { + bool isPVPScene = XSingleton.singleton.IsPVPScene; + if (isPVPScene) + { + return; + } + opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player.WatchTo); + } + else + { + opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + } + for (int i = 0; i < opponent.Count; i++) + { + bool flag2 = this.m_Type == BattleEnemyType.BET_BOSS && !opponent[i].IsBoss; + if (!flag2) + { + bool flag3 = this.m_Type == BattleEnemyType.BET_ROLE && !opponent[i].IsBoss && !opponent[i].IsRole; + if (!flag3) + { + bool flag4 = opponent[i].IsDead || opponent[i].Deprecated; + if (!flag4) + { + ulong id = opponent[i].ID; + int j; + for (j = 0; j < this.m_EnemyList.Count; j++) + { + bool flag5 = this.m_EnemyList[j].Entity == opponent[i]; + if (flag5) + { + break; + } + } + bool flag6 = j == this.m_EnemyList.Count; + if (flag6) + { + XBattleEnemyInfo xbattleEnemyInfo = this._CreateEnemy(); + xbattleEnemyInfo.Entity = opponent[i]; + xbattleEnemyInfo.SetPosition(false); + xbattleEnemyInfo.RefreshBuff(); + } + } + } + } + } + } + } + + public override void OnUpdate() + { + bool flag = !this.active; + if (!flag) + { + base.OnUpdate(); + this._RemoveDisappearEnemies(); + this._TryGetEnemy(); + for (int i = 0; i < this.m_EnemyList.Count; i++) + { + this.m_EnemyList[i].SetVisible(XBattleEnemyInfo.bShow); + } + bool flag2 = this.m_MainTargetIndex < 0 && XBattleEnemyInfo.bShow; + if (flag2) + { + this._UpdateMainTarget(true); + } + for (int j = 0; j < this.m_EnemyList.Count; j++) + { + this.m_EnemyList[j].Update(); + } + this._UpdateMainTarget(false); + } + } + + private void _DestroyEnemy(int index) + { + XBattleEnemyInfo xbattleEnemyInfo = this.m_EnemyList[index]; + bool flag = xbattleEnemyInfo.m_Go != null; + if (flag) + { + bool flag2 = this.m_Type == BattleEnemyType.BET_BOSS; + if (flag2) + { + this.m_BossPool.ReturnInstance(xbattleEnemyInfo.m_Go, false); + } + else + { + this.m_RolePool.ReturnInstance(xbattleEnemyInfo.m_Go, false); + } + this.m_CurUICount--; + } + int sequenceNum = xbattleEnemyInfo.SequenceNum; + xbattleEnemyInfo.Unload(); + this.m_EnemyList.RemoveAt(index); + for (int i = 0; i < this.m_EnemyList.Count; i++) + { + bool flag3 = this.m_EnemyList[i].SequenceNum > sequenceNum; + if (flag3) + { + XBattleEnemyInfo xbattleEnemyInfo2 = this.m_EnemyList[i]; + int sequenceNum2 = xbattleEnemyInfo2.SequenceNum - 1; + xbattleEnemyInfo2.SequenceNum = sequenceNum2; + } + } + bool flag4 = this.m_MainTargetIndex == index; + if (flag4) + { + this.m_MainTargetIndex = -1; + } + else + { + bool flag5 = this.m_MainTargetIndex > index; + if (flag5) + { + this.m_MainTargetIndex--; + } + } + } + + private void _RemoveDisappearEnemies() + { + bool flag = false; + for (int i = this.m_EnemyList.Count - 1; i >= 0; i--) + { + bool deprecated = this.m_EnemyList[i].Entity.Deprecated; + if (deprecated) + { + this._DestroyEnemy(i); + flag = true; + } + } + bool flag2 = flag; + if (flag2) + { + for (int j = 0; j < this.m_EnemyList.Count; j++) + { + bool flag3 = this.m_EnemyList[j].m_Go == null && this.m_CurUICount < this.m_MaxUICount; + if (flag3) + { + bool flag4 = this.m_Type == BattleEnemyType.BET_BOSS; + GameObject go; + if (flag4) + { + go = this.m_BossPool.FetchGameObject(false); + } + else + { + go = this.m_RolePool.FetchGameObject(false); + } + this.m_CurUICount++; + this.m_EnemyList[j].AttachUI(go); + } + this.m_EnemyList[j].SetPosition(false); + } + } + bool flag5 = this.m_EnemyList.Count == 0; + if (flag5) + { + XBattleEnemyInfo.bShow = false; + } + } + + private void _UpdateMainTarget(bool bInit) + { + bool flag = !bInit && this.m_MainTargetIndex < 0; + if (!flag) + { + if (bInit) + { + this.m_MainTargetIndex = 0; + this._FindMainTarget(true); + } + else + { + this._FindMainTarget(this.m_EnemyList[this.m_MainTargetIndex].bNotBeHitRecently); + } + bool flag2 = this.m_NextMainTargetIndex == -1; + if (!flag2) + { + XBattleEnemyInfoHandler.SwapRes swapRes = this._SwapSequence(this.m_MainTargetIndex, this.m_NextMainTargetIndex); + bool flag3 = swapRes == XBattleEnemyInfoHandler.SwapRes.Success; + if (flag3) + { + this.m_EnemyList[this.m_MainTargetIndex].SetPosition(true); + this.m_EnemyList[this.m_NextMainTargetIndex].SetPosition(true); + this.m_MainTargetIndex = this.m_NextMainTargetIndex; + } + else + { + bool flag4 = swapRes == XBattleEnemyInfoHandler.SwapRes.NoUI; + if (flag4) + { + } + } + } + } + } + + private void _FindMainTarget(bool bForceFind = false) + { + this.m_NextMainTargetIndex = -1; + bool flag = bForceFind || this.m_MainTargetIndex < 0; + float fMainTargetHitTime = 0f; + bool flag2 = this.m_MainTargetIndex >= 0; + if (flag2) + { + XEntity entity = this.m_EnemyList[this.m_MainTargetIndex].Entity; + bool flag3 = entity != null && entity.IsDead; + if (flag3) + { + flag = true; + fMainTargetHitTime = this.m_EnemyList[this.m_MainTargetIndex].HitTime - XBattleEnemyInfo.fNotBeHitTime + 1.5f; + } + else + { + fMainTargetHitTime = this.m_EnemyList[this.m_MainTargetIndex].HitTime; + } + } + bool flag4 = flag; + if (flag4) + { + for (int i = 0; i < this.m_EnemyList.Count; i++) + { + bool flag5 = this.m_EnemyList[i].IsRecentlyHit(fMainTargetHitTime) && this.m_EnemyList[i].Entity != null && !this.m_EnemyList[i].Entity.IsDead; + if (flag5) + { + this.m_NextMainTargetIndex = i; + break; + } + } + } + } + + private XBattleEnemyInfoHandler.SwapRes _SwapSequence(int oneIndex, int otherIndex) + { + bool flag = oneIndex == otherIndex || oneIndex < 0 || otherIndex < 0 || oneIndex >= this.m_EnemyList.Count || otherIndex >= this.m_EnemyList.Count; + XBattleEnemyInfoHandler.SwapRes result; + if (flag) + { + result = XBattleEnemyInfoHandler.SwapRes.Fail; + } + else + { + bool flag2 = this.m_EnemyList[oneIndex].m_Go == null || this.m_EnemyList[otherIndex].m_Go == null; + if (flag2) + { + this.m_EnemyList[oneIndex].SwapData(this.m_EnemyList[otherIndex]); + result = XBattleEnemyInfoHandler.SwapRes.NoUI; + } + else + { + int sequenceNum = this.m_EnemyList[oneIndex].SequenceNum; + this.m_EnemyList[oneIndex].SequenceNum = this.m_EnemyList[otherIndex].SequenceNum; + this.m_EnemyList[otherIndex].SequenceNum = sequenceNum; + result = XBattleEnemyInfoHandler.SwapRes.Success; + } + } + return result; + } + + public void OnBuffChange(ulong uid) + { + for (int i = 0; i < this.m_EnemyList.Count; i++) + { + bool flag = this.m_EnemyList[i].Entity.ID == uid; + if (flag) + { + this.m_EnemyList[i].RefreshBuff(); + break; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfoHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfoHandler.cs.meta new file mode 100644 index 00000000..be2795f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBattleEnemyInfoHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e8746597d006b764eb0b95083be815a2 +timeCreated: 1611404753 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBattleOptionsHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XBattleOptionsHandler.cs new file mode 100644 index 00000000..6b8d202d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBattleOptionsHandler.cs @@ -0,0 +1,45 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBattleOptionsHandler : DlgHandlerBase + { + private XOptionsDocument doc; + + private IXUISlider m_CameraSpeed; + + private int m_MinCameraSpeed; + + private int m_MaxCameraSpeed; + + protected override void Init() + { + base.Init(); + this.m_CameraSpeed = (base.PanelObject.transform.Find("TailCameraSpeed/Bar").GetComponent("XUISlider") as IXUISlider); + string[] array = XSingleton.singleton.GetValue("TailCameraSpeedRange").Split(XGlobalConfig.SequenceSeparator); + this.m_MinCameraSpeed = int.Parse(array[0]); + this.m_MaxCameraSpeed = int.Parse(array[1]); + this.doc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_CameraSpeed.Value = Mathf.Clamp01(Mathf.InverseLerp((float)this.m_MinCameraSpeed, (float)this.m_MaxCameraSpeed, (float)this.doc.GetValue(XOptionsDefine.OD_TAILCAMERA_SPEED))); + } + + protected override void OnHide() + { + base.OnHide(); + this.doc.SetValue(XOptionsDefine.OD_TAILCAMERA_SPEED, (int)Mathf.Lerp((float)this.m_MinCameraSpeed, (float)this.m_MaxCameraSpeed, this.m_CameraSpeed.Value), false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBattleOptionsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBattleOptionsHandler.cs.meta new file mode 100644 index 00000000..62c0b9fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBattleOptionsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 04d578eedf2f7e44abcb6ed12f50de01 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBattleTeamTowerHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XBattleTeamTowerHandler.cs new file mode 100644 index 00000000..6375b502 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBattleTeamTowerHandler.cs @@ -0,0 +1,131 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBattleTeamTowerHandler : DlgHandlerBase + { + public IXUILabel _total_coin; + + public IXUILabel _total_manao; + + public IXUILabel _req_level; + + public IXUILabel _req_fight_point; + + public IXUILabel _difficulty; + + public XNumberTween _coin_tween; + + public XNumberTween _manao_tween; + + protected override void Init() + { + base.Init(); + this._total_coin = (base.PanelObject.transform.Find("TotalCoin").GetComponent("XUILabel") as IXUILabel); + this._req_level = (base.PanelObject.transform.Find("InfoBack/Level").GetComponent("XUILabel") as IXUILabel); + this._req_fight_point = (base.PanelObject.transform.Find("InfoBack/FightPoint").GetComponent("XUILabel") as IXUILabel); + this._difficulty = (base.PanelObject.transform.Find("InfoBack/Difficulty").GetComponent("XUILabel") as IXUILabel); + this._coin_tween = XNumberTween.Create(this._total_coin); + this._total_manao = (base.PanelObject.transform.Find("TotalManao").GetComponent("XUILabel") as IXUILabel); + this._manao_tween = XNumberTween.Create(this._total_manao); + } + + public void SetLeftTime(uint leftTime) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetLeftTime(leftTime, -1); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetLeftTime(leftTime); + } + } + + public void OnRefreshTowerInfo(PtcG2C_TowerSceneInfoNtf infoNtf) + { + bool flag = infoNtf.Data.leftTime > 0; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetLeftTime((uint)infoNtf.Data.leftTime, -1); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetLeftTime((uint)infoNtf.Data.leftTime); + } + } + bool flag4 = false; + bool flag5 = false; + for (int i = 0; i < infoNtf.Data.items.Count; i++) + { + ItemBrief itemBrief = infoNtf.Data.items[i]; + bool flag6 = itemBrief.itemID == 1u; + if (flag6) + { + this._coin_tween.SetNumberWithTween((ulong)infoNtf.Data.items[0].itemCount, "", false, true); + flag4 = true; + } + else + { + bool flag7 = itemBrief.itemID == 93u; + if (flag7) + { + this._manao_tween.SetNumberWithTween((ulong)infoNtf.Data.items[1].itemCount, "", false, true); + flag5 = true; + } + } + } + bool flag8 = !flag4; + if (flag8) + { + this._coin_tween.SetNumberWithTween(0UL, "", false, true); + } + bool flag9 = !flag5; + if (flag9) + { + this._manao_tween.SetNumberWithTween(0UL, "", false, true); + } + this._req_level.SetText(infoNtf.Data.curTowerFloor.ToString()); + double attr = XSingleton.singleton.Player.PlayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Total); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + double num = (double)sceneData.RecommendPower * 1.0; + bool flag10 = sceneData != null; + if (flag10) + { + num = (double)sceneData.RecommendPower * 1.0; + } + double num2 = (attr - num * 1.0) / num * 1.0; + bool flag11 = num2 > 0.01; + if (flag11) + { + this._req_fight_point.SetText(num.ToString()); + this._req_fight_point.SetColor(Color.green); + } + else + { + bool flag12 = num2 > -0.01; + if (flag12) + { + this._req_fight_point.SetText(string.Format("[e2ca9e]{0}[-]", num)); + } + else + { + this._req_fight_point.SetText(num.ToString()); + this._req_fight_point.SetColor(Color.red); + } + } + this._difficulty.SetText(""); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBattleTeamTowerHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBattleTeamTowerHandler.cs.meta new file mode 100644 index 00000000..372d0248 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBattleTeamTowerHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 45b559979ab42584ba49e824d0e9ebee +timeCreated: 1611403648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBossRefreshAnimHander.cs b/Client/Assets/Scripts/XMainClient/UI/XBossRefreshAnimHander.cs new file mode 100644 index 00000000..d0b36f04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBossRefreshAnimHander.cs @@ -0,0 +1,294 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class XBossRefreshAnimHander : XSingleton + { + private GameObject PanelObject; + + private IXUILabel m_lblTitle; + + private IXUISprite m_sprIcon; + + private IXUILabel m_lblDiff; + + private IXUIProgress m_slider; + + private IXUISprite m_sprBuff1; + + private IXUILabel m_lblBuff1; + + private IXUISprite m_sprBuff2; + + private IXUILabel m_lblBuff2; + + public GameObject m_objFx; + + public IXUITweenTool m_tween1; + + public IXUITweenTool m_tween2; + + public IXUITweenTool m_tween3; + + private uint m_timertoken = 0u; + + public XBossRefreshAnimHander.State state = XBossRefreshAnimHander.State.None; + + public List frames = new List(); + + private XBossBushDocument _doc = null; + + private XElapseTimer timePass = new XElapseTimer(); + + private uint m_accTime = 0u; + + private uint m_allCnt = 35u; + + private uint m_playCnt = 0u; + + public enum State + { + BEGIN, + PLAY, + Idle, + FADE, + None + } + + public void Init(GameObject _go) + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XBossBushDocument.uuID) as XBossBushDocument); + this.PanelObject = _go; + this.m_lblTitle = (_go.transform.Find("Avatar/Name").GetComponent("XUILabel") as IXUILabel); + this.m_sprIcon = (_go.transform.Find("Avatar/Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_lblDiff = (_go.transform.Find("Diff").GetComponent("XUILabel") as IXUILabel); + this.m_slider = (_go.transform.Find("Progress").GetComponent("XUIProgress") as IXUIProgress); + this.m_sprBuff1 = (_go.transform.Find("T/Icon1").GetComponent("XUISprite") as IXUISprite); + this.m_lblBuff1 = (_go.transform.Find("T/Icon1/T2").GetComponent("XUILabel") as IXUILabel); + this.m_sprBuff2 = (_go.transform.Find("T/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_lblBuff2 = (_go.transform.Find("T/Icon/T2").GetComponent("XUILabel") as IXUILabel); + this.m_objFx = _go.transform.Find("Avatar/FX").gameObject; + this.m_tween1 = (_go.transform.Find("Avatar/FX/q1").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_tween2 = (_go.transform.Find("Avatar/FX/q2").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_tween3 = (_go.transform.Find("Avatar/FX/q3").GetComponent("XUIPlayTween") as IXUITweenTool); + this.frames.Clear(); + string value = XSingleton.singleton.GetValue("BossRush_Ani"); + string[] array = value.Split(new char[] + { + '|' + }); + for (int i = 0; i < array.Length; i++) + { + this.frames.Add(int.Parse(array[i])); + } + } + + public void Show() + { + this._doc = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + this.state = XBossRefreshAnimHander.State.BEGIN; + bool flag = !this.PanelObject.activeSelf; + if (flag) + { + this.PanelObject.SetActive(true); + } + bool flag2 = this.timePass != null; + if (flag2) + { + this.timePass.LeftTime = 10f; + } + } + + public void OnUpdate() + { + bool flag = this.state == XBossRefreshAnimHander.State.BEGIN; + if (flag) + { + this.m_lblDiff.gameObject.SetActive(false); + this.m_slider.gameObject.SetActive(true); + bool activeSelf = this.m_objFx.activeSelf; + if (activeSelf) + { + this.m_objFx.SetActive(false); + } + this.m_playCnt = 0u; + this.m_accTime = 0u; + this.state = XBossRefreshAnimHander.State.PLAY; + this.m_slider.value = 0f; + } + else + { + bool flag2 = this.state == XBossRefreshAnimHander.State.PLAY; + if (flag2) + { + this.timePass.Update(); + this.m_accTime = (uint)(this.timePass.PassTime * 1000f); + bool flag3 = (ulong)this.m_accTime > (ulong)((long)this.GetFrame(this.m_playCnt)); + if (flag3) + { + this.timePass.LeftTime = 1f; + this.m_accTime = 0u; + this.m_playCnt += 1u; + this.UpdateSlider(); + this.RefreshRandBoss(); + bool flag4 = this.m_playCnt >= this.m_allCnt; + if (flag4) + { + this.m_playCnt = 0u; + this.state = XBossRefreshAnimHander.State.Idle; + } + } + } + else + { + bool flag5 = this.state == XBossRefreshAnimHander.State.Idle; + if (flag5) + { + this.state = XBossRefreshAnimHander.State.None; + this.m_lblDiff.gameObject.SetActive(true); + this.m_slider.gameObject.SetActive(false); + bool flag6 = this._doc != null && this._doc.respData != null; + if (flag6) + { + this.RefreshBoss(this._doc.respData.confid, false); + } + this.PlayFxEff(); + this.m_timertoken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.PlayEndTimer), null); + } + else + { + bool flag7 = this.state == XBossRefreshAnimHander.State.FADE; + if (flag7) + { + bool activeSelf2 = this.PanelObject.activeSelf; + if (activeSelf2) + { + this.PanelObject.SetActive(false); + } + bool activeSelf3 = this.m_objFx.activeSelf; + if (activeSelf3) + { + this.m_objFx.SetActive(false); + } + DlgBase.singleton.PlayRefreshEff(); + DlgBase.singleton.DelayRefresh(); + this.state = XBossRefreshAnimHander.State.None; + } + } + } + } + } + + private int GetFrame(uint index) + { + bool flag = this.frames.Count <= 0; + int result; + if (flag) + { + result = 15; + } + else + { + bool flag2 = (long)this.frames.Count <= (long)((ulong)index); + if (flag2) + { + result = this.frames[this.frames.Count - 1]; + } + else + { + result = this.frames[(int)index]; + } + } + return result; + } + + public void OnUnload() + { + bool flag = this.m_timertoken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.m_timertoken); + } + } + + private void PlayFxEff() + { + this.m_objFx.SetActive(true); + this.m_tween1.ResetTween(true); + this.m_tween2.ResetTween(true); + this.m_tween3.ResetTween(true); + this.m_tween1.PlayTween(true, -1f); + this.m_tween2.ResetTween(true); + this.m_tween3.ResetTween(true); + } + + private void PlayEndTimer(object o) + { + this.state = XBossRefreshAnimHander.State.FADE; + } + + private void RefreshRandBoss() + { + int num = XBossBushDocument.bossRushTable.Table.Length - 2; + int uid = UnityEngine.Random.Range(1, num); + this.RefreshBoss(uid, true); + } + + private void RefreshBoss(int uid, bool rand) + { + BossRushTable.RowData bossRushRow = this._doc.GetBossRushRow(uid); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID((uint)bossRushRow.bossid); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + this.m_lblTitle.SetText(this.MakeBossName(byID.Name, (int)bossRushRow.bossdifficult[0])); + this.m_lblDiff.SetText(XStringDefineProxy.GetString("BOSSRUSH_DIF" + bossRushRow.bossdifficult[0])); + this.m_sprIcon.SetSprite(byPresentID.Avatar, byPresentID.Atlas, false); + if (rand) + { + BossRushBuffTable.RowData[] randBuffs = this._doc.GetRandBuffs(); + this.m_sprBuff1.SetSprite(randBuffs[0].icon); + this.m_lblBuff1.SetText(randBuffs[0].Comment); + this.m_sprBuff2.SetSprite(randBuffs[1].icon); + this.m_lblBuff2.SetText(randBuffs[1].Comment); + int quality = randBuffs[0].Quality; + int quality2 = randBuffs[1].Quality; + string value = XSingleton.singleton.GetValue("Quality" + quality + "Color"); + string value2 = XSingleton.singleton.GetValue("Quality" + quality2 + "Color"); + this.m_lblBuff1.SetColor(XSingleton.singleton.ParseColor(value, 0)); + this.m_sprBuff1.SetColor(XSingleton.singleton.ParseColor(value, 0)); + this.m_lblBuff2.SetColor(XSingleton.singleton.ParseColor(value2, 0)); + this.m_sprBuff2.SetColor(XSingleton.singleton.ParseColor(value2, 0)); + } + else + { + this.m_sprBuff1.SetSprite(this._doc.bossBuff1Row.icon); + this.m_lblBuff1.SetText(this._doc.bossBuff1Row.Comment); + this.m_sprBuff2.SetSprite(this._doc.bossBuff2Row.icon); + this.m_lblBuff2.SetText(this._doc.bossBuff2Row.Comment); + int quality3 = this._doc.bossBuff1Row.Quality; + int quality4 = this._doc.bossBuff2Row.Quality; + string value3 = XSingleton.singleton.GetValue("Quality" + quality3 + "Color"); + string value4 = XSingleton.singleton.GetValue("Quality" + quality4 + "Color"); + this.m_lblBuff1.SetColor(XSingleton.singleton.ParseColor(value3, 0)); + this.m_sprBuff1.SetColor(XSingleton.singleton.ParseColor(value3, 0)); + this.m_lblBuff2.SetColor(XSingleton.singleton.ParseColor(value4, 0)); + this.m_sprBuff2.SetColor(XSingleton.singleton.ParseColor(value4, 0)); + } + } + + private string MakeBossName(string name, int diff) + { + return DlgBase.singleton.colors[diff - 1] + name; + } + + private void UpdateSlider() + { + float value = this.m_playCnt / this.m_allCnt; + this.m_slider.value = value; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBossRefreshAnimHander.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBossRefreshAnimHander.cs.meta new file mode 100644 index 00000000..00c02b1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBossRefreshAnimHander.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1444a62a9a6feea4392cdc1f4ef6b3d1 +timeCreated: 1611403254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBossRewardDlg.cs b/Client/Assets/Scripts/XMainClient/UI/XBossRewardDlg.cs new file mode 100644 index 00000000..bef8cf76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBossRewardDlg.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class XBossRewardDlg : XSingleton + { + private XGuildDragonDocument _Doc = null; + + private GameObject PanelObject; + + private IXUIButton m_lblClose; + + public IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + public void Init(GameObject _go) + { + bool flag = this.PanelObject == null || this.PanelObject != _go; + if (flag) + { + this.PanelObject = _go; + this._Doc = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + this.m_lblClose = (_go.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_lblClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + this.m_ScrollView = (_go.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (_go.transform.Find("Bg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.GuildRankWrapContentItemUpdated)); + } + this.RefreshGuildRoleRank(); + } + + private void GuildRankWrapContentItemUpdated(Transform t, int index) + { + List> currentRewardList = this._Doc.currentRewardList; + bool flag = index < 0 || index >= currentRewardList.Count; + if (!flag) + { + Seq2 seq = currentRewardList[index]; + XSingleton.singleton.normalItemDrawer.DrawItem(t.Find("ItemTpl").gameObject, (int)seq.value0, (int)seq.value1, false); + IXUISprite ixuisprite = t.Find("ItemTpl/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)seq.value0; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this.GetName(index)); + IXUILabel ixuilabel2 = t.Find("Des").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(this.GetDes(index)); + IXUILabel ixuilabel3 = t.Find("ItemTpl/ssssss").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(this.GetLabel(index)); + } + } + + private string GetName(int index) + { + string str = this._Doc.dicRewardName[index]; + return XStringDefineProxy.GetString(str + "_TITLE"); + } + + private string GetLabel(int index) + { + string key = this._Doc.dicRewardName[index]; + return XStringDefineProxy.GetString(key); + } + + private string GetDes(int index) + { + string key = this._Doc.dicRewardDes[index]; + return XStringDefineProxy.GetString(key); + } + + public void RefreshGuildRoleRank() + { + this.m_WrapContent.SetContentCount(this._Doc.currentRewardList.Count, false); + this.m_ScrollView.ResetPosition(); + } + + private bool OnCloseClick(IXUIButton button) + { + this.PanelObject.SetActive(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBossRewardDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBossRewardDlg.cs.meta new file mode 100644 index 00000000..75bde497 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBossRewardDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a635b2e61f191404997d4bb1322f3f9d +timeCreated: 1611404288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupBehaviour.cs new file mode 100644 index 00000000..496ec30f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBriefLevelupBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUISprite m_Close2; + + public XUIPool m_FuncPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Close2 = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("Bg/Panel/Tpl"); + this.m_FuncPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupBehaviour.cs.meta new file mode 100644 index 00000000..fda10f10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d05fbf960c15b224598294f6a9e9f3fc +timeCreated: 1611404587 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupView.cs b/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupView.cs new file mode 100644 index 00000000..d50861f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupView.cs @@ -0,0 +1,362 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBriefLevelupView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/BriefLevelupDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XFPStrengthenDocument _doc = null; + + private XDailyActivitiesDocument _activityDoc = null; + + public XUIPool m_FpStrengthenPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_FpButtonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XSysDefine[] _Funcs = new XSysDefine[] + { + XSysDefine.XSys_GuildDailyTask, + XSysDefine.XSys_Reward_Activity, + XSysDefine.XSys_Level_Elite, + XSysDefine.XSys_Activity_Nest + }; + + private XBriefLevelupView.DataItem[] DataArray; + + private class DataItem + { + public int Index + { + get + { + return this.m_index; + } + } + + private int m_index = 0; + + public XSysDefine SysId = XSysDefine.XSys_None; + + public bool IsOpen = false; + + public bool IsRecommend = false; + + public string RecommendTxt = ""; + + public string NameTxt = ""; + + public string TipsTxt = ""; + + public string IconTxt = ""; + + public DataItem(int index) + { + this.m_index = index; + } + } + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + this._activityDoc = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + this.DataArray = new XBriefLevelupView.DataItem[this._Funcs.Length]; + for (int i = 0; i < this.DataArray.Length; i++) + { + XBriefLevelupView.DataItem dataItem = new XBriefLevelupView.DataItem(i); + dataItem.SysId = this._Funcs[i]; + this.DataArray[i] = dataItem; + this.SetRecommendInfo(this.DataArray[i].Index, ref this.DataArray[i].IsRecommend, ref this.DataArray[i].RecommendTxt); + this.SetBaseInfo(this.DataArray[i].SysId, ref this.DataArray[i].IconTxt, ref this.DataArray[i].NameTxt); + } + } + + protected override void OnShow() + { + base.OnShow(); + this._activityDoc.QueryDailyActivityData(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Close2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + } + + public void FillContent() + { + this.FillData(); + base.uiBehaviour.m_FuncPool.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_FuncPool.TplPos; + for (int i = 0; i < this.DataArray.Length; i++) + { + XBriefLevelupView.DataItem dataItem = this.DataArray[i]; + GameObject gameObject = base.uiBehaviour.m_FuncPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(i * base.uiBehaviour.m_FuncPool.TplWidth), tplPos.y); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + GameObject gameObject2 = gameObject.transform.Find("Recommend").gameObject; + GameObject gameObject3 = gameObject.transform.Find("Noopen").gameObject; + IXUILabel ixuilabel2 = gameObject.transform.Find("Noopen/T").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Recommend/Exp").GetComponent("XUILabel") as IXUILabel; + gameObject2.SetActive(dataItem.IsRecommend); + ixuilabel3.SetText(dataItem.RecommendTxt); + gameObject3.SetActive(!dataItem.IsOpen); + ixuilabel2.SetText(dataItem.TipsTxt); + ixuisprite.SetSprite(dataItem.IconTxt); + ixuilabel.SetText(dataItem.NameTxt); + ixuisprite2.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(dataItem.SysId)); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.GoToStrengthSys)); + } + } + + private void FillData() + { + for (int i = 0; i < this.DataArray.Length; i++) + { + this.SysIsOpen(this.DataArray[i].SysId, ref this.DataArray[i].IsOpen, ref this.DataArray[i].TipsTxt); + } + for (int j = 0; j < this.DataArray.Length; j++) + { + for (int k = j + 1; k < this.DataArray.Length; k++) + { + bool flag = !this.DataArray[j].IsOpen && this.DataArray[k].IsOpen; + if (flag) + { + XBriefLevelupView.DataItem dataItem = this.DataArray[j]; + this.DataArray[j] = this.DataArray[k]; + this.DataArray[k] = dataItem; + } + } + } + } + + private void SysIsOpen(XSysDefine define, ref bool isOpen, ref string tips) + { + bool flag = !XSingleton.singleton.IsSystemOpened(define); + if (flag) + { + isOpen = false; + tips = XSingleton.singleton.GetString("NotOpen"); + } + else + { + if (define <= XSysDefine.XSys_Reward_Activity) + { + if (define != XSysDefine.XSys_Level_Elite) + { + if (define == XSysDefine.XSys_Reward_Activity) + { + bool flag2 = this._activityDoc.IsFinishedAllActivity(); + if (flag2) + { + isOpen = false; + tips = XSingleton.singleton.GetString("LEVEL_CHALLENGE_FINISH"); + return; + } + } + } + else + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int num = specificDocument.GetDayCount(TeamLevelType.TeamLevelAbyss, null); + bool flag3 = num <= 0; + if (flag3) + { + isOpen = false; + tips = XSingleton.singleton.GetString("ERR_TEAM_TOWER_DAYCOUNT"); + return; + } + num = (int)XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.FATIGUE); + bool flag4 = num < XSingleton.singleton.GetInt("EliteNeedEnergy"); + if (flag4) + { + isOpen = false; + tips = XSingleton.singleton.GetString("ERR_SCENE_NOFATIGUE"); + return; + } + } + } + else if (define != XSysDefine.XSys_Activity_Nest) + { + if (define == XSysDefine.XSys_GuildDailyTask) + { + XTaskDocument specificDocument2 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + TaskStatus taskStatue = specificDocument2.GetTaskStatue(); + bool flag5 = taskStatue == TaskStatus.TaskStatus_Over; + if (flag5) + { + isOpen = false; + tips = XSingleton.singleton.GetString("LEVEL_CHALLENGE_FINISH"); + return; + } + } + } + else + { + XExpeditionDocument specificDocument3 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int num2 = specificDocument3.GetDayCount(TeamLevelType.TeamLevelNest, null); + bool flag6 = num2 <= 0; + if (flag6) + { + isOpen = false; + tips = XSingleton.singleton.GetString("ERR_TEAM_TOWER_DAYCOUNT"); + return; + } + num2 = (int)XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.FATIGUE); + bool flag7 = num2 < XSingleton.singleton.GetInt("NestNeedEnergy"); + if (flag7) + { + isOpen = false; + tips = XSingleton.singleton.GetString("ERR_SCENE_NOFATIGUE"); + return; + } + } + isOpen = true; + } + } + + private void SetRecommendInfo(int index, ref bool isRecommon, ref string recommonTxt) + { + string value = XSingleton.singleton.GetValue("LevelUpExpText"); + bool flag = string.IsNullOrEmpty(value); + if (!flag) + { + string[] array = value.Split(XGlobalConfig.ListSeparator); + bool flag2 = array == null; + if (!flag2) + { + int num = 0; + while (num < array.Length && num < this.DataArray.Length) + { + bool flag3 = num != index; + if (!flag3) + { + string[] array2 = array[num].Split(XGlobalConfig.SequenceSeparator); + bool flag4 = array2 == null; + if (!flag4) + { + bool flag5 = array2.Length != 0; + if (flag5) + { + isRecommon = (array2[0] == "1"); + } + bool flag6 = array2.Length > 1; + if (flag6) + { + recommonTxt = array2[1]; + } + break; + } + } + num++; + } + } + } + } + + private void SetBaseInfo(XSysDefine define, ref string iconTxt, ref string nameTxt) + { + FpStrengthenTable.RowData rowData = this._doc.SearchBySysID(define); + bool flag = rowData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("error,no this data in BQ", "---->", define.ToString(), null, null, null); + } + else + { + iconTxt = rowData.BQImageID; + nameTxt = rowData.BQName; + } + } + + private XBriefLevelupView.DataItem GetDataBySystemId(XSysDefine systemId) + { + for (int i = 0; i < this.DataArray.Length; i++) + { + bool flag = this.DataArray[i].SysId == systemId; + if (flag) + { + return this.DataArray[i]; + } + } + return null; + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisible(false, true); + return true; + } + + public void OnCloseClicked(IXUISprite sp) + { + this.SetVisible(false, true); + } + + public void GoToStrengthSys(IXUISprite sp) + { + this.SetVisible(false, true); + XBriefLevelupView.DataItem dataBySystemId = this.GetDataBySystemId((XSysDefine)sp.ID); + bool flag = dataBySystemId == null || !dataBySystemId.IsOpen; + if (!flag) + { + XSysDefine sysId = dataBySystemId.SysId; + if (sysId <= XSysDefine.XSys_Reward_Activity) + { + if (sysId != XSysDefine.XSys_Level_Elite) + { + if (sysId == XSysDefine.XSys_Reward_Activity) + { + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Reward_Activity); + } + } + else + { + DlgBase.singleton.AutoShowLastChapter(1u, false); + } + } + else if (sysId != XSysDefine.XSys_Activity_Nest) + { + if (sysId == XSysDefine.XSys_GuildDailyTask) + { + XSingleton.singleton.CloseAllUI(); + XSingleton.singleton.OpenSystem(XSysDefine.XSys_GuildDailyTask, 0UL); + } + } + else + { + XSingleton.singleton.OpenSystem(dataBySystemId.SysId, 0UL); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupView.cs.meta new file mode 100644 index 00000000..7284bdc3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBriefLevelupView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dfa3a28ac84e3c645a56391af9c25b8e +timeCreated: 1611404694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenBehaviour.cs new file mode 100644 index 00000000..25208a73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenBehaviour.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBriefStrengthenBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUISprite m_Close2; + + public IXUILabel m_More; + + public XUIPool m_FuncPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Close2 = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("Bg/P/Tpl"); + this.m_FuncPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_More = (base.transform.Find("Bg/More").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenBehaviour.cs.meta new file mode 100644 index 00000000..c5b7b534 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cdd7054ec6fb79748b0091381f4d5c21 +timeCreated: 1611404576 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenView.cs b/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenView.cs new file mode 100644 index 00000000..8f0c7995 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenView.cs @@ -0,0 +1,124 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBriefStrengthenView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/BriefStrengthenDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public static readonly int FUNCTION_NUM = 3; + + private XFPStrengthenDocument _doc = null; + + public XUIPool m_FpStrengthenPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_FpButtonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_BQList = null; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Close2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_More.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnMoreClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_FuncPool.FakeReturnAll(); + Vector3 tplPos = base.uiBehaviour.m_FuncPool.TplPos; + int num = 0; + this.m_BQList = this._doc.GetBQByType(200); + int num2 = 0; + while (num < XBriefStrengthenView.FUNCTION_NUM && num2 < this.m_BQList.Count) + { + FpStrengthenTable.RowData rowData = this.m_BQList[num2]; + bool flag = rowData == null; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_FuncPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(num * base.uiBehaviour.m_FuncPool.TplWidth), tplPos.y); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(rowData.BQImageID); + ixuilabel.SetText(rowData.BQName); + ixuisprite2.ID = (ulong)((long)num2); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.GoToStrengthSys)); + num++; + } + num2++; + } + base.uiBehaviour.m_FuncPool.ActualReturnAll(false); + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisible(false, true); + return true; + } + + public void OnCloseClicked(IXUISprite sp) + { + this.SetVisible(false, true); + } + + private void _OnMoreClicked(IXUILabel iLabel) + { + this.SetVisible(false, true); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + + public void GoToStrengthSys(IXUISprite sp) + { + int num = (int)sp.ID; + this.SetVisible(false, true); + bool flag = num >= this.m_BQList.Count; + if (!flag) + { + XSingleton.singleton.OpenSystem((XSysDefine)this.m_BQList[num].BQSystem, 0UL); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenView.cs.meta new file mode 100644 index 00000000..e71e7b14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBriefStrengthenView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef793500979442f43b6120415a1216d1 +timeCreated: 1611404804 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs b/Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs new file mode 100644 index 00000000..11d1d98e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs @@ -0,0 +1,186 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBuffIcon + { + private static float DISAPPEAR_START_LEFT_TIME = 3f; + + private GameObject m_Go; + + private IXUISprite m_uiIcon; + + private IXUILabel m_uiLeftTime; + + private IXUILabel m_uiCount; + + private IXUITweenTool m_Tween; + + private Vector3 m_OriginPos; + + private float m_fLeftTime; + + private int m_nLeftTime; + + private float m_fStartTime; + + private float m_fStartLeftTime; + + private bool m_bActive = false; + + private bool m_bPermernent = false; + + private bool m_bShowTime = true; + + private XBuffIcon.AnimState m_AnimState = XBuffIcon.AnimState.AS_NORMAL; + + private enum AnimState + { + AS_NORMAL, + AS_DISAPPEARING + } + + public void Init(GameObject go, bool bShowTime) + { + this.m_Go = go; + this.m_OriginPos = go.transform.localPosition; + this.m_uiIcon = (go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_uiLeftTime = (go.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_uiCount = (go.transform.Find("Count").GetComponent("XUILabel") as IXUILabel); + this.m_Tween = (go.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_bShowTime = bShowTime; + this.m_uiLeftTime.SetVisible(this.m_bShowTime); + this.Hide(); + } + + public void Set(UIBuffInfo buffInfo) + { + this.m_Go.transform.localPosition = this.m_OriginPos; + this.m_uiIcon.SetSprite(buffInfo.buffInfo.BuffIcon); + bool flag = buffInfo.stackCount <= 1u; + if (flag) + { + this.m_uiCount.SetText(string.Empty); + } + else + { + this.m_uiCount.SetText(XSingleton.singleton.StringCombine("[b]", buffInfo.stackCount.ToString())); + } + this.m_bPermernent = (buffInfo.buffInfo.BuffDuration < 0f); + XBuffIcon.AnimState animState = XBuffIcon.AnimState.AS_NORMAL; + bool flag2 = !this.m_bPermernent && buffInfo.leftTime <= XBuffIcon.DISAPPEAR_START_LEFT_TIME; + if (flag2) + { + animState = XBuffIcon.AnimState.AS_DISAPPEARING; + } + bool flag3 = animState != this.m_AnimState; + if (flag3) + { + this._ResetAnimState(); + XBuffIcon.AnimState animState2 = animState; + if (animState2 == XBuffIcon.AnimState.AS_DISAPPEARING) + { + this._PlayStartDisappearAnim(); + } + } + this.m_nLeftTime = 0; + this.m_fStartTime = buffInfo.startTime; + this.m_fStartLeftTime = buffInfo.leftTime; + this.m_fLeftTime = buffInfo.leftTime - (this._GetCurTime() - buffInfo.startTime); + this.m_bActive = true; + this._UpdateTime(); + } + + public void Hide() + { + this.m_Go.transform.localPosition = XGameUI.Far_Far_Away; + this._ResetAnimState(); + this.m_bActive = false; + } + + private float _GetCurTime() + { + bool syncMode = XSingleton.singleton.SyncMode; + float result; + if (syncMode) + { + result = Time.realtimeSinceStartup; + } + else + { + result = Time.time; + } + return result; + } + + private void _PlayStartDisappearAnim() + { + bool flag = this.m_Tween != null; + if (flag) + { + this.m_Tween.PlayTween(true, -1f); + this.m_AnimState = XBuffIcon.AnimState.AS_DISAPPEARING; + } + } + + private void _ResetAnimState() + { + bool flag = this.m_AnimState == XBuffIcon.AnimState.AS_DISAPPEARING; + if (flag) + { + bool flag2 = this.m_Tween != null; + if (flag2) + { + this.m_Tween.ResetTween(true); + } + } + this.m_AnimState = XBuffIcon.AnimState.AS_NORMAL; + } + + public void OnUpdate() + { + bool flag = !this.m_bActive; + if (!flag) + { + bool flag2 = !this.m_bPermernent && this.m_bShowTime; + if (flag2) + { + this.m_fLeftTime = this.m_fStartLeftTime - (this._GetCurTime() - this.m_fStartTime); + this._UpdateTime(); + } + } + } + + private void _UpdateTime() + { + bool bPermernent = this.m_bPermernent; + if (bPermernent) + { + this.m_uiLeftTime.SetText(""); + this.m_uiLeftTime.Alpha = 1f; + } + else + { + int num = Mathf.CeilToInt(this.m_fLeftTime); + bool flag = num != this.m_nLeftTime; + if (flag) + { + this.m_nLeftTime = num; + bool flag2 = num <= 0 || (float)num > XSingleton.singleton.BuffMaxDisplayTime; + if (flag2) + { + this.m_uiLeftTime.Alpha = 0f; + } + else + { + this.m_uiLeftTime.SetText(XSingleton.singleton.StringCombine("[b]", num.ToString())); + this.m_uiLeftTime.Alpha = 1f; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs.meta new file mode 100644 index 00000000..899affb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBuffIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a3f090f19718364cae6d8382b831c9a +timeCreated: 1611403595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBuffMonitorHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XBuffMonitorHandler.cs new file mode 100644 index 00000000..bec9d9d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBuffMonitorHandler.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBuffMonitorHandler : DlgHandlerBase + { + private XUIPool m_BuffPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XBuffIcon[] m_BuffList; + + private GameObject m_TplGo; + + private uint m_MaxDisplayBuffCount = 5u; + + protected override void Init() + { + base.Init(); + bool flag = base.PanelObject.layer == LayerMask.NameToLayer("Billboard"); + if (flag) + { + this.m_TplGo = base.PanelObject.transform.Find("Buff").gameObject; + } + else + { + this.m_TplGo = (XSingleton.singleton.CreateFromPrefab("UI/Common/Buff", true, false) as GameObject); + this.m_TplGo.transform.parent = base.PanelObject.transform; + } + Transform transform = base.PanelObject.transform.Find("BuffTpl"); + this.m_TplGo.transform.localPosition = transform.localPosition; + this.m_TplGo.transform.localScale = transform.localScale; + transform.gameObject.SetActive(false); + this.m_BuffPool.SetupPool(base.PanelObject, this.m_TplGo, this.m_MaxDisplayBuffCount, false); + } + + public override void OnUnload() + { + XResourceLoaderMgr.SafeDestroy(ref this.m_TplGo, true); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_BuffList == null; + if (!flag) + { + for (int i = 0; i < this.m_BuffList.Length; i++) + { + this.m_BuffList[i].OnUpdate(); + } + } + } + + public void InitMonitor(uint maxDisplayCount, bool bLeftToRight = true, bool bShowTime = true) + { + this.m_MaxDisplayBuffCount = maxDisplayCount; + bool flag = this.m_BuffList != null; + if (flag) + { + this.m_BuffPool.ReturnAll(false); + } + this.m_BuffList = new XBuffIcon[this.m_MaxDisplayBuffCount]; + int num = 0; + while ((long)num < (long)((ulong)this.m_MaxDisplayBuffCount)) + { + XBuffIcon xbuffIcon = new XBuffIcon(); + GameObject gameObject = this.m_BuffPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_BuffPool.TplPos.x + (float)((bLeftToRight ? 1 : -1) * num * this.m_BuffPool.TplWidth), this.m_BuffPool.TplPos.y, this.m_BuffPool.TplPos.z); + xbuffIcon.Init(gameObject, bShowTime); + this.m_BuffList[num] = xbuffIcon; + num++; + } + } + + public void OnBuffChanged(List buffList) + { + int num = 0; + int num2 = 0; + while (num2 < buffList.Count && num < this.m_BuffList.Length) + { + bool flag = buffList[num2].buffInfo == null || !buffList[num2].buffInfo.BuffIsVisible; + if (!flag) + { + this.m_BuffList[num++].Set(buffList[num2]); + } + num2++; + } + for (int i = num; i < this.m_BuffList.Length; i++) + { + this.m_BuffList[i].Hide(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBuffMonitorHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBuffMonitorHandler.cs.meta new file mode 100644 index 00000000..531e25f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBuffMonitorHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d03d595ffcbe01428455344188e950b +timeCreated: 1611403176 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBuyCountBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XBuyCountBehaviour.cs new file mode 100644 index 00000000..d584d475 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBuyCountBehaviour.cs @@ -0,0 +1,32 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XBuyCountBehaviour : DlgBehaviourBase + { + public IXUILabel m_Content = null; + + public IXUILabelSymbol m_ContentLabelSymbol = null; + + public IXUILabel m_LeftBuyCount = null; + + public IXUIButton m_OKButton = null; + + public IXUIButton m_CancelButton = null; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Content"); + this.m_Content = (transform.GetComponent("XUILabel") as IXUILabel); + this.m_ContentLabelSymbol = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_LeftBuyCount = (base.transform.Find("Bg/LeftBuyCount").GetComponent("XUILabel") as IXUILabel); + Transform transform2 = base.transform.Find("Bg/OK"); + this.m_OKButton = (transform2.GetComponent("XUIButton") as IXUIButton); + Transform transform3 = base.transform.Find("Bg/Cancel"); + this.m_CancelButton = (transform3.GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBuyCountBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBuyCountBehaviour.cs.meta new file mode 100644 index 00000000..b36a3794 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBuyCountBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7407b6348cbeaf14e94f4b05594b18f3 +timeCreated: 1611403942 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XBuyCountView.cs b/Client/Assets/Scripts/XMainClient/UI/XBuyCountView.cs new file mode 100644 index 00000000..6bbac211 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBuyCountView.cs @@ -0,0 +1,106 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XBuyCountView : DlgBase + { + public override string fileName + { + get + { + return "Common/BuyCountDlg"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private TeamLevelType m_Type; + + private XExpeditionDocument m_ExpDoc; + + protected override void Init() + { + this.m_ExpDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_CancelButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._DoCancel)); + base.uiBehaviour.m_OKButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._DoOK)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void ActiveShow(TeamLevelType dungeonType) + { + this._ShowBuyCountAndBuyConfirm("ACTIVE_BUYCOUNT_CONFIRM", dungeonType); + } + + public void PassiveShow(TeamLevelType dungeonType) + { + this._ShowBuyCountAndBuyConfirm("PASSIVE_BUYCOUNT_CONFIRM", dungeonType); + } + + private void _ShowBuyCountAndBuyConfirm(string reason, TeamLevelType dungeonType) + { + base.Load(); + int num; + int num2; + bool flag = this.m_ExpDoc.CanBuy(dungeonType, out num, out num2); + if (flag) + { + CostInfo buyCost = this.m_ExpDoc.GetBuyCost(dungeonType); + base.uiBehaviour.m_ContentLabelSymbol.InputText = XStringDefineProxy.GetString(reason, new object[] + { + XLabelSymbolHelper.FormatCostWithIcon((int)buyCost.count, buyCost.type), + XStringDefineProxy.GetString(dungeonType.ToString()) + }); + base.uiBehaviour.m_LeftBuyCount.SetText((num2 - num).ToString()); + this.m_Type = dungeonType; + this.SetVisibleWithAnimation(true, null); + } + else + { + bool flag2 = this.m_ExpDoc.GetBuyLimit(dungeonType) > 0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAMBUY_COUNT_MAX, "fece00"); + } + } + } + + private bool _DoOK(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + this.m_ExpDoc.ReqBuyCount(this.m_Type); + return true; + } + + private bool _DoCancel(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XBuyCountView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XBuyCountView.cs.meta new file mode 100644 index 00000000..071a0eb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XBuyCountView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1535af2e039d5bd4ab86bb818d431a4a +timeCreated: 1611403262 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XCampDuelMainHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XCampDuelMainHandler.cs new file mode 100644 index 00000000..520dc4f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCampDuelMainHandler.cs @@ -0,0 +1,594 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XCampDuelMainHandler : DlgHandlerBase + { + public string CampName + { + get + { + bool flag = this.SelectID == 1; + string result; + if (flag) + { + result = XStringDefineProxy.GetString("CAMPDUEL_LEFT_NAME"); + } + else + { + bool flag2 = this.SelectID == 2; + if (flag2) + { + result = XStringDefineProxy.GetString("CAMPDUEL_RIGHT_NAME"); + } + else + { + result = ""; + } + } + return result; + } + } + + protected override string FileName + { + get + { + return "OperatingActivity/CampDuelFrame"; + } + } + + private XCampDuelDocument doc = null; + + private XCampDuelPointRewardHandler _PointRewardHandler; + + private int SelectID; + + private uint _AutoRefresheTimeID; + + private uint _AutoCloseBlahTimeID; + + private Transform m_JoinFrame; + + private Transform m_MainFrame; + + private IXUITexture m_TexLeft; + + private IXUITexture m_TexRight; + + private IXUISprite m_Icon; + + private IXUIButton m_BtnSelectLeft; + + private IXUIButton m_BtnSelectRight; + + private IXUILabel m_Intro; + + private Transform m_Content; + + private Transform m_Empty; + + private IXUIButton m_BtnJoin; + + private IXUILabel m_SelectReward; + + private IXUILabel m_SelectName; + + private IXUISprite m_BtnJoinHelp; + + private IXUILabel m_LeftName; + + private IXUILabel m_RightName; + + private IXUILabel m_MainBlah; + + private IXUILabel m_MainTips; + + private IXUITexture m_MainCampTex; + + private IXUILabel m_MainName; + + private IXUISprite m_MainCondition; + + private IXUIButton m_BtnMainHelp; + + private IXUILabel m_BtnMainHelpTips; + + private IXUILabel m_MainPoint; + + private IXUILabel m_MainCurRewardPoint; + + private Transform m_MainCurRewardText; + + private Transform m_MainItem; + + private IXUISprite m_MainItemIcon; + + private IXUIButton m_MainBtnConfirm; + + private IXUILabel m_MainConfirmPoint; + + private IXUILabel m_MainFreeCourageCount; + + private IXUILabel m_MainDragonCoinCourageCount; + + private IXUIButton m_MainBtnCourage; + + private Transform m_MainBtnCourageRedPoint; + + private Transform m_MainFree; + + private IXUILabel m_MainDragonCoin; + + private IXUILabel m_MainCouragePoint; + + private Transform m_MainRewardItemList; + + private Transform m_MainCurRewardItemList; + + private Transform m_MainNextRewardItemList; + + private Transform m_MainChestFx; + + private IXUISprite m_MainCurChest; + + private IXUIButton m_MainBtnReward; + + private IXUIButton m_MainBtnRank; + + private IXUILabel m_MainEndTime; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUITweenTool m_MainAddPointTween; + + private IXUILabel m_MainAddPoint; + + private IXUIButton m_Help; + + private List itemid = new List(); + + private List itemCount = new List(); + + private XFx _BoxUpFx; + + private XFx _NPCFx; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XCampDuelDocument.uuID); + this.doc.handler = this; + this.m_JoinFrame = base.transform.Find("JoinFrame"); + this.m_MainFrame = base.transform.Find("MainFrame"); + this.m_TexLeft = (this.m_JoinFrame.Find("Left/Tex").GetComponent("XUITexture") as IXUITexture); + this.m_TexRight = (this.m_JoinFrame.Find("Right/Tex").GetComponent("XUITexture") as IXUITexture); + this.m_BtnSelectLeft = (this.m_JoinFrame.Find("Left/BtnSelect").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSelectRight = (this.m_JoinFrame.Find("Right/BtnSelect").GetComponent("XUIButton") as IXUIButton); + this.m_LeftName = (this.m_JoinFrame.Find("Left/T").GetComponent("XUILabel") as IXUILabel); + this.m_RightName = (this.m_JoinFrame.Find("Right/T").GetComponent("XUILabel") as IXUILabel); + this.m_Icon = (this.m_JoinFrame.Find("Detail/Avatar/Content").GetComponent("XUISprite") as IXUISprite); + this.m_Intro = (this.m_JoinFrame.Find("Detail/Intro").GetComponent("XUILabel") as IXUILabel); + this.m_Empty = this.m_JoinFrame.Find("Detail/CampSelect/Empty"); + this.m_Content = this.m_JoinFrame.Find("Detail/CampSelect/Content"); + this.m_BtnJoin = (this.m_JoinFrame.Find("Detail/CampSelect/BtnJoin").GetComponent("XUIButton") as IXUIButton); + this.m_SelectReward = (this.m_JoinFrame.Find("Detail/CampSelect/Content/Reward").GetComponent("XUILabel") as IXUILabel); + this.m_SelectName = (this.m_JoinFrame.Find("Detail/CampSelect/Content/Name").GetComponent("XUILabel") as IXUILabel); + this.m_BtnJoinHelp = (this.m_JoinFrame.Find("Detail/CampSelect/Content/Help").GetComponent("XUISprite") as IXUISprite); + this.m_MainTips = (this.m_MainFrame.Find("Intro").GetComponent("XUILabel") as IXUILabel); + this.m_MainCampTex = (this.m_MainFrame.Find("Camp/Tex").GetComponent("XUITexture") as IXUITexture); + this.m_MainName = (this.m_MainFrame.Find("Camp/Name").GetComponent("XUILabel") as IXUILabel); + this.m_MainCondition = (this.m_MainFrame.Find("Camp/Condition").GetComponent("XUISprite") as IXUISprite); + this.m_BtnMainHelp = (this.m_MainFrame.Find("Camp/Condition/Help").GetComponent("XUIButton") as IXUIButton); + this.m_BtnMainHelpTips = (this.m_MainFrame.Find("Camp/Condition/Content").GetComponent("XUILabel") as IXUILabel); + this.m_BtnMainHelpTips.gameObject.SetActive(false); + this.m_MainBlah = (this.m_MainFrame.Find("Camp/Blah").GetComponent("XUILabel") as IXUILabel); + this.m_MainBlah.gameObject.SetActive(false); + this.m_MainPoint = (this.m_MainFrame.Find("Point").GetComponent("XUILabel") as IXUILabel); + this.m_MainAddPointTween = (this.m_MainFrame.Find("Point/AddPoint").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_MainAddPoint = (this.m_MainFrame.Find("Point/AddPoint").GetComponent("XUILabel") as IXUILabel); + this.m_MainCurRewardPoint = (this.m_MainFrame.Find("CurrnetReward/Point").GetComponent("XUILabel") as IXUILabel); + this.m_MainAddPoint.gameObject.SetActive(false); + this.m_MainCurRewardText = this.m_MainFrame.Find("CurrnetReward/ChestTpl/T"); + this.m_MainRewardItemList = this.m_MainFrame.Find("ItemIconList"); + this.m_MainCurRewardItemList = this.m_MainFrame.Find("CurrnetReward/ItemIconList"); + this.m_MainNextRewardItemList = this.m_MainFrame.Find("NextReward/ItemIconList"); + this.m_MainCurChest = (this.m_MainFrame.Find("CurrnetReward/ChestTpl").GetComponent("XUISprite") as IXUISprite); + this.m_MainChestFx = this.m_MainFrame.Find("CurrnetReward/ChestTpl/Fx"); + this.m_MainBtnReward = (this.m_MainFrame.Find("BtnReward").GetComponent("XUIButton") as IXUIButton); + this.m_MainBtnRank = (this.m_MainFrame.Find("BtnRank").GetComponent("XUIButton") as IXUIButton); + this.m_MainEndTime = (this.m_MainFrame.Find("EndTime").GetComponent("XUILabel") as IXUILabel); + Transform transform = this.m_MainFrame.Find("Operate/Contribute"); + this.m_MainItem = transform.Find("ItemTpl"); + this.m_MainItemIcon = (transform.Find("ItemTpl/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_MainBtnConfirm = (transform.Find("BtnSubmit").GetComponent("XUIButton") as IXUIButton); + this.m_MainConfirmPoint = (transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + transform = this.m_MainFrame.Find("Operate/Courage"); + this.m_MainFreeCourageCount = (transform.Find("Detail/FreeNum").GetComponent("XUILabel") as IXUILabel); + this.m_MainDragonCoinCourageCount = (transform.Find("Detail/DragonCoinNum").GetComponent("XUILabel") as IXUILabel); + this.m_MainBtnCourage = (transform.Find("BtnCourage").GetComponent("XUIButton") as IXUIButton); + this.m_MainBtnCourageRedPoint = transform.Find("BtnCourage/RedPoint"); + this.m_MainFree = transform.Find("BtnCourage/Free"); + this.m_MainDragonCoin = (transform.Find("BtnCourage/DragonCoin").GetComponent("XUILabel") as IXUILabel); + this.m_MainCouragePoint = (transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.m_Help = (this.m_MainFrame.Find("Title/Help").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnSelectLeft.ID = 1UL; + this.m_BtnSelectLeft.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSelectClicked)); + this.m_BtnSelectRight.ID = 2UL; + this.m_BtnSelectRight.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSelectClicked)); + this.m_BtnJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnJoinClicked)); + this.m_BtnJoinHelp.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnJoinHelpClicked)); + this.m_BtnMainHelp.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnHelpBtnPress)); + this.m_MainBtnConfirm.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnConfirmClicked)); + this.m_MainBtnCourage.ID = (ulong)uint.Parse(XSingleton.singleton.GetValue("CampDuelInspireAddPoint")); + this.m_MainBtnCourage.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCourageClicked)); + this.m_MainCurChest.ID = 1UL; + this.m_MainCurChest.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClicked)); + this.m_MainBtnReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardClicked)); + this.m_MainBtnRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankClicked)); + this.m_MainItemIcon.ID = (ulong)((long)XCampDuelDocument.Doc.ConfirmItemID); + this.m_MainItemIcon.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowUI(); + } + + protected override void OnHide() + { + this.m_TexLeft.SetTexturePath(""); + this.m_TexRight.SetTexturePath(""); + this.m_MainCampTex.SetTexturePath(""); + XSingleton.singleton.KillTimer(this._AutoRefresheTimeID); + this._AutoRefresheTimeID = 0u; + XSingleton.singleton.KillTimer(this._AutoCloseBlahTimeID); + this._AutoCloseBlahTimeID = 0u; + this.UnloadFx(this._BoxUpFx); + this.UnloadFx(this._NPCFx); + this.m_MainBlah.gameObject.SetActive(false); + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._PointRewardHandler); + this.doc.handler = null; + base.OnUnload(); + } + + public void ShowUI() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this.doc.campID == 0; + if (flag2) + { + this.m_JoinFrame.gameObject.SetActive(true); + this.m_MainFrame.gameObject.SetActive(false); + this.ShowJoin(); + } + else + { + this.m_JoinFrame.gameObject.SetActive(false); + this.m_MainFrame.gameObject.SetActive(true); + bool flag3 = this._AutoRefresheTimeID == 0u; + if (flag3) + { + this._AutoRefresh(null); + } + this.ShowMain(); + } + } + } + + private bool OnSelectClicked(IXUIButton btn) + { + this.SelectID = (int)btn.ID; + this.m_TexLeft.SetColor((btn.ID == 1UL) ? Color.white : Color.gray); + this.m_TexRight.SetColor((btn.ID == 1UL) ? Color.gray : Color.white); + this.m_Icon.SetSprite((btn.ID == 1UL) ? XSingleton.singleton.GetValue("CampDuelLeftIcon") : XSingleton.singleton.GetValue("CampDuelRightIcon")); + this.m_Empty.gameObject.SetActive(false); + this.m_Content.gameObject.SetActive(true); + this.m_SelectName.SetText(this.CampName); + this.m_SelectReward.SetText((btn.ID == 1UL) ? XStringDefineProxy.GetString("CAMPDUEL_LEFT_REWARD") : XStringDefineProxy.GetString("CAMPDUEL_RIGHT_REWARD")); + return true; + } + + private bool OnJoinClicked(IXUIButton btn) + { + bool flag = this.SelectID == 0; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CAMPDUEL_JOIN_TIP"), "fece00"); + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("CAMPDUEL_JOIN_CONFIRM"), this.CampName), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._Compose), null, false, XTempTipDefine.OD_START, 50); + result = true; + } + return result; + } + + private bool _Compose(IXUIButton button) + { + XCampDuelDocument.Doc.ReqCampDuel(2u, (uint)this.SelectID); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void OnJoinHelpClicked(IXUISprite btn) + { + DlgHandlerBase.EnsureCreate(ref this._PointRewardHandler, this.m_JoinFrame, false, null); + this._PointRewardHandler.CampID = this.SelectID; + this._PointRewardHandler.SetVisible(true); + } + + public void ShowJoin() + { + this.SelectID = 0; + string value = XSingleton.singleton.GetValue("CampDuelLeftTex"); + this.m_TexLeft.SetTexturePath(value); + this.m_TexLeft.SetColor(Color.gray); + this.m_LeftName.SetText(XStringDefineProxy.GetString("CAMPDUEL_LEFT_NAME")); + value = XSingleton.singleton.GetValue("CampDuelRightTex"); + this.m_TexRight.SetTexturePath(value); + this.m_TexRight.SetColor(Color.gray); + this.m_RightName.SetText(XStringDefineProxy.GetString("CAMPDUEL_RIGHT_NAME")); + this.m_Icon.SetSprite(""); + string arg = XTempActivityDocument.Doc.GetEndTime(XCampDuelDocument.Doc.ActInfo, 1).ToString(XStringDefineProxy.GetString("CAMPDUEL_JOIN_INTRO_TIME")); + this.m_Intro.SetText(string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("CAMPDUEL_JOIN_INTRO")), arg)); + this.m_Empty.gameObject.SetActive(true); + this.m_Content.gameObject.SetActive(false); + } + + private bool OnHelpClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_CampDuel); + return true; + } + + private bool OnConfirmClicked(IXUIButton btn) + { + XCampDuelDocument.Doc.ReqCampDuel(3u, (uint)btn.ID); + return true; + } + + private bool OnCourageClicked(IXUIButton btn) + { + bool flag = XCampDuelDocument.Doc.FreeCourageCount != 0; + if (flag) + { + XCampDuelDocument.Doc.ReqCampDuel(4u, (uint)btn.ID); + } + else + { + XCampDuelDocument.Doc.ReqCampDuel(5u, (uint)btn.ID); + } + return true; + } + + private bool OnRewardClicked(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this._PointRewardHandler, this.m_MainFrame, false, null); + this._PointRewardHandler.CampID = XCampDuelDocument.Doc.campID; + this._PointRewardHandler.SetVisible(true); + return true; + } + + private bool OnRankClicked(IXUIButton btn) + { + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank_CampDuel); + return true; + } + + private void OnItemClicked(IXUISprite btn) + { + XSingleton.singleton.ShowItemAccess((int)btn.ID, null); + } + + private void OnChestClicked(IXUISprite btn) + { + CampDuelPointReward.RowData rowData = this.doc.GetPointReward(this.doc.point); + bool flag = rowData == null; + if (flag) + { + rowData = this.doc.GetNextPointReward(this.doc.point); + } + bool flag2 = rowData == null; + if (!flag2) + { + this.itemid.Clear(); + this.itemCount.Clear(); + for (int i = 0; i < (int)rowData.Reward.count; i++) + { + this.itemid.Add((uint)rowData.Reward[i, 0]); + this.itemCount.Add((uint)rowData.Reward[i, 1]); + } + this.itemid.Add((uint)rowData.EXReward[0]); + this.itemCount.Add((uint)rowData.EXReward[1]); + DlgBase.singleton.Show(this.itemid, this.itemCount, true); + DlgBase.singleton.SetGlobalPosition(btn.gameObject.transform.position); + } + } + + private void OnItemCloseClicked(IXUISprite btn) + { + this.m_MainRewardItemList.gameObject.SetActive(false); + } + + private void OnHelpBtnPress(IXUIButton btn, bool state) + { + bool flag = this.m_BtnMainHelpTips.gameObject.activeInHierarchy != state; + if (flag) + { + this.m_BtnMainHelpTips.gameObject.SetActive(state); + } + } + + public void ShowMain() + { + this.m_MainTips.SetText(XStringDefineProxy.GetString("CAMPDUEL_MAIN_TIP")); + this.m_MainCampTex.SetTexturePath((this.doc.campID == 1) ? XSingleton.singleton.GetValue("CampDuelLeftTex") : XSingleton.singleton.GetValue("CampDuelRightTex")); + this.m_MainName.SetText((this.doc.campID == 1) ? XStringDefineProxy.GetString("CAMPDUEL_LEFT_NAME") : XStringDefineProxy.GetString("CAMPDUEL_RIGHT_NAME")); + this.m_MainCondition.SetSprite((this.doc.aheadCampID == this.doc.campID) ? "Spr_Ahead" : "Spr_Beyond"); + this.m_MainCondition.gameObject.SetActive(this.doc.aheadCampID != 0); + this.m_BtnMainHelpTips.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("CAMPDUEL_MAIN_HELP"))); + this.RefreshPoint(); + int confirmItemID = XCampDuelDocument.Doc.ConfirmItemID; + ulong num = XSingleton.singleton.Doc.XBagDoc.GetItemCount(confirmItemID); + this.m_MainBtnConfirm.ID = num; + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_MainItem.gameObject, confirmItemID, (int)num, true); + this.m_MainConfirmPoint.SetText(((int)num * int.Parse(XSingleton.singleton.GetValue("CampDuelItemPoint"))).ToString()); + this.m_MainBtnConfirm.SetEnable(num > 0UL, false); + this.RefresheCourage(); + this.m_MainCouragePoint.SetText(XSingleton.singleton.GetValue("CampDuelInspireAddPoint")); + this.m_MainEndTime.SetText(XTempActivityDocument.Doc.GetEndTime(XCampDuelDocument.Doc.ActInfo, 1).ToString(XStringDefineProxy.GetString("CAMPDUEL_END_TIME"))); + } + + public void RefreshPoint() + { + this.m_MainPoint.SetText(this.doc.point.ToString()); + CampDuelPointReward.RowData pointReward = this.doc.GetPointReward(this.doc.point); + CampDuelPointReward.RowData nextPointReward = this.doc.GetNextPointReward(this.doc.point); + this.m_MainChestFx.gameObject.SetActive(pointReward != null); + this.m_MainCurRewardText.gameObject.SetActive(pointReward != null); + this.m_MainCurChest.SetColor((pointReward != null) ? Color.white : Color.gray); + bool flag = pointReward == null && nextPointReward != null; + if (flag) + { + this.m_MainCurChest.SetSprite(nextPointReward.Icon); + this.m_MainCurRewardPoint.SetText(string.Format(XStringDefineProxy.GetString("CAMPDUEL_REWARD_FIRST"), nextPointReward.Point - this.doc.point)); + } + else + { + bool flag2 = pointReward != null && nextPointReward == null; + if (flag2) + { + this.m_MainCurChest.SetSprite(pointReward.Icon); + this.m_MainCurRewardPoint.SetText(XStringDefineProxy.GetString("CAMPDUEL_REWARD_MAX")); + } + else + { + bool flag3 = pointReward != null && nextPointReward != null; + if (flag3) + { + this.m_MainCurChest.SetSprite(pointReward.Icon); + this.m_MainCurRewardPoint.SetText(string.Format(XStringDefineProxy.GetString("CAMPDUEL_REWARD_NEXT"), nextPointReward.Point - this.doc.point)); + } + } + } + } + + public void RefresheCourage() + { + this.m_MainFreeCourageCount.SetText(string.Format("{0}/{1}", this.doc.FreeCourageCount, this.doc.FreeCourageMAX)); + this.m_MainDragonCoinCourageCount.SetText(string.Format("{0}/{1}", this.doc.DragonCoinCourageCount, this.doc.DragonCoinCourageCost.Length)); + this.m_MainFreeCourageCount.gameObject.SetActive(this.doc.FreeCourageCount != 0); + this.m_MainDragonCoinCourageCount.gameObject.SetActive(this.doc.FreeCourageCount == 0); + this.m_MainBtnCourageRedPoint.gameObject.SetActive(this.doc.IsRedPoint()); + bool flag = this.doc.FreeCourageCount > 0; + if (flag) + { + this.m_MainFree.gameObject.SetActive(true); + this.m_MainDragonCoin.gameObject.SetActive(false); + this.m_MainBtnCourage.SetEnable(true, false); + } + else + { + this.m_MainFree.gameObject.SetActive(false); + this.m_MainDragonCoin.gameObject.SetActive(true); + this.m_MainBtnCourage.SetEnable(this.doc.DragonCoinCourageCount > 0, false); + int num = Mathf.Clamp(this.doc.DragonCoinCourageCost.Length - this.doc.DragonCoinCourageCount, 0, this.doc.DragonCoinCourageCost.Length - 1); + this.m_MainDragonCoin.SetText(this.doc.DragonCoinCourageCost[num]); + } + } + + private void _AutoRefresh(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + XCampDuelDocument.Doc.ReqCampDuel(1u, 0u); + this._AutoRefresheTimeID = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(this._AutoRefresh), null); + } + } + + private void _AutoCloseBlah(object param) + { + this.m_MainBlah.gameObject.SetActive(false); + } + + public void ShowBlah() + { + int num = UnityEngine.Random.Range(0, 5); + this.m_MainBlah.gameObject.SetActive(true); + this.m_MainBlah.SetText(XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("CAMPDUEL_BLAH", num.ToString()))); + this._AutoCloseBlahTimeID = XSingleton.singleton.SetTimer(3f, new XTimerMgr.ElapsedEventHandler(this._AutoCloseBlah), null); + } + + public void AddNumPlayTween(int addPoint) + { + this.m_MainAddPoint.SetText(string.Format("+{0}", addPoint.ToString())); + this.m_MainAddPointTween.PlayTween(true, -1f); + } + + public void PlayBoxUpFx() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this._BoxUpFx != null && this._BoxUpFx.FxName == "Effects/FX_Particle/UIfx/UI_duelcampframe_Clip02"; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._BoxUpFx, true); + } + this._BoxUpFx = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_duelcampframe_Clip02", this.m_MainCurChest.transform, Vector3.zero, Vector3.one, 1f, true, 6f, true); + } + } + + public void PlayNPCFx() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this._NPCFx != null && this._NPCFx.FxName == "Effects/FX_Particle/UIfx/UI_duelcampframe_Clip03"; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._NPCFx, true); + } + this._NPCFx = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_duelcampframe_Clip03", this.m_MainCampTex.gameObject.transform, Vector3.zero, Vector3.one, 1f, true, 6f, true); + } + } + + public void UnloadFx(XFx fx) + { + bool flag = fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(fx, true); + fx = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XCampDuelMainHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XCampDuelMainHandler.cs.meta new file mode 100644 index 00000000..d1de2d47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCampDuelMainHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e1833953238d964a857f5470396bdb8 +timeCreated: 1611403508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XCampDuelPointRewardHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XCampDuelPointRewardHandler.cs new file mode 100644 index 00000000..5cd88b30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCampDuelPointRewardHandler.cs @@ -0,0 +1,106 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XCampDuelPointRewardHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/CampDuelPointReward"; + } + } + + public int CampID; + + private IXUIButton m_Close; + + private XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_ExItem; + + private IXUIScrollView m_ScrollView; + + protected override void Init() + { + base.Init(); + Transform transform = base.transform.Find("Bg"); + this.m_Close = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RewardPool.SetupPool(null, transform.Find("ScrollView/RewardTpl").gameObject, 8u, false); + this.m_ItemPool.SetupPool(null, transform.Find("ScrollView/ItemTpl").gameObject, 10u, false); + this.m_ExItem = transform.Find("ScrollView/Extra"); + this.m_ExItem.gameObject.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshList(true); + } + + public void RefreshList(bool resetPos = true) + { + List pointRewardList = XCampDuelDocument.Doc.GetPointRewardList(this.CampID); + bool flag = pointRewardList == null; + if (!flag) + { + this.m_RewardPool.FakeReturnAll(); + this.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < pointRewardList.Count; i++) + { + GameObject gameObject = this.m_RewardPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Point/Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(pointRewardList[i].Point.ToString()); + for (int j = 0; j < (int)pointRewardList[i].Reward.count; j++) + { + GameObject gameObject2 = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, pointRewardList[i].Reward[j, 0], pointRewardList[i].Reward[j, 1], false); + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)pointRewardList[i].Reward[j, 0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3(this.m_ItemPool.TplPos.x - this.m_RewardPool.TplPos.x + (float)(this.m_ItemPool.TplWidth * j), 0f); + } + bool flag2 = pointRewardList[i].EXReward.bufferRef.Length != 0; + if (flag2) + { + GameObject gameObject3 = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject3, pointRewardList[i].EXReward[0], pointRewardList[i].EXReward[1], false); + IXUISprite ixuisprite2 = gameObject3.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)pointRewardList[i].EXReward[0]); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject3.transform.parent = gameObject.transform; + gameObject3.transform.localPosition = new Vector3(this.m_ExItem.localPosition.x - this.m_RewardPool.TplPos.x, 0f); + } + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_RewardPool.TplHeight * i)) + this.m_RewardPool.TplPos; + } + this.m_ItemPool.ActualReturnAll(false); + this.m_RewardPool.ActualReturnAll(false); + if (resetPos) + { + this.m_ScrollView.ResetPosition(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XCampDuelPointRewardHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XCampDuelPointRewardHandler.cs.meta new file mode 100644 index 00000000..d6ea7f58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCampDuelPointRewardHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: edcbe4bfd2c4ade4890bf2420da7d79f +timeCreated: 1611404793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XCampDuelRankRewardHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XCampDuelRankRewardHandler.cs new file mode 100644 index 00000000..4a02711f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCampDuelRankRewardHandler.cs @@ -0,0 +1,129 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XCampDuelRankRewardHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/CampDuelRankRewardHandler"; + } + } + + public IXUIButton m_Close; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_RightText; + + public IXUILabel m_BottomText; + + public IXUIScrollView m_ScrollView; + + protected override void Init() + { + base.Init(); + Transform transform = base.transform.Find("Bg"); + this.m_Close = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_BottomText = (transform.Find("BottomText").GetComponent("XUILabel") as IXUILabel); + this.m_RightText = (transform.Find("Right/Text").GetComponent("XUILabel") as IXUILabel); + this.m_ScrollView = (transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RewardPool.SetupPool(null, transform.Find("ScrollView/RewardTpl").gameObject, 8u, false); + this.m_ItemPool.SetupPool(null, transform.Find("ScrollView/Item").gameObject, 10u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public bool OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshList(true); + this.m_BottomText.gameObject.SetActive(true); + this.m_BottomText.SetText(XStringDefineProxy.GetString("CAMPDUEL_RANK_REWARD")); + this.m_RightText.gameObject.SetActive(true); + this.m_RightText.SetText(XTempActivityDocument.Doc.GetEndTime(XCampDuelDocument.Doc.ActInfo, 1).ToString(XStringDefineProxy.GetString("CAMPDUEL_END_TIME"))); + } + + public void RefreshList(bool resetPos = true) + { + List rankRewardList = XCampDuelDocument.Doc.GetRankRewardList(); + bool flag = rankRewardList == null; + if (!flag) + { + this.m_RewardPool.FakeReturnAll(); + this.m_ItemPool.FakeReturnAll(); + int i = 0; + for (int j = 0; j < rankRewardList.Count; j++) + { + bool isWin = rankRewardList[j].IsWin; + if (isWin) + { + GameObject gameObject = this.m_RewardPool.FetchGameObject(false); + this.RefreshOneRankItem(gameObject.transform.Find("Bg/Win"), rankRewardList[j]); + while (i < rankRewardList.Count) + { + bool flag2 = !rankRewardList[i].IsWin; + if (flag2) + { + this.RefreshOneRankItem(gameObject.transform.Find("Bg/Lose"), rankRewardList[i]); + i++; + break; + } + i++; + } + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.m_RewardPool.TplHeight * j)) + this.m_RewardPool.TplPos; + } + } + this.m_ItemPool.ActualReturnAll(false); + this.m_RewardPool.ActualReturnAll(false); + if (resetPos) + { + this.m_ScrollView.ResetPosition(); + } + } + } + + private void RefreshOneRankItem(Transform t, CampDuelRankReward.RowData data) + { + IXUILabel ixuilabel = t.Find("Rank/RankNum").GetComponent("XUILabel") as IXUILabel; + bool flag = data.Rank[0] == data.Rank[1]; + if (flag) + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1"), data.Rank[0])); + } + else + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc2"), data.Rank[1])); + } + Transform parent = t.Find("Item"); + for (int i = 0; i < (int)data.Reward.count; i++) + { + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, data.Reward[i, 0], data.Reward[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)data.Reward[i, 0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + XSingleton.singleton.AddChild(parent, gameObject.transform); + gameObject.transform.localPosition = new Vector3((float)(this.m_ItemPool.TplWidth * i), 0f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XCampDuelRankRewardHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XCampDuelRankRewardHandler.cs.meta new file mode 100644 index 00000000..7daffb0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCampDuelRankRewardHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99823ec0b3c323946961ec69d34c05a1 +timeCreated: 1611404196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XCharacterCommonMenuView.cs b/Client/Assets/Scripts/XMainClient/UI/XCharacterCommonMenuView.cs new file mode 100644 index 00000000..a972c54b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCharacterCommonMenuView.cs @@ -0,0 +1,700 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XCharacterCommonMenuView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/CharacterCommonMenu"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool isHideTutorial + { + get + { + return true; + } + } + + private ulong _roleShortID; + + private ulong _roleID; + + private string _roleName; + + private uint _titleID; + + private uint _roleLevel; + + private uint _roleVipLevel; + + private uint _powerPoint; + + private uint _profession; + + private string _guildName; + + private bool _isMyFriend; + + private bool _bBlock; + + private uint _dataLastLogin; + + private ulong _guildID; + + private XUnitAppearanceTeam _team = default(XUnitAppearanceTeam); + + private int charactorCommonMenuFilter = 0; + + private bool _inGuildSelf; + + private int _inviteGuildCD; + + private float _pastTime; + + private bool _canInviteGuild; + + private bool _isHadPairPet; + + private List _setid = new List(); + + private XCharacterCommonMenuDocument m_doc; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XCharacterCommonMenuDocument.uuID); + this._inviteGuildCD = int.Parse(XSingleton.singleton.GetValue("InviteGuildPrivateCD")); + this._canInviteGuild = true; + this._pastTime = 0f; + } + + protected override void OnUnload() + { + base.uiBehaviour.playerView = null; + base.OnUnload(); + } + + public void SetupMenuFilter(int filterValue) + { + this.charactorCommonMenuFilter = filterValue; + } + + public override void RegisterEvent() + { + base.Init(); + base.uiBehaviour.btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClose)); + base.uiBehaviour.btnSendFlower.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSendFlower)); + base.uiBehaviour.btnExchange.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnExchangeBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.btnSendFlower.gameObject.SetActive(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_FlowerRank)); + this.SetPlayerInfo(); + this.FillBtn(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = !this._canInviteGuild; + if (flag) + { + this._pastTime += Time.deltaTime; + } + bool flag2 = this._pastTime >= (float)this._inviteGuildCD; + if (flag2) + { + this._canInviteGuild = true; + this._pastTime = 0f; + } + } + + public void ShowMenu(UnitAppearance unitInfo) + { + bool flag = !base.IsVisible(); + if (flag) + { + bool flag2 = unitInfo == null; + if (flag2) + { + XSingleton.singleton.AddLog("[CharacterCommonMenu] unitInfo is null", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + this._roleID = unitInfo.uID; + this._roleName = unitInfo.unitName; + this._titleID = ((unitInfo.outlook != null && unitInfo.outlook.title != null) ? unitInfo.outlook.title.titleID : 0u); + this._roleLevel = unitInfo.level; + this._powerPoint = unitInfo.PowerPoint; + this._profession = unitInfo.unitType; + this._roleVipLevel = unitInfo.viplevel; + this._dataLastLogin = unitInfo.lastlogin; + this._guildName = ((unitInfo.outlook != null && unitInfo.outlook.guild != null) ? unitInfo.outlook.guild.name : ""); + this._guildID = ((unitInfo.outlook != null && unitInfo.outlook.guild != null) ? unitInfo.outlook.guild.id : 0UL); + this._roleShortID = (ulong)unitInfo.nickid; + this._setid = ((unitInfo.outlook != null && unitInfo.outlook.pre != null) ? unitInfo.outlook.pre.setid : new List()); + this._isMyFriend = DlgBase.singleton.IsMyFriend(this._roleID); + this._bBlock = DlgBase.singleton.IsBlock(this._roleID); + this._team.SetData(unitInfo.team); + this._isHadPairPet = false; + XEntity entity = XSingleton.singleton.GetEntity(this._roleID); + bool flag3 = entity != null && entity.Attributes.Outlook.state.type == OutLookStateType.OutLook_RidePet; + if (flag3) + { + uint petType = XPetDocument.GetPetType(entity.Attributes.Outlook.state.param); + this._isHadPairPet = (petType == 1u); + } + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this._inGuildSelf = specificDocument.bInGuild; + this.SetVisibleWithAnimation(true, null); + } + } + } + + public void RefreshBtns() + { + this.FillBtn(); + } + + public void SetBlock() + { + this._bBlock = DlgBase.singleton.IsBlock(this._roleID); + } + + private void SetPlayerInfo() + { + base.uiBehaviour.playerView.uidLab.SetText(string.Format("UID:{0}", this._roleShortID)); + base.uiBehaviour.playerView.lbName.InputText = XSingleton.singleton.StringCombine(XTitleDocument.GetTitleWithFormat(this._titleID, this._roleName), XRechargeDocument.GetVIPIconString(this._roleVipLevel)); + base.uiBehaviour.playerView.lbPPT.SetText(this._powerPoint.ToString()); + base.uiBehaviour.playerView.sprHead.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)this._profession)); + base.uiBehaviour.playerView.SetGuildName(this._guildName); + base.uiBehaviour.playerView.lbLevel.SetText(this._roleLevel.ToString()); + XSingleton.singleton.ParseHeadIcon(this._setid, base.uiBehaviour.m_sprFrame); + this.UpdateOnlineState(base.uiBehaviour.playerView.lbName.gameObject.transform.parent, this._dataLastLogin); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_FlowerRank)); + base.uiBehaviour.btnSendFlower.gameObject.SetActive((ulong)this._roleLevel >= (ulong)((long)sysOpenLevel)); + base.uiBehaviour.btnExchange.ID = this._roleID; + XGuildCollectDocument specificDocument = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + base.uiBehaviour.btnExchange.SetVisible(XSingleton.singleton.SceneType == SceneType.SCENE_GUILD_HALL && specificDocument.ActivityState); + } + + private void FillBtn() + { + base.uiBehaviour.m_btntemPool.ReturnAll(true); + bool flag = XCharacterCommonMenuDocument.CharacterCommonInfoTable == null; + if (!flag) + { + int num = 0; + List list = null; + bool flag2 = this.charactorCommonMenuFilter > 0; + if (flag2) + { + string key = XSingleton.singleton.StringCombine("CharacterCommonMenuFilter", this.charactorCommonMenuFilter.ToString()); + list = XSingleton.singleton.GetIntList(key); + } + bool flag3 = list != null && list.Count > 0; + for (int i = 0; i < XCharacterCommonMenuDocument.CharacterCommonInfoTable.Table.Length; i++) + { + CharacterCommonInfo.RowData rowData = XCharacterCommonMenuDocument.CharacterCommonInfoTable.Table[i]; + bool flag4 = rowData == null; + if (!flag4) + { + bool flag5 = flag3 && list.Contains((int)rowData.Type); + if (!flag5) + { + bool flag6 = !this.IsShow(rowData.Type); + if (!flag6) + { + GameObject gameObject = base.uiBehaviour.m_btntemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_uiBehaviour.m_parentTra; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3((float)(base.uiBehaviour.m_btntemPool.TplWidth * (num % 2)), (float)(-(float)base.uiBehaviour.m_btntemPool.TplHeight * (num / 2)), 0f); + IXUIButton ixuibutton = gameObject.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)rowData.Type; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickBtn)); + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.ShowText); + num++; + } + } + } + } + bool flag7 = num < 9; + if (flag7) + { + int num2 = (num % 2 == 0) ? (num / 2) : (num / 2 + 1); + base.uiBehaviour.m_bgSpr.spriteHeight = base.uiBehaviour.TotalHeight - (5 - num2) * base.uiBehaviour.m_btntemPool.TplHeight; + base.uiBehaviour.m_bgTra.localPosition = new Vector3(0f, (float)(-(float)(5 - num2) * base.uiBehaviour.m_btntemPool.TplHeight / 2), 0f); + } + else + { + base.uiBehaviour.m_bgSpr.spriteHeight = base.uiBehaviour.TotalHeight; + base.uiBehaviour.m_bgTra.localPosition = Vector3.zero; + } + this.charactorCommonMenuFilter = 0; + } + } + + public bool IsShow(uint type) + { + switch (type) + { + case 2u: + return this._isMyFriend; + case 3u: + return !this._isMyFriend; + case 5u: + return this._team.bHasTeam; + case 6u: + return !this._team.bHasTeam; + case 7u: + return this._inGuildSelf; + case 8u: + return !this._inGuildSelf; + case 9u: + return !this._bBlock; + case 10u: + return this._bBlock; + case 12u: + return XMentorshipDocument.Doc.ClickedRoleMentorshipStatus == MentorApplyStatus.MentorApplyMaster; + case 13u: + return XMentorshipDocument.Doc.ClickedRoleMentorshipStatus == MentorApplyStatus.MentorApplyStudent; + case 14u: + return XCharacterCommonMenuDocument.IsHasRole && this._isHadPairPet; + case 15u: + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + return XCharacterCommonMenuDocument.IsHasRole && !this._isHadPairPet && specificDocument.IsDrivingPairPet; + } + } + return true; + } + + private void UpdateOnlineState(Transform trans, uint lastlogin) + { + GameObject gameObject = trans.Find("Online").gameObject; + gameObject.SetActive(lastlogin == 0u); + IXUILabel ixuilabel = trans.Find("Offline").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Empty); + } + + private bool OnClose(IXUIButton sprClose) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnSendFlower(IXUIButton go) + { + DlgBase.singleton.ShowBoard(this._roleID, this._roleName); + return true; + } + + private bool OnExchangeBtnClick(IXUIButton btn) + { + RpcC2G_GuildCampPartyReqExchange rpcC2G_GuildCampPartyReqExchange = new RpcC2G_GuildCampPartyReqExchange(); + rpcC2G_GuildCampPartyReqExchange.oArg.role_id = btn.ID; + XSingleton.singleton.Send(rpcC2G_GuildCampPartyReqExchange); + return true; + } + + private bool OnClickBtn(IXUIButton button) + { + ulong id = button.ID; + ulong num = id; + ulong num2 = num - 1UL; + if (num2 <= 15UL) + { + switch ((uint)num2) + { + case 0u: + this.OnClickView(button); + break; + case 1u: + case 2u: + this.OnDeleteFriendClicked(); + break; + case 3u: + this.OnChatClicked(); + break; + case 4u: + case 5u: + this.OnClickTeamChat(); + break; + case 6u: + case 7u: + this.OnGuildClicked(); + break; + case 8u: + case 9u: + this.OnClickBlackList(button); + break; + case 10u: + this.OnPKBtnClicked(); + break; + case 11u: + case 12u: + this.OnBSBtnClicked(); + break; + case 13u: + case 14u: + this.OnInvite(); + break; + case 15u: + this.OnTransform(); + break; + } + } + return true; + } + + private bool OnClickView(IXUIButton btn) + { + DlgBase.singleton.SetPlayerInfo(this._roleID, this._roleName, this._setid, this._powerPoint, this._profession); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return DlgBase.singleton.ShowDetailInfo(btn); + } + + private bool OnDeleteFriendClicked() + { + bool flag = XPartnerDocument.Doc.IsMyPartner(this._roleID); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NeedCanclePartner"), "fece00"); + result = true; + } + else + { + bool flag2 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + if (flag2) + { + int sysid = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Friends); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(sysid); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + sysOpenLevel + }) + XSingleton.singleton.GetSysName(sysid), "fece00"); + result = true; + } + else + { + bool isMyFriend = this._isMyFriend; + if (isMyFriend) + { + XFriendsView singleton = DlgBase.singleton; + singleton.OnRemoveFriendSucc = (Action)Delegate.Combine(singleton.OnRemoveFriendSucc, new Action(this.RemoveFriendSucc)); + DlgBase.singleton.RemoveFriend(this._roleID); + } + else + { + DlgBase.singleton.AddFriendById(this._roleID); + } + result = true; + } + } + return result; + } + + private bool OnChatClicked() + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + bool result; + if (flag) + { + int sysid = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Friends); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(sysid); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + sysOpenLevel + }) + XSingleton.singleton.GetSysName(sysid), "fece00"); + result = true; + } + else + { + DlgBase.singleton.SetVisible(false, true); + this.SetVisibleWithAnimation(false, null); + bool bBlock = this._bBlock; + if (bBlock) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_BLOCK_HINT_TEXT"), "fece00"); + } + else + { + DlgBase.singleton.SetPlayerInfo(this._roleID, this._roleName, this._setid, this._powerPoint, this._profession); + DlgBase.singleton.PrivateChat(null); + } + result = true; + } + return result; + } + + private bool OnClickTeamChat() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_FAMILYGARDEN; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CurSceneCanNotCtrl"), "fece00"); + result = true; + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag2 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Team); + if (flag2) + { + int sysid = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Team); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(sysid); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + sysOpenLevel + }) + XSingleton.singleton.GetSysName(sysid), "fece00"); + result = true; + } + else + { + XCharacterCommonMenuDocument specificDocument2 = XDocuments.GetSpecificDocument(XCharacterCommonMenuDocument.uuID); + bool flag3 = !this._team.bHasTeam; + if (flag3) + { + specificDocument2.TryInviteTeam(this._roleID); + } + else + { + specificDocument2.TryJoinTeam(this._team); + } + DlgBase.singleton.SetVisible(false, true); + this.SetVisibleWithAnimation(false, null); + result = true; + } + } + return result; + } + + private bool OnGuildClicked() + { + bool inGuildSelf = this._inGuildSelf; + if (inGuildSelf) + { + bool canInviteGuild = this._canInviteGuild; + if (canInviteGuild) + { + bool bBlock = this._bBlock; + if (bBlock) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RRIENDS_INVITE_GUILD_ERROR2"), "fece00"); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = specificDocument.BasicData.uid == this._guildID; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_SAME_IN"), "fece00"); + return true; + } + DlgBase.singleton.ChatFriendId = this._roleID; + ChatInfo chatInfo = new ChatInfo(); + chatInfo.mTime = DateTime.Now; + chatInfo.isSelfSender = true; + chatInfo.mReceiverName = this._roleName; + chatInfo.mReceiverId = this._roleID; + chatInfo.mReciverPowerPoint = this._powerPoint; + chatInfo.mRecieverProfession = this._profession; + chatInfo.mReceiverVip = this._roleVipLevel; + XChatDocument specificDocument2 = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument2.AddChatinfo2FriendList(chatInfo); + XInvitationDocument specificDocument3 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + specificDocument3.SendGuildInvitationPrivate(); + this._canInviteGuild = false; + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RRIENDS_INVITE_GUILD_ERROR"), "fece00"); + } + } + else + { + bool flag2 = this._guildID == 0UL; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_JOIN_GUILD"), "fece00"); + } + else + { + XGuildViewDocument specificDocument4 = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + specificDocument4.View(this._guildID); + DlgBase.singleton.SetVisible(false, true); + this.SetVisibleWithAnimation(false, null); + } + } + return true; + } + + private bool OnClickBlackList(IXUIButton btn) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + bool result; + if (flag) + { + int sysid = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Friends); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(sysid); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + sysOpenLevel + }) + XSingleton.singleton.GetSysName(sysid), "fece00"); + result = true; + } + else + { + this.OnHide(); + bool bBlock = this._bBlock; + if (bBlock) + { + ulong id = btn.ID; + btn.ID = this._roleID; + bool flag2 = DlgBase.singleton.OnRemoveBlockFriend(btn); + btn.ID = id; + result = flag2; + } + else + { + XFriendsView singleton = DlgBase.singleton; + singleton.OnAddBlockSucc = (Action)Delegate.Combine(singleton.OnAddBlockSucc, new Action(this.AddBlockSucc)); + DlgBase.singleton.AddBlockFriend(this._roleID); + result = true; + } + } + return result; + } + + private bool OnPKBtnClicked() + { + int sysid = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_PK); + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(sysid); + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PK); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EXPEDITION_REQUIRED_LEVEL", new object[] + { + sysOpenLevel + }) + XSingleton.singleton.GetSysName(sysid), "fece00"); + result = false; + } + else + { + bool flag2 = (ulong)this._roleLevel < (ulong)((long)sysOpenLevel); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PLAYER_SYS_NOT_OPEN"), "fece00"); + result = false; + } + else + { + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + specificDocument.SendPKInvitation(this._roleID); + result = true; + } + } + return result; + } + + private bool OnBSBtnClicked() + { + XMentorshipDocument.Doc.ClickedMainSceneRoleID = this._roleID; + bool flag = XMentorshipDocument.Doc.ClickedRoleMentorshipStatus == MentorApplyStatus.MentorApplyMaster; + if (flag) + { + XMentorshipDocument.Doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_ApplyMaster, XMentorshipDocument.Doc.ClickedMainSceneRoleID, 0); + } + else + { + bool flag2 = XMentorshipDocument.Doc.ClickedRoleMentorshipStatus == MentorApplyStatus.MentorApplyStudent; + if (flag2) + { + XMentorshipDocument.Doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_ApplyStudent, XMentorshipDocument.Doc.ClickedMainSceneRoleID, 0); + } + } + return true; + } + + private bool OnInvite() + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + bool isHadPairPet = this._isHadPairPet; + if (isHadPairPet) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Horse); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_PETSYS_NOT_OPEN"), "fece00"); + return false; + } + specificDocument.ReqPetPetOperationOther(PetOtherOp.DoPetPairRide, this._roleID); + } + else + { + bool isDrivingPairPet = specificDocument.IsDrivingPairPet; + if (isDrivingPairPet) + { + specificDocument.ReqPetPetOperationOther(PetOtherOp.InvitePetPairRide, this._roleID); + } + } + return true; + } + + private bool OnTransform() + { + XTransformDocument specificDocument = XDocuments.GetSpecificDocument(XTransformDocument.uuID); + specificDocument.TryTransformOther(this._roleName, this._roleID); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void AddBlockSucc() + { + XFriendsView singleton = DlgBase.singleton; + singleton.OnAddBlockSucc = (Action)Delegate.Remove(singleton.OnAddBlockSucc, new Action(this.AddBlockSucc)); + this.SetVisibleWithAnimation(false, null); + } + + private void RemoveFriendSucc() + { + XFriendsView singleton = DlgBase.singleton; + singleton.OnRemoveFriendSucc = (Action)Delegate.Remove(singleton.OnRemoveFriendSucc, new Action(this.RemoveFriendSucc)); + this.SetVisibleWithAnimation(false, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XCharacterCommonMenuView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XCharacterCommonMenuView.cs.meta new file mode 100644 index 00000000..bd242e8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCharacterCommonMenuView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7073c5a64a62e5c49a5d819842d9671f +timeCreated: 1611403931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipBehaviour.cs new file mode 100644 index 00000000..9df110b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XCommonHelpTipBehaviour : DlgBehaviourBase + { + public IXUILabel m_Title; + + public IXUIScrollView m_ScrollView; + + public IXUILabel m_Content; + + public IXUIButton m_Close; + + private void Awake() + { + this.m_Title = (base.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_ScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Content = (base.transform.Find("ScrollView/Content").GetComponent("XUILabel") as IXUILabel); + this.m_Close = (base.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipBehaviour.cs.meta new file mode 100644 index 00000000..65f08fdc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4b73352035682f4bafaec52a90fb0db +timeCreated: 1611404393 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipView.cs b/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipView.cs new file mode 100644 index 00000000..6cf1bd9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipView.cs @@ -0,0 +1,126 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XCommonHelpTipView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "Common/CommonHelpTip"; + } + } + + private SystemHelpTable _systemHelpReader = null; + + private string m_title; + + private string m_content; + + public void ShowHelp(string title, string content) + { + this.m_title = title; + this.m_content = XSingleton.singleton.ReplaceReturn(content); + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + } + + public void ShowHelp(int sysID) + { + bool flag = this._systemHelpReader == null; + if (flag) + { + this._systemHelpReader = new SystemHelpTable(); + XSingleton.singleton.ReadFile("Table/SystemHelp", this._systemHelpReader); + } + SystemHelpTable.RowData bySystemID = this._systemHelpReader.GetBySystemID(sysID); + bool flag2 = bySystemID != null; + if (flag2) + { + bool flag3 = bySystemID.SystemHelp != null && bySystemID.SystemHelp.Length != 0; + if (flag3) + { + this.m_title = bySystemID.SystemHelp[0]; + } + bool flag4 = bySystemID.SystemHelp != null && bySystemID.SystemHelp.Length > 1; + if (flag4) + { + this.m_content = XSingleton.singleton.ReplaceReturn(bySystemID.SystemHelp[1]); + } + } + bool flag5 = !base.IsVisible(); + if (flag5) + { + this.SetVisibleWithAnimation(true, null); + } + } + + public void ShowHelp(XSysDefine sys) + { + this.m_title = ""; + this.m_content = ""; + bool flag = this._systemHelpReader == null; + if (flag) + { + this._systemHelpReader = new SystemHelpTable(); + XSingleton.singleton.ReadFile("Table/SystemHelp", this._systemHelpReader); + } + int key = XFastEnumIntEqualityComparer.ToInt(sys); + SystemHelpTable.RowData bySystemID = this._systemHelpReader.GetBySystemID(key); + bool flag2 = bySystemID != null; + if (flag2) + { + bool flag3 = bySystemID.SystemHelp != null && bySystemID.SystemHelp.Length != 0; + if (flag3) + { + this.m_title = bySystemID.SystemHelp[0]; + } + bool flag4 = bySystemID.SystemHelp != null && bySystemID.SystemHelp.Length > 1; + if (flag4) + { + this.m_content = XSingleton.singleton.ReplaceReturn(bySystemID.SystemHelp[1]); + } + } + bool flag5 = !base.IsVisible(); + if (flag5) + { + this.SetVisibleWithAnimation(true, null); + } + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Title.SetText(this.m_title); + base.uiBehaviour.m_Content.SetText(this.m_content); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + } + + private bool OnCloseBtnClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipView.cs.meta new file mode 100644 index 00000000..d002a294 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XCommonHelpTipView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9236a757997fce14990a4894bf27f9e8 +timeCreated: 1611404146 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XContentMailView.cs b/Client/Assets/Scripts/XMainClient/UI/XContentMailView.cs new file mode 100644 index 00000000..5d052979 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XContentMailView.cs @@ -0,0 +1,238 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XContentMailView : DlgHandlerBase + { + private XMailDocument _doc = null; + + public IXUILabel m_lbltitle; + + public IXUILabel m_lbldate; + + public IXUILabel m_lalcont; + + public IXUILabel m_lblvalit; + + public GameObject m_objSlice; + + public GameObject m_objTpl; + + public IXUIButton m_btnrcv; + + public IXUILabel m_lblrcv; + + public IXUISprite m_sprclaim; + + public Transform m_tranAttach; + + public IXUIScrollView m_scroll; + + private XUIPool m_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private int leftTime = int.MaxValue; + + protected override void Init() + { + base.Init(); + this.m_lbltitle = (base.PanelObject.transform.Find("title/TitleLabel").GetComponent("XUILabel") as IXUILabel); + this.m_lbldate = (base.PanelObject.transform.Find("title/DateLabel").GetComponent("XUILabel") as IXUILabel); + this.m_lalcont = (base.PanelObject.transform.Find("content/contentLabel").GetComponent("XUILabel") as IXUILabel); + this.m_lblvalit = (base.PanelObject.transform.Find("btm/ValidityLabel").GetComponent("XUILabel") as IXUILabel); + this.m_btnrcv = (base.PanelObject.transform.Find("btm/rwdBtn").GetComponent("XUIButton") as IXUIButton); + this.m_lblrcv = (base.PanelObject.transform.Find("btm/rwdBtn/T").GetComponent("XUILabel") as IXUILabel); + this.m_sprclaim = (base.PanelObject.transform.Find("btm/claimSpr").GetComponent("XUISprite") as IXUISprite); + this.m_scroll = (base.PanelObject.transform.Find("items").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_objSlice = base.PanelObject.transform.Find("bg/slice").gameObject; + this.m_objTpl = base.PanelObject.transform.Find("tpl").gameObject; + this.m_scroll.ResetPosition(); + this.m_pool.SetupPool(this.m_scroll.gameObject, this.m_objTpl, 2u, false); + this.m_tranAttach = base.PanelObject.transform.Find("bg/bg/T"); + XSystemMailView.doItemSelect = (XSystemMailView.DelSelect)Delegate.Combine(XSystemMailView.doItemSelect, new XSystemMailView.DelSelect(this.Refresh)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnrcv.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRcvBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XMailDocument.uuID) as XMailDocument); + this.Refresh(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.leftTime < 86400 && this._doc != null; + if (flag) + { + this.m_lblvalit.SetText(XStringDefineProxy.GetString("Mail_VALIT") + this._doc.valit); + } + } + + public override void OnUnload() + { + XSystemMailView.doItemSelect = (XSystemMailView.DelSelect)Delegate.Remove(XSystemMailView.doItemSelect, new XSystemMailView.DelSelect(this.Refresh)); + base.OnUnload(); + } + + private bool OnRcvBtnClick(IXUIButton btn) + { + MailItem mailItem = this._doc.GetMailItem(); + bool flag = mailItem != null && mailItem.state == MailState.RWD; + if (flag) + { + this.OnRcvClick(); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Mail_TIP"), "fece00"); + } + return true; + } + + private void OnRcvClick() + { + MailItem mailItem = this._doc.GetMailItem(); + bool flag = mailItem != null; + if (flag) + { + this._doc.ReqMailOP(MailOP.Claim, mailItem.id); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Mail_DELAY"), "fece00"); + } + } + + public void Refresh() + { + bool flag = this._doc.ShowMailContent(); + this.m_lbltitle.SetVisible(flag); + this.m_lbldate.SetVisible(flag); + this.m_lalcont.SetVisible(flag); + this.m_lblvalit.SetVisible(flag); + this.m_objSlice.SetActive(flag); + this.m_pool.ReturnAll(false); + this.m_btnrcv.SetVisible(flag); + this.m_tranAttach.gameObject.SetActive(flag); + this.m_sprclaim.SetVisible(flag); + bool flag2 = flag; + if (flag2) + { + MailItem mailItem = this._doc.GetMailItem(); + this.m_lbltitle.SetText(mailItem.title); + this.m_lalcont.SetText(XSingleton.singleton.ReplaceReturn(mailItem.content)); + this.m_lbldate.SetText(XStringDefineProxy.GetString("Mail_TIME") + " " + mailItem.date.ToString("yyyy-MM-dd HH:mm:ss")); + bool flag3 = mailItem.items == null || mailItem.items.Count <= 0; + if (flag3) + { + this.m_btnrcv.SetVisible(false); + } + this.RefreshItems(mailItem.items, mailItem.xitems); + this.m_tranAttach.gameObject.SetActive(mailItem.items.Count > 0 || mailItem.xitems.Count > 0); + this.RefreshValit(mailItem); + this.m_lblrcv.SetText((mailItem.state == MailState.RWD) ? XStringDefineProxy.GetString("Mail_RCV") : XStringDefineProxy.GetString("Mail_NON")); + this.m_btnrcv.SetVisible(mailItem.state == MailState.RWD); + this.m_sprclaim.SetVisible(mailItem.state == MailState.CLAIMED); + } + } + + private void RefreshValit(MailItem mailItem) + { + this.leftTime = mailItem.valit; + bool flag = mailItem.valit >= 86400; + if (flag) + { + this.m_lblvalit.SetText(XStringDefineProxy.GetString("Mail_VALIT") + mailItem.valit / 86400 + XStringDefineProxy.GetString("Mail_DAY")); + } + else + { + bool flag2 = mailItem.valit >= 3600; + if (flag2) + { + this.m_lblvalit.SetText(XStringDefineProxy.GetString("Mail_VALIT") + mailItem.valit / 3600 + XStringDefineProxy.GetString("Mail_HOUR")); + } + else + { + bool flag3 = mailItem.valit > 60; + if (flag3) + { + this.m_lblvalit.SetText(XStringDefineProxy.GetString("Mail_VALIT") + mailItem.valit / 60 + XStringDefineProxy.GetString("Mail_MIN")); + } + else + { + this.m_lblvalit.SetText(XStringDefineProxy.GetString("Mail_VALIT") + "1" + XStringDefineProxy.GetString("Mail_MIN")); + } + } + } + } + + public void SetContentNil() + { + this._doc.RefreshContentNil(); + } + + private void RefreshItems(List items, List xitems) + { + for (int i = 0; i < items.Count; i++) + { + GameObject gameObject = this.m_pool.FetchGameObject(false); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + gameObject.transform.localPosition = new Vector3((float)(-172 + 86 * i), 0f, 0f); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)items[i].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf.ItemID, (int)items[i].itemCount, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)itemConf.ItemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowTips)); + } + for (int j = 0; j < xitems.Count; j++) + { + GameObject gameObject2 = this.m_pool.FetchGameObject(false); + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject2); + gameObject2.transform.localPosition = new Vector3((float)(-172 + 86 * (j + items.Count)), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)xitems[j].ItemID, (int)xitems[j].ItemCount, false); + IXUISprite ixuisprite2 = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)xitems[j].ItemID; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowTips)); + } + this.m_scroll.ResetPosition(); + } + + private void ShowTips(IXUISprite spr) + { + bool flag = this._doc != null; + if (flag) + { + MailItem mailItem = this._doc.GetMailItem(); + List xitems = mailItem.xitems; + bool flag2 = false; + for (int i = 0; i < xitems.Count; i++) + { + bool flag3 = (ulong)xitems[i].ItemID == spr.ID; + if (flag3) + { + flag2 = true; + XItem mainItem = XBagDocument.MakeXItem(xitems[i]); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, false, 0u); + } + } + bool flag4 = !flag2; + if (flag4) + { + XItem mainItem2 = XBagDocument.MakeXItem((int)spr.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem2, spr, false, 0u); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XContentMailView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XContentMailView.cs.meta new file mode 100644 index 00000000..3b67263d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XContentMailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e358abad20101c4d992e078e68b25f7 +timeCreated: 1611403607 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDesignationView.cs b/Client/Assets/Scripts/XMainClient/UI/XDesignationView.cs new file mode 100644 index 00000000..5f2a98a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDesignationView.cs @@ -0,0 +1,536 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XDesignationView : DlgHandlerBase + { + protected override string FileName + { + get + { + return "ItemNew/DesignationFrame"; + } + } + + private XDesignationDocument _doc = null; + + public GameObject m_TabTpl; + + public GameObject[] m_TabRedPoint = new GameObject[6]; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_DesListWrapContent; + + public IXUICheckBox m_GeneralDes; + + private bool _firstClick = true; + + public IXUILabelSymbol m_CoverDesignation; + + public IXUILabel m_AbilityLabel; + + public IXUILabel m_FightLabel; + + public IXUIButton m_CoverBtn; + + public IXUIButton m_AbilityBtn; + + public IXUILabel m_CoverBtnLabel; + + public IXUILabel m_AbilityBtnLabel; + + public GameObject m_AbilityBtnRedPoint; + + public IXUILabelSymbol m_PlayerName; + + private IXUILabel[] _timeLabel = new IXUILabel[8]; + + private int[] _leftTime = new int[8]; + + private static readonly int MAXSHOWITEM = 8; + + private uint _timeToken; + + private uint _reqTimeToken; + + public readonly int UNSELECT = 10000; + + private int _currentClickID; + + public IXUISprite m_CurrentClickSprite; + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XDesignationDocument.uuID) as XDesignationDocument); + this._currentClickID = this.UNSELECT; + this.m_ScrollView = (base.PanelObject.transform.Find("Right/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_TabTpl = base.PanelObject.transform.Find("Tabs/TabTpl").gameObject; + this.m_TabPool.SetupPool(this.m_TabTpl.transform.parent.gameObject, this.m_TabTpl, 6u, false); + this.m_DesListWrapContent = (this.m_ScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_CoverDesignation = (base.PanelObject.transform.Find("Left/CoverDes/Designation").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_AbilityLabel = (base.PanelObject.transform.Find("Left/Message/AttsLabel").GetComponent("XUILabel") as IXUILabel); + this.m_FightLabel = (base.PanelObject.transform.Find("Left/Message/FightLabel").GetComponent("XUILabel") as IXUILabel); + this.m_CoverBtn = (base.PanelObject.transform.Find("Right/Bottom/CoverBtn").GetComponent("XUIButton") as IXUIButton); + this.m_AbilityBtn = (base.PanelObject.transform.Find("Right/Bottom/AbilityBtn").GetComponent("XUIButton") as IXUIButton); + this.m_CoverBtnLabel = (this.m_CoverBtn.gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel); + this.m_AbilityBtnLabel = (this.m_AbilityBtn.gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel); + this.m_AbilityBtnRedPoint = this.m_AbilityBtn.gameObject.transform.Find("RedPoint").gameObject; + this.m_AbilityBtnRedPoint.SetActive(false); + this.m_PlayerName = (base.PanelObject.transform.Find("Left/CoverDes/Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_PlayerName.InputText = XSingleton.singleton.XPlayerData.Name; + this._doc.SendQueryDesignationInfo(); + this.SetDesTab(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_CoverBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCoverBtnClicked)); + this.m_AbilityBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAbilityBtnClicked)); + this.m_DesListWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DesWrapListUpdated)); + this.m_DesListWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.ItemWrapListInit)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.SendQueryDesignationInfo(); + this.m_GeneralDes.bChecked = true; + this._doc.DesList[0].Clear(); + bool firstClick = this._firstClick; + if (firstClick) + { + this._firstClick = false; + } + else + { + this._doc.SendQueryDesignationList(1u); + this.SetDesignationList(this._doc.DesList[0], 0, true); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + protected override void OnHide() + { + base.OnHide(); + base.PanelObject.SetActive(false); + XSingleton.singleton.KillTimer(this._timeToken); + XSingleton.singleton.KillTimer(this._reqTimeToken); + } + + public override void OnUnload() + { + XSingleton.singleton.KillTimer(this._timeToken); + XSingleton.singleton.KillTimer(this._reqTimeToken); + base.OnUnload(); + } + + private void ItemWrapListInit(Transform t, int i) + { + this._timeLabel[i] = (t.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + } + + public bool OnDesTabClicked(IXUICheckBox checkBox) + { + bool flag = !checkBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._doc.LastDisPlayTab != (int)checkBox.ID; + if (flag2) + { + this._currentClickID = this.UNSELECT; + this.m_AbilityBtnRedPoint.SetActive(false); + } + this._doc.SendQueryDesignationList((uint)checkBox.ID + 1u); + result = true; + } + return result; + } + + public bool OnCoverBtnClicked(IXUIButton btn) + { + bool flag = this._currentClickID == this.UNSELECT; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = (ulong)this._doc.CoverDesignationID == (ulong)((long)this._currentClickID); + if (flag2) + { + this._doc.SendQuerySetDesignation(1u, 0u); + } + else + { + this._doc.SendQuerySetDesignation(1u, (uint)this._currentClickID); + } + result = true; + } + return result; + } + + public bool OnAbilityBtnClicked(IXUIButton iSp) + { + bool flag = this._currentClickID == this.UNSELECT; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = (ulong)this._doc.AbilityDesignationID == (ulong)((long)this._currentClickID); + if (flag2) + { + this._doc.SendQuerySetDesignation(2u, 0u); + } + else + { + this._doc.SendQuerySetDesignation(2u, (uint)this._currentClickID); + } + result = true; + } + return result; + } + + public void OnItemClick(IXUISprite iSp) + { + bool flag = this._currentClickID == (int)iSp.ID; + if (!flag) + { + this.m_CoverBtn.SetEnable(true, false); + this.m_AbilityBtn.SetEnable(true, false); + bool flag2 = this.m_CurrentClickSprite != null; + if (flag2) + { + this.m_CurrentClickSprite.gameObject.transform.Find("Select").gameObject.SetActive(false); + } + this._currentClickID = (int)iSp.ID; + this.m_CurrentClickSprite = iSp; + iSp.gameObject.transform.Find("Select").gameObject.SetActive(true); + this.m_AbilityBtnRedPoint.SetActive(this._doc.GetPPTOfAbilityDes((uint)this._currentClickID) == this._doc.MaxAbilityDesNum && !this._doc.IsMaxAbilityDes); + this.RefreshBtnText(); + } + } + + public void RefreshBtnText() + { + this.m_AbilityBtnLabel.SetText(XStringDefineProxy.GetString(((long)this._currentClickID == (long)((ulong)this._doc.AbilityDesignationID)) ? "Designation_Btn_Text2" : "Designation_Btn_Text1")); + this.m_CoverBtnLabel.SetText(XStringDefineProxy.GetString(((long)this._currentClickID == (long)((ulong)this._doc.CoverDesignationID)) ? "Designation_Btn_Text4" : "Designation_Btn_Text3")); + } + + public void UnCompleteTips(IXUISprite iSp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Achi_Or_Des_UnComplete"), "fece00"); + } + + public void HideTabRedPoint() + { + this.m_AbilityBtnRedPoint.SetActive(false); + for (int i = 0; i < 6; i++) + { + this.m_TabRedPoint[i].SetActive(false); + } + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Design_Designation, false); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Item, true); + } + + public void SetTabRedPoint(List state) + { + bool flag = state.Count == 0; + if (!flag) + { + bool flag2 = false; + int num = (state.Count < 6) ? state.Count : 6; + for (int i = 0; i < num; i++) + { + this.m_TabRedPoint[i].SetActive(state[i]); + flag2 |= state[i]; + } + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Design_Designation, flag2); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Item, true); + } + } + + public void SetDesTab() + { + this.m_TabPool.ReturnAll(false); + GameObject gameObject = this.m_TabPool.FetchGameObject(false); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + this.m_TabRedPoint[0] = gameObject.transform.Find("Bg/RedPoint").gameObject; + this.m_GeneralDes = ixuicheckBox; + ixuicheckBox.ID = 0UL; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnDesTabClicked)); + Vector3 tplPos = this.m_TabPool.TplPos; + for (int i = 1; i < 6; i++) + { + string @string = XStringDefineProxy.GetString("Designation_Tab_Name" + i.ToString()); + gameObject = this.m_TabPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(this.m_TabPool.TplHeight * i), 0f); + this.m_TabRedPoint[i] = gameObject.transform.Find("Bg/RedPoint").gameObject; + ixuicheckBox = (gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox); + ixuicheckBox.ID = (ulong)((long)i); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnDesTabClicked)); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(@string); + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(@string); + } + } + + public void SetCurrentChooseDes(uint type, uint ID) + { + this.RefreshBtnText(); + bool flag = ID == 0u; + if (flag) + { + bool flag2 = type == 1u; + if (flag2) + { + this.m_CoverDesignation.InputText = ""; + } + else + { + this.m_AbilityLabel.SetText(""); + this.m_FightLabel.SetText(XStringDefineProxy.GetString("NONE")); + } + } + else + { + DesignationTable.RowData byID = this._doc._DesignationTable.GetByID((int)ID); + bool flag3 = type == 1u; + if (flag3) + { + bool flag4 = byID.Effect == ""; + if (flag4) + { + bool special = byID.Special; + if (special) + { + this.m_CoverDesignation.InputText = byID.Color + this._doc.SpecialDesignation; + } + else + { + this.m_CoverDesignation.InputText = byID.Color + byID.Designation; + } + } + else + { + this.m_CoverDesignation.InputText = XLabelSymbolHelper.FormatDesignation(byID.Atlas, byID.Effect, 16); + } + } + else + { + string text = ""; + uint num = 0u; + this._doc.GetPPT(out text, out num, byID.Attribute, true); + this.m_AbilityLabel.SetText(text); + this.m_FightLabel.SetText(num.ToString()); + } + } + } + + private void DesWrapListUpdated(Transform t, int i) + { + bool flag = this._doc.LastDisPlayTab >= this._doc.DesList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("tab_index is out of range of designation list. index = ", this._doc.LastDisPlayTab.ToString(), " cout = ", this._doc.DesList.Count.ToString(), null, null); + } + else + { + bool flag2 = i >= this._doc.DesList[this._doc.LastDisPlayTab].Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("i is out of range of designation list. i = ", i.ToString(), " cout = ", this._doc.DesList[this._doc.LastDisPlayTab].Count.ToString(), null, null); + } + else + { + DesignationInfo designationInfo = this._doc.DesList[this._doc.LastDisPlayTab][i]; + IXUILabelSymbol ixuilabelSymbol = t.Find("Animation").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite = t.Find("Sign/CoverSign").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("Sign/AbilitySign").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("DescLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("AttsLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("FightLabel").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = t.Find("New").gameObject; + IXUISprite ixuisprite3 = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)((long)designationInfo.ID); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClick)); + bool flag3 = designationInfo.completed && this._currentClickID == this.UNSELECT && i == 0; + if (flag3) + { + this.OnItemClick(ixuisprite3); + } + t.Find("Select").gameObject.SetActive(this._currentClickID == designationInfo.ID); + GameObject gameObject2 = t.Find("UnCompleted").gameObject; + gameObject.SetActive(designationInfo.isNew); + bool flag4 = designationInfo.effect == ""; + string inputText; + if (flag4) + { + inputText = designationInfo.color + designationInfo.desName; + } + else + { + inputText = XLabelSymbolHelper.FormatDesignation(designationInfo.atlas, designationInfo.effect, 16); + } + ixuilabelSymbol.InputText = inputText; + IXUILabel ixuilabel4 = t.Find("LeftTime").GetComponent("XUILabel") as IXUILabel; + bool flag5 = designationInfo.leftTime < 0; + if (flag5) + { + this._leftTime[i % XDesignationView.MAXSHOWITEM] = -1; + this._timeLabel[i % XDesignationView.MAXSHOWITEM] = null; + ixuilabel4.SetVisible(false); + } + else + { + ixuilabel4.SetText(XSingleton.singleton.TimeDuarationFormatString(designationInfo.leftTime - (int)(this._doc.GetNowTime() - this._doc.GetSignTime), 5)); + this._timeLabel[i % XDesignationView.MAXSHOWITEM] = ixuilabel4; + this._leftTime[i % XDesignationView.MAXSHOWITEM] = designationInfo.leftTime; + ixuilabel4.SetVisible(true); + } + ixuisprite.SetVisible((long)designationInfo.ID == (long)((ulong)this._doc.CoverDesignationID)); + ixuisprite2.SetVisible((long)designationInfo.ID == (long)((ulong)this._doc.AbilityDesignationID)); + bool flag6 = (long)designationInfo.ID == (long)((ulong)this._doc.AbilityDesignationID); + if (flag6) + { + bool flag7 = (long)designationInfo.ID == (long)((ulong)this._doc.CoverDesignationID); + if (flag7) + { + ixuisprite2.gameObject.transform.localPosition = new Vector3((float)ixuisprite.spriteWidth, 0f); + } + else + { + ixuisprite2.gameObject.transform.localPosition = Vector3.zero; + } + } + ixuilabel.SetText(designationInfo.explanation); + string text = ""; + uint num = 0u; + this._doc.GetPPT(out text, out num, designationInfo.attribute, false); + GameObject gameObject3 = t.Find("RedPoint").gameObject; + bool flag8 = designationInfo.completed && !this._doc.IsMaxAbilityDes && num == this._doc.MaxAbilityDesNum; + if (flag8) + { + gameObject3.SetActive(true); + } + else + { + gameObject3.SetActive(false); + } + ixuilabel2.SetText(text); + ixuilabel3.SetText(XStringDefineProxy.GetString("FRIENDS_FIGHT_POINT") + "+" + num.ToString()); + bool completed = designationInfo.completed; + if (completed) + { + gameObject2.SetActive(false); + } + else + { + gameObject2.SetActive(true); + IXUISprite ixuisprite4 = gameObject2.GetComponent("XUISprite") as IXUISprite; + ixuisprite4.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.UnCompleteTips)); + } + } + } + } + + public void SetDesignationList(List list, int type, bool resetScrollPos = true) + { + bool flag = !base.IsVisible(); + if (!flag) + { + if (resetScrollPos) + { + this._currentClickID = this.UNSELECT; + this.m_CoverBtn.SetEnable(false, false); + this.m_AbilityBtn.SetEnable(false, false); + } + this._doc.LastDisPlayTab = type; + for (int i = 0; i < XDesignationView.MAXSHOWITEM; i++) + { + this._leftTime[i] = -1; + } + XSingleton.singleton.KillTimer(this._timeToken); + XSingleton.singleton.KillTimer(this._reqTimeToken); + int num = -1; + for (int j = 0; j < list.Count; j++) + { + bool flag2 = list[j].leftTime > 0; + if (flag2) + { + bool flag3 = num == -1 || list[j].leftTime < num; + if (flag3) + { + num = list[j].leftTime; + } + } + } + bool flag4 = num != -1; + if (flag4) + { + num -= (int)(this._doc.GetNowTime() - this._doc.GetSignTime); + bool flag5 = num < 0; + if (flag5) + { + num = 0; + } + this._reqTimeToken = XSingleton.singleton.SetTimer((float)num + 1.1f, new XTimerMgr.ElapsedEventHandler(this.ReqInfo), null); + this._timeToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.RefreshLeftTime), null); + } + this.m_DesListWrapContent.SetContentCount(list.Count, false); + if (resetScrollPos) + { + this.m_ScrollView.ResetPosition(); + } + } + } + + private void ReqInfo(object o = null) + { + this._doc.SendQueryDesignationInfo(); + this._doc.SendQueryDesignationList((uint)(this._doc.LastDisPlayTab + 1)); + } + + private void RefreshLeftTime(object o = null) + { + for (int i = 0; i < XDesignationView.MAXSHOWITEM; i++) + { + bool flag = this._leftTime[i] >= 0; + if (flag) + { + int num = this._leftTime[i] - (int)(this._doc.GetNowTime() - this._doc.GetSignTime); + bool flag2 = num < 0; + if (flag2) + { + this._leftTime[i] = -1; + num = 0; + } + this._timeLabel[i].SetText(XSingleton.singleton.TimeDuarationFormatString(num, 5)); + } + } + this._timeToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.RefreshLeftTime), null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDesignationView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDesignationView.cs.meta new file mode 100644 index 00000000..849fcf42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDesignationView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 905dcade54f8e9b4280a08adc3ef4a8e +timeCreated: 1611404138 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonGuildApproveSettingView.cs b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildApproveSettingView.cs new file mode 100644 index 00000000..d92134e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildApproveSettingView.cs @@ -0,0 +1,63 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class XDragonGuildApproveSettingView : DlgHandlerBase + { + private IXUIInput m_PPTInput; + + private IXUICheckBox m_AutoApprove; + + private XDragonGuildApproveDocument _doc; + + protected override void Init() + { + this.m_PPTInput = (base.PanelObject.transform.Find("SettingMenu/PPTInput").GetComponent("XUIInput") as IXUIInput); + this.m_AutoApprove = (base.PanelObject.transform.Find("SettingMenu/AutoApprove").GetComponent("XUICheckBox") as IXUICheckBox); + this._doc = XDocuments.GetSpecificDocument(XDragonGuildApproveDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + IXUIButton ixuibutton2 = base.PanelObject.transform.Find("SettingMenu/OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + DragonGuildApproveSetting approveSetting = this._doc.ApproveSetting; + this.m_PPTInput.SetText(approveSetting.GetStrPPT()); + this.m_AutoApprove.bChecked = approveSetting.autoApprove; + } + + private bool _OnOKBtnClicked(IXUIButton btn) + { + DragonGuildApproveSetting dragonGuildApproveSetting = new DragonGuildApproveSetting(); + string text = this.m_PPTInput.GetText(); + bool flag = text.Length == 0; + if (flag) + { + dragonGuildApproveSetting.PPT = 0u; + } + else + { + dragonGuildApproveSetting.PPT = uint.Parse(text); + } + dragonGuildApproveSetting.autoApprove = this.m_AutoApprove.bChecked; + this._doc.ReqSetApprove(dragonGuildApproveSetting); + base.SetVisible(false); + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonGuildApproveSettingView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildApproveSettingView.cs.meta new file mode 100644 index 00000000..6dce79e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildApproveSettingView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8271046d224050b4d858507c1acad6d9 +timeCreated: 1611404040 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskBehaviour.cs new file mode 100644 index 00000000..e2cd6cfa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskBehaviour.cs @@ -0,0 +1,56 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + public class XDragonGuildTaskBehaviour : DlgBehaviourBase + { + public IXUIButton m_close; + + public Transform m_Trooplevel; + + public IXUILabel m_GuildLevel; + + public IXUIProgress m_progress; + + public IXUILabel m_GuildExpMax; + + public IXUILabel m_GuildExpCur; + + public IXUILabel m_cdrewards; + + public IXUICheckBox m_task; + + public IXUICheckBox m_achieve; + + public Transform m_Toptask; + + public Transform m_Topachieve; + + public IXUIWrapContent m_wrapcontent; + + public Transform m_taskrep; + + public Transform m_acieverep; + + private void Awake() + { + this.m_close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Trooplevel = base.transform.Find("Bg/TroopLevel"); + this.m_progress = (this.m_Trooplevel.Find("ProgressBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_GuildLevel = (this.m_Trooplevel.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_GuildExpCur = (this.m_Trooplevel.Find("Value").GetComponent("XUILabel") as IXUILabel); + this.m_GuildExpMax = (this.m_Trooplevel.Find("ValueMax").GetComponent("XUILabel") as IXUILabel); + this.m_cdrewards = (base.transform.Find("Bg/CDRewards").GetComponent("XUILabel") as IXUILabel); + this.m_task = (base.transform.Find("Bg/buttons/SelectTask").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_taskrep = base.transform.Find("Bg/buttons/SelectTask/redpoint"); + this.m_achieve = (base.transform.Find("Bg/buttons/SelectAchieve").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_acieverep = base.transform.Find("Bg/buttons/SelectAchieve/redpoint"); + this.m_Toptask = base.transform.Find("Bg/Task/Top/Brunch/Task"); + this.m_Topachieve = base.transform.Find("Bg/Task/Top/Brunch/Achieve"); + this.m_wrapcontent = (base.transform.Find("Bg/Task/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskBehaviour.cs.meta new file mode 100644 index 00000000..50d47c4a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e2ead2e9d4c3064894b55430fccf0d8 +timeCreated: 1611403606 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskView.cs b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskView.cs new file mode 100644 index 00000000..f4806e70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskView.cs @@ -0,0 +1,272 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class XDragonGuildTaskView : DlgBase + { + public uint CurFrame + { + get + { + return this._curframe; + } + } + + public override string fileName + { + get + { + return "DungeonTroop/DungeonTroopTask"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + private uint _curframe; + + private XDragonGuildTaskDocument _doc = null; + + protected override void Init() + { + base.Init(); + this._curframe = 1u; + this._doc = XDocuments.GetSpecificDocument(XDragonGuildTaskDocument.uuID); + this._doc.View = this; + base.uiBehaviour.m_wrapcontent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateDailyTask)); + base.uiBehaviour.m_task.ID = 1UL; + base.uiBehaviour.m_task.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabStateChange)); + base.uiBehaviour.m_achieve.ID = 2UL; + base.uiBehaviour.m_achieve.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabStateChange)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.ReqInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnUnload() + { + base.OnUnload(); + this._doc.View = null; + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public bool OnTabStateChange(IXUICheckBox check) + { + bool bChecked = check.bChecked; + if (bChecked) + { + this.OnTabClicked((int)check.ID); + } + return true; + } + + private void OnTabClicked(int index) + { + this._curframe = (uint)index; + this._doc.ReqInfo(); + } + + public void RefreshUI() + { + this.UpdateProgress(); + this.UpdateRedPoint(); + bool flag = this.CurFrame == 1u; + if (flag) + { + this.RefreshTaskUI(); + } + else + { + bool flag2 = this.CurFrame == 2u; + if (flag2) + { + this.RefreshAchieveUI(); + } + } + base.uiBehaviour.m_GuildLevel.SetText("Lv." + XDragonGuildDocument.Doc.BaseData.level.ToString()); + } + + private void UpdateRedPoint() + { + base.uiBehaviour.m_taskrep.gameObject.SetActive(this._doc.HadTaskRedPoint()); + base.uiBehaviour.m_acieverep.gameObject.SetActive(this._doc.HadAchieveRedPoint()); + } + + private bool OnCloseClick(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + private void UpdateDailyTask(Transform t, int index) + { + XDragonGuildTpl dataByindex = this._doc.GetDataByindex(index, this._curframe); + Transform transform = t.Find("HadGet"); + IXUILabel ixuilabel = t.Find("Title").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Describe").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Describe/T/ExpAddup").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("GetBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)dataByindex.id; + Transform transform2 = t.Find("GetBtn/Text"); + Transform transform3 = t.Find("GetBtn/Text_cant"); + Transform transform4 = t.Find("GetBtn/Text_over"); + Transform transform5 = t.Find("Times"); + IXUILabel ixuilabel4 = t.Find("Times/LeftTimes").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + List list = new List(); + Transform transform6 = t.Find("Items"); + for (int i = 0; i < 3; i++) + { + list.Add(transform6.GetChild(i)); + } + ixuilabel.SetText(dataByindex.title); + ixuilabel5.SetText(string.Format("{0}/{1}", dataByindex.doingCount, dataByindex.finishCount)); + ixuilabel2.SetText(dataByindex.desc); + ixuilabel3.SetText("+" + dataByindex.exp.ToString()); + transform2.gameObject.SetActive(dataByindex.state == 2); + transform3.gameObject.SetActive(dataByindex.state == 1); + transform4.gameObject.SetActive(dataByindex.state == 4); + transform.gameObject.SetActive(dataByindex.state == 3); + transform5.gameObject.SetActive(this.CurFrame == 2u); + ixuibutton.gameObject.SetActive(dataByindex.state != 3); + bool flag = dataByindex.state == 4 || dataByindex.state == 1; + if (flag) + { + ixuibutton.SetEnable(false, false); + } + else + { + ixuibutton.SetEnable(true, false); + } + bool flag2 = dataByindex.state == 2; + if (flag2) + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTaskOrAchieveClick)); + } + bool flag3 = this.CurFrame == 2u; + if (flag3) + { + ixuilabel4.SetText(dataByindex.lefttime.ToString()); + } + for (int j = 0; j < 3; j++) + { + list[j].gameObject.SetActive(true); + bool flag4 = j >= dataByindex.item.Count; + if (flag4) + { + list[j].gameObject.SetActive(false); + } + else + { + XSingleton.singleton.normalItemDrawer.DrawItem(list[j].gameObject, (int)dataByindex.item[j, 0], (int)dataByindex.item[j, 1], true); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(list[j].gameObject, (int)dataByindex.item[j, 0]); + } + } + } + + private bool OnTaskOrAchieveClick(IXUIButton btn) + { + int id = (int)btn.ID; + bool flag = this.CurFrame == 1u; + if (flag) + { + this._doc.ReqFetchTask(id); + } + else + { + bool flag2 = this.CurFrame == 2u; + if (flag2) + { + this._doc.ReqFetchAchieve(id); + } + } + return true; + } + + public void OnTaskFetch(uint id) + { + for (int i = 0; i < this._doc.m_tasklist.Count; i++) + { + bool flag = id == this._doc.m_tasklist[i].id; + if (flag) + { + this._doc.m_tasklist[i].state = 3; + } + } + this.RefreshUI(); + } + + private void UpdateProgress() + { + base.uiBehaviour.m_GuildExpCur.SetText(XDragonGuildDocument.Doc.BaseData.curexp.ToString()); + base.uiBehaviour.m_GuildExpMax.SetText("/" + XDragonGuildDocument.Doc.GetMaxExp().ToString()); + base.uiBehaviour.m_progress.value = XDragonGuildDocument.Doc.BaseData.curexp / XDragonGuildDocument.Doc.GetMaxExp(); + } + + private void RefreshTaskUI() + { + base.uiBehaviour.m_cdrewards.SetText(this._doc.m_taskresettime); + base.uiBehaviour.m_wrapcontent.SetContentCount(this._doc.m_tasklist.Count, false); + base.uiBehaviour.m_cdrewards.SetVisible(true); + base.uiBehaviour.m_Toptask.gameObject.SetActive(true); + base.uiBehaviour.m_Topachieve.gameObject.SetActive(false); + } + + private void RefreshAchieveUI() + { + base.uiBehaviour.m_wrapcontent.SetContentCount(this._doc.m_achievelist.Count, false); + base.uiBehaviour.m_cdrewards.SetVisible(false); + base.uiBehaviour.m_Toptask.gameObject.SetActive(false); + base.uiBehaviour.m_Topachieve.gameObject.SetActive(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskView.cs.meta new file mode 100644 index 00000000..52ce3b07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonGuildTaskView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a9af65843dddf24f864a2f047b3412f +timeCreated: 1611404092 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonHistoryHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XDragonHistoryHandler.cs new file mode 100644 index 00000000..95b63a98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonHistoryHandler.cs @@ -0,0 +1,270 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XDragonHistoryHandler : DlgHandlerBase + { + private IXUIWrapContent _DetailWrapContent; + + private IXUIScrollView _DetailScrollView; + + private List _RecordList; + + private List _RoleInfoList; + + private XExpeditionDocument _expDoc = null; + + private XDragonNestDocument _dnDoc = null; + + private XDragonPartnerDocument _doc = null; + + private Transform[] _avatarList; + + private Transform _EmptyDetail; + + private Transform _EmptyMember; + + private GameObject _SelectItemGB; + + private int _selectedIndex = -1; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XDragonPartnerDocument.uuID); + this._dnDoc = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + this._expDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + Transform transform = base.transform.Find("Member/Member/List"); + int childCount = transform.childCount; + this._avatarList = new Transform[childCount]; + for (int i = 0; i < childCount; i++) + { + this._avatarList[i] = transform.Find(XSingleton.singleton.StringCombine("Avatar", i.ToString())); + } + this._EmptyDetail = base.transform.Find("Member/EmptyDetail"); + this._EmptyMember = base.transform.Find("Member/EmptyMember"); + this._DetailScrollView = (base.transform.Find("Detail").GetComponent("XUIScrollView") as IXUIScrollView); + this._DetailWrapContent = (base.transform.Find("Detail/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._DetailWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnDetailWrapContentUpdate)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + this._doc.SendDragonGroupRecord(); + } + + public override void OnUnload() + { + this._avatarList = null; + base.OnUnload(); + } + + public override void RefreshData() + { + this.SetupDetailList(); + this.SetupSelectMember(0); + } + + private void SetupSelectMember(int index = 0) + { + bool flag = this._avatarList == null; + if (!flag) + { + bool flag2 = this._RoleInfoList == null; + if (flag2) + { + this._RoleInfoList = new List(); + } + this._RoleInfoList.Clear(); + bool active = false; + bool flag3 = this._RecordList != null && index >= 0 && index < this._RecordList.Count; + if (flag3) + { + int i = 0; + int count = this._RecordList[index].roleinfo.Count; + while (i < count) + { + bool flag4 = this._RecordList[index].roleinfo[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (!flag4) + { + this._RoleInfoList.Add(this._RecordList[index].roleinfo[i]); + } + i++; + } + active = (this._RecordList[index].iswin && this._RoleInfoList.Count == 0); + } + int count2 = this._RoleInfoList.Count; + this._EmptyMember.gameObject.SetActive(active); + int j = 0; + int num = this._avatarList.Length; + while (j < num) + { + bool flag5 = j < count2; + if (flag5) + { + this._avatarList[j].gameObject.SetActive(true); + this.OnMemberWrapContentUpdate(this._avatarList[j], j); + } + else + { + this._avatarList[j].gameObject.SetActive(false); + } + j++; + } + } + } + + private void OnSelectDetail(IXUISprite sprite) + { + bool flag = this._SelectItemGB != sprite.gameObject && this._SelectItemGB != null && !this._SelectItemGB.activeSelf; + if (flag) + { + this.ForceSetToggleFlag(this._SelectItemGB, false); + } + bool flag2 = null == this._SelectItemGB; + this._SelectItemGB = sprite.gameObject; + bool flag3 = flag2; + if (flag3) + { + this.ForceSetToggleFlag(this._SelectItemGB, true); + } + int num = (int)sprite.ID; + this.SetupSelectMember(num); + this._selectedIndex = num; + } + + private void ForceSetToggleFlag(GameObject obj, bool flag) + { + bool flag2 = obj == null; + if (!flag2) + { + IXUICheckBox ixuicheckBox = obj.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag3 = ixuicheckBox != null; + if (flag3) + { + ixuicheckBox.ForceSetFlag(flag); + } + } + } + + private void OnMemberWrapContentUpdate(Transform t, int index) + { + bool flag = this._RoleInfoList == null || this._RoleInfoList.Count < index; + if (!flag) + { + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = t.Find("Profession").GetComponent("XUISprite") as IXUISprite; + DragonGroupRoleInfo dragonGroupRoleInfo = this._RoleInfoList[index]; + ixuisprite.ID = dragonGroupRoleInfo.roleid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickAvatar)); + ixuilabel.SetText(dragonGroupRoleInfo.rolename); + ixuisprite2.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)dragonGroupRoleInfo.profession)); + ixuisprite3.SetSprite(XSingleton.singleton.GetProfIcon((int)dragonGroupRoleInfo.profession)); + } + } + + private void SetupDetailList() + { + this._RecordList = this._doc.RecordList; + bool flag = this._RecordList == null || this._RecordList.Count == 0; + if (flag) + { + this._DetailWrapContent.SetContentCount(0, false); + } + else + { + this._DetailWrapContent.SetContentCount(this._RecordList.Count, false); + } + this._EmptyDetail.gameObject.SetActive(this._RecordList == null || this._RecordList.Count == 0); + this._DetailScrollView.ResetPosition(); + } + + private void OnDetailWrapContentUpdate(Transform t, int index) + { + bool flag = this._RecordList == null || index >= this._RecordList.Count; + if (!flag) + { + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Info/Date").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Info/Year").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Info/Period").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Info/StageName").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("Info/AvatarBG/NestTpl/Bg/Icon").GetComponent("XUISprite") as IXUISprite; + IXUITexture ixuitexture = t.Find("Info/AvatarBG/NestTpl/Boss").GetComponent("XUITexture") as IXUITexture; + Transform transform = t.Find("Info/AvatarBG/NestTpl/Bg"); + DragonGroupRecordInfoList dragonGroupRecordInfoList = this._RecordList[index]; + IXUILabel ixuilabel5 = t.Find("Info/AvatarBG/NestTpl/Succeed").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.gameObject.SetActive(dragonGroupRecordInfoList.iswin); + IXUILabel ixuilabel6 = t.Find("Desc/Watch/Text").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel7 = t.Find("Desc/Commend/Text").GetComponent("XUILabel") as IXUILabel; + Transform transform2 = t.Find("Medal/FirstDown"); + Transform transform3 = t.Find("Medal/FirstPass"); + IXUIList ixuilist = t.Find("Grid").GetComponent("XUIList") as IXUIList; + Transform transform4 = t.Find("Grid/Text1"); + Transform transform5 = t.Find("Grid/Text2"); + ixuilabel3.SetText(XSingleton.singleton.TimeDuarationFormatString((int)dragonGroupRecordInfoList.costtime, 5)); + DateTime dateTime = XSingleton.singleton.TimeNow(dragonGroupRecordInfoList.time, true); + ixuilabel2.SetText(dateTime.ToString("yyyy")); + ixuilabel.SetText(dateTime.ToString("MM.dd")); + ExpeditionTable.RowData expeditionDataByID = this._expDoc.GetExpeditionDataByID((int)dragonGroupRecordInfoList.stageid); + DragonNestTable.RowData dragonNestByID = this._dnDoc.GetDragonNestByID(dragonGroupRecordInfoList.stageid); + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectDetail)); + bool flag2 = this._SelectItemGB == null && index == 0; + if (flag2) + { + this.OnSelectDetail(ixuisprite); + } + this.ForceSetToggleFlag(ixuisprite.gameObject, this._selectedIndex == index); + bool flag3 = expeditionDataByID != null && dragonNestByID != null; + if (flag3) + { + ixuilabel4.SetText(XExpeditionDocument.GetFullName(expeditionDataByID)); + bool flag4 = (ulong)dragonNestByID.DragonNestWave == (ulong)((long)this._dnDoc.DragonNestBOSSWave); + if (flag4) + { + ixuitexture.gameObject.SetActive(true); + transform.gameObject.SetActive(false); + ixuitexture.SetTexturePath(dragonNestByID.DragonNestIcon); + ixuisprite2.SetSprite(""); + } + else + { + ixuitexture.gameObject.SetActive(false); + transform.gameObject.SetActive(true); + ixuitexture.SetTexturePath(""); + ixuisprite2.SetSprite(dragonNestByID.DragonNestIcon, dragonNestByID.DragonNestAtlas, false); + } + } + else + { + ixuitexture.SetTexturePath(""); + ixuilabel4.SetText(""); + ixuisprite2.SetSprite(""); + } + ixuilabel6.SetText(XSingleton.singleton.StringCombine(dragonGroupRecordInfoList.watchnum.ToString(), XStringDefineProxy.GetString("Spectate_times"))); + ixuilabel7.SetText(XSingleton.singleton.StringCombine(dragonGroupRecordInfoList.commendnum.ToString(), XStringDefineProxy.GetString("Spectate_times"))); + transform4.gameObject.SetActive(dragonGroupRecordInfoList.ismostwatchnum); + transform5.gameObject.SetActive(dragonGroupRecordInfoList.ismostcommendnum); + ixuilist.Refresh(); + transform2.gameObject.SetActive(dragonGroupRecordInfoList.iswin && dragonGroupRecordInfoList.isFirstPass && !dragonGroupRecordInfoList.isServerFirstPass); + transform3.gameObject.SetActive(dragonGroupRecordInfoList.iswin && dragonGroupRecordInfoList.isServerFirstPass); + } + } + + private void OnClickAvatar(IXUISprite sp) + { + ulong id = sp.ID; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(id, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonHistoryHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDragonHistoryHandler.cs.meta new file mode 100644 index 00000000..23406740 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonHistoryHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f234664d3ad483848bc6c1b2d3ac5bea +timeCreated: 1611404842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonPartnerHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XDragonPartnerHandler.cs new file mode 100644 index 00000000..a2d90e2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonPartnerHandler.cs @@ -0,0 +1,147 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + internal class XDragonPartnerHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/DragonPartnerFrame"; + } + } + + private XDragonPartnerDocument m_doc; + + private XDragonPartnerHandler.TabIndex m_CurrentTabIndex = XDragonPartnerHandler.TabIndex.Record; + + private XDragonRecordHandler m_DragonRecordHandler; + + private XDragonHistoryHandler m_DragonHistoryHandler; + + private IXUICheckBox m_Tab0; + + private IXUICheckBox m_Tab1; + + private GameObject m_RecordFrame; + + private GameObject m_HistoryFrame; + + private enum TabIndex + { + Record, + History, + Max + } + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XDragonPartnerDocument.uuID); + this.m_doc.View = this; + this.m_Tab0 = (base.PanelObject.transform.Find("padTabs/TabTpl0/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Tab1 = (base.PanelObject.transform.Find("padTabs/TabTpl1/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Tab0.ID = 0UL; + this.m_Tab0.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickTab)); + this.m_Tab1.ID = 1UL; + this.m_Tab1.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickTab)); + this.m_RecordFrame = base.PanelObject.transform.Find("DragonNestRecordingFrame").gameObject; + this.m_HistoryFrame = base.PanelObject.transform.Find("historyFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_DragonRecordHandler, this.m_RecordFrame, this, false); + DlgHandlerBase.EnsureCreate(ref this.m_DragonHistoryHandler, this.m_HistoryFrame, this, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._ApplyTabData(this.m_CurrentTabIndex); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_DragonHistoryHandler); + DlgHandlerBase.EnsureUnload(ref this.m_DragonRecordHandler); + bool flag = this.m_doc != null; + if (flag) + { + this.m_doc.View = null; + } + base.OnUnload(); + } + + private bool OnClickTab(IXUICheckBox cbx) + { + bool bChecked = cbx.bChecked; + if (bChecked) + { + this.m_CurrentTabIndex = (XDragonPartnerHandler.TabIndex)cbx.ID; + this._ApplyTabData(this.m_CurrentTabIndex); + } + return true; + } + + private void _ApplyTabData(XDragonPartnerHandler.TabIndex tab) + { + bool flag = base.IsVisible(); + bool flag2 = flag; + if (flag2) + { + XDragonPartnerHandler.TabIndex currentTabIndex = this.m_CurrentTabIndex; + if (currentTabIndex != XDragonPartnerHandler.TabIndex.Record) + { + if (currentTabIndex == XDragonPartnerHandler.TabIndex.History) + { + this.m_DragonRecordHandler.SetVisible(false); + this.m_DragonHistoryHandler.SetVisible(true); + } + } + else + { + this.m_DragonRecordHandler.SetVisible(true); + this.m_DragonHistoryHandler.SetVisible(false); + } + } + } + + public override void RefreshData() + { + bool flag = !base.IsVisible(); + if (!flag) + { + XDragonPartnerHandler.TabIndex currentTabIndex = this.m_CurrentTabIndex; + if (currentTabIndex != XDragonPartnerHandler.TabIndex.Record) + { + if (currentTabIndex == XDragonPartnerHandler.TabIndex.History) + { + bool flag2 = this.m_DragonHistoryHandler.IsVisible(); + if (flag2) + { + this.m_DragonHistoryHandler.RefreshData(); + } + } + } + else + { + bool flag3 = this.m_DragonRecordHandler.IsVisible(); + if (flag3) + { + this.m_DragonRecordHandler.RefreshData(); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonPartnerHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDragonPartnerHandler.cs.meta new file mode 100644 index 00000000..6e5e1629 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonPartnerHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0896b45bd42398f49988a8e5ab126b12 +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonRecordHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XDragonRecordHandler.cs new file mode 100644 index 00000000..d108f76c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonRecordHandler.cs @@ -0,0 +1,286 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XDragonRecordHandler : DlgHandlerBase + { + private XDragonPartnerDocument _doc = null; + + private XExpeditionDocument _expDoc = null; + + private XDragonNestDocument _dnDoc = null; + + private List m_dragonGroupRoleInfoList; + + private IXUIButton m_BtnDragonNest; + + private IXUIButton m_BtnRecruit; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private Transform _EmptyDetail; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XDragonPartnerDocument.uuID); + this._expDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this._dnDoc = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + this.m_BtnDragonNest = (base.PanelObject.transform.Find("Btn_DragonNest").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRecruit = (base.PanelObject.transform.Find("Btn_Recruit").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.PanelObject.transform.Find("detail/detail").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("detail/detail/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._EmptyDetail = base.PanelObject.transform.Find("detail/EmptyDetail"); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + this._doc.ReqDragonGroupRoleInfo(); + } + + public override void RefreshData() + { + this.SetupPartnerInfo(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnDragonNest.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickBtnDragonNest)); + this.m_BtnRecruit.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickBtnRecruit)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.PartnerWrapListUpdate)); + } + + public override void OnUnload() + { + this.m_dragonGroupRoleInfoList = null; + base.OnUnload(); + } + + private void PartnerWrapListUpdate(Transform item, int index) + { + bool flag = this.m_dragonGroupRoleInfoList == null || index >= this.m_dragonGroupRoleInfoList.Count; + if (!flag) + { + IXUISprite ixuisprite = item.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItem)); + IXUISprite ixuisprite2 = item.Find("Info/Profession").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = item.Find("Info/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = item.Find("Info/Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = item.Find("Info/AvatarBG/BattlePointBG/Power").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = item.Find("Info/GuildName").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = item.Find("Info/AvatarBG/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = item.Find("Info/AvatarBG/AvatarFrame").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel5 = item.Find("Stage/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = item.Find("Stage/date/Date").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel7 = item.Find("Stage/date/Time").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel8 = item.Find("Stage/Times/Num").GetComponent("XUILabel") as IXUILabel; + Transform transform = item.Find("add"); + IXUIButton ixuibutton = item.Find("add").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAddFriend)); + Transform transform2 = item.Find("hgd"); + IXUILabel ixuilabel9 = transform2.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite5 = transform2.Find("Level/Mark").GetComponent("XUISprite") as IXUISprite; + ixuisprite5.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickDegreeHeart)); + IXUIButton ixuibutton2 = item.Find("chat/btn").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickChatBtn)); + DragonGroupRoleInfo dragonGroupRoleInfo = this.m_dragonGroupRoleInfoList[index]; + ixuibutton.ID = dragonGroupRoleInfo.roleid; + ixuibutton2.ID = (ulong)((long)index); + ixuisprite.ID = dragonGroupRoleInfo.roleid; + ixuisprite2.SetSprite(XSingleton.singleton.GetProfIcon((int)dragonGroupRoleInfo.profession)); + ixuilabel.SetText(dragonGroupRoleInfo.rolename); + ixuilabel2.SetText(dragonGroupRoleInfo.level.ToString()); + ixuilabel3.SetText(dragonGroupRoleInfo.fighting.ToString()); + ixuilabel4.SetText(string.IsNullOrEmpty(dragonGroupRoleInfo.guild) ? XStringDefineProxy.GetString("NONE") : dragonGroupRoleInfo.guild); + ixuisprite3.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)dragonGroupRoleInfo.profession)); + bool flag2 = dragonGroupRoleInfo.pre != null; + if (flag2) + { + XSingleton.singleton.ParseHeadIcon(dragonGroupRoleInfo.pre.setid, ixuisprite4); + } + else + { + ixuisprite4.SetVisible(false); + } + ExpeditionTable.RowData expeditionDataByID = this._expDoc.GetExpeditionDataByID((int)dragonGroupRoleInfo.stageID); + bool flag3 = expeditionDataByID != null; + if (flag3) + { + ixuilabel5.SetText(XExpeditionDocument.GetFullName(expeditionDataByID)); + DateTime dateTime = XSingleton.singleton.TimeNow(dragonGroupRoleInfo.stageTime, true); + ixuilabel6.SetText(dateTime.ToString("yyyy.MM.dd")); + ixuilabel7.SetText(dateTime.ToString("HH:mm")); + ixuilabel8.SetText(dragonGroupRoleInfo.stageCount.ToString()); + } + else + { + ixuilabel5.SetText(""); + ixuilabel6.SetText(""); + ixuilabel7.SetText(""); + ixuilabel8.SetText(""); + } + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(dragonGroupRoleInfo.roleid); + bool flag4 = friendDataById != null; + if (flag4) + { + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(true); + bool flag5 = friendDataById.degreeAll < XSingleton.singleton.MaxFriendlyEvaluation; + if (flag5) + { + ixuilabel9.SetText(friendDataById.degreeAll.ToString()); + } + else + { + ixuilabel9.SetText("MAX"); + } + float num = friendDataById.degreeAll; + num /= XSingleton.singleton.MaxFriendlyEvaluation; + ixuisprite5.SetFillAmount(1f - num); + ixuisprite5.ID = (ulong)friendDataById.degreeAll; + } + else + { + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + } + } + } + + private void OnClickDegreeHeart(IXUISprite spr) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_DEGREE_HINT_TEXT_FMT", new object[] + { + spr.ID + }), "fece00"); + } + + private void OnClickItem(IXUISprite sp) + { + ulong id = sp.ID; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(id, false); + } + + private bool OnClickAddFriend(IXUIButton btn) + { + DlgBase.singleton.AddFriendById(btn.ID); + return true; + } + + private bool OnClickBtnDragonNest(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool OnClickBtnRecruit(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_GroupRecruit, 0UL); + return true; + } + + private bool OnClickChatBtn(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num < 0 || num >= this.m_dragonGroupRoleInfoList.Count; + bool result; + if (flag) + { + result = false; + } + else + { + DragonGroupRoleInfo dragonGroupRoleInfo = this.m_dragonGroupRoleInfoList[num]; + bool flag2 = DlgBase.singleton.IsBlock(dragonGroupRoleInfo.roleid); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_BLOCK_2"), "fece00"); + } + else + { + ChatFriendData chatFriendData = new ChatFriendData(); + chatFriendData.name = dragonGroupRoleInfo.rolename; + chatFriendData.roleid = dragonGroupRoleInfo.roleid; + chatFriendData.powerpoint = dragonGroupRoleInfo.fighting; + chatFriendData.profession = dragonGroupRoleInfo.profession; + chatFriendData.setid = ((dragonGroupRoleInfo.pre != null) ? dragonGroupRoleInfo.pre.setid : new List()); + chatFriendData.isfriend = DlgBase.singleton.IsMyFriend(dragonGroupRoleInfo.roleid); + chatFriendData.msgtime = DateTime.Now; + chatFriendData.viplevel = 0u; + XEntity entity = XSingleton.singleton.GetEntity(dragonGroupRoleInfo.roleid); + bool flag3 = entity != null; + if (flag3) + { + XRoleAttributes xroleAttributes = (XRoleAttributes)entity.Attributes; + chatFriendData.profession = (uint)xroleAttributes.Profession; + } + DlgBase.singleton.PrivateChatTo(chatFriendData); + } + result = true; + } + return result; + } + + private void SetupPartnerInfo() + { + List dragonGroupRoleInfoLsit = this._doc.DragonGroupRoleInfoLsit; + bool flag = this.m_dragonGroupRoleInfoList == null; + if (flag) + { + this.m_dragonGroupRoleInfoList = new List(); + } + this.m_dragonGroupRoleInfoList.Clear(); + bool flag2 = dragonGroupRoleInfoLsit != null; + if (flag2) + { + for (int i = 0; i < dragonGroupRoleInfoLsit.Count; i++) + { + this.m_dragonGroupRoleInfoList.Add(dragonGroupRoleInfoLsit[i]); + } + } + this._EmptyDetail.gameObject.SetActive(this.m_dragonGroupRoleInfoList.Count == 0); + this.SortRoleInfoList(); + bool flag3 = this.m_dragonGroupRoleInfoList.Count == 0; + if (flag3) + { + this.m_WrapContent.SetContentCount(0, false); + } + else + { + this.m_WrapContent.SetContentCount(this.m_dragonGroupRoleInfoList.Count, false); + } + this.m_ScrollView.ResetPosition(); + } + + private void SortRoleInfoList() + { + this.m_dragonGroupRoleInfoList.Sort(new Comparison(this.ComparePartner)); + } + + private int ComparePartner(DragonGroupRoleInfo a, DragonGroupRoleInfo b) + { + bool flag = a.stageTime != b.stageTime; + int result; + if (flag) + { + result = b.stageTime.CompareTo(a.stageTime); + } + else + { + result = b.stageCount.CompareTo(a.stageCount); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonRecordHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDragonRecordHandler.cs.meta new file mode 100644 index 00000000..e6c70f92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonRecordHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 095141d508469c34ba8bf538f23ebb71 +timeCreated: 1611403154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonRwdHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XDragonRwdHandler.cs new file mode 100644 index 00000000..2b62b0b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonRwdHandler.cs @@ -0,0 +1,189 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XDragonRwdHandler : DlgHandlerBase + { + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_PanelScrollView; + + private IXUILabel m_lblWeek; + + private IXUILabel m_lblIntro; + + private IXUILabel m_lblTimes; + + private IXUICheckBox m_chbx; + + private bool cbInit; + + private XDragonRewardDocument doc; + + protected override void Init() + { + base.Init(); + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XDragonRewardDocument.uuID); + } + this.m_PanelScrollView = (base.PanelObject.transform.Find("detail").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("detail/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_lblWeek = (base.PanelObject.transform.Find("Title/T/Time").GetComponent("XUILabel") as IXUILabel); + this.m_lblIntro = (base.PanelObject.transform.Find("Title/Intro").GetComponent("XUILabel") as IXUILabel); + this.m_lblTimes = (base.PanelObject.transform.Find("Title/T/Times").GetComponent("XUILabel") as IXUILabel); + this.m_chbx = (base.PanelObject.transform.Find("Title/Agreement/Category/Normal").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_chbx.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSelectCnbx)); + } + + protected override void OnShow() + { + base.OnShow(); + this.doc.rwdView = this; + this.cbInit = false; + this.m_lblWeek.SetText(XStringDefineProxy.GetString("DragonReset")); + this.m_lblIntro.SetText(XStringDefineProxy.GetString("DragonDesc")); + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XDragonRewardDocument.uuID); + } + this.doc.FetchList(); + } + + protected override void OnHide() + { + this.cbInit = false; + base.OnHide(); + } + + public override void OnUnload() + { + this.doc = null; + base.OnUnload(); + } + + private bool OnSelectCnbx(IXUICheckBox chbx) + { + bool flag = this.cbInit; + if (flag) + { + bool flag2 = this.doc == null; + if (flag2) + { + this.doc = XDocuments.GetSpecificDocument(XDragonRewardDocument.uuID); + } + bool flag3 = chbx.bChecked != this.doc.isAgreeHelp; + if (flag3) + { + this.doc.AgreeHelp(chbx.bChecked); + } + } + return true; + } + + public void Refresh() + { + this.cbInit = true; + this.m_chbx.bChecked = this.doc.isAgreeHelp; + this.m_lblTimes.SetText(this.doc.helpCnt.ToString()); + this.m_WrapContent.SetContentCount(this.doc.rewds.Count, false); + this.m_PanelScrollView.ResetPosition(); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.doc != null; + if (flag) + { + bool flag2 = index < this.doc.rewds.Count && index >= 0; + if (flag2) + { + DragonRwdItem info = this.doc.rewds[index]; + this._SetRecord(t, info); + } + } + } + + private void _SetRecord(Transform t, DragonRwdItem info) + { + IXUILabel ixuilabel = t.Find("TLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("DLabel").GetComponent("XUILabel") as IXUILabel; + Transform transform = t.Find("ch"); + IXUISprite ixuisprite = transform.Find("Sprite").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = t.Find("Get").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite2 = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = t.Find("Fini").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = t.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("bj").gameObject; + GameObject gameObject2 = t.Find("bj/bj").gameObject; + GameObject gameObject3 = t.Find("tmp1").gameObject; + GameObject gameObject4 = t.Find("tmp2").gameObject; + ixuilabel.SetText(info.row.Achievement); + ixuilabel2.SetText(info.row.Explanation); + string empty = string.Empty; + string value = XSingleton.singleton.GetValue("AchieveColor"); + bool flag = !string.IsNullOrEmpty(info.row.DesignationName); + gameObject3.SetActive(flag); + gameObject4.SetActive(!flag); + Transform transform2 = flag ? gameObject3.transform : gameObject4.transform; + int num = Mathf.Min(3, (int)info.row.Reward.count); + for (int i = 0; i < num; i++) + { + GameObject gameObject5 = transform2.GetChild(i).gameObject; + gameObject5.transform.localScale = Vector3.one; + IXUISprite ixuisprite5 = gameObject5.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite5.ID = (ulong)((long)info.row.Reward[i, 0]); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject5, info.row.Reward[i, 0], info.row.Reward[i, 1], false); + ixuisprite5.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + int j = num; + int num2 = 3; + while (j < num2) + { + transform2.GetChild(j).gameObject.SetActive(false); + j++; + } + gameObject2.SetActive(info.state == AchieveState.Claim); + ixuisprite4.SetVisible(info.state == AchieveState.Claim); + ixuisprite3.SetVisible(info.state == AchieveState.Claimed); + ixuibutton.SetVisible(info.state != AchieveState.Claimed); + gameObject.SetActive(info.state != AchieveState.Normal); + ixuisprite2.SetSprite(info.row.ICON); + bool flag2 = flag; + if (flag2) + { + ixuisprite.SetSprite(info.row.DesignationName); + } + transform.gameObject.SetActive(!string.IsNullOrEmpty(info.row.DesignationName)); + ixuibutton.SetEnable(info.state != AchieveState.Normal, false); + ixuibutton.ID = (ulong)((long)info.row.ID); + bool flag3 = info.state != AchieveState.Normal; + if (flag3) + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnClick)); + } + } + + private bool OnBtnClick(IXUIButton btn) + { + bool flag = this.doc == null; + if (flag) + { + this.doc = XDocuments.GetSpecificDocument(XDragonRewardDocument.uuID); + } + this.doc.Claim((int)btn.ID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDragonRwdHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDragonRwdHandler.cs.meta new file mode 100644 index 00000000..47806ca3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDragonRwdHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7b766a4586b07948a84cb804d075413 +timeCreated: 1611404403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDramaOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XDramaOperate.cs new file mode 100644 index 00000000..37d15a8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDramaOperate.cs @@ -0,0 +1,51 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XDramaOperate + { + protected XDramaDocument dramaDoc; + + public XDramaOperate() + { + this.dramaDoc = XDocuments.GetSpecificDocument(XDramaDocument.uuID); + } + + protected void _FireEvent(XDramaOperateParam param) + { + DlgBase.singleton.SetupOperate(param); + param.Recycle(); + } + + protected string _GetRandomNpcText(XNpc npc) + { + bool flag = npc == null; + string result; + if (flag) + { + result = null; + } + else + { + string[] content = (npc.Attributes as XNpcAttributes).Content; + bool flag2 = content != null && content.Length != 0; + if (flag2) + { + result = content[XSingleton.singleton.RandomInt(content.Length)]; + } + else + { + result = string.Empty; + } + } + return result; + } + + public virtual void ShowNpc(XNpc npc) + { + DlgBase.singleton.SetVisible(true, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDramaOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDramaOperate.cs.meta new file mode 100644 index 00000000..b0c38176 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDramaOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0192336c2fdf934591cfc05f20bfc8b +timeCreated: 1611404348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDramaOperateButton.cs b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateButton.cs new file mode 100644 index 00000000..b37f93de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateButton.cs @@ -0,0 +1,36 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class XDramaOperateButton : XDataBase + { + public string Name; + + public ButtonClickEventHandler ClickEvent; + + public float TargetTime; + + public string TimeNote; + + public bool StateEnable = true; + + public ulong RID; + + public override void Init() + { + base.Init(); + this.Name = null; + this.ClickEvent = null; + this.TargetTime = 0f; + this.TimeNote = null; + this.StateEnable = true; + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDramaOperateButton.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateButton.cs.meta new file mode 100644 index 00000000..e1d91652 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateButton.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b46674d979fd034d902c56f8b64c85b +timeCreated: 1611403498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDramaOperateList.cs b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateList.cs new file mode 100644 index 00000000..fe16f827 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateList.cs @@ -0,0 +1,34 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class XDramaOperateList : XDataBase + { + public string Name; + + public SpriteClickEventHandler ClickEvent; + + public float TargetTime; + + public string TimeNote; + + public ulong RID; + + public override void Init() + { + base.Init(); + this.Name = null; + this.ClickEvent = null; + this.TargetTime = 0f; + this.TimeNote = null; + this.RID = 0UL; + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDramaOperateList.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateList.cs.meta new file mode 100644 index 00000000..e14f003c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a4cf5df586fdd1445b16ba25ae33b788 +timeCreated: 1611404283 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XDramaOperateParam.cs b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateParam.cs new file mode 100644 index 00000000..4afdc067 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateParam.cs @@ -0,0 +1,158 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XDramaOperateParam : XDataBase + { + public XDramaOperateButton[] Buttons + { + get + { + return this._Buttons; + } + } + + public XDramaOperateList[] Lists + { + get + { + return this._Lists; + } + } + + public int ButtonCount + { + get + { + return this._ButtonCount; + } + } + + public int ListCount + { + get + { + return this._ListCount; + } + } + + public static int MAX_BUTTON_COUNT = 4; + + public static int MAX_LIST_COUNT = 2; + + public XNpc Npc; + + public string Text; + + private XDramaOperateButton[] _Buttons = new XDramaOperateButton[XDramaOperateParam.MAX_BUTTON_COUNT]; + + private XDramaOperateList[] _Lists = new XDramaOperateList[XDramaOperateParam.MAX_LIST_COUNT]; + + private int _ButtonCount; + + private int _ListCount; + + public override void Init() + { + base.Init(); + for (int i = 0; i < XDramaOperateParam.MAX_BUTTON_COUNT; i++) + { + bool flag = this._Buttons[i] != null; + if (flag) + { + this._Buttons[i].Recycle(); + this._Buttons[i] = null; + } + } + for (int j = 0; j < XDramaOperateParam.MAX_LIST_COUNT; j++) + { + bool flag2 = this._Lists[j] != null; + if (flag2) + { + this._Lists[j].Recycle(); + this._Lists[j] = null; + } + } + this._ButtonCount = 0; + this._ListCount = 0; + this.Npc = null; + this.Text = null; + } + + public override void Recycle() + { + XDataPool.Recycle(this); + } + + public XDramaOperateButton AppendButton(string name, ButtonClickEventHandler callback, ulong id) + { + bool flag = this._ButtonCount >= XDramaOperateParam.MAX_BUTTON_COUNT; + XDramaOperateButton result; + if (flag) + { + result = null; + } + else + { + XDramaOperateButton data = XDataPool.GetData(); + data.Name = name; + data.RID = id; + bool flag2 = callback != null; + if (flag2) + { + data.ClickEvent = callback; + } + else + { + data.ClickEvent = new ButtonClickEventHandler(this._DefaultCallback); + } + this._Buttons[this._ButtonCount] = data; + this._ButtonCount++; + result = data; + } + return result; + } + + public XDramaOperateList AppendList(string name, SpriteClickEventHandler callback, ulong id) + { + bool flag = this._ListCount >= XDramaOperateParam.MAX_LIST_COUNT; + XDramaOperateList result; + if (flag) + { + result = null; + } + else + { + XDramaOperateList data = XDataPool.GetData(); + data.Name = name; + data.RID = id; + bool flag2 = callback != null; + if (flag2) + { + data.ClickEvent = callback; + } + else + { + data.ClickEvent = new SpriteClickEventHandler(this._DefaultCallback); + } + this._Lists[this._ListCount] = data; + this._ListCount++; + result = data; + } + return result; + } + + private void _DefaultCallback(IXUISprite iSp) + { + DlgBase.singleton.SetVisible(false, true); + } + + private bool _DefaultCallback(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XDramaOperateParam.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateParam.cs.meta new file mode 100644 index 00000000..b2d39431 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XDramaOperateParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a2e7bdae87ec9c468ebfd96ae29d05f +timeCreated: 1611403161 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFPStrengthenBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XFPStrengthenBehaviour.cs new file mode 100644 index 00000000..aff1b3e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFPStrengthenBehaviour.cs @@ -0,0 +1,38 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XFPStrengthenBehaviour : DlgBehaviourBase + { + public GameObject m_tabParentGo; + + public IXUIButton m_Close; + + public IXUIScrollView m_Scroll; + + public IXUILabel m_MyFightLab; + + public IXUILabel m_MyLevelLab; + + public IXUILabel m_RecommendFightLab; + + public IXUITexture m_RateTex; + + public static readonly uint FUNCTION_NUM = 4u; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Scroll = (base.transform.Find("Bg/Content/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = base.transform.Find("Bg/Top"); + this.m_MyFightLab = (transform.Find("MyFightLab").GetComponent("XUILabel") as IXUILabel); + this.m_RecommendFightLab = (transform.Find("RecommendFightLab").GetComponent("XUILabel") as IXUILabel); + this.m_MyLevelLab = (transform.Find("RecommendFightLab/LevelLab").GetComponent("XUILabel") as IXUILabel); + this.m_RateTex = (transform.Find("RateTex").GetComponent("XUITexture") as IXUITexture); + this.m_tabParentGo = base.transform.Find("Bg/functions/scroll").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFPStrengthenBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFPStrengthenBehaviour.cs.meta new file mode 100644 index 00000000..93d8abb3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFPStrengthenBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e6f1f032f1b1da47931d7e85f5f8677 +timeCreated: 1611403363 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs b/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs new file mode 100644 index 00000000..23d69dfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs @@ -0,0 +1,38 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class XFavorParam : XDataBase + { + public XNpc Npc; + + public string Text; + + public bool isShowSend = false; + + public bool isShowExchange = false; + + public bool isShowExchangeRedpoint = false; + + public ButtonClickEventHandler sendCallback; + + public ButtonClickEventHandler exchangeCallback; + + public override void Init() + { + this.Npc = null; + this.Text = string.Empty; + this.isShowSend = false; + this.isShowExchange = false; + this.isShowExchangeRedpoint = false; + this.sendCallback = null; + this.exchangeCallback = null; + } + + public override void Recycle() + { + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs.meta new file mode 100644 index 00000000..e5f02199 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFavorParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 297a48643d69bd94795b87a790673531 +timeCreated: 1611403477 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyBehavior.cs new file mode 100644 index 00000000..0641ab03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyBehavior.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XFlowerReplyBehavior : DlgBehaviourBase + { + public IXUILabel m_SenderName = null; + + public IXUILabel m_SenderCount = null; + + public IXUILabel m_FlowerName = null; + + public IXUILabel m_ThxContent = null; + + public IXUISprite m_Close = null; + + public IXUIButton m_Voice = null; + + public IXUIButton m_QuickThx = null; + + public Transform m_SpeakPanel = null; + + public List m_ReplayBgList = new List(); + + private void Awake() + { + this.m_SpeakPanel = base.transform.Find("Bg/SpeakPanel"); + this.m_SenderName = (base.transform.Find("Bg/SenderName").GetComponent("XUILabel") as IXUILabel); + this.m_SenderCount = (base.transform.Find("Bg/SendCount").GetComponent("XUILabel") as IXUILabel); + this.m_FlowerName = (base.transform.Find("Bg/FlowerName").GetComponent("XUILabel") as IXUILabel); + this.m_QuickThx = (base.transform.Find("Bg/BtnTHx").GetComponent("XUIButton") as IXUIButton); + this.m_Voice = (base.transform.Find("Bg/speak").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("InputBlocker").GetComponent("XUISprite") as IXUISprite); + this.m_ThxContent = (base.transform.Find("Bg/ThxContent").GetComponent("XUILabel") as IXUILabel); + GameObject gameObject = base.transform.Find("Bg/Bg2").gameObject; + GameObject gameObject2 = base.transform.Find("Bg/Bg2_Advance").gameObject; + GameObject gameObject3 = base.transform.Find("Bg/Bg2_Elite").gameObject; + this.m_ReplayBgList.Add(gameObject); + this.m_ReplayBgList.Add(gameObject2); + this.m_ReplayBgList.Add(gameObject3); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyBehavior.cs.meta new file mode 100644 index 00000000..7bd06b16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15a42a6b6aff3e14f80d001c60c7aeae +timeCreated: 1611403264 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyView.cs b/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyView.cs new file mode 100644 index 00000000..34f6c083 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyView.cs @@ -0,0 +1,219 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XFlowerReplyView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/FlowerReply"; + } + } + + public override int layer + { + get + { + return 100; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool isHideTutorial + { + get + { + return true; + } + } + + public Action OnClosed; + + private XFlowerReplyDocument _Doc; + + private int _flowerID; + + private ulong _senderID; + + private string _senderName; + + private int _senderPower; + + private int _senderProfession; + + private int _senderVip; + + private int _sendCount; + + private Vector2 m_DragDistance = Vector2.zero; + + private bool m_CancelRecord = false; + + public void ShowView(int itemID, ulong senderID, string senderName, int senderPower, int senderProfession, int senderVip, int sendCount) + { + this._flowerID = itemID; + this._senderID = senderID; + this._senderName = senderName; + this._senderPower = senderPower; + this._senderProfession = senderProfession; + this._senderVip = senderVip; + this._sendCount = sendCount; + this.SetVisibleWithAnimation(true, null); + } + + protected override void Init() + { + this._Doc = XDocuments.GetSpecificDocument(XFlowerReplyDocument.uuID); + this._Doc.View = this; + } + + protected override void OnShow() + { + base.OnShow(); + this.UpdateReplyBg(); + base.uiBehaviour.m_SpeakPanel.gameObject.SetActive(false); + base.uiBehaviour.m_SenderName.SetText(this._senderName); + base.uiBehaviour.m_SenderCount.SetText(this._sendCount.ToString()); + base.uiBehaviour.m_FlowerName.SetText(XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(this._flowerID).ItemName, 0u)); + base.uiBehaviour.m_ThxContent.SetText(this._Doc.GetThxContent(this._flowerID, this._sendCount)); + } + + private void UpdateReplyBg() + { + int num = this._flowerID - XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_RED_ROSE); + for (int i = 0; i < base.uiBehaviour.m_ReplayBgList.Count; i++) + { + base.uiBehaviour.m_ReplayBgList[i].SetActive(i == num); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Voice.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnVoicePressButton)); + base.uiBehaviour.m_Voice.RegisterDragEventHandler(new ButtonDragEventHandler(this.OnVoiceDragButton)); + base.uiBehaviour.m_QuickThx.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReplyClicked)); + } + + private bool OnReplyClicked(IXUIButton button) + { + DlgBase.singleton.ChatFriendId = this._senderID; + ChatInfo chatInfo = new ChatInfo(); + chatInfo.mTime = DateTime.Now; + chatInfo.isSelfSender = true; + chatInfo.mReceiverName = this._senderName; + chatInfo.mReceiverId = this._senderID; + chatInfo.mReciverPowerPoint = (uint)this._senderPower; + chatInfo.mRecieverProfession = (uint)this._senderProfession; + chatInfo.mReceiverVip = (uint)this._senderVip; + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.AddChatinfo2FriendList(chatInfo); + DlgBase.singleton.SendChatContent(XStringDefineProxy.GetString("FLOWER_QUICK_THX"), ChatChannelType.Friends, true, null, false, 0UL, 0f, false, false); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("INVITATION_SENT_NOTIFICATION"), "fece00"); + this.CloseDlg(); + return true; + } + + private void CloseDlg() + { + this.SetVisibleWithAnimation(false, null); + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.OnClosed != null; + if (flag) + { + this.OnClosed(); + } + } + + private void OnCloseClicked(IXUISprite go) + { + this.CloseDlg(); + } + + private void OnVoicePressButton(IXUIButton button, bool state) + { + if (state) + { + this.m_DragDistance = Vector2.zero; + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.FLOWER_REPLY, null); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.FLOWER_REPLY, null); + } + } + else + { + DlgBase.singleton.ChatFriendId = this._senderID; + ChatInfo chatInfo = new ChatInfo(); + chatInfo.mTime = DateTime.Now; + chatInfo.isSelfSender = true; + chatInfo.mReceiverName = this._senderName; + chatInfo.mReceiverId = this._senderID; + chatInfo.mReciverPowerPoint = (uint)this._senderPower; + chatInfo.mRecieverProfession = (uint)this._senderProfession; + chatInfo.mReceiverVip = (uint)this._senderVip; + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.AddChatinfo2FriendList(chatInfo); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("INVITATION_SENT_NOTIFICATION"), "fece00"); + bool useApollo2 = XChatDocument.UseApollo; + if (useApollo2) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + bool flag = !this.m_CancelRecord; + if (flag) + { + this.CloseDlg(); + } + } + } + + private void OnVoiceDragButton(IXUIButton button, Vector2 delta) + { + this.m_DragDistance += delta; + bool flag = this.m_DragDistance.magnitude >= 100f; + if (flag) + { + this.m_CancelRecord = true; + } + else + { + this.m_CancelRecord = false; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyView.cs.meta new file mode 100644 index 00000000..33b6a4da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFlowerReplyView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a56d66b921d2ce54fbafa2ef4a9e3fc0 +timeCreated: 1611404286 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFpStrengthenView.cs b/Client/Assets/Scripts/XMainClient/UI/XFpStrengthenView.cs new file mode 100644 index 00000000..c0afae81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFpStrengthenView.cs @@ -0,0 +1,469 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XFpStrengthenView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/FpStrengthenDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XFPStrengthenDocument _doc = null; + + public XUIPool m_FpStrengthenPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_FpButtonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Dictionary m_checkBoxDic = new Dictionary(); + + private Dictionary> m_tabReddot = new Dictionary>(); + + private FunctionDef _curFunctionEnum = FunctionDef.ZHANLI; + + private FunctionDef _defFunctionEnum = FunctionDef.END; + + private bool _isFirst = true; + + private bool _isFromShow = false; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + this._doc.StrengthenView = this; + this.m_FpStrengthenPool.SetupPool(base.uiBehaviour.m_tabParentGo, base.uiBehaviour.m_tabParentGo.transform.Find("template").gameObject, XFPStrengthenBehaviour.FUNCTION_NUM, false); + Transform transform = base.uiBehaviour.transform.Find("Bg/Content/Panel"); + this.m_FpButtonPool.SetupPool(transform.gameObject, transform.Find("template").gameObject, 20u, false); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Scroll.SetPosition(0f); + this.InitLeftViews(); + this.FillTopContent(); + bool flag = !this.m_checkBoxDic.ContainsKey(this._curFunctionEnum); + if (flag) + { + this._curFunctionEnum = this._defFunctionEnum; + } + this._isFromShow = true; + this._doc.RequsetFightNum(); + this.m_checkBoxDic[this._curFunctionEnum].bChecked = true; + } + + protected override void OnHide() + { + base.OnHide(); + this.m_FpStrengthenPool.ReturnAll(false); + bool flag = this.m_checkBoxDic != null; + if (flag) + { + foreach (KeyValuePair keyValuePair in this.m_checkBoxDic) + { + bool flag2 = keyValuePair.Value != null; + if (flag2) + { + keyValuePair.Value.ForceSetFlag(false); + } + } + } + this.m_tabReddot.Clear(); + base.uiBehaviour.m_RateTex.SetTexturePath(""); + } + + protected override void OnUnload() + { + this.m_checkBoxDic.Clear(); + this._doc = null; + base.OnUnload(); + } + + public override void StackRefresh() + { + base.uiBehaviour.m_Scroll.SetPosition(0f); + this.FillTopContent(); + this._doc.RequsetFightNum(); + } + + public void ShowContent(FunctionDef fun = FunctionDef.ZHANLI) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Strong); + if (!flag) + { + this._curFunctionEnum = fun; + bool flag2 = !base.IsVisible(); + if (flag2) + { + this.SetVisible(true, true); + } + } + } + + public void RefreshUi(bool isFromMes) + { + bool flag = this._curFunctionEnum == FunctionDef.ZHANLI; + if (flag) + { + this.m_FpButtonPool.ReturnAll(false); + this.FillStrengthenContent(); + this.RefreshTabRedDot(); + bool flag2 = !this._isFromShow; + if (flag2) + { + this._doc.CancleNew(XFastEnumIntEqualityComparer.ToInt(this._curFunctionEnum)); + } + else + { + this._isFromShow = false; + if (isFromMes) + { + this._doc.CancleNew(XFastEnumIntEqualityComparer.ToInt(this._curFunctionEnum)); + } + } + } + } + + public void RefreshTabRedDot() + { + bool flag = this.m_tabReddot == null || this.m_tabReddot.Count == 0; + if (!flag) + { + foreach (KeyValuePair> keyValuePair in this.m_tabReddot) + { + bool flag2 = keyValuePair.Value != null; + if (flag2) + { + bool flag3 = keyValuePair.Key == FunctionDef.ZHANLI; + if (flag3) + { + bool tabNew = this._doc.GetTabNew(XFastEnumIntEqualityComparer.ToInt(keyValuePair.Key)); + bool flag4 = tabNew; + if (flag4) + { + keyValuePair.Value.Item1.SetActive(true); + keyValuePair.Value.Item2.SetActive(false); + } + else + { + keyValuePair.Value.Item1.SetActive(false); + keyValuePair.Value.Item2.SetActive(this._doc.NeedUp); + } + } + else + { + keyValuePair.Value.Item1.SetActive(this._doc.GetTabNew(XFastEnumIntEqualityComparer.ToInt(keyValuePair.Key))); + keyValuePair.Value.Item2.SetActive(false); + } + } + } + } + } + + private void InitLeftViews() + { + string @string = XStringDefineProxy.GetString("BQ_TITLE_STRING"); + string[] array = @string.Split(new char[] + { + '|' + }); + int num = 0; + this._defFunctionEnum = FunctionDef.END; + this.m_checkBoxDic.Clear(); + this.m_tabReddot.Clear(); + for (int i = 0; i < array.Length; i++) + { + bool flag = this.GetFuncNum(FunctionDef.ZHANLI + i) == 0; + if (!flag) + { + GameObject gameObject = this.m_FpStrengthenPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_tabParentGo.transform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(this.m_FpStrengthenPool.TplPos.x, this.m_FpStrengthenPool.TplPos.y - (float)(num * this.m_FpStrengthenPool.TplHeight), this.m_FpStrengthenPool.TplPos.z); + this.InitTabInfo(gameObject.transform.Find("Bg"), array[i], i); + num++; + } + } + IXUIScrollView ixuiscrollView = base.uiBehaviour.m_tabParentGo.GetComponent("XUIScrollView") as IXUIScrollView; + ixuiscrollView.ResetPosition(); + } + + private void InitTabInfo(Transform tra, string name, int index) + { + bool flag = tra == null; + if (!flag) + { + IXUILabel ixuilabel = tra.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(name); + ixuilabel = (tra.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(name); + IXUICheckBox ixuicheckBox = tra.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.SelectStrengthItem)); + ixuicheckBox.ID = (ulong)((long)(0 + index)); + this.m_checkBoxDic.Add((FunctionDef)ixuicheckBox.ID, ixuicheckBox); + GameObject gameObject = tra.Find("New").gameObject; + GameObject gameObject2 = tra.Find("Up").gameObject; + this.m_tabReddot.Add((FunctionDef)ixuicheckBox.ID, new XTuple(gameObject, gameObject2)); + bool flag2 = this._defFunctionEnum == FunctionDef.END; + if (flag2) + { + this._defFunctionEnum = (FunctionDef)ixuicheckBox.ID; + } + } + } + + private int GetFuncNum(FunctionDef def) + { + return this._doc.GetFuncNumByType(XFastEnumIntEqualityComparer.ToInt(def)); + } + + private void FillContentArea(FunctionDef def) + { + bool flag = def == FunctionDef.ZHANLI; + if (flag) + { + this.RefreshUi(false); + } + else + { + this.RefreshTabRedDot(); + this.m_FpButtonPool.ReturnAll(false); + this.FillOtherContent(def); + this._doc.CancleNew(XFastEnumIntEqualityComparer.ToInt(def)); + } + base.uiBehaviour.m_Scroll.ResetPosition(); + } + + private void FillTopContent() + { + uint num = (uint)XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + RecommendFightNum.RowData recommendFightData = this._doc.GetRecommendFightData(XSysDefine.XSys_None, -1); + uint num2 = 1u; + bool flag = recommendFightData == null && XSingleton.singleton.XPlayerData != null; + if (flag) + { + XSingleton.singleton.AddErrorLog("the data is not find,level = " + XSingleton.singleton.XPlayerData.Level, null, null, null, null, null); + } + else + { + num2 = recommendFightData.Total; + } + base.uiBehaviour.m_MyFightLab.SetText(num.ToString()); + base.uiBehaviour.m_RecommendFightLab.SetText(num2.ToString()); + base.uiBehaviour.m_MyLevelLab.SetText(XSingleton.singleton.XPlayerData.Level.ToString()); + int fightPercent = (int)(num / num2 * 100.0); + string totalFightRateDes = this._doc.GetTotalFightRateDes(fightPercent); + base.uiBehaviour.m_RateTex.SetTexturePath("atlas/UI/GameSystem/Activity/" + totalFightRateDes); + } + + private void FillStrengthenContent() + { + int num = 0; + int num2 = 0; + for (int i = 0; i < this._doc.StrengthAuxDataList.Count; i++) + { + StrengthAuxData strengthAuxData = this._doc.StrengthAuxDataList[i]; + bool flag = strengthAuxData == null || !strengthAuxData.IsShow; + if (!flag) + { + GameObject gameObject = this.m_FpButtonPool.FetchGameObject(true); + gameObject.transform.Find("Other").gameObject.SetActive(false); + gameObject.transform.localPosition = new Vector3(this.m_FpButtonPool.TplPos.x, this.m_FpButtonPool.TplPos.y - (float)(num * this.m_FpButtonPool.TplHeight), this.m_FpButtonPool.TplPos.z); + num++; + IXUIButton ixuibutton = gameObject.transform.Find("go").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.GoToStrengthSys)); + ixuibutton.ID = (ulong)((long)strengthAuxData.StrengthenData.BQSystem); + IXUISprite ixuisprite = gameObject.transform.Find("Sprite").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(strengthAuxData.StrengthenData.BQImageID); + bool tabNew = this._doc.GetTabNew(XFastEnumIntEqualityComparer.ToInt(this._curFunctionEnum)); + bool flag2 = tabNew; + if (flag2) + { + bool flag3 = strengthAuxData.StrengthenData != null; + if (flag3) + { + gameObject.transform.Find("New").gameObject.SetActive(this._doc.GetNewStatus(strengthAuxData.StrengthenData.BQID)); + } + else + { + gameObject.transform.Find("New").gameObject.SetActive(false); + } + gameObject.transform.Find("Up").gameObject.SetActive(false); + } + else + { + gameObject.transform.Find("New").gameObject.SetActive(false); + bool flag4 = strengthAuxData.FightPercent < (double)this._doc.ShowUpSprNum && num2 < 2; + if (flag4) + { + num2++; + gameObject.transform.Find("Up").gameObject.SetActive(true); + } + else + { + gameObject.transform.Find("Up").gameObject.SetActive(false); + } + } + gameObject = gameObject.transform.Find("Strengthen").gameObject; + gameObject.SetActive(true); + IXUILabel ixuilabel = gameObject.transform.Find("TittleLab").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(strengthAuxData.StrengthenData.BQTips); + double num3 = strengthAuxData.FightPercent; + ixuilabel = (gameObject.transform.Find("RateLab").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(this._doc.GetPartFightRateDes(num3)); + IXUISlider ixuislider = gameObject.transform.Find("Slider").GetComponent("XUISlider") as IXUISlider; + num3 = ((num3 > 100.0) ? 100.0 : num3); + num3 = ((num3 < 0.0) ? 0.0 : num3); + ixuislider.Value = (float)num3 / 100f; + } + } + } + + private void FillOtherContent(FunctionDef def) + { + List strengthByType = this._doc.GetStrengthByType(XFastEnumIntEqualityComparer.ToInt(def)); + for (int i = 0; i < strengthByType.Count; i++) + { + FpStrengthNew.RowData rowData = strengthByType[i]; + bool flag = rowData == null; + if (!flag) + { + GameObject gameObject = this.m_FpButtonPool.FetchGameObject(true); + gameObject.transform.Find("Strengthen").gameObject.SetActive(false); + gameObject.transform.localPosition = new Vector3(this.m_FpButtonPool.TplPos.x, this.m_FpButtonPool.TplPos.y - (float)(i * this.m_FpButtonPool.TplHeight), this.m_FpButtonPool.TplPos.z); + IXUIButton ixuibutton = gameObject.transform.Find("go").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.GoToStrengthSys)); + ixuibutton.ID = (ulong)((long)rowData.BQSystem); + IXUISprite ixuisprite = gameObject.transform.Find("Sprite").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(rowData.BQImageID); + gameObject.transform.Find("New").gameObject.SetActive(this._doc.GetNewStatus(rowData.BQID)); + gameObject.transform.Find("Up").gameObject.SetActive(false); + gameObject = gameObject.transform.Find("Other").gameObject; + gameObject.SetActive(true); + IXUILabel ixuilabel = gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.BQTips); + for (int j = 0; j < 5; j++) + { + gameObject.transform.Find(j.ToString()).gameObject.SetActive(j < rowData.StarNum); + } + } + } + } + + private bool OnCloseClicked(IXUIButton sp) + { + this.SetVisible(false, true); + return true; + } + + private bool SelectStrengthItem(IXUICheckBox iXUICheckBox) + { + FunctionDef functionDef = (FunctionDef)iXUICheckBox.ID; + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + bool flag = this._isFirst && functionDef == FunctionDef.ZHANLI; + if (flag) + { + this._isFirst = false; + return true; + } + this._curFunctionEnum = functionDef; + this.FillContentArea(functionDef); + } + return true; + } + + public bool GoToStrengthSys(IXUIButton sp) + { + XSysDefine xsysDefine = (XSysDefine)sp.ID; + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 - XSysDefine.XSys_Level_Normal > 1) + { + if (xsysDefine2 - XSysDefine.XSys_Item_Enchant > 1) + { + if (xsysDefine2 != XSysDefine.XSys_GuildDailyTask) + { + XSingleton.singleton.OpenSystem(xsysDefine, 0UL); + } + else + { + XSingleton.singleton.CloseAllUI(); + XSingleton.singleton.OpenSystem(xsysDefine, 0UL); + } + } + else + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Item_Equip, 0UL); + } + } + else + { + XLevelDocument specificDocument = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + bool flag = xsysDefine == XSysDefine.XSys_Level_Normal; + if (flag) + { + specificDocument.AutoGoBattle(0, 0, 0u); + } + else + { + specificDocument.AutoGoBattle(0, 0, 1u); + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFpStrengthenView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFpStrengthenView.cs.meta new file mode 100644 index 00000000..a580ee80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFpStrengthenView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30cf03ac012bfdc4c840717e06adf35b +timeCreated: 1611403523 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainBehavior.cs new file mode 100644 index 00000000..bc67319a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainBehavior.cs @@ -0,0 +1,90 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XFreeTeamLeagueMainBehavior : DlgBehaviourBase + { + public IXUIButton RankBtn; + + public IXUIButton VersusRecordsBtn; + + public IXUIButton FinalResultBtn; + + public IXUIButton CreateTeamBtn; + + public IXUIButton TeamMatchBtn; + + public IXUIButton HonorShopBtn; + + public IXUIButton RankRewardsBtn; + + public IXUIButton TeamQuitBtn; + + public IXUIButton CloseBtn; + + public IXUIButton HelpBtn; + + public IXUILabel TeamNameLabel; + + public IXUILabel TeamScoreLabel; + + public IXUILabel PartInTimesLabel; + + public IXUILabel WinPercentageLabel; + + public IXUILabel ActivityRulesLabel; + + public IXUISprite RankListMask; + + public IXUIWrapContent rankWrapContent; + + public IXUIScrollView rankScrollView; + + public Transform TeamInfoRoot; + + public Transform RankListRoot; + + public Transform RewardsRoot; + + public IXUILabel MyRankLabel; + + public IXUILabel RewardsLeftTimeLabel; + + public IXUILabel MainViewRankLabel; + + public XUIPool MemberUIPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.HonorShopBtn = (base.transform.Find("Bg/TitleBarFrame/BtnShop").GetComponent("XUIButton") as IXUIButton); + this.RankBtn = (base.transform.Find("Bg/TitleBarFrame/BtnRank").GetComponent("XUIButton") as IXUIButton); + this.VersusRecordsBtn = (base.transform.Find("Bg/TitleBarFrame/BtnChallengeRecord").GetComponent("XUIButton") as IXUIButton); + this.FinalResultBtn = (base.transform.Find("Bg/TitleBarFrame/BtnFinalResult").GetComponent("XUIButton") as IXUIButton); + this.RankRewardsBtn = (base.transform.Find("Bg/TitleBarFrame/BtnRankReward").GetComponent("XUIButton") as IXUIButton); + this.TeamMatchBtn = (base.transform.Find("Bg/BeginMatch").GetComponent("XUIButton") as IXUIButton); + this.CreateTeamBtn = (base.transform.Find("Bg/BtnOrganize").GetComponent("XUIButton") as IXUIButton); + this.TeamQuitBtn = (base.transform.Find("Bg/BtnQuit").GetComponent("XUIButton") as IXUIButton); + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.HelpBtn = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.TeamNameLabel = (base.transform.Find("Bg/TeamInfo/Name/Content").GetComponent("XUILabel") as IXUILabel); + this.TeamScoreLabel = (base.transform.Find("Bg/TeamInfo/Score/Content").GetComponent("XUILabel") as IXUILabel); + this.PartInTimesLabel = (base.transform.Find("Bg/TeamInfo/Frequency/Content").GetComponent("XUILabel") as IXUILabel); + this.WinPercentageLabel = (base.transform.Find("Bg/TeamInfo/Rating/Content").GetComponent("XUILabel") as IXUILabel); + this.ActivityRulesLabel = (base.transform.Find("Bg/Intro/rules").GetComponent("XUILabel") as IXUILabel); + this.rankScrollView = (base.transform.Find("Bg/RankList/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.rankWrapContent = (base.transform.Find("Bg/RankList/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.TeamInfoRoot = base.transform.Find("Bg/TeamInfo"); + this.RankListRoot = base.transform.Find("Bg/RankList"); + this.RankListMask = (this.RankListRoot.Find("Mask").GetComponent("XUISprite") as IXUISprite); + this.RewardsRoot = base.transform.Find("Bg/Rewards/Root"); + this.MainViewRankLabel = (base.transform.Find("Bg/TeamInfo/Rank/Content").GetComponent("XUILabel") as IXUILabel); + this.MyRankLabel = (this.RankListRoot.Find("BestRank/Text").GetComponent("XUILabel") as IXUILabel); + this.RewardsLeftTimeLabel = (this.RankListRoot.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + this.MemberUIPool.SetupPool(base.transform.Find("Bg/TeamList").gameObject, base.transform.Find("Bg/TeamList/MemberTpl").gameObject, 4u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainBehavior.cs.meta new file mode 100644 index 00000000..d151fb40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c09a28a3a4ef1c54681b0e19ca008565 +timeCreated: 1611404487 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainView.cs b/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainView.cs new file mode 100644 index 00000000..511e80aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainView.cs @@ -0,0 +1,465 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XFreeTeamLeagueMainView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TeamLeague/TeamLeagueMain"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XDummy[] _Avatars; + + protected override void Init() + { + this.InitProperties(); + this.InitTopRewards(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + XFreeTeamVersusLeagueDocument.Doc.SendGetLeagueBattleInfo(); + } + + protected override void OnShow() + { + base.OnShow(); + XFreeTeamVersusLeagueDocument.Doc.SendGetLeagueBattleInfo(); + this.InitRankRewards(); + base.uiBehaviour.RankListRoot.gameObject.SetActive(false); + } + + protected override void OnHide() + { + this.ClearState(); + base.OnHide(); + } + + public void RefreshUI() + { + this.UpdateActivityRules(); + this.UpdateTeamDetailInfo(); + this.UpdateRoleAvartars(); + this.UpdateActivityRewards(); + this.UpdateFinalResultFlag(); + this.RefreshMyRank(); + } + + public void ClearState() + { + base.uiBehaviour.rankWrapContent.SetContentCount(0, false); + base.uiBehaviour.MemberUIPool.ReturnAll(false); + XSingleton.singleton.EnableMainDummy(false, null); + base.Return3DAvatarPool(); + this.ClearAvatarStates(); + } + + public void UpdateTeamDetailInfo() + { + XFreeTeamVersusLeagueDocument doc = XFreeTeamVersusLeagueDocument.Doc; + base.uiBehaviour.CreateTeamBtn.gameObject.SetActive(false); + base.uiBehaviour.TeamMatchBtn.gameObject.SetActive(doc.TeamLeagueID > 0UL); + base.uiBehaviour.TeamQuitBtn.gameObject.SetActive(doc.TeamLeagueID > 0UL); + base.uiBehaviour.TeamInfoRoot.gameObject.SetActive(true); + bool flag = doc.TeamLeagueID > 0UL; + if (flag) + { + base.uiBehaviour.PartInTimesLabel.SetText(doc.BattledTimes.ToString()); + base.uiBehaviour.TeamNameLabel.SetText(doc.LeagueTeamName); + base.uiBehaviour.TeamScoreLabel.SetText(doc.BattleScore.ToString()); + base.uiBehaviour.WinPercentageLabel.SetText((int)(doc.BattleWinRate * 100f) + "%"); + } + else + { + base.uiBehaviour.CreateTeamBtn.gameObject.SetActive(true); + base.uiBehaviour.TeamInfoRoot.gameObject.SetActive(false); + } + } + + public void UpdateRoleAvartars() + { + base.Return3DAvatarPool(); + base.Alloc3DAvatarPool("TeamLeagueMain"); + bool flag = XFreeTeamVersusLeagueDocument.Doc.TeamLeagueID > 0UL; + if (flag) + { + base.uiBehaviour.MemberUIPool.ReturnAll(false); + int myTeamMemberCount = XFreeTeamVersusLeagueDocument.Doc.GetMyTeamMemberCount(); + for (int i = 0; i < myTeamMemberCount; i++) + { + LeagueTeamDetailInfo myTeamMemberInfoByIndex = XFreeTeamVersusLeagueDocument.Doc.GetMyTeamMemberInfoByIndex(i); + GameObject gameObject = base.uiBehaviour.MemberUIPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)(base.uiBehaviour.MemberUIPool.TplWidth * i), 0f, 0f); + this.UpdateTeamMemberInfo(gameObject, myTeamMemberInfoByIndex, i); + } + } + } + + public void RefreshMyRank() + { + uint myTeamRank = XFreeTeamVersusLeagueDocument.Doc.MyTeamRank; + bool flag = myTeamRank == XRankDocument.INVALID_RANK; + if (flag) + { + base.uiBehaviour.MainViewRankLabel.SetText(XSingleton.singleton.GetString("ARENA_NO_RANK")); + } + else + { + base.uiBehaviour.MainViewRankLabel.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1"), myTeamRank + 1u)); + } + bool activeSelf = base.uiBehaviour.RankListRoot.gameObject.activeSelf; + if (activeSelf) + { + bool flag2 = myTeamRank == XRankDocument.INVALID_RANK; + if (flag2) + { + base.uiBehaviour.MyRankLabel.SetText(XSingleton.singleton.GetString("ARENA_NO_RANK")); + } + else + { + base.uiBehaviour.MyRankLabel.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1"), myTeamRank + 1u)); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool activeSelf = base.uiBehaviour.RankListRoot.gameObject.activeSelf; + if (activeSelf) + { + this.SetRewardLeftTime(); + } + } + + private void SetRewardLeftTime() + { + int rewardsLeftTime = XFreeTeamVersusLeagueDocument.Doc.GetRewardsLeftTime(); + bool flag = rewardsLeftTime >= 1; + if (flag) + { + base.uiBehaviour.RewardsLeftTimeLabel.gameObject.SetActive(true); + bool flag2 = rewardsLeftTime >= 43200; + if (flag2) + { + base.uiBehaviour.RewardsLeftTimeLabel.SetText(XSingleton.singleton.TimeDuarationFormatString(rewardsLeftTime, 4)); + } + else + { + base.uiBehaviour.RewardsLeftTimeLabel.SetText(XSingleton.singleton.TimeDuarationFormatString(rewardsLeftTime, 5)); + } + } + else + { + base.uiBehaviour.RewardsLeftTimeLabel.gameObject.SetActive(false); + } + } + + private void InitProperties() + { + this._Avatars = new XDummy[4]; + base.uiBehaviour.HonorShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopBtnClicked)); + base.uiBehaviour.RankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankBtnClicked)); + base.uiBehaviour.RankRewardsBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankRewardsBtnClicked)); + base.uiBehaviour.VersusRecordsBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnVersusRecordsBtnClicked)); + base.uiBehaviour.FinalResultBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFinalResultBtnClicked)); + base.uiBehaviour.CreateTeamBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCreateOrMatchClicked)); + base.uiBehaviour.TeamMatchBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCreateOrMatchClicked)); + base.uiBehaviour.TeamQuitBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQuitTeamLeagueClicked)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + base.uiBehaviour.HelpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClicked)); + base.uiBehaviour.RankListRoot.gameObject.SetActive(true); + base.uiBehaviour.rankWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UpdateRankRewardsItem)); + base.uiBehaviour.RankListMask.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseRankList)); + } + + private void UpdateRankRewardsItem(Transform itemTransform, int index) + { + LeagueRankReward leagueRankRewardTable = XFreeTeamVersusLeagueDocument.LeagueRankRewardTable; + bool flag = index < leagueRankRewardTable.Table.Length; + if (flag) + { + LeagueRankReward.RowData rowData = leagueRankRewardTable.Table[index]; + IXUISprite ixuisprite = itemTransform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = itemTransform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + bool flag2 = rowData.rank[0] == rowData.rank[1] && rowData.rank[0] <= 3u; + if (flag2) + { + ixuilabel.gameObject.SetActive(false); + ixuisprite.gameObject.SetActive(true); + ixuisprite.SetSprite(ixuisprite.spriteName.Substring(0, ixuisprite.spriteName.Length - 1) + rowData.rank[0]); + } + else + { + ixuilabel.gameObject.SetActive(true); + ixuisprite.gameObject.SetActive(false); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("LeagueTeamNormalRank"), rowData.rank[0], rowData.rank[1])); + } + Transform transform = itemTransform.Find("Grid"); + int childCount = transform.childCount; + int count = rowData.reward.Count; + int num = Mathf.Min(childCount, count); + int i; + for (i = 0; i < num; i++) + { + Transform child = transform.GetChild(i); + child.gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(child.gameObject, (int)rowData.reward[i, 0], (int)rowData.reward[i, 1], false); + IXUISprite ixuisprite2 = child.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)rowData.reward[i, 0]; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + while (i < childCount) + { + Transform child2 = transform.GetChild(i); + child2.gameObject.SetActive(false); + i++; + } + } + } + + private bool OnFinalResultBtnClicked(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool OnVersusRecordsBtnClicked(IXUIButton button) + { + bool flag = XFreeTeamVersusLeagueDocument.Doc.TeamLeagueID > 0UL; + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CreateLeagueTeamFirst"), "fece00"); + } + return true; + } + + private bool OnRankBtnClicked(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XRankDocument specificDocument = XDocuments.GetSpecificDocument(XRankDocument.uuID); + specificDocument.ReqRankList(XRankType.LeagueTeamRank); + return true; + } + + private bool OnRankRewardsBtnClicked(IXUIButton button) + { + base.uiBehaviour.RankListRoot.gameObject.SetActive(true); + this.RefreshMyRank(); + return true; + } + + private void OnCloseRankList(IXUISprite uiSprite) + { + base.uiBehaviour.RankListRoot.gameObject.SetActive(false); + } + + private void UpdateActivityRewards() + { + } + + private void UpdateFinalResultFlag() + { + IXUILabel ixuilabel = base.uiBehaviour.FinalResultBtn.gameObject.transform.Find("Type").GetComponent("XUILabel") as IXUILabel; + string text = (XFreeTeamVersusLeagueDocument.Doc.EliStateType == LeagueEliType.LeagueEliType_Cross) ? XSingleton.singleton.GetString("LeagueCrossSeverFight") : XSingleton.singleton.GetString("LeagueEliminationResult"); + ixuilabel.SetText(text); + base.uiBehaviour.FinalResultBtn.gameObject.SetActive(XFreeTeamVersusLeagueDocument.Doc.EliStateType != LeagueEliType.LeagueEliType_None); + } + + private void ClearAvatarStates() + { + for (int i = 0; i < 4; i++) + { + bool flag = this._Avatars[i] == null; + if (!flag) + { + this._Avatars[i] = null; + } + } + } + + private void UpdateTeamMemberInfo(GameObject obj, LeagueTeamDetailInfo info, int index) + { + Transform transform = obj.transform.Find("Info"); + IXUILabel ixuilabel = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(info.roleBrief.name); + IXUILabel ixuilabel2 = transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(info.roleBrief.level.ToString()); + IXUISprite ixuisprite = transform.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + int profID = XFastEnumIntEqualityComparer.ToInt(info.roleBrief.profession); + ixuisprite.spriteName = XSingleton.singleton.GetProfIcon(profID); + Transform transform2 = transform.Find("Snapshot"); + IUIDummy snapShot = transform2.GetComponent("UIDummy") as IUIDummy; + bool flag = info.roleBrief.roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + XSingleton.singleton.EnableMainDummy(true, snapShot); + XSingleton.singleton.ResetMainAnimation(); + } + else + { + XDummy xdummy = XSingleton.singleton.FindCreateCommonRoleDummy(this.m_dummPool, info.roleBrief.roleid, (uint)XFastEnumIntEqualityComparer.ToInt(info.roleBrief.profession), info.roleBrief.outlook, snapShot, index); + this._Avatars[index] = xdummy; + } + } + + private bool OnCreateOrMatchClicked(IXUIButton btn) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument2.GetExpeditionList(TeamLevelType.TeamLevelTeamLeague); + bool flag = expeditionList.Count > 0; + if (flag) + { + specificDocument.SetAndMatch(expeditionList[0].DNExpeditionID); + } + return true; + } + + private bool OnQuitTeamLeagueClicked(IXUIButton btn) + { + string @string = XStringDefineProxy.GetString("TEAM_LEAGUE_QUIT_TIP"); + string string2 = XStringDefineProxy.GetString("COMMON_OK"); + string string3 = XStringDefineProxy.GetString("COMMON_CANCEL"); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnEnsureQuitTeamLeague), null); + return true; + } + + private bool OnEnsureQuitTeamLeague(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument.ReqLeaveTeamLeague(); + return true; + } + + private bool OnCloseBtnClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnHelpBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_TeamLeague); + return true; + } + + private bool OnShopBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Honer, 0UL); + return true; + } + + private void InitRankRewards() + { + base.uiBehaviour.RankListRoot.gameObject.SetActive(true); + LeagueRankReward leagueRankRewardTable = XFreeTeamVersusLeagueDocument.LeagueRankRewardTable; + base.uiBehaviour.rankWrapContent.SetContentCount(leagueRankRewardTable.Table.Length, false); + base.uiBehaviour.rankScrollView.ResetPosition(); + } + + private void UpdateActivityRules() + { + base.uiBehaviour.ActivityRulesLabel.SetText(XSingleton.singleton.ReplaceReturn(XFreeTeamVersusLeagueDocument.Doc.GetOpenInstructionString())); + } + + private void InitTopRewards() + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("LeagueTeamRewards", true); + int i = 0; + int num = Mathf.Min(base.uiBehaviour.RewardsRoot.childCount, (int)sequenceList.Count); + while (i < num) + { + GameObject gameObject = base.uiBehaviour.RewardsRoot.GetChild(i).gameObject; + gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, sequenceList[i, 0], sequenceList[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)sequenceList[i, 0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + i++; + } + while (i < base.uiBehaviour.RewardsRoot.childCount) + { + base.uiBehaviour.RewardsRoot.GetChild(i).gameObject.SetActive(false); + i++; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainView.cs.meta new file mode 100644 index 00000000..af4744fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFreeTeamLeagueMainView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37871ea0414458642832af5d44e46c96 +timeCreated: 1611403566 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFriendsRankHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XFriendsRankHandler.cs new file mode 100644 index 00000000..301b94b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFriendsRankHandler.cs @@ -0,0 +1,491 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XFriendsRankHandler : DlgHandlerBase + { + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public Transform m_MyRank; + + public Transform m_NoFriend; + + public IXUIButton m_PkHelpBtn; + + public IXUILabel m_PkHelpLabel; + + private Dictionary rankItemDict = new Dictionary(); + + public Dictionary _WrapTextureList = new Dictionary(); + + private string m_noticeFriendOpenID; + + protected override void Init() + { + base.Init(); + this.m_ScrollView = (base.PanelObject.transform.Find("FriendsList").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("FriendsList/Friendname").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_MyRank = base.PanelObject.transform.Find("Myname/Tpl"); + this.m_MyRank.gameObject.SetActive(false); + this.m_NoFriend = base.PanelObject.transform.Find("NoFriend"); + this.m_PkHelpBtn = (base.PanelObject.transform.Find("T3/Help").GetComponent("XUIButton") as IXUIButton); + this.m_PkHelpLabel = (base.PanelObject.transform.Find("T3/Content").GetComponent("XUILabel") as IXUILabel); + this.m_PkHelpLabel.gameObject.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._RankWrapListUpdated)); + this.m_PkHelpBtn.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnHelpBtnPress)); + } + + private void OnHelpBtnPress(IXUIButton btn, bool state) + { + bool flag = this.m_PkHelpLabel.gameObject.activeInHierarchy != state; + if (flag) + { + this.m_PkHelpLabel.gameObject.SetActive(state); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.m_WrapContent.InitContent(); + this.RefreshRankList(); + this.m_PkHelpLabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("FRIEND_PK"))); + this.m_PkHelpBtn.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends_Pk)); + } + + protected override void OnHide() + { + base.OnHide(); + this.rankItemDict.Clear(); + this.ClearPreTabTextures(); + } + + public void ClearPreTabTextures() + { + foreach (KeyValuePair keyValuePair in this._WrapTextureList) + { + IXUITexture value = keyValuePair.Value; + value.ID = 0UL; + value.SetRuntimeTex(null, true); + } + this._WrapTextureList.Clear(); + } + + public void RefreshRankList() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.rankItemDict.Clear(); + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + bool flag2 = specificDocument.PlatFriendsRankList != null; + if (flag2) + { + XSingleton.singleton.AddLog("FriendsRank RefreshRankList doc.PlatFriendsRankList != null", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_WrapContent.SetContentCount(specificDocument.PlatFriendsRankList.Count, false); + } + bool flag3 = specificDocument.SelfPlatRankInfo != null; + if (flag3) + { + XSingleton.singleton.AddLog("FriendsRank RefreshRankList doc.SelfPlatRankInfo != null", null, null, null, null, null, XDebugColor.XDebug_None); + this.SetMyRankInfo(specificDocument.SelfPlatRankInfo); + } + this.m_MyRank.gameObject.SetActive(specificDocument.SelfPlatRankInfo != null); + this.m_NoFriend.gameObject.SetActive(specificDocument.PlatFriendsRankList == null || specificDocument.PlatFriendsRankList.Count == 0); + this.m_ScrollView.ResetPosition(); + } + } + + private string SimplifyString(string s) + { + s = this.RemoveEmoji(s); + int num = 8; + bool flag = s.Length > num; + string result; + if (flag) + { + int num2 = s.Length - num; + string text = s.Substring(0, num / 2); + text = XSingleton.singleton.StringCombine(text, "...", s.Substring(num / 2 + num2)); + result = text; + } + else + { + result = s; + } + return result; + } + + private string RemoveEmoji(string s) + { + char[] array = s.ToCharArray(); + List list = new List(); + int i = 0; + while (i < array.Length - 1) + { + char c = array[i]; + int num = (int)c; + bool flag = num == 55356; + if (flag) + { + char c2 = array[i + 1]; + i += 2; + } + else + { + bool flag2 = num == 55357; + if (flag2) + { + char c2 = array[i + 1]; + i += 2; + } + else + { + list.Add(array[i]); + i++; + } + } + } + bool flag3 = i == array.Length - 1; + if (flag3) + { + list.Add(array[i]); + } + return new string(list.ToArray()); + } + + private void SetBaseRankInfo(Transform item, PlatFriendRankInfo2Client rankInfo, int index) + { + bool flag = rankInfo == null; + if (!flag) + { + this.SetRank(item.gameObject, rankInfo.rank - 1u); + IXUILabel ixuilabel = item.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this.SimplifyString(rankInfo.platfriendBaseInfo.nickname)); + IXUILabel ixuilabel2 = item.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format("Lv.{0}", rankInfo.level)); + IXUILabel ixuilabel3 = item.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(rankInfo.maxAbility.ToString()); + IXUILabel ixuilabel4 = item.Find("vip").GetComponent("XUILabel") as IXUILabel; + ixuilabel4.SetText(rankInfo.vipLevel.ToString()); + ixuilabel4.SetVisible(false); + IXUISprite ixuisprite = item.Find("headboard").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2(rankInfo.profession)); + IXUISprite spr = item.Find("headboard/AvatarFrame").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.ParseHeadIcon((rankInfo.pre == null) ? new List() : rankInfo.pre.setid, spr); + IXUITexture ixuitexture = item.Find("platHead").GetComponent("XUITexture") as IXUITexture; + string bigpic = rankInfo.platfriendBaseInfo.bigpic; + XSingleton.singleton.Load((bigpic != "") ? bigpic : string.Empty, ixuitexture, DlgBase.singleton.uiBehaviour); + IXUISprite ixuisprite2 = item.Find("onling").GetComponent("XUISprite") as IXUISprite; + string sprite = rankInfo.isOnline ? "l_online_01" : "l_online_02"; + ixuisprite2.SetSprite(sprite); + this._WrapTextureList[item] = ixuitexture; + } + } + + private void SetMyRankInfo(PlatFriendRankInfo2Client rankInfo) + { + this.SetBaseRankInfo(this.m_MyRank, rankInfo, 99999); + GameObject gameObject = this.m_MyRank.Find("OutOfRange").gameObject; + gameObject.SetActive(rankInfo.rank == XFlowerRankDocument.INVALID_RANK); + GameObject gameObject2 = this.m_MyRank.Find("platHead/QQVIP").gameObject; + GameObject gameObject3 = this.m_MyRank.Find("platHead/QQSVIP").gameObject; + XPlatformAbilityDocument specificDocument = XDocuments.GetSpecificDocument(XPlatformAbilityDocument.uuID); + bool flag = specificDocument.QQVipInfo == null; + if (flag) + { + gameObject2.SetActive(false); + gameObject3.SetActive(false); + } + else + { + gameObject3.SetActive(specificDocument.QQVipInfo.is_svip); + gameObject2.SetActive(!specificDocument.QQVipInfo.is_svip && specificDocument.QQVipInfo.is_vip); + } + IXUISprite ixuisprite = this.m_MyRank.Find("wxLaunch").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickWXGameCenterLaunchIcon)); + ixuisprite.SetVisible(XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_WX && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + IXUISprite ixuisprite2 = this.m_MyRank.Find("qqLaunch").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickQQGameCenterLaunchIcon)); + ixuisprite2.SetVisible(XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_QQ && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + } + + private void _RankWrapListUpdated(Transform item, int index) + { + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + bool flag = index >= specificDocument.PlatFriendsRankList.Count; + if (!flag) + { + PlatFriendRankInfo2Client platFriendRankInfo2Client = specificDocument.PlatFriendsRankList[index]; + bool flag2 = platFriendRankInfo2Client == null; + if (!flag2) + { + this.rankItemDict[item] = platFriendRankInfo2Client.platfriendBaseInfo.openid; + this.SetBaseRankInfo(item, platFriendRankInfo2Client, index); + IXUIButton ixuibutton = item.Find("BtnSend").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = item.Find("BtnSend/t").GetComponent("XUILabel") as IXUILabel; + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSendBtnClicked)); + ixuibutton.SetEnable(!platFriendRankInfo2Client.hasGiveGift, false); + ixuilabel.SetEnabled(!platFriendRankInfo2Client.hasGiveGift); + ixuibutton.SetVisible(platFriendRankInfo2Client.platfriendBaseInfo.openid != XSingleton.singleton.OpenID); + IXUIButton ixuibutton2 = item.Find("BtnPk").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = (ulong)((long)index); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSendPkBtnClicked)); + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends_Pk); + if (flag3) + { + ixuibutton2.SetVisible(platFriendRankInfo2Client.platfriendBaseInfo.openid != XSingleton.singleton.OpenID); + } + else + { + ixuibutton2.SetVisible(false); + } + GameObject gameObject = item.Find("platHead/QQVIP").gameObject; + GameObject gameObject2 = item.Find("platHead/QQSVIP").gameObject; + QQVipType qqvipType; + bool flag4 = specificDocument.FriendsVipInfo.TryGetValue(platFriendRankInfo2Client.platfriendBaseInfo.openid, out qqvipType); + if (flag4) + { + gameObject2.SetActive(qqvipType == QQVipType.SVip); + gameObject.SetActive(qqvipType == QQVipType.Vip); + } + else + { + gameObject2.SetActive(false); + gameObject.SetActive(false); + } + IXUISprite ixuisprite = item.Find("wxLaunch").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetVisible(platFriendRankInfo2Client.startType == 3); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickWXGameCenterLaunchIcon)); + IXUISprite ixuisprite2 = item.Find("qqLaunch").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetVisible(platFriendRankInfo2Client.startType == 2); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickQQGameCenterLaunchIcon)); + } + } + } + + private void OnClickWXGameCenterLaunchIcon(IXUISprite btn) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FriendRankWXGameCenterTip"), "fece00"); + } + + private void OnClickQQGameCenterLaunchIcon(IXUISprite btn) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FriendRankQQGameCenterTip"), "fece00"); + } + + private void SetRank(GameObject go, uint rankIndex) + { + IXUILabel ixuilabel = go.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = rankIndex == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + string[] array = new string[] + { + "N1", + "N2", + "N3" + }; + bool flag2 = rankIndex < 3u; + if (flag2) + { + ixuisprite.SetSprite(array[(int)rankIndex]); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1u)); + ixuilabel.SetVisible(true); + } + } + } + + private bool OnSendBtnClicked(IXUIButton btn) + { + int num = (int)btn.ID; + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + bool flag = num >= specificDocument.PlatFriendsRankList.Count; + bool result; + if (flag) + { + result = false; + } + else + { + PlatFriendRankInfo2Client platFriendRankInfo2Client = specificDocument.PlatFriendsRankList[num]; + bool flag2 = platFriendRankInfo2Client == null; + if (flag2) + { + result = false; + } + else + { + specificDocument.SendGift2PlatFriend(platFriendRankInfo2Client.platfriendBaseInfo.openid); + result = true; + } + } + return result; + } + + private bool OnSendPkBtnClicked(IXUIButton btn) + { + int num = (int)btn.ID; + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + bool flag = num >= specificDocument.PlatFriendsRankList.Count; + bool result; + if (flag) + { + result = false; + } + else + { + PlatFriendRankInfo2Client platFriendRankInfo2Client = specificDocument.PlatFriendsRankList[num]; + bool flag2 = platFriendRankInfo2Client == null; + if (flag2) + { + result = false; + } + else + { + specificDocument.SendPk2PlatFriend(platFriendRankInfo2Client.platfriendBaseInfo.openid); + result = true; + } + } + return result; + } + + private void ShareToQQFriend(string openID) + { + Dictionary dictionary = new Dictionary(); + dictionary["act"] = 1; + dictionary["openId"] = openID; + dictionary["title"] = XSingleton.singleton.GetValue("PlatFriendShareTitle"); + dictionary["summary"] = XSingleton.singleton.GetValue("PlatFriendShareSummary"); + dictionary["targetUrl"] = XSingleton.singleton.GetValue("PlatFriendShareTargetUrlQQ"); + dictionary["imageUrl"] = XSingleton.singleton.GetValue("PlatFriendShareImageUrlQQ"); + dictionary["previewText"] = XSingleton.singleton.GetValue("PlatFriendSharePreviewTextQQ"); + dictionary["gameTag"] = "MSG_HEART_SEND"; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("ShareToQQFriend paramStr = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("share_send_to_friend_qq", text); + } + + private void ShareToWXFriend(string openID) + { + Dictionary dictionary = new Dictionary(); + dictionary["openId"] = openID; + dictionary["title"] = XSingleton.singleton.GetValue("PlatFriendShareTitle"); + dictionary["description"] = XSingleton.singleton.GetValue("PlatFriendShareSummary"); + dictionary["thumbMediaId"] = ""; + dictionary["mediaTagName"] = "MSG_HEART_SEND"; + dictionary["messageExt"] = "ShareWithWeixin"; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("ShareToWXFriend paramStr = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("share_send_to_friend_wx", text); + } + + public void OnRefreshSendGiftState(PlatFriendRankInfo2Client info) + { + bool flag = !base.IsVisible(); + if (!flag) + { + foreach (KeyValuePair keyValuePair in this.rankItemDict) + { + bool flag2 = keyValuePair.Value == info.platfriendBaseInfo.openid; + if (flag2) + { + IXUIButton ixuibutton = keyValuePair.Key.Find("BtnSend").GetComponent("XUIButton") as IXUIButton; + ixuibutton.SetEnable(!info.hasGiveGift, false); + break; + } + } + } + } + + public void NoticeFriend(string openID) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.m_noticeFriendOpenID = openID; + string @string = XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_TIP"); + string string2 = XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_OK"); + string string3 = XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_CANCEL"); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.CheckNoticeFriend), null); + } + } + + private bool CheckNoticeFriend(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XAuthorizationChannel channel = XSingleton.singleton.Channel; + string @string = XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_TIP"); + bool flag = channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + @string = XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_TIP_QQ"); + } + else + { + bool flag2 = channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag2) + { + @string = XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_TIP_WX"); + } + } + string string2 = XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_OK2"); + string string3 = XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_CANCEL2"); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnEnsureNoticeFriend), null); + return true; + } + + private bool OnEnsureNoticeFriend(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + this.ShareToQQFriend(this.m_noticeFriendOpenID); + } + else + { + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag2) + { + this.ShareToWXFriend(this.m_noticeFriendOpenID); + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFriendsRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFriendsRankHandler.cs.meta new file mode 100644 index 00000000..531aa27e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFriendsRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7133bd1f86d2a1b4d8ba69343f9739f0 +timeCreated: 1611403933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFriendsViewAddBlockHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewAddBlockHandler.cs new file mode 100644 index 00000000..cfd78460 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewAddBlockHandler.cs @@ -0,0 +1,71 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XFriendsViewAddBlockHandler : DlgHandlerBase + { + private IXUIInput lbName; + + private IXUIButton btnAdd; + + private IXUITweenTool mTweenTool; + + protected override void Init() + { + base.Init(); + this.mTweenTool = (base.PanelObject.GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform = base.PanelObject.transform.Find("Bg"); + this.lbName = (transform.Find("textinput").GetComponent("XUIInput") as IXUIInput); + this.btnAdd = (transform.Find("btnAdd").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUISprite ixuisprite = base.PanelObject.transform.Find("BgBlack").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClose)); + this.btnAdd.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAddBlockFriend)); + } + + protected override void OnShow() + { + base.OnShow(); + this.lbName.SetText(string.Empty); + } + + protected override void OnHide() + { + } + + private void OnHideTweenFinished(IXUITweenTool tween) + { + } + + private void OnClose(IXUISprite sprClose) + { + base.SetVisible(false); + } + + private bool OnClickAddBlockFriend(IXUIButton sp) + { + string text = this.lbName.GetText(); + bool flag = (text + string.Empty).Length <= 0; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_NAME_CANNOT_NULL"), "fece00"); + result = false; + } + else + { + DlgBase.singleton.AddBlockFriend(text); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFriendsViewAddBlockHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewAddBlockHandler.cs.meta new file mode 100644 index 00000000..617b46d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewAddBlockHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fb9bc7111c54e846b143ab987898593 +timeCreated: 1611403212 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFriendsViewHintHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewHintHandler.cs new file mode 100644 index 00000000..7c78e252 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewHintHandler.cs @@ -0,0 +1,56 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XFriendsViewHintHandler : DlgHandlerBase + { + private IXUILabel lbHintText1; + + private IXUILabel lbHintText2; + + private IXUITweenTool mTweenTool; + + protected override void Init() + { + base.Init(); + this.mTweenTool = (base.PanelObject.GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform = base.PanelObject.transform.Find("Bg"); + this.lbHintText1 = (transform.Find("T1").GetComponent("XUILabel") as IXUILabel); + this.lbHintText2 = (transform.Find("T2").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUISprite ixuisprite = base.PanelObject.transform.Find("BgBlack").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClose)); + } + + protected override void OnShow() + { + base.OnShow(); + this.lbHintText1.SetText(XStringDefineProxy.GetString("FRIEND_HINT_TIP1")); + this.lbHintText2.SetText(XStringDefineProxy.GetString("FRIEND_HINT_TIP2", new object[] + { + XSingleton.singleton.SendGiftMinDegree + })); + } + + protected override void OnHide() + { + base.OnHide(); + } + + private void OnHideTweenFinished(IXUITweenTool tween) + { + } + + private void OnClose(IXUISprite sprClose) + { + base.SetVisible(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFriendsViewHintHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewHintHandler.cs.meta new file mode 100644 index 00000000..34de2035 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewHintHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b65a0c490d7863d45b86fe1a27c008f5 +timeCreated: 1611404397 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XFriendsViewReceiveGiftHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewReceiveGiftHandler.cs new file mode 100644 index 00000000..e38eaef9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewReceiveGiftHandler.cs @@ -0,0 +1,237 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XFriendsViewReceiveGiftHandler : DlgHandlerBase + { + private IXUITweenTool mTweenTool; + + private IXUIWrapContent mListWrapContent; + + private IXUIScrollView mListScrollView; + + private IXUILabel lbNum; + + private XPlayerInfoChildBaseView mListTempView; + + private List mList = new List(); + + public List friendGiftSortData = new List(); + + private void _ResetReceiveGiftRank(List friendData) + { + this.friendGiftSortData.Clear(); + for (int i = 0; i < friendData.Count; i++) + { + this.friendGiftSortData.Add(friendData[i]); + } + bool flag = this.friendGiftSortData.Count > 0; + if (flag) + { + this.friendGiftSortData[0].receiveNo = 1; + bool flag2 = this.friendGiftSortData.Count > 1; + if (flag2) + { + this.friendGiftSortData.Sort(new Comparison(this.CompareFriendGiftData)); + this.friendGiftSortData[0].receiveNo = 1; + for (int j = 1; j < this.friendGiftSortData.Count; j++) + { + bool flag3 = this.friendGiftSortData[j].receiveAll == this.friendGiftSortData[j - 1].receiveAll; + if (flag3) + { + this.friendGiftSortData[j].receiveNo = this.friendGiftSortData[j - 1].receiveNo; + } + else + { + this.friendGiftSortData[j].receiveNo = j + 1; + } + } + } + } + } + + private void _SortItemByReceiveTime(List list) + { + uint num = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_ReceiveTaken); + uint num2 = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_Received); + List list2 = new List(); + List list3 = new List(); + for (int i = 0; i < list.Count; i++) + { + bool flag = list[i].receiveGiftState == num; + if (flag) + { + list2.Add(list[i]); + } + else + { + bool flag2 = list[i].receiveGiftState == num2; + if (flag2) + { + list3.Add(list[i]); + } + } + } + list2.Sort(new Comparison(this.CompareFriendGiftDataByTime)); + list3.Sort(new Comparison(this.CompareFriendGiftDataByTime)); + list.Clear(); + list.AddRange(list3); + list.AddRange(list2); + } + + private int CompareFriendGiftData(XFriendData a, XFriendData b) + { + return b.receiveAll.CompareTo(a.receiveAll); + } + + private int CompareFriendGiftDataByTime(XFriendData a, XFriendData b) + { + return (int)(b.receivetime - a.receivetime); + } + + public void RefreshList(List list) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = list == null; + if (!flag2) + { + this._ResetReceiveGiftRank(list); + this.mList.Clear(); + uint num = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_ReceiveNone); + for (int i = 0; i < this.friendGiftSortData.Count; i++) + { + bool flag3 = this.friendGiftSortData[i].receiveGiftState != num; + if (flag3) + { + this.mList.Add(this.friendGiftSortData[i]); + } + } + this._SortItemByReceiveTime(this.mList); + this.RefreshList(); + } + } + } + + public void RefreshList() + { + this._SortItemByReceiveTime(this.mList); + this.mListWrapContent.SetContentCount(this.mList.Count, false); + this.mListScrollView.ResetPosition(); + int num = 0; + uint num2 = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_ReceiveTaken); + for (int i = 0; i < this.mList.Count; i++) + { + bool flag = this.mList[i].receiveGiftState == num2; + if (flag) + { + num++; + } + } + this.lbNum.SetText(string.Format(XSingleton.singleton.CommonCountTotalFmt, DlgBase.singleton.TodayReceiveCount, XSingleton.singleton.ReceiveGifMaxTimes)); + } + + protected override void Init() + { + base.Init(); + this.mTweenTool = (base.PanelObject.GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform = base.PanelObject.transform.Find("Bg"); + this.lbNum = (transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.mListScrollView = (transform.Find("List").GetComponent("XUIScrollView") as IXUIScrollView); + this.mListWrapContent = (this.mListScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.mListTempView = new XPlayerInfoChildBaseView(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUISprite ixuisprite = base.PanelObject.transform.Find("BgBlack").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClose)); + this.mListWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._RankWrapListUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + } + + private void OnHideTweenFinished(IXUITweenTool tween) + { + } + + private void OnClose(IXUISprite sprClose) + { + base.SetVisible(false); + } + + private void _RankWrapListUpdated(Transform t, int i) + { + XFriendData xfriendData = this.mList[i]; + XPlayerInfoChildBaseView xplayerInfoChildBaseView = this.mListTempView; + xplayerInfoChildBaseView.FindFrom(t); + IXUITexture tencentImage = t.Find("tencent").GetComponent("XUITexture") as IXUITexture; + DlgBase.singleton.SetTencentImage(tencentImage); + t.Find("Received").gameObject.SetActive((ulong)xfriendData.receiveGiftState == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_ReceiveTaken))); + Transform transform = t.Find("Receive"); + bool flag = (ulong)xfriendData.receiveGiftState == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_Received)); + if (flag) + { + transform.gameObject.SetActive(true); + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = xfriendData.roleid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(DlgBase.singleton.OnClickReceiveGiftFromFriend)); + } + else + { + transform.gameObject.SetActive(false); + } + t.Find("Returned").gameObject.SetActive((ulong)xfriendData.sendGiftState == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(FriendGiftSend.FriendGift_Sended))); + transform = t.Find("Return"); + bool flag2 = (ulong)xfriendData.sendGiftState == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(FriendGiftSend.FriendGift_SendNone)); + if (flag2) + { + transform.gameObject.SetActive(true); + IXUIButton ixuibutton2 = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = xfriendData.roleid; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(DlgBase.singleton.OnClickSendGiftToFriend)); + } + else + { + transform.gameObject.SetActive(false); + } + IXUILabel ixuilabel = t.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(xfriendData.receiveAll.ToString()); + IXUILabel ixuilabel2 = t.Find("No").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(xfriendData.receiveNo.ToString()); + IXUILabel ixuilabel3 = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + bool flag3 = xfriendData.degreeAll < XSingleton.singleton.MaxFriendlyEvaluation; + if (flag3) + { + ixuilabel3.SetText(xfriendData.degreeAll.ToString()); + } + else + { + ixuilabel3.SetText("MAX"); + } + IXUISprite ixuisprite = ixuilabel3.gameObject.transform.Find("Mark").GetComponent("XUISprite") as IXUISprite; + float num = xfriendData.degreeAll; + num /= XSingleton.singleton.MaxFriendlyEvaluation; + ixuisprite.SetFillAmount(1f - num); + ixuisprite.ID = (ulong)xfriendData.degreeAll; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(DlgBase.singleton.OnClickDegreeHeart)); + xplayerInfoChildBaseView.sprHead.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)xfriendData.profession)); + xplayerInfoChildBaseView.lbName.InputText = XSingleton.singleton.StringCombine(XTitleDocument.GetTitleWithFormat(xfriendData.titleID, xfriendData.name), XStringDefineProxy.GetString("FRIEND_RECEIVE_GIFT_INFO"), XRechargeDocument.GetVIPIconString(xfriendData.viplevel)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XFriendsViewReceiveGiftHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewReceiveGiftHandler.cs.meta new file mode 100644 index 00000000..c6308387 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XFriendsViewReceiveGiftHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e19fee2fe51e5ff4a869d0fe626c9731 +timeCreated: 1611404702 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGameSirBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGameSirBehaviour.cs new file mode 100644 index 00000000..3862ebfe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGameSirBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGameSirBehaviour : DlgBehaviourBase + { + public IXUIButton m_ConnectBtn; + + public IXUILabel m_ConntectStatus; + + public IXUIButton m_ShowKeyBtn; + + public IXUIButton m_CloseBtn; + + private void Awake() + { + this.m_ConnectBtn = (base.transform.Find("Bg/Connect").GetComponent("XUIButton") as IXUIButton); + this.m_ShowKeyBtn = (base.transform.Find("Bg/Show").GetComponent("XUIButton") as IXUIButton); + this.m_ConntectStatus = (base.transform.Find("Bg/Connect/Label").GetComponent("XUILabel") as IXUILabel); + this.m_CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGameSirBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGameSirBehaviour.cs.meta new file mode 100644 index 00000000..1600e1d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGameSirBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09006bc4f27164445a981900532d99df +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGameSirView.cs b/Client/Assets/Scripts/XMainClient/UI/XGameSirView.cs new file mode 100644 index 00000000..6b84f573 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGameSirView.cs @@ -0,0 +1,256 @@ +using System; +using System.Collections.Generic; +using MiniJSON; +using UILib; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGameSirView : DlgBase + { + public override bool fullscreenui + { + get + { + return false; + } + } + + public override string fileName + { + get + { + return "Common/GameSirDlg"; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + public override bool pushstack + { + get + { + return false; + } + } + + private IXGameSirControl SirControl + { + get + { + return XSingleton.singleton.GameSirControl; + } + } + + private XGameSirView.ConnectStatu mConnectStatu = XGameSirView.ConnectStatu.CONNECT; + + private bool mConnecting = false; + + private XElapseTimer m_ConnectTimeOut = new XElapseTimer(); + + public enum ConnectStatu + { + CONNECT, + CONNECTING, + CONNECTED + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.CloseClick)); + base.uiBehaviour.m_ConnectBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ConnectClick)); + base.uiBehaviour.m_ShowKeyBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ShowKeyCodeClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.UpdateGameSirStatu(); + this.RefreshWhenShow(); + } + + protected override void OnHide() + { + base.OnHide(); + this.mConnecting = false; + this.m_ConnectTimeOut.LeftTime = 0f; + this.mConnectStatu = XGameSirView.ConnectStatu.CONNECT; + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.UpdateGameSirStatu(); + } + + private void UpdateGameSirStatu() + { + bool flag = this.SirControl == null; + if (flag) + { + this.SetGameSirStatu(XGameSirView.ConnectStatu.CONNECT); + } + else + { + bool flag2 = this.SirControl.IsConnected(); + if (flag2) + { + this.SetGameSirStatu(XGameSirView.ConnectStatu.CONNECTED); + } + else + { + bool flag3 = this.mConnecting; + if (flag3) + { + this.m_ConnectTimeOut.Update(); + bool flag4 = this.m_ConnectTimeOut.LeftTime > 0f; + if (flag4) + { + this.SetGameSirStatu(XGameSirView.ConnectStatu.CONNECTING); + } + else + { + this.mConnecting = false; + } + } + else + { + this.SetGameSirStatu(XGameSirView.ConnectStatu.CONNECT); + } + } + } + } + + private void SetGameSirStatu(XGameSirView.ConnectStatu statu) + { + bool flag = this.mConnectStatu == statu; + if (!flag) + { + this.mConnectStatu = statu; + this.RefreshWhenShow(); + } + } + + private void RefreshWhenShow() + { + XGameSirView.ConnectStatu connectStatu = this.mConnectStatu; + if (connectStatu != XGameSirView.ConnectStatu.CONNECTING) + { + if (connectStatu != XGameSirView.ConnectStatu.CONNECTED) + { + this.mConnecting = false; + base.uiBehaviour.m_ConntectStatus.SetText(XStringDefineProxy.GetString("HANDLE_STATU_CONNECT")); + base.uiBehaviour.m_ConnectBtn.SetEnable(true, false); + } + else + { + this.mConnecting = false; + base.uiBehaviour.m_ConntectStatus.SetText(XStringDefineProxy.GetString("HANDLE_STATU_CONNECTED")); + base.uiBehaviour.m_ConnectBtn.SetEnable(true, false); + } + } + else + { + base.uiBehaviour.m_ConntectStatus.SetText(XStringDefineProxy.GetString("HANDLE_STATU_CONNECTING")); + base.uiBehaviour.m_ConnectBtn.SetEnable(false, false); + } + } + + private bool CloseClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool ConnectClick(IXUIButton btn) + { + bool flag = this.mConnectStatu == XGameSirView.ConnectStatu.CONNECT; + if (flag) + { + this.m_ConnectTimeOut.LeftTime = (float)XSingleton.singleton.GetInt("GameSirTimeOut"); + this.mConnecting = true; + bool flag2 = this.SirControl != null; + if (flag2) + { + this.SirControl.StartSir(); + } + } + else + { + bool flag3 = this.mConnectStatu == XGameSirView.ConnectStatu.CONNECTED; + if (flag3) + { + this.mConnecting = false; + bool flag4 = this.SirControl != null; + if (flag4) + { + this.SirControl.StopSir(); + } + } + } + return true; + } + + private bool ShowKeyCodeClick(IXUIButton btn) + { + string value = XSingleton.singleton.GetValue("GameSirKeyUrl"); + bool flag = string.IsNullOrEmpty(value); + bool result; + if (flag) + { + result = false; + } + else + { + Dictionary dictionary = new Dictionary(); + XSingleton.singleton.AddGreenLog("Open GameSir Key:", value, null, null, null, null); + dictionary["url"] = value; + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGameSirView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGameSirView.cs.meta new file mode 100644 index 00000000..f939d344 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGameSirView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4efaaa4a85a9774c87f47174425b037 +timeCreated: 1611404393 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApplyBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildApplyBehaviour.cs new file mode 100644 index 00000000..8724dbe7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApplyBehaviour.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGuildApplyBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnApply = null; + + public IXUIButton m_BtnEnterGuild; + + public IXUILabel m_Annoucement; + + public IXUILabel m_PPT; + + public IXUILabel m_NeedApprove; + + public IXUILabel m_ResultNote; + + public GameObject m_ApplyMenu; + + public GameObject m_ResultMenu; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/ApplyMenu/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnApply = (base.transform.Find("Bg/ApplyMenu/OK").GetComponent("XUIButton") as IXUIButton); + this.m_BtnEnterGuild = (base.transform.Find("Bg/ResultMenu/OK").GetComponent("XUIButton") as IXUIButton); + this.m_Annoucement = (base.transform.Find("Bg/ApplyMenu/Annoucement").GetComponent("XUILabel") as IXUILabel); + this.m_Annoucement.SetText(""); + this.m_PPT = (base.transform.Find("Bg/ApplyMenu/PPT").GetComponent("XUILabel") as IXUILabel); + this.m_NeedApprove = (base.transform.Find("Bg/ApplyMenu/NeedApprove").GetComponent("XUILabel") as IXUILabel); + this.m_ResultNote = (base.transform.Find("Bg/ResultMenu/Note").GetComponent("XUILabel") as IXUILabel); + this.m_ApplyMenu = base.transform.Find("Bg/ApplyMenu").gameObject; + this.m_ResultMenu = base.transform.Find("Bg/ResultMenu").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApplyBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildApplyBehaviour.cs.meta new file mode 100644 index 00000000..78b59692 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApplyBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f3d2d75ba9b72a4f9281b7acd818006 +timeCreated: 1611404133 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApplyView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildApplyView.cs new file mode 100644 index 00000000..92557a1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApplyView.cs @@ -0,0 +1,142 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildApplyView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildApplyDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private ulong m_UID; + + private string m_Name; + + private XGuildListDocument _doc; + + private XFx m_xfx; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XGuildListDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnApply.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnApplyBtnClicked)); + base.uiBehaviour.m_BtnEnterGuild.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnEnterSceneBtnClicked)); + } + + public void ShowApply(ulong uid, string name, uint ppt, bool bNeedApprove, string annoucement) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + this.m_UID = uid; + this.m_Name = name; + base.uiBehaviour.m_PPT.SetText(ppt.ToString()); + base.uiBehaviour.m_NeedApprove.SetText(bNeedApprove ? XStringDefineProxy.GetString("YES") : XStringDefineProxy.GetString("NO")); + base.uiBehaviour.m_Annoucement.SetText(annoucement); + base.uiBehaviour.m_ApplyMenu.SetActive(true); + base.uiBehaviour.m_ResultMenu.SetActive(false); + base.uiBehaviour.m_Close.SetVisible(true); + } + + public void Hide() + { + this.SetVisible(false, true); + this.DestroyFx(this.m_xfx); + } + + public void ShowResult(bool bCreate, string name) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + string text = bCreate ? XStringDefineProxy.GetString("CREATE") : XStringDefineProxy.GetString("JOIN"); + base.uiBehaviour.m_ResultNote.SetText(XStringDefineProxy.GetString("GUILD_APPLY_SUCCESS", new object[] + { + text, + name + })); + base.uiBehaviour.m_ApplyMenu.SetActive(false); + base.uiBehaviour.m_ResultMenu.SetActive(true); + base.uiBehaviour.m_Close.SetVisible(false); + this.DestroyFx(this.m_xfx); + this.m_xfx = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_yh", null, true); + this.m_xfx.Play(DlgBase.singleton.uiBehaviour.m_FxFirework.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + + public void DestroyFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + } + } + + private bool _OnApplyBtnClicked(IXUIButton btn) + { + this._doc.ReqApplyGuild(this.m_UID, this.m_Name); + return true; + } + + private bool _OnEnterSceneBtnClicked(IXUIButton btn) + { + this.Hide(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + DlgBase.singleton.SetVisibleWithAnimation(false, null); + XSingleton.singleton.OpenGuildSystem(XSysDefine.XSys_GuildHall); + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.Hide(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApplyView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildApplyView.cs.meta new file mode 100644 index 00000000..97e00bfd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApplyView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 407a5564aae388447aeb1774fd5c9886 +timeCreated: 1611403614 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApproveBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveBehaviour.cs new file mode 100644 index 00000000..d421b2d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveBehaviour.cs @@ -0,0 +1,44 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGuildApproveBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnOneKeyCancel; + + public IXUIButton m_BtnSetting; + + public IXUIButton m_BtnSendMessage; + + public IXUILabel m_RequiredPPT; + + public IXUILabel m_NeedApprove; + + public IXUILabel m_MemberCount; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public GameObject m_SettingPanel; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnOneKeyCancel = (base.transform.Find("Bg/BtnOneKeyCancel").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSetting = (base.transform.Find("Bg/BtnSetting").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSendMessage = (base.transform.Find("Bg/BtnSendMessage").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RequiredPPT = (base.transform.Find("Bg/PPTRequirement").GetComponent("XUILabel") as IXUILabel); + this.m_NeedApprove = (base.transform.Find("Bg/NeedApprove").GetComponent("XUILabel") as IXUILabel); + this.m_MemberCount = (base.transform.Find("Bg/MemberCount").GetComponent("XUILabel") as IXUILabel); + this.m_SettingPanel = base.transform.Find("Bg/SettingPanel").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApproveBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveBehaviour.cs.meta new file mode 100644 index 00000000..2f8d0d46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a973609e058136343bfefde2e0597c25 +timeCreated: 1611404298 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApproveSettingView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveSettingView.cs new file mode 100644 index 00000000..9964c904 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveSettingView.cs @@ -0,0 +1,63 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class XGuildApproveSettingView : DlgHandlerBase + { + private IXUIInput m_PPTInput; + + private IXUICheckBox m_AutoApprove; + + private XGuildApproveDocument _doc; + + protected override void Init() + { + this.m_PPTInput = (base.PanelObject.transform.Find("SettingMenu/PPTInput").GetComponent("XUIInput") as IXUIInput); + this.m_AutoApprove = (base.PanelObject.transform.Find("SettingMenu/AutoApprove").GetComponent("XUICheckBox") as IXUICheckBox); + this._doc = XDocuments.GetSpecificDocument(XGuildApproveDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + IXUIButton ixuibutton2 = base.PanelObject.transform.Find("SettingMenu/OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + GuildApproveSetting approveSetting = this._doc.ApproveSetting; + this.m_PPTInput.SetText(approveSetting.GetStrPPT()); + this.m_AutoApprove.bChecked = approveSetting.autoApprove; + } + + private bool _OnOKBtnClicked(IXUIButton btn) + { + GuildApproveSetting guildApproveSetting = new GuildApproveSetting(); + string text = this.m_PPTInput.GetText(); + bool flag = text.Length == 0; + if (flag) + { + guildApproveSetting.PPT = 0; + } + else + { + guildApproveSetting.PPT = int.Parse(text); + } + guildApproveSetting.autoApprove = this.m_AutoApprove.bChecked; + this._doc.ReqSetApprove(guildApproveSetting); + base.SetVisible(false); + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApproveSettingView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveSettingView.cs.meta new file mode 100644 index 00000000..215c3bdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveSettingView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a0c53d7728ceae4a9144f7ab6c0feb7 +timeCreated: 1611404199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApproveView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveView.cs new file mode 100644 index 00000000..9b16f1e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveView.cs @@ -0,0 +1,245 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildApproveView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildApproveDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XGuildApproveDocument _ApproveDoc; + + private XGuildDocument _GuildDoc; + + private XGuildHallDocument _HallDoc; + + private XGuildApproveSettingView _SettingView; + + private bool m_ApproveStatu = false; + + protected override void Init() + { + this._ApproveDoc = XDocuments.GetSpecificDocument(XGuildApproveDocument.uuID); + this._ApproveDoc.GuildApproveView = this; + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this._HallDoc = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this._SettingView, base.uiBehaviour.m_SettingPanel, null, true); + } + + protected override void OnUnload() + { + this._ApproveDoc.GuildApproveView = null; + DlgHandlerBase.EnsureUnload(ref this._SettingView); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnOneKeyCancel.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOneKeyCancelBtnClick)); + base.uiBehaviour.m_BtnSetting.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSettingBtnClick)); + base.uiBehaviour.m_BtnSendMessage.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSendMessageBtnClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + base.uiBehaviour.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this._WrapContentInit)); + } + + protected override void OnShow() + { + this._ApproveDoc.ReqApproveList(); + this._SettingView.SetVisible(false); + this.RefreshSetting(); + this.RefreshMember(); + } + + public void RefreshSetting() + { + GuildApproveSetting approveSetting = this._ApproveDoc.ApproveSetting; + bool flag = approveSetting.PPT == 0; + if (flag) + { + base.uiBehaviour.m_RequiredPPT.SetText(XStringDefineProxy.GetString("NONE")); + } + else + { + base.uiBehaviour.m_RequiredPPT.SetText(approveSetting.GetStrPPT()); + } + base.uiBehaviour.m_NeedApprove.SetText(approveSetting.autoApprove ? XStringDefineProxy.GetString("GUILD_APPROVE_NEEDNT") : XStringDefineProxy.GetString("GUILD_APPROVE_NEED")); + } + + public void RefreshMember() + { + this.m_ApproveStatu = false; + base.uiBehaviour.m_MemberCount.SetText(string.Format("{0}/{1}", this._GuildDoc.BasicData.memberCount, this._GuildDoc.BasicData.maxMemberCount)); + } + + public void RefreshList(bool bResetPosition) + { + List approveList = this._ApproveDoc.ApproveList; + int count = approveList.Count; + base.uiBehaviour.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + + private void _WrapContentInit(Transform t, int index) + { + IXUIButton ixuibutton = t.Find("BtnOK").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("BtnCancel").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClick)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCancelBtnClick)); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._ApproveDoc.ApproveList.Count; + if (!flag) + { + XGuildApplyInfo xguildApplyInfo = this._ApproveDoc.ApproveList[index]; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("PPT").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("ApplyTime").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Portrait").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = t.Find("BtnOK").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("BtnCancel").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite2 = t.Find("Profession").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(xguildApplyInfo.name); + ixuilabel2.SetText("Lv." + xguildApplyInfo.level); + ixuilabel3.SetText(xguildApplyInfo.ppt.ToString()); + ixuilabel4.SetText(XSingleton.singleton.TimeAgoFormatString(xguildApplyInfo.time)); + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2(xguildApplyInfo.profession)); + ixuisprite2.SetSprite(XSingleton.singleton.GetProfIcon(xguildApplyInfo.profession)); + ixuibutton.ID = (ulong)((long)index); + ixuibutton2.ID = (ulong)((long)index); + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnOneKeyCancelBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.bInGuild; + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_APPROVE_REJECT_ALL_CONFIRM"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._OnOneKeyCancel)); + result = true; + } + return result; + } + + private bool _OnOneKeyCancel(IXUIButton go) + { + this._ApproveDoc.ReqRejectAll(); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool _OnSettingBtnClick(IXUIButton btn) + { + this._SettingView.SetVisible(true); + return true; + } + + private bool _OnSendMessageBtnClick(IXUIButton btn) + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + specificDocument.SendGuildInvitation(); + return true; + } + + private bool _OnOKBtnClick(IXUIButton btn) + { + bool approveStatu = this.m_ApproveStatu; + bool result; + if (approveStatu) + { + result = false; + } + else + { + this.m_ApproveStatu = true; + this._ApproveDoc.ReqApprove(true, (int)btn.ID); + result = true; + } + return result; + } + + private bool _OnCancelBtnClick(IXUIButton btn) + { + bool approveStatu = this.m_ApproveStatu; + bool result; + if (approveStatu) + { + result = false; + } + else + { + this.m_ApproveStatu = true; + this._ApproveDoc.ReqApprove(false, (int)btn.ID); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildApproveView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveView.cs.meta new file mode 100644 index 00000000..47da280a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildApproveView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e66c91fc03d33e498c84ca04c158e64 +timeCreated: 1611404004 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildArenaDlg.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildArenaDlg.cs new file mode 100644 index 00000000..a7ee5049 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildArenaDlg.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildArenaDlg : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildArenaDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildArenaDocument _Doc; + + private Dictionary m_handlers = new Dictionary(); + + private IXUIButton m_Help; + + private IXUISprite m_maskSprite; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + this.m_Help = (base.uiBehaviour.m_root.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_maskSprite = (base.uiBehaviour.m_root.Find("Mask").GetComponent("XUISprite") as IXUISprite); + this.RegisterHandler(GuildArenaTab.Hall); + this.RegisterHandler(GuildArenaTab.Duel); + this.RegisterHandler(GuildArenaTab.Combat); + } + + private void RegisterHandler(GuildArenaTab index) where T : DlgHandlerBase, new() + { + bool flag = !this.m_handlers.ContainsKey(index); + if (flag) + { + T t = default(T); + t = DlgHandlerBase.EnsureCreate(ref t, base.uiBehaviour.m_root, false, this); + this.m_handlers.Add(index, t); + } + } + + private void RemoveHandler(GuildArenaTab index) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(index, out dlgHandlerBase); + if (flag) + { + DlgHandlerBase.EnsureUnload(ref dlgHandlerBase); + this.m_handlers.Remove(index); + } + } + + protected override void OnUnload() + { + this.RemoveHandler(GuildArenaTab.Hall); + this.RemoveHandler(GuildArenaTab.Duel); + this.RemoveHandler(GuildArenaTab.Combat); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._CloseClickHandle)); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnHelpClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.InitTabTableControl(); + this._Doc.SendGuildIntegralInfo(); + } + + public void SelectTabIndex(GuildArenaTab tab) + { + bool flag = !base.IsVisible(); + if (!flag) + { + int num = XFastEnumIntEqualityComparer.ToInt(tab); + IXUICheckBox byCheckBoxId = this.m_uiBehaviour.m_tabcontrol.GetByCheckBoxId((ulong)((long)num)); + bool flag2 = byCheckBoxId == null; + if (!flag2) + { + byCheckBoxId.bChecked = true; + } + } + } + + protected override void OnHide() + { + this.SetHandlerVisible(this._Doc.SelectTabIndex, false); + base.OnHide(); + } + + public void RefreshData() + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(this._Doc.SelectTabIndex, out dlgHandlerBase) && dlgHandlerBase.IsVisible(); + if (flag) + { + dlgHandlerBase.RefreshData(); + } + } + + private void InitTabTableControl() + { + List list = new List + { + 1, + 2, + 3 + }; + List list2 = new List(); + int i = 0; + int count = list.Count; + while (i < count) + { + list2.Add(string.Format("GUILD_ARENA_TAB{0}", list[i])); + i++; + } + base.uiBehaviour.m_tabcontrol.SetupTabs(list, list2, new XUITabControl.UITabControlCallback(this._OnTabControlUpdate), true, 1f, -1, true); + } + + private void SetHandlerVisible(GuildArenaTab handlerID, bool isVisble) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_handlers.TryGetValue(handlerID, out dlgHandlerBase); + if (flag) + { + dlgHandlerBase.SetVisible(isVisble); + if (isVisble) + { + this._Doc.SelectTabIndex = handlerID; + } + } + } + + private void _OnTabControlUpdate(ulong handId) + { + this.SetHandlerVisible(this._Doc.SelectTabIndex, false); + this.SetHandlerVisible((GuildArenaTab)handId, true); + this.m_maskSprite.SetAlpha((this._Doc.SelectTabIndex == GuildArenaTab.Hall) ? 0f : 1f); + } + + private bool _OnHelpClick(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildPvp); + return true; + } + + private bool _CloseClickHandle(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildArenaDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildArenaDlg.cs.meta new file mode 100644 index 00000000..5fd19e47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildArenaDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f80bfd2b28c4a504394d2d4d481ecad6 +timeCreated: 1611404890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildBasicInfoDisplay.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildBasicInfoDisplay.cs new file mode 100644 index 00000000..7931c7d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildBasicInfoDisplay.cs @@ -0,0 +1,245 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildBasicInfoDisplay + { + public Transform Root; + + public IXUILabel GuildName; + + public IXUILabel LeaderName; + + public IXUILabel Annoucement; + + public IXUILabel Level; + + public IXUILabel Rank; + + public IXUILabel MemberCount; + + public IXUILabel Exp; + + public IXUISprite Portrait; + + public IXUILabel Liveness; + + public IXUILabel Popularity; + + public IXUILabel Technology; + + public IXUILabel Resources; + + public void Init(Transform go, bool bFirstInit) + { + this.Root = go; + Transform transform = this.Root.Find("GuildName"); + bool flag = transform != null; + if (flag) + { + this.GuildName = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.GuildName.SetText(""); + } + } + else + { + this.GuildName = null; + } + transform = this.Root.Find("LeaderName"); + bool flag2 = transform != null; + if (flag2) + { + this.LeaderName = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.LeaderName.SetText(""); + } + } + else + { + this.LeaderName = null; + } + transform = this.Root.Find("Announcement"); + bool flag3 = transform != null; + if (flag3) + { + this.Annoucement = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Annoucement.SetText(""); + } + } + else + { + this.Annoucement = null; + } + transform = this.Root.Find("Level"); + bool flag4 = transform != null; + if (flag4) + { + this.Level = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Level.SetText(""); + } + } + else + { + this.Level = null; + } + transform = this.Root.Find("Rank"); + bool flag5 = transform != null; + if (flag5) + { + this.Rank = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Rank.SetText(""); + } + } + else + { + this.Rank = null; + } + transform = this.Root.Find("MemberCount"); + bool flag6 = transform != null; + if (flag6) + { + this.MemberCount = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.MemberCount.SetText(""); + } + } + else + { + this.MemberCount = null; + } + transform = this.Root.Find("Exp"); + bool flag7 = transform != null; + if (flag7) + { + this.Exp = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Exp.SetText(""); + } + } + else + { + this.Exp = null; + } + transform = this.Root.Find("Portrait"); + bool flag8 = transform != null; + if (flag8) + { + this.Portrait = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.Portrait = null; + } + transform = this.Root.Find("Liveness"); + bool flag9 = transform != null; + if (flag9) + { + this.Liveness = (transform.GetComponent("XUILabel") as IXUILabel); + } + else + { + this.Liveness = null; + } + transform = this.Root.Find("Popularity"); + bool flag10 = transform != null; + if (flag10) + { + this.Popularity = (transform.GetComponent("XUILabel") as IXUILabel); + } + else + { + this.Popularity = null; + } + transform = this.Root.Find("Technology"); + bool flag11 = transform != null; + if (flag11) + { + this.Technology = (transform.GetComponent("XUILabel") as IXUILabel); + } + transform = this.Root.Find("Resources"); + bool flag12 = transform != null; + if (flag12) + { + this.Resources = (transform.GetComponent("XUILabel") as IXUILabel); + } + } + + public void Set(XGuildBasicData data) + { + bool flag = this.GuildName != null; + if (flag) + { + this.GuildName.SetText(data.guildName); + } + bool flag2 = this.LeaderName != null; + if (flag2) + { + this.LeaderName.SetText(data.leaderName); + } + bool flag3 = this.Annoucement != null; + if (flag3) + { + this.Annoucement.SetText(data.announcement); + } + bool flag4 = this.Level != null; + if (flag4) + { + this.Level.SetText("Lv." + data.level); + } + bool flag5 = this.MemberCount != null; + if (flag5) + { + this.MemberCount.SetText(string.Format("{0}/{1}", data.memberCount, data.maxMemberCount)); + } + bool flag6 = this.Portrait != null; + if (flag6) + { + this.Portrait.SetSprite(XGuildDocument.GetPortraitName(data.portraitIndex)); + } + bool flag7 = this.Exp != null; + if (flag7) + { + this.Exp.SetText(string.Format("{0}/{1}", XSingleton.singleton.NumberFormat((ulong)(XGuildDocument.GuildConfig.GetBaseExp(data.level) + data.exp)), XSingleton.singleton.NumberFormat((ulong)XGuildDocument.GuildConfig.GetTotalExp(data.level)))); + } + bool flag8 = this.Rank != null; + if (flag8) + { + this.Rank.SetText("No." + data.rank); + } + bool flag9 = this.Liveness != null; + if (flag9) + { + this.Liveness.SetText(data.GetLiveness()); + } + bool flag10 = this.Popularity != null; + if (flag10) + { + this.Popularity.SetText(data.popularity.ToString()); + } + bool flag11 = this.Technology != null; + if (flag11) + { + this.Technology.SetText(data.technology.ToString()); + } + bool flag12 = this.Resources != null; + if (flag12) + { + this.Resources.SetText(data.resource.ToString()); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildBasicInfoDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildBasicInfoDisplay.cs.meta new file mode 100644 index 00000000..e772c71a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildBasicInfoDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc703fd132908b2488749bad0ae7c3e2 +timeCreated: 1611404446 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildBoonView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildBoonView.cs new file mode 100644 index 00000000..b5be96b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildBoonView.cs @@ -0,0 +1,121 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildBoonView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildBoonDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private static Dictionary _BoonBg = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private XSubSysRedPointMgr redpointMgr = new XSubSysRedPointMgr(); + + static XGuildBoonView() + { + XGuildBoonView._BoonBg.Add(XSysDefine.XSys_GuildBoon_RedPacket, "gh_btn_ghhb"); + XGuildBoonView._BoonBg.Add(XSysDefine.XSys_GuildBoon_Shop, "gh_btn_ghsd"); + XGuildBoonView._BoonBg.Add(XSysDefine.XSys_GuildBoon_Salay, "gh_btn_ghhyd"); + } + + protected override void Init() + { + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.Refresh(); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.Refresh(); + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public void Refresh() + { + } + + public void RefreshRedPoints() + { + this.redpointMgr.UpdateRedPointUI(); + } + + private void OnBoonClick(IXUITexture sp) + { + switch ((int)sp.ID) + { + case 830: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + break; + case 831: + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Guild, 0UL); + break; + case 833: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + break; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildBoonView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildBoonView.cs.meta new file mode 100644 index 00000000..4cf7097d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildBoonView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4fdb5e2d68db69c4db73cb366e74606f +timeCreated: 1611403701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildCreateView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildCreateView.cs new file mode 100644 index 00000000..66b0086b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildCreateView.cs @@ -0,0 +1,186 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildCreateView : DlgHandlerBase + { + private IXUIInput m_NameInput; + + private IXUILabel m_Cost; + + private IXUISprite m_Portrait; + + private GameObject m_CreatePanel; + + private GameObject m_VipPanel; + + private int m_PortraitIndex; + + private int m_CostNum; + + private GameObject m_CreateHighlight; + + private Dictionary m_helpList = new Dictionary(); + + private XGuildListDocument _doc; + + private XGuildDocument m_GuildDoc; + + protected override void Init() + { + this.m_CreatePanel = base.PanelObject.transform.Find("CreateMenu").gameObject; + this.m_VipPanel = base.PanelObject.transform.Find("VipMenu").gameObject; + this.m_NameInput = (base.PanelObject.transform.Find("CreateMenu/NameInput").GetComponent("XUIInput") as IXUIInput); + this.m_Cost = (base.PanelObject.transform.Find("CreateMenu/OK/MoneyCost").GetComponent("XUILabel") as IXUILabel); + this.m_CostNum = XSingleton.singleton.GetInt("GuildCreateCost"); + this.m_Cost.SetText(this.m_CostNum.ToString()); + IXUILabelSymbol ixuilabelSymbol = base.PanelObject.transform.Find("VipMenu/Note").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = XStringDefineProxy.GetString("GUILD_CREATE_VIP_REQUIRE", new object[] + { + XSingleton.singleton.GetInt("GuildCreateVipRequirement") + }); + this.m_Portrait = (base.PanelObject.transform.Find("CreateMenu/Portrait").GetComponent("XUISprite") as IXUISprite); + this._doc = XDocuments.GetSpecificDocument(XGuildListDocument.uuID); + this.m_GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.m_PortraitIndex = XSingleton.singleton.RandomInt(XGuildPortraitView.PORTRAIT_COUNT); + this.m_CreateHighlight = base.PanelObject.transform.Find("CreateMenu/OK/Highlight").gameObject; + Transform transform = base.PanelObject.transform.Find("CreateMenu/HelpList"); + int i = 0; + int childCount = transform.childCount; + while (i < childCount) + { + Transform child = transform.GetChild(i); + this.m_helpList.Add(child.GetComponent("XUIButton") as IXUIButton, child.name); + Guildintroduce.RowData introduce = this.m_GuildDoc.GetIntroduce(child.name); + bool flag = introduce != null; + if (flag) + { + IXUILabel ixuilabel = child.Find("Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(introduce.Title); + } + i++; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = base.PanelObject.transform.Find("VipMenu/Close").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = base.PanelObject.transform.Find("CreateMenu/Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + IXUIButton ixuibutton3 = base.PanelObject.transform.Find("CreateMenu/OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCreateBtnClicked)); + IXUIButton ixuibutton4 = base.PanelObject.transform.Find("VipMenu/OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton4.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnVipBtnClicked)); + IXUIButton ixuibutton5 = base.PanelObject.transform.Find("CreateMenu/EditPortrait").GetComponent("XUIButton") as IXUIButton; + ixuibutton5.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnEditPortraitClicked)); + foreach (IXUIButton ixuibutton6 in this.m_helpList.Keys) + { + ixuibutton6.RegisterClickEventHandler(new ButtonClickEventHandler(this._ShowCreateHelpClick)); + } + } + + protected override void OnShow() + { + base.OnShow(); + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + bool flag = vipLevel >= XSingleton.singleton.GetInt("GuildCreateVipRequirement"); + this.m_CreatePanel.SetActive(flag); + this.m_VipPanel.SetActive(!flag); + this.m_NameInput.SetText(""); + this.m_Portrait.SetSprite(XGuildDocument.GetPortraitName(this.m_PortraitIndex)); + bool flag2 = flag; + if (flag2) + { + this.m_CreateHighlight.SetActive(XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN) >= (ulong)((long)this.m_CostNum)); + } + } + + public override void OnUnload() + { + bool flag = this.m_helpList != null; + if (flag) + { + this.m_helpList.Clear(); + this.m_helpList = null; + } + base.OnUnload(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + private bool _ShowCreateHelpClick(IXUIButton button) + { + string helpName; + bool flag = this.m_helpList.TryGetValue(button, out helpName); + bool result; + if (flag) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + Guildintroduce.RowData introduce = specificDocument.GetIntroduce(helpName); + bool flag2 = introduce != null; + if (flag2) + { + XSingleton.singleton.ShowSystemHelp(introduce.Desc, introduce.Title, XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + } + result = true; + } + else + { + result = false; + } + return result; + } + + private bool _OnCreateBtnClicked(IXUIButton btn) + { + string text = this.m_NameInput.GetText(); + bool flag = text.Length == 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_CREATE_NAME_REQUIRE"), "fece00"); + } + else + { + this._doc.ReqCreateGuild(text, this.m_PortraitIndex); + } + return true; + } + + private bool _OnVipBtnClicked(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Money, 0UL); + base.SetVisible(false); + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + base.SetVisible(false); + return true; + } + + private bool _OnEditPortraitClicked(IXUIButton btn) + { + DlgBase.singleton.Open(this.m_PortraitIndex, new ButtonClickEventHandler(this._OnPortraitChanged)); + return true; + } + + private bool _OnPortraitChanged(IXUIButton go) + { + this.m_PortraitIndex = DlgBase.singleton.PortraitIndex; + this.m_Portrait.SetSprite(XGuildDocument.GetPortraitName(this.m_PortraitIndex)); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildCreateView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildCreateView.cs.meta new file mode 100644 index 00000000..89994f65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildCreateView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2b4327143dbc2b4fa31665d22f94107 +timeCreated: 1611404386 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildDragonView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildDragonView.cs new file mode 100644 index 00000000..e36d195d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildDragonView.cs @@ -0,0 +1,492 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildDragonView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildBossDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public static readonly int REWARD_COUNT = 3; + + private XGuildDragonDocument _Doc; + + private XLeftTimeCounter m_LeftTime; + + private uint mBossHp = 0u; + + private ulong SubscribebuttonID = 0UL; + + protected override void Init() + { + base.Init(); + this.m_LeftTime = new XLeftTimeCounter(base.uiBehaviour.m_LeftTime, false); + this._Doc = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + this._Doc.GuildDragonView = this; + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.GuildRankWrapContentItemUpdated)); + } + + public void ShowGuildBossView() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.bInGuild; + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("MulActivity_ShowTips3"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.JoinGuild)); + } + else + { + bool flag2 = !base.IsVisible(); + if (flag2) + { + this.SetVisibleWithAnimation(true, null); + } + } + } + + private bool JoinGuild(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.ReqGuildBossInfo(); + this._Doc.ReqBossRoleRank(false); + this._Doc.ReqWorldBossState(); + base.uiBehaviour.m_LeftTime.SetVisible(false); + base.uiBehaviour.m_LeftTimeHint.gameObject.SetActive(false); + base.uiBehaviour.m_RewardPanel.SetActive(false); + this.RefreshPrivilegeInfo(); + this.ShowTimeSection(); + this.RefreshSubscribe(); + } + + private void RefreshPrivilegeInfo() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + base.uiBehaviour.m_PrivilegeIcon.SetGrey(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce)); + base.uiBehaviour.m_PrivilegeIcon.SetSprite(specificDocument.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Commerce)); + base.uiBehaviour.m_PrivilegeName.SetEnabled(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce)); + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce); + bool flag = memberPrivilegeConfig != null; + if (flag) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)memberPrivilegeConfig.guildBossBuffid[0], (int)memberPrivilegeConfig.guildBossBuffid[1]); + bool flag2 = buffData != null; + if (flag2) + { + base.uiBehaviour.m_PrivilegeName.SetText(XStringDefineProxy.GetString("WORLDBOSS_PRIVILEGE_BUFF", new object[] + { + buffData.BuffName + })); + } + base.uiBehaviour.m_PrivilegeIcon.SetVisible(buffData != null); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_BtnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_BtnRank.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankClick)); + base.uiBehaviour.m_BtnGoBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoBattleClick)); + base.uiBehaviour.m_BtnReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardClick)); + base.uiBehaviour.m_BtnSubscribe.ID = 0UL; + base.uiBehaviour.m_BtnSubscribe.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubscribeClick)); + base.uiBehaviour.m_BtnCancelSubscribe.ID = 1UL; + base.uiBehaviour.m_BtnCancelSubscribe.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubscribeClick)); + base.uiBehaviour.m_Privilege.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPrivilegeClick)); + } + + protected override void OnUnload() + { + this.m_LeftTime = null; + this._Doc.GuildDragonView = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_LeftTime != null; + if (flag) + { + this.m_LeftTime.Update(); + bool flag2 = this.m_LeftTime.GetLeftTime() <= 0; + if (flag2) + { + this.UpdateLeftTimeState(0f, this.mBossHp); + } + } + } + + private void ShowTimeSection() + { + int num = 0; + int num2 = 0; + this._Doc.GetWorldBossTime(ref num, ref num2); + string arg = string.Format("{0}:{1}", (num / 100).ToString("D2"), (num % 100).ToString("D2")); + string arg2 = string.Format("{0}:{1}", (num2 / 100).ToString("D2"), (num2 % 100).ToString("D2")); + base.uiBehaviour.m_OpenTime.SetText(string.Format(XStringDefineProxy.GetString("WORLDBOSS_OPEN_TIME"), arg, arg2)); + } + + public void SetLeftTime(float time, uint BossHp) + { + this.m_LeftTime.SetLeftTime(time, -1); + base.uiBehaviour.m_LeftTime.SetVisible(time > 0f); + this.UpdateLeftTimeState(time, BossHp); + } + + private void UpdateLeftTimeState(float time, uint BossHp) + { + this.mBossHp = BossHp; + bool flag = time <= 0f; + if (flag) + { + base.uiBehaviour.m_LeftTimeHint.gameObject.SetActive(true); + base.uiBehaviour.m_LeftTime.gameObject.SetActive(false); + bool flag2 = BossHp > 0u; + if (flag2) + { + base.uiBehaviour.m_LeftTimeHint.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_TIME")); + } + else + { + base.uiBehaviour.m_LeftTimeHint.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_BOSSDIE")); + } + } + else + { + base.uiBehaviour.m_LeftTimeHint.gameObject.SetActive(false); + bool flag3 = BossHp <= 0u; + if (flag3) + { + base.uiBehaviour.m_LeftTimeHint.gameObject.SetActive(true); + base.uiBehaviour.m_LeftTime.gameObject.SetActive(false); + base.uiBehaviour.m_LeftTimeHint.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_BOSSDIE")); + } + } + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnRankClick(IXUIButton button) + { + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank_GuildBoss); + return true; + } + + private bool OnRewardClick(IXUIButton button) + { + base.uiBehaviour.m_RewardPanel.SetActive(true); + XSingleton.singleton.Init(base.uiBehaviour.m_RewardPanel); + return true; + } + + private bool OnSubscribeClick(IXUIButton button) + { + this.SubscribebuttonID = button.ID; + PushSubscribeTable.RowData pushSubscribe = XPushSubscribeDocument.GetPushSubscribe(PushSubscribeOptions.GuildBoss); + XSingleton.singleton.ShowModalDialog((button.ID == 0UL) ? pushSubscribe.SubscribeDescription : pushSubscribe.CancelDescription, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.ReqSubscribeChange)); + return true; + } + + private bool ReqSubscribeChange(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XPushSubscribeDocument specificDocument = XDocuments.GetSpecificDocument(XPushSubscribeDocument.uuID); + specificDocument.ReqSetSubscribe(PushSubscribeOptions.GuildBoss, this.SubscribebuttonID == 0UL); + return true; + } + + public void RefreshSubscribe() + { + PushSubscribeTable.RowData pushSubscribe = XPushSubscribeDocument.GetPushSubscribe(PushSubscribeOptions.GuildBoss); + XPushSubscribeDocument specificDocument = XDocuments.GetSpecificDocument(XPushSubscribeDocument.uuID); + bool flag = XSingleton.singleton.AccountType == LoginType.LGOIN_WECHAT_PF && pushSubscribe.IsShow && specificDocument.OptionsDefault != null && specificDocument.OptionsDefault.Count != 0; + if (flag) + { + bool curSubscribeStatus = specificDocument.GetCurSubscribeStatus(PushSubscribeOptions.GuildBoss); + base.uiBehaviour.m_BtnSubscribe.gameObject.SetActive(!curSubscribeStatus); + base.uiBehaviour.m_BtnCancelSubscribe.gameObject.SetActive(curSubscribeStatus); + } + else + { + base.uiBehaviour.m_BtnSubscribe.gameObject.SetActive(false); + base.uiBehaviour.m_BtnCancelSubscribe.gameObject.SetActive(false); + } + } + + private bool OnGoBattleClick(IXUIButton button) + { + bool flag = this.m_LeftTime.GetLeftTime() > 0; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_TIME_NOTSTART"), "fece00"); + result = false; + } + else + { + bool flag2 = this.mBossHp <= 0u; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_BOSSDIE_HINT"), "fece00"); + result = false; + } + else + { + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GuildDragon); + if (flag3) + { + bool flag4 = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnGoBattleClick), button); + if (flag4) + { + return true; + } + this._Doc.ReqEnterScene(); + } + else + { + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildDragon)); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_GUILD_DRAGONOPEN", new object[] + { + sysOpenLevel + }), "fece00"); + } + result = true; + } + } + return result; + } + + public void RefreshGuildRoleRank() + { + List rankList = this._Doc.PersonRankList.rankList; + bool flag = rankList.Count == 0; + if (flag) + { + base.uiBehaviour.m_RankPanel_EmptyRank.gameObject.SetActive(true); + base.uiBehaviour.m_RankPanel_EmptyRank.SetText(XStringDefineProxy.GetString("GUILD_BOSS_EMPTY_RANK")); + base.uiBehaviour.m_WrapContent.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_RankPanel_EmptyRank.gameObject.SetActive(false); + base.uiBehaviour.m_WrapContent.gameObject.SetActive(true); + base.uiBehaviour.m_WrapContent.SetContentCount(rankList.Count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + + private void GuildRankWrapContentItemUpdated(Transform t, int index) + { + List rankList = this._Doc.PersonRankList.rankList; + bool flag = index < 0 || index >= rankList.Count; + if (!flag) + { + XWorldBossDamageRankInfo xworldBossDamageRankInfo = rankList[index] as XWorldBossDamageRankInfo; + bool flag2 = xworldBossDamageRankInfo == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("XGuildDragonView.GuildRankWrapContentItemUpdated is null ", null, null, null, null, null); + } + else + { + IXUISprite ixuisprite = t.Find("Rank").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Rank3").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("shanghai").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(XSingleton.singleton.NumberFormatBillion((ulong)xworldBossDamageRankInfo.damage)); + ixuilabel2.SetText(xworldBossDamageRankInfo.name); + switch (index) + { + case 0: + ixuisprite.spriteName = "N1"; + ixuisprite.SetVisible(true); + break; + case 1: + ixuisprite.spriteName = "N2"; + ixuisprite.SetVisible(true); + break; + case 2: + ixuisprite.spriteName = "N3"; + ixuisprite.SetVisible(true); + break; + default: + ixuisprite.SetVisible(false); + ixuilabel.SetText((index + 1).ToString()); + break; + } + } + } + } + + public void _SetMyRankFrame(XBaseRankList list) + { + bool flag = list.rankList.Count == 0; + if (flag) + { + base.uiBehaviour.outofRange.SetActive(false); + base.uiBehaviour.rankInfo.SetActive(false); + } + else + { + XBaseRankInfo latestMyRankInfo = list.GetLatestMyRankInfo(); + bool flag2 = latestMyRankInfo == null || latestMyRankInfo.id == 0UL; + if (flag2) + { + base.uiBehaviour.rankInfo.SetActive(false); + } + else + { + base.uiBehaviour.rankInfo.SetActive(true); + IXUISprite ixuisprite = base.uiBehaviour.rankInfo.transform.Find("Rank").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = base.uiBehaviour.rankInfo.transform.Find("Name").gameObject.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = base.uiBehaviour.rankInfo.transform.Find("shanghai").gameObject.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = base.uiBehaviour.rankInfo.transform.Find("Rank3").gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(latestMyRankInfo.name); + XWorldBossDamageRankInfo xworldBossDamageRankInfo = latestMyRankInfo as XWorldBossDamageRankInfo; + float num = 0f; + bool flag3 = xworldBossDamageRankInfo != null; + if (flag3) + { + num = xworldBossDamageRankInfo.damage; + } + ixuilabel2.SetText(XSingleton.singleton.NumberFormatBillion((ulong)num)); + switch (latestMyRankInfo.rank) + { + case 0u: + ixuisprite.spriteName = "N1"; + ixuisprite.SetVisible(true); + break; + case 1u: + ixuisprite.spriteName = "N2"; + ixuisprite.SetVisible(true); + break; + case 2u: + ixuisprite.spriteName = "N3"; + ixuisprite.SetVisible(true); + break; + default: + ixuisprite.SetVisible(false); + ixuilabel3.SetText((latestMyRankInfo.rank + 1u).ToString()); + break; + } + base.uiBehaviour.outofRange.SetActive(latestMyRankInfo.rank == XRankDocument.INVALID_RANK); + } + } + } + + public void ShowDropList(int order, string title, uint listDropList0, uint listDropList1) + { + GameObject gameObject = base.uiBehaviour.transform.Find("Bg/Frame/DropFrame/Item" + order).gameObject; + bool flag = listDropList0 == uint.MaxValue && listDropList1 == uint.MaxValue; + if (flag) + { + gameObject.SetActive(false); + } + else + { + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)listDropList0, (int)listDropList1, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)listDropList0; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + IXUILabel ixuilabel = gameObject.transform.Find("ssssss").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(title); + } + } + + public void ShowCurrentBoss(AskGuildBossInfoRes oRes, string BossNamePrefix, uint BossID, uint rank) + { + string name = XSingleton.singleton.EntityStatistics.GetByID(BossID).Name; + base.uiBehaviour.m_BossName.SetText(BossNamePrefix + name); + string text = string.Empty; + bool flag = oRes.needguildlvl > 0u; + if (flag) + { + text += string.Format(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_RANK"), rank); + } + bool flag2 = !string.IsNullOrEmpty(text); + if (flag2) + { + text += ","; + } + bool flag3 = oRes.needKillBossId > 0u; + if (flag3) + { + text += string.Format(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_BOSS"), new object[0]); + } + base.uiBehaviour.m_Condition.SetText(text); + bool flag4 = oRes.needguildlvl == 0u && oRes.needKillBossId == 0u; + if (flag4) + { + base.uiBehaviour.m_ConditionTitle.SetText(""); + } + } + + private void OnPrivilegeClick(IXUISprite btn) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildDragonView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildDragonView.cs.meta new file mode 100644 index 00000000..dd8c3dee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildDragonView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90b893bf14e58074cb2ab2d0d0e656f8 +timeCreated: 1611404140 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildEditAnnounceView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildEditAnnounceView.cs new file mode 100644 index 00000000..57ce4cb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildEditAnnounceView.cs @@ -0,0 +1,64 @@ +using System; +using UILib; + +namespace XMainClient.UI +{ + internal class XGuildEditAnnounceView : DlgHandlerBase + { + private IXUIInput m_Input; + + private XGuildHallDocument _HallDoc; + + private XGuildDocument _GuildDoc; + + private string m_inputValue; + + protected override void Init() + { + this.m_Input = (base.PanelObject.transform.Find("EditAnnounceMenu/Input").GetComponent("XUIInput") as IXUIInput); + this._HallDoc = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + IXUIButton ixuibutton2 = base.PanelObject.transform.Find("EditAnnounceMenu/OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClicked)); + this.m_Input.RegisterChangeEventHandler(new InputChangeEventHandler(this._OnInputChangeHandler)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_Input.SetText(this._GuildDoc.BasicData.actualAnnoucement); + } + + private void _OnInputChangeHandler(IXUIInput input) + { + string text = input.GetText(); + bool flag = string.IsNullOrEmpty(text) || text.Equals(this.m_inputValue); + if (!flag) + { + this.m_inputValue = input.GetText(); + this.m_inputValue = this.m_inputValue.Replace("\n", string.Empty); + input.SetText(this.m_inputValue); + } + } + + private bool _OnOKBtnClicked(IXUIButton btn) + { + string text = this.m_Input.GetText(); + this._HallDoc.ReqEditAnnounce(text); + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildEditAnnounceView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildEditAnnounceView.cs.meta new file mode 100644 index 00000000..9b7a934b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildEditAnnounceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 803e1781a8eca264783ea0632abe5379 +timeCreated: 1611404033 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthDonateBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthDonateBehavior.cs new file mode 100644 index 00000000..6c1069d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthDonateBehavior.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGuildGrowthDonateBehavior : DlgBehaviourBase + { + public GameObject RecordDlg; + + public IXUIScrollView ScrollView; + + public IXUIWrapContent WrapContent; + + public IXUIButton CloseBtn; + + public IXUIButton RecordBtn; + + public IXUIScrollView RecordDlgScrollView; + + public IXUIWrapContent RecordWrapContent; + + private void Awake() + { + this.RecordDlg = base.transform.Find("RecordDlg").gameObject; + this.RecordDlgScrollView = (base.transform.Find("RecordDlg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.RecordWrapContent = (base.transform.Find("RecordDlg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.ScrollView = (base.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.WrapContent = (base.transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.RecordBtn = (base.transform.Find("RecordBtn").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthDonateBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthDonateBehavior.cs.meta new file mode 100644 index 00000000..5f676175 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthDonateBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09d285db14bf4474ca0214a3a831f7a1 +timeCreated: 1611403159 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthEntranceBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthEntranceBehavior.cs new file mode 100644 index 00000000..6cc3b463 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthEntranceBehavior.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGuildGrowthEntranceBehavior : DlgBehaviourBase + { + public IXUIButton BuilderBtn; + + public IXUIButton LabBtn; + + public IXUIButton CloseBtn; + + private void Awake() + { + this.BuilderBtn = (base.transform.Find("Bg/Rukou0/BuilderBtn").GetComponent("XUIButton") as IXUIButton); + this.LabBtn = (base.transform.Find("Bg/Rukou1/LabBtn").GetComponent("XUIButton") as IXUIButton); + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthEntranceBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthEntranceBehavior.cs.meta new file mode 100644 index 00000000..8c8cfd14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildGrowthEntranceBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1e3df84dd4f9775458fc13a4d7d1e455 +timeCreated: 1611403361 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildHallBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildHallBehaviour.cs new file mode 100644 index 00000000..5cae34fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildHallBehaviour.cs @@ -0,0 +1,163 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildHallBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnExit; + + public IXUIButton m_BtnLog; + + public IXUIButton m_BtnEditAnnounce; + + public IXUIButton m_BtnRank; + + public IXUIButton m_BtnEnter; + + public IXUIButton m_BtnEditPortrait; + + public IXUIButton m_BtnMall; + + public IXUIButton m_BtnSignIn; + + public IXUIButton m_BtnSkill; + + public IXUIButton m_BtnMembers; + + public IXUIButton m_BtnApprove; + + public IXUIButton m_BtnDonate; + + public IXUIButton m_BtnGZ; + + public IXUIButton m_BtnRedPacker; + + public IXUIButton m_BtnDmx; + + public IXUIButton m_BtnJoker; + + public IXUIButton m_BtnConsider; + + public IXUIButton m_BtnBuild; + + public IXUIButton m_BtnWXGroup; + + public IXUIButton m_BtnWXGroupShare; + + public IXUILabel m_WXGroupTip; + + public IXUIButton m_BtnQQGroup; + + public IXUILabel m_QQGroupTip; + + public IXUILabel m_QQGroupName; + + public IXUISprite m_Portrait; + + public IXUISprite m_LivenessTipSprite; + + public IXUILabel m_LivenessTipsLabel; + + public IXUISprite m_PopularityTipSprite; + + public IXUILabel m_PopularityTipLabel; + + public IXUISprite m_ExpTipsSprite; + + public IXUILabel m_ExpTipsLabel; + + public IXUILabel m_Annoucement; + + public GameObject m_EditAnnouncePanel; + + public GameObject m_LogPanel; + + public List m_checkGuildList = new List(); + + public XGuildBasicInfoDisplay m_BasicInfoDisplay = new XGuildBasicInfoDisplay(); + + public XUIPool m_ShielterItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_GrowthBuffHelpFrame; + + public IXUILabel m_GrowthBuffHelpLabel; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnExit = (base.transform.Find("Bg/BtnExit").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSignIn = (base.transform.Find("Bg/BtnSignIn").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSignIn.ID = 810UL; + this.m_BtnSkill = (base.transform.Find("Bg/BtnSkill").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSkill.ID = 812UL; + this.m_BtnMembers = (base.transform.Find("Bg/BtnMembers").GetComponent("XUIButton") as IXUIButton); + this.m_BtnMembers.ID = 813UL; + this.m_BtnApprove = (base.transform.Find("Bg/BtnApprove").GetComponent("XUIButton") as IXUIButton); + this.m_BtnApprove.ID = 811UL; + this.m_BtnLog = (base.transform.Find("Bg/BtnLog").GetComponent("XUIButton") as IXUIButton); + this.m_BtnEditAnnounce = (base.transform.Find("Bg/BtnEditAnnounce").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRank = (base.transform.Find("Bg/BtnRank").GetComponent("XUIButton") as IXUIButton); + this.m_BtnEnter = (base.transform.Find("Bg/BtnEnter").GetComponent("XUIButton") as IXUIButton); + this.m_BtnEnter.ID = 17UL; + this.m_BtnMall = (base.transform.Find("Bg/BtnMall").GetComponent("XUIButton") as IXUIButton); + this.m_BtnDonate = (base.transform.Find("Bg/Donation").GetComponent("XUIButton") as IXUIButton); + this.m_BtnDmx = (base.transform.Find("Bg/BtnDmx").GetComponent("XUIButton") as IXUIButton); + this.m_BtnDmx.ID = 840UL; + this.m_checkGuildList.Add(this.m_BtnDmx); + this.m_BtnGZ = (base.transform.Find("Bg/BtnGz").GetComponent("XUIButton") as IXUIButton); + this.m_BtnGZ.ID = 833UL; + this.m_BtnRedPacker = (base.transform.Find("Bg/BtnRed").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRedPacker.ID = 830UL; + this.m_BtnJoker = (base.transform.Find("Bg/BtnJoker").GetComponent("XUIButton") as IXUIButton); + this.m_BtnJoker.ID = 820UL; + this.m_checkGuildList.Add(this.m_BtnJoker); + this.m_BtnConsider = (base.transform.Find("Bg/BtnConsider").GetComponent("XUIButton") as IXUIButton); + this.m_BtnConsider.ID = 823UL; + this.m_BtnBuild = (base.transform.Find("Bg/BtnBuild").GetComponent("XUIButton") as IXUIButton); + this.m_BtnBuild.ID = 824UL; + this.m_BtnWXGroup = (base.transform.Find("Bg/Group/BtnWXGroup").GetComponent("XUIButton") as IXUIButton); + this.m_BtnWXGroup.gameObject.SetActive(false); + this.m_BtnWXGroupShare = (base.transform.Find("Bg/Group/BtnWXGroupShare").GetComponent("XUIButton") as IXUIButton); + this.m_BtnWXGroupShare.gameObject.SetActive(false); + this.m_WXGroupTip = (base.transform.Find("Bg/Group/BtnWXGroup/LivenessTips").GetComponent("XUILabel") as IXUILabel); + this.m_BtnQQGroup = (base.transform.Find("Bg/Group/BtnQQGroup").GetComponent("XUIButton") as IXUIButton); + this.m_BtnQQGroup.gameObject.SetActive(false); + this.m_QQGroupTip = (base.transform.Find("Bg/Group/BtnQQGroup/LivenessTips").GetComponent("XUILabel") as IXUILabel); + this.m_QQGroupName = (base.transform.Find("Bg/Group/QQGroupInfo").GetComponent("XUILabel") as IXUILabel); + this.m_QQGroupName.gameObject.SetActive(false); + this.m_BtnEditPortrait = (base.transform.Find("Bg/BtnEditPortrait").GetComponent("XUIButton") as IXUIButton); + this.m_Portrait = (base.transform.Find("Bg/BasicInfo/Content/Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_Annoucement = (base.transform.Find("Bg/Bg3/Announcement").GetComponent("XUILabel") as IXUILabel); + this.m_Annoucement.SetText(""); + this.m_BasicInfoDisplay.Init(base.transform.Find("Bg/BasicInfo/Content"), true); + this.m_LivenessTipSprite = (base.transform.Find("Bg/BasicInfo/Content/Liveness/Tips").GetComponent("XUISprite") as IXUISprite); + this.m_LivenessTipsLabel = (base.transform.Find("Bg/BasicInfo/Content/LivenessTips").GetComponent("XUILabel") as IXUILabel); + this.m_PopularityTipSprite = (base.transform.Find("Bg/BasicInfo/Content/Popularity/Tips").GetComponent("XUISprite") as IXUISprite); + this.m_PopularityTipLabel = (base.transform.Find("Bg/BasicInfo/Content/prestigeTips").GetComponent("XUILabel") as IXUILabel); + this.m_PopularityTipLabel.SetVisible(false); + this.m_LivenessTipsLabel.SetVisible(false); + this.m_ExpTipsSprite = (base.transform.Find("Bg/BasicInfo/Content/Exp/Tips").GetComponent("XUISprite") as IXUISprite); + this.m_ExpTipsLabel = (base.transform.Find("Bg/BasicInfo/Content/ExpTips").GetComponent("XUILabel") as IXUILabel); + this.m_ExpTipsLabel.SetVisible(false); + this.m_EditAnnouncePanel = base.transform.Find("Bg/EditAnnouncePanel").gameObject; + this.m_LogPanel = base.transform.Find("Bg/LogPanel").gameObject; + this.m_ShielterItemPool.SetupPool(base.transform.Find("Bg/Bg3").gameObject, base.transform.Find("Bg/Bg3/HallShelterIcon").gameObject, 5u, false); + this.m_GrowthBuffHelpFrame = base.transform.Find("Bg/Bg3/HelpFrame"); + this.m_GrowthBuffHelpLabel = (this.m_GrowthBuffHelpFrame.Find("Helps").GetComponent("XUILabel") as IXUILabel); + this.m_GrowthBuffHelpFrame.gameObject.SetActive(false); + } + + private void OnApplicationPause(bool pause) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + specificDocument.QueryWXGroup(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildHallBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildHallBehaviour.cs.meta new file mode 100644 index 00000000..81c45b0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildHallBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7366294fd2958164e8a64d5aa97622e6 +timeCreated: 1611403940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildHallView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildHallView.cs new file mode 100644 index 00000000..b78c2d44 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildHallView.cs @@ -0,0 +1,1137 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildHallView : DlgBase + { + public XGuildLogView LogView + { + get + { + return this._LogView; + } + } + + public XGuildEditAnnounceView EditAnnounceView + { + get + { + return this._EditAnnounceView; + } + } + + public bool Deprecated { get; set; } + + public override string fileName + { + get + { + return "Guild/GuildHallDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XGuildHallDocument _HallDoc; + + private XGuildDocument _GuildDoc; + + private XGuildGrowthDocument _GrowthDoc; + + private XGuildEditAnnounceView _EditAnnounceView; + + private XGuildLogView _LogView; + + private XSubSysRedPointMgr redpointMgr = new XSubSysRedPointMgr(); + + protected override void Init() + { + this._HallDoc = XDocuments.GetSpecificDocument(XGuildHallDocument.uuID); + this._HallDoc.GuildHallView = this; + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this._GrowthDoc = XDocuments.GetSpecificDocument(XGuildGrowthDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this._EditAnnounceView, base.uiBehaviour.m_EditAnnouncePanel, null, true); + DlgHandlerBase.EnsureCreate(ref this._LogView, base.uiBehaviour.m_LogPanel, null, true); + this._LogView.LogSource = this._HallDoc; + IXUIObject[] btns = new IXUIObject[] + { + base.uiBehaviour.m_BtnApprove, + base.uiBehaviour.m_BtnSignIn, + base.uiBehaviour.m_BtnSkill, + base.uiBehaviour.m_BtnMembers, + base.uiBehaviour.m_BtnEnter, + base.uiBehaviour.m_BtnGZ, + base.uiBehaviour.m_BtnDmx, + base.uiBehaviour.m_BtnRedPacker, + base.uiBehaviour.m_BtnJoker + }; + this.redpointMgr.SetupRedPoints(btns); + XSingleton.singleton.RegisterSubSysRedPointMgr(XSysDefine.XSys_GuildHall, this.redpointMgr); + } + + protected override void OnUnload() + { + this._HallDoc.GuildHallView = null; + DlgHandlerBase.EnsureUnload(ref this._EditAnnounceView); + DlgHandlerBase.EnsureUnload(ref this._LogView); + XSingleton.singleton.RegisterSubSysRedPointMgr(XSysDefine.XSys_GuildHall, null); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnExit.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnExitGuildBtnClick)); + base.uiBehaviour.m_BtnSignIn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSignInBtnClick)); + base.uiBehaviour.m_BtnMall.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnMallClick)); + base.uiBehaviour.m_BtnDonate.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDonationClick)); + base.uiBehaviour.m_BtnMembers.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnMembersBtnClick)); + base.uiBehaviour.m_BtnSkill.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSkillBtnClick)); + base.uiBehaviour.m_BtnApprove.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnApproveBtnClick)); + base.uiBehaviour.m_BtnLog.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnLogBtnClick)); + base.uiBehaviour.m_BtnEditAnnounce.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnEditAnnounceBtnClick)); + base.uiBehaviour.m_BtnRank.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnRankBtnClick)); + base.uiBehaviour.m_BtnEnter.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnEnterGuildBtnClick)); + base.uiBehaviour.m_LivenessTipSprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnLivenessPress)); + base.uiBehaviour.m_PopularityTipSprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnPopularityTipPress)); + base.uiBehaviour.m_ExpTipsSprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnExpTipsPress)); + base.uiBehaviour.m_BtnEditPortrait.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnPortraitClick)); + base.uiBehaviour.m_BtnWXGroup.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildWXGroupClick)); + base.uiBehaviour.m_BtnWXGroupShare.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildWXGroupShare)); + base.uiBehaviour.m_BtnQQGroup.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildQQGroupClick)); + base.uiBehaviour.m_BtnGZ.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildSalaryClick)); + base.uiBehaviour.m_BtnDmx.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildDungeonClick)); + base.uiBehaviour.m_BtnJoker.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildJokingClick)); + base.uiBehaviour.m_BtnRedPacker.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildRedPackerClick)); + base.uiBehaviour.m_BtnConsider.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildConsiderClick)); + base.uiBehaviour.m_BtnBuild.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGuildBuildClick)); + } + + private void CheckOpenSystem() + { + int i = 0; + int count = base.uiBehaviour.m_checkGuildList.Count; + while (i < count) + { + Transform transform = base.uiBehaviour.m_checkGuildList[i].gameObject.transform.Find("Lock"); + bool flag = transform == null; + if (!flag) + { + bool flag2 = true; + bool flag3 = base.uiBehaviour.m_checkGuildList[i].ID > 0UL; + if (flag3) + { + XSysDefine xsysDefine = (XSysDefine)base.uiBehaviour.m_checkGuildList[i].ID; + uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel(xsysDefine); + XSingleton.singleton.AddGreenLog(xsysDefine.ToString() + " " + unlockLevel.ToString(), null, null, null, null, null); + bool flag4 = this._GuildDoc.bInGuild && this._GuildDoc.Level >= unlockLevel && XSingleton.singleton.IsSystemOpened(xsysDefine); + if (flag4) + { + flag2 = false; + bool flag5 = xsysDefine == XSysDefine.XSys_GuildDungeon_SmallMonter; + if (flag5) + { + XGuildSmallMonsterDocument specificDocument = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + bool flag6 = !specificDocument.CheckEnterLevel(); + if (flag6) + { + flag2 = true; + } + DlgBase.singleton.RefreshRedp(); + } + } + } + else + { + flag2 = true; + } + base.uiBehaviour.m_checkGuildList[i].SetGrey(!flag2); + transform.gameObject.SetActive(flag2); + } + i++; + } + } + + private bool _OnGuildSalaryClick(IXUIButton btn) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool _OnGuildDungeonClick(IXUIButton btn) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !this.TryCheckInGuildSystem(XSysDefine.XSys_GuildDungeon_SmallMonter); + if (flag2) + { + result = false; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + } + return result; + } + + private bool _OnGuildJokingClick(IXUIButton btn) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool _OnGuildRedPackerClick(IXUIButton btn) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool _OnGuildConsiderClick(IXUIButton button) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool _OnGuildBuildClick(IXUIButton btn) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool TryCheckInGuildSystem(XSysDefine sys) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.bInGuild; + bool result; + if (flag) + { + result = false; + } + else + { + uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel(sys); + bool flag2 = specificDocument.Level < unlockLevel; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_MAZE_NO_GUILD_LEVEL", new object[] + { + unlockLevel + }), "fece00"); + result = false; + } + else + { + bool flag3 = !XSingleton.singleton.IsSystemOpened(sys); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_MAZE_NO_PLAYER_LEVEL", new object[] + { + XSingleton.singleton.GetSystemOpenLevel(sys) + }), "fece00"); + result = false; + } + else + { + bool flag4 = sys == XSysDefine.XSys_GuildDungeon_SmallMonter; + if (flag4) + { + XGuildSmallMonsterDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + bool flag5 = !specificDocument2.CheckEnterLevel(); + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_MAZE_NO_PLAYER_LEVEL", new object[] + { + specificDocument2.GetEnterLevel() + }), "fece00"); + return false; + } + } + result = true; + } + } + } + return result; + } + + protected override void OnShow() + { + this._GrowthDoc.QueryBuffList(); + this._GuildDoc.QueryWXGroup(); + this._GuildDoc.QueryQQGroup(); + this._EditAnnounceView.SetVisible(false); + this._LogView.SetVisible(false); + this._HallDoc.ReqGuildBrief(); + this.RefreshPortrait(); + this.CheckOpenSystem(); + this.redpointMgr.UpdateRedPointUI(); + base.uiBehaviour.m_BtnEnter.SetVisible(XSingleton.singleton.SceneType != SceneType.SCENE_GUILD_HALL); + this.Refresh(); + this.RefreshGrowthBuffList(); + } + + public void RefreshGrowthBuffList() + { + base.uiBehaviour.m_ShielterItemPool.ReturnAll(false); + int num = 0; + for (int i = 1; i < this._GrowthDoc.BuffList.Count; i++) + { + bool flag = !this._GrowthDoc.BuffList[i].Enable; + if (!flag) + { + GuildHall.RowData data = this._GrowthDoc.GetData(this._GrowthDoc.BuffList[i].BuffID, this._GrowthDoc.BuffList[i].BuffLevel); + bool flag2 = data == null; + if (!flag2) + { + GameObject gameObject = base.uiBehaviour.m_ShielterItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_ShielterItemPool.TplPos.x + (float)(num * base.uiBehaviour.m_ShielterItemPool.TplWidth), base.uiBehaviour.m_ShielterItemPool.TplPos.y); + IXUISprite ixuisprite = gameObject.transform.Find("HallShelterIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetGrey(this._GrowthDoc.BuffList[i].Enable); + ixuisprite.SetSprite(data.icon, data.atlas, false); + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)i); + ixuisprite2.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnGrowthBuffClick)); + num++; + } + } + } + for (int j = 1; j < this._GrowthDoc.BuffList.Count; j++) + { + bool enable = this._GrowthDoc.BuffList[j].Enable; + if (!enable) + { + GuildHall.RowData data2 = this._GrowthDoc.GetData(this._GrowthDoc.BuffList[j].BuffID, this._GrowthDoc.BuffList[j].BuffLevel); + bool flag3 = data2 == null; + if (!flag3) + { + GameObject gameObject2 = base.uiBehaviour.m_ShielterItemPool.FetchGameObject(false); + gameObject2.transform.localPosition = new Vector3(base.uiBehaviour.m_ShielterItemPool.TplPos.x + (float)(num * base.uiBehaviour.m_ShielterItemPool.TplWidth), base.uiBehaviour.m_ShielterItemPool.TplPos.y); + IXUISprite ixuisprite3 = gameObject2.transform.Find("HallShelterIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.SetGrey(this._GrowthDoc.BuffList[j].Enable); + ixuisprite3.SetSprite(data2.icon, data2.atlas, false); + IXUISprite ixuisprite4 = gameObject2.GetComponent("XUISprite") as IXUISprite; + ixuisprite4.ID = (ulong)((long)j); + ixuisprite4.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnGrowthBuffClick)); + num++; + } + } + } + } + + private bool OnGrowthBuffClick(IXUISprite iSp, bool state) + { + base.uiBehaviour.m_GrowthBuffHelpFrame.gameObject.SetActive(state); + if (state) + { + base.uiBehaviour.m_GrowthBuffHelpFrame.localPosition = iSp.transform.localPosition; + GuildHall.RowData data = this._GrowthDoc.GetData(this._GrowthDoc.BuffList[(int)iSp.ID].BuffID, this._GrowthDoc.BuffList[(int)iSp.ID].BuffLevel); + bool flag = data == null; + if (flag) + { + base.uiBehaviour.m_GrowthBuffHelpFrame.gameObject.SetActive(false); + return false; + } + bool flag2 = !this._GrowthDoc.BuffList[(int)iSp.ID].Enable; + if (flag2) + { + base.uiBehaviour.m_GrowthBuffHelpLabel.SetText(string.Format("{0}\n{1}", data.currentLevelDescription, XStringDefineProxy.GetString("GuildGrowthBuffLearnTips"))); + } + else + { + bool flag3 = this._GrowthDoc.BuffList[(int)iSp.ID].BuffLevel == this._GrowthDoc.BuffList[(int)iSp.ID].BuffMaxLevel; + if (flag3) + { + base.uiBehaviour.m_GrowthBuffHelpLabel.SetText(data.currentLevelDescription); + } + else + { + GuildHall.RowData data2 = this._GrowthDoc.GetData(this._GrowthDoc.BuffList[(int)iSp.ID].BuffID, this._GrowthDoc.BuffList[(int)iSp.ID].BuffLevel + 1u); + bool flag4 = data2 == null; + if (flag4) + { + return false; + } + base.uiBehaviour.m_GrowthBuffHelpLabel.SetText(string.Format("{0}\n{1}\n{2}", data.currentLevelDescription, XStringDefineProxy.GetString("GuildGrowthBuffNextLevel"), data2.currentLevelDescription)); + } + } + } + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnPopularityTipPress(IXUISprite uiSprite, bool isPressed) + { + if (isPressed) + { + bool flag = !base.uiBehaviour.m_PopularityTipLabel.IsVisible(); + if (flag) + { + base.uiBehaviour.m_PopularityTipLabel.SetVisible(true); + } + base.uiBehaviour.m_PopularityTipLabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GUILD_RANK_TIPS"))); + } + else + { + bool flag2 = base.uiBehaviour.m_PopularityTipLabel.IsVisible(); + if (flag2) + { + base.uiBehaviour.m_PopularityTipLabel.SetVisible(false); + } + } + return false; + } + + private bool _OnExpTipsPress(IXUISprite uiSprite, bool isPressed) + { + if (isPressed) + { + bool flag = !base.uiBehaviour.m_ExpTipsLabel.IsVisible(); + if (flag) + { + base.uiBehaviour.m_ExpTipsLabel.SetVisible(true); + } + base.uiBehaviour.m_ExpTipsLabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GUILD_EXP_TIPS"))); + } + else + { + bool flag2 = base.uiBehaviour.m_ExpTipsLabel.IsVisible(); + if (flag2) + { + base.uiBehaviour.m_ExpTipsLabel.SetVisible(false); + } + } + return true; + } + + private bool _OnLivenessPress(IXUISprite uiSprite, bool isPressed) + { + if (isPressed) + { + bool flag = !base.uiBehaviour.m_LivenessTipsLabel.IsVisible(); + if (flag) + { + base.uiBehaviour.m_LivenessTipsLabel.SetVisible(true); + } + base.uiBehaviour.m_LivenessTipsLabel.SetText(this._GuildDoc.BasicData.GetLivenessTips()); + } + else + { + bool flag2 = base.uiBehaviour.m_LivenessTipsLabel.IsVisible(); + if (flag2) + { + base.uiBehaviour.m_LivenessTipsLabel.SetVisible(false); + } + } + return false; + } + + private bool _OnEnterGuildBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + this._GuildDoc.TryEnterGuildScene(); + result = true; + } + return result; + } + + private bool _OnExitGuildBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_EXIT_CONFIRM"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._OnExitGuild)); + result = true; + } + return result; + } + + private bool _OnExitGuild(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + this._HallDoc.ReqExitGuild(); + XSingleton.singleton.CloseModalDlg(); + result = true; + } + return result; + } + + private bool _OnDonationClick(IXUIButton button) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool _OnMallClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !this._GuildDoc.CheckUnlockLevel(XSysDefine.XSys_GuildBoon_Shop); + if (flag2) + { + result = true; + } + else + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Guild, 0UL); + result = false; + } + } + return result; + } + + private bool _OnSignInBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !this._GuildDoc.CheckUnlockLevel(XSysDefine.XSys_GuildHall_SignIn); + if (flag2) + { + result = true; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + } + return result; + } + + private bool _OnSkillBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !this._GuildDoc.CheckUnlockLevel(XSysDefine.XSys_GuildHall_Skill); + if (flag2) + { + result = true; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + } + return result; + } + + private bool _OnMembersBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool _OnApproveBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckPermission(GuildPermission.GPEM_APPROVAL); + bool result; + if (flag) + { + result = true; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + + private bool _OnLogBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + this._HallDoc.ReqLogList(); + this._LogView.SetVisible(true); + result = true; + } + return result; + } + + private bool _OnEditAnnounceBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckPermission(GuildPermission.GPEM_ANNOUNCEMENT); + bool result; + if (flag) + { + result = true; + } + else + { + this._EditAnnounceView.SetVisible(true); + result = true; + } + return result; + } + + private bool _OnRankBtnClick(IXUIButton go) + { + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank_Guild); + return true; + } + + private bool _OnPortraitClick(IXUIButton go) + { + bool flag = !this._GuildDoc.CheckPermission(GuildPermission.GPEM_ANNOUNCEMENT); + bool result; + if (flag) + { + result = true; + } + else + { + DlgBase.singleton.Open(this._GuildDoc.BasicData.portraitIndex, new ButtonClickEventHandler(this._OnPortraitChanged)); + result = true; + } + return result; + } + + private bool _OnPortraitChanged(IXUIButton btn) + { + int portraitIndex = DlgBase.singleton.PortraitIndex; + this._HallDoc.ReqEditPortrait(portraitIndex); + return true; + } + + public void RefreshPortrait() + { + base.uiBehaviour.m_Portrait.SetSprite(XGuildDocument.GetPortraitName(this._GuildDoc.BasicData.portraitIndex)); + } + + public void RefreshAnnouncement() + { + XGuildBasicData basicData = this._GuildDoc.BasicData; + base.uiBehaviour.m_Annoucement.SetText(basicData.announcement); + } + + public void RefreshButtonsState() + { + base.uiBehaviour.m_BtnApprove.SetVisible(this._GuildDoc.IHavePermission(GuildPermission.GPEM_APPROVAL)); + base.uiBehaviour.m_BtnEditAnnounce.SetVisible(this._GuildDoc.IHavePermission(GuildPermission.GPEM_ANNOUNCEMENT)); + base.uiBehaviour.m_BtnEditPortrait.SetVisible(this._GuildDoc.IHavePermission(GuildPermission.GPEM_SETTINGS)); + this.RefreshWXGroupBtn(); + this.RefreshQQGroupBtn(); + this.RefreshRedPoints(); + } + + public void RefreshRedPoints() + { + this.redpointMgr.UpdateRedPointUI(); + } + + public void Refresh() + { + XGuildBasicData basicData = this._GuildDoc.BasicData; + base.uiBehaviour.m_BasicInfoDisplay.Set(basicData); + this.RefreshAnnouncement(); + this.RefreshButtonsState(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.Refresh(); + this.RefreshRedPoints(); + this.RefreshPortrait(); + this.CheckOpenSystem(); + this._GrowthDoc.QueryBuffList(); + this._HallDoc.ReqGuildBrief(); + } + + public void RefreshWXGroupBtn() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_WeChat || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild_Bind_Group); + if (flag2) + { + base.uiBehaviour.m_BtnWXGroup.SetVisible(false); + base.uiBehaviour.m_BtnWXGroupShare.SetVisible(false); + } + else + { + base.uiBehaviour.m_WXGroupTip.SetVisible(false); + bool flag3 = XSingleton.singleton.wxGroupInfo != null && XSingleton.singleton.wxGroupInfo.data.flag == "Success" && XSingleton.singleton.wxGroupInfo.data.errorCode != -10007; + if (flag3) + { + XSingleton.singleton.AddLog("[WXGroup RefreshWXGroupBtn] 1", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag4 = false; + string[] array = XSingleton.singleton.wxGroupInfo.data.openIdList.Split(new char[] + { + ',' + }); + for (int i = 0; i < array.Length; i++) + { + bool flag5 = array[i] == XSingleton.singleton.OpenID; + if (flag5) + { + flag4 = true; + break; + } + } + bool flag6 = flag4; + if (flag6) + { + XSingleton.singleton.AddLog("[WXGroup RefreshWXGroupBtn] 2", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnWXGroup.SetVisible(false); + base.uiBehaviour.m_BtnWXGroupShare.SetVisible(true); + } + else + { + bool flag7 = XSingleton.singleton.wxGroupInfo.data.errorCode == 0; + if (flag7) + { + XSingleton.singleton.AddLog("[WXGroup RefreshWXGroupBtn] 3", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnWXGroup.SetVisible(true); + base.uiBehaviour.m_BtnWXGroup.ID = 1UL; + base.uiBehaviour.m_BtnWXGroup.SetCaption(XSingleton.singleton.GetString("GUILD_JOIN_WX_GROUP")); + base.uiBehaviour.m_BtnWXGroupShare.SetVisible(false); + base.uiBehaviour.m_WXGroupTip.SetVisible(true); + base.uiBehaviour.m_WXGroupTip.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("GUILD_JOIN_WX_GROUP_TIP"))); + } + else + { + XSingleton.singleton.AddLog("[WXGroup RefreshWXGroupBtn] 4", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnWXGroup.SetVisible(false); + base.uiBehaviour.m_BtnWXGroupShare.SetVisible(false); + } + } + } + else + { + bool flag8 = XSingleton.singleton.wxGroupInfo != null && XSingleton.singleton.wxGroupInfo.data.flag == "Success" && XSingleton.singleton.wxGroupInfo.data.errorCode == -10007; + if (flag8) + { + XSingleton.singleton.AddLog("[WXGroup RefreshWXGroupBtn] 5", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag9 = this._GuildDoc.Position == GuildPosition.GPOS_LEADER; + if (flag9) + { + base.uiBehaviour.m_BtnWXGroup.ID = 0UL; + base.uiBehaviour.m_BtnWXGroup.SetVisible(true); + base.uiBehaviour.m_BtnWXGroup.SetCaption(XSingleton.singleton.GetString("GUILD_CREATE_WX_GROUP")); + base.uiBehaviour.m_BtnWXGroupShare.SetVisible(false); + base.uiBehaviour.m_WXGroupTip.SetVisible(true); + base.uiBehaviour.m_WXGroupTip.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("GUILD_CREATE_WX_GROUP_TIP"))); + } + else + { + base.uiBehaviour.m_BtnWXGroup.SetVisible(false); + base.uiBehaviour.m_BtnWXGroupShare.SetVisible(false); + } + } + else + { + XSingleton.singleton.AddLog("[WXGroup RefreshWXGroupBtn] 6", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnWXGroup.SetVisible(false); + base.uiBehaviour.m_BtnWXGroupShare.SetVisible(false); + } + } + } + } + } + + private bool _OnGuildWXGroupClick(IXUIButton btn) + { + bool flag = XSingleton.singleton.XPlatform.CheckStatus("Weixin_Installed", ""); + bool flag2 = !flag; + bool result; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_WX_NOT_INSTALL"), "fece00"); + result = false; + } + else + { + int num = (int)btn.ID; + Dictionary dictionary = new Dictionary(); + dictionary["unionID"] = this._GuildDoc.BasicData.uid.ToString(); + dictionary["chatRoomNickName"] = XSingleton.singleton.XPlayerData.Name; + bool flag3 = num == 0; + if (flag3) + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.Guild; + dictionary["chatRoomName"] = this._GuildDoc.BasicData.guildName; + string param = Json.Serialize(dictionary); + XSingleton.singleton.XPlatform.CreateWXGroup(param); + } + else + { + bool flag4 = num == 1; + if (flag4) + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.Guild; + string param2 = Json.Serialize(dictionary); + XSingleton.singleton.XPlatform.JoinWXGroup(param2); + } + } + result = true; + } + return result; + } + + public bool _OnGuildWXGroupShare(IXUIButton btn) + { + bool flag = XSingleton.singleton.XPlatform.CheckStatus("Weixin_Installed", ""); + bool flag2 = !flag; + bool result; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_WX_NOT_INSTALL"), "fece00"); + result = false; + } + else + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.Guild; + Dictionary dictionary = new Dictionary(); + dictionary["msgType"] = 1; + dictionary["subType"] = 1; + dictionary["unionid"] = this._GuildDoc.BasicData.uid.ToString(); + dictionary["title"] = XSingleton.singleton.GetValue("GuildGroupShareTitle"); + dictionary["description"] = XSingleton.singleton.GetValue("GuildGroupShareContent"); + dictionary["mediaTagName"] = "MSG_INVITE"; + dictionary["imgUrl"] = XSingleton.singleton.GetValue("GuildGroupShareImgUrl"); + dictionary["messageExt"] = "messageExt"; + dictionary["msdkExtInfo"] = "msdkExtInfo"; + string param = Json.Serialize(dictionary); + XSingleton.singleton.XPlatform.ShareWithWXGroup(param); + result = true; + } + return result; + } + + public void GuildGroupResult(string apiId, string result, int error) + { + XSingleton.singleton.AddLog("[WXGroup GuildGroupResult]appiId:" + apiId + ",result:" + result, null, null, null, null, null, XDebugColor.XDebug_None); + int num = 0; + bool flag = !int.TryParse(apiId, out num); + if (flag) + { + XSingleton.singleton.AddLog("[WXGroup GuildGroupResult]appiId parse failed", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag2 = num == 6; + if (flag2) + { + bool flag3 = result == "Success"; + if (flag3) + { + specificDocument.QueryWXGroup(); + } + else + { + this.HandleErrorCode(error); + } + } + else + { + bool flag4 = num == 8; + if (flag4) + { + bool flag5 = result == "Success"; + if (flag5) + { + specificDocument.QueryWXGroup(); + } + else + { + this.HandleErrorCode(error); + } + } + } + } + } + + private void HandleErrorCode(int errorCode) + { + string key = string.Format("GUILD_GROUP_ERROR_{0}", errorCode.ToString()); + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString(key), "fece00"); + } + + public void RefreshQQGroupBtn() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild_Bind_Group); + if (flag2) + { + base.uiBehaviour.m_BtnQQGroup.SetVisible(false); + base.uiBehaviour.m_QQGroupName.SetVisible(false); + } + else + { + base.uiBehaviour.m_QQGroupName.SetVisible(true); + XSingleton.singleton.AddLog("[QQGroup RefreshQQGroupBtn] 1", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = this._GuildDoc.qqGroupBindStatus == GuildBindStatus.GBS_Owner || this._GuildDoc.qqGroupBindStatus == GuildBindStatus.GBS_Admin || this._GuildDoc.qqGroupBindStatus == GuildBindStatus.GBS_Member; + if (flag3) + { + bool flag4 = this._GuildDoc.Position == GuildPosition.GPOS_LEADER; + if (flag4) + { + XSingleton.singleton.AddLog("[QQGroup RefreshQQGroupBtn] 2", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnQQGroup.SetVisible(true); + base.uiBehaviour.m_BtnQQGroup.ID = 1UL; + base.uiBehaviour.m_BtnQQGroup.SetCaption(XSingleton.singleton.GetString("GUILD_UNBIND_QQ_GROUP")); + base.uiBehaviour.m_QQGroupTip.SetVisible(false); + base.uiBehaviour.m_QQGroupName.SetText(this._GuildDoc.qqGroupName); + } + else + { + XSingleton.singleton.AddLog("[QQGroup RefreshQQGroupBtn] 3", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnQQGroup.SetVisible(false); + base.uiBehaviour.m_QQGroupName.SetText(this._GuildDoc.qqGroupName); + } + } + else + { + bool flag5 = this._GuildDoc.qqGroupBindStatus == GuildBindStatus.GBS_NotBind; + if (flag5) + { + bool flag6 = this._GuildDoc.Position == GuildPosition.GPOS_LEADER; + if (flag6) + { + XSingleton.singleton.AddLog("[QQGroup RefreshQQGroupBtn] 4", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnQQGroup.ID = 2UL; + base.uiBehaviour.m_BtnQQGroup.SetVisible(true); + base.uiBehaviour.m_BtnQQGroup.SetCaption(XSingleton.singleton.GetString("GUILD_BIND_QQ_GROUP")); + base.uiBehaviour.m_QQGroupName.SetText(XSingleton.singleton.GetString("GUILD_NOT_BIN_QQ_GROUP")); + base.uiBehaviour.m_QQGroupTip.SetVisible(true); + base.uiBehaviour.m_QQGroupTip.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("GUILD_CREATE_QQ_GROUP_TIP"))); + } + else + { + XSingleton.singleton.AddLog("[QQGroup RefreshQQGroupBtn] 5", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnQQGroup.SetVisible(false); + base.uiBehaviour.m_QQGroupName.SetText(XSingleton.singleton.GetString("GUILD_NOT_BIN_QQ_GROUP")); + base.uiBehaviour.m_QQGroupTip.SetVisible(false); + } + } + else + { + bool flag7 = this._GuildDoc.qqGroupBindStatus == GuildBindStatus.GBS_NotMember; + if (flag7) + { + XSingleton.singleton.AddLog("[QQGroup RefreshQQGroupBtn] 6", null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_BtnQQGroup.SetVisible(true); + base.uiBehaviour.m_BtnQQGroup.ID = 3UL; + base.uiBehaviour.m_BtnQQGroup.SetCaption(XSingleton.singleton.GetString("GUILD_JOIN_QQ_GROUP")); + base.uiBehaviour.m_QQGroupName.SetText(this._GuildDoc.qqGroupName); + base.uiBehaviour.m_QQGroupTip.SetVisible(true); + base.uiBehaviour.m_QQGroupTip.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("GUILD_JOIN_QQ_GROUP_TIP"))); + } + } + } + } + } + } + + private bool _OnGuildQQGroupClick(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num == 2; + if (flag) + { + this._GuildDoc.BindQQGroup(); + } + else + { + bool flag2 = num == 3; + if (flag2) + { + this._GuildDoc.JoinQQGroup(); + } + else + { + bool flag3 = num == 1; + if (flag3) + { + this._GuildDoc.UnbindQQGroup(); + } + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildHallView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildHallView.cs.meta new file mode 100644 index 00000000..54f8a231 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildHallView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dde68928cddceb0449910349fcae7f26 +timeCreated: 1611404684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildHuntDramaOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildHuntDramaOperate.cs new file mode 100644 index 00000000..da2efedf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildHuntDramaOperate.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildHuntDramaOperate : XDramaOperate + { + private XDramaOperateParam _param; + + public override void ShowNpc(XNpc npc) + { + base.ShowNpc(npc); + this._param = XDataPool.GetData(); + this._param.Npc = npc; + this._param.Text = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildGrowthHuntText")); + this._param.AppendButton(XStringDefineProxy.GetString("GuildGrowthHuntOK"), new ButtonClickEventHandler(this.ToDoSomething), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("GuildGrowthHuntRefuse"), new ButtonClickEventHandler(this.CloseUI), 0UL); + base._FireEvent(this._param); + } + + private bool ToDoSomething(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelGuildHunt); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag2 = expeditionList.Count > 0; + if (flag2) + { + specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID); + } + return true; + } + + private bool CloseUI(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildHuntDramaOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildHuntDramaOperate.cs.meta new file mode 100644 index 00000000..cd2a08fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildHuntDramaOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7d631a79dbc8b5f41859654683123633 +timeCreated: 1611404000 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs new file mode 100644 index 00000000..6a98c5b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGuildListBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public IXUIButton m_Create; + + public IXUIButton m_QuickJoin; + + public IXUIButton m_Search; + + public IXUIInput m_SearchText; + + public GameObject m_CreatePanel; + + public XTitleBar m_TitleBar; + + public Dictionary m_helpList = new Dictionary(); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_Create = (base.transform.Find("Bg/Create").GetComponent("XUIButton") as IXUIButton); + this.m_QuickJoin = (base.transform.Find("Bg/QuickJoin").GetComponent("XUIButton") as IXUIButton); + this.m_Search = (base.transform.Find("Bg/Search").GetComponent("XUIButton") as IXUIButton); + this.m_SearchText = (base.transform.Find("Bg/SearchText").GetComponent("XUIInput") as IXUIInput); + this.m_CreatePanel = base.transform.Find("Bg/CreatePanel").gameObject; + Transform transform = base.transform.Find("Bg/HelpList"); + int i = 0; + int childCount = transform.childCount; + while (i < childCount) + { + Transform child = transform.GetChild(i); + this.m_helpList.Add(child.GetComponent("XUIButton") as IXUIButton, child.name); + i++; + } + Transform transform2 = base.transform.Find("Bg/Titles"); + DlgHandlerBase.EnsureCreate(ref this.m_TitleBar, transform2.gameObject, null, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs.meta new file mode 100644 index 00000000..c5803e8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildListBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: efd7eddd3e25b884395622bf7b1292ca +timeCreated: 1611404805 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildListView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildListView.cs new file mode 100644 index 00000000..290031f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildListView.cs @@ -0,0 +1,377 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildListView : DlgBase + { + public XGuildCreateView CreateView + { + get + { + return this._CreateView; + } + } + + public override string fileName + { + get + { + return "Guild/GuildListDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private int CurPPT + { + get + { + bool getPPT = this.GetPPT; + if (getPPT) + { + XPlayer player = XSingleton.singleton.Player; + XPlayerAttributes xplayerAttributes = player.Attributes as XPlayerAttributes; + this.m_curPPT = (int)xplayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + this.GetPPT = false; + } + return this.m_curPPT; + } + } + + public static readonly Color TitleUnSelectedColor = new Color(0.607843161f, 0.607843161f, 0.607843161f); + + public static readonly Color TitleSelectedColor = Color.white; + + private XGuildListDocument _ListDoc; + + private XGuildDocument _GuildDoc; + + private XGuildCreateView _CreateView; + + private XGuildBasicInfoDisplay _BasicInfoDisplayer = new XGuildBasicInfoDisplay(); + + private int m_curPPT = 0; + + private bool GetPPT = false; + + protected override void Init() + { + this._ListDoc = XDocuments.GetSpecificDocument(XGuildListDocument.uuID); + this._ListDoc.GuildListView = this; + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + base.uiBehaviour.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.WrapContentItemInit)); + foreach (IXUIButton ixuibutton in base.uiBehaviour.m_helpList.Keys) + { + Guildintroduce.RowData introduce = this._GuildDoc.GetIntroduce(ixuibutton.gameObject.name); + bool flag = introduce != null; + if (flag) + { + IXUILabel ixuilabel = ixuibutton.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(introduce.Title); + } + } + DlgHandlerBase.EnsureCreate(ref this._CreateView, base.uiBehaviour.m_CreatePanel, null, true); + } + + protected override void OnUnload() + { + this._ListDoc.GuildListView = null; + DlgHandlerBase.EnsureUnload(ref this._CreateView); + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_TitleBar); + base.OnUnload(); + } + + public override void Reset() + { + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_Create.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCreateBtnClick)); + base.uiBehaviour.m_Search.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSearchBtnClick)); + base.uiBehaviour.m_QuickJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnQuickJoinBtnClick)); + base.uiBehaviour.m_TitleBar.RegisterClickEventHandler(new TitleClickEventHandler(this._OnTitleClickEventHandler)); + foreach (IXUIButton ixuibutton in base.uiBehaviour.m_helpList.Keys) + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._ShowHelpClick)); + } + } + + protected override void OnShow() + { + base.uiBehaviour.m_SearchText.SetText(""); + this._ListDoc.SearchText = ""; + this._ListDoc.ReqGuildList(); + this._CreateView.SetVisible(false); + this.RefreshPage(true); + base.uiBehaviour.m_TitleBar.Refresh((ulong)((long)XFastEnumIntEqualityComparer.ToInt(this._ListDoc.SortType))); + } + + private bool _OnTitleClickEventHandler(ulong ID) + { + this._ListDoc.SortType = (GuildSortType)ID; + this._ListDoc.ReqGuildList(); + return this._ListDoc.SortDirection > 0; + } + + public void RefreshPage(bool bResetPosition = true) + { + List listData = this._ListDoc.ListData; + this.GetPPT = true; + base.uiBehaviour.m_WrapContent.SetContentCount(listData.Count, false); + } + + public void NewContentAppended() + { + List listData = this._ListDoc.ListData; + base.uiBehaviour.m_WrapContent.SetContentCount(listData.Count, false); + } + + private bool _ShowHelpClick(IXUIButton button) + { + string helpName; + bool flag = this.m_uiBehaviour.m_helpList.TryGetValue(button, out helpName); + bool result; + if (flag) + { + Guildintroduce.RowData introduce = this._GuildDoc.GetIntroduce(helpName); + bool flag2 = introduce != null; + if (flag2) + { + XSingleton.singleton.ShowSystemHelp(introduce.Desc, introduce.Title, XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + } + result = true; + } + else + { + result = false; + } + return result; + } + + private void WrapContentItemInit(Transform t, int index) + { + IXUIButton ixuibutton = t.Find("ValidContent/Apply").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnJoinBtnClick)); + ixuibutton = (t.Find("ValidContent/View").GetComponent("XUIButton") as IXUIButton); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnViewBtnClick)); + IXUILabel ixuilabel = t.Find("LoadMore").GetComponent("XUILabel") as IXUILabel; + ixuilabel.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnLoadMoreClick)); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + List listData = this._ListDoc.ListData; + bool flag = index >= listData.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Item index out of range: ", index.ToString(), null, null, null, null); + } + else + { + XGuildListData xguildListData = listData[index]; + Transform transform = t.Find("LoadMore"); + Transform transform2 = t.Find("ValidContent"); + IXUISprite ixuisprite = t.Find("Bg").GetComponent("XUISprite") as IXUISprite; + bool flag2 = xguildListData.uid == 0UL; + if (flag2) + { + ixuisprite.SetVisible(false); + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + } + else + { + ixuisprite.SetVisible(true); + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(true); + this._BasicInfoDisplayer.Init(t.Find("ValidContent"), false); + this._BasicInfoDisplayer.Set(xguildListData); + IXUIButton ixuibutton = t.Find("ValidContent/Apply").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = t.Find("ValidContent/Apply/T").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton2 = t.Find("ValidContent/View").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite2 = t.Find("ValidContent/Portrait").GetComponent("XUISprite") as IXUISprite; + ixuibutton.SetEnable(!xguildListData.bIsApplying && !this._GuildDoc.bInGuild, false); + ixuisprite2.SetSprite(XGuildDocument.GetPortraitName(xguildListData.portraitIndex)); + bool bIsApplying = xguildListData.bIsApplying; + if (bIsApplying) + { + ixuilabel.SetText(XStringDefineProxy.GetString("APPLYING")); + } + else + { + bool flag3 = !xguildListData.bNeedApprove; + if (flag3) + { + ixuilabel.SetText(XStringDefineProxy.GetString("JOIN")); + } + else + { + ixuilabel.SetText(XStringDefineProxy.GetString("APPLY")); + } + ixuibutton.SetGrey((ulong)xguildListData.requiredPPT < (ulong)((long)this.CurPPT)); + } + ixuibutton.ID = (ulong)((long)index); + ixuibutton2.ID = (ulong)((long)index); + } + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnCreateBtnClick(IXUIButton go) + { + bool bInGuild = this._GuildDoc.bInGuild; + bool result; + if (bInGuild) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_ALREADY_IN_GUILD, "fece00"); + result = true; + } + else + { + this._CreateView.SetVisible(true); + result = true; + } + return result; + } + + private bool _OnSearchBtnClick(IXUIButton go) + { + string text = base.uiBehaviour.m_SearchText.GetText(); + this._ListDoc.ReqSearch(text); + return true; + } + + private bool _OnQuickJoinBtnClick(IXUIButton go) + { + bool bInGuild = this._GuildDoc.bInGuild; + bool result; + if (bInGuild) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_ALREADY_IN_GUILD, "fece00"); + result = true; + } + else + { + this._ListDoc.ReqQuickJoin(); + result = true; + } + return result; + } + + private bool _OnViewBtnClick(IXUIButton go) + { + XGuildViewDocument specificDocument = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + int num = (int)go.ID; + bool flag = num < 0 || num >= this._ListDoc.ListData.Count; + bool result; + if (flag) + { + result = true; + } + else + { + specificDocument.View(this._ListDoc.ListData[num]); + result = true; + } + return result; + } + + private bool _OnJoinBtnClick(IXUIButton go) + { + bool bInGuild = this._GuildDoc.bInGuild; + bool result; + if (bInGuild) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_ALREADY_IN_GUILD, "fece00"); + result = true; + } + else + { + int num = (int)go.ID; + bool flag = num < 0 || num >= this._ListDoc.ListData.Count; + if (flag) + { + result = false; + } + else + { + XGuildListData xguildListData = this._ListDoc.ListData[num]; + DlgBase.singleton.ShowApply(xguildListData.uid, xguildListData.guildName, xguildListData.requiredPPT, xguildListData.bNeedApprove, xguildListData.announcement); + result = true; + } + } + return result; + } + + private void _OnLoadMoreClick(IXUILabel go) + { + this._ListDoc.ReqMoreGuilds(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.uiBehaviour.m_WrapContent.RefreshAllVisibleContents(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildListView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildListView.cs.meta new file mode 100644 index 00000000..f5d2b615 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildListView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83406d3f7a7bd1a42966c0e1fb363173 +timeCreated: 1611404043 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildLogView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildLogView.cs new file mode 100644 index 00000000..dcb17969 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildLogView.cs @@ -0,0 +1,88 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildLogView : DlgHandlerBase + { + public ILogSource LogSource + { + set + { + this.m_LogSource = value; + } + } + + private ILogSource m_LogSource; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ScrollView; + + protected override void Init() + { + this.m_ScrollView = (base.PanelObject.transform.Find("LogMenu/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("LogMenu/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + Transform transform = base.PanelObject.transform.Find("Close"); + bool flag = transform != null; + if (flag) + { + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + } + } + + public void Refresh() + { + List logList = this.m_LogSource.GetLogList(); + int count = logList.Count; + this.m_WrapContent.SetContentCount(count, false); + this.m_ScrollView.ResetPosition(); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + List logList = this.m_LogSource.GetLogList(); + bool flag = index < 0 || index >= logList.Count; + if (!flag) + { + ILogData logData = logList[index]; + IXUILabelSymbol ixuilabelSymbol = t.Find("Content").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabelSymbol.RegisterNameEventHandler(new HyperLinkClickEventHandler(this._NameClick)); + ixuilabelSymbol.InputText = logData.GetContent(); + ixuilabel.SetText(logData.GetTime()); + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + base.SetVisible(false); + return true; + } + + private void _NameClick(string param) + { + string text = ""; + ulong num = 0UL; + bool flag = XLabelSymbolHelper.ParseNameParam(param, ref text, ref num); + if (flag) + { + bool flag2 = num == XSingleton.singleton.Player.Attributes.EntityID; + if (!flag2) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(num, false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildLogView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildLogView.cs.meta new file mode 100644 index 00000000..1ab5dc7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildLogView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30f3bdeaf04e869429e85c11dcf2ee74 +timeCreated: 1611403523 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildMemberInfoDisplay.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildMemberInfoDisplay.cs new file mode 100644 index 00000000..4262aa63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildMemberInfoDisplay.cs @@ -0,0 +1,176 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildMemberInfoDisplay + { + public Transform Root; + + public IXUILabelSymbol Name; + + public IXUILabel Position; + + public IXUILabel Level; + + public IXUILabel PPT; + + public IXUISprite Portrait; + + public IXUISprite Profession; + + public IXUILabel Liveness; + + public IXUISpriteAnimation Title; + + public void Init(Transform go, bool bFirstInit) + { + this.Root = go; + Transform transform = this.Root.Find("Name"); + bool flag = transform != null; + if (flag) + { + this.Name = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol); + if (bFirstInit) + { + this.Name.InputText = ""; + } + } + else + { + this.Name = null; + } + transform = this.Root.Find("Position"); + bool flag2 = transform != null; + if (flag2) + { + this.Position = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Position.SetText(""); + } + } + else + { + this.Position = null; + } + transform = this.Root.Find("Level"); + bool flag3 = transform != null; + if (flag3) + { + this.Level = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Level.SetText(""); + } + } + else + { + this.Level = null; + } + transform = this.Root.Find("PPT"); + bool flag4 = transform != null; + if (flag4) + { + this.PPT = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.PPT.SetText(""); + } + } + else + { + this.PPT = null; + } + transform = this.Root.Find("Portrait"); + bool flag5 = transform != null; + if (flag5) + { + this.Portrait = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.Portrait = null; + } + transform = this.Root.Find("Profession"); + bool flag6 = transform != null; + if (flag6) + { + this.Profession = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.Profession = null; + } + transform = this.Root.Find("Liveness"); + bool flag7 = transform != null; + if (flag7) + { + this.Liveness = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Liveness.SetText(string.Empty); + } + } + transform = this.Root.Find("Title"); + bool flag8 = transform != null; + if (flag8) + { + this.Title = (transform.GetComponent("XUISpriteAnimation") as IXUISpriteAnimation); + } + } + + public void Set(XGuildMemberBasicInfo data) + { + bool flag = this.Name != null; + if (flag) + { + this.Name.InputText = data.name + XWelfareDocument.GetMemberPrivilegeIconString(data.paymemberid) + XRechargeDocument.GetVIPIconString(data.vip); + } + bool flag2 = this.Position != null; + if (flag2) + { + this.Position.SetText(XGuildDocument.GuildPP.GetPositionName(data.position, false)); + } + bool flag3 = this.Level != null; + if (flag3) + { + this.Level.SetText("Lv." + data.level); + } + bool flag4 = this.PPT != null; + if (flag4) + { + this.PPT.SetText(data.ppt.ToString()); + } + bool flag5 = this.Portrait != null; + if (flag5) + { + this.Portrait.SetSprite(XSingleton.singleton.GetProfHeadIcon2(data.profession)); + } + bool flag6 = this.Profession != null; + if (flag6) + { + this.Profession.SetSprite(XSingleton.singleton.GetProfIcon(data.profession)); + } + bool flag7 = this.Liveness != null; + if (flag7) + { + this.Liveness.SetText(data.GetLiveness()); + } + bool flag8 = this.Title != null; + if (flag8) + { + TitleTable.RowData title = XTitleDocument.GetTitle(data.titleID); + bool flag9 = title != null; + if (flag9) + { + this.Title.SetNamePrefix(title.RankAtlas, title.RankIcon); + this.Title.SetFrameRate(XTitleDocument.TITLE_FRAME_RATE); + this.Title.MakePixelPerfect(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildMemberInfoDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildMemberInfoDisplay.cs.meta new file mode 100644 index 00000000..16d386d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildMemberInfoDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0d0675b532667b4298ac0ec4b9bb33a +timeCreated: 1611404250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildMembersBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildMembersBehaviour.cs new file mode 100644 index 00000000..d8fcc7d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildMembersBehaviour.cs @@ -0,0 +1,27 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGuildMembersBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public XTitleBar m_TitleBar; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + Transform transform = base.transform.Find("Bg/Titles"); + DlgHandlerBase.EnsureCreate(ref this.m_TitleBar, transform.gameObject, null, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildMembersBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildMembersBehaviour.cs.meta new file mode 100644 index 00000000..ec818401 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildMembersBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 099900bdaf4f39444ba6d10ea4ae7528 +timeCreated: 1611403157 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildMembersView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildMembersView.cs new file mode 100644 index 00000000..8db93ec2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildMembersView.cs @@ -0,0 +1,432 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildMembersView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildMembersDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public static readonly Color TitleUnSelectedColor = new Color(0.607843161f, 0.607843161f, 0.607843161f); + + public static readonly Color TitleSelectedColor = Color.white; + + private XGuildMemberDocument _MemberDoc; + + private XGuildDocument _GuildDoc; + + private XGuildMemberInfoDisplay _MemberInfoDisplay = new XGuildMemberInfoDisplay(); + + private GuildPosition m_SelectedHigherPosition; + + private GuildPosition m_SelectedLowerPosition; + + private ulong m_SelectedMemberID; + + private string m_SelectedName; + + private XGuildMember m_SelectMember; + + protected override void Init() + { + this._MemberDoc = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + this._MemberDoc.GuildMembersView = this; + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + } + + protected override void OnUnload() + { + this._MemberDoc.GuildMembersView = null; + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_TitleBar); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + base.uiBehaviour.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this._WrapContentItemInit)); + base.uiBehaviour.m_TitleBar.RegisterClickEventHandler(new TitleClickEventHandler(this._OnTitleClickEventHandler)); + } + + protected override void OnShow() + { + this._MemberDoc.ReqMemberList(); + base.uiBehaviour.m_TitleBar.Refresh((ulong)((long)XFastEnumIntEqualityComparer.ToInt(this._MemberDoc.SortType))); + } + + private bool _OnTitleClickEventHandler(ulong ID) + { + this._MemberDoc.SortType = (GuildMemberSortType)ID; + this._MemberDoc.SortAndShow(); + return this._MemberDoc.SortDirection > 0; + } + + public void RefreshAll(bool bResetPosition = true) + { + List memberList = this._MemberDoc.MemberList; + int count = memberList.Count; + base.uiBehaviour.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + + public void Refresh() + { + base.uiBehaviour.m_WrapContent.RefreshAllVisibleContents(); + } + + public void RefreshFatigue() + { + } + + public void OnRefreshDailyTaskReply() + { + base.uiBehaviour.m_WrapContent.RefreshAllVisibleContents(); + } + + private void _WrapContentItemInit(Transform t, int index) + { + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnMemberClick)); + IXUIButton ixuibutton = t.Find("Inherit").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnInheritClick)); + IXUIButton ixuibutton2 = t.Find("BtnTask").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnRefreshClick)); + } + + private bool _OnRefreshClick(IXUIButton button) + { + XGuildDailyTaskDocument.Doc.SendToRefreshTaskOp(DailyRefreshOperType.DROT_Refresh, button.ID); + return true; + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._MemberDoc.MemberList.Count; + if (!flag) + { + XGuildMember xguildMember = this._MemberDoc.MemberList[index]; + ulong entityID = XSingleton.singleton.Player.Attributes.EntityID; + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("PlayerBg").gameObject; + IXUILabel ixuilabel = t.Find("Contribution").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("LastLoginTime").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("LuckLevel").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("Inherit").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)index); + this._MemberInfoDisplay.Init(t, false); + this._MemberInfoDisplay.Set(xguildMember); + ixuibutton.SetVisible(xguildMember.isInherit); + List stringList = XSingleton.singleton.GetStringList("LuckyLevel"); + int index2 = Mathf.Min((int)(xguildMember.taskLuck - 1u), stringList.Count - 1); + ixuilabel3.SetText(stringList[index2]); + List stringList2 = XSingleton.singleton.GetStringList("LuckyLevelColor"); + Color color = XSingleton.singleton.ConvertRGBStringToColor(stringList2[index2]); + ixuilabel3.SetColor(color); + IXUIButton ixuibutton2 = t.Find("BtnTask").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.SetEnable(xguildMember.canRefresh && xguildMember.taskScore < 4u, false); + ixuibutton2.ID = xguildMember.uid; + IXUISprite ixuisprite2 = t.Find("BtnTask/TaskLevel").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(ixuisprite2.spriteName.Substring(0, ixuisprite2.spriteName.Length - 1) + xguildMember.taskScore); + ixuilabel.SetText(xguildMember.contribution.ToString()); + bool flag2 = this._GuildDoc.Position == GuildPosition.GPOS_LEADER || this._GuildDoc.Position == GuildPosition.GPOS_VICELEADER; + if (flag2) + { + ixuilabel2.SetText(XSingleton.singleton.TimeAgoFormatString(xguildMember.time)); + } + else + { + ixuilabel2.SetText(XSingleton.singleton.TimeOnOrOutFromString(xguildMember.time)); + } + ixuisprite.ID = (ulong)((long)index); + gameObject.SetActive(entityID == xguildMember.uid); + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnOneKeyReceiveBtnClick(IXUIButton go) + { + bool flag = !this._GuildDoc.bInGuild; + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_ONEKEY_RECEIVE_FATIGUE_CONFIRM"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._OnOneKeyReceive)); + result = true; + } + return result; + } + + private bool _OnOneKeyReceive(IXUIButton go) + { + XSingleton.singleton.CloseModalDlg(); + this._MemberDoc.ReqOneKeyReceiveFatigue(); + return true; + } + + private bool _OnOneKeySendBtnClick(IXUIButton go) + { + this._MemberDoc.ReqOneKeySendFatigue(); + return true; + } + + private bool _OnReceiveBtnClick(IXUIButton btn) + { + this._MemberDoc.ReqReceiveFatigue((int)btn.ID); + return true; + } + + private bool _OnSendBtnClick(IXUIButton btn) + { + this._MemberDoc.ReqSendFatigue((int)btn.ID); + return true; + } + + private void _OnMemberClick(IXUISprite iSp) + { + int num = (int)iSp.ID; + bool flag = num < 0 || num >= this._MemberDoc.MemberList.Count; + if (!flag) + { + XGuildMember xguildMember = this._MemberDoc.MemberList[num]; + bool flag2 = xguildMember.uid == XSingleton.singleton.Player.Attributes.EntityID; + if (!flag2) + { + this.m_SelectMember = xguildMember; + this.m_SelectedName = xguildMember.name; + this.m_SelectedMemberID = xguildMember.uid; + GuildPosition position = xguildMember.position; + this.m_SelectedHigherPosition = (GuildPosition)XGuildDocument.GuildPP.GetHigherPosition(position); + this.m_SelectedLowerPosition = (GuildPosition)XGuildDocument.GuildPP.GetLowerPosition(position); + GuildPermission setPositionPermission = XGuildDocument.GuildPP.GetSetPositionPermission(this.m_SelectedHigherPosition, this.m_SelectedHigherPosition); + GuildPermission setPositionPermission2 = XGuildDocument.GuildPP.GetSetPositionPermission(position, this.m_SelectedLowerPosition); + List list = new List(); + List list2 = new List(); + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_VIEW")); + list2.Add(new ButtonClickEventHandler(DlgBase.singleton.ShowDetailInfo)); + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + if (flag3) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_ADDFRIEND")); + list2.Add(new ButtonClickEventHandler(DlgBase.singleton.AddFriend)); + } + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_SENDFLOWER")); + list2.Add(new ButtonClickEventHandler(DlgBase.singleton.SendFlower)); + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_PRIVATECHAT")); + list2.Add(new ButtonClickEventHandler(DlgBase.singleton.PrivateChat)); + bool flag4 = this._GuildDoc.IHavePermission(setPositionPermission) || this._GuildDoc.IHavePermission(setPositionPermission2); + if (flag4) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_INCREASEPOSITION")); + list2.Add(new ButtonClickEventHandler(this._HigherPositionClick)); + } + bool flag5 = this._GuildDoc.IHavePermission(GuildPermission.GPEM_FIREMEMBER); + if (flag5) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_FIREFROMGUILD")); + list2.Add(new ButtonClickEventHandler(this._OnKickAssBtnClick)); + } + bool isInherit = xguildMember.isInherit; + if (isInherit) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_INHERIT")); + list2.Add(new ButtonClickEventHandler(this._OnInheritDialog)); + } + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_PK")); + list2.Add(new ButtonClickEventHandler(this._PKClick)); + DlgBase.singleton.ShowMenuUI(xguildMember.uid, xguildMember.name, list, list2, 0u, (uint)xguildMember.profession); + } + } + } + + private bool _PKClick(IXUIButton btn) + { + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + specificDocument.SendPKInvitation(this.m_SelectedMemberID); + return true; + } + + private bool _HigherPositionClick(IXUIButton btn) + { + DlgBase.singleton.ShowMenu(this.m_SelectedMemberID); + return true; + } + + private bool _HigherPosition(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this._MemberDoc.ReqChangePosition(this.m_SelectedMemberID, true); + return true; + } + + private bool _LowerPositionClick(IXUIButton btn) + { + this._MemberDoc.ReqChangePosition(this.m_SelectedMemberID, false); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnInheritDialog(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + bool flag = this.m_SelectMember == null; + bool result; + if (flag) + { + result = true; + } + else + { + this.RequestInherit(this.m_SelectMember); + result = false; + } + return result; + } + + private bool _OnInheritClick(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num < 0 || num >= this._MemberDoc.MemberList.Count; + bool result; + if (flag) + { + result = false; + } + else + { + this.RequestInherit(this._MemberDoc.MemberList[num]); + result = true; + } + return result; + } + + private void RequestInherit(XGuildMember member) + { + bool flag = member == null; + if (!flag) + { + bool flag2 = member.uid == XSingleton.singleton.Player.Attributes.EntityID; + if (!flag2) + { + bool flag3 = member.time >= 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TEAM_INV_LOGOUT"), "fece00"); + } + else + { + bool flag4 = !member.isInherit; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_GUILD_INHERIT_LVL"), "fece00"); + } + else + { + XGuildInheritDocument specificDocument = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + specificDocument.SendReqInherit(member.uid); + } + } + } + } + } + + private bool _OnKickAssBtnClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + bool flag = !this._GuildDoc.CheckPermission(GuildPermission.GPEM_FIREMEMBER); + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_FIREMEMBER_CONFIRM", new object[] + { + this.m_SelectedName + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._KickAss)); + result = true; + } + return result; + } + + private bool _KickAss(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = !this._GuildDoc.CheckPermission(GuildPermission.GPEM_FIREMEMBER); + bool result; + if (flag) + { + result = true; + } + else + { + this._MemberDoc.ReqKickAss(this.m_SelectedMemberID); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildMembersView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildMembersView.cs.meta new file mode 100644 index 00000000..1d27e787 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildMembersView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6831c6ca9a393154c870527c7a4f98c2 +timeCreated: 1611403881 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitBehaviour.cs new file mode 100644 index 00000000..5c89f399 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitBehaviour.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildPortraitBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnOK; + + public GameObject[] m_PortraitList = new GameObject[XGuildPortraitView.PORTRAIT_COUNT]; + + public GameObject[] m_SelectorList = new GameObject[XGuildPortraitView.PORTRAIT_COUNT]; + + public XUIPool m_PortraitPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnOK = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/PortraitList/PortraitTpl"); + this.m_PortraitPool.SetupPool(transform.parent.gameObject, transform.gameObject, (uint)XGuildPortraitView.PORTRAIT_COUNT, false); + Vector3 tplPos = this.m_PortraitPool.TplPos; + for (int i = 0; i < XGuildPortraitView.PORTRAIT_COUNT; i++) + { + GameObject gameObject = this.m_PortraitPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(i % XGuildPortraitView.COL_COUNT * this.m_PortraitPool.TplWidth), tplPos.y - (float)(i / XGuildPortraitView.COL_COUNT * this.m_PortraitPool.TplHeight)); + this.m_PortraitList[i] = gameObject.transform.Find("Portrait").gameObject; + this.m_SelectorList[i] = gameObject.transform.Find("Selector").gameObject; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitBehaviour.cs.meta new file mode 100644 index 00000000..eb3815ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d8f05f9bed668f4484c242fcbcea5f9 +timeCreated: 1611404236 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitView.cs new file mode 100644 index 00000000..ff20ef92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitView.cs @@ -0,0 +1,143 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGuildPortraitView : DlgBase + { + public int PortraitIndex + { + get + { + return this.m_SelectedIndex; + } + } + + public override string fileName + { + get + { + return "Guild/GuildPortraitDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public static readonly int PORTRAIT_COUNT = 10; + + public static readonly int COL_COUNT = 5; + + private ButtonClickEventHandler _OKButtonHandler = null; + + private int m_SelectedIndex = 0; + + private IXUICheckBox[] m_Portraits = new IXUICheckBox[XGuildPortraitView.PORTRAIT_COUNT]; + + protected override void Init() + { + for (int i = 0; i < XGuildPortraitView.PORTRAIT_COUNT; i++) + { + IXUISprite ixuisprite = base.uiBehaviour.m_PortraitList[i].GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XGuildDocument.GetPortraitName(i)); + this.m_Portraits[i] = (base.uiBehaviour.m_PortraitList[i].GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Portraits[i].ID = (ulong)((long)i); + } + } + + protected override void OnUnload() + { + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnOK.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClick)); + for (int i = 0; i < XGuildPortraitView.PORTRAIT_COUNT; i++) + { + this.m_Portraits[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnPortraitClick)); + } + } + + protected override void OnShow() + { + bool flag = this.m_SelectedIndex >= 0 && this.m_SelectedIndex < XGuildPortraitView.PORTRAIT_COUNT; + if (flag) + { + this.m_Portraits[this.m_SelectedIndex].bChecked = true; + } + } + + protected override void OnHide() + { + base.OnHide(); + this._OKButtonHandler = null; + } + + public void Open(int index, ButtonClickEventHandler OKButtonHandler) + { + this.m_SelectedIndex = index; + this._OKButtonHandler = OKButtonHandler; + this.SetVisibleWithAnimation(true, null); + } + + private bool _OnPortraitClick(IXUICheckBox iXUICheckBox) + { + int num = (int)iXUICheckBox.ID; + base.uiBehaviour.m_SelectorList[num].SetActive(iXUICheckBox.bChecked); + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this.m_SelectedIndex = num; + } + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnOKBtnClick(IXUIButton btn) + { + bool flag = this._OKButtonHandler != null; + if (flag) + { + this._OKButtonHandler(btn); + } + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitView.cs.meta new file mode 100644 index 00000000..38629f5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildPortraitView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62dd8f23e4bf6a540971dfb3ea37b786 +timeCreated: 1611403842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketDetailView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketDetailView.cs new file mode 100644 index 00000000..1accdb21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketDetailView.cs @@ -0,0 +1,258 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildRedPacketDetailView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildRedPackageDetailPanel"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return false; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XGuildRedPacketDocument _Doc; + + private XGuildDocument _GuildDoc; + + private XGuildRedPakageLogView m_LogView; + + private uint m_selectID = 0u; + + private bool m_ShowEffect = false; + + private XFx m_maskXfx = null; + + protected override void Init() + { + this._Doc = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this.m_LogView, base.uiBehaviour.m_LogPanel, null, true); + this.m_LogView.LogSource = this._Doc; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_bgSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_Reply.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnReplyBtnClick)); + } + + public void ShowEffect(bool state, uint id = 0u) + { + this.m_ShowEffect = state; + this.m_selectID = id; + this.SetVisibleWithAnimation(true, null); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.ReqDetail(this.m_selectID); + bool showEffect = this.m_ShowEffect; + if (showEffect) + { + this.m_maskXfx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_ghhb_cd_01", base.uiBehaviour.m_bgSprite.gameObject.transform, false); + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_ghhb_cd", base.uiBehaviour.m_root, Vector3.zero, Vector3.one, 1f, true, 3f, true); + this.m_ShowEffect = false; + } + base.uiBehaviour.m_playTween.PlayTween(true, -1f); + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = base.uiBehaviour.m_playTween != null; + if (flag) + { + base.uiBehaviour.m_playTween.ResetTween(true); + } + bool flag2 = this.m_maskXfx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_maskXfx, true); + this.m_maskXfx = null; + } + base.uiBehaviour.m_sendHeadTexture.SetTexturePath(""); + } + + protected override void OnUnload() + { + bool flag = this.m_maskXfx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_maskXfx, true); + this.m_maskXfx = null; + } + DlgHandlerBase.EnsureUnload(ref this.m_LogView); + base.OnUnload(); + } + + public void Refresh() + { + XGuildRedPacketDetail packetDetail = this._Doc.PacketDetail; + this.m_LogView.Refresh(); + this._RefreshContent(packetDetail); + this._RefreshReason(packetDetail); + this._RefreshReply(packetDetail); + } + + public void _RefreshReply(XGuildRedPacketDetail detailData) + { + bool flag = detailData.canThank && Time.time < detailData.brif.endTime && detailData.brif.fetchState != FetchState.FS_CANNOT_FETCH; + base.uiBehaviour.m_ReplyLabel.SetText(flag ? XStringDefineProxy.GetString("QUICK_REPLY_1") : XStringDefineProxy.GetString("GUILD_REDPACKET_DETAIL_EXIT")); + } + + public void _RefreshReason(XGuildRedPacketDetail data) + { + GuildBonusTable.RowData redPacketConfig = XGuildRedPacketDocument.GetRedPacketConfig(data.brif.typeid); + bool flag = redPacketConfig == null; + if (flag) + { + base.uiBehaviour.m_Reason.InputText = ""; + } + else + { + string guildBonusDesc = redPacketConfig.GuildBonusDesc; + bool flag2 = guildBonusDesc.Contains("{0}"); + if (flag2) + { + base.uiBehaviour.m_Reason.InputText = string.Format(guildBonusDesc, data.brif.senderName); + } + else + { + base.uiBehaviour.m_Reason.InputText = guildBonusDesc; + } + } + } + + private void _RefreshContent(XGuildRedPacketDetail data) + { + base.uiBehaviour.m_Count.SetText(string.Format("{0}/{1}", data.getCount, data.brif.maxCount)); + base.uiBehaviour.m_Money.InputText = string.Format("{0}/{1}", data.getTotalCount, XLabelSymbolHelper.FormatCostWithIconLast(data.itemTotalCount, (ItemEnum)data.brif.itemid)); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = data.brif.sourceID > 0UL; + if (flag) + { + base.uiBehaviour.m_sendHeadSprite.SetVisible(false); + base.uiBehaviour.m_sendHeadTexture.SetVisible(true); + XSingleton.singleton.Load(string.IsNullOrEmpty(data.brif.iconUrl) ? string.Empty : data.brif.iconUrl, base.uiBehaviour.m_sendHeadTexture, base.uiBehaviour); + base.uiBehaviour.m_SendName.InputText = XStringDefineProxy.GetString("GUILD_BONUE_PACKAGE_NAME", new object[] + { + data.brif.sourceName + }); + } + else + { + base.uiBehaviour.m_SendName.InputText = XStringDefineProxy.GetString("GUILD_BONUE_PACKAGE_NAME", new object[] + { + specificDocument.BasicData.guildName + }); + base.uiBehaviour.m_sendHeadSprite.SetVisible(true); + base.uiBehaviour.m_sendHeadTexture.SetTexturePath(""); + base.uiBehaviour.m_sendHeadTexture.SetVisible(false); + } + bool flag2 = data.brif.fetchState == FetchState.FS_CAN_FETCH; + if (flag2) + { + float time = Time.time; + bool flag3 = time < data.brif.endTime; + if (flag3) + { + base.uiBehaviour.m_Note.InputText = XStringDefineProxy.GetString("GUILD_REDPACKET_FETCH"); + } + else + { + base.uiBehaviour.m_Note.InputText = XStringDefineProxy.GetString("GUILD_REDPACKET_TIMEOVER"); + } + } + else + { + bool flag4 = data.brif.fetchState == FetchState.FS_CANNOT_FETCH; + if (flag4) + { + base.uiBehaviour.m_Note.InputText = string.Empty; + } + else + { + ulong roleID = XSingleton.singleton.XPlayerData.RoleID; + int i; + for (i = 0; i < data.logList.Count; i++) + { + XGuildRedPacketLog xguildRedPacketLog = data.logList[i] as XGuildRedPacketLog; + bool flag5 = xguildRedPacketLog.uid == roleID; + if (flag5) + { + base.uiBehaviour.m_Note.InputText = XLabelSymbolHelper.FormatCostWithIconLast(xguildRedPacketLog.itemcount, (ItemEnum)xguildRedPacketLog.itemid); + break; + } + } + bool flag6 = i == data.logList.Count; + if (flag6) + { + base.uiBehaviour.m_Note.InputText = XStringDefineProxy.GetString("GUILD_REDPACKET_ALLFETCHED"); + } + } + } + } + + private bool _OnReplyBtnClick(IXUIButton go) + { + XGuildRedPacketDetail packetDetail = this._Doc.PacketDetail; + bool flag = packetDetail != null && packetDetail.canThank && Time.time < packetDetail.brif.endTime && packetDetail.brif.fetchState != FetchState.FS_CANNOT_FETCH; + if (flag) + { + DlgBase.singleton.ShowView(1, new Action(this.CloseRedPackageDetail)); + } + else + { + this._OnCloseBtnClick(null); + } + return true; + } + + private void CloseRedPackageDetail(bool statu) + { + if (statu) + { + XQuickReplyDocument specificDocument = XDocuments.GetSpecificDocument(XQuickReplyDocument.uuID); + specificDocument.GetThanksForBonus(this._Doc.PacketDetail.brif.uid); + this._OnCloseBtnClick(null); + } + } + + private void _OnCloseBtnClick(IXUISprite go) + { + this.SetVisibleWithAnimation(false, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketDetailView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketDetailView.cs.meta new file mode 100644 index 00000000..1b903042 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketDetailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecdeab21ef96e1d4db9f24b105bed2e4 +timeCreated: 1611404789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketView.cs new file mode 100644 index 00000000..9c215d64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketView.cs @@ -0,0 +1,278 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildRedPacketView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildSystem/GuildRedPacketDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private static string[] RedPacketBg = new string[] + { + "gh_hb_ui1", + "gh_hb_ui2" + }; + + private static Color[] OutterLightColor = new Color[] + { + new Color(0.8f, 0.6f, 0.2f), + new Color(0.2f, 0.3f, 0.9f) + }; + + private XGuildRedPacketDocument _Doc; + + private XMainInterfaceDocument _MainDoc; + + private Dictionary m_ActivePackets = new Dictionary(); + + private List m_LeftTimeList = new List(); + + private IXUISprite m_ClickedRP = null; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + this._Doc.GuildRedPacketView = this; + this._MainDoc = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_Empty.SetActive(false); + this._Doc.bHasShowIconRedPacket = 0; + this._Doc.ReqList(); + base.uiBehaviour.m_ScrollView.ResetPosition(); + this.m_ClickedRP = null; + } + + protected override void OnHide() + { + base.OnHide(); + this._MainDoc.SetBlockItemsChange(false); + } + + protected override void OnUnload() + { + this._Doc.GuildRedPacketView = null; + this._MainDoc.SetBlockItemsChange(false); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + } + + public override void OnUpdate() + { + base.OnUpdate(); + for (int i = 0; i < this.m_LeftTimeList.Count; i++) + { + this.m_LeftTimeList[i].Update(); + } + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildRedPacket); + return true; + } + + public void Refresh(bool bResetPosition = true) + { + List packetList = this._Doc.PacketList; + int count = packetList.Count; + base.uiBehaviour.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + base.uiBehaviour.m_Empty.SetActive(count == 0); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._Doc.PacketList.Count; + if (!flag) + { + XGuildRedPacketBrief xguildRedPacketBrief = this._Doc.PacketList[index]; + IXUISprite ixuisprite = t.Find("RedPacket").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Count").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = t.Find("Bg").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite4 = t.Find("Title").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)index); + bool flag2 = xguildRedPacketBrief.itemid == 7; + if (flag2) + { + ixuisprite.SetSprite(XGuildRedPacketView.RedPacketBg[1]); + } + else + { + ixuisprite.SetSprite(XGuildRedPacketView.RedPacketBg[0]); + } + ixuisprite4.SetSprite("gh_hb_word_" + xguildRedPacketBrief.itemid); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnRedPacketClick)); + ixuilabel.SetText(xguildRedPacketBrief.senderName); + ixuilabel2.SetText(string.Format("{0}/{1}", xguildRedPacketBrief.maxCount - xguildRedPacketBrief.fetchedCount, xguildRedPacketBrief.maxCount)); + ixuisprite3.SetSprite(XBagDocument.GetItemSmallIcon(xguildRedPacketBrief.itemid, 0u)); + this._SetupState(t, xguildRedPacketBrief); + } + } + + private void _SetupState(Transform t, XGuildRedPacketBrief data) + { + IXUILabel ixuilabel = t.Find("LeftTime").GetComponent("XUILabel") as IXUILabel; + Transform transform = t.Find("State/CanFetch"); + Transform transform2 = t.Find("State/CantFetch"); + Transform transform3 = t.Find("State/Fetched"); + Transform transform4 = t.Find("State/Expired"); + Transform transform5 = t.Find("Icon/Highlight"); + Transform transform6 = t.Find("Icon/UI_ghhb_cd_02"); + transform5.gameObject.SetActive(data.fetchState == FetchState.FS_CAN_FETCH); + transform6.gameObject.SetActive(data.fetchState == FetchState.FS_CAN_FETCH); + float time = Time.time; + transform2.gameObject.SetActive(data.fetchState == FetchState.FS_FETCHED); + transform.gameObject.SetActive(data.fetchState == FetchState.FS_CAN_FETCH && time < data.endTime); + transform3.gameObject.SetActive(data.fetchState == FetchState.FS_ALREADY_FETCH); + transform4.gameObject.SetActive(data.fetchState == FetchState.FS_CAN_FETCH && time >= data.endTime); + bool flag = time < data.endTime; + if (flag) + { + XLeftTimeCounter xleftTimeCounter = null; + bool flag2 = !this.m_ActivePackets.TryGetValue(t, out xleftTimeCounter); + if (flag2) + { + xleftTimeCounter = new XLeftTimeCounter(ixuilabel, false); + this.m_ActivePackets.Add(t, xleftTimeCounter); + this.m_LeftTimeList.Add(xleftTimeCounter); + } + xleftTimeCounter.SetLeftTime(data.endTime - time, -1); + xleftTimeCounter.SetFinishEventHandler(new TimeOverFinishEventHandler(this._OnLeftTimeOver), null); + ixuilabel.SetVisible(true); + } + else + { + ixuilabel.SetVisible(false); + } + } + + public void ShowResult(XGuildRedPacketBrief brief) + { + bool flag = brief == null; + if (flag) + { + this.m_ClickedRP = null; + this._MainDoc.SetBlockItemsChange(false); + } + else + { + bool flag2 = this.m_ClickedRP == null; + if (flag2) + { + this._MainDoc.SetBlockItemsChange(false); + this.m_ClickedRP = null; + } + else + { + this.m_ClickedRP = null; + } + } + } + + private void _OnLeftTimeOver(object o) + { + base.uiBehaviour.m_WrapContent.RefreshAllVisibleContents(); + this._Doc.ReqList(); + } + + private void _OnRedPacketClick(IXUISprite iSp) + { + bool flag = this.m_ClickedRP != null; + if (!flag) + { + XGuildRedPacketBrief xguildRedPacketBrief = this._Doc.PacketList[(int)iSp.ID]; + bool flag2 = xguildRedPacketBrief.fetchState == FetchState.FS_CAN_FETCH; + if (flag2) + { + this._Doc.ReqFetch((uint)xguildRedPacketBrief.uid); + this.m_ClickedRP = iSp; + } + else + { + bool flag3 = xguildRedPacketBrief.fetchState == FetchState.FS_CANNOT_FETCH; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BONUS_NOTFETCH"), "fece00"); + } + else + { + DlgBase.singleton.ShowEffect(false, (uint)xguildRedPacketBrief.uid); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketView.cs.meta new file mode 100644 index 00000000..45addbea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPacketView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e03bbd135bace464fb48b2dc36507d2e +timeCreated: 1611404696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildRedPakageLogView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPakageLogView.cs new file mode 100644 index 00000000..7e6c2dc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPakageLogView.cs @@ -0,0 +1,125 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildRedPakageLogView : DlgHandlerBase + { + public ILogSource LogSource + { + set + { + this.m_LogSource = value; + } + } + + private ILogSource m_LogSource; + + private XGuildRedPacketDocument _Doc; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ScrollView; + + private Vector3 startPos = new Vector3(-96f, 0f, 0f); + + protected override void Init() + { + this._Doc = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + this.m_ScrollView = (base.PanelObject.transform.Find("LogMenu/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("LogMenu/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public void Refresh() + { + List logList = this.m_LogSource.GetLogList(); + int count = logList.Count; + this.m_WrapContent.SetContentCount(count, false); + this.m_ScrollView.ResetPosition(); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + List logList = this.m_LogSource.GetLogList(); + bool flag = index < 0 || index >= logList.Count; + if (!flag) + { + XGuildRedPacketLog xguildRedPacketLog = logList[index] as XGuildRedPacketLog; + IXUILabelSymbol ixuilabelSymbol = t.Find("Content").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol2 = t.Find("Gold").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite = t.Find("mvp").GetComponent("XUISprite") as IXUISprite; + ixuilabelSymbol.RegisterNameEventHandler(new HyperLinkClickEventHandler(this._NameClick)); + bool flag2 = XSingleton.singleton.XPlayerData.RoleID == xguildRedPacketLog.uid; + if (flag2) + { + ixuilabelSymbol.InputText = XStringDefineProxy.GetString("YOU"); + } + else + { + ixuilabelSymbol.InputText = XLabelSymbolHelper.FormatName(xguildRedPacketLog.name, xguildRedPacketLog.uid, "00ffff"); + } + Vector3 localPosition = this.startPos; + bool flag3 = this._Doc.CheckLuckest(xguildRedPacketLog.uid); + if (flag3) + { + ixuisprite.SetVisible(true); + ixuisprite.gameObject.transform.localPosition = localPosition; + localPosition.x += (float)(ixuisprite.spriteWidth + 10); + } + else + { + ixuisprite.SetVisible(false); + } + ixuilabelSymbol2.InputText = XLabelSymbolHelper.FormatCostWithIcon(xguildRedPacketLog.itemcount, (ItemEnum)xguildRedPacketLog.itemid); + ixuilabel.SetText(string.Empty); + } + } + + public override void RegisterEvent() + { + Transform transform = base.PanelObject.transform.Find("Close"); + bool flag = transform != null; + if (flag) + { + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + base.SetVisible(false); + return true; + } + + private void _NameClick(string param) + { + string text = ""; + ulong num = 0UL; + bool flag = XLabelSymbolHelper.ParseNameParam(param, ref text, ref num); + if (flag) + { + bool flag2 = num == XSingleton.singleton.Player.Attributes.EntityID; + if (!flag2) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(num, false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildRedPakageLogView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPakageLogView.cs.meta new file mode 100644 index 00000000..f02f6e46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildRedPakageLogView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f19a0960a7f08c841b60cb36eef273d5 +timeCreated: 1611404838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildSignInBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildSignInBehaviour.cs new file mode 100644 index 00000000..87b78347 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildSignInBehaviour.cs @@ -0,0 +1,45 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildSignInBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnLog; + + public IXUIProgress m_ExpProgress; + + public XUIPool m_ChestPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_MemberCount; + + public IXUILabel m_Exp; + + public XNumberTween m_ExpTween; + + public XUIPool m_SignInButtonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_LogPanel; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnLog = (base.transform.Find("Bg/BtnLog").GetComponent("XUIButton") as IXUIButton); + this.m_LogPanel = base.transform.Find("Bg/LogPanel").gameObject; + Transform transform = base.transform.Find("Bg/Progress/Chests/ChestTpl"); + this.m_ChestPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + transform = base.transform.Find("Bg/SignInButtons/SignInButtonTpl"); + this.m_SignInButtonPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_ExpProgress = (base.transform.Find("Bg/Progress").GetComponent("XUIProgress") as IXUIProgress); + this.m_MemberCount = (base.transform.Find("Bg/MemberCount").GetComponent("XUILabel") as IXUILabel); + this.m_Exp = (base.transform.Find("Bg/CurrentExp").GetComponent("XUILabel") as IXUILabel); + this.m_ExpTween = XNumberTween.Create(this.m_Exp); + this.m_ExpTween.SetNumberWithTween(0UL, "", false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildSignInBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildSignInBehaviour.cs.meta new file mode 100644 index 00000000..f98c3110 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildSignInBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9bf064775b32adc4292ee6abc77efeb0 +timeCreated: 1611404207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildSignInView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildSignInView.cs new file mode 100644 index 00000000..585b317e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildSignInView.cs @@ -0,0 +1,249 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildSignInView : DlgBase + { + public XGuildLogView LogView + { + get + { + return this._LogView; + } + } + + public override string fileName + { + get + { + return "Guild/GuildSignInDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public int BUTTON_COUNT = 3; + + public int CHEST_COUNT = 4; + + private XGuildSignInDocument _SignInDoc; + + private XGuildDocument _GuildDoc; + + private XGuildLogView _LogView; + + private XChestProgress m_Progress; + + private List m_Buttons = new List(); + + private List m_ButtonGos = new List(); + + protected override void Init() + { + this._SignInDoc = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + this._SignInDoc.GuildSignInView = this; + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + GuildCheckinBoxTable.RowData[] boxTableData = XGuildSignInDocument.GetBoxTableData(); + uint num = 0u; + this.CHEST_COUNT = boxTableData.Length; + this.m_Progress = new XChestProgress(base.uiBehaviour.m_ExpProgress); + for (int i = 0; i < this.CHEST_COUNT; i++) + { + GuildCheckinBoxTable.RowData rowData = boxTableData[i]; + XChest xchest = new XChest(base.uiBehaviour.m_ChestPool.FetchGameObject(false), null); + xchest.SetExp(rowData.process); + num = Math.Max(num, rowData.process); + this.m_Progress.AddChest(xchest); + } + this.m_Progress.SetExp(0u, num); + base.uiBehaviour.m_BtnLog.SetVisible(false); + this.m_Buttons.Clear(); + this.m_ButtonGos.Clear(); + GuildCheckinTable.RowData[] signInTableData = XGuildSignInDocument.GetSignInTableData(); + this.BUTTON_COUNT = signInTableData.Length; + Vector3 tplPos = base.uiBehaviour.m_SignInButtonPool.TplPos; + for (int j = 0; j < this.BUTTON_COUNT; j++) + { + GuildCheckinTable.RowData rowData2 = signInTableData[j]; + GameObject gameObject = base.uiBehaviour.m_SignInButtonPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x + (float)(base.uiBehaviour.m_SignInButtonPool.TplWidth * j), tplPos.y); + this.m_ButtonGos.Add(gameObject); + IXUILabel ixuilabel = gameObject.transform.Find("Progress").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Contribute").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = gameObject.transform.Find("BtnOK/Cost").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUIButton item = gameObject.transform.Find("BtnOK").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite = gameObject.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Title").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite("gh_qd_" + rowData2.type); + ixuisprite2.SetSprite("gh_qd_word_" + rowData2.type); + ixuilabel.SetText("+" + rowData2.process); + ixuilabel2.SetText("+" + rowData2.reward[1]); + ixuilabelSymbol.InputText = XLabelSymbolHelper.FormatCostWithIcon((int)rowData2.consume[1], (ItemEnum)rowData2.consume[0]); + this.m_Buttons.Add(item); + } + DlgHandlerBase.EnsureCreate(ref this._LogView, base.uiBehaviour.m_LogPanel, null, true); + this._LogView.LogSource = this._SignInDoc; + } + + protected override void OnUnload() + { + this._SignInDoc.GuildSignInView = null; + this.m_Progress.Unload(); + DlgHandlerBase.EnsureUnload(ref this._LogView); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnLog.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnLogBtnClick)); + for (int i = 0; i < this.CHEST_COUNT; i++) + { + this.m_Progress.ChestList[i].m_Chest.ID = (ulong)((long)i); + this.m_Progress.ChestList[i].m_Chest.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClicked)); + } + for (int j = 0; j < this.BUTTON_COUNT; j++) + { + this.m_Buttons[j].ID = (ulong)((long)(j + 1)); + this.m_Buttons[j].RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSignInBtnClick)); + } + } + + protected override void OnShow() + { + this._LogView.SetVisible(false); + this._SignInDoc.ReqAllInfo(); + this.RefreshProgress(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.m_Progress.Update(Time.deltaTime); + } + + public void Refresh() + { + base.uiBehaviour.m_MemberCount.SetText(string.Format("{0}/{1}", this._SignInDoc.CurrentCount, this._SignInDoc.TotalCount)); + for (int i = 0; i < this.BUTTON_COUNT; i++) + { + this.m_Buttons[i].SetEnable(this._SignInDoc.SignInSelection == 0u, false); + GameObject gameObject = this.m_Buttons[i].gameObject.transform.Find("RedPoint").gameObject; + gameObject.SetActive(false); + } + for (int j = 0; j < this.CHEST_COUNT; j++) + { + this.m_Progress.ChestList[j].Opened = this._SignInDoc.IsBoxOpen(j); + } + } + + public void RefreshProgress() + { + this.m_Progress.TargetExp = this._SignInDoc.Progress; + base.uiBehaviour.m_ExpTween.SetNumberWithTween((ulong)this._SignInDoc.Progress, "", false, true); + } + + public void OpenBox(int index) + { + for (int i = 0; i < this.CHEST_COUNT; i++) + { + bool flag = i != index; + if (!flag) + { + XChest xchest = this.m_Progress.ChestList[i]; + xchest.Open(); + break; + } + } + } + + private void OnChestClicked(IXUISprite iSp) + { + uint num = (uint)iSp.ID; + bool flag = !this.m_Progress.IsExpEnough((int)num); + if (flag) + { + GuildCheckinBoxTable.RowData rowData = XGuildSignInDocument.GetBoxTableData()[(int)num]; + bool flag2 = rowData == null; + if (!flag2) + { + List list = new List(); + List list2 = new List(); + for (int i = 0; i < rowData.viewabledrop.Count; i++) + { + list.Add(rowData.viewabledrop[i, 0]); + list2.Add(rowData.viewabledrop[i, 1]); + } + DlgBase.singleton.Show(list, list2, false); + DlgBase.singleton.SetGlobalPosition(iSp.gameObject.transform.position); + } + } + else + { + this._SignInDoc.ReqFetchBox(num); + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnSignInBtnClick(IXUIButton go) + { + this._SignInDoc.ReqSignIn((uint)go.ID); + return true; + } + + private bool _OnLogBtnClick(IXUIButton go) + { + this._SignInDoc.ReqLogList(); + this._LogView.SetVisible(true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildSignInView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildSignInView.cs.meta new file mode 100644 index 00000000..98f7f822 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildSignInView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 658a4965409814f4081ae2e8c44158c9 +timeCreated: 1611403851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildSignRedPackageView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildSignRedPackageView.cs new file mode 100644 index 00000000..ac39c6fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildSignRedPackageView.cs @@ -0,0 +1,506 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildSignRedPackageView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildSignRedPacketDlg"; + } + } + + public override int layer + { + get + { + return 2; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XGuildRedPacketDocument _Doc; + + private XGuildDocument _GuildDoc; + + private bool InActive = false; + + private int m_startTime; + + private int m_overTime; + + private Action m_updateAction; + + protected override void Init() + { + this._Doc = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + base.uiBehaviour.m_instructionTitle.SetText(XSingleton.singleton.GetValue("GuildRedPacketTitle")); + base.uiBehaviour.m_scrollContent.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetValue("GuildRedPacketDesc"))); + base.uiBehaviour.m_scrollView.ResetPosition(); + string value = XSingleton.singleton.GetValue("GuildCheckInBonusTime"); + string[] array = value.Split(XGlobalConfig.ListSeparator); + string[] array2 = array[0].Split(XGlobalConfig.SequenceSeparator); + string[] array3 = array[1].Split(XGlobalConfig.SequenceSeparator); + this.m_startTime = int.Parse(array2[0]) * 3600 + int.Parse(array2[1]) * 60; + this.m_overTime = int.Parse(array3[0]) * 3600 + int.Parse(array3[1]) * 60; + XSingleton.singleton.AddLog(string.Format("m_startime = {0},m_endtime ={1} ", this.m_startTime, this.m_overTime), null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_redPoint.gameObject.SetActive(false); + base.uiBehaviour.m_fixedRedPoint.gameObject.SetActive(false); + base.uiBehaviour.m_AakLabel.SetText(XStringDefineProxy.GetString("QUICK_REPLY_2")); + } + + public void RefreshRedPoint() + { + base.uiBehaviour.m_redPoint.gameObject.SetActive(XSingleton.singleton.GetSysRedPointState(XSysDefine.XSys_GuildRedPacket)); + base.uiBehaviour.m_fixedRedPoint.gameObject.SetActive(XSingleton.singleton.GetSysRedPointState(XSysDefine.XSys_GuildBoon_FixedRedPacket)); + } + + protected override void OnShow() + { + base.OnShow(); + this._Doc.GetGuildCheckInBonusInfo(); + this.RefreshSignInfo(); + this.RefreshRedPoint(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshRedPoint(); + this._Doc.GetGuildCheckInBonusInfo(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._Doc == null || this._Doc.GuildBonus == null; + if (!flag) + { + bool flag2 = this._Doc.GuildBonus.timeofday > (double)this.m_startTime && this._Doc.GuildBonus.timeofday < (double)this.m_overTime; + bool flag3 = this.InActive != flag2; + if (flag3) + { + this.InActive = flag2; + bool flag4 = this.m_updateAction != null; + if (flag4) + { + this.m_updateAction(this.InActive); + } + } + double leftAskBonusTime = this._Doc.GuildBonus.leftAskBonusTime; + bool flag5 = base.uiBehaviour.m_Ask.IsVisible(); + if (flag5) + { + bool flag6 = leftAskBonusTime > 0.0; + if (flag6) + { + base.uiBehaviour.m_AakLabel.SetText(string.Format("{0}{1}", XStringDefineProxy.GetString("INVITATION_SENT_NOTIFICATION"), (int)this._Doc.GuildBonus.leftAskBonusTime)); + } + else + { + base.uiBehaviour.m_AakLabel.SetText(XStringDefineProxy.GetString("QUICK_REPLY_2")); + } + } + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_History.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHistoryClick)); + base.uiBehaviour.m_sign.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSignClick)); + base.uiBehaviour.m_Send.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSendClick)); + base.uiBehaviour.m_Ask.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAskClick)); + base.uiBehaviour.m_Fiexd.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFiexdClick)); + int i = 0; + int num = base.uiBehaviour.m_SignNodes.Length; + while (i < num) + { + base.uiBehaviour.m_SignNodes[i].m_pressCircle.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCircleClick)); + i++; + } + } + + public void RefreshSignInfo() + { + XGuildCheckInBonusInfo guildBonus = this._Doc.GuildBonus; + this.SetOnLineNum(guildBonus.onLineNum, guildBonus.guildMemberNum); + this.SetSignValue(guildBonus.checkInNumber, guildBonus.guildMemberNum); + this.SetBonusBrief(guildBonus); + this.SetActiveCount(guildBonus.ActiveCount); + this.RefreshPermission(); + this.RefreshSignStatu(); + } + + public void SetActiveCount(int activeCount) + { + int i = 0; + int num = base.uiBehaviour.m_redPakages.Length; + while (i < num) + { + bool flag = i < activeCount; + if (flag) + { + base.uiBehaviour.m_redPakages[i].SetVisible(true); + } + else + { + base.uiBehaviour.m_redPakages[i].SetVisible(false); + } + i++; + } + this.m_uiBehaviour.m_redNumber.SetText(string.Format("{0}/4", activeCount)); + } + + public void SetOnLineNum(int cur, int total) + { + this.m_uiBehaviour.m_OnlineValue.SetText(string.Format("{0}", cur)); + this.m_uiBehaviour.m_BufferValue.SetText(string.Format("{0}%", this._Doc.GuildBonus.GetAddPercent(cur))); + } + + public void SetSignValue(int signValue, int guildMemberNum) + { + string @string = XStringDefineProxy.GetString("GUILDRED_SIGN_VALUE", new object[] + { + string.Format("{0}", signValue) + }); + this.m_uiBehaviour.m_SignValue.SetText(@string); + this.m_uiBehaviour.m_CurSignValue.SetText(signValue.ToString()); + } + + private void RefreshSignStatu() + { + bool isCheckIn = this._Doc.GuildBonus.isCheckIn; + this.m_uiBehaviour.m_sign.SetVisible(!isCheckIn); + } + + private void OnCircleClick(IXUISprite uiSprite) + { + XGuildCheckInBonusInfo guildBonus = this._Doc.GuildBonus; + bool flag = (int)uiSprite.ID < guildBonus.BonusBriefs.Length; + if (flag) + { + XGuildCheckInBonusBrief xguildCheckInBonusBrief = this._Doc.GuildBonus.BonusBriefs[(int)uiSprite.ID]; + bool flag2 = xguildCheckInBonusBrief == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("OnCircleClick Brief is null..", uiSprite.ID.ToString(), null, null, null, null); + } + else + { + bool flag3 = xguildCheckInBonusBrief.bonusState == BonusState.Bonus_UnActive; + if (flag3) + { + GuildBonusTable.RowData redPacketConfig = XGuildRedPacketDocument.GetRedPacketConfig(xguildCheckInBonusBrief.bonusType); + bool flag4 = redPacketConfig == null; + if (!flag4) + { + int itemID = (int)redPacketConfig.GuildBonusReward[0]; + uint num = redPacketConfig.GuildBonusReward[1]; + string text = XBagDocument.GetItemConf(itemID).ItemName[0]; + string @string = XStringDefineProxy.GetString("GUILD_SIGN_REDPACKEGT_INFO", new object[] + { + xguildCheckInBonusBrief.brief.maxCount, + num, + text + }); + XSingleton.singleton.ShowSystemTip(string.Format("{0},{1}", @string, XStringDefineProxy.GetString("ERR_GUILDCHECKIN_BOXLIMIT")), "fece00"); + } + } + else + { + bool flag5 = xguildCheckInBonusBrief.bonusState == BonusState.Bonus_Active; + if (flag5) + { + GuildBonusTable.RowData redPacketConfig2 = XGuildRedPacketDocument.GetRedPacketConfig(xguildCheckInBonusBrief.bonusType); + bool flag6 = redPacketConfig2 == null; + if (!flag6) + { + int itemID2 = (int)redPacketConfig2.GuildBonusReward[0]; + uint num2 = redPacketConfig2.GuildBonusReward[1]; + string text2 = XBagDocument.GetItemConf(itemID2).ItemName[0]; + XSingleton.singleton.ShowSystemTip(string.Format("{0}{1}", XStringDefineProxy.GetString("GUILD_SIGN_REDPACKEGT_INFO", new object[] + { + xguildCheckInBonusBrief.brief.maxCount, + num2, + text2 + }), XStringDefineProxy.GetString("SIGN_REDPAKCAGE_TIPS")), "fece00"); + } + } + else + { + bool flag7 = xguildCheckInBonusBrief.bonusState == BonusState.Bonus_Actived; + if (flag7) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + } + } + } + + private void SetBonusBrief(XGuildCheckInBonusInfo bonusInfo) + { + XGuildCheckInBonusBrief[] bonusBriefs = bonusInfo.BonusBriefs; + int i = 0; + int num = bonusBriefs.Length; + while (i < num) + { + XGuildSignNode xguildSignNode = base.uiBehaviour.m_SignNodes[i]; + bool flag = bonusBriefs[i] == null || xguildSignNode == null; + if (!flag) + { + xguildSignNode.SetSignNumber(bonusBriefs[i].bonueMemberCount); + xguildSignNode.SetBonusStatu(bonusBriefs[i].bonusState); + float bonusProgress = 0f; + bool flag2 = bonusBriefs[i].needMemberCount > 0u; + if (flag2) + { + bool flag3 = (long)bonusInfo.checkInNumber > (long)((ulong)bonusBriefs[i].bonueMemberCount); + if (flag3) + { + bonusProgress = 1f; + } + else + { + bool flag4 = (long)bonusInfo.checkInNumber < (long)((ulong)bonusBriefs[i].frontBonusMemberCount); + if (flag4) + { + bonusProgress = 0f; + } + else + { + bonusProgress = (float)((long)bonusInfo.checkInNumber - (long)((ulong)bonusBriefs[i].frontBonusMemberCount)) / bonusBriefs[i].needMemberCount; + } + } + } + xguildSignNode.SetBonusProgress(bonusProgress); + } + i++; + } + } + + private void RefreshGuildLeader(bool state) + { + bool flag = this.InActive && this._Doc.GuildBonus.HasActive(); + if (flag) + { + this.m_uiBehaviour.m_Send.SetGrey(true); + } + else + { + this.m_uiBehaviour.m_Send.SetGrey(false); + } + } + + private void RefreshGuildMember(bool state) + { + bool flag = this._Doc.GuildBonus.AllActived(); + bool flag2 = this.InActive || !flag; + if (flag2) + { + base.uiBehaviour.m_Ask.SetGrey(true); + } + else + { + base.uiBehaviour.m_Ask.SetGrey(false); + } + } + + private void RefreshPermission() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.ResetPermission(); + bool flag = specificDocument.IHavePermission(GuildPermission.GPEM_SENDCHECKINBONUS); + if (flag) + { + base.uiBehaviour.m_Send.SetVisible(true); + this.m_updateAction = new Action(this.RefreshGuildLeader); + } + else + { + base.uiBehaviour.m_Ask.SetVisible(true); + this.m_updateAction = new Action(this.RefreshGuildMember); + } + bool flag2 = this.m_updateAction != null; + if (flag2) + { + this.m_updateAction(this.InActive); + } + } + + private void ResetPermission() + { + base.uiBehaviour.m_Send.SetVisible(false); + base.uiBehaviour.m_Ask.SetVisible(false); + } + + private bool OnCloseClick(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnFiexdClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return false; + } + + private bool OnHistoryClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool OnSignClick(IXUIButton btn) + { + bool flag = !this._GuildDoc.CheckInGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !this._GuildDoc.CheckUnlockLevel(XSysDefine.XSys_GuildHall_SignIn); + if (flag2) + { + result = true; + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + } + return result; + } + + private bool OnSendClick(IXUIButton btn) + { + bool flag = !this.InActive; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BONUSOUTTIME"), "fece00"); + XSingleton.singleton.AddGreenLog(XSingleton.singleton.StringCombine("ServerTime;", XSingleton.singleton.TimeDuarationFormatString((int)this._Doc.GuildBonus.timeofday, 5)), null, null, null, null, null); + result = false; + } + else + { + XGuildCheckInBonusBrief xguildCheckInBonusBrief; + bool flag2 = this._Doc.GuildBonus.TryGetFreeBrief(out xguildCheckInBonusBrief); + if (flag2) + { + string @string = XStringDefineProxy.GetString("GUILD_BONUSSENDIALOG", new object[] + { + this._Doc.GuildBonus.onLineNum, + this._Doc.GuildBonus.GetAddPercent(this._Doc.GuildBonus.onLineNum), + xguildCheckInBonusBrief.brief.maxCount + }); + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnSureSendGuildBonus)); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BONUSONOTFREE"), "fece00"); + } + result = true; + } + return result; + } + + private bool OnSureSendGuildBonus(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this._Doc.GetSendGuildBonus(); + return true; + } + + private bool OnAskClick(IXUIButton btn) + { + bool flag = !this.InActive; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BONUSOUTTIME"), "fece00"); + result = false; + } + else + { + XGuildCheckInBonusBrief xguildCheckInBonusBrief; + bool flag2 = this._Doc.GuildBonus.TryGetFreeBrief(out xguildCheckInBonusBrief); + if (flag2) + { + bool flag3 = this._Doc.GuildBonus.leftAskBonusTime > 0.0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BONES_AFTER_TIME", new object[] + { + (int)this._Doc.GuildBonus.leftAskBonusTime + }), "fece00"); + } + else + { + DlgBase.singleton.ShowView(2, new Action(this.ShowAskForCheckInBonues)); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BONUSONOTFREE"), "fece00"); + } + result = true; + } + return result; + } + + private void ShowAskForCheckInBonues(bool state) + { + if (state) + { + XQuickReplyDocument specificDocument = XDocuments.GetSpecificDocument(XQuickReplyDocument.uuID); + specificDocument.GetAskForCheckInBonus(); + this._Doc.GuildBonus.leftAskBonusTime = (double)XSingleton.singleton.GetInt("GuildBonusAskTimeSpan"); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildSignRedPackageView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildSignRedPackageView.cs.meta new file mode 100644 index 00000000..43a9d715 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildSignRedPackageView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81707443faf5c2246a28bb89a3546633 +timeCreated: 1611404037 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildViewBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildViewBehaviour.cs new file mode 100644 index 00000000..1ec4c781 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildViewBehaviour.cs @@ -0,0 +1,32 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XGuildViewBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnApply; + + public IXUILabel m_Annoucement; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public XGuildBasicInfoDisplay m_BasicInfoDisplay = new XGuildBasicInfoDisplay(); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnApply = (base.transform.Find("Bg/BtnApply").GetComponent("XUIButton") as IXUIButton); + this.m_Annoucement = (base.transform.Find("Bg/Bg3/Announcement").GetComponent("XUILabel") as IXUILabel); + this.m_Annoucement.SetText(""); + this.m_BasicInfoDisplay.Init(base.transform.Find("Bg/BasicInfo/Content"), true); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildViewBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildViewBehaviour.cs.meta new file mode 100644 index 00000000..dbdd476c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildViewBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a91601ac19759f14fb96b97bc1f2ac35 +timeCreated: 1611404297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildViewView.cs b/Client/Assets/Scripts/XMainClient/UI/XGuildViewView.cs new file mode 100644 index 00000000..86fc7f19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildViewView.cs @@ -0,0 +1,172 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XGuildViewView : DlgBase + { + public override string fileName + { + get + { + return "Guild/GuildViewDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XGuildDocument _GuildDoc; + + private XGuildViewDocument _ViewDoc; + + private XGuildMemberInfoDisplay _MemberInfoDisplay = new XGuildMemberInfoDisplay(); + + protected override void Init() + { + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this._ViewDoc = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + this._ViewDoc.GuildViewView = this; + } + + protected override void OnUnload() + { + this._ViewDoc.GuildViewView = null; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnApply.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnApplyBtnClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + base.uiBehaviour.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this._WrapContentItemInit)); + } + + protected override void OnShow() + { + base.uiBehaviour.m_BtnApply.SetEnable(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild) && !this._GuildDoc.bInGuild, false); + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisible(false, true); + return true; + } + + private bool _OnApplyBtnClick(IXUIButton go) + { + bool bInGuild = this._GuildDoc.bInGuild; + bool result; + if (bInGuild) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_ALREADY_IN_GUILD, "fece00"); + result = true; + } + else + { + DlgBase.singleton.ShowApply(this._ViewDoc.BasicData.uid, this._ViewDoc.BasicData.guildName, (uint)this._ViewDoc.ApproveSetting.PPT, !this._ViewDoc.ApproveSetting.autoApprove, this._ViewDoc.BasicData.announcement); + result = true; + } + return result; + } + + public void RefreshAnnouncement() + { + XGuildBasicData basicData = this._ViewDoc.BasicData; + base.uiBehaviour.m_Annoucement.SetText(basicData.announcement); + } + + public void RefreshBasicInfo() + { + XGuildBasicData basicData = this._ViewDoc.BasicData; + base.uiBehaviour.m_BasicInfoDisplay.Set(basicData); + this.RefreshAnnouncement(); + } + + public void RefreshMembers() + { + List memberList = this._ViewDoc.MemberList; + int count = memberList.Count; + base.uiBehaviour.m_WrapContent.SetContentCount(count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + + private void _WrapContentItemInit(Transform t, int index) + { + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnMemberClick)); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._ViewDoc.MemberList.Count; + if (!flag) + { + XGuildMemberBasicInfo data = this._ViewDoc.MemberList[index]; + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + this._MemberInfoDisplay.Init(t, false); + this._MemberInfoDisplay.Set(data); + ixuisprite.ID = (ulong)((long)index); + } + } + + private void _OnMemberClick(IXUISprite iSp) + { + int num = (int)iSp.ID; + bool flag = num < 0 || num >= this._ViewDoc.MemberList.Count; + if (flag) + { + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XGuildViewView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XGuildViewView.cs.meta new file mode 100644 index 00000000..b14ce5fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XGuildViewView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71424041c36579a40982dda357f08aa4 +timeCreated: 1611403933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XLoginView.cs b/Client/Assets/Scripts/XMainClient/UI/XLoginView.cs new file mode 100644 index 00000000..7df45921 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XLoginView.cs @@ -0,0 +1,525 @@ +using System; +using System.Collections.Generic; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XLoginView : DlgBase + { + public override string fileName + { + get + { + return "SelectChar/LoginDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + private XLoginDocument _doc = null; + + protected override void Init() + { + this._doc = XSingleton.singleton; + this._doc.View = this; + } + + protected override void OnShow() + { + base.OnShow(); + this.SetVersion("v" + XSingleton.singleton.Version); + base.uiBehaviour.m_Login.SetVisible(!this._doc.IsPublish()); + base.uiBehaviour.m_Account.SetVisible(!this._doc.IsPublish()); + base.uiBehaviour.m_Password.SetVisible(!this._doc.IsPublish()); + int num = 4; + float num2 = 0f; + float y = base.uiBehaviour.m_GuestLogin.gameObject.transform.localPosition.y; + bool flag = (int)Application.platform == 8; + if (flag) + { + num |= 1; + num2 -= (float)(base.uiBehaviour.m_GuestLogin.spriteWidth / 2 + 10); + } + bool flag2 = XSingleton.singleton.XPlatform.CheckWeChatInstalled() || (int)Application.platform != 8; + if (flag2) + { + num |= 2; + num2 -= (float)(base.uiBehaviour.m_GuestLogin.spriteWidth / 2 + 10); + } + bool flag3 = (num & 1) > 0; + if (flag3) + { + base.uiBehaviour.m_GuestLogin.gameObject.transform.localPosition = new Vector3(num2, y); + num2 += (float)(base.uiBehaviour.m_GuestLogin.spriteWidth + 10); + } + else + { + base.uiBehaviour.m_GuestLogin.SetVisible(false); + } + bool flag4 = (num & 2) > 0; + if (flag4) + { + base.uiBehaviour.m_WXLogin.gameObject.transform.localPosition = new Vector3(num2, y); + num2 += (float)(base.uiBehaviour.m_WXLogin.spriteWidth + 10); + } + else + { + base.uiBehaviour.m_WXLogin.SetVisible(false); + } + bool flag5 = (num & 4) > 0; + if (flag5) + { + base.uiBehaviour.m_QQLogin.gameObject.transform.localPosition = new Vector3(num2, y); + num2 += (float)(base.uiBehaviour.m_QQLogin.spriteWidth + 10); + } + else + { + base.uiBehaviour.m_QQLogin.SetVisible(false); + } + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Login.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAccountInfoEnterClick)); + base.uiBehaviour.m_QQLogin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQQLoginButtonClick)); + base.uiBehaviour.m_WXLogin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnWXLoginButtonClick)); + base.uiBehaviour.m_GuestLogin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGuestButtonClick)); + base.uiBehaviour.m_Notice.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnNoticeClicked)); + base.uiBehaviour.m_CG.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCGClicked)); + base.uiBehaviour.m_CustomerService.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCustomerServiceClicked)); + base.uiBehaviour.m_EnterToSelectChar.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterToSelectCharClicked)); + base.uiBehaviour.m_ReturnToLogin.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnToLoginClicked)); + base.uiBehaviour.m_ServerListButton.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectServerClick)); + base.uiBehaviour.m_CloseServerList.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnServerListCloseClicked)); + base.uiBehaviour.m_LeaveQueue.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLeaveQueueClicked)); + base.uiBehaviour.m_FriendWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.FriendWrapContentUpdated)); + } + + public void RefreshAccount() + { + base.uiBehaviour.m_Account.SetText(this._doc.Account ?? ""); + base.uiBehaviour.m_Password.SetText(this._doc.Password ?? ""); + } + + private bool OnAccountInfoEnterClick(IXUIButton button) + { + bool flag = this._doc.CheckLoginBlockTime(); + if (flag) + { + string text = base.uiBehaviour.m_Account.GetText(); + string text2 = base.uiBehaviour.m_Password.GetText(); + this._doc.Authorization(XAuthorizationChannel.XAuthorization_Internal, true, false, text, text2); + } + else + { + XSingleton.singleton.ShowLoginTip(XStringDefineProxy.GetString("LOGIN_TOO_FREQUENT")); + } + return true; + } + + private bool OnQQLoginButtonClick(IXUIButton go) + { + bool flag = this._doc.CheckLoginBlockTime(); + if (flag) + { + this._doc.Authorization(XAuthorizationChannel.XAuthorization_QQ, true, false, null, null); + } + else + { + XSingleton.singleton.ShowLoginTip(XStringDefineProxy.GetString("LOGIN_TOO_FREQUENT")); + } + return true; + } + + private bool OnWXLoginButtonClick(IXUIButton go) + { + bool flag = this._doc.CheckLoginBlockTime(); + if (flag) + { + this._doc.Authorization(XAuthorizationChannel.XAuthorization_WeChat, true, false, null, null); + } + else + { + XSingleton.singleton.ShowLoginTip(XStringDefineProxy.GetString("LOGIN_TOO_FREQUENT")); + } + return true; + } + + private bool OnGuestButtonClick(IXUIButton go) + { + bool flag = this._doc.CheckLoginBlockTime(); + if (flag) + { + this._doc.Authorization(XAuthorizationChannel.XAuthorization_Guest, true, false, null, null); + } + else + { + XSingleton.singleton.ShowLoginTip(XStringDefineProxy.GetString("LOGIN_TOO_FREQUENT")); + } + return true; + } + + private bool OnNoticeClicked(IXUIButton go) + { + XSingleton.singleton.ShowAfterLoginAnnouncement(this._doc.Announcement); + return true; + } + + private bool OnCGClicked(IXUIButton button) + { + XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(XSingleton.singleton.PlayCG), null); + return true; + } + + private bool OnCustomerServiceClicked(IXUIButton go) + { + Dictionary dictionary = new Dictionary(); + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform != 11) + { + XSingleton.singleton.AddGreenLog("CustomerService-Login", null, null, null, null, null); + } + else + { + dictionary["url"] = XSingleton.singleton.GetValue("CustomerServiceLoginAndroid"); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + } + else + { + dictionary["url"] = XSingleton.singleton.GetValue("CustomerServiceLoginApple"); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + return true; + } + + private bool OnEnterToSelectCharClicked(IXUIButton go) + { + bool flag = string.IsNullOrEmpty(XSingleton.singleton.XLoginToken); + if (flag) + { + XSingleton.singleton.AutoAuthorization(false); + } + else + { + XSingleton.singleton.Login(); + } + return true; + } + + private bool OnReturnToLoginClicked(IXUIButton go) + { + this._doc.AuthorizationSignOut(); + return true; + } + + private void OnServerListCloseClicked(IXUISprite sp) + { + base.uiBehaviour.m_ServerList.gameObject.SetActive(false); + } + + private bool OnLeaveQueueClicked(IXUIButton button) + { + base.uiBehaviour.m_QueueFrame.SetActive(false); + this._doc.CancelQueue(); + return true; + } + + public void TweenAlpha(bool bForward) + { + base.uiBehaviour.m_Tween.PlayTween(bForward, -1f); + } + + public void SetVersion(string version) + { + bool flag = XSingleton.singleton.XPlatform.IsTestMode(); + if (flag) + { + base.uiBehaviour.m_Version.SetText(version + "Test"); + } + else + { + base.uiBehaviour.m_Version.SetText(version); + } + } + + public void ShowLogin() + { + base.uiBehaviour.m_normalFrame.SetActive(true); + base.uiBehaviour.m_ServerListFrame.SetActive(false); + base.uiBehaviour.m_QueueFrame.SetActive(false); + this.RefreshAccount(); + } + + public void ShowSelectServer() + { + base.uiBehaviour.m_normalFrame.SetActive(false); + base.uiBehaviour.m_ServerListFrame.SetActive(true); + base.uiBehaviour.m_ServerList.gameObject.SetActive(false); + base.uiBehaviour.m_QueueFrame.SetActive(false); + } + + public void ShowQueue() + { + base.uiBehaviour.m_normalFrame.SetActive(false); + base.uiBehaviour.m_ServerListFrame.SetActive(false); + base.uiBehaviour.m_QueueFrame.SetActive(true); + base.uiBehaviour.m_QueueTip.SetText(""); + } + + public void RefreshQueueState() + { + bool flag = !base.uiBehaviour.m_QueueFrame.activeSelf; + if (!flag) + { + base.uiBehaviour.m_QueueTip.SetText(string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("WAIT_FOR_SERVER_QUEUE")), XSingleton.singleton.Server, this._doc.RoleCountInQueue, XSingleton.singleton.TimeAccFormatString((int)this._doc.LeftTimeInQueue, 3, 0))); + } + } + + public void OnShowServerList() + { + base.uiBehaviour.m_ServerPool.ReturnAll(false); + base.uiBehaviour.m_ServerList.gameObject.SetActive(true); + this.SetupAreaServerList(); + } + + private void OnSelectServerClick(IXUISprite sp) + { + this.OnShowServerList(); + } + + public void SetCurrentServer() + { + base.uiBehaviour.m_CurrentServer.SetText(XSingleton.singleton.Server); + } + + private void SetupAreaServerList() + { + base.uiBehaviour.m_AreaPool.ReturnAll(false); + Vector3 localPosition = base.uiBehaviour.m_AreaPool._tpl.transform.localPosition; + int tplHeight = base.uiBehaviour.m_AreaPool.TplHeight; + IXUICheckBox ixuicheckBox = null; + string @string = XSingleton.singleton.GetString("BACK_SERVERS"); + bool flag = XSingleton.singleton.BackFlowServerList.Count > 0; + for (int i = 0; i < this._doc.ZoneList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_AreaPool.FetchGameObject(false); + gameObject.name = "Area" + i; + gameObject.transform.localPosition = localPosition + new Vector3(0f, (float)(-(float)i * tplHeight)); + IXUILabel ixuilabel = gameObject.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Selected/Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(this._doc.ZoneList[i]); + ixuilabel.SetText(this._doc.ZoneList[i]); + ixuilabel.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnAreaClicked)); + string a = this._doc.ZoneList[i]; + bool flag2 = flag && a == @string; + if (flag2) + { + flag = true; + this.ShowAreaServers(this._doc.ZoneList[i]); + ixuicheckBox = (gameObject.GetComponent("XUICheckBox") as IXUICheckBox); + } + bool flag3 = i == 2 && !flag; + if (flag3) + { + this.ShowAreaServers(this._doc.ZoneList[i]); + ixuicheckBox = (gameObject.GetComponent("XUICheckBox") as IXUICheckBox); + } + } + bool flag4 = ixuicheckBox != null; + if (flag4) + { + ixuicheckBox.bChecked = true; + } + } + + private void ShowAreaServers(string zone) + { + bool flag = zone == XStringDefineProxy.GetString("FRIENDS_SERVERS"); + if (flag) + { + base.uiBehaviour.m_FriendFrame.gameObject.SetActive(true); + base.uiBehaviour.m_ServerFrame.gameObject.SetActive(false); + base.uiBehaviour.m_FriendWrapContent.SetContentCount(this._doc.FriendOpenid.Count, true); + base.uiBehaviour.m_FriendScrollView.ResetPosition(); + } + else + { + base.uiBehaviour.m_FriendFrame.gameObject.SetActive(false); + base.uiBehaviour.m_ServerFrame.gameObject.SetActive(true); + base.uiBehaviour.m_FriendWrapContent.SetContentCount(0, true); + } + base.uiBehaviour.m_ServerPool.ReturnAll(false); + Vector3 localPosition = base.uiBehaviour.m_ServerPool._tpl.transform.localPosition; + int tplHeight = base.uiBehaviour.m_ServerPool.TplHeight; + int tplWidth = base.uiBehaviour.m_ServerPool.TplWidth; + List list = this._doc.ServerCategory[zone]; + int num = 0; + for (int i = list.Count - 1; i >= 0; i--) + { + ServerInfo serverData = this._doc.GetServerData(list[i]); + bool flag2 = serverData == null; + if (!flag2) + { + bool flag3 = !XSingleton.singleton.IsGMAccount; + if (flag3) + { + bool flag4 = serverData.StateTxt == 6; + if (flag4) + { + goto IL_2EF; + } + } + Transform transform = base.uiBehaviour.m_ServerPool.FetchGameObject(true).transform; + transform.name = "Server" + list[i]; + int num2 = num / 2; + int num3 = num % 2; + num++; + transform.localPosition = localPosition + new Vector3((float)(num3 * tplWidth), (float)(-(float)num2 * tplHeight)); + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel; + ixuisprite.ID = (ulong)((long)list[i]); + ixuilabel.SetText(serverData.ServerName); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnServerClicked)); + IXUISprite ixuisprite2 = transform.Find("Bg/Status").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(this._ServerStateString((ServerStateEnum)serverData.State)); + this._SetServerStateLabel(transform.gameObject, serverData.StateTxt); + IXUILabel ixuilabel2 = transform.Find("Bg/Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.Alpha = ((serverData.Level == 0u) ? 0f : 1f); + ixuilabel2.SetText(string.Format("Lv.{0}", serverData.Level)); + } + IL_2EF:; + } + base.uiBehaviour.m_ServerScrollView.ResetPosition(); + } + + private void FriendWrapContentUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._doc.FriendOpenid.Count; + if (flag) + { + t.gameObject.SetActive(false); + } + else + { + FriendServerInfo friendServerInfo = null; + bool flag2 = !this._doc.FriendServerDic.TryGetValue(this._doc.FriendOpenid[index], out friendServerInfo); + if (!flag2) + { + ServerInfo serverData = this._doc.GetServerData(this._doc.FriendServerDic[this._doc.FriendOpenid[index]].info.serverid); + bool flag3 = serverData == null; + if (!flag3) + { + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel; + ixuisprite.ID = (ulong)((long)friendServerInfo.info.serverid); + ixuilabel.SetText(serverData.ServerName); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnServerClicked)); + IXUISprite ixuisprite2 = t.Find("Bg/Status").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(this._ServerStateString((ServerStateEnum)serverData.State)); + this._SetServerStateLabel(t.gameObject, serverData.StateTxt); + IXUILabel ixuilabel2 = t.Find("Bg/Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.Alpha = ((friendServerInfo.info.level == 0) ? 0f : 1f); + ixuilabel2.SetText(string.Format("Lv.{0}", friendServerInfo.info.level)); + IXUILabel ixuilabel3 = t.Find("Bg/GameName").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(friendServerInfo.info.rolename); + IXUILabel ixuilabel4 = t.Find("Bg/IMName").GetComponent("XUILabel") as IXUILabel; + ixuilabel4.SetText(friendServerInfo.account); + IXUITexture ixuitexture = t.Find("Bg/Icon").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetVisible(true); + ixuitexture.SetTexturePath(""); + XSingleton.singleton.Load(friendServerInfo.icon, ixuitexture, base.uiBehaviour); + } + } + } + } + + private void OnAreaClicked(IXUILabel sp) + { + this.ShowAreaServers(sp.GetText()); + } + + private void OnServerClicked(IXUISprite sp) + { + base.uiBehaviour.m_ServerList.gameObject.SetActive(false); + this._doc.OnServerChanged((int)sp.ID); + } + + private Color _ServerStateColor(ServerStateEnum state) + { + Color result; + switch (state) + { + case ServerStateEnum.TIMEOUT: + result = new Color(1f, 1f, 1f, 1f); + break; + case ServerStateEnum.EMPTY: + result = new Color(0.1254902f, 0.8784314f, 0.160784319f, 1f); + break; + case ServerStateEnum.NORMAL: + result = new Color(0.996078432f, 0.7254902f, 0f, 1f); + break; + case ServerStateEnum.FULL: + result = new Color(0.8784314f, 0.286274523f, 0.1254902f, 1f); + break; + default: + result = new Color(1f, 1f, 1f, 1f); + break; + } + return result; + } + + private string _ServerStateString(ServerStateEnum state) + { + string result; + switch (state) + { + case ServerStateEnum.TIMEOUT: + result = "fwq_0"; + break; + case ServerStateEnum.EMPTY: + result = "fwq_1"; + break; + case ServerStateEnum.NORMAL: + result = "fwq_2"; + break; + case ServerStateEnum.FULL: + result = "fwq_3"; + break; + default: + result = "fwq_0"; + break; + } + return result; + } + + private void _SetServerStateLabel(GameObject go, int state) + { + int num = XFastEnumIntEqualityComparer.ToInt(ServerFlagEnum.MAX); + for (int i = 0; i < num; i++) + { + Transform transform = go.transform.Find(string.Format("Bg/State{0}", i)); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(state == i); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XLoginView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XLoginView.cs.meta new file mode 100644 index 00000000..284a1045 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XLoginView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78b82f0cdcbcf914aaf8a27735881108 +timeCreated: 1611403982 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMISystemAnnounceHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XMISystemAnnounceHandler.cs new file mode 100644 index 00000000..e674747c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMISystemAnnounceHandler.cs @@ -0,0 +1,106 @@ +using System; +using System.Text; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMISystemAnnounceHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/ForeshowDlg"; + } + } + + private IXUISprite m_closedSpr; + + private IXUISprite m_iconSpr; + + private IXUILabel m_nameLab; + + private IXUILabel m_levelLab; + + private IXUILabel m_describeLab; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("Bg"); + this.m_closedSpr = (transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_iconSpr = (transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + transform = transform.Find("SkillFrame").transform; + this.m_nameLab = (transform.Find("AttrName").GetComponent("XUILabel") as IXUILabel); + this.m_levelLab = (transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_describeLab = (transform.Find("Describe").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closedSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickClosedSpr)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public void RefreshUI() + { + this.FillContent(); + } + + private void FillContent() + { + SystemAnnounce.RowData sysAnnounceData = XSingleton.singleton.GetSysAnnounceData(XSingleton.singleton.XPlayerData.Level); + bool flag = sysAnnounceData == null; + if (!flag) + { + this.m_iconSpr.SetSprite(sysAnnounceData.IconName); + this.m_nameLab.SetText(sysAnnounceData.SystemDescription); + this.m_levelLab.SetText(string.Format(XSingleton.singleton.GetString("SKILL_LEARN"), sysAnnounceData.OpenAnnounceLevel)); + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < sysAnnounceData.AnnounceDesc.Length; i++) + { + stringBuilder.Append(sysAnnounceData.AnnounceDesc[i]); + bool flag2 = i != sysAnnounceData.AnnounceDesc.Length - 1; + if (flag2) + { + stringBuilder.Append("{n}"); + } + } + this.m_describeLab.SetText(XSingleton.singleton.ReplaceReturn(stringBuilder.ToString())); + } + } + + protected void OnClickClosedSpr(IXUISprite sp) + { + base.SetVisible(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMISystemAnnounceHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMISystemAnnounceHandler.cs.meta new file mode 100644 index 00000000..7968b290 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMISystemAnnounceHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 542d7f87c3363ba49b5f9c0174709572 +timeCreated: 1611403714 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterface.cs b/Client/Assets/Scripts/XMainClient/UI/XMainInterface.cs new file mode 100644 index 00000000..0fed08bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterface.cs @@ -0,0 +1,3026 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMainInterface : DlgBase + { + public XMainInterfaceDocument MainDoc + { + get + { + return this._main_doc; + } + } + + public bool MenuSwitchBtnState + { + get + { + return this._MenuSwitchBtnState; + } + } + + public override string fileName + { + get + { + return "Hall/HallDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private bool _bH1Opened; + + private int _curPPT = 0; + + private XAchievementDocument _achievement_doc = null; + + private XMainInterfaceDocument _main_doc = null; + + private IPlatform _platform = null; + + private SceneType m_curScene; + + private DateTime _fatigePressTime = DateTime.Now; + + private uint _pressToken = 0u; + + private uint _fatigeRefreshToken = 0u; + + private DateTime _last_power_sound_time = DateTime.Now; + + public XMainInterfaceBriefHandler _TaskNaviHandler; + + public SkyArenaWaitHandler _WaitHandler; + + public HomeHandler _HomeHandler; + + public XYuyinView _yuyinHandler; + + public WeddingSceneHandler _WeddingHandler; + + public YorozuyaHandler _yorozuyaHandler; + + public DanceMotionHandler _DanceMotionHandler; + + public XMainSubstanceHandler _substanceHandler; + + public float DramaDlgCloseTime = 0f; + + private int _curExpInd = 0; + + private int _maxExpCount = 4; + + private XTimerMgr.ElapsedEventHandler _refreshFatigeTimeCb = null; + + private XTimerMgr.ElapsedEventHandler _showFatigeRecoverTimeCb = null; + + private GameCommunityHandler _GameCommunityHandler = null; + + private bool _V3SwitchBtnState = false; + + private bool _MenuSwitchBtnState = true; + + private bool _H2SwitchBtnState = true; + + public uint MulActTipsToken; + + private int _MulActTipsCD; + + private XLeftTimeCounter _LevelSealCDCounter = null; + + private bool isLevelSealCountdown = false; + + private float lastPingTime = -60f; + + private float lastDebugUITrigger = -1f; + + public bool fakeShow = true; + + private XFx m_activityFx = null; + + private bool m_isFromTime = false; + + private float m_fClickTime = 0f; + + private IXUIButton lastSelectV3Button = null; + + public XMainInterface() + { + this._refreshFatigeTimeCb = new XTimerMgr.ElapsedEventHandler(this.RefreshFatigeTime); + this._showFatigeRecoverTimeCb = new XTimerMgr.ElapsedEventHandler(this.ShowFatigeRecoverTime); + } + + protected override void Init() + { + this._platform = XSingleton.singleton.XPlatform; + XPlayer player = XSingleton.singleton.Player; + XPlayerAttributes xplayerAttributes = player.Attributes as XPlayerAttributes; + this._curPPT = (int)xplayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + this._main_doc = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + this._main_doc.View = this; + this._achievement_doc = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + this._achievement_doc.HallMainView = this; + this.DramaDlgCloseTime = 0f; + DlgHandlerBase.EnsureCreate(ref this._TaskNaviHandler, base.uiBehaviour.m_TaskNaviFrame.transform, true, null); + this._MulActTipsCD = XSingleton.singleton.GetInt("MulActivityTipsCD"); + this._V3SwitchBtnState = false; + this._MenuSwitchBtnState = true; + this._H2SwitchBtnState = true; + } + + protected override void OnLoad() + { + DlgHandlerBase.EnsureCreate(ref this._HomeHandler, base.uiBehaviour.m_HomeGo.transform, true, null); + DlgHandlerBase.EnsureCreate(ref this._yuyinHandler, base.uiBehaviour.transform, true, this); + DlgHandlerBase.EnsureCreate(ref this._WeddingHandler, base.uiBehaviour.m_HomeGo.transform, true, null); + DlgHandlerBase.EnsureCreate(ref this._substanceHandler, base.uiBehaviour.m_SysGrid, null, true); + DlgHandlerBase.EnsureCreate(ref this._yorozuyaHandler, base.uiBehaviour.transform, true, null); + DlgHandlerBase.EnsureCreate(ref this._DanceMotionHandler, base.uiBehaviour.m_DanceMotion, null, false); + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING || XSingleton.singleton.SceneType == SceneType.SCENE_HORSE || XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_READY || XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY; + if (flag) + { + DlgHandlerBase.EnsureCreate(ref this._WaitHandler, base.uiBehaviour.m_Canvas, true, this); + } + } + + protected override void OnUnload() + { + this._LevelSealCDCounter = null; + this.m_uiBehaviour.m_txtAvatar.SetTexturePath(""); + XBigMeleeEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + DlgHandlerBase.EnsureUnload(ref specificDocument.RankHandler); + DlgHandlerBase.EnsureUnload(ref this._HomeHandler); + DlgHandlerBase.EnsureUnload(ref this._WeddingHandler); + DlgHandlerBase.EnsureUnload(ref this._TaskNaviHandler); + DlgHandlerBase.EnsureUnload(ref this._WaitHandler); + DlgHandlerBase.EnsureUnload(ref this._yuyinHandler); + DlgHandlerBase.EnsureUnload(ref this._GameCommunityHandler); + DlgHandlerBase.EnsureUnload(ref this._substanceHandler); + DlgHandlerBase.EnsureUnload(ref this._yorozuyaHandler); + DlgHandlerBase.EnsureUnload(ref this._DanceMotionHandler); + this._main_doc.View = null; + XSingleton.singleton.Reset(); + this._MenuSwitchBtnState = true; + XSingleton.singleton.KillTimer(this.MulActTipsToken); + bool flag = this.m_activityFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_activityFx, true); + this.m_activityFx = null; + } + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.lastPingTime = -60f; + this._SetSceneUI(); + this._main_doc.Present(); + this.lastSelectV3Button = null; + XPlatformAbilityDocument.Doc.QueryQQVipInfo(); + DlgBase.singleton.ShowChatDefaultMiniUI(); + bool flag = !DlgBase.singleton.IsInited; + if (flag) + { + DlgBase.singleton.ShowPanel(false); + } + DlgBase.singleton.Show(true); + DlgBase.singleton.Show(true); + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.ReqFriendsInfo(); + this.RefreshSysAnnounce(); + base.uiBehaviour.m_RecoverTime.SetVisible(false); + XSingleton.singleton.InitFlyMgr(); + XSingleton.singleton.Init(); + this._InitH5(); + this.HandlerYuyin(); + this.RefreshMoneyInfo(0, false); + this.CalMenuSwitchBtnRedPointState(); + this.CalH2SwitchBtnRedPointState(null); + this._main_doc.OnLoadWebViewConfig(); + XDanceDocument.Doc.GetAllDanceIDs(); + this.SetActivityEffect(false); + } + + private void _InitH5() + { + foreach (XSysDefine sys in XSingleton.singleton.SysH5) + { + this.RefreshH5ButtonState(sys, false); + } + bool flag = this._substanceHandler != null && this._substanceHandler.IsVisible(); + if (flag) + { + this._substanceHandler.Sort(); + } + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + this.ShowLiveCount(specificDocument.LiveCount); + this.InitSevenLoginWhenShow(); + } + + protected override void OnSetVisiblePure(bool bShow) + { + base.OnSetVisiblePure(bShow); + if (bShow) + { + this._InitH5(); + this.RefreshMoneyInfo(0, false); + bool flag = DlgBase.singleton._TaskNaviHandler.TaskHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._TaskNaviHandler.TaskHandler.RefreshData(); + } + } + } + + private void HandlerYuyin() + { + YuyinIconType type = YuyinIconType.Hall; + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType <= SceneType.SCENE_GUILD_HALL) + { + if (sceneType != SceneType.SCENE_HALL) + { + if (sceneType == SceneType.SCENE_GUILD_HALL) + { + type = YuyinIconType.Guild; + } + } + else + { + type = YuyinIconType.Hall; + } + } + else if (sceneType != SceneType.SCENE_FAMILYGARDEN) + { + if (sceneType == SceneType.SCENE_LEISURE) + { + type = YuyinIconType.LEISURE; + } + } + else + { + type = YuyinIconType.HOME; + } + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Refresh(type); + bool flag2 = this._yuyinHandler.m_panel != null && this._yuyinHandler.m_panel.gameObject != null; + if (flag2) + { + this._yuyinHandler.m_panel.gameObject.SetActive(this.fakeShow); + } + } + } + + protected override void OnHide() + { + base.OnHide(); + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.Show(false); + DlgBase.singleton.Show(false); + this._LevelSealCDCounter = null; + } + + private void _SetSceneUI() + { + this.m_curScene = XSingleton.singleton.SceneType; + this._yorozuyaHandler.SetVisible(false); + SceneType curScene = this.m_curScene; + if (curScene <= SceneType.SKYCITY_WAITING) + { + if (curScene <= SceneType.SCENE_GUILD_HALL) + { + if (curScene == SceneType.SCENE_HALL) + { + this.SetHallUi(); + this._bH1Opened = true; + return; + } + if (curScene != SceneType.SCENE_GUILD_HALL) + { + goto IL_D8; + } + this.SetGuildHallUi(); + this._bH1Opened = false; + return; + } + else + { + if (curScene == SceneType.SCENE_FAMILYGARDEN) + { + this.SetHomeUi(); + this._bH1Opened = true; + return; + } + if (curScene != SceneType.SKYCITY_WAITING) + { + goto IL_D8; + } + } + } + else if (curScene <= SceneType.SCENE_BIGMELEE_READY) + { + if (curScene != SceneType.SCENE_HORSE && curScene != SceneType.SCENE_BIGMELEE_READY) + { + goto IL_D8; + } + } + else + { + if (curScene == SceneType.SCENE_WEDDING) + { + this.SetWeddingUI(); + this._bH1Opened = true; + return; + } + if (curScene != SceneType.SCENE_BATTLEFIELD_READY) + { + if (curScene != SceneType.SCENE_LEISURE) + { + goto IL_D8; + } + this.SetLeisureUi(); + this._bH1Opened = true; + return; + } + } + this.SetWaitingUi(); + this._bH1Opened = true; + return; + IL_D8: + this.SetHallUi(); + } + + private void SetHallUi() + { + this._TaskNaviHandler.SetVisible(true); + base.uiBehaviour.m_SysListH1.SetVisible(true); + base.uiBehaviour.m_SysListH0.SetVisible(true); + base.uiBehaviour.m_SysListV1.SetVisible(true); + base.uiBehaviour.m_SecondMenu.SetActive(true); + this._substanceHandler.SetVisible(true); + base.uiBehaviour.m_MenuSwitchBtn.SetVisible(true); + this._WeddingHandler.SetVisible(false); + this._HomeHandler.SetVisible(false); + base.uiBehaviour.m_SysListH3.SetVisible(false); + base.uiBehaviour.m_ExitGuild.SetVisible(false); + base.uiBehaviour.m_SysListGuildH1.SetVisible(false); + base.uiBehaviour.m_SysListGuildV1.SetVisible(false); + base.uiBehaviour.m_SysListGuildH2.SetVisible(false); + this.OnMainSysChange(); + } + + private void SetGuildHallUi() + { + this._WeddingHandler.SetVisible(false); + this._HomeHandler.SetVisible(false); + this._TaskNaviHandler.SetVisible(false); + base.uiBehaviour.m_SysListH3.SetVisible(false); + base.uiBehaviour.m_SysListH1.SetVisible(true); + base.uiBehaviour.m_SysListH0.SetVisible(false); + base.uiBehaviour.m_SysListV1.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(false); + this._substanceHandler.SetVisible(true); + base.uiBehaviour.m_MenuSwitchBtn.SetVisible(true); + base.uiBehaviour.m_ExitGuild.SetVisible(true); + base.uiBehaviour.m_SysListGuildH1.SetVisible(true); + base.uiBehaviour.m_SysListGuildV1.SetVisible(true); + base.uiBehaviour.m_SysListGuildH2.SetVisible(true); + base.uiBehaviour.m_SysListH0.CloseList(); + base.uiBehaviour.m_SysListH3.CloseList(); + this._ShowGuildMenu(); + this.RefreshV3H1OnOtherScene(); + bool menuSwitchBtnState = this._MenuSwitchBtnState; + if (menuSwitchBtnState) + { + this.OnMenuSwitchBtnClick(null); + } + } + + private void SetWaitingUi() + { + this._WeddingHandler.SetVisible(false); + this._HomeHandler.SetVisible(false); + base.uiBehaviour.m_SysListH3.SetVisible(false); + base.uiBehaviour.m_SysListV1.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(false); + base.uiBehaviour.m_ExitGuild.SetVisible(false); + this._substanceHandler.SetVisible(false); + base.uiBehaviour.m_SysListGuildH1.SetVisible(false); + base.uiBehaviour.m_SysListGuildV1.SetVisible(false); + base.uiBehaviour.m_SysListGuildH2.SetVisible(false); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + if (flag) + { + this._TaskNaviHandler.SetVisible(specificDocument.bInTeam); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_HORSE || XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY || XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_READY; + if (flag2) + { + this._TaskNaviHandler.SetVisible(false); + } + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY; + if (flag3) + { + base.uiBehaviour.m_SysListH1.SetVisible(false); + base.uiBehaviour.m_SysListH0.SetVisible(false); + base.uiBehaviour.m_MenuSwitchBtn.SetVisible(false); + } + else + { + base.uiBehaviour.m_SysListH1.SetVisible(true); + base.uiBehaviour.m_SysListH0.SetVisible(true); + base.uiBehaviour.m_MenuSwitchBtn.SetVisible(true); + } + this.RefreshV3H1OnOtherScene(); + } + + private void SetHomeUi() + { + this._HomeHandler.SetVisible(true); + this.BottomDownBtns(true); + this._WeddingHandler.SetVisible(false); + this._TaskNaviHandler.SetVisible(false); + base.uiBehaviour.m_ExitGuild.SetVisible(false); + base.uiBehaviour.m_SysListH0.SetVisible(false); + this._substanceHandler.SetVisible(false); + base.uiBehaviour.m_SysListV1.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(false); + base.uiBehaviour.m_SysListGuildH1.SetVisible(false); + base.uiBehaviour.m_SysListGuildV1.SetVisible(false); + base.uiBehaviour.m_SysListGuildH2.SetVisible(false); + bool menuSwitchBtnState = this._MenuSwitchBtnState; + if (menuSwitchBtnState) + { + this.OnMenuSwitchBtnClick(null); + } + this.OnMainSysChange(); + } + + private void SetWeddingUI() + { + this._WeddingHandler.SetVisible(true); + base.uiBehaviour.m_V3SwitchBtn.SetVisible(true); + base.uiBehaviour.m_SysListV3.SetVisible(true); + this._HomeHandler.SetVisible(false); + this._TaskNaviHandler.SetVisible(false); + base.uiBehaviour.m_ExitGuild.SetVisible(false); + base.uiBehaviour.m_SysListV1.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(false); + this._substanceHandler.SetVisible(false); + base.uiBehaviour.m_SysListGuildH1.SetVisible(false); + base.uiBehaviour.m_SysListGuildV1.SetVisible(false); + base.uiBehaviour.m_SysListGuildH2.SetVisible(false); + base.uiBehaviour.m_SysListH3.SetVisible(false); + base.uiBehaviour.m_SysListH1.SetVisible(false); + base.uiBehaviour.m_MenuSwitchBtn.SetVisible(false); + this.OnMainSysChange(); + } + + private void SetLeisureUi() + { + this._yorozuyaHandler.SetVisible(true); + this._WeddingHandler.SetVisible(false); + base.uiBehaviour.m_V3SwitchBtn.SetVisible(false); + base.uiBehaviour.m_SysListV3.SetVisible(false); + this._HomeHandler.SetVisible(false); + this._TaskNaviHandler.SetVisible(false); + base.uiBehaviour.m_ExitGuild.SetVisible(false); + base.uiBehaviour.m_SysListV1.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(false); + this._substanceHandler.SetVisible(false); + base.uiBehaviour.m_SysListGuildH1.SetVisible(false); + base.uiBehaviour.m_SysListGuildV1.SetVisible(false); + base.uiBehaviour.m_SysListGuildH2.SetVisible(false); + base.uiBehaviour.m_SysListH3.SetVisible(false); + base.uiBehaviour.m_SysListH1.SetVisible(false); + base.uiBehaviour.m_MenuSwitchBtn.SetVisible(false); + } + + public void BottomDownBtns(bool visible) + { + base.uiBehaviour.m_V3SwitchBtn.SetVisible(visible); + base.uiBehaviour.m_SysListV3.SetVisible(visible); + base.uiBehaviour.m_SysListH3.SetVisible(visible); + base.uiBehaviour.m_SysListH1.SetVisible(visible); + base.uiBehaviour.m_MenuSwitchBtn.SetVisible(visible); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_MenuSwitchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMenuSwitchBtnClick)); + base.uiBehaviour.m_H2SwitchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnH2SwitchBtnClick)); + base.uiBehaviour.m_H2ListTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.CalH2SwitchBtnRedPointState)); + base.uiBehaviour.m_PlayerAvatar.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAvatarClick)); + for (int i = 0; i < base.uiBehaviour.m_SysButtonsMapping.Length; i++) + { + IXUIButton ixuibutton = base.uiBehaviour.m_SysButtonsMapping[i]; + bool flag = ixuibutton != null; + if (flag) + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSysIconClicked)); + } + } + base.uiBehaviour.m_ExitGuild.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnExitGuildClick)); + base.uiBehaviour.m_V3SwitchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnV3SwitchBtnClick)); + base.uiBehaviour.m_MotionDance.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMotionClicked)); + base.uiBehaviour.m_MotionLover.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMotionClicked)); + } + + public override void OnUpdate() + { + bool flag = !XSingleton.singleton.NeedFixedUpdate; + if (!flag) + { + base.OnUpdate(); + bool flag2 = this.isLevelSealCountdown && this._LevelSealCDCounter != null; + if (flag2) + { + this._LevelSealCDCounter.Update(); + } + bool v3SwitchBtnState = this._V3SwitchBtnState; + if (v3SwitchBtnState) + { + base.uiBehaviour.m_TransformLeftTime.Update(); + } + bool flag3 = this.lastDebugUITrigger > 0f; + if (flag3) + { + this.lastDebugUITrigger -= Time.deltaTime; + } + bool flag4 = this.lastDebugUITrigger <= 0f && Input.GetKey((KeyCode)285); + if (flag4) + { + DlgBase.singleton.Toggle(); + this.lastDebugUITrigger = 0.05f; + } + bool key = Input.GetKey((KeyCode)96); + if (key) + { + bool flag5 = Input.GetKey((KeyCode)256) || Input.GetKey((KeyCode)48); + if (flag5) + { + XSingleton.singleton.CustomCommand(0); + } + bool flag6 = Input.GetKey((KeyCode)257) || Input.GetKey((KeyCode)49); + if (flag6) + { + XSingleton.singleton.CustomCommand(1); + } + bool flag7 = Input.GetKey((KeyCode)258) || Input.GetKey((KeyCode)50); + if (flag7) + { + XSingleton.singleton.CustomCommand(2); + } + bool flag8 = Input.GetKey((KeyCode)259) || Input.GetKey((KeyCode)51); + if (flag8) + { + XSingleton.singleton.CustomCommand(3); + } + bool flag9 = Input.GetKey((KeyCode)260) || Input.GetKey((KeyCode)52); + if (flag9) + { + XSingleton.singleton.CustomCommand(4); + } + bool flag10 = Input.GetKey((KeyCode)261) || Input.GetKey((KeyCode)53); + if (flag10) + { + XSingleton.singleton.CustomCommand(5); + } + bool flag11 = Input.GetKey((KeyCode)262) || Input.GetKey((KeyCode)54); + if (flag11) + { + XSingleton.singleton.CustomCommand(6); + } + bool flag12 = Input.GetKey((KeyCode)263) || Input.GetKey((KeyCode)55); + if (flag12) + { + XSingleton.singleton.CustomCommand(7); + } + bool flag13 = Input.GetKey((KeyCode)264) || Input.GetKey((KeyCode)56); + if (flag13) + { + XSingleton.singleton.CustomCommand(8); + } + bool flag14 = Input.GetKey((KeyCode)265) || Input.GetKey((KeyCode)57); + if (flag14) + { + XSingleton.singleton.CustomCommand(9); + } + } + this.UpdateRedPointState(); + this.UpdateWifi(); + bool flag15 = Time.unscaledTime - this.lastPingTime > 60f || this.lastPingTime < 0f; + if (flag15) + { + this.lastPingTime = Time.unscaledTime; + this.RefreshPing(); + } + } + } + + public void RefreshMoneyInfo(int itemid = 0, bool bAnim = false) + { + for (int i = 0; i < this.m_uiBehaviour.m_MoneyList.Count; i++) + { + bool flag = itemid == 0 || this.m_uiBehaviour.m_MoneyList[i].ItemID == itemid; + if (flag) + { + this.m_uiBehaviour.m_MoneyList[i].RefreshValue(bAnim); + bool flag2 = itemid != 0; + if (flag2) + { + break; + } + } + } + } + + public void UpdateRedPointState() + { + } + + private void UpdateWifi() + { + IXUIButton sysButton = this.m_uiBehaviour.GetSysButton(XSysDefine.XSys_Wifi); + bool flag = sysButton != null; + if (flag) + { + XSingleton.singleton.UpdateWifi(sysButton, null); + } + } + + private void _ShowGuildMenu() + { + foreach (XSysDefine sys in base.uiBehaviour.m_SysGuild) + { + base.uiBehaviour.GetSysButton(sys).SetVisible(true); + } + this.OnGuildSysChange(); + base.uiBehaviour.m_SysListGuildH1.SetAnimateSmooth(true); + base.uiBehaviour.m_SysListGuildV1.SetAnimateSmooth(true); + base.uiBehaviour.m_SysListGuildH2.SetAnimateSmooth(true); + base.uiBehaviour.m_SysListGuildH1.Refresh(); + base.uiBehaviour.m_SysListGuildV1.Refresh(); + base.uiBehaviour.m_SysListGuildH2.Refresh(); + } + + public void RefreshSysAnnounce() + { + bool flag = XSingleton.singleton.SceneType != SceneType.SKYCITY_WAITING; + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshUI(); + } + } + } + + public void RefreshWelcomeBackFlow() + { + bool flag = this.MainDoc.BackFlow && XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag) + { + this.OnShowFlowBack(); + } + } + + public void OnGuildSysChange() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + foreach (XSysDefine sys in base.uiBehaviour.m_SysGuild) + { + uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel(sys); + IXUIButton sysButton = base.uiBehaviour.GetSysButton(sys); + Transform transform = sysButton.gameObject.transform.Find("OpenAtLevel"); + IXUILabel ixuilabel = null; + IXUISprite ixuisprite = sysButton.gameObject.GetComponent("XUISprite") as IXUISprite; + bool flag = transform != null; + if (flag) + { + ixuilabel = (transform.GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(string.Empty); + } + bool flag2 = specificDocument.bInGuild && specificDocument.Level >= unlockLevel && XSingleton.singleton.IsSystemOpened(sys); + if (flag2) + { + try + { + bool flag3 = ixuisprite != null; + if (flag3) + { + ixuisprite.SetColor(Color.white); + } + bool flag4 = ixuilabel != null; + if (flag4) + { + ixuilabel.SetVisible(false); + } + } + catch (Exception ex) + { + XSingleton.singleton.AddErrorLog(sysButton.gameObject.name, null, null, null, null, null); + XSingleton.singleton.AddErrorLog(ex.Message, null, null, null, null, null); + } + } + else + { + bool flag5 = ixuilabel != null; + if (flag5) + { + ixuilabel.SetVisible(true); + } + } + } + foreach (XSysDefine xsysDefine in base.uiBehaviour.m_SysGuildNormal) + { + IXUIButton sysButton2 = base.uiBehaviour.GetSysButton(xsysDefine); + bool flag6 = XSingleton.singleton.IsSystemOpened(xsysDefine); + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 == XSysDefine.XSys_GuildCollect || xsysDefine2 == XSysDefine.XSys_GuildCollectSummon) + { + XGuildCollectDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + flag6 = (flag6 && specificDocument2.ActivityState); + } + base.uiBehaviour.GetSysButton(xsysDefine).SetVisible(flag6); + } + base.uiBehaviour.m_SysListH2.Refresh(); + } + + public void OnTitanSysChange() + { + XPlayerAttributes attr = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + bool flag = XSingleton.singleton.IsUIShowed(); + int num = 0; + for (int i = 0; i < base.uiBehaviour.m_SysH4.Length; i++) + { + XSysDefine xsysDefine = base.uiBehaviour.m_SysH4[i]; + bool flag2 = XSingleton.singleton.IsSystemOpened(xsysDefine, attr); + bool flag3 = flag; + if (flag3) + { + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 == XSysDefine.XSys_Mail || xsysDefine2 == XSysDefine.XSys_Setting) + { + flag2 = false; + } + } + IXUIButton sysButton = base.uiBehaviour.GetSysButton(xsysDefine); + sysButton.SetVisible(flag2); + bool flag4 = flag2; + if (flag4) + { + num++; + } + } + } + + public void OnMainSysChange() + { + bool flag = !base.IsLoaded(); + if (!flag) + { + for (int i = 0; i < base.uiBehaviour.m_ListSys.Count; i++) + { + XSysDefine xsysDefine = base.uiBehaviour.m_ListSys[i]; + bool flag2 = XSingleton.singleton.SysH5.Contains(xsysDefine); + if (!flag2) + { + bool flag3 = base.uiBehaviour.m_SysGuildNormal.Contains(xsysDefine); + if (!flag3) + { + this.OnSingleSysChange(xsysDefine, false); + } + } + } + this.RefreshAllList(); + } + } + + public void OnSingleSysChange(XSysDefine sys, bool refreshList = true) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = base.uiBehaviour.GetSysButton(sys) == null; + if (!flag2) + { + bool flag3 = XSingleton.singleton.IsSystemOpened(sys, XSingleton.singleton.XPlayerData); + if (sys <= XSysDefine.XSys_Welfare_NiceGirl) + { + if (sys <= XSysDefine.XSys_OnlineReward) + { + if (sys != XSysDefine.XSys_Guild) + { + if (sys == XSysDefine.XSys_OnlineReward) + { + XOnlineRewardDocument specificDocument = XDocuments.GetSpecificDocument(XOnlineRewardDocument.uuID); + flag3 = (flag3 && specificDocument.CheckOver()); + } + } + else + { + flag3 = (flag3 && this.m_curScene != SceneType.SCENE_GUILD_HALL); + } + } + else if (sys != XSysDefine.XSys_Broadcast) + { + if (sys != XSysDefine.XSys_SevenActivity) + { + if (sys == XSysDefine.XSys_Welfare_NiceGirl) + { + flag3 = (flag3 && XWelfareDocument.Doc.ArgentaMainInterfaceState && !XWelfareDocument.Doc.IsNiceGirlTasksFinished()); + } + } + else + { + XSevenLoginDocument specificDocument2 = XDocuments.GetSpecificDocument(XSevenLoginDocument.uuID); + flag3 = (flag3 && specificDocument2.bHasAvailableSevenIcon); + } + } + else + { + flag3 = (flag3 && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && this.IsSupportQgame()); + } + } + else if (sys <= XSysDefine.XSys_Photo) + { + if (sys != XSysDefine.XSys_OperatingActivity) + { + if (sys != XSysDefine.XSys_ThemeActivity) + { + if (sys == XSysDefine.XSys_Photo) + { + int num = int.Parse(XSingleton.singleton.GetValue("PlatfromAbility")); + flag3 = (num != 0 && this.m_curScene != SceneType.SCENE_HORSE_RACE && this.m_curScene != SceneType.SCENE_HORSE && this.m_curScene != SceneType.SCENE_HEROBATTLE && this.m_curScene != SceneType.SCENE_BIGMELEE_READY); + bool flag4 = flag3; + if (flag4) + { + flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Photo); + } + } + } + else + { + XThemeActivityDocument specificDocument3 = XDocuments.GetSpecificDocument(XThemeActivityDocument.uuID); + flag3 = (flag3 && specificDocument3.isHasHallIcon()); + } + } + else + { + bool flag5 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID).IsShowLevelSealIcon(); + base.uiBehaviour.m_RemoveSealTip.SetVisible(flag5); + bool flag6 = flag5; + if (flag6) + { + this.ShowRemoveSealLeftTime(base.uiBehaviour.m_RemoveSealTip, ref this._LevelSealCDCounter, ref this.isLevelSealCountdown); + } + else + { + this._LevelSealCDCounter = null; + } + } + } + else if (sys != XSysDefine.XSys_QuickRide) + { + switch (sys) + { + case XSysDefine.XSys_GameCommunity: + break; + case XSysDefine.XSys_GameHorde: + break; + case XSysDefine.XSys_FriendCircle: + flag3 = (flag3 && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + break; + case XSysDefine.XSys_QQVIP: + flag3 = (flag3 && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + break; + case XSysDefine.XSys_SystemAnnounce: + flag3 = (flag3 && this.SetSystemAnnounce()); + break; + default: + if (sys == XSysDefine.XSys_Platform_StartPrivilege) + { + flag3 = (flag3 && (XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat || XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ)); + bool flag7 = flag3; + if (flag7) + { + IXUIButton sysButton = base.uiBehaviour.GetSysButton(XSysDefine.XSys_Platform_StartPrivilege); + bool flag8 = sysButton != null; + if (flag8) + { + Transform transform = sysButton.gameObject.transform.Find("seal"); + bool flag9 = transform != null; + if (flag9) + { + IXUISprite ixuisprite = transform.gameObject.GetComponent("XUISprite") as IXUISprite; + bool flag10 = ixuisprite != null; + if (flag10) + { + bool flag11 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag11) + { + ixuisprite.spriteName = "ptic_04"; + } + else + { + bool flag12 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag12) + { + ixuisprite.spriteName = "ptic_05"; + } + } + } + } + } + } + } + break; + } + } + else + { + flag3 = (flag3 && this.m_curScene != SceneType.SCENE_FAMILYGARDEN && this.m_curScene != SceneType.SCENE_GUILD_HALL && this.m_curScene != SceneType.SCENE_WEDDING && this.m_curScene != SceneType.SCENE_LEISURE); + } + base.uiBehaviour.GetSysButton(sys).SetVisible(flag3); + if (refreshList) + { + this.RefreshAllList(); + } + } + } + } + + public void RefreshAllList() + { + SceneType curScene = this.m_curScene; + if (curScene <= SceneType.SKYCITY_WAITING) + { + if (curScene <= SceneType.SCENE_GUILD_HALL) + { + if (curScene != SceneType.SCENE_HALL) + { + if (curScene != SceneType.SCENE_GUILD_HALL) + { + goto IL_CF; + } + base.uiBehaviour.m_SysListH2.Refresh(); + base.uiBehaviour.m_SysListH1.Refresh(); + goto IL_CF; + } + } + else + { + if (curScene == SceneType.SCENE_FAMILYGARDEN) + { + base.uiBehaviour.m_SysListH1.Refresh(); + base.uiBehaviour.m_SysListH3.Refresh(); + goto IL_CF; + } + if (curScene != SceneType.SKYCITY_WAITING) + { + goto IL_CF; + } + } + } + else + { + if (curScene > SceneType.SCENE_BIGMELEE_READY) + { + if (curScene != SceneType.SCENE_WEDDING) + { + if (curScene == SceneType.SCENE_BATTLEFIELD_READY) + { + goto IL_5E; + } + if (curScene != SceneType.SCENE_LEISURE) + { + goto IL_CF; + } + } + return; + } + if (curScene != SceneType.SCENE_HORSE && curScene != SceneType.SCENE_BIGMELEE_READY) + { + goto IL_CF; + } + } + IL_5E: + base.uiBehaviour.m_SysListH1.Refresh(); + base.uiBehaviour.m_SysListH0.Refresh(); + IL_CF: + base.uiBehaviour.m_SysListV1.Refresh(); + base.uiBehaviour.m_SysListV2.Refresh(); + base.uiBehaviour.m_SysListV3.Refresh(); + base.uiBehaviour.m_SysListH2_1.Refresh(); + base.uiBehaviour.m_SysListH2_2.Refresh(); + this.RefreshListSwitchBtnVisable(base.uiBehaviour.m_V3SwitchBtn, base.uiBehaviour.m_SysListV3, null); + this.RefreshListSwitchBtnVisable(base.uiBehaviour.m_H2SwitchBtn, base.uiBehaviour.m_SysListH2_1, base.uiBehaviour.m_SysListH2_2); + this._TaskNaviHandler.OnSysChange(); + } + + public void RefreshH5ButtonState(XSysDefine sys, bool refreshList = true) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this._substanceHandler != null && this._substanceHandler.IsVisible(); + if (flag2) + { + this._substanceHandler.RefreshMainSubStance(sys, refreshList); + } + } + } + + public void FakeShowSelf(bool bShow) + { + this.fakeShow = bShow; + base.uiBehaviour.m_MainMenuGo.SetActive(bShow); + DlgBase.singleton.Show(bShow); + DlgBase.singleton.Show(bShow); + base.uiBehaviour.m_PING.SetActive(bShow); + bool flag = this._WaitHandler != null; + if (flag) + { + this._WaitHandler.SetVisible(bShow); + } + SceneType curScene = this.m_curScene; + if (curScene <= SceneType.SKYCITY_WAITING) + { + if (curScene <= SceneType.SCENE_GUILD_HALL) + { + if (curScene == SceneType.SCENE_HALL) + { + base.uiBehaviour.m_ExitGuild.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(bShow); + this._TaskNaviHandler.SetVisible(bShow); + goto IL_234; + } + if (curScene != SceneType.SCENE_GUILD_HALL) + { + goto IL_213; + } + base.uiBehaviour.m_ExitGuild.SetVisible(bShow); + this._TaskNaviHandler.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(false); + goto IL_234; + } + else + { + if (curScene == SceneType.SCENE_FAMILYGARDEN) + { + XHomeCookAndPartyDocument doc = XHomeCookAndPartyDocument.Doc; + bool flag2 = doc.CurBanquetState == 0u; + if (flag2) + { + this._HomeHandler.SetVisible(bShow); + } + base.uiBehaviour.m_ExitGuild.SetVisible(false); + this._TaskNaviHandler.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(false); + goto IL_234; + } + if (curScene != SceneType.SKYCITY_WAITING) + { + goto IL_213; + } + } + } + else + { + if (curScene > SceneType.SCENE_BIGMELEE_READY) + { + if (curScene != SceneType.SCENE_WEDDING) + { + if (curScene == SceneType.SCENE_BATTLEFIELD_READY) + { + goto IL_13F; + } + if (curScene != SceneType.SCENE_LEISURE) + { + goto IL_213; + } + } + base.uiBehaviour.m_ExitGuild.SetVisible(false); + this._TaskNaviHandler.SetVisible(false); + base.uiBehaviour.m_SecondMenu.SetActive(false); + goto IL_234; + } + if (curScene != SceneType.SCENE_HORSE && curScene != SceneType.SCENE_BIGMELEE_READY) + { + goto IL_213; + } + } + IL_13F: + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + base.uiBehaviour.m_ExitGuild.SetVisible(false); + this._TaskNaviHandler.SetVisible(bShow && specificDocument.bInTeam); + base.uiBehaviour.m_SecondMenu.SetActive(false); + goto IL_234; + IL_213: + base.uiBehaviour.m_SecondMenu.SetActive(bShow); + this._TaskNaviHandler.SetVisible(bShow); + IL_234: + base.uiBehaviour.m_AvatarFrame.SetActive(bShow); + bool flag3 = this._yuyinHandler != null; + if (flag3) + { + this._yuyinHandler.m_panel.gameObject.SetActive(bShow); + } + DlgBase.singleton.SetFakeHide(!bShow || !base.IsVisible()); + this.RefreshSysAnnounce(); + foreach (XSysDefine sys in XSingleton.singleton.SysH5) + { + this.RefreshH5ButtonState(sys, false); + } + bool flag4 = this._substanceHandler != null && this._substanceHandler.IsVisible(); + if (flag4) + { + this._substanceHandler.Sort(); + } + this.SetActivityEffect(false); + } + + public Vector3 GetNewIconFlyPosH1(XSysDefine sys) + { + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + string name; + if (sys != XSysDefine.XSys_Item_Enhance) + { + name = base.uiBehaviour.GetSysButton(sys).gameObject.name; + } + else + { + name = base.uiBehaviour.GetSysButton(XSysDefine.XSys_Item).gameObject.name; + } + Vector3 childWorldPos = DlgBase.GetChildWorldPos(name); + return XSingleton.singleton.UIRoot.InverseTransformPoint(childWorldPos); + } + + public void SetActivityEffect(bool isFromTime) + { + bool flag = isFromTime && this.m_isFromTime; + if (!flag) + { + this.m_isFromTime = isFromTime; + bool flag2 = !this.fakeShow; + if (!flag2) + { + IXUIButton ixuibutton = base.uiBehaviour.m_SysButtonsMapping[57]; + bool flag3 = ixuibutton == null; + if (!flag3) + { + bool flag4 = this.m_activityFx == null; + if (flag4) + { + this.m_activityFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_shuangbeijiangli", ixuibutton.gameObject.transform.Find("Icon/Duck"), false); + } + bool flag5 = XActivityDocument.Doc.MainCityNeedEffect(); + this.m_activityFx.SetActive(flag5); + bool flag6 = flag5; + if (flag6) + { + XFx.SyncRefreshUIRenderQueue(this.m_activityFx); + } + } + } + } + } + + public void SetGridAnimateSmooth(bool b) + { + base.uiBehaviour.m_SysListH1.SetAnimateSmooth(b); + base.uiBehaviour.m_SysListH0.SetAnimateSmooth(b); + base.uiBehaviour.m_SysListV1.SetAnimateSmooth(b); + } + + public void SetupBaseInfo(XAttributes attr) + { + int profID = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.Player.PlayerAttributes.Profession); + this.SetAvatar(XSingleton.singleton.GetProfHeadIcon(profID)); + this.SetVip(); + this.SetLevel(attr.Level); + this.RefreshQQVipInfo(); + this.RefreshGameCenterInfo(); + this.RefreshSelfMemberPrivilegeIcon(); + this.SetPowerpoint(this._curPPT); + this.SetExp(attr as XPlayerAttributes); + XFriendsDocument.Doc.SDKQueryFriends(); + ILuaGameInfo luaGameInfo = XSingleton.singleton.XLuaEngine.luaGameInfo; + luaGameInfo.exp = (uint)attr.Exp; + luaGameInfo.maxexp = (uint)attr.MaxExp; + luaGameInfo.level = attr.Level; + luaGameInfo.name = attr.Name; + luaGameInfo.ppt = this._curPPT; + luaGameInfo.coin = (uint)XSingleton.singleton.Doc.XBagDoc.GetItemCount(1); + luaGameInfo.energy = (uint)XSingleton.singleton.Doc.XBagDoc.GetItemCount(6); + luaGameInfo.dia = (uint)XSingleton.singleton.Doc.XBagDoc.GetItemCount(9); + luaGameInfo.draggon = (uint)XSingleton.singleton.Doc.XBagDoc.GetItemCount(7); + } + + public void SetAvatar(string name) + { + IXUISprite ixuisprite = base.uiBehaviour.m_AvatarFrame.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = name; + this.SetTencentImage(); + } + + public void RefreshQQVipInfo() + { + bool flag = !base.IsLoaded(); + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_AvatarFrame.transform.Find("CoverPanel/QQVIP").gameObject; + GameObject gameObject2 = base.uiBehaviour.m_AvatarFrame.transform.Find("CoverPanel/QQSVIP").gameObject; + QQVipInfoClient qqvipInfo = XPlatformAbilityDocument.Doc.QQVipInfo; + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP) && qqvipInfo != null; + if (flag2) + { + gameObject.SetActive(qqvipInfo.is_vip && !qqvipInfo.is_svip); + gameObject2.SetActive(qqvipInfo.is_svip); + } + else + { + gameObject.SetActive(false); + gameObject2.SetActive(false); + } + } + } + + public void RefreshGameCenterInfo() + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = !base.IsVisible(); + if (!flag2) + { + GameObject gameObject = base.uiBehaviour.m_AvatarFrame.transform.Find("CoverPanel/WC").gameObject; + bool flag3 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege) && XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_WX; + if (flag3) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + } + } + } + + public void RefreshSelfMemberPrivilegeIcon() + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + IXUISprite ixuisprite = base.uiBehaviour.m_AvatarFrame.transform.Find("CoverPanel/Tq").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XWelfareDocument.GetSelfMemberPrivilegeIconName()); + } + } + } + + public void SetTencentImage() + { + bool flag = XSingleton.singleton.playerInfo != null; + if (flag) + { + string pictureLarge = XSingleton.singleton.playerInfo.data.pictureLarge; + XSingleton.singleton.SetMainIcon(pictureLarge); + XSingleton.singleton.Load(pictureLarge, this.m_uiBehaviour.m_txtAvatar, this.m_uiBehaviour); + } + else + { + XSingleton.singleton.Load(string.Empty, this.m_uiBehaviour.m_txtAvatar, this.m_uiBehaviour); + } + this.SetHeadIcon(); + } + + public void SetHeadIcon() + { + XPrerogativeDocument specificDocument = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + XSingleton.singleton.ParseHeadIcon(specificDocument.PlayerSetid, base.uiBehaviour.m_sprFrame); + } + + public void SetVip() + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + } + + public void SetLevel(uint lv) + { + base.uiBehaviour.m_Level.SetText(lv.ToString()); + } + + private void RefreshPing() + { + XSingleton.singleton.RefreshPing(base.uiBehaviour.m_lblTime, base.uiBehaviour.m_sliderBattery, base.uiBehaviour.m_lblFree); + } + + public void SetName(string name) + { + } + + public void SetPowerpoint(int value) + { + IXUILabel ixuilabel = base.uiBehaviour.m_PlayerPPT.transform.Find("Power").GetComponent("XUILabel") as IXUILabel; + this._curPPT = value; + ixuilabel.SetText(value.ToString()); + DlgBase.singleton.ShowPPT(value); + } + + public void OnPowerpointChanged(int oldValue, int newValue) + { + } + + public void SetExp(XPlayerAttributes attr) + { + } + + public void RefreshFatigeTime(object obj) + { + uint timeLeft = DlgBase.singleton.GetTimeLeft(ItemEnum.FATIGUE); + ulong virtualItemCount = XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.FATIGUE); + ulong num = ulong.Parse(XSingleton.singleton.GetValue("MaxRecoverFatigue")); + base.uiBehaviour.m_CurFatige.SetText(string.Format("{0}/{1}", virtualItemCount, num)); + bool flag = virtualItemCount >= num; + if (flag) + { + base.uiBehaviour.m_CoverOneTime.SetText("00:00"); + base.uiBehaviour.m_AllCoverTime.SetText("00:00"); + bool flag2 = this._fatigeRefreshToken > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._fatigeRefreshToken); + this._fatigeRefreshToken = 0u; + } + } + else + { + base.uiBehaviour.m_CoverOneTime.SetText(DlgBase.singleton.FormatTime(timeLeft)); + uint time = (uint)((ulong)timeLeft + (num - virtualItemCount) * 360UL); + base.uiBehaviour.m_AllCoverTime.SetText(DlgBase.singleton.FormatTime(time)); + this._fatigeRefreshToken = XSingleton.singleton.SetTimer(1f, this._refreshFatigeTimeCb, null); + } + } + + public void ShowFatigeRecoverTime(object obj) + { + base.uiBehaviour.m_RecoverTime.SetVisible(true); + this.RefreshFatigeTime(null); + } + + private void OnPressAddFatige(IXUIButton sp, bool state) + { + if (state) + { + this._fatigePressTime = DateTime.Now; + this._pressToken = XSingleton.singleton.SetTimer(0.3f, this._showFatigeRecoverTimeCb, null); + } + else + { + bool flag = !base.uiBehaviour.m_RecoverTime.IsVisible(); + if (flag) + { + DlgBase.singleton.ShowBorad(ItemEnum.FATIGUE); + } + else + { + base.uiBehaviour.m_RecoverTime.SetVisible(false); + } + bool flag2 = this._pressToken > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._pressToken); + this._pressToken = 0u; + } + bool flag3 = this._fatigeRefreshToken > 0u; + if (flag3) + { + XSingleton.singleton.KillTimer(this._fatigeRefreshToken); + this._fatigeRefreshToken = 0u; + } + } + } + + public void ForceOpenSysIcons(XSysDefine sys) + { + this.SetGridAnimateSmooth(false); + bool flag = !this._bH1Opened; + if (flag) + { + this._bH1Opened = true; + this.OnMainSysChange(); + } + } + + public void OnSysChange(XSysDefine sys) + { + this.OnMainSysChange(); + } + + private void OnAvatarClick(IXUISprite go) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + DlgBase.singleton.SetVisible(!flag2, true); + bool flag3 = XSingleton.singleton.SceneType != SceneType.SCENE_BIGMELEE_READY; + if (flag3) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + + private bool _CanClick() + { + float time = Time.time; + bool flag = time - this.m_fClickTime > 3f; + bool result; + if (flag) + { + this.m_fClickTime = time; + result = true; + } + else + { + result = false; + } + return result; + } + + private bool OnExitGuildClick(IXUIButton go) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !this._CanClick(); + if (flag2) + { + result = true; + } + else + { + XSingleton.singleton.ReqLeaveScene(); + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag3) + { + HomePlantDocument doc = HomePlantDocument.Doc; + doc.ClearFarmInfo(); + doc.HomeSprite.ClearInfo(); + doc.GardenId = 0UL; + } + result = true; + } + } + return result; + } + + private void ShowCharSysListFrame() + { + XPlayerAttributes attr = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + int num = 28; + for (int i = 0; i < base.uiBehaviour.m_SysChar.Length; i++) + { + bool flag = XSingleton.singleton.IsSystemOpened(base.uiBehaviour.m_SysChar[i], attr); + base.uiBehaviour.GetSysButton(base.uiBehaviour.m_SysChar[i]).SetVisible(flag); + bool flag2 = flag; + if (flag2) + { + num += 80; + } + } + } + + private bool TryCheckInGuildSystem(XSysDefine sys) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("XMainInterface is Dispose!", null, null, null, null, null); + result = false; + } + else + { + bool flag2 = Array.IndexOf(base.uiBehaviour.m_SysGuild, sys) == -1; + if (flag2) + { + result = true; + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag3 = !specificDocument.bInGuild; + if (flag3) + { + result = false; + } + else + { + uint unlockLevel = XGuildDocument.GuildConfig.GetUnlockLevel(sys); + bool flag4 = specificDocument.Level < unlockLevel; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_MAZE_NO_GUILD_LEVEL", new object[] + { + unlockLevel + }), "fece00"); + result = false; + } + else + { + bool flag5 = !XSingleton.singleton.IsSystemOpened(sys); + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_MAZE_NO_PLAYER_LEVEL", new object[] + { + XSingleton.singleton.GetSystemOpenLevel(sys) + }), "fece00"); + result = false; + } + else + { + result = true; + } + } + } + } + } + return result; + } + + public void OnSysIconClicked(XSysDefine sys) + { + this.OnSysIconClicked(base.uiBehaviour.GetSysButton(sys)); + } + + public bool OnSysIconClicked(IXUIButton go) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + XSysDefine xsysDefine = (XSysDefine)go.ID; + bool flag2 = this.DramaDlgCloseTime > 0f; + if (flag2) + { + bool flag3 = Time.time - this.DramaDlgCloseTime < 1f; + if (flag3) + { + return true; + } + } + bool flag4 = !this.TryCheckInGuildSystem(xsysDefine); + if (flag4) + { + result = true; + } + else + { + Dictionary dictionary = new Dictionary(); + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 <= XSysDefine.XSys_OldFriendsBack) + { + if (xsysDefine2 <= XSysDefine.XSys_MentorshipMsg_Tip) + { + if (xsysDefine2 <= XSysDefine.XSys_WeekEndNest) + { + if (xsysDefine2 <= XSysDefine.XSys_Home_MyHome) + { + switch (xsysDefine2) + { + case XSysDefine.XSys_Character: + this.ShowCharSysListFrame(); + goto IL_1362; + case XSysDefine.XSys_Level: + { + DlgBase.singleton.IsTaskMode = false; + bool flag5 = XSingleton.singleton.SceneID != 1u; + if (flag5) + { + DlgBase.singleton.FadeShow(); + } + else + { + this._TaskNaviHandler.NavigateToBattle(); + } + goto IL_1362; + } + case XSysDefine.XSys_Item: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Item); + goto IL_1362; + case XSysDefine.XSys_Skill: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Char: + case XSysDefine.XSys_Fashion: + case XSysDefine.XSys_Bag: + case XSysDefine.XSys_TShow: + case XSysDefine.XSys_Confession: + case XSysDefine.XSys_TShowRule: + case XSysDefine.XSys_FlowerRank: + case XSysDefine.XSys_Camp: + case XSysDefine.XSys_Design: + case XSysDefine.XSys_SuperReward: + case XSysDefine.XSys_Draw: + case XSysDefine.XSys_Mall: + case XSysDefine.XSys_Target: + case (XSysDefine)36: + case XSysDefine.XSys_ServerActivity: + case (XSysDefine)38: + case XSysDefine.XSys_LevelReward: + case (XSysDefine)43: + case XSysDefine.XSys_ReceiveEnergy: + case XSysDefine.XSys_SystemActivity: + case XSysDefine.XSys_BossRush: + case XSysDefine.XSys_DragonCrusade: + case XSysDefine.XSys_Arena: + case XSysDefine.XSys_Activity: + case (XSysDefine)53: + case XSysDefine.XSys_MulActivity: + case XSysDefine.XSys_PVPAcitivity: + case XSysDefine.XSys_DragonCoin: + case (XSysDefine)66: + case XSysDefine.XSys_WeekShareReward: + case XSysDefine.XSys_DungeonShareReward: + case XSysDefine.XSys_Maquee: + case XSysDefine.XSys_SendFlower: + case XSysDefine.XSys_Mentorship: + case XSysDefine.XSys_3GFree: + case XSysDefine.XSys_ChatGroup: + case (XSysDefine)79: + case (XSysDefine)83: + case (XSysDefine)84: + case XSysDefine.XSys_GuildRedPacket: + case XSysDefine.XSys_GayValley: + case XSysDefine.XSys_GayValleyManager: + goto IL_133D; + case XSysDefine.XSys_Horse: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Guild: + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag6 = specificDocument != null; + if (flag6) + { + specificDocument.TryShowGuildHallUI(); + } + goto IL_1362; + } + case XSysDefine.XSys_Recycle: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Recycle); + goto IL_1362; + case XSysDefine.XSys_Auction: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_CardCollect: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Mail: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Mail_System); + goto IL_1362; + case XSysDefine.XSys_Wifi: + goto IL_1362; + case XSysDefine.XSys_Strong: + DlgBase.singleton.ShowContent(FunctionDef.ZHANLI); + goto IL_1362; + case XSysDefine.XSys_Reward: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Reward); + goto IL_1362; + case XSysDefine.XSys_OnlineReward: + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + case XSysDefine.XSys_Setting: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Rank: + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank); + goto IL_1362; + case XSysDefine.XSys_EquipCreate: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_EquipCreate); + goto IL_1362; + case XSysDefine.XSys_LevelSeal: + DlgBase.singleton.Show(XSysDefine.XSys_LevelSeal, false); + goto IL_1362; + case XSysDefine.XSys_SuperRisk: + DlgBase.singleton.Show(true, 0); + goto IL_1362; + case XSysDefine.XSys_Qualifying: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Spectate: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_DailyAcitivity: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_DailyAcitivity); + goto IL_1362; + case XSysDefine.XSys_ExcellentLive: + { + XSpectateDocument specificDocument2 = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument2.ClickData = specificDocument2.MainInterfaceData; + specificDocument2.SetMainInterfaceBtnFalse(); + string label = string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("ExcellentLiveTips")), specificDocument2.GetTitle(specificDocument2.ClickData.liveInfo)); + string @string = XStringDefineProxy.GetString("COMMON_OK"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.OnExcellentLiveClick)); + goto IL_1362; + } + case XSysDefine.XSys_MobaAcitivity: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_MobaAcitivity); + goto IL_1362; + case XSysDefine.XSys_Money: + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Recharge, 0UL); + goto IL_1362; + case XSysDefine.XSys_Coin: + { + XPurchaseView singleton = DlgBase.singleton; + singleton.ReqQuickCommonPurchase(ItemEnum.GOLD); + goto IL_1362; + } + case XSysDefine.XSys_Power: + { + XPurchaseView singleton2 = DlgBase.singleton; + singleton2.ReqQuickCommonPurchase(ItemEnum.FATIGUE); + goto IL_1362; + } + case XSysDefine.XSys_GameMall: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Dragon, MallType.WEEK, 0UL); + goto IL_1362; + case XSysDefine.XSys_Carnival: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_OtherPlayerInfo: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Chat: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Friends: + DlgBase.singleton.OnShowFriendDlg(); + goto IL_1362; + case XSysDefine.XSys_PK: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Broadcast: + this.OnQGameClick(go); + goto IL_1362; + case XSysDefine.XSys_GuildHall: + { + XGuildDocument specificDocument3 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag7 = !specificDocument3.bInGuild; + if (flag7) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_NOT_IN_GUILD, "fece00"); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + goto IL_1362; + } + case XSysDefine.XSys_GuildRelax: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_GuildDragon: + break; + case XSysDefine.XSys_GuildPvp: + goto IL_A0D; + case XSysDefine.XSys_GuildMine: + goto IL_A54; + case XSysDefine.XSys_CrossGVG: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Team: + { + DlgBase.singleton.ShowTeamView(); + XTeamDocument specificDocument4 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + goto IL_1362; + } + case XSysDefine.XSys_SevenActivity: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_Title: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + default: + switch (xsysDefine2) + { + case XSysDefine.XSys_Home: + case XSysDefine.XSys_Home_Cooking: + case XSysDefine.XSys_Home_Fishing: + case XSysDefine.XSys_Home_Feast: + case XSysDefine.XSys_Home_MyHome: + DlgBase.singleton.ShowWorkGameSystem(xsysDefine); + goto IL_1362; + case XSysDefine.XSys_Home_Plant: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Home); + goto IL_1362; + default: + goto IL_133D; + } + break; + } + } + else + { + if (xsysDefine2 == XSysDefine.XSys_Pet_Pairs) + { + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_WeekEndNest) + { + goto IL_133D; + } + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_Rank_WorldBoss) + { + if (xsysDefine2 == XSysDefine.XSys_Mall_Home) + { + DlgBase.singleton.ShowShopSystem(xsysDefine, 0UL); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_Rank_WorldBoss) + { + goto IL_133D; + } + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank_WorldBoss); + XWorldBossDocument specificDocument5 = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument5.SetMainInterfaceBtnState(false); + goto IL_1362; + } + else + { + if (xsysDefine2 == XSysDefine.XSys_LevelSeal_Tip) + { + XLevelSealDocument specificDocument6 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + specificDocument6.ReqLevelSealButtonClick(); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_MentorshipMsg_Tip) + { + goto IL_133D; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_Welfare_FirstRechange) + { + if (xsysDefine2 <= XSysDefine.XSys_Battlefield) + { + if (xsysDefine2 == XSysDefine.XSys_Activity_WorldBoss) + { + DlgBase.singleton.ShowView(); + goto IL_1362; + } + switch (xsysDefine2) + { + case XSysDefine.XSys_Activity_CaptainPVP: + { + XCaptainPVPDocument specificDocument7 = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + specificDocument7.SetMainInterfaceBtnState(false); + string label2 = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MainInterfaceCaptainPVPTips")); + string string3 = XStringDefineProxy.GetString("BtnTips_EnterNow"); + string string4 = XStringDefineProxy.GetString("BtnTips_Then"); + XSingleton.singleton.ShowModalDialog(label2, string3, string4, new ButtonClickEventHandler(this.OnCaptainJoin)); + goto IL_1362; + } + case XSysDefine.XSys_Activity_GoddessTrial: + case XSysDefine.XSys_Activity_TeamTowerSingle: + goto IL_133D; + case XSysDefine.XSys_BigMelee: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_BigMeleeEnd: + { + XBigMeleeEntranceDocument specificDocument8 = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + DlgHandlerBase.EnsureCreate(ref specificDocument8.RankHandler, base.uiBehaviour.m_Canvas, true, null); + specificDocument8.RankHandler.SetType(false); + specificDocument8.MainInterfaceStateEnd = false; + this.RefreshH5ButtonState(XSysDefine.XSys_BigMeleeEnd, true); + goto IL_1362; + } + case XSysDefine.XSys_Battlefield: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XBattleFieldEntranceDocument.Doc.SetMainInterfaceBtnState(false); + goto IL_1362; + default: + goto IL_133D; + } + } + else + { + switch (xsysDefine2) + { + case XSysDefine.XSys_MulActivity_SkyArena: + XSingleton.singleton.OpenSystem(XSysDefine.XSys_MulActivity_SkyArena, 0UL); + goto IL_1362; + case XSysDefine.XSys_MulActivity_Race: + XSingleton.singleton.OpenSystem(XSysDefine.XSys_MulActivity_Race, 0UL); + goto IL_1362; + case XSysDefine.XSys_MulActivity_WeekendParty: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_MulActivity_SkyArenaEnd: + { + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank_SkyArena); + PtcC2M_MulActivityIconSysReq ptcC2M_MulActivityIconSysReq = new PtcC2M_MulActivityIconSysReq(); + ptcC2M_MulActivityIconSysReq.Data.id = (uint)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_MulActivity_SkyArenaEnd); + XSingleton.singleton.Send(ptcC2M_MulActivityIconSysReq); + XSkyArenaEntranceDocument.Doc.MainInterfaceStateEnd = false; + this.RefreshH5ButtonState(XSysDefine.XSys_MulActivity_SkyArenaEnd, true); + goto IL_1362; + } + case (XSysDefine)556: + case (XSysDefine)557: + case (XSysDefine)558: + case (XSysDefine)559: + goto IL_133D; + case XSysDefine.XSys_Welfare: + DlgBase.singleton.Show(XSysDefine.XSys_None); + goto IL_1362; + default: + if (xsysDefine2 != XSysDefine.XSys_Welfare_FirstRechange) + { + goto IL_133D; + } + DlgBase.singleton.Show(XSysDefine.XSys_Welfare_FirstRechange); + goto IL_1362; + } + } + } + else if (xsysDefine2 <= XSysDefine.Xsys_Backflow) + { + if (xsysDefine2 == XSysDefine.XSys_Welfare_NiceGirl) + { + DlgBase.singleton.Show(XSysDefine.XSys_Welfare_NiceGirl); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.Xsys_Backflow) + { + goto IL_133D; + } + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + } + else + { + if (xsysDefine2 == XSysDefine.Xsys_TaJieHelp) + { + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + } + if (xsysDefine2 == XSysDefine.XSys_OperatingActivity) + { + DlgBase.singleton.Show(XSysDefine.XSys_None, false); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_OldFriendsBack) + { + goto IL_133D; + } + DlgBase.singleton.Show(XSysDefine.XSys_OldFriendsBack, false); + goto IL_1362; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_GuildMineMain) + { + if (xsysDefine2 <= XSysDefine.XSys_GuildRelax_VoiceQA) + { + if (xsysDefine2 <= XSysDefine.XSys_GroupRecruitAuthorize) + { + if (xsysDefine2 == XSysDefine.XSys_NPCFavor) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_NPCFavor, 0UL); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_GroupRecruitAuthorize) + { + goto IL_133D; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + } + else + { + if (xsysDefine2 == XSysDefine.XSys_ThemeActivity) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_GuildRelax_VoiceQA) + { + goto IL_133D; + } + XVoiceQADocument specificDocument9 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + bool isVoiceQAIng = specificDocument9.IsVoiceQAIng; + if (isVoiceQAIng) + { + DlgBase.singleton.SetVisible(true, true); + } + else + { + string label3 = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("VoiceQA_Enter_Description_" + specificDocument9.TempType.ToString())); + string string5 = XStringDefineProxy.GetString("VoiceQA_Enter_btn1"); + string string6 = XStringDefineProxy.GetString("VoiceQA_Enter_btn2"); + XSingleton.singleton.ShowModalDialog(label3, string5, string6, new ButtonClickEventHandler(this.OnVoiceQAJoin), new ButtonClickEventHandler(this.OnVoiceQARefuse), false, XTempTipDefine.OD_START, 50); + } + goto IL_1362; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_GuildBoon_RedPacket) + { + if (xsysDefine2 == XSysDefine.XSys_GuildRelax_JokerMatch) + { + XGuildJockerMatchDocument specificDocument10 = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + specificDocument10.SendReqJokerMatchJoin(); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_GuildBoon_RedPacket) + { + goto IL_133D; + } + XGuildRedPacketDocument specificDocument11 = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument11.ReqGetLast(); + goto IL_1362; + } + else + { + if (xsysDefine2 == XSysDefine.XSys_GuildChallenge) + { + goto IL_1362; + } + if (xsysDefine2 == XSysDefine.XSys_GuildQualifier) + { + XGuildDocument specificDocument12 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag8 = !specificDocument12.bInGuild; + if (flag8) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_GUILD_NOT_IN_GUILD, "fece00"); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_GuildMineMain) + { + goto IL_133D; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + } + } + else if (xsysDefine2 <= XSysDefine.XSys_IDIP_ZeroReward) + { + if (xsysDefine2 <= XSysDefine.XSys_GuildInherit) + { + if (xsysDefine2 == XSysDefine.XSys_GuildDailyTask) + { + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_GuildInherit) + { + goto IL_133D; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + } + else + { + switch (xsysDefine2) + { + case XSysDefine.XSys_JockerKing: + { + XJokerKingDocument specificDocument13 = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + specificDocument13.JokerKingMatchAdd(); + goto IL_1362; + } + case XSysDefine.XSys_Team_TeamList: + case XSysDefine.XSys_Team_MyTeam: + case XSysDefine.XSys_GuildWeeklyBountyTask: + goto IL_133D; + case XSysDefine.XSys_Team_Invited: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_GuildDailyRefresh: + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + case XSysDefine.XSys_GuildDailyRequest: + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + default: + { + if (xsysDefine2 != XSysDefine.XSys_IDIP_ZeroReward) + { + goto IL_133D; + } + XIDIPDocument specificDocument14 = XDocuments.GetSpecificDocument(XIDIPDocument.uuID); + string leftTimeString = specificDocument14.GetLeftTimeString(); + bool flag9 = leftTimeString == "0"; + if (flag9) + { + specificDocument14.ZeroRewardBtnState = false; + this.RefreshH5ButtonState(XSysDefine.XSys_IDIP_ZeroReward, true); + } + else + { + string label4 = string.Format(XStringDefineProxy.GetString("IDIP_TIPS_ZEROREWARDClick"), leftTimeString); + XSingleton.singleton.ShowModalDialog(label4, XStringDefineProxy.GetString("COMMON_OK")); + } + goto IL_1362; + } + } + } + } + else if (xsysDefine2 <= XSysDefine.XSys_SpriteSystem) + { + if (xsysDefine2 == XSysDefine.XSys_Photo) + { + XDanceDocument.Doc.GetAllDanceIDs(); + this.RefreshV3BtnSelect(go); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.ShowMainView(); + goto IL_1362; + } + if (xsysDefine2 != XSysDefine.XSys_SpriteSystem) + { + goto IL_133D; + } + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_SpriteSystem_Main); + goto IL_1362; + } + else + { + switch (xsysDefine2) + { + case XSysDefine.XSys_QuickRide: + { + this.RefreshV3BtnSelect(go); + XPetDocument specificDocument15 = XDocuments.GetSpecificDocument(XPetDocument.uuID); + bool flag10 = XSingleton.singleton.XPlayerData.Outlook.state.type == OutLookStateType.OutLook_RidePetCopilot; + if (flag10) + { + specificDocument15.OnReqOffPetPairRide(); + } + else + { + bool flag11 = specificDocument15.Pets.Count == 0; + if (flag11) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PET_NONE"), "fece00"); + } + else + { + specificDocument15.ReqRecentMount(); + } + } + goto IL_1362; + } + case XSysDefine.XSys_AppStore_Praise: + case (XSysDefine)946: + case (XSysDefine)947: + case (XSysDefine)948: + case XSysDefine.XSys_WebView: + case XSysDefine.XSys_GameHorde: + case (XSysDefine)955: + case XSysDefine.XSys_ProfessionChange: + case XSysDefine.XSys_Questionnaire: + case (XSysDefine)964: + case (XSysDefine)965: + case (XSysDefine)966: + case (XSysDefine)967: + case (XSysDefine)968: + case (XSysDefine)969: + goto IL_133D; + case XSysDefine.XSys_Transform: + { + XTransformDocument specificDocument16 = XDocuments.GetSpecificDocument(XTransformDocument.uuID); + specificDocument16.ReqSwitch(); + goto IL_1362; + } + case XSysDefine.XSys_GameCommunity: + { + bool flag12 = this._GameCommunityHandler == null; + if (flag12) + { + this._GameCommunityHandler = DlgHandlerBase.EnsureCreate(ref this._GameCommunityHandler, base.uiBehaviour.m_SecondMenu.transform, true, this); + } + else + { + this._GameCommunityHandler.SetVisible(!this._GameCommunityHandler.IsVisible()); + } + goto IL_1362; + } + case XSysDefine.XSys_FriendCircle: + dictionary["link"] = XSingleton.singleton.GetValue("FriendsCircleUrl"); + XSingleton.singleton.XPlatform.SendExtDara("open_wx_deeplink", Json.Serialize(dictionary)); + goto IL_1362; + case XSysDefine.XSys_QQVIP: + XPlatformAbilityDocument.Doc.ClickRedPointNtf(); + XPlatformAbilityDocument.Doc.OpenQQVipRechargeH5(); + goto IL_1362; + case XSysDefine.XSys_SystemAnnounce: + DlgBase.singleton.SetVisible(true, true); + goto IL_1362; + case XSysDefine.XSys_HeroBattle: + { + XHeroBattleDocument specificDocument17 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + specificDocument17.MaininterfaceState = false; + this.RefreshH5ButtonState(XSysDefine.XSys_HeroBattle, true); + string label5 = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MainInterfaceHeroBattlePVPTips")); + string string7 = XStringDefineProxy.GetString("BtnTips_EnterNow"); + string string8 = XStringDefineProxy.GetString("BtnTips_Then"); + XSingleton.singleton.ShowModalDialog(label5, string7, string8, new ButtonClickEventHandler(this.OnHeroBattleJoin)); + goto IL_1362; + } + case XSysDefine.XSys_GuildBossMainInterface: + break; + case XSysDefine.XSys_GuildMineMainInterface: + goto IL_A54; + case XSysDefine.XSys_GuildPvpMainInterface: + goto IL_A0D; + case XSysDefine.XSys_TeamLeague: + { + XFreeTeamVersusLeagueDocument specificDocument18 = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument18.SetMainInterfaceBtnState(false); + string label6 = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MainInterfaceTeamLeagueTips")); + string string9 = XStringDefineProxy.GetString("BtnTips_EnterNow"); + string string10 = XStringDefineProxy.GetString("BtnTips_Then"); + XSingleton.singleton.ShowModalDialog(label6, string9, string10, new ButtonClickEventHandler(this.OnTeamLeagueJoin)); + goto IL_1362; + } + case XSysDefine.XSys_GuildMineEnd: + { + RpcC2M_QueryResWar rpcC2M_QueryResWar = new RpcC2M_QueryResWar(); + rpcC2M_QueryResWar.oArg.param = QueryResWarEnum.RESWAR_FLOWAWARD; + XSingleton.singleton.Send(rpcC2M_QueryResWar); + XGuildMineEntranceDocument specificDocument19 = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + specificDocument19.MainInterfaceStateEnd = false; + this.RefreshH5ButtonState(XSysDefine.XSys_GuildMineEnd, true); + goto IL_1362; + } + case XSysDefine.XSys_GuildTerritory: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_GuildTerritoryIconInterface: + { + XGuildTerritoryDocument specificDocument20 = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument20.OnClickTerritoryIcon(); + goto IL_1362; + } + case XSysDefine.XSys_GuildTerritoryAllianceInterface: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_GuildTerritoryMessageInterface: + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XGuildTerritoryDocument specificDocument21 = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument21.bHavaShowMessageIcon = false; + goto IL_1362; + } + default: + if (xsysDefine2 == XSysDefine.XSys_Platform_StartPrivilege) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + } + switch (xsysDefine2) + { + case XSysDefine.XSys_Exchange: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_GuildCollectMainInterface: + { + XGuildCollectDocument specificDocument22 = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + specificDocument22.SetMainInterfaceBtnState(false); + XGuildDocument specificDocument23 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument23.bInGuild; + if (bInGuild) + { + string label7 = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildCollectJoinTips1")); + string string11 = XStringDefineProxy.GetString("BtnTips_EnterNow"); + string string12 = XStringDefineProxy.GetString("BtnTips_Then"); + XSingleton.singleton.ShowModalDialog(label7, string11, string12, new ButtonClickEventHandler(this.OnJoinGuildBtnClick)); + } + else + { + string label8 = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GuildCollectJoinTips2")); + string string13 = XStringDefineProxy.GetString("BtnTips_EnterGuild"); + string string14 = XStringDefineProxy.GetString("BtnTips_Then"); + XSingleton.singleton.ShowModalDialog(label8, string13, string14, new ButtonClickEventHandler(this.OnJoinGuildBtnClick)); + } + goto IL_1362; + } + case XSysDefine.XSys_GuildCollect: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + case XSysDefine.XSys_BackFlowMall: + case XSysDefine.XSys_BackFlowWelfare: + case (XSysDefine)995: + goto IL_133D; + case XSysDefine.XSys_GuildCollectSummon: + { + XGuildCollectDocument specificDocument24 = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + specificDocument24.QuerySummon(); + goto IL_1362; + } + default: + goto IL_133D; + } + break; + } + } + DlgBase.singleton.ShowGuildBossView(); + goto IL_1362; + IL_A0D: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XGuildArenaDocument specificDocument25 = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + specificDocument25.bHasAvailableArenaIcon = false; + goto IL_1362; + IL_A54: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_1362; + IL_133D: + XSingleton.singleton.AddErrorLog("This system hasn't finished: ", xsysDefine.ToString(), null, null, null, null); + IL_1362: + result = true; + } + } + return result; + } + + public void SetSystemRedPointState(XSysDefine sys, bool state) + { + bool flag = sys == XSysDefine.XSys_GuildDailyTask; + if (flag) + { + this._TaskNaviHandler.TaskHandler.RefreshVisibleContents(); + } + else + { + bool flag2 = sys == XSysDefine.XSys_GuildWeeklyBountyTask; + if (flag2) + { + this._TaskNaviHandler.TaskHandler.RefreshVisibleContents(); + } + else + { + IXUIButton sysButton = base.uiBehaviour.GetSysButton(sys); + bool flag3 = sysButton == null; + if (!flag3) + { + Transform transform = sysButton.gameObject.transform.Find("RedPoint"); + bool flag4 = transform != null; + if (flag4) + { + transform.gameObject.SetActive(state); + } + } + } + } + } + + public void InitRedPointsWhenShow() + { + XGameSysMgr singleton = XSingleton.singleton; + for (int i = 0; i < base.uiBehaviour.m_SysButtonsMapping.Length; i++) + { + bool flag = base.uiBehaviour.m_SysButtonsMapping[i] != null; + if (flag) + { + XSysDefine sys = (XSysDefine)i; + List childSys = singleton.GetChildSys(sys); + for (int j = 0; j < childSys.Count; j++) + { + singleton.RecalculateRedPointState(childSys[j], false); + } + singleton.UpdateRedPointOnHallUI(sys); + } + } + this.OnGuildSysChange(); + } + + public void InitSevenLoginWhenShow() + { + bool flag = base.uiBehaviour == null || base.uiBehaviour.m_SevenLoginMessage == null; + if (!flag) + { + XSevenLoginDocument specificDocument = XDocuments.GetSpecificDocument(XSevenLoginDocument.uuID); + bool flag2 = !specificDocument.bHasAvailableSevenIcon; + if (!flag2) + { + string empty = string.Empty; + string empty2 = string.Empty; + bool flag3 = specificDocument.TryGetHallMessage(out empty, out empty2); + if (flag3) + { + base.uiBehaviour.m_SevenLoginMessage.SetText(empty); + base.uiBehaviour.m_SevenLoginSprite.SetSprite(empty2); + base.uiBehaviour.m_SevenLoginSprite.MakePixelPerfect(); + } + } + } + } + + public void SetMultiActivityTips(object o = null) + { + XActivityDocument doc = XActivityDocument.Doc; + bool flag = base.uiBehaviour.m_MulActTips.IsVisible() && doc.MainInterfaceTips != null && doc.MainInterfaceTips != ""; + if (flag) + { + base.uiBehaviour.m_MulActTips.SetText(doc.MainInterfaceTips); + IXUITweenTool ixuitweenTool = base.uiBehaviour.m_MulActTips.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + XSingleton.singleton.KillTimer(this.MulActTipsToken); + this.MulActTipsToken = XSingleton.singleton.SetTimer((float)this._MulActTipsCD, new XTimerMgr.ElapsedEventHandler(this.SetMultiActivityTips), null); + } + + public void OnVoiceBtnAppear(uint textType) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.MainInterFaceBtnState = true; + this.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + } + + public bool OnVoiceQAJoin(IXUIButton btn) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.VoiceQAJoinChoose(true, specificDocument.TempType); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public bool OnVoiceQARefuse(IXUIButton btn) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + specificDocument.VoiceQAJoinChoose(false, specificDocument.TempType); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnCaptainJoin(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Activity_CaptainPVP, 0UL); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnTeamLeagueJoin(IXUIButton btn) + { + LeagueBattleTimeState todayState = XFreeTeamVersusLeagueDocument.Doc.TodayState; + bool flag = todayState == LeagueBattleTimeState.LBTS_CrossElimination || todayState == LeagueBattleTimeState.LBTS_Elimination; + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnHeroBattleJoin(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_HeroBattle, 0UL); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool OnExcellentLiveClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.MainInterfaceEnterQuery(); + return true; + } + + private bool OnJoinGuildBtnClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + specificDocument.TryEnterGuildScene(); + return true; + } + + public void ShowRemoveSealLeftTime(IXUILabel label, ref XLeftTimeCounter _LevelSealCDCounter, ref bool isLevelSealCountdown) + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + int leftTime = specificDocument.GetLeftTime(); + bool flag = leftTime >= 86400; + if (flag) + { + isLevelSealCountdown = false; + string text = string.Format(XSingleton.singleton.GetString("SEAL_REMOVE_LEFT"), XSingleton.singleton.TimeAccFormatString(leftTime, 1, 1)); + label.SetText(text); + } + else + { + bool flag2 = leftTime <= 0; + if (flag2) + { + isLevelSealCountdown = false; + string text2 = string.Format(XSingleton.singleton.GetString("SEAL_REMOVE_LEFT"), "00:00"); + label.SetText(text2); + } + else + { + isLevelSealCountdown = true; + bool flag3 = _LevelSealCDCounter == null; + if (flag3) + { + _LevelSealCDCounter = new XLeftTimeCounter(label, false); + } + _LevelSealCDCounter.SetLeftTime((float)leftTime, -1); + _LevelSealCDCounter.SetFormatString(XSingleton.singleton.GetString("SEAL_REMOVE_LEFT")); + _LevelSealCDCounter.SetTimeFormat(2, 3, 3, false); + _LevelSealCDCounter.SetCarry(); + } + } + } + + public void PlayGetPartnerEffect() + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_yh", base.uiBehaviour.transform, Vector3.zero, Vector3.one, 1f, true, 3f, true); + } + + public void ShowLiveCount(uint count) + { + base.uiBehaviour.m_LiveTips.SetActive(count > 0u); + bool flag = count > 9u; + if (flag) + { + base.uiBehaviour.m_LiveCount.SetText("..."); + } + else + { + base.uiBehaviour.m_LiveCount.SetText(count.ToString()); + } + } + + public bool SetSystemAnnounce() + { + SystemAnnounce.RowData sysAnnounceData = XSingleton.singleton.GetSysAnnounceData(XSingleton.singleton.XPlayerData.Level); + bool flag = sysAnnounceData == null; + bool result; + if (flag) + { + result = false; + } + else + { + IXUIButton sysButton = base.uiBehaviour.GetSysButton(XSysDefine.XSys_SystemAnnounce); + IXUILabel ixuilabel = sysButton.gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(sysAnnounceData.OpenAnnounceLevel.ToString()); + IXUISprite ixuisprite = sysButton.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = sysAnnounceData.AnnounceIcon; + IXUISprite ixuisprite2 = sysButton.gameObject.transform.Find("Name").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteName = sysAnnounceData.TextSpriteName; + ixuisprite2.MakePixelPerfect(); + result = true; + } + return result; + } + + public void SetGetExpAnimation(ulong exp, Vector3 pos) + { + bool flag = Camera.main == null; + if (!flag) + { + XSingleton.singleton.AddGreenLog("exp:", exp.ToString(), null, null, null, null); + int curExpInd = this._curExpInd; + this._curExpInd = (this._curExpInd + 1) % this._maxExpCount; + Vector3 vector = Camera.main.WorldToScreenPoint(pos); + Vector3 vector2 = XSingleton.singleton.UICamera.ScreenToWorldPoint(vector); + vector2.z = 0f; + base.uiBehaviour.m_ExpValueMgr[curExpInd].gameObject.transform.InverseTransformPoint(vector2); + base.uiBehaviour.m_ExpValueMgr[curExpInd].SetText(string.Format("jy+{0}", exp)); + base.uiBehaviour.m_ExpAnimationMgr[curExpInd].PlayTween(true, -1f); + } + } + + public Vector3 GetSelectDanceMotionBtnPos() + { + bool flag = this.lastSelectV3Button != null; + Vector3 result; + if (flag) + { + result = this.lastSelectV3Button.gameObject.transform.position; + } + else + { + result = Vector3.zero; + } + return result; + } + + private void RefreshV3BtnSelect(IXUIButton newBtn) + { + bool flag = this._DanceMotionHandler != null; + if (flag) + { + this._DanceMotionHandler.SetVisible(false); + } + bool flag2 = this.lastSelectV3Button != null; + if (flag2) + { + Transform transform = this.lastSelectV3Button.gameObject.transform.Find("Select"); + bool flag3 = transform != null; + if (flag3) + { + transform.gameObject.SetActive(false); + } + } + bool flag4 = newBtn != null; + if (flag4) + { + Transform transform2 = newBtn.gameObject.transform.Find("Select"); + bool flag5 = transform2 != null; + if (flag5) + { + transform2.gameObject.SetActive(true); + } + } + this.lastSelectV3Button = newBtn; + } + + private bool OnMotionClicked(IXUIButton btn) + { + bool flag = !base.IsLoaded(); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = false; + bool flag3 = this.lastSelectV3Button != null && this.lastSelectV3Button == btn && this._DanceMotionHandler != null && this._DanceMotionHandler.IsVisible(); + if (flag3) + { + flag2 = true; + } + this.RefreshV3BtnSelect(btn); + bool flag4 = !flag2 && this._DanceMotionHandler != null; + if (flag4) + { + this._DanceMotionHandler.SetVisible(true); + XDanceDocument.Doc.GetDanceIDs((uint)btn.ID); + } + result = true; + } + return result; + } + + public void RefreshMotionPanel(List motions) + { + bool flag = this._DanceMotionHandler != null && this._DanceMotionHandler.IsVisible(); + if (flag) + { + this._DanceMotionHandler.RefreshMotionPanel(motions); + } + } + + private void OnV3SwitchBtnClick(IXUISprite iSp) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + this._V3SwitchBtnState = !this._V3SwitchBtnState; + int tweenGroup = this._V3SwitchBtnState ? 1 : 2; + base.uiBehaviour.m_V3ListTween.SetTweenGroup(tweenGroup); + base.uiBehaviour.m_V3ListTween.PlayTween(true, -1f); + base.uiBehaviour.m_V3SwitchTween.SetTweenGroup(tweenGroup); + base.uiBehaviour.m_V3SwitchTween.PlayTween(true, -1f); + bool flag2 = !this._V3SwitchBtnState; + if (flag2) + { + bool flag3 = this._DanceMotionHandler != null; + if (flag3) + { + this._DanceMotionHandler.SetVisible(false); + } + } + else + { + XTransformDocument specificDocument = XDocuments.GetSpecificDocument(XTransformDocument.uuID); + specificDocument.ReqLeftTime(); + } + } + } + + private void OnH2SwitchBtnClick(IXUISprite iSp) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + this._H2SwitchBtnState = !this._H2SwitchBtnState; + bool h2SwitchBtnState = this._H2SwitchBtnState; + if (h2SwitchBtnState) + { + GameObject gameObject = base.uiBehaviour.m_H2SwitchBtn.gameObject.transform.Find("RedPoint").gameObject; + gameObject.SetActive(false); + } + int tweenGroup = this._H2SwitchBtnState ? 1 : 0; + base.uiBehaviour.m_H2ListTween.SetTweenGroup(tweenGroup); + base.uiBehaviour.m_H2SwitchTween.SetTweenGroup(tweenGroup); + base.uiBehaviour.m_H2ListTween.PlayTween(true, -1f); + base.uiBehaviour.m_H2SwitchTween.PlayTween(true, -1f); + } + } + + public void CalH2SwitchBtnRedPointState(IXUITweenTool o = null) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_H2SwitchBtn.gameObject.transform.Find("RedPoint").gameObject; + bool h2SwitchBtnState = this._H2SwitchBtnState; + if (h2SwitchBtnState) + { + gameObject.SetActive(false); + } + else + { + gameObject.SetActive(this.CalMenuUIRedPoint(XSysDefine.XSys_GameMall) || this.CalMenuUIRedPoint(XSysDefine.XSys_Auction) || this.CalMenuUIRedPoint(XSysDefine.XSys_Reward) || this.CalMenuUIRedPoint(XSysDefine.XSys_Welfare) || this.CalMenuUIRedPoint(XSysDefine.Xsys_Backflow) || this.CalMenuUIRedPoint(XSysDefine.XSys_Strong) || this.CalMenuUIRedPoint(XSysDefine.XSys_Spectate) || this.CalMenuUIRedPoint(XSysDefine.XSys_OperatingActivity) || this.CalMenuUIRedPoint(XSysDefine.XSys_Welfare_FirstRechange) || this.CalMenuUIRedPoint(XSysDefine.XSys_SevenActivity) || this.CalMenuUIRedPoint(XSysDefine.XSys_ThemeActivity) || this.CalMenuUIRedPoint(XSysDefine.XSys_Carnival)); + } + } + } + + private void OnMenuSwitchBtnClick(IXUISprite iSp) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + this._MenuSwitchBtnState = !this._MenuSwitchBtnState; + this.CalMenuSwitchBtnRedPointState(); + int tweenGroup = this._MenuSwitchBtnState ? 1 : 2; + base.uiBehaviour.m_MenuSwitchBtnTween.SetTweenGroup(tweenGroup); + bool flag2 = this.m_curScene == SceneType.SCENE_HALL; + if (flag2) + { + base.uiBehaviour.m_SysListH0Tween.SetTweenGroup(tweenGroup); + base.uiBehaviour.m_SysListH0Tween.PlayTween(true, -1f); + } + else + { + bool flag3 = this.m_curScene == SceneType.SCENE_GUILD_HALL; + if (flag3) + { + base.uiBehaviour.m_SysListH2Tween.SetTweenGroup(tweenGroup); + base.uiBehaviour.m_SysListH2Tween.PlayTween(true, -1f); + } + else + { + bool flag4 = this.m_curScene == SceneType.SCENE_FAMILYGARDEN; + if (flag4) + { + base.uiBehaviour.m_SysListH3Tween.SetTweenGroup(tweenGroup); + base.uiBehaviour.m_SysListH3Tween.PlayTween(true, -1f); + } + } + } + base.uiBehaviour.m_SysListH1Tween.SetTweenGroup(tweenGroup); + base.uiBehaviour.m_SysListH1Tween.PlayTween(true, -1f); + base.uiBehaviour.m_MenuSwitchBtnTween.PlayTween(true, -1f); + } + } + + public void CalMenuSwitchBtnRedPointState() + { + bool flag = !base.IsVisible(); + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_MenuSwitchBtn.gameObject.transform.Find("RedPoint").gameObject; + bool menuSwitchBtnState = this._MenuSwitchBtnState; + if (menuSwitchBtnState) + { + bool flag2 = this.m_curScene == SceneType.SCENE_HALL; + if (flag2) + { + gameObject.SetActive(this.CalMenuUIRedPoint(XSysDefine.XSys_Friends) || this.CalMenuUIRedPoint(XSysDefine.XSys_Home) || this.CalMenuUIRedPoint(XSysDefine.XSys_Rank) || this.CalMenuUIRedPoint(XSysDefine.XSys_CardCollect) || this.CalMenuUIRedPoint(XSysDefine.XSys_NPCFavor)); + } + else + { + bool flag3 = this.m_curScene == SceneType.SCENE_GUILD_HALL; + if (flag3) + { + gameObject.SetActive(this.CalMenuUIRedPoint(XSysDefine.XSys_GuildHall) || this.CalMenuUIRedPoint(XSysDefine.XSys_GuildRelax)); + } + } + } + else + { + bool flag4 = false; + foreach (XSysDefine sys in base.uiBehaviour.m_SysH1) + { + flag4 = (flag4 || this.CalMenuUIRedPoint(sys)); + } + gameObject.SetActive(flag4); + } + } + } + + private bool CalMenuUIRedPoint(XSysDefine sys) + { + return XSingleton.singleton.IsSystemOpened(sys) && XSingleton.singleton.GetSysRedPointStateConsiderBlock(sys); + } + + private void RefreshListSwitchBtnVisable(IXUIObject iSp, IXUIList uiList, IXUIList uiList2 = null) + { + bool flag = false; + for (int i = 0; i < uiList.gameObject.transform.childCount; i++) + { + Transform child = uiList.gameObject.transform.GetChild(i); + bool activeSelf = child.gameObject.activeSelf; + if (activeSelf) + { + flag = true; + break; + } + } + bool flag2 = uiList2 == null || flag; + if (flag2) + { + iSp.SetVisible(flag); + } + else + { + for (int j = 0; j < uiList2.gameObject.transform.childCount; j++) + { + Transform child2 = uiList2.gameObject.transform.GetChild(j); + bool activeSelf2 = child2.gameObject.activeSelf; + if (activeSelf2) + { + flag = true; + break; + } + } + iSp.SetVisible(flag); + } + } + + private void RefreshV3H1OnOtherScene() + { + foreach (XSysDefine sys in base.uiBehaviour.m_SysV3) + { + this.OnSingleSysChange(sys, false); + } + base.uiBehaviour.m_SysListV3.Refresh(); + foreach (XSysDefine sys2 in base.uiBehaviour.m_SysH1) + { + this.OnSingleSysChange(sys2, false); + } + base.uiBehaviour.m_SysListH1.Refresh(); + } + + public bool IsSupportQgame() + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + bool flag2 = SystemInfo.processorType.StartsWith("Intel"); + bool flag3 = SystemInfo.systemMemorySize >= XSingleton.singleton.GetInt("QGameMemory"); + return XSingleton.singleton.XBroadCast.IsBroadState() && flag && !flag2 && flag3; + } + + private bool OnQGameClick(IXUIButton btn) + { + bool isPlaying = DlgBase.singleton.isPlaying; + bool result; + if (isPlaying) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Replay_IsPlaying"), "fece00"); + result = false; + } + else + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + bool flag = specificDocument.roomState == XRadioDocument.BigRoomState.OutRoom; + if (flag) + { + XSingleton.singleton.XBroadCast.EnterHall(); + PtcC2G_CloseHintNtf ptcC2G_CloseHintNtf = new PtcC2G_CloseHintNtf(); + ptcC2G_CloseHintNtf.Data.systemid = 80u; + XSingleton.singleton.Send(ptcC2G_CloseHintNtf); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_FM_FORBID1"), "fece00"); + } + result = true; + } + return result; + } + + public void RefreshGuildCollectTime(int time, int summonTime) + { + base.uiBehaviour.m_GuildCollectLeftTime.SetText(XSingleton.singleton.TimeFormatString(time, 2, 3, 4, false, true)); + base.uiBehaviour.m_GuildCollectSummonTime.SetText(XSingleton.singleton.TimeFormatString(summonTime, 2, 3, 4, false, true)); + } + + public void OnShowFlowBack() + { + Transform uiroot = XSingleton.singleton.UIRoot; + bool flag = uiroot != null; + if (flag) + { + Transform transform = uiroot.Find("Camera"); + bool flag2 = transform != null; + if (flag2) + { + XFx xfx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_huanyinghuigu", transform, false); + bool flag3 = xfx != null; + if (flag3) + { + float num = 1.3f; + xfx.DelayDestroy = num; + XSingleton.singleton.DestroyFx(xfx, false); + XSingleton.singleton.SetTimer(num, delegate(object param) + { + string @string = XStringDefineProxy.GetString("BackFlowWelcom"); + string string2 = XStringDefineProxy.GetString("BackFlowWelcomCotent"); + XSingleton.singleton.ShowModalDialogWithTitle(@string, string2, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), delegate(IXUIButton button) + { + this.MainDoc.BackFlow = false; + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.Pause = false; + return true; + }, 50); + }, null); + } + } + } + } + + public void SetTransformLeftTime(float time) + { + bool flag = !base.IsLoaded(); + if (!flag) + { + base.uiBehaviour.m_TransformLeftTime.SetLeftTime(time, -1); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterface.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMainInterface.cs.meta new file mode 100644 index 00000000..bc5b9010 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterface.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f94ad8960f1b7cc4abaf8fa5b4e065ec +timeCreated: 1611404898 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBehaviour.cs new file mode 100644 index 00000000..5035bed3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBehaviour.cs @@ -0,0 +1,440 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMainInterfaceBehaviour : DlgBehaviourBase + { + public Transform m_Canvas; + + public GameObject m_SecondMenu; + + public GameObject m_MainMenuGo; + + public IXUIList m_SysListH1; + + public IXUIList m_SysListH0; + + public IXUIList m_SysListH2; + + public IXUIList m_SysListH3; + + public IXUISprite m_MenuSwitchBtn; + + public IXUITweenTool m_SysListH1Tween; + + public IXUITweenTool m_SysListH0Tween; + + public IXUITweenTool m_SysListH2Tween; + + public IXUITweenTool m_SysListH3Tween; + + public IXUITweenTool m_MenuSwitchBtnTween; + + public IXUIList m_SysListV1; + + public IXUIList m_SysListV2; + + public IXUIList m_SysListV3; + + public IXUISprite m_V3SwitchBtn; + + public IXUIList m_SysListH2_1; + + public IXUIList m_SysListH2_2; + + public IXUISprite m_H2SwitchBtn; + + public IXUITweenTool m_H2ListTween; + + public IXUITweenTool m_H2SwitchTween; + + public IXUIList m_SysListGuildH1; + + public IXUIList m_SysListGuildV1; + + public IXUIList m_SysListGuildH2; + + public IXUITweenTool m_V3SwitchTween; + + public IXUITweenTool m_V3ListTween; + + public IXUIButton m_MotionDance; + + public IXUIButton m_MotionLover; + + public GameObject m_DanceMotion; + + public GameObject m_SysGrid; + + public IXUIButton m_ExitGuild; + + public IXUITweenTool m_HeadMenuTween; + + public GameObject m_HeadMenuTweenGameObject; + + public IXUISlider m_sliderBattery; + + public IXUILabel m_lblTime; + + public IXUILabel m_lblFree; + + public GameObject m_AvatarFrame; + + public IXUISprite m_PlayerAvatar; + + public IXUISprite m_sprFrame; + + public IXUITexture m_txtAvatar; + + public GameObject m_PlayerPPT; + + public IXUILabel m_Level; + + public GameObject m_PING; + + public IXUILabel m_GuildCollectLeftTime; + + public IXUILabel m_GuildCollectSummonTime; + + public XLeftTimeCounter m_TransformLeftTime; + + public List m_MoneyList = new List(); + + public GameObject m_TaskNaviFrame; + + public IXUITweenTool m_FakeShowSelfTween; + + public IXUISprite m_RecoverTime; + + public IXUILabel m_CurFatige; + + public IXUILabel m_AllCoverTime; + + public IXUILabel m_CoverOneTime; + + public GameObject m_HomeGo; + + public GameObject m_FxFirework; + + public IXUILabel m_RemoveSealTip; + + public GameObject m_LiveTips; + + public IXUILabel m_LiveCount; + + public IXUILabel m_MulActTips; + + public IXUILabel m_SevenLoginMessage; + + public IXUISprite m_SevenLoginSprite; + + public List m_ExpAnimationMgr = new List(); + + public List m_ExpValueMgr = new List(); + + public IXUIButton[] m_SysButtonsMapping = new IXUIButton[1024]; + + public List m_ListSys = new List(); + + public XSysDefine[] m_SysGuild = new XSysDefine[] + { + XSysDefine.XSys_GuildHall, + XSysDefine.XSys_GuildRelax, + XSysDefine.XSys_CrossGVG, + XSysDefine.XSys_GuildDragon, + XSysDefine.XSys_GuildPvp, + XSysDefine.XSys_GuildMine, + XSysDefine.XSys_GuildTerritory + }; + + public HashSet m_SysGuildNormal = new HashSet(default(XFastEnumIntEqualityComparer)) + { + XSysDefine.XSys_GuildCollect, + XSysDefine.XSys_GuildCollectSummon + }; + + public XSysDefine[] m_SysChar = new XSysDefine[] + { + XSysDefine.XSys_Char, + XSysDefine.XSys_Bag + }; + + public XSysDefine[] m_SysH4 = new XSysDefine[] + { + XSysDefine.XSys_Chat, + XSysDefine.XSys_Setting, + XSysDefine.XSys_Mail + }; + + public HashSet m_SysH1 = new HashSet(default(XFastEnumIntEqualityComparer)) + { + XSysDefine.XSys_Item, + XSysDefine.XSys_Skill, + XSysDefine.XSys_SpriteSystem, + XSysDefine.XSys_Horse, + XSysDefine.XSys_EquipCreate + }; + + public HashSet m_SysV3 = new HashSet(default(XFastEnumIntEqualityComparer)) + { + XSysDefine.XSys_QuickRide, + XSysDefine.XSys_Photo + }; + + private void Awake() + { + this.m_Canvas = base.transform.Find("_canvas"); + Transform transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH1"); + this.m_SysListH1 = (transform.GetComponent("XUIList") as IXUIList); + this.m_SysListH1Tween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH0"); + this.m_SysListH0 = (transform.GetComponent("XUIList") as IXUIList); + this.m_SysListH0Tween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridGuildH1"); + this.m_SysListH2 = (transform.GetComponent("XUIList") as IXUIList); + this.m_SysListH2Tween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH3"); + this.m_SysListH3 = (transform.GetComponent("XUIList") as IXUIList); + this.m_SysListH3Tween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/MenuSwitchBtn"); + this.m_MenuSwitchBtn = (transform.GetComponent("XUISprite") as IXUISprite); + this.m_MenuSwitchBtnTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridGuildH1"); + this.m_SysListGuildH1 = (transform.GetComponent("XUIList") as IXUIList); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridGuildV1"); + this.m_SysListGuildV1 = (transform.GetComponent("XUIList") as IXUIList); + transform = base.transform.Find("_canvas/SecondMenuFrame/SysGridGuildH2"); + this.m_SysListGuildH2 = (transform.GetComponent("XUIList") as IXUIList); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridV1"); + this.m_SysListV1 = (transform.GetComponent("XUIList") as IXUIList); + transform = base.transform.Find("_canvas/SecondMenuFrame/SecondMenu/SysGridV2"); + this.m_SysListV2 = (transform.GetComponent("XUIList") as IXUIList); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3"); + this.m_SysListV3 = (transform.GetComponent("XUIList") as IXUIList); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel5/V3SwitchBtn"); + this.m_V3SwitchBtn = (transform.GetComponent("XUISprite") as IXUISprite); + this.m_V3SwitchTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3"); + this.m_V3ListTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/SecondMenuFrame/SecondMenu/H2SwitchBtn"); + this.m_H2SwitchBtn = (transform.GetComponent("XUISprite") as IXUISprite); + this.m_H2SwitchTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/SecondMenuFrame/SecondMenu/H2"); + this.m_H2ListTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + transform = base.transform.Find("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_1"); + this.m_SysListH2_1 = (transform.GetComponent("XUIList") as IXUIList); + transform = base.transform.Find("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2"); + this.m_SysListH2_2 = (transform.GetComponent("XUIList") as IXUIList); + transform = base.transform.Find("_canvas/MainMenuFrame/MainMenu"); + this.m_MainMenuGo = transform.gameObject; + this.m_SecondMenu = base.transform.Find("_canvas/SecondMenuFrame/SecondMenu").gameObject; + transform = base.transform.Find("_canvas/ThirdMenuFrame/ThirdMenu"); + this.m_ExitGuild = (base.transform.Find("_canvas/SecondMenuFrame/BtnExitGuild").GetComponent("XUIButton") as IXUIButton); + this.m_RecoverTime = (base.transform.Find("_canvas/RecoverTime").GetComponent("XUISprite") as IXUISprite); + List list = new List(); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH1/SysAItem"); + this.m_ListSys.Add(XSysDefine.XSys_Item); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH1/SysBSkill"); + this.m_ListSys.Add(XSysDefine.XSys_Skill); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH1/SysCSprite"); + this.m_ListSys.Add(XSysDefine.XSys_SpriteSystem); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH1/SysDEquipCreate"); + this.m_ListSys.Add(XSysDefine.XSys_EquipCreate); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH1/SysEHorse"); + this.m_ListSys.Add(XSysDefine.XSys_Horse); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH0/SysA_Friends"); + this.m_ListSys.Add(XSysDefine.XSys_Friends); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH0/SysB_Home"); + this.m_ListSys.Add(XSysDefine.XSys_Home); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH0/SysC_Rank"); + this.m_ListSys.Add(XSysDefine.XSys_Rank); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH0/SysD_CardCollect"); + this.m_ListSys.Add(XSysDefine.XSys_CardCollect); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH0/SysE_NPCFavor"); + this.m_ListSys.Add(XSysDefine.XSys_NPCFavor); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH3/SysA_HomeMain"); + this.m_ListSys.Add(XSysDefine.XSys_Home_Plant); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH3/SysB_HomeShop"); + this.m_ListSys.Add(XSysDefine.XSys_Mall_Home); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridH3/SysC_HomeCooking"); + this.m_ListSys.Add(XSysDefine.XSys_Home_Cooking); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridV1/SysAActivity"); + this.m_ListSys.Add(XSysDefine.XSys_DailyAcitivity); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridV1/SysCGuild"); + this.m_ListSys.Add(XSysDefine.XSys_Guild); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridV1/SysEPVP"); + this.m_ListSys.Add(XSysDefine.XSys_MobaAcitivity); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_1/SysAGameMall"); + this.m_ListSys.Add(XSysDefine.XSys_GameMall); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_1/SysCAuction"); + this.m_ListSys.Add(XSysDefine.XSys_Auction); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_1/SysEReward"); + this.m_ListSys.Add(XSysDefine.XSys_Reward); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_1/SysGWelfare"); + this.m_ListSys.Add(XSysDefine.XSys_Welfare); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_1/SysIBq"); + this.m_ListSys.Add(XSysDefine.XSys_Strong); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_1/SysXThemeActivity"); + this.m_ListSys.Add(XSysDefine.XSys_ThemeActivity); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysACarnival"); + this.m_ListSys.Add(XSysDefine.XSys_Carnival); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysCFirstRecharge"); + this.m_ListSys.Add(XSysDefine.XSys_Welfare_FirstRechange); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysEOperatingActivity"); + this.m_ListSys.Add(XSysDefine.XSys_OperatingActivity); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysG_Live"); + this.m_ListSys.Add(XSysDefine.XSys_Spectate); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysISevenActivity"); + this.m_ListSys.Add(XSysDefine.XSys_SevenActivity); + list.Add("_canvas/SecondMenuFrame/SecondMenu/SysGridV2/SysAGameCom"); + this.m_ListSys.Add(XSysDefine.XSys_GameCommunity); + list.Add("_canvas/SecondMenuFrame/SecondMenu/SysGridV2/SysBBroadcast"); + this.m_ListSys.Add(XSysDefine.XSys_Broadcast); + list.Add("_canvas/SecondMenuFrame/SecondMenu/SysGridV2/SysBFriendCir"); + this.m_ListSys.Add(XSysDefine.XSys_FriendCircle); + list.Add("_canvas/SecondMenuFrame/SecondMenu/SysGridV2/SysCQQVIP"); + this.m_ListSys.Add(XSysDefine.XSys_QQVIP); + list.Add("_canvas/SecondMenuFrame/SecondMenu/SysGridV2/SysDJC"); + this.m_ListSys.Add(XSysDefine.XSys_Platform_StartPrivilege); + list.Add("_canvas/SecondMenuFrame/SecondMenu/SysGridV2/SysEAnnounceNew"); + this.m_ListSys.Add(XSysDefine.XSys_SystemAnnounce); + this.CreateV3ListBtns(list, this.m_ListSys); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridGuildH1/SysAGuildHall"); + this.m_ListSys.Add(XSysDefine.XSys_GuildHall); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridGuildH1/SysBGuildRelax"); + this.m_ListSys.Add(XSysDefine.XSys_GuildRelax); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel1/SysGridGuildH1/SysCrossGVG"); + this.m_ListSys.Add(XSysDefine.XSys_CrossGVG); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridGuildV1/SysHGuildMine"); + this.m_ListSys.Add(XSysDefine.XSys_GuildMine); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridGuildV1/SysIGuildTerritory"); + this.m_ListSys.Add(XSysDefine.XSys_GuildTerritory); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridGuildV1/SysCGuildDragon"); + this.m_ListSys.Add(XSysDefine.XSys_GuildDragon); + list.Add("_canvas/MainMenuFrame/MainMenu/Panel2/SysGridGuildV1/SysBGuildPvp"); + this.m_ListSys.Add(XSysDefine.XSys_GuildPvp); + list.Add("_canvas/SecondMenuFrame/SysGridGuildH2/SysGuildCollect"); + this.m_ListSys.Add(XSysDefine.XSys_GuildCollect); + this.m_GuildCollectLeftTime = (base.transform.Find("_canvas/SecondMenuFrame/SysGridGuildH2/SysGuildCollect/Time").GetComponent("XUILabel") as IXUILabel); + list.Add("_canvas/SecondMenuFrame/SysGridGuildH2/SysGuildSummon"); + this.m_ListSys.Add(XSysDefine.XSys_GuildCollectSummon); + this.m_GuildCollectSummonTime = (base.transform.Find("_canvas/SecondMenuFrame/SysGridGuildH2/SysGuildSummon/Time").GetComponent("XUILabel") as IXUILabel); + list.Add("_canvas/ThirdMenuFrame/PING/SysWifi"); + this.m_ListSys.Add(XSysDefine.XSys_Wifi); + list.Add("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysKBackflow"); + this.m_ListSys.Add(XSysDefine.Xsys_Backflow); + this.m_SysGrid = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel3/SysGrid").gameObject; + for (int i = 0; i < this.m_ListSys.Count; i++) + { + XSysDefine xsysDefine = this.m_ListSys[i]; + transform = base.transform.Find(list[i]); + bool flag = transform == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("btn:" + list[i], null, null, null, null, null); + } + else + { + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)xsysDefine); + this.m_SysButtonsMapping[(int)(checked((IntPtr)ixuibutton.ID))] = ixuibutton; + } + } + this.m_HomeGo = base.transform.Find("_canvas/Home").gameObject; + this.m_AvatarFrame = base.transform.Find("_canvas/ThirdMenuFrame/AvatarBG").gameObject; + this.m_PlayerAvatar = (base.transform.Find("_canvas/ThirdMenuFrame/AvatarBG/Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_sprFrame = (base.transform.Find("_canvas/ThirdMenuFrame/AvatarBG/AvatarFrame").GetComponent("XUISprite") as IXUISprite); + this.m_txtAvatar = (base.transform.Find("_canvas/ThirdMenuFrame/AvatarBG/HeadPanel/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_sliderBattery = (base.transform.Find("_canvas/ThirdMenuFrame/PING/Battery").GetComponent("XUISlider") as IXUISlider); + this.m_lblTime = (base.transform.Find("_canvas/ThirdMenuFrame/PING/TIME").GetComponent("XUILabel") as IXUILabel); + this.m_lblFree = (base.transform.Find("_canvas/ThirdMenuFrame/PING/T2").GetComponent("XUILabel") as IXUILabel); + this.m_Level = (this.m_AvatarFrame.transform.Find("CoverPanel/SwitchPanel/BaseInfo/Level").GetComponent("XUILabel") as IXUILabel); + this.m_PlayerPPT = this.m_AvatarFrame.transform.Find("BattlePointBG").gameObject; + this.m_PING = base.transform.Find("_canvas/ThirdMenuFrame/PING").gameObject; + Transform transform2 = this.m_AvatarFrame.transform.Find("MoneyInfo"); + for (int j = 0; j < transform2.childCount; j++) + { + Transform child = transform2.GetChild(j); + int itemid = 0; + bool flag2 = child.name.StartsWith("Info") && int.TryParse(child.name.Substring(child.name.Length - 1, 1), out itemid); + if (flag2) + { + XTitanItem xtitanItem = new XTitanItem(); + xtitanItem.Set(itemid, child.gameObject); + this.m_MoneyList.Add(xtitanItem); + } + } + this.m_CurFatige = (base.transform.Find("_canvas/RecoverTime/curfatige").GetComponent("XUILabel") as IXUILabel); + this.m_AllCoverTime = (base.transform.Find("_canvas/RecoverTime/allcovertime").GetComponent("XUILabel") as IXUILabel); + this.m_CoverOneTime = (base.transform.Find("_canvas/RecoverTime/coveronetime").GetComponent("XUILabel") as IXUILabel); + this.m_HeadMenuTweenGameObject = base.transform.Find("_canvas/ThirdMenuFrame/AvatarBG/CoverPanel/SwitchPanel").gameObject; + this.m_HeadMenuTween = (this.m_HeadMenuTweenGameObject.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_FakeShowSelfTween = (base.transform.Find("_canvas").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_FxFirework = base.transform.Find("_canvas/FxFirework").gameObject; + this.m_RemoveSealTip = (base.transform.Find("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysEOperatingActivity/Message").GetComponent("XUILabel") as IXUILabel); + this.m_SevenLoginMessage = (base.transform.Find("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysISevenActivity/Message").GetComponent("XUILabel") as IXUILabel); + this.m_SevenLoginSprite = (base.transform.Find("_canvas/SecondMenuFrame/SecondMenu/H2/SysGridH2_2/SysISevenActivity/P").GetComponent("XUISprite") as IXUISprite); + this.m_LiveTips = this.GetSysButton(XSysDefine.XSys_Spectate).gameObject.transform.Find("Member").gameObject; + this.m_LiveCount = (this.m_LiveTips.gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.m_LiveTips.SetActive(false); + this.m_MulActTips = (this.GetSysButton(XSysDefine.XSys_DailyAcitivity).gameObject.transform.Find("Tips").GetComponent("XUILabel") as IXUILabel); + this.m_TaskNaviFrame = base.transform.Find("_canvas/TaskNaviPanel").gameObject; + Transform transform3 = base.transform.Find("_canvas/ExpMgr"); + for (int k = 0; k < 4; k++) + { + IXUITweenTool ixuitweenTool = transform3.GetChild(k).GetComponent("XUIPlayTween") as IXUITweenTool; + IXUILabel item = ixuitweenTool.gameObject.GetComponent("XUILabel") as IXUILabel; + this.m_ExpAnimationMgr.Add(ixuitweenTool); + this.m_ExpValueMgr.Add(item); + } + this.m_DanceMotion = base.transform.Find("_canvas/MainMenuFrame/MainMenu/DanceMotionFrame").gameObject; + } + + private void CreateV3ListBtns(List btnList, List ListSys) + { + btnList.Add("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3/SysEPhoto"); + this.m_ListSys.Add(XSysDefine.XSys_Photo); + btnList.Add("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3/SysAHorseRide"); + this.m_ListSys.Add(XSysDefine.XSys_QuickRide); + btnList.Add("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3/SysAChange"); + this.m_ListSys.Add(XSysDefine.XSys_Transform); + GameObject gameObject = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3").gameObject; + for (int i = 0; i < gameObject.gameObject.transform.childCount; i++) + { + Transform child = gameObject.gameObject.transform.GetChild(i); + GameObject gameObject2 = child.Find("Select").gameObject; + bool flag = gameObject2 != null; + if (flag) + { + gameObject2.SetActive(false); + } + } + IXUILabel label = base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3/SysAChange/Time").GetComponent("XUILabel") as IXUILabel; + this.m_TransformLeftTime = new XLeftTimeCounter(label, true); + this.m_MotionDance = (base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3/SysCDance").GetComponent("XUIButton") as IXUIButton); + this.m_MotionLover = (base.transform.Find("_canvas/MainMenuFrame/MainMenu/Panel5/SysGridV3/SysBLoverDance").GetComponent("XUIButton") as IXUIButton); + this.m_MotionDance.ID = 1UL; + this.m_MotionLover.ID = 2UL; + } + + public IXUIButton GetSysButton(XSysDefine sys) + { + bool flag = sys < XSysDefine.XSys_Num; + IXUIButton result; + if (flag) + { + result = this.m_SysButtonsMapping[(int)sys]; + } + else + { + result = null; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBehaviour.cs.meta new file mode 100644 index 00000000..0980ac7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 445692feaac1e6f4998791c4beaaf1c9 +timeCreated: 1611403644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBriefHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBriefHandler.cs new file mode 100644 index 00000000..b42a4c92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBriefHandler.cs @@ -0,0 +1,256 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMainInterfaceBriefHandler : DlgHandlerBase + { + public XMainInterfaceTeamHandler TeamHandler + { + get + { + return this._TeamHandler; + } + } + + public XMainInterfaceTaskHandler TaskHandler + { + get + { + return this._TaskHandler; + } + } + + public bool IsShowingTaskTab + { + get + { + return this.m_SelectedTab == 1; + } + } + + protected override string FileName + { + get + { + return "Hall/HallTaskNaviFrame"; + } + } + + private IXUICheckBox _TaskTab; + + private IXUICheckBox _TeamTab; + + private IXUISprite _TaskSprite; + + private IXUISprite _TeamSprite; + + private IXUIList m_List; + + private IXUISprite m_SwitchBtn; + + private IXUITweenTool m_SwitchTween; + + private IXUITweenTool m_MainTween; + + private XMainInterfaceTeamHandler _TeamHandler; + + private XMainInterfaceTaskHandler _TaskHandler; + + public bool _TaskSwitchBtnState = true; + + public int IsNavigateToBattle = 0; + + private int m_SelectedTab = 0; + + private IXUILabel _TeamMemberCount; + + private IXUITweenTool _TeamMemberTween; + + private GameObject _TeamMemberGo; + + private GameObject _TeamMatchingGo; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("Main/TabList/Task"); + this._TaskTab = (transform.GetComponent("XUICheckBox") as IXUICheckBox); + this._TaskSprite = (transform.GetComponent("XUISprite") as IXUISprite); + transform = base.PanelObject.transform.Find("Main/TabList/Team"); + this._TeamTab = (transform.GetComponent("XUICheckBox") as IXUICheckBox); + this._TeamSprite = (transform.GetComponent("XUISprite") as IXUISprite); + this.m_List = (base.PanelObject.transform.Find("Main/TabList").GetComponent("XUIList") as IXUIList); + DlgHandlerBase.EnsureCreate(ref this._TeamHandler, base.PanelObject.transform.Find("Main/TeamFrame").gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this._TaskHandler, base.PanelObject.transform.Find("Main/TaskFrame").gameObject, null, true); + this._TeamMemberGo = this._TeamTab.gameObject.transform.Find("Member").gameObject; + this._TeamMatchingGo = this._TeamTab.gameObject.transform.Find("Matching").gameObject; + transform = this._TeamMemberGo.transform.Find("Num"); + this._TeamMemberCount = (transform.GetComponent("XUILabel") as IXUILabel); + this._TeamMemberTween = (transform.GetComponent("XUIPlayTween") as IXUITweenTool); + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + if (flag) + { + this._TaskTab.gameObject.SetActive(false); + this._TeamTab.bChecked = true; + this.m_SelectedTab = 2; + } + else + { + this._TaskTab.bChecked = true; + this.m_SelectedTab = 1; + } + this.m_List.Refresh(); + this.m_SwitchBtn = (base.PanelObject.transform.Find("TaskSwitchBtn").GetComponent("XUISprite") as IXUISprite); + this.m_SwitchTween = (this.m_SwitchBtn.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_MainTween = (base.PanelObject.transform.Find("Main").GetComponent("XUIPlayTween") as IXUITweenTool); + } + + protected override void OnShow() + { + bool flag = this._TaskHandler != null; + if (flag) + { + this._TaskHandler.RefreshData(); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this._TaskTab.ID = 1UL; + this._TaskSprite.ID = 1UL; + this._TaskTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + this._TaskSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSpriteClick)); + this._TeamTab.ID = 2UL; + this._TeamSprite.ID = 2UL; + this._TeamTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + this._TeamSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSpriteClick)); + this.m_SwitchBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTaskSwitchBtnClick)); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._TeamHandler); + DlgHandlerBase.EnsureUnload(ref this._TaskHandler); + base.OnUnload(); + } + + private void _OnSpriteClick(IXUISprite iSp) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + if (!flag) + { + int num = (int)iSp.ID; + bool flag2 = num == this.m_SelectedTab; + if (flag2) + { + bool flag3 = num == 1; + if (!flag3) + { + DlgBase.singleton.ShowTeamView(); + } + } + this.m_SelectedTab = num; + } + } + + private bool OnTabClick(IXUICheckBox iXUICheckBox) + { + bool flag = !base.bLoaded; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !iXUICheckBox.bChecked; + if (flag2) + { + result = true; + } + else + { + int num = (int)iXUICheckBox.ID; + bool flag3 = num == 1; + if (flag3) + { + this._TaskHandler.SetVisible(true); + this._TeamHandler.SetVisible(false); + } + else + { + this._TaskHandler.SetVisible(false); + this._TeamHandler.SetVisible(true); + } + result = true; + } + } + return result; + } + + public void NavigateToBattle() + { + XSingleton.singleton.LastNpc = null; + Vector3 normalized = (XSingleton.singleton.Player.EngineObject.Position - XSingleton.singleton.BattleTargetPoint).normalized; + Vector3 dest = XSingleton.singleton.BattleTargetPoint + normalized * 5.8f; + XNavigationEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + @event.Dest = dest; + XSingleton.singleton.FireEvent(@event); + this.IsNavigateToBattle = 1; + } + + public void NavigateToNest() + { + XSingleton.singleton.LastNpc = null; + Vector3 nestTargetPoint = XSingleton.singleton.NestTargetPoint; + XNavigationEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + @event.Dest = nestTargetPoint; + XSingleton.singleton.FireEvent(@event); + this.IsNavigateToBattle = 2; + } + + public void SetTeamMemberCount(int count) + { + bool flag = count == 0; + if (flag) + { + this._TeamMemberGo.SetActive(false); + } + else + { + this._TeamMemberGo.SetActive(true); + this._TeamMemberCount.SetText(count.ToString()); + this._TeamMemberTween.PlayTween(true, -1f); + } + } + + public void SetTeamMatching(bool bMatching) + { + this._TeamMatchingGo.SetActive(bMatching); + } + + public void OnSysChange() + { + this._TeamTab.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Team)); + this.m_List.Refresh(); + } + + private void OnTaskSwitchBtnClick(IXUISprite iSp) + { + this._TaskSwitchBtnState = !this._TaskSwitchBtnState; + int tweenGroup = this._TaskSwitchBtnState ? 1 : 0; + this.m_MainTween.SetTweenGroup(tweenGroup); + this.m_SwitchTween.SetTweenGroup(tweenGroup); + this.m_MainTween.PlayTween(true, -1f); + this.m_SwitchTween.PlayTween(true, -1f); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBriefHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBriefHandler.cs.meta new file mode 100644 index 00000000..cd92cbc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceBriefHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ca64c2091fcdc24d80c11b9137f1398 +timeCreated: 1611404100 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceMemberMonitor.cs b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceMemberMonitor.cs new file mode 100644 index 00000000..3b6f294a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceMemberMonitor.cs @@ -0,0 +1,94 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMainInterfaceMemberMonitor + { + private GameObject m_Go; + + private bool m_bActive = true; + + private GameObject m_InfoFrame; + + private GameObject m_EmptyFrame; + + private IXUISprite m_uiAvatar; + + private IXUILabel m_uiName; + + private GameObject m_uiLeader; + + private IXUILabel m_uiLevel; + + private IXUISprite m_uiAdd; + + private IXUISprite m_bg; + + private XTeamBloodUIData m_MemberData; + + public void SetGo(GameObject go) + { + this.m_Go = go; + this.m_InfoFrame = go.transform.Find("Info").gameObject; + this.m_EmptyFrame = go.transform.Find("Empty").gameObject; + this.m_uiAvatar = (this.m_InfoFrame.transform.Find("AvatarBG/Avatar").GetComponent("XUISprite") as IXUISprite); + this.m_uiName = (this.m_InfoFrame.transform.Find("PlayerName").GetComponent("XUILabel") as IXUILabel); + this.m_uiLeader = this.m_InfoFrame.transform.Find("TeamLeader").gameObject; + this.m_uiLevel = (this.m_InfoFrame.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_uiAdd = (this.m_EmptyFrame.transform.Find("Add").GetComponent("XUISprite") as IXUISprite); + this.m_uiAdd.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnAddClicked)); + this.m_bg = (go.transform.Find("BackDrop").GetComponent("XUISprite") as IXUISprite); + this.m_bg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnBgClicked)); + } + + public void SetActive(bool bActive) + { + this.m_bActive = bActive; + this.m_Go.SetActive(bActive); + } + + public void SetMemberData(XTeamBloodUIData data) + { + this.m_MemberData = data; + this._SetBasicUI(); + } + + private void _OnAddClicked(IXUISprite iSp) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + + private void _OnBgClicked(IXUISprite iSp) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + if (!flag) + { + DlgBase.singleton.ShowTeamView(); + } + } + + private void _SetBasicUI() + { + this.m_InfoFrame.SetActive(this.m_MemberData != null); + this.m_EmptyFrame.SetActive(this.m_MemberData == null); + bool flag = this.m_MemberData != null; + if (flag) + { + this.m_uiName.SetText(this.m_MemberData.name); + int profID = XFastEnumIntEqualityComparer.ToInt(this.m_MemberData.profession); + this.m_uiAvatar.spriteName = XSingleton.singleton.GetProfIcon(profID); + this.m_uiLeader.SetActive(this.m_MemberData.bIsLeader); + bool flag2 = this.m_uiLevel != null; + if (flag2) + { + this.m_uiLevel.SetText("Lv." + this.m_MemberData.level.ToString()); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceMemberMonitor.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceMemberMonitor.cs.meta new file mode 100644 index 00000000..97750a73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceMemberMonitor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fd8175ac4e31f349a15a1cc7e384d17 +timeCreated: 1611403403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTaskHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTaskHandler.cs new file mode 100644 index 00000000..8fec09d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTaskHandler.cs @@ -0,0 +1,122 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMainInterfaceTaskHandler : DlgHandlerBase + { + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private GameObject m_Emtpy; + + private XTaskDocument doc; + + protected override void Init() + { + base.Init(); + this.m_Emtpy = base.PanelObject.transform.Find("Empty").gameObject; + this.m_ScrollView = (base.PanelObject.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (this.m_ScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.doc = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this._OnWrapInit)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnWrapUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + private void _OnWrapInit(Transform t, int index) + { + } + + private void _OnWrapUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this.doc.TaskRecord.Tasks.Count; + if (!flag) + { + XTaskInfo xtaskInfo = this.doc.TaskRecord.Tasks[index]; + TaskTableNew.RowData tableData = xtaskInfo.TableData; + IXUISprite ixuisprite = t.Find("BackDrop").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Title").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("Target").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + GameObject gameObject = ixuilabelSymbol.gameObject.transform.Find("Fx").gameObject; + GameObject gameObject2 = ixuilabelSymbol.gameObject.transform.Find("RedPoint").gameObject; + bool flag2 = tableData == null; + if (flag2) + { + ixuisprite.RegisterSpriteClickEventHandler(null); + ixuilabel.SetText(string.Empty); + ixuilabelSymbol.InputText = string.Empty; + gameObject.SetActive(false); + gameObject2.SetActive(false); + } + else + { + ixuisprite.ID = (ulong)xtaskInfo.ID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnTaskClicked)); + ixuilabel.SetText(XSingleton.singleton.StringCombine(XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("TaskTypePrefix", tableData.TaskType.ToString())), tableData.TaskTitle)); + ixuilabelSymbol.InputText = this.doc.ParseTaskDesc(tableData, xtaskInfo, true); + gameObject.SetActive(this.doc.NaviTask == xtaskInfo.ID); + gameObject2.SetActive(false); + bool flag3 = tableData.TaskType == 4u; + if (flag3) + { + gameObject2.SetActive(xtaskInfo.Status == TaskStatus.TaskStatus_CanTake || XSingleton.singleton.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildDailyTask)); + } + bool flag4 = tableData.TaskType == 7u; + if (flag4) + { + gameObject2.SetActive(xtaskInfo.Status == TaskStatus.TaskStatus_CanTake || XSingleton.singleton.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildWeeklyBountyTask)); + } + bool flag5 = tableData.TaskType == 8u; + if (flag5) + { + gameObject2.SetActive(xtaskInfo.Status != TaskStatus.TaskStatus_Finish); + } + } + } + } + + public override void RefreshData() + { + base.RefreshData(); + List tasks = this.doc.TaskRecord.Tasks; + this.m_WrapContent.SetContentCount(tasks.Count, false); + bool flag = tasks.Count == 0; + if (flag) + { + this.m_Emtpy.SetActive(true); + } + else + { + this.m_Emtpy.SetActive(false); + this.m_ScrollView.ResetPosition(); + } + } + + public void RefreshVisibleContents() + { + this.m_WrapContent.RefreshAllVisibleContents(); + } + + private void _OnTaskClicked(IXUISprite iSp) + { + this.doc.DoTask((uint)iSp.ID); + this.m_WrapContent.RefreshAllVisibleContents(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTaskHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTaskHandler.cs.meta new file mode 100644 index 00000000..9abfb20f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTaskHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54b69be014cb44e43950f3de0ebda144 +timeCreated: 1611403735 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTeamHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTeamHandler.cs new file mode 100644 index 00000000..4ef44ca1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTeamHandler.cs @@ -0,0 +1,220 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMainInterfaceTeamHandler : DlgHandlerBase + { + private GameObject m_InTeamFrame; + + private GameObject m_OutTeamFrame; + + private GameObject m_MatchingGo; + + private GameObject m_RecruitRedPoint; + + private IXUIButton m_BtnCreate; + + private IXUIButton m_BtnJoin; + + private IXUIButton m_BtnGroupChat; + + private IXUISprite m_InTeamBg; + + private int m_InTeamOriginHeight; + + private XTeamDocument _TeamDoc; + + private XUIPool m_TeamUIPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_Members = new List(); + + private List _teamList = new List(); + + private int m_MaxTeamCount; + + private int m_PreActiveCount = 0; + + protected override void Init() + { + base.Init(); + this.m_InTeamFrame = base.PanelObject.transform.Find("InTeamFrame").gameObject; + this.m_OutTeamFrame = base.PanelObject.transform.Find("OutTeamFrame").gameObject; + this.m_BtnCreate = (this.m_OutTeamFrame.transform.Find("BtnCreate").GetComponent("XUIButton") as IXUIButton); + this.m_BtnJoin = (this.m_OutTeamFrame.transform.Find("BtnJoin").GetComponent("XUIButton") as IXUIButton); + this.m_BtnGroupChat = (this.m_OutTeamFrame.transform.Find("BtnGroupChat").GetComponent("XUIButton") as IXUIButton); + this.m_MatchingGo = this.m_InTeamFrame.transform.Find("Matching").gameObject; + this.m_RecruitRedPoint = this.m_OutTeamFrame.transform.Find("BtnGroupChat/RedPoint").gameObject; + this.m_InTeamBg = (this.m_InTeamFrame.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_InTeamOriginHeight = this.m_InTeamBg.spriteHeight; + Transform transform = this.m_InTeamFrame.transform.Find("Panel/TeammateTpl"); + this.m_TeamUIPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this._TeamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + } + + public void SetupRedPoint() + { + this.m_BtnGroupChat.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GroupRecruit)); + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + this.m_RecruitRedPoint.SetActive(specificDocument.bShowMotion); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnCreate.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCreateClicked)); + this.m_BtnJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnJoinClicked)); + this.m_BtnGroupChat.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnGroupChatClicked)); + this.m_InTeamBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnBgClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.TeamInfoChange(this._TeamDoc.MyTeam); + } + + public void TeamInfoChange(XTeam team) + { + this.SetupRedPoint(); + bool flag = team == null; + if (flag) + { + this._teamList.Clear(); + this.m_MaxTeamCount = 0; + this.OnTeamInfoChanged(); + } + else + { + this.m_MaxTeamCount = team.teamBrief.totalMemberCount; + bool flag2 = team.members.Count != this._teamList.Count; + if (flag2) + { + int count = this._teamList.Count; + bool flag3 = team.members.Count < count; + if (flag3) + { + for (int i = count - 1; i >= team.members.Count; i--) + { + this._teamList.RemoveAt(i); + } + } + else + { + for (int j = count; j < team.members.Count; j++) + { + XTeamBloodUIData item = new XTeamBloodUIData(); + this._teamList.Add(item); + } + } + } + for (int k = 0; k < this._teamList.Count; k++) + { + this._teamList[k].uid = team.members[k].uid; + this._teamList[k].level = (uint)team.members[k].level; + this._teamList[k].name = team.members[k].name; + this._teamList[k].profession = team.members[k].profession; + this._teamList[k].bIsLeader = team.members[k].bIsLeader; + } + this.OnTeamInfoChanged(); + } + } + + public void OnTeamInfoChanged() + { + bool flag = this._teamList.Count == 0; + if (flag) + { + this.m_InTeamFrame.SetActive(false); + this.m_OutTeamFrame.SetActive(true); + } + else + { + this.m_InTeamFrame.SetActive(true); + this.m_OutTeamFrame.SetActive(false); + int num = 1; + bool flag2 = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + if (flag2) + { + num = 0; + } + int num2 = Math.Min(this.m_MaxTeamCount - 1, this._teamList.Count - 1 + num); + bool flag3 = this.m_Members.Count < num2; + if (flag3) + { + for (int i = this.m_Members.Count; i < num2; i++) + { + XMainInterfaceMemberMonitor xmainInterfaceMemberMonitor = new XMainInterfaceMemberMonitor(); + GameObject gameObject = this.m_TeamUIPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_TeamUIPool.TplPos.x, this.m_TeamUIPool.TplPos.y - (float)(this.m_TeamUIPool.TplHeight * i)); + xmainInterfaceMemberMonitor.SetGo(gameObject); + this.m_Members.Add(xmainInterfaceMemberMonitor); + } + } + int j = 0; + int num3 = 0; + while (num3 < this._teamList.Count && j < this.m_Members.Count) + { + bool flag4 = this._teamList[num3].uid == XSingleton.singleton.XPlayerData.RoleID; + if (!flag4) + { + this.m_Members[j].SetMemberData(this._teamList[num3]); + this.m_Members[j].SetActive(true); + j++; + } + num3++; + } + while (j < num2) + { + this.m_Members[j].SetMemberData(null); + this.m_Members[j].SetActive(true); + j++; + } + this.m_PreActiveCount = j; + while (j < this.m_Members.Count) + { + this.m_Members[j].SetActive(false); + j++; + } + this.m_InTeamBg.spriteHeight = this.m_InTeamOriginHeight + (num2 - 1) * this.m_TeamUIPool.TplHeight; + bool flag5 = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + if (flag5) + { + this.m_MatchingGo.SetActive(false); + } + else + { + this.m_MatchingGo.SetActive(this._teamList.Count < this.m_MaxTeamCount); + } + } + } + + private bool _OnGroupChatClicked(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_GroupRecruit, 0UL); + return true; + } + + private bool _OnCreateClicked(IXUIButton btn) + { + DlgBase.singleton.ShowTeamView(); + return true; + } + + private void _OnBgClicked(IXUISprite iSp) + { + DlgBase.singleton.ShowTeamView(); + } + + private bool _OnJoinClicked(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTeamHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTeamHandler.cs.meta new file mode 100644 index 00000000..2d55fcf8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainInterfaceTeamHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ceba0ad13eb6232478a5394f9af579a2 +timeCreated: 1611404579 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainSubstance.cs b/Client/Assets/Scripts/XMainClient/UI/XMainSubstance.cs new file mode 100644 index 00000000..a97c5ea9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainSubstance.cs @@ -0,0 +1,124 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class XMainSubstance + { + private XSysDefine _systemID = XSysDefine.XSys_None; + + private int _count = 0; + + private int _index; + + private XFx _xfx; + + public GameObject gameObject; + + public void Setup(GameObject go) + { + this.gameObject = go; + } + + public void SetupSubstance(XSysDefine define, int showCount, int index = 0) + { + this._systemID = define; + this._count = showCount; + this._index = index; + this.Refresh(); + } + + public void Release() + { + this.DeleteXFX(); + } + + public void Recycle() + { + this._count = 0; + this._index = 0; + this.DeleteXFX(); + this.gameObject.SetActive(false); + } + + private void Refresh() + { + this.gameObject.SetActive(true); + OpenSystemTable.RowData systemOpen = XSingleton.singleton.GetSystemOpen(this._systemID); + Transform transform = this.gameObject.transform.Find("Member"); + IXUILabel ixuilabel = this.gameObject.transform.Find("Member/Num").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = this.gameObject.transform.Find("Invatation").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = this.gameObject.transform.Find("Name").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = this.gameObject.transform.GetComponent("XUIButton") as IXUIButton; + Transform transform2 = this.gameObject.transform.Find("effect"); + bool flag = this._count > 0; + if (flag) + { + transform.gameObject.SetActive(true); + ixuilabel.SetText(this._count.ToString()); + } + else + { + transform.gameObject.SetActive(false); + } + bool flag2 = this._index < systemOpen.NoticeText.Count; + if (flag2) + { + ixuisprite2.SetSprite(systemOpen.NoticeText[this._index, 1], systemOpen.NoticeText[this._index, 0], false); + } + else + { + ixuisprite2.SetSprite(""); + } + ixuisprite2.MakePixelPerfect(); + bool flag3 = this._index < systemOpen.NoticeIcon.Count; + if (flag3) + { + ixuisprite.SetSprite(systemOpen.NoticeIcon[this._index, 1], systemOpen.NoticeIcon[this._index, 0], false); + } + else + { + ixuisprite.SetSprite(""); + } + ixuisprite.MakePixelPerfect(); + ixuibutton.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(this._systemID)); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(DlgBase.singleton.OnSysIconClicked)); + bool flag4 = systemOpen.NoticeEffect != null && systemOpen.NoticeEffect.Length != 0; + if (flag4) + { + this.CreateXFX(systemOpen.NoticeEffect[0]); + } + else + { + this.DeleteXFX(); + } + } + + private void CreateXFX(string effectStr) + { + bool flag = this._xfx != null && this._xfx.FxName != effectStr; + if (flag) + { + this.DeleteXFX(); + } + bool flag2 = this._xfx == null && !string.IsNullOrEmpty(effectStr) && this.gameObject != null; + if (flag2) + { + this._xfx = XSingleton.singleton.CreateUIFx(effectStr, this.gameObject.transform, false); + } + } + + private void DeleteXFX() + { + bool flag = this._xfx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._xfx, true); + this._xfx = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainSubstance.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMainSubstance.cs.meta new file mode 100644 index 00000000..6a9258a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainSubstance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 863404e4d5e42ad4a87f4b1bbbb2c4d5 +timeCreated: 1611404053 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainSubstanceHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XMainSubstanceHandler.cs new file mode 100644 index 00000000..b8c084c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainSubstanceHandler.cs @@ -0,0 +1,525 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class XMainSubstanceHandler : DlgHandlerBase + { + private IXUIList m_substanceList; + + private XUIPool _tempPool; + + private Stack _stack; + + private Dictionary _ShowSubStance; + + private XMainSubstance GetSubstance() + { + bool flag = this._stack == null; + if (flag) + { + this._stack = new Stack(); + } + bool flag2 = this._stack.Count == 0; + XMainSubstance result; + if (flag2) + { + result = this.CreateSubStance(); + } + else + { + result = this._stack.Pop(); + } + return result; + } + + public override void OnUnload() + { + this._tempPool = null; + bool flag = this._stack != null; + if (flag) + { + while (this._stack.Count > 0) + { + XMainSubstance xmainSubstance = this._stack.Pop(); + xmainSubstance.Release(); + } + } + bool flag2 = this._ShowSubStance != null; + if (flag2) + { + foreach (KeyValuePair keyValuePair in this._ShowSubStance) + { + keyValuePair.Value.Release(); + } + this._ShowSubStance.Clear(); + this._ShowSubStance = null; + } + base.OnUnload(); + } + + private void Release(XMainSubstance substance) + { + bool flag = substance != null; + if (flag) + { + substance.Recycle(); + this._stack.Push(substance); + } + } + + private XMainSubstance CreateSubStance() + { + XMainSubstance xmainSubstance = new XMainSubstance(); + xmainSubstance.Setup(this._tempPool.FetchGameObject(false)); + return xmainSubstance; + } + + protected override void Init() + { + base.Init(); + this._ShowSubStance = new Dictionary(); + this.m_substanceList = (base.transform.GetComponent("XUIList") as IXUIList); + Transform transform = base.transform.Find("Temp"); + this._tempPool = new XUIPool(XSingleton.singleton.m_uiTool); + this._tempPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this._ShowSubStance = new Dictionary(); + } + + public void RefreshMainSubStance(XSysDefine define, bool refreshList = true) + { + int index = 0; + int showCount = 0; + bool flag = this.TryCheckInShow(define, out index, out showCount); + if (flag) + { + XMainSubstance substance; + bool flag2 = !this._ShowSubStance.TryGetValue(define, out substance); + if (flag2) + { + substance = this.GetSubstance(); + this._ShowSubStance.Add(define, substance); + } + substance.SetupSubstance(define, showCount, index); + XSingleton.singleton.AddGreenLog("OnShow:" + define.ToString(), null, null, null, null, null); + } + else + { + XMainSubstance substance; + bool flag3 = this._ShowSubStance.TryGetValue(define, out substance); + if (flag3) + { + this.Release(substance); + this._ShowSubStance.Remove(define); + } + } + if (refreshList) + { + this.Sort(); + } + } + + public void Sort() + { + bool flag = this.m_substanceList != null; + if (flag) + { + this.m_substanceList.Refresh(); + } + } + + private bool TryCheckInShow(XSysDefine define, out int index, out int showCount) + { + showCount = 0; + index = 0; + bool flag = false; + bool flag2 = !XSingleton.singleton.IsSystemOpened(define); + bool result; + if (flag2) + { + result = flag; + } + else + { + if (define <= XSysDefine.Xsys_TaJieHelp) + { + if (define <= XSysDefine.XSys_Rank_WorldBoss) + { + if (define <= XSysDefine.XSys_PK) + { + if (define != XSysDefine.XSys_SuperRisk) + { + if (define != XSysDefine.XSys_ExcellentLive) + { + if (define == XSysDefine.XSys_PK) + { + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + flag = (specificDocument.InvitationCount > 0u); + bool flag3 = flag; + if (flag3) + { + showCount = (int)specificDocument.InvitationCount; + } + } + } + else + { + XSpectateDocument specificDocument2 = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + flag = specificDocument2.MainInterfaceState; + } + } + else + { + flag = XSuperRiskDocument.Doc.IsShowMainUiTips(); + } + } + else if (define <= XSysDefine.XSys_Pet_Pairs) + { + if (define != XSysDefine.XSys_CrossGVG) + { + if (define == XSysDefine.XSys_Pet_Pairs) + { + XPetDocument specificDocument3 = XDocuments.GetSpecificDocument(XPetDocument.uuID); + flag = specificDocument3.BeInvited; + bool flag4 = flag; + if (flag4) + { + showCount = (int)specificDocument3.BeInvitedCount; + } + } + } + else + { + XCrossGVGDocument specificDocument4 = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + flag = specificDocument4.InterfaceState; + } + } + else if (define != XSysDefine.XSys_WeekEndNest) + { + if (define == XSysDefine.XSys_Rank_WorldBoss) + { + XWorldBossDocument specificDocument5 = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + flag = specificDocument5.MainInterfaceState; + } + } + else + { + WeekEndNestDocument doc = WeekEndNestDocument.Doc; + flag = (doc.GetStatus == 1u || (doc.NeedLoginShow && doc.GetStatus == 0u)); + } + } + else if (define <= XSysDefine.XSys_Activity_WorldBoss) + { + if (define != XSysDefine.XSys_LevelSeal_Tip) + { + if (define != XSysDefine.XSys_MentorshipMsg_Tip) + { + if (define == XSysDefine.XSys_Activity_WorldBoss) + { + flag = (XSingleton.singleton.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Activity_WorldBoss) && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Activity_WorldBoss)); + } + } + else + { + flag = XMentorshipDocument.Doc.HasApplyMsg; + } + } + else + { + XLevelSealDocument specificDocument6 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint status = specificDocument6.Status; + bool flag5 = status >= 3u; + if (flag5) + { + XSingleton.singleton.AddErrorLog("LevelSealStatus Error: status = ", status.ToString(), null, null, null, null); + } + else + { + bool flag6 = status > 0u; + if (flag6) + { + flag = true; + bool flag7 = status == 1u; + if (flag7) + { + index = 0; + } + else + { + bool flag8 = status == 2u; + if (flag8) + { + index = 1; + } + } + } + } + } + } + else if (define <= XSysDefine.XSys_MulActivity_SkyArenaEnd) + { + switch (define) + { + case XSysDefine.XSys_Activity_CaptainPVP: + { + XCaptainPVPDocument specificDocument7 = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + flag = specificDocument7.MainInterfaceState; + break; + } + case XSysDefine.XSys_Activity_GoddessTrial: + case XSysDefine.XSys_Activity_TeamTowerSingle: + break; + case XSysDefine.XSys_BigMelee: + { + XBigMeleeEntranceDocument specificDocument8 = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + flag = specificDocument8.MainInterfaceState; + break; + } + case XSysDefine.XSys_BigMeleeEnd: + { + XBigMeleeEntranceDocument specificDocument9 = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + flag = specificDocument9.MainInterfaceStateEnd; + break; + } + case XSysDefine.XSys_Battlefield: + flag = XBattleFieldEntranceDocument.Doc.MainInterfaceState; + break; + default: + switch (define) + { + case XSysDefine.XSys_MulActivity_SkyArena: + { + XSkyArenaEntranceDocument specificDocument10 = XDocuments.GetSpecificDocument(XSkyArenaEntranceDocument.uuID); + flag = specificDocument10.MainInterfaceState; + break; + } + case XSysDefine.XSys_MulActivity_Race: + flag = DlgBase.singleton.MainInterfaceState; + break; + case XSysDefine.XSys_MulActivity_WeekendParty: + { + XWeekendPartyDocument specificDocument11 = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + flag = specificDocument11.MainInterfaceState; + break; + } + case XSysDefine.XSys_MulActivity_SkyArenaEnd: + flag = XSkyArenaEntranceDocument.Doc.MainInterfaceStateEnd; + break; + } + break; + } + } + else if (define != XSysDefine.XSys_Welfare_NiceGirl) + { + if (define == XSysDefine.Xsys_TaJieHelp) + { + flag = TaJieHelpDocument.Doc.ShowHallBtn; + } + } + else + { + flag = (XSingleton.singleton.IsSystemOpened(define, XSingleton.singleton.XPlayerData) && XWelfareDocument.Doc.ArgentaMainInterfaceState && !XWelfareDocument.Doc.IsNiceGirlTasksFinished()); + } + } + else if (define <= XSysDefine.XSys_GuildInherit) + { + if (define <= XSysDefine.XSys_GuildRelax_JokerMatch) + { + if (define != XSysDefine.XSys_GroupRecruitAuthorize) + { + if (define != XSysDefine.XSys_GuildRelax_VoiceQA) + { + if (define == XSysDefine.XSys_GuildRelax_JokerMatch) + { + XGuildJockerMatchDocument specificDocument12 = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + flag = specificDocument12.bAvaiableIconWhenShow; + } + } + else + { + XVoiceQADocument specificDocument13 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + flag = specificDocument13.MainInterFaceBtnState; + bool flag9 = flag; + if (flag9) + { + XVoiceQADocument specificDocument14 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + index = (int)specificDocument14.TempType; + } + } + } + else + { + GroupChatDocument specificDocument15 = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + flag = specificDocument15.bShowMotion; + } + } + else if (define <= XSysDefine.XSys_GuildQualifier) + { + if (define != XSysDefine.XSys_GuildBoon_RedPacket) + { + if (define == XSysDefine.XSys_GuildQualifier) + { + XGuildQualifierDocument specificDocument16 = XDocuments.GetSpecificDocument(XGuildQualifierDocument.uuID); + flag = specificDocument16.bHasAvailableLadderIcon; + } + } + else + { + XGuildRedPacketDocument specificDocument17 = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + flag = (specificDocument17.bHasShowIconRedPacket > 0); + bool flag10 = flag; + if (flag10) + { + showCount = specificDocument17.bHasShowIconRedPacket; + } + } + } + else if (define != XSysDefine.XSys_GuildDailyTask) + { + if (define == XSysDefine.XSys_GuildInherit) + { + XGuildInheritDocument specificDocument18 = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + flag = (specificDocument18.bHasAvailableIconShow > 0u); + bool flag11 = flag; + if (flag11) + { + showCount = (int)specificDocument18.bHasAvailableIconShow; + } + } + } + else + { + flag = XGuildDailyTaskDocument.Doc.DailyTaskBeenRefreshIcon; + } + } + else if (define <= XSysDefine.XSys_IDIP_ZeroReward) + { + if (define <= XSysDefine.XSys_Team_Invited) + { + if (define != XSysDefine.XSys_JockerKing) + { + if (define == XSysDefine.XSys_Team_Invited) + { + XTeamInviteDocument specificDocument19 = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + flag = (specificDocument19.m_InvitedCount > 0); + bool flag12 = flag; + if (flag12) + { + showCount = specificDocument19.m_InvitedCount; + } + } + } + else + { + XJokerKingDocument specificDocument20 = XDocuments.GetSpecificDocument(XJokerKingDocument.uuID); + flag = specificDocument20.bAvaiableIconWhenShow; + } + } + else if (define != XSysDefine.XSys_GuildDailyRequest) + { + if (define == XSysDefine.XSys_IDIP_ZeroReward) + { + XIDIPDocument specificDocument21 = XDocuments.GetSpecificDocument(XIDIPDocument.uuID); + flag = specificDocument21.ZeroRewardBtnState; + } + } + else + { + flag = XGuildDailyTaskDocument.Doc.DailyTaskHelpRefreshIcon; + } + } + else if (define <= XSysDefine.XSys_GuildTerritoryMessageInterface) + { + switch (define) + { + case XSysDefine.XSys_HeroBattle: + { + XHeroBattleDocument specificDocument22 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + flag = specificDocument22.MaininterfaceState; + break; + } + case XSysDefine.XSys_GuildBossMainInterface: + flag = (XSingleton.singleton.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildDragon) && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GuildDragon)); + break; + case XSysDefine.XSys_GuildMineMainInterface: + { + XGuildMineEntranceDocument specificDocument23 = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + flag = specificDocument23.MainInterfaceState; + break; + } + case XSysDefine.XSys_GuildPvpMainInterface: + flag = XSingleton.singleton.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildPvp); + break; + case XSysDefine.XSys_TeamLeague: + { + XFreeTeamVersusLeagueDocument specificDocument24 = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + flag = specificDocument24.MainInterfaceState; + break; + } + case XSysDefine.XSys_ProfessionChange: + case XSysDefine.XSys_Questionnaire: + break; + case XSysDefine.XSys_GuildMineEnd: + { + XGuildMineEntranceDocument specificDocument25 = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + flag = specificDocument25.MainInterfaceStateEnd; + break; + } + default: + switch (define) + { + case XSysDefine.XSys_GuildTerritoryIconInterface: + { + XGuildTerritoryDocument specificDocument26 = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + flag = (specificDocument26.TerritoryStyle > XGuildTerritoryDocument.GuildTerritoryStyle.NONE); + break; + } + case XSysDefine.XSys_GuildTerritoryAllianceInterface: + { + XGuildTerritoryDocument specificDocument27 = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + flag = (specificDocument27.bHavaTerritoryRecCount > 0u); + bool flag13 = flag; + if (flag13) + { + showCount = (int)specificDocument27.bHavaTerritoryRecCount; + } + break; + } + case XSysDefine.XSys_GuildTerritoryMessageInterface: + { + XGuildTerritoryDocument specificDocument28 = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + flag = specificDocument28.bHavaShowMessageIcon; + break; + } + } + break; + } + } + else if (define != XSysDefine.XSys_Exchange) + { + if (define == XSysDefine.XSys_GuildCollectMainInterface) + { + XGuildCollectDocument specificDocument29 = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + flag = specificDocument29.MainInterfaceBtnState; + } + } + else + { + XRequestDocument specificDocument30 = XDocuments.GetSpecificDocument(XRequestDocument.uuID); + flag = (specificDocument30.MainInterfaceNum != 0); + bool flag14 = flag; + if (flag14) + { + showCount = specificDocument30.MainInterfaceNum; + } + } + result = flag; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMainSubstanceHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMainSubstanceHandler.cs.meta new file mode 100644 index 00000000..c9bc6d61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMainSubstanceHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6e6290a6d1d600e4d81f01626e628126 +timeCreated: 1611403904 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationBehavior.cs new file mode 100644 index 00000000..3de55ff8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationBehavior.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XMentorshipApplicationBehavior : DlgBehaviourBase + { + public IXUIWrapContent WrapContent = null; + + public IXUIButton CloseBtn; + + public IXUIButton ClearBtn; + + public IXUIScrollView scrollView; + + public IXUIButton OneShotBtn; + + private void Awake() + { + this.WrapContent = (base.transform.Find("Bg/List/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.scrollView = (this.WrapContent.gameObject.transform.parent.GetComponent("XUIScrollView") as IXUIScrollView); + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.ClearBtn = (base.transform.Find("Bg/Clear").GetComponent("XUIButton") as IXUIButton); + this.OneShotBtn = (base.transform.Find("Bg/OneShotAccept").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationBehavior.cs.meta new file mode 100644 index 00000000..58d958d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4174c0f0bb815741a4ca87a8fe90e11 +timeCreated: 1611404736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationsView.cs b/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationsView.cs new file mode 100644 index 00000000..8489f3e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationsView.cs @@ -0,0 +1,267 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMentorshipApplicationsView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Teachermessage"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void Init() + { + this.InitProperties(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOp_Get, 0UL, MentorMsgApplyType.MentorMsgApplyMax, 0, false); + base.uiBehaviour.OneShotBtn.gameObject.SetActive(false); + } + + public void RefreshUI() + { + int beenApplyMsgCount = XMentorshipDocument.Doc.GetBeenApplyMsgCount(); + base.uiBehaviour.WrapContent.SetContentCount(beenApplyMsgCount, false); + base.uiBehaviour.scrollView.ResetPosition(); + base.uiBehaviour.OneShotBtn.gameObject.SetActive(XMentorshipDocument.Doc.GetBeenApplyReportsMsgCount() > 0); + } + + private void InitProperties() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseView)); + base.uiBehaviour.ClearBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClearNews)); + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.OnWrapContentItemInit)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentItemUpdate)); + base.uiBehaviour.OneShotBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShotAcceptReports)); + } + + private bool OnShotAcceptReports(IXUIButton button) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Agree, 0UL, MentorMsgApplyType.MentorMsgApplyReportTask, 0, true); + return true; + } + + private bool OnClearNews(IXUIButton button) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Clear, 0UL, MentorMsgApplyType.MentorMsgApplyMax, 0, false); + return true; + } + + private bool OnCloseView(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void OnWrapContentItemUpdate(Transform itemTransform, int index) + { + MentorBeenApplyedInfo beenApplyInfoByIndex = XMentorshipDocument.Doc.GetBeenApplyInfoByIndex(index); + bool flag = beenApplyInfoByIndex != null; + if (flag) + { + IXUILabel ixuilabel = itemTransform.Find("level").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(beenApplyInfoByIndex.roleInfo.level.ToString()); + IXUISprite ixuisprite = itemTransform.Find("head").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon2((int)((int)beenApplyInfoByIndex.roleInfo.type % 10)); + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(beenApplyInfoByIndex.roleInfo.roleID); + IXUISprite ixuisprite2 = itemTransform.Find("Profession").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = itemTransform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel2 = itemTransform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuisprite2.SetSprite(XSingleton.singleton.GetProfIcon((int)((int)beenApplyInfoByIndex.roleInfo.type % 10))); + bool flag2 = friendDataById != null; + if (flag2) + { + ixuilabelSymbol.InputText = XSingleton.singleton.StringCombine(XTitleDocument.GetTitleWithFormat(friendDataById.titleID, friendDataById.name), XWelfareDocument.GetMemberPrivilegeIconString(friendDataById.paymemberid), XRechargeDocument.GetVIPIconString(friendDataById.viplevel)); + } + else + { + ixuilabelSymbol.InputText = ""; + ixuilabel2.SetText(beenApplyInfoByIndex.roleInfo.name); + } + IXUILabel ixuilabel3 = itemTransform.Find("MsgType").GetComponent("XUILabel") as IXUILabel; + switch (beenApplyInfoByIndex.applyType) + { + case MentorMsgApplyType.MentorMsgApplyMaster: + ixuilabel3.SetText(XSingleton.singleton.GetString("MentorMsgApplyMaster")); + break; + case MentorMsgApplyType.MentorMsgApplyStudent: + ixuilabel3.SetText(XSingleton.singleton.GetString("MentorMsgApplyStudent")); + break; + case MentorMsgApplyType.MentorMsgApplyInherit: + ixuilabel3.SetText(XSingleton.singleton.GetString("MentorMsgApplyInherit")); + break; + case MentorMsgApplyType.MentorMsgApplyReportTask: + { + MentorTaskTable.RowData tableTaskInfoByTaskID = XMentorshipDocument.Doc.GetTableTaskInfoByTaskID((uint)beenApplyInfoByIndex.reportTaskID); + bool flag3 = tableTaskInfoByTaskID != null; + if (flag3) + { + ixuilabel3.SetText(tableTaskInfoByTaskID.TaskName); + } + else + { + ixuilabel3.SetText(XSingleton.singleton.GetString("MentorPupilToReport")); + } + break; + } + case MentorMsgApplyType.MentorMsgApplyBreak: + ixuilabel3.SetText(XSingleton.singleton.GetString("MentorMsgApplyBreak")); + break; + } + IXUIButton ixuibutton = itemTransform.Find("RefuseBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.gameObject.SetActive(beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyStudent || beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyMaster); + ixuibutton.ID = (ulong)((long)index); + IXUIButton ixuibutton2 = itemTransform.Find("AcceptBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.gameObject.SetActive(beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyStudent || beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyMaster); + ixuibutton2.ID = (ulong)((long)index); + bool flag4 = beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyInherit || beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyReportTask || beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyBreak; + Transform transform = itemTransform.Find("OneBtn"); + transform.gameObject.SetActive(flag4); + bool flag5 = flag4; + if (flag5) + { + IXUIButton ixuibutton3 = transform.GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel4 = itemTransform.Find("OneBtn/opStr").GetComponent("XUILabel") as IXUILabel; + bool flag6 = beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyReportTask; + if (flag6) + { + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickToAgreeReport)); + ixuilabel4.SetText(XSingleton.singleton.GetString("AcceptReport")); + ixuibutton3.ID = (ulong)((long)index); + } + else + { + bool flag7 = beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyInherit; + if (flag7) + { + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickToInherit)); + ixuilabel4.SetText(XSingleton.singleton.GetString("ToAccept")); + ixuibutton3.ID = (ulong)((long)index); + } + else + { + bool flag8 = beenApplyInfoByIndex.applyType == MentorMsgApplyType.MentorMsgApplyBreak; + if (flag8) + { + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickToBreak)); + ixuilabel4.SetText(XSingleton.singleton.GetString("ToConfirm")); + ixuibutton3.ID = (ulong)((long)index); + } + } + } + } + } + } + + private bool OnClickToBreak(IXUIButton button) + { + int index = (int)button.ID; + MentorBeenApplyedInfo beenApplyInfoByIndex = XMentorshipDocument.Doc.GetBeenApplyInfoByIndex(index); + bool flag = beenApplyInfoByIndex != null; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Agree, beenApplyInfoByIndex.roleInfo.roleID, beenApplyInfoByIndex.applyType, 0, false); + } + return true; + } + + private bool OnClickToInherit(IXUIButton button) + { + int index = (int)button.ID; + MentorBeenApplyedInfo beenApplyInfoByIndex = XMentorshipDocument.Doc.GetBeenApplyInfoByIndex(index); + bool flag = beenApplyInfoByIndex != null; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Agree, beenApplyInfoByIndex.roleInfo.roleID, beenApplyInfoByIndex.applyType, 0, false); + } + return true; + } + + private void OnWrapContentItemInit(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("RefuseBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefuseApply)); + IXUIButton ixuibutton2 = itemTransform.Find("AcceptBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAcceptApply)); + } + + private bool OnClickToAgreeReport(IXUIButton button) + { + int index = (int)button.ID; + MentorBeenApplyedInfo beenApplyInfoByIndex = XMentorshipDocument.Doc.GetBeenApplyInfoByIndex(index); + bool flag = beenApplyInfoByIndex != null; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Agree, beenApplyInfoByIndex.roleInfo.roleID, beenApplyInfoByIndex.applyType, beenApplyInfoByIndex.reportTaskID, false); + } + return true; + } + + private bool OnAcceptApply(IXUIButton button) + { + MentorBeenApplyedInfo beenApplyInfoByIndex = XMentorshipDocument.Doc.GetBeenApplyInfoByIndex((int)button.ID); + bool flag = beenApplyInfoByIndex != null; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Agree, beenApplyInfoByIndex.roleInfo.roleID, beenApplyInfoByIndex.applyType, 0, false); + } + return true; + } + + private bool OnRefuseApply(IXUIButton button) + { + MentorBeenApplyedInfo beenApplyInfoByIndex = XMentorshipDocument.Doc.GetBeenApplyInfoByIndex((int)button.ID); + bool flag = beenApplyInfoByIndex != null; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Reject, beenApplyInfoByIndex.roleInfo.roleID, beenApplyInfoByIndex.applyType, 0, false); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationsView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationsView.cs.meta new file mode 100644 index 00000000..81b060a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipApplicationsView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 361cbc5f8cb05ed4c962d9e5b38dbc3a +timeCreated: 1611403561 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesBehavior.cs new file mode 100644 index 00000000..1fab81fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesBehavior.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XMentorshipCandidatesBehavior : DlgBehaviourBase + { + public IXUIWrapContent WrapContent = null; + + public IXUIScrollView ScrollView = null; + + public IXUIButton ClearBtn; + + public IXUIButton CloseBtn; + + public IXUILabel titleContent; + + public IXUILabel btnContent; + + private void Awake() + { + this.WrapContent = (base.transform.Find("Bg/List/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.ScrollView = (this.WrapContent.gameObject.transform.parent.GetComponent("XUIScrollView") as IXUIScrollView); + this.ClearBtn = (base.transform.Find("Bg/ClearOrSwap").GetComponent("XUIButton") as IXUIButton); + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.titleContent = (base.transform.Find("Bg/Title/content").GetComponent("XUILabel") as IXUILabel); + this.btnContent = (base.transform.Find("Bg/ClearOrSwap/Type").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesBehavior.cs.meta new file mode 100644 index 00000000..08586a14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 86ab2de60a740234cac4188a84926daa +timeCreated: 1611404055 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesView.cs b/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesView.cs new file mode 100644 index 00000000..c0f026aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesView.cs @@ -0,0 +1,311 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMentorshipCandidatesView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TeacherPupilInvitation"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void Init() + { + this.InitProperties(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshTitleAndDownBtn(); + bool flag = XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Application; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOp_Get, 0UL, MentorMsgApplyType.MentorMsgApplyMax, 0, false); + } + else + { + bool flag2 = XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Recommend; + if (flag2) + { + bool flag3 = XMentorshipDocument.Doc.CurRecommendType == CandidatesViewRecommendType.Master; + if (flag3) + { + XMentorshipDocument.Doc.SendToGetMyApplyMasterInfo(false); + } + else + { + XMentorshipDocument.Doc.SendToGetMyApplyPupilsInfo(false); + } + } + } + } + + private void RefreshTitleAndDownBtn() + { + bool flag = XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Application; + if (flag) + { + base.uiBehaviour.titleContent.SetText(XSingleton.singleton.GetString("MentorshipApply")); + base.uiBehaviour.btnContent.SetText(XSingleton.singleton.GetString("MentorshipClear")); + } + else + { + bool flag2 = XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Recommend; + if (flag2) + { + base.uiBehaviour.titleContent.SetText(XSingleton.singleton.GetString("MentorshipRecommend")); + base.uiBehaviour.btnContent.SetText(XSingleton.singleton.GetString("FRIEND_ADDDLG_NO_COUNTDOWN")); + } + } + base.uiBehaviour.ClearBtn.SetEnable(true, false); + base.uiBehaviour.btnContent.SetText(XStringDefineProxy.GetString("FRIEND_ADDDLG_NO_COUNTDOWN")); + } + + protected override void OnHide() + { + base.OnHide(); + XMentorshipDocument.Doc.ResetCandidatesView(); + } + + public void RefreshUI() + { + int canidatesShowMsgCount = XMentorshipDocument.Doc.GetCanidatesShowMsgCount(); + base.uiBehaviour.WrapContent.SetContentCount(canidatesShowMsgCount, false); + base.uiBehaviour.ScrollView.ResetPosition(); + } + + public void RefreshAllVisible() + { + base.uiBehaviour.WrapContent.RefreshAllVisibleContents(); + } + + public void RefreshCDTimeLabel(int leftTime) + { + bool flag = leftTime > 0; + if (flag) + { + base.uiBehaviour.ClearBtn.SetEnable(false, false); + base.uiBehaviour.btnContent.SetText(string.Format(XStringDefineProxy.GetString("FRIEND_ADDDLG_COUNTDOWN_FMT"), leftTime)); + } + else + { + base.uiBehaviour.ClearBtn.SetEnable(true, false); + base.uiBehaviour.btnContent.SetText(XStringDefineProxy.GetString("FRIEND_ADDDLG_NO_COUNTDOWN")); + } + } + + private void InitProperties() + { + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDialog)); + base.uiBehaviour.ClearBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClearNews)); + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.OnWrapContentItemInit)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentItemUpdate)); + } + + private bool OnClearNews(IXUIButton button) + { + bool flag = XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Application; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Clear, 0UL, MentorMsgApplyType.MentorMsgApplyMax, 0, false); + } + else + { + bool flag2 = XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Recommend; + if (flag2) + { + bool flag3 = XMentorshipDocument.Doc.CurRecommendType == CandidatesViewRecommendType.Master; + if (flag3) + { + XMentorshipDocument.Doc.SendToGetMyApplyMasterInfo(true); + } + else + { + XMentorshipDocument.Doc.SendToGetMyApplyPupilsInfo(true); + } + } + } + return true; + } + + private bool OnCloseDialog(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void OnWrapContentItemUpdate(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("Accept").GetComponent("XUIButton") as IXUIButton; + ixuibutton.gameObject.SetActive(XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Application); + IXUIButton ixuibutton2 = itemTransform.Find("Refuse").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.gameObject.SetActive(XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Application); + IXUIButton ixuibutton3 = itemTransform.Find("Mentorship").GetComponent("XUIButton") as IXUIButton; + ixuibutton3.gameObject.SetActive(XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Recommend); + MessageShowInfoItem candidateMsgShowInfo = XMentorshipDocument.Doc.GetCandidateMsgShowInfo(index); + bool flag = candidateMsgShowInfo != null; + if (flag) + { + IXUILabel ixuilabel = itemTransform.Find("level").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(candidateMsgShowInfo.roleInfo.level.ToString()); + uint titleID = (candidateMsgShowInfo.roleInfo.outlook != null && candidateMsgShowInfo.roleInfo.outlook.title != null) ? candidateMsgShowInfo.roleInfo.outlook.title.titleID : 0u; + IXUILabelSymbol ixuilabelSymbol = itemTransform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = XTitleDocument.GetTitleWithFormat(titleID, candidateMsgShowInfo.roleInfo.name); + IXUISprite ixuisprite = itemTransform.Find("head").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon2((int)((int)candidateMsgShowInfo.roleInfo.type % 10)); + IXUISprite ixuisprite2 = itemTransform.Find("Profession").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteName = XSingleton.singleton.GetProfIcon((int)((int)candidateMsgShowInfo.roleInfo.type % 10)); + IXUILabel ixuilabel2 = itemTransform.Find("PromiseWords").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(candidateMsgShowInfo.promiseWords); + IXUILabel ixuilabel3 = itemTransform.Find("Mentorship/T").GetComponent("XUILabel") as IXUILabel; + bool flag2 = XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Application; + if (flag2) + { + ixuibutton.ID = (ulong)((long)index); + ixuibutton2.ID = (ulong)((long)index); + } + else + { + ixuibutton3.ID = candidateMsgShowInfo.roleInfo.roleID; + bool applied = candidateMsgShowInfo.applied; + if (applied) + { + ixuibutton3.SetEnable(false, false); + ixuilabel3.SetText(XSingleton.singleton.GetString("CHAT_SENT")); + } + else + { + ixuibutton3.SetEnable(true, false); + bool flag3 = XMentorshipDocument.Doc.CurRecommendType == CandidatesViewRecommendType.Master; + if (flag3) + { + ixuilabel3.SetText(XSingleton.singleton.GetString("MentorshipMaster")); + } + else + { + ixuilabel3.SetText(XSingleton.singleton.GetString("MentorshipPupil")); + } + } + } + } + } + + private void OnStartPlayAudio(IXUISprite uiSprite) + { + } + + private void OnStopSignPlay(object ob) + { + IXUISpriteAnimation ixuispriteAnimation = (IXUISpriteAnimation)ob; + bool flag = ixuispriteAnimation != null; + if (flag) + { + ixuispriteAnimation.SetFrameRate(0); + ixuispriteAnimation.Reset(); + } + } + + private void UpdateOpBtnState(Transform itemTransform) + { + IXUIButton ixuibutton = itemTransform.Find("Accept").GetComponent("XUIButton") as IXUIButton; + ixuibutton.gameObject.SetActive(XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Application); + IXUIButton ixuibutton2 = itemTransform.Find("Refuse").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.gameObject.SetActive(XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Application); + IXUIButton ixuibutton3 = itemTransform.Find("Mentorship").GetComponent("XUIButton") as IXUIButton; + ixuibutton3.gameObject.SetActive(XMentorshipDocument.Doc.CurViewType == CandidatesViewType.Recommend); + } + + private void OnPlayPromiseVoice(IXUISprite uiSprite) + { + } + + private void OnWrapContentItemInit(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("Accept").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAcceptCandidate)); + IXUIButton ixuibutton2 = itemTransform.Find("Refuse").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRefuseCandidate)); + IXUIButton ixuibutton3 = itemTransform.Find("Mentorship").GetComponent("XUIButton") as IXUIButton; + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMentorshipClicked)); + } + + private bool OnMentorshipClicked(IXUIButton button) + { + bool flag = XMentorshipDocument.Doc.CurRecommendType == CandidatesViewRecommendType.Master; + if (flag) + { + XMentorshipDocument.Doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_ApplyMaster, button.ID, 0); + } + else + { + XMentorshipDocument.Doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_ApplyStudent, button.ID, 0); + } + return true; + } + + private bool OnClickRefuseCandidate(IXUIButton button) + { + MessageShowInfoItem candidateMsgShowInfo = XMentorshipDocument.Doc.GetCandidateMsgShowInfo((int)button.ID); + bool flag = candidateMsgShowInfo != null; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Reject, candidateMsgShowInfo.roleInfo.roleID, candidateMsgShowInfo.msgType, 0, false); + } + return true; + } + + private bool OnClickAcceptCandidate(IXUIButton button) + { + MessageShowInfoItem candidateMsgShowInfo = XMentorshipDocument.Doc.GetCandidateMsgShowInfo((int)button.ID); + bool flag = candidateMsgShowInfo != null; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Agree, candidateMsgShowInfo.roleInfo.roleID, candidateMsgShowInfo.msgType, 0, false); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesView.cs.meta new file mode 100644 index 00000000..1b5b5df7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipCandidatesView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4d23467f19b48f42b4d1a16932eabed +timeCreated: 1611404740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipPupilsDramaOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XMentorshipPupilsDramaOperate.cs new file mode 100644 index 00000000..288f7024 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipPupilsDramaOperate.cs @@ -0,0 +1,391 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XMentorshipPupilsDramaOperate : XDramaOperate + { + private ulong m_SelectedRoleID = 0UL; + + private string m_SelectedRoleName = null; + + private XDramaOperateParam _param; + + private XMentorshipDocument doc; + + public override void ShowNpc(XNpc npc) + { + base.ShowNpc(npc); + this.doc = XDocuments.GetSpecificDocument(XMentorshipDocument.uuID); + this._param = XDataPool.GetData(); + this._param.Npc = npc; + XMentorshipDocument.Doc.SendMentorshipInfoReq(); + } + + public void RefreshOperateStatus() + { + switch (this.doc.GetMyMentorShip()) + { + case MyMentorship.None: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_None"); + this._param.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_FindMaster"), new ButtonClickEventHandler(this._FindMaster), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_FindPupil"), new ButtonClickEventHandler(this._FindPupil), 0UL); + break; + case MyMentorship.Mentorship_Pupil: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_ProcessRelation"), new ButtonClickEventHandler(this._ProcessRelation), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_SelectForceComplete"), new ButtonClickEventHandler(this._SelectForceComplete), 0UL); + break; + case MyMentorship.Mentorship_Master: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Master"); + this._param.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_ProcessRelation"), new ButtonClickEventHandler(this._ProcessRelation), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_SelectComplete"), new ButtonClickEventHandler(this._SelectComplete), 0UL); + break; + } + base._FireEvent(this._param); + } + + private bool _FindMaster(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Mentorship, 0UL); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool _FindPupil(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Mentorship, 0UL); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private int _GetBreakTargetTime(uint breakTime) + { + int @int = XSingleton.singleton.GetInt("MentorBreakConfirmTime"); + return @int + (int)breakTime - this.doc.ReceiveingProtocolTime - (int)Time.time; + } + + private bool _ProcessRelation(IXUIButton btn) + { + XDramaOperateParam data = XDataPool.GetData(); + data.Text = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MentorshipNpcDialog_ProcessRelation")); + int num = int.MaxValue; + int relationTargetsCount = this.doc.GetRelationTargetsCount(); + int num2 = 0; + for (int i = 0; i < relationTargetsCount; i++) + { + MentorRelationInfo relationTargetInfo = this.doc.GetRelationTargetInfo(i); + for (int j = 0; j < relationTargetInfo.statusTimeList.Count; j++) + { + MentorRelationTime mentorRelationTime = relationTargetInfo.statusTimeList[j]; + bool flag = mentorRelationTime.status == MentorRelationStatus.MentorRelationBreakApply; + if (flag) + { + int num3 = this._GetBreakTargetTime(mentorRelationTime.time); + bool flag2 = num3 > 0; + if (flag2) + { + num = Math.Min(num3, num); + bool flag3 = relationTargetInfo.breakApplyRoleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + num2++; + } + } + break; + } + } + } + XDramaOperateButton xdramaOperateButton = data.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_SelectBreak"), new ButtonClickEventHandler(this._SelectBreak), 0UL); + xdramaOperateButton.StateEnable = (num2 < relationTargetsCount); + XDramaOperateButton xdramaOperateButton2 = data.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_SelectBreakCancel"), new ButtonClickEventHandler(this._SelectBreakCancel), 0UL); + bool flag4 = num != int.MaxValue; + if (flag4) + { + xdramaOperateButton2.TargetTime = (float)num + Time.realtimeSinceStartup; + xdramaOperateButton2.TimeNote = XSingleton.singleton.GetString("MentorshipBreaking"); + } + xdramaOperateButton2.StateEnable = (num2 != 0); + base._FireEvent(data); + return true; + } + + private bool _SelectComplete(IXUIButton btn) + { + XDramaOperateParam data = XDataPool.GetData(); + data.Text = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MentorshipNpcDialog_SelectComplete")); + data.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_SelectNormalComplete"), new ButtonClickEventHandler(this._SelectNormalComplete), 0UL); + data.AppendButton(XStringDefineProxy.GetString("MentorshipNpcButton_SelectForceComplete"), new ButtonClickEventHandler(this._SelectForceComplete), 0UL); + base._FireEvent(data); + return true; + } + + private void _CreateSelection(string noneText, string pupilText, string masterText, SpriteClickEventHandler handler, MentorRelationStatus status = MentorRelationStatus.MentorRelationMax) + { + MyMentorship myMentorShip = this.doc.GetMyMentorShip(); + XDramaOperateParam data = XDataPool.GetData(); + int relationTargetsCount = this.doc.GetRelationTargetsCount(); + bool flag = relationTargetsCount == 0 || myMentorShip == MyMentorship.None; + if (flag) + { + data.Text = noneText; + } + else + { + data.Text = ((myMentorShip == MyMentorship.Mentorship_Pupil) ? pupilText : masterText); + for (int i = 0; i < relationTargetsCount; i++) + { + MentorRelationInfo relationTargetInfo = this.doc.GetRelationTargetInfo(i); + bool flag2 = status == MentorRelationStatus.MentorRelationMax; + if (flag2) + { + data.AppendList(relationTargetInfo.roleInfo.name, handler, relationTargetInfo.roleInfo.roleID); + } + else + { + int num = 0; + for (int j = 0; j < relationTargetInfo.statusTimeList.Count; j++) + { + MentorRelationTime mentorRelationTime = relationTargetInfo.statusTimeList[j]; + bool flag3 = mentorRelationTime.status == MentorRelationStatus.MentorRelationBreakApply; + if (flag3) + { + num = this._GetBreakTargetTime(mentorRelationTime.time); + bool flag4 = num > 0; + if (flag4) + { + break; + } + } + } + bool flag5 = num > 0; + if (flag5) + { + bool flag6 = status == MentorRelationStatus.MentorRelationBreakApply && relationTargetInfo.breakApplyRoleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag6) + { + XDramaOperateList xdramaOperateList = data.AppendList(relationTargetInfo.roleInfo.name, handler, relationTargetInfo.roleInfo.roleID); + xdramaOperateList.TargetTime = (float)num + Time.realtimeSinceStartup; + } + } + else + { + bool flag7 = status == MentorRelationStatus.MentorRelationBreak; + if (flag7) + { + XDramaOperateList xdramaOperateList2 = data.AppendList(relationTargetInfo.roleInfo.name, handler, relationTargetInfo.roleInfo.roleID); + xdramaOperateList2.TimeNote = XStringDefineProxy.GetString("MentorshipBreaking"); + } + } + } + } + } + base._FireEvent(data); + } + + private bool _SelectForceComplete(IXUIButton btn) + { + this._CreateSelection(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MentorshipNpcDialog_NoRelation")), XStringDefineProxy.GetString("MentorshipNpcDialog_SelectForceCompletePupil"), XStringDefineProxy.GetString("MentorshipNpcDialog_SelectForceCompleteMaster"), new SpriteClickEventHandler(this._ForceComplete), MentorRelationStatus.MentorRelationMax); + return true; + } + + private bool _SelectNormalComplete(IXUIButton btn) + { + this._CreateSelection(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MentorshipNpcDialog_NoRelation")), XStringDefineProxy.GetString("MentorshipNpcDialog_SelectNormalCompletePupil"), XStringDefineProxy.GetString("MentorshipNpcDialog_SelectNormalCompleteMaster"), new SpriteClickEventHandler(this._NormalComplete), MentorRelationStatus.MentorRelationMax); + return true; + } + + private bool _SelectBreak(IXUIButton btn) + { + this._CreateSelection(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MentorshipNpcDialog_NoRelation")), XStringDefineProxy.GetString("MentorshipNpcDialog_SelectBreakPupil"), XStringDefineProxy.GetString("MentorshipNpcDialog_SelectBreakMaster"), new SpriteClickEventHandler(this._Break), MentorRelationStatus.MentorRelationBreak); + return true; + } + + private bool _SelectBreakCancel(IXUIButton btn) + { + this._CreateSelection(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MentorshipNpcDialog_NoBreakingRelation")), XStringDefineProxy.GetString("MentorshipNpcDialog_SelectBreakCancelPupil"), XStringDefineProxy.GetString("MentorshipNpcDialog_SelectBreakCancelMaster"), new SpriteClickEventHandler(this._BreakCancel), MentorRelationStatus.MentorRelationBreakApply); + return true; + } + + private void _GetSelectedRole(IXUISprite iSp) + { + this.m_SelectedRoleID = 0UL; + this.m_SelectedRoleName = string.Empty; + bool flag = iSp != null; + if (flag) + { + MentorRelationInfo relationTargetInfoByRoleID = this.doc.GetRelationTargetInfoByRoleID(iSp.ID); + bool flag2 = relationTargetInfoByRoleID != null; + if (flag2) + { + this.m_SelectedRoleID = relationTargetInfoByRoleID.roleInfo.roleID; + this.m_SelectedRoleName = relationTargetInfoByRoleID.roleInfo.name; + } + } + } + + private void _Break(IXUISprite iSp) + { + this._GetSelectedRole(iSp); + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("MentorshipBreakConfirm", new object[] + { + this.m_SelectedRoleName + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._DoBreak)); + } + + private bool _DoBreak(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this.doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_Break, this.m_SelectedRoleID, 0); + return true; + } + + private void _OnBreak(MentorRelationOpRes oRes) + { + XDramaOperateParam data = XDataPool.GetData(); + ErrorCode error = oRes.error; + if (error != ErrorCode.ERR_SUCCESS) + { + data.Text = XStringDefineProxy.GetString(oRes.error); + } + else + { + data.Text = XStringDefineProxy.GetString("MentorshipBreakSuccess"); + } + base._FireEvent(data); + } + + private void _BreakCancel(IXUISprite iSp) + { + this._GetSelectedRole(iSp); + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("MentorshipBreakCancelConfirm", new object[] + { + this.m_SelectedRoleName + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._DoBreakCancel)); + } + + private bool _DoBreakCancel(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this.doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_BreakCancel, this.m_SelectedRoleID, 0); + return true; + } + + private void _OnBreakCancel(MentorRelationOpRes oRes) + { + XDramaOperateParam data = XDataPool.GetData(); + ErrorCode error = oRes.error; + if (error != ErrorCode.ERR_SUCCESS) + { + data.Text = XStringDefineProxy.GetString(oRes.error); + } + else + { + data.Text = XStringDefineProxy.GetString("MentorshipBreakCancelSuccess"); + } + base._FireEvent(data); + } + + private void _PlayCompleteFx() + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_yh", XSingleton.singleton.UIRoot.transform, Vector3.zero, Vector3.one, 1f, false, 8f, true); + } + + private void _ForceComplete(IXUISprite iSp) + { + this._GetSelectedRole(iSp); + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("MentorshipForceCompleteConfirm", new object[] + { + this.m_SelectedRoleName + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._DoForceComplete)); + } + + private bool _DoForceComplete(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = XMentorshipDocument.Doc.IsMentorshipInDaysEnough(this.m_SelectedRoleID) && XMentorshipDocument.Doc.IsCompletedTaskEnough(this.m_SelectedRoleID); + if (flag) + { + this.doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_ForceComplete, this.m_SelectedRoleID, 0); + } + return true; + } + + private void _OnForceComplete(MentorRelationOpRes oRes) + { + XDramaOperateParam data = XDataPool.GetData(); + ErrorCode error = oRes.error; + if (error != ErrorCode.ERR_SUCCESS) + { + data.Text = XStringDefineProxy.GetString(oRes.error); + } + else + { + data.Text = XStringDefineProxy.GetString("MentorshipForceCompleteSuccess"); + this._PlayCompleteFx(); + XMentorshipDocument.Doc.SendMentorshipInfoReq(); + } + base._FireEvent(data); + } + + private void _NormalComplete(IXUISprite iSp) + { + this._GetSelectedRole(iSp); + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("MentorshipNormalCompleteConfirm", new object[] + { + this.m_SelectedRoleName + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._DoNormalComplete)); + } + + private bool _DoNormalComplete(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = XMentorshipDocument.Doc.IsMentorshipInDaysEnough(this.m_SelectedRoleID) && XMentorshipDocument.Doc.IsCompletedTaskEnough(this.m_SelectedRoleID); + if (flag) + { + this.doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_NormalComplete, this.m_SelectedRoleID, 0); + } + return true; + } + + private void _OnNormalComplete(MentorRelationOpRes oRes) + { + XDramaOperateParam data = XDataPool.GetData(); + ErrorCode error = oRes.error; + if (error != ErrorCode.ERR_SUCCESS) + { + data.Text = XStringDefineProxy.GetString(oRes.error); + } + else + { + data.Text = XStringDefineProxy.GetString("MentorshipNormalCompleteSuccess"); + this._PlayCompleteFx(); + XMentorshipDocument.Doc.SendMentorshipInfoReq(); + } + base._FireEvent(data); + } + + public void OnMentorRelationOp(MentorRelationOpArg oArg, MentorRelationOpRes oRes) + { + switch (oArg.operation) + { + case MentorRelationOpType.MentorRelationOp_Break: + this._OnBreak(oRes); + break; + case MentorRelationOpType.MentorRelationOp_BreakCancel: + this._OnBreakCancel(oRes); + break; + case MentorRelationOpType.MentorRelationOp_NormalComplete: + this._OnNormalComplete(oRes); + break; + case MentorRelationOpType.MentorRelationOp_ForceComplete: + this._OnForceComplete(oRes); + break; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XMentorshipPupilsDramaOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XMentorshipPupilsDramaOperate.cs.meta new file mode 100644 index 00000000..a9802b6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XMentorshipPupilsDramaOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eca109298134fdc43b0408b59da862f2 +timeCreated: 1611404788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs new file mode 100644 index 00000000..e984a64a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs @@ -0,0 +1,56 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XNPCFavorBehaviour : DlgBehaviourBase + { + public Transform m_effect; + + public IXUIButton m_Help; + + public IXUIButton m_Close; + + public Transform m_handlersTra; + + public IXUILabel m_SendTimesLabel; + + public IXUIButton m_AddBtn; + + public IXUISprite m_PrivilegeSpr; + + public IXUISprite m_SendTimesBtn; + + public IXUICheckBox m_Tab0; + + public IXUICheckBox m_Tab1; + + public IXUICheckBox m_Tab2; + + public GameObject m_Tab0_Redpoint; + + public GameObject m_Tab1_Redpoint; + + public GameObject m_Tab2_Redpoint; + + private void Awake() + { + this.m_effect = base.transform.Find("Effect"); + this.m_Help = (base.transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_handlersTra = base.transform.Find("Handler"); + this.m_SendTimesLabel = (base.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_AddBtn = (base.transform.Find("Time/Add").GetComponent("XUIButton") as IXUIButton); + this.m_SendTimesBtn = (base.transform.Find("Time/tq/p").GetComponent("XUISprite") as IXUISprite); + this.m_PrivilegeSpr = (base.transform.Find("Time/tq").GetComponent("XUISprite") as IXUISprite); + this.m_Tab0 = (base.transform.Find("Tabs/TabTpl0/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Tab1 = (base.transform.Find("Tabs/TabTpl1/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Tab2 = (base.transform.Find("Tabs/TabTpl2/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Tab0_Redpoint = base.transform.Find("Tabs/TabTpl0/Bg/RedPoint").gameObject; + this.m_Tab1_Redpoint = base.transform.Find("Tabs/TabTpl1/Bg/RedPoint").gameObject; + this.m_Tab2_Redpoint = base.transform.Find("Tabs/TabTpl2/Bg/RedPoint").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs.meta new file mode 100644 index 00000000..688a1789 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6db6dfa3246f6f84985c8c5e6dce844e +timeCreated: 1611403903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs new file mode 100644 index 00000000..55a6b272 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs @@ -0,0 +1,317 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNPCFavorDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/NpcBlessing/NpcBlessingDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_NPCFavor); + } + } + + public override bool fullscreenui + { + get + { + return false; + } + } + + private XNPCFavorDocument m_doc; + + private XNPCFavorDlg.TabIndex m_CurrentTabIndex = XNPCFavorDlg.TabIndex.Relics; + + private XNPCFavorHandler m_favorHandler = null; + + private XNPCUnionHandler m_unionHandler = null; + + private XNpcAttrHandler m_attrHandler = null; + + private XFx uiFx = null; + + private const string FX_HasNewActiveNPC = "Effects/FX_Particle/UIfx/UI_swjs_Clip01"; + + public enum TabIndex + { + Relics, + Union, + Addition + } + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this.m_doc.View = this; + this.m_uiBehaviour.m_Tab0.ID = 0UL; + this.m_uiBehaviour.m_Tab0.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickTab)); + this.m_uiBehaviour.m_Tab1.ID = 1UL; + this.m_uiBehaviour.m_Tab1.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickTab)); + this.m_uiBehaviour.m_Tab2.ID = 2UL; + this.m_uiBehaviour.m_Tab2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickTab)); + DlgHandlerBase.EnsureCreate(ref this.m_favorHandler, this.m_uiBehaviour.m_handlersTra, false, this); + DlgHandlerBase.EnsureCreate(ref this.m_unionHandler, this.m_uiBehaviour.m_handlersTra, false, this); + DlgHandlerBase.EnsureCreate(ref this.m_attrHandler, this.m_uiBehaviour.m_handlersTra, false, this); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_doc.ReqNPCFavorUnionInfo(); + this.RefreshData(); + this.CheckPlayFx(); + this.m_uiBehaviour.m_Tab0.ForceSetFlag(true); + this._ApplyTabData(this.m_CurrentTabIndex); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickHelp)); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_AddBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAddBtn)); + base.uiBehaviour.m_SendTimesBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickSendTimes)); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_favorHandler); + DlgHandlerBase.EnsureUnload(ref this.m_unionHandler); + DlgHandlerBase.EnsureUnload(ref this.m_attrHandler); + bool flag = this.m_doc != null; + if (flag) + { + this.m_doc.View = null; + } + base.OnUnload(); + } + + protected override void OnHide() + { + bool flag = this.m_doc != null; + if (flag) + { + this.m_doc.RemoveAllNewTags(); + } + base.OnHide(); + } + + private void CheckPlayFx() + { + bool hasNewNpcActive = this.m_doc.HasNewNpcActive; + if (hasNewNpcActive) + { + bool flag = this.uiFx == null; + if (flag) + { + this.uiFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_swjs_Clip01", base.uiBehaviour.m_effect, false); + } + this.uiFx.Play(); + } + } + + public void Close(bool bWithAnim = true) + { + if (bWithAnim) + { + this.SetVisibleWithAnimation(false, null); + } + else + { + this.SetVisible(false, true); + } + bool flag = this.uiFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.uiFx, true); + } + this.uiFx = null; + } + + protected bool OnCloseClick(IXUIButton go) + { + this.Close(true); + return true; + } + + protected bool OnClickHelp(IXUIButton go) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_NPCFavor); + return true; + } + + protected bool OnClickAddBtn(IXUIButton go) + { + this.ShowPurchase(); + return true; + } + + protected void OnClickSendTimes(IXUISprite go) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("NPCPrivilegeHint"), new ButtonClickEventHandler(this.OnClickConfirm)); + } + + private bool OnClickConfirm(IXUIButton button) + { + DlgBase.singleton.SetVisible(false, true); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = !specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + if (flag) + { + this.Close(true); + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Welfare_KingdomPrivilege, 0UL); + } + return true; + } + + private bool OnClickTab(IXUICheckBox cbx) + { + bool bChecked = cbx.bChecked; + if (bChecked) + { + this.m_CurrentTabIndex = (XNPCFavorDlg.TabIndex)cbx.ID; + this._ApplyTabData(this.m_CurrentTabIndex); + } + return true; + } + + private void _ApplyTabData(XNPCFavorDlg.TabIndex tab) + { + bool flag = base.IsVisible(); + bool flag2 = flag; + if (flag2) + { + switch (this.m_CurrentTabIndex) + { + case XNPCFavorDlg.TabIndex.Relics: + this.m_favorHandler.SetVisible(true); + this.m_unionHandler.SetVisible(false); + this.m_attrHandler.SetVisible(false); + break; + case XNPCFavorDlg.TabIndex.Union: + this.m_favorHandler.SetVisible(false); + this.m_unionHandler.SetVisible(true); + this.m_attrHandler.SetVisible(false); + break; + case XNPCFavorDlg.TabIndex.Addition: + this.m_favorHandler.SetVisible(false); + this.m_unionHandler.SetVisible(false); + this.m_attrHandler.SetVisible(true); + break; + } + } + } + + public void RefreshData() + { + this.RefreshRedPoint(); + this.RefreshPrivilege(); + this.RefreshGiftTimesInfo(); + bool flag = this.m_favorHandler.IsVisible(); + if (flag) + { + this.m_favorHandler.RefreshData(); + } + bool flag2 = this.m_unionHandler.IsVisible(); + if (flag2) + { + this.m_unionHandler.RefreshData(); + } + bool flag3 = this.m_attrHandler.IsVisible(); + if (flag3) + { + this.m_attrHandler.RefreshData(); + } + } + + public void RefreshPrivilege() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.m_uiBehaviour.m_PrivilegeSpr.SetColor(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court) ? Color.white : Color.black); + } + + public void RefreshGiftTimesInfo() + { + base.uiBehaviour.m_SendTimesLabel.SetText(this.m_doc.GiveLeftCount.ToString()); + } + + public void RefreshRedPoint() + { + this.m_uiBehaviour.m_Tab0_Redpoint.SetActive(this.m_doc.HasNewNpcActive || this.m_doc.HasCanLevelUpNpc); + this.m_uiBehaviour.m_Tab1_Redpoint.SetActive(this.m_doc.HasNewUnionActive); + this.m_uiBehaviour.m_Tab2_Redpoint.SetActive(false); + } + + public void SetTabRedpoint(XNPCFavorDlg.TabIndex tabIndex, bool flag) + { + switch (tabIndex) + { + case XNPCFavorDlg.TabIndex.Relics: + this.m_uiBehaviour.m_Tab0_Redpoint.SetActive(flag); + break; + case XNPCFavorDlg.TabIndex.Union: + this.m_uiBehaviour.m_Tab1_Redpoint.SetActive(flag); + break; + case XNPCFavorDlg.TabIndex.Addition: + this.m_uiBehaviour.m_Tab2_Redpoint.SetActive(flag); + break; + } + } + + public void SkipToNpc(uint npcId) + { + this.m_uiBehaviour.m_Tab0.ForceSetFlag(true); + this.m_CurrentTabIndex = XNPCFavorDlg.TabIndex.Relics; + this._ApplyTabData(this.m_CurrentTabIndex); + bool flag = this.m_favorHandler.IsVisible(); + if (flag) + { + this.m_favorHandler.SkipToNpc(npcId); + } + } + + public void ShowPurchase() + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("NPCBuyCountHintTitle"), XStringDefineProxy.GetReplaceString("NPCBuyCountHint", new object[] + { + XLabelSymbolHelper.FormatCostWithIcon((int)this.m_doc.BuyCost, ItemEnum.DRAGON_COIN), + this.m_doc.BuyLeftCount.ToString() + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.ConfirmBuyGiftCount), new ButtonClickEventHandler(this.CancelBuy), false, XTempTipDefine.OD_START, 50); + } + + private bool ConfirmBuyGiftCount(IXUIButton btn) + { + bool flag = this.m_doc.BuyLeftCount <= 0u; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCHasNoBuyCount"), "fece00"); + } + else + { + this.m_doc.ReqSrvBuyGiftCount(); + } + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool CancelBuy(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs.meta new file mode 100644 index 00000000..c1204c40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd5dbef63bebe254b9253d40279a4fb4 +timeCreated: 1611404451 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDrama.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDrama.cs new file mode 100644 index 00000000..6f11088f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDrama.cs @@ -0,0 +1,190 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNPCFavorDrama + { + private XFavorParam _param; + + private XNPCFavorDocument doc; + + private uint npcId = 0u; + + public bool BDeprecated = true; + + public void ShowNpc(XNpc npc) + { + DlgBase.singleton.SetVisible(true, true); + this.doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this._param = XDataPool.GetData(); + this._param.Npc = npc; + this.npcId = npc.TypeID; + XNPCFavorDocument.ShowNPCDrama(npc.TypeID); + } + + public uint GetXNpcId() + { + return this.npcId; + } + + public void RefreshOperateStatus(bool isfirst = false, string text = null) + { + bool flag = this._param == null; + if (!flag) + { + EFavorState state = this.doc.GetState(this.GetXNpcId()); + bool bRecycled = this._param.bRecycled; + if (bRecycled) + { + this._param = XDataPool.GetData(); + } + switch (state) + { + case EFavorState.CanSend: + this._param.Text = ((text == null) ? this.GetRandomGiveWords() : text); + this._param.isShowSend = !this.IsSendDialogOpen(); + this._param.isShowExchange = false; + this._param.sendCallback = new ButtonClickEventHandler(this.ToSend); + break; + case EFavorState.SendWithExchange: + case EFavorState.Exchange: + this._param.Text = ((text == null) ? this.GetRandomGiveWords() : text); + this._param.isShowSend = (!this.IsSendDialogOpen() && !this.IsChangeDialogOpen()); + this._param.isShowExchange = !this.IsChangeDialogOpen(); + this._param.isShowExchangeRedpoint = true; + this._param.sendCallback = new ButtonClickEventHandler(this.ToSend); + this._param.exchangeCallback = new ButtonClickEventHandler(this.ToExchange); + break; + } + this._FireEvent(this._param); + } + } + + private bool IsSendDialogOpen() + { + return DlgBase.singleton.IsVisible() && DlgBase.singleton.IsSendDilogVisible(); + } + + private bool IsChangeDialogOpen() + { + return DlgBase.singleton.IsVisible() && DlgBase.singleton.IsChangeDialogVisible(); + } + + private void _FireEvent(XFavorParam param) + { + DlgBase.singleton.SetUpFavorParam(param); + param.Recycle(); + } + + private bool ToSend(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + NpcFeelingOneNpc oneNpcByXId = this.doc.GetOneNpcByXId(this.GetXNpcId()); + bool flag2 = oneNpcByXId != null && this.doc.IsCanSend(); + if (flag2) + { + bool flag3 = this.doc.IsCanLevelUp(oneNpcByXId); + if (flag3) + { + NpcFeeling.RowData npcTableInfoByXId = XNPCFavorDocument.GetNpcTableInfoByXId(this.GetXNpcId()); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("NPCFavorisFull"), npcTableInfoByXId.name), "fece00"); + } + else + { + DlgBase.singleton.ShowNPCFavorSend(); + this.RefreshOperateStatus(false, this.GetRandomGiveWords()); + this._FireEvent(this._param); + } + } + } + return true; + } + + private bool ToExchange(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.ShowNPCFavorExchnage(); + this.RefreshOperateStatus(false, this.GetRandomExchangeWords()); + this._FireEvent(this._param); + } + return true; + } + + private bool ToConfirmSend() + { + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private string GetRandomGiveWords() + { + NpcFeeling.RowData npcTableInfoByXId = XNPCFavorDocument.GetNpcTableInfoByXId(this.GetXNpcId()); + return (npcTableInfoByXId == null) ? string.Empty : this.GetRandomStr(npcTableInfoByXId.giveWords); + } + + private string GetSendSuccessWords() + { + NpcFeeling.RowData npcTableInfoByXId = XNPCFavorDocument.GetNpcTableInfoByXId(this.GetXNpcId()); + return (npcTableInfoByXId == null) ? string.Empty : this.GetRandomStr(npcTableInfoByXId.giveSuccessWords); + } + + private string GetRandomExchangeWords() + { + NpcFeeling.RowData npcTableInfoByXId = XNPCFavorDocument.GetNpcTableInfoByXId(this.GetXNpcId()); + return (npcTableInfoByXId == null) ? string.Empty : this.GetRandomStr(npcTableInfoByXId.exchangeWords); + } + + private string GetExchangeSuccessWords() + { + NpcFeeling.RowData npcTableInfoByXId = XNPCFavorDocument.GetNpcTableInfoByXId(this.GetXNpcId()); + return (npcTableInfoByXId == null) ? string.Empty : this.GetRandomStr(npcTableInfoByXId.giveSuccessWords); + } + + private string GetRandomStr(string[] content) + { + bool flag = content != null && content.Length != 0; + string result; + if (flag) + { + result = content[XSingleton.singleton.RandomInt(content.Length)]; + } + else + { + result = string.Empty; + } + return result; + } + + public void SendSuccess() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.NtfSendDramaRefresh(); + this.RefreshOperateStatus(false, this.GetSendSuccessWords()); + this._FireEvent(this._param); + } + this.doc.PlaySendSuccessFx(this.GetXNpcId()); + } + + public void ExchangeSuccess() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.NtfExchangeDlgClose(); + this.RefreshOperateStatus(false, this.GetExchangeSuccessWords()); + this._FireEvent(this._param); + } + this.doc.PlayExchangeSuccessFx(this.GetXNpcId()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDrama.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDrama.cs.meta new file mode 100644 index 00000000..d26bcf04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDrama.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d67540d48c741f64a8a3c581f608712f +timeCreated: 1611404631 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaExchange.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaExchange.cs new file mode 100644 index 00000000..7f23b61e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaExchange.cs @@ -0,0 +1,166 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNPCFavorDramaExchange : DlgHandlerBase + { + private XNPCFavorDrama operate + { + get + { + return XNPCFavorDocument.IsNpcDialogVisible(); + } + } + + protected override string FileName + { + get + { + return "GameSystem/NpcBlessing/NpcChangePresent"; + } + } + + private XNPCFavorDocument doc; + + private IXUIButton exchangeBtn = null; + + private Transform npcReturnItem = null; + + private Transform myItem = null; + + private IXUIButton closeBtn = null; + + private ItemBrief role2npc = null; + + private ItemBrief npc2role = null; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this.exchangeBtn = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.npcReturnItem = base.transform.Find("Bg/ItemNpc"); + this.myItem = base.transform.Find("Bg/ItemPlayer"); + this.closeBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + } + + protected override void OnShow() + { + this.RefreshData(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.exchangeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickExchange)); + this.closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClose)); + } + + public override void OnUnload() + { + this.doc = null; + this.role2npc = null; + this.npc2role = null; + } + + public override void RefreshData() + { + XNPCFavorDrama xnpcfavorDrama = XNPCFavorDocument.IsNpcDialogVisible(); + bool flag = xnpcfavorDrama != null; + if (flag) + { + List exchangeInfoByXId = this.doc.GetExchangeInfoByXId(xnpcfavorDrama.GetXNpcId()); + bool flag2 = exchangeInfoByXId != null; + if (flag2) + { + bool flag3 = this.doc.Role2NPC != null && this.doc.NPC2Role != null && this.doc.ExchangeNPCID == XNPCFavorDocument.GetNpcIdByXId(xnpcfavorDrama.GetXNpcId()); + if (flag3) + { + this.role2npc = this.doc.Role2NPC; + this.npc2role = this.doc.NPC2Role; + } + else + { + bool flag4 = exchangeInfoByXId != null && exchangeInfoByXId.Count > 0 && exchangeInfoByXId.Count % 2 == 0; + if (flag4) + { + int num = exchangeInfoByXId.Count - 1; + this.role2npc = exchangeInfoByXId[num - 1]; + this.npc2role = exchangeInfoByXId[num]; + } + } + bool flag5 = this.role2npc == null || this.npc2role == null; + if (!flag5) + { + this.DrawItem(this.myItem, (int)this.role2npc.itemID, (int)this.role2npc.itemCount); + this.DrawItem(this.npcReturnItem, (int)this.npc2role.itemID, (int)this.npc2role.itemCount); + } + } + } + } + + private bool OnClickExchange(IXUIButton btn) + { + bool flag = this.role2npc == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.role2npc != null; + if (flag2) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)this.role2npc.itemID); + bool flag3 = itemCount < (ulong)this.role2npc.itemCount; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCExchangeItemNotEnough"), "fece00"); + return true; + } + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.role2npc.itemID); + string arg = (itemConf == null) ? string.Empty : itemConf.ItemName[0]; + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("NPCExchangeHint"), this.role2npc.itemCount, arg), new ButtonClickEventHandler(this.ConfirmExchange)); + } + result = true; + } + return result; + } + + private bool OnClickClose(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private bool ConfirmExchange(IXUIButton btn) + { + XNPCFavorDrama xnpcfavorDrama = XNPCFavorDocument.IsNpcDialogVisible(); + bool flag = xnpcfavorDrama != null && this.role2npc != null && this.npc2role != null; + if (flag) + { + this.doc.ReqSrvExchangeGift(XNPCFavorDocument.GetNpcIdByXId(xnpcfavorDrama.GetXNpcId()), this.role2npc, this.npc2role); + } + DlgBase.singleton.SetVisible(false, true); + return true; + } + + private void DrawItem(Transform item, int itemId, int itemNum) + { + XSingleton.singleton.normalItemDrawer.DrawItem(item.gameObject, itemId, itemNum, true); + IXUISprite ixuisprite = item.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)itemId); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + IXUILabel ixuilabel = item.Find("Name").GetComponent("XUILabel") as IXUILabel; + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemId); + ixuilabel.SetText((itemConf != null) ? itemConf.ItemName[0] : string.Empty); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaExchange.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaExchange.cs.meta new file mode 100644 index 00000000..dbde6d8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaExchange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2039d2dfead7839489c7885e249663db +timeCreated: 1611403405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaSend.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaSend.cs new file mode 100644 index 00000000..71a83395 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaSend.cs @@ -0,0 +1,237 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNPCFavorDramaSend : DlgHandlerBase + { + private XNPCFavorDrama operate + { + get + { + return XNPCFavorDocument.IsNpcDialogVisible(); + } + } + + protected override string FileName + { + get + { + return "GameSystem/NpcBlessing/NpcSendPresent"; + } + } + + private XNPCFavorDocument doc; + + private IXUILabel m_LeftTimes; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private List likeItems; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this.m_LeftTimes = (base.transform.Find("LeftTimes").GetComponent("XUILabel") as IXUILabel); + this.m_ScrollView = (base.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + + protected override void OnShow() + { + this.RefreshData(); + } + + public override void OnUnload() + { + this.doc = null; + } + + public override void RefreshData() + { + this.m_LeftTimes.SetText(this.doc.GiveLeftCount.ToString()); + this.RefreshList(); + } + + public override void RegisterEvent() + { + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapListUpdate)); + } + + private void RefreshList() + { + XNPCFavorDrama xnpcfavorDrama = XNPCFavorDocument.IsNpcDialogVisible(); + bool flag = xnpcfavorDrama != null; + if (flag) + { + this.likeItems = this.doc.GetLikeItemsByXId(xnpcfavorDrama.GetXNpcId()); + bool flag2 = this.likeItems != null; + if (flag2) + { + this.likeItems.Sort(new Comparison(XNPCFavorDramaSend.Compare)); + this.m_WrapContent.SetContentCount(this.likeItems.Count, false); + this.m_ScrollView.ResetPosition(); + } + else + { + XSingleton.singleton.AddLog("Error , Send Gift to UnActived Npc!", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + } + + private void WrapListUpdate(Transform item, int index) + { + bool flag = this.likeItems == null || index >= this.likeItems.Count; + if (flag) + { + for (int i = 0; i < item.childCount; i++) + { + item.GetChild(i).gameObject.SetActive(false); + } + } + else + { + for (int j = 0; j < item.childCount; j++) + { + item.GetChild(j).gameObject.SetActive(true); + } + NpcLikeItem npcLikeItem = this.likeItems[index]; + this.DrawItem(item, npcLikeItem.itemid, npcLikeItem.itemcount, npcLikeItem.addexp, index, npcLikeItem.type); + } + } + + private static int Compare(NpcLikeItem x, NpcLikeItem y) + { + bool flag = x.type != y.type; + int result; + if (flag) + { + result = XFastEnumIntEqualityComparer.ToInt(x.type) - XFastEnumIntEqualityComparer.ToInt(y.type); + } + else + { + result = (int)(x.itemid - y.itemid); + } + return result; + } + + private void DrawItem(Transform item, uint itemId, uint itemNum, uint favorAdd, int index, NpcFlItemType type) + { + IXUIButton ixuibutton = item.Find("SendBtn").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = item.Find("friendship/Num").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = item.Find("HaveGot/Num").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = item.Find("Item/Name").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = item.Find("BgNormal").gameObject; + GameObject gameObject2 = item.Find("BgSpecial").gameObject; + Transform transform = item.Find("Item"); + GameObject gameObject3 = transform.gameObject; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject3, (int)itemId, (int)itemNum, true); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)itemId; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemId); + ixuilabel3.SetText((itemConf != null) ? itemConf.ItemName[0] : string.Empty); + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)itemId); + string text = itemCount + "/" + itemNum; + bool flag = itemCount < (ulong)itemNum; + if (flag) + { + text = string.Concat(new object[] + { + "[ff0000]", + itemCount, + "/", + itemNum, + "[-]" + }); + } + ixuilabel2.SetText(text); + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSendBtn)); + ixuilabel.SetText(favorAdd.ToString()); + bool flag2 = type == NpcFlItemType.NPCFL_ITEM_TRIGGER_FAVOR; + if (flag2) + { + gameObject.SetActive(false); + gameObject2.SetActive(true); + } + else + { + gameObject.SetActive(true); + gameObject2.SetActive(false); + } + } + + private bool OnClickSendBtn(IXUIButton btn) + { + bool flag = this.doc.GiveLeftCount <= 0u; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_NPCFL_GIVE_GIFT_COUNT_LESS"), "fece00"); + result = true; + } + else + { + int num = (int)btn.ID; + bool flag2 = this.likeItems == null || num >= this.likeItems.Count; + if (flag2) + { + result = true; + } + else + { + NpcLikeItem npcLikeItem = this.likeItems[num]; + uint itemid = npcLikeItem.itemid; + uint itemcount = npcLikeItem.itemcount; + uint addexp = npcLikeItem.addexp; + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)itemid); + bool flag3 = itemCount < (ulong)itemcount; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCSendItemNotEnough"), "fece00"); + } + else + { + NpcFeelingOneNpc oneNpcByXId = this.doc.GetOneNpcByXId(this.operate.GetXNpcId()); + bool flag4 = oneNpcByXId == null; + if (flag4) + { + return true; + } + bool flag5 = oneNpcByXId.level >= this.doc.NpcFlLevTop; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_NPCFL_NPC_LEVEL_MAX"), "fece00"); + return true; + } + bool flag6 = this.doc.IsCanLevelUp(oneNpcByXId); + if (flag6) + { + NpcFeeling.RowData npcTableInfoByXId = XNPCFavorDocument.GetNpcTableInfoByXId(this.operate.GetXNpcId()); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("NPCFavorisFull"), npcTableInfoByXId.name), "fece00"); + return true; + } + bool flag7 = this.operate != null; + if (flag7) + { + this.doc.ReqSrvGiveGift(oneNpcByXId.npcid, npcLikeItem); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemid); + string arg = (itemConf == null) ? string.Empty : itemConf.ItemName[0]; + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("NPCSendHint"), itemcount, arg, addexp), "fece00"); + } + } + result = true; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaSend.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaSend.cs.meta new file mode 100644 index 00000000..8769dd85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorDramaSend.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16b86ce14952b0e42a2283ea1c5f4299 +timeCreated: 1611403290 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorHandler.cs new file mode 100644 index 00000000..9c572b01 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorHandler.cs @@ -0,0 +1,248 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNPCFavorHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/NpcBlessing/NpcEquipHandler"; + } + } + + private XNPCFavorDocument m_doc; + + private const int MODIFYNUM = 4; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private GameObject m_SendFrame; + + private XNPCSendSubHandler m_SendHandler = null; + + public uint _selectedNPCID = 0u; + + private GameObject SelectedItem = null; + + private List m_NpcBaseDatas = null; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this.m_SendFrame = base.PanelObject.transform.Find("NpcInfo").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_SendHandler, this.m_SendFrame, this, false); + this.m_SendHandler.SetParentHandler(this); + this.m_ScrollView = (base.PanelObject.transform.Find("Npc/NpcScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("Npc/NpcScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + + protected override void OnShow() + { + this.RefreshData(); + this.m_SendHandler.SetVisible(true); + } + + public override void RefreshData() + { + this.SetupNPCList(); + bool flag = this.m_SendHandler.IsVisible(); + if (flag) + { + this.m_SendHandler.RefreshData(); + } + } + + public override void RegisterEvent() + { + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.NPCWrapListUpdate)); + } + + protected override void OnHide() + { + bool flag = this.m_doc != null; + if (flag) + { + this.m_doc.RemoveAllNewTags(); + } + } + + public override void OnUnload() + { + this.m_doc = null; + this.m_NpcBaseDatas = null; + this._selectedNPCID = 0u; + this.SelectedItem = null; + DlgHandlerBase.EnsureUnload(ref this.m_SendHandler); + base.OnUnload(); + } + + private void SetupNPCList() + { + this.m_NpcBaseDatas = this.m_doc.NPCIds; + bool flag = this.m_NpcBaseDatas != null; + if (flag) + { + this.m_WrapContent.SetContentCount(this.m_NpcBaseDatas.Count, false); + this.m_ScrollView.ResetPosition(); + } + } + + private void NPCWrapListUpdate(Transform item, int index) + { + bool flag = this.m_NpcBaseDatas == null || index >= this.m_NpcBaseDatas.Count; + if (!flag) + { + IXUILabel ixuilabel = item.Find("NpcName").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = item.Find("NpcHead").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = item.Find("NoActive").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = item.Find("JinDu").gameObject; + IXUIProgress ixuiprogress = item.Find("JinDu/Progress Bar").GetComponent("XUIProgress") as IXUIProgress; + IXUILabel ixuilabel3 = item.Find("JinDu/Value").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = item.Find("JinDu/ValueMax").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = item.Find("GroupIcon").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject2 = item.Find("RedPoint").gameObject; + uint num = this.m_NpcBaseDatas[index]; + NpcFeeling.RowData npcTableInfoById = XNPCFavorDocument.GetNpcTableInfoById(num); + NpcFeelingOneNpc oneNpc = this.m_doc.GetOneNpc(num); + GameObject gameObject3 = item.Find("New").gameObject; + ixuilabel.SetText(npcTableInfoById.name.ToString()); + bool flag2 = oneNpc != null; + if (flag2) + { + gameObject.SetActive(true); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(oneNpc.exp.ToString()); + NpcFeelingAttr.RowData attrDataByLevel = XNPCFavorDocument.GetAttrDataByLevel(oneNpc.npcid, oneNpc.level); + uint num2 = (attrDataByLevel == null) ? 0u : attrDataByLevel.needExp; + NpcFeelingAttr.RowData attrDataByLevel2 = XNPCFavorDocument.GetAttrDataByLevel(oneNpc.npcid, oneNpc.level + 1u); + uint num3 = 0u; + bool active = false; + bool flag3 = attrDataByLevel2 != null; + if (flag3) + { + num3 = attrDataByLevel2.needExp - num2; + active = (oneNpc.exp >= num3 && oneNpc.level < this.m_doc.NpcFlLevTop); + } + ixuilabel4.SetText(string.Format("/{0}", num3)); + ixuiprogress.value = ((num3 == 0u) ? 0f : (oneNpc.exp * 1f / num3)); + gameObject3.SetActive(oneNpc.isnew); + gameObject2.SetActive(active); + ixuisprite2.SetColor(Color.white); + } + else + { + gameObject.SetActive(false); + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("NPCUnLock"), npcTableInfoById.openLevel)); + gameObject3.SetActive(false); + gameObject2.SetActive(false); + ixuisprite2.SetColor(Color.black); + } + ixuisprite.SetColor((oneNpc != null) ? Color.white : Color.black); + ixuisprite.SetSprite(npcTableInfoById.icon); + ixuisprite2.SetSprite(string.Format("Group_{0}_0", npcTableInfoById.unionId - 1u)); + IXUIButton ixuibutton = item.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)num; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSelectNPC)); + bool flag4 = this._selectedNPCID == 0u && index == 0; + if (flag4) + { + this.OnSelectNPC(ixuibutton); + } + this.ToggleSelection(item.gameObject, num == this._selectedNPCID); + } + } + + private bool OnSelectNPC(IXUIButton btn) + { + uint num = (uint)btn.ID; + bool flag = this._selectedNPCID == num; + bool result; + if (flag) + { + result = true; + } + else + { + this._selectedNPCID = num; + bool flag2 = this.SelectedItem != null; + if (flag2) + { + this.ToggleSelection(this.SelectedItem, false); + } + this.ToggleSelection(btn.gameObject, true); + this.OnNotifyRefreshSubHandler(); + result = true; + } + return result; + } + + public void SkipToNpc(uint npcId) + { + bool flag = this.m_NpcBaseDatas == null; + if (!flag) + { + this._selectedNPCID = npcId; + bool flag2 = this.m_NpcBaseDatas.Count > 4; + if (flag2) + { + int num = 1; + for (int i = 0; i < this.m_NpcBaseDatas.Count; i++) + { + bool flag3 = this.m_NpcBaseDatas[i] == npcId; + if (flag3) + { + break; + } + num++; + } + float position = Mathf.Clamp01(((float)num - 2f) * 1f / (float)(this.m_NpcBaseDatas.Count - 4)); + this.m_ScrollView.SetPosition(position); + } + this.m_WrapContent.SetContentCount(this.m_NpcBaseDatas.Count, false); + bool flag4 = this.m_SendHandler.IsVisible(); + if (flag4) + { + this.m_SendHandler.RefreshData(); + } + } + } + + private void OnNotifyRefreshSubHandler() + { + bool flag = this.m_SendHandler.IsVisible(); + if (flag) + { + this.m_SendHandler.RefreshData(); + } + } + + private void ToggleSelection(GameObject go, bool bSelect) + { + Transform transform = go.transform.Find("Select"); + bool flag = transform != null; + if (flag) + { + GameObject gameObject = transform.gameObject; + bool flag2 = gameObject != null; + if (flag2) + { + gameObject.SetActive(bSelect); + } + } + if (bSelect) + { + this.SelectedItem = go; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCFavorHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorHandler.cs.meta new file mode 100644 index 00000000..b0e0eb15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCFavorHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 480344dfd1048f646a408e15f51bf7a8 +timeCreated: 1611403656 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCSendSubHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCSendSubHandler.cs new file mode 100644 index 00000000..879e2464 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCSendSubHandler.cs @@ -0,0 +1,339 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNPCSendSubHandler : DlgHandlerBase + { + private XNPCFavorHandler _parentHandler = null; + + private XNPCFavorDocument m_doc; + + private IXUIScrollView m_ScrollView; + + private Transform _items; + + protected XUIPool _itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUISprite _RelicsSpr; + + private IXUILabel _RelicsName; + + private IXUILabel _RelicsLevel; + + private IXUILabel _RelicsDesc; + + private IXUILabel _RelicsAddition; + + private IXUILabel _curAttr; + + private IXUIButton _NextLevel; + + private IXUIButton _LevelUpBtn; + + private GameObject _LevelUpRedPoint; + + private IXUIButton _SendBtn; + + public void SetParentHandler(XNPCFavorHandler handler = null) + { + this._parentHandler = handler; + } + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this._items = null; + this._items = base.transform.Find("Panel/Items"); + this.m_ScrollView = (this._items.GetComponent("XUIScrollView") as IXUIScrollView); + this._itemPool.SetupPool(this._items.gameObject, this._items.Find("Item").gameObject, 4u, false); + this._RelicsSpr = (base.transform.Find("EquipItem").GetComponent("XUISprite") as IXUISprite); + this._RelicsName = (base.transform.Find("Title/EquipName").GetComponent("XUILabel") as IXUILabel); + this._RelicsLevel = (base.transform.Find("Title/Level").GetComponent("XUILabel") as IXUILabel); + this._RelicsDesc = (base.transform.Find("Title/Tips").GetComponent("XUILabel") as IXUILabel); + this._RelicsAddition = (base.transform.Find("EquipEffect/Value").GetComponent("XUILabel") as IXUILabel); + this._curAttr = (base.transform.Find("EquipEffect/AttrValue").GetComponent("XUILabel") as IXUILabel); + this._NextLevel = (base.transform.Find("NextLevelBtn").GetComponent("XUIButton") as IXUIButton); + this._LevelUpBtn = (base.transform.Find("LevelUpBtn").GetComponent("XUIButton") as IXUIButton); + this._LevelUpRedPoint = base.transform.Find("LevelUpBtn/RedPoint").gameObject; + this._LevelUpRedPoint.SetActive(false); + this._SendBtn = (base.transform.Find("GoBtn").GetComponent("XUIButton") as IXUIButton); + } + + protected override void OnShow() + { + this.RefreshData(); + } + + public override void RefreshData() + { + this.RefreshRelics(); + this.RefreshItems(); + } + + public override void RegisterEvent() + { + this._NextLevel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickNextAdditionBtn)); + this._LevelUpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickLevelUpBtn)); + this._SendBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSendBtn)); + } + + public override void OnUnload() + { + this.m_doc = null; + this._parentHandler = null; + } + + private void RefreshRelics() + { + bool flag = this._parentHandler._selectedNPCID == 0u; + if (!flag) + { + NpcFeelingOneNpc oneNpc = this.m_doc.GetOneNpc(this._parentHandler._selectedNPCID); + NpcFeeling.RowData npcTableInfoById = XNPCFavorDocument.GetNpcTableInfoById(this._parentHandler._selectedNPCID); + this._RelicsSpr.SetSprite(npcTableInfoById.relicsIcon); + this._RelicsName.SetText(npcTableInfoById.relicsName); + this._RelicsLevel.SetText(string.Format("Lv.{0}", (oneNpc == null) ? 0u : oneNpc.level)); + this._RelicsDesc.SetText(XSingleton.singleton.ReplaceReturn(npcTableInfoById.relicsDesc)); + uint lev = (oneNpc != null) ? oneNpc.level : 0u; + NpcFeelingAttr.RowData attrDataByLevel = XNPCFavorDocument.GetAttrDataByLevel(npcTableInfoById.npcId, lev); + bool flag2 = attrDataByLevel != null; + if (flag2) + { + StringBuilder sb = XNPCFavorDocument.sb; + sb.Length = 0; + int i = 0; + int count = attrDataByLevel.Attr.Count; + while (i < count) + { + uint attrid = attrDataByLevel.Attr[i, 0]; + uint attrValue = attrDataByLevel.Attr[i, 1]; + bool flag3 = i != 0; + if (flag3) + { + sb.Append(" "); + } + sb.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)attrid), (oneNpc != null) ? XAttributeCommon.GetAttrValueStr(attrid, attrValue, true) : "+0")); + i++; + } + this._curAttr.SetText(sb.ToString()); + } + else + { + this._curAttr.SetText(string.Empty); + } + NpcFeelingAttr.RowData npcAttrByIdLev = XNPCFavorDocument.GetNpcAttrByIdLev(npcTableInfoById.npcId, (oneNpc == null) ? 0u : oneNpc.level); + bool flag4 = npcAttrByIdLev != null; + if (flag4) + { + this._RelicsAddition.SetText(XSingleton.singleton.ReplaceReturn(npcAttrByIdLev.RelicsDesc)); + } + else + { + this._RelicsAddition.SetText(string.Empty); + } + this._LevelUpRedPoint.SetActive(this.m_doc.IsCanLevelUp(oneNpc)); + } + } + + private void RefreshItems() + { + this._itemPool.ReturnAll(false); + bool flag = this._parentHandler._selectedNPCID > 0u; + if (flag) + { + NpcFeelingOneNpc oneNpc = this.m_doc.GetOneNpc(this._parentHandler._selectedNPCID); + bool flag2 = oneNpc != null; + if (flag2) + { + List likeitem = oneNpc.likeitem; + bool flag3 = likeitem != null; + if (flag3) + { + for (int i = 0; i < likeitem.Count; i++) + { + this.DrawItem((int)likeitem[i].itemid, (int)likeitem[i].itemcount, i); + } + } + } + else + { + NpcFeeling.RowData npcTableInfoById = XNPCFavorDocument.GetNpcTableInfoById(this._parentHandler._selectedNPCID); + SeqListRef clientItem = npcTableInfoById.clientItem; + for (int j = 0; j < clientItem.Count; j++) + { + this.DrawItem((int)clientItem[j, 0], (int)clientItem[j, 1], j); + } + } + } + this.m_ScrollView.ResetPosition(); + } + + private void DrawItem(int itemId, int itemNum, int i) + { + Transform transform = this.DrawItem(itemId, itemNum, this._items, i); + IXUILabel ixuilabel = transform.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + ulong itemCount = XBagDocument.BagDoc.GetItemCount(itemId); + string text = itemCount + "/" + itemNum; + bool flag = itemCount < (ulong)((long)itemNum); + if (flag) + { + text = string.Concat(new object[] + { + "[ff0000]", + itemCount, + "/", + itemNum, + "[-]" + }); + } + ixuilabel.SetText(text); + } + + private Transform DrawItem(int itemID, int num, Transform parent, int index) + { + GameObject gameObject = this._itemPool.FetchGameObject(false); + gameObject.transform.parent = parent; + gameObject.transform.localPosition = new Vector3((float)(index * this._itemPool.TplWidth), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemID, num, true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + return gameObject.transform; + } + + private bool OnClickSendBtn(IXUIButton btn) + { + bool flag = this._parentHandler._selectedNPCID == 0u; + bool result; + if (flag) + { + result = true; + } + else + { + NpcFeelingOneNpc oneNpc = this.m_doc.GetOneNpc(this._parentHandler._selectedNPCID); + bool flag2 = oneNpc != null; + if (flag2) + { + uint npcXIdById = XNPCFavorDocument.GetNpcXIdById(this._parentHandler._selectedNPCID); + XSingleton.singleton.CloseModalDlg(); + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc(npcXIdById); + bool flag3 = XSingleton.singleton.LastNpc != null; + if (flag3) + { + this.m_doc.View.Close(true); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCNotInScene"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCNotActive"), "fece00"); + } + result = true; + } + return result; + } + + private bool OnClickLevelUpBtn(IXUIButton btn) + { + bool flag = this._parentHandler._selectedNPCID == 0u; + bool result; + if (flag) + { + result = true; + } + else + { + NpcFeelingOneNpc oneNpc = this.m_doc.GetOneNpc(this._parentHandler._selectedNPCID); + bool flag2 = oneNpc != null; + if (flag2) + { + bool flag3 = this.m_doc.IsCanLevelUp(oneNpc); + if (flag3) + { + this.m_doc.ReqSrvLevelUp(this._parentHandler._selectedNPCID); + } + else + { + bool flag4 = oneNpc.level == this.m_doc.NpcFlLevTop; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_NPCFL_NPC_LEVEL_MAX"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCLessEXP"), "fece00"); + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCNotActive"), "fece00"); + } + result = true; + } + return result; + } + + private bool OnClickNextAdditionBtn(IXUIButton btn) + { + bool flag = this._parentHandler._selectedNPCID == 0u; + bool result; + if (flag) + { + result = true; + } + else + { + NpcFeelingOneNpc oneNpc = this.m_doc.GetOneNpc(this._parentHandler._selectedNPCID); + bool flag2 = oneNpc != null; + if (flag2) + { + uint selectedNPCID = this._parentHandler._selectedNPCID; + NpcFeelingAttr.RowData attrDataByLevel = XNPCFavorDocument.GetAttrDataByLevel(selectedNPCID, oneNpc.level + 1u); + bool flag3 = attrDataByLevel != null; + if (flag3) + { + string @string = XStringDefineProxy.GetString("NPCNextAddition"); + SeqListRef attr = attrDataByLevel.Attr; + StringBuilder sb = XNPCFavorDocument.sb; + sb.Length = 0; + for (int i = 0; i < attr.Count; i++) + { + uint attrid = attr[i, 0]; + uint attrValue = attr[i, 1]; + bool flag4 = i != 0; + if (flag4) + { + sb.Append("\n"); + } + sb.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)attrid), XAttributeCommon.GetAttrValueStr(attrid, attrValue, true))); + } + string label = sb.ToString(); + XSingleton.singleton.ShowModalDialogWithTitle(@string, label, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), null, 50); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCRelicsLevelMAX"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCNotActive"), "fece00"); + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCSendSubHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCSendSubHandler.cs.meta new file mode 100644 index 00000000..981297b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCSendSubHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dcab30777a716ae4f969bdee9e75299f +timeCreated: 1611404679 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCUnionHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCUnionHandler.cs new file mode 100644 index 00000000..71341957 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCUnionHandler.cs @@ -0,0 +1,167 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNPCUnionHandler : DlgHandlerBase + { + public uint SelectedUnionID + { + get + { + return this._selectedUnionID; + } + } + + protected override string FileName + { + get + { + return "GameSystem/NPCBlessing/NpcGroupHandler"; + } + } + + private XNPCFavorDocument m_doc; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private GameObject m_MemberFrame; + + private XNPCUnionMemSubHandler m_MemberHandler = null; + + private List m_UnionIds; + + private uint _selectedUnionID = 0u; + + private GameObject SelectedItem = null; + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this.m_MemberFrame = base.PanelObject.transform.Find("GroupInfo").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_MemberHandler, this.m_MemberFrame, this, false); + this.m_MemberHandler.SetParentHandler(this); + this.m_ScrollView = (base.PanelObject.transform.Find("Group/NpcScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("Group/NpcScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + } + + protected override void OnShow() + { + this.RefreshData(); + this.m_MemberHandler.SetVisible(true); + } + + public override void RefreshData() + { + this.SetupUnionList(); + bool flag = this.m_MemberHandler.IsVisible(); + if (flag) + { + this.m_MemberHandler.RefreshData(); + } + } + + public override void RegisterEvent() + { + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.UnionWrapListUpdate)); + } + + public override void OnUnload() + { + this.m_doc = null; + DlgHandlerBase.EnsureUnload(ref this.m_MemberHandler); + base.OnUnload(); + } + + private void SetupUnionList() + { + this.m_UnionIds = this.m_doc.UnionIds; + bool flag = this.m_UnionIds != null; + if (flag) + { + this.m_WrapContent.SetContentCount(this.m_UnionIds.Count, false); + this.m_ScrollView.ResetPosition(); + } + } + + private void UnionWrapListUpdate(Transform item, int index) + { + bool flag = this.m_UnionIds == null || index >= this.m_UnionIds.Count; + if (!flag) + { + uint num = this.m_UnionIds[index]; + NpcFeelingUnite activeUniteInfo = this.m_doc.GetActiveUniteInfo(num); + NpcUniteAttr.RowData unionTableInfoByUnionId = XNPCFavorDocument.GetUnionTableInfoByUnionId(num, (activeUniteInfo == null) ? 0u : activeUniteInfo.level); + bool flag2 = unionTableInfoByUnionId == null; + if (!flag2) + { + IXUILabel ixuilabel = item.Find("GroupName").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = item.Find("GroupFlag").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = item.Find("GroupLevel").GetComponent("XUILabel") as IXUILabel; + uint unionSumLevel = this.m_doc.GetUnionSumLevel(num); + ixuilabel.SetText(unionTableInfoByUnionId.Name); + ixuilabel2.SetText(string.Format(XStringDefineProxy.GetString("NPCUnionLevel"), unionSumLevel)); + ixuisprite.SetSprite(unionTableInfoByUnionId.Icon); + GameObject gameObject = item.Find("RedPoint").gameObject; + gameObject.SetActive(this.m_doc.IsUnionCanActiveNextLevel(num, unionSumLevel)); + IXUISprite ixuisprite2 = item.Find("Btn").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)num; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectUnion)); + bool flag3 = this._selectedUnionID == 0u && index == 0; + if (flag3) + { + this.OnSelectUnion(ixuisprite2); + } + this.ToggleSelection(item.gameObject, num == this._selectedUnionID); + } + } + } + + private void OnSelectUnion(IXUISprite sprite) + { + uint num = (uint)sprite.ID; + bool flag = this._selectedUnionID == num; + if (!flag) + { + this._selectedUnionID = num; + bool flag2 = this.SelectedItem != null; + if (flag2) + { + this.ToggleSelection(this.SelectedItem, false); + } + this.ToggleSelection(sprite.transform.parent.gameObject, true); + this.OnNotifyRefreshSubHandler(); + } + } + + private void OnNotifyRefreshSubHandler() + { + bool flag = this.m_MemberHandler.IsVisible(); + if (flag) + { + this.m_MemberHandler.RefreshData(); + } + } + + private void ToggleSelection(GameObject go, bool bSelect) + { + Transform transform = go.transform.Find("Select"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(bSelect); + } + if (bSelect) + { + this.SelectedItem = go; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCUnionHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCUnionHandler.cs.meta new file mode 100644 index 00000000..f405c0f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCUnionHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac26a7a1ce928954b9ecea193dccf047 +timeCreated: 1611404329 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCUnionMemSubHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XNPCUnionMemSubHandler.cs new file mode 100644 index 00000000..ef8a88ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCUnionMemSubHandler.cs @@ -0,0 +1,342 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNPCUnionMemSubHandler : DlgHandlerBase + { + private XNPCUnionHandler _parentHandler = null; + + private XNPCFavorDocument m_doc; + + private IXUIScrollView m_ScrollView; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_GroupEffectScrollView; + + private IXUIWrapContent m_GroupEffecWrapContent; + + private IXUIList m_AttrGrid; + + private XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIButton m_NextLevelBtn; + + private IXUIButton m_ActiveBtn; + + private GameObject m_ActiveRedPoint; + + private List m_NpcIds = new List(); + + private uint SelectedUnionId = 0u; + + private IXUILabel m_ActiveCondition; + + private const int GROUP_NUM = 5; + + public void SetParentHandler(XNPCUnionHandler handler = null) + { + this._parentHandler = handler; + } + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this.m_ScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("ScrollView/Grid").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_GroupEffectScrollView = (base.transform.Find("GroupEffect/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_GroupEffecWrapContent = (base.transform.Find("GroupEffect/ScrollView/Grid").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_AttrGrid = (base.transform.Find("AttrGrid").GetComponent("XUIList") as IXUIList); + Transform transform = base.transform.Find("AttrGrid/Tpl"); + this.m_AttrPool.SetupPool(this.m_AttrGrid.gameObject, transform.gameObject, 4u, false); + this.m_NextLevelBtn = (base.transform.Find("NextLevelBtn").GetComponent("XUIButton") as IXUIButton); + this.m_ActiveBtn = (base.transform.Find("ActiveBtn").GetComponent("XUIButton") as IXUIButton); + this.m_ActiveRedPoint = base.transform.Find("ActiveBtn/RedPoint").gameObject; + this.m_ActiveRedPoint.SetActive(false); + this.m_ActiveCondition = (base.transform.Find("Tips").GetComponent("XUILabel") as IXUILabel); + } + + protected override void OnShow() + { + this.RefreshData(); + } + + public override void RegisterEvent() + { + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapListUpdate)); + this.m_GroupEffecWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.GroupEffectUpdate)); + this.m_NextLevelBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickNextLevelBtn)); + this.m_ActiveBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickActiveBtn)); + } + + public override void RefreshData() + { + this.SetUpItems(); + this.SetUpEffects(); + this.RefreshAttr(); + } + + public override void OnUnload() + { + this._parentHandler = null; + this.SelectedUnionId = 0u; + } + + private void WrapListUpdate(Transform item, int index) + { + bool flag = index >= this.m_NpcIds.Count; + if (flag) + { + this.DrawItem(item, 0u, true); + } + else + { + uint npcid = this.m_NpcIds[index]; + this.DrawItem(item, npcid, false); + } + } + + private void SetUpItems() + { + this.m_NpcIds.Clear(); + this.SelectedUnionId = this._parentHandler.SelectedUnionID; + bool flag = this.SelectedUnionId > 0u; + if (flag) + { + NpcFeelingUnite activeUniteInfo = this.m_doc.GetActiveUniteInfo(this.SelectedUnionId); + NpcUniteAttr.RowData unionTableInfoByUnionId = XNPCFavorDocument.GetUnionTableInfoByUnionId(this.SelectedUnionId, (activeUniteInfo == null) ? 0u : activeUniteInfo.level); + bool flag2 = unionTableInfoByUnionId != null; + if (flag2) + { + int i = 0; + int num = unionTableInfoByUnionId.npcId.Length; + while (i < num) + { + this.m_NpcIds.Add(unionTableInfoByUnionId.npcId[i]); + i++; + } + } + this.m_WrapContent.SetContentCount(this.m_NpcIds.Count, false); + this.m_ScrollView.ResetPosition(); + } + } + + private void DrawItem(Transform item, uint npcid, bool isHide = false) + { + IXUISprite ixuisprite = item.Find("rt/Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = item.Find("rt/EquipLevel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = item.Find("rt/wjh").GetComponent("XUILabel") as IXUILabel; + Transform transform = item.Find("rt"); + if (isHide) + { + transform.gameObject.SetActive(false); + } + else + { + transform.gameObject.SetActive(true); + NpcFeelingOneNpc oneNpc = this.m_doc.GetOneNpc(npcid); + NpcFeeling.RowData npcTableInfoById = XNPCFavorDocument.GetNpcTableInfoById(npcid); + bool flag = npcTableInfoById != null; + if (flag) + { + ixuisprite.SetSprite(npcTableInfoById.relicsIcon); + } + ixuilabel2.SetText((oneNpc != null) ? string.Empty : XStringDefineProxy.GetString("NPCNotActive2")); + ixuilabel.SetText((oneNpc != null) ? string.Format("Lv.{0}", oneNpc.level) : string.Empty); + ixuisprite.ID = (ulong)npcid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickNpc)); + } + } + + private void SetUpEffects() + { + bool flag = this.SelectedUnionId > 0u; + if (flag) + { + NpcFeelingUnite activeUniteInfo = this.m_doc.GetActiveUniteInfo(this.SelectedUnionId); + uint num = (activeUniteInfo == null) ? 0u : XNPCFavorDocument.GetUnionEffectLev(this.SelectedUnionId, activeUniteInfo.level); + uint num2 = num / 5u; + this.m_GroupEffecWrapContent.SetContentCount((int)(num2 + 5u), false); + this.m_GroupEffectScrollView.ResetPosition(); + } + } + + private void GroupEffectUpdate(Transform item, int index) + { + bool flag = this.SelectedUnionId > 0u; + if (flag) + { + NpcFeelingUnite activeUniteInfo = this.m_doc.GetActiveUniteInfo(this.SelectedUnionId); + uint num = (activeUniteInfo == null) ? 0u : XNPCFavorDocument.GetUnionEffectLev(this.SelectedUnionId, activeUniteInfo.level); + uint num2 = num / 5u; + uint num3 = num % 5u; + uint num4 = 5u - num3; + bool flag2 = index < (int)(num2 + 5u); + if (flag2) + { + bool flag3 = (long)index < (long)((ulong)num2); + if (flag3) + { + this.DrawEffect(item, 2); + } + else + { + bool flag4 = index < (int)(num2 + num3); + if (flag4) + { + this.DrawEffect(item, 1); + } + else + { + bool flag5 = index < (int)(num2 + num3 + num4); + if (flag5) + { + this.DrawEffect(item, 0); + } + } + } + } + else + { + this.DrawEffect(item, -1); + } + } + } + + private void DrawEffect(Transform item, int num) + { + IXUISprite ixuisprite = item.Find("rt/Icon").GetComponent("XUISprite") as IXUISprite; + Transform transform = item.Find("rt"); + switch (num) + { + case -1: + transform.gameObject.SetActive(false); + break; + case 0: + transform.gameObject.SetActive(true); + ixuisprite.SetAlpha(0f); + break; + case 1: + transform.gameObject.SetActive(true); + ixuisprite.SetAlpha(1f); + ixuisprite.SetSprite("Group_0_0"); + break; + case 2: + transform.gameObject.SetActive(true); + ixuisprite.SetAlpha(1f); + ixuisprite.SetSprite("Group_0_1"); + break; + } + } + + private void RefreshAttr() + { + bool flag = this.SelectedUnionId > 0u; + if (flag) + { + this.m_AttrPool.FakeReturnAll(); + NpcFeelingUnite activeUniteInfo = this.m_doc.GetActiveUniteInfo(this.SelectedUnionId); + NpcUniteAttr.RowData unionTableInfoByUnionId = XNPCFavorDocument.GetUnionTableInfoByUnionId(this.SelectedUnionId, (activeUniteInfo == null) ? 0u : activeUniteInfo.level); + SeqListRef attr = unionTableInfoByUnionId.Attr; + for (int i = 0; i < attr.Count; i++) + { + GameObject gameObject = this.m_AttrPool.FetchGameObject(false); + gameObject.transform.parent = this.m_AttrGrid.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + uint attrValue = (activeUniteInfo == null) ? 0u : attr[i, 1]; + this.DrawAttr(gameObject.transform, attr[i, 0], attrValue); + } + this.m_AttrPool.ActualReturnAll(false); + this.m_AttrGrid.Refresh(); + NpcUniteAttr.RowData nextUnionDataByUnionId = XNPCFavorDocument.GetNextUnionDataByUnionId(this.SelectedUnionId, (activeUniteInfo == null) ? 0u : activeUniteInfo.level); + bool flag2 = nextUnionDataByUnionId != null; + if (flag2) + { + this.m_ActiveCondition.SetText(string.Format(XStringDefineProxy.GetString("NPCUnionActiveCondition"), nextUnionDataByUnionId.level)); + } + this.m_ActiveRedPoint.SetActive(this.m_doc.IsUnionCanActiveNextLevel(this.SelectedUnionId)); + } + } + + private void DrawAttr(Transform item, uint attrId, uint attrValue) + { + IXUILabel ixuilabel = item.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = item.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XAttributeCommon.GetAttrStr((int)attrId)); + ixuilabel2.SetText(XAttributeCommon.GetAttrValueStr(attrId, attrValue, true)); + } + + private void OnClickNpc(IXUISprite sp) + { + uint npcId = (uint)sp.ID; + bool flag = this.m_doc.View.IsVisible(); + if (flag) + { + this.m_doc.View.SkipToNpc(npcId); + } + } + + private bool OnClickNextLevelBtn(IXUIButton btn) + { + bool flag = this.SelectedUnionId > 0u; + if (flag) + { + NpcFeelingUnite activeUniteInfo = this.m_doc.GetActiveUniteInfo(this.SelectedUnionId); + NpcUniteAttr.RowData nextUnionDataByUnionId = XNPCFavorDocument.GetNextUnionDataByUnionId(this.SelectedUnionId, (activeUniteInfo == null) ? 0u : activeUniteInfo.level); + bool flag2 = nextUnionDataByUnionId != null; + if (flag2) + { + string @string = XStringDefineProxy.GetString("NPCNextAddition"); + SeqListRef attr = nextUnionDataByUnionId.Attr; + StringBuilder sb = XNPCFavorDocument.sb; + sb.Length = 0; + for (int i = 0; i < attr.Count; i++) + { + uint attrid = attr[i, 0]; + uint attrValue = attr[i, 1]; + bool flag3 = i != 0; + if (flag3) + { + sb.Append("\n"); + } + sb.Append(string.Format("{0}{1}", XAttributeCommon.GetAttrStr((int)attrid), XAttributeCommon.GetAttrValueStr(attrid, attrValue, true))); + } + string label = sb.ToString(); + XSingleton.singleton.ShowModalDialogWithTitle(@string, label, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), null, 50); + } + } + return true; + } + + private bool OnClickActiveBtn(IXUIButton btn) + { + bool flag = this.SelectedUnionId > 0u; + if (flag) + { + bool flag2 = this.m_doc.IsUnionCanActiveNextLevel(this.SelectedUnionId); + if (flag2) + { + NpcFeelingUnite activeUniteInfo = this.m_doc.GetActiveUniteInfo(this.SelectedUnionId); + NpcUniteAttr.RowData nextUnionDataByUnionId = XNPCFavorDocument.GetNextUnionDataByUnionId(this.SelectedUnionId, (activeUniteInfo == null) ? 0u : activeUniteInfo.level); + bool flag3 = nextUnionDataByUnionId != null; + if (flag3) + { + this.m_doc.ReqSrvActiveUnionLevel(this.SelectedUnionId, nextUnionDataByUnionId.level); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCUnionNotReachActive"), "fece00"); + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNPCUnionMemSubHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNPCUnionMemSubHandler.cs.meta new file mode 100644 index 00000000..06cd06b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNPCUnionMemSubHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a96c1970a69d784da3a8631f5447c24 +timeCreated: 1611403164 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XNpcAttrHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XNpcAttrHandler.cs new file mode 100644 index 00000000..c284ee6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNpcAttrHandler.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XNpcAttrHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/NPCBlessing/NpcAttrHandler"; + } + } + + private XNPCFavorDocument m_doc; + + private IXUIList m_BasicUIList; + + private XUIPool m_BasicAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIList m_OtherUIList; + + private XUIPool m_OtherAttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this.m_doc = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this.m_BasicUIList = (base.transform.Find("AttrGrid").GetComponent("XUIList") as IXUIList); + Transform transform = this.m_BasicUIList.gameObject.transform.Find("Tpl"); + this.m_BasicAttrPool.SetupPool(this.m_BasicUIList.gameObject, transform.gameObject, 10u, false); + transform.gameObject.SetActive(false); + this.m_OtherUIList = (base.transform.Find("NoBasicAttrGrid").GetComponent("XUIList") as IXUIList); + Transform transform2 = this.m_OtherUIList.gameObject.transform.Find("Tpl"); + this.m_OtherAttrPool.SetupPool(this.m_OtherUIList.gameObject, transform2.gameObject, 5u, false); + transform2.gameObject.SetActive(false); + } + + protected override void OnShow() + { + this.RefreshData(); + } + + public override void RefreshData() + { + this.RefreshAttr(); + } + + private void RefreshAttr() + { + this.m_BasicAttrPool.FakeReturnAll(); + this.m_OtherAttrPool.FakeReturnAll(); + Dictionary dictSumAttr = this.m_doc.DictSumAttr; + foreach (KeyValuePair keyValuePair in dictSumAttr) + { + uint key = keyValuePair.Key; + //Dictionary.Enumerator enumerator; + //keyValuePair = enumerator.Current; + uint value = keyValuePair.Value; + bool flag = XAttributeCommon.IsBasicRange((int)key); + GameObject gameObject; + if (flag) + { + gameObject = this.m_BasicAttrPool.FetchGameObject(false); + gameObject.transform.parent = this.m_BasicUIList.gameObject.transform; + } + else + { + gameObject = this.m_OtherAttrPool.FetchGameObject(false); + gameObject.transform.parent = this.m_OtherUIList.gameObject.transform; + } + gameObject.transform.localScale = Vector3.one; + this.DrawAttr(gameObject.transform, key, value); + } + this.m_BasicAttrPool.ActualReturnAll(false); + this.m_OtherAttrPool.ActualReturnAll(false); + this.m_BasicUIList.Refresh(); + this.m_OtherUIList.Refresh(); + } + + public override void OnUnload() + { + this.m_doc = null; + base.OnUnload(); + } + + private void DrawAttr(Transform item, uint attrId, uint attrValue) + { + IXUILabel ixuilabel = item.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = item.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XAttributeCommon.GetAttrStr((int)attrId)); + ixuilabel2.SetText(XAttributeCommon.GetAttrValueStr(attrId, attrValue, true)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XNpcAttrHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XNpcAttrHandler.cs.meta new file mode 100644 index 00000000..6c320c7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XNpcAttrHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2b3ce1300e04a54daf75e3cda743a56 +timeCreated: 1611404495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XPartnerDramaOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XPartnerDramaOperate.cs new file mode 100644 index 00000000..5ab08f84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPartnerDramaOperate.cs @@ -0,0 +1,78 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XPartnerDramaOperate : XDramaOperate + { + public override void ShowNpc(XNpc npc) + { + base.ShowNpc(npc); + XDramaOperateParam data = XDataPool.GetData(); + data.Text = base._GetRandomNpcText(npc); + data.Npc = npc; + data.AppendButton(XSingleton.singleton.GetString("PartnerNpcOk"), new ButtonClickEventHandler(this._OnOKClicked), 0UL); + data.AppendButton(XSingleton.singleton.GetString("PartnerNpcCancel"), null, 0UL); + base._FireEvent(data); + } + + private bool _OnOKClicked(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XPartnerDocument doc = XPartnerDocument.Doc; + bool flag = doc.PartnerID > 0UL; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("HadGetedPartner"), "fece00"); + result = true; + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag2 = specificDocument.currentDungeonType != TeamLevelType.TeamLevelPartner; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("NeedPartnerTeam"), "fece00"); + result = true; + } + else + { + bool flag3 = !specificDocument.bInTeam; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("TEAM_NOT_HAVE_TEAM"), "fece00"); + result = true; + } + else + { + bool flag4 = specificDocument.MyTeam.members.Count != XSingleton.singleton.GetInt("PartnerNum"); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PartnerTeamNumNotEnough"), "fece00"); + result = true; + } + else + { + bool flag5 = !specificDocument.bIsLeader; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("NotPartnerTeamLeader"), "fece00"); + result = true; + } + else + { + specificDocument.ReqTeamOp(TeamOperate.TEAM_START_BATTLE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + result = true; + } + } + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XPartnerDramaOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XPartnerDramaOperate.cs.meta new file mode 100644 index 00000000..c0720e8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPartnerDramaOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5ae003921a33b1742a1446fb55cb71d4 +timeCreated: 1611403793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XPetMainBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XPetMainBehaviour.cs new file mode 100644 index 00000000..6bfed796 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPetMainBehaviour.cs @@ -0,0 +1,178 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XPetMainBehaviour : DlgBehaviourBase + { + public Transform m_Bg; + + public IXUIButton m_Close = null; + + public IXUIButton m_Help; + + public IXUIScrollView m_PetListScrollView; + + public IXUIWrapContent m_WrapContent; + + public IXUIProgress m_ExpBar; + + public IXUILabel m_Exp; + + public IXUILabel m_ExpBarLevel; + + public GameObject m_FeedFrame; + + public GameObject m_SkillFrame; + + public IXUIButton m_BtnMount; + + public IXUIButton m_BtnSkillLearn; + + public GameObject m_ContentFrame; + + public Transform m_Fx; + + public IXUILabel m_MoodLevel; + + public IXUISprite m_MoodIcon; + + public IXUIProgress m_FullDegreeBar; + + public IXUILabel m_FullDegree; + + public IXUISprite m_FullDegreeColor; + + public IXUISprite m_FullDegreeSp; + + public Transform m_FullDegreeTip; + + public Transform m_MoodTip; + + public IXUISprite m_FullDegreeClose; + + public IXUISprite m_MoodClose; + + public IXUIButton m_Throw; + + public IXUIButton m_Activation; + + public IXUIButton m_ExpTransfer; + + public IXUIButton m_TravelSet; + + public GameObject m_ActivationSelected; + + public IXUILabel m_ActivationLabel; + + public IXUISprite m_Sex; + + public IXUILabel m_Name; + + public IXUILabel m_Level; + + public IXUILabel m_SpeedUp; + + public IXUILabel m_PPT; + + public IXUILabel m_BtnMountLabel; + + public IXUILabel m_FullDegreeLabel; + + public IXUILabel m_MoodLabel; + + public Transform m_FeedRedPoint; + + public IXUILabel m_ExpPrivilegeLabel; + + public IXUISprite m_ExpPrivilegeSp; + + public IXUISprite m_PrivilegeBg; + + public IXUISprite m_Caress; + + public Transform m_Talk; + + public IXUILabel m_TalkLabel; + + public IXUILabel m_GoGetPet; + + public IXUILabel m_GoGetFeed; + + public XUIPool m_StarPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_AttributePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IUIDummy m_PetSnapshot; + + private void Awake() + { + this.m_Bg = base.transform.Find("Bg"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_Fx = base.transform.Find("Bg/Fx"); + this.m_WrapContent = (base.transform.Find("Bg/PetListPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_PetListScrollView = (base.transform.Find("Bg/PetListPanel").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = base.transform.Find("Bg/ContentFrame"); + this.m_ContentFrame = transform.gameObject; + this.m_ExpPrivilegeSp = (this.m_ContentFrame.transform.Find("Privilege").GetComponent("XUISprite") as IXUISprite); + this.m_PrivilegeBg = (this.m_ContentFrame.transform.Find("Privilege/T/p").GetComponent("XUISprite") as IXUISprite); + this.m_ExpPrivilegeLabel = (this.m_ContentFrame.transform.Find("Privilege/T").GetComponent("XUILabel") as IXUILabel); + this.m_Caress = (this.m_ContentFrame.transform.Find("Caress").GetComponent("XUISprite") as IXUISprite); + this.m_Talk = this.m_ContentFrame.transform.Find("Talk"); + this.m_TalkLabel = (this.m_ContentFrame.transform.Find("Talk/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ExpBar = (transform.Find("ExpBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_Exp = (this.m_ExpBar.gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel); + this.m_ExpBarLevel = (this.m_ExpBar.gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_FeedFrame = transform.Find("FeedFrame").gameObject; + this.m_GoGetFeed = (this.m_FeedFrame.transform.Find("ItemPanel/NoFeed/GoGetFeed").GetComponent("XUILabel") as IXUILabel); + this.m_FeedRedPoint = this.m_FeedFrame.transform.Find("BtnFeed/RedPoint"); + transform = base.transform.Find("Bg/ContentFrame/Right"); + this.m_BtnMount = (transform.Find("BtnMount").GetComponent("XUIButton") as IXUIButton); + this.m_BtnMountLabel = (transform.Find("BtnMount/Label").GetComponent("XUILabel") as IXUILabel); + this.m_BtnSkillLearn = (transform.Find("BtnSkillLearn").GetComponent("XUIButton") as IXUIButton); + this.m_Sex = (transform.Find("DetailTip/Sex").GetComponent("XUISprite") as IXUISprite); + this.m_Name = (transform.Find("DetailTip/Name").GetComponent("XUILabel") as IXUILabel); + this.m_Level = (transform.Find("DetailTip/Level").GetComponent("XUILabel") as IXUILabel); + this.m_SpeedUp = (transform.Find("DetailTip/SpeedUp").GetComponent("XUILabel") as IXUILabel); + this.m_PPT = (transform.Find("DetailTip/PPT").GetComponent("XUILabel") as IXUILabel); + this.m_SkillFrame = transform.Find("DetailTip/Skill").gameObject; + Transform transform2 = transform.Find("DetailTip/Attribute/AttributeTpl"); + Transform transform3 = transform.transform.Find("DetailTip/Attribute/AttributeTpl/Star/StarTpl"); + this.m_StarPool.SetupPool(null, transform3.gameObject, XPetMainView.STAR_MAX, false); + int num = 0; + while ((long)num < (long)((ulong)XPetMainView.STAR_MAX)) + { + GameObject gameObject = this.m_StarPool.FetchGameObject(false); + gameObject.name = string.Format("Star{0}", num); + num++; + } + this.m_AttributePool.SetupPool(null, transform2.gameObject, XPetMainView.ATTRIBUTE_NUM_MAX, false); + transform = base.transform.Find("Bg/ContentFrame/LeftUp"); + this.m_Throw = (transform.Find("Throw").GetComponent("XUIButton") as IXUIButton); + this.m_Activation = (transform.Find("Activation").GetComponent("XUIButton") as IXUIButton); + this.m_ActivationSelected = transform.Find("Activation/Selected").gameObject; + this.m_ActivationLabel = (transform.Find("Activation/Label").GetComponent("XUILabel") as IXUILabel); + this.m_ExpTransfer = (transform.Find("ExpTransfer").GetComponent("XUIButton") as IXUIButton); + this.m_TravelSet = (transform.Find("TravelSet").GetComponent("XUIButton") as IXUIButton); + transform = base.transform.Find("Bg/ContentFrame/RightUp"); + this.m_FullDegreeBar = (transform.Find("FullDegreeBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_FullDegreeSp = (this.m_FullDegreeBar.gameObject.transform.Find("Eat").GetComponent("XUISprite") as IXUISprite); + this.m_FullDegree = (this.m_FullDegreeBar.gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel); + this.m_FullDegreeColor = (this.m_FullDegreeBar.gameObject.transform.Find("Overlay").GetComponent("XUISprite") as IXUISprite); + this.m_FullDegreeLabel = (this.m_FullDegreeBar.gameObject.transform.Find("Tip/Label").GetComponent("XUILabel") as IXUILabel); + this.m_FullDegreeClose = (this.m_FullDegreeBar.gameObject.transform.Find("Tip/Close").GetComponent("XUISprite") as IXUISprite); + this.m_FullDegreeTip = this.m_FullDegreeBar.gameObject.transform.Find("Tip"); + this.m_MoodIcon = (transform.Find("Mood").GetComponent("XUISprite") as IXUISprite); + this.m_MoodLevel = (transform.Find("Mood/Level").GetComponent("XUILabel") as IXUILabel); + this.m_MoodLabel = (transform.Find("Mood/Tip/Label").GetComponent("XUILabel") as IXUILabel); + this.m_MoodClose = (transform.Find("Mood/Tip/Close").GetComponent("XUISprite") as IXUISprite); + this.m_MoodTip = transform.Find("Mood/Tip"); + this.m_PetSnapshot = (this.m_ContentFrame.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_GoGetPet = (base.transform.Find("Bg/GoGetPet").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XPetMainBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XPetMainBehaviour.cs.meta new file mode 100644 index 00000000..1c8ef4d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPetMainBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cb6d9768613681429fba6e4780e2687 +timeCreated: 1611403998 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XPetMainView.cs b/Client/Assets/Scripts/XMainClient/UI/XPetMainView.cs new file mode 100644 index 00000000..a6c85dcf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPetMainView.cs @@ -0,0 +1,923 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XPetMainView : DlgBase + { + public XFoodSelectorHandler FoodSelectorHandler + { + get + { + return this.m_FoodSelectorHandler; + } + } + + public XPetSkillHandler SkillHandler + { + get + { + return this.m_SkillHandler; + } + } + + public override string fileName + { + get + { + return "GameSystem/PetMainDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XPetDocument doc; + + private XFoodSelectorHandler m_FoodSelectorHandler; + + private PairsPetSetHandler m_setHandler; + + public XDummy m_Dummy; + + private XPetSkillHandler m_SkillHandler; + + public PetExpTransferHandler ExpTransferHandler; + + public PetSkillLearnHandler SkillLearnHandler; + + public static readonly uint STAR_MAX = 10u; + + public static readonly uint ATTRIBUTE_NUM_MAX = 10u; + + private uint _RefreshDataTimerID = 0u; + + private uint _PlayActionTimerID = 0u; + + private uint _PlayBubbleTimerID = 0u; + + private XPetMainView.PetStatus _PetStatus; + + public XFx _LevelUpFx; + + private XFx _MoodUpFx; + + private XFx _EatUpFx; + + private XFx _GetFx; + + private enum PetStatus + { + IDLE, + IDLE_PEOPLE, + Rand, + EAT, + CARESS + } + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XPetDocument.uuID); + this.doc.View = this; + DlgHandlerBase.EnsureCreate(ref this.m_FoodSelectorHandler, base.uiBehaviour.m_FeedFrame, null, true); + DlgHandlerBase.EnsureCreate(ref this.m_SkillHandler, base.uiBehaviour.m_SkillFrame, null, true); + DlgHandlerBase.EnsureCreate(ref this.ExpTransferHandler, base.uiBehaviour.m_Bg, false, this); + DlgHandlerBase.EnsureCreate(ref this.SkillLearnHandler, base.uiBehaviour.m_Bg, false, null); + DlgHandlerBase.EnsureCreate(ref this.m_setHandler, base.uiBehaviour.m_Bg, false, null); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("XPetMainView"); + this.InitShow(); + this.m_FoodSelectorHandler.ShowBag(false); + this.doc.Select(this.doc.DefaultPet, true); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("XPetMainView"); + this.RefreshPetModel(); + this.m_FoodSelectorHandler.ShowBag(false); + } + + private void InitShow() + { + this.doc.ClearPetAnimation(); + XSingleton.singleton.KillTimer(this._RefreshDataTimerID); + XSingleton.singleton.KillTimer(this._PlayActionTimerID); + XSingleton.singleton.KillTimer(this._PlayBubbleTimerID); + } + + public void UnloadFx(XFx fx) + { + bool flag = fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(fx, true); + fx = null; + } + } + + private void UnloadShow() + { + this.doc.ClearPetAnimation(); + XSingleton.singleton.KillTimer(this._RefreshDataTimerID); + XSingleton.singleton.KillTimer(this._PlayActionTimerID); + XSingleton.singleton.KillTimer(this._PlayBubbleTimerID); + this._RefreshDataTimerID = 0u; + this._PlayActionTimerID = 0u; + this._PlayBubbleTimerID = 0u; + this.UnloadFx(this._LevelUpFx); + this.UnloadFx(this._MoodUpFx); + this.UnloadFx(this._EatUpFx); + this.UnloadFx(this._GetFx); + bool flag = base.uiBehaviour.m_PetSnapshot != null; + if (flag) + { + base.uiBehaviour.m_PetSnapshot.RefreshRenderQueue = null; + } + base.Return3DAvatarPool(); + } + + protected override void OnHide() + { + this.UnloadShow(); + this.doc.HasNewPet = false; + base.OnHide(); + } + + protected override void OnUnload() + { + this.UnloadShow(); + this.doc.View = null; + this.doc = null; + DlgHandlerBase.EnsureUnload(ref this.SkillLearnHandler); + DlgHandlerBase.EnsureUnload(ref this.ExpTransferHandler); + DlgHandlerBase.EnsureUnload(ref this.m_FoodSelectorHandler); + DlgHandlerBase.EnsureUnload(ref this.m_SkillHandler); + DlgHandlerBase.EnsureUnload(ref this.m_setHandler); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnPetListItemUpdated)); + base.uiBehaviour.m_BtnMount.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnMountClicked)); + base.uiBehaviour.m_BtnSkillLearn.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSkillLearnClicked)); + base.uiBehaviour.m_Activation.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnActivationClicked)); + base.uiBehaviour.m_Throw.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnThrowClicked)); + base.uiBehaviour.m_ExpTransfer.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnExpTransferClicked)); + base.uiBehaviour.m_TravelSet.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnTravelSetClicked)); + base.uiBehaviour.m_MoodClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnMoodCloseClick)); + base.uiBehaviour.m_FullDegreeClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnFullDegreeCloseClick)); + base.uiBehaviour.m_FullDegreeSp.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnShowFullDegreeTip)); + base.uiBehaviour.m_MoodIcon.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnShowMoodTip)); + base.uiBehaviour.m_Caress.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCaressClick)); + base.uiBehaviour.m_GoGetPet.ID = ulong.Parse(XSingleton.singleton.GetValue("PetGoBuyPet")); + base.uiBehaviour.m_GoGetPet.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnGoClick)); + base.uiBehaviour.m_GoGetFeed.ID = ulong.Parse(XSingleton.singleton.GetValue("PetGoBuyFeed")); + base.uiBehaviour.m_GoGetFeed.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnGoClick)); + base.uiBehaviour.m_PrivilegeBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMemberPrivilegeClicked)); + } + + private void OnMemberPrivilegeClicked(IXUISprite btn) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Horse); + return true; + } + + private void _OnGoClick(IXUILabel go) + { + XSingleton.singleton.OpenSystem((XSysDefine)go.ID, 0UL); + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void _OnShowFullDegreeTip(IXUISprite iSp) + { + bool activeSelf = base.uiBehaviour.m_FullDegreeTip.gameObject.activeSelf; + if (activeSelf) + { + base.uiBehaviour.m_FullDegreeTip.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_FullDegreeTip.gameObject.SetActive(true); + base.uiBehaviour.m_MoodTip.gameObject.SetActive(false); + base.uiBehaviour.m_FullDegreeLabel.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("PET_FULL_DEGREE_TIP"))); + } + } + + private void _OnShowMoodTip(IXUISprite iSp) + { + bool activeSelf = base.uiBehaviour.m_MoodTip.gameObject.activeSelf; + if (activeSelf) + { + base.uiBehaviour.m_MoodTip.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_MoodTip.gameObject.SetActive(true); + base.uiBehaviour.m_FullDegreeTip.gameObject.SetActive(false); + PetMoodTipsTable.RowData petMoodTip = this.doc.GetPetMoodTip(this.doc.CurSelectedPet.Mood); + base.uiBehaviour.m_MoodLabel.SetText(petMoodTip.tips); + XSingleton.singleton.AddLog("Mood:" + this.doc.CurSelectedPet.Mood, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + private void _OnMoodCloseClick(IXUISprite iSp) + { + base.uiBehaviour.m_MoodTip.gameObject.SetActive(false); + } + + private void _OnFullDegreeCloseClick(IXUISprite iSp) + { + base.uiBehaviour.m_FullDegreeTip.gameObject.SetActive(false); + } + + private void _OnCaressClick(IXUISprite iSp) + { + this.doc.ReqPetTouch(); + } + + public void RefreshPage(bool bResetPosition = true) + { + this.RefreshList(bResetPosition); + this.RefreshContent(); + } + + public void RefreshContent() + { + XPet curSelectedPet = this.doc.CurSelectedPet; + bool flag = curSelectedPet == null; + if (flag) + { + base.uiBehaviour.m_ContentFrame.SetActive(false); + } + else + { + base.uiBehaviour.m_ContentFrame.SetActive(true); + this.RefreshBaseInfo(); + this.RefreshAttribute(); + this.RefreshExp(); + this.RefreshFullDegree(); + this.RefreshMood(); + this.RefreshPrivilege(); + base.uiBehaviour.m_FeedRedPoint.gameObject.SetActive(this.doc.HasRedPoint && curSelectedPet.UID == this.doc.CurFightUID); + } + this.m_SkillHandler.Refresh(curSelectedPet); + } + + public void RefreshPrivilege() + { + base.uiBehaviour.m_ExpPrivilegeSp.gameObject.SetActive(false); + } + + public void RefreshPetModel() + { + bool flag = this.doc.CurSelectedPet == null; + if (!flag) + { + XSingleton.singleton.KillTimer(this._PlayActionTimerID); + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, XPetDocument.GetPresentID(this.doc.CurSelectedPet.ID), this.m_uiBehaviour.m_PetSnapshot, this.m_Dummy, 1f); + this.PetActionChange(XPetActionFile.IDLE, this.doc.CurSelectedPet.ID, this.m_Dummy, true); + } + } + + public void PlayPetLevelUpFx(Transform t, bool follow = false) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + Vector3 scale; + scale= new Vector3(t.localScale.x / 300f, t.localScale.y / 300f, t.localScale.z / 300f); + bool flag2 = this._LevelUpFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._LevelUpFx, true); + } + this._LevelUpFx = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/Roles/Lzg_Ty/P_level_up_02", t, Vector3.zero, scale, 1f, follow, 5f, true); + } + } + + public void PlayPetMoodUpFx() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = this._MoodUpFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._MoodUpFx, true); + } + this._MoodUpFx = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/VehicleFX/Vehicle_weiyang", base.uiBehaviour.m_Fx, Vector3.zero, Vector3.one, 1f, false, 5f, true); + } + } + + public void PlayPetEatUpFx() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = this._EatUpFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._EatUpFx, true); + } + this._EatUpFx = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/VehicleFX/Vehicle_weiyang_Clip01", base.uiBehaviour.m_Fx, Vector3.zero, Vector3.one, 1f, false, 5f, true); + } + } + + public void PlayPetGetFx() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = this._GetFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._GetFx, true); + } + this._GetFx = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_yh", base.uiBehaviour.m_Fx, Vector3.zero, Vector3.one, 1f, true, 5f, true); + XSingleton.singleton.PlayUISound("Audio/UI/UI_Gethorse", true, AudioChannel.Action); + } + } + + public void SetPetSex(IXUISprite sp, PetSex sex) + { + bool flag = sex == PetSex.Girl; + if (flag) + { + sp.SetSprite("zq_Gender0"); + } + else + { + bool flag2 = sex == PetSex.Boy; + if (flag2) + { + sp.SetSprite("zq_Gender1"); + } + else + { + XSingleton.singleton.AddErrorLog("Pet Sex is Null", null, null, null, null, null); + } + } + sp.MakePixelPerfect(); + } + + public void RefreshBaseInfo() + { + XPet curSelectedPet = this.doc.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + this.SetPetSex(base.uiBehaviour.m_Sex, curSelectedPet.Sex); + base.uiBehaviour.m_Name.SetText(curSelectedPet.Name); + base.uiBehaviour.m_PPT.SetText(curSelectedPet.PPT.ToString()); + base.uiBehaviour.m_Level.SetText(string.Format("Lv.{0}", curSelectedPet.showLevel.ToString())); + base.uiBehaviour.m_ActivationSelected.SetActive(this.doc.CurFightUID == curSelectedPet.UID); + string text = (this.doc.CurFightUID == curSelectedPet.UID) ? XSingleton.singleton.GetString("ACTIVATED") : XSingleton.singleton.GetString("ACTIVATION"); + base.uiBehaviour.m_ActivationLabel.SetText(text); + text = ((this.doc.CurMount == curSelectedPet.UID) ? XSingleton.singleton.GetString("PET_DOWN") : XSingleton.singleton.GetString("PET_RIDE")); + base.uiBehaviour.m_BtnMountLabel.SetText(text); + } + } + + private void RefreshAttribute() + { + XPet curSelectedPet = this.doc.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(curSelectedPet.ID); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)petInfo.SpeedBuff, 1); + bool flag2 = buffData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Buff No Find!\nSp BuffId:" + petInfo.SpeedBuff, null, null, null, null, null); + } + bool flag3 = 1201 != (int)buffData.BuffChangeAttribute[0, 0]; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Buff No Find XAttr_RUN_SPEED_Percent.\nSp BuffId:" + petInfo.SpeedBuff, null, null, null, null, null); + } + base.uiBehaviour.m_SpeedUp.SetText(string.Format("{0}%", (buffData.BuffChangeAttribute[0, 1] + 100f).ToString())); + PetLevelTable.RowData petLevel = XPetDocument.GetPetLevel(curSelectedPet); + PetLevelTable.RowData petLevel2 = XPetDocument.GetPetLevel(curSelectedPet.ID, curSelectedPet.Level + 1); + base.uiBehaviour.m_AttributePool.ReturnAll(false); + int num = 0; + while ((long)num < (long)((ulong)XPetMainView.ATTRIBUTE_NUM_MAX)) + { + bool flag4 = num >= petLevel.PetsAttributes.Count; + if (!flag4) + { + GameObject gameObject = base.uiBehaviour.m_AttributePool.FetchGameObject(false); + int spriteHeight = (gameObject.transform.GetComponent("XUISprite") as IXUISprite).spriteHeight; + IXUILabel ixuilabel = gameObject.transform.Find("AttributeName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("AttributeName/AttributeVal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("AttributeName/GrowUp").GetComponent("XUILabel") as IXUILabel; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)spriteHeight * num), 0f); + string attrStr = XAttributeCommon.GetAttrStr((int)petLevel.PetsAttributes[num, 0]); + ixuilabel.SetText(attrStr); + uint num2 = 0u; + for (int i = 1; i <= curSelectedPet.Level; i++) + { + PetLevelTable.RowData petLevel3 = XPetDocument.GetPetLevel(curSelectedPet.ID, i); + num2 += petLevel3.PetsAttributes[num, 1]; + } + ixuilabel2.SetText(XAttributeCommon.GetAttrValueStr(petLevel.PetsAttributes[num, 0], num2, false)); + bool flag5 = petLevel2 != null; + if (flag5) + { + ixuilabel3.SetText(string.Format("+{0}", petLevel2.PetsAttributes[num, 1].ToString())); + } + else + { + ixuilabel3.SetText(""); + } + } + num++; + } + } + } + + public void RefreshExp() + { + XPet curSelectedPet = this.doc.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + bool flag2 = this.doc.IsMaxLevel(curSelectedPet.ID, curSelectedPet.showLevel); + if (flag2) + { + base.uiBehaviour.m_Exp.SetText(XSingleton.singleton.GetString("PET_LEVEL_MAX_TIP")); + base.uiBehaviour.m_ExpBar.value = 0f; + base.uiBehaviour.m_ExpBarLevel.SetText(string.Format("Lv.{0}", curSelectedPet.showLevel.ToString())); + this.doc.InPlayExpUp = false; + } + else + { + int num; + int num2; + this.doc.GetExpInfo(curSelectedPet, out num, out num2); + base.uiBehaviour.m_Exp.SetText(string.Format("{0}/{1}", num, num2)); + base.uiBehaviour.m_ExpBar.value = Math.Min((float)num / (float)num2, 1f); + base.uiBehaviour.m_ExpBarLevel.SetText(string.Format("Lv.{0}", curSelectedPet.showLevel.ToString())); + } + } + } + + public void RefreshFullDegree() + { + XPet curSelectedPet = this.doc.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(curSelectedPet.ID); + uint maxHungry = petInfo.maxHungry; + bool flag2 = maxHungry == 0u; + if (flag2) + { + XSingleton.singleton.AddErrorLog("FullDegreeMAX = 0", null, null, null, null, null); + } + else + { + base.uiBehaviour.m_FullDegree.SetText(string.Format("{0}%", curSelectedPet.showFullDegree)); + base.uiBehaviour.m_FullDegreeBar.value = curSelectedPet.showFullDegree / maxHungry; + bool flag3 = (ulong)curSelectedPet.showFullDegree >= (ulong)((long)int.Parse(this.doc.ColorLevel[0])); + Color color; + if (flag3) + { + color= new Color(0.6784314f, 0.8392157f, 0.09019608f); + } + else + { + bool flag4 = (ulong)curSelectedPet.showFullDegree >= (ulong)((long)int.Parse(this.doc.ColorLevel[1])); + if (flag4) + { + color= new Color(1f, 0.470588237f, 0.121568628f); + } + else + { + color= new Color(0.894117653f, 0.266666681f, 0.266666681f); + } + } + base.uiBehaviour.m_FullDegreeColor.SetColor(color); + } + } + } + + public void RefreshMood() + { + XPet curSelectedPet = this.doc.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + PetMoodTipsTable.RowData petMoodTip = this.doc.GetPetMoodTip(curSelectedPet.Mood); + bool flag2 = petMoodTip != null; + if (flag2) + { + base.uiBehaviour.m_MoodLevel.SetText(petMoodTip.tip); + base.uiBehaviour.m_MoodIcon.SetSprite(petMoodTip.icon); + } + } + } + + public void RefreshList(bool bResetPosition = true) + { + int num = Math.Min(this.doc.PetCountMax, (int)(this.doc.PetSeat + 1u)); + base.uiBehaviour.m_WrapContent.SetContentCount(num, false); + if (bResetPosition) + { + base.uiBehaviour.m_PetListScrollView.ResetPosition(); + } + else + { + base.uiBehaviour.m_WrapContent.RefreshAllVisibleContents(); + } + } + + public void SetTravelSetBtnStatus() + { + bool flag = this.doc.CurSelectedPet != null; + if (flag) + { + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(this.doc.CurSelectedPet.ID); + base.uiBehaviour.m_TravelSet.gameObject.SetActive(petInfo != null && petInfo.PetType == 1u); + } + } + + private void _OnPetListItemUpdated(Transform t, int index) + { + bool flag = index < 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("index:" + index, null, null, null, null, null); + } + else + { + List pets = this.doc.Pets; + IXUILabel ixuilabel = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Item/PetIcon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("Item/Quality").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("Mount").gameObject; + GameObject gameObject2 = t.Find("Fight").gameObject; + IXUISprite ixuisprite3 = t.Find("Unlock").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject3 = t.Find("New").gameObject; + GameObject gameObject4 = t.Find("Selected").gameObject; + GameObject gameObject5 = t.Find("Item").gameObject; + GameObject gameObject6 = t.Find("RedPoint").gameObject; + gameObject3.SetActive(false); + gameObject6.SetActive(false); + bool flag2 = index >= pets.Count; + if (flag2) + { + ixuilabel.SetText(""); + gameObject5.SetActive(false); + gameObject.SetActive(false); + gameObject2.SetActive(false); + gameObject4.SetActive(false); + bool flag3 = (long)index >= (long)((ulong)this.doc.PetSeat); + if (flag3) + { + ixuisprite3.gameObject.SetActive(true); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnUnlockClicked)); + } + else + { + ixuisprite3.gameObject.SetActive(false); + } + } + else + { + bool flag4 = this.doc.HasNewPet && index == pets.Count - 1; + if (flag4) + { + gameObject3.SetActive(true); + } + XPet xpet = pets[index]; + gameObject5.SetActive(true); + ixuilabel.SetText("Lv." + xpet.showLevel); + gameObject4.SetActive(index == this.doc.CurSelectedIndex); + gameObject.SetActive(xpet.UID == this.doc.CurMount); + gameObject2.SetActive(xpet.UID == this.doc.CurFightUID); + ixuisprite3.gameObject.SetActive(false); + gameObject6.SetActive(xpet.UID == this.doc.CurFightUID && this.doc.HasRedPoint); + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(xpet.ID); + bool flag5 = petInfo != null; + if (flag5) + { + ixuisprite.SetSprite(petInfo.icon, petInfo.Atlas, false); + } + ixuisprite2.SetSprite(XSingleton.singleton.GetItemQualityFrame((int)petInfo.quality, 0)); + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnPetClicked)); + } + } + } + + private void _OnUnlockClicked(IXUISprite iSp) + { + bool flag = (ulong)this.doc.PetSeat < (ulong)((long)this.doc.PetSeatBuy.Length); + if (flag) + { + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("PET_SEAT_BUY"), this.doc.PetSeatBuy[(int)this.doc.PetSeat]), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._BuySeat)); + } + else + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "PetSeat:", + this.doc.PetSeat, + "\nPetSeatMAX", + this.doc.PetSeatBuy.Length + }), null, null, null, null, null); + } + } + + private bool _BuySeat(IXUIButton btn) + { + this.doc.ReqBuySeat(); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void _OnPetClicked(IXUISprite iSp) + { + int index = (int)iSp.ID; + this.doc.Select(index, false); + } + + private bool _OnMountClicked(IXUIButton btn) + { + this.doc.ReqMount(); + return true; + } + + private bool _OnSkillLearnClicked(IXUIButton btn) + { + this.SkillLearnHandler.SetVisible(true); + return true; + } + + private bool _OnActivationClicked(IXUIButton btn) + { + this.doc.ReqFight(); + return true; + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + base.Return3DAvatarPool(); + } + + private bool _OnThrowClicked(IXUIButton btn) + { + XSingleton.singleton.ShowModalDialog(string.Format(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("PET_THROW")), this.doc.CurSelectedPet.Name), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._PetThrow)); + return true; + } + + private bool _OnExpTransferClicked(IXUIButton btn) + { + bool flag = this.doc.Pets.Count < 2; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PET_TRANSFER_NOT_ENOUGH_TIP"), "fece00"); + result = false; + } + else + { + bool flag2 = this.doc.CurSelectedPet == null; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PET_NO_SELECT"), "fece00"); + result = false; + } + else + { + this.ExpTransferHandler.SetVisible(true); + result = true; + } + } + return result; + } + + private bool _OnTravelSetClicked(IXUIButton btn) + { + bool flag = this.m_setHandler != null; + if (flag) + { + this.m_setHandler.SetVisible(true); + } + return true; + } + + private bool _PetThrow(IXUIButton btn) + { + this.doc.ReqRelease(); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private void AutoRefresh(object param) + { + bool flag = base.IsVisible() && this.doc.CurSelectedPet != null; + if (flag) + { + bool flag2 = !this.doc.InPlayExpUp; + if (flag2) + { + this.doc.ReqPetInfo(); + } + this._RefreshDataTimerID = XSingleton.singleton.SetTimer(30f, new XTimerMgr.ElapsedEventHandler(this.AutoRefresh), null); + this.doc.PlayRandAction(); + } + } + + public void RefreshAutoRefresh() + { + XSingleton.singleton.KillTimer(this._RefreshDataTimerID); + bool flag = base.IsVisible() && this.doc.CurSelectedPet != null; + if (flag) + { + bool flag2 = !this.doc.InPlayExpUp; + if (flag2) + { + this.doc.ReqPetInfo(); + } + this._RefreshDataTimerID = XSingleton.singleton.SetTimer(10f, new XTimerMgr.ElapsedEventHandler(this.AutoRefresh), null); + } + } + + private void RefreshAction(object param) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_Talk.gameObject.SetActive(false); + this.doc.PlayIdleAction(); + } + } + + private void CloseBubble(object param) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_Talk.gameObject.SetActive(false); + } + } + + public void PetActionChange(XPetActionFile Action, uint petID, XDummy m_Dummy, bool init = false) + { + bool flag = m_Dummy == null; + if (!flag) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + PetBubble.RowData petBubble = specificDocument.GetPetBubble(Action, petID); + string sefile = petBubble.SEFile; + bool flag2 = !string.IsNullOrEmpty(sefile); + if (flag2) + { + XSingleton.singleton.PlayUISound(sefile, true, AudioChannel.Action); + } + string actionFile = petBubble.ActionFile; + float length = m_Dummy.SetAnimationGetLength(actionFile); + XSingleton.singleton.AddLog("Pet Action:" + Action, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = Action == XPetActionFile.IDLE; + if (flag3) + { + this._PetStatus = XPetMainView.PetStatus.IDLE; + this.PlayActionTime(length); + } + bool flag4 = Action == XPetActionFile.IDLE_PEOPLE; + if (flag4) + { + this._PetStatus = XPetMainView.PetStatus.IDLE_PEOPLE; + this.PlayActionTime(length); + } + bool flag5 = Action == XPetActionFile.EAT; + if (flag5) + { + bool flag6 = this._PetStatus != XPetMainView.PetStatus.EAT; + if (flag6) + { + this._PetStatus = XPetMainView.PetStatus.EAT; + this.PlayActionTime(length); + this.PlayBubble(petBubble); + } + } + bool flag7 = Action == XPetActionFile.CARESS; + if (flag7) + { + bool flag8 = this._PetStatus != XPetMainView.PetStatus.CARESS; + if (flag8) + { + this._PetStatus = XPetMainView.PetStatus.CARESS; + this.PlayActionTime(length); + this.PlayBubble(petBubble); + } + } + bool flag9 = Action == XPetActionFile.LOSE || Action == XPetActionFile.HAPPY || Action == XPetActionFile.SLEEP || Action == XPetActionFile.HUNGER; + if (flag9) + { + bool flag10 = this._PetStatus == XPetMainView.PetStatus.IDLE; + if (flag10) + { + this._PetStatus = XPetMainView.PetStatus.Rand; + this.PlayActionTime(length); + this.PlayBubble(petBubble); + } + } + } + } + + private void PlayActionTime(float length) + { + XSingleton.singleton.KillTimer(this._PlayActionTimerID); + bool flag = length > 0f; + if (flag) + { + this._PlayActionTimerID = XSingleton.singleton.SetTimer(length, new XTimerMgr.ElapsedEventHandler(this.RefreshAction), null); + } + } + + private void PlayBubble(PetBubble.RowData petBubbleData) + { + string text = this.doc.RandomPlayBubble(petBubbleData.Bubble); + bool flag = !string.IsNullOrEmpty(text); + if (flag) + { + base.uiBehaviour.m_Talk.gameObject.SetActive(true); + base.uiBehaviour.m_TalkLabel.SetText(text); + XSingleton.singleton.KillTimer(this._PlayBubbleTimerID); + this._PlayBubbleTimerID = XSingleton.singleton.SetTimer(petBubbleData.BubbleTime, new XTimerMgr.ElapsedEventHandler(this.CloseBubble), null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XPetMainView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XPetMainView.cs.meta new file mode 100644 index 00000000..14d79aa7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPetMainView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35f1729fae2724047b70586dabb4345a +timeCreated: 1611403560 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs new file mode 100644 index 00000000..95cffa1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + public class XPlayerInfoChildBaseView + { + public IXUILabelSymbol lbName; + + public IXUILabel lbLevel; + + public IXUISprite sprHead; + + public virtual void FindFrom(Transform t) + { + Transform transform = t.Find("name"); + bool flag = null != transform; + if (flag) + { + this.lbName = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol); + } + transform = t.Find("level"); + bool flag2 = null != transform; + if (flag2) + { + this.lbLevel = (transform.GetComponent("XUILabel") as IXUILabel); + } + transform = t.Find("head"); + bool flag3 = null != transform; + if (flag3) + { + this.sprHead = (transform.GetComponent("XUISprite") as IXUISprite); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs.meta new file mode 100644 index 00000000..80cc9018 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildBaseView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 71226d073b84d3e458897072f4836068 +timeCreated: 1611403933 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs new file mode 100644 index 00000000..5c7de4a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs @@ -0,0 +1,38 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient.UI +{ + public class XPlayerInfoChildView : XPlayerInfoChildBaseView + { + public IXUILabel lbPPT; + + public IXUILabel lbGuildName; + + public IXUILabel uidLab; + + public override void FindFrom(Transform t) + { + base.FindFrom(t); + this.lbPPT = (t.Find("PPT").GetComponent("XUILabel") as IXUILabel); + this.lbGuildName = (t.Find("guild").GetComponent("XUILabel") as IXUILabel); + this.uidLab = (t.Find("UID").GetComponent("XUILabel") as IXUILabel); + } + + public void SetGuildName(string name) + { + bool flag = (string.Empty + name).Length > 0; + if (flag) + { + this.lbGuildName.Alpha = 1f; + this.lbGuildName.SetText(name); + } + else + { + this.lbGuildName.SetText(string.Empty); + this.lbGuildName.Alpha = 0f; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs.meta new file mode 100644 index 00000000..07365609 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPlayerInfoChildView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 51854dd372a3c5d468332f1266f60240 +timeCreated: 1611403706 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XPlayerMailView.cs b/Client/Assets/Scripts/XMainClient/UI/XPlayerMailView.cs new file mode 100644 index 00000000..25a8304a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPlayerMailView.cs @@ -0,0 +1,26 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XPlayerMailView : DlgHandlerBase + { + private XMailDocument _doc = null; + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XMailDocument.uuID) as XMailDocument); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XPlayerMailView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XPlayerMailView.cs.meta new file mode 100644 index 00000000..10a7d864 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XPlayerMailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c66746a9769a0d409567505ca49dab9 +timeCreated: 1611404099 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XQuickReplyBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XQuickReplyBehavior.cs new file mode 100644 index 00000000..c6ada7a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XQuickReplyBehavior.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XQuickReplyBehavior : DlgBehaviourBase + { + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_WrapScrollView = null; + + public IXUIWrapContent m_WrapContent = null; + + public IXUISprite m_Close = null; + + public IXUILabel m_Title = null; + + public IXUIButton m_Voice = null; + + public Transform m_WrapTemp = null; + + public Transform m_SpeakPanel = null; + + private void Awake() + { + this.m_SpeakPanel = base.transform.Find("Bg/SpeakPanel"); + this.m_Title = (base.transform.Find("Bg/Title/Label").GetComponent("XUILabel") as IXUILabel); + this.m_Voice = (base.transform.Find("Bg/BtnVoice").GetComponent("XUIButton") as IXUIButton); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_WrapScrollView = (base.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapTemp = base.transform.Find("Bg/ScrollView/WrapContent/Content"); + this.m_ItemPool.SetupPool(this.m_WrapTemp.parent.gameObject, this.m_WrapTemp.gameObject, 2u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XQuickReplyBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XQuickReplyBehavior.cs.meta new file mode 100644 index 00000000..edb16336 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XQuickReplyBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1e3808ba6633394f9227766078d356c +timeCreated: 1611404492 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XRewardLevelView.cs b/Client/Assets/Scripts/XMainClient/UI/XRewardLevelView.cs new file mode 100644 index 00000000..40b9a7b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XRewardLevelView.cs @@ -0,0 +1,270 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XRewardLevelView : DlgHandlerBase + { + public IXUIScrollView m_ScrollView; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_RemainTime; + + protected XAchievementDocument _doc; + + protected uint _remainTime; + + protected uint _timer; + + private uint _curID; + + protected override void Init() + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XAchievementDocument.uuID) as XAchievementDocument); + this._doc.RewardLevelView = this; + this.m_RemainTime = (base.PanelObject.transform.Find("RemainTime/Label").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.PanelObject.transform.Find("Panel"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform2 = base.PanelObject.transform.Find("Panel/RecordTpl/ItemReward/ItemTpl"); + this.m_RewardItemPool.SetupPool(transform.gameObject, transform2.gameObject, 30u, false); + transform2 = base.PanelObject.transform.Find("Panel/RecordTpl"); + this.m_RewardPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 10u, false); + } + + public void UpdateRedPoint() + { + this._doc.HasCompleteAchivement(XSysDefine.XSys_ServerActivity); + } + + protected override void OnShow() + { + base.OnShow(); + this._remainTime = 0u; + RpcC2G_QueryOpenGameActivityTime rpc = new RpcC2G_QueryOpenGameActivityTime(); + XSingleton.singleton.Send(rpc); + this.RefreshList(); + } + + public override void OnUnload() + { + this._remainTime = 0u; + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + } + this._doc.RewardLevelView = null; + base.OnUnload(); + } + + protected string GetActivityString(string format, int catergory, int param, AchivementState state) + { + string result; + if (catergory - 502 > 1) + { + bool flag = state == AchivementState.Exceed || state == AchivementState.Not_Achive; + if (flag) + { + result = string.Format(format, "[ff0000]" + param + "[-]"); + } + else + { + result = string.Format(format, "[00ff00]" + param + "[-]"); + } + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData((uint)param); + bool flag2 = state == AchivementState.Exceed || state == AchivementState.Not_Achive; + if (flag2) + { + result = string.Format(format, "[ff0000]" + sceneData.Comment + "[-]"); + } + else + { + result = string.Format(format, "[00ff00]" + sceneData.Comment + "[-]"); + } + } + return result; + } + + protected bool OnFetchClicked(IXUIButton button) + { + this._curID = (uint)button.ID; + int achivementFatigue = this._doc.GetAchivementFatigue(this._curID); + int @int = XSingleton.singleton.GetInt("MaxFatigue"); + int num = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE); + bool flag = achivementFatigue > 0 && num + achivementFatigue > @int; + if (flag) + { + XSingleton.singleton.ShowFatigueSureDlg(new ButtonClickEventHandler(this.SureToFetch)); + } + else + { + this._doc.FetchAchivement(this._curID); + } + return true; + } + + protected bool SureToFetch(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + this._doc.FetchAchivement(this._curID); + return true; + } + + protected bool OnLinkToClick(IXUIButton button) + { + return true; + } + + private int ActivityCompare(int act1, int act2) + { + AchivementState achivementState = this._doc.GetAchivementState((uint)act1); + AchivementState achivementState2 = this._doc.GetAchivementState((uint)act2); + bool flag = achivementState > achivementState2; + int result; + if (flag) + { + result = -1; + } + else + { + bool flag2 = achivementState < achivementState2; + if (flag2) + { + result = 1; + } + else + { + result = act1.CompareTo(act2); + } + } + return result; + } + + public void RefreshList() + { + this.UpdateRedPoint(); + this.m_RewardPool.ReturnAll(false); + this.m_RewardItemPool.ReturnAll(false); + this.m_ScrollView.SetPosition(0f); + List catergoryActivity = this._doc.GetCatergoryActivity(500); + catergoryActivity.Sort(new Comparison(this.ActivityCompare)); + for (int i = 0; i < catergoryActivity.Count; i++) + { + GameObject gameObject = this.m_RewardPool.FetchGameObject(false); + gameObject.name = "record" + catergoryActivity[i]; + gameObject.transform.localPosition = this.m_RewardPool.TplPos - new Vector3(0f, (float)(this.m_RewardPool.TplHeight * i)); + AchivementTable.RowData achivementData = this._doc.GetAchivementData((uint)catergoryActivity[i]); + bool flag = achivementData != null; + if (flag) + { + AchivementState achivementState = this._doc.GetAchivementState((uint)achivementData.AchievementID); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + string activityString = this.GetActivityString(achivementData.AchievementDescription, achivementData.AchievementCategory, achivementData.AchievementParam, achivementState); + ixuilabel.SetText(activityString); + IXUIButton ixuibutton = gameObject.transform.Find("Fetch").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)catergoryActivity[i]); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFetchClicked)); + GameObject gameObject2 = gameObject.transform.Find("Fetched").gameObject; + GameObject gameObject3 = gameObject.transform.Find("LinkTo").gameObject; + IXUIProgress ixuiprogress = gameObject.transform.Find("Progress").GetComponent("XUIProgress") as IXUIProgress; + ixuiprogress.gameObject.SetActive(false); + ixuibutton.gameObject.SetActive(false); + gameObject2.SetActive(false); + gameObject3.SetActive(false); + bool flag2 = achivementData.AchievementCategory == 504; + if (flag2) + { + ixuiprogress.gameObject.SetActive(true); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + int count = specificDocument.FashionBag.Count; + ixuiprogress.value = (float)count / (float)achivementData.AchievementParam; + IXUILabel ixuilabel2 = gameObject.transform.Find("Progress/T").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format("{0}/{1}", count, achivementData.AchievementParam)); + } + switch (achivementState) + { + case AchivementState.Exceed: + ixuibutton.gameObject.SetActive(true); + ixuibutton.SetEnable(false, false); + break; + case AchivementState.Fetched: + gameObject2.SetActive(true); + break; + case AchivementState.Not_Achive: + gameObject3.SetActive(true); + break; + case AchivementState.Achive_NoFetch: + ixuibutton.gameObject.SetActive(true); + ixuibutton.SetEnable(true, false); + break; + } + Transform parent = gameObject.transform.Find("ItemReward"); + for (int j = 0; j < achivementData.AchievementItem.Count; j++) + { + int num = achivementData.AchievementItem[j, 0]; + GameObject gameObject4 = this.m_RewardItemPool.FetchGameObject(false); + gameObject4.name = "reward item " + num; + gameObject4.transform.parent = parent; + gameObject4.transform.localPosition = this.m_RewardItemPool.TplPos + new Vector3((float)(this.m_RewardItemPool.TplWidth * j), 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject4, num, achivementData.AchievementItem[j, 1], false); + IXUISprite ixuisprite = gameObject4.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowItemDialog)); + } + } + } + } + + private void ShowItemDialog(IXUISprite spr) + { + XItem mainItem = XBagDocument.MakeXItem((int)spr.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, false, 0u); + } + + public void SetRemainTime(uint second) + { + this._remainTime = second; + this._RemainTime(); + } + + public void UpateRemainTime(object param) + { + bool flag = this._remainTime > 0u; + if (flag) + { + this._remainTime -= 1u; + this._RemainTime(); + } + } + + protected void _RemainTime() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this._remainTime > 0u; + if (flag2) + { + string @string = XStringDefineProxy.GetString("REMAIN_TIME"); + string text = XSingleton.singleton.TimeFormatSince1970((int)this._remainTime, @string, false); + this.m_RemainTime.SetText(text); + this._timer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.UpateRemainTime), null); + } + else + { + string string2 = XStringDefineProxy.GetString("GUILD_REDPACKET_TIMEOVER"); + this.m_RemainTime.SetText(string2); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XRewardLevelView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XRewardLevelView.cs.meta new file mode 100644 index 00000000..7c114b76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XRewardLevelView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9c36cfd1905d42e43a7dbd857045db72 +timeCreated: 1611404209 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XRwdMailView.cs b/Client/Assets/Scripts/XMainClient/UI/XRwdMailView.cs new file mode 100644 index 00000000..a7d049ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XRwdMailView.cs @@ -0,0 +1,121 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XRwdMailView : DlgHandlerBase + { + private XMailDocument _doc = null; + + public GameObject[] m_objitems = new GameObject[5]; + + public IXUIButton m_btnok; + + public IXUITweenTool m_tweenbg; + + public IXUITweenTool m_tweentitle; + + private MailItem m_item; + + private int[] m_to_x = new int[5]; + + private int[] m_from_x = new int[5]; + + private bool ani_start = false; + + private float ani_duration = 1f; + + private float ani_time = 0f; + + private int items_cnt = 1; + + private int ani_sped = 1; + + private Vector3 items_pos; + + protected override void Init() + { + base.Init(); + this.m_btnok = (base.PanelObject.transform.Find("OK").GetComponent("XUIButton") as IXUIButton); + this.m_tweenbg = (base.PanelObject.transform.Find("CriticalConfirm").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_tweentitle = (base.PanelObject.transform.Find("titleLabel").GetComponent("XUIPlayTween") as IXUITweenTool); + for (int i = 0; i < this.m_objitems.Length; i++) + { + this.m_objitems[i] = base.PanelObject.transform.Find("items/item" + i).gameObject; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnok.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOKClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XMailDocument.uuID) as XMailDocument); + this.m_tweenbg.PlayTween(true, -1f); + this.m_tweentitle.PlayTween(true, -1f); + this.m_tweenbg.RegisterOnFinishEventHandler(null); + this.m_tweentitle.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnTweenEnd)); + this.m_item = this._doc.GetMailItem(); + this.items_cnt = this.m_item.items.Count; + for (int i = 0; i < this.items_cnt; i++) + { + this.m_objitems[i].SetActive(true); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.m_item.items[i].itemID); + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_objitems[i], (int)this.m_item.items[i].itemID, (int)this.m_item.items[i].itemCount, false); + int num = (this.items_cnt % 2 == 0) ? ((int)((float)i - (float)this.items_cnt / 2f) * 100 + 50) : ((int)((float)i - (float)(this.items_cnt - 1) / 2f) * 100); + this.m_to_x[i] = num; + int num2 = (this.items_cnt % 2 == 0) ? ((int)(-(int)((float)this.items_cnt / 2f)) * 100 + 50) : ((int)((float)(-(float)(this.items_cnt - 1)) / 2f) * 100); + this.m_from_x[i] = 0; + this.items_pos = new Vector3(0f, 14f, 0f); + this.m_objitems[i].transform.localPosition = this.items_pos; + } + for (int j = this.m_item.items.Count; j < this.m_objitems.Length; j++) + { + this.m_objitems[j].SetActive(false); + } + } + + private void OnTweenEnd(IXUITweenTool tween) + { + this.ani_time = Time.realtimeSinceStartup; + this.ani_duration = 1f; + this.ani_start = true; + this.ani_sped = 6; + } + + public override void OnUpdate() + { + bool flag = this.ani_start; + if (flag) + { + bool flag2 = Time.realtimeSinceStartup - this.ani_time >= this.ani_duration; + if (flag2) + { + this.ani_start = false; + } + else + { + for (int i = 0; i < this.items_cnt; i++) + { + this.items_pos.x = Mathf.Lerp((float)this.m_from_x[i], (float)this.m_to_x[i], (float)this.ani_sped * (Time.realtimeSinceStartup - this.ani_time / this.ani_duration)); + this.m_objitems[i].transform.localPosition = this.items_pos; + } + } + } + base.OnUpdate(); + } + + private bool OnOKClick(IXUIButton btn) + { + this._doc.ReqMailOP(MailOP.Claim, this.m_item.id); + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XRwdMailView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XRwdMailView.cs.meta new file mode 100644 index 00000000..12589280 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XRwdMailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f276a418b7fe4d4cabe90d9f5106067 +timeCreated: 1611403700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSceneDamageRankHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XSceneDamageRankHandler.cs new file mode 100644 index 00000000..15798d4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSceneDamageRankHandler.cs @@ -0,0 +1,308 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSceneDamageRankHandler : DlgHandlerBase, IRankView + { + private XSceneDamageRankDocument doc; + + private XUIPool m_RankPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_RankList = new List(); + + private bool m_bShow = false; + + private uint m_AutoCloseTimerToken = 0u; + + private uint m_AutoReqDataTimerToken = 0u; + + private ulong[] cacheRoleids; + + private int[] cacheStates; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XSceneDamageRankDocument.uuID); + this.doc.RankHandler = this; + Transform transform = base.PanelObject.transform.Find("RankTpl"); + this.m_RankPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void OnUnload() + { + this.doc.RankHandler = null; + this._ClearAutoClose(); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_bShow = true; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + SceneType type = (SceneType)sceneData.type; + if (type <= SceneType.SCENE_HEROBATTLE) + { + if (type == SceneType.SCENE_PVP) + { + XBattleCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + this.doc.OnGetRank(specificDocument.RankList); + return; + } + if (type == SceneType.SCENE_HEROBATTLE) + { + XHeroBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this.doc.OnGetRank(specificDocument2.RankList); + return; + } + } + else if (type - SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT <= 4 || type == SceneType.SCENE_WEEKEND4V4_DUCK) + { + this.RefreshWeekendPartRank(); + return; + } + this._AutoReqData(null); + } + + protected override void OnHide() + { + this.m_bShow = false; + this._ClearAutoClose(); + this._ClearAutoReqData(); + base.OnHide(); + } + + public void RefreshPage() + { + List rankList = this.doc.RankList; + bool flag = rankList.Count > this.m_RankList.Count; + if (flag) + { + for (int i = this.m_RankList.Count; i < rankList.Count; i++) + { + GameObject gameObject = this.m_RankPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_RankPool.TplPos.x, this.m_RankPool.TplPos.y - (float)(this.m_RankPool.TplHeight * i), this.m_RankPool.TplPos.z); + this.m_RankList.Add(gameObject); + IXUILabel ixuilabel = gameObject.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0}.", i + 1)); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)i); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSpectateChangeClick)); + } + } + } + else + { + bool flag2 = rankList.Count < this.m_RankList.Count; + if (flag2) + { + for (int j = this.m_RankList.Count - 1; j >= rankList.Count; j--) + { + this.m_RankPool.ReturnInstance(this.m_RankList[j], false); + } + this.m_RankList.RemoveRange(rankList.Count, this.m_RankList.Count - rankList.Count); + } + } + for (int k = 0; k < rankList.Count; k++) + { + GameObject gameObject2 = this.m_RankList[k]; + bool bSpectator2 = XSingleton.singleton.bSpectator; + if (bSpectator2) + { + IXUICheckBox ixuicheckBox2 = gameObject2.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag3 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.WatchTo != null && rankList[k].id == XSingleton.singleton.Player.WatchTo.ID; + if (flag3) + { + ixuicheckBox2.ForceSetFlag(true); + } + else + { + ixuicheckBox2.ForceSetFlag(false); + } + } + IXUILabel ixuilabel2 = gameObject2.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject2.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(rankList[k].name); + XCaptainPVPRankInfo xcaptainPVPRankInfo = rankList[k] as XCaptainPVPRankInfo; + bool flag4 = xcaptainPVPRankInfo != null; + if (flag4) + { + ixuilabel3.SetText(rankList[k].GetValue()); + } + else + { + ixuilabel3.SetText(XSingleton.singleton.NumberFormat(rankList[k].value)); + } + } + this.HideVoice(); + } + + private void _AutoReqData(object o) + { + this.doc.ReqRank(); + bool bShow = this.m_bShow; + if (bShow) + { + this.m_AutoReqDataTimerToken = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this._AutoReqData), null); + } + } + + private void _ClearAutoClose() + { + XSingleton.singleton.KillTimer(this.m_AutoCloseTimerToken); + } + + private void _ClearAutoReqData() + { + this.m_AutoReqDataTimerToken = 0u; + XSingleton.singleton.KillTimer(this.m_AutoReqDataTimerToken); + } + + private bool OnSpectateChangeClick(IXUICheckBox checkBox) + { + bool flag = !checkBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + ulong id = this.doc.RankList[(int)checkBox.ID].id; + bool flag2 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.WatchTo != null && id == XSingleton.singleton.Player.WatchTo.ID; + if (flag2) + { + result = true; + } + else + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(id); + bool flag3 = entityConsiderDeath != null && entityConsiderDeath.IsRole; + if (flag3) + { + XSingleton.singleton.Player.WatchIt(entityConsiderDeath as XRole); + } + result = true; + } + } + return result; + } + + public void RefreshVoice(ulong[] roleids, int[] states) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + this.cacheRoleids = roleids; + this.cacheStates = states; + bool flag2 = roleids == null || states == null; + if (!flag2) + { + for (int i = 0; i < roleids.Length; i++) + { + this.PlayRole(roleids[i], states[i]); + } + } + } + } + + public void PlayRole(ulong roleid, int state) + { + for (int i = 0; i < this.doc.RankList.Count; i++) + { + bool flag = this.doc.RankList[i].id == roleid && this.m_RankList.Count > i; + if (flag) + { + Transform transform = this.m_RankList[i].transform.Find("voice"); + bool flag2 = transform != null; + if (flag2) + { + transform.gameObject.SetActive(state == 1); + } + Transform transform2 = this.m_RankList[i].transform.Find("speak"); + bool flag3 = transform2 != null; + if (flag3) + { + transform2.gameObject.SetActive(state == 2); + } + } + } + } + + public void HideVoice() + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + for (int i = 0; i < this.m_RankList.Count; i++) + { + Transform transform = this.m_RankList[i].transform.Find("voice"); + Transform transform2 = this.m_RankList[i].transform.Find("speak"); + bool flag2 = transform.gameObject.activeSelf && transform2.gameObject.activeSelf; + if (flag2) + { + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + } + } + this.RefreshVoice(this.cacheRoleids, this.cacheStates); + } + } + + public void RefreshWeekendPartRank() + { + XWeekendPartyDocument specificDocument = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + List selfWeekendPartyBattleList = specificDocument.SelfWeekendPartyBattleList; + bool flag = selfWeekendPartyBattleList.Count > this.m_RankList.Count; + if (flag) + { + for (int i = this.m_RankList.Count; i < selfWeekendPartyBattleList.Count; i++) + { + GameObject gameObject = this.m_RankPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_RankPool.TplPos.x, this.m_RankPool.TplPos.y - (float)(this.m_RankPool.TplHeight * i), this.m_RankPool.TplPos.z); + this.m_RankList.Add(gameObject); + } + } + else + { + bool flag2 = selfWeekendPartyBattleList.Count < this.m_RankList.Count; + if (flag2) + { + for (int j = this.m_RankList.Count - 1; j >= selfWeekendPartyBattleList.Count; j--) + { + this.m_RankPool.ReturnInstance(this.m_RankList[j], false); + } + this.m_RankList.RemoveRange(selfWeekendPartyBattleList.Count, this.m_RankList.Count - selfWeekendPartyBattleList.Count); + } + } + for (int k = 0; k < selfWeekendPartyBattleList.Count; k++) + { + GameObject gameObject2 = this.m_RankList[k]; + IXUILabel ixuilabel = gameObject2.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject2.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject2.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format("{0}.", selfWeekendPartyBattleList[k].Rank)); + ixuilabel2.SetText((selfWeekendPartyBattleList[k].roleName != null) ? selfWeekendPartyBattleList[k].roleName : ""); + string arg = (XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE) ? XStringDefineProxy.GetString("WeekendPartyBattleRankTypeDeath") : XStringDefineProxy.GetString("WeekendPartyBattleRankTypeScore"); + uint num = (XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE) ? selfWeekendPartyBattleList[k].beKilled : selfWeekendPartyBattleList[k].score; + ixuilabel3.SetText(string.Format("{0}{1}", arg, num)); + } + this.HideVoice(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSceneDamageRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSceneDamageRankHandler.cs.meta new file mode 100644 index 00000000..28d021e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSceneDamageRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15e0c2c36456a6c4cbbda90b750cabe1 +timeCreated: 1611403266 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSelectCharView.cs b/Client/Assets/Scripts/XMainClient/UI/XSelectCharView.cs new file mode 100644 index 00000000..c0cee4dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSelectCharView.cs @@ -0,0 +1,318 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSelectCharView : DlgBase + { + public int SelectCharIndex + { + get + { + return this._currentSelectedIndex; + } + set + { + this._currentSelectedIndex = value; + } + } + + public override string fileName + { + get + { + return "SelectChar/DNSelectCharDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + private XSelectCharacterDocument _doc = null; + + private int _currentSelectedIndex = 0; + + public RandomName _randomNameReader = null; + + private bool _playForward = true; + + private bool _enterWorld = true; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XSelectCharacterDocument.uuID); + this._doc.View = this; + this._doc.CurrentProf = 0; + base.uiBehaviour.m_Version.SetText("v" + XSingleton.singleton.Version); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.ShowLoginReconnect(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_enterworld.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterworldButtonClick)); + base.uiBehaviour.m_return.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReturnClick)); + base.uiBehaviour.m_createRandom.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRandomNameClick)); + for (int i = 0; i < XGame.RoleCount; i++) + { + base.uiBehaviour.m_create_profp[i].RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnProfSelect)); + } + base.uiBehaviour.m_profTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnProfTweenFinish)); + } + + protected int FindSlotByUIIndex(int index) + { + return -1; + } + + private bool OnEnterworldButtonClick(IXUIButton go) + { + base.uiBehaviour.m_SelectTween.PlayTween(true, -1f); + this._doc.OnEnterWorld(); + return true; + } + + private bool OnReturnClick(IXUIButton go) + { + this._doc.OnSelectCharBack(); + return true; + } + + private void OnProfSelect(IXUISprite sp) + { + this._currentSelectedIndex = (int)sp.ID; + XSelectcharStage xselectcharStage = XSingleton.singleton.CurrentStage as XSelectcharStage; + bool flag = xselectcharStage != null; + if (flag) + { + xselectcharStage.ShowCharacter(this._currentSelectedIndex); + } + } + + private void OnProfTweenFinish(IXUITweenTool tween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this._playForward = !this._playForward; + bool flag2 = !this._playForward; + if (flag2) + { + this.SetProfIntro(this._doc.CurrentProf); + base.uiBehaviour.m_profTween.PlayTween(this._playForward, -1f); + } + } + } + + private void SetIntroPoint(int oplevel) + { + base.uiBehaviour.m_AttrPoint.FakeReturnAll(); + float x = base.uiBehaviour.m_AttrPoint.TplPos.x; + float y = base.uiBehaviour.m_AttrPoint.TplPos.y; + float num = (float)base.uiBehaviour.m_AttrPoint.TplWidth; + int @int = XSingleton.singleton.GetInt("ProfOperateLevelMax"); + for (int i = 0; i < @int; i++) + { + GameObject gameObject = base.uiBehaviour.m_AttrPoint.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.Find("Light").GetComponent("XUISprite") as IXUISprite; + gameObject.transform.localPosition = new Vector3(x + (float)i * num, y); + ixuisprite.SetAlpha((float)((i < oplevel) ? 1 : 0)); + } + base.uiBehaviour.m_AttrPoint.ActualReturnAll(false); + } + + private void SetProfIntro(int prof) + { + base.uiBehaviour.m_profName.spriteName = XSingleton.singleton.GetProfNameIcon(prof); + base.uiBehaviour.m_profDetail.SetText(XSingleton.singleton.GetProfIntro(prof)); + base.uiBehaviour.m_profType.SetText(XSingleton.singleton.GetProfTypeIntro(prof)); + this.SetIntroPoint((int)XSingleton.singleton.GetProfOperateLevel(prof)); + } + + public void SwitchProfession(int profID) + { + bool activeInHierarchy = base.uiBehaviour.m_selectFrame.gameObject.activeInHierarchy; + if (activeInHierarchy) + { + bool flag = this._doc.CurrentProf > 0; + if (flag) + { + this._playForward = true; + base.uiBehaviour.m_create_profp[this._doc.CurrentProf - 1].gameObject.transform.Find("Select").gameObject.SetActive(false); + } + else + { + this.SetProfIntro(profID); + this._playForward = false; + } + this._doc.CurrentProf = profID; + bool flag2 = this._doc.CurrentProf > 0; + if (flag2) + { + base.uiBehaviour.m_create_profp[this._doc.CurrentProf - 1].gameObject.transform.Find("Select").gameObject.SetActive(true); + base.uiBehaviour.m_profTween.PlayTween(this._playForward, -1f); + } + } + } + + private bool OnCreateCharButtonClick(IXUIButton go) + { + string text = base.uiBehaviour.m_createName.GetText(); + bool flag = text.Length == 0; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = XSingleton.singleton.HasNoRoleOnBackFlowServer(); + if (flag2) + { + string label = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("FirstRoleOnBackServerTip")); + string @string = XStringDefineProxy.GetString("CREATE"); + string string2 = XStringDefineProxy.GetString("COMMON_CANCEL"); + XSingleton.singleton.ShowModalDialog(label, @string, string2, new ButtonClickEventHandler(this.CreateBackRole)); + } + else + { + XSingleton.singleton.CreateChar(text, (RoleType)this._doc.CurrentProf); + } + result = true; + } + return result; + } + + private bool CreateBackRole(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XSingleton.singleton.CreateChar(base.uiBehaviour.m_createName.GetText(), (RoleType)this._doc.CurrentProf); + return true; + } + + public void SetCreateNameVisable(bool state) + { + base.uiBehaviour.m_createNameFrame.gameObject.SetActive(state); + } + + public void SetEnterGameVisable(bool state) + { + base.uiBehaviour.m_enterworld.SetVisible(state); + } + + private void OnRandomNameClick(IXUISprite uiSprite) + { + bool flag = this._randomNameReader == null; + if (flag) + { + this._randomNameReader = new RandomName(); + XSingleton.singleton.ReadFile("Table/RandomName", this._randomNameReader); + } + string text = ""; + string text2 = ""; + while (text == "") + { + int key = XSingleton.singleton.RandomInt(1, this._randomNameReader.Table.Length); + text = this._randomNameReader.GetByID(key).FirstName; + } + while (text2 == "") + { + int key2 = XSingleton.singleton.RandomInt(1, this._randomNameReader.Table.Length); + text2 = this._randomNameReader.GetByID(key2).LastName; + } + string text3 = text + text2; + base.uiBehaviour.m_createName.SetText(text3); + } + + public void ShowSelectCharGerenal() + { + base.uiBehaviour.m_return.SetVisible(true); + base.uiBehaviour.m_selectFrame.gameObject.SetActive(true); + base.uiBehaviour.m_createNameFrame.SetActive(false); + base.uiBehaviour.m_enterworld.gameObject.SetActive(false); + base.uiBehaviour.m_playerNameFrame.gameObject.SetActive(false); + this._enterWorld = true; + base.uiBehaviour.m_enterworld.SetEnable(true, false); + } + + public void ShowSelectCharSelected(string name, int level) + { + base.uiBehaviour.m_return.SetVisible(true); + base.uiBehaviour.m_selectFrame.gameObject.SetActive(true); + base.uiBehaviour.m_createNameFrame.SetActive(false); + base.uiBehaviour.m_enterworld.gameObject.SetActive(true); + base.uiBehaviour.m_enterworld.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterworldButtonClick)); + base.uiBehaviour.m_enterWorldLabel.SetText(XStringDefineProxy.GetString("START_GAME")); + base.uiBehaviour.m_playerNameFrame.gameObject.SetActive(true); + base.uiBehaviour.m_playerNameLabel.SetText(name); + base.uiBehaviour.m_playerLevelLabel.SetText(string.Format("Lv.{0}", level)); + this._enterWorld = true; + base.uiBehaviour.m_enterworld.SetEnable(true, false); + } + + public void ShowSelectCharCreated() + { + base.uiBehaviour.m_return.SetVisible(true); + base.uiBehaviour.m_selectFrame.gameObject.SetActive(true); + base.uiBehaviour.m_enterworld.gameObject.SetActive(true); + base.uiBehaviour.m_enterworld.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCreateCharButtonClick)); + base.uiBehaviour.m_enterWorldLabel.SetText(XStringDefineProxy.GetString("CREATE_CHAR")); + base.uiBehaviour.m_playerNameFrame.gameObject.SetActive(false); + base.uiBehaviour.m_preLevel.SetText(""); + bool flag = XSingleton.singleton.HasNoRoleOnBackFlowServer(); + if (flag) + { + base.uiBehaviour.m_preLevel.SetText(string.Format("Lv.{0}", XSingleton.singleton.LoginExData.backflow_level)); + } + bool flag2 = !base.uiBehaviour.m_createName.IsVisible(); + if (flag2) + { + bool flag3 = base.uiBehaviour.m_createName.GetText().Length == 0; + if (flag3) + { + bool flag4 = XSingleton.singleton.playerInfo != null; + if (flag4) + { + string nickName = XSingleton.singleton.playerInfo.data.nickName; + base.uiBehaviour.m_createName.SetText(nickName); + } + else + { + this.OnRandomNameClick(null); + } + } + } + base.uiBehaviour.m_createNameFrame.SetActive(true); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = base.uiBehaviour.m_createNameFrame != null && base.uiBehaviour.m_createNameFrame.activeSelf; + if (flag) + { + bool flag2 = base.uiBehaviour.m_createName.GetText().Length != 0; + bool flag3 = this._enterWorld != flag2; + if (flag3) + { + this._enterWorld = flag2; + base.uiBehaviour.m_enterworld.SetEnable(this._enterWorld, false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSelectCharView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSelectCharView.cs.meta new file mode 100644 index 00000000..f944746c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSelectCharView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01994922897633145af72ad9dbc694e5 +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XServerActivityView.cs b/Client/Assets/Scripts/XMainClient/UI/XServerActivityView.cs new file mode 100644 index 00000000..f290a0e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XServerActivityView.cs @@ -0,0 +1,247 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XServerActivityView : DlgHandlerBase + { + public IXUIScrollView m_ScrollView; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_RewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_RemainTime; + + protected XAchievementDocument _doc; + + protected uint _remainTime; + + protected uint _timer; + + protected override void Init() + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XAchievementDocument.uuID) as XAchievementDocument); + this._doc.ServerActivityView = this; + this.m_RemainTime = (base.PanelObject.transform.Find("RemainTime/Label").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.PanelObject.transform.Find("Panel"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform2 = base.PanelObject.transform.Find("Panel/RecordTpl/ItemReward/ItemTpl"); + this.m_RewardItemPool.SetupPool(transform.gameObject, transform2.gameObject, 30u, false); + transform2 = base.PanelObject.transform.Find("Panel/RecordTpl"); + this.m_RewardPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 10u, false); + } + + public void UpdateRedPoint() + { + this._doc.HasCompleteAchivement(XSysDefine.XSys_ServerActivity); + } + + protected override void OnShow() + { + base.OnShow(); + this._remainTime = 0u; + RpcC2G_QueryOpenGameActivityTime rpc = new RpcC2G_QueryOpenGameActivityTime(); + XSingleton.singleton.Send(rpc); + this.RefreshList(); + } + + public override void OnUnload() + { + this._remainTime = 0u; + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + } + base.OnUnload(); + this._doc.ServerActivityView = null; + } + + protected string GetActivityString(string format, int catergory, int param, AchivementState state) + { + string result; + if (catergory - 502 > 1) + { + bool flag = state == AchivementState.Not_Achive || state == AchivementState.Exceed; + if (flag) + { + result = string.Format(format, "[ff0000]" + param + "[-]"); + } + else + { + result = string.Format(format, "[00ff00]" + param + "[-]"); + } + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData((uint)param); + bool flag2 = state == AchivementState.Not_Achive || state == AchivementState.Exceed; + if (flag2) + { + result = string.Format(format, "[ff0000]" + sceneData.Comment + "[-]"); + } + else + { + result = string.Format(format, "[00ff00]" + sceneData.Comment + "[-]"); + } + } + return result; + } + + protected bool OnFetchClicked(IXUIButton button) + { + this._doc.FetchAchivement((uint)button.ID); + return true; + } + + protected bool OnLinkToClick(IXUIButton button) + { + return true; + } + + private int ActivityCompare(int act1, int act2) + { + AchivementState achivementState = this._doc.GetAchivementState((uint)act1); + AchivementState achivementState2 = this._doc.GetAchivementState((uint)act2); + bool flag = achivementState > achivementState2; + int result; + if (flag) + { + result = -1; + } + else + { + bool flag2 = achivementState < achivementState2; + if (flag2) + { + result = 1; + } + else + { + result = act1.CompareTo(act2); + } + } + return result; + } + + public void RefreshList() + { + this.UpdateRedPoint(); + this.m_RewardPool.ReturnAll(false); + this.m_RewardItemPool.ReturnAll(false); + this.m_ScrollView.SetPosition(0f); + List catergoryActivity = this._doc.GetCatergoryActivity(501); + bool flag = catergoryActivity == null || catergoryActivity.Count <= 0; + if (!flag) + { + catergoryActivity.Sort(new Comparison(this.ActivityCompare)); + for (int i = 0; i < catergoryActivity.Count; i++) + { + GameObject gameObject = this.m_RewardPool.FetchGameObject(false); + gameObject.name = "record" + catergoryActivity[i]; + gameObject.transform.localPosition = this.m_RewardPool.TplPos - new Vector3(0f, (float)(this.m_RewardPool.TplHeight * i)); + AchivementTable.RowData achivementData = this._doc.GetAchivementData((uint)catergoryActivity[i]); + bool flag2 = achivementData != null; + if (flag2) + { + AchivementState achivementState = this._doc.GetAchivementState((uint)achivementData.AchievementID); + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + string activityString = this.GetActivityString(achivementData.AchievementDescription, achivementData.AchievementCategory, achivementData.AchievementParam, achivementState); + ixuilabel.SetText(activityString); + IXUIButton ixuibutton = gameObject.transform.Find("Fetch").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)catergoryActivity[i]); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFetchClicked)); + GameObject gameObject2 = gameObject.transform.Find("Fetched").gameObject; + GameObject gameObject3 = gameObject.transform.Find("LinkTo").gameObject; + IXUIProgress ixuiprogress = gameObject.transform.Find("Progress").GetComponent("XUIProgress") as IXUIProgress; + ixuiprogress.gameObject.SetActive(false); + ixuibutton.gameObject.SetActive(false); + gameObject2.SetActive(false); + gameObject3.SetActive(false); + bool flag3 = achivementData.AchievementCategory == 504; + if (flag3) + { + ixuiprogress.gameObject.SetActive(true); + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + int count = specificDocument.FashionBag.Count; + ixuiprogress.value = (float)count / (float)achivementData.AchievementParam; + IXUILabel ixuilabel2 = gameObject.transform.Find("Progress/T").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format("{0}/{1}", count, achivementData.AchievementParam)); + } + switch (achivementState) + { + case AchivementState.Exceed: + ixuibutton.gameObject.SetActive(true); + ixuibutton.SetEnable(false, false); + break; + case AchivementState.Fetched: + gameObject2.SetActive(true); + break; + case AchivementState.Not_Achive: + gameObject3.SetActive(true); + break; + case AchivementState.Achive_NoFetch: + ixuibutton.gameObject.SetActive(true); + ixuibutton.SetEnable(true, false); + break; + } + Transform parent = gameObject.transform.Find("ItemReward"); + for (int j = 0; j < achivementData.AchievementItem.Count; j++) + { + int num = achivementData.AchievementItem[j, 0]; + GameObject gameObject4 = this.m_RewardItemPool.FetchGameObject(false); + gameObject4.name = "reward item " + num; + gameObject4.transform.parent = parent; + gameObject4.transform.localPosition = this.m_RewardItemPool.TplPos + new Vector3((float)(this.m_RewardItemPool.TplWidth * j), 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject4, num, achivementData.AchievementItem[j, 1], false); + IXUISprite ixuisprite = gameObject4.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + } + } + + public void SetRemainTime(uint second) + { + this._remainTime = second; + this._RemainTime(); + } + + public void UpateRemainTime(object param) + { + bool flag = this._remainTime > 0u; + if (flag) + { + this._remainTime -= 1u; + this._RemainTime(); + } + } + + protected void _RemainTime() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this._remainTime > 0u; + if (flag2) + { + string @string = XStringDefineProxy.GetString("REMAIN_TIME"); + string text = XSingleton.singleton.TimeFormatSince1970((int)this._remainTime, @string, false); + this.m_RemainTime.SetText(text); + this._timer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.UpateRemainTime), null); + } + else + { + string string2 = XStringDefineProxy.GetString("GUILD_REDPACKET_TIMEOVER"); + this.m_RemainTime.SetText(string2); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XServerActivityView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XServerActivityView.cs.meta new file mode 100644 index 00000000..c556ab81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XServerActivityView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e5ad225f191e4694290ca15ce9ac9f8a +timeCreated: 1611404743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIBehaviour.cs new file mode 100644 index 00000000..c11f96f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIBehaviour.cs @@ -0,0 +1,30 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XShowGetItemUIBehaviour : DlgBehaviourBase + { + public XUIPool m_ShowItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_itemTpl; + + public IXUISprite m_sprBgTip; + + public IXUITweenTool m_tweenBg; + + public IXUITweener m_tweener; + + private void Awake() + { + this.m_itemTpl = base.transform.Find("Bg/TipTpl/ItemTpl").gameObject; + this.m_ShowItemPool.SetupPool(this.m_itemTpl.transform.parent.gameObject, this.m_itemTpl, 4u, false); + this.m_sprBgTip = (base.transform.Find("Bg/TipTpl").GetComponent("XUISprite") as IXUISprite); + this.m_tweenBg = (base.transform.Find("Bg/TipTpl").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_tweener = (base.transform.Find("Bg/TipTpl").GetComponent("XUITweener") as IXUITweener); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIBehaviour.cs.meta new file mode 100644 index 00000000..97a6fef4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c4c086ac8edae747946de07f6cbb8ae +timeCreated: 1611404099 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIView.cs b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIView.cs new file mode 100644 index 00000000..79b96ed0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIView.cs @@ -0,0 +1,200 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XShowGetItemUIView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ShowGetItemDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private XShowGetItemDocument _doc = null; + + private List m_items = new List(); + + private uint m_token = 0u; + + private OnTweenFinishEventHandler mAnimEnd; + + public bool isPlaying = false; + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.m_token); + base.OnHide(); + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this.m_token); + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + } + } + + protected override void OnShow() + { + } + + private void Print(List _items, string tag) + { + for (int i = 0; i < _items.Count; i++) + { + XSingleton.singleton.AddGreenLog(XSingleton.singleton.StringCombine(tag, string.Concat(new object[] + { + " itemid:", + _items[i].itemID, + " cnt:", + _items[i].itemCount + })), null, null, null, null, null); + } + } + + public void ShowItems(List _items, OnTweenFinishEventHandler _end) + { + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + } + bool flag2 = XEquipCreateDocument.Doc.IsForbidGetItemUI || this._doc.IsForbidByLua; + if (flag2) + { + this.SetVisible(false, true); + XShowGetItemDocument.ItemUIQueue.Clear(); + } + else + { + bool flag3 = !base.IsVisible(); + if (flag3) + { + this.SetVisibleWithAnimation(true, null); + } + this.isPlaying = true; + this.mAnimEnd = _end; + this.m_items = _items; + base.uiBehaviour.m_ShowItemPool.ReturnAll(false); + this.GridItems(); + base.uiBehaviour.m_tweenBg.ResetTween(true); + base.uiBehaviour.m_tweenBg.PlayTween(true, -1f); + XSingleton.singleton.KillTimer(this.m_token); + XSingleton.singleton.AddGreenLog(base.uiBehaviour.m_tweener.Duration.ToString(), null, null, null, null, null); + this.m_token = XSingleton.singleton.SetTimer(base.uiBehaviour.m_tweener.Duration, new XTimerMgr.ElapsedEventHandler(this.OnPlayEnd), base.uiBehaviour.m_tweenBg); + } + } + + public void OnPlayEnd(object o = null) + { + bool flag = o != null; + if (flag) + { + IXUITweenTool tween = o as IXUITweenTool; + this.isPlaying = false; + bool flag2 = this.mAnimEnd != null; + if (flag2) + { + XSingleton.singleton.AddLog("play end!", null, null, null, null, null, XDebugColor.XDebug_None); + this.mAnimEnd(tween); + } + } + XSingleton.singleton.AddGreenLog("the end event", null, null, null, null, null); + } + + public void OnPlayEnd(IXUITweenTool tween) + { + this.isPlaying = false; + bool flag = this.mAnimEnd != null; + if (flag) + { + XSingleton.singleton.AddLog("play end!", null, null, null, null, null, XDebugColor.XDebug_None); + this.mAnimEnd(tween); + } + } + + public void HandlePlayEnd() + { + bool flag = base.uiBehaviour != null && base.uiBehaviour.m_ShowItemPool != null; + if (flag) + { + base.uiBehaviour.m_ShowItemPool.ReturnAll(false); + } + } + + private void GridItems() + { + int count = this.m_items.Count; + Vector3 localPosition; + localPosition= new Vector3(200f, -12f, 0f); + base.uiBehaviour.m_sprBgTip.spriteHeight = ((count > 5) ? 300 : 250); + for (int i = 0; i < count; i++) + { + bool flag = count > 5; + if (flag) + { + int num = (count % 2 == 0) ? (count / 2) : (count / 2 + 1); + bool flag2 = i < num; + if (flag2) + { + localPosition.x = 100f * ((float)i - (float)(num - 1) / 2f); + localPosition.y = -120f; + } + else + { + localPosition.x = 100f * ((float)(i - num) - (float)(count - num - 1) / 2f); + localPosition.y = -220f; + } + } + else + { + localPosition.x = 100f * ((float)i - (float)(count - 1) / 2f); + localPosition.y = -145f; + } + GameObject gameObject = base.uiBehaviour.m_ShowItemPool.FetchGameObject(false); + gameObject.name = "item" + i; + gameObject.transform.localPosition = localPosition; + XSingleton.singleton.DrawItem(gameObject, this.m_items[i]); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIView.cs.meta new file mode 100644 index 00000000..1e65cac0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemUIView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e1dc08c17a0954408839fb674367f50 +timeCreated: 1611403508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XShowGetItemView.cs b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemView.cs new file mode 100644 index 00000000..3ebf2a58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemView.cs @@ -0,0 +1,223 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XShowGetItemView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ShowGetItemTip"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private XShowGetItemDocument _doc = null; + + private GameObject _preShowItem = null; + + private int _showCount; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + } + + protected override void OnShow() + { + this._showCount = 0; + base.uiBehaviour.m_ShowItemPool.ReturnAll(false); + } + + public void ShowItem(XItem item) + { + bool flag = this._doc.IsForbidGetItemUI || this._doc.IsForbidByLua; + if (flag) + { + this._doc.ItemQueue.Clear(); + this.SetVisible(false, true); + } + else + { + bool flag2 = !base.IsVisible(); + if (flag2) + { + this.SetVisible(true, true); + } + this._showCount++; + GameObject gameObject = base.uiBehaviour.m_ShowItemPool.FetchGameObject(false); + gameObject.transform.localPosition = base.uiBehaviour.m_ShowItemPool.TplPos; + bool flag3 = this._preShowItem != null; + if (flag3) + { + bool activeSelf = this._preShowItem.activeSelf; + if (activeSelf) + { + this._preShowItem.transform.parent = gameObject.transform; + } + } + this._preShowItem = gameObject; + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + string text = string.Format("[{0}]{1}", XSingleton.singleton.GetItemQualityRGB((int)XBagDocument.GetItemConf(item.itemID).ItemQuality).ToString(), XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(item.itemID).ItemName, 0u)); + ixuilabel.SetText(string.Format("{0}[ffffff]x{1}", XStringDefineProxy.GetString("GET_ITEM", new object[] + { + text + }), item.itemCount.ToString())); + IXUITweenTool ixuitweenTool = gameObject.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetTargetGameObject(gameObject); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + ixuitweenTool.PlayTween(true, -1f); + } + } + + public void ShowTip(string tip) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + this._showCount++; + GameObject gameObject = base.uiBehaviour.m_ShowItemPool.FetchGameObject(false); + gameObject.transform.localPosition = base.uiBehaviour.m_ShowItemPool.TplPos; + bool flag2 = this._preShowItem != null; + if (flag2) + { + bool activeSelf = this._preShowItem.activeSelf; + if (activeSelf) + { + this._preShowItem.transform.parent = gameObject.transform; + } + } + this._preShowItem = gameObject; + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(tip); + IXUITweenTool ixuitweenTool = gameObject.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetTargetGameObject(gameObject); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + ixuitweenTool.PlayTween(true, -1f); + } + + public void ShowFullTip(int Count) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + this._showCount++; + GameObject gameObject = base.uiBehaviour.m_ShowItemPool.FetchGameObject(false); + gameObject.transform.localPosition = base.uiBehaviour.m_ShowItemPool.TplPos; + bool flag2 = this._preShowItem != null; + if (flag2) + { + bool activeSelf = this._preShowItem.activeSelf; + if (activeSelf) + { + this._preShowItem.transform.parent = gameObject.transform; + } + } + this._preShowItem = gameObject; + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("EXCEED_ITEM", new object[] + { + Count + })); + IXUITweenTool ixuitweenTool = gameObject.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetTargetGameObject(gameObject); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + ixuitweenTool.PlayTween(true, -1f); + } + + public void ShowString(string str, uint id) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + this._showCount++; + GameObject gameObject = base.uiBehaviour.m_ShowItemPool.FetchGameObject(false); + gameObject.transform.localPosition = base.uiBehaviour.m_ShowItemPool.TplPos; + bool flag2 = this._preShowItem != null; + if (flag2) + { + bool activeSelf = this._preShowItem.activeSelf; + if (activeSelf) + { + this._preShowItem.transform.parent = gameObject.transform; + } + } + this._preShowItem = gameObject; + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(str); + ixuilabel.ID = (ulong)id; + IXUITweenTool ixuitweenTool = gameObject.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetTargetGameObject(gameObject); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + ixuitweenTool.PlayTween(true, -1f); + } + + public void EditString(string str, uint id) + { + List list = ListPool.Get(); + base.uiBehaviour.m_ShowItemPool.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + IXUILabel ixuilabel = list[i].transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + bool flag = ixuilabel.ID != (ulong)id; + if (!flag) + { + ixuilabel.SetText(str); + break; + } + } + ListPool.Release(list); + } + + public void OnPlayTweenFinish(IXUITweenTool iPlayTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_ShowItemPool.ReturnInstance(iPlayTween.gameObject, true); + this._showCount--; + bool flag2 = this._showCount == 0; + if (flag2) + { + this.SetVisible(false, true); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XShowGetItemView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemView.cs.meta new file mode 100644 index 00000000..cba36f32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XShowGetItemView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: beb6e5994ea4e0749b7c18a989046207 +timeCreated: 1611404481 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSparkController.cs b/Client/Assets/Scripts/XMainClient/UI/XSparkController.cs new file mode 100644 index 00000000..e54469e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSparkController.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSparkController + { + public Rect Region { get; set; } + + public uint Count { get; set; } + + private XUIPool m_Pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private float _ScaleMin = 1f; + + private float _ScaleMax = 2f; + + private float _DelayMin = 1f; + + private float _DelayMax = 6f; + + private int _FrameRateMin = 10; + + private int _FrameRateMax = 20; + + private Dictionary m_TimeTokens = new Dictionary(); + + public void InitSprite(GameObject parent, GameObject target) + { + this.m_Pool.SetupPool(parent, target, 2u, false); + } + + public void InitScaleRange(float min, float max) + { + this._ScaleMax = max; + this._ScaleMin = min; + } + + public void InitDelayRange(float min, float max) + { + this._DelayMax = max; + this._DelayMin = min; + } + + public void InitFrameRateRange(int min, int max) + { + this._FrameRateMax = max; + this._FrameRateMin = min; + } + + public void Setup() + { + this.StopAll(); + this.m_Pool.FakeReturnAll(); + int num = 0; + while ((long)num < (long)((ulong)this.Count)) + { + GameObject gameObject = this.m_Pool.FetchGameObject(false); + IXUISpriteAnimation ixuispriteAnimation = gameObject.GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.RegisterFinishCallback(new SpriteAnimationFinishCallback(this._OnSparkFinish)); + this._GenerateSpark(gameObject, true); + num++; + } + this.m_Pool.ActualReturnAll(false); + } + + public void StopAll() + { + foreach (uint token in this.m_TimeTokens.Values) + { + XSingleton.singleton.KillTimer(token); + } + this.m_TimeTokens.Clear(); + } + + private void _GenerateSpark(GameObject go, bool bStart) + { + float interval = XSingleton.singleton.RandomFloat(this._DelayMin, this._DelayMax); + int frameRate = XSingleton.singleton.RandomInt(this._FrameRateMin, this._FrameRateMax); + float num = XSingleton.singleton.RandomFloat(this._ScaleMin, this._ScaleMax); + Vector3 localPosition; + localPosition.x = XSingleton.singleton.RandomFloat(this.Region.xMin, this.Region.xMax); + localPosition.y = XSingleton.singleton.RandomFloat(this.Region.yMin, this.Region.yMax); + localPosition.z = 0f; + IXUISpriteAnimation ixuispriteAnimation = go.GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.SetFrameRate(frameRate); + go.transform.localScale = Vector3.one * num; + go.transform.localPosition = localPosition; + uint value = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this._SparkShow), go); + this.m_TimeTokens.Add(go, value); + go.SetActive(false); + } + + private void _SparkShow(object o) + { + GameObject gameObject = o as GameObject; + IXUISpriteAnimation ixuispriteAnimation = gameObject.GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.Reset(); + gameObject.SetActive(true); + this.m_TimeTokens.Remove(gameObject); + } + + private void _OnSparkFinish(IXUISpriteAnimation anim) + { + this._GenerateSpark(anim.gameObject, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSparkController.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSparkController.cs.meta new file mode 100644 index 00000000..27a0eee1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSparkController.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83114530066887942b87130ab4b9f846 +timeCreated: 1611404042 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeAHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeAHandler.cs new file mode 100644 index 00000000..1e2849ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeAHandler.cs @@ -0,0 +1,203 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSpriteAttributeAHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteAptitude"; + } + } + + private XUIPool m_AptitudePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIList m_AptitudeList; + + private Dictionary aptitudeCompareData = new Dictionary(); + + protected override void Init() + { + base.Init(); + this.m_AptitudeList = (base.PanelObject.transform.Find("Grid").GetComponent("XUIList") as IXUIList); + Transform transform = base.PanelObject.transform.Find("Grid/Tpl"); + this.m_AptitudePool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + } + + public void SetSpriteAttributeInfo(SpriteInfo spriteData, XAttributes attributes, SpriteInfo compareData = null) + { + bool flag = spriteData == null; + if (flag) + { + this.m_AptitudePool.ReturnAll(false); + } + else + { + this.PreProcessComparedData(compareData, attributes); + this.CreateSpriteAptitude(spriteData.AddValue, spriteData.AttrID, spriteData.SpriteID, attributes, false); + } + } + + public void SetSpriteAttributeInfo(uint spriteID) + { + this.aptitudeCompareData.Clear(); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(spriteID); + bool flag = bySpriteID == null; + if (!flag) + { + List attrID = new List(); + List list = new List(); + List addValue = new List(); + XSpriteAttributeHandler.GetLevelOneSpriteAttr(bySpriteID, out attrID, out list, out addValue); + this.CreateSpriteAptitude(addValue, attrID, spriteID, null, true); + } + } + + private void PreProcessComparedData(SpriteInfo compareData, XAttributes attributes = null) + { + this.aptitudeCompareData.Clear(); + bool flag = compareData != null; + if (flag) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + for (int i = 0; i < compareData.AddValue.Count; i++) + { + bool flag2 = i < compareData.AttrID.Count; + if (flag2) + { + this.aptitudeCompareData[compareData.AttrID[i]] = specificDocument.CalAptitude(compareData.AttrID[i], compareData.AddValue[i], attributes); + } + else + { + XSingleton.singleton.AddErrorLog("Cannot Find Aptitude ID", null, null, null, null, null); + } + } + } + } + + private void CreateSpriteAptitude(List addValue, List attrID, uint spriteID, XAttributes attributes, bool readTable = false) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this.m_AptitudePool.FakeReturnAll(); + int i = 0; + while (i < addValue.Count) + { + bool flag = i < attrID.Count; + if (flag) + { + bool flag2 = attrID[i] == 0u; + if (!flag2) + { + GameObject obj = this.m_AptitudePool.FetchGameObject(false); + double num = specificDocument.CalAptitude(attrID[i], addValue[i], attributes); + this.SetAptitudeInfo(obj, attrID[i], this.GetMinAttr(spriteID, i), readTable ? ((uint)num / 100u) : ((uint)num), (uint)specificDocument.GetMaxAptitude(spriteID, i) / 100u); + } + } + else + { + XSingleton.singleton.AddErrorLog("Cannot Find Aptitude ID", null, null, null, null, null); + } + IL_B2: + i++; + continue; + goto IL_B2; + } + this.m_AptitudeList.Refresh(); + this.m_AptitudePool.ActualReturnAll(false); + } + + private uint GetMinAttr(uint spriteID, int index) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(spriteID); + uint result; + switch (index) + { + case 0: + result = bySpriteID.Range1[0]; + break; + case 1: + result = bySpriteID.Range2[0]; + break; + case 2: + result = bySpriteID.Range3[0]; + break; + case 3: + result = bySpriteID.Range4[0]; + break; + case 4: + result = bySpriteID.Range5[0]; + break; + default: + XSingleton.singleton.AddErrorLog("GetMaxAptitude error. index is out of the range. index = ", index.ToString(), null, null, null, null); + result = 0u; + break; + } + return result; + } + + private void SetAptitudeInfo(GameObject obj, uint attrID, uint minAttr, uint attrValue, uint attrMax) + { + IXUILabel ixuilabel = obj.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUIProgress ixuiprogress = obj.transform.Find("Progress Bar").GetComponent("XUIProgress") as IXUIProgress; + IXUILabel ixuilabel2 = obj.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = obj.transform.Find("ValueMax").GetComponent("XUILabel") as IXUILabel; + string format = "Sprite_{0}"; + XAttributeDefine xattributeDefine = (XAttributeDefine)attrID; + string key = string.Format(format, xattributeDefine.ToString()); + ixuilabel.SetText(XStringDefineProxy.GetString(key)); + ixuilabel3.SetText(XSingleton.singleton.StringCombine("/", attrMax.ToString())); + float num = float.Parse(XSingleton.singleton.GetValue("SpriteAptitudePBarBeginValueRatio")); + float num2 = minAttr * num / 100f; + ixuiprogress.value = ((attrMax - num2 == 0f) ? 1f : ((attrValue - num2) / (attrMax - num2))); + ixuilabel2.SetText(attrValue.ToString()); + bool flag = this.aptitudeCompareData.Count > 0; + if (flag) + { + double num3 = 0.0; + bool flag2 = this.aptitudeCompareData.TryGetValue(attrID, out num3); + if (flag2) + { + bool flag3 = attrValue > (uint)num3; + if (flag3) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("SpriteAttributeUpColor", new object[] + { + attrValue + })); + } + else + { + bool flag4 = attrValue < (uint)num3; + if (flag4) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("SpriteAttributeDownColor", new object[] + { + attrValue + })); + } + else + { + ixuilabel2.SetText(attrValue.ToString()); + } + } + } + else + { + ixuilabel2.SetText(XStringDefineProxy.GetString("SpriteAttributeUpColor", new object[] + { + attrValue + })); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeAHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeAHandler.cs.meta new file mode 100644 index 00000000..dd75d600 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeAHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad9af44f705fdbd4ea65b27c7ee71a10 +timeCreated: 1611404335 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeHandler.cs new file mode 100644 index 00000000..43e03123 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeHandler.cs @@ -0,0 +1,87 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSpriteAttributeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteAttributeFrame"; + } + } + + private XSpriteAttributePHandler m_PropertyHandler; + + private XSpriteAttributeAHandler m_AptitudeHandler; + + private XSpriteAttributeSHandler m_SkillHandler; + + protected override void Init() + { + base.Init(); + Transform parent = base.PanelObject.transform.Find("SpriteAptitudeRoot"); + DlgHandlerBase.EnsureCreate(ref this.m_AptitudeHandler, parent, true, this); + Transform parent2 = base.PanelObject.transform.Find("SpriteAttributeRoot"); + DlgHandlerBase.EnsureCreate(ref this.m_PropertyHandler, parent2, true, this); + Transform parent3 = base.PanelObject.transform.Find("SpriteSkillRoot"); + DlgHandlerBase.EnsureCreate(ref this.m_SkillHandler, parent3, true, this); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_PropertyHandler); + DlgHandlerBase.EnsureUnload(ref this.m_AptitudeHandler); + DlgHandlerBase.EnsureUnload(ref this.m_SkillHandler); + base.OnUnload(); + } + + public void SetSpriteAttributeInfo(SpriteInfo spriteData, XAttributes attributes, SpriteInfo compareData = null) + { + this.m_PropertyHandler.SetSpriteAttributeInfo(spriteData, compareData); + this.m_AptitudeHandler.SetSpriteAttributeInfo(spriteData, attributes, compareData); + this.m_SkillHandler.SetSpriteAttributeInfo(spriteData, compareData); + } + + public void SetSpriteAttributeInfo(uint spriteID) + { + this.m_PropertyHandler.SetSpriteAttributeInfo(spriteID); + this.m_AptitudeHandler.SetSpriteAttributeInfo(spriteID); + this.m_SkillHandler.SetSpriteAttributeInfo(spriteID); + } + + public static void GetLevelOneSpriteAttr(SpriteTable.RowData spriteInfo, out List attrID, out List attrValue, out List attrMaxValue) + { + attrID = new List(); + attrID.Add(spriteInfo.AttrID1); + attrID.Add(spriteInfo.AttrID2); + attrID.Add(spriteInfo.AttrID3); + attrID.Add(spriteInfo.AttrID4); + attrID.Add(spriteInfo.AttrID5); + List list = new List(); + list.Add(spriteInfo.BaseAttr1); + list.Add(spriteInfo.BaseAttr2); + list.Add(spriteInfo.BaseAttr3); + list.Add(spriteInfo.BaseAttr4); + list.Add(spriteInfo.BaseAttr5); + attrMaxValue = new List(); + attrMaxValue.Add(spriteInfo.Range1[1]); + attrMaxValue.Add(spriteInfo.Range2[1]); + attrMaxValue.Add(spriteInfo.Range3[1]); + attrMaxValue.Add(spriteInfo.Range4[1]); + attrMaxValue.Add(spriteInfo.Range5[1]); + attrValue = new List(); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + for (int i = 0; i < attrID.Count; i++) + { + double num = list[i] + attrMaxValue[i] * specificDocument.GetSpriteLevelRatio(spriteInfo.SpriteQuality, 1u); + attrValue.Add(num / 100.0); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeHandler.cs.meta new file mode 100644 index 00000000..a3279929 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e8a919243e31454084e12cdd013f5cb +timeCreated: 1611404005 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributePHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributePHandler.cs new file mode 100644 index 00000000..5084b1f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributePHandler.cs @@ -0,0 +1,169 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSpriteAttributePHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteAttribute"; + } + } + + private XUIPool m_AttributePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIList m_AttributeList; + + private Dictionary attrCompareData = new Dictionary(); + + private Dictionary aptitudeCompareData = new Dictionary(); + + protected override void Init() + { + base.Init(); + this.m_AttributeList = (base.PanelObject.transform.Find("Grid").GetComponent("XUIList") as IXUIList); + Transform transform = base.PanelObject.transform.Find("Grid/Tpl"); + this.m_AttributePool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + } + + private void PreProcessComparedData(SpriteInfo compareData) + { + this.attrCompareData.Clear(); + bool flag = compareData != null; + if (flag) + { + for (int i = 0; i < compareData.AttrID.Count; i++) + { + bool flag2 = i < compareData.AttrValue.Count; + if (flag2) + { + this.attrCompareData[compareData.AttrID[i]] = compareData.AttrValue[i]; + } + else + { + XSingleton.singleton.AddErrorLog("Cannot Find Aptitude ID", null, null, null, null, null); + } + } + } + } + + private void CreateSpriteAttr(List attrID, List attrValue, List evoAttrID, List evoAttrValue) + { + this.m_AttributePool.FakeReturnAll(); + for (int i = 0; i < attrID.Count; i++) + { + bool flag = attrID[i] == 0u; + if (!flag) + { + GameObject obj = this.m_AttributePool.FetchGameObject(false); + bool flag2 = i < attrValue.Count; + if (flag2) + { + double evoValue = 0.0; + bool flag3 = evoAttrID != null && evoAttrValue != null; + if (flag3) + { + for (int j = 0; j < evoAttrID.Count; j++) + { + bool flag4 = attrID[i] == evoAttrID[j] && j < evoAttrValue.Count; + if (flag4) + { + evoValue = evoAttrValue[j]; + break; + } + } + } + this.SetAttributeInfo(obj, attrID[i], (uint)attrValue[i], evoValue); + } + else + { + XSingleton.singleton.AddErrorLog("Cannot Find Attr Value", null, null, null, null, null); + } + } + } + this.m_AttributeList.Refresh(); + this.m_AttributePool.ActualReturnAll(false); + } + + public void SetSpriteAttributeInfo(SpriteInfo spriteData, SpriteInfo compareData = null) + { + bool flag = spriteData == null; + if (flag) + { + this.m_AttributePool.ReturnAll(false); + } + else + { + this.PreProcessComparedData(compareData); + this.CreateSpriteAttr(spriteData.AttrID, spriteData.AttrValue, spriteData.EvoAttrID, spriteData.EvoAttrValue); + } + } + + public void SetSpriteAttributeInfo(uint spriteID) + { + this.attrCompareData.Clear(); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(spriteID); + bool flag = bySpriteID == null; + if (!flag) + { + List attrID = new List(); + List attrValue = new List(); + List list = new List(); + XSpriteAttributeHandler.GetLevelOneSpriteAttr(bySpriteID, out attrID, out attrValue, out list); + this.CreateSpriteAttr(attrID, attrValue, null, null); + } + } + + private void SetAttributeInfo(GameObject obj, uint attrID, uint attrValue, double evoValue) + { + IXUILabel ixuilabel = obj.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = obj.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = obj.transform.Find("Addon").GetComponent("XUILabel") as IXUILabel; + string format = "Sprite_{0}"; + XAttributeDefine xattributeDefine = (XAttributeDefine)attrID; + string key = string.Format(format, xattributeDefine.ToString()); + ixuilabel.SetText(XStringDefineProxy.GetString(key)); + ixuilabel2.SetText(attrValue.ToString()); + ixuilabel3.SetVisible(evoValue != 0.0); + ixuilabel3.SetText(string.Format("+{0}", evoValue)); + bool flag = this.attrCompareData.Count > 0; + if (flag) + { + double num = 0.0; + bool flag2 = this.attrCompareData.TryGetValue(attrID, out num); + if (flag2) + { + bool flag3 = attrValue > (uint)num; + if (flag3) + { + ixuilabel2.SetText("[00ff00]+" + attrValue.ToString() + "[-]"); + } + else + { + bool flag4 = attrValue < (uint)num; + if (flag4) + { + ixuilabel2.SetText("[ff0000]+" + attrValue.ToString() + "[-]"); + } + else + { + ixuilabel2.SetText("+" + attrValue.ToString()); + } + } + } + else + { + ixuilabel2.SetText("[00ff00]+" + attrValue.ToString() + "[-]"); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributePHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributePHandler.cs.meta new file mode 100644 index 00000000..c0b71d4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributePHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16132602cbb2ebd4d8526afa9987c2d0 +timeCreated: 1611403268 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeSHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeSHandler.cs new file mode 100644 index 00000000..b023dc4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeSHandler.cs @@ -0,0 +1,126 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSpriteAttributeSHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteSkill"; + } + } + + private XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIList m_SkillList; + + private GameObject m_MainSkill; + + private Dictionary attrCompareData = new Dictionary(); + + private Dictionary aptitudeCompareData = new Dictionary(); + + private List m_passiveSkillID = new List(); + + private uint m_mainSkillID; + + private uint m_mainSkillLevel; + + protected override void Init() + { + base.Init(); + this.m_SkillList = (base.PanelObject.transform.Find("OtherSkill").GetComponent("XUIList") as IXUIList); + Transform transform = base.PanelObject.transform.Find("OtherSkill/Tpl"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_MainSkill = base.PanelObject.transform.Find("MainSkill").gameObject; + this.m_MainSkill.SetActive(false); + } + + private void CreateSpriteSkill(List passiveSkillID, uint skillID, uint evolutionLevel) + { + this.m_passiveSkillID = passiveSkillID; + this.m_mainSkillID = skillID; + this.m_mainSkillLevel = evolutionLevel; + this.m_SkillPool.FakeReturnAll(); + for (int i = 0; i < passiveSkillID.Count; i++) + { + GameObject go = this.m_SkillPool.FetchGameObject(false); + this.SetSkillIcon(go, passiveSkillID[i], false, 0u); + } + this.m_SkillList.Refresh(); + this.m_SkillPool.ActualReturnAll(false); + this.m_MainSkill.SetActive(true); + this.SetSkillIcon(this.m_MainSkill, skillID, true, evolutionLevel); + } + + private void SetSkillIcon(GameObject go, uint skillID, bool mainSkill = false, uint evolutionLevel = 0u) + { + IXUISprite ixuisprite = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Zhu").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = go.transform.Find("Frame").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)skillID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSkillIconClicked)); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteSkill.RowData spriteSkillData = specificDocument.GetSpriteSkillData((short)skillID, mainSkill, evolutionLevel); + bool flag = spriteSkillData != null; + if (flag) + { + ixuisprite.SetSprite(spriteSkillData.Icon, spriteSkillData.Atlas, false); + } + ixuilabel.SetVisible(mainSkill); + ixuisprite2.SetVisible(!mainSkill); + bool flag2 = !mainSkill; + if (flag2) + { + ixuisprite2.SetSprite(string.Format("kuang_zq0{0}", spriteSkillData.SkillQuality)); + } + ixuilabel2.SetText(string.Format("[b]Lv.{0}[-]", evolutionLevel + 1u)); + ixuilabel2.SetVisible(mainSkill); + } + + private void OnSkillIconClicked(IXUISprite obj) + { + uint num = (uint)obj.ID; + bool flag = num == this.m_mainSkillID; + DlgBase.singleton.ItemSelector.Select(obj); + DlgBase.singleton.ShowSpriteSkill(num, flag, flag ? this.m_mainSkillLevel : 0u); + } + + public void SetSpriteAttributeInfo(SpriteInfo spriteData, SpriteInfo compareData = null) + { + bool flag = spriteData == null; + if (flag) + { + this.m_SkillPool.ReturnAll(false); + this.m_MainSkill.SetActive(false); + } + else + { + this.CreateSpriteSkill(spriteData.PassiveSkillID, spriteData.SkillID, spriteData.EvolutionLevel); + } + } + + public void SetSpriteAttributeInfo(uint spriteID) + { + this.attrCompareData.Clear(); + this.aptitudeCompareData.Clear(); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(spriteID); + bool flag = bySpriteID == null; + if (!flag) + { + List passiveSkillID = new List(); + this.CreateSpriteSkill(passiveSkillID, bySpriteID.SpriteSkillID, 0u); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeSHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeSHandler.cs.meta new file mode 100644 index 00000000..3c446827 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAttributeSHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15bb799c1c0adfc48b91b8ca2555268a +timeCreated: 1611403264 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAvatarHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XSpriteAvatarHandler.cs new file mode 100644 index 00000000..2e60fbfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAvatarHandler.cs @@ -0,0 +1,307 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSpriteAvatarHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteAvatarHandler"; + } + } + + private XSpriteSystemDocument _doc; + + private XUIPool m_StarPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_MoonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUILabel m_Name; + + private IXUILabel m_Power; + + private IXUILabel m_Level; + + private IXUISprite m_LevelFrame; + + private IUIDummy m_Snapshot; + + private IXUISprite m_Avatar; + + private IXUISprite m_Quality; + + private GameObject m_StarGrid; + + private XDummy m_Dummy; + + private SpriteInfo m_SpriteData = null; + + private XAttributes m_Attributes = null; + + private SpriteTable.RowData m_SpriteInfo = null; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + Transform transform = base.PanelObject.transform.Find("Message/StarGrid/StarTpl"); + this.m_StarPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = base.PanelObject.transform.Find("Message/StarGrid/MoonTpl"); + this.m_MoonPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_StarGrid = base.PanelObject.transform.Find("Message/StarGrid").gameObject; + this.m_Name = (base.PanelObject.transform.Find("Message/Name").GetComponent("XUILabel") as IXUILabel); + this.m_LevelFrame = (base.PanelObject.transform.Find("Message/Level").GetComponent("XUISprite") as IXUISprite); + this.m_Level = (base.PanelObject.transform.Find("Message/Level/Num").GetComponent("XUILabel") as IXUILabel); + this.m_Power = (base.PanelObject.transform.Find("Message/Power").GetComponent("XUILabel") as IXUILabel); + this.m_Quality = (base.PanelObject.transform.Find("Message/Quality").GetComponent("XUISprite") as IXUISprite); + this.m_Avatar = (base.PanelObject.transform.Find("AvatarBtn").GetComponent("XUISprite") as IXUISprite); + this.m_Snapshot = (base.PanelObject.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("XSpriteAvatarHandler", 1); + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_Dummy != null; + if (flag) + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + this.m_Dummy = null; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void OnUnload() + { + base.Return3DAvatarPool(); + this.m_Dummy = null; + base.OnUnload(); + } + + public void HideAvatar() + { + bool flag = this.m_Dummy != null; + if (flag) + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this.m_Dummy); + this.m_Dummy = null; + } + this.m_Name.SetText(""); + this.m_Level.gameObject.transform.parent.gameObject.SetActive(false); + this.m_Quality.SetVisible(false); + this.m_Power.SetText(""); + this.m_StarPool.ReturnAll(false); + this.m_MoonPool.ReturnAll(false); + } + + public void SetSpriteInfoByIndex(int index, int avatarIndex = 0, bool needClickEvent = false, bool showLevel = true) + { + bool flag = index >= this._doc.SpriteList.Count; + if (!flag) + { + this.SetSpriteInfo(this._doc.SpriteList[index], XSingleton.singleton.XPlayerData, avatarIndex, needClickEvent, showLevel); + } + } + + public void SetSpriteInfo(SpriteInfo spriteData, XAttributes attributes, int avatarIndex = 6, bool needClickEvent = false, bool showLevel = true) + { + if (needClickEvent) + { + this.m_Avatar.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickAvatar)); + } + else + { + this.m_Avatar.RegisterSpriteClickEventHandler(null); + } + bool flag = spriteData == null; + if (!flag) + { + this.m_SpriteInfo = this._doc._SpriteTable.GetBySpriteID(spriteData.SpriteID); + this.m_SpriteData = spriteData; + this.m_Attributes = attributes; + SpriteTable.RowData bySpriteID = this._doc._SpriteTable.GetBySpriteID(spriteData.SpriteID); + this.m_StarGrid.SetActive(true); + this.m_StarPool.ReturnAll(false); + this.m_MoonPool.ReturnAll(false); + uint num = spriteData.EvolutionLevel / XSpriteSystemDocument.MOONWORTH; + uint num2 = spriteData.EvolutionLevel % XSpriteSystemDocument.MOONWORTH; + float num3 = (num + num2 - 1f) / 2f; + int num4 = 0; + while ((long)num4 < (long)((ulong)(num + num2))) + { + bool flag2 = (long)num4 < (long)((ulong)num); + if (flag2) + { + GameObject gameObject = this.m_MoonPool.FetchGameObject(false); + Vector3 tplPos = this.m_MoonPool.TplPos; + gameObject.transform.localPosition = new Vector3(tplPos.x + ((float)num4 - num3) * (float)this.m_MoonPool.TplWidth, tplPos.y); + } + else + { + GameObject gameObject2 = this.m_StarPool.FetchGameObject(false); + Vector3 tplPos2 = this.m_StarPool.TplPos; + gameObject2.transform.localPosition = new Vector3(tplPos2.x + ((float)num4 - num3) * (float)this.m_StarPool.TplWidth, tplPos2.y); + } + num4++; + } + this.m_Name.SetText(string.Format("[{0}]{1}", this._doc.NAMECOLOR[(int)bySpriteID.SpriteQuality], bySpriteID.SpriteName)); + this.m_Quality.SetVisible(true); + this.m_Quality.spriteName = string.Format("icondjdj_{0}", bySpriteID.SpriteQuality); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + if (showLevel) + { + this.m_Level.gameObject.transform.parent.gameObject.SetActive(true); + this.m_Level.SetText(string.Format("Lv. {0}", spriteData.Level)); + } + else + { + this.m_Level.gameObject.transform.parent.gameObject.SetActive(false); + } + this.m_Power.SetText(string.Format(XStringDefineProxy.GetString("BOSSRUSH_POWER"), spriteData.PowerPoint)); + this.m_LevelFrame.UpdateAnchors(); + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, bySpriteID.SpriteModelID, this.m_Snapshot, this.m_Dummy, 1f); + this.ResetSpriteAnim(); + bool flag3 = this.m_SpriteInfo != null; + if (flag3) + { + this.ChangeMatColor(this.m_Dummy.EngineObject, this.m_SpriteInfo.PresentID); + } + } + } + + public void SetSpriteInfo(uint spriteID, bool showLevel = true, uint power = 0u) + { + this.m_SpriteData = null; + this.m_Attributes = null; + this.m_SpriteInfo = this._doc._SpriteTable.GetBySpriteID(spriteID); + this.m_Name.SetText(string.Format("[{0}]{1}", this._doc.NAMECOLOR[(int)this.m_SpriteInfo.SpriteQuality], this.m_SpriteInfo.SpriteName)); + this.m_Quality.SetVisible(true); + this.m_Quality.spriteName = string.Format("icondjdj_{0}", this.m_SpriteInfo.SpriteQuality); + this.m_Level.gameObject.transform.parent.gameObject.SetActive(showLevel); + if (showLevel) + { + this.m_Level.SetText("Lv.1"); + } + this.m_Power.SetText(string.Format(XStringDefineProxy.GetString("BOSSRUSH_POWER"), (power == 0u) ? this.GetSpriteOneLevelPower(this.m_SpriteInfo) : power)); + this.m_StarGrid.SetActive(false); + this.m_Dummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, this.m_SpriteInfo.SpriteModelID, this.m_Snapshot, this.m_Dummy, 1f); + this.ResetSpriteAnim(); + bool flag = this.m_SpriteInfo != null; + if (flag) + { + this.ChangeMatColor(this.m_Dummy.EngineObject, this.m_SpriteInfo.PresentID); + } + } + + private void ChangeMatColor(XGameObject xobject, uint presentID) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData byPresentID = specificDocument._SpriteTable.GetByPresentID(presentID); + bool flag = byPresentID != null; + if (flag) + { + xobject.CallCommand(XAffiliate._changeSpriteMatColorCb, byPresentID, -1, false); + } + } + + public XEntityPresentation.RowData GetSpritePresent() + { + bool flag = this.m_Dummy == null; + XEntityPresentation.RowData result; + if (flag) + { + result = null; + } + else + { + bool flag2 = this.m_Dummy.Present == null; + if (flag2) + { + result = null; + } + else + { + result = this.m_Dummy.Present.PresentLib; + } + } + return result; + } + + public void ResetSpriteAnim() + { + bool flag = this.m_Dummy == null; + if (!flag) + { + this.m_Dummy.ResetAnimation(); + } + } + + public float SetSpriteAnim(string clipname) + { + bool flag = this.m_Dummy == null; + float result; + if (flag) + { + result = -1f; + } + else + { + result = this.m_Dummy.SetAnimationGetLength(clipname); + } + return result; + } + + private uint GetSpriteOneLevelPower(SpriteTable.RowData spriteInfo) + { + List list = new List(); + List list2 = new List(); + List list3 = new List(); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + XSpriteAttributeHandler.GetLevelOneSpriteAttr(spriteInfo, out list, out list2, out list3); + double num = 0.0; + for (int i = 0; i < list3.Count; i++) + { + num += XSingleton.singleton.GetPPT(list[i], list3[i] / 100.0, null, 0); + } + for (int j = 0; j < list2.Count; j++) + { + num += XSingleton.singleton.GetPPT(list[j], (uint)list2[j], null, 0); + } + return (uint)num; + } + + private void OnClickAvatar(IXUISprite btn) + { + bool flag = this.m_SpriteData != null; + if (flag) + { + DlgBase.singleton.ShowDetail(this.m_SpriteData, this.m_Attributes); + } + else + { + bool flag2 = this.m_SpriteInfo != null; + if (flag2) + { + DlgBase.singleton.ShowDetail(this.m_SpriteInfo.SpriteID); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSpriteAvatarHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSpriteAvatarHandler.cs.meta new file mode 100644 index 00000000..f8655336 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSpriteAvatarHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18e3e26ed1b070044ba8c2f01941475c +timeCreated: 1611403299 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSystemItemMailView.cs b/Client/Assets/Scripts/XMainClient/UI/XSystemItemMailView.cs new file mode 100644 index 00000000..a52f093d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSystemItemMailView.cs @@ -0,0 +1,224 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSystemItemMailView : MonoBehaviour + { + public bool Select + { + get + { + return base.gameObject != null && base.gameObject.activeSelf && this.showSign; + } + } + + public ulong uid + { + get + { + return this.mailItem.id; + } + } + + public bool isRwd + { + get + { + return this.mailItem != null && this.mailItem.state == MailState.RWD; + } + } + + private XMailDocument _doc = null; + + public IXUISprite m_sprsign; + + public IXUISprite m_spricon; + + public IXUILabel m_lbltitle; + + public IXUISprite m_sprattach; + + public IXUISprite m_sprhighlight; + + public IXUILabel m_lblday; + + private bool showSign = false; + + private MailItem mailItem; + + private int leftTime = int.MaxValue; + + private uint timeToken = 0u; + + private float refreshTime; + + private string timer_show; + + private void Awake() + { + this.m_sprsign = (base.transform.Find("sign").GetComponent("XUISprite") as IXUISprite); + this.m_spricon = (base.transform.Find("Icon1").GetComponent("XUISprite") as IXUISprite); + this.m_lbltitle = (base.transform.Find("titleLabel").GetComponent("XUILabel") as IXUILabel); + this.m_sprattach = (base.transform.Find("Icon2").GetComponent("XUISprite") as IXUISprite); + this.m_sprhighlight = (base.transform.Find("highlight").GetComponent("XUISprite") as IXUISprite); + this.m_lblday = (base.transform.Find("dayLabel").GetComponent("XUILabel") as IXUILabel); + this.m_sprsign.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSignClick)); + this.m_lbltitle.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnItemClick)); + this.ShowSel(false); + this.ShowHighLight(false); + } + + public void OnDisable() + { + bool flag = this.timeToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.timeToken); + } + } + + public void Update() + { + bool flag = this._doc != null && this._doc.select_mail == this.mailItem.id; + if (flag) + { + bool flag2 = this.leftTime <= 86400; + if (flag2) + { + float num = (float)this.leftTime - (Time.time - this.refreshTime); + bool flag3 = num >= 3600f; + if (flag3) + { + this.timer_show = (int)(num / 3600f) + XStringDefineProxy.GetString("Mail_HOUR"); + } + else + { + bool flag4 = num >= 60f; + if (flag4) + { + this.timer_show = (int)(num / 60f) + XStringDefineProxy.GetString("Mail_MIN"); + } + else + { + this.timer_show = "1" + XStringDefineProxy.GetString("Mail_MIN"); + } + } + this._doc.valit = this.timer_show; + this.m_lblday.SetText(this.timer_show); + } + } + } + + public void Refresh(ulong id) + { + this._doc = (XSingleton.singleton.Doc.GetXComponent(XMailDocument.uuID) as XMailDocument); + this.mailItem = this._doc.GetMailItem(id); + this.m_lbltitle.SetText(this.mailItem.title); + this.m_lbltitle.SetColor(this.mailItem.isRead ? Color.gray : new Color(0.94f, 0.82f, 0.34f)); + this.m_sprattach.SetAlpha((float)((this.mailItem.state == MailState.NONE) ? 0 : 1)); + this.m_sprattach.spriteName = ((this.mailItem.state == MailState.RWD) ? "mail_0" : "mail_1"); + bool flag = this.mailItem.valit >= 86400; + if (flag) + { + this.timer_show = this.mailItem.valit / 86400 + XStringDefineProxy.GetString("Mail_DAY"); + } + else + { + bool flag2 = this.mailItem.valit >= 3600; + if (flag2) + { + this.timer_show = this.mailItem.valit / 3600 + XStringDefineProxy.GetString("Mail_HOUR"); + } + else + { + bool flag3 = this.mailItem.valit > 60; + if (flag3) + { + this.timer_show = this.mailItem.valit / 60 + XStringDefineProxy.GetString("Mail_MIN"); + } + else + { + this.timer_show = "1" + XStringDefineProxy.GetString("Mail_MIN"); + } + } + } + this.m_lblday.SetText(this.timer_show); + this.leftTime = this.mailItem.valit; + this.refreshTime = Time.time; + bool flag4 = this.leftTime < 240; + if (flag4) + { + this.timeToken = XSingleton.singleton.SetTimer((float)(this.leftTime + 4), new XTimerMgr.ElapsedEventHandler(this.OnTimeOut), null); + } + switch (this.mailItem.type) + { + case MailType.System: + this.m_spricon.spriteName = "mail_2"; + break; + case MailType.Good: + this.m_spricon.spriteName = "mail_3"; + break; + case MailType.Bad: + this.m_spricon.spriteName = "mail_4"; + break; + case MailType.Cost: + this.m_spricon.spriteName = "mail_5"; + break; + } + } + + public void ShowHighLight(bool show) + { + this.m_sprhighlight.SetAlpha(show ? 1f : 0.01f); + } + + private void OnItemClick(IXUILabel lbl) + { + bool flag = this.mailItem == null || DlgBase.singleton.IsVisible(); + if (!flag) + { + this._doc.SetSelect(this.mailItem.id); + bool flag2 = XSystemMailView.doItemSelect != null; + if (flag2) + { + XSystemMailView.doItemSelect(); + } + bool flag3 = !this.mailItem.isRead; + if (flag3) + { + this._doc.ReqMailOP(MailOP.Read, this.mailItem.id); + } + this.ShowHighLight(true); + } + } + + private void OnTimeOut(object handler) + { + this._doc.ReqMailInfo(); + } + + private void OnSignClick(IXUISprite spr) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + this.ShowSel(!this.showSign); + bool flag2 = XSystemMailView.doSelSelect != null; + if (flag2) + { + XSystemMailView.doSelSelect(); + } + } + } + + public void ShowSel(bool show) + { + this.showSign = show; + this.m_sprsign.SetAlpha(show ? 1f : 0.01f); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSystemItemMailView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSystemItemMailView.cs.meta new file mode 100644 index 00000000..67f24a12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSystemItemMailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fb0f6b95378a994fb2bd5d46b235b95 +timeCreated: 1611403211 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XSystemMailView.cs b/Client/Assets/Scripts/XMainClient/UI/XSystemMailView.cs new file mode 100644 index 00000000..ce3d8c0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSystemMailView.cs @@ -0,0 +1,258 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XSystemMailView : DlgHandlerBase + { + private List selects + { + get + { + List list = new List(); + foreach (XSystemItemMailView xsystemItemMailView in this.items) + { + bool flag = xsystemItemMailView != null && xsystemItemMailView.Select; + if (flag) + { + list.Add(xsystemItemMailView.uid); + } + } + return list; + } + } + + public bool hasRwd + { + get + { + bool result = false; + bool flag = this.items != null; + if (flag) + { + for (int i = 0; i < this.items.Length; i++) + { + XSystemItemMailView xsystemItemMailView = this.items[i]; + bool flag2 = xsystemItemMailView != null; + if (flag2) + { + bool flag3 = xsystemItemMailView.Select && xsystemItemMailView.isRwd; + if (flag3) + { + result = true; + break; + } + } + } + } + return result; + } + } + + private XMailDocument _doc = null; + + public IXUISprite m_sprsel; + + public IXUILabel m_lblpage; + + public IXUIButton m_sprleft; + + public IXUIButton m_sprright; + + public IXUIButton m_btndel; + + public IXUIButton m_btnsq; + + public GameObject m_objDelHighlight; + + public XSystemItemMailView[] items = new XSystemItemMailView[7]; + + public static XSystemMailView.DelSelect doSelSelect; + + public static XSystemMailView.DelSelect doItemSelect; + + private bool all_selected; + + public delegate void DelSelect(); + + protected override void Init() + { + base.Init(); + this.m_sprsel = (base.PanelObject.transform.Find("btm/AllSelItem/sign").GetComponent("XUISprite") as IXUISprite); + this.m_lblpage = (base.PanelObject.transform.Find("btm/pageItem/T").GetComponent("XUILabel") as IXUILabel); + this.m_sprleft = (base.PanelObject.transform.Find("btm/pageItem/left").GetComponent("XUIButton") as IXUIButton); + this.m_sprright = (base.PanelObject.transform.Find("btm/pageItem/right").GetComponent("XUIButton") as IXUIButton); + this.m_btndel = (base.PanelObject.transform.Find("btm/deletBtn").GetComponent("XUIButton") as IXUIButton); + this.m_btnsq = (base.PanelObject.transform.Find("btm/sqBtn").GetComponent("XUIButton") as IXUIButton); + this.m_objDelHighlight = this.m_btndel.gameObject.transform.Find("Highlight").gameObject; + this.ShowSel(false); + this.m_objDelHighlight.SetActive(false); + for (int i = 0; i < this.items.Length; i++) + { + string text = "Content/item" + i; + GameObject gameObject = base.PanelObject.transform.Find(text).gameObject; + bool flag = gameObject != null; + if (flag) + { + this.items[i] = gameObject.AddComponent(); + } + } + XSystemMailView.doSelSelect = new XSystemMailView.DelSelect(this.CheckDelbtnShow); + XSystemMailView.doItemSelect = (XSystemMailView.DelSelect)Delegate.Combine(XSystemMailView.doItemSelect, new XSystemMailView.DelSelect(this.Hidehighlight)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_sprsel.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAllSelClick)); + this.m_btndel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnDelClick)); + this.m_sprleft.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPageLeftClick)); + this.m_sprright.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPageRightClick)); + this.m_btnsq.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSQClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XMailDocument.uuID) as XMailDocument); + this._doc.ReqMailInfo(); + } + + public void Refresh() + { + this._doc.RefreshContentNil(); + this.ShowItemsSel(false); + this.ShowSel(false); + this.m_objDelHighlight.SetActive(false); + this.m_btndel.SetEnable(false, false); + this.Hidehighlight(); + this.RefreshItems(); + this.RefreshPage(); + } + + public void RefreshItems() + { + List mails = this._doc.mails; + for (int i = 0; i < mails.Count; i++) + { + this.items[i].gameObject.SetActive(true); + this.items[i].Refresh(mails[i].id); + } + for (int j = mails.Count; j < 7; j++) + { + this.items[j].gameObject.SetActive(false); + } + } + + public void RefreshPage() + { + this.m_lblpage.SetText(this._doc.GetPageFormat()); + } + + public override void OnUnload() + { + XSystemMailView.doItemSelect = (XSystemMailView.DelSelect)Delegate.Remove(XSystemMailView.doItemSelect, new XSystemMailView.DelSelect(this.Hidehighlight)); + base.OnUnload(); + } + + private bool OnDelClick(IXUIButton btn) + { + bool flag = !this.m_objDelHighlight.activeSelf || DlgBase.singleton.IsVisible(); + bool result; + if (flag) + { + result = true; + } + else + { + bool hasRwd = this.hasRwd; + if (hasRwd) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Mail_RWD"), "fece00"); + } + else + { + this._doc.ReqMailOP(MailOP.Delete, this.selects); + } + result = true; + } + return result; + } + + private bool OnPageLeftClick(IXUIButton btn) + { + bool flag = this._doc.CtlPage(false); + if (flag) + { + this.Refresh(); + } + return true; + } + + private bool OnPageRightClick(IXUIButton btn) + { + bool flag = this._doc.CtlPage(true); + if (flag) + { + this.Refresh(); + } + return true; + } + + private bool OnSQClick(IXUIButton btn) + { + XSingleton.singleton.AddLog("sq click", null, null, null, null, null, XDebugColor.XDebug_None); + this._doc.ReqMailOP(MailOP.ClaimAll, new List()); + return true; + } + + private void OnAllSelClick(IXUISprite spr) + { + this.ShowSel(!this.all_selected); + this.ShowItemsSel(this.all_selected); + this.CheckDelbtnShow(); + } + + private void ShowItemsSel(bool show) + { + foreach (XSystemItemMailView xsystemItemMailView in this.items) + { + xsystemItemMailView.ShowSel(show); + } + } + + private void ShowSel(bool show) + { + this.all_selected = show; + this.m_sprsel.SetAlpha(show ? 1f : 0.01f); + } + + private void CheckDelbtnShow() + { + bool flag = false; + foreach (XSystemItemMailView xsystemItemMailView in this.items) + { + bool select = xsystemItemMailView.Select; + if (select) + { + flag = true; + break; + } + } + this.m_objDelHighlight.SetActive(flag); + this.m_btndel.SetEnable(flag, false); + } + + private void Hidehighlight() + { + foreach (XSystemItemMailView xsystemItemMailView in this.items) + { + xsystemItemMailView.ShowHighLight(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XSystemMailView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XSystemMailView.cs.meta new file mode 100644 index 00000000..4451b4c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XSystemMailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef31b59f7c3fedd488d4985d322044a9 +timeCreated: 1611404803 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTargetRewardPopWindow.cs b/Client/Assets/Scripts/XMainClient/UI/XTargetRewardPopWindow.cs new file mode 100644 index 00000000..39fa81f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTargetRewardPopWindow.cs @@ -0,0 +1,147 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTargetRewardPopWindow + { + public Transform panelObject = null; + + public IXUIButton closeBtn = null; + + public IXUIWrapContent wrapContent = null; + + public IXUIScrollView panelScrollView = null; + + public TargetItemInfo targetItemInfo = null; + + private int maxAwardNum = 3; + + public void init() + { + bool flag = this.wrapContent != null; + if (flag) + { + this.wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.PopWrapContentItemUpdated)); + } + bool flag2 = this.closeBtn != null; + if (flag2) + { + this.closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosePopwindow)); + } + } + + private bool OnClosePopwindow(IXUIButton btn) + { + bool flag = this.panelObject != null; + if (flag) + { + this.panelObject.gameObject.SetActive(false); + } + return true; + } + + public void ShowPopView(TargetItemInfo info) + { + bool flag = this.panelObject != null; + if (flag) + { + this.panelObject.gameObject.SetActive(true); + this.targetItemInfo = info; + this.wrapContent.SetContentCount(info.subItems.Count, false); + this.panelScrollView.ResetPosition(); + } + } + + private void PopWrapContentItemUpdated(Transform t, int index) + { + bool flag = this.targetItemInfo != null; + if (flag) + { + bool flag2 = index < this.targetItemInfo.subItems.Count && index >= 0; + if (flag2) + { + this._SetRecord(t, this.targetItemInfo, index); + } + } + else + { + XSingleton.singleton.AddErrorLog("targetItemInfo is nil or index: ", index.ToString(), null, null, null, null); + } + } + + protected void _SetRecord(Transform t, TargetItemInfo info, int showIndex) + { + IXUILabel ixuilabel = t.Find("TLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("DLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("Sprite").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite = t.Find("Fini").GetComponent("XUISprite") as IXUISprite; + Transform[] array = new Transform[this.maxAwardNum]; + for (int i = 0; i < this.maxAwardNum; i++) + { + array[i] = t.Find("tmp/ItemTpl1_" + (i + 1)); + } + int num = info.subItems.Count - 1; + GoalAwards.RowData rowData = info.subItems[showIndex]; + ixuilabel.SetText(rowData.Description); + ixuilabel2.SetText(rowData.Explanation); + bool flag = (ulong)info.gottenAwardsIndex >= (ulong)((long)(showIndex + 1)); + if (flag) + { + ixuisprite.SetSprite("L_ylq"); + } + else + { + ixuisprite.SetSprite("L_wlq"); + } + bool flag2 = rowData.TitleID > 0u; + if (flag2) + { + ixuilabelSymbol.SetVisible(true); + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + DesignationTable.RowData byID = specificDocument._DesignationTable.GetByID((int)rowData.TitleID); + bool flag3 = byID.Effect == ""; + string inputText; + if (flag3) + { + inputText = byID.Color + byID.Designation; + } + else + { + inputText = XLabelSymbolHelper.FormatDesignation(byID.Atlas, byID.Effect, 16); + } + ixuilabelSymbol.InputText = inputText; + } + else + { + ixuilabelSymbol.SetVisible(false); + } + int num2 = Math.Min(this.maxAwardNum, rowData.Awards.Count); + XTargetRewardDocument specificDocument2 = XDocuments.GetSpecificDocument(XTargetRewardDocument.uuID); + for (int j = 0; j < num2; j++) + { + bool flag4 = specificDocument2 != null && specificDocument2.m_designationId == (int)rowData.Awards[j, 0]; + if (flag4) + { + array[j].gameObject.SetActive(false); + } + else + { + array[j].gameObject.SetActive(true); + int num3 = (int)rowData.Awards[j, 0]; + int itemCount = (int)rowData.Awards[j, 1]; + XSingleton.singleton.normalItemDrawer.DrawItem(array[j].gameObject, num3, itemCount, false); + IXUISprite ixuisprite2 = array[j].gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)num3); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + for (int k = num2; k < this.maxAwardNum; k++) + { + array[k].gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTargetRewardPopWindow.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTargetRewardPopWindow.cs.meta new file mode 100644 index 00000000..f332468e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTargetRewardPopWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88345a4401655be44908924a2f3263e8 +timeCreated: 1611404083 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTargetRewardView.cs b/Client/Assets/Scripts/XMainClient/UI/XTargetRewardView.cs new file mode 100644 index 00000000..e18fc42e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTargetRewardView.cs @@ -0,0 +1,328 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTargetRewardView : DlgHandlerBase + { + private XTargetRewardDocument _doc = null; + + private XTargetRewardPopWindow popWindow = new XTargetRewardPopWindow(); + + private IXUICheckBox[] m_padTabs = new IXUICheckBox[4]; + + private IXUISprite[] m_padPoint = new IXUISprite[4]; + + public TargetRewardType m_targetRewardType; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_PanelScrollView; + + private IXUIList m_GoalList; + + private int maxAwardNum = 4; + + protected override void Init() + { + base.Init(); + this.popWindow.panelObject = base.PanelObject.transform.Find("Top"); + this.popWindow.closeBtn = (base.PanelObject.transform.Find("Top/Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.popWindow.wrapContent = (base.PanelObject.transform.Find("Top/Bg/detail/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.popWindow.panelScrollView = (base.PanelObject.transform.Find("Top/Bg/detail").GetComponent("XUIScrollView") as IXUIScrollView); + this.popWindow.init(); + this._doc = XDocuments.GetSpecificDocument(XTargetRewardDocument.uuID); + this._doc.InitOpenGoalAward(); + int num = 0; + for (int i = 0; i < this.m_padTabs.Length; i++) + { + this.m_padTabs[i] = (base.PanelObject.transform.Find("padTabs/TabList/TabTpl" + i + "/Bg").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_padPoint[i] = (base.PanelObject.transform.Find("padTabs/TabList/TabTpl" + i + "/Bg/RedPoint").GetComponent("XUISprite") as IXUISprite); + IXUISprite ixuisprite = base.PanelObject.transform.Find("padTabs/TabList/TabTpl" + i).GetComponent("XUISprite") as IXUISprite; + this.m_padPoint[i].gameObject.SetActive(false); + bool flag = this.m_padTabs[i] != null; + if (flag) + { + this.m_padTabs[i].ID = (ulong)i; + this.m_padTabs[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabControlStateChange)); + } + bool flag2 = ixuisprite != null; + if (flag2) + { + ixuisprite.gameObject.SetActive(this._doc.m_isGoalOpen[i + 1]); + bool flag3 = this._doc.m_isGoalOpen[i + 1] && num == 0; + if (flag3) + { + num = i; + this.m_padTabs[i].ForceSetFlag(true); + } + else + { + this.m_padTabs[i].ForceSetFlag(false); + } + } + } + this.m_GoalList = (base.PanelObject.transform.Find("padTabs/TabList").GetComponent("XUIList") as IXUIList); + this.m_PanelScrollView = (base.PanelObject.transform.Find("detail/detail").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.PanelObject.transform.Find("detail/detail/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + this.m_GoalList.Refresh(); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this._doc != null; + if (flag) + { + bool flag2 = index < this._doc.targetAwardDetails.Count && index >= 0; + if (flag2) + { + TargetItemInfo info = this._doc.targetAwardDetails[index]; + this._SetRecord(t, info); + } + } + else + { + XSingleton.singleton.AddErrorLog("_doc is nil or index: ", index.ToString(), null, null, null, null); + } + } + + protected void _SetProgressBar(IXUILabel label, IXUIProgress progressBar, TargetItemInfo info) + { + int num = info.subItems.Count - 1; + int num2 = (int)Math.Min(info.gottenAwardsIndex, info.doneIndex); + num2 = Math.Min(num2, num); + GoalAwards.RowData rowData = info.subItems[num2]; + double num3 = info.totalvalue; + double num4 = rowData.AwardsValue; + bool flag = (ulong)info.gottenAwardsIndex == (ulong)((long)(num + 1)); + if (flag) + { + label.SetVisible(false); + progressBar.SetVisible(false); + } + else + { + label.SetVisible(true); + progressBar.SetVisible(true); + bool flag2 = rowData.ShowType == 2u; + if (flag2) + { + bool flag3 = info.gottenAwardsIndex < info.doneIndex; + if (flag3) + { + num3 = 1.0; + num4 = 1.0; + } + else + { + num3 = 0.0; + num4 = 1.0; + } + } + label.SetText(XSingleton.singleton.NumberFormat((ulong)num3) + " / " + XSingleton.singleton.NumberFormat((ulong)num4)); + bool flag4 = (ulong)info.gottenAwardsIndex < (ulong)((long)(num + 1)) && info.gottenAwardsIndex == info.doneIndex; + if (flag4) + { + bool flag5 = num3 < num4; + if (flag5) + { + progressBar.value = (float)(num3 / num4); + } + else + { + progressBar.value = 0f; + } + } + else + { + progressBar.value = 1f; + } + } + } + + protected void _SetRecord(Transform t, TargetItemInfo info) + { + IXUILabel ixuilabel = t.Find("TLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("DLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("ch").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("Get").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite = t.Find("Fini").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + IXUIProgress ixuiprogress = t.Find("slider").GetComponent("XUIProgress") as IXUIProgress; + IXUILabel label = t.Find("slider/PLabel").GetComponent("XUILabel") as IXUILabel; + Transform[] array = new Transform[this.maxAwardNum]; + for (int i = 0; i < this.maxAwardNum; i++) + { + array[i] = t.Find("tmp/ItemTpl1_" + (i + 1)); + } + int num = info.subItems.Count - 1; + int num2 = (int)Math.Min(info.gottenAwardsIndex, info.doneIndex); + num2 = Math.Min(num2, num); + GoalAwards.RowData rowData = info.subItems[num2]; + ixuilabel.SetText(rowData.Description); + ixuilabel2.SetText(rowData.Explanation); + ixuisprite.SetVisible((ulong)info.gottenAwardsIndex == (ulong)((long)(num + 1))); + ixuisprite2.SetVisible(info.gottenAwardsIndex < info.doneIndex); + this._SetProgressBar(label, ixuiprogress, info); + int num3 = Math.Min(this.maxAwardNum, rowData.Awards.Count); + bool flag = (ulong)info.gottenAwardsIndex == (ulong)((long)(num + 1)); + if (flag) + { + num3 = 0; + } + for (int j = 0; j < num3; j++) + { + array[j].gameObject.SetActive(true); + int num4 = (int)rowData.Awards[j, 0]; + int itemCount = (int)rowData.Awards[j, 1]; + XSingleton.singleton.normalItemDrawer.DrawItem(array[j].gameObject, num4, itemCount, false); + IXUISprite ixuisprite3 = array[j].gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = (ulong)((long)num4); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + for (int k = num3; k < this.maxAwardNum; k++) + { + array[k].gameObject.SetActive(false); + } + bool visible = info.gottenAwardsIndex >= info.doneIndex && (ulong)info.gottenAwardsIndex != (ulong)((long)(num + 1)); + bool visible2 = info.gottenAwardsIndex < info.doneIndex; + ixuiprogress.SetVisible(visible); + ixuibutton.SetVisible(visible2); + ixuibutton.ID = (ulong)info.goalAwardsID; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnClick)); + ixuilabel3.ID = (ulong)info.goalAwardsID; + ixuilabel3.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnLabelClick)); + } + + private void OnLabelClick(IXUILabel uiSprite) + { + this.ShowDetailView((int)uiSprite.ID); + } + + private void ShowDetailView(int goalAwardsID) + { + TargetItemInfo info = new TargetItemInfo(); + bool flag = false; + for (int i = 0; i < this._doc.targetAwardDetails.Count; i++) + { + bool flag2 = (ulong)this._doc.targetAwardDetails[i].goalAwardsID == (ulong)((long)goalAwardsID); + if (flag2) + { + flag = true; + info = this._doc.targetAwardDetails[i]; + break; + } + } + bool flag3 = !flag; + if (!flag3) + { + this.popWindow.ShowPopView(info); + } + } + + private bool OnBtnClick(IXUIButton btn) + { + TargetItemInfo targetItemInfo = new TargetItemInfo(); + bool flag = false; + for (int i = 0; i < this._doc.targetAwardDetails.Count; i++) + { + bool flag2 = (ulong)this._doc.targetAwardDetails[i].goalAwardsID == (ulong)((long)((int)btn.ID)); + if (flag2) + { + flag = true; + targetItemInfo = this._doc.targetAwardDetails[i]; + break; + } + } + bool flag3 = flag && targetItemInfo.gottenAwardsIndex < targetItemInfo.doneIndex; + if (flag3) + { + this._doc.ClaimAchieve((int)btn.ID); + } + return true; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc = XDocuments.GetSpecificDocument(XTargetRewardDocument.uuID); + this._doc.rwdView = this; + this.RefreshRedPoint(); + this.m_padTabs[0].ForceSetFlag(true); + this.ReqDetailInfo(0); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + protected override void OnHide() + { + base.OnHide(); + base.PanelObject.SetActive(false); + } + + public override void OnUnload() + { + this._doc = null; + base.OnUnload(); + } + + public bool OnTabControlStateChange(IXUICheckBox chkBox) + { + bool bChecked = chkBox.bChecked; + if (bChecked) + { + this.OnTabClick((int)chkBox.ID); + } + return true; + } + + private void OnTabClick(int index) + { + this.ReqDetailInfo(index); + } + + private void ReqDetailInfo(int index) + { + bool flag = this._doc != null; + if (flag) + { + this.m_targetRewardType = index + TargetRewardType.Athletics; + this._doc.FetchTargetRewardType(this.m_targetRewardType); + } + } + + public void RefreshDetails() + { + this.m_WrapContent.SetContentCount(this._doc.targetAwardDetails.Count, false); + this.m_PanelScrollView.ResetPosition(); + } + + public void RefreshRedPoint() + { + for (int i = 0; i < this.m_padPoint.Length; i++) + { + this.m_padPoint[i].SetVisible(false); + } + for (int j = 0; j < this._doc.m_redList.Count; j++) + { + int num = (int)this._doc.m_redList[j]; + bool flag = num <= this.m_padPoint.Length; + if (flag) + { + this.m_padPoint[num - 1].SetVisible(true); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTargetRewardView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTargetRewardView.cs.meta new file mode 100644 index 00000000..03cabe46 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTargetRewardView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6543e0fde51f7ac4bbe615d152e24ffb +timeCreated: 1611403850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs new file mode 100644 index 00000000..641084cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs @@ -0,0 +1,55 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamBattleConfirmBehaviour : DlgBehaviourBase + { + public IXUIButton m_OK = null; + + public IXUIButton m_Cancel = null; + + public IXUILabel m_DungeonName; + + public IXUIProgress m_Progress; + + public XUIPool m_Pool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_GoldGroup; + + public IXUILabel m_statLab; + + public GameObject m_tipsGo; + + public IXUILabel m_CommonTip; + + public GameObject m_RiftPanel; + + public static int RiftBuffCount = 5; + + public GameObject[] m_RiftBuffs; + + private void Awake() + { + this.m_OK = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.m_Cancel = (base.transform.Find("Bg/Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_DungeonName = (base.transform.Find("Bg/DungeonName").GetComponent("XUILabel") as IXUILabel); + this.m_Progress = (base.transform.Find("Bg/Progress").GetComponent("XUIProgress") as IXUIProgress); + this.m_GoldGroup = base.transform.Find("Bg/RewardHunt").gameObject; + Transform transform = base.transform.Find("Bg/Members/Tpl"); + this.m_Pool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_statLab = (base.transform.Find("Bg/Start").GetComponent("XUILabel") as IXUILabel); + this.m_tipsGo = base.transform.Find("LetsMakeFriends").gameObject; + this.m_CommonTip = (base.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.m_RiftPanel = base.transform.Find("Bg/RiftBuff").gameObject; + this.m_RiftBuffs = new GameObject[XTeamBattleConfirmBehaviour.RiftBuffCount]; + for (int i = 0; i < XTeamBattleConfirmBehaviour.RiftBuffCount; i++) + { + this.m_RiftBuffs[i] = this.m_RiftPanel.transform.Find("BossBuff" + i).gameObject; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs.meta new file mode 100644 index 00000000..02665126 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f87ff617afbf2c4bb240f771f3852db +timeCreated: 1611404134 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmView.cs new file mode 100644 index 00000000..09a31e30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmView.cs @@ -0,0 +1,296 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamBattleConfirmView : DlgBase + { + public override string fileName + { + get + { + return "Team/BattleBeginConfirmDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isPopup + { + get + { + return true; + } + } + + private XTeamDocument doc; + + private ButtonClickEventHandler m_OKHandler; + + private ButtonClickEventHandler m_CancelHandler; + + private float FIGHT_VOTE_TIME = 5f; + + private float m_TargetTime; + + private float m_CurrentTime; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.FIGHT_VOTE_TIME = (float)XSingleton.singleton.GetInt("TeamVoteTime"); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_OK.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClick)); + base.uiBehaviour.m_Cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCancelBtnClick)); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_TargetTime > 0f; + if (flag) + { + bool flag2 = this.m_CurrentTime >= this.m_TargetTime; + if (flag2) + { + this.m_TargetTime = -1f; + } + else + { + bool flag3 = this.m_CurrentTime < this.m_TargetTime; + if (flag3) + { + this.m_CurrentTime += Time.deltaTime; + base.uiBehaviour.m_Progress.value = this.m_CurrentTime / this.m_TargetTime; + } + } + } + } + + public void StartFightVote() + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + this.m_OKHandler = new ButtonClickEventHandler(this._OnFightAgreeBtnClick); + this.m_CancelHandler = new ButtonClickEventHandler(this._OnFightRejectBtnClick); + this.m_TargetTime = this.FIGHT_VOTE_TIME; + this.m_CurrentTime = 0f; + base.uiBehaviour.m_Progress.value = 0f; + base.uiBehaviour.m_Progress.ForceUpdate(); + this.RefreshFightVote(); + } + + public void RefreshFightVote() + { + bool flag = !base.IsVisible() || !this.doc.bInTeam; + if (!flag) + { + base.uiBehaviour.m_Pool.FakeReturnAll(); + bool flag2 = this.doc.currentDungeonType == TeamLevelType.TeamLevelPartner; + if (flag2) + { + base.uiBehaviour.m_statLab.SetText(this.doc.currentDungeonName); + base.uiBehaviour.m_DungeonName.SetText(string.Format(XSingleton.singleton.GetString("GetPartnerNeedMoney"), XSingleton.singleton.GetInt("PartnerNeedDragonCoin"))); + base.uiBehaviour.m_tipsGo.SetActive(false); + base.uiBehaviour.m_CommonTip.SetVisible(false); + } + else + { + bool flag3 = this.doc.currentDungeonType == TeamLevelType.TeamLevelTeamLeague; + if (flag3) + { + base.uiBehaviour.m_statLab.SetText(XSingleton.singleton.GetString("CREATE_TEAM_LEAGUE")); + base.uiBehaviour.m_DungeonName.SetText(this.doc.teamLeagueName); + base.uiBehaviour.m_tipsGo.SetActive(false); + base.uiBehaviour.m_CommonTip.SetText(XSingleton.singleton.GetString("CREATE_TEAM_LEAGUE_TIP")); + base.uiBehaviour.m_CommonTip.SetVisible(true); + } + else + { + base.uiBehaviour.m_statLab.SetText(XSingleton.singleton.GetString("START_FIGHT")); + bool flag4 = this.doc.MyTeam.teamBrief.rift == null; + if (flag4) + { + base.uiBehaviour.m_DungeonName.SetText(this.doc.currentDungeonName); + } + else + { + base.uiBehaviour.m_DungeonName.SetText(this.doc.MyTeam.teamBrief.rift.GetSceneName(this.doc.currentDungeonName)); + } + bool flag5 = this.doc.currentDungeonType == TeamLevelType.TeamLevelWedding; + if (flag5) + { + base.uiBehaviour.m_tipsGo.SetActive(false); + } + else + { + base.uiBehaviour.m_tipsGo.SetActive(true); + } + base.uiBehaviour.m_CommonTip.SetVisible(false); + } + } + float num = (float)this.doc.MyTeam.members.Count * 0.5f - 0.5f; + Vector3 tplPos = base.uiBehaviour.m_Pool.TplPos; + for (int i = 0; i < this.doc.MyTeam.members.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_Pool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = gameObject.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + gameObject.transform.localPosition = new Vector3(((float)i - num) * (float)base.uiBehaviour.m_Pool.TplWidth, tplPos.y); + XTeamMember xteamMember = this.doc.MyTeam.members[i]; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2(XFastEnumIntEqualityComparer.ToInt(xteamMember.profession))); + ixuilabelSymbol.InputText = XSingleton.singleton.StringCombine(xteamMember.name, XRechargeDocument.GetVIPIconString(xteamMember.vip)); + bool flag6 = xteamMember.state != ExpTeamMemberState.EXPTEAM_READY; + if (flag6) + { + ixuisprite2.SetEnabled(false); + } + else + { + bool flag7 = !ixuisprite2.IsEnabled(); + if (flag7) + { + ixuisprite2.SetEnabled(xteamMember.state == ExpTeamMemberState.EXPTEAM_READY); + } + } + } + base.uiBehaviour.m_Pool.ActualReturnAll(false); + base.uiBehaviour.m_OK.SetVisible(this.doc.MyTeam.myData != null && this.doc.MyTeam.myData.state == ExpTeamMemberState.EXPTEAM_IDLE); + base.uiBehaviour.m_Cancel.SetVisible(this.doc.MyTeam.myData != null && this.doc.MyTeam.myData.state == ExpTeamMemberState.EXPTEAM_IDLE); + this.doc.MyTeam.teamBrief.goldGroup.SetUI(base.uiBehaviour.m_GoldGroup, true); + this._SetRift(this.doc.MyTeam.teamBrief.rift); + } + } + + private bool _OnOKBtnClick(IXUIButton go) + { + return this.m_OKHandler(go); + } + + private bool _OnCancelBtnClick(IXUIButton go) + { + return this.m_CancelHandler(go); + } + + private bool _OnFightAgreeBtnClick(IXUIButton go) + { + this.doc.ReqTeamOp(TeamOperate.TEAM_START_BATTLE_AGREE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + return true; + } + + private bool _OnFightRejectBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + this.doc.ReqTeamOp(TeamOperate.TEAM_START_BATTLE_DISAGREE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + return true; + } + + protected override void OnPopupBlocked() + { + this.doc.ReqTeamOp(TeamOperate.TEAM_START_BATTLE_DISAGREE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + + private void _SetRift(XTeamRift data) + { + bool flag = data == null; + if (flag) + { + base.uiBehaviour.m_RiftPanel.SetActive(false); + } + else + { + XRiftDocument specificDocument = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + Rift.RowData riftData = specificDocument.GetRiftData(data.floor, (int)data.id); + bool flag2 = riftData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant find rift data with floor ", data.floor.ToString(), null, null, null, null); + base.uiBehaviour.m_RiftPanel.SetActive(false); + } + else + { + base.uiBehaviour.m_RiftPanel.SetActive(true); + this._RefreshRiftBuff(base.uiBehaviour.m_RiftBuffs[0], string.Empty, XSingleton.singleton.GetValue("RiftAttr"), riftData.attack + "%"); + this._RefreshRiftBuff(base.uiBehaviour.m_RiftBuffs[1], string.Empty, XSingleton.singleton.GetValue("RiftHP"), riftData.hp + "%"); + int i = 2; + while (i < base.uiBehaviour.m_RiftBuffs.Length && i < data.buffs.Count + 2) + { + base.uiBehaviour.m_RiftBuffs[i].SetActive(true); + RiftBuffSuitMonsterType.RowData buffSuitRow = specificDocument.GetBuffSuitRow((uint)data.buffs[i - 2].BuffID, data.buffs[i - 2].BuffLevel); + bool flag3 = buffSuitRow == null; + if (flag3) + { + XDebug singleton = XSingleton.singleton; + string log = "Cant find RiftSuit with buff ["; + BuffDesc buffDesc = data.buffs[i - 2]; + string log2 = buffDesc.BuffID.ToString(); + string log3 = ", "; + buffDesc = data.buffs[i - 2]; + singleton.AddErrorLog(log, log2, log3, buffDesc.BuffLevel.ToString(), "]", null); + this._RefreshRiftBuff(base.uiBehaviour.m_RiftBuffs[i], string.Empty, string.Empty, string.Empty); + } + else + { + this._RefreshRiftBuff(base.uiBehaviour.m_RiftBuffs[i], buffSuitRow.atlas, buffSuitRow.icon, string.Empty); + } + i++; + } + while (i < base.uiBehaviour.m_RiftBuffs.Length) + { + base.uiBehaviour.m_RiftBuffs[i].SetActive(false); + i++; + } + } + } + } + + private void _RefreshRiftBuff(GameObject go, string atlas, string sp, string text) + { + IXUILabel ixuilabel = go.transform.Find("value").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(text); + bool flag = string.IsNullOrEmpty(atlas); + if (flag) + { + ixuisprite.SetSprite(sp); + } + else + { + ixuisprite.SetSprite(sp, atlas, false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmView.cs.meta new file mode 100644 index 00000000..06b307b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleConfirmView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 924540c5c91f37c439fd36569c76e88f +timeCreated: 1611404146 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmBehaviour.cs new file mode 100644 index 00000000..9e9c449f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmBehaviour.cs @@ -0,0 +1,19 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XTeamBattleQuickConfirmBehaviour : DlgBehaviourBase + { + public IXUIButton m_Cancel = null; + + public IXUILabel m_Time; + + private void Awake() + { + this.m_Cancel = (base.transform.Find("Bg/Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_Time = (base.transform.Find("Bg/CountDown").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmBehaviour.cs.meta new file mode 100644 index 00000000..5c858405 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5abcd4b836e1ce942807d1d55f041934 +timeCreated: 1611403792 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmView.cs new file mode 100644 index 00000000..e4ece634 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmView.cs @@ -0,0 +1,117 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamBattleQuickConfirmView : DlgBase + { + public override string fileName + { + get + { + return "Team/BattleQuickBeginConfirmDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isPopup + { + get + { + return true; + } + } + + private XTeamDocument doc; + + private float FIGHT_VOTE_TIME = 3f; + + private float m_fLeftTime; + + private int m_nLeftTime; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.FIGHT_VOTE_TIME = (float)XSingleton.singleton.GetInt("TeamFastMatchConfirmT"); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCancelBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_fLeftTime = this.FIGHT_VOTE_TIME; + this.m_nLeftTime = (int)this.FIGHT_VOTE_TIME; + base.uiBehaviour.m_Time.SetText(this.m_nLeftTime.ToString()); + base.uiBehaviour.m_Cancel.SetVisible(true); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_fLeftTime > 0f; + if (flag) + { + this.m_fLeftTime -= Time.deltaTime; + int num = Mathf.CeilToInt(this.m_fLeftTime); + bool flag2 = this.m_nLeftTime != num; + if (flag2) + { + this.m_nLeftTime = num; + base.uiBehaviour.m_Time.SetText(this.m_nLeftTime.ToString()); + } + } + else + { + base.uiBehaviour.m_Cancel.SetVisible(false); + this.SetVisibleWithAnimation(false, null); + } + } + + private bool _OnCancelBtnClick(IXUIButton go) + { + PtcC2M_FMBRefuseC2M ptcC2M_FMBRefuseC2M = new PtcC2M_FMBRefuseC2M(); + ptcC2M_FMBRefuseC2M.Data.refuse = true; + XSingleton.singleton.Send(ptcC2M_FMBRefuseC2M); + this.SetVisibleWithAnimation(false, null); + return true; + } + + protected override void OnPopupBlocked() + { + PtcC2M_FMBRefuseC2M ptcC2M_FMBRefuseC2M = new PtcC2M_FMBRefuseC2M(); + ptcC2M_FMBRefuseC2M.Data.refuse = true; + XSingleton.singleton.Send(ptcC2M_FMBRefuseC2M); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmView.cs.meta new file mode 100644 index 00000000..e1057d11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamBattleQuickConfirmView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8b3e51b1a8ef94e41add908dc5e21054 +timeCreated: 1611404094 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmBehaviour.cs new file mode 100644 index 00000000..d3ca7a6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmBehaviour.cs @@ -0,0 +1,43 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XTeamConfirmBehaviour : DlgBehaviourBase + { + public IXUIButton m_OK = null; + + public IXUIButton m_Cancel = null; + + public IXUILabel m_DungeonName; + + public IXUILabel m_LeaderLevel; + + public IXUILabel m_LeaderName; + + public IXUILabel m_Content; + + public IXUILabel m_MemberText; + + public IXUILabel m_MemberCount; + + public IXUILabel m_PPT; + + public IXUIProgress m_Progress; + + private void Awake() + { + this.m_OK = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.m_Cancel = (base.transform.Find("Bg/Cancel").GetComponent("XUIButton") as IXUIButton); + this.m_DungeonName = (base.transform.Find("Bg/DungeonName").GetComponent("XUILabel") as IXUILabel); + this.m_LeaderLevel = (base.transform.Find("Bg/LeaderLevel").GetComponent("XUILabel") as IXUILabel); + this.m_LeaderName = (base.transform.Find("Bg/LeaderName").GetComponent("XUILabel") as IXUILabel); + this.m_Content = (base.transform.Find("Bg/Content").GetComponent("XUILabel") as IXUILabel); + this.m_MemberText = (base.transform.Find("Bg/Count").GetComponent("XUILabel") as IXUILabel); + this.m_MemberCount = (base.transform.Find("Bg/Count/Value").GetComponent("XUILabel") as IXUILabel); + this.m_PPT = (base.transform.Find("Bg/PPT/Value").GetComponent("XUILabel") as IXUILabel); + this.m_Progress = (base.transform.Find("Bg/Progress").GetComponent("XUIProgress") as IXUIProgress); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmBehaviour.cs.meta new file mode 100644 index 00000000..cc611a51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f99e0fe6181a4e446afc34dc137dbf4c +timeCreated: 1611404899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmView.cs new file mode 100644 index 00000000..b3d3d600 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmView.cs @@ -0,0 +1,203 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamConfirmView : DlgBase + { + public override string fileName + { + get + { + return "Team/TeamConfirmDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isPopup + { + get + { + return true; + } + } + + private XTeamInviteDocument doc; + + private ButtonClickEventHandler m_OKHandler; + + private ButtonClickEventHandler m_CancelHandler; + + private float INVITE_TIME = 5f; + + private float m_TargetTime; + + private float m_CurrentTime; + + private XTeamInviteData m_CurrentInviteData; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + this.INVITE_TIME = (float)XSingleton.singleton.GetInt("TeamInviteConfirmTime"); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_OK.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClick)); + base.uiBehaviour.m_Cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCancelBtnClick)); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_TargetTime > 0f; + if (flag) + { + bool flag2 = this.m_CurrentTime >= this.m_TargetTime; + if (flag2) + { + this.m_TargetTime = -1f; + this._OnCancelBtnClick(null); + } + else + { + bool flag3 = this.m_CurrentTime < this.m_TargetTime; + if (flag3) + { + this.m_CurrentTime += Time.deltaTime; + base.uiBehaviour.m_Progress.value = this.m_CurrentTime / this.m_TargetTime; + } + } + } + } + + public void ClearInviteList() + { + bool flag = this.m_CurrentInviteData != null; + if (flag) + { + this.m_CurrentInviteData.Recycle(); + this.m_CurrentInviteData = null; + } + bool flag2 = base.IsVisible(); + if (flag2) + { + this.SetVisibleWithAnimation(false, null); + } + } + + public void InviteComing(XTeamInviteData data) + { + this.m_OKHandler = new ButtonClickEventHandler(this._OnInviteAgreeBtnClick); + this.m_CancelHandler = new ButtonClickEventHandler(this._OnInviteRejectBtnClick); + bool flag = this.m_CurrentInviteData != null; + if (flag) + { + this.doc.ReqTeamInviteAck(false, this.m_CurrentInviteData.inviteID); + this.m_CurrentInviteData.Recycle(); + } + this.m_CurrentInviteData = data; + this.NewInvite(true); + } + + public void NewInvite(bool bResetTime) + { + bool flag = this.m_CurrentInviteData == null; + if (!flag) + { + bool flag2 = !base.IsVisible(); + if (flag2) + { + this.SetVisibleWithAnimation(true, null); + } + bool flag3 = !base.IsLoaded(); + if (!flag3) + { + if (bResetTime) + { + this.m_TargetTime = this.INVITE_TIME; + this.m_CurrentTime = 0f; + base.uiBehaviour.m_Progress.value = 0f; + base.uiBehaviour.m_Progress.ForceUpdate(); + } + XTeamInviteData currentInviteData = this.m_CurrentInviteData; + base.uiBehaviour.m_Content.SetText(XStringDefineProxy.GetString("TEAMCONFIRM_JOIN_CONTENT")); + base.uiBehaviour.m_MemberText.SetText(XStringDefineProxy.GetString("TEAMCONFIRM_JOIN_MEMBERTEXT")); + base.uiBehaviour.m_DungeonName.SetText(currentInviteData.briefData.dungeonName); + base.uiBehaviour.m_PPT.SetText(currentInviteData.briefData.leaderPPT.ToString()); + base.uiBehaviour.m_MemberCount.SetText(string.Format("{0}/{1}", currentInviteData.briefData.currentMemberCount.ToString(), currentInviteData.briefData.totalMemberCount.ToString())); + base.uiBehaviour.m_LeaderName.SetText(currentInviteData.briefData.leaderName); + base.uiBehaviour.m_LeaderLevel.SetText(string.Format("Lv.{0}", currentInviteData.briefData.leaderLevel.ToString())); + } + } + } + + private bool _OnOKBtnClick(IXUIButton go) + { + return this.m_OKHandler(go); + } + + private bool _OnCancelBtnClick(IXUIButton go) + { + return this.m_CancelHandler(go); + } + + private bool _OnInviteAgreeBtnClick(IXUIButton go) + { + bool flag = this.m_CurrentInviteData != null; + if (flag) + { + this.doc.ReqTeamInviteAck(true, this.m_CurrentInviteData.inviteID); + } + this.ClearInviteList(); + return true; + } + + private bool _OnInviteRejectBtnClick(IXUIButton go) + { + bool flag = this.m_CurrentInviteData != null; + if (flag) + { + bool flag2 = go != null; + if (flag2) + { + this.doc.ReqTeamInviteAck(false, this.m_CurrentInviteData.inviteID); + } + } + this.ClearInviteList(); + return true; + } + + protected override void OnPopupBlocked() + { + this.ClearInviteList(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmView.cs.meta new file mode 100644 index 00000000..9ddbdcd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamConfirmView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fd4f3f1041819084d9fd33267a856c84 +timeCreated: 1611404937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInputPasswordBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamInputPasswordBehaviour.cs new file mode 100644 index 00000000..11f7ef2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInputPasswordBehaviour.cs @@ -0,0 +1,22 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XTeamInputPasswordBehaviour : DlgBehaviourBase + { + public IXUIInput m_Input; + + public IXUIButton m_BtnOK; + + public IXUIButton m_BtnClose; + + private void Awake() + { + this.m_BtnOK = (base.transform.Find("Bg/OK").GetComponent("XUIButton") as IXUIButton); + this.m_BtnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Input = (base.transform.Find("Bg/Input").GetComponent("XUIInput") as IXUIInput); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInputPasswordBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamInputPasswordBehaviour.cs.meta new file mode 100644 index 00000000..b03f73fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInputPasswordBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36b378954bbdc0349bfb3c6fb21fedea +timeCreated: 1611403563 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInviteBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamInviteBehaviour.cs new file mode 100644 index 00000000..ad6074d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInviteBehaviour.cs @@ -0,0 +1,51 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XTeamInviteBehaviour : DlgBehaviourBase + { + public IXUICheckBox m_ToggleRecommand; + + public IXUICheckBox m_ToggleFriend; + + public IXUICheckBox m_ToggleGuild; + + public IXUICheckBox m_TogglePlatFriend; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public GameObject m_EmptyList; + + public IXUIButton m_BtnAddFriendBottom; + + public IXUIButton m_BtnAddFriendMiddle; + + public IXUIButton m_BtnJoinGuild; + + public IXUISprite m_ClosedSpr; + + private void Awake() + { + this.m_ToggleRecommand = (base.transform.Find("Bg/ToggleRecommand").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ToggleFriend = (base.transform.Find("Bg/ToggleFriend").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ToggleGuild = (base.transform.Find("Bg/ToggleGuild").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_TogglePlatFriend = (base.transform.Find("Bg/TogglePlatFriend").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ToggleRecommand.ID = 0UL; + this.m_ToggleFriend.ID = 1UL; + this.m_ToggleGuild.ID = 2UL; + this.m_TogglePlatFriend.ID = 3UL; + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_EmptyList = base.transform.Find("Bg/Empty").gameObject; + this.m_BtnAddFriendBottom = (base.transform.Find("Bg/BtnAddFriendBottom").GetComponent("XUIButton") as IXUIButton); + this.m_BtnAddFriendMiddle = (base.transform.Find("Bg/BtnAddFriendMiddle").GetComponent("XUIButton") as IXUIButton); + this.m_BtnJoinGuild = (base.transform.Find("Bg/BtnJoinGuild").GetComponent("XUIButton") as IXUIButton); + this.m_ClosedSpr = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInviteBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamInviteBehaviour.cs.meta new file mode 100644 index 00000000..f2669268 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInviteBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19e70e493fc9a394f9cbca7b4a7cacab +timeCreated: 1611403306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInviteView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamInviteView.cs new file mode 100644 index 00000000..617bc6ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInviteView.cs @@ -0,0 +1,393 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamInviteView : DlgBase + { + public override string fileName + { + get + { + return "Team/TeamInviteDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private int m_SelectedTab = -1; + + private XTeamDocument _TeamDoc; + + private XTeamInviteDocument _InviteDoc; + + private XGuildDocument _GuildDoc; + + public List _WrapTextureList = new List(); + + private bool hasPlatFriends = false; + + protected override void Init() + { + this._TeamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this._GuildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this._InviteDoc = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + this._InviteDoc.InviteHandler = this; + } + + protected override void OnHide() + { + this.ClearPreTabTextures(); + this.hasPlatFriends = false; + base.OnHide(); + } + + protected override void OnUnload() + { + this._InviteDoc.InviteHandler = null; + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_ToggleFriend.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnToggleChanged)); + base.uiBehaviour.m_ToggleGuild.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnToggleChanged)); + base.uiBehaviour.m_ToggleRecommand.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnToggleChanged)); + base.uiBehaviour.m_TogglePlatFriend.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnToggleChanged)); + base.uiBehaviour.m_BtnAddFriendMiddle.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnAddFriendClicked)); + base.uiBehaviour.m_BtnAddFriendBottom.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnAddFriendClicked)); + base.uiBehaviour.m_BtnJoinGuild.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnJoinGuildClicked)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + base.uiBehaviour.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this._WrapContentItemInit)); + base.uiBehaviour.m_ClosedSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this._TryRefresh(); + } + + public override void StackRefresh() + { + this._TryRefresh(); + } + + private void _TryRefresh() + { + this._InviteDoc.ReqInviteList(); + bool flag = this.m_SelectedTab != -1; + if (flag) + { + this.Refresh(); + } + } + + public void LocalServerRefresh() + { + bool flag = this.m_SelectedTab != 3; + if (flag) + { + this.Refresh(); + } + } + + public void Refresh() + { + bool flag = this._TeamDoc.currentExpInfo.isCrossServerInvite && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends_Pk); + if (flag) + { + base.uiBehaviour.m_TogglePlatFriend.gameObject.SetActive(true); + } + else + { + base.uiBehaviour.m_TogglePlatFriend.gameObject.SetActive(false); + bool flag2 = this.m_SelectedTab == 3; + if (flag2) + { + this.m_SelectedTab = 0; + } + } + bool flag3 = this.m_SelectedTab == 3 && !this.hasPlatFriends; + if (flag3) + { + XSingleton.singleton.AddLog("[InvitePlatFriend]ReqPlatFriendsRank", null, null, null, null, null, XDebugColor.XDebug_None); + XFriendsDocument specificDocument = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + specificDocument.ReqPlatFriendsRank(); + this.hasPlatFriends = true; + } + else + { + int num = 0; + bool flag4 = this.m_SelectedTab != -1; + if (flag4) + { + num = this._InviteDoc.InviteLists[this.m_SelectedTab].Count; + } + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "m_SelectedTab:", + this.m_SelectedTab, + "\ndataCount:", + num + }), null, null, null, null, null); + base.uiBehaviour.m_WrapContent.SetContentCount(num, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + base.uiBehaviour.m_EmptyList.SetActive(num == 0); + base.uiBehaviour.m_BtnAddFriendMiddle.SetVisible(this.m_SelectedTab == 1 && num <= 1); + base.uiBehaviour.m_BtnAddFriendBottom.SetVisible(this.m_SelectedTab == 1 && num > 1 && num <= 2); + base.uiBehaviour.m_BtnJoinGuild.SetVisible(this.m_SelectedTab == 2 && !this._GuildDoc.bInGuild); + } + } + + private void _WrapContentItemInit(Transform t, int index) + { + IXUIButton ixuibutton = t.Find("BtnInvite").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnInviteClick)); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.m_SelectedTab < 0; + if (!flag) + { + bool flag2 = index >= this._InviteDoc.InviteLists[this.m_SelectedTab].Count; + if (!flag2) + { + XTeamInviteListData xteamInviteListData = this._InviteDoc.InviteLists[this.m_SelectedTab][index]; + bool flag3 = xteamInviteListData == null; + if (!flag3) + { + IXUILabelSymbol ixuilabelSymbol = t.Find("Info/Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Info/Level").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Info/AvatarBG/Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("Info/Profession").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = t.Find("Info/AvatarBG/BattlePointBG/Power").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Info/GuildName").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("BtnInvite").GetComponent("XUIButton") as IXUIButton; + GameObject gameObject = t.Find("Invited").gameObject; + IXUILabel ixuilabel4 = t.Find("State").GetComponent("XUILabel") as IXUILabel; + Transform t2 = t.Find("Info/AvatarBG/Relation"); + Transform transform = t.Find("Info/AvatarBG/Plat/wxLaunch"); + Transform transform2 = t.Find("Info/AvatarBG/Plat/qqLaunch"); + Transform transform3 = t.Find("Info/AvatarBG/Status/Online"); + Transform transform4 = t.Find("Info/AvatarBG/Status/Offline"); + ixuilabelSymbol.InputText = XSingleton.singleton.StringCombine(xteamInviteListData.name, XRechargeDocument.GetVIPIconString(xteamInviteListData.vip)); + ixuilabel.SetText("Lv." + xteamInviteListData.level.ToString()); + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon2((int)xteamInviteListData.profession); + ixuisprite2.spriteName = XSingleton.singleton.GetProfIcon((int)xteamInviteListData.profession); + ixuilabel2.SetText(xteamInviteListData.ppt.ToString()); + bool flag4 = string.IsNullOrEmpty(xteamInviteListData.guildname); + if (flag4) + { + ixuilabel3.SetVisible(false); + } + else + { + ixuilabel3.SetText(xteamInviteListData.guildname); + ixuilabel3.SetVisible(true); + } + XTeamRelation.Relation targetRelation = XTeamRelation.Relation.TR_NONE; + bool flag5 = this.m_SelectedTab == 1; + if (flag5) + { + targetRelation = (XTeamRelation.Relation)5; + } + else + { + bool flag6 = this.m_SelectedTab == 2; + if (flag6) + { + targetRelation = XTeamRelation.Relation.TR_GUILD; + } + } + XTeamView.SetTeamRelationUI(t2, xteamInviteListData.relation, true, targetRelation); + ixuibutton.ID = (ulong)((long)index); + ixuibutton.SetVisible(!xteamInviteListData.bSent); + gameObject.SetActive(xteamInviteListData.bSent); + bool flag7 = this.m_SelectedTab == 0; + if (flag7) + { + ixuilabel4.SetText(string.Empty); + } + else + { + ixuilabel4.SetText(XStringDefineProxy.GetString(xteamInviteListData.state.ToString())); + } + bool flag8 = this.m_SelectedTab == 3; + if (flag8) + { + transform2.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + transform.gameObject.SetActive(true); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(true); + } + else + { + transform2.gameObject.SetActive(false); + transform.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(false); + } + IXUITexture ixuitexture = t.Find("Info/AvatarBG/platHead").GetComponent("XUITexture") as IXUITexture; + bool flag9 = this.m_SelectedTab == 3; + if (flag9) + { + transform2.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + transform.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + transform3.gameObject.SetActive(xteamInviteListData.isOnline); + transform4.gameObject.SetActive(!xteamInviteListData.isOnline); + ixuitexture.gameObject.SetActive(true); + ixuitexture.ID = (ulong)((long)index); + string bigpic = xteamInviteListData.bigpic; + XSingleton.singleton.Load((bigpic != "") ? bigpic : string.Empty, ixuitexture, DlgBase.singleton.uiBehaviour); + this._WrapTextureList.Add(ixuitexture); + } + else + { + transform2.gameObject.SetActive(false); + transform.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(false); + ixuitexture.gameObject.SetActive(false); + } + } + } + } + } + + public void ClearPreTabTextures() + { + for (int i = 0; i < this._WrapTextureList.Count; i++) + { + this._WrapTextureList[i].SetTexturePath(""); + } + this._WrapTextureList.Clear(); + } + + public override void OnXNGUIClick(GameObject obj, string path) + { + base.OnXNGUIClick(obj, path); + } + + private void _OnCloseClicked(IXUISprite iSp) + { + this.SetVisible(false, true); + } + + private bool _OnToggleChanged(IXUICheckBox go) + { + bool flag = !go.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this.m_SelectedTab = (int)go.ID; + this.Refresh(); + result = true; + } + return result; + } + + private bool _OnInviteClick(IXUIButton go) + { + bool flag = this.m_SelectedTab < 0; + bool result; + if (flag) + { + result = true; + } + else + { + XTeamInviteListData xteamInviteListData = this._InviteDoc.InviteLists[this.m_SelectedTab][(int)go.ID]; + bool flag2 = xteamInviteListData == null; + if (flag2) + { + result = true; + } + else + { + bool flag3 = xteamInviteListData.sameGuild == 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_INVITE_NOT_SAMEGUILD"), "fece00"); + result = true; + } + else + { + bool flag4 = this.m_SelectedTab == 3; + if (flag4) + { + XSingleton.singleton.AddLog("[InvitePlatFriend]_OnInviteClick", null, null, null, null, null, XDebugColor.XDebug_None); + this._TeamDoc.ReqTeamOp(TeamOperate.TEAM_INVITE, 0UL, null, TeamMemberType.TMT_NORMAL, xteamInviteListData.openid); + } + else + { + this._TeamDoc.ReqTeamOp(TeamOperate.TEAM_INVITE, xteamInviteListData.uid, null, TeamMemberType.TMT_NORMAL, null); + } + xteamInviteListData.bSent = true; + base.uiBehaviour.m_WrapContent.RefreshAllVisibleContents(); + result = true; + } + } + } + return result; + } + + private bool _OnAddFriendClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + DlgBase.singleton.RandomFriend(); + return true; + } + + private bool _OnJoinGuildClicked(IXUIButton btn) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Guild); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_LOG_CANNOT_JOIN"), "fece00"); + result = true; + } + else + { + this.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInviteView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamInviteView.cs.meta new file mode 100644 index 00000000..eef3d627 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInviteView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 639c46a739916ee46936b55bd4a3f911 +timeCreated: 1611403845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListBehaviour.cs new file mode 100644 index 00000000..94606ed2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListBehaviour.cs @@ -0,0 +1,33 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XTeamInvitedListBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnIgnore; + + public IXUIButton m_BtnDeny; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public GameObject m_NoInvitation; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Bg2/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg"); + this.m_BtnIgnore = (transform.Find("BtnIgnore").GetComponent("XUIButton") as IXUIButton); + this.m_BtnDeny = (transform.Find("BtnDeny").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_NoInvitation = transform.Find("NoInvitation").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListBehaviour.cs.meta new file mode 100644 index 00000000..7d0d573f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e4edc91dc3846b4f8888e834810e2f0 +timeCreated: 1611404128 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListView.cs new file mode 100644 index 00000000..de7df880 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListView.cs @@ -0,0 +1,191 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamInvitedListView : DlgBase + { + public override string fileName + { + get + { + return "Team/InviteListDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XTeamInviteDocument doc; + + private uint m_TimerID = 0u; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + this.doc.InvitedView = this; + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this.m_TimerID); + this.doc.InvitedView = null; + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnIgnore.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnIgnoreBtnClick)); + base.uiBehaviour.m_BtnDeny.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDenyBtnClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.KillTimer(this.m_TimerID); + this._AutoRefresh(null); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this.m_TimerID); + } + + public override void StackRefresh() + { + XSingleton.singleton.KillTimer(this.m_TimerID); + this._AutoRefresh(null); + } + + private void _AutoRefresh(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + this.doc.ReqInvitedList(); + this.m_TimerID = XSingleton.singleton.SetTimer(3f, new XTimerMgr.ElapsedEventHandler(this._AutoRefresh), null); + } + } + + public void RefreshPage() + { + List invitedList = this.doc.InvitedList; + base.uiBehaviour.m_WrapContent.SetContentCount(invitedList.Count, false); + base.uiBehaviour.m_NoInvitation.SetActive(invitedList.Count == 0); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + List invitedList = this.doc.InvitedList; + bool flag = index >= invitedList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Item index out of range: ", index.ToString(), null, null, null, null); + } + else + { + XTeamInviteData xteamInviteData = invitedList[index]; + IXUILabel ixuilabel = t.Find("DungeonName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("PPT").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("MemberCount").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = t.Find("RewardHunt").gameObject; + IXUISprite ixuisprite = t.Find("Regression").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = t.Find("BtnJoin").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnJoinBtnClick)); + bool flag2 = xteamInviteData.briefData.rift != null; + if (flag2) + { + ixuilabel.SetText(xteamInviteData.briefData.rift.GetSceneName(xteamInviteData.briefData.dungeonName)); + } + else + { + ixuilabel.SetText(xteamInviteData.briefData.dungeonName); + } + ixuilabel2.SetText(xteamInviteData.invitorName); + ixuilabel3.SetText(xteamInviteData.briefData.GetStrTeamPPT(0.0)); + ixuilabel4.SetText(XSingleton.singleton.TimeAgoFormatString((int)xteamInviteData.time)); + ixuilabel5.SetText(string.Format("{0}/{1}", xteamInviteData.briefData.currentMemberCount, xteamInviteData.briefData.totalMemberCount)); + ixuisprite.SetVisible(xteamInviteData.briefData.regression); + xteamInviteData.briefData.goldGroup.SetUI(gameObject, true); + XTeamView.SetTeamRelationUI(t.Find("Relation"), xteamInviteData.invitorRelation, false, XTeamRelation.Relation.TR_NONE); + ixuibutton.ID = (ulong)((long)index); + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnIgnoreBtnClick(IXUIButton go) + { + this.doc.ReqIgnoreAll(); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnDenyBtnClick(IXUIButton go) + { + this.doc.ReqDeny(); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnJoinBtnClick(IXUIButton go) + { + int num = (int)go.ID; + bool flag = num >= this.doc.InvitedList.Count; + bool result; + if (flag) + { + result = true; + } + else + { + XTeamInviteData xteamInviteData = this.doc.InvitedList[num]; + this.doc.ReqTeamInviteAck(true, xteamInviteData.inviteID); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListView.cs.meta new file mode 100644 index 00000000..c7d8ffaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamInvitedListView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b349d32c8b576346a44ae733ce208a6 +timeCreated: 1611403598 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareBehaviour.cs new file mode 100644 index 00000000..9d15a23a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareBehaviour.cs @@ -0,0 +1,73 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamLeagueBattlePrepareBehaviour : DlgBehaviourBase + { + public IXUISprite m_UpBtn; + + public IXUISprite m_DownBtn; + + public GameObject m_ListView; + + public Transform m_BlueView; + + public Transform m_RedView; + + public GameObject m_Info; + + public Transform m_BlueInfo; + + public Transform m_RedInfo; + + public IXUILabel m_LeftTimeTip; + + public IXUISprite m_BlueViewSwitch; + + public IXUISprite m_RedViewSwitch; + + public XUIPool[] m_MemberPool = new XUIPool[2]; + + public IXUIList[] m_MemberList = new IXUIList[2]; + + public IXUITweenTool m_BlueViewTween; + + public IXUITweenTool m_RedViewTween; + + public IXUITweenTool m_UpDownTween; + + public IXUILabel m_TimeCount; + + private void Awake() + { + this.m_UpBtn = (base.transform.Find("Bg/UpDown/LetmedieUp").GetComponent("XUISprite") as IXUISprite); + this.m_DownBtn = (base.transform.Find("Bg/UpDown/LetmedieDown").GetComponent("XUISprite") as IXUISprite); + this.m_ListView = base.transform.Find("Bg").gameObject; + this.m_BlueView = base.transform.Find("Bg/LeftView"); + this.m_RedView = base.transform.Find("Bg/RightView"); + this.m_MemberList[0] = (base.transform.Find("Bg/LeftView/MemberScrollView/List").GetComponent("XUIList") as IXUIList); + this.m_MemberList[1] = (base.transform.Find("Bg/RightView/MemberScrollView/List").GetComponent("XUIList") as IXUIList); + Transform transform = base.transform.Find("Bg/LeftView/MemberScrollView/List/MemberTpl"); + Transform transform2 = base.transform.Find("Bg/RightView/MemberScrollView/List/MemberTpl"); + this.m_MemberPool[0] = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_MemberPool[0].SetupPool(this.m_MemberList[0].gameObject, transform.gameObject, 4u, false); + this.m_MemberPool[1] = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_MemberPool[1].SetupPool(this.m_MemberList[1].gameObject, transform2.gameObject, 4u, false); + this.m_Info = base.transform.Find("Info").gameObject; + this.m_BlueInfo = base.transform.Find("Info/Blue"); + this.m_RedInfo = base.transform.Find("Info/Red"); + this.m_LeftTimeTip = (base.transform.Find("LeftTimeTip").GetComponent("XUILabel") as IXUILabel); + this.m_TimeCount = (base.transform.Find("countdown").GetComponent("XUILabel") as IXUILabel); + this.m_TimeCount.SetVisible(false); + this.m_BlueViewSwitch = (base.transform.Find("Bg/LeftView/close").GetComponent("XUISprite") as IXUISprite); + this.m_RedViewSwitch = (base.transform.Find("Bg/RightView/close").GetComponent("XUISprite") as IXUISprite); + this.m_BlueViewTween = (base.transform.Find("Bg/LeftView").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_RedViewTween = (base.transform.Find("Bg/RightView").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_UpDownTween = (base.transform.Find("Bg/UpDown").GetComponent("XUIPlayTween") as IXUITweenTool); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareBehaviour.cs.meta new file mode 100644 index 00000000..1fe7169d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2c65aed24962e34c8c7668d88744584 +timeCreated: 1611404845 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareView.cs new file mode 100644 index 00000000..4c78cdec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareView.cs @@ -0,0 +1,374 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamLeagueBattlePrepareView : DlgBase + { + public override string fileName + { + get + { + return "Battle/TeamLeagueBattleDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XTeamLeagueBattleDocument _BattleDoc; + + private XFreeTeamVersusLeagueDocument _BaseDoc; + + public LevelRewardTeamLeagueSmallHandler SmallRewardHandler = null; + + public LevelRewardTeamLeagueBigHandler BigRewardHandler = null; + + protected override void Init() + { + base.Init(); + this._BattleDoc = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + this._BaseDoc = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_UpBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnUp)); + base.uiBehaviour.m_DownBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnDown)); + base.uiBehaviour.m_BlueViewSwitch.ID = 0UL; + base.uiBehaviour.m_BlueViewSwitch.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnLeftToogle)); + base.uiBehaviour.m_RedViewSwitch.ID = 0UL; + base.uiBehaviour.m_RedViewSwitch.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRightToogle)); + } + + private void OnUp(IXUISprite btn) + { + this._BattleDoc.ReqBattle(LeagueBattleReadyOper.LBReady_Up); + } + + private void OnDown(IXUISprite btn) + { + this._BattleDoc.ReqBattle(LeagueBattleReadyOper.LBReady_Down); + } + + private void OnLeftToogle(IXUISprite btn) + { + int num = (int)btn.ID; + base.uiBehaviour.m_BlueViewTween.SetTweenGroup(num); + base.uiBehaviour.m_BlueViewTween.PlayTween(true, -1f); + base.uiBehaviour.m_UpDownTween.SetTweenGroup(num); + base.uiBehaviour.m_UpDownTween.PlayTween(true, -1f); + btn.ID = (ulong)((num == 0) ? 1L : 0L); + } + + private void OnRightToogle(IXUISprite btn) + { + int num = (int)btn.ID; + base.uiBehaviour.m_RedViewTween.SetTweenGroup(num); + base.uiBehaviour.m_RedViewTween.PlayTween(true, -1f); + btn.ID = (ulong)((num == 0) ? 1L : 0L); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshTeamName(); + } + + private void RefreshTeamName() + { + bool flag = this._BattleDoc.LoadingInfoBlue != null; + if (flag) + { + IXUILabel ixuilabel = base.uiBehaviour.m_BlueView.Find("Title1").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._BattleDoc.LoadingInfoBlue.name); + } + bool flag2 = this._BattleDoc.LoadingInfoRed != null; + if (flag2) + { + IXUILabel ixuilabel2 = base.uiBehaviour.m_RedView.Find("Title1").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(this._BattleDoc.LoadingInfoRed.name); + } + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.SmallRewardHandler); + DlgHandlerBase.EnsureUnload(ref this.BigRewardHandler); + base.OnUnload(); + } + + public void ResetCommonUI(bool show = true) + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SkillHandler.SetVisible(show); + DlgBase.singleton.IndicateHandler.SetVisible(show); + DlgBase.singleton.LeftTimeLabel.SetVisible(show); + DlgBase.singleton.TeamMonitor.SetVisible(false); + } + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.LeftTime.SetVisible(show); + } + } + } + + private void RefreshKillInfo() + { + IXUILabel ixuilabel = base.uiBehaviour.m_BlueInfo.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = base.uiBehaviour.m_RedInfo.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = base.uiBehaviour.m_BlueInfo.Find("Damage").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = base.uiBehaviour.m_RedInfo.Find("Damage").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._BattleDoc.BlueCanBattleNum.ToString()); + ixuilabel2.SetText(this._BattleDoc.RedCanBattleNum.ToString()); + XEntity entity = XSingleton.singleton.GetEntity(this._BattleDoc.BluePKingRoleID); + XEntity entity2 = XSingleton.singleton.GetEntity(this._BattleDoc.RedPKingRoleID); + bool flag = entity != null; + if (flag) + { + double attr = entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double attr2 = entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + double num = (attr == 0.0) ? 0.0 : (attr2 / attr); + ixuilabel3.SetText(string.Format("{0:N2}%", num * 100.0)); + } + else + { + ixuilabel4.SetText("0%"); + } + bool flag2 = entity2 != null; + if (flag2) + { + double attr3 = entity2.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double attr4 = entity2.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + double num2 = (attr3 == 0.0) ? 0.0 : (attr4 / attr3); + ixuilabel4.SetText(string.Format("{0:N2}%", num2 * 100.0)); + } + else + { + ixuilabel4.SetText("0%"); + } + } + + public void RefreshBattleBaseInfo() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.SetBattleList(base.uiBehaviour.m_BlueView, this._BattleDoc.BattleBaseInfoBlue, 0); + this.SetBattleList(base.uiBehaviour.m_RedView, this._BattleDoc.BattleBaseInfoRed, 1); + this.RefreshKillInfo(); + } + } + + private void SetBattleList(Transform view, LeagueBattleOneTeam battleTeamBaseInfo, int index) + { + bool flag = battleTeamBaseInfo == null; + if (!flag) + { + IXUILabel ixuilabel = view.Find("Title1").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(battleTeamBaseInfo.name); + base.uiBehaviour.m_MemberPool[index].FakeReturnAll(); + for (int i = 0; i < battleTeamBaseInfo.members.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_MemberPool[index].FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_MemberList[index].gameObject.transform; + IXUILabel ixuilabel2 = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + Transform transform = gameObject.transform.Find("Battle"); + Transform transform2 = gameObject.transform.Find("Die"); + ixuilabel2.SetText(battleTeamBaseInfo.members[i].basedata.name); + ixuilabel3.SetText(battleTeamBaseInfo.members[i].index.ToString()); + transform.gameObject.SetActive(battleTeamBaseInfo.members[i].state == LeagueBattleRoleState.LBRoleState_Fighting); + transform2.gameObject.SetActive(battleTeamBaseInfo.members[i].state == LeagueBattleRoleState.LBRoleState_Failed); + ixuilabel3.gameObject.SetActive(battleTeamBaseInfo.members[i].state != LeagueBattleRoleState.LBRoleState_Failed && battleTeamBaseInfo.members[i].state != LeagueBattleRoleState.LBRoleState_Fighting); + ixuilabel2.SetColor(Color.white); + bool flag2 = battleTeamBaseInfo.members[i].basedata.roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + ixuilabel2.SetText(string.Format("[{0}]{1}[-]", XSingleton.singleton.GetValue("PKSelfNameColor"), battleTeamBaseInfo.members[i].basedata.name)); + } + bool flag3 = battleTeamBaseInfo.members[i].state == LeagueBattleRoleState.LBRoleState_Failed; + if (flag3) + { + ixuilabel2.SetColor(Color.gray); + } + } + base.uiBehaviour.m_MemberPool[index].ActualReturnAll(false); + base.uiBehaviour.m_MemberList[index].Refresh(); + } + } + + public void RefreshBattleState() + { + LeagueBattleFightState battleState = this._BattleDoc.BattleState; + if (battleState != LeagueBattleFightState.LBFight_Wait) + { + if (battleState == LeagueBattleFightState.LBFight_Fight) + { + base.uiBehaviour.m_Info.SetActive(true); + base.uiBehaviour.m_LeftTimeTip.gameObject.SetActive(false); + base.uiBehaviour.m_ListView.SetActive(this._BattleDoc.IsInTeamLeague); + bool flag = this._BattleDoc.IsInTeamLeague && this._BattleDoc.IsInBattleTeamLeague && this._BattleDoc.SelfBattleState == LeagueBattleRoleState.LBRoleState_Fighting; + if (flag) + { + base.uiBehaviour.m_BlueView.gameObject.SetActive(true); + base.uiBehaviour.m_RedView.gameObject.SetActive(false); + base.uiBehaviour.m_UpBtn.gameObject.SetActive(false); + base.uiBehaviour.m_DownBtn.gameObject.SetActive(false); + } + else + { + bool isInTeamLeague = this._BattleDoc.IsInTeamLeague; + if (isInTeamLeague) + { + base.uiBehaviour.m_BlueView.gameObject.SetActive(true); + base.uiBehaviour.m_RedView.gameObject.SetActive(false); + base.uiBehaviour.m_UpBtn.gameObject.SetActive(!this._BattleDoc.IsInBattleTeamLeague); + base.uiBehaviour.m_DownBtn.gameObject.SetActive(this._BattleDoc.IsInBattleTeamLeague); + } + else + { + base.uiBehaviour.m_BlueView.gameObject.SetActive(false); + base.uiBehaviour.m_RedView.gameObject.SetActive(false); + base.uiBehaviour.m_UpBtn.gameObject.SetActive(false); + base.uiBehaviour.m_DownBtn.gameObject.SetActive(false); + } + } + } + } + else + { + base.uiBehaviour.m_Info.SetActive(false); + base.uiBehaviour.m_LeftTimeTip.gameObject.SetActive(true); + base.uiBehaviour.m_LeftTimeTip.SetText(XSingleton.singleton.GetString("GUILD_ARENA_READY")); + base.uiBehaviour.m_ListView.SetActive(this._BattleDoc.IsInTeamLeague); + base.uiBehaviour.m_BlueView.gameObject.SetActive(true); + base.uiBehaviour.m_RedView.gameObject.SetActive(false); + bool flag2 = this._BattleDoc.IsInTeamLeague && this._BattleDoc.IsInBattleTeamLeague; + if (flag2) + { + base.uiBehaviour.m_UpBtn.gameObject.SetActive(false); + base.uiBehaviour.m_DownBtn.gameObject.SetActive(true); + } + else + { + bool flag3 = this._BattleDoc.IsInTeamLeague && !this._BattleDoc.IsInBattleTeamLeague; + if (flag3) + { + base.uiBehaviour.m_UpBtn.gameObject.SetActive(true); + base.uiBehaviour.m_DownBtn.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_UpBtn.gameObject.SetActive(false); + base.uiBehaviour.m_DownBtn.gameObject.SetActive(false); + } + } + } + } + + public void RefreahCountTime(uint time) + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetLeftTime(time, -1); + } + bool flag2 = XSingleton.singleton.bSpectator && DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetLeftTime(time); + } + } + + public override void OnUpdate() + { + this.RefreshKillInfo(); + } + + public void PlaySmallReward(LeagueBattleOneResultNtf data) + { + bool flag = this.SmallRewardHandler == null; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgHandlerBase.EnsureCreate(ref this.SmallRewardHandler, DlgBase.singleton.uiBehaviour.m_canvas, true, this); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgHandlerBase.EnsureCreate(ref this.SmallRewardHandler, DlgBase.singleton.uiBehaviour.m_canvas, true, this); + } + } + bool flag4 = this.SmallRewardHandler != null; + if (flag4) + { + this.SmallRewardHandler.SetRewardData(data); + } + } + + public void PlayBigReward(LeagueBattleResultNtf data) + { + this.CloseSmallReward(); + bool flag = this.BigRewardHandler == null; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgHandlerBase.EnsureCreate(ref this.BigRewardHandler, DlgBase.singleton.uiBehaviour.m_canvas, true, this); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgHandlerBase.EnsureCreate(ref this.BigRewardHandler, DlgBase.singleton.uiBehaviour.m_canvas, true, this); + } + } + bool flag4 = this.BigRewardHandler != null; + if (flag4) + { + this.BigRewardHandler.SetRewardData(data); + } + } + + public void CloseSmallReward() + { + bool flag = this.SmallRewardHandler != null; + if (flag) + { + this.SmallRewardHandler.CloseTween(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareView.cs.meta new file mode 100644 index 00000000..76a05be5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueBattlePrepareView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0fd6db833312b04b854a8552ac9aa2a +timeCreated: 1611404488 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueFinalResultView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueFinalResultView.cs new file mode 100644 index 00000000..ff60bd26 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueFinalResultView.cs @@ -0,0 +1,285 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamLeagueFinalResultView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/TeamLeague/TeamLeagueFinalDuel"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private Dictionary> _itemDic = new Dictionary>(); + + protected override void Init() + { + this.InitProperties(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + protected override void OnShow() + { + base.OnShow(); + XFreeTeamVersusLeagueDocument.Doc.SendGetLeagueEleInfo(); + } + + protected override void OnHide() + { + XFreeTeamVersusLeagueDocument.Doc.SendCloseLeagueEleNtf(); + base.OnHide(); + } + + private void InitProperties() + { + base.uiBehaviour.EnterMatch.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickEnterMatch)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickCloseBtn)); + string text = (XFreeTeamVersusLeagueDocument.Doc.TodayState == LeagueBattleTimeState.LBTS_Elimination || XFreeTeamVersusLeagueDocument.Doc.TodayState == LeagueBattleTimeState.LBTS_CrossElimination) ? XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("LeagueFinalSchedule")) : ""; + base.uiBehaviour.FinalTimeLabel.SetText(text); + this._itemDic.Clear(); + foreach (object obj in base.uiBehaviour.Details.transform) + { + Transform transform = (Transform)obj; + string name = transform.name; + int num = name.IndexOf('_'); + bool flag = num > 0; + if (flag) + { + uint num2 = Convert.ToUInt32(name.Substring(num - 1, 1)); + RoundFlag key = (RoundFlag)num2; + bool flag2 = !this._itemDic.ContainsKey(key); + if (flag2) + { + this._itemDic.Add(key, new List()); + } + this._itemDic[key].Add(transform.gameObject); + } + } + } + + private void RefreshEnterMatchBtn() + { + bool flag = XFreeTeamVersusLeagueDocument.Doc.IsMyTeamInFinal(); + if (flag) + { + base.uiBehaviour.EnterMatch.gameObject.SetActive(true); + base.uiBehaviour.EnterMatch.SetEnable(XFreeTeamVersusLeagueDocument.Doc.IsMyTeamInFighting(), false); + } + else + { + base.uiBehaviour.EnterMatch.gameObject.SetActive(false); + } + } + + private bool OnClickCloseBtn(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + private bool OnClickEnterMatch(IXUIButton button) + { + bool flag = XFreeTeamVersusLeagueDocument.Doc.IsMyTeamInFighting(); + if (flag) + { + XFreeTeamVersusLeagueDocument.Doc.SendJoinLeagueEleBattle(); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("LeagueNotInFinal"), "fece00"); + } + return true; + } + + private void UpdateDetailItem(Transform item, LBEleRoomInfo info) + { + bool flag = info == null; + if (flag) + { + info = new LBEleRoomInfo(); + } + Transform item2 = item.Find("Team1"); + Transform item3 = item.Find("Team2"); + Transform transform = item.Find("Btnplay"); + transform.gameObject.SetActive(true); + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)info.liveid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickLive)); + ixuisprite.gameObject.SetActive(info.liveid > 0u); + bool flag2 = info.team1 != null && info.team1.leagueid > 0UL; + if (flag2) + { + this.UpdateTeamItem(item2, info.team1, info.winleagueid, info.state, info.liveid); + } + else + { + this.UpdateEmptyItem(item2); + } + bool flag3 = info.team2 != null && info.team2.leagueid > 0UL; + if (flag3) + { + this.UpdateTeamItem(item3, info.team2, info.winleagueid, info.state, info.liveid); + } + else + { + this.UpdateEmptyItem(item3); + } + } + + private void OnClickLive(IXUISprite uiSprite) + { + bool flag = uiSprite.ID > 0UL; + if (flag) + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.EnterSpectateBattle((uint)uiSprite.ID, LiveType.LIVE_LEAGUEBATTLE); + } + } + + private void UpdateEmptyItem(Transform item) + { + Transform transform = item.Find("Win"); + Transform transform2 = item.Find("Lose"); + Transform transform3 = item.Find("Empty"); + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(true); + } + + private void UpdateTeamItem(Transform item, LBEleTeamInfo teamInfo, ulong winTeamId, LBEleRoomState state, uint liveID) + { + Transform transform = item.Find("Win"); + Transform transform2 = item.Find("Lose"); + Transform transform3 = item.Find("Empty"); + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + Transform transform4 = (teamInfo.leagueid == winTeamId || winTeamId == 0UL) ? transform : transform2; + transform4.gameObject.SetActive(true); + IXUILabel ixuilabel = transform4.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = transform4.Find("Team").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(teamInfo.name); + ixuilabel2.SetText(teamInfo.zonename + "-" + teamInfo.servername); + } + + public void RefreshUI() + { + RoundFlag[] array = (RoundFlag[])Enum.GetValues(typeof(RoundFlag)); + foreach (RoundFlag roundFlag in array) + { + int num = (int)roundFlag; + bool flag = this._itemDic.ContainsKey((RoundFlag)num); + if (flag) + { + List list = this._itemDic[(RoundFlag)num]; + List roomsInfoByRound = XFreeTeamVersusLeagueDocument.Doc.GetRoomsInfoByRound((uint)num); + for (int j = 0; j < list.Count; j++) + { + LBEleRoomInfo info = (roomsInfoByRound != null && j < roomsInfoByRound.Count) ? roomsInfoByRound[j] : null; + this.UpdateDetailItem(list[j].transform, info); + } + } + } + LeagueTeamDetail eliChampionTeam = XFreeTeamVersusLeagueDocument.Doc.EliChampionTeam; + bool flag2 = eliChampionTeam != null && eliChampionTeam.members.Count > 0; + if (flag2) + { + base.uiBehaviour.ChampionMembers.gameObject.SetActive(true); + base.uiBehaviour.NoChampion.gameObject.SetActive(false); + base.uiBehaviour.GuildName.SetText(eliChampionTeam.teamname); + int childCount = base.uiBehaviour.ChampionMembers.childCount; + int num2 = Mathf.Min(childCount, eliChampionTeam.members.Count); + int k; + for (k = 0; k < num2; k++) + { + Transform child = base.uiBehaviour.ChampionMembers.GetChild(k); + child.gameObject.SetActive(true); + this.UpdateFinalItem(child, eliChampionTeam.members[k]); + } + while (k < childCount) + { + base.uiBehaviour.ChampionMembers.GetChild(k++).gameObject.SetActive(false); + } + } + else + { + base.uiBehaviour.ChampionMembers.gameObject.SetActive(false); + base.uiBehaviour.NoChampion.gameObject.SetActive(true); + base.uiBehaviour.GuildName.SetText(""); + } + this.RefreshEnterMatchBtn(); + } + + private void UpdateFinalItem(Transform transform, LeagueTeamMemberDetail memberInfo) + { + IXUILabel ixuilabel = transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(memberInfo.brief.name); + IXUILabel ixuilabel2 = transform.Find("Score/Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(memberInfo.pkpoint.ToString()); + IXUISprite ixuisprite = transform.Find("head").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2(XFastEnumIntEqualityComparer.ToInt(memberInfo.brief.profession))); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueFinalResultView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueFinalResultView.cs.meta new file mode 100644 index 00000000..6aae458d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamLeagueFinalResultView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 430e90e9d0c84294d89c050d5d4dc9bf +timeCreated: 1611403640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs new file mode 100644 index 00000000..f1cd11cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs @@ -0,0 +1,46 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamListBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnJoin; + + public GameObject m_NoTeam; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public XUIPool m_CategoryPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_CategoryScrollView; + + public XTitleBar m_TitleBar; + + public IXUILabel m_PPTRequirement; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg"); + this.m_BtnJoin = (transform.Find("BtnJoin").GetComponent("XUIButton") as IXUIButton); + transform = transform.Find("Titles"); + DlgHandlerBase.EnsureCreate(ref this.m_TitleBar, transform.gameObject, null, true); + transform = base.transform.Find("Bg/Categories/Category"); + this.m_CategoryPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_CategoryScrollView = (base.transform.Find("Bg/Categories/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + transform = base.transform.Find("Bg/AllTeamsFrame"); + this.m_NoTeam = transform.Find("NoTeams").gameObject; + this.m_ScrollView = (transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_PPTRequirement = (base.transform.Find("Bg/BattlePoint/Num").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs.meta new file mode 100644 index 00000000..6d804045 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamListBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 45ce09b00652d9345a9ab173500369df +timeCreated: 1611403648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamListView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamListView.cs new file mode 100644 index 00000000..39e55ff9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamListView.cs @@ -0,0 +1,439 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamListView : DlgBase + { + public override string fileName + { + get + { + return "Team/TeamListDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XTeamDocument doc; + + private bool _bFirstOpen = false; + + private uint _TimerID = 0u; + + private int m_SelectedTeamID = 0; + + private List m_SelectedCategoriesGo = new List(); + + private IXUICheckBox m_SelectAll; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.doc.AllListView = this; + this.doc.InitTeamListSelection(); + } + + protected override void OnUnload() + { + this.doc.AllListView = null; + DlgHandlerBase.EnsureUnload(ref base.uiBehaviour.m_TitleBar); + XSingleton.singleton.KillTimer(this._TimerID); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_TitleBar.RegisterClickEventHandler(new TitleClickEventHandler(this._OnTitleClickEventHandler)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + base.uiBehaviour.m_BtnJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnJoinBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this._bFirstOpen = true; + this.m_SelectedTeamID = -1; + XSingleton.singleton.KillTimer(this._TimerID); + this._AutoRefresh(null); + base.uiBehaviour.m_TitleBar.Refresh((ulong)((long)XFastEnumIntEqualityComparer.ToInt(this.doc.TeamListSortType))); + base.uiBehaviour.m_TitleBar.SetArrowDir(this.doc.TeamListSortDirection > 0); + this._InitCategories(); + this.doc.ClearTeamList(); + this.RefreshPage(); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._TimerID); + this._TimerID = 0u; + } + + public override void StackRefresh() + { + XSingleton.singleton.KillTimer(this._TimerID); + this._AutoRefresh(null); + } + + private void _InitCategories() + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this.m_SelectedCategoriesGo.Clear(); + base.uiBehaviour.m_CategoryPool.FakeReturnAll(); + GameObject gameObject = base.uiBehaviour.m_CategoryPool.FetchGameObject(false); + gameObject.transform.localPosition = base.uiBehaviour.m_CategoryPool.TplPos; + gameObject.transform.parent = base.uiBehaviour.m_CategoryPool._tpl.transform.parent; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + this.m_SelectAll = this._SetCategory(gameObject, 0UL, XStringDefineProxy.GetString("ALL")); + List categories = specificDocument.TeamCategoryMgr.m_Categories; + for (int i = 0; i < categories.Count; i++) + { + gameObject = base.uiBehaviour.m_CategoryPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_CategoryScrollView.gameObject.transform; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(gameObject); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_CategoryPool.TplPos.x, base.uiBehaviour.m_CategoryPool.TplPos.y - (float)(base.uiBehaviour.m_CategoryPool.TplHeight * (i + 1)), base.uiBehaviour.m_CategoryPool.TplPos.z); + this.m_SelectedCategoriesGo.Add(this._SetCategory(gameObject, (ulong)((long)categories[i].category), categories[i].Name)); + } + base.uiBehaviour.m_CategoryPool.ActualReturnAll(false); + this._RefreshCategoryStates(); + base.uiBehaviour.m_CategoryScrollView.ResetPosition(); + } + + private IXUICheckBox _SetCategory(GameObject go, ulong id, string strName) + { + Transform transform = go.transform.Find("Normal"); + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = id; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnCategoryStateChanged)); + IXUILabel ixuilabel = go.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(strName); + return ixuicheckBox; + } + + private void _RefreshCategoryStates() + { + bool bChecked = true; + for (int i = 0; i < this.m_SelectedCategoriesGo.Count; i++) + { + IXUICheckBox ixuicheckBox = this.m_SelectedCategoriesGo[i]; + int item = (int)ixuicheckBox.ID; + bool flag = this.doc.TeamListSelectedCategories.Contains(item); + if (flag) + { + ixuicheckBox.bChecked = true; + } + else + { + ixuicheckBox.bChecked = false; + bChecked = false; + } + } + this.m_SelectAll.bChecked = bChecked; + } + + private bool _OnCategoryStateChanged(IXUICheckBox ckb) + { + bool flag = false; + int num = (int)ckb.ID; + bool flag2 = this.doc.TeamListSelectedCategories.Contains(num); + if (flag2) + { + bool flag3 = !ckb.bChecked; + if (flag3) + { + this.doc.TeamListSelectedCategories.Remove(num); + bool flag4 = num == 0; + if (flag4) + { + this._SelectAll(false); + } + else + { + this.m_SelectAll.bChecked = false; + this.doc.TeamListSelectedCategories.Remove(0); + } + flag = true; + } + } + else + { + bool bChecked = ckb.bChecked; + if (bChecked) + { + this.doc.TeamListSelectedCategories.Add(num); + bool flag5 = num == 0; + if (flag5) + { + this._SelectAll(true); + } + flag = true; + } + } + bool flag6 = flag; + if (flag6) + { + this.doc.ReqTeamList(false); + } + return true; + } + + private void _SelectAll(bool bSelect) + { + for (int i = 0; i < this.m_SelectedCategoriesGo.Count; i++) + { + int item = (int)this.m_SelectedCategoriesGo[i].ID; + if (bSelect) + { + this.doc.TeamListSelectedCategories.Add(item); + } + else + { + this.doc.TeamListSelectedCategories.Remove(item); + } + } + this._RefreshCategoryStates(); + } + + private void _AutoRefresh(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + this.doc.ReqTeamList(false); + this._TimerID = XSingleton.singleton.SetTimer(3f, new XTimerMgr.ElapsedEventHandler(this._AutoRefresh), null); + } + } + + public void RefreshPage() + { + List teamList = this.doc.TeamList; + base.uiBehaviour.m_WrapContent.SetContentCount(teamList.Count, false); + bool bFirstOpen = this._bFirstOpen; + if (bFirstOpen) + { + base.uiBehaviour.m_ScrollView.ResetPosition(); + this._bFirstOpen = false; + } + base.uiBehaviour.m_NoTeam.SetActive(teamList.Count == 0); + XTeamBriefData xteamBriefData = null; + bool flag = this.m_SelectedTeamID != 0; + if (flag) + { + for (int i = 0; i < teamList.Count; i++) + { + bool flag2 = teamList[i].teamID == this.m_SelectedTeamID; + if (flag2) + { + xteamBriefData = teamList[i]; + break; + } + } + bool flag3 = xteamBriefData == null; + if (flag3) + { + this.m_SelectedTeamID = 0; + } + } + this._UpdateButtonState(xteamBriefData); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + List teamList = this.doc.TeamList; + bool flag = index >= teamList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Item index out of range: ", index.ToString(), null, null, null, null); + } + else + { + XTeamBriefData xteamBriefData = teamList[index]; + IXUILabel ixuilabel = t.Find("DungeonName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("TeamName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("DungeonLevel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("MemberCount").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = t.Find("CategoryName").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = t.Find("Select").gameObject; + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + GameObject gameObject2 = t.Find("Lock").gameObject; + IXUISprite ixuisprite2 = t.Find("Regression").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetVisible(xteamBriefData.regression); + IXUISprite ixuisprite3 = t.Find("SisterTA").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = 0UL; + ixuisprite3.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnPressTarjaInfo)); + IXUILabel ixuilabel6 = ixuisprite3.transform.Find("Info").GetComponent("XUILabel") as IXUILabel; + bool flag2 = ixuilabel6 != null; + if (flag2) + { + ixuilabel6.SetVisible(false); + } + IXUISprite ixuisprite4 = t.Find("SisterTATeam").GetComponent("XUISprite") as IXUISprite; + ixuilabel6 = (ixuisprite4.transform.Find("Info").GetComponent("XUILabel") as IXUILabel); + bool flag3 = ixuilabel6 != null; + if (flag3) + { + ixuilabel6.SetVisible(false); + } + ixuisprite4.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnPressTarjaInfo)); + ixuisprite4.ID = 1UL; + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnTeamClick)); + bool flag4 = xteamBriefData.rift != null; + if (flag4) + { + ixuilabel.SetText(xteamBriefData.rift.GetSceneName(xteamBriefData.dungeonName)); + } + else + { + ixuilabel.SetText(xteamBriefData.dungeonName); + } + ixuilabel2.SetText(xteamBriefData.teamName); + ixuilabel3.SetText(XStringDefineProxy.GetString("LEVEL", new object[] + { + xteamBriefData.dungeonLevel + })); + ixuilabel4.SetText(string.Format("{0}/{1}", xteamBriefData.currentMemberCount, xteamBriefData.totalMemberCount)); + ixuilabel5.SetText((xteamBriefData.category != null) ? xteamBriefData.category.Name : string.Empty); + gameObject.SetActive(xteamBriefData.teamID == this.m_SelectedTeamID); + gameObject2.SetActive(xteamBriefData.hasPwd); + xteamBriefData.goldGroup.SetUI(t.Find("RewardHunt").gameObject, true); + ixuisprite4.SetVisible(xteamBriefData.isTarja); + ixuisprite3.SetVisible(this.doc.ShowTarja(xteamBriefData.dungeonID)); + } + } + + private bool _OnTitleClickEventHandler(ulong ID) + { + this.doc.TeamListSortType = (TeamBriefSortType)ID; + this.doc.SortTeamListAndShow(); + return this.doc.TeamListSortDirection > 0; + } + + private void _UpdateButtonState(XTeamBriefData briefData) + { + base.uiBehaviour.m_BtnJoin.SetEnable(this.m_SelectedTeamID != 0 && !this.doc.bInTeam, false); + bool flag = briefData != null; + if (flag) + { + base.uiBehaviour.m_PPTRequirement.SetText(briefData.GetStrTeamPPT(0.0)); + } + else + { + base.uiBehaviour.m_PPTRequirement.SetText(XTeamBriefData.GetStrTeamPPT(0.0, 0.0)); + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnPressTarjaInfo(IXUISprite sprite, bool pressed) + { + IXUILabel ixuilabel = sprite.transform.Find("Info").GetComponent("XUILabel") as IXUILabel; + bool flag = ixuilabel != null; + if (flag) + { + bool flag2 = sprite.ID == 1UL; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TEAM_TARJA_DESC_TEAM"))); + } + else + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TEAM_TARJA_DESC"))); + } + ixuilabel.SetVisible(pressed); + } + return false; + } + + private void _OnTeamClick(IXUISprite iSp) + { + int num = (int)iSp.ID; + List teamList = this.doc.TeamList; + bool flag = num >= teamList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Item index out of range: ", num.ToString(), null, null, null, null); + } + else + { + XTeamBriefData xteamBriefData = teamList[num]; + this.m_SelectedTeamID = xteamBriefData.teamID; + base.uiBehaviour.m_WrapContent.RefreshAllVisibleContents(); + this._UpdateButtonState(xteamBriefData); + } + } + + private bool _OnJoinBtnClick(IXUIButton go) + { + this._RealShowJoinTeamView(); + return true; + } + + private void _RealShowJoinTeamView() + { + bool bInTeam = this.doc.bInTeam; + if (bInTeam) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAM_ALREADY_INTEAM, "fece00"); + } + else + { + XTeamBriefData teamBriefByID = this.doc.GetTeamBriefByID(this.m_SelectedTeamID); + bool flag = teamBriefByID == null; + if (!flag) + { + XTeamView.TryJoinTeam(teamBriefByID.teamID, teamBriefByID.hasPwd); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamListView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamListView.cs.meta new file mode 100644 index 00000000..4f01c250 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamListView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 60929a2d2f94fca4d88d8e497eb10fb2 +timeCreated: 1611403835 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamView.cs b/Client/Assets/Scripts/XMainClient/UI/XTeamView.cs new file mode 100644 index 00000000..eb0d640e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamView.cs @@ -0,0 +1,338 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTeamView : TabDlgBase + { + public override string fileName + { + get + { + return "Team/TeamDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 0; + } + } + + public XMyTeamHandler _MyTeamHandler; + + public XTeamListHandler _TeamListHandler; + + public XTeamDungeonSelectorHandler _DungeonSelectorHandler; + + public XYuyinView _yuyinHandler; + + public GameObject m_MyTeamPanel; + + public GameObject m_TeamListPanel; + + public GameObject m_DungeonSelectorPanel; + + private XTeamDocument _doc; + + private XTeamView.ShowTeamViewEventHandler mShowTeamViewEvent; + + private TeamLevelType mCurTeamLeveltype = TeamLevelType.TeamLevelNest; + + public delegate void ShowTeamViewEventHandler(); + + protected override void OnLoad() + { + base.OnLoad(); + this.m_MyTeamPanel = base.uiBehaviour.transform.Find("Bg/MyTeamFrame").gameObject; + this.m_MyTeamPanel.SetActive(false); + this.m_TeamListPanel = base.uiBehaviour.transform.Find("Bg/TeamListFrame").gameObject; + this.m_TeamListPanel.SetActive(false); + this.m_DungeonSelectorPanel = base.uiBehaviour.transform.Find("Bg/SelectFrame").gameObject; + this.m_DungeonSelectorPanel.SetActive(false); + this._doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._MyTeamHandler); + DlgHandlerBase.EnsureUnload(ref this._TeamListHandler); + DlgHandlerBase.EnsureUnload(ref this._DungeonSelectorHandler); + DlgHandlerBase.EnsureUnload(ref this._yuyinHandler); + base.OnUnload(); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + this._doc.ReqSceneDayCount(); + RpcC2G_GetTowerActivityTop rpc = new RpcC2G_GetTowerActivityTop(); + XSingleton.singleton.Send(rpc); + XDragonNestDocument specificDocument = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + specificDocument.SendReqDragonNestInfo(); + XGuildSmallMonsterDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + specificDocument2.SendQuerySmallMonterInfo(); + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + DlgBase.singleton.TryOpenUI(); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + } + + public void RefreshYuyin(ulong uid) + { + bool flag = this._yuyinHandler != null; + if (flag) + { + this._yuyinHandler.Refresh(YuyinIconType.Team); + } + } + + public void ShowTeamView() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CurSceneCanNotCtrl"), "fece00"); + } + else + { + base.Load(); + bool flag2 = !base.IsVisible(); + if (flag2) + { + bool bInTeam = this._doc.bInTeam; + if (bInTeam) + { + base.ShowWorkGameSystem(XSysDefine.XSys_Team_MyTeam); + } + else + { + base.ShowWorkGameSystem(XSysDefine.XSys_Team_TeamList); + } + } + else + { + bool bInTeam2 = this._doc.bInTeam; + if (bInTeam2) + { + base.ShowSubGamsSystem(XSysDefine.XSys_Team_MyTeam); + } + else + { + base.ShowSubGamsSystem(XSysDefine.XSys_Team_TeamList); + } + } + bool bInTeam3 = this._doc.bInTeam; + if (bInTeam3) + { + this._yuyinHandler.Show(YuyinIconType.Team, 5); + this._yuyinHandler.Show(this._doc.bInTeam); + } + } + } + + public void ShowTeamViewWithMsgBox(TeamLevelType _type, XTeamView.ShowTeamViewEventHandler _cbRealShow) + { + int dayLeftCount = ActivityNestHandler.GetDayLeftCount(); + this.mCurTeamLeveltype = _type; + this.mShowTeamViewEvent = _cbRealShow; + bool flag = dayLeftCount > 0; + if (flag) + { + bool flag2 = _cbRealShow != null; + if (flag2) + { + _cbRealShow(); + } + } + else + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int num; + int num2; + bool flag3 = specificDocument.CanBuy(_type, out num, out num2); + ButtonClickEventHandler handle; + ButtonClickEventHandler handle2; + string @string; + if (flag3) + { + handle = new ButtonClickEventHandler(this._ShowTeamViewBuyTimes); + handle2 = new ButtonClickEventHandler(this._ShowTeamViewNotBuyTimes); + CostInfo buyCost = specificDocument.GetBuyCost(_type); + @string = XStringDefineProxy.GetString("NEST_NO_TIMES_NEED_BUY_MSGBOX", new object[] + { + XLabelSymbolHelper.FormatCostWithIcon((int)buyCost.count, buyCost.type) + }); + } + else + { + handle = new ButtonClickEventHandler(this._ShowTeamViewNotBuyTimes); + handle2 = new ButtonClickEventHandler(this._CancelShowTeamView); + @string = XStringDefineProxy.GetString("NEST_NO_TIMES_CANNOT_BUY_MSGBOX"); + } + DlgBase.singleton.Load(); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetLabelsWithSymbols(@string, XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL)); + DlgBase.singleton.SetModalCallback(handle, handle2); + DlgBase.singleton.SetTweenTargetAndPlay(DlgBase.singleton.uiBehaviour.gameObject); + } + } + + private bool _ShowTeamViewBuyTimes(IXUIButton btn) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.ReqBuyCount(this.mCurTeamLeveltype); + this._ShowTeamViewNotBuyTimes(btn); + return true; + } + + private bool _ShowTeamViewNotBuyTimes(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = this.mShowTeamViewEvent != null; + if (flag) + { + this.mShowTeamViewEvent(); + } + this.mShowTeamViewEvent = null; + return true; + } + + protected bool _CancelShowTeamView(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this.mShowTeamViewEvent = null; + return true; + } + + public override void SetupHandlers(XSysDefine sys) + { + XSysDefine xsysDefine = sys; + if (xsysDefine != XSysDefine.XSys_Team_TeamList) + { + if (xsysDefine != XSysDefine.XSys_Team_MyTeam) + { + XSingleton.singleton.AddErrorLog("System has not finished:", sys.ToString(), null, null, null, null); + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._MyTeamHandler, this.m_MyTeamPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._DungeonSelectorHandler, this.m_DungeonSelectorPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._yuyinHandler, base.uiBehaviour.transform, true, this)); + } + } + else + { + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._TeamListHandler, this.m_TeamListPanel, this, true)); + base._AddActiveHandler(DlgHandlerBase.EnsureCreate(ref this._DungeonSelectorHandler, this.m_DungeonSelectorPanel, this, true)); + } + } + + public override void StackRefresh() + { + bool flag = (this._doc.bInTeam && this.mCurrentSys != XSysDefine.XSys_Team_MyTeam) || (!this._doc.bInTeam && this.mCurrentSys != XSysDefine.XSys_Team_TeamList); + if (flag) + { + this.ShowTeamView(); + } + base.StackRefresh(); + } + + public static void TryJoinTeam(int teamID, bool bHasPwd) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + if (bHasPwd) + { + DlgBase.singleton.TeamID = teamID; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + specificDocument.ReqTeamOp(TeamOperate.TEAM_JOIN, (ulong)((long)teamID), null, TeamMemberType.TMT_NORMAL, null); + } + } + + public static void SetTeamRelationUI(Transform t, XTeamRelation relation, bool bOnlyOne, XTeamRelation.Relation targetRelation = XTeamRelation.Relation.TR_NONE) + { + bool flag = t == null; + if (!flag) + { + IXUIList ixuilist = t.GetComponent("XUIList") as IXUIList; + Transform transform = t.Find("Guild"); + Transform transform2 = t.Find("Friend"); + Transform transform3 = t.Find("Partner"); + bool flag2 = true; + bool flag3 = relation == null; + if (!flag3) + { + bool flag4 = targetRelation > XTeamRelation.Relation.TR_NONE; + if (flag4) + { + bool flag5 = !relation.HasRelation(targetRelation); + if (flag5) + { + goto IL_181; + } + XTeamRelation.Relation relation2 = relation.ActualRelation & targetRelation; + transform.gameObject.SetActive(XTeamRelation.HasRelation(relation2, XTeamRelation.Relation.TR_GUILD)); + transform2.gameObject.SetActive(XTeamRelation.HasRelation(relation2, XTeamRelation.Relation.TR_FRIEND) && !XTeamRelation.HasRelation(relation2, XTeamRelation.Relation.TR_PARTNER)); + transform3.gameObject.SetActive(XTeamRelation.HasRelation(relation2, XTeamRelation.Relation.TR_PARTNER)); + } + else + { + bool flag6 = !bOnlyOne; + if (flag6) + { + transform.gameObject.SetActive(XTeamRelation.HasRelation(relation.FinalRelation2, XTeamRelation.Relation.TR_GUILD)); + transform2.gameObject.SetActive(XTeamRelation.HasRelation(relation.FinalRelation2, XTeamRelation.Relation.TR_FRIEND)); + transform3.gameObject.SetActive(XTeamRelation.HasRelation(relation.FinalRelation, XTeamRelation.Relation.TR_PARTNER)); + } + else + { + transform.gameObject.SetActive(relation.FinalRelation == XTeamRelation.Relation.TR_GUILD); + transform2.gameObject.SetActive(relation.FinalRelation == XTeamRelation.Relation.TR_FRIEND); + transform3.gameObject.SetActive(relation.FinalRelation == XTeamRelation.Relation.TR_PARTNER); + } + } + flag2 = false; + } + IL_181: + bool flag7 = flag2; + if (flag7) + { + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(false); + transform3.gameObject.SetActive(false); + } + bool flag8 = ixuilist != null; + if (flag8) + { + ixuilist.Refresh(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTeamView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTeamView.cs.meta new file mode 100644 index 00000000..b5b29699 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTeamView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01c14ed4d278cd94d97191d4737f882f +timeCreated: 1611402954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTempTipDefine.cs b/Client/Assets/Scripts/XMainClient/UI/XTempTipDefine.cs new file mode 100644 index 00000000..48cfe895 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTempTipDefine.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient.UI +{ + public enum XTempTipDefine + { + OD_START, + OD_NO_SHOW = 0, + OD_JADE_UPGRADE_NO_EQUIP, + OD_JADE_UPGRADE_NO_BIND, + OD_CHAT_WORLD, + OD_SPRITE_AWAKE, + OD_SPRITE_TRAIN, + OD_ENCHANT_REPLACE, + OD_CARD_RESOLVE_TIP, + OD_ABYSS_PARTY_COST_REPLACE, + OD_ARTIFACT_COMPOSE_TRAVELSET, + OD_SMELTSTONE_EXCHANGED, + OD_FUSE_CONFIRM, + OD_INSCRIPTION_CONFIRM, + OD_RECAST_CONFIRM, + OD_CAPACITYDOWN_TIPS, + OD_REFINED_CONFIRM, + OD_END + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTempTipDefine.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTempTipDefine.cs.meta new file mode 100644 index 00000000..79b237d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTempTipDefine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ab5e3892f15e8f4a9ab4b7da34b2eba +timeCreated: 1611403666 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs b/Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs new file mode 100644 index 00000000..ba593226 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs @@ -0,0 +1,162 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XTitanItem : XDataBase + { + public int ItemID + { + get + { + return this.m_ItemID; + } + } + + private int m_ItemID; + + private ulong m_Upperbound; + + private bool m_bHasUpperbound; + + private ulong m_Value; + + private GameObject m_go; + + private IXUISprite m_uiIcon; + + private IXUIButton m_btnAdd; + + private XNumberTween m_uiTween; + + private IXUILabel m_Tip; + + public override void Init() + { + base.Init(); + this.m_ItemID = 0; + this.m_Upperbound = 0UL; + this.m_bHasUpperbound = false; + this.m_go = null; + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + + public void Set(int itemid, GameObject go) + { + this.m_go = go; + this.m_ItemID = itemid; + bool flag = itemid == 6; + if (flag) + { + this.m_Upperbound = this.GetFatigueUpperbound(); + this.m_bHasUpperbound = true; + } + this._SetUI(); + this.RefreshValue(false); + } + + private void _SetUI() + { + this.m_uiIcon = (this.m_go.transform.Find("icon").GetComponent("XUISprite") as IXUISprite); + Transform transform = this.m_go.transform.Find("Add"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(this.IsShowAddBtn(this.m_ItemID)); + } + Transform transform2 = this.m_go.transform.Find("Tip"); + bool flag2 = transform2 != null; + if (flag2) + { + this.m_Tip = (this.m_go.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.m_Tip.SetText(XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(this.m_ItemID).ItemName, 0u)); + this.m_Tip.SetVisible(false); + } + Transform transform3 = this.m_go.transform.Find("Bg"); + bool flag3 = transform3 != null; + if (flag3) + { + this.m_btnAdd = (transform3.GetComponent("XUIButton") as IXUIButton); + bool flag4 = this.m_btnAdd != null; + if (flag4) + { + this.m_btnAdd.RegisterPressEventHandler(null); + this.m_btnAdd.RegisterClickEventHandler(null); + bool flag5 = this.IsShowAddBtn(this.m_ItemID); + if (flag5) + { + this.m_btnAdd.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnAddClicked)); + } + else + { + this.m_btnAdd.RegisterPressEventHandler(new ButtonPressEventHandler(this._OnAddPress)); + } + } + } + this.m_uiTween = XNumberTween.Create(this.m_go.transform); + string strSprite; + string strAtlas; + XBagDocument.GetItemBigIconAndAtlas(this.m_ItemID, out strSprite, out strAtlas, 0u); + this.m_uiIcon.SetSprite(strSprite, strAtlas, false); + } + + private bool IsShowAddBtn(int itemID) + { + bool flag = itemID == int.Parse(XSingleton.singleton.GetValue("SpriteAwakeItemID")) || itemID == int.Parse(XSingleton.singleton.GetValue("SpriteStarUpItemID")); + return !flag; + } + + public void RefreshValue(bool bAnim) + { + this.m_Value = XSingleton.singleton.Doc.XBagDoc.GetItemCount(this.m_ItemID); + string postfix = string.Empty; + bool bHasUpperbound = this.m_bHasUpperbound; + if (bHasUpperbound) + { + bool flag = this.m_ItemID == 6; + if (flag) + { + this.m_Upperbound = this.GetFatigueUpperbound(); + } + postfix = string.Format("/{0}", this.m_Upperbound); + } + XSingleton.singleton.SetVirtualItem(this.m_uiTween, this.m_Value, bAnim, postfix); + } + + private ulong GetFatigueUpperbound() + { + ulong num = ulong.Parse(XSingleton.singleton.GetValue("MaxRecoverFatigue")); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + if (flag) + { + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Court); + num += (ulong)((memberPrivilegeConfig != null) ? ((long)memberPrivilegeConfig.FatigueLimit) : 0L); + } + return num; + } + + private bool _OnAddClicked(IXUIButton btn) + { + DlgBase.singleton.ReqQuickCommonPurchase(this.m_ItemID); + return true; + } + + private void _OnAddPress(IXUIButton btn, bool state) + { + bool flag = this.m_Tip == null; + if (!flag) + { + this.m_Tip.SetVisible(state); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs.meta new file mode 100644 index 00000000..9fba4338 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XTitanItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2dd7e7d228e575c4f9906946e3d79c00 +timeCreated: 1611403507 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XVoiceQAView.cs b/Client/Assets/Scripts/XMainClient/UI/XVoiceQAView.cs new file mode 100644 index 00000000..ebb1c46b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XVoiceQAView.cs @@ -0,0 +1,902 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XVoiceQAView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/AnswerDlg"; + } + } + + private XVoiceQADocument _doc = null; + + private Vector2 m_DragDistance = Vector2.zero; + + private bool m_CancelRecord = false; + + private IXUILabel timeLabel; + + private double targetTime; + + private bool isGreenColor; + + private bool isEndTime = false; + + private static readonly ulong UNPLAY = 10001UL; + + private static readonly ulong SYSTEMTIPS = 10000UL; + + private ulong currPlayAudio = XVoiceQAView.UNPLAY; + + private bool currPlayAudioIsMy = false; + + public List m_RankName = new List(); + + public List m_RankNum = new List(); + + private LinkedList _audioList = new LinkedList(); + + private static readonly float AUDIODELAYPLAYTIME = 10f; + + private static readonly int RANKSHOWNUMBER = 20; + + private uint _timerToken; + + private int _startid = 0; + + private uint _startindex = 0u; + + private double _starttime = 0.0; + + private IXUISpriteAnimation playingAni; + + private IXUISpriteAnimation[] aniArr = new IXUISpriteAnimation[6]; + + private static readonly Color greenColor = new Color32(63, 216, 51, byte.MaxValue); + + private static readonly Color redColor = new Color32(byte.MaxValue, 0, 0, byte.MaxValue); + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + this._audioList.Clear(); + base.uiBehaviour.m_RankPool.ReturnAll(false); + this.m_RankName.Clear(); + this.m_RankNum.Clear(); + for (int i = 0; i < XVoiceQAView.RANKSHOWNUMBER; i++) + { + GameObject gameObject = base.uiBehaviour.m_RankPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(-10f, (float)(161 - 35 * i), 0f); + IXUILabel ixuilabel = gameObject.transform.Find("name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("num").GetComponent("XUILabel") as IXUILabel; + this.m_RankName.Add(ixuilabel); + this.m_RankNum.Add(ixuilabel2); + bool flag = i < 3; + if (flag) + { + ixuilabel.SetColor(new Color(255f, 255f, 0f, 255f)); + ixuilabel2.SetColor(new Color(255f, 255f, 0f, 255f)); + } + } + IXUILabel item = base.uiBehaviour.m_MultipleGo.transform.Find("ScoreRank/rank/myRank/num").GetComponent("XUILabel") as IXUILabel; + this.m_RankNum.Add(item); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_ExitVoiceQA.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_SingleWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.WrapListInit)); + base.uiBehaviour.m_MultiWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.WrapListInit)); + base.uiBehaviour.m_SingleWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DesWrapListUpdated)); + base.uiBehaviour.m_MultiWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DesWrapListUpdated)); + base.uiBehaviour.m_SpeakBtn.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnVoiceButton)); + base.uiBehaviour.m_SpeakBtn.RegisterDragEventHandler(new ButtonDragEventHandler(this.OnVoiceButtonDrag)); + base.uiBehaviour.m_NextQuestion.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnNextQuestionBtnClick)); + base.uiBehaviour.m_AutoPlay.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnAutoPlayBtnClick)); + base.uiBehaviour.m_Input.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnInputBtnClick)); + } + + private void SetTimesLabel(IXUILabel label, uint times) + { + label.SetText(XStringDefineProxy.GetString(string.Format("Multiple_times_{0}", times))); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl/Except_Quiz", 0f); + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl/Quiz ", 1f); + DlgBase.singleton.SetMaqueeSwitch(false); + XSingleton.singleton.EnableAutoPlay(false); + this._doc.GetReward(); + base.uiBehaviour.m_AutoPlay.gameObject.SetActive(true); + base.uiBehaviour.m_SingleGo.SetActive(this._doc.CurrentType == 1u); + base.uiBehaviour.m_MultipleGo.SetActive(this._doc.CurrentType != 1u); + bool flag = this._doc.CurrentType == 2u; + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + this.RefreshList(); + this._doc.SendQueryVoiceQAInfo(); + bool flag2 = !XSingleton.singleton.IsWifiEnable() && XSingleton.singleton.IsChannelAutoPlayEnable(ChatChannelType.ZeroChannel); + if (flag2) + { + this._doc.IsAutoPlay = false; + } + base.uiBehaviour.m_AutoPlay.bChecked = this._doc.IsAutoPlay; + this.OnAutoPlayBtnClick(base.uiBehaviour.m_AutoPlay); + this.RefreshPage(this._startid, this._startindex, this._starttime); + } + + private bool OnCloseClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnInputBtnClick(IXUIButton btn) + { + DlgBase.singleton.ShowChatInput(new ChatInputStringBack(this.OnInputStringGet)); + DlgBase.singleton.SetInputType(ChatInputType.TEXT); + DlgBase.singleton.SetCharacterLimit(50); + return true; + } + + public void OnInputStringGet(string str) + { + XSingleton.singleton.AddLog("Player input string is ", str, null, null, null, null, XDebugColor.XDebug_None); + this._doc.SendAnswer(str, 0UL, 0u); + } + + private bool OnAutoPlayBtnClick(IXUICheckBox iCheckBox) + { + bool flag = iCheckBox.bChecked && !XSingleton.singleton.IsWifiEnable(); + if (flag) + { + bool flag2 = XSingleton.singleton.IsChannelAutoPlayEnable(ChatChannelType.ZeroChannel); + if (flag2) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("VoiceQA_AutoPlay_Error"), XStringDefineProxy.GetString("COMMON_OK")); + iCheckBox.bChecked = false; + return true; + } + } + this._doc.IsAutoPlay = iCheckBox.bChecked; + bool flag3 = !this._doc.IsAutoPlay; + if (flag3) + { + bool flag4 = !this.currPlayAudioIsMy; + if (flag4) + { + XSingleton.singleton.StopUISound(); + XSingleton.singleton.StopAutoPlay(); + this.currPlayAudio = XVoiceQAView.UNPLAY; + } + this._audioList.Clear(); + } + return true; + } + + private void OnVoiceButtonDrag(IXUIButton sp, Vector2 delta) + { + this.m_DragDistance += delta; + bool flag = this.m_DragDistance.magnitude >= 100f; + if (flag) + { + this.m_CancelRecord = true; + } + else + { + this.m_CancelRecord = false; + } + } + + private void OnVoiceButton(IXUIButton sp, bool state) + { + if (state) + { + this.m_CancelRecord = false; + XSingleton.singleton.AddLog("Press down", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_DragDistance = Vector2.zero; + bool answerUseApollo = XChatDocument.m_AnswerUseApollo; + if (answerUseApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.ANSWER, null); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.ANSWER, null); + } + } + else + { + XSingleton.singleton.AddLog("Press up", null, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.SetActiveChannel(ChatChannelType.Team); + bool answerUseApollo2 = XChatDocument.m_AnswerUseApollo; + if (answerUseApollo2) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + this.m_CancelRecord = false; + } + } + + public void VoiceQAStart(double time) + { + base.uiBehaviour.m_Start.SetActive(true); + base.uiBehaviour.m_Ongoing.SetActive(false); + base.uiBehaviour.m_End.SetActive(false); + bool isFirstOpenUI = this._doc.IsFirstOpenUI; + if (isFirstOpenUI) + { + this._doc.IsFirstOpenUI = false; + this.DealWithAudio(new VoiceQAAudio + { + isTips = true, + tipsType = VoiceQATipsType.WELCOME + }, QAAudioPriority.URGEN); + } + bool flag = this._doc.CurrentType != 1u; + if (flag) + { + base.uiBehaviour.m_RankScrollView.ResetPosition(); + } + IXUILabel ixuilabel = base.uiBehaviour.m_Start.transform.Find("label").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("VoiceQA_Start_Description_" + this._doc.CurrentType.ToString())); + this.timeLabel = (base.uiBehaviour.m_Start.transform.Find("time").GetComponent("XUILabel") as IXUILabel); + this.SetTime((double)(DateTime.Now.Ticks / 10000000L) + time, false); + } + + public void SetQuestion(int id, uint index, bool isNew = true, double time = 0.0) + { + base.uiBehaviour.m_Start.SetActive(false); + base.uiBehaviour.m_Ongoing.SetActive(true); + base.uiBehaviour.m_End.SetActive(false); + base.uiBehaviour.m_NextQuestion.gameObject.SetActive(this._doc.CurrentType == 1u); + base.uiBehaviour.m_Right.SetActive(this._doc.IsNowDesRight); + this._audioList.Clear(); + if (isNew) + { + VoiceQAAudio voiceQAAudio = new VoiceQAAudio(); + voiceQAAudio.isTips = true; + voiceQAAudio.signTime = Time.time + 1000f; + bool flag = id == 1; + if (flag) + { + voiceQAAudio.tipsType = VoiceQATipsType.START; + this.DealWithAudio(voiceQAAudio, QAAudioPriority.URGEN); + } + else + { + voiceQAAudio.tipsType = VoiceQATipsType.NEXT; + this.DealWithAudio(voiceQAAudio, (this._doc.CurrentType == 1u) ? QAAudioPriority.AFTER : QAAudioPriority.URGEN); + } + } + bool flag2 = this._doc.CurrentType != 1u; + if (flag2) + { + this.RefreshList(); + } + QuestionLibraryTable.RowData byID = this._doc.QuestionTable.GetByID((int)index); + base.uiBehaviour.m_QuesDesc.SetText(byID.Question); + base.uiBehaviour.m_QuesNum.SetText(string.Format(XStringDefineProxy.GetString("VoiceQA_QuestionNumber"), id)); + base.uiBehaviour.m_Reward.InputText = XLabelSymbolHelper.FormatCostWithIcon((int)this._doc.Reward[0, 1], (ItemEnum)this._doc.Reward[0, 0]); + this.timeLabel = (base.uiBehaviour.m_Ongoing.transform.Find("message/time").GetComponent("XUILabel") as IXUILabel); + if (isNew) + { + QuestionLibraryTable.RowData byID2 = this._doc.QuestionTable.GetByID((int)index); + this.SetTime((double)(DateTime.Now.Ticks / 10000000L + (long)byID2.TimeLimit), false); + } + else + { + this.SetTime((double)(DateTime.Now.Ticks / 10000000L) + time, false); + } + } + + public void VoiceQAEnd(uint questionNum, uint rightNum, List list) + { + base.uiBehaviour.m_Start.SetActive(false); + base.uiBehaviour.m_Ongoing.SetActive(false); + base.uiBehaviour.m_End.SetActive(true); + VoiceQAAudio voiceQAAudio = new VoiceQAAudio(); + voiceQAAudio.isTips = true; + voiceQAAudio.tipsType = VoiceQATipsType.OVER; + this._audioList.Clear(); + this.DealWithAudio(voiceQAAudio, QAAudioPriority.URGEN); + base.uiBehaviour.m_AutoPlay.gameObject.SetActive(false); + IXUILabel ixuilabel = base.uiBehaviour.m_End.transform.Find("label").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = base.uiBehaviour.m_End.transform.Find("reward").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.gameObject.SetActive(questionNum > 0u); + bool flag = questionNum > 0u; + if (flag) + { + string text = ""; + for (int i = 0; i < list.Count; i++) + { + text += XLabelSymbolHelper.FormatCostWithIcon((int)list[i].itemCount, (ItemEnum)list[i].itemID); + } + ixuilabelSymbol.InputText = text; + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("VoiceQA_End_Description1"), questionNum, rightNum)); + } + else + { + ixuilabel.SetText(XStringDefineProxy.GetString("VoiceQA_End_Description2")); + } + this.timeLabel = (base.uiBehaviour.m_End.transform.Find("time").GetComponent("XUILabel") as IXUILabel); + this.SetTime((double)(DateTime.Now.Ticks / 10000000L + 30L), true); + } + + private bool OnNextQuestionBtnClick(IXUIButton btn) + { + XSingleton.singleton.StopUISound(); + XSingleton.singleton.StopAutoPlay(); + this.currPlayAudioIsMy = false; + this._audioList.Clear(); + this._doc.NextQuestionQuery(); + return true; + } + + private void OnAudioButtonClick(IXUISprite iSp) + { + this.DealWithAudio(new VoiceQAAudio + { + isTips = false, + audioID = this._doc.AnswerList[(int)iSp.ID].audioID, + audioTime = this._doc.AnswerList[(int)iSp.ID].audioTime + }, QAAudioPriority.URGEN); + } + + private void AudioPlayEnd(object obj) + { + this.currPlayAudioIsMy = false; + bool flag = this.playingAni != null; + if (flag) + { + this.playingAni.StopAndReset(); + this.playingAni = null; + } + this.PlayAudioList(); + } + + public void SetTime(double _targetTime, bool _isEndTime = false) + { + this.isEndTime = _isEndTime; + this.targetTime = _targetTime; + bool flag = this.targetTime > 10.0; + if (flag) + { + this.timeLabel.SetColor(XVoiceQAView.greenColor); + this.isGreenColor = true; + } + else + { + this.timeLabel.SetColor(XVoiceQAView.redColor); + this.isGreenColor = false; + } + } + + private void WrapListInit(Transform t, int i) + { + this.aniArr[i] = (t.Find("voice/board/sign").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation); + } + + private void DesWrapListUpdated(Transform t, int i) + { + bool flag = this._doc.AnswerList[i].roleId == XSingleton.singleton.XPlayerData.RoleID; + IXUILabel ixuilabel = t.Find("time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.TimeFormatString((int)this._doc.AnswerList[i].answerTime, 3, 3, 4, false, true)); + IXUILabel ixuilabel2 = t.Find("voice/content").GetComponent("XUILabel") as IXUILabel; + string text = this._doc.AnswerList[i].content; + int num = (this._doc.CurrentType == 1u) ? 23 : 48; + bool flag2 = text.Length > num; + if (flag2) + { + text = text.Substring(0, num); + } + ixuilabel2.SetText(text); + bool flag3 = this._doc.CurrentType != 1u; + if (flag3) + { + Vector3 localPosition = ixuilabel2.gameObject.transform.localPosition; + localPosition.y = (float)((ixuilabel2.spriteHeight > 30) ? -41 : -50); + ixuilabel2.gameObject.transform.localPosition = localPosition; + } + GameObject gameObject = t.Find("voice/board").gameObject; + gameObject.SetActive(this._doc.AnswerList[i].audioID > 0UL); + bool flag4 = this._doc.CurrentType != 1u; + if (flag4) + { + IXUIButton ixuibutton = t.Find("voice/flower").GetComponent("XUIButton") as IXUIButton; + ixuibutton.gameObject.SetActive(!flag && this._doc.AnswerList[i].audioID > 0UL); + ixuibutton.ID = this._doc.AnswerList[i].roleId; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSendFlowerClicked)); + } + bool flag5 = this._doc.AnswerList[i].audioID > 0UL; + if (flag5) + { + IXUILabel ixuilabel3 = t.Find("voice/board/time").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(((this._doc.AnswerList[i].audioTime < 1000u) ? 1u : (this._doc.AnswerList[i].audioTime / 1000u)).ToString() + "''"); + IXUISprite ixuisprite = t.Find("voice/board").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAudioButtonClick)); + IXUISpriteAnimation ixuispriteAnimation = ixuisprite.gameObject.transform.Find("sign").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.ID = this._doc.AnswerList[i].audioID; + bool flag6 = this._doc.AnswerList[i].audioID == this.currPlayAudio; + if (flag6) + { + ixuispriteAnimation.Reset(); + this.playingAni = ixuispriteAnimation; + } + else + { + ixuispriteAnimation.StopAndReset(); + } + } + bool flag7 = flag; + if (flag7) + { + IXUISprite ixuisprite2 = t.Find("R/head").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteName = XSingleton.singleton.GetProfHeadIcon2((int)this._doc.AnswerList[i].profession); + } + else + { + IXUISprite ixuisprite3 = t.Find("L/head").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.spriteName = XSingleton.singleton.GetProfHeadIcon2((int)this._doc.AnswerList[i].profession); + } + GameObject gameObject2 = t.Find("voice/right").gameObject; + gameObject2.SetActive(this._doc.AnswerList[i].right); + bool right = this._doc.AnswerList[i].right; + if (right) + { + bool isNew = this._doc.AnswerList[i].isNew; + if (isNew) + { + IXUITweenTool ixuitweenTool = gameObject2.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + bool flag8 = this._doc.AnswerList[i].isNew && flag && this._doc.CurrentType != 1u && !this._doc.IsNowDesRight; + if (flag8) + { + this._doc.IsNowDesRight = true; + base.uiBehaviour.m_Right.SetActive(true); + IXUITweenTool ixuitweenTool2 = base.uiBehaviour.m_Right.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool2.PlayTween(true, -1f); + } + } + GameObject gameObject3 = t.Find("reward").gameObject; + gameObject3.SetActive(this._doc.AnswerList[i].times > 0u); + bool flag9 = this._doc.AnswerList[i].times > 0u; + if (flag9) + { + IXUILabelSymbol ixuilabelSymbol = t.Find("reward/item").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = XLabelSymbolHelper.FormatCostWithIcon((int)(this._doc.Reward[0, 1] * this._doc.AnswerList[i].times), (ItemEnum)this._doc.Reward[0, 0]); + IXUILabel ixuilabel4 = t.Find("reward/times").GetComponent("XUILabel") as IXUILabel; + bool flag10 = this._doc.AnswerList[i].times > 1u; + if (flag10) + { + ixuilabel4.gameObject.SetActive(true); + this.SetTimesLabel(ixuilabel4, this._doc.AnswerList[i].times); + } + else + { + ixuilabel4.gameObject.SetActive(false); + } + } + bool flag11 = this._doc.CurrentType != 1u; + if (flag11) + { + GameObject gameObject4 = t.Find("R").gameObject; + GameObject gameObject5 = t.Find("L").gameObject; + gameObject4.SetActive(flag); + gameObject5.SetActive(!flag); + GameObject gameObject6 = t.Find("name").gameObject; + gameObject6.SetActive(flag); + GameObject gameObject7 = t.Find("name2").gameObject; + gameObject7.SetActive(!flag); + GameObject gameObject8 = t.Find("voice").gameObject; + IXUILabel ixuilabel5 = t.Find("enter").GetComponent("XUILabel") as IXUILabel; + gameObject8.SetActive(!this._doc.AnswerList[i].isEnterRoom); + ixuilabel5.gameObject.SetActive(this._doc.AnswerList[i].isEnterRoom); + bool isEnterRoom = this._doc.AnswerList[i].isEnterRoom; + if (isEnterRoom) + { + bool flag12 = flag; + if (flag12) + { + ixuilabel5.SetText(XStringDefineProxy.GetString("ME") + XStringDefineProxy.GetString("VoiceQA_EnterRoomInfo")); + } + else + { + ixuilabel5.SetText(this._doc.AnswerList[i].name + XStringDefineProxy.GetString("VoiceQA_EnterRoomInfo")); + } + } + bool flag13 = !flag; + if (flag13) + { + IXUILabelSymbol ixuilabelSymbol2 = gameObject7.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string inputText = XSingleton.singleton.SetChatCoverDesignation(this._doc.AnswerList[i].name, this._doc.AnswerList[i].desID, false); + ixuilabelSymbol2.InputText = inputText; + } + GameObject gameObject9 = t.Find("quickreward").gameObject; + int rank = (int)this._doc.AnswerList[i].rank; + gameObject9.SetActive(rank != 0 && rank <= this._doc.ExtraReward.Count); + bool flag14 = rank != 0 && rank <= this._doc.ExtraReward.Count; + if (flag14) + { + IXUILabel ixuilabel6 = gameObject9.transform.Find("label").GetComponent("XUILabel") as IXUILabel; + bool flag15 = rank == 1; + if (flag15) + { + ixuilabel6.SetText(XStringDefineProxy.GetString("VoiceQA_quick_1")); + } + else + { + ixuilabel6.SetText(XStringDefineProxy.GetString("VoiceQA_quick_2")); + } + IXUILabelSymbol ixuilabelSymbol3 = gameObject9.transform.Find("item").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol3.InputText = XLabelSymbolHelper.FormatCostWithIcon((int)this._doc.ExtraReward[rank - 1, 1], (ItemEnum)this._doc.ExtraReward[rank - 1, 0]); + } + } + bool isNew2 = this._doc.AnswerList[i].isNew; + if (isNew2) + { + this._doc.AnswerList[i].isNew = false; + bool flag16 = !this._doc.AnswerList[i].isEnterRoom; + if (flag16) + { + bool flag17 = this._doc.AnswerList[i].audioID > 0UL; + if (flag17) + { + bool flag18 = flag; + if (flag18) + { + VoiceQAAudio voiceQAAudio = new VoiceQAAudio(); + voiceQAAudio.isTips = false; + voiceQAAudio.audioID = this._doc.AnswerList[i].audioID; + voiceQAAudio.audioTime = this._doc.AnswerList[i].audioTime; + this.currPlayAudioIsMy = true; + this.DealWithAudio(voiceQAAudio, QAAudioPriority.URGEN); + } + else + { + bool isAutoPlay = this._doc.IsAutoPlay; + if (isAutoPlay) + { + this.DealWithAudio(new VoiceQAAudio + { + isTips = false, + audioID = this._doc.AnswerList[i].audioID, + audioTime = this._doc.AnswerList[i].audioTime, + signTime = Time.time + XVoiceQAView.AUDIODELAYPLAYTIME + }, QAAudioPriority.AFTER); + } + } + } + bool flag19 = flag && this._doc.AnswerList[i].right; + if (flag19) + { + this.DealWithAudio(new VoiceQAAudio + { + isTips = true, + tipsType = VoiceQATipsType.RIGHT, + signTime = Time.time + 1000f + }, QAAudioPriority.BEFORE); + } + } + } + } + + public void RefreshRank() + { + int num = Math.Min(this._doc.ScoreList.Count, XVoiceQAView.RANKSHOWNUMBER); + for (int i = 0; i < num; i++) + { + this.m_RankName[i].gameObject.transform.parent.gameObject.SetActive(true); + this.m_RankName[i].SetText(string.Format("{0}.{1}", i + 1, this._doc.GetPlayerNameByRoleID(this._doc.ScoreList[i].uuid))); + this.m_RankNum[i].SetText(this._doc.ScoreList[i].score.ToString()); + } + for (int j = num; j < XVoiceQAView.RANKSHOWNUMBER; j++) + { + this.m_RankName[j].gameObject.transform.parent.gameObject.SetActive(false); + } + this.m_RankNum[XVoiceQAView.RANKSHOWNUMBER].SetText(this._doc.MyScore.ToString()); + } + + public void RefreshPage(int id, uint index, double time) + { + this._startid = id; + this._startindex = index; + this._starttime = time; + base.uiBehaviour.m_Title.SetText(XStringDefineProxy.GetString("VoiceQA_Title" + this._doc.CurrentType.ToString())); + bool flag = id == 0; + if (flag) + { + this.VoiceQAStart(time); + } + else + { + this.SetQuestion(id, index, false, time); + } + this.RefreshList(); + } + + public void RefreshList() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this._doc.CurrentType == 1u; + IXUIScrollView ixuiscrollView; + IXUIWrapContent ixuiwrapContent; + if (flag2) + { + ixuiscrollView = base.uiBehaviour.m_SingleSrcollView; + ixuiwrapContent = base.uiBehaviour.m_SingleWrapContent; + } + else + { + ixuiscrollView = base.uiBehaviour.m_MultiSrollView; + ixuiwrapContent = base.uiBehaviour.m_MultiWrapContent; + } + int num = Mathf.Min(this._doc.AnswerList.Count, ixuiwrapContent.maxItemCount); + for (int i = num; i < 5; i++) + { + this.aniArr[i] = null; + } + ixuiwrapContent.SetContentCount(this._doc.AnswerList.Count, false); + bool flag3 = this._doc.AnswerList.Count < 3; + if (flag3) + { + ixuiscrollView.SetPosition(0f); + } + else + { + ixuiscrollView.NeedRecalcBounds(); + ixuiscrollView.SetPosition(1f); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.timeLabel == null; + if (!flag) + { + int num = (int)(this.targetTime - (double)(DateTime.Now.Ticks / 10000000L)); + bool flag2 = num < 0; + if (flag2) + { + num = 0; + } + bool flag3 = !this.isEndTime && this.isGreenColor && num <= 10; + if (flag3) + { + this.timeLabel.SetColor(XVoiceQAView.redColor); + this.isGreenColor = false; + } + bool flag4 = this.isEndTime; + if (flag4) + { + bool flag5 = num == 0; + if (flag5) + { + this.timeLabel = null; + this.SetVisible(false, true); + } + else + { + this.timeLabel.SetText(num.ToString()); + } + } + else + { + this.timeLabel.SetText(XSingleton.singleton.TimeFormatString(num, 2, 2, 4, false, true)); + } + } + } + + private bool OnSendFlowerClicked(IXUIButton btn) + { + ulong id = btn.ID; + string playerNameByRoleID = this._doc.GetPlayerNameByRoleID(id); + DlgBase.singleton.ShowBoard(id, playerNameByRoleID); + return true; + } + + public void DealWithAudio(VoiceQAAudio audio, QAAudioPriority pro) + { + bool flag = pro == QAAudioPriority.URGEN; + if (flag) + { + bool flag2 = this.currPlayAudio == XVoiceQAView.SYSTEMTIPS; + if (flag2) + { + XSingleton.singleton.StopUISound(); + } + else + { + XSingleton.singleton.StopAutoPlay(); + } + this.currPlayAudioIsMy = false; + this.PlayAudio(audio); + } + else + { + bool flag3 = pro == QAAudioPriority.BEFORE; + if (flag3) + { + this._audioList.AddFirst(audio); + } + else + { + this._audioList.AddLast(audio); + } + bool flag4 = this.currPlayAudio == XVoiceQAView.UNPLAY; + if (flag4) + { + this.PlayAudioList(); + } + } + } + + private void PlayAudio(VoiceQAAudio audio) + { + bool flag = this.playingAni != null; + if (flag) + { + this.playingAni.StopAndReset(); + this.playingAni = null; + } + float interval = 0f; + bool isTips = audio.isTips; + if (isTips) + { + this.currPlayAudio = XVoiceQAView.SYSTEMTIPS; + switch (audio.tipsType) + { + case VoiceQATipsType.WELCOME: + XSingleton.singleton.PlayUISound("Audio/VO/QuizGame_welcome", true, AudioChannel.Action); + interval = 4.885f; + break; + case VoiceQATipsType.RIGHT: + XSingleton.singleton.PlayUISound("Audio/VO/QuizGame_right", true, AudioChannel.Action); + interval = 1.646f; + break; + case VoiceQATipsType.START: + XSingleton.singleton.PlayUISound("Audio/VO/QuizGame_start", true, AudioChannel.Action); + interval = 3.964f; + break; + case VoiceQATipsType.NEXT: + XSingleton.singleton.PlayUISound("Audio/VO/QuizGame_next", true, AudioChannel.Action); + interval = 0.683f; + break; + case VoiceQATipsType.OVER: + XSingleton.singleton.PlayUISound("Audio/VO/QuizGame_over2", true, AudioChannel.Action); + interval = 3.809f; + break; + } + } + else + { + this.currPlayAudio = audio.audioID; + ulong audioID = audio.audioID; + XSingleton.singleton.StartPlayAudioId(audioID); + interval = audio.audioTime / 1000f; + for (int i = 0; i < 5; i++) + { + bool flag2 = this.aniArr[i] == null; + if (!flag2) + { + bool flag3 = !this.aniArr[i].gameObject.activeSelf; + if (!flag3) + { + bool flag4 = this.aniArr[i].ID == audio.audioID; + if (flag4) + { + this.aniArr[i].Reset(); + this.playingAni = this.aniArr[i]; + } + else + { + this.aniArr[i].StopAndReset(); + } + } + } + } + } + XSingleton.singleton.KillTimer(this._timerToken); + this._timerToken = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.AudioPlayEnd), null); + } + + private void PlayAudioList() + { + bool flag = this._audioList.Count == 0; + if (flag) + { + this.currPlayAudio = XVoiceQAView.UNPLAY; + } + else + { + while (this._audioList.Count != 0) + { + VoiceQAAudio value = this._audioList.First.Value; + this._audioList.RemoveFirst(); + bool flag2 = value.signTime > Time.time; + if (flag2) + { + this.PlayAudio(value); + break; + } + } + } + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this._timerToken); + DlgBase.singleton.SetMaqueeSwitch(true); + base.OnUnload(); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl/Except_Quiz", 1f); + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl/Quiz ", 1f); + DlgBase.singleton.SetMaqueeSwitch(true); + XSingleton.singleton.EnableAutoPlay(true); + this.timeLabel = null; + XSingleton.singleton.StopUISound(); + XSingleton.singleton.StopAutoPlay(); + this.currPlayAudioIsMy = false; + this._audioList.Clear(); + this.currPlayAudio = XVoiceQAView.UNPLAY; + XSingleton.singleton.KillTimer(this._timerToken); + this.OnRemoveAllQACache(); + } + + private void OnRemoveAllQACache() + { + bool flag = XChatDocument.is_delete_audio && XSingleton.singleton.NeedClear(); + if (flag) + { + XSingleton.singleton.ClearAudioCache(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XVoiceQAView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XVoiceQAView.cs.meta new file mode 100644 index 00000000..a60f635d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XVoiceQAView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fa0378770f2b5a4f9d91955bd8f0e43 +timeCreated: 1611403402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingCostBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XWeddingCostBehavior.cs new file mode 100644 index 00000000..f842114e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingCostBehavior.cs @@ -0,0 +1,41 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XWeddingCostBehavior : DlgBehaviourBase + { + public GameObject DrawItem = null; + + public IXUILabel TitleLabel = null; + + public IXUILabel SecondTitle = null; + + public IXUILabel TipLabel = null; + + public IXUILabel CostTip = null; + + public IXUILabel NumLabel = null; + + public IXUIButton Close; + + public IXUIButton OkBtn; + + public IXUIButton Cancel; + + private void Awake() + { + this.DrawItem = base.transform.Find("ItemTpl").gameObject; + this.TipLabel = (base.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.SecondTitle = (base.transform.Find("Bg/Tip").GetComponent("XUILabel") as IXUILabel); + this.TitleLabel = (base.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.CostTip = (base.transform.Find("CostTip").GetComponent("XUILabel") as IXUILabel); + this.NumLabel = (base.transform.Find("TipNum").GetComponent("XUILabel") as IXUILabel); + this.Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.OkBtn = (base.transform.Find("SureBtn").GetComponent("XUIButton") as IXUIButton); + this.Cancel = (base.transform.Find("Cancel").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingCostBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWeddingCostBehavior.cs.meta new file mode 100644 index 00000000..fb82dd9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingCostBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9623400d5068f9d4caf4ce31231f7fe1 +timeCreated: 1611404183 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingCostView.cs b/Client/Assets/Scripts/XMainClient/UI/XWeddingCostView.cs new file mode 100644 index 00000000..d1339dc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingCostView.cs @@ -0,0 +1,117 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWeddingCostView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Wedding/weddingCost"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private WeddingType _weddingType; + + protected override void Init() + { + this.InitProperties(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + } + + protected override void OnHide() + { + } + + private bool OnCloseClicked(IXUIButton iSp) + { + this.SetVisible(false, true); + return true; + } + + private void InitProperties() + { + base.uiBehaviour.Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.Cancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.OkBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOkBtnClicked)); + } + + private bool OnOkBtnClicked(IXUIButton button) + { + XWeddingDocument.Doc.SendMarriageOp(MarriageOpType.MarriageOpType_MarryApply, this._weddingType, 0UL); + this.SetVisible(false, true); + return true; + } + + public void RefreshUI(WeddingType type) + { + this.SetVisible(true, true); + this._weddingType = type; + string text = (type == WeddingType.WeddingType_Normal) ? XStringDefineProxy.GetString("Wedding_Npc_NormalWedding") : XStringDefineProxy.GetString("Wedding_Npc_BetterWedding"); + base.uiBehaviour.TitleLabel.SetText(text); + string text2 = (type == WeddingType.WeddingType_Normal) ? XStringDefineProxy.GetString("weddingNormalWeddingWelfare") : XStringDefineProxy.GetString("weddingBetterWeddingWelfare"); + base.uiBehaviour.SecondTitle.SetText(text2); + string text3 = (type == WeddingType.WeddingType_Normal) ? XStringDefineProxy.GetString("WeddingNormlWelfareTip") : XStringDefineProxy.GetString("WeddingBetterWelfareTip"); + text3 = XSingleton.singleton.ReplaceReturn(text3); + base.uiBehaviour.TipLabel.SetText(text3); + string key = (type == WeddingType.WeddingType_Normal) ? "MarriageCost" : "MarriageSplendidCost"; + SeqList sequenceList = XSingleton.singleton.GetSequenceList(key, true); + int num = sequenceList[0, 0]; + int num2 = sequenceList[0, 1]; + string text4 = XSingleton.singleton.GetString("NeedCost") + XBagDocument.GetItemConf(num).ItemName[0]; + base.uiBehaviour.CostTip.SetText(text4); + base.uiBehaviour.NumLabel.SetText("X" + num2); + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.DrawItem, num, num2, false); + IXUISprite ixuisprite = base.uiBehaviour.DrawItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + public bool RefreshItems(IXUICheckBox go) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingCostView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWeddingCostView.cs.meta new file mode 100644 index 00000000..b56b7d2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingCostView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 971ab3b1b90459f47af72623a3ef566b +timeCreated: 1611404187 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingDramaOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XWeddingDramaOperate.cs new file mode 100644 index 00000000..5f33d5fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingDramaOperate.cs @@ -0,0 +1,291 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWeddingDramaOperate : XDramaOperate + { + private XDramaOperateParam _param; + + private XWeddingDocument doc; + + public override void ShowNpc(XNpc npc) + { + base.ShowNpc(npc); + this.doc = XDocuments.GetSpecificDocument(XWeddingDocument.uuID); + this._param = XDataPool.GetData(); + this._param.Npc = npc; + XWeddingDocument.Doc.SendMarriageRelationInfo(); + } + + public void RefreshOperateStatus() + { + switch (this.doc.GetMyMarriageRelation()) + { + case MarriageStatus.MarriageStatus_Marriaged: + { + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + string @string = XStringDefineProxy.GetString("Wedding_Npc_HoldFeast"); + this._param.AppendButton(@string, new ButtonClickEventHandler(this.ToHoldWeddingFeast), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_BreakMarriage"), new ButtonClickEventHandler(this.ToBreakMarriage), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + break; + } + case MarriageStatus.MarriageStatus_WeddingHoldingNoCar: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_InviteFriends"), new ButtonClickEventHandler(this.ToInviteFriends), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + break; + case MarriageStatus.MarriageStatus_WeddingHoldedNoCar: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_BreakMarriage"), new ButtonClickEventHandler(this.ToBreakMarriage), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + break; + case MarriageStatus.MarriageStatus_WeddingCarNoWedding: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_HoldFeast"), new ButtonClickEventHandler(this.ToHoldWeddingFeast), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_BreakMarriage"), new ButtonClickEventHandler(this.ToBreakMarriage), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + break; + case MarriageStatus.MarriageStatus_WeddingHoldingAndCar: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_InviteFriends"), new ButtonClickEventHandler(this.ToInviteFriends), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + break; + case MarriageStatus.MarriageStatus_WeddingHoldedAndCar: + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_BreakMarriage"), new ButtonClickEventHandler(this.ToBreakMarriage), 0UL); + break; + case MarriageStatus.MarriageStatus_DivorceApply: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_CancelBreak"), new ButtonClickEventHandler(this.ClickToCancel), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + break; + case MarriageStatus.MarriageStatus_Divorced: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + break; + default: + this._param.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Pupil"); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_Abount"), new ButtonClickEventHandler(this.ToKnowMarriage), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_ToMarry"), new ButtonClickEventHandler(this.ToGetMarriage), 0UL); + this._param.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_JoinWedding"), new ButtonClickEventHandler(this.EnterMarriageScene), 0UL); + break; + } + base._FireEvent(this._param); + } + + private bool ClickToCancel(IXUIButton button) + { + XDramaOperateParam data = XDataPool.GetData(); + this._param.Text = XStringDefineProxy.GetString("WeddingSelectToCancel"); + RoleOutLookBrief partnerInfo = this.doc.GetPartnerInfo(); + bool flag = partnerInfo != null && this.doc.DivorceApplyID == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + XDramaOperateList xdramaOperateList = this._param.AppendList(partnerInfo.name, new SpriteClickEventHandler(this.ToCancelApplyDivorce), partnerInfo.roleid); + xdramaOperateList.TargetTime = (float)this.doc.LeftDivorceTime; + } + else + { + this._param.Text = XStringDefineProxy.GetString("ERR_MARRIAGE_ONLY_APPLIER_CANCLEDIVORCE"); + } + base._FireEvent(data); + return true; + } + + private void ToCancelApplyDivorce(IXUISprite uiSprite) + { + string message = XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeddingCancelBreakTip")); + XSingleton.singleton.ShowModalDialog(message, new ButtonClickEventHandler(this.ToSendCancelApplyDivorce)); + } + + private bool ToSendCancelApplyDivorce(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XWeddingDocument.Doc.SendMarriageOp(MarriageOpType.MarriageOpType_DivorceCancel, WeddingType.WeddingType_Normal, 0UL); + return true; + } + + private bool ToBreakMarriage(IXUIButton button) + { + int @int = XSingleton.singleton.GetInt("MarriageFreeDivorceDay"); + bool flag = XWeddingDocument.Doc.CoupleOfflineTime < @int * 60 * 60 * 24; + string message; + if (flag) + { + RoleOutLookBrief partnerInfo = XWeddingDocument.Doc.GetPartnerInfo(); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("MarriageDivorceCost", true); + int itemID = sequenceList[0, 0]; + int num = sequenceList[0, 1]; + string arg = num + XBagDocument.GetItemConf(itemID).ItemName[0]; + message = string.Format(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("Wedding_Npc_ToBreakTip")), arg, (partnerInfo == null) ? "" : partnerInfo.name); + } + else + { + message = XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeddingBreakFreeCostTip")); + } + XSingleton.singleton.ShowModalDialog(message, new ButtonClickEventHandler(this.ToSendBreakMarriage)); + return true; + } + + private bool ToSendBreakMarriage(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XWeddingDocument.Doc.SendMarriageOp(MarriageOpType.MarriageOpType_Divorce, WeddingType.WeddingType_Normal, 0UL); + return true; + } + + private string GetCostString(string global) + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList(global, true); + int itemID = sequenceList[0, 0]; + int num = sequenceList[0, 1]; + return num + "X" + XBagDocument.GetItemConf(itemID).ItemName[0]; + } + + private bool ToGetWeddingCar(IXUIButton button) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("WeddingCarConfirmTip"), new ButtonClickEventHandler(this.ToSendWeddingCar)); + return true; + } + + private bool ToSendWeddingCar(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XWeddingDocument.Doc.SendWeddingCar(); + return true; + } + + private bool ToInviteFriends(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool EnterMarriageScene(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool ToHoldBetterWedding(IXUIButton button) + { + bool flag = this.IsAvailableTeam(); + if (flag) + { + DlgBase.singleton.RefreshUI(WeddingType.WeddingType_Luxury); + } + return true; + } + + private bool ToSendBetterWedding(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XWeddingDocument.Doc.SendMarriageOp(MarriageOpType.MarriageOpType_MarryApply, WeddingType.WeddingType_Luxury, 0UL); + return true; + } + + private bool ToHoldNormalWedding(IXUIButton button) + { + bool flag = this.IsAvailableTeam(); + if (flag) + { + DlgBase.singleton.RefreshUI(WeddingType.WeddingType_Normal); + } + return true; + } + + private bool IsAvailableTeam() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + List members = specificDocument.MyTeam.members; + bool flag = members.Count == 2 && XSingleton.singleton.IsOppositeSex((int)members[0].profession, (int)members[1].profession); + if (flag) + { + return true; + } + } + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_WEDDING_NEED_TWO_MARRIAGE"), "fece00"); + return false; + } + + private bool ToSendNormalWedding(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XWeddingDocument.Doc.SendMarriageOp(MarriageOpType.MarriageOpType_MarryApply, WeddingType.WeddingType_Normal, 0UL); + return true; + } + + private bool ToHoldWeddingFeast(IXUIButton button) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("WeddingFeastOnlyOnce"), new ButtonClickEventHandler(this.ToSendReqWedding)); + return true; + } + + private bool ToSendReqWedding(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XWeddingDocument.Doc.ReqHoldWedding(); + return true; + } + + private bool ToGetMarriage(IXUIButton button) + { + XDramaOperateParam data = XDataPool.GetData(); + data.Text = XStringDefineProxy.GetString("MentorshipNpcDialog_0_Master"); + data.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_NormalWedding"), new ButtonClickEventHandler(this.ToHoldNormalWedding), 0UL); + data.AppendButton(XStringDefineProxy.GetString("Wedding_Npc_BetterWedding"), new ButtonClickEventHandler(this.ToHoldBetterWedding), 0UL); + base._FireEvent(data); + return true; + } + + private bool ToKnowMarriage(IXUIButton button) + { + string text = XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeddingRule")); + text = text.Replace("{s}", " "); + XSingleton.singleton.ShowModalDialog(text, XStringDefineProxy.GetString("COMMON_OK"), new ButtonClickEventHandler(this.ToCloseMarriageIntro), 50); + return true; + } + + private bool ToCloseMarriageIntro(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public void RefreshMarriageOp(MarriageRelationOpArg oarg, MarriageRelationOpRes oRes) + { + XDramaOperateParam data = XDataPool.GetData(); + bool flag = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag) + { + switch (oarg.opType) + { + case MarriageOpType.MarriageOpType_MarryApply: + data.Text = XSingleton.singleton.GetString("WeddingApplySucceed"); + break; + case MarriageOpType.MarriageOpType_Divorce: + data.Text = XSingleton.singleton.GetString("WeddingDivorceSendSuccess"); + break; + case MarriageOpType.MarriageOpType_DivorceCancel: + data.Text = XStringDefineProxy.GetString("WeddingDivorceCancelSuccess"); + break; + } + } + else + { + data.Text = XStringDefineProxy.GetString(oRes.error); + } + base._FireEvent(data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingDramaOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWeddingDramaOperate.cs.meta new file mode 100644 index 00000000..060426c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingDramaOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d71cdef535c968342a50c7452cb5f4eb +timeCreated: 1611404634 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteBehavior.cs b/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteBehavior.cs new file mode 100644 index 00000000..f8faabb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteBehavior.cs @@ -0,0 +1,36 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XWeddingInviteBehavior : DlgBehaviourBase + { + public IXUIScrollView ScrollView; + + public IXUIWrapContent WrapContent; + + public Transform Tabs; + + public IXUIButton Close; + + public IXUICheckBox AllowStranger; + + public IXUILabel InviteNum; + + public GameObject ListRedPoint; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/BtnAddFriendMiddle"); + this.ScrollView = (base.transform.Find("FriendList").GetComponent("XUIScrollView") as IXUIScrollView); + this.WrapContent = (base.transform.Find("FriendList/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.Tabs = base.transform.Find("Tabs"); + this.Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.AllowStranger = (base.transform.Find("pp/Normal").GetComponent("XUICheckBox") as IXUICheckBox); + this.InviteNum = (base.transform.Find("InviteNum").GetComponent("XUILabel") as IXUILabel); + this.ListRedPoint = base.transform.Find("Tabs/item3/Bg/redpoint").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteBehavior.cs.meta new file mode 100644 index 00000000..663e0487 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 506d422b80ab303448ff1646bb433b0f +timeCreated: 1611403703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteView.cs b/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteView.cs new file mode 100644 index 00000000..67ef8323 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteView.cs @@ -0,0 +1,280 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWeddingInviteView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Wedding/WeddingInvite"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected List _tabs = new List(); + + protected int _curTab; + + protected List _curList = new List(); + + protected override void Init() + { + this.InitTabs(); + this.InitProperties(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._curList.Clear(); + this._curTab = 0; + XWeddingDocument.Doc.GetWeddingInviteInfo(); + } + + protected override void OnHide() + { + bool flag = base.uiBehaviour.AllowStranger.bChecked != XWeddingDocument.Doc.PermitStranger; + if (flag) + { + bool bChecked = base.uiBehaviour.AllowStranger.bChecked; + if (bChecked) + { + XWeddingDocument.Doc.WeddingInviteOperate(WeddingInviteOperType.Wedding_PermitStranger, 0UL, 0UL); + } + else + { + XWeddingDocument.Doc.WeddingInviteOperate(WeddingInviteOperType.Wedding_ForbidStranger, 0UL, 0UL); + } + } + } + + private bool OnCloseClicked(IXUIButton iSp) + { + this.SetVisible(false, true); + return true; + } + + private void ResetSendFlag() + { + foreach (List list in XActivityInviteDocument.Doc.MemberInfos.Values) + { + foreach (InviteMemberInfo inviteMemberInfo in list) + { + inviteMemberInfo.bSent = false; + } + } + } + + private bool OnAddFriendClicked(IXUIButton btn) + { + DlgBase.singleton.RandomFriend(); + this.SetVisible(false, true); + return true; + } + + private void InitTabs() + { + this._tabs.Clear(); + int num = 0; + foreach (object obj in base.uiBehaviour.Tabs) + { + Transform transform = (Transform)obj; + IXUICheckBox ixuicheckBox = transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)num); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.RefreshItems)); + num++; + this._tabs.Add(ixuicheckBox); + } + } + + private void InitProperties() + { + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.WrapContentItemInit)); + base.uiBehaviour.Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.AllowStranger.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckAllowStranger)); + } + + private bool OnCheckAllowStranger(IXUICheckBox iXUICheckBox) + { + return true; + } + + public void RefreshUI() + { + base.uiBehaviour.ListRedPoint.SetActive(XWeddingDocument.Doc.GetInviteRoleInfoList(WeddingInviteTab.WeddingApplyList).Count > 0); + base.uiBehaviour.AllowStranger.bChecked = XWeddingDocument.Doc.PermitStranger; + this._tabs[this._curTab].bChecked = true; + List inviteRoleInfoList = XWeddingDocument.Doc.GetInviteRoleInfoList(WeddingInviteTab.WeddingInvited); + int num = (XWeddingDocument.Doc.GetMyWeddingType() == WeddingType.WeddingType_Normal) ? XSingleton.singleton.GetInt("NormalWeddingInviteNum") : XSingleton.singleton.GetInt("LuxuryWeddingInviteNum"); + base.uiBehaviour.InviteNum.SetText(inviteRoleInfoList.Count + "/" + num); + this.RefreshContent(); + } + + public bool RefreshItems(IXUICheckBox go) + { + bool bChecked = go.bChecked; + if (bChecked) + { + this._curTab = (int)go.ID; + this.RefreshContent(); + } + return true; + } + + private void WrapContentItemInit(Transform t, int index) + { + } + + private void RefreshContent() + { + this._curList = XWeddingDocument.Doc.GetInviteRoleInfoList((WeddingInviteTab)this._curTab); + base.uiBehaviour.WrapContent.SetContentCount(this._curList.Count, false); + base.uiBehaviour.ScrollView.ResetPosition(); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < this._curList.Count; + if (flag) + { + WeddingRoleInfo weddingRoleInfo = this._curList[index]; + IXUISprite ixuisprite = t.Find("head").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = t.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = t.Find("name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("PPT").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("guild").GetComponent("XUILabel") as IXUILabel; + Transform transform = t.Find("friendFlag"); + ixuilabel.SetText(weddingRoleInfo.name); + ixuisprite.spriteName = XSingleton.singleton.GetProfHeadIcon2((int)weddingRoleInfo.profession); + ixuisprite2.spriteName = XSingleton.singleton.GetProfIcon((int)weddingRoleInfo.profession); + ixuilabel3.SetText(weddingRoleInfo.ppt.ToString()); + ixuilabel4.SetText(weddingRoleInfo.guildName); + ixuilabel2.SetText(weddingRoleInfo.level.ToString()); + IXUIButton ixuibutton = t.Find("Invite").GetComponent("XUIButton") as IXUIButton; + ixuibutton.SetEnable(true, false); + ixuibutton.ID = weddingRoleInfo.roleID; + Transform transform2 = ixuibutton.gameObject.transform.Find("InviteText"); + IXUILabel ixuilabel5 = ixuibutton.gameObject.transform.Find("ComedIn").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton2 = t.Find("Agree").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton3 = t.Find("Refuse").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = weddingRoleInfo.roleID; + ixuibutton3.ID = weddingRoleInfo.roleID; + transform.gameObject.SetActive(this._curTab == 0); + ixuilabel4.gameObject.SetActive(this._curTab == 1); + ixuibutton2.gameObject.SetActive(false); + ixuibutton3.gameObject.SetActive(false); + switch (this._curTab) + { + case 0: + case 1: + ixuibutton.gameObject.SetActive(true); + transform2.gameObject.SetActive(true); + ixuilabel5.gameObject.SetActive(false); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ToInviteToCome)); + break; + case 2: + ixuibutton.gameObject.SetActive(true); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickToChat)); + ixuibutton.SetEnable(!weddingRoleInfo.entered, false); + transform2.gameObject.SetActive(false); + ixuilabel5.gameObject.SetActive(true); + ixuilabel5.SetText(weddingRoleInfo.entered ? XSingleton.singleton.GetString("WeddingAreadyCome") : XSingleton.singleton.GetString("WeddingInvitedNotCome")); + break; + case 3: + ixuibutton2.gameObject.SetActive(true); + ixuibutton3.gameObject.SetActive(true); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickToAgree)); + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickToRefuse)); + ixuibutton.gameObject.SetActive(false); + break; + } + } + } + + private bool ClickToChat(IXUIButton button) + { + WeddingRoleInfo weddingRoleInfo = null; + for (int i = 0; i < this._curList.Count; i++) + { + bool flag = this._curList[i].roleID == button.ID; + if (flag) + { + weddingRoleInfo = this._curList[i]; + break; + } + } + bool flag2 = weddingRoleInfo != null; + if (flag2) + { + DlgBase.singleton.SetPlayerInfo(weddingRoleInfo.roleID, weddingRoleInfo.name, new List(), weddingRoleInfo.ppt, weddingRoleInfo.profession); + DlgBase.singleton.PrivateChat(null); + } + return true; + } + + private bool ClickToRefuse(IXUIButton button) + { + ulong id = button.ID; + XWeddingDocument.Doc.WeddingInviteOperate(WeddingInviteOperType.Wedding_DisagreeApply, id, 0UL); + return true; + } + + private bool ClickToAgree(IXUIButton button) + { + ulong id = button.ID; + XWeddingDocument.Doc.WeddingInviteOperate(WeddingInviteOperType.Wedding_AgreeApply, id, 0UL); + return true; + } + + private bool ToInviteToCome(IXUIButton button) + { + ulong id = button.ID; + XWeddingDocument.Doc.WeddingInviteOperate(WeddingInviteOperType.Wedding_Invite, id, XWeddingDocument.Doc.MyWeddingID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteView.cs.meta new file mode 100644 index 00000000..0f707235 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingInviteView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01a7e951980badc4f8e2fa38d8f18ce9 +timeCreated: 1611402954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterBoyDramaOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterBoyDramaOperate.cs new file mode 100644 index 00000000..317c7d48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterBoyDramaOperate.cs @@ -0,0 +1,47 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWeddingLitterBoyDramaOperate : XDramaOperate + { + private XDramaOperateParam _param; + + public override void ShowNpc(XNpc npc) + { + base.ShowNpc(npc); + this._param = XDataPool.GetData(); + this._param.Npc = npc; + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("WeddingFireworksCost", XGlobalConfig.SequenceSeparator); + uint num = uint.Parse(andSeparateValue[1]) * XWeddingDocument.Doc.AllAttendPlayerCount; + string text = ""; + ItemList.RowData itemConf = XBagDocument.GetItemConf(int.Parse(andSeparateValue[0])); + bool flag = itemConf != null; + if (flag) + { + text = XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u); + } + this._param.Text = string.Format(XStringDefineProxy.GetString("WeddingFireworksTip", new object[] + { + num, + text + }), new object[0]); + this._param.AppendButton(XStringDefineProxy.GetString(XStringDefine.COMMON_OK), new ButtonClickEventHandler(this.ToDoSomething), 0UL); + base._FireEvent(this._param); + } + + private bool ToDoSomething(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + XWeddingDocument.Doc.WeddingSceneOperator(WeddingOperType.WeddingOper_Fireworks); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterBoyDramaOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterBoyDramaOperate.cs.meta new file mode 100644 index 00000000..e871347f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterBoyDramaOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff0da60d27e286f478791055bbac1437 +timeCreated: 1611404945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterGirlDramaOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterGirlDramaOperate.cs new file mode 100644 index 00000000..433eef7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterGirlDramaOperate.cs @@ -0,0 +1,47 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWeddingLitterGirlDramaOperate : XDramaOperate + { + private XDramaOperateParam _param; + + public override void ShowNpc(XNpc npc) + { + base.ShowNpc(npc); + this._param = XDataPool.GetData(); + this._param.Npc = npc; + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("WeddingFlowerCost", XGlobalConfig.SequenceSeparator); + uint num = uint.Parse(andSeparateValue[1]) * XWeddingDocument.Doc.AllAttendPlayerCount; + string text = ""; + ItemList.RowData itemConf = XBagDocument.GetItemConf(int.Parse(andSeparateValue[0])); + bool flag = itemConf != null; + if (flag) + { + text = XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u); + } + this._param.Text = string.Format(XStringDefineProxy.GetString("WeddingFlowerTip", new object[] + { + num, + text + }), new object[0]); + this._param.AppendButton(XStringDefineProxy.GetString(XStringDefine.COMMON_OK), new ButtonClickEventHandler(this.ToDoSomething), 0UL); + base._FireEvent(this._param); + } + + private bool ToDoSomething(IXUIButton button) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + XWeddingDocument.Doc.WeddingSceneOperator(WeddingOperType.WeddingOper_Flower); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterGirlDramaOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterGirlDramaOperate.cs.meta new file mode 100644 index 00000000..ded6db62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWeddingLitterGirlDramaOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77d31b01b03b2e043b0aa689990bf3b3 +timeCreated: 1611403956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareDiamondHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareDiamondHandler.cs new file mode 100644 index 00000000..5fd8f5d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareDiamondHandler.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelfareDiamondHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/DiamondFrame"; + } + } + + private IXUILabel m_Tip; + + private GameObject m_WeeklyCard; + + private GameObject m_MonthlyCard; + + private IXUILabel m_RemainTime; + + private IXUILabel m_RemainTimeName; + + private int currLeftTime; + + private uint _CDToken; + + private const uint WEEKLY_CARD_TYPE = 1u; + + private const uint MONTHLY_CARD_TYPE = 2u; + + private List cardType = new List(); + + private List payInfo; + + private Dictionary cardState = new Dictionary(); + + protected override void Init() + { + base.Init(); + this.m_RemainTimeName = (base.PanelObject.transform.Find("LeftTimeName").GetComponent("XUILabel") as IXUILabel); + this.m_RemainTimeName.SetText(XSingleton.singleton.GetString("PAY_CARD_LEFT_TIME_TITLE")); + this.m_RemainTime = (base.PanelObject.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_Tip = (base.PanelObject.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.m_Tip.SetText(XSingleton.singleton.GetString("PAY_CARD_TIP")); + this.m_WeeklyCard = base.PanelObject.transform.Find("WeeklyCard/Tpl").gameObject; + this.m_MonthlyCard = base.PanelObject.transform.Find("MonthlyCard/Tpl").gameObject; + this.cardType.Clear(); + this.cardType.Add(1u); + this.cardType.Add(2u); + } + + protected override void OnHide() + { + base.OnHide(); + IXUITexture ixuitexture = this.m_WeeklyCard.transform.Find("Icon").GetComponent("XUITexture") as IXUITexture; + bool flag = ixuitexture != null; + if (flag) + { + ixuitexture.SetTexturePath(""); + } + ixuitexture = (this.m_MonthlyCard.transform.Find("Icon").GetComponent("XUITexture") as IXUITexture); + bool flag2 = ixuitexture != null; + if (flag2) + { + ixuitexture.SetTexturePath(""); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = this.m_WeeklyCard.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = 1UL; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClicked)); + IXUIButton ixuibutton2 = this.m_MonthlyCard.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = 2UL; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClicked)); + } + + private bool OnBuyBtnClicked(IXUIButton btn) + { + uint num = (uint)btn.ID; + int num2 = this.cardState[num]; + bool flag = num2 == -1; + if (flag) + { + PayCardTable.RowData payCardConfig = XWelfareDocument.GetPayCardConfig(num); + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + bool flag2 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.Android; + if (flag2) + { + specificDocument.SDKSubscribe(payCardConfig.Price, 1, payCardConfig.ServiceCode, payCardConfig.Name, payCardConfig.ParamID, PayParamType.PAY_PARAM_CARD); + } + else + { + bool flag3 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.IOS; + if (flag3) + { + int buyNum = (num == 1u) ? 7 : 30; + specificDocument.SDKSubscribe(payCardConfig.Price, buyNum, payCardConfig.ServiceCode, payCardConfig.Name, payCardConfig.ParamID, PayParamType.PAY_PARAM_CARD); + } + } + } + else + { + XWelfareDocument specificDocument2 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument2.GetCardDailyDiamond(num); + } + return true; + } + + public override void RefreshData() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.payInfo = specificDocument.PayCardInfo; + uint payCardRemainTime = specificDocument.PayCardRemainTime; + this.cardState.Clear(); + bool flag = this.payInfo == null; + if (!flag) + { + this.RefreshRemainTime(this.payInfo, payCardRemainTime); + for (int i = 0; i < this.cardType.Count; i++) + { + bool flag2 = false; + int num = 0; + for (int j = 0; j < this.payInfo.Count; j++) + { + bool flag3 = (this.cardType[i] == this.payInfo[j].type && this.payInfo[j].remainedCount > 0u) || (this.cardType[i] == this.payInfo[j].type && this.payInfo[j].isGet); + if (flag3) + { + flag2 = true; + num = j; + break; + } + } + bool flag4 = this.cardType[i] == 1u; + if (flag4) + { + this.RefreshCard(this.m_WeeklyCard, this.cardType[i], flag2 ? num : -1); + } + else + { + bool flag5 = this.cardType[i] == 2u; + if (flag5) + { + this.RefreshCard(this.m_MonthlyCard, this.cardType[i], flag2 ? num : -1); + } + } + } + } + } + + private void RefreshRemainTime(List payInfo, uint remainTime) + { + bool flag = false; + bool flag2 = false; + bool flag3 = false; + for (int i = 0; i < payInfo.Count; i++) + { + bool flag4 = !payInfo[i].isGet && payInfo[i].remainedCount > 0u; + if (flag4) + { + flag2 = true; + } + bool flag5 = payInfo[i].isGet && payInfo[i].remainedCount > 0u; + if (flag5) + { + flag3 = true; + } + } + bool flag6 = !flag2 && flag3; + if (flag6) + { + flag = true; + } + this.m_RemainTime.gameObject.SetActive(flag); + this.m_RemainTimeName.gameObject.SetActive(flag); + bool flag7 = flag; + if (flag7) + { + this.currLeftTime = (int)remainTime; + this.m_RemainTime.SetText(XSingleton.singleton.TimeFormatString((int)remainTime, 3, 3, 4, false, true)); + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + } + + private void LeftTimeUpdate(object o) + { + this.currLeftTime--; + bool flag = this.currLeftTime < 0; + if (flag) + { + this.m_RemainTime.gameObject.SetActive(false); + this.m_RemainTimeName.gameObject.SetActive(false); + } + else + { + this.m_RemainTime.SetText(XSingleton.singleton.TimeFormatString(this.currLeftTime, 3, 3, 4, false, true)); + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + } + + private void RefreshCard(GameObject card, uint cardType, int index) + { + bool flag = this.payInfo == null; + if (!flag) + { + PayCard payCard = (index == -1) ? null : this.payInfo[index]; + this.cardState.Add(cardType, index); + IXUILabel ixuilabel = card.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = card.transform.Find("tip1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = card.transform.Find("tip2").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = card.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel4 = card.transform.Find("Btn/T").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = card.transform.Find("HasGot").GetComponent("XUISprite") as IXUISprite; + IXUITexture ixuitexture = card.transform.Find("Icon").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(XWelfareDocument.GetPayCardConfig(cardType).Icon); + IXUISprite ixuisprite2 = card.transform.Find("Btn/redpoint").GetComponent("XUISprite") as IXUISprite; + bool flag2 = payCard != null; + if (flag2) + { + ixuilabel2.gameObject.SetActive(false); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("PAY_CARD_LEFT_TIMES"), payCard.remainedCount)); + int dayAward = XWelfareDocument.GetPayCardConfig(payCard.type).DayAward; + ixuilabel3.SetText(payCard.isGet ? string.Format(XSingleton.singleton.GetString("PAY_CARD_HAS_GOT"), dayAward) : string.Format(XSingleton.singleton.GetString("PAY_CARD_CAN_GET"), dayAward)); + ixuilabel4.SetText(XSingleton.singleton.GetString("PAY_GOT_TEX")); + ixuibutton.SetVisible(!payCard.isGet); + ixuisprite2.gameObject.SetActive(!payCard.isGet); + ixuisprite.gameObject.SetActive(payCard.isGet); + } + else + { + ixuilabel2.gameObject.SetActive(true); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("PAY_CARD_TITLE"), XWelfareDocument.GetPayCardConfig(cardType).Name)); + ixuilabel2.SetText(string.Format(XSingleton.singleton.GetString("PAY_CARD_TIP_1"), XWelfareDocument.GetPayCardConfig(cardType).Diamond)); + int num = (cardType == 1u) ? 7 : 30; + ixuilabel3.SetText(string.Format(XSingleton.singleton.GetString("PAY_CARD_TIP_2"), num, XWelfareDocument.GetPayCardConfig(cardType).DayAward)); + float num2 = (float)XWelfareDocument.GetPayCardConfig(cardType).Price / 100f; + ixuilabel4.SetText(string.Format(XSingleton.singleton.GetString("PAY_BUY_TEX"), num2)); + ixuibutton.SetVisible(true); + ixuisprite2.gameObject.SetActive(false); + ixuisprite.gameObject.SetActive(false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareDiamondHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareDiamondHandler.cs.meta new file mode 100644 index 00000000..4be1655f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareDiamondHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc5ca9dd42a6410419bd1ba66c35666c +timeCreated: 1611404678 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareGiftBagHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareGiftBagHandler.cs new file mode 100644 index 00000000..105bacb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareGiftBagHandler.cs @@ -0,0 +1,342 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelfareGiftBagHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/GiftBagFrame"; + } + } + + private XUIPool m_GiftBagPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIList m_GiftList; + + private IXUILabel m_LeftTime; + + private IXUILabel m_LeftTimeName; + + private int currLeftTime; + + private uint _CDToken; + + private IXUISprite m_GiftBoxClosed; + + private IXUISprite m_GiftBoxOpened; + + private GameObject m_DefaultBg; + + private GameObject m_BackFlowBg; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("ListGiftBag/Grid/Tpl/List/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + Transform transform2 = base.PanelObject.transform.Find("ListGiftBag/Grid/Tpl"); + this.m_GiftBagPool.SetupPool(transform2.parent.parent.gameObject, transform2.gameObject, 3u, false); + this.m_GiftList = (base.PanelObject.transform.Find("ListGiftBag/Grid").GetComponent("XUIList") as IXUIList); + this.m_LeftTime = (base.PanelObject.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTimeName = (base.PanelObject.transform.Find("LeftTimeName").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTimeName.SetText(XSingleton.singleton.GetString("PAY_GIFTBAG_LEFT_TIME_TITLE")); + this.m_GiftBoxClosed = (base.PanelObject.transform.Find("DailyGift1").GetComponent("XUISprite") as IXUISprite); + this.m_GiftBoxOpened = (base.PanelObject.transform.Find("DailyGift2").GetComponent("XUISprite") as IXUISprite); + this.m_DefaultBg = base.PanelObject.transform.Find("Bg0").gameObject; + this.m_BackFlowBg = base.PanelObject.transform.Find("Bg1").gameObject; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_GiftBoxClosed.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClosedBoxClicked)); + this.m_GiftBoxOpened.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenedBoxClicked)); + } + + private void OnClosedBoxClicked(IXUISprite sp) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.GetLittleGiftBag(); + } + + private void OnOpenedBoxClicked(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_GIFTBAG_GIFT_HAVE_GOT"), "fece00"); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_Backflow); + this.m_DefaultBg.SetActive(!flag); + this.m_BackFlowBg.SetActive(flag); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._CDToken); + } + + public override void RefreshData() + { + XSingleton.singleton.AddLog("Pay GiftBagHandler [RefreshData]", null, null, null, null, null, XDebugColor.XDebug_None); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + PayAileen payGiftBagInfo = specificDocument.PayGiftBagInfo; + bool flag = payGiftBagInfo == null; + if (!flag) + { + this.currLeftTime = (int)payGiftBagInfo.remainedTime; + this.m_LeftTime.gameObject.SetActive(this.currLeftTime > 0); + this.m_LeftTimeName.gameObject.SetActive(this.currLeftTime > 0); + bool flag2 = this.currLeftTime > 0; + if (flag2) + { + this.m_LeftTime.SetText(XSingleton.singleton.TimeFormatString((int)payGiftBagInfo.remainedTime, 3, 3, 4, false, true)); + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + List aileenInfo = payGiftBagInfo.AileenInfo; + aileenInfo.Sort(new Comparison(XWelfareGiftBagHandler.GiftInfoCompare)); + this.m_GiftBagPool.FakeReturnAll(); + this.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < aileenInfo.Count; i++) + { + GameObject gameObject = this.m_GiftBagPool.FetchGameObject(false); + gameObject.transform.parent = this.m_GiftList.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + this.SetGiftBagInfo(gameObject, aileenInfo[i]); + } + this.m_GiftList.Refresh(); + this.m_GiftBagPool.ActualReturnAll(false); + this.m_ItemPool.ActualReturnAll(false); + this.m_GiftBoxClosed.SetVisible(specificDocument.RewardLittleGiftBag == 0u); + this.m_GiftBoxOpened.SetVisible(specificDocument.RewardLittleGiftBag > 0u); + } + } + + private static int GiftInfoCompare(PayAileenInfo info1, PayAileenInfo info2) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + PayAileenTable.RowData giftBagTableData = XWelfareDocument.GetGiftBagTableData(info1.paramID, specificDocument.PayGiftBagInfo.weekDays); + PayAileenTable.RowData giftBagTableData2 = XWelfareDocument.GetGiftBagTableData(info2.paramID, specificDocument.PayGiftBagInfo.weekDays); + bool flag = giftBagTableData != null && giftBagTableData2 != null; + int result; + if (flag) + { + result = giftBagTableData.Price - giftBagTableData2.Price; + } + else + { + result = 0; + } + return result; + } + + private void LeftTimeUpdate(object o) + { + this.currLeftTime--; + bool flag = this.currLeftTime < 0; + if (flag) + { + this.m_LeftTime.gameObject.SetActive(false); + this.m_LeftTimeName.gameObject.SetActive(false); + } + else + { + this.m_LeftTime.SetText(XSingleton.singleton.TimeFormatString(this.currLeftTime, 3, 3, 4, false, true)); + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + } + + private void SetGiftBagInfo(GameObject item, PayAileenInfo info) + { + XSingleton.singleton.AddLog("Pay GiftBagHandler [SetGiftBagInfo]", null, null, null, null, null, XDebugColor.XDebug_None); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + PayAileenTable.RowData giftBagTableData = XWelfareDocument.GetGiftBagTableData(info.paramID, specificDocument.PayGiftBagInfo.weekDays); + bool flag = giftBagTableData == null; + if (!flag) + { + XSingleton.singleton.AddLog("Pay GiftBagHandler [SetGiftBagInfo] 1", null, null, null, null, null, XDebugColor.XDebug_None); + IXUISprite ixuisprite = item.transform.Find("PayMember").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetVisible(giftBagTableData.MemberLimit > 0); + ixuisprite.SetSprite(specificDocument.GetMemberPrivilegeIcon((MemberPrivilege)giftBagTableData.MemberLimit)); + float num = (float)giftBagTableData.Price / 100f; + IXUILabel ixuilabel = item.transform.Find("Tip").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(giftBagTableData.Desc); + IXUIList ixuilist = item.transform.Find("List").GetComponent("XUIList") as IXUIList; + XLevelSealDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint sealType = specificDocument2.GetSealType(); + int giftBagID = this.GetGiftBagID(giftBagTableData, sealType); + ChestList.RowData chestConf = XBagDocument.GetChestConf(giftBagID); + bool flag2 = chestConf != null; + if (flag2) + { + uint[] dropID = chestConf.DropID; + bool flag3 = dropID != null; + if (flag3) + { + foreach (uint field in dropID) + { + int num2; + int num3; + CVSReader.GetRowDataListByField(XBagDocument.DropTable.Table, (int)field, out num2, out num3, XBagDocument.comp); + bool flag4 = num2 < 0; + if (!flag4) + { + for (int j = num2; j <= num3; j++) + { + DropList.RowData rowData = XBagDocument.DropTable.Table[j]; + GameObject gameObject = this.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = ixuilist.gameObject.transform; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, rowData.ItemID, rowData.ItemCount, true); + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)rowData.ItemID); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + } + } + } + } + ixuilist.Refresh(); + IXUILabel ixuilabel2 = item.transform.Find("Btn/T").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = item.transform.Find("Owned").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = item.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)XWelfareDocument.GetGiftBagTableIndex(info.paramID)); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGiftBagBtnClicked)); + XSingleton.singleton.AddLog("Pay GiftBagHandler [SetGiftBagInfo] isbuy = " + info.isBuy.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + bool isBuy = info.isBuy; + if (isBuy) + { + ixuibutton.SetVisible(false); + ixuilabel3.SetVisible(true); + ixuilabel3.SetText(XSingleton.singleton.GetString("PAY_HAS_GOT")); + } + else + { + ixuibutton.SetVisible(true); + ixuilabel3.SetVisible(false); + ixuilabel2.SetText(string.Format(XSingleton.singleton.GetString("PAY_BUY_TEX"), num)); + ixuibutton.SetEnable(true, false); + } + } + } + + private bool OnGiftBagIconClicked(IXUIButton btn) + { + int itemID = (int)btn.ID; + XSingleton.singleton.ShowTooltipDialog(itemID, null); + return true; + } + + private bool OnGiftBagBtnClicked(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num == -1 || num >= XWelfareDocument.AileenTable.Table.Length; + bool result; + if (flag) + { + result = false; + } + else + { + PayAileenTable.RowData rowData = XWelfareDocument.AileenTable.Table[num]; + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag2 = (ulong)specificDocument.VipLevel < (ulong)((long)rowData.VipLimit); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("PAY_GIFT_BAG_VIP_LIMIT"), rowData.VipLimit), "fece00"); + result = false; + } + else + { + bool flag3 = rowData.MemberLimit > 0; + if (flag3) + { + bool flag4 = !specificDocument.IsOwnMemberPrivilege((MemberPrivilege)rowData.MemberLimit); + if (flag4) + { + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig((MemberPrivilege)rowData.MemberLimit); + bool flag5 = memberPrivilegeConfig == null; + if (flag5) + { + return false; + } + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("PAY_GIFTBAG_PAYMEMBER_LIMIT", new object[] + { + memberPrivilegeConfig.Name + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.GoToKingdomPrivilege)); + return false; + } + } + XRechargeDocument specificDocument2 = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + specificDocument2.SDKSubscribe(rowData.Price, 1, rowData.ServiceCode, rowData.Name, rowData.ParamID, PayParamType.PAY_PARAM_AILEEN); + result = true; + } + } + return result; + } + + private bool GoToKingdomPrivilege(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = !specificDocument.IsSystemAvailable(XSysDefine.XSys_Welfare_KingdomPrivilege); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_KINGDOM_NOT_OPEN"), "fece00"); + result = true; + } + else + { + DlgBase.singleton.SelectTab(XSysDefine.XSys_Welfare_KingdomPrivilege); + result = true; + } + return result; + } + + private int GetGiftBagID(PayAileenTable.RowData info, uint sealType) + { + int[] levelSealGiftID = info.LevelSealGiftID; + int num = (int)(sealType - 1u); + bool flag = levelSealGiftID != null && num < levelSealGiftID.Length && num >= 0; + int result; + if (flag) + { + result = levelSealGiftID[num]; + } + else + { + result = 0; + } + return result; + } + + public void ResetGiftBagBtnCD(int interval) + { + bool flag = !base.IsVisible(); + if (!flag) + { + IXUIButton ixuibutton = base.PanelObject.transform.Find("ListGiftBag/Grid/item0/Btn").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = base.PanelObject.transform.Find("ListGiftBag/Grid/item1/Btn").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton3 = base.PanelObject.transform.Find("ListGiftBag/Grid/item2/Btn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.SetUnavailableCD(interval); + ixuibutton2.SetUnavailableCD(interval); + ixuibutton3.SetUnavailableCD(interval); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareGiftBagHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareGiftBagHandler.cs.meta new file mode 100644 index 00000000..0924380f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareGiftBagHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef09890599fdd8447af1feaa413075ce +timeCreated: 1611404802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareGrowthFundHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareGrowthFundHandler.cs new file mode 100644 index 00000000..2e22245e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareGrowthFundHandler.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelfareGrowthFundHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/GrowthFund"; + } + } + + private IXUIScrollView m_ScrollView; + + private IXUIList m_ItemGrid; + + private List m_ItemList; + + private Transform m_ItemTemp; + + private IXUISprite m_hasBuySprite; + + private IXUIButton m_rechargeBtn; + + private XWelfareDocument _Doc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.m_ScrollView = (base.FindInChild("XUIScrollView", "ScrollView") as IXUIScrollView); + this.m_ItemGrid = (base.FindInChild("XUIList", "ScrollView/Grid") as IXUIList); + this.m_ItemTemp = base.FindChild("ScrollView/Grid/ItemTpl"); + this.m_ItemTemp.gameObject.SetActive(false); + this.m_rechargeBtn = (base.FindInChild("XUIButton", "ScrollView/Grid/Recharge/Recharge") as IXUIButton); + this.m_hasBuySprite = (base.FindInChild("XUISprite", "ScrollView/Grid/Recharge/HasBuy") as IXUISprite); + this.m_rechargeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRechargeHandler)); + this.InitWelfreGrowthList(); + } + + private bool OnClickRechargeHandler(IXUIButton btn) + { + RechargeTable.RowData rowData; + bool flag = this._Doc.TryGetGrowthFundConf(XSysDefine.XSys_Welfare_StarFund, out rowData); + if (flag) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + bool flag2 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.Android; + if (flag2) + { + specificDocument.SDKSubscribe(rowData.Price, 1, rowData.ServiceCode, rowData.Name, rowData.ParamID, PayParamType.PAY_PARAM_GROWTH_FUND); + } + else + { + bool flag3 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.IOS; + if (flag3) + { + int @int = XSingleton.singleton.GetInt("WelfareGrowthFundDays"); + specificDocument.SDKSubscribe(rowData.Price, @int, rowData.ServiceCode, rowData.Name, rowData.ParamID, PayParamType.PAY_PARAM_GROWTH_FUND); + } + } + } + return true; + } + + private void InitWelfreGrowthList() + { + this.m_ItemList = new List(); + RechargeTable.RowData rowData; + bool flag = this._Doc.TryGetGrowthFundConf(XSysDefine.XSys_Welfare_StarFund, out rowData); + if (flag) + { + WelfareGrowthFundItem welfareGrowthFundItem = this.CreateGrowthFundItem(); + welfareGrowthFundItem.Set(0, 0, rowData.Diamond); + int i = 0; + int count = rowData.RoleLevels.Count; + while (i < count) + { + welfareGrowthFundItem = this.CreateGrowthFundItem(); + welfareGrowthFundItem.Set(1, rowData.RoleLevels[i, 0], rowData.RoleLevels[i, 1]); + i++; + } + i = 0; + count = rowData.LoginDays.Count; + while (i < count) + { + welfareGrowthFundItem = this.CreateGrowthFundItem(); + welfareGrowthFundItem.Set(2, rowData.LoginDays[i, 0], rowData.LoginDays[i, 1]); + i++; + } + } + } + + private WelfareGrowthFundItem CreateGrowthFundItem() + { + GameObject gameObject = XCommon.Instantiate(this.m_ItemTemp.gameObject); + gameObject.transform.parent = this.m_ItemGrid.gameObject.transform; + gameObject.transform.localScale = Vector2.one; + gameObject.name = this.m_ItemList.Count.ToString(); + WelfareGrowthFundItem welfareGrowthFundItem = new WelfareGrowthFundItem(); + gameObject.SetActive(true); + welfareGrowthFundItem.Init(gameObject.transform); + this.m_ItemList.Add(welfareGrowthFundItem); + return welfareGrowthFundItem; + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshRechargeHandler(); + bool flag = this.m_ItemList == null; + if (!flag) + { + int i = 0; + int count = this.m_ItemList.Count; + while (i < count) + { + this.m_ItemList[i].Refresh(); + i++; + } + } + } + + private void RefreshRechargeHandler() + { + this.m_rechargeBtn.SetVisible(!this._Doc.HasBuyGrowthFund); + this.m_hasBuySprite.SetVisible(this._Doc.HasBuyGrowthFund); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareGrowthFundHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareGrowthFundHandler.cs.meta new file mode 100644 index 00000000..5dd211c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareGrowthFundHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c73504253f9142444814f6fb4655a982 +timeCreated: 1611404529 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailBehaviour.cs new file mode 100644 index 00000000..f17daeff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XWelfareKingdomPrivilegeDetailBehaviour : DlgBehaviourBase + { + public IXUILabel m_Title; + + public IXUIScrollView m_ScrollView; + + public IXUILabel m_Content; + + public IXUIButton m_Close; + + public IXUITexture m_Icon; + + public IXUILabel m_Name; + + public IXUILabel m_Notice; + + private void Awake() + { + this.m_Title = (base.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_ScrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Content = (base.transform.Find("ScrollView/Content").GetComponent("XUILabel") as IXUILabel); + this.m_Close = (base.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton); + this.m_Icon = (base.transform.Find("Texture").GetComponent("XUITexture") as IXUITexture); + this.m_Name = (base.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_Notice = (base.transform.Find("Notice").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailBehaviour.cs.meta new file mode 100644 index 00000000..60b4e242 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac029eaefd8484f4fb606826d88fa662 +timeCreated: 1611404309 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailView.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailView.cs new file mode 100644 index 00000000..1c8804e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailView.cs @@ -0,0 +1,75 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelfareKingdomPrivilegeDetailView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/Welfare/KingdomPrivilegeDetail"; + } + } + + public override bool isHideTutorial + { + get + { + return true; + } + } + + public override bool isPopup + { + get + { + return true; + } + } + + public void ShowDetail(PayMemberTable.RowData info, bool showDetail = true) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + base.uiBehaviour.m_Title.SetText(info.Name); + base.uiBehaviour.m_Content.SetText(info.Detail.Replace("|", "\n")); + base.uiBehaviour.m_Icon.SetTexturePath(info.Icon); + base.uiBehaviour.m_Name.SetVisible(showDetail); + base.uiBehaviour.m_Notice.SetVisible(!showDetail); + base.uiBehaviour.m_Notice.SetText(XSingleton.singleton.ReplaceReturn(info.BuyNtf)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + } + + protected override void OnHide() + { + base.OnHide(); + base.uiBehaviour.m_Icon.SetTexturePath(""); + } + + private bool OnCloseBtnClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailView.cs.meta new file mode 100644 index 00000000..8ecc3b2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeDetailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76838bcec28f4f5438022e53521bb503 +timeCreated: 1611403950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeHandler.cs new file mode 100644 index 00000000..208d4da0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeHandler.cs @@ -0,0 +1,288 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelfareKingdomPrivilegeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/KingdomPrivilege"; + } + } + + private XUIPool m_PrivilegeTypePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIList m_PrivilegeTypeList; + + private List m_LeftTimeLabel = new List(); + + private List m_LeftTime = new List(); + + private uint _CDToken = 0u; + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("ListType/Grid/Tpl"); + this.m_PrivilegeTypePool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 3u, false); + this.m_PrivilegeTypeList = (base.PanelObject.transform.Find("ListType/Grid").GetComponent("XUIList") as IXUIList); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._CDToken); + XSingleton.singleton.DestroyTextureInActivePool(this.m_PrivilegeTypePool, "Icon"); + } + + public override void RefreshData() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + PayMemberTable payMemberTable = XWelfareDocument.PayMemberTable; + List payMemeberInfo = specificDocument.PayMemeberInfo; + this.m_LeftTimeLabel.Clear(); + this.m_LeftTime.Clear(); + bool flag = payMemeberInfo == null; + if (!flag) + { + this.m_PrivilegeTypePool.FakeReturnAll(); + for (int i = 0; i < payMemberTable.Table.Length; i++) + { + int systemID = payMemberTable.Table[i].SystemID; + int id = payMemberTable.Table[i].ID; + bool flag2 = XSingleton.singleton.IsSystemOpen(systemID); + if (flag2) + { + GameObject gameObject = this.m_PrivilegeTypePool.FetchGameObject(false); + gameObject.transform.parent = this.m_PrivilegeTypeList.gameObject.transform; + gameObject.transform.localScale = Vector3.one; + bool flag3 = false; + for (int j = 0; j < payMemeberInfo.Count; j++) + { + bool flag4 = id == payMemeberInfo[j].ID; + if (flag4) + { + flag3 = true; + this.SetBaseInfo(gameObject, payMemberTable.Table[i], payMemeberInfo[j]); + } + } + bool flag5 = !flag3; + if (flag5) + { + this.SetBaseInfo(gameObject, payMemberTable.Table[i], null); + } + } + } + this.m_PrivilegeTypeList.Refresh(); + this.m_PrivilegeTypePool.ActualReturnAll(false); + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + } + + private void SetBaseInfo(GameObject item, PayMemberTable.RowData baseInfo, PayMember info) + { + float num = (float)baseInfo.Price / 100f; + IXUILabel ixuilabel = item.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(baseInfo.Name); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + IXUISprite ixuisprite = item.transform.Find("TqIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(specificDocument.GetMemberPrivilegeIcon((MemberPrivilege)baseInfo.ID)); + IXUITexture ixuitexture = item.transform.Find("Icon").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(baseInfo.Icon); + IXUILabel ixuilabel2 = item.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(XStringDefineProxy.GetString("PAY_KINGDOM_VALUE", new object[] + { + baseInfo.Value[1], + XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf((int)baseInfo.Value[0]).ItemName, 0u) + })); + IXUILabel ixuilabel3 = item.transform.Find("Detail/DetailDesc").GetComponent("XUILabel") as IXUILabel; + string[] array = baseInfo.Desc.Split(new char[] + { + '|' + }); + int num2 = 3; + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < array.Length; i++) + { + bool flag = i < num2; + if (flag) + { + stringBuilder.Append(array[i]); + } + else + { + bool flag2 = i == num2; + if (flag2) + { + stringBuilder.Append("......"); + break; + } + } + bool flag3 = i != array.Length - 1 && i != num2; + if (flag3) + { + stringBuilder.Append("\n"); + } + } + ixuilabel3.SetText(stringBuilder.ToString()); + IXUIButton ixuibutton = item.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel4 = item.transform.Find("LeftTime").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = item.transform.Find("Btn/T").GetComponent("XUILabel") as IXUILabel; + this.m_LeftTimeLabel.Add(ixuilabel4); + bool flag4 = info != null; + if (flag4) + { + this.m_LeftTime.Add(info.ExpireTime); + this.SetLeftTime(ixuilabel4, info.ExpireTime); + ixuilabel5.SetText((info.ExpireTime > 0) ? XSingleton.singleton.GetString("PAY_KINGDOM_BUY_AGAIN") : baseInfo.Tip); + int @int = XSingleton.singleton.GetInt("WelfareMemberPrivilegeRenewDays"); + bool visible = info.ExpireTime <= 86400 * @int; + ixuibutton.SetVisible(visible); + } + else + { + ixuilabel4.SetVisible(false); + ixuilabel5.SetText(baseInfo.Tip); + this.m_LeftTime.Add(0); + ixuibutton.SetVisible(true); + } + ixuibutton.ID = (ulong)((long)baseInfo.ID); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClicked)); + IXUISprite ixuisprite2 = item.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)baseInfo.ID); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnDetailBtnClicked)); + } + + private void SetLeftTime(IXUILabel leftTime, int time) + { + leftTime.SetVisible(time > 0); + bool flag = time > 86400; + if (flag) + { + int num = time / 86400; + leftTime.SetText(string.Format("{0}{1}", XStringDefineProxy.GetString("PAY_KINGDOM_LEFTTIME", new object[] + { + num + }), XSingleton.singleton.GetString("DAY_DUARATION"))); + } + else + { + leftTime.SetText(XStringDefineProxy.GetString("PAY_KINGDOM_LEFTTIME", new object[] + { + XSingleton.singleton.TimeFormatString(time, 3, 3, 4, false, true) + })); + } + } + + private void LeftTimeUpdate(object o) + { + for (int i = 0; i < this.m_LeftTime.Count; i++) + { + bool flag = this.m_LeftTime[i] > 0; + if (flag) + { + List leftTime = this.m_LeftTime; + int index = i; + int num = leftTime[index]; + leftTime[index] = num - 1; + int @int = XSingleton.singleton.GetInt("WelfareMemberPrivilegeRenewDays"); + bool flag2 = this.m_LeftTime[i] == 0 || this.m_LeftTime[i] == 86400 * @int; + if (flag2) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.ReqPayAllInfo(); + } + } + bool flag3 = i < this.m_LeftTimeLabel.Count; + if (flag3) + { + this.SetLeftTime(this.m_LeftTimeLabel[i], this.m_LeftTime[i]); + } + } + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + + private bool OnBuyBtnClicked(IXUIButton btn) + { + int num = (int)btn.ID; + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + PayMemberTable payMemberTable = XWelfareDocument.PayMemberTable; + List payMemeberInfo = specificDocument.PayMemeberInfo; + bool flag = payMemeberInfo == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < payMemberTable.Table.Length; i++) + { + int id = payMemberTable.Table[i].ID; + bool flag2 = id == num; + if (flag2) + { + for (int j = 0; j < payMemeberInfo.Count; j++) + { + bool flag3 = id == payMemeberInfo[j].ID; + if (flag3) + { + bool flag4 = payMemeberInfo[j].ExpireTime > 0; + if (flag4) + { + DlgBase.singleton.Show(payMemberTable.Table[i], false, 0); + return true; + } + } + } + XRechargeDocument specificDocument2 = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + bool flag5 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.Android; + if (flag5) + { + specificDocument2.SDKSubscribe(payMemberTable.Table[i].Price, 1, payMemberTable.Table[i].ServiceCode, payMemberTable.Table[i].Name, payMemberTable.Table[i].ParamID, PayParamType.PAY_PARAM_MEMBER); + } + else + { + bool flag6 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.IOS; + if (flag6) + { + specificDocument2.SDKSubscribe(payMemberTable.Table[i].Price, payMemberTable.Table[i].Days, payMemberTable.Table[i].ServiceCode, payMemberTable.Table[i].Name, payMemberTable.Table[i].ParamID, PayParamType.PAY_PARAM_MEMBER); + } + } + return true; + } + } + result = true; + } + return result; + } + + private void OnDetailBtnClicked(IXUISprite sp) + { + int num = (int)sp.ID; + PayMemberTable payMemberTable = XWelfareDocument.PayMemberTable; + for (int i = 0; i < payMemberTable.Table.Length; i++) + { + int id = payMemberTable.Table[i].ID; + bool flag = id == num; + if (flag) + { + DlgBase.singleton.ShowDetail(payMemberTable.Table[i], true); + break; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeHandler.cs.meta new file mode 100644 index 00000000..6f12ac20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40f5c364fa471724b914be9320639d4a +timeCreated: 1611403616 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewBehaviour.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewBehaviour.cs new file mode 100644 index 00000000..41f17048 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewBehaviour.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient.UI +{ + internal class XWelfareKingdomPrivilegeRenewBehaviour : DlgBehaviourBase + { + public IXUILabel m_Title; + + public IXUILabel m_Name; + + public IXUIButton m_Close; + + public IXUITexture m_Icon; + + public IXUILabel m_Time; + + public IXUILabel m_Price; + + public IXUIButton m_Buy; + + public IXUILabel m_RenewSucTip; + + private void Awake() + { + this.m_Title = (base.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_Name = (base.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_Close = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_Icon = (base.transform.Find("Texture").GetComponent("XUITexture") as IXUITexture); + this.m_Time = (base.transform.Find("Time").GetComponent("XUILabel") as IXUILabel); + this.m_Price = (base.transform.Find("Price").GetComponent("XUILabel") as IXUILabel); + this.m_Buy = (base.transform.Find("OK").GetComponent("XUIButton") as IXUIButton); + this.m_RenewSucTip = (base.transform.Find("RenewSuc").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewBehaviour.cs.meta new file mode 100644 index 00000000..a9530808 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 920f055c6da557d45aa630584987f973 +timeCreated: 1611404144 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewView.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewView.cs new file mode 100644 index 00000000..e5a23e84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewView.cs @@ -0,0 +1,102 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelfareKingdomPrivilegeRenewView : DlgBase + { + public override bool autoload + { + get + { + return true; + } + } + + public override string fileName + { + get + { + return "GameSystem/Welfare/KingdomPrivilegeRenew"; + } + } + + private PayMemberTable.RowData payInfo; + + public void Show(PayMemberTable.RowData info, bool suc = false, int leftTime = 0) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + this.payInfo = info; + base.uiBehaviour.m_Title.SetText(suc ? XSingleton.singleton.GetString("PAY_KINGDOM_RENEW_TITLE") : XSingleton.singleton.GetString("PAY_KINGDOM_BUY_AGAIN")); + base.uiBehaviour.m_Name.SetText(info.Name); + base.uiBehaviour.m_Icon.SetTexturePath(info.Icon); + base.uiBehaviour.m_Time.SetVisible(!suc); + base.uiBehaviour.m_Time.SetText(string.Format("{0}{1}", info.Days, XSingleton.singleton.GetString("DAY_DUARATION"))); + float num = (float)info.Price / 100f; + base.uiBehaviour.m_Price.SetText(XStringDefineProxy.GetString("PAY_UNIT", new object[] + { + num + })); + base.uiBehaviour.m_Price.SetVisible(!suc); + base.uiBehaviour.m_RenewSucTip.SetVisible(suc); + base.uiBehaviour.m_Buy.SetVisible(!suc); + if (suc) + { + int days = info.Days; + int num2 = leftTime / 86400; + base.uiBehaviour.m_RenewSucTip.SetText(XStringDefineProxy.GetString("PAY_KINGDOM_RENEW", new object[] + { + days, + num2 + })); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + base.uiBehaviour.m_Buy.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyBtnClicked)); + } + + protected override void OnHide() + { + base.OnHide(); + base.uiBehaviour.m_Icon.SetTexturePath(""); + } + + private bool OnCloseBtnClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return false; + } + + private bool OnBuyBtnClicked(IXUIButton btn) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + bool flag = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.Android; + if (flag) + { + specificDocument.SDKSubscribe(this.payInfo.Price, 1, this.payInfo.ServiceCode, this.payInfo.Name, this.payInfo.ParamID, PayParamType.PAY_PARAM_MEMBER); + } + else + { + bool flag2 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.IOS; + if (flag2) + { + specificDocument.SDKSubscribe(this.payInfo.Price, this.payInfo.Days, this.payInfo.ServiceCode, this.payInfo.Name, this.payInfo.ParamID, PayParamType.PAY_PARAM_MEMBER); + } + } + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewView.cs.meta new file mode 100644 index 00000000..b98cb71c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareKingdomPrivilegeRenewView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b531de6b6f6d074f994048b4d497cb6 +timeCreated: 1611403498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareMoneyTreeHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareMoneyTreeHandler.cs new file mode 100644 index 00000000..5d88cc94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareMoneyTreeHandler.cs @@ -0,0 +1,443 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelfareMoneyTreeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/GoldTree"; + } + } + + private XWelfareDocument _doc; + + private uint _tick_token = 0u; + + private uint _req_type = 0u; + + private float _time_left; + + private List _res = new List(); + + private int _play_index = 0; + + private uint _play_token = 0u; + + private int _cost_count = 100; + + private GameObject _status_info; + + private GameObject _once_info; + + private GameObject _ten_info; + + private GameObject _free_info; + + private GameObject _gold_info; + + private GameObject _fx_gold_tree; + + private GameObject _free_time; + + private GameObject _fx_gold_tree_putong; + + private GameObject _fx_gold_tree_baoji; + + private IXUIButton _free_btn; + + private IXUILabel _free_count_free; + + private IXUILabel _left_count; + + private IXUILabel _free_count; + + private IXUILabel _next_reset_info; + + private IXUILabel _refresh_time; + + private IXUILabel _free_left_time; + + private IXUILabel _once_cost; + + private IXUIButton _once_btn; + + private IXUILabel _ten_cost; + + private IXUIButton _ten_btn; + + private IXUILabel _gold_num; + + private IXUILabel _critical_times; + + private IXUILabel _critical; + + private IXUILabel _guide; + + private IXUITweenTool _tween1; + + private IXUITweenTool _tween2; + + private IXUITweenTool _tween3; + + private IXUITweenTool _tween4; + + private IXUITweenTool _tween5; + + private IXUITweenTool _tween6; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this._status_info = base.PanelObject.transform.Find("Status").gameObject; + this._once_info = base.PanelObject.transform.Find("Once").gameObject; + this._ten_info = base.PanelObject.transform.Find("Ten").gameObject; + this._free_info = base.PanelObject.transform.Find("Free").gameObject; + this._gold_info = base.PanelObject.transform.Find("Gold").gameObject; + this._fx_gold_tree = base.PanelObject.transform.Find("FX/UI_Goldtree").gameObject; + this._fx_gold_tree_putong = base.PanelObject.transform.Find("FX/UI_Goldtree_putong").gameObject; + this._fx_gold_tree_baoji = base.PanelObject.transform.Find("FX/UI_Goldtree_baoji").gameObject; + this._free_time = base.PanelObject.transform.Find("Status/FreeTime").gameObject; + this._free_btn = (base.PanelObject.transform.Find("Free/Btn_ExchangeOne").GetComponent("XUIButton") as IXUIButton); + this._free_btn.ID = 1UL; + this._free_count_free = (base.PanelObject.transform.Find("Free/Cash/RemainTime").GetComponent("XUILabel") as IXUILabel); + this._left_count = (base.PanelObject.transform.Find("Status/PaidTime").GetComponent("XUILabel") as IXUILabel); + this._free_count = (base.PanelObject.transform.Find("Status/FreeTime/RemainTime").GetComponent("XUILabel") as IXUILabel); + this._next_reset_info = (base.PanelObject.transform.Find("Status/FreeTime/RemainTime").GetComponent("XUILabel") as IXUILabel); + this._free_left_time = (base.PanelObject.transform.Find("Status/FreeTime/Time").GetComponent("XUILabel") as IXUILabel); + this._refresh_time = (base.PanelObject.transform.Find("Status/RefreshTime").GetComponent("XUILabel") as IXUILabel); + this._once_cost = (base.PanelObject.transform.Find("Once/Cash/Num").GetComponent("XUILabel") as IXUILabel); + this._once_btn = (base.PanelObject.transform.Find("Once/Btn_ExchangeOne").GetComponent("XUIButton") as IXUIButton); + this._once_btn.ID = 2UL; + this._ten_cost = (base.PanelObject.transform.Find("Ten/Cash/Num").GetComponent("XUILabel") as IXUILabel); + this._ten_btn = (base.PanelObject.transform.Find("Ten/Btn_ExchangeTen").GetComponent("XUIButton") as IXUIButton); + this._ten_btn.ID = 3UL; + this._gold_num = (base.PanelObject.transform.Find("Gold/Icon/Number").GetComponent("XUILabel") as IXUILabel); + this._critical_times = (base.PanelObject.transform.Find("Gold/Critical/Times1").GetComponent("XUILabel") as IXUILabel); + this._critical = (base.PanelObject.transform.Find("Gold/Critical").GetComponent("XUILabel") as IXUILabel); + this._guide = (base.PanelObject.transform.Find("Help/Guide").GetComponent("XUILabel") as IXUILabel); + this._tween1 = (base.PanelObject.transform.Find("Gold").GetComponent("XUIPlayTween") as IXUITweenTool); + this._tween2 = (base.PanelObject.transform.Find("Gold/Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this._tween3 = (base.PanelObject.transform.Find("Gold/Icon").GetComponent("XUIPlayTween") as IXUITweenTool); + this._tween4 = (base.PanelObject.transform.Find("Gold/Critical").GetComponent("XUIPlayTween") as IXUITweenTool); + this._tween5 = (base.PanelObject.transform.Find("Gold/Critical/Times1").GetComponent("XUIPlayTween") as IXUITweenTool); + this._tween6 = (base.PanelObject.transform.Find("Gold/Critical/T").GetComponent("XUIPlayTween") as IXUITweenTool); + string value = XSingleton.singleton.GetValue("GoldClickConsume"); + this._cost_count = int.Parse(value.Split(new char[] + { + '=' + })[1]); + } + + protected override void OnShow() + { + base.OnShow(); + this._gold_info.SetActive(false); + this.ShowPaid(); + this.ReqMoneyTree(0u, 1u); + this._guide.SetText(XSingleton.singleton.GetString("MoneyBox")); + XShowGetItemDocument specificDocument = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + specificDocument.bBlock = true; + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this._tick_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._tick_token); + } + this._tick_token = 0u; + XShowGetItemDocument specificDocument = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + specificDocument.ClearItemQueue(); + specificDocument.bBlock = false; + XSingleton.singleton.KillTimer(this._play_token); + this._play_token = 0u; + } + + public override void RegisterEvent() + { + this._free_btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReqGoldClick)); + this._once_btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReqGoldClick)); + this._ten_btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnReqGoldClick)); + base.RegisterEvent(); + } + + public override void RefreshData() + { + MoneyTreeData welfareMoneyTreeData = this._doc.WelfareMoneyTreeData; + bool flag = welfareMoneyTreeData.left_time == 0u && welfareMoneyTreeData.free_all_count - welfareMoneyTreeData.free_count > 0u && welfareMoneyTreeData.free_count + welfareMoneyTreeData.count < welfareMoneyTreeData.all_count; + if (flag) + { + this.ShowFree(); + } + else + { + this.ShowPaid(); + } + bool flag2 = this._req_type > 0u; + if (flag2) + { + bool flag3 = this._req_type == 1u; + if (flag3) + { + bool flag4 = this._doc.WelfareMoneyTreeData.result.Count > 0; + if (flag4) + { + this.StartPlayTween(this._doc.WelfareMoneyTreeData.result[0]); + } + else + { + this.StartPlayTween(1f); + } + this.StartPlayFx("goldtreeputong"); + this._critical.SetVisible(false); + } + else + { + bool flag5 = this._req_type == 2u; + if (flag5) + { + this._res.Clear(); + for (int i = 0; i < this._doc.WelfareMoneyTreeData.result.Count; i++) + { + this._res.Add(this._doc.WelfareMoneyTreeData.result[i]); + } + this._play_index = 0; + bool flag6 = this._res.Count <= 1; + if (flag6) + { + this.StartPlayFx("goldtreeputong"); + this._critical.SetVisible(false); + } + else + { + this.StartPlayFx("goldtreebaoji"); + this._critical.SetVisible(true); + } + bool flag7 = this._res.Count > 0; + if (flag7) + { + this.StartPlayResult(null); + } + else + { + this.StartPlayTween(1f); + } + } + } + this._req_type = 0u; + } + } + + private void ShowFree() + { + this._once_info.SetActive(false); + this._ten_info.SetActive(false); + this._free_info.SetActive(true); + this._status_info.SetActive(false); + this._fx_gold_tree_putong.SetActive(false); + this._fx_gold_tree_baoji.SetActive(false); + this._free_time.SetActive(false); + this._left_count.SetVisible(false); + this._refresh_time.SetVisible(false); + this._free_left_time.SetVisible(false); + this._free_count_free.SetText(string.Format("({0}/{1})", this._doc.WelfareMoneyTreeData.free_all_count - this._doc.WelfareMoneyTreeData.free_count, this._doc.WelfareMoneyTreeData.free_all_count)); + } + + private void ShowPaid() + { + this._once_info.SetActive(true); + this._ten_info.SetActive(true); + this._free_info.SetActive(false); + this._status_info.SetActive(true); + this._fx_gold_tree_putong.SetActive(false); + this._fx_gold_tree_baoji.SetActive(false); + this._left_count.SetVisible(true); + this._once_cost.SetText(this._cost_count.ToString()); + this._ten_cost.SetText((this._cost_count * 10).ToString()); + bool flag = this._doc.WelfareMoneyTreeData.all_count <= this._doc.WelfareMoneyTreeData.count + this._doc.WelfareMoneyTreeData.free_count; + if (flag) + { + this._left_count.SetVisible(false); + this._refresh_time.SetVisible(true); + } + else + { + this._left_count.SetVisible(true); + this._refresh_time.SetVisible(false); + } + this._free_left_time.SetVisible(true); + this._time_left = this._doc.WelfareMoneyTreeData.left_time; + bool flag2 = this._time_left > 0f && this._time_left <= 10000f; + if (flag2) + { + this._free_time.SetActive(true); + this.DoCountDown(null); + } + else + { + this._free_time.SetActive(false); + } + int num = (int)(this._doc.WelfareMoneyTreeData.all_count - this._doc.WelfareMoneyTreeData.count - this._doc.WelfareMoneyTreeData.free_count); + num = ((num >= 0) ? num : 0); + this._left_count.SetText(string.Format("({0}/{1})", num, this._doc.WelfareMoneyTreeData.all_count)); + } + + private void ReqMoneyTree(uint type, uint num) + { + this._req_type = type; + RpcC2G_GoldClick rpcC2G_GoldClick = new RpcC2G_GoldClick(); + rpcC2G_GoldClick.oArg.type = type; + rpcC2G_GoldClick.oArg.count = num; + XSingleton.singleton.Send(rpcC2G_GoldClick); + } + + private void SetTimeLeft(int time) + { + int num = time / 3600; + int num2 = (time - num * 3600) / 60; + int num3 = time % 60; + string text = string.Format("{0:D2}:{1:D2}", num2, num3); + this._free_left_time.SetText(text); + } + + private bool OnReqGoldClick(IXUIButton btn) + { + bool flag = btn.ID == 1UL; + if (flag) + { + this.ReqMoneyTree(1u, 1u); + } + else + { + bool flag2 = btn.ID == 2UL; + if (flag2) + { + this.ReqMoneyTree(2u, 1u); + } + else + { + bool flag3 = btn.ID == 3UL; + if (flag3) + { + this.ReqMoneyTree(2u, 10u); + } + } + } + return true; + } + + public void DoCountDown(object obj) + { + MoneyTreeData welfareMoneyTreeData = this._doc.WelfareMoneyTreeData; + this._time_left = welfareMoneyTreeData.left_time - (Time.time - welfareMoneyTreeData.req_time); + bool flag = this._tick_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._tick_token); + } + bool flag2 = this._time_left <= 0f; + if (flag2) + { + this._time_left = 0f; + this.SetTimeLeft(0); + bool flag3 = this._doc.WelfareMoneyTreeData.free_all_count - this._doc.WelfareMoneyTreeData.free_count > 0u; + if (flag3) + { + this.ShowFree(); + } + } + else + { + this.SetTimeLeft((int)this._time_left); + this._tick_token = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.DoCountDown), null); + } + } + + public void StartPlayFx(string fxname) + { + this._fx_gold_tree.SetActive(false); + this._fx_gold_tree_baoji.SetActive(false); + this._fx_gold_tree_putong.SetActive(false); + bool flag = fxname == "goldtree"; + if (flag) + { + this._fx_gold_tree.SetActive(true); + } + else + { + bool flag2 = fxname == "goldtreeputong"; + if (flag2) + { + this._fx_gold_tree_putong.SetActive(true); + } + else + { + bool flag3 = fxname == "goldtreebaoji"; + if (flag3) + { + this._fx_gold_tree_baoji.SetActive(true); + } + } + } + } + + public void StartPlayTween(float alpha) + { + bool flag = !base.IsVisible(); + if (!flag) + { + int num = int.Parse(XSingleton.singleton.GetValue("GoldClickBaseCount")); + this._gold_num.SetText(((int)((float)num * alpha)).ToString()); + this._critical_times.SetText(alpha.ToString()); + bool flag2 = alpha <= 1f; + if (flag2) + { + this._critical.SetVisible(false); + } + else + { + this._critical.SetVisible(true); + } + this._gold_info.SetActive(true); + this._tween1.ResetTweenByGroup(true, 0); + this._tween1.PlayTween(true, -1f); + this._tween2.ResetTweenByGroup(true, 0); + this._tween2.PlayTween(true, -1f); + this._tween3.ResetTweenByGroup(true, 0); + this._tween3.PlayTween(true, -1f); + this._tween4.ResetTweenByGroup(true, 0); + this._tween4.PlayTween(true, -1f); + this._tween5.ResetTweenByGroup(true, 0); + this._tween5.PlayTween(true, -1f); + this._tween6.ResetTweenByGroup(true, 0); + this._tween6.PlayTween(true, -1f); + } + } + + public void StartPlayResult(object obj) + { + bool flag = this._play_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._play_token); + } + bool flag2 = this._play_index < this._res.Count; + if (flag2) + { + this.StartPlayTween(this._res[this._play_index]); + this._play_index++; + this._play_token = XSingleton.singleton.SetTimer(0.8f, new XTimerMgr.ElapsedEventHandler(this.StartPlayResult), null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareMoneyTreeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareMoneyTreeHandler.cs.meta new file mode 100644 index 00000000..02bb603b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareMoneyTreeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6cc601e78aed834429cdea64bbcce34d +timeCreated: 1611403899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareNiceGirlHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareNiceGirlHandler.cs new file mode 100644 index 00000000..d6b0b470 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareNiceGirlHandler.cs @@ -0,0 +1,392 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class XWelfareNiceGirlHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/XWelfareNiceGirlHandler"; + } + } + + private IXUIWrapContent _dailyWrapContent = null; + + private IXUIWrapContent _specailWrapContent = null; + + private XWelfareNiceGirlHandler.BlessType _curBlessType = XWelfareNiceGirlHandler.BlessType.DialyGift; + + private Transform _dailyGiftRoot; + + private Transform _specialGiftRoot; + + private IXUIScrollView _dailyScrollView; + + private IXUIScrollView _specialScrollView; + + private IXUILabel _CDRewards; + + private IXUICheckBox _dailyCheck; + + private IXUICheckBox _specialCheck; + + private enum BlessType + { + DialyGift, + SpecialGift + } + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnShow() + { + base.OnShow(); + XWelfareDocument.Doc.ArgentaMainInterfaceState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_Welfare_NiceGirl, true); + XWelfareDocument.Doc.SendArgentaActivityInfo(1u, 0u); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshRedPoint(); + bool flag = this._curBlessType == XWelfareNiceGirlHandler.BlessType.DialyGift; + if (flag) + { + bool bChecked = this._dailyCheck.bChecked; + if (bChecked) + { + this.RefreshScorllViewContent(); + } + else + { + this._dailyCheck.bChecked = true; + } + } + bool flag2 = this._curBlessType == XWelfareNiceGirlHandler.BlessType.SpecialGift; + if (flag2) + { + bool bChecked2 = this._specialCheck.bChecked; + if (bChecked2) + { + this.RefreshScorllViewContent(); + } + else + { + this._specialCheck.bChecked = true; + } + } + } + + private void RefreshScorllViewContent() + { + this._dailyGiftRoot.gameObject.SetActive(this._curBlessType == XWelfareNiceGirlHandler.BlessType.DialyGift); + this._specialGiftRoot.gameObject.SetActive(this._curBlessType == XWelfareNiceGirlHandler.BlessType.SpecialGift); + bool flag = this._curBlessType == XWelfareNiceGirlHandler.BlessType.DialyGift; + if (flag) + { + int argentDailyDataCount = XWelfareDocument.Doc.GetArgentDailyDataCount(); + this._dailyWrapContent.SetContentCount(argentDailyDataCount, false); + this._dailyScrollView.ResetPosition(); + } + else + { + XTempActivityDocument.Doc.SortActivityTaskByType(7u); + int activityTaskCountByType = XTempActivityDocument.Doc.GetActivityTaskCountByType(7u); + this._specailWrapContent.SetContentCount(activityTaskCountByType, false); + this._specialScrollView.ResetPosition(); + } + } + + private void InitProperties() + { + this._CDRewards = (base.transform.Find("CDRewards").GetComponent("XUILabel") as IXUILabel); + this._dailyGiftRoot = base.transform.Find("DailyGift"); + this._specialGiftRoot = base.transform.Find("SpecialGift"); + this._dailyCheck = (base.transform.Find("buttons/SelectNormal").GetComponent("XUICheckBox") as IXUICheckBox); + this._dailyCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabChecked)); + this._dailyCheck.ID = 0UL; + this._specialCheck = (base.transform.Find("buttons/SelectPerfect").GetComponent("XUICheckBox") as IXUICheckBox); + this._specialCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabChecked)); + this._specialCheck.ID = 1UL; + this._dailyWrapContent = (this._dailyGiftRoot.Find("RightView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._dailyScrollView = (this._dailyGiftRoot.Find("RightView").GetComponent("XUIScrollView") as IXUIScrollView); + this._specailWrapContent = (this._specialGiftRoot.Find("RightView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._specialScrollView = (this._dailyGiftRoot.Find("RightView").GetComponent("XUIScrollView") as IXUIScrollView); + this._dailyWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.DailyGiftContentInit)); + this._dailyWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DailyGiftContentUpdate)); + this._specailWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.SpecialGiftContentUpdate)); + this._specailWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.SpecialGiftContentInit)); + } + + private void RefreshRedPoint() + { + Transform transform = base.transform.Find("buttons/SelectNormal/redpoint"); + Transform transform2 = base.transform.Find("buttons/SelectPerfect/redpoint"); + transform.gameObject.SetActive(XWelfareDocument.Doc.GetDailyGiftRedPoint()); + transform2.gameObject.SetActive(XWelfareDocument.Doc.GetSpecialGiftRedPoint()); + } + + private void WrapContentUpdate(Transform itemTransform, int index) + { + bool flag = this._curBlessType == XWelfareNiceGirlHandler.BlessType.DialyGift; + if (flag) + { + this.DailyGiftContentUpdate(itemTransform, index); + } + else + { + this.SpecialGiftContentUpdate(itemTransform, index); + } + } + + private void SpecialGiftContentUpdate(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("OperateBtn").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = itemTransform.Find("TaskName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = itemTransform.Find("Progress").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = itemTransform.Find("OperateBtn/Text").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = itemTransform.Find("TaskIcon").GetComponent("XUISprite") as IXUISprite; + Transform transform = itemTransform.Find("Items"); + Transform transform2 = itemTransform.Find("HadGet"); + SpActivityTask activityTaskInfoByIndex = XTempActivityDocument.Doc.GetActivityTaskInfoByIndex(7u, index); + bool flag = activityTaskInfoByIndex != null; + if (flag) + { + ixuibutton.gameObject.SetActive(true); + ixuibutton.ID = (ulong)activityTaskInfoByIndex.taskid; + transform2.gameObject.SetActive(false); + bool flag2 = activityTaskInfoByIndex.state == 0u; + if (flag2) + { + ixuilabel3.SetText(XSingleton.singleton.GetString("PVPActivity_Go")); + } + else + { + bool flag3 = activityTaskInfoByIndex.state == 1u; + if (flag3) + { + ixuilabel3.SetText(XSingleton.singleton.GetString("SRS_FETCH")); + } + else + { + ixuibutton.gameObject.SetActive(false); + transform2.gameObject.SetActive(true); + } + } + int num = 1; + SuperActivityTask.RowData dataByActivityByTypeID = XTempActivityDocument.Doc.GetDataByActivityByTypeID(7u, activityTaskInfoByIndex.taskid); + bool flag4 = dataByActivityByTypeID != null; + if (flag4) + { + num = dataByActivityByTypeID.cnt; + ixuisprite.SetSprite(dataByActivityByTypeID.icon); + ixuilabel.SetText(dataByActivityByTypeID.title); + } + ixuilabel2.SetText(string.Format("{0}/{1}", activityTaskInfoByIndex.progress, num)); + SeqListRef? argentTaskRewards = XWelfareDocument.Doc.GetArgentTaskRewards(activityTaskInfoByIndex.taskid); + int i = 0; + bool flag5 = argentTaskRewards != null; + if (flag5) + { + int num2 = Mathf.Min((int)argentTaskRewards.Value.count, transform.childCount); + while (i < num2) + { + Transform child = transform.GetChild(i); + child.gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(child.gameObject, (int)argentTaskRewards.Value[i, 0], (int)argentTaskRewards.Value[i, 1], true); + IXUISprite ixuisprite2 = child.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)argentTaskRewards.Value[i, 0]; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + i++; + } + } + while (i < transform.childCount) + { + transform.GetChild(i++).gameObject.SetActive(false); + } + } + } + + private void DailyGiftContentUpdate(Transform itemTransform, int index) + { + Transform transform = itemTransform.Find("HadGet"); + Transform transform2 = itemTransform.Find("Items"); + IXUIButton ixuibutton = itemTransform.Find("GetBtn").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = itemTransform.Find("Title").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = itemTransform.Find("desc").GetComponent("XUILabel") as IXUILabel; + ArgentaDaily.RowData argentDailyDataByIndex = XWelfareDocument.Doc.GetArgentDailyDataByIndex(index); + bool flag = argentDailyDataByIndex != null; + if (flag) + { + ixuilabel.SetText(argentDailyDataByIndex.Title); + ixuilabel2.SetText(XSingleton.singleton.ReplaceReturn(argentDailyDataByIndex.Description)); + ixuibutton.ID = (ulong)argentDailyDataByIndex.ID; + bool flag2 = XWelfareDocument.Doc.CurArgentaDailyIDList.Contains(argentDailyDataByIndex.ID); + ixuibutton.gameObject.SetActive(!flag2); + transform.gameObject.SetActive(flag2); + SeqListRef reward = argentDailyDataByIndex.Reward; + int num = Mathf.Min((int)reward.count, transform2.childCount); + int i; + for (i = 0; i < num; i++) + { + Transform child = transform2.GetChild(i); + child.gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(child.gameObject, (int)reward[i, 0], (int)reward[i, 1], true); + IXUISprite ixuisprite = child.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)reward[i, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + while (i < transform2.childCount) + { + transform2.GetChild(i++).gameObject.SetActive(false); + } + } + } + + private void WrapContentInit(Transform itemTransform, int index) + { + bool flag = this._curBlessType == XWelfareNiceGirlHandler.BlessType.DialyGift; + if (flag) + { + this.DailyGiftContentInit(itemTransform, index); + } + else + { + this.SpecialGiftContentInit(itemTransform, index); + } + } + + private void DailyGiftContentInit(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("GetBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickDailyBtn)); + } + + private bool OnClickDailyBtn(IXUIButton button) + { + uint num = (uint)button.ID; + bool flag = num > 0u; + if (flag) + { + XWelfareDocument.Doc.SendArgentaActivityInfo(2u, num); + } + return true; + } + + private void SpecialGiftContentInit(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("OperateBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickOperateBtn)); + } + + private bool OnClickOperateBtn(IXUIButton button) + { + uint num = (uint)button.ID; + uint activityState = XTempActivityDocument.Doc.GetActivityState(7u, num); + bool flag = activityState == 0u; + if (flag) + { + SuperActivityTask.RowData[] table = XTempActivityDocument.SuperActivityTaskTable.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag2 = table[i].taskid == num; + if (flag2) + { + SuperActivityTask.RowData rowData = table[i]; + bool flag3 = rowData.arg != null && rowData.arg.Length != 0; + if (flag3) + { + bool flag4 = rowData.arg[0] == 1; + if (flag4) + { + DlgBase.singleton.SelectChapter(rowData.arg[1], (uint)rowData.arg[2]); + } + else + { + bool flag5 = rowData.arg[0] == 2; + if (flag5) + { + DlgBase.singleton.ShowView(rowData.arg[1]); + } + } + } + else + { + XSingleton.singleton.OpenSystem((int)rowData.jump); + } + return true; + } + } + } + else + { + XTempActivityDocument.Doc.GetActivityAwards(7u, num); + } + return true; + } + + private bool OnTabChecked(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._curBlessType = (XWelfareNiceGirlHandler.BlessType)iXUICheckBox.ID; + this.RefreshScorllViewContent(); + result = true; + } + return result; + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.SetRewardLeftTime(); + } + + private void SetRewardLeftTime() + { + int num = (int)(XWelfareDocument.Doc.ActivityLeftTime - (uint)((int)Time.realtimeSinceStartup)); + bool flag = num >= 1; + if (flag) + { + this._CDRewards.gameObject.SetActive(true); + string str = string.Format(XSingleton.singleton.GetString("MulActivity_Tips2"), ":"); + bool flag2 = num >= 43200; + if (flag2) + { + this._CDRewards.SetText(str + XSingleton.singleton.TimeDuarationFormatString(num, 4)); + } + else + { + this._CDRewards.SetText(str + XSingleton.singleton.TimeDuarationFormatString(num, 5)); + } + } + else + { + this._CDRewards.gameObject.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareNiceGirlHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareNiceGirlHandler.cs.meta new file mode 100644 index 00000000..afc1c8db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareNiceGirlHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c45af9bb14e76ab4a849924907185238 +timeCreated: 1611404501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareRewardBackHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareRewardBackHandler.cs new file mode 100644 index 00000000..1bce253f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareRewardBackHandler.cs @@ -0,0 +1,1134 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelfareRewardBackHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/RewardBackFrame"; + } + } + + private IXUILabel mTipName; + + private IXUIPanel mPanelHint; + + private IXUISprite mTemplate; + + private IXUISprite mNormalFind; + + private IXUISprite mPerfectFind; + + private bool mIsNormalFind = false; + + private bool mIsToolFind = false; + + private IXUISprite mCloseDoFind; + + private IXUIScrollView mScrollView; + + private IXUISprite mButtonsContent; + + private IXUISprite mAilin; + + private IXUILabel mFindBackName; + + private IXUILabel mFindBackInfoLabel; + + private IXUILabel mFindBackNum; + + private IXUIButton mFindBackSub; + + private IXUIButton mFindBackAdd; + + private IXUILabel mCostNum; + + private IXUISprite mMoneyType; + + private IXUIButton mDoFindBack; + + private IXUIButton mCancelFindBack; + + private IXUISprite mItemTemplate; + + private IXUIInput mNumberInput; + + private XUIPool mRewardBackPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool mRewardItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Dictionary mFindBackInfo = new Dictionary(); + + private XWelfareDocument _doc; + + private int mWanFindNum = 0; + + private int mFindMax = 0; + + private int mFindID = 0; + + private FindBackData mCurData = null; + + private int mMaxFatige = 225000; + + private int mFullFatige = 200000; + + private bool mHasInfo = false; + + private int mBackItem2DragonCoin = 5; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.mTipName = (base.PanelObject.transform.Find("tipname").GetComponent("XUILabel") as IXUILabel); + this.mPanelHint = (base.PanelObject.transform.Find("PanelHint").GetComponent("XUIPanel") as IXUIPanel); + this.mTemplate = (base.PanelObject.transform.Find("Reward/RightView/ActivityTpl").GetComponent("XUISprite") as IXUISprite); + this.mRewardBackPool.SetupPool(this.mTemplate.parent.gameObject, this.mTemplate.gameObject, 5u, false); + this.mNormalFind = (base.PanelObject.transform.Find("buttons/SelectNormal").GetComponent("XUISprite") as IXUISprite); + this.mPerfectFind = (base.PanelObject.transform.Find("buttons/SelectPerfect").GetComponent("XUISprite") as IXUISprite); + this.mCloseDoFind = (base.PanelObject.transform.Find("PanelHint/back").GetComponent("XUISprite") as IXUISprite); + this.mScrollView = (base.PanelObject.transform.Find("Reward/RightView").GetComponent("XUIScrollView") as IXUIScrollView); + this.mButtonsContent = (base.PanelObject.transform.Find("buttons").GetComponent("XUISprite") as IXUISprite); + this.mAilin = (base.PanelObject.transform.Find("ailin").GetComponent("XUISprite") as IXUISprite); + this.mFindBackName = (base.PanelObject.transform.Find("PanelHint/findname").GetComponent("XUILabel") as IXUILabel); + this.mFindBackInfoLabel = (base.PanelObject.transform.Find("PanelHint/findinfo").GetComponent("XUILabel") as IXUILabel); + this.mFindBackNum = (base.PanelObject.transform.Find("PanelHint/Count/number").GetComponent("XUILabel") as IXUILabel); + this.mFindBackSub = (base.PanelObject.transform.Find("PanelHint/Count/Sub").GetComponent("XUIButton") as IXUIButton); + this.mFindBackAdd = (base.PanelObject.transform.Find("PanelHint/Count/Add").GetComponent("XUIButton") as IXUIButton); + this.mCostNum = (base.PanelObject.transform.Find("PanelHint/MoneyNum").GetComponent("XUILabel") as IXUILabel); + this.mMoneyType = (base.PanelObject.transform.Find("PanelHint/MoneyNum/icon").GetComponent("XUISprite") as IXUISprite); + this.mDoFindBack = (base.PanelObject.transform.Find("PanelHint/BtnOK").GetComponent("XUIButton") as IXUIButton); + this.mCancelFindBack = (base.PanelObject.transform.Find("PanelHint/BtnNO").GetComponent("XUIButton") as IXUIButton); + this.mItemTemplate = (base.PanelObject.transform.Find("PanelHint/ItemTemplate").GetComponent("XUISprite") as IXUISprite); + this.mRewardItemPool.SetupPool(this.mPanelHint.gameObject, this.mItemTemplate.gameObject, 3u, false); + this.mNumberInput = (base.PanelObject.transform.Find("PanelHint/Count").GetComponent("XUIInput") as IXUIInput); + } + + protected override void OnShow() + { + base.OnShow(); + this.mPanelHint.SetVisible(false); + this.mWanFindNum = 0; + this.mFindMax = 0; + this.mFindID = 0; + int.TryParse(XSingleton.singleton.GetValue("FindBackTicketExchangeDragon"), out this.mBackItem2DragonCoin); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.mNormalFind.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnFindTypeClick)); + this.mNormalFind.ID = 0UL; + this.mPerfectFind.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnFindTypeClick)); + this.mPerfectFind.ID = 1UL; + this.mCloseDoFind.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseFindBorad)); + this.mFindBackSub.RegisterClickEventHandler(new ButtonClickEventHandler(this.SubFindCount)); + this.mFindBackAdd.RegisterClickEventHandler(new ButtonClickEventHandler(this.AddFindCount)); + this.mDoFindBack.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoFindBack)); + this.mCancelFindBack.RegisterClickEventHandler(new ButtonClickEventHandler(this.CancelFindBack)); + this.mNumberInput.RegisterChangeEventHandler(new InputChangeEventHandler(this.InputChangeEventHandler)); + } + + private int compare(ItemFindBackInfo2Client a, ItemFindBackInfo2Client b) + { + return b.dayTime.CompareTo(a.dayTime); + } + + private int compareids(int a, int b) + { + bool flag = this.mFindBackInfo[a].maxfindback == 0 && this.mFindBackInfo[b].maxfindback == 0; + int result; + if (flag) + { + result = b.CompareTo(a); + } + else + { + bool flag2 = this.mFindBackInfo[a].maxfindback == 0; + if (flag2) + { + result = 1; + } + else + { + bool flag3 = this.mFindBackInfo[b].maxfindback == 0; + if (flag3) + { + result = -1; + } + else + { + bool flag4 = this.GetFindBackCost(this.mFindBackInfo[a], true) == 0 && this.GetFindBackCost(this.mFindBackInfo[a], false) == 0 && this.GetFindBackCost(this.mFindBackInfo[b], true) == 0 && this.GetFindBackCost(this.mFindBackInfo[b], false) == 0; + if (flag4) + { + result = b.CompareTo(a); + } + else + { + bool flag5 = this.GetFindBackCost(this.mFindBackInfo[a], true) == 0 && this.GetFindBackCost(this.mFindBackInfo[a], false) == 0; + if (flag5) + { + result = -1; + } + else + { + bool flag6 = this.GetFindBackCost(this.mFindBackInfo[b], true) == 0 && this.GetFindBackCost(this.mFindBackInfo[b], false) == 0; + if (flag6) + { + result = 1; + } + else + { + bool flag7 = this.HasExpFindBack(this.mFindBackInfo[a]) && this.HasExpFindBack(this.mFindBackInfo[b]); + if (flag7) + { + result = b.CompareTo(a); + } + else + { + bool flag8 = this.HasExpFindBack(this.mFindBackInfo[a]); + if (flag8) + { + result = -1; + } + else + { + bool flag9 = this.HasExpFindBack(this.mFindBackInfo[b]); + if (flag9) + { + result = 1; + } + else + { + bool flag10 = this.HasDiceBack(this.mFindBackInfo[a]) || this.HasDiceBack(this.mFindBackInfo[b]); + if (flag10) + { + int num = int.Parse(XSingleton.singleton.GetValue("RiskDiceMaxNum")); + bool flag11 = XSuperRiskDocument.Doc.LeftDiceTime >= num; + if (flag11) + { + bool flag12 = this.HasDiceBack(this.mFindBackInfo[a]); + if (flag12) + { + return 1; + } + return -1; + } + } + result = b.CompareTo(a); + } + } + } + } + } + } + } + } + } + return result; + } + + private void InitBackData() + { + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + } + List findBackInfo = this._doc.FindBackInfo; + this.mFindBackInfo.Clear(); + this.mHasInfo = false; + bool flag2 = findBackInfo != null; + if (flag2) + { + for (int i = 0; i < findBackInfo.Count; i++) + { + bool flag3 = findBackInfo[i].dragonCoinFindBackItems.Count != 0 || findBackInfo[i].goldCoinFindBackItems.Count != 0; + if (flag3) + { + this.mHasInfo = true; + } + } + } + bool flag4 = !this.mHasInfo; + if (flag4) + { + bool flag5 = base.IsVisible(); + if (flag5) + { + this.mButtonsContent.SetVisible(false); + this.mAilin.SetVisible(true); + this.mTipName.SetVisible(false); + } + } + else + { + bool flag6 = base.IsVisible(); + if (flag6) + { + this.mButtonsContent.SetVisible(true); + this.mAilin.SetVisible(false); + } + findBackInfo.Sort(new Comparison(this.compare)); + for (int j = 0; j < findBackInfo.Count; j++) + { + int num = XFastEnumIntEqualityComparer.ToInt(findBackInfo[j].id); + bool flag7 = this.mFindBackInfo.ContainsKey(num); + if (flag7) + { + this.mFindBackInfo[num].findbackinfo.Add(findBackInfo[j]); + } + else + { + FindBackData findBackData = new FindBackData(); + findBackData.findbackinfo.Add(findBackInfo[j]); + this.mFindBackInfo[num] = findBackData; + findBackData.findid = num; + this.mFindBackInfo[num].isfind = false; + this.mFindBackInfo[num].findindex = 0; + } + this.mFindBackInfo[num].maxfindback += findBackInfo[j].findBackCount; + for (int k = 0; k < findBackInfo[j].goldCoinFindBackItems.Count; k++) + { + int itemID = (int)findBackInfo[j].goldCoinFindBackItems[k].itemID; + bool flag8 = findBackInfo[j].findBackCount == 0 && !this.mFindBackInfo[num].isfind; + if (flag8) + { + this.mFindBackInfo[num].findindex++; + } + bool flag9 = findBackInfo[j].findBackCount != 0; + if (flag9) + { + this.mFindBackInfo[num].isfind = true; + } + bool flag10 = !this.mFindBackInfo[num].goldItemCount.ContainsKey(itemID); + if (flag10) + { + this.mFindBackInfo[num].goldItemCount[itemID] = new List(); + } + this.mFindBackInfo[num].goldItemCount[itemID].Add((int)findBackInfo[j].goldCoinFindBackItems[k].itemCount); + } + List>> list = new List>>(this.mFindBackInfo[num].goldItemCount); + list.Sort((KeyValuePair> s1, KeyValuePair> s2) => s1.Key.CompareTo(s2.Key)); + this.mFindBackInfo[num].goldItemCount.Clear(); + for (int l = 0; l < list.Count; l++) + { + this.mFindBackInfo[num].goldItemCount[list[l].Key] = list[l].Value; + } + bool flag11 = findBackInfo[j].id == ItemFindBackType.NestBack; + bool flag12 = flag11; + if (flag12) + { + ItemBackTable.RowData rewardBackByIndex = XWelfareDocument.GetRewardBackByIndex(num); + bool flag13 = rewardBackByIndex != null; + if (flag13) + { + for (int m = 0; m < (int)rewardBackByIndex.ItemDragonCoin.count; m++) + { + bool flag14 = !this.mFindBackInfo[num].dragonCoinItemCount.ContainsKey(rewardBackByIndex.ItemDragonCoin[m, 0]); + if (flag14) + { + this.mFindBackInfo[num].dragonCoinItemCount[rewardBackByIndex.ItemDragonCoin[m, 0]] = new List(); + } + this.mFindBackInfo[num].dragonCoinItemCount[rewardBackByIndex.ItemDragonCoin[m, 0]].Add(rewardBackByIndex.ItemDragonCoin[m, 1]); + } + } + } + else + { + for (int n = 0; n < findBackInfo[j].dragonCoinFindBackItems.Count; n++) + { + int itemID2 = (int)findBackInfo[j].dragonCoinFindBackItems[n].itemID; + bool flag15 = !this.mFindBackInfo[num].dragonCoinItemCount.ContainsKey(itemID2); + if (flag15) + { + this.mFindBackInfo[num].dragonCoinItemCount[itemID2] = new List(); + } + this.mFindBackInfo[num].dragonCoinItemCount[itemID2].Add((int)findBackInfo[j].dragonCoinFindBackItems[n].itemCount); + } + } + list = new List>>(this.mFindBackInfo[num].dragonCoinItemCount); + list.Sort((KeyValuePair> s1, KeyValuePair> s2) => s1.Key.CompareTo(s2.Key)); + this.mFindBackInfo[num].dragonCoinItemCount.Clear(); + for (int num2 = 0; num2 < list.Count; num2++) + { + this.mFindBackInfo[num].dragonCoinItemCount[list[num2].Key] = list[num2].Value; + } + } + } + } + + public bool HasRedPoint() + { + List list = new List(this.mFindBackInfo.Keys); + int i = 0; + while (i < this.mFindBackInfo.Count) + { + bool flag = XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.FATIGUE_GET) <= list[i] && XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.FATIGUE_BUY) >= list[i]; + if (!flag) + { + goto IL_61; + } + bool flag2 = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE) >= this.mFullFatige; + if (!flag2) + { + goto IL_61; + } + IL_DF: + i++; + continue; + IL_61: + bool flag3 = list[i] == XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.DICE_BACK); + if (flag3) + { + int num = int.Parse(XSingleton.singleton.GetValue("RiskDiceMaxNum")); + bool flag4 = XSuperRiskDocument.Doc.LeftDiceTime >= num; + if (flag4) + { + goto IL_DF; + } + } + bool flag5 = this.mFindBackInfo[list[i]].maxfindback > 0; + if (flag5) + { + return !this._doc.GetFirstClick(XSysDefine.XSyS_Welfare_RewardBack); + } + goto IL_DF; + } + return false; + } + + public override void RefreshData() + { + this.InitBackData(); + bool flag = !base.IsVisible(); + if (!flag) + { + this.mRewardBackPool.ReturnAll(false); + bool flag2 = XSingleton.singleton.XPlayerData == null; + if (!flag2) + { + XSingleton.singleton.AddLog("Findback info num: ", this.mFindBackInfo.Count.ToString(), null, null, null, null, XDebugColor.XDebug_None); + List list = new List(this.mFindBackInfo.Keys); + int num = 0; + uint level = XSingleton.singleton.XPlayerData.Level; + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FINDBACK_ITEM)); + bool flag3 = list.Count > 1; + if (flag3) + { + list.Sort(new Comparison(this.compareids)); + } + for (int i = 0; i < this.mFindBackInfo.Count; i++) + { + bool flag4 = ((this.mIsNormalFind && this.mFindBackInfo[list[i]].goldItemCount.Count == 0) || (!this.mIsNormalFind && this.mFindBackInfo[list[i]].dragonCoinItemCount.Count == 0)) && (this.GetFindBackCost(this.mFindBackInfo[list[i]], true) != 0 || this.GetFindBackCost(this.mFindBackInfo[list[i]], false) != 0); + if (!flag4) + { + bool flag5 = (level == 32u || level == 40u || level == 50u) && specificDocument.IsInLevelSeal() && list[i] == 4; + if (!flag5) + { + GameObject gameObject = this.mRewardBackPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.mRewardBackPool.TplPos.x, this.mRewardBackPool.TplPos.y - (float)(num * this.mRewardBackPool.TplHeight), 0f); + num++; + XSingleton.singleton.AddLog("The item index: ", num.ToString(), null, null, null, null, XDebugColor.XDebug_None); + IXUISprite ixuisprite = gameObject.transform.Find("Item").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Item1").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = gameObject.transform.Find("Item2").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("desc").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = gameObject.transform.Find("Go").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = gameObject.transform.Find("Free").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite4 = gameObject.transform.Find("Go/icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite5 = gameObject.transform.Find("GoBoader").GetComponent("XUISprite") as IXUISprite; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.TryFindBack)); + ixuibutton.ID = (ulong)((long)list[i]); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.TryFindBack)); + ixuibutton2.ID = (ulong)((long)list[i]); + ixuisprite5.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.WarningFatigeFull)); + bool flag6 = this.GetFindBackCost(this.mFindBackInfo[list[i]], true) == 0 && this.GetFindBackCost(this.mFindBackInfo[list[i]], false) == 0; + Dictionary> dictionary; + if (flag6) + { + ixuibutton.SetVisible(false); + ixuibutton2.SetVisible(true); + ixuibutton = ixuibutton2; + bool flag7 = this.mIsNormalFind; + if (flag7) + { + dictionary = this.mFindBackInfo[list[i]].goldItemCount; + } + else + { + dictionary = this.mFindBackInfo[list[i]].dragonCoinItemCount; + } + } + else + { + ixuibutton.SetVisible(true); + ixuibutton2.SetVisible(false); + bool flag8 = this.mIsNormalFind; + if (flag8) + { + dictionary = this.mFindBackInfo[list[i]].goldItemCount; + ixuisprite4.SetSprite("icon-1"); + } + else + { + dictionary = this.mFindBackInfo[list[i]].dragonCoinItemCount; + this.mWanFindNum = 1; + this.mCurData = this.mFindBackInfo[list[i]]; + bool flag9 = itemCount > 0UL && (int)itemCount * this.mBackItem2DragonCoin >= this.GetCurCost(); + if (flag9) + { + ixuisprite4.SetSprite("icon-18"); + } + else + { + ixuisprite4.SetSprite("icon-28"); + } + } + } + bool flag10 = dictionary == null || dictionary.Count == 0; + if (flag10) + { + return; + } + IXUISprite[] array = new IXUISprite[] + { + ixuisprite, + ixuisprite2, + ixuisprite3 + }; + for (int j = 0; j < array.Length; j++) + { + array[j].SetVisible(false); + } + List list2 = new List(dictionary.Keys); + for (int k = 0; k < dictionary.Count; k++) + { + bool flag11 = k >= 3; + if (flag11) + { + break; + } + array[k].SetVisible(true); + XItem xitem = XBagDocument.MakeXItem(list2[k], false); + xitem.itemCount = dictionary[list2[k]][0]; + XSingleton.singleton.DrawItem(array[k].gameObject, xitem); + IXUISprite ixuisprite6 = array[k].transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite6.ID = (ulong)((long)list2[k]); + ixuisprite6.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowItemTip)); + } + ItemBackTable.RowData rewardBackByIndex = XWelfareDocument.GetRewardBackByIndex(list[i]); + bool flag12 = rewardBackByIndex != null; + if (flag12) + { + ixuilabel.SetText(rewardBackByIndex.SystemName); + ixuilabel2.SetText(rewardBackByIndex.Desc); + } + ixuisprite5.SetVisible(false); + bool flag13 = this.mFindBackInfo[list[i]].maxfindback <= 0; + if (flag13) + { + ixuibutton.SetEnable(false, false); + } + else + { + bool flag14 = this.mFindBackInfo[list[i]].goldItemCount.ContainsKey(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FATIGUE)) || this.mFindBackInfo[list[i]].dragonCoinItemCount.ContainsKey(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FATIGUE)); + if (flag14) + { + bool flag15 = XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE) >= 200UL; + if (flag15) + { + ixuibutton.SetEnable(false, false); + ixuisprite5.SetVisible(true); + } + else + { + ixuibutton.SetEnable(true, false); + ixuisprite5.SetVisible(false); + } + } + else + { + bool flag16 = this.mFindBackInfo[list[i]].goldItemCount.ContainsKey(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DICE)) || this.mFindBackInfo[list[i]].dragonCoinItemCount.ContainsKey(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DICE)); + if (flag16) + { + int num2 = int.Parse(XSingleton.singleton.GetValue("RiskDiceMaxNum")); + bool flag17 = XSuperRiskDocument.Doc.LeftDiceTime >= num2; + if (flag17) + { + ixuibutton.SetEnable(false, false); + } + else + { + ixuibutton.SetEnable(true, false); + } + } + else + { + ixuibutton.SetEnable(true, false); + } + } + } + } + } + } + bool flag18 = XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE) >= 200UL && this.mHasInfo; + if (flag18) + { + this.mTipName.SetVisible(true); + } + else + { + this.mTipName.SetVisible(false); + } + } + } + } + + public void OnFindTypeClick(IXUISprite sp) + { + bool flag = sp.ID == 1UL; + if (flag) + { + this.mIsNormalFind = true; + } + else + { + this.mIsNormalFind = false; + } + this.RefreshData(); + this.mScrollView.SetPosition(0f); + } + + public void OnCloseFindBorad(IXUISprite sp) + { + this.mPanelHint.SetVisible(false); + } + + private int GetFindBackCost(FindBackData data, bool isdragoncoin) + { + int num = 0; + for (int i = 0; i < data.findbackinfo.Count; i++) + { + if (isdragoncoin) + { + num += data.findbackinfo[i].dragonCoinCost; + } + else + { + num += data.findbackinfo[i].goldCoinCost; + } + } + return num; + } + + private bool HasExpFindBack(FindBackData data) + { + List list = new List(data.goldItemCount.Keys); + bool flag = list.Contains(XFastEnumIntEqualityComparer.ToInt(ItemEnum.EXP)); + bool result; + if (flag) + { + result = true; + } + else + { + list = new List(data.dragonCoinItemCount.Keys); + bool flag2 = list.Contains(XFastEnumIntEqualityComparer.ToInt(ItemEnum.EXP)); + result = flag2; + } + return result; + } + + private bool HasDiceBack(FindBackData data) + { + List list = new List(data.goldItemCount.Keys); + bool flag = list.Contains(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DICE)); + bool result; + if (flag) + { + result = true; + } + else + { + list = new List(data.dragonCoinItemCount.Keys); + bool flag2 = list.Contains(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DICE)); + result = flag2; + } + return result; + } + + private void InitFindBackItem() + { + this.mRewardItemPool.FakeReturnAll(); + bool flag = this.mIsNormalFind; + Dictionary> dictionary; + if (flag) + { + dictionary = this.mCurData.goldItemCount; + } + else + { + dictionary = this.mCurData.dragonCoinItemCount; + } + bool flag2 = dictionary == null || dictionary.Count == 0; + if (!flag2) + { + List list = new List(dictionary.Keys); + for (int i = 0; i < dictionary.Count; i++) + { + GameObject gameObject = this.mRewardItemPool.FetchGameObject(false); + XItem xitem = XBagDocument.MakeXItem(list[i], false); + ItemBackTable.RowData rewardBackByIndex = XWelfareDocument.GetRewardBackByIndex(this.mCurData.findid); + bool flag3 = rewardBackByIndex != null; + if (flag3) + { + int num = Mathf.Min(this.mCurData.findbackinfo[0].findBackCount, this.mWanFindNum); + int num2 = (num == this.mWanFindNum) ? 0 : (this.mWanFindNum - num); + xitem.itemCount = num * dictionary[list[i]][0]; + int num3 = 1; + for (int j = 0; j < num2 / rewardBackByIndex.count; j++) + { + bool flag4 = j + 1 < dictionary[list[i]].Count; + if (flag4) + { + xitem.itemCount += dictionary[list[i]][j + 1] * rewardBackByIndex.count; + num3++; + } + } + bool flag5 = num3 < dictionary[list[i]].Count; + if (flag5) + { + xitem.itemCount += num2 % rewardBackByIndex.count * dictionary[list[i]][num3]; + } + } + int num4 = (i % 2 == 0) ? 1 : -1; + int num5 = this.mRewardItemPool.TplWidth / 2; + bool flag6 = list.Count % 2 == 1; + if (flag6) + { + num5 = 0; + } + xitem.Description.ItemDrawer.DrawItem(gameObject, xitem, true); + gameObject.transform.localPosition = new Vector3(this.mRewardItemPool.TplPos.x + (float)(num4 * ((i + 1) / 2) * this.mRewardItemPool.TplWidth) + (float)num5, this.mRewardItemPool.TplPos.y, this.mRewardItemPool.TplPos.z); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)list[i]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowItemTip)); + } + } + } + + private bool TryFindBack(IXUIButton btn) + { + this.mFindID = (int)btn.ID; + this.mWanFindNum = 1; + this.mCurData = this.mFindBackInfo[this.mFindID]; + this.mFindMax = this.mCurData.maxfindback; + this.mPanelHint.SetVisible(true); + this.mRewardItemPool.ReturnAll(false); + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FINDBACK_ITEM)); + bool flag = !this.mIsNormalFind && (int)itemCount * this.mBackItem2DragonCoin >= this.GetCurCost(); + if (flag) + { + this.mIsToolFind = true; + } + else + { + this.mIsToolFind = false; + } + this.RefreshFindInfo(); + return true; + } + + private int GetCurCost() + { + int num = 0; + int num2 = this.mWanFindNum; + bool flag = this.mIsNormalFind; + if (flag) + { + for (int i = 0; i < this.mCurData.findbackinfo.Count; i++) + { + int num3 = (num2 < this.mCurData.findbackinfo[i].findBackCount) ? num2 : this.mCurData.findbackinfo[i].findBackCount; + bool flag2 = num2 > 0; + if (!flag2) + { + break; + } + num += num3 * this.mCurData.findbackinfo[i].goldCoinCost; + num2 -= this.mCurData.findbackinfo[i].findBackCount; + } + } + else + { + for (int j = 0; j < this.mCurData.findbackinfo.Count; j++) + { + int num4 = (num2 < this.mCurData.findbackinfo[j].findBackCount) ? num2 : this.mCurData.findbackinfo[j].findBackCount; + bool flag3 = num2 > 0; + if (!flag3) + { + break; + } + num += num4 * this.mCurData.findbackinfo[j].dragonCoinCost; + num2 -= this.mCurData.findbackinfo[j].findBackCount; + } + } + return num; + } + + public int GetSingleFindBackNum() + { + bool flag = this.mIsNormalFind; + if (flag) + { + List> list = new List>(this.mCurData.goldItemCount.Values); + bool flag2 = list.Count > 0; + if (flag2) + { + return list[0][0]; + } + } + else + { + List> list2 = new List>(this.mCurData.dragonCoinItemCount.Values); + bool flag3 = list2.Count > 0; + if (flag3) + { + return list2[0][0]; + } + } + return 0; + } + + private void RefreshFindInfo() + { + this.mFindBackNum.SetText(this.mWanFindNum.ToString()); + this.mCostNum.SetText(this.GetCurCost().ToString()); + bool flag = this.mIsNormalFind; + if (flag) + { + this.mMoneyType.SetSprite("icon-1"); + this.mFindBackName.SetText(XSingleton.singleton.GetString("WELFARE_GOLD_BACK")); + } + else + { + bool flag2 = !this.mIsToolFind; + if (flag2) + { + this.mMoneyType.SetSprite("icon-28"); + } + else + { + this.mMoneyType.SetSprite("icon-18"); + this.mCostNum.SetText((this.GetCurCost() / this.mBackItem2DragonCoin).ToString()); + } + this.mFindBackName.SetText(XSingleton.singleton.GetString("WELFARE_DRAGON_BACK")); + } + this.InitFindBackItem(); + } + + private bool SubFindCount(IXUIButton btn) + { + this.mWanFindNum--; + bool flag = this.mWanFindNum <= 0; + if (flag) + { + this.mWanFindNum = 1; + } + this.mNumberInput.SetText(this.mWanFindNum.ToString()); + this.RefreshFindInfo(); + return true; + } + + private bool AddFindCount(IXUIButton btn) + { + this.mWanFindNum++; + bool flag = false; + ulong itemCount = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FINDBACK_ITEM)); + bool flag2 = this.mIsToolFind; + if (flag2) + { + bool flag3 = this.mWanFindNum <= this.mFindMax; + if (flag3) + { + bool flag4 = this.GetCurCost() > (int)itemCount * this.mBackItem2DragonCoin; + if (flag4) + { + this.mWanFindNum--; + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_ITEMMAX"), "fece00"); + flag = true; + } + } + else + { + bool flag5 = this.mWanFindNum > this.mFindMax; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_REACH_MAX"), "fece00"); + flag = true; + } + this.mWanFindNum = ((this.mFindMax > 0) ? this.mFindMax : 1); + } + } + else + { + bool flag6 = this.mWanFindNum >= this.mFindMax; + if (flag6) + { + bool flag7 = this.mWanFindNum > this.mFindMax; + if (flag7) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_REACH_MAX"), "fece00"); + flag = true; + } + this.mWanFindNum = ((this.mFindMax > 0) ? this.mFindMax : 1); + } + } + bool flag8 = XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.FATIGUE_GET) <= this.mCurData.findid && XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.FATIGUE_BUY) >= this.mCurData.findid; + if (flag8) + { + bool flag9 = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE) + (this.mWanFindNum - 1) * this.GetSingleFindBackNum() >= this.mFullFatige && this.mWanFindNum > 1; + if (flag9) + { + this.mWanFindNum--; + bool flag10 = !flag; + if (flag10) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_FATIGE_MAX"), "fece00"); + } + } + } + bool flag11 = XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.DICE_BACK) == this.mCurData.findid; + if (flag11) + { + int num = int.Parse(XSingleton.singleton.GetValue("RiskDiceMaxNum")); + bool flag12 = XSuperRiskDocument.Doc.LeftDiceTime + this.mWanFindNum * this.GetSingleFindBackNum() > num && this.mWanFindNum > 1; + if (flag12) + { + this.mWanFindNum--; + bool flag13 = !flag; + if (flag13) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_REACH_MAX"), "fece00"); + } + } + } + this.mNumberInput.SetText(this.mWanFindNum.ToString()); + this.RefreshFindInfo(); + return true; + } + + private bool DoFindBack(IXUIButton btn) + { + bool flag = this.mWanFindNum == 0; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.FATIGUE_GET) <= this.mCurData.findid && XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.FATIGUE_BUY) >= this.mCurData.findid; + if (flag2) + { + int num = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE); + bool flag3 = num + this.mWanFindNum * this.GetSingleFindBackNum() > int.Parse(XSingleton.singleton.GetValue("MaxFatigue")); + if (flag3) + { + XSingleton.singleton.ShowFatigueSureDlg(new ButtonClickEventHandler(this.GetFatigueSure)); + return true; + } + bool flag4 = num + this.mWanFindNum * this.GetSingleFindBackNum() >= this.mMaxFatige; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_FATIGE_FULL"), "fece00"); + return false; + } + } + bool flag5 = XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.DICE_BACK) == this.mCurData.findid; + if (flag5) + { + int num2 = int.Parse(XSingleton.singleton.GetValue("RiskDiceMaxNum")); + bool flag6 = XSuperRiskDocument.Doc.LeftDiceTime >= num2; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_REACH_MAX"), "fece00"); + return false; + } + } + bool flag7 = this.mIsNormalFind; + if (flag7) + { + int num3 = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.GOLD); + bool flag8 = num3 < this.GetCurCost(); + if (flag8) + { + int num4 = this.GetCurCost() - num3; + int num5 = int.Parse(XSingleton.singleton.GetValue("GragonCoinExchangeGold")); + int num6 = (num4 % num5 == 0) ? (num4 / num5) : (num4 / num5 + 1); + int num7 = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN); + bool flag9 = num7 > num6; + if (flag9) + { + string text = XBagDocument.GetItemConf(XFastEnumIntEqualityComparer.ToInt(ItemEnum.GOLD)).ItemName[0]; + string text2 = XBagDocument.GetItemConf(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN)).ItemName[0]; + int num8 = num6 * num5; + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(string.Format(XStringDefineProxy.GetString("WELFARE_NOT_ENOUGH"), new object[] + { + num4, + text, + num6, + text2, + num8, + text + }), XStringDefineProxy.GetString("YES"), XStringDefineProxy.GetString("NO")); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnDoBuy), new ButtonClickEventHandler(this.OnCencelBuy)); + } + else + { + DlgBase.singleton.ShowContent(FunctionDef.JINBI); + } + return false; + } + } + else + { + int num9 = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN); + bool flag10 = !this.mIsToolFind && num9 < this.GetCurCost(); + if (flag10) + { + int num10 = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.DIAMOND); + bool flag11 = num10 > this.GetCurCost() - num9; + if (flag11) + { + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.DRAGON_COIN); + } + else + { + DlgBase.singleton.ShowContent(FunctionDef.LONGBI); + } + return false; + } + } + this.mPanelHint.SetVisible(false); + RpcC2G_ItemFindBack rpcC2G_ItemFindBack = new RpcC2G_ItemFindBack(); + rpcC2G_ItemFindBack.oArg.id = (ItemFindBackType)this.mCurData.findid; + rpcC2G_ItemFindBack.oArg.findBackCount = this.mWanFindNum; + rpcC2G_ItemFindBack.oArg.backType = 1 + (this.mIsNormalFind ? 1 : (this.mIsToolFind ? 2 : 0)); + XSingleton.singleton.Send(rpcC2G_ItemFindBack); + result = true; + } + return result; + } + + private bool GetFatigueSure(IXUIButton btn) + { + this.mPanelHint.SetVisible(false); + RpcC2G_ItemFindBack rpcC2G_ItemFindBack = new RpcC2G_ItemFindBack(); + rpcC2G_ItemFindBack.oArg.id = (ItemFindBackType)this.mCurData.findid; + rpcC2G_ItemFindBack.oArg.findBackCount = this.mWanFindNum; + rpcC2G_ItemFindBack.oArg.backType = 1 + (this.mIsNormalFind ? 1 : (this.mIsToolFind ? 2 : 0)); + XSingleton.singleton.Send(rpcC2G_ItemFindBack); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public bool OnDoBuy(IXUIButton btn) + { + RpcC2G_ItemFindBack rpcC2G_ItemFindBack = new RpcC2G_ItemFindBack(); + rpcC2G_ItemFindBack.oArg.id = (ItemFindBackType)this.mCurData.findid; + rpcC2G_ItemFindBack.oArg.findBackCount = this.mWanFindNum; + rpcC2G_ItemFindBack.oArg.backType = 1 + (this.mIsNormalFind ? 1 : (this.mIsToolFind ? 2 : 0)); + XSingleton.singleton.Send(rpcC2G_ItemFindBack); + DlgBase.singleton.SetVisible(false, true); + this.mPanelHint.SetVisible(false); + return true; + } + + public bool OnCencelBuy(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this.mPanelHint.SetVisible(false); + return true; + } + + private bool CancelFindBack(IXUIButton btn) + { + this.mPanelHint.SetVisible(false); + return true; + } + + private void WarningFatigeFull(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_FATIGE_ERROR"), "fece00"); + } + + private void ShowItemTip(IXUISprite sp) + { + XItem mainItem = XBagDocument.MakeXItem((int)sp.ID, false); + XSingleton.singleton.ShowTooltipDialog(mainItem, null, sp, false, 0u); + } + + private void InputChangeEventHandler(IXUIInput input) + { + bool flag = this.mCurData == null; + if (!flag) + { + bool flag2 = false; + int num = 1; + int.TryParse(input.GetText(), out num); + bool flag3 = num >= this.mFindMax; + if (flag3) + { + bool flag4 = num > this.mFindMax; + if (flag4) + { + flag2 = true; + } + num = ((this.mFindMax > 0) ? this.mFindMax : 1); + } + bool flag5 = XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.FATIGUE_GET) <= this.mCurData.findid && XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.FATIGUE_BUY) >= this.mCurData.findid; + if (flag5) + { + bool flag6 = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE) + (num - 1) * this.GetSingleFindBackNum() >= this.mFullFatige && num > 1 && this.GetSingleFindBackNum() > 0; + if (flag6) + { + num = (this.mFullFatige - (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE)) / this.GetSingleFindBackNum(); + } + } + bool flag7 = XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.DICE_BACK) == this.mCurData.findid; + if (flag7) + { + int num2 = int.Parse(XSingleton.singleton.GetValue("RiskDiceMaxNum")); + bool flag8 = XSuperRiskDocument.Doc.LeftDiceTime + num * this.GetSingleFindBackNum() > num2 && num > 1 && this.GetSingleFindBackNum() > 0; + if (flag8) + { + num = (num2 - XSuperRiskDocument.Doc.LeftDiceTime) / this.GetSingleFindBackNum(); + bool flag9 = !flag2; + if (flag9) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WELFARE_REACH_MAX"), "fece00"); + } + } + } + this.mWanFindNum = num; + input.SetText(num.ToString()); + this.RefreshFindInfo(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareRewardBackHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareRewardBackHandler.cs.meta new file mode 100644 index 00000000..375c25ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareRewardBackHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7bd4f96eef3a4140b9975c3517a88d9 +timeCreated: 1611404750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareYyMallHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelfareYyMallHandler.cs new file mode 100644 index 00000000..71b53863 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareYyMallHandler.cs @@ -0,0 +1,472 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + public class XWelfareYyMallHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/YyMallHandler"; + } + } + + private const int colNum = 5; + + private IXUIButton _refreshBtn; + + private IXUIButton _detailBtn; + + private IXUIScrollView _scrollView; + + private IXUILabel _freeNumLabel; + + private IXUILabel _privilegeFreeLabel; + + private IXUILabel _dragonCoinLabel; + + private IXUISprite _itemSprite; + + private Transform _noneTimesTrans; + + protected XUIPool _shopItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XFx _refreshTaskEffect; + + private Transform _effectPanel; + + private IXUISprite _extraRefresh; + + private IXUISprite _courtPrivilege; + + private XYYMallCategoryHandler _XYYMallCategoryHandler; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + protected override void OnShow() + { + base.OnShow(); + XWelfareDocument.Doc.RefreshYYMallRedPoint(); + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.ReqGoodsList(XSysDefine.XSys_Welfare_YyMall); + bool flag = this._refreshTaskEffect != null; + if (flag) + { + this._refreshTaskEffect.SetActive(false); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshScorllViewContent(); + this.RefreshBtnState(); + this.RefreshPrivilegeCount(); + } + + public override void OnUnload() + { + bool flag = this._refreshTaskEffect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._refreshTaskEffect, true); + } + DlgHandlerBase.EnsureUnload(ref this._XYYMallCategoryHandler); + base.OnUnload(); + } + + public void PlayRefreshEffect() + { + bool flag = this._refreshTaskEffect != null; + if (flag) + { + this._refreshTaskEffect.SetActive(true); + this._refreshTaskEffect.Play(this._effectPanel, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + private void RefreshPrivilegeCount() + { + int privilegeFreeRefreshCount = XWelfareDocument.Doc.GetPrivilegeFreeRefreshCount(MemberPrivilege.KingdomPrivilege_Adventurer); + int num = XWelfareDocument.Doc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer) ? Math.Max(0, privilegeFreeRefreshCount - XWelfareDocument.Doc.PayMemberPrivilege.usedRefreshShopCount) : privilegeFreeRefreshCount; + this._privilegeFreeLabel.SetText(num + "/" + privilegeFreeRefreshCount); + this._courtPrivilege.SetGrey(XWelfareDocument.Doc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court)); + this._extraRefresh.SetGrey(XWelfareDocument.Doc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer)); + } + + private void RefreshBtnState() + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + ShopTypeTable.RowData shopTypeData = specificDocument.GetShopTypeData(XSysDefine.XSys_Welfare_YyMall); + uint rereshCount = specificDocument.RereshCount; + this._refreshBtn.SetEnable(true, false); + bool flag = shopTypeData != null; + if (flag) + { + SeqRef refreshCount = shopTypeData.RefreshCount; + SeqListRef refreshCost = shopTypeData.RefreshCost; + bool flag2 = rereshCount >= refreshCount[0] + refreshCount[1]; + if (flag2) + { + this._freeNumLabel.gameObject.SetActive(false); + this._dragonCoinLabel.gameObject.SetActive(false); + this._noneTimesTrans.gameObject.SetActive(true); + this._refreshBtn.SetEnable(false, false); + } + else + { + bool flag3 = rereshCount >= refreshCount[0]; + if (flag3) + { + this._freeNumLabel.gameObject.SetActive(false); + this._dragonCoinLabel.gameObject.SetActive(true); + this._noneTimesTrans.gameObject.SetActive(false); + int index = (int)Mathf.Min(new float[] + { + rereshCount - refreshCount[0], + refreshCount[1] - 1u, + (float)(refreshCost.Count - 1) + }); + int itemID = (int)refreshCost[index, 0]; + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + bool flag4 = itemConf != null; + if (flag4) + { + this._itemSprite.SetSprite(itemConf.ItemIcon1[0]); + } + this._dragonCoinLabel.SetText(refreshCost[index, 1].ToString()); + } + else + { + this._freeNumLabel.gameObject.SetActive(true); + this._dragonCoinLabel.gameObject.SetActive(false); + this._noneTimesTrans.gameObject.SetActive(false); + this._freeNumLabel.SetText(refreshCount[0] - rereshCount + "/" + refreshCount[0]); + } + } + } + } + + private void RefreshScorllViewContent() + { + this._shopItemPool.ReturnAll(false); + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + List goodsList = specificDocument.GoodsList; + for (int i = 0; i < goodsList.Count; i++) + { + XNormalShopGoods xnormalShopGoods = goodsList[i]; + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)xnormalShopGoods.item.uid); + bool flag = dataById != null; + if (flag) + { + float num = 0f; + GameObject gameObject = this._shopItemPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.Find("UnCompleted").GetComponent("XUISprite") as IXUISprite; + ixuisprite.gameObject.SetActive(false); + bool flag2 = i == 4 || i == 9; + if (flag2) + { + num = 15f; + bool flag3 = !XWelfareDocument.Doc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + if (flag3) + { + ixuisprite.gameObject.SetActive(true); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenCourtPriviege)); + } + } + gameObject.transform.localPosition = this._shopItemPool.TplPos + new Vector3((float)(i % 5 * this._shopItemPool.TplWidth) + num, (float)(-(float)i / 5 * this._shopItemPool.TplHeight), 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject.transform.Find("Item").gameObject, xnormalShopGoods.item.itemID, (int)dataById.ItemOverlap, false); + IXUISprite ixuisprite2 = gameObject.transform.Find("Item/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)xnormalShopGoods.item.itemID); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemIcon)); + IXUIButton ixuibutton = gameObject.transform.Find("BtnBuy").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)i); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBuyShopItem)); + IXUISprite ixuisprite3 = gameObject.transform.Find("BtnBuy/MoneyCost/Icon").GetComponent("XUISprite") as IXUISprite; + string itemSmallIcon = XBagDocument.GetItemSmallIcon(xnormalShopGoods.priceType, 0u); + ixuisprite3.SetSprite(itemSmallIcon); + Transform transform = gameObject.transform.Find("buyed2"); + transform.gameObject.SetActive(dataById.IsPrecious); + GameObject gameObject2 = gameObject.transform.Find("discount").gameObject; + gameObject2.SetActive(dataById.Benefit[1] > 0u && dataById.Benefit[1] != 100u); + IXUILabel ixuilabel = gameObject.transform.Find("discount/t").GetComponent("XUILabel") as IXUILabel; + float num2 = dataById.Benefit[1] / 10f; + ixuilabel.SetText(num2.ToString()); + IXUILabel ixuilabel2 = gameObject.transform.Find("BtnBuy/MoneyCost").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(Mathf.FloorToInt((float)xnormalShopGoods.priceValue * num2 / 10f).ToString()); + GameObject gameObject3 = gameObject.transform.Find("buyed").gameObject; + uint dailyCountCondition = (uint)dataById.DailyCountCondition; + int weekCountCondition = (int)dataById.WeekCountCondition; + int num3 = 0; + bool flag4 = dataById.CountCondition > 0u; + if (flag4) + { + num3 = xnormalShopGoods.totalSoldNum; + } + else + { + bool flag5 = dailyCountCondition > 0u; + if (flag5) + { + num3 = xnormalShopGoods.soldNum; + } + else + { + bool flag6 = weekCountCondition != 0; + if (flag6) + { + num3 = (int)xnormalShopGoods.weeklyBuyCount; + } + } + } + int countCondition = (int)dataById.CountCondition; + bool flag7 = dailyCountCondition == 0u && countCondition == 0 && weekCountCondition == 0; + if (flag7) + { + ixuibutton.SetEnable(true, false); + } + else + { + bool flag8 = countCondition != 0; + if (flag8) + { + bool flag9 = num3 >= countCondition; + if (flag9) + { + ixuibutton.SetEnable(false, false); + gameObject3.SetActive(true); + } + else + { + ixuibutton.SetEnable(true, false); + gameObject3.SetActive(false); + } + } + else + { + bool flag10 = dailyCountCondition != 0u && (long)num3 >= (long)((ulong)dailyCountCondition); + if (flag10) + { + ixuibutton.SetEnable(false, false); + gameObject3.SetActive(true); + } + else + { + bool flag11 = weekCountCondition != 0 && num3 >= weekCountCondition; + if (flag11) + { + ixuibutton.SetEnable(false, false); + gameObject3.SetActive(false); + } + else + { + ixuibutton.SetEnable(true, false); + gameObject3.SetActive(false); + } + } + } + } + } + } + this._scrollView.ResetPosition(); + } + + private void OnOpenAdventurerPriviege(IXUISprite uiSprite) + { + bool flag = !XWelfareDocument.Doc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Adventurer); + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("KingdomPrivilege_Adventurer2Unlock"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OpenAdventurePriviege)); + } + } + + private bool OpenAdventurePriviege(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer, 0UL); + return true; + } + + private void OnOpenCourtPriviege(IXUISprite uiSprite) + { + bool flag = !XWelfareDocument.Doc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("KingdomPrivilege_Court2Unlock"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OpenCourtPriviege)); + } + } + + private bool OpenCourtPriviege(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Welfare_KingdomPrivilege_Court, 0UL); + return true; + } + + private void OnClickItemIcon(IXUISprite spr) + { + bool flag = spr.ID > 0UL; + if (flag) + { + XItem mainItem = XBagDocument.MakeXItem((int)spr.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, false, 0u); + } + } + + private bool OnBuyShopItem(IXUIButton button) + { + int index = (int)button.ID; + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.ReqBuy(index); + return true; + } + + private void InitProperties() + { + Transform transform = base.transform.Find("ShopItemList"); + GameObject gameObject = transform.Find("ShopItemTpl").gameObject; + this._shopItemPool.SetupPool(transform.gameObject, gameObject, 8u, false); + this._scrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + this._refreshBtn = (base.transform.Find("BtnRefresh").GetComponent("XUIButton") as IXUIButton); + this._refreshBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshShopList)); + this._detailBtn = (base.transform.Find("Detail").GetComponent("XUIButton") as IXUIButton); + this._detailBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickOnDetail)); + this._freeNumLabel = (base.transform.Find("BtnRefresh/FreeNum").GetComponent("XUILabel") as IXUILabel); + this._privilegeFreeLabel = (base.transform.Find("ExtraRefresh/Count").GetComponent("XUILabel") as IXUILabel); + this._dragonCoinLabel = (base.transform.Find("BtnRefresh/DragonCoinNum").GetComponent("XUILabel") as IXUILabel); + this._noneTimesTrans = base.transform.Find("BtnRefresh/NoneTimes"); + this._itemSprite = (base.transform.Find("BtnRefresh/DragonCoinNum/p").GetComponent("XUISprite") as IXUISprite); + this._effectPanel = base.transform.Find("Effect"); + this._refreshTaskEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_YyMallHandler_Clip01", null, true); + this._refreshTaskEffect.SetActive(false); + this._courtPrivilege = (base.transform.Find("Privilege").GetComponent("XUISprite") as IXUISprite); + this._courtPrivilege.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenCourtPriviege)); + this._extraRefresh = (base.transform.Find("ExtraRefresh").GetComponent("XUISprite") as IXUISprite); + this._extraRefresh.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenAdventurerPriviege)); + DlgHandlerBase.EnsureCreate(ref this._XYYMallCategoryHandler, base.transform, false, this); + } + + private bool OnClickOnDetail(IXUIButton button) + { + bool flag = this._XYYMallCategoryHandler != null; + if (flag) + { + this._XYYMallCategoryHandler.SetVisible(true); + } + return true; + } + + private bool OnRefreshShopList(IXUIButton button) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + bool flag = specificDocument.CanBuyPreciousShopItem(); + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("YYMallPreciousTip"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.DoRefreshShop)); + } + else + { + this.DoRefreshShop(null); + } + return true; + } + + private bool DoRefreshShop(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + bool flag = !specificDocument.IsMoneyOrItemEnough((int)this.GetMoneyId(), (int)this.GetRefreshCost()); + bool result; + if (flag) + { + specificDocument.ProcessItemOrMoneyNotEnough((int)this.GetMoneyId()); + result = false; + } + else + { + RpcC2G_QueryShopItem rpcC2G_QueryShopItem = new RpcC2G_QueryShopItem(); + rpcC2G_QueryShopItem.oArg.isrefresh = true; + rpcC2G_QueryShopItem.oArg.type = specificDocument.GetShopId(XSysDefine.XSys_Welfare_YyMall); + XSingleton.singleton.Send(rpcC2G_QueryShopItem); + this.PlayRefreshEffect(); + result = true; + } + return result; + } + + private uint GetRefreshCost() + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + ShopTypeTable.RowData shopTypeData = specificDocument.GetShopTypeData(XSysDefine.XSys_Welfare_YyMall); + bool flag = shopTypeData == null; + uint result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("ShopTypeTable not find this systenId = {0}", XSysDefine.XSys_Welfare_YyMall), null, null, null, null, null); + result = 0u; + } + else + { + uint num = 0u; + uint rereshCount = specificDocument.RereshCount; + SeqRef refreshCount = shopTypeData.RefreshCount; + SeqListRef refreshCost = shopTypeData.RefreshCost; + bool flag2 = rereshCount >= refreshCount[0]; + if (flag2) + { + int index = (int)Mathf.Min(rereshCount - refreshCount[0], (float)(refreshCost.count - 1)); + num = refreshCost[index, 1]; + } + result = num; + } + return result; + } + + private uint GetMoneyId() + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + ShopTypeTable.RowData shopTypeData = specificDocument.GetShopTypeData(XSysDefine.XSys_Welfare_YyMall); + bool flag = shopTypeData == null; + uint result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("ShopTypeTable not find this systenId = {0}", XSysDefine.XSys_Welfare_YyMall), null, null, null, null, null); + result = 0u; + } + else + { + uint rereshCount = specificDocument.RereshCount; + uint num = 0u; + SeqRef refreshCount = shopTypeData.RefreshCount; + SeqListRef refreshCost = shopTypeData.RefreshCost; + bool flag2 = rereshCount >= refreshCount[0]; + if (flag2) + { + int num2 = (int)Mathf.Min(rereshCount - refreshCount[0], refreshCount[1] - 1u); + bool flag3 = num2 >= refreshCost.Count; + if (flag3) + { + num2 = refreshCost.Count - 1; + } + num = refreshCost[num2, 0]; + } + result = num; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelfareYyMallHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelfareYyMallHandler.cs.meta new file mode 100644 index 00000000..4eeeff1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelfareYyMallHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0cf3f5fe5aa2e6248ba7bd11c7555e99 +timeCreated: 1611403176 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelffareFirstRechargrHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWelffareFirstRechargrHandler.cs new file mode 100644 index 00000000..60bc3ea9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelffareFirstRechargrHandler.cs @@ -0,0 +1,206 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWelffareFirstRechargrHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/RechargeFirstGift"; + } + } + + private IXUILabel m_contentLabel; + + private IXUIButton m_rechargeBtn; + + private IXUIButton m_getGiftBtn; + + private XUIPool m_itemPool; + + private IXUIList m_itemList; + + private List m_ItemEffectList; + + private XWelfareDocument _Doc; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.m_ItemEffectList = new List(); + this.m_contentLabel = (base.PanelObject.transform.Find("Content").GetComponent("XUILabel") as IXUILabel); + this.m_rechargeBtn = (base.PanelObject.transform.Find("Recharge").GetComponent("XUIButton") as IXUIButton); + this.m_getGiftBtn = (base.PanelObject.transform.Find("GetGift").GetComponent("XUIButton") as IXUIButton); + this.m_itemList = (base.PanelObject.transform.Find("Reward").GetComponent("XUIList") as IXUIList); + this.m_itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + Transform transform = base.PanelObject.transform.Find("Reward/item"); + this.m_itemPool.SetupPool(this.m_itemList.gameObject, transform.gameObject, 5u, false); + this.InitAwardList(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_rechargeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickRechargeHandler)); + this.m_getGiftBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickGetGiftHandler)); + } + + private bool ClickRechargeHandler(IXUIButton btn) + { + DlgBase.singleton.ShowPurchase(ItemEnum.DIAMOND); + return true; + } + + private bool ClickGetGiftHandler(IXUIButton btn) + { + this._Doc.GetPayFirstAward(); + return true; + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + bool flag = this.m_itemPool != null; + if (flag) + { + this.m_itemPool.ReturnAllDisable(); + this.m_itemPool = null; + } + bool flag2 = this.m_ItemEffectList != null; + if (flag2) + { + int i = 0; + int count = this.m_ItemEffectList.Count; + while (i < count) + { + XSingleton.singleton.DestroyFx(this.m_ItemEffectList[i], true); + i++; + } + this.m_ItemEffectList.Clear(); + this.m_ItemEffectList = null; + } + base.OnUnload(); + } + + private void ClearEffectList() + { + bool flag = this.m_ItemEffectList != null; + if (flag) + { + int i = 0; + int count = this.m_ItemEffectList.Count; + while (i < count) + { + XSingleton.singleton.DestroyFx(this.m_ItemEffectList[i], true); + i++; + } + this.m_ItemEffectList.Clear(); + } + } + + private void SetItemEffect(GameObject parent, string effectName) + { + bool flag = string.IsNullOrEmpty(effectName); + if (!flag) + { + XFx xfx = XSingleton.singleton.CreateUIFx(effectName, parent.transform, false); + bool flag2 = xfx != null; + if (flag2) + { + this.m_ItemEffectList.Add(xfx); + } + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshData(); + } + + public override void RefreshData() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.m_rechargeBtn.SetVisible(!this._Doc.HasFullFirstRecharge()); + this.m_getGiftBtn.SetVisible(this._Doc.GetCanRechargeFirst()); + } + } + + private void InitAwardList() + { + this.ClearEffectList(); + PayFirst.RowData rowData; + bool flag = this._Doc.TryGetPayFirstData(XSysDefine.XSys_Welfare_FirstRechange, out rowData); + if (flag) + { + this.m_itemPool.FakeReturnAll(); + List list = new List(); + List list2; + bool flag2 = XBagDocument.TryGetChestListConf(rowData.Award, out list2); + if (flag2) + { + int i = 0; + int count = list2.Count; + while (i < count) + { + ChestList.RowData rowData2 = list2[i]; + bool flag3 = !XBagDocument.IsProfMatchedFeable((uint)rowData2.Profession, XItemDrawerParam.DefaultProfession, false); + if (!flag3) + { + bool flag4 = XBagDocument.TryGetDropConf(rowData2.DropID, ref list); + if (flag4) + { + int j = 0; + int count2 = list.Count; + while (j < count2) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(list[j].ItemID); + GameObject gameObject = this.m_itemPool.FetchGameObject(false); + gameObject.transform.parent = this.m_itemList.gameObject.transform; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemConf, list[j].ItemCount, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Icon/Icon").GetComponent("XUISprite") as IXUISprite; + bool flag5 = itemConf == null; + if (flag5) + { + XSingleton.singleton.AddGreenLog("Not Exsit Item:", list[j].ItemID.ToString(), null, null, null, null); + } + else + { + this.SetItemEffect(ixuisprite2.gameObject, itemConf.ItemEffect); + ixuisprite.ID = (ulong)((long)list[j].ItemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + j++; + } + } + } + i++; + } + } + this.m_itemPool.ActualReturnAll(false); + this.m_itemList.Refresh(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWelffareFirstRechargrHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWelffareFirstRechargrHandler.cs.meta new file mode 100644 index 00000000..145320d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWelffareFirstRechargrHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 485931f677777dc44b00524ae25ed4e1 +timeCreated: 1611403657 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWheelOfFortuneHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWheelOfFortuneHandler.cs new file mode 100644 index 00000000..e780dafa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWheelOfFortuneHandler.cs @@ -0,0 +1,270 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWheelOfFortuneHandler : DlgHandlerBase + { + private static int START_DEGREE = 90; + + private int DIRECTION = -1; + + private int CIRCLE_DEGREE = 360; + + private int FIRST_STAGE_DEGREE = 10; + + private int SECOND_STAGE_DEGREE = 3; + + private float RESULT_STAY_TIME = 1.5f; + + private XCharacterItemDocument _doc; + + private GameObject m_Arrow; + + private IXCurve m_SpeedCurve; + + private IXUIButton m_BtnStart; + + private IXUIButton m_BtnClose; + + private IXUITweenTool m_ShowTween; + + private float m_StartSpeed; + + private int[] m_IndexMap = new int[XLotteryBoxItem.POOL_SIZE]; + + private GameObject[] m_ItemList = new GameObject[XLotteryBoxItem.POOL_SIZE]; + + private int[] m_DegreeList = new int[XLotteryBoxItem.POOL_SIZE]; + + private XItem[] m_DataList = new XItem[XLotteryBoxItem.POOL_SIZE]; + + private int m_TargetIndex; + + private int m_TargetDegree; + + private XWheelState m_State; + + private float m_CurrentDegree; + + private float m_CurrentSpeed; + + private float m_StartDecSpeedDegree; + + private float m_DecSpeedDegreeLength; + + private uint m_ResultStayTimerToken = 0u; + + private ulong m_ItemUID; + + private XItemSelector m_ItemSelector = new XItemSelector(0u); + + private XFx m_Fx = null; + + protected override void Init() + { + base.Init(); + this.DIRECTION = XSingleton.singleton.GetInt("WheelOfFortuneDirection"); + this.CIRCLE_DEGREE = 360 * this.DIRECTION; + this.FIRST_STAGE_DEGREE = (int)(float.Parse(XSingleton.singleton.GetValue("WheelOfFortuneFirstStageDegree")) * (float)this.CIRCLE_DEGREE); + this.SECOND_STAGE_DEGREE = (int)(float.Parse(XSingleton.singleton.GetValue("WheelOfFortuneSecondStageDegree")) * (float)this.CIRCLE_DEGREE); + this.RESULT_STAY_TIME = float.Parse(XSingleton.singleton.GetValue("WheelOfFortuneResultStayTime")); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XCharacterItemDocument.uuID) as XCharacterItemDocument); + GameObject gameObject = base.PanelObject.transform.Find("Bg/ItemTpl").gameObject; + GameObject gameObject2 = gameObject.transform.Find("Effect").gameObject; + this.m_ItemSelector.LoadFromUI(gameObject2, base.PanelObject.transform); + XUIPool xuipool = new XUIPool(XSingleton.singleton.m_uiTool); + xuipool.SetupPool(gameObject.transform.parent.gameObject, gameObject, (uint)XLotteryBoxItem.POOL_SIZE, false); + for (int i = 0; i < XLotteryBoxItem.POOL_SIZE; i++) + { + GameObject gameObject3 = xuipool.FetchGameObject(false); + Transform transform = base.PanelObject.transform.Find("Bg/Pos/Pos" + i); + gameObject3.transform.parent = transform; + gameObject3.transform.localPosition = Vector3.zero; + this.m_ItemList[i] = gameObject3; + IXUISprite ixuisprite = gameObject3.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnItemClicked)); + int num = (int)(Mathf.Atan2(transform.localPosition.y, transform.localPosition.x) * 57.29578f); + bool flag = this.DIRECTION * num < 0; + if (flag) + { + num += this.CIRCLE_DEGREE; + } + this.m_DegreeList[i] = num; + this.m_IndexMap[i] = i; + this.m_DataList[i] = new XNormalItem(); + } + this.m_Arrow = base.PanelObject.transform.Find("Bg/Arrow").gameObject; + this.m_SpeedCurve = (this.m_Arrow.GetComponent("XCurve") as IXCurve); + this.m_StartSpeed = this.m_SpeedCurve.Evaluate(0f) * (float)this.DIRECTION; + this.m_BtnStart = (base.PanelObject.transform.Find("Bg/BtnStart").GetComponent("XUIButton") as IXUIButton); + this.m_BtnClose = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_ShowTween = (base.PanelObject.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Fx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_WheelOfFortune_fx", base.PanelObject.transform.Find("Bg/Bg/Bg"), false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnStart.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnStartClicked)); + this.m_BtnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.m_State = XWheelState.WS_IDLE; + this.ToggleOperation(false, false); + this.m_ShowTween.PlayTween(true, -1f); + this.m_ItemSelector.Hide(); + this.m_ResultStayTimerToken = 0u; + } + + protected override void OnHide() + { + this._doc.ToggleBlock(false); + XSingleton.singleton.KillTimer(this.m_ResultStayTimerToken); + base.OnHide(); + } + + public override void OnUnload() + { + this._doc.ToggleBlock(false); + XSingleton.singleton.KillTimer(this.m_ResultStayTimerToken); + this.m_ItemSelector.Unload(); + bool flag = this.m_Fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_Fx, true); + } + this.m_Fx = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_State == XWheelState.WS_IDLE || this.m_State == XWheelState.WS_DONE; + if (!flag) + { + bool flag2 = this.m_State == XWheelState.WS_DOING_FIRST_STAGE; + if (flag2) + { + this.m_CurrentSpeed = this.m_StartSpeed; + } + else + { + this.m_CurrentSpeed = this.m_SpeedCurve.Evaluate((this.m_CurrentDegree - this.m_StartDecSpeedDegree) / this.m_DecSpeedDegreeLength) * (float)this.DIRECTION; + } + this.m_CurrentDegree += this.m_CurrentSpeed * Time.deltaTime; + bool flag3 = this.m_State == XWheelState.WS_DOING_FIRST_STAGE && this.m_CurrentDegree * (float)this.DIRECTION > this.m_StartDecSpeedDegree * (float)this.DIRECTION; + if (flag3) + { + this.m_State = XWheelState.WS_DOING_SECOND_STAGE; + } + bool flag4 = this.m_CurrentDegree * (float)this.DIRECTION >= (float)(this.m_TargetDegree * this.DIRECTION); + if (flag4) + { + this.m_CurrentDegree = (float)this.m_TargetDegree; + this.m_State = XWheelState.WS_DONE; + this._FinishDoing(); + } + this.m_Arrow.transform.localRotation = Quaternion.AngleAxis(this.m_CurrentDegree, Vector3.forward); + } + } + + private void _FinishDoing() + { + this._doc.ToggleBlock(false); + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.m_DataList[this.m_TargetIndex].itemID); + GameObject gameObject = this.m_ItemList[this.m_TargetIndex].transform.Find("Icon").gameObject; + bool flag = itemConf != null; + if (flag) + { + IXUISprite ixuisprite = this.m_ItemSelector.Effects.transform.Find("Anim").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetColor(XSingleton.singleton.GetItemQualityColor((int)itemConf.ItemQuality)); + this.m_ItemSelector.Select(gameObject); + } + this.m_ResultStayTimerToken = XSingleton.singleton.SetTimer(this.RESULT_STAY_TIME, new XTimerMgr.ElapsedEventHandler(this._FinishStay), null); + } + + private void _FinishStay(object o) + { + this.m_ResultStayTimerToken = 0u; + base.SetVisible(false); + } + + private void _RandomPosition() + { + for (int i = 0; i < XLotteryBoxItem.POOL_SIZE; i++) + { + int num = XSingleton.singleton.RandomInt(i, XLotteryBoxItem.POOL_SIZE); + int num2 = this.m_IndexMap[num]; + this.m_IndexMap[num] = this.m_IndexMap[i]; + this.m_IndexMap[i] = num2; + } + } + + public void OpenWheel(XLotteryBoxItem item) + { + base.SetVisible(true); + this._RandomPosition(); + for (int i = 0; i < XLotteryBoxItem.POOL_SIZE; i++) + { + int num = this.m_IndexMap[i]; + this.m_DataList[num].itemID = item.itemList[i].itemID; + this.m_DataList[num].itemCount = item.itemList[i].itemCount; + XSingleton.singleton.normalItemDrawer.DrawItem(this.m_ItemList[num], this.m_DataList[num].itemID, this.m_DataList[num].itemCount, false); + } + this.m_ItemUID = item.uid; + } + + public void ShowResult(int targetIndex) + { + this.ToggleOperation(true, true); + this.m_TargetIndex = this.m_IndexMap[targetIndex]; + this.m_TargetDegree = XWheelOfFortuneHandler.START_DEGREE + this.FIRST_STAGE_DEGREE + this.SECOND_STAGE_DEGREE; + this.m_StartDecSpeedDegree = (float)(XWheelOfFortuneHandler.START_DEGREE + this.FIRST_STAGE_DEGREE); + this.m_DecSpeedDegreeLength = (float)this.SECOND_STAGE_DEGREE; + int num = this.m_TargetDegree % this.CIRCLE_DEGREE; + int num2 = this.m_DegreeList[this.m_TargetIndex]; + bool flag = (num2 - num) * this.DIRECTION < 0; + if (flag) + { + num2 += this.CIRCLE_DEGREE; + } + int num3 = num2 - num; + this.m_DecSpeedDegreeLength += (float)num3; + this.m_TargetDegree += num3; + this.m_State = XWheelState.WS_DOING_FIRST_STAGE; + this.m_CurrentDegree = (float)XWheelOfFortuneHandler.START_DEGREE; + } + + public void ToggleOperation(bool bBlockClose, bool bBlockStart) + { + this.m_BtnClose.SetVisible(!bBlockClose); + this.m_BtnStart.SetVisible(!bBlockStart); + } + + private void _OnItemClicked(IXUISprite icon) + { + int num = (int)icon.ID; + XSingleton.singleton.ShowTooltipDialog(this.m_DataList[num].itemID, icon, 0u); + } + + private bool _OnCloseClicked(IXUIButton btn) + { + base.SetVisible(false); + return true; + } + + private bool _OnStartClicked(IXUIButton btn) + { + this._doc.UseItem(this.m_ItemUID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWheelOfFortuneHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWheelOfFortuneHandler.cs.meta new file mode 100644 index 00000000..4104b1f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWheelOfFortuneHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db843e908c8b2f944b8aee90b2606bb4 +timeCreated: 1611404653 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWheelState.cs b/Client/Assets/Scripts/XMainClient/UI/XWheelState.cs new file mode 100644 index 00000000..1ea36948 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWheelState.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient.UI +{ + internal enum XWheelState + { + WS_IDLE, + WS_DOING_FIRST_STAGE, + WS_DOING_SECOND_STAGE, + WS_DONE + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWheelState.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWheelState.cs.meta new file mode 100644 index 00000000..6fa59be5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWheelState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 42070d1f7fb0d874daf563d2844072fa +timeCreated: 1611403638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWorldBossDamageRankHandler.cs b/Client/Assets/Scripts/XMainClient/UI/XWorldBossDamageRankHandler.cs new file mode 100644 index 00000000..8abaf297 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWorldBossDamageRankHandler.cs @@ -0,0 +1,463 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWorldBossDamageRankHandler : DlgHandlerBase, IRankView + { + private XUIPool m_RankItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + private GameObject m_MyInfo; + + private GameObject m_MyGuildInfo; + + private IXUILabel m_MyRank; + + private IXUILabel m_MyDamage; + + private IXUILabel m_MyName; + + private IXUILabel m_MyGuildName; + + private IXUILabel m_GuildMemberNum; + + private ulong m_MyID; + + private uint timerToken = 0u; + + public bool bInBattle = false; + + private int showMaxCount; + + private static readonly string NORMAL_BG = "kuang_xd"; + + private static readonly string MY_BG = "button_xd1"; + + public IRankSource RankSource; + + private RankeType m_SelectedType = RankeType.WorldBossDamageRank; + + private List m_RankTypes; + + private XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Dictionary rankMap = new Dictionary(); + + protected override void Init() + { + Transform transform = base.PanelObject.transform.Find("Bg/ScrollView"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = transform.Find("WrapContent"); + this.m_WrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent); + transform = transform.Find("RankTpl"); + this.m_RankItemPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 2u, false); + transform = base.PanelObject.transform.Find("Bg/MyInfo"); + bool flag = transform != null; + if (flag) + { + this.m_MyInfo = transform.gameObject; + this.m_MyRank = (transform.Find("Rank").GetComponent("XUILabel") as IXUILabel); + this.m_MyDamage = (transform.Find("Value").GetComponent("XUILabel") as IXUILabel); + this.m_MyName = (this.m_MyInfo.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + } + this.m_MyGuildInfo = base.PanelObject.transform.Find("Bg/MyGuildInfo").gameObject; + this.m_MyGuildName = (this.m_MyGuildInfo.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_GuildMemberNum = (base.PanelObject.transform.Find("Bg/GuildMemberNum").GetComponent("XUILabel") as IXUILabel); + transform = base.PanelObject.transform.Find("Bg/TabList/TabTpl"); + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.RankWrapContentItemUpdated)); + this.showMaxCount = int.Parse(XSingleton.singleton.GetValue("WorldBossBattleDamageRankCount")); + } + + public override void RegisterEvent() + { + Transform transform = base.PanelObject.transform.Find("Bg/Close"); + bool flag = transform != null; + if (flag) + { + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + } + + public void SetupRanks(List rankTypes, bool inBattle) + { + this.bInBattle = inBattle; + this.m_TabPool.ReturnAll(false); + this.m_RankTypes = rankTypes; + bool flag = rankTypes.Count == 0; + if (!flag) + { + Vector3 tplPos = this.m_TabPool.TplPos; + for (int i = 0; i < rankTypes.Count; i++) + { + GameObject gameObject = this.m_TabPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(((float)i - (float)rankTypes.Count * 0.5f + 0.5f) * (float)this.m_TabPool.TplWidth, tplPos.y); + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)i); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabSelectionChanged)); + bool flag2 = i == 0; + if (flag2) + { + ixuicheckBox.bChecked = true; + } + Transform transform = gameObject.transform.Find("TextLabel"); + string str = this.bInBattle ? "_in" : "_out"; + string @string = XStringDefineProxy.GetString(rankTypes[i].ToString() + str); + bool flag3 = transform != null; + if (flag3) + { + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(@string); + ixuilabel2.SetText(@string); + } + else + { + IXUISprite ixuisprite = gameObject.transform.Find("Text").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("SelectedText").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(@string + "0"); + ixuisprite2.SetSprite(@string + "1"); + } + } + } + } + + private bool OnTabSelectionChanged(IXUICheckBox ckb) + { + bool flag = !ckb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + int num = (int)ckb.ID; + bool flag2 = num >= this.m_RankTypes.Count; + if (flag2) + { + result = true; + } + else + { + this.m_SelectedType = this.m_RankTypes[num]; + bool flag3 = this.m_MyInfo != null; + if (flag3) + { + bool flag4 = this.m_SelectedType != RankeType.GuildBossRank; + if (flag4) + { + this.m_MyName.SetText(XSingleton.singleton.Player.Attributes.Name); + this.m_MyID = XSingleton.singleton.Player.Attributes.EntityID; + } + else + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.m_MyName.SetText(specificDocument.BasicData.guildName); + this.m_MyID = specificDocument.UID; + this.m_MyInfo.gameObject.SetActive(true); + } + bool flag5 = this.m_SelectedType == RankeType.WorldBossDamageRank || this.m_SelectedType == RankeType.WorldBossGuildRank || this.m_SelectedType == RankeType.WorldBossGuildRoleRank; + if (flag5) + { + XGuildDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.m_MyGuildName.SetText(specificDocument2.BasicData.guildName); + this.m_MyInfo.gameObject.SetActive(this.m_SelectedType == RankeType.WorldBossDamageRank || this.m_SelectedType == RankeType.WorldBossGuildRoleRank); + this.m_MyGuildInfo.gameObject.SetActive(this.m_SelectedType == RankeType.WorldBossGuildRank); + } + } + bool active = this.active; + if (active) + { + this._KillTimer(); + this._ReqInfo(null); + } + result = true; + } + } + return result; + } + + protected override void OnShow() + { + base.OnShow(); + this._KillTimer(); + this._ReqInfo(null); + bool flag = this.m_MyInfo != null; + if (flag) + { + this.m_MyInfo.SetActive(false); + } + this.m_MyGuildInfo.SetActive(false); + } + + private void _ReqInfo(object param) + { + bool flag = this.RankSource != null; + if (flag) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_GUILD_BOSS; + if (flag2) + { + this.RankSource.ReqRankData(this.m_SelectedType, true); + } + else + { + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_WORLDBOSS; + if (flag3) + { + this.RankSource.ReqRankData(RankeType.WorldBossDamageRank, true); + this.RankSource.ReqRankData(RankeType.WorldBossGuildRank, true); + this.RankSource.ReqRankData(RankeType.WorldBossGuildRoleRank, true); + } + } + } + this._KillTimer(); + this.timerToken = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this._ReqInfo), null); + } + + protected override void OnHide() + { + base.OnHide(); + this.bInBattle = false; + this._KillTimer(); + } + + private void _KillTimer() + { + bool flag = this.timerToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.timerToken); + } + this.timerToken = 0u; + } + + public override void OnUnload() + { + this._KillTimer(); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + protected bool OnCloseClicked(IXUIButton go) + { + base.SetVisible(false); + return true; + } + + public void RefreshPage() + { + this.rankMap.Clear(); + ulong entityID = XSingleton.singleton.Player.Attributes.EntityID; + XBaseRankList rankList = this.RankSource.GetRankList(this.m_SelectedType); + List rankList2 = rankList.rankList; + int num = (rankList2.Count > this.showMaxCount) ? this.showMaxCount : rankList2.Count; + this.m_WrapContent.SetContentCount(num, false); + this.m_ScrollView.ResetPosition(); + bool flag = this.m_MyInfo != null && XSingleton.singleton.SceneType != SceneType.SCENE_WORLDBOSS; + if (flag) + { + this.m_MyInfo.gameObject.SetActive(true); + this.SetMyInfo(this.RankSource.GetRankList(this.m_SelectedType)); + this.m_GuildMemberNum.gameObject.SetActive(false); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_WORLDBOSS; + if (flag2) + { + bool flag3 = this.m_SelectedType == RankeType.WorldBossDamageRank; + if (flag3) + { + this.SetMyInfo(this.RankSource.GetRankList(RankeType.WorldBossDamageRank)); + } + else + { + this.SetMyInfo(this.RankSource.GetRankList(RankeType.WorldBossGuildRoleRank)); + } + this.SetMyGuildInfo(this.RankSource.GetRankList(RankeType.WorldBossGuildRank)); + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + this.m_GuildMemberNum.gameObject.SetActive(specificDocument.bInGuild); + } + } + + private void RankWrapContentItemUpdated(Transform t, int index) + { + List rankList = this.RankSource.GetRankList(this.m_SelectedType).rankList; + bool flag = index < 0 || index >= rankList.Count; + if (!flag) + { + XBaseRankInfo xbaseRankInfo = rankList[index]; + XWorldBossGuildRankInfo xworldBossGuildRankInfo = xbaseRankInfo as XWorldBossGuildRankInfo; + XWorldBossDamageRankInfo xworldBossDamageRankInfo = xbaseRankInfo as XWorldBossDamageRankInfo; + XWorldBossGuildRoleRankInfo xworldBossGuildRoleRankInfo = xbaseRankInfo as XWorldBossGuildRoleRankInfo; + float num = 0f; + bool flag2 = xworldBossGuildRankInfo != null; + if (flag2) + { + num = xworldBossGuildRankInfo.damage; + } + else + { + bool flag3 = xworldBossDamageRankInfo != null; + if (flag3) + { + num = xworldBossDamageRankInfo.damage; + } + else + { + bool flag4 = xworldBossGuildRoleRankInfo != null; + if (flag4) + { + num = xworldBossGuildRoleRankInfo.damage; + } + } + } + this.rankMap[index] = t; + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Value").GetComponent("XUILabel") as IXUILabel; + IXUISpriteAnimation ixuispriteAnimation = t.Find("Voice").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.StopAndReset(); + t = t.Find("Bg"); + bool flag5 = t != null; + if (flag5) + { + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite((xbaseRankInfo.id == this.m_MyID) ? XWorldBossDamageRankHandler.MY_BG : XWorldBossDamageRankHandler.NORMAL_BG); + } + ixuilabel.SetText(string.Format("{0}.", xbaseRankInfo.rank + 1u)); + ixuilabel2.SetText(xbaseRankInfo.name); + ixuilabel3.SetText(XSingleton.singleton.NumberFormatBillion((ulong)num)); + } + } + + public void SetMyInfo(XBaseRankList rankData) + { + bool flag = rankData.myRankInfo == null; + if (flag) + { + this.m_MyRank.SetText(XStringDefineProxy.GetString("WORLDBOSS_NO_RANK")); + this.m_MyDamage.SetText("0"); + } + else + { + bool flag2 = rankData.myRankInfo.rank == XRankDocument.INVALID_RANK || rankData.myRankInfo.id == 0UL; + if (flag2) + { + this.m_MyRank.SetText(XStringDefineProxy.GetString("WORLDBOSS_NO_RANK")); + this.m_MyDamage.SetText("0"); + } + else + { + XWorldBossDamageRankInfo xworldBossDamageRankInfo = rankData.myRankInfo as XWorldBossDamageRankInfo; + XWorldBossGuildRoleRankInfo xworldBossGuildRoleRankInfo = rankData.myRankInfo as XWorldBossGuildRoleRankInfo; + float num = 0f; + bool flag3 = xworldBossDamageRankInfo != null; + if (flag3) + { + num = xworldBossDamageRankInfo.damage; + } + else + { + bool flag4 = xworldBossGuildRoleRankInfo != null; + if (flag4) + { + num = xworldBossGuildRoleRankInfo.damage; + } + } + this.m_MyRank.SetText(string.Format("{0}. ", rankData.myRankInfo.rank + 1u)); + this.m_MyDamage.SetText(XSingleton.singleton.NumberFormatBillion((ulong)num)); + } + } + } + + public void SetMyGuildInfo(XBaseRankList guildList) + { + IXUILabel ixuilabel = this.m_MyGuildInfo.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = this.m_MyGuildInfo.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.bInGuild; + if (flag) + { + ixuilabel.SetText(""); + ixuilabel2.SetText(""); + this.m_MyGuildName.SetText(""); + } + else + { + bool flag2 = guildList.myRankInfo == null; + if (flag2) + { + ixuilabel.SetText(XStringDefineProxy.GetString("WORLDBOSS_NO_RANK")); + ixuilabel2.SetText("0"); + } + else + { + bool flag3 = guildList.myRankInfo.rank == XRankDocument.INVALID_RANK; + if (flag3) + { + ixuilabel.SetText(XStringDefineProxy.GetString("WORLDBOSS_NO_RANK")); + ixuilabel2.SetText("0"); + } + else + { + XWorldBossGuildRankInfo xworldBossGuildRankInfo = guildList.myRankInfo as XWorldBossGuildRankInfo; + float num = 0f; + bool flag4 = xworldBossGuildRankInfo != null; + if (flag4) + { + num = xworldBossGuildRankInfo.damage; + } + ixuilabel.SetText(string.Format("{0}. ", guildList.myRankInfo.rank + 1u)); + ixuilabel2.SetText(XSingleton.singleton.NumberFormatBillion((ulong)num)); + } + } + } + } + + public void SetGuildMemberCount(uint count) + { + this.m_GuildMemberNum.SetText(XStringDefineProxy.GetString("WORLDBOSS_GUILD_MEMBER_NUM", new object[] + { + count + })); + } + + public void RefreshVoice(ulong[] roles, int[] states) + { + } + + public void HideVoice() + { + List rankList = this.RankSource.GetRankList(this.m_SelectedType).rankList; + for (int i = 0; i < rankList.Count; i++) + { + Transform transform = this.rankMap[i].Find("voice"); + bool flag = transform != null; + if (flag) + { + transform.gameObject.SetActive(false); + } + Transform transform2 = this.rankMap[i].Find("speak"); + bool flag2 = transform2 != null; + if (flag2) + { + transform2.gameObject.SetActive(false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWorldBossDamageRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWorldBossDamageRankHandler.cs.meta new file mode 100644 index 00000000..87c57708 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWorldBossDamageRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72147a29dcddc284a9c31351ee4f06f2 +timeCreated: 1611403936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWorldBossEndRankView.cs b/Client/Assets/Scripts/XMainClient/UI/XWorldBossEndRankView.cs new file mode 100644 index 00000000..3a152c27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWorldBossEndRankView.cs @@ -0,0 +1,343 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWorldBossEndRankView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/WorldBossEndRankDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_WorldBoss_EndRank); + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XWorldBossDocument _Doc; + + private RankeType m_CurrRankType; + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + this._Doc.WorldBossEndRankView = this; + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_DamageRankTab.bChecked = true; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_BtnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_BtnGoReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoRewardClick)); + base.uiBehaviour.m_DamageRankTab.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(RankeType.WorldBossDamageRank)); + base.uiBehaviour.m_DamageRankTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRankTabClicked)); + base.uiBehaviour.m_GuildRankTab.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(RankeType.WorldBossGuildRank)); + base.uiBehaviour.m_GuildRankTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRankTabClicked)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DamageRankWrapContentItemUpdated)); + } + + private bool OnRankTabClicked(IXUICheckBox checkbox) + { + bool flag = !checkbox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + this.m_CurrRankType = (RankeType)checkbox.ID; + RankeType currRankType = this.m_CurrRankType; + if (currRankType != RankeType.WorldBossGuildRank) + { + if (currRankType == RankeType.WorldBossDamageRank) + { + specificDocument.ReqWorldBossEnd(); + } + } + else + { + specificDocument.ReqRankData(this.m_CurrRankType, false); + } + result = true; + } + return result; + } + + protected override void OnUnload() + { + this._Doc.WorldBossDescView = null; + base.OnUnload(); + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnGoRewardClick(IXUIButton button) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Mail, 0UL); + this.SetVisibleWithAnimation(false, null); + return true; + } + + public void RefreshDamageRank() + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_RankTitle.SetText(XSingleton.singleton.GetString("WORLDBOSS_RESULT_RANK_ROLE")); + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + List endListDamage = specificDocument.EndListDamage; + bool flag2 = endListDamage.Count == 0; + if (flag2) + { + base.uiBehaviour.m_RankPanel_EmptyRank.gameObject.SetActive(true); + base.uiBehaviour.m_RankPanel_EmptyRank.SetText(XStringDefineProxy.GetString("GUILD_BOSS_EMPTY_RANK")); + base.uiBehaviour.m_WrapContent.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_RankPanel_EmptyRank.gameObject.SetActive(false); + base.uiBehaviour.m_WrapContent.gameObject.SetActive(true); + base.uiBehaviour.m_WrapContent.SetContentCount(endListDamage.Count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + } + + public void RefreshGuildRank() + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_RankTitle.SetText(XSingleton.singleton.GetString("WORLDBOSS_RESULT_RANK_GUILD")); + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + List rankList = specificDocument.GuildRankList.rankList; + bool flag2 = rankList == null || rankList.Count == 0; + if (flag2) + { + base.uiBehaviour.m_RankPanel_EmptyRank.gameObject.SetActive(true); + base.uiBehaviour.m_RankPanel_EmptyRank.SetText(XStringDefineProxy.GetString("GUILD_BOSS_EMPTY_RANK")); + base.uiBehaviour.m_WrapContent.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_RankPanel_EmptyRank.gameObject.SetActive(false); + base.uiBehaviour.m_WrapContent.gameObject.SetActive(true); + base.uiBehaviour.m_WrapContent.SetContentCount(rankList.Count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + } + + private void DamageRankWrapContentItemUpdated(Transform t, int index) + { + bool flag = !base.IsVisible(); + if (!flag) + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + IXUISprite ixuisprite = t.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel2 = t.Find("Value").GetComponent("XUILabel") as IXUILabel; + float num = 0f; + string inputText = ""; + bool flag2 = this.m_CurrRankType == RankeType.WorldBossDamageRank; + if (flag2) + { + List endListDamage = specificDocument.EndListDamage; + bool flag3 = endListDamage == null; + if (flag3) + { + return; + } + bool flag4 = index < 0 || index >= endListDamage.Count; + if (flag4) + { + return; + } + WorldBossDamageInfo worldBossDamageInfo = endListDamage[index]; + bool flag5 = worldBossDamageInfo == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("XGuildDragonView.GuildRankWrapContentItemUpdated is null ", null, null, null, null, null); + return; + } + num = worldBossDamageInfo.damage; + inputText = worldBossDamageInfo.rolename; + } + else + { + bool flag6 = this.m_CurrRankType == RankeType.WorldBossGuildRank; + if (flag6) + { + List rankList = specificDocument.GuildRankList.rankList; + bool flag7 = rankList == null; + if (flag7) + { + return; + } + bool flag8 = index < 0 || index >= rankList.Count; + if (flag8) + { + return; + } + XBaseRankInfo xbaseRankInfo = rankList[index]; + bool flag9 = xbaseRankInfo == null; + if (flag9) + { + XSingleton.singleton.AddErrorLog("XGuildDragonView.GuildRankWrapContentItemUpdated is null ", null, null, null, null, null); + return; + } + num = xbaseRankInfo.value; + inputText = xbaseRankInfo.name; + } + } + ixuilabel2.SetText(XSingleton.singleton.NumberFormatBillion((ulong)num)); + ixuilabelSymbol.InputText = inputText; + bool flag10 = index < 3; + if (flag10) + { + ixuisprite.spriteName = string.Format("N{0}", index + 1); + ixuisprite.SetVisible(true); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText((index + 1).ToString()); + } + } + } + + public void SetMyRankFrame() + { + GameObject myRank = base.uiBehaviour.m_MyRank; + GameObject myOutOfRange = base.uiBehaviour.m_MyOutOfRange; + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + List rankList = specificDocument.GuildRankList.rankList; + bool flag = rankList != null && rankList.Count == 0; + if (flag) + { + myOutOfRange.SetActive(false); + myRank.SetActive(false); + } + else + { + bool flag2 = this.m_CurrRankType == RankeType.WorldBossGuildRank; + if (flag2) + { + XGuildDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag3 = !specificDocument2.bInGuild; + if (flag3) + { + myOutOfRange.SetActive(false); + myRank.SetActive(false); + return; + } + } + bool flag4 = specificDocument.GuildRankList.myRankInfo == null; + if (flag4) + { + myRank.SetActive(false); + } + else + { + myRank.SetActive(true); + IXUISprite ixuisprite = myRank.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = myRank.transform.Find("Name").gameObject.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = myRank.transform.Find("Value").gameObject.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = myRank.transform.Find("Rank").gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabelSymbol.InputText = specificDocument.GuildRankList.myRankInfo.name; + ixuilabel.SetText(XSingleton.singleton.NumberFormatBillion(specificDocument.GuildRankList.myRankInfo.value)); + bool flag5 = specificDocument.GuildRankList.myRankInfo.rank < 3u; + if (flag5) + { + ixuisprite.spriteName = string.Format("N{0}", specificDocument.GuildRankList.myRankInfo.rank + 1u); + ixuisprite.SetVisible(true); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel2.SetText((specificDocument.GuildRankList.myRankInfo.rank + 1u).ToString()); + } + myOutOfRange.SetActive(specificDocument.GuildRankList.myRankInfo.rank == XRankDocument.INVALID_RANK); + } + } + } + + public void SetMyRankFrame(WorldBossDamageInfo myInfo) + { + XWorldBossDocument specificDocument = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + GameObject myRank = base.uiBehaviour.m_MyRank; + GameObject myOutOfRange = base.uiBehaviour.m_MyOutOfRange; + List endListDamage = specificDocument.EndListDamage; + bool flag = endListDamage.Count == 0; + if (flag) + { + myOutOfRange.SetActive(false); + myRank.SetActive(false); + } + else + { + bool flag2 = myInfo == null; + if (flag2) + { + myRank.SetActive(false); + } + else + { + myRank.SetActive(true); + IXUISprite ixuisprite = myRank.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = myRank.transform.Find("Name").gameObject.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = myRank.transform.Find("Value").gameObject.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = myRank.transform.Find("Rank").gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabelSymbol.InputText = myInfo.rolename; + ixuilabel.SetText(XSingleton.singleton.NumberFormatBillion((ulong)myInfo.damage)); + bool flag3 = myInfo.rank < 3u; + if (flag3) + { + ixuisprite.spriteName = string.Format("N{0}", myInfo.rank + 1u); + ixuisprite.SetVisible(true); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel2.SetText((myInfo.rank + 1u).ToString()); + } + myOutOfRange.SetActive(myInfo.rank == XRankDocument.INVALID_RANK); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWorldBossEndRankView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWorldBossEndRankView.cs.meta new file mode 100644 index 00000000..28c89b20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWorldBossEndRankView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56329a4464f472a458c3a7b0fe585304 +timeCreated: 1611403742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWorldBossResultView.cs b/Client/Assets/Scripts/XMainClient/UI/XWorldBossResultView.cs new file mode 100644 index 00000000..f751324c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWorldBossResultView.cs @@ -0,0 +1,83 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWorldBossResultView : DlgBase + { + public override string fileName + { + get + { + return "Battle/Comcotinue"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XWorldBossDocument _Doc; + + private XElapseTimer countDownTime = new XElapseTimer(); + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + this._Doc.WorldBossResultView = this; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_ReturnBtn.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnReturn)); + } + + private void OnReturn(IXUISprite sp) + { + this._Doc.ReqQutiScene(); + } + + public void ShowResult(bool isWin) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.countDownTime.LeftTime = float.Parse(XSingleton.singleton.GetValue("WorldBossGameEndCountDown")); + this.SetVisibleWithAnimation(true, new DlgBase.OnAnimationOver(this.StartCountDown)); + if (isWin) + { + base.uiBehaviour.m_Desription.SetText(XStringDefineProxy.GetString("WORLDBOSS_CHANGGLE_DES_WIN")); + } + else + { + base.uiBehaviour.m_Desription.SetText(XStringDefineProxy.GetString("WORLDBOSS_CHANGGLE_DES_FAILED")); + } + } + } + + private void StartCountDown() + { + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWorldBossResultView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWorldBossResultView.cs.meta new file mode 100644 index 00000000..75f33ae9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWorldBossResultView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cafd92e69c4d21441a2b27f3cf9ab894 +timeCreated: 1611404544 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XWorldBossView.cs b/Client/Assets/Scripts/XMainClient/UI/XWorldBossView.cs new file mode 100644 index 00000000..d2a5d120 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWorldBossView.cs @@ -0,0 +1,618 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XWorldBossView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/WorldBossDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XWorldBossDocument _Doc; + + private XLeftTimeCounter m_LeftTime; + + private RankeType m_CurrRankType; + + private ulong SubscribebuttonID = 0UL; + + private uint mBossHp = 0u; + + protected override void Init() + { + base.Init(); + this.m_LeftTime = new XLeftTimeCounter(base.uiBehaviour.m_LeftTime, false); + this._Doc = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + this._Doc.WorldBossDescView = this; + } + + public void ShowView() + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + int num = 0; + int num2 = 0; + this._Doc.GetWorldBossTime(ref num, ref num2); + string arg = string.Format("{0}:{1}", (num / 100).ToString("D2"), (num % 100).ToString("D2")); + string arg2 = string.Format("{0}:{1}", (num2 / 100).ToString("D2"), (num2 % 100).ToString("D2")); + base.uiBehaviour.m_OpenTime.SetText(string.Format(XStringDefineProxy.GetString("WORLDBOSS_OPEN_TIME"), arg, arg2)); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowDropList(); + this.InitAwardPanelInfo(); + base.uiBehaviour.m_GuildRankTab.bChecked = true; + this.OnRankTabClicked(base.uiBehaviour.m_GuildRankTab); + this._Doc.ReqWorldBossState(); + base.uiBehaviour.m_LeftTime.SetVisible(false); + base.uiBehaviour.m_LeftTimeHint.gameObject.SetActive(false); + base.uiBehaviour.m_RewardPanel.SetActive(false); + base.uiBehaviour.m_AwardTip.SetText(XStringDefineProxy.GetString("WORLDBOSS_AWARD_TIP")); + this.RefreshSubscribe(); + this.RefreshPrivilegeInfo(); + } + + private void RefreshPrivilegeInfo() + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + base.uiBehaviour.m_PrivilegeIcon.SetGrey(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce)); + base.uiBehaviour.m_PrivilegeIcon.SetSprite(specificDocument.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Commerce)); + base.uiBehaviour.m_PrivilegeName.SetEnabled(specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce)); + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce); + bool flag = memberPrivilegeConfig != null; + if (flag) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)memberPrivilegeConfig.worldBossbuffid[0], (int)memberPrivilegeConfig.worldBossbuffid[1]); + bool flag2 = buffData != null; + if (flag2) + { + base.uiBehaviour.m_PrivilegeName.SetText(XStringDefineProxy.GetString("WORLDBOSS_PRIVILEGE_BUFF", new object[] + { + buffData.BuffName + })); + } + base.uiBehaviour.m_PrivilegeIcon.SetVisible(buffData != null); + } + } + + protected override void OnHide() + { + base.OnHide(); + base.uiBehaviour.m_BossTexture.SetTexturePath(""); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_BtnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_BtnGoBattle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoBattleClick)); + base.uiBehaviour.m_BtnReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardClick)); + base.uiBehaviour.m_BtnRewardPanelClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRewardClose)); + base.uiBehaviour.m_DamageRankTab.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(RankeType.WorldBossDamageRank)); + base.uiBehaviour.m_DamageRankTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRankTabClicked)); + base.uiBehaviour.m_GuildRankTab.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(RankeType.WorldBossGuildRank)); + base.uiBehaviour.m_GuildRankTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRankTabClicked)); + base.uiBehaviour.m_BtnSubscribe.ID = 0UL; + base.uiBehaviour.m_BtnSubscribe.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubscribeClick)); + base.uiBehaviour.m_BtnCancelSubscribe.ID = 1UL; + base.uiBehaviour.m_BtnCancelSubscribe.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSubscribeClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.DamageRankWrapContentItemUpdated)); + base.uiBehaviour.m_AwardWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.AwardWrapContentItemUpdated)); + base.uiBehaviour.m_Privilege.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnPrivilegeClick)); + } + + private void OnPrivilegeClick(IXUISprite btn) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + } + + protected override void OnUnload() + { + this.m_LeftTime = null; + this._Doc.WorldBossDescView = null; + base.OnUnload(); + } + + private bool OnRankTabClicked(IXUICheckBox checkbox) + { + bool flag = !checkbox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_CurrRankType = (RankeType)checkbox.ID; + this._Doc.ReqRankData(this.m_CurrRankType, false); + result = true; + } + return result; + } + + private bool OnSubscribeClick(IXUIButton button) + { + this.SubscribebuttonID = button.ID; + PushSubscribeTable.RowData pushSubscribe = XPushSubscribeDocument.GetPushSubscribe(PushSubscribeOptions.WorldBoss); + XSingleton.singleton.ShowModalDialog((button.ID == 0UL) ? pushSubscribe.SubscribeDescription : pushSubscribe.CancelDescription, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.ReqSubscribeChange)); + return true; + } + + private bool ReqSubscribeChange(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XPushSubscribeDocument specificDocument = XDocuments.GetSpecificDocument(XPushSubscribeDocument.uuID); + specificDocument.ReqSetSubscribe(PushSubscribeOptions.WorldBoss, this.SubscribebuttonID == 0UL); + return true; + } + + public void RefreshSubscribe() + { + PushSubscribeTable.RowData pushSubscribe = XPushSubscribeDocument.GetPushSubscribe(PushSubscribeOptions.WorldBoss); + XPushSubscribeDocument specificDocument = XDocuments.GetSpecificDocument(XPushSubscribeDocument.uuID); + bool flag = XSingleton.singleton.AccountType == LoginType.LGOIN_WECHAT_PF && pushSubscribe.IsShow && specificDocument.OptionsDefault != null && specificDocument.OptionsDefault.Count != 0; + if (flag) + { + bool curSubscribeStatus = specificDocument.GetCurSubscribeStatus(PushSubscribeOptions.WorldBoss); + base.uiBehaviour.m_BtnSubscribe.gameObject.SetActive(!curSubscribeStatus); + base.uiBehaviour.m_BtnCancelSubscribe.gameObject.SetActive(curSubscribeStatus); + } + else + { + base.uiBehaviour.m_BtnSubscribe.gameObject.SetActive(false); + base.uiBehaviour.m_BtnCancelSubscribe.gameObject.SetActive(false); + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_LeftTime != null; + if (flag) + { + this.m_LeftTime.Update(); + bool flag2 = this.m_LeftTime.GetLeftTime() <= 0; + if (flag2) + { + this.UpdateLeftTimeState(0f, this.mBossHp); + } + } + } + + public void SetLeftTime(float time, uint BossHp) + { + this.m_LeftTime.SetLeftTime(time, -1); + base.uiBehaviour.m_LeftTime.SetVisible(time > 0f); + this.UpdateLeftTimeState(time, BossHp); + } + + private void UpdateLeftTimeState(float time, uint BossHp) + { + this.mBossHp = BossHp; + bool flag = time <= 0f; + if (flag) + { + base.uiBehaviour.m_LeftTimeHint.gameObject.SetActive(true); + base.uiBehaviour.m_LeftTime.gameObject.SetActive(false); + bool flag2 = BossHp > 0u; + if (flag2) + { + base.uiBehaviour.m_LeftTimeHint.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_TIME")); + } + else + { + base.uiBehaviour.m_LeftTimeHint.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_BOSSDIE")); + } + } + else + { + base.uiBehaviour.m_LeftTimeHint.gameObject.SetActive(false); + bool flag3 = BossHp <= 0u; + if (flag3) + { + base.uiBehaviour.m_LeftTimeHint.gameObject.SetActive(true); + base.uiBehaviour.m_LeftTime.gameObject.SetActive(false); + base.uiBehaviour.m_LeftTimeHint.SetText(XStringDefineProxy.GetString("GUILD_BOSS_CONDITION_BOSSDIE")); + } + } + } + + private bool OnCloseClick(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnRewardClick(IXUIButton button) + { + base.uiBehaviour.m_RewardPanel.SetActive(true); + base.uiBehaviour.m_AwardScrollView.ResetPosition(); + return true; + } + + private bool OnRewardClose(IXUIButton button) + { + base.uiBehaviour.m_RewardPanel.SetActive(false); + return true; + } + + private bool OnGoBattleClick(IXUIButton button) + { + bool flag = this.m_LeftTime.GetLeftTime() > 0; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WORLDBOSS_CHANGGLE_NOTOPEN"), "fece00"); + result = false; + } + else + { + bool flag2 = this.mBossHp <= 0u; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WORLDBOSS_CHANGGLE_DEAD"), "fece00"); + result = false; + } + else + { + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Activity_WorldBoss); + if (flag3) + { + bool flag4 = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnGoBattleClick), button); + if (flag4) + { + return true; + } + this._Doc.ReqEnterWorldBossScene(); + } + else + { + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Activity_WorldBoss)); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_WORLDBOSS_NOPEN", new object[] + { + sysOpenLevel + }), "fece00"); + } + result = true; + } + } + return result; + } + + public void RefreshDamageRank() + { + bool flag = this.m_CurrRankType == RankeType.WorldBossDamageRank; + List rankList; + if (flag) + { + rankList = this._Doc.DamageRankList.rankList; + } + else + { + rankList = this._Doc.GuildRankList.rankList; + } + bool flag2 = rankList.Count == 0; + if (flag2) + { + base.uiBehaviour.m_RankPanel_EmptyRank.gameObject.SetActive(true); + base.uiBehaviour.m_RankPanel_EmptyRank.SetText(XStringDefineProxy.GetString("GUILD_BOSS_EMPTY_RANK")); + base.uiBehaviour.m_WrapContent.gameObject.SetActive(false); + } + else + { + base.uiBehaviour.m_RankPanel_EmptyRank.gameObject.SetActive(false); + base.uiBehaviour.m_WrapContent.gameObject.SetActive(true); + base.uiBehaviour.m_WrapContent.SetContentCount(rankList.Count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + + private void DamageRankWrapContentItemUpdated(Transform t, int index) + { + bool flag = this.m_CurrRankType == RankeType.WorldBossGuildRank; + List rankList; + if (flag) + { + rankList = this._Doc.GuildRankList.rankList; + } + else + { + rankList = this._Doc.DamageRankList.rankList; + } + bool flag2 = index < 0 || index >= rankList.Count; + if (!flag2) + { + XBaseRankInfo xbaseRankInfo = rankList[index]; + bool flag3 = xbaseRankInfo == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("XGuildDragonView.GuildRankWrapContentItemUpdated is null ", null, null, null, null, null); + } + else + { + IXUISprite ixuisprite = t.Find("Rank").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Rank3").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("shanghai").GetComponent("XUILabel") as IXUILabel; + XWorldBossGuildRankInfo xworldBossGuildRankInfo = xbaseRankInfo as XWorldBossGuildRankInfo; + XWorldBossDamageRankInfo xworldBossDamageRankInfo = xbaseRankInfo as XWorldBossDamageRankInfo; + float num = 0f; + bool flag4 = xworldBossGuildRankInfo != null; + if (flag4) + { + num = xworldBossGuildRankInfo.damage; + } + else + { + bool flag5 = xworldBossDamageRankInfo != null; + if (flag5) + { + num = xworldBossDamageRankInfo.damage; + } + } + ixuilabel3.SetText(XSingleton.singleton.NumberFormatBillion((ulong)num)); + ixuilabel2.SetText(xbaseRankInfo.name); + bool flag6 = index < 3; + if (flag6) + { + string spriteName = string.Format("N{0}", index + 1); + ixuisprite.spriteName = spriteName; + ixuisprite.SetVisible(true); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText((index + 1).ToString()); + } + } + } + } + + public void SetMyRankFrame() + { + bool flag = this.m_CurrRankType == RankeType.WorldBossGuildRank; + XBaseRankList xbaseRankList; + if (flag) + { + xbaseRankList = this._Doc.GuildRankList; + } + else + { + xbaseRankList = this._Doc.DamageRankList; + } + GameObject gameObject = base.uiBehaviour.m_RankPanel.transform.Find("RankTpl").gameObject; + GameObject gameObject2 = base.uiBehaviour.m_RankPanel.transform.Find("OutOfRange").gameObject; + bool flag2 = xbaseRankList.rankList.Count == 0; + if (flag2) + { + gameObject2.SetActive(false); + gameObject.SetActive(false); + } + else + { + XBaseRankInfo latestMyRankInfo = xbaseRankList.GetLatestMyRankInfo(); + bool flag3 = this.m_CurrRankType == RankeType.WorldBossGuildRank; + if (flag3) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag4 = !specificDocument.bInGuild; + if (flag4) + { + gameObject2.SetActive(false); + gameObject.SetActive(false); + return; + } + gameObject2.SetActive(latestMyRankInfo.rank == XRankDocument.INVALID_RANK); + bool flag5 = latestMyRankInfo == null || latestMyRankInfo.rank == XRankDocument.INVALID_RANK; + if (flag5) + { + gameObject.SetActive(false); + return; + } + } + else + { + gameObject2.SetActive(latestMyRankInfo.rank == XRankDocument.INVALID_RANK); + bool flag6 = latestMyRankInfo == null || latestMyRankInfo.id == 0UL; + if (flag6) + { + gameObject.SetActive(false); + return; + } + } + gameObject.SetActive(true); + IXUISprite ixuisprite = gameObject.transform.Find("Rank").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("Name").gameObject.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("shanghai").gameObject.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Rank3").gameObject.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(latestMyRankInfo.name); + XWorldBossGuildRankInfo xworldBossGuildRankInfo = latestMyRankInfo as XWorldBossGuildRankInfo; + XWorldBossDamageRankInfo xworldBossDamageRankInfo = latestMyRankInfo as XWorldBossDamageRankInfo; + float num = 0f; + bool flag7 = xworldBossGuildRankInfo != null; + if (flag7) + { + num = xworldBossGuildRankInfo.damage; + } + else + { + bool flag8 = xworldBossDamageRankInfo != null; + if (flag8) + { + num = xworldBossDamageRankInfo.damage; + } + } + ixuilabel2.SetText(XSingleton.singleton.NumberFormatBillion((ulong)num)); + bool flag9 = latestMyRankInfo.rank < 3u; + if (flag9) + { + string spriteName = string.Format("N{0}", latestMyRankInfo.rank + 1u); + ixuisprite.spriteName = spriteName; + ixuisprite.SetVisible(true); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel3.SetText((latestMyRankInfo.rank + 1u).ToString()); + } + } + } + + private void InitAwardPanelInfo() + { + List awardList = this._Doc.GetAwardList(XSingleton.singleton.XPlayerData.Level); + base.uiBehaviour.m_AwardWrapContent.SetContentCount(awardList.Count, false); + base.uiBehaviour.m_AwardScrollView.ResetPosition(); + } + + private void AwardWrapContentItemUpdated(Transform t, int index) + { + List awardList = this._Doc.GetAwardList(XSingleton.singleton.XPlayerData.Level); + bool flag = index < 0 || index >= awardList.Count; + if (!flag) + { + WorldBossRewardTable.RowData rowData = awardList[index]; + IXUILabel ixuilabel = t.Find("Bg/Rank/RankNum").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Rank[1].ToString()); + for (int i = 0; i < 4; i++) + { + GameObject gameObject = t.Find(string.Format("Bg/Grid/ItemTpl{0}", i)).gameObject; + bool flag2 = i < rowData.ShowReward.Count; + if (flag2) + { + gameObject.gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)rowData.ShowReward[i, 0], (int)rowData.ShowReward[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rowData.ShowReward[i, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + gameObject.gameObject.SetActive(false); + } + } + } + } + + public void ShowDropList() + { + WorldBossRewardTable.RowData dropReward = this._Doc.GetDropReward(XSingleton.singleton.XPlayerData.Level); + bool flag = dropReward == null; + if (!flag) + { + base.uiBehaviour.m_DropAwardPool.FakeReturnAll(); + for (int i = 0; i < dropReward.ShowReward.Count; i++) + { + this.CreateDropAward((int)dropReward.ShowReward[i, 0], false); + } + AuctionHouseDocument specificDocument = XDocuments.GetSpecificDocument(AuctionHouseDocument.uuID); + List guildAuctReward = specificDocument.GetGuildAuctReward(AuctionActType.WorldBoss); + bool flag2 = guildAuctReward.Count > 0; + if (flag2) + { + uint[] rewardShow = guildAuctReward[0].RewardShow; + bool flag3 = rewardShow != null; + if (flag3) + { + for (int j = 0; j < rewardShow.Length; j++) + { + this.CreateDropAward((int)rewardShow[j], true); + } + } + } + base.uiBehaviour.m_DropAwardPool.ActualReturnAll(false); + base.uiBehaviour.m_DropAward.Refresh(); + } + } + + private void CreateDropAward(int itemID, bool bGuild) + { + GameObject gameObject = base.uiBehaviour.m_DropAwardPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_DropAward.gameObject.transform; + IXUILabel ixuilabel = gameObject.transform.Find("Flag").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(bGuild ? XStringDefineProxy.GetString("GUILDBOSS_ICON_FLAG") : XStringDefineProxy.GetString("WORLDBOSS_ICON_FLAG")); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemID, 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + public void ShowCurrentBoss(uint BossID) + { + string name = XSingleton.singleton.EntityStatistics.GetByID(BossID).Name; + base.uiBehaviour.m_BossName.SetText(name); + string str = ""; + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("WorldBossTexture", XGlobalConfig.ListSeparator); + for (int i = 0; i < andSeparateValue.Length; i++) + { + string[] array = andSeparateValue[i].Split(XGlobalConfig.SequenceSeparator); + bool flag = array.Length == 2; + if (flag) + { + bool flag2 = uint.Parse(array[0]) == BossID; + if (flag2) + { + str = array[1]; + break; + } + } + } + base.uiBehaviour.m_BossTexture.SetTexturePath(XSingleton.singleton.GetValue("WorldBossTextureLocation") + str); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XWorldBossView.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XWorldBossView.cs.meta new file mode 100644 index 00000000..d88dc259 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XWorldBossView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a519724f1281d641aec0cfeda377cfb +timeCreated: 1611403495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs b/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs new file mode 100644 index 00000000..d65b607f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class XYyMallOperate : XDramaOperate + { + public override void ShowNpc(XNpc npc) + { + base.ShowNpc(npc); + XDramaOperateParam data = XDataPool.GetData(); + data.Text = base._GetRandomNpcText(npc); + data.Npc = npc; + data.AppendButton(XSingleton.singleton.GetString("PartnerNpcOk"), new ButtonClickEventHandler(this._OnOKClicked), 0UL); + data.AppendButton(XSingleton.singleton.GetString("PartnerNpcCancel"), null, 0UL); + base._FireEvent(data); + } + + private bool _OnOKClicked(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Welfare_YyMall, 0UL); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs.meta b/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs.meta new file mode 100644 index 00000000..9c157c96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/XYyMallOperate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e102db829385a0544adac0ff0efca534 +timeCreated: 1611404700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UI/YorozuyaHandler.cs b/Client/Assets/Scripts/XMainClient/UI/YorozuyaHandler.cs new file mode 100644 index 00000000..1596b998 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/YorozuyaHandler.cs @@ -0,0 +1,151 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.UI +{ + internal class YorozuyaHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/YorozuyaHandler"; + } + } + + private IXUIButton m_photoBtn; + + private IXUIButton m_rideBtn; + + private IXUIButton m_sceneTransformBtn; + + private IXUIButton m_exitBtn; + + private IXUIButton m_3dBtn; + + private IXUIButton m_25dBtn; + + private XSwitchSight m_SwitchSight; + + protected override void Init() + { + base.Init(); + this.m_photoBtn = (base.PanelObject.transform.Find("Photo").GetComponent("XUIButton") as IXUIButton); + this.m_rideBtn = (base.PanelObject.transform.Find("Ride").GetComponent("XUIButton") as IXUIButton); + this.m_sceneTransformBtn = (base.PanelObject.transform.Find("SceneTransform").GetComponent("XUIButton") as IXUIButton); + this.m_exitBtn = (base.PanelObject.transform.Find("Exit").GetComponent("XUIButton") as IXUIButton); + this.m_3dBtn = (base.PanelObject.transform.Find("3d2.5d/3d").GetComponent("XUIButton") as IXUIButton); + this.m_25dBtn = (base.PanelObject.transform.Find("3d2.5d/2.5d").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_photoBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickYorozuyPhotoBtn)); + this.m_rideBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickYorozuyRideBtn)); + this.m_sceneTransformBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OpenTransUi)); + this.m_exitBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickExit)); + this.m_SwitchSight = new XSwitchSight(new ButtonClickEventHandler(this.OnViewClick), this.m_25dBtn, this.m_3dBtn, null); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = XSingleton.singleton.OperationMode == XOperationMode.X3D_Free; + if (flag) + { + XSingleton.singleton.OperationMode = XOperationMode.X3D; + } + this.SetView(XSingleton.singleton.OperationMode); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void SetView(XOperationMode mode) + { + if (mode != XOperationMode.X25D) + { + if (mode == XOperationMode.X3D) + { + this.m_3dBtn.gameObject.SetActive(true); + this.m_25dBtn.gameObject.SetActive(false); + } + } + else + { + this.m_3dBtn.gameObject.SetActive(false); + this.m_25dBtn.gameObject.SetActive(true); + } + } + + private bool OnClickYorozuyPhotoBtn(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.ShowMainView(); + return true; + } + + private bool OnClickYorozuyRideBtn(IXUIButton btn) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + bool flag = XSingleton.singleton.XPlayerData.Outlook.state.type == OutLookStateType.OutLook_RidePetCopilot; + if (flag) + { + specificDocument.OnReqOffPetPairRide(); + } + else + { + bool flag2 = specificDocument.Pets.Count == 0; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PET_NONE"), "fece00"); + } + else + { + specificDocument.ReqRecentMount(); + } + } + return true; + } + + private bool OpenTransUi(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + + private bool OnViewClick(IXUIButton btn) + { + this.SetView((XOperationMode)btn.ID); + return true; + } + + private bool OnClickExit(IXUIButton btn) + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag = sceneType != SceneType.SCENE_LEISURE; + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ReqLeaveScene(); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UI/YorozuyaHandler.cs.meta b/Client/Assets/Scripts/XMainClient/UI/YorozuyaHandler.cs.meta new file mode 100644 index 00000000..920d40da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UI/YorozuyaHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2af588f417e13c4b817c136d756c9da +timeCreated: 1611404596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UIBuffInfo.cs b/Client/Assets/Scripts/XMainClient/UIBuffInfo.cs new file mode 100644 index 00000000..50ade5e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UIBuffInfo.cs @@ -0,0 +1,85 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class UIBuffInfo + { + public uint buffID; + + public uint buffLevel; + + public float leftTime; + + public float startTime; + + public double HP; + + public double maxHP; + + public ulong mobUID; + + public bool bReduceCD; + + public int transformID; + + public uint stackCount; + + public BuffTable.RowData buffInfo; + + public static UIBuffInfo Create(XBuff buff) + { + UIBuffInfo uibuffInfo = new UIBuffInfo(); + uibuffInfo.Set(buff); + return uibuffInfo; + } + + public void Set(XBuff buff) + { + this.buffID = (uint)buff.ID; + this.buffLevel = (uint)buff.Level; + this.leftTime = buff.GetLeftTime(); + this.startTime = Time.time; + this.HP = buff.HP; + this.maxHP = buff.MaxHP; + this.mobUID = buff.EffectData.MobID; + this.stackCount = buff.StackCount; + this.buffInfo = buff.BuffInfo; + } + + public static UIBuffInfo Create(ServerBuffInfo buff) + { + UIBuffInfo uibuffInfo = new UIBuffInfo(); + uibuffInfo.Set(buff); + return uibuffInfo; + } + + public bool Set(ServerBuffInfo buff) + { + this.buffID = buff.buffID; + this.buffLevel = buff.buffLevel; + this.leftTime = buff.leftTime; + this.startTime = Time.realtimeSinceStartup; + this.HP = buff.HP; + this.maxHP = buff.maxHP; + this.mobUID = buff.mobUID; + this.bReduceCD = buff.bReduceCD; + this.transformID = buff.transformID; + this.stackCount = buff.stackCount; + this.buffInfo = XSingleton.singleton.GetBuffData((int)this.buffID, (int)this.buffLevel); + bool flag = this.buffInfo == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("Set Server Buff data not found: [{0} {1}]", this.buffID, this.buffLevel), null, null, null, null, null); + result = false; + } + else + { + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UIBuffInfo.cs.meta b/Client/Assets/Scripts/XMainClient/UIBuffInfo.cs.meta new file mode 100644 index 00000000..ea2bf1b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UIBuffInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec43511ac56e0c9448d1faaae131996f +timeCreated: 1611404787 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/UnFadeObject.cs b/Client/Assets/Scripts/XMainClient/UnFadeObject.cs new file mode 100644 index 00000000..d91fa4fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UnFadeObject.cs @@ -0,0 +1,102 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class UnFadeObject : IRenderObject + { + public int InstanceID + { + set + { + this.m_instanceID = value; + } + } + + public GameObject renderGO + { + set + { + this.m_renderGO = value; + this.debugName = value.name; + } + } + + private static Queue m_UFOCache = new Queue(); + + private int m_instanceID = -1; + + private GameObject m_renderGO; + + public string debugName; + + public bool IsSameObj(int id) + { + return this.m_instanceID == id; + } + + public void SetRenderLayer(int layer) + { + bool flag = this.m_renderGO != null; + if (flag) + { + this.m_renderGO.layer = layer; + } + } + + public void SetShader(int type) + { + } + + public void ResetShader() + { + } + + public void SetColor(byte r, byte g, byte b, byte a) + { + } + + public void SetColor(Color32 c) + { + } + + public void Update() + { + } + + public void Clean() + { + this.m_instanceID = -1; + this.m_renderGO = null; + this.debugName = ""; + UnFadeObject.ReturnUFO(this); + } + + public static UnFadeObject GetUFO(Renderer render) + { + bool flag = UnFadeObject.m_UFOCache.Count > 0; + UnFadeObject unFadeObject; + if (flag) + { + unFadeObject = UnFadeObject.m_UFOCache.Dequeue(); + } + else + { + unFadeObject = new UnFadeObject(); + } + bool flag2 = render != null; + if (flag2) + { + unFadeObject.debugName = render.gameObject.name; + } + return unFadeObject; + } + + public static void ReturnUFO(UnFadeObject ufo) + { + UnFadeObject.m_UFOCache.Enqueue(ufo); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/UnFadeObject.cs.meta b/Client/Assets/Scripts/XMainClient/UnFadeObject.cs.meta new file mode 100644 index 00000000..021bfdbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/UnFadeObject.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d474467620f5b1a4683118ac191f2e00 +timeCreated: 1611404602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility.meta b/Client/Assets/Scripts/XMainClient/Utility.meta new file mode 100644 index 00000000..c10bef23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 89d2ed8bab57bd544b1e3cad11695015 +folderAsset: yes +timeCreated: 1611402942 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/IXItemDescription.cs b/Client/Assets/Scripts/XMainClient/Utility/IXItemDescription.cs new file mode 100644 index 00000000..fa9da88a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/IXItemDescription.cs @@ -0,0 +1,14 @@ +using System; +using XMainClient.UI; + +namespace XMainClient.Utility +{ + internal interface IXItemDescription + { + XItemDrawer ItemDrawer { get; } + + XBodyBag BodyBag { get; } + + ITooltipDlg TooltipDlg { get; } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/IXItemDescription.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/IXItemDescription.cs.meta new file mode 100644 index 00000000..80147110 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/IXItemDescription.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1abc285818be6e54c96b387d4183e6fb +timeCreated: 1611403312 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/XEmblemDescription.cs b/Client/Assets/Scripts/XMainClient/Utility/XEmblemDescription.cs new file mode 100644 index 00000000..a6795610 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XEmblemDescription.cs @@ -0,0 +1,34 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.Utility +{ + internal class XEmblemDescription : IXItemDescription + { + public XItemDrawer ItemDrawer + { + get + { + return XSingleton.singleton.emblemItemDrawer; + } + } + + public XBodyBag BodyBag + { + get + { + return XSingleton.singleton.Doc.XBagDoc.EmblemBag; + } + } + + public ITooltipDlg TooltipDlg + { + get + { + return DlgBase.singleton; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/XEmblemDescription.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/XEmblemDescription.cs.meta new file mode 100644 index 00000000..86bccfd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XEmblemDescription.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d15944032608a6c4795c9770e9d320e3 +timeCreated: 1611404591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/XEquipDescription.cs b/Client/Assets/Scripts/XMainClient/Utility/XEquipDescription.cs new file mode 100644 index 00000000..f85aa7e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XEquipDescription.cs @@ -0,0 +1,34 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.Utility +{ + internal class XEquipDescription : IXItemDescription + { + public XItemDrawer ItemDrawer + { + get + { + return XSingleton.singleton.equipItemDrawer; + } + } + + public XBodyBag BodyBag + { + get + { + return XSingleton.singleton.Doc.XBagDoc.EquipBag; + } + } + + public ITooltipDlg TooltipDlg + { + get + { + return DlgBase.singleton; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/XEquipDescription.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/XEquipDescription.cs.meta new file mode 100644 index 00000000..b04f16f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XEquipDescription.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87d70fe444733094487253edaf5ea677 +timeCreated: 1611404081 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/XFashionDescription.cs b/Client/Assets/Scripts/XMainClient/Utility/XFashionDescription.cs new file mode 100644 index 00000000..f65fc055 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XFashionDescription.cs @@ -0,0 +1,34 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.Utility +{ + internal class XFashionDescription : IXItemDescription + { + public XItemDrawer ItemDrawer + { + get + { + return XSingleton.singleton.normalItemDrawer; + } + } + + public ITooltipDlg TooltipDlg + { + get + { + return DlgBase.singleton; + } + } + + public XBodyBag BodyBag + { + get + { + return null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/XFashionDescription.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/XFashionDescription.cs.meta new file mode 100644 index 00000000..b7fd5ffb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XFashionDescription.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 142aa4f1b0bf835489dc6ccd95c9b483 +timeCreated: 1611403253 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/XFashionHairDescription.cs b/Client/Assets/Scripts/XMainClient/Utility/XFashionHairDescription.cs new file mode 100644 index 00000000..cfd1c0b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XFashionHairDescription.cs @@ -0,0 +1,34 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.Utility +{ + internal class XFashionHairDescription : IXItemDescription + { + public XItemDrawer ItemDrawer + { + get + { + return XSingleton.singleton.normalItemDrawer; + } + } + + public ITooltipDlg TooltipDlg + { + get + { + return DlgBase.singleton; + } + } + + public XBodyBag BodyBag + { + get + { + return null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/XFashionHairDescription.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/XFashionHairDescription.cs.meta new file mode 100644 index 00000000..40a99037 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XFashionHairDescription.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7ff9915219cb0649ae3824ce1951f26 +timeCreated: 1611404890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/XJadeDescription.cs b/Client/Assets/Scripts/XMainClient/Utility/XJadeDescription.cs new file mode 100644 index 00000000..8645a2f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XJadeDescription.cs @@ -0,0 +1,34 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.Utility +{ + internal class XJadeDescription : IXItemDescription + { + public XItemDrawer ItemDrawer + { + get + { + return XSingleton.singleton.jadeItemDrawer; + } + } + + public ITooltipDlg TooltipDlg + { + get + { + return DlgBase.singleton; + } + } + + public XBodyBag BodyBag + { + get + { + return null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/XJadeDescription.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/XJadeDescription.cs.meta new file mode 100644 index 00000000..1bbfe5e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XJadeDescription.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2df2db14f7c145c4b94bbc0e30e36eff +timeCreated: 1611403508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/XNormalDescription.cs b/Client/Assets/Scripts/XMainClient/Utility/XNormalDescription.cs new file mode 100644 index 00000000..e492d924 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XNormalDescription.cs @@ -0,0 +1,34 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.Utility +{ + internal class XNormalDescription : IXItemDescription + { + public XItemDrawer ItemDrawer + { + get + { + return XSingleton.singleton.normalItemDrawer; + } + } + + public ITooltipDlg TooltipDlg + { + get + { + return DlgBase.singleton; + } + } + + public XBodyBag BodyBag + { + get + { + return null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/XNormalDescription.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/XNormalDescription.cs.meta new file mode 100644 index 00000000..b6b12ad2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XNormalDescription.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7997c3f044e2af46a9609fab3150386 +timeCreated: 1611404531 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/XUITabControl.cs b/Client/Assets/Scripts/XMainClient/Utility/XUITabControl.cs new file mode 100644 index 00000000..95e0d6a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XUITabControl.cs @@ -0,0 +1,287 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient.Utility +{ + internal class XUITabControl + { + private XUIPool tab_pool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected float m_DisableAlpha; + + private Dictionary m_TabFrames = new Dictionary(); + + public delegate void UITabControlCallback(ulong id); + + public IXUICheckBox GetByCheckBoxId(ulong id) + { + List list = ListPool.Get(); + this.tab_pool.GetActiveList(list); + IXUICheckBox ixuicheckBox = null; + for (int i = 0; i < list.Count; i++) + { + IXUICheckBox ixuicheckBox2 = list[i].transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + bool flag = ixuicheckBox2.ID == id; + if (flag) + { + ixuicheckBox = ixuicheckBox2; + break; + } + } + ListPool.Release(list); + bool flag2 = ixuicheckBox == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Have not this CheckBox of id.", null, null, null, null, null); + } + return ixuicheckBox; + } + + public void SetTabTpl(Transform tpl) + { + this.tab_pool.SetupPool(tpl.parent.gameObject, tpl.gameObject, 5u, false); + } + + public static XSysDefine GetTargetSys(XSysDefine sys, out List subSys) + { + XSysDefine parentSys = XSingleton.singleton.GetParentSys(sys); + subSys = XSingleton.singleton.GetChildSys(parentSys); + XSysDefine xsysDefine = sys; + bool flag = sys == parentSys; + if (flag) + { + for (int i = 0; i < subSys.Count; i++) + { + bool flag2 = !XSingleton.singleton.IsSystemOpened(subSys[i], XSingleton.singleton.XPlayerData); + if (!flag2) + { + bool flag3 = xsysDefine == parentSys; + if (flag3) + { + xsysDefine = subSys[i]; + } + bool sysRedPointState = XSingleton.singleton.GetSysRedPointState(subSys[i]); + if (sysRedPointState) + { + xsysDefine = subSys[i]; + break; + } + } + } + } + return xsysDefine; + } + + public IXUICheckBox[] SetupTabs(XSysDefine sys, XUITabControl.UITabControlCallback func, bool bHorizontal = false, float fDisable = 1f) + { + this.tab_pool.ReturnAll(false); + this.m_TabFrames.Clear(); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + XSysDefine parentSys = XSingleton.singleton.GetParentSys(sys); + List childSys = XSingleton.singleton.GetChildSys(parentSys); + Vector3 localPosition = this.tab_pool._tpl.transform.localPosition; + float num = (float)this.tab_pool.TplWidth; + float num2 = (float)this.tab_pool.TplHeight; + IXUICheckBox[] array = new IXUICheckBox[childSys.Count]; + IXUICheckBox ixuicheckBox = null; + XSysDefine xsysDefine = sys; + bool flag = sys == parentSys; + if (flag) + { + for (int i = 0; i < childSys.Count; i++) + { + bool flag2 = !XSingleton.singleton.IsSystemOpened(childSys[i], xplayerData); + if (!flag2) + { + bool flag3 = xsysDefine == parentSys; + if (flag3) + { + xsysDefine = childSys[i]; + } + bool sysRedPointState = XSingleton.singleton.GetSysRedPointState(childSys[i]); + if (sysRedPointState) + { + xsysDefine = childSys[i]; + break; + } + } + } + } + int j = 0; + int num3 = 0; + while (j < childSys.Count) + { + bool flag4 = !XSingleton.singleton.IsSystemOpened(childSys[j], xplayerData); + if (!flag4) + { + GameObject gameObject = this.tab_pool.FetchGameObject(false); + gameObject.name = childSys[j].ToString(); + if (bHorizontal) + { + gameObject.transform.localPosition = localPosition + new Vector3(num * (float)num3, 0f, 0f); + } + else + { + gameObject.transform.localPosition = localPosition + new Vector3(0f, -num2 * (float)num3, 0f); + } + num3++; + IXUICheckBox ixuicheckBox2 = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(childSys[j])); + ixuicheckBox2.ForceSetFlag(false); + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabControlStateChange)); + array[j] = ixuicheckBox2; + this.m_TabFrames.Add((int)ixuicheckBox2.ID, func); + Transform transform = gameObject.transform.Find("Bg/TextLabel"); + bool flag5 = transform != null; + if (flag5) + { + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + string @string = XStringDefineProxy.GetString(childSys[j].ToString()); + ixuilabel.SetText(@string); + ixuilabel2.SetText(@string); + } + else + { + IXUISprite ixuisprite = gameObject.transform.Find("Bg/Text").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Bg/SelectedText").GetComponent("XUISprite") as IXUISprite; + string string2 = XStringDefineProxy.GetString(childSys[j].ToString()); + ixuisprite.SetSprite(string2 + "0"); + ixuisprite2.SetSprite(string2 + "1"); + ixuisprite.MakePixelPerfect(); + ixuisprite2.MakePixelPerfect(); + } + bool flag6 = childSys[j] == xsysDefine; + if (flag6) + { + ixuicheckBox = ixuicheckBox2; + } + } + j++; + } + bool flag7 = ixuicheckBox != null; + if (flag7) + { + ixuicheckBox.bChecked = true; + } + this.m_DisableAlpha = fDisable; + return array; + } + + public IXUICheckBox[] SetupTabs(List ids, List prefix, XUITabControl.UITabControlCallback func, bool bHorizontal = false, float fDisable = 1f, int select = -1, bool bFromStringTable = true) + { + this.tab_pool.ReturnAll(false); + this.m_TabFrames.Clear(); + Vector3 localPosition = this.tab_pool._tpl.transform.localPosition; + float num = (float)this.tab_pool.TplWidth; + float num2 = (float)this.tab_pool.TplHeight; + IXUICheckBox[] array = new IXUICheckBox[ids.Count]; + IXUICheckBox ixuicheckBox = null; + bool flag = select == -1; + if (flag) + { + select = 0; + } + else + { + select = ids.IndexOf(select); + } + bool flag2 = select == -1; + if (flag2) + { + select = 0; + } + for (int i = 0; i < ids.Count; i++) + { + GameObject gameObject = this.tab_pool.FetchGameObject(false); + gameObject.name = ids[i].ToString(); + if (bHorizontal) + { + gameObject.transform.localPosition = localPosition + new Vector3(num * (float)i, 0f, 0f); + } + else + { + gameObject.transform.localPosition = localPosition + new Vector3(0f, -num2 * (float)i, 0f); + } + IXUICheckBox ixuicheckBox2 = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ID = (ulong)((long)ids[i]); + ixuicheckBox2.ForceSetFlag(false); + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabControlStateChange)); + array[i] = ixuicheckBox2; + this.m_TabFrames.Add((int)ixuicheckBox2.ID, func); + Transform transform = gameObject.transform.Find("Bg/TextLabel"); + bool flag3 = transform != null; + if (flag3) + { + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + string text = bFromStringTable ? XStringDefineProxy.GetString(prefix[i]) : prefix[i]; + ixuilabel.SetText(text); + ixuilabel2.SetText(text); + } + else + { + IXUISprite ixuisprite = gameObject.transform.Find("Bg/Text").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Bg/SelectedText").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetSprite(prefix[i] + "0"); + ixuisprite2.SetSprite(prefix[i] + "1"); + ixuisprite.MakePixelPerfect(); + ixuisprite2.MakePixelPerfect(); + } + bool flag4 = i == select; + if (flag4) + { + ixuicheckBox = ixuicheckBox2; + } + } + bool flag5 = ixuicheckBox != null; + if (flag5) + { + ixuicheckBox.bChecked = true; + } + this.m_DisableAlpha = fDisable; + return array; + } + + public void RegistrerNewTab(ulong id, XUITabControl.UITabControlCallback func) + { + List list = ListPool.Get(); + this.tab_pool.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + IXUICheckBox ixuicheckBox = list[i].transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + bool flag = ixuicheckBox.ID == id; + if (flag) + { + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabControlStateChange)); + this.m_TabFrames.Add((int)id, func); + } + } + ListPool.Release(list); + } + + public bool OnTabControlStateChange(IXUICheckBox chkBox) + { + bool bChecked = chkBox.bChecked; + if (bChecked) + { + int key = (int)chkBox.ID; + XUITabControl.UITabControlCallback uitabControlCallback = this.m_TabFrames[key]; + bool flag = uitabControlCallback != null; + if (flag) + { + uitabControlCallback(chkBox.ID); + } + chkBox.SetAlpha(1f); + } + else + { + chkBox.SetAlpha(this.m_DisableAlpha); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/XUITabControl.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/XUITabControl.cs.meta new file mode 100644 index 00000000..9505a9a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XUITabControl.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 70fea483ee44de541a30ecba518da948 +timeCreated: 1611403932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/Utility/XartifactDescription.cs b/Client/Assets/Scripts/XMainClient/Utility/XartifactDescription.cs new file mode 100644 index 00000000..e577f367 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XartifactDescription.cs @@ -0,0 +1,34 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient.Utility +{ + internal class XartifactDescription : IXItemDescription + { + public XItemDrawer ItemDrawer + { + get + { + return XSingleton.singleton.normalItemDrawer; + } + } + + public XBodyBag BodyBag + { + get + { + return XSingleton.singleton.Doc.XBagDoc.ArtifactBag; + } + } + + public ITooltipDlg TooltipDlg + { + get + { + return DlgBase.singleton; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/Utility/XartifactDescription.cs.meta b/Client/Assets/Scripts/XMainClient/Utility/XartifactDescription.cs.meta new file mode 100644 index 00000000..c515b87d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/Utility/XartifactDescription.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a04fc454c78462a4d924ccb53d00aead +timeCreated: 1611404248 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/VIPGiftState.cs b/Client/Assets/Scripts/XMainClient/VIPGiftState.cs new file mode 100644 index 00000000..0bddd9a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/VIPGiftState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum VIPGiftState + { + UNABLE, + UNGET, + GET + } +} diff --git a/Client/Assets/Scripts/XMainClient/VIPGiftState.cs.meta b/Client/Assets/Scripts/XMainClient/VIPGiftState.cs.meta new file mode 100644 index 00000000..4ac2b5fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/VIPGiftState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dcece83191cb03e4bbc3d6136938728b +timeCreated: 1611404681 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/VirtualJoystickBehaviour.cs b/Client/Assets/Scripts/XMainClient/VirtualJoystickBehaviour.cs new file mode 100644 index 00000000..3482cd79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/VirtualJoystickBehaviour.cs @@ -0,0 +1,23 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class VirtualJoystickBehaviour : DlgBehaviourBase + { + public IXUISprite m_Panel; + + public IXUISprite m_Joystick; + + public GameObject m_Direction; + + private void Awake() + { + this.m_Panel = (base.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.m_Joystick = (base.transform.Find("Bg/Joystick").GetComponent("XUISprite") as IXUISprite); + this.m_Direction = base.transform.Find("Bg/Joystick/Dir").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/VirtualJoystickBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/VirtualJoystickBehaviour.cs.meta new file mode 100644 index 00000000..ae2cfb87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/VirtualJoystickBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bf0e2c2beb699d0459fb03a383200c25 +timeCreated: 1611404482 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/VoiceAnswer.cs b/Client/Assets/Scripts/XMainClient/VoiceAnswer.cs new file mode 100644 index 00000000..fee77588 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/VoiceAnswer.cs @@ -0,0 +1,33 @@ +using System; + +namespace XMainClient +{ + public class VoiceAnswer + { + public bool isEnterRoom; + + public ulong roleId; + + public ulong audioID; + + public string name; + + public string content; + + public bool right; + + public uint times; + + public uint answerTime; + + public uint rank; + + public uint desID; + + public uint audioTime; + + public uint profession; + + public bool isNew; + } +} diff --git a/Client/Assets/Scripts/XMainClient/VoiceAnswer.cs.meta b/Client/Assets/Scripts/XMainClient/VoiceAnswer.cs.meta new file mode 100644 index 00000000..90d8c107 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/VoiceAnswer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e9f9c6aba09c4742be6a8ca8d78a758 +timeCreated: 1611404130 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/VoiceUsage.cs b/Client/Assets/Scripts/XMainClient/VoiceUsage.cs new file mode 100644 index 00000000..80d067c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/VoiceUsage.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum VoiceUsage + { + CHAT, + ANSWER, + FLOWER_REPLY, + MENTORHIP, + GUILDCOLLECT + } +} diff --git a/Client/Assets/Scripts/XMainClient/VoiceUsage.cs.meta b/Client/Assets/Scripts/XMainClient/VoiceUsage.cs.meta new file mode 100644 index 00000000..d31e06a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/VoiceUsage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 493d35d88a5affa469dc64f4ca7649a0 +timeCreated: 1611403660 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WarResGuildInfo.cs b/Client/Assets/Scripts/XMainClient/WarResGuildInfo.cs new file mode 100644 index 00000000..5ae46688 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WarResGuildInfo.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + public class WarResGuildInfo + { + public ulong guildID; + + public string guildName; + + public uint resValue; + + public uint guildIcon; + } +} diff --git a/Client/Assets/Scripts/XMainClient/WarResGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/WarResGuildInfo.cs.meta new file mode 100644 index 00000000..e13e857e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WarResGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b69efd397d827d41ae4a9675cb3e4cb +timeCreated: 1611403168 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeaponLoadTask.cs b/Client/Assets/Scripts/XMainClient/WeaponLoadTask.cs new file mode 100644 index 00000000..3f5aad7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeaponLoadTask.cs @@ -0,0 +1,121 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class WeaponLoadTask : MountLoadTask + { + public XGameObject xgo2 = null; + + private static Quaternion _defaultSkinRot = Quaternion.Euler(new Vector3(-90f, 0f, 0f)); + + private static CommandCallback secondWeaponLoaded = new CommandCallback(WeaponLoadTask._SecondWeaponLoaded); + + public WeaponLoadTask(EPartType p, MountLoadCallback mountPartLoadCb) : base(p, mountPartLoadCb) + { + } + + public override void Reset(XEntity e) + { + this.processStatus = EProcessStatus.ENotProcess; + this.location = ""; + bool flag = this.xgo != null; + if (flag) + { + XRenderComponent.RemoveObj(e, this.xgo.Get()); + XGameObject.DestroyXGameObject(this.xgo); + } + this.xgo = null; + bool flag2 = this.xgo2 != null; + if (flag2) + { + XRenderComponent.RemoveObj(e, this.xgo2.Get()); + XGameObject.DestroyXGameObject(this.xgo2); + } + this.xgo2 = null; + } + + public override void ProcessEnable(bool enable, bool forceDisable, int layer) + { + base.ProcessEnable(enable, forceDisable, layer); + bool flag = this.xgo2 != null; + if (flag) + { + MountLoadTask.ProcessEnable(this.xgo2, enable, forceDisable, layer); + } + } + + public override void ProcessRenderQueue(int renderQueue) + { + base.ProcessRenderQueue(renderQueue); + bool flag = this.xgo2 != null; + if (flag) + { + MountLoadTask.ProcessRenderQueue(this.xgo2, renderQueue); + } + } + + public override void ProcessRenderComponent(XEntity e) + { + base.ProcessRenderComponent(e); + bool flag = this.xgo2 != null; + if (flag) + { + MountLoadTask.ProcessRenderComponent(this.xgo2, e); + } + } + + private static void _SecondWeaponLoaded(XGameObject gameObject, object o, int commandID) + { + XEntity xentity = o as XEntity; + int layer = xentity.DefaultLayer; + bool enable = true; + bool flag = xentity.Equipment != null; + if (flag) + { + bool isUIAvatar = xentity.Equipment.IsUIAvatar; + if (isUIAvatar) + { + layer = XQualitySetting.UILayer; + } + enable = xentity.Equipment.IsRenderEnable; + } + MountLoadTask.ProcessRender(gameObject, xentity, layer, enable, -1, false); + } + + public void PostProcess(Transform attachPoint0, Transform attachPoint1, XEntity e) + { + this.xgo.SetParentTrans(attachPoint0); + bool isSkin = base.IsSkin; + if (isSkin) + { + this.xgo.SetLocalPRS(Vector3.zero, true, WeaponLoadTask._defaultSkinRot, true, Vector3.one, true); + } + else + { + this.xgo.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, Vector3.one, true); + } + bool flag = attachPoint1 != null; + if (flag) + { + bool flag2 = this.xgo2 == null; + if (flag2) + { + this.xgo2 = XGameObject.CloneXGameObject(this.xgo, true); + this.xgo2.CallCommand(WeaponLoadTask.secondWeaponLoaded, e, -1, false); + } + this.xgo2.SetParentTrans(attachPoint1); + bool isSkin2 = base.IsSkin; + if (isSkin2) + { + this.xgo2.SetLocalPRS(Vector3.zero, true, WeaponLoadTask._defaultSkinRot, true, Vector3.one, true); + } + else + { + this.xgo2.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, Vector3.one, true); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeaponLoadTask.cs.meta b/Client/Assets/Scripts/XMainClient/WeaponLoadTask.cs.meta new file mode 100644 index 00000000..0b466faa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeaponLoadTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01aceb6b3f7ea7d41aced8f277f60bb4 +timeCreated: 1611402954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeddingBriefInfo.cs b/Client/Assets/Scripts/XMainClient/WeddingBriefInfo.cs new file mode 100644 index 00000000..444774a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeddingBriefInfo.cs @@ -0,0 +1,12 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class WeddingBriefInfo + { + public WeddingBrief brief; + + public bool isApply = false; + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeddingBriefInfo.cs.meta b/Client/Assets/Scripts/XMainClient/WeddingBriefInfo.cs.meta new file mode 100644 index 00000000..4f805c34 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeddingBriefInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a949df62d550f84ab052a23bca9e180 +timeCreated: 1611404092 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeddingRoleInfo.cs b/Client/Assets/Scripts/XMainClient/WeddingRoleInfo.cs new file mode 100644 index 00000000..51b6d517 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeddingRoleInfo.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + public class WeddingRoleInfo + { + public ulong roleID; + + public string name; + + public uint profession; + + public uint level; + + public uint ppt; + + public bool entered = false; + + public string guildName; + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeddingRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/WeddingRoleInfo.cs.meta new file mode 100644 index 00000000..5319a99f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeddingRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 922378933faa3664487ed1f81558bc78 +timeCreated: 1611404145 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs b/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs new file mode 100644 index 00000000..f6c7d357 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs @@ -0,0 +1,53 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class WeekEndNestBehaviour : DlgBehaviourBase + { + public IXUILabel m_timesLab; + + public IXUILabel m_tittleLab; + + public IXUILabel m_rulesLab; + + public IXUISprite m_getSpr; + + public IXUIButton m_closedBtn; + + public IXUIButton m_helpBtn; + + public IXUIButton m_getBtn; + + public IXUIButton m_gotoTeamBtn; + + public GameObject m_reddotGo; + + public Transform m_parentTra; + + public IXUITexture m_tex; + + public XUIPool m_itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + Transform transform = base.transform.Find("Bg"); + this.m_tex = (transform.Find("Texture").GetComponent("XUITexture") as IXUITexture); + this.m_closedBtn = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_helpBtn = (transform.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_reddotGo = transform.Find("Right/BtnStartSingle/RedPoint").gameObject; + this.m_getBtn = (transform.Find("Right/BtnStartSingle").GetComponent("XUIButton") as IXUIButton); + this.m_gotoTeamBtn = (transform.Find("Right/BtnStartTeam").GetComponent("XUIButton") as IXUIButton); + this.m_getSpr = (transform.Find("Right/BtnStartSingle").GetComponent("XUISprite") as IXUISprite); + this.m_tittleLab = (transform.Find("Left/CurrName").GetComponent("XUILabel") as IXUILabel); + this.m_rulesLab = (transform.Find("Left/GameRule").GetComponent("XUILabel") as IXUILabel); + this.m_timesLab = (transform.Find("Right/Times").GetComponent("XUILabel") as IXUILabel); + Transform transform2 = transform.Find("WeekReward/ItemTpl"); + this.m_parentTra = transform.Find("WeekReward/ListPanel"); + this.m_itemPool.SetupPool(transform.Find("WeekReward").gameObject, transform2.gameObject, 3u, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs.meta new file mode 100644 index 00000000..ee715190 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekEndNestBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ba02d6b46567114384bc16658c11818 +timeCreated: 1611403316 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeekEndNestDlg.cs b/Client/Assets/Scripts/XMainClient/WeekEndNestDlg.cs new file mode 100644 index 00000000..ce4d933d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekEndNestDlg.cs @@ -0,0 +1,190 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class WeekEndNestDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/WeekEndNestDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private WeekEndNestDocument m_doc; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosed)); + base.uiBehaviour.m_helpBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelp)); + base.uiBehaviour.m_getBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGeted)); + base.uiBehaviour.m_gotoTeamBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGotoTeam)); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.m_doc = WeekEndNestDocument.Doc; + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + bool needLoginShow = this.m_doc.NeedLoginShow; + if (needLoginShow) + { + this.m_doc.NeedLoginShow = false; + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public void Refresh() + { + this.FillContent(); + } + + private void FillContent() + { + base.uiBehaviour.m_tittleLab.SetText(this.m_doc.GetLevelName()); + base.uiBehaviour.m_rulesLab.SetText(this.m_doc.GetRules()); + base.uiBehaviour.m_tex.SetTexturePath(this.m_doc.GetTexName()); + base.uiBehaviour.m_timesLab.SetText(string.Format("{0}/{1}", this.m_doc.LeftCount, this.m_doc.MaxCount())); + bool flag = this.m_doc.GetStatus == 1u; + if (flag) + { + base.uiBehaviour.m_getSpr.SetGrey(true); + base.uiBehaviour.m_reddotGo.SetActive(true); + } + else + { + base.uiBehaviour.m_getSpr.SetGrey(false); + base.uiBehaviour.m_reddotGo.SetActive(false); + } + base.uiBehaviour.m_itemPool.ReturnAll(true); + SeqListRef reward = this.m_doc.GetReward(); + for (int i = 0; i < (int)reward.count; i++) + { + GameObject gameObject = base.uiBehaviour.m_itemPool.FetchGameObject(false); + gameObject.name = reward[i, 0].ToString(); + gameObject.transform.parent = base.uiBehaviour.m_parentTra; + gameObject.transform.localPosition = new Vector3((float)(i * base.uiBehaviour.m_itemPool.TplWidth), 0f, 0f); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)reward[i, 0], (int)reward[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)reward[i, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowTips)); + } + } + + private bool OnClosed(IXUIButton btn) + { + this.SetVisible(false, true); + return true; + } + + private bool OnHelp(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_WeekEndNest); + return true; + } + + private bool OnGeted(IXUIButton btn) + { + bool flag = this.m_doc.GetStatus != 1u; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_doc.ReqGetReward(); + result = true; + } + return result; + } + + private bool OnGotoTeam(IXUIButton btn) + { + int dnId = this.m_doc.GetDnId(); + bool flag = dnId == 0; + bool result; + if (flag) + { + result = false; + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(dnId); + result = true; + } + return result; + } + + private void OnShowTips(IXUISprite spr) + { + int itemID = (int)spr.ID; + XItem mainItem = XBagDocument.MakeXItem(itemID, true); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, true, 0u); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeekEndNestDlg.cs.meta b/Client/Assets/Scripts/XMainClient/WeekEndNestDlg.cs.meta new file mode 100644 index 00000000..85717362 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekEndNestDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 08fa2e1bdb2fbc7428e9749917363d45 +timeCreated: 1611402971 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeekEndNestDocument.cs b/Client/Assets/Scripts/XMainClient/WeekEndNestDocument.cs new file mode 100644 index 00000000..a05bdefd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekEndNestDocument.cs @@ -0,0 +1,414 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class WeekEndNestDocument : XDocComponent + { + public override uint ID + { + get + { + return WeekEndNestDocument.uuID; + } + } + + public static WeekEndNestDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(WeekEndNestDocument.uuID) as WeekEndNestDocument; + } + } + + public uint LeftCount + { + get + { + return this.m_leftCount; + } + } + + public uint CanGetCount + { + get + { + return this.m_canGetCount; + } + } + + public uint GetStatus + { + get + { + return this.m_getStatue; + } + } + + public uint JoindTimes + { + get + { + return (this.MaxCount() - this.m_leftCount < 0u) ? 0u : (this.MaxCount() - this.m_leftCount); + } + } + + public bool NeedLoginShow + { + get + { + return this.m_bNeedLoginShow; + } + set + { + this.m_bNeedLoginShow = value; + } + } + + public List TaskList + { + get + { + bool flag = this.m_taskList == null; + if (flag) + { + this.m_taskList = XTempActivityDocument.Doc.GetDataByActivityType(this.m_actId); + } + return this.m_taskList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("WeekEndNestDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static WeekEndNestActivity m_WeekEndNestTable = new WeekEndNestActivity(); + + public readonly uint m_actId = 15u; + + private bool m_bNeedLoginShow = false; + + private uint m_parentTaskId = 0u; + + private uint m_leftCount = 0u; + + private uint m_canGetCount = 1u; + + private uint m_getStatue = 0u; + + private List m_taskList; + + public static void Execute(OnLoadedCallback callback = null) + { + WeekEndNestDocument.AsyncLoader.AddTask("Table/WeekEndNestActivity", WeekEndNestDocument.m_WeekEndNestTable, false); + WeekEndNestDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this.Clear(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + private void OnlineOpenSetTaskId() + { + bool flag = this.m_parentTaskId > 0u; + if (!flag) + { + int serverOpenDay = XActivityDocument.Doc.ServerOpenDay; + bool flag2 = WeekEndNestDocument.m_WeekEndNestTable == null; + if (flag2) + { + this.m_parentTaskId = 0u; + } + else + { + for (int i = 0; i < WeekEndNestDocument.m_WeekEndNestTable.Table.Length; i++) + { + WeekEndNestActivity.RowData rowData = WeekEndNestDocument.m_WeekEndNestTable.Table[i]; + bool flag3 = (ulong)rowData.OpenSvrDay[0] <= (ulong)((long)serverOpenDay) && (ulong)rowData.OpenSvrDay[1] >= (ulong)((long)serverOpenDay); + if (flag3) + { + this.m_parentTaskId = rowData.ParentTaskId; + this.m_bNeedLoginShow = true; + this.m_leftCount = this.MaxCount(); + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_WeekEndNest, true); + return; + } + } + this.m_parentTaskId = 0u; + } + } + } + + public void OfflineOpenSetTaskId() + { + SpActivityOne activity = XTempActivityDocument.Doc.GetActivity(this.m_actId); + bool flag = activity == null; + if (flag) + { + this.m_parentTaskId = 0u; + } + else + { + bool flag2 = this.m_parentTaskId == 0u; + if (flag2) + { + this.m_bNeedLoginShow = true; + } + for (int i = 0; i < activity.task.Count; i++) + { + SuperActivityTask.RowData data = this.GetData(activity.task[i].taskid); + bool flag3 = data != null && data.tasktype == 1u; + if (flag3) + { + this.m_parentTaskId = data.taskid; + int num = (int)(this.MaxCount() - XTempActivityDocument.Doc.GetActivityProgress(this.m_actId, this.m_parentTaskId)); + this.m_leftCount = (uint)((num > 0) ? num : 0); + this.m_getStatue = XTempActivityDocument.Doc.GetActivityState(this.m_actId, this.m_parentTaskId); + bool flag4 = data.taskson.Length != 0; + if (flag4) + { + this.m_canGetCount = XTempActivityDocument.Doc.GetActivityProgress(this.m_actId, data.taskson[0]); + this.m_canGetCount = ((this.m_canGetCount > this.m_leftCount) ? this.m_leftCount : this.m_canGetCount); + } + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_WeekEndNest, true); + return; + } + } + this.m_parentTaskId = 0u; + } + } + + private void Clear() + { + this.m_parentTaskId = 0u; + this.m_bNeedLoginShow = false; + this.m_getStatue = 0u; + } + + private SuperActivityTask.RowData GetData(uint taskId) + { + for (int i = 0; i < this.TaskList.Count; i++) + { + bool flag = this.TaskList[i].taskid == taskId; + if (flag) + { + return this.TaskList[i]; + } + } + return null; + } + + private SuperActivityTask.RowData GetSonTask(uint parentTaskId) + { + SuperActivityTask.RowData data = this.GetData(parentTaskId); + bool flag = data == null || data.taskson.Length == 0; + SuperActivityTask.RowData result; + if (flag) + { + result = null; + } + else + { + data = this.GetData(data.taskson[0]); + result = data; + } + return result; + } + + public int GetDnId() + { + SuperActivityTask.RowData sonTask = this.GetSonTask(this.m_parentTaskId); + bool flag = sonTask == null || sonTask.num.Length == 0; + int result; + if (flag) + { + result = 0; + } + else + { + result = (int)sonTask.num[0]; + } + return result; + } + + public string GetLevelName() + { + int dnId = this.GetDnId(); + bool flag = dnId == 0; + string result; + if (flag) + { + result = ""; + } + else + { + XExpeditionDocument xexpeditionDocument = XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument; + ExpeditionTable.RowData expeditionDataByID = xexpeditionDocument.GetExpeditionDataByID(dnId); + result = XExpeditionDocument.GetFullName(expeditionDataByID); + } + return result; + } + + public string GetTexName() + { + WeekEndNestActivity.RowData byParentTaskId = WeekEndNestDocument.m_WeekEndNestTable.GetByParentTaskId(this.m_parentTaskId); + bool flag = byParentTaskId == null; + string result; + if (flag) + { + result = ""; + } + else + { + result = string.Format("{0}{1}", "atlas/UI/common/Pic/", byParentTaskId.BgTexName); + } + return result; + } + + public uint MaxCount() + { + SuperActivityTask.RowData data = this.GetData(this.m_parentTaskId); + bool flag = data == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = (uint)data.cnt; + } + return result; + } + + public SeqListRef GetReward() + { + SuperActivityTask.RowData data = this.GetData(this.m_parentTaskId); + bool flag = data == null; + SeqListRef result; + if (flag) + { + result = default(SeqListRef); + } + else + { + result = data.items; + } + return result; + } + + public string GetRules() + { + return XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("WeekEndNestRule")); + } + + public void ReqGetReward() + { + RpcC2G_GetSpActivityReward rpcC2G_GetSpActivityReward = new RpcC2G_GetSpActivityReward(); + rpcC2G_GetSpActivityReward.oArg.actid = this.m_actId; + rpcC2G_GetSpActivityReward.oArg.taskid = this.m_parentTaskId; + XSingleton.singleton.Send(rpcC2G_GetSpActivityReward); + } + + public void OnGetReward(GetSpActivityRewardRes oRes) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CarnivalSuccess"), "fece00"); + } + + public void TaskChangePtc(uint actId, uint taskId) + { + bool flag = this.m_actId != actId; + if (!flag) + { + SuperActivityTask.RowData data = this.GetData(taskId); + bool flag2 = data == null || data.tasktype != 1u; + if (!flag2) + { + bool flag3 = taskId != this.m_parentTaskId; + this.m_parentTaskId = taskId; + int num = (int)(this.MaxCount() - XTempActivityDocument.Doc.GetActivityProgress(actId, this.m_parentTaskId)); + this.m_leftCount = (uint)((num > 0) ? num : 0); + this.m_getStatue = XTempActivityDocument.Doc.GetActivityState(actId, this.m_parentTaskId); + bool flag4 = data != null && data.taskson.Length != 0; + if (flag4) + { + this.m_canGetCount = XTempActivityDocument.Doc.GetActivityProgress(actId, data.taskson[0]); + this.m_canGetCount = ((this.m_canGetCount > this.m_leftCount) ? this.m_leftCount : this.m_canGetCount); + } + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_WeekEndNest, true); + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.Refresh(); + } + bool flag6 = flag3; + if (flag6) + { + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + bool flag8 = DlgBase.singleton.ActivityHandler != null && DlgBase.singleton.ActivityHandler.IsVisible(); + if (flag8) + { + DlgBase.singleton.ActivityHandler.RefreshMulActivity(); + } + } + } + } + } + } + + public void OnSystemChanged(List openIds, List closedIds) + { + for (int i = 0; i < openIds.Count; i++) + { + bool flag = (ulong)openIds[i] == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_WeekEndNest)); + if (flag) + { + this.OnlineOpenSetTaskId(); + return; + } + } + for (int j = 0; j < closedIds.Count; j++) + { + bool flag2 = (ulong)closedIds[j] == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_WeekEndNest)); + if (flag2) + { + this.Clear(); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + } + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_WeekEndNest, true); + break; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeekEndNestDocument.cs.meta b/Client/Assets/Scripts/XMainClient/WeekEndNestDocument.cs.meta new file mode 100644 index 00000000..8596586b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekEndNestDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b72accafe8b72b469dbd87abaa95a4f +timeCreated: 1611403799 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeekNestRankBehavior.cs b/Client/Assets/Scripts/XMainClient/WeekNestRankBehavior.cs new file mode 100644 index 00000000..9b441bc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekNestRankBehavior.cs @@ -0,0 +1,26 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class WeekNestRankBehavior : DlgBehaviourBase + { + public IXUIWrapContent m_wrapContent; + + public IXUIButton m_CloseBtn; + + public IXUIScrollView m_ScrollView; + + public GameObject m_tipsGo; + + private void Awake() + { + this.m_wrapContent = (base.transform.Find("Panel/FourNameList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_tipsGo = base.transform.Find("Tips").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeekNestRankBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/WeekNestRankBehavior.cs.meta new file mode 100644 index 00000000..cd6b91d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekNestRankBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e003121019558340a099e38df80c13a +timeCreated: 1611403809 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeekNestRankDlg.cs b/Client/Assets/Scripts/XMainClient/WeekNestRankDlg.cs new file mode 100644 index 00000000..b826e803 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekNestRankDlg.cs @@ -0,0 +1,140 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class WeekNestRankDlg : DlgBase + { + public override string fileName + { + get + { + return "OperatingActivity/WeekNestRank"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + base.uiBehaviour.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + base.uiBehaviour.m_CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDlg)); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void Refresh() + { + bool flag = XWeekNestDocument.Doc.LastWeekRankList.InfoList == null; + if (!flag) + { + int count = XWeekNestDocument.Doc.LastWeekRankList.InfoList.Count; + base.uiBehaviour.m_wrapContent.SetContentCount(count, false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + base.uiBehaviour.m_tipsGo.SetActive(count == 0); + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + List infoList = XWeekNestDocument.Doc.LastWeekRankList.InfoList; + bool flag = index >= infoList.Count; + if (!flag) + { + FirstPassRankInfo firstPassRankInfo = infoList[index]; + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(firstPassRankInfo.PassTimeStr.Replace("/n", "\n")); + ixuilabel = (t.Find("Title").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XWeekNestDocument.Doc.GetTittleNameByRank(index + 1)); + bool flag2 = firstPassRankInfo.InfoDataList.Count != 0; + if (flag2) + { + Transform transform = t.Find("Labs"); + for (int i = 0; i < transform.childCount; i++) + { + bool flag3 = i >= firstPassRankInfo.InfoDataList.Count; + if (flag3) + { + transform.GetChild(i).gameObject.SetActive(false); + } + else + { + transform.GetChild(i).gameObject.SetActive(true); + IXUILabelSymbol ixuilabelSymbol = transform.GetChild(i).GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.ID = (ulong)((long)(index * 100 + i)); + ixuilabelSymbol.InputText = firstPassRankInfo.InfoDataList[i].Name; + } + } + } + this.SetRank(t, index); + } + } + + private bool OnCloseDlg(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + + private void SetRank(Transform tra, int rankIndex) + { + IXUILabel ixuilabel = tra.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = tra.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = (long)rankIndex == (long)((ulong)XRankDocument.INVALID_RANK); + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + bool flag2 = rankIndex < 3; + if (flag2) + { + ixuisprite.SetSprite("N" + (rankIndex + 1)); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1)); + ixuilabel.SetVisible(true); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeekNestRankDlg.cs.meta b/Client/Assets/Scripts/XMainClient/WeekNestRankDlg.cs.meta new file mode 100644 index 00000000..1fc00b28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekNestRankDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 111e17ad36f80594cb25b91e0ab8afc0 +timeCreated: 1611403221 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeekNestRankHandler.cs b/Client/Assets/Scripts/XMainClient/WeekNestRankHandler.cs new file mode 100644 index 00000000..540caa2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekNestRankHandler.cs @@ -0,0 +1,204 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class WeekNestRankHandler : DlgHandlerBase + { + private XWeekNestDocument m_doc + { + get + { + return XWeekNestDocument.Doc; + } + } + + protected override string FileName + { + get + { + return "OperatingActivity/WeekNestRank"; + } + } + + private IXUIButton m_closeBtn; + + private IXUIWrapContent m_wrapContent; + + private GameObject m_tipsGo; + + protected override void Init() + { + base.Init(); + this.m_closeBtn = (base.PanelObject.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.PanelObject.transform.Find("Panel"); + this.m_wrapContent = (transform.Find("FourNameList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_tipsGo = base.PanelObject.transform.Find("Tips").gameObject; + this.m_wrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_closeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosedClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.FillDefault(); + this.m_doc.ReqRankList(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private void FillDefault() + { + this.m_tipsGo.SetActive(true); + this.m_wrapContent.gameObject.SetActive(false); + } + + public void FillContent() + { + bool flag = this.m_doc.RankList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", RankeType.FirstPassRank.ToString(), null, null, null, null); + } + else + { + bool flag2 = this.m_doc.RankList.InfoList == null || this.m_doc.RankList.InfoList.Count == 0; + if (flag2) + { + this.m_tipsGo.SetActive(true); + this.m_wrapContent.gameObject.SetActive(false); + } + else + { + this.m_tipsGo.SetActive(false); + this.m_wrapContent.gameObject.SetActive(true); + int count = this.m_doc.RankList.InfoList.Count; + this.m_wrapContent.SetContentCount(count, false); + } + } + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = this.m_doc.RankList.InfoList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", RankeType.FirstPassRank.ToString(), null, null, null, null); + } + else + { + bool flag2 = index >= this.m_doc.RankList.InfoList.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("index >= rankDataList.rankList.Count", null, null, null, null, null); + } + else + { + FirstPassRankInfo firstPassRankInfo = this.m_doc.RankList.InfoList[index]; + IXUILabel ixuilabel = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(firstPassRankInfo.PassTimeStr.Replace("/n", "\n")); + ixuilabel = (t.Find("Title").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(this.m_doc.GetTittleNameByRank(index + 1)); + bool flag3 = firstPassRankInfo.InfoDataList.Count != 0; + if (flag3) + { + Transform transform = t.Find("Labs"); + for (int i = 0; i < transform.childCount; i++) + { + bool flag4 = i >= firstPassRankInfo.InfoDataList.Count; + if (flag4) + { + transform.GetChild(i).gameObject.SetActive(false); + } + else + { + transform.GetChild(i).gameObject.SetActive(true); + IXUILabelSymbol ixuilabelSymbol = transform.GetChild(i).GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.ID = (ulong)((long)(index * 100 + i)); + ixuilabelSymbol.InputText = firstPassRankInfo.InfoDataList[i].Name; + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this.OnClickName)); + } + } + } + this.SetRank(t, index); + } + } + } + + private void SetRank(Transform tra, int rankIndex) + { + IXUILabel ixuilabel = tra.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = tra.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = (long)rankIndex == (long)((ulong)XRankDocument.INVALID_RANK); + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + bool flag2 = rankIndex < 3; + if (flag2) + { + ixuisprite.SetSprite("N" + (rankIndex + 1)); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1)); + ixuilabel.SetVisible(true); + } + } + } + + private bool OnClosedClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + + private void OnClickName(IXUILabelSymbol iSp) + { + bool flag = this.m_doc.RankList.InfoList == null; + if (!flag) + { + int index = (int)iSp.ID / 100; + FirstPassRankInfo firstPassRankInfo = this.m_doc.RankList.InfoList[index]; + bool flag2 = firstPassRankInfo == null; + if (!flag2) + { + int index2 = (int)iSp.ID % 100; + FirstPassInfoData firstPassInfoData = firstPassRankInfo.InfoDataList[index2]; + bool flag3 = firstPassInfoData == null; + if (!flag3) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(firstPassInfoData.Id, false); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeekNestRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/WeekNestRankHandler.cs.meta new file mode 100644 index 00000000..a83c9de6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekNestRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d24516880fd67ff40baf14b1b712b8f3 +timeCreated: 1611404595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeekendPartyBattleRoleInfo.cs b/Client/Assets/Scripts/XMainClient/WeekendPartyBattleRoleInfo.cs new file mode 100644 index 00000000..5ef7536d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekendPartyBattleRoleInfo.cs @@ -0,0 +1,25 @@ +using System; + +namespace XMainClient +{ + public class WeekendPartyBattleRoleInfo + { + public int Rank; + + public ulong roleID; + + public uint redBlue; + + public uint score; + + public uint kill; + + public uint beKilled; + + public string roleName; + + public int RoleProf; + + public uint level; + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeekendPartyBattleRoleInfo.cs.meta b/Client/Assets/Scripts/XMainClient/WeekendPartyBattleRoleInfo.cs.meta new file mode 100644 index 00000000..65c732f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeekendPartyBattleRoleInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6acfd96de35ae0241ab74f1ac9c52cf4 +timeCreated: 1611403889 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WeeklyTaskCategory.cs b/Client/Assets/Scripts/XMainClient/WeeklyTaskCategory.cs new file mode 100644 index 00000000..c1f1a1e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeeklyTaskCategory.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum WeeklyTaskCategory + { + ActivityType, + Adventure, + CollectItem, + None + } +} diff --git a/Client/Assets/Scripts/XMainClient/WeeklyTaskCategory.cs.meta b/Client/Assets/Scripts/XMainClient/WeeklyTaskCategory.cs.meta new file mode 100644 index 00000000..e7cddc15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WeeklyTaskCategory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19dc2663a2418fd4b8ecd44a401b2d68 +timeCreated: 1611403306 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss.meta b/Client/Assets/Scripts/XMainClient/WorldBoss.meta new file mode 100644 index 00000000..e218ad54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: 177f259d578bcc944b23baf8245abfcd +folderAsset: yes +timeCreated: 1611549437 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossBehaviour.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossBehaviour.cs new file mode 100644 index 00000000..059f34ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossBehaviour.cs @@ -0,0 +1,105 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWorldBossBehaviour : DlgBehaviourBase + { + public IXUIButton m_BtnClose; + + public IXUIButton m_BtnGoBattle; + + public IXUIButton m_BtnSubscribe; + + public IXUIButton m_BtnCancelSubscribe; + + public IXUILabel m_LeftTime; + + public IXUILabel m_LeftTimeHint; + + public IXUILabel m_BossName; + + public IXUILabel m_OpenTime; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_AwardWrapContent; + + public IXUIScrollView m_AwardScrollView; + + public GameObject m_RankPanel; + + public IXUILabel m_RankPanel_EmptyRank; + + public IXUIButton m_BtnReward; + + public GameObject m_RewardPanel; + + public IXUIButton m_BtnRewardPanelClose; + + public IXUIList m_DropAward; + + public XUIPool m_DropAwardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_AwardTip; + + public IXUITexture m_BossTexture; + + public IXUICheckBox m_GuildRankTab; + + public IXUICheckBox m_DamageRankTab; + + public IXUISprite m_PrivilegeIcon; + + public IXUILabel m_PrivilegeName; + + public IXUISprite m_Privilege; + + private void Awake() + { + this.m_BtnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnGoBattle = (base.transform.Find("Bg/Frame/GoBattle").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/GuildRankPanel/ScrollView"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + transform = transform.Find("WrapContent"); + this.m_WrapContent = (transform.GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankPanel = base.transform.Find("Bg/GuildRankPanel").gameObject; + this.m_RankPanel_EmptyRank = (base.transform.Find("Bg/GuildRankPanel/EmptyRank").GetComponent("XUILabel") as IXUILabel); + GameObject gameObject = this.m_RankPanel.transform.Find("RankTpl").gameObject; + GameObject gameObject2 = this.m_RankPanel.transform.Find("OutOfRange").gameObject; + gameObject.gameObject.SetActive(false); + gameObject2.gameObject.SetActive(false); + this.m_RankPanel_EmptyRank.gameObject.SetActive(false); + this.m_OpenTime = (base.transform.Find("Bg/Frame/LeftTime/sk").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime = (base.transform.Find("Bg/Frame/LeftTime/Value").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTimeHint = (base.transform.Find("Bg/Frame/LeftTime/Over").GetComponent("XUILabel") as IXUILabel); + this.m_BossName = (base.transform.Find("Bg/Frame/LeftTime/12").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime.SetText(""); + this.m_LeftTimeHint.SetText(""); + this.m_OpenTime.SetText(""); + this.m_BossName.SetText(""); + this.m_RewardPanel = base.transform.Find("Bg/Frame/RewardDlg").gameObject; + this.m_BtnReward = (base.transform.Find("Bg/Frame/AwardDetail").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRewardPanelClose = (base.transform.Find("Bg/Frame/RewardDlg/Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_DropAward = (base.transform.Find("Bg/Frame/DropFrame/Grid").GetComponent("XUIList") as IXUIList); + Transform transform2 = this.m_DropAward.gameObject.transform.Find("ItemTpl"); + this.m_DropAwardPool.SetupPool(transform2.parent.parent.gameObject, transform2.gameObject, 6u, false); + this.m_AwardScrollView = (base.transform.Find("Bg/Frame/RewardDlg/Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_AwardWrapContent = (this.m_AwardScrollView.gameObject.transform.Find("AwardList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_AwardTip = (base.transform.Find("Bg/Frame/RewardDlg/Bg/Bg/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_BossTexture = (base.transform.Find("Bg/Frame/BossTexture").GetComponent("XUITexture") as IXUITexture); + this.m_GuildRankTab = (base.transform.Find("Bg/GuildRankPanel/TabTpl/ToggleGuild").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DamageRankTab = (base.transform.Find("Bg/GuildRankPanel/TabTpl/ToggleFriend").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_BtnSubscribe = (base.transform.Find("Bg/Frame/Subscribe").GetComponent("XUIButton") as IXUIButton); + this.m_BtnCancelSubscribe = (base.transform.Find("Bg/Frame/UnSubscribe").GetComponent("XUIButton") as IXUIButton); + this.m_PrivilegeIcon = (base.transform.Find("Bg/tq").GetComponent("XUISprite") as IXUISprite); + this.m_PrivilegeName = (base.transform.Find("Bg/tq/t").GetComponent("XUILabel") as IXUILabel); + this.m_Privilege = (base.transform.Find("Bg/tq/p").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossBehaviour.cs.meta new file mode 100644 index 00000000..4f3bab4d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 45d36df9784ca5846a4f8eecd1551317 +timeCreated: 1611403648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankInfo.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankInfo.cs new file mode 100644 index 00000000..ab5b5de0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankInfo.cs @@ -0,0 +1,22 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XWorldBossDamageRankInfo : XBaseRankInfo + { + public float damage; + + public uint profession; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, data.RoleName); + this.id = data.RoleId; + this.rank = data.Rank; + this.damage = data.damage; + this.profession = data.profession; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankInfo.cs.meta new file mode 100644 index 00000000..22386a35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40f271aa6df77564a9d6902ce5c7c53d +timeCreated: 1611403615 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankList.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankList.cs new file mode 100644 index 00000000..d66328d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XWorldBossDamageRankList : XBaseRankList + { + public XWorldBossDamageRankList() + { + this.type = XRankType.WorldBossDamageRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XWorldBossDamageRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankList.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankList.cs.meta new file mode 100644 index 00000000..23ecc97d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDamageRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 480447ecb98abd64d80a172464957b46 +timeCreated: 1611403656 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDocument.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDocument.cs new file mode 100644 index 00000000..c1324fff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDocument.cs @@ -0,0 +1,477 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWorldBossDocument : XDocComponent, IWorldBossBattleSource, IRankSource + { + public override uint ID + { + get + { + return XWorldBossDocument.uuID; + } + } + + public List EndListDamage + { + get + { + return this._EndListDamage; + } + } + + public uint EncourageCount + { + get + { + return this._EncourageCount; + } + } + + public uint EncourgeGuildCount + { + get + { + return this._EncourgeGuildCount; + } + } + + public XWorldBossDamageRankList DamageRankList + { + get + { + return this._DamageRankList; + } + } + + public XWorldBossGuildRankList GuildRankList + { + get + { + return this._GuildRankList; + } + } + + public XWorldBossGuildRoleRankList GuildRoleRankList + { + get + { + return this._GuildRoleRankList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("WorldBossDocument"); + + public ActivityWorldBossHandler ActivityWorldBossView; + + public XWorldBossDamageRankHandler RankHandler; + + public BattleWorldBossHandler BattleHandler; + + public XWorldBossView WorldBossDescView; + + public XWorldBossResultView WorldBossResultView; + + public XWorldBossEndRankView WorldBossEndRankView; + + private uint _BossHP; + + private bool _WorldBossEnd = false; + + private List _EndListDamage = new List(); + + private uint _EncourageCount = 0u; + + private uint _EncourgeGuildCount = 0u; + + private XWorldBossDamageRankList _DamageRankList = new XWorldBossDamageRankList(); + + private XWorldBossGuildRankList _GuildRankList = new XWorldBossGuildRankList(); + + private XWorldBossGuildRoleRankList _GuildRoleRankList = new XWorldBossGuildRoleRankList(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static WorldBossRewardTable WorldBossAwardTable = new WorldBossRewardTable(); + + public bool MainInterfaceState = false; + + private float fCdTime = 0f; + + public static void Execute(OnLoadedCallback callback = null) + { + XWorldBossDocument.AsyncLoader.AddTask("Table/WorldBossReward", XWorldBossDocument.WorldBossAwardTable, false); + XWorldBossDocument.AsyncLoader.Execute(callback); + } + + public uint GetWorldBossSceneID() + { + return (uint)XSingleton.singleton.GetInt("WorldBossSceneID"); + } + + public uint GetEncourageCount(int index) + { + bool flag = index == 0; + uint result; + if (flag) + { + result = this._EncourageCount; + } + else + { + bool flag2 = index == 1; + if (flag2) + { + result = this._EncourgeGuildCount; + } + else + { + result = 0u; + } + } + return result; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_WORLDBOSS; + if (flag) + { + this.BattleHandler.RefreshAllEnacourage(); + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + bool worldBossEnd = this._WorldBossEnd; + if (worldBossEnd) + { + this._WorldBossEnd = false; + } + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceState = state; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_Rank_WorldBoss, true); + } + } + + public void ReqWorldBossState() + { + RpcC2M_GetWorldBossStateNew rpcC2M_GetWorldBossStateNew = new RpcC2M_GetWorldBossStateNew(); + rpcC2M_GetWorldBossStateNew.oArg.type = 0u; + XSingleton.singleton.Send(rpcC2M_GetWorldBossStateNew); + } + + public void OnGetWorldBossLeftState(GetWorldBossStateRes oRes) + { + bool flag = this.ActivityWorldBossView != null && this.ActivityWorldBossView.active; + if (flag) + { + this.ActivityWorldBossView.SetLeftTime(oRes.TimeLeft); + } + bool flag2 = this.WorldBossDescView != null && this.WorldBossDescView.IsVisible(); + if (flag2) + { + this.WorldBossDescView.SetLeftTime(oRes.TimeLeft, oRes.BossHp); + this.WorldBossDescView.ShowCurrentBoss(oRes.BossId); + } + this._BossHP = oRes.BossHp; + } + + public void ReqEnterWorldBossScene() + { + bool flag = Time.realtimeSinceStartup - this.fCdTime < 1f; + if (!flag) + { + this._WorldBossEnd = false; + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = this.GetWorldBossSceneID(); + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + this.fCdTime = Time.realtimeSinceStartup; + } + } + + public void ReqRankData(RankeType type, bool inFight) + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(type); + rpcC2M_ClientQueryRankListNtf.oArg.TimeStamp = 1u; + rpcC2M_ClientQueryRankListNtf.oArg.sendPunishData = (inFight ? 1u : 0u); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void OnGetLatestRankInfo(ClientQueryRankListRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (!flag) + { + RankeType rankType = (RankeType)oRes.RankType; + bool flag2 = rankType == RankeType.WorldBossGuildRank; + if (flag2) + { + this._GuildRankList.timeStamp = oRes.TimeStamp; + XRankDocument.ProcessRankListData(oRes.RankList, this._GuildRankList); + XRankDocument.ProcessSelfRankData(oRes, this._GuildRankList); + } + else + { + bool flag3 = rankType == RankeType.WorldBossDamageRank; + if (flag3) + { + this._DamageRankList.timeStamp = oRes.TimeStamp; + XRankDocument.ProcessRankListData(oRes.RankList, this._DamageRankList); + XRankDocument.ProcessSelfRankData(oRes, this._DamageRankList); + } + else + { + bool flag4 = rankType == RankeType.WorldBossGuildRoleRank; + if (flag4) + { + this._GuildRoleRankList.timeStamp = oRes.TimeStamp; + XRankDocument.ProcessRankListData(oRes.RankList, this._GuildRoleRankList); + XRankDocument.ProcessSelfRankData(oRes, this._GuildRoleRankList); + } + } + } + bool flag5 = this.RankHandler != null && this.RankHandler.PanelObject != null && this.RankHandler.IsVisible(); + if (flag5) + { + this.RankHandler.RefreshPage(); + } + bool flag6 = this.WorldBossDescView != null && this.WorldBossDescView.IsVisible(); + if (flag6) + { + this.WorldBossDescView.RefreshDamageRank(); + this.WorldBossDescView.SetMyRankFrame(); + } + bool flag7 = rankType == RankeType.WorldBossGuildRank && this.WorldBossEndRankView != null && this.WorldBossEndRankView.IsVisible(); + if (flag7) + { + this.WorldBossEndRankView.RefreshGuildRank(); + this.WorldBossEndRankView.SetMyRankFrame(); + } + } + } + + public XBaseRankList GetRankList(RankeType type) + { + bool flag = type == RankeType.WorldBossGuildRank; + XBaseRankList result; + if (flag) + { + result = this._GuildRankList; + } + else + { + bool flag2 = type == RankeType.WorldBossGuildRoleRank; + if (flag2) + { + result = this._GuildRoleRankList; + } + else + { + result = this._DamageRankList; + } + } + return result; + } + + public void ReqBattleInfo() + { + RpcC2M_GetWorldBossTimeLeft rpc = new RpcC2M_GetWorldBossTimeLeft(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetBattleInfo(GetWorldBossTimeLeftRes oRes) + { + bool flag = this.BattleHandler != null && this.BattleHandler.active; + if (flag) + { + this.BattleHandler.SetLeftTime(oRes.timeleft); + } + bool flag2 = this.RankHandler != null && this.RankHandler.active; + if (flag2) + { + this.RankHandler.SetGuildMemberCount(oRes.guildrolecount); + } + } + + public void OnGetAttrCount(WorldBossAttrNtf ntf) + { + this._EncourageCount = ntf.count; + } + + public void ReqEncourageTwo() + { + XSingleton.singleton.AddGreenLog("ReqEncourageTwo", null, null, null, null, null); + RpcC2M_WorldBossGuildAddAttr rpcC2M_WorldBossGuildAddAttr = new RpcC2M_WorldBossGuildAddAttr(); + rpcC2M_WorldBossGuildAddAttr.oArg.count = this._EncourgeGuildCount; + XSingleton.singleton.Send(rpcC2M_WorldBossGuildAddAttr); + } + + public void OnGetEncourageTwo(WorldBossGuildAddAttrArg arg, WorldBossGuildAddAttrRes oRes) + { + XSingleton.singleton.AddGreenLog("OnGetEncourageTwo", null, null, null, null, null); + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + + public void ReceiveGuildAttAttrSync(WorldBossGuildAddAttrSyncClient ntf) + { + XSingleton.singleton.AddGreenLog("ReceiveGuildAttAttrSync:" + ntf.count.ToString(), null, null, null, null, null); + this._EncourgeGuildCount = ntf.count; + this.BattleHandler.RefreshEncourage(1); + } + + public void ReqEncourage() + { + XSingleton.singleton.AddGreenLog("ReqEncourage", null, null, null, null, null); + RpcC2G_AddTempAttr rpcC2G_AddTempAttr = new RpcC2G_AddTempAttr(); + rpcC2G_AddTempAttr.oArg.type = 0u; + XSingleton.singleton.Send(rpcC2G_AddTempAttr); + } + + public void OnGetEncourage(AddTempAttrRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + this._EncourageCount = oRes.count; + this.BattleHandler.RefreshEncourage(0); + } + } + + public List GetAwardList(uint roleLevel) + { + List list = new List(); + WorldBossRewardTable.RowData[] table = XWorldBossDocument.WorldBossAwardTable.Table; + int num = 0; + for (int i = 0; i < table.Length; i++) + { + WorldBossRewardTable.RowData rowData = table[i]; + bool flag = (ulong)roleLevel >= (ulong)((long)rowData.Level); + if (flag) + { + num = i; + } + } + for (int j = 0; j < table.Length; j++) + { + bool flag2 = table[j].Level == table[num].Level; + if (flag2) + { + list.Add(table[j]); + } + } + return list; + } + + public WorldBossRewardTable.RowData GetDropReward(uint roleLevel) + { + WorldBossRewardTable.RowData[] table = XWorldBossDocument.WorldBossAwardTable.Table; + int num = 0; + for (int i = 0; i < table.Length; i++) + { + WorldBossRewardTable.RowData rowData = table[i]; + bool flag = (ulong)roleLevel >= (ulong)((long)rowData.Level); + if (flag) + { + num = i; + } + } + for (int j = 0; j < table.Length; j++) + { + bool flag2 = table[j].Level == table[num].Level; + if (flag2) + { + return table[j]; + } + } + return null; + } + + public void OnWorldBossStateNtf(WorldBossStateNtf stateInfo) + { + bool flag = stateInfo.state == WorldBossState.WorldBoss_WaitEnd; + if (flag) + { + this._WorldBossEnd = true; + DlgBase.singleton.ShowResult(stateInfo.iswin); + } + } + + public void ReqQutiScene() + { + XSingleton.singleton.ReqLeaveScene(); + } + + public void GetWorldBossTime(ref int startTime, ref int endTime) + { + XActivityDocument doc = XActivityDocument.Doc; + for (int i = 0; i < doc.MulActivityTable.Table.Length; i++) + { + bool flag = doc.MulActivityTable.Table[i].SystemID == XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Activity_WorldBoss); + if (flag) + { + SeqListRef openDayTime = doc.MulActivityTable.Table[i].OpenDayTime; + bool flag2 = openDayTime.Count > 0; + if (flag2) + { + startTime = (int)openDayTime[0, 0]; + endTime = (int)openDayTime[0, 1]; + } + } + } + } + + public void ReqWorldBossEnd() + { + RpcC2M_WorldBossEnd rpc = new RpcC2M_WorldBossEnd(); + XSingleton.singleton.Send(rpc); + } + + public void OnWorldBossEnd(WorldBossEndArg oArg, WorldBossEndRes oRes) + { + this._EndListDamage = oRes.damages; + bool flag = this.WorldBossEndRankView != null && this.WorldBossEndRankView.IsVisible(); + if (flag) + { + this.WorldBossEndRankView.RefreshDamageRank(); + this.WorldBossEndRankView.SetMyRankFrame(oRes.selfdamage); + } + } + + public void LeaveSceneCountDown(uint time) + { + bool flag = this.BattleHandler != null && this.BattleHandler.IsVisible(); + if (flag) + { + this.BattleHandler.OnLeaveSceneCountDown(time); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDocument.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDocument.cs.meta new file mode 100644 index 00000000..182093da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47c7b0f0856618349abc69583aabf240 +timeCreated: 1611403655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossEndRankBehaviour.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossEndRankBehaviour.cs new file mode 100644 index 00000000..0d3651aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossEndRankBehaviour.cs @@ -0,0 +1,50 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XWorldBossEndRankBehaviour : DlgBehaviourBase + { + public IXUIButton m_BtnClose; + + public IXUIButton m_BtnGoReward; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public GameObject m_RankPanel; + + public IXUILabel m_RankPanel_EmptyRank; + + public GameObject m_MyRank; + + public GameObject m_MyOutOfRange; + + public IXUICheckBox m_GuildRankTab; + + public IXUICheckBox m_DamageRankTab; + + public IXUILabel m_RankTitle; + + private void Awake() + { + this.m_BtnClose = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnGoReward = (base.transform.Find("Bg/BtnStart").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Bg/Panel/BaseList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankPanel = base.transform.Find("Bg/Bg/Panel").gameObject; + this.m_RankPanel_EmptyRank = (base.transform.Find("Bg/Bg/Panel/EmptyRank").GetComponent("XUILabel") as IXUILabel); + this.m_MyRank = base.transform.Find("Bg/Bg/RankTpl").gameObject; + this.m_MyOutOfRange = base.transform.Find("Bg/Bg/OutOfRange").gameObject; + this.m_MyRank.SetActive(false); + this.m_MyOutOfRange.SetActive(false); + this.m_RankPanel_EmptyRank.gameObject.SetActive(false); + this.m_GuildRankTab = (base.transform.Find("Bg/TabTpl/ToggleGuild").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DamageRankTab = (base.transform.Find("Bg/TabTpl/ToggleFriend").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RankTitle = (base.transform.Find("Bg/Bg/Titles/BaseList/Name").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossEndRankBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossEndRankBehaviour.cs.meta new file mode 100644 index 00000000..aa2751b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossEndRankBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ad78552b3045444b82a7878d83aee5f +timeCreated: 1611403597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankInfo.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankInfo.cs new file mode 100644 index 00000000..4876324f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankInfo.cs @@ -0,0 +1,17 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XWorldBossGuildRankInfo : XBaseRankInfo + { + public float damage; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.rank = data.Rank; + this.damage = data.damage; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankInfo.cs.meta new file mode 100644 index 00000000..0c9cda51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 490b8cb0289e8f247b2a2f028a306dd5 +timeCreated: 1611403660 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankList.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankList.cs new file mode 100644 index 00000000..10b4fbb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XWorldBossGuildRankList : XBaseRankList + { + public XWorldBossGuildRankList() + { + this.type = XRankType.WorldBossGuildRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XWorldBossGuildRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankList.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankList.cs.meta new file mode 100644 index 00000000..16222c2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2475da8eb6daa7409b470bc1cdb4f22 +timeCreated: 1611404842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankInfo.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankInfo.cs new file mode 100644 index 00000000..ab625299 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankInfo.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XWorldBossGuildRoleRankInfo : XBaseRankInfo + { + public float damage; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.rank = data.Rank; + this.damage = data.damage; + this.id = data.RoleId; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankInfo.cs.meta new file mode 100644 index 00000000..d654a0ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cb77a933f2d81394fb691a56737a4230 +timeCreated: 1611404546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankList.cs b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankList.cs new file mode 100644 index 00000000..e4714303 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XWorldBossGuildRoleRankList : XBaseRankList + { + public XWorldBossGuildRoleRankList() + { + this.type = XRankType.WorldBossGuildRoleRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XWorldBossGuildRoleRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankList.cs.meta b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankList.cs.meta new file mode 100644 index 00000000..63cbc998 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/WorldBoss/XWorldBossGuildRoleRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15fd7f29106cced4aba7deb8b1623ab6 +timeCreated: 1611403267 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs b/Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs new file mode 100644 index 00000000..9fda2889 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs @@ -0,0 +1,793 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class X3DAvatarMgr : XSingleton, IX3DAvatarMgr, IXInterface + { + public bool Deprecated { get; set; } + + private List dummyPool = new List(); + + private XDummy mainPlayerDummy = null; + + private XOutlookData outlookDataCache = new XOutlookData(); + + public class DummyPool + { + public List pool = new List(); + + public string user = ""; + + public int maxCount = 1; + } + + private void SetDummy(X3DAvatarMgr.DummyPool dp, XDummy dummy, int slot) + { + bool flag = slot >= 0 && slot < dp.pool.Count; + if (flag) + { + dp.pool[slot] = dummy; + } + } + + private XDummy FindDummy(XEntity reference) + { + bool flag = this.mainPlayerDummy != null && this.mainPlayerDummy.RefID == reference.ID; + XDummy result; + if (flag) + { + result = this.mainPlayerDummy; + } + else + { + result = null; + } + return result; + } + + private void ResetDummy(XDummy dummy, bool destroy) + { + bool flag = !dummy.Deprecated; + if (flag) + { + dummy.IsEnableUIRim = false; + dummy.EngineObject.SetParent(null); + dummy.EngineObject.Position = XResourceLoaderMgr.Far_Far_Away; + if (destroy) + { + dummy.SetupUIDummy(false); + XSingleton.singleton.DestroyEntity(dummy); + } + } + else + { + XSingleton.singleton.AddWarningLog("dummy already destroyed!", null, null, null, null, null); + } + } + + private void EnableDummy(XDummy dummy, bool enable, IUIDummy snapShot) + { + bool flag = dummy != null && !dummy.Deprecated; + if (flag) + { + if (enable) + { + dummy.IsEnableUIRim = true; + dummy.SetupRenderQueue(snapShot); + bool flag2 = snapShot != null; + if (flag2) + { + dummy.ResetAnimation(); + dummy.EngineObject.SetParentTrans(snapShot.transform); + dummy.EngineObject.SetLocalPRS(Vector3.zero, true, Quaternion.AngleAxis(180f + dummy.DefaultRotation, Vector3.up), true, Vector3.one * dummy.Scale, true); + } + bool flag3 = dummy.Equipment != null; + if (flag3) + { + dummy.Equipment.RefreashSprite(); + } + } + else + { + this.ResetDummy(dummy, false); + dummy.IsEnableUIRim = false; + } + } + } + + private void CreateMainDummy() + { + bool flag = this.mainPlayerDummy == null; + if (flag) + { + XPlayer player = XSingleton.singleton.Player; + bool flag2 = player == null || player.Deprecated; + if (!flag2) + { + bool flag3 = player.Attributes == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("CreateMainDummy Not Found Attributes!", null, null, null, null, null); + } + else + { + XOutlookData outlook = player.Attributes.Outlook; + outlook.uiAvatar = true; + outlook.isMainDummy = true; + this.mainPlayerDummy = XSingleton.singleton.CreateDummy(player.PresentID, player.TypeID, outlook, false, false, true); + this.mainPlayerDummy.RefID = player.ID; + outlook.isMainDummy = false; + outlook.uiAvatar = false; + } + } + } + } + + private bool MakeOutlookData(ulong uid, uint unitType, OutLook outlook, out uint present_id, out uint type_id) + { + this.outlookDataCache.uiAvatar = true; + present_id = 0u; + type_id = 0u; + EntityCategory category = XAttributes.GetCategory(uid); + bool flag = category != EntityCategory.Category_Role && category != EntityCategory.Category_DummyRole; + if (flag) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(unitType); + bool flag2 = byID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("fake role monster must have fashion template , data == null , uid = ", uid.ToString(), null, null, null, null); + return false; + } + present_id = byID.PresentID; + bool flag3 = byID.FashionTemplate > 0; + if (!flag3) + { + XSingleton.singleton.AddErrorLog("fake role monster must have fashion template", null, null, null, null, null); + return false; + } + this.outlookDataCache.SetDefaultFashion(byID.FashionTemplate); + } + else + { + ProfessionTable.RowData byProfID = XSingleton.singleton.RoleInfo.GetByProfID(unitType % 10u); + bool flag4 = byProfID == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("ProfessionTable config not found: unitType = ", unitType.ToString(), null, null, null, null); + return false; + } + present_id = byProfID.PresentID; + type_id = unitType; + this.outlookDataCache.SetData(outlook, type_id); + this.outlookDataCache.SetSpriteData(outlook); + } + return true; + } + + private X3DAvatarMgr.DummyPool GetDummyPool(int index) + { + bool flag = index >= 0 && index < this.dummyPool.Count; + X3DAvatarMgr.DummyPool result; + if (flag) + { + result = this.dummyPool[index]; + } + else + { + XSingleton.singleton.AddErrorLog("Invalid DummyPool Index: ", index.ToString(), null, null, null, null); + result = null; + } + return result; + } + + public int AllocDummyPool(string user, int maxCount = 1) + { + int i = 0; + int count = this.dummyPool.Count; + while (i < count) + { + X3DAvatarMgr.DummyPool dummyPool = this.dummyPool[i]; + bool flag = dummyPool.user == ""; + if (flag) + { + dummyPool.user = user; + dummyPool.maxCount = maxCount; + return i; + } + i++; + } + X3DAvatarMgr.DummyPool dummyPool2 = new X3DAvatarMgr.DummyPool(); + dummyPool2.user = user; + dummyPool2.maxCount = maxCount; + this.dummyPool.Add(dummyPool2); + return this.dummyPool.Count - 1; + } + + public void ReturnDummyPool(int index) + { + bool flag = index >= 0 && index < this.dummyPool.Count; + if (flag) + { + X3DAvatarMgr.DummyPool dummyPool = this.dummyPool[index]; + dummyPool.user = ""; + int i = 0; + int count = dummyPool.pool.Count; + while (i < count) + { + bool flag2 = dummyPool.pool[i] != null; + if (flag2) + { + this.ResetDummy(dummyPool.pool[i], true); + } + i++; + } + dummyPool.pool.Clear(); + } + } + + public XDummy CreateCommonRoleDummy(int dummyPool, UnitAppearance unit, IUIDummy snapShot, XDummy orig) + { + bool flag = unit == null || unit.uID == 0UL; + XDummy result; + if (flag) + { + result = null; + } + else + { + result = this.CreateCommonRoleDummy(dummyPool, unit.uID, unit.unitType, unit.outlook, snapShot, orig); + } + return result; + } + + public XDummy CreateCommonRoleDummy(int dummyPool, ulong uid, uint unitType, OutLook outlook, IUIDummy snapShot, XDummy orig) + { + bool flag = uid == 0UL; + XDummy result; + if (flag) + { + result = null; + } + else + { + X3DAvatarMgr.DummyPool dummyPool2 = this.GetDummyPool(dummyPool); + bool flag2 = dummyPool2 == null; + if (flag2) + { + result = null; + } + else + { + int num = -1; + int i = 0; + int count = dummyPool2.pool.Count; + while (i < count) + { + XDummy xdummy = dummyPool2.pool[i]; + bool flag3 = xdummy != null && xdummy == orig; + if (flag3) + { + bool flag4 = uid == xdummy.RefID; + if (flag4) + { + this.EnableDummy(orig, true, snapShot); + this.SetOutlook(xdummy, unitType, outlook); + return orig; + } + num = i; + this.ResetDummy(orig, true); + break; + } + else + { + bool flag5 = xdummy == null && num == -1; + if (flag5) + { + num = i; + } + i++; + } + } + bool flag6 = num == -1; + if (flag6) + { + dummyPool2.pool.Add(null); + num = dummyPool2.pool.Count - 1; + } + uint present_id = 0u; + uint type_id = 0u; + bool flag7 = this.MakeOutlookData(uid, unitType, outlook, out present_id, out type_id); + if (flag7) + { + this.outlookDataCache.isMainDummy = (XSingleton.singleton.Player != null && XSingleton.singleton.Player.ID == uid); + XDummy xdummy2 = XSingleton.singleton.CreateDummy(present_id, type_id, this.outlookDataCache, false, false, true); + this.SetDummy(dummyPool2, xdummy2, num); + xdummy2.RefID = uid; + this.outlookDataCache.isMainDummy = false; + this.EnableDummy(xdummy2, true, snapShot); + result = xdummy2; + } + else + { + result = null; + } + } + } + return result; + } + + public void SetOutlook(XDummy dummy, uint unitType, OutLook outlook) + { + this.outlookDataCache.uiAvatar = true; + this.outlookDataCache.SetData(outlook, unitType); + this.outlookDataCache.SetSpriteData(outlook); + dummy.SetOutlook(this.outlookDataCache); + } + + public void SetDummyAnim(int dummyPool, string idStr, string anim) + { + X3DAvatarMgr.DummyPool dummyPool2 = this.GetDummyPool(dummyPool); + bool flag = dummyPool2 == null; + if (!flag) + { + bool flag2 = !string.IsNullOrEmpty(idStr); + if (flag2) + { + ulong num = 0UL; + ulong.TryParse(idStr, out num); + bool flag3 = num != 0UL && num == this.mainPlayerDummy.ID; + if (flag3) + { + this.mainPlayerDummy.SetAnimation(anim); + } + int i = 0; + int count = dummyPool2.pool.Count; + while (i < count) + { + XDummy xdummy = dummyPool2.pool[i]; + bool flag4 = xdummy != null && num == xdummy.ID; + if (flag4) + { + xdummy.SetAnimation(anim); + break; + } + i++; + } + } + } + } + + public void SetMainDummyAnim(string anim) + { + bool flag = this.mainPlayerDummy != null; + if (flag) + { + this.mainPlayerDummy.SetAnimation(anim); + } + } + + public string CreateCommonDummy(int dummyPool, uint presentID, IUIDummy snapShot, IXDummy orig, float scale = 1f) + { + XDummy xdummy = this.CreateCommonEntityDummy(dummyPool, presentID, snapShot, orig as XDummy, scale); + return (xdummy == null) ? string.Empty : xdummy.ID.ToString(); + } + + public XDummy CreateCommonEntityDummy(int dummyPool, uint presentID, IUIDummy snapShot, XDummy orig, float scale = 1f) + { + X3DAvatarMgr.DummyPool dummyPool2 = this.GetDummyPool(dummyPool); + bool flag = dummyPool2 == null; + XDummy result; + if (flag) + { + result = null; + } + else + { + int num = -1; + int i = 0; + int count = dummyPool2.pool.Count; + while (i < count) + { + XDummy xdummy = dummyPool2.pool[i]; + bool flag2 = xdummy != null && (xdummy == orig || presentID == xdummy.PresentID); + if (flag2) + { + bool flag3 = presentID == xdummy.PresentID; + if (flag3) + { + this.EnableDummy(orig, true, snapShot); + return orig; + } + num = i; + this.ResetDummy(orig, true); + break; + } + else + { + bool flag4 = xdummy == null && num == -1; + if (flag4) + { + num = i; + } + i++; + } + } + bool flag5 = num == -1; + if (flag5) + { + dummyPool2.pool.Add(null); + num = dummyPool2.pool.Count - 1; + } + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(presentID); + bool flag6 = byPresentID != null; + if (flag6) + { + XDummy xdummy2 = XSingleton.singleton.CreateDummy(presentID, 0u, null, false, false, true); + xdummy2.SetupUIDummy(true); + xdummy2.Scale = scale * byPresentID.UIAvatarScale; + this.SetDummy(dummyPool2, xdummy2, num); + this.EnableDummy(xdummy2, true, snapShot); + result = xdummy2; + } + else + { + result = null; + } + } + return result; + } + + public XDummy FindCreateCommonRoleDummy(int dummyPool, ulong referenceID, uint unitType, OutLook outlook, IUIDummy snapShot, int index) + { + X3DAvatarMgr.DummyPool dummyPool2 = this.GetDummyPool(dummyPool); + bool flag = dummyPool2 == null; + XDummy result; + if (flag) + { + result = null; + } + else + { + bool flag2 = index < 0; + if (flag2) + { + result = null; + } + else + { + for (int i = dummyPool2.pool.Count - 1; i < index; i++) + { + dummyPool2.pool.Add(null); + } + int num = -1; + int j = 0; + int count = dummyPool2.pool.Count; + while (j < count) + { + XDummy xdummy = dummyPool2.pool[j]; + bool flag3 = xdummy != null && xdummy.RefID == referenceID; + if (flag3) + { + num = j; + break; + } + j++; + } + XDummy xdummy2 = null; + bool flag4 = num >= 0; + if (flag4) + { + xdummy2 = dummyPool2.pool[num]; + bool flag5 = num != index; + if (flag5) + { + dummyPool2.pool[num] = dummyPool2.pool[index]; + dummyPool2.pool[index] = xdummy2; + } + } + else + { + uint present_id = 0u; + uint type_id = 0u; + bool flag6 = this.MakeOutlookData(referenceID, unitType, outlook, out present_id, out type_id); + if (flag6) + { + xdummy2 = XSingleton.singleton.CreateDummy(present_id, type_id, this.outlookDataCache, false, false, true); + bool flag7 = dummyPool2.pool[index] != null; + if (flag7) + { + this.ResetDummy(dummyPool2.pool[index], true); + } + dummyPool2.pool[index] = xdummy2; + bool flag8 = referenceID > 0UL; + if (flag8) + { + xdummy2.RefID = referenceID; + } + } + } + this.EnableDummy(xdummy2, true, snapShot); + result = xdummy2; + } + } + return result; + } + + public void DestroyDummy(int dummyPool, string idStr) + { + X3DAvatarMgr.DummyPool dummyPool2 = this.GetDummyPool(dummyPool); + bool flag = dummyPool2 == null; + if (!flag) + { + bool flag2 = !string.IsNullOrEmpty(idStr); + if (flag2) + { + ulong num = 0UL; + ulong.TryParse(idStr, out num); + bool flag3 = num != 0UL && num == this.mainPlayerDummy.ID; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Cant destroy Main Dummy, just use EnableMainDummy", null, null, null, null, null); + } + else + { + int i = 0; + int count = dummyPool2.pool.Count; + while (i < count) + { + XDummy xdummy = dummyPool2.pool[i]; + bool flag4 = num == xdummy.ID; + if (flag4) + { + this.ResetDummy(xdummy, true); + dummyPool2.pool[i] = null; + break; + } + i++; + } + } + } + } + } + + public void DestroyDummy(int dummyPool, XDummy dummy) + { + bool flag = dummy != null; + if (flag) + { + bool flag2 = dummy == this.mainPlayerDummy; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant destroy Main Dummy, just use EnableMainDummy", null, null, null, null, null); + } + else + { + X3DAvatarMgr.DummyPool dummyPool2 = this.GetDummyPool(dummyPool); + bool flag3 = dummyPool2 == null; + if (!flag3) + { + int i = 0; + int count = dummyPool2.pool.Count; + while (i < count) + { + XDummy xdummy = dummyPool2.pool[i]; + bool flag4 = xdummy == dummy; + if (flag4) + { + this.ResetDummy(dummy, true); + dummyPool2.pool[i] = null; + return; + } + i++; + } + this.ResetDummy(dummy, true); + } + } + } + } + + public void ClearDummy(int dummyPool) + { + X3DAvatarMgr.DummyPool dummyPool2 = this.GetDummyPool(dummyPool); + bool flag = dummyPool2 == null; + if (!flag) + { + int i = 0; + int count = dummyPool2.pool.Count; + while (i < count) + { + XDummy xdummy = dummyPool2.pool[i]; + bool flag2 = xdummy != null; + if (flag2) + { + this.ResetDummy(xdummy, true); + dummyPool2.pool[i] = null; + } + i++; + } + } + } + + public void EnableCommonDummy(XDummy origDummy, IUIDummy snapShot, bool enable) + { + this.EnableDummy(origDummy, enable, snapShot); + } + + public void EnableMainDummy(bool enable, IUIDummy snapShot) + { + bool flag = this.mainPlayerDummy != null; + if (flag) + { + this.mainPlayerDummy.SetupUIDummy(true); + } + if (enable) + { + this.CreateMainDummy(); + } + this.EnableDummy(this.mainPlayerDummy, enable, snapShot); + } + + public void OnUIUnloadMainDummy(IUIDummy snapShot) + { + bool flag = snapShot != null && this.mainPlayerDummy != null && this.mainPlayerDummy.EngineObject != null; + if (flag) + { + this.ResetDummy(this.mainPlayerDummy, false); + } + } + + public void SetMainDummy(bool ui) + { + bool flag = this.mainPlayerDummy != null; + if (flag) + { + this.mainPlayerDummy.SetupUIDummy(ui); + } + } + + public void Clean(bool transfer) + { + bool flag = !transfer; + if (flag) + { + bool flag2 = this.mainPlayerDummy != null; + if (flag2) + { + this.ResetDummy(this.mainPlayerDummy, true); + } + this.mainPlayerDummy = null; + int i = 0; + int count = this.dummyPool.Count; + while (i < count) + { + X3DAvatarMgr.DummyPool dummyPool = this.dummyPool[i]; + int j = 0; + int count2 = dummyPool.pool.Count; + while (j < count2) + { + bool flag3 = dummyPool.pool[j] != null; + if (flag3) + { + this.ResetDummy(dummyPool.pool[j], true); + } + j++; + } + dummyPool.pool.Clear(); + dummyPool.user = ""; + i++; + } + this.dummyPool.Clear(); + } + } + + public void RotateMain(float degree) + { + bool flag = this.mainPlayerDummy != null; + if (flag) + { + this.mainPlayerDummy.EngineObject.Rotate(Vector3.up, degree); + } + } + + public void RotateDummy(XDummy dummy, float degree) + { + bool flag = dummy != null; + if (flag) + { + dummy.EngineObject.Rotate(Vector3.up, degree); + } + } + + public void OnFashionChanged(XEntity reference) + { + XDummy xdummy = this.FindDummy(reference); + bool flag = xdummy != null && xdummy.Equipment != null; + if (flag) + { + XOutlookData outlook = reference.Attributes.Outlook; + xdummy.Equipment.EquipFromVisibleList(outlook.OutlookList, outlook.hairColorID, outlook.suitEffectID); + } + } + + public void OnEnhanceMasterChanged(XEntity reference) + { + XDummy xdummy = this.FindDummy(reference); + bool flag = xdummy != null && !xdummy.Deprecated; + if (flag) + { + bool flag2 = xdummy == this.mainPlayerDummy; + if (flag2) + { + xdummy.Equipment.SetEnhanceMaster(reference.Attributes.Outlook.enhanceMasterLevel); + xdummy.Equipment.SetSuitFx(reference.Attributes.Outlook.suitEffectID); + } + xdummy.Equipment.RefreshSuitFx(); + xdummy.Equipment.RefreshEquipFx(); + xdummy.Equipment.RefreshSecondWeaponFx(); + } + } + + public void OnFashionSuitChanged(XEntity reference, FashionSuitTable.RowData suitData) + { + XDummy xdummy = this.FindDummy(reference); + bool flag = xdummy != null; + if (flag) + { + this.outlookDataCache.SetProfType(xdummy.TypeID); + this.outlookDataCache.SetFashion(XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_ALL_END), 0); + this.outlookDataCache.SetFashionData(suitData.FashionID, true); + xdummy.Equipment.EquipFromVisibleList(this.outlookDataCache.OutlookList, this.outlookDataCache.hairColorID, this.outlookDataCache.suitEffectID); + xdummy.Equipment.AttachSprite(false, 0u); + } + } + + public void OnSpriteChanged(XEntity reference, uint presentID) + { + XDummy xdummy = this.FindDummy(reference); + bool flag = xdummy != null; + if (flag) + { + xdummy.Equipment.AttachSprite(presentID > 0u, presentID); + } + } + + public void SetMainAnimation(string anim) + { + bool flag = this.mainPlayerDummy != null; + if (flag) + { + this.mainPlayerDummy.SetAnimation(anim); + } + } + + public float SetMainAnimationGetLength(string anim) + { + bool flag = this.mainPlayerDummy != null; + float result; + if (flag) + { + result = this.mainPlayerDummy.SetAnimationGetLength(anim); + } + else + { + result = -1f; + } + return result; + } + + public void ResetMainAnimation() + { + bool flag = this.mainPlayerDummy != null; + if (flag) + { + this.mainPlayerDummy.ResetAnimation(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs.meta b/Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs.meta new file mode 100644 index 00000000..ff4f49d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/X3DAvatarMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 813404658395c0b4db9bf5cd3f20803e +timeCreated: 1611404036 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs b/Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs new file mode 100644 index 00000000..db19b914 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class X3DTouchMgr : XSingleton + { + private float _last_touch_time = 0f; + + private float _pointx = 0f; + + private float _pointy = 0f; + + public void OnProcess3DTouch(string msg = "") + { + bool flag = Time.time - this._last_touch_time < 1f; + if (!flag) + { + this._last_touch_time = Time.time; + bool flag2 = XSingleton.singleton.IsRecording() || XSingleton.singleton.IsInRecordingState; + if (!flag2) + { + bool flag3 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Photo); + if (!flag3) + { + XSingleton.singleton.AddLog("The dict: ", msg, null, null, null, null, XDebugColor.XDebug_None); + bool flag4 = !string.IsNullOrEmpty(msg); + if (flag4) + { + Dictionary dictionary = Json.Deserialize(msg) as Dictionary; + bool flag5 = dictionary != null && dictionary.ContainsKey("data"); + if (flag5) + { + Dictionary dictionary2 = dictionary["data"] as Dictionary; + bool flag6 = dictionary2 != null; + if (flag6) + { + bool flag7 = dictionary2.ContainsKey("index_x") && dictionary2["index_x"] != null; + if (flag7) + { + string s = dictionary2["index_x"].ToString(); + float.TryParse(s, out this._pointx); + } + bool flag8 = dictionary2.ContainsKey("index_y") && dictionary2["index_y"] != null; + if (flag8) + { + string s2 = dictionary2["index_y"].ToString(); + float.TryParse(s2, out this._pointy); + } + float num = 2f; + bool flag9 = Screen.height == 1080 && Screen.width == 1920; + if (flag9) + { + num = 2.6f; + } + this._pointx *= num; + this._pointy = (float)Screen.height - this._pointy * num; + } + } + } + XSingleton.singleton.AddLog("Process 3d touch", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag10 = XSingleton.singleton.IsPVPScene() || XSingleton.singleton.IsPVEScene(); + if (flag10) + { + bool flag11 = XSingleton.singleton.GameCamera != null && XSingleton.singleton.Player != null; + if (flag11) + { + Vector2 vector; + vector= new Vector3(this._pointx, this._pointy); + XSingleton.singleton.AddLog("Touch screen pos: ", vector.x.ToString(), ", y:", vector.y.ToString(), null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("Is touch on ui: ", XTouch.PointOnUI(vector).ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag12 = !XTouch.PointOnUI(vector); + if (flag12) + { + bool flag13 = XSingleton.singleton.Feeding && vector.x <= (float)(Screen.width / 2); + if (!flag13) + { + bool flag14 = XSingleton.singleton.GameCamera.BackToPlayer(); + bool flag15 = !flag14; + if (flag15) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_CAMERA_ROT"), "fece00"); + } + } + } + } + } + else + { + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType <= SceneType.SCENE_GUILD_HALL) + { + if (sceneType != SceneType.SCENE_HALL && sceneType != SceneType.SCENE_GUILD_HALL) + { + goto IL_348; + } + } + else if (sceneType != SceneType.SCENE_FAMILYGARDEN && sceneType != SceneType.SCENE_LEISURE) + { + goto IL_348; + } + this.OnProcessScreenShot(msg); + IL_348:; + } + } + } + } + } + + private void OnProcessScreenShot(string msg) + { + bool flag = XSingleton.singleton.Feeding && this._pointx <= (float)(Screen.width / 2); + if (!flag) + { + bool flag2 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (!flag2) + { + bool flag3 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (!flag3) + { + bool flag4 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (!flag4) + { + bool flag5 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (!flag5) + { + bool flag6 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag7 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag7) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag8 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag8) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + bool flag9 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag9) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag10 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible() && DlgBase.singleton.fakeShow; + if (flag10) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.ShowMainView(); + } + else + { + bool flag11 = DlgBase.singleton.IsInReadyScreenShowView(); + if (flag11) + { + DlgBase.singleton.IOS3DTouchScreenShot(); + } + } + } + } + } + } + } + } + + private void OnCameraStraightForward() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs.meta b/Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs.meta new file mode 100644 index 00000000..f8daa913 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/X3DTouchMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: db65449521773964dae24a936e3af03c +timeCreated: 1611404652 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIAutoFightEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAIAutoFightEventArgs.cs new file mode 100644 index 00000000..98016b31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIAutoFightEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XAIAutoFightEventArgs : XEventArgs + { + public XAIAutoFightEventArgs() + { + this._eDefine = XEventDefine.XEvent_AIAutoFight; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIAutoFightEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAIAutoFightEventArgs.cs.meta new file mode 100644 index 00000000..2979745a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIAutoFightEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: badd54d98e7db964ab6c8701ae9d8a1d +timeCreated: 1611404439 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIComponent.cs b/Client/Assets/Scripts/XMainClient/XAIComponent.cs new file mode 100644 index 00000000..a247c12e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIComponent.cs @@ -0,0 +1,1498 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAIComponent : XComponent + { + public override uint ID + { + get + { + return XAIComponent.uuID; + } + } + + public bool IsFighting + { + get + { + return this._is_fighting; + } + set + { + this._is_fighting = value; + } + } + + public XRole Opponent + { + get + { + return this._opponent; + } + set + { + this._opponent = value; + } + } + + public float MoveSpeed + { + get + { + return this._entity.Attributes.RunSpeed; + } + } + + public Vector3 BornPos + { + get + { + return this._born_pos; + } + } + + public float AttackRange + { + get + { + return this._attack_range; + } + } + + public float MinKeepRange + { + get + { + return this._min_keep_range; + } + } + + public int HuanraoIndex + { + get + { + return this._huanraoindex; + } + set + { + this._huanraoindex = value; + } + } + + public float AttackProb + { + get + { + return this._normal_attack_prob; + } + } + + public float EnterFightRange + { + get + { + return this._enter_fight_range; + } + } + + public float FightTogetherDis + { + get + { + return this._fight_together_dis; + } + } + + public bool IsCastingSkill + { + get + { + return this._is_casting_skill; + } + } + + public bool IsOppoCastingSkill + { + get + { + return this._is_oppo_casting_skill; + } + } + + public bool IsFixedInCd + { + get + { + return this._is_fixed_in_cd; + } + } + + public bool IsWander + { + get + { + return this._is_wander; + } + } + + public bool IsHurtOppo + { + get + { + return this._is_hurt_oppo; + } + set + { + this._is_hurt_oppo = value; + } + } + + public uint CastingSkillId + { + get + { + return this._cast_skillid; + } + set + { + this._cast_skillid = value; + } + } + + public XEnmityList EnmityList + { + get + { + return this._enmity_list; + } + } + + public XAIEventArgs AIEvent + { + get + { + return this._ai_event; + } + set + { + this._ai_event = value; + } + } + + public XPatrol Patrol + { + get + { + return this._Patrol; + } + } + + private List CanCastSkill + { + get + { + bool flag = this._can_cast_skill == null; + if (flag) + { + this._can_cast_skill = ListPool.Get(); + } + return this._can_cast_skill; + } + } + + public int CanCastSkillCount + { + get + { + return (this._can_cast_skill == null) ? 0 : this._can_cast_skill.Count; + } + } + + public int RangeSkillCount + { + get + { + return (this._range_skill == null) ? 0 : this._range_skill.Count; + } + } + + private List RangeSkill + { + get + { + bool flag = this._range_skill == null; + if (flag) + { + this._range_skill = ListPool.Get(); + } + return this._range_skill; + } + } + + private List targets + { + get + { + bool flag = this._targets == null; + if (flag) + { + this._targets = ListPool.Get(); + } + return this._targets; + } + } + + public int TargetsCount + { + get + { + return (this._targets == null) ? 0 : this._targets.Count; + } + } + + public string ComboSkill + { + get + { + return this._combo_skill_name; + } + set + { + this._combo_skill_name = value; + } + } + + public SharedData AIData + { + get + { + return (this._behavior_tree as AIRunTimeBehaviorTree).Data; + } + } + + public List TimerToken + { + get + { + bool flag = this._timer_token_list == null; + if (flag) + { + this._timer_token_list = ListPool.Get(); + } + return this._timer_token_list; + } + } + + public bool IgnoreSkillCD { get; set; } + + public XEntity Target + { + get + { + return this._target; + } + } + + public float LastCallMonsterTime { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XAIComponent"); + + public static bool UseRunTime = true; + + private XRole _opponent = null; + + private uint _timer_token = 0u; + + private float _speed = 0f; + + private uint _cast_skillid = 0u; + + private float _action_gap = 1f; + + private float _action_gap_factor = 0.5f; + + private float _ai_start_time = 0.1f; + + private Vector3 _born_pos = Vector3.zero; + + private int _huanraoindex = 0; + + private bool _is_woozy_state = false; + + private XAIEventArgs _ai_event = null; + + private bool _is_inited = false; + + private int _disable_count = 0; + + private List _range_skill = null; + + private XEnmityList _enmity_list = new XEnmityList(); + + private string _combo_skill_name; + + private List _timer_token_list = null; + + private float _spawn_time = 0f; + + private List _can_cast_skill = null; + + private List _targets = null; + + private Dictionary _child_trees = null; + + private XEntity _target = null; + + private Transform _navtarget = null; + + private bool _is_oppo_casting_skill = false; + + private bool _is_hurt_oppo = false; + + private float _target_distance = 0f; + + private float _master_distance = 9999f; + + private bool _is_fixed_in_cd = false; + + private float _normal_attack_prob = 0.5f; + + private float _enter_fight_range = 10f; + + private float _fight_together_dis = 10f; + + private bool _is_wander = false; + + private float _max_hp = 1000f; + + private float _current_hp = 0f; + + private float _max_super_armor = 100f; + + private float _current_super_armor = 50f; + + private int _type = 1; + + private float _target_rotation = 0f; + + private float _attack_range = 1f; + + private float _min_keep_range = 1f; + + private bool _is_casting_skill = false; + + private bool _is_fighting = false; + + private bool _is_qte_state = false; + + private Dictionary _link_skill_info = null; + + private XPatrol _Patrol = new XPatrol(); + + private IXBehaviorTree _behavior_tree = null; + + private bool _enable_runtime_tree = true; + + public void Copy2CanCastSkill(List lst) + { + this.CanCastSkill.Clear(); + this.CanCastSkill.AddRange(lst); + } + + public void ClearCanCastSkill() + { + bool flag = this._can_cast_skill != null; + if (flag) + { + this._can_cast_skill.Clear(); + } + } + + public void AddCanCastSkill(XSkillCore skill) + { + this.CanCastSkill.Add(skill); + } + + public XSkillCore GetCanCastSkill(int index) + { + return this.CanCastSkill[index]; + } + + public void RemoveCanCastSkillAt(int index) + { + bool flag = this._can_cast_skill != null; + if (flag) + { + this._can_cast_skill.RemoveAt(index); + } + } + + public void RemoveCanCastSkillRange(int index, int count) + { + bool flag = this._can_cast_skill != null; + if (flag) + { + this._can_cast_skill.RemoveRange(index, count); + } + } + + public void AddRangeSkill(XSkillCore skill) + { + this.RangeSkill.Add(skill); + } + + public void CopyRange2CanCast() + { + this.CanCastSkill.Clear(); + bool flag = this._range_skill != null; + if (flag) + { + this.CanCastSkill.AddRange(this._range_skill); + } + } + + public void ClearTargets() + { + bool flag = this._targets != null; + if (flag) + { + this._targets.Clear(); + } + } + + public void AddTarget(XEntity target) + { + this.targets.Add(target); + } + + public void SortTarget(Comparison comparison) + { + bool flag = this._targets != null; + if (flag) + { + this._targets.Sort(comparison); + } + } + + public XEntity GetTarget(int index) + { + return this.targets[index]; + } + + public void Copy2Target(List lst) + { + this.targets.Clear(); + this.targets.AddRange(lst); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_AIAutoFight, new XComponent.XEventHandler(this.OnTickAI)); + base.RegisterEvent(XEventDefine.XEvent_AIStartSkill, new XComponent.XEventHandler(this.OnStartSkill)); + base.RegisterEvent(XEventDefine.XEvent_AIEndSkill, new XComponent.XEventHandler(this.OnEndSkill)); + base.RegisterEvent(XEventDefine.XEvent_AISkillHurt, new XComponent.XEventHandler(this.OnSkillHurt)); + base.RegisterEvent(XEventDefine.XEvent_AIEnterFight, new XComponent.XEventHandler(this.OnAIEnterFight)); + base.RegisterEvent(XEventDefine.XEvent_Enmity, new XComponent.XEventHandler(this.OnEnmity)); + base.RegisterEvent(XEventDefine.XEvent_OnEntityTransfer, new XComponent.XEventHandler(this.OnEntityTranser)); + base.RegisterEvent(XEventDefine.XEvent_ArmorBroken, new XComponent.XEventHandler(this.OnArmorBroken)); + base.RegisterEvent(XEventDefine.XEvent_WoozyOff, new XComponent.XEventHandler(this.OnWoozyArmorRecover)); + base.RegisterEvent(XEventDefine.XEvent_AIEvent, new XComponent.XEventHandler(this.OnProcessEvent)); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnDeathEvent)); + base.RegisterEvent(XEventDefine.XEvent_EnableAI, new XComponent.XEventHandler(this.OnEnableAI)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + bool flag = this._entity.Attributes == null; + if (flag) + { + this._speed = 0f; + } + else + { + bool flag2 = this._entity.Attributes is XOthersAttributes; + if (flag2) + { + XOthersAttributes xothersAttributes = this._entity.Attributes as XOthersAttributes; + this._speed = xothersAttributes.RunSpeed; + } + else + { + XRoleAttributes xroleAttributes = this._entity.Attributes as XRoleAttributes; + bool flag3 = xroleAttributes == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("_entity.Attributes Error!", null, null, null, null, null); + } + this._speed = xroleAttributes.RunSpeed; + } + } + this.IgnoreSkillCD = false; + this._spawn_time = Time.time; + this.LastCallMonsterTime = 0f; + this._enable_runtime_tree = XAIComponent.UseRunTime; + } + + public override void Attached() + { + this.InitNavPath(); + this.InitVariables(); + this.EnableBehaviorTree(this._enable_runtime_tree); + bool is_inited = this._is_inited; + if (is_inited) + { + this.SetFixVariables(); + this.InitOpponetEnmity(); + } + } + + public bool Active() + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + bool flag = this._timer_token == 0u; + if (flag) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_ARENA || XSingleton.singleton.SceneType == SceneType.SCENE_GODDESS; + if (flag2) + { + (this._entity.Attributes as XPlayerAttributes).AutoPlayOn = true; + } + bool autoPlayOn = (this._entity.Attributes as XPlayerAttributes).AutoPlayOn; + bool flag3 = autoPlayOn; + if (flag3) + { + this.SetEnable(true, true); + } + } + } + else + { + this.SetEnable(true, true); + } + bool flag4 = XSingleton.singleton.AIGlobal != null; + if (flag4) + { + XSingleton.singleton.AIGlobal.SendAIMsg("ReadyFight", 0f, 0, 0); + } + return true; + } + + public void EnableBehaviorTree(bool isRunTime) + { + if (isRunTime) + { + this._behavior_tree = new AIRunTimeBehaviorTree(); + (this._behavior_tree as AIRunTimeBehaviorTree).Host = this._entity; + } + else + { + this._behavior_tree = (this._entity.EngineObject.AddComponent(EComponentType.EXBehaviorTree) as IXBehaviorTree); + } + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType != SceneType.SCENE_PK) + { + if (sceneType != SceneType.SCENE_TOWER) + { + this.InitSubBehaviorTree(isRunTime, XSingleton.singleton.GetValue("PlayerAutoFight")); + } + else + { + this._behavior_tree.SetBehaviorTree("AutoFight_TeamTower"); + } + } + else + { + this.InitSubBehaviorTree(isRunTime, XSingleton.singleton.GetValue("ArenaPlayerServerAI")); + } + this._is_inited = true; + } + else + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_ARENA; + if (flag) + { + this.InitSubBehaviorTree(isRunTime, XSingleton.singleton.GetValue("ArenaClientAI")); + this._is_inited = true; + } + else + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + bool flag2 = byID != null; + if (flag2) + { + bool flag3 = string.IsNullOrEmpty(byID.AiBehavior); + if (flag3) + { + this.InitSubBehaviorTree(isRunTime, "Monster_Empty"); + this._is_inited = false; + } + else + { + this.InitSubBehaviorTree(isRunTime, byID.AiBehavior); + this._is_inited = true; + } + } + else + { + this.InitSubBehaviorTree(isRunTime, "default"); + } + } + } + bool flag4 = this._behavior_tree == null; + if (!flag4) + { + this._behavior_tree.EnableBehaviorTree(true); + this._behavior_tree.SetManual(true); + } + } + + private void InitSubBehaviorTree(bool isRunTime, string treename) + { + string[] array = treename.Split(new char[] + { + ':' + }); + this._behavior_tree.SetBehaviorTree(array[0]); + bool flag = this._child_trees == null; + if (flag) + { + this._child_trees = DictionaryPool.Get(); + } + for (int i = 1; i < array.Length; i++) + { + uint key = XSingleton.singleton.XHash(array[i]); + IXBehaviorTree ixbehaviorTree; + if (isRunTime) + { + AIRunTimeBehaviorTree airunTimeBehaviorTree = new AIRunTimeBehaviorTree(); + airunTimeBehaviorTree.Host = this._entity; + this._child_trees[key] = airunTimeBehaviorTree; + ixbehaviorTree = airunTimeBehaviorTree; + } + else + { + ixbehaviorTree = (this._entity.EngineObject.AddComponent(EComponentType.EXBehaviorTree) as IXBehaviorTree); + this._child_trees[key] = ixbehaviorTree; + } + ixbehaviorTree.SetBehaviorTree(array[i]); + ixbehaviorTree.EnableBehaviorTree(true); + ixbehaviorTree.SetManual(true); + } + } + + public void SetBehaviorTree(string tree) + { + bool flag = !string.IsNullOrEmpty(tree); + if (flag) + { + this._is_inited = true; + } + bool enable_runtime_tree = this._enable_runtime_tree; + if (enable_runtime_tree) + { + this._behavior_tree = new AIRunTimeBehaviorTree(); + (this._behavior_tree as AIRunTimeBehaviorTree).Host = this._entity; + } + else + { + this._behavior_tree = (this._entity.EngineObject.AddComponent(EComponentType.EXBehaviorTree) as IXBehaviorTree); + } + bool flag2 = this._behavior_tree != null; + if (flag2) + { + this._behavior_tree.SetBehaviorTree(tree); + this._behavior_tree.EnableBehaviorTree(true); + this._behavior_tree.SetManual(true); + this.AIFire(this._action_gap * this._action_gap_factor); + } + else + { + XSingleton.singleton.AddErrorLog("Add behavior error: ", tree, null, null, null, null); + } + } + + public override void OnDetachFromHost() + { + XSingleton.singleton.KillTimer(this._timer_token); + bool flag = this._can_cast_skill != null; + if (flag) + { + ListPool.Release(this._can_cast_skill); + this._can_cast_skill = null; + } + bool flag2 = this._range_skill != null; + if (flag2) + { + ListPool.Release(this._range_skill); + this._range_skill = null; + } + bool flag3 = this._timer_token_list != null; + if (flag3) + { + ListPool.Release(this._timer_token_list); + this._timer_token_list = null; + } + bool flag4 = this._link_skill_info != null; + if (flag4) + { + DictionaryPool.Release(this._link_skill_info); + this._link_skill_info = null; + } + bool flag5 = this._child_trees != null; + if (flag5) + { + DictionaryPool.Release(this._child_trees); + this._child_trees = null; + } + bool flag6 = this._targets != null; + if (flag6) + { + ListPool.Release(this._targets); + this._targets = null; + } + this._Patrol.Destroy(); + base.OnDetachFromHost(); + this.ClearAllTimer(); + } + + public void ClearAllTimer() + { + bool flag = this._timer_token_list != null; + if (flag) + { + for (int i = 0; i < this._timer_token_list.Count; i++) + { + XSingleton.singleton.KillTimer(this._timer_token_list[i]); + } + this._timer_token_list.Clear(); + } + } + + protected virtual bool OnTickAI(XEventArgs e) + { + bool flag = !this._is_inited; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.CheckManualInput(); + if (flag2) + { + this.AIFire(this._action_gap * this._action_gap_factor); + result = true; + } + else + { + bool flag3 = this._behavior_tree != null && e != null && (XEntity.ValideEntity(this._entity) || this._entity.Attributes == null); + if (flag3) + { + this.UpdateVariable(); + this.SetTreeVariable(this._behavior_tree); + this._behavior_tree.TickBehaviorTree(); + this._action_gap_factor = this._behavior_tree.OnGetHeartRate(); + bool flag4 = this._action_gap_factor == 0f; + if (flag4) + { + this._action_gap_factor = 1f; + } + this.AIFire(this._action_gap * this._action_gap_factor); + } + else + { + this._action_gap_factor = 1f; + this.AIFire(0.05f); + } + this._ai_event = null; + result = true; + } + } + return result; + } + + public void OnTickSubTree(string treeName) + { + IXBehaviorTree ixbehaviorTree = null; + bool flag = this._child_trees != null && this._child_trees.TryGetValue(XSingleton.singleton.XHash(treeName), out ixbehaviorTree); + if (flag) + { + this.SetTreeVariable(ixbehaviorTree); + ixbehaviorTree.TickBehaviorTree(); + } + } + + public bool OnAIEnterFight(XEventArgs e) + { + bool is_fighting = this._is_fighting; + bool result; + if (is_fighting) + { + result = true; + } + else + { + XAIEnterFightEventArgs xaienterFightEventArgs = e as XAIEnterFightEventArgs; + this._target = xaienterFightEventArgs.Target; + this._is_fighting = true; + this.SendEnterFightEvent(); + this.InitLinkSkill(); + this._enmity_list.AddInitHateValue(this._target); + this._enmity_list.SetActive(true); + this.NotifyAllyIntoFight(xaienterFightEventArgs.Target); + XAIEventArgs @event = XEventPool.GetEvent(); + @event.DepracatedPass = true; + @event.Firer = XSingleton.singleton.Player; + @event.EventType = 1; + @event.EventArg = "SpawnMonster"; + XSingleton.singleton.FireEvent(@event, 0.05f); + bool is_fighting2 = this._is_fighting; + if (is_fighting2) + { + XSingleton.singleton.OnAIinFight(this._entity); + } + bool flag = this._behavior_tree != null && XAIComponent.UseRunTime; + if (flag) + { + this._behavior_tree.SetVariable("target", (this._target == null) ? null : this._target.EngineObject.Find("")); + this._behavior_tree.SetVariable("target_distance", (this._entity.EngineObject.Position - this._target.EngineObject.Position).magnitude); + } + result = true; + } + return result; + } + + private bool CheckManualInput() + { + return XSingleton.singleton.Feeding && this._entity.IsPlayer; + } + + private void UpdateVariable() + { + bool flag = this._target != null && XEntity.ValideEntity(this._target); + if (flag) + { + this._target_distance = ((this._host as XEntity).EngineObject.Position - this._target.EngineObject.Position).magnitude; + this._target_distance -= this._target.Radius; + bool flag2 = this._target_distance < 0f; + if (flag2) + { + this._target_distance = 0f; + } + Vector3 from = (this._host as XEntity).EngineObject.Position - this._target.EngineObject.Position; + this._target_rotation = Mathf.Abs(XSingleton.singleton.AngleWithSign(from, this._target.EngineObject.Forward)); + } + else + { + this._target_distance = 9999999f; + this._target_rotation = 0f; + this.targets.Clear(); + List opponent = XSingleton.singleton.GetOpponent(this._entity); + for (int i = 0; i < opponent.Count; i++) + { + bool flag3 = XEntity.ValideEntity(opponent[i]); + if (flag3) + { + this.targets.Add(opponent[i]); + } + } + } + bool flag4 = XEntity.ValideEntity(XSingleton.singleton.Player); + if (flag4) + { + this._master_distance = ((this._host as XEntity).EngineObject.Position - XSingleton.singleton.Player.EngineObject.Position).magnitude; + } + bool flag5 = this._entity.Attributes != null; + if (flag5) + { + this._max_hp = (float)this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + this._current_hp = (float)this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Total); + this._max_super_armor = (float)this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Total); + this._current_super_armor = (float)this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Total); + } + } + + private void SetTreeVariable(IXBehaviorTree tree) + { + tree.SetXGameObjectByName("target", (this._target == null) ? null : this._target.EngineObject); + tree.SetXGameObjectByName("master", (XSingleton.singleton.Player == null) ? null : XSingleton.singleton.Player.EngineObject); + tree.SetTransformByName("navtarget", this._navtarget); + tree.SetBoolByName("is_oppo_casting_skill", this._is_oppo_casting_skill); + tree.SetBoolByName("is_hurt_oppo", this._is_hurt_oppo); + tree.SetFloatByName("target_distance", this._target_distance); + tree.SetFloatByName("master_distance", this._master_distance); + tree.SetBoolByName("is_fixed_in_cd", this._is_fixed_in_cd); + tree.SetFloatByName("normal_attack_prob", this._normal_attack_prob); + tree.SetFloatByName("enter_fight_range", this._enter_fight_range); + tree.SetFloatByName("fight_together_dis", this._fight_together_dis); + tree.SetBoolByName("is_wander", this._is_wander); + tree.SetFloatByName("max_hp", this._max_hp); + tree.SetFloatByName("current_hp", this._current_hp); + tree.SetFloatByName("max_super_armor", this._max_super_armor); + tree.SetFloatByName("current_super_armor", this._current_super_armor); + tree.SetIntByName("type", this._type); + tree.SetFloatByName("target_rotation", this._target_rotation); + tree.SetFloatByName("attack_range", this._attack_range); + tree.SetFloatByName("min_keep_range", this._min_keep_range); + tree.SetBoolByName("is_casting_skill", this._is_casting_skill); + tree.SetBoolByName("is_fighting", this._is_fighting); + tree.SetBoolByName("is_qte_state", this._is_qte_state); + tree.SetVector3ByName("movedir", Vector3.zero); + tree.SetVector3ByName("movedest", Vector3.zero); + tree.SetFloatByName("movespeed", 1f); + tree.SetVector3ByName("bornpos", this._born_pos); + } + + public bool IsAtWoozyState() + { + return this._entity.Attributes.HasWoozyStatus && this._is_woozy_state; + } + + public void SetTarget(XEntity entity) + { + bool flag = entity == null; + if (flag) + { + this._target = null; + } + else + { + this._target = entity; + bool flag2 = this._target != null && XEntity.ValideEntity(this._target); + if (flag2) + { + this._target_distance = ((this._host as XEntity).EngineObject.Position - this._target.EngineObject.Position).magnitude; + this._behavior_tree.SetFloatByName("target_distance", this._target_distance); + this._behavior_tree.SetXGameObjectByName("target", this._target.EngineObject); + } + } + } + + private void InitNavPath() + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + this._Patrol.InitNavPath(byID); + } + + public void SetNavTarget(int index) + { + this._navtarget = this._Patrol.GetFromNavPath(index); + this._behavior_tree.SetTransformByName("navtarget", this._navtarget); + } + + public bool RefreshNavTarget() + { + this.SetNavTarget(this._Patrol.PathIndex); + return this._navtarget != null; + } + + private void InitLinkSkill() + { + bool flag = this._link_skill_info == null; + if (flag) + { + this._link_skill_info = DictionaryPool.Get(); + } + this._link_skill_info.Clear(); + bool flag2 = this._entity.MobbedBy != null; + if (flag2) + { + for (int i = 0; i < this._entity.SkillMgr.SkillOrder.Count; i++) + { + XSkillCore xskillCore = this._entity.SkillMgr.SkillOrder[i] as XSkillCore; + bool flag3 = XSingleton.singleton.AICantCast(xskillCore.ID, xskillCore.Level, this._entity.SkillCasterTypeID); + if (flag3) + { + this._link_skill_info[xskillCore.ID] = false; + } + } + } + } + + public bool IsLinkSkillCannotCast(uint skillid) + { + return this._link_skill_info != null && this._link_skill_info.ContainsKey(skillid); + } + + public void InitVariables() + { + bool flag = this._entity.Attributes == null; + if (!flag) + { + this._born_pos = this._entity.EngineObject.Position; + bool flag2 = this._entity.Attributes is XOthersAttributes; + if (flag2) + { + XOthersAttributes xothersAttributes = this._entity.Attributes as XOthersAttributes; + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + this._speed = xothersAttributes.RunSpeed; + this._normal_attack_prob = xothersAttributes.NormalAttackProb; + this._enter_fight_range = xothersAttributes.EnterFightRange; + this._is_wander = xothersAttributes.IsWander; + this._action_gap = xothersAttributes.AIActionGap; + this._ai_start_time = xothersAttributes.AIStartTime; + this._is_fixed_in_cd = xothersAttributes.IsFixedInCD; + bool flag3 = byID != null; + if (flag3) + { + this._fight_together_dis = byID.FightTogetherDis; + } + this._type = (int)xothersAttributes.Type; + } + else + { + XRoleAttributes xroleAttributes = this._entity.Attributes as XRoleAttributes; + bool flag4 = xroleAttributes == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("_entity.Attributes Error!", null, null, null, null, null); + } + this._speed = xroleAttributes.RunSpeed; + this._normal_attack_prob = 1f; + this._enter_fight_range = 20f; + this._is_wander = false; + this._action_gap = 1.5f; + this._ai_start_time = 1.5f; + this._is_fixed_in_cd = false; + this._type = (int)xroleAttributes.Type; + } + XSkillCore xskillCore = (this._entity.SkillMgr == null) ? null : this._entity.SkillMgr.GetPhysicalSkill(); + bool flag5 = xskillCore != null; + if (flag5) + { + this._attack_range = xskillCore.CastRangeUpper; + this._min_keep_range = xskillCore.CastRangeLower; + } + else + { + this._attack_range = 0f; + this._min_keep_range = 0f; + } + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + List opponent = XSingleton.singleton.GetOpponent(this._entity); + for (int i = 0; i < opponent.Count; i++) + { + bool flag6 = opponent[i].AI != null; + if (flag6) + { + opponent[i].IsServerFighting = true; + } + } + } + } + } + + public void SetFixVariables() + { + bool flag = this._behavior_tree == null; + if (!flag) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + bool flag2 = byID != null; + if (flag2) + { + this._behavior_tree.SetFloatByName("ratioleft", byID.ratioleft); + this._behavior_tree.SetFloatByName("ratioright", byID.ratioright); + this._behavior_tree.SetFloatByName("ratioidle", byID.ratioidle); + this._behavior_tree.SetFloatByName("ratiodistance", byID.ratiodistance); + this._behavior_tree.SetFloatByName("ratioskill", byID.ratioskill); + this._behavior_tree.SetFloatByName("ratioexp", byID.ratioexp); + } + } + } + + public void NotifyAllyIntoFight(XEntity target) + { + List ally = XSingleton.singleton.GetAlly(this._entity); + for (int i = 0; i < ally.Count; i++) + { + bool flag = !XEntity.ValideEntity(ally[i]); + if (!flag) + { + bool flag2 = XSingleton.singleton.IsGreater((ally[i].EngineObject.Position - this._entity.EngineObject.Position).magnitude, this.FightTogetherDis); + if (!flag2) + { + XAIEnterFightEventArgs @event = XEventPool.GetEvent(); + @event.Firer = ally[i]; + @event.Target = target; + XSingleton.singleton.FireEvent(@event); + } + } + } + } + + protected void AIFire(float time) + { + bool flag = this._timer_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer_token); + this._timer_token = 0u; + } + XAIAutoFightEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._host; + this._timer_token = XSingleton.singleton.FireEvent(@event, time); + } + + public bool OnWoozyArmorRecover(XEventArgs e) + { + this.AIFire(this._action_gap * this._action_gap_factor); + this._is_woozy_state = false; + return true; + } + + public bool OnArmorBroken(XEventArgs e) + { + bool hasWoozyStatus = this._entity.Attributes.HasWoozyStatus; + if (hasWoozyStatus) + { + XSingleton.singleton.KillTimer(this._timer_token); + this._timer_token = 0u; + this._is_woozy_state = true; + XSingleton.singleton.AIGlobal.SendAIMsg("ArmorBroken", 0f, 0, 0); + } + return true; + } + + private bool OnProcessEvent(XEventArgs e) + { + XAIEventArgs ai_event = e as XAIEventArgs; + this._ai_event = ai_event; + bool flag = this._timer_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer_token); + this._timer_token = 0u; + XAIAutoFightEventArgs @event = XEventPool.GetEvent(); + @event.Firer = base.Host; + this.OnTickAI(@event); + @event.Recycle(); + } + return true; + } + + private bool OnEnableAI(XEventArgs e) + { + XAIEnableAI xaienableAI = e as XAIEnableAI; + bool flag = !xaienableAI.Enable; + if (flag) + { + this._disable_count++; + this.SetEnable(false, xaienableAI.Puppet); + } + else + { + this._disable_count--; + bool flag2 = this._disable_count <= 0; + if (flag2) + { + bool flag3 = this._entity.IsPlayer && (this._entity.Attributes as XPlayerAttributes).AutoPlayOn; + if (flag3) + { + this.SetEnable(true, true); + } + bool flag4 = !this._entity.IsPlayer; + if (flag4) + { + this.SetEnable(true, true); + } + } + bool flag5 = this._disable_count < 0; + if (flag5) + { + this._disable_count = 0; + } + } + return true; + } + + private bool OnDeathEvent(XEventArgs e) + { + XSecurityAIInfo xsecurityAIInfo = XSecurityAIInfo.TryGetStatistics(this._entity); + bool flag = xsecurityAIInfo != null; + if (flag) + { + bool flag2 = !this._entity.IsPlayer && !this._entity.IsRole; + if (flag2) + { + xsecurityAIInfo.SetLifeTime(Time.time - this._spawn_time); + } + } + bool flag3 = XSingleton.singleton.AIGlobal != null; + if (flag3) + { + XSingleton.singleton.AIGlobal.SendAIMsg("Dead", 0.1f, (int)this._entity.TypeID, 0); + } + return true; + } + + private XSkillCore GetDashSkill() + { + XEntity xentity = this._host as XEntity; + bool flag = xentity == null; + XSkillCore result; + if (flag) + { + result = null; + } + else + { + uint dashIdentity = xentity.SkillMgr.GetDashIdentity(); + bool flag2 = dashIdentity == 0u; + if (flag2) + { + result = null; + } + else + { + XSkillCore skill = xentity.SkillMgr.GetSkill(dashIdentity); + bool flag3 = skill != null; + if (flag3) + { + result = skill; + } + else + { + result = null; + } + } + } + return result; + } + + private bool OnStartSkill(XEventArgs e) + { + XAIStartSkillEventArgs xaistartSkillEventArgs = e as XAIStartSkillEventArgs; + bool isCaster = xaistartSkillEventArgs.IsCaster; + if (isCaster) + { + bool flag = this.GetDashSkill() == null || this.GetDashSkill().ID != xaistartSkillEventArgs.SkillId; + if (flag) + { + this._is_hurt_oppo = false; + this._is_casting_skill = true; + this._cast_skillid = xaistartSkillEventArgs.SkillId; + bool flag2 = this._behavior_tree != null; + if (flag2) + { + this._behavior_tree.SetIntByName("skillid", (int)this._cast_skillid); + } + } + } + else + { + this._is_oppo_casting_skill = true; + } + return true; + } + + private bool OnEndSkill(XEventArgs e) + { + XAIEndSkillEventArgs xaiendSkillEventArgs = e as XAIEndSkillEventArgs; + bool isCaster = xaiendSkillEventArgs.IsCaster; + if (isCaster) + { + bool flag = this.GetDashSkill() == null || this.GetDashSkill().ID != xaiendSkillEventArgs.SkillId; + if (flag) + { + this._is_casting_skill = false; + this._cast_skillid = 0u; + this._is_hurt_oppo = false; + } + } + else + { + this._is_oppo_casting_skill = false; + } + return true; + } + + private bool OnSkillHurt(XEventArgs e) + { + XAISkillHurtEventArgs xaiskillHurtEventArgs = e as XAISkillHurtEventArgs; + bool isCaster = xaiskillHurtEventArgs.IsCaster; + if (isCaster) + { + this._is_hurt_oppo = true; + } + return true; + } + + private bool OnEnmity(XEventArgs e) + { + XEnmityEventArgs xenmityEventArgs = e as XEnmityEventArgs; + bool flag = xenmityEventArgs == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !this._enmity_list.IsActive; + if (flag2) + { + this._enmity_list.SetActive(true); + } + XEntity xentity = xenmityEventArgs.Starter as XEntity; + bool flag3 = xentity != null; + if (flag3) + { + uint skillLevel = xentity.Attributes.SkillLevelInfo.GetSkillLevel(xenmityEventArgs.SkillId); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(xenmityEventArgs.SkillId, skillLevel); + bool flag4 = skillConfig != null; + if (flag4) + { + this._enmity_list.AddHateValue(xentity, (float)(xenmityEventArgs.DeltaValue * (double)skillConfig.EnmityRatio + (double)skillConfig.EnmityExtValue)); + } + else + { + this._enmity_list.AddHateValue(xentity, (float)xenmityEventArgs.DeltaValue); + } + bool flag5 = !this._is_fighting; + if (flag5) + { + this._is_fighting = true; + this.SendEnterFightEvent(); + this.NotifyAllyIntoFight(xentity); + } + } + result = true; + } + return result; + } + + public bool OnEntityTranser(XEventArgs e) + { + XOnEntityTransferEventArgs xonEntityTransferEventArgs = e as XOnEntityTransferEventArgs; + bool flag = !this._entity.IsPlayer; + if (flag) + { + Vector3 vector; + vector= new Vector3(0.5f, 0f, 0f); + this._entity.EngineObject.Position = XSingleton.singleton.Player.EngineObject.Position + vector; + } + XPatrol patrol = this._Patrol; + int pathIndex = patrol.PathIndex; + patrol.PathIndex = pathIndex + 1; + return true; + } + + private void SetEnable(bool enable, bool puppet = true) + { + this.SendAutoFightMsg(enable); + this.ResetAIData(); + if (enable) + { + bool flag = this._timer_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer_token); + this._timer_token = 0u; + } + this.OnTickAI(null); + } + else + { + XSingleton.singleton.KillTimer(this._timer_token); + this._timer_token = 0u; + if (puppet) + { + XSingleton.singleton.Idled(this._entity); + bool flag2 = this._entity.Nav != null; + if (flag2) + { + this._entity.Nav.Interrupt(); + } + } + else + { + bool flag3 = this._entity.Skill != null && this._entity.Skill.IsCasting(); + if (!flag3) + { + bool flag4 = this._entity.Machine != null && this._entity.Machine.Current == XStateDefine.XState_Move; + if (flag4) + { + this._entity.Net.ReportMoveAction(Vector3.zero, 0.0); + } + } + } + } + } + + private void ResetAIData() + { + this._target = null; + bool flag = this._behavior_tree != null && this._is_inited; + if (flag) + { + this._behavior_tree.SetXGameObjectByName("target", null); + this._behavior_tree.SetTransformByName("BuffTarget", null); + this._behavior_tree.SetTransformByName("ItemTarget", null); + this._behavior_tree.SetFloatByName("target_distance", 99999f); + } + } + + private void SendEnterFightEvent() + { + XAIEventArgs @event = XEventPool.GetEvent(); + @event.DepracatedPass = false; + @event.Firer = this._host; + @event.EventType = 1; + @event.EventArg = "enterfight"; + float delay = 1f; + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + bool flag = byID != null; + if (flag) + { + delay = byID.AIStartTime; + } + XSingleton.singleton.FireEvent(@event, delay); + } + + private void InitOpponetEnmity() + { + List opponent = XSingleton.singleton.GetOpponent(this._entity); + for (int i = 0; i < opponent.Count; i++) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(opponent[i].Attributes.TypeID); + bool flag = byID != null && byID.InitEnmity > 0; + if (flag) + { + this._enmity_list.AddHateValue(opponent[i], (float)byID.InitEnmity); + } + } + } + + private void SendAutoFightMsg(bool enable) + { + bool flag = !this._entity.IsPlayer; + if (!flag) + { + PtcC2G_AutoFightNTF ptcC2G_AutoFightNTF = new PtcC2G_AutoFightNTF(); + ptcC2G_AutoFightNTF.Data.autof = enable; + XSingleton.singleton.Send(ptcC2G_AutoFightNTF); + } + } + + public override void OnReconnect(UnitAppearance data) + { + base.OnReconnect(data); + this.SetEnable(XSingleton.singleton.IsAutoFight, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XAIComponent.cs.meta new file mode 100644 index 00000000..4cc38a33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a67c6e82c96e290459bfe7a46604b53a +timeCreated: 1611404289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIDataRelated.cs b/Client/Assets/Scripts/XMainClient/XAIDataRelated.cs new file mode 100644 index 00000000..28f6c4cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIDataRelated.cs @@ -0,0 +1,156 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAIDataRelated : XSingleton + { + public int GetProfIndex(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + bool flag = entity == null; + int result; + if (flag) + { + result = -1; + } + else + { + int num = (int)(entity.Attributes.TypeID % 10u - 1u); + int num2 = (int)(entity.Attributes.TypeID / 10u - 1u); + bool flag2 = entity.Attributes.TypeID >= 1000u || entity.Attributes.TypeID <= 10u; + if (flag2) + { + result = num * 2 + XSingleton.singleton.RandomInt(0, 2); + } + else + { + result = num * 2 + num2; + } + } + return result; + } + + public List GetAssistSkillList(GameObject go, int profIndex) + { + List list = new List(); + List list2 = new List(); + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + SkillCombo.RowData rowData = XArenaDocument.SkillComboTable.Table[profIndex + 6]; + bool flag = rowData.nextskill0 != ""; + if (flag) + { + list2.Add(rowData.nextskill0); + } + bool flag2 = rowData.nextskill1 != ""; + if (flag2) + { + list2.Add(rowData.nextskill1); + } + bool flag3 = rowData.nextskill2 != ""; + if (flag3) + { + list2.Add(rowData.nextskill2); + } + bool flag4 = rowData.nextskill3 != ""; + if (flag4) + { + list2.Add(rowData.nextskill3); + } + bool flag5 = rowData.nextskill4 != ""; + if (flag5) + { + list2.Add(rowData.nextskill4); + } + for (int i = 0; i < list2.Count; i++) + { + for (int j = 0; j < entity.SkillMgr.SkillOrder.Count; j++) + { + XSkillCore xskillCore = entity.SkillMgr.SkillOrder[j] as XSkillCore; + bool flag6 = xskillCore != null && xskillCore.Soul.Name == list2[i]; + if (flag6) + { + list.Add(xskillCore.ID); + break; + } + } + } + return list; + } + + public List GetStartSkillList(GameObject go, int prof) + { + List list = new List(); + List list2 = new List(); + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + SkillCombo.RowData rowData = XArenaDocument.SkillComboTable.Table[prof]; + bool flag = rowData.nextskill0 != ""; + if (flag) + { + list2.Add(rowData.nextskill0); + } + bool flag2 = rowData.nextskill1 != ""; + if (flag2) + { + list2.Add(rowData.nextskill1); + } + bool flag3 = rowData.nextskill2 != ""; + if (flag3) + { + list2.Add(rowData.nextskill2); + } + bool flag4 = rowData.nextskill3 != ""; + if (flag4) + { + list2.Add(rowData.nextskill3); + } + bool flag5 = rowData.nextskill4 != ""; + if (flag5) + { + list2.Add(rowData.nextskill4); + } + for (int i = 0; i < list2.Count; i++) + { + bool flag6 = entity.SkillMgr.GetPhysicalSkill().Soul.Name == list2[i]; + if (flag6) + { + list.Add(entity.SkillMgr.GetPhysicalSkill().ID); + break; + } + for (int j = 0; j < entity.SkillMgr.SkillOrder.Count; j++) + { + XSkillCore xskillCore = entity.SkillMgr.SkillOrder[j] as XSkillCore; + bool flag7 = xskillCore != null && xskillCore.Soul.Name == list2[i]; + if (flag7) + { + list.Add(xskillCore.ID); + break; + } + } + } + return list; + } + + public bool DetectEnimyInSight(XEntity entity) + { + List opponent = XSingleton.singleton.GetOpponent(entity); + for (int i = 0; i < opponent.Count; i++) + { + bool flag = !XEntity.ValideEntity(opponent[i]) || opponent[i].IsPuppet; + if (!flag) + { + float sqrMagnitude = (opponent[i].EngineObject.Position - entity.EngineObject.Position).sqrMagnitude; + bool flag2 = XSingleton.singleton.IsLess(sqrMagnitude, entity.AI.EnterFightRange * entity.AI.EnterFightRange); + if (flag2) + { + entity.AI.NotifyAllyIntoFight(opponent[i]); + return true; + } + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIDataRelated.cs.meta b/Client/Assets/Scripts/XMainClient/XAIDataRelated.cs.meta new file mode 100644 index 00000000..4652c4ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIDataRelated.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81fc8d5f3d8b6b24fab94f72885df776 +timeCreated: 1611404038 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIEnableAI.cs b/Client/Assets/Scripts/XMainClient/XAIEnableAI.cs new file mode 100644 index 00000000..d56a27e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIEnableAI.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class XAIEnableAI : XEventArgs + { + public bool Enable; + + public bool Puppet; + + public XAIEnableAI() + { + this._eDefine = XEventDefine.XEvent_EnableAI; + this.Enable = true; + this.Puppet = true; + } + + public override void Recycle() + { + base.Recycle(); + this.Enable = true; + this.Puppet = true; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIEnableAI.cs.meta b/Client/Assets/Scripts/XMainClient/XAIEnableAI.cs.meta new file mode 100644 index 00000000..da718492 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIEnableAI.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 890f16c2bf3456d43a22e2f7be4cec09 +timeCreated: 1611404086 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIEndSkillEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAIEndSkillEventArgs.cs new file mode 100644 index 00000000..80aadd14 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIEndSkillEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XAIEndSkillEventArgs : XEventArgs + { + public uint SkillId = 0u; + + public bool IsCaster = false; + + public XAIEndSkillEventArgs() + { + this._eDefine = XEventDefine.XEvent_AIEndSkill; + } + + public override void Recycle() + { + this.SkillId = 0u; + this.IsCaster = false; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIEndSkillEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAIEndSkillEventArgs.cs.meta new file mode 100644 index 00000000..ce127733 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIEndSkillEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56081dfaec3a44e4daa24d3469fa25e9 +timeCreated: 1611403741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIEnterFightEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAIEnterFightEventArgs.cs new file mode 100644 index 00000000..33812e6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIEnterFightEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XAIEnterFightEventArgs : XEventArgs + { + public XEntity Target = null; + + public XAIEnterFightEventArgs() + { + this._eDefine = XEventDefine.XEvent_AIEnterFight; + } + + public override void Recycle() + { + this.Target = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIEnterFightEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAIEnterFightEventArgs.cs.meta new file mode 100644 index 00000000..79780da2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIEnterFightEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd51a1bc45a3d4f4e8934d33e960518c +timeCreated: 1611404682 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAIEventArgs.cs new file mode 100644 index 00000000..1ab2eb41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIEventArgs.cs @@ -0,0 +1,43 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XAIEventArgs : XEventArgs + { + public int EventType; + + public string EventArg; + + public int TypeId; + + public int SkillId; + + public Vector3 Pos; + + public ulong SenderUID; + + public XAIEventArgs() + { + this._eDefine = XEventDefine.XEvent_AIEvent; + this.EventArg = ""; + this.EventType = 0; + this.TypeId = 0; + this.SkillId = 0; + this.Pos = Vector3.zero; + this.SenderUID = 0UL; + } + + public override void Recycle() + { + base.Recycle(); + this.EventArg = ""; + this.EventType = 0; + this.TypeId = 0; + this.SkillId = 0; + this.Pos = Vector3.zero; + this.SenderUID = 0UL; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAIEventArgs.cs.meta new file mode 100644 index 00000000..0ac4b4c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 173102b1d0ad7354b9939fca25910532 +timeCreated: 1611403292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs b/Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs new file mode 100644 index 00000000..7d79932a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs @@ -0,0 +1,591 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAIGeneralMgr : XSingleton, IXAIGeneralMgr, IXInterface + { + public bool Deprecated { get; set; } + + public void InitAIMgr() + { + bool flag = XSingleton.singleton.GetInterface(XSingleton.singleton.XHash("XAIGeneralMgr")) == null; + if (flag) + { + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("XAIGeneralMgr"), this); + } + } + + public bool IsAtState(GameObject go, int state) + { + return this.IsAtState(ulong.Parse(go.transform.name), state); + } + + public bool IsAtState(ulong id, int state) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.CurState == (XStateDefine)state; + } + + public bool IsRotate(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.Rotate.Enabled; + } + + public bool IsCastSkill(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.AI.IsCastingSkill; + } + + public bool IsWoozy(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.AI.IsAtWoozyState(); + } + + public bool IsValid(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + return XEntity.ValideEntity(entity); + } + + public bool IsValid(Transform transform) + { + bool flag = transform == null; + return !flag && this.IsValid(ulong.Parse(transform.name)); + } + + public bool IsHPValue(ulong id, int min, int max) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + bool result; + if (flag) + { + result = false; + } + else + { + int num = (int)(100.0 * entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic) / entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total)); + bool flag2 = max == 0 || (num >= min && num <= max); + result = flag2; + } + return result; + } + + public bool IsHPValue(Transform transform, int min, int max) + { + return this.IsHPValue(ulong.Parse(transform.name), min, max); + } + + public bool IsMPValue(ulong id, int min, int max) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + bool result; + if (flag) + { + result = false; + } + else + { + int num = (int)(100.0 * entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic) / entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Total)); + bool flag2 = max == 0 || (num >= min && num <= max); + result = flag2; + } + return result; + } + + public bool IsMPValue(Transform transform, int min, int max) + { + return this.IsMPValue(ulong.Parse(transform.name), min, max); + } + + public bool IsFPValue(ulong id, int min, int max) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + bool result; + if (flag) + { + result = false; + } + else + { + int num = (int)entity.Attributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + bool flag2 = max == 0 || (num >= min && num <= max); + result = flag2; + } + return result; + } + + public bool IsFPValue(Transform transform, int min, int max) + { + return this.IsFPValue(ulong.Parse(transform.name), min, max); + } + + public bool IsFighting(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.AI.IsFighting; + } + + public bool IsFighting(Transform transform) + { + return this.IsFighting(ulong.Parse(transform.name)); + } + + public bool IsOppoCastingSkill(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.AI.IsOppoCastingSkill; + } + + public bool IsOppoCastingSkill(Transform transform) + { + return this.IsOppoCastingSkill(ulong.Parse(transform.name)); + } + + public bool IsHurtOppo(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.AI.IsHurtOppo; + } + + public bool IsHurtOppo(Transform transform) + { + return this.IsHurtOppo(ulong.Parse(transform.name)); + } + + public bool IsFixedInCd(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.AI.IsFixedInCd; + } + + public bool IsFixedInCd(Transform transform) + { + return this.IsFixedInCd(ulong.Parse(transform.name)); + } + + public bool IsWander(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.AI.IsWander; + } + + public bool IsWander(Transform transform) + { + return this.IsWander(ulong.Parse(transform.name)); + } + + public bool IsSkillChoosed(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = !XEntity.ValideEntity(entity); + return !flag && entity.AI.CanCastSkillCount == 1; + } + + public bool IsSkillChoosed(Transform transform) + { + return this.IsSkillChoosed(ulong.Parse(transform.name)); + } + + public void ClearTarget(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = entity == null || entity.AI == null; + if (!flag) + { + entity.AI.SetTarget(null); + } + } + + public void ClearTarget(Transform transform) + { + this.ClearTarget(ulong.Parse(transform.name)); + } + + public bool HasQTE(ulong id, int QTEState) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + return this.HasQTE(entity, QTEState); + } + + public bool HasQTE(GameObject go, int QTEState) + { + return this.HasQTE(ulong.Parse(go.transform.name), QTEState); + } + + private bool HasQTE(XEntity entity, int QTEState) + { + bool flag = entity == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = entity.QTE == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = QTEState == 1000; + if (flag3) + { + result = entity.QTE.IsInAnyState(); + } + else + { + result = entity.QTE.IsInState((uint)QTEState); + } + } + } + return result; + } + + public bool DetectEnimyInSight(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.DetectEnimyInSight(entity); + } + + public bool ResetTargets(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.ResetTargets(entity); + } + + public bool FindTargetByDistance(GameObject go, float distance, bool filterImmortal, float angle, float delta, int targettype) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.FindTargetByDistance(entity, distance, filterImmortal, angle, delta, targettype); + } + + public bool FindTargetByHitLevel(GameObject go, bool filterImmortal) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.FindTargetByHitLevel(entity, filterImmortal); + } + + public bool FindTargetByHartedList(GameObject go, bool filterImmortal) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.FindTargetByHartedList(entity, filterImmortal); + } + + public bool FindTargetByNonImmortal(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.FindTargetByNonImmortal(entity); + } + + public bool DoSelectNearest(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.DoSelectNearest(entity); + } + + public bool DoSelectFarthest(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.DoSelectFarthest(entity); + } + + public bool DoSelectRandomTarget(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.DoSelectRandom(entity); + } + + public bool SelectTargetBySkillCircle(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.SelectTargetBySkillCircle(entity); + } + + public bool ResetHartedList(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.ResetHartedList(entity); + } + + public bool CastQTESkill(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.CastQTESkill(entity); + } + + public bool CastDashSkill(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.CastQTESkill(entity); + } + + public bool TryCastPhysicalSkill(GameObject go, GameObject targetgo) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + XEntity entity2 = XSingleton.singleton.GetEntity(ulong.Parse(targetgo.transform.name)); + return XSingleton.singleton.TryCastPhysicalSkill(entity, entity2); + } + + public bool TryCastInstallSkill(GameObject go, GameObject targetgo) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + XEntity entity2 = XSingleton.singleton.GetEntity(ulong.Parse(targetgo.transform.name)); + return XSingleton.singleton.TryCastInstallSkill(entity, entity2); + } + + public bool TryCastLearnedSkill(GameObject go, GameObject targetgo) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + XEntity entity2 = XSingleton.singleton.GetEntity(ulong.Parse(targetgo.transform.name)); + return XSingleton.singleton.TryCastLearnedSkill(entity, entity2); + } + + public bool SelectSkill(GameObject go, FilterSkillArg skillarg) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + XEntity target = null; + bool flag = skillarg.mAIArgTarget != null; + if (flag) + { + target = XSingleton.singleton.GetEntity(ulong.Parse(skillarg.mAIArgTarget.name)); + } + return XSingleton.singleton.SelectSkill(entity, target, skillarg); + } + + public bool DoSelectInOrder(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.DoSelectInOrder(entity); + } + + public bool DoSelectRandom(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.DoSelectRandom(entity); + } + + public bool DoCastSkill(GameObject go, GameObject targetgo) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + XEntity target = null; + bool flag = targetgo != null; + if (flag) + { + target = XSingleton.singleton.GetEntity(ulong.Parse(targetgo.transform.name)); + } + return XSingleton.singleton.DoCastSkill(entity, target); + } + + public bool NavToTarget(ulong id, GameObject target) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = entity == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = target != null; + result = (flag2 && XSingleton.singleton.NavToTarget(entity, target.transform.position, entity.AI.MoveSpeed)); + } + return result; + } + + public bool NavToTarget(GameObject go, GameObject target) + { + return this.NavToTarget(ulong.Parse(go.transform.name), target); + } + + public bool FindNavPath(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.FindNavPath(entity); + } + + public bool ActionMove(GameObject go, Vector3 dir, Vector3 dest, float speedratio) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.ActionMove(entity, dir, dest, speedratio); + } + + public bool ActionNav(ulong id, Vector3 dest) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + return XSingleton.singleton.ActionNav(entity, dest, 1f); + } + + public bool ActionNav(GameObject go, Vector3 dest) + { + return this.ActionNav(ulong.Parse(go.transform.name), dest); + } + + public bool ActionRotate(GameObject go, float degree, float speed, int type) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.ActionRotate(entity, degree, speed, type); + } + + public bool RotateToTarget(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.RotateToTarget(entity); + } + + public bool Shout(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.Shout(entity); + } + + public string ReceiveAIEvent(GameObject go, int msgType, bool Deprecate) + { + XEntity xentity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + bool flag = xentity == null; + if (flag) + { + bool flag2 = XSingleton.singleton.AIGlobal != null && go.transform.name == XSingleton.singleton.AIGlobal.Host.EngineObject.Name; + if (flag2) + { + xentity = XSingleton.singleton.AIGlobal.Host; + } + } + return XSingleton.singleton.ReceiveAIEvent(xentity, msgType, Deprecate); + } + + public bool SendAIEvent(GameObject go, int msgto, int msgtype, int entitytypeid, string msgarg, float delaytime, Vector3 pos) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.SendAIEvent(entity, msgto, msgtype, entitytypeid, msgarg, pos, delaytime); + } + + public bool IsTargetImmortal(ulong id) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + return this.IsTargetEntityImmortal(entity); + } + + public bool IsTargetEntityImmortal(XEntity theHost) + { + bool flag = theHost == null || theHost.Buffs == null; + return !flag && theHost.Buffs.IsBuffStateOn(XBuffType.XBuffType_Immortal); + } + + public Transform SelectMoveTargetById(GameObject go, int objectid) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + XGameObject xgameObject = XSingleton.singleton.SelectMoveTargetById(entity, objectid); + return xgameObject.Find(""); + } + + public Transform SelectBuffTarget(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.SelectDoodaTarget(entity, XDoodadType.Buff); + } + + public Transform SelectItemTarget(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.SelectDoodaTarget(entity, XDoodadType.Item); + } + + public bool CallMonster(GameObject go, CallMonsterData data) + { + XEntity xentity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + bool flag = xentity == null; + if (flag) + { + bool flag2 = go.transform.name == "0"; + if (!flag2) + { + return false; + } + xentity = XSingleton.singleton.AIGlobal.Host; + } + return XSingleton.singleton.CallMonster(xentity, data); + } + + public bool CallScript(GameObject go, string script, float delaytime) + { + return XSingleton.singleton.CallScript(script, delaytime); + } + + public bool AddBuff(int monsterid, int buffid, int buffid2) + { + return XSingleton.singleton.AddBuff(monsterid, buffid, buffid2); + } + + public void RunSubTree(GameObject go, string treename) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + entity.AI.OnTickSubTree(treename); + } + + public bool PlayFx(GameObject go, string fxname, Vector3 fxpos, float delaytime) + { + return XSingleton.singleton.PlayFx(fxname, fxpos, delaytime); + } + + public bool StopCastingSkill(GameObject go) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.StopCastingSkill(entity); + } + + public bool DetectEnemyInRange(GameObject go, ref DetectEnemyInRangeArg arg) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.DetectEnemyInRange(entity, ref arg); + } + + public void EnablePlayerAI(bool enable) + { + XAIEnableAI @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + @event.Enable = enable; + XSingleton.singleton.FireEvent(@event); + } + + public bool UpdateNavigation(GameObject go, int dir, int oldDir) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + return XSingleton.singleton.UpdateNavigation(entity, dir, oldDir); + } + + public int GetPlayerProf() + { + return (int)XSingleton.singleton.Player.PlayerAttributes.Profession; + } + + public bool IsPointInMap(Vector3 pos) + { + return XSingleton.singleton.IsPointInMap(pos); + } + + public bool AIDoodad(GameObject go, int doodadid, int waveid, Vector3 pos, float randompos, float delaytime) + { + return XSingleton.singleton.AIDoodad(doodadid, waveid, pos, randompos, delaytime); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs.meta new file mode 100644 index 00000000..8c5624d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIGeneralMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c98ad90d330ea254ab4de10ba8bbb96c +timeCreated: 1611404539 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIGlobal.cs b/Client/Assets/Scripts/XMainClient/XAIGlobal.cs new file mode 100644 index 00000000..db89ee1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIGlobal.cs @@ -0,0 +1,61 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XAIGlobal + { + public XEntity Host + { + get + { + return this._host; + } + } + + private XEntity _host = null; + + public void InitAIGlobal(string ainame) + { + this._host = XSingleton.singleton.CreateEmpty(); + this._host.AI = (XSingleton.singleton.CreateComponent(this._host, XAIComponent.uuID) as XAIComponent); + this._host.AI.SetBehaviorTree(ainame); + } + + public void UnInitAIGlobal() + { + bool flag = this._host != null; + if (flag) + { + XSingleton.singleton.DestroyEntity(this._host); + } + this._host = null; + } + + public void SendAIMsg(string msg, float time = 0f, int typeid = 0, int argid = 0) + { + bool flag = this._host == null || this._host.AI == null; + if (!flag) + { + XAIEventArgs @event = XEventPool.GetEvent(); + @event.DepracatedPass = false; + @event.Firer = this._host; + @event.EventType = 1; + @event.EventArg = msg; + @event.SkillId = argid; + @event.TypeId = typeid; + uint item = XSingleton.singleton.FireEvent(@event, (time > 0f) ? time : 0.05f); + this._host.AI.TimerToken.Add(item); + } + } + + public void ClearAllTimer() + { + bool flag = this._host != null && this._host.AI != null; + if (flag) + { + this._host.AI.ClearAllTimer(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIGlobal.cs.meta b/Client/Assets/Scripts/XMainClient/XAIGlobal.cs.meta new file mode 100644 index 00000000..368b0fc7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIGlobal.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 73898778830309b4a82c3d7fddb5c7c6 +timeCreated: 1611403940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIMove.cs b/Client/Assets/Scripts/XMainClient/XAIMove.cs new file mode 100644 index 00000000..ebc2df03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIMove.cs @@ -0,0 +1,191 @@ +using System; +using UnityEngine; +using UnityEngine.AI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAIMove : XSingleton + { + private Vector3 _arena_center = Vector3.zero; + + public bool NavToTarget(XEntity host, Vector3 oTargetPos, float speed) + { + bool flag = host == null || host.Nav == null; + return !flag && this.NavToPos(host, oTargetPos, speed); + } + + public bool NavToPos(XEntity host, Vector3 targetpos, float speed) + { + bool flag = (host.EngineObject.Position - targetpos).magnitude <= 2f; + if (flag) + { + Vector3 vector = host.EngineObject.Position - targetpos; + vector.y = 0f; + host.Net.ReportMoveAction(targetpos, speed, false, false, false, XSingleton.singleton.AngleToFloat(-vector)); + } + else + { + NavMeshHit navMeshHit; + bool flag2 = !NavMesh.SamplePosition(host.EngineObject.Position, out navMeshHit, 1f, -1); + if (flag2) + { + host.Net.ReportMoveAction(targetpos, speed, false, false, false, XSingleton.singleton.AngleToFloat(targetpos - host.EngineObject.Position)); + } + else + { + XNavigationEventArgs @event = XEventPool.GetEvent(); + @event.Firer = host; + @event.Dest = targetpos; + @event.CameraFollow = false; + XSingleton.singleton.FireEvent(@event); + bool flag3 = !host.Nav.IsOnNav; + if (flag3) + { + @event.Dest = targetpos + (host.EngineObject.Position - targetpos).normalized * 2f; + XSingleton.singleton.FireEvent(@event); + bool flag4 = !host.Nav.IsOnNav; + if (flag4) + { + host.Net.ReportMoveAction(targetpos, speed, false, false, false, XSingleton.singleton.AngleToFloat(targetpos - host.EngineObject.Position)); + } + } + } + } + return true; + } + + public bool RotateToTarget(XEntity entity, XEntity target) + { + Vector3 position = target.EngineObject.Position; + Vector3 position2 = entity.EngineObject.Position; + Vector3 dir = position - position2; + float magnitude = dir.magnitude; + entity.Net.ReportRotateAction(dir); + return true; + } + + public bool FindNavPath(XEntity entity) + { + return entity.AI.RefreshNavTarget(); + } + + public bool ActionMove(XEntity entity, Vector3 dir, Vector3 dest, float speed) + { + bool flag = entity.Nav != null; + if (flag) + { + this.ActionNav(entity, dest, speed); + } + else + { + bool flag2 = entity.Fly != null; + if (flag2) + { + dest.y = entity.Fly.CurrentHeight + XSingleton.singleton.TerrainY(dest); + } + entity.Net.ReportMoveAction(dest, speed * entity.AI.MoveSpeed, false, false, false, 0f); + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(entity); + } + return true; + } + + public bool ActionNav(XEntity entity, Vector3 dest, float speedRatio = 1f) + { + XNavigationEventArgs @event = XEventPool.GetEvent(); + @event.Firer = entity; + @event.Dest = dest; + @event.CameraFollow = false; + @event.SpeedRatio = speedRatio; + return XSingleton.singleton.FireEvent(@event); + } + + public bool ActionRotate(XEntity entity, float degree, float speed, int type) + { + Vector3 dir = Quaternion.Euler(new Vector3(0f, degree, 0f)) * ((type == 0) ? entity.EngineObject.Forward : Vector3.forward); + entity.Net.ReportRotateAction(dir, speed, 0L); + return true; + } + + public bool RotateToTarget(XEntity entity) + { + bool flag = entity.AI.Target == null; + bool result; + if (flag) + { + result = false; + } + else + { + entity.Net.ReportRotateAction(entity.AI.Target.EngineObject.Position - entity.EngineObject.Position, entity.Attributes.RotateSpeed, 0L); + result = true; + } + return result; + } + + public bool UpdateNavigation(XEntity entity, int dir, int oldDir) + { + Vector3 vector = entity.AI.Patrol.GetCurNavigationPoint(); + bool flag = vector == Vector3.zero; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = dir != oldDir; + if (flag2) + { + entity.AI.Patrol.ToggleNavDir(); + vector = entity.AI.Patrol.GetNextNavPos(); + } + else + { + bool flag3 = (entity.EngineObject.Position - vector).magnitude <= 0.5f || entity.AI.Patrol.IsInNavGap; + if (flag3) + { + bool isInNavGap = entity.AI.Patrol.IsInNavGap; + if (isInNavGap) + { + float num = Time.realtimeSinceStartup - entity.AI.Patrol.NavNodeFinishTime; + bool flag4 = num < entity.AI.Patrol.GetCurNavGap(); + if (flag4) + { + return true; + } + vector = entity.AI.Patrol.GetNextNavPos(); + } + else + { + bool flag5 = entity.AI.Patrol.GetCurNavGap() > 0f; + if (flag5) + { + entity.AI.Patrol.NavNodeFinishTime = Time.realtimeSinceStartup; + entity.AI.Patrol.IsInNavGap = true; + return true; + } + vector = entity.AI.Patrol.GetNextNavPos(); + } + } + } + entity.AI.Patrol.IsInNavGap = false; + //(entity.EngineObject.Position - vector).y = 0f; + //! + //(entity.EngineObject.Position - vector).y = 0f; + Vector3 p = entity.EngineObject.Position; + p.y = vector.y; + entity.EngineObject.Position = p; + + this.NavToPos(entity, vector, entity.AI.MoveSpeed); + result = true; + } + return result; + } + + public bool IsPointInMap(Vector3 pos) + { + return XSingleton.singleton.IsWalkable(pos); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIMove.cs.meta b/Client/Assets/Scripts/XMainClient/XAIMove.cs.meta new file mode 100644 index 00000000..4c467de7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIMove.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29cbed48e08015544900621204d3d182 +timeCreated: 1611403477 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIOtherActions.cs b/Client/Assets/Scripts/XMainClient/XAIOtherActions.cs new file mode 100644 index 00000000..040a3655 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIOtherActions.cs @@ -0,0 +1,512 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAIOtherActions : XSingleton + { + private XTimerMgr.ElapsedEventHandler _delayRunScriptCb = null; + + private uint _kill_timer_token = 0u; + + public XAIOtherActions() + { + this._delayRunScriptCb = new XTimerMgr.ElapsedEventHandler(this.DelayRunScript); + } + + public bool Shout(XEntity entity) + { + return true; + } + + public string ReceiveAIEvent(XEntity entity, int msgType, bool Deprecate) + { + string text = ""; + bool flag = entity.AI.AIEvent == null; + string result; + if (flag) + { + result = ""; + } + else + { + bool flag2 = entity.AI.AIEvent.EventType == msgType; + if (flag2) + { + text = string.Format("{0} {1} {2} {3} {4} {5} {6}", new object[] + { + entity.AI.AIEvent.EventArg, + entity.AI.AIEvent.TypeId, + entity.AI.AIEvent.Pos.x, + entity.AI.AIEvent.Pos.y, + entity.AI.AIEvent.Pos.z, + entity.AI.AIEvent.SkillId, + entity.AI.AIEvent.SenderUID + }); + } + if (Deprecate) + { + entity.AI.AIEvent = null; + } + result = text; + } + return result; + } + + public bool SendAIEvent(XEntity entity, int msgto, int msgtype, int entitytypeid, string msgarg, Vector3 pos, float delaytime = 0f) + { + List list = new List(); + switch (msgto) + { + case 0: + list = XSingleton.singleton.GetAlly(entity); + break; + case 1: + list = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + break; + case 2: + { + bool flag = XSingleton.singleton.Boss != null; + if (flag) + { + list.Add(XSingleton.singleton.Boss); + } + break; + } + case 3: + { + bool flag2 = entity != null; + if (flag2) + { + bool flag3 = entity.IsPlayer || entity.IsRole; + if (flag3) + { + list = XSingleton.singleton.GetOpponent(entity); + } + else + { + list = XSingleton.singleton.GetAlly(entity); + } + } + else + { + list = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + } + break; + } + case 4: + list = XSingleton.singleton.GetOpponent(entity); + break; + case 5: + { + list = XSingleton.singleton.GetAlly(entity); + List opponent = XSingleton.singleton.GetOpponent(entity); + for (int i = 0; i < opponent.Count; i++) + { + list.Add(opponent[i]); + } + break; + } + case 6: + { + bool flag4 = msgtype == 0; + if (flag4) + { + XSingleton.singleton.SetExternalString(msgarg, false); + } + return true; + } + case 7: + list.Add(XSingleton.singleton.AIGlobal.Host); + break; + } + for (int j = 0; j < list.Count; j++) + { + bool flag5 = entitytypeid != 0 && list[j].Attributes != null && (ulong)list[j].Attributes.TypeID != (ulong)((long)entitytypeid); + if (!flag5) + { + XAIEventArgs @event = XEventPool.GetEvent(); + @event.DepracatedPass = false; + @event.Firer = list[j]; + @event.TypeId = entitytypeid; + @event.EventType = msgtype; + @event.EventArg = msgarg; + @event.Pos = pos; + XSingleton.singleton.FireEvent(@event, (delaytime > 0f) ? delaytime : 0.05f); + } + } + return true; + } + + public bool CallMonster(XEntity entity, CallMonsterData data) + { + Vector3 vector = Vector3.zero; + bool flag = data.mAIArgBornType == 0; + if (flag) + { + vector = data.mAIArgPos; + } + else + { + bool flag2 = data.mAIArgBornType == 2; + if (flag2) + { + vector = data.mAIArgPos1 + data.mAIArgPos; + } + else + { + Vector3[] array = new Vector3[] + { + data.mAIArgPos1, + data.mAIArgPos2, + data.mAIArgPos3, + data.mAIArgPos4 + }; + vector = array[XSingleton.singleton.RandomInt(0, 4)]; + } + } + bool flag3 = data.mAIArgDist > 0f; + if (flag3) + { + bool flag4 = false; + Vector3 vector2 = vector; + for (int i = 0; i < 10; i++) + { + vector.x += data.mAIArgDist * XSingleton.singleton.RandomFloat(-1f, 1f); + vector.z += data.mAIArgDist * XSingleton.singleton.RandomFloat(-1f, 1f); + bool flag5 = XSingleton.singleton.IsWalkable(vector); + if (flag5) + { + flag4 = true; + break; + } + } + bool flag6 = !flag4; + if (flag6) + { + bool mAIArgForcePlace = data.mAIArgForcePlace; + if (mAIArgForcePlace) + { + return false; + } + bool flag7 = XSingleton.singleton.IsWalkable(vector2); + if (flag7) + { + vector = vector2; + } + else + { + bool flag8 = data.mAIArgFinalPos != Vector3.zero; + if (!flag8) + { + return false; + } + vector = data.mAIArgFinalPos; + } + } + } + bool flag9 = !XSingleton.singleton.IsWalkable(vector); + if (flag9) + { + bool mAIArgForcePlace2 = data.mAIArgForcePlace; + if (mAIArgForcePlace2) + { + return false; + } + bool flag10 = data.mAIArgFinalPos != Vector3.zero; + if (!flag10) + { + return false; + } + vector = data.mAIArgFinalPos; + } + bool flag11 = data.mAIArgMaxMonsterNum != 0; + if (flag11) + { + int num = 0; + List opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int j = 0; j < opponent.Count; j++) + { + bool flag12 = opponent[j].Attributes.TypeID == (uint)data.mAIArgMonsterId; + if (flag12) + { + num++; + } + } + bool flag13 = num >= data.mAIArgMaxMonsterNum; + if (flag13) + { + return false; + } + } + bool flag14 = data.mAIArgDelayTime > 0f; + if (flag14) + { + CallMonsterArg callMonsterArg = new CallMonsterArg(); + callMonsterArg.MonsterTemplateId = data.mAIArgMonsterId; + callMonsterArg.CopyMonsterId = data.mAIArgCopyMonsterId; + callMonsterArg.MonsterPos = vector; + callMonsterArg.MonsterUnitId = 0UL; + callMonsterArg.WaveId = 0; + callMonsterArg.OldMonsterUnitId = 0UL; + callMonsterArg.FaceDir = data.mAIArgAngle; + callMonsterArg.HPPercent = data.mAIArgHPPercent; + callMonsterArg.LifeTime = data.mAIArgLifeTime; + uint item = XSingleton.singleton.SetTimer(data.mAIArgDelayTime, new XTimerMgr.ElapsedEventHandler(this.LateSpawn), callMonsterArg); + entity.AI.TimerToken.Add(item); + } + else + { + XEntity xentity = XSingleton.singleton.CreateEntity((uint)data.mAIArgMonsterId, vector, Quaternion.Euler(new Vector3(0f, data.mAIArgAngle, 0f)), true, 0u); + bool flag15 = data.mAIArgHPPercent > 0f && data.mAIArgHPPercent < 100f; + if (flag15) + { + double num2 = xentity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + num2 = num2 * (double)data.mAIArgHPPercent / 100.0; + xentity.Attributes.SetAttr(XAttributeDefine.XAttr_CurrentHP_Basic, num2); + } + bool flag16 = data.mAIArgLifeTime > 0f; + if (flag16) + { + uint item2 = XSingleton.singleton.SetTimer(data.mAIArgLifeTime, new XTimerMgr.ElapsedEventHandler(this.KillSpawn), xentity.ID); + entity.AI.TimerToken.Add(item2); + } + } + bool flag17 = XSingleton.singleton.Boss != null; + if (flag17) + { + XSecurityAIInfo xsecurityAIInfo = XSecurityAIInfo.TryGetStatistics(XSingleton.singleton.Boss); + bool flag18 = xsecurityAIInfo != null; + if (flag18) + { + xsecurityAIInfo.OnCallMonster(entity); + } + } + return true; + } + + private void LateSpawn(object obj) + { + CallMonsterArg callMonsterArg = (CallMonsterArg)obj; + XEntity xentity = XSingleton.singleton.CreateEntity((uint)callMonsterArg.MonsterTemplateId, callMonsterArg.MonsterPos, Quaternion.Euler(new Vector3(0f, callMonsterArg.FaceDir, 0f)), true, 0u); + bool flag = callMonsterArg.HPPercent > 0f && callMonsterArg.HPPercent < 100f; + if (flag) + { + double num = xentity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + num = num * (double)callMonsterArg.HPPercent / 100.0; + xentity.Attributes.SetAttr(XAttributeDefine.XAttr_CurrentHP_Basic, num); + } + bool flag2 = callMonsterArg.LifeTime > 0f; + if (flag2) + { + uint item = XSingleton.singleton.SetTimer(callMonsterArg.LifeTime, new XTimerMgr.ElapsedEventHandler(this.KillSpawn), xentity.ID); + XSingleton.singleton.AddLog("Will spawn: ", xentity.ID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = XSingleton.singleton.AIGlobal != null && XSingleton.singleton.AIGlobal.Host != null; + if (flag3) + { + XSingleton.singleton.AIGlobal.Host.AI.TimerToken.Add(item); + } + } + } + + private void KillSpawn(object obj) + { + ulong id = (ulong)obj; + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(id); + XSingleton.singleton.AddLog("Will kill spawn:", id.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = entityConsiderDeath != null; + if (flag) + { + entityConsiderDeath.TriggerDeath(null); + } + } + + public bool CallScript(string script, float delaytime) + { + bool flag = delaytime > 0f; + if (flag) + { + XSingleton.singleton.SetTimer(delaytime, this._delayRunScriptCb, script); + } + else + { + XSingleton.singleton.RunScript(script); + } + return true; + } + + private void DelayRunScript(object args) + { + XSingleton.singleton.RunScript((string)args); + } + + public bool AddBuff(int monsterid, int buffid, int buffid2) + { + List list = new List(); + bool result = false; + list = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int i = 0; i < list.Count; i++) + { + bool flag = monsterid != -1 && (ulong)list[i].Attributes.TypeID != (ulong)((long)monsterid); + if (!flag) + { + result = true; + this.AddEntityBuff(list[i], buffid); + bool flag2 = buffid2 != 0; + if (flag2) + { + this.AddEntityBuff(list[i], buffid2); + } + } + } + bool flag3 = monsterid == -1; + if (flag3) + { + this.AddEntityBuff(XSingleton.singleton.Player, buffid); + bool flag4 = buffid2 != 0; + if (flag4) + { + this.AddEntityBuff(XSingleton.singleton.Player, buffid2); + } + } + return result; + } + + private void AddEntityBuff(XEntity entity, int buffid) + { + int num = buffid / 100000; + bool flag = num == 0; + if (flag) + { + num = 1; + } + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc.BuffID = buffid % 100000; + @event.xBuffDesc.BuffLevel = num; + @event.Firer = entity; + @event.xBuffDesc.CasterID = entity.ID; + XSingleton.singleton.FireEvent(@event); + } + + public bool PlayFx(string fxname, Vector3 fxpos, float delaytime) + { + return true; + } + + public bool DetectEnemyInRange(XEntity entity, ref DetectEnemyInRangeArg arg) + { + List list = null; + bool flag = arg.mAIArgFightGroupType == 0; + if (flag) + { + list = XSingleton.singleton.GetOpponent(entity); + } + else + { + bool flag2 = arg.mAIArgFightGroupType == 1; + if (flag2) + { + list = XSingleton.singleton.GetAlly(entity); + } + } + bool flag3 = list == null; + bool result; + if (flag3) + { + result = false; + } + else + { + bool flag4 = arg.mAIArgMonsterType == 0; + if (flag4) + { + arg.mAIArgMonsterType = -1; + } + for (int i = 0; i < list.Count; i++) + { + XEntity xentity = list[i]; + bool flag5 = xentity == entity || xentity == null; + if (!flag5) + { + bool flag6 = arg.mAIArgMonsterType != -1; + if (flag6) + { + uint num = 0u; + bool flag7 = xentity.Attributes != null; + if (flag7) + { + num = xentity.Attributes.Tag; + } + bool flag8 = ((ulong)num & (ulong)((long)arg.mAIArgMonsterType)) == 0UL; + if (flag8) + { + goto IL_234; + } + } + bool flag9 = arg.mAIArgRangeType == 0; + if (flag9) + { + bool flag10 = (xentity.EngineObject.Position - (entity.EngineObject.Position + entity.EngineObject.Forward.normalized * arg.mAIArgOffsetLength)).magnitude <= arg.mAIArgRadius; + if (flag10) + { + return true; + } + } + else + { + bool flag11 = arg.mAIArgRangeType == 1; + if (flag11) + { + float num2 = Vector3.Dot(xentity.EngineObject.Position - entity.EngineObject.Position, entity.EngineObject.Forward.normalized); + bool flag12 = Mathf.Abs(num2) > arg.mAIArgWidth / 2f; + if (!flag12) + { + Vector3 vector = Quaternion.Euler(new Vector3(0f, 90f, 0f)) * entity.EngineObject.Position.normalized; + num2 = Vector3.Dot(xentity.EngineObject.Position - entity.EngineObject.Position, vector); + bool flag13 = Mathf.Abs(num2) > arg.mAIArgLength / 2f; + if (!flag13) + { + return true; + } + } + } + } + } + IL_234:; + } + result = false; + } + return result; + } + + public void TickKillAll(object obj) + { + bool flag = obj as string == "stop"; + if (flag) + { + XSingleton.singleton.KillTimer(this._kill_timer_token); + this._kill_timer_token = 0u; + } + else + { + bool flag2 = this._kill_timer_token > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._kill_timer_token); + this._kill_timer_token = 0u; + } + RpcC2G_GMCommand rpcC2G_GMCommand = new RpcC2G_GMCommand(); + rpcC2G_GMCommand.oArg.cmd = "killall"; + XSingleton.singleton.Send(rpcC2G_GMCommand); + this._kill_timer_token = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.TickKillAll), "continue"); + } + } + + public bool AIDoodad(int doodadid, int waveid, Vector3 pos, float randompos, float delaytime) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIOtherActions.cs.meta b/Client/Assets/Scripts/XMainClient/XAIOtherActions.cs.meta new file mode 100644 index 00000000..8c0e8b90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIOtherActions.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc15e1a548ebe23418ddc00c29b9d989 +timeCreated: 1611404548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIRestartEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAIRestartEventArgs.cs new file mode 100644 index 00000000..e6cc8588 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIRestartEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XAIRestartEventArgs : XEventArgs + { + public XAIRestartEventArgs() + { + this._eDefine = XEventDefine.XEvent_AIRestart; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIRestartEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAIRestartEventArgs.cs.meta new file mode 100644 index 00000000..b89b3f97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIRestartEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 30b19aa78bfdb61458520a3a16328849 +timeCreated: 1611403522 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAISkill.cs b/Client/Assets/Scripts/XMainClient/XAISkill.cs new file mode 100644 index 00000000..3179d188 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAISkill.cs @@ -0,0 +1,892 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAISkill : XSingleton + { + private Dictionary> _start_skills = new Dictionary>(); + + private Dictionary> _next_skills = new Dictionary>(); + + private bool _inited = false; + + public XAISkill() + { + bool inited = this._inited; + if (!inited) + { + for (int i = 0; i < 8; i++) + { + SkillCombo.RowData rowData = XArenaDocument.SkillComboTable.Table[i]; + List list = new List(); + bool flag = rowData.nextskill0 != ""; + if (flag) + { + list.Add(rowData.nextskill0); + } + bool flag2 = rowData.nextskill1 != ""; + if (flag2) + { + list.Add(rowData.nextskill1); + } + bool flag3 = rowData.nextskill2 != ""; + if (flag3) + { + list.Add(rowData.nextskill2); + } + bool flag4 = rowData.nextskill3 != ""; + if (flag4) + { + list.Add(rowData.nextskill3); + } + bool flag5 = rowData.nextskill4 != ""; + if (flag5) + { + list.Add(rowData.nextskill4); + } + this._start_skills[i] = list; + } + for (int j = 16; j < XArenaDocument.SkillComboTable.Table.Length; j++) + { + SkillCombo.RowData rowData2 = XArenaDocument.SkillComboTable.Table[j]; + List list2 = new List(); + bool flag6 = rowData2.nextskill0 != ""; + if (flag6) + { + list2.Add(rowData2.nextskill0); + } + bool flag7 = rowData2.nextskill1 != ""; + if (flag7) + { + list2.Add(rowData2.nextskill1); + } + bool flag8 = rowData2.nextskill2 != ""; + if (flag8) + { + list2.Add(rowData2.nextskill2); + } + bool flag9 = rowData2.nextskill3 != ""; + if (flag9) + { + list2.Add(rowData2.nextskill3); + } + bool flag10 = rowData2.nextskill4 != ""; + if (flag10) + { + list2.Add(rowData2.nextskill4); + } + this._next_skills[rowData2.skillname] = list2; + } + this._inited = true; + } + } + + public List GetStartSkill(int profIndex) + { + bool flag = this._start_skills.ContainsKey(profIndex); + List result; + if (flag) + { + result = this._start_skills[profIndex]; + } + else + { + result = null; + } + return result; + } + + public List GetNextSkill(string skillname) + { + bool flag = this._next_skills.ContainsKey(skillname); + List result; + if (flag) + { + result = this._next_skills[skillname]; + } + else + { + result = null; + } + return result; + } + + public int GetProfIndex(XEntity entity) + { + int num = (int)(entity.Attributes.TypeID % 10u - 1u); + int num2 = (int)(entity.Attributes.TypeID / 10u - 1u); + bool flag = entity.Attributes.TypeID >= 1000u || entity.Attributes.TypeID <= 10u; + int result; + if (flag) + { + result = num * 2 + XSingleton.singleton.RandomInt(0, 2); + } + else + { + result = num * 2 + num2; + } + return result; + } + + public bool TryCastPhysicalSkill(XEntity host, XEntity target) + { + bool flag = host == null || target == null; + bool result; + if (flag) + { + result = false; + } + else + { + Vector3 position = target.EngineObject.Position; + Vector3 position2 = host.EngineObject.Position; + XSkillCore physicalSkill = host.SkillMgr.GetPhysicalSkill(); + bool flag2 = physicalSkill != null; + if (flag2) + { + host.Net.ReportSkillAction(target, physicalSkill.ID, -1); + XSecurityAIInfo xsecurityAIInfo = XSecurityAIInfo.TryGetStatistics(host); + bool flag3 = xsecurityAIInfo != null; + if (flag3) + { + bool flag4 = !host.IsPlayer && !host.IsRole; + if (flag4) + { + xsecurityAIInfo.OnPhysicalAttack(); + } + } + } + result = true; + } + return result; + } + + public bool TryCastInstallSkill(XEntity host, XEntity target) + { + return false; + } + + public bool TryCastLearnedSkill(XEntity host, XEntity target) + { + return false; + } + + private bool CastSkill(XEntity host, XEntity target, uint skillid) + { + bool flag = host == null || target == null; + bool result; + if (flag) + { + result = false; + } + else + { + Vector3 position = target.EngineObject.Position; + Vector3 position2 = host.EngineObject.Position; + float magnitude = (position - position2).magnitude; + XSkillCore physicalSkill = host.SkillMgr.GetPhysicalSkill(); + bool flag2 = physicalSkill.ID == skillid; + if (flag2) + { + bool flag3 = XSingleton.singleton.IsLess(magnitude, physicalSkill.CastRangeUpper) && XSingleton.singleton.IsGreater(magnitude, physicalSkill.CastRangeLower); + if (flag3) + { + host.Net.ReportSkillAction(target, physicalSkill.ID, -1); + } + result = false; + } + else + { + for (int i = 0; i < host.SkillMgr.SkillOrder.Count; i++) + { + XSkillCore xskillCore = host.SkillMgr.SkillOrder[i] as XSkillCore; + bool flag4 = xskillCore == null || xskillCore.ID != skillid; + if (!flag4) + { + bool flag5 = host.SkillMgr.IsCooledDown(xskillCore) && xskillCore.ID != host.SkillMgr.GetRecoveryIdentity(); + if (flag5) + { + bool flag6 = XSingleton.singleton.IsLess(magnitude, xskillCore.CastRangeUpper) && XSingleton.singleton.IsGreater(magnitude, xskillCore.CastRangeLower); + if (flag6) + { + host.Net.ReportSkillAction(target, xskillCore.ID, -1); + } + } + } + } + result = false; + } + } + return result; + } + + public bool CastQTESkill(XEntity entity) + { + bool flag = entity.QTE == null || !entity.QTE.IsInAnyState(); + bool result; + if (flag) + { + result = false; + } + else + { + List qtelist = entity.QTE.QTEList; + bool flag2 = qtelist.Count == 0; + if (flag2) + { + result = false; + } + else + { + int num = XSingleton.singleton.RandomInt(0, qtelist.Count); + for (int i = 0; i < qtelist.Count; i++) + { + uint num2 = qtelist[(i + num) % qtelist.Count]; + bool flag3 = false; + for (int j = 0; j < entity.QTE.QTEList.Count; j++) + { + bool flag4 = entity.QTE.QTEList[j] == num2; + if (flag4) + { + flag3 = true; + break; + } + } + bool flag5 = !flag3; + if (!flag5) + { + bool flag6 = entity.SkillMgr.IsCooledDown(num2); + if (flag6) + { + entity.Net.ReportSkillAction(null, num2, -1); + } + } + } + result = false; + } + } + return result; + } + + public bool CastDashSkill(XEntity entity) + { + uint dashIdentity = entity.SkillMgr.GetDashIdentity(); + bool flag = dashIdentity == 0u || !entity.SkillMgr.IsCooledDown(dashIdentity); + bool result; + if (flag) + { + result = false; + } + else + { + entity.Net.ReportSkillAction(null, dashIdentity, 1); + result = true; + } + return result; + } + + public uint GetNextComboSkill(XEntity entity, uint skillid) + { + Vector3 position = XSingleton.singleton.Player.EngineObject.Position; + Vector3 position2 = entity.EngineObject.Position; + float magnitude = (position - position2).magnitude; + string text = ""; + int num = -1; + for (int i = 0; i < entity.SkillMgr.SkillOrder.Count; i++) + { + XSkillCore xskillCore = entity.SkillMgr.SkillOrder[i] as XSkillCore; + bool flag = xskillCore != null && xskillCore.ID == skillid; + if (flag) + { + text = xskillCore.Soul.Name; + break; + } + } + bool flag2 = text == ""; + if (flag2) + { + XSkillCore physicalSkill = entity.SkillMgr.GetPhysicalSkill(); + bool flag3 = physicalSkill.ID == skillid; + if (flag3) + { + text = physicalSkill.Soul.Name; + } + } + for (int j = 0; j < XArenaDocument.SkillComboTable.Table.Length; j++) + { + bool flag4 = XArenaDocument.SkillComboTable.Table[j].skillname == text; + if (flag4) + { + num = j; + break; + } + } + bool flag5 = num == -1; + uint result; + if (flag5) + { + result = 0u; + } + else + { + List list = new List(); + List nextSkill = this.GetNextSkill(text); + bool flag6 = nextSkill != null; + if (flag6) + { + for (int k = 0; k < nextSkill.Count; k++) + { + for (int l = 0; l < entity.SkillMgr.SkillOrder.Count; l++) + { + XSkillCore xskillCore2 = entity.SkillMgr.SkillOrder[l] as XSkillCore; + bool flag7 = xskillCore2 != null && xskillCore2.Soul.Name == nextSkill[k]; + if (flag7) + { + list.Add(xskillCore2); + break; + } + } + XSkillCore physicalSkill2 = entity.SkillMgr.GetPhysicalSkill(); + bool flag8 = physicalSkill2.Soul.Name == nextSkill[k]; + if (flag8) + { + list.Add(physicalSkill2); + } + } + } + bool flag9 = list.Count == 0; + if (flag9) + { + result = 0u; + } + else + { + int num2 = XSingleton.singleton.RandomInt(0, list.Count); + for (int m = 0; m < list.Count; m++) + { + XSkillCore xskillCore3 = list[(m + num2) % list.Count]; + bool flag10 = entity.SkillMgr.IsCooledDown(xskillCore3); + if (flag10) + { + bool flag11 = XSingleton.singleton.IsLess(magnitude, xskillCore3.CastRangeUpper) && XSingleton.singleton.IsGreater(magnitude, xskillCore3.CastRangeLower); + if (flag11) + { + return xskillCore3.ID; + } + } + } + result = 0u; + } + } + return result; + } + + public bool IsSkillCooledDown(GameObject go, uint skillid) + { + XEntity entity = XSingleton.singleton.GetEntity(ulong.Parse(go.transform.name)); + bool flag = entity == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = entity.SkillMgr.IsCooledDown(skillid); + result = flag2; + } + return result; + } + + public bool CastStartSkill(XEntity host, XEntity target) + { + int profIndex = this.GetProfIndex(host); + List startSkill = this.GetStartSkill(profIndex); + List list = new List(); + for (int i = 0; i < startSkill.Count; i++) + { + bool flag = host.SkillMgr.GetPhysicalSkill().Soul.Name == startSkill[i]; + if (flag) + { + list.Add(host.SkillMgr.GetPhysicalSkill()); + break; + } + for (int j = 0; j < host.SkillMgr.SkillOrder.Count; j++) + { + XSkillCore xskillCore = host.SkillMgr.SkillOrder[j] as XSkillCore; + bool flag2 = xskillCore != null && xskillCore.Soul.Name == startSkill[i]; + if (flag2) + { + list.Add(xskillCore); + break; + } + } + } + Vector3 position = target.EngineObject.Position; + Vector3 position2 = host.EngineObject.Position; + float magnitude = (position - position2).magnitude; + int num = XSingleton.singleton.RandomInt(0, list.Count); + for (int k = 0; k < list.Count; k++) + { + XSkillCore xskillCore2 = list[(k + num) % list.Count]; + bool flag3 = host.SkillMgr.IsCooledDown(xskillCore2); + if (flag3) + { + bool flag4 = XSingleton.singleton.IsLess(magnitude, xskillCore2.CastRangeUpper) && XSingleton.singleton.IsGreater(magnitude, xskillCore2.CastRangeLower); + if (flag4) + { + host.Net.ReportSkillAction(target, xskillCore2.ID, -1); + } + } + } + return false; + } + + public bool ResetSkillSelect(XEntity host, FilterSkillArg skillarg) + { + bool mAIArgUseInstall = skillarg.mAIArgUseInstall; + host.AI.ClearCanCastSkill(); + for (int i = 0; i < host.SkillMgr.SkillOrder.Count; i++) + { + XSkillCore xskillCore = host.SkillMgr.SkillOrder[i] as XSkillCore; + bool flag = xskillCore != null; + if (flag) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(xskillCore.ID, 1u); + int num = (int)((skillConfig != null) ? skillConfig.SkillType : 0); + bool flag2 = true; + bool flag3 = host.MobbedBy != null; + if (flag3) + { + bool flag4 = host.AI.IsLinkSkillCannotCast(xskillCore.ID); + if (flag4) + { + flag2 = false; + } + } + bool flag5 = xskillCore.ID != host.SkillMgr.GetRecoveryIdentity() && xskillCore.ID != host.SkillMgr.GetBrokenIdentity() && xskillCore.ID != host.SkillMgr.GetDashIdentity() && num != 5 && flag2; + if (flag5) + { + host.AI.AddCanCastSkill(xskillCore); + } + } + } + bool flag6 = host.IsPlayer && mAIArgUseInstall; + if (flag6) + { + this.SelectInstallSkill(host); + } + bool flag7 = skillarg.mAIArgMaxSkillNum != 0; + if (flag7) + { + int num2 = Math.Abs(skillarg.mAIArgMaxSkillNum); + bool flag8 = num2 < host.AI.CanCastSkillCount; + if (flag8) + { + bool flag9 = skillarg.mAIArgMaxSkillNum < 0; + if (flag9) + { + host.AI.RemoveCanCastSkillRange(num2, host.AI.CanCastSkillCount - num2); + } + else + { + bool flag10 = host.AI.RangeSkillCount == 0; + if (flag10) + { + for (int j = 0; j < num2; j++) + { + int index = XSingleton.singleton.RandomInt(0, host.AI.CanCastSkillCount); + host.AI.AddRangeSkill(host.AI.GetCanCastSkill(index)); + host.AI.RemoveCanCastSkillAt(index); + } + } + host.AI.CopyRange2CanCast(); + } + } + } + return true; + } + + public bool SelectInstallSkill(XEntity host) + { + bool isPlayer = host.IsPlayer; + if (isPlayer) + { + List list = ListPool.Get(); + for (int i = 0; i < (host.Attributes as XPlayerAttributes).skillSlot.Length; i++) + { + bool flag = false; + uint num = (host.Attributes as XPlayerAttributes).skillSlot[i]; + for (int j = 0; j < host.AI.CanCastSkillCount; j++) + { + bool flag2 = host.AI.GetCanCastSkill(j).ID == num; + if (flag2) + { + flag = true; + break; + } + } + bool flag3 = !flag; + if (!flag3) + { + bool flag4 = num > 0u; + if (flag4) + { + XSkillCore skill = host.SkillMgr.GetSkill(num); + bool flag5 = skill != null; + if (flag5) + { + list.Add(skill); + } + } + } + } + host.AI.Copy2CanCastSkill(list); + ListPool.Release(list); + } + bool flag6 = host.AI.CanCastSkillCount == 0; + return !flag6; + } + + public bool SelectMPOKSkill(XEntity host) + { + List list = ListPool.Get(); + float num = (float)host.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + for (int i = 0; i < host.AI.CanCastSkillCount; i++) + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(i); + uint skillHash = XSingleton.singleton.XHash(canCastSkill.Soul.Name); + uint level = canCastSkill.Level; + int skillType = XSingleton.singleton.GetSkillType(canCastSkill.ID); + float skillCostMP = XSingleton.singleton.GetSkillCostMP(skillHash, level, host.SkillCasterTypeID); + bool flag = skillCostMP <= num && skillCostMP >= 0f && skillType == 1; + if (flag) + { + list.Add(canCastSkill); + } + } + host.AI.Copy2CanCastSkill(list); + ListPool.Release(list); + bool flag2 = host.AI.CanCastSkillCount == 0; + return !flag2; + } + + public bool SelectSkillByName(XEntity host, string name) + { + List list = ListPool.Get(); + for (int i = 0; i < host.AI.CanCastSkillCount; i++) + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(i); + bool flag = canCastSkill.Soul.Name == name; + if (flag) + { + list.Add(canCastSkill); + } + } + host.AI.Copy2CanCastSkill(list); + ListPool.Release(list); + bool flag2 = host.AI.CanCastSkillCount == 0; + return !flag2; + } + + public bool SelectComboSkill(XEntity host, int skilltype, string startname) + { + bool result = true; + string comboSkill = host.AI.ComboSkill; + List toRelease = ListPool.Get(); + bool flag = skilltype == 0; + if (flag) + { + int profIndex = this.GetProfIndex(host); + List startSkill = this.GetStartSkill(profIndex); + bool flag2 = !string.IsNullOrEmpty(startname); + if (flag2) + { + startSkill.Clear(); + startSkill.Add(startname); + } + List list = ListPool.Get(); + for (int i = 0; i < startSkill.Count; i++) + { + string b = startSkill[i]; + bool flag3 = host.SkillMgr.GetPhysicalSkill().Soul.Name == b; + if (flag3) + { + list.Add(host.SkillMgr.GetPhysicalSkill()); + break; + } + for (int j = 0; j < host.AI.CanCastSkillCount; j++) + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(j); + bool flag4 = canCastSkill.Soul.Name == b; + if (flag4) + { + list.Add(canCastSkill); + break; + } + } + } + host.AI.Copy2CanCastSkill(list); + ListPool.Release(list); + } + else + { + List list2 = ListPool.Get(); + List nextSkill = this.GetNextSkill(comboSkill); + bool flag5 = nextSkill != null; + if (flag5) + { + for (int k = 0; k < nextSkill.Count; k++) + { + string b2 = nextSkill[k]; + for (int l = 0; l < host.AI.CanCastSkillCount; l++) + { + XSkillCore canCastSkill2 = host.AI.GetCanCastSkill(l); + bool flag6 = canCastSkill2.Soul.Name == b2; + if (flag6) + { + list2.Add(canCastSkill2); + break; + } + } + XSkillCore physicalSkill = host.SkillMgr.GetPhysicalSkill(); + bool flag7 = physicalSkill.Soul.Name == b2; + if (flag7) + { + list2.Add(physicalSkill); + } + } + } + host.AI.Copy2CanCastSkill(list2); + bool flag8 = list2.Count == 0; + if (flag8) + { + host.AI.ComboSkill = ""; + result = false; + } + ListPool.Release(list2); + } + ListPool.Release(toRelease); + return result; + } + + public bool SelectSkillByHP(XEntity host) + { + List list = ListPool.Get(); + for (int i = 0; i < host.AI.CanCastSkillCount; i++) + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(i); + int skillHpMaxLimit = XSingleton.singleton.GetSkillHpMaxLimit(canCastSkill.Soul.Name, 1u, host.SkillCasterTypeID); + int skillHpMinLimit = XSingleton.singleton.GetSkillHpMinLimit(canCastSkill.Soul.Name, 1u, host.SkillCasterTypeID); + int num = (int)(100.0 * host.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic) / host.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total)); + bool flag = (skillHpMaxLimit == 0 || num <= skillHpMaxLimit) && (skillHpMinLimit == 0 || num >= skillHpMinLimit); + if (flag) + { + list.Add(canCastSkill); + } + } + host.AI.Copy2CanCastSkill(list); + ListPool.Release(list); + bool flag2 = host.AI.CanCastSkillCount == 0; + return !flag2; + } + + public bool SelectSkillByCoolDown(XEntity host) + { + List list = ListPool.Get(); + for (int i = 0; i < host.AI.CanCastSkillCount; i++) + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(i); + bool flag = host.SkillMgr.IsCooledDown(canCastSkill); + if (flag) + { + list.Add(canCastSkill); + } + } + host.AI.Copy2CanCastSkill(list); + ListPool.Release(list); + bool flag2 = host.AI.CanCastSkillCount == 0; + return !flag2; + } + + public bool SelectSkillByAttackField(XEntity host, XEntity target, bool detectall) + { + List list = ListPool.Get(); + for (int i = 0; i < host.AI.CanCastSkillCount; i++) + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(i); + bool flag = target == null; + if (flag) + { + bool flag2 = !canCastSkill.Soul.NeedTarget; + if (flag2) + { + list.Add(canCastSkill); + } + } + else + { + bool flag3 = canCastSkill.IsInAttckField(host.EngineObject.Position, target.EngineObject.Position - host.EngineObject.Position, target); + if (flag3) + { + list.Add(canCastSkill); + } + } + } + host.AI.Copy2CanCastSkill(list); + ListPool.Release(list); + bool flag4 = host.AI.CanCastSkillCount == 0; + return !flag4; + } + + public bool SelectSkillByCombo(XEntity host, int skilltype, string skillname) + { + return this.SelectComboSkill(host, skilltype, skillname); + } + + public bool SelectSkill(XEntity host, XEntity target, FilterSkillArg skillarg) + { + this.ResetSkillSelect(host, skillarg); + bool flag = !skillarg.mAIArgUseCoolDown; + if (flag) + { + host.AI.IgnoreSkillCD = true; + } + else + { + host.AI.IgnoreSkillCD = false; + } + bool flag2 = skillarg.mAIArgUseMP && !this.SelectMPOKSkill(host); + bool result; + if (flag2) + { + result = false; + } + else + { + bool flag3 = skillarg.mAIArgUseName && !this.SelectSkillByName(host, skillarg.mAIArgSkillName); + if (flag3) + { + result = false; + } + else + { + bool flag4 = skillarg.mAIArgUseHP && !this.SelectSkillByHP(host); + if (flag4) + { + result = false; + } + else + { + bool flag5 = skillarg.mAIArgUseCoolDown && !this.SelectSkillByCoolDown(host); + if (flag5) + { + result = false; + } + else + { + bool flag6 = skillarg.mAIArgUseAttackField && !this.SelectSkillByAttackField(host, target, skillarg.mAIArgDetectAllPlayInAttackField); + if (flag6) + { + result = false; + } + else + { + bool flag7 = skillarg.mAIArgUseCombo && !this.SelectSkillByCombo(host, skillarg.mAIArgSkillType, skillarg.mAIArgSkillName); + if (flag7) + { + result = false; + } + else + { + bool flag8 = host.AI.CanCastSkillCount == 0; + result = !flag8; + } + } + } + } + } + } + return result; + } + + public bool DoSelectInOrder(XEntity host) + { + bool flag = host.AI.CanCastSkillCount == 0; + bool result; + if (flag) + { + result = false; + } + else + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(0); + host.AI.ClearCanCastSkill(); + host.AI.AddCanCastSkill(canCastSkill); + result = true; + } + return result; + } + + public bool DoSelectRandom(XEntity host) + { + bool flag = host.AI.CanCastSkillCount == 0; + bool result; + if (flag) + { + result = false; + } + else + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(XSingleton.singleton.RandomInt(0, host.AI.CanCastSkillCount)); + host.AI.ClearCanCastSkill(); + host.AI.AddCanCastSkill(canCastSkill); + result = true; + } + return result; + } + + public bool DoCastSkill(XEntity host, XEntity target) + { + bool flag = host.AI.CanCastSkillCount == 0; + bool result; + if (flag) + { + host.AI.ComboSkill = ""; + result = false; + } + else + { + XSkillCore canCastSkill = host.AI.GetCanCastSkill(0); + bool ignoreSkillCD = host.AI.IgnoreSkillCD; + if (ignoreSkillCD) + { + host.SkillMgr.CoolDown(canCastSkill.ID); + } + host.AI.ComboSkill = canCastSkill.Soul.Name; + host.Net.ReportSkillAction(target, canCastSkill.ID, -1); + XSecurityAIInfo xsecurityAIInfo = XSecurityAIInfo.TryGetStatistics(host); + bool flag2 = xsecurityAIInfo != null; + if (flag2) + { + bool flag3 = !host.IsPlayer && !host.IsRole; + if (flag3) + { + xsecurityAIInfo.OnSkillAttack(); + } + } + result = true; + } + return result; + } + + public bool StopCastingSkill(XEntity host) + { + host.Skill.EndSkill(false, false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAISkill.cs.meta b/Client/Assets/Scripts/XMainClient/XAISkill.cs.meta new file mode 100644 index 00000000..4e304d12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAISkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d1f092c762f97f4dae5c571be1d009d +timeCreated: 1611403694 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAISkillHurtEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAISkillHurtEventArgs.cs new file mode 100644 index 00000000..b7aec80e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAISkillHurtEventArgs.cs @@ -0,0 +1,23 @@ +using System; + +namespace XMainClient +{ + internal class XAISkillHurtEventArgs : XEventArgs + { + public uint SkillId = 0u; + + public bool IsCaster = false; + + public XAISkillHurtEventArgs() + { + this._eDefine = XEventDefine.XEvent_AISkillHurt; + } + + public override void Recycle() + { + this.SkillId = 0u; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAISkillHurtEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAISkillHurtEventArgs.cs.meta new file mode 100644 index 00000000..d4497c0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAISkillHurtEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4f4f0a2162c2f84ab48b0a740f4bd9b +timeCreated: 1611404875 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIStartSkillEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAIStartSkillEventArgs.cs new file mode 100644 index 00000000..1c53ac29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIStartSkillEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XAIStartSkillEventArgs : XEventArgs + { + public uint SkillId = 0u; + + public bool IsCaster = false; + + public XAIStartSkillEventArgs() + { + this._eDefine = XEventDefine.XEvent_AIStartSkill; + } + + public override void Recycle() + { + this.SkillId = 0u; + this.IsCaster = false; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIStartSkillEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAIStartSkillEventArgs.cs.meta new file mode 100644 index 00000000..fc615f5d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIStartSkillEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8eb14fc58bf6d5541bf2279d4b0a0581 +timeCreated: 1611404130 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAIStopEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAIStopEventArgs.cs new file mode 100644 index 00000000..c518aa07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIStopEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XAIStopEventArgs : XEventArgs + { + public XAIStopEventArgs() + { + this._eDefine = XEventDefine.XEvent_AIStop; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAIStopEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAIStopEventArgs.cs.meta new file mode 100644 index 00000000..049ec429 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAIStopEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a5553a86a761f124b846b4a24cd5368d +timeCreated: 1611404285 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAITarget.cs b/Client/Assets/Scripts/XMainClient/XAITarget.cs new file mode 100644 index 00000000..b629bf37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAITarget.cs @@ -0,0 +1,524 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAITarget : XSingleton + { + private int SortEnemy(XEntity a, XEntity b) + { + bool flag = a == null || b == null; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = a.Attributes == null || b.Attributes == null; + if (flag2) + { + result = 0; + } + else + { + int value = 0; + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(a.Attributes.TypeID); + bool flag3 = byID != null; + if (flag3) + { + value = (int)byID.aihit; + } + int num = 0; + XEntityStatistics.RowData byID2 = XSingleton.singleton.EntityStatistics.GetByID(b.Attributes.TypeID); + bool flag4 = byID2 != null; + if (flag4) + { + num = (int)byID2.aihit; + } + result = num.CompareTo(value); + } + } + return result; + } + + public bool ResetTargets(XEntity entity) + { + List opponent = XSingleton.singleton.GetOpponent(entity); + entity.AI.ClearTargets(); + for (int i = 0; i < opponent.Count; i++) + { + bool flag = XEntity.ValideEntity(opponent[i]); + if (flag) + { + entity.AI.AddTarget(opponent[i]); + } + } + bool flag2 = entity.AI.TargetsCount == 0; + bool result; + if (flag2) + { + entity.AI.IsFighting = false; + result = false; + } + else + { + result = true; + } + return result; + } + + public bool FindTargetByDistance(XEntity entity, float dist, bool filterImmortal, float angle, float delta, int targettype) + { + bool flag = !this.ResetTargets(entity); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = entity.AI.TargetsCount == 0; + if (flag2) + { + entity.AI.IsFighting = false; + result = false; + } + else + { + List list = ListPool.Get(); + entity.AI.SortTarget(new Comparison(this.SortEnemy)); + for (int i = 0; i < entity.AI.TargetsCount; i++) + { + XEntity target = entity.AI.GetTarget(i); + bool flag3 = XEntity.ValideEntity(target); + if (flag3) + { + Vector3 position = target.EngineObject.Position; + Vector3 position2 = entity.EngineObject.Position; + float magnitude = (position - position2).magnitude; + bool flag4 = magnitude < dist; + if (flag4) + { + bool flag5 = !filterImmortal || target.Buffs == null || !target.Buffs.IsBuffStateOn(XBuffType.XBuffType_Immortal); + if (flag5) + { + bool flag6 = angle < 180f && angle > 0f; + if (flag6) + { + Vector3 vector = target.EngineObject.Position - entity.EngineObject.Position; + float num = Vector3.Angle(vector, entity.EngineObject.Forward); + bool flag7 = num < angle; + if (flag7) + { + bool flag8 = targettype == 0 || targettype == 2; + if (flag8) + { + list.Add(target); + } + } + } + else + { + bool flag9 = targettype == 0 || targettype == 2; + if (flag9) + { + list.Add(target); + } + } + } + } + } + } + entity.AI.Copy2Target(list); + ListPool.Release(list); + bool flag10 = entity.AI.TargetsCount == 0; + if (flag10) + { + entity.AI.IsFighting = false; + result = false; + } + else + { + result = true; + } + } + } + return result; + } + + public bool FindTargetByHitLevel(XEntity entity, bool filterImmortal) + { + this.ResetTargets(entity); + bool flag = entity.AI.TargetsCount == 0; + bool result; + if (flag) + { + entity.AI.IsFighting = false; + result = false; + } + else + { + List list = ListPool.Get(); + entity.AI.SortTarget(new Comparison(this.SortEnemy)); + int num = -1; + int i = 0; + while (i < entity.AI.TargetsCount) + { + XEntity target = entity.AI.GetTarget(i); + bool flag2 = XEntity.ValideEntity(target); + if (flag2) + { + bool syncMode = XSingleton.singleton.SyncMode; + bool flag3; + if (syncMode) + { + flag3 = target.IsServerFighting; + } + else + { + flag3 = (target.IsFighting || !target.HasAI); + } + bool flag4 = !flag3; + if (!flag4) + { + bool flag5 = !filterImmortal || target.Buffs == null || !XSingleton.singleton.IsTargetEntityImmortal(target); + if (flag5) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(target.Attributes.TypeID); + bool flag6 = byID != null; + if (flag6) + { + num = (int)byID.aihit; + break; + } + } + } + } + IL_117: + i++; + continue; + goto IL_117; + } + int j = 0; + while (j < entity.AI.TargetsCount) + { + XEntity target2 = entity.AI.GetTarget(j); + bool flag7 = XEntity.ValideEntity(target2); + if (flag7) + { + bool syncMode2 = XSingleton.singleton.SyncMode; + bool flag8; + if (syncMode2) + { + flag8 = target2.IsServerFighting; + } + else + { + flag8 = (target2.IsFighting || !target2.HasAI); + } + bool flag9 = !flag8; + if (!flag9) + { + Vector3 position = target2.EngineObject.Position; + Vector3 position2 = entity.EngineObject.Position; + float magnitude = (position - position2).magnitude; + int num2 = -1; + XEntityStatistics.RowData byID2 = XSingleton.singleton.EntityStatistics.GetByID(target2.Attributes.TypeID); + bool flag10 = byID2 != null; + if (flag10) + { + num2 = (int)byID2.aihit; + } + bool flag11 = num2 == num && num2 >= 0; + if (flag11) + { + bool flag12 = !filterImmortal || target2.Buffs == null || !XSingleton.singleton.IsTargetEntityImmortal(target2); + if (flag12) + { + list.Add(target2); + } + } + } + } + IL_250: + j++; + continue; + goto IL_250; + } + bool flag13 = list.Count == 0 && filterImmortal; + if (flag13) + { + for (int k = 0; k < entity.AI.TargetsCount; k++) + { + XEntity target3 = entity.AI.GetTarget(k); + XEntityStatistics.RowData byID3 = XSingleton.singleton.EntityStatistics.GetByID(target3.Attributes.TypeID); + bool flag14 = byID3.aihit >= 0 && XSingleton.singleton.IsTargetEntityImmortal(target3) && (target3.IsFighting || target3.IsServerFighting); + if (flag14) + { + list.Add(target3); + } + } + } + entity.AI.Copy2Target(list); + ListPool.Release(list); + bool flag15 = entity.AI.TargetsCount == 0; + if (flag15) + { + entity.AI.IsFighting = false; + result = false; + } + else + { + result = true; + } + } + return result; + } + + public bool FindTargetByHartedList(XEntity entity, bool filterImmortal) + { + List hateEntity = entity.AI.EnmityList.GetHateEntity(filterImmortal); + bool flag = hateEntity.Count == 0; + bool result; + if (flag) + { + entity.AI.IsFighting = false; + result = false; + } + else + { + entity.AI.Copy2Target(hateEntity); + result = true; + } + return result; + } + + public bool FindTargetByNonImmortal(XEntity entity) + { + return true; + } + + public bool DoSelectNearest(XEntity entity) + { + bool flag = entity.AI.TargetsCount == 0; + bool result; + if (flag) + { + entity.AI.SetTarget(null); + entity.AI.IsFighting = false; + result = false; + } + else + { + float num = float.MaxValue; + XEntity target = entity.AI.GetTarget(0); + for (int i = 0; i < entity.AI.TargetsCount; i++) + { + XEntity target2 = entity.AI.GetTarget(i); + float magnitude = (target2.EngineObject.Position - entity.EngineObject.Position).magnitude; + bool flag2 = magnitude < num; + if (flag2) + { + num = magnitude; + target = target2; + } + } + entity.AI.SetTarget(target); + bool flag3 = !entity.AI.IsFighting; + if (flag3) + { + XAIEnterFightEventArgs @event = XEventPool.GetEvent(); + @event.Firer = entity; + @event.Target = target; + XSingleton.singleton.FireEvent(@event); + } + entity.AI.IsFighting = true; + result = true; + } + return result; + } + + public bool DoSelectFarthest(XEntity entity) + { + bool flag = entity.AI.TargetsCount == 0; + bool result; + if (flag) + { + entity.AI.SetTarget(null); + entity.AI.IsFighting = false; + result = false; + } + else + { + float num = 0f; + XEntity target = entity.AI.GetTarget(0); + for (int i = 0; i < entity.AI.TargetsCount; i++) + { + XEntity target2 = entity.AI.GetTarget(i); + float magnitude = (target2.EngineObject.Position - entity.EngineObject.Position).magnitude; + bool flag2 = magnitude > num; + if (flag2) + { + num = magnitude; + target = target2; + } + } + entity.AI.SetTarget(target); + bool flag3 = !entity.AI.IsFighting; + if (flag3) + { + XAIEnterFightEventArgs @event = XEventPool.GetEvent(); + @event.Firer = entity; + @event.Target = target; + XSingleton.singleton.FireEvent(@event); + } + entity.AI.IsFighting = true; + result = true; + } + return result; + } + + public bool DoSelectRandom(XEntity entity) + { + bool flag = entity.AI.TargetsCount == 0; + bool result; + if (flag) + { + entity.AI.SetTarget(null); + entity.AI.IsFighting = false; + result = false; + } + else + { + int index = XSingleton.singleton.RandomInt(0, entity.AI.TargetsCount); + XEntity target = entity.AI.GetTarget(index); + entity.AI.SetTarget(target); + bool flag2 = !entity.AI.IsFighting; + if (flag2) + { + XAIEnterFightEventArgs @event = XEventPool.GetEvent(); + @event.Firer = entity; + @event.Target = target; + XSingleton.singleton.FireEvent(@event); + } + entity.AI.IsFighting = true; + result = true; + } + return result; + } + + public XGameObject SelectMoveTargetById(XEntity entity, int objectid) + { + List opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + float num = float.MaxValue; + XGameObject result = null; + for (int i = 0; i < opponent.Count; i++) + { + bool flag = (ulong)opponent[i].Attributes.TypeID == (ulong)((long)objectid); + if (flag) + { + XGameObject engineObject = opponent[i].EngineObject; + float magnitude = (entity.EngineObject.Position - engineObject.Position).magnitude; + bool flag2 = magnitude < num; + if (flag2) + { + num = magnitude; + result = engineObject; + } + } + } + return result; + } + + public Transform SelectDoodaTarget(XEntity entity, XDoodadType type) + { + List doodadsInScene = XSingleton.singleton.GetDoodadsInScene(type); + bool flag = doodadsInScene.Count == 0; + Transform result; + if (flag) + { + result = null; + } + else + { + float num = 999999f; + int num2 = -1; + for (int i = 0; i < doodadsInScene.Count; i++) + { + bool flag2 = doodadsInScene[i] == null; + if (!flag2) + { + float magnitude = (doodadsInScene[i].transform.position - entity.EngineObject.Position).magnitude; + bool flag3 = magnitude < num; + if (flag3) + { + num = magnitude; + num2 = i; + } + } + } + bool flag4 = num2 == -1; + if (flag4) + { + result = null; + } + else + { + result = doodadsInScene[num2].transform; + } + } + return result; + } + + public Transform SelectItemTarget(XEntity entity) + { + return XSingleton.singleton.SelectDoodaTarget(entity, XDoodadType.Item); + } + + public bool SelectTargetBySkillCircle(XEntity entity) + { + bool flag = !entity.IsPlayer; + bool result; + if (flag) + { + result = false; + } + else + { + XPlayer xplayer = entity as XPlayer; + bool flag2 = xplayer == null || xplayer.TargetLocated == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = xplayer.TargetLocated.Target != null; + if (flag3) + { + entity.AI.ClearTargets(); + entity.AI.AddTarget(xplayer.TargetLocated.Target); + entity.AI.SetTarget(xplayer.TargetLocated.Target); + result = true; + } + else + { + entity.AI.SetTarget(null); + result = false; + } + } + } + return result; + } + + public bool ResetHartedList(XEntity entity) + { + entity.AI.EnmityList.Reset(); + entity.AI.SetTarget(null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAITarget.cs.meta b/Client/Assets/Scripts/XMainClient/XAITarget.cs.meta new file mode 100644 index 00000000..59e90687 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAITarget.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97b838790179e6147a38bd19a24e72d5 +timeCreated: 1611404189 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAbyssPartyDocument.cs b/Client/Assets/Scripts/XMainClient/XAbyssPartyDocument.cs new file mode 100644 index 00000000..dfc168c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAbyssPartyDocument.cs @@ -0,0 +1,338 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAbyssPartyDocument : XDocComponent + { + public override uint ID + { + get + { + return XAbyssPartyDocument.uuID; + } + } + + public static XAbyssPartyDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XAbyssPartyDocument.uuID) as XAbyssPartyDocument; + } + } + + public int CurSelectedID + { + get + { + bool flag = this.m_CurID <= 0; + if (flag) + { + this.SetDefaultID(); + } + return this.m_CurID; + } + } + + public int CurSelectedType + { + get + { + bool flag = this.m_CurType <= 0; + if (flag) + { + this.SetDefaultType(); + } + return this.m_CurType; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("AbyssPartyDocument"); + + public AbyssPartyEntranceView View = null; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static AbyssPartyListTable _AbyssPartyListTable = new AbyssPartyListTable(); + + private static AbyssPartyTypeTable _AbyssPartyTypeTable = new AbyssPartyTypeTable(); + + private List m_AbyssIndex = new List(); + + private int m_CurID = -1; + + private int m_CurType = -1; + + private static List CurAbyssPartyList = new List(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.ResetAbyssIndex(); + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_ABYSS_PARTY; + if (flag) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_AbyssParty, EXStage.Hall); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = arg.PlayerInfo.Stages.absparty != null; + if (flag) + { + this.SetAbyssIndex(arg.PlayerInfo.Stages.absparty.aby); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshPage(); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XAbyssPartyDocument.AsyncLoader.AddTask("Table/AbyssPartyList", XAbyssPartyDocument._AbyssPartyListTable, false); + XAbyssPartyDocument.AsyncLoader.AddTask("Table/AbyssPartyType", XAbyssPartyDocument._AbyssPartyTypeTable, false); + XAbyssPartyDocument.AsyncLoader.Execute(callback); + } + + public static int GetAbyssPartyTypeCount() + { + return XAbyssPartyDocument._AbyssPartyTypeTable.Table.Length; + } + + public static AbyssPartyTypeTable.RowData GetAbyssPartyTypeLine(int line) + { + bool flag = line >= XAbyssPartyDocument._AbyssPartyTypeTable.Table.Length; + AbyssPartyTypeTable.RowData result; + if (flag) + { + XSingleton.singleton.AddErrorLog("GetAbyssPartyTypeLine No Find!\nline:" + line, null, null, null, null, null); + result = null; + } + else + { + result = XAbyssPartyDocument._AbyssPartyTypeTable.Table[line]; + } + return result; + } + + public AbyssPartyTypeTable.RowData GetAbyssPartyType() + { + return XAbyssPartyDocument.GetAbyssPartyType(this.CurSelectedType); + } + + public static AbyssPartyTypeTable.RowData GetAbyssPartyType(int TypeID) + { + AbyssPartyTypeTable.RowData byAbyssPartyId = XAbyssPartyDocument._AbyssPartyTypeTable.GetByAbyssPartyId(TypeID); + bool flag = byAbyssPartyId == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("GetAbyssPartyList No Find!\nTypeID:" + TypeID, null, null, null, null, null); + } + return byAbyssPartyId; + } + + public static List RefreshAbyssPartyListList(int TypeID) + { + XAbyssPartyDocument.CurAbyssPartyList.Clear(); + for (int i = 0; i < XAbyssPartyDocument._AbyssPartyListTable.Table.Length; i++) + { + bool flag = XAbyssPartyDocument._AbyssPartyListTable.Table[i].AbyssPartyId == TypeID; + if (flag) + { + XAbyssPartyDocument.CurAbyssPartyList.Add(XAbyssPartyDocument._AbyssPartyListTable.Table[i]); + } + } + return XAbyssPartyDocument.CurAbyssPartyList; + } + + public AbyssPartyListTable.RowData GetAbyssPartyList() + { + return XAbyssPartyDocument.GetAbyssPartyList(this.CurSelectedID); + } + + public static AbyssPartyListTable.RowData GetAbyssPartyList(int key) + { + AbyssPartyListTable.RowData byID = XAbyssPartyDocument._AbyssPartyListTable.GetByID(key); + bool flag = byID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("GetAbyssPartyList No Find!\nkey:" + key, null, null, null, null, null); + } + return byID; + } + + public void SetDefaultType() + { + this.m_CurType = 1; + for (int i = 0; i < XAbyssPartyDocument._AbyssPartyTypeTable.Table.Length; i++) + { + bool flag = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)XAbyssPartyDocument._AbyssPartyTypeTable.Table[i].OpenLevel); + if (flag) + { + break; + } + this.m_CurType = XAbyssPartyDocument._AbyssPartyTypeTable.Table[i].AbyssPartyId; + } + } + + public bool SetSelectedType(int type) + { + bool flag = type < 0; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_CurType = type; + this.SetDefaultID(); + result = true; + } + return result; + } + + public void SetDefaultID() + { + this.m_CurID = 0; + int abyssIndex = (int)this.GetAbyssIndex(this.CurSelectedType); + for (int i = 0; i < XAbyssPartyDocument._AbyssPartyListTable.Table.Length; i++) + { + bool flag = XAbyssPartyDocument._AbyssPartyListTable.Table[i].AbyssPartyId == this.CurSelectedType && XAbyssPartyDocument._AbyssPartyListTable.Table[i].Index <= abyssIndex; + if (flag) + { + this.m_CurID = XAbyssPartyDocument._AbyssPartyListTable.Table[i].ID; + } + } + bool flag2 = this.m_CurID == 0; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "m_CurID No Find!\nCurSelectedType:", + this.CurSelectedType, + "m_CurIndex:", + abyssIndex + }), null, null, null, null, null); + } + } + + public bool SetSelectedID(int id) + { + bool flag = id < 0; + bool result; + if (flag) + { + result = false; + } + else + { + this.m_CurID = id; + result = true; + } + return result; + } + + public void SetAbyssIndex(List data) + { + for (int i = 0; i < data.Count; i++) + { + this.SetAbyssIndex(data[i].type, data[i].diff); + } + } + + private void ResetAbyssIndex() + { + this.m_AbyssIndex.Clear(); + for (int i = 0; i < XAbyssPartyDocument._AbyssPartyTypeTable.Table.Length + 1; i++) + { + this.m_AbyssIndex.Add(0u); + } + } + + public void SetAbyssIndex(uint type, uint index) + { + bool flag = (ulong)type >= (ulong)((long)this.m_AbyssIndex.Count); + if (!flag) + { + this.m_AbyssIndex[(int)type] = index; + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "[AbyssParty]type:", + type, + " index:", + index + }), null, null, null, null, null); + } + } + + public uint GetAbyssIndex(int type) + { + bool flag = type >= this.m_AbyssIndex.Count; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = this.m_AbyssIndex[type]; + } + return result; + } + + public void AbyssPartyEnter(int apID) + { + RpcC2G_AbsEnterScene rpcC2G_AbsEnterScene = new RpcC2G_AbsEnterScene(); + rpcC2G_AbsEnterScene.oArg.id = (uint)apID; + XSingleton.singleton.Send(rpcC2G_AbsEnterScene); + XSingleton.singleton.AddGreenLog("AbyssParty Enter ID:" + apID, null, null, null, null, null); + } + + public int CanUseCostMAXNum() + { + bool flag = false; + int num = 0; + for (int i = 0; i < XAbyssPartyDocument._AbyssPartyTypeTable.Table.Length; i++) + { + bool flag2 = XAbyssPartyDocument._AbyssPartyTypeTable.Table[i].AbyssPartyId == this.CurSelectedType; + if (flag2) + { + flag = true; + } + bool flag3 = flag; + if (flag3) + { + int[] titanItemID = XAbyssPartyDocument._AbyssPartyTypeTable.Table[i].TitanItemID; + bool flag4 = titanItemID != null && titanItemID.Length != 0; + if (flag4) + { + num += (int)XSingleton.singleton.Doc.XBagDoc.GetItemCount(titanItemID[0]); + } + } + } + XSingleton.singleton.AddGreenLog("CanUseCostMAXNum:" + num, null, null, null, null, null); + return num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAbyssPartyDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XAbyssPartyDocument.cs.meta new file mode 100644 index 00000000..d172d175 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAbyssPartyDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc1f02cd266b2af468466fb7c2011615 +timeCreated: 1611404934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAchievementDocument.cs b/Client/Assets/Scripts/XMainClient/XAchievementDocument.cs new file mode 100644 index 00000000..897b59f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAchievementDocument.cs @@ -0,0 +1,573 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAchievementDocument : XDocComponent + { + public override uint ID + { + get + { + return XAchievementDocument.uuID; + } + } + + public XAchievementView AchievementView + { + get + { + return this._AchievementView; + } + set + { + this._AchievementView = value; + } + } + + public XLifeTargetView LifeTargetView + { + get + { + return this._LifeTargetView; + } + set + { + this._LifeTargetView = value; + } + } + + public XMainInterface HallMainView + { + get + { + return this._HallMainView; + } + set + { + this._HallMainView = value; + } + } + + public XServerActivityView ServerActivityView + { + get + { + return this._serverActivityView; + } + set + { + this._serverActivityView = value; + } + } + + public XRewardLevelView RewardLevelView + { + get + { + return this._rewardLevelView; + } + set + { + this._rewardLevelView = value; + } + } + + public WeekShareRewardHandler ShareHandler + { + get + { + return this._shareHandler; + } + set + { + this._shareHandler = value; + } + } + + public uint FirstPassSceneID + { + get + { + return this._firstPassSceneID; + } + set + { + this._firstPassSceneID = value; + } + } + + public bool HasWeekReward + { + get + { + return this._hasWeekReward; + } + private set + { + this._hasWeekReward = value; + } + } + + public bool Monday { get; private set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("AchievementDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static AchivementTable _reader = new AchivementTable(); + + public Dictionary achivement = new Dictionary(); + + private XAchievementView _AchievementView = null; + + private XLifeTargetView _LifeTargetView = null; + + private XMainInterface _HallMainView = null; + + private XServerActivityView _serverActivityView = null; + + private XRewardLevelView _rewardLevelView = null; + + private WeekShareRewardHandler _shareHandler = null; + + private uint _firstPassSceneID = 0u; + + public static int ServerActivityCatergoryBound = 500; + + public Dictionary> _ServerActivitys = new Dictionary>(); + + public Dictionary _CatergoryStrings = new Dictionary(); + + private int _levelRewardPacksCatergory = 0; + + private bool _hasWeekReward = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XAchievementDocument.AsyncLoader.AddTask("Table/AchivementList", XAchievementDocument._reader, false); + XAchievementDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._levelRewardPacksCatergory = -1; + for (int i = 0; i < XAchievementDocument._reader.Table.Length; i++) + { + AchivementTable.RowData rowData = XAchievementDocument._reader.Table[i]; + bool flag = rowData.AchievementCategory < XAchievementDocument.ServerActivityCatergoryBound; + if (!flag) + { + bool flag2 = !this._ServerActivitys.ContainsKey(rowData.AchievementCategory); + if (flag2) + { + this._ServerActivitys.Add(rowData.AchievementCategory, new List()); + this._ServerActivitys[rowData.AchievementCategory].Add(rowData.AchievementID); + } + else + { + this._ServerActivitys[rowData.AchievementCategory].Add(rowData.AchievementID); + } + bool flag3 = !this._CatergoryStrings.ContainsKey(rowData.AchievementCategory); + if (flag3) + { + this._CatergoryStrings.Add(rowData.AchievementCategory, rowData.AchievementName); + } + bool flag4 = this._levelRewardPacksCatergory == -1; + if (flag4) + { + bool flag5 = rowData.AchievementName == "djlb_"; + if (flag5) + { + this._levelRewardPacksCatergory = rowData.AchievementCategory; + } + } + } + } + } + + public void InitAchivement(List list) + { + this.achivement.Clear(); + bool flag = list == null; + if (!flag) + { + for (int i = 0; i < list.Count; i++) + { + this.achivement.Add(list[i].achieveID, list[i].rewardStatus); + } + } + } + + public void SetAchivementState(uint aid, uint state) + { + this.achivement[aid] = state; + bool flag = this._AchievementView != null && this._AchievementView.active; + if (flag) + { + this._AchievementView.RefreshAchivementList(); + } + bool flag2 = this._LifeTargetView != null && this._LifeTargetView.IsVisible(); + if (flag2) + { + this._LifeTargetView.RefreshList(); + } + bool flag3 = this._serverActivityView != null && this._serverActivityView.IsVisible(); + if (flag3) + { + this._serverActivityView.RefreshList(); + } + bool flag4 = this.RewardLevelView != null && this.RewardLevelView.IsVisible(); + if (flag4) + { + this.RewardLevelView.RefreshList(); + } + } + + public AchivementState GetAchivementState(uint aid) + { + uint num; + bool flag = this.achivement.TryGetValue(aid, out num); + AchivementState result; + if (flag) + { + result = (AchivementState)num; + } + else + { + result = AchivementState.Not_Achive; + } + return result; + } + + public AchivementTable.RowData GetAchivementData(uint aid) + { + return XAchievementDocument._reader.GetByAchievementID((int)aid); + } + + public int GetAchivementFatigue(uint aid) + { + int num = 0; + AchivementTable.RowData byAchievementID = XAchievementDocument._reader.GetByAchievementID((int)aid); + bool flag = byAchievementID != null; + if (flag) + { + for (int i = 0; i < (int)byAchievementID.AchievementItem.count; i++) + { + bool flag2 = byAchievementID.AchievementItem[i, 0] == XFastEnumIntEqualityComparer.ToInt(ItemEnum.FATIGUE); + if (flag2) + { + num += byAchievementID.AchievementItem[i, 1]; + } + } + } + return num; + } + + public bool HasCompleteAchivement(XSysDefine sys = XSysDefine.XSys_Reward_Achivement) + { + bool flag = sys == XSysDefine.XSys_LevelReward; + bool result; + if (flag) + { + result = this.HasCompleteAchivement(this._levelRewardPacksCatergory); + } + else + { + foreach (KeyValuePair keyValuePair in this.achivement) + { + AchivementTable.RowData byAchievementID = XAchievementDocument._reader.GetByAchievementID((int)keyValuePair.Key); + bool flag2 = byAchievementID != null; + if (flag2) + { + bool flag3 = byAchievementID.AchievementCategory != this._levelRewardPacksCatergory; + if (flag3) + { + bool flag4 = sys == XSysDefine.XSys_Reward_Achivement; + if (flag4) + { + bool flag5 = byAchievementID.AchievementCategory < XAchievementDocument.ServerActivityCatergoryBound && keyValuePair.Value == 3u; + if (flag5) + { + return true; + } + } + bool flag6 = sys == XSysDefine.XSys_ServerActivity; + if (flag6) + { + bool flag7 = byAchievementID.AchievementCategory >= XAchievementDocument.ServerActivityCatergoryBound && keyValuePair.Value == 3u; + if (flag7) + { + return true; + } + } + } + } + } + result = false; + } + return result; + } + + public bool HasCompleteAchivement(int catergory) + { + foreach (KeyValuePair keyValuePair in this.achivement) + { + AchivementTable.RowData byAchievementID = XAchievementDocument._reader.GetByAchievementID((int)keyValuePair.Key); + bool flag = byAchievementID != null && byAchievementID.AchievementCategory == catergory && keyValuePair.Value == 3u; + if (flag) + { + return true; + } + } + return false; + } + + public void FetchAchivement(uint achivementID) + { + RpcC2G_FetchAchivementReward rpcC2G_FetchAchivementReward = new RpcC2G_FetchAchivementReward(); + rpcC2G_FetchAchivementReward.oArg.AchivementID = achivementID; + XSingleton.singleton.Send(rpcC2G_FetchAchivementReward); + } + + public void UpdateShowingAchivementList(ref List Achived, ref List NotAchived) + { + uint level = XSingleton.singleton.XPlayerData.Level; + Dictionary dictionary = new Dictionary(); + foreach (AchivementTable.RowData rowData in XAchievementDocument._reader.Table) + { + bool flag = (ulong)level < (ulong)((long)rowData.AchievementLevel); + if (!flag) + { + bool flag2 = rowData.AchievementCategory >= XAchievementDocument.ServerActivityCatergoryBound; + if (!flag2) + { + AchivementState achivementState = this.GetAchivementState((uint)rowData.AchievementID); + bool flag3 = achivementState != AchivementState.Fetched; + if (flag3) + { + uint num = 0u; + bool flag4 = dictionary.TryGetValue((uint)rowData.AchievementCategory, out num); + if (flag4) + { + AchivementState achivementState2 = this.GetAchivementState(dictionary[(uint)rowData.AchievementCategory]); + bool flag5 = achivementState == AchivementState.Achive_NoFetch; + if (flag5) + { + bool flag6 = achivementState2 != AchivementState.Achive_NoFetch || num >= (uint)rowData.AchievementID; + if (flag6) + { + dictionary[(uint)rowData.AchievementCategory] = (uint)rowData.AchievementID; + } + } + } + else + { + dictionary.Add((uint)rowData.AchievementCategory, (uint)rowData.AchievementID); + } + } + } + } + } + foreach (KeyValuePair keyValuePair in dictionary) + { + AchivementState achivementState3 = this.GetAchivementState(keyValuePair.Value); + bool flag7 = achivementState3 == AchivementState.Achive_NoFetch; + if (flag7) + { + Achived.Add(keyValuePair.Value); + } + bool flag8 = achivementState3 == AchivementState.Not_Achive; + if (flag8) + { + NotAchived.Add(keyValuePair.Value); + } + } + } + + public void UpdateShowingAchivementListWithoutMergeType(ref List Achived, ref List NotAchived) + { + uint level = XSingleton.singleton.XPlayerData.Level; + Dictionary dictionary = new Dictionary(); + foreach (AchivementTable.RowData rowData in XAchievementDocument._reader.Table) + { + bool flag = (ulong)level < (ulong)((long)rowData.AchievementLevel); + if (!flag) + { + bool flag2 = rowData.AchievementCategory >= XAchievementDocument.ServerActivityCatergoryBound; + if (!flag2) + { + AchivementState achivementState = this.GetAchivementState((uint)rowData.AchievementID); + bool flag3 = achivementState != AchivementState.Fetched; + if (flag3) + { + bool flag4 = achivementState == AchivementState.Achive_NoFetch; + if (flag4) + { + Achived.Add((uint)rowData.AchievementID); + } + bool flag5 = achivementState == AchivementState.Not_Achive; + if (flag5) + { + NotAchived.Add((uint)rowData.AchievementID); + } + } + } + } + } + } + + public AchivementTable.RowData GetFirstLifeTarget(out AchivementState ltState) + { + AchivementTable.RowData rowData = null; + uint level = XSingleton.singleton.XPlayerData.Level; + foreach (AchivementTable.RowData rowData2 in XAchievementDocument._reader.Table) + { + bool flag = (ulong)level < (ulong)((long)rowData2.AchievementLevel); + if (!flag) + { + bool flag2 = rowData2.AchievementCategory != 1; + if (!flag2) + { + AchivementState achivementState = this.GetAchivementState((uint)rowData2.AchievementID); + bool flag3 = achivementState != AchivementState.Fetched; + if (flag3) + { + bool flag4 = achivementState == AchivementState.Achive_NoFetch; + if (flag4) + { + rowData = rowData2; + ltState = achivementState; + return rowData; + } + bool flag5 = achivementState == AchivementState.Not_Achive && rowData == null; + if (flag5) + { + ltState = achivementState; + rowData = rowData2; + } + } + } + } + } + ltState = AchivementState.Not_Achive; + return rowData; + } + + public List GetCatergoryActivity(int catergoryID) + { + List list = new List(); + bool flag = this._ServerActivitys.TryGetValue(catergoryID, out list); + List result; + if (flag) + { + result = list; + } + else + { + result = list; + } + return result; + } + + public void GetAllCatergory(ref List CatergoryIDs, ref List CatergoryStrings) + { + foreach (KeyValuePair> keyValuePair in this._ServerActivitys) + { + bool flag = keyValuePair.Key != this._levelRewardPacksCatergory && keyValuePair.Key != 505; + if (flag) + { + CatergoryIDs.Add(keyValuePair.Key); + CatergoryStrings.Add(this._CatergoryStrings[keyValuePair.Key]); + } + } + } + + public void GetLevelRewardCatergory(ref List CatergoryIDs, ref List CatergoryStrings) + { + foreach (KeyValuePair> keyValuePair in this._ServerActivitys) + { + bool flag = keyValuePair.Key == this._levelRewardPacksCatergory; + if (flag) + { + CatergoryIDs.Add(keyValuePair.Key); + CatergoryStrings.Add(this._CatergoryStrings[keyValuePair.Key]); + break; + } + } + } + + public void SetOpenServerActivityTime(uint second) + { + bool flag = this._serverActivityView != null && this._serverActivityView.IsVisible(); + if (flag) + { + this._serverActivityView.SetRemainTime(second); + } + bool flag2 = this.RewardLevelView != null && this.RewardLevelView.IsVisible(); + if (flag2) + { + this.RewardLevelView.SetRemainTime(second); + } + } + + public void UpdateShareRewardsInfo(PlatformShareAwardPara data) + { + bool flag = data != null; + if (flag) + { + this.FirstPassSceneID = data.share_scene_id; + this.HasWeekReward = data.weekly_award; + this.Monday = data.disappear_redpoint; + bool flag2 = this._shareHandler != null && this._shareHandler.IsVisible(); + if (flag2) + { + this._shareHandler.RefreshUI(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_WeekShareReward, true); + } + } + + public void SendWeekShareSuccess(uint sceneID) + { + XSingleton.singleton.AddLog("SendWeekShareSuccess", null, null, null, null, null, XDebugColor.XDebug_None); + PtcC2G_NotifyPlatShareResult ptcC2G_NotifyPlatShareResult = new PtcC2G_NotifyPlatShareResult(); + ptcC2G_NotifyPlatShareResult.Data.scene_id = sceneID; + XSingleton.singleton.Send(ptcC2G_NotifyPlatShareResult); + } + + public void DisappearMonday() + { + this.Monday = true; + PtcC2G_NotifyPlatShareResult ptcC2G_NotifyPlatShareResult = new PtcC2G_NotifyPlatShareResult(); + ptcC2G_NotifyPlatShareResult.Data.scene_id = 1u; + ptcC2G_NotifyPlatShareResult.Data.redpoint_disappear = true; + XSingleton.singleton.Send(ptcC2G_NotifyPlatShareResult); + } + + public void SendToGetWeekShareReward() + { + RpcC2G_GetPlatShareAward rpc = new RpcC2G_GetPlatShareAward(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetPlatShareAward() + { + this._hasWeekReward = false; + bool flag = this._shareHandler != null && this._shareHandler.IsVisible(); + if (flag) + { + this._shareHandler.RefreshBtnState(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_WeekShareReward, true); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAchievementDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XAchievementDocument.cs.meta new file mode 100644 index 00000000..07cd068a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAchievementDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8e17ee7fcd099a488e6caccaee4b506 +timeCreated: 1611404641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAchievementView.cs b/Client/Assets/Scripts/XMainClient/XAchievementView.cs new file mode 100644 index 00000000..8de8d3ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAchievementView.cs @@ -0,0 +1,141 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAchievementView : DlgHandlerBase + { + private XAchievementDocument _doc = null; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected override void Init() + { + base.Init(); + this._doc = (XSingleton.singleton.Doc.GetXComponent(XAchievementDocument.uuID) as XAchievementDocument); + this._doc.AchievementView = this; + Transform transform = base.PanelObject.transform.Find("Panel/RecordTpl"); + this.m_RewardPool.SetupPool(transform.parent.gameObject, transform.gameObject, 50u, false); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshAchivementList(); + } + + public override void OnUnload() + { + this._doc.AchievementView = null; + base.OnUnload(); + } + + public void RefreshAchivementList() + { + this.m_RewardPool.ReturnAll(false); + List list = new List(); + List list2 = new List(); + this._doc.UpdateShowingAchivementList(ref list, ref list2); + Vector3 localPosition = this.m_RewardPool._tpl.transform.localPosition; + foreach (uint aid in list) + { + AchivementTable.RowData achivementData = this._doc.GetAchivementData(aid); + bool flag = achivementData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("achivement not found", null, null, null, null, null); + return; + } + bool flag2 = achivementData.AchievementCategory == 1; + if (!flag2) + { + GameObject gameObject = this.m_RewardPool.FetchGameObject(false); + bool flag3 = gameObject != null; + if (flag3) + { + gameObject.transform.localPosition = localPosition; + localPosition.y -= (float)this.m_RewardPool.TplHeight; + this._SetAchiveRecord(gameObject, achivementData, AchivementState.Achive_NoFetch); + } + } + } + foreach (uint aid2 in list2) + { + AchivementTable.RowData achivementData2 = this._doc.GetAchivementData(aid2); + bool flag4 = achivementData2 == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("achivement not found", null, null, null, null, null); + break; + } + bool flag5 = achivementData2.AchievementCategory == 1; + if (!flag5) + { + GameObject gameObject2 = this.m_RewardPool.FetchGameObject(false); + bool flag6 = gameObject2 != null; + if (flag6) + { + gameObject2.transform.localPosition = localPosition; + localPosition.y -= (float)this.m_RewardPool.TplHeight; + this._SetAchiveRecord(gameObject2, achivementData2, AchivementState.Not_Achive); + } + } + } + } + + protected void _SetAchiveRecord(GameObject go, AchivementTable.RowData achivementData, AchivementState state) + { + IXUISprite ixuisprite = go.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Desc").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = go.transform.Find("Fetch").GetComponent("XUIButton") as IXUIButton; + Transform transform = go.transform.Find("CantFetch"); + GameObject gameObject = go.transform.Find("Item1").gameObject; + GameObject gameObject2 = go.transform.Find("Item2").gameObject; + gameObject.SetActive(false); + gameObject2.SetActive(false); + bool flag = state == AchivementState.Achive_NoFetch; + if (flag) + { + ixuibutton.gameObject.SetActive(true); + ixuibutton.ID = (ulong)((long)achivementData.AchievementID); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFetchClicked)); + transform.gameObject.SetActive(false); + } + else + { + ixuibutton.gameObject.SetActive(false); + transform.gameObject.SetActive(true); + } + ixuilabel.SetText(achivementData.AchievementName); + ixuilabel2.SetText(achivementData.AchievementDescription); + ixuisprite2.SetSprite(achivementData.AchievementIcon); + bool flag2 = achivementData.AchievementItem.Count > 0; + if (flag2) + { + gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, achivementData.AchievementItem[0, 0], achivementData.AchievementItem[0, 1], false); + } + bool flag3 = achivementData.AchievementItem.Count > 1; + if (flag3) + { + gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, achivementData.AchievementItem[1, 0], achivementData.AchievementItem[1, 1], false); + } + } + + protected bool OnFetchClicked(IXUIButton button) + { + this._doc.FetchAchivement((uint)button.ID); + return true; + } + + public void RefreshLoginList() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAchievementView.cs.meta b/Client/Assets/Scripts/XMainClient/XAchievementView.cs.meta new file mode 100644 index 00000000..02e8f7db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAchievementView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba31908845162864da0d1818dac0038c +timeCreated: 1611404434 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XActionArgs.cs b/Client/Assets/Scripts/XMainClient/XActionArgs.cs new file mode 100644 index 00000000..6d0f5294 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActionArgs.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal abstract class XActionArgs : XEventArgs + { + public override void Recycle() + { + base.Recycle(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XActionArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XActionArgs.cs.meta new file mode 100644 index 00000000..b506f69b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActionArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f7c10d414a17c24b9264a00cd46d90f +timeCreated: 1611404134 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XActionGeneratorComponent.cs b/Client/Assets/Scripts/XMainClient/XActionGeneratorComponent.cs new file mode 100644 index 00000000..6c3b1fde --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActionGeneratorComponent.cs @@ -0,0 +1,66 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XActionGeneratorComponent : XComponent + { + public override uint ID + { + get + { + return XActionGeneratorComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Action_Generator"); + + private bool _feed = false; + + public override void PostUpdate(float fDeltaT) + { + this.UpdateGesture(); + bool hasNpc = XSingleton.singleton.HasNpc; + if (hasNpc) + { + bool flag = !XSingleton.singleton.GameCamera.IsCloseUp; + if (flag) + { + XNpc xnpc = XSingleton.singleton.LastNpc as XNpc; + bool flag2 = xnpc != null; + if (flag2) + { + XNavigationEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._entity; + @event.Dest = xnpc.EngineObject.Position; + XSingleton.singleton.FireEvent(@event); + } + } + } + } + + private void UpdateGesture() + { + bool feeding = XSingleton.singleton.Feeding; + if (feeding) + { + bool isCloseUp = XSingleton.singleton.GameCamera.IsCloseUp; + if (!isCloseUp) + { + this._entity.Net.ReportMoveAction(XSingleton.singleton.Direction, 0.0); + this._feed = true; + } + } + else + { + bool feed = this._feed; + if (feed) + { + this._entity.Net.ReportMoveAction(Vector3.zero, 0.0); + this._feed = false; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XActionGeneratorComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XActionGeneratorComponent.cs.meta new file mode 100644 index 00000000..805281c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActionGeneratorComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fef38348205aae645a7530af735ae6cc +timeCreated: 1611404944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XActionReceiver.cs b/Client/Assets/Scripts/XMainClient/XActionReceiver.cs new file mode 100644 index 00000000..3a8ad8b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActionReceiver.cs @@ -0,0 +1,239 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XActionReceiver : XSingleton + { + public void OnActionReceived(XEntity entity, StepSyncData data) + { + XStateDefine xstateDefine = (XStateDefine)(data.Common >> 12 & 15); + Vector3 pos; + pos= new Vector3((float)(data.PosXZ >> 16) / 100f, 0f, (float)(data.PosXZ & 65535) / 100f); + Vector3 face = XSingleton.singleton.FloatToAngle((float)(data.Common & 4095)); + uint num = (uint)(data.Common >> 16); + bool flag = xstateDefine != XStateDefine.XState_Skill && entity.Skill != null && entity.Skill.IsCasting(); + if (flag) + { + entity.Skill.EndSkill(false, true); + } + switch (xstateDefine) + { + case XStateDefine.XState_Idle: + entity.Net.OnIdle(); + break; + case XStateDefine.XState_Move: + { + bool flag2 = entity.Machine.Current != XStateDefine.XState_Move; + if (flag2) + { + entity.Machine.Stop(); + bool flag3 = entity.Net.SyncSequence != num; + if (flag3) + { + XMoveEventArgs @event = XEventPool.GetEvent(); + @event.Speed = (float)data.Velocity / 10f; + @event.Destination = entity.MoveObj.Position; + @event.Inertia = false; + @event.Firer = entity; + XSingleton.singleton.FireEvent(@event); + } + } + entity.Net.CorrectMoveSpeed((float)data.Velocity / 10f); + break; + } + case XStateDefine.XState_Freeze: + { + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + XSingleton.singleton.Empty(); + } + bool flag4 = entity.Net.SyncSequence != num; + if (flag4) + { + XEntity entity2 = XSingleton.singleton.GetEntity(data.OpposerID); + bool flag5 = entity2 != null; + if (flag5) + { + bool freezedFromHit = data.FreezedFromHit; + if (freezedFromHit) + { + XSkillCore skill = entity2.SkillMgr.GetSkill((uint)data.Skillid); + bool flag6 = skill != null && skill.Soul.Hit != null && skill.Soul.Hit.Count > data.HitIdx; + if (flag6) + { + XHitData hitData = skill.Soul.Hit[data.HitIdx]; + XFreezeEventArgs event2 = XEventPool.GetEvent(); + event2.HitData = hitData; + event2.Dir = Vector3.forward; + event2.Firer = entity; + XSingleton.singleton.FireEvent(event2); + } + } + else + { + XFreezeEventArgs event3 = XEventPool.GetEvent(); + event3.Present = data.PresentInFreezed; + event3.Dir = Vector3.forward; + event3.Firer = entity; + XSingleton.singleton.FireEvent(event3); + } + } + } + break; + } + case XStateDefine.XState_BeHit: + { + bool isPlayer2 = entity.IsPlayer; + if (isPlayer2) + { + XSingleton.singleton.Empty(); + } + bool flag7 = entity.Net.SyncSequence != num; + if (flag7) + { + XEntity entity3 = XSingleton.singleton.GetEntity(data.OpposerID); + bool flag8 = entity3 != null; + if (flag8) + { + XSkillCore skill2 = entity3.SkillMgr.GetSkill((uint)data.Skillid); + bool flag9 = skill2 != null && skill2.Soul.Hit != null && skill2.Soul.Hit.Count > data.HitIdx; + if (flag9) + { + entity.Machine.Stop(); + XHitData hitData2 = skill2.Soul.Hit[data.HitIdx]; + entity.Machine.Stop(); + XBeHitEventArgs event4 = XEventPool.GetEvent(); + event4.DepracatedPass = true; + event4.HitDirection = Vector3.forward; + event4.HitData = hitData2; + event4.Firer = entity; + event4.HitFrom = entity3; + event4.Paralyze = (float)data.HitParalyzeFactor / 100f; + event4.ForceToFlyHit = data.HitForceToFly; + XSingleton.singleton.FireEvent(event4); + } + } + } + break; + } + case XStateDefine.XState_Death: + { + bool isPlayer3 = entity.IsPlayer; + if (isPlayer3) + { + XSingleton.singleton.Empty(); + } + break; + } + case XStateDefine.XState_Skill: + { + int num2 = data.SkillCommon & 255; + bool flag10 = num2 == 255; + if (flag10) + { + num2 = -1; + } + float num3 = (float)(data.SkillCommon >> 8 & 255) / 100f; + float num4 = (float)(data.SkillCommon >> 16 & 255) / 10f; + float num5 = (float)(data.SkillCommon >> 24 & 255) / 100f; + bool flag11 = entity.Net.SyncSequence != num; + if (flag11) + { + XEntity target = data.OpposerIDSpecified ? XSingleton.singleton.GetEntity(data.OpposerID) : null; + bool flag12 = false; + XJAComboSkill xjacomboSkill = entity.Skill.CurrentSkill as XJAComboSkill; + bool flag13 = xjacomboSkill != null; + if (flag13) + { + uint num6 = (xjacomboSkill.MainCore.Soul.Ja == null || xjacomboSkill.MainCore.Soul.Ja.Count == 0) ? 0u : XSingleton.singleton.XHash(xjacomboSkill.MainCore.Soul.Ja[0].Name); + bool flag14 = num6 == (uint)data.Skillid; + if (flag14) + { + xjacomboSkill.ReFire((uint)data.Skillid, target, num2, num4, num); + flag12 = true; + } + } + bool flag15 = !flag12; + if (flag15) + { + entity.Skill.EndSkill(false, true); + XAttackEventArgs event5 = XEventPool.GetEvent(); + event5.Target = target; + event5.Identify = (uint)data.Skillid; + event5.Firer = entity; + event5.Slot = num2; + event5.TimeScale = num4; + event5.SyncSequence = num; + XSingleton.singleton.FireEvent(event5); + } + bool flag16 = num3 == 0f; + if (flag16) + { + bool flag17 = data.Skillid == (int)entity.SkillMgr.GetBrokenIdentity(); + if (flag17) + { + XArmorBrokenArgs event6 = XEventPool.GetEvent(); + event6.Firer = entity; + XSingleton.singleton.FireEvent(event6); + XArmorBrokenArgs event7 = XEventPool.GetEvent(); + event7.Firer = XSingleton.singleton.Doc; + event7.Self = entity; + XSingleton.singleton.FireEvent(event7); + } + else + { + bool flag18 = data.Skillid == (int)entity.SkillMgr.GetRecoveryIdentity(); + if (flag18) + { + XArmorRecoverArgs event8 = XEventPool.GetEvent(); + event8.Firer = entity; + XSingleton.singleton.FireEvent(event8); + XArmorRecoverArgs event9 = XEventPool.GetEvent(); + event9.Firer = XSingleton.singleton.Doc; + event9.Self = entity; + XSingleton.singleton.FireEvent(event9); + } + } + } + } + bool flag19 = num5 > 0f && entity.Skill.IsCasting(); + if (flag19) + { + entity.Skill.TagTrigger(); + entity.Skill.CurrentSkill.MultipleDirectionFactorByServer = num5; + } + break; + } + } + bool flag20 = xstateDefine > XStateDefine.XState_Idle; + if (flag20) + { + entity.Net.KillIdle(); + } + entity.IsPassive = (data.PassiveSpecified && data.Passive); + entity.Net.CorrectNet(pos, face, num, entity.Skill != null && entity.Skill.Enabled && entity.Machine != null && entity.Machine.Enabled); + } + + public void OnMoveReceived(XEntity entity, StepMoveData data) + { + Vector3 destination; + destination= new Vector3((float)(data.PosXZ >> 16) / 100f, 0f, (float)(data.PosXZ & 65535) / 100f); + XMoveEventArgs @event = XEventPool.GetEvent(); + @event.Speed = entity.Attributes.RunSpeed; + @event.Destination = destination; + @event.Inertia = data.Stoppage; + @event.Stoppage = data.Stoppage; + bool stoppage = data.Stoppage; + if (stoppage) + { + @event.StopTowards = (float)data.Face / 10f; + } + @event.Firer = entity; + XSingleton.singleton.FireEvent(@event); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XActionReceiver.cs.meta b/Client/Assets/Scripts/XMainClient/XActionReceiver.cs.meta new file mode 100644 index 00000000..1e8b5625 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActionReceiver.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d51930967ecd51a4d90f476d77b92c20 +timeCreated: 1611404625 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XActionSender.cs b/Client/Assets/Scripts/XMainClient/XActionSender.cs new file mode 100644 index 00000000..a49ac763 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActionSender.cs @@ -0,0 +1,174 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XActionSender : XSingleton + { + private PtcC2G_MoveOperationReq _dir_movePtc = new PtcC2G_MoveOperationReq(); + + private PtcC2G_MoveOperationReq _des_movePtc = new PtcC2G_MoveOperationReq(); + + private PtcC2G_CastSkill skillPtc = new PtcC2G_CastSkill(); + + private long _dir_tick = 0L; + + private long _des_tick = 0L; + + private long _stub = 0L; + + public void SendMoveAction(XEntity entity, float face, float speed, bool inertia) + { + bool flag = !entity.IsPlayer || XSingleton.singleton.Freezed; + if (!flag) + { + bool flag2 = face < 0f; + if (flag2) + { + face += 360f; + } + uint num = (uint)Mathf.Floor(face + 0.5f); + uint num2 = (uint)Mathf.Floor(speed * 10f + 0.5f); + num |= num2 << 16; + if (inertia) + { + num |= 2147483648u; + } + this._dir_movePtc.Data.PosXZ = (int)Mathf.Floor(entity.MoveObj.Position.z * 100f + 0.5f); + this._dir_movePtc.Data.PosXZ |= (int)Mathf.Floor(entity.MoveObj.Position.x * 100f + 0.5f) << 16; + this._dir_movePtc.Data.Common = (int)num; + long num3 = this._stub + 1L; + this._stub = num3; + this._dir_tick = num3; + } + } + + public void SendMoveAction(XEntity entity, Vector3 des, float speed, bool inertia, bool force2server = false) + { + bool flag = !entity.IsPlayer || (!force2server && XSingleton.singleton.Freezed); + if (!flag) + { + Vector3 dir = XSingleton.singleton.Horizontal(des - entity.MoveObj.Position); + dir.y = 0f; + float num = (dir.sqrMagnitude > 0f) ? XSingleton.singleton.AngleToFloat(dir) : XSingleton.singleton.AngleToFloat(entity.MoveObj.Forward); + bool flag2 = num < 0f; + if (flag2) + { + num += 360f; + } + uint num2 = (uint)Mathf.Floor(num + 0.5f); + uint num3 = (uint)Mathf.Floor(speed * 10f + 0.5f); + num2 |= num3 << 16; + if (inertia) + { + num2 |= 2147483648u; + } + this._des_movePtc.Data.PosXZ = (int)Mathf.Floor(entity.MoveObj.Position.z * 100f + 0.5f); + this._des_movePtc.Data.PosXZ |= (int)Mathf.Floor(entity.MoveObj.Position.x * 100f + 0.5f) << 16; + this._des_movePtc.Data.DesXZ = (int)Mathf.Floor(des.z * 100f + 0.5f); + this._des_movePtc.Data.DesXZ |= (int)Mathf.Floor(des.x * 100f + 0.5f) << 16; + this._des_movePtc.Data.Common = (int)num2; + long num4 = this._stub + 1L; + this._stub = num4; + this._des_tick = num4; + } + } + + public void Empty() + { + this._des_tick = 0L; + this._dir_tick = 0L; + } + + public void Flush(bool immediately = false) + { + bool flag = immediately || this.SyncPass(); + if (flag) + { + bool flag2 = this._des_tick != 0L && this._dir_tick != 0L; + if (flag2) + { + bool flag3 = this._des_tick < this._dir_tick; + if (flag3) + { + XSingleton.singleton.Send(this._des_movePtc); + XSingleton.singleton.Send(this._dir_movePtc); + } + else + { + XSingleton.singleton.Send(this._dir_movePtc); + XSingleton.singleton.Send(this._des_movePtc); + } + } + else + { + bool flag4 = this._des_tick != 0L; + if (flag4) + { + XSingleton.singleton.Send(this._des_movePtc); + } + bool flag5 = this._dir_tick != 0L; + if (flag5) + { + XSingleton.singleton.Send(this._dir_movePtc); + } + } + this.Empty(); + } + } + + public void SendSkillAction(XEntity entity, XEntity target, uint id, int slot) + { + bool flag = !entity.IsPlayer; + if (!flag) + { + XSkillCore skill = entity.SkillMgr.GetSkill(id); + this.ResetSkillPtc(); + this.skillPtc.Data.SkillID = id; + this.skillPtc.Data.Target = (XEntity.ValideEntity(target) ? target.ID : 0UL); + bool flag2 = slot != -1; + if (flag2) + { + this.skillPtc.Data.Slot = slot; + } + bool feeding = XSingleton.singleton.Feeding; + if (feeding) + { + this.skillPtc.Data.ManualFace = (int)(XSingleton.singleton.AngleToFloat(XSingleton.singleton.Direction) * 10f); + } + XSingleton.singleton.Send(this.skillPtc); + } + } + + public void SendSkillAction(XEntity entity, XEntity target, int slot) + { + bool flag = !entity.IsPlayer; + if (!flag) + { + this.ResetSkillPtc(); + this.skillPtc.Data.Target = (XEntity.ValideEntity(target) ? target.ID : 0UL); + this.skillPtc.Data.Slot = slot; + bool feeding = XSingleton.singleton.Feeding; + if (feeding) + { + this.skillPtc.Data.ManualFace = (int)(XSingleton.singleton.AngleToFloat(XSingleton.singleton.Direction) * 10f); + } + XSingleton.singleton.Send(this.skillPtc); + } + } + + private bool SyncPass() + { + return XSingleton.singleton.IsViewGridScene ? (Time.frameCount % (Application.targetFrameRate / 10) == 0) : ((Time.frameCount & 1) == 0); + } + + private void ResetSkillPtc() + { + this.skillPtc.Data.SkillIDSpecified = false; + this.skillPtc.Data.SlotSpecified = false; + this.skillPtc.Data.TargetSpecified = false; + this.skillPtc.Data.ManualFaceSpecified = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XActionSender.cs.meta b/Client/Assets/Scripts/XMainClient/XActionSender.cs.meta new file mode 100644 index 00000000..8b3d2542 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActionSender.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d993e4b7251c194db004e6eb4b9a410 +timeCreated: 1611403357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XActivityDocument.cs b/Client/Assets/Scripts/XMainClient/XActivityDocument.cs new file mode 100644 index 00000000..bb726743 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActivityDocument.cs @@ -0,0 +1,855 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XActivityDocument : XDocComponent + { + public override uint ID + { + get + { + return XActivityDocument.uuID; + } + } + + public static XActivityDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XActivityDocument.uuID) as XActivityDocument; + } + } + + public ActivityListTable _ActivityListTable + { + get + { + return XActivityDocument._activityListTable; + } + } + + public List DragonResetTime + { + get + { + bool flag = this.m_DragonResetTime == null; + if (flag) + { + this.m_DragonResetTime = XSingleton.singleton.GetIntList("DragonResetWeekDay"); + } + return this.m_DragonResetTime; + } + } + + public List MulActivityList + { + get + { + return this.m_mulActivityList; + } + } + + public MultiActivityList MulActivityTable + { + get + { + return XActivityDocument.m_mulActivityTable; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ActivityDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ActivityListTable _activityListTable = new ActivityListTable(); + + private static DoubleActivity m_doubleActivityTab = new DoubleActivity(); + + public ActivityHandler View; + + public int ServerOpenDay = 10000; + + public int ServerOpenWeek = 10000; + + public uint SeverOpenSecond = 10000u; + + public uint ServerTimeSince1970 = 0u; + + private int m_DayCountReqNum; + + private List m_DragonResetTime = null; + + private List m_mulActivityList = new List(); + + private static MultiActivityList m_mulActivityTable = new MultiActivityList(); + + public string MainInterfaceTips = ""; + + public static void Execute(OnLoadedCallback callback = null) + { + XActivityDocument.AsyncLoader.AddTask("Table/ActivityList", XActivityDocument._activityListTable, false); + XActivityDocument.AsyncLoader.AddTask("Table/MultiActivityList", XActivityDocument.m_mulActivityTable, false); + XActivityDocument.AsyncLoader.AddTask("Table/DoubleActivity", XActivityDocument.m_doubleActivityTab, false); + XActivityDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.SendQueryGetMulActInfo(); + this.ReqDayCount(); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_GuildLevelChanged, new XComponent.XEventHandler(this.OnGuildLevelChanged)); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnInGuildStateChanged)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.ReqDayCount(); + this.SendQueryGetMulActInfo(); + } + } + + public void ReqDayCount() + { + this.m_DayCountReqNum = 5; + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument2.GetSingleTowerActivityTop(); + XBossBushDocument specificDocument3 = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + specificDocument3.SendQuery(BossRushReqStatus.BOSSRUSH_REQ_LEFTCOUNT); + XDragonCrusadeDocument specificDocument4 = XDocuments.GetSpecificDocument(XDragonCrusadeDocument.uuID); + specificDocument4.DEProgressReq(); + XSuperRiskDocument doc = XSuperRiskDocument.Doc; + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_SuperRisk); + if (flag) + { + RiskMapFile.RowData mapIdByIndex = doc.GetMapIdByIndex(0); + bool flag2 = mapIdByIndex != null && (ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)mapIdByIndex.NeedLevel); + if (flag2) + { + doc.ReqMapDynamicInfo(doc.CurrentMapID, false, true); + this.m_DayCountReqNum++; + } + } + XGuildDailyTaskDocument specificDocument5 = XDocuments.GetSpecificDocument(XGuildDailyTaskDocument.uuID); + specificDocument5.SendGetDailyTaskInfo(); + XGuildWeeklyBountyDocument.Doc.SendGetWeeklyTaskInfo(); + XDragonNestDocument specificDocument6 = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + specificDocument6.SendReqDragonNestInfo(); + } + + public void SendQueryGetMulActInfo() + { + RpcC2G_MulActivityReq rpc = new RpcC2G_MulActivityReq(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetDayCount() + { + bool flag = this.m_DayCountReqNum == 0; + if (!flag) + { + this.m_DayCountReqNum--; + bool flag2 = this.m_DayCountReqNum == 0; + if (flag2) + { + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + this.View.RefreshDailyActivity(); + } + XSingleton.singleton.ActivityOpen = true; + } + } + } + + public void SetMulActivityInfo(List list) + { + this.m_mulActivityList.Clear(); + for (int i = 0; i < list.Count; i++) + { + MulActivityInfo mulActivityInfo = this.TurnSeverDataToSlientData(list[i]); + bool flag = mulActivityInfo == null; + if (!flag) + { + this.m_mulActivityList.Add(mulActivityInfo); + } + } + this.m_mulActivityList.Sort(new Comparison(this.Compare)); + this.CheckEntranceState(); + this.SetTagTips(); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshMulActivity(); + } + } + + public void ChangeActivityState(List list) + { + for (int i = 0; i < list.Count; i++) + { + for (int j = 0; j < this.m_mulActivityList.Count; j++) + { + bool flag = this.m_mulActivityList[j].ID == list[i].id; + if (flag) + { + this.m_mulActivityList[j] = this.TurnSeverDataToSlientData(list[i]); + } + } + } + this.m_mulActivityList.Sort(new Comparison(this.Compare)); + this.CheckEntranceState(); + this.SetTagTips(); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshMulActivity(); + } + } + + public MulActivityInfo TurnSeverDataToSlientData(MulActivitInfo serverData) + { + MulActivityInfo mulActivityInfo = new MulActivityInfo(); + MultiActivityList.RowData byID = XActivityDocument.m_mulActivityTable.GetByID(serverData.id); + bool flag = byID == null || XSingleton.singleton.XPlayerData == null; + MulActivityInfo result; + if (flag) + { + result = null; + } + else + { + bool flag2 = !XSingleton.singleton.IsSystemOpen(byID.SystemID); + if (flag2) + { + result = null; + } + else + { + mulActivityInfo.Row = byID; + mulActivityInfo.isOpenAllDay = (byID.OpenDayTime[0, 0] == 0u && byID.OpenDayTime[0, 1] == 0u); + mulActivityInfo.ID = serverData.id; + mulActivityInfo.time = serverData.lefttime; + mulActivityInfo.timeState = serverData.openstate; + mulActivityInfo.endTime = (int)serverData.endmin; + mulActivityInfo.startTime = (int)serverData.beginmin; + bool flag3 = byID.SystemID == XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_WeekEndNest); + if (flag3) + { + mulActivityInfo.dayjoincount = (int)WeekEndNestDocument.Doc.JoindTimes; + } + else + { + mulActivityInfo.dayjoincount = serverData.dayjoincount; + } + mulActivityInfo.serverOpenWeekLeft = (int)(byID.OpenServerWeek - (uint)this.ServerOpenWeek); + mulActivityInfo.roleLevel = (uint)XSingleton.singleton.GetSysOpenLevel(byID.SystemID); + mulActivityInfo.serverOpenDayLeft = XSingleton.singleton.GetSysOpenServerDay(byID.SystemID) - this.ServerOpenDay; + bool flag4 = byID.NeedOpenAgain && serverData.real_open_state == ActOpenState.ActOpenState_NotOpen; + if (flag4) + { + mulActivityInfo.openState = false; + } + else + { + mulActivityInfo.openState = true; + } + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag5 = XSingleton.singleton.XPlayerData.Level < mulActivityInfo.roleLevel || (!specificDocument.bInGuild && byID.GuildLevel != 0u) || (specificDocument.bInGuild && specificDocument.Level < mulActivityInfo.Row.GuildLevel) || mulActivityInfo.serverOpenDayLeft > 0 || mulActivityInfo.serverOpenWeekLeft > 0; + if (flag5) + { + mulActivityInfo.state = MulActivityState.Lock; + } + else + { + bool flag6 = (byID.DayCountMax != -1 && serverData.dayjoincount >= byID.DayCountMax) || serverData.openstate == MulActivityTimeState.MULACTIVITY_END || serverData.openstate == MulActivityTimeState.MULACTIVITY_UNOPEN_TODAY; + if (flag6) + { + XVoiceQADocument specificDocument2 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + bool flag7 = serverData.openstate == MulActivityTimeState.MULACTIVITY_RUNNING && byID.DayCountMax != -1 && serverData.dayjoincount >= byID.DayCountMax && (mulActivityInfo.ID == 4 || mulActivityInfo.ID == 6) && specificDocument2.IsVoiceQAIng; + if (flag7) + { + mulActivityInfo.state = MulActivityState.Open; + mulActivityInfo.dayjoincount = byID.DayCountMax - 1; + } + else + { + mulActivityInfo.state = MulActivityState.Grey; + bool flag8 = serverData.openstate == MulActivityTimeState.MULACTIVITY_UNOPEN_TODAY; + if (flag8) + { + mulActivityInfo.sortWeight = 9; + } + else + { + bool flag9 = serverData.openstate == MulActivityTimeState.MULACTIVITY_END; + if (flag9) + { + mulActivityInfo.sortWeight = 8; + } + else + { + mulActivityInfo.sortWeight = 7; + } + } + } + } + else + { + bool flag10 = serverData.openstate == MulActivityTimeState.MULACTIVITY_RUNNING; + if (flag10) + { + mulActivityInfo.state = MulActivityState.Open; + mulActivityInfo.sortWeight = (mulActivityInfo.isOpenAllDay ? 2 : 1); + } + else + { + bool flag11 = serverData.openstate == MulActivityTimeState.MULACTIVITY_BEfOREOPEN; + if (flag11) + { + mulActivityInfo.state = MulActivityState.WillOpen; + } + else + { + XSingleton.singleton.AddErrorLog("Undefine MulActivity State. MulActivity Name = ", mulActivityInfo.Row.Name, null, null, null, null); + } + } + } + } + result = mulActivityInfo; + } + } + return result; + } + + public void SetScrollView(int sysId) + { + bool flag = DlgBase.singleton.ActivityHandler != null && DlgBase.singleton.ActivityHandler.IsVisible(); + if (flag) + { + DlgBase.singleton.ActivityHandler.SetScrollView(sysId); + } + } + + public void GetLeftDay(int sysID, ref int leftDay) + { + leftDay = 0; + if (sysID == 526) + { + DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0); + dateTime = dateTime.AddSeconds(this.ServerTimeSince1970); + dateTime = dateTime.ToLocalTime(); + int num = XFastEnumIntEqualityComparer.ToInt(dateTime.DayOfWeek); + for (int i = 0; i < this.DragonResetTime.Count; i++) + { + bool flag = num < this.DragonResetTime[i]; + if (flag) + { + leftDay = this.DragonResetTime[i] - num; + bool flag2 = dateTime.Hour < 5; + if (flag2) + { + leftDay++; + } + break; + } + bool flag3 = num == this.DragonResetTime[i]; + if (flag3) + { + bool flag4 = dateTime.Hour < 5; + if (flag4) + { + leftDay = 1; + break; + } + } + } + } + } + + public void GetCount(int sysID, ref int leftCount, ref int totalCount, ref int canBuyCount) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + XArenaDocument specificDocument2 = XDocuments.GetSpecificDocument(XArenaDocument.uuID); + totalCount = 0; + leftCount = 0; + canBuyCount = 0; + if (sysID <= 530) + { + if (sysID <= 111) + { + switch (sysID) + { + case 48: + { + XBossBushDocument specificDocument3 = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + leftCount = specificDocument3.leftChanllageCnt; + totalCount = XSingleton.singleton.GetInt("BossRushDayCount"); + return; + } + case 49: + leftCount = XSuperRiskDocument.Doc.LeftDiceTime; + totalCount = XSingleton.singleton.GetInt("RiskDiceMaxNum"); + return; + case 50: + { + XDragonCrusadeDocument specificDocument4 = XDocuments.GetSpecificDocument(XDragonCrusadeDocument.uuID); + leftCount = specificDocument4.leftChanllageCnt; + totalCount = XSingleton.singleton.GetInt("DragonCrusadeMaxNum"); + return; + } + default: + if (sysID == 111) + { + leftCount = specificDocument.GetDayCount(TeamLevelType.TeamLevelAbyss, null); + totalCount = specificDocument.GetDayMaxCount(TeamLevelType.TeamLevelAbyss, null); + canBuyCount = specificDocument.GetBuyLimit(TeamLevelType.TeamLevelAbyss) - specificDocument.GetBuyCount(TeamLevelType.TeamLevelAbyss); + canBuyCount = ((canBuyCount > 0) ? canBuyCount : 0); + return; + } + break; + } + } + else + { + if (sysID == 520) + { + leftCount = specificDocument.GetDayCount(TeamLevelType.TeamLevelNest, null); + totalCount = specificDocument.GetDayMaxCount(TeamLevelType.TeamLevelNest, null); + canBuyCount = specificDocument.GetBuyLimit(TeamLevelType.TeamLevelNest) - specificDocument.GetBuyCount(TeamLevelType.TeamLevelNest); + canBuyCount = ((canBuyCount > 0) ? canBuyCount : 0); + return; + } + switch (sysID) + { + case 527: + case 530: + leftCount = specificDocument.SingleTowerData.leftcount; + totalCount = XSingleton.singleton.GetInt("TowerTeamDayCount"); + return; + case 529: + leftCount = specificDocument.GetDayCount(TeamLevelType.TeamLevelGoddessTrial, null); + totalCount = specificDocument.GetDayMaxCount(TeamLevelType.TeamLevelGoddessTrial, null); + return; + } + } + } + else if (sysID <= 886) + { + if (sysID == 540) + { + leftCount = specificDocument.GetDayCount(TeamLevelType.TeamLevelEndlessAbyss, null); + totalCount = specificDocument.GetDayMaxCount(TeamLevelType.TeamLevelEndlessAbyss, null); + return; + } + if (sysID == 886) + { + XGuildDailyTaskDocument specificDocument5 = XDocuments.GetSpecificDocument(XGuildDailyTaskDocument.uuID); + totalCount = specificDocument5.GetTaskItemCount(); + leftCount = totalCount - specificDocument5.GetRewardedTaskCount(); + return; + } + } + else + { + if (sysID == 890) + { + XGuildInheritDocument specificDocument6 = XDocuments.GetSpecificDocument(XGuildInheritDocument.uuID); + leftCount = (int)(specificDocument6.TeacherCount + specificDocument6.StudentCount); + totalCount = XSingleton.singleton.GetInt("GuildInheritTeaLimit") + XSingleton.singleton.GetInt("GuildInheritStuLimit"); + return; + } + if (sysID == 904) + { + totalCount = XGuildWeeklyBountyDocument.Doc.CurGuildWeeklyTaskList.Count; + leftCount = totalCount - XGuildWeeklyBountyDocument.Doc.GetRewardedTaskCount(); + return; + } + } + totalCount = 0; + leftCount = 0; + canBuyCount = 0; + } + + protected bool OnGuildLevelChanged(XEventArgs e) + { + this.CheckEntranceState(); + return true; + } + + protected bool OnInGuildStateChanged(XEventArgs e) + { + this.CheckEntranceState(); + return true; + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + this.CheckEntranceState(); + return true; + } + + public void CheckEntranceState() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + int num = -1; + for (int i = 0; i < this.m_mulActivityList.Count; i++) + { + MulActivityInfo mulActivityInfo = this.m_mulActivityList[i]; + MultiActivityList.RowData byID = XActivityDocument.m_mulActivityTable.GetByID(mulActivityInfo.ID); + bool flag = XSingleton.singleton.XPlayerData.Level < mulActivityInfo.roleLevel || (!specificDocument.bInGuild && byID.GuildLevel != 0u) || (specificDocument.bInGuild && specificDocument.Level < mulActivityInfo.Row.GuildLevel); + if (!flag) + { + bool flag2 = byID.DayCountMax != -1 && mulActivityInfo.dayjoincount >= byID.DayCountMax; + if (!flag2) + { + bool flag3 = mulActivityInfo.timeState == MulActivityTimeState.MULACTIVITY_BEfOREOPEN; + if (flag3) + { + bool flag4 = num == -1; + if (flag4) + { + num = i; + } + else + { + bool flag5 = mulActivityInfo.startTime < this.m_mulActivityList[num].startTime; + if (flag5) + { + num = i; + } + } + } + } + } + } + bool flag6 = num == -1; + if (flag6) + { + this.MainInterfaceTips = ""; + } + else + { + this.MainInterfaceTips = string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MULACT_MAININTERFACE_TIPS")), XSingleton.singleton.TimeFormatString(this.m_mulActivityList[num].startTime * 60, 3, 3, 3, false, true), this.m_mulActivityList[num].Row.Name); + } + } + + public MultiActivityList.RowData GetMultiActivityTableInfo(XSysDefine sys) + { + for (int i = 0; i < XActivityDocument.m_mulActivityTable.Table.Length; i++) + { + bool flag = XActivityDocument.m_mulActivityTable.Table[i].SystemID == (int)sys; + if (flag) + { + return XActivityDocument.m_mulActivityTable.Table[i]; + } + } + return null; + } + + private int Compare(MulActivityInfo x, MulActivityInfo y) + { + bool flag = x.ID == y.ID; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = x.state != y.state; + if (flag2) + { + result = y.state - x.state; + } + else + { + bool flag3 = x.state == MulActivityState.Grey; + if (flag3) + { + result = x.sortWeight - y.sortWeight; + } + else + { + bool flag4 = x.state == MulActivityState.Open; + if (flag4) + { + bool flag5 = x.sortWeight != y.sortWeight; + if (flag5) + { + result = x.sortWeight - y.sortWeight; + } + else + { + result = (int)(x.time - y.time); + } + } + else + { + bool flag6 = x.state == MulActivityState.WillOpen; + if (flag6) + { + result = x.startTime - y.startTime; + } + else + { + result = 0; + } + } + } + } + } + return result; + } + + private void SetTagTips() + { + bool flag = false; + for (int i = 0; i < this.m_mulActivityList.Count; i++) + { + MulActivityInfo mulActivityInfo = this.m_mulActivityList[i]; + bool flag2 = mulActivityInfo == null; + if (!flag2) + { + bool flag3 = mulActivityInfo.state == MulActivityState.Open; + if (flag3) + { + mulActivityInfo.tagType = MulActivityTagType.Opening; + } + else + { + bool flag4 = mulActivityInfo.state == MulActivityState.WillOpen && !flag; + if (flag4) + { + mulActivityInfo.tagType = MulActivityTagType.WillOpen; + flag = true; + } + else + { + mulActivityInfo.tagType = MulActivityTagType.None; + } + } + } + } + } + + public bool MainCityNeedEffect() + { + bool flag = XActivityDocument.m_doubleActivityTab == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < XActivityDocument.m_doubleActivityTab.Table.Length; i++) + { + bool flag2 = !XSingleton.singleton.IsSystemOpen((int)XActivityDocument.m_doubleActivityTab.Table[i].SystemId); + if (!flag2) + { + bool flag3 = this.ParseData(XActivityDocument.m_doubleActivityTab.Table[i]); + if (flag3) + { + return true; + } + } + } + result = false; + } + return result; + } + + public bool IsInnerDropTime(uint sysId) + { + bool flag = XActivityDocument.m_doubleActivityTab == null; + bool result; + if (flag) + { + result = false; + } + else + { + DoubleActivity.RowData bySystemId = XActivityDocument.m_doubleActivityTab.GetBySystemId(sysId); + result = this.ParseData(bySystemId); + } + return result; + } + + private bool ParseData(DoubleActivity.RowData data) + { + bool flag = data == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = data.WeekOpenDays != null; + if (flag2) + { + result = this.ParseWeekDays(data.WeekOpenDays); + } + else + { + bool flag3 = data.TimeSpan != null; + result = (flag3 && this.ParseTimeSpan(data.TimeSpan)); + } + } + return result; + } + + private bool ParseWeekDays(uint[] weekOpenDays) + { + DateTime dateTime = new DateTime(1970, 1, 1, 0, 0, 0); + dateTime = dateTime.AddSeconds(this.ServerTimeSince1970); + dateTime = dateTime.ToLocalTime(); + for (int i = 0; i < weekOpenDays.Length; i++) + { + uint num = (weekOpenDays[i] != 7u) ? weekOpenDays[i] : 0u; + bool flag = num < 0u || num > 6u; + if (!flag) + { + bool flag2 = (ulong)num == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(dateTime.DayOfWeek)); + if (flag2) + { + bool flag3 = dateTime.Hour >= 5; + if (flag3) + { + return true; + } + } + num = ((num + 1u > 6u) ? 0u : (num + 1u)); + bool flag4 = (ulong)num == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(dateTime.DayOfWeek)); + if (flag4) + { + bool flag5 = dateTime.Hour < 5; + if (flag5) + { + return true; + } + } + } + } + return false; + } + + private bool ParseTimeSpan(uint[] timeSpan) + { + bool flag = timeSpan.Length < 5; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = timeSpan[1] > 12u || timeSpan[1] < 1u; + if (flag2) + { + result = false; + } + else + { + bool flag3 = timeSpan[2] > 31u || timeSpan[2] < 1u; + if (flag3) + { + result = false; + } + else + { + bool flag4 = timeSpan[3] > 24u; + if (flag4) + { + result = false; + } + else + { + DateTime d = new DateTime((int)timeSpan[0], (int)timeSpan[1], (int)timeSpan[2], (int)timeSpan[3], 0, 0); + DateTime d2 = new DateTime(1970, 1, 1, 0, 0, 0); + uint num = (uint)(d - d2).TotalSeconds; + uint num2 = num + timeSpan[4] * 3600u; + bool flag5 = this.ServerTimeSince1970 >= num && this.ServerTimeSince1970 <= num2; + result = flag5; + } + } + } + } + return result; + } + + public void OnSystemChanged(List openIds, List closeIds) + { + bool flag = this.View == null || !this.View.IsVisible(); + if (!flag) + { + bool flag2 = false; + bool flag3 = XActivityDocument._activityListTable != null; + if (flag3) + { + for (int i = 0; i < XActivityDocument._activityListTable.Table.Length; i++) + { + uint item = XActivityDocument._activityListTable.Table[i].SysID; + bool flag4 = openIds.Contains(item) || closeIds.Contains(item); + if (flag4) + { + flag2 = true; + break; + } + } + } + bool flag5 = false; + bool flag6 = XActivityDocument.m_mulActivityTable != null; + if (flag6) + { + for (int j = 0; j < XActivityDocument.m_mulActivityTable.Table.Length; j++) + { + uint item = (uint)XActivityDocument.m_mulActivityTable.Table[j].SystemID; + bool flag7 = openIds.Contains(item) || closeIds.Contains(item); + if (flag7) + { + flag5 = true; + break; + } + } + } + bool flag8 = flag2; + if (flag8) + { + this.View.RefreshDailyActivity(); + } + bool flag9 = flag5; + if (flag9) + { + this.SendQueryGetMulActInfo(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XActivityDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XActivityDocument.cs.meta new file mode 100644 index 00000000..f8df005b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActivityDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8b554ba1edf59b418956b504ce57209 +timeCreated: 1611404406 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XActivityInviteDocument.cs b/Client/Assets/Scripts/XMainClient/XActivityInviteDocument.cs new file mode 100644 index 00000000..21166163 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActivityInviteDocument.cs @@ -0,0 +1,188 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XActivityInviteDocument : XDocComponent + { + public override uint ID + { + get + { + return XActivityInviteDocument.uuID; + } + } + + public static XActivityInviteDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XActivityInviteDocument.uuID) as XActivityInviteDocument; + } + } + + public XActivityInviteDocument.OpType CurOpType { get; private set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ActivityInviteDocument"); + + public int ShowType = -1; + + public Dictionary> MemberInfos = new Dictionary>(); + + public enum OpType + { + Send, + Invite + } + + public static void Execute(OnLoadedCallback callback = null) + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.MemberInfos.Add(ActivityInviteTarget.Friend, new List()); + this.MemberInfos.Add(ActivityInviteTarget.Guild, new List()); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_GuildMemberList, new XComponent.XEventHandler(this.OnGuildMemberChanged)); + base.RegisterEvent(XEventDefine.XEvent_FriendInfoChange, new XComponent.XEventHandler(this.OnFriendMemberChanged)); + base.RegisterEvent(XEventDefine.XEvent_FriendList, new XComponent.XEventHandler(this.OnFriendMemberChanged)); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public bool OnGuildMemberChanged(XEventArgs args) + { + XGuildMemberDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMemberDocument.uuID); + List memberList = specificDocument.MemberList; + bool flag = this.MemberInfos.ContainsKey(ActivityInviteTarget.Guild); + if (flag) + { + this.MemberInfos[ActivityInviteTarget.Guild].Clear(); + } + else + { + this.MemberInfos[ActivityInviteTarget.Guild] = new List(); + } + List list = this.MemberInfos[ActivityInviteTarget.Guild]; + for (int i = 0; i < memberList.Count; i++) + { + XGuildMember xguildMember = memberList[i]; + bool flag2 = !xguildMember.isOnline && this.ShouldBeOnline(); + if (!flag2) + { + list.Add(new InviteMemberInfo + { + uid = xguildMember.uid, + name = xguildMember.name, + level = xguildMember.level, + ppt = xguildMember.ppt, + vip = xguildMember.vip, + profession = (uint)xguildMember.profession + }); + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.Refresh(ActivityInviteTarget.Guild); + } + return true; + } + + public bool OnFriendMemberChanged(XEventArgs args) + { + List friendData = DlgBase.singleton.GetFriendData(); + bool flag = this.MemberInfos.ContainsKey(ActivityInviteTarget.Friend); + if (flag) + { + this.MemberInfos[ActivityInviteTarget.Friend].Clear(); + } + else + { + this.MemberInfos[ActivityInviteTarget.Friend] = new List(); + } + List list = this.MemberInfos[ActivityInviteTarget.Friend]; + for (int i = 0; i < friendData.Count; i++) + { + XFriendData xfriendData = friendData[i]; + bool flag2 = xfriendData.online == 0u && this.ShouldBeOnline(); + if (!flag2) + { + list.Add(new InviteMemberInfo + { + uid = xfriendData.roleid, + name = xfriendData.name, + level = xfriendData.level, + ppt = xfriendData.powerpoint, + vip = xfriendData.viplevel, + guildname = xfriendData.guildname, + profession = xfriendData.profession, + degree = xfriendData.degreeAll + }); + } + } + list.Sort(new Comparison(this.SortDegree)); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.Refresh(ActivityInviteTarget.Friend); + } + return true; + } + + private int SortDegree(InviteMemberInfo x, InviteMemberInfo y) + { + return (int)(y.degree - x.degree); + } + + private bool ShouldBeOnline() + { + XActivityInviteDocument.OpType curOpType = this.CurOpType; + return curOpType != XActivityInviteDocument.OpType.Send && (curOpType == XActivityInviteDocument.OpType.Invite || true); + } + + public void ShowActivityInviteView(int type, XActivityInviteDocument.OpType req) + { + this.ShowType = type; + bool flag = this.ShowType > 0; + if (flag) + { + this.CurOpType = req; + bool flag2 = !DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + + public void SendTargetReq() + { + } + + public void SendTargetReqSuccess() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XActivityInviteDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XActivityInviteDocument.cs.meta new file mode 100644 index 00000000..664a0c1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActivityInviteDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6357fe8806be7f747852c8ab9104f025 +timeCreated: 1611403844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XActivityTaskUpdatedArgs.cs b/Client/Assets/Scripts/XMainClient/XActivityTaskUpdatedArgs.cs new file mode 100644 index 00000000..26124443 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActivityTaskUpdatedArgs.cs @@ -0,0 +1,30 @@ +using System; + +namespace XMainClient +{ + internal class XActivityTaskUpdatedArgs : XEventArgs + { + public uint xActID; + + public uint xTaskID; + + public uint xProgress; + + public uint xState; + + public XActivityTaskUpdatedArgs() + { + this._eDefine = XEventDefine.XEvent_ActivityTaskUpdate; + } + + public override void Recycle() + { + base.Recycle(); + this.xActID = 0u; + this.xTaskID = 0u; + this.xProgress = 0u; + this.xState = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XActivityTaskUpdatedArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XActivityTaskUpdatedArgs.cs.meta new file mode 100644 index 00000000..6ce89e48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActivityTaskUpdatedArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5839b18611ca63c45a902bfd2014239d +timeCreated: 1611403754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XActor.cs b/Client/Assets/Scripts/XMainClient/XActor.cs new file mode 100644 index 00000000..98430320 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActor.cs @@ -0,0 +1,200 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XActor : XObject + { + public uint Fashion + { + get + { + return this._fashion_id; + } + set + { + this._fashion_id = value; + } + } + + public XDummy Dummy + { + get + { + return this._dummy; + } + } + + public override XGameObject EngineObject + { + get + { + return this._actor; + } + } + + private XGameObject _actor = null; + + private XAnimator _ator = null; + + private XDummy _dummy = null; + + private uint _fashion_id = 0u; + + private string _clip = null; + + public bool Replaced = false; + + public XActor(Vector3 pos, string clip) + { + XPlayer player = XSingleton.singleton.Player; + bool flag = XSingleton.singleton.BlockFashionProfs.Contains(player.Attributes.TypeID % 10u); + XOutlookData xoutlookData; + if (flag) + { + xoutlookData = new XOutlookData(); + xoutlookData.SetProfType(player.Attributes.TypeID); + xoutlookData.CalculateOutLookFashion(); + } + else + { + xoutlookData = player.Attributes.Outlook; + } + xoutlookData.uiAvatar = false; + this._dummy = XSingleton.singleton.CreateDummy(player.PresentID, player.BasicTypeID, xoutlookData, false, false, false); + this._dummy.EngineObject.Position = pos; + this._actor = this._dummy.EngineObject; + this._ator = this._dummy.Ator; + this.OverrideAnim(clip); + this.TurnOnSkinnedMesh(this._actor); + } + + public XActor(uint id, Vector3 pos, string clip) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(id); + XOutlookData xoutlookData = new XOutlookData(); + xoutlookData.SetDefaultFashion(byID.FashionTemplate); + xoutlookData.uiAvatar = false; + this._dummy = XSingleton.singleton.CreateDummy(byID.PresentID, (uint)byID.FashionTemplate, xoutlookData, false, false, false); + this._dummy.EngineObject.Position = pos; + this._actor = this._dummy.EngineObject; + this._ator = this._dummy.Ator; + this.OverrideAnim(clip); + this.TurnOnSkinnedMesh(this._actor); + } + + public XActor(string prefab, Vector3 pos, Quaternion face, string clip) + { + this._actor = XGameObject.CreateXGameObject(prefab, pos, face, false, true); + this._ator = this._actor.InitAnim(); + this.OverrideAnim(clip); + } + + public void OverrideAnim(string clip) + { + this._clip = clip; + bool flag = this._ator != null; + if (flag) + { + this._ator.OverrideAnim("Idle", clip, null, false); + } + } + + public void ReplaceActor(XDummy dummy) + { + bool flag = dummy == this._dummy; + if (!flag) + { + dummy.EngineObject.Position = this._dummy.EngineObject.Position; + dummy.EngineObject.Tag = this._dummy.EngineObject.Tag; + dummy.EngineObject.EnableCC = this._dummy.EngineObject.EnableCC; + dummy.EngineObject.EnableBC = this._dummy.EngineObject.EnableBC; + string clip = this._clip; + this.OverrideAnim(""); + XSingleton.singleton.DestroyEntity(this._dummy); + this._dummy = dummy; + this._actor = this._dummy.EngineObject; + this._ator = this._dummy.Ator; + this._ator.cullingMode = 0; + this.OverrideAnim(clip); + this.TurnOnSkinnedMesh(this._actor); + } + } + + public void PlayAnimation(string clip) + { + this._dummy.OverrideAnimClip("Idle", clip, false, false); + } + + public override bool Initilize(int flag) + { + XSingleton.singleton.CreateComponent(this, XAudioComponent.uuID); + bool flag2 = this._ator != null; + if (flag2) + { + this._ator.cullingMode = 0; + } + this._actor.EnableCC = false; + bool flag3 = XSingleton.singleton.CurrentStage != null && XSingleton.singleton.CurrentStage.Stage != EXStage.SelectChar && XSingleton.singleton.CurrentStage.Stage != EXStage.Login; + if (flag3) + { + this._actor.EnableBC = false; + } + else + { + this._actor.EnableBC = true; + } + return true; + } + + public override void Uninitilize() + { + this.TurnOffSkinnedMesh(this._actor); + bool flag = this._dummy == null; + if (flag) + { + bool flag2 = this._actor != null; + if (flag2) + { + XGameObject.DestroyXGameObject(this._actor); + this._actor = null; + } + } + else + { + bool flag3 = !this._dummy.Deprecated; + if (flag3) + { + XSingleton.singleton.DestroyEntity(this._dummy); + } + this._dummy = null; + } + base.Uninitilize(); + } + + private void TurnOnSkinnedMesh(XGameObject o) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_LOGIN; + if (flag) + { + this._actor.UpdateWhenOffscreen = true; + } + } + + private void TurnOffSkinnedMesh(XGameObject o) + { + this._actor.UpdateWhenOffscreen = false; + } + + public void GetCurrentAnimLength(OverrideAnimCallback overrideAnimCb) + { + bool flag = this._ator != null; + if (flag) + { + this._ator.SetAnimLoadCallback("Idle", overrideAnimCb); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XActor.cs.meta b/Client/Assets/Scripts/XMainClient/XActor.cs.meta new file mode 100644 index 00000000..2fba17df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XActor.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59e020b65729079428939e60c1b8e837 +timeCreated: 1611403788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAddItemEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAddItemEventArgs.cs new file mode 100644 index 00000000..777de8ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAddItemEventArgs.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XAddItemEventArgs : XEventArgs + { + public bool bNew = true; + + public List items = new List(); + + public XAddItemEventArgs() + { + this._eDefine = XEventDefine.XEvent_AddItem; + } + + public override void Recycle() + { + base.Recycle(); + this.items.Clear(); + this.bNew = true; + XEventPool.Recycle(this); + } + + public override XEventArgs Clone() + { + XAddItemEventArgs @event = XEventPool.GetEvent(); + @event.bNew = this.bNew; + for (int i = 0; i < this.items.Count; i++) + { + @event.items.Add(this.items[i]); + } + return @event; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAddItemEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAddItemEventArgs.cs.meta new file mode 100644 index 00000000..b721cff3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAddItemEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99f791c9adc0e52448336bcd9c4ee45e +timeCreated: 1611404198 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAffiliate.cs b/Client/Assets/Scripts/XMainClient/XAffiliate.cs new file mode 100644 index 00000000..8d846894 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAffiliate.cs @@ -0,0 +1,243 @@ +using System; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAffiliate : XEntity + { + public override string Prefab + { + get + { + return this._present.PresentLib.Prefab; + } + } + + public override uint PresentID + { + get + { + return this._present_id; + } + } + + public bool MirrorState + { + get + { + return this._mirror_state; + } + set + { + this._mirror_state = value; + } + } + + private ulong _id = 0UL; + + private uint _present_id; + + private bool _mirror_state = true; + + private XEntity _mainbody = null; + + public static CommandCallback _changeSpriteMatColorCb = new CommandCallback(XAffiliate._ChangeSpriteMatColor); + + public bool Initilize(XEntity mainbody, uint present_id) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Affiliate; + this._id = ((mainbody.ID & 1152921504606846975UL) | XAttributes.GetTypePrefix(EntitySpecies.Species_Affiliate)); + this._mainbody = mainbody; + string prefab = XSingleton.singleton.EntityInfo.GetByPresentID(present_id).Prefab; + this._xobject = XGameObject.CreateXGameObject("Prefabs/" + prefab, true, true); + this._xobject.UID = this._id; + this._xobject.Name = this._id.ToString(); + this._present_id = present_id; + return this.Initilize(0); + } + + public bool Initilize(XEntity mainbody, uint present_id, XGameObject go) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Affiliate; + this._id = ((mainbody.ID & 1152921504606846975UL) | XAttributes.GetTypePrefix(EntitySpecies.Species_Affiliate)); + this._mainbody = mainbody; + this._xobject = go; + bool flag = this._xobject != null; + if (flag) + { + this._xobject.UID = this._id; + this._xobject.Name = this._id.ToString(); + } + this._present_id = present_id; + return this.Initilize(0); + } + + public override bool Initilize(int flag) + { + this._present = (XSingleton.singleton.CreateComponent(this, XPresentComponent.uuID) as XPresentComponent); + this.InitAnim(); + return true; + } + + public void InitAnim() + { + base.Scale = base.Present.PresentLib.Scale; + bool flag = base.Ator != null; + if (flag) + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && !string.IsNullOrEmpty(base.Present.PresentLib.AttackIdle); + if (flag2) + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.AttackIdle, true, false); + } + else + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.Idle, true, false); + } + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && !string.IsNullOrEmpty(base.Present.PresentLib.AttackIdle); + if (flag3) + { + base.OverrideAnimClip("Walk", base.Present.PresentLib.AttackWalk, true, false); + base.OverrideAnimClip("Run", base.Present.PresentLib.AttackRun, true, false); + } + else + { + base.OverrideAnimClip("Walk", base.Present.PresentLib.Walk, true, false); + base.OverrideAnimClip("Run", base.Present.PresentLib.Run, true, false); + } + bool flag4 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag4) + { + base.OverrideAnimClip("Death", base.Present.PresentLib.Death, true, false); + } + } + } + + public void Presentation(string animation, string fx = null, string audio = null) + { + bool mirrorState = this.MirrorState; + if (!mirrorState) + { + base.OverrideAnimClip("Idle", animation, true, false); + } + } + + public void OnMount() + { + bool mirrorState = this.MirrorState; + if (!mirrorState) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.World && !string.IsNullOrEmpty(base.Present.PresentLib.AttackIdle); + if (flag) + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.AttackIdle, true, false); + } + else + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.Idle, true, false); + } + } + } + + public override void OnCreated() + { + for (int i = 0; i < base.Components.Count; i++) + { + bool flag = base.Components[i] != null; + if (flag) + { + base.Components[i].Attached(); + } + } + this._mainbody.Affiliates.Add(this); + } + + public override void OnDestroy() + { + bool flag = this._xobject != null; + if (flag) + { + XRenderComponent.RemoveObj(this._mainbody, this._xobject.Get()); + } + this._mainbody = null; + base.OnDestroy(); + this.Uninitilize(); + } + + public void Replace(uint present_id, XGameObject go) + { + bool flag = go == this._xobject; + if (!flag) + { + bool flag2 = this._xobject != null; + if (flag2) + { + XRenderComponent.RemoveObj(this._mainbody, this._xobject.Get()); + XGameObject.DestroyXGameObject(this._xobject); + } + this._xobject = go; + bool flag3 = this._xobject != null; + if (flag3) + { + this._xobject.UID = this._id; + this._xobject.Name = this._id.ToString(); + } + this._present_id = present_id; + bool flag4 = this._present != null; + if (flag4) + { + this._present.InitPresent(this._present_id); + } + else + { + this._present = (XSingleton.singleton.CreateComponent(this, XPresentComponent.uuID) as XPresentComponent); + } + this.InitAnim(); + this._present.Attached(); + } + } + + private static void _ChangeSpriteMatColor(XGameObject gameObject, object o, int commandID) + { + SpriteTable.RowData rowData = o as SpriteTable.RowData; + bool flag = rowData == null; + if (!flag) + { + Color color = XSingleton.singleton.StringToColor(rowData.Color); + Transform transform = gameObject.Find(""); + bool flag2 = transform != null; + if (flag2) + { + XCommon.tmpRender.Clear(); + transform.GetComponentsInChildren(XCommon.tmpRender); + int count = XCommon.tmpRender.Count; + for (int i = 0; i < count; i++) + { + Renderer renderer = XCommon.tmpRender[i]; + Material material = renderer.material; + bool flag3 = material == null; + if (!flag3) + { + material.SetColor("_Color", color); + } + } + XCommon.tmpRender.Clear(); + } + } + } + + public void ChangeSpriteMatColor() + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData byPresentID = specificDocument._SpriteTable.GetByPresentID(this._present_id); + bool flag = byPresentID != null; + if (flag) + { + this._xobject.CallCommand(XAffiliate._changeSpriteMatColorCb, byPresentID, -1, false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAffiliate.cs.meta b/Client/Assets/Scripts/XMainClient/XAffiliate.cs.meta new file mode 100644 index 00000000..ae715b56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAffiliate.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9383b6016c9b31444aa67fd2e4329b2d +timeCreated: 1611404151 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAncientDocument.cs b/Client/Assets/Scripts/XMainClient/XAncientDocument.cs new file mode 100644 index 00000000..c638f792 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAncientDocument.cs @@ -0,0 +1,278 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAncientDocument : XDocComponent + { + public override uint ID + { + get + { + return XAncientDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XBigPrizeDocument"); + + private List list; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static AncientTimesTable ancientTable = new AncientTimesTable(); + + public static AncientTask ancientTask = new AncientTask(); + + private byte reward = 0; + + public bool[] state; + + private int itemid = 0; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + XAncientDocument.AsyncLoader.AddTask("Table/AncientTimesTable", XAncientDocument.ancientTable, false); + XAncientDocument.AsyncLoader.AddTask("Table/AncientTask", XAncientDocument.ancientTask, false); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ActivityTaskUpdate, new XComponent.XEventHandler(this.OnTaskChange)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnAddVirtualItem)); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + int aType = XFastEnumIntEqualityComparer.ToInt(ActivityType.BigPrize); + bool flag = this.list == null; + if (flag) + { + this.list = XTempActivityDocument.Doc.GetDataByActivityType((uint)aType); + } + bool flag2 = this.itemid == 0; + if (flag2) + { + this.itemid = XSingleton.singleton.GetInt("BigPrizeItemid"); + } + this.RecultState(); + this.CheckRed(); + } + + protected bool OnAddVirtualItem(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = xvirtualItemChangedEventArgs.itemID == this.itemid; + if (flag) + { + this.CheckRed(); + } + return true; + } + + public bool PointEnough(int pos) + { + SeqRef nPoints = XAncientDocument.ancientTable.Table[pos].nPoints; + ulong itemCount = XBagDocument.BagDoc.GetItemCount(this.itemid); + return itemCount >= (ulong)nPoints[1]; + } + + public List GetSortTask() + { + List list = new List(); + int actid = XFastEnumIntEqualityComparer.ToInt(ActivityType.BigPrize); + bool flag = this.list != null; + if (flag) + { + int i = 0; + int count = this.list.Count; + while (i < count) + { + BigPrizeNode bigPrizeNode = default(BigPrizeNode); + bigPrizeNode.row = this.list[i]; + bigPrizeNode.state = XTempActivityDocument.Doc.GetActivityState((uint)actid, this.list[i].taskid); + bigPrizeNode.sort = (int)bigPrizeNode.state; + bool flag2 = bigPrizeNode.sort == 2; + if (flag2) + { + bigPrizeNode.sort = -1; + } + bigPrizeNode.progress = XTempActivityDocument.Doc.GetActivityProgress((uint)actid, this.list[i].taskid); + bigPrizeNode.taskid = this.list[i].taskid; + list.Add(bigPrizeNode); + i++; + } + } + list.Sort(new Comparison(this.Sort)); + return list; + } + + private int Sort(BigPrizeNode x, BigPrizeNode y) + { + bool flag = x.sort != y.sort; + int result; + if (flag) + { + result = y.sort - x.sort; + } + else + { + result = (int)(x.row.taskid - y.row.taskid); + } + return result; + } + + private void RecultState() + { + int num = XFastEnumIntEqualityComparer.ToInt(ActivityType.BigPrize); + int num2 = XAncientDocument.ancientTable.Table.Length; + this.state = new bool[num2]; + SpActivity activityRecord = XTempActivityDocument.Doc.ActivityRecord; + List spActivity = activityRecord.spActivity; + bool flag = this.reward == 0; + if (flag) + { + int i = 0; + int count = spActivity.Count; + while (i < count) + { + bool flag2 = spActivity[i].actid == (uint)num; + if (flag2) + { + AncientTimes ancient = spActivity[i].ancient; + bool flag3 = this.reward == 0 && ancient != null; + if (flag3) + { + this.reward = (byte)ancient.award; + } + break; + } + i++; + } + } + for (int j = 1; j <= num2; j++) + { + int num3 = this.reward >> j & 1; + this.state[j - 1] = (num3 == 1); + } + } + + private bool OnTaskChange(XEventArgs e) + { + XActivityTaskUpdatedArgs xactivityTaskUpdatedArgs = e as XActivityTaskUpdatedArgs; + uint xActID = xactivityTaskUpdatedArgs.xActID; + uint xTaskID = xactivityTaskUpdatedArgs.xTaskID; + uint xState = xactivityTaskUpdatedArgs.xState; + uint xProgress = xactivityTaskUpdatedArgs.xProgress; + this.RefreshAnicent(); + return true; + } + + public void ReqClaim(uint taskid) + { + int actid = XFastEnumIntEqualityComparer.ToInt(ActivityType.BigPrize); + RpcC2G_GetSpActivityReward rpcC2G_GetSpActivityReward = new RpcC2G_GetSpActivityReward(); + rpcC2G_GetSpActivityReward.oArg.taskid = taskid; + rpcC2G_GetSpActivityReward.oArg.actid = (uint)actid; + XSingleton.singleton.Send(rpcC2G_GetSpActivityReward); + } + + public void ResClaim() + { + this.RefreshAnicent(); + this.CheckRed(); + } + + public void CheckRed() + { + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Shanggu, this.HasRed()); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Shanggu, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshRedpoint(); + } + } + + private bool HasRed() + { + bool flag = false; + bool flag2 = this.state != null; + if (flag2) + { + int i = 0; + int num = 5; + while (i < num) + { + bool flag3 = !this.state[i] && this.PointEnough(i); + bool flag4 = flag3; + if (flag4) + { + flag = true; + } + i++; + } + } + int actid = XFastEnumIntEqualityComparer.ToInt(ActivityType.BigPrize); + bool flag5 = !flag && this.list != null; + if (flag5) + { + int j = 0; + int count = this.list.Count; + while (j < count) + { + uint activityState = XTempActivityDocument.Doc.GetActivityState((uint)actid, this.list[j].taskid); + bool flag6 = activityState == 1u; + if (flag6) + { + flag = true; + break; + } + j++; + } + } + return flag; + } + + private void RefreshAnicent() + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_bigPrizeHandler != null && DlgBase.singleton.m_bigPrizeHandler.IsVisible(); + if (flag) + { + DlgBase.singleton.m_bigPrizeHandler.RefreshList(); + } + } + + public void ReqPoint(uint pos) + { + RpcC2G_GetAncientTimesAward rpcC2G_GetAncientTimesAward = new RpcC2G_GetAncientTimesAward(); + rpcC2G_GetAncientTimesAward.oArg.pos = pos; + XSingleton.singleton.Send(rpcC2G_GetAncientTimesAward); + } + + public void ResPoint(uint reward) + { + this.reward = (byte)reward; + this.RecultState(); + this.CheckRed(); + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_bigPrizeHandler != null && DlgBase.singleton.m_bigPrizeHandler.IsVisible(); + if (flag) + { + DlgBase.singleton.m_bigPrizeHandler.RefreshChest(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAncientDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XAncientDocument.cs.meta new file mode 100644 index 00000000..a438131b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAncientDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2874481a4ef768344b8785852c0ec30f +timeCreated: 1611403474 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAnnouncementBehaviour.cs b/Client/Assets/Scripts/XMainClient/XAnnouncementBehaviour.cs new file mode 100644 index 00000000..4ba873a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAnnouncementBehaviour.cs @@ -0,0 +1,19 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XAnnouncementBehaviour : DlgBehaviourBase + { + public IXUIButton m_Enter; + + public IXUILabel m_Announcement; + + private void Awake() + { + this.m_Enter = (base.transform.Find("Bg/Enter").GetComponent("XUIButton") as IXUIButton); + this.m_Announcement = (base.transform.Find("Bg/Panel/Text").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAnnouncementBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XAnnouncementBehaviour.cs.meta new file mode 100644 index 00000000..44656210 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAnnouncementBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 94824d1fc990d4a47a4e37aa7832036b +timeCreated: 1611404155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAnnouncementDocument.cs b/Client/Assets/Scripts/XMainClient/XAnnouncementDocument.cs new file mode 100644 index 00000000..484aeb67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAnnouncementDocument.cs @@ -0,0 +1,166 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAnnouncementDocument : XDocComponent + { + public override uint ID + { + get + { + return XAnnouncementDocument.uuID; + } + } + + public List NoticeList + { + get + { + return this._notice_list; + } + } + + public bool RedPoint + { + get + { + return this._red_point; + } + set + { + this._red_point = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("AnnouncementDocument"); + + public const int TAB_COUNT = 2; + + private List _notice_list = new List(); + + private bool _red_point = false; + + private bool[] _tab_red_point = new bool[2]; + + public int CurrentTab = 0; + + public bool GetTabRedPoint(int index) + { + return this._tab_red_point[index]; + } + + public void SendFetchNotice() + { + RpcC2M_FetchPlatNotice rpcC2M_FetchPlatNotice = new RpcC2M_FetchPlatNotice(); + rpcC2M_FetchPlatNotice.oArg.type = XSingleton.singleton.AccountType; + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform == 11) + { + rpcC2M_FetchPlatNotice.oArg.platid = PlatType.PLAT_ANDROID; + } + } + else + { + rpcC2M_FetchPlatNotice.oArg.platid = PlatType.PLAT_IOS; + } + XSingleton.singleton.Send(rpcC2M_FetchPlatNotice); + } + + public void SendClickNotice(PlatNotice notice) + { + RpcC2M_ClickNewNotice rpcC2M_ClickNewNotice = new RpcC2M_ClickNewNotice(); + rpcC2M_ClickNewNotice.oArg.info = notice; + XSingleton.singleton.Send(rpcC2M_ClickNewNotice); + } + + public void GetNoticeData(List noticeList) + { + this._red_point = false; + Array.Clear(this._tab_red_point, 0, 2); + this._notice_list.Clear(); + for (int i = 0; i < noticeList.Count; i++) + { + this._notice_list.Add(noticeList[i]); + uint type = noticeList[i].type; + if (type - 3u > 1u) + { + if (type == 6u) + { + this._tab_red_point[0] |= noticeList[i].isnew; + this._red_point |= noticeList[i].isnew; + } + } + else + { + this._tab_red_point[1] |= noticeList[i].isnew; + this._red_point |= noticeList[i].isnew; + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Announcement, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.m_AnnouncementHandler != null; + if (flag2) + { + DlgBase.singleton.m_AnnouncementHandler.RefreshData(); + } + } + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Patface); + if (flag3) + { + DlgBase.singleton.ShowPatface(); + } + else + { + XSingleton.singleton.CheckPandoraPLPanel(); + } + } + + public void RefreshRedPoint() + { + this._red_point = false; + Array.Clear(this._tab_red_point, 0, 2); + for (int i = 0; i < this._notice_list.Count; i++) + { + uint type = this._notice_list[i].type; + if (type - 3u > 1u) + { + if (type == 6u) + { + this._tab_red_point[0] |= this._notice_list[i].isnew; + this._red_point |= this._notice_list[i].isnew; + } + } + else + { + this._tab_red_point[1] |= this._notice_list[i].isnew; + this._red_point |= this._notice_list[i].isnew; + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Announcement, true); + XOperatingActivityDocument specificDocument = XDocuments.GetSpecificDocument(XOperatingActivityDocument.uuID); + specificDocument.RefreshRedPoints(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.m_AnnouncementHandler != null; + if (flag2) + { + DlgBase.singleton.m_AnnouncementHandler.RefreshTab(); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAnnouncementDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XAnnouncementDocument.cs.meta new file mode 100644 index 00000000..eb4c078e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAnnouncementDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab890eb652811d4458ac1ccc660f28bb +timeCreated: 1611404307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAnnouncementView.cs b/Client/Assets/Scripts/XMainClient/XAnnouncementView.cs new file mode 100644 index 00000000..25c5a0be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAnnouncementView.cs @@ -0,0 +1,67 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XAnnouncementView : DlgBase + { + public override string fileName + { + get + { + return "SelectChar/AnnouncementDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Enter.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterClicked)); + } + + private bool OnEnterClicked(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public void ShowAnnouncement(string announcement) + { + this.SetVisibleWithAnimation(true, null); + base.uiBehaviour.m_Announcement.SetText(announcement); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAnnouncementView.cs.meta b/Client/Assets/Scripts/XMainClient/XAnnouncementView.cs.meta new file mode 100644 index 00000000..3fa6431c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAnnouncementView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8589f6a7168d71844a6e71f816a065c5 +timeCreated: 1611404052 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XApolloDocument.cs b/Client/Assets/Scripts/XMainClient/XApolloDocument.cs new file mode 100644 index 00000000..305ffcd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XApolloDocument.cs @@ -0,0 +1,310 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XApolloDocument : XDocComponent + { + public override uint ID + { + get + { + return XApolloDocument.uuID; + } + } + + private JoinRoomReply voipRoomInfo { get; set; } + + public bool IsRealVoice + { + get + { + this.doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + return this.doc != null && this.doc.GetBattleRaw().real > 0; + } + } + + public bool IsRealtimeVoiceOn + { + get + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + return this.mJoinRoomSucc && xapolloManager.openMusic; + } + } + + public int TimeOut + { + get + { + bool flag = this._timeout == 0; + if (flag) + { + this._timeout = XSingleton.singleton.GetInt("SetApolloTimeout"); + } + return this._timeout; + } + } + + public bool JoinRoomSucc + { + get + { + return this.mJoinRoomSucc; + } + } + + public bool IsWaittingJoinRoom + { + get + { + return this.startLoop && !this.mJoinRoomSucc; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XApolloDocument"); + + private List roomRoles = new List(); + + private List roomStates = new List(); + + private bool mJoinRoomSucc = false; + + private XChatDocument doc; + + private int _timeout = 0; + + private bool startLoop = false; + + private float acc_time = 0f; + + private float all_time = 0f; + + private float currVol = 1f; + + private float muteVol = 100f; + + public override void OnAttachToHost(XObject host) + { + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnDetachFromHost() + { + this.QuitRoom(); + base.OnDetachFromHost(); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.startLoop; + if (flag) + { + this.acc_time += fDeltaT; + this.all_time += fDeltaT; + bool flag2 = this.all_time > (float)this.TimeOut && !this.JoinRoomSucc; + if (flag2) + { + this.startLoop = false; + this.mJoinRoomSucc = false; + XSingleton.singleton.AddGreenLog("join room timeout, Apollo error!", null, null, null, null, null); + bool flag3 = !XSingleton.singleton.EditorMode; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("VOICE_APOLLO_FAIL"), "fece00"); + } + } + bool flag4 = this.acc_time > 0.4f; + if (flag4) + { + bool flag5 = !this.mJoinRoomSucc; + if (flag5) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + bool joinRoomResult = xapolloManager.GetJoinRoomResult(); + if (joinRoomResult) + { + this.mJoinRoomSucc = true; + XYuyinView yuyinHandler = DlgBase.singleton._yuyinHandler; + bool flag6 = yuyinHandler != null; + if (flag6) + { + yuyinHandler.SetSpeak(false); + xapolloManager.openMusic = false; + yuyinHandler.SetMusic(true); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + int @int = XSingleton.singleton.GetInt("SetSpeakerVolume"); + xapolloManager.SetMusicVolum((int)((float)@int * specificDocument.voiceVolme)); + } + this.RefreshState(this.roomRoles.ToArray(), this.roomStates.ToArray()); + } + } + this.acc_time = 0f; + } + } + } + + private void HideState() + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.TeamMonitor != null; + if (flag2) + { + DlgBase.singleton.TeamMonitor.HideVoice(); + } + XSceneDamageRankDocument specificDocument = XDocuments.GetSpecificDocument(XSceneDamageRankDocument.uuID); + bool flag3 = specificDocument != null; + if (flag3) + { + specificDocument.RankHandler.HideVoice(); + } + } + } + + public void RequestJoinRoom() + { + bool isRealVoice = this.IsRealVoice; + if (isRealVoice) + { + XSingleton.singleton.EnableAutoPlay(false); + XSingleton.singleton.StopAutoPlay(); + PtcC2G_JoinRoom proto = new PtcC2G_JoinRoom(); + XSingleton.singleton.Send(proto); + } + else + { + this.HideState(); + } + } + + public void JoinRoom(JoinRoomReply data) + { + XSingleton.singleton.AddLog("url1:", data.url1, " url2:", data.url2, " url3:", data.url3, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("roomid:", data.roomID.ToString(), " roomkey: ", data.roomKey.ToString(), " member: ", data.memberID.ToString(), XDebugColor.XDebug_None); + this.voipRoomInfo = data; + this.mJoinRoomSucc = false; + this.acc_time = 0f; + this.all_time = 0f; + this.startLoop = true; + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + xapolloManager.SetRealtimeMode(); + bool flag = !string.IsNullOrEmpty(data.url1); + if (flag) + { + data.url1 = "udp://" + data.url1; + } + bool flag2 = !string.IsNullOrEmpty(data.url2); + if (flag2) + { + data.url2 = "udp://" + data.url2; + } + bool flag3 = !string.IsNullOrEmpty(data.url3); + if (flag3) + { + data.url3 = "udp://" + data.url3; + } + xapolloManager.JoinRoom(data.url1, data.url2, data.url3, data.roomID, data.roomKey, (short)data.memberID); + } + + public void QuitRoom() + { + this.RecoverySound(); + XSingleton.singleton.EnableAutoPlay(true); + bool flag = this.voipRoomInfo != null; + if (flag) + { + XSingleton.singleton.XApolloManager.QuitRoom(this.voipRoomInfo.roomID, (short)this.voipRoomInfo.memberID); + PtcC2G_QuitRoom ptcC2G_QuitRoom = new PtcC2G_QuitRoom(); + ptcC2G_QuitRoom.Data.roomID = this.voipRoomInfo.roomID; + ptcC2G_QuitRoom.Data.memberID = this.voipRoomInfo.memberID; + XSingleton.singleton.Send(ptcC2G_QuitRoom); + this.startLoop = false; + this.mJoinRoomSucc = false; + this.voipRoomInfo = null; + } + } + + public void OnMembersInfoChange(List _server) + { + this.roomRoles.Clear(); + this.roomStates.Clear(); + for (int i = 0; i < _server.Count; i++) + { + this.roomRoles.Add(_server[i].roleID); + this.roomStates.Add((int)_server[i].state); + } + this.RefreshState(this.roomRoles.ToArray(), this.roomStates.ToArray()); + } + + public void RefreshState(ulong[] roleids, int[] states) + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + bool isRealVoice = this.IsRealVoice; + if (isRealVoice) + { + bool flag2 = DlgBase.singleton.TeamMonitor != null; + if (flag2) + { + DlgBase.singleton.TeamMonitor.RefreshVoice(roleids, states); + } + XSceneDamageRankDocument specificDocument = XDocuments.GetSpecificDocument(XSceneDamageRankDocument.uuID); + bool flag3 = specificDocument != null; + if (flag3) + { + specificDocument.RankHandler.RefreshVoice(roleids, states); + } + } + } + } + + public void SendStateServer(uint state) + { + PtcC2G_SetVoipMemberState ptcC2G_SetVoipMemberState = new PtcC2G_SetVoipMemberState(); + ptcC2G_SetVoipMemberState.Data.nstate = state; + XSingleton.singleton.Send(ptcC2G_SetVoipMemberState); + } + + public void PlayGameSound(bool on) + { + bool flag = !on; + if (flag) + { + this.MuteSound(); + } + else + { + this.RecoverySound(); + } + } + + public void MuteSound() + { + bool flag = this.muteVol >= 100f; + if (flag) + { + this.muteVol = (float)XSingleton.singleton.GetInt("SetMusicVol") / 100f; + } + this.currVol = this.muteVol; + XSingleton.singleton.SetMainBusVolume(this.currVol); + } + + public void RecoverySound() + { + this.currVol = 1f; + XSingleton.singleton.SetMainBusVolume(this.currVol); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XApolloDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XApolloDocument.cs.meta new file mode 100644 index 00000000..15689164 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XApolloDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f9767a2a72f6574e97fb22e5a929ef4 +timeCreated: 1611403517 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArenaDocument.cs b/Client/Assets/Scripts/XMainClient/XArenaDocument.cs new file mode 100644 index 00000000..164cc9f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArenaDocument.cs @@ -0,0 +1,34 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XArenaDocument : XDocComponent + { + public override uint ID + { + get + { + return XArenaDocument.uuID; + } + } + + public bool RedPoint { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ArenaDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static SkillCombo SkillComboTable = new SkillCombo(); + + public static void Execute(OnLoadedCallback callback = null) + { + XArenaDocument.AsyncLoader.AddTask("Table/SkillCombo", XArenaDocument.SkillComboTable, false); + XArenaDocument.AsyncLoader.Execute(callback); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArenaDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XArenaDocument.cs.meta new file mode 100644 index 00000000..c7ef0c92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArenaDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 10ecf8b991f6bbb4cbe6f88dd5270c7d +timeCreated: 1611403220 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArmorBrokenArgs.cs b/Client/Assets/Scripts/XMainClient/XArmorBrokenArgs.cs new file mode 100644 index 00000000..f6a82221 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArmorBrokenArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XArmorBrokenArgs : XEventArgs + { + public XEntity Self; + + public XArmorBrokenArgs() + { + this._eDefine = XEventDefine.XEvent_ArmorBroken; + } + + public override void Recycle() + { + base.Recycle(); + this.Self = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArmorBrokenArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XArmorBrokenArgs.cs.meta new file mode 100644 index 00000000..4fb588c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArmorBrokenArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe5cb5354ba8fd14283688365891bb28 +timeCreated: 1611404940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArmorRecoverArgs.cs b/Client/Assets/Scripts/XMainClient/XArmorRecoverArgs.cs new file mode 100644 index 00000000..3803af0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArmorRecoverArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XArmorRecoverArgs : XEventArgs + { + public XEntity Self; + + public XArmorRecoverArgs() + { + this._eDefine = XEventDefine.XEvent_ArmorRecover; + } + + public override void Recycle() + { + base.Recycle(); + this.Self = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArmorRecoverArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XArmorRecoverArgs.cs.meta new file mode 100644 index 00000000..837c777f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArmorRecoverArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ac6cd6907537024ca3c47180e34afa8 +timeCreated: 1611403312 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArtifactAttrView.cs b/Client/Assets/Scripts/XMainClient/XArtifactAttrView.cs new file mode 100644 index 00000000..29f6ec45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactAttrView.cs @@ -0,0 +1,507 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XArtifactAttrView : XAttrCommonHandler where T : XAttrCommonFile, new() + { + private List m_attrDataList; + + private List m_percentAttrDataList; + + private List m_effectDataList; + + private List> m_suitDataList; + + private class SuitStatistics + { + public ArtifactSuit Suit; + + public int Count = 0; + } + + public void SetBaseData(XBodyBag equipments) + { + this.SetShowData(equipments); + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshData(); + } + } + + public void SetBaseData(List lst) + { + this.SetShowData(lst); + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshData(); + } + } + + public override void SetData() + { + base.SetData(); + bool flag = this.m_attrDataList != null || this.m_percentAttrDataList != null; + if (flag) + { + XAttrData xattrData = base._FetchAttrData(); + xattrData.Type = AttriDataType.Attri; + xattrData.Title = XStringDefineProxy.GetString("Tooltip_Artifact_attr"); + bool flag2 = (this.m_attrDataList == null || this.m_attrDataList.Count == 0) && (this.m_percentAttrDataList == null || this.m_percentAttrDataList.Count == 0); + if (flag2) + { + xattrData.StrEmpty = XStringDefineProxy.GetString("No_Artifact_attr"); + } + else + { + bool flag3 = this.m_attrDataList != null; + if (flag3) + { + for (int i = 0; i < this.m_attrDataList.Count; i++) + { + xattrData.Left.Add(this.m_attrDataList[i].Name); + xattrData.Right.Add(this.m_attrDataList[i].NumStr); + } + } + bool flag4 = this.m_percentAttrDataList != null; + if (flag4) + { + for (int j = 0; j < this.m_percentAttrDataList.Count; j++) + { + xattrData.Left.Add(this.m_percentAttrDataList[j].Name); + xattrData.Right.Add(this.m_percentAttrDataList[j].NumStr); + } + } + } + } + bool flag5 = this.m_effectDataList != null; + if (flag5) + { + XAttrData xattrData = base._FetchAttrData(); + xattrData.Title = XStringDefineProxy.GetString("ArytifactSkillEffect"); + xattrData.Type = AttriDataType.SingleLine; + bool flag6 = this.m_effectDataList.Count == 0; + if (flag6) + { + xattrData.StrEmpty = XStringDefineProxy.GetString("NoArtifactSkillEffect"); + } + else + { + for (int k = 0; k < this.m_effectDataList.Count; k++) + { + xattrData.Left.Add(this.m_effectDataList[k].LeftStr); + xattrData.Right.Add(this.m_effectDataList[k].RightStr); + } + } + } + bool flag7 = this.m_suitDataList != null; + if (flag7) + { + bool flag8 = this.m_suitDataList.Count == 0; + if (flag8) + { + XAttrData xattrData = base._FetchAttrData(); + xattrData.Title = XStringDefineProxy.GetString("ArtifactSuitTittle"); + xattrData.Type = AttriDataType.Attri; + xattrData.StrEmpty = XStringDefineProxy.GetString("NoArtifactSuit"); + } + else + { + for (int l = 0; l < this.m_suitDataList.Count; l++) + { + List list = this.m_suitDataList[l]; + XAttrData xattrData = base._FetchAttrData(); + bool flag9 = list.Count > 0; + if (flag9) + { + xattrData.Title = string.Format("{0}{1}", list[0].SuitName, XStringDefineProxy.GetString("ArtifactSuitTittle")); + } + else + { + xattrData.Title = XStringDefineProxy.GetString("ArtifactSuitTittle"); + } + xattrData.Type = AttriDataType.Attri; + for (int m = 0; m < list.Count; m++) + { + xattrData.Left.Add(list[m].LeftStr); + xattrData.Right.Add(list[m].RightStr); + } + } + } + } + } + + private void SetShowData(XBodyBag artifacts) + { + int num = XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_START); + int num2 = XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_END); + bool flag = this.m_attrDataList == null; + if (flag) + { + this.m_attrDataList = new List(); + } + else + { + this.m_attrDataList.Clear(); + } + bool flag2 = this.m_percentAttrDataList == null; + if (flag2) + { + this.m_percentAttrDataList = new List(); + } + else + { + this.m_percentAttrDataList.Clear(); + } + for (int i = num; i < num2; i++) + { + bool flag3 = artifacts[i] == null || artifacts[i].itemID == 0 || (ulong)artifacts[i].type != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT)); + if (!flag3) + { + XArtifactItem xartifactItem = artifacts[i] as XArtifactItem; + for (int j = 0; j < xartifactItem.RandAttrInfo.RandAttr.Count; j++) + { + bool flag4 = xartifactItem.RandAttrInfo.RandAttr[j].AttrID == 0u; + if (!flag4) + { + uint attrID = xartifactItem.RandAttrInfo.RandAttr[j].AttrID; + bool flag5 = XAttributeCommon.IsPercentRange((int)attrID); + ArtifactTotalAttrData artifactTotalAttrData = this.FindTheSameAttri(attrID, flag5); + bool flag6 = artifactTotalAttrData == null; + if (flag6) + { + artifactTotalAttrData = new ArtifactTotalAttrData(xartifactItem.RandAttrInfo.RandAttr[j]); + bool flag7 = flag5; + if (flag7) + { + this.m_percentAttrDataList.Add(artifactTotalAttrData); + } + else + { + this.m_attrDataList.Add(artifactTotalAttrData); + } + } + else + { + artifactTotalAttrData.Add(xartifactItem.RandAttrInfo.RandAttr[j].AttrValue); + } + } + } + } + } + bool flag8 = this.m_effectDataList == null; + if (flag8) + { + this.m_effectDataList = new List(); + } + else + { + this.m_effectDataList.Clear(); + } + for (int k = num; k < num2; k++) + { + bool flag9 = artifacts[k] == null || artifacts[k].itemID == 0 || artifacts[k].Type != ItemType.ARTIFACT; + if (!flag9) + { + XArtifactItem xartifactItem = artifacts[k] as XArtifactItem; + bool flag10 = xartifactItem != null; + if (flag10) + { + for (int l = 0; l < xartifactItem.EffectInfoList.Count; l++) + { + bool flag11 = !xartifactItem.EffectInfoList[l].IsValid; + if (!flag11) + { + string artifactEffectDes = ArtifactDocument.GetArtifactEffectDes(xartifactItem.EffectInfoList[l].EffectId, xartifactItem.EffectInfoList[l].GetValues()); + ArtifactTotalAttrData item = new ArtifactTotalAttrData(artifactEffectDes, ""); + this.m_effectDataList.Add(item); + } + } + } + } + } + bool flag12 = this.m_suitDataList == null; + if (flag12) + { + this.m_suitDataList = new List>(); + } + else + { + this.m_suitDataList.Clear(); + } + List.SuitStatistics> list = new List.SuitStatistics>(); + for (int m = num; m < num2; m++) + { + bool flag13 = artifacts[m] == null || artifacts[m].itemID == 0 || (ulong)artifacts[m].type != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT)); + if (!flag13) + { + XArtifactItem xartifactItem = artifacts[m] as XArtifactItem; + ArtifactSuit suitByArtifactId = ArtifactDocument.SuitMgr.GetSuitByArtifactId((uint)xartifactItem.itemID); + bool flag14 = suitByArtifactId == null; + if (!flag14) + { + this.SetHadSuitList(ref list, suitByArtifactId); + } + } + } + for (int n = 0; n < list.Count; n++) + { + List list2 = new List(); + int num3 = list[n].Suit.effects.Length; + for (int num4 = 0; num4 < num3; num4++) + { + bool flag15 = num4 > list[n].Count; + if (flag15) + { + break; + } + SeqListRef seqListRef = list[n].Suit.effects[num4]; + bool flag16 = seqListRef.Count == 0; + if (!flag16) + { + for (int num5 = 0; num5 < seqListRef.Count; num5++) + { + bool flag17 = seqListRef[num5, 0] == 0u; + if (!flag17) + { + string leftStr = string.Format(XSingleton.singleton.GetString("ArtifactSuitEffect"), num4); + string rightStr = string.Format("{0}{1}", XStringDefineProxy.GetString((XAttributeDefine)seqListRef[num5, 0]), XAttributeCommon.GetAttrValueStr((int)seqListRef[num5, 0], (float)seqListRef[num5, 1])); + list2.Add(new ArtifactTotalAttrData(leftStr, rightStr) + { + SuitName = list[n].Suit.Name + }); + } + } + } + } + bool flag18 = list2.Count != 0; + if (flag18) + { + this.m_suitDataList.Add(list2); + } + } + } + + private void SetShowData(List lst) + { + bool flag = this.m_attrDataList == null; + if (flag) + { + this.m_attrDataList = new List(); + } + else + { + this.m_attrDataList.Clear(); + } + bool flag2 = this.m_percentAttrDataList == null; + if (flag2) + { + this.m_percentAttrDataList = new List(); + } + else + { + this.m_percentAttrDataList.Clear(); + } + bool flag3 = this.m_effectDataList == null; + if (flag3) + { + this.m_effectDataList = new List(); + } + else + { + this.m_effectDataList.Clear(); + } + bool flag4 = this.m_suitDataList == null; + if (flag4) + { + this.m_suitDataList = new List>(); + } + else + { + this.m_suitDataList.Clear(); + } + bool flag5 = lst == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("lst is null", null, null, null, null, null); + } + else + { + int num = XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_START); + int num2 = XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_END); + bool flag6 = lst.Count < num2; + if (flag6) + { + XSingleton.singleton.AddErrorLog(string.Format("gived data count < 4,count = {0}", lst.Count), null, null, null, null, null); + } + else + { + XItemChangeAttr attr = default(XItemChangeAttr); + for (int i = num; i < num2; i++) + { + bool flag7 = lst[i] == null || lst[i].ItemID == 0u || (ulong)lst[i].ItemType != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT)); + if (!flag7) + { + for (int j = 0; j < lst[i].AttrID.Count; j++) + { + uint num3 = lst[i].AttrID[j]; + bool flag8 = num3 == 0u; + if (!flag8) + { + bool flag9 = XAttributeCommon.IsPercentRange((int)num3); + ArtifactTotalAttrData artifactTotalAttrData = this.FindTheSameAttri(num3, flag9); + bool flag10 = artifactTotalAttrData == null; + if (flag10) + { + attr.AttrID = num3; + attr.AttrValue = lst[i].AttrValue[j]; + artifactTotalAttrData = new ArtifactTotalAttrData(attr); + bool flag11 = flag9; + if (flag11) + { + this.m_percentAttrDataList.Add(artifactTotalAttrData); + } + else + { + this.m_attrDataList.Add(artifactTotalAttrData); + } + } + else + { + artifactTotalAttrData.Add(lst[i].AttrValue[j]); + } + } + } + } + } + for (int k = num; k < num2; k++) + { + bool flag12 = lst[k] == null || lst[k].ItemID == 0u || (ulong)lst[k].ItemType != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT)); + if (!flag12) + { + XArtifactItem xartifactItem = XBagDocument.MakeXItem(lst[k]) as XArtifactItem; + bool flag13 = xartifactItem != null; + if (flag13) + { + for (int l = 0; l < xartifactItem.EffectInfoList.Count; l++) + { + bool flag14 = !xartifactItem.EffectInfoList[l].IsValid; + if (!flag14) + { + string artifactEffectDes = ArtifactDocument.GetArtifactEffectDes(xartifactItem.EffectInfoList[l].EffectId, xartifactItem.EffectInfoList[l].GetValues()); + ArtifactTotalAttrData item = new ArtifactTotalAttrData(artifactEffectDes, ""); + this.m_effectDataList.Add(item); + } + } + } + } + } + List.SuitStatistics> list = new List.SuitStatistics>(); + for (int m = num; m < num2; m++) + { + bool flag15 = lst[m] == null || lst[m].ItemID == 0u || (ulong)lst[m].ItemType != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT)); + if (!flag15) + { + ArtifactSuit suitByArtifactId = ArtifactDocument.SuitMgr.GetSuitByArtifactId(lst[m].ItemID); + bool flag16 = suitByArtifactId == null; + if (!flag16) + { + this.SetHadSuitList(ref list, suitByArtifactId); + } + } + } + for (int n = 0; n < list.Count; n++) + { + List list2 = new List(); + int num4 = list[n].Suit.effects.Length; + for (int num5 = 0; num5 < num4; num5++) + { + bool flag17 = num5 > list[n].Count; + if (flag17) + { + break; + } + SeqListRef seqListRef = list[n].Suit.effects[num5]; + bool flag18 = seqListRef.Count == 0; + if (!flag18) + { + for (int num6 = 0; num6 < seqListRef.Count; num6++) + { + bool flag19 = seqListRef[num6, 0] == 0u; + if (!flag19) + { + string leftStr = string.Format(XSingleton.singleton.GetString("ArtifactSuitEffect"), num5); + string rightStr = string.Format("{0}{1}", XStringDefineProxy.GetString((XAttributeDefine)seqListRef[num6, 0]), XAttributeCommon.GetAttrValueStr((int)seqListRef[num6, 0], (float)seqListRef[num6, 1])); + list2.Add(new ArtifactTotalAttrData(leftStr, rightStr) + { + SuitName = list[n].Suit.Name + }); + } + } + } + } + bool flag20 = list2.Count != 0; + if (flag20) + { + this.m_suitDataList.Add(list2); + } + } + } + } + } + + private ArtifactTotalAttrData FindTheSameAttri(uint nameId, bool isPrecent) + { + if (isPrecent) + { + for (int i = 0; i < this.m_percentAttrDataList.Count; i++) + { + bool flag = this.m_percentAttrDataList[i].NameId == nameId; + if (flag) + { + return this.m_percentAttrDataList[i]; + } + } + } + else + { + for (int j = 0; j < this.m_attrDataList.Count; j++) + { + bool flag2 = this.m_attrDataList[j].NameId == nameId; + if (flag2) + { + return this.m_attrDataList[j]; + } + } + } + return null; + } + + private void SetHadSuitList(ref List.SuitStatistics> suits, ArtifactSuit suit) + { + bool flag = false; + for (int i = 0; i < suits.Count; i++) + { + bool flag2 = suit.Id == suits[i].Suit.Id; + if (flag2) + { + flag = true; + suits[i].Count++; + break; + } + } + bool flag3 = !flag; + if (flag3) + { + XArtifactAttrView.SuitStatistics suitStatistics = new XArtifactAttrView.SuitStatistics(); + suitStatistics.Suit = suit; + suitStatistics.Count++; + suits.Add(suitStatistics); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArtifactAttrView.cs.meta b/Client/Assets/Scripts/XMainClient/XArtifactAttrView.cs.meta new file mode 100644 index 00000000..fcd1c480 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactAttrView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ecb037dd35973cf468094c07d717e8f7 +timeCreated: 1611404788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArtifactBuffInfo.cs b/Client/Assets/Scripts/XMainClient/XArtifactBuffInfo.cs new file mode 100644 index 00000000..04682282 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactBuffInfo.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal struct XArtifactBuffInfo + { + public uint Type + { + get + { + return this.m_type; + } + } + + public uint Id + { + get + { + return this.m_id; + } + } + + public List Values + { + get + { + return this.m_values; + } + } + + public uint SortId + { + get + { + return this.m_sortId; + } + } + + private uint m_type; + + private uint m_id; + + private uint m_sortId; + + private List m_values; + + public void Init() + { + this.m_type = 1u; + this.m_id = 0u; + this.m_sortId = 0u; + bool flag = this.m_values == null; + if (flag) + { + this.m_values = new List(); + } + else + { + this.m_values.Clear(); + } + } + + public void SetData(uint effectId, uint type, uint id, List values) + { + this.m_type = type; + this.m_id = id; + this.m_values = values; + EffectTable.RowData rowData = null; + bool flag = type == 1u; + if (flag) + { + rowData = ArtifactDocument.Doc.GetArtifactSkillEffect(effectId, id); + } + else + { + bool flag2 = type == 2u; + if (flag2) + { + rowData = ArtifactDocument.Doc.GetArtifactSkillEffect(effectId, id); + } + } + bool flag3 = rowData != null; + if (flag3) + { + this.m_sortId = (uint)rowData.SortID; + } + else + { + this.m_sortId = 0u; + XSingleton.singleton.AddGreenLog(string.Format("cannot find this effectTable data effectId = {0},id = {1}", effectId, id), null, null, null, null, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArtifactBuffInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XArtifactBuffInfo.cs.meta new file mode 100644 index 00000000..f2fadacf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactBuffInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ece29d5c81cf72540bf5b03f67e62cdf +timeCreated: 1611404789 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArtifactCreateDocument.cs b/Client/Assets/Scripts/XMainClient/XArtifactCreateDocument.cs new file mode 100644 index 00000000..476f43f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactCreateDocument.cs @@ -0,0 +1,549 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XArtifactCreateDocument : XDocComponent + { + public override uint ID + { + get + { + return XArtifactCreateDocument.uuID; + } + } + + public static XArtifactCreateDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XArtifactCreateDocument.uuID) as XArtifactCreateDocument; + } + } + + public ArtifactSetHandler Handler { get; set; } + + public bool OnlyShowCurFit + { + get + { + return this.m_onlyShowCurFit; + } + set + { + bool flag = this.m_onlyShowCurFit != value; + if (flag) + { + this.m_onlyShowCurFit = value; + this.SetShowStatue(value); + } + } + } + + private Dictionary ElementCurLevelDic + { + get + { + this.m_elementCurLevelDic.Clear(); + uint num = 0u; + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + num = XSingleton.singleton.XPlayerData.Level; + } + foreach (KeyValuePair> keyValuePair in this.ElementLevelDic) + { + uint num2 = 0u; + for (int i = 0; i < keyValuePair.Value.Count; i++) + { + bool flag2 = num >= keyValuePair.Value[i]; + if (flag2) + { + num2 = keyValuePair.Value[i]; + } + } + bool flag3 = num2 > 0u; + if (flag3) + { + bool flag4 = this.m_elementCurLevelDic.ContainsKey(keyValuePair.Key); + if (flag4) + { + this.m_elementCurLevelDic[keyValuePair.Key] = num2; + } + else + { + this.m_elementCurLevelDic.Add(keyValuePair.Key, num2); + } + } + } + return this.m_elementCurLevelDic; + } + } + + public List ArtifactElementDataList + { + get + { + bool flag = this.m_artifactElementDataList == null; + if (flag) + { + this.InitData(); + } + return this.m_artifactElementDataList; + } + } + + public Dictionary> ElementLevelDic + { + get + { + bool flag = this.m_elementLevelDic == null; + if (flag) + { + this.InitData(); + } + return this.m_elementLevelDic; + } + } + + public bool RedPointArtifact + { + get + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_EquipCreate_ArtifactSet) & this.m_redPointArtifact; + } + set + { + this.m_redPointArtifact = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_EquipCreate_ArtifactSet, true); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XArtifactCreateDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private bool m_onlyShowCurFit = false; + + private List m_artifactElementDataList = null; + + private Dictionary> m_elementLevelDic = null; + + private Dictionary m_elementCurLevelDic = new Dictionary(); + + private bool m_redPointArtifact = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XArtifactCreateDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnFinishItemChange)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public static void OnTableLoaded() + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this.m_onlyShowCurFit = false; + bool flag = this.m_artifactElementDataList != null; + if (flag) + { + this.m_artifactElementDataList.Clear(); + this.m_artifactElementDataList = null; + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.CheckLevelUp(arg.PlayerInfo.Brief.level); + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + this.CheckRedPointByLevel(XSingleton.singleton.XPlayerData.Level); + } + base.OnEnterSceneFinally(); + } + + private void InitData() + { + this.m_artifactElementDataList = new List(); + Dictionary> dictionary = new Dictionary>(); + for (int i = 0; i < ArtifactDocument.SuitMgr.Suits.Count; i++) + { + ArtifactSuit artifactSuit = ArtifactDocument.SuitMgr.Suits[i]; + bool flag = artifactSuit == null; + if (!flag) + { + bool isCreateShow = artifactSuit.IsCreateShow; + if (isCreateShow) + { + List list = null; + bool flag2 = !dictionary.TryGetValue(artifactSuit.ElementType, out list); + if (flag2) + { + list = new List(); + dictionary.Add(artifactSuit.ElementType, list); + } + ArtifactSuitData artifactSuitData = new ArtifactSuitData(); + artifactSuitData.SuitData = artifactSuit; + artifactSuitData.Level = artifactSuit.Level; + artifactSuitData.Show = true; + artifactSuitData.SuitItemList = new List(); + this.GetArtifactSuitList(artifactSuit, ref artifactSuitData.SuitItemList); + bool flag3 = false; + for (int j = 0; j < list.Count; j++) + { + bool flag4 = list[j].Level == artifactSuitData.Level; + if (flag4) + { + flag3 = true; + break; + } + } + bool flag5 = !flag3; + if (flag5) + { + list.Add(artifactSuitData); + } + } + } + } + foreach (KeyValuePair> keyValuePair in dictionary) + { + bool flag6 = keyValuePair.Value.Count > 0; + if (flag6) + { + ArtifactElementData artifactElementData = new ArtifactElementData(); + artifactElementData.ElementType = keyValuePair.Key; + artifactElementData.List = keyValuePair.Value; + this.m_artifactElementDataList.Add(artifactElementData); + } + } + this.m_artifactElementDataList.Sort(); + this.InitQuanlityLevelDic(); + } + + private void InitQuanlityLevelDic() + { + this.m_elementLevelDic = new Dictionary>(); + for (int i = 0; i < this.m_artifactElementDataList.Count; i++) + { + ArtifactElementData artifactElementData = this.m_artifactElementDataList[i]; + bool flag = !this.m_elementLevelDic.ContainsKey(artifactElementData.ElementType); + if (flag) + { + List value = new List(); + this.m_elementLevelDic[artifactElementData.ElementType] = value; + } + for (int j = 0; j < artifactElementData.List.Count; j++) + { + this.m_elementLevelDic[artifactElementData.ElementType].Add(artifactElementData.List[j].Level); + } + } + } + + private void GetArtifactSuitList(ArtifactSuit suit, ref List list) + { + list.Clear(); + bool flag = suit.Artifacts == null; + if (!flag) + { + foreach (uint key in suit.Artifacts) + { + ItemComposeTable.RowData byID = XEquipCreateDocument.ItemComposeReader.GetByID((int)key); + bool flag2 = byID == null; + if (flag2) + { + break; + } + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)byID.ItemID); + bool flag3 = artifactListRowData == null; + if (flag3) + { + break; + } + ArtifactSingleData artifactSingleData = new ArtifactSingleData(); + artifactSingleData.Redpoint = false; + artifactSingleData.ItemData = artifactListRowData; + artifactSingleData.ItemComposeData = byID; + list.Add(artifactSingleData); + } + } + } + + public List GetEquipSuitList(uint suitID) + { + List list = new List(); + for (int i = 0; i < this.m_artifactElementDataList.Count; i++) + { + ArtifactElementData artifactElementData = this.m_artifactElementDataList[i]; + for (int j = 0; j < artifactElementData.List.Count; j++) + { + bool flag = artifactElementData.List[j].SuitData.SuitId == suitID; + if (flag) + { + list = artifactElementData.List[j].SuitItemList; + list.Sort(); + return list; + } + } + } + return list; + } + + private void SetShowStatue(bool onlyShowCurFit = false) + { + Dictionary elementCurLevelDic = this.ElementCurLevelDic; + for (int i = 0; i < this.ArtifactElementDataList.Count; i++) + { + ArtifactElementData artifactElementData = this.ArtifactElementDataList[i]; + bool flag = artifactElementData == null; + if (!flag) + { + bool flag2 = !elementCurLevelDic.ContainsKey(artifactElementData.ElementType); + if (flag2) + { + artifactElementData.Show = false; + } + else + { + uint num = elementCurLevelDic[artifactElementData.ElementType]; + for (int j = 0; j < artifactElementData.List.Count; j++) + { + ArtifactSuitData artifactSuitData = artifactElementData.List[j]; + bool flag3 = artifactSuitData == null; + if (!flag3) + { + if (onlyShowCurFit) + { + bool flag4 = num == artifactSuitData.Level; + if (flag4) + { + artifactSuitData.Show = true; + } + else + { + artifactSuitData.Show = false; + } + } + else + { + bool flag5 = num >= artifactSuitData.Level; + if (flag5) + { + artifactSuitData.Show = true; + } + else + { + artifactSuitData.Show = false; + } + } + artifactElementData.Show |= artifactSuitData.Show; + } + } + } + } + } + } + + private void CheckRedPointByLevel(uint curLevel) + { + bool flag = SceneType.SCENE_HALL != XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + if (!flag) + { + bool flag2 = false; + Dictionary elementCurLevelDic = this.ElementCurLevelDic; + for (int i = 0; i < this.ArtifactElementDataList.Count; i++) + { + ArtifactElementData artifactElementData = this.ArtifactElementDataList[i]; + bool flag3 = artifactElementData == null; + if (!flag3) + { + bool flag4 = !elementCurLevelDic.ContainsKey(artifactElementData.ElementType); + if (!flag4) + { + uint num = elementCurLevelDic[artifactElementData.ElementType]; + artifactElementData.Redpoint = false; + for (int j = 0; j < artifactElementData.List.Count; j++) + { + ArtifactSuitData artifactSuitData = artifactElementData.List[j]; + bool flag5 = artifactSuitData == null; + if (!flag5) + { + artifactSuitData.Redpoint = false; + bool flag6 = artifactSuitData.Level != num; + if (!flag6) + { + bool flag7 = artifactSuitData.SuitItemList == null; + if (!flag7) + { + for (int k = 0; k < artifactSuitData.SuitItemList.Count; k++) + { + ArtifactSingleData artifactSingleData = artifactSuitData.SuitItemList[k]; + bool flag8 = artifactSingleData == null; + if (!flag8) + { + artifactSingleData.Redpoint = false; + bool flag9 = artifactSingleData.CompareValue < 0; + if (!flag9) + { + bool flag10 = false; + for (int l = 0; l < XBagDocument.BagDoc.ArtifactBag.Length; l++) + { + flag10 = this.IsOwn(XBagDocument.BagDoc.ArtifactBag[l], artifactSingleData.ItemData); + bool flag11 = flag10; + if (flag11) + { + break; + } + } + bool flag12 = !flag10; + if (flag12) + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.ARTIFACT); + List list = new List(); + XBagDocument.BagDoc.GetItemsByType(typeFilter, ref list); + for (int m = 0; m < list.Count; m++) + { + flag10 = this.IsOwn(list[m], artifactSingleData.ItemData); + bool flag13 = flag10; + if (flag13) + { + break; + } + } + } + artifactSingleData.Redpoint = !flag10; + artifactSuitData.Redpoint |= artifactSingleData.Redpoint; + } + } + } + artifactElementData.Redpoint |= artifactSuitData.Redpoint; + } + } + } + } + flag2 |= artifactElementData.Redpoint; + } + } + } + this.RedPointArtifact = flag2; + this.RefreshRedPointUi(); + } + } + + private bool IsOwn(XItem xItem, ArtifactListTable.RowData artifactListRow2) + { + bool flag = xItem == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = (long)xItem.itemID == (long)((ulong)artifactListRow2.ArtifactID); + if (flag2) + { + result = true; + } + else + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)xItem.itemID); + bool flag3 = artifactListRowData == null; + if (flag3) + { + result = false; + } + else + { + bool flag4 = artifactListRowData.ArtifactPos != artifactListRow2.ArtifactPos; + if (flag4) + { + result = false; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(xItem.itemID); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf((int)artifactListRow2.ArtifactID); + bool flag5 = itemConf == null || itemConf2 == null; + if (flag5) + { + result = false; + } + else + { + bool flag6 = itemConf.ReqLevel >= itemConf2.ReqLevel; + result = flag6; + } + } + } + } + } + return result; + } + + private void RefreshRedPointUi() + { + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.RefreshRedPoint(); + } + } + + public void CheckLevelUp(uint curLevel) + { + this.SetShowStatue(this.OnlyShowCurFit); + this.CheckRedPointByLevel(curLevel); + } + + private bool OnFinishItemChange(XEventArgs e) + { + bool flag = XSingleton.singleton.XPlayerData != null; + if (flag) + { + this.CheckRedPointByLevel(XSingleton.singleton.XPlayerData.Level); + } + return true; + } + + private bool OnVirtualItemChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = xvirtualItemChangedEventArgs.itemID == 1 && XSingleton.singleton.XPlayerData != null; + if (flag) + { + this.CheckRedPointByLevel(XSingleton.singleton.XPlayerData.Level); + } + return true; + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + XPlayerLevelChangedEventArgs xplayerLevelChangedEventArgs = arg as XPlayerLevelChangedEventArgs; + this.CheckLevelUp(xplayerLevelChangedEventArgs.level); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArtifactCreateDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XArtifactCreateDocument.cs.meta new file mode 100644 index 00000000..28e90e69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactCreateDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a92c745f3f98d94cab51e3744649705 +timeCreated: 1611403990 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArtifactEffectInfo.cs b/Client/Assets/Scripts/XMainClient/XArtifactEffectInfo.cs new file mode 100644 index 00000000..86eefad6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactEffectInfo.cs @@ -0,0 +1,161 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal struct XArtifactEffectInfo + { + public uint EffectId + { + get + { + return this.m_effectId; + } + set + { + this.m_effectId = value; + } + } + + public uint BaseProf + { + get + { + return this.m_baseProf; + } + } + + public List BuffInfoList + { + get + { + return this.m_buffInfoList; + } + set + { + this.m_buffInfoList = value; + } + } + + public bool IsValid + { + get + { + return this.m_isValid; + } + set + { + this.m_isValid = value; + } + } + + private uint m_effectId; + + private uint m_baseProf; + + private List m_buffInfoList; + + private List m_allVaules; + + private bool m_isValid; + + public void Init() + { + this.m_effectId = 0u; + this.m_isValid = true; + bool flag = this.m_buffInfoList == null; + if (flag) + { + this.m_buffInfoList = new List(); + } + else + { + this.m_buffInfoList.Clear(); + } + } + + public void SetBaseProf(uint effectId) + { + EffectDesTable.RowData byEffectID = ArtifactDocument.EffectDesTab.GetByEffectID(this.EffectId); + bool flag = byEffectID != null; + if (flag) + { + this.m_baseProf = (uint)byEffectID.BaseProf; + } + else + { + this.m_baseProf = 0u; + } + } + + public List GetValues() + { + bool flag = this.m_allVaules == null; + if (flag) + { + this.m_allVaules = new List(); + } + else + { + this.m_allVaules.Clear(); + } + bool flag2 = this.m_buffInfoList == null; + List allVaules; + if (flag2) + { + allVaules = this.m_allVaules; + } + else + { + EffectDesTable.RowData byEffectID = ArtifactDocument.EffectDesTab.GetByEffectID(this.EffectId); + float[] array = null; + string[] array2 = null; + bool flag3 = byEffectID != null; + if (flag3) + { + array = byEffectID.ParamCoefficient; + array2 = byEffectID.ColorDes; + } + for (int i = 0; i < this.m_buffInfoList.Count; i++) + { + bool flag4 = this.m_buffInfoList[i].Values == null; + if (!flag4) + { + for (int j = 0; j < this.m_buffInfoList[i].Values.Count; j++) + { + bool flag5 = array != null && array.Length > j; + if (flag5) + { + float num = Math.Abs((float)this.m_buffInfoList[i].Values[j] * array[j]); + bool flag6 = array2 != null && array2.Length > j; + if (flag6) + { + this.m_allVaules.Add(string.Format("[{0}]{1}[-]", array2[j], num.ToString("f1"))); + } + else + { + this.m_allVaules.Add(num.ToString("f1")); + } + } + else + { + bool flag7 = array2 != null && array2.Length > j; + if (flag7) + { + this.m_allVaules.Add(string.Format("[{0}]{1}[-]", array2[j], this.m_buffInfoList[i].Values[j].ToString("f1"))); + } + else + { + this.m_allVaules.Add(this.m_buffInfoList[i].Values[j].ToString("f1")); + } + } + } + } + } + allVaules = this.m_allVaules; + } + return allVaules; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArtifactEffectInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XArtifactEffectInfo.cs.meta new file mode 100644 index 00000000..6a7e4b6b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactEffectInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4da40e586cde14c40aa6fb1e13cf5635 +timeCreated: 1611403696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArtifactItem.cs b/Client/Assets/Scripts/XMainClient/XArtifactItem.cs new file mode 100644 index 00000000..733347cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactItem.cs @@ -0,0 +1,60 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XArtifactItem : XAttrItem + { + public override bool bHasPPT + { + get + { + return true; + } + } + + public XRandAttrInfo RandAttrInfo = default(XRandAttrInfo); + + public List EffectInfoList; + + public List UnSavedAttr; + + public override string ToPPTString(XAttributes attributes = null) + { + uint ppt = this.GetPPT(attributes); + string empty = string.Empty; + return string.Format("{0} - {1}", 0, ppt); + } + + public override void Init() + { + base.Init(); + this.RandAttrInfo.Init(); + bool flag = this.EffectInfoList == null; + if (flag) + { + this.EffectInfoList = new List(); + } + else + { + this.EffectInfoList.Clear(); + } + bool flag2 = this.UnSavedAttr == null; + if (flag2) + { + this.UnSavedAttr = new List(); + } + else + { + this.UnSavedAttr.Clear(); + } + } + + public override void Recycle() + { + base.Recycle(); + this.Init(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArtifactItem.cs.meta b/Client/Assets/Scripts/XMainClient/XArtifactItem.cs.meta new file mode 100644 index 00000000..1c83aff1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtifactItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 596c9da05c3e88b43ad28709ea1b1b8e +timeCreated: 1611403784 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XArtsSkill.cs b/Client/Assets/Scripts/XMainClient/XArtsSkill.cs new file mode 100644 index 00000000..18234d91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtsSkill.cs @@ -0,0 +1,1253 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XArtsSkill : XSkill + { + public override int SkillType + { + get + { + return 1; + } + } + + public override string AnimClipName + { + get + { + return this._data.ClipName; + } + } + + private SmallBuffer _fx; + + protected SmallBuffer _combined_fx; + + private Vector3 _warning_face = Vector3.forward; + + private Vector3 _warning_pos = Vector3.zero; + + protected bool _end_solo_effect = false; + + protected bool _set_camera_effect = false; + + protected bool _combined_set_camera_effect = false; + + protected bool _set_camera_shake = false; + + protected bool _combined_set_camera_shake = false; + + protected bool _set_not_selected = false; + + protected bool _combined_set_not_selected = false; + + public static uint _move_mob_id = 99999999u; + + private SmallBuffer _mob_unit; + + protected enum EArtsSkillTimerCb + { + EOnResult = 2, + EQTEOn, + EQTEOff, + EPreservedSAt, + EPreservedSEnd, + ENotSelected, + EExString, + EManipulate, + EMob, + ECastChain, + EFx, + EAudio, + EWarning, + ECharge, + EShake, + ECameraMotion, + ECameraPostEffect, + ESolidBlack, + ELoopResults, + EGroupResults, + EKillManipulate, + EKillFx, + EEndCameraPostEffect, + EArtsSkillNum + } + + public override void Initialize(XEntity firer) + { + base.Initialize(firer); + this._fx.debugName = "XArtsSkill._fx"; + this._combined_fx.debugName = "XArtsSkill._combined_fx"; + this._mob_unit.debugName = "XArtsSkill._mob_unit"; + XSingleton.singleton.GetSmallBuffer(ref this._fx, 16, 0); + XSingleton.singleton.GetSmallBuffer(ref this._mob_unit, 16, 0); + XSingleton.singleton.GetSmallBuffer(ref this._combined_fx, 16, 0); + } + + public override void Uninitialize() + { + base.Uninitialize(); + XSingleton.singleton.ReturnSmallBuffer(ref this._fx); + XSingleton.singleton.ReturnSmallBuffer(ref this._mob_unit); + XSingleton.singleton.ReturnSmallBuffer(ref this._combined_fx); + } + + protected override bool InnerProcessTimer(object param, int id) + { + bool flag = !base.InnerProcessTimer(param, id); + if (flag) + { + switch (id) + { + case 2: + base.OnResult(param); + return true; + case 3: + this.QTEOn(param); + return true; + case 4: + this.QTEOff(param); + return true; + case 5: + this.PreservedSAt(param); + return true; + case 6: + this.PreservedSEnd(param); + return true; + case 7: + this.NotSelected(param); + return true; + case 8: + this.ExString(param); + return true; + case 9: + this.Manipulate(param); + return true; + case 10: + this.Mob(param); + return true; + case 11: + this.CastChain(param); + return true; + case 12: + this.Fx(param); + return true; + case 13: + this.Audio(param); + return true; + case 14: + this.Warning(param); + return true; + case 15: + this.Charge(param); + return true; + case 16: + this.Shake(param); + return true; + case 17: + this.CameraMotion(param); + return true; + case 18: + this.CameraPostEffect(param); + return true; + case 19: + this.SolidBlack(param); + return true; + case 20: + this.LoopResults(param); + return true; + case 21: + this.GroupResults(param); + return true; + case 22: + this.KillManipulate(param); + return true; + case 23: + this.KillFx(param); + return true; + case 24: + this.EndCameraPostEffect(param); + return true; + } + } + return false; + } + + protected override void Start() + { + base.Start(); + this._set_camera_effect = false; + this._set_camera_shake = false; + this._set_not_selected = false; + bool needTarget = this._data.NeedTarget; + if (needTarget) + { + base.FocusTarget(this._target); + bool isPlayer = this._firer.IsPlayer; + if (isPlayer) + { + base.Manual(); + } + } + this.FireEvents(); + } + + protected virtual void FireEvents() + { + bool flag = this._data.Result != null; + if (flag) + { + for (int i = 0; i < this._data.Result.Count; i++) + { + bool flag2 = this._data.Result[i].LongAttackEffect || !XSingleton.singleton.SyncMode || !this._demonstration; + if (flag2) + { + this._data.Result[i].Token = i; + float at = this._data.Result[i].At; + base.AddedTimerToken(XSingleton.singleton.SetTimer(at * this._time_scale, this._TimerCallback, this._data.Result[i], XArtsSkill.EArtsSkillTimerCb.EOnResult), true); + } + } + } + bool flag3 = this._data.Charge != null; + if (flag3) + { + for (int j = 0; j < this._data.Charge.Count; j++) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer((this._data.Charge[j].Using_Curve ? 0f : this._data.Charge[j].At) * this._time_scale, this._TimerCallback, this._data.Charge[j], XArtsSkill.EArtsSkillTimerCb.ECharge), true); + } + } + bool flag4 = !this._demonstration && this._data.Logical != null; + if (flag4) + { + bool flag5 = this._data.Logical.QTEData != null; + if (flag5) + { + for (int k = 0; k < this._data.Logical.QTEData.Count; k++) + { + bool flag6 = this._firer.QTE != null && this._data.Logical.QTEData[k].QTE != 0; + if (flag6) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Logical.QTEData[k].At * this._time_scale, this._TimerCallback, this._data.Logical.QTEData[k].QTE, XArtsSkill.EArtsSkillTimerCb.EQTEOn), true); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Logical.QTEData[k].End * this._time_scale, this._TimerCallback, this._data.Logical.QTEData[k].QTE, XArtsSkill.EArtsSkillTimerCb.EQTEOff), true); + } + } + } + bool flag7 = this._core.PreservedStrength > 0; + if (flag7) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Logical.PreservedAt * this._time_scale, this._TimerCallback, this._core.PreservedStrength, XArtsSkill.EArtsSkillTimerCb.EPreservedSAt), true); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Logical.PreservedEndAt * this._time_scale, this._TimerCallback, null, XArtsSkill.EArtsSkillTimerCb.EPreservedSEnd), true); + } + } + bool flag8 = !XSingleton.singleton.SyncMode || this._demonstration; + if (flag8) + { + bool flag9 = !this._demonstration; + if (flag9) + { + bool flag10 = this._data.Logical != null; + if (flag10) + { + bool flag11 = !string.IsNullOrEmpty(this._data.Logical.Exstring); + if (flag11) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Logical.Exstring_At * this._time_scale, this._TimerCallback, this._data.Logical.Exstring, XArtsSkill.EArtsSkillTimerCb.EExString), true); + } + } + bool flag12 = this._data.Manipulation != null; + if (flag12) + { + for (int l = 0; l < this._data.Manipulation.Count; l++) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Manipulation[l].At * this._time_scale, this._TimerCallback, this._data.Manipulation[l], XArtsSkill.EArtsSkillTimerCb.EManipulate), true); + } + } + bool flag13 = this._data.Chain != null && this._data.Chain.TemplateID > 0 && !string.IsNullOrEmpty(this._data.Chain.Name); + if (flag13) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Chain.At * this._time_scale, this._TimerCallback, this._data.Chain, XArtsSkill.EArtsSkillTimerCb.ECastChain), true); + } + } + bool flag14 = this._data.Mob != null; + if (flag14) + { + for (int m = 0; m < this._data.Mob.Count; m++) + { + bool flag15 = this._data.Mob[m].TemplateID > 0; + if (flag15) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Mob[m].At * this._time_scale, this._TimerCallback, this._data.Mob[m], XArtsSkill.EArtsSkillTimerCb.EMob), true); + } + } + } + } + bool flag16 = this._data.Logical != null && this._data.Logical.Not_Selected_End > 0f; + if (flag16) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Logical.Not_Selected_At * this._time_scale, this._TimerCallback, this._core, XArtsSkill.EArtsSkillTimerCb.ENotSelected), true); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Logical.Not_Selected_End * this._time_scale, this._TimerCallback, null, XArtsSkill.EArtsSkillTimerCb.ENotSelected), true); + } + bool flag17 = this._data.Fx != null && this._firer.IsVisible && !this._firer.MobShield; + if (flag17) + { + bool flag18 = !XSingleton.singleton.FxShield(this._firer); + for (int n = 0; n < this._data.Fx.Count; n++) + { + bool flag19 = !this._data.Fx[n].Shield || flag18; + if (flag19) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Fx[n].At * this._time_scale, this._TimerCallback, this._data.Fx[n], XArtsSkill.EArtsSkillTimerCb.EFx), false); + } + } + } + bool flag20 = this._data.Audio != null && !this._firer.MobShield; + if (flag20) + { + for (int num = 0; num < this._data.Audio.Count; num++) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Audio[num].At * this._time_scale, this._TimerCallback, this._data.Audio[num], XArtsSkill.EArtsSkillTimerCb.EAudio), false); + } + } + bool flag21 = this._data.Warning != null; + if (flag21) + { + for (int num2 = 0; num2 < this._data.Warning.Count; num2++) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Warning[num2].At * this._time_scale, this._TimerCallback, this._data.Warning[num2], XArtsSkill.EArtsSkillTimerCb.EWarning), false); + } + } + bool flag22 = this._demonstration || this._firer.IsPlayer || this._firer.IsBoss; + if (flag22) + { + bool flag23 = this._data.CameraEffect != null; + if (flag23) + { + for (int num3 = 0; num3 < this._data.CameraEffect.Count; num3++) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.CameraEffect[num3].At * this._time_scale, this._TimerCallback, this._data.CameraEffect[num3], XArtsSkill.EArtsSkillTimerCb.EShake), false); + } + } + bool flag24 = this._demonstration || this._firer.IsPlayer; + if (flag24) + { + bool flag25 = this._data.CameraMotion != null && !string.IsNullOrEmpty(this._data.CameraMotion.Motion3D); + if (flag25) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.CameraMotion.At * this._time_scale, this._TimerCallback, this._core, XArtsSkill.EArtsSkillTimerCb.ECameraMotion), false); + } + bool flag26 = this._data.CameraPostEffect != null; + if (flag26) + { + bool flag27 = !this._demonstration && !string.IsNullOrEmpty(this._data.CameraPostEffect.Effect); + if (flag27) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.CameraPostEffect.At * this._time_scale, this._TimerCallback, this._core, XArtsSkill.EArtsSkillTimerCb.ECameraPostEffect), false); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.CameraPostEffect.End * this._time_scale, this._TimerCallback, this._core, XArtsSkill.EArtsSkillTimerCb.EEndCameraPostEffect), false); + } + bool flag28 = !this._demonstration && this._data.CameraPostEffect.SolidBlack; + if (flag28) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.CameraPostEffect.Solid_At * this._time_scale, this._TimerCallback, this._core, XArtsSkill.EArtsSkillTimerCb.ESolidBlack), false); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.CameraPostEffect.Solid_End * this._time_scale, this._TimerCallback, null, XArtsSkill.EArtsSkillTimerCb.ESolidBlack), false); + } + } + } + } + bool flag29 = this._data.Logical.SuppressPlayer && !this._demonstration; + if (flag29) + { + XSingleton.singleton.DummilizePlayer(true); + } + } + + protected override void Stop(bool cleanUp) + { + bool set_camera_effect = this._set_camera_effect; + if (set_camera_effect) + { + XCameraMotionEndEventArgs @event = XEventPool.GetEvent(); + @event.Target = this._firer; + @event.Firer = this._affect_camera; + XSingleton.singleton.FireEvent(@event); + this._affect_camera.Ator.speed = 1f; + bool flag = this._firer.IsPlayer && this._end_solo_effect; + if (flag) + { + XSingleton.singleton.GameCamera.TrySolo(); + } + } + this._end_solo_effect = false; + this._set_camera_effect = false; + bool set_camera_shake = this._set_camera_shake; + if (set_camera_shake) + { + XCameraShakeEventArgs event2 = XEventPool.GetEvent(); + event2.Effect = null; + event2.Firer = this._affect_camera; + XSingleton.singleton.FireEvent(event2); + } + this._set_camera_shake = false; + bool flag2 = this._core == this.MainCore; + if (flag2) + { + bool flag3 = this._data.Logical != null && this._data.Logical.QTEData != null && this._data.Logical.QTEData.Count != 0; + if (flag3) + { + this.QTEOff(null); + } + bool demonstration = this._demonstration; + if (demonstration) + { + XAttackShowEndArgs event3 = XEventPool.GetEvent(); + event3.Firer = this._firer; + event3.ForceQuit = false; + XSingleton.singleton.FireEvent(event3); + } + } + for (int i = 0; i < this._fx.Count; i++) + { + XFx xfx = this._fx[i] as XFx; + bool flag4 = xfx != null; + if (flag4) + { + XSingleton.singleton.DestroyFx(xfx, cleanUp); + } + } + bool flag5 = this._data.Manipulation != null && this._data.Manipulation.Count > 0; + if (flag5) + { + XManipulationOffEventArgs event4 = XEventPool.GetEvent(); + event4.DenyToken = 0L; + XSingleton.singleton.FireEvent(event4); + } + bool flag6 = this._data.Logical != null && this._core.PreservedStrength > 0; + if (flag6) + { + this.PreservedSEnd(null); + } + bool flag7 = this._mob_unit.Count > 0; + if (flag7) + { + for (int j = 0; j < this._mob_unit.Count; j++) + { + XEntity xentity = this._mob_unit[j] as XEntity; + bool lifewithinMobbedSkill = xentity.LifewithinMobbedSkill; + if (lifewithinMobbedSkill) + { + XSingleton.singleton.DestroyEntity(xentity); + } + } + } + this._mob_unit.Clear(); + XSingleton.singleton.StopSound(this._firer, AudioChannel.Skill); + bool flag8 = this._data.Logical != null && this._data.Logical.SuppressPlayer && !this._demonstration; + if (flag8) + { + XSingleton.singleton.DedummilizePlayer(); + } + bool flag9 = this._data.CameraPostEffect != null; + if (flag9) + { + bool flag10 = !this._demonstration && !string.IsNullOrEmpty(this._data.CameraPostEffect.Effect); + if (flag10) + { + this._core.EndCameraPostEffect(); + } + bool flag11 = !this._demonstration && this._data.CameraPostEffect.SolidBlack; + if (flag11) + { + this._affect_camera.SolidCancel(); + } + } + this._fx.Clear(); + bool set_not_selected = this._set_not_selected; + if (set_not_selected) + { + this._firer.CanSelected = true; + } + this._set_not_selected = false; + } + + protected override bool Present() + { + return !XSingleton.singleton.IsGreater(this._timeElapsed, this.MainCore.Soul.Time * this._time_scale); + } + + protected override void Result(XResultData data) + { + bool loop = data.Loop; + if (loop) + { + int num = data.Index << 16; + this.LoopResults(num); + } + else + { + bool group = data.Group; + if (group) + { + int num2 = data.Index << 16; + this.GroupResults(num2); + } + else + { + bool longAttackEffect = data.LongAttackEffect; + if (longAttackEffect) + { + this.Project(data, 0, 0, 0); + } + else + { + XSkill.SkillResult(this._token, this._firer, this._core, data.Index, this.MainCore.ID, data.Token, this._firer.Rotate.GetMeaningfulFaceVector3(), this._firer.EngineObject.Position); + } + } + } + } + + private void Project(XResultData param, int additional = 0, int loop = 0, int group = 0) + { + bool flag = param.LongAttackData == null; + if (!flag) + { + bool attack_All = param.Attack_All; + if (attack_All) + { + List opponent = XSingleton.singleton.GetOpponent(this._firer); + int i = 0; + while (i < opponent.Count) + { + bool flag2 = XEntity.ValideEntity(opponent[i]); + if (flag2) + { + bool flag3 = opponent[i].MobbedBy != null && !param.Mobs_Inclusived; + if (!flag3) + { + XSingleton.singleton.ShootBullet(this.GenerateBullet(param, opponent[i], additional, loop, group, -1, true)); + } + } + IL_8D: + i++; + continue; + goto IL_8D; + } + } + else + { + bool warning = param.Warning; + if (warning) + { + for (int j = 0; j < this._core.WarningPosAt[param.Warning_Idx].Count; j++) + { + XSingleton.singleton.ShootBullet(this.GenerateBullet(param, null, additional, loop, group, j, true)); + } + } + else + { + bool reinforce = param.LongAttackData.Reinforce; + if (reinforce) + { + bool flag4 = loop == 0 && group == 0; + if (flag4) + { + List opponent2 = XSingleton.singleton.GetOpponent(this._firer); + for (int k = 0; k < opponent2.Count; k++) + { + bool flag5 = XEntity.ValideEntity(opponent2[k]) && opponent2[k].Buffs != null && opponent2[k].Buffs.IsBuffStateOn(XBuffType.XBuffType_Mark); + if (flag5) + { + XSingleton.singleton.ShootBullet(this.GenerateBullet(param, opponent2[k], additional, 0, 0, -1, true)); + } + } + } + } + else + { + XSingleton.singleton.ShootBullet(this.GenerateBullet(param, base.Target, additional, loop, group, -1, false)); + } + } + } + } + } + + private void LoopResults(object param) + { + int num = (int)param; + int num2 = num >> 16; + int num3 = num & 65535; + bool flag = !this._data.Result[num2].Loop || this._data.Result[num2].Cycle <= 0f || num3 >= this._data.Result[num2].Loop_Count; + if (!flag) + { + bool group = this._data.Result[num2].Group; + if (group) + { + this.GroupResults(num2 << 16 | num3 << 8 | 0); + } + else + { + bool longAttackEffect = this._data.Result[num2].LongAttackEffect; + if (longAttackEffect) + { + this.Project(this._data.Result[num2], 0, num3, 0); + } + else + { + XSkill.SkillResult(this._token, this._firer, this._core, num2, this.MainCore.ID, this._data.Result[num2].Token, this._firer.EngineObject.Forward, this._firer.EngineObject.Position); + } + } + bool flag2 = !this._demonstration && !XEntity.ValideEntity(this._firer); + if (!flag2) + { + num3++; + bool flag3 = num3 < this._data.Result[num2].Loop_Count; + if (flag3) + { + num = (num2 << 16 | num3); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Result[num2].Cycle * this._time_scale, this._TimerCallback, num, XArtsSkill.EArtsSkillTimerCb.ELoopResults), true); + } + } + } + } + + private void GroupResults(object param) + { + int num = (int)param; + int num2 = num >> 16; + int num3 = num & 255; + int num4 = (num & 65280) >> 8; + bool flag = !this._data.Result[num2].Group || num3 >= this._data.Result[num2].Group_Count; + if (!flag) + { + Vector3 forward = this._firer.EngineObject.Forward; + int num5 = this._data.Result[num2].Deviation_Angle + this._data.Result[num2].Angle_Step * num3; + num5 = (this._data.Result[num2].Clockwise ? num5 : (-num5)); + bool longAttackEffect = this._data.Result[num2].LongAttackEffect; + if (longAttackEffect) + { + this.Project(this._data.Result[num2], num5, num4, num3); + } + else + { + XSkill.SkillResult(this._token, this._firer, this._core, num2, this.MainCore.ID, this._data.Result[num2].Token, XSingleton.singleton.HorizontalRotateVetor3(forward, (float)num5, true), this._firer.EngineObject.Position); + } + bool flag2 = !this._demonstration && !XEntity.ValideEntity(this._firer); + if (!flag2) + { + num3++; + bool flag3 = num3 < this._data.Result[num2].Group_Count; + if (flag3) + { + num = (num2 << 16 | num4 << 8 | num3); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Result[num2].Time_Step * this._time_scale, this._TimerCallback, num, XArtsSkill.EArtsSkillTimerCb.EGroupResults), true); + } + } + } + } + + protected void Charge(object o) + { + XChargeData xchargeData = o as XChargeData; + this.ChargeTo(xchargeData.Index); + } + + protected void QTEOn(object o) + { + bool flag = !this._firer.Destroying && this._firer.QTE != null; + if (flag) + { + XSkillQTEEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._firer; + @event.State = (uint)((o != null) ? ((int)o) : 0); + @event.On = true; + XSingleton.singleton.FireEvent(@event); + } + } + + protected void QTEOff(object o) + { + bool flag = !this._firer.Destroying && this._firer.QTE != null; + if (flag) + { + XSkillQTEEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._firer; + @event.State = (uint)((o != null) ? ((int)o) : 0); + @event.On = false; + XSingleton.singleton.FireEvent(@event); + } + } + + protected void ChargeTo(int o) + { + int index = o & 255; + float timeGone = (float)(o >> 16) / 1000f; + XChargeEventArgs @event = XEventPool.GetEvent(); + @event.Token = this._token; + @event.Data = this._data.Charge[index]; + @event.TimeGone = timeGone; + @event.TimeScale = this._time_scale; + @event.AimedTarget = (@event.Data.AimTarget ? base.Target : null); + @event.TimeSpan = this._data.Charge[index].End - (this._data.Charge[index].Using_Curve ? 0f : this._data.Charge[index].At); + @event.Firer = this._firer; + XSingleton.singleton.FireEvent(@event); + } + + protected void Audio(object o) + { + XAudioData xaudioData = o as XAudioData; + XSingleton.singleton.PlaySound(this._firer, xaudioData.Channel, xaudioData.Clip); + } + + protected void PreservedSAt(object o) + { + int num = (int)o; + XStrengthPresevationOnArgs @event = XEventPool.GetEvent(); + @event.Host = this._firer; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + XAttrChangeEventArgs event2 = XEventPool.GetEvent(); + event2.AttrKey = XAttributeDefine.XAttr_CurrentXULI_Basic; + event2.DeltaValue = (double)num - this._firer.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentXULI_Basic); + event2.Firer = this._firer; + XSingleton.singleton.FireEvent(event2); + } + + protected void PreservedSEnd(object o) + { + XStrengthPresevationOffArgs @event = XEventPool.GetEvent(); + @event.Host = this._firer; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + protected void ExString(object o) + { + XSingleton.singleton.SetExternalString(o as string, false); + } + + protected void Manipulate(object o) + { + XManipulationData xmanipulationData = o as XManipulationData; + XManipulationOnEventArgs @event = XEventPool.GetEvent(); + @event.data = xmanipulationData; + @event.Firer = this._firer; + long token = @event.Token; + XSingleton.singleton.FireEvent(@event); + base.AddedTimerToken(XSingleton.singleton.SetTimer((xmanipulationData.End - xmanipulationData.At) * this._time_scale, this._TimerCallback, token, XArtsSkill.EArtsSkillTimerCb.EKillManipulate), true); + } + + protected void MoveMob() + { + XMoveMobEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._firer; + XSingleton.singleton.FireEvent(@event); + } + + protected void Mob(object o) + { + XMobUnitData xmobUnitData = o as XMobUnitData; + bool flag = (long)xmobUnitData.TemplateID == (long)((ulong)XArtsSkill._move_mob_id); + if (flag) + { + this.MoveMob(); + } + else + { + Vector3 vector = this._firer.EngineObject.Rotation * new Vector3(xmobUnitData.Offset_At_X, xmobUnitData.Offset_At_Y, xmobUnitData.Offset_At_Z); + Vector3 vector2 = this._firer.EngineObject.Position + vector; + bool flag2 = !this._demonstration; + if (flag2) + { + float num = 0f; + bool flag3 = !XSingleton.singleton.TryGetTerrainY(vector2, out num) || num < 0f; + if (flag3) + { + vector2 = this._firer.EngineObject.Position; + } + } + XEntity xentity = this._demonstration ? XSingleton.singleton.CreateDummy((uint)xmobUnitData.TemplateID, vector2, this._firer.EngineObject.Rotation) : XSingleton.singleton.CreateEntityByCaller(this._firer, (uint)xmobUnitData.TemplateID, vector2, this._firer.EngineObject.Rotation, true, this._firer.Attributes.FightGroup); + bool flag4 = xentity != null; + if (flag4) + { + bool isDummy = xentity.IsDummy; + if (isDummy) + { + xentity.LifewithinMobbedSkill = true; + xentity.MobShield = false; + } + else + { + xentity.MobShieldable = xmobUnitData.Shield; + xentity.MobShield = XSingleton.singleton.MobShield(xentity); + xentity.LifewithinMobbedSkill = xmobUnitData.LifewithinSkill; + } + bool flag5 = this._firer.Skill.AddSkillMob(xentity); + if (flag5) + { + bool flag6 = !xentity.IsDummy; + if (flag6) + { + XSingleton.singleton.SetMobProperty(xentity, this._firer, this._core.ID); + bool isBoss = this._firer.IsBoss; + if (isBoss) + { + XSecurityAIInfo xsecurityAIInfo = XSecurityAIInfo.TryGetStatistics(this._firer); + bool flag7 = xsecurityAIInfo != null; + if (flag7) + { + xsecurityAIInfo.OnExternalCallMonster(); + } + } + } + this._mob_unit.Add(xentity); + } + } + } + } + + protected void CastChain(object o) + { + bool flag = this._firer.Skill.SkillMobs == null; + if (!flag) + { + XCastChain xcastChain = o as XCastChain; + for (int i = 0; i < this._firer.Skill.SkillMobs.Count; i++) + { + bool flag2 = (ulong)this._firer.Skill.SkillMobs[i].TypeID == (ulong)((long)xcastChain.TemplateID) && XEntity.ValideEntity(this._firer.Skill.SkillMobs[i]); + if (flag2) + { + XAttackEventArgs @event = XEventPool.GetEvent(); + @event.Identify = XSingleton.singleton.XHash(xcastChain.Name); + @event.Firer = this._firer.Skill.SkillMobs[i]; + @event.Target = null; + XSingleton.singleton.FireEvent(@event); + } + } + } + } + + private XFx FilterFx(Vector3 pos, string path) + { + bool flag = string.IsNullOrEmpty(path); + XFx result; + if (flag) + { + result = null; + } + else + { + bool flag2 = XSingleton.singleton.FilterFx && this._firer != null && !this._firer.IsPlayer && !this._firer.IsBoss && !(this._firer is XDummy); + if (flag2) + { + Vector3 position = XSingleton.singleton.Player.EngineObject.Position; + float num = (pos.x - position.x) * (pos.x - position.x) + (pos.z - position.z) * (pos.z - position.z); + bool flag3 = num < XFxMgr.FilterFxDis4; + if (flag3) + { + result = XSingleton.singleton.CreateFx(path, null, true); + } + else + { + result = null; + } + } + else + { + result = XSingleton.singleton.CreateFx(path, null, true); + } + } + return result; + } + + protected void Fx(object o) + { + XFxData xfxData = o as XFxData; + Vector3 zero = Vector3.zero; + XGameObject xgameObject = this._firer.IsTransform ? this._firer.Transformer.EngineObject : this._firer.EngineObject; + SkillFxType type = xfxData.Type; + if (type != SkillFxType.FirerBased) + { + if (type == SkillFxType.TargetBased) + { + bool flag = this._data.NeedTarget && base.HasValidTarget(); + if (flag) + { + zero= new Vector3(xfxData.Target_OffsetX, xfxData.Target_OffsetY, xfxData.Target_OffsetZ); + xgameObject = (base.Target.IsTransform ? base.Target.Transformer.EngineObject : base.Target.EngineObject); + } + else + { + zero= new Vector3(xfxData.OffsetX, xfxData.OffsetY, xfxData.OffsetZ); + xgameObject = (this._firer.IsTransform ? this._firer.Transformer.EngineObject : this._firer.EngineObject); + } + } + } + else + { + zero= new Vector3(xfxData.OffsetX, xfxData.OffsetY, xfxData.OffsetZ); + xgameObject = (this._firer.IsTransform ? this._firer.Transformer.EngineObject : this._firer.EngineObject); + } + bool flag2 = !this._demonstration && xfxData.StickToGround; + XFx xfx; + if (flag2) + { + zero.y = 0f; + Vector3 vector = xgameObject.Position + xgameObject.Rotation * zero; + vector.y = XSingleton.singleton.TerrainY(vector); + Quaternion rotation = XSingleton.singleton.RotateToGround(vector, xgameObject.Forward); + xfx = this.FilterFx(vector, xfxData.Fx); + bool flag3 = xfx == null; + if (flag3) + { + return; + } + xfx.DelayDestroy = xfxData.Destroy_Delay * this._time_scale; + xfx.Play(vector, rotation, new Vector3(xfxData.ScaleX, xfxData.ScaleY, xfxData.ScaleZ), this._time_scale); + } + else + { + xfx = this.FilterFx(xgameObject.Position, xfxData.Fx); + bool flag4 = xfx == null; + if (flag4) + { + return; + } + xfx.DelayDestroy = xfxData.Destroy_Delay * this._time_scale; + xfx.Play(xgameObject, zero, new Vector3(xfxData.ScaleX, xfxData.ScaleY, xfxData.ScaleZ), this._time_scale, xfxData.Follow, false, xfxData.Bone, 0f); + } + this.RegisterFx(xfx, ((xfxData.End > 0f && xfxData.End < (xfxData.Combined ? this.MainCore.Soul.Time : this._core.Soul.Time)) ? (xfxData.End - xfxData.At) : -1f) * this._time_scale, xfxData.Combined); + } + + protected void Warning(object o) + { + XWarningData xwarningData = o as XWarningData; + this._core.WarningPosAt[xwarningData.Index].Clear(); + bool flag = xwarningData.RandomWarningPos || xwarningData.Type == XWarningType.Warning_Multiple; + if (flag) + { + ulong num = 0UL; + List list = this._core.WarningRandomAt[xwarningData.Index]; + for (int i = 0; i < list.Count; i++) + { + XEntity xentity = (list[i].ID == 0UL) ? base.Target : XSingleton.singleton.GetEntity(list[i].ID); + for (int j = 0; j < list[i].Pos.Count; j++) + { + num += 1UL; + bool flag2 = xentity != null; + if (flag2) + { + uint num2 = list[i].Pos[j]; + float num3 = (num2 & 65535u) / 10f; + uint num4 = num2 >> 16; + XSkillCore.XSkillWarningPackage xskillWarningPackage = default(XSkillCore.XSkillWarningPackage); + Vector3 vector = num3 * XSingleton.singleton.HorizontalRotateVetor3(Vector3.forward, num4, true); + float num5 = xentity.EngineObject.Position.x + vector.x; + float num6 = xentity.EngineObject.Position.z + vector.z; + float num7 = 0f; + bool flag3 = !XSingleton.singleton.TryGetTerrainY(new Vector3(num5, num7, num6), out num7) || num7 < 0f; + if (flag3) + { + num7 = xentity.EngineObject.Position.y; + } + xskillWarningPackage.WarningAt = new Vector3(num5, num7, num6); + xskillWarningPackage.WarningTo = num; + this._core.WarningPosAt[xwarningData.Index].Add(xskillWarningPackage); + XFx xfx = this.FilterFx(xskillWarningPackage.WarningAt, xwarningData.Fx); + bool flag4 = xfx != null; + if (flag4) + { + xfx.Play(xskillWarningPackage.WarningAt, this._demonstration ? Quaternion.identity : XSingleton.singleton.RotateToGround(xskillWarningPackage.WarningAt, Vector3.forward), xwarningData.Scale * Vector3.one, this._time_scale); + bool flag5 = xfx != null; + if (flag5) + { + this.RegisterFx(xfx, xwarningData.FxDuration * this._time_scale, false); + } + } + } + } + } + } + else + { + switch (xwarningData.Type) + { + case XWarningType.Warning_None: + { + XSkillCore.XSkillWarningPackage xskillWarningPackage2 = default(XSkillCore.XSkillWarningPackage); + Vector3 vector2 = this._firer.EngineObject.Rotation * new Vector3(xwarningData.OffsetX, xwarningData.OffsetY, xwarningData.OffsetZ); + float num8 = this._firer.EngineObject.Position.x + vector2.x; + float num9 = this._firer.EngineObject.Position.z + vector2.z; + float num10 = 0f; + bool flag6 = (!this._demonstration && !XSingleton.singleton.TryGetTerrainY(new Vector3(num8, num10, num9), out num10)) || num10 < 0f; + if (flag6) + { + num10 = this._firer.EngineObject.Position.y; + } + num10 = (this._demonstration ? this._firer.EngineObject.Position.y : (num10 + vector2.y)); + xskillWarningPackage2.WarningAt = new Vector3(num8, num10, num9); + xskillWarningPackage2.WarningTo = 0UL; + this._core.WarningPosAt[xwarningData.Index].Add(xskillWarningPackage2); + XFx xfx2 = this.FilterFx(xskillWarningPackage2.WarningAt, xwarningData.Fx); + bool flag7 = xfx2 != null; + if (flag7) + { + xfx2.Play(xskillWarningPackage2.WarningAt, this._demonstration ? Quaternion.identity : XSingleton.singleton.RotateToGround(xskillWarningPackage2.WarningAt, Vector3.forward), xwarningData.Scale * Vector3.one, this._time_scale); + bool flag8 = xfx2 != null; + if (flag8) + { + this.RegisterFx(xfx2, xwarningData.FxDuration * this._time_scale, false); + } + } + break; + } + case XWarningType.Warning_Target: + { + XSkillCore.XSkillWarningPackage xskillWarningPackage3 = default(XSkillCore.XSkillWarningPackage); + bool flag9 = base.HasValidTarget(); + if (flag9) + { + xskillWarningPackage3.WarningAt = new Vector3(base.Target.EngineObject.Position.x, XSingleton.singleton.TerrainY(base.Target.EngineObject.Position), base.Target.EngineObject.Position.z); + xskillWarningPackage3.WarningTo = base.Target.ID; + this._core.WarningPosAt[xwarningData.Index].Add(xskillWarningPackage3); + } + else + { + Vector3 vector3 = this._firer.EngineObject.Rotation * new Vector3(xwarningData.OffsetX, xwarningData.OffsetY, xwarningData.OffsetZ); + float num11 = this._firer.EngineObject.Position.x + vector3.x; + float num12 = this._firer.EngineObject.Position.z + vector3.z; + float num13 = 0f; + bool flag10 = (!this._demonstration && !XSingleton.singleton.TryGetTerrainY(new Vector3(num11, num13, num12), out num13)) || num13 < 0f; + if (flag10) + { + num13 = this._firer.EngineObject.Position.y; + } + num13 = (this._demonstration ? this._firer.EngineObject.Position.y : (num13 + vector3.y)); + xskillWarningPackage3.WarningAt = new Vector3(num11, num13, num12); + xskillWarningPackage3.WarningTo = 0UL; + this._core.WarningPosAt[xwarningData.Index].Add(xskillWarningPackage3); + } + XFx xfx3 = this.FilterFx(xskillWarningPackage3.WarningAt, xwarningData.Fx); + bool flag11 = xfx3 != null; + if (flag11) + { + xfx3.Play(xskillWarningPackage3.WarningAt, this._demonstration ? Quaternion.identity : XSingleton.singleton.RotateToGround(xskillWarningPackage3.WarningAt, Vector3.forward), xwarningData.Scale * Vector3.one, this._time_scale); + bool flag12 = xfx3 != null; + if (flag12) + { + this.RegisterFx(xfx3, xwarningData.FxDuration * this._time_scale, false); + } + } + break; + } + case XWarningType.Warning_All: + { + List opponent = XSingleton.singleton.GetOpponent(this._firer); + int k = 0; + while (k < opponent.Count) + { + bool flag13 = XEntity.ValideEntity(opponent[k]); + if (flag13) + { + bool flag14 = opponent[k].MobbedBy != null && !xwarningData.Mobs_Inclusived; + if (!flag14) + { + XSkillCore.XSkillWarningPackage xskillWarningPackage4 = default(XSkillCore.XSkillWarningPackage); + xskillWarningPackage4.WarningAt = opponent[k].EngineObject.Position; + xskillWarningPackage4.WarningAt.y = XSingleton.singleton.TerrainY(opponent[k].EngineObject.Position); + xskillWarningPackage4.WarningTo = opponent[k].ID; + this._core.WarningPosAt[xwarningData.Index].Add(xskillWarningPackage4); + XFx xfx4 = this.FilterFx(xskillWarningPackage4.WarningAt, xwarningData.Fx); + bool flag15 = xfx4 != null; + if (flag15) + { + xfx4.Play(xskillWarningPackage4.WarningAt, XSingleton.singleton.RotateToGround(xskillWarningPackage4.WarningAt, Vector3.forward), xwarningData.Scale * Vector3.one, this._time_scale); + this.RegisterFx(xfx4, xwarningData.FxDuration * this._time_scale, false); + } + } + } + IL_7F8: + k++; + continue; + goto IL_7F8; + } + break; + } + } + } + } + + protected void CameraMotion(object o) + { + bool flag = !XSingleton.singleton.IsCurrentLevelFinished; + if (flag) + { + XSkillCore xskillCore = o as XSkillCore; + this._affect_camera.Ator.speed = base.TimeScale; + XCameraMotionEventArgs @event = XEventPool.GetEvent(); + @event.Motion = (xskillCore.Soul.CameraMotion.Clone() as XCameraMotionData); + @event.Motion.Follow_Position = true; + @event.Motion.Coordinate = CameraMotionSpace.World; + XOperationMode operationMode = XSingleton.singleton.OperationMode; + if (operationMode != XOperationMode.X25D) + { + if (operationMode - XOperationMode.X3D <= 1) + { + @event.Motion.MotionType = @event.Motion.Motion3DType; + @event.Motion.Motion = @event.Motion.Motion3D; + } + } + else + { + @event.Motion.MotionType = (string.IsNullOrEmpty(@event.Motion.Motion2_5D) ? @event.Motion.Motion3DType : @event.Motion.Motion2_5DType); + @event.Motion.Motion = (string.IsNullOrEmpty(@event.Motion.Motion2_5D) ? @event.Motion.Motion3D : @event.Motion.Motion2_5D); + } + CameraMotionType motionType = @event.Motion.MotionType; + if (motionType != CameraMotionType.AnchorBased) + { + if (motionType == CameraMotionType.CameraBased) + { + @event.Motion.AutoSync_At_Begin = false; + } + } + else + { + @event.Motion.AutoSync_At_Begin = true; + @event.Motion.LookAt_Target = false; + bool flag2 = XSingleton.singleton.GameCamera.Solo != null; + if (flag2) + { + XSingleton.singleton.GameCamera.Solo.Stop(); + this._end_solo_effect = true; + } + } + @event.Target = this._firer; + @event.Trigger = "ToEffect"; + @event.Firer = this._affect_camera; + bool flag3 = xskillCore != this._core; + if (flag3) + { + this._combined_set_camera_effect = XSingleton.singleton.FireEvent(@event); + } + else + { + this._set_camera_effect = XSingleton.singleton.FireEvent(@event); + } + } + } + + protected void CameraPostEffect(object o) + { + XSkillCore xskillCore = o as XSkillCore; + xskillCore.StartCameraPostEffect(); + } + + protected void EndCameraPostEffect(object o) + { + XSkillCore xskillCore = o as XSkillCore; + xskillCore.EndCameraPostEffect(); + } + + protected void NotSelected(object o) + { + this._firer.CanSelected = (o == null); + bool flag = !this._firer.CanSelected; + if (flag) + { + XSkillCore xskillCore = o as XSkillCore; + bool flag2 = xskillCore == this.MainCore; + if (flag2) + { + this._combined_set_not_selected = true; + } + else + { + this._set_not_selected = true; + } + } + } + + protected void Shake(object o) + { + XCameraEffectData xcameraEffectData = o as XCameraEffectData; + XCameraShakeEventArgs @event = XEventPool.GetEvent(); + @event.Effect = xcameraEffectData; + @event.TimeScale = this._time_scale; + @event.Firer = this._affect_camera; + bool combined = xcameraEffectData.Combined; + if (combined) + { + this._combined_set_camera_shake = XSingleton.singleton.FireEvent(@event); + } + else + { + this._set_camera_shake = XSingleton.singleton.FireEvent(@event); + } + } + + protected void SolidBlack(object o) + { + bool flag = o == null; + if (flag) + { + this._affect_camera.SolidCancel(); + } + else + { + this._affect_camera.SolidBlack(); + } + } + + private void KillManipulate(object o) + { + XManipulationOffEventArgs @event = XEventPool.GetEvent(); + @event.DenyToken = (long)o; + @event.Firer = this._firer; + XSingleton.singleton.FireEvent(@event); + } + + private void KillFx(object o) + { + XFx xfx = o as XFx; + this._fx.Remove(xfx); + this._combined_fx.Remove(xfx); + XSingleton.singleton.DestroyFx(xfx, false); + } + + private XBullet GenerateBullet(XResultData data, XEntity target, int additional, int loop, int group, int wid = -1, bool extrainfo = false) + { + ulong bulletid = (ulong)((this._firer.Net == null) ? XSingleton.singleton.UniqueToken : ((long)loop << 56 | (long)group << 48 | (long)((long)((ulong)this.GetCombinedId()) << 40) | (long)data.Index << 32 | (long)((ulong)((uint)this._token)))); + int diviation = data.LongAttackData.FireAngle + additional; + XBullet xbullet = XSingleton.singleton.CreateBullet(bulletid, this._token, this._firer, target, this._core, data, this.MainCore.ID, diviation, this._demonstration, wid); + if (extrainfo) + { + xbullet.ExtraID = (XEntity.ValideEntity(target) ? target.ID : this._core.WarningPosAt[data.Warning_Idx][wid].WarningTo); + } + return xbullet; + } + + private void RegisterFx(XFx fx, float duration, bool combined) + { + if (combined) + { + this._combined_fx.Add(fx); + bool flag = duration > 0f; + if (flag) + { + XCombinedSkill xcombinedSkill = this as XCombinedSkill; + xcombinedSkill.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(duration, this._TimerCallback, fx, XArtsSkill.EArtsSkillTimerCb.EKillFx)); + } + } + else + { + this._fx.Add(fx); + bool flag2 = duration > 0f; + if (flag2) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(duration, this._TimerCallback, fx, XArtsSkill.EArtsSkillTimerCb.EKillFx), false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XArtsSkill.cs.meta b/Client/Assets/Scripts/XMainClient/XArtsSkill.cs.meta new file mode 100644 index 00000000..23f5844c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XArtsSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f5b5a7310d58d548a153461771a2aca +timeCreated: 1611403208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAssociatedCamera.cs b/Client/Assets/Scripts/XMainClient/XAssociatedCamera.cs new file mode 100644 index 00000000..b1d09794 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAssociatedCamera.cs @@ -0,0 +1,16 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XAssociatedCamera : IAssociatedCamera, IXInterface + { + public bool Deprecated { get; set; } + + public Camera Get() + { + return XSingleton.singleton.AssociatedCamera; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAssociatedCamera.cs.meta b/Client/Assets/Scripts/XMainClient/XAssociatedCamera.cs.meta new file mode 100644 index 00000000..6959f07b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAssociatedCamera.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d82c74bd95c9a34fbf11d975890828c +timeCreated: 1611403196 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs new file mode 100644 index 00000000..18df772e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs @@ -0,0 +1,41 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAttackEventArgs : XEventArgs + { + public uint Identify; + + public XEntity Target = null; + + public int Slot = -1; + + public uint SyncSequence = 0u; + + public bool Demonstration = false; + + public XCameraEx AffectCamera = XSingleton.singleton.GameCamera; + + public float TimeScale = 1f; + + public XAttackEventArgs() + { + this._eDefine = XEventDefine.XEvent_Attack; + } + + public override void Recycle() + { + this.Identify = 0u; + this.Target = null; + this.Slot = -1; + this.Demonstration = false; + this.AffectCamera = XSingleton.singleton.GameCamera; + this.TimeScale = 1f; + this.SyncSequence = 0u; + base.Recycle(); + base.Token = (XSingleton.singleton.UniqueToken ^ (long)DateTime.Now.Millisecond); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs.meta new file mode 100644 index 00000000..a4349211 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttackEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15e6ab26de28256469886917f8e2c301 +timeCreated: 1611403266 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttackShowArgs.cs b/Client/Assets/Scripts/XMainClient/XAttackShowArgs.cs new file mode 100644 index 00000000..9b0f618a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttackShowArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XAttackShowArgs : XEventArgs + { + public string name; + + public XAttackShowArgs() + { + this._eDefine = XEventDefine.XEvent_AttackShow; + } + + public override void Recycle() + { + base.Recycle(); + this.name = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttackShowArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAttackShowArgs.cs.meta new file mode 100644 index 00000000..3959f5a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttackShowArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: adc14e9aa1ea29d4999214003f940a8e +timeCreated: 1611404335 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttackShowBeginArgs.cs b/Client/Assets/Scripts/XMainClient/XAttackShowBeginArgs.cs new file mode 100644 index 00000000..08eb03f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttackShowBeginArgs.cs @@ -0,0 +1,22 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XAttackShowBeginArgs : XEventArgs + { + public GameObject XCamera = null; + + public XAttackShowBeginArgs() + { + this._eDefine = XEventDefine.XEvent_AttackShowBegin; + } + + public override void Recycle() + { + base.Recycle(); + this.XCamera = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttackShowBeginArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAttackShowBeginArgs.cs.meta new file mode 100644 index 00000000..d4cad0d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttackShowBeginArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3c96ff964b44774b9952527c101a001 +timeCreated: 1611404280 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttackShowEndArgs.cs b/Client/Assets/Scripts/XMainClient/XAttackShowEndArgs.cs new file mode 100644 index 00000000..55e075b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttackShowEndArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XAttackShowEndArgs : XEventArgs + { + public bool ForceQuit = true; + + public XAttackShowEndArgs() + { + this._eDefine = XEventDefine.XEvent_AttackShowEnd; + } + + public override void Recycle() + { + base.Recycle(); + this.ForceQuit = true; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttackShowEndArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAttackShowEndArgs.cs.meta new file mode 100644 index 00000000..f5db63ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttackShowEndArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f7fe216fd8a191e44a18380aa76cad89 +timeCreated: 1611404890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs b/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs new file mode 100644 index 00000000..02963d57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs @@ -0,0 +1,34 @@ +using System; + +namespace XMainClient +{ + internal class XAttrChangeEventArgs : XEventArgs + { + public XAttributeDefine AttrKey { get; set; } + + public double DeltaValue { get; set; } + + public ulong CasterID { get; set; } + + public bool bShowHUD { get; set; } + + public XAttrChangeEventArgs() + { + this._eDefine = XEventDefine.XEvent_AttributeChange; + this.AttrKey = XAttributeDefine.XAttr_Invalid; + this.DeltaValue = 0.0; + this.bShowHUD = false; + this.CasterID = 0UL; + } + + public override void Recycle() + { + this.AttrKey = XAttributeDefine.XAttr_Invalid; + this.DeltaValue = 0.0; + this.bShowHUD = false; + this.CasterID = 0UL; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs.meta new file mode 100644 index 00000000..6eb2df7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrChangeEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99cf48d112bbf624e8848948c443671b +timeCreated: 1611404197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttrCommonFile.cs b/Client/Assets/Scripts/XMainClient/XAttrCommonFile.cs new file mode 100644 index 00000000..7cd09596 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrCommonFile.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + internal abstract class XAttrCommonFile + { + public abstract string FileName { get; } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttrCommonFile.cs.meta b/Client/Assets/Scripts/XMainClient/XAttrCommonFile.cs.meta new file mode 100644 index 00000000..9ee93708 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrCommonFile.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 940d0cc38e5b8274b8bb9115ffed4b8b +timeCreated: 1611404153 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttrCommonHandler.cs b/Client/Assets/Scripts/XMainClient/XAttrCommonHandler.cs new file mode 100644 index 00000000..91abc89e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrCommonHandler.cs @@ -0,0 +1,256 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAttrCommonHandler : DlgHandlerBase where T : XAttrCommonFile, new() + { + public List AttrDataList + { + get + { + return this.m_AttrDataList; + } + } + + protected override string FileName + { + get + { + return this.m_File.FileName; + } + } + + private XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_TitlePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_EmptyPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_SinglePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUISprite m_Close; + + private IXUIScrollView m_ScrollView; + + private List m_AttrList = new List(); + + private List m_UILabelList = new List(); + + private List m_AttrDataList = new List(); + + private T m_File; + + public XAttrCommonHandler() + { + this.m_File = Activator.CreateInstance(); + } + + protected override void Init() + { + base.Init(); + Transform transform = base.PanelObject.transform.Find("AttrFrame/Panel/TitleTpl"); + this.m_TitlePool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = base.PanelObject.transform.Find("AttrFrame/Panel/AttrTpl"); + this.m_AttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = base.PanelObject.transform.Find("AttrFrame/Panel/EmptyTpl"); + this.m_EmptyPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + transform = base.PanelObject.transform.Find("AttrFrame/Panel/SkillItem"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = base.PanelObject.transform.Find("AttrFrame/Panel/SingleItem"); + this.m_SinglePool.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + this.m_ScrollView = (base.PanelObject.transform.Find("AttrFrame/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + transform = base.PanelObject.transform.Find("AttrFrame/Close"); + bool flag = transform != null; + if (flag) + { + this.m_Close = (transform.GetComponent("XUISprite") as IXUISprite); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + bool flag = this.m_Close != null; + if (flag) + { + this.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseClicked)); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_TitlePool.ReturnAll(false); + this.m_AttrPool.ReturnAll(false); + this.m_EmptyPool.ReturnAll(false); + this.m_SkillPool.ReturnAll(false); + this.m_SinglePool.ReturnAll(false); + } + + private void _OnCloseClicked(IXUISprite iSp) + { + base.SetVisible(false); + } + + public void EnableClose(bool bEnable) + { + bool flag = this.m_Close != null; + if (flag) + { + this.m_Close.SetVisible(bEnable); + } + } + + protected void _ResetData() + { + for (int i = 0; i < this.m_AttrDataList.Count; i++) + { + this.m_AttrDataList[i].Recycle(); + } + this.m_AttrDataList.Clear(); + } + + protected XAttrData _FetchAttrData() + { + XAttrData data = XDataPool.GetData(); + this.m_AttrDataList.Add(data); + return data; + } + + public virtual void SetData() + { + this._ResetData(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.SetData(); + this.RefreshPage(); + this.m_ScrollView.ResetPosition(); + } + + public void RefreshPage() + { + this.m_TitlePool.FakeReturnAll(); + this.m_AttrPool.FakeReturnAll(); + this.m_EmptyPool.FakeReturnAll(); + this.m_SkillPool.FakeReturnAll(); + this.m_SinglePool.FakeReturnAll(); + int num = 0; + int i = 0; + while (i < this.m_AttrDataList.Count) + { + XAttrData xattrData = this.m_AttrDataList[i]; + GameObject gameObject = this.m_TitlePool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(this.m_TitlePool.TplPos.x, (float)num, this.m_TitlePool.TplPos.z); + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(xattrData.Title); + num -= this.m_TitlePool.TplHeight; + GameObject gameObject2 = null; + bool flag = string.IsNullOrEmpty(xattrData.StrEmpty); + if (flag) + { + bool flag2 = xattrData.Left.Count != xattrData.Right.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Format("data.Left.Count != data.Right.Count, {0} != {1}", xattrData.Left.Count, xattrData.Right.Count), null, null, null, null, null); + } + else + { + IXUILabel ixuilabel2 = this.m_SinglePool._tpl.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + int num2 = this.m_SinglePool.TplHeight - ixuilabel2.fontSize; + int num3 = ixuilabel2.spriteHeight / 2; + for (int j = 0; j < xattrData.Left.Count; j++) + { + switch (xattrData.Type) + { + case AttriDataType.Attri: + gameObject2 = this.m_AttrPool.FetchGameObject(false); + break; + case AttriDataType.Skill: + gameObject2 = this.m_SkillPool.FetchGameObject(false); + break; + case AttriDataType.SingleLine: + { + gameObject2 = this.m_SinglePool.FetchGameObject(false); + bool flag3 = j == 0; + if (flag3) + { + num += num3; + } + break; + } + } + gameObject2.transform.localPosition = new Vector3(this.m_AttrPool.TplPos.x, (float)num, this.m_AttrPool.TplPos.z); + AttriDataType type = xattrData.Type; + if (type - AttriDataType.Attri > 1) + { + if (type == AttriDataType.SingleLine) + { + ixuilabel2 = (gameObject2.transform.Find("Text").GetComponent("XUILabel") as IXUILabel); + ixuilabel2.SetText(xattrData.Left[j]); + } + } + else + { + IXUILabel ixuilabel3 = gameObject2.transform.Find("Left").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject2.transform.Find("Right").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(xattrData.Left[j]); + ixuilabel4.SetText(xattrData.Right[j]); + } + switch (xattrData.Type) + { + case AttriDataType.Attri: + num -= this.m_AttrPool.TplHeight; + break; + case AttriDataType.Skill: + num -= this.m_SkillPool.TplHeight; + break; + case AttriDataType.SingleLine: + { + num -= ixuilabel2.spriteHeight + num2; + bool flag4 = j == xattrData.Left.Count - 1; + if (flag4) + { + num -= num3; + } + break; + } + } + } + } + } + else + { + GameObject gameObject3 = this.m_EmptyPool.FetchGameObject(false); + gameObject3.transform.localPosition = new Vector3(this.m_EmptyPool.TplPos.x, (float)num, this.m_EmptyPool.TplPos.z); + IXUILabel ixuilabel5 = gameObject3.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetText(xattrData.StrEmpty); + num -= this.m_EmptyPool.TplHeight; + } + IL_40B: + i++; + continue; + goto IL_40B; + } + this.m_TitlePool.ActualReturnAll(false); + this.m_AttrPool.ActualReturnAll(false); + this.m_EmptyPool.ActualReturnAll(false); + this.m_SkillPool.ActualReturnAll(false); + this.m_SinglePool.ActualReturnAll(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttrCommonHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XAttrCommonHandler.cs.meta new file mode 100644 index 00000000..8a90391e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrCommonHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f911d07ae4fa3e4da63cc3d79ab3bce +timeCreated: 1611404030 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttrData.cs b/Client/Assets/Scripts/XMainClient/XAttrData.cs new file mode 100644 index 00000000..c9c4ba0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrData.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XAttrData : XDataBase + { + public string Title { get; set; } + + public string StrEmpty { get; set; } + + public List Left + { + get + { + return this.m_Left; + } + } + + public List Right + { + get + { + return this.m_Right; + } + } + + public AttriDataType Type { get; set; } + + private List m_Left = new List(); + + private List m_Right = new List(); + + public void Reset() + { + this.m_Left.Clear(); + this.m_Right.Clear(); + this.Title = string.Empty; + this.StrEmpty = string.Empty; + } + + public override void Init() + { + base.Init(); + this.Reset(); + } + + public override void Recycle() + { + XDataPool.Recycle(this); + this.Reset(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttrData.cs.meta b/Client/Assets/Scripts/XMainClient/XAttrData.cs.meta new file mode 100644 index 00000000..1d1a076e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df14c3be3884d4b4aafb6f4723557f30 +timeCreated: 1611404691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttrItem.cs b/Client/Assets/Scripts/XMainClient/XAttrItem.cs new file mode 100644 index 00000000..581b47e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrItem.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XAttrItem : XItem + { + public List changeAttr = new List(); + + public IEnumerable BasicAttr() + { + return this.changeAttr; + } + + public override void Init() + { + base.Init(); + this.changeAttr.Clear(); + } + + public override uint GetPPT(XAttributes attributes = null) + { + double num = 0.0; + for (int i = 0; i < this.changeAttr.Count; i++) + { + num += XSingleton.singleton.GetPPT(this.changeAttr[i], attributes, -1); + } + return (uint)num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttrItem.cs.meta b/Client/Assets/Scripts/XMainClient/XAttrItem.cs.meta new file mode 100644 index 00000000..cc5c077d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00c00dbaab350394fa0352d901bbd16a +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttrOtherFile.cs b/Client/Assets/Scripts/XMainClient/XAttrOtherFile.cs new file mode 100644 index 00000000..935bb6e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrOtherFile.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class XAttrOtherFile : XAttrCommonFile + { + public override string FileName + { + get + { + return "ItemNew/OtherAttrPanel"; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttrOtherFile.cs.meta b/Client/Assets/Scripts/XMainClient/XAttrOtherFile.cs.meta new file mode 100644 index 00000000..d3afb0e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrOtherFile.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a7f2dea7f5e4ff54fafef7c8f4097b81 +timeCreated: 1611404293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttrPair.cs b/Client/Assets/Scripts/XMainClient/XAttrPair.cs new file mode 100644 index 00000000..84437b59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrPair.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal struct XAttrPair + { + public XAttributeDefine AttrID; + + public double AttrValue; + + public XAttrPair(XAttributeDefine attr, double value) + { + this.AttrID = attr; + this.AttrValue = value; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttrPair.cs.meta b/Client/Assets/Scripts/XMainClient/XAttrPair.cs.meta new file mode 100644 index 00000000..7e68e38d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrPair.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80b65f8dbe8d808428e2c8ece0faeb8e +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttrPlayerFile.cs b/Client/Assets/Scripts/XMainClient/XAttrPlayerFile.cs new file mode 100644 index 00000000..ed102f3c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrPlayerFile.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class XAttrPlayerFile : XAttrCommonFile + { + public override string FileName + { + get + { + return "ItemNew/AttrPanel"; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttrPlayerFile.cs.meta b/Client/Assets/Scripts/XMainClient/XAttrPlayerFile.cs.meta new file mode 100644 index 00000000..fc6ef47f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttrPlayerFile.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d3ba5274e89cb04a9fd6c0d686ac0d3 +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttributeCommon.cs b/Client/Assets/Scripts/XMainClient/XAttributeCommon.cs new file mode 100644 index 00000000..a16821cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttributeCommon.cs @@ -0,0 +1,220 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAttributeCommon + { + public static readonly int AttrCount = 301; + + public static readonly int BasicStart = 0; + + public static readonly int BasicEnd = XAttributeCommon.AttrCount; + + public static readonly int PercentStart = 1000; + + public static readonly int PercentEnd = XAttributeCommon.PercentStart + XAttributeCommon.AttrCount; + + public static readonly int TotalStart = 2000; + + public static readonly int TotalEnd = XAttributeCommon.TotalStart + XAttributeCommon.AttrCount; + + private static readonly HashSet _FirstLevelAttrs = new HashSet + { + XAttributeDefine.XAttr_Strength_Basic, + XAttributeDefine.XAttr_Strength_Percent, + XAttributeDefine.XAttr_Strength_Total, + XAttributeDefine.XAttr_Agility_Basic, + XAttributeDefine.XAttr_Agility_Percent, + XAttributeDefine.XAttr_Agility_Total, + XAttributeDefine.XAttr_Intelligence_Basic, + XAttributeDefine.XAttr_Intelligence_Percent, + XAttributeDefine.XAttr_Intelligence_Total, + XAttributeDefine.XAttr_Vitality_Basic, + XAttributeDefine.XAttr_Vitality_Percent, + XAttributeDefine.XAttr_Vitality_Total + }; + + public static XAttributeDefine GetAttrLimitAttr(XAttributeDefine currAttr) + { + XAttributeDefine result; + if (currAttr != XAttributeDefine.XAttr_CurrentHP_Basic) + { + if (currAttr != XAttributeDefine.XAttr_CurrentSuperArmor_Basic) + { + if (currAttr != XAttributeDefine.XAttr_CurrentMP_Basic) + { + result = XAttributeDefine.XAttr_Invalid; + } + else + { + result = XAttributeDefine.XAttr_MaxMP_Total; + } + } + else + { + result = XAttributeDefine.XAttr_MaxSuperArmor_Total; + } + } + else + { + result = XAttributeDefine.XAttr_MaxHP_Total; + } + return result; + } + + public static XAttributeDefine GetRegenAttr(XAttributeDefine currAttr) + { + XAttributeDefine result; + if (currAttr != XAttributeDefine.XAttr_CurrentHP_Basic) + { + if (currAttr != XAttributeDefine.XAttr_CurrentSuperArmor_Basic) + { + if (currAttr != XAttributeDefine.XAttr_CurrentMP_Basic) + { + result = XAttributeDefine.XAttr_Invalid; + } + else + { + result = XAttributeDefine.XAttr_MPRecovery_Total; + } + } + else + { + result = XAttributeDefine.XAttr_SuperArmorReg_Total; + } + } + else + { + result = XAttributeDefine.XAttr_HPRecovery_Total; + } + return result; + } + + public static XAttributeDefine GetAttrCurAttr(XAttributeDefine limitAttr) + { + if (limitAttr <= XAttributeDefine.XAttr_MaxHP_Percent) + { + if (limitAttr <= XAttributeDefine.XAttr_MaxSuperArmor_Basic) + { + if (limitAttr != XAttributeDefine.XAttr_MaxHP_Basic) + { + if (limitAttr != XAttributeDefine.XAttr_MaxSuperArmor_Basic) + { + goto IL_78; + } + goto IL_73; + } + } + else + { + if (limitAttr == XAttributeDefine.XAttr_MaxMP_Basic) + { + goto IL_6E; + } + if (limitAttr != XAttributeDefine.XAttr_MaxHP_Percent) + { + goto IL_78; + } + } + } + else if (limitAttr <= XAttributeDefine.XAttr_MaxMP_Percent) + { + if (limitAttr == XAttributeDefine.XAttr_MaxSuperArmor_Percent) + { + goto IL_73; + } + if (limitAttr != XAttributeDefine.XAttr_MaxMP_Percent) + { + goto IL_78; + } + goto IL_6E; + } + else if (limitAttr != XAttributeDefine.XAttr_MaxHP_Total) + { + if (limitAttr == XAttributeDefine.XAttr_MaxSuperArmor_Total) + { + goto IL_73; + } + if (limitAttr != XAttributeDefine.XAttr_MaxMP_Total) + { + goto IL_78; + } + goto IL_6E; + } + return XAttributeDefine.XAttr_CurrentHP_Basic; + IL_6E: + return XAttributeDefine.XAttr_CurrentMP_Basic; + IL_73: + return XAttributeDefine.XAttr_CurrentSuperArmor_Basic; + IL_78: + return XAttributeDefine.XAttr_Invalid; + } + + public static bool IsBasicRange(int id) + { + return id > XAttributeCommon.BasicStart && id < XAttributeCommon.BasicEnd; + } + + public static bool IsPercentRange(int id) + { + return id > XAttributeCommon.PercentStart && id < XAttributeCommon.PercentEnd; + } + + public static bool IsPercentRange(XAttributeDefine attr) + { + return XFastEnumIntEqualityComparer.ToInt(attr) > XAttributeCommon.PercentStart && XFastEnumIntEqualityComparer.ToInt(attr) < XAttributeCommon.PercentEnd; + } + + public static bool IsTotalRange(int id) + { + return id > XAttributeCommon.TotalStart && id < XAttributeCommon.TotalEnd; + } + + public static int GetBasicAttr(int id) + { + return id % 1000; + } + + public static string GetAttrStr(int attrid) + { + return XStringDefineProxy.GetString((XAttributeDefine)attrid); + } + + public static string GetAttrValueStr(int attrid, float attrValue) + { + bool flag = XAttributeCommon.IsPercentRange(attrid); + string result; + if (flag) + { + result = string.Format((attrValue >= 0f) ? "+{0}%" : "{0}%", attrValue.ToString("0.#")); + } + else + { + result = string.Format((attrValue >= 0f) ? "+{0}" : "{0}", (int)attrValue).ToString(); + } + return result; + } + + public static string GetAttrValueStr(uint attrid, uint attrValue, bool bWithSignal = true) + { + bool flag = XAttributeCommon.IsPercentRange((int)attrid); + string result; + if (flag) + { + result = string.Format((bWithSignal && attrValue >= 0u) ? "+{0}%" : "{0}%", attrValue.ToString()); + } + else + { + result = string.Format((bWithSignal && attrValue >= 0u) ? "+{0}" : "{0}", attrValue).ToString(); + } + return result; + } + + public static bool IsFirstLevelAttr(XAttributeDefine attr) + { + return XAttributeCommon._FirstLevelAttrs.Contains(attr); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttributeCommon.cs.meta b/Client/Assets/Scripts/XMainClient/XAttributeCommon.cs.meta new file mode 100644 index 00000000..411e5663 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttributeCommon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 178c147baaf9dca47bd1d9e57a3e463e +timeCreated: 1611403293 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttributeDefine.cs b/Client/Assets/Scripts/XMainClient/XAttributeDefine.cs new file mode 100644 index 00000000..300856aa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttributeDefine.cs @@ -0,0 +1,180 @@ +using System; + +namespace XMainClient +{ + internal enum XAttributeDefine + { + XAttr_Invalid = -1, + XAttr_Strength_Basic = 1, + XAttr_Strength_Percent = 1001, + XAttr_Strength_Total = 2001, + XAttr_Agility_Basic = 2, + XAttr_Agility_Percent = 1002, + XAttr_Agility_Total = 2002, + XAttr_Intelligence_Basic = 3, + XAttr_Intelligence_Percent = 1003, + XAttr_Intelligence_Total = 2003, + XAttr_Vitality_Basic = 4, + XAttr_Vitality_Percent = 1004, + XAttr_Vitality_Total = 2004, + XAttr_CombatScore_Basic = 5, + XAttr_CombatScore_Percent = 1005, + XAttr_CombatScore_Total = 2005, + XAttr_PhysicalAtk_Basic = 11, + XAttr_PhysicalAtk_Percent = 1011, + XAttr_PhysicalAtk_Total = 2011, + XAttr_PhysicalDef_Basic = 12, + XAttr_PhysicalDef_Percent = 1012, + XAttr_PhysicalDef_Total = 2012, + XAttr_MaxHP_Basic = 13, + XAttr_MaxHP_Percent = 1013, + XAttr_MaxHP_Total = 2013, + XAttr_CurrentHP_Basic = 14, + XAttr_CurrentHP_Percent = 1014, + XAttr_CurrentHP_Total = 2014, + XAttr_HPRecovery_Basic = 15, + XAttr_HPRecovery_Percent = 1015, + XAttr_HPRecovery_Total = 2015, + XAttr_PhysicalAtkMod_Basic = 16, + XAttr_PhysicalAtkMod_Percent = 1016, + XAttr_PhysicalAtkMod_Total = 2016, + XAttr_PhysicalDefMod_Basic = 17, + XAttr_PhysicalDefMod_Percent = 1017, + XAttr_PhysicalDefMod_Total = 2017, + XAttr_MaxSuperArmor_Basic = 18, + XAttr_MaxSuperArmor_Percent = 1018, + XAttr_MaxSuperArmor_Total = 2018, + XAttr_CurrentSuperArmor_Basic = 19, + XAttr_CurrentSuperArmor_Percent = 1019, + XAttr_CurrentSuperArmor_Total = 2019, + XAttr_SuperArmorRecovery_Basic = 20, + XAttr_SuperArmorRecovery_Percent = 1020, + XAttr_SuperArmorRecovery_Total = 2020, + XAttr_SuperArmorAtk_Basic = 52, + XAttr_SuperArmorAtk_Percent = 1052, + XAttr_SuperArmorAtk_Total = 2052, + XAttr_SuperArmorDef_Basic = 53, + XAttr_SuperArmorDef_Percent = 1053, + XAttr_SuperArmorDef_Total = 2053, + XAttr_SuperArmorReg_Basic = 54, + XAttr_SuperArmorReg_Percent = 1054, + XAttr_SuperArmorReg_Total = 2054, + XAttr_MagicAtk_Basic = 21, + XAttr_MagicAtk_Percent = 1021, + XAttr_MagicAtk_Total = 2021, + XAttr_MagicDef_Basic = 22, + XAttr_MagicDef_Percent = 1022, + XAttr_MagicDef_Total = 2022, + XAttr_MaxMP_Basic = 23, + XAttr_MaxMP_Percent = 1023, + XAttr_MaxMP_Total = 2023, + XAttr_CurrentMP_Basic = 24, + XAttr_CurrentMP_Percent = 1024, + XAttr_CurrentMP_Total = 2024, + XAttr_MPRecovery_Basic = 25, + XAttr_MPRecovery_Percent = 1025, + XAttr_MPRecovery_Total = 2025, + XAttr_MagicAtkMod_Basic = 26, + XAttr_MagicAtkMod_Percent = 1026, + XAttr_MagicAtkMod_Total = 2026, + XAttr_MagicDefMod_Basic = 27, + XAttr_MagicDefMod_Percent = 1027, + XAttr_MagicDefMod_Total = 2027, + XAttr_Critical_Basic = 31, + XAttr_Critical_Percent = 1031, + XAttr_Critical_Total = 2031, + XAttr_CritResist_Basic = 32, + XAttr_CritResist_Percent = 1032, + XAttr_CritResist_Total = 2032, + XAttr_Paralyze_Basic = 33, + XAttr_Paralyze_Percent = 1033, + XAttr_Paralyze_Total = 2033, + XAttr_ParaResist_Basic = 34, + XAttr_ParaResist_Percent = 1034, + XAttr_ParaResist_Total = 2034, + XAttr_Stun_Basic = 35, + XAttr_Stun_Percent = 1035, + XAttr_Stun_Total = 2035, + XAttr_StunResist_Basic = 36, + XAttr_StunResist_Percent = 1036, + XAttr_StunResist_Total = 2036, + XAttr_HurtInc_Basic = 50, + XAttr_HurtInc_Percent = 1050, + XAttr_HurtInc_Total = 2050, + XAttr_CurrentXULI_Basic = 51, + XAttr_CurrentXULI_Percent = 1051, + XAttr_CurrentXULI_Total = 2051, + XAttr_CurrentEnergy_Basic = 55, + XAttr_CurrentEnergy_Percent = 1055, + XAttr_CurrentEnergy_Total = 2055, + XAttr_XULI_Basic = 61, + XAttr_XULI_Percent = 1061, + XAttr_XULI_Total = 2061, + XAttr_CritDamage_Basic = 111, + XAttr_CritDamage_Percent = 1111, + XAttr_CritDamage_Total = 2111, + XAttr_FinalDamage_Basic = 112, + XAttr_FinalDamage_Percent = 1112, + XAttr_FinalDamage_Total = 2112, + XAttr_TrueDamage_Basic = 113, + XAttr_TrueDamage_Percent = 1113, + XAttr_TrueDamage_Total = 2113, + XAttr_FireAtk_Basic = 121, + XAttr_FireAtk_Percent = 1121, + XAttr_FireAtk_Total = 2121, + XAttr_FireDef_Basic = 122, + XAttr_FireDef_Percent = 1122, + XAttr_FireDef_Total = 2122, + XAttr_WaterAtk_Basic = 123, + XAttr_WaterAtk_Percent = 1123, + XAttr_WaterAtk_Total = 2123, + XAttr_WaterDef_Basic = 124, + XAttr_WaterDef_Percent = 1124, + XAttr_WaterDef_Total = 2124, + XAttr_LightAtk_Basic = 125, + XAttr_LightAtk_Percent = 1125, + XAttr_LightAtk_Total = 2125, + XAttr_LightDef_Basic = 126, + XAttr_LightDef_Percent = 1126, + XAttr_LightDef_Total = 2126, + XAttr_DarkAtk_Basic = 127, + XAttr_DarkAtk_Percent = 1127, + XAttr_DarkAtk_Total = 2127, + XAttr_DarkDef_Basic = 128, + XAttr_DarkDef_Percent = 1128, + XAttr_DarkDef_Total = 2128, + XAttr_VoidAtk_Basic = 129, + XAttr_VoidAtk_Percent = 1129, + XAttr_VoidAtk_Total = 2129, + XAttr_VoidDef_Basic = 130, + XAttr_VoidDef_Percent = 1130, + XAttr_VoidDef_Total = 2130, + XAttr_RUN_SPEED_Basic = 201, + XAttr_RUN_SPEED_Percent = 1201, + XAttr_RUN_SPEED_Total = 2201, + XAttr_WALK_SPEED_Basic = 202, + XAttr_WALK_SPEED_Percent = 1202, + XAttr_WALK_SPEED_Total = 2202, + XAttr_DASH_SPEED_Basic = 203, + XAttr_DASH_SPEED_Percent = 1203, + XAttr_DASH_SPEED_Total = 2203, + XAttr_ROTATION_SPEED_Basic = 204, + XAttr_ROTATION_SPEED_Percent = 1204, + XAttr_ROTATION_SPEED_Total = 2204, + XAttr_AUTOROTATION_SPEED_Basic = 205, + XAttr_AUTOROTATION_SPEED_Percent = 1205, + XAttr_AUTOROTATION_SPEED_Total = 2205, + XATTR_ATTACK_SPEED_Basic = 206, + XATTR_ATTACK_SPEED_Percent = 1206, + XATTR_ATTACK_SPEED_Total = 2206, + XATTR_SKILL_CD_Basic = 207, + XATTR_SKILL_CD_Percent = 1207, + XATTR_SKILL_CD_Total = 2207, + XATTR_ENMITY_Basic = 208, + XATTR_ENMITY_Percent = 1208, + XATTR_ENMITY_Total = 2208, + XAttr_POWER_POINT_Basic = 300, + XAttr_POWER_POINT_Percent = 1300, + XAttr_POWER_POINT_Total = 2300 + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttributeDefine.cs.meta b/Client/Assets/Scripts/XMainClient/XAttributeDefine.cs.meta new file mode 100644 index 00000000..4cc1865a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttributeDefine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f2520d62b04ab874fa5c612a80b20d40 +timeCreated: 1611404842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttributeMgr.cs b/Client/Assets/Scripts/XMainClient/XAttributeMgr.cs new file mode 100644 index 00000000..1d2f91e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttributeMgr.cs @@ -0,0 +1,409 @@ +using System; +using System.Collections.Generic; +using System.IO; +using KKSG; +using ProtoBuf; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAttributeMgr : XSingleton + { + public XPlayerAttributes XPlayerData + { + get + { + return this._playerAttributes; + } + } + + public XAttributeMgr.XPlayerCharacterInfo XPlayerCharacters + { + get + { + return this._playerCharacterInfo; + } + } + + public LoginExtraData LoginExData { get; private set; } + + private SmallBufferPool m_AttrPool = new SmallBufferPool(); + + private BlockInfo[] blockInit = new BlockInfo[] + { + new BlockInfo(XAttributeCommon.AttrCount, 256) + }; + + private XPlayerAttributes _playerAttributes = null; + + private XAttributeMgr.XPlayerCharacterInfo _playerCharacterInfo = new XAttributeMgr.XPlayerCharacterInfo(); + + public class XPlayerCharacterInfo + { + public List PlayerBriefInfo = new List(); + + public int SelectedSlot = 0; + } + + public override bool Init() + { + this.m_AttrPool.Init(this.blockInit, 8); + return true; + } + + public int BackFlowLevel() + { + int result = 0; + bool flag = this.LoginExData != null && this.LoginExData.is_backflow_server; + if (flag) + { + result = (int)this.LoginExData.backflow_level; + } + return result; + } + + public void GetBuffer(ref SmallBuffer sb, int size, int initSize = 0) + { + this.m_AttrPool.GetBlock(ref sb, size, initSize); + } + + public void ReturnBuffer(ref SmallBuffer sb) + { + this.m_AttrPool.ReturnBlock(ref sb); + } + + public void ResetPlayerData() + { + bool flag = this._playerAttributes != null; + if (flag) + { + this._playerAttributes.HPMPReset(); + this._playerAttributes.IsDead = false; + } + XStaticSecurityStatistics.Reset(); + } + + public XPlayerAttributes InitPlayerAttr(RoleBrief brief, KKSG.Attribute attr, List skills, List skillSlot, uint skillPageIndex, RoleSystem system, MilitaryRecord militaryRank) + { + bool flag = this._playerAttributes != null; + if (flag) + { + this._playerAttributes.UninitilizeBuffer(); + } + this._playerAttributes = (this.InitAttrFromServer(brief.roleID, brief.nickID, (uint)XFastEnumIntEqualityComparer.ToInt(brief.type), brief.name, attr, 1u, true, skills, skillSlot, new XOutLookAttr(brief.titleID, militaryRank), brief.level, brief.paymemberid) as XPlayerAttributes); + this._playerAttributes.Outlook.SetProfType(this._playerAttributes.TypeID); + this._playerAttributes.Outlook.uiAvatar = false; + this._playerAttributes.Exp = brief.exp; + this._playerAttributes.MaxExp = brief.maxexp; + this._playerAttributes.SkillPageIndex = skillPageIndex; + bool flag2 = system != null; + if (flag2) + { + this._playerAttributes.openedSystem = system.system; + } + this._playerAttributes.Profession = brief.type; + return this._playerAttributes; + } + + public XAttributes InitAttrFromServer(ulong id, uint shortId, uint type_id, string name, KKSG.Attribute attr, uint fightgroup, bool isControlled, List skills, List bindskills, XOutLookAttr outlookAttr, uint level, uint payMemberID = 0u) + { + bool flag = XAttributes.GetCategory(id) == EntityCategory.Category_Role || XAttributes.GetCategory(id) == EntityCategory.Category_DummyRole; + XAttributes xattributes; + uint presentID; + if (flag) + { + bool flag2 = XAttributes.IsPlayer(id); + if (flag2) + { + xattributes = (XSingleton.singleton.CreateComponent(null, XPlayerAttributes.uuID) as XPlayerAttributes); + } + else + { + xattributes = (XSingleton.singleton.CreateComponent(null, XRoleAttributes.uuID) as XRoleAttributes); + } + presentID = XSingleton.singleton.RoleInfo.GetByProfID(type_id % 10u).PresentID; + XRoleAttributes xroleAttributes = xattributes as XRoleAttributes; + xroleAttributes.Profession = (RoleType)type_id; + xroleAttributes.GuildName = ((outlookAttr.guild == null) ? "" : outlookAttr.guild.name); + xroleAttributes.GuildPortrait = ((outlookAttr.guild == null) ? 0u : outlookAttr.guild.icon); + xroleAttributes.GuildID = ((outlookAttr.guild == null) ? 0UL : outlookAttr.guild.id); + xroleAttributes.DesignationID = outlookAttr.designationID; + xroleAttributes.SpecialDesignation = outlookAttr.specialDesignation; + xroleAttributes.MilitaryRank = outlookAttr.militaryRank; + xroleAttributes.PrerogativeScore = outlookAttr.prerogativeScore; + xroleAttributes.PrerogativeSetID = outlookAttr.prerogativeSetID; + bool flag3 = bindskills != null; + if (flag3) + { + xroleAttributes.skillSlot = bindskills.ToArray(); + } + xattributes.Type = EntitySpecies.Species_Role; + xattributes.BeLocked = false; + } + else + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(type_id); + presentID = byID.PresentID; + xattributes = (XSingleton.singleton.CreateComponent(null, XOthersAttributes.uuID) as XOthersAttributes); + xattributes.Type = (EntitySpecies)byID.Type; + xattributes.InitAttribute(byID); + } + xattributes.Prefab = XSingleton.singleton.EntityInfo.GetByPresentID(presentID).Prefab; + xattributes.Name = name; + xattributes.ShortId = shortId; + xattributes.EntityID = id; + xattributes.TypeID = type_id; + xattributes.PresentID = presentID; + bool flag4 = attr != null; + if (flag4) + { + xattributes.InitAttribute(attr); + } + xattributes.FightGroup = fightgroup; + xattributes.TitleID = outlookAttr.titleID; + xattributes.PayMemberID = payMemberID; + bool flag5 = skills != null; + if (flag5) + { + xattributes.SkillLevelInfo.Init(skills); + } + xattributes.Level = level; + return xattributes; + } + + public XOthersAttributes InitAttrFromClient(uint id, KKSG.Attribute attr, uint fightgroup) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(id); + bool flag = byID == null; + XOthersAttributes result; + if (flag) + { + result = null; + } + else + { + uint presentID = byID.PresentID; + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(presentID); + bool flag2 = byPresentID == null || string.IsNullOrEmpty(byPresentID.Prefab); + if (flag2) + { + result = null; + } + else + { + XOthersAttributes xothersAttributes = XSingleton.singleton.CreateComponent(null, XOthersAttributes.uuID) as XOthersAttributes; + xothersAttributes.Prefab = byPresentID.Prefab; + xothersAttributes.Name = byID.Name; + xothersAttributes.EntityID = (ulong)(((long)XSingleton.singleton.New_id & 1152921504606846975L) | (long)XAttributes.GetTypePrefix((EntitySpecies)byID.Type)); + xothersAttributes.TypeID = id; + xothersAttributes.PresentID = presentID; + xothersAttributes.Type = (EntitySpecies)byID.Type; + bool flag3 = fightgroup != uint.MaxValue && byID.Fightgroup == -1; + if (flag3) + { + xothersAttributes.FightGroup = fightgroup; + } + else + { + xothersAttributes.FightGroup = (uint)byID.Fightgroup; + } + xothersAttributes.InitAttribute(byID); + bool flag4 = attr != null; + if (flag4) + { + xothersAttributes.InitAttribute(attr); + } + result = xothersAttributes; + } + } + return result; + } + + public bool HasNoRoleOnBackFlowServer() + { + bool flag = this.LoginExData != null && this.LoginExData.is_backflow_server; + bool result; + if (flag) + { + for (int i = 0; i < this._playerCharacterInfo.PlayerBriefInfo.Count; i++) + { + bool flag2 = this._playerCharacterInfo.PlayerBriefInfo[i] != null; + if (flag2) + { + return false; + } + } + result = true; + } + else + { + result = false; + } + return result; + } + + public XNpcAttributes InitNpcAttr(uint id) + { + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(id); + bool flag = byNPCID == null; + XNpcAttributes result; + if (flag) + { + result = null; + } + else + { + uint presentID = byNPCID.PresentID; + XNpcAttributes xnpcAttributes = XSingleton.singleton.CreateComponent(null, XNpcAttributes.uuID) as XNpcAttributes; + xnpcAttributes.Prefab = XSingleton.singleton.EntityInfo.GetByPresentID(presentID).Prefab; + xnpcAttributes.Name = byNPCID.Name; + xnpcAttributes.EntityID = (XAttributes.GetTypePrefix(EntitySpecies.Species_Npc) | (ulong)XSingleton.singleton.XHash(byNPCID.Name) + (ulong)((long)XSingleton.singleton.New_id)); + xnpcAttributes.TypeID = id; + xnpcAttributes.PresentID = presentID; + xnpcAttributes.Type = EntitySpecies.Species_Npc; + xnpcAttributes.FightGroup = (uint)XFastEnumIntEqualityComparer.ToInt(FightGroupType.FightNeutral); + xnpcAttributes.InitAttribute(byNPCID); + result = xnpcAttributes; + } + return result; + } + + public bool ProcessAccountData(LoadAccountData roAccountData) + { + bool flag = roAccountData == null; + bool result; + if (flag) + { + result = false; + } + else + { + XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Clear(); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role1); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role2); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role3); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role4); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role5); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role6); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role7); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role8); + this.ParseRoleBriefInfo(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo, roAccountData.role9); + bool flag2 = roAccountData.selectSlot >= (uint)XGame.RoleCount; + if (flag2) + { + XSingleton.singleton.XPlayerCharacters.SelectedSlot = 0; + } + else + { + XSingleton.singleton.XPlayerCharacters.SelectedSlot = (int)(roAccountData.selectSlot + 1u); + } + result = true; + } + return result; + } + + public void ProcessLoginExtraData(LoginExtraData data) + { + this.LoginExData = data; + } + + public void OnLeaveStage() + { + this._playerAttributes = null; + } + + public void OnReconnect() + { + List skills = null; + List skillSlot = null; + uint skillPageIndex = 0u; + bool flag = XSingleton.singleton.PlayerInfo.skill != null; + if (flag) + { + skills = ((XSingleton.singleton.PlayerInfo.skill.index == 0u) ? XSingleton.singleton.PlayerInfo.skill.Skills : XSingleton.singleton.PlayerInfo.skill.SkillsTwo); + skillSlot = ((XSingleton.singleton.PlayerInfo.skill.index == 0u) ? XSingleton.singleton.PlayerInfo.skill.SkillSlot : XSingleton.singleton.PlayerInfo.skill.SkillSlotTwo); + skillPageIndex = XSingleton.singleton.PlayerInfo.skill.index; + } + this.InitPlayerAttrByReconncet(XSingleton.singleton.PlayerInfo.Brief, XSingleton.singleton.PlayerApperance.attributes, skills, skillSlot, skillPageIndex, XSingleton.singleton.PlayerInfo.system, XSingleton.singleton.PlayerInfo.military); + bool flag2 = XSingleton.singleton.Player != null; + if (flag2) + { + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(XSingleton.singleton.Player); + XOutlookHelper.SetOutLook(this._playerAttributes, XSingleton.singleton.PlayerApperance.outlook, true); + this._playerAttributes.AutoPlayOn = XSingleton.singleton.IsAutoFight; + XSingleton.singleton.Player.Attributes.OnFightGroupChange((XSingleton.singleton.SyncModeValue != 0) ? XSingleton.singleton.PlayerApperance.fightgroup : ((uint)XFastEnumIntEqualityComparer.ToInt(FightGroupType.FightRole))); + } + } + + private void InitPlayerAttrByReconncet(RoleBrief brief, KKSG.Attribute attr, List skills, List skillSlot, uint skillPageIndex, RoleSystem system, MilitaryRecord militaryRank) + { + this.InitAttrFromServerByReconncet(brief.roleID, brief.nickID, (uint)XFastEnumIntEqualityComparer.ToInt(brief.type), brief.name, attr, (XSingleton.singleton.SyncModeValue != 0) ? XSingleton.singleton.PlayerApperance.fightgroup : ((uint)XFastEnumIntEqualityComparer.ToInt(FightGroupType.FightRole)), true, skills, skillSlot, brief.level, new XOutLookAttr(brief.titleID, militaryRank), brief.paymemberid); + this._playerAttributes.Outlook.SetProfType(this._playerAttributes.TypeID); + this._playerAttributes.Outlook.uiAvatar = false; + this._playerAttributes.Exp = brief.exp; + this._playerAttributes.MaxExp = brief.maxexp; + this._playerAttributes.SkillPageIndex = skillPageIndex; + bool flag = system != null; + if (flag) + { + this._playerAttributes.openedSystem = system.system; + } + this._playerAttributes.Profession = brief.type; + } + + private void InitAttrFromServerByReconncet(ulong id, uint shortId, uint type_id, string name, KKSG.Attribute attr, uint fightgroup, bool isControlled, List skills, List bindskills, uint level, XOutLookAttr outlookAttr, uint payMemberID = 0u) + { + XAttributes playerAttributes = this._playerAttributes; + uint presentID = XSingleton.singleton.RoleInfo.GetByProfID(type_id % 10u).PresentID; + XRoleAttributes xroleAttributes = playerAttributes as XRoleAttributes; + xroleAttributes.Profession = (RoleType)type_id; + xroleAttributes.MilitaryRank = outlookAttr.militaryRank; + bool flag = bindskills != null; + if (flag) + { + xroleAttributes.skillSlot = bindskills.ToArray(); + } + playerAttributes.Type = EntitySpecies.Species_Role; + playerAttributes.BeLocked = false; + playerAttributes.Prefab = XSingleton.singleton.EntityInfo.GetByPresentID(presentID).Prefab; + playerAttributes.Name = name; + playerAttributes.ShortId = shortId; + playerAttributes.EntityID = id; + playerAttributes.TypeID = type_id; + playerAttributes.PresentID = presentID; + bool flag2 = attr != null; + if (flag2) + { + playerAttributes.InitAttribute(attr); + } + playerAttributes.FightGroup = fightgroup; + playerAttributes.TitleID = outlookAttr.titleID; + playerAttributes.PayMemberID = payMemberID; + bool flag3 = skills != null; + if (flag3) + { + playerAttributes.SkillLevelInfo.Init(skills); + } + playerAttributes.Level = level; + } + + private void ParseRoleBriefInfo(List list, byte[] data) + { + bool flag = list.Count >= XGame.RoleCount; + if (!flag) + { + bool flag2 = data == null || data.Length == 0; + if (flag2) + { + list.Add(null); + } + else + { + MemoryStream source = new MemoryStream(data); + RoleBriefInfo item = Serializer.Deserialize(source); + list.Add(item); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttributeMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XAttributeMgr.cs.meta new file mode 100644 index 00000000..78347836 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttributeMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0df434da65a66044bb4e115008e9ccdf +timeCreated: 1611403199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAttributes.cs b/Client/Assets/Scripts/XMainClient/XAttributes.cs new file mode 100644 index 00000000..6d905ae7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttributes.cs @@ -0,0 +1,1068 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XAttributes : XComponent + { + public override uint ID + { + get + { + return XAttributes.uuID; + } + } + + public ulong RoleID + { + get + { + return this._id; + } + } + + public uint ShortId + { + get + { + return this._shortId; + } + set + { + this._shortId = value; + } + } + + public SeqListRef InBornBuff + { + get + { + return this._inborn_buff; + } + } + + public string Prefab + { + get + { + return this._prefab_name; + } + set + { + this._prefab_name = value; + } + } + + public string Name + { + get + { + return this._name; + } + set + { + this._name = value; + } + } + + public uint PayMemberID + { + get + { + return this._payMemberID; + } + set + { + this._payMemberID = value; + } + } + + public Vector3 AppearAt + { + get + { + return this._appear_pos; + } + set + { + this._appear_pos = value; + } + } + + public bool BeLocked + { + get + { + return this._be_locked; + } + set + { + this._be_locked = value; + } + } + + public uint FightGroup + { + get + { + return this._fight_group; + } + set + { + this.OnFightGroupChange(value); + } + } + + public uint TitleID + { + get + { + return this._TitleID; + } + set + { + this._TitleID = value; + } + } + + public bool SoloShow + { + get + { + return this._is_solo_supported; + } + set + { + this._is_solo_supported = value; + } + } + + public bool MidwayEnter + { + get + { + return this._midway_enter; + } + set + { + this._midway_enter = value; + } + } + + public ulong HostID + { + get + { + return this._HostID; + } + set + { + this._HostID = value; + this._FinalHostID = value; + } + } + + public ulong FinalHostID + { + get + { + return this._FinalHostID; + } + } + + public virtual uint Tag + { + get + { + return 0u; + } + } + + public XSecurityStatistics SecurityStatistics + { + get + { + return this._security_Statistics; + } + } + + public double Dps + { + get + { + return this._battle_Statistics.Dps; + } + } + + public double PrintDamage + { + get + { + return this._battle_Statistics.PrintDamage; + } + } + + public ulong EntityID + { + get + { + return this._id; + } + set + { + this._id = value; + } + } + + public virtual uint TypeID + { + get + { + return this._type_id; + } + set + { + this._type_id = value; + } + } + + public virtual uint BasicTypeID + { + get + { + return this.TypeID; + } + } + + public uint PresentID + { + get + { + return this._present_id; + } + set + { + this._present_id = value; + } + } + + public EntitySpecies Type + { + get + { + return this._type; + } + set + { + this._type = value; + } + } + + public bool IsDead + { + get + { + return this._is_dead; + } + set + { + this._is_dead = value; + } + } + + public uint Level + { + get + { + return this._level; + } + set + { + this._level = value; + bool flag = XAttributes.IsPlayer(this.RoleID); + if (flag) + { + XFileLog.RoleLevel = value; + } + } + } + + public uint point + { + get + { + XCarnivalDocument specificDocument = XDocuments.GetSpecificDocument(XCarnivalDocument.uuID); + XBagDocument specificDocument2 = XDocuments.GetSpecificDocument(XBagDocument.uuID); + return (uint)specificDocument2.GetItemCount(specificDocument.pointItemID); + } + } + + public bool CarnivalClaimed { get; set; } + + public ulong Exp { get; set; } + + public ulong MaxExp { get; set; } + + public float RunSpeed + { + get + { + return (float)this.GetAttr(XAttributeDefine.XAttr_RUN_SPEED_Total) * this._entity.Scale; + } + } + + public float WalkSpeed + { + get + { + return (float)this.GetAttr(XAttributeDefine.XAttr_WALK_SPEED_Total) * this._entity.Scale; + } + } + + public float RotateSpeed + { + get + { + return (float)this.GetAttr(XAttributeDefine.XAttr_ROTATION_SPEED_Total); + } + } + + public float AutoRotateSpeed + { + get + { + return (float)this.GetAttr(XAttributeDefine.XAttr_AUTOROTATION_SPEED_Total); + } + } + + public float AttackSpeed + { + get + { + return Mathf.Clamp((float)(this.GetAttr(XAttributeDefine.XATTR_ATTACK_SPEED_Total) / XSingleton.singleton.GeneralCombatParam), (float)XSingleton.singleton.AttackSpeedLowerBound, (float)XSingleton.singleton.AttackSpeedUpperBound); + } + } + + public double ParalyzeAttribute + { + get + { + double attr = this.GetAttr(XAttributeDefine.XAttr_Paralyze_Total); + CombatParamTable.RowData combatParam = XSingleton.singleton.GetCombatParam(this.Level); + double num = attr / (attr + (double)combatParam.ParalyzeBase); + bool flag = num > XSingleton.singleton.ParalyzeLimit; + if (flag) + { + num = XSingleton.singleton.ParalyzeLimit; + } + return num; + } + } + + public double ParalyzeDefenseAttribute + { + get + { + double attr = this.GetAttr(XAttributeDefine.XAttr_ParaResist_Total); + CombatParamTable.RowData combatParam = XSingleton.singleton.GetCombatParam(this.Level); + double num = attr / (attr + (double)combatParam.ParaResistBase); + bool flag = num > XSingleton.singleton.ParaResistLimit; + if (flag) + { + num = XSingleton.singleton.ParaResistLimit; + } + return num; + } + } + + public double HPPercent + { + get + { + double num = this.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double attr = this.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag = num <= 1.0; + if (flag) + { + num = 1.0; + } + return attr / num; + } + } + + public XBuffStateInfo BuffState + { + get + { + return this._buff_state; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Attributes"); + + public XSkillLevelInfoMgr SkillLevelInfo = new XSkillLevelInfoMgr(); + + public uint[] skillSlot = null; + + private ulong _id; + + private uint _shortId = 0u; + + private uint _type_id; + + private uint _present_id; + + private EntitySpecies _type; + + private uint _fight_group = uint.MaxValue; + + private bool _midway_enter = false; + + private bool _is_dead = false; + + private bool _is_solo_supported = false; + + private bool _be_locked = false; + + private string _prefab_name = null; + + private string _name = null; + + private uint _payMemberID = 0u; + + private SmallBuffer _basicAttr; + + private SmallBuffer _percentAttr; + + protected SeqListRef _inborn_buff; + + protected static int _start = XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_START); + + protected static int _end = XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_END); + + protected XBattleStatistics _battle_Statistics; + + protected XSecurityStatistics _security_Statistics; + + public XOutlookData Outlook = new XOutlookData(); + + public XBodyBag EmblemBag; + + private uint _time_token = 0u; + + private uint _level = 1u; + + private Vector3 _appear_pos = Vector3.zero; + + private XTimerMgr.ElapsedEventHandler _onAttributeRegenerateCb = null; + + private ulong _HostID = 0UL; + + private ulong _FinalHostID = 0UL; + + private uint _TitleID = 1u; + + protected XBuffStateInfo _buff_state = new XBuffStateInfo(); + + public double SuperArmorRecoveryTimeLimit = 0.0; + + public bool HasWoozyStatus = false; + + public bool IsSuperArmorBroken = false; + + public void SetHost(XEntity hostEntity) + { + bool flag = !XEntity.ValideEntity(hostEntity); + if (!flag) + { + this._HostID = hostEntity.ID; + this._FinalHostID = hostEntity.Attributes.FinalHostID; + bool flag2 = this._FinalHostID == 0UL; + if (flag2) + { + this._FinalHostID = this._HostID; + } + } + } + + public XAttributes() + { + this._onAttributeRegenerateCb = new XTimerMgr.ElapsedEventHandler(this.OnAttributeRegenerate); + } + + public void OnFightGroupChange(uint group) + { + bool flag = this._fight_group == group; + if (!flag) + { + bool flag2 = this._entity != null; + if (flag2) + { + uint fight_group = this._fight_group; + XFightGroupDocument.OnDecalcFightGroup(this._entity); + this._fight_group = group; + XFightGroupDocument.OnCalcFightGroup(this._entity); + XFightGroupChangedArgs @event = XEventPool.GetEvent(); + @event.oldFightGroup = fight_group; + @event.newFightGroup = this._fight_group; + @event.targetEntity = this._entity; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + XFightGroupChangedArgs event2 = XEventPool.GetEvent(); + event2.oldFightGroup = fight_group; + event2.newFightGroup = this._fight_group; + event2.targetEntity = this._entity; + event2.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event2); + bool flag3 = XSingleton.singleton.IsOpponent(this._fight_group, XSingleton.singleton.XPlayerData.FightGroup); + bool soloShow = this.SoloShow; + if (soloShow) + { + this.SoloShow = flag3; + } + XCameraSoloComponent solo = XSingleton.singleton.GameCamera.Solo; + bool flag4 = solo == null; + if (!flag4) + { + bool flag5 = solo.Target == this._entity; + if (flag5) + { + bool flag6 = !flag3; + if (flag6) + { + solo.Stop(); + } + } + else + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + solo.Stop(); + } + XSingleton.singleton.GameCamera.TrySolo(); + } + } + } + else + { + this._fight_group = group; + } + } + } + + private bool OnEquipChange(XEventArgs e) + { + XEquipChangeEventArgs xequipChangeEventArgs = e as XEquipChangeEventArgs; + bool flag = xequipChangeEventArgs.ItemID != null && xequipChangeEventArgs.EquipPart != null; + if (flag) + { + for (int i = 0; i < xequipChangeEventArgs.ItemID.Count; i++) + { + int pos = (int)xequipChangeEventArgs.EquipPart[i]; + this.Outlook.SetFashion(pos, (int)xequipChangeEventArgs.ItemID[i]); + } + } + this.Outlook.CalculateOutLookFashion(); + bool flag2 = this._entity.Equipment != null; + if (flag2) + { + this._entity.Equipment.OnEquipChange(); + } + XSingleton.singleton.OnFashionChanged(this._entity); + return true; + } + + public void InitEquipList(List equipData) + { + } + + public static ulong GetTypePrefix(EntitySpecies type) + { + switch (type) + { + case EntitySpecies.Species_Boss: + case EntitySpecies.Species_Opposer: + case EntitySpecies.Species_Puppet: + case EntitySpecies.Species_Elite: + return (ulong)((ulong)((long)XFastEnumIntEqualityComparer.ToInt(EntityCategory.Category_Enemy)) << 60); + case EntitySpecies.Species_Substance: + case EntitySpecies.Species_Npc: + return (ulong)((ulong)((long)XFastEnumIntEqualityComparer.ToInt(EntityCategory.Category_Neutral)) << 60); + case EntitySpecies.Species_Role: + return (ulong)((ulong)((long)XFastEnumIntEqualityComparer.ToInt(EntityCategory.Category_Role)) << 60); + } + return (ulong)((ulong)((long)XFastEnumIntEqualityComparer.ToInt(EntityCategory.Category_Others)) << 60); + } + + public static bool IsPlayer(ulong uID) + { + return uID == XSingleton.singleton.PlayerID; + } + + public static EntityCategory GetCategory(ulong uID) + { + return (EntityCategory)(uID >> 60); + } + + public EntityCategory GetCategory() + { + return (EntityCategory)(this.EntityID >> 60); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_AttributeChange, new XComponent.XEventHandler(this.OnAttributeChange)); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnRealDead)); + base.RegisterEvent(XEventDefine.XEvent_EquipChange, new XComponent.XEventHandler(this.OnEquipChange)); + base.RegisterEvent(XEventDefine.XEvent_ProjectDamage, new XComponent.XEventHandler(this.OnProjectDamage)); + } + + protected bool OnRealDead(XEventArgs e) + { + this._is_dead = true; + return true; + } + + protected bool OnProjectDamage(XEventArgs e) + { + XProjectDamageEventArgs xprojectDamageEventArgs = e as XProjectDamageEventArgs; + bool flag = this._security_Statistics != null; + if (flag) + { + bool flag2 = xprojectDamageEventArgs.Hurt.Target != this._entity; + if (flag2) + { + this._security_Statistics.OnCastDamage(xprojectDamageEventArgs.Hurt, xprojectDamageEventArgs.Damage); + } + else + { + this._security_Statistics.OnReceiveDamage(xprojectDamageEventArgs.Hurt, xprojectDamageEventArgs.Damage); + } + } + bool syncMode = XSingleton.singleton.SyncMode; + bool result; + if (syncMode) + { + result = true; + } + else + { + bool flag3 = xprojectDamageEventArgs.Hurt.Target != this._entity && xprojectDamageEventArgs.Damage.Value > 0.0; + if (flag3) + { + bool flag4 = this.HostID > 0UL; + if (flag4) + { + XEntity entityExcludeDeath = XSingleton.singleton.GetEntityExcludeDeath(this._HostID); + bool flag5 = XEntity.ValideEntity(entityExcludeDeath) && entityExcludeDeath.Attributes != null; + if (flag5) + { + entityExcludeDeath.Attributes.CombatAppendDamage(xprojectDamageEventArgs.Damage.Value); + } + } + else + { + this._battle_Statistics.AppendDamage(xprojectDamageEventArgs.Damage.Value); + } + } + result = true; + } + return result; + } + + public virtual void InitAttribute(KKSG.Attribute attr) + { + for (int i = 0; i < attr.attrID.Count; i++) + { + uint index = attr.attrID[i]; + this._basicAttr[index] = attr.basicAttribute[i]; + this._percentAttr[index] = attr.percentAttribute[i]; + } + } + + public virtual void InitAttribute(XEntityStatistics.RowData data) + { + this.SetAttr(XAttributeDefine.XAttr_MaxHP_Basic, (double)data.MaxHP); + this.SetAttr(XAttributeDefine.XAttr_CurrentHP_Basic, (double)data.MaxHP); + this.SetAttr(XAttributeDefine.XAttr_PhysicalAtk_Basic, (double)data.AttackBase); + this.SetAttr(XAttributeDefine.XAttr_PhysicalAtkMod_Basic, (double)data.AttackBase); + this.SetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Basic, (double)data.MaxSuperArmor); + this.SetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Basic, (double)data.MaxSuperArmor); + this.SetAttr(XAttributeDefine.XAttr_WALK_SPEED_Basic, (double)data.WalkSpeed); + this.SetAttr(XAttributeDefine.XAttr_RUN_SPEED_Basic, (double)data.RunSpeed); + this.SetAttr(XAttributeDefine.XAttr_ROTATION_SPEED_Basic, (double)data.RotateSpeed); + this.SetAttr(XAttributeDefine.XAttr_AUTOROTATION_SPEED_Basic, (double)data.RotateSpeed); + this.SetAttr(XAttributeDefine.XATTR_ATTACK_SPEED_Basic, (double)data.AttackSpeed); + this.SetAttr(XAttributeDefine.XAttr_MagicAtk_Basic, (double)data.MagicAttackBase); + this.SetAttr(XAttributeDefine.XAttr_MagicAtkMod_Basic, (double)data.MagicAttackBase); + this.SetAttr(XAttributeDefine.XATTR_SKILL_CD_Basic, (double)data.SkillCD); + this.SetAttr(XAttributeDefine.XAttr_SuperArmorRecovery_Basic, data.SuperArmorRecoveryValue * (double)data.MaxSuperArmor / 100.0); + this.SetAttr(XAttributeDefine.XAttr_SuperArmorAtk_Basic, 1.0); + this.SetAttr(XAttributeDefine.XAttr_SuperArmorDef_Basic, 0.0); + this.SetAttr(XAttributeDefine.XAttr_SuperArmorReg_Basic, 0.0); + this.SetAttr(XAttributeDefine.XATTR_ENMITY_Basic, XSingleton.singleton.GeneralCombatParam); + this.SetAttr(XAttributeDefine.XAttr_XULI_Basic, XSingleton.singleton.GeneralCombatParam); + this.SuperArmorRecoveryTimeLimit = data.SuperArmorRecoveryMax; + this.HasWoozyStatus = data.WeakStatus; + } + + public double GetAttr(XAttributeDefine attrDef) + { + int num = XFastEnumIntEqualityComparer.ToInt(attrDef); + double num2 = 0.0; + bool flag = XAttributeCommon.IsBasicRange(num); + if (flag) + { + num -= XAttributeCommon.BasicStart; + num2 = this._basicAttr[num]; + } + else + { + bool flag2 = XAttributeCommon.IsPercentRange(num); + if (flag2) + { + num -= XAttributeCommon.PercentStart; + num2 = this._percentAttr[num]; + } + else + { + bool flag3 = XAttributeCommon.IsTotalRange(num); + if (flag3) + { + num -= XAttributeCommon.TotalStart; + bool flag4 = attrDef == XAttributeDefine.XAttr_CurrentHP_Total || attrDef == XAttributeDefine.XAttr_CurrentMP_Total; + if (flag4) + { + num2 = 1.0; + } + else + { + num2 = Math.Max(0.0, this._percentAttr[num] + 1.0); + } + num2 *= this._basicAttr[num]; + } + } + } + return num2; + } + + public void SetAttr(XAttributeDefine attrDef, double value) + { + double num = value; + int num2 = XFastEnumIntEqualityComparer.ToInt(attrDef); + bool flag = XAttributeCommon.IsBasicRange(num2); + if (flag) + { + num = this._basicAttr[num2 - XAttributeCommon.BasicStart]; + this._basicAttr[num2 - XAttributeCommon.BasicStart] = value; + } + bool flag2 = XAttributeCommon.IsPercentRange(num2); + if (flag2) + { + num = this._percentAttr[num2 - XAttributeCommon.PercentStart]; + this._percentAttr[num2 - XAttributeCommon.PercentStart] = value; + } + this.NotifyAttrChangedToDocument(attrDef, value - num); + } + + internal void SetAttrFromServer(int attrID, double attrValue) + { + double num = 0.0; + bool flag = this._security_Statistics != null && this._security_Statistics.IsUsefulAttr((XAttributeDefine)attrID); + bool flag2 = flag; + if (flag2) + { + num = this.GetAttr((XAttributeDefine)attrID); + } + this.SetAttr((XAttributeDefine)attrID, attrValue); + bool flag3 = flag; + if (flag3) + { + double attr = this.GetAttr((XAttributeDefine)attrID); + this._security_Statistics.OnAttributeChange((XAttributeDefine)attrID, num, attr - num); + } + } + + protected void ChangeAttr(XAttributeDefine attrDef, double delta) + { + int num = XFastEnumIntEqualityComparer.ToInt(attrDef); + bool flag = XAttributeCommon.IsBasicRange(num); + if (flag) + { + int index = num - XAttributeCommon.BasicStart; + this._basicAttr[index] = this._basicAttr[index] + delta; + } + bool flag2 = XAttributeCommon.IsPercentRange(num); + if (flag2) + { + int index = num - XAttributeCommon.PercentStart; + this._percentAttr[index] = this._percentAttr[index] + delta / 100.0; + } + this.NotifyAttrChangedToDocument(attrDef, delta); + } + + private void NotifyAttrChangedToDocument(XAttributeDefine attrDef, double delta) + { + bool flag = this._entity != null; + if (flag) + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = attrDef; + @event.DeltaValue = this.GetAttr(attrDef); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + else + { + bool flag2 = attrDef == XAttributeDefine.XAttr_CurrentEnergy_Basic; + if (flag2) + { + XEntityAttrChangeEventArgs event2 = XEventPool.GetEvent(); + event2.AttrKey = attrDef; + event2.Value = this.GetAttr(attrDef); + event2.Delta = delta; + event2.Entity = this._entity; + event2.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event2); + } + } + } + } + + private void OnHPChanged() + { + bool flag = !XSingleton.singleton.SyncMode && !this.IsDead; + if (flag) + { + XSingleton.singleton.DeathDetect(this._entity, null, false); + } + } + + protected bool OnAttributeChange(XEventArgs e) + { + XAttrChangeEventArgs xattrChangeEventArgs = e as XAttrChangeEventArgs; + double num = 0.0; + double num2 = 0.0; + bool flag = xattrChangeEventArgs.bShowHUD && xattrChangeEventArgs.AttrKey == XAttributeDefine.XAttr_CurrentHP_Basic; + bool flag2 = XAttributeCommon.GetAttrLimitAttr(xattrChangeEventArgs.AttrKey) != XAttributeDefine.XAttr_Invalid; + bool flag3 = flag2; + if (flag3) + { + num = this.GetAttr(xattrChangeEventArgs.AttrKey); + } + this.ChangeAttr(xattrChangeEventArgs.AttrKey, xattrChangeEventArgs.DeltaValue); + this.ClampAttr(xattrChangeEventArgs.AttrKey); + bool flag4 = flag2; + if (flag4) + { + num2 = this.GetAttr(xattrChangeEventArgs.AttrKey); + } + bool flag5 = xattrChangeEventArgs.AttrKey == XAttributeDefine.XAttr_CurrentHP_Basic; + if (flag5) + { + this.OnHPChanged(); + } + bool flag6 = this._security_Statistics != null && this._security_Statistics.IsUsefulAttr(xattrChangeEventArgs.AttrKey) && num != num2; + if (flag6) + { + this._security_Statistics.OnAttributeChange(xattrChangeEventArgs.AttrKey, num, xattrChangeEventArgs.DeltaValue); + } + bool flag7 = flag; + if (flag7) + { + bool flag8 = num2 != num; + if (flag8) + { + ProjectDamageResult data = XDataPool.GetData(); + data.Accept = true; + data.ElementType = DamageElement.DE_NONE; + data.Value = num - num2; + data.Caster = xattrChangeEventArgs.CasterID; + XHUDAddEventArgs @event = XEventPool.GetEvent(); + @event.damageResult = data; + @event.Firer = base.Entity; + XSingleton.singleton.FireEvent(@event); + data.Recycle(); + } + } + return true; + } + + protected void ClampAttr(XAttributeDefine currAttr) + { + XAttributeDefine attrLimitAttr = XAttributeCommon.GetAttrLimitAttr(currAttr); + bool flag = attrLimitAttr != XAttributeDefine.XAttr_Invalid; + if (flag) + { + double num = this.GetAttr(currAttr); + double attr = this.GetAttr(attrLimitAttr); + bool flag2 = num > attr; + if (flag2) + { + num = attr; + } + bool flag3 = num < 0.0; + if (flag3) + { + bool flag4 = currAttr == XAttributeDefine.XAttr_CurrentHP_Basic || currAttr == XAttributeDefine.XAttr_CurrentMP_Basic || currAttr == XAttributeDefine.XAttr_CurrentSuperArmor_Basic || currAttr == XAttributeDefine.XAttr_CurrentXULI_Basic; + if (flag4) + { + num = 0.0; + } + } + this.SetAttr(currAttr, num); + } + } + + private void AttrRegenerate(XAttributeDefine currAttr) + { + XAttributeDefine regenAttr = XAttributeCommon.GetRegenAttr(currAttr); + bool flag = regenAttr == XAttributeDefine.XAttr_Invalid; + if (!flag) + { + double attr = this.GetAttr(regenAttr); + bool flag2 = attr == 0.0; + if (!flag2) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = currAttr; + @event.DeltaValue = attr; + @event.Firer = base.Entity; + XSingleton.singleton.FireEvent(@event); + } + } + } + + private void OnAttributeRegenerate(object arg) + { + this._time_token = XSingleton.singleton.SetTimer(1f, this._onAttributeRegenerateCb, null); + bool flag = !this.IsDead; + if (flag) + { + bool flag2 = !XSingleton.singleton.SyncMode; + if (flag2) + { + this.AttrRegenerate(XAttributeDefine.XAttr_CurrentHP_Basic); + this.AttrRegenerate(XAttributeDefine.XAttr_CurrentMP_Basic); + this.AttrRegenerate(XAttributeDefine.XAttr_CurrentSuperArmor_Basic); + } + } + } + + public override void InitilizeBuffer() + { + base.InitilizeBuffer(); + XSingleton.singleton.GetBuffer(ref this._basicAttr, XAttributeCommon.AttrCount, XAttributeCommon.AttrCount); + XSingleton.singleton.GetBuffer(ref this._percentAttr, XAttributeCommon.AttrCount, XAttributeCommon.AttrCount); + } + + public override void UninitilizeBuffer() + { + base.UninitilizeBuffer(); + XSingleton.singleton.ReturnBuffer(ref this._basicAttr); + XSingleton.singleton.ReturnBuffer(ref this._percentAttr); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._time_token = XSingleton.singleton.SetTimer(1f, this._onAttributeRegenerateCb, null); + bool flag = this._security_Statistics != null; + if (flag) + { + this._security_Statistics.Entity = this._entity; + } + } + + public override void OnDetachFromHost() + { + bool flag = this._security_Statistics != null; + if (flag) + { + this._security_Statistics.Dump(); + this._security_Statistics.Entity = null; + } + XSingleton.singleton.KillTimer(this._time_token); + base.OnDetachFromHost(); + } + + public override void OnReconnect(UnitAppearance data) + { + base.OnReconnect(data); + bool isPlayer = base.Entity.IsPlayer; + if (!isPlayer) + { + XOutlookHelper.SetOutLookReplace(this, base.Entity, data.outlook); + this.OnFightGroupChange(data.fightgroup); + } + } + + public void SetStatistics(XSecurityStatistics ss) + { + bool flag = this._security_Statistics != null; + if (flag) + { + this._security_Statistics = ss; + this._security_Statistics.Entity = this._entity; + } + } + + public virtual bool IsBindedSkill(uint id) + { + return true; + } + + public void ForceDeath() + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentHP_Basic; + @event.DeltaValue = -this.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + @event.Firer = base.Entity; + XSingleton.singleton.FireEvent(@event); + } + + public void CombatReset() + { + this._battle_Statistics.Reset(); + } + + public void CombatAppendTime() + { + this._battle_Statistics.AppendTime(); + } + + public void CombatMarkTimeBaseLine() + { + this._battle_Statistics.MarkTimeBaseLine(); + } + + public void CombatMarkTimEndLine() + { + this._battle_Statistics.MarkTimEndLine(); + } + + public void CombatAppendDamage(double damage) + { + this._battle_Statistics.AppendDamage(damage); + } + + public void TogglePrintDamage(bool bStart) + { + if (bStart) + { + this._battle_Statistics.StartPrintDamage(0f); + } + else + { + this._battle_Statistics.StopPrintDamage(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAttributes.cs.meta b/Client/Assets/Scripts/XMainClient/XAttributes.cs.meta new file mode 100644 index 00000000..9bb662f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAttributes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4b2a282141571f4f9da367ea8379de3 +timeCreated: 1611404604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAudioComponent.cs b/Client/Assets/Scripts/XMainClient/XAudioComponent.cs new file mode 100644 index 00000000..e091306c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioComponent.cs @@ -0,0 +1,177 @@ +using System; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAudioComponent : XComponent + { + public override uint ID + { + get + { + return XAudioComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Audio"); + + private IXFmod _emitter = null; + + private static CommandCallback _initCb = new CommandCallback(XAudioComponent._Init); + + private GameObject cachedGo; + + private static void _Init(XGameObject gameObject, object o, int commandID) + { + XAudioComponent xaudioComponent = o as XAudioComponent; + xaudioComponent.cachedGo = gameObject.Get(); + xaudioComponent.InitEmitter(); + } + + private void InitEmitter() + { + bool flag = this._emitter != null && this.cachedGo != null; + if (flag) + { + Rigidbody rigidbody = null; + bool flag2 = this.cachedGo != null; + if (flag2) + { + rigidbody = this.cachedGo.GetComponent(); + } + this._emitter.Init(this.cachedGo, rigidbody); + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + bool flag = this._entity != null && this._entity.EngineObject != null; + if (flag) + { + this._entity.EngineObject.CallCommand(XAudioComponent._initCb, this, -1, false); + } + } + + public override void Attached() + { + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_PlaySound, new XComponent.XEventHandler(this.Play)); + } + + public override void OnDetachFromHost() + { + bool flag = this._emitter != null; + if (flag) + { + this._emitter.Destroy(); + XSingleton.singleton.XPlatform.ReturnClass(EClassType.ERuntimeFMOD, this._emitter); + this._emitter = null; + } + base.OnDetachFromHost(); + } + + public void StopChannel(AudioChannel channel) + { + bool flag = this._emitter != null; + if (flag) + { + this._emitter.Stop(channel); + } + } + + public bool IsPlaying(AudioChannel channel) + { + bool flag = this._emitter != null; + return flag && this._emitter.IsPlaying(channel); + } + + public void Set3DPos(Vector3 pos) + { + bool flag = this._host == null; + if (!flag) + { + bool flag2 = this._emitter == null; + if (flag2) + { + this._emitter = (XSingleton.singleton.XPlatform.CreateClass(EClassType.ERuntimeFMOD) as IXFmod); + this.InitEmitter(); + } + this._emitter.Update3DAttributes(pos, AudioChannel.Action); + } + } + + protected bool Play(XEventArgs e) + { + XPlaySoundArgs xplaySoundArgs = e as XPlaySoundArgs; + XPlaySoundArgs.Action soundAction = xplaySoundArgs.SoundAction; + AudioChannel soundChannel = xplaySoundArgs.SoundChannel; + bool bUseFMOD = XSingleton.singleton.bUseFMOD; + if (bUseFMOD) + { + bool flag = this._emitter == null; + if (flag) + { + this._emitter = (XSingleton.singleton.XPlatform.CreateClass(EClassType.ERuntimeFMOD) as IXFmod); + this.InitEmitter(); + } + XPlaySoundArgs.Action action = soundAction; + if (action != XPlaySoundArgs.Action.Play) + { + if (action == XPlaySoundArgs.Action.Stop) + { + this._emitter.Stop(soundChannel); + } + } + else + { + bool flag2 = soundChannel == AudioChannel.Behit; + if (flag2) + { + bool flag3 = xplaySoundArgs.ExParam != null && XEntity.ValideEntity(xplaySoundArgs.ExParam._caster) && xplaySoundArgs.ExParam._caster.IsRole; + if (flag3) + { + float value = xplaySoundArgs.ExParam._caster.TypeID % 10u; + this._emitter.StartEvent("event:/" + xplaySoundArgs.EventName, soundChannel, false, "attacktype", value); + goto IL_24F; + } + } + bool flag4 = this._entity != null && this._entity.IsPlayer && (soundChannel == AudioChannel.Skill || soundChannel == AudioChannel.SkillCombine); + if (flag4) + { + this._emitter.Update3DAttributes(XSingleton.singleton.GameCamera.CameraTrans.position, AudioChannel.Action); + } + else + { + bool flag5 = this._entity != null && this._entity.IsDummy; + if (flag5) + { + this._emitter.Update3DAttributes(XSingleton.singleton.GameCamera.CameraTrans.position, AudioChannel.Action); + } + } + bool flag6 = xplaySoundArgs.ExParam != null && xplaySoundArgs.ExParam._3dPos != Vector3.zero; + if (flag6) + { + this._emitter.Update3DAttributes(xplaySoundArgs.ExParam._3dPos, AudioChannel.Action); + } + bool flag7 = xplaySoundArgs.ExParam != null && !string.IsNullOrEmpty(xplaySoundArgs.ExParam._fmodParam); + if (flag7) + { + this._emitter.StartEvent("event:/" + xplaySoundArgs.EventName, soundChannel, true, xplaySoundArgs.ExParam._fmodParam, xplaySoundArgs.ExParam._fmodValue); + } + else + { + this._emitter.StartEvent("event:/" + xplaySoundArgs.EventName, soundChannel, true, "", 0f); + } + } + IL_24F:; + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAudioComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XAudioComponent.cs.meta new file mode 100644 index 00000000..6cc647d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03f857957fccef346a4a5559528330a5 +timeCreated: 1611402960 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAudioExParam.cs b/Client/Assets/Scripts/XMainClient/XAudioExParam.cs new file mode 100644 index 00000000..695edb19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioExParam.cs @@ -0,0 +1,36 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XAudioExParam + { + public XEntity _caster; + + public Vector3 _3dPos; + + public string _fmodParam; + + public float _fmodValue; + + public XAudioExParam(XEntity e) + { + this._caster = e; + this._3dPos = Vector3.zero; + } + + public XAudioExParam(Vector3 pos) + { + this._caster = null; + this._3dPos = pos; + } + + public XAudioExParam(string param, float v) + { + this._caster = null; + this._3dPos = Vector3.zero; + this._fmodParam = param; + this._fmodValue = v; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAudioExParam.cs.meta b/Client/Assets/Scripts/XMainClient/XAudioExParam.cs.meta new file mode 100644 index 00000000..626dc93f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioExParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0be181fc8fb30154eae9dff98717cbd6 +timeCreated: 1611403170 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAudioMgr.cs b/Client/Assets/Scripts/XMainClient/XAudioMgr.cs new file mode 100644 index 00000000..cb306c74 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioMgr.cs @@ -0,0 +1,493 @@ +using System; +using System.Collections.Generic; +using System.Text; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XAudioMgr : XSingleton + { + private XTableAsyncLoader _async_loader = null; + + private ActionAudio _reader = new ActionAudio(); + + private StringBuilder _sound = new StringBuilder("Audio/", 128); + + private IXFmodBus _fModBus = null; + + public bool bUseFMOD = true; + + public bool hasSound = true; + + public override bool Init() + { + GameObject gameObject = GameObject.Find("XGamePoint"); + this._fModBus = (gameObject.GetComponent("XFmodBus") as IXFmodBus); + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/ActionAudio", this._reader, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + foreach (KeyValuePair keyValuePair in this._reader.Table) + { + ActionAudio.RowData value = keyValuePair.Value; + this.InnerInit(value.Prefab, value.Idle); + this.InnerInit(value.Prefab, value.Move); + this.InnerInit(value.Prefab, value.Freeze); + this.InnerInit(value.Prefab, value.Charge); + this.InnerInit(value.Prefab, value.Jump); + this.InnerInit(value.Prefab, value.Fall); + this.InnerInit(value.Prefab, value.Behit); + this.InnerInit(value.Prefab, value.BehitFly); + this.InnerInit(value.Prefab, value.BehitRoll); + this.InnerInit(value.Prefab, value.Death); + this.InnerInit(value.Prefab, value.BehitSuperArmor); + } + result = true; + } + return result; + } + + public override void Uninit() + { + this._async_loader = null; + } + + public void OnLeaveScene() + { + } + + public void SetSystemMute(bool mute) + { + bool flag = this._fModBus != null; + if (flag) + { + this._fModBus.SetMainVolume((float)(mute ? 0 : 1)); + } + } + + public void SetSystemVolume(float volume) + { + bool flag = this._fModBus != null; + if (flag) + { + this._fModBus.SetMainVolume(volume); + } + } + + public void SetBGMVolume(bool state) + { + bool flag = this._fModBus != null; + if (flag) + { + this._fModBus.SetBGMVolume((float)(state ? 1 : 0)); + } + } + + public string GetFullSoundName(string strPrefab, string strValueInTable) + { + this._sound.Remove(6, this._sound.Length - 6); + return this._sound.Append(strValueInTable).ToString(); + } + + public void StopSound(IXFmod iFmod) + { + bool flag = iFmod != null; + if (flag) + { + iFmod.Destroy(); + } + } + + public void PlaySound(IXFmod iFmod, AudioChannel channel, string eventname) + { + bool flag = iFmod != null; + if (flag) + { + iFmod.StartEvent("event:/" + eventname, channel, true, "", 0f); + } + } + + public void PlaySound(XObject entity, AudioChannel channel, string eventname, Vector3 correctTo) + { + this.PlaySound(entity, channel, eventname, false, new XAudioExParam(correctTo)); + } + + public void StopSound(XObject entity, AudioChannel channel) + { + bool flag = !this.hasSound; + if (!flag) + { + XPlaySoundArgs @event = XEventPool.GetEvent(); + @event.SoundAction = XPlaySoundArgs.Action.Stop; + @event.SoundChannel = channel; + @event.Firer = entity; + XSingleton.singleton.FireEvent(@event); + } + } + + public void PlaySound(XObject entity, AudioChannel channel, string eventname) + { + this.PlaySound(entity, channel, eventname, false, null); + } + + public void PlaySound(XObject entity, AudioChannel channel, string eventname, bool bDepracatedPass, XAudioExParam param) + { + bool flag = !this.hasSound; + if (!flag) + { + XPlaySoundArgs @event = XEventPool.GetEvent(); + @event.DepracatedPass = bDepracatedPass; + @event.SoundAction = XPlaySoundArgs.Action.Play; + @event.SoundChannel = channel; + @event.EventName = eventname; + @event.Firer = entity; + @event.ExParam = param; + XSingleton.singleton.FireEvent(@event); + } + } + + public void PlaySound(XEntity entity, AudioChannel channel, XAudioStateDefine state) + { + this.PlaySound(entity, channel, state, false, null); + } + + public void PlaySound(XEntity entity, AudioChannel channel, XAudioStateDefine state, bool bDepracatedPass, XAudioExParam param) + { + bool flag = !this.hasSound; + if (!flag) + { + float delay = 0f; + string[] audioTagByState = this.GetAudioTagByState(entity, state, out delay); + bool flag2 = audioTagByState == null || audioTagByState.Length == 0; + if (!flag2) + { + bool flag3 = audioTagByState.Length != 0; + if (flag3) + { + XPlaySoundArgs @event = XEventPool.GetEvent(); + @event.DepracatedPass = bDepracatedPass; + @event.SoundAction = XPlaySoundArgs.Action.Play; + @event.SoundChannel = channel; + @event.EventName = audioTagByState[0]; + @event.Firer = entity; + @event.ExParam = param; + XSingleton.singleton.FireEvent(@event, delay); + } + bool flag4 = audioTagByState.Length > 1; + if (flag4) + { + XPlaySoundArgs event2 = XEventPool.GetEvent(); + event2.DepracatedPass = bDepracatedPass; + event2.SoundAction = XPlaySoundArgs.Action.Play; + event2.SoundChannel = this.GetAnotherChannel(channel); + event2.EventName = audioTagByState[1]; + event2.Firer = entity; + event2.ExParam = param; + XSingleton.singleton.FireEvent(event2, delay); + } + } + } + } + + protected AudioChannel GetAnotherChannel(AudioChannel inChannel) + { + switch (inChannel) + { + case AudioChannel.Motion: + return AudioChannel.Action; + case AudioChannel.Action: + return AudioChannel.Motion; + case AudioChannel.Skill: + return AudioChannel.Motion; + } + return AudioChannel.Motion; + } + + public bool IsPlayingSound(XEntity entity, AudioChannel channel) + { + bool flag = entity.Audio != null; + return flag && entity.Audio.IsPlaying(channel); + } + + public string[] GetAudioTagByState(XEntity entity, XAudioStateDefine state, out float t) + { + string[] array = null; + t = 0f; + string key = entity.IsTransform ? entity.Transformer.Prefab : entity.Prefab; + ActionAudio.RowData byPrefab = this._reader.GetByPrefab(key); + bool flag = byPrefab != null; + if (flag) + { + switch (state) + { + case XAudioStateDefine.XState_Audio_Idle: + array = byPrefab.Idle; + break; + case XAudioStateDefine.XState_Audio_Move: + { + bool isMounted = entity.IsMounted; + if (isMounted) + { + ActionAudio.RowData byPrefab2 = this._reader.GetByPrefab(entity.Mount.Prefab); + bool flag2 = byPrefab2 != null; + if (flag2) + { + array = byPrefab2.Move; + } + } + else + { + array = byPrefab.Move; + } + break; + } + case XAudioStateDefine.XState_Audio_Jump: + array = byPrefab.Jump; + break; + case XAudioStateDefine.XState_Audio_Fall: + array = byPrefab.Fall; + break; + case XAudioStateDefine.XState_Audio_Freeze: + array = byPrefab.Freeze; + break; + case XAudioStateDefine.XState_Audio_BeHit: + { + bool flag3 = entity.BeHit != null; + if (flag3) + { + switch (entity.BeHit.CurrentStateinLogical) + { + case XBeHitState.Hit_Back: + array = byPrefab.Behit; + break; + case XBeHitState.Hit_Fly: + array = byPrefab.BehitFly; + break; + case XBeHitState.Hit_Roll: + array = byPrefab.BehitRoll; + break; + } + } + break; + } + case XAudioStateDefine.XState_Audio_Death: + array = byPrefab.Death; + break; + case XAudioStateDefine.XState_Audio_Charge: + array = byPrefab.Charge; + break; + case XAudioStateDefine.XState_Audio_Bati: + array = byPrefab.BehitSuperArmor; + break; + } + bool flag4 = array != null && array.Length != 0; + if (flag4) + { + t = 0f; + } + } + return array; + } + + private void InnerInit(string prefab, string[] clips) + { + bool flag = clips != null; + if (flag) + { + for (int i = 0; i < clips.Length; i++) + { + bool flag2 = i == clips.Length - 1; + if (flag2) + { + float num = 0f; + bool flag3 = !float.TryParse(clips[i], out num); + if (flag3) + { + clips[i] = this.GetFullSoundName(prefab, clips[i]); + } + break; + } + clips[i] = this.GetFullSoundName(prefab, clips[i]); + } + } + } + + public void StoreAudioSource(GameObject go) + { + } + + public void StopUISound() + { + IXFmod fmodComponent = this.GetFmodComponent(XSingleton.singleton.UIAudio); + fmodComponent.Stop(AudioChannel.Action); + } + + public void PlayUISound(string name, bool stopall = true, AudioChannel channel = AudioChannel.Action) + { + bool flag = !this.hasSound; + if (!flag) + { + bool flag2 = this.bUseFMOD; + if (flag2) + { + IXFmod fmodComponent = this.GetFmodComponent(XSingleton.singleton.UIAudio); + if (stopall) + { + fmodComponent.Stop(channel); + } + fmodComponent.StartEvent("event:/" + name, channel, true, "", 0f); + } + } + } + + public void PlayBGM(string bgm) + { + bool flag = !this.hasSound; + if (!flag) + { + bool flag2 = string.IsNullOrEmpty(bgm); + if (!flag2) + { + GameObject gameObject = GameObject.Find("Scene"); + bool flag3 = gameObject == null; + if (!flag3) + { + bool flag4 = this.bUseFMOD; + if (flag4) + { + IXFmod fmodComponent = this.GetFmodComponent(gameObject); + fmodComponent.StartEvent("event:/" + bgm, AudioChannel.Action, true, "", 0f); + } + } + } + } + } + + public void ResumeBGM() + { + bool flag = !this.hasSound; + if (!flag) + { + GameObject gameObject = GameObject.Find("Scene"); + bool flag2 = gameObject == null; + if (!flag2) + { + bool flag3 = this.bUseFMOD; + if (flag3) + { + IXFmod fmodComponent = this.GetFmodComponent(gameObject); + fmodComponent.Play(AudioChannel.Action); + } + } + } + } + + public void PauseBGM() + { + bool flag = !this.hasSound; + if (!flag) + { + GameObject gameObject = GameObject.Find("Scene"); + bool flag2 = gameObject == null; + if (!flag2) + { + bool flag3 = this.bUseFMOD; + if (flag3) + { + IXFmod fmodComponent = this.GetFmodComponent(gameObject); + fmodComponent.Stop(AudioChannel.Action); + } + } + } + } + + public IXFmod GetFmodComponent(GameObject go) + { + IXFmod ixfmod = go.GetComponent("XFmod") as IXFmod; + bool flag = ixfmod == null; + if (flag) + { + ixfmod = (XSingleton.singleton.XPlatform.AddComponent(go, EComponentType.EXFmod) as IXFmod); + } + return ixfmod; + } + + public void PlaySoundAt(Vector3 position, string bgm) + { + bool flag = !this.hasSound; + if (!flag) + { + bool flag2 = string.IsNullOrEmpty(bgm); + if (!flag2) + { + bool flag3 = this._fModBus != null; + if (flag3) + { + this._fModBus.PlayOneShot("event:/" + bgm, position); + } + } + } + } + + public void SetBGMVolme(float vol) + { + bool flag = this._fModBus != null; + if (flag) + { + this._fModBus.SetBGMVolume(vol); + } + } + + public void SetMscVolme(float vol) + { + bool flag = this._fModBus != null; + if (flag) + { + this._fModBus.SetSFXVolume(vol); + } + } + + public void SetMainBusVolume(float volume) + { + this.SetBusStatuMute("bus:/MainGroupControl", volume); + } + + public void SetBusStatuMute(string bus, float volume) + { + bool flag = !this.hasSound; + if (!flag) + { + bool flag2 = this._fModBus != null; + if (flag2) + { + this._fModBus.SetBusVolume(bus, volume); + } + } + } + + public void StopSoundForCutscene() + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.StopVoice(); + } + this.StopUISound(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAudioMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XAudioMgr.cs.meta new file mode 100644 index 00000000..9b5556d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: def590b497e0daa4da713d60d73e14bc +timeCreated: 1611404690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAudioOperationArgs.cs b/Client/Assets/Scripts/XMainClient/XAudioOperationArgs.cs new file mode 100644 index 00000000..c0332f30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioOperationArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XAudioOperationArgs : XEventArgs + { + public bool IsAudioOn = true; + + public XAudioOperationArgs() + { + this._eDefine = XEventDefine.XEvent_AudioOperation; + } + + public override void Recycle() + { + base.Recycle(); + this.IsAudioOn = true; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAudioOperationArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XAudioOperationArgs.cs.meta new file mode 100644 index 00000000..55a9e7dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioOperationArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8cec9fe1b27379b43a10ee9d578f6ecf +timeCreated: 1611404102 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAudioStateDefine.cs b/Client/Assets/Scripts/XMainClient/XAudioStateDefine.cs new file mode 100644 index 00000000..591abe6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioStateDefine.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal enum XAudioStateDefine + { + XState_Audio_Idle, + XState_Audio_Move, + XState_Audio_Jump, + XState_Audio_Fall, + XState_Audio_Freeze, + XState_Audio_BeHit, + XState_Audio_Death, + XState_Audio_Charge, + XState_Audio_Bati + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAudioStateDefine.cs.meta b/Client/Assets/Scripts/XMainClient/XAudioStateDefine.cs.meta new file mode 100644 index 00000000..35b414e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAudioStateDefine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 705a2f0cb74bb3f4d9db12b35cd94aa1 +timeCreated: 1611403931 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAuthorizationChannel.cs b/Client/Assets/Scripts/XMainClient/XAuthorizationChannel.cs new file mode 100644 index 00000000..2f6eb241 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAuthorizationChannel.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + public enum XAuthorizationChannel + { + XAuthorization_Internal = 1, + XAuthorization_SD, + XAuthorization_QQ, + XAuthorization_WeChat, + XAuthorization_Guest, + XAuthorization_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAuthorizationChannel.cs.meta b/Client/Assets/Scripts/XMainClient/XAuthorizationChannel.cs.meta new file mode 100644 index 00000000..33e953f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAuthorizationChannel.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 488b60d214a1a2a48afc173b4463f86a +timeCreated: 1611403658 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XAutoFade.cs b/Client/Assets/Scripts/XMainClient/XAutoFade.cs new file mode 100644 index 00000000..48f5d5cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAutoFade.cs @@ -0,0 +1,162 @@ +using System; +using System.Collections; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public sealed class XAutoFade + { + private static float _in = 0f; + + private static bool _force_from_black = false; + + private static IEnumerator _fadeToBlack = null; + + private static IEnumerator _fadeToClear = null; + + private enum FadeType + { + ToBlack, + ToClear + } + + public static void PostUpdate() + { + bool flag = XAutoFade._fadeToBlack != null; + if (flag) + { + bool flag2 = !XAutoFade._fadeToBlack.MoveNext(); + if (flag2) + { + XAutoFade._fadeToBlack = null; + } + } + else + { + bool flag3 = XAutoFade._fadeToClear != null; + if (flag3) + { + bool flag4 = !XAutoFade._fadeToClear.MoveNext(); + if (flag4) + { + XAutoFade._fadeToClear = null; + } + } + } + } + + public static void MakeBlack(bool stopall = false) + { + if (stopall) + { + XAutoFade.StopAll(); + } + XSingleton.singleton.SetOverlayAlpha(1f); + } + + public static void FadeOut2In(float In, float Out) + { + XAutoFade._in = In; + XAutoFade.FadeOut(Out); + } + + public static void FadeIn(float duration, bool fromBlack = false) + { + XAutoFade.StopAll(); + XAutoFade._force_from_black = fromBlack; + XAutoFade.Start(XAutoFade.FadeType.ToClear, duration); + } + + public static void FadeOut(float duration) + { + XAutoFade.StopAll(); + XAutoFade.Start(XAutoFade.FadeType.ToBlack, duration); + } + + public static void FastFadeIn() + { + XAutoFade.StopAll(); + XSingleton.singleton.SetOverlayAlpha(0f); + } + + private static IEnumerator FadeToBlack(float duration) + { + float alpha = XSingleton.singleton.GetOverlayAlpha(); + float rate = 1f / duration; + float progress = alpha; + while (progress < 1f && XSingleton.singleton.GetOverlayAlpha() < 1f) + { + XSingleton.singleton.SetOverlayAlpha(Mathf.Lerp(0f, 1f, progress)); + progress += rate * ((Time.timeScale != 0f) ? (Time.deltaTime / Time.timeScale) : Time.unscaledDeltaTime); + yield return null; + } + XSingleton.singleton.SetOverlayAlpha(1f); + bool flag = XAutoFade._in > 0f; + if (flag) + { + XAutoFade.FadeIn(XAutoFade._in, false); + XAutoFade._in = 0f; + } + yield break; + } + + private static IEnumerator FadeToClear(float duration) + { + float alpha = XSingleton.singleton.GetOverlayAlpha(); + bool force_from_black = XAutoFade._force_from_black; + if (force_from_black) + { + alpha = 1f; + XSingleton.singleton.SetOverlayAlpha(1f); + } + bool flag = duration == 0f; + if (flag) + { + alpha = 0f; + } + else + { + float rate = 1f / duration; + float progress = 1f - alpha; + while (progress < 1f && XSingleton.singleton.GetOverlayAlpha() > 0f) + { + XSingleton.singleton.SetOverlayAlpha(Mathf.Lerp(1f, 0f, progress)); + progress += rate * ((Time.timeScale != 0f) ? (Time.deltaTime / Time.timeScale) : Time.unscaledDeltaTime); + yield return null; + } + } + XSingleton.singleton.SetOverlayAlpha(0f); + yield break; + } + + private static void Start(XAutoFade.FadeType type, float duration) + { + if (type != XAutoFade.FadeType.ToBlack) + { + if (type == XAutoFade.FadeType.ToClear) + { + bool flag = XAutoFade._fadeToClear == null; + if (flag) + { + XAutoFade._fadeToClear = XAutoFade.FadeToClear(duration); + } + } + } + else + { + bool flag2 = XAutoFade._fadeToBlack == null; + if (flag2) + { + XAutoFade._fadeToBlack = XAutoFade.FadeToBlack(duration); + } + } + } + + private static void StopAll() + { + XAutoFade._fadeToBlack = null; + XAutoFade._fadeToClear = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XAutoFade.cs.meta b/Client/Assets/Scripts/XMainClient/XAutoFade.cs.meta new file mode 100644 index 00000000..55f43569 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XAutoFade.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 725155663fd0c734abc2c1bebf6bb6ee +timeCreated: 1611403937 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowBehavior.cs b/Client/Assets/Scripts/XMainClient/XBackFlowBehavior.cs new file mode 100644 index 00000000..5f2c6988 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowBehavior.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBackFlowBehavior : DlgBehaviourBase + { + public XUIPool TabItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton CloseBtn; + + public Transform HandlersParent; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Tabs/TabTpl"); + this.TabItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.CloseBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.HandlersParent = base.transform.Find("Bg/Handler"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowBehavior.cs.meta new file mode 100644 index 00000000..a9d99bb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d124f2ad8fd7594a912e2f6a0fd4e7c +timeCreated: 1611403350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs b/Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs new file mode 100644 index 00000000..6c12938a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs @@ -0,0 +1,432 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + [Hotfix] + internal class XBackFlowDlg : DlgBase + { + public override string fileName + { + get + { + return "Hall/BackflowDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.Xsys_Backflow); + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XBackFlowLevelUpHandler _levelUpHandler; + + private XBackFlowMallHandler _mallHandler; + + private XBackFlowWelfareHandler _welfareHandler; + + private XBackFlowTasksHandler _taskHandler; + + private XBackFlowTargetHandler _targetHandler; + + private XBackFlowPrivilegeHandler _privilegeHandler; + + private XBackFlowServerHandler _serverHandler; + + private XBackFlowPandoraSDKHandler m_pandoraSDKHandler; + + private XSysDefine _curShowSys = XSysDefine.XSys_None; + + private SeqList _tabName2Sys; + + private List _tabList = new List(); + + private DlgHandlerBase _curHandler; + + private XFx _backflowEffect; + + private IXUILabel _endTime; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + this.UnloadHandlers(); + bool flag = this._curHandler != null; + if (flag) + { + this._curHandler.SetVisible(false); + } + this._curHandler = null; + this._tabList.Clear(); + XBackFlowDocument.Doc.StopRefreshLeftTime(); + bool flag2 = this._backflowEffect != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._backflowEffect, true); + } + this._backflowEffect = null; + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this._tabName2Sys = XSingleton.singleton.GetStringSeqList("XBackFlowTabName2Sys"); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDlg)); + this._endTime = (base.uiBehaviour.transform.Find("Bg/Time").GetComponent("XUILabel") as IXUILabel); + this._backflowEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_huanyinghuigu", null, true); + this._backflowEffect.SetActive(false); + } + + protected override void OnHide() + { + this._curShowSys = XSysDefine.XSys_None; + this._tabList.Clear(); + bool flag = this._curHandler != null; + if (flag) + { + this._curHandler.SetVisible(false); + } + this._curHandler = null; + XBackFlowDocument.Doc.StopRefreshLeftTime(); + base.OnHide(); + } + + protected override void OnShow() + { + base.OnShow(); + this.UpdateTabs(); + XBackFlowDocument.Doc.SendBackFlowActivityOperation(BackFlowActOp.BackFlowAct_TreasureData, 0u); + this._backflowEffect.SetActive(false); + bool firstShowBackFlowDlg = XBackFlowDocument.Doc.FirstShowBackFlowDlg; + if (firstShowBackFlowDlg) + { + XBackFlowDocument.Doc.FirstShowBackFlowDlg = false; + this.PlayBackFlowEffect(); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.RefreshHandler(); + XSingleton.singleton.RecalculateRedPointState(this._curShowSys, true); + this.RefreshTabRedPoint(this._curShowSys, XBackFlowDocument.Doc.GetRedPointState(this._curShowSys)); + } + + public void ShowHandler(XSysDefine sys) + { + this._curShowSys = sys; + this.SetVisibleWithAnimation(true, null); + } + + public void RefreshTabs(XSysDefine sys) + { + this._curShowSys = sys; + this.UpdateTabs(); + } + + public void RefreshTabRedPoint(XSysDefine sys, bool red) + { + for (int i = 0; i < this._tabList.Count; i++) + { + bool flag = this._tabList[i].ID == (ulong)((long)sys); + if (flag) + { + GameObject gameObject = this._tabList[i].gameObject.transform.Find("RedPoint").gameObject; + gameObject.SetActive(red); + } + } + } + + public void RefreshHandler() + { + bool flag = this._curHandler != null && this._curHandler.IsVisible(); + if (flag) + { + this._curHandler.RefreshData(); + } + } + + public void PlayDogEffect() + { + bool flag = this._welfareHandler != null && this._welfareHandler.IsVisible(); + if (flag) + { + this._welfareHandler.PlayDogEffect(); + } + } + + public void PlayBackFlowEffect() + { + bool flag = this._backflowEffect != null; + if (flag) + { + this._backflowEffect.SetActive(true); + this._backflowEffect.Play(base.uiBehaviour.HandlersParent, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + public void RefreshLeftTime(uint leftTime) + { + bool flag = leftTime >= 1u; + if (flag) + { + this._endTime.gameObject.SetActive(this._curShowSys != XSysDefine.XSys_BackFlowMall); + bool flag2 = leftTime >= 43200u; + if (flag2) + { + this._endTime.SetText(XSingleton.singleton.TimeDuarationFormatString((int)leftTime, 4)); + } + else + { + this._endTime.SetText(XSingleton.singleton.TimeDuarationFormatString((int)leftTime, 5)); + } + } + else + { + this._endTime.gameObject.SetActive(false); + } + } + + private void SetupHandlers(XSysDefine sys) + { + bool flag = this._curHandler != null; + if (flag) + { + this._curHandler.SetVisible(false); + } + bool flag2 = XSingleton.singleton.IsPandoraSDKTab(sys, "callBack"); + if (flag2) + { + this._curHandler = DlgHandlerBase.EnsureCreate(ref this.m_pandoraSDKHandler, base.uiBehaviour.HandlersParent, false, this); + bool flag3 = this.m_pandoraSDKHandler != null; + if (flag3) + { + this.m_pandoraSDKHandler.SetCurrSys(sys); + this.m_pandoraSDKHandler.SetVisible(true); + } + } + else + { + switch (sys) + { + case XSysDefine.Xsys_Backflow_LavishGift: + this._curHandler = DlgHandlerBase.EnsureCreate(ref this._welfareHandler, base.uiBehaviour.HandlersParent, true, this); + return; + case XSysDefine.Xsys_Backflow_Dailylogin: + case XSysDefine.Xsys_Backflow_GiftBag: + case XSysDefine.Xsys_Server_Two: + break; + case XSysDefine.Xsys_Backflow_NewServerReward: + this._curHandler = DlgHandlerBase.EnsureCreate(ref this._serverHandler, base.uiBehaviour.HandlersParent, true, this); + return; + case XSysDefine.Xsys_Backflow_LevelUp: + this._curHandler = DlgHandlerBase.EnsureCreate(ref this._levelUpHandler, base.uiBehaviour.HandlersParent, true, this); + return; + case XSysDefine.Xsys_Backflow_Task: + this._curHandler = DlgHandlerBase.EnsureCreate(ref this._taskHandler, base.uiBehaviour.HandlersParent, true, this); + return; + case XSysDefine.Xsys_Backflow_Target: + this._curHandler = DlgHandlerBase.EnsureCreate(ref this._targetHandler, base.uiBehaviour.HandlersParent, true, this); + return; + case XSysDefine.Xsys_Backflow_Privilege: + this._curHandler = DlgHandlerBase.EnsureCreate(ref this._privilegeHandler, base.uiBehaviour.HandlersParent, true, this); + return; + default: + if (sys == XSysDefine.XSys_BackFlowMall) + { + this._endTime.gameObject.SetActive(false); + this._curHandler = DlgHandlerBase.EnsureCreate(ref this._mallHandler, base.uiBehaviour.HandlersParent, true, this); + return; + } + break; + } + XSingleton.singleton.AddErrorLog("No sys in backflow", null, null, null, null, null); + } + } + + private void UnloadHandlers() + { + DlgHandlerBase.EnsureUnload(ref this._levelUpHandler); + DlgHandlerBase.EnsureUnload(ref this._mallHandler); + DlgHandlerBase.EnsureUnload(ref this._welfareHandler); + DlgHandlerBase.EnsureUnload(ref this._taskHandler); + DlgHandlerBase.EnsureUnload(ref this._targetHandler); + DlgHandlerBase.EnsureUnload(ref this._privilegeHandler); + DlgHandlerBase.EnsureUnload(ref this._serverHandler); + DlgHandlerBase.EnsureUnload(ref this.m_pandoraSDKHandler); + XSingleton.singleton.ClosePandoraTabPanel("callBack"); + } + + private void UpdateTabs() + { + this._tabList.Clear(); + base.uiBehaviour.TabItemPool.ReturnAll(false); + List list = new List(); + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_Backflow_LevelUp); + if (flag) + { + list.Add(XSysDefine.Xsys_Backflow_LevelUp); + } + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_Backflow_Target); + if (flag2) + { + list.Add(XSysDefine.Xsys_Backflow_Target); + } + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_Backflow_Task); + if (flag3) + { + list.Add(XSysDefine.Xsys_Backflow_Task); + } + bool flag4 = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_Backflow_LavishGift); + if (flag4) + { + list.Add(XSysDefine.Xsys_Backflow_LavishGift); + } + bool flag5 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_BackFlowMall); + if (flag5) + { + list.Add(XSysDefine.XSys_BackFlowMall); + } + bool flag6 = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_Backflow_Privilege); + if (flag6) + { + list.Add(XSysDefine.Xsys_Backflow_Privilege); + } + bool flag7 = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_Backflow_NewServerReward); + if (flag7) + { + list.Add(XSysDefine.Xsys_Backflow_NewServerReward); + } + bool flag8 = this._curShowSys == XSysDefine.XSys_None || (!list.Contains(this._curShowSys) && list.Count > 0 && !XSingleton.singleton.IsPandoraSDKTab(this._curShowSys, "callBack")); + if (flag8) + { + this._curShowSys = list[0]; + } + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = base.uiBehaviour.TabItemPool.FetchGameObject(false); + Vector3 tplPos = base.uiBehaviour.TabItemPool.TplPos; + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(i * base.uiBehaviour.TabItemPool.TplHeight), 0f); + Transform transform = gameObject.transform.Find("Bg/RedPoint"); + transform.gameObject.SetActive(XBackFlowDocument.Doc.GetRedPointState(list[i])); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ForceSetFlag(false); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabChange)); + ixuicheckBox.ID = (ulong)((long)list[i]); + this._tabList.Add(ixuicheckBox); + for (int j = 0; j < (int)this._tabName2Sys.Count; j++) + { + bool flag9 = this._tabName2Sys[j, 1] == ixuicheckBox.ID.ToString(); + if (flag9) + { + IXUILabel ixuilabel = gameObject.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._tabName2Sys[j, 0]); + ixuilabel2.SetText(this._tabName2Sys[j, 0]); + } + } + } + List pandoraSDKTabListInfo = XSingleton.singleton.GetPandoraSDKTabListInfo("callBack"); + bool flag10 = pandoraSDKTabListInfo != null; + if (flag10) + { + for (int k = 0; k < pandoraSDKTabListInfo.Count; k++) + { + GameObject gameObject2 = base.uiBehaviour.TabItemPool.FetchGameObject(false); + Vector3 tplPos2 = base.uiBehaviour.TabItemPool.TplPos; + gameObject2.transform.localPosition = new Vector3(tplPos2.x, tplPos2.y - (float)(this._tabList.Count * base.uiBehaviour.TabItemPool.TplHeight), 0f); + IXUICheckBox ixuicheckBox2 = gameObject2.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ForceSetFlag(false); + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabChange)); + ixuicheckBox2.ID = (ulong)((long)pandoraSDKTabListInfo[k].sysID); + this._tabList.Add(ixuicheckBox2); + IXUILabel ixuilabel3 = gameObject2.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject2.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(pandoraSDKTabListInfo[k].tabName); + ixuilabel4.SetText(pandoraSDKTabListInfo[k].tabName); + GameObject gameObject3 = gameObject2.transform.Find("Bg/RedPoint").gameObject; + gameObject3.SetActive(pandoraSDKTabListInfo[k].redPointShow); + } + } + for (int l = 0; l < this._tabList.Count; l++) + { + bool flag11 = this._tabList[l].ID == (ulong)((long)this._curShowSys); + if (flag11) + { + bool bChecked = this._tabList[l].bChecked; + if (bChecked) + { + this.SetupHandlers(this._curShowSys); + } + else + { + this._tabList[l].bChecked = true; + } + break; + } + } + } + + private bool OnTabChange(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + XSysDefine xsysDefine = (XSysDefine)iXUICheckBox.ID; + this._curShowSys = xsysDefine; + this.SetupHandlers(xsysDefine); + } + return true; + } + + private bool OnCloseDlg(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs.meta new file mode 100644 index 00000000..d0ac883d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c24e6900dc27c14490714a0e5ae70b8 +timeCreated: 1611403501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowDocument.cs b/Client/Assets/Scripts/XMainClient/XBackFlowDocument.cs new file mode 100644 index 00000000..1f4b57fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowDocument.cs @@ -0,0 +1,642 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBackFlowDocument : XDocComponent + { + public override uint ID + { + get + { + return XBackFlowDocument.uuID; + } + } + + public static BackflowShop BackflowShopTable + { + get + { + return XBackFlowDocument._backflowShopTable; + } + } + + public static XBackFlowDocument Doc + { + get + { + return XDocuments.GetSpecificDocument(XBackFlowDocument.uuID); + } + } + + public BackFlowShopData BackflowShopData + { + get + { + return this._backflowShopData; + } + } + + public uint ShopLeftTime + { + get + { + return this._shopLeftTime; + } + } + + public List RewardedTargetIDList + { + get + { + return this._rewardedTargetIDList; + } + } + + public uint TargetPoint + { + get + { + return this._point; + } + set + { + this._point = value; + } + } + + public List ServerRoleList + { + get + { + return this._serverRoleList; + } + } + + public ulong SelectedRoleID + { + get + { + return this._SelectedRoleID; + } + } + + public bool CanSelectRole + { + get + { + return this._hasSelectRole; + } + } + + public bool IsPayReturnOpen + { + get + { + return this._isPayReturnOpen; + } + } + + public uint TotalPay + { + get + { + return this._totalPay; + } + } + + public uint DragonLeftTimes + { + get + { + return this._dragonLeftTimes; + } + } + + public uint NestLeftTimes + { + get + { + return this._nestLeftTimes; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XBackFlowDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static BackflowActivity _backflowActivity = new BackflowActivity(); + + private static BackflowShop _backflowShopTable = new BackflowShop(); + + private static WorldLevelExpBuff _worldLevelTable = new WorldLevelExpBuff(); + + private List _backflowTaskList = new List(); + + private List _rewardedTargetIDList = new List(); + + private uint _point; + + private BackFlowShopData _backflowShopData = null; + + private List _serverRoleList = new List(); + + private uint _shopLeftTime = 0u; + + private uint _backflowLeftTime = 0u; + + private uint _leftTimeToken = 0u; + + private ulong _SelectedRoleID = 0UL; + + private Dictionary> _serverIDToRoleList = new Dictionary>(); + + private ulong _userSelectedRoleID = 0UL; + + private uint _curWorldLevel; + + public bool FirstShowBackFlowDlg = false; + + private bool _hasSelectRole = true; + + private uint _totalPay = 0u; + + private uint _dragonLeftTimes = 1u; + + private uint _nestLeftTimes = 0u; + + private bool _isPayReturnOpen = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XBackFlowDocument.AsyncLoader.AddTask("Table/BackflowActivity", XBackFlowDocument._backflowActivity, false); + XBackFlowDocument.AsyncLoader.AddTask("Table/BackFlowShop", XBackFlowDocument._backflowShopTable, false); + XBackFlowDocument.AsyncLoader.AddTask("Table/WorldLevelExpBuff", XBackFlowDocument._worldLevelTable, false); + XBackFlowDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ActivityTaskUpdate, new XComponent.XEventHandler(this.OnActivityUpdate)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.FirstShowBackFlowDlg = false; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = this.FirstShowBackFlowDlg && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + } + + public List GetBackflowDataByTypeAndWorldLevel(uint type) + { + List list = new List(); + BackflowActivity.RowData[] table = XBackFlowDocument._backflowActivity.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].Type == type && table[i].WorldLevel[0] <= this._curWorldLevel && table[i].WorldLevel[1] >= this._curWorldLevel; + if (flag) + { + list.Add(table[i].Point); + } + } + return list; + } + + public uint GetBannerTaskID() + { + BackFlowData backFlowData = null; + SpActivity activityRecord = XTempActivityDocument.Doc.ActivityRecord; + for (int i = 0; i < activityRecord.spActivity.Count; i++) + { + bool flag = activityRecord.spActivity[i].actid == 5u; + if (flag) + { + backFlowData = activityRecord.spActivity[i].backflow; + break; + } + } + bool flag2 = backFlowData != null; + if (flag2) + { + uint sealType = XLevelSealDocument.Doc.SealType; + BackflowActivity.RowData[] table = XBackFlowDocument._backflowActivity.Table; + for (int j = 0; j < table.Length; j++) + { + bool flag3 = table[j].Type == 3u && table[j].WorldLevel[0] <= backFlowData.worldlevel && table[j].WorldLevel[1] >= backFlowData.worldlevel; + if (flag3) + { + return table[j].TaskId; + } + } + } + return 0u; + } + + public void AttachPandoraRedPoint(int sysID) + { + int sys = XFastEnumIntEqualityComparer.ToInt(XSysDefine.Xsys_Backflow); + bool flag = sysID != 0; + if (flag) + { + XSingleton.singleton.AttachSysRedPointRelative(sys, sysID, false); + } + } + + public uint GetLevelUpDegree() + { + uint level = XSingleton.singleton.XPlayerData.Level; + uint result = level; + WorldLevelExpBuff.RowData[] table = XBackFlowDocument._worldLevelTable.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].WorldLevel == this._curWorldLevel && level >= table[i].Level[0] && level <= table[i].Level[1]; + if (flag) + { + result = table[i].BackflowLevel; + break; + } + } + return result; + } + + public void InitBackflowData() + { + this._backflowTaskList.Clear(); + SpActivity activityRecord = XTempActivityDocument.Doc.ActivityRecord; + bool flag = activityRecord != null; + if (flag) + { + for (int i = 0; i < activityRecord.spActivity.Count; i++) + { + bool flag2 = activityRecord.spActivity[i].actid == 5u; + if (flag2) + { + List task = activityRecord.spActivity[i].task; + for (int j = 0; j < task.Count; j++) + { + for (int k = 0; k < XBackFlowDocument._backflowActivity.Table.Length; k++) + { + bool flag3 = XBackFlowDocument._backflowActivity.Table[k].TaskId == task[j].taskid && XBackFlowDocument._backflowActivity.Table[k].Type == 2u; + if (flag3) + { + this._backflowTaskList.Add(task[j]); + } + } + } + BackFlowData backflow = activityRecord.spActivity[i].backflow; + bool flag4 = backflow != null; + if (flag4) + { + this._point = backflow.point; + this._rewardedTargetIDList = backflow.alreadyGet; + } + } + } + this._backflowTaskList.Sort(new Comparison(this.SortBackFlowTaskList)); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.Xsys_Backflow, true); + } + } + + public List GetServerList() + { + return new List(this._serverIDToRoleList.Keys); + } + + public List GetBackflowTaskList() + { + return this._backflowTaskList; + } + + public void StopRefreshLeftTime() + { + bool flag = this._leftTimeToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._leftTimeToken); + } + this._leftTimeToken = 0u; + } + + public List GetRoleListByServerid(uint serverID) + { + bool flag = this._serverIDToRoleList.ContainsKey(serverID); + List result; + if (flag) + { + result = this._serverIDToRoleList[serverID]; + } + else + { + result = new List(); + } + return result; + } + + public void StartRefreshLeftTime() + { + bool flag = this._leftTimeToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._leftTimeToken); + } + this._leftTimeToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.MinusBackFlowLeftTime), 1); + } + + public void SendBackFlowActivityOperation(BackFlowActOp v, uint itemID = 0u) + { + RpcC2G_BackFlowActivityOperation rpcC2G_BackFlowActivityOperation = new RpcC2G_BackFlowActivityOperation(); + rpcC2G_BackFlowActivityOperation.oArg.arg = itemID; + rpcC2G_BackFlowActivityOperation.oArg.type = v; + XSingleton.singleton.Send(rpcC2G_BackFlowActivityOperation); + } + + public void OnGetBackFlowOperation(BackFlowActivityOperationArg oArg, BackFlowActivityOperationRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + bool flag2 = oRes.errorcode == ErrorCode.ERR_BACKFLOWSHOP_SHOPCLOSE; + if (flag2) + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshTabs(XSysDefine.XSys_None); + } + } + } + else + { + bool flag4 = oArg.type == BackFlowActOp.BackFlowAct_TreasureData; + if (flag4) + { + this._point = oRes.point; + this._rewardedTargetIDList = oRes.alreadyGet; + this._dragonLeftTimes = oRes.leftSmallDragonCount; + this._nestLeftTimes = oRes.leftNestCount; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.Xsys_Backflow_Target, true); + } + bool flag5 = oArg.type == BackFlowActOp.BackFlowAct_GetTreasure; + if (flag5) + { + this._point = oRes.point; + this._rewardedTargetIDList = oRes.alreadyGet; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.Xsys_Backflow_Target, true); + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.RefreshTabRedPoint(XSysDefine.Xsys_Backflow_Target, this.GetRedPointState(XSysDefine.Xsys_Backflow_Target)); + } + } + bool flag7 = oArg.type == BackFlowActOp.BackFlowAct_ShopData || oArg.type == BackFlowActOp.BackFlowAct_ShopUpdate || oArg.type == BackFlowActOp.BackFlowAct_ShopBuy; + if (flag7) + { + this._backflowShopData = oRes.shop; + this._shopLeftTime = oRes.shopLeftTime; + } + this._backflowLeftTime = oRes.activityLeftTime; + bool flag8 = DlgBase.singleton.IsVisible(); + if (flag8) + { + DlgBase.singleton.RefreshHandler(); + this.StartRefreshLeftTime(); + } + } + } + + public void OnGetReward(GetSpActivityRewardArg oArg, GetSpActivityRewardRes oRes) + { + bool flag = oArg.taskid == this.GetBannerTaskID(); + if (flag) + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.Xsys_Backflow_LavishGift, true); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshHandler(); + DlgBase.singleton.RefreshTabRedPoint(XSysDefine.Xsys_Backflow_LavishGift, this.GetRedPointState(XSysDefine.Xsys_Backflow_LavishGift)); + } + } + } + + public void SendToGetNewZoneBenefit() + { + RpcC2G_GetNewZoneBenefit rpc = new RpcC2G_GetNewZoneBenefit(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetNewZoneBenefit(GetNewZoneBenefitRes oRes) + { + this._serverRoleList = oRes.roles; + this._SelectedRoleID = oRes.select_roleid; + this._hasSelectRole = oRes.has_select; + this._isPayReturnOpen = oRes.is_open; + this._totalPay = oRes.total_paycnt; + this._serverIDToRoleList.Clear(); + for (int i = 0; i < this._serverRoleList.Count; i++) + { + uint serverid = this._serverRoleList[i].serverid; + bool flag = !this._serverIDToRoleList.ContainsKey(serverid); + if (flag) + { + this._serverIDToRoleList.Add(serverid, new List()); + } + bool flag2 = this._serverRoleList[i].roleid > 0UL; + if (flag2) + { + this._serverIDToRoleList[serverid].Add(this._serverRoleList[i].roleid); + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshHandler(); + } + } + + public void SendToSelectRoleServer(ulong selectRoleID) + { + this._userSelectedRoleID = selectRoleID; + RpcC2G_SelectChargeBackRole rpcC2G_SelectChargeBackRole = new RpcC2G_SelectChargeBackRole(); + rpcC2G_SelectChargeBackRole.oArg.roleid = selectRoleID; + XSingleton.singleton.Send(rpcC2G_SelectChargeBackRole); + } + + public void OnGetSelectRoleReply() + { + this._SelectedRoleID = this._userSelectedRoleID; + this._userSelectedRoleID = 0UL; + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("BackFlowSelectRoleSuccess"), "fece00"); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshHandler(); + } + } + + public bool GetRedPointState(XSysDefine xSysDefine) + { + switch (xSysDefine) + { + case XSysDefine.Xsys_Backflow_LavishGift: + { + uint bannerTaskID = this.GetBannerTaskID(); + bool flag = bannerTaskID > 0u; + if (flag) + { + SpActivityTask activityTaskInfo = XTempActivityDocument.Doc.GetActivityTaskInfo(5u, bannerTaskID); + bool flag2 = activityTaskInfo != null; + if (flag2) + { + bool flag3 = activityTaskInfo.state == 1u; + if (flag3) + { + return true; + } + } + } + return false; + } + case XSysDefine.Xsys_Backflow_NewServerReward: + return false; + case XSysDefine.Xsys_Backflow_LevelUp: + return false; + case XSysDefine.Xsys_Backflow_Task: + for (int i = 0; i < this._backflowTaskList.Count; i++) + { + bool flag4 = this._backflowTaskList[i].state == 1u; + if (flag4) + { + return true; + } + } + return false; + case XSysDefine.Xsys_Backflow_Target: + { + SeqList sequence3List = XSingleton.singleton.GetSequence3List("BackFlowTreasure", true); + for (int j = 0; j < (int)sequence3List.Count; j++) + { + int num = sequence3List[j, 0]; + bool flag5 = !this._rewardedTargetIDList.Contains((uint)j) && (ulong)this._point >= (ulong)((long)num); + if (flag5) + { + return true; + } + } + return false; + } + case XSysDefine.Xsys_Backflow_Privilege: + return false; + } + return false; + } + + public void OnGetWorldLevelNotify(PtcG2C_WorldLevelNtf2Client roPtc) + { + this._curWorldLevel = roPtc.Data.worldLevel; + } + + public void ShowBackFlowDlg() + { + this.FirstShowBackFlowDlg = true; + } + + private bool OnActivityUpdate(XEventArgs e) + { + XActivityTaskUpdatedArgs xactivityTaskUpdatedArgs = e as XActivityTaskUpdatedArgs; + bool flag = xactivityTaskUpdatedArgs != null; + if (flag) + { + bool flag2 = xactivityTaskUpdatedArgs.xActID == 5u; + if (flag2) + { + for (int i = 0; i < this._backflowTaskList.Count; i++) + { + bool flag3 = this._backflowTaskList[i].taskid == xactivityTaskUpdatedArgs.xTaskID; + if (flag3) + { + this._backflowTaskList[i].progress = xactivityTaskUpdatedArgs.xProgress; + this._backflowTaskList[i].state = xactivityTaskUpdatedArgs.xState; + this._backflowTaskList.Sort(new Comparison(this.SortBackFlowTaskList)); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.Xsys_Backflow_Task, true); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshHandler(); + DlgBase.singleton.RefreshTabRedPoint(XSysDefine.Xsys_Backflow_Task, this.GetRedPointState(XSysDefine.Xsys_Backflow_Task)); + } + break; + } + } + } + } + return true; + } + + private int SortBackFlowTaskList(SpActivityTask x, SpActivityTask y) + { + bool flag = x.state == 1u && y.state != 1u; + int result; + if (flag) + { + result = -1; + } + else + { + bool flag2 = x.state != 1u && y.state == 1u; + if (flag2) + { + result = 1; + } + else + { + bool flag3 = x.state != y.state; + if (flag3) + { + result = (int)(x.state - y.state); + } + else + { + result = (int)(x.taskid - y.taskid); + } + } + } + return result; + } + + private void MinusBackFlowLeftTime(object param) + { + bool flag = this._backflowLeftTime > 0u; + if (flag) + { + this._backflowLeftTime -= 1u; + } + this.StopRefreshLeftTime(); + this._leftTimeToken = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(this.MinusBackFlowLeftTime), null); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshLeftTime(this._backflowLeftTime); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowDocument.cs.meta new file mode 100644 index 00000000..3426fcf2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0ccf7f415d1eaf4398f78d30a584102 +timeCreated: 1611404353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowLevelUpHandler.cs b/Client/Assets/Scripts/XMainClient/XBackFlowLevelUpHandler.cs new file mode 100644 index 00000000..265fb482 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowLevelUpHandler.cs @@ -0,0 +1,72 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBackFlowLevelUpHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/BfLevelUpHandler"; + } + } + + private IXUIButton _gotoBtn = null; + + private IXUILabel _levelUpLabel = null; + + protected override void Init() + { + base.Init(); + this._gotoBtn = (base.transform.Find("BtnGo").GetComponent("XUIButton") as IXUIButton); + this._gotoBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGotoLevelUp)); + this._levelUpLabel = (base.transform.Find("Label").GetComponent("XUILabel") as IXUILabel); + } + + private bool OnGotoLevelUp(IXUIButton button) + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + for (int i = 0; i < specificDocument.TaskRecord.Tasks.Count; i++) + { + XTaskInfo xtaskInfo = specificDocument.TaskRecord.Tasks[i]; + TaskTableNew.RowData tableData = xtaskInfo.TableData; + bool flag = tableData.TaskType == 8u; + if (flag) + { + uint id = XSingleton.singleton.ChooseProfData(tableData.BeginTaskNPCID, 0u); + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc(id); + DlgBase.singleton.SetVisible(false, true); + break; + } + } + return true; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + string @string = XStringDefineProxy.GetString("LevelUpDegreeGift"); + this._levelUpLabel.SetText(string.Format(@string, XBackFlowDocument.Doc.GetLevelUpDegree())); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowLevelUpHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowLevelUpHandler.cs.meta new file mode 100644 index 00000000..22b79ab7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowLevelUpHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bff74c97727a409459fa24bbd4328360 +timeCreated: 1611404485 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs b/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs new file mode 100644 index 00000000..e8b0437f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs @@ -0,0 +1,74 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBackFlowPrivilegeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/BfPrivilegeHandler"; + } + } + + private IXUIButton _activityTaskBtn; + + private IXUIButton _buyReward; + + private IXUIButton _teamDetail; + + protected override void Init() + { + base.Init(); + this._activityTaskBtn = (base.transform.Find("bg/ActivityTask/BtnGo").GetComponent("XUIButton") as IXUIButton); + this._activityTaskBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.GotoActivityTask)); + this._buyReward = (base.transform.Find("bg/DoubleReward/BtnGo").GetComponent("XUIButton") as IXUIButton); + this._buyReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.GotoShopping)); + this._teamDetail = (base.transform.Find("bg/TeamReward/BtnGo").GetComponent("XUIButton") as IXUIButton); + this._teamDetail.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShowDetail)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + private bool OnShowDetail(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.Xsys_Backflow_Privilege); + return true; + } + + private bool GotoShopping(IXUIButton button) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Welfare_GiftBag, 0UL); + return true; + } + + private bool GotoActivityTask(IXUIButton button) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Mall_BackFlowShop, 0UL); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs.meta new file mode 100644 index 00000000..21134662 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowPrivilegeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ef20be4b759720a478e723f1f10362fe +timeCreated: 1611404802 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowServerHandler.cs b/Client/Assets/Scripts/XMainClient/XBackFlowServerHandler.cs new file mode 100644 index 00000000..74183a1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowServerHandler.cs @@ -0,0 +1,354 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBackFlowServerHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/BfRecommendHandler"; + } + } + + private IXUISprite _chooseServer; + + private IXUISprite _chooseRole; + + private IXUISprite _serverBlock; + + private IXUISprite _roleBlock; + + private IXUIButton _btnGo; + + private Transform _serverList; + + private IXUIScrollView _serverScrollView; + + private IXUIWrapContent _serverWrapContent; + + private Transform _roleList; + + private IXUIScrollView _roleScrollView; + + private IXUIWrapContent _roleWrapContent; + + private IXUILabel _serverLabel; + + private IXUILabel _roleLabel; + + private IXUILabel _descibleLabel; + + private IXUILabel _btnLabel; + + private uint _selectedServerid = 0u; + + private List _ServerListData = new List(); + + private ulong _selectedRoleRoleID = 0UL; + + private List _roleListData = new List(); + + protected override void Init() + { + base.Init(); + this._chooseServer = (base.transform.Find("Server/Response/Select0/Bg").GetComponent("XUISprite") as IXUISprite); + this._chooseRole = (base.transform.Find("Server/Response/Select1/Bg").GetComponent("XUISprite") as IXUISprite); + this._serverList = base.transform.Find("Server/Response/ServerList"); + this._serverBlock = (this._serverList.Find("Block").GetComponent("XUISprite") as IXUISprite); + this._serverScrollView = (this._serverList.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this._serverWrapContent = (this._serverList.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._roleList = base.transform.Find("Server/Response/RoleList"); + this._roleBlock = (this._roleList.Find("Block").GetComponent("XUISprite") as IXUISprite); + this._roleScrollView = (this._roleList.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this._roleWrapContent = (this._roleList.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._btnGo = (base.transform.Find("BtnGo").GetComponent("XUIButton") as IXUIButton); + this._serverLabel = (base.transform.Find("Server/Response/Select0/ServerName").GetComponent("XUILabel") as IXUILabel); + this._roleLabel = (base.transform.Find("Server/Response/Select1/RoleName").GetComponent("XUILabel") as IXUILabel); + this._descibleLabel = (base.transform.Find("Server/Task").GetComponent("XUILabel") as IXUILabel); + this._btnLabel = (base.transform.Find("BtnGo/Text").GetComponent("XUILabel") as IXUILabel); + this._chooseRole.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowRoleList)); + this._chooseServer.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnShowServerList)); + this._serverBlock.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseServerList)); + this._roleBlock.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseRoleList)); + this._serverWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateServerItem)); + this._serverWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.OnInitServerItem)); + this._roleWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateRoleItem)); + this._roleWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.OnInitRoleItem)); + this._btnGo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnConfirmSelect)); + this.RefreshRewards(); + } + + private void UpdateDesLabel() + { + string @string = XStringDefineProxy.GetString("backMassage"); + SeqList sequence3List = XSingleton.singleton.GetSequence3List("NewZoneChargeBackTime", false); + SeqList sequence3List2 = XSingleton.singleton.GetSequence3List("NewZoneOpenTime", false); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("NewZoneChargeBackRange", false); + SeqList sequence3List3 = XSingleton.singleton.GetSequence3List("NewZoneChargeBackRewardEndTime", false); + string string2 = XStringDefineProxy.GetString("TIME_FORMAT_YYMMDD"); + string text = new DateTime(sequence3List[0, 0], sequence3List[0, 1], sequence3List[0, 2]).ToString(string2) + "--" + new DateTime(sequence3List[1, 0], sequence3List[1, 1], sequence3List[1, 2]).ToString(string2); + string text2 = new DateTime(sequence3List2[0, 0], sequence3List2[0, 1], sequence3List2[0, 2]).ToString(string2); + string text3 = sequenceList[(int)(sequenceList.Count - 1), 0].ToString(); + int @int = XSingleton.singleton.GetInt("NewZoneChargeBackRate"); + int int2 = XSingleton.singleton.GetInt("NewZoneChargeBackMax"); + string text4 = @int.ToString(); + string text5 = Mathf.Min((float)int2, (float)@int / 100f * XBackFlowDocument.Doc.TotalPay).ToString(); + string text6 = new DateTime(sequence3List3[0, 0], sequence3List3[0, 1], sequence3List3[0, 2]).ToString(string2); + this._descibleLabel.SetText(string.Format(@string, new object[] + { + text, + text2, + text3, + text4, + text5, + text6, + text3 + })); + } + + private bool OnConfirmSelect(IXUIButton button) + { + bool flag = this._selectedRoleRoleID > 0UL; + if (flag) + { + string message = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BackFlowBindConfirmTip")); + XSingleton.singleton.ShowModalDialog(message, new ButtonClickEventHandler(this.ToConfirmBind)); + } + return true; + } + + private bool ToConfirmBind(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + XBackFlowDocument.Doc.SendToSelectRoleServer(this._selectedRoleRoleID); + return true; + } + + private void OnCloseServerList(IXUISprite uiSprite) + { + this._serverList.gameObject.SetActive(false); + } + + private void OnCloseRoleList(IXUISprite uiSprite) + { + this._roleList.gameObject.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._selectedRoleRoleID = 0UL; + this._selectedServerid = 0u; + this._ServerListData.Clear(); + this._roleListData.Clear(); + this._serverList.gameObject.SetActive(false); + this._roleList.gameObject.SetActive(false); + this._btnGo.SetEnable(false, false); + XBackFlowDocument.Doc.SendToGetNewZoneBenefit(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshUI(); + } + + private void RefreshUI() + { + this.UpdateDesLabel(); + this._btnGo.SetEnable(XBackFlowDocument.Doc.SelectedRoleID == 0UL && !XBackFlowDocument.Doc.CanSelectRole && XBackFlowDocument.Doc.IsPayReturnOpen, false); + bool flag = XBackFlowDocument.Doc.SelectedRoleID > 0UL; + if (flag) + { + this._btnLabel.SetText(XStringDefineProxy.GetString("BackFlowPayBackRoleSelected")); + } + else + { + bool flag2 = !XBackFlowDocument.Doc.IsPayReturnOpen; + if (flag2) + { + this._btnLabel.SetText(XStringDefineProxy.GetString("BackFlowPayBackOverdue")); + } + else + { + this._btnLabel.SetText(XStringDefineProxy.GetString("BackFlowPayBackToBind")); + } + } + bool flag3 = XBackFlowDocument.Doc.SelectedRoleID > 0UL; + if (flag3) + { + List serverRoleList = XBackFlowDocument.Doc.ServerRoleList; + for (int i = 0; i < serverRoleList.Count; i++) + { + bool flag4 = serverRoleList[i].roleid == XBackFlowDocument.Doc.SelectedRoleID; + if (flag4) + { + this._serverLabel.SetText(serverRoleList[i].servername); + this._roleLabel.SetText(serverRoleList[i].rolename); + break; + } + } + } + else + { + this._ServerListData = XBackFlowDocument.Doc.GetServerList(); + this._serverLabel.SetText(XStringDefineProxy.GetString("BackFlowToSelServer")); + this._roleLabel.SetText(XStringDefineProxy.GetString("BackFlowToSelRole")); + } + } + + private void OnInitRoleItem(Transform itemTransform, int index) + { + IXUISprite ixuisprite = itemTransform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectRoleItem)); + } + + private void OnSelectRoleItem(IXUISprite uiSprite) + { + this._selectedRoleRoleID = uiSprite.ID; + this._roleList.gameObject.SetActive(false); + bool flag = this._selectedRoleRoleID > 0UL; + if (flag) + { + List serverRoleList = XBackFlowDocument.Doc.ServerRoleList; + for (int i = 0; i < serverRoleList.Count; i++) + { + bool flag2 = this._selectedRoleRoleID == serverRoleList[i].roleid; + if (flag2) + { + this._roleLabel.SetText(serverRoleList[i].rolename); + break; + } + } + } + } + + private void OnInitServerItem(Transform itemTransform, int index) + { + IXUISprite ixuisprite = itemTransform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSelectServerItem)); + } + + private void OnSelectServerItem(IXUISprite uiSprite) + { + this._serverList.gameObject.SetActive(false); + bool flag = (uint)uiSprite.ID != this._selectedServerid; + if (flag) + { + this._selectedServerid = (uint)uiSprite.ID; + List serverRoleList = XBackFlowDocument.Doc.ServerRoleList; + for (int i = 0; i < serverRoleList.Count; i++) + { + bool flag2 = this._selectedServerid == serverRoleList[i].serverid; + if (flag2) + { + this._serverLabel.SetText(serverRoleList[i].servername); + break; + } + } + this._selectedRoleRoleID = 0UL; + this._roleLabel.SetText(XStringDefineProxy.GetString("BackFlowToSelRole")); + } + } + + private void OnUpdateRoleItem(Transform itemTransform, int index) + { + bool flag = index < this._roleListData.Count; + if (flag) + { + IXUISprite ixuisprite = itemTransform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = this._roleListData[index]; + IXUILabel ixuilabel = itemTransform.Find("T").GetComponent("XUILabel") as IXUILabel; + List serverRoleList = XBackFlowDocument.Doc.ServerRoleList; + for (int i = 0; i < serverRoleList.Count; i++) + { + bool flag2 = this._roleListData[index] == serverRoleList[i].roleid; + if (flag2) + { + ixuilabel.SetText(serverRoleList[i].rolename); + break; + } + } + } + } + + private void OnUpdateServerItem(Transform itemTransform, int index) + { + bool flag = index < this._ServerListData.Count; + if (flag) + { + IXUISprite ixuisprite = itemTransform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this._ServerListData[index]; + IXUILabel ixuilabel = itemTransform.Find("T").GetComponent("XUILabel") as IXUILabel; + List serverRoleList = XBackFlowDocument.Doc.ServerRoleList; + for (int i = 0; i < serverRoleList.Count; i++) + { + bool flag2 = this._ServerListData[index] == serverRoleList[i].serverid; + if (flag2) + { + ixuilabel.SetText(serverRoleList[i].servername); + break; + } + } + } + } + + private void OnShowServerList(IXUISprite uiSprite) + { + bool flag = XBackFlowDocument.Doc.SelectedRoleID == 0UL; + if (flag) + { + this._serverList.gameObject.SetActive(true); + this._serverWrapContent.SetContentCount(this._ServerListData.Count, false); + this._serverScrollView.ResetPosition(); + } + } + + private void OnShowRoleList(IXUISprite uiSprite) + { + bool flag = XBackFlowDocument.Doc.SelectedRoleID == 0UL; + if (flag) + { + bool flag2 = this._ServerListData.Contains(this._selectedServerid); + if (flag2) + { + this._roleListData = XBackFlowDocument.Doc.GetRoleListByServerid(this._selectedServerid); + this._roleList.gameObject.SetActive(true); + this._roleWrapContent.SetContentCount(this._roleListData.Count, false); + this._roleScrollView.ResetPosition(); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PleaseSelectServerFirst"), "fece00"); + } + } + } + + private void RefreshRewards() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowServerHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowServerHandler.cs.meta new file mode 100644 index 00000000..b752bbbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowServerHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b02a11cc571045144a54240183620d67 +timeCreated: 1611404349 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowTargetHandler.cs b/Client/Assets/Scripts/XMainClient/XBackFlowTargetHandler.cs new file mode 100644 index 00000000..9455af6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowTargetHandler.cs @@ -0,0 +1,217 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBackFlowTargetHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/BfTargetHandler"; + } + } + + private IUIDummy _playerDummy; + + private Transform _itemsRoot; + + private SeqList _itemDataList; + + private IXUIProgress _progress; + + private IXUISprite _proSpite; + + protected XUIPool _itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private OutLook _outLook = new OutLook(); + + private List _fashionList = new List(); + + private XDummy _dummy; + + private IXUIButton _nestBtn; + + private IXUIButton _dragonBtn; + + private IXUILabel _pointLabel; + + private IXUILabel _dragonDescLabel; + + private IXUILabel _dragonPointLabel; + + private IXUILabel _nestDescLabel; + + private IXUILabel _nestPointLabel; + + private IXUILabel _nestLeftTimes; + + private IXUILabel _dragonLeftTimes; + + protected override void Init() + { + base.Init(); + this._pointLabel = (base.transform.Find("Progress/PointValue").GetComponent("XUILabel") as IXUILabel); + this._playerDummy = (base.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + Transform transform = base.transform.Find("Progress/Items/ItemTpl"); + this._itemsRoot = base.transform.Find("Progress/Items"); + this._itemPool.SetupPool(this._itemsRoot.gameObject, transform.gameObject, 5u, false); + this._itemDataList = XSingleton.singleton.GetSequence3List("BackFlowTreasure", false); + this._progress = (base.transform.Find("Progress").GetComponent("XUIProgress") as IXUIProgress); + this._proSpite = (base.transform.Find("Progress").GetComponent("XUISprite") as IXUISprite); + List backflowDataByTypeAndWorldLevel = XBackFlowDocument.Doc.GetBackflowDataByTypeAndWorldLevel(1u); + backflowDataByTypeAndWorldLevel.Sort(); + this._dragonDescLabel = (base.transform.Find("LB/Label").GetComponent("XUILabel") as IXUILabel); + this._dragonPointLabel = (base.transform.Find("LB/Labeltex").GetComponent("XUILabel") as IXUILabel); + this._dragonDescLabel.SetText(XStringDefineProxy.GetString("BackFlowDragonDes")); + uint num = (backflowDataByTypeAndWorldLevel.Count > 1) ? backflowDataByTypeAndWorldLevel[1] : 20u; + this._dragonPointLabel.SetText(string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BackFlowDragonPoint")), num)); + this._nestDescLabel = (base.transform.Find("CX/Label").GetComponent("XUILabel") as IXUILabel); + this._nestPointLabel = (base.transform.Find("CX/Labeltex").GetComponent("XUILabel") as IXUILabel); + this._nestDescLabel.SetText(XStringDefineProxy.GetString("BackFlowNestDes")); + uint num2 = (backflowDataByTypeAndWorldLevel.Count > 0) ? backflowDataByTypeAndWorldLevel[0] : 10u; + this._nestPointLabel.SetText(string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("BackFlowNestPoint")), num2)); + this._nestLeftTimes = (base.transform.Find("CX/Limit").GetComponent("XUILabel") as IXUILabel); + this._dragonLeftTimes = (base.transform.Find("LB/Limit").GetComponent("XUILabel") as IXUILabel); + this._fashionList.Clear(); + for (int i = 0; i < (int)this._itemDataList.Count; i++) + { + this._fashionList.Add((uint)this._itemDataList[i, 1]); + } + this._nestBtn = (base.transform.Find("CX/BtnGo").GetComponent("XUIButton") as IXUIButton); + this._dragonBtn = (base.transform.Find("LB/BtnGo").GetComponent("XUIButton") as IXUIButton); + this._nestBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGotoNest)); + this._dragonBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGotoDragon)); + } + + private bool OnGotoNest(IXUIButton button) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Activity_Nest, 0UL); + return true; + } + + private bool OnGotoDragon(IXUIButton button) + { + DlgBase.singleton.ShowDragonNestByTypeAndDiff(1u, 0u); + return true; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("BackFlowTarget", 1); + this.InitOutlook(); + XBackFlowDocument.Doc.SendBackFlowActivityOperation(BackFlowActOp.BackFlowAct_TreasureData, 0u); + } + + protected override void OnHide() + { + this.DiscardOutlook(); + base.OnHide(); + } + + private void DiscardOutlook() + { + this._outLook = null; + bool flag = this.m_dummPool != -1; + if (flag) + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this._dummy); + } + base.Return3DAvatarPool(); + } + + public override void OnUnload() + { + this.DiscardOutlook(); + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshUI(); + } + + private void RefreshUI() + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + uint unitType = (uint)XFastEnumIntEqualityComparer.ToInt(xplayerData.Profession); + this._dummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, xplayerData.RoleID, unitType, this._outLook, this._playerDummy, this._dummy); + this._itemPool.ReturnAll(false); + float num = (float)(this._proSpite.spriteWidth / (int)this._itemDataList.Count); + int num2 = 0; + for (int i = 0; i < (int)this._itemDataList.Count; i++) + { + GameObject gameObject = this._itemPool.FetchGameObject(false); + gameObject.transform.localPosition = this._itemPool.TplPos + Vector3.right * (float)(i + 1) * num; + int num3 = this._itemDataList[i, 0]; + int itemid = this._itemDataList[i, 1]; + int itemCount = this._itemDataList[i, 2]; + IXUILabel ixuilabel = gameObject.transform.Find("Exp").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(num3.ToString()); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemIconClicked)); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, itemid, itemCount, false); + Transform transform = gameObject.transform.Find("ylq"); + Transform transform2 = gameObject.transform.Find("klq"); + int targetPoint = (int)XBackFlowDocument.Doc.TargetPoint; + bool flag = targetPoint >= num3; + if (flag) + { + num2 = i + 1; + } + transform2.gameObject.SetActive(!XBackFlowDocument.Doc.RewardedTargetIDList.Contains((uint)i) && targetPoint >= num3); + transform.gameObject.SetActive(XBackFlowDocument.Doc.RewardedTargetIDList.Contains((uint)i)); + } + this._progress.value = (float)num2 / (float)this._itemDataList.Count; + this._pointLabel.SetText(XBackFlowDocument.Doc.TargetPoint.ToString()); + this._dragonLeftTimes.SetText(XBackFlowDocument.Doc.DragonLeftTimes + "/" + XSingleton.singleton.GetInt("BackFlowDragonFinishCountLimit")); + this._nestLeftTimes.SetText(XBackFlowDocument.Doc.NestLeftTimes + "/" + XSingleton.singleton.GetInt("BackFlowNestFinishCountLimit")); + } + + private void InitOutlook() + { + this._outLook = new OutLook(); + this._outLook.display_fashion = new OutLookDisplayFashion(); + this._outLook.display_fashion.display_fashions.AddRange(this._fashionList); + this._outLook.display_fashion.hair_color_id = 0u; + this._outLook.display_fashion.special_effects_id = 0u; + } + + private void OnItemIconClicked(IXUISprite iSp) + { + int num = (int)iSp.ID; + bool flag = num < (int)this._itemDataList.Count; + if (flag) + { + int num2 = this._itemDataList[num, 0]; + int targetPoint = (int)XBackFlowDocument.Doc.TargetPoint; + bool flag2 = !XBackFlowDocument.Doc.RewardedTargetIDList.Contains((uint)num) && targetPoint >= num2; + if (flag2) + { + XBackFlowDocument.Doc.SendBackFlowActivityOperation(BackFlowActOp.BackFlowAct_GetTreasure, (uint)num); + } + else + { + int itemID = this._itemDataList[num, 1]; + XItem mainItem = XBagDocument.MakeXItem(itemID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, iSp, false, 0u); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowTargetHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowTargetHandler.cs.meta new file mode 100644 index 00000000..34d571db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowTargetHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 15ce243f18c28214cb74082485d0b65b +timeCreated: 1611403265 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowTasksHandler.cs b/Client/Assets/Scripts/XMainClient/XBackFlowTasksHandler.cs new file mode 100644 index 00000000..31fb3b9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowTasksHandler.cs @@ -0,0 +1,198 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBackFlowTasksHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/BfTaskHandler"; + } + } + + private IXUIWrapContent _wrapcontent; + + private IXUIScrollView _scrollView; + + protected override void Init() + { + base.Init(); + this._scrollView = (base.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this._wrapcontent = (base.transform.Find("ScrollView/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._wrapcontent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.OnInitWrapcontent)); + this._wrapcontent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateWrapContent)); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshUI(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshUI(); + } + + private void RefreshUI() + { + List backflowTaskList = XBackFlowDocument.Doc.GetBackflowTaskList(); + this._wrapcontent.SetContentCount(backflowTaskList.Count, false); + this._scrollView.ResetPosition(); + } + + private void OnUpdateWrapContent(Transform itemTransform, int index) + { + List backflowTaskList = XBackFlowDocument.Doc.GetBackflowTaskList(); + bool flag = index < backflowTaskList.Count; + if (flag) + { + SuperActivityTask.RowData dataByActivityByTypeID = XTempActivityDocument.Doc.GetDataByActivityByTypeID(5u, backflowTaskList[index].taskid); + bool flag2 = dataByActivityByTypeID != null; + if (flag2) + { + string[] array = dataByActivityByTypeID.title.Split(new char[] + { + '=' + }); + IXUILabel ixuilabel = itemTransform.Find("Task").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = itemTransform.Find("Task/TaskDec").GetComponent("XUILabel") as IXUILabel; + bool flag3 = array.Length != 0; + if (flag3) + { + ixuilabel.SetText(array[0]); + } + else + { + ixuilabel.SetText(""); + } + bool flag4 = array.Length > 1; + if (flag4) + { + ixuilabel2.SetText(array[1]); + } + else + { + ixuilabel2.SetText(""); + } + IXUILabel ixuilabel3 = itemTransform.Find("Progress").GetComponent("XUILabel") as IXUILabel; + int num = (int)((backflowTaskList[index].state == 0u) ? backflowTaskList[index].progress : ((uint)dataByActivityByTypeID.cnt)); + ixuilabel3.SetText(num + "/" + dataByActivityByTypeID.cnt); + Transform transform = itemTransform.Find("AwardList"); + int i = 0; + bool flag5 = dataByActivityByTypeID.items.count > 0; + if (flag5) + { + int num2 = Mathf.Min((int)dataByActivityByTypeID.items.count, transform.childCount); + while (i < num2) + { + Transform child = transform.GetChild(i); + child.gameObject.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(child.gameObject, (int)dataByActivityByTypeID.items[i, 0], (int)dataByActivityByTypeID.items[i, 1], true); + IXUISprite ixuisprite = child.gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)dataByActivityByTypeID.items[i, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + i++; + } + } + while (i < transform.childCount) + { + transform.GetChild(i++).gameObject.SetActive(false); + } + IXUIButton ixuibutton = itemTransform.Find("Response/GetReward").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)index); + IXUIButton ixuibutton2 = itemTransform.Find("Response/GetButton").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = (ulong)((long)index); + Transform transform2 = itemTransform.Find("Response/HadGet"); + ixuibutton.gameObject.SetActive(backflowTaskList[index].state == 1u); + ixuibutton2.gameObject.SetActive(backflowTaskList[index].state == 0u); + transform2.gameObject.SetActive(backflowTaskList[index].state == 2u); + } + } + } + + private bool OnGetTaskReward(IXUIButton button) + { + int num = (int)button.ID; + List backflowTaskList = XBackFlowDocument.Doc.GetBackflowTaskList(); + bool flag = num < backflowTaskList.Count; + if (flag) + { + SpActivityTask spActivityTask = backflowTaskList[num]; + bool flag2 = spActivityTask.state == 0u; + if (flag2) + { + SuperActivityTask.RowData[] table = XTempActivityDocument.SuperActivityTaskTable.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag3 = table[i].taskid == spActivityTask.taskid; + if (flag3) + { + SuperActivityTask.RowData rowData = table[i]; + bool flag4 = rowData.arg != null && rowData.arg.Length != 0; + if (flag4) + { + bool flag5 = rowData.arg[0] == 1; + if (flag5) + { + DlgBase.singleton.SelectChapter(rowData.arg[1], (uint)rowData.arg[2]); + } + else + { + bool flag6 = rowData.arg[0] == 2; + if (flag6) + { + DlgBase.singleton.ShowView(rowData.arg[1]); + } + } + } + else + { + XSingleton.singleton.OpenSystem((int)rowData.jump); + } + break; + } + } + } + else + { + XTempActivityDocument.Doc.GetActivityAwards(5u, spActivityTask.taskid); + } + } + return true; + } + + private void OnInitWrapcontent(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("Response/GetButton").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetTaskReward)); + IXUIButton ixuibutton2 = itemTransform.Find("Response/GetReward").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetTaskReward)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowTasksHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowTasksHandler.cs.meta new file mode 100644 index 00000000..b95b82de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowTasksHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f7411f930b25d24ba2ecca7247cf8e6 +timeCreated: 1611403611 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowType.cs b/Client/Assets/Scripts/XMainClient/XBackFlowType.cs new file mode 100644 index 00000000..d4bb91eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + public enum XBackFlowType + { + Piont = 1, + Task, + Banner + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowType.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowType.cs.meta new file mode 100644 index 00000000..7bb6f96d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1be265c7faeea041a7471c6a1eef38d +timeCreated: 1611404840 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowWelfareHandler.cs b/Client/Assets/Scripts/XMainClient/XBackFlowWelfareHandler.cs new file mode 100644 index 00000000..ed2db3f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowWelfareHandler.cs @@ -0,0 +1,190 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBackFlowWelfareHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Hall/BfBannerHandler"; + } + } + + private IXUITexture _bgTexture; + + protected XUIPool _dayPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private uint _totalDays; + + private uint _taskID; + + private IXUIProgress _dayProgress; + + private IXUISprite _dayProgressSprite; + + private GameObject _ChestObj; + + private GameObject _gettedObj; + + private Color _labelColor; + + private XFx _effect; + + protected override void Init() + { + base.Init(); + this._bgTexture = (base.transform.Find("banner").GetComponent("XUITexture") as IXUITexture); + this._bgTexture.SetTexturePath("atlas/UI/GameSystem/Activity/Tex_HuiliuBanner_h2Split"); + Transform transform = base.transform.Find("Day/Daytpl"); + this._dayPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this._dayProgress = (base.transform.Find("Progress").GetComponent("XUIProgress") as IXUIProgress); + this._dayProgressSprite = (base.transform.Find("Progress").GetComponent("XUISprite") as IXUISprite); + this._ChestObj = base.transform.Find("Chest").gameObject; + IXUISprite ixuisprite = this._ChestObj.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGetDog)); + this._gettedObj = base.transform.Find("Getted").gameObject; + this._labelColor = (base.transform.Find("Day/Daytpl/num").GetComponent("XUILabel") as IXUILabel).GetColor(); + this._effect = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_BfBannerHandler_fx", this._ChestObj.transform, false); + this._effect.SetActive(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshUI(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + bool flag = this._effect != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._effect, true); + } + this._effect = null; + base.OnUnload(); + } + + public override void RefreshData() + { + base.RefreshData(); + this.RefreshUI(); + } + + public void PlayDogEffect() + { + bool flag = this._effect != null; + if (flag) + { + this._effect.SetActive(true); + this._effect.Play(); + } + } + + private void RefreshUI() + { + bool flag = this._effect != null; + if (flag) + { + this._effect.SetActive(false); + } + this._dayPool.ReturnAll(false); + this._taskID = XBackFlowDocument.Doc.GetBannerTaskID(); + this._totalDays = 5u; + uint num = 0u; + this._gettedObj.SetActive(false); + this._ChestObj.SetActive(false); + bool flag2 = this._taskID > 0u; + if (flag2) + { + SuperActivityTask.RowData dataByActivityByTypeID = XTempActivityDocument.Doc.GetDataByActivityByTypeID(5u, this._taskID); + bool flag3 = dataByActivityByTypeID != null; + if (flag3) + { + this._totalDays = dataByActivityByTypeID.num[0]; + } + SpActivityTask activityTaskInfo = XTempActivityDocument.Doc.GetActivityTaskInfo(5u, this._taskID); + bool flag4 = activityTaskInfo != null; + if (flag4) + { + num = activityTaskInfo.progress; + this._gettedObj.SetActive(activityTaskInfo.state == 2u); + IXUISprite ixuisprite = this._ChestObj.GetComponent("XUISprite") as IXUISprite; + Transform transform = this._ChestObj.transform.Find("RedPoint"); + this._ChestObj.SetActive(activityTaskInfo.state != 2u); + ixuisprite.SetEnabled(activityTaskInfo.state == 1u); + transform.gameObject.SetActive(activityTaskInfo.state == 1u); + bool flag5 = activityTaskInfo.state == 1u; + if (flag5) + { + this.PlayDogEffect(); + } + else + { + bool flag6 = this._effect != null; + if (flag6) + { + this._effect.SetActive(false); + } + } + } + } + float num2 = (float)this._dayProgressSprite.spriteWidth / this._totalDays; + int num3 = 0; + while ((long)num3 < (long)((ulong)this._totalDays)) + { + GameObject gameObject = this._dayPool.FetchGameObject(false); + gameObject.transform.localPosition = this._dayPool.TplPos + Vector3.right * (float)(num3 + 1) * num2; + IXUISprite ixuisprite2 = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetEnabled((ulong)num >= (ulong)((long)(num3 + 1))); + IXUILabel ixuilabel = gameObject.transform.Find("num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText((num3 + 1).ToString()); + IXUILabel ixuilabel2 = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + bool flag7 = (ulong)num > (ulong)((long)num3); + if (flag7) + { + ixuilabel2.SetColor(this._labelColor); + ixuilabel2.Alpha = 1f; + ixuilabel.SetColor(this._labelColor); + ixuilabel.Alpha = 1f; + ixuisprite2.SetColor(Color.white); + } + else + { + ixuilabel2.SetColor(Color.gray); + ixuilabel2.Alpha = 0.5f; + ixuilabel.SetColor(Color.gray); + ixuilabel.Alpha = 0.5f; + ixuisprite2.SetColor(Color.black); + } + num3++; + } + this._dayProgress.value = num / this._totalDays; + } + + private void OnGetDog(IXUISprite uiSprite) + { + bool flag = this._taskID > 0u; + if (flag) + { + XTempActivityDocument.Doc.GetActivityAwards(5u, this._taskID); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBackFlowWelfareHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XBackFlowWelfareHandler.cs.meta new file mode 100644 index 00000000..431522b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBackFlowWelfareHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6ab90b1b0327d147be84df6e7ea9766 +timeCreated: 1611404884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBag.cs b/Client/Assets/Scripts/XMainClient/XBag.cs new file mode 100644 index 00000000..f5e1e702 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBag.cs @@ -0,0 +1,189 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XBag + { + public XItem this[int key] + { + get + { + return this.Items[key]; + } + set + { + this.Items[key] = value; + } + } + + public int Count + { + get + { + return this.Items.Count; + } + } + + private List Items = new List(); + + private List _TempIndexList = new List(); + + private List _tempItemList = new List(); + + public void Clear() + { + this.Items.Clear(); + } + + public void AddItem(XItem item, bool bSort) + { + this.Items.Add(item); + if (bSort) + { + this.SortItem(); + } + } + + public void RemoveItem(ulong uid) + { + int index; + bool flag = this.FindItem(uid, out index); + if (flag) + { + this.Items.RemoveAt(index); + } + } + + public void RemoveIndex(int index) + { + this.Items.RemoveAt(index); + } + + public bool FindItem(ulong uid, out int index) + { + for (int i = 0; i < this.Items.Count; i++) + { + bool flag = this.Items[i].uid == uid; + if (flag) + { + index = i; + return true; + } + } + index = -1; + return false; + } + + public bool FindItemByID(int id, out List index) + { + this._TempIndexList.Clear(); + index = this._TempIndexList; + for (int i = 0; i < this.Items.Count; i++) + { + bool flag = this.Items[i].itemID == id; + if (flag) + { + index.Add(i); + } + } + bool flag2 = index.Count == 0; + return !flag2; + } + + public bool FindItemByID(int id, out List lst) + { + this._tempItemList.Clear(); + lst = this._tempItemList; + for (int i = 0; i < this.Items.Count; i++) + { + bool flag = this.Items[i].itemID == id; + if (flag) + { + lst.Add(this.Items[i]); + } + } + bool flag2 = lst.Count == 0; + return !flag2; + } + + public int GetItemCount(int id) + { + int num = 0; + for (int i = 0; i < this.Items.Count; i++) + { + bool flag = this.Items[i].itemID == id; + if (flag) + { + num += this.Items[i].itemCount; + } + } + return num; + } + + public int GetItemCountByUid(ulong uid) + { + int result = 0; + for (int i = 0; i < this.Items.Count; i++) + { + bool flag = this.Items[i].uid == uid; + if (flag) + { + result = this.Items[i].itemCount; + break; + } + } + return result; + } + + public int GetItemCount(int id, bool isBind) + { + int num = 0; + for (int i = 0; i < this.Items.Count; i++) + { + bool flag = this.Items[i].itemID == id && this.Items[i].bBinding == isBind; + if (flag) + { + num += this.Items[i].itemCount; + } + } + return num; + } + + public void SortItem() + { + this.Items.Sort(new Comparison(XBag.ItemSortCompare)); + } + + private static int ItemSortCompare(XItem item1, XItem item2) + { + bool flag = item1.itemConf == null; + int result; + if (flag) + { + result = 1; + } + else + { + bool flag2 = item2.itemConf == null; + if (flag2) + { + result = -1; + } + else + { + bool flag3 = item1.itemConf.SortID == item2.itemConf.SortID; + if (flag3) + { + result = -item1.uid.CompareTo(item2.uid); + } + else + { + result = -item1.itemConf.SortID.CompareTo(item2.itemConf.SortID); + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBag.cs.meta b/Client/Assets/Scripts/XMainClient/XBag.cs.meta new file mode 100644 index 00000000..047206c4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 789c4e0fb0d37e94c9aaba001cecd36c +timeCreated: 1611403981 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBagDocument.cs b/Client/Assets/Scripts/XMainClient/XBagDocument.cs new file mode 100644 index 00000000..6c4fca29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBagDocument.cs @@ -0,0 +1,2047 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBagDocument : XDocComponent + { + public override uint ID + { + get + { + return XBagDocument.uuID; + } + } + + public static DropList DropTable + { + get + { + return XBagDocument.m_DropTable; + } + } + + public static XBagDocument BagDoc + { + get + { + return XSingleton.singleton.Doc.XBagDoc; + } + } + + public static PandoraHeart PandoraHeartTable + { + get + { + return XBagDocument.m_PandoraHeartTable; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XBagDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ItemList m_ItemTable = new ItemList(); + + private static DropList m_DropTable = new DropList(); + + private static ChestList m_ChestTable = new ChestList(); + + private static EquipList m_EquipTable = new EquipList(); + + private static EmblemBasic m_EmblemTable = new EmblemBasic(); + + private static FashionList m_FashionTable = new FashionList(); + + private static PandoraHeart m_PandoraHeartTable = new PandoraHeart(); + + private static BagExpandItemListTable m_BagExpandItemListTable = new BagExpandItemListTable(); + + private static Dictionary> m_ChestRange = new Dictionary>(); + + private static Dictionary> m_AuctionRange = new Dictionary>(); + + public XBag ItemBag; + + public static readonly int EquipMax = XBagDocument.BodyPosition(EquipPosition.EQUIP_END); + + public static readonly int FashionMax = XBagDocument.BodyPosition(FashionPosition.FASHION_END); + + public static readonly int EmblemMax = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_END); + + public static readonly int VirtualItemMax = XBagDocument.BodyPosition(ItemEnum.VIRTUAL_ITEM_MAX); + + public static readonly int ArtifactMax = XBagDocument.BodyPosition(ArtifactPosition.ARTIFACT_END); + + private static readonly uint ITEM_PROFESSION_MASK = 100000u; + + public static readonly int QualityCount = 6; + + public XBodyBag EquipBag = new XBodyBag(XBagDocument.EquipMax); + + public XBodyBag EmblemBag = new XBodyBag(XBagDocument.EmblemMax); + + public XBodyBag ArtifactBag = new XBodyBag(XBagDocument.ArtifactMax); + + public ulong[] VirtualItems = new ulong[XBagDocument.VirtualItemMax]; + + public ulong TearsCount = 0UL; + + public List BagExpandDataList = new List + { + new BagExpandData(BagType.ItemBag), + new BagExpandData(BagType.EmblemBag), + new BagExpandData(BagType.EquipBag), + new BagExpandData(BagType.ArtifactBag) + }; + + public static CVSReader.RowDataCompare comp = new CVSReader.RowDataCompare(XBagDocument.DropDataCompare); + + private BagExpandItemListTable.RowData m_usedBagExpandRow = null; + + private Dictionary basicAttrPool = new Dictionary(); + + private Dictionary equipAdditionalAttrPool = new Dictionary(); + + private bool getallEquip = false; + + private int fashionIndex = 0; + + private float fashionTime = 0f; + + public void GetItemsByType(ulong typeFilter, ref List list) + { + for (int i = 0; i < this.ItemBag.Count; i++) + { + ulong num = 1UL << (int)this.ItemBag[i].type; + bool flag = (num & typeFilter) > 0UL; + if (flag) + { + list.Add(this.ItemBag[i]); + } + } + } + + public List GetNotBindItemsByType(int typeFilter) + { + List list = new List(); + for (int i = 0; i < this.ItemBag.Count; i++) + { + bool bBinding = this.ItemBag[i].bBinding; + if (!bBinding) + { + int num = 1 << (int)this.ItemBag[i].type; + bool flag = (num & typeFilter) > 0; + if (flag) + { + list.Add(this.ItemBag[i]); + } + } + } + return list; + } + + public List GetItemsByTypeAndQuality(ulong typeFilter, ItemQuality quality) + { + List list = new List(); + for (int i = 0; i < this.ItemBag.Count; i++) + { + ulong num = 1UL << (int)this.ItemBag[i].type; + bool flag = (num & typeFilter) > 0UL && (ItemQuality)this.ItemBag[i].itemConf.ItemQuality == quality; + if (flag) + { + list.Add(this.ItemBag[i]); + } + } + return list; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XBagDocument.AsyncLoader.AddTask("Table/ItemList", XBagDocument.m_ItemTable, false); + XBagDocument.AsyncLoader.AddTask("Table/ChestList", XBagDocument.m_ChestTable, false); + XBagDocument.AsyncLoader.AddTask("Table/EquipList", XBagDocument.m_EquipTable, false); + XBagDocument.AsyncLoader.AddTask("Table/FashionList", XBagDocument.m_FashionTable, false); + XBagDocument.AsyncLoader.AddTask("Table/EmblemBasic", XBagDocument.m_EmblemTable, false); + XBagDocument.AsyncLoader.AddTask("Table/DropList", XBagDocument.m_DropTable, false); + XBagDocument.AsyncLoader.AddTask("Table/PandoraHeart", XBagDocument.m_PandoraHeartTable, false); + XBagDocument.AsyncLoader.AddTask("Table/BagExpandItemList", XBagDocument.m_BagExpandItemListTable, false); + XBagDocument.AsyncLoader.Execute(callback); + XBagDocument.m_ChestRange.Clear(); + XBagDocument.m_AuctionRange.Clear(); + } + + public static void OnTableLoaded() + { + XBagDocument.BuildChestTable(); + XBagDocument.BuildAuctionRange(); + } + + public static void BuildAuctionRange() + { + ItemList.RowData[] table = XBagDocument.m_ItemTable.Table; + int i = 0; + int num = table.Length; + while (i < num) + { + ItemList.RowData rowData = table[i]; + bool flag = !rowData.CanTrade || rowData.AuctionType == null; + if (!flag) + { + int j = 0; + int num2 = rowData.AuctionType.Length; + while (j < num2) + { + List list; + bool flag2 = !XBagDocument.m_AuctionRange.TryGetValue((uint)rowData.AuctionType[j], out list); + if (flag2) + { + list = new List(); + XBagDocument.m_AuctionRange.Add((uint)rowData.AuctionType[j], list); + } + list.Add(rowData); + j++; + } + } + i++; + } + } + + public static void BuildChestTable() + { + int i = 0; + int num = XBagDocument.m_ChestTable.Table.Length; + while (i < num) + { + List list; + bool flag = !XBagDocument.m_ChestRange.TryGetValue(XBagDocument.m_ChestTable.Table[i].ItemID, out list); + if (flag) + { + list = new List(); + XBagDocument.m_ChestRange.Add(XBagDocument.m_ChestTable.Table[i].ItemID, list); + } + list.Add(XBagDocument.m_ChestTable.Table[i]); + i++; + } + } + + public static bool TryGetAuctionList(uint auctionID, out List list) + { + return XBagDocument.m_AuctionRange.TryGetValue(auctionID, out list); + } + + public static uint GetItemProf(int itemid) + { + ItemList.RowData byItemID = XBagDocument.m_ItemTable.GetByItemID(itemid); + bool flag = byItemID == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = (uint)byItemID.Profession; + } + return result; + } + + public static int ConvertTemplate(ItemList.RowData rowData) + { + bool flag = rowData == null; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = rowData.ItemType == 12; + if (flag2) + { + result = rowData.ItemID + (int)(XItemDrawerParam.DefaultProfession * XBagDocument.ITEM_PROFESSION_MASK); + } + else + { + result = rowData.ItemID; + } + } + return result; + } + + public static int ConvertTemplate(int itemid) + { + ItemList.RowData byItemID = XBagDocument.m_ItemTable.GetByItemID(itemid); + bool flag = byItemID == null; + int result; + if (flag) + { + result = itemid; + } + else + { + result = XBagDocument.ConvertTemplate(byItemID); + } + return result; + } + + public static bool IsProfMatched(uint prof) + { + return prof == 0u || prof % 10u == XItemDrawerParam.DefaultProfession; + } + + public static bool IsProfMatchedFeable(uint prof, uint profecssion, bool feable = false) + { + return prof == 0u || (feable ? (prof % 10u == profecssion % 10u) : (prof == profecssion)); + } + + public static bool IsProfMatchedWithFeable(uint prof) + { + return prof == 0u || prof == XItemDrawerParam.DefaultProfession; + } + + public static bool IsProfEqual(uint prof) + { + return prof % 10u == XItemDrawerParam.DefaultProfession; + } + + public static string GetItemSmallIcon(int itemid, uint profession = 0u) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + bool flag = itemConf == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + result = XSingleton.singleton.ChooseProfString(itemConf.ItemIcon1, profession); + } + return result; + } + + public static void GetItemBigIconAndAtlas(int itemid, out string icon, out string atlas, uint profession = 0u) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + bool flag = itemConf == null; + if (flag) + { + icon = string.Empty; + atlas = string.Empty; + } + else + { + icon = XSingleton.singleton.ChooseProfString(itemConf.ItemIcon, profession); + atlas = XSingleton.singleton.ChooseProfString(itemConf.ItemAtlas, profession); + } + } + + public static void GetItemSmallIconAndAtlas(int itemid, out string icon, out string atlas, uint profession = 0u) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + bool flag = itemConf == null; + if (flag) + { + icon = string.Empty; + atlas = string.Empty; + } + else + { + icon = XSingleton.singleton.ChooseProfString(itemConf.ItemIcon1, profession); + atlas = XSingleton.singleton.ChooseProfString(itemConf.ItemAtlas1, profession); + } + } + + public static uint GetAuctionRecommendPrice(int itemID) + { + return XBagDocument.m_ItemTable.GetByItemID(itemID).AuctPriceRecommend; + } + + public static FashionList.RowData GetFashionConf(int itemID) + { + return XBagDocument.m_FashionTable.GetByItemID(itemID); + } + + public static ItemList.RowData GetItemConf(int itemID) + { + return XBagDocument.m_ItemTable.GetByItemID(itemID); + } + + public static EquipList.RowData GetEquipConf(int itemID) + { + return XBagDocument.m_EquipTable.GetByItemID(itemID); + } + + public static BagExpandItemListTable.RowData GetExpandItemConf(uint itemId) + { + return XBagDocument.m_BagExpandItemListTable.GetByItemId(itemId); + } + + public static BagExpandItemListTable.RowData GetExpandItemConfByType(uint itemId) + { + return XBagDocument.m_BagExpandItemListTable.GetByType(itemId); + } + + public static PandoraHeart.RowData GetPandoraHeartConf(int itemID, uint profID) + { + for (int i = 0; i < XBagDocument.m_PandoraHeartTable.Table.Length; i++) + { + bool flag = ((long)itemID == (long)((ulong)XBagDocument.m_PandoraHeartTable.Table[i].PandoraID) || (long)itemID == (long)((ulong)XBagDocument.m_PandoraHeartTable.Table[i].FireID)) && (profID == XBagDocument.m_PandoraHeartTable.Table[i].ProfID || XBagDocument.m_PandoraHeartTable.Table[i].ProfID == 0u); + if (flag) + { + return XBagDocument.m_PandoraHeartTable.Table[i]; + } + } + return null; + } + + public static EmblemBasic.RowData GetEmblemConf(int emblemID) + { + return XBagDocument.m_EmblemTable.GetByEmblemID((uint)emblemID); + } + + public static ChestList.RowData GetChestConf(int itemID) + { + for (int i = 0; i < XBagDocument.m_ChestTable.Table.Length; i++) + { + bool flag = XBagDocument.m_ChestTable.Table[i].ItemID == itemID; + if (flag) + { + return XBagDocument.m_ChestTable.Table[i]; + } + } + return null; + } + + public static bool TryGetChestListConf(int itemID, out List chestList) + { + return XBagDocument.m_ChestRange.TryGetValue(itemID, out chestList); + } + + private static int DropDataCompare(DropList.RowData rowData, int dropID) + { + return dropID.CompareTo(rowData.DropID); + } + + public static bool TryGetDropConf(uint[] dropIDs, ref List dropList) + { + bool flag = dropIDs != null; + if (flag) + { + for (int i = 0; i < dropIDs.Length; i++) + { + int num; + int num2; + CVSReader.GetRowDataListByField(XBagDocument.DropTable.Table, (int)dropIDs[i], out num, out num2, XBagDocument.comp); + bool flag2 = num < 0; + if (!flag2) + { + for (int j = num; j <= num2; j++) + { + dropList.Add(XBagDocument.DropTable.Table[j]); + } + } + } + } + return dropList.Count > 0; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.ItemBag = new XBag(); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + foreach (ulong uid in xremoveItemEventArgs.uids) + { + this._RemoveCompareAttrsFromPool(uid); + } + return true; + } + + protected bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + this._RemoveCompareAttrsFromPool(xupdateItemEventArgs.item.uid); + return true; + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this.basicAttrPool.Clear(); + this.equipAdditionalAttrPool.Clear(); + this.getallEquip = false; + } + + public BagExpandData GetBagExpandData(BagType type) + { + for (int i = 0; i < this.BagExpandDataList.Count; i++) + { + bool flag = this.BagExpandDataList[i].Type == type; + if (flag) + { + return this.BagExpandDataList[i]; + } + } + return null; + } + + public void SwapItem(ulong uid1, ulong uid2) + { + int num = 0; + XItem xitem = null; + XItem xitem2 = null; + bool flag = uid1 != 0UL && this.ItemBag.FindItem(uid1, out num); + if (flag) + { + xitem = this.ItemBag[num]; + } + int num2 = 0; + XBodyBag xbodyBag = null; + bool flag2 = false; + bool flag3 = uid2 != 0UL && this.GetBodyPosByUID(uid2, out num2, out xbodyBag, out flag2); + if (flag3) + { + xitem2 = xbodyBag[num2]; + } + bool flag4 = xitem != null && xitem2 != null; + if (flag4) + { + bool flag5 = xitem.type != xitem2.type; + if (!flag5) + { + this.ItemBag[num] = xitem2; + xbodyBag[num2] = xitem; + this.ItemBag.SortItem(); + XSwapItemEventArgs @event = XEventPool.GetEvent(); + @event.itemNowOnBody = xitem; + @event.itemNowInBag = xitem2; + @event.slot = num2; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } + else + { + bool flag6 = xitem != null; + if (flag6) + { + xbodyBag = xitem.Description.BodyBag; + bool flag7 = xbodyBag == null; + if (!flag7) + { + ItemType type = xitem.Type; + if (type != ItemType.EQUIP) + { + if (type != ItemType.EMBLEM) + { + if (type == ItemType.ARTIFACT) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)xitem.itemID); + num2 = (int)artifactListRowData.ArtifactPos; + flag2 = true; + } + } + else + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(xitem.itemID); + bool flag8 = !XEmblemDocument.GetFirstEmptyEmblemSlot(this.EmblemBag, emblemConf.EmblemType, out num2); + if (flag8) + { + XSingleton.singleton.AddErrorLog("Failed to equip emblem cause it's full.", null, null, null, null, null); + return; + } + } + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xitem.itemID); + num2 = (int)equipConf.EquipPos; + flag2 = true; + } + xbodyBag[num2] = xitem; + this.ItemBag.RemoveIndex(num); + XRemoveItemEventArgs event2 = XEventPool.GetEvent(); + event2.uids.Add(uid1); + event2.types.Add(xitem.Type); + event2.ids.Add(xitem.itemID); + event2.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event2); + XLoadEquipEventArgs event3 = XEventPool.GetEvent(); + event3.item = xitem; + event3.slot = num2; + event3.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event3); + } + } + else + { + bool flag9 = xitem2 != null; + if (flag9) + { + xbodyBag[num2] = null; + this.ItemBag.AddItem(xitem2, true); + XAddItemEventArgs event4 = XEventPool.GetEvent(); + event4.items.Add(xitem2); + event4.Firer = XSingleton.singleton.Doc; + event4.bNew = false; + XSingleton.singleton.FireEvent(event4); + XUnloadEquipEventArgs event5 = XEventPool.GetEvent(); + event5.slot = num2; + event5.item = xitem2; + event5.type = xitem2.Type; + event5.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event5); + } + } + } + } + + public void UseItem(XItem item, uint opType = 0u) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = item.uid; + rpcC2G_UseItem.oArg.count = 1u; + rpcC2G_UseItem.oArg.OpType = opType; + rpcC2G_UseItem.oArg.itemID = (uint)item.itemID; + XSingleton.singleton.Send(rpcC2G_UseItem); + } + + public void UseItem(XItem item, uint opType, uint count) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = item.uid; + rpcC2G_UseItem.oArg.count = count; + rpcC2G_UseItem.oArg.OpType = opType; + XSingleton.singleton.Send(rpcC2G_UseItem); + } + + private static void MakeXEquipItem(ref XItem item, Item KKSGItem) + { + bool flag = item == null; + if (flag) + { + item = XDataPool.GetData(); + } + XEquipItem xequipItem = item as XEquipItem; + bool flag2 = xequipItem == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant create XEquipItem", null, null, null, null, null); + } + else + { + xequipItem.smeltDegreeNum = KKSGItem.smeltCount; + xequipItem.enhanceInfo.EnhanceLevel = KKSGItem.EnhanceLevel; + xequipItem.enhanceInfo.EnhanceTimes = KKSGItem.EnhanceCount; + bool flag3 = KKSGItem.AttrID.Count != KKSGItem.AttrValue.Count; + if (flag3) + { + XSingleton.singleton.AddLog("KKSGItem.EnhanceInfo.AttrID.Count != KKSGItem.EnhanceInfo.AttrValue.Count", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + for (int i = 0; i < KKSGItem.EnhanceAttrId.Count; i++) + { + XItemChangeAttr item2; + item2.AttrID = KKSGItem.EnhanceAttrId[i]; + item2.AttrValue = KKSGItem.EnhanceAttrValue[i]; + xequipItem.enhanceInfo.EnhanceAttr.Add(item2); + } + xequipItem.changeAttr.Clear(); + EquipList.RowData equipConf = XBagDocument.GetEquipConf((int)KKSGItem.ItemID); + bool flag4 = equipConf != null; + if (flag4) + { + for (int j = 0; j < (int)equipConf.Attributes.count; j++) + { + XItemChangeAttr item3; + item3.AttrID = (uint)equipConf.Attributes[j, 0]; + item3.AttrValue = (uint)equipConf.Attributes[j, 1]; + xequipItem.changeAttr.Add(item3); + } + } + bool flag5 = KKSGItem.ItemJade != null; + if (flag5) + { + for (int k = 0; k < KKSGItem.ItemJade.ItemJadeSingle.Count; k++) + { + ItemJadeSingle itemJadeSingle = KKSGItem.ItemJade.ItemJadeSingle[k]; + XJadeItem data = XDataPool.GetData(); + data.itemID = (int)itemJadeSingle.ItemId; + data.type = (uint)XFastEnumIntEqualityComparer.ToInt(ItemType.JADE); + data.uid = 0UL; + data.itemCount = 1; + data.bBinding = true; + for (int l = 0; l < itemJadeSingle.AttrId.Count; l++) + { + uint attrID = itemJadeSingle.AttrId[l]; + XItemChangeAttr item4; + item4.AttrID = attrID; + item4.AttrValue = itemJadeSingle.AttrValue[l]; + data.changeAttr.Add(item4); + } + xequipItem.jadeInfo.jades[(int)itemJadeSingle.SlotPos] = data; + } + } + xequipItem.attrType = AttrType.None; + bool flag6 = KKSGItem.randAttr != null; + if (flag6) + { + for (int m = 0; m < KKSGItem.randAttr.attrs.Count; m++) + { + XItemChangeAttr xitemChangeAttr; + xitemChangeAttr.AttrID = KKSGItem.randAttr.attrs[m].id; + xitemChangeAttr.AttrValue = KKSGItem.randAttr.attrs[m].value; + xequipItem.randAttrInfo.RandAttr.Add(xitemChangeAttr); + bool flag7 = xequipItem.attrType > AttrType.None; + if (!flag7) + { + bool flag8 = xitemChangeAttr.AttrID == 11u; + if (flag8) + { + xequipItem.attrType = AttrType.Physics; + } + else + { + bool flag9 = xitemChangeAttr.AttrID == 21u; + if (flag9) + { + xequipItem.attrType = AttrType.Magic; + } + } + } + } + } + bool flag10 = KKSGItem.forge != null; + if (flag10) + { + for (int n = 0; n < KKSGItem.forge.attrs.Count; n++) + { + XItemChangeAttr item5; + item5.AttrID = KKSGItem.forge.attrs[n].id; + item5.AttrValue = KKSGItem.forge.attrs[n].value; + xequipItem.forgeAttrInfo.ForgeAttr.Add(item5); + } + bool flag11 = KKSGItem.forge.unReplacedAttr != null; + if (flag11) + { + xequipItem.forgeAttrInfo.UnSavedAttrid = KKSGItem.forge.unReplacedAttr.id; + xequipItem.forgeAttrInfo.UnSavedAttrValue = KKSGItem.forge.unReplacedAttr.value; + } + else + { + xequipItem.forgeAttrInfo.UnSavedAttrid = 0u; + xequipItem.forgeAttrInfo.UnSavedAttrValue = 0u; + } + } + bool flag12 = KKSGItem.enchant != null; + if (flag12) + { + xequipItem.enchantInfo.ChooseAttr = KKSGItem.enchant.chooseAttrid; + bool flag13 = KKSGItem.enchant.chooseAttrid > 0u; + if (flag13) + { + for (int num = 0; num < KKSGItem.enchant.allAttrs.Count; num++) + { + XItemChangeAttr item6; + item6.AttrID = KKSGItem.enchant.allAttrs[num].id; + item6.AttrValue = KKSGItem.enchant.allAttrs[num].value; + xequipItem.enchantInfo.AttrList.Add(item6); + } + bool flag14 = KKSGItem.enchant.enchantids.Count > 0; + if (flag14) + { + xequipItem.enchantInfo.EnchantIDList = new List(KKSGItem.enchant.enchantids); + } + } + xequipItem.enchantInfo.EnchantItemID = (int)KKSGItem.enchant.enchantid; + } + bool flag15 = KKSGItem.fuse != null; + if (flag15) + { + xequipItem.fuseInfo.BreakNum = KKSGItem.fuse.fuseLevel; + xequipItem.fuseInfo.FuseExp = KKSGItem.fuse.fuseExpCount; + } + } + } + } + + private static void MakeXArtifactItem(ref XItem item, Item KKSGItem) + { + bool flag = item == null; + if (flag) + { + item = XDataPool.GetData(); + } + XArtifactItem xartifactItem = item as XArtifactItem; + bool flag2 = xartifactItem == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Can not create artifactItem", null, null, null, null, null); + } + else + { + xartifactItem.RandAttrInfo.RandAttr.Clear(); + for (int i = 0; i < KKSGItem.AttrID.Count; i++) + { + XItemChangeAttr item2; + item2.AttrID = KKSGItem.AttrID[i]; + item2.AttrValue = KKSGItem.AttrValue[i]; + xartifactItem.RandAttrInfo.RandAttr.Add(item2); + } + bool flag3 = KKSGItem.artifact != null; + if (flag3) + { + for (int j = 0; j < KKSGItem.artifact.unReplacedAttr.Count; j++) + { + XItemChangeAttr item3 = default(XItemChangeAttr); + item3.AttrID = KKSGItem.artifact.unReplacedAttr[j].id; + item3.AttrValue = KKSGItem.artifact.unReplacedAttr[j].value; + xartifactItem.UnSavedAttr.Add(item3); + } + } + xartifactItem.EffectInfoList.Clear(); + for (int k = 0; k < KKSGItem.effects.Count; k++) + { + EffectData effectData = KKSGItem.effects[k]; + XArtifactEffectInfo item4 = default(XArtifactEffectInfo); + item4.Init(); + item4.EffectId = effectData.effectID; + item4.SetBaseProf(effectData.effectID); + item4.IsValid = effectData.isWork; + xartifactItem.EffectInfoList.Add(item4); + for (int l = 0; l < effectData.multiParams.Count; l++) + { + EffectMultiParams effectMultiParams = effectData.multiParams[l]; + bool flag4 = effectMultiParams == null; + if (!flag4) + { + XArtifactBuffInfo item5 = default(XArtifactBuffInfo); + item5.Init(); + item5.SetData(effectData.effectID, effectMultiParams.IDType, effectMultiParams.ID, effectMultiParams.effectParams); + bool flag5 = item4.BuffInfoList.Count == 0; + if (flag5) + { + item4.BuffInfoList.Add(item5); + } + else + { + for (int m = 0; m < item4.BuffInfoList.Count; m++) + { + bool flag6 = item5.SortId > item4.BuffInfoList[item4.BuffInfoList.Count - 1].SortId; + if (flag6) + { + item4.BuffInfoList.Add(item5); + break; + } + bool flag7 = item5.SortId < item4.BuffInfoList[m].SortId; + if (flag7) + { + item4.BuffInfoList.Insert(m, item5); + break; + } + } + } + } + } + } + } + } + + private static void MakeXEmblemItem(ref XItem item, Item KKSGItem) + { + bool flag = item == null; + if (flag) + { + item = XDataPool.GetData(); + } + XBagDocument.MakeXAttrItem(ref item, KKSGItem); + XEmblemItem xemblemItem = item as XEmblemItem; + bool flag2 = xemblemItem == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant create XEmblemItem", null, null, null, null, null); + } + else + { + xemblemItem.smeltDegreeNum = KKSGItem.smeltCount; + xemblemItem.emblemInfo.thirdslot = KKSGItem.EmblemThirdSlot; + } + } + + private static void MakeXFashionItem(ref XItem item, Item KKSGItem) + { + bool flag = item == null; + if (flag) + { + item = XDataPool.GetData(); + } + XFashionItem xfashionItem = item as XFashionItem; + xfashionItem.fashionLevel = KKSGItem.FashionLevel; + } + + private static void MakeXJadeItem(ref XItem item, Item KKSGItem) + { + bool flag = item == null; + if (flag) + { + item = XDataPool.GetData(); + } + XBagDocument.MakeXAttrItem(ref item, KKSGItem); + XJadeItem xjadeItem = item as XJadeItem; + bool flag2 = xjadeItem == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant create XJadeItem", null, null, null, null, null); + } + } + + private static void MakeXAttrItem(ref XItem item, Item KKSGItem) + { + bool flag = item == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("XItem == null", null, null, null, null, null); + } + else + { + XAttrItem xattrItem = item as XAttrItem; + bool flag2 = xattrItem == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant create XAttrItem", null, null, null, null, null); + } + else + { + xattrItem.changeAttr.Clear(); + for (int i = 0; i < KKSGItem.AttrID.Count; i++) + { + uint attrID = KKSGItem.AttrID[i]; + XItemChangeAttr item2; + item2.AttrID = attrID; + item2.AttrValue = KKSGItem.AttrValue[i]; + xattrItem.changeAttr.Add(item2); + } + } + } + } + + private static void MakeXLotteryBoxItem(ref XItem item, Item KKSGItem) + { + bool flag = item == null; + if (flag) + { + item = XDataPool.GetData(); + } + XLotteryBoxItem xlotteryBoxItem = item as XLotteryBoxItem; + int num = 0; + while (num < KKSGItem.circleDrawDatas.Count && num < XLotteryBoxItem.POOL_SIZE) + { + CircleDrawData circleDrawData = KKSGItem.circleDrawDatas[num]; + bool flag2 = (ulong)circleDrawData.index >= (ulong)((long)XLotteryBoxItem.POOL_SIZE); + if (!flag2) + { + XItem xitem = xlotteryBoxItem.itemList[(int)circleDrawData.index]; + xitem.itemID = (int)circleDrawData.itemid; + xitem.itemCount = (int)circleDrawData.itemcount; + } + num++; + } + } + + public static XItem MakeXItem(int itemID, bool bBinding = false) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + XItem xitem = null; + bool flag = itemConf != null; + if (flag) + { + ItemType itemType = (ItemType)itemConf.ItemType; + ItemType itemType2 = itemType; + switch (itemType2) + { + case ItemType.EQUIP: + xitem = XDataPool.GetData(); + goto IL_7F; + case ItemType.PECK: + case ItemType.VIRTUAL_ITEM: + case ItemType.MATERAIL: + break; + case ItemType.FASHION: + xitem = XDataPool.GetData(); + goto IL_7F; + case ItemType.EMBLEM: + xitem = XDataPool.GetData(); + goto IL_7F; + case ItemType.JADE: + xitem = XDataPool.GetData(); + goto IL_7F; + default: + if (itemType2 == ItemType.ARTIFACT) + { + xitem = XDataPool.GetData(); + goto IL_7F; + } + break; + } + xitem = XDataPool.GetData(); + IL_7F: + xitem.itemID = itemID; + xitem.type = (uint)itemConf.ItemType; + xitem.itemCount = (int)XBagDocument.BagDoc.GetItemCount(itemID); + xitem.bBinding = bBinding; + xitem.blocking = 0.0; + xitem.itemConf = itemConf; + ItemType itemType3 = itemType; + switch (itemType3) + { + case ItemType.EQUIP: + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemID); + bool flag2 = equipConf != null; + if (flag2) + { + XEquipItem xequipItem = xitem as XEquipItem; + for (int i = 0; i < equipConf.Attributes.Count; i++) + { + XItemChangeAttr item; + item.AttrID = (uint)equipConf.Attributes[i, 0]; + item.AttrValue = (uint)equipConf.Attributes[i, 1]; + xequipItem.changeAttr.Add(item); + } + xequipItem.randAttrInfo.bPreview = true; + xequipItem.forgeAttrInfo.bPreview = true; + } + break; + } + case ItemType.PECK: + case ItemType.VIRTUAL_ITEM: + case ItemType.MATERAIL: + break; + case ItemType.FASHION: + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + SeqListRef fashionAttr = specificDocument.GetFashionAttr(itemID, 0); + XFashionItem xfashionItem = xitem as XFashionItem; + xfashionItem.itemCount = 1; + for (int j = 0; j < fashionAttr.Count; j++) + { + XItemChangeAttr item2; + item2.AttrID = fashionAttr[j, 0]; + item2.AttrValue = fashionAttr[j, 1]; + xfashionItem.changeAttr.Add(item2); + } + break; + } + case ItemType.EMBLEM: + { + XEmblemItem xemblemItem = xitem as XEmblemItem; + xemblemItem.emblemInfo.thirdslot = 10u; + xemblemItem.emblemInfo.level = (uint)itemConf.ReqLevel; + int num; + int num2; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)xitem.itemID, out num, out num2); + bool flag3 = num >= 0; + if (flag3) + { + for (int k = num; k < num2; k++) + { + AttributeEmblem.RowData attributeEmblem = XEquipCreateDocument.GetAttributeEmblem(k); + bool flag4 = attributeEmblem.Position == 1 || attributeEmblem.Position == 2; + if (flag4) + { + XItemChangeAttr item3; + item3.AttrID = (uint)attributeEmblem.AttrID; + item3.AttrValue = attributeEmblem.Range[0]; + xemblemItem.changeAttr.Add(item3); + } + } + } + break; + } + case ItemType.JADE: + { + XJadeDocument specificDocument2 = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + JadeTable.RowData byJadeID = specificDocument2.jadeTable.GetByJadeID((uint)itemID); + bool flag5 = byJadeID != null; + if (flag5) + { + XJadeItem xjadeItem = xitem as XJadeItem; + for (int l = 0; l < byJadeID.JadeAttributes.Count; l++) + { + XItemChangeAttr item4; + item4.AttrID = byJadeID.JadeAttributes[l, 0]; + item4.AttrValue = byJadeID.JadeAttributes[l, 1]; + xjadeItem.changeAttr.Add(item4); + } + } + break; + } + default: + if (itemType3 == ItemType.ARTIFACT) + { + XArtifactItem xartifactItem = xitem as XArtifactItem; + xartifactItem.RandAttrInfo.bPreview = true; + } + break; + } + } + else + { + XSingleton.singleton.AddErrorLog("Cant find item config for id: " + itemID.ToString(), null, null, null, null, null); + } + return xitem; + } + + public static XItem MakeXItem(Item KKSGItem) + { + XItem xitem = null; + ItemType itemType = (ItemType)KKSGItem.ItemType; + ItemType itemType2 = itemType; + switch (itemType2) + { + case ItemType.EQUIP: + XBagDocument.MakeXEquipItem(ref xitem, KKSGItem); + goto IL_8B; + case ItemType.PECK: + case ItemType.VIRTUAL_ITEM: + case ItemType.MATERAIL: + case ItemType.FRAGMENT: + break; + case ItemType.FASHION: + XBagDocument.MakeXFashionItem(ref xitem, KKSGItem); + goto IL_8B; + case ItemType.EMBLEM: + XBagDocument.MakeXEmblemItem(ref xitem, KKSGItem); + goto IL_8B; + case ItemType.JADE: + XBagDocument.MakeXJadeItem(ref xitem, KKSGItem); + goto IL_8B; + case ItemType.LOTTERY_BOX: + XBagDocument.MakeXLotteryBoxItem(ref xitem, KKSGItem); + goto IL_8B; + default: + if (itemType2 == ItemType.ARTIFACT) + { + XBagDocument.MakeXArtifactItem(ref xitem, KKSGItem); + goto IL_8B; + } + break; + } + xitem = XDataPool.GetData(); + IL_8B: + xitem.uid = KKSGItem.uid; + xitem.type = KKSGItem.ItemType; + xitem.itemID = (int)KKSGItem.ItemID; + xitem.itemCount = (int)KKSGItem.ItemCount; + xitem.bBinding = KKSGItem.isbind; + xitem.itemConf = XBagDocument.GetItemConf(xitem.itemID); + bool flag = xitem.itemConf == null && xitem.uid > 0UL; + if (flag) + { + XSingleton.singleton.AddGreenLog("Cant find item config for id: ", xitem.itemID.ToString(), ", uid = ", xitem.uid.ToString(), null, null); + } + xitem.bexpirationTime = KKSGItem.expirationTime; + double num = 0.0; + bool flag2 = KKSGItem.cooldown > 0u; + if (flag2) + { + num = XSingleton.singleton.TimeFormatLastTime(KKSGItem.cooldown, true); + bool flag3 = num < 0.0; + if (flag3) + { + num = 0.0; + } + } + xitem.blocking = num; + return xitem; + } + + public static XItem MakeFasionItemById(uint id) + { + XItem data = XDataPool.GetData(); + data.uid = 0UL; + data.type = 5u; + data.itemID = (int)id; + data.itemCount = 1; + return data; + } + + public bool GetBodyPosByUID(ulong uid, out int pos, out XBodyBag bag, out bool isEquip) + { + bool itemPos = this.EquipBag.GetItemPos(uid, out pos); + bool result; + if (itemPos) + { + bag = this.EquipBag; + isEquip = true; + result = true; + } + else + { + bool itemPos2 = this.EmblemBag.GetItemPos(uid, out pos); + if (itemPos2) + { + bag = this.EmblemBag; + isEquip = false; + result = true; + } + else + { + bool itemPos3 = this.ArtifactBag.GetItemPos(uid, out pos); + if (itemPos3) + { + bag = this.ArtifactBag; + isEquip = false; + result = true; + } + else + { + bag = null; + pos = -1; + isEquip = false; + result = false; + } + } + } + return result; + } + + public XItem GetBodyItemByUID(ulong uid) + { + XItem itemByUID = this.EquipBag.GetItemByUID(uid); + bool flag = itemByUID != null; + XItem result; + if (flag) + { + result = itemByUID; + } + else + { + itemByUID = this.EmblemBag.GetItemByUID(uid); + bool flag2 = itemByUID != null; + if (flag2) + { + result = itemByUID; + } + else + { + itemByUID = this.ArtifactBag.GetItemByUID(uid); + bool flag3 = itemByUID != null; + if (flag3) + { + result = itemByUID; + } + else + { + result = null; + } + } + } + return result; + } + + public XItem GetBodyItemByID(int id) + { + XItem itemByID = this.EquipBag.GetItemByID(id); + bool flag = itemByID != null; + XItem result; + if (flag) + { + result = itemByID; + } + else + { + itemByID = this.EmblemBag.GetItemByID(id); + bool flag2 = itemByID != null; + if (flag2) + { + result = itemByID; + } + else + { + itemByID = this.ArtifactBag.GetItemByID(id); + bool flag3 = itemByID != null; + if (flag3) + { + result = itemByID; + } + else + { + result = null; + } + } + } + return result; + } + + public int GetBodyItemCountByID(int id) + { + int itemCountByID = this.EquipBag.GetItemCountByID(id); + bool flag = itemCountByID == 0; + if (flag) + { + itemCountByID = this.EmblemBag.GetItemCountByID(id); + } + bool flag2 = itemCountByID == 0; + if (flag2) + { + itemCountByID = this.ArtifactBag.GetItemCountByID(id); + } + return itemCountByID; + } + + public XItem GetBagItemByUID(ulong uid) + { + int key = 0; + bool flag = this.ItemBag.FindItem(uid, out key); + XItem result; + if (flag) + { + result = this.ItemBag[key]; + } + else + { + result = null; + } + return result; + } + + public XItem GetBagItemByUID(string struid) + { + ulong uid = 0UL; + bool flag = ulong.TryParse(struid, out uid); + XItem result; + if (flag) + { + result = this.GetBagItemByUID(uid); + } + else + { + result = null; + } + return result; + } + + public XItem GetItemByUID(ulong uid) + { + int key = 0; + XItem bodyItemByUID = this.GetBodyItemByUID(uid); + bool flag = bodyItemByUID != null; + XItem result; + if (flag) + { + result = bodyItemByUID; + } + else + { + bool flag2 = this.ItemBag.FindItem(uid, out key); + if (flag2) + { + result = this.ItemBag[key]; + } + else + { + result = null; + } + } + return result; + } + + public XItem GetItemByUID(string struid) + { + ulong uid = 0UL; + bool flag = ulong.TryParse(struid, out uid); + XItem result; + if (flag) + { + result = this.GetItemByUID(uid); + } + else + { + result = null; + } + return result; + } + + public bool GetItemByItemId(int itemId, out List lst) + { + return this.ItemBag.FindItemByID(itemId, out lst); + } + + private static int ItemType2Int(ItemType type) + { + return XFastEnumIntEqualityComparer.ToInt(type); + } + + public static int BodyPosition(T type) where T : struct + { + return XFastEnumIntEqualityComparer.ToInt(type); + } + + internal static void InitAddEquiptItem(ref XBodyBag bag, List list, int bagSize) + { + bool flag = bag == null; + if (flag) + { + bag = new XBodyBag(bagSize); + } + for (int i = 0; i < bag.Length; i++) + { + bool flag2 = bag[i] != null; + if (flag2) + { + bag[i].Recycle(); + bag[i] = null; + } + } + int num = Math.Min(list.Count, bag.Length); + for (int j = 0; j < num; j++) + { + XItem xitem = XBagDocument.MakeXItem(list[j]); + bool flag3 = xitem.itemID == 0; + if (flag3) + { + xitem.Recycle(); + xitem = null; + } + bag[j] = xitem; + } + } + + internal void Init(BagContent Bag) + { + XEmblemDocument.HadSlottingNum = (int)Bag.extraSkillEbSlotNum; + for (int i = 0; i < Bag.expand.Count; i++) + { + this.SetBagExpandData(Bag.expand[i], false); + } + XBagDocument.InitAddEquiptItem(ref this.EquipBag, Bag.Equips, XBagDocument.EquipMax); + XBagDocument.InitAddEquiptItem(ref this.EmblemBag, Bag.Emblems, XBagDocument.EmblemMax); + XBagDocument.InitAddEquiptItem(ref this.ArtifactBag, Bag.Artifacts, XBagDocument.ArtifactMax); + int count = this.ItemBag.Count; + for (int j = 0; j < count; j++) + { + this.ItemBag[j].Recycle(); + } + this.ItemBag.Clear(); + for (int k = 0; k < Bag.Items.Count; k++) + { + XItem item = XBagDocument.MakeXItem(Bag.Items[k]); + this.ItemBag.AddItem(item, false); + } + int l; + for (l = 0; l < Bag.virtualitems.Count; l++) + { + this.VirtualItems[l] = Bag.virtualitems[l]; + } + while (l < this.VirtualItems.Length) + { + this.VirtualItems[l] = 0UL; + l++; + } + this.ItemBag.SortItem(); + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + specificDocument.UpdateRedPoints(); + XEnhanceDocument specificDocument2 = XDocuments.GetSpecificDocument(XEnhanceDocument.uuID); + specificDocument2.UpdateRedPoints(); + XEnchantDocument specificDocument3 = XDocuments.GetSpecificDocument(XEnchantDocument.uuID); + specificDocument3.UpdateRedPoints(); + XSingleton.singleton.XPlayerData.Outlook.enhanceMasterLevel = Bag.enhanceSuit; + XSingleton.singleton.XPlayerData.EmblemBag = this.EmblemBag; + this.TearsCount = (ulong)((long)this.ItemBag.GetItemCount(88)); + } + + public void SetBagExpandData(KKSG.BagExpandData data, bool isShowTip) + { + for (int i = 0; i < this.BagExpandDataList.Count; i++) + { + bool flag = this.BagExpandDataList[i].Type == data.type; + if (flag) + { + this.BagExpandDataList[i].ExpandNum = data.num; + this.BagExpandDataList[i].ExpandTimes = data.count; + if (isShowTip) + { + switch (data.type) + { + case BagType.EquipBag: + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ExpandEquipBagSuc"), "fece00"); + XCharacterEquipDocument specificDocument = XDocuments.GetSpecificDocument(XCharacterEquipDocument.uuID); + specificDocument.RefreshBag(); + break; + } + case BagType.EmblemBag: + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ExpandEmblemBagSuc"), "fece00"); + XEmblemDocument specificDocument2 = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + specificDocument2.RefreshBag(); + break; + } + case BagType.ArtifactBag: + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ExpandArtifactBagSuc"), "fece00"); + ArtifactBagDocument.Doc.RefreshBag(); + break; + case BagType.ItemBag: + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ExpandItemBagSuc"), "fece00"); + XCharacterItemDocument specificDocument3 = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + specificDocument3.RefreshBag(); + break; + } + } + } + break; + } + } + } + + public void UseBagExpandTicket(BagType type) + { + BagExpandItemListTable.RowData expandItemConfByType = XBagDocument.GetExpandItemConfByType((uint)XFastEnumIntEqualityComparer.ToInt(type)); + bool flag = expandItemConfByType == null; + if (!flag) + { + this.m_usedBagExpandRow = expandItemConfByType; + int itemId = (int)expandItemConfByType.ItemId; + BagExpandData bagExpandData = XBagDocument.BagDoc.GetBagExpandData((BagType)expandItemConfByType.Type); + bool flag2 = bagExpandData != null; + if (flag2) + { + bool flag3 = (uint)expandItemConfByType.NeedAndOpen.count > bagExpandData.ExpandTimes; + if (flag3) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemId); + XSingleton.singleton.ShowModalDialog(string.Format(XSingleton.singleton.GetString("BagExpandSureTips"), expandItemConfByType.NeedAndOpen[(int)bagExpandData.ExpandTimes, 0], itemConf.ItemName[0], expandItemConfByType.NeedAndOpen[(int)bagExpandData.ExpandTimes, 1]), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.ReqUseBagExpandTicket)); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetBagExpandFullTips((BagType)expandItemConfByType.Type), "fece00"); + } + } + } + } + + private bool ReqUseBagExpandTicket(IXUIButton btn) + { + BagExpandItemListTable.RowData usedBagExpandRow = this.m_usedBagExpandRow; + bool flag = usedBagExpandRow == null; + bool result; + if (flag) + { + result = false; + } + else + { + int itemId = (int)usedBagExpandRow.ItemId; + BagExpandData bagExpandData = XBagDocument.BagDoc.GetBagExpandData((BagType)usedBagExpandRow.Type); + bool flag2 = bagExpandData != null; + if (flag2) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount(itemId); + bool flag3 = itemCount >= (ulong)usedBagExpandRow.NeedAndOpen[(int)bagExpandData.ExpandTimes, 0] && itemCount > 0UL; + if (flag3) + { + List list; + bool itemByItemId = this.GetItemByItemId(itemId, out list); + if (itemByItemId) + { + XSingleton.singleton.Doc.XBagDoc.UseItem(list[0], 0u); + } + } + else + { + XSingleton.singleton.ShowItemAccess(itemId, null); + } + } + XSingleton.singleton.CloseModalDlg(); + result = true; + } + return result; + } + + internal ulong GetItemCount(int itemid) + { + bool flag = itemid < XFastEnumIntEqualityComparer.ToInt(ItemEnum.VIRTUAL_ITEM_MAX); + ulong result; + if (flag) + { + result = this.GetVirtualItemCount((ItemEnum)itemid); + } + else + { + result = (ulong)((long)this.ItemBag.GetItemCount(itemid)); + } + return result; + } + + internal ulong GetItemCount(int itemid, bool isBind) + { + bool flag = itemid < XFastEnumIntEqualityComparer.ToInt(ItemEnum.VIRTUAL_ITEM_MAX); + ulong result; + if (flag) + { + result = this.GetVirtualItemCount((ItemEnum)itemid); + } + else + { + result = (ulong)((long)this.ItemBag.GetItemCount(itemid, isBind)); + } + return result; + } + + internal ulong GetVirtualItemCount(ItemEnum t) + { + return this.VirtualItems[XFastEnumIntEqualityComparer.ToInt(t)]; + } + + internal ulong GetSkillPointCount(bool isAwakeSkillPoint = false) + { + bool flag = XSingleton.singleton.XPlayerData.SkillPageIndex == 0u; + ulong result; + if (flag) + { + result = this.VirtualItems[XFastEnumIntEqualityComparer.ToInt(isAwakeSkillPoint ? ItemEnum.AWAKE_SKILL_POINT : ItemEnum.SKILL_POINT)]; + } + else + { + result = this.VirtualItems[XFastEnumIntEqualityComparer.ToInt(isAwakeSkillPoint ? ItemEnum.AWAKE_SKILL_POINT_TWO : ItemEnum.SKILL_POINT_TWO)]; + } + return result; + } + + internal void SetVirtualItemCount(int t, ulong Count) + { + ulong oldValue = 0UL; + bool flag = t < XFastEnumIntEqualityComparer.ToInt(ItemEnum.VIRTUAL_ITEM_MAX); + if (flag) + { + oldValue = this.VirtualItems[t]; + this.VirtualItems[t] = Count; + } + else + { + bool flag2 = t == 88; + if (flag2) + { + oldValue = this.TearsCount; + this.TearsCount = Count; + } + } + bool flag3 = t == 6; + if (flag3) + { + XSingleton.singleton.AddLog("Set fatigue = ", Count.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + XVirtualItemChangedEventArgs @event = XEventPool.GetEvent(); + @event.e = (ItemEnum)t; + @event.newValue = Count; + @event.oldValue = oldValue; + @event.itemID = t; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + internal void UpdateItem(Item KKSGItem) + { + XItem xitem = XBagDocument.MakeXItem(KKSGItem); + int key; + bool flag = this.ItemBag.FindItem(xitem.uid, out key); + if (flag) + { + this.ItemBag[key].Recycle(); + this.ItemBag[key] = xitem; + } + else + { + bool flag2 = xitem.Type == ItemType.EQUIP; + if (flag2) + { + this.EquipBag.UpdateItem(xitem); + } + else + { + bool flag3 = xitem.Type == ItemType.EMBLEM; + if (flag3) + { + this.EmblemBag.UpdateItem(xitem); + } + else + { + bool flag4 = xitem.Type == ItemType.ARTIFACT; + if (flag4) + { + this.ArtifactBag.UpdateItem(xitem); + } + } + } + } + XUpdateItemEventArgs @event = XEventPool.GetEvent(); + @event.item = xitem; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + internal void AddNewItem(Item KKSGItem) + { + XItem item = XBagDocument.MakeXItem(KKSGItem); + this.ItemBag.AddItem(item, true); + XAddItemEventArgs @event = XEventPool.GetEvent(); + @event.items.Add(item); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + internal void AddNewItem(List KKSGItems, bool bIsNew = true) + { + XAddItemEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + @event.bNew = bIsNew; + foreach (Item kksgitem in KKSGItems) + { + XItem item = XBagDocument.MakeXItem(kksgitem); + this.ItemBag.AddItem(item, false); + @event.items.Add(item); + } + bool flag = @event.items.Count > 0; + if (flag) + { + this.ItemBag.SortItem(); + XSingleton.singleton.FireEvent(@event); + } + else + { + @event.Recycle(); + } + } + + internal void RemoveItem(ulong uid) + { + int num; + bool flag = this.ItemBag.FindItem(uid, out num); + if (flag) + { + XRemoveItemEventArgs @event = XEventPool.GetEvent(); + @event.uids.Add(uid); + @event.types.Add(this.ItemBag[num].Type); + @event.ids.Add(this.ItemBag[num].itemID); + this.ItemBag.RemoveIndex(num); + @event.Firer = XSingleton.singleton.Doc; + } + } + + internal void RemoveItem(List uids) + { + XRemoveItemEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + foreach (ulong num in uids) + { + int num2; + bool flag = this.ItemBag.FindItem(num, out num2); + if (flag) + { + XItem xitem = this.ItemBag[num2]; + @event.uids.Add(num); + @event.types.Add(xitem.Type); + @event.ids.Add(xitem.itemID); + xitem.Recycle(); + this.ItemBag.RemoveIndex(num2); + } + } + bool flag2 = @event.uids.Count > 0; + if (flag2) + { + XSingleton.singleton.FireEvent(@event); + } + else + { + @event.Recycle(); + } + } + + internal void ChangeItemCount(ulong uid, int count, bool bIsNew = true) + { + int key; + bool flag = this.ItemBag.FindItem(uid, out key); + if (flag) + { + XItem xitem = this.ItemBag[key]; + int itemCount = xitem.itemCount; + xitem.itemCount = count; + XItemNumChangedEventArgs @event = XEventPool.GetEvent(); + @event.oldCount = itemCount; + @event.item = xitem; + @event.Firer = XSingleton.singleton.Doc; + @event.bNew = bIsNew; + XSingleton.singleton.FireEvent(@event); + } + } + + internal void FinishItemChange() + { + XItemChangeFinishedEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + private void _RemoveCompareAttrsFromPool(ulong uid) + { + this.basicAttrPool.Remove(uid); + this.equipAdditionalAttrPool.Remove(uid); + } + + public uint GetItemPPT(XAttrItem item, ItemAttrCompareType type) + { + bool flag = item == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + Dictionary dictionary = null; + if (type != ItemAttrCompareType.IACT_SELF) + { + if (type == ItemAttrCompareType.IACT_TOTAL) + { + dictionary = this.equipAdditionalAttrPool; + } + } + else + { + dictionary = this.basicAttrPool; + } + uint num = 0u; + ulong num2 = item.uid; + bool flag2 = num2 == 0UL; + if (flag2) + { + num2 = (ulong)((long)item.itemID); + } + bool flag3 = !dictionary.TryGetValue(num2, out num); + if (flag3) + { + XEquipItem xequipItem = item as XEquipItem; + double num3 = 0.0; + bool flag4 = (type & ItemAttrCompareType.IACT_BASIC) > (ItemAttrCompareType)0; + if (flag4) + { + for (int i = 0; i < item.changeAttr.Count; i++) + { + num3 += XSingleton.singleton.GetPPT(item.changeAttr[i], null, -1); + } + } + bool flag5 = xequipItem != null && (type & ItemAttrCompareType.IACT_RANDOM) > (ItemAttrCompareType)0; + if (flag5) + { + for (int j = 0; j < xequipItem.randAttrInfo.RandAttr.Count; j++) + { + num3 += XSingleton.singleton.GetPPT(xequipItem.randAttrInfo.RandAttr[j], null, -1); + } + } + bool flag6 = xequipItem != null && (type & ItemAttrCompareType.IACT_FORGE) > (ItemAttrCompareType)0; + if (flag6) + { + for (int k = 0; k < xequipItem.forgeAttrInfo.ForgeAttr.Count; k++) + { + num3 += XSingleton.singleton.GetPPT(xequipItem.forgeAttrInfo.ForgeAttr[k], null, -1); + } + } + bool flag7 = xequipItem != null && (type & ItemAttrCompareType.IACT_ENHANCE) > (ItemAttrCompareType)0; + if (flag7) + { + for (int l = 0; l < xequipItem.enhanceInfo.EnhanceAttr.Count; l++) + { + num3 += XSingleton.singleton.GetPPT(xequipItem.enhanceInfo.EnhanceAttr[l], null, -1); + } + } + bool flag8 = xequipItem != null && (type & ItemAttrCompareType.IACT_JADE) > (ItemAttrCompareType)0; + if (flag8) + { + for (int m = 0; m < xequipItem.jadeInfo.jades.Length; m++) + { + num3 += this.GetItemPPT(xequipItem.jadeInfo.jades[m], ItemAttrCompareType.IACT_SELF); + } + } + num = (uint)num3; + dictionary.Add(num2, num); + } + result = num; + } + return result; + } + + public override void Update(float fDeltaT) + { + bool flag = this.ItemBag == null; + if (!flag) + { + int i = 0; + int count = this.ItemBag.Count; + while (i < count) + { + bool flag2 = !this.ItemBag[i].bBinding && this.ItemBag[i].blocking > 0.0; + if (flag2) + { + this.ItemBag[i].blocking -= (double)fDeltaT; + } + i++; + } + bool flag3 = this.getallEquip; + if (flag3) + { + this.fashionTime += fDeltaT; + bool flag4 = this.fashionTime > 0.3f; + if (flag4) + { + this.fashionTime = 0f; + bool flag5 = this.fashionIndex < XBagDocument.m_FashionTable.Table.Length; + if (flag5) + { + FashionList.RowData[] table = XBagDocument.m_FashionTable.Table; + int num = this.fashionIndex; + this.fashionIndex = num + 1; + FashionList.RowData rowData = table[num]; + string command = string.Format("item {0} 1", rowData.ItemID); + XSingleton.singleton.ProcessCommand(command); + } + else + { + this.getallEquip = false; + } + } + } + } + } + + public ItemAttrCompareResult IsAttrMorePowerful(XAttrItem left, XAttrItem right, ItemAttrCompareType type = ItemAttrCompareType.IACT_SELF) + { + uint itemPPT = this.GetItemPPT(left, type); + uint itemPPT2 = this.GetItemPPT(right, type); + bool flag = itemPPT < itemPPT2; + ItemAttrCompareResult result; + if (flag) + { + result = ItemAttrCompareResult.IACR_SMALLER; + } + else + { + bool flag2 = itemPPT > itemPPT2; + if (flag2) + { + result = ItemAttrCompareResult.IACR_LARGER; + } + else + { + result = ItemAttrCompareResult.IACR_EQUAL; + } + } + return result; + } + + public uint GetArtifactPPT(XAttrItem item) + { + bool flag = item == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + XArtifactItem xartifactItem = item as XArtifactItem; + bool flag2 = xartifactItem == null; + if (flag2) + { + result = 0u; + } + else + { + double num = 0.0; + for (int i = 0; i < xartifactItem.RandAttrInfo.RandAttr.Count; i++) + { + bool flag3 = xartifactItem.RandAttrInfo.RandAttr[i].AttrID == 0u; + if (!flag3) + { + num += XSingleton.singleton.GetPPT(xartifactItem.RandAttrInfo.RandAttr[i], null, -1); + } + } + result = (uint)num; + } + } + return result; + } + + public void ReqItemSell(ulong uid) + { + RpcC2G_ItemSell rpcC2G_ItemSell = new RpcC2G_ItemSell(); + rpcC2G_ItemSell.oArg.uid = uid; + XSingleton.singleton.Send(rpcC2G_ItemSell); + } + + public void ReqItemCompose(ulong uid) + { + RpcC2G_ItemCompose rpcC2G_ItemCompose = new RpcC2G_ItemCompose(); + rpcC2G_ItemCompose.oArg.uid = uid.ToString(); + XSingleton.singleton.Send(rpcC2G_ItemCompose); + } + + public static bool ItemCanShowTips(uint itemID) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemID); + bool flag = itemConf == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = itemConf.ShowTips == 0; + result = !flag2; + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.Init(arg.PlayerInfo.Bag); + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + XEquipComponent xequipComponent = XSingleton.singleton.Player.GetXComponent(XEquipComponent.uuID) as XEquipComponent; + bool flag2 = xequipComponent != null; + if (flag2) + { + xequipComponent.EquipFromAttr(); + } + } + } + + public void GetAllEquip() + { + this.getallEquip = true; + this.fashionIndex = 0; + this.fashionTime = 0.4f; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBagDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBagDocument.cs.meta new file mode 100644 index 00000000..3d86bc35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBagDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 222eb4bc82e02fc4dae5d56b5b588097 +timeCreated: 1611403419 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBagWindow.cs b/Client/Assets/Scripts/XMainClient/XBagWindow.cs new file mode 100644 index 00000000..78a260ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBagWindow.cs @@ -0,0 +1,167 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBagWindow + { + public int COL_COUNT = 6; + + public int ROW_COUNT = 4; + + public GameObject PanelObject; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ScrollView; + + private XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public List m_XItemIDList = new List(); + + public List m_XItemList; + + private ItemUpdateHandler itemUpdateHandler = null; + + private GetItemHandler getItemHandler = null; + + public XBagWindow(GameObject PanelGo, ItemUpdateHandler updateHandler, GetItemHandler getHandler) + { + this.PanelObject = PanelGo; + this.itemUpdateHandler = updateHandler; + this.getItemHandler = getHandler; + } + + public void Init() + { + Transform transform = this.PanelObject.transform.Find("Panel/WrapContent/ItemTpl"); + this.m_ScrollView = (this.PanelObject.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (this.PanelObject.transform.Find("Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + this.COL_COUNT = this.m_WrapContent.widthDimension; + this.ROW_COUNT = this.m_WrapContent.heightDimensionMax; + } + + private void WrapContentItemUpdated(Transform t, int index) + { + this.itemUpdateHandler(t, index); + } + + public void ChangeData(ItemUpdateHandler updateHandler, GetItemHandler getHandler) + { + this.itemUpdateHandler = updateHandler; + this.getItemHandler = getHandler; + } + + public void OnShow() + { + this.UpdateBag(); + this.m_ScrollView.ResetPosition(); + } + + public void OnHide() + { + this.m_ItemPool.ReturnAll(true); + this.m_XItemIDList.Clear(); + } + + protected void _RefreshBag() + { + int num = Math.Max(this.m_XItemList.Count, this.COL_COUNT * this.ROW_COUNT); + this.m_WrapContent.SetContentCount(num, false); + } + + public void UpdateBag() + { + this.GetItemData(this.getItemHandler()); + this.m_XItemIDList.Clear(); + for (int i = 0; i < this.m_XItemList.Count; i++) + { + bool flag = this.m_XItemList[i] != null; + if (flag) + { + this.m_XItemIDList.Add(this.m_XItemList[i].uid); + } + else + { + this.m_XItemIDList.Add(0UL); + } + } + this._RefreshBag(); + } + + private void GetItemData(List lst) + { + bool flag = this.m_XItemList != null; + if (flag) + { + this.m_XItemList.Clear(); + } + else + { + this.m_XItemList = new List(); + } + for (int i = 0; i < lst.Count; i++) + { + this.m_XItemList.Add(lst[i]); + } + } + + public void RefreshWindow() + { + this.m_WrapContent.RefreshAllVisibleContents(); + } + + public void UpdateItem(XItem item) + { + for (int i = 0; i < this.m_XItemList.Count; i++) + { + bool flag = this.m_XItemIDList[i] == item.uid; + if (flag) + { + this.m_XItemList[i] = item; + break; + } + } + this.RefreshWindow(); + } + + public void ReplaceItem(XItem from, XItem to) + { + for (int i = 0; i < this.m_XItemList.Count; i++) + { + bool flag = this.m_XItemIDList[i] == from.uid; + if (flag) + { + this.m_XItemList[i] = to; + this.m_XItemIDList[i] = to.uid; + break; + } + } + this.RefreshWindow(); + } + + public void ResetPosition() + { + this.m_ScrollView.ResetPosition(); + } + + public Transform FindChildByName(string name) + { + bool flag = this.m_WrapContent != null; + Transform result; + if (flag) + { + result = this.m_WrapContent.gameObject.transform.Find(name); + } + else + { + result = null; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBagWindow.cs.meta b/Client/Assets/Scripts/XMainClient/XBagWindow.cs.meta new file mode 100644 index 00000000..046a581c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBagWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f869687a91ea18448bcd367d621812c +timeCreated: 1611403909 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBaseCommand.cs b/Client/Assets/Scripts/XMainClient/XBaseCommand.cs new file mode 100644 index 00000000..659dc085 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBaseCommand.cs @@ -0,0 +1,308 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBaseCommand + { + protected XTutorialCmd _cmd; + + protected GameObject _text; + + protected static GameObject _Overlay = null; + + protected GameObject _ailin; + + protected GameObject _buttomText; + + public float _startTime = 0f; + + public int ailin_index = 0; + + public void SetCommand(XTutorialCmd cmd) + { + this._cmd = cmd; + } + + public virtual bool Execute() + { + return true; + } + + public virtual void Update() + { + } + + public virtual void Stop() + { + this.DestroyButtomText(); + this.DestroyText(); + this.DestroyOverlay(); + } + + public virtual void OnFinish() + { + this.Stop(); + } + + protected void SetTutorialText(Vector3 startPos, Transform parent) + { + bool flag = this._cmd.text != null && this._cmd.text.Length > 0; + if (flag) + { + bool flag2 = this._text == null; + if (flag2) + { + this._text = (XSingleton.singleton.CreateFromPrefab("UI/Common/TutorialText", true, false) as GameObject); + } + startPos.z = 0f; + this._text.transform.parent = parent; + this._text.transform.localPosition = startPos; + this._text.transform.localScale = Vector3.one; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(this._text); + bool flipHorizontal = false; + IXUISprite ixuisprite = this._text.transform.Find("TutorialText").GetComponent("XUISprite") as IXUISprite; + bool flag3 = startPos.x > 0f; + if (flag3) + { + flipHorizontal = true; + } + ixuisprite.SetFlipHorizontal(flipHorizontal); + IXUILabel ixuilabel = this._text.transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._cmd.text); + this._text.SetActive(false); + this._text.SetActive(true); + } + } + + protected void SetOverlay() + { + bool flag = XBaseCommand._Overlay == null; + if (flag) + { + XBaseCommand._Overlay = (XSingleton.singleton.CreateFromPrefab("UI/Common/TutorialTemp", true, false) as GameObject); + XSingleton.singleton.AddChild(XSingleton.singleton.UIRoot, XBaseCommand._Overlay.transform); + XBaseCommand._Overlay.SetActive(false); + XBaseCommand._Overlay.SetActive(true); + } + IXUISprite ixuisprite = XBaseCommand._Overlay.transform.Find("Left").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(null); + Input.ResetInputAxes(); + } + + protected virtual void OnMouseClick(IXUISprite sp) + { + bool flag = (this.ailin_index == 1 && string.IsNullOrEmpty(this._cmd.ailinText2)) || this.ailin_index == 2; + if (flag) + { + XSingleton.singleton.OnCmdFinished(); + } + else + { + bool flag2 = !string.IsNullOrEmpty(this._cmd.ailinText2); + if (flag2) + { + IXUILabel ixuilabel = this._ailin.transform.Find("TutorialText").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._cmd.ailinText2); + this.ailin_index = 2; + } + } + } + + protected void SetAilin() + { + bool flag = !string.IsNullOrEmpty(this._cmd.ailinText); + if (flag) + { + XSingleton.singleton.Cancel(); + this.ailin_index = 1; + this._ailin = (XSingleton.singleton.CreateFromPrefab("UI/Common/Ailin", true, false) as GameObject); + float num = -84f; + Transform transform = XSingleton.singleton.UIRoot.Find("TutorialPanel"); + XSingleton.singleton.AddChild((XBaseCommand._Overlay == null) ? transform : XBaseCommand._Overlay.transform, this._ailin.transform); + IXUITweenTool ixuitweenTool = this._ailin.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetPositionTweenPos(0, new Vector3(-800f, num, 0f), new Vector3((float)this._cmd.ailinPos, num, 0f)); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnAilinMoveOver)); + ixuitweenTool.PlayTween(true, -1f); + IXUILabel ixuilabel = this._ailin.transform.Find("TutorialText").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._cmd.ailinText); + IXUISprite ixuisprite = this._ailin.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(null); + ixuilabel.gameObject.SetActive(false); + } + } + + protected void OnAilinMoveOver(IXUITweenTool tween) + { + IXUITweenTool ixuitweenTool = this._ailin.transform.Find("TutorialText").GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + bool flag = XBaseCommand._Overlay != null; + if (flag) + { + IXUISprite ixuisprite = XBaseCommand._Overlay.transform.Find("Left").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMouseClick)); + } + Transform transform = this._ailin.transform.Find("Bg"); + bool flag2 = string.IsNullOrEmpty(this._cmd.ailinText2); + if (flag2) + { + transform.gameObject.SetActive(false); + } + else + { + transform.gameObject.SetActive(true); + IXUISprite ixuisprite2 = transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMouseClick)); + } + } + + protected void SetButtomText() + { + bool flag = string.IsNullOrEmpty(this._cmd.buttomtext); + if (!flag) + { + bool flag2 = this._buttomText == null; + if (flag2) + { + this._buttomText = (XSingleton.singleton.CreateFromPrefab("UI/Common/TutorialButtomText", true, false) as GameObject); + } + this._buttomText.transform.parent = XSingleton.singleton.UIRoot; + this._buttomText.transform.localPosition = Vector3.zero; + this._buttomText.transform.localScale = Vector3.one; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(this._buttomText); + IXUILabel ixuilabel = this._buttomText.transform.Find("TutorialText").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._cmd.buttomtext); + IXUITweenTool ixuitweenTool = this._buttomText.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + } + } + + protected void publicModule() + { + bool flag = this._cmd.audio != null; + if (flag) + { + this.SetAudio(this._cmd.audio); + } + bool flag2 = this._cmd.scroll != null; + if (flag2) + { + this.SetScroll(this._cmd.scroll, this._cmd.scrollPos); + } + bool flag3 = this._cmd.function != null; + if (flag3) + { + this.DoFunction(this._cmd.function); + } + } + + private void SetAudio(string path) + { + XSingleton.singleton.StopSoundForCutscene(); + XSingleton.singleton.PlayUISound(path, true, AudioChannel.Motion); + } + + private void SetScroll(string scroll, int pos) + { + bool flag = scroll == "Activity"; + if (flag) + { + XActivityDocument specificDocument = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + specificDocument.SetScrollView(pos); + } + } + + private void DoFunction(string function) + { + bool flag = function == "showsprite"; + if (flag) + { + bool flag2 = this._cmd.functionparam1 == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TutorialId:", + this._cmd.TutorialID, + " Error\ntag:", + this._cmd.tag, + " Command:tasktop Param Num Error" + }), null, null, null, null, null); + } + DlgBase.singleton.ShowDetail(uint.Parse(this._cmd.functionparam1), 0u, false); + } + bool flag3 = function == "refreshtitle"; + if (flag3) + { + XTitleDocument specificDocument = XDocuments.GetSpecificDocument(XTitleDocument.uuID); + specificDocument.RefreshTitleLevelUp(); + } + bool flag4 = function == "tasktop"; + if (flag4) + { + bool flag5 = this._cmd.functionparam1 == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TutorialId:", + this._cmd.TutorialID, + " Error\ntag:", + this._cmd.tag, + " Command:tasktop Param Num Error" + }), null, null, null, null, null); + } + XTaskDocument specificDocument2 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + specificDocument2.SetHighestPriorityTask(uint.Parse(this._cmd.functionparam1)); + } + } + + protected void DestroyAilin() + { + bool flag = this._ailin != null; + if (flag) + { + IXUITweenTool ixuitweenTool = this._ailin.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.RegisterOnFinishEventHandler(null); + XResourceLoaderMgr.SafeDestroy(ref this._ailin, false); + } + } + + protected void DestroyOverlay() + { + bool flag = XBaseCommand._Overlay != null; + if (flag) + { + bool flag2 = !this._cmd.isCanDestroyOverlay; + if (flag2) + { + XSingleton.singleton.AddGreenLog("Overlay No Close", null, null, null, null, null); + } + else + { + IXUISprite ixuisprite = XBaseCommand._Overlay.transform.Find("Left").GetComponent("XUISprite") as IXUISprite; + bool flag3 = ixuisprite != null; + if (flag3) + { + ixuisprite.RegisterSpriteClickEventHandler(null); + } + XResourceLoaderMgr.SafeDestroy(ref XBaseCommand._Overlay, false); + } + } + } + + protected void DestroyButtomText() + { + XResourceLoaderMgr.SafeDestroy(ref this._buttomText, false); + } + + protected void DestroyText() + { + XResourceLoaderMgr.SafeDestroy(ref this._text, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBaseCommand.cs.meta b/Client/Assets/Scripts/XMainClient/XBaseCommand.cs.meta new file mode 100644 index 00000000..e74afe7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBaseCommand.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 39890a9df3cb090479ef4df0e508e6dd +timeCreated: 1611403592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs b/Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs new file mode 100644 index 00000000..a4f310dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XBaseRankInfo + { + public uint rank; + + public ulong id; + + public string name; + + public string formatname; + + public ulong value; + + public uint guildicon; + + public string guildname; + + public StartUpType startType; + + public List setid = new List(); + + public virtual void ProcessData(RankData data) + { + } + + public static string GetUnderLineName(string s) + { + return XSingleton.singleton.StringCombine("[u]", s, "[-]"); + } + + public virtual string GetValue() + { + return this.value.ToString(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs.meta new file mode 100644 index 00000000..df67a169 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBaseRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2fd481819cd89cf4c97ecfe14df4533f +timeCreated: 1611403519 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBaseRankList.cs b/Client/Assets/Scripts/XMainClient/XBaseRankList.cs new file mode 100644 index 00000000..0744d13b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBaseRankList.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class XBaseRankList + { + public RankeType KKSGType + { + get + { + return XBaseRankList.GetKKSGType(this.type); + } + } + + public List rankList = new List(); + + public XBaseRankInfo myRankInfo; + + public uint upperBound = 1000u; + + public uint timeStamp = 0u; + + public XRankType type = XRankType.PPTRank; + + public virtual XBaseRankInfo CreateNewInfo() + { + return new XBaseRankInfo(); + } + + public virtual XBaseRankInfo GetLatestMyRankInfo() + { + return this.myRankInfo; + } + + public static RankeType GetKKSGType(XRankType type) + { + switch (type) + { + case XRankType.PPTRank: + return RankeType.PowerPointRank; + case XRankType.LevelRank: + return RankeType.LevelRank; + case XRankType.WorldBossGuildRank: + return RankeType.WorldBossGuildRank; + case XRankType.WorldBossGuildRoleRank: + return RankeType.WorldBossGuildRoleRank; + case XRankType.WorldBossDamageRank: + return RankeType.WorldBossDamageRank; + case XRankType.GuildBossRank: + return RankeType.GuildBossRank; + case XRankType.FashionRank: + return RankeType.FashionPowerPointRank; + case XRankType.TeamTowerRank: + return RankeType.TowerRank; + case XRankType.FlowerTodayRank: + return RankeType.FlowerRank; + case XRankType.FlowerYesterdayRank: + return RankeType.FlowerYesterdayRank; + case XRankType.FlowerHistoryRank: + return RankeType.FlowerTotalRank; + case XRankType.FlowerWeekRank: + return RankeType.FlowerThisWeekRank; + case XRankType.FlowerActivityRank: + return RankeType.FlowerActivityRank; + case XRankType.PetRank: + return RankeType.PetPowerPointRank; + case XRankType.BigMeleeRank: + return RankeType.BigMeleeRank; + case XRankType.SkyArenaRank: + return RankeType.SkyCityRank; + case XRankType.ChickenDinnerRank: + return RankeType.SurviveRank; + case XRankType.CampDuelRankLeft: + return RankeType.CampDuelRank1; + case XRankType.CampDuelRankRight: + return RankeType.CampDuelRank2; + case XRankType.SpriteRank: + return RankeType.SpritePowerPointRank; + case XRankType.QualifyingRank: + return RankeType.PkRealTimeRank; + case XRankType.LeagueTeamRank: + return RankeType.LeagueTeamRank; + case XRankType.LastWeek_PKRank: + return RankeType.LastWeek_PkRank; + case XRankType.LastWeek_NestWeekRank: + return RankeType.LastWeek_NestWeekRank; + case XRankType.LastWeek_HeroBattleRank: + return RankeType.LastWeek_HeroBattleRank; + case XRankType.LastWeek_LeagueTeamRank: + return RankeType.LastWeek_LeagueTeamRank; + } + return RankeType.PowerPointRank; + } + + public static XRankType GetXType(RankeType type) + { + switch (type) + { + case RankeType.WorldBossGuildRank: + return XRankType.WorldBossGuildRank; + case RankeType.WorldBossDamageRank: + return XRankType.WorldBossDamageRank; + case RankeType.PowerPointRank: + return XRankType.PPTRank; + case RankeType.LevelRank: + return XRankType.LevelRank; + case RankeType.FlowerRank: + return XRankType.FlowerTodayRank; + case RankeType.GuildBossRank: + return XRankType.GuildBossRank; + case RankeType.PkRealTimeRank: + return XRankType.QualifyingRank; + case RankeType.FashionPowerPointRank: + return XRankType.FashionRank; + case RankeType.TowerRank: + return XRankType.TeamTowerRank; + case RankeType.FlowerYesterdayRank: + return XRankType.FlowerYesterdayRank; + case RankeType.FlowerTotalRank: + return XRankType.FlowerHistoryRank; + case RankeType.SpritePowerPointRank: + return XRankType.SpriteRank; + case RankeType.PetPowerPointRank: + return XRankType.PetRank; + case RankeType.FlowerThisWeekRank: + return XRankType.FlowerWeekRank; + case RankeType.LeagueTeamRank: + return XRankType.LeagueTeamRank; + case RankeType.LastWeek_PkRank: + return XRankType.LastWeek_PKRank; + case RankeType.LastWeek_NestWeekRank: + return XRankType.LastWeek_NestWeekRank; + case RankeType.LastWeek_HeroBattleRank: + return XRankType.LastWeek_HeroBattleRank; + case RankeType.LastWeek_LeagueTeamRank: + return XRankType.LastWeek_LeagueTeamRank; + case RankeType.FlowerActivityRank: + return XRankType.FlowerActivityRank; + case RankeType.BigMeleeRank: + return XRankType.BigMeleeRank; + case RankeType.SurviveRank: + return XRankType.ChickenDinnerRank; + case RankeType.SkyCityRank: + return XRankType.SkyArenaRank; + case RankeType.WorldBossGuildRoleRank: + return XRankType.WorldBossGuildRoleRank; + case RankeType.RiftRank: + return XRankType.RiftRank; + case RankeType.CampDuelRank1: + return XRankType.CampDuelRankLeft; + case RankeType.CampDuelRank2: + return XRankType.CampDuelRankRight; + } + return XRankType.InValid; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBaseRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XBaseRankList.cs.meta new file mode 100644 index 00000000..4730aa94 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBaseRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 48c057fc8ed246d4186591841af06671 +timeCreated: 1611403659 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBattleCaptainPVPDocument.cs b/Client/Assets/Scripts/XMainClient/XBattleCaptainPVPDocument.cs new file mode 100644 index 00000000..9078230e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleCaptainPVPDocument.cs @@ -0,0 +1,1064 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBattleCaptainPVPDocument : XDocComponent + { + public override uint ID + { + get + { + return XBattleCaptainPVPDocument.uuID; + } + } + + public BattleCaptainPVPHandler Handler + { + get + { + return this._handler; + } + set + { + this._handler = value; + } + } + + public XCaptainPVPDocument CaptainDoc + { + get + { + bool flag = this._capDoc == null; + if (flag) + { + this._capDoc = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + } + return this._capDoc; + } + } + + public bool InCaptainPVPTeam + { + get + { + return this.TeamBlood != null && this.TeamBlood.Count != 0; + } + } + + public ulong myId + { + get + { + return XSingleton.singleton.XPlayerData.RoleID; + } + } + + public static int InfoDelayTime + { + get + { + return XSingleton.singleton.GetInt("PVPInfoDelayTime"); + } + } + + public static int ReviveTime + { + get + { + return XSingleton.singleton.GetInt("PVPDieReviveTime"); + } + } + + public static int EndTime + { + get + { + return XSingleton.singleton.GetInt("PVPTimeDown"); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("BattleCaptainPVPDocument"); + + public static readonly uint CONTINUOUS_KILL = 5u; + + public static readonly uint GAME_INFO = 3u; + + private BattleCaptainPVPHandler _handler = null; + + private XCaptainPVPDocument _capDoc = null; + + public List RankList = new List(); + + public List TeamBlood = new List(); + + private int num; + + public int myTeam; + + public int spectateInitTeam; + + public int spectateNowTeam; + + public ulong groupLeader1; + + public ulong groupLeader2; + + public string KillLeader; + + public string DeadLeader; + + private float lastShowInfoTime; + + private float lastKillTime; + + private float lastDeadTime; + + private float lastEndTime; + + private XBetterDictionary userIdToRole = new XBetterDictionary(0); + + public Queue qInfo = new Queue(); + + public int ShowConKillcnt = 0; + + private bool isChange = false; + + public bool isDead = false; + + public bool isEnd = false; + + private bool isEndAll = false; + + public bool playedBigResult = false; + + private XFx _ScaleFx1 = null; + + private XFx _ScaleFx2 = null; + + public string red = "[ef2717]"; + + public string blue = "[21b2ff]"; + + public static int ConKillIconDis = 130; + + public static int ConKillIconShowTime = 3; + + public struct KillInfo + { + public string KillName; + + public string DeadName; + + public bool IsDoodad; + } + + public struct RoleData + { + public ulong roleID; + + public int group; + + public uint Level; + + public string Name; + + public uint Profession; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag) + { + this.Handler.SetVisible(true); + this._ScaleFx1 = XSingleton.singleton.CreateFx("Effects/FX_Particle/Roles/Lzg_Ty/Ty_bhdz", null, true); + this._ScaleFx2 = XSingleton.singleton.CreateFx("Effects/FX_Particle/Roles/Lzg_Ty/Ty_bhdz", null, true); + this.ReqBattleCaptainPVPRefreshInfo(true); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + this.spectateInitTeam = 0; + this.spectateNowTeam = 0; + } + else + { + DlgBase.singleton.TeamMonitor.TeamInfoChangeOnSpectate(this.TeamBlood); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag2 = !specificDocument.bInTeam; + if (flag2) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_Activity_CaptainPVP, EXStage.Hall); + } + } + } + } + + public override void OnLeaveScene() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag) + { + bool flag2 = this._ScaleFx1 != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._ScaleFx1, true); + this._ScaleFx1 = null; + } + bool flag3 = this._ScaleFx2 != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._ScaleFx2, true); + this._ScaleFx2 = null; + } + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_OnRevived, new XComponent.XEventHandler(this.OnPlayerReviveEvent)); + } + + public bool OnPlayerReviveEvent(XEventArgs args) + { + bool flag = this.Handler == null; + bool result; + if (flag) + { + result = false; + } + else + { + XOnRevivedArgs xonRevivedArgs = args as XOnRevivedArgs; + bool flag2 = !xonRevivedArgs.entity.IsPlayer; + if (flag2) + { + result = false; + } + else + { + this.Handler.m_Relive.gameObject.SetActive(false); + XSingleton.singleton.AddGreenLog("PlayerRevive", null, null, null, null, null); + result = true; + } + } + return result; + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.Handler == null || XSingleton.singleton.SceneType != SceneType.SCENE_PVP; + if (!flag) + { + this.Handler.RefreshLeaderHp(); + bool flag2 = Time.time > this.lastShowInfoTime + (float)XBattleCaptainPVPDocument.InfoDelayTime; + if (flag2) + { + while (this.qInfo.Count != 0) + { + this.qInfo.Clear(); + this.isChange = true; + } + } + bool flag3 = Time.time > this.lastKillTime + (float)XBattleCaptainPVPDocument.ConKillIconShowTime; + if (flag3) + { + bool flag4 = this.ShowConKillcnt != 0; + if (flag4) + { + this.ShowConKillcnt = 0; + this.isChange = true; + } + } + bool flag5 = Time.time > this.lastDeadTime + (float)XBattleCaptainPVPDocument.ReviveTime; + if (flag5) + { + bool flag6 = this.isDead; + if (flag6) + { + this.isDead = false; + this.Handler.ShowReviveTime(this.lastDeadTime + (float)XBattleCaptainPVPDocument.ReviveTime - Time.time, true); + } + } + bool flag7 = Time.time > this.lastEndTime + (float)XBattleCaptainPVPDocument.EndTime - 0.3f; + if (flag7) + { + bool flag8 = this.isEnd; + if (flag8) + { + this.isEnd = false; + this.Handler.ShowEndTime(this.lastEndTime + (float)XBattleCaptainPVPDocument.EndTime - Time.time, true, this.isEndAll); + } + } + bool flag9 = this.isEnd; + if (flag9) + { + this.Handler.ShowEndTime(this.lastEndTime + (float)XBattleCaptainPVPDocument.EndTime - Time.time, false, this.isEndAll); + } + bool flag10 = this.isDead; + if (flag10) + { + this.Handler.ShowReviveTime(this.lastDeadTime + (float)XBattleCaptainPVPDocument.ReviveTime - Time.time, false); + } + bool flag11 = this.isChange; + if (flag11) + { + this.Handler.ShowGameInfo(); + this.Handler.ShowConKill(this.ShowConKillcnt); + this.isChange = false; + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag) + { + this.ReqBattleCaptainPVPRefreshInfo(true); + } + } + + public void ReqBattleCaptainPVPRefreshInfo(bool bNoShowLog) + { + RpcC2G_PvpNowAllData rpcC2G_PvpNowAllData = new RpcC2G_PvpNowAllData(); + rpcC2G_PvpNowAllData.oArg.bNoShowLog = bNoShowLog; + XSingleton.singleton.Send(rpcC2G_PvpNowAllData); + } + + public void SetReqBattleCaptainPVPRefreshInfo(roArg oArg, PvpNowGameData oRes) + { + bool flag = this.Handler == null || oRes.isAllEnd; + if (!flag) + { + this.Handler.StartAutoRefresh(null); + List nowUnitdData = oRes.nowUnitdData; + this.num = nowUnitdData.Count; + this.userIdToRole.Clear(); + for (int i = 0; i < this.num; i++) + { + XBattleCaptainPVPDocument.RoleData value; + value.roleID = nowUnitdData[i].roleID; + value.group = nowUnitdData[i].groupid; + value.Level = nowUnitdData[i].roleLevel; + value.Name = nowUnitdData[i].roleName; + value.Profession = nowUnitdData[i].roleProfession; + this.userIdToRole.Add(nowUnitdData[i].roleID, value); + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + bool flag3 = this.myId == nowUnitdData[i].roleID; + if (flag3) + { + this.myTeam = nowUnitdData[i].groupid; + } + } + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + bool flag5 = this.spectateInitTeam == 0; + if (flag5) + { + bool flag6 = XSingleton.singleton.Player.WatchTo == null; + if (flag6) + { + XSingleton.singleton.AddErrorLog("WatchTo is Null", null, null, null, null, null); + return; + } + this.SpectateTeamChange(XSingleton.singleton.Player.WatchTo.ID); + } + } + bool flag7 = this.GetInitTeam() == 0; + if (flag7) + { + XSingleton.singleton.AddErrorLog("No Team", null, null, null, null, null); + } + bool flag8 = DlgBase.singleton.IsLoaded(); + if (flag8) + { + this.TeamBlood.Clear(); + for (int j = 0; j < this.num; j++) + { + bool flag9 = this.myTeam != nowUnitdData[j].groupid; + if (!flag9) + { + XTeamBloodUIData xteamBloodUIData = new XTeamBloodUIData(); + xteamBloodUIData.uid = nowUnitdData[j].roleID; + xteamBloodUIData.entityID = nowUnitdData[j].roleID; + xteamBloodUIData.level = nowUnitdData[j].roleLevel; + xteamBloodUIData.name = nowUnitdData[j].roleName; + xteamBloodUIData.profession = (RoleType)nowUnitdData[j].roleProfession; + xteamBloodUIData.bIsLeader = false; + this.TeamBlood.Add(xteamBloodUIData); + } + } + DlgBase.singleton.TeamMonitor.TeamInfoChangeOnSpectate(this.TeamBlood); + } + this.RankList.Clear(); + int k = 0; + while (k < this.num) + { + bool flag10 = DlgBase.singleton.IsLoaded(); + if (!flag10) + { + goto IL_2F9; + } + bool flag11 = this.myTeam != nowUnitdData[k].groupid; + if (!flag11) + { + goto IL_2F9; + } + IL_35F: + k++; + continue; + IL_2F9: + XCaptainPVPInfo xcaptainPVPInfo = new XCaptainPVPInfo(); + xcaptainPVPInfo.name = nowUnitdData[k].roleName; + xcaptainPVPInfo.kill = nowUnitdData[k].killCount; + xcaptainPVPInfo.dead = nowUnitdData[k].dieCount; + xcaptainPVPInfo.id = nowUnitdData[k].roleID; + this.RankList.Add(xcaptainPVPInfo); + goto IL_35F; + } + XSceneDamageRankDocument specificDocument = XDocuments.GetSpecificDocument(XSceneDamageRankDocument.uuID); + specificDocument.OnGetRank(this.RankList); + bool flag12 = this.GetInitTeam() == 1; + if (flag12) + { + this.Handler.m_Blue.SetText(oRes.group1WinCount.ToString()); + this.Handler.m_Red.SetText(oRes.group2WinCount.ToString()); + } + else + { + bool flag13 = this.GetInitTeam() == 2; + if (flag13) + { + this.Handler.m_Blue.SetText(oRes.group2WinCount.ToString()); + this.Handler.m_Red.SetText(oRes.group1WinCount.ToString()); + } + } + bool flag14 = DlgBase.singleton.IsLoaded() && oRes.LeftTime > 0u; + if (flag14) + { + DlgBase.singleton.SetLeftTime(oRes.LeftTime, -1); + } + bool flag15 = DlgBase.singleton.IsLoaded() && oRes.LeftTime > 0u; + if (flag15) + { + DlgBase.singleton.SetLeftTime(oRes.LeftTime); + } + this.ClearPosition(); + this.RefreshLeader(oRes.group1Leader, oRes.group2Leader); + } + } + + private void RefreshLeader(ulong Leader1, ulong Leader2) + { + bool active = false; + this.groupLeader1 = Leader1; + this.groupLeader2 = Leader2; + bool flag = this.groupLeader1 == 0UL && this.groupLeader2 == 0UL; + if (!flag) + { + ulong num = this.MyPosition(true); + ulong redLeader = (num == this.groupLeader1) ? this.groupLeader2 : this.groupLeader1; + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + this.ChangePosition(this.TeamBlood, num); + active = (num == this.myId); + this.Handler.ShowLeaderHpName(num, redLeader); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag4 = this.MyPosition(false) == this.groupLeader1; + if (flag4) + { + this.ChangePosition(specificDocument.LeftTeamMonitorData, this.groupLeader1); + this.ChangePosition(specificDocument.RightTeamMonitorData, this.groupLeader2); + this.Handler.ShowLeaderHpName(this.groupLeader1, this.groupLeader2); + } + else + { + bool flag5 = this.MyPosition(false) == this.groupLeader2; + if (flag5) + { + this.ChangePosition(specificDocument.LeftTeamMonitorData, this.groupLeader2); + this.ChangePosition(specificDocument.RightTeamMonitorData, this.groupLeader1); + this.Handler.ShowLeaderHpName(this.groupLeader2, this.groupLeader1); + } + } + } + XBattleCaptainPVPDocument.RoleData roleInfo = this.GetRoleInfo(num); + bool flag6 = roleInfo.roleID == 0UL; + if (flag6) + { + this.Handler.m_Leader.SetText(""); + } + else + { + this.Handler.m_Leader.SetText(roleInfo.Name); + } + bool flag7 = DlgBase.singleton.IsLoaded(); + if (flag7) + { + DlgBase.singleton.TeamMonitor.OnTeamInfoChanged(); + DlgBase.singleton.uiBehaviour.m_TeamLeader.SetActive(active); + DlgBase.singleton.IndicateHandler.ClearTeamIndicate(); + } + bool flag8 = DlgBase.singleton.IsLoaded(); + if (flag8) + { + DlgBase.singleton.SpectateTeamMonitor.OnTeamInfoChanged(); + } + bool flag9 = this.GetInitTeam() == 1; + if (flag9) + { + bool flag10 = DlgBase.singleton.IsLoaded(); + if (flag10) + { + XBattleDocument.SetMiniMapElement(this.groupLeader1, "smap_10", 20, 16); + XBattleDocument.SetMiniMapElement(this.groupLeader2, "smap_11", 20, 16); + } + bool flag11 = DlgBase.singleton.IsLoaded(); + if (flag11) + { + XSpectateSceneDocument.SetMiniMapElement(this.groupLeader1, "smap_10", 20, 16); + XSpectateSceneDocument.SetMiniMapElement(this.groupLeader2, "smap_11", 20, 16); + } + } + bool flag12 = this.GetInitTeam() == 2; + if (flag12) + { + bool flag13 = DlgBase.singleton.IsLoaded(); + if (flag13) + { + XBattleDocument.SetMiniMapElement(this.groupLeader2, "smap_10", 20, 16); + XBattleDocument.SetMiniMapElement(this.groupLeader1, "smap_11", 20, 16); + } + bool flag14 = DlgBase.singleton.IsLoaded(); + if (flag14) + { + XSpectateSceneDocument.SetMiniMapElement(this.groupLeader2, "smap_10", 20, 16); + XSpectateSceneDocument.SetMiniMapElement(this.groupLeader1, "smap_11", 20, 16); + } + } + this.FxPlay(); + } + } + + private void ClearPosition() + { + bool flag = this.groupLeader1 == 0UL && this.groupLeader2 == 0UL; + if (!flag) + { + bool flag2 = this._ScaleFx1 != null; + if (flag2) + { + this._ScaleFx1.Stop(); + } + bool flag3 = this._ScaleFx2 != null; + if (flag3) + { + this._ScaleFx2.Stop(); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + XBattleDocument.ResetMiniMapElement(this.groupLeader1); + XBattleDocument.ResetMiniMapElement(this.groupLeader2); + this.ChangePosition(this.TeamBlood, 0UL); + DlgBase.singleton.TeamMonitor.OnTeamInfoChanged(); + DlgBase.singleton.uiBehaviour.m_TeamLeader.SetActive(false); + } + bool flag5 = DlgBase.singleton.IsLoaded(); + if (flag5) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + XSpectateSceneDocument.ResetMiniMapElement(this.groupLeader1); + XSpectateSceneDocument.ResetMiniMapElement(this.groupLeader2); + this.ChangePosition(specificDocument.LeftTeamMonitorData, 0UL); + this.ChangePosition(specificDocument.RightTeamMonitorData, 0UL); + DlgBase.singleton.SpectateTeamMonitor.OnTeamInfoChanged(); + } + this.groupLeader1 = 0UL; + this.groupLeader2 = 0UL; + } + } + + public void SetBattleBegin(PtcG2C_PvpBattleBeginNtf roPtc) + { + XSingleton.singleton.AddLog("SetBattleBegin", Time.time.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = this.Handler != null; + if (flag) + { + this.Handler.ShowStart(); + } + this.ClearPosition(); + this.RefreshLeader(roPtc.Data.group1Leader, roPtc.Data.group2Leader); + } + + public void SetBattleEnd(PtcG2C_PvpBattleEndNtf roPtc) + { + XSingleton.singleton.AddLog("SetBattleEnd ", Time.time.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = this.Handler == null; + if (!flag) + { + this.Handler.RefreshLeaderHp(); + this.isEndAll = roPtc.Data.isAllEnd; + this.isEnd = true; + this.Handler.m_Relive.gameObject.SetActive(false); + this.ShowConKillcnt = 0; + this.isChange = true; + bool flag2 = roPtc.Data.wingroup == 3; + if (!flag2) + { + bool flag3 = roPtc.Data.wingroup == this.GetInitTeam(); + if (flag3) + { + this.Handler.ShowSorce(true); + } + else + { + this.Handler.ShowSorce(false); + } + } + this.PlaySmallResult(roPtc); + } + } + + public void PlaySmallResult(PtcG2C_PvpBattleEndNtf roPtc) + { + this.lastEndTime = Time.time; + this.Handler.m_End.PlayTween(true, -1f); + this.Handler.m_EndIcon.gameObject.SetActive(false); + this.Handler.m_Draw.SetActive(false); + this.Handler.m_Win.SetActive(false); + this.Handler.m_Lose.SetActive(false); + bool flag = roPtc.Data.wingroup == 3; + if (flag) + { + this.Handler.m_Draw.SetActive(true); + } + else + { + bool flag2 = roPtc.Data.wingroup == this.GetNowTeam(); + if (flag2) + { + this.Handler.m_Win.SetActive(true); + } + else + { + this.Handler.m_Lose.SetActive(true); + } + } + bool flag3 = PVP_ONEGAMEEND_REASON.PVP_OGE_TIMELIMIT == roPtc.Data.reason; + if (flag3) + { + bool flag4 = roPtc.Data.wingroup == 3; + if (flag4) + { + this.Handler.m_EndText.SetText(XStringDefineProxy.GetString("CAPTAIN_DRAW")); + } + else + { + bool flag5 = roPtc.Data.wingroup == this.GetNowTeam(); + if (flag5) + { + this.Handler.m_EndText.SetText(XStringDefineProxy.GetString("CAPTAIN_WIN_OVERTIME")); + } + else + { + this.Handler.m_EndText.SetText(XStringDefineProxy.GetString("CAPTAIN_LOSE_OVERTIME")); + } + } + } + else + { + bool flag6 = roPtc.Data.wingroup == 3; + if (flag6) + { + this.Handler.m_EndText.SetText(XStringDefineProxy.GetString("CAPTAIN_DRAW")); + } + else + { + bool flag7 = roPtc.Data.wingroup == this.GetNowTeam(); + if (flag7) + { + string @string = XStringDefineProxy.GetString("CAPTAIN_WIN"); + bool flag8 = string.IsNullOrEmpty(this.DeadLeader) || string.IsNullOrEmpty(this.KillLeader); + if (flag8) + { + this.Handler.m_EndText.SetText(""); + } + else + { + this.Handler.m_EndText.SetText(string.Format(XStringDefineProxy.GetString("CAPTAIN_WIN"), this.DeadLeader, this.KillLeader)); + } + this.DeadLeader = null; + this.KillLeader = null; + } + else + { + this.Handler.m_EndText.SetText(XStringDefineProxy.GetString("CAPTAIN_LOSE")); + } + } + } + } + + public void PlayBigResult() + { + bool flag = this.playedBigResult; + if (!flag) + { + this.isEnd = true; + this.playedBigResult = true; + this.lastEndTime = Time.time; + this.Handler.m_End.PlayTween(true, -1f); + this.Handler.m_EndIcon.gameObject.SetActive(false); + this.Handler.m_Draw.SetActive(false); + this.Handler.m_Win.SetActive(false); + this.Handler.m_Lose.SetActive(false); + string format = "atlas/UI/Battle/{0}"; + this.Handler.m_EndIcon.gameObject.SetActive(true); + int res = this.GetRes(); + bool flag2 = res == 0; + if (flag2) + { + this.Handler.picPath = string.Format(format, "draw"); + this.Handler.m_EndIcon.SetTexturePath(this.Handler.picPath); + } + else + { + bool flag3 = res > 0; + if (flag3) + { + this.Handler.picPath = string.Format(format, "victery"); + this.Handler.m_EndIcon.SetTexturePath(this.Handler.picPath); + this.Handler.PlayAudio(6); + } + else + { + bool flag4 = res < 0; + if (flag4) + { + this.Handler.picPath = string.Format(format, "failure"); + this.Handler.m_EndIcon.SetTexturePath(this.Handler.picPath); + this.Handler.PlayAudio(7); + } + } + } + } + } + + public void SetBattleKill(PtcG2C_PvpBattleKill roPtc) + { + bool flag = this.Handler == null; + if (!flag) + { + ulong killID = roPtc.Data.killID; + ulong deadID = roPtc.Data.deadID; + XBattleCaptainPVPDocument.RoleData roleInfo = this.GetRoleInfo(killID); + XBattleCaptainPVPDocument.RoleData roleInfo2 = this.GetRoleInfo(deadID); + bool flag2 = roleInfo.roleID == 0UL || roleInfo2.roleID == 0UL; + if (!flag2) + { + bool flag3 = this.GetInitTeam() == roleInfo.group; + string text; + string text2; + if (flag3) + { + text = this.blue; + text2 = this.red; + } + else + { + text = this.red; + text2 = this.blue; + } + text += roleInfo.Name; + text2 += roleInfo2.Name; + this.AddGameInfo(text, text2, false); + bool flag4 = this.myId == killID; + if (flag4) + { + this.ShowConKillcnt = roPtc.Data.contiKillCount; + XSingleton.singleton.AddLog("ConKillcnt:" + this.ShowConKillcnt.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + this.lastKillTime = Time.time; + XSingleton.singleton.PlayUISound("Audio/UI/pVP_kill", true, AudioChannel.Action); + } + bool flag5 = this.myId == deadID; + if (flag5) + { + this.isDead = true; + this.lastDeadTime = Time.time; + bool flag6 = this.Handler != null; + if (flag6) + { + this.Handler.m_Relive.PlayTween(true, -1f); + } + } + bool flag7 = this.groupLeader1 == deadID || this.groupLeader2 == deadID; + if (flag7) + { + this.KillLeader = text; + this.DeadLeader = text2; + } + this.isChange = true; + for (int i = 0; i < this.RankList.Count; i++) + { + bool flag8 = killID == this.RankList[i].id; + if (flag8) + { + bool flag9 = deadID == this.groupLeader1 || deadID == this.groupLeader2; + if (flag9) + { + this.RankList[i].kill += XSingleton.singleton.GetInt("PVPLeaderKillCount"); + } + else + { + this.RankList[i].kill++; + } + } + bool flag10 = deadID == this.RankList[i].id; + if (flag10) + { + this.RankList[i].dead++; + } + } + XSceneDamageRankDocument specificDocument = XDocuments.GetSpecificDocument(XSceneDamageRankDocument.uuID); + specificDocument.OnGetRank(this.RankList); + } + } + } + + public void AddGameInfo(ulong roleID, uint doodadID) + { + XBattleCaptainPVPDocument.RoleData roleInfo = this.GetRoleInfo(roleID); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)doodadID, 1); + string text = string.Empty; + bool flag = buffData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("CaptainPVP: Buff data not found: [{0} {1}]", doodadID, 1), null, null, null, null, null); + } + else + { + text = buffData.BuffName; + } + bool flag2 = this.GetInitTeam() == roleInfo.group; + string infoLeft; + if (flag2) + { + infoLeft = string.Format("{0}{1}", this.blue, roleInfo.Name); + } + else + { + infoLeft = string.Format("{0}{1}", this.red, roleInfo.Name); + } + StringBuilder stringBuilder = new StringBuilder(); + bool flag3 = false; + for (int i = 0; i < text.Length; i++) + { + bool flag4 = text[i] == '['; + if (flag4) + { + flag3 = true; + } + bool flag5 = text[i] == ')'; + if (flag5) + { + flag3 = false; + } + bool flag6 = flag3; + if (flag6) + { + stringBuilder.Append(text[i]); + } + bool flag7 = text[i] == '('; + if (flag7) + { + flag3 = true; + } + bool flag8 = text[i] == ']'; + if (flag8) + { + flag3 = false; + } + } + this.AddGameInfo(infoLeft, stringBuilder.ToString(), true); + } + + public void AddGameInfo(string infoLeft, string infoRight, bool IsDoodad = false) + { + this.lastShowInfoTime = Time.time; + XBattleCaptainPVPDocument.KillInfo item; + item.KillName = infoLeft; + item.DeadName = infoRight; + item.IsDoodad = IsDoodad; + this.qInfo.Enqueue(item); + bool flag = (long)this.qInfo.Count > (long)((ulong)XBattleCaptainPVPDocument.GAME_INFO); + if (flag) + { + this.qInfo.Dequeue(); + } + bool flag2 = this.Handler != null; + if (flag2) + { + this.Handler.ShowGameInfo(); + } + } + + private void FxPlay() + { + XEntity entity = XSingleton.singleton.GetEntity(this.groupLeader1); + bool flag = entity != null && this._ScaleFx1 != null; + if (flag) + { + this._ScaleFx1.Play(entity.EngineObject, Vector3.zero, entity.Height / entity.Scale * Vector3.one, 1f, true, false, "", 0f); + } + XEntity entity2 = XSingleton.singleton.GetEntity(this.groupLeader2); + bool flag2 = entity2 != null && this._ScaleFx2 != null; + if (flag2) + { + this._ScaleFx2.Play(entity2.EngineObject, Vector3.zero, entity2.Height / entity2.Scale * Vector3.one, 1f, true, false, "", 0f); + } + } + + public void SpectateTeamChange(ulong roleID) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = this.userIdToRole != null && this.userIdToRole.size > 0; + if (flag2) + { + this.spectateInitTeam = this.GetRoleInfo(roleID).group; + this.spectateNowTeam = this.spectateInitTeam; + } + else + { + XSingleton.singleton.AddErrorLog("userIdToRole Is Null", null, null, null, null, null); + } + } + } + + public XBattleCaptainPVPDocument.RoleData GetRoleInfo(ulong roleId) + { + XBattleCaptainPVPDocument.RoleData result; + bool flag = !this.userIdToRole.TryGetValue(roleId, out result); + if (flag) + { + XSingleton.singleton.AddErrorLog("No Find roleId! roleId:" + roleId, null, null, null, null, null); + for (int i = 0; i < this.userIdToRole.size; i++) + { + XSingleton.singleton.AddGreenLog("RoleId:" + this.userIdToRole.BufferKeys[i], null, null, null, null, null); + } + } + return result; + } + + public void ChangePosition(List team, ulong leaderId) + { + for (int i = 0; i < team.Count; i++) + { + team[i].bIsLeader = (leaderId == team[i].uid); + } + } + + public ulong MyPosition(bool isNowTeam) + { + if (isNowTeam) + { + bool flag = this.GetNowTeam() == 1; + if (flag) + { + return this.groupLeader1; + } + bool flag2 = this.GetNowTeam() == 2; + if (flag2) + { + return this.groupLeader2; + } + } + else + { + bool flag3 = this.GetInitTeam() == 1; + if (flag3) + { + return this.groupLeader1; + } + bool flag4 = this.GetInitTeam() == 2; + if (flag4) + { + return this.groupLeader2; + } + } + return 0UL; + } + + private int GetNowTeam() + { + bool flag = DlgBase.singleton.IsLoaded(); + int result; + if (flag) + { + result = this.spectateNowTeam; + } + else + { + result = this.myTeam; + } + return result; + } + + private int GetInitTeam() + { + bool flag = DlgBase.singleton.IsLoaded(); + int result; + if (flag) + { + result = this.spectateInitTeam; + } + else + { + result = this.myTeam; + } + return result; + } + + private int GetRes() + { + bool flag = DlgBase.singleton.IsLoaded() && this.spectateNowTeam == 2; + int num; + int num2; + if (flag) + { + num = int.Parse(this.Handler.m_Red.GetText()); + num2 = int.Parse(this.Handler.m_Blue.GetText()); + } + else + { + num = int.Parse(this.Handler.m_Blue.GetText()); + num2 = int.Parse(this.Handler.m_Red.GetText()); + } + return num - num2; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBattleCaptainPVPDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBattleCaptainPVPDocument.cs.meta new file mode 100644 index 00000000..db3c9fc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleCaptainPVPDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc0625ce01e9a8d43bc2976236fa30f0 +timeCreated: 1611404548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBattleDocument.cs b/Client/Assets/Scripts/XMainClient/XBattleDocument.cs new file mode 100644 index 00000000..ab6c4f89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleDocument.cs @@ -0,0 +1,858 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.Battle; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XBattleDocument.uuID; + } + } + + public BattleMain BattleMainView + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public bool ShowStrengthPresevedBar + { + get + { + return this._showStrengthPresevedBar; + } + } + + public int BindBuffID { get; set; } + + public int AbnormalBuffID { get; set; } + + public bool ShowTeamMemberDamageHUD { get; set; } + + public bool ShowMobDamageHUD { get; set; } + + public bool IsCrossServerBattle { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("BattleDocument"); + + private BattleMain _view = null; + + private bool _showStrengthPresevedBar = false; + + private XEntity _strengthPresevedEntity = null; + + private List _BattleLines = new List(); + + private static string LINEFX = "Effects/FX_Particle/Roles/Lzg_Ty/shuangren_xian"; + + private List _notice_buff = new List(); + + private List _bind_buff = new List(); + + private List _abnormal_buff = new List(); + + private ulong _charge_entity = 0UL; + + private double _charge_basic = 0.0; + + private uint _timerID = 0u; + + private int _layer_backup = 0; + + public List TeamBlood = new List(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + List intList = XSingleton.singleton.GetIntList("ShowDamageHUD"); + this.ShowTeamMemberDamageHUD = (intList.Count > 0 && intList[0] == 1); + this.ShowMobDamageHUD = (intList.Count > 1 && intList[1] == 1); + this.LoadGlobalConfig(); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + this._BattleLines.Clear(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.ProfTrialsHandler != null; + if (flag) + { + DlgBase.singleton.ProfTrialsHandler.SetGeneralTab(); + } + bool flag2 = this.TeamBlood.Count >= 1 && DlgBase.singleton.IsLoaded() && DlgBase.singleton.TeamMonitor != null; + if (flag2) + { + DlgBase.singleton.TeamMonitor.TeamInfoChangeOnSpectate(this.TeamBlood); + } + this._charge_entity = 0UL; + this._charge_basic = 0.0; + } + + public override void OnSceneStarted() + { + base.OnSceneStarted(); + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.uiBehaviour.m_PromptFrame.gameObject.SetActive(false); + } + } + + public override void OnLeaveScene() + { + XSingleton.singleton.KillTimer(this._timerID); + this.TeamBlood.Clear(); + base.OnLeaveScene(); + } + + private void LoadGlobalConfig() + { + this._bind_buff.Clear(); + string[] array = XSingleton.singleton.GetValue("BindBuffID").Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + this._bind_buff.Add(int.Parse(array[i])); + } + this._abnormal_buff.Clear(); + array = XSingleton.singleton.GetValue("AbnormalBuffID").Split(XGlobalConfig.ListSeparator); + for (int j = 0; j < array.Length; j++) + { + this._abnormal_buff.Add(int.Parse(array[j])); + } + this._notice_buff.Clear(); + array = XSingleton.singleton.GetValue("NoticeBuffID").Split(XGlobalConfig.ListSeparator); + for (int k = 0; k < array.Length; k++) + { + this._notice_buff.Add(int.Parse(array[k])); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this._view != null && this._view.IsLoaded() && this._view.IsVisible(); + if (flag) + { + this.SendCheckTime(); + this._view.SetAutoPlayUI(XSingleton.singleton.IsAutoFight); + bool sceneStarted = XSingleton.singleton.SceneStarted; + if (sceneStarted) + { + DlgBase.singleton.uiBehaviour.m_PromptFrame.gameObject.SetActive(false); + } + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ArmorRecover, new XComponent.XEventHandler(this.OnArmorRecover)); + base.RegisterEvent(XEventDefine.XEvent_ArmorBroken, new XComponent.XEventHandler(this.OnArmorBroken)); + base.RegisterEvent(XEventDefine.XEvent_WoozyOn, new XComponent.XEventHandler(this.OnWoozyOn)); + base.RegisterEvent(XEventDefine.XEvent_WoozyOff, new XComponent.XEventHandler(this.OnWoozyOff)); + base.RegisterEvent(XEventDefine.XEvent_StrengthPresevedOn, new XComponent.XEventHandler(this.OnStrengthPresevedOn)); + base.RegisterEvent(XEventDefine.XEvent_StrengthPresevedOff, new XComponent.XEventHandler(this.OnStrengthPresevedOff)); + base.RegisterEvent(XEventDefine.XEvent_ProjectDamage, new XComponent.XEventHandler(this.OnProjectDamage)); + base.RegisterEvent(XEventDefine.XEvent_BuffChange, new XComponent.XEventHandler(this.OnBuffChange)); + base.RegisterEvent(XEventDefine.XEvent_DoodadCreate, new XComponent.XEventHandler(this.OnDoodadCreate)); + base.RegisterEvent(XEventDefine.XEvent_DoodadDelete, new XComponent.XEventHandler(this.OnDoodadDelete)); + base.RegisterEvent(XEventDefine.XEvent_OnEntityCreated, new XComponent.XEventHandler(this.OnEntityCreate)); + base.RegisterEvent(XEventDefine.XEvent_OnEntityDeleted, new XComponent.XEventHandler(this.OnEntityDelete)); + base.RegisterEvent(XEventDefine.XEvent_FightGroupChanged, new XComponent.XEventHandler(this.FightGroupChange)); + base.RegisterEvent(XEventDefine.XEvent_EntityAttributeChange, new XComponent.XEventHandler(this.EntityAttributeChange)); + } + + protected bool OnProjectDamage(XEventArgs args) + { + bool flag = this._view == null || !this._view.IsVisible(); + bool result; + if (flag) + { + result = false; + } + else + { + XProjectDamageEventArgs xprojectDamageEventArgs = args as XProjectDamageEventArgs; + this._view.OnProjectDamage(xprojectDamageEventArgs.Damage, xprojectDamageEventArgs.Receiver); + result = true; + } + return result; + } + + protected bool OnArmorRecover(XEventArgs args) + { + XArmorRecoverArgs xarmorRecoverArgs = args as XArmorRecoverArgs; + XEntity self = xarmorRecoverArgs.Self; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.OnPlaySuperarmorFx(self, false); + this._view.SetupSpeedFx(self, false, Color.white); + result = true; + } + return result; + } + + protected bool OnArmorBroken(XEventArgs args) + { + XArmorBrokenArgs xarmorBrokenArgs = args as XArmorBrokenArgs; + XEntity self = xarmorBrokenArgs.Self; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.OnPlaySuperarmorFx(self, true); + this._view.SetupSpeedFx(self, false, Color.white); + result = true; + } + return result; + } + + protected bool OnWoozyOn(XEventArgs args) + { + XWoozyOnArgs xwoozyOnArgs = args as XWoozyOnArgs; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.OnStopSuperarmorFx(xwoozyOnArgs.Self); + result = true; + } + return result; + } + + protected bool OnWoozyOff(XEventArgs args) + { + XWoozyOffArgs xwoozyOffArgs = args as XWoozyOffArgs; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.OnStopSuperarmorFx(xwoozyOffArgs.Self); + result = true; + } + return result; + } + + protected bool OnStrengthPresevedOn(XEventArgs args) + { + this._showStrengthPresevedBar = true; + XStrengthPresevationOnArgs xstrengthPresevationOnArgs = args as XStrengthPresevationOnArgs; + this._strengthPresevedEntity = xstrengthPresevationOnArgs.Host; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.ShowStrengthPresevedBar(xstrengthPresevationOnArgs.Host); + result = true; + } + return result; + } + + protected bool OnStrengthPresevedOff(XEventArgs args) + { + XStrengthPresevationOffArgs xstrengthPresevationOffArgs = args as XStrengthPresevationOffArgs; + bool flag = !this._showStrengthPresevedBar; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this._strengthPresevedEntity == null; + if (flag2) + { + result = false; + } + else + { + this._showStrengthPresevedBar = false; + this._strengthPresevedEntity = null; + bool flag3 = this._view == null; + if (flag3) + { + result = false; + } + else + { + this._view.HideStrengthPresevedBar(); + this._view.StopNotice(); + result = true; + } + } + } + return result; + } + + protected bool EntityAttributeChange(XEventArgs args) + { + XEntityAttrChangeEventArgs xentityAttrChangeEventArgs = args as XEntityAttrChangeEventArgs; + XAttributeDefine attrKey = xentityAttrChangeEventArgs.AttrKey; + if (attrKey == XAttributeDefine.XAttr_CurrentEnergy_Basic) + { + this.CheckCharge(xentityAttrChangeEventArgs.Entity.ID, xentityAttrChangeEventArgs.Value); + } + return true; + } + + protected void OnBuffChange(XEntity entity) + { + bool flag = entity == null || !DlgBase.singleton.IsLoaded(); + if (!flag) + { + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + DlgBase.singleton.OnPlayerBuffChange(); + } + else + { + bool isRole = entity.IsRole; + if (isRole) + { + XBuffComponent buffs = entity.Buffs; + bool flag2 = buffs != null; + if (flag2) + { + DlgBase.singleton.TeamMonitor.OnTeamMemberBuffChange(entity.ID, buffs.GetUIBuffList()); + DlgBase.singleton.EnemyInfoHandler.OnBuffChange(entity.ID); + } + } + else + { + bool isBoss = entity.IsBoss; + if (isBoss) + { + DlgBase.singleton.EnemyInfoHandler.OnBuffChange(entity.ID); + } + } + } + } + } + + private bool OnBuffChange(XEventArgs args) + { + XBuffChangeEventArgs xbuffChangeEventArgs = args as XBuffChangeEventArgs; + this.OnBuffChange(xbuffChangeEventArgs.entity); + bool flag = xbuffChangeEventArgs.addBuff != null; + if (flag) + { + this.CheckBindQTE((int)xbuffChangeEventArgs.addBuff.buffID, xbuffChangeEventArgs.entity, true); + this.CheckAbnormalQTE((int)xbuffChangeEventArgs.addBuff.buffID, (int)xbuffChangeEventArgs.addBuff.buffLevel, xbuffChangeEventArgs.entity, true); + this.CheckMiniMapNotice((int)xbuffChangeEventArgs.addBuff.buffID, xbuffChangeEventArgs.entity, true); + } + bool flag2 = xbuffChangeEventArgs.removeBuff != null; + if (flag2) + { + this.CheckBindQTE((int)xbuffChangeEventArgs.removeBuff.buffID, xbuffChangeEventArgs.entity, false); + this.CheckAbnormalQTE((int)xbuffChangeEventArgs.removeBuff.buffID, (int)xbuffChangeEventArgs.removeBuff.buffLevel, xbuffChangeEventArgs.entity, false); + this.CheckMiniMapNotice((int)xbuffChangeEventArgs.removeBuff.buffID, xbuffChangeEventArgs.entity, false); + } + return true; + } + + private bool OnDoodadCreate(XEventArgs args) + { + XDoodadCreateArgs xdoodadCreateArgs = args as XDoodadCreateArgs; + this.MiniMapAddDoodad(xdoodadCreateArgs.doo); + return true; + } + + private bool OnDoodadDelete(XEventArgs args) + { + XDoodadDeleteArgs xdoodadDeleteArgs = args as XDoodadDeleteArgs; + this.MiniMapDelDoodad(xdoodadDeleteArgs.doo); + return true; + } + + private bool FightGroupChange(XEventArgs args) + { + XFightGroupChangedArgs xfightGroupChangedArgs = args as XFightGroupChangedArgs; + XBattleDocument.ResetMiniMapElement(xfightGroupChangedArgs.targetEntity.ID); + bool isPlayer = xfightGroupChangedArgs.targetEntity.IsPlayer; + if (isPlayer) + { + XBattleDocument.ResetMiniMapAllElement(); + } + return true; + } + + private void MiniMapAddDoodad(XLevelDoodad doo) + { + bool flag = doo.type != XDoodadType.Buff && doo.type != XDoodadType.BuffSkill; + if (!flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapBuffAdd(doo); + } + } + } + + private void MiniMapDelDoodad(XLevelDoodad doo) + { + bool flag = doo.type != XDoodadType.Buff && doo.type != XDoodadType.BuffSkill; + if (!flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapBuffDel(doo); + } + } + } + + private void CheckCharge(ulong entityID, double value) + { + bool flag = entityID != this._charge_entity && value > 0.0; + if (flag) + { + this._charge_entity = entityID; + this._charge_basic = value; + DlgBase.singleton.SetChargeValue(0f); + DlgBase.singleton.SetStatus(QteUIType.Charge, true); + } + else + { + bool flag2 = value <= 0.0; + if (flag2) + { + this._charge_entity = 0UL; + this._charge_basic = 0.0; + DlgBase.singleton.SetStatus(QteUIType.Charge, false); + } + else + { + float chargeValue = 1f - (float)(value / this._charge_basic); + DlgBase.singleton.SetChargeValue(chargeValue); + } + } + } + + private bool CheckBindQTE(int buffid, XEntity entity, bool status) + { + bool flag = this._bind_buff != null && entity != null && XSingleton.singleton.XPlayerData != null; + if (flag) + { + for (int i = 0; i < this._bind_buff.Count; i++) + { + bool flag2 = buffid == this._bind_buff[i] && entity.ID == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.BindBuffID = buffid; + DlgBase.singleton.SetStatus(QteUIType.Bind, status); + return true; + } + } + } + return false; + } + + private bool CheckAbnormalQTE(int buffid, int bufflevel, XEntity entity, bool status) + { + bool flag = this._abnormal_buff != null && entity != null && XSingleton.singleton.XPlayerData != null; + if (flag) + { + for (int i = 0; i < this._abnormal_buff.Count; i++) + { + bool flag2 = buffid == this._abnormal_buff[i] && entity.ID == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.AbnormalBuffID = buffid; + DlgBase.singleton.SetAbnormalValue((float)bufflevel / 100f); + DlgBase.singleton.SetStatus(QteUIType.Abnormal, status); + return true; + } + } + } + return false; + } + + private bool CheckMiniMapNotice(int buffid, XEntity entity, bool status) + { + bool flag = this._notice_buff != null && entity != null && DlgBase.singleton.IsLoaded(); + if (flag) + { + for (int i = 0; i < this._notice_buff.Count; i++) + { + bool flag2 = buffid == this._notice_buff[i]; + if (flag2) + { + if (status) + { + DlgBase.singleton.IndicateHandler.MiniMapNoticeAdd(entity); + } + else + { + DlgBase.singleton.IndicateHandler.MiniMapNoticeDel(entity); + } + } + } + } + return false; + } + + public void LineStateChange(ulong e1, ulong e2, bool on) + { + BattleLine battleLine = this.FindBattleLine(e1, e2); + if (on) + { + bool flag = battleLine == null; + if (flag) + { + BattleLine battleLine2 = new BattleLine(); + battleLine2.e1 = e1; + battleLine2.e2 = e2; + this._BattleLines.Add(battleLine2); + battleLine = battleLine2; + } + battleLine.xe1 = XSingleton.singleton.GetEntity(e1); + battleLine.xe2 = XSingleton.singleton.GetEntity(e2); + battleLine.fx = XSingleton.singleton.CreateFx(XBattleDocument.LINEFX, null, true); + Vector3 position = (battleLine.xe1.EngineObject.Position + battleLine.xe2.EngineObject.Position) / 2f + new Vector3(0f, battleLine.xe1.Height / 2f, 0f); + Quaternion rotation = Quaternion.FromToRotation(battleLine.xe1.EngineObject.Position - battleLine.xe2.EngineObject.Position, Vector3.right); + battleLine.fx.Play(position, rotation, Vector3.one, 1f); + } + else + { + bool flag2 = battleLine != null; + if (flag2) + { + this._BattleLines.Remove(battleLine); + XSingleton.singleton.DestroyFx(battleLine.fx, true); + } + } + } + + public void RefreshTowerSceneInfo(PtcG2C_TowerSceneInfoNtf infoNtf) + { + bool flag = this.BattleMainView.IsLoaded(); + if (flag) + { + this.BattleMainView.TeamTowerHandler.OnRefreshTowerInfo(infoNtf); + } + } + + protected BattleLine FindBattleLine(ulong e1, ulong e2) + { + for (int i = 0; i < this._BattleLines.Count; i++) + { + bool flag = (e1 == this._BattleLines[i].e1 && e2 == this._BattleLines[i].e2) || (e1 == this._BattleLines[i].e2 && e2 == this._BattleLines[i].e1); + if (flag) + { + return this._BattleLines[i]; + } + } + return null; + } + + private bool OnEntityCreate(XEventArgs args) + { + XOnEntityCreatedArgs xonEntityCreatedArgs = args as XOnEntityCreatedArgs; + this.MiniMapAdd(xonEntityCreatedArgs.entity); + return true; + } + + private bool OnEntityDelete(XEventArgs args) + { + XOnEntityDeletedArgs xonEntityDeletedArgs = args as XOnEntityDeletedArgs; + this.MiniMapDel(xonEntityDeletedArgs.Id); + bool flag = xonEntityDeletedArgs.Id == this._charge_entity; + if (flag) + { + this._charge_entity = 0UL; + this._charge_basic = 0.0; + DlgBase.singleton.SetStatus(QteUIType.Charge, false); + } + return true; + } + + public static void MiniMapSetRotation(float rotation) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.SetMiniMapRotation(rotation); + } + } + } + + private void MiniMapAdd(XEntity e) + { + bool flag = e == null || e.Attributes == null; + if (!flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + bool flag3 = DlgBase.singleton.IndicateHandler != null; + if (flag3) + { + DlgBase.singleton.IndicateHandler.MiniMapAdd(e); + } + bool isRole = e.IsRole; + if (isRole) + { + this.FakeTeamAdd(e); + } + } + } + } + + public void FakeTeamAdd(XEntity e) + { + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType == SceneType.SCENE_PKTWO || sceneType == SceneType.SCENE_CUSTOMPKTWO) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = specificDocument.bInTeam && specificDocument.MyTeam != null && specificDocument.MyTeam.members.Count == 2; + if (!flag) + { + bool flag2 = !e.IsPlayer && !XSingleton.singleton.IsAlly(e); + if (!flag2) + { + for (int i = 0; i < this.TeamBlood.Count; i++) + { + bool flag3 = this.TeamBlood[i].uid == e.Attributes.RoleID; + if (flag3) + { + return; + } + } + XTeamBloodUIData xteamBloodUIData = new XTeamBloodUIData(); + xteamBloodUIData.uid = e.Attributes.RoleID; + xteamBloodUIData.entityID = e.Attributes.RoleID; + xteamBloodUIData.level = e.Attributes.Level; + xteamBloodUIData.name = e.Attributes.Name; + xteamBloodUIData.bIsLeader = false; + xteamBloodUIData.profession = (RoleType)e.Attributes.TypeID; + this.TeamBlood.Add(xteamBloodUIData); + bool flag4 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.TeamMonitor != null; + if (flag4) + { + DlgBase.singleton.TeamMonitor.TeamInfoChangeOnSpectate(this.TeamBlood); + } + } + } + } + } + + private void MiniMapDel(ulong uid) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapDel(uid); + DlgBase.singleton.IndicateHandler.DelTeamIndicate(uid); + } + } + } + + public static void SetMiniMapElement(ulong id, string spriteName, int width, int height) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.SetMiniMapElement(id, spriteName, width, height); + } + } + } + + public static void ResetMiniMapElement(ulong id) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.ResetMiniMapElement(id); + } + } + } + + public static void ResetMiniMapAllElement() + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.ResetMiniMapAllElement(); + } + } + } + + public static void SetMiniMapSize(Vector2 size, float scale = 0f) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.SetMiniMapSize(size, scale); + } + } + } + + public static uint AddMiniMapFx(Vector3 pos, string fx) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + return DlgBase.singleton.IndicateHandler.MiniMapFxAdd(pos, fx); + } + } + return 0u; + } + + public static void DelMiniMapFx(uint token) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapFxDel(token); + } + } + } + + public static uint AddMiniMapPic(Vector3 pos, string fx) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + return DlgBase.singleton.IndicateHandler.MiniMapPicAdd(pos, fx); + } + } + return 0u; + } + + public static void DelMiniMapPic(uint token) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapPicDel(token); + } + } + } + + public static void SetTargetTabVisable(bool status) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetTargetTabVisable(status); + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + for (int i = 0; i < this._BattleLines.Count; i++) + { + this._BattleLines[i].fx.Position = (this._BattleLines[i].xe1.EngineObject.Position + this._BattleLines[i].xe2.EngineObject.Position) / 2f + new Vector3(0f, this._BattleLines[i].xe1.Height / 2f, 0f); + this._BattleLines[i].fx.Rotation = Quaternion.FromToRotation(this._BattleLines[i].xe1.EngineObject.Position - this._BattleLines[i].xe2.EngineObject.Position, Vector3.right); + } + } + + public void SendCheckTime() + { + bool sceneStarted = XSingleton.singleton.SceneStarted; + if (sceneStarted) + { + RpcC2G_QuerySceneTime rpc = new RpcC2G_QuerySceneTime(); + XSingleton.singleton.Send(rpc); + } + } + + public void ResetSceneTime(int time) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.ResetLeftTime(time); + } + } + + public void SetCameraLayer(int layer, float time) + { + this._layer_backup = XSingleton.singleton.GameCamera.GetCameraLayer(); + XSingleton.singleton.GameCamera.SetCameraLayer(layer); + XSingleton.singleton.GameCamera.SetSolidBlack(true); + XSingleton.singleton.SetTimer(time, new XTimerMgr.ElapsedEventHandler(this.CameraLayerReset), null); + } + + private void CameraLayerReset(object o) + { + XSingleton.singleton.GameCamera.SetSolidBlack(false); + XSingleton.singleton.GameCamera.SetCameraLayer(this._layer_backup); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBattleDocument.cs.meta new file mode 100644 index 00000000..2300dfe2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0b4ec4fd5ee9cd644ad9fbfeb23c8acb +timeCreated: 1611403167 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBattleEndArgs.cs b/Client/Assets/Scripts/XMainClient/XBattleEndArgs.cs new file mode 100644 index 00000000..d3464e19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleEndArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XBattleEndArgs : XEventArgs + { + public XBattleEndArgs() + { + this._eDefine = XEventDefine.XEvent_BattleEnd; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBattleEndArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XBattleEndArgs.cs.meta new file mode 100644 index 00000000..2e4c29d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleEndArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba8659d070a943f41b11a01d438c2137 +timeCreated: 1611404437 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBattleFieldBattleDocument.cs b/Client/Assets/Scripts/XMainClient/XBattleFieldBattleDocument.cs new file mode 100644 index 00000000..e7adc364 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleFieldBattleDocument.cs @@ -0,0 +1,129 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBattleFieldBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XBattleFieldBattleDocument.uuID; + } + } + + public static XBattleFieldBattleDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XBattleFieldBattleDocument.uuID) as XBattleFieldBattleDocument; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XBattleFieldBattleDocument"); + + public XBetterDictionary userIdToRole = new XBetterDictionary(0); + + public BattleFieldBattleHandler battleHandler = null; + + public static readonly int BATTLE_SHOW_RANK = 5; + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_FIGHT; + if (flag) + { + this.ReqBattleInfo(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void ReceiveBattleKillInfo(PvpBattleKill battleKillInfo) + { + GVGBattleSkill gvgbattleSkill = new GVGBattleSkill(); + gvgbattleSkill.killerID = battleKillInfo.killID; + gvgbattleSkill.deadID = battleKillInfo.deadID; + gvgbattleSkill.contiKillCount = battleKillInfo.contiKillCount; + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(gvgbattleSkill.killerID); + XEntity entityConsiderDeath2 = XSingleton.singleton.GetEntityConsiderDeath(gvgbattleSkill.deadID); + bool flag = entityConsiderDeath == null || entityConsiderDeath2 == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Killer id: " + gvgbattleSkill.killerID, " Dead id: " + gvgbattleSkill.deadID, null, null, null, null); + bool flag2 = entityConsiderDeath == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("kill_en id null", null, null, null, null, null); + } + bool flag3 = entityConsiderDeath2 == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("dead_en id null", null, null, null, null, null); + } + } + else + { + gvgbattleSkill.killerName = entityConsiderDeath.Name; + gvgbattleSkill.deadName = entityConsiderDeath2.Name; + gvgbattleSkill.killerPosition = XSingleton.singleton.IsAlly(entityConsiderDeath); + DlgBase.singleton.AddBattleSkill(gvgbattleSkill); + XSingleton.singleton.AddGreenLog(string.Format("ReceiveBattleKillInfo:{0} --- ,{1} ,.... {2}", gvgbattleSkill.killerName, gvgbattleSkill.deadName, gvgbattleSkill.contiKillCount), null, null, null, null, null); + } + } + + public void ReqRankData() + { + RpcC2G_BattleFieldRankReq rpc = new RpcC2G_BattleFieldRankReq(); + XSingleton.singleton.Send(rpc); + } + + public void SetRankData(BattleFieldRankArg oArg, BattleFieldRankRes oRes) + { + bool flag = this.battleHandler != null && this.battleHandler.PanelObject != null && this.battleHandler.IsVisible(); + if (flag) + { + this.battleHandler.RefreshRank(oRes.ranks); + } + } + + public void SetReviveTime(PtcG2C_BattleFieldReliveNtf roPtc) + { + bool flag = this.battleHandler == null; + if (!flag) + { + this.battleHandler.SetReviveTime(roPtc.Data.time); + } + } + + public void ReqBattleInfo() + { + RpcC2G_BattleFieldRoleAgainstReq rpc = new RpcC2G_BattleFieldRoleAgainstReq(); + XSingleton.singleton.Send(rpc); + } + + public void SetBattleInfo(BattleFieldRoleAgainst oRes) + { + this.userIdToRole.Clear(); + for (int i = 0; i < oRes.roles.Count; i++) + { + this.userIdToRole[oRes.roles[i].roleid] = oRes.roles[i].name; + } + } + + public void SetTime(PtcG2C_BFFightTimeNtf roPtc) + { + bool flag = DlgBase.singleton.IsLoaded() && roPtc.Data.time > 0u; + if (flag) + { + DlgBase.singleton.SetLeftTime(roPtc.Data.time, -1); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBattleFieldBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBattleFieldBattleDocument.cs.meta new file mode 100644 index 00000000..5f40c855 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleFieldBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3c80d595d28bdb4ba1101c93487c674 +timeCreated: 1611404850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBattleFieldEntranceDocument.cs b/Client/Assets/Scripts/XMainClient/XBattleFieldEntranceDocument.cs new file mode 100644 index 00000000..2334750a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleFieldEntranceDocument.cs @@ -0,0 +1,124 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBattleFieldEntranceDocument : XDocComponent + { + public override uint ID + { + get + { + return XBattleFieldEntranceDocument.uuID; + } + } + + public static XBattleFieldEntranceDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XBattleFieldEntranceDocument.uuID) as XBattleFieldEntranceDocument; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XBattleFieldEntranceDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static BattleFieldPointReward _PointRewardTable = new BattleFieldPointReward(); + + private List CurPointRewardList = new List(); + + private XBetterDictionary CurPointRewardGetCount = new XBetterDictionary(0); + + public bool MainInterfaceState = false; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + XBattleFieldEntranceDocument.AsyncLoader.AddTask("Table/BattleFieldPointReward", XBattleFieldEntranceDocument._PointRewardTable, false); + XBattleFieldEntranceDocument.AsyncLoader.Execute(callback); + } + + public List GetPointRewardList() + { + uint level = XSingleton.singleton.XPlayerData.Level; + this.CurPointRewardList.Clear(); + for (int i = 0; i < XBattleFieldEntranceDocument._PointRewardTable.Table.Length; i++) + { + bool flag = (long)XBattleFieldEntranceDocument._PointRewardTable.Table[i].levelrange[0] <= (long)((ulong)level) && (ulong)level <= (ulong)((long)XBattleFieldEntranceDocument._PointRewardTable.Table[i].levelrange[1]); + if (flag) + { + this.CurPointRewardList.Add(XBattleFieldEntranceDocument._PointRewardTable.Table[i]); + } + } + return this.CurPointRewardList; + } + + public BattleFieldPointReward.RowData GetCurPointRewardList(uint id) + { + for (int i = 0; i < XBattleFieldEntranceDocument._PointRewardTable.Table.Length; i++) + { + bool flag = XBattleFieldEntranceDocument._PointRewardTable.Table[i].id == id; + if (flag) + { + return XBattleFieldEntranceDocument._PointRewardTable.Table[i]; + } + } + XSingleton.singleton.AddErrorLog("BattleFieldPointReward.RowData No Find id:" + id, null, null, null, null, null); + return null; + } + + public void ReqPointRewardInfo() + { + RpcC2G_BattleFieldAwardNumReq rpc = new RpcC2G_BattleFieldAwardNumReq(); + XSingleton.singleton.Send(rpc); + } + + public void SetPointRewardRemainCount(BattleFieldAwardNumRes oRes) + { + this.CurPointRewardGetCount.Clear(); + for (int i = 0; i < oRes.award.Count; i++) + { + this.CurPointRewardGetCount[oRes.award[i].id] = oRes.award[i].count; + } + bool flag = DlgBase.singleton._PointRewardHandler != null && DlgBase.singleton._PointRewardHandler.Sys == XSysDefine.XSys_Battlefield; + if (flag) + { + DlgBase.singleton._PointRewardHandler.RefreshList(true); + } + } + + public uint GetPointRewardGetCount(uint id) + { + for (int i = 0; i < this.CurPointRewardGetCount.BufferKeys.Count; i++) + { + bool flag = this.CurPointRewardGetCount.BufferKeys[i] == id; + if (flag) + { + return this.CurPointRewardGetCount.BufferValues[i]; + } + } + return 0u; + } + + public void ReqJoin() + { + RpcC2M_EnterBattleReadyScene rpc = new RpcC2M_EnterBattleReadyScene(); + XSingleton.singleton.Send(rpc); + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceState = state; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_Battlefield, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBattleFieldEntranceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBattleFieldEntranceDocument.cs.meta new file mode 100644 index 00000000..7851dcd5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleFieldEntranceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b257bf354fac1624c83a52a1e1086823 +timeCreated: 1611404383 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBattleSkillDocument.cs b/Client/Assets/Scripts/XMainClient/XBattleSkillDocument.cs new file mode 100644 index 00000000..a038c760 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleSkillDocument.cs @@ -0,0 +1,483 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBattleSkillDocument : XDocComponent + { + public override uint ID + { + get + { + return XBattleSkillDocument.uuID; + } + } + + public BattleSkillHandler BattleView + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("BattleSkillDocument"); + + public static uint Total_skill_slot = (uint)(XFastEnumIntEqualityComparer.ToInt(XSkillSlot.Attack_Max) - 1); + + private static uint[] _slot_total_clicked = new uint[XBattleSkillDocument.Total_skill_slot]; + + public static int[] SkillLevel = new int[6]; + + public static bool m_canlevelrans = false; + + private SeqList _canSkillLevelTransScene; + + public static Dictionary SkillLevelDict = new Dictionary(); + + private BattleSkillHandler _view = null; + + private XLocateTargetComponent _locate = null; + + private XPlayer _player = null; + + public void Init() + { + this._player = XSingleton.singleton.Player; + this._locate = this._player.TargetLocated; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._canSkillLevelTransScene = XSingleton.singleton.GetSequenceList("CanLevelTransSkill", false); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnDeath)); + base.RegisterEvent(XEventDefine.XEvent_CoolDownAllSkills, new XComponent.XEventHandler(this.OnCoolDown)); + base.RegisterEvent(XEventDefine.XEvent_InitCoolDownAllSkills, new XComponent.XEventHandler(this.OnInitCoolDown)); + base.RegisterEvent(XEventDefine.XEvent_BuffChange, new XComponent.XEventHandler(this.OnBuffChange)); + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_ARENA; + if (flag) + { + this._view.SetVisible(false); + } + for (int i = 0; i < XBattleSkillDocument._slot_total_clicked.Length; i++) + { + XBattleSkillDocument._slot_total_clicked[i] = 0u; + } + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + XBattleSkillDocument.m_canlevelrans = false; + for (int i = 0; i < (int)this._canSkillLevelTransScene.Count; i++) + { + bool flag = this._canSkillLevelTransScene[i, 0] == 1; + if (flag) + { + bool flag2 = XSingleton.singleton.SceneType == (SceneType)this._canSkillLevelTransScene[i, 1]; + if (flag2) + { + XBattleSkillDocument.m_canlevelrans = true; + break; + } + } + else + { + bool flag3 = (ulong)XSingleton.singleton.SceneID == (ulong)((long)this._canSkillLevelTransScene[i, 1]); + if (flag3) + { + XBattleSkillDocument.m_canlevelrans = true; + break; + } + } + } + XBattleSkillDocument.SkillLevelDict.Clear(); + for (int j = 0; j < XBattleSkillDocument.SkillLevel.Length; j++) + { + XBattleSkillDocument.SkillLevel[j] = 0; + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB; + if (flag4) + { + XBattleSkillDocument.SkillLevel[0] = 1; + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + XBattleSkillDocument.SkillLevelDict.Clear(); + } + + public bool IsInQTEChain(uint skill) + { + return this._player.QTE.QTEList.Contains(skill); + } + + public bool CanCast(uint skill, int slot) + { + bool flag = this._player == null || this._player.Deprecated || this._player.SkillMgr == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA && slot >= 2 && slot <= 5; + if (flag2) + { + bool flag3 = XBattleSkillDocument.SkillLevel[slot] == 0; + if (flag3) + { + return false; + } + } + bool flag4 = this._player.SkillMgr.GetPhysicalIdentity() != skill && this._player.Buffs.IsBuffStateOn(XBuffType.XBuffType_Silencing); + if (flag4) + { + result = false; + } + else + { + bool flag5 = this.IsInQTEChain(skill); + if (flag5) + { + result = true; + } + else + { + bool flag6 = this._player.QTE.IsInReservedState(); + if (flag6) + { + result = false; + } + else + { + XSkillCore skill2 = this._player.SkillMgr.GetSkill(skill); + bool flag7 = skill2 == null || !skill2.ExternalCanCast(); + if (flag7) + { + result = false; + } + else + { + bool flag8 = skill2.Soul.OnceOnly && skill2.EverFired; + if (flag8) + { + result = false; + } + else + { + bool flag9 = skill2.Soul.Chain != null && skill2.Soul.Chain.TemplateID > 0; + if (flag9) + { + bool flag10 = this._player.Skill.SkillMobs == null; + if (flag10) + { + result = false; + } + else + { + for (int i = 0; i < this._player.Skill.SkillMobs.Count; i++) + { + bool flag11 = (ulong)this._player.Skill.SkillMobs[i].TypeID == (ulong)((long)skill2.Soul.Chain.TemplateID) && XEntity.ValideEntity(this._player.Skill.SkillMobs[i]); + if (flag11) + { + return !this._player.Skill.IsCasting() || this._player.Skill.CurrentSkill.MainCore.CanReplacedBy(skill2); + } + } + result = false; + } + } + else + { + bool flag12 = this._player.Skill.IsCasting(); + result = (!flag12 || this._player.Skill.CurrentSkill.MainCore.CanReplacedBy(skill2)); + } + } + } + } + } + } + } + return result; + } + + public bool CanFind(uint skill) + { + return false; + } + + public XSkillCore HasReplaced(uint id) + { + return this._player.Skill.TryGetSkillReplace(id, this._player.SkillMgr.GetSkill(id)); + } + + public void ResetAll(bool fx = false, bool rebind = false) + { + bool flag = this._view != null; + if (flag) + { + this._view.ResetSkill(fx, rebind); + } + } + + public void Reset(int slot) + { + bool flag = this._view != null; + if (flag) + { + this._view.ResetSkill(slot, false); + } + } + + public void UpdateQTE(int key, uint skill) + { + bool flag = this._view != null; + if (flag) + { + this._view.UpdateQTESkill(key, skill); + } + } + + public void CastSkill(BattleSkillHandler.XSkillButton button) + { + bool flag = !XEntity.ValideEntity(this._player); + if (!flag) + { + int num = (int)this._player.PlayerAttributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + XSkillCore xskillCore = this.HasReplaced(button.m_skillId); + bool flag2 = xskillCore != null && xskillCore.CooledDown; + if (flag2) + { + bool flag3 = (float)num >= button.m_skillCost; + if (flag3) + { + this.FireSkillEvent(button); + } + else + { + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + XSingleton.singleton.ShowSystemNoticeTip(XStringDefineProxy.GetString("COMMON_NO_MP")); + } + } + } + } + } + + public void FireSkillEvent(int idx) + { + bool freezed = XSingleton.singleton.Freezed; + if (!freezed) + { + XSingleton.singleton.Player.Net.ReportSkillAction((this._locate == null) ? null : this._locate.Target, idx); + } + } + + public void FireSkillEvent(BattleSkillHandler.XSkillButton button) + { + bool freezed = XSingleton.singleton.Freezed; + if (!freezed) + { + this._player.Net.ReportSkillAction((this._locate == null) ? null : this._locate.Target, button.m_skillId, (int)button.m_skill.ID); + } + } + + public void OnSkillCasted(uint id, int slot, bool succeed) + { + bool flag = slot < 0; + if (!flag) + { + if (succeed) + { + uint num = this.NextJASkill(id); + bool flag2 = num > 0u; + if (flag2) + { + bool flag3 = this._view != null; + if (flag3) + { + this._view.BindSkill(slot, num, false); + } + return; + } + } + bool flag4 = this._view != null; + if (flag4) + { + this._view.ResetSkill(slot, false); + } + } + } + + public void OnSlotClicked(int slot) + { + bool flag = slot >= 0 && (long)slot < (long)((ulong)XBattleSkillDocument.Total_skill_slot); + if (flag) + { + XBattleSkillDocument._slot_total_clicked[slot] += 1u; + } + } + + public uint GetSlotClicked(int slot) + { + bool flag = slot >= 0 && (long)slot < (long)((ulong)XBattleSkillDocument.Total_skill_slot); + uint result; + if (flag) + { + result = XBattleSkillDocument._slot_total_clicked[slot]; + } + else + { + result = 0u; + } + return result; + } + + public uint NextJASkillBaseOnCurrent() + { + bool flag = this._player.Skill.IsCasting(); + uint result; + if (flag) + { + result = this.NextJASkill(this._player.Skill.CurrentSkill.MainCore.ID); + } + else + { + result = (XSingleton.singleton.SyncMode ? this._player.Net.LastReqSkill : 0u); + } + return result; + } + + private uint NextJASkill(uint skill) + { + XSkillCore skill2 = this._player.SkillMgr.GetSkill(skill); + uint num = (skill2 == null) ? 0u : ((skill2.Soul.Ja == null || skill2.Soul.Ja.Count == 0) ? 0u : XSingleton.singleton.XHash(skill2.Soul.Ja[0].Name)); + return (this._player.SkillMgr.GetSkill(num) == null) ? 0u : num; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + private bool OnDeath(object o) + { + XRealDeadEventArgs xrealDeadEventArgs = o as XRealDeadEventArgs; + bool isPlayer = xrealDeadEventArgs.TheDead.IsPlayer; + if (isPlayer) + { + this.ResetAll(false, false); + bool flag = this._view != null; + if (flag) + { + this._view.OnDeath(); + } + } + return true; + } + + public override void OnSceneStarted() + { + bool flag = this._view != null; + if (flag) + { + this._view.MakeCoolDownAtLaunch(); + } + } + + public bool OnCoolDown(object o) + { + bool flag = this._view != null; + if (flag) + { + this._view.CoolDownSkillAll(); + } + return true; + } + + public bool OnInitCoolDown(object o) + { + bool flag = this._view != null; + if (flag) + { + this._view.MakeCoolDownAtLaunch(); + } + return true; + } + + public void SetSkillLevel(uint skillHash, uint level) + { + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + XBattleSkillDocument.SkillLevelDict[skillHash] = level; + for (int i = 0; i < XSingleton.singleton.Player.SkillSlot.Length; i++) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA && (i < 2 || i > 5); + if (!flag2) + { + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB && i != 0; + if (!flag3) + { + bool flag4 = XSingleton.singleton.Player.SkillSlot[i] == skillHash; + if (flag4) + { + bool isLevelUp = XBattleSkillDocument.SkillLevel[i] != (int)level && XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + XBattleSkillDocument.SkillLevel[i] = (int)level; + bool flag5 = DlgBase.singleton.SkillHandler != null; + if (flag5) + { + DlgBase.singleton.SkillHandler.SetMobaSkillLevel(i, isLevelUp); + } + } + } + } + } + } + } + + private bool OnBuffChange(XEventArgs args) + { + XBuffChangeEventArgs xbuffChangeEventArgs = args as XBuffChangeEventArgs; + bool flag = xbuffChangeEventArgs.addBuff != null; + if (flag) + { + bool bReduceCD = xbuffChangeEventArgs.addBuff.bReduceCD; + if (bReduceCD) + { + XBuffReduceSkillCD.DoReduce((int)xbuffChangeEventArgs.addBuff.buffID, (int)xbuffChangeEventArgs.addBuff.buffLevel, xbuffChangeEventArgs.entity); + } + } + bool flag2 = xbuffChangeEventArgs.removeBuff != null; + if (flag2) + { + bool bReduceCD2 = xbuffChangeEventArgs.removeBuff.bReduceCD; + if (bReduceCD2) + { + XBuffReduceSkillCD.UnDo((int)xbuffChangeEventArgs.removeBuff.buffID, (int)xbuffChangeEventArgs.removeBuff.buffLevel, xbuffChangeEventArgs.entity); + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBattleSkillDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBattleSkillDocument.cs.meta new file mode 100644 index 00000000..25d686ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleSkillDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f5785c858a09924696f78b04d990aa1 +timeCreated: 1611403515 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBattleStatistics.cs b/Client/Assets/Scripts/XMainClient/XBattleStatistics.cs new file mode 100644 index 00000000..3a2f9679 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleStatistics.cs @@ -0,0 +1,76 @@ +using System; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal struct XBattleStatistics + { + public double Dps + { + get + { + return (this.m_TimeTotal > 0f) ? (this.m_Damage / (double)this.m_TimeTotal) : 0.0; + } + } + + public double PrintDamage + { + get + { + return this.m_Damage - this.m_StartPrintDamage; + } + } + + private double m_Damage; + + private double m_StartPrintDamage; + + private float m_TimeTotal; + + private float m_TimeBase; + + private float m_TimeEnd; + + public void Reset() + { + this.m_Damage = 0.0; + this.m_TimeTotal = 0f; + } + + public void AppendDamage(double damage) + { + this.m_Damage += damage; + } + + public void AppendTime() + { + float time = Time.time; + this.m_TimeTotal += time - this.m_TimeBase; + this.m_TimeBase = time; + } + + public void MarkTimeBaseLine() + { + this.m_TimeBase = Time.time - this.m_TimeEnd; + } + + public void MarkTimEndLine() + { + this.m_TimeEnd = Time.time - this.m_TimeBase; + } + + public void StartPrintDamage(float time) + { + this.m_StartPrintDamage = this.m_Damage; + XCombatStatisticsDocument specificDocument = XDocuments.GetSpecificDocument(XCombatStatisticsDocument.uuID); + specificDocument.bShowDamage = true; + } + + public void StopPrintDamage() + { + DlgBase.singleton.AddMessage((this.m_Damage - this.m_StartPrintDamage).ToString("F1")); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBattleStatistics.cs.meta b/Client/Assets/Scripts/XMainClient/XBattleStatistics.cs.meta new file mode 100644 index 00000000..af622c8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBattleStatistics.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37a52956dce945645b52fb764e1ab07a +timeCreated: 1611403567 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBetterDictionary.cs b/Client/Assets/Scripts/XMainClient/XBetterDictionary.cs new file mode 100644 index 00000000..eee8f7b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBetterDictionary.cs @@ -0,0 +1,204 @@ +using System; + +namespace XMainClient +{ + internal class XBetterDictionary + { + public XBetterList BufferKeys + { + get + { + return this.m_bufferKeys; + } + } + + public XBetterList BufferValues + { + get + { + return this.m_bufferValues; + } + } + + public VV this[KK key] + { + get + { + VV vv; + bool flag = this.TryGetValue(key, out vv); + VV result; + if (flag) + { + result = vv; + } + else + { + result = default(VV); + } + return result; + } + set + { + bool flag = key == null; + if (!flag) + { + bool flag2 = value == null; + if (flag2) + { + this.RemoveKey(key); + } + else + { + this.Add(key, value); + } + } + } + } + + private XBetterList m_bufferKeys; + + private XBetterList m_bufferValues; + + private int maxbuffersize = 0; + + public int size = 0; + + public XBetterDictionary(int maxSize = 0) + { + this.maxbuffersize = maxSize; + this.m_bufferKeys = new XBetterList(this.maxbuffersize); + this.m_bufferValues = new XBetterList(this.maxbuffersize); + } + + public virtual void Add(KK key, VV value) + { + int num = this.m_bufferKeys.IndexOf(key); + bool flag = num >= 0; + if (flag) + { + this.m_bufferKeys[num] = key; + this.m_bufferValues[num] = value; + } + else + { + this.m_bufferKeys.Add(key); + this.m_bufferValues.Add(value); + this.size++; + } + } + + public bool TryGetKey(VV value, out KK key) + { + int num = this.m_bufferValues.IndexOf(value); + bool flag = num >= 0; + bool result; + if (flag) + { + key = this.m_bufferKeys[num]; + result = true; + } + else + { + key = default(KK); + result = false; + } + return result; + } + + public bool TryGetValue(KK key, out VV value) + { + int num = this.m_bufferKeys.IndexOf(key); + bool flag = num >= 0; + bool result; + if (flag) + { + value = this.m_bufferValues[num]; + result = true; + } + else + { + value = default(VV); + result = false; + } + return result; + } + + public bool ContainsKey(KK key) + { + return this.m_bufferKeys.Contains(key); + } + + public bool ContainsValue(VV value) + { + return this.m_bufferValues.Contains(value); + } + + public bool RemoveValue(VV value) + { + int index = this.m_bufferValues.IndexOf(value); + return this.RemoveAt(index); + } + + public bool RemoveKey(KK key) + { + int index = this.m_bufferKeys.IndexOf(key); + return this.RemoveAt(index); + } + + public bool RemoveAt(int index) + { + bool flag = index >= 0 && index < this.size; + bool result; + if (flag) + { + this.m_bufferValues.RemoveAt(index); + this.m_bufferKeys.RemoveAt(index); + this.size--; + result = true; + } + else + { + result = false; + } + return result; + } + + public virtual void Trim() + { + this.m_bufferKeys.Trim(); + this.m_bufferValues.Trim(); + } + + public void Clear() + { + this.size = 0; + bool flag = this.m_bufferKeys != null; + if (flag) + { + this.m_bufferKeys.Clear(); + } + bool flag2 = this.m_bufferValues != null; + if (flag2) + { + this.m_bufferValues.Clear(); + } + } + + public void Release() + { + this.size = 0; + bool flag = this.m_bufferKeys != null; + if (flag) + { + this.m_bufferKeys.Release(); + this.m_bufferKeys = null; + } + bool flag2 = this.m_bufferValues != null; + if (flag2) + { + this.m_bufferValues.Release(); + this.m_bufferValues = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBetterDictionary.cs.meta b/Client/Assets/Scripts/XMainClient/XBetterDictionary.cs.meta new file mode 100644 index 00000000..5c89fb1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBetterDictionary.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35e8f3d8290780b49964f2aeed9f43f6 +timeCreated: 1611403560 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBetterList.cs b/Client/Assets/Scripts/XMainClient/XBetterList.cs new file mode 100644 index 00000000..ca8b191f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBetterList.cs @@ -0,0 +1,243 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +public class XBetterList +{ + public T this[int i] + { + get + { + return this.buffer[i]; + } + set + { + this.buffer[i] = value; + } + } + + public virtual int Count + { + get + { + return this.size; + } + } + + private int maxbuffersize = 0; + + public T[] buffer; + + public int size = 0; + + public XBetterList(int maxSize = 0) + { + this.maxbuffersize = maxSize; + this.AllocateMore(); + } + + public int IndexOf(T value) + { + for (int i = 0; i < this.size; i++) + { + bool flag = this.buffer[i].Equals(value); + if (flag) + { + return i; + } + } + return -1; + } + + protected bool AllocateMore() + { + bool flag = this.maxbuffersize > 0; + if (flag) + { + bool flag2 = this.buffer == null; + if (flag2) + { + this.buffer = new T[this.maxbuffersize]; + } + else + { + bool flag3 = this.maxbuffersize == this.size; + if (flag3) + { + XSingleton.singleton.AddErrorLog("buffer is max size!", null, null, null, null, null); + return false; + } + } + } + else + { + T[] array = (this.buffer != null) ? new T[Mathf.Max(this.buffer.Length << 1, 32)] : new T[32]; + bool flag4 = this.buffer != null && this.size > 0; + if (flag4) + { + this.buffer.CopyTo(array, 0); + } + this.buffer = array; + } + return true; + } + + public virtual void Trim() + { + bool flag = this.size > 0; + if (flag) + { + bool flag2 = this.size < this.buffer.Length; + if (flag2) + { + T[] array = new T[this.size]; + for (int i = 0; i < this.size; i++) + { + array[i] = this.buffer[i]; + } + this.buffer = array; + } + bool flag3 = this.size > this.maxbuffersize; + if (flag3) + { + this.maxbuffersize = this.size; + } + } + else + { + this.buffer = null; + } + } + + public virtual void Clear() + { + this.size = 0; + } + + public virtual void Release() + { + this.size = 0; + this.buffer = null; + } + + public virtual void Add(T item) + { + bool flag = this.buffer == null || this.size == this.buffer.Length; + if (flag) + { + this.AllocateMore(); + } + T[] array = this.buffer; + int num = this.size; + this.size = num + 1; + array[num] = item; + } + + public void Insert(int index, T item) + { + bool flag = this.buffer == null || this.size == this.buffer.Length; + if (flag) + { + this.AllocateMore(); + } + bool flag2 = index < this.size; + if (flag2) + { + for (int i = this.size; i > index; i--) + { + this.buffer[i] = this.buffer[i - 1]; + } + this.buffer[index] = item; + this.size++; + } + else + { + this.Add(item); + } + } + + public bool Contains(T item) + { + bool flag = this.buffer == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < this.size; i++) + { + bool flag2 = this.buffer[i].Equals(item); + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public bool Remove(T item) + { + bool flag = this.buffer != null; + if (flag) + { + EqualityComparer @default = EqualityComparer.Default; + T t = default(T); + for (int i = 0; i < this.size; i++) + { + bool flag2 = @default.Equals(this.buffer[i], item); + if (flag2) + { + this.size--; + this.buffer[i] = t; + for (int j = i; j < this.size; j++) + { + this.buffer[j] = this.buffer[j + 1]; + } + this.buffer[this.size] = t; + return true; + } + } + } + return false; + } + + public void RemoveAt(int index) + { + bool flag = this.buffer != null && index < this.size; + if (flag) + { + this.size--; + this.buffer[index] = default(T); + for (int i = index; i < this.size; i++) + { + this.buffer[i] = this.buffer[i + 1]; + } + this.buffer[this.size] = default(T); + } + } + + public T Pop() + { + bool flag = this.buffer != null && this.size != 0; + T result; + if (flag) + { + T[] array = this.buffer; + int num = this.size - 1; + this.size = num; + T t = array[num]; + this.buffer[this.size] = default(T); + result = t; + } + else + { + result = default(T); + } + return result; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBetterList.cs.meta b/Client/Assets/Scripts/XMainClient/XBetterList.cs.meta new file mode 100644 index 00000000..339acf52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBetterList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34635275fe99d644baffb19a1b19f4b8 +timeCreated: 1611403555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeBattleDocument.cs b/Client/Assets/Scripts/XMainClient/XBigMeleeBattleDocument.cs new file mode 100644 index 00000000..86bc7e8f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeBattleDocument.cs @@ -0,0 +1,220 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBigMeleeBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XBigMeleeBattleDocument.uuID; + } + } + + public static XBigMeleeBattleDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XBigMeleeBattleDocument.uuID) as XBigMeleeBattleDocument; + } + } + + public uint Round + { + get + { + return this._Round; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XBigMeleeBattleDocument"); + + public XBetterDictionary userIdToRole = new XBetterDictionary(0); + + public BigMeleeBattleHandler battleHandler = null; + + public static readonly int BATTLE_SHOW_RANK = 5; + + private uint _Round; + + public struct RoleData + { + public ulong roleID; + + public string name; + + public uint point; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_FIGHT; + if (flag) + { + DlgBase.singleton.ClearRevenge(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void HideInfo() + { + bool flag = this.battleHandler != null; + if (flag) + { + XSingleton.singleton.AddGreenLog("HideVSInfo", null, null, null, null, null); + this.battleHandler.CloseVS(null); + } + } + + public void ReceiveBattleKillInfo(PvpBattleKill battleKillInfo) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_BIGMELEE_FIGHT; + if (!flag) + { + GVGBattleSkill gvgbattleSkill = new GVGBattleSkill(); + gvgbattleSkill.killerID = battleKillInfo.killID; + gvgbattleSkill.deadID = battleKillInfo.deadID; + gvgbattleSkill.contiKillCount = battleKillInfo.contiKillCount; + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(gvgbattleSkill.killerID); + XEntity entityConsiderDeath2 = XSingleton.singleton.GetEntityConsiderDeath(gvgbattleSkill.deadID); + bool flag2 = entityConsiderDeath == null || entityConsiderDeath2 == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Killer id: " + gvgbattleSkill.killerID, " Dead id: " + gvgbattleSkill.deadID, null, null, null, null); + bool flag3 = entityConsiderDeath == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("kill_en id null", null, null, null, null, null); + } + bool flag4 = entityConsiderDeath2 == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("dead_en id null", null, null, null, null, null); + } + } + else + { + gvgbattleSkill.killerName = entityConsiderDeath.Name; + gvgbattleSkill.deadName = entityConsiderDeath2.Name; + gvgbattleSkill.killerPosition = XSingleton.singleton.IsAlly(entityConsiderDeath); + DlgBase.singleton.AddBattleSkill(gvgbattleSkill); + XSingleton.singleton.AddGreenLog(string.Format("ReceiveBattleKillInfo:{0} --- ,{1} ,.... {2}", gvgbattleSkill.killerName, gvgbattleSkill.deadName, gvgbattleSkill.contiKillCount), null, null, null, null, null); + } + } + } + + public void SetRankData(QueryMayhemRankArg oArg, QueryMayhemRankRes oRes) + { + XRankDocument.ProcessRankListData(oRes.rank, XBigMeleeEntranceDocument.Doc.RankList); + XBigMeleeEntranceDocument.Doc.RankList.myRankInfo = XBigMeleeEntranceDocument.Doc.RankList.CreateNewInfo(); + XBigMeleeRankInfo xbigMeleeRankInfo = XBigMeleeEntranceDocument.Doc.RankList.myRankInfo as XBigMeleeRankInfo; + bool flag = oRes.selfinfo != null; + if (flag) + { + xbigMeleeRankInfo.ProcessData(oRes.selfinfo); + } + else + { + xbigMeleeRankInfo.InitMyData(); + } + bool flag2 = oRes.selfrank > 0; + if (flag2) + { + xbigMeleeRankInfo.rank = (uint)(oRes.selfrank - 1); + } + else + { + xbigMeleeRankInfo.rank = XRankDocument.INVALID_RANK; + } + bool flag3 = this.battleHandler != null && this.battleHandler.PanelObject != null && this.battleHandler.IsVisible(); + if (flag3) + { + this.battleHandler.RefreshRank(); + } + } + + public void SetBattleData(PtcG2C_BMRoleSceneSyncNtf roPtc) + { + this._Round = roPtc.Data.games; + List roles = roPtc.Data.roles; + for (int i = 0; i < roles.Count; i++) + { + XBigMeleeBattleDocument.RoleData roleData; + roleData.roleID = roles[i].roleid; + roleData.name = roles[i].name; + roleData.point = roles[i].score; + this.userIdToRole[roleData.roleID] = roleData; + XBigMeleePointChange @event = XEventPool.GetEvent(); + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(roleData.roleID); + @event.point = roleData.point; + @event.Firer = entityConsiderDeath; + XSingleton.singleton.FireEvent(@event); + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "roleid:", + roleData.roleID, + "\npoint:", + roleData.point + }), null, null, null, null, null); + } + XSingleton.singleton.AddGreenLog("PtcG2C_BMRoleSceneSyncNtf _Round:" + this._Round, null, null, null, null, null); + bool flag = this.battleHandler != null; + if (flag) + { + this.battleHandler.RefreshStage(); + } + } + + public void SetBattleTime(PtcG2C_BMFightTimeNtf roPtc) + { + bool flag = this.battleHandler == null; + if (!flag) + { + this.battleHandler.RefreshStatusTime(roPtc.Data.type, roPtc.Data.time); + this.battleHandler.ShieldMiniMapPlayer(); + } + } + + public void SetReviveTime(PtcG2C_BigMeleeReliveNtf roPtc) + { + bool flag = this.battleHandler == null; + if (!flag) + { + this.battleHandler.SetReviveTime(roPtc.Data.time); + } + } + + public void SetPoint(ulong roleid, uint point) + { + XBigMeleeBattleDocument.RoleData value = this.userIdToRole[roleid]; + value.point = point; + this.userIdToRole[roleid] = value; + XBigMeleePointChange @event = XEventPool.GetEvent(); + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(roleid); + @event.point = point; + @event.Firer = entityConsiderDeath; + XSingleton.singleton.FireEvent(@event); + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "roleid:", + roleid, + "\npoint:", + point + }), null, null, null, null, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBigMeleeBattleDocument.cs.meta new file mode 100644 index 00000000..7d6e34a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e970defdc13ac144790721487d64910c +timeCreated: 1611404756 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeEnemyChange.cs b/Client/Assets/Scripts/XMainClient/XBigMeleeEnemyChange.cs new file mode 100644 index 00000000..2a5ebcc0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeEnemyChange.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XBigMeleeEnemyChange : XEventArgs + { + public bool isEnemy; + + public XBigMeleeEnemyChange() + { + this._eDefine = XEventDefine.XEvent_BigMeleeEnemyChange; + } + + public override void Recycle() + { + base.Recycle(); + this.isEnemy = false; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeEnemyChange.cs.meta b/Client/Assets/Scripts/XMainClient/XBigMeleeEnemyChange.cs.meta new file mode 100644 index 00000000..f1b96038 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeEnemyChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 030b6745af36e4243b12d565189be493 +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeEntranceDocument.cs b/Client/Assets/Scripts/XMainClient/XBigMeleeEntranceDocument.cs new file mode 100644 index 00000000..f607feb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeEntranceDocument.cs @@ -0,0 +1,190 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBigMeleeEntranceDocument : XDocComponent + { + public override uint ID + { + get + { + return XBigMeleeEntranceDocument.uuID; + } + } + + public static XBigMeleeEntranceDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XBigMeleeEntranceDocument.uuID) as XBigMeleeEntranceDocument; + } + } + + public XBigMeleeRankList RankList + { + get + { + return XRankDocument.Doc.BigMeleeRankList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XBigMeleeEntranceDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static BigMeleePointReward _PointRewardTable = new BigMeleePointReward(); + + private static BigMeleeRankReward _RankRewardTable = new BigMeleeRankReward(); + + public BigMeleeRankHandler RankHandler = null; + + private List CurPointRewardList = new List(); + + private List CurRankRewardList = new List(); + + public bool isFight = false; + + public int GroupID = 0; + + public static readonly int MAX_RANK = 100; + + public bool MainInterfaceState = false; + + public bool MainInterfaceStateEnd = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XBigMeleeEntranceDocument.AsyncLoader.AddTask("Table/BigMeleePointReward", XBigMeleeEntranceDocument._PointRewardTable, false); + XBigMeleeEntranceDocument.AsyncLoader.AddTask("Table/BigMeleeRankReward", XBigMeleeEntranceDocument._RankRewardTable, false); + XBigMeleeEntranceDocument.AsyncLoader.Execute(callback); + } + + public List GetPointRewardList() + { + uint level = XSingleton.singleton.XPlayerData.Level; + this.CurPointRewardList.Clear(); + for (int i = 0; i < XBigMeleeEntranceDocument._PointRewardTable.Table.Length; i++) + { + bool flag = (long)XBigMeleeEntranceDocument._PointRewardTable.Table[i].levelrange[0] <= (long)((ulong)level) && (ulong)level <= (ulong)((long)XBigMeleeEntranceDocument._PointRewardTable.Table[i].levelrange[1]); + if (flag) + { + this.CurPointRewardList.Add(XBigMeleeEntranceDocument._PointRewardTable.Table[i]); + } + } + return this.CurPointRewardList; + } + + public List GetRankRewardList() + { + uint level = XSingleton.singleton.XPlayerData.Level; + this.CurRankRewardList.Clear(); + for (int i = 0; i < XBigMeleeEntranceDocument._RankRewardTable.Table.Length; i++) + { + bool flag = (long)XBigMeleeEntranceDocument._RankRewardTable.Table[i].levelrange[0] <= (long)((ulong)level) && (ulong)level <= (ulong)((long)XBigMeleeEntranceDocument._RankRewardTable.Table[i].levelrange[1]); + if (flag) + { + this.CurRankRewardList.Add(XBigMeleeEntranceDocument._RankRewardTable.Table[i]); + } + } + return this.CurRankRewardList; + } + + public void ReqJoin() + { + RpcC2M_EnterBMReadyScene rpc = new RpcC2M_EnterBMReadyScene(); + XSingleton.singleton.Send(rpc); + } + + public void ReqRankData(int count = 0) + { + bool flag = count == 0; + if (flag) + { + count = XBigMeleeEntranceDocument.MAX_RANK; + } + RpcC2M_QueryBigMeleeRank rpcC2M_QueryBigMeleeRank = new RpcC2M_QueryBigMeleeRank(); + rpcC2M_QueryBigMeleeRank.oArg.count = count; + XSingleton.singleton.Send(rpcC2M_QueryBigMeleeRank); + } + + public void SetRankData(QueryMayhemRankArg oArg, QueryMayhemRankRes oRes) + { + XSingleton.singleton.AddGreenLog("BigMeleeRank.Count:" + oRes.rank.Count, null, null, null, null, null); + XRankDocument.ProcessRankListData(oRes.rank, this.RankList); + this.RankList.myRankInfo = this.RankList.CreateNewInfo(); + this.isFight = oRes.infight; + this.GroupID = (int)(oRes.gamezoneid + 1u); + XBigMeleeRankInfo xbigMeleeRankInfo = this.RankList.myRankInfo as XBigMeleeRankInfo; + bool flag = oRes.selfinfo != null; + if (flag) + { + xbigMeleeRankInfo.ProcessData(oRes.selfinfo); + } + else + { + xbigMeleeRankInfo.InitMyData(); + } + bool flag2 = oRes.selfrank > 0; + if (flag2) + { + xbigMeleeRankInfo.rank = (uint)(oRes.selfrank - 1); + } + else + { + xbigMeleeRankInfo.rank = XRankDocument.INVALID_RANK; + } + bool flag3 = this.RankHandler != null && this.RankHandler.PanelObject != null && this.RankHandler.IsVisible(); + if (flag3) + { + this.RankHandler.RefreshList(false); + bool flag4 = !this.RankHandler.IsRank; + if (flag4) + { + this.RankHandler.SetCongratulate(); + } + XSingleton.singleton.AddGreenLog("isFight:" + this.isFight.ToString(), null, null, null, null, null); + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + XRankDocument.Doc.currentSelectRankList = XRankType.BigMeleeRank; + DlgBase.singleton.RefreshRankWindow(); + } + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceState = state; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_BigMelee, true); + } + + public void SetMainInterfaceBtnStateEnd(bool state) + { + this.MainInterfaceStateEnd = state; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_BigMeleeEnd, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeEntranceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBigMeleeEntranceDocument.cs.meta new file mode 100644 index 00000000..d5bcf840 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeEntranceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4267bac626556848b1d50cb43c5dacf +timeCreated: 1611404736 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleePointChange.cs b/Client/Assets/Scripts/XMainClient/XBigMeleePointChange.cs new file mode 100644 index 00000000..6bd72abc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleePointChange.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XBigMeleePointChange : XEventArgs + { + public uint point = 0u; + + public XBigMeleePointChange() + { + this._eDefine = XEventDefine.XEvent_BigMeleePointChange; + } + + public override void Recycle() + { + base.Recycle(); + this.point = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleePointChange.cs.meta b/Client/Assets/Scripts/XMainClient/XBigMeleePointChange.cs.meta new file mode 100644 index 00000000..94f3f442 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleePointChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e6312a6b60c8684e948baab569158b0 +timeCreated: 1611403509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs b/Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs new file mode 100644 index 00000000..e653f124 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs @@ -0,0 +1,35 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XBigMeleeRankInfo : XBaseRankInfo + { + public string serverName; + + public uint profession; + + public uint kill; + + public void ProcessData(MayhemRankInfo info) + { + this.id = info.roleid; + this.value = (ulong)info.point; + this.name = info.name; + this.serverName = info.svrname; + this.profession = info.pro; + this.kill = info.killcount; + } + + public void InitMyData() + { + this.id = XSingleton.singleton.XPlayerData.RoleID; + this.value = 0UL; + this.name = XSingleton.singleton.XPlayerData.Name; + this.serverName = XSingleton.singleton.Server; + this.profession = (uint)XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + this.kill = 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs.meta new file mode 100644 index 00000000..1e8084a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 943de6788176a3248b7ae9e84fe0590f +timeCreated: 1611404154 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeRankList.cs b/Client/Assets/Scripts/XMainClient/XBigMeleeRankList.cs new file mode 100644 index 00000000..315f2cca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XBigMeleeRankList : XBaseRankList + { + public XBigMeleeRankList() + { + this.type = XRankType.BigMeleeRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XBigMeleeRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBigMeleeRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XBigMeleeRankList.cs.meta new file mode 100644 index 00000000..3add4209 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBigMeleeRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6724c3b58a2a31545aaf9214cc37b66b +timeCreated: 1611403857 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBillBoardDocument.cs b/Client/Assets/Scripts/XMainClient/XBillBoardDocument.cs new file mode 100644 index 00000000..86c44dec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBillBoardDocument.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBillBoardDocument : XDocComponent + { + public override uint ID + { + get + { + return XBillBoardDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("BillboardDocument"); + + public static GameObject GetBillboard(Vector3 position, Quaternion quaternion) + { + return XSingleton.singleton.CreateFromPrefab(XBillboardComponent.HPBAR_TEMPLATE, position, quaternion, true, false); + } + + public static void ReturnBillboard(GameObject go) + { + bool flag = go != null; + if (flag) + { + XSingleton.singleton.UnSafeDestroy(go, true, false); + } + } + + public static void PreLoad(int count) + { + XSingleton.singleton.CreateInAdvance(XBillboardComponent.HPBAR_TEMPLATE, count, ECreateHideType.NotHide); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_FightGroupChanged, new XComponent.XEventHandler(this.FightGroupChangeMyself)); + } + + private bool FightGroupChangeMyself(XEventArgs e) + { + XFightGroupChangedArgs xfightGroupChangedArgs = e as XFightGroupChangedArgs; + bool flag = xfightGroupChangedArgs == null || xfightGroupChangedArgs.targetEntity == null || !xfightGroupChangedArgs.targetEntity.IsPlayer; + bool result; + if (flag) + { + result = true; + } + else + { + List all = XSingleton.singleton.GetAll(); + for (int i = 0; i < all.Count; i++) + { + bool flag2 = all[i].Attributes == null; + if (!flag2) + { + bool flag3 = all[i].BillBoard != null; + if (flag3) + { + all[i].BillBoard.Refresh(); + } + } + } + result = true; + } + return result; + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + bool flag = XSingleton.singleton.HpbarRoot != null; + if (flag) + { + XSingleton.singleton.HpbarRoot.gameObject.SetActive(true); + } + bool flag2 = XSingleton.singleton.NpcHpbarRoot != null; + if (flag2) + { + XSingleton.singleton.NpcHpbarRoot.gameObject.SetActive(true); + } + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag) + { + bool flag2 = !XSingleton.singleton.IsPVPScene() && !XSingleton.singleton.IsPVEScene(); + if (flag2) + { + XSingleton.singleton.AddErrorLog("Please set the scene PVE or PVP", null, null, null, null, null); + } + } + } + + public static void SetAllBillBoardState(BillBoardHideType type, bool state) + { + List all = XSingleton.singleton.GetAll(); + for (int i = 0; i < all.Count; i++) + { + bool flag = all[i].BillBoard == null; + if (!flag) + { + XBillboardShowCtrlEventArgs @event = XEventPool.GetEvent(); + @event.show = state; + @event.type = type; + @event.Firer = all[i]; + XSingleton.singleton.FireEvent(@event); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBillBoardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBillBoardDocument.cs.meta new file mode 100644 index 00000000..2eaf81cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBillBoardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 993b3a50c585fc44ea7a891002e2a761 +timeCreated: 1611404194 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBillboardComponent.cs b/Client/Assets/Scripts/XMainClient/XBillboardComponent.cs new file mode 100644 index 00000000..4339971c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBillboardComponent.cs @@ -0,0 +1,1636 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XBillboardComponent : XComponent + { + public override uint ID + { + get + { + return XBillboardComponent.uuID; + } + } + + public float viewDistance + { + get + { + return this._viewDistance; + } + } + + public bool alwaysShow + { + get + { + return this._alwaysShow; + } + } + + private bool isTerritoryFight + { + get + { + return XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT || XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Character_Billboard"); + + public static string HPBAR_TEMPLATE = "UI/Billboard/Billboard"; + + private static readonly string BOSS_ICON_ATLAS = "common/Billboard"; + + private static readonly string BOSS_ICON_SPRITE = "BOSSicon"; + + private static readonly string ELITE_ICON_ATLAS = "common/Billboard"; + + private static readonly string ELITE_ICON_SPRITE = "BOSSicon"; + + private static readonly string GUILD_ICON_ATLAS = "common/Billboard"; + + private static readonly string DESIGNATION_ATLAS = "common/Title"; + + private static readonly string MILITARY_ATLAS = "common/Billboard"; + + private static readonly string NPCFAVOR_ICON_SPRITE = "Blessing"; + + private static readonly string POINT_ATLAS = "common/Billboard"; + + private Transform _billboard = null; + + private float _heroHeight = 10f; + + private float f = 1f; + + private IUIDummy _uiDummy = null; + + private static float k = 0.001f; + + private static float[] fscale; + + private float _heroRidingHeight = 0.5f; + + private IXUIProgress _bloodBar = null; + + private IXUIProgress _indureBar; + + public IXUIBillBoardCompRef _compRef; + + public IXUISpecLabelSymbol _desiSpcSymbol; + + public IXUISpecLabelSymbol _guildSpcSymbol; + + public IXUISpecLabelSymbol _nameSpcSymbol; + + private bool InitByMaster = false; + + private string _nameColor = ""; + + private float _viewDistance = 0f; + + private bool _alwaysShow = false; + + private int _alwaysHide = 0; + + private BillboardUsage _secondbar_usage = BillboardUsage.Indure; + + private bool _bHitFlag = false; + + private uint _timer = 0u; + + private uint _hideTimer = 0u; + + private bool _onFreezeBuff = false; + + private UIBuffInfo _freezeBuffInfo; + + public static readonly Color billboard_red = new Color32(byte.MaxValue, 61, 35, byte.MaxValue); + + public static readonly Color billboard_yellow = new Color32(byte.MaxValue, byte.MaxValue, 0, byte.MaxValue); + + public static readonly Color billboard_gold = new Color32(byte.MaxValue, 153, 0, byte.MaxValue); + + public static readonly Color billboard_sgreen = new Color32(123, byte.MaxValue, 128, byte.MaxValue); + + public static readonly Color billboard_green = new Color32(92, byte.MaxValue, 0, byte.MaxValue); + + public static readonly Color billboard_blue = new Color32(0, 189, byte.MaxValue, byte.MaxValue); + + public static readonly Color billboard_white = new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, byte.MaxValue); + + public static readonly Color billboard_ally_hp = new Color32(byte.MaxValue, 236, 0, byte.MaxValue); + + public static readonly Color billboard_favor = new Color32(byte.MaxValue, 145, 69, byte.MaxValue); + + public static readonly Color nullColor = new Color32(0, 0, 0, 0); + + public static readonly string billboardString_red = "[ff3d23]"; + + public static readonly string billboardString_syellow = "[ffeb04]"; + + public static readonly string billboardString_blue = "[00bdff]"; + + public static readonly string billboardString_gold = "[ff9900]"; + + public static readonly string billboardString_white = "[ffffff]"; + + public bool _bHpbarVisible = false; + + public bool _bIndurebarVisible = false; + + private XTimerMgr.ElapsedEventHandler _resetOnHitCb = null; + + private bool _inited = false; + + private bool _active = false; + + private List TextDepthMgr = new List(); + + private List SpriteDepthMgr = new List(); + + private List BoardDepthMgr = new List(); + + private int pointType = int.Parse(XSingleton.singleton.GetValue("BigMeleePointType")); + + public XBillboardComponent() + { + this._resetOnHitCb = new XTimerMgr.ElapsedEventHandler(this.ResetOnHit); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + GameObject billboard = XBillBoardDocument.GetBillboard(this._entity.EngineObject.Position, this._entity.EngineObject.Rotation); + bool flag = billboard != null; + if (flag) + { + billboard.name = this._entity.ID.ToString() + "_billb"; + this._billboard = billboard.transform; + } + this._uiDummy = (this._billboard.GetComponent("UIDummy") as IUIDummy); + bool isNpc = this._entity.IsNpc; + if (isNpc) + { + IUIRect parent = XSingleton.singleton.NpcHpbarRoot.UIComponent as IUIRect; + XSingleton.singleton.AddChild(parent, billboard, XSingleton.singleton.NpcHpbarRoot); + } + else + { + IUIRect parent2 = XSingleton.singleton.HpbarRoot.UIComponent as IUIRect; + XSingleton.singleton.AddChild(parent2, billboard, XSingleton.singleton.HpbarRoot); + } + bool flag2 = XBillboardComponent.fscale == null; + if (flag2) + { + XSingleton.singleton.GetFloatList("BillboardScaleConfig", ref XBillboardComponent.fscale); + } + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_HUDAdd, new XComponent.XEventHandler(this.OnHit)); + base.RegisterEvent(XEventDefine.XEvent_GuildInfoChange, new XComponent.XEventHandler(this.OnGuildInfoChange)); + base.RegisterEvent(XEventDefine.XEvent_DesignationInfoChange, new XComponent.XEventHandler(this.OnDesignationInfoChange)); + base.RegisterEvent(XEventDefine.XEvent_TitleChange, new XComponent.XEventHandler(this.OnTitleNameChange)); + base.RegisterEvent(XEventDefine.XEvent_BillboardHide, new XComponent.XEventHandler(this.OnHideSelf)); + base.RegisterEvent(XEventDefine.XEvent_BillboardShowCtrl, new XComponent.XEventHandler(this.OnShowCtrl)); + base.RegisterEvent(XEventDefine.XEvent_FightGroupChanged, new XComponent.XEventHandler(this.OnFightGroupChange)); + base.RegisterEvent(XEventDefine.XEvent_BigMeleePointChange, new XComponent.XEventHandler(this.OnBigMeleePointChange)); + base.RegisterEvent(XEventDefine.XEvent_BigMeleeEnemyChange, new XComponent.XEventHandler(this.OnBigMeleeEnemyChange)); + } + + private bool OnHit(XEventArgs e) + { + this._bHitFlag = true; + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + } + this._timer = XSingleton.singleton.SetTimer(2f, this._resetOnHitCb, null); + return true; + } + + private void ResetOnHit(object o) + { + this._bHitFlag = false; + } + + private bool OnFightGroupChange(XEventArgs e) + { + this.Refresh(); + return true; + } + + public void Refresh() + { + this.Attached(); + } + + public override void Attached() + { + base.Attached(); + this._inited = true; + this._compRef = (this._billboard.GetComponent("XUIBillBoardCompRef") as IXUIBillBoardCompRef); + this._bloodBar = this._compRef.BloodBar; + this._indureBar = this._compRef.IndureBar; + this._desiSpcSymbol = this._compRef.DesiSpecLabelSymbol; + this._guildSpcSymbol = this._compRef.GuildSpecLabelSymbol; + this._nameSpcSymbol = this._compRef.NameSpecLabelSymbol; + this._active = this._billboard.gameObject.activeInHierarchy; + bool flag = !this._active; + if (!flag) + { + this._desiSpcSymbol.SetVisible(false); + this.UpdateDesignationPos(); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + this._alwaysShow = (!this._entity.IsRole && byID != null && byID.AlwaysHpBar); + bool flag2 = XSingleton.singleton.IsPVEScene(); + if (flag2) + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag3 = XSingleton.singleton.Player == null || XSingleton.singleton.Player.WatchTo == null; + if (flag3) + { + this._inited = false; + return; + } + } + bool flag4 = XSingleton.singleton.bSpectator ? XSingleton.singleton.IsOpponent(XSingleton.singleton.Player.WatchTo, this._entity) : XSingleton.singleton.IsOpponent(XSingleton.singleton.Player, this._entity); + this._viewDistance = XSingleton.singleton.GetVisibleDistance(0u); + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + this.SetupInfo(false, false, this._alwaysShow, false, "", XBillboardComponent.nullColor, XBillboardComponent.nullColor, XBillboardComponent.nullColor); + this.f = XBillboardComponent.fscale[0]; + } + else + { + bool flag5 = flag4; + if (flag5) + { + bool isBoss = this._entity.IsBoss; + if (isBoss) + { + this._viewDistance = 30f; + this.SetupInfo(true, false, this._alwaysShow, false, XBillboardComponent.billboardString_red, XBillboardComponent.nullColor, XBillboardComponent.nullColor, XBillboardComponent.nullColor); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr(XBillboardComponent.BOSS_ICON_ATLAS, XBillboardComponent.BOSS_ICON_SPRITE, false), + this.GetStr("", this._nameColor + this._entity.Attributes.Name, false), + this.GetStr(XBillboardComponent.BOSS_ICON_ATLAS, XBillboardComponent.BOSS_ICON_SPRITE, false) + }); + this.f = XBillboardComponent.fscale[1]; + } + else + { + bool isElite = this._entity.IsElite; + if (isElite) + { + this.SetupInfo(true, false, true, true, XBillboardComponent.billboardString_gold, XBillboardComponent.nullColor, XBillboardComponent.billboard_red, XBillboardComponent.billboard_yellow); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr(XBillboardComponent.ELITE_ICON_ATLAS, XBillboardComponent.ELITE_ICON_SPRITE, false), + this.GetStr("", this._nameColor + this._entity.Attributes.Name, false), + this.GetStr(XBillboardComponent.ELITE_ICON_ATLAS, XBillboardComponent.ELITE_ICON_SPRITE, false) + }); + this._alwaysShow = true; + this._bHpbarVisible = true; + this._bIndurebarVisible = true; + this._secondbar_usage = BillboardUsage.Indure; + this.f = XBillboardComponent.fscale[2]; + } + else + { + bool isOpposer = this._entity.IsOpposer; + if (isOpposer) + { + bool flag6 = this._entity.Prefab == "Empty_monster_trap"; + if (flag6) + { + this.SetupInfo(false, false, false, false, "", XBillboardComponent.nullColor, XBillboardComponent.billboard_red, XBillboardComponent.nullColor); + this._bHpbarVisible = false; + } + else + { + this.SetupInfo(false, false, true, false, "", XBillboardComponent.nullColor, XBillboardComponent.billboard_red, XBillboardComponent.nullColor); + this._bHpbarVisible = true; + } + this.f = XBillboardComponent.fscale[3]; + } + else + { + bool isRole = this._entity.IsRole; + if (isRole) + { + this.SetupInfo(true, true, true, false, XBillboardComponent.billboardString_red, XBillboardComponent.billboard_red, XBillboardComponent.billboard_red, XBillboardComponent.nullColor); + this._alwaysShow = true; + this._bHpbarVisible = true; + this._bIndurebarVisible = false; + this.SetupGuildInfo(); + this.f = XBillboardComponent.fscale[4]; + } + } + } + } + } + else + { + this._viewDistance = 10f; + bool flag7 = !this._entity.IsPuppet && !this._entity.IsSubstance; + if (flag7) + { + XEntityStatistics.RowData byID2 = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + bool flag8 = !this._entity.IsRole && byID2 != null; + if (flag8) + { + this.SetupInfo(!byID2.HideName, false, this._alwaysShow, false, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_blue, XBillboardComponent.billboard_ally_hp, XBillboardComponent.nullColor); + } + else + { + this.SetupInfo(true, false, this._alwaysShow, false, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_blue, XBillboardComponent.billboard_ally_hp, XBillboardComponent.nullColor); + } + this._bHpbarVisible = this._alwaysShow; + this.SetupGuildInfo(); + bool isRole2 = this._entity.IsRole; + if (isRole2) + { + this.f = XBillboardComponent.fscale[4]; + } + else + { + this.f = XBillboardComponent.fscale[6]; + } + } + } + } + } + else + { + bool flag9 = XSingleton.singleton.IsPVPScene(); + if (flag9) + { + this._viewDistance = 10f; + this._bHpbarVisible = true; + this._bIndurebarVisible = true; + bool isPlayer2 = this._entity.IsPlayer; + if (isPlayer2) + { + this.f = XBillboardComponent.fscale[0]; + } + else + { + this.f = XBillboardComponent.fscale[4]; + } + bool flag10 = (this._entity.IsRole || (this._entity.Attributes != null && this._entity.Attributes.HostID != 0UL)) && XSingleton.singleton.bSpectator; + if (flag10) + { + bool isPlayer3 = this._entity.IsPlayer; + if (isPlayer3) + { + this._bHpbarVisible = false; + this._bIndurebarVisible = false; + this.SetupInfo(false, false, false, false, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_blue, XBillboardComponent.billboard_green, XBillboardComponent.billboard_blue); + } + else + { + bool isRole3 = this._entity.IsRole; + if (isRole3) + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag12; + bool flag11 = !specificDocument.TryGetEntityIsBlueTeam(this._entity, out flag12); + if (flag11) + { + this._bHpbarVisible = false; + this._bIndurebarVisible = false; + this.SetupInfo(false, false, false, false, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_blue, XBillboardComponent.billboard_green, XBillboardComponent.billboard_blue); + } + else + { + bool flag13 = flag12; + if (flag13) + { + this.SetupInfo(true, true, true, true, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_green, XBillboardComponent.billboard_green, XBillboardComponent.billboard_blue); + } + else + { + this.SetupInfo(true, true, true, true, XBillboardComponent.billboardString_red, XBillboardComponent.billboard_green, XBillboardComponent.billboard_red, XBillboardComponent.billboard_blue); + } + this._alwaysShow = true; + this._secondbar_usage = BillboardUsage.MP; + this.SetupGuildInfo(); + } + XRoleAttributes xroleAttributes = this._entity.Attributes as XRoleAttributes; + this.DealWithTitleNameChange(0u, xroleAttributes.MilitaryRank); + } + else + { + bool flag14 = this._entity.Attributes != null && this._entity.Attributes.HostID > 0UL; + if (flag14) + { + XSpectateSceneDocument specificDocument2 = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag16; + bool flag15 = !specificDocument2.TryGetSummonedIsBlueTeam(this._entity, out flag16); + if (flag15) + { + this._bHpbarVisible = false; + this._bIndurebarVisible = false; + this.SetupInfo(false, false, false, false, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_blue, XBillboardComponent.billboard_green, XBillboardComponent.billboard_blue); + } + else + { + string nameColor = flag16 ? XBillboardComponent.billboardString_blue : XBillboardComponent.billboardString_red; + Color bloodColor = flag16 ? XBillboardComponent.billboard_green : XBillboardComponent.billboard_red; + this._bIndurebarVisible = false; + XEntityStatistics.RowData byID3 = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + this.SetupInfo(byID3 == null || !byID3.HideName, false, true, false, nameColor, XBillboardComponent.billboard_green, bloodColor, XBillboardComponent.billboard_blue); + this._bHpbarVisible = this._alwaysShow; + this._secondbar_usage = BillboardUsage.MP; + } + } + } + } + } + else + { + bool flag17 = !this._entity.IsPlayer && XSingleton.singleton.IsOpponent(XSingleton.singleton.Player, this._entity); + if (flag17) + { + bool flag18 = !this._entity.IsRole; + if (flag18) + { + this._bIndurebarVisible = false; + XEntityStatistics.RowData byID4 = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + bool flag19 = byID4 != null; + if (flag19) + { + this.SetupInfo(!byID4.HideName, false, true, false, XBillboardComponent.billboardString_red, XBillboardComponent.billboard_red, XBillboardComponent.billboard_red, XBillboardComponent.nullColor); + } + else + { + this.SetupInfo(true, true, true, true, XBillboardComponent.billboardString_red, XBillboardComponent.billboard_red, XBillboardComponent.billboard_red, XBillboardComponent.billboard_blue); + } + this.SetupGuildInfo(); + this._bHpbarVisible = this._alwaysShow; + } + else + { + this.SetupInfo(true, true, true, true, XBillboardComponent.billboardString_red, XBillboardComponent.billboard_red, XBillboardComponent.billboard_red, XBillboardComponent.billboard_blue); + this.SetupGuildInfo(); + XRoleAttributes xroleAttributes2 = this._entity.Attributes as XRoleAttributes; + this.DealWithTitleNameChange(0u, xroleAttributes2.MilitaryRank); + } + this._secondbar_usage = BillboardUsage.MP; + } + else + { + bool flag20 = !this._entity.IsPlayer && !this._entity.IsRole; + if (flag20) + { + this._bIndurebarVisible = false; + XEntityStatistics.RowData byID5 = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + bool flag21 = byID5 != null; + if (flag21) + { + this.SetupInfo(!byID5.HideName, false, true, false, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_blue, XBillboardComponent.billboard_green, XBillboardComponent.nullColor); + } + else + { + this.SetupInfo(true, true, true, true, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_blue, XBillboardComponent.billboard_green, XBillboardComponent.billboard_blue); + } + this.SetupGuildInfo(); + this._bHpbarVisible = this._alwaysShow; + } + else + { + bool flag22 = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_FIGHT; + if (flag22) + { + this.SetupInfo(true, true, true, true, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_white, XBillboardComponent.billboard_green, XBillboardComponent.billboard_blue); + } + else + { + this.SetupInfo(true, true, true, true, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_blue, XBillboardComponent.billboard_green, XBillboardComponent.billboard_blue); + } + this.SetupGuildInfo(); + bool isPlayer4 = this._entity.IsPlayer; + if (isPlayer4) + { + this.DealWithTitleNameChange(XSingleton.singleton.XPlayerData.TitleID, XSingleton.singleton.XPlayerData.MilitaryRank); + } + else + { + XRoleAttributes xroleAttributes3 = this._entity.Attributes as XRoleAttributes; + this.DealWithTitleNameChange(0u, xroleAttributes3.MilitaryRank); + } + } + this._secondbar_usage = BillboardUsage.MP; + } + } + } + else + { + bool isPlayer5 = this._entity.IsPlayer; + if (isPlayer5) + { + this.SetupInfo(true, true, false, false, XBillboardComponent.billboardString_blue, XBillboardComponent.billboard_sgreen, XBillboardComponent.nullColor, XBillboardComponent.nullColor); + this.SetupGuildInfo(); + XDesignationDocument specificDocument3 = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + this.DealWithDesignation(specificDocument3.CoverDesignationID, specificDocument3.SpecialDesignation); + this.DealWithTitleNameChange(XSingleton.singleton.XPlayerData.TitleID, XSingleton.singleton.XPlayerData.MilitaryRank); + this.f = XBillboardComponent.fscale[0]; + } + else + { + bool flag23 = XSingleton.singleton.IsAlly(this._entity); + if (flag23) + { + this._viewDistance = Mathf.Sqrt(XQualitySetting._FadeDistance); + bool isRole4 = this._entity.IsRole; + if (isRole4) + { + this.SetupInfo(true, true, false, false, XBillboardComponent.billboardString_white, XBillboardComponent.billboard_sgreen, XBillboardComponent.nullColor, XBillboardComponent.nullColor); + this.SetupGuildInfo(); + XRoleAttributes xroleAttributes4 = this._entity.Attributes as XRoleAttributes; + this.DealWithDesignation(xroleAttributes4.DesignationID, xroleAttributes4.SpecialDesignation); + this.DealWithTitleNameChange(this._entity.Attributes.TitleID, xroleAttributes4.MilitaryRank); + this.f = XBillboardComponent.fscale[4]; + } + else + { + this.SetupInfo(true, false, this._alwaysShow, false, XBillboardComponent.billboardString_white, XBillboardComponent.billboard_white, XBillboardComponent.nullColor, XBillboardComponent.nullColor); + this.f = XBillboardComponent.fscale[6]; + } + } + else + { + bool isNpc = this._entity.IsNpc; + if (isNpc) + { + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(this._entity.TypeID); + bool flag24 = byNPCID.NPCType == 2u; + if (flag24) + { + this._nameSpcSymbol.SetVisible(false); + } + else + { + XNPCFavorDocument specificDocument4 = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + bool flag25 = specificDocument4.IsShowNPCFavoritePlayer(this._entity.TypeID); + if (flag25) + { + this.SetupInfo(true, true, this._alwaysShow, false, XBillboardComponent.billboardString_syellow, XBillboardComponent.billboard_favor, XBillboardComponent.nullColor, XBillboardComponent.nullColor); + this.SetupNpcFavorInfo(); + } + else + { + this.SetupInfo(true, false, this._alwaysShow, false, XBillboardComponent.billboardString_syellow, XBillboardComponent.nullColor, XBillboardComponent.nullColor, XBillboardComponent.nullColor); + } + this._viewDistance = 10f; + this.f = XBillboardComponent.fscale[5]; + } + } + } + } + } + } + this.DrawStr(this._nameSpcSymbol); + bool isPlayer6 = this._entity.IsPlayer; + if (isPlayer6) + { + this.SetBillBoardDepth(true, 0f); + } + else + { + this.KeepAllDepth(); + } + this._billboard.transform.localScale = new Vector3(XBillboardComponent.k * this.f, XBillboardComponent.k * this.f, XBillboardComponent.k * this.f); + this._uiDummy.alpha = 0f; + } + } + + private void SetupNpcFavorInfo() + { + bool flag = XSingleton.singleton.IsPVEScene() || XSingleton.singleton.IsPVPScene() || !this._entity.IsNpc; + if (flag) + { + this._guildSpcSymbol.SetVisible(false); + } + else + { + XNPCFavorDocument specificDocument = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + string favoritePlayerName = specificDocument.GetFavoritePlayerName(this._entity.TypeID); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr(XBillboardComponent.GUILD_ICON_ATLAS, XBillboardComponent.NPCFAVOR_ICON_SPRITE, false), + this.GetStr("", string.Format("{0}", favoritePlayerName), false) + }); + this.DrawStr(this._guildSpcSymbol); + XSingleton.singleton.ComSpriteStr.Clear(); + XSingleton.singleton.ComSpriteStr.Add(this.GetStr("", this._nameColor + this._entity.Attributes.Name, false)); + } + } + + private void SetBillBoardSameByMaster() + { + bool flag = XEntity.ValideEntity(this._entity.MobbedBy); + if (flag) + { + XBillboardComponent billBoard = this._entity.MobbedBy.BillBoard; + this._bHpbarVisible = billBoard._bHpbarVisible; + this._bIndurebarVisible = billBoard._bIndurebarVisible; + this._indureBar.SetForegroundColor(XBillboardComponent.billboard_blue); + this._desiSpcSymbol.Copy(billBoard._desiSpcSymbol); + this._guildSpcSymbol.Copy(billBoard._guildSpcSymbol); + this._nameSpcSymbol.Copy(billBoard._nameSpcSymbol); + } + } + + private bool OnGuildInfoChange(XEventArgs e) + { + this.SetupGuildInfo(); + this.UpdateDesignationPos(); + this.KeepAllDepth(); + return true; + } + + private void UpdateDesignationPos() + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.bInGuild; + if (flag) + { + this._desiSpcSymbol.gameObject.transform.localPosition = new Vector3(0f, 65f, 0f); + } + else + { + this._desiSpcSymbol.gameObject.transform.localPosition = new Vector3(0f, 96f, 0f); + } + } + else + { + bool isRole = this._entity.IsRole; + if (isRole) + { + XRoleAttributes xroleAttributes = this._entity.Attributes as XRoleAttributes; + bool flag2 = xroleAttributes != null; + if (flag2) + { + bool flag3 = string.IsNullOrEmpty(xroleAttributes.GuildName) && XSingleton.singleton.SceneType != SceneType.SCENE_BIGMELEE_FIGHT; + if (flag3) + { + this._desiSpcSymbol.gameObject.transform.localPosition = new Vector3(0f, 65f, 0f); + } + else + { + this._desiSpcSymbol.gameObject.transform.localPosition = new Vector3(0f, 96f, 0f); + } + } + } + } + } + + public void OnFightDesignationInfoChange(uint id) + { + bool isTerritoryFight = this.isTerritoryFight; + if (isTerritoryFight) + { + bool isRole = this._entity.IsRole; + if (isRole) + { + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + FightDesignation.RowData designation = specificDocument.GetDesignation(id); + this._desiSpcSymbol.SetVisible(id != 0u && designation != null); + bool flag = id != 0u && designation != null; + if (flag) + { + bool flag2 = string.IsNullOrEmpty(designation.Effect); + if (flag2) + { + this._desiSpcSymbol.Board.SetVisible(true); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr("", designation.Color + designation.Designation, false) + }); + this.DrawStr(this._desiSpcSymbol); + } + else + { + this._desiSpcSymbol.Board.SetVisible(false); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr(XBillboardComponent.DESIGNATION_ATLAS, designation.Effect, false) + }); + this.DrawStr(this._desiSpcSymbol); + } + } + } + } + } + + private void DealWithDesignation(uint id, string specDesi) + { + bool isTerritoryFight = this.isTerritoryFight; + if (!isTerritoryFight) + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + DesignationTable.RowData byID = specificDocument._DesignationTable.GetByID((int)id); + bool flag = byID == null; + if (flag) + { + id = 0u; + } + this._desiSpcSymbol.SetVisible(id > 0u); + bool flag2 = id > 0u; + if (flag2) + { + bool flag3 = byID.Effect == ""; + if (flag3) + { + this._desiSpcSymbol.Board.SetVisible(true); + bool special = byID.Special; + if (special) + { + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr("", byID.Color + specDesi, false) + }); + } + else + { + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr("", byID.Color + byID.Designation, false) + }); + } + this.DrawStr(this._desiSpcSymbol); + } + else + { + this._desiSpcSymbol.Board.SetVisible(false); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr(byID.Atlas, byID.Effect, false) + }); + this.DrawStr(this._desiSpcSymbol); + } + } + } + } + + public bool OnDesignationInfoChange(XEventArgs e = null) + { + bool flag = XSingleton.singleton.IsPVEScene() || XSingleton.singleton.IsPVPScene(); + bool result; + if (flag) + { + result = true; + } + else + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + this.DealWithDesignation(specificDocument.CoverDesignationID, specificDocument.SpecialDesignation); + } + else + { + bool isRole = this._entity.IsRole; + if (isRole) + { + XRoleAttributes xroleAttributes = this._entity.Attributes as XRoleAttributes; + this.DealWithDesignation(xroleAttributes.DesignationID, xroleAttributes.SpecialDesignation); + } + } + this.KeepAllDepth(); + result = true; + } + return result; + } + + private void DealWithTitleNameChange(uint titleId, uint level) + { + XSingleton.singleton.ComSpriteStr.Clear(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall || XSingleton.singleton.SceneType == SceneType.SCENE_PVP || XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE || XSingleton.singleton.SceneType == SceneType.SCENE_GPR || XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT || XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT; + if (flag) + { + MilitaryRankByExploit.RowData byMilitaryRank = XMilitaryRankDocument._militaryReader.GetByMilitaryRank(level); + bool flag2 = byMilitaryRank != null; + if (flag2) + { + XSingleton.singleton.ComSpriteStr.Add(this.GetStr(XBillboardComponent.MILITARY_ATLAS, byMilitaryRank.Icon, false)); + } + } + bool flag3 = !XSingleton.singleton.IsPVPScene(); + if (flag3) + { + bool flag4 = titleId > 0u; + if (flag4) + { + TitleTable.RowData title = XTitleDocument.GetTitle(titleId); + bool flag5 = title != null; + if (flag5) + { + XSingleton.singleton.ComSpriteStr.Add(this.GetStr(title.RankAtlas, title.RankIcon, true)); + } + } + } + XSingleton.singleton.ComSpriteStr.Add(this.GetStr("", this._nameColor + this._entity.Attributes.Name, false)); + } + + public bool OnTitleNameChange(XEventArgs e = null) + { + bool flag = XSingleton.singleton.IsPVEScene(); + bool result; + if (flag) + { + result = true; + } + else + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + this.DealWithTitleNameChange(XSingleton.singleton.XPlayerData.TitleID, XSingleton.singleton.XPlayerData.MilitaryRank); + } + else + { + bool isRole = this._entity.IsRole; + if (isRole) + { + XRoleAttributes xroleAttributes = this._entity.Attributes as XRoleAttributes; + this.DealWithTitleNameChange(this._entity.Attributes.TitleID, xroleAttributes.MilitaryRank); + } + } + this.DrawStr(this._nameSpcSymbol); + this.KeepAllDepth(); + result = true; + } + return result; + } + + public void OnGuildCollectNpcNameChange(string name) + { + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr("", this._nameColor + name, false) + }); + this.DrawStr(this._nameSpcSymbol); + } + + private void SetupInfo(bool nameState, bool guildState, bool bloodBarState, bool indureBarState, string nameColor, Color guildColor, Color bloodColor, Color indureColor) + { + if (bloodBarState) + { + this._bloodBar.gameObject.SetActive(true); + this._bloodBar.SetForegroundColor(bloodColor); + } + else + { + this._bloodBar.gameObject.SetActive(false); + } + if (nameState) + { + this._nameSpcSymbol.SetVisible(true); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr("", nameColor + this._entity.Attributes.Name, false) + }); + this._nameColor = nameColor; + } + else + { + this._nameSpcSymbol.SetVisible(false); + } + if (guildState) + { + this._guildSpcSymbol.SetVisible(true); + this._guildSpcSymbol.SetColor(guildColor); + } + else + { + this._guildSpcSymbol.SetVisible(false); + } + if (indureBarState) + { + this._indureBar.gameObject.SetActive(true); + this._indureBar.SetForegroundColor(indureColor); + } + else + { + this._indureBar.gameObject.SetActive(false); + } + } + + private void SetupGuildInfo() + { + bool flag = XSingleton.singleton.IsPVEScene() || XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_FIGHT || XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_FIGHT; + if (flag) + { + this._guildSpcSymbol.SetVisible(false); + } + else + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument.bInGuild; + if (bInGuild) + { + this._guildSpcSymbol.SetVisible(true); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr(XBillboardComponent.GUILD_ICON_ATLAS, XGuildDocument.GetPortraitName(specificDocument.BasicData.portraitIndex), false), + this.GetStr("", string.Format("<{0}>", specificDocument.BasicData.guildName), false) + }); + this.DrawStr(this._guildSpcSymbol); + } + else + { + this._guildSpcSymbol.SetVisible(false); + } + } + else + { + bool isRole = this._entity.IsRole; + if (isRole) + { + XRoleAttributes xroleAttributes = this._entity.Attributes as XRoleAttributes; + bool flag2 = xroleAttributes != null; + if (flag2) + { + bool flag3 = string.IsNullOrEmpty(xroleAttributes.GuildName); + if (flag3) + { + this._guildSpcSymbol.SetVisible(false); + } + else + { + this._guildSpcSymbol.SetVisible(true); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr(XBillboardComponent.GUILD_ICON_ATLAS, XGuildDocument.GetPortraitName((int)xroleAttributes.GuildPortrait), false), + this.GetStr("", string.Format("<{0}>", xroleAttributes.GuildName), false) + }); + this.DrawStr(this._guildSpcSymbol); + } + } + } + else + { + bool isBoss = this._entity.IsBoss; + if (isBoss) + { + this._guildSpcSymbol.SetVisible(false); + } + } + } + } + } + + public override void OnDetachFromHost() + { + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + } + bool flag2 = this._hideTimer > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._hideTimer); + } + this._alwaysHide = 0; + this._alwaysShow = false; + this.DestroyGameObjects(); + this._entity.BillBoard = null; + base.OnDetachFromHost(); + } + + private void DestroyGameObjects() + { + bool flag = this._billboard != null; + if (flag) + { + this.ClearRef(this._desiSpcSymbol); + this.ClearRef(this._guildSpcSymbol); + this.ClearRef(this._nameSpcSymbol); + XBillBoardDocument.ReturnBillboard(this._billboard.gameObject); + this._billboard = null; + } + } + + private void ClearRef(IXUISpecLabelSymbol symbol) + { + bool flag = symbol != null; + if (flag) + { + for (int i = 0; i < symbol.SpriteList.Length; i++) + { + symbol.SpriteList[i].spriteName = ""; + symbol.SetSpriteVisibleFalse(i); + } + } + } + + private bool OnHideSelf(XEventArgs e) + { + this._alwaysHide |= 1 << XFastEnumIntEqualityComparer.ToInt(BillBoardHideType.LevelScript); + XBillboardHideEventArgs xbillboardHideEventArgs = e as XBillboardHideEventArgs; + bool flag = this._hideTimer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._hideTimer); + } + this._hideTimer = XSingleton.singleton.SetTimer(xbillboardHideEventArgs.hidetime, new XTimerMgr.ElapsedEventHandler(this.ReShow), null); + return true; + } + + private void ReShow(object o) + { + this._alwaysHide &= ~(1 << XFastEnumIntEqualityComparer.ToInt(BillBoardHideType.LevelScript)); + } + + private bool OnShowCtrl(XEventArgs e) + { + XBillboardShowCtrlEventArgs xbillboardShowCtrlEventArgs = e as XBillboardShowCtrlEventArgs; + bool flag = xbillboardShowCtrlEventArgs.type == BillBoardHideType.Invalid; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("undefine billboard hide type. check code or contect pyc.", null, null, null, null, null); + result = false; + } + else + { + bool show = xbillboardShowCtrlEventArgs.show; + if (show) + { + this._alwaysHide &= ~(1 << XFastEnumIntEqualityComparer.ToInt(xbillboardShowCtrlEventArgs.type)); + } + else + { + this._alwaysHide |= 1 << XFastEnumIntEqualityComparer.ToInt(xbillboardShowCtrlEventArgs.type); + } + result = true; + } + return result; + } + + public override void PostUpdate(float fDeltaT) + { + XEntity xentity = this._host as XEntity; + bool flag = xentity == null; + if (!flag) + { + bool flag2 = !this._entity.IsDummy && !this._active && this._billboard != null; + if (flag2) + { + bool activeInHierarchy = this._billboard.gameObject.activeInHierarchy; + if (!activeInHierarchy) + { + return; + } + this.Attached(); + } + bool flag3 = !this.InitByMaster && this._entity.MobbedBy != null; + if (flag3) + { + this.InitByMaster = true; + XOthersAttributes xothersAttributes = this._entity.Attributes as XOthersAttributes; + bool sameBillBoardByMaster = xothersAttributes.SameBillBoardByMaster; + if (sameBillBoardByMaster) + { + this.SetBillBoardSameByMaster(); + } + } + bool flag4 = !this.InitByMaster && this._entity.Attributes != null && this._entity.Attributes.HostID > 0UL; + if (flag4) + { + this.InitByMaster = true; + this.Refresh(); + } + bool isDummy = this._entity.IsDummy; + if (isDummy) + { + this.UpdateDummyBillboard(); + } + else + { + bool flag5 = !XEntity.ValideEntity(xentity); + if (flag5) + { + this._uiDummy.alpha = 0f; + } + else + { + bool flag6 = this._alwaysHide != 0; + if (flag6) + { + this._uiDummy.alpha = 0f; + } + else + { + XPlayer player = XSingleton.singleton.Player; + bool flag7 = player == null || player.EngineObject == null; + if (flag7) + { + this.DestroyGameObjects(); + } + else + { + float num = Vector3.Distance(xentity.EngineObject.Position, player.EngineObject.Position); + bool flag8 = num > this._viewDistance && !this._bHitFlag; + if (flag8) + { + bool flag9 = this._billboard != null; + if (flag9) + { + bool flag10 = !this._alwaysShow; + if (flag10) + { + this._uiDummy.alpha = 0f; + return; + } + } + } + bool flag11 = this._billboard != null; + if (flag11) + { + this.UpdateHpBar(); + } + } + } + } + } + } + } + + private void UpdateHpBar() + { + bool flag = !this._inited && XSingleton.singleton.Player != null && XSingleton.singleton.Player.WatchTo != null; + if (flag) + { + this.Attached(); + } + bool flag2 = this._uiDummy.alpha == 0f; + if (flag2) + { + this._uiDummy.alpha = 1f; + } + float num = 0.2f; + bool flag3 = !this._bloodBar.gameObject.activeSelf; + if (flag3) + { + num -= 0.05f; + } + bool flag4 = !this._indureBar.gameObject.activeSelf; + if (flag4) + { + num -= 0.05f; + } + this._heroHeight = ((this._entity.Transformer == null || !XEntity.ValideEntity(this._entity.Transformer)) ? this._entity.Height : this._entity.Transformer.Height); + bool flag5 = this._entity.Attributes != null && this._entity.Attributes.Outlook != null && this._entity.Attributes.Outlook.state != null && this._entity.Attributes.Outlook.state.bMounted; + float num2; + if (flag5) + { + num2 = this._heroRidingHeight; + } + else + { + num2 = this._heroHeight; + } + Vector3 position; + position= new Vector3(this._entity.EngineObject.Position.x, this._entity.EngineObject.Position.y + num2 + num, this._entity.EngineObject.Position.z); + bool flag6 = this._entity.Prefab == "Empty_monster"; + if (flag6) + { + bool flag7 = this._entity.Skill.IsCasting() && this._entity.Skill.CurrentSkill.Target != null; + if (flag7) + { + position= new Vector3(this._entity.Skill.CurrentSkill.Target.MoveObj.Position.x, this._entity.Skill.CurrentSkill.Target.MoveObj.Position.y + this._heroHeight + num, this._entity.Skill.CurrentSkill.Target.EngineObject.Position.z); + } + } + this._billboard.position = position; + this._billboard.rotation = XSingleton.singleton.GameCamera.Rotaton; + bool flag8 = XSingleton.singleton.Player != null; + if (flag8) + { + float num3 = XBillboardComponent.k; + float num4 = 6.27f; + float num5 = Vector3.Distance(XSingleton.singleton.GameCamera.UnityCamera.transform.position, this._billboard.position); + bool flag9 = !this._entity.IsPlayer; + if (flag9) + { + bool flag10 = Time.frameCount % 15 == 0; + if (flag10) + { + this.SetBillBoardDepth(false, num5); + } + } + num3 = num3 * this.f * num5 / num4; + this._billboard.localScale = new Vector3(num3, num3, num3); + } + this._bloodBar.gameObject.SetActive(this._bHpbarVisible && !this._entity.Present.IsShowUp); + this._indureBar.gameObject.SetActive(this._bIndurebarVisible && !this._entity.Present.IsShowUp); + bool flag11 = this._entity.Attributes != null; + if (flag11) + { + bool onFreezeBuff = this._onFreezeBuff; + if (onFreezeBuff) + { + bool flag12 = this._freezeBuffInfo == null; + if (!flag12) + { + this._bloodBar.gameObject.SetActive(true); + this._indureBar.gameObject.SetActive(false); + this._bloodBar.value = (float)(this._freezeBuffInfo.HP / this._freezeBuffInfo.maxHP); + Vector3 localScale = this._billboard.localScale; + this._billboard.localScale = localScale * 1.4f; + return; + } + this._onFreezeBuff = false; + } + double attr = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double num6 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag13 = num6 < 0.0; + if (flag13) + { + num6 = 0.0; + } + this._bloodBar.value = (float)(num6 / attr); + bool activeInHierarchy = this._indureBar.gameObject.activeInHierarchy; + if (activeInHierarchy) + { + bool flag14 = this._secondbar_usage == BillboardUsage.Indure; + if (flag14) + { + double attr2 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Total); + double attr3 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Total); + bool flag15 = attr2 > 0.0; + if (flag15) + { + this._indureBar.gameObject.SetActive(true); + bool flag16 = attr3 < attr2; + if (flag16) + { + this._indureBar.value = (float)(attr3 / attr2); + } + else + { + this._indureBar.value = 1f; + } + } + else + { + this._indureBar.gameObject.SetActive(false); + } + } + else + { + bool flag17 = this._secondbar_usage == BillboardUsage.MP; + if (flag17) + { + double attr4 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxMP_Total); + double attr5 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + bool flag18 = attr5 < attr4; + if (flag18) + { + this._indureBar.value = (float)(attr5 / attr4); + } + else + { + this._indureBar.value = 1f; + } + } + } + } + } + } + + public void SetFreezeBuffState(UIBuffInfo buff) + { + bool flag = buff == null; + if (flag) + { + this._onFreezeBuff = false; + this._freezeBuffInfo = null; + bool flag2 = XEntity.ValideEntity(this._entity); + if (flag2) + { + this.Attached(); + } + } + else + { + this._onFreezeBuff = true; + this._freezeBuffInfo = buff; + this._nameSpcSymbol.SetVisible(true); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)buff.buffID, (int)buff.buffLevel); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr("", XBillboardComponent.billboardString_red + buffData.BuffName, false) + }); + this.DrawStr(this._nameSpcSymbol); + this._bloodBar.SetForegroundColor(XBillboardComponent.billboard_red); + } + } + + public void HideBillboard() + { + this._uiDummy.alpha = 0f; + } + + public void AttachDummyBillboard(string name, int level, int prof) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.SelectChar; + if (flag) + { + this._heroHeight = XSingleton.singleton.GetSelectCharDummyHeight((uint)prof); + } + else + { + this._heroHeight = 1f; + } + float num = 0.003f; + this._billboard.localScale = new Vector3(num, num, num); + this._uiDummy.alpha = 1f; + this._compRef = (this._billboard.GetComponent("XUIBillBoardCompRef") as IXUIBillBoardCompRef); + this._bloodBar = this._compRef.BloodBar; + this._indureBar = this._compRef.IndureBar; + this._guildSpcSymbol = this._compRef.GuildSpecLabelSymbol; + this._desiSpcSymbol = this._compRef.DesiSpecLabelSymbol; + this._nameSpcSymbol = this._compRef.NameSpecLabelSymbol; + this._bloodBar.SetVisible(false); + this._indureBar.SetVisible(false); + this._guildSpcSymbol.SetVisible(false); + this._desiSpcSymbol.SetVisible(false); + this._nameSpcSymbol.SetVisible(true); + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr("", string.Concat(new object[] + { + "Lv.", + level, + " ", + name + }), false) + }); + this.DrawStr(this._nameSpcSymbol); + } + + public float GetExitTitleHeight() + { + float num = 0f; + bool flag = this._billboard != null; + if (flag) + { + for (int i = 0; i < this._billboard.childCount; i++) + { + Transform child = this._billboard.GetChild(i); + bool activeSelf = child.gameObject.activeSelf; + if (activeSelf) + { + num = Mathf.Max(num, child.localPosition.y); + } + } + } + return num; + } + + public bool AttachChild(Transform child, bool updatePos = false, float childHeight = 60f) + { + bool flag = this._billboard != null; + bool result; + if (flag) + { + child.parent = this._billboard; + child.transform.localRotation = Quaternion.identity; + child.transform.localScale = Vector3.one; + if (updatePos) + { + float exitTitleHeight = this.GetExitTitleHeight(); + child.transform.localPosition = new Vector3(0f, exitTitleHeight + childHeight, 0f); + } + else + { + child.transform.localPosition = Vector3.zero; + } + result = true; + } + else + { + result = false; + } + return result; + } + + public bool UnAttachChild(Transform child) + { + bool flag = this._billboard != null; + if (flag) + { + for (int i = 0; i < this._billboard.childCount; i++) + { + Transform child2 = this._billboard.GetChild(i); + bool flag2 = child2 == child; + if (flag2) + { + child.parent = null; + return true; + } + } + } + return false; + } + + private void UpdateDummyBillboard() + { + Vector3 vector; + vector= new Vector3(this._entity.EngineObject.Position.x, this._entity.EngineObject.Position.y + this._heroHeight, this._entity.EngineObject.Position.z); + Vector3 vector2 = XSingleton.singleton.Horizontal(XSingleton.singleton.GameCamera.CameraTrans.position - this._entity.EngineObject.Position); + this._billboard.position = vector + vector2 * 0.5f; + this._billboard.rotation = XSingleton.singleton.GameCamera.Rotaton; + } + + public void SetSelectCharStageScale() + { + this._billboard.localScale = this._billboard.localScale / 3f * 2f; + } + + private void KeepAllDepth() + { + this.TextDepthMgr.Clear(); + this.SpriteDepthMgr.Clear(); + this.BoardDepthMgr.Clear(); + this.KeepDepth(this._desiSpcSymbol); + this.KeepDepth(this._guildSpcSymbol); + this.KeepDepth(this._nameSpcSymbol); + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + this.SetBillBoardDepth(true, 0f); + } + } + + private void KeepDepth(IXUISpecLabelSymbol symbol) + { + bool flag = symbol.IsVisible(); + if (flag) + { + bool flag2 = symbol.Label.IsVisible(); + if (flag2) + { + this.TextDepthMgr.Add(symbol.Label); + } + bool flag3 = symbol.Board.IsVisible(); + if (flag3) + { + this.BoardDepthMgr.Add(symbol.Board); + } + for (int i = 0; i < symbol.SpriteList.Length; i++) + { + bool flag4 = symbol.SpriteList[i].IsVisible(); + if (flag4) + { + this.SpriteDepthMgr.Add(symbol.SpriteList[i]); + } + } + } + } + + private void SetBillBoardDepth(bool isMy, float dis = 0f) + { + bool flag = !this._billboard.gameObject.activeInHierarchy; + if (!flag) + { + int num = isMy ? 10 : (-(int)(dis * 100f)); + for (int i = 0; i < this.TextDepthMgr.Count; i++) + { + this.TextDepthMgr[i].spriteDepth = num; + } + for (int j = 0; j < this.SpriteDepthMgr.Count; j++) + { + bool flag2 = this.SpriteDepthMgr[j].spriteName != null; + if (flag2) + { + this.SpriteDepthMgr[j].spriteDepth = num; + } + } + for (int k = 0; k < this.BoardDepthMgr.Count; k++) + { + bool flag3 = this.BoardDepthMgr[k].spriteName != null; + if (flag3) + { + this.BoardDepthMgr[k].spriteDepth = num - 1; + } + } + } + } + + private void DrawStr(IXUISpecLabelSymbol symbol) + { + symbol.SetInputText(XSingleton.singleton.ComSpriteStr); + } + + private string GetStr(string atlas, string sprite, bool isAnimation = false) + { + string result; + if (isAnimation) + { + result = string.Format("{0}|{1}|1", atlas, sprite); + } + else + { + result = string.Format("{0}|{1}|0", atlas, sprite); + } + return result; + } + + private bool OnBigMeleePointChange(XEventArgs e) + { + XBigMeleeBattleDocument.RoleData roleData = XBigMeleeBattleDocument.Doc.userIdToRole[this._entity.ID]; + this.SetBigMeleePointInfo(roleData.point, DlgBase.singleton.CurEnemy == this._entity.ID); + return true; + } + + private bool OnBigMeleeEnemyChange(XEventArgs e) + { + XBigMeleeEnemyChange xbigMeleeEnemyChange = e as XBigMeleeEnemyChange; + XBigMeleeBattleDocument.RoleData roleData = XBigMeleeBattleDocument.Doc.userIdToRole[this._entity.ID]; + this.SetBigMeleePointInfo(roleData.point, xbigMeleeEnemyChange.isEnemy); + return true; + } + + private void SetBigMeleePointInfo(uint point, bool isEnemy) + { + bool flag = this.pointType == 1; + if (flag) + { + int num = 1; + int num2 = 1; + int i; + for (i = (int)point; i >= 10; i /= 10) + { + num++; + num2 *= 10; + } + i = (int)point; + int num3 = 0; + string[] array; + if (isEnemy) + { + array = new string[num + 2]; + array[num3++] = this.GetStr(XBillboardComponent.POINT_ATLAS, "icon_cr", false); + } + else + { + array = new string[num + 1]; + } + array[num3++] = this.GetStr(XBillboardComponent.POINT_ATLAS, "NmFight_jf", false); + for (int j = num3; j < num3 + num; j++) + { + array[j] = this.GetStr(XBillboardComponent.POINT_ATLAS, string.Format("NmFight_{0}", i / num2), false); + i %= num2; + num2 /= 10; + } + XSingleton.singleton.BillBoardCommonSetSpriteStr(array); + } + else if (isEnemy) + { + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr(XBillboardComponent.POINT_ATLAS, "icon_cr", false), + this.GetStr("", string.Format("{0}:{1}", XStringDefineProxy.GetString("POINT"), point), false) + }); + } + else + { + XSingleton.singleton.BillBoardCommonSetSpriteStr(new string[] + { + this.GetStr("", string.Format("{0}:{1}", XStringDefineProxy.GetString("POINT"), point), false) + }); + } + this._guildSpcSymbol.SetVisible(true); + this.DrawStr(this._guildSpcSymbol); + XSingleton.singleton.ComSpriteStr.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBillboardComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XBillboardComponent.cs.meta new file mode 100644 index 00000000..f82911e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBillboardComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40593b326408e39498feb16f974c8ce9 +timeCreated: 1611403614 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBillboardHideEventArgs.cs b/Client/Assets/Scripts/XMainClient/XBillboardHideEventArgs.cs new file mode 100644 index 00000000..a54e3aa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBillboardHideEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XBillboardHideEventArgs : XEventArgs + { + public float hidetime; + + public XBillboardHideEventArgs() + { + this._eDefine = XEventDefine.XEvent_BillboardHide; + this.hidetime = 0f; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBillboardHideEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XBillboardHideEventArgs.cs.meta new file mode 100644 index 00000000..07549dfb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBillboardHideEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a3a75ac133e7d0439ba1b501375fa65 +timeCreated: 1611403308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBillboardShowCtrlEventArgs.cs b/Client/Assets/Scripts/XMainClient/XBillboardShowCtrlEventArgs.cs new file mode 100644 index 00000000..29346fe3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBillboardShowCtrlEventArgs.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal class XBillboardShowCtrlEventArgs : XEventArgs + { + public bool show; + + public BillBoardHideType type = BillBoardHideType.Invalid; + + public XBillboardShowCtrlEventArgs() + { + this._eDefine = XEventDefine.XEvent_BillboardShowCtrl; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBillboardShowCtrlEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XBillboardShowCtrlEventArgs.cs.meta new file mode 100644 index 00000000..4cc03b6f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBillboardShowCtrlEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9a75bca3c6568549a56b9522f016116 +timeCreated: 1611404900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBlackWhite.cs b/Client/Assets/Scripts/XMainClient/XBlackWhite.cs new file mode 100644 index 00000000..c8198ea3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBlackWhite.cs @@ -0,0 +1,13 @@ +using System; +using UnityEngine; + +public class XBlackWhite : XImageEffectBase +{ + private void OnRenderImage(RenderTexture source, RenderTexture dest) + { + base.material.SetTexture("_MainTex", source); + base.material.SetFloat("_iHeight", 1f); + base.material.SetFloat("_iWidth", 1f); + Graphics.Blit(source, dest, base.material); + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBlackWhite.cs.meta b/Client/Assets/Scripts/XMainClient/XBlackWhite.cs.meta new file mode 100644 index 00000000..093250bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBlackWhite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2638f991227f46d4db7514d7b23edb5a +timeCreated: 1611403467 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBlockInputBehaviour.cs b/Client/Assets/Scripts/XMainClient/XBlockInputBehaviour.cs new file mode 100644 index 00000000..6a067327 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBlockInputBehaviour.cs @@ -0,0 +1,9 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XBlockInputBehaviour : DlgBehaviourBase + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBlockInputBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XBlockInputBehaviour.cs.meta new file mode 100644 index 00000000..83e36458 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBlockInputBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f80381457e13a5849a1f7e4ecb9a7368 +timeCreated: 1611404890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBlockInputView.cs b/Client/Assets/Scripts/XMainClient/XBlockInputView.cs new file mode 100644 index 00000000..afdb6e5b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBlockInputView.cs @@ -0,0 +1,37 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBlockInputView : DlgBase + { + public override string fileName + { + get + { + return "Common/BlockInputPanel"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.AddLog("XBlockInputView OnShow", null, null, null, null, null, XDebugColor.XDebug_None); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.AddLog("XBlockInputView OnHide", null, null, null, null, null, XDebugColor.XDebug_None); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBlockInputView.cs.meta b/Client/Assets/Scripts/XMainClient/XBlockInputView.cs.meta new file mode 100644 index 00000000..15e3041c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBlockInputView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23909fa223d13be4d8ce08f9e7f89543 +timeCreated: 1611403455 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBodyBag.cs b/Client/Assets/Scripts/XMainClient/XBodyBag.cs new file mode 100644 index 00000000..56c903c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBodyBag.cs @@ -0,0 +1,145 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBodyBag + { + public XItem this[int key] + { + get + { + return this.Bag[key]; + } + set + { + this.Bag[key] = value; + } + } + + public int Length + { + get + { + return this.Bag.Length; + } + } + + private XItem[] Bag; + + public XBodyBag(int length) + { + this.Bag = new XItem[length]; + } + + public void UpdateItem(XItem item) + { + for (int i = 0; i < this.Bag.Length; i++) + { + bool flag = this.Bag[i] != null && this.Bag[i].uid == item.uid; + if (flag) + { + this.Bag[i].Recycle(); + this.Bag[i] = item; + break; + } + } + } + + public XItem GetItemByUID(ulong uid) + { + for (int i = 0; i < this.Bag.Length; i++) + { + bool flag = this.Bag[i] != null && this.Bag[i].uid == uid; + if (flag) + { + return this.Bag[i]; + } + } + return null; + } + + public XItem GetItemByID(int id) + { + for (int i = 0; i < this.Bag.Length; i++) + { + bool flag = this.Bag[i] != null && this.Bag[i].itemID == id; + if (flag) + { + return this.Bag[i]; + } + } + return null; + } + + public int GetItemCountByID(int id) + { + int num = 0; + for (int i = 0; i < this.Bag.Length; i++) + { + bool flag = this.Bag[i] != null && this.Bag[i].itemID == id; + if (flag) + { + num += this.Bag[i].itemCount; + } + } + return num; + } + + public bool HasItem(ulong uid) + { + for (int i = 0; i < this.Bag.Length; i++) + { + bool flag = this.Bag[i] != null && this.Bag[i].uid == uid; + if (flag) + { + return true; + } + } + return false; + } + + public bool GetItemPos(ulong uid, out int pos) + { + for (int i = 0; i < this.Bag.Length; i++) + { + bool flag = this.Bag[i] != null && this.Bag[i].uid == uid; + if (flag) + { + pos = i; + return true; + } + } + pos = -1; + return false; + } + + public XItem GetDefaultSelectedItem(ItemType type) + { + int num = 0; + bool flag = type == ItemType.EQUIP; + if (flag) + { + num = XFastEnumIntEqualityComparer.ToInt(EquipPosition.Mainweapon); + } + bool flag2 = num < this.Bag.Length; + if (flag2) + { + bool flag3 = this.Bag[num] != null && this.Bag[num].uid > 0UL; + if (flag3) + { + return this.Bag[num]; + } + } + for (int i = 0; i < this.Bag.Length; i++) + { + bool flag4 = this.Bag[i] != null && this.Bag[i].uid > 0UL; + if (flag4) + { + return this.Bag[i]; + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBodyBag.cs.meta b/Client/Assets/Scripts/XMainClient/XBodyBag.cs.meta new file mode 100644 index 00000000..2c3c17ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBodyBag.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bdce744ed1a89e54e875bdd8ab0a73ee +timeCreated: 1611404457 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBoss.cs b/Client/Assets/Scripts/XMainClient/XBoss.cs new file mode 100644 index 00000000..bdd3b9a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBoss.cs @@ -0,0 +1,43 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XBoss : XOpposer + { + public override bool Initilize(int flag) + { + base.Initilize(flag); + this._eEntity_Type |= XEntity.EnitityType.Entity_Boss; + this._layer = LayerMask.NameToLayer("BigGuy"); + bool flag2 = (flag & XFastEnumIntEqualityComparer.ToInt(XEntity.InitFlag.Entity_Transform)) == 0; + if (flag2) + { + this._qte = (XSingleton.singleton.CreateComponent(this, XQuickTimeEventComponent.uuID) as XQuickTimeEventComponent); + } + return true; + } + + public override void Dying() + { + base.Dying(); + } + + public override void OnDestroy() + { + bool flag = XSingleton.singleton.Boss == this; + if (flag) + { + XSingleton.singleton.Boss = null; + } + base.OnDestroy(); + } + + public override void OnCreated() + { + base.OnCreated(); + XSingleton.singleton.Boss = this; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBoss.cs.meta b/Client/Assets/Scripts/XMainClient/XBoss.cs.meta new file mode 100644 index 00000000..19239fb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBoss.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3cc5ff42abbef6c488a11474260d9a83 +timeCreated: 1611403602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBossBushDocument.cs b/Client/Assets/Scripts/XMainClient/XBossBushDocument.cs new file mode 100644 index 00000000..4e9b7cef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBossBushDocument.cs @@ -0,0 +1,232 @@ +using System; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBossBushDocument : XDocComponent + { + public override uint ID + { + get + { + return XBossBushDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XBossBushDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static BossRushBuffTable bossBuffTable = new BossRushBuffTable(); + + public static BossRushTable bossRushTable = new BossRushTable(); + + public int leftChanllageCnt; + + public BossRushData respData; + + public BossRushTable.RowData bossRushRow; + + public BossRushBuffTable.RowData bossBuff1Row; + + public BossRushBuffTable.RowData bossBuff2Row; + + public XEntityStatistics.RowData entityRow; + + public XEntityPresentation.RowData presentRow; + + public XBossBushDocument.RefreshConf refreshConfig = default(XBossBushDocument.RefreshConf); + + public UnitAppearance unitAppearance; + + public float rwdRate = 1f; + + public bool isSendingRefreshMsg = false; + + public struct RefreshConf + { + public int freeIndex; + + public int item1Index; + + public int item1Id; + + public int item2Id; + + public int item1Start; + + public int item1Add; + + public int item2Start; + + public int item2Add; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XBossBushDocument.AsyncLoader.AddTask("Table/BossRush", XBossBushDocument.bossRushTable, false); + XBossBushDocument.AsyncLoader.AddTask("Table/BossRushBuff", XBossBushDocument.bossBuffTable, false); + XBossBushDocument.AsyncLoader.Execute(callback); + } + + public override void OnGamePause(bool pause) + { + base.OnGamePause(pause); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + bool flag = DlgBase.singleton.isHallUI && DlgBase.singleton.backHall; + if (flag) + { + DlgBase.singleton.backHall = false; + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_DailyAcitivity); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_BOSSRUSH; + if (flag2) + { + DlgBase.singleton.OnBossFadein(); + } + } + + public void SendQuery(BossRushReqStatus type) + { + RpcC2G_BossRushReq rpcC2G_BossRushReq = new RpcC2G_BossRushReq(); + rpcC2G_BossRushReq.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_BossRushReq); + } + + public void Resp(BossRushReqStatus type, BossRushData res) + { + this.isSendingRefreshMsg = false; + this.respData = res; + bool flag = this.leftChanllageCnt <= 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BOSSRUSH_T_USELESS"), "fece00"); + DlgBase.singleton.SetVisible(false, true); + } + else + { + bool flag2 = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_BossRush); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BOSSRUSH_UNLOCK"), "fece00"); + } + else + { + bool flag3 = this.respData.confid == 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BOSSRUSH_UNLOCK"), "fece00"); + XSingleton.singleton.AddGreenLog("bossrush server error! Make sure your level correct!", null, null, null, null, null); + DlgBase.singleton.SetVisible(false, true); + } + else + { + this.bossRushRow = this.GetBossRushRow(res.confid); + bool flag4 = false; + for (int i = 0; i < XBossBushDocument.bossBuffTable.Table.Length; i++) + { + bool flag5 = XBossBushDocument.bossBuffTable.Table[i].BossRushBuffID == res.buffid1; + if (flag5) + { + this.bossBuff1Row = XBossBushDocument.bossBuffTable.Table[i]; + bool flag6 = this.bossBuff1Row.RewardBuff > 0f; + if (flag6) + { + flag4 = true; + this.rwdRate = this.bossBuff1Row.RewardBuff; + } + } + bool flag7 = XBossBushDocument.bossBuffTable.Table[i].BossRushBuffID == res.buffid2; + if (flag7) + { + this.bossBuff2Row = XBossBushDocument.bossBuffTable.Table[i]; + bool flag8 = this.bossBuff2Row.RewardBuff > 0f; + if (flag8) + { + flag4 = true; + this.rwdRate = this.bossBuff2Row.RewardBuff; + } + } + } + bool flag9 = !flag4; + if (flag9) + { + this.rwdRate = 1f; + } + this.entityRow = XSingleton.singleton.EntityStatistics.GetByID((uint)this.bossRushRow.bossid); + this.presentRow = XSingleton.singleton.EntityInfo.GetByPresentID(this.entityRow.PresentID); + bool flag10 = type == BossRushReqStatus.BOSSRUSH_REQ_BASEDATA; + if (flag10) + { + bool flag11 = DlgBase.singleton.IsVisible(); + if (flag11) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag12 = !DlgBase.singleton.IsVisible(); + if (flag12) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + DlgBase.singleton.Refresh(); + } + else + { + bool flag13 = DlgBase.singleton.IsVisible(); + if (flag13) + { + DlgBase.singleton.SetVisible(false, true); + } + DlgBase.singleton.OnResOpenAnimDlg(); + } + } + } + } + } + + public BossRushTable.RowData GetBossRushRow(int confid) + { + return XBossBushDocument.bossRushTable.GetByqniqueid((short)confid); + } + + public void ParseRefresh() + { + string value = XSingleton.singleton.GetValue("BossRushRefreshCost"); + string[] array = value.Split(XGlobalConfig.ListSeparator); + this.refreshConfig.freeIndex = int.Parse(array[0]); + this.refreshConfig.item1Index = int.Parse(array[1]) + this.refreshConfig.freeIndex; + this.refreshConfig.item1Id = int.Parse(array[2]); + this.refreshConfig.item2Id = int.Parse(array[3]); + this.refreshConfig.item1Start = int.Parse(array[4]); + this.refreshConfig.item1Add = int.Parse(array[5]); + this.refreshConfig.item2Start = int.Parse(array[6]); + this.refreshConfig.item2Add = int.Parse(array[7]); + } + + public BossRushBuffTable.RowData[] GetRandBuffs() + { + int num = UnityEngine.Random.Range(0, XBossBushDocument.bossBuffTable.Table.Length); + int num2 = UnityEngine.Random.Range(0, XBossBushDocument.bossBuffTable.Table.Length); + while (num == num2) + { + num2 = UnityEngine.Random.Range(0, XBossBushDocument.bossBuffTable.Table.Length); + } + return new BossRushBuffTable.RowData[] + { + XBossBushDocument.bossBuffTable.Table[num], + XBossBushDocument.bossBuffTable.Table[num2] + }; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBossBushDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XBossBushDocument.cs.meta new file mode 100644 index 00000000..b0f3c3eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBossBushDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7ace398f84ceeab469e21837d2cf470c +timeCreated: 1611403991 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBubbleComponent.cs b/Client/Assets/Scripts/XMainClient/XBubbleComponent.cs new file mode 100644 index 00000000..a2d7c7c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBubbleComponent.cs @@ -0,0 +1,170 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBubbleComponent : XComponent + { + public override uint ID + { + get + { + return XBubbleComponent.uuID; + } + } + + private GameObject _billboard = null; + + private float _heroHeight = 0f; + + public static string BUBBLE_TEMPLATE = "UI/Billboard/Bubble"; + + public new static readonly uint uuID = XSingleton.singleton.XHash("Bubble"); + + private IXUILabelSymbol _text; + + private IXUILabel _label; + + private IXUISprite _board; + + private uint _timer = 0u; + + private XTimerMgr.ElapsedEventHandler _hideBubbleCb = null; + + private Transform mCameraTrans; + + private float mSrcDistance; + + public XBubbleComponent() + { + this._hideBubbleCb = new XTimerMgr.ElapsedEventHandler(this.HideBubble); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._billboard = XSingleton.singleton.CreateFromPrefab(XBubbleComponent.BUBBLE_TEMPLATE, this._entity.EngineObject.Position, this._entity.EngineObject.Rotation, true, false); + this._billboard.name = this._entity.ID.ToString(); + bool isNpc = this._entity.IsNpc; + if (isNpc) + { + XSingleton.singleton.AddChild(XSingleton.singleton.NpcHpbarRoot.gameObject, this._billboard); + } + else + { + XSingleton.singleton.AddChild(XSingleton.singleton.HpbarRoot.gameObject, this._billboard); + } + float val = 0.9f; + this._heroHeight = Math.Max(this._entity.Height, val); + this._billboard.transform.localScale = new Vector3(0.01f * this._heroHeight / 1.5f, 0.01f * this._heroHeight / 1.5f, 0.01f * this._heroHeight / 1.5f); + this._text = (this._billboard.transform.Find("chattext/text/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._label = (this._billboard.transform.Find("chattext/text/content").GetComponent("XUILabel") as IXUILabel); + this._board = (this._billboard.transform.Find("chattext/text/content/board").GetComponent("XUISprite") as IXUISprite); + this.mCameraTrans = XSingleton.singleton.GameCamera.CameraTrans; + this.mSrcDistance = 8f; + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Bubble, new XComponent.XEventHandler(this.ShowBubble)); + } + + public override void OnDetachFromHost() + { + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + } + this.DestroyGameObjects(); + base.OnDetachFromHost(); + } + + protected void DestroyGameObjects() + { + XResourceLoaderMgr.SafeDestroy(ref this._billboard, true); + } + + protected bool ShowBubble(XEventArgs e) + { + XBubbleEventArgs xbubbleEventArgs = e as XBubbleEventArgs; + this._billboard.gameObject.SetActive(true); + this._text.InputText = xbubbleEventArgs.bubbletext; + DlgBase.singleton.ShowCurrTempMsg(xbubbleEventArgs.bubbletext, xbubbleEventArgs.speaker); + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + } + this._timer = XSingleton.singleton.SetTimer(xbubbleEventArgs.existtime, this._hideBubbleCb, null); + return true; + } + + protected void HideBubble(object o) + { + this._billboard.gameObject.SetActive(false); + this._timer = 0u; + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this._billboard == null; + if (!flag) + { + XEntity xentity = this._host as XEntity; + bool flag2 = xentity == null; + if (!flag2) + { + bool flag3 = !XEntity.ValideEntity(xentity) && !xentity.IsAffiliate; + if (flag3) + { + this._billboard.SetActive(false); + } + else + { + float num = 0.2f + this._entity.Height; + bool isAffiliate = this._entity.IsAffiliate; + if (isAffiliate) + { + num = 0.05f + this._entity.Height / 2f; + } + this._entity.EngineObject.SyncPos(); + Vector3 position; + position= new Vector3(this._entity.EngineObject.Position.x, this._entity.EngineObject.Position.y + num, this._entity.EngineObject.Position.z); + this._billboard.transform.position = position; + this._billboard.transform.rotation = XSingleton.singleton.GameCamera.Rotaton; + bool flag4 = this.mCameraTrans != null; + if (flag4) + { + float num2 = Vector3.Distance(this._entity.EngineObject.Position, this.mCameraTrans.position); + float num3 = num2 / this.mSrcDistance; + this._heroHeight = (this._entity.IsAffiliate ? 1.6f : 2f) * Mathf.Clamp(num3, 0.2f, 1.2f); + this._billboard.transform.localScale = new Vector3(0.01f * this._heroHeight / 1.5f, 0.01f * this._heroHeight / 1.5f, 0.01f * this._heroHeight / 1.5f); + } + bool flag5 = Time.frameCount % 15 == 0; + if (flag5) + { + float billBoardDepth = Vector3.Distance(XSingleton.singleton.GameCamera.UnityCamera.transform.position, this._billboard.transform.position); + this.SetBillBoardDepth(billBoardDepth); + } + } + } + } + } + + private void SetBillBoardDepth(float dis = 0f) + { + int num = -(int)(dis * 100f); + bool flag = this._label != null && this._board != null; + if (flag) + { + this._label.spriteDepth = num + 1; + this._board.spriteDepth = num; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBubbleComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XBubbleComponent.cs.meta new file mode 100644 index 00000000..711fc939 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBubbleComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 509970fdc3f157949b8eaa8ef5916824 +timeCreated: 1611403703 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBubbleEventArgs.cs b/Client/Assets/Scripts/XMainClient/XBubbleEventArgs.cs new file mode 100644 index 00000000..ce4f865d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBubbleEventArgs.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class XBubbleEventArgs : XEventArgs + { + public string bubbletext { get; set; } + + public float existtime { get; set; } + + public string speaker { get; set; } + + public XBubbleEventArgs() + { + this._eDefine = XEventDefine.XEvent_Bubble; + } + + public override void Recycle() + { + this.bubbletext = null; + this.existtime = 0f; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBubbleEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XBubbleEventArgs.cs.meta new file mode 100644 index 00000000..0913d464 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBubbleEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9913c5bea0c94ef42863372c2069b1fe +timeCreated: 1611404194 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBullet.cs b/Client/Assets/Scripts/XMainClient/XBullet.cs new file mode 100644 index 00000000..48fad516 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBullet.cs @@ -0,0 +1,932 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBullet + { + public XBulletCore BulletCore + { + get + { + return this._data; + } + } + + public ulong ID + { + get + { + return this._id; + } + } + + public ulong ExtraID + { + get + { + return this._extra_id; + } + set + { + this._extra_id = value; + } + } + + private ulong _id = 0UL; + + private ulong _extra_id = 0UL; + + private bool _active = true; + + private bool _effectual = true; + + private bool _pingpong = false; + + private bool _hit_triggered = false; + + private int _tail_results = 0; + + private uint _tail_results_token = 0u; + + private float _elapsed = 0f; + + private XFx _bullet = null; + + private XBulletCore _data; + + private Vector3 _origin = Vector3.zero; + + private SmallBuffer _hurt_target; + + private IXFmod _iFmod; + + public struct XBulletTarget + { + public ulong TargetID; + + public uint TimerToken; + + public bool Hurtable; + + public int HurtCount; + } + + public XBullet(ulong id, XBulletCore data) + { + this.Init(id, data); + } + + public void Deny() + { + this._effectual = false; + } + + private void LoadFinish(UnityEngine.Object obj, object cbOjb) + { + bool flag = this._iFmod != null; + if (flag) + { + this._iFmod.Destroy(); + XSingleton.singleton.XPlatform.ReturnClass(EClassType.ERuntimeFMOD, this._iFmod); + this._iFmod = null; + } + bool flag2 = !string.IsNullOrEmpty(this._data.Result.LongAttackData.Audio); + if (flag2) + { + this._iFmod = (XSingleton.singleton.XPlatform.CreateClass(EClassType.ERuntimeFMOD) as IXFmod); + Rigidbody rigidbody = null; + GameObject gameObject = obj as GameObject; + bool flag3 = gameObject != null; + if (flag3) + { + rigidbody = gameObject.GetComponent(); + } + bool flag4 = this._iFmod != null; + if (flag4) + { + this._iFmod.Init(gameObject, rigidbody); + XSingleton.singleton.PlaySound(this._iFmod, AudioChannel.Motion, this._data.Result.LongAttackData.Audio); + } + } + } + + private XFx FilterFx(string path) + { + bool flag = string.IsNullOrEmpty(path); + XFx result; + if (flag) + { + result = XSingleton.singleton.CreateFx("", new LoadCallBack(this.LoadFinish), true); + } + else + { + bool flag2 = XSingleton.singleton.FilterFx && (this._data.Firer == null || (!this._data.Firer.IsPlayer && !this._data.Firer.IsBoss && !(this._data.Firer is XDummy))) && (this._data.Target == null || !this._data.Target.IsPlayer); + if (flag2) + { + Vector3 position = XSingleton.singleton.Player.EngineObject.Position; + Vector3 origin = this._data.BulletRay.origin; + float num = XFxMgr.FilterFxDis4; + float num2 = (origin.x - position.x) * (origin.x - position.x) + (origin.z - position.z) * (origin.z - position.z); + bool flag3 = this._data.Result != null && this._data.Result.LongAttackData != null; + if (flag3) + { + num = this._data.Result.LongAttackData.Velocity * this._data.Result.LongAttackData.Runningtime; + } + bool flag4 = num2 < XFxMgr.FilterFxDis4 || num2 < num * num; + if (flag4) + { + result = XSingleton.singleton.CreateFx(this._data.Prefab, new LoadCallBack(this.LoadFinish), true); + } + else + { + result = XSingleton.singleton.CreateFx("", new LoadCallBack(this.LoadFinish), true); + } + } + else + { + result = XSingleton.singleton.CreateFx(path, null, true); + } + } + return result; + } + + public void Init(ulong id, XBulletCore data) + { + this._id = id; + this._extra_id = 0UL; + this._active = true; + this._effectual = true; + this._tail_results = 0; + this._pingpong = false; + this._hit_triggered = false; + this._elapsed = 0f; + this._data = data; + this._origin = Vector3.zero; + string path = XSingleton.singleton.PreFilterPrefab(this._data.Prefab); + this._bullet = this.FilterFx(path); + this._bullet.Play(this._data.BulletRay.origin, (this._data.Velocity > 0f) ? Quaternion.LookRotation(this._data.BulletRay.direction) : Quaternion.LookRotation(this._data.Firer.EngineObject.Forward), Vector3.one, 1f); + this._hurt_target.debugName = "XBullet._hurt_target"; + XSingleton.singleton.GetSmallBuffer(ref this._hurt_target, 4); + } + + private void OnRefined(object o) + { + ulong num = (ulong)o; + int i = 0; + int count = this._hurt_target.Count; + while (i < count) + { + XBullet.XBulletTarget xbulletTarget = this._hurt_target[i]; + bool flag = xbulletTarget.TargetID == num && xbulletTarget.HurtCount < this._data.Result.LongAttackData.Refine_Count; + if (flag) + { + xbulletTarget.Hurtable = true; + this._hurt_target[i] = xbulletTarget; + break; + } + i++; + } + } + + private void OnRefined() + { + int i = 0; + int count = this._hurt_target.Count; + while (i < count) + { + XBullet.XBulletTarget xbulletTarget = this._hurt_target[i]; + xbulletTarget.Hurtable = true; + xbulletTarget.HurtCount = 0; + XSingleton.singleton.KillTimer(xbulletTarget.TimerToken); + this._hurt_target[i] = xbulletTarget; + i++; + } + } + + private void OnPingPong() + { + this._pingpong = true; + bool autoRefine_at_Half = this._data.Result.LongAttackData.AutoRefine_at_Half; + if (autoRefine_at_Half) + { + this.OnRefined(); + } + } + + public void Expire() + { + this._active = false; + bool flag = this._tail_results != 0; + if (flag) + { + XSingleton.singleton.KillTimer(this._tail_results_token); + this._tail_results = this._data.Result.LongAttackData.TriggerAtEnd_Count; + } + } + + public bool IsExpired() + { + bool flag = !this._effectual || (!this._data.Demonstration && !XEntity.ValideEntity(this._data.Firer)); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._tail_results != 0; + if (flag2) + { + bool flag3 = this._tail_results >= this._data.Result.LongAttackData.TriggerAtEnd_Count; + result = flag3; + } + else + { + bool flag4 = this._data.Result.LongAttackData.IsPingPong && !this._pingpong; + if (flag4) + { + bool flag5 = XSingleton.singleton.IsGreater(this._elapsed, this._data.Life); + if (flag5) + { + this.OnPingPong(); + } + } + bool flag6 = !this._active || (!this._pingpong && XSingleton.singleton.IsGreater(this._elapsed, this._data.Life)); + bool flag7 = this._data.Result.LongAttackData.TriggerAtEnd_Count <= 0; + if (flag7) + { + result = flag6; + } + else + { + bool flag8 = flag6; + if (flag8) + { + this._active = false; + this.OnTailResult(null); + result = false; + } + else + { + result = flag6; + } + } + } + } + return result; + } + + private void OnTailResult(object o) + { + bool flag = o == null; + if (flag) + { + this._tail_results = 0; + this.FakeDestroyBulletObject(); + } + bool flag2 = this._tail_results < this._data.Result.LongAttackData.TriggerAtEnd_Count; + if (flag2) + { + this._tail_results++; + this.TailResult(this._tail_results == 1); + XSingleton.singleton.KillTimer(this._tail_results_token); + this._tail_results_token = XSingleton.singleton.SetTimer(this._data.Result.LongAttackData.TriggerAtEnd_Cycle, new XTimerMgr.ElapsedEventHandler(this.OnTailResult), this); + } + } + + public bool IsHurtEntity(ulong id) + { + int i = 0; + int count = this._hurt_target.Count; + while (i < count) + { + XBullet.XBulletTarget xbulletTarget = this._hurt_target[i]; + bool flag = xbulletTarget.TargetID == id; + if (flag) + { + return !xbulletTarget.Hurtable; + } + i++; + } + return false; + } + + private void TailResult(bool present) + { + bool triggerAtEnd = this._data.Result.LongAttackData.TriggerAtEnd; + if (triggerAtEnd) + { + bool warning = this._data.Warning; + if (warning) + { + this._bullet.Position = this._data.WarningPos; + } + bool flag = !this._data.Demonstration && !XSingleton.singleton.SyncMode; + if (flag) + { + this.Result(null, this._data.Result.LongAttackData.TriggerAtEnd_Count == 0); + } + } + bool flag2 = !present; + if (!flag2) + { + bool flag3 = !string.IsNullOrEmpty(this._data.Result.LongAttackData.End_Fx); + if (flag3) + { + Vector3 position = this._bullet.Position; + float num = 0f; + bool flag4 = this._data.Demonstration || XSingleton.singleton.TryGetTerrainY(position, out num); + if (flag4) + { + XFx xfx = XSingleton.singleton.CreateFx(this._data.Result.LongAttackData.End_Fx, null, true); + xfx.DelayDestroy = this._data.Result.LongAttackData.EndFx_LifeTime; + Quaternion rotation = this._bullet.Rotation; + bool endFx_Ground = this._data.Result.LongAttackData.EndFx_Ground; + if (endFx_Ground) + { + position.y = (this._data.Demonstration ? this._bullet.Position.y : num); + rotation = (this._data.Demonstration ? Quaternion.identity : XSingleton.singleton.RotateToGround(position, this._bullet.Forward)); + } + xfx.Play(position, rotation, Vector3.one, 1f); + XSingleton.singleton.LogEndFx(xfx); + XSingleton.singleton.DestroyFx(xfx, false); + } + } + bool flag5 = !string.IsNullOrEmpty(this._data.Result.LongAttackData.End_Audio); + if (flag5) + { + XSingleton.singleton.PlaySound(this._data.Firer, AudioChannel.Motion, this._data.Result.LongAttackData.End_Audio, this._bullet.Position); + } + } + } + + private void FakeDestroyBulletObject() + { + bool flag = this._bullet != null; + if (flag) + { + Vector3 position = this._bullet.Position; + Quaternion rotation = this._bullet.Rotation; + bool flag2 = this._iFmod != null; + if (flag2) + { + XSingleton.singleton.StopSound(this._iFmod); + this._iFmod.Destroy(); + XSingleton.singleton.XPlatform.ReturnClass(EClassType.ERuntimeFMOD, this._iFmod); + this._iFmod = null; + } + XSingleton.singleton.DestroyFx(this._bullet, true); + this._bullet = null; + this._bullet = XSingleton.singleton.CreateFx("", null, true); + this._bullet.Position = position; + this._bullet.Rotation = rotation; + this._bullet.SetActive(true); + } + } + + public void Destroy(bool leave = false) + { + XSingleton.singleton.KillTimer(this._tail_results_token); + bool flag = !leave && this._data.Result.LongAttackData.TriggerAtEnd_Count == 0 && (this._data.Demonstration || XEntity.ValideEntity(this._data.Firer)); + if (flag) + { + this.TailResult(true); + } + bool flag2 = this._bullet != null; + if (flag2) + { + bool flag3 = this._iFmod != null; + if (flag3) + { + XSingleton.singleton.StopSound(this._iFmod); + this._iFmod.Destroy(); + XSingleton.singleton.XPlatform.ReturnClass(EClassType.ERuntimeFMOD, this._iFmod); + this._iFmod = null; + } + XSingleton.singleton.DestroyFx(this._bullet, true); + this._bullet = null; + } + bool flag4 = this._data.Result.LongAttackData.Refine_Cycle > 0f; + if (flag4) + { + int i = 0; + int count = this._hurt_target.Count; + while (i < count) + { + XBullet.XBulletTarget xbulletTarget = this._hurt_target[i]; + XSingleton.singleton.KillTimer(xbulletTarget.TimerToken); + i++; + } + } + XSingleton.singleton.ReturnSmallBuffer(ref this._hurt_target); + } + + public void OnResult(XEntity target) + { + bool flag = XEntity.ValideEntity(target); + if (flag) + { + XBullet.XBulletTarget xbulletTarget; + xbulletTarget.HurtCount = 0; + xbulletTarget.TimerToken = 0u; + xbulletTarget.TargetID = 0UL; + int num = -1; + int i = 0; + int count = this._hurt_target.Count; + while (i < count) + { + xbulletTarget = this._hurt_target[i]; + bool flag2 = xbulletTarget.TargetID == target.ID; + if (flag2) + { + num = i; + break; + } + i++; + } + bool flag3 = num < 0; + if (flag3) + { + xbulletTarget = default(XBullet.XBulletTarget); + xbulletTarget.TargetID = target.ID; + num = this._hurt_target.Count; + this._hurt_target.Add(xbulletTarget); + } + XSingleton.singleton.KillTimer(xbulletTarget.TimerToken); + xbulletTarget.Hurtable = false; + xbulletTarget.HurtCount++; + xbulletTarget.TimerToken = ((this._data.Result.LongAttackData.Refine_Cycle > 0f) ? XSingleton.singleton.SetTimer(this._data.Result.LongAttackData.Refine_Cycle, new XTimerMgr.ElapsedEventHandler(this.OnRefined), target.ID) : 0u); + this._hurt_target[num] = xbulletTarget; + bool flag4 = this._data.TriggerMove && XEntity.ValideEntity(this._data.Firer); + if (flag4) + { + Vector3 vector = (this._data.Firer.EngineObject.Position - target.EngineObject.Position).normalized * target.RealEntity.Radius; + this._data.Firer.CorrectMe(target.EngineObject.Position + vector, this._data.Firer.EngineObject.Forward, false, false); + } + } + bool triggerOnce = this._data.Result.LongAttackData.TriggerOnce; + if (triggerOnce) + { + this.OnOnceTriggered(); + } + } + + private void OnOnceTriggered() + { + bool triggerOnce = this._data.Result.LongAttackData.TriggerOnce; + if (triggerOnce) + { + bool isPingPong = this._data.Result.LongAttackData.IsPingPong; + if (isPingPong) + { + this.OnPingPong(); + } + else + { + this._active = false; + } + } + } + + private void Result(XEntity target, bool cycle = true) + { + bool demonstration = this._data.Demonstration; + if (!demonstration) + { + bool flag = target == null; + if (flag) + { + XSkill.SkillResult(this, this._bullet.Forward, this._bullet.Position, cycle); + } + else + { + bool flag2 = !this._data.Result.Attack_Only_Target || target == this._data.Target; + if (flag2) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + bool triggerOnce = this._data.Result.LongAttackData.TriggerOnce; + if (triggerOnce) + { + this.OnOnceTriggered(); + } + } + else + { + Vector3 hitdir = target.EngineObject.Position - this._origin; + hitdir.y = 0f; + hitdir.Normalize(); + XSkill.SkillResult(this._data.Token, this._data.Firer, this._data.SkillCore, this, this._data.Sequnce, this._data.ResultID, this._data.ResultTime, hitdir, target); + } + bool triggerOnce2 = this._data.Result.LongAttackData.TriggerOnce; + if (triggerOnce2) + { + this._hit_triggered = true; + } + } + } + } + } + + public void Update(float fDeltaT) + { + bool flag = !this._active; + if (!flag) + { + this._elapsed += fDeltaT; + float num = 0f; + Vector3 vector = Vector3.forward; + switch (this._data.Result.LongAttackData.Type) + { + case XResultBulletType.Sphere: + case XResultBulletType.Plane: + num = ((this._elapsed > this._data.Running && this._elapsed < this._data.Life) ? 0f : this._data.Velocity) * fDeltaT; + vector = this._bullet.Forward; + break; + case XResultBulletType.Satellite: + { + bool flag2 = this._elapsed - fDeltaT <= XCommon.XEps; + if (flag2) + { + Vector3 position = this._data.Firer.EngineObject.Position + this._data.BulletRay.direction * this._data.Result.LongAttackData.RingRadius; + position.y = this._bullet.Position.y; + this._bullet.Position = position; + num = 0f; + vector = XSingleton.singleton.HorizontalRotateVetor3(this._data.Firer.MoveObj.Forward, (float)((this._data.Result.LongAttackData.Palstance < 0f) ? -90 : 90), true); + } + else + { + Vector3 vector2 = XSingleton.singleton.HorizontalRotateVetor3(this._data.BulletRay.direction, this._data.Result.LongAttackData.Palstance * (this._elapsed - fDeltaT), true) * this._data.Result.LongAttackData.RingRadius; + Vector3 vector3 = XSingleton.singleton.HorizontalRotateVetor3(this._data.BulletRay.direction, this._data.Result.LongAttackData.Palstance * this._elapsed, true) * this._data.Result.LongAttackData.RingRadius; + this._bullet.Forward = XSingleton.singleton.Horizontal(vector3 - vector2); + vector3 += this._data.Firer.EngineObject.Position; + Vector3 vector4 = vector3 - this._bullet.Position; + vector4.y = 0f; + num = vector4.magnitude; + vector = vector4.normalized; + } + break; + } + case XResultBulletType.Ring: + { + Vector3 position2 = this._data.Firer.EngineObject.Position; + position2.y = this._bullet.Position.y; + this._bullet.Position = position2; + break; + } + } + bool flag3 = this._data.Result.LongAttackData.IsPingPong && this._pingpong; + if (flag3) + { + bool flag4 = !this._data.Demonstration && !XEntity.ValideEntity(this._data.Firer); + if (flag4) + { + this._active = false; + return; + } + Vector3 vector5 = this._data.Firer.EngineObject.Position - this._bullet.Position; + vector5.y = 0f; + bool flag5 = num * num >= vector5.sqrMagnitude; + if (flag5) + { + this._active = false; + return; + } + vector = vector5.normalized; + } + else + { + bool flag6 = this._data.Result.LongAttackData.Follow && XEntity.ValideEntity(this._data.Target); + if (flag6) + { + vector = XSingleton.singleton.Horizontal(this._data.Target.EngineObject.Position - this._bullet.Position); + } + } + bool flag7 = this._data.Result.LongAttackData.Type != XResultBulletType.Satellite; + if (flag7) + { + this._bullet.Forward = vector; + } + Vector3 vector6 = vector * num; + this._origin = this._bullet.Position; + this._bullet.Position += vector6; + bool demonstration = this._data.Demonstration; + if (!demonstration) + { + float num2 = 0f; + bool flag8 = !XSingleton.singleton.TryGetTerrainY(this._bullet.Position, out num2); + if (flag8) + { + bool isPingPong = this._data.Result.LongAttackData.IsPingPong; + if (isPingPong) + { + this.OnPingPong(); + } + else + { + this._active = false; + } + } + else + { + bool staticCollider = this._data.Result.LongAttackData.StaticCollider; + if (staticCollider) + { + bool flag9 = num2 < 0f; + if (flag9) + { + bool isPingPong2 = this._data.Result.LongAttackData.IsPingPong; + if (isPingPong2) + { + this.OnPingPong(); + } + else + { + this._active = false; + } + return; + } + } + bool dynamicCollider = this._data.Result.LongAttackData.DynamicCollider; + if (dynamicCollider) + { + bool flag10 = !XSingleton.singleton.CheckDynamicBlock(this._origin, this._bullet.Position); + if (flag10) + { + bool isPingPong3 = this._data.Result.LongAttackData.IsPingPong; + if (isPingPong3) + { + this.OnPingPong(); + } + else + { + this._active = false; + } + return; + } + } + bool flag11 = !this._data.HasTarget; + if (flag11) + { + bool flyWithTerrain = this._data.FlyWithTerrain; + if (flyWithTerrain) + { + Vector3 position3 = this._bullet.Position; + position3.y = num2 + this._data.InitHeight; + this._bullet.Position = position3; + } + else + { + bool flag12 = Mathf.Abs(this._bullet.Position.y - num2) < 0.2f || num2 < 0f; + if (flag12) + { + this._active = false; + bool flag13 = !string.IsNullOrEmpty(this._data.Result.LongAttackData.HitGround_Fx); + if (flag13) + { + XFx xfx = XSingleton.singleton.CreateFx(this._data.Result.LongAttackData.HitGround_Fx, null, true); + xfx.DelayDestroy = this._data.Result.LongAttackData.HitGroundFx_LifeTime; + Quaternion rotation = this._bullet.Rotation; + rotation = XSingleton.singleton.RotateToGround(this._bullet.Position, this._bullet.Forward); + xfx.Play(this._bullet.Position, rotation, Vector3.one, 1f); + XSingleton.singleton.DestroyFx(xfx, false); + } + return; + } + } + vector6 = this._bullet.Position - this._origin; + } + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + bool manipulation = this._data.Result.LongAttackData.Manipulation; + if (manipulation) + { + List opponent = XSingleton.singleton.GetOpponent(this._data.Firer); + Vector3 position4 = this._bullet.Position; + for (int i = 0; i < opponent.Count; i++) + { + XEntity xentity = opponent[i]; + bool flag14 = !XEntity.ValideEntity(xentity); + if (!flag14) + { + Vector3 vector7 = position4 - xentity.EngineObject.Position; + vector7.y = 0f; + bool flag15 = vector7.magnitude < this._data.Result.LongAttackData.ManipulationRadius; + if (flag15) + { + float num3 = this._data.Result.LongAttackData.ManipulationForce * fDeltaT; + xentity.ApplyMove(vector7.normalized * Mathf.Min(vector7.magnitude, num3)); + } + } + } + } + bool hit_triggered = this._hit_triggered; + if (!hit_triggered) + { + bool withCollision = this._data.Result.LongAttackData.WithCollision; + if (withCollision) + { + switch (this._data.Result.LongAttackData.Type) + { + case XResultBulletType.Sphere: + case XResultBulletType.Satellite: + { + Vector3 vector8; + vector8= new Vector3(vector6.x, 0f, vector6.z); + float num4 = vector8.magnitude * 0.5f; + vector.y = 0f; + float num5 = (vector.sqrMagnitude == 0f) ? 0f : Vector3.Angle(Vector3.right, vector); + bool flag16 = num5 > 0f && XSingleton.singleton.Clockwise(Vector3.right, vector); + if (flag16) + { + num5 = -num5; + } + XBullet.BulletCollideUnit(this._data.Firer, new Vector3(this._origin.x + vector.x * num4, 0f, this._origin.z + vector.z * num4), num4, num5, this._data.Radius, this); + break; + } + case XResultBulletType.Plane: + XBullet.PlaneBulletCollideUnit(this._data.Firer, this._origin, vector6, this._data.Radius, this); + break; + case XResultBulletType.Ring: + { + float num6 = XSingleton.singleton.IsGreater(this._elapsed, this._data.Life) ? 0f : (this._data.Result.LongAttackData.RingFull ? (XSingleton.singleton.IsGreater(this._elapsed, this._data.Life * 0.5f) ? (this._data.Life - this._elapsed) : this._elapsed) : this._elapsed); + float num7 = num6 * this._data.Result.LongAttackData.RingVelocity; + float or = num7 + this._data.Result.LongAttackData.RingRadius; + XBullet.RingBulletCollideUnit(this._data.Firer, num7, or, this); + break; + } + } + } + } + } + } + } + } + } + + private static void RingBulletCollideUnit(XEntity firer, float ir, float or, XBullet bullet) + { + Vector3 position = firer.EngineObject.Position; + List opponent = XSingleton.singleton.GetOpponent(firer); + for (int i = 0; i < opponent.Count; i++) + { + bool flag = !XEntity.ValideEntity(opponent[i]); + if (!flag) + { + bool flag2 = false; + bool flag3 = opponent[i].Present != null && opponent[i].Present.PresentLib.Huge; + if (flag3) + { + SeqListRef hugeMonsterColliders = opponent[i].Present.PresentLib.HugeMonsterColliders; + for (int j = 0; j < hugeMonsterColliders.Count; j++) + { + float num = hugeMonsterColliders[j, 2] * opponent[i].Scale; + Vector3 vector = opponent[i].HugeMonsterColliderCenter(j) - position; + vector.y = 0f; + float sqrMagnitude = vector.sqrMagnitude; + flag2 = (sqrMagnitude > ir * ir && sqrMagnitude < or * or); + bool flag4 = flag2; + if (flag4) + { + break; + } + } + } + else + { + Vector3 vector2 = opponent[i].RadiusCenter - position; + vector2.y = 0f; + float sqrMagnitude2 = vector2.sqrMagnitude; + flag2 = (sqrMagnitude2 > ir * ir && sqrMagnitude2 < or * or); + } + bool flag5 = flag2; + if (flag5) + { + bullet.Result(opponent[i], true); + } + bool flag6 = bullet.IsExpired(); + if (flag6) + { + break; + } + } + } + } + + private static void PlaneBulletCollideUnit(XEntity firer, Vector3 origin, Vector3 move, float r, XBullet bullet) + { + Vector3 vector = XSingleton.singleton.HorizontalRotateVetor3(move, 90f, true); + Vector3 q = origin + vector * r; + Vector3 q2 = origin - vector * r; + List opponent = XSingleton.singleton.GetOpponent(firer); + for (int i = 0; i < opponent.Count; i++) + { + bool flag = !XEntity.ValideEntity(opponent[i]); + if (!flag) + { + bool flag2 = false; + bool flag3 = opponent[i].Present != null && opponent[i].Present.PresentLib.Huge; + if (flag3) + { + SeqListRef hugeMonsterColliders = opponent[i].Present.PresentLib.HugeMonsterColliders; + for (int j = 0; j < hugeMonsterColliders.Count; j++) + { + float num = hugeMonsterColliders[j, 2] * opponent[i].Scale; + Vector3 vector2 = opponent[i].HugeMonsterColliderCenter(j); + flag2 = XSingleton.singleton.IsLineSegmentCross(vector2, vector2 - move, q, q2); + bool flag4 = flag2; + if (flag4) + { + break; + } + } + } + else + { + Vector3 radiusCenter = opponent[i].RadiusCenter; + flag2 = XSingleton.singleton.IsLineSegmentCross(radiusCenter, radiusCenter - move, q, q2); + } + bool flag5 = flag2; + if (flag5) + { + bullet.Result(opponent[i], true); + } + bool flag6 = bullet.IsExpired(); + if (flag6) + { + break; + } + } + } + } + + private static void BulletCollideUnit(XEntity firer, Vector3 rectcenter, float hlen, float rotation, float r, XBullet bullet) + { + List opponent = XSingleton.singleton.GetOpponent(firer); + for (int i = 0; i < opponent.Count; i++) + { + bool flag = !XEntity.ValideEntity(opponent[i]); + if (!flag) + { + bool flag2 = false; + bool flag3 = opponent[i].Present != null && opponent[i].Present.PresentLib.Huge; + if (flag3) + { + SeqListRef hugeMonsterColliders = opponent[i].Present.PresentLib.HugeMonsterColliders; + for (int j = 0; j < hugeMonsterColliders.Count; j++) + { + float num = hugeMonsterColliders[j, 2] * opponent[i].Scale; + Vector3 vector = opponent[i].HugeMonsterColliderCenter(j); + vector -= rectcenter; + vector.y = 0f; + flag2 = XSingleton.singleton.IsRectCycleCross(hlen, r, vector, num); + bool flag4 = !flag2; + if (flag4) + { + float num2 = num; + float magnitude = vector.magnitude; + flag2 = (magnitude - num2 < r); + } + bool flag5 = flag2; + if (flag5) + { + break; + } + } + } + else + { + Vector3 vector2 = opponent[i].RadiusCenter; + vector2 -= rectcenter; + vector2.y = 0f; + vector2 = XSingleton.singleton.HorizontalRotateVetor3(vector2, rotation, false); + flag2 = XSingleton.singleton.IsRectCycleCross(hlen, r, vector2, opponent[i].Radius); + bool flag6 = !flag2; + if (flag6) + { + float radius = opponent[i].Radius; + float magnitude2 = vector2.magnitude; + flag2 = (magnitude2 - radius < r); + } + } + bool flag7 = flag2; + if (flag7) + { + bullet.Result(opponent[i], true); + } + bool flag8 = bullet.IsExpired(); + if (flag8) + { + break; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBullet.cs.meta b/Client/Assets/Scripts/XMainClient/XBullet.cs.meta new file mode 100644 index 00000000..7539156f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBullet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3338d727d67b7a4d8cd64f78264ec60 +timeCreated: 1611404847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBulletCore.cs b/Client/Assets/Scripts/XMainClient/XBulletCore.cs new file mode 100644 index 00000000..f36f340b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBulletCore.cs @@ -0,0 +1,285 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal struct XBulletCore + { + public float InitHeight + { + get + { + return this._init_h; + } + } + + public long Token + { + get + { + return this._token; + } + } + + public bool FlyWithTerrain + { + get + { + return this._with_terrain; + } + } + + public bool Demonstration + { + get + { + return this._demonstration; + } + } + + public bool Warning + { + get + { + return this._warning; + } + } + + public bool HasTarget + { + get + { + return this.Target != null; + } + } + + public Vector3 WarningPos + { + get + { + return this._warning_pos; + } + } + + public XResultData Result + { + get + { + return this._result; + } + } + + public XSkillCore SkillCore + { + get + { + return this._core; + } + } + + public XEntity Firer + { + get + { + return this._firer; + } + } + + public ulong FirerID + { + get + { + return this._firer_id; + } + } + + public XEntity Target + { + get + { + return XEntity.ValideEntity(this._target) ? this._target : null; + } + } + + public string Prefab + { + get + { + return this.Result.LongAttackData.Prefab; + } + } + + public int Sequnce + { + get + { + return this._sequnce; + } + } + + public int ResultTime + { + get + { + return this._result_time; + } + } + + public uint ResultID + { + get + { + return this._result_id; + } + } + + public bool TriggerMove + { + get + { + return this._trigger_move; + } + } + + public float Life + { + get + { + return this.Result.LongAttackData.Runningtime + this.Result.LongAttackData.Stickytime; + } + } + + public float Running + { + get + { + return this.Result.LongAttackData.Runningtime; + } + } + + public float Velocity + { + get + { + return this._velocity; + } + } + + public float Radius + { + get + { + return this.Result.LongAttackData.Radius; + } + } + + private XSkillCore _core; + + private XResultData _result; + + private XEntity _firer; + + private XEntity _target; + + private ulong _firer_id; + + private long _token; + + private Vector3 _warning_pos; + + private int _sequnce; + + private int _result_time; + + private uint _result_id; + + private bool _warning; + + private float _velocity; + + private float _init_h; + + private bool _demonstration; + + private bool _with_terrain; + + private bool _trigger_move; + + public Ray BulletRay; + + public XBulletCore(long token, XEntity firer, XEntity target, XSkillCore core, XResultData data, uint resultID, int diviation, bool demonstration, int wid) + { + this._token = token; + this._result = data; + this._sequnce = data.Index; + this._result_id = resultID; + this._result_time = data.Token; + this._firer = firer; + this._firer_id = firer.ID; + this._target = (XEntity.ValideEntity(target) ? target : null); + this._core = core; + this._demonstration = demonstration; + string value = XSingleton.singleton.GetValue("BulletSkillName"); + bool flag = !string.IsNullOrEmpty(value) && value.Contains(core.Soul.Name); + if (flag) + { + this._trigger_move = true; + } + else + { + this._trigger_move = false; + } + this._warning_pos = Vector3.zero; + bool attack_All = data.Attack_All; + if (attack_All) + { + this._warning_pos = this._target.EngineObject.Position; + } + else + { + bool warning = data.Warning; + if (warning) + { + this._warning_pos = this._core.WarningPosAt[data.Warning_Idx][wid].WarningAt; + } + } + this._warning = (this._warning_pos.sqrMagnitude > 0f); + Vector3 vector = this._firer.EngineObject.Position; + vector.y += this._firer.Height * 0.5f; + Vector3 v = this._warning ? (this._warning_pos - firer.EngineObject.Position) : ((data.LongAttackData.Reinforce && this._target != null) ? (this._target.EngineObject.Position - firer.EngineObject.Position) : firer.EngineObject.Forward); + vector += this._firer.EngineObject.Rotation * new Vector3(this._result.LongAttackData.At_X, this._result.LongAttackData.At_Y, this._result.LongAttackData.At_Z); + float num = 0f; + bool flag2 = !XSingleton.singleton.TryGetTerrainY(vector, out num) || num < 0f; + if (flag2) + { + vector.x = this._firer.EngineObject.Position.x; + vector.z = this._firer.EngineObject.Position.z; + } + v.y = 0f; + Vector3 vector2 = XSingleton.singleton.HorizontalRotateVetor3(v, (float)diviation, true); + float runningtime = this._result.LongAttackData.Runningtime; + this._velocity = (this._warning ? ((this._warning_pos - vector).magnitude / runningtime) : this._result.LongAttackData.Velocity); + float num2 = 0f; + bool flag3 = this._target != null && this._result.LongAttackData.AimTargetCenter; + if (flag3) + { + num2 = vector.y - this._target.EngineObject.Position.y - this._target.Height * 0.5f; + bool flag4 = Mathf.Abs(num2) > 2f; + if (flag4) + { + num2 = 2f * (num2 / Mathf.Abs(num2)); + } + } + vector2 = ((num2 == 0f || this._velocity == 0f) ? vector2 : (num2 * Vector3.down + this._velocity * runningtime * vector2).normalized); + this.BulletRay = new Ray(vector, vector2); + this._init_h = vector.y - XSingleton.singleton.TerrainY(vector); + bool flag5 = this._init_h < 0f; + if (flag5) + { + this._init_h = 0f; + } + this._with_terrain = this._result.LongAttackData.FlyWithTerrain; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBulletCore.cs.meta b/Client/Assets/Scripts/XMainClient/XBulletCore.cs.meta new file mode 100644 index 00000000..5ab0742a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBulletCore.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4947d92f635c9f8499fb7c7003bd3433 +timeCreated: 1611403661 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XBulletMgr.cs b/Client/Assets/Scripts/XMainClient/XBulletMgr.cs new file mode 100644 index 00000000..d8343f9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBulletMgr.cs @@ -0,0 +1,224 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XBulletMgr : XSingleton + { + private SmallBufferPool m_BufferPool = new SmallBufferPool(); + + public BlockInfo[] blockInit = new BlockInfo[] + { + new BlockInfo(4, 128), + new BlockInfo(8, 512) + }; + + private HashSet _server_temp_bullets = new HashSet(); + + private SmallBuffer _bullets; + + private SmallBuffer _bulletsCache; + + private Dictionary _bullets_maps = new Dictionary(); + + private SmallBuffer _bullets_end_fx; + + internal struct KeyOfBullet : IEqualityComparer + { + public ulong self; + + public ulong host; + + public ulong target; + + public KeyOfBullet(ulong h, ulong s, ulong t) + { + this.host = h; + this.self = s; + this.target = t; + } + + public bool Equals(XBulletMgr.KeyOfBullet x, XBulletMgr.KeyOfBullet y) + { + return x.host == y.host && x.self == y.self && x.target == y.target; + } + + public int GetHashCode(XBulletMgr.KeyOfBullet obj) + { + return (int)obj.host | (int)obj.self << 24; + } + } + + public override bool Init() + { + this.m_BufferPool.Init(this.blockInit, 4); + return true; + } + + public void GetSmallBuffer(ref SmallBuffer sb, int size) + { + this.m_BufferPool.GetBlock(ref sb, size, 0); + } + + public void ReturnSmallBuffer(ref SmallBuffer sb) + { + this.m_BufferPool.ReturnBlock(ref sb); + } + + public XBullet GetBullet(XBulletMgr.KeyOfBullet id) + { + XBullet result = null; + this._bullets_maps.TryGetValue(id, out result); + return result; + } + + public void Cache(XBulletMgr.KeyOfBullet id) + { + this._server_temp_bullets.Add(id); + } + + public void ShootBullet(XBullet bullet) + { + XBulletMgr.KeyOfBullet keyOfBullet = new XBulletMgr.KeyOfBullet(bullet.BulletCore.FirerID, bullet.ID, bullet.ExtraID); + bool flag = !this._bullets_maps.ContainsKey(keyOfBullet); + if (flag) + { + this._bullets_maps.Add(keyOfBullet, bullet); + this._bullets.Add(bullet); + bool flag2 = this._server_temp_bullets.Contains(keyOfBullet); + if (flag2) + { + bullet.OnResult(null); + } + } + else + { + XSingleton.singleton.AddErrorLog("Duplicated Bullet id ", bullet.ID.ToString(), null, null, null, null); + } + } + + public void LogEndFx(XFx bullet) + { + this._bullets_end_fx.Add(bullet); + bullet.callback = new OnFxDestroyed(this.UnLogEndFx); + } + + public void Update(float fDeltaT) + { + int count = this._bullets.Count; + for (int i = count - 1; i >= 0; i--) + { + XBullet xbullet = this._bullets[i] as XBullet; + xbullet.Update(fDeltaT); + bool flag = xbullet.IsExpired(); + if (flag) + { + XBulletMgr.KeyOfBullet keyOfBullet = new XBulletMgr.KeyOfBullet(xbullet.BulletCore.FirerID, xbullet.ID, xbullet.ExtraID); + xbullet.Destroy(false); + this._server_temp_bullets.Remove(keyOfBullet); + this._bullets_maps.Remove(keyOfBullet); + this._bullets.RemoveAt(i); + bool flag2 = false; + int j = 0; + int count2 = this._bulletsCache.Count; + while (j < count2) + { + bool flag3 = this._bulletsCache[j] == null; + if (flag3) + { + this._bulletsCache[j] = xbullet; + flag2 = true; + break; + } + j++; + } + bool flag4 = !flag2; + if (flag4) + { + this._bulletsCache.Add(xbullet); + } + } + } + } + + public XBullet CreateBullet(ulong bulletid, long token, XEntity firer, XEntity target, XSkillCore core, XResultData data, uint id, int diviation, bool demonstration, int wid) + { + int i = 0; + int count = this._bulletsCache.Count; + while (i < count) + { + XBullet xbullet = this._bulletsCache[i] as XBullet; + bool flag = xbullet != null; + if (flag) + { + xbullet.Init(bulletid, new XBulletCore(token, firer, target, core, data, id, diviation, demonstration, wid)); + this._bulletsCache[i] = null; + return xbullet; + } + i++; + } + return new XBullet(bulletid, new XBulletCore(token, firer, target, core, data, id, diviation, demonstration, wid)); + } + + public void OnEnterScene() + { + this._bullets_end_fx.debugName = "XBulletMgr._bullets_end_fx"; + this._bullets.debugName = "XBulletMgr._bullets"; + this._bulletsCache.debugName = "XBulletMgr._bulletsCache"; + XSingleton.singleton.GetSmallBuffer(ref this._bullets_end_fx, 256, 0); + XSingleton.singleton.GetSmallBuffer(ref this._bullets, 16, 0); + XSingleton.singleton.GetSmallBuffer(ref this._bulletsCache, 16, 0); + } + + public void OnLeaveScene() + { + this.ClearBullets(); + XSingleton.singleton.ReturnSmallBuffer(ref this._bullets_end_fx); + XSingleton.singleton.ReturnSmallBuffer(ref this._bullets); + XSingleton.singleton.ReturnSmallBuffer(ref this._bulletsCache); + } + + public void OnLeaveStage() + { + this.ClearBullets(); + } + + public void ClearBullets(ulong hostid) + { + for (int i = this._bullets.Count - 1; i >= 0; i--) + { + XBullet xbullet = this._bullets[i] as XBullet; + bool flag = xbullet != null && xbullet.BulletCore.FirerID == hostid; + if (flag) + { + xbullet.Expire(); + xbullet.Deny(); + } + } + } + + public void ClearBullets() + { + for (int i = this._bullets.Count - 1; i >= 0; i--) + { + XBullet xbullet = this._bullets[i] as XBullet; + xbullet.Destroy(true); + } + this._bullets.Clear(); + this._bullets_maps.Clear(); + this._server_temp_bullets.Clear(); + for (int j = this._bullets_end_fx.Count - 1; j >= 0; j--) + { + XFx fx = this._bullets_end_fx[j] as XFx; + XSingleton.singleton.DestroyFx(fx, true); + } + this._bullets_end_fx.Clear(); + } + + public void UnLogEndFx(XFx fx) + { + this._bullets_end_fx.Remove(fx); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XBulletMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XBulletMgr.cs.meta new file mode 100644 index 00000000..850e333e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XBulletMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 877832ca7cf36a243af7bd79c5f31f83 +timeCreated: 1611404079 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraActionComponent.cs b/Client/Assets/Scripts/XMainClient/XCameraActionComponent.cs new file mode 100644 index 00000000..9942eec4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraActionComponent.cs @@ -0,0 +1,154 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraActionComponent : XComponent + { + public override uint ID + { + get + { + return XCameraActionComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_Common_Action"); + + private XCameraEx _camera_host = null; + + private Vector3 _last_pos = Vector3.zero; + + private bool _began = false; + + private float _auto_x = 0f; + + private float _auto_y = 0f; + + private float _manual_x = 0f; + + private float _manual_y = 0f; + + private float _dis = 0f; + + private float _tx = 0f; + + private float _ty = 0f; + + private bool _auto = true; + + private bool _world_stage = false; + + private XCameraActionEventArgs.FinishHandler _handler = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._camera_host = (host as XCameraEx); + this._world_stage = (XSingleton.singleton.CurrentStage.Stage == EXStage.World); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this._camera_host = null; + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_CameraAction, new XComponent.XEventHandler(this.OnAction)); + } + + protected bool OnAction(XEventArgs e) + { + XCameraActionEventArgs xcameraActionEventArgs = e as XCameraActionEventArgs; + bool flag = this._handler != null; + if (flag) + { + this._handler(); + this._handler = null; + } + this._tx = xcameraActionEventArgs.XRotate; + this._ty = xcameraActionEventArgs.YRotate; + this._manual_x = this._camera_host.Root_R_X; + this._manual_y = XSingleton.singleton.AngleNormalize(this._ty, this._camera_host.Root_R_Y); + this._dis = ((xcameraActionEventArgs.Dis > 0f) ? xcameraActionEventArgs.Dis : this._camera_host.TargetOffset); + this._handler = xcameraActionEventArgs.Finish; + this._auto = false; + return true; + } + + public override void Update(float fDeltaT) + { + bool flag = base.Enabled && XSingleton.singleton.Working && !this._camera_host.IsDuringCloseUp; + if (flag) + { + bool began = this._began; + if (began) + { + this._tx = 0f; + this._auto_x = 0f; + this._ty = 0f; + this._auto_y = 0f; + } + else + { + bool operationH = XCameraEx.OperationH; + if (operationH) + { + this._tx = (XSingleton.singleton.GesturePosition.x - this._last_pos.x) * (this._world_stage ? XSingleton.singleton.ManualCameraSpeedXInBattle : XSingleton.singleton.ManualCameraSpeedXInHall); + } + bool operationV = XCameraEx.OperationV; + if (operationV) + { + this._ty = (XSingleton.singleton.GesturePosition.y - this._last_pos.y) * (this._world_stage ? XSingleton.singleton.ManualCameraSpeedYInBattle : XSingleton.singleton.ManualCameraSpeedYInHall); + } + } + this._last_pos = XSingleton.singleton.GesturePosition; + this._began = false; + this._auto = true; + } + else + { + this._began = true; + bool auto = this._auto; + if (auto) + { + this._tx = 0f; + this._ty = 0f; + } + } + bool auto2 = this._auto; + if (auto2) + { + this._auto_x += (this._tx - this._auto_x) * Mathf.Min(1f, fDeltaT * (this._world_stage ? XSingleton.singleton.ManualCameraDampXInBattle : XSingleton.singleton.ManualCameraDampXInHall)); + this._auto_y += (this._ty - this._auto_y) * Mathf.Min(1f, fDeltaT * (this._world_stage ? XSingleton.singleton.ManualCameraDampYInBattle : XSingleton.singleton.ManualCameraDampYInHall)); + bool flag2 = this._auto_y != 0f; + if (flag2) + { + this._camera_host.XRotate(-this._auto_y); + } + bool flag3 = this._auto_x != 0f; + if (flag3) + { + this._camera_host.YRotate(this._auto_x); + } + } + else + { + this._manual_x += (this._tx - this._manual_x) * Mathf.Min(1f, fDeltaT * XSingleton.singleton.CloseUpCameraSpeed); + this._manual_y += (this._ty - this._manual_y) * Mathf.Min(1f, fDeltaT * XSingleton.singleton.CloseUpCameraSpeed); + this._camera_host.XRotateEx(this._manual_x); + this._camera_host.YRotateEx(this._manual_y); + this._camera_host.Offset += (this._dis - this._camera_host.Offset) * Mathf.Min(1f, fDeltaT * XSingleton.singleton.CloseUpCameraSpeed); + bool flag4 = Mathf.Abs(this._tx - this._manual_x) < 1f && Mathf.Abs(this._ty - this._manual_y) < 1f && this._handler != null; + if (flag4) + { + this._handler(); + this._handler = null; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraActionComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraActionComponent.cs.meta new file mode 100644 index 00000000..207b7f8e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraActionComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5bd5b0177e3abfb43a69cd48afaac42b +timeCreated: 1611403800 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraActionEventArgs.cs b/Client/Assets/Scripts/XMainClient/XCameraActionEventArgs.cs new file mode 100644 index 00000000..b85b7d2f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraActionEventArgs.cs @@ -0,0 +1,32 @@ +using System; + +namespace XMainClient +{ + internal class XCameraActionEventArgs : XEventArgs + { + public float Dis; + + public float YRotate; + + public float XRotate; + + public XCameraActionEventArgs.FinishHandler Finish; + + public delegate void FinishHandler(); + + public XCameraActionEventArgs() + { + this._eDefine = XEventDefine.XEvent_CameraAction; + } + + public override void Recycle() + { + base.Recycle(); + this.YRotate = 0f; + this.XRotate = 0f; + this.Dis = 0f; + this.Finish = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraActionEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraActionEventArgs.cs.meta new file mode 100644 index 00000000..2266fc9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraActionEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3da3bd96383f08145b3a0a0f4bf64889 +timeCreated: 1611403605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraCloseUpComponent.cs b/Client/Assets/Scripts/XMainClient/XCameraCloseUpComponent.cs new file mode 100644 index 00000000..44c59464 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraCloseUpComponent.cs @@ -0,0 +1,248 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraCloseUpComponent : XComponent + { + public override uint ID + { + get + { + return XCameraCloseUpComponent.uuID; + } + } + + public bool Execute + { + get + { + return this._execute; + } + } + + public bool Ending + { + get + { + return this._ending; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_CloseUp_Component"); + + private XCameraEx _camera_host = null; + + private XCameraMotionData _motion = new XCameraMotionData(); + + private Vector3 _anchor = Vector3.zero; + + private XEntity _target = null; + + private float _Half_V_Fov = 0f; + + private float _Half_H_Fov = 0f; + + private float _dis = 0f; + + private float _pre_x = 0f; + + private float _pre_y = 0f; + + private bool _ending = false; + + private bool _execute = false; + + private bool _reachend = false; + + private Vector3 _gap = Vector3.zero; + + private bool _return_with_collision = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._camera_host = (this._host as XCameraEx); + } + + public override void OnDetachFromHost() + { + this._execute = false; + this._camera_host = null; + base.OnDetachFromHost(); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_CameraCloseUp, new XComponent.XEventHandler(this.OnCloseUp)); + base.RegisterEvent(XEventDefine.XEvent_CameraCloseUpEnd, new XComponent.XEventHandler(this.OnCloseUpEnd)); + } + + protected bool OnCloseUp(XEventArgs e) + { + bool flag = XSingleton.singleton.Player == null; + bool result; + if (flag) + { + result = true; + } + else + { + XComponent xcomponent = this._camera_host.GetXComponent(XCameraCollisonComponent.uuID); + bool flag2 = xcomponent != null; + if (flag2) + { + xcomponent.Enabled = false; + } + this._return_with_collision = (Mathf.Abs(this._camera_host.Offset - this._camera_host.TargetOffset) > 0.1f); + XCameraCloseUpEventArgs xcameraCloseUpEventArgs = e as XCameraCloseUpEventArgs; + this._Half_V_Fov = 0.0174532924f * (this._camera_host.UnityCamera.fieldOfView * 0.5f); + float num = (float)XSingleton.singleton.Base_UI_Width / (float)XSingleton.singleton.Base_UI_Height; + this._Half_H_Fov = (float)Math.Atan(Math.Tan((double)this._Half_V_Fov) * (double)num); + this._execute = true; + this._anchor = this._camera_host.Anchor; + this._target = xcameraCloseUpEventArgs.Target; + this._pre_x = this._camera_host.Root_R_X; + this._pre_y = this._camera_host.Root_R_Y; + Vector3 vector = (this._target == null) ? XSingleton.singleton.Player.EngineObject.Forward : XSingleton.singleton.Horizontal(this._target.EngineObject.Position - XSingleton.singleton.Player.MoveObj.Position); + XCameraActionEventArgs @event = XEventPool.GetEvent(); + @event.XRotate = this.TargetX(); + @event.YRotate = this.ForwardY(vector); + @event.Dis = this.TargetH(); + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + XSingleton.singleton.Player.Net.ReportRotateAction(vector); + this._ending = false; + this._reachend = false; + result = true; + } + return result; + } + + protected bool OnCloseUpEnd(XEventArgs e) + { + XCameraActionEventArgs @event = XEventPool.GetEvent(); + @event.XRotate = ((this._pre_x < this._camera_host.Root_R_X_Default) ? this._camera_host.Root_R_X_Default : this._pre_x); + @event.YRotate = this._pre_y; + @event.Dis = this._camera_host.TargetOffset; + @event.Firer = XSingleton.singleton.GameCamera; + @event.Finish = new XCameraActionEventArgs.FinishHandler(this.Interrupt); + XSingleton.singleton.FireEvent(@event); + this._gap = this._camera_host.Anchor - this._anchor; + this._ending = true; + this._reachend = false; + bool return_with_collision = this._return_with_collision; + if (return_with_collision) + { + XComponent xcomponent = this._camera_host.GetXComponent(XCameraCollisonComponent.uuID); + bool flag = xcomponent != null; + if (flag) + { + xcomponent.Enabled = true; + } + } + return true; + } + + protected void Interrupt() + { + this._reachend = true; + } + + public void Stop(object o) + { + this._execute = false; + XComponent xcomponent = this._camera_host.GetXComponent(XCameraCollisonComponent.uuID); + bool flag = xcomponent != null; + if (flag) + { + xcomponent.Enabled = true; + } + } + + public void CloseUpdate(float fDeltaT) + { + bool execute = this._execute; + if (execute) + { + Vector3 vector = Vector3.zero; + bool ending = this._ending; + if (ending) + { + vector = this._camera_host.Anchor; + } + else + { + bool flag = this._target is XNpc && (this._target as XNpc).NPCType == 2u; + if (flag) + { + vector = this._target.EngineObject.Position; + vector.y += XSingleton.singleton.Player.Height * 0.5f; + Vector3 vector2 = XSingleton.singleton.Horizontal(Vector3.Cross(Vector3.up, XSingleton.singleton.Player.Rotate.GetMeaningfulFaceVector3())); + vector += vector2 * 0.5f; + } + else + { + vector = XSingleton.singleton.Player.MoveObj.Position; + vector.y += XSingleton.singleton.Player.Height * 0.5f; + Vector3 vector3 = XSingleton.singleton.Horizontal(Vector3.Cross(Vector3.up, XSingleton.singleton.Player.Rotate.GetMeaningfulFaceVector3())); + vector += vector3 * Mathf.Tan(this._Half_H_Fov * 0.4f) * this._dis; + } + } + bool ending2 = this._ending; + if (ending2) + { + this._gap += (Vector3.zero - this._gap) * Mathf.Min(1f, fDeltaT * 4f); + this._anchor = vector - this._gap; + } + else + { + this._anchor += (vector - this._anchor) * Mathf.Min(1f, fDeltaT * 4f); + } + this._camera_host.CameraTrans.LookAt(this._anchor); + this._camera_host.CameraTrans.position = this._anchor - this._camera_host.CameraTrans.forward * this._camera_host.Offset; + bool flag2 = this._ending && this._reachend && (vector - this._anchor).magnitude < 0.01f; + if (flag2) + { + this.Stop(null); + } + } + } + + private float ForwardY(Vector3 v) + { + v = XSingleton.singleton.HorizontalRotateVetor3(v, -45f, true); + return XSingleton.singleton.AngleToFloat(v); + } + + private float TargetH() + { + bool flag = this._target is XNpc && (this._target as XNpc).NPCType == 2u; + if (flag) + { + this._dis = 3f; + } + else + { + this._dis = XSingleton.singleton.Player.Height * 0.5f / 0.9f / Mathf.Tan(this._Half_V_Fov); + } + return this._dis; + } + + private float TargetX() + { + bool flag = this._target is XNpc && (this._target as XNpc).NPCType == 2u; + float result; + if (flag) + { + result = 0f; + } + else + { + result = -20f; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraCloseUpComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraCloseUpComponent.cs.meta new file mode 100644 index 00000000..b7612432 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraCloseUpComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88a2a586899abca4c9ab7407de679957 +timeCreated: 1611404085 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraCloseUpEndEventArgs.cs b/Client/Assets/Scripts/XMainClient/XCameraCloseUpEndEventArgs.cs new file mode 100644 index 00000000..ee1c7862 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraCloseUpEndEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XCameraCloseUpEndEventArgs : XEventArgs + { + public XCameraCloseUpEndEventArgs() + { + this._eDefine = XEventDefine.XEvent_CameraCloseUpEnd; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraCloseUpEndEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraCloseUpEndEventArgs.cs.meta new file mode 100644 index 00000000..e47cbbaf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraCloseUpEndEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 47bdfa3c76f0e4340a08f33368060564 +timeCreated: 1611403655 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraCloseUpEventArgs.cs b/Client/Assets/Scripts/XMainClient/XCameraCloseUpEventArgs.cs new file mode 100644 index 00000000..79671e64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraCloseUpEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XCameraCloseUpEventArgs : XEventArgs + { + public XEntity Target; + + public XCameraCloseUpEventArgs() + { + this._eDefine = XEventDefine.XEvent_CameraCloseUp; + } + + public override void Recycle() + { + base.Recycle(); + this.Target = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraCloseUpEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraCloseUpEventArgs.cs.meta new file mode 100644 index 00000000..3d73e288 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraCloseUpEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 88c14a657ceeef142b9737bfb2ae6b88 +timeCreated: 1611404085 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraCollisonComponent.cs b/Client/Assets/Scripts/XMainClient/XCameraCollisonComponent.cs new file mode 100644 index 00000000..874f4805 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraCollisonComponent.cs @@ -0,0 +1,282 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraCollisonComponent : XComponent + { + public override uint ID + { + get + { + return XCameraCollisonComponent.uuID; + } + } + + public Vector3 HitNormal + { + get + { + return this._hit_normal; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_Basic_Collison"); + + private XCameraEx _camera_host = null; + + private float _collision_radius = 0.2f; + + private Vector3 _real_pos = Vector3.zero; + + private float _tdis = 0f; + + private List _invisible = new List(); + + private List _hit_collider = new List(); + + private List _last_hit_collider = new List(); + + private int _layer_mask = 0; + + private Vector3 _hit_normal = Vector3.zero; + + private static int _transparent_frequence = 10; + + private int _transparent_update_count = 0; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._camera_host = (host as XCameraEx); + this._transparent_update_count = 0; + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this._camera_host = null; + } + + private void InvisibleOn() + { + bool quality = XQualitySetting.GetQuality(EFun.ESceneFade); + bool flag = this._invisible != null; + if (flag) + { + for (int i = 0; i < this._invisible.Count; i++) + { + SceneMat sceneMat = this._invisible[i]; + bool flag2 = quality; + if (flag2) + { + sceneMat.Fade(true); + this._invisible[i] = sceneMat; + } + else + { + sceneMat.render.gameObject.layer = 31; + } + } + } + } + + private void InvisibleOff() + { + bool quality = XQualitySetting.GetQuality(EFun.ESceneFade); + bool flag = this._invisible != null; + if (flag) + { + int i = 0; + int count = this._invisible.Count; + while (i < count) + { + SceneMat sceneMat = this._invisible[i]; + bool flag2 = sceneMat.render != null; + if (flag2) + { + bool flag3 = quality; + if (flag3) + { + sceneMat.Fade(false); + } + else + { + sceneMat.render.gameObject.layer = 0; + } + } + i++; + } + } + this._invisible.Clear(); + } + + public override void PostUpdate(float fDeltaT) + { + this.UpdateCamera(fDeltaT); + this.UpdateSceneTransparent(); + } + + protected void UpdateCamera(float fDeltaT) + { + this._hit_normal = Vector3.zero; + this._real_pos = this._camera_host.CameraTrans.position; + Vector3 vector = this._real_pos - this._camera_host.Anchor; + float magnitude = vector.magnitude; + this._layer_mask = 513; + bool flag = XSingleton.singleton.OperationMode == XOperationMode.X25D; + if (flag) + { + this._layer_mask |= 4096; + } + RaycastHit raycastHit; + bool flag2 = Physics.SphereCast(this._camera_host.Anchor, this._collision_radius, vector.normalized, out raycastHit, magnitude, this._layer_mask); + if (flag2) + { + XOperationMode operationMode = XSingleton.singleton.OperationMode; + if (operationMode != XOperationMode.X25D) + { + if (operationMode - XOperationMode.X3D <= 1) + { + this._real_pos = raycastHit.point + raycastHit.normal * this._collision_radius; + this._camera_host.Offset = Mathf.Min((this._camera_host.Anchor - this._real_pos).magnitude, magnitude); + this._hit_normal = raycastHit.normal; + } + } + else + { + bool flag3 = raycastHit.collider.gameObject.layer == 0 && XSingleton.singleton.CurrentStage.Stage != EXStage.Hall && !Physics.SphereCast(this._camera_host.Anchor, this._collision_radius, vector.normalized, out raycastHit, magnitude, 512); + if (flag3) + { + this._tdis = Mathf.Max((this._camera_host.Anchor - this._real_pos).magnitude, magnitude); + this._camera_host.Offset += (this._tdis - this._camera_host.Offset) * Mathf.Min(1f, fDeltaT * 4f); + } + else + { + this._real_pos = raycastHit.point + raycastHit.normal * this._collision_radius; + this._camera_host.Offset = Mathf.Min((this._camera_host.Anchor - this._real_pos).magnitude, magnitude); + this._hit_normal = raycastHit.normal; + } + } + } + else + { + this._tdis = magnitude; + this._camera_host.Offset += (this._tdis - this._camera_host.Offset) * Mathf.Min(1f, fDeltaT * 4f); + } + this._camera_host.CameraTrans.position = this._camera_host.Anchor - this._camera_host.CameraTrans.forward * this._camera_host.Offset; + bool isLookAt = this._camera_host.IsLookAt; + if (isLookAt) + { + this._camera_host.LookAtTarget(); + } + } + + protected void UpdateSceneTransparent() + { + bool flag = this._transparent_update_count <= 0; + if (flag) + { + this._transparent_update_count = XCameraCollisonComponent._transparent_frequence; + this._layer_mask = 1 << LayerMask.NameToLayer("45Transparent"); + this._real_pos = this._camera_host.Anchor - this._camera_host.CameraTrans.forward * this._camera_host.TargetOffset; + Vector3 vector = this._real_pos - this._camera_host.Anchor; + RaycastHit[] array = Physics.SphereCastAll(this._camera_host.Anchor, this._collision_radius, vector.normalized, vector.magnitude, this._layer_mask); + bool flag2 = array.Length != 0 && !XSingleton.singleton.IsPlaying; + if (flag2) + { + this._hit_collider.Clear(); + for (int i = 0; i < array.Length; i++) + { + bool flag3 = array[i].collider.gameObject.layer == LayerMask.NameToLayer("45Transparent"); + if (flag3) + { + this._hit_collider.Add(array[i].collider); + } + } + bool flag4 = !this.IsColliderSetEqual(this._hit_collider, this._last_hit_collider); + if (flag4) + { + this.InvisibleOff(); + for (int j = 0; j < this._hit_collider.Count; j++) + { + IColliderRenderLinker colliderRenderLinker = this._hit_collider[j].gameObject.GetComponent("XColliderRenderLinker") as IColliderRenderLinker; + bool flag5 = colliderRenderLinker != null; + if (flag5) + { + foreach (Renderer renderer in colliderRenderLinker.GetLinkedRender()) + { + bool flag6 = renderer != null && !this.InVisibleContains(renderer); + if (flag6) + { + SceneMat item = default(SceneMat); + item.InitRender(renderer); + this._invisible.Add(item); + } + } + } + } + this.InvisibleOn(); + } + this.CloneColliderSet(this._last_hit_collider, this._hit_collider); + } + else + { + this.InvisibleOff(); + this._last_hit_collider.Clear(); + } + } + else + { + this._transparent_update_count--; + } + } + + private bool InVisibleContains(Renderer r) + { + for (int i = 0; i < this._invisible.Count; i++) + { + bool flag = this._invisible[i].render == r; + if (flag) + { + return true; + } + } + return false; + } + + private bool IsColliderSetEqual(List s, List t) + { + bool flag = s.Count != t.Count; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < s.Count; i++) + { + bool flag2 = !t.Contains(s[i]); + if (flag2) + { + return false; + } + } + result = true; + } + return result; + } + + private void CloneColliderSet(List s, List t) + { + s.Clear(); + for (int i = 0; i < t.Count; i++) + { + s.Add(t[i]); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraCollisonComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraCollisonComponent.cs.meta new file mode 100644 index 00000000..3265824d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraCollisonComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65c67ced689bf14489e165df75abc66c +timeCreated: 1611403851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraEx.cs b/Client/Assets/Scripts/XMainClient/XCameraEx.cs new file mode 100644 index 00000000..d3c59b47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraEx.cs @@ -0,0 +1,1092 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XCameraEx : XObject + { + public XCameraSoloComponent Solo + { + get + { + return this._solo; + } + } + + public XCameraMotionComponent Motion + { + get + { + return this._motion; + } + } + + public XCameraCollisonComponent Collision + { + get + { + return this._collision; + } + } + + public XCameraIntellectiveFollow Tail + { + get + { + return this._tail; + } + } + + public XCameraCloseUpComponent CloseUp + { + get + { + return this._closeup; + } + } + + public XCameraVAdjustComponent VAdjust + { + get + { + return this._adjust; + } + } + + public XCameraWallComponent Wall + { + get + { + return this._wall; + } + } + + public Camera UnityCamera + { + get + { + return this._camera; + } + } + + public bool IsCloseUp + { + get + { + bool flag = this._closeup != null; + return flag && this._closeup.Execute && !this._closeup.Ending; + } + } + + public bool IsDuringCloseUp + { + get + { + bool flag = this._closeup != null; + return flag && this._closeup.Execute; + } + } + + public float Offset + { + get + { + return this._dis; + } + set + { + this._dis = value; + } + } + + public float TargetOffset + { + get + { + return this._tdis; + } + set + { + this._tdis = value; + } + } + + public float DefaultOffset + { + get + { + return this._default_dis; + } + set + { + this._default_dis = value; + } + } + + public float Root_R_X_Default + { + get + { + return this._idle_root_rotation_x_default; + } + set + { + this._idle_root_rotation_x_default = value; + } + } + + public float Root_R_Y_Default + { + get + { + return this._idle_root_rotation_y_default; + } + set + { + this._idle_root_rotation_y_default = value; + } + } + + public float Root_R_X_Target + { + get + { + return this._idle_root_rotation_x_target; + } + set + { + this._idle_root_rotation_x_target = value; + } + } + + public float Root_R_X + { + get + { + return this._idle_root_rotation_x; + } + set + { + this._idle_root_rotation_x = value; + } + } + + public float Root_R_Y + { + get + { + return this._idle_root_rotation_y; + } + set + { + this._idle_root_rotation_y = value; + } + } + + public float Root_R_Y_Target + { + get + { + return this._idle_root_rotation_y_target; + } + set + { + this._idle_root_rotation_y_target = value; + } + } + + public float InitFOV + { + get + { + return this._field_of_view; + } + } + + public XCameraMotionData ActiveMotion + { + get + { + return this._active_motion; + } + set + { + this._active_motion = value; + } + } + + public Animator Ator + { + get + { + return this._ator; + } + } + + public Transform CameraTrans + { + get + { + return this._cameraTransform; + } + } + + public Vector3 Position + { + get + { + return this._cameraTransform.position; + } + } + + public Quaternion Rotaton + { + get + { + return this._cameraTransform.rotation; + } + } + + public XEntity Target + { + get + { + return (this._active_target == null || this._active_target.Deprecated) ? null : this._active_target; + } + set + { + this._active_target = value; + } + } + + public bool IsLookAt + { + get + { + return this._active_motion.LookAt_Target; + } + } + + public bool RootReady + { + get + { + return this._root_pos_inited; + } + set + { + this._root_pos_inited = value; + } + } + + public Vector3 Anchor + { + get + { + return (this.Target != null) ? (this.Target.MoveObj.Position + this._dummyObject.transform.position) : Vector3.zero; + } + } + + public Vector3 ProxyCameraPos + { + get + { + return this._dummyCamera_pos; + } + } + + public Vector3 ProxyCameraRot + { + get + { + return this._dummyCamera_rot; + } + } + + public float ProxyIdleXRot + { + get + { + return this._idle_root_basic_x; + } + } + + public static bool OperationV = true; + + public static bool OperationH = true; + + public static float MaxV = 80f; + + public static float MinV = -80f; + + private float _dis = 0f; + + private float _tdis = 0f; + + private float _basic_dis = 4.2f; + + private float _default_dis = 4.2f; + + private GameObject _cameraObject = null; + + private GameObject _dummyObject = null; + + private Transform _dummyCamera = null; + + private Transform _cameraTransform = null; + + private Animator _ator = null; + + private AnimatorOverrideController _overrideController; + + private List _added_component = new List(); + + private Camera _camera = null; + + private bool _inited = false; + + private float _elapsed = 0f; + + private bool _damp = false; + + private float _damp_delta = 0f; + + private Vector3 _damp_dir = Vector3.zero; + + private bool _root_pos_inited = false; + + private Vector3 _root_pos = Vector3.zero; + + private Quaternion _idle_root_rotation = Quaternion.identity; + + private float _idle_root_basic_x = 0f; + + private bool _init_idle_root_basic_x = false; + + private float _idle_root_rotation_x_default = 0f; + + private float _idle_root_rotation_x_target = 0f; + + private float _idle_root_rotation_x = 0f; + + private float _idle_root_rotation_y = 0f; + + private float _idle_root_rotation_y_default = 0f; + + private float _idle_root_rotation_y_target = 0f; + + private Vector3 _last_dummyCamera_pos = Vector3.zero; + + private Vector3 _dummyCamera_pos = Vector3.zero; + + private Vector3 _dummyCamera_rot = Vector3.forward; + + private Quaternion _dummyCamera_quat = Quaternion.identity; + + private Vector3 _v_self_p = Vector3.zero; + + private Quaternion _q_self_r = Quaternion.identity; + + private readonly float _damp_factor = 0.3f; + + private XCameraMotionData _active_motion = new XCameraMotionData(); + + private XEntity _active_target = null; + + private float _field_of_view = 45f; + + private XCameraSoloComponent _solo = null; + + private XCameraMotionComponent _motion = null; + + private XCameraCollisonComponent _collision = null; + + private XCameraIntellectiveFollow _tail = null; + + private XCameraVAdjustComponent _adjust = null; + + private XCameraWallComponent _wall = null; + + private XCameraCloseUpComponent _closeup = null; + + public enum XStatus + { + None, + Idle, + Solo, + Effect + } + + public bool PreInstall(GameObject camera, bool bHall = false) + { + bool inited = this._inited; + bool result; + if (inited) + { + result = true; + } + else + { + this._cameraObject = camera; + bool flag = null != this._cameraObject; + if (flag) + { + this._init_idle_root_basic_x = false; + this._camera = this._cameraObject.GetComponent(); + this._camera.enabled = true; + this._cameraTransform = this._cameraObject.transform; + bool flag2 = this._dummyObject == null; + if (flag2) + { + this._dummyObject = (XSingleton.singleton.CreateFromPrefab("Prefabs/DummyCamera", true, false) as GameObject); + this._dummyObject.name = "Dummy Camera"; + } + this._dummyCamera = this._dummyObject.transform.GetChild(0); + this._ator = this._dummyObject.GetComponent(); + bool flag3 = this._overrideController == null; + if (flag3) + { + this._overrideController = new AnimatorOverrideController(); + } + this._overrideController.runtimeAnimatorController = this._ator.runtimeAnimatorController; + this._ator.runtimeAnimatorController = this._overrideController; + this._dummyObject.SetActive(true); + this.FixedRatio(); + this._added_component.Clear(); + result = true; + } + else + { + result = false; + } + } + return result; + } + + public bool Installed() + { + bool inited = this._inited; + bool result; + if (inited) + { + result = true; + } + else + { + this._solo = (base.GetXComponent(XCameraSoloComponent.uuID) as XCameraSoloComponent); + this._motion = (base.GetXComponent(XCameraMotionComponent.uuID) as XCameraMotionComponent); + this._collision = (base.GetXComponent(XCameraCollisonComponent.uuID) as XCameraCollisonComponent); + this._tail = (base.GetXComponent(XCameraIntellectiveFollow.uuID) as XCameraIntellectiveFollow); + this._adjust = (base.GetXComponent(XCameraVAdjustComponent.uuID) as XCameraVAdjustComponent); + this._wall = (base.GetXComponent(XCameraWallComponent.uuID) as XCameraWallComponent); + this._closeup = (base.GetXComponent(XCameraCloseUpComponent.uuID) as XCameraCloseUpComponent); + this.Motion.Attached(); + this._root_pos_inited = false; + this._dis = (this._tdis = this._default_dis); + this._inited = true; + this._field_of_view = this._cameraObject.GetComponent().fieldOfView; + result = true; + } + return result; + } + + public override void Uninitilize() + { + bool flag = !this._inited; + if (!flag) + { + XResourceLoaderMgr.SafeDestroy(ref this._dummyObject, false); + this._active_target = null; + this.SolidCancel(); + this._camera = null; + this._cameraTransform = null; + this._inited = false; + this._solo = null; + this._motion = null; + this._collision = null; + this._tail = null; + this._adjust = null; + this._wall = null; + this._closeup = null; + base.Uninitilize(); + this._overrideController = null; + } + } + + private void FixedRatio() + { + float num = (float)(XSingleton.singleton.Base_UI_Width + 2) / (float)XSingleton.singleton.Base_UI_Height; + float num2 = (float)Screen.width / (float)Screen.height; + float num3 = num2 / num; + bool flag = num3 < 1f; + if (flag) + { + Rect rect = this._camera.rect; + rect.width = 1f; + rect.height = num3; + rect.x = 0f; + rect.y = (1f - num3) / 2f; + this._camera.rect = rect; + } + else + { + float num4 = 1f / num3; + Rect rect2 = this._camera.rect; + rect2.width = num4; + rect2.height = 1f; + rect2.x = (1f - num4) / 2f; + rect2.y = 0f; + this._camera.rect = rect2; + } + } + + public bool IsVisibleFromCamera(XEntity entity, bool fully) + { + Plane[] planes = GeometryUtility.CalculateFrustumPlanes(this._camera); + return entity.EngineObject.TestVisibleWithFrustum(planes, fully); + } + + public void Damp() + { + this._damp = true; + this._elapsed = 0f; + } + + public void AddComponent() where T : Component + { + Type typeFromHandle = typeof(T); + bool flag = !this._added_component.Contains(typeFromHandle); + if (flag) + { + this._camera.gameObject.AddComponent(); + this._added_component.Add(typeFromHandle); + } + } + + public void OverrideAnimClip(string motion, AnimationClip clip) + { + bool flag = clip != null; + if (flag) + { + bool flag2 = this._overrideController[motion] != clip; + if (flag2) + { + this._overrideController[motion] = clip; + } + } + else + { + this._overrideController[motion] = null; + } + } + + public void SyncTarget() + { + this._q_self_r = ((this.Target == null) ? Quaternion.identity : this.Target.MoveObj.Rotation); + this._v_self_p = ((this.Target == null) ? Vector3.zero : this.Target.MoveObj.Position); + } + + public void LookAtTarget() + { + bool flag = this.Target != null; + if (flag) + { + this._cameraTransform.LookAt(this.Target.MoveObj.Position + ((this._dummyObject == null) ? Vector3.zero : this._dummyObject.transform.position)); + } + } + + public void ReCaleRoot(bool OnSolo = false) + { + bool flag = this._active_motion.MotionType == CameraMotionType.CameraBased; + if (flag) + { + if (OnSolo) + { + this._idle_root_rotation = Quaternion.Euler(this._idle_root_rotation_x, this._idle_root_rotation.eulerAngles.y, 0f); + } + else + { + this._idle_root_rotation = Quaternion.Euler(this._idle_root_rotation_x, this._idle_root_rotation_y, 0f); + } + this._root_pos = this._idle_root_rotation * this._dummyCamera.position; + } + } + + public void AdjustRoot() + { + this._idle_root_rotation_x = this._idle_root_rotation.eulerAngles.x; + this._idle_root_rotation_y = this.CameraTrans.rotation.eulerAngles.y; + } + + public void XRotate(float addation) + { + bool flag = this.Target is XPlayer && addation != 0f; + if (flag) + { + this._idle_root_rotation_x += addation; + float num = this._idle_root_basic_x + this._idle_root_rotation_x; + bool flag2 = num > XCameraEx.MaxV; + if (flag2) + { + this._idle_root_rotation_x = XCameraEx.MaxV - this._idle_root_basic_x; + } + else + { + bool flag3 = num < XCameraEx.MinV; + if (flag3) + { + this._idle_root_rotation_x = XCameraEx.MinV - this._idle_root_basic_x; + } + } + this.ReCaleRoot(false); + } + } + + public void YRotate(float addation) + { + bool flag = this.Target is XPlayer && addation != 0f; + if (flag) + { + this._idle_root_rotation_y += addation; + this.ReCaleRoot(false); + } + } + + public void XRotateEx(float x) + { + bool flag = this.Target is XPlayer; + if (flag) + { + this._idle_root_rotation_x = x; + x = this._idle_root_basic_x + this._idle_root_rotation_x; + bool flag2 = x > XCameraEx.MaxV; + if (flag2) + { + this._idle_root_rotation_x = XCameraEx.MaxV - this._idle_root_basic_x; + } + else + { + bool flag3 = x < XCameraEx.MinV; + if (flag3) + { + this._idle_root_rotation_x = XCameraEx.MinV - this._idle_root_basic_x; + } + } + this.ReCaleRoot(false); + } + } + + public void YRotateEx(float y) + { + bool flag = this.Target is XPlayer; + if (flag) + { + this._idle_root_rotation_y = y; + this.ReCaleRoot(false); + } + } + + public void XRotateExBarely(float addation) + { + bool flag = this._active_motion.MotionType == CameraMotionType.CameraBased && (this.Target is XPlayer || this.Target is XEmpty); + if (flag) + { + this._idle_root_rotation_x += addation; + float num = this._idle_root_basic_x + this._idle_root_rotation_x; + bool flag2 = num > XCameraEx.MaxV; + if (flag2) + { + this._idle_root_rotation_x = XCameraEx.MaxV - this._idle_root_basic_x; + } + else + { + bool flag3 = num < XCameraEx.MinV; + if (flag3) + { + this._idle_root_rotation_x = XCameraEx.MinV - this._idle_root_basic_x; + } + } + this._idle_root_rotation = Quaternion.Euler(this._idle_root_rotation_x, this._idle_root_rotation.eulerAngles.y, 0f); + this._root_pos = this._idle_root_rotation * this._dummyCamera.position; + } + } + + public void YRotateExBarely(float y) + { + bool flag = this._active_motion.MotionType == CameraMotionType.CameraBased; + if (flag) + { + this._idle_root_rotation = Quaternion.Euler(this._idle_root_rotation.eulerAngles.x, y, 0f); + this._root_pos = this._idle_root_rotation * this._dummyCamera.position; + } + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this.Tail != null && XOperationData.Is3DMode(); + if (flag) + { + this.Tail.TailUpdate(fDeltaT); + } + bool flag2 = !this._root_pos_inited; + if (flag2) + { + Vector3 vector = Vector3.Cross(this._dummyCamera.forward, this._dummyCamera.up); + this._dummyCamera_quat = Quaternion.LookRotation(vector, this._dummyCamera.up); + this._dummyCamera_rot = this._dummyCamera_quat.eulerAngles; + bool flag3 = !this._init_idle_root_basic_x; + if (flag3) + { + this._idle_root_basic_x = this._dummyCamera_rot.x; + this._basic_dis = (this._dummyCamera.position - this._dummyObject.transform.position).magnitude; + } + bool autoSync_At_Begin = this._active_motion.AutoSync_At_Begin; + if (autoSync_At_Begin) + { + this.SyncTarget(); + } + CameraMotionType motionType = this._active_motion.MotionType; + if (motionType != CameraMotionType.AnchorBased) + { + if (motionType == CameraMotionType.CameraBased) + { + this._idle_root_rotation = ((this.Target is XPlayer) ? Quaternion.Euler(this._idle_root_rotation_x, this._idle_root_rotation_y, 0f) : ((this.Target is XEmpty && !XCameraEx.OperationV) ? Quaternion.Euler(this._idle_root_rotation_x, 0f, 0f) : Quaternion.identity)); + } + } + else + { + this._idle_root_rotation = Quaternion.identity; + } + this._root_pos = this._idle_root_rotation * this._dummyCamera.position; + this._root_pos_inited = true; + this._init_idle_root_basic_x = true; + } + this.InnerUpdateEx(); + base.PostUpdate(fDeltaT); + bool flag4 = this._closeup != null; + if (flag4) + { + this._closeup.CloseUpdate(fDeltaT); + } + bool flag5 = this._motion != null; + if (flag5) + { + this._motion.MotionUpdate(fDeltaT); + } + } + + public bool BackToPlayer() + { + bool operationH = XCameraEx.OperationH; + bool result; + if (operationH) + { + XSingleton.singleton.GameCamera.Root_R_Y_Default = XSingleton.singleton.Player.EngineObject.Rotation.eulerAngles.y; + XSingleton.singleton.GameCamera.Root_R_Y = XSingleton.singleton.GameCamera.Root_R_Y_Default; + bool flag = XSingleton.singleton.GameCamera.Wall != null; + if (flag) + { + XSingleton.singleton.GameCamera.Wall.TargetY = XSingleton.singleton.GameCamera.Root_R_Y_Default; + } + result = true; + } + else + { + result = false; + } + return result; + } + + public void FovBack() + { + bool flag = XSingleton.singleton.IsPlaying && XSingleton.singleton.Boss != null; + if (flag) + { + uint fov = (XSingleton.singleton.Boss.Attributes as XOthersAttributes).Fov; + bool flag2 = fov > 0u; + if (flag2) + { + float num = Mathf.Tan(0.0174532924f * this._field_of_view * 0.5f) * this.TargetOffset; + this.TargetOffset = num / Mathf.Tan(0.0174532924f * fov * 0.5f); + this.DefaultOffset = this.TargetOffset; + this._field_of_view = fov; + } + } + this._cameraObject.GetComponent().fieldOfView = this._field_of_view; + } + + public void SolidBlack() + { + this._camera.clearFlags = (CameraClearFlags)2; + this._camera.backgroundColor = Color.black; + this._camera.cullingMask = 7106048; + } + + public void SolidCancel() + { + bool flag = this._camera == null; + if (!flag) + { + this._camera.clearFlags = (CameraClearFlags)1; + XQualitySetting.XSetting currentQualitySetting = XQualitySetting.GetCurrentQualitySetting(); + this._camera.cullingMask = -1; + this._camera.cullingMask &= ~(XQualitySetting._QualityHighLayerOffset | XQualitySetting._QualityNormalLayerOffset); + this._camera.cullingMask |= currentQualitySetting._CullMask; + this._camera.cullingMask &= ~XQualitySetting._InvisiblityLayerOffset; + this._camera.cullingMask &= ~XQualitySetting._UILayerOffset; + } + } + + public void TrySolo() + { + bool flag = this._solo == null || XSingleton.singleton.Player == null; + if (!flag) + { + bool flag2 = !XEntity.ValideEntity(this._solo.Target); + if (flag2) + { + this._solo.Stop(); + } + bool flag3 = this._solo.SoloState == XCameraSoloComponent.XCameraSoloState.Stop; + if (flag3) + { + XEntity xentity = null; + List opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.bSpectator ? XSingleton.singleton.Player.WatchTo : XSingleton.singleton.Player); + for (int i = 0; i < opponent.Count; i++) + { + bool flag4 = XSingleton.singleton.Is1V1Scene(); + if (flag4) + { + bool flag5 = opponent[i].IsRole && XEntity.ValideEntity(opponent[i]); + if (flag5) + { + xentity = opponent[i]; + break; + } + } + else + { + bool soloShow = opponent[i].Attributes.SoloShow; + if (soloShow) + { + xentity = opponent[i]; + break; + } + } + } + bool flag6 = xentity != null; + if (flag6) + { + XCameraSoloEventArgs @event = XEventPool.GetEvent(); + @event.Target = xentity; + @event.Firer = this; + XSingleton.singleton.FireEvent(@event); + } + } + } + } + + public void SetSightType() + { + float num = XSingleton.singleton.CameraAngle; + float cameraDistance = XSingleton.singleton.CameraDistance; + XCameraEx.OperationH = XSingleton.singleton.AllowHorizontal; + XCameraEx.OperationV = XSingleton.singleton.AllowVertical; + XCameraEx.MaxV = XSingleton.singleton.MaxVertical; + XCameraEx.MinV = XSingleton.singleton.MinVertical; + bool flag = XCameraEx.MaxV < XCameraEx.MinV; + if (flag) + { + XCameraEx.MaxV = XCameraEx.MinV; + } + bool flag2 = num > XCameraEx.MaxV; + if (flag2) + { + num = XCameraEx.MaxV; + } + bool flag3 = num < XCameraEx.MinV; + if (flag3) + { + num = XCameraEx.MinV; + } + bool flag4 = false; + bool flag5 = !XCameraEx.OperationH || XSingleton.singleton.OffSolo; + if (flag5) + { + bool flag6 = this._solo != null && this._solo.SoloState != XCameraSoloComponent.XCameraSoloState.Stop; + if (flag6) + { + flag4 = true; + this._solo.Stop(); + this.Target = XSingleton.singleton.Player; + } + } + bool flag7 = this._adjust != null; + if (flag7) + { + this._adjust.Enabled = (XOperationData.Is3DMode() && !XCameraEx.OperationV); + } + bool flag8 = this._wall != null && !XCameraEx.OperationH; + if (flag8) + { + this.YRotate(this._wall.TargetY - this.Root_R_Y); + } + this.Root_R_X_Default = num - this._idle_root_basic_x; + this.Root_R_X_Target = this.Root_R_X_Default; + this.DefaultOffset = cameraDistance; + this.TargetOffset = cameraDistance; + this.Root_R_X = this.Root_R_X_Target; + bool flag9 = XCameraEx.OperationH && !XSingleton.singleton.OffSolo; + if (flag9) + { + this.TrySolo(); + } + bool flag10 = !flag4; + if (flag10) + { + this.ReCaleRoot(this._solo != null && this._solo.SoloState == XCameraSoloComponent.XCameraSoloState.Executing); + } + } + + private void InnerPosition() + { + Vector3 vector = this._dummyCamera.position; + bool flag = this._active_motion.MotionType == CameraMotionType.CameraBased && (this.Target is XPlayer || this.Target is XEmpty); + if (flag) + { + Vector3 vector2 = this._dummyCamera.position - this._dummyObject.transform.position; + float num = vector2.magnitude; + vector2.Normalize(); + bool flag2 = vector2.z > 0f; + if (flag2) + { + num = -num; + vector2 = -vector2; + } + float num2 = num - this._basic_dis; + float num3 = this.TargetOffset + num2; + bool flag3 = num3 <= 0f; + if (flag3) + { + num3 = 0.1f; + } + vector = this._dummyObject.transform.position + num3 * vector2; + } + this._dummyCamera_pos = this._idle_root_rotation * (vector - this._dummyObject.transform.position) + this._dummyObject.transform.position; + bool damp = this._damp; + if (damp) + { + this._damp_dir = this._dummyCamera_pos - this._last_dummyCamera_pos; + bool flag4 = this._elapsed == 0f; + if (flag4) + { + this._damp_delta = this._damp_dir.magnitude; + } + this._damp_dir.Normalize(); + bool flag5 = this._elapsed > this._damp_factor; + if (flag5) + { + this._elapsed = this._damp_factor; + this._damp = false; + } + this._dummyCamera_pos -= this._damp_dir * (this._damp_delta * ((this._damp_factor - this._elapsed) / this._damp_factor)); + this._elapsed += Time.deltaTime; + } + this._last_dummyCamera_pos = this._dummyCamera_pos; + } + + private void InnerUpdateEx() + { + this.InnerPosition(); + Quaternion quaternion = Quaternion.identity; + bool flag = this.Target != null; + if (flag) + { + quaternion = this.Target.MoveObj.Rotation; + } + bool flag2 = this._active_motion.MotionType == CameraMotionType.AnchorBased && this.Target != null; + if (flag2) + { + this._q_self_r = quaternion; + } + Quaternion quaternion2 = (this.Target == null) ? Quaternion.identity : quaternion; + Vector3 vector = (this.Target == null) ? Vector3.zero : this.Target.MoveObj.Position; + Vector3 vector2 = Vector3.Cross(this._dummyCamera.forward, this._dummyCamera.up); + this._dummyCamera_quat = Quaternion.LookRotation(vector2, this._dummyCamera.up); + this._dummyCamera_rot = this._dummyCamera_quat.eulerAngles; + Vector3 vector3 = this._dummyCamera_pos - this._root_pos; + Vector3 vector4 = (this._active_motion.AutoSync_At_Begin ? this._q_self_r : Quaternion.identity) * this._root_pos; + vector3 = (this._active_motion.AutoSync_At_Begin ? this._q_self_r : Quaternion.identity) * vector3; + bool flag3 = !this._active_motion.LookAt_Target; + if (flag3) + { + this._cameraTransform.rotation = (this._active_motion.AutoSync_At_Begin ? this._q_self_r : Quaternion.identity) * this._idle_root_rotation * this._dummyCamera_quat; + } + vector4 += (this._active_motion.Follow_Position ? vector : (this._active_motion.AutoSync_At_Begin ? this._v_self_p : Vector3.zero)); + CameraMotionSpace coordinate = this._active_motion.Coordinate; + if (coordinate != CameraMotionSpace.World) + { + if (coordinate == CameraMotionSpace.Self) + { + vector4 += (this._active_motion.Follow_Position ? Quaternion.identity : quaternion2) * vector3; + } + } + else + { + vector4 += vector3; + } + this._cameraTransform.position = vector4; + bool lookAt_Target = this._active_motion.LookAt_Target; + if (lookAt_Target) + { + this.LookAtTarget(); + } + } + + public void SetCameraLayer(int layer, bool add) + { + if (add) + { + this._camera.cullingMask |= 1 << layer; + } + else + { + this._camera.cullingMask &= ~(1 << layer); + } + } + + public void SetCameraLayer(int layermask) + { + this._camera.cullingMask = layermask; + } + + public int GetCameraLayer() + { + return this._camera.cullingMask; + } + + public void SetSolidBlack(bool enabled) + { + if (enabled) + { + this._camera.clearFlags = (CameraClearFlags)2; + this._camera.backgroundColor = Color.black; + } + else + { + this._camera.clearFlags = (CameraClearFlags)1; + } + } + + public void SetReplaceCameraShader(Shader shader) + { + bool flag = shader != null && this._camera != null; + if (flag) + { + this._camera.SetReplacementShader(shader, "RenderType"); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraEx.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraEx.cs.meta new file mode 100644 index 00000000..452af217 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraEx.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 41c8ae36311edf749848821fb707b646 +timeCreated: 1611403618 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraIntellectiveFollow.cs b/Client/Assets/Scripts/XMainClient/XCameraIntellectiveFollow.cs new file mode 100644 index 00000000..287da069 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraIntellectiveFollow.cs @@ -0,0 +1,183 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraIntellectiveFollow : XComponent + { + public override uint ID + { + get + { + return XCameraIntellectiveFollow.uuID; + } + } + + public float TailSpeed + { + get + { + return (float)XSingleton.singleton.TailCameraSpeed; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_IntellectiveFollow_Component"); + + private XCameraEx _camera_host = null; + + private float _move_follow_speed_basic = 0f; + + private float _move_follow_speed_target = 0f; + + private float _move_follow_speed = 0f; + + private bool _tail_to_back = false; + + private float _tail_back = 0f; + + private bool _reverse = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._camera_host = (this._host as XCameraEx); + } + + public override void OnDetachFromHost() + { + this._camera_host = null; + base.OnDetachFromHost(); + } + + public void TailToBack() + { + this._tail_to_back = true; + this._tail_back = XSingleton.singleton.Player.EngineObject.Rotation.eulerAngles.y; + float root_R_Y = XSingleton.singleton.GameCamera.Root_R_Y; + while (Mathf.Abs(root_R_Y - this._tail_back) > 180f) + { + this._tail_back += (float)((root_R_Y > this._tail_back) ? 360 : -360); + } + } + + public void TailUpdate(float fDeltaT) + { + bool flag = (this._camera_host.Solo != null && this._camera_host.Solo.SoloState != XCameraSoloComponent.XCameraSoloState.Stop) || XSingleton.singleton.IsPlaying; + if (!flag) + { + float move_follow_speed_target = this._move_follow_speed_target; + bool tail_to_back = this._tail_to_back; + if (tail_to_back) + { + float num = (this._tail_back - XSingleton.singleton.GameCamera.Root_R_Y) * Mathf.Min(1f, fDeltaT * 10f); + this._camera_host.YRotate(num); + bool flag2 = Mathf.Abs(num) < 0.1f; + if (flag2) + { + this._tail_to_back = false; + } + } + else + { + bool flag3 = XSingleton.singleton.Player.Skill.IsCasting(); + if (flag3) + { + XSkill currentSkill = XSingleton.singleton.Player.Skill.CurrentSkill; + Vector3 vector = XSingleton.singleton.Player.Rotate.GetMeaningfulFaceVector3(); + Vector3 vector2 = XSingleton.singleton.Horizontal(this._camera_host.CameraTrans.forward); + XEntity target = currentSkill.Target; + bool flag4 = target != null; + if (flag4) + { + vector = target.EngineObject.Position - XSingleton.singleton.Player.EngineObject.Position; + vector.y = 0f; + vector.Normalize(); + bool flag5 = vector.sqrMagnitude == 0f; + if (flag5) + { + return; + } + } + bool flag6 = Vector3.Angle(vector, vector2) < (float)(XSingleton.singleton.CameraAdjustScope >> 1) || XSingleton.singleton.CameraAdjustScopeExceptSkills.Contains(currentSkill.MainCore.ID); + if (flag6) + { + this._move_follow_speed_basic = (float)XSingleton.singleton.TailCameraSpeed * XSingleton.singleton.Player.Skill.CurrentSkill.MainCore.Soul.CameraTurnBack * fDeltaT; + float num2 = Mathf.Sin(0.0174532924f * Vector3.Angle(vector, vector2) * 0.5f); + this._move_follow_speed_target = this._move_follow_speed_basic * num2; + bool flag7 = XSingleton.singleton.Clockwise(vector, vector2); + if (flag7) + { + this._move_follow_speed_target *= -1f; + } + bool flag8 = move_follow_speed_target * this._move_follow_speed_target < 0f; + if (flag8) + { + this._move_follow_speed = 0f; + } + this._move_follow_speed += (this._move_follow_speed_target - this._move_follow_speed) * Mathf.Min(1f, fDeltaT * 10f); + this._camera_host.YRotate(this._move_follow_speed); + } + } + else + { + this._move_follow_speed_basic = (float)XSingleton.singleton.TailCameraSpeed * fDeltaT; + bool flag9 = XSingleton.singleton.Player.Machine.Current == XStateDefine.XState_Move && XSingleton.singleton.Player.Machine.State.Speed > 0f; + if (flag9) + { + Vector3 meaningfulFaceVector = XSingleton.singleton.Player.Rotate.GetMeaningfulFaceVector3(); + Vector3 vector3 = XSingleton.singleton.Horizontal(this._camera_host.CameraTrans.forward); + float num3 = Vector3.Angle(meaningfulFaceVector, vector3); + float num4 = Mathf.Sin(0.0174532924f * num3); + this._move_follow_speed_target = this._move_follow_speed_basic * num4; + bool flag10 = Math.Abs(this._move_follow_speed_target) > XCommon.XEps; + if (flag10) + { + bool reverse = this._reverse; + if (reverse) + { + bool flag11 = !XSingleton.singleton.Clockwise(meaningfulFaceVector, vector3); + if (flag11) + { + this._move_follow_speed_target *= -1f; + } + } + else + { + bool flag12 = XSingleton.singleton.Clockwise(meaningfulFaceVector, vector3); + if (flag12) + { + this._move_follow_speed_target *= -1f; + } + } + bool flag13 = move_follow_speed_target * this._move_follow_speed_target < 0f; + if (flag13) + { + this._move_follow_speed = -this._move_follow_speed; + } + } + else + { + this._move_follow_speed_target = 0f; + } + this._move_follow_speed += (this._move_follow_speed_target - this._move_follow_speed) * Mathf.Min(1f, fDeltaT * 5f); + this._camera_host.YRotate(this._move_follow_speed); + } + else + { + this._move_follow_speed += (0f - this._move_follow_speed) * Mathf.Min(1f, fDeltaT * 15f); + this._camera_host.YRotate(this._move_follow_speed); + this._reverse = false; + } + } + } + } + } + + private bool CalcReversion() + { + XEntity xentity = (XSingleton.singleton.Player.TargetLocated == null) ? null : XSingleton.singleton.Player.TargetLocated.Target; + return XEntity.ValideEntity(xentity) && !xentity.IsPuppet && XSingleton.singleton.GameCamera.IsVisibleFromCamera(xentity, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraIntellectiveFollow.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraIntellectiveFollow.cs.meta new file mode 100644 index 00000000..a27ac7eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraIntellectiveFollow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 814e4b30b4dcd9f4686b204ea5b7eb8f +timeCreated: 1611404036 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraMotionComponent.cs b/Client/Assets/Scripts/XMainClient/XCameraMotionComponent.cs new file mode 100644 index 00000000..522039d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraMotionComponent.cs @@ -0,0 +1,184 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraMotionComponent : XComponent + { + public override uint ID + { + get + { + return XCameraMotionComponent.uuID; + } + } + + public XCameraEx.XStatus Status + { + get + { + return this._status; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_Motion"); + + private XCameraEx _camera_host = null; + + private string _trigger = null; + + private XCameraMotionData _proxy_motion = null; + + private XCameraMotionData _idle_motion = new XCameraMotionData(); + + private XCameraEx.XStatus _status = XCameraEx.XStatus.None; + + private XEntity _proxy_target = null; + + private bool _to_damp = false; + + private bool _cutscene_end = false; + + private XAnimationClip _motionClip = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._camera_host = (this._host as XCameraEx); + this._status = XCameraEx.XStatus.None; + this._to_damp = false; + } + + public override void Attached() + { + this._idle_motion.Follow_Position = true; + this._idle_motion.Coordinate = CameraMotionSpace.World; + this._idle_motion.AutoSync_At_Begin = false; + this._idle_motion.LookAt_Target = (XSingleton.singleton.Player != null); + this._idle_motion.Motion = null; + this._camera_host.ActiveMotion = (this._idle_motion.Clone() as XCameraMotionData); + } + + public override void OnDetachFromHost() + { + this._camera_host.OverrideAnimClip("CameraEffect", null); + XResourceLoaderMgr.SafeDestroyShareResource("", ref this._motionClip); + this._camera_host = null; + base.OnDetachFromHost(); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_CameraMotion, new XComponent.XEventHandler(this.OnMotion)); + base.RegisterEvent(XEventDefine.XEvent_CameraMotionEnd, new XComponent.XEventHandler(this.OnEndMotion)); + } + + protected bool OnMotion(XEventArgs e) + { + XCameraMotionEventArgs xcameraMotionEventArgs = e as XCameraMotionEventArgs; + bool flag = xcameraMotionEventArgs.Trigger == "ToEffect"; + if (flag) + { + XResourceLoaderMgr.SafeGetAnimationClip(xcameraMotionEventArgs.Motion.Motion, ref this._motionClip); + bool flag2 = this._motionClip != null; + if (!flag2) + { + return false; + } + this._camera_host.OverrideAnimClip("CameraEffect", this._motionClip.clip); + } + this._trigger = xcameraMotionEventArgs.Trigger; + this._proxy_motion = xcameraMotionEventArgs.Motion; + this._to_damp = (this._camera_host.Target != null && xcameraMotionEventArgs.Target != null); + this._proxy_target = xcameraMotionEventArgs.Target; + return true; + } + + protected bool OnEndMotion(XEventArgs e) + { + XCameraMotionEndEventArgs xcameraMotionEndEventArgs = e as XCameraMotionEndEventArgs; + bool flag = this._proxy_target != xcameraMotionEndEventArgs.Target || this._status == XCameraEx.XStatus.Idle; + bool result; + if (flag) + { + result = false; + } + else + { + this._trigger = "ToIdle"; + this._cutscene_end = xcameraMotionEndEventArgs.CutSceneEnd; + this._proxy_motion = this._idle_motion; + this._to_damp = (this._camera_host.Target != null); + this._proxy_target = ((this._camera_host == XSingleton.singleton.GameCamera) ? XSingleton.singleton.Player : xcameraMotionEndEventArgs.Target); + result = true; + } + return result; + } + + public void MotionUpdate(float fDeltaT) + { + bool flag = this._trigger != null && !this._camera_host.Ator.IsInTransition(0); + if (flag) + { + string trigger = this._trigger; + if (!(trigger == "ToIdle")) + { + if (!(trigger == "ToEffect")) + { + if (trigger == "ToSolo") + { + this._status = XCameraEx.XStatus.Solo; + } + } + else + { + this._status = XCameraEx.XStatus.Effect; + } + } + else + { + this._status = XCameraEx.XStatus.Idle; + } + bool flag2 = this._camera_host.Solo != null && this._camera_host.Solo.SoloState == XCameraSoloComponent.XCameraSoloState.Executing; + if (flag2) + { + this._proxy_target = this._camera_host.Target; + this._camera_host.ActiveMotion.AutoSync_At_Begin = true; + } + else + { + bool flag3 = this._camera_host.Solo != null && this._camera_host.Solo.SoloState == XCameraSoloComponent.XCameraSoloState.Prepared; + if (flag3) + { + this._camera_host.Solo.Go(); + } + this._camera_host.ActiveMotion = (this._proxy_motion.Clone() as XCameraMotionData); + this._camera_host.Target = this._proxy_target; + this._camera_host.RootReady = false; + } + bool cutscene_end = this._cutscene_end; + if (cutscene_end) + { + bool flag4 = XSingleton.singleton.GameCamera.Collision != null; + if (flag4) + { + XSingleton.singleton.GameCamera.Collision.Enabled = true; + } + bool flag5 = XSingleton.singleton.GameCamera.VAdjust != null; + if (flag5) + { + XSingleton.singleton.GameCamera.VAdjust.Enabled = (XOperationData.Is3DMode() && !XCameraEx.OperationV); + } + this._cutscene_end = false; + } + this._camera_host.Ator.SetTrigger(this._trigger); + this._trigger = null; + bool to_damp = this._to_damp; + if (to_damp) + { + this._to_damp = false; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraMotionComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraMotionComponent.cs.meta new file mode 100644 index 00000000..5c37fc69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraMotionComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 391b49fc19b834a4cbcbbd31f9b0d1a1 +timeCreated: 1611403591 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraMotionEndEventArgs.cs b/Client/Assets/Scripts/XMainClient/XCameraMotionEndEventArgs.cs new file mode 100644 index 00000000..a3f4c0e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraMotionEndEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XCameraMotionEndEventArgs : XEventArgs + { + public XEntity Target = null; + + public bool CutSceneEnd = false; + + public XCameraMotionEndEventArgs() + { + this._eDefine = XEventDefine.XEvent_CameraMotionEnd; + } + + public override void Recycle() + { + base.Recycle(); + this.Target = null; + this.CutSceneEnd = false; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraMotionEndEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraMotionEndEventArgs.cs.meta new file mode 100644 index 00000000..c2e4dcbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraMotionEndEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b20f5bb9976c2aa4283d0b4a245296e4 +timeCreated: 1611404358 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraMotionEventArgs.cs b/Client/Assets/Scripts/XMainClient/XCameraMotionEventArgs.cs new file mode 100644 index 00000000..6580213f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraMotionEventArgs.cs @@ -0,0 +1,28 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraMotionEventArgs : XEventArgs + { + public XEntity Target = null; + + public string Trigger = null; + + public XCameraMotionData Motion = null; + + public XCameraMotionEventArgs() + { + this._eDefine = XEventDefine.XEvent_CameraMotion; + } + + public override void Recycle() + { + base.Recycle(); + this.Motion = null; + this.Trigger = null; + this.Target = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraMotionEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraMotionEventArgs.cs.meta new file mode 100644 index 00000000..7da8eb18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraMotionEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96a5c5326c179d54dbd959f59b553b20 +timeCreated: 1611404186 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraShakeComponent.cs b/Client/Assets/Scripts/XMainClient/XCameraShakeComponent.cs new file mode 100644 index 00000000..82dfed04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraShakeComponent.cs @@ -0,0 +1,155 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraShakeComponent : XComponent + { + public override uint ID + { + get + { + return XCameraShakeComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_Basic_Shake"); + + private XCameraEffectData _args; + + private XCameraEx _camera = null; + + private float _timeEscaped = 0f; + + private float _timeInterval = 0f; + + private float _fov = 0f; + + private float _time_scale = 1f; + + private bool _shake = false; + + private Vector3 x = Vector3.right; + + private Vector3 y = Vector3.up; + + private Vector3 z = Vector3.forward; + + private bool _random = false; + + private int _rfactor = 1; + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_CameraShake, new XComponent.XEventHandler(this.OnBasicShake)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._camera = (host as XCameraEx); + this._fov = this._camera.InitFOV; + } + + private bool OnBasicShake(XEventArgs e) + { + bool flag = this._camera != null; + if (flag) + { + XCameraShakeEventArgs xcameraShakeEventArgs = e as XCameraShakeEventArgs; + bool flag2 = xcameraShakeEventArgs.Effect == null; + if (flag2) + { + this.StopShake(); + return true; + } + this._time_scale = xcameraShakeEventArgs.TimeScale; + this._args = xcameraShakeEventArgs.Effect; + this._timeEscaped = 0f; + this._timeInterval = 0f; + this._fov = this._camera.InitFOV; + this._shake = true; + switch (this._args.Coordinate) + { + case CameraMotionSpace.World: + this.x = Vector3.right; + this.y = Vector3.up; + this.z = Vector3.forward; + break; + case CameraMotionSpace.Self: + this.x = XSingleton.singleton.Player.EngineObject.Right; + this.y = XSingleton.singleton.Player.EngineObject.Up; + this.z = XSingleton.singleton.Player.EngineObject.Forward; + break; + case CameraMotionSpace.Camera: + this.x = XSingleton.singleton.GameCamera.UnityCamera.transform.right; + this.y = XSingleton.singleton.GameCamera.UnityCamera.transform.up; + this.z = XSingleton.singleton.GameCamera.UnityCamera.transform.forward; + break; + } + this._random = this._args.Random; + } + this._rfactor = 1; + return true; + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this._camera != null && this._shake; + if (flag) + { + this._timeEscaped += fDeltaT; + this._timeInterval += fDeltaT; + bool flag2 = XSingleton.singleton.IsGreater(this._timeEscaped, this._args.Time * this._time_scale); + if (flag2) + { + this.StopShake(); + } + else + { + bool flag3 = XSingleton.singleton.IsGreater(this._timeInterval, 1f / this._args.Frequency * this._time_scale); + if (flag3) + { + this._rfactor = -this._rfactor; + this._camera.CameraTrans.position += this.Shake(); + this._camera.UnityCamera.fieldOfView = this._fov + (this._random ? UnityEngine.Random.Range(-this._args.FovAmp, this._args.FovAmp) : (this._args.FovAmp * (float)this._rfactor)); + this._timeInterval = 0f; + } + } + } + } + + private void StopShake() + { + this._args = null; + this._timeEscaped = 0f; + this._shake = false; + this._camera.FovBack(); + } + + private Vector3 Shake() + { + float num = this._random ? UnityEngine.Random.Range(-this._args.AmplitudeX, this._args.AmplitudeX) : (this._args.AmplitudeX * (float)this._rfactor); + float num2 = this._random ? UnityEngine.Random.Range(-this._args.AmplitudeY, this._args.AmplitudeY) : (this._args.AmplitudeY * (float)this._rfactor); + float num3 = this._random ? UnityEngine.Random.Range(-this._args.AmplitudeZ, this._args.AmplitudeZ) : (this._args.AmplitudeZ * (float)this._rfactor); + Vector3 vector = Vector3.zero; + bool shakeX = this._args.ShakeX; + if (shakeX) + { + vector += this.x * num; + } + bool shakeY = this._args.ShakeY; + if (shakeY) + { + vector += this.y * num2; + } + bool shakeZ = this._args.ShakeZ; + if (shakeZ) + { + vector += this.z * num3; + } + return vector; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraShakeComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraShakeComponent.cs.meta new file mode 100644 index 00000000..28efe70e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraShakeComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8a36a47e27997fc46b6e8689c31d707c +timeCreated: 1611404090 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs b/Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs new file mode 100644 index 00000000..ea7f4a0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs @@ -0,0 +1,25 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraShakeEventArgs : XEventArgs + { + public XCameraEffectData Effect { get; set; } + + public float TimeScale = 1f; + + public XCameraShakeEventArgs() + { + this._eDefine = XEventDefine.XEvent_CameraShake; + } + + public override void Recycle() + { + this.Effect = null; + this.TimeScale = 1f; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs.meta new file mode 100644 index 00000000..4c118a57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraShakeEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1374387922a82642808f648adb10e16 +timeCreated: 1611404489 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraSoloComponent.cs b/Client/Assets/Scripts/XMainClient/XCameraSoloComponent.cs new file mode 100644 index 00000000..b4d52220 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraSoloComponent.cs @@ -0,0 +1,277 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraSoloComponent : XComponent + { + public override uint ID + { + get + { + return XCameraSoloComponent.uuID; + } + } + + public XCameraSoloComponent.XCameraSoloState SoloState + { + get + { + return this._solo_state; + } + } + + public float SoloInitAngle + { + get + { + return this._init_angle; + } + } + + public XEntity Target + { + get + { + return this._target; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_Solo_Effect"); + + private XCameraEx _camera_host = null; + + private XCameraMotionData _motion = new XCameraMotionData(); + + private XEmpty _anchor = null; + + private XEntity _target = null; + + private float _rotate_y = 0f; + + private float _init_angle = 0f; + + private float _base_angle = 0f; + + private float _targetRadius = 0f; + + private bool _first_execute = false; + + private Vector3 _base_direction = Vector3.forward; + + private Vector3 _base_position = Vector3.zero; + + private Vector3 _base_location = Vector3.zero; + + private Vector3 _last_location = Vector3.zero; + + private XCameraSoloComponent.XCameraSoloState _solo_state = XCameraSoloComponent.XCameraSoloState.Stop; + + public enum XCameraSoloState + { + Prepared, + Triggered, + Executing, + Stop + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._motion.AutoSync_At_Begin = true; + this._motion.Coordinate = CameraMotionSpace.World; + this._motion.Follow_Position = true; + this._motion.LookAt_Target = false; + this._motion.At = 0f; + this._motion.Motion = "Animation/Main_Camera/Main_Camera_Idle"; + this._camera_host = (this._host as XCameraEx); + this._solo_state = XCameraSoloComponent.XCameraSoloState.Stop; + this._anchor = XSingleton.singleton.CreateEmpty(); + } + + public override void OnDetachFromHost() + { + this._camera_host = null; + base.OnDetachFromHost(); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_CameraSolo, new XComponent.XEventHandler(this.OnSolo)); + } + + protected bool OnSolo(XEventArgs e) + { + bool flag = !XCameraEx.OperationH || XSingleton.singleton.OffSolo; + bool result; + if (flag) + { + result = true; + } + else + { + XCameraSoloEventArgs xcameraSoloEventArgs = e as XCameraSoloEventArgs; + this._target = xcameraSoloEventArgs.Target; + bool flag2 = !XEntity.ValideEntity(this._target); + if (flag2) + { + result = true; + } + else + { + Vector3 position = this._target.EngineObject.Position; + this._last_location = position; + this._targetRadius = this._target.Radius; + this._base_position = XSingleton.singleton.Player.EngineObject.Position; + this._base_position.y = XSingleton.singleton.TerrainY(position); + this._base_direction = XSingleton.singleton.Horizontal(this._target.EngineObject.Position - this._base_position); + this._base_angle = XSingleton.singleton.AngleToFloat(this._base_direction); + this._base_location = this._camera_host.CameraTrans.position; + this._init_angle = this._base_angle; + this.CalibrateAnchor(this._init_angle); + this._solo_state = XCameraSoloComponent.XCameraSoloState.Prepared; + this.Start(); + result = true; + } + } + return result; + } + + public void Start() + { + this._first_execute = true; + XCameraMotionEventArgs @event = XEventPool.GetEvent(); + @event.Motion = this._motion; + @event.Target = this._anchor; + @event.Trigger = "ToSolo"; + @event.Firer = this._camera_host; + XSingleton.singleton.FireEvent(@event); + bool flag = this._target != null && this._target.IsBoss; + if (flag) + { + XSingleton.singleton.PlayBGM("Audio/mapambience/bossnew"); + } + } + + public void Go() + { + this._solo_state = XCameraSoloComponent.XCameraSoloState.Triggered; + } + + public override void Update(float fDeltaT) + { + XCameraSoloComponent.XCameraSoloState solo_state = this._solo_state; + if (solo_state != XCameraSoloComponent.XCameraSoloState.Triggered) + { + if (solo_state == XCameraSoloComponent.XCameraSoloState.Executing) + { + bool flag = XEntity.ValideEntity(this._target); + if (flag) + { + this.Execution(this._target.RadiusCenter, fDeltaT); + this._last_location = this._target.RadiusCenter; + } + else + { + bool flag2 = XSingleton.singleton.Is1V1Scene(); + if (flag2) + { + this.Execution(this._last_location, fDeltaT); + } + else + { + this.Stop(); + } + } + } + } + else + { + bool rootReady = this._camera_host.RootReady; + if (rootReady) + { + this._solo_state = XCameraSoloComponent.XCameraSoloState.Executing; + } + } + } + + private void Execution(Vector3 position, float fDeltaT) + { + bool first_execute = this._first_execute; + if (first_execute) + { + this._base_position = XSingleton.singleton.Player.EngineObject.Position; + this._first_execute = false; + } + else + { + Vector3 vector = XSingleton.singleton.Player.EngineObject.Position - this._base_position; + Vector3 vector2 = Vector3.Project(vector, this._base_direction); + Vector3 vector3 = Vector3.Project(vector, Vector3.up); + Vector3 vector4 = Vector3.Project(vector, Vector3.Cross(this._base_direction, Vector3.up)); + float num = (Vector3.Angle(vector2, this._base_direction) > 90f) ? 6f : 3f; + this._base_position += vector2 * Mathf.Min(1f, num * fDeltaT); + this._base_position += vector3 * Mathf.Min(1f, 2f * fDeltaT); + this._base_position += vector4 * Mathf.Min(1f, 2f * fDeltaT); + } + Vector3 vector5 = XSingleton.singleton.Horizontal(position - this._base_position); + float num2 = Vector3.Angle(vector5, this._base_direction); + bool flag = XSingleton.singleton.Clockwise(this._base_direction, vector5); + if (flag) + { + num2 = -num2; + } + this._base_angle += (0f - num2) * Mathf.Min(1f, this.Palstance(position) * fDeltaT); + this._base_direction = XSingleton.singleton.FloatToAngle(this._base_angle); + float num3 = XSingleton.singleton.AngleToFloat(this._base_direction); + this._rotate_y = num3 - this._init_angle; + this._camera_host.YRotateExBarely(this._rotate_y); + this.CalibrateAnchor(num3); + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this._solo_state == XCameraSoloComponent.XCameraSoloState.Executing; + if (flag) + { + Vector3 eulerAngles = this._camera_host.CameraTrans.rotation.eulerAngles; + Vector3 vector = Quaternion.Euler(eulerAngles) * Vector3.forward; + this._camera_host.Offset += (this._camera_host.TargetOffset - this._camera_host.Offset) * Mathf.Min(1f, fDeltaT * 4f); + this._base_location = this._camera_host.Anchor - vector * this._camera_host.Offset; + } + } + + private float Palstance(Vector3 targetPosition) + { + Vector3 vector = targetPosition - this._base_position; + vector.y = 0f; + float num = vector.magnitude - this._targetRadius - XSingleton.singleton.Player.Radius; + float num2 = 2f; + float num3 = 4f; + return (num > num3) ? num2 : ((num > 0f) ? (Mathf.Sin(num / num3 * 1.57079637f) * num2) : 0f); + } + + private void CalibrateAnchor(float y) + { + this._anchor.EngineObject.Position = this._base_position; + this._anchor.EngineObject.Rotation = Quaternion.Euler(0f, y, 0f); + } + + public void Stop() + { + bool flag = this._camera_host == null || this._solo_state == XCameraSoloComponent.XCameraSoloState.Stop; + if (!flag) + { + this._target = null; + this._solo_state = XCameraSoloComponent.XCameraSoloState.Stop; + XCameraMotionEndEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._camera_host; + @event.Target = this._anchor; + XSingleton.singleton.FireEvent(@event); + this._camera_host.AdjustRoot(); + this._camera_host.TargetOffset = this._camera_host.DefaultOffset; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraSoloComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraSoloComponent.cs.meta new file mode 100644 index 00000000..6d612e43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraSoloComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9741201389c0fbd41ab034d2fac9ba0e +timeCreated: 1611404188 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraSoloEventArgs.cs b/Client/Assets/Scripts/XMainClient/XCameraSoloEventArgs.cs new file mode 100644 index 00000000..d17c87a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraSoloEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XCameraSoloEventArgs : XEventArgs + { + public XEntity Target = null; + + public XCameraSoloEventArgs() + { + this._eDefine = XEventDefine.XEvent_CameraSolo; + } + + public override void Recycle() + { + base.Recycle(); + this.Target = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraSoloEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraSoloEventArgs.cs.meta new file mode 100644 index 00000000..9df3126f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraSoloEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 248606ada4e096c43926565a1f843109 +timeCreated: 1611403461 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraVAdjustComponent.cs b/Client/Assets/Scripts/XMainClient/XCameraVAdjustComponent.cs new file mode 100644 index 00000000..b8c5371f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraVAdjustComponent.cs @@ -0,0 +1,99 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraVAdjustComponent : XComponent + { + public override uint ID + { + get + { + return XCameraVAdjustComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_Vertical_Adjustment"); + + private XCameraEx _camera_host = null; + + private XEntity _target = null; + + private XPlayer _player = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._camera_host = (this._host as XCameraEx); + base.Enabled = (XOperationData.Is3DMode() && !XCameraEx.OperationV); + } + + public override void OnDetachFromHost() + { + this._player = null; + base.OnDetachFromHost(); + } + + public override void Update(float fDeltaT) + { + bool flag = this._player == null; + if (flag) + { + this._player = XSingleton.singleton.Player; + } + float num = this._camera_host.Root_R_X_Default + this._camera_host.ProxyIdleXRot; + float num2 = this._camera_host.DefaultOffset; + float num3 = this._camera_host.Root_R_X + this._camera_host.ProxyIdleXRot; + num3 = (float)((int)num3 % 360) + (num3 - (float)((int)num3)); + XEntity xentity = (this._player.TargetLocated == null) ? null : this._player.TargetLocated.Target; + bool flag2 = xentity != null; + if (flag2) + { + Vector3 vector = this._player.EngineObject.Position - this._camera_host.CameraTrans.position; + vector.y = 0f; + Vector3 vector2 = xentity.EngineObject.Position - this._player.EngineObject.Position; + vector2.y = 0f; + bool flag3 = Vector3.Angle(vector, vector2) > 120f; + if (!flag3) + { + Vector3 position = xentity.EngineObject.Position; + position.y += xentity.Height + 0.2f; + Vector3 vector3 = position - this._camera_host.Position; + Vector3 vector4 = Vector3.ProjectOnPlane(vector3, Vector3.up); + float num4 = Vector3.Angle(vector4, vector3); + bool flag4 = vector3.y < 0f; + if (flag4) + { + num4 = -num4; + } + float num5 = this._camera_host.UnityCamera.fieldOfView * 0.5f; + float num6 = num5 - num3; + bool flag5 = num4 > num6; + if (flag5) + { + num = 0f; + num2 = 7f; + } + else + { + num = ((num6 - num4 > 1f) ? num : num3); + num2 = ((num6 - num4 > 1f) ? this._camera_host.DefaultOffset : this._camera_host.TargetOffset); + } + } + } + float num7 = (num - num3) * Mathf.Min(1f, fDeltaT * 0.1f); + bool flag6 = Mathf.Abs(num7) > XCommon.XEps; + if (flag6) + { + this._camera_host.XRotateExBarely(num7); + } + bool flag7 = Mathf.Abs(num2 - this._camera_host.TargetOffset) > XCommon.XEps; + if (flag7) + { + this._camera_host.TargetOffset += (num2 - this._camera_host.TargetOffset) * Mathf.Min(1f, fDeltaT * 2f); + } + this._target = xentity; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraVAdjustComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraVAdjustComponent.cs.meta new file mode 100644 index 00000000..96990d2c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraVAdjustComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cba1a8dd228599649abce0f1ec4e5c96 +timeCreated: 1611404546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCameraWallComponent.cs b/Client/Assets/Scripts/XMainClient/XCameraWallComponent.cs new file mode 100644 index 00000000..b25716bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraWallComponent.cs @@ -0,0 +1,165 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCameraWallComponent : XComponent + { + public override uint ID + { + get + { + return XCameraWallComponent.uuID; + } + } + + public float TargetX + { + get + { + return this._target_x; + } + } + + public float TargetY + { + get + { + return this._target_y; + } + set + { + this._target_y = value; + } + } + + public bool XTriggered + { + get + { + return this._x_trigger; + } + set + { + this._x_trigger = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Camera_Wall_Component"); + + private XCameraEx _camera_host = null; + + private bool _corner_positive = true; + + private Vector3 _corner_intersection = Vector3.zero; + + private Vector3 _corner_dir = Vector3.forward; + + private AnimationCurve _corner_curve = null; + + private float _corner_sector = 0f; + + private float _in = 0f; + + private float _out = 0f; + + private float _corner_base_percentage = 0f; + + private bool _update = false; + + private float _target_x = 0f; + + private float _target_y = 0f; + + private bool _x_trigger = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._camera_host = (this._host as XCameraEx); + } + + public override void OnDetachFromHost() + { + this._camera_host = null; + base.OnDetachFromHost(); + } + + public void Effect(AnimationCurve curve, Vector3 intersection, Vector3 cornerdir, float sector, float inDegree, float outDegree, bool positive) + { + bool flag = this._camera_host.Target == null || !this._camera_host.Target.IsPlayer; + if (!flag) + { + this._update = true; + this._corner_intersection = intersection; + this._corner_dir = cornerdir; + this._corner_dir.y = 0f; + this._corner_dir.Normalize(); + this._corner_curve = curve; + this._corner_sector = sector; + this._corner_positive = positive; + Vector3 vector = XSingleton.singleton.Player.EngineObject.Position - this._corner_intersection; + vector.y = 0f; + vector.Normalize(); + this._corner_base_percentage = Vector3.Angle(this._corner_dir, vector) / this._corner_sector; + this._in = inDegree; + this._out = outDegree; + } + } + + public void EndEffect() + { + this._update = false; + } + + public void VerticalEffect(float shift) + { + } + + public override void Update(float fDeltaT) + { + this.xRotate(fDeltaT); + bool update = this._update; + if (update) + { + this.yRotate(); + } + } + + private void yRotate() + { + Vector3 vector = XSingleton.singleton.Player.EngineObject.Position - this._corner_intersection; + vector.y = 0f; + float num = Vector3.Angle(this._corner_dir, vector) / this._corner_sector; + float num2 = this._corner_positive ? num : (1f - num); + float num3 = this._corner_base_percentage * (this._corner_positive ? (1f - num2) : num2); + float num4 = this._corner_curve.Evaluate(this._corner_positive ? (num2 - num3) : (num2 + num3)); + float num5 = (num4 - this._corner_curve[0].value) / (this._corner_curve[this._corner_curve.length - 1].value - this._corner_curve[0].value); + this._target_y = this._in + (this._out - this._in) * (this._corner_positive ? num5 : (1f - num5)); + bool flag = !XCameraEx.OperationH && !XSingleton.singleton.IsPlaying; + if (flag) + { + this._camera_host.YRotate(this._target_y - this._camera_host.Root_R_Y); + } + } + + private void xRotate(float fDeltaT) + { + bool x_trigger = this._x_trigger; + if (x_trigger) + { + float num = (this._target_x - this._camera_host.Root_R_X) * Mathf.Min(1f, fDeltaT); + bool flag = Mathf.Abs(num) > 0.01f; + if (flag) + { + this._camera_host.XRotate(num); + } + else + { + this._x_trigger = false; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCameraWallComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCameraWallComponent.cs.meta new file mode 100644 index 00000000..71d4d5b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCameraWallComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23bd15e5bc88e0f48a07d276697596a9 +timeCreated: 1611403457 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCampDuelDocument.cs b/Client/Assets/Scripts/XMainClient/XCampDuelDocument.cs new file mode 100644 index 00000000..1dce4710 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCampDuelDocument.cs @@ -0,0 +1,284 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCampDuelDocument : XDocComponent + { + public override uint ID + { + get + { + return XCampDuelDocument.uuID; + } + } + + public static XCampDuelDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XCampDuelDocument.uuID) as XCampDuelDocument; + } + } + + public uint TaskID + { + get + { + return uint.Parse(XSingleton.singleton.GetValue("CampDuelTaskID")); + } + } + + public int ConfirmItemID + { + get + { + return int.Parse(XSingleton.singleton.GetValue("CampDuelItemId")); + } + } + + public SuperActivityTime.RowData ActInfo + { + get + { + bool flag = this._actInfo != null; + SuperActivityTime.RowData actInfo; + if (flag) + { + actInfo = this._actInfo; + } + else + { + this._actInfo = XTempActivityDocument.Doc.GetDataBySystemID((uint)this.systemID); + bool flag2 = this._actInfo == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("SuperActivityTime SystemID:" + this.systemID + "No Find", null, null, null, null, null); + } + actInfo = this._actInfo; + } + return actInfo; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XCampDuelDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static CampDuelPointReward _PointRewardTable = new CampDuelPointReward(); + + private static CampDuelRankReward _RankRewardTable = new CampDuelRankReward(); + + public int systemID = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CampDuel); + + public XCampDuelMainHandler handler; + + private bool hasData = false; + + public int campID; + + public int aheadCampID; + + public int point; + + public int curStage; + + public int FreeCourageCount; + + public int DragonCoinCourageCount; + + public int FreeCourageMAX = int.Parse(XSingleton.singleton.GetValue("CampDuelFreeInspireCount")); + + public string[] DragonCoinCourageCost = XSingleton.singleton.GetValue("CampDuelMoneyInspireCount").Split(new char[] + { + '|' + }); + + private SuperActivityTime.RowData _actInfo = null; + + private List _PointRewardList = new List(); + + private List _RankRewardList = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + XCampDuelDocument.AsyncLoader.AddTask("Table/CampDuelPointReward", XCampDuelDocument._PointRewardTable, false); + XCampDuelDocument.AsyncLoader.AddTask("Table/CampDuelRankReward", XCampDuelDocument._RankRewardTable, false); + XCampDuelDocument.AsyncLoader.Execute(callback); + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HALL && !this.hasData && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_CampDuel); + if (flag) + { + this.ReqCampDuel(1u, 0u); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_TaskStateChange, new XComponent.XEventHandler(this.OnTaskStateChanged)); + } + + private bool OnTaskStateChanged(XEventArgs e) + { + XTaskStatusChangeArgs xtaskStatusChangeArgs = e as XTaskStatusChangeArgs; + bool flag = xtaskStatusChangeArgs.status == TaskStatus.TaskStatus_Taked; + if (flag) + { + uint id = xtaskStatusChangeArgs.id; + TaskTableNew.RowData taskData = XTaskDocument.GetTaskData(id); + bool flag2 = taskData != null; + if (flag2) + { + bool flag3 = taskData.TaskID == this.TaskID; + if (flag3) + { + DlgBase.singleton.Show(XSysDefine.XSys_CampDuel, false); + } + } + } + return true; + } + + public List GetPointRewardList(int campID) + { + this._PointRewardList.Clear(); + for (int i = 0; i < XCampDuelDocument._PointRewardTable.Table.Length; i++) + { + bool flag = campID == XCampDuelDocument._PointRewardTable.Table[i].CampID; + if (flag) + { + this._PointRewardList.Add(XCampDuelDocument._PointRewardTable.Table[i]); + } + } + return this._PointRewardList; + } + + public CampDuelPointReward.RowData GetPointReward(int point) + { + CampDuelPointReward.RowData result = null; + for (int i = 0; i < XCampDuelDocument._PointRewardTable.Table.Length; i++) + { + bool flag = this.campID == XCampDuelDocument._PointRewardTable.Table[i].CampID && point >= XCampDuelDocument._PointRewardTable.Table[i].Point; + if (flag) + { + result = XCampDuelDocument._PointRewardTable.Table[i]; + } + } + return result; + } + + public CampDuelPointReward.RowData GetNextPointReward(int point) + { + for (int i = 0; i < XCampDuelDocument._PointRewardTable.Table.Length; i++) + { + bool flag = this.campID == XCampDuelDocument._PointRewardTable.Table[i].CampID && point < XCampDuelDocument._PointRewardTable.Table[i].Point; + if (flag) + { + return XCampDuelDocument._PointRewardTable.Table[i]; + } + } + return null; + } + + public List GetRankRewardList() + { + this._RankRewardList.Clear(); + for (int i = 0; i < XCampDuelDocument._RankRewardTable.Table.Length; i++) + { + this._RankRewardList.Add(XCampDuelDocument._RankRewardTable.Table[i]); + } + return this._RankRewardList; + } + + public void ReqCampDuel(uint type, uint arg = 0u) + { + RpcC2G_CampDuelActivityOperation rpcC2G_CampDuelActivityOperation = new RpcC2G_CampDuelActivityOperation(); + rpcC2G_CampDuelActivityOperation.oArg.type = type; + rpcC2G_CampDuelActivityOperation.oArg.arg = arg; + XSingleton.singleton.Send(rpcC2G_CampDuelActivityOperation); + } + + public void SetCampDuelData(CampDuelActivityOperationArg oArg, CampDuelActivityOperationRes oRes) + { + bool flag = oRes.data == null; + if (!flag) + { + bool flag2 = oArg.type == 1u; + if (flag2) + { + this.aheadCampID = (int)oRes.precedeCampID; + this.hasData = true; + } + bool flag3 = oArg.type == 3u || oArg.type == 4u || oArg.type == 5u; + if (flag3) + { + CampDuelPointReward.RowData pointReward = this.GetPointReward(this.point); + CampDuelPointReward.RowData pointReward2 = this.GetPointReward((int)oRes.data.point); + bool flag4 = (pointReward != null && pointReward2 != null && pointReward.Point != pointReward2.Point) || (pointReward == null && pointReward2 != null); + if (flag4) + { + bool flag5 = this.handler != null; + if (flag5) + { + XSingleton.singleton.AddGreenLog("PlayBoxUpFx", null, null, null, null, null); + this.handler.PlayBoxUpFx(); + } + } + } + bool flag6 = oArg.type == 3u; + if (flag6) + { + bool flag7 = this.handler != null; + if (flag7) + { + XSingleton.singleton.AddGreenLog("PlayNPCFx", null, null, null, null, null); + this.handler.PlayNPCFx(); + this.handler.ShowBlah(); + } + } + bool flag8 = (long)this.point != (long)((ulong)oRes.data.point); + if (flag8) + { + bool flag9 = this.handler != null; + if (flag9) + { + this.handler.AddNumPlayTween((int)(oRes.data.point - (uint)this.point)); + } + } + this.campID = (int)oRes.data.campid; + this.point = (int)oRes.data.point; + this.FreeCourageCount = (int)oRes.data.freeInspireCount; + this.DragonCoinCourageCount = (int)oRes.data.dragonCoinInspireCount; + bool flag10 = this.handler != null; + if (flag10) + { + this.handler.ShowUI(); + } + } + } + + public bool IsRedPoint() + { + return this.FreeCourageCount != 0 && this.curStage == 1; + } + + public void RecordActivityPastTime(uint time, SeqListRef timestage) + { + int num = (int)(time / 3600u); + this.curStage = (((long)num < (long)((ulong)timestage[0, 0])) ? 1 : 2); + XSingleton.singleton.AddGreenLog("time:" + num, null, null, null, null, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCampDuelDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCampDuelDocument.cs.meta new file mode 100644 index 00000000..4f020dbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCampDuelDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc16fd657b57e734cabb6af35d81db2e +timeCreated: 1611404549 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCampDuelRankInfo.cs b/Client/Assets/Scripts/XMainClient/XCampDuelRankInfo.cs new file mode 100644 index 00000000..e298acd8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCampDuelRankInfo.cs @@ -0,0 +1,16 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XCampDuelRankInfo : XBaseRankInfo + { + public override void ProcessData(RankData data) + { + this.id = data.RoleId; + this.value = (ulong)data.powerpoint; + this.name = data.RoleName; + this.rank = data.Rank; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCampDuelRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XCampDuelRankInfo.cs.meta new file mode 100644 index 00000000..c21c5558 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCampDuelRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2367d4b8cbc094b4aae86556d66275e2 +timeCreated: 1611403452 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCampDuelRankLeftList.cs b/Client/Assets/Scripts/XMainClient/XCampDuelRankLeftList.cs new file mode 100644 index 00000000..195a59a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCampDuelRankLeftList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XCampDuelRankLeftList : XBaseRankList + { + public XCampDuelRankLeftList() + { + this.type = XRankType.CampDuelRankLeft; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XCampDuelRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCampDuelRankLeftList.cs.meta b/Client/Assets/Scripts/XMainClient/XCampDuelRankLeftList.cs.meta new file mode 100644 index 00000000..952a5e60 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCampDuelRankLeftList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 69a4f7a4cb36aa3468c1827bfb1401f4 +timeCreated: 1611403886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCampDuelRankRightList.cs b/Client/Assets/Scripts/XMainClient/XCampDuelRankRightList.cs new file mode 100644 index 00000000..6f46664a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCampDuelRankRightList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XCampDuelRankRightList : XBaseRankList + { + public XCampDuelRankRightList() + { + this.type = XRankType.CampDuelRankRight; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XCampDuelRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCampDuelRankRightList.cs.meta b/Client/Assets/Scripts/XMainClient/XCampDuelRankRightList.cs.meta new file mode 100644 index 00000000..1acd84c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCampDuelRankRightList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6a74c74ad4b1aeb4d88d01eaa57b159d +timeCreated: 1611403888 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPBehaviour.cs b/Client/Assets/Scripts/XMainClient/XCaptainPVPBehaviour.cs new file mode 100644 index 00000000..2a44bf0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPBehaviour.cs @@ -0,0 +1,69 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCaptainPVPBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public IXUIButton m_BtnShop; + + public IXUIButton m_BtnRecord; + + public IXUIButton m_BtnStartSingle; + + public IXUIButton m_BtnStartTeam; + + public IXUILabel m_BattleRecord; + + public IXUILabel m_BoxLabel; + + public IXUILabel m_MatchNum; + + public IXUILabel m_BtnStartSingleLabel; + + public IXUILabel m_WeekRewardLabel; + + public IXUILabel m_ExRewardLabel; + + public GameObject m_BattleRecordFrame; + + public GameObject m_Bg; + + public GameObject m_WeekRewardList; + + public GameObject m_ExRewardList; + + public XUIPool m_ExRewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_WeekRewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_BtnShop = (base.transform.Find("Bg/Right/BtnShop").GetComponent("XUIButton") as IXUIButton); + this.m_BtnRecord = (base.transform.Find("Bg/Right/BtnRecord").GetComponent("XUIButton") as IXUIButton); + this.m_BtnStartSingle = (base.transform.Find("Bg/Right/BtnStartSingle").GetComponent("XUIButton") as IXUIButton); + this.m_BtnStartTeam = (base.transform.Find("Bg/Right/BtnStartTeam").GetComponent("XUIButton") as IXUIButton); + this.m_BattleRecord = (base.transform.Find("Bg/Left/BattleRecord").GetComponent("XUILabel") as IXUILabel); + this.m_BoxLabel = (base.transform.Find("Bg/Left/Box/T").GetComponent("XUILabel") as IXUILabel); + this.m_MatchNum = (base.transform.Find("Bg/Right/MatchNum").GetComponent("XUILabel") as IXUILabel); + this.m_BtnStartSingleLabel = (base.transform.Find("Bg/Right/BtnStartSingle/T").GetComponent("XUILabel") as IXUILabel); + this.m_BattleRecordFrame = base.transform.Find("Bg/BattleRecordFrame").gameObject; + this.m_Bg = base.transform.Find("Bg").gameObject; + this.m_WeekRewardLabel = (this.m_Bg.transform.Find("WeekReward/T").GetComponent("XUILabel") as IXUILabel); + this.m_WeekRewardList = this.m_Bg.transform.Find("WeekReward/ListPanel/ItemTpl").gameObject; + this.m_WeekRewardPool.SetupPool(this.m_WeekRewardList.transform.parent.gameObject, this.m_WeekRewardList, 2u, false); + this.m_ExRewardLabel = (this.m_Bg.transform.Find("ExReward/T").GetComponent("XUILabel") as IXUILabel); + this.m_ExRewardList = this.m_Bg.transform.Find("ExReward/ListPanel/ItemTpl").gameObject; + this.m_ExRewardPool.SetupPool(this.m_ExRewardList.transform.parent.gameObject, this.m_ExRewardList, 2u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XCaptainPVPBehaviour.cs.meta new file mode 100644 index 00000000..3ed60581 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3a463dc4657c6064c9f42a9c71fc20bf +timeCreated: 1611403596 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPDocument.cs b/Client/Assets/Scripts/XMainClient/XCaptainPVPDocument.cs new file mode 100644 index 00000000..fa7ba6af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPDocument.cs @@ -0,0 +1,286 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCaptainPVPDocument : XDocComponent + { + public override uint ID + { + get + { + return XCaptainPVPDocument.uuID; + } + } + + public XCaptainPVPView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public List RecordList + { + get + { + return this._recordList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CaptainPVPDocument"); + + private XCaptainPVPView _view = null; + + private List _recordList = new List(); + + public bool isEmptyBox; + + public bool canGetWeekReward; + + public int weekMax; + + public int weekWinCount; + + public bool MainInterfaceState = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag) + { + this.ReqGetShowInfo(); + } + } + + public void ReqGetShowInfo() + { + RpcC2G_PvpAllReq rpcC2G_PvpAllReq = new RpcC2G_PvpAllReq(); + rpcC2G_PvpAllReq.oArg.type = PvpReqType.PVP_REQ_BASE_DATA; + XSingleton.singleton.Send(rpcC2G_PvpAllReq); + } + + public void SetShowInfo(PvpArg oArg, PvpRes oRes) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = oRes.basedata == null; + if (!flag2) + { + int wincountall = oRes.basedata.wincountall; + int losecountall = oRes.basedata.losecountall; + this.weekWinCount = oRes.basedata.wincountthisweek; + this.weekMax = oRes.basedata.wincountweekmax; + int num = 0; + bool flag3 = wincountall + losecountall != 0; + if (flag3) + { + num = (int)Math.Round(100.0 * (double)wincountall / (double)(wincountall + losecountall)); + } + DlgBase.singleton.uiBehaviour.m_BattleRecord.SetText(string.Format(XStringDefineProxy.GetString("CAPTAINPVP_HISTORY"), new object[] + { + this.ShowNum(wincountall + losecountall), + this.ShowNum(wincountall), + this.ShowNum(losecountall), + num.ToString() + })); + DlgBase.singleton.uiBehaviour.m_BoxLabel.SetText(string.Format("{0}/{1}", this.weekWinCount, this.weekMax)); + DlgBase.singleton.uiBehaviour.m_MatchNum.SetText(string.Format(XStringDefineProxy.GetString("CAPTAINPVP_MATCH"), oRes.basedata.matchingcount)); + bool flag4 = this.weekWinCount >= this.weekMax && !oRes.basedata.weekRewardHaveGet; + if (flag4) + { + this.canGetWeekReward = true; + } + else + { + this.canGetWeekReward = false; + } + this.isEmptyBox = oRes.basedata.weekRewardHaveGet; + this.View.RefreshWeekReward(); + this.View.RefreshExReward(oRes.basedata.jointodayintime, oRes.basedata.jointodayintimemax); + } + } + } + + private string ShowNum(int num) + { + bool flag = num < 10; + string result; + if (flag) + { + result = num.ToString() + " "; + } + else + { + bool flag2 = num < 100; + if (flag2) + { + result = num.ToString() + " "; + } + else + { + result = num.ToString(); + } + } + return result; + } + + public void ReqGetWeekReward() + { + RpcC2G_PvpAllReq rpcC2G_PvpAllReq = new RpcC2G_PvpAllReq(); + rpcC2G_PvpAllReq.oArg.type = PvpReqType.PVP_REQ_GET_WEEKREWARD; + XSingleton.singleton.Send(rpcC2G_PvpAllReq); + } + + public void SetWeekReward(PvpArg oArg, PvpRes oRes) + { + this.canGetWeekReward = false; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.View.RefreshWeekReward(); + } + } + + public void ReqGetHistory() + { + RpcC2G_PvpAllReq rpcC2G_PvpAllReq = new RpcC2G_PvpAllReq(); + rpcC2G_PvpAllReq.oArg.type = PvpReqType.PVP_REQ_HISTORY_REC; + XSingleton.singleton.Send(rpcC2G_PvpAllReq); + } + + public void SetBattleRecord(PvpRes oRes) + { + bool flag = oRes.history == null; + if (!flag) + { + this._recordList.Clear(); + for (int i = oRes.history.recs.Count - 1; i >= 0; i--) + { + BattleRecordGameInfo battleRecordGameInfo = new BattleRecordGameInfo(); + for (int j = 0; j < oRes.history.recs[i].myside.Count; j++) + { + bool flag2 = oRes.history.recs[i].myside[j].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + battleRecordGameInfo.left.Add(this.GetOnePlayerInfo(oRes.history.recs[i].myside[j])); + } + } + for (int k = 0; k < oRes.history.recs[i].myside.Count; k++) + { + bool flag3 = oRes.history.recs[i].myside[k].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (!flag3) + { + battleRecordGameInfo.left.Add(this.GetOnePlayerInfo(oRes.history.recs[i].myside[k])); + } + } + for (int l = 0; l < oRes.history.recs[i].opside.Count; l++) + { + battleRecordGameInfo.right.Add(this.GetOnePlayerInfo(oRes.history.recs[i].opside[l])); + } + bool flag4 = oRes.history.recs[i].wincount > oRes.history.recs[i].losecount; + if (flag4) + { + battleRecordGameInfo.result = HeroBattleOver.HeroBattleOver_Win; + } + else + { + bool flag5 = oRes.history.recs[i].wincount < oRes.history.recs[i].losecount; + if (flag5) + { + battleRecordGameInfo.result = HeroBattleOver.HeroBattleOver_Lose; + } + else + { + battleRecordGameInfo.result = HeroBattleOver.HeroBattleOver_Draw; + } + } + battleRecordGameInfo.militaryExploit = oRes.history.recs[i].military; + this._recordList.Add(battleRecordGameInfo); + } + bool flag6 = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_CaptainBattleRecordHandler != null && DlgBase.singleton.m_CaptainBattleRecordHandler.IsVisible(); + if (flag6) + { + DlgBase.singleton.m_CaptainBattleRecordHandler.SetupRecord(this.RecordList); + } + bool flag7 = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_BattleRecordHandler != null && DlgBase.singleton.m_BattleRecordHandler.IsVisible(); + if (flag7) + { + DlgBase.singleton.m_BattleRecordHandler.SetupRecord(this.RecordList); + } + } + } + + public BattleRecordPlayerInfo GetOnePlayerInfo(PvpRoleBrief data) + { + return new BattleRecordPlayerInfo + { + name = data.rolename, + profression = data.roleprofession, + roleID = data.roleid + }; + } + + public void NtfSetMatch(uint lefttime) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + bool flag = lefttime > 0u; + if (flag) + { + bool flag2 = specificDocument.MyTeamView != null && specificDocument.MyTeamView.IsVisible(); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_MATCH_START"), "fece00"); + } + } + } + } + + public void SetStartSingleLabel() + { + DlgBase.singleton.uiBehaviour.m_BtnStartSingleLabel.SetText(string.Format("{0}...", XStringDefineProxy.GetString("MATCHING"))); + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceState = state; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_Activity_CaptainPVP, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCaptainPVPDocument.cs.meta new file mode 100644 index 00000000..ba5bb482 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f67b946b7d0dc8f439fed9a50e6cbc6a +timeCreated: 1611404882 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPInfo.cs b/Client/Assets/Scripts/XMainClient/XCaptainPVPInfo.cs new file mode 100644 index 00000000..e8515188 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPInfo.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient +{ + public class XCaptainPVPInfo + { + public ulong id; + + public string name; + + public string value; + + public int kill; + + public int dead; + + public int assit; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XCaptainPVPInfo.cs.meta new file mode 100644 index 00000000..98fac463 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9d7ca56e310651448f73c16307f6d65 +timeCreated: 1611404645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPRankInfo.cs b/Client/Assets/Scripts/XMainClient/XCaptainPVPRankInfo.cs new file mode 100644 index 00000000..27e0f8f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPRankInfo.cs @@ -0,0 +1,47 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XCaptainPVPRankInfo : XBaseRankInfo + { + public int kill; + + public int dead; + + public int assit; + + public override string GetValue() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + string result; + if (flag) + { + result = string.Concat(new object[] + { + this.kill, + XStringDefineProxy.GetString("KILL"), + " ", + this.dead, + XStringDefineProxy.GetString("DEAD"), + " ", + this.assit, + XStringDefineProxy.GetString("ASSIT") + }); + } + else + { + result = string.Concat(new object[] + { + this.kill, + XStringDefineProxy.GetString("KILL"), + " ", + this.dead, + XStringDefineProxy.GetString("DEAD") + }); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XCaptainPVPRankInfo.cs.meta new file mode 100644 index 00000000..9e3a06a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c769cff3729985643862acd93bad64d2 +timeCreated: 1611404530 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPView.cs b/Client/Assets/Scripts/XMainClient/XCaptainPVPView.cs new file mode 100644 index 00000000..66d038bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPView.cs @@ -0,0 +1,319 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCaptainPVPView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/CaptainDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XCaptainPVPDocument _doc = null; + + public BattleRecordHandler m_CaptainBattleRecordHandler; + + private uint _DataTimerID = 0u; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + this._doc.View = this; + DlgHandlerBase.EnsureCreate(ref this.m_CaptainBattleRecordHandler, base.uiBehaviour.m_BattleRecordFrame, null, false); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_BtnShop.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopClicked)); + base.uiBehaviour.m_BtnRecord.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRecordClicked)); + base.uiBehaviour.m_BtnStartSingle.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartSingleClicked)); + base.uiBehaviour.m_BtnStartTeam.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnStartTeamClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Activity_CaptainPVP); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this.InitShow(); + XSingleton.singleton.KillTimer(this._DataTimerID); + this._AutoRefresh(null); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_CaptainBattleRecordHandler.SetVisible(false); + XSingleton.singleton.KillTimer(this._DataTimerID); + this._DataTimerID = 0u; + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_CaptainBattleRecordHandler); + XSingleton.singleton.KillTimer(this._DataTimerID); + this._DataTimerID = 0u; + this._doc.View = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + } + + public void RefreshButtonState() + { + bool flag = !base.IsLoaded(); + if (!flag) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag2 = specificDocument.SoloMatchType == KMatchType.KMT_PVP; + if (flag2) + { + DlgBase.singleton.uiBehaviour.m_BtnStartSingleLabel.SetText(string.Format("{0}...", XStringDefineProxy.GetString("MATCHING"))); + DlgBase.singleton.uiBehaviour.m_BtnStartTeam.SetEnable(false, false); + } + else + { + DlgBase.singleton.uiBehaviour.m_BtnStartSingleLabel.SetText(string.Format(XStringDefineProxy.GetString("CAPTAINPVP_SINGLE"), new object[0])); + DlgBase.singleton.uiBehaviour.m_BtnStartTeam.SetEnable(true, false); + } + } + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public bool OnRoleClicked(IXUISprite sp) + { + return true; + } + + private bool OnItemListCloseClicked(IXUIButton sp) + { + return true; + } + + private void OnBoxClicked(IXUITexture sp) + { + bool canGetWeekReward = this._doc.canGetWeekReward; + if (canGetWeekReward) + { + this._doc.ReqGetWeekReward(); + } + else + { + bool flag = !this._doc.isEmptyBox; + if (flag) + { + this.RefreshWeekReward(); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SRS_FETCHED"), "fece00"); + } + } + } + + public bool OnGetWeekRewardClicked(IXUIButton sp) + { + bool canGetWeekReward = this._doc.canGetWeekReward; + if (canGetWeekReward) + { + this._doc.ReqGetWeekReward(); + } + return true; + } + + private bool OnShopClicked(IXUIButton sp) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Mall_Honer, 0UL); + return true; + } + + private bool OnRecordClicked(IXUIButton sp) + { + this._doc.ReqGetHistory(); + this.m_CaptainBattleRecordHandler.SetupRecord(this._doc.RecordList); + return true; + } + + private bool OnStartSingleClicked(IXUIButton sp) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + bool result; + if (bInTeam) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CAPTAIN_SINGLE_MATCH_TIP"), "fece00"); + result = false; + } + else + { + KMatchOp op = (specificDocument.SoloMatchType != KMatchType.KMT_PVP) ? KMatchOp.KMATCH_OP_START : KMatchOp.KMATCH_OP_STOP; + specificDocument.ReqMatchStateChange(KMatchType.KMT_PVP, op, false); + result = true; + } + return result; + } + + private bool OnStartTeamClicked(IXUIButton sp) + { + this.OnCloseClicked(sp); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelCaptainPVP); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = expeditionList.Count > 0; + if (flag) + { + specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID); + } + return true; + } + + public void InitShow() + { + base.uiBehaviour.m_BattleRecord.SetText(""); + base.uiBehaviour.m_BoxLabel.SetText("0/0"); + base.uiBehaviour.m_MatchNum.SetText(""); + base.uiBehaviour.m_ExRewardLabel.SetText(""); + base.uiBehaviour.m_BtnStartSingleLabel.SetText(string.Format(XStringDefineProxy.GetString("CAPTAINPVP_SINGLE"), new object[0])); + base.uiBehaviour.m_BtnStartTeam.SetEnable(true, false); + this.RefreshButtonState(); + } + + public void RefreshWeekReward() + { + bool flag = !base.IsVisible(); + if (!flag) + { + int weekWinCount = this._doc.weekWinCount; + string arg = (weekWinCount == this._doc.weekMax) ? "[00ff37]" : "[ffffff]"; + string text = string.Format("{0}{1}[-]", arg, weekWinCount); + base.uiBehaviour.m_WeekRewardLabel.SetText(string.Format(XStringDefineProxy.GetString("CAPTAIN_WEEK_REWARD"), this._doc.weekMax, this._doc.weekWinCount, this._doc.weekMax)); + base.uiBehaviour.m_WeekRewardPool.ReturnAll(false); + string[] array = XSingleton.singleton.GetValue("PVPWeekRewards").Split(XGlobalConfig.AllSeparators); + int num = array.Length / 2; + for (int i = 0; i < num; i++) + { + GameObject gameObject = base.uiBehaviour.m_WeekRewardPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, int.Parse(array[i * 2]), int.Parse(array[i * 2 + 1]), false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, int.Parse(array[i * 2])); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + gameObject.transform.localPosition = new Vector3((float)(i * ixuisprite.spriteWidth), 0f, 0f); + gameObject.transform.Find("HadGet").gameObject.SetActive(this._doc.isEmptyBox); + IXUIButton ixuibutton = gameObject.transform.Find("GetRewardBtn").GetComponent("XUIButton") as IXUIButton; + ixuibutton.gameObject.SetActive(this._doc.canGetWeekReward); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetWeekRewardClicked)); + } + } + } + + public void RefreshExReward(int joinNum, int joinNumMax) + { + bool flag = !base.IsVisible(); + if (!flag) + { + int num = Math.Max(joinNumMax - joinNum, 0); + string arg = (num == 0) ? "[ff3e3e]" : "[00ff37]"; + string text = string.Format("{0}{1}[-]", arg, num); + DlgBase.singleton.uiBehaviour.m_ExRewardLabel.SetText(string.Format(XStringDefineProxy.GetString("CAPTAINPVP_EXTRA"), new object[] + { + XSingleton.singleton.GetValue("PVPDayOpenTime"), + joinNumMax.ToString(), + text, + joinNumMax.ToString() + })); + base.uiBehaviour.m_ExRewardPool.ReturnAll(false); + string[] array = XSingleton.singleton.GetValue("PVPDayRewards").Split(XGlobalConfig.AllSeparators); + int num2 = array.Length / 2; + for (int i = 0; i < num2; i++) + { + GameObject gameObject = base.uiBehaviour.m_ExRewardPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, int.Parse(array[i * 2]), int.Parse(array[i * 2 + 1]), false); + XSingleton.singleton.normalItemDrawer.OpenClickShowTooltipEvent(gameObject, int.Parse(array[i * 2])); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + gameObject.transform.localPosition = new Vector3((float)(i * ixuisprite.spriteWidth), 0f, 0f); + } + } + } + + private void _AutoRefresh(object param) + { + bool flag = base.IsVisible(); + if (flag) + { + this._doc.ReqGetShowInfo(); + this._DataTimerID = XSingleton.singleton.SetTimer(3.1f, new XTimerMgr.ElapsedEventHandler(this._AutoRefresh), null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCaptainPVPView.cs.meta b/Client/Assets/Scripts/XMainClient/XCaptainPVPView.cs.meta new file mode 100644 index 00000000..ba3753a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCaptainPVPView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f0ae8d998a5f2cc4e86cb02639604638 +timeCreated: 1611404833 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCardCollectDocument.cs b/Client/Assets/Scripts/XMainClient/XCardCollectDocument.cs new file mode 100644 index 00000000..9df171b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCardCollectDocument.cs @@ -0,0 +1,649 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCardCollectDocument : XDocComponent + { + public override uint ID + { + get + { + return XCardCollectDocument.uuID; + } + } + + public CardCollectView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public XBetterDictionary HasCardList + { + get + { + return this.m_HasCardList; + } + } + + public List CardsGroupInfo + { + get + { + return XCardCollectDocument._CardsGroupInfo; + } + } + + public XBetterDictionary AttrSum + { + get + { + return this.m_AttrSum; + } + } + + public int CurSelectGroup + { + get + { + return (int)this.m_CurSelectGroup; + } + } + + public XDeck CurDeck + { + get + { + return this.CardsGroupInfo[this.CurSelectGroup]; + } + } + + public uint CurOpenGroup + { + get + { + return this.m_CurOpenGroup; + } + } + + public uint CurShowGroup + { + get + { + return this.m_CurShowGroup; + } + } + + public static int GroupMax + { + get + { + return XCardCollectDocument._CardsGroupListTable.Table.Length; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XCardCollectDocument"); + + private CardCollectView _view = null; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static CardsFireProperty _CardsFirePropertyTable = new CardsFireProperty(); + + private static CardsGroup _CardsGroupTable = new CardsGroup(); + + private static CardsGroupList _CardsGroupListTable = new CardsGroupList(); + + private static CardsList _CardsListTable = new CardsList(); + + private XBetterDictionary m_HasCardList = new XBetterDictionary(0); + + public bool IsCardDirty; + + private static List _CardsGroupInfo = new List(); + + private XBetterDictionary m_AttrSum = new XBetterDictionary(0); + + private uint m_CurSelectGroup = 1u; + + public uint m_CurOpenGroup; + + public uint m_CurShowGroup; + + private XItemFilter m_Filter = new XItemFilter(); + + private List m_ItemList = new List(); + + private Dictionary _CardList = new Dictionary(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.m_Filter.Clear(); + this.m_Filter.AddItemType(ItemType.CARD); + } + + public override void OnEnterSceneFinally() + { + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.InitCardData(arg.PlayerInfo.atlas); + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.CurPage == CardPage.Deck; + if (flag) + { + DlgBase.singleton.RefreshShowDeck(false); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + } + + public bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag = xaddItemEventArgs.items[i].type == 19u; + if (flag) + { + this.IsCardDirty = true; + CardsList.RowData cards = XCardCollectDocument.GetCards((uint)xaddItemEventArgs.items[i].itemID); + bool flag2 = cards == null; + bool result; + if (flag2) + { + XSingleton.singleton.AddErrorLog("CardID:" + xaddItemEventArgs.items[i].itemID + " No Find", null, null, null, null, null); + result = false; + } + else + { + int groupId = (int)cards.GroupId; + bool flag3 = groupId >= XCardCollectDocument._CardsGroupInfo.Count; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "CardID:", + xaddItemEventArgs.items[i].itemID, + "groupId:", + cards.GroupId, + " _CardsGroupInfo.Count:", + XCardCollectDocument._CardsGroupInfo.Count + }), null, null, null, null, null); + result = false; + } + else + { + XCardCollectDocument._CardsGroupInfo[groupId].IsDeckDirty = true; + XCardCollectDocument._CardsGroupInfo[groupId].RefreshRedPoint(); + bool flag4 = this.View != null; + if (flag4) + { + this.View.RefreshDetail(); + } + result = true; + } + } + return result; + } + } + return false; + } + + public bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + for (int i = 0; i < xremoveItemEventArgs.types.Count; i++) + { + bool flag = xremoveItemEventArgs.types[i] == ItemType.CARD; + if (flag) + { + this.IsCardDirty = true; + CardsList.RowData cards = XCardCollectDocument.GetCards((uint)xremoveItemEventArgs.ids[i]); + bool flag2 = cards == null; + bool result; + if (flag2) + { + XSingleton.singleton.AddErrorLog("CardID:" + xremoveItemEventArgs.ids[i] + " No Find", null, null, null, null, null); + result = false; + } + else + { + int groupId = (int)cards.GroupId; + bool flag3 = groupId >= XCardCollectDocument._CardsGroupInfo.Count; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "CardID:", + xremoveItemEventArgs.ids[i], + "groupId:", + cards.GroupId, + " _CardsGroupInfo.Count:", + XCardCollectDocument._CardsGroupInfo.Count + }), null, null, null, null, null); + result = false; + } + else + { + XCardCollectDocument._CardsGroupInfo[groupId].IsDeckDirty = true; + XCardCollectDocument._CardsGroupInfo[groupId].RefreshRedPoint(); + bool flag4 = this.View != null; + if (flag4) + { + this.View.RefreshDetail(); + } + result = true; + } + } + return result; + } + } + return false; + } + + public bool OnItemNumChanged(XEventArgs args) + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag = xitemNumChangedEventArgs.item.Type == ItemType.CARD; + bool result; + if (flag) + { + this.IsCardDirty = true; + CardsList.RowData cards = XCardCollectDocument.GetCards((uint)xitemNumChangedEventArgs.item.itemID); + bool flag2 = cards == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("CardID:" + xitemNumChangedEventArgs.item.itemID + " No Find", null, null, null, null, null); + result = false; + } + else + { + int groupId = (int)cards.GroupId; + bool flag3 = groupId >= XCardCollectDocument._CardsGroupInfo.Count; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "CardID:", + xitemNumChangedEventArgs.item.itemID, + "groupId:", + cards.GroupId, + " _CardsGroupInfo.Count:", + XCardCollectDocument._CardsGroupInfo.Count + }), null, null, null, null, null); + result = false; + } + else + { + XCardCollectDocument._CardsGroupInfo[groupId].IsDeckDirty = true; + XCardCollectDocument._CardsGroupInfo[groupId].RefreshRedPoint(); + bool flag4 = this.View != null; + if (flag4) + { + this.View.RefreshDetail(); + } + result = true; + } + } + } + else + { + result = false; + } + return result; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XCardCollectDocument.AsyncLoader.AddTask("Table/CardsFireProperty", XCardCollectDocument._CardsFirePropertyTable, false); + XCardCollectDocument.AsyncLoader.AddTask("Table/CardsGroup", XCardCollectDocument._CardsGroupTable, false); + XCardCollectDocument.AsyncLoader.AddTask("Table/CardsGroupList", XCardCollectDocument._CardsGroupListTable, false); + XCardCollectDocument.AsyncLoader.AddTask("Table/CardsList", XCardCollectDocument._CardsListTable, false); + XCardCollectDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XCardCollectDocument._CardsGroupInfo.Clear(); + for (int i = 0; i <= XCardCollectDocument.GroupMax; i++) + { + bool flag = i == 0; + if (flag) + { + XCardCollectDocument._CardsGroupInfo.Add(null); + } + else + { + XDeck xdeck = new XDeck(); + xdeck.StarLevelMAX = XCardCollectDocument._CardsGroupListTable.Table[i - 1].BreakLevel.Length; + xdeck.Name = XCardCollectDocument._CardsGroupListTable.Table[i - 1].GroupName; + for (int j = 0; j <= xdeck.StarLevelMAX; j++) + { + xdeck.ActionNumReward.Add(new List()); + } + XCardCollectDocument._CardsGroupInfo.Add(xdeck); + } + } + for (int k = 0; k < XCardCollectDocument._CardsGroupTable.Table.Length; k++) + { + XCardCombination xcardCombination = new XCardCombination(); + xcardCombination.status = CardCombinationStatus.None; + xcardCombination.data = XCardCollectDocument._CardsGroupTable.Table[k]; + xcardCombination.InitStarPostion(xcardCombination.data); + int groupId = (int)xcardCombination.data.GroupId; + XCardCollectDocument._CardsGroupInfo[groupId].combDic.Add(xcardCombination.data.TeamId, xcardCombination); + } + for (int l = 0; l < XCardCollectDocument._CardsFirePropertyTable.Table.Length; l++) + { + CardsFireProperty.RowData rowData = XCardCollectDocument._CardsFirePropertyTable.Table[l]; + int groupId2 = (int)rowData.GroupId; + int breakLevel = (int)rowData.BreakLevel; + XCardCollectDocument._CardsGroupInfo[groupId2].ActionNumReward[breakLevel].Add(rowData); + } + for (int m = 0; m < XCardCollectDocument._CardsListTable.Table.Length; m++) + { + CardsList.RowData rowData2 = XCardCollectDocument._CardsListTable.Table[m]; + int groupId3 = (int)rowData2.GroupId; + bool flag2 = groupId3 < 0 || groupId3 >= XCardCollectDocument._CardsGroupInfo.Count; + if (flag2) + { + XSingleton.singleton.AddLog(groupId3.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + XCardCollectDocument._CardsGroupInfo[groupId3].CardList.Add(rowData2); + } + } + + public static CardsGroup.RowData GetCardsGroup(uint teamId) + { + return XCardCollectDocument._CardsGroupTable.GetByTeamId(teamId); + } + + public static CardsList.RowData GetCards(uint cardId) + { + return XCardCollectDocument._CardsListTable.GetByCardId(cardId); + } + + public static CardsGroupList.RowData GetCardGroup(uint groupId) + { + return XCardCollectDocument._CardsGroupListTable.GetByGroupId(groupId); + } + + public static CardsList.RowData[] GetCards() + { + return XCardCollectDocument._CardsListTable.Table; + } + + public static SeqListRef GetCardGroupAttribute(uint teamId) + { + CardsGroup.RowData cardsGroup = XCardCollectDocument.GetCardsGroup(teamId); + SeqListRef result = default(SeqListRef); + uint key = (uint)XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + AttackType attackType = (AttackType)XSingleton.singleton.RoleInfo.GetByProfID(key).AttackType; + AttackType attackType2 = attackType; + if (attackType2 != AttackType.PhysicalAttack) + { + if (attackType2 != AttackType.MagicAttack) + { + XSingleton.singleton.AddErrorLog("AttackType No Find", null, null, null, null, null); + } + else + { + result = cardsGroup.FireProperty_2; + } + } + else + { + result = cardsGroup.FireProperty_1; + } + return result; + } + + public void InitCardData(SAtlasRecord record) + { + for (int i = 1; i <= XCardCollectDocument.GroupMax; i++) + { + XCardCollectDocument._CardsGroupInfo[i].Init(); + } + bool flag = record == null; + if (!flag) + { + for (int j = 0; j < record.atlas.Count; j++) + { + uint teamId = record.atlas[j]; + CardsGroup.RowData cardsGroup = XCardCollectDocument.GetCardsGroup(teamId); + uint groupId = cardsGroup.GroupId; + XDeck xdeck = XCardCollectDocument._CardsGroupInfo[(int)groupId]; + XCardCombination xcardCombination = xdeck.FindCardCombination(teamId); + xcardCombination.status = CardCombinationStatus.Activated; + xdeck.ActionNum++; + } + for (int k = 0; k < record.finishdata.Count; k++) + { + XDeck xdeck2 = XCardCollectDocument._CardsGroupInfo[(int)record.finishdata[k].groupid]; + xdeck2.CurStarLevel = (int)record.finishdata[k].finishid; + } + this.IsCardDirty = true; + for (int l = 1; l <= XCardCollectDocument.GroupMax; l++) + { + XCardCollectDocument._CardsGroupInfo[l].RefreshRedPoint(); + } + } + } + + public void RefreshCardGroupListShow() + { + uint level = XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < XCardCollectDocument.GroupMax; i++) + { + CardsGroupList.RowData rowData = XCardCollectDocument._CardsGroupListTable.Table[i]; + bool flag = rowData.ShowLevel <= level; + if (flag) + { + this.m_CurShowGroup = rowData.GroupId; + } + bool flag2 = rowData.OpenLevel <= level; + if (flag2) + { + this.m_CurOpenGroup = rowData.GroupId; + } + } + } + + public void Select(uint index) + { + bool flag = index > 0u || (ulong)index <= (ulong)((long)XCardCollectDocument.GroupMax); + if (flag) + { + this.m_CurSelectGroup = index; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + this.View.RefreshShowDeck(false); + } + } + + public void AddAttribute(uint id, uint addVal) + { + uint num; + bool flag = !this.m_AttrSum.TryGetValue(id, out num); + if (flag) + { + this.m_AttrSum.Add(id, addVal); + } + else + { + this.m_AttrSum[id] = num + addVal; + } + } + + public void OnRefreshAttr(PtcG2C_SynAtlasAttr roPtc) + { + this.m_AttrSum.Clear(); + for (int i = 0; i < roPtc.Data.allAttrs.Count; i++) + { + XCardCollectDocument._CardsGroupInfo[i + 1].RefreshAttr(roPtc.Data.allAttrs[i]); + } + } + + public List GetCard() + { + ulong filterValue = this.m_Filter.FilterValue; + this.m_ItemList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(filterValue, ref this.m_ItemList); + return this.m_ItemList; + } + + public void ReqActive(uint teamid) + { + RpcC2G_ActivatAtlas rpcC2G_ActivatAtlas = new RpcC2G_ActivatAtlas(); + rpcC2G_ActivatAtlas.oArg.teamid = teamid; + XSingleton.singleton.Send(rpcC2G_ActivatAtlas); + } + + public void OnActive(ActivatAtlasArg oArg, ActivatAtlasRes oRes) + { + CardsGroup.RowData cardsGroup = XCardCollectDocument.GetCardsGroup(oArg.teamid); + XDeck xdeck = XCardCollectDocument._CardsGroupInfo[(int)cardsGroup.GroupId]; + XCardCombination xcardCombination = null; + xdeck.combDic.TryGetValue(oArg.teamid, out xcardCombination); + xcardCombination.status = CardCombinationStatus.Activated; + xdeck.ActionNum++; + xdeck.IsDeckDirty = true; + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("CARD_ACTIVE_OK"), xcardCombination.data.TeamName), "fece00"); + bool flag = this.View != null; + if (flag) + { + this.View.RefreshShowDeck(false); + } + for (int i = 0; i < xdeck.ActionNumReward[xdeck.CurStarLevel].Count; i++) + { + bool flag2 = (ulong)xdeck.ActionNumReward[xdeck.CurStarLevel][i].FireCounts == (ulong)((long)xdeck.ActionNum); + if (flag2) + { + bool flag3 = this.View != null; + if (flag3) + { + this.View.ShowGetReward(i); + } + } + } + } + + public void ReqBreak(int itemID, int num) + { + RpcC2G_breakAtlas rpcC2G_breakAtlas = new RpcC2G_breakAtlas(); + rpcC2G_breakAtlas.oArg.atlaId = (uint)itemID; + rpcC2G_breakAtlas.oArg.atlaNum = (uint)num; + XSingleton.singleton.Send(rpcC2G_breakAtlas); + } + + public void OnBreak(breakAtlas oArg, breakAtlasRes oRes) + { + } + + public void ReqAutoBreak(List quality) + { + RpcC2G_AutoBreakAtlas rpcC2G_AutoBreakAtlas = new RpcC2G_AutoBreakAtlas(); + for (int i = 0; i < quality.Count; i++) + { + rpcC2G_AutoBreakAtlas.oArg.quilts.Add(quality[i]); + } + rpcC2G_AutoBreakAtlas.oArg.groupId = (uint)this.CurSelectGroup; + XSingleton.singleton.Send(rpcC2G_AutoBreakAtlas); + } + + public void OnAutoBreak(AutoBreakAtlasArg oArg, AutoBreakAtlasRes oRes) + { + bool flag = this.View != null && this.View.CurPage == CardPage.CardAll; + if (flag) + { + this.View.TotalHandler.ShowHandler(false); + } + } + + public int GetCardCount(int itemID) + { + bool isCardDirty = this.IsCardDirty; + if (isCardDirty) + { + this.RefreshCardList(); + } + XItem xitem; + this.m_HasCardList.TryGetValue(itemID, out xitem); + return (xitem == null) ? 0 : xitem.itemCount; + } + + public void RefreshCardList() + { + this.IsCardDirty = false; + this.m_HasCardList.Clear(); + List card = this.GetCard(); + for (int i = 0; i < card.Count; i++) + { + this.m_HasCardList.Add(card[i].itemID, card[i]); + } + } + + public bool GetRedPoint() + { + for (int i = 1; i <= XCardCollectDocument.GroupMax; i++) + { + bool redPoint = XCardCollectDocument._CardsGroupInfo[i].redPoint; + if (redPoint) + { + return true; + } + } + return false; + } + + public void ReqUpStar() + { + RpcC2G_AtlasUpStar rpcC2G_AtlasUpStar = new RpcC2G_AtlasUpStar(); + rpcC2G_AtlasUpStar.oArg.groupid = (uint)this.CurSelectGroup; + XSingleton.singleton.Send(rpcC2G_AtlasUpStar); + } + + public void ChangeStar(int star, int groupid = 0) + { + bool flag = groupid == 0; + if (flag) + { + groupid = this.CurSelectGroup; + } + XCardCollectDocument._CardsGroupInfo[groupid].Init(); + XCardCollectDocument._CardsGroupInfo[groupid].CurStarLevel = star; + bool flag2 = this.View != null; + if (flag2) + { + this.View.RefreshShowDeck(false); + } + DlgBase.singleton.PlayLevelUpFx(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCardCollectDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCardCollectDocument.cs.meta new file mode 100644 index 00000000..6a91b061 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCardCollectDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b810ee352e79d14f899f30ef3a3e98d +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCardCombination.cs b/Client/Assets/Scripts/XMainClient/XCardCombination.cs new file mode 100644 index 00000000..cdccf7b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCardCombination.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCardCombination + { + public CardCombinationStatus status; + + public CardsGroup.RowData data; + + public List starPostion; + + public void InitStarPostion(CardsGroup.RowData cdata) + { + SeqListRef starFireCondition = cdata.StarFireCondition; + this.starPostion = new List(); + bool flag = starFireCondition.count == 0; + if (!flag) + { + int num = 0; + uint num2 = starFireCondition[num, 0]; + for (int i = 0; i < 100; i++) + { + bool flag2 = (long)num + (long)((ulong)num2) >= (long)((ulong)starFireCondition.count); + if (flag2) + { + return; + } + this.starPostion.Add(num); + num += (int)(num2 + 1u); + bool flag3 = num >= (int)starFireCondition.count; + if (flag3) + { + return; + } + num2 = starFireCondition[num, 0]; + } + XSingleton.singleton.AddErrorLog("TeamId:" + cdata.TeamId + " StarFireCondition Error", null, null, null, null, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCardCombination.cs.meta b/Client/Assets/Scripts/XMainClient/XCardCombination.cs.meta new file mode 100644 index 00000000..ca29c6a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCardCombination.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b8565691401a6d4ab349844d8ddc91b +timeCreated: 1611403994 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCardShopHandler.cs b/Client/Assets/Scripts/XMainClient/XCardShopHandler.cs new file mode 100644 index 00000000..339bc5c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCardShopHandler.cs @@ -0,0 +1,183 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCardShopHandler : DlgHandlerBase + { + private XCardCollectDocument doc; + + public List goods = new List(); + + private IXUIButton m_Close; + + private IXUILabel m_ChipNum; + + private IXUISprite m_ChipIcon; + + private IXUIScrollView m_GoodsScrollView; + + private XUIPool m_GoodsPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public int money; + + private static readonly uint SHOP_LINE_COUNT = 3u; + + private int disX; + + private int disY; + + private XNormalShopGoods m_BuyGoods; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + this.m_Close = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ChipNum = (base.PanelObject.transform.Find("Bg/ChipNum").GetComponent("XUILabel") as IXUILabel); + this.m_ChipIcon = (base.PanelObject.transform.Find("Bg/ChipNum/MoneyIcon").GetComponent("XUISprite") as IXUISprite); + this.m_ChipIcon.SetSprite(XBagDocument.GetItemSmallIcon(int.Parse(XSingleton.singleton.GetValue("CardChip")), 0u)); + this.m_GoodsScrollView = (base.PanelObject.transform.Find("Bg/ShopPanel").GetComponent("XUIScrollView") as IXUIScrollView); + IXUISprite ixuisprite = base.PanelObject.transform.Find("Bg/ShopPanel/GoodsTpl").GetComponent("XUISprite") as IXUISprite; + this.m_GoodsPool.SetupPool(null, ixuisprite.gameObject, 9u, false); + this.disX = ixuisprite.spriteWidth; + this.disY = ixuisprite.spriteHeight; + this.InitShow(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseClicked)); + } + + private bool _OnCloseClicked(IXUIButton go) + { + base.PanelObject.SetActive(false); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.doc.View.CloseCurPage(CardPage.CardShop); + } + return true; + } + + public override void OnUnload() + { + base.OnUnload(); + this.doc = null; + } + + protected override void OnShow() + { + } + + private void _OnBuyClicked(IXUISprite iSp) + { + int index = (int)iSp.ID; + int itemID = this.goods[index].item.itemID; + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + this.m_BuyGoods = this.goods[index]; + bool flag = this.money >= this.goods[index].priceValue; + if (flag) + { + XSingleton.singleton.ShowModalDialog(string.Format(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("CATD_BUY")), this.goods[index].priceValue, itemConf.ItemName[0], this.money), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._OnBuyCompose)); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CARD_BUY_INSUFFICIENT"), "fece00"); + } + } + + private bool _OnBuyCompose(IXUIButton btn) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + specificDocument.DoBuyItem(this.m_BuyGoods, 1u); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public void SetCardShop(List data) + { + bool flag = this.doc.View == null; + if (!flag) + { + bool flag2 = this.doc.View.CurPage == CardPage.CardDetail && this.doc.View != null; + if (flag2) + { + for (int i = 0; i < data.Count; i++) + { + bool flag3 = data[i].item.itemID == this.doc.View.CurCardID; + if (flag3) + { + this.doc.View.SingleShop(data[i]); + return; + } + } + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CATD_NO_CAN_BUY"), "fece00"); + } + bool flag4 = this.doc.View.CurPage != CardPage.CardShop; + if (!flag4) + { + this.goods.Clear(); + this.m_GoodsPool.FakeReturnAll(); + for (int j = 0; j < data.Count; j++) + { + this.goods.Add(data[j]); + GameObject gameObject = this.m_GoodsPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3((float)((long)this.disX * ((long)j % (long)((ulong)XCardShopHandler.SHOP_LINE_COUNT))), (float)((long)(-(long)this.disY) * ((long)j / (long)((ulong)XCardShopHandler.SHOP_LINE_COUNT))), 0f); + Transform transform = gameObject.transform.Find("Item"); + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, data[j].item.itemID, 0, false); + IXUISprite ixuisprite = gameObject.transform.Find("Item/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)data[j].item.itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(DlgBase.singleton.OnOpenDetailClick)); + IXUISprite ixuisprite2 = gameObject.transform.Find("Buy").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)j); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnBuyClicked)); + IXUILabel ixuilabel = gameObject.transform.Find("Buy/Price").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data[j].priceValue.ToString()); + IXUISprite ixuisprite3 = gameObject.transform.Find("Buy/Money").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.SetSprite(XBagDocument.GetItemSmallIcon(int.Parse(XSingleton.singleton.GetValue("CardChip")), 0u)); + } + this.m_GoodsPool.ActualReturnAll(true); + } + } + } + + private void InitShow() + { + } + + public void ShowHandler(int shopId, bool bResetPosition = false) + { + bool flag = shopId < 1 || shopId > 4; + if (!flag) + { + if (bResetPosition) + { + this.m_GoodsScrollView.ResetPosition(); + this.SetCardShop(new List()); + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + XSysDefine sys = XSysDefine.XSys_Mall_Card1 + shopId - 1; + specificDocument.ReqGoodsList(sys); + } + this.RefreshChipNum(); + } + } + + public void RefreshChipNum() + { + this.money = (int)XBagDocument.BagDoc.GetItemCount(int.Parse(XSingleton.singleton.GetValue("CardChip"))); + bool flag = this.m_ChipNum != null; + if (flag) + { + this.m_ChipNum.SetText(this.money.ToString()); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCardShopHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XCardShopHandler.cs.meta new file mode 100644 index 00000000..99db07d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCardShopHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ea2658a9cd3fb548b562867f869c801 +timeCreated: 1611403365 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCarnivalDocument.cs b/Client/Assets/Scripts/XMainClient/XCarnivalDocument.cs new file mode 100644 index 00000000..20e4bfca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCarnivalDocument.cs @@ -0,0 +1,407 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCarnivalDocument : XDocComponent + { + public override uint ID + { + get + { + return XCarnivalDocument.uuID; + } + } + + public static SuperActivity activityTable + { + get + { + return XTempActivityDocument.SuperActivityTable; + } + } + + public static SuperActivityTask activityListTable + { + get + { + return XTempActivityDocument.SuperActivityTaskTable; + } + } + + public static SuperActivityTime activityTimeTable + { + get + { + return XTempActivityDocument.SuperActivityTimeTable; + } + } + + public SpActivity allServerActivity + { + get + { + return XTempActivityDocument.Doc.ActivityRecord; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XCarnivalDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public int currBelong; + + public int currType; + + public const int currActID = 1; + + public int pointItemID = 33; + + public uint activityCloseDay = 7u; + + public uint claimCloseDay = 14u; + + public uint needPoint = 100u; + + public uint openDay = 8u; + + public float rate = 1f; + + private int _curActID = -1; + + public List carnivalServerActivity = new List(); + + private List currCarnivals = new List(); + + private List tmp = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + for (int i = 0; i < XCarnivalDocument.activityTimeTable.Table.Length; i++) + { + bool flag = XCarnivalDocument.activityTimeTable.Table[i].actid == 1u; + if (flag) + { + this.activityCloseDay = XCarnivalDocument.activityTimeTable.Table[i].duration; + this.claimCloseDay = XCarnivalDocument.activityTimeTable.Table[i].duration + XCarnivalDocument.activityTimeTable.Table[i].rewardtime; + this.needPoint = XCarnivalDocument.activityTimeTable.Table[i].needpoint; + this.rate = XCarnivalDocument.activityTimeTable.Table[i].rate; + this.pointItemID = (int)XCarnivalDocument.activityTimeTable.Table[i].pointid; + } + } + bool flag2 = this.allServerActivity != null; + if (flag2) + { + for (int j = 0; j < this.allServerActivity.spActivity.Count; j++) + { + bool flag3 = this.allServerActivity.spActivity[j].actid == 1u; + if (flag3) + { + bool getBigPrize = this.allServerActivity.spActivity[j].getBigPrize; + XSingleton.singleton.XPlayerData.CarnivalClaimed = getBigPrize; + break; + } + } + } + else + { + XSingleton.singleton.AddLog("allserver: " + (this.allServerActivity == null).ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + DlgBase.singleton.RefreshHallRedp(); + } + + public List GetCurrList() + { + this.currCarnivals = this.GetTabList(this.currBelong, this.currType); + return this.currCarnivals; + } + + public List GetTabList(int belong, int type) + { + this.tmp.Clear(); + int num = XSingleton.singleton.BackFlowLevel(); + SuperActivityTask.RowData[] table = XCarnivalDocument.activityListTable.Table; + uint[] taskListWithLevel = XTempActivityDocument.Doc.GetTaskListWithLevel(num); + bool flag = taskListWithLevel == null; + List result; + if (flag) + { + XSingleton.singleton.AddErrorLog("OpenSeverActivity config error with level " + num, null, null, null, null, null); + result = this.tmp; + } + else + { + for (int i = 0; i < table.Length; i++) + { + bool flag2 = (ulong)table[i].belong == (ulong)((long)belong) && (ulong)table[i].type == (ulong)((long)type) && table[i].actid == 1u; + if (flag2) + { + bool flag3 = false; + for (int j = 0; j < taskListWithLevel.Length; j++) + { + bool flag4 = taskListWithLevel[j] == table[i].taskid; + if (flag4) + { + flag3 = true; + break; + } + } + bool flag5 = flag3; + if (flag5) + { + SpActivityNode spActivityNode = new SpActivityNode(); + spActivityNode.row = table[i]; + this.SetState(ref spActivityNode); + this.tmp.Add(spActivityNode); + } + } + } + result = this.tmp; + } + return result; + } + + public void SetState(ref SpActivityNode node) + { + bool flag = false; + bool flag2 = this.allServerActivity != null; + if (flag2) + { + for (int i = 0; i < this.allServerActivity.spActivity.Count; i++) + { + bool flag3 = this.allServerActivity.spActivity[i].actid == 1u; + if (flag3) + { + List task = this.allServerActivity.spActivity[i].task; + for (int j = 0; j < task.Count; j++) + { + bool flag4 = task[j].taskid == node.row.taskid; + if (flag4) + { + flag = true; + node.state = task[j].state; + node.progress = task[j].progress; + break; + } + } + break; + } + } + } + bool flag5 = !flag; + if (flag5) + { + node.state = 0u; + node.progress = 0u; + } + } + + public SuperActivity.RowData GetSuperActivity(int belong) + { + SuperActivity.RowData[] table = XCarnivalDocument.activityTable.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = (ulong)table[i].belong == (ulong)((long)belong) && table[i].actid == 1u; + if (flag) + { + return table[i]; + } + } + return null; + } + + public SuperActivityTask.RowData GetSuperActivityTask(uint taskid) + { + for (int i = 0; i < XCarnivalDocument.activityListTable.Table.Length; i++) + { + bool flag = XCarnivalDocument.activityListTable.Table[i].taskid == taskid; + if (flag) + { + return XCarnivalDocument.activityListTable.Table[i]; + } + } + return null; + } + + public bool IsOpen(int belong) + { + SuperActivity.RowData superActivity = this.GetSuperActivity(belong); + return this.openDay >= superActivity.offset; + } + + public bool IsActivityExpire() + { + return this.openDay >= this.activityCloseDay; + } + + public bool IsActivityClosed() + { + return this.openDay >= this.claimCloseDay; + } + + public bool HasRwdClaimed(int belong) + { + SuperActivity.RowData superActivity = this.GetSuperActivity(belong); + bool flag = superActivity != null && superActivity.childs != null; + if (flag) + { + int num = superActivity.childs.Length; + for (int i = 0; i < num; i++) + { + bool flag2 = this.HasRwdClaimed(belong, i + 1); + if (flag2) + { + return true; + } + } + } + return false; + } + + public bool HasRwdClaimed(int belong, int type) + { + this.GetTabList(belong, type); + for (int i = 0; i < this.tmp.Count; i++) + { + bool flag = this.tmp[i].state == 1u; + if (flag) + { + return true; + } + } + return false; + } + + public void UpdateHallPoint(bool show) + { + DlgBase.singleton.SetSystemRedPointState(XSysDefine.XSys_Carnival, show); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Carnival, true); + } + + public void OnSpActivityChange(SpActivityChange data) + { + bool flag = data.actid == 1u; + if (flag) + { + DlgBase.singleton.Refresh(); + } + } + + public void RespInfo(int offday) + { + this.openDay = (uint)offday; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = (long)offday > (long)((ulong)this.claimCloseDay); + if (flag2) + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalTerminal"), "fece00"); + DlgBase.singleton.SetVisible(false, true); + } + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + bool flag4 = xplayerAttributes != null; + if (flag4) + { + xplayerAttributes.CloseSystem(67u); + } + } + } + DlgBase.singleton.Refresh(); + } + + public void OnActivityStateChange(uint state) + { + bool flag = state == 1u; + if (flag) + { + XSingleton.singleton.AddLog(XStringDefineProxy.GetString("CarnivalTerminal"), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalTerminal"), "fece00"); + DlgBase.singleton.SetVisible(false, true); + } + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag3 = xplayerData != null; + if (flag3) + { + xplayerData.CloseSystem(67u); + } + } + } + + public void RequestClaim(uint taskid) + { + RpcC2G_GetSpActivityReward rpcC2G_GetSpActivityReward = new RpcC2G_GetSpActivityReward(); + rpcC2G_GetSpActivityReward.oArg.taskid = taskid; + rpcC2G_GetSpActivityReward.oArg.actid = 1u; + XSingleton.singleton.Send(rpcC2G_GetSpActivityReward); + } + + public void RespClaim(uint taskid) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalSuccess"), "fece00"); + } + + public void ExchangePoint() + { + RpcC2G_GetSpActivityBigPrize rpcC2G_GetSpActivityBigPrize = new RpcC2G_GetSpActivityBigPrize(); + rpcC2G_GetSpActivityBigPrize.oArg.actid = 1u; + XSingleton.singleton.Send(rpcC2G_GetSpActivityBigPrize); + } + + public void RespExchange() + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CarnivalSuccess"), "fece00"); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData != null; + if (flag) + { + xplayerData.CarnivalClaimed = true; + } + DlgBase.singleton.Refresh(); + } + + private int GetCurActID() + { + bool flag = this._curActID < 0; + if (flag) + { + this._curActID = 1; + int num = XSingleton.singleton.BackFlowLevel(); + bool flag2 = num >= 0; + if (flag2) + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("BackFlowLevel2ActID", true); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag3 = sequenceList[i, 0] == num; + if (flag3) + { + this._curActID = sequenceList[i, 1]; + break; + } + } + } + } + return this._curActID; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCarnivalDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCarnivalDocument.cs.meta new file mode 100644 index 00000000..d7409039 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCarnivalDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d18aedf398720ab4f8bd25d66e7c4d45 +timeCreated: 1611404592 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChapterDifficult.cs b/Client/Assets/Scripts/XMainClient/XChapterDifficult.cs new file mode 100644 index 00000000..a67840c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChapterDifficult.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + public enum XChapterDifficult + { + NORMAL, + ELITE + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChapterDifficult.cs.meta b/Client/Assets/Scripts/XMainClient/XChapterDifficult.cs.meta new file mode 100644 index 00000000..8effd410 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChapterDifficult.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 19ce078f3958e44418ca124da848341f +timeCreated: 1611403305 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChapterType.cs b/Client/Assets/Scripts/XMainClient/XChapterType.cs new file mode 100644 index 00000000..b0796742 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChapterType.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + public enum XChapterType + { + SCENE_HALL = 1, + SCENE_BATTLE, + SCENE_NEST, + SCENE_PARK, + SCENE_ARENA, + SCENE_FASHION, + SCENE_WORLDBOSS, + SCENE_SMALLMONSTER, + SCENE_BOSSRUSH, + SCENE_DRAGONNEST + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChapterType.cs.meta b/Client/Assets/Scripts/XMainClient/XChapterType.cs.meta new file mode 100644 index 00000000..59c9956f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChapterType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6ad40cb38e853747a93bb6ecb6f8673 +timeCreated: 1611404398 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharStage.cs b/Client/Assets/Scripts/XMainClient/XCharStage.cs new file mode 100644 index 00000000..7acc3f2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharStage.cs @@ -0,0 +1,149 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XCharStage : XStage + { + protected static string[] role_type; + + private uint _token1 = 0u; + + protected int _cur_tag = 0; + + protected bool _prelusive = false; + + protected bool _auto_enter = false; + + private string[] open_profession = null; + + private float _dofFade = 0f; + + private bool _setDofFade = false; + + public XCharStage(EXStage eStage) : base(eStage) + { + bool flag = XCharStage.role_type == null || XCharStage.role_type.Length != XGame.RoleCount + 1; + if (flag) + { + XCharStage.role_type = new string[XGame.RoleCount + 1]; + } + for (int i = 1; i <= XGame.RoleCount; i++) + { + XCharStage.role_type[i] = "_" + XSingleton.singleton.GetLowerCaseWord((uint)i); + } + } + + public override void OnEnterStage(EXStage eOld) + { + base.OnEnterStage(eOld); + XSingleton.singleton.LoadSelectCharUI(this._eStage); + XQualitySetting.SetDofFade(0f); + this._dofFade = 0f; + this._setDofFade = false; + } + + public override void OnLeaveStage(EXStage eNew) + { + base.OnLeaveStage(eNew); + XSingleton.singleton.KillTimer(this._token1); + XSingleton.singleton.UnLoadSelectCharUI(); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + XSingleton.singleton.Update(); + bool flag = this._setDofFade && this._dofFade < 1f; + if (flag) + { + this._dofFade += fDeltaT; + XQualitySetting.SetDofFade(this._dofFade); + } + } + + public override void OnEnterScene(uint sceneid, bool transfer) + { + base.OnEnterScene(sceneid, transfer); + } + + public void ShowCharacterTurn(int tag) + { + XSingleton.singleton.KillTimer(this._token1); + XSingleton.singleton.Start("CutScene/character_show_turn" + XCharStage.role_type[this._cur_tag], false, true); + this._token1 = XSingleton.singleton.SetTimer(XSingleton.singleton.Length, new XTimerMgr.ElapsedEventHandler(this.OnPrelusiveDone), null); + this._prelusive = true; + } + + public void ShowCharacter(int tag) + { + bool flag = tag == 0 || tag == this._cur_tag; + if (flag) + { + XSingleton.singleton.AddLog("Error Tag: ", tag.ToString(), null, null, null, null, XDebugColor.XDebug_None); + this._prelusive = false; + } + else + { + bool flag2 = tag - 1 >= XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Count; + if (flag2) + { + XSingleton.singleton.AddLog("Character with tag ", tag.ToString(), " exceeded server PlayerBriefInfo count.", null, null, null, XDebugColor.XDebug_None); + } + else + { + bool flag3 = this.open_profession == null; + if (flag3) + { + this.open_profession = XSingleton.singleton.GetValue("OpenProfession").Split(XGlobalConfig.ListSeparator); + } + bool flag4 = true; + for (int i = 0; i < this.open_profession.Length; i++) + { + bool flag5 = int.Parse(this.open_profession[i]) == tag; + if (flag5) + { + flag4 = false; + break; + } + } + bool flag6 = flag4; + if (flag6) + { + this._prelusive = false; + } + else + { + bool flag7 = !this._setDofFade; + if (flag7) + { + this._setDofFade = true; + } + XSingleton.singleton.SetBlockUIVisable(true); + bool flag8 = !this._auto_enter; + if (flag8) + { + XSingleton.singleton.ShowSelectCharGerenalUI(); + DlgBase.singleton.SwitchProfession(tag); + } + XSingleton.singleton.KillTimer(this._token1); + XSingleton.singleton.Start("CutScene/character_select" + XCharStage.role_type[tag], false, true); + this._token1 = XSingleton.singleton.SetTimer(XSingleton.singleton.Length, new XTimerMgr.ElapsedEventHandler(this.OnPrelusiveDone), null); + this._cur_tag = tag; + this._prelusive = true; + } + } + } + } + + protected void OnPrelusiveDone(object o) + { + XSingleton.singleton.SetBlockUIVisable(false); + this.PrelusiveDone(); + } + + protected abstract void PrelusiveDone(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharStage.cs.meta b/Client/Assets/Scripts/XMainClient/XCharStage.cs.meta new file mode 100644 index 00000000..5e7f95ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a25dc07be09a2647a20fda61e858bca +timeCreated: 1611403494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterAttrView.cs b/Client/Assets/Scripts/XMainClient/XCharacterAttrView.cs new file mode 100644 index 00000000..d3bf339d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterAttrView.cs @@ -0,0 +1,237 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterAttrView : XAttrCommonHandler where T : XAttrCommonFile, new() + { + private XAttributes m_Attributes; + + private Dictionary.AttrType> m_showPerAttr = new Dictionary.AttrType> + { + { + XAttributeDefine.XAttr_PhysicalDef_Total, + XCharacterAttrView.AttrType.PhysicalDef + }, + { + XAttributeDefine.XAttr_MagicDef_Total, + XCharacterAttrView.AttrType.MagicDef + }, + { + XAttributeDefine.XAttr_FireAtk_Total, + XCharacterAttrView.AttrType.ElementAtk + }, + { + XAttributeDefine.XAttr_WaterAtk_Total, + XCharacterAttrView.AttrType.ElementAtk + }, + { + XAttributeDefine.XAttr_LightAtk_Total, + XCharacterAttrView.AttrType.ElementAtk + }, + { + XAttributeDefine.XAttr_DarkAtk_Total, + XCharacterAttrView.AttrType.ElementAtk + }, + { + XAttributeDefine.XAttr_FireDef_Total, + XCharacterAttrView.AttrType.ElementDef + }, + { + XAttributeDefine.XAttr_WaterDef_Total, + XCharacterAttrView.AttrType.ElementDef + }, + { + XAttributeDefine.XAttr_LightDef_Total, + XCharacterAttrView.AttrType.ElementDef + }, + { + XAttributeDefine.XAttr_DarkDef_Total, + XCharacterAttrView.AttrType.ElementDef + }, + { + XAttributeDefine.XAttr_Critical_Total, + XCharacterAttrView.AttrType.Critical + }, + { + XAttributeDefine.XAttr_CritDamage_Total, + XCharacterAttrView.AttrType.CritDamage + } + }; + + private enum AttrType + { + ElementAtk, + ElementDef, + Critical, + CritDamage, + PhysicalDef, + MagicDef, + None + } + + public void SetAttributes(XAttributes attributes) + { + bool flag = this.m_Attributes != attributes; + if (flag) + { + this.m_Attributes = attributes; + bool flag2 = base.IsVisible(); + if (flag2) + { + this.RefreshData(); + } + } + } + + public override void SetData() + { + base.SetData(); + bool flag = this.m_Attributes == null; + if (!flag) + { + CharacterAttributesList.RowData[] table = XCharacterEquipDocument.AttributeTable.Table; + XAttrData xattrData = null; + foreach (CharacterAttributesList.RowData rowData in table) + { + bool flag2 = xattrData == null || xattrData.Title != rowData.Section; + if (flag2) + { + xattrData = base._FetchAttrData(); + xattrData.Title = rowData.Section; + xattrData.Type = AttriDataType.Attri; + } + XAttributeDefine attributeID = (XAttributeDefine)rowData.AttributeID; + xattrData.Left.Add(XStringDefineProxy.GetString(attributeID)); + bool flag3 = XSingleton.singleton.GetInt("AttriStat") != 0 && this.m_showPerAttr.ContainsKey(attributeID); + if (flag3) + { + double attr = this.m_Attributes.GetAttr(attributeID); + xattrData.Right.Add(string.Format("{0}({1}%)", XAttributeCommon.GetAttrValueStr(rowData.AttributeID, (uint)attr, false), (int)(this.GetAttrPercent(attributeID, attr) * 100.0))); + } + else + { + xattrData.Right.Add(XAttributeCommon.GetAttrValueStr(rowData.AttributeID, (uint)this.m_Attributes.GetAttr(attributeID), false)); + } + } + } + } + + private double GetAttrPercent(XAttributeDefine type, double value) + { + XCharacterAttrView.AttrType type2; + bool flag = !this.m_showPerAttr.TryGetValue(type, out type2); + if (flag) + { + type2 = XCharacterAttrView.AttrType.None; + } + double max = this.GetMax(type2); + double min = this.GetMin(type2); + CombatParamTable.RowData combatParam = XSingleton.singleton.GetCombatParam(this.m_Attributes.Level); + int baseValue = this.GetBaseValue(type, combatParam); + double num = this.GetCombatValue(baseValue, value); + num = ((num > min) ? num : min); + return (num < max) ? num : max; + } + + private double GetMax(XCharacterAttrView.AttrType type) + { + double result; + switch (type) + { + case XCharacterAttrView.AttrType.ElementAtk: + result = XSingleton.singleton.ElemAtkLimit; + break; + case XCharacterAttrView.AttrType.ElementDef: + result = XSingleton.singleton.ElemDefLimit; + break; + case XCharacterAttrView.AttrType.Critical: + result = XSingleton.singleton.CriticalLimit; + break; + case XCharacterAttrView.AttrType.CritDamage: + result = XSingleton.singleton.CritDamageUpperBound; + break; + case XCharacterAttrView.AttrType.PhysicalDef: + result = double.Parse(XSingleton.singleton.GetValue("PhycialAvoidenceLimit")); + break; + case XCharacterAttrView.AttrType.MagicDef: + result = double.Parse(XSingleton.singleton.GetValue("MagicAvoidenceLimit")); + break; + default: + result = 10.0; + break; + } + return result; + } + + private double GetMin(XCharacterAttrView.AttrType type) + { + double result; + if (type != XCharacterAttrView.AttrType.CritDamage) + { + result = 0.0; + } + else + { + result = XSingleton.singleton.CritDamageLowerBound; + } + return result; + } + + private int GetBaseValue(XAttributeDefine type, CombatParamTable.RowData atkData) + { + bool flag = atkData == null; + int result; + if (flag) + { + result = 0; + } + else + { + if (type <= XAttributeDefine.XAttr_MagicDef_Total) + { + if (type == XAttributeDefine.XAttr_PhysicalDef_Total) + { + return atkData.PhysicalDef; + } + if (type == XAttributeDefine.XAttr_MagicDef_Total) + { + return atkData.MagicDef; + } + } + else + { + if (type == XAttributeDefine.XAttr_Critical_Total) + { + return atkData.CriticalBase; + } + if (type == XAttributeDefine.XAttr_CritDamage_Total) + { + return atkData.CritDamageBase; + } + switch (type) + { + case XAttributeDefine.XAttr_FireAtk_Total: + case XAttributeDefine.XAttr_WaterAtk_Total: + case XAttributeDefine.XAttr_LightAtk_Total: + case XAttributeDefine.XAttr_DarkAtk_Total: + return atkData.ElementAtk; + case XAttributeDefine.XAttr_FireDef_Total: + case XAttributeDefine.XAttr_WaterDef_Total: + case XAttributeDefine.XAttr_LightDef_Total: + case XAttributeDefine.XAttr_DarkDef_Total: + return atkData.ElementDef; + } + } + result = 0; + } + return result; + } + + private double GetCombatValue(int combatParam, double value) + { + return value / (value + (double)combatParam); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterAttrView.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterAttrView.cs.meta new file mode 100644 index 00000000..60c1051f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterAttrView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ec365c123568c847b3b7ca128c9a751 +timeCreated: 1611403906 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs new file mode 100644 index 00000000..f2ebd938 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs @@ -0,0 +1,48 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterCommonMenuBehaviour : DlgBehaviourBase + { + public XPlayerInfoChildView playerView; + + public XUIPool m_btntemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_bgTra; + + public Transform m_parentTra; + + public IXUISprite m_bgSpr; + + public IXUIButton btnSendFlower; + + public IXUIButton btnExchange; + + public IXUIButton btnClose; + + public IXUISprite m_sprFrame; + + public int TotalHeight = 0; + + private void Awake() + { + Transform transform = base.transform.Find("Bg"); + this.playerView = new XPlayerInfoChildView(); + this.playerView.FindFrom(transform); + this.m_bgTra = transform; + this.m_parentTra = transform.Find("buttons"); + this.m_bgSpr = (transform.Find("Bg").GetComponent("XUISprite") as IXUISprite); + this.TotalHeight = this.m_bgSpr.spriteHeight; + this.m_sprFrame = (transform.Find("AvatarFrame").GetComponent("XUISprite") as IXUISprite); + this.btnSendFlower = (transform.Find("send").GetComponent("XUIButton") as IXUIButton); + this.btnExchange = (transform.Find("CardChange").GetComponent("XUIButton") as IXUIButton); + this.btnClose = (base.transform.Find("BgBlack").GetComponent("XUIButton") as IXUIButton); + this.m_btntemPool.SetupPool(transform.gameObject, transform.Find("BtnTpl").gameObject, 5u, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs.meta new file mode 100644 index 00000000..b4358346 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a366154eaf537d24ab95c78db973fd50 +timeCreated: 1611404260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuDocument.cs b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuDocument.cs new file mode 100644 index 00000000..db1d0390 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuDocument.cs @@ -0,0 +1,163 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterCommonMenuDocument : XDocComponent + { + public override uint ID + { + get + { + return XCharacterCommonMenuDocument.uuID; + } + } + + public static CharacterCommonInfo CharacterCommonInfoTable + { + get + { + return XCharacterCommonMenuDocument.m_characterCommonInfo; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CharacterCommonMenuDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static CharacterCommonInfo m_characterCommonInfo = new CharacterCommonInfo(); + + public static bool IsHasRole = false; + + private XUnitAppearanceTeam m_CurrentTeam = default(XUnitAppearanceTeam); + + public static void Execute(OnLoadedCallback callback = null) + { + XCharacterCommonMenuDocument.AsyncLoader.AddTask("Table/CharacterCommonInfo", XCharacterCommonMenuDocument.m_characterCommonInfo, false); + XCharacterCommonMenuDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public static void ReqCharacterMenuInfo(ulong roleID, bool isHasRole = false) + { + XCharacterCommonMenuDocument.IsHasRole = isHasRole; + bool flag = roleID != XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY; + if (!flag2) + { + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Mentorship); + if (flag3) + { + XMentorshipDocument.Doc.ClickedMainSceneRoleID = roleID; + XMentorshipDocument.Doc.SendGetOtherMentorStatus(roleID); + } + XCharacterCommonMenuDocument specificDocument = XDocuments.GetSpecificDocument(XCharacterCommonMenuDocument.uuID); + specificDocument.ReqCharacterInfo(roleID); + } + } + } + + private void ReqCharacterInfo(ulong roleID) + { + RpcC2M_GetUnitAppearanceNew rpcC2M_GetUnitAppearanceNew = new RpcC2M_GetUnitAppearanceNew(); + rpcC2M_GetUnitAppearanceNew.oArg.roleid = roleID; + rpcC2M_GetUnitAppearanceNew.oArg.type = 4u; + rpcC2M_GetUnitAppearanceNew.oArg.mask = 609295; + XSingleton.singleton.Send(rpcC2M_GetUnitAppearanceNew); + } + + public void OnGetUnitAppearance(GetUnitAppearanceRes oRes) + { + bool inTutorial = XSingleton.singleton.InTutorial; + if (!inTutorial) + { + DlgBase.singleton.ShowMenu(oRes.UnitAppearance); + } + } + + public void TryJoinTeam(XUnitAppearanceTeam teamInfo) + { + bool flag = !teamInfo.bHasTeam; + if (!flag) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + this.m_CurrentTeam = teamInfo; + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("TeamLeaveAndJoinConfirm"), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._DoLeaveTeam)); + } + else + { + XTeamView.TryJoinTeam((int)teamInfo.teamID, teamInfo.bPwd); + } + } + } + + private bool _DoLeaveTeam(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + ulong num = (ulong)this.m_CurrentTeam.teamID; + bool bPwd = this.m_CurrentTeam.bPwd; + if (bPwd) + { + num |= 4294967296UL; + } + specificDocument.ReqTeamOp(TeamOperate.TEAM_LEAVE, num, null, TeamMemberType.TMT_NORMAL, null); + return true; + } + + public void TryInviteTeam(ulong roleID) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + bool flag = specificDocument.MyTeam.members.Count >= specificDocument.currentExpInfo.PlayerNumber; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TEAM_FULL, "fece00"); + } + else + { + specificDocument.ReqTeamOp(TeamOperate.TEAM_INVITE, roleID, null, TeamMemberType.TMT_NORMAL, null); + } + } + else + { + specificDocument.TryAutoSelectExp(); + specificDocument.ReqTeamOp(TeamOperate.TEAM_CREATE, roleID, null, TeamMemberType.TMT_NORMAL, null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuDocument.cs.meta new file mode 100644 index 00000000..a0a4d441 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterCommonMenuDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0fbf04ce1756ead4d9b0502b437e19c8 +timeCreated: 1611403213 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterDocument.cs b/Client/Assets/Scripts/XMainClient/XCharacterDocument.cs new file mode 100644 index 00000000..526224da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterDocument.cs @@ -0,0 +1,72 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterDocument : XDocComponent + { + public override uint ID + { + get + { + return XCharacterDocument.uuID; + } + } + + public XCharacterInfoView InfoView + { + get + { + return this._info_view; + } + set + { + this._info_view = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CharacterDocument"); + + private XCharacterInfoView _info_view = null; + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AttributeChange, new XComponent.XEventHandler(this.OnAttributeChange)); + } + + public static uint GetCharacterPPT() + { + return (uint)XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + } + + public static XAttributes GetCharacterAttr() + { + return XSingleton.singleton.XPlayerData; + } + + protected bool OnAttributeChange(XEventArgs e) + { + bool flag = this._info_view != null && this._info_view.active; + if (flag) + { + XAttrChangeEventArgs xattrChangeEventArgs = e as XAttrChangeEventArgs; + XAttributeDefine attrKey = xattrChangeEventArgs.AttrKey; + if (attrKey == XAttributeDefine.XAttr_POWER_POINT_Basic) + { + this._info_view.SetPowerpoint(true, (uint)xattrChangeEventArgs.DeltaValue); + } + } + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.InfoView != null && this.InfoView.IsVisible(); + if (flag) + { + this._info_view.SetPowerpoint(true, XCharacterDocument.GetCharacterPPT()); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterDocument.cs.meta new file mode 100644 index 00000000..c0327ac5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a1b1468aa809c642890fe440bfe4bde +timeCreated: 1611403161 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterEquipDocument.cs b/Client/Assets/Scripts/XMainClient/XCharacterEquipDocument.cs new file mode 100644 index 00000000..fc33777d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterEquipDocument.cs @@ -0,0 +1,577 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterEquipDocument : XDocComponent + { + public override uint ID + { + get + { + return XCharacterEquipDocument.uuID; + } + } + + public static XEquipSuitManager SuitManager + { + get + { + return XCharacterEquipDocument._SuitManager; + } + } + + public static RandomAttrDataMgr RandomAttrMgr + { + get + { + return XCharacterEquipDocument._randomAttrMgr; + } + } + + public static CharacterAttributesList AttributeTable + { + get + { + return XCharacterEquipDocument.m_AttributeTable; + } + } + + public CharacterEquipBagHandler Handler + { + get + { + return this._handler; + } + set + { + this._handler = value; + } + } + + public bool bCanBePowerful + { + get + { + return this._bCanBePowerful; + } + set + { + this._bCanBePowerful = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Item_Equip, true); + } + } + + public XNewItemTipsMgr NewItems + { + get + { + return this._NewItems; + } + } + + public XItemRequiredCollector ItemRequiredCollector + { + get + { + return this.m_ItemRequiredCollector; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CharacterEquipDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static RandomAttributes m_randomAttributesTab = new RandomAttributes(); + + private static XEquipSuitManager _SuitManager; + + private static RandomAttrDataMgr _randomAttrMgr; + + private static CharacterAttributesList m_AttributeTable = new CharacterAttributesList(); + + private CharacterEquipBagHandler _handler = null; + + private bool _bCanBePowerful = false; + + private bool _bShouldUpdateRedPoints = false; + + private bool _bShouldCalcMorePowerfulTip = false; + + private bool _bShouldUpdateOutlook = false; + + private XNewItemTipsMgr _NewItems = new XNewItemTipsMgr(); + + private XItemRequiredCollector m_ItemRequiredCollector = new XItemRequiredCollector(); + + private List m_ItemList = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + XCharacterEquipDocument.AsyncLoader.AddTask("Table/RandomAttributes", XCharacterEquipDocument.m_randomAttributesTab, false); + XCharacterEquipDocument.AsyncLoader.AddTask("Table/CharacterAttributes", XCharacterEquipDocument.m_AttributeTable, false); + XCharacterEquipDocument.AsyncLoader.Execute(callback); + } + + public static void CreateSuitManager(EquipSuitTable tableData) + { + XCharacterEquipDocument._SuitManager = new XEquipSuitManager(tableData.Table); + } + + public static void OnTableLoaded() + { + XCharacterEquipDocument._randomAttrMgr = new RandomAttrDataMgr(XCharacterEquipDocument.m_randomAttributesTab); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._NewItems.ClearItemType(); + this._NewItems.Filter.AddItemType(ItemType.EQUIP); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + DlgBase.singleton.IsInit = false; + DlgBase.singleton.m_oldPPT = 0; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_LoadEquip, new XComponent.XEventHandler(this.OnLoadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_SwapItem, new XComponent.XEventHandler(this.OnSwapItem)); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnFinishItemChange)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public override void OnEnterSceneFinally() + { + XCharacterEquipDocument._randomAttrMgr.DataClear(); + base.OnEnterSceneFinally(); + } + + public List GetEquips() + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.EQUIP); + this.m_ItemList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.m_ItemList); + return this.m_ItemList; + } + + private void _ShowSuitEffectTip(EquipSuitTable.RowData suit, int effectIndex, bool active) + { + int num = 0; + int effectData = XEquipSuitManager.GetEffectData(suit, effectIndex, out num); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SUIT_EFFECT_CHANGED", new object[] + { + suit.SuitName, + effectIndex, + XAttributeCommon.GetAttrStr(effectData) + " " + XAttributeCommon.GetAttrValueStr(effectData, (float)num), + XStringDefineProxy.GetString(active ? "HAS_EFFECT" : "NO_EFFECT") + }), "fece00"); + } + + private void _ProcessSuitEquiped(int itemid) + { + EquipSuitTable.RowData suit = XCharacterEquipDocument.SuitManager.GetSuit(itemid, false); + bool flag = suit == null; + if (!flag) + { + List list = ListPool.Get(); + XEquipSuitManager.GetEquipedSuits(suit, XSingleton.singleton.Doc.XBagDoc.EquipBag, list); + bool flag2 = XEquipSuitManager.IsEffectJustActivated(suit, list.Count); + if (flag2) + { + this._ShowSuitEffectTip(suit, list.Count, true); + CharacterEquipHandler characterEquipHandler = null; + bool flag3 = DlgBase.singleton.IsVisible() && DlgBase.singleton._equipHandler != null && DlgBase.singleton._equipHandler.IsVisible(); + if (flag3) + { + characterEquipHandler = DlgBase.singleton._equipHandler; + } + bool flag4 = characterEquipHandler != null; + if (flag4) + { + characterEquipHandler.PlaySuitFx(list); + } + } + ListPool.Release(list); + } + } + + private void _ProcessSuitUnEquiped(int itemid) + { + EquipSuitTable.RowData suit = XCharacterEquipDocument.SuitManager.GetSuit(itemid, false); + bool flag = suit == null; + if (!flag) + { + int equipedSuits = XEquipSuitManager.GetEquipedSuits(suit, XSingleton.singleton.Doc.XBagDoc.EquipBag, null); + bool flag2 = XEquipSuitManager.IsEffectJustActivated(suit, equipedSuits + 1); + if (flag2) + { + this._ShowSuitEffectTip(suit, equipedSuits + 1, false); + } + } + } + + protected bool OnLoadEquip(XEventArgs args) + { + XLoadEquipEventArgs xloadEquipEventArgs = args as XLoadEquipEventArgs; + bool flag = xloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + this._bShouldUpdateOutlook = true; + } + bool flag2 = this._handler != null && this._handler.active; + if (flag2) + { + this._handler.LoadEquip(xloadEquipEventArgs.item, xloadEquipEventArgs.slot); + } + this._ProcessSuitEquiped(xloadEquipEventArgs.item.itemID); + return true; + } + + protected bool OnUnloadEquip(XEventArgs args) + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + bool flag = xunloadEquipEventArgs.type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + this._bShouldUpdateOutlook = true; + } + bool flag2 = this._handler != null && this._handler.active; + if (flag2) + { + this._handler.UnloadEquip(xunloadEquipEventArgs.slot); + } + this._ProcessSuitUnEquiped(xunloadEquipEventArgs.item.itemID); + return true; + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + this._bShouldUpdateRedPoints = this._NewItems.AddItems(xaddItemEventArgs.items, !xaddItemEventArgs.bNew); + this._bShouldCalcMorePowerfulTip = this._bShouldUpdateRedPoints; + bool flag = this._handler == null || !this._handler.active; + bool result; + if (flag) + { + result = false; + } + else + { + this._handler.AddItem(xaddItemEventArgs.items); + result = true; + } + return result; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + this._bShouldUpdateRedPoints = this._NewItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, true); + this._bShouldCalcMorePowerfulTip = this._bShouldUpdateRedPoints; + bool flag = this._handler == null || !this._handler.active; + bool result; + if (flag) + { + result = false; + } + else + { + this._handler.RemoveItem(xremoveItemEventArgs.uids); + result = true; + } + return result; + } + + protected bool OnSwapItem(XEventArgs args) + { + XSwapItemEventArgs xswapItemEventArgs = args as XSwapItemEventArgs; + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + this._bShouldUpdateOutlook = true; + bool flag = xswapItemEventArgs.itemNowOnBody.Type != ItemType.EQUIP; + bool result; + if (flag) + { + result = true; + } + else + { + this._NewItems.RemoveItem(xswapItemEventArgs.itemNowOnBody.uid, ItemType.EQUIP, false); + bool flag2 = this._handler != null && this._handler.active; + if (flag2) + { + this._handler.SwapItem(xswapItemEventArgs.itemNowOnBody, xswapItemEventArgs.itemNowInBag, xswapItemEventArgs.slot); + } + bool flag3 = XCharacterEquipDocument.SuitManager.WillChangeEquipedCount(xswapItemEventArgs.itemNowInBag.itemID, xswapItemEventArgs.itemNowOnBody.itemID) || XCharacterEquipDocument.SuitManager.WillChangeEquipedCount(xswapItemEventArgs.itemNowOnBody.itemID, xswapItemEventArgs.itemNowInBag.itemID); + if (flag3) + { + this._ProcessSuitUnEquiped(xswapItemEventArgs.itemNowInBag.itemID); + this._ProcessSuitEquiped(xswapItemEventArgs.itemNowOnBody.itemID); + } + result = true; + } + return result; + } + + protected bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + bool flag = xupdateItemEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + } + bool flag2 = XSingleton.singleton.Doc.XBagDoc.EquipBag.HasItem(xupdateItemEventArgs.item.uid); + if (flag2) + { + this._bShouldUpdateOutlook = true; + } + bool flag3 = this._handler == null || !this._handler.active; + bool result; + if (flag3) + { + result = false; + } + else + { + this._handler.UpdateItem(xupdateItemEventArgs.item); + result = true; + } + return result; + } + + protected bool OnItemNumChanged(XEventArgs args) + { + bool flag = this._handler == null || !this._handler.active; + bool result; + if (flag) + { + result = false; + } + else + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + this._handler.ItemNumChanged(xitemNumChangedEventArgs.item); + result = true; + } + return result; + } + + public bool OnFinishItemChange(XEventArgs args) + { + bool bShouldUpdateRedPoints = this._bShouldUpdateRedPoints; + if (bShouldUpdateRedPoints) + { + this.UpdateRedPoints(); + this._bShouldUpdateRedPoints = false; + } + bool bShouldCalcMorePowerfulTip = this._bShouldCalcMorePowerfulTip; + if (bShouldCalcMorePowerfulTip) + { + bool flag = this._handler != null && this._handler.active; + if (flag) + { + this._handler.Refresh(); + } + this._bShouldCalcMorePowerfulTip = false; + } + bool bShouldUpdateOutlook = this._bShouldUpdateOutlook; + if (bShouldUpdateOutlook) + { + this._bShouldUpdateOutlook = false; + } + return true; + } + + public void RefreshBag() + { + bool flag = this._handler != null && this._handler.IsVisible(); + if (flag) + { + this._handler.Refresh(); + } + } + + public EquipCompare IsEquipMorePowerful(ulong uid) + { + return this.IsEquipMorePowerful(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(uid) as XEquipItem, XSingleton.singleton.XPlayerData.Level); + } + + public EquipCompare IsEquipMorePowerful(XEquipItem equip, uint playerLevel) + { + bool flag = equip == null; + EquipCompare result; + if (flag) + { + result = EquipCompare.EC_NONE; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(equip.itemID); + bool flag2 = itemConf == null; + if (flag2) + { + result = EquipCompare.EC_NONE; + } + else + { + bool flag3 = (long)itemConf.ReqLevel > (long)((ulong)playerLevel); + if (flag3) + { + result = EquipCompare.EC_NONE; + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(equip.itemID); + bool flag4 = equipConf == null; + if (flag4) + { + result = EquipCompare.EC_NONE; + } + else + { + bool flag5 = XBagDocument.IsProfMatched(equip.Prof); + int equipPos = (int)equipConf.EquipPos; + XBagDocument xbagDoc = XSingleton.singleton.Doc.XBagDoc; + XEquipItem xequipItem = xbagDoc.EquipBag[equipPos] as XEquipItem; + bool flag6 = xequipItem == null; + if (flag6) + { + bool flag7 = flag5; + if (flag7) + { + result = EquipCompare.EC_MORE_POWERFUL; + } + else + { + result = EquipCompare.EC_NONE; + } + } + else + { + bool flag8 = xequipItem.uid == equip.uid; + if (flag8) + { + result = EquipCompare.EC_NONE; + } + else + { + EquipCompare equipCompare = EquipCompare.EC_NONE; + bool flag9 = flag5; + if (flag9) + { + ItemAttrCompareResult itemAttrCompareResult = xbagDoc.IsAttrMorePowerful(equip, xequipItem, ItemAttrCompareType.IACT_SELF); + bool flag10 = itemAttrCompareResult == ItemAttrCompareResult.IACR_LARGER; + if (flag10) + { + return EquipCompare.EC_MORE_POWERFUL; + } + } + result = equipCompare; + } + } + } + } + } + } + return result; + } + + public static EquipCompare GetFinal(EquipCompare mix) + { + bool flag = (mix & EquipCompare.EC_MORE_POWERFUL) > EquipCompare.EC_NONE; + EquipCompare result; + if (flag) + { + result = EquipCompare.EC_MORE_POWERFUL; + } + else + { + bool flag2 = (mix & EquipCompare.EC_CAN_EQUIP) > EquipCompare.EC_NONE; + if (flag2) + { + result = EquipCompare.EC_CAN_EQUIP; + } + else + { + bool flag3 = (mix & EquipCompare.EC_CAN_SMELT) > EquipCompare.EC_NONE; + if (flag3) + { + result = EquipCompare.EC_CAN_SMELT; + } + else + { + result = EquipCompare.EC_NONE; + } + } + } + return result; + } + + public void UpdateRedPoints() + { + this.UpdateRedPoints(XSingleton.singleton.XPlayerData.Level); + } + + public void UpdateRedPoints(uint playerLevel) + { + this._bCanBePowerful = false; + List equips = this.GetEquips(); + for (int i = 0; i < equips.Count; i++) + { + XEquipItem xequipItem = equips[i] as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + EquipCompare equipCompare = this.IsEquipMorePowerful(xequipItem, playerLevel); + bool flag2 = (equipCompare & EquipCompare.EC_MORE_POWERFUL) > EquipCompare.EC_NONE; + if (flag2) + { + this.bCanBePowerful = true; + break; + } + } + } + bool flag3 = !this._bCanBePowerful; + if (flag3) + { + this.bCanBePowerful = false; + } + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + XPlayerLevelChangedEventArgs xplayerLevelChangedEventArgs = arg as XPlayerLevelChangedEventArgs; + this.UpdateRedPoints(xplayerLevelChangedEventArgs.level); + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.RefreshData(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterEquipDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterEquipDocument.cs.meta new file mode 100644 index 00000000..219d5660 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterEquipDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 22068b8c1aeec6d4db5468e9883ae508 +timeCreated: 1611403418 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterFashionView.cs b/Client/Assets/Scripts/XMainClient/XCharacterFashionView.cs new file mode 100644 index 00000000..181342e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterFashionView.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XCharacterFashionView : DlgHandlerBase + { + private List FashionData = null; + + public void SetFashionData(List data) + { + this.FashionData = data; + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshData(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterFashionView.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterFashionView.cs.meta new file mode 100644 index 00000000..c366fdb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterFashionView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e501f7444631dc4691eab486f065aa0 +timeCreated: 1611403202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterInfoView.cs b/Client/Assets/Scripts/XMainClient/XCharacterInfoView.cs new file mode 100644 index 00000000..11382a1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterInfoView.cs @@ -0,0 +1,182 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterInfoView : DlgHandlerBase + { + public string EffectPath + { + get + { + bool flag = string.IsNullOrEmpty(this.m_effectPath); + if (flag) + { + this.m_effectPath = XSingleton.singleton.GetValue("CharacterEffectPath"); + } + return this.m_effectPath; + } + } + + protected override string FileName + { + get + { + return "ItemNew/CharacterInfoFrame"; + } + } + + public IXUISprite m_CharacterBG; + + public IXUILabel m_PPT; + + public IXUILabel m_UID; + + public IXUILabel m_Name; + + public IXUISprite m_ProfIcon; + + private IUIDummy m_SnapShot = null; + + private XCharacterDocument _doc = null; + + private bool m_ShowPPT = true; + + private XFx m_fx; + + private string m_effectPath = string.Empty; + + protected override void Init() + { + base.Init(); + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XCharacterDocument.uuID); + this.m_CharacterBG = (base.PanelObject.transform.Find("CharacterFrame/Bg").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.PanelObject.transform.Find("CharacterFrame/PowerPoint"); + bool flag = transform != null; + if (flag) + { + this.m_PPT = (transform.GetComponent("XUILabel") as IXUILabel); + } + transform = base.PanelObject.transform.Find("TitleFrame/ProfIcon"); + bool flag2 = transform != null; + if (flag2) + { + this.m_ProfIcon = (transform.GetComponent("XUISprite") as IXUISprite); + } + transform = base.PanelObject.transform.Find("UID"); + bool flag3 = transform != null; + if (flag3) + { + this.m_UID = (transform.GetComponent("XUILabel") as IXUILabel); + } + transform = base.PanelObject.transform.Find("name"); + bool flag4 = transform != null; + if (flag4) + { + this.m_Name = (transform.GetComponent("XUILabel") as IXUILabel); + } + this.m_SnapShot = (base.PanelObject.transform.Find("CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + bool flag5 = this.m_fx == null; + if (flag5) + { + this.m_fx = XSingleton.singleton.CreateFx(this.EffectPath, null, true); + } + else + { + this.m_fx.SetActive(true); + } + this.m_fx.Play(base.PanelObject.transform.Find("CharacterFrame/T1/FX"), Vector3.zero, Vector3.one, 1f, true, false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_CharacterBG.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this.OnCharacterWindowDrag)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.InfoView = this; + this.SetPowerpoint(this.m_ShowPPT, XCharacterDocument.GetCharacterPPT()); + bool flag = this.m_UID != null; + if (flag) + { + this.m_UID.SetText(string.Format("UID:{0}", XSingleton.singleton.XPlayerData.ShortId)); + } + bool flag2 = this.m_Name != null; + if (flag2) + { + this.m_Name.SetText(XSingleton.singleton.XPlayerData.Name); + } + bool flag3 = this.m_ProfIcon != null; + if (flag3) + { + uint typeID = XSingleton.singleton.Player.TypeID; + this.m_ProfIcon.SetSprite(XSingleton.singleton.GetProfIcon((int)typeID)); + } + XSingleton.singleton.EnableMainDummy(true, this.m_SnapShot); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.SetPowerpoint(this.m_ShowPPT, XCharacterDocument.GetCharacterPPT()); + XSingleton.singleton.EnableMainDummy(true, this.m_SnapShot); + } + + protected override void OnHide() + { + base.OnHide(); + this._doc.InfoView = null; + XSingleton.singleton.EnableMainDummy(false, null); + bool flag = this.m_SnapShot != null; + if (flag) + { + this.m_SnapShot.RefreshRenderQueue = null; + } + } + + public override void OnUnload() + { + XSingleton.singleton.OnUIUnloadMainDummy(this.m_SnapShot); + bool flag = this.m_SnapShot != null; + if (flag) + { + this.m_SnapShot.RefreshRenderQueue = null; + } + this._doc.InfoView = null; + bool flag2 = this.m_fx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_fx, true); + this.m_fx = null; + } + base.OnUnload(); + } + + protected bool OnCharacterWindowDrag(Vector2 delta) + { + XSingleton.singleton.RotateMain(-delta.x / 2f); + return true; + } + + public void SetPowerpoint(bool visible, uint value) + { + this.m_ShowPPT = visible; + bool flag = this.m_PPT != null; + if (flag) + { + this.m_PPT.gameObject.SetActive(visible); + bool flag2 = value > 0u; + if (flag2) + { + this.m_PPT.SetText(value.ToString()); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterInfoView.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterInfoView.cs.meta new file mode 100644 index 00000000..d0932864 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterInfoView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: adcf471472020bb4b83f4d0fec885a06 +timeCreated: 1611404336 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterItemDocument.cs b/Client/Assets/Scripts/XMainClient/XCharacterItemDocument.cs new file mode 100644 index 00000000..7d7d12af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterItemDocument.cs @@ -0,0 +1,744 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterItemDocument : XDocComponent + { + public override uint ID + { + get + { + return XCharacterItemDocument.uuID; + } + } + + public CharacterItemBagHandler Handler + { + get + { + return this._handler; + } + set + { + this._handler = value; + } + } + + public bool bHasAvailableItems + { + get + { + return this._AvailableItems.bHasNew; + } + } + + public XNewItemTipsMgr NewItems + { + get + { + return this._NewItems; + } + } + + public XNewItemTipsMgr AvailableItems + { + get + { + return this._AvailableItems; + } + } + + public static List> TabList + { + get + { + return XCharacterItemDocument.m_tabList; + } + } + + public uint BagType { get; set; } + + public bool bBlock + { + get + { + return this.m_bBlock; + } + set + { + this.m_bBlock = value; + bool flag = !this.m_bBlock; + if (flag) + { + bool flag2 = this.Handler != null && this.Handler.IsVisible(); + if (flag2) + { + this.Handler.UpdateBag(); + } + } + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CharacterItemDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ItemUseButtonList m_ItemUseButtonListTable = new ItemUseButtonList(); + + private static Dictionary ItemID_Index = new Dictionary(); + + private static Dictionary TypeID_Index = new Dictionary(); + + private CharacterItemBagHandler _handler = null; + + private XNewItemTipsMgr _NewItems = new XNewItemTipsMgr(); + + private XNewItemTipsMgr _AvailableItems = new XNewItemTipsMgr(); + + private static List> m_tabList = null; + + private ulong m_UsedItem = 0UL; + + private List m_ItemList = new List(); + + private List m_AvailableItemList = new List(); + + private static HashSet _NoRedPointItems = new HashSet(); + + private bool m_bBlock; + + public Dictionary m_bagTypeRedDotDic = new Dictionary(); + + public static void Execute(OnLoadedCallback callback = null) + { + XCharacterItemDocument.ItemID_Index.Clear(); + XCharacterItemDocument.TypeID_Index.Clear(); + XCharacterItemDocument.AsyncLoader.AddTask("Table/ItemUseButtonList", XCharacterItemDocument.m_ItemUseButtonListTable, false); + XCharacterItemDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + for (int i = 0; i < XCharacterItemDocument.m_ItemUseButtonListTable.Table.Length; i++) + { + ItemUseButtonList.RowData rowData = XCharacterItemDocument.m_ItemUseButtonListTable.Table[i]; + bool flag = rowData.ItemID > 0u; + if (flag) + { + bool flag2 = XCharacterItemDocument.ItemID_Index.ContainsKey(rowData.ItemID); + if (flag2) + { + XSingleton.singleton.AddErrorLog("Duplicate ItemID in ItemUseButtonList ", rowData.ItemID.ToString(), null, null, null, null); + } + else + { + XCharacterItemDocument.ItemID_Index.Add(rowData.ItemID, i); + } + } + else + { + bool flag3 = rowData.TypeID > 0u; + if (flag3) + { + bool flag4 = XCharacterItemDocument.TypeID_Index.ContainsKey(rowData.TypeID); + if (flag4) + { + XSingleton.singleton.AddErrorLog("Duplicate TypeID in ItemUseButtonList ", rowData.TypeID.ToString(), null, null, null, null); + } + else + { + XCharacterItemDocument.TypeID_Index.Add(rowData.TypeID, i); + } + } + } + } + } + + public static void InitFromGlobalConfig() + { + XCharacterItemDocument._NoRedPointItems.Clear(); + List intList = XSingleton.singleton.GetIntList("NoRedPointItems"); + XCharacterItemDocument._NoRedPointItems.UnionWith(intList); + } + + private ItemUseButtonList.RowData GetByItemID(uint itemID) + { + int num; + bool flag = XCharacterItemDocument.ItemID_Index.TryGetValue(itemID, out num); + ItemUseButtonList.RowData result; + if (flag) + { + result = XCharacterItemDocument.m_ItemUseButtonListTable.Table[num]; + } + else + { + result = null; + } + return result; + } + + private ItemUseButtonList.RowData GetByTypeID(uint typeID) + { + int num; + bool flag = XCharacterItemDocument.TypeID_Index.TryGetValue(typeID, out num); + ItemUseButtonList.RowData result; + if (flag) + { + result = XCharacterItemDocument.m_ItemUseButtonListTable.Table[num]; + } + else + { + result = null; + } + return result; + } + + public ItemUseButtonList.RowData GetButtonData(uint itemID, uint typeID) + { + ItemUseButtonList.RowData rowData = this.GetByItemID(itemID); + bool flag = rowData == null; + if (flag) + { + rowData = this.GetByTypeID(typeID); + } + return rowData; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._NewItems.ClearItemType(); + List intList = XSingleton.singleton.GetIntList("BagExcludedTypes"); + for (int i = 0; i < intList.Count; i++) + { + ItemType type = (ItemType)intList[i]; + this._NewItems.Filter.ExcludeItemType(type); + } + this._AvailableItems.ClearItemType(); + this._AvailableItems.Filter.AddItemType(ItemType.PECK); + this._AvailableItems.Filter.AddItemType(ItemType.LOTTERY_BOX); + this._AvailableItems.Filter.AddItemType(ItemType.FISH); + this._AvailableItems.Filter.AddItemType(ItemType.PANDORA); + this.m_UsedItem = 0UL; + this.bBlock = false; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public List GetItem() + { + ulong filterValue = this._NewItems.Filter.FilterValue; + this.m_ItemList.Clear(); + for (int i = 0; i < XBagDocument.BagDoc.ItemBag.Count; i++) + { + XItem xitem = XBagDocument.BagDoc.ItemBag[i]; + bool flag = xitem == null; + if (!flag) + { + ulong num = 1UL << (int)xitem.type; + bool flag2 = (num & filterValue) > 0UL; + if (flag2) + { + bool flag3 = this.BagType > 0u; + if (flag3) + { + bool flag4 = xitem.itemConf != null && (uint)xitem.itemConf.BagType == this.BagType; + if (flag4) + { + this.m_ItemList.Add(xitem); + } + } + else + { + this.m_ItemList.Add(xitem); + } + } + } + } + return this.m_ItemList; + } + + public int GetTotalNum() + { + ulong filterValue = this._NewItems.Filter.FilterValue; + this.m_ItemList.Clear(); + XBagDocument.BagDoc.GetItemsByType(filterValue, ref this.m_ItemList); + return this.m_ItemList.Count; + } + + public void UpdateBagTypeReddot() + { + this.m_bagTypeRedDotDic.Clear(); + foreach (ulong uid in this.AvailableItems.NewItems) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag = itemByUID == null; + if (!flag) + { + bool flag2 = itemByUID.itemConf != null; + if (flag2) + { + bool flag3 = !this.m_bagTypeRedDotDic.ContainsKey((uint)itemByUID.itemConf.BagType); + if (flag3) + { + this.m_bagTypeRedDotDic.Add((uint)itemByUID.itemConf.BagType, true); + } + } + } + } + bool flag4 = this.m_bagTypeRedDotDic.Count != 0; + if (flag4) + { + bool flag5 = !this.m_bagTypeRedDotDic.ContainsKey(0u); + if (flag5) + { + this.m_bagTypeRedDotDic.Add(0u, true); + } + } + bool flag6 = this.Handler != null && this.Handler.IsVisible(); + if (flag6) + { + this.Handler.UpdateTabRedDot(); + } + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + bool flag = false; + bool flag2 = XSingleton.singleton.Player != null; + if (flag2) + { + uint level = XSingleton.singleton.XPlayerData.Level; + bool flag3 = false; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag4 = !flag; + if (flag4) + { + bool flag5 = xaddItemEventArgs.items[i].Type != ItemType.EQUIP && xaddItemEventArgs.items[i].Type != ItemType.ARTIFACT && xaddItemEventArgs.items[i].Type != ItemType.EMBLEM; + if (flag5) + { + flag = true; + } + } + bool flag6 = xaddItemEventArgs.items[i].Type == ItemType.PANDORA; + if (flag6) + { + PandoraHeart.RowData pandoraHeartConf = XBagDocument.GetPandoraHeartConf(xaddItemEventArgs.items[i].itemID, XSingleton.singleton.XPlayerData.BasicTypeID); + bool flag7 = pandoraHeartConf != null; + if (flag7) + { + break; + } + bool flag8 = this._AvailableItems.AddItem(xaddItemEventArgs.items[i], true) && this._IsItemAvailable(xaddItemEventArgs.items[i], level); + if (flag8) + { + this._AvailableItems.AddItem(xaddItemEventArgs.items[i], false); + flag3 = true; + } + } + else + { + bool flag9 = this._AvailableItems.AddItem(xaddItemEventArgs.items[i], true) && this._IsItemAvailable(xaddItemEventArgs.items[i], level); + if (flag9) + { + this._AvailableItems.AddItem(xaddItemEventArgs.items[i], false); + flag3 = true; + } + } + } + bool flag10 = flag3; + if (flag10) + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Bag_Item, true); + } + } + bool flag11 = flag; + if (flag11) + { + this.UpdateRedPoints(); + } + bool flag12 = this._handler == null || !this._handler.active; + bool result; + if (flag12) + { + bool bNew = xaddItemEventArgs.bNew; + if (bNew) + { + this._NewItems.AddItems(xaddItemEventArgs.items, false); + } + result = false; + } + else + { + bool flag13 = !this.bBlock; + if (flag13) + { + this._handler.AddItem(xaddItemEventArgs.items); + } + result = true; + } + return result; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + bool flag = false; + bool flag2 = false; + for (int i = 0; i < xremoveItemEventArgs.types.Count; i++) + { + bool flag3 = !flag2; + if (flag3) + { + bool flag4 = xremoveItemEventArgs.types[i] != ItemType.EQUIP && xremoveItemEventArgs.types[i] != ItemType.ARTIFACT && xremoveItemEventArgs.types[i] != ItemType.EMBLEM; + if (flag4) + { + flag2 = true; + } + } + bool flag5 = this._AvailableItems.Filter.Contains(xremoveItemEventArgs.types[i]) && xremoveItemEventArgs.types[i] == ItemType.PANDORA; + if (flag5) + { + flag = true; + break; + } + } + bool flag6 = !flag; + if (flag6) + { + bool flag7 = this._AvailableItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, false); + if (flag7) + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Bag_Item, true); + } + } + bool flag8 = flag2; + if (flag8) + { + this.UpdateRedPoints(); + } + bool flag9 = this._handler == null || !this._handler.active; + bool result; + if (flag9) + { + result = false; + } + else + { + this._NewItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, true); + bool flag10 = !this.bBlock; + if (flag10) + { + this._handler.RemoveItem(xremoveItemEventArgs.uids); + } + result = true; + } + return result; + } + + protected bool OnUpdateItem(XEventArgs args) + { + bool flag = this._handler == null || !this._handler.active; + bool result; + if (flag) + { + result = false; + } + else + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + bool flag2 = !this.bBlock; + if (flag2) + { + this._handler.UpdateItem(xupdateItemEventArgs.item); + } + result = true; + } + return result; + } + + protected bool OnItemNumChanged(XEventArgs args) + { + bool flag = this._handler == null || !this._handler.active; + bool result; + if (flag) + { + result = false; + } + else + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag2 = !this.bBlock; + if (flag2) + { + this._handler.ItemNumChanged(xitemNumChangedEventArgs.item); + } + result = true; + } + return result; + } + + protected bool OnUnloadEquip(XEventArgs args) + { + bool flag = this._handler == null || !this._handler.active; + bool result; + if (flag) + { + result = false; + } + else + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + DlgBase.singleton.HideToolTip(true); + result = true; + } + return result; + } + + public void UpdateRedPoints() + { + this.UpdateRedPoints(XSingleton.singleton.XPlayerData.Level); + } + + public void UpdateRedPoints(uint playerLevel) + { + this._AvailableItems.Clear(); + this.m_AvailableItemList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(this._AvailableItems.Filter.FilterValue, ref this.m_AvailableItemList); + for (int i = 0; i < this.m_AvailableItemList.Count; i++) + { + bool flag = this._IsItemAvailable(this.m_AvailableItemList[i], playerLevel); + if (flag) + { + this._AvailableItems.AddItem(this.m_AvailableItemList[i], false); + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Bag_Item, true); + this.UpdateBagTypeReddot(); + } + + private bool _IsItemAvailable(XItem item, uint playerLevel) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + bool flag = itemConf == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = item.Type == ItemType.PANDORA; + if (flag2) + { + PandoraHeart.RowData pandoraHeartConf = XBagDocument.GetPandoraHeartConf(item.itemID, XSingleton.singleton.XPlayerData.BasicTypeID); + int num = 0; + int num2 = 0; + bool flag3 = pandoraHeartConf != null; + if (flag3) + { + num = XBagDocument.BagDoc.ItemBag.GetItemCount((int)pandoraHeartConf.FireID); + num2 = XBagDocument.BagDoc.ItemBag.GetItemCount((int)pandoraHeartConf.PandoraID); + } + bool flag4 = num2 < 1 || num < 1; + if (flag4) + { + return false; + } + } + bool flag5 = XCharacterItemDocument._NoRedPointItems.Contains(item.itemID); + result = (!flag5 && (long)itemConf.ReqLevel <= (long)((ulong)playerLevel)); + } + return result; + } + + public void ToggleBlock(bool block) + { + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.AttrEventBlocker.bBlockReceiver = block; + specificDocument.SetBlockItemsChange(block); + XShowGetItemDocument specificDocument2 = XDocuments.GetSpecificDocument(XShowGetItemDocument.uuID); + specificDocument2.bBlock = block; + XLevelUpStatusDocument specificDocument3 = XDocuments.GetSpecificDocument(XLevelUpStatusDocument.uuID); + specificDocument3.bBlock = block; + this.bBlock = block; + } + + public void UseItem(ulong uid) + { + bool flag = this.m_UsedItem > 0UL; + if (!flag) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = uid; + rpcC2G_UseItem.oArg.count = 1u; + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.BagFind); + XSingleton.singleton.Send(rpcC2G_UseItem); + this.m_UsedItem = uid; + this.ToggleBlock(true); + } + } + + public void OnUseItem(UseItemArg oArg, UseItemRes oRes) + { + bool flag = oRes.ErrorCode == ErrorCode.ERR_SUCCESS; + if (flag) + { + this.ShowEmblemTips(oArg, oRes); + } + bool flag2 = oArg.uid != this.m_UsedItem && this.m_UsedItem > 0UL; + if (!flag2) + { + bool flag3 = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + this.ToggleBlock(false); + bool flag4 = this.Handler != null && this.Handler.active && this.Handler.WheelOfFortune.active; + if (flag4) + { + this.Handler.WheelOfFortune.ToggleOperation(false, false); + } + } + else + { + bool flag5 = this.Handler != null && this.Handler.IsVisible(); + if (flag5) + { + this.Handler.RefreshTips(oArg.uid); + } + } + this.m_UsedItem = 0UL; + } + } + + private void ShowEmblemTips(UseItemArg oArg, UseItemRes oRes) + { + bool flag = oArg.OpType != 0u && oArg.OpType != 1u; + if (!flag) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(oArg.uid); + bool flag2 = itemByUID != null && itemByUID.Type == ItemType.EMBLEM; + if (flag2) + { + XEmblemItem xemblemItem = itemByUID as XEmblemItem; + bool flag3 = !xemblemItem.bIsSkillEmblem; + if (!flag3) + { + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)xemblemItem.itemID); + bool flag4 = emblemSkillConf == null; + if (!flag4) + { + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + List skillNames = new List + { + emblemSkillConf.SkillName, + emblemSkillConf.ExSkillScript + }; + bool flag5 = specificDocument.IsEquipThisSkill(skillNames); + bool flag6 = !flag5; + if (!flag6) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)emblemSkillConf.EmblemID); + bool flag7 = itemConf == null; + if (!flag7) + { + bool flag8 = oArg.OpType == 0u; + if (flag8) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("Active_Emblem"), itemConf.ItemName[0], emblemSkillConf.SkillPPT), "fece00"); + } + else + { + bool flag9 = oArg.OpType == 1u; + if (flag9) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("Deactive_Emblem"), itemConf.ItemName[0], emblemSkillConf.SkillPPT), "fece00"); + } + } + } + } + } + } + } + } + } + + public void RefreshBag() + { + bool flag = this._handler != null && this._handler.IsVisible(); + if (flag) + { + this._handler.Refresh(); + } + } + + public void ShowLotteryResult(int index) + { + bool flag = this.Handler != null && this.Handler.active && this.Handler.WheelOfFortune.active; + if (flag) + { + this.Handler.WheelOfFortune.ShowResult(index); + } + } + + public void ShowWheelView(XItem item) + { + bool flag = this.Handler != null && this.Handler.active; + if (flag) + { + this.Handler.WheelOfFortune.OpenWheel(item as XLotteryBoxItem); + } + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + XPlayerLevelChangedEventArgs xplayerLevelChangedEventArgs = arg as XPlayerLevelChangedEventArgs; + this.UpdateRedPoints(xplayerLevelChangedEventArgs.level); + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.m_UsedItem = 0UL; + bool flag = this.Handler != null && this.Handler.IsVisible(); + if (flag) + { + this.Handler.UpdateBag(); + } + } + + public static void InitTabList() + { + XCharacterItemDocument.m_tabList = new List>(); + string value = XSingleton.singleton.GetValue("ItemBagType"); + string[] array = value.Split(XGlobalConfig.AllSeparators); + for (int i = 0; i < array.Length; i += 2) + { + XTuple xtuple = new XTuple(); + bool flag = !string.IsNullOrEmpty(array[i]) && !string.IsNullOrEmpty(array[i + 1]); + if (flag) + { + xtuple.Item1 = uint.Parse(array[i]); + xtuple.Item2 = array[i + 1]; + XCharacterItemDocument.m_tabList.Add(xtuple); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterItemDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterItemDocument.cs.meta new file mode 100644 index 00000000..77398f51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterItemDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8872584868aa9e74f80064c2de2a9f85 +timeCreated: 1611404084 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCharacterShowChatComponent.cs b/Client/Assets/Scripts/XMainClient/XCharacterShowChatComponent.cs new file mode 100644 index 00000000..a6c5257a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterShowChatComponent.cs @@ -0,0 +1,332 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCharacterShowChatComponent : XComponent + { + public override uint ID + { + get + { + return XCharacterShowChatComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CharacterShowChatComponent"); + + public static string FEAST_TEMPLATE = "UI/Billboard/FeastingBill"; + + public static string CHAT_TEMPLATE = "UI/Billboard/ChatbubbleBill"; + + private bool _inited = false; + + private IXUILabel _homeRemainTimeLabel; + + private GameObject _gardenFeastObj; + + private GameObject _chatBubbleObj; + + private IXUITweenTool _chatTween; + + private IXUISprite _chatBg; + + private IXUILabelSymbol _chatLabelSymbol; + + private IXUILabel _chatLabel; + + private XBillboardComponent bbComp; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._inited = false; + } + + public override void Attached() + { + base.Attached(); + } + + private void Init() + { + this._gardenFeastObj = XSingleton.singleton.CreateFromPrefab(XCharacterShowChatComponent.FEAST_TEMPLATE, this._entity.EngineObject.Position, this._entity.EngineObject.Rotation, true, false); + this._chatBubbleObj = XSingleton.singleton.CreateFromPrefab(XCharacterShowChatComponent.CHAT_TEMPLATE, this._entity.EngineObject.Position, this._entity.EngineObject.Rotation, true, false); + this._homeRemainTimeLabel = (this._gardenFeastObj.GetComponent("XUILabel") as IXUILabel); + this._homeRemainTimeLabel.gameObject.SetActive(false); + this._chatLabelSymbol = (this._chatBubbleObj.transform.Find("Content/text").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._chatLabel = (this._chatBubbleObj.transform.Find("Content/text").GetComponent("XUILabel") as IXUILabel); + this._chatTween = (this._chatBubbleObj.GetComponent("XUIPlayTween") as IXUITweenTool); + this._chatBg = (this._chatBubbleObj.transform.Find("Content/p").GetComponent("XUISprite") as IXUISprite); + this._gardenFeastObj.gameObject.SetActive(false); + this._chatBubbleObj.gameObject.SetActive(false); + this._inited = true; + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_HomeFeasting, new XComponent.XEventHandler(this.OnFeastTimeChange)); + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = !this._inited; + if (!flag) + { + bool flag2 = Time.frameCount % 15 == 0; + if (flag2) + { + float dis = Vector3.Distance(XSingleton.singleton.GameCamera.UnityCamera.transform.position, this._chatBubbleObj.transform.position); + bool flag3 = this._entity != null; + if (flag3) + { + this.SetBoardDepth(this._entity.IsPlayer, dis); + } + } + XEntity xentity = this._host as XEntity; + XPlayer player = XSingleton.singleton.Player; + bool flag4 = xentity == null || player == null || this.bbComp == null; + if (!flag4) + { + float num = Vector3.Distance(xentity.EngineObject.Position, player.EngineObject.Position); + bool flag5 = num > this.bbComp.viewDistance; + if (flag5) + { + bool flag6 = !this.bbComp.alwaysShow; + if (flag6) + { + this._chatTween.ResetTween(false); + } + } + } + } + } + + private bool OnFeastTimeChange(XEventArgs e) + { + bool flag = !this._inited; + bool result; + if (flag) + { + result = false; + } + else + { + XEvent_HomeFeastingArgs xevent_HomeFeastingArgs = e as XEvent_HomeFeastingArgs; + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag2 = sceneType == SceneType.SCENE_FAMILYGARDEN; + if (flag2) + { + bool flag3 = xevent_HomeFeastingArgs.time < 1u; + if (flag3) + { + this.UnAttachFeastCdTime(); + this._homeRemainTimeLabel.gameObject.SetActive(false); + } + else + { + this._homeRemainTimeLabel.gameObject.SetActive(true); + string @string = XSingleton.singleton.GetString("HomeFeasting"); + uint num = xevent_HomeFeastingArgs.time / 60u; + uint num2 = xevent_HomeFeastingArgs.time - 60u * num; + this._homeRemainTimeLabel.SetText(string.Concat(new object[] + { + @string, + "\n", + num, + ":", + num2 + })); + } + } + else + { + this.UnAttachFeastCdTime(); + this._homeRemainTimeLabel.gameObject.SetActive(false); + } + result = true; + } + return result; + } + + public void AttachChatBubble() + { + bool flag = !this._inited; + if (flag) + { + this.Init(); + } + this.bbComp = this._entity.BillBoard; + bool flag2 = this.bbComp != null; + if (flag2) + { + bool flag3 = this.bbComp.AttachChild(this._chatBubbleObj.transform, false, 60f); + if (flag3) + { + this._chatBubbleObj.SetActive(true); + } + bool flag4 = this._chatTween != null; + if (flag4) + { + this._chatTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnChatPlayFinish)); + } + } + } + + private void OnChatPlayFinish(IXUITweenTool tween) + { + this.UnAttachChatBubble(); + } + + public void UnAttachChatBubble() + { + bool flag = !this._inited; + if (!flag) + { + XBillboardComponent billBoard = this._entity.BillBoard; + bool flag2 = billBoard != null; + if (flag2) + { + bool flag3 = billBoard.UnAttachChild(this._chatBubbleObj.transform); + if (flag3) + { + this._chatBubbleObj.SetActive(false); + } + } + } + } + + public void DealWithChat(string content) + { + bool flag = !this._inited; + if (!flag) + { + bool flag2 = !XEntity.ValideEntity(this._entity); + if (!flag2) + { + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + bool flag4 = this._chatTween != null && this._chatLabelSymbol != null && this._chatBubbleObj != null; + if (flag4) + { + this._chatTween.ResetTween(true); + this._chatTween.PlayTween(true, -1f); + string text = ""; + string text2 = ""; + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + XPrerogativeDocument specificDocument = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + text = specificDocument.GetPreContent(PrerogativeType.PreChatBubble); + } + else + { + bool isRole = this._entity.IsRole; + if (isRole) + { + XRoleAttributes xroleAttributes = this._entity.Attributes as XRoleAttributes; + text = XPrerogativeDocument.ConvertTypeToPreContent(PrerogativeType.PreChatBubble, xroleAttributes.PrerogativeSetID); + } + } + bool flag5 = !string.IsNullOrEmpty(text); + if (flag5) + { + string[] array = text.Split(new char[] + { + '=' + }); + bool flag6 = array.Length == 3; + if (flag6) + { + this._chatBg.SetSprite(array[1], array[0], false); + text2 = array[2]; + } + } + bool flag7 = string.IsNullOrEmpty(text2); + if (flag7) + { + this._chatLabelSymbol.InputText = DlgBase.singleton.OnParseEmotion(content); + } + else + { + this._chatLabelSymbol.InputText = string.Format("[c][{0}]{1}[/c]", text2, DlgBase.singleton.OnParseEmotion(content)); + } + this._chatBg.spriteHeight = this._chatLabel.spriteHeight + 30; + int num = content.Length * (2 + this._chatLabel.fontSize); + this._chatBg.spriteWidth = Mathf.Min(this._chatLabel.spriteWidth, num) + 48; + } + } + } + } + } + + public void AttachFeastCdTime() + { + bool flag = !this._inited; + if (flag) + { + this.Init(); + } + XBillboardComponent billBoard = this._entity.BillBoard; + bool flag2 = billBoard != null; + if (flag2) + { + this._gardenFeastObj.transform.parent = null; + bool flag3 = billBoard.AttachChild(this._gardenFeastObj.transform, true, 45f); + if (flag3) + { + this._gardenFeastObj.SetActive(true); + } + } + } + + public void UnAttachFeastCdTime() + { + bool flag = !this._inited; + if (!flag) + { + XBillboardComponent billBoard = this._entity.BillBoard; + bool flag2 = billBoard != null; + if (flag2) + { + bool flag3 = billBoard.UnAttachChild(this._gardenFeastObj.transform); + if (flag3) + { + this._gardenFeastObj.SetActive(false); + } + } + } + } + + public override void OnDetachFromHost() + { + this.UnAttachChatBubble(); + this.UnAttachFeastCdTime(); + this.DestroyGameObjects(); + base.OnDetachFromHost(); + } + + private void DestroyGameObjects() + { + XResourceLoaderMgr.SafeDestroy(ref this._chatBubbleObj, true); + XResourceLoaderMgr.SafeDestroy(ref this._gardenFeastObj, true); + } + + private void SetBoardDepth(bool isMy, float dis = 0f) + { + int num = isMy ? 10 : (-(int)(dis * 100f)); + bool flag = this._chatBg != null && this._chatLabel != null; + if (flag) + { + this._chatBg.spriteDepth = num + 1; + this._chatLabel.spriteDepth = num + 2; + this._chatLabelSymbol.UpdateDepth(num + 2); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCharacterShowChatComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XCharacterShowChatComponent.cs.meta new file mode 100644 index 00000000..5e77a075 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCharacterShowChatComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21d7b42916e6f094c873f4062872d95e +timeCreated: 1611403416 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatApolloMgr.cs b/Client/Assets/Scripts/XMainClient/XChatApolloMgr.cs new file mode 100644 index 00000000..f1f3a3b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatApolloMgr.cs @@ -0,0 +1,536 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatApolloMgr : XSingleton + { + public bool IsRecording + { + get + { + return this._is_recording; + } + } + + public bool IsInRecordingState + { + get + { + return this._is_recording || this._prepare_record_time > 0u; + } + } + + private EndRecordCallBack _callback = null; + + private VoiceUsage _usage = VoiceUsage.CHAT; + + private bool _engine_inited = false; + + private uint _prepare_record_time = 0u; + + private uint _record_timer = 0u; + + private uint _mic_timer = 0u; + + private bool _is_recording = false; + + private float _record_start = 0f; + + private float _record_length = 0f; + + private bool _is_uploading = false; + + private float _uploading_start = 0f; + + private string _record_filename = ""; + + private string _audio_text = ""; + + private uint _upload_timer = 0u; + + private uint _stop_record_timer = 0u; + + private int _stop_record_count = 0; + + private int _upload_wait_time = 0; + + private string _file_id = ""; + + private static readonly float MIN_RECORD_LENGTH = 0.3f; + + private UpLoadAudioRes lastAudoRes; + + private Dictionary _local_audio = new Dictionary(); + + public void InitApolloEngine() + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + int num = xapolloManager.InitApolloEngine(XChatDocument.m_ApolloIPtable[0], XChatDocument.m_ApolloIPtable[1], XChatDocument.m_ApolloIPtable[2], XChatDocument.m_ApolloIPtable[3], XChatDocument.m_ApolloKey, XChatDocument.m_ApolloKey.Length); + bool flag = num == 0; + if (flag) + { + this._engine_inited = true; + } + } + + public void StartRecord(VoiceUsage usage = VoiceUsage.CHAT, EndRecordCallBack callback = null) + { + bool flag = !this._engine_inited; + if (!flag) + { + XSingleton.singleton.AddLog("Start apollo record", null, null, null, null, null, XDebugColor.XDebug_None); + bool isBroadcast = DlgBase.singleton.isBroadcast; + if (isBroadcast) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_VOICE_BROAD"), "fece00"); + } + else + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + bool flag2 = specificDocument.isHosting(); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_VOICE_RADIO"), "fece00"); + } + else + { + bool is_uploading = this._is_uploading; + if (is_uploading) + { + bool flag3 = Time.realtimeSinceStartup - this._uploading_start <= 5f; + if (flag3) + { + return; + } + this._is_uploading = false; + } + XSingleton.singleton.StopAutoPlay(); + this.SetBackMusicOn(false); + this.setRadioOn(false); + DlgBase.singleton.SetVisible(true, true); + this._callback = callback; + this._usage = usage; + this._record_start = Time.realtimeSinceStartup; + this._prepare_record_time = XSingleton.singleton.SetTimer(0.15f, new XTimerMgr.ElapsedEventHandler(this.DoStartRecord), null); + } + } + } + } + + private void DoStartRecord(object obj) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + int num = xapolloManager.SetApolloMode(2); + XSingleton.singleton.AddLog("Will Do start apollo record, setmode2 res: ", num.ToString(), null, null, null, null, XDebugColor.XDebug_None); + this._record_filename = string.Format("{0:D2}{1:D2}{2:D2}.sound", DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second); + int num2 = xapolloManager.StartRecord(this._record_filename); + bool flag = num2 != 0; + if (flag) + { + xapolloManager.SetApolloMode(0); + } + else + { + this._is_recording = true; + this._prepare_record_time = 0u; + this._record_timer = XSingleton.singleton.SetTimer(10.5f, new XTimerMgr.ElapsedEventHandler(this.RecordTimeOut), null); + this._mic_timer = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.RefreshMicLevel), null); + } + } + + private void RefreshMicLevel(object obj) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + int micLevel = xapolloManager.GetMicLevel(); + DlgBase.singleton.OnSetVolume((uint)(micLevel * 7 / 65535)); + this._mic_timer = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.RefreshMicLevel), null); + } + + private void RecordTimeOut(object obj) + { + bool flag = !this._is_recording; + if (!flag) + { + this.StopRecord(false); + bool flag2 = this._callback != null; + if (flag2) + { + this._callback(); + } + } + } + + public void StopRecord(bool cancel) + { + XSingleton.singleton.AddLog("Will stop record", null, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.SetNormalHide(true); + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.KillTimer(this._mic_timer); + this._mic_timer = 0u; + XSingleton.singleton.KillTimer(this._prepare_record_time); + this._prepare_record_time = 0u; + this.SetBackMusicOn(true); + this.setRadioOn(true); + bool flag = !this._is_recording; + if (!flag) + { + this._is_recording = false; + this._record_length = Time.realtimeSinceStartup - this._record_start; + XSingleton.singleton.AddLog("Will stop record, length:", this._record_length.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = this._record_length <= XChatApolloMgr.MIN_RECORD_LENGTH; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_RECORD_TOO_SHORT"), "fece00"); + this._is_uploading = true; + this.CancelRecord(null); + } + else + { + bool flag3 = this._record_timer > 0u; + if (flag3) + { + XSingleton.singleton.KillTimer(this._record_timer); + this._record_timer = 0u; + } + bool flag4 = !cancel; + if (flag4) + { + this._stop_record_count = 0; + this._is_uploading = true; + this.StopRecordProc(null); + } + else + { + this._stop_record_count = 0; + this.CancelRecord(null); + } + } + } + } + + private void StopRecordProc(object obj) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + int num = xapolloManager.StopApolloRecord(); + XSingleton.singleton.AddLog("Will stop record", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = num != 0; + if (flag) + { + this._stop_record_count = this._stop_record_count; + bool flag2 = this._stop_record_count > 10; + if (flag2) + { + XSingleton.singleton.AddLog("Stop record failed", null, null, null, null, null, XDebugColor.XDebug_None); + this._is_uploading = false; + xapolloManager.SetApolloMode(0); + } + else + { + this._stop_record_timer = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.StopRecordProc), null); + } + } + else + { + this.UploadRecordFile(this._record_filename); + } + } + + private void CancelRecord(object obj) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + int num = xapolloManager.StopApolloRecord(); + XSingleton.singleton.AddLog("Will Cancel record", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = num != 0; + if (flag) + { + this._stop_record_count = this._stop_record_count; + bool flag2 = this._stop_record_count > 10; + if (flag2) + { + XSingleton.singleton.AddLog("Cancel record failed", null, null, null, null, null, XDebugColor.XDebug_None); + this._is_uploading = false; + } + else + { + this._stop_record_timer = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.CancelRecord), null); + } + } + else + { + this._is_uploading = false; + } + } + + private int UploadRecordFile(string filename) + { + XSingleton.singleton.AddLog("Will apollo upload", null, null, null, null, null, XDebugColor.XDebug_None); + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + bool flag = !File.Exists(Application.persistentDataPath + "/" + filename); + int result; + if (flag) + { + this._is_uploading = false; + result = -1; + } + else + { + int num = xapolloManager.UploadRecordFile(filename); + this._upload_wait_time = 0; + XSingleton.singleton.AddLog("UploadRecord file error: ", num.ToString(), null, null, null, null, XDebugColor.XDebug_None); + this.GetFileID(null); + result = 0; + } + return result; + } + + private void GetFileID(object obj) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + int apolloUploadStatus = xapolloManager.GetApolloUploadStatus(); + bool flag = apolloUploadStatus == 0; + if (flag) + { + XSingleton.singleton.AddLog("Upload success", null, null, null, null, null, XDebugColor.XDebug_None); + this._file_id = xapolloManager.GetFileID(); + bool flag2 = !string.IsNullOrEmpty(this._file_id); + if (flag2) + { + this._record_length = Time.realtimeSinceStartup - this._record_start; + this._record_length = ((this._record_length > 10f) ? 10f : this._record_length); + XSingleton.singleton.AddLog("Record StopTime: ", Time.time.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = this._record_length <= XChatApolloMgr.MIN_RECORD_LENGTH; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_RECORD_TOO_SHORT"), "fece00"); + } + else + { + this.GetAudioText(this._file_id); + } + } + else + { + XSingleton.singleton.AddLog("GetFileId failed", null, null, null, null, null, XDebugColor.XDebug_None); + xapolloManager.SetApolloMode(0); + } + } + else + { + bool flag4 = apolloUploadStatus == 11; + if (flag4) + { + XSingleton.singleton.AddLog("Upload http busy", null, null, null, null, null, XDebugColor.XDebug_None); + this._upload_wait_time++; + bool flag5 = this._upload_wait_time >= 20; + if (flag5) + { + XSingleton.singleton.AddLog("Upload http failed, times top", null, null, null, null, null, XDebugColor.XDebug_None); + this._is_uploading = false; + } + else + { + this._upload_timer = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.GetFileID), null); + } + } + else + { + this._is_uploading = false; + XSingleton.singleton.AddLog("GetFileId error", null, null, null, null, null, XDebugColor.XDebug_None); + xapolloManager.SetApolloMode(0); + } + } + } + + public void GetAudioText(string fileid) + { + RpcC2A_AudioText rpcC2A_AudioText = new RpcC2A_AudioText(); + rpcC2A_AudioText.oArg.file_id = fileid; + XSingleton.singleton.Send(rpcC2A_AudioText); + } + + public void OnGotAudioTextError(AudioTextRes res) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + bool flag = xapolloManager != null; + if (flag) + { + xapolloManager.SetApolloMode(0); + } + } + + public void OnGotAudioText(AudioTextRes res) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + this._audio_text = res.file_text; + xapolloManager.SetApolloMode(0); + this.StartUpLoadMp3(); + } + + public void StartUpLoadMp3() + { + XSingleton.singleton.AddLog("Will start upload mp3, txt:", this._audio_text, null, null, null, null, XDebugColor.XDebug_None); + RpcC2T_UpLoadAudioToGate rpcC2T_UpLoadAudioToGate = new RpcC2T_UpLoadAudioToGate(); + string path = Application.persistentDataPath + "/" + this._record_filename; + bool flag = !File.Exists(path); + if (flag) + { + this._is_uploading = false; + } + else + { + RuntimePlatform platform = Application.platform; + if ((int)platform != 8 && (int)platform != 11) + { + path = Application.persistentDataPath + "/record.sound"; + } + rpcC2T_UpLoadAudioToGate.oArg.audio = File.ReadAllBytes(path); + rpcC2T_UpLoadAudioToGate.oArg.text = Encoding.UTF8.GetBytes(this._audio_text); + rpcC2T_UpLoadAudioToGate.oArg.srctype = 1u; + XSingleton.singleton.AddLog("The audio length: ", rpcC2T_UpLoadAudioToGate.oArg.audio.Length.ToString(), null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.Send(rpcC2T_UpLoadAudioToGate); + } + } + + public void UpLoadAudioRes(UpLoadAudioRes res) + { + uint num = (uint)(this._record_length * 1000f) + 1u; + XSingleton.singleton.AddLog("Will upload res mp3, usage: ", null, null, null, null, null, XDebugColor.XDebug_None); + this._is_uploading = false; + bool flag = this._usage == VoiceUsage.CHAT; + if (flag) + { + XSingleton.singleton.LocalAudio[res.audiodownuid] = Application.persistentDataPath + "/" + this._record_filename; + this.lastAudoRes = res; + bool flag2 = DlgBase.singleton.CheckWorldSendMsg(true, null, ChatChannelType.DEFAULT); + if (flag2) + { + bool flag3 = num >= 9000u && this._audio_text.Length <= (int)(num / 2000u); + if (!flag3) + { + XSingleton.singleton.AddLog("Will Do send world chat", null, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.SendVoiceChat(this._audio_text, DlgBase.singleton.activeChannelType, res.audiodownuid, num * 1f); + } + } + } + else + { + bool flag4 = this._usage == VoiceUsage.ANSWER; + if (flag4) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + XSingleton.singleton.AddLog("Will Do send answer chat", null, null, null, null, null, XDebugColor.XDebug_None); + specificDocument.SendAnswer(this._audio_text, res.audiodownuid, num); + } + else + { + bool flag5 = this._usage == VoiceUsage.FLOWER_REPLY; + if (flag5) + { + XSingleton.singleton.LocalAudio[res.audiodownuid] = Application.persistentDataPath + "/" + this._record_filename; + this.lastAudoRes = res; + DlgBase.singleton.SendVoiceChat(this._audio_text, ChatChannelType.Friends, res.audiodownuid, num * 1f); + } + else + { + bool flag6 = this._usage == VoiceUsage.MENTORHIP; + if (flag6) + { + XSingleton.singleton.LocalAudio[res.audiodownuid] = Application.persistentDataPath + "/" + this._record_filename; + this.lastAudoRes = res; + } + else + { + bool flag7 = this._usage == VoiceUsage.GUILDCOLLECT; + if (flag7) + { + XExchangeItemDocument specificDocument2 = XDocuments.GetSpecificDocument(XExchangeItemDocument.uuID); + XSingleton.singleton.AddLog("Will Do send voice chat in guild collect", null, null, null, null, null, XDebugColor.XDebug_None); + specificDocument2.SendChat(this._audio_text, res.audiodownuid, num); + } + } + } + } + } + } + + private void DoSendVoiceMsg(string fileid) + { + uint num = (uint)(this._record_length * 1000f) + 1u; + XSingleton.singleton.AddLog("Will DoSendVoiceMsg ", null, null, null, null, null, XDebugColor.XDebug_None); + } + + private void setRadioOn(bool on) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.MuteSounds(!on); + } + } + + public void SetBackMusicOn(bool on) + { + XAudioOperationArgs @event = XEventPool.GetEvent(); + @event.IsAudioOn = on; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + public void StartPlayVoice(string filepath) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + bool flag = !File.Exists(filepath); + if (flag) + { + XSingleton.singleton.AddLog("Start Play Voice, File not exist: ", filepath, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XSingleton.singleton.AddLog("Will play file: ", filepath, null, null, null, null, XDebugColor.XDebug_None); + RuntimePlatform platform = Application.platform; + if ((int)platform != 8 && (int)platform != 11) + { + bool flag2 = File.Exists(filepath); + if (flag2) + { + xapolloManager.StartPlayVoice(filepath); + } + else + { + xapolloManager.StartPlayVoice(Application.persistentDataPath + "/record.sound"); + } + } + else + { + xapolloManager.StartPlayVoice(filepath); + } + } + } + + public void StopPlayVoice() + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + xapolloManager.StopPlayVoice(); + } + + public void ResendLastWorldChat() + { + uint num = (this._record_length >= 1f) ? ((uint)this._record_length) : 1u; + bool flag = this.lastAudoRes != null; + if (flag) + { + DlgBase.singleton.SendVoiceChat(this._audio_text, DlgBase.singleton.activeChannelType, this.lastAudoRes.audiodownuid, num * 1f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatApolloMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XChatApolloMgr.cs.meta new file mode 100644 index 00000000..95439d4c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatApolloMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7befeb7b79998c64fb4f43db73bdcd4e +timeCreated: 1611403995 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs new file mode 100644 index 00000000..ccf17122 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs @@ -0,0 +1,182 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatBehaviour : DlgBehaviourBase + { + public IXUISprite m_sprTq; + + public IXUILabel m_lblPriviledge; + + public IXUIButton m_ChangeToVoice; + + public IXUILabel m_ChatTextCost; + + public IXUISprite m_TextBoard; + + public IXUISprite m_LimitBoard; + + public IXUIButton m_DoSendChat; + + public IXUILabel m_ChatText; + + public IXUIInput m_ChatInput; + + public IXUILabelSymbol m_ChatSymbol; + + public IXUIInput m_Input; + + public IXUIButton m_Close; + + public IXUIButton m_GetFlowerBtn; + + public IXUILabel m_GetFlowerLeftTime; + + public IXUILabel m_FlowerOwnCount; + + public GameObject m_Flower; + + public GameObject m_FlowerEff; + + public GameObject m_SpeakEff; + + public GameObject m_objFriendBar; + + public GameObject m_objGroupBar; + + public IXUITweenTool m_FlowerTween; + + public IXUILabel m_lblWorldTimes; + + public IXUITweenTool m_worldTween; + + public IXUIButton m_btnAdd; + + public IXUISprite m_sprFriendClear; + + public IXUISprite m_sprFriendAdd; + + public IXUISprite m_sprFriendBack; + + public IXUISprite m_sprFriendChat; + + public IXUILabel m_lblFriendTip; + + public IXUISprite m_sprGroupBind; + + public IXUISprite m_sprGroupQuit; + + public IXUILabel m_lblGroupChat; + + public IXUISprite m_sprGroupClear; + + public IXUISprite m_sprGroupBack; + + public IXUISprite m_sprGroupCreate; + + public IXUISprite m_sprMember; + + public IXUISprite m_sprList; + + public IXUISprite m_sprMore; + + public Transform m_tranOffset; + + public IXUIPanel m_panelRoot; + + public IXUIPanel m_panelText; + + public IXUIPanel m_panelSubMenu; + + public IXUISprite m_sprSet; + + public IXUISprite m_sprMail; + + public IXUISprite m_sprMailRedpoint; + + public IXUISprite m_sprXinyue; + + public IXUISprite m_sprXinyueRed; + + public IXUISprite m_sprFriend; + + public IXUICheckBox m_chxAutoVoice; + + public IXUILabel m_lblAutoVoice; + + public GameObject m_btns; + + public ILoopScrollView m_loopView; + + public ILoopScrollView m_friendView; + + public ILoopScrollView m_groupView; + + public ILoopScrollView m_systemView; + + private void Awake() + { + this.m_sprTq = (base.transform.Find("Bg/ChatTopText/world_times/tq").GetComponent("XUISprite") as IXUISprite); + this.m_lblPriviledge = (this.m_sprTq.gameObject.transform.Find("Txt").GetComponent("XUILabel") as IXUILabel); + this.m_ChangeToVoice = (base.transform.Find("Bg/ChatTopText/speak").GetComponent("XUIButton") as IXUIButton); + this.m_SpeakEff = base.transform.Find("Bg/ChatTopText/speak/Effect").gameObject; + this.m_ChatTextCost = (base.transform.Find("Bg/ChatTopText/speak/cost").GetComponent("XUILabel") as IXUILabel); + this.m_TextBoard = (base.transform.Find("Bg/ChatTopText").GetComponent("XUISprite") as IXUISprite); + this.m_LimitBoard = (base.transform.Find("Bg/LvLimit").GetComponent("XUISprite") as IXUISprite); + this.m_DoSendChat = (base.transform.Find("Bg/ChatTopText/sendchat").GetComponent("XUIButton") as IXUIButton); + this.m_ChatText = (base.transform.Find("Bg/ChatTopText/textinput/chattext").GetComponent("XUILabel") as IXUILabel); + this.m_ChatInput = (base.transform.Find("Bg/ChatTopText/textinput").GetComponent("XUIInput") as IXUIInput); + this.m_ChatSymbol = (base.transform.Find("Bg/ChatTopText/textinput/chattext").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Input = (base.transform.Find("Bg/ChatTopText/textinput").GetComponent("XUIInput") as IXUIInput); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Flower = base.transform.Find("Bg/ChatTopText/getFlower").gameObject; + this.m_GetFlowerBtn = (base.transform.Find("Bg/ChatTopText/getFlower/flower").GetComponent("XUIButton") as IXUIButton); + this.m_GetFlowerLeftTime = (base.transform.Find("Bg/ChatTopText/getFlower/leftTime").GetComponent("XUILabel") as IXUILabel); + this.m_GetFlowerLeftTime.SetText(""); + this.m_FlowerOwnCount = (base.transform.Find("Bg/ChatTopText/getFlower/label").GetComponent("XUILabel") as IXUILabel); + this.m_FlowerOwnCount.SetText("0"); + this.m_FlowerEff = base.transform.Find("Bg/ChatTopText/getFlower/effect").gameObject; + this.m_FlowerTween = (base.transform.Find("Bg/ChatTopText/getFlower/flower").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_lblWorldTimes = (base.transform.Find("Bg/ChatTopText/world_times").GetComponent("XUILabel") as IXUILabel); + this.m_worldTween = (base.transform.Find("Bg/ChatTopText/world_times").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_btnAdd = (base.transform.Find("Bg/ChatTopText/addBtn").GetComponent("XUIButton") as IXUIButton); + this.m_objFriendBar = base.transform.Find("Bg/friendToolBar").gameObject; + this.m_objGroupBar = base.transform.Find("Bg/groupChatBar").gameObject; + this.m_sprFriendClear = (base.transform.Find("Bg/friendToolBar/BtnClear").GetComponent("XUISprite") as IXUISprite); + this.m_sprFriendAdd = (base.transform.Find("Bg/friendToolBar/BtnAdd").GetComponent("XUISprite") as IXUISprite); + this.m_sprFriendBack = (base.transform.Find("Bg/friendToolBar/BtnBack").GetComponent("XUISprite") as IXUISprite); + this.m_sprFriendChat = (base.transform.Find("Bg/friendToolBar/BtnChat").GetComponent("XUISprite") as IXUISprite); + this.m_lblFriendTip = (base.transform.Find("Bg/friendToolBar/Chatting").GetComponent("XUILabel") as IXUILabel); + this.m_sprGroupBack = (this.m_objGroupBar.transform.Find("BtnBack").GetComponent("XUISprite") as IXUISprite); + this.m_sprGroupQuit = (this.m_objGroupBar.transform.Find("Submenu/BtnQuit").GetComponent("XUISprite") as IXUISprite); + this.m_sprGroupClear = (this.m_objGroupBar.transform.Find("BtnClear").GetComponent("XUISprite") as IXUISprite); + this.m_sprMember = (this.m_objGroupBar.transform.Find("Submenu/BtnMember").GetComponent("XUISprite") as IXUISprite); + this.m_sprList = (this.m_objGroupBar.transform.Find("Submenu/BtnList").GetComponent("XUISprite") as IXUISprite); + this.m_panelSubMenu = (this.m_objGroupBar.transform.Find("Submenu").GetComponent("XUIPanel") as IXUIPanel); + this.m_sprMore = (this.m_objGroupBar.transform.Find("BtnMore").GetComponent("XUISprite") as IXUISprite); + this.m_sprGroupBind = (this.m_objGroupBar.transform.Find("BtnBind").GetComponent("XUISprite") as IXUISprite); + this.m_sprGroupCreate = (this.m_objGroupBar.transform.Find("BtnCreate").GetComponent("XUISprite") as IXUISprite); + this.m_lblGroupChat = (this.m_objGroupBar.transform.Find("Chatting").GetComponent("XUILabel") as IXUILabel); + this.m_tranOffset = base.transform.Find("Bg/loopoffset"); + this.m_panelRoot = (base.GetComponent("XUIPanel") as IXUIPanel); + this.m_panelText = (this.m_TextBoard.gameObject.GetComponent("XUIPanel") as IXUIPanel); + this.m_loopView = (base.transform.Find("Bg/loopoffset/loopScroll").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_friendView = (base.transform.Find("Bg/friendsScroll").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_groupView = (base.transform.Find("Bg/groupsScroll").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_systemView = (base.transform.Find("Bg/systemScroll").GetComponent("LoopScrollView") as ILoopScrollView); + this.m_sprSet = (base.transform.Find("Bg/btns/Setting").GetComponent("XUISprite") as IXUISprite); + this.m_sprMail = (base.transform.Find("Bg/btns/Mail").GetComponent("XUISprite") as IXUISprite); + this.m_sprMailRedpoint = (base.transform.Find("Bg/btns/Mail/redpoint").GetComponent("XUISprite") as IXUISprite); + this.m_sprXinyue = (base.transform.Find("Bg/btns/Xinyue").GetComponent("XUISprite") as IXUISprite); + this.m_sprXinyueRed = (this.m_sprXinyue.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite); + this.m_sprFriend = (base.transform.Find("Bg/btns/Friend").GetComponent("XUISprite") as IXUISprite); + this.m_chxAutoVoice = (base.transform.Find("Bg/btns/AutoVoice/CheckBox").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_lblAutoVoice = (base.transform.Find("Bg/btns/AutoVoice/Text").GetComponent("XUILabel") as IXUILabel); + this.m_btns = base.transform.Find("Bg/btns").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs.meta new file mode 100644 index 00000000..4bc5ef56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fb53c15ecaaa6f34ba1befab9ad5094f +timeCreated: 1611404930 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatDocument.cs b/Client/Assets/Scripts/XMainClient/XChatDocument.cs new file mode 100644 index 00000000..48d2bb02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatDocument.cs @@ -0,0 +1,1462 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatDocument : XDocComponent + { + public override uint ID + { + get + { + return XChatDocument.uuID; + } + } + + public XChatView ChatView + { + get + { + return DlgBase.singleton; + } + set + { + this._XChatView = value; + } + } + + public XChatSmallView ChatSmallView + { + get + { + return this._XChatSmallView; + } + set + { + this._XChatSmallView = value; + } + } + + public XChatSettingView ChatSettingView + { + get + { + return this._XChatSettingView; + } + set + { + this._XChatSettingView = value; + } + } + + public XChatMaqueeView ChatMaqueeView + { + get + { + return this._XChatMaqueeView; + } + set + { + this._XChatMaqueeView = value; + } + } + + public bool onlyDisplayTeamChannel + { + get + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = specificDocument != null; + return !flag || specificDocument.GetValue(XOptionsDefine.OD_Shield_NoTeam_Chat) != 0; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XChatDocument"); + + private XChatView _XChatView = null; + + private XChatSmallView _XChatSmallView = null; + + private XChatSettingView _XChatSettingView = null; + + private XChatMaqueeView _XChatMaqueeView = null; + + private DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)); + + public List ChatFriendList = new List(); + + //confirm + private static Dictionary> m_ChatDic = new Dictionary>(); + + private const int CHAT_MEMORY_COUNT = 200; + + //confirm + private static List m_ChatSmallList = new List(); + + //confirm + private static List m_ProcessListSmall = new List(); + + //confirm + public static List offlineProcessList = new List(); + + public List recentSendmsg = new List(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static byte[] m_ApolloKey = new byte[1024]; + + public static int[] m_ApolloIPtable = new int[4]; + + public static bool m_ApolloInited = false; + + public static string m_ClientIP = "127.0.0.1"; + + public static int CLEAR_ENTER_AUDIO_COUNT = 5; + + public static bool is_delete_audio = true; + + public static bool m_AnswerUseApollo = true; + + public static bool UseApollo = true; + + public int getFlowerLeftTime; + + public bool canGetFlower; + + private string color_r1; + + private string color_r2; + + private string color_g; + + private string color_n; + + private string color_dg; + + private static ChatTable _chatTable = new ChatTable(); + + private static ChatOpen _chatOpenTabel = new ChatOpen(); + + public static ChatApollo _chatApolloTable = new ChatApollo(); + + private static bool[] s_commonIcons = new bool[15]; + + private bool firstIn = true; + + private const int MAX_RECNET_COUNT = 10; + + private const int MAX_OFFLINE_COUNT = 10; + + private Dictionary openTable = new Dictionary(); + + private Dictionary sOpenTbale = new Dictionary(); + + private XGuildDocument guildDoc; + + private XTeamDocument teamDoc; + + public static void Execute(OnLoadedCallback callback = null) + { + XChatDocument.AsyncLoader.AddTask("Table/Chat", XChatDocument._chatTable, false); + XChatDocument.AsyncLoader.AddTask("Table/ChatOpen", XChatDocument._chatOpenTabel, false); + XChatDocument.AsyncLoader.AddTask("Table/ChatApollo", XChatDocument._chatApolloTable, false); + XChatDocument.AsyncLoader.Execute(callback); + } + + public ChatTable.RowData GetRawData(ChatChannelType type) + { + int num = XFastEnumIntEqualityComparer.ToInt(type); + for (int i = 0; i < XChatDocument._chatTable.Table.Length; i++) + { + bool flag = (ulong)XChatDocument._chatTable.Table[i].id == (ulong)((long)num); + if (flag) + { + return XChatDocument._chatTable.Table[i]; + } + } + return XChatDocument._chatTable.Table[0]; + } + + public ChatApollo.RowData GetApollo(int speak, int music, int click) + { + int num = 100 * speak + 10 * music + click; + for (int i = 0; i < XChatDocument._chatApolloTable.Table.Length; i++) + { + ChatApollo.RowData rowData = XChatDocument._chatApolloTable.Table[i]; + int num2 = 100 * rowData.speak + 10 * rowData.music + rowData.click; + bool flag = num2 == num; + if (flag) + { + return rowData; + } + } + return null; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + DlgBase.singleton.cacheShow = false; + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + XSingleton.singleton.EnableAutoPlay(true); + } + bool flag2 = this.recentSendmsg.Count <= 0; + if (flag2) + { + this.recentSendmsg = XSingleton.singleton.GetStringList("ChatArray"); + } + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + bool flag4 = !XChatDocument.m_ApolloInited; + if (flag4) + { + RpcC2G_QueryClientIp rpc = new RpcC2G_QueryClientIp(); + XSingleton.singleton.Send(rpc); + } + DlgBase.singleton.CheckShow(); + XChatDocument.m_AnswerUseApollo = (int.Parse(XSingleton.singleton.GetValue("UseApollo")) == 1); + DlgBase.singleton.SetMaqueeSwitch(true); + } + } + + public override void OnGamePause(bool pause) + { + base.OnGamePause(pause); + DlgBase.singleton.OnFouceGame(pause); + bool flag = !pause; + if (flag) + { + DlgBase.singleton.ResumeReplay(); + } + DlgBase.singleton.OnScreenLock(pause); + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + XSingleton.singleton.OnCloseWebView(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this.ChatMaqueeView != null; + if (flag) + { + this.ChatMaqueeView.UpdateMaquee(fDeltaT); + } + } + + public override void Update(float fDeltaT) + { + bool flag = XChatDocument.m_ProcessListSmall.Count > 0; + if (flag) + { + for (int i = 0; i < XChatDocument.m_ProcessListSmall.Count; i++) + { + this.AddSmallChatInfo(XChatDocument.m_ProcessListSmall[i]); + } + DlgBase.singleton.OnReceieveChatInfos(XChatDocument.m_ProcessListSmall); + XChatDocument.m_ProcessListSmall.Clear(); + } + } + + private void HanderSereverChatinfo(KKSG.ChatInfo info) + { + bool flag = info == null; + if (!flag) + { + bool flag2 = info.source != null; + if (flag2) + { + bool flag3 = !DlgBase.singleton.IsBlock(info.source.roleid); + if (flag3) + { + this.HandlerReceiveChatInfo(info); + } + } + else + { + bool flag4 = info != null && XSingleton.singleton.XPlayerData != null && info.level <= XSingleton.singleton.XPlayerData.Level; + if (flag4) + { + this.HandlerReceiveChatInfo(info); + } + } + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + int @int = XSingleton.singleton.GetInt("BroadcastOpen"); + PlayerPrefs.SetInt("BroadcastOpen", @int); + XChatDocument.is_delete_audio = (int.Parse(XSingleton.singleton.GetValue("IsDeleteAudio")) == 1); + this.color_r1 = XSingleton.singleton.GetValue("Chat_R1"); + this.color_r2 = XSingleton.singleton.GetValue("Chat_R2"); + this.color_g = XSingleton.singleton.GetValue("Chat_G"); + this.color_n = XSingleton.singleton.GetValue("Chat_N"); + this.color_dg = XSingleton.singleton.GetValue("Chat_DG"); + } + + public override void OnDetachFromHost() + { + this.OnClearAllData(); + this.firstIn = true; + DlgBase.singleton.StopBroad(); + DlgBase.singleton.OnStopClick(null); + } + + public void SendOfflineMsg() + { + bool flag = this.firstIn; + if (flag) + { + this.ClearAllData(); + PtcC2M_LoadOfflineChatNtf ptcC2M_LoadOfflineChatNtf = new PtcC2M_LoadOfflineChatNtf(); + ptcC2M_LoadOfflineChatNtf.Data.roleID = XSingleton.singleton.XPlayerData.RoleID; + XSingleton.singleton.Send(ptcC2M_LoadOfflineChatNtf); + this.firstIn = false; + } + } + + public void ClearRoleMsg(ulong roleid) + { + List list; + XChatDocument.m_ChatDic.TryGetValue(ChatChannelType.World, out list); + List list2; + XChatDocument.m_ChatDic.TryGetValue(ChatChannelType.Guild, out list2); + List list3; + XChatDocument.m_ChatDic.TryGetValue(ChatChannelType.Team, out list3); + List list4; + XChatDocument.m_ChatDic.TryGetValue(ChatChannelType.Spectate, out list4); + List list5; + XChatDocument.m_ChatDic.TryGetValue(ChatChannelType.Friends, out list5); + bool flag = list != null; + if (flag) + { + this.RemveRoleMsg(roleid, list); + } + bool flag2 = list2 != null; + if (flag2) + { + this.RemveRoleMsg(roleid, list2); + } + bool flag3 = list3 != null; + if (flag3) + { + this.RemveRoleMsg(roleid, list3); + } + bool flag4 = list4 != null; + if (flag4) + { + this.RemveRoleMsg(roleid, list4); + } + bool flag5 = list5 != null; + if (flag5) + { + this.RemveRoleMsg(roleid, list5); + } + bool flag6 = XChatDocument.offlineProcessList != null; + if (flag6) + { + this.RemveRoleMsg(roleid, XChatDocument.offlineProcessList); + } + bool flag7 = XChatDocument.m_ChatSmallList != null; + if (flag7) + { + this.RemveRoleMsg(roleid, XChatDocument.m_ChatSmallList); + } + bool flag8 = XChatDocument.m_ProcessListSmall != null; + if (flag8) + { + this.RemveRoleMsg(roleid, XChatDocument.m_ProcessListSmall); + } + this.ChatView.RefreshLoopScroll(this.ChatView.activeChannelType); + bool flag9 = this.ChatSmallView.IsVisible(); + if (flag9) + { + this.ChatSmallView.ShowCacheMsg(); + } + } + + private void RemveRoleMsg(ulong roleid, List list) + { + bool flag = list != null; + if (flag) + { + for (int i = list.Count - 1; i >= 0; i--) + { + bool flag2 = list[i].mSenderId == roleid; + if (flag2) + { + list.RemoveAt(i); + } + } + } + } + + public void ReceiveOfflineMsg(PtcM2C_MCChatOffLineNotify roPtc) + { + DlgBase.singleton.CacheMsg(); + List list = new List(); + bool flag = !DlgBase.singleton.IsInited; + if (flag) + { + for (int i = 0; i < roPtc.Data.rolechat.Count; i++) + { + list.Add(roPtc.Data.rolechat[i]); + } + for (int j = 0; j < roPtc.Data.guildchat.Count; j++) + { + list.Add(roPtc.Data.guildchat[j]); + } + for (int k = 0; k < roPtc.Data.teamchat.Count; k++) + { + list.Add(roPtc.Data.teamchat[k]); + } + for (int l = 0; l < roPtc.Data.worldchat.Count; l++) + { + list.Add(roPtc.Data.worldchat[l]); + } + for (int m = 0; m < roPtc.Data.partnerchat.Count; m++) + { + list.Add(roPtc.Data.partnerchat[m]); + } + for (int n = 0; n < roPtc.Data.groupchat.Count; n++) + { + list.Add(roPtc.Data.groupchat[n]); + } + list.Sort(new Comparison(this.SortOfflineData)); + for (int num = 0; num < list.Count; num++) + { + this.HanderSereverChatinfo(list[num]); + } + this.HandlerOfflineFriend(roPtc.Data.privatechatlist); + } + } + + private int SortOfflineData(KKSG.ChatInfo x, KKSG.ChatInfo y) + { + return x.time.CompareTo(y.time); + } + + public void OnReceiveChatInfo(KKSG.ChatInfo info) + { + this.HanderSereverChatinfo(info); + } + + private ChatFriendData Chatinfo2FriendData(ChatSource friend, uint time) + { + return new ChatFriendData + { + isfriend = DlgBase.singleton.IsMyFriend(friend.roleid), + name = friend.name, + powerpoint = friend.powerpoint, + profession = friend.profession, + viplevel = friend.viplevel, + roleid = friend.roleid, + setid = ((friend.pre != null) ? friend.pre.setid : new List()), + msgtime = this.startTime.AddSeconds(time) + }; + } + + private void HandlerOfflineFriend(PrivateChatList friends) + { + bool flag = friends != null && friends.rolelist != null; + if (flag) + { + for (int i = 0; i < friends.rolelist.Count; i++) + { + ChatFriendData chatFriendData = new ChatFriendData(); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag2 = friends.rolelist[i] != null && xplayerData != null && friends.rolelist[i].roleid != xplayerData.RoleID; + if (flag2) + { + chatFriendData = this.Chatinfo2FriendData(friends.rolelist[i], friends.lastChatTime[i]); + chatFriendData.hasOfflineRead = friends.hasOfflineChat[i]; + this.ChatFriendList.Add(chatFriendData); + } + } + } + this.RemoveBlockFriends(); + } + + public void SetFriendRelation(ulong uid, bool isfriend) + { + for (int i = 0; i < this.ChatFriendList.Count; i++) + { + bool flag = this.ChatFriendList[i].roleid == uid; + if (flag) + { + this.ChatFriendList[i].isfriend = isfriend; + break; + } + } + } + + public void OnReceiveChatSmallInfo(XMainClient.ChatInfo info) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.World && this.onlyDisplayTeamChannel && info.mChannelId != ChatChannelType.Team && info.mChannelId != ChatChannelType.Curr && info.mChannelId != ChatChannelType.Battle; + if (!flag) + { + XChatDocument.m_ProcessListSmall.Add(info); + } + } + + private void CacheRecentSendmsg(string str) + { + bool flag = !this.recentSendmsg.Contains(str); + if (flag) + { + bool flag2 = this.recentSendmsg.Count > 10; + if (flag2) + { + this.recentSendmsg.RemoveAt(0); + } + this.recentSendmsg.Add(str); + } + } + + private void CacheRecentChatinfo(XMainClient.ChatInfo info) + { + bool flag = XChatDocument.offlineProcessList.Count > 10; + if (flag) + { + XChatDocument.offlineProcessList.RemoveRange(0, XChatDocument.offlineProcessList.Count - 10); + } + XChatDocument.offlineProcessList.Add(info); + } + + public bool OnJoinTeam(XEventArgs args) + { + return true; + } + + public bool OnLeaveTeam(XEventArgs args) + { + return true; + } + + public ChatFriendData FindFriendData(ulong uid) + { + for (int i = 0; i < this.ChatFriendList.Count; i++) + { + bool flag = this.ChatFriendList[i].roleid == uid; + if (flag) + { + return this.ChatFriendList[i]; + } + } + return null; + } + + public void RemoveBlockFriends() + { + for (int i = this.ChatFriendList.Count - 1; i >= 0; i--) + { + ChatFriendData chatFriendData = this.ChatFriendList[i]; + bool flag = DlgBase.singleton.IsBlock(chatFriendData.roleid); + if (flag) + { + this.ChatFriendList.RemoveAt(i); + } + } + } + + public void RemoveFriend(ulong uid) + { + this.SetFriendRelation(uid, false); + } + + public void RemoveStranger(ulong uid) + { + this.SetFriendRelation(uid, true); + } + + public void AddStranger(ulong uid) + { + this.SetFriendRelation(uid, false); + } + + public List GetChatInfoList(ChatChannelType channelType) + { + List result = null; + XChatDocument.m_ChatDic.TryGetValue(channelType, out result); + return result; + } + + public DateTime GetFriendChatInfoTime(ulong uid) + { + DateTime dateTime = DateTime.Today; + List friendChatInfoList = this.GetFriendChatInfoList(uid); + for (int i = 0; i < friendChatInfoList.Count; i++) + { + bool flag = friendChatInfoList[i].mTime.CompareTo(dateTime) > 0; + if (flag) + { + dateTime = friendChatInfoList[i].mTime; + } + } + return dateTime; + } + + public List GetFriendChatInfoList(ulong uid) + { + List list = null; + List list2 = new List(); + XChatDocument.m_ChatDic.TryGetValue(ChatChannelType.Friends, out list); + bool flag = list != null; + if (flag) + { + for (int i = 0; i < list.Count; i++) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag2 = xplayerData != null; + if (flag2) + { + bool flag3 = list[i].mSenderId == xplayerData.RoleID && list[i].mReceiverId == uid; + bool flag4 = list[i].mReceiverId == xplayerData.RoleID && list[i].mSenderId == uid; + bool flag5 = flag4 || flag3; + if (flag5) + { + list2.Add(list[i]); + } + } + } + } + return list2; + } + + public List GetGroupChatInfoList(ulong groupid) + { + List list = null; + List list2 = new List(); + XChatDocument.m_ChatDic.TryGetValue(ChatChannelType.Group, out list); + bool flag = list != null; + if (flag) + { + int i = 0; + int count = list.Count; + while (i < count) + { + bool flag2 = list[i].group != null && list[i].group.groupchatID == groupid; + if (flag2) + { + list2.Add(list[i]); + } + i++; + } + } + return list2; + } + + public XMainClient.ChatInfo GetChatInfoById(int id) + { + List list = null; + for (ChatChannelType chatChannelType = ChatChannelType.World; chatChannelType <= ChatChannelType.ChannelNum; chatChannelType++) + { + XChatDocument.m_ChatDic.TryGetValue(chatChannelType, out list); + bool flag = list != null; + if (flag) + { + for (int i = 0; i < list.Count; i++) + { + bool flag2 = list[i].id == id; + if (flag2) + { + return list[i]; + } + } + } + } + return null; + } + + private string ReplaceRoleName(string name) + { + bool flag = name.Length > 3; + if (flag) + { + name = name.Remove(name.Length - 2, 2); + name = name.Insert(name.Length, "**"); + } + else + { + bool flag2 = name.Length == 3; + if (flag2) + { + name = name.Remove(name.Length - 1, 1); + name = name.Insert(name.Length, "*"); + } + } + return name; + } + + public string ProcessText(KKSG.ChatInfo serverChatInfo) + { + int num = 0; + int num2 = XFastEnumIntEqualityComparer.ToInt(ChatChannelType.System); + int num3 = XFastEnumIntEqualityComparer.ToInt(ChatChannelType.System); + for (int i = 0; i < serverChatInfo.param.Count; i++) + { + ChatParam chatParam = serverChatInfo.param[i]; + bool flag = chatParam == null; + if (!flag) + { + for (int j = 0; j < serverChatInfo.info.Length; j++) + { + bool flag2 = serverChatInfo.info[j] == '$' && serverChatInfo.info.Length >= j + 2; + if (flag2) + { + string text = ""; + bool flag3 = chatParam.role != null && serverChatInfo.info[j + 1] == 'R'; + if (flag3) + { + string name = chatParam.role.name; + bool flag4 = (long)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.System) == (long)((ulong)serverChatInfo.channel); + if (flag4) + { + text = name; + } + else + { + bool flag5 = chatParam.role.uniqueid == XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + text = this.color_r1 + name + "[-]"; + } + else + { + text = this.color_r2 + name + "[-]"; + } + } + num = (int)(chatParam.role.profession % 10u - 1u); + } + else + { + bool flag6 = chatParam.item != null && serverChatInfo.info[j + 1] == 'I'; + if (flag6) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)chatParam.item.item.itemID); + bool flag7 = itemConf == null; + if (flag7) + { + XSingleton.singleton.AddErrorLog("itemid: ", chatParam.item.item.itemID.ToString(), " content:", serverChatInfo.info, null, null); + } + else + { + bool flag8 = (long)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.System) == (long)((ulong)serverChatInfo.channel); + if (flag8) + { + bool flag9 = itemConf != null; + if (flag9) + { + bool flag10 = XBagDocument.GetItemConf((int)chatParam.item.item.itemID).ItemName.Length > num; + if (flag10) + { + text = chatParam.item.item.itemCount.ToString() + itemConf.NumberName + itemConf.ItemName[num]; + } + else + { + text = chatParam.item.item.itemCount.ToString() + itemConf.NumberName + itemConf.ItemName[0]; + } + } + } + else + { + int itemQuality = (int)XBagDocument.GetItemConf((int)chatParam.item.item.itemID).ItemQuality; + string itemQualityColorStr = XSingleton.singleton.GetItemQualityColorStr(itemQuality); + bool flag11 = itemConf != null; + if (flag11) + { + bool flag12 = XBagDocument.GetItemConf((int)chatParam.item.item.itemID).ItemName.Length > 1; + if (flag12) + { + text = string.Concat(new string[] + { + "[", + itemQualityColorStr, + "]", + chatParam.item.item.itemCount.ToString(), + itemConf.NumberName, + itemConf.ItemName[num], + "[-]" + }); + } + else + { + text = string.Concat(new string[] + { + "[", + itemQualityColorStr, + "]", + chatParam.item.item.itemCount.ToString(), + itemConf.NumberName, + itemConf.ItemName[0], + "[-]" + }); + } + } + } + } + } + else + { + bool flag13 = chatParam.num != null && serverChatInfo.info[j + 1] == 'N'; + if (flag13) + { + bool flag14 = (long)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.System) == (long)((ulong)serverChatInfo.channel); + if (flag14) + { + text = chatParam.num.num.ToString(); + } + else + { + text = this.color_n + chatParam.num.num.ToString() + "[-]"; + } + } + else + { + bool flag15 = chatParam.team != null && serverChatInfo.info[j + 1] == 'T'; + if (flag15) + { + text = XLabelSymbolHelper.FormatTeam(chatParam.team.teamname, (int)chatParam.team.teamid, chatParam.team.expeditionid); + } + else + { + bool flag16 = chatParam.guild != null && serverChatInfo.info[j + 1] == 'G'; + if (flag16) + { + text = this.color_g + chatParam.guild.guildname.ToString() + "[-]"; + } + else + { + bool flag17 = chatParam.link != null && serverChatInfo.info[j + 1] == 'L'; + if (flag17) + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + text = specificDocument.ParseLink(chatParam); + } + else + { + bool flag18 = chatParam.dragonguild != null && serverChatInfo.info[j + 1] == 'D'; + if (flag18) + { + text = this.color_dg + chatParam.dragonguild.dragonguildname.ToString() + "[-]"; + } + } + } + } + } + } + } + string value = serverChatInfo.info.Substring(0, j); + string value2 = serverChatInfo.info.Substring(j + 2, serverChatInfo.info.Length - (j + 2)); + text = text.Replace("$", "%^&%"); + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.Append(value); + stringBuilder.Append(text); + stringBuilder.Append(value2); + serverChatInfo.info = stringBuilder.ToString(); + break; + } + } + } + } + return serverChatInfo.info.Replace("%^&%", "$"); + } + + private ulong GetFriendID(XMainClient.ChatInfo chatInfo) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData != null && chatInfo != null; + ulong result; + if (flag) + { + result = ((chatInfo.mSenderId != xplayerData.RoleID) ? chatInfo.mSenderId : chatInfo.mReceiverId); + } + else + { + result = 0UL; + } + return result; + } + + public void RefreshSelfMemberPriviligeInfo(uint payMemberID) + { + List list = new List + { + ChatChannelType.World, + ChatChannelType.Guild, + ChatChannelType.Curr, + ChatChannelType.Team + }; + for (int i = 0; i < list.Count; i++) + { + List list2 = null; + XChatDocument.m_ChatDic.TryGetValue(list[i], out list2); + bool flag = list2 != null; + if (flag) + { + for (int j = 0; j < list2.Count; j++) + { + bool isSelfSender = list2[j].isSelfSender; + if (isSelfSender) + { + list2[j].mSenderPaymemberid = payMemberID; + } + } + this.ChatView.RefreshLoopScroll(list[i]); + } + } + } + + public List AddChatInfo(XMainClient.ChatInfo chatInfo, ChatChannelType channelId) + { + List list = null; + XChatDocument.m_ChatDic.TryGetValue(channelId, out list); + bool flag = list == null; + if (flag) + { + list = new List(); + list.Add(chatInfo); + XChatDocument.m_ChatDic.Add(channelId, list); + } + else + { + bool flag2 = list.Count > 200; + if (flag2) + { + list.RemoveAt(0); + } + list.Add(chatInfo); + } + bool flag3 = channelId == ChatChannelType.Friends; + if (flag3) + { + ulong friendID = this.GetFriendID(chatInfo); + ChatFriendData chatFriendData = this.FindFriendData(friendID); + bool flag4 = chatFriendData == null && DlgBase.singleton.IsInited; + if (flag4) + { + this.AddChatinfo2FriendList(chatInfo); + } + bool flag5 = chatFriendData != null; + if (flag5) + { + chatFriendData.msgtime = DateTime.Now; + } + list = this.GetFriendChatInfoList(this.ChatView.ChatFriendId); + } + else + { + bool flag6 = channelId == ChatChannelType.Group; + if (flag6) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.AddChat2Group(chatInfo); + } + } + return list; + } + + public void AddChatinfo2FriendList(XMainClient.ChatInfo info) + { + ChatFriendData chatFriendData = new ChatFriendData(); + chatFriendData.msgtime = info.mTime; + bool flag = !info.isSelfSender; + if (flag) + { + chatFriendData.name = info.mSenderName; + chatFriendData.roleid = info.mSenderId; + chatFriendData.powerpoint = info.mSenderPowerPoint; + chatFriendData.profession = info.mServerProfession; + chatFriendData.viplevel = info.mSenderVip; + chatFriendData.setid = ((info.payConsume != null) ? info.payConsume.setid : new List()); + bool flag2 = info.payConsume != null; + if (flag2) + { + chatFriendData.setid = info.payConsume.setid; + } + chatFriendData.isfriend = DlgBase.singleton.IsMyFriend(info.mSenderId); + } + else + { + chatFriendData.name = info.mReceiverName; + chatFriendData.roleid = info.mReceiverId; + chatFriendData.powerpoint = info.mReciverPowerPoint; + chatFriendData.profession = info.mRecieverProfession; + chatFriendData.viplevel = info.mReceiverVip; + chatFriendData.isfriend = DlgBase.singleton.IsMyFriend(info.mReceiverId); + } + bool flag3 = !this.ContainRole(chatFriendData.roleid); + if (flag3) + { + this.ChatFriendList.Add(chatFriendData); + } + } + + private bool ContainRole(ulong roleID) + { + for (int i = 0; i < this.ChatFriendList.Count; i++) + { + bool flag = this.ChatFriendList[i].roleid == roleID; + if (flag) + { + return true; + } + } + return false; + } + + private void HandlerMaqueeInfo(KKSG.ChatInfo serverChatInfo) + { + for (int i = 0; i < serverChatInfo.param.Count; i++) + { + ChatParam chatParam = serverChatInfo.param[i]; + bool flag = chatParam == null; + if (!flag) + { + for (int j = 0; j < serverChatInfo.info.Length; j++) + { + bool flag2 = serverChatInfo.info[j] == '$' && serverChatInfo.info.Length >= j + 2; + if (flag2) + { + bool flag3 = chatParam.role != null && serverChatInfo.info[j + 1] == 'R'; + if (flag3) + { + chatParam.role.name = this.ReplaceRoleName(chatParam.role.name); + } + } + } + } + } + } + + public void HandlerReceiveChatInfo(KKSG.ChatInfo serverChatInfo) + { + bool flag = serverChatInfo.info == null || serverChatInfo.info == "" || XSingleton.singleton.XPlayerData == null; + if (!flag) + { + string info = serverChatInfo.info; + bool flag2 = serverChatInfo.channel == 5u || serverChatInfo.channel == 6u; + if (flag2) + { + this.HandlerMaqueeInfo(serverChatInfo); + serverChatInfo.info = this.ProcessText(serverChatInfo); + DlgBase.singleton.ReceiveChatInfo(serverChatInfo); + serverChatInfo.channel = (uint)XFastEnumIntEqualityComparer.ToInt(ChatChannelType.System); + serverChatInfo.info = info; + } + serverChatInfo.info = this.ProcessText(serverChatInfo); + XMainClient.ChatInfo chatInfo = new XMainClient.ChatInfo(); + chatInfo.mTime = this.startTime.AddSeconds(serverChatInfo.time); + chatInfo.mAudioId = serverChatInfo.audioUid; + chatInfo.mAudioTime = serverChatInfo.audioLen; + chatInfo.voice = chatInfo.GetVoice(serverChatInfo.audioUid, serverChatInfo.audioLen); + chatInfo.mRegression = false; + chatInfo.CampDuelID = 0u; + chatInfo.isAudioPlayed = !DlgBase.singleton.IsInited; + chatInfo.isUIShowed = !DlgBase.singleton.IsInited; + bool flag3 = serverChatInfo.source != null; + if (flag3) + { + chatInfo.mSenderName = serverChatInfo.source.name.TrimEnd(new char[0]); + chatInfo.mSenderId = serverChatInfo.source.roleid; + chatInfo.mSenderVip = serverChatInfo.source.viplevel; + chatInfo.mSenderPaymemberid = serverChatInfo.source.paymemberid; + chatInfo.mServerProfession = serverChatInfo.source.profession; + chatInfo.mSenderPowerPoint = serverChatInfo.source.powerpoint; + chatInfo.mCoverDesignationID = serverChatInfo.source.coverDesignationID; + chatInfo.mSpecialDesignation = serverChatInfo.source.desname; + chatInfo.militaryRank = serverChatInfo.source.military_rank; + chatInfo.payConsume = serverChatInfo.source.pre; + chatInfo.mHeroID = serverChatInfo.source.heroid; + chatInfo.group = serverChatInfo.groupchatinfo; + chatInfo.mRegression = serverChatInfo.source.isBackFlow; + chatInfo.CampDuelID = serverChatInfo.source.campDuelID; + } + else + { + bool flag4 = serverChatInfo.channel == 7u && this.CheckTeam(); + if (flag4) + { + chatInfo.mSenderId = 0UL; + chatInfo.mSenderName = XStringDefineProxy.GetString("CHAT_TEAM_NEW"); + chatInfo.mSenderVip = 1u; + chatInfo.mSenderPaymemberid = 0u; + } + else + { + bool flag5 = serverChatInfo.channel == 2u && this.CheckGuild(); + if (flag5) + { + chatInfo.mSenderId = 0UL; + chatInfo.mSenderName = XStringDefineProxy.GetString("CHAT_GUILD_NEW"); + chatInfo.mSenderVip = 1u; + chatInfo.mSenderPaymemberid = 0u; + } + } + } + bool flag6 = serverChatInfo.destList != null && serverChatInfo.destList.Count > 0; + if (flag6) + { + chatInfo.mReceiverId = serverChatInfo.destList[0].roleid; + chatInfo.mReceiverName = serverChatInfo.destList[0].name; + chatInfo.mReceiverVip = serverChatInfo.destList[0].viplevel; + chatInfo.mRecieverProfession = serverChatInfo.destList[0].profession; + chatInfo.mReciverPowerPoint = serverChatInfo.destList[0].powerpoint; + } + else + { + bool flag7 = serverChatInfo.dest != null && serverChatInfo.dest.roleid.Count > 0; + if (flag7) + { + chatInfo.mReceiverId = serverChatInfo.dest.roleid[0]; + } + } + chatInfo.mContent = serverChatInfo.info; + chatInfo.mChannelId = (ChatChannelType)serverChatInfo.channel; + bool flag8 = chatInfo.mSenderId == XSingleton.singleton.XPlayerData.RoleID; + if (flag8) + { + chatInfo.isSelfSender = true; + chatInfo.mChatType = (chatInfo.isAudioChat ? ChatType.SelfVoice : ChatType.SelfText); + } + else + { + chatInfo.isSelfSender = false; + chatInfo.mChatType = (chatInfo.isAudioChat ? ChatType.OtherVoice : ChatType.OtherText); + } + this.ReceiveChatInfo(chatInfo); + } + } + + public void ReceiveChatInfo(XMainClient.ChatInfo chatInfo) + { + bool flag = chatInfo.isAudioChat && !chatInfo.isAudioPlayed; + if (flag) + { + bool isSelfSender = chatInfo.isSelfSender; + if (isSelfSender) + { + XSingleton.singleton.StopAutoPlay(); + XSingleton.singleton.InsertAutoPlayList(chatInfo, true); + return; + } + bool isAutoPlayEnable = XSingleton.singleton.IsAutoPlayEnable; + if (isAutoPlayEnable) + { + bool flag2 = XSingleton.singleton.AddAutoPlayList(chatInfo); + bool flag3 = !flag2; + if (!flag3) + { + return; + } + chatInfo.isAudioPlayed = true; + } + chatInfo.isAudioPlayed = true; + } + bool isInited = DlgBase.singleton.IsInited; + if (isInited) + { + this.OnReceiveChatSmallInfo(chatInfo); + bool flag4 = chatInfo.isSelfSender && !chatInfo.isAudioChat && !chatInfo.mContent.Contains("tm=") && !chatInfo.mContent.Contains("gd=") && !chatInfo.mContent.Contains("ui=") && !chatInfo.mContent.Contains("sp="); + if (flag4) + { + this.CacheRecentSendmsg(chatInfo.mContent); + } + XEntity entity = XSingleton.singleton.GetEntity(chatInfo.mSenderId); + bool flag5 = entity != null; + if (flag5) + { + XCharacterShowChatComponent xcharacterShowChatComponent = entity.GetXComponent(XCharacterShowChatComponent.uuID) as XCharacterShowChatComponent; + bool flag6 = xcharacterShowChatComponent != null; + if (flag6) + { + xcharacterShowChatComponent.AttachChatBubble(); + } + bool flag7 = xcharacterShowChatComponent != null; + if (flag7) + { + xcharacterShowChatComponent.DealWithChat(chatInfo.mContent); + } + } + DlgBase.singleton.RealPush(chatInfo); + } + this.CacheRecentChatinfo(chatInfo); + List list = this.AddChatInfo(chatInfo, chatInfo.mChannelId); + bool flag8 = chatInfo.mChannelId == ChatChannelType.Friends; + if (flag8) + { + DlgBase.singleton.ShowTabFriendRed(); + } + bool flag9 = !this.ChatView.IsInited || !this.ChatView.IsVisible() || chatInfo.mChannelId != this.ChatView.activeChannelType; + if (!flag9) + { + bool flag10 = chatInfo.mContent.IndexOf("\\n") != -1; + if (flag10) + { + chatInfo.mContent = chatInfo.mContent.Replace("\\n", "/n"); + } + this.ChatView.RefreshLoopScroll(this.ChatView.activeChannelType); + } + } + + public void ClearFriendMsg(ulong roleid) + { + bool flag = roleid == 0UL; + if (flag) + { + this.ChatFriendList.Clear(); + } + else + { + for (int i = 0; i < this.ChatFriendList.Count; i++) + { + bool flag2 = this.ChatFriendList[i].roleid == roleid; + if (flag2) + { + this.ChatFriendList.RemoveAt(i); + } + } + } + } + + public List GetSmallChatList() + { + return XChatDocument.m_ChatSmallList; + } + + public void RestrainSmallChatInfoNum() + { + bool flag = (long)XChatDocument.m_ChatSmallList.Count > (long)((ulong)XChatSmallBehaviour.m_MaxShowMsg); + if (flag) + { + XChatDocument.m_ChatSmallList.RemoveRange(0, XChatDocument.m_ChatSmallList.Count - (int)XChatSmallBehaviour.m_MaxShowMsg); + } + } + + //confirm + public void AddSmallChatInfo(XMainClient.ChatInfo info) + { + XChatDocument.m_ChatSmallList.Add(info); + } + + public void OnClearAllData() + { + this.ClearAllData(); + XSingleton.singleton.EnableAutoPlay(false); + XSingleton.singleton.StopAutoPlay(); + XSingleton.singleton.ClearPlayList(); + DlgBase.singleton.IsInited = false; + DlgBase.singleton.ChatFriendId = 0UL; + } + + private void ClearAllData() + { + List list = new List(XChatDocument.m_ChatDic.Keys); + for (int i = 0; i < list.Count; i++) + { + List list2 = XChatDocument.m_ChatDic[list[i]]; + bool flag = list2 != null; + if (flag) + { + list2.Clear(); + } + } + XChatDocument.m_ChatSmallList.Clear(); + XChatDocument.offlineProcessList.Clear(); + XChatDocument.m_ChatDic.Clear(); + XChatDocument.m_ProcessListSmall.Clear(); + } + + private ChatOpen.RowData ChatOpenRow(int type) + { + bool flag = this.openTable.Count <= 0; + if (flag) + { + this.sOpenTbale.Clear(); + for (int i = 0; i < XChatDocument._chatOpenTabel.Table.Length; i++) + { + bool flag2 = XChatDocument._chatOpenTabel.Table[i].sceneid == 0u; + if (flag2) + { + this.openTable.Add((int)XChatDocument._chatOpenTabel.Table[i].id, XChatDocument._chatOpenTabel.Table[i]); + } + else + { + bool flag3 = !this.sOpenTbale.ContainsKey(XChatDocument._chatOpenTabel.Table[i].sceneid); + if (flag3) + { + this.sOpenTbale.Add(XChatDocument._chatOpenTabel.Table[i].sceneid, XChatDocument._chatOpenTabel.Table[i]); + } + } + } + } + uint sceneID = XSingleton.singleton.SceneID; + bool flag4 = type < 100 && this.sOpenTbale.ContainsKey(sceneID); + ChatOpen.RowData result; + if (flag4) + { + result = this.sOpenTbale[sceneID]; + } + else + { + bool flag5 = this.openTable.ContainsKey(type); + if (flag5) + { + result = this.openTable[type]; + } + else + { + XSingleton.singleton.AddErrorLog("找胡博聃,配chatopen表! new scenetype:", type.ToString(), null, null, null, null); + result = this.openTable[1]; + } + } + return result; + } + + public List SortCommonIcons(int type) + { + List list = new List(this.ChatOpenRow(type).opens); + bool flag = this.CheckGuild(); + bool flag2 = this.CheckTeam(); + bool flag3 = this.CheckLevelLimit(ChatChannelType.World); + bool flag4 = list.Contains(1) && !flag3; + if (flag4) + { + list.Remove(1); + } + bool flag5 = list.Contains(2) && !flag; + if (flag5) + { + list.Remove(2); + } + bool flag6 = list.Contains(7) && !flag2; + if (flag6) + { + list.Remove(7); + } + return list; + } + + public ChatOpen.RowData GetYuyinRaw(int type) + { + return this.ChatOpenRow(type); + } + + public ChatOpen.RowData GetBattleRaw() + { + return this.GetYuyinRaw((int)XSingleton.singleton.SceneType); + } + + public List FetchFriendsIcons() + { + this.ChatFriendList.Sort(XSingleton.singleton.CompareNewMsgCb); + return this.ChatFriendList; + } + + public uint GetChatMaxFriendCount(int type) + { + return this.ChatOpenRow(type).friends; + } + + public bool CheckLevelLimit(ChatChannelType type) + { + int key = XFastEnumIntEqualityComparer.ToInt(type); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData != null; + return flag && XChatDocument._chatTable.GetByid((uint)key).level <= xplayerData.Level; + } + + public bool CheckGuild() + { + bool flag = this.guildDoc == null; + if (flag) + { + this.guildDoc = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + } + return this.guildDoc.bInGuild; + } + + public bool CheckTeam() + { + bool flag = this.teamDoc == null; + if (flag) + { + this.teamDoc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + } + return this.teamDoc.MyTeam != null && this.teamDoc.MyTeam.teamBrief.teamID != 0; + } + + public void ReqGetFlowerLeftTime() + { + RpcC2G_GetFlowerLeftTime rpc = new RpcC2G_GetFlowerLeftTime(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetFlowerLeftTime(GetFlowerLeftTimeRes oRes) + { + bool flag = oRes.errorCode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.GetFlowerRemainTime = (float)oRes.leftTime; + this.getFlowerLeftTime = oRes.leftTime; + this.canGetFlower = oRes.canGet; + bool flag2 = !oRes.canGet; + if (flag2) + { + this.getFlowerLeftTime = 0; + } + DlgBase.singleton.OnRefreshGetFlowerInfo(); + } + } + + public void ReqGetFlower() + { + RpcC2G_GetFlower rpc = new RpcC2G_GetFlower(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetFlower(GetFlowerRes oRes) + { + bool flag = oRes.errorCode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.GetFlowerRemainTime = (float)oRes.leftTime; + this.getFlowerLeftTime = oRes.leftTime; + this.canGetFlower = oRes.canGet; + bool flag2 = !oRes.canGet; + if (flag2) + { + this.getFlowerLeftTime = 0; + } + DlgBase.singleton.OnRefreshGetFlowerInfo(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XChatDocument.cs.meta new file mode 100644 index 00000000..f47d350e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75844d17891640144a63d7960a056f82 +timeCreated: 1611403947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs b/Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs new file mode 100644 index 00000000..1ee5f80a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs @@ -0,0 +1,1221 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatIFlyMgr : XSingleton + { + public bool IsAutoPlayEnable + { + get + { + return this._enable_auto_play; + } + } + + public IXIFlyMgr IFLYMGR + { + get + { + return this._ifly_mgr; + } + } + + public Dictionary LocalAudio + { + get + { + return this._local_audio; + } + } + + public List AutoPlayAudioList + { + get + { + bool flag = this.m_lAutoPlayAudioList == null; + if (flag) + { + this.m_lAutoPlayAudioList = new List(); + } + return this.m_lAutoPlayAudioList; + } + set + { + this.m_lAutoPlayAudioList = value; + } + } + + private static readonly float MIN_RECORD_LENGTH = 0.3f; + + private static readonly float AUDIO_TIME_OUT = 10f; + + private static int CLEAR_AUDIO_COUNT = 20; + + private IXIFlyMgr _ifly_mgr = null; + + private string audiotxt = ""; + + private VoiceUsage _usage = VoiceUsage.CHAT; + + private string _upload_file = ""; + + private float _record_start = 0f; + + private float _record_length = 0f; + + private string cachePath = ""; + + private ChatChannelType _channel_type = ChatChannelType.DEFAULT; + + private ChatInfo _download_audio = null; + + private uint _auto_play_timer = 0u; + + private uint _record_timer = 0u; + + private uint _translate_timer = 0u; + + private uint _prepare_record_time = 0u; + + private bool _is_recording = false; + + private bool _enable_auto_play = false; + + private EndRecordCallBack _callback = null; + + private float _try_trans_start_time = 0f; + + private uint _txt_length_limit; + + private uint _windows_audio_token; + + private bool[] _auto_play_enable_channel = new bool[XFastEnumIntEqualityComparer.ToInt(ChatChannelType.ChannelNum)]; + + private List m_lAutoPlayAudioList; + + private Dictionary _local_audio = new Dictionary(); + + private List _auto_play_list = new List(); + + private int MAX_DELETE_CNT = 100; + + private UpLoadAudioRes lastAudoRes; + + private static ulong lastFileID = 0UL; + + public XChatIFlyMgr() + { + for (int i = 0; i < XFastEnumIntEqualityComparer.ToInt(ChatChannelType.ChannelNum); i++) + { + bool flag = i == XFastEnumIntEqualityComparer.ToInt(ChatChannelType.Group); + if (flag) + { + this._auto_play_enable_channel[i] = false; + } + else + { + this._auto_play_enable_channel[i] = true; + } + } + } + + public void InitFlyMgr() + { + bool flag = this._ifly_mgr == null; + if (flag) + { + this._ifly_mgr = (XUpdater.XUpdater.XGameRoot.GetComponent("XIFlyMgr") as IXIFlyMgr); + } + bool flag2 = this._ifly_mgr != null; + if (flag2) + { + this._ifly_mgr.SetCallback(new Action(this.RecoganizeCallback)); + this._ifly_mgr.SetVoiceCallback(new Action(this.VoiceVolumeCallback)); + } + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + this._txt_length_limit = specificDocument.GetRawData(ChatChannelType.World).length / 3u; + } + + public bool NeedClear() + { + try + { + string audioCachePath = this.GetAudioCachePath(); + bool flag = Directory.Exists(audioCachePath); + if (flag) + { + DirectoryInfo directoryInfo = new DirectoryInfo(audioCachePath); + FileInfo[] files = directoryInfo.GetFiles(); + bool flag2 = files != null; + if (flag2) + { + bool flag3 = files.Length > XChatIFlyMgr.CLEAR_AUDIO_COUNT; + if (flag3) + { + return true; + } + } + } + string persistentDataPath = Application.persistentDataPath; + bool flag4 = Directory.Exists(persistentDataPath); + if (flag4) + { + DirectoryInfo directoryInfo2 = new DirectoryInfo(persistentDataPath); + FileInfo[] files2 = directoryInfo2.GetFiles(); + bool flag5 = files2 != null; + if (flag5) + { + bool flag6 = files2.Length > XChatIFlyMgr.CLEAR_AUDIO_COUNT; + if (flag6) + { + return true; + } + } + } + } + catch + { + } + return false; + } + + public void ClearAudioCache() + { + string audioCachePath = this.GetAudioCachePath(); + bool flag = Directory.Exists(audioCachePath); + if (flag) + { + DirectoryInfo directoryInfo = new DirectoryInfo(audioCachePath); + FileInfo[] files = directoryInfo.GetFiles(); + bool flag2 = files != null; + if (flag2) + { + int num = Mathf.Min(this.MAX_DELETE_CNT, files.Length); + for (int i = 0; i < num; i++) + { + string extension = files[i].Extension; + bool flag3 = !extension.Equals(".mp3") && !extension.Equals(".sound"); + if (!flag3) + { + XSingleton.singleton.AddLog("delete: ", files[i].Name, " ext: ", extension, null, null, XDebugColor.XDebug_None); + try + { + this.RemoveLocalAudio(files[i].Name); + File.Delete(files[i].FullName); + } + catch + { + XSingleton.singleton.AddErrorLog("Delete file error, ", files[i].FullName, null, null, null, null); + } + } + } + } + } + string persistentDataPath = Application.persistentDataPath; + bool flag4 = Directory.Exists(persistentDataPath); + if (flag4) + { + DirectoryInfo directoryInfo2 = new DirectoryInfo(persistentDataPath); + FileInfo[] files2 = directoryInfo2.GetFiles(); + bool flag5 = files2 != null; + if (flag5) + { + int num2 = Mathf.Min(this.MAX_DELETE_CNT, files2.Length); + for (int j = 0; j < num2; j++) + { + string extension2 = files2[j].Extension; + bool flag6 = !extension2.Equals(".mp3") && !extension2.Equals(".sound"); + if (!flag6) + { + XSingleton.singleton.AddLog("delete: ", files2[j].Name, " ext: ", extension2, null, null, XDebugColor.XDebug_None); + try + { + this.RemoveLocalAudio(files2[j].Name); + File.Delete(files2[j].FullName); + } + catch + { + XSingleton.singleton.AddErrorLog("Delete apollo file error, ", files2[j].FullName, null, null, null, null); + } + } + } + } + } + } + + private void RemoveLocalAudio(string name) + { + ulong key = 0UL; + ulong.TryParse(name, out key); + bool flag = this._local_audio.ContainsKey(key); + if (flag) + { + this._local_audio.Remove(key); + } + } + + public void RemoveOldRecordFile() + { + string audioCachePath = this.GetAudioCachePath(); + bool flag = Directory.Exists(audioCachePath); + if (flag) + { + DirectoryInfo directoryInfo = new DirectoryInfo(audioCachePath); + FileInfo[] files = directoryInfo.GetFiles(); + bool flag2 = files != null; + if (flag2) + { + for (int i = 0; i < files.Length; i++) + { + string a = files[i].Name.Substring(files[i].Name.LastIndexOf(".") + 1); + bool flag3 = a != "pcm"; + if (!flag3) + { + try + { + files[i].Delete(); + } + catch + { + XSingleton.singleton.AddLog("Delete file failed: ", files[i].Name, null, null, null, null, XDebugColor.XDebug_None); + } + break; + } + } + } + } + } + + public void GenerateAudioFiles(int num) + { + string text = this.GetAudioCachePath(); + bool flag = Directory.Exists(text); + if (flag) + { + DirectoryInfo directoryInfo = new DirectoryInfo(text); + FileInfo[] files = directoryInfo.GetFiles(); + bool flag2 = files != null; + if (flag2) + { + for (int i = 0; i < files.Length; i++) + { + string a = files[i].Name.Substring(files[i].Name.LastIndexOf(".") + 1); + bool flag3 = a == "mp3"; + if (flag3) + { + for (int j = 0; j < num; j++) + { + string text2 = text + "/" + j.ToString() + ".mp3"; + bool flag4 = !File.Exists(text2); + if (flag4) + { + File.Copy(files[i].FullName, text2); + } + } + break; + } + } + } + } + text = Application.persistentDataPath; + bool flag5 = Directory.Exists(text); + if (flag5) + { + DirectoryInfo directoryInfo2 = new DirectoryInfo(text); + FileInfo[] files2 = directoryInfo2.GetFiles(); + bool flag6 = files2 != null; + if (flag6) + { + for (int k = 0; k < files2.Length; k++) + { + string a2 = files2[k].Name.Substring(files2[k].Name.LastIndexOf(".") + 1); + bool flag7 = a2 == "sound"; + if (flag7) + { + for (int l = 0; l < num; l++) + { + string text3 = text + "/" + l.ToString() + ".sound"; + bool flag8 = !File.Exists(text3); + if (flag8) + { + File.Copy(files2[k].FullName, text3); + } + } + break; + } + } + } + } + } + + public bool IsIFlyListening() + { + bool flag = this._ifly_mgr != null; + return flag && this._ifly_mgr.IsIFlyListening(); + } + + public bool IsRecording() + { + return this._is_recording; + } + + public void EnableAutoPlay(bool enable) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + bool flag = specificDocument != null && specificDocument.roomState == XRadioDocument.BigRoomState.InRoom && enable; + if (!flag) + { + XSingleton.singleton.AddLog("Enable auto play: ", enable.ToString(), null, null, null, null, XDebugColor.XDebug_None); + this._enable_auto_play = enable; + } + } + + public void SetBackMusicOn(bool on) + { + XAudioOperationArgs @event = XEventPool.GetEvent(); + @event.IsAudioOn = on; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + public void SetChannelAutoPlay(ChatChannelType type, bool auto) + { + bool flag = XFastEnumIntEqualityComparer.ToInt(type) >= this._auto_play_enable_channel.Length; + if (!flag) + { + this._auto_play_enable_channel[XFastEnumIntEqualityComparer.ToInt(type)] = auto; + } + } + + public bool IsChannelAutoPlayEnable(ChatChannelType type) + { + bool flag = XFastEnumIntEqualityComparer.ToInt(type) >= this._auto_play_enable_channel.Length; + return !flag && this._auto_play_enable_channel[XFastEnumIntEqualityComparer.ToInt(type)]; + } + + private void setRadioOn(bool on) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.MuteSounds(!on); + } + } + + public void StartRecord(VoiceUsage usage = VoiceUsage.CHAT, EndRecordCallBack callback = null) + { + bool flag = this._ifly_mgr == null || !this._ifly_mgr.IsInited(); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CHAT_INIT_FAILED"), "fece00"); + } + else + { + bool isBroadcast = DlgBase.singleton.isBroadcast; + if (isBroadcast) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_VOICE_BROAD"), "fece00"); + } + else + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + bool flag2 = specificDocument.isHosting(); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_VOICE_RADIO"), "fece00"); + } + else + { + this.StopAutoPlay(); + this._ifly_mgr.Cancel(); + this.SetBackMusicOn(false); + this.setRadioOn(false); + this.RemoveOldRecordFile(); + XSingleton.singleton.KillTimer(this._translate_timer); + this._translate_timer = 0u; + DlgBase.singleton.SetVisible(true, true); + this._usage = usage; + this._callback = callback; + XSingleton.singleton.AddLog("Record StartTime: ", Time.time.ToString(), null, null, null, null, XDebugColor.XDebug_None); + RuntimePlatform platform = Application.platform; + if ((int)platform != 8 && (int)platform != 11) + { + this.audiotxt = DateTime.Now.ToString(); + this._windows_audio_token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(this.RefreshWindowsVoice), null); + } + else + { + this.audiotxt = ""; + } + bool flag3 = usage == VoiceUsage.CHAT; + if (flag3) + { + this._prepare_record_time = XSingleton.singleton.SetTimer(0.15f, new XTimerMgr.ElapsedEventHandler(this.DoStartRecord), null); + } + else + { + this.DoStartRecord(null); + } + } + } + } + } + + private void DoStartRecord(object obj) + { + this._is_recording = true; + this._record_start = Time.realtimeSinceStartup; + bool flag = this._ifly_mgr != null; + if (flag) + { + try + { + this._ifly_mgr.StartRecord(); + } + catch + { + XSingleton.singleton.AddErrorLog("IFly Start record error", null, null, null, null, null); + } + } + this._record_timer = XSingleton.singleton.SetTimer(10.5f, new XTimerMgr.ElapsedEventHandler(this.RecordTimeOut), null); + } + + private void RefreshWindowsVoice(object obj) + { + DlgBase.singleton.OnSetVolume((uint)XSingleton.singleton.RandomInt(0, 7)); + this._windows_audio_token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(this.RefreshWindowsVoice), null); + } + + public void RecoganizeCallback(string txt) + { + bool flag = (long)this.audiotxt.Length <= (long)((ulong)this._txt_length_limit); + if (flag) + { + bool flag2 = (long)(this.audiotxt.Length + txt.Length) <= (long)((ulong)this._txt_length_limit); + if (flag2) + { + this.audiotxt += txt; + } + else + { + bool flag3 = this._txt_length_limit - (uint)(this.audiotxt.Length + 1) > 0u; + if (flag3) + { + this.audiotxt += txt.Substring(0, (int)(this._txt_length_limit - (uint)(this.audiotxt.Length + 1))); + } + } + } + } + + public void VoiceVolumeCallback(string volume) + { + uint num = 0u; + uint.TryParse(volume, out num); + DlgBase.singleton.OnSetVolume((num * 7u + 3u) / 25u); + } + + public void StopRecord(bool cancel) + { + bool flag = this._ifly_mgr == null || !this._ifly_mgr.IsInited(); + if (!flag) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.KillTimer(this._windows_audio_token); + bool flag2 = this._prepare_record_time > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._prepare_record_time); + this._prepare_record_time = 0u; + } + this.SetBackMusicOn(true); + this.setRadioOn(true); + bool flag3 = !this._is_recording; + if (!flag3) + { + bool flag4 = this._record_timer > 0u; + if (flag4) + { + XSingleton.singleton.KillTimer(this._record_timer); + this._record_timer = 0u; + } + bool flag5 = !cancel; + if (flag5) + { + this._ifly_mgr.StopRecord(); + this._record_length = Time.realtimeSinceStartup - this._record_start; + this._record_length = ((this._record_length > 10f) ? 10f : this._record_length); + XSingleton.singleton.AddLog("Record StopTime: ", Time.time.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag6 = this._record_length <= XChatIFlyMgr.MIN_RECORD_LENGTH; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_RECORD_TOO_SHORT"), "fece00"); + } + else + { + string param = string.Format("{0:D2}{1:D2}{2:D2}", DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second); + this._translate_timer = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.DelayTransMp3), param); + this._try_trans_start_time = Time.time; + } + } + this._is_recording = false; + } + } + } + + private void RecordTimeOut(object obj) + { + bool flag = !this._is_recording; + if (!flag) + { + this.StopRecord(false); + bool flag2 = this._callback != null; + if (flag2) + { + this._callback(); + } + } + } + + public void DelayTransMp3(object obj) + { + string text = obj as string; + bool flag = Time.time - this._try_trans_start_time >= 0.3f; + if (flag) + { + this.StartTransMp3(text); + } + else + { + bool flag2 = this._ifly_mgr != null && (this._ifly_mgr.IsIFlyListening() || !this._ifly_mgr.IsRecordFileExist()); + if (flag2) + { + this._translate_timer = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.DelayTransMp3), text); + } + else + { + this.StartTransMp3(text); + } + } + } + + public void StartTransMp3(string destFileName) + { + string filePath = ""; + RuntimePlatform platform = Application.platform; + if ((int)platform != 8 && (int)platform != 11) + { + filePath = "Assets/Editor/Mp3Sample/sample.mp3"; + } + else + { + bool flag = this._ifly_mgr != null; + if (flag) + { + bool flag2 = !this._ifly_mgr.IsRecordFileExist(); + if (flag2) + { + XSingleton.singleton.AddErrorLog("Record busy, can't record", null, null, null, null, null); + return; + } + filePath = this._ifly_mgr.StartTransMp3(destFileName); + } + } + this.StartUpLoadMp3(filePath); + } + + public void StartUpLoadMp3(string filePath) + { + XSingleton.singleton.AddLog("Will start upload mp3, txt:", this.audiotxt, null, null, null, null, XDebugColor.XDebug_None); + RpcC2T_UpLoadAudioToGate rpcC2T_UpLoadAudioToGate = new RpcC2T_UpLoadAudioToGate(); + rpcC2T_UpLoadAudioToGate.oArg.audio = File.ReadAllBytes(filePath); + rpcC2T_UpLoadAudioToGate.oArg.text = Encoding.UTF8.GetBytes(this.audiotxt); + rpcC2T_UpLoadAudioToGate.oArg.srctype = 0u; + this._upload_file = filePath; + XSingleton.singleton.AddLog("The audio length: ", rpcC2T_UpLoadAudioToGate.oArg.audio.Length.ToString(), null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.Send(rpcC2T_UpLoadAudioToGate); + } + + public void UpLoadMp3Res(UpLoadAudioRes res) + { + uint num = (uint)(this._record_length * 1000f) + 1u; + XSingleton.singleton.AddLog("Will upload res mp3, usage: ", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = this._usage == VoiceUsage.CHAT; + if (flag) + { + this._local_audio[res.audiodownuid] = this._upload_file; + this.lastAudoRes = res; + bool flag2 = DlgBase.singleton.CheckWorldSendMsg(true, null, ChatChannelType.DEFAULT); + if (flag2) + { + bool flag3 = num >= 9000u && this.audiotxt.Length <= (int)(num / 2000u); + if (!flag3) + { + XSingleton.singleton.AddLog("Will Do send world chat", null, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.SendVoiceChat(this.audiotxt, DlgBase.singleton.activeChannelType, res.audiodownuid, num * 1f); + } + } + } + else + { + bool flag4 = this._usage == VoiceUsage.ANSWER; + if (flag4) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + XSingleton.singleton.AddLog("Will Do send answer chat", null, null, null, null, null, XDebugColor.XDebug_None); + specificDocument.SendAnswer(this.audiotxt, res.audiodownuid, num); + } + else + { + bool flag5 = this._usage == VoiceUsage.FLOWER_REPLY; + if (flag5) + { + this._local_audio[res.audiodownuid] = this._upload_file; + this.lastAudoRes = res; + DlgBase.singleton.SendVoiceChat(this.audiotxt, ChatChannelType.Friends, res.audiodownuid, num * 1f); + } + else + { + bool flag6 = this._usage == VoiceUsage.MENTORHIP; + if (flag6) + { + this._local_audio[res.audiodownuid] = this._upload_file; + this.lastAudoRes = res; + } + else + { + bool flag7 = this._usage == VoiceUsage.GUILDCOLLECT; + if (flag7) + { + XExchangeItemDocument specificDocument2 = XDocuments.GetSpecificDocument(XExchangeItemDocument.uuID); + XSingleton.singleton.AddLog("Will Do send voice chat in guild collect", null, null, null, null, null, XDebugColor.XDebug_None); + specificDocument2.SendChat(this.audiotxt, res.audiodownuid, num); + } + } + } + } + } + } + + public void ResendLastWorldChat() + { + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.ResendLastWorldChat(); + } + else + { + uint num = (this._record_length >= 1f) ? ((uint)this._record_length) : 1u; + bool flag = this.lastAudoRes != null; + if (flag) + { + DlgBase.singleton.SendVoiceChat(this.audiotxt, DlgBase.singleton.activeChannelType, this.lastAudoRes.audiodownuid, num * 1f); + } + } + } + + public void DownloadMp3(ChatInfo info) + { + XSingleton.singleton.AddLog("Will Download mp3", null, null, null, null, null, XDebugColor.XDebug_None); + this._download_audio = info; + RpcC2A_GetAudioListReq rpcC2A_GetAudioListReq = new RpcC2A_GetAudioListReq(); + rpcC2A_GetAudioListReq.oArg.audioUidList.Add(info.mAudioId); + XSingleton.singleton.Send(rpcC2A_GetAudioListReq); + } + + public void DownloadMp3Res(GetAudioListRes res) + { + bool flag = res.dataList == null || res.dataList.Count == 0; + if (flag) + { + XSingleton.singleton.AddLog("Download res error", null, null, null, null, null, XDebugColor.XDebug_None); + this.DoStartAutoPlay(null); + } + else + { + AudioBrief audioBrief = res.dataList[0]; + string text = this.GetAudioCachePath() + "/" + audioBrief.audioUid.ToString() + ".mp3"; + bool flag2 = this._download_audio.mChannelId != ChatChannelType.DEFAULT; + if (flag2) + { + text = this.GetAudioCachePath() + "/" + audioBrief.audioUid.ToString() + ".sound"; + } + File.WriteAllBytes(text, audioBrief.audio); + this._local_audio[this._download_audio.mAudioId] = text; + XSingleton.singleton.AddLog("Download OK, will start play mp3, audiotime: ", this._download_audio.mAudioTime.ToString(), null, null, null, null, XDebugColor.XDebug_None); + this.StartPlayMp3(text, this._download_audio.mAudioTime, this._download_audio); + this.ChatShowInfo(this._download_audio); + } + } + + public void DownLoadMp3Error() + { + this.DoStartAutoPlay(null); + } + + public void StartPlayMp3(string filepath, uint audiotime, ChatInfo info) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + xapolloManager.SetApolloMode(2); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + int @int = XSingleton.singleton.GetInt("SetSpeakerVolume"); + xapolloManager.SetMusicVolum((int)((float)@int * specificDocument.voiceVolme)); + RuntimePlatform platform = Application.platform; + if ((int)platform != 8 && (int)platform != 11) + { + XSingleton.singleton.StartPlayVoice(filepath); + } + else + { + bool flag = File.Exists(filepath); + if (!flag) + { + XSingleton.singleton.AddLog("File not found, ", filepath, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.KillTimer(this._auto_play_timer); + this._auto_play_timer = XSingleton.singleton.SetGlobalTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.DoStartAutoPlay), null); + return; + } + try + { + XSingleton.singleton.StartPlayVoice(filepath); + } + catch (Exception ex) + { + XSingleton.singleton.AddLog("StartPlayMp3, Find play exception, ", ex.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + XSingleton.singleton.KillTimer(this._auto_play_timer); + bool flag2 = audiotime <= 1000u; + if (flag2) + { + audiotime = 1000u; + } + this._auto_play_timer = XSingleton.singleton.SetGlobalTimer((audiotime + 10u) * 1f / 1000f, new XTimerMgr.ElapsedEventHandler(this.DoStartAutoPlay), null); + XSingleton.singleton.AddLog("Will start time autoplay, time: ", audiotime.ToString(), null, null, null, null, XDebugColor.XDebug_None); + this.DeleteAudio(info.mAudioId); + } + + public void DoStartPlayChatInfo(ChatInfo info) + { + this.StopAutoPlay(); + this.StartPlayInfo(info); + } + + public void StartPlayInfo(ChatInfo info) + { + bool is_recording = this._is_recording; + if (is_recording) + { + XSingleton.singleton.AddLog("StartPlayInfo, isrecord will return", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + bool flag = this._local_audio.ContainsKey(info.mAudioId) && File.Exists(this._local_audio[info.mAudioId]); + if (flag) + { + this.ChatShowInfo(info); + this.StartPlayMp3(this._local_audio[info.mAudioId], info.mAudioTime, info); + } + else + { + this.DownloadMp3(info); + } + } + } + + private void DeleteAudio(ulong audioid) + { + bool flag = XChatIFlyMgr.lastFileID == 0UL || XChatIFlyMgr.lastFileID == audioid; + if (flag) + { + XChatIFlyMgr.lastFileID = audioid; + } + else + { + RuntimePlatform platform = Application.platform; + bool flag2 = (int)platform == 8; + if (flag2) + { + string path = string.Concat(new object[] + { + Application.temporaryCachePath, + "/", + XChatIFlyMgr.lastFileID, + ".mp3" + }); + this.DeleteFile(path); + string path2 = string.Concat(new object[] + { + Application.temporaryCachePath, + "/", + XChatIFlyMgr.lastFileID, + ".sound" + }); + this.DeleteFile(path2); + } + else + { + string path3 = string.Concat(new object[] + { + Application.persistentDataPath, + "/", + XChatIFlyMgr.lastFileID, + ".sound" + }); + this.DeleteFile(path3); + string path4 = string.Concat(new object[] + { + Application.persistentDataPath, + "/", + XChatIFlyMgr.lastFileID, + ".mp3" + }); + this.DeleteFile(path4); + } + XChatIFlyMgr.lastFileID = audioid; + } + } + + private void DeleteFile(string path) + { + XSingleton.singleton.AddLog("delete: ", path, null, null, null, null, XDebugColor.XDebug_None); + try + { + bool flag = !string.IsNullOrEmpty(path); + if (flag) + { + bool flag2 = File.Exists(path); + if (flag2) + { + File.Delete(path); + } + } + } + catch + { + XSingleton.singleton.AddWarningLog("delete fail" + path, null, null, null, null, null); + } + } + + public void StartPlayAudioId(ulong audioid) + { + this.StartPlayInfo(new ChatInfo + { + mAudioId = audioid, + mChannelId = ChatChannelType.DEFAULT + }); + } + + public void ClearPlayList() + { + this._auto_play_list.Clear(); + } + + public void DoStartAutoPlay(object obj) + { + bool enable_auto_play = this._enable_auto_play; + if (enable_auto_play) + { + this.StartAutoPlay(true, true); + } + else + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + xapolloManager.SetApolloMode(0); + this.SetBackMusicOn(true); + this.setRadioOn(true); + this._auto_play_timer = 0u; + } + } + + public void StartAutoPlay(bool rank = true, bool clearTimeout = true) + { + if (clearTimeout) + { + this.ClearTimeOutInfo(); + } + if (rank) + { + this.RankAutoPlayList(); + } + XSingleton.singleton.AddLog("StartAutoPlay, num:", this._auto_play_list.Count.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = this._auto_play_list.Count == 0; + if (flag) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + xapolloManager.SetApolloMode(0); + this.SetBackMusicOn(true); + this.setRadioOn(true); + XSingleton.singleton.AddLog("StartAutoplay setback music on", null, null, null, null, null, XDebugColor.XDebug_None); + this._auto_play_timer = 0u; + } + else + { + XSingleton.singleton.AddLog("StartAutoplay setback music off", null, null, null, null, null, XDebugColor.XDebug_None); + this.SetBackMusicOn(false); + this.setRadioOn(false); + bool flag2 = this._auto_play_list.Count > 0; + if (flag2) + { + this.StartPlayInfo(this._auto_play_list[0]); + this._auto_play_list.RemoveAt(0); + } + } + } + + public void StopAutoPlay() + { + XSingleton.singleton.KillTimer(this._auto_play_timer); + this._auto_play_timer = 0u; + XSingleton.singleton.StopPlayVoice(); + } + + public void InsertAutoPlayList(ChatInfo info, bool clearTimeOut = true) + { + this._auto_play_list.Insert(0, info); + this.StopAutoPlay(); + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + xapolloManager.SetApolloMode(2); + try + { + this.StartAutoPlay(false, clearTimeOut); + } + catch (Exception ex) + { + XSingleton.singleton.AddLog("InsertAutoPlayList exception, ", ex.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + + public bool AddAutoPlayList(ChatInfo info) + { + bool flag = !XSingleton.singleton.IsWifiEnable() && this.IsChannelAutoPlayEnable(ChatChannelType.ZeroChannel); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !this.IsChannelAutoPlayEnable(info.mChannelId); + if (flag2) + { + result = false; + } + else + { + bool flag3 = this._channel_type != ChatChannelType.DEFAULT && info.mChannelId != this._channel_type; + if (flag3) + { + result = false; + } + else + { + bool flag4 = XSingleton.singleton.SceneID == 100u || (XSingleton.singleton.XPlayerData.Level < 10u && DlgBase.singleton.IsVisible()); + if (flag4) + { + result = false; + } + else + { + this._auto_play_list.Add(info); + bool flag5 = this._auto_play_timer == 0u && this._enable_auto_play && !this.IsRecording(); + if (flag5) + { + this.StartAutoPlay(true, true); + } + result = true; + } + } + } + } + return result; + } + + public void RankAutoPlayList() + { + } + + private void ChatShowInfo(ChatInfo info) + { + bool isAudioPlayed = info.isAudioPlayed; + if (!isAudioPlayed) + { + bool flag = info.mChannelId == ChatChannelType.DEFAULT; + if (!flag) + { + info.isAudioPlayed = true; + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.ReceiveChatInfo(info); + } + } + } + + public void ClearTimeOutInfo() + { + List list = new List(); + for (int i = 0; i < this._auto_play_list.Count; i++) + { + bool flag = (DateTime.Now - this._auto_play_list[i].mTime).TotalSeconds <= (double)XChatIFlyMgr.AUDIO_TIME_OUT; + if (flag) + { + list.Add(this._auto_play_list[i]); + } + else + { + this.ChatShowInfo(this._auto_play_list[i]); + } + } + this._auto_play_list = list; + } + + public void SetAutoPlayChannel(ChatChannelType type) + { + bool flag = type != ChatChannelType.DEFAULT; + if (flag) + { + List list = new List(); + for (int i = 0; i < this._auto_play_list.Count; i++) + { + bool flag2 = this._auto_play_list[i].mChannelId == type; + if (flag2) + { + list.Add(this._auto_play_list[i]); + } + else + { + this.ChatShowInfo(this._auto_play_list[i]); + } + } + this._auto_play_list = list; + } + this._channel_type = type; + } + + private string GetString(string path) + { + bool flag = string.IsNullOrEmpty(path); + string result; + if (flag) + { + result = path; + } + else + { + result = path.Replace('\\', '/'); + } + return result; + } + + public string GetAudioCachePath() + { + bool flag = string.IsNullOrEmpty(this.cachePath); + if (flag) + { + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform != 11) + { + this.cachePath = Application.persistentDataPath; + } + else + { + this.cachePath = Application.persistentDataPath; + } + } + else + { + this.cachePath = Application.temporaryCachePath; + } + } + return this.cachePath; + } + + public void OnOpenWebView() + { + bool flag = this._ifly_mgr != null; + if (flag) + { + this._ifly_mgr.OnOpenWebView(); + } + } + + public void OnCloseWebView() + { + bool flag = this._ifly_mgr != null; + if (flag) + { + this._ifly_mgr.OnCloseWebView(); + } + } + + public void OnWebViewScreenLock(bool islock) + { + XSingleton.singleton.AddLog("Webview islock: ", islock.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = this._ifly_mgr != null; + if (flag) + { + this._ifly_mgr.OnScreenLock(islock); + } + } + + public void OnEvalWebViewJs(string script) + { + bool flag = this._ifly_mgr != null; + if (flag) + { + this._ifly_mgr.OnEvalJsScript(script); + } + } + + public void OnRefreshWebViewShow(bool show) + { + bool flag = this._ifly_mgr != null; + if (flag) + { + this._ifly_mgr.RefershWebViewShow(show); + } + } + + public void RefreshWebViewConfig() + { + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + int num = int.Parse(XSingleton.singleton.GetValue("HideWebView")); + bool flag2 = num == 1; + if (!flag2) + { + bool flag3 = this._ifly_mgr != null; + if (flag3) + { + int platform = 0; + XAuthorizationChannel channel = XSingleton.singleton.Channel; + if (channel != XAuthorizationChannel.XAuthorization_QQ) + { + if (channel == XAuthorizationChannel.XAuthorization_WeChat) + { + platform = 1; + } + } + else + { + platform = 0; + } + this._ifly_mgr.OnInitWebViewInfo(platform, XSingleton.singleton.OpenID, XSingleton.singleton.ServerID.ToString(), XSingleton.singleton.Player.PlayerAttributes.RoleID.ToString(), XSingleton.singleton.XPlayerData.Name); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs.meta new file mode 100644 index 00000000..0f7e1817 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatIFlyMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8ec1506eb47a7145ac3ada9de750d96 +timeCreated: 1611404641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatInputBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatInputBehaviour.cs new file mode 100644 index 00000000..7fdf562c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatInputBehaviour.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XChatInputBehaviour : DlgBehaviourBase + { + public IXUISprite m_BlackBg; + + public IXUIInput m_TextInput; + + public IXUILabel m_ShowLabel; + + public IXUIButton m_SendBtn; + + public IXUIButton m_btnChatpic; + + public IXUISprite m_sprInput; + + private void Awake() + { + this.m_BlackBg = (base.transform.Find("BlackBg").GetComponent("XUISprite") as IXUISprite); + this.m_TextInput = (base.transform.Find("Bg/TextInput").GetComponent("XUIInput") as IXUIInput); + this.m_sprInput = (base.transform.Find("Bg/TextInput").GetComponent("XUISprite") as IXUISprite); + this.m_ShowLabel = (base.transform.Find("Bg/TextInput/ChatText").GetComponent("XUILabel") as IXUILabel); + this.m_SendBtn = (base.transform.Find("Bg/Send").GetComponent("XUIButton") as IXUIButton); + this.m_btnChatpic = (base.transform.Find("Bg/chatpic").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatInputBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XChatInputBehaviour.cs.meta new file mode 100644 index 00000000..d01998da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatInputBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37a861f1fa705fb4f84b8204675afa3c +timeCreated: 1611403567 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatInputView.cs b/Client/Assets/Scripts/XMainClient/XChatInputView.cs new file mode 100644 index 00000000..840b8357 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatInputView.cs @@ -0,0 +1,111 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XChatInputView : DlgBase + { + public override string fileName + { + get + { + return "Common/ChatInput"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private string _tips; + + private ChatInputStringBack _func = null; + + public ChatInputType inputType = ChatInputType.TEXT; + + public void ShowChatInput(ChatInputStringBack func) + { + this._func = func; + this.SetVisible(true, true); + } + + protected override void Init() + { + base.Init(); + this._tips = XStringDefineProxy.GetString("ChatInput_DefaultTips"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_BlackBg.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCanCelBlackClick)); + base.uiBehaviour.m_SendBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSendBtnClick)); + base.uiBehaviour.m_btnChatpic.RegisterClickEventHandler(new ButtonClickEventHandler(this.OpenEmotion)); + } + + protected override void OnShow() + { + this.TextInit(); + } + + protected override void OnHide() + { + this.inputType = ChatInputType.TEXT; + this.SetInputType(this.inputType); + base.OnHide(); + } + + public void SetInputType(ChatInputType type) + { + this.inputType = type; + base.uiBehaviour.m_btnChatpic.SetVisible(type == ChatInputType.EMOTION); + } + + public void SetCharacterLimit(int num) + { + base.uiBehaviour.m_TextInput.SetCharacterLimit(num); + } + + private void OnCanCelBlackClick(IXUISprite iSp) + { + this.TextInit(); + this.SetVisible(false, true); + } + + private bool OnSendBtnClick(IXUIButton btn) + { + bool flag = this._func != null; + if (flag) + { + this._func(base.uiBehaviour.m_TextInput.GetText()); + } + this.SetVisible(false, true); + return true; + } + + private void TextInit() + { + base.uiBehaviour.m_TextInput.SetText(""); + base.uiBehaviour.m_ShowLabel.SetText(this._tips); + } + + private bool OpenEmotion(IXUIButton btn) + { + DlgBase.singleton.ShowChatEmotion(new ChatSelectStringBack(this.OnSelectEmotion), new Vector3(16f, 143f, 0f), 0); + return true; + } + + public void OnSelectEmotion(string motionstr) + { + string text = base.uiBehaviour.m_TextInput.GetText(); + text += motionstr; + base.uiBehaviour.m_TextInput.SetText(text); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatInputView.cs.meta b/Client/Assets/Scripts/XMainClient/XChatInputView.cs.meta new file mode 100644 index 00000000..49135583 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatInputView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 220db769662682444a4c86b44d0dc67a +timeCreated: 1611403418 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatMaqueeBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatMaqueeBehaviour.cs new file mode 100644 index 00000000..a08a2c9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatMaqueeBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XChatMaqueeBehaviour : DlgBehaviourBase + { + public IXUILabel m_MaqueeText; + + public IXUILabelSymbol m_MaqueeTextSymbol; + + public IXUISprite m_MaqueeBoard; + + public IXUITweenTool m_MaqueeTween; + + private void Awake() + { + this.m_MaqueeTextSymbol = (base.transform.Find("Bg/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_MaqueeText = (base.transform.Find("Bg/content").GetComponent("XUILabel") as IXUILabel); + this.m_MaqueeBoard = (base.transform.Find("Notice").GetComponent("XUISprite") as IXUISprite); + this.m_MaqueeTween = (base.transform.Find("Notice").GetComponent("XUIPlayTween") as IXUITweenTool); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatMaqueeBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XChatMaqueeBehaviour.cs.meta new file mode 100644 index 00000000..3c38b00d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatMaqueeBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fad5e7539364a2a42925fcdacbc30993 +timeCreated: 1611404929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatMaqueeView.cs b/Client/Assets/Scripts/XMainClient/XChatMaqueeView.cs new file mode 100644 index 00000000..9eaf8290 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatMaqueeView.cs @@ -0,0 +1,245 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatMaqueeView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ChatMaqueeDlg"; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + private XChatDocument _doc = null; + + private bool m_IsPlaying; + + private List m_MaqueeFirst = new List(); + + private List m_MaqueeSecond = new List(); + + private List m_MaqueeThird = new List(); + + private int m_OffsetStart = 0; + + private int m_OffsetEnd = 0; + + private int m_CurOffset = 0; + + private float m_CurShowTime = 0f; + + private bool m_MaqueeSwitch = true; + + private MaqueeInfo m_PlayingMaquee; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + this._doc.ChatMaqueeView = this; + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnUnload() + { + this._doc = null; + this.m_IsPlaying = false; + this.m_MaqueeThird.Clear(); + base.OnUnload(); + } + + public void ShowMaquee() + { + this.SetVisible(true, true); + } + + public void HideMaquee() + { + this.SetVisible(false, true); + } + + public void SetMaqueeSwitch(bool enable) + { + this.m_MaqueeSwitch = enable; + bool flag = !base.IsLoaded(); + if (!flag) + { + bool flag2 = !enable; + if (flag2) + { + this.m_IsPlaying = false; + this.SetVisible(false, true); + } + else + { + this.PlayFinished(); + } + } + } + + public void ReceiveChatInfo(KKSG.ChatInfo chatinfo) + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag = sceneType != SceneType.SCENE_HALL && sceneType != SceneType.SCENE_GUILD_HALL && sceneType != SceneType.SCENE_BATTLE && sceneType != SceneType.SCENE_FAMILYGARDEN && sceneType != SceneType.SCENE_ABYSSS && sceneType != SceneType.SCENE_TOWER && sceneType != SceneType.SCENE_NEST && sceneType != SceneType.SCENE_LEISURE; + if (!flag) + { + bool flag2 = !this.m_MaqueeSwitch; + if (!flag2) + { + bool flag3 = chatinfo.level <= XSingleton.singleton.XPlayerData.Level; + if (flag3) + { + bool flag4 = chatinfo.channel == 5u; + if (flag4) + { + this.AddMaqueeNormalInfo(chatinfo.info, 0f); + } + else + { + this.AddMaqueeNormalInfo(chatinfo.info, 5f); + } + } + } + } + } + + public void AddMaqueeNormalInfo(string info, float stopTime) + { + bool flag = info == null; + if (!flag) + { + this.ShowMaquee(); + MaqueeInfo maqueeInfo = new MaqueeInfo(); + maqueeInfo.content = info; + maqueeInfo.playTimes = 1; + maqueeInfo.showTime = stopTime; + maqueeInfo.playSpeed = XSingleton.singleton.GetInt("MaqueeSpeed"); + this.m_MaqueeThird.Add(maqueeInfo); + bool flag2 = !this.m_IsPlaying; + if (flag2) + { + this.StartPlayMaquee(maqueeInfo); + } + } + } + + public void StartPlayMaquee(MaqueeInfo maquee) + { + string text = XLabelSymbolHelper.RemoveFormatInfo(maquee.content); + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + base.uiBehaviour.m_MaqueeText.SetText(text); + Vector2 printSize = base.uiBehaviour.m_MaqueeText.GetPrintSize(); + base.uiBehaviour.m_MaqueeTextSymbol.InputText = text; + this.m_PlayingMaquee = maquee; + this.m_IsPlaying = true; + this.m_CurShowTime = maquee.showTime; + this.m_OffsetStart = (int)(printSize.x / 2f) + base.uiBehaviour.m_MaqueeBoard.spriteWidth / 2 + 20; + this.m_OffsetEnd = -1 * this.m_OffsetStart; + this.m_CurOffset = this.m_OffsetStart; + base.uiBehaviour.m_MaqueeTween.PlayTween(true, -1f); + } + + public void UpdateMaquee(float delta) + { + bool flag = !this.m_IsPlaying || !base.IsVisible(); + if (!flag) + { + bool flag2 = this.m_CurOffset <= 0 && this.m_CurShowTime > 0f; + if (flag2) + { + this.m_CurShowTime -= delta; + } + else + { + this.m_CurOffset -= (int)(delta * (float)this.m_PlayingMaquee.playSpeed); + base.uiBehaviour.m_MaqueeText.gameObject.transform.localPosition = new Vector3((float)this.m_CurOffset, base.uiBehaviour.m_MaqueeText.gameObject.transform.localPosition.y, base.uiBehaviour.m_MaqueeText.gameObject.transform.localPosition.z); + bool flag3 = this.m_CurOffset <= this.m_OffsetEnd; + if (flag3) + { + this.PlayFinished(); + } + } + } + } + + public void PlayFinished() + { + bool flag = this.m_PlayingMaquee == null; + if (!flag) + { + bool flag2 = this.m_PlayingMaquee.playTimes > 1; + if (flag2) + { + this.m_CurOffset = this.m_OffsetStart; + this.m_PlayingMaquee.playTimes--; + this.m_CurShowTime = this.m_PlayingMaquee.showTime; + } + else + { + this.m_MaqueeThird.RemoveAt(0); + bool flag3 = this.m_MaqueeThird.Count > 0; + if (flag3) + { + this.StartPlayMaquee(this.m_MaqueeThird[0]); + } + else + { + this.m_IsPlaying = false; + base.uiBehaviour.m_MaqueeTween.PlayTween(false, -1f); + base.UnLoad(false); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatMaqueeView.cs.meta b/Client/Assets/Scripts/XMainClient/XChatMaqueeView.cs.meta new file mode 100644 index 00000000..940961d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatMaqueeView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2e66169cb822a2b498ed5c095707f81f +timeCreated: 1611403509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatSettingBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatSettingBehaviour.cs new file mode 100644 index 00000000..54953658 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatSettingBehaviour.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XChatSettingBehaviour : DlgBehaviourBase + { + public IXUICheckBox m_WorldChat; + + public IXUICheckBox m_GuildChat; + + public IXUICheckBox m_FriendsChat; + + public IXUICheckBox m_TeamChat; + + public IXUICheckBox m_SystemChat; + + public IXUIButton m_BackClick; + + public IXUIButton m_Close; + + private void Awake() + { + this.m_WorldChat = (base.transform.Find("Bg/WorldChannel").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_GuildChat = (base.transform.Find("Bg/GuildChannel").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_FriendsChat = (base.transform.Find("Bg/FriendChannel").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_TeamChat = (base.transform.Find("Bg/TeamChannel").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_SystemChat = (base.transform.Find("Bg/SystemChannel").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BackClick = (base.transform.Find("Bg/backclick").GetComponent("XUIButton") as IXUIButton); + this.m_WorldChat.ID = 1UL; + this.m_GuildChat.ID = 2UL; + this.m_FriendsChat.ID = 3UL; + this.m_TeamChat.ID = 7UL; + this.m_SystemChat.ID = 4UL; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatSettingBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XChatSettingBehaviour.cs.meta new file mode 100644 index 00000000..0e2e518b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatSettingBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cce589361cd1a6f4281847fb0cd5b1ac +timeCreated: 1611404553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatSettingView.cs b/Client/Assets/Scripts/XMainClient/XChatSettingView.cs new file mode 100644 index 00000000..21c1d3e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatSettingView.cs @@ -0,0 +1,131 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XChatSettingView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ChatSettingDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XChatDocument _doc = null; + + public List m_EnableChannel = new List(); + + public XChatSettingView() + { + this.m_EnableChannel.Add(ChatChannelType.World); + this.m_EnableChannel.Add(ChatChannelType.Guild); + this.m_EnableChannel.Add(ChatChannelType.System); + this.m_EnableChannel.Add(ChatChannelType.Team); + this.m_EnableChannel.Add(ChatChannelType.Friends); + this.m_EnableChannel.Add(ChatChannelType.Spectate); + } + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + this._doc.ChatSettingView = this; + base.uiBehaviour.m_WorldChat.bChecked = true; + base.uiBehaviour.m_GuildChat.bChecked = true; + base.uiBehaviour.m_FriendsChat.bChecked = true; + base.uiBehaviour.m_TeamChat.bChecked = true; + base.uiBehaviour.m_SystemChat.bChecked = true; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_WorldChat.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckChannel)); + base.uiBehaviour.m_GuildChat.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckChannel)); + base.uiBehaviour.m_FriendsChat.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckChannel)); + base.uiBehaviour.m_TeamChat.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckChannel)); + base.uiBehaviour.m_SystemChat.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCheckChannel)); + base.uiBehaviour.m_BackClick.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnUnload() + { + base.OnUnload(); + this._doc = null; + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public bool IsChannelEnable(ChatChannelType type) + { + for (int i = 0; i < this.m_EnableChannel.Count; i++) + { + bool flag = this.m_EnableChannel[i] == type; + if (flag) + { + return true; + } + } + return false; + } + + public bool OnCheckChannel(IXUICheckBox cb) + { + ChatChannelType chatChannelType = (ChatChannelType)cb.ID; + bool bChecked = cb.bChecked; + if (bChecked) + { + bool flag = false; + for (int i = 0; i < this.m_EnableChannel.Count; i++) + { + bool flag2 = this.m_EnableChannel[i] == chatChannelType; + if (flag2) + { + flag = true; + } + } + bool flag3 = !flag; + if (flag3) + { + this.m_EnableChannel.Add(chatChannelType); + } + } + else + { + for (int j = 0; j < this.m_EnableChannel.Count; j++) + { + bool flag4 = this.m_EnableChannel[j] == chatChannelType; + if (flag4) + { + this.m_EnableChannel.RemoveAt(j); + break; + } + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatSettingView.cs.meta b/Client/Assets/Scripts/XMainClient/XChatSettingView.cs.meta new file mode 100644 index 00000000..81184557 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatSettingView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a23e1b8d40431e541a8241785e6354a3 +timeCreated: 1611404256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs new file mode 100644 index 00000000..e20a6ec0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatSmallBehaviour : DlgBehaviourBase + { + public static uint m_MaxShowMsg = 10u; + + public IXUISprite m_BgSprite; + + public IXUISprite m_RedPoint; + + public IXUISprite m_BgSpriteMini; + + public IXUISprite m_BgSpriteMain; + + public IXUISprite m_OpenWindow; + + public IXUISprite m_OpenWindowMini; + + public IXUILabelSymbol m_MiniText; + + public IXUISprite m_MiniTemplate; + + public IXUILabel m_AudioName; + + public IXUILabel m_AudioTime; + + public IXUILabel m_AudioContent; + + public IXUISprite m_MiniAudioTemplate; + + public XUIPool m_ChatPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ScrollView; + + public List ChatUIInfoList = new List(); + + public IXUITweenTool m_TweenTool; + + public IXUITweenTool m_BgTweenTool; + + public IXUISprite m_MainPanel; + + public IXUIPanel m_panel; + + public IXUIPanel m_contentPanel; + + public IXUISprite m_sprMailRed; + + public IXUIProgress m_Exp; + + public IXUILabel m_ExpValue; + + private void Awake() + { + this.m_BgSprite = (base.transform.Find("Alphaboard/Bg/Back").GetComponent("XUISprite") as IXUISprite); + this.m_sprMailRed = (base.transform.Find("Alphaboard/Bg/mailredpoint").GetComponent("XUISprite") as IXUISprite); + this.m_ScrollView = (base.transform.Find("Alphaboard/Bg/ChatContent").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RedPoint = (base.transform.Find("Alphaboard/Bg/redpoint").GetComponent("XUISprite") as IXUISprite); + this.m_BgSpriteMini = (base.transform.Find("Alphaboard/Bg2").GetComponent("XUISprite") as IXUISprite); + this.m_BgSpriteMain = (base.transform.Find("Alphaboard/Bg").GetComponent("XUISprite") as IXUISprite); + this.m_OpenWindow = (base.transform.Find("Alphaboard/Bg/go").GetComponent("XUISprite") as IXUISprite); + this.m_OpenWindowMini = (base.transform.Find("Alphaboard/Bg2/go").GetComponent("XUISprite") as IXUISprite); + this.m_MiniText = (base.transform.Find("Alphaboard/Bg2/ChatContent/template/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_MiniTemplate = (base.transform.Find("Alphaboard/Bg2/ChatContent/template").GetComponent("XUISprite") as IXUISprite); + this.m_AudioName = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/name").GetComponent("XUILabel") as IXUILabel); + this.m_AudioTime = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/time").GetComponent("XUILabel") as IXUILabel); + this.m_AudioContent = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio/content").GetComponent("XUILabel") as IXUILabel); + this.m_MiniAudioTemplate = (base.transform.Find("Alphaboard/Bg2/ChatContent/templateaudio").GetComponent("XUISprite") as IXUISprite); + this.m_contentPanel = (base.transform.Find("Alphaboard/Bg/ChatContent").GetComponent("XUIPanel") as IXUIPanel); + this.m_ChatPool.SetupPool(base.transform.Find("Alphaboard/Bg/ChatContent").gameObject, base.transform.Find("Alphaboard/Bg/ChatContent/template").gameObject, 4u, false); + this.m_TweenTool = (base.transform.Find("Alphaboard/Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_BgTweenTool = (base.transform.Find("Alphaboard").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_MainPanel = (base.transform.Find("Alphaboard").GetComponent("XUISprite") as IXUISprite); + this.m_panel = (base.transform.GetComponent("XUIPanel") as IXUIPanel); + this.m_Exp = (base.transform.Find("Alphaboard/Bg/Exp").GetComponent("XUIProgress") as IXUIProgress); + this.m_ExpValue = (this.m_Exp.gameObject.transform.Find("content").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs.meta new file mode 100644 index 00000000..73777221 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatSmallBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 150475f6eba16a946aca017a31472c5c +timeCreated: 1611403261 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatSmallView.cs b/Client/Assets/Scripts/XMainClient/XChatSmallView.cs new file mode 100644 index 00000000..14b710c0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatSmallView.cs @@ -0,0 +1,705 @@ +using System; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatSmallView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ChatSmallDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + private static XChatDocument _doc = null; + + private bool m_ShowMini = false; + + public bool IsInited = false; + + private bool m_bForceShow = false; + + private bool m_bFakeHide = false; + + private uint m_offToken = 0u; + + private static readonly int SCROLL_HEIGHT = 90; + + private static readonly int HEIGHT_ADJUST = 3; + + private float presstime = 0f; + + private static bool start = false; + + private float last_time; + + protected override void Init() + { + XChatSmallView._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + XChatSmallView._doc.ChatSmallView = this; + this.m_bForceShow = false; + this.m_bFakeHide = false; + base.uiBehaviour.m_ChatPool.ReturnAll(false); + this.OnShowWindow(false); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowMailRedpoint(); + bool isInited = this.IsInited; + if (isInited) + { + this.ShowCacheMsg(); + } + this.SetExp(); + XSingleton.singleton.KillTimer(this.m_offToken); + this.m_offToken = XSingleton.singleton.SetTimer(3f, new XTimerMgr.ElapsedEventHandler(this.HanderOfflineTimer), null); + } + + private void HanderOfflineTimer(object o) + { + bool flag = !XChatSmallView.start && !this.IsInited; + if (flag) + { + this.CacheMsg(); + } + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_BgSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.DoOpenChatWindow)); + base.uiBehaviour.m_BgSpriteMini.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.DoOpenChatWindow)); + base.uiBehaviour.m_OpenWindow.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenMiniWindow)); + base.uiBehaviour.m_OpenWindowMini.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnOpenMainWindow)); + base.uiBehaviour.m_sprMailRed.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(DlgBase.singleton.OnMailClick)); + base.uiBehaviour.m_sprMailRed.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.TestChatMiniPress)); + } + + public void SetExp() + { + base.uiBehaviour.m_Exp.value = XSingleton.singleton.XPlayerData.Exp * 1f / XSingleton.singleton.XPlayerData.MaxExp; + base.uiBehaviour.m_ExpValue.SetText(string.Format("{0}/{1}", XSingleton.singleton.XPlayerData.Exp, XSingleton.singleton.XPlayerData.MaxExp)); + } + + private bool TestChatMiniPress(IXUISprite sp, bool press) + { + if (press) + { + this.presstime = Time.unscaledTime; + } + else + { + bool flag = Time.unscaledTime - this.presstime > 16f; + if (flag) + { + Transform transform = base.uiBehaviour.m_contentPanel.gameObject.transform; + int childCount = transform.childCount; + for (int i = 0; i < childCount; i++) + { + Transform child = transform.GetChild(i); + XSingleton.singleton.AddLog("t name:", child.name, " active:" + child.gameObject.activeSelf.ToString(), null, null, null, XDebugColor.XDebug_None); + bool activeSelf = child.gameObject.activeSelf; + if (activeSelf) + { + IXUILabel ixuilabel = child.Find("content").GetComponent("XUILabel") as IXUILabel; + XSingleton.singleton.AddLog(child.name, " ", ixuilabel.GetText(), null, null, null, XDebugColor.XDebug_None); + } + } + } + } + return true; + } + + public void CacheMsg() + { + bool flag = base.uiBehaviour == null; + if (!flag) + { + bool flag2 = XChatSmallView._doc == null; + if (flag2) + { + XChatSmallView._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + XChatSmallView._doc.ChatSmallView = this; + } + this.OnInitHistoryMsg(); + this.last_time = Time.time; + this.IsInited = false; + XChatSmallView.start = true; + base.uiBehaviour.m_ChatPool.ReturnAll(false); + base.uiBehaviour.m_ScrollView.SetPosition(0f); + } + } + + public override void OnUpdate() + { + bool flag = XChatSmallView.start; + if (flag) + { + bool flag2 = Time.time - this.last_time > 1f; + if (flag2) + { + XChatSmallView.start = false; + bool flag3 = !this.IsInited; + if (flag3) + { + this.ShowPanel(true); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag4 = specificDocument != null && specificDocument.MyTeamView != null && specificDocument.MyTeamView.IsVisible(); + if (flag4) + { + this.ShowChatMiniUI(new ShowSettingArgs + { + position = 1, + needforceshow = true, + forceshow = true, + needdepth = true, + depth = 4 + }); + } + } + this.ShowCacheMsg(); + this.IsInited = true; + } + } + } + + public void ShowCacheMsg() + { + base.uiBehaviour.m_ChatPool.ReturnAll(false); + base.uiBehaviour.m_ScrollView.SetPosition(0f); + this.OnCleanUpChatWindow(); + this.HandleOfflineInfoQuickily(); + bool flag = !this.IsInited || XChatDocument.offlineProcessList.Count <= 0; + if (flag) + { + ChatInfo chatInfo = new ChatInfo(); + chatInfo.mChannelId = ChatChannelType.World; + chatInfo.mSenderName = ""; + chatInfo.mContent = XStringDefineProxy.GetString("CHAT_INIT"); + XChatSmallView._doc.OnReceiveChatSmallInfo(chatInfo); + } + bool redpoint = DlgBase.singleton.HasNewFriendMsg(); + this.SetRedpoint(redpoint); + } + + public void ShowCurrTempMsg(string content, string name = "") + { + bool flag = this.IsInited && base.IsVisible() && !string.IsNullOrEmpty(name); + if (flag) + { + ChatInfo chatInfo = new ChatInfo(); + chatInfo.mChannelId = ChatChannelType.Curr; + chatInfo.mSenderName = name; + chatInfo.mContent = content; + XChatSmallView._doc.OnReceiveChatSmallInfo(chatInfo); + } + } + + public void SetScrollView(object obj) + { + bool flag = base.IsLoaded() && base.IsVisible(); + if (flag) + { + this.SetPivot(); + } + } + + protected override void OnUnload() + { + XChatSmallView._doc = null; + XSingleton.singleton.KillTimer(this.m_offToken); + base.OnUnload(); + } + + public void OnShowWindow(bool ismini) + { + this.m_ShowMini = ismini; + if (ismini) + { + base.uiBehaviour.m_BgSpriteMain.SetVisible(false); + base.uiBehaviour.m_BgSpriteMini.SetVisible(true); + } + else + { + base.uiBehaviour.m_BgSpriteMain.SetVisible(true); + base.uiBehaviour.m_BgSpriteMini.SetVisible(false); + base.uiBehaviour.m_ScrollView.SetPosition(0f); + } + } + + public void SetForceShow(bool bShow) + { + this.m_bForceShow = bShow; + if (bShow) + { + this.SetVisible(true, true); + } + else + { + bool bFakeHide = this.m_bFakeHide; + if (bFakeHide) + { + this.SetVisible(false, true); + } + } + } + + public void SetFakeHide(bool bHide) + { + this.m_bFakeHide = bHide; + if (bHide) + { + bool flag = !this.m_bForceShow; + if (flag) + { + this.SetVisible(false, true); + } + } + else + { + this.SetVisible(true, true); + } + } + + public void DoOpenChatWindow(IXUISprite sp) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + public void OnOpenMainWindow(IXUISprite sp) + { + this.OnShowWindow(false); + } + + public static void OnLabelMainWindow(string param) + { + DlgBase.singleton.DoOpenChatWindow(null); + } + + public void OnOpenMiniWindow(IXUISprite sp) + { + this.OnShowWindow(true); + } + + public void OnCleanUpChatWindow() + { + XChatSmallView._doc.RestrainSmallChatInfoNum(); + base.uiBehaviour.ChatUIInfoList.Clear(); + } + + public void InitUI(XMainClient.ChatInfo info) + { + bool flag = !base.IsVisible() || !base.IsLoaded(); + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_ChatPool.FetchGameObject(false); + this.InitChatUI(info, gameObject); + int allUIHeight = this.GetAllUIHeight(-1); + float num = (float)(55 - allUIHeight); + gameObject.transform.localPosition = new Vector3(0f, num); + XSmallChatInfo xsmallChatInfo = new XSmallChatInfo(); + xsmallChatInfo.info = info; + xsmallChatInfo.uiobject = gameObject; + base.uiBehaviour.ChatUIInfoList.Add(xsmallChatInfo); + base.uiBehaviour.m_ScrollView.NeedRecalcBounds(); + bool redpoint = DlgBase.singleton.HasNewFriendMsg(); + this.SetRedpoint(redpoint); + this.SetPivot(); + } + } + + public void SetRedpoint(bool show) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + bool flag2 = base.uiBehaviour.m_RedPoint != null; + if (flag2) + { + base.uiBehaviour.m_RedPoint.SetVisible(show && flag); + } + } + + public void HandleOfflineInfoQuickily() + { + bool flag = !base.IsVisible() || !base.IsLoaded(); + if (!flag) + { + List offlineProcessList = XChatDocument.offlineProcessList; + float num = 55f; + this.ConstrainChatUINum(); + for (int i = 0; i < offlineProcessList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_ChatPool.FetchGameObject(false); + this.InitChatUI(offlineProcessList[i], gameObject); + gameObject.transform.localPosition = new Vector3(0f, num); + XSmallChatInfo xsmallChatInfo = new XSmallChatInfo(); + xsmallChatInfo.info = offlineProcessList[i]; + xsmallChatInfo.uiobject = gameObject; + base.uiBehaviour.ChatUIInfoList.Add(xsmallChatInfo); + IXUILabel ixuilabel = gameObject.transform.Find("content").GetComponent("XUILabel") as IXUILabel; + num -= (float)((int)ixuilabel.GetPrintSize().y + XChatSmallView.HEIGHT_ADJUST); + } + base.uiBehaviour.m_ScrollView.NeedRecalcBounds(); + this.SetPivot(); + } + } + + public void OnReceieveChatInfos(List infos) + { + for (int i = 0; i < infos.Count; i++) + { + this.ConstrainChatUINum(); + bool isInited = this.IsInited; + if (isInited) + { + this.InitUI(infos[i]); + } + else + { + this.OnReceiveChatInfo(infos[i]); + } + } + infos.Clear(); + } + + public void OnReceiveChatInfo(XMainClient.ChatInfo info) + { + bool isInited = this.IsInited; + if (isInited) + { + this.ConstrainChatUINum(); + bool flag = !DlgBase.singleton.IsChannelEnable(info.mChannelId); + if (!flag) + { + bool flag2 = XChatSmallView._doc != null; + if (flag2) + { + this.InitUI(info); + bool flag3 = !base.IsVisible() && !XSingleton.singleton.IsPlaying && !DlgBase.singleton.IsOpening; + if (flag3) + { + this.SetVisible(true, true); + } + bool flag4 = base.uiBehaviour.m_MainPanel.GetAlpha() <= 0.7f; + if (flag4) + { + this.StartPlayAlphaEffect(); + } + } + } + } + } + + private void StartPlayAlphaEffect() + { + bool flag = base.IsVisible(); + if (flag) + { + base.uiBehaviour.m_BgTweenTool.SetTweenGroup(1); + base.uiBehaviour.m_BgTweenTool.PlayTween(true, -1f); + base.uiBehaviour.m_BgSprite.SetVisible(true); + } + } + + private void SetPivot() + { + bool flag = base.IsVisible(); + if (flag) + { + bool flag2 = this.GetAllUIHeight(-1) > XChatSmallView.SCROLL_HEIGHT; + if (flag2) + { + base.uiBehaviour.m_ScrollView.SetPosition(1f); + } + else + { + base.uiBehaviour.m_ScrollView.SetPosition(0f); + } + } + } + + public void OnInitHistoryMsg() + { + base.uiBehaviour.m_ChatPool.ReturnAll(false); + this.OnCleanUpChatWindow(); + List smallChatList = XChatSmallView._doc.GetSmallChatList(); + this.ConstrainChatUINum(); + for (int i = 0; i < smallChatList.Count; i++) + { + this.InitUI(smallChatList[i]); + } + XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.SetScrollView), null); + } + + public void EnableClickEvent(bool enable) + { + if (enable) + { + base.uiBehaviour.m_BgSprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.DoOpenChatWindow)); + } + else + { + base.uiBehaviour.m_BgSprite.RegisterSpriteClickEventHandler(null); + } + } + + public static string InitMiniChatUI(ChatInfo info, GameObject go) + { + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("content").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUISprite ixuisprite = go.transform.Find("channel").GetComponent("XUISprite") as IXUISprite; + string text = DlgBase.singleton.OnParseEmotion(info.mContent); + bool flag = string.IsNullOrEmpty(text) || (text.StartsWith(" ") && text.EndsWith(" ")); + if (flag) + { + text = "......"; + } + bool flag2 = info.mChannelId != ChatChannelType.System && info.isAudioChat; + if (flag2) + { + text = XSingleton.singleton.StringCombine(XLabelSymbolHelper.FormatImage("Chat/Chat", "yyicon5"), text); + } + XSingleton.singleton.CleanStringCombine(); + string s = "[f39354]"; + bool isSelfSender = info.isSelfSender; + if (isSelfSender) + { + s = "[54aaf3]"; + } + ChatChannelType mChannelId = info.mChannelId; + if (mChannelId != ChatChannelType.System) + { + if (mChannelId != ChatChannelType.Curr) + { + if (mChannelId != ChatChannelType.Group) + { + text = ChatItem.ParsePayComsume(info, text, true); + bool flag3 = string.IsNullOrEmpty(info.mSenderName); + if (flag3) + { + XSingleton.singleton.AppendString("[ffffff] ", text, "[-]"); + } + else + { + XSingleton.singleton.AppendString(XSingleton.singleton.GetChatDesignation(info.mCoverDesignationID, info.mSpecialDesignation, "")); + XSingleton.singleton.AppendString("[ffffff] ", s, info.mSenderName); + XSingleton.singleton.AppendString("[-]:", text); + XSingleton.singleton.AppendString("[-]"); + } + } + else + { + text = ChatItem.ParsePayComsume(info, text, true); + XSingleton.singleton.AppendString("[ffffff] ", s); + XSingleton.singleton.AppendString("[", info.group.groupchatName, "]"); + XSingleton.singleton.AppendString(XSingleton.singleton.GetChatDesignation(info.mCoverDesignationID, info.mSpecialDesignation, "")); + XSingleton.singleton.AppendString(info.mSenderName, "[-]:", text); + XSingleton.singleton.AppendString("[-]"); + } + } + else + { + string pattern = "\\[[0-9a-fA-F]{6}\\]"; + Regex regex = new Regex(pattern); + text = regex.Replace(text, "[ffffff]", 3); + text = ChatItem.ParsePayComsume(info, text, true); + XSingleton.singleton.AppendString(XSingleton.singleton.GetChatDesignation(info.mCoverDesignationID, info.mSpecialDesignation, "")); + XSingleton.singleton.AppendString("[ffffff] ", s, info.mSenderName); + XSingleton.singleton.AppendString("[-]:", text); + XSingleton.singleton.AppendString("[-]"); + } + } + else + { + XSingleton.singleton.AppendString("[e58db2] ", text, "[-]"); + } + XLabelSymbolHelper.RegisterHyperLinkClicks(ixuilabelSymbol); + ixuilabelSymbol.RegisterDefaultEventHandler(new HyperLinkClickEventHandler(XChatSmallView.OnLabelMainWindow)); + ixuilabelSymbol.InputText = XSingleton.singleton.GetString(); + XChatSmallView._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + string miniSpr = XChatSmallView._doc.GetRawData(info.mChannelId).miniSpr; + ixuisprite.SetSprite(miniSpr); + return XSingleton.singleton.GetString(); + } + + private void InitChatUI(ChatInfo info, GameObject go) + { + string inputText = XChatSmallView.InitMiniChatUI(info, go); + base.uiBehaviour.m_MiniTemplate.SetVisible(true); + base.uiBehaviour.m_MiniAudioTemplate.SetVisible(false); + base.uiBehaviour.m_MiniText.InputText = inputText; + } + + public int GetAllUIHeight(int count = -1) + { + int num = 0; + bool flag = count == -1 || count > base.uiBehaviour.ChatUIInfoList.Count; + if (flag) + { + count = base.uiBehaviour.ChatUIInfoList.Count; + } + for (int i = 0; i < count; i++) + { + GameObject uiobject = base.uiBehaviour.ChatUIInfoList[i].uiobject; + IXUILabel ixuilabel = uiobject.transform.Find("content").GetComponent("XUILabel") as IXUILabel; + num += (int)ixuilabel.GetPrintSize().y + XChatSmallView.HEIGHT_ADJUST; + } + return num; + } + + private bool ConstrainChatUINum() + { + bool flag = !base.IsVisible() || !base.IsLoaded(); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = (long)base.uiBehaviour.ChatUIInfoList.Count >= (long)((ulong)XChatSmallBehaviour.m_MaxShowMsg); + if (flag2) + { + int count = base.uiBehaviour.ChatUIInfoList.Count; + int num = 0; + while ((long)num <= (long)count - (long)((ulong)XChatSmallBehaviour.m_MaxShowMsg)) + { + XSmallChatInfo xsmallChatInfo = base.uiBehaviour.ChatUIInfoList[0]; + base.uiBehaviour.m_ChatPool.ReturnInstance(xsmallChatInfo.uiobject, false); + base.uiBehaviour.ChatUIInfoList.Remove(xsmallChatInfo); + num++; + } + for (int i = 0; i < base.uiBehaviour.ChatUIInfoList.Count; i++) + { + int allUIHeight = this.GetAllUIHeight(i); + float num2 = (float)(55 - allUIHeight); + base.uiBehaviour.ChatUIInfoList[i].uiobject.transform.localPosition = new Vector3(0f, num2); + } + } + result = false; + } + return result; + } + + public void SetDeepth(int depth) + { + this.m_uiBehaviour.m_panel.SetDepth(depth); + this.m_uiBehaviour.m_contentPanel.SetDepth(depth + 1); + } + + public void SetPosition(int group, bool bAnim) + { + this.StartPlayAlphaEffect(); + base.uiBehaviour.m_TweenTool.StopTween(); + base.uiBehaviour.m_TweenTool.SetTweenGroup(group); + if (bAnim) + { + base.uiBehaviour.m_TweenTool.PlayTween(true, -1f); + } + else + { + base.uiBehaviour.m_TweenTool.ResetTweenByGroup(false, group); + } + } + + public void ShowPanel(bool show) + { + base.uiBehaviour.m_MainPanel.SetVisible(show); + } + + public void ShowMailRedpoint() + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && XSingleton.singleton.SceneType != SceneType.SCENE_BIGMELEE_READY; + bool flag2 = DlgBase.singleton.IsVisible(); + bool flag3 = DlgBase.singleton.IsVisible(); + bool flag4 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Mail); + bool sysRedPointState = XSingleton.singleton.GetSysRedPointState(XSysDefine.XSys_Mail); + base.uiBehaviour.m_sprMailRed.SetVisible(flag4 && sysRedPointState && flag && !flag2 && !flag3); + } + + public void ShowChatDefaultMiniUI() + { + this.ShowChatMiniUI(new ShowSettingArgs + { + position = 0, + anim = false + }); + } + + public void ShowChatMiniUI(ShowSettingArgs args) + { + XSingleton.singleton.AddGreenLog("show miniui: " + args.forceshow.ToString(), null, null, null, null, null); + bool needforceshow = args.needforceshow; + if (needforceshow) + { + bool forceshow = args.forceshow; + if (forceshow) + { + this.SetForceShow(args.forceshow); + this.SetPosition(args.position, args.anim); + } + else + { + this.SetPosition(args.position, args.anim); + this.SetForceShow(args.forceshow); + } + } + else + { + this.SetVisible(true, true); + this.SetPosition(args.position, args.anim); + } + this.ShowMailRedpoint(); + this.EnableClickEvent(args.enablebackclick); + bool needdepth = args.needdepth; + if (needdepth) + { + this.SetDeepth(args.depth); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatSmallView.cs.meta b/Client/Assets/Scripts/XMainClient/XChatSmallView.cs.meta new file mode 100644 index 00000000..232c8f19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatSmallView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be3efaf8826cf0948a16e2332985b644 +timeCreated: 1611404460 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatUIOP.cs b/Client/Assets/Scripts/XMainClient/XChatUIOP.cs new file mode 100644 index 00000000..a30e4f1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatUIOP.cs @@ -0,0 +1,228 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatUIOP : XSingleton + { + private XChatView m_ChatView + { + get + { + return DlgBase.singleton; + } + } + + public Comparison CompareNewMsgCb + { + get + { + bool flag = this.m_CompareNewMsg == null; + if (flag) + { + this.m_CompareNewMsg = new Comparison(this.CompareNewMsg); + } + return this.m_CompareNewMsg; + } + } + + public XChatDocument _doc + { + get + { + return XDocuments.GetSpecificDocument(XChatDocument.uuID); + } + } + + public ChatFriendData CurrChatFriendData + { + get + { + return this._doc.FindFriendData(this.m_ChatView.ChatFriendId); + } + } + + private Comparison m_CompareNewMsg = null; + + private int CompareNewMsg(ChatFriendData a, ChatFriendData b) + { + int num = b.msgtime.CompareTo(a.msgtime); + int num2 = b.isOnline.CompareTo(a.isOnline); + int num3 = b.degreelevel.CompareTo(a.degreelevel); + bool flag = num != 0; + int result; + if (flag) + { + result = num; + } + else + { + bool flag2 = num2 != 0; + if (flag2) + { + result = num2; + } + else + { + bool flag3 = num3 != 0; + if (flag3) + { + result = num3; + } + else + { + result = b.roleid.CompareTo(a.roleid); + } + } + } + return result; + } + + public void RefreshFriendChat(XFriendData friendData, bool refreshUI) + { + ChatFriendData chatFriendData = this._doc.FindFriendData(friendData.roleid); + bool flag = chatFriendData != null; + if (flag) + { + chatFriendData.isfriend = true; + } + else + { + chatFriendData = new ChatFriendData(); + chatFriendData.isfriend = true; + chatFriendData.name = friendData.name; + chatFriendData.powerpoint = friendData.powerpoint; + chatFriendData.profession = friendData.profession; + chatFriendData.roleid = friendData.roleid; + chatFriendData.viplevel = friendData.viplevel; + chatFriendData.online = friendData.online; + chatFriendData.setid = friendData.setid; + chatFriendData.msgtime = this._doc.GetFriendChatInfoTime(chatFriendData.roleid); + this._doc.ChatFriendList.Add(chatFriendData); + } + if (refreshUI) + { + DlgBase.singleton.RefreshFriendUI(); + } + } + + public void RefreshAudioUI(ChatInfo info) + { + bool flag = !this.m_ChatView.IsVisible(); + if (!flag) + { + bool flag2 = info.mUIObject == null; + if (!flag2) + { + Transform transform = info.mUIObject.transform.Find("sign"); + IXUISpriteAnimation ixuispriteAnimation = transform.GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.SetFrameRate(5); + IXUISprite ixuisprite = info.mUIObject.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite; + info.isUIShowed = true; + ixuisprite.SetVisible(false); + XSingleton.singleton.SetTimer((float)info.AudioIntTime / 1000f, new XTimerMgr.ElapsedEventHandler(this.OnStopSignPlay), ixuispriteAnimation); + } + } + } + + public void RefreshVoiceUI(ChatInfo info) + { + XRadioDocument specificDocument = XDocuments.GetSpecificDocument(XRadioDocument.uuID); + specificDocument.MuteSounds(true); + XSingleton.singleton.InsertAutoPlayList(info, false); + this.RefreshAudioUI(info); + } + + public void OnStopSignPlay(object ob) + { + IXUISpriteAnimation ixuispriteAnimation = (IXUISpriteAnimation)ob; + bool flag = ixuispriteAnimation != null; + if (flag) + { + ixuispriteAnimation.SetFrameRate(0); + ixuispriteAnimation.Reset(); + } + } + + public void OnStartPlayAudio(IXUISprite sp) + { + int id = (int)sp.ID; + ChatInfo chatInfoById = this._doc.GetChatInfoById(id); + bool flag = chatInfoById == null; + if (flag) + { + XSingleton.singleton.AddLog("chatinfo is null ", id.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XSingleton.singleton.ClearPlayList(); + bool isAudioPlayed = chatInfoById.isAudioPlayed; + if (isAudioPlayed) + { + this.RefreshVoiceUI(chatInfoById); + } + else + { + bool flag2 = chatInfoById.mChannelId == ChatChannelType.World || chatInfoById.mChannelId == ChatChannelType.Guild; + if (flag2) + { + List chatInfoList = this._doc.GetChatInfoList(chatInfoById.mChannelId); + List list = new List(); + for (int i = 0; i < chatInfoList.Count; i++) + { + bool flag3 = chatInfoList[i].mTime.CompareTo(chatInfoById.mTime) >= 0 && chatInfoList[i].isAudioChat && !chatInfoList[i].isAudioPlayed; + if (flag3) + { + list.Add(chatInfoList[i]); + } + } + XSingleton.singleton.AutoPlayAudioList = list; + XSingleton.singleton.StartAutoPlay(true, true); + } + else + { + bool flag4 = chatInfoById.mChannelId == ChatChannelType.Friends; + if (flag4) + { + List friendChatInfoList = this._doc.GetFriendChatInfoList(chatInfoById.mSenderId); + List list2 = new List(); + for (int j = 0; j < friendChatInfoList.Count; j++) + { + bool flag5 = friendChatInfoList[j].mTime.CompareTo(chatInfoById.mTime) >= 0 && friendChatInfoList[j].isAudioChat && !friendChatInfoList[j].isAudioPlayed; + if (flag5) + { + list2.Add(friendChatInfoList[j]); + } + } + XSingleton.singleton.AutoPlayAudioList = list2; + XSingleton.singleton.StartAutoPlay(true, true); + } + } + } + } + } + + public bool OnSendFlowerClicked(IXUIButton btn) + { + int id = (int)btn.ID; + ChatInfo chatInfoById = this._doc.GetChatInfoById(id); + bool flag = chatInfoById == null; + bool result; + if (flag) + { + XSingleton.singleton.AddLog("[OnSendFlowerClicked]chatinfo is null, " + id.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + result = false; + } + else + { + DlgBase.singleton.ShowBoard(chatInfoById.mSenderId, chatInfoById.mSenderName); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatUIOP.cs.meta b/Client/Assets/Scripts/XMainClient/XChatUIOP.cs.meta new file mode 100644 index 00000000..835bd1d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatUIOP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8c59cf1df627f2448c16d177e677be6 +timeCreated: 1611404895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatView.cs b/Client/Assets/Scripts/XMainClient/XChatView.cs new file mode 100644 index 00000000..64d82612 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatView.cs @@ -0,0 +1,2607 @@ +using System; +using System.Collections.Generic; +using System.Text.RegularExpressions; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatView : DlgBase + { + public XChatView.ChatGroupState groupState + { + get + { + return this._groupState; + } + set + { + this.ShowGroup(value); + this._groupState = value; + } + } + + public XChatView.ChatFriendState friendState + { + get + { + return this._friendState; + } + set + { + this.ShowFriend(value == XChatView.ChatFriendState.FRIENDS); + this._friendState = value; + } + } + + private bool isFighting + { + get + { + return XSingleton.singleton.CurrentStage.Stage == EXStage.World || XSingleton.singleton.SceneType == SceneType.SCENE_BIGMELEE_READY; + } + } + + public XChatDocument ChatDoc + { + get + { + return XDocuments.GetSpecificDocument(XChatDocument.uuID); + } + } + + public int ChatIdIndex + { + get + { + return this.m_ChatIdIndex; + } + set + { + this.m_ChatIdIndex = value; + } + } + + public bool IsInited + { + get + { + return this.Inited; + } + } + + public XChatUIOP UIOP + { + get + { + return this.m_UIOP; + } + } + + public ChatChannelType CurrentSpeakChannel + { + get + { + return this.currentSpeakChannel; + } + set + { + this.currentSpeakChannel = value; + } + } + + public override string fileName + { + get + { + return "GameSystem/ChatNewDlg"; + } + } + + public string PrivateChatCurrName + { + get + { + return this.m_sPrivateChatCurrName; + } + set + { + this.m_sPrivateChatCurrName = value; + } + } + + public SetEffectInfo Info + { + get + { + bool flag = this.m_iSetEffectInfo == null; + if (flag) + { + this.m_iSetEffectInfo = new SetEffectInfo(); + } + return this.m_iSetEffectInfo; + } + set + { + this.m_iSetEffectInfo = value; + } + } + + public override int group + { + get + { + return 1; + } + } + + public uint worldSpeakTimes + { + get + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = specificDocument != null && specificDocument.PayMemberPrivilege != null; + uint result; + if (flag) + { + bool flag2 = specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + int num = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Court).ChatCount - specificDocument.PayMemberPrivilege.usedChatCount; + result = (flag2 ? (this._worldSpeadTimes + (uint)num) : this._worldSpeadTimes); + } + else + { + result = this._worldSpeadTimes; + } + return result; + } + } + + private XChatView.ChatGroupState _groupState = XChatView.ChatGroupState.GROUPS; + + private XChatView.ChatFriendState _friendState = XChatView.ChatFriendState.FRIENDS; + + private ChatChannelType cacheChannelType = ChatChannelType.World; + + private List cacheLoopList = new List(); + + private Action mOnSend; + + private InputUIType mInputType; + + private string mLinkContent; + + private Transform[] mTransTab = new Transform[11]; + + private IXUICheckBox[] mCheckbox = new IXUICheckBox[11]; + + private XChatDocument _doc = null; + + private ChatChannelType currentSpeakChannel = ChatChannelType.World; + + private SetEffectInfo m_iSetEffectInfo = null; + + private const int CHAT_CHANNEL_NUM = 11; + + private bool Inited = false; + + private int m_ChatIdIndex = 1; + + private XChatUIOP m_UIOP = XSingleton.singleton; + + public static bool m_YunvaInited = false; + + private bool m_CancelRecord = false; + + private Vector2 m_DragDistance = Vector2.zero; + + private uint _GetFlowerCDToken; + + private DateTime[] m_lastChatTime = new DateTime[15]; + + public List chatContentItem = new List(); + + public ulong ChatFriendId = 0UL; + + public ulong ChatGroupId = 0UL; + + private string m_sPrivateChatCurrName = ""; + + public bool cacheShow = false; + + public uint _worldSpeadTimes; + + public ChatChannelType activeChannelType = ChatChannelType.World; + + private ChatChannelType[] showChannelIds = new ChatChannelType[] + { + ChatChannelType.World, + ChatChannelType.Guild, + ChatChannelType.Friends, + ChatChannelType.Curr, + ChatChannelType.Team, + ChatChannelType.Partner, + ChatChannelType.Group, + ChatChannelType.Broadcast, + ChatChannelType.Spectate, + ChatChannelType.Battle, + ChatChannelType.System + }; + + private ChatChannelType[] showVoiceBar = new ChatChannelType[] + { + ChatChannelType.World, + ChatChannelType.Curr, + ChatChannelType.Team, + ChatChannelType.Guild + }; + + private ChatInfo mChatInfo; + + private bool mIsVoice; + + public enum ChatGroupState + { + GROUPS, + CHATS + } + + public enum ChatFriendState + { + FRIENDS, + CHATS + } + + private void RegistGroupEvent() + { + base.uiBehaviour.m_sprGroupQuit.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGroupQuitClick)); + base.uiBehaviour.m_sprGroupClear.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGroupClearClick)); + base.uiBehaviour.m_sprGroupBind.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGroupBindClick)); + base.uiBehaviour.m_sprGroupBack.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGroupBackClick)); + base.uiBehaviour.m_sprMember.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMemberClick)); + base.uiBehaviour.m_sprList.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnListClick)); + base.uiBehaviour.m_sprMore.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMoreClick)); + base.uiBehaviour.m_sprGroupCreate.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnGroupCreateClick)); + } + + private void ShowGroup(XChatView.ChatGroupState state) + { + bool flag = state == XChatView.ChatGroupState.GROUPS; + base.uiBehaviour.m_sprGroupBack.SetVisible(!flag); + base.uiBehaviour.m_sprGroupBind.SetVisible(!flag); + base.uiBehaviour.m_sprGroupClear.SetVisible(flag); + base.uiBehaviour.m_sprGroupQuit.SetVisible(!flag); + base.uiBehaviour.m_sprMore.SetVisible(!flag); + base.uiBehaviour.m_lblGroupChat.SetVisible(!flag); + base.uiBehaviour.m_sprGroupCreate.SetVisible(flag); + this.m_uiBehaviour.m_friendView.gameobject.SetActive(false); + base.uiBehaviour.m_loopView.gameobject.SetActive(!flag); + base.uiBehaviour.m_TextBoard.SetVisible(!flag); + this.m_uiBehaviour.m_groupView.gameobject.SetActive(flag); + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + base.uiBehaviour.m_sprMember.SetVisible(!flag && specificDocument.currGroup != null && specificDocument.currGroup.captain); + base.uiBehaviour.m_sprList.SetVisible(!flag && specificDocument.currGroup != null && !specificDocument.currGroup.captain); + bool flag2 = specificDocument.currGroup != null; + if (flag2) + { + base.uiBehaviour.m_lblGroupChat.SetText(XStringDefineProxy.GetString("CHAT_GROUP_SIGN", new object[] + { + specificDocument.currGroup.name + })); + } + } + + public void OnFocus() + { + for (int i = 0; i < 11; i++) + { + bool flag = this.showChannelIds[i] == ChatChannelType.Group; + if (flag) + { + this.mCheckbox[i].ForceSetFlag(true); + break; + } + } + } + + public void ProcessGroupMsg() + { + bool flag = base.IsVisible() && this.activeChannelType == ChatChannelType.Group; + if (flag) + { + bool flag2 = this.groupState == XChatView.ChatGroupState.GROUPS; + if (flag2) + { + this.RefreshGrouplist(); + } + else + { + this.JumpToGrouplist(null); + } + } + } + + private void JumpToGrouplist(IXUISprite spr) + { + this.ShowGroup(XChatView.ChatGroupState.GROUPS); + this.RefreshGrouplist(); + } + + public void JumpToGroupChat(IXUISprite spr) + { + this.groupState = XChatView.ChatGroupState.CHATS; + this.ShowGroup(XChatView.ChatGroupState.CHATS); + this.ShowMore(false); + this.RefreshLoopScroll(ChatChannelType.Group); + } + + private void OnMoreClick(IXUISprite spr) + { + bool flag = base.uiBehaviour.m_sprGroupQuit.IsVisible(); + this.ShowMore(!flag); + } + + private void ShowMore(bool show) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + bool flag = false; + bool flag2 = specificDocument.currGroup != null; + if (flag2) + { + flag = specificDocument.currGroup.captain; + } + base.uiBehaviour.m_sprMember.gameObject.SetActive(show && flag); + base.uiBehaviour.m_sprList.gameObject.SetActive(show && !flag); + base.uiBehaviour.m_sprGroupQuit.gameObject.SetActive(show); + } + + private void OnMemberClick(IXUISprite spr) + { + DlgBase.singleton.SetVisible(true, true); + } + + private void OnGroupClearClick(IXUISprite spr) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + specificDocument.ReqClearGroup(); + bool flag = specificDocument.groups != null; + if (flag) + { + specificDocument.groups.Clear(); + } + this.RefreshGrouplist(); + } + + private void OnListClick(IXUISprite spr) + { + DlgBase.singleton.SetVisible(true, true); + } + + private bool IsGroupWith(ChatInfo data) + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.activeChannelType == ChatChannelType.Group && this._friendState == XChatView.ChatFriendState.CHATS; + return flag && data.group != null && this.ChatGroupId == data.group.groupchatID; + } + + public bool HasNewGroupMsg() + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + List chatInfoList = this._doc.GetChatInfoList(ChatChannelType.Group); + bool flag = chatInfoList != null; + if (flag) + { + for (int i = 0; i < chatInfoList.Count; i++) + { + bool flag2 = !this.IsGroupWith(chatInfoList[i]) && !chatInfoList[i].isUIShowed && !chatInfoList[i].isSelfSender; + if (flag2) + { + return true; + } + } + } + return false; + } + + public bool HasRedpointGroupMsg(ulong groupid) + { + List groupChatInfoList = this._doc.GetGroupChatInfoList(DlgBase.singleton.ChatGroupId); + bool flag = groupChatInfoList != null; + if (flag) + { + for (int i = 0; i < groupChatInfoList.Count; i++) + { + bool flag2 = !groupChatInfoList[i].isUIShowed && !groupChatInfoList[i].isSelfSender; + if (flag2) + { + return true; + } + } + } + return false; + } + + private void OnGroupBindClick(IXUISprite spr) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string @string = XStringDefineProxy.GetString("CHAT_CLEAR"); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string3 = XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnOKClearGroups), null); + } + + private bool OnOKClearGroups(IXUIButton btn) + { + return true; + } + + public void OnGroupQuitClick(IXUISprite spr) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + CBrifGroupInfo currGroup = specificDocument.currGroup; + bool flag = currGroup == null; + if (!flag) + { + bool captain = currGroup.captain; + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string key = captain ? "CHAT_GROUP_QUIT1" : "CHAT_GROUP_QUIT2"; + string @string = XStringDefineProxy.GetString(key); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string3 = XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnModalDlgOK), null); + } + } + + private void OnGroupBackClick(IXUISprite spr) + { + this.JumpToGrouplist(spr); + } + + private void OnGroupCreateClick(IXUISprite spr) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetCallBack(new CreatechatGroupCall(this.OnCreateGroup)); + } + + private bool OnCreateGroup(string groupname) + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + return specificDocument.ReqCreateGroupChat(groupname, 1u); + } + + private bool OnModalDlgOK(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this.groupState = XChatView.ChatGroupState.GROUPS; + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + CBrifGroupInfo currGroup = specificDocument.currGroup; + bool flag = currGroup == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("quit group id is null", null, null, null, null, null); + } + specificDocument.ReqQuitGroup(currGroup.id); + return true; + } + + private void RegistFriendEvent() + { + base.uiBehaviour.m_sprFriendAdd.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddFriendClick)); + base.uiBehaviour.m_sprFriendBack.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.JumpToFriends)); + base.uiBehaviour.m_sprFriendClear.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClearFriendClick)); + base.uiBehaviour.m_sprFriendChat.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.ShowFriendsUI)); + } + + private void RefreshFriendList() + { + List friends = this._doc.FetchFriendsIcons(); + this.RefreshFriendsScroll(friends); + } + + public void RefreshFriendUI() + { + this.RefreshFriendUI(this.friendState); + } + + public void RefreshFriendUI(XChatView.ChatFriendState _state) + { + bool flag = this.ChatFriendId == 0UL || this._doc.ChatFriendList.Count <= 0 || _state == XChatView.ChatFriendState.FRIENDS; + if (flag) + { + this.friendState = XChatView.ChatFriendState.FRIENDS; + this.RefreshFriendList(); + } + else + { + this.friendState = XChatView.ChatFriendState.CHATS; + this.RefreshLoopScroll(ChatChannelType.Friends); + } + } + + private void OnAddFriendClick(IXUISprite spr) + { + DlgBase.singleton.AddFriendById(this.ChatFriendId); + } + + private void OnClearFriendClick(IXUISprite spr) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.uiBehaviour.m_OKButton.ID = 0UL; + string @string = XStringDefineProxy.GetString("CHAT_CLEAR"); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string3 = XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnOKClearFriends), null); + } + + private bool OnOKClearFriends(IXUIButton btn) + { + ulong id = btn.ID; + this.OnSendClearFriend(id); + return true; + } + + public void OnSendClearFriend(ulong uid) + { + this.ChatFriendId = 0UL; + this._doc.ClearFriendMsg(uid); + this.RefreshFriendUI(XChatView.ChatFriendState.FRIENDS); + this.ShowTabFriendRed(); + DlgBase.singleton.SetVisible(false, true); + RpcC2M_ClearPrivateChatList rpcC2M_ClearPrivateChatList = new RpcC2M_ClearPrivateChatList(); + rpcC2M_ClearPrivateChatList.oArg.roleid = uid; + XSingleton.singleton.Send(rpcC2M_ClearPrivateChatList); + } + + private void ShowFriendsUI(IXUISprite spr) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIEND_UI_LOCK"), "fece00"); + } + else + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Friends, 0UL); + } + } + + private void JumpToFriends(IXUISprite spr) + { + this.friendState = XChatView.ChatFriendState.FRIENDS; + this.RefreshFriendUI(); + this.ShowFriend(true); + } + + public void JumpToChats(IXUISprite spr) + { + this.friendState = XChatView.ChatFriendState.CHATS; + this.ChatFriendId = spr.ID; + this.ResetRedpointMsg(DlgBase.singleton.ChatFriendId); + this.ShowTabFriendRed(); + this.ShowFriend(false); + this.RefreshLoopScroll(ChatChannelType.Friends); + } + + private void ShowFriend(bool isFriends) + { + ulong chatFriendId = DlgBase.singleton.ChatFriendId; + bool flag = chatFriendId > 0UL && DlgBase.singleton.IsMyFriend(chatFriendId); + this.m_uiBehaviour.m_friendView.gameobject.SetActive(isFriends); + this.m_uiBehaviour.m_loopView.gameobject.SetActive(!isFriends); + base.uiBehaviour.m_groupView.gameobject.SetActive(false); + base.uiBehaviour.m_TextBoard.SetVisible(!isFriends); + this.m_uiBehaviour.m_sprFriendAdd.SetVisible(!isFriends && !flag); + this.m_uiBehaviour.m_sprFriendClear.SetVisible(isFriends && this._doc.ChatFriendList.Count > 0); + this.m_uiBehaviour.m_sprFriendBack.SetVisible(!isFriends); + this.m_uiBehaviour.m_lblFriendTip.SetVisible(!isFriends); + this.m_uiBehaviour.m_sprFriendChat.SetVisible(isFriends && this._doc.ChatFriendList.Count <= 0); + bool flag2 = !isFriends; + if (flag2) + { + ChatFriendData currChatFriendData = this.UIOP.CurrChatFriendData; + bool flag3 = currChatFriendData != null; + if (flag3) + { + this.m_uiBehaviour.m_lblFriendTip.SetText(XStringDefineProxy.GetString("CHAT_WITH", new object[] + { + currChatFriendData.name + })); + } + } + } + + public void ResetRedpointMsg(ulong uid) + { + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + } + List friendChatInfoList = this._doc.GetFriendChatInfoList(uid); + for (int i = 0; i < friendChatInfoList.Count; i++) + { + friendChatInfoList[i].isUIShowed = true; + } + for (int j = 0; j < this._doc.ChatFriendList.Count; j++) + { + bool flag2 = this._doc.ChatFriendList[j].roleid == uid; + if (flag2) + { + this._doc.ChatFriendList[j].hasOfflineRead = false; + break; + } + } + } + + public bool HasRedpointMsg(ulong uid) + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + List chatFriendList = this._doc.ChatFriendList; + for (int i = 0; i < chatFriendList.Count; i++) + { + bool flag = chatFriendList[i].roleid == uid && chatFriendList[i].hasOfflineRead; + if (flag) + { + return true; + } + } + List friendChatInfoList = this._doc.GetFriendChatInfoList(uid); + for (int j = 0; j < friendChatInfoList.Count; j++) + { + bool flag2 = !friendChatInfoList[j].isUIShowed && !friendChatInfoList[j].isSelfSender; + if (flag2) + { + return true; + } + } + return false; + } + + private bool IsChatWith(ChatInfo data) + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.activeChannelType == ChatChannelType.Friends && this._friendState == XChatView.ChatFriendState.CHATS; + return flag && (this.ChatFriendId == data.mReceiverId || this.ChatFriendId == data.mSenderId); + } + + private bool IsInFriendsList(ChatInfo data, List friends) + { + for (int i = 0; i < friends.Count; i++) + { + ulong roleid = friends[i].roleid; + ulong num = data.isSelfSender ? data.mReceiverId : data.mSenderId; + bool flag = roleid == num; + if (flag) + { + return true; + } + } + return false; + } + + public bool HasNewFriendMsg() + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + List chatFriendList = this._doc.ChatFriendList; + for (int i = 0; i < chatFriendList.Count; i++) + { + bool hasOfflineRead = chatFriendList[i].hasOfflineRead; + if (hasOfflineRead) + { + return true; + } + } + List chatInfoList = this._doc.GetChatInfoList(ChatChannelType.Friends); + bool flag = chatInfoList != null; + if (flag) + { + for (int j = 0; j < chatInfoList.Count; j++) + { + bool flag2 = !this.IsChatWith(chatInfoList[j]) && !chatInfoList[j].isUIShowed && !chatInfoList[j].isSelfSender && this.IsInFriendsList(chatInfoList[j], chatFriendList); + if (flag2) + { + return true; + } + } + } + return false; + } + + private void LoopInit() + { + GameObject tpl = base.uiBehaviour.m_loopView.GetTpl(); + bool flag = tpl != null && tpl.GetComponent() == null; + if (flag) + { + tpl.AddComponent(); + } + tpl = base.uiBehaviour.m_systemView.GetTpl(); + bool flag2 = tpl != null && tpl.GetComponent() == null; + if (flag2) + { + tpl.AddComponent(); + } + tpl = base.uiBehaviour.m_friendView.GetTpl(); + bool flag3 = tpl != null && tpl.GetComponent() == null; + if (flag3) + { + tpl.AddComponent(); + } + tpl = base.uiBehaviour.m_groupView.GetTpl(); + bool flag4 = tpl != null && tpl.GetComponent() == null; + if (flag4) + { + tpl.AddComponent(); + } + } + + private void SetLoopActive(ChatChannelType type) + { + base.uiBehaviour.m_systemView.gameobject.SetActive(type == ChatChannelType.System); + bool flag = type != ChatChannelType.Friends; + if (flag) + { + base.uiBehaviour.m_loopView.gameobject.SetActive(type != ChatChannelType.System); + base.uiBehaviour.m_friendView.gameobject.SetActive(false); + base.uiBehaviour.m_groupView.gameobject.SetActive(false); + bool flag2 = type != ChatChannelType.System; + if (flag2) + { + base.uiBehaviour.m_loopView.ResetScroll(); + } + } + float num = (float)((type == ChatChannelType.Friends || type == ChatChannelType.Group || this.IsVoicebarShow()) ? -24 : 0); + base.uiBehaviour.m_tranOffset.localPosition = new Vector3(0f, num, 0f); + } + + public void RefreshLoopScroll(ChatChannelType type) + { + bool flag = base.IsVisible(); + if (flag) + { + bool flag2 = type == ChatChannelType.Friends; + if (flag2) + { + bool flag3 = this.friendState == XChatView.ChatFriendState.CHATS; + if (flag3) + { + List friendChatInfoList = this._doc.GetFriendChatInfoList(DlgBase.singleton.ChatFriendId); + base.uiBehaviour.m_loopView.SetClipSize(new Vector2(434f, 504f)); + this.RefreshLoopScroll(type, friendChatInfoList); + this.cacheChannelType = type; + } + else + { + this.friendState = XChatView.ChatFriendState.FRIENDS; + this.RefreshFriendList(); + } + } + else + { + bool flag4 = type == ChatChannelType.Group; + if (flag4) + { + bool flag5 = this.groupState == XChatView.ChatGroupState.CHATS; + if (flag5) + { + List groupChatInfoList = this._doc.GetGroupChatInfoList(DlgBase.singleton.ChatGroupId); + base.uiBehaviour.m_loopView.SetClipSize(new Vector2(434f, 504f)); + this.RefreshLoopScroll(type, groupChatInfoList); + this.cacheChannelType = type; + } + else + { + this.groupState = XChatView.ChatGroupState.GROUPS; + } + } + else + { + bool flag6 = type == ChatChannelType.System; + if (flag6) + { + List chatInfoList = this._doc.GetChatInfoList(type); + this.RefreshSystemScroll(chatInfoList); + } + else + { + List chatInfoList2 = this._doc.GetChatInfoList(type); + base.uiBehaviour.m_loopView.SetClipSize(this.IsVoicebarShow() ? new Vector2(434f, 504f) : new Vector2(434f, 544f)); + this.RefreshLoopScroll(type, chatInfoList2); + this.cacheChannelType = type; + } + } + } + } + } + + private void RefreshLoopScroll(ChatChannelType type, List chats) + { + List list = new List(); + bool flag = chats != null; + if (flag) + { + for (int i = 0; i < chats.Count; i++) + { + chats[i].LoopID = XSingleton.singleton.XHash(XSingleton.singleton.StringCombine(chats[i].mContent, chats[i].mSenderPaymemberid.ToString())); + list.Add(chats[i]); + } + } + this.cacheLoopList = list; + bool flag2 = base.uiBehaviour.m_loopView.IsScrollLast() || this.cacheChannelType != type || this.cacheChannelType == ChatChannelType.Friends || this.cacheChannelType == ChatChannelType.Group; + if (flag2) + { + bool activeInHierarchy = base.uiBehaviour.m_loopView.gameobject.activeInHierarchy; + if (activeInHierarchy) + { + base.uiBehaviour.m_loopView.Init(list, new DelegateHandler(this.RefreshItem), new Action(this.OnDragFinish), (list.Count > 5) ? 1 : 0, false); + } + } + } + + private void OnDragFinish() + { + base.uiBehaviour.m_loopView.Init(this.cacheLoopList, new DelegateHandler(this.RefreshItem), new Action(this.OnDragFinish), (this.cacheLoopList.Count > 5) ? 1 : 0, false); + } + + private void RefreshFriendsScroll(List friends) + { + List list = new List(); + bool flag = friends != null; + if (flag) + { + for (int i = 0; i < friends.Count; i++) + { + list.Add(new ChatFriendData + { + isfriend = friends[i].isfriend, + name = friends[i].name, + powerpoint = friends[i].powerpoint, + profession = friends[i].profession, + roleid = friends[i].roleid, + msgtime = friends[i].msgtime, + viplevel = friends[i].viplevel, + setid = friends[i].setid, + LoopID = XSingleton.singleton.XHash(friends[i].name + Time.unscaledTime.ToString()) + }); + } + } + base.uiBehaviour.m_friendView.Init(list, new DelegateHandler(this.RefreshFriendItem), null, 0, false); + } + + private void RefreshGrouplist() + { + GroupChatDocument specificDocument = XDocuments.GetSpecificDocument(GroupChatDocument.uuID); + HashSet groups = specificDocument.groups; + bool flag = groups != null; + if (flag) + { + List list = new List(); + foreach (CBrifGroupInfo item in groups) + { + list.Add(item); + } + list.Sort(new Comparison(this.SortGroup)); + base.uiBehaviour.m_groupView.Init(list, new DelegateHandler(this.RefreshGroupItem), null, 0, true); + } + } + + private int SortGroup(LoopItemData x, LoopItemData y) + { + CBrifGroupInfo cbrifGroupInfo = x as CBrifGroupInfo; + CBrifGroupInfo cbrifGroupInfo2 = y as CBrifGroupInfo; + return cbrifGroupInfo.createTime.CompareTo(cbrifGroupInfo2.createTime); + } + + private void RefreshSystemScroll(List chats) + { + List list = new List(); + bool flag = chats != null; + if (flag) + { + for (int i = 0; i < chats.Count; i++) + { + chats[i].LoopID = XSingleton.singleton.XHash(chats[i].mContent); + list.Add(chats[i]); + } + } + base.uiBehaviour.m_systemView.Init(list, new DelegateHandler(this.RefreshSystemItem), null, (list.Count > 5) ? 1 : 0, false); + } + + private void RefreshItem(ILoopItemObject item, LoopItemData data) + { + ChatInfo chatInfo = data as ChatInfo; + bool flag = chatInfo != null; + if (flag) + { + item.GetObj().GetComponent().Refresh(chatInfo); + } + else + { + XSingleton.singleton.AddErrorLog("info is nil", null, null, null, null, null); + } + } + + private void RefreshFriendItem(ILoopItemObject item, LoopItemData data) + { + ChatFriendData chatFriendData = data as ChatFriendData; + bool flag = chatFriendData != null; + if (flag) + { + item.GetObj().GetComponent().Refresh(chatFriendData); + } + else + { + XSingleton.singleton.AddErrorLog("friend info is null", null, null, null, null, null); + } + } + + private void RefreshGroupItem(ILoopItemObject item, LoopItemData data) + { + CBrifGroupInfo cbrifGroupInfo = data as CBrifGroupInfo; + bool flag = cbrifGroupInfo != null; + if (flag) + { + item.GetObj().GetComponent().Refresh(cbrifGroupInfo); + } + else + { + XSingleton.singleton.AddErrorLog("group info is null", null, null, null, null, null); + } + } + + private void RefreshSystemItem(ILoopItemObject item, LoopItemData data) + { + ChatInfo chatInfo = data as ChatInfo; + bool flag = chatInfo != null; + if (flag) + { + item.GetObj().GetComponent().Refresh(chatInfo); + } + else + { + XSingleton.singleton.AddErrorLog("system info is nil", null, null, null, null, null); + } + } + + private void InitTabs() + { + for (int i = 0; i < 11; i++) + { + int num = (int)this.showChannelIds[i]; + Transform transform = base.uiBehaviour.transform.Find("Bg/tabs/tab" + num); + this.mTransTab[i] = transform; + IXUICheckBox ixuicheckBox = transform.Find("template/Bg").GetComponent("XUICheckBox") as IXUICheckBox; + this.mCheckbox[i] = ixuicheckBox; + } + } + + private void ResetTabs() + { + for (int i = 0; i < this.mCheckbox.Length; i++) + { + this.mCheckbox[i].bChecked = false; + } + } + + private void SetDepth() + { + int num = 16; + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = specificDocument != null && specificDocument.MyTeamView != null && specificDocument.MyTeamView.IsVisible(); + if (flag) + { + num = 13; + } + base.uiBehaviour.m_panelText.SetDepth(num + 1); + base.uiBehaviour.m_panelRoot.SetDepth(num); + base.uiBehaviour.m_loopView.SetDepth(num + 1); + base.uiBehaviour.m_friendView.SetDepth(num + 1); + base.uiBehaviour.m_systemView.SetDepth(num + 1); + base.uiBehaviour.m_panelSubMenu.SetDepth(num + 2); + } + + private void ShowTextboard(ChatChannelType channel) + { + bool flag = channel == ChatChannelType.World && !this.ChatDoc.CheckLevelLimit(channel); + if (flag) + { + base.uiBehaviour.m_TextBoard.SetVisible(false); + base.uiBehaviour.m_LimitBoard.SetVisible(true); + } + else + { + base.uiBehaviour.m_LimitBoard.SetVisible(false); + base.uiBehaviour.m_TextBoard.SetVisible(channel != ChatChannelType.System); + } + } + + private void ShowTabs() + { + int num = 0; + IXUISprite ixuisprite = base.uiBehaviour.transform.Find("Bg/tabs/tab1").GetComponent("XUISprite") as IXUISprite; + int spriteHeight = ixuisprite.spriteHeight; + int i = 0; + while (i < 11) + { + ChatChannelType chatChannelType = this.showChannelIds[i]; + Transform transform = base.uiBehaviour.transform.Find("Bg/tabs/tab" + (int)chatChannelType); + bool flag = transform != null; + if (flag) + { + bool flag2 = chatChannelType == ChatChannelType.Guild; + if (flag2) + { + bool flag3 = this.CheckGuildOpen(); + this.mCheckbox[i].ForceSetFlag(false); + transform.gameObject.SetActive(flag3); + bool flag4 = !flag3 && this.activeChannelType == ChatChannelType.Guild; + if (flag4) + { + this.activeChannelType = ChatChannelType.World; + } + bool flag5 = !flag3; + if (flag5) + { + goto IL_4B2; + } + } + else + { + bool flag6 = chatChannelType == ChatChannelType.Team; + if (flag6) + { + bool flag7 = this.CheckTeamOpen(); + this.mCheckbox[i].ForceSetFlag(false); + transform.gameObject.SetActive(flag7); + bool flag8 = !flag7 && this.activeChannelType == ChatChannelType.Team; + if (flag8) + { + this.activeChannelType = ChatChannelType.World; + } + bool flag9 = !flag7; + if (flag9) + { + goto IL_4B2; + } + } + else + { + bool flag10 = chatChannelType == ChatChannelType.Friends; + if (flag10) + { + transform.gameObject.SetActive(!this.isFighting); + bool isFighting = this.isFighting; + if (isFighting) + { + bool flag11 = this.activeChannelType == ChatChannelType.Friends; + if (flag11) + { + this.activeChannelType = ChatChannelType.World; + } + goto IL_4B2; + } + } + else + { + bool flag12 = chatChannelType == ChatChannelType.Spectate; + if (flag12) + { + bool flag13 = DlgBase.singleton.IsVisible(); + this.mCheckbox[i].ForceSetFlag(false); + transform.gameObject.SetActive(flag13); + bool flag14 = !flag13; + if (flag14) + { + bool flag15 = this.activeChannelType == ChatChannelType.Spectate; + if (flag15) + { + this.activeChannelType = ChatChannelType.World; + } + goto IL_4B2; + } + } + else + { + bool flag16 = chatChannelType == ChatChannelType.Curr; + if (flag16) + { + bool flag17 = !DlgBase.singleton.IsVisible(); + bool flag18 = !flag17; + if (flag18) + { + this.mCheckbox[i].bChecked = false; + } + transform.gameObject.SetActive(flag17); + bool flag19 = !flag17; + if (flag19) + { + bool flag20 = this.activeChannelType == ChatChannelType.Curr; + if (flag20) + { + this.activeChannelType = ChatChannelType.World; + } + goto IL_4B2; + } + } + else + { + bool flag21 = chatChannelType == ChatChannelType.Partner; + if (flag21) + { + bool flag22 = this.CheckDragonGuildOpen(); + this.mCheckbox[i].ForceSetFlag(false); + transform.gameObject.SetActive(flag22); + bool flag23 = !flag22; + if (flag23) + { + bool flag24 = this.activeChannelType == ChatChannelType.Partner; + if (flag24) + { + this.activeChannelType = ChatChannelType.World; + } + goto IL_4B2; + } + } + else + { + bool flag25 = chatChannelType == ChatChannelType.Battle; + if (flag25) + { + bool flag26 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && this.ChatDoc.GetBattleRaw().battle == 1; + bool flag27 = !flag26; + if (flag27) + { + this.mCheckbox[i].bChecked = false; + } + transform.gameObject.SetActive(flag26); + bool flag28 = !flag26; + if (flag28) + { + bool flag29 = this.activeChannelType == ChatChannelType.Battle; + if (flag29) + { + this.activeChannelType = ChatChannelType.World; + } + goto IL_4B2; + } + } + else + { + bool flag30 = chatChannelType == ChatChannelType.Broadcast; + if (flag30) + { + this.mCheckbox[i].ForceSetFlag(false); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + int value = specificDocument.GetValue(XOptionsDefine.OD_RADIO); + int @int = XSingleton.singleton.GetInt("RadioChatOpen"); + bool flag31 = (long)@int <= (long)((ulong)XSingleton.singleton.XPlayerData.Level); + bool flag32 = value == 1 && flag31; + transform.gameObject.SetActive(flag32); + bool flag33 = !flag32; + if (flag33) + { + bool flag34 = this.activeChannelType == ChatChannelType.Broadcast; + if (flag34) + { + this.activeChannelType = ChatChannelType.World; + } + goto IL_4B2; + } + } + else + { + bool flag35 = chatChannelType == ChatChannelType.Group; + if (flag35) + { + this.mCheckbox[i].ForceSetFlag(false); + int int2 = XSingleton.singleton.GetInt("GroupChatOpen"); + bool flag36 = (long)int2 <= (long)((ulong)XSingleton.singleton.XPlayerData.Level); + bool flag37 = flag36; + transform.gameObject.SetActive(flag37); + bool flag38 = !flag37; + if (flag38) + { + bool flag39 = this.activeChannelType == ChatChannelType.Group; + if (flag39) + { + this.activeChannelType = ChatChannelType.World; + } + goto IL_4B2; + } + } + } + } + } + } + } + } + } + } + transform.transform.localPosition = new Vector3(0f, (float)(272 - spriteHeight * num), 0f); + num++; + } + IL_4B2: + i++; + continue; + goto IL_4B2; + } + } + + public void ShowBtns() + { + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Mail); + base.uiBehaviour.m_sprMail.SetVisible(!this.isFighting && flag); + base.uiBehaviour.m_sprSet.SetVisible(!this.isFighting); + } + + public void ShowMailRedpoint() + { + bool flag = base.IsVisible(); + if (flag) + { + bool sysRedPointState = XSingleton.singleton.GetSysRedPointState(XSysDefine.XSys_Mail); + base.uiBehaviour.m_sprMailRedpoint.SetVisible(sysRedPointState); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.ShowMailRedpoint(); + } + } + + public void ShowTabFriendRed() + { + bool flag = this.HasNewFriendMsg(); + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + ChatChannelType chatChannelType = ChatChannelType.Friends; + Transform transform = base.uiBehaviour.transform.Find("Bg/tabs/tab" + (int)chatChannelType); + GameObject gameObject = transform.Find("template/Bg/redpoint").gameObject; + bool flag3 = gameObject != null; + if (flag3) + { + gameObject.SetActive(flag); + } + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetRedpoint(flag); + } + } + + private bool CheckTeamOpen() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = specificDocument.MyTeam == null || specificDocument.MyTeam.teamBrief.teamID == 0; + return !flag; + } + + public bool CheckGuildOpen() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + return specificDocument.bInGuild; + } + + public bool CheckDragonGuildOpen() + { + XDragonGuildDocument specificDocument = XDocuments.GetSpecificDocument(XDragonGuildDocument.uuID); + return specificDocument.IsInDragonGuild(); + } + + public void RegistLinkSend(string content, Action onSend) + { + this.mLinkContent = content; + this.mInputType = InputUIType.Linked; + this.mOnSend = onSend; + XSingleton.singleton.AddLog("length: ", content.Length.ToString(), " content:", content, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_Input.SetText(content); + } + + private void DispatchLinkClick() + { + bool flag = this.mOnSend != null; + if (flag) + { + this.mOnSend(); + } + this.mInputType = InputUIType.Normal; + this.ResetInput(); + } + + private void OnUIInputChanged(IXUIInput input) + { + bool flag = this.mInputType == InputUIType.Linked; + if (flag) + { + bool flag2 = input.GetText().Length != this.mLinkContent.Length; + if (flag2) + { + this.mInputType = InputUIType.Normal; + this.ResetInput(); + } + } + } + + private void OnUIInputSubmit(IXUIInput input) + { + bool flag = (int) Application.platform == 7; + if (flag) + { + this.DoSendTextChat(null); + } + } + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + this._doc.ChatView = this; + this.InitTabs(); + for (int i = 0; i < 11; i++) + { + ulong id = (ulong)((long)this.showChannelIds[i]); + this.mCheckbox[i].RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.SelectChatChannel)); + this.mCheckbox[i].ID = id; + bool flag = this.showChannelIds[i] == this.activeChannelType; + if (flag) + { + this.mCheckbox[i].bChecked = true; + } + } + this.LoopInit(); + XOptionsView singleton = DlgBase.singleton; + singleton.OnOptionClose = (Action)Delegate.Combine(singleton.OnOptionClose, new Action(this.RefreshVoiceBarStatus)); + this.mInputType = InputUIType.Normal; + this.Inited = true; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_ChangeToVoice.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnVoiceChatButton)); + base.uiBehaviour.m_ChangeToVoice.RegisterDragEventHandler(new ButtonDragEventHandler(this.OnVoiceButtonDrag)); + base.uiBehaviour.m_DoSendChat.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoSendTextChat)); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_btnAdd.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtmAddClick)); + base.uiBehaviour.m_GetFlowerBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetFlower)); + this.RegistFriendEvent(); + this.RegistGroupEvent(); + base.uiBehaviour.m_sprMail.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMailClick)); + base.uiBehaviour.m_sprSet.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSetClick)); + base.uiBehaviour.m_sprXinyue.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnXinyueClick)); + base.uiBehaviour.m_sprFriend.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnFriendsClick)); + base.uiBehaviour.m_chxAutoVoice.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnAutoVoiceClick)); + base.uiBehaviour.m_Input.RegisterChangeEventHandler(new InputChangeEventHandler(this.OnUIInputChanged)); + base.uiBehaviour.m_Input.RegisterSubmitEventHandler(new InputSubmitEventHandler(this.OnUIInputSubmit)); + base.uiBehaviour.m_sprTq.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMemberPrivilegeClick)); + } + + private void OnMemberPrivilegeClick(IXUISprite btn) + { + bool isFighting = this.isFighting; + if (!isFighting) + { + DlgBase.singleton.CheckActiveMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.SetDepth(); + this.cacheShow = true; + this.ShowTabs(); + this.ShowBtns(); + this.ShowMailRedpoint(); + bool flag = this.activeChannelType == ChatChannelType.Friends; + if (flag) + { + DlgBase.singleton.QueryRoleState(); + } + this.DoSelectChannel(this.activeChannelType); + this.SwitchTab(this.activeChannelType); + XSingleton.singleton.SetAutoPlayChannel(this.activeChannelType); + this.ResetInput(); + base.uiBehaviour.m_sprXinyueRed.SetVisible(XSingleton.singleton.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GC_XiaoYueGuanJia)); + base.uiBehaviour.m_Flower.SetActive(false); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetRelatedDlg(this); + } + } + + protected override void OnHide() + { + this.ResetTabs(); + this.mInputType = InputUIType.Normal; + this.mOnSend = null; + XSingleton.singleton.SetAutoPlayChannel(ChatChannelType.DEFAULT); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetRelatedDlg(null); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + base.OnHide(); + } + + protected override void OnUnload() + { + this._doc = null; + base.OnUnload(); + } + + public void TryCloseChat(IXUIDlg dlg) + { + bool flag = base.IsVisible() && dlg.fileName != this.fileName && dlg.isHideChat; + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + public void TryShowChat(IXUIDlg dlg) + { + List showedUI = XSingleton.singleton.GetShowedUI(); + bool flag = !XSingleton.singleton.IsUIShowed() && showedUI.Count < 3; + if (flag) + { + bool flag2 = dlg.fileName != this.fileName && this.cacheShow; + if (flag2) + { + this.SetVisible(true, true); + } + } + bool flag3 = base.IsVisible(); + if (flag3) + { + this.ShowMailRedpoint(); + } + } + + private void DoChatWith(ulong friendId) + { + this.ChatFriendId = friendId; + this.activeChannelType = ChatChannelType.Friends; + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, new DlgBase.OnAnimationOver(this.DoChatRefresh)); + } + else + { + this.DoChatRefresh(); + } + } + + public void DoChatRefresh() + { + ChatFriendData chatFriendData = this._doc.FindFriendData(this.ChatFriendId); + bool flag = chatFriendData != null; + if (flag) + { + chatFriendData.msgtime = DateTime.Now; + this.SelectChatFriends(this.ChatFriendId); + } + } + + public void SelectChatFriends(object obj) + { + this.ChatFriendId = (ulong)obj; + this.activeChannelType = ChatChannelType.Friends; + this.SwitchTab(ChatChannelType.Friends); + this.RefreshFriendUI(XChatView.ChatFriendState.CHATS); + } + + public void SelectChatTeam() + { + this.SwitchTab(ChatChannelType.Team); + } + + public void ShowMyChatVoiceInfo(ChatVoiceInfo info) + { + this.mChatInfo = new ChatInfo(); + bool isLocalPath = info.isLocalPath; + if (isLocalPath) + { + this.mChatInfo.mChannelId = this.activeChannelType; + } + else + { + this.mChatInfo.mChannelId = info.channel + 1; + } + this.mChatInfo.voice = info; + this.mChatInfo.mSenderId = info.sendIndexId; + this.mChatInfo.mSenderName = info.sendName; + this.mChatInfo.mChatType = ChatType.SelfVoice; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + this.mChatInfo.mSenderVip = specificDocument.VipLevel; + this.mChatInfo.mServerProfession = (uint)XSingleton.singleton.XPlayerData.Profession; + this.mChatInfo.isSelfSender = true; + this.mChatInfo.mTime = DateTime.Now; + this.mChatInfo.isAudioPlayed = true; + bool flag = this.mChatInfo.mChannelId == ChatChannelType.Friends; + if (flag) + { + this.mChatInfo.mReceiverId = this.ChatFriendId; + this.mChatInfo.mReceiverName = this.m_sPrivateChatCurrName; + } + this.mChatInfo.mContent = ""; + this._doc.ReceiveChatInfo(this.mChatInfo); + bool flag2 = base.IsVisible(); + if (flag2) + { + IXUILabelSymbol ixuilabelSymbol = this.mChatInfo.mUIObject.transform.Find("voice/content").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = " "; + } + } + + public bool CheckWorldSendMsg(bool isVoice, ButtonClickEventHandler okClickHandler = null, ChatChannelType channel = ChatChannelType.DEFAULT) + { + bool result = true; + bool flag = okClickHandler == null; + if (flag) + { + okClickHandler = new ButtonClickEventHandler(this.OKClickEventHandler); + } + bool flag2 = channel == ChatChannelType.DEFAULT; + if (flag2) + { + channel = this.activeChannelType; + } + bool flag3 = channel == ChatChannelType.World; + if (flag3) + { + bool flag4 = this.worldSpeakTimes > 0u; + if (flag4) + { + return result; + } + bool flag5 = XSingleton.singleton.Doc.XBagDoc.GetItemCount(51) < 1UL; + if (flag5) + { + string[] array = XSingleton.singleton.GetValue("ChatItemCost").Split(XGlobalConfig.SequenceSeparator); + ulong num = 1UL; + ulong.TryParse(array[1], out num); + int num2 = DateTime.Now.Month + DateTime.Now.Day; + int @int = PlayerPrefs.GetInt("chat_timestamp", 0); + this.mIsVoice = isVoice; + bool flag6 = @int == 0 || @int != num2; + if (flag6) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string @string = XStringDefineProxy.GetString("CHAT_BUY", new object[] + { + num + }); + string string2 = XStringDefineProxy.GetString("CHAT_BUY_OK"); + string string3 = XStringDefineProxy.GetString("CHAT_BUY_CANCEL"); + DlgBase.singleton.ShowNoTip(XTempTipDefine.OD_CHAT_WORLD); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(okClickHandler, new ButtonClickEventHandler(this.CheckSelect)); + } + else + { + okClickHandler(null); + } + result = false; + } + } + return result; + } + + public bool CheckSelect(IXUIButton select) + { + bool tempTip = DlgBase.singleton.GetTempTip(XTempTipDefine.OD_CHAT_WORLD); + bool flag = tempTip; + if (flag) + { + int num = DateTime.Now.Month + DateTime.Now.Day; + PlayerPrefs.SetInt("chat_timestamp", num); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.DoClose(null); + } + return true; + } + + private bool OKClickEventHandler(IXUIButton button) + { + this.CheckSelect(button); + string[] array = XSingleton.singleton.GetValue("ChatItemCost").Split(XGlobalConfig.SequenceSeparator); + ulong num = 7UL; + ulong num2 = 1UL; + ulong.TryParse(array[0], out num); + ulong.TryParse(array[1], out num2); + bool flag = XSingleton.singleton.Doc.XBagDoc.GetItemCount(7) >= num2; + if (flag) + { + XSingleton.singleton.AddLog("buy lanniao msg send", null, null, null, null, null, XDebugColor.XDebug_None); + XPurchaseDocument specificDocument = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + bool flag2 = this.mIsVoice; + if (flag2) + { + XSingleton.singleton.ResendLastWorldChat(); + } + else + { + string text = base.uiBehaviour.m_ChatText.GetText(); + this.SendChatContent(text, this.activeChannelType, true, null, false, 0UL, 0f, false, false); + this.ResetInput(); + } + } + else + { + DlgBase.singleton.ShowBorad((ItemEnum)num); + this.ResetInput(); + } + DlgBase.singleton.DoCancel(button); + return true; + } + + public void ShowOtherChatVoiceInfo(ChatVoiceInfo info) + { + ChatInfo chatInfo = new ChatInfo(); + bool isLocalPath = info.isLocalPath; + if (isLocalPath) + { + chatInfo.mChannelId = this.CurrentSpeakChannel; + } + else + { + chatInfo.mChannelId = info.channel; + } + chatInfo.voice = info; + chatInfo.mSenderId = info.sendIndexId; + chatInfo.mSenderName = info.sendName; + chatInfo.mChatType = ChatType.OtherVoice; + chatInfo.isSelfSender = false; + chatInfo.mContent = info.txt; + chatInfo.mTime = DateTime.Now; + bool flag = chatInfo.mChannelId == ChatChannelType.Team; + if (flag) + { + chatInfo.isAudioPlayed = true; + } + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(chatInfo.mSenderId); + bool flag2 = friendDataById != null; + if (flag2) + { + chatInfo.mSenderVip = friendDataById.viplevel; + chatInfo.mServerProfession = friendDataById.profession; + } + else + { + chatInfo.mSenderVip = 0u; + uint mServerProfession = 1u; + bool flag3 = uint.TryParse(info.sendProf, out mServerProfession); + if (flag3) + { + chatInfo.mServerProfession = mServerProfession; + } + else + { + chatInfo.mServerProfession = 1u; + } + } + bool flag4 = this._doc == null; + if (flag4) + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + } + bool flag5 = info.channel == ChatChannelType.Team && XSingleton.singleton.IsAutoPlayEnable; + if (flag5) + { + XSingleton.singleton.AddAutoPlayList(chatInfo); + } + this._doc.ReceiveChatInfo(chatInfo); + } + + public void PrivateChatTo(ChatFriendData data) + { + bool flag = this._doc == null; + if (flag) + { + this._doc = this.ChatDoc; + } + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag2 = xplayerData == null || data.roleid == xplayerData.RoleID; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_NOT_SELF"), "fece00"); + } + else + { + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_FORBIT_WORLD"), "fece00"); + } + else + { + ChatFriendData chatFriendData = this._doc.FindFriendData(data.roleid); + bool flag4 = chatFriendData == null; + if (flag4) + { + this._doc.ChatFriendList.Add(data); + } + else + { + chatFriendData.msgtime = DateTime.Now; + } + this.DoChatWith(data.roleid); + } + } + } + + private bool IsContentValid(string content, ChatChannelType type) + { + bool flag = content == XStringDefineProxy.GetString("CHAT_DEFAULT"); + bool result; + if (flag) + { + result = false; + } + else + { + content = content.Replace("{@", "").Replace("@}", ""); + string pattern = "[\\u4e00-\\u9fa5]"; + string text = Regex.Replace(content, pattern, "aa", RegexOptions.IgnoreCase); + bool flag2 = this._doc == null; + if (flag2) + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + this._doc.ChatView = this; + } + uint length = this._doc.GetRawData(type).length; + text = text.Trim(); + bool flag3 = length != 0u && (long)text.Length > (long)((ulong)length); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_TOO_LONG"), "fece00"); + result = false; + } + else + { + bool flag4 = text.Length == 0; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_TOO_SHORT"), "fece00"); + result = false; + } + else + { + string pattern2 = "\\[[0-9a-fA-F]{6}\\]"; + string pattern3 = "\\[[a-fA-F\\-]{1}\\]"; + string pattern4 = "\\[[0-9a-fA-F]{2}\\]"; + bool flag5 = Regex.IsMatch(content, pattern2) || Regex.IsMatch(content, pattern3) || Regex.IsMatch(content, pattern4) || content.Contains("[color=#"); + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_INVALID"), "fece00"); + result = false; + } + else + { + result = true; + } + } + } + } + return result; + } + + public void SendVoiceChat(string content, ChatChannelType channelType, ulong audioid, float audiotime) + { + this.SendChatContent(content, channelType, true, null, false, audioid, audiotime, false, false); + } + + private string HandlerContent(string content) + { + content = content.Replace("[b]", "").Replace("[/b]", "").Replace("[\\b]", ""); + content = content.Replace("[i]", "").Replace("[/i]", "").Replace("[\\i]", ""); + content = content.Replace("[u]", "").Replace("[/u]", "").Replace("[\\u]", ""); + content = content.Replace("[s]", "").Replace("[/s]", "").Replace("[\\s]", ""); + content = content.Replace("[sub]", "").Replace("[/sub]", "").Replace("[\\sub]", ""); + content = content.Replace("[url=http", "").Replace("[/url]", "").Replace("[\\url]", ""); + bool flag = content.IndexOf("{@") != -1; + if (flag) + { + string pattern = "\\{\\@[0-9]*[A-Za-z0-9_\\u4e00-\\u9fa5]*\\@\\}"; + MatchCollection matchCollection = Regex.Matches(content, pattern, RegexOptions.IgnoreCase); + bool flag2 = matchCollection != null; + if (flag2) + { + bool flag3 = matchCollection.Count > 0; + if (flag3) + { + content += "e@equip"; + } + for (int i = 0; i < matchCollection.Count; i++) + { + string value = matchCollection[i].Value; + string text = value.Replace("{@", "").Replace("@}", ""); + int num = -1; + int.TryParse(text.Split(new char[] + { + '_' + })[0], out num); + bool flag4 = num <= 0 || num - 1 >= this.chatContentItem.Count; + if (flag4) + { + content = content.Replace(value, text.Replace(num + "_", "")); + } + else + { + string text2 = this.chatContentItem[num - 1]; + text2 = text2.Replace(";", ""); + int num2 = -1; + int.TryParse(text2.Split(new char[] + { + '_' + })[5], out num2); + bool flag5 = num2 <= 0; + if (flag5) + { + content = content.Replace(value, text.Replace(num + "_", "")); + } + else + { + bool flag6 = num != num2; + if (flag6) + { + content = content.Replace(value, text.Replace(num + "_", "")); + } + else + { + string str = text2.Split(new char[] + { + '_' + })[4]; + content = content.Replace(value, "{@" + str + "@}"); + content += this.chatContentItem[num - 1]; + } + } + } + } + } + } + bool flag7 = content.IndexOf("\\\\") == 0; + if (flag7) + { + bool flag8 = content.IndexOf("\\\\n") == 0; + if (flag8) + { + string str2 = content.Substring(0, 3); + string str3 = content.Substring(3, content.Length - 3).Replace("\\\\n", "//n").Replace("\\", "/"); + content = str2 + str3; + } + else + { + string str4 = content.Substring(0, 2); + string str5 = content.Substring(2, content.Length - 2).Replace("\\\\n", "//n").Replace("\\", "/"); + content = str4 + str5; + } + } + else + { + content = content.Replace("\\n", "/n").Replace("\\", "/"); + } + return XSingleton.singleton.FilterForbidWord(content); + } + + public void SendChatContent(string content, ChatChannelType channelType, bool selfReceive = true, List param = null, bool bIsSystem = false, ulong audioid = 0UL, float audiotime = 0f, bool isRecruit = false, bool isDragonGuildRecruit = false) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = !this.IsContentValid(content, channelType) || xplayerData == null; + if (!flag) + { + bool flag2 = channelType == ChatChannelType.Friends && DlgBase.singleton.IsBlock(this.ChatFriendId); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_BLOCK_2"), "fece00"); + } + else + { + content = this.HandlerContent(content); + RpcC2M_chat rpcC2M_chat = new RpcC2M_chat(); + rpcC2M_chat.oArg.chatinfo = new KKSG.ChatInfo(); + rpcC2M_chat.oArg.chatinfo.channel = (uint)channelType; + bool flag3 = channelType == ChatChannelType.Friends; + if (flag3) + { + rpcC2M_chat.oArg.chatinfo.dest = new ChatDest(); + rpcC2M_chat.oArg.chatinfo.dest.roleid.Add(this.ChatFriendId); + ChatInfo chatInfo = new ChatInfo(); + chatInfo.mSenderName = xplayerData.Name; + chatInfo.mSenderId = xplayerData.RoleID; + chatInfo.mReceiverId = this.ChatFriendId; + chatInfo.mReceiverName = ((this.UIOP.CurrChatFriendData == null) ? "" : this.UIOP.CurrChatFriendData.name); + chatInfo.mReceiverVip = ((this.UIOP.CurrChatFriendData == null) ? 1u : this.UIOP.CurrChatFriendData.viplevel); + chatInfo.mRecieverProfession = ((this.UIOP.CurrChatFriendData == null) ? 1u : this.UIOP.CurrChatFriendData.profession); + chatInfo.mReciverPowerPoint = ((this.UIOP.CurrChatFriendData == null) ? 0u : this.UIOP.CurrChatFriendData.powerpoint); + chatInfo.mContent = content; + chatInfo.mChannelId = ChatChannelType.Friends; + chatInfo.mChatType = ChatType.SelfText; + chatInfo.isSelfSender = true; + chatInfo.mAudioId = audioid; + chatInfo.mAudioTime = (uint)audiotime; + bool flag4 = DlgBase.singleton.IsBlock(this.ChatFriendId); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(DlgBase.singleton.GetBlockFriendNameById(this.ChatFriendId) + XStringDefineProxy.GetString("CHAT_BAN_LIST"), "fece00"); + return; + } + } + bool flag5 = channelType == ChatChannelType.Group; + if (flag5) + { + rpcC2M_chat.oArg.chatinfo.groupchatinfo = new GroupChatTeamInfo(); + rpcC2M_chat.oArg.chatinfo.groupchatinfo.groupchatID = DlgBase.singleton.ChatGroupId; + } + rpcC2M_chat.oArg.chatinfo.info = content; + bool flag6 = param != null; + if (flag6) + { + for (int i = 0; i < param.Count; i++) + { + rpcC2M_chat.oArg.chatinfo.param.Add(param[i]); + } + } + rpcC2M_chat.oArg.chatinfo.param.Add(new ChatParam()); + rpcC2M_chat.oArg.chatinfo.issystem = bIsSystem; + rpcC2M_chat.oArg.chatinfo.isRecruit = isRecruit; + rpcC2M_chat.oArg.chatinfo.audioUid = audioid; + rpcC2M_chat.oArg.chatinfo.audioLen = ((audiotime >= 1000f) ? ((uint)audiotime) : 1000u); + rpcC2M_chat.oArg.chatinfo.isDragonGuildRecruit = isDragonGuildRecruit; + XSingleton.singleton.Send(rpcC2M_chat); + } + } + } + + public void SendExternalFriendChat(string content, ChatInfo recvInfo, ulong audioid = 0UL, float audiotime = 0f, List param = null) + { + bool flag = DlgBase.singleton.IsBlock(recvInfo.mReceiverId); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_BLOCK_2"), "fece00"); + } + else + { + this.HandlerContent(content); + RpcC2M_chat rpcC2M_chat = new RpcC2M_chat(); + rpcC2M_chat.oArg.chatinfo = new KKSG.ChatInfo(); + rpcC2M_chat.oArg.chatinfo.channel = 3u; + rpcC2M_chat.oArg.chatinfo.dest = new ChatDest(); + rpcC2M_chat.oArg.chatinfo.dest.roleid.Add(recvInfo.mReceiverId); + ChatInfo chatInfo = new ChatInfo(); + chatInfo.mSenderName = XSingleton.singleton.XPlayerData.Name; + chatInfo.mSenderId = XSingleton.singleton.XPlayerData.RoleID; + chatInfo.mReceiverId = recvInfo.mReceiverId; + chatInfo.mReceiverName = recvInfo.mReceiverName; + chatInfo.mReceiverVip = recvInfo.mReceiverVip; + chatInfo.mRecieverProfession = recvInfo.mRecieverProfession; + chatInfo.mReciverPowerPoint = recvInfo.mReciverPowerPoint; + chatInfo.mContent = content; + chatInfo.mChannelId = ChatChannelType.Friends; + chatInfo.mChatType = ChatType.SelfText; + chatInfo.isSelfSender = true; + chatInfo.mAudioId = audioid; + chatInfo.mAudioTime = (uint)audiotime; + this.ProcessText(chatInfo, param); + bool flag2 = this._doc != null; + if (flag2) + { + this._doc.ReceiveChatInfo(chatInfo); + } + rpcC2M_chat.oArg.chatinfo.info = content; + bool flag3 = param != null; + if (flag3) + { + for (int i = 0; i < param.Count; i++) + { + rpcC2M_chat.oArg.chatinfo.param.Add(param[i]); + } + } + rpcC2M_chat.oArg.chatinfo.param.Add(new ChatParam()); + rpcC2M_chat.oArg.chatinfo.issystem = false; + rpcC2M_chat.oArg.chatinfo.isRecruit = false; + rpcC2M_chat.oArg.chatinfo.audioUid = audioid; + rpcC2M_chat.oArg.chatinfo.audioLen = ((audiotime >= 1000f) ? ((uint)audiotime) : 1000u); + XSingleton.singleton.Send(rpcC2M_chat); + } + } + + private void ProcessText(ChatInfo chatInfo, List chatParam = null) + { + bool flag = chatParam == null; + if (!flag) + { + for (int i = 0; i < chatParam.Count; i++) + { + ChatParam chatParam2 = chatParam[i]; + bool flag2 = chatParam2 == null; + if (!flag2) + { + for (int j = 0; j < chatInfo.mContent.Length; j++) + { + bool flag3 = chatInfo.mContent[j] == '$'; + if (flag3) + { + string str = ""; + bool flag4 = chatParam2.link != null && chatInfo.mContent[j + 1] == 'L'; + if (flag4) + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + str = specificDocument.ParseLink(chatParam2); + } + string str2 = chatInfo.mContent.Substring(0, j); + string str3 = chatInfo.mContent.Substring(j + 2, chatInfo.mContent.Length - (j + 2)); + chatInfo.mContent = str2 + str + str3; + break; + } + } + } + } + } + } + + public void AddChat(string content, ChatChannelType type, List param = null, bool bIsSystem = false) + { + this.SendChatContent(content, type, true, param, bIsSystem, 0UL, 0f, false, false); + } + + public void SetActiveChannel(ChatChannelType type) + { + this.activeChannelType = type; + bool flag = base.IsVisible(); + if (flag) + { + this.SwitchTab(type); + } + } + + public void ShowChannel(ChatChannelType type) + { + this.SetVisibleWithAnimation(true, null); + XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.SwitchTab), type); + } + + public void SwitchTab(object obj) + { + int num = (int)obj; + for (int i = 0; i < 11; i++) + { + bool flag = num == (int)this.showChannelIds[i]; + if (flag) + { + this.mCheckbox[i].bChecked = true; + } + } + } + + public void RefeshWorldSpeakTimes() + { + bool flag = base.uiBehaviour != null && base.uiBehaviour.m_lblWorldTimes != null; + if (flag) + { + base.uiBehaviour.m_lblWorldTimes.SetVisible(this.worldSpeakTimes > 0u); + bool flag2 = this.worldSpeakTimes > 0u && this.activeChannelType == ChatChannelType.World; + if (flag2) + { + base.uiBehaviour.m_worldTween.ResetTween(true); + base.uiBehaviour.m_worldTween.PlayTween(true, -1f); + } + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag3 = specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + PayMemberPrivilege payMemberPrivilege = specificDocument.PayMemberPrivilege; + bool flag4 = flag3 && payMemberPrivilege != null && payMemberPrivilege.usedChatCount < specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Court).ChatCount; + if (flag4) + { + base.uiBehaviour.m_lblWorldTimes.SetText(XStringDefineProxy.GetString("CHAT_WORLD2", new object[] + { + "[ffff00]" + this.worldSpeakTimes + "[-]" + })); + } + else + { + base.uiBehaviour.m_lblWorldTimes.SetText(XStringDefineProxy.GetString("CHAT_WORLD2", new object[] + { + this.worldSpeakTimes + })); + } + } + bool flag5 = base.uiBehaviour != null && base.uiBehaviour.m_ChatTextCost != null; + if (flag5) + { + base.uiBehaviour.m_ChatTextCost.SetText((this.worldSpeakTimes > 0u) ? XStringDefineProxy.GetString("DRAW_FREE") : XStringDefineProxy.GetString("DRAW_BIRD")); + } + } + + public void DoSelectChannel(ChatChannelType type) + { + this.activeChannelType = type; + this.ShowTabFriendRed(); + this.RefeshWorldSpeakTimes(); + base.uiBehaviour.m_objFriendBar.SetActive(type == ChatChannelType.Friends); + base.uiBehaviour.m_objGroupBar.SetActive(type == ChatChannelType.Group); + base.uiBehaviour.m_lblWorldTimes.SetVisible(type == ChatChannelType.World && this.worldSpeakTimes > 0u); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Court); + base.uiBehaviour.m_sprTq.gameObject.SetActive(type == ChatChannelType.World && this.worldSpeakTimes > 0u); + base.uiBehaviour.m_sprTq.SetSprite(specificDocument.GetMemberPrivilegeIcon(MemberPrivilege.KingdomPrivilege_Court)); + int chatCount = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Court).ChatCount; + base.uiBehaviour.m_lblPriviledge.SetText(XStringDefineProxy.GetString("CHAT_PRIVILEDGE", new object[] + { + chatCount + })); + base.uiBehaviour.m_sprTq.SetGrey(flag); + base.uiBehaviour.m_lblPriviledge.SetEnabled(flag); + base.uiBehaviour.m_sprFriend.SetAlpha((float)((XSingleton.singleton.CurrentStage.Stage == EXStage.Hall) ? 1 : 0)); + this.RefreshVoiceBarStatus(); + this.ShowTextboard(type); + this.m_uiBehaviour.m_ChatTextCost.SetVisible(type == ChatChannelType.World); + this.SetLoopActive(type); + bool flag2 = type == ChatChannelType.Friends; + if (flag2) + { + this.RefreshFriendUI(this.friendState); + } + else + { + bool flag3 = type == ChatChannelType.Group; + if (flag3) + { + this.groupState = XChatView.ChatGroupState.GROUPS; + this.RefreshGrouplist(); + } + else + { + this.RefreshLoopScroll(type); + } + } + XSingleton.singleton.SetAutoPlayChannel(type); + } + + private void RefreshVoiceBarStatus() + { + bool flag = base.IsVisible(); + if (flag) + { + base.uiBehaviour.m_btns.SetActive(this.IsVoicebarShow()); + base.uiBehaviour.m_lblAutoVoice.SetText(XStringDefineProxy.GetString("CHAT_AutoPlay", new object[] + { + this.ChatDoc.GetRawData(this.activeChannelType).name + })); + base.uiBehaviour.m_chxAutoVoice.bChecked = this.GetAutoVoiceSetting(this.activeChannelType); + } + } + + private bool IsVoicebarShow() + { + bool result = false; + int i = 0; + int num = this.showVoiceBar.Length; + while (i < num) + { + bool flag = this.activeChannelType == this.showVoiceBar[i]; + if (flag) + { + result = true; + break; + } + i++; + } + return result; + } + + private bool GetAutoVoiceSetting(ChatChannelType type) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + return Convert.ToBoolean(specificDocument.GetValue(this.Channel2OptionDef(type))); + } + + private void SetAutoVoice(ChatChannelType type, bool val) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(this.Channel2OptionDef(type), val ? 1 : 0, false); + specificDocument.SaveSetting(); + } + + private XOptionsDefine Channel2OptionDef(ChatChannelType type) + { + switch (type) + { + case ChatChannelType.ZeroChannel: + return XOptionsDefine.OD_RADIO_WIFI; + case ChatChannelType.World: + return XOptionsDefine.OD_RADIO_WORLD; + case ChatChannelType.Guild: + return XOptionsDefine.OD_RADIO_PUBLIC; + case ChatChannelType.Friends: + return XOptionsDefine.OD_RADIO_PRIVATE; + case ChatChannelType.Team: + return XOptionsDefine.OD_RADIO_TEAM; + case ChatChannelType.Camp: + return XOptionsDefine.OD_RADIO_CAMP; + case ChatChannelType.Curr: + return XOptionsDefine.OD_RADIO_AUTO_PALY; + } + return XOptionsDefine.OD_RADIO_WORLD; + } + + private string GetPlayerNameById(ulong uid) + { + return DlgBase.singleton.GetFriendNameById(uid); + } + + public void OnRefreshGetFlowerInfo() + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_GetFlowerLeftTime.gameObject.SetActive(this._doc.getFlowerLeftTime > 0); + base.uiBehaviour.m_GetFlowerBtn.SetEnable(this._doc.getFlowerLeftTime == 0, false); + base.uiBehaviour.m_FlowerEff.SetActive(this._doc.getFlowerLeftTime == 0 && this._doc.canGetFlower); + bool flag2 = !this._doc.canGetFlower; + if (flag2) + { + base.uiBehaviour.m_GetFlowerBtn.SetGrey(this._doc.canGetFlower); + } + bool flag3 = this._doc.getFlowerLeftTime == 0 && this._doc.canGetFlower; + if (flag3) + { + base.uiBehaviour.m_FlowerTween.PlayTween(true, -1f); + } + else + { + base.uiBehaviour.m_FlowerTween.StopTween(); + } + bool flag4 = this._doc.getFlowerLeftTime > 0; + if (flag4) + { + base.uiBehaviour.m_GetFlowerLeftTime.SetText(string.Format("{0}", XSingleton.singleton.TimeFormatString(this._doc.getFlowerLeftTime, 2, 3, 4, false, true))); + XSingleton.singleton.KillTimer(this._GetFlowerCDToken); + this._GetFlowerCDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.GetFlowerCDUpdate), null); + } + this.UpdateFlowerCount(); + } + } + + private void GetFlowerCDUpdate(object o) + { + this._doc.getFlowerLeftTime = (int)XSingleton.singleton.GetFlowerRemainTime; + this.OnRefreshGetFlowerInfo(); + } + + private bool OnGetFlower(IXUIButton go) + { + bool canGetFlower = this._doc.canGetFlower; + if (canGetFlower) + { + this._doc.ReqGetFlower(); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FLOWER_CHATDLG_MAX_TIMES_ERR"), "fece00"); + } + return true; + } + + private void UpdateFlowerCount() + { + string[] array = XSingleton.singleton.GetValue("GetFlowerTime").Split(XGlobalConfig.SequenceSeparator); + int itemid = int.Parse(array[0]); + base.uiBehaviour.m_FlowerOwnCount.SetText(string.Format(XStringDefineProxy.GetString("FLOWER_CHATDLG_OWN_COUNT"), XSingleton.singleton.Doc.XBagDoc.GetItemCount(itemid).ToString())); + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.cacheShow = false; + this.SetVisibleWithAnimation(false, null); + DlgBase.singleton.RefreshUI(); + return true; + } + + private bool OnBtmAddClick(IXUIButton btn) + { + DlgBase.singleton.Show(new ChatInputStringBack(this.OnAddSelect), ChatAssetType.EMOTION); + return true; + } + + private void OnSetClick(IXUISprite spr) + { + bool flag = !XSingleton.singleton.IsPVPScene() && !XSingleton.singleton.IsPVEScene(); + if (flag) + { + DlgBase.singleton.prefabTab = OptionsTab.VoiceTab; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + public void OnMailClick(IXUISprite sp) + { + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Mail_System); + } + + private void OnXinyueClick(IXUISprite spr) + { + Dictionary dictionary = new Dictionary(); + XSingleton.singleton.CloseSysAndNoticeServer((uint)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GC_XiaoYueGuanJia)); + base.uiBehaviour.m_sprXinyueRed.SetVisible(false); + string text = ((int)Application.platform == 11) ? "1" : "0"; + string text2 = string.Format("{0}?game_id={1}&opencode={2}&sig={3}×tamp={4}&role_id={5}&partition_id={6}&plat_id={7}", new object[] + { + XSingleton.singleton.GetValue("XiaoYueUrl"), + XSingleton.singleton.GetValue("XiaoYueGameID"), + XSingleton.singleton.OpenCode, + XSingleton.singleton.XPlatform.GetMD5(string.Format("{0}{1}", XSingleton.singleton.MSDKKey, XSingleton.singleton.GetTimeStamp())), + XSingleton.singleton.GetTimeStamp(), + XSingleton.singleton.GetRoleId(), + XSingleton.singleton.ServerID, + text + }); + XSingleton.singleton.AddLog("url = " + text2, null, null, null, null, null, XDebugColor.XDebug_None); + dictionary["url"] = text2; + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + + private void OnFriendsClick(IXUISprite spr) + { + DlgBase.singleton.SetVisible(true, true); + } + + private bool OnAutoVoiceClick(IXUICheckBox box) + { + this.SetAutoVoice(this.activeChannelType, box.bChecked); + return true; + } + + private void OnAddSelect(string motionstr) + { + string text = base.uiBehaviour.m_ChatInput.GetText(); + string text2 = text + motionstr; + base.uiBehaviour.m_ChatInput.SetText(text2); + bool flag = base.uiBehaviour.m_ChatInput.GetText().Length - text.Length < motionstr.Length; + if (flag) + { + base.uiBehaviour.m_ChatInput.SetText(text); + } + } + + public bool DoSendTextChat(IXUIButton sp) + { + bool flag = this.mInputType == InputUIType.Normal; + if (flag) + { + bool flag2 = this.activeChannelType == ChatChannelType.Guild; + if (flag2) + { + bool flag3 = !this.CheckGuildOpen(); + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_NOT_IN_GUILD"), "fece00"); + this.ResetInput(); + return false; + } + } + else + { + bool flag4 = this.activeChannelType == ChatChannelType.Partner; + if (flag4) + { + bool flag5 = !this.CheckDragonGuildOpen(); + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_DG_NOT_IN_GUILD"), "fece00"); + this.ResetInput(); + return false; + } + } + else + { + bool flag6 = this.activeChannelType == ChatChannelType.Team; + if (flag6) + { + bool flag7 = !this.CheckTeamOpen(); + if (flag7) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_NOT_IN_TEAM"), "fece00"); + this.ResetInput(); + return false; + } + } + else + { + bool flag8 = this.activeChannelType == ChatChannelType.World; + if (flag8) + { + bool flag9 = !this.CheckWorldSendMsg(false, null, ChatChannelType.DEFAULT); + if (flag9) + { + return false; + } + } + else + { + bool flag10 = this.activeChannelType == ChatChannelType.Friends; + if (flag10) + { + bool flag11 = this.ChatFriendId == 0UL; + if (flag11) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_NOT_HAVE_FRIEND"), "fece00"); + this.ResetInput(); + return false; + } + } + } + } + } + } + string text = base.uiBehaviour.m_ChatText.GetText(); + bool flag12 = !XSingleton.singleton.IsSystemExpress(text); + if (flag12) + { + this.SendChatContent(text, this.activeChannelType, true, null, false, 0UL, 0f, false, false); + } + this.ResetInput(); + } + else + { + bool flag13 = this.mInputType == InputUIType.Linked; + if (flag13) + { + this.DispatchLinkClick(); + } + } + return true; + } + + private void ResetInput() + { + bool flag = base.IsVisible(); + if (flag) + { + base.uiBehaviour.m_ChatText.SetText(""); + base.uiBehaviour.m_Input.SetText(""); + base.uiBehaviour.m_Input.SetDefault(XStringDefineProxy.GetString("CHAT_DEFAULT")); + } + } + + public void OnVoiceButtonDrag(IXUIButton sp, Vector2 delta) + { + this.m_DragDistance += delta; + this.m_CancelRecord = (this.m_DragDistance.magnitude >= 100f); + } + + public void OnVoiceChatButton(IXUIButton sp, bool state) + { + if (state) + { + this.m_CancelRecord = false; + this.m_DragDistance = Vector2.zero; + this.m_uiBehaviour.m_SpeakEff.SetActive(true); + this.StartRecord(); + } + else + { + this.m_uiBehaviour.m_SpeakEff.SetActive(false); + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + this.m_CancelRecord = false; + } + } + + private void StartRecord() + { + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, new EndRecordCallBack(this.AutoQuitRecord)); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, new EndRecordCallBack(this.AutoQuitRecord)); + } + } + + private void AutoQuitRecord() + { + } + + private bool SelectChatChannel(IXUICheckBox iXUICheckBox) + { + ChatChannelType type = (ChatChannelType)iXUICheckBox.ID; + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this.DoSelectChannel(type); + } + return true; + } + + public void OnAddFriend(IXUILabel sp) + { + DlgBase.singleton.AddFriendById(this.ChatFriendId); + } + + private void OnStopAudioRecord(ChatInfo chatinfo) + { + bool flag = this._doc == null; + if (flag) + { + this._doc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + this._doc.ChatView = this; + } + ChatVoiceInfo voice = chatinfo.voice; + bool flag2 = voice != null; + if (flag2) + { + ChatChannelType chatChannelType = this.activeChannelType; + voice.channel = chatChannelType; + bool flag3 = chatChannelType == ChatChannelType.Friends; + if (flag3) + { + ulong roleID = XSingleton.singleton.XPlayerData.RoleID; + this.PrivateChatCurrName = this.GetPlayerNameById(this.ChatFriendId) + "_" + this.ChatFriendId.ToString(); + } + else + { + DateTime now = DateTime.Now; + uint num = 0u; + bool flag4 = chatChannelType == ChatChannelType.World; + if (flag4) + { + num = 60u; + } + int num2 = chatChannelType - ChatChannelType.World; + bool flag5 = (now - this.m_lastChatTime[num2]).TotalSeconds <= num; + if (!flag5) + { + this.m_lastChatTime[chatChannelType - ChatChannelType.World] = DateTime.Now; + } + this.ShowMyChatVoiceInfo(voice); + } + this.OnStartVoiceCD(); + } + } + + private void OnRefreshChatTextRecognize(ChatInfo info) + { + bool flag = this._doc != null; + if (flag) + { + this._doc.OnReceiveChatSmallInfo(info); + } + } + + public void OnStartVoiceCD() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatView.cs.meta b/Client/Assets/Scripts/XMainClient/XChatView.cs.meta new file mode 100644 index 00000000..456a2340 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4dfda25a95b3f74eab31f25b3432465 +timeCreated: 1611404604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatVoiceManager.cs b/Client/Assets/Scripts/XMainClient/XChatVoiceManager.cs new file mode 100644 index 00000000..589a9a11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatVoiceManager.cs @@ -0,0 +1,1203 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatVoiceManager : XSingleton + { + public int CurrRecordTime + { + get + { + return this.m_iCurrRecordTime; + } + set + { + this.m_iCurrRecordTime = value; + } + } + + public int CurrVoiceCD + { + get + { + return this.m_iCurrVoiceCD; + } + set + { + this.m_iCurrVoiceCD = value; + } + } + + public bool CancelRecord + { + get + { + return this.m_bCancelRecord; + } + set + { + this.m_bCancelRecord = value; + } + } + + public bool IsRecording + { + get + { + return this.m_bIsRecording; + } + set + { + this.m_bIsRecording = value; + } + } + + public bool IsPlaying + { + get + { + return this.m_bIsPlaying; + } + set + { + this.m_bIsPlaying = value; + } + } + + public bool IsLoginSuccess + { + get + { + return this.m_bIsLoginSuccess; + } + set + { + this.m_bIsLoginSuccess = value; + } + } + + public bool IsTextRecognize + { + get + { + return this.m_bIsTextRecognize; + } + set + { + this.m_bIsTextRecognize = value; + } + } + + public ChatInfo CurrAutoPlayingVoice + { + get + { + return this.m_cCurrAutoPlayingVoice; + } + set + { + this.m_cCurrAutoPlayingVoice = value; + } + } + + public Dictionary ChatVoceDic + { + get + { + bool flag = this.m_dChatVoiceDic == null; + if (flag) + { + this.m_dChatVoiceDic = new Dictionary(); + } + return this.m_dChatVoiceDic; + } + } + + public Dictionary ChatYuYinIdDic + { + get + { + bool flag = this.m_dChatYuYinIdDic == null; + if (flag) + { + this.m_dChatYuYinIdDic = new Dictionary(); + } + return this.m_dChatYuYinIdDic; + } + } + + public Dictionary ChatVoicePriDic + { + get + { + bool flag = this.m_dChatVoicePriDic == null; + if (flag) + { + this.m_dChatVoicePriDic = new Dictionary(); + } + return this.m_dChatVoicePriDic; + } + } + + public Dictionary ChatChannelDic + { + get + { + bool flag = this.m_dChatChannelDic == null; + if (flag) + { + this.m_dChatChannelDic = new Dictionary(); + } + return this.m_dChatChannelDic; + } + } + + public bool IsAutoPlay + { + get + { + return this.m_bIsAutoPlay; + } + set + { + this.m_bIsAutoPlay = value; + } + } + + public List AutoPlayAudioList + { + get + { + bool flag = this.m_lAutoPlayAudioList == null; + if (flag) + { + this.m_lAutoPlayAudioList = new List(); + } + return this.m_lAutoPlayAudioList; + } + set + { + this.m_lAutoPlayAudioList = value; + } + } + + public XChatVoiceManager.VoidDelegate OnTimeCountDown = null; + + public XChatVoiceManager.VoidDelegate OnVoiceCD = null; + + public XChatVoiceManager.ChatVoiceDelegate OnStopAudioRecord = null; + + public XChatVoiceManager.ChatTextRecognize OnRefreshTextRecoginze = null; + + private uint mSenderUserId = 0u; + + private float mLastSendTime = 0f; + + private uint mPublicSenderUserId = 0u; + + private float mPublicLastSendTime = 0f; + + public static int VOICE_MAX_TIME = 10; + + public static int VOICE_MIN_TIME = 100; + + public static int VOICE_CHAT_CD = 5; + + private int m_iCurrRecordTime = 0; + + private int m_iCurrVoiceCD = 0; + + private bool m_bCancelRecord = false; + + private bool m_bIsRecording = false; + + private bool m_bIsPlaying = false; + + private bool m_bIsLoginSuccess = false; + + private bool m_bIsTextRecognize = true; + + private ChatInfo m_cCurrAutoPlayingVoice; + + private Dictionary m_dChatVoiceDic; + + private Dictionary m_dChatYuYinIdDic; + + private Dictionary m_dChatVoicePriDic; + + private Dictionary m_dChatChannelDic; + + private ChatVoiceInfo lastWorldInfo; + + private string lastFilePath; + + private bool m_bIsTextRecognizeTimeOut = false; + + private int m_iMaxTextRecognizeTime = 60; + + private int m_iCurrTextRecognizeTime = 0; + + private ChatTextRecognizeInfo m_cTextRecognize; + + private List m_lTextRecognizeList = new List(); + + private string m_sCurrRecoginzeVoice; + + private string m_sWildCard = "world"; + + private bool m_bIsAutoPlay = true; + + private List m_lAutoPlayAudioList; + + public delegate void VoidDelegate(int time); + + public delegate void ChatVoiceDelegate(ChatInfo voice); + + public delegate void ChatTextRecognize(ChatInfo info); + + public void Init(string name, ulong uid, string serverid, string serverwild, string guildwild) + { + XSingleton.singleton.AddLog("Will Init Speech", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("Will Sign out", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddMeeageNotify(); + XSingleton.singleton.AddLog("Will Login Speech", null, null, null, null, null, XDebugColor.XDebug_None); + } + + public void UnInit() + { + } + + public void AddMeeageNotify() + { + } + + private void OnLoginBack(int result, int userId, string thirdUseName, string msg) + { + bool flag = result == 0; + if (flag) + { + this.IsLoginSuccess = true; + this.AddSpriteYuYinId(thirdUseName, userId); + this.AddVoiceChannelWild(ChatChannelType.World); + this.AddVoiceChannelWild(ChatChannelType.Guild); + XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.OnAddTeamChannel), null); + } + else + { + this.IsLoginSuccess = false; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_LOGIN_AUDIO_FAILED"), "fece00"); + } + } + + public void OnAddTeamChannel(object obj) + { + this.AddVoiceChannel(ChatChannelType.Team); + } + + private void OnPrivateNotify(int userID, int audioTime, int type, string name, string data, string attach, string ext) + { + float realtimeSinceStartup = Time.realtimeSinceStartup; + bool flag = this.mSenderUserId == (uint)userID && realtimeSinceStartup - this.mLastSendTime <= 2f; + if (!flag) + { + this.mSenderUserId = (uint)userID; + this.mLastSendTime = realtimeSinceStartup; + ChatVoiceInfo chatVoiceInfo = new ChatVoiceInfo(); + chatVoiceInfo.sendIndexId = this.GetIndexId(ext); + chatVoiceInfo.sendProf = this.GetProfIndex(ext); + chatVoiceInfo.sendName = this.GetSpriteName(name); + chatVoiceInfo.sendUserId = userID; + chatVoiceInfo.voiceTime = audioTime; + chatVoiceInfo.type = type; + bool flag2 = type == 2; + if (flag2) + { + chatVoiceInfo.txt = data; + } + else + { + chatVoiceInfo.url = data; + chatVoiceInfo.txt = attach; + } + chatVoiceInfo.isLocalPath = false; + chatVoiceInfo.channel = ChatChannelType.Friends; + chatVoiceInfo.isTextRecognize = true; + DlgBase.singleton.ShowOtherChatVoiceInfo(chatVoiceInfo); + } + } + + private void OnChannelNotify(uint userId, uint messageType, uint voiceDuration, string ext1, string nickname, string wildcard, string messageBody, string attach) + { + float realtimeSinceStartup = Time.realtimeSinceStartup; + XSingleton.singleton.AddLog("The time :", realtimeSinceStartup.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag = this.mPublicSenderUserId == userId && realtimeSinceStartup - this.mPublicLastSendTime <= 2f; + if (!flag) + { + this.mPublicSenderUserId = userId; + this.mPublicLastSendTime = realtimeSinceStartup; + ChatVoiceInfo chatVoiceInfo = new ChatVoiceInfo(); + chatVoiceInfo.sendIndexId = this.GetIndexId(ext1); + chatVoiceInfo.sendProf = this.GetProfIndex(ext1); + chatVoiceInfo.sendName = this.GetSpriteName(nickname); + chatVoiceInfo.sendUserId = (int)userId; + bool flag2 = wildcard.Contains("world"); + if (flag2) + { + chatVoiceInfo.channel = ChatChannelType.World; + } + else + { + bool flag3 = wildcard.Contains("guild"); + if (flag3) + { + chatVoiceInfo.channel = ChatChannelType.Guild; + } + else + { + bool flag4 = wildcard.Contains("team"); + if (flag4) + { + chatVoiceInfo.channel = ChatChannelType.Team; + } + } + } + chatVoiceInfo.wildCard = wildcard; + chatVoiceInfo.type = (int)messageType; + chatVoiceInfo.voiceTime = (int)voiceDuration; + chatVoiceInfo.txt = attach; + chatVoiceInfo.url = messageBody; + chatVoiceInfo.isLocalPath = false; + chatVoiceInfo.isTextRecognize = true; + DlgBase.singleton.ShowOtherChatVoiceInfo(chatVoiceInfo); + bool flag5 = chatVoiceInfo.channel == ChatChannelType.Team; + if (flag5) + { + bool flag6 = DlgBase.singleton.IsLoaded(); + if (flag6) + { + DlgBase.singleton.ShowBattleVoice(chatVoiceInfo); + } + } + } + } + + private void OnPlayAudioRecordBack(uint result) + { + bool flag = result > 0u; + if (flag) + { + } + this.IsPlaying = false; + XSingleton.singleton.SetTimer(0.3f, new XTimerMgr.ElapsedEventHandler(this.ContinuePlayAudio), null); + } + + public void ContinuePlayAudio(object obj) + { + this.StartAutoPlay(); + } + + public void StartAudioRecord() + { + bool flag = !this.IsLoginSuccess; + if (flag) + { + string name = XSingleton.singleton.Player.Name; + ulong roleID = XSingleton.singleton.XPlayerData.RoleID; + string text = ((uint)XSingleton.singleton.Server.GetHashCode()).ToString(); + string channelWildCard = XSingleton.singleton.GetChannelWildCard(XSingleton.singleton.Player, ChatChannelType.World); + string channelWildCard2 = XSingleton.singleton.GetChannelWildCard(XSingleton.singleton.Player, ChatChannelType.Guild); + } + else + { + this.IsRecording = true; + this.CancelRecord = false; + this.StopPlayAudioRecord(); + XAudioOperationArgs @event = XEventPool.GetEvent(); + @event.IsAudioOn = false; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + this.TimeCountDown(); + } + } + + public void StopAudioRecord(bool cancel = false) + { + bool isRecording = this.IsRecording; + if (isRecording) + { + this.IsRecording = false; + this.CancelRecord = cancel; + XAudioOperationArgs @event = XEventPool.GetEvent(); + @event.IsAudioOn = true; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + this.ClearRecordData(); + } + } + + private void OnAudioRecordStop(int time, string filePath) + { + bool cancelRecord = this.CancelRecord; + if (!cancelRecord) + { + bool flag = time < XChatVoiceManager.VOICE_MIN_TIME; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_RECORD_TOO_SHORT"), "fece00"); + } + else + { + ChatVoiceInfo chatVoiceInfo = new ChatVoiceInfo(); + XPlayer player = XSingleton.singleton.Player; + chatVoiceInfo.sendIndexId = XSingleton.singleton.XPlayerData.RoleID; + chatVoiceInfo.sendUserId = this.GetSpriteYuYinId(player.Name + "_" + player.EngineObject.Name); + chatVoiceInfo.sendProf = ((int)player.PlayerAttributes.Profession).ToString(); + chatVoiceInfo.sendName = player.Name; + chatVoiceInfo.voiceTime = Mathf.CeilToInt((float)time * 0.001f); + bool flag2 = chatVoiceInfo.voiceTime > XChatVoiceManager.VOICE_MAX_TIME; + if (flag2) + { + chatVoiceInfo.voiceTime = XChatVoiceManager.VOICE_MAX_TIME; + } + chatVoiceInfo.filePath = filePath; + chatVoiceInfo.isLocalPath = true; + chatVoiceInfo.txt = " "; + bool flag3 = DlgBase.singleton.CheckWorldSendMsg(true, null, ChatChannelType.DEFAULT); + if (flag3) + { + this.ChatVoceDic.Add(filePath, chatVoiceInfo); + ChatInfo chatInfo = new ChatInfo(); + chatInfo.voice = chatVoiceInfo; + bool flag4 = this.OnStopAudioRecord != null; + if (flag4) + { + this.OnStopAudioRecord(chatInfo); + } + } + else + { + this.lastWorldInfo = chatVoiceInfo; + this.lastFilePath = filePath; + } + } + } + } + + public void DispacherOnbuySucc() + { + bool flag = this.lastWorldInfo != null; + if (flag) + { + this.ChatVoceDic.Add(this.lastFilePath, this.lastWorldInfo); + ChatInfo chatInfo = new ChatInfo(); + chatInfo.voice = this.lastWorldInfo; + bool flag2 = this.OnStopAudioRecord != null; + if (flag2) + { + this.OnStopAudioRecord(chatInfo); + } + } + } + + public void SendPrivateVoiceInfo(ChatVoiceInfo voice, string name, ulong sendId) + { + int spriteYuYinId = this.GetSpriteYuYinId(name); + bool flag = spriteYuYinId != -1 && spriteYuYinId != 0; + if (flag) + { + voice.acceptUserId = spriteYuYinId; + voice.sendIndexId = sendId; + DlgBase.singleton.ShowMyChatVoiceInfo(voice); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_NOT_ACTIVE_AUDIO"), "fece00"); + } + } + + private void SendPrivateVoice(ChatVoiceInfo voice, int yuYinId, ulong sendId) + { + bool flag = voice == null || string.IsNullOrEmpty(voice.filePath); + if (!flag) + { + string text = string.Format("{0}_{1}", sendId, voice.sendProf); + } + } + + private void SendPrivateVoiceCallBack(int result) + { + bool flag = result != 0; + if (flag) + { + this.SendVoiceResult(false); + } + } + + public void SendChannelVoice(ChatVoiceInfo voice, ulong sendId) + { + bool flag = voice == null || string.IsNullOrEmpty(voice.filePath); + if (!flag) + { + string text = string.Format("{0}_{1}", sendId, voice.sendProf); + } + } + + private void SendChannelVoiceCallBack(int result) + { + bool flag = result != 0; + if (flag) + { + this.SendVoiceResult(false); + } + } + + private void SendVoiceResult(bool result) + { + bool flag = !result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_SEND_VOICE_ERR"), "fece00"); + } + } + + public void PlayAudioRecord(ChatVoiceInfo voice) + { + bool flag = voice != null; + if (flag) + { + bool isLocalPath = voice.isLocalPath; + if (isLocalPath) + { + this.PlayAudioRecord(voice.filePath, null); + } + else + { + this.PlayAudioRecord(null, voice.url); + } + } + } + + public void PlayAudioRecord(string filePath, string url) + { + this.StopPlayAudioRecord(); + this.CheckAutoPlay(filePath, url); + bool flag = false; + XAudioOperationArgs @event = XEventPool.GetEvent(); + @event.IsAudioOn = false; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + this.IsPlaying = flag; + bool flag2 = !flag; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_BROADCAST_ERR"), "fece00"); + this.StartAutoPlay(); + } + } + + public void StopPlayAudioRecord() + { + this.IsAutoPlay = false; + this.IsPlaying = false; + this.CurrAutoPlayingVoice = null; + this.StopAutoPlayCallBack(); + XAudioOperationArgs @event = XEventPool.GetEvent(); + @event.IsAudioOn = true; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + public void OnStartVoiceCD() + { + this.CurrVoiceCD = 0; + this.TimeVoiceCD(); + } + + public void StartTextRecognize(ChatInfo info, ChatItemInfo cii, ChatTextRecognizeInfo textRecognize = null) + { + bool flag = (info != null && info.voice != null && cii != null) || textRecognize != null; + if (flag) + { + info.voice.isTextRecognize = true; + bool flag2 = this.m_cTextRecognize == null || textRecognize != null; + if (flag2) + { + this.m_bIsTextRecognizeTimeOut = false; + bool flag3 = textRecognize == null; + if (flag3) + { + this.m_cTextRecognize = new ChatTextRecognizeInfo(info, cii); + } + else + { + this.m_cTextRecognize = textRecognize; + } + this.m_sCurrRecoginzeVoice = DateTime.Now.ToFileTime().ToString(); + } + else + { + this.m_lTextRecognizeList.Add(new ChatTextRecognizeInfo(info, cii)); + } + } + } + + private void OnTextRecognizeCallBack(int result, string text, string ext) + { + bool flag = this.m_bIsTextRecognizeTimeOut || !string.Equals(ext, this.m_sCurrRecoginzeVoice); + if (!flag) + { + bool flag2 = this.m_cTextRecognize.chatInfo == null || this.m_cTextRecognize.chatInfo.voice == null; + if (!flag2) + { + bool flag3 = result == 0; + if (flag3) + { + bool flag4 = this.m_cTextRecognize != null; + if (flag4) + { + this.m_cTextRecognize.chatInfo.voice.txt = text; + this.m_cTextRecognize.chatInfo.mContent = text; + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + this.m_cTextRecognize.chatInfo.SetAudioText(text); + } + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + XVoiceQADocument specificDocument = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + } + } + } + else + { + bool flag7 = this.m_cTextRecognize != null; + if (flag7) + { + this.m_cTextRecognize.chatInfo.voice.txt = " "; + bool flag8 = DlgBase.singleton.IsVisible(); + if (flag8) + { + this.m_cTextRecognize.chatInfo.SetAudioText(" "); + } + bool flag9 = DlgBase.singleton.IsVisible(); + if (flag9) + { + XVoiceQADocument specificDocument2 = XDocuments.GetSpecificDocument(XVoiceQADocument.uuID); + } + } + } + bool flag10 = this.OnRefreshTextRecoginze != null && this.m_cTextRecognize != null; + if (flag10) + { + this.OnRefreshTextRecoginze(this.m_cTextRecognize.chatInfo); + } + this.OnSendTextRecognize(); + this.ClearTextRecognizeTime(); + } + } + } + + private void OnTextRecognizeTime() + { + bool flag = this.m_iCurrTextRecognizeTime >= this.m_iMaxTextRecognizeTime; + if (flag) + { + this.m_bIsTextRecognizeTimeOut = true; + bool flag2 = this.m_cTextRecognize != null; + if (flag2) + { + this.m_cTextRecognize.chatInfo.voice.txt = XStringDefineProxy.GetString("CHAT_RECG_TIMEOUT"); + } + bool flag3 = this.OnRefreshTextRecoginze != null && this.m_cTextRecognize != null; + if (flag3) + { + this.OnRefreshTextRecoginze(this.m_cTextRecognize.chatInfo); + } + this.ClearTextRecognizeTime(); + } + else + { + this.m_iCurrTextRecognizeTime++; + } + } + + private void OnSendTextRecognize() + { + bool flag = this.m_cTextRecognize != null; + if (flag) + { + ChatVoiceInfo voice = this.m_cTextRecognize.chatInfo.voice; + bool flag2 = voice.channel == ChatChannelType.Friends; + if (flag2) + { + this.SendPrivateVoice(voice, voice.acceptUserId, voice.sendIndexId); + } + else + { + this.SendChannelVoice(voice, voice.sendIndexId); + bool flag3 = this.m_cTextRecognize.chatInfo.mChannelId == ChatChannelType.Team; + if (flag3) + { + bool flag4 = voice.channel == ChatChannelType.Team && DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.ShowBattleVoice(voice); + } + } + } + } + } + + private void ClearTextRecognizeTime() + { + this.m_cTextRecognize.Clear(); + this.m_cTextRecognize = null; + this.m_iCurrTextRecognizeTime = 0; + this.m_bIsTextRecognizeTimeOut = false; + bool flag = this.m_lTextRecognizeList.Count > 0; + if (flag) + { + ChatTextRecognizeInfo chatTextRecognizeInfo = this.m_lTextRecognizeList[0]; + this.m_lTextRecognizeList.RemoveAt(0); + } + } + + public void CheckCurrChannel(ChatChannelType channel) + { + bool flag = !this.ChatChannelDic.ContainsKey((int)channel); + if (flag) + { + this.AddVoiceChannel(channel); + } + } + + public void AddVoiceChannelWild(ChatChannelType channel) + { + string channelWildCard = this.GetChannelWildCard(XSingleton.singleton.Player, channel); + bool flag = channelWildCard == ""; + if (!flag) + { + bool flag2 = this.ChatChannelDic.ContainsKey((int)channel); + if (flag2) + { + this.ChatChannelDic[(int)channel] = channelWildCard; + } + else + { + this.ChatChannelDic.Add((int)channel, channelWildCard); + } + } + } + + public void AddVoiceChannel(ChatChannelType channel) + { + string channelWildCard = this.GetChannelWildCard(XSingleton.singleton.Player, channel); + bool flag = channelWildCard == ""; + if (!flag) + { + bool flag2 = this.ChatChannelDic.ContainsKey((int)channel); + if (flag2) + { + this.ChatChannelDic[(int)channel] = channelWildCard; + } + else + { + this.ChatChannelDic.Add((int)channel, channelWildCard); + } + } + } + + public void RemoveVoiceChannel(ChatChannelType channel) + { + bool flag = this.ChatChannelDic.ContainsKey((int)channel); + if (flag) + { + this.ChatChannelDic.Remove((int)channel); + } + } + + public void RemoveAllChannelExceptWorld() + { + this.RemoveVoiceChannel(ChatChannelType.World); + this.RemoveVoiceChannel(ChatChannelType.Guild); + this.RemoveVoiceChannel(ChatChannelType.Friends); + } + + public string GetChannelWildCard(XEntity data, ChatChannelType channel) + { + string result; + if (channel != ChatChannelType.World) + { + if (channel != ChatChannelType.Guild) + { + if (channel != ChatChannelType.Team) + { + result = this.m_sWildCard; + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = specificDocument.MyTeam != null; + if (flag) + { + result = XSingleton.singleton.ServerID.ToString() + "team" + specificDocument.MyTeam.teamBrief.teamID; + } + else + { + result = ""; + } + } + } + else + { + XGuildDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument2.bInGuild; + if (bInGuild) + { + result = XSingleton.singleton.ServerID.ToString() + "guild" + specificDocument2.UID.ToString(); + } + else + { + result = ""; + } + } + } + else + { + result = "world" + XSingleton.singleton.ServerID.ToString(); + } + return result; + } + + public void CheckSpriteYuYinId(string name) + { + bool flag = string.IsNullOrEmpty(name); + if (!flag) + { + bool flag2 = this.GetSpriteYuYinId(name) == -1; + if (flag2) + { + } + } + } + + public void AddSpriteYuYinId(string name, int indexID) + { + bool flag = this.ChatYuYinIdDic.ContainsKey(name); + if (flag) + { + this.ChatYuYinIdDic[name] = indexID; + } + else + { + this.ChatYuYinIdDic.Add(name, indexID); + } + } + + public int GetSpriteYuYinId(string name) + { + bool flag = this.ChatYuYinIdDic.ContainsKey(name); + int result; + if (flag) + { + result = this.ChatYuYinIdDic[name]; + } + else + { + result = -1; + } + return result; + } + + private void TimeCountDown() + { + bool flag = this.CurrRecordTime < XChatVoiceManager.VOICE_MAX_TIME; + if (flag) + { + bool flag2 = this.OnTimeCountDown != null; + if (flag2) + { + this.OnTimeCountDown(XChatVoiceManager.VOICE_MAX_TIME - this.CurrRecordTime); + } + int currRecordTime = this.CurrRecordTime; + this.CurrRecordTime = currRecordTime + 1; + } + else + { + this.StopAudioRecord(false); + } + } + + private void TimeVoiceCD() + { + bool flag = this.CurrVoiceCD < XChatVoiceManager.VOICE_CHAT_CD; + if (flag) + { + bool flag2 = this.OnVoiceCD != null; + if (flag2) + { + this.OnVoiceCD(XChatVoiceManager.VOICE_CHAT_CD - this.CurrVoiceCD); + } + int currVoiceCD = this.CurrVoiceCD; + this.CurrVoiceCD = currVoiceCD + 1; + } + else + { + this.CurrVoiceCD = 0; + bool flag3 = this.OnVoiceCD != null; + if (flag3) + { + this.OnVoiceCD(-1); + } + } + } + + private void HideTimeCountDown() + { + bool flag = this.OnTimeCountDown != null; + if (flag) + { + this.OnTimeCountDown(-1); + } + } + + private void ClearRecordData() + { + this.IsRecording = false; + this.HideTimeCountDown(); + this.CurrRecordTime = 0; + } + + public void CleanAudioData() + { + this.ClearRecordData(); + this.CurrVoiceCD = XChatVoiceManager.VOICE_CHAT_CD; + this.TimeVoiceCD(); + this.CancelRecord = false; + this.IsPlaying = false; + this.ChatVoceDic.Clear(); + this.ChatVoicePriDic.Clear(); + this.ClearAutoPlayList(); + } + + private ulong GetIndexId(string str) + { + ulong result = 0UL; + ulong.TryParse(str.Split(new char[] + { + '_' + })[0], out result); + return result; + } + + private string GetProfIndex(string str) + { + string[] array = str.Split(new char[] + { + '_' + }); + bool flag = array.Length <= 1; + string result; + if (flag) + { + result = "1"; + } + else + { + result = array[1]; + } + return result; + } + + private ulong GetSpriteIndex(string str) + { + ulong result = 0UL; + string[] array = str.Split(new char[] + { + '_' + }); + bool flag = array.Length >= 2; + if (flag) + { + ulong.TryParse(array[1], out result); + } + return result; + } + + private string GetSpriteName(string str) + { + string[] array = str.Split(new char[] + { + '_' + }); + return array[0]; + } + + public bool IsVoiceCD() + { + bool flag = this.CurrVoiceCD == 0; + return !flag; + } + + private void StartAutoPlayCallBack(int time) + { + } + + private void StopAutoPlayCallBack() + { + XAudioOperationArgs @event = XEventPool.GetEvent(); + @event.IsAudioOn = true; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + public void AddAutoPlayList(ChatInfo info) + { + bool flag = info == null; + if (!flag) + { + SetEffectInfo info2 = DlgBase.singleton.Info; + ChatChannelType mChannelId = info.mChannelId; + if (mChannelId != ChatChannelType.World) + { + if (mChannelId != ChatChannelType.Guild) + { + if (mChannelId == ChatChannelType.Team) + { + bool flag2 = !info2.teamSpeechOnOff; + if (flag2) + { + return; + } + } + } + else + { + bool flag3 = !info2.jiaZuSpeechOnOff; + if (flag3) + { + return; + } + } + } + else + { + bool flag4 = !info2.worldSpeechOnOff; + if (flag4) + { + return; + } + } + this.AutoPlayAudioList.Add(info); + bool flag5 = !this.IsPlaying; + if (flag5) + { + this.StartAutoPlay(); + } + } + } + + public void ClearAutoPlayList() + { + this.StopPlayAudioRecord(); + this.AutoPlayAudioList.Clear(); + } + + public void StartAutoPlay() + { + bool flag = this.IsPlaying || this.AutoPlayAudioList.Count == 0; + if (flag) + { + this.CurrAutoPlayingVoice = null; + this.StopAutoPlayCallBack(); + } + else + { + int i = 0; + while (i < this.AutoPlayAudioList.Count) + { + ChatInfo chatInfo = this.AutoPlayAudioList[i]; + ChatVoiceInfo voice = chatInfo.voice; + bool flag2 = voice != null; + if (flag2) + { + this.CurrAutoPlayingVoice = chatInfo; + bool flag3 = DlgBase.singleton.IsInited && DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.UIOP.RefreshAudioUI(chatInfo); + } + this.StartAutoPlayCallBack(voice.voiceTime); + this.AutoPlayAudioList.RemoveAt(0); + return; + } + this.AutoPlayAudioList.RemoveAt(0); + } + this.CurrAutoPlayingVoice = null; + this.StopAutoPlayCallBack(); + } + } + + private void CheckAutoPlay(string filePath, string url) + { + int num = -1; + for (int i = 0; i < this.AutoPlayAudioList.Count; i++) + { + ChatInfo chatInfo = this.AutoPlayAudioList[i]; + ChatVoiceInfo voice = chatInfo.voice; + bool flag = voice != null; + if (flag) + { + bool flag2 = (!string.IsNullOrEmpty(filePath) && string.Equals(filePath, voice.filePath)) || (!string.IsNullOrEmpty(url) && string.Equals(url, voice.url)); + if (flag2) + { + num = i; + this.IsAutoPlay = true; + break; + } + } + } + bool flag3 = num >= 0; + if (flag3) + { + this.AutoPlayAudioList.RemoveRange(0, num); + } + else + { + this.IsAutoPlay = false; + } + } + + public void OnGetYuYinId(string name, int yuYinId) + { + bool flag = yuYinId == -1; + if (flag) + { + bool flag2 = this.ChatVoicePriDic.ContainsKey(name); + if (flag2) + { + this.ChatVoicePriDic.Remove(name); + } + } + else + { + this.AddSpriteYuYinId(name, yuYinId); + bool flag3 = this.ChatVoicePriDic.ContainsKey(name); + if (flag3) + { + ChatVoicePrivateInfo chatVoicePrivateInfo = this.ChatVoicePriDic[name]; + chatVoicePrivateInfo.voice.acceptUserId = yuYinId; + chatVoicePrivateInfo.voice.sendIndexId = chatVoicePrivateInfo.sendId; + this.ChatVoicePriDic.Remove(name); + DlgBase.singleton.ShowMyChatVoiceInfo(chatVoicePrivateInfo.voice); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatVoiceManager.cs.meta b/Client/Assets/Scripts/XMainClient/XChatVoiceManager.cs.meta new file mode 100644 index 00000000..42425881 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatVoiceManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d482519793320c44a8a2f40e4eb1e07c +timeCreated: 1611404602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs new file mode 100644 index 00000000..6c9d59d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XChatVoiceStatusBehaviour : DlgBehaviourBase + { + public static uint MAX_VOL_NUM = 7u; + + public List m_Volume = new List(); + + private void Awake() + { + int num = 0; + while ((long)num < (long)((ulong)XChatVoiceStatusBehaviour.MAX_VOL_NUM)) + { + IXUISprite item = base.transform.Find("Bg/SpeakPanel/speakstatus/Info/P" + num.ToString()).GetComponent("XUISprite") as IXUISprite; + this.m_Volume.Add(item); + num++; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs.meta new file mode 100644 index 00000000..b1bbc515 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6eabe3ac8f1f92e459a90d256beecafa +timeCreated: 1611403906 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChatVoiceStatusView.cs b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusView.cs new file mode 100644 index 00000000..d40678f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusView.cs @@ -0,0 +1,109 @@ +using System; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChatVoiceStatusView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/ChatVoiceStatus"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public bool IsNormalHide { get; set; } + + protected override void OnShow() + { + base.OnShow(); + int num = 0; + while ((long)num < (long)((ulong)XChatVoiceStatusBehaviour.MAX_VOL_NUM)) + { + base.uiBehaviour.m_Volume[num].SetVisible(false); + num++; + } + this.IsNormalHide = false; + } + + protected override void OnUnload() + { + bool flag = !this.IsNormalHide; + if (flag) + { + XSingleton.singleton.StopRecord(true); + } + this.IsNormalHide = false; + } + + public void SetNormalHide(bool normal) + { + this.IsNormalHide = normal; + } + + public void OnSetVolume(uint volume) + { + bool flag = !base.IsLoaded() || !base.IsVisible(); + if (!flag) + { + bool flag2 = volume > XChatVoiceStatusBehaviour.MAX_VOL_NUM; + if (flag2) + { + volume = XChatVoiceStatusBehaviour.MAX_VOL_NUM; + } + else + { + bool flag3 = volume <= 0u; + if (flag3) + { + volume = 1u; + } + } + int num = 0; + while ((long)num < (long)((ulong)XChatVoiceStatusBehaviour.MAX_VOL_NUM)) + { + bool flag4 = base.uiBehaviour.m_Volume[num] != null; + if (flag4) + { + bool flag5 = (long)num < (long)((ulong)volume); + if (flag5) + { + base.uiBehaviour.m_Volume[num].SetVisible(true); + } + else + { + base.uiBehaviour.m_Volume[num].SetVisible(false); + } + } + num++; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChatVoiceStatusView.cs.meta b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusView.cs.meta new file mode 100644 index 00000000..423e2a1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChatVoiceStatusView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de10f906f23d22042a905a249a2c1bb9 +timeCreated: 1611404685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChest.cs b/Client/Assets/Scripts/XMainClient/XChest.cs new file mode 100644 index 00000000..181b825e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChest.cs @@ -0,0 +1,187 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XChest + { + public Vector3 Position + { + get + { + return this.m_ChestGo.transform.localPosition; + } + set + { + this.m_ChestGo.transform.localPosition = value; + } + } + + public bool Opened + { + set + { + this.m_bOpened = value; + bool bOpened = this.m_bOpened; + if (bOpened) + { + this.m_Chest.SetSprite(this.OPENED_SPRITE); + } + else + { + this.m_Chest.SetSprite(this.NOT_OPEN_SPRITE); + } + } + } + + private GameObject m_ChestGo; + + public IXUISprite m_Chest; + + private XFx m_OpenFx; + + private XFx m_ActiveFx; + + private IXUILabel m_Exp; + + private XNumberTween m_ExpTween; + + private GameObject m_RedPoint; + + public uint m_RequiredExp; + + private bool m_isActivityChest; + + private bool m_bOpened; + + private string NOT_OPEN_SPRITE = "bx3"; + + private string OPENING_SPRITE = "bx3_1"; + + private string OPENED_SPRITE = "bx3_2"; + + public XChest(GameObject chest, string chestName = null) + { + bool flag = chestName != null; + if (flag) + { + this.m_isActivityChest = true; + this.NOT_OPEN_SPRITE = chestName; + this.OPENING_SPRITE = chestName + "_1"; + this.OPENED_SPRITE = chestName + "_2"; + } + else + { + this.m_isActivityChest = false; + } + this.m_ChestGo = chest; + this.m_Chest = (chest.GetComponent("XUISprite") as IXUISprite); + Transform transform = chest.transform.Find("Exp"); + bool flag2 = transform != null; + if (flag2) + { + this.m_Exp = (transform.GetComponent("XUILabel") as IXUILabel); + this.m_ExpTween = XNumberTween.Create(this.m_Exp); + } + transform = chest.transform.Find("RedPoint"); + bool flag3 = transform != null; + if (flag3) + { + this.m_RedPoint = transform.gameObject; + } + } + + public void SetExp(uint num) + { + this.m_RequiredExp = num; + bool flag = this.m_ExpTween != null; + if (flag) + { + this.m_ExpTween.SetNumberWithTween((ulong)num, "", false, true); + } + this.ResetState(); + } + + public void Update(uint exp) + { + bool flag = !this.m_isActivityChest; + if (flag) + { + this.m_Chest.SetGrey(this.m_RequiredExp <= exp); + } + bool flag2 = this.m_RequiredExp <= exp && !this.m_bOpened; + if (flag2) + { + bool flag3 = this.m_ActiveFx == null; + if (flag3) + { + this.m_ActiveFx = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_hyd", null, true); + this.m_ActiveFx.Play(this.m_ChestGo.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + } + else + { + bool flag4 = this.m_ActiveFx != null; + if (flag4) + { + XSingleton.singleton.DestroyFx(this.m_ActiveFx, true); + this.m_ActiveFx = null; + } + } + bool flag5 = this.m_RedPoint != null; + if (flag5) + { + this.m_RedPoint.SetActive(this.m_RequiredExp <= exp && !this.m_bOpened); + } + } + + public void ResetState() + { + bool flag = this.m_ActiveFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_ActiveFx, true); + } + bool flag2 = this.m_OpenFx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_OpenFx, true); + } + bool flag3 = this.m_RedPoint != null; + if (flag3) + { + this.m_RedPoint.SetActive(false); + } + } + + private void DestroyOpenFx(object e) + { + bool flag = this.m_OpenFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_OpenFx, true); + } + } + + public void Open() + { + this.m_Chest.SetSprite(this.OPENING_SPRITE); + bool flag = this.m_OpenFx == null; + if (flag) + { + this.m_OpenFx = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_hyd_01", null, true); + } + XSingleton.singleton.SetTimer(1.2f, new XTimerMgr.ElapsedEventHandler(this.DestroyOpenFx), null); + this.m_OpenFx.Play(this.m_ChestGo.transform, Vector3.zero, Vector3.one, 1f, true, false); + this.m_bOpened = true; + this.Update(this.m_RequiredExp); + bool flag2 = this.m_RedPoint != null; + if (flag2) + { + this.m_RedPoint.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChest.cs.meta b/Client/Assets/Scripts/XMainClient/XChest.cs.meta new file mode 100644 index 00000000..50eec50a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChest.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 45ae6d27de051ae45af61c884cc7f598 +timeCreated: 1611403648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChestProgress.cs b/Client/Assets/Scripts/XMainClient/XChestProgress.cs new file mode 100644 index 00000000..f8824b84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChestProgress.cs @@ -0,0 +1,175 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class XChestProgress + { + public uint IncreaseSpeed + { + get + { + return this._IncreaseSpeed; + } + set + { + this._IncreaseSpeed = value; + } + } + + public List ChestList + { + get + { + return this.m_ChestList; + } + } + + public uint TargetExp + { + set + { + this.m_TargetExp = value; + } + } + + private IXUIProgress m_Progress; + + private IXUISprite m_ProgressSprite; + + private IXUISprite m_ForegroundSprite; + + private uint m_StartExp; + + private uint m_EndExp; + + private uint m_CurrentExp; + + private uint m_TargetExp; + + private uint m_ExpRange; + + private float m_fCurrentExp; + + private uint _IncreaseSpeed = 80u; + + private List m_ChestList = new List(); + + public XChestProgress(IXUIProgress progress) + { + this.m_Progress = progress; + this.m_ProgressSprite = (progress.gameObject.GetComponent("XUISprite") as IXUISprite); + this.m_ForegroundSprite = (progress.foreground.GetComponent("XUISprite") as IXUISprite); + } + + public void Unload() + { + for (int i = 0; i < this.m_ChestList.Count; i++) + { + XChest xchest = this.m_ChestList[i]; + bool flag = xchest != null; + if (flag) + { + xchest.ResetState(); + } + } + this.m_ChestList.Clear(); + } + + public void SetExp(uint start, uint end) + { + this.m_StartExp = start; + this.m_EndExp = end; + this.m_TargetExp = start; + this.m_ExpRange = this.m_EndExp - this.m_StartExp; + this._SetProgressBar(); + for (int i = 0; i < this.m_ChestList.Count; i++) + { + this.m_ChestList[i].ResetState(); + } + this._RefreshChestState(); + this._UpdateChestPosition(); + } + + public void Update(float time) + { + bool flag = this.m_CurrentExp != this.m_TargetExp; + if (flag) + { + bool flag2 = this.m_CurrentExp > this.m_TargetExp; + if (flag2) + { + this.m_CurrentExp = this.m_TargetExp; + this.m_fCurrentExp = this.m_CurrentExp; + } + else + { + bool flag3 = this.m_fCurrentExp < this.m_StartExp; + if (flag3) + { + this.m_fCurrentExp = this.m_StartExp; + } + this.m_fCurrentExp += this.IncreaseSpeed * time; + this.m_CurrentExp = (uint)this.m_fCurrentExp; + bool flag4 = this.m_CurrentExp > this.m_TargetExp; + if (flag4) + { + this.m_CurrentExp = this.m_TargetExp; + } + } + this._SetProgressBar(); + this._RefreshChestState(); + } + } + + private void _SetProgressBar() + { + bool flag = this.m_ExpRange > 0u; + if (flag) + { + this.m_Progress.value = (this.m_CurrentExp - this.m_StartExp) / this.m_ExpRange; + } + else + { + this.m_Progress.value = 0f; + } + } + + public void AddChest(XChest chest) + { + this.m_ChestList.Add(chest); + bool flag = this.m_ExpRange == 0u; + if (!flag) + { + Vector3 position = chest.Position; + chest.Position = new Vector3((float)this.m_ForegroundSprite.spriteWidth * (chest.m_RequiredExp - this.m_StartExp) / this.m_ExpRange, position.y, position.z); + } + } + + private void _UpdateChestPosition() + { + for (int i = 0; i < this.m_ChestList.Count; i++) + { + XChest xchest = this.m_ChestList[i]; + Vector3 position = xchest.Position; + xchest.Position = new Vector3((float)this.m_ForegroundSprite.spriteWidth * (xchest.m_RequiredExp - this.m_StartExp) / this.m_ExpRange, position.y, position.z); + } + } + + private void _RefreshChestState() + { + for (int i = 0; i < this.m_ChestList.Count; i++) + { + this.m_ChestList[i].Update(this.m_CurrentExp); + } + } + + public bool IsExpEnough(int index) + { + bool flag = index >= 0 && index < this.m_ChestList.Count; + return flag && this.m_ChestList[index].m_RequiredExp <= this.m_CurrentExp; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChestProgress.cs.meta b/Client/Assets/Scripts/XMainClient/XChestProgress.cs.meta new file mode 100644 index 00000000..5047267f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChestProgress.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 40bbb81bfe92bcf4798cacf12fe87fbb +timeCreated: 1611403615 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChickenDinnerRankInfo.cs b/Client/Assets/Scripts/XMainClient/XChickenDinnerRankInfo.cs new file mode 100644 index 00000000..3049beea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChickenDinnerRankInfo.cs @@ -0,0 +1,23 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XChickenDinnerRankInfo : XBaseRankInfo + { + public void ProcessData(MayhemRankInfo info) + { + this.id = info.roleid; + this.value = (ulong)info.point; + this.name = info.name; + } + + public void InitMyData() + { + this.id = XSingleton.singleton.XPlayerData.RoleID; + this.value = 0UL; + this.name = XSingleton.singleton.XPlayerData.Name; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChickenDinnerRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XChickenDinnerRankInfo.cs.meta new file mode 100644 index 00000000..6d5243ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChickenDinnerRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de7f5126e95d00841b19f4d0f615ec54 +timeCreated: 1611404686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XChickenDinnerRankList.cs b/Client/Assets/Scripts/XMainClient/XChickenDinnerRankList.cs new file mode 100644 index 00000000..b2a5751c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChickenDinnerRankList.cs @@ -0,0 +1,20 @@ +using System; + +namespace XMainClient +{ + public class XChickenDinnerRankList : XBaseRankList + { + public XChickenDinnerRankList() + { + this.type = XRankType.ChickenDinnerRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + this.myRankInfo = new XChickenDinnerRankInfo(); + (this.myRankInfo as XChickenDinnerRankInfo).InitMyData(); + this.myRankInfo.rank = XRankDocument.INVALID_RANK; + return this.myRankInfo; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XChickenDinnerRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XChickenDinnerRankList.cs.meta new file mode 100644 index 00000000..1c4f7a73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XChickenDinnerRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f89e174b455366479c64748b8525ba1 +timeCreated: 1611403909 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XClientNetwork.cs b/Client/Assets/Scripts/XMainClient/XClientNetwork.cs new file mode 100644 index 00000000..d9a755ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XClientNetwork.cs @@ -0,0 +1,833 @@ +using System; +using System.Text; +using KKSG; +using ProtoBuf; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XClientNetwork : XSingleton, INetObserver + { + private uint _server_id + { + get + { + return this.__server_id; + } + set + { + this.__server_id = value; + XFileLog.ServerID = value.ToString(); + } + } + + public XConnection XConnect + { + get + { + return this._connection; + } + } + + public bool CloseOnServerErrorNtf + { + get + { + return this._close_on_server_error_ntf; + } + set + { + this._close_on_server_error_ntf = value; + } + } + + public ulong Session + { + get + { + return this._session; + } + set + { + this._session = value; + } + } + + public string XLoginToken + { + get + { + return this._loginToken; + } + set + { + this._loginToken = value; + } + } + + public XLoginStep XLoginStep + { + get + { + return this._loginStep; + } + set + { + this._loginStep = value; + } + } + + public string Server + { + get + { + return string.Format("{0} [{1}] ", this._serverName, this._zoneName); + } + } + + public uint ServerID + { + get + { + return this._server_id; + } + } + + public string ServerIP + { + get + { + return this._server_ip; + } + } + + public uint ServerPort + { + get + { + return this._server_port; + } + } + + public int RecvBytes + { + get + { + return this._network.RecvBytes; + } + } + + public int SendBytes + { + get + { + return this._network.SendBytes; + } + } + + public string OpenID + { + get + { + return this._openid; + } + } + + public string OpenKey + { + get + { + return XSingleton.singleton.TokenCache; + } + } + + public LoginType AccountType + { + get + { + return this._loginType; + } + } + + public string GameId + { + get + { + return "90"; + } + } + + public string AppId + { + get + { + bool flag = this.AccountType == LoginType.LOGIN_QQ_PF; + string result; + if (flag) + { + result = "1105309683"; + } + else + { + bool flag2 = this.AccountType == LoginType.LGOIN_WECHAT_PF; + if (flag2) + { + result = "wxfdab5af74990787a"; + } + else + { + result = null; + } + } + return result; + } + } + + public string AppKey + { + get + { + bool flag = this.AccountType == LoginType.LOGIN_QQ_PF; + string result; + if (flag) + { + result = "xa0seqAScOhSsgrm"; + } + else + { + bool flag2 = this.AccountType == LoginType.LGOIN_WECHAT_PF; + if (flag2) + { + result = "6dea891b19634f98e78d27edc74125bf"; + } + else + { + result = null; + } + } + return result; + } + } + + public string MSDKKey + { + get + { + return "02a8d5ed226237996eb3f448dfac0b1c"; + } + } + + public string AreaId + { + get + { + bool flag = this.AccountType == LoginType.LOGIN_QQ_PF; + string result; + if (flag) + { + result = XFastEnumIntEqualityComparer.ToInt(GameAppType.GAME_APP_QQ).ToString(); + } + else + { + bool flag2 = this.AccountType == LoginType.LGOIN_WECHAT_PF; + if (flag2) + { + result = XFastEnumIntEqualityComparer.ToInt(GameAppType.GAME_APP_WECHAT).ToString(); + } + else + { + result = null; + } + } + return result; + } + } + + public string OpenCode + { + get + { + string text = null; + bool flag = this.AccountType == LoginType.LOGIN_QQ_PF; + if (flag) + { + text = "1"; + } + bool flag2 = this.AccountType == LoginType.LGOIN_WECHAT_PF; + if (flag2) + { + text = "2"; + } + byte[] bytes = Encoding.Default.GetBytes(string.Format("{0},{1},{2},{3}", new object[] + { + this.OpenID, + this.OpenKey, + this.AppId, + text + })); + return Convert.ToBase64String(bytes); + } + } + + private CNetwork _network = null; + + private ulong _session = 0UL; + + private uint __server_id = 0u; + + private string _server_ip = ""; + + private uint _server_port = 0u; + + private string _serverName = ""; + + private string _zoneName = ""; + + private string _account; + + private string _password; + + private string _loginToken; + + private string _openid; + + private bool _close_on_server_error_ntf = false; + + private bool _rpc_delayed_ntf = false; + + private ErrorCode _last_error = ErrorCode.ERR_SUCCESS; + + private XLoginStep _loginStep = XLoginStep.Begin; + + private LoginType _loginType = LoginType.LOGIN_PASSWORD; + + private XConnection _connection = null; + + public bool Initialize() + { + this._loginStep = XLoginStep.Begin; + this._connection = new XConnection(); + this._network = this._connection.Init(this); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("ILUANET"), this._network); + return this._network != null; + } + + public bool IsConnected() + { + return this._network.GetSocketState() == SocketState.State_Connected; + } + + public void ClearServerInfo() + { + this._server_id = 0u; + this._server_ip = ""; + this._server_port = 0u; + this._serverName = ""; + this._zoneName = ""; + } + + public void OnConnect(bool bSuccess) + { + XSingleton.singleton.AddLog("Connection status: ", bSuccess ? "Connected" : "Disconnected", null, null, null, null, XDebugColor.XDebug_None); + if (bSuccess) + { + this.OnConnected(); + } + else + { + this.OnDisconnected(); + } + } + + public void OnClosed(NetErrCode nErrCode) + { + XSingleton.singleton.AddLog("Closed with: ", nErrCode.ToString(), " in state ", this._loginStep.ToString(), null, null, XDebugColor.XDebug_None); + bool flag = nErrCode == NetErrCode.Net_ConnectError; + if (flag) + { + this.OnConnect(false); + } + else + { + bool flag2 = nErrCode == NetErrCode.Net_NoError; + if (!flag2) + { + switch (this._loginStep) + { + case XLoginStep.Authorization: + { + NetErrCode netErrCode = nErrCode; + if (netErrCode != NetErrCode.Net_Rpc_Delay) + { + XSingleton.singleton.OnAuthorizedFailed(); + } + else + { + XSingleton.singleton.OnAuthorizedTimeOut(); + } + break; + } + case XLoginStep.Login: + { + NetErrCode netErrCode2 = nErrCode; + if (netErrCode2 != NetErrCode.Net_Rpc_Delay) + { + XSingleton.singleton.OnLoginFailed(null); + } + else + { + XSingleton.singleton.OnLoginTimeout(); + } + break; + } + case XLoginStep.EnterGame: + { + NetErrCode netErrCode3 = nErrCode; + if (netErrCode3 != NetErrCode.Net_SysError) + { + if (netErrCode3 != NetErrCode.Net_Rpc_Delay) + { + XSingleton.singleton.OnEnterWorldFailed(null); + } + else + { + XSingleton.singleton.OnEnterWorldTimeOut(); + } + } + else + { + this.OnServerErrorNotify(105u, null); + } + break; + } + case XLoginStep.Playing: + { + NetErrCode netErrCode4 = nErrCode; + if (netErrCode4 != NetErrCode.Net_SysError) + { + if (netErrCode4 - NetErrCode.Net_Rpc_Delay <= 1) + { + bool flag3 = !this._connection.OnReconnect; + if (flag3) + { + this._connection.Reconnect(this._server_ip, (int)this._server_port); + } + } + } + else + { + bool flag4 = !this._connection.OnReconnect; + if (flag4) + { + bool flag5 = !this._close_on_server_error_ntf; + if (flag5) + { + this._connection.Reconnect(this._server_ip, (int)this._server_port); + } + this._close_on_server_error_ntf = false; + } + } + break; + } + } + } + } + } + + public void OnReceive(uint dwType, int nLen) + { + } + + public void Send(Protocol proto) + { + bool flag = !this._network.Send(proto); + if (flag) + { + XSingleton.singleton.AddLog("send proto failed: ", proto.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void Send(Rpc rpc) + { + rpc.SetTimeOut(); + bool flag = !this._network.Send(rpc); + if (flag) + { + XSingleton.singleton.AddLog("send rpc failed: ", rpc.ToString(), null, null, null, null, XDebugColor.XDebug_None); + rpc.CallTimeOut(); + } + } + + public void LuaSendRPC(uint _type, byte[] _reqBuff, DelLuaRespond _onRes, DelLuaError _onError) + { + bool flag = !this._network.LuaSendRPC(_type, _reqBuff, _onRes, _onError); + if (flag) + { + XSingleton.singleton.AddLog("lua send rpc failed: ", _type.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + + public bool Authorization(LoginType t, string account, string password, string openid) + { + this._loginStep = XLoginStep.Authorization; + this._loginType = t; + this._account = account; + this._password = password; + this._openid = openid; + string loginServerAddress; + switch (this._loginType) + { + case LoginType.LOGIN_QQ_PF: + loginServerAddress = XSingleton.singleton.GetLoginServerAddress("QQ"); + break; + case LoginType.LGOIN_WECHAT_PF: + loginServerAddress = XSingleton.singleton.GetLoginServerAddress("WeChat"); + break; + case LoginType.LOGIN_IOS_GUEST: + loginServerAddress = XSingleton.singleton.GetLoginServerAddress("Guest"); + break; + default: + loginServerAddress = XSingleton.singleton.GetLoginServerAddress(""); + break; + } + string text = loginServerAddress.Substring(0, loginServerAddress.LastIndexOf(':')); + string text2 = loginServerAddress.Substring(loginServerAddress.LastIndexOf(':') + 1); + XSingleton.singleton.AddLog("login server ", text, " : ", text2, null, null, XDebugColor.XDebug_None); + return this.Connect(text, int.Parse(text2)); + } + + public bool OnAuthorized(QueryGateArg arg, QueryGateRes res) + { + bool result = false; + try + { + bool flag = res.loginToken.Length != 0; + if (flag) + { + this._loginStep = XLoginStep.Login; + LoginGateData recommandGate = res.RecommandGate; + XSingleton.singleton.AddLog("query gate ok [", recommandGate.ip, ":", recommandGate.port.ToString(), "] server ", recommandGate.serverid.ToString(), XDebugColor.XDebug_None); + bool flag2 = string.IsNullOrEmpty(this._server_ip); + if (flag2) + { + this._server_id = (uint)recommandGate.serverid; + this._server_ip = recommandGate.ip; + this._server_port = (uint)recommandGate.port; + this._serverName = recommandGate.servername; + this._zoneName = recommandGate.zonename; + } + bool flag3 = res.loginToken.Length >= 24 && res.loginToken[20] == 1; + if (flag3) + { + XSingleton.singleton.IsGMAccount = true; + XSingleton.singleton.AddGreenLog("GM account Authorized", null, null, null, null, null); + } + else + { + XSingleton.singleton.IsGMAccount = false; + } + this._loginToken = Convert.ToBase64String(res.loginToken); + result = true; + } + else + { + XSingleton.singleton.AddLog("query gate ip failed!", null, null, null, null, null, XDebugColor.XDebug_None); + result = false; + } + } + catch (Exception ex) + { + XSingleton.singleton.AddErrorLog(ex.Message, null, null, null, null, null); + return false; + } + this.Close(NetErrCode.Net_NoError); + return result; + } + + public bool Login() + { + return this.Connect(this._server_ip, (int)this._server_port); + } + + public void OnLogin() + { + XSingleton.singleton.DoScriptRecord("login"); + } + + public bool OnServerChanged(ServerInfo data) + { + bool flag = this._server_id == (uint)data.ServerID; + bool result; + if (flag) + { + result = false; + } + else + { + this._zoneName = data.ZoneName; + this._serverName = data.ServerName; + this._server_id = (uint)data.ServerID; + this._server_ip = data.Ip; + this._server_port = data.Port; + result = true; + } + return result; + } + + public void OnFatalErrorCallback() + { + bool flag = this._loginStep == XLoginStep.Playing && XSingleton.singleton.IsPlaying; + if (flag) + { + XSingleton.singleton.Stop(true); + } + XSingleton.singleton.OnError(null); + bool flag2 = this._last_error == ErrorCode.ERR_VERSION_FAILED; + if (flag2) + { + Application.Quit(); + } + } + + public void OnServerErrorNotify(uint code, string addtional = null) + { + this._last_error = (ErrorCode)code; + XLoginStep loginStep = this._loginStep; + if (loginStep != XLoginStep.Playing) + { + bool flag = this._last_error == ErrorCode.ERR_VERSION_FAILED; + if (flag) + { + bool sceneReady = XSingleton.singleton.SceneReady; + if (sceneReady) + { + string[] array = XSingleton.singleton.Version.Split(new char[] + { + '.' + }); + string[] array2 = addtional.Split(new char[] + { + '.' + }); + bool flag2 = array.Length > 1 && array2.Length > 1; + if (flag2) + { + bool flag3 = array[1] == array2[1]; + if (flag3) + { + XSingleton.singleton.OnFatalErrorClosed(string.Format(XStringDefineProxy.GetString(ErrorCode.ERR_VERSION_FAILED), addtional)); + } + else + { + bool flag4 = int.Parse(array[1]) < int.Parse(array2[1]); + if (flag4) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("NEED_TO_DOWNLOAD_CORRECT_PACKAGE"), XStringDefineProxy.GetString("COMMON_OK"), new ButtonClickEventHandler(XSingleton.singleton.ToDownLoadCorrectPackage), 300); + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("NEED_TO_DOWNLOAD_CORRECT_PACKAGE"), XStringDefineProxy.GetString("COMMON_OK"), new ButtonClickEventHandler(XSingleton.singleton.ToDownLoadCorrectPackagePre), 300); + } + } + } + else + { + XSingleton.singleton.OnFatalErrorClosed(string.Format(XStringDefineProxy.GetString(ErrorCode.ERR_VERSION_FAILED), addtional)); + } + } + else + { + XSingleton.singleton.Error = this._last_error; + XSingleton.singleton.ErrorAddtional = addtional; + } + XSingleton.singleton.OnError(); + } + else + { + string @string = XStringDefineProxy.GetString(this._last_error); + XSingleton.singleton.OnError(@string); + } + this.Close(NetErrCode.Net_NoError); + } + else + { + this._connection.StopReconnection(); + this._close_on_server_error_ntf = !this.Close(NetErrCode.Net_SrvNtfError); + bool sceneReady2 = XSingleton.singleton.SceneReady; + if (sceneReady2) + { + XSingleton.singleton.OnFatalErrorClosed(this._last_error); + } + else + { + XSingleton.singleton.Error = this._last_error; + } + } + } + + private bool Connect(string IP, int Port) + { + bool flag = this._connection.Connet(IP, Port); + XLoginStep loginStep = this._loginStep; + if (loginStep != XLoginStep.Authorization) + { + if (loginStep == XLoginStep.Login) + { + bool flag2 = flag; + if (flag2) + { + XSingleton.singleton.AddLog("connecting to gate server.", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XSingleton.singleton.AddErrorLog("connect to gate server failed!", null, null, null, null, null); + } + } + } + else + { + bool flag3 = flag; + if (flag3) + { + XSingleton.singleton.AddLog("connecting to login/authorization server.", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XSingleton.singleton.AddErrorLog("connect to login/authorization server failed!", null, null, null, null, null); + } + } + return flag; + } + + public bool Close(NetErrCode err = NetErrCode.Net_NoError) + { + return this._connection.Close(err); + } + + public void Update() + { + this._connection.Update(); + this._network.ProcessMsg(); + XSingleton.singleton.UpdateNetUI(); + bool onRpcDelay = this._connection.OnRpcDelay; + if (onRpcDelay) + { + bool flag = !this._rpc_delayed_ntf && Rpc.RpcDelayedTime > Rpc.DelayThreshold + 1f && this._loginStep == XLoginStep.Playing; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHECKING_NETWORK"), "fece00"); + this._rpc_delayed_ntf = true; + } + } + else + { + this._rpc_delayed_ntf = false; + } + } + + private void OnConnected() + { + XLoginStep loginStep = this._loginStep; + if (loginStep == XLoginStep.Authorization) + { + RpcC2I_QueryGateIP rpcC2I_QueryGateIP = new RpcC2I_QueryGateIP(); + rpcC2I_QueryGateIP.oArg.type = this._loginType; + rpcC2I_QueryGateIP.oArg.platid = PlatType.PLAT_ANDROID; + rpcC2I_QueryGateIP.oArg.version = XSingleton.singleton.Version; + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform == 11) + { + rpcC2I_QueryGateIP.oArg.platid = PlatType.PLAT_ANDROID; + } + } + else + { + rpcC2I_QueryGateIP.oArg.platid = PlatType.PLAT_IOS; + } + switch (this._loginType) + { + case LoginType.LOGIN_PASSWORD: + rpcC2I_QueryGateIP.oArg.account = this._account; + rpcC2I_QueryGateIP.oArg.password = this._password; + rpcC2I_QueryGateIP.oArg.openid = this._openid; + goto IL_18D; + case LoginType.LOGIN_QQ_PF: + rpcC2I_QueryGateIP.oArg.token = this._account; + rpcC2I_QueryGateIP.oArg.openid = this._openid; + goto IL_18D; + case LoginType.LGOIN_WECHAT_PF: + rpcC2I_QueryGateIP.oArg.token = this._account; + rpcC2I_QueryGateIP.oArg.openid = this._openid; + goto IL_18D; + case LoginType.LOGIN_IOS_GUEST: + rpcC2I_QueryGateIP.oArg.token = this._account; + rpcC2I_QueryGateIP.oArg.openid = this._openid; + goto IL_18D; + } + rpcC2I_QueryGateIP.oArg.token = this._account; + rpcC2I_QueryGateIP.oArg.pf = XSingleton.singleton.XPlatform.GetPFToken(); + IL_18D: + this.Send(rpcC2I_QueryGateIP); + } + } + + private void OnDisconnected() + { + switch (this._loginStep) + { + case XLoginStep.Begin: + case XLoginStep.Authorization: + XSingleton.singleton.OnAuthorizedConnectFailed(); + break; + case XLoginStep.Login: + XSingleton.singleton.OnLoginConnectFailed(); + break; + case XLoginStep.EnterGame: + XSingleton.singleton.OnEnterWorldFailed(XStringDefineProxy.GetString("CONNECT_SERVER_FAIL")); + break; + } + } + + public bool IsConnectSignal() + { + return Application.internetReachability > 0; + } + + public bool IsWifiEnable() + { + bool flag = Application.internetReachability == 0; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = (int)Application.internetReachability == 2; + result = flag2; + } + return result; + } + + public void OnGamePause(bool pause) + { + this._network.OnGamePaused(pause); + } + + public void Clear() + { + Serializer.Clear(); + bool flag = this._network != null; + if (flag) + { + this._network.Clear(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XClientNetwork.cs.meta b/Client/Assets/Scripts/XMainClient/XClientNetwork.cs.meta new file mode 100644 index 00000000..438a90ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XClientNetwork.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d266a4535d91ce84ba6d3f1d24e39b86 +timeCreated: 1611404595 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCmdState.cs b/Client/Assets/Scripts/XMainClient/XCmdState.cs new file mode 100644 index 00000000..8a7761d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCmdState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum XCmdState + { + Cmd_In_Queue, + Cmd_In_Process, + Cmd_Finished + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCmdState.cs.meta b/Client/Assets/Scripts/XMainClient/XCmdState.cs.meta new file mode 100644 index 00000000..93207a24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCmdState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f37eeda995c09664188bdba2d3291209 +timeCreated: 1611404849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCombat.cs b/Client/Assets/Scripts/XMainClient/XCombat.cs new file mode 100644 index 00000000..0116a7a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombat.cs @@ -0,0 +1,771 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XCombat : XSingleton + { + private XTableAsyncLoader _async_loader = null; + + private static CombatParamTable oTable = new CombatParamTable(); + + private static List oAttackApplyStateHandlers; + + private double PhysicalAvoidenceLimit; + + private double MagicAvoidenceLimit; + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/CombatParamList", XCombat.oTable, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + XCombat.oAttackApplyStateHandlers = new List(); + XCombat.oAttackApplyStateHandlers.Add(new AttackApplyCritical()); + XCombat.oAttackApplyStateHandlers.Add(new AttackApplyStun()); + this.PhysicalAvoidenceLimit = double.Parse(XSingleton.singleton.GetValue("PhycialAvoidenceLimit")); + this.MagicAvoidenceLimit = double.Parse(XSingleton.singleton.GetValue("MagicAvoidenceLimit")); + result = true; + } + return result; + } + + public override void Uninit() + { + XCombat.oAttackApplyStateHandlers.Clear(); + this._async_loader = null; + } + + public double GetBaseCriticalProb(XAttributes attributes, double value) + { + bool flag = attributes == null; + double result; + if (flag) + { + result = 0.0; + } + else + { + CombatParamTable.RowData combatParam = XSingleton.singleton.GetCombatParam(attributes.Level); + result = value / (value + (double)combatParam.CriticalBase); + } + return result; + } + + public double GetCombatValue(int combatParam, double value) + { + return value / (value + (double)combatParam); + } + + public CombatParamTable.RowData GetCombatParam(uint Level) + { + bool flag = Level == 0u || (ulong)Level >= (ulong)((long)XCombat.oTable.Table.Length); + CombatParamTable.RowData result; + if (flag) + { + result = XCombat.oTable.Table[0]; + } + else + { + result = XCombat.oTable.Table[(int)(Level - 1u)]; + } + return result; + } + + public XAttributeDefine MapElementToAttrAttack(DamageElement de) + { + XAttributeDefine result; + switch (de) + { + case DamageElement.DE_NONE: + result = XAttributeDefine.XAttr_VoidAtk_Total; + break; + case DamageElement.DE_FIRE: + result = XAttributeDefine.XAttr_FireAtk_Total; + break; + case DamageElement.DE_WATER: + result = XAttributeDefine.XAttr_WaterAtk_Total; + break; + case DamageElement.DE_LIGHT: + result = XAttributeDefine.XAttr_LightAtk_Total; + break; + case DamageElement.DE_DARK: + result = XAttributeDefine.XAttr_DarkAtk_Total; + break; + default: + result = XAttributeDefine.XAttr_VoidAtk_Total; + break; + } + return result; + } + + public XAttributeDefine MapElementToAttrDefense(DamageElement de) + { + XAttributeDefine result; + switch (de) + { + case DamageElement.DE_NONE: + result = XAttributeDefine.XAttr_VoidDef_Total; + break; + case DamageElement.DE_FIRE: + result = XAttributeDefine.XAttr_FireDef_Total; + break; + case DamageElement.DE_WATER: + result = XAttributeDefine.XAttr_WaterDef_Total; + break; + case DamageElement.DE_LIGHT: + result = XAttributeDefine.XAttr_LightDef_Total; + break; + case DamageElement.DE_DARK: + result = XAttributeDefine.XAttr_DarkDef_Total; + break; + default: + result = XAttributeDefine.XAttr_VoidDef_Total; + break; + } + return result; + } + + private void ApplySkillBuff(HurtInfo rawInput, List Buffs) + { + for (int i = 0; i < Buffs.Count; i++) + { + int buffTargetType = XSingleton.singleton.GetBuffTargetType(Buffs[i].BuffID); + bool flag = buffTargetType == -1; + if (!flag) + { + XSkillExternalBuffArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc = Buffs[i]; + @event.xBuffDesc.CasterID = rawInput.Caster.ID; + bool flag2 = buffTargetType == 1; + if (flag2) + { + @event.xTarget = rawInput.Target; + } + else + { + bool flag3 = buffTargetType == 0; + if (flag3) + { + @event.xTarget = rawInput.Caster; + } + } + bool flag4 = Buffs[i].DelayTime == 0f; + if (flag4) + { + this._OnApplyBuff(@event); + @event.Recycle(); + } + else + { + @event.delay = Buffs[i].DelayTime; + @event.callback = new SkillExternalCallback(this._OnApplyBuff); + rawInput.Callback(@event); + } + } + } + } + + private bool _OnApplyBuff(XSkillExternalArgs arg) + { + XSkillExternalBuffArgs xskillExternalBuffArgs = arg as XSkillExternalBuffArgs; + bool flag = xskillExternalBuffArgs.xTarget != null && !xskillExternalBuffArgs.xTarget.Deprecated; + if (flag) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc = xskillExternalBuffArgs.xBuffDesc; + @event.Firer = xskillExternalBuffArgs.xTarget; + XSingleton.singleton.FireEvent(@event); + } + return true; + } + + private void GetBaseDamage(XAttributes casterAttr, XAttributes targetAttr, SkillEffect eff, ref ProjectDamageResult result) + { + CombatParamTable.RowData combatParam = this.GetCombatParam(targetAttr.Level); + double num = this.GetCombatValue(combatParam.PhysicalDef, targetAttr.GetAttr(XAttributeDefine.XAttr_PhysicalDefMod_Total)); + num = Math.Min(num, this.PhysicalAvoidenceLimit); + double num2 = casterAttr.GetAttr(XAttributeDefine.XAttr_PhysicalAtkMod_Total) * (1.0 - num); + double num3 = this.GetCombatValue(combatParam.MagicDef, targetAttr.GetAttr(XAttributeDefine.XAttr_MagicDefMod_Total)); + num3 = Math.Min(num3, this.MagicAvoidenceLimit); + double num4 = casterAttr.GetAttr(XAttributeDefine.XAttr_MagicAtkMod_Total) * (1.0 - num3); + bool flag = num2 < 0.0; + if (flag) + { + num2 = 0.0; + } + bool flag2 = num4 < 0.0; + if (flag2) + { + num4 = 0.0; + } + double num5 = 0.0; + num5 += eff.PhyRatio * num2 + eff.PhyFixed; + num5 += eff.MagRatio * num4 + eff.MagFixed; + bool flag3 = num5 > 0.0; + if (flag3) + { + double num6 = 0.0; + num6 += eff.PhyRatio * num2 / (1.0 - num) + eff.PhyFixed; + num6 += eff.MagRatio * num4 / (1.0 - num3) + eff.MagFixed; + result.DefOriginalRatio = num6 / num5; + CombatParamTable.RowData combatParam2 = this.GetCombatParam(casterAttr.Level); + double num7 = this.GetCombatValue(combatParam2.ElementAtk, casterAttr.GetAttr(this.MapElementToAttrAttack(eff.DamageElementType))); + double num8 = this.GetCombatValue(combatParam.ElementDef, targetAttr.GetAttr(this.MapElementToAttrDefense(eff.DamageElementType))); + bool flag4 = num7 > XSingleton.singleton.ElemAtkLimit; + if (flag4) + { + num7 = XSingleton.singleton.ElemAtkLimit; + } + bool flag5 = num8 > XSingleton.singleton.ElemDefLimit; + if (flag5) + { + num8 = XSingleton.singleton.ElemDefLimit; + } + double num9 = this.GetCombatValue(combatParam2.FinalDamageBase, casterAttr.GetAttr(XAttributeDefine.XAttr_FinalDamage_Total)); + bool flag6 = num9 > XSingleton.singleton.FinalDamageLimit; + if (flag6) + { + num9 = XSingleton.singleton.FinalDamageLimit; + } + double num10 = targetAttr.GetAttr(XAttributeDefine.XAttr_HurtInc_Total) / XSingleton.singleton.GeneralCombatParam + 1.0; + bool flag7 = num10 > XSingleton.singleton.AttrChangeDamageLimit; + if (flag7) + { + num10 = XSingleton.singleton.AttrChangeDamageLimit; + } + result.Value = num10 * num5 * (1.0 + num9) * (1.0 + num7) * (1.0 - num8); + } + else + { + result.Value = 0.0; + result.DefOriginalRatio = 1.0; + } + } + + public double GetCritialRatio(XAttributes casterAttr) + { + double attr = casterAttr.GetAttr(XAttributeDefine.XAttr_CritDamage_Total); + CombatParamTable.RowData combatParam = this.GetCombatParam(casterAttr.Level); + double num = attr / (attr + (double)combatParam.CritDamageBase) + XSingleton.singleton.CritDamageBase; + bool flag = num > XSingleton.singleton.CritDamageUpperBound; + if (flag) + { + num = XSingleton.singleton.CritDamageUpperBound; + } + bool flag2 = num < XSingleton.singleton.CritDamageLowerBound; + if (flag2) + { + num = XSingleton.singleton.CritDamageLowerBound; + } + return num; + } + + public void CaculateSkillDamage(HurtInfo rawInput, ProjectDamageResult result, SkillEffect eff) + { + XAttributes attributes = rawInput.Caster.Attributes; + XAttributes attributes2 = rawInput.Target.Attributes; + float num; + result.EffectHelper.GetSkillDamage(out num); + num += XEmblemDocument.GetSkillDamageRatio(attributes.EmblemBag, rawInput.SkillID); + eff.PhyRatio *= 1.0 + (double)num; + eff.MagRatio *= 1.0 + (double)num; + this.GetBaseDamage(attributes, attributes2, eff, ref result); + for (int i = 0; i < XCombat.oAttackApplyStateHandlers.Count; i++) + { + bool flag = XCombat.oAttackApplyStateHandlers[i].GetStateMask() != 0; + if (flag) + { + bool flag2 = XCombat.oAttackApplyStateHandlers[i].IsApplyState(rawInput.Caster) && !XCombat.oAttackApplyStateHandlers[i].IsDefenseState(rawInput.Target); + if (flag2) + { + XCombat.oAttackApplyStateHandlers[i].ApplyState(rawInput.Caster, result); + } + } + } + bool flag3 = eff.Buffs != null && eff.Buffs.Count > 0; + if (flag3) + { + this.ApplySkillBuff(rawInput, eff.Buffs); + } + result.ElementType = eff.DamageElementType; + double num2 = 1.0; + double num3 = 1.0; + double num4 = 1.0; + bool flag4 = rawInput.Caster.Buffs != null; + if (flag4) + { + num2 += rawInput.Caster.Buffs.ModifySkillDamage(); + num4 += rawInput.Caster.Buffs.ChangeSkillDamage(rawInput.SkillID); + } + bool flag5 = rawInput.Target.Buffs != null; + if (flag5) + { + num2 += rawInput.Target.Buffs.IncReceivedDamage(); + num3 += rawInput.Target.Buffs.DecReceivedDamage(); + } + result.Value *= num2 * num3 * num4; + double num5 = (double)XSingleton.singleton.RandomFloat(XSingleton.singleton.DamageRandomLowerBound, XSingleton.singleton.DamageRandomUpperBound); + result.Value *= num5; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag6 = sceneData != null; + if (flag6) + { + result.Value *= (double)sceneData.HurtCoef; + } + double num6 = attributes.GetAttr(XAttributeDefine.XAttr_TrueDamage_Total); + bool flag7 = eff.PercentDamage > 1E-05; + if (flag7) + { + num6 += attributes2.GetAttr(XAttributeDefine.XAttr_MaxHP_Total) * eff.PercentDamage; + } + result.TrueDamage += num6; + bool flag8 = result.Value < 1.0; + if (flag8) + { + result.Value = 1.0; + } + } + + public static void CaculateSuperArmorChange(HurtInfo rawInput, ProjectDamageResult result, SkillEffect eff) + { + XWoozyComponent xwoozyComponent = rawInput.Target.GetXComponent(XWoozyComponent.uuID) as XWoozyComponent; + bool flag = xwoozyComponent != null && xwoozyComponent.InTransfer; + if (flag) + { + result.SetResult(ProjectResultType.PJRES_BATI); + } + else + { + bool flag2 = rawInput.Target.Attributes.GetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Basic) > 0.0 && rawInput.Target.Attributes.IsSuperArmorBroken; + if (!flag2) + { + double attr = rawInput.Caster.Attributes.GetAttr(XAttributeDefine.XAttr_SuperArmorAtk_Total); + double attr2 = rawInput.Target.Attributes.GetAttr(XAttributeDefine.XAttr_SuperArmorDef_Total); + double num = attr * (double)eff.DecSuperArmor - attr2; + bool flag3 = num <= 0.0; + if (flag3) + { + result.SetResult(ProjectResultType.PJRES_BATI); + } + else + { + bool flag4 = rawInput.Target.Attributes.GetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Basic) <= 0.0; + if (!flag4) + { + bool flag5 = !rawInput.Target.Attributes.IsSuperArmorBroken; + if (flag5) + { + double attr3 = rawInput.Target.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Basic); + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentSuperArmor_Basic; + @event.DeltaValue = -num; + @event.Firer = rawInput.Target; + XSingleton.singleton.FireEvent(@event); + bool flag6 = rawInput.Target.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Basic) > 0.0; + if (flag6) + { + result.SetResult(ProjectResultType.PJRES_BATI); + } + else + { + bool flag7 = rawInput.Target.Attributes.HasWoozyStatus && attr3 > 0.0; + if (flag7) + { + result.SetResult(ProjectResultType.PJRES_BATI); + } + } + } + } + } + } + } + } + + public void ProjectDemonstrationStart(HurtInfo rawInput) + { + SkillStartEffect skillStartEffect = XSingleton.singleton.GetSkillStartEffect(rawInput.SkillID, 1u, null, 0u, XSingleton.singleton.IsPVPScene); + bool flag = skillStartEffect.Buffs != null; + if (flag) + { + this.ApplySkillBuff(rawInput, skillStartEffect.Buffs); + } + } + + public void ProjectStart(HurtInfo rawInput) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + uint skillLevel = rawInput.Caster.Attributes.SkillLevelInfo.GetSkillLevel(rawInput.SkillID); + SkillStartEffect skillStartEffect = XSingleton.singleton.GetSkillStartEffect(rawInput.SkillID, skillLevel, rawInput.Caster.Attributes.SkillLevelInfo.Flags, rawInput.Caster.SkillCasterTypeID, XSingleton.singleton.IsPVPScene); + CombatEffectHelper data = XDataPool.GetData(); + data.Set(rawInput.SkillID, rawInput.Caster); + data.GetSkillAddBuff(ref skillStartEffect.Buffs, rawInput.Caster.Attributes.SkillLevelInfo.Flags); + data.Recycle(); + bool flag = skillStartEffect.IncSuperArmor > 0; + if (flag) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentSuperArmor_Basic; + @event.DeltaValue = (double)skillStartEffect.IncSuperArmor; + @event.Firer = rawInput.Caster; + XSingleton.singleton.FireEvent(@event); + } + XAttrChangeEventArgs event2 = XEventPool.GetEvent(); + event2.AttrKey = XAttributeDefine.XAttr_CurrentMP_Basic; + bool flag2 = skillStartEffect.MpCost > 0.0; + if (flag2) + { + event2.DeltaValue = -skillStartEffect.MpCost * (1.0 + rawInput.Caster.Buffs.ModifySkillCost()); + } + else + { + event2.DeltaValue = -skillStartEffect.MpCost; + } + event2.Firer = rawInput.Caster; + XSingleton.singleton.FireEvent(event2); + XAIStartSkillEventArgs event3 = XEventPool.GetEvent(); + event3.Firer = rawInput.Caster; + event3.SkillId = rawInput.SkillID; + event3.IsCaster = true; + XSingleton.singleton.FireEvent(event3); + XAIStartSkillEventArgs event4 = XEventPool.GetEvent(); + event4.Firer = rawInput.Target; + event4.SkillId = rawInput.SkillID; + event4.IsCaster = false; + XSingleton.singleton.FireEvent(event4); + uint skillID = rawInput.SkillID; + bool flag3 = rawInput.Caster.Buffs != null; + if (flag3) + { + rawInput.Caster.Buffs.OnCastSkill(rawInput); + } + bool flag4 = skillID != rawInput.SkillID; + if (!flag4) + { + bool flag5 = skillStartEffect.Buffs != null; + if (flag5) + { + this.ApplySkillBuff(rawInput, skillStartEffect.Buffs); + } + bool flag6 = rawInput.SkillToken != 0L; + if (flag6) + { + int num = 0; + for (int i = 0; i < XCombat.oAttackApplyStateHandlers.Count; i++) + { + num |= XCombat.oAttackApplyStateHandlers[i].GetStateMask(); + } + } + } + } + } + + public void ProjectEnd(HurtInfo rawInput) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + uint skillLevel = rawInput.Caster.Attributes.SkillLevelInfo.GetSkillLevel(rawInput.SkillID); + SkillStartEffect skillStartEffect = XSingleton.singleton.GetSkillStartEffect(rawInput.SkillID, skillLevel, rawInput.Caster.Attributes.SkillLevelInfo.Flags, rawInput.Caster.SkillCasterTypeID, XSingleton.singleton.IsPVPScene); + bool flag = skillStartEffect.IncSuperArmor > 0 && rawInput.Caster is XPlayer; + if (flag) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentSuperArmor_Basic; + @event.DeltaValue = (double)(-(double)skillStartEffect.IncSuperArmor); + @event.Firer = rawInput.Caster; + XSingleton.singleton.FireEvent(@event); + } + XAIEndSkillEventArgs event2 = XEventPool.GetEvent(); + event2.Firer = rawInput.Caster; + event2.SkillId = rawInput.SkillID; + event2.IsCaster = true; + XSingleton.singleton.FireEvent(event2); + XAIEndSkillEventArgs event3 = XEventPool.GetEvent(); + event3.Firer = rawInput.Target; + event3.SkillId = rawInput.SkillID; + event3.IsCaster = false; + XSingleton.singleton.FireEvent(event3); + } + } + + public ProjectDamageResult ProjectDamage(HurtInfo rawInput) + { + ProjectDamageResult data = XDataPool.GetData(); + bool flag = rawInput.Caster == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("caster is null!", null, null, null, null, null); + } + else + { + data.Caster = rawInput.Caster.ID; + } + bool flag2 = rawInput.Target == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("target is null!", null, null, null, null, null); + } + else + { + XAISkillHurtEventArgs @event = XEventPool.GetEvent(); + @event.Firer = rawInput.Target; + @event.IsCaster = false; + @event.SkillId = rawInput.SkillID; + XSingleton.singleton.FireEvent(@event); + } + data.EffectHelper.Set(rawInput.SkillID, rawInput.Caster); + bool flag3 = !this.CheckState(rawInput, data); + ProjectDamageResult result; + if (flag3) + { + bool accept = data.Accept; + if (accept) + { + XCombat.BuffEffect(rawInput, data); + } + result = data; + } + else + { + SkillEffect skillEffect = XSingleton.singleton.GetSkillEffect(rawInput.SkillID, rawInput.HitPoint, rawInput.Caster.Attributes.SkillLevelInfo.GetSkillLevel(rawInput.SkillID), rawInput.Caster.Attributes.SkillLevelInfo.Flags, rawInput.Caster.SkillCasterTypeID, XSingleton.singleton.IsPVPScene); + bool flag4 = (rawInput.Target.Attributes.Tag & skillEffect.ExclusiveMask) > 0u; + if (flag4) + { + data.Accept = false; + result = data; + } + else + { + XAISkillHurtEventArgs event2 = XEventPool.GetEvent(); + event2.Firer = rawInput.Caster; + event2.IsCaster = true; + event2.SkillId = rawInput.SkillID; + XSingleton.singleton.FireEvent(event2); + this.CaculateSkillDamage(rawInput, data, skillEffect); + XCombat.CaculateSuperArmorChange(rawInput, data, skillEffect); + XCombat.BuffEffect(rawInput, data); + XCombat.ChangeHPAndFireEvent(rawInput, data, false); + result = data; + } + } + return result; + } + + public static void BuffEffect(HurtInfo rawInput, ProjectDamageResult result) + { + XBuff.EffectEnumeratorPriorityCur = XBuffEffectPrioriy.BEP_START; + XBuff.EffectEnumeratorPriorityNext = XBuffEffectPrioriy.BEP_END; + XBuffComponent xbuffComponent = null; + XBuffComponent xbuffComponent2 = null; + bool flag = rawInput.Target != null; + if (flag) + { + xbuffComponent = rawInput.Target.Buffs; + } + bool flag2 = rawInput.Caster != null; + if (flag2) + { + xbuffComponent2 = rawInput.Caster.Buffs; + } + while (XBuff.EffectEnumeratorPriorityCur != XBuffEffectPrioriy.BEP_END) + { + bool flag3 = xbuffComponent != null; + if (flag3) + { + xbuffComponent.OnHurt(rawInput, result); + } + bool flag4 = xbuffComponent2 != null; + if (flag4) + { + xbuffComponent2.OnCastDamage(rawInput, result); + } + XBuff.EffectEnumeratorPriorityCur = XBuff.EffectEnumeratorPriorityNext; + XBuff.EffectEnumeratorPriorityNext = XBuffEffectPrioriy.BEP_END; + } + } + + public static double CheckChangeHPLimit(double damage, XEntity entity, bool bIgnoreImmortal, bool bForceCantDie) + { + return XCombat._CheckChangeHPLimit(XAttributeDefine.XAttr_CurrentHP_Basic, damage, true, entity, bIgnoreImmortal, bForceCantDie); + } + + public static double CheckChangeHPLimit(XAttributeDefine attr, double value, XEntity entity, bool bIgnoreImmortal, bool bForceCantDie) + { + return XCombat._CheckChangeHPLimit(attr, value, false, entity, bIgnoreImmortal, bForceCantDie); + } + + private static double _CheckChangeHPLimit(XAttributeDefine attr, double value, bool bIsDamage, XEntity entity, bool bIgnoreImmortal, bool bForceCantDie) + { + double result; + if (bIsDamage) + { + result = -XBuffSpecialState.GetActualChangeAttr(attr, -value, entity, bIgnoreImmortal, bForceCantDie); + } + else + { + result = XBuffSpecialState.GetActualChangeAttr(attr, value, entity, bIgnoreImmortal, bForceCantDie); + } + return result; + } + + private static void ChangeHPAndFireEvent(HurtInfo rawInput, ProjectDamageResult result, bool bShowHUD) + { + bool flag = rawInput == null || result == null || rawInput.Target == null; + if (flag) + { + XSingleton.singleton.AddWarningLog("rawInput == null || result == null || rawInput.Target == null", null, null, null, null, null); + } + else + { + XEntity caster = rawInput.Caster; + XEntity target = rawInput.Target; + bool flag2 = target.Attributes != null; + if (flag2) + { + bool flag3 = target.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentXULI_Basic) > 0.0; + if (flag3) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentXULI_Basic; + @event.DeltaValue = -result.Value; + @event.Firer = target; + XSingleton.singleton.FireEvent(@event); + bool flag4 = target.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentXULI_Basic) <= 0.0; + if (flag4) + { + XStrengthPresevationOffArgs event2 = XEventPool.GetEvent(); + event2.Firer = target; + XSingleton.singleton.FireEvent(event2); + } + } + bool flag5 = result.Value != 0.0; + if (flag5) + { + XAttrChangeEventArgs event3 = XEventPool.GetEvent(); + event3.AttrKey = XAttributeDefine.XAttr_CurrentHP_Basic; + event3.DeltaValue = -result.Value; + event3.CasterID = result.Caster; + event3.bShowHUD = bShowHUD; + event3.Firer = target; + XSingleton.singleton.FireEvent(event3); + } + } + else + { + XSingleton.singleton.AddErrorLog("target.Attributes == null, typeID: ", target.TypeID.ToString(), " name: ", target.Name, null, null); + } + result.IsTargetDead = target.IsDead; + XEnmityEventArgs event4 = XEventPool.GetEvent(); + event4.AttrKey = XAttributeDefine.XAttr_CurrentHP_Basic; + event4.Firer = target; + event4.Starter = caster; + event4.DeltaValue = result.Value; + event4.SkillId = rawInput.SkillID; + XSingleton.singleton.FireEvent(event4); + XProjectDamageEventArgs event5 = XEventPool.GetEvent(); + event5.Damage = result; + event5.Hurt = rawInput; + event5.Firer = rawInput.Caster; + XSingleton.singleton.FireEvent(event5); + event5 = XEventPool.GetEvent(); + event5.Damage = result; + event5.Hurt = rawInput; + event5.Firer = rawInput.Target; + XSingleton.singleton.FireEvent(event5); + } + } + + public void ChangeHPAndFireEventByQTE(double Value, XEntity target) + { + Value = XCombat.CheckChangeHPLimit(Value, target, false, false); + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentHP_Basic; + @event.DeltaValue = -Value; + @event.Firer = target; + XSingleton.singleton.FireEvent(@event); + } + + private bool CheckState(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = !XEntity.ValideEntity(rawInput.Target); + bool result2; + if (flag) + { + result.Accept = false; + result2 = false; + } + else + { + bool flag2 = rawInput.Target.Attributes.BuffState.IsBuffStateOn(XBuffType.XBuffType_Immortal); + if (flag2) + { + result.Accept = true; + result.SetResult(ProjectResultType.PJRES_IMMORTAL); + result2 = false; + } + else + { + bool flag3 = rawInput.Caster.Attributes.BuffState.IsBuffStateOn(XBuffType.XBuffType_Blind); + if (flag3) + { + result.Accept = true; + result.SetResult(ProjectResultType.PJRES_MISS); + result2 = false; + } + else + { + result2 = true; + } + } + } + return result2; + } + + public static void ProjectExternalDamage(double damage, ulong CasterID, XEntity target, bool bShowHUD, int flag = 0) + { + bool flag2 = target == null; + if (!flag2) + { + HurtInfo data = XDataPool.GetData(); + data.Caster = XSingleton.singleton.GetEntity(CasterID); + data.Target = target; + ProjectDamageResult data2 = XDataPool.GetData(); + data2.Value = damage; + data2.Caster = CasterID; + data2.Flag |= flag; + data2.DefOriginalRatio = 1.0; + XCombat.BuffEffect(data, data2); + XCombat.ChangeHPAndFireEvent(data, data2, bShowHUD); + XProjectDamageEventArgs @event = XEventPool.GetEvent(); + @event = XEventPool.GetEvent(); + @event.Damage = data2; + @event.Hurt = data; + @event.Firer = data.Caster; + XSingleton.singleton.FireEvent(@event); + @event = XEventPool.GetEvent(); + @event.Damage = data2; + @event.Hurt = data; + @event.Firer = data.Target; + XSingleton.singleton.FireEvent(@event); + data.Recycle(); + data2.Recycle(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCombat.cs.meta b/Client/Assets/Scripts/XMainClient/XCombat.cs.meta new file mode 100644 index 00000000..d3a54469 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombat.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63f3b7cc15c87fd4baeb0f73b014a3f5 +timeCreated: 1611403846 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCombatEffectManager.cs b/Client/Assets/Scripts/XMainClient/XCombatEffectManager.cs new file mode 100644 index 00000000..3047b6e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombatEffectManager.cs @@ -0,0 +1,188 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCombatEffectManager : XSingleton + { + private Dictionary m_buff2EffectData = new Dictionary(); + + private Dictionary m_skill2EffectData = new Dictionary(); + + private HashSet m_ArtifactDisableSceneTypes = new HashSet(default(XFastEnumIntEqualityComparer)); + + private HashSet m_SkillEmblemDisableSceneTypes = new HashSet(default(XFastEnumIntEqualityComparer)); + + private bool m_bDirty = false; + + public void SetDirty() + { + this.m_bDirty = true; + } + + public override bool Init() + { + this.SetDirty(); + return true; + } + + public void InitFromGlobalConfig() + { + this.m_ArtifactDisableSceneTypes.Clear(); + string value = XSingleton.singleton.GetValue("ArtifactDisableSceneTypes"); + bool flag = !string.IsNullOrEmpty(value); + if (flag) + { + string[] array = value.Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + this.m_ArtifactDisableSceneTypes.Add((SceneType)int.Parse(array[i])); + } + } + this.m_SkillEmblemDisableSceneTypes.Clear(); + value = XSingleton.singleton.GetValue("SkillEmblemDisableSceneTypes"); + bool flag2 = !string.IsNullOrEmpty(value); + if (flag2) + { + string[] array2 = value.Split(XGlobalConfig.ListSeparator); + for (int j = 0; j < array2.Length; j++) + { + this.m_SkillEmblemDisableSceneTypes.Add((SceneType)int.Parse(array2[j])); + } + } + } + + public bool IsArtifactEnabled() + { + return !this.m_ArtifactDisableSceneTypes.Contains(XSingleton.singleton.SceneType); + } + + public bool IsSkillEmblemEnabled() + { + return !this.m_SkillEmblemDisableSceneTypes.Contains(XSingleton.singleton.SceneType); + } + + public EffectDataParams GetEffectDataByBuff(uint buffID) + { + EffectDataParams result; + this.m_buff2EffectData.TryGetValue(buffID, out result); + return result; + } + + public EffectDataParams GetEffectDataBySkill(uint skillID) + { + EffectDataParams result; + this.m_skill2EffectData.TryGetValue(skillID, out result); + return result; + } + + public void ArrangeEffectData() + { + bool flag = !this.m_bDirty || !XStage.IsConcreteStage(XSingleton.singleton.CurrentStage.Stage); + if (!flag) + { + this.m_bDirty = false; + foreach (KeyValuePair keyValuePair in this.m_buff2EffectData) + { + keyValuePair.Value.Recycle(); + } + foreach (KeyValuePair keyValuePair2 in this.m_skill2EffectData) + { + keyValuePair2.Value.Recycle(); + } + this.m_buff2EffectData.Clear(); + this.m_skill2EffectData.Clear(); + XBagDocument specificDocument = XDocuments.GetSpecificDocument(XBagDocument.uuID); + ArtifactDocument specificDocument2 = XDocuments.GetSpecificDocument(ArtifactDocument.uuID); + XBodyBag artifactBag = specificDocument.ArtifactBag; + for (int i = 0; i < XBagDocument.ArtifactMax; i++) + { + XArtifactItem xartifactItem = artifactBag[i] as XArtifactItem; + bool flag2 = xartifactItem == null || xartifactItem.itemID == 0; + if (!flag2) + { + for (int j = 0; j < xartifactItem.EffectInfoList.Count; j++) + { + XArtifactEffectInfo xartifactEffectInfo = xartifactItem.EffectInfoList[j]; + bool flag3 = !xartifactEffectInfo.IsValid; + if (!flag3) + { + for (int k = 0; k < xartifactEffectInfo.BuffInfoList.Count; k++) + { + XArtifactBuffInfo xartifactBuffInfo = xartifactEffectInfo.BuffInfoList[k]; + bool flag4 = xartifactBuffInfo.Type == 1u; + EffectTable.RowData artifactSkillEffect; + Dictionary dictionary; + if (flag4) + { + artifactSkillEffect = specificDocument2.GetArtifactSkillEffect(xartifactEffectInfo.EffectId, xartifactBuffInfo.Id); + dictionary = this.m_buff2EffectData; + } + else + { + artifactSkillEffect = specificDocument2.GetArtifactSkillEffect(xartifactEffectInfo.EffectId, xartifactBuffInfo.Id); + dictionary = this.m_skill2EffectData; + } + bool flag5 = artifactSkillEffect == null; + if (!flag5) + { + EffectDataParams effectDataParams = null; + bool flag6 = !dictionary.TryGetValue(xartifactBuffInfo.Id, out effectDataParams); + if (flag6) + { + effectDataParams = XDataPool.GetData(); + dictionary.Add(xartifactBuffInfo.Id, effectDataParams); + } + Dictionary dictionary2 = DictionaryPool.Get(); + int num = 0; + while (num < (int)artifactSkillEffect.EffectParams.count && num < xartifactBuffInfo.Values.Count) + { + CombatEffectType combatEffectType = (CombatEffectType)artifactSkillEffect.EffectParams[num, 0]; + EffectDataParams.TypeData data; + bool flag7 = !dictionary2.TryGetValue(combatEffectType, out data); + if (flag7) + { + EffectDataParams.TypeDataCollection typeDataCollection = effectDataParams.EnsureGetCollection(combatEffectType); + data = XDataPool.GetData(); + data.effectID = xartifactEffectInfo.EffectId; + data.templatebuffID = artifactSkillEffect.TemplateBuffID; + typeDataCollection.datas.Add(data); + dictionary2[combatEffectType] = data; + } + data.randomParams.Add(xartifactBuffInfo.Values[num]); + num++; + } + for (int l = 0; l < (int)artifactSkillEffect.ConstantParams.count; l++) + { + uint num2; + bool flag8 = !uint.TryParse(artifactSkillEffect.ConstantParams[l, 0], out num2); + if (!flag8) + { + CombatEffectType combatEffectType2 = (CombatEffectType)num2; + EffectDataParams.TypeData data2; + bool flag9 = !dictionary2.TryGetValue(combatEffectType2, out data2); + if (flag9) + { + EffectDataParams.TypeDataCollection typeDataCollection2 = effectDataParams.EnsureGetCollection(combatEffectType2); + data2 = XDataPool.GetData(); + data2.effectID = xartifactEffectInfo.EffectId; + data2.templatebuffID = artifactSkillEffect.TemplateBuffID; + typeDataCollection2.datas.Add(data2); + dictionary2[combatEffectType2] = data2; + } + data2.constantParams.Add(artifactSkillEffect.ConstantParams[l, 1]); + } + } + DictionaryPool.Release(dictionary2); + } + } + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCombatEffectManager.cs.meta b/Client/Assets/Scripts/XMainClient/XCombatEffectManager.cs.meta new file mode 100644 index 00000000..1d36d477 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombatEffectManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e38f3b827f1dbe24fae6cb22365699f8 +timeCreated: 1611404734 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs b/Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs new file mode 100644 index 00000000..76c83f2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs @@ -0,0 +1,144 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCombatHUDMgr : XSingleton + { + public static string HUD_NORMAL = "UI/Billboard/HUDNormal2"; + + public static string HUD_CRITICAL = "UI/Billboard/HUDCritical"; + + public static string HUD_POFANG = "UI/Billboard/HUDPofang"; + + public static string HUD_PLAYER = "UI/Billboard/HUDPlayer"; + + public static string HUD_IMMORTAL = "UI/Billboard/HUDImmortal"; + + public static string HUD_MISS = "UI/Billboard/HUDMiss"; + + public bool Initialize() + { + return true; + } + + public GameObject GetHUDTemplateByDamageResult(ProjectDamageResult config, bool isPlayer) + { + bool flag = config.Result == ProjectResultType.PJRES_IMMORTAL; + GameObject result; + if (flag) + { + GameObject gameObject = XSingleton.singleton.CreateFromPrefab(XCombatHUDMgr.HUD_IMMORTAL, Vector3.zero, Quaternion.identity, true, false); + result = gameObject; + } + else + { + bool flag2 = config.Result == ProjectResultType.PJRES_MISS; + if (flag2) + { + GameObject gameObject = XSingleton.singleton.CreateFromPrefab(XCombatHUDMgr.HUD_MISS, Vector3.zero, Quaternion.identity, true, false); + result = gameObject; + } + else if (isPlayer) + { + GameObject gameObject = XSingleton.singleton.CreateFromPrefab(XCombatHUDMgr.HUD_PLAYER, Vector3.zero, Quaternion.identity, true, false); + result = gameObject; + } + else + { + bool flag3 = config.IsCritical(); + GameObject gameObject; + if (flag3) + { + gameObject = XSingleton.singleton.CreateFromPrefab(XCombatHUDMgr.HUD_CRITICAL, Vector3.zero, Quaternion.identity, true, false); + } + else + { + gameObject = XSingleton.singleton.CreateFromPrefab(XCombatHUDMgr.HUD_NORMAL, Vector3.zero, Quaternion.identity, true, false); + } + result = gameObject; + } + } + return result; + } + + public string GetHUDText(ProjectDamageResult config, bool isDigitalText) + { + string text = ""; + bool flag = config.Result == ProjectResultType.PJRES_IMMORTAL; + string result; + if (flag) + { + result = XStringDefineProxy.GetString("BATTLE_IMMORTAL"); + } + else + { + bool accept = config.Accept; + if (accept) + { + string elementSprite = this.GetElementSprite(config.ElementType); + text = elementSprite; + float num = (float)config.Value; + text += ((num > 0f) ? Mathf.RoundToInt(num).ToString() : Mathf.RoundToInt(-num).ToString()); + } + result = text; + } + return result; + } + + public string GetElementSprite(DamageElement element) + { + string result; + switch (element) + { + case DamageElement.DE_FIRE: + result = "c"; + break; + case DamageElement.DE_WATER: + result = "b"; + break; + case DamageElement.DE_LIGHT: + result = "a"; + break; + case DamageElement.DE_DARK: + result = "d"; + break; + default: + result = ""; + break; + } + return result; + } + + public void GetElementColor(DamageElement element, ref bool applyGradient, ref Color top, ref Color bottom) + { + switch (element) + { + case DamageElement.DE_FIRE: + applyGradient = true; + top = new Color32(173, 60, 58, byte.MaxValue); + bottom = new Color32(121, 33, 32, byte.MaxValue); + break; + case DamageElement.DE_WATER: + top = new Color32(103, 209, 228, byte.MaxValue); + bottom = new Color32(54, 121, 131, byte.MaxValue); + applyGradient = true; + break; + case DamageElement.DE_LIGHT: + top = new Color32(234, 226, 156, byte.MaxValue); + bottom = new Color32(178, 182, 117, byte.MaxValue); + applyGradient = true; + break; + case DamageElement.DE_DARK: + top = new Color32(149, 140, 237, byte.MaxValue); + bottom = new Color32(104, 95, 169, byte.MaxValue); + applyGradient = true; + break; + default: + applyGradient = false; + break; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs.meta new file mode 100644 index 00000000..28ed196b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombatHUDMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ceab1859f4a74c84caa3ead6a1b697b8 +timeCreated: 1611404579 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCombatStatisticsDocument.cs b/Client/Assets/Scripts/XMainClient/XCombatStatisticsDocument.cs new file mode 100644 index 00000000..f60ba858 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombatStatisticsDocument.cs @@ -0,0 +1,394 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCombatStatisticsDocument : XDocComponent + { + public override uint ID + { + get + { + return XCombatStatisticsDocument.uuID; + } + } + + public bool bShowDps + { + get + { + return this.m_bShowDps; + } + } + + public List StatisticsList + { + get + { + return this.m_StatisticsList; + } + } + + public double TotalDamage { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CombatStatisticsDocument"); + + public BattleDpsHandler DpsHandler; + + public BattleStatisticsHandler StatisticsHandler; + + private bool m_bShowDps; + + private double m_DpsBase; + + private double m_DpsDenominator; + + private double m_RankBase; + + public bool bShowDamage; + + private List m_StatisticsList = new List(); + + private Dictionary m_DicStatistics = new Dictionary(); + + private XSecuritySkillInfo m_ServerSkillStatistics = new XSecuritySkillInfo(); + + private XSecurityMobInfo m_ServerMobStatistics = new XSecurityMobInfo(); + + private XSecuritySkillInfo m_SkillStatistics = new XSecuritySkillInfo(); + + private XSecurityMobInfo m_MobStatistics = new XSecurityMobInfo(); + + private XSecuritySkillInfo m_SkillReset = new XSecuritySkillInfo(); + + private XSecurityMobInfo m_MobReset = new XSecurityMobInfo(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.m_RankBase = double.Parse(XSingleton.singleton.GetValue("DpsBaseRank")); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + SceneTable.RowData sceneData = XSingleton.singleton.SceneData; + this.m_DpsBase = sceneData.DPS[0]; + this.m_DpsDenominator = sceneData.DPS[1]; + this.m_bShowDps = (this.m_DpsDenominator > 0.0); + this.bShowDamage = false; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + XSingleton.singleton.XPlayerData.CombatReset(); + this.m_SkillReset.Reset(); + this.m_MobReset.Reset(); + } + + public void ReqDps() + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + bool flag = this.bShowDamage; + if (flag) + { + bool flag2 = this.DpsHandler != null && this.DpsHandler.IsVisible(); + if (flag2) + { + this.DpsHandler.SetInfo(XSingleton.singleton.XPlayerData.PrintDamage.ToString("F1")); + } + } + else + { + double dps = XSingleton.singleton.XPlayerData.Dps; + this._SetDps(dps); + } + } + } + + public void OnGetDps(double dps) + { + this._SetDps(dps); + } + + private void _SetDps(double dps) + { + bool flag = !this.bShowDps; + if (!flag) + { + double dps2 = 0.0; + double num = 0.0; + bool flag2 = dps > 0.0; + if (flag2) + { + num = this.m_RankBase; + dps2 = dps; + bool flag3 = dps > this.m_DpsBase; + if (flag3) + { + num += (dps - this.m_DpsBase) / this.m_DpsDenominator; + } + } + num = Math.Min(num, 99.0); + bool flag4 = this.DpsHandler != null && this.DpsHandler.IsVisible(); + if (flag4) + { + this.DpsHandler.SetDps(dps2, num); + } + } + } + + private void _ClearStatistics() + { + for (int i = 0; i < this.m_StatisticsList.Count; i++) + { + this.m_StatisticsList[i].Recycle(); + } + this.m_StatisticsList.Clear(); + this.m_DicStatistics.Clear(); + } + + private void _BuildPlayerStatistics(BattleStatisticsNtf data) + { + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + XSkillMgr skillMgr = XSingleton.singleton.Player.SkillMgr; + bool flag2 = skillMgr == null; + if (!flag2) + { + bool flag3 = data.skillCount.Count != data.skillID.Count || data.skillID.Count != data.skillValue.Count; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Count not the same. ", data.skillID.Count.ToString(), " ", data.skillCount.Count.ToString(), " ", data.skillValue.Count.ToString()); + } + else + { + this.m_ServerSkillStatistics.Reset(); + for (int i = 0; i < data.skillID.Count; i++) + { + this.m_ServerSkillStatistics.OnCast(data.skillID[i], data.skillCount[i]); + this.m_ServerSkillStatistics.OnCastDamage(data.skillID[i], data.skillValue[i]); + } + this.m_SkillStatistics.Reset(); + this.m_ServerSkillStatistics.EndTo(XSingleton.singleton.Player, this.m_SkillStatistics, false); + this._ProcessSkillStatistics(); + } + } + } + } + + private void _BuildPlayerStatistics() + { + XSecuritySkillInfo xsecuritySkillInfo = XSecuritySkillInfo.TryGetStatistics(XSingleton.singleton.Player); + bool flag = xsecuritySkillInfo == null; + if (!flag) + { + XAttributes attributes = XSingleton.singleton.Player.Attributes; + XSkillMgr skillMgr = XSingleton.singleton.Player.SkillMgr; + bool flag2 = attributes == null || skillMgr == null; + if (!flag2) + { + this.m_SkillStatistics.Reset(); + xsecuritySkillInfo.EndTo(XSingleton.singleton.Player, this.m_SkillStatistics, false); + this._ProcessSkillStatistics(); + } + } + } + + private void _ProcessSkillStatistics() + { + XCombatStatisticsInfo data = XDataPool.GetData(); + bool flag = !data.Set(this.m_SkillStatistics.NormalAttackInfo, XSingleton.singleton.Player, this.m_SkillReset.NormalAttackInfo); + if (flag) + { + data.Recycle(); + } + else + { + data.name = XStringDefineProxy.GetString("PhysicalAttack"); + data.CutName(); + this.m_StatisticsList.Add(data); + this.m_DicStatistics[data.name] = data; + } + for (int i = 0; i < this.m_SkillStatistics.SkillInfoList.Count; i++) + { + XCombatStatisticsInfo data2 = XDataPool.GetData(); + bool flag2 = !data2.Set(this.m_SkillStatistics.SkillInfoList[i], XSingleton.singleton.Player, this.m_SkillReset.GetSkillInfoByID(this.m_SkillStatistics.SkillInfoList[i]._SkillID)); + if (flag2) + { + data2.Recycle(); + } + else + { + this.m_StatisticsList.Add(data2); + this.m_DicStatistics[data2.name] = data2; + } + } + } + + private void _BuildMobsStatistics(BattleStatisticsNtf data) + { + bool flag = data.mobCount.Count != data.mobID.Count || data.mobID.Count != data.mobValue.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Count not the same. ", data.mobID.Count.ToString(), " ", data.mobCount.Count.ToString(), " ", data.mobValue.Count.ToString()); + } + else + { + this.m_ServerMobStatistics.Reset(); + for (int i = 0; i < data.mobID.Count; i++) + { + this.m_ServerMobStatistics.OnCast(data.mobID[i], data.mobCount[i]); + this.m_ServerMobStatistics.OnCastDamage(data.mobID[i], data.mobValue[i]); + } + this.m_MobStatistics.Reset(); + this.m_MobStatistics.Merge(this.m_ServerMobStatistics); + this._ProcessMobStatistics(); + } + } + + private void _BuildMobsStatistics() + { + XSecurityMobInfo xsecurityMobInfo = XSecurityMobInfo.TryGetStatistics(XSingleton.singleton.Player); + bool flag = xsecurityMobInfo == null; + if (!flag) + { + this.m_MobStatistics.Reset(); + this.m_MobStatistics.Merge(xsecurityMobInfo); + XSkillComponent skill = XSingleton.singleton.Player.Skill; + bool flag2 = skill != null && skill.SkillMobs != null; + if (flag2) + { + for (int i = 0; i < skill.SkillMobs.Count; i++) + { + this.m_MobStatistics.Append(skill.SkillMobs[i]); + } + } + XBuffComponent buffs = XSingleton.singleton.Player.Buffs; + bool flag3 = buffs != null; + if (flag3) + { + for (int j = 0; j < buffs.BuffList.Count; j++) + { + XBuff xbuff = buffs.BuffList[j]; + bool flag4 = !xbuff.Valid || xbuff.EffectData.MobID == 0UL; + if (!flag4) + { + XEntity entity = XSingleton.singleton.GetEntity(xbuff.EffectData.MobID); + bool flag5 = entity == null; + if (!flag5) + { + this.m_MobStatistics.Append(entity); + } + } + } + } + this._ProcessMobStatistics(); + } + } + + private void _ProcessMobStatistics() + { + for (int i = 0; i < this.m_MobStatistics.MobInfoList.Count; i++) + { + XCombatStatisticsInfo data = XDataPool.GetData(); + bool flag = !data.Set(this.m_MobStatistics.MobInfoList[i], XSingleton.singleton.Player, this.m_MobReset.GetMobInfoByID(this.m_MobStatistics.MobInfoList[i]._TemplateID)); + if (flag) + { + data.Recycle(); + } + else + { + XCombatStatisticsInfo xcombatStatisticsInfo; + bool flag2 = this.m_DicStatistics.TryGetValue(data.name, out xcombatStatisticsInfo); + if (flag2) + { + xcombatStatisticsInfo.MergeValue(data); + data.Recycle(); + } + else + { + this.m_StatisticsList.Add(data); + this.m_DicStatistics[data.name] = data; + } + } + } + } + + public void ReqStatistics() + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + PtcC2G_BattleStatisticsReport proto = new PtcC2G_BattleStatisticsReport(); + XSingleton.singleton.Send(proto); + } + else + { + this._ClearStatistics(); + this._BuildPlayerStatistics(); + this._BuildMobsStatistics(); + this.m_StatisticsList.Sort(); + this._BuildPercentage(); + this._RefreshUI(); + } + } + + public void OnGetStatistics(BattleStatisticsNtf data) + { + bool flag = data == null; + if (!flag) + { + this._ClearStatistics(); + this._BuildPlayerStatistics(data); + this._BuildMobsStatistics(data); + this.m_StatisticsList.Sort(); + this._BuildPercentage(); + this._RefreshUI(); + } + } + + public void ResetStatistics() + { + this.m_SkillReset.Reset(); + this.m_SkillReset.Merge(this.m_SkillStatistics); + this.m_MobReset.Reset(); + this.m_MobReset.Merge(this.m_MobStatistics); + } + + private void _BuildPercentage() + { + this.TotalDamage = 0.0; + for (int i = 0; i < this.m_StatisticsList.Count; i++) + { + XCombatStatisticsInfo xcombatStatisticsInfo = this.m_StatisticsList[i]; + this.TotalDamage += xcombatStatisticsInfo.value; + } + for (int j = 0; j < this.m_StatisticsList.Count; j++) + { + XCombatStatisticsInfo xcombatStatisticsInfo2 = this.m_StatisticsList[j]; + xcombatStatisticsInfo2.percent = ((this.TotalDamage == 0.0) ? 0f : ((float)(xcombatStatisticsInfo2.value / this.TotalDamage))); + } + } + + public void _RefreshUI() + { + bool flag = this.StatisticsHandler != null && this.StatisticsHandler.IsVisible(); + if (flag) + { + this.StatisticsHandler.RefreshData(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCombatStatisticsDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCombatStatisticsDocument.cs.meta new file mode 100644 index 00000000..0b775a65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombatStatisticsDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44a2688a483bf874bbf1947ac1764a1f +timeCreated: 1611403645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCombatStatisticsInfo.cs b/Client/Assets/Scripts/XMainClient/XCombatStatisticsInfo.cs new file mode 100644 index 00000000..790bcb65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombatStatisticsInfo.cs @@ -0,0 +1,142 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCombatStatisticsInfo : XDataBase, IComparable + { + public uint id; + + public string name; + + public int count; + + public double value; + + public float percent; + + public void CutName() + { + bool flag = this.name != null && this.name.Length > 5; + if (flag) + { + this.name = this.name.Substring(0, 4) + ".."; + } + } + + public bool Set(XSecuritySkillInfo.SkillInfo skillInfo, XEntity entity, XSecuritySkillInfo.SkillInfo resetInfo) + { + return this.Set(skillInfo._SkillID, skillInfo._CastCount, (double)skillInfo._AttackTotal, entity, resetInfo); + } + + public bool Set(uint _id, int _count, double _value, XEntity entity, XSecuritySkillInfo.SkillInfo resetInfo) + { + this.id = _id; + this.value = _value; + this.count = _count; + bool flag = resetInfo != null && resetInfo._SkillID == this.id; + if (flag) + { + this.value -= (double)resetInfo._AttackTotal; + this.count -= resetInfo._CastCount; + } + bool flag2 = this.value < 0.0010000000474974513; + bool result; + if (flag2) + { + result = false; + } + else + { + uint preSkill = XSingleton.singleton.GetPreSkill(this.id, entity.SkillCasterTypeID); + bool flag3 = preSkill > 0u; + if (flag3) + { + this.id = preSkill; + } + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this.id, 1u, entity.SkillCasterTypeID); + bool flag4 = skillConfig != null; + if (flag4) + { + this.name = skillConfig.ScriptName; + } + this.CutName(); + result = true; + } + return result; + } + + public bool Set(XSecurityMobInfo.MobInfo mobInfo, XEntity entity, XSecurityMobInfo.MobInfo resetInfo) + { + return this.Set(mobInfo._TemplateID, mobInfo._CastCount, (double)mobInfo._AttackTotal, entity, resetInfo); + } + + public bool Set(uint _id, int _count, double _value, XEntity entity, XSecurityMobInfo.MobInfo resetInfo) + { + this.id = _id; + this.value = _value; + this.count = _count; + bool flag = resetInfo != null && resetInfo._TemplateID == this.id; + if (flag) + { + this.value -= (double)resetInfo._AttackTotal; + this.count -= resetInfo._CastCount; + } + bool flag2 = this.value < 0.0010000000474974513; + bool result; + if (flag2) + { + result = false; + } + else + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this.id); + bool flag3 = byID != null; + if (flag3) + { + this.name = byID.Name; + } + this.CutName(); + result = true; + } + return result; + } + + public void MergeValue(XCombatStatisticsInfo other) + { + this.value += other.value; + } + + public int CompareTo(XCombatStatisticsInfo other) + { + int num = -this.value.CompareTo(other.value); + bool flag = num == 0; + if (flag) + { + num = -this.count.CompareTo(other.count); + } + bool flag2 = num == 0; + if (flag2) + { + num = this.id.CompareTo(other.id); + } + return num; + } + + public override void Init() + { + base.Init(); + this.id = 0u; + this.name = string.Empty; + this.count = 0; + this.value = 0.0; + this.percent = 0f; + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCombatStatisticsInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XCombatStatisticsInfo.cs.meta new file mode 100644 index 00000000..1eacd3d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombatStatisticsInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4dc1f1e5e2e167c47aaa0ce9972902cd +timeCreated: 1611403696 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCombinedSkill.cs b/Client/Assets/Scripts/XMainClient/XCombinedSkill.cs new file mode 100644 index 00000000..c69ce4b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombinedSkill.cs @@ -0,0 +1,534 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XCombinedSkill : XArtsSkill + { + public override int SkillType + { + get + { + return 3; + } + } + + public override XSkillCore MainCore + { + get + { + return this._main_core; + } + } + + private XSkillCore _main_core = null; + + private int _combined_id = 0; + + private uint _combine_token = 0u; + + private int _result_time = 0; + + private bool _shut_down = false; + + private float _shut_down_elapsed = 0f; + + private SmallBuffer _combined_token; + + private enum ECombinedSkillTimerCb + { + ECombined = 25, + ECombinedSkillNum + } + + public override void Initialize(XEntity firer) + { + base.Initialize(firer); + this._combined_token.debugName = "XCombinedSkill._combined_token"; + XSingleton.singleton.GetSmallBuffer(ref this._combined_token, 16, 0); + } + + public override void Uninitialize() + { + base.Uninitialize(); + XSingleton.singleton.ReturnSmallBuffer(ref this._combined_token); + } + + protected override bool InnerProcessTimer(object param, int id) + { + bool flag = !base.InnerProcessTimer(param, id); + if (flag) + { + bool flag2 = id == 25; + if (flag2) + { + this.Combined(param); + return true; + } + } + return false; + } + + public override uint GetCombinedId() + { + return (uint)this._combined_id; + } + + public override void TriggerAnim() + { + bool flag = this._firer.Ator != null; + if (flag) + { + float normalizedTime = this.MainCore.Soul.Combined[this._combined_id].At / base.Core.Soul.Time; + this._firer.Ator.Play(XSkillData.CombinedOverrideMap[this._combined_id], 1, normalizedTime); + } + } + + public void ShutDown() + { + this._shut_down = true; + } + + protected override void FireEvents() + { + float at = this.MainCore.Soul.Combined[this._combined_id].At; + bool flag = this._data.Result != null; + if (flag) + { + for (int i = 0; i < this._data.Result.Count; i++) + { + bool flag2 = this._data.Result[i].LongAttackEffect || !XSingleton.singleton.SyncMode || !this._demonstration; + if (flag2) + { + XResultData xresultData = this._data.Result[i]; + int result_time = this._result_time; + this._result_time = result_time + 1; + xresultData.Token = result_time; + bool flag3 = this._data.Result[i].At >= at; + if (flag3) + { + float num = this._data.Result[i].At - at; + base.AddedTimerToken(XSingleton.singleton.SetTimer(num * this._time_scale, this._TimerCallback, this._data.Result[i], XArtsSkill.EArtsSkillTimerCb.EOnResult), true); + } + } + } + } + bool flag4 = this._data.Charge != null; + if (flag4) + { + for (int j = 0; j < this._data.Charge.Count; j++) + { + float num2 = this._data.Charge[j].Using_Curve ? 0f : this._data.Charge[j].At; + bool flag5 = num2 >= at; + if (flag5) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer((num2 - at) * this._time_scale, this._TimerCallback, this._data.Charge[j], XArtsSkill.EArtsSkillTimerCb.ECharge), true); + } + else + { + int o = (int)((at - num2) * 1000f) << 16 | j; + base.ChargeTo(o); + } + } + } + bool flag6 = !XSingleton.singleton.SyncMode || this._demonstration; + if (flag6) + { + bool flag7 = !this._demonstration; + if (flag7) + { + bool flag8 = this._data.Manipulation != null; + if (flag8) + { + for (int k = 0; k < this._data.Manipulation.Count; k++) + { + bool flag9 = this._data.Manipulation[k].At >= at; + if (flag9) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Manipulation[k].At * this._time_scale, this._TimerCallback, this._data.Manipulation[k], XArtsSkill.EArtsSkillTimerCb.EManipulate), true); + } + } + } + } + bool flag10 = this._data.Mob != null; + if (flag10) + { + for (int l = 0; l < this._data.Mob.Count; l++) + { + bool flag11 = this._data.Mob[l].TemplateID > 0 && this._data.Mob[l].At >= at; + if (flag11) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Mob[l].At * this._time_scale, this._TimerCallback, this._data.Mob[l], XArtsSkill.EArtsSkillTimerCb.EMob), true); + } + } + } + } + bool override_Presentation = this.MainCore.Soul.Combined[this._combined_id].Override_Presentation; + if (override_Presentation) + { + bool flag12 = this._data.Fx != null && !this._firer.MobShield; + if (flag12) + { + for (int m = 0; m < this._data.Fx.Count; m++) + { + bool flag13 = !this._data.Fx[m].Shield || !XSingleton.singleton.FxShield(this._firer); + if (flag13) + { + bool flag14 = this._data.Fx[m].At >= at; + if (flag14) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer((this._data.Fx[m].At - at) * this._time_scale, this._TimerCallback, this._data.Fx[m], XArtsSkill.EArtsSkillTimerCb.EFx), false); + } + } + } + } + bool flag15 = this._data.Audio != null && this._firer.IsVisible && !this._firer.MobShield; + if (flag15) + { + for (int n = 0; n < this._data.Audio.Count; n++) + { + bool flag16 = this._data.Audio[n].At >= at; + if (flag16) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer((this._data.Audio[n].At - at) * this._time_scale, this._TimerCallback, this._data.Audio[n], XArtsSkill.EArtsSkillTimerCb.EAudio), false); + } + } + } + bool flag17 = this._demonstration || this._firer.IsPlayer || this._firer.IsBoss; + if (flag17) + { + bool flag18 = this._data.CameraEffect != null; + if (flag18) + { + for (int num3 = 0; num3 < this._data.CameraEffect.Count; num3++) + { + bool flag19 = this._data.CameraEffect[num3].At >= at; + if (flag19) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer((this._data.CameraEffect[num3].At - at) * this._time_scale, this._TimerCallback, this._data.CameraEffect[num3], XArtsSkill.EArtsSkillTimerCb.EShake), false); + } + } + } + bool flag20 = this._demonstration || this._firer.IsPlayer; + if (flag20) + { + bool flag21 = this._data.CameraMotion != null && !string.IsNullOrEmpty(this._data.CameraMotion.Motion3D); + if (flag21) + { + bool flag22 = this._data.CameraMotion.At >= at; + if (flag22) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer((this._data.CameraMotion.At - at) * this._time_scale, this._TimerCallback, this._core, XArtsSkill.EArtsSkillTimerCb.ECameraMotion), false); + } + } + bool flag23 = this._data.CameraPostEffect != null; + if (flag23) + { + bool flag24 = !this._demonstration && !string.IsNullOrEmpty(this._data.CameraPostEffect.Effect); + if (flag24) + { + bool flag25 = this._data.CameraPostEffect.At >= at; + if (flag25) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer((this._data.CameraPostEffect.At - at) * this._time_scale, this._TimerCallback, this._core, XArtsSkill.EArtsSkillTimerCb.ECameraPostEffect), false); + base.AddedTimerToken(XSingleton.singleton.SetTimer((this._data.CameraPostEffect.End - at) * this._time_scale, this._TimerCallback, this._core, XArtsSkill.EArtsSkillTimerCb.EEndCameraPostEffect), false); + } + } + } + } + } + } + bool flag26 = this._data.Warning != null; + if (flag26) + { + for (int num4 = 0; num4 < this._data.Warning.Count; num4++) + { + bool flag27 = this._data.Warning[num4].At >= at; + if (flag27) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer((this._data.Warning[num4].At - at) * this._time_scale, this._TimerCallback, this._data.Warning[num4], XArtsSkill.EArtsSkillTimerCb.EWarning), false); + } + } + } + } + + protected override bool Present() + { + bool shut_down = this._shut_down; + bool result; + if (shut_down) + { + result = !XSingleton.singleton.IsGreater(this._timeElapsed, this._shut_down_elapsed * this._time_scale); + } + else + { + result = base.Present(); + } + return result; + } + + public void CombinedStop(bool cleanUp) + { + bool combined_set_camera_effect = this._combined_set_camera_effect; + if (combined_set_camera_effect) + { + XCameraMotionEndEventArgs @event = XEventPool.GetEvent(); + @event.Target = this._firer; + @event.Firer = this._affect_camera; + XSingleton.singleton.FireEvent(@event); + this._affect_camera.Ator.speed = 1f; + bool flag = this._firer.IsPlayer && this._end_solo_effect; + if (flag) + { + XSingleton.singleton.GameCamera.TrySolo(); + } + } + this._end_solo_effect = false; + this._combined_set_camera_effect = false; + bool combined_set_camera_shake = this._combined_set_camera_shake; + if (combined_set_camera_shake) + { + XCameraShakeEventArgs event2 = XEventPool.GetEvent(); + event2.Effect = null; + event2.Firer = this._affect_camera; + XSingleton.singleton.FireEvent(event2); + } + this._combined_set_camera_shake = false; + bool demonstration = this._demonstration; + if (demonstration) + { + XAttackShowEndArgs event3 = XEventPool.GetEvent(); + event3.ForceQuit = false; + event3.Firer = this._firer; + XSingleton.singleton.FireEvent(event3); + } + for (int i = 0; i < this._combined_fx.Count; i++) + { + XFx fx = this._combined_fx[i] as XFx; + XSingleton.singleton.DestroyFx(fx, cleanUp); + } + XSingleton.singleton.StopSound(this._firer, AudioChannel.SkillCombine); + bool flag2 = this.MainCore.Soul.Logical != null; + if (flag2) + { + bool flag3 = this.MainCore.PreservedStrength > 0; + if (flag3) + { + base.PreservedSEnd(null); + } + bool flag4 = this.MainCore.Soul.Logical.QTEData != null && this.MainCore.Soul.Logical.QTEData.Count != 0; + if (flag4) + { + base.QTEOff(null); + } + } + XSingleton.singleton.KillTimer(this._combine_token); + this._combined_fx.Clear(); + bool flag5 = this.MainCore.Soul.CameraPostEffect != null; + if (flag5) + { + bool flag6 = !this._demonstration && !string.IsNullOrEmpty(this.MainCore.Soul.CameraPostEffect.Effect); + if (flag6) + { + this.MainCore.EndCameraPostEffect(); + } + bool flag7 = !this._demonstration && this.MainCore.Soul.CameraPostEffect.SolidBlack; + if (flag7) + { + this._affect_camera.SolidCancel(); + } + } + bool combined_set_not_selected = this._combined_set_not_selected; + if (combined_set_not_selected) + { + this._firer.CanSelected = true; + } + this._combined_set_not_selected = false; + } + + private void MainCoreStart() + { + this._result_time = 0; + this._shut_down = false; + this._combined_set_camera_effect = false; + this._combined_set_camera_shake = false; + this._combined_set_not_selected = false; + bool flag = this.MainCore.Soul.Logical != null && this.MainCore.Soul.Logical.QTEData != null; + if (flag) + { + for (int i = 0; i < this.MainCore.Soul.Logical.QTEData.Count; i++) + { + bool flag2 = this._firer.QTE != null && this.MainCore.Soul.Logical.QTEData[i].QTE != 0; + if (flag2) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Logical.QTEData[i].At * this._time_scale, this._TimerCallback, this.MainCore.Soul.Logical.QTEData[i].QTE, XArtsSkill.EArtsSkillTimerCb.EQTEOn)); + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Logical.QTEData[i].End * this._time_scale, this._TimerCallback, this.MainCore.Soul.Logical.QTEData[i].QTE, XArtsSkill.EArtsSkillTimerCb.EQTEOff)); + } + } + } + bool flag3 = this.MainCore.Soul.Logical != null; + if (flag3) + { + bool flag4 = this.MainCore.Soul.Logical != null && this.MainCore.Soul.Logical.Not_Selected_End > 0f; + if (flag4) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Logical.Not_Selected_At * this._time_scale, this._TimerCallback, this.MainCore, XArtsSkill.EArtsSkillTimerCb.ENotSelected)); + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Logical.Not_Selected_End * this._time_scale, this._TimerCallback, null, XArtsSkill.EArtsSkillTimerCb.ENotSelected)); + } + bool flag5 = this.MainCore.PreservedStrength > 0; + if (flag5) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Logical.PreservedAt * this._time_scale, this._TimerCallback, this.MainCore.PreservedStrength, XArtsSkill.EArtsSkillTimerCb.EPreservedSAt)); + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Logical.PreservedEndAt * this._time_scale, this._TimerCallback, null, XArtsSkill.EArtsSkillTimerCb.EPreservedSEnd)); + } + bool flag6 = !XSingleton.singleton.SyncMode && !string.IsNullOrEmpty(this.MainCore.Soul.Logical.Exstring); + if (flag6) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Logical.Exstring_At * this._time_scale, this._TimerCallback, this.MainCore.Soul.Logical.Exstring, XArtsSkill.EArtsSkillTimerCb.EExString)); + } + } + bool flag7 = this.MainCore.Soul.Fx != null && this._firer.IsVisible && !this._firer.MobShield; + if (flag7) + { + for (int j = 0; j < this.MainCore.Soul.Fx.Count; j++) + { + bool flag8 = !this.MainCore.Soul.Fx[j].Shield || !XSingleton.singleton.FxShield(this._firer); + if (flag8) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Fx[j].At * this._time_scale, this._TimerCallback, this.MainCore.Soul.Fx[j], XArtsSkill.EArtsSkillTimerCb.EFx)); + } + } + } + bool flag9 = this.MainCore.Soul.Audio != null && !this._firer.MobShield; + if (flag9) + { + for (int k = 0; k < this.MainCore.Soul.Audio.Count; k++) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.Audio[k].At * this._time_scale, this._TimerCallback, this.MainCore.Soul.Audio[k], XArtsSkill.EArtsSkillTimerCb.EAudio)); + } + } + bool flag10 = this._firer.IsPlayer || this._firer.IsBoss; + if (flag10) + { + bool flag11 = this.MainCore.Soul.CameraEffect != null; + if (flag11) + { + for (int l = 0; l < this.MainCore.Soul.CameraEffect.Count; l++) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.CameraEffect[l].At * this._time_scale, this._TimerCallback, this.MainCore.Soul.CameraEffect[l], XArtsSkill.EArtsSkillTimerCb.EShake)); + } + } + bool isPlayer = this._firer.IsPlayer; + if (isPlayer) + { + bool flag12 = this.MainCore.Soul.CameraMotion != null && !string.IsNullOrEmpty(this.MainCore.Soul.CameraMotion.Motion); + if (flag12) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.CameraMotion.At * this._time_scale, this._TimerCallback, this.MainCore, XArtsSkill.EArtsSkillTimerCb.ECameraMotion)); + } + bool flag13 = this.MainCore.Soul.CameraPostEffect != null; + if (flag13) + { + bool flag14 = !this._demonstration && !string.IsNullOrEmpty(this.MainCore.Soul.CameraPostEffect.Effect); + if (flag14) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.CameraPostEffect.At * this._time_scale, this._TimerCallback, this.MainCore, XArtsSkill.EArtsSkillTimerCb.ECameraPostEffect)); + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.CameraPostEffect.End * this._time_scale, this._TimerCallback, this.MainCore, XArtsSkill.EArtsSkillTimerCb.EEndCameraPostEffect)); + } + bool flag15 = !this._demonstration && this.MainCore.Soul.CameraPostEffect.SolidBlack; + if (flag15) + { + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.CameraPostEffect.Solid_At * this._time_scale, this._TimerCallback, this.MainCore, XArtsSkill.EArtsSkillTimerCb.ESolidBlack)); + this.AddedCombinedTimerToken(XSingleton.singleton.SetTimer(this.MainCore.Soul.CameraPostEffect.Solid_End * this._time_scale, this._TimerCallback, null, XArtsSkill.EArtsSkillTimerCb.ESolidBlack)); + } + } + } + } + bool suppressPlayer = this.MainCore.Soul.Logical.SuppressPlayer; + if (suppressPlayer) + { + XSingleton.singleton.DummilizePlayer(true); + } + } + + protected override bool Launch(XSkillCore core) + { + bool flag = core.Soul.Combined.Count > 0; + bool result; + if (flag) + { + this._main_core = core; + this.MainCore.Execute(this); + this.MainCoreStart(); + this.Combined(0); + result = true; + } + else + { + result = false; + } + return result; + } + + public void CombinedKillTimerAll() + { + for (int i = 0; i < this._combined_token.Count; i++) + { + XSingleton.singleton.KillTimer(this._combined_token[i]); + } + this._combined_token.Clear(); + } + + private void Combined(object param) + { + this._combined_id = (int)param; + XSkillCore skill = this._skillmgr.GetSkill(XSingleton.singleton.XHash(this.MainCore.Soul.Combined[this._combined_id].Name)); + bool flag = skill != null; + if (flag) + { + bool flag2 = this._combined_id > 0; + if (flag2) + { + bool flag3 = this._stop_method != null; + if (flag3) + { + this._stop_method(this); + } + bool shut_down = this._shut_down; + if (shut_down) + { + this._shut_down_elapsed = 0f; + for (int i = 0; i < this._combined_id; i++) + { + XSkillCore skill2 = this._skillmgr.GetSkill(XSingleton.singleton.XHash(this.MainCore.Soul.Combined[i].Name)); + this._shut_down_elapsed += ((skill2 != null) ? skill2.Soul.Time : 0f); + } + return; + } + XEntity target = this._demonstration ? null : base.Target; + base.Puppetize(false); + this._target = target; + this._firer.Skill.TagTrigger(); + bool flag4 = this._firer.Ator != null; + if (flag4) + { + this._firer.Ator.speed = 0f; + } + base.AnimInit = false; + } + this._core = skill; + this._data = this._core.Soul; + bool flag5 = this._combined_id + 1 < this.MainCore.Soul.Combined.Count; + if (flag5) + { + this._combine_token = XSingleton.singleton.SetTimer((this.MainCore.Soul.Combined[this._combined_id].End - this.MainCore.Soul.Combined[this._combined_id].At) * this._time_scale, this._TimerCallback, this._combined_id + 1, XCombinedSkill.ECombinedSkillTimerCb.ECombined); + } + } + } + + public void AddedCombinedTimerToken(uint token) + { + this._combined_token.Add(token); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCombinedSkill.cs.meta b/Client/Assets/Scripts/XMainClient/XCombinedSkill.cs.meta new file mode 100644 index 00000000..731aea9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCombinedSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8f9d5e3fcd36b534d8584a38f031b503 +timeCreated: 1611404135 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommand.cs b/Client/Assets/Scripts/XMainClient/XCommand.cs new file mode 100644 index 00000000..8efe720e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommand.cs @@ -0,0 +1,2314 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.Battle; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class PrivateImplementationDetails + { + internal static uint ComputeStringHash(string s) + { + uint num = new uint(); + if (s != null) + { + num = 0x811c9dc5; + for (int i = 0; i < s.Length; i++) + { + num = (s[i] ^ num) * 0x1000193; + } + } + return num; + } + } + + public class XCommand : XSingleton + { + private GameObject terrain = null; + + private uint _timeToken; + + private uint NpcID = 97u; + + public bool ProcessCommand(string command) + { + string[] array = command.Split(new char[] + { + ' ' + }); + string text = array[0]; + bool result = true; + string text2 = text; + uint num = PrivateImplementationDetails.ComputeStringHash(text2); + if (num <= 1738168302u) + { + if (num <= 1148745628u) + { + if (num <= 440395441u) + { + if (num <= 274900859u) + { + if (num <= 88104725u) + { + if (num != 11041011u) + { + if (num != 65180808u) + { + if (num != 88104725u) + { + goto IL_33E4; + } + if (!(text2 == "inquirylevelseal")) + { + goto IL_33E4; + } + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + DlgBase.singleton.AddMessage(specificDocument.SealType.ToString()); + goto IL_340B; + } + else + { + if (!(text2 == "sendflower")) + { + goto IL_33E4; + } + ulong roleid = ulong.Parse(array[1]); + uint count = uint.Parse(array[2]); + RpcC2G_SendFlower rpcC2G_SendFlower = new RpcC2G_SendFlower(); + rpcC2G_SendFlower.oArg.roleid = roleid; + rpcC2G_SendFlower.oArg.count = count; + XSingleton.singleton.Send(rpcC2G_SendFlower); + goto IL_340B; + } + } + else + { + if (!(text2 == "compose")) + { + goto IL_33E4; + } + bool flag = array.Length > 1; + if (flag) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = (ulong)uint.Parse(array[1]); + rpcC2G_UseItem.oArg.count = 1u; + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.Composite); + XSingleton.singleton.Send(rpcC2G_UseItem); + } + goto IL_340B; + } + } + else if (num != 93523792u) + { + if (num != 200425548u) + { + if (num != 274900859u) + { + goto IL_33E4; + } + if (!(text2 == "guildhall")) + { + goto IL_33E4; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_340B; + } + else + { + if (!(text2 == "pandora")) + { + goto IL_33E4; + } + XSingleton.singleton.PandoraOnJsonEvent(array[1]); + goto IL_340B; + } + } + else + { + if (!(text2 == "changepro")) + { + goto IL_33E4; + } + RpcC2G_ChangeProfession rpcC2G_ChangeProfession = new RpcC2G_ChangeProfession(); + rpcC2G_ChangeProfession.oArg.pro = uint.Parse(array[1]); + XSingleton.singleton.Send(rpcC2G_ChangeProfession); + goto IL_340B; + } + } + else if (num <= 327549200u) + { + if (num != 279460018u) + { + if (num != 280052408u) + { + if (num != 327549200u) + { + goto IL_33E4; + } + if (!(text2 == "invite")) + { + goto IL_33E4; + } + bool flag2 = array.Length >= 2; + if (flag2) + { + ulong[] array2 = null; + bool flag3 = array.Length >= 3; + if (flag3) + { + array2 = new ulong[array.Length - 2]; + for (int i = 2; i < array.Length; i++) + { + array2[i - 2] = ulong.Parse(array[i]); + } + } + XInvitationDocument specificDocument2 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + specificDocument2.SendOpenSysInvitation((XSysDefine)int.Parse(array[1]), array2); + } + goto IL_340B; + } + else + { + if (!(text2 == "sscale")) + { + goto IL_33E4; + } + bool flag4 = array.Length == 2; + if (flag4) + { + float num2 = float.Parse(array[1]); + float num3 = 1136f * num2; + float num4 = 640f * num2; + Screen.SetResolution((int)num3, (int)num4, true); + } + goto IL_340B; + } + } + else + { + if (!(text2 == "attr")) + { + goto IL_33E4; + } + bool flag5 = !XSingleton.singleton.SyncMode; + if (flag5) + { + bool flag6 = array.Length >= 3; + if (flag6) + { + int attrKey = int.Parse(array[1]); + int num5 = int.Parse(array[2]); + bool flag7 = array.Length == 3; + XEntity xentity; + if (flag7) + { + xentity = XSingleton.singleton.Player; + } + else + { + ulong id = ulong.Parse(array[3]); + xentity = XSingleton.singleton.GetEntity(id); + } + bool flag8 = xentity != null; + if (flag8) + { + XAttrChangeEventArgs xattrChangeEventArgs = new XAttrChangeEventArgs(); + xattrChangeEventArgs.AttrKey = (XAttributeDefine)attrKey; + xattrChangeEventArgs.DeltaValue = (double)num5; + xattrChangeEventArgs.Firer = xentity; + XSingleton.singleton.FireEvent(xattrChangeEventArgs); + } + } + goto IL_340B; + } + goto IL_33E4; + } + } + else if (num <= 388948835u) + { + if (num != 372738696u) + { + if (num != 388948835u) + { + goto IL_33E4; + } + if (!(text2 == "setminimapsize")) + { + goto IL_33E4; + } + DlgBase.singleton.IndicateHandler.SetMiniMapSize(new Vector2(float.Parse(array[1]), float.Parse(array[2])), (array.Length > 3) ? float.Parse(array[3]) : 0f); + goto IL_340B; + } + else + { + if (!(text2 == "print")) + { + goto IL_33E4; + } + XSingleton.singleton.Print(); + goto IL_340B; + } + } + else if (num != 392118284u) + { + if (num != 440395441u) + { + goto IL_33E4; + } + if (!(text2 == "blackwhite")) + { + goto IL_33E4; + } + XSingleton.singleton.MakeEffectEnable(XPostEffect.BlackWhite, true); + goto IL_340B; + } + else + { + if (!(text2 == "addfriend")) + { + goto IL_33E4; + } + ulong friendroleid = ulong.Parse(array[1]); + RpcC2M_AddFriendNew rpcC2M_AddFriendNew = new RpcC2M_AddFriendNew(); + rpcC2M_AddFriendNew.oArg.friendroleid = friendroleid; + XSingleton.singleton.Send(rpcC2M_AddFriendNew); + goto IL_340B; + } + } + else if (num <= 722777557u) + { + if (num <= 591033967u) + { + if (num != 497501987u) + { + if (num != 580838260u) + { + if (num != 591033967u) + { + goto IL_33E4; + } + if (!(text2 == "officialversionserver")) + { + goto IL_33E4; + } + bool flag9 = File.Exists(Path.Combine(Application.persistentDataPath, "TEST_VERSION")); + if (flag9) + { + File.Delete(Path.Combine(Application.persistentDataPath, "TEST_VERSION")); + } + goto IL_340B; + } + else + { + if (!(text2 == "clientaddpk")) + { + goto IL_33E4; + } + RpcC2M_PkReqC2M rpcC2M_PkReqC2M = new RpcC2M_PkReqC2M(); + rpcC2M_PkReqC2M.oArg.type = PkReqType.PKREQ_ADDPK; + XSingleton.singleton.Send(rpcC2M_PkReqC2M); + goto IL_340B; + } + } + else + { + if (!(text2 == "gyrooff")) + { + goto IL_33E4; + } + XSingleton.singleton.Enabled = false; + goto IL_340B; + } + } + else if (num <= 667630371u) + { + if (num != 601516746u) + { + if (num != 667630371u) + { + goto IL_33E4; + } + if (!(text2 == "close")) + { + goto IL_33E4; + } + XSingleton.singleton.Close(NetErrCode.Net_NoError); + goto IL_340B; + } + else + { + if (!(text2 == "unloadbundle")) + { + goto IL_33E4; + } + XSingleton.singleton.ABManager.UnloadNotUsedLoader(); + goto IL_340B; + } + } + else if (num != 680877751u) + { + if (num != 722777557u) + { + goto IL_33E4; + } + if (!(text2 == "targetframe")) + { + goto IL_33E4; + } + bool flag10 = Application.targetFrameRate != XShell.TargetFrame; + if (flag10) + { + Application.targetFrameRate = XShell.TargetFrame; + } + else + { + Application.targetFrameRate = -1; + } + goto IL_340B; + } + else + { + if (!(text2 == "levelover")) + { + goto IL_33E4; + } + XSingleton.singleton.ReqLeaveScene(); + goto IL_340B; + } + } + else if (num <= 781696470u) + { + if (num != 766741408u) + { + if (num != 774867328u) + { + if (num != 781696470u) + { + goto IL_33E4; + } + if (!(text2 == "testskill")) + { + goto IL_33E4; + } + XSingleton.singleton.TestSkillTable(); + goto IL_340B; + } + else + { + if (!(text2 == "suit")) + { + goto IL_33E4; + } + int suitID = int.Parse(array[1]); + XFashionDocument specificDocument3 = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + specificDocument3.EquipSuit(suitID); + goto IL_340B; + } + } + else + { + if (!(text2 == "listbuff")) + { + goto IL_33E4; + } + bool flag11 = !XSingleton.singleton.SyncMode; + if (flag11) + { + bool flag12 = array.Length >= 2; + ulong id2; + if (flag12) + { + id2 = ulong.Parse(array[1]); + } + else + { + id2 = XSingleton.singleton.XPlayerData.RoleID; + } + XEntity entity = XSingleton.singleton.GetEntity(id2); + bool flag13 = entity != null && entity.Buffs != null; + if (flag13) + { + XSingleton.singleton.CleanStringCombine(); + StringBuilder sharedStringBuilder = XSingleton.singleton.GetSharedStringBuilder(); + List buffList = entity.Buffs.BuffList; + for (int j = 0; j < buffList.Count; j++) + { + sharedStringBuilder.Append("[").Append(buffList[j].ID).Append(":").Append(buffList[j].Level).Append("]"); + } + DlgBase.singleton.AddMessage(sharedStringBuilder.ToString()); + } + goto IL_340B; + } + goto IL_33E4; + } + } + else if (num <= 936667975u) + { + if (num != 916869054u) + { + if (num != 936667975u) + { + goto IL_33E4; + } + if (!(text2 == "addblack")) + { + goto IL_33E4; + } + RpcC2M_AddBlackListNew rpcC2M_AddBlackListNew = new RpcC2M_AddBlackListNew(); + rpcC2M_AddBlackListNew.oArg.otherroleid = ulong.Parse(array[1]); + XSingleton.singleton.Send(rpcC2M_AddBlackListNew); + goto IL_340B; + } + else + { + if (!(text2 == "clearguildcollectCD")) + { + goto IL_33E4; + } + XGuildCollectDocument specificDocument4 = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + specificDocument4.LotteryCDInfo.Clear(); + goto IL_340B; + } + } + else if (num != 1064815245u) + { + if (num != 1148745628u) + { + goto IL_33E4; + } + if (!(text2 == "gausblur")) + { + goto IL_33E4; + } + XSingleton.singleton.MakeEffectEnable(XPostEffect.GausBlur, true); + goto IL_340B; + } + else + { + if (!(text2 == "free3g")) + { + goto IL_33E4; + } + AdditionRemindDocument specificDocument5 = XDocuments.GetSpecificDocument(AdditionRemindDocument.uuID); + specificDocument5.gm_is_3g = true; + goto IL_340B; + } + } + else if (num <= 1493544360u) + { + if (num <= 1355973766u) + { + if (num <= 1228828494u) + { + if (num != 1200064310u) + { + if (num != 1209769725u) + { + if (num != 1228828494u) + { + goto IL_33E4; + } + if (!(text2 == "randomfriend")) + { + goto IL_33E4; + } + string match = array[1]; + RpcC2M_RandomFriendWaitListNew rpcC2M_RandomFriendWaitListNew = new RpcC2M_RandomFriendWaitListNew(); + rpcC2M_RandomFriendWaitListNew.oArg.match = match; + XSingleton.singleton.Send(rpcC2M_RandomFriendWaitListNew); + goto IL_340B; + } + else if (!(text2 == "god")) + { + goto IL_33E4; + } + } + else + { + if (!(text2 == "quit")) + { + goto IL_33E4; + } + Application.Quit(); + goto IL_340B; + } + } + else if (num <= 1272528970u) + { + if (num != 1244307660u) + { + if (num != 1272528970u) + { + goto IL_33E4; + } + if (!(text2 == "cinfo")) + { + goto IL_33E4; + } + XFileLog._OpenCustomBtn = !XFileLog._OpenCustomBtn; + goto IL_340B; + } + else + { + if (!(text2 == "buff")) + { + goto IL_33E4; + } + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + goto IL_33E4; + } + XBuffAddEventArgs xbuffAddEventArgs = XEventPool.GetEvent(); + bool flag14 = array.Length >= 3; + if (flag14) + { + xbuffAddEventArgs.xBuffDesc.BuffID = int.Parse(array[1]); + xbuffAddEventArgs.xBuffDesc.BuffLevel = int.Parse(array[2]); + xbuffAddEventArgs.xBuffDesc.CasterID = XSingleton.singleton.XPlayerData.RoleID; + bool flag15 = array.Length >= 4; + ulong id3; + if (flag15) + { + bool flag16 = array[3].StartsWith("t"); + if (flag16) + { + xbuffAddEventArgs.xBuffDesc.EffectTime = float.Parse(array[3].Substring(1)); + bool flag17 = array.Length >= 5; + if (flag17) + { + id3 = ulong.Parse(array[4]); + } + else + { + id3 = XSingleton.singleton.XPlayerData.RoleID; + } + } + else + { + id3 = ulong.Parse(array[3]); + } + } + else + { + id3 = XSingleton.singleton.XPlayerData.RoleID; + } + XEntity entity2 = XSingleton.singleton.GetEntity(id3); + bool flag18 = entity2 != null; + if (flag18) + { + xbuffAddEventArgs.Firer = entity2; + XSingleton.singleton.FireEvent(xbuffAddEventArgs); + xbuffAddEventArgs = null; + } + } + bool flag19 = xbuffAddEventArgs != null; + if (flag19) + { + xbuffAddEventArgs.Recycle(); + } + goto IL_340B; + } + } + else if (num != 1343365414u) + { + if (num != 1355973766u) + { + goto IL_33E4; + } + if (!(text2 == "gyro")) + { + goto IL_33E4; + } + float num6 = 0f; + float num7 = 0f; + float num8 = 0f; + bool flag20 = array.Length > 1; + if (flag20) + { + float.TryParse(array[1], out num6); + } + bool flag21 = array.Length > 2; + if (flag21) + { + float.TryParse(array[2], out num7); + } + bool flag22 = array.Length > 3; + if (flag22) + { + float.TryParse(array[3], out num8); + } + bool flag23 = num6 == 0f; + if (flag23) + { + num6 = XSingleton.singleton.Scale; + } + bool flag24 = num7 == 0f; + if (flag24) + { + num7 = XSingleton.singleton.DeadZone; + } + bool flag25 = num8 == 0f; + if (flag25) + { + num8 = XSingleton.singleton.Frequency; + } + XSingleton.singleton.Set(num6, num8, num7); + goto IL_340B; + } + else + { + if (!(text2 == "equipall")) + { + goto IL_33E4; + } + XBagDocument xbagDoc = XSingleton.singleton.Doc.XBagDoc; + xbagDoc.GetAllEquip(); + goto IL_340B; + } + } + else if (num <= 1410630901u) + { + if (num != 1361793415u) + { + if (num != 1367618275u) + { + if (num != 1410630901u) + { + goto IL_33E4; + } + if (!(text2 == "battleqte")) + { + goto IL_33E4; + } + DlgBase.singleton.SetStatus(QteUIType.Abnormal, true); + goto IL_340B; + } + else + { + if (!(text2 == "sweep")) + { + goto IL_33E4; + } + RpcC2G_Sweep rpcC2G_Sweep = new RpcC2G_Sweep(); + rpcC2G_Sweep.oArg.sceneID = uint.Parse(array[1]); + rpcC2G_Sweep.oArg.count = uint.Parse(array[2]); + XSingleton.singleton.Send(rpcC2G_Sweep); + goto IL_340B; + } + } + else + { + if (!(text2 == "getwindow")) + { + goto IL_33E4; + } + string str = array[1]; + string childName = array[2]; + GameObject gameObject = GameObject.Find("UIRoot/" + str + "(Clone)"); + bool flag26 = gameObject == null; + if (flag26) + { + DlgBase.singleton.AddMessage("dlg not found!"); + return true; + } + Transform transform = XSingleton.singleton.FindChild(gameObject.transform, childName); + bool flag27 = transform == null; + if (flag27) + { + DlgBase.singleton.AddMessage("window not found!"); + return true; + } + DlgBase.singleton.AddMessage(string.Concat(new object[] + { + "target window position: (", + transform.localPosition.x, + ",", + transform.localPosition.y, + ",", + transform.localPosition.z, + ")" + })); + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + bool flag28 = ixuisprite != null; + if (flag28) + { + DlgBase.singleton.AddMessage(string.Concat(new object[] + { + "target window size: ", + ixuisprite.spriteWidth, + "x", + ixuisprite.spriteHeight + })); + } + goto IL_340B; + } + } + else if (num <= 1456084084u) + { + if (num != 1431043365u) + { + if (num != 1456084084u) + { + goto IL_33E4; + } + if (!(text2 == "getdesall")) + { + goto IL_33E4; + } + XDesignationDocument specificDocument6 = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + for (int k = 1; k < specificDocument6._DesignationTable.Table.Length; k++) + { + RpcC2G_GMCommand rpcC2G_GMCommand = new RpcC2G_GMCommand(); + rpcC2G_GMCommand.oArg.cmd = string.Format("getdesignation {0}", specificDocument6._DesignationTable.Table[k].ID); + XSingleton.singleton.Send(rpcC2G_GMCommand); + } + result = true; + goto IL_340B; + } + else + { + if (!(text2 == "generatefiles")) + { + goto IL_33E4; + } + int num9 = 0; + int.TryParse(array[1], out num9); + XSingleton.singleton.GenerateAudioFiles(num9); + goto IL_340B; + } + } + else if (num != 1488615049u) + { + if (num != 1493544360u) + { + goto IL_33E4; + } + if (!(text2 == "queryrolestate")) + { + goto IL_33E4; + } + PtcC2M_RoleStateReportNew ptcC2M_RoleStateReportNew = new PtcC2M_RoleStateReportNew(); + for (int l = 0; l < array.Length; l++) + { + ptcC2M_RoleStateReportNew.Data.roleid.Add(ulong.Parse(array[l])); + } + XSingleton.singleton.Send(ptcC2M_RoleStateReportNew); + goto IL_340B; + } + else + { + if (!(text2 == "opengamezone")) + { + goto IL_33E4; + } + bool flag29 = DlgBase.singleton.IsVisible(); + if (flag29) + { + DlgBase.singleton.uiBehaviour.GetSysButton(XSysDefine.XSys_GameCommunity).SetVisible(true); + DlgBase.singleton.uiBehaviour.m_SysListV2.Refresh(); + } + goto IL_340B; + } + } + else if (num <= 1625305005u) + { + if (num <= 1510374019u) + { + if (num != 1496340684u) + { + if (num != 1508461632u) + { + if (num != 1510374019u) + { + goto IL_33E4; + } + if (!(text2 == "buildlog")) + { + goto IL_33E4; + } + XSingleton.singleton.ShowBuildLog = !XSingleton.singleton.ShowBuildLog; + goto IL_340B; + } + else + { + if (!(text2 == "damage")) + { + goto IL_33E4; + } + bool syncMode2 = XSingleton.singleton.SyncMode; + if (syncMode2) + { + goto IL_33E4; + } + bool flag30 = array.Length >= 2; + if (flag30) + { + bool flag31 = array[1] == "start"; + if (flag31) + { + bool flag32 = array.Length >= 3; + if (flag32) + { + float num10 = float.Parse(array[2]); + } + XSingleton.singleton.XPlayerData.TogglePrintDamage(true); + } + else + { + bool flag33 = array[1] == "end"; + if (flag33) + { + XSingleton.singleton.XPlayerData.TogglePrintDamage(false); + } + } + } + goto IL_340B; + } + } + else + { + if (!(text2 == "record")) + { + goto IL_33E4; + } + int num11 = int.Parse(array[1]); + XDebug.RecordChannel channel = (XDebug.RecordChannel)int.Parse(array[2]); + bool flag34 = num11 == 1; + if (flag34) + { + XSingleton.singleton.StartRecord(channel); + } + else + { + bool flag35 = num11 == 0; + if (flag35) + { + XSingleton.singleton.EndRecord(); + } + else + { + bool flag36 = num11 == 2; + if (flag36) + { + XSingleton.singleton.ClearRecord(); + } + } + } + goto IL_340B; + } + } + else if (num <= 1594484382u) + { + if (num != 1567532425u) + { + if (num != 1594484382u) + { + goto IL_33E4; + } + if (!(text2 == "listattr")) + { + goto IL_33E4; + } + bool flag37 = !XSingleton.singleton.SyncMode; + if (flag37) + { + bool flag38 = array.Length >= 2; + if (flag38) + { + ulong num12 = ulong.Parse(array[1]); + bool flag39 = num12 == 0UL; + if (flag39) + { + num12 = XSingleton.singleton.XPlayerData.RoleID; + } + XEntity entity3 = XSingleton.singleton.GetEntity(num12); + bool flag40 = entity3 != null && entity3.Attributes != null; + if (flag40) + { + List list = ListPool.Get(); + for (int m = 2; m < array.Length; m++) + { + list.Add(int.Parse(array[m])); + } + bool flag41 = list.Count == 0; + if (flag41) + { + for (int n = 1; n < XAttributeCommon.AttrCount; n++) + { + list.Add(n); + list.Add(n + XAttributeCommon.PercentStart); + list.Add(n + XAttributeCommon.TotalStart); + } + } + XSingleton.singleton.CleanStringCombine(); + StringBuilder sharedStringBuilder2 = XSingleton.singleton.GetSharedStringBuilder(); + for (int num13 = 0; num13 < list.Count; num13++) + { + double attr = entity3.Attributes.GetAttr((XAttributeDefine)list[num13]); + bool flag42 = Math.Abs(attr) < 0.0001; + if (!flag42) + { + sharedStringBuilder2.Append("[").Append(list[num13]).Append(": ").Append(attr.ToString("F2")).Append("]\n"); + } + } + DlgBase.singleton.AddMessage(sharedStringBuilder2.ToString()); + } + } + goto IL_340B; + } + goto IL_33E4; + } + else + { + if (!(text2 == "TopTask")) + { + goto IL_33E4; + } + bool flag43 = array.Length >= 2; + if (flag43) + { + XTaskDocument specificDocument7 = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + specificDocument7.SetHighestPriorityTask(uint.Parse(array[1])); + } + goto IL_340B; + } + } + else if (num != 1608088380u) + { + if (num != 1625305005u) + { + goto IL_33E4; + } + if (!(text2 == "hide")) + { + goto IL_33E4; + } + bool flag44 = array.Length > 1; + if (flag44) + { + GameObject[] array3 = (GameObject[])Resources.FindObjectsOfTypeAll(typeof(GameObject)); + for (int num14 = 0; num14 < array3.Length; num14++) + { + bool flag45 = array3[num14].name == array[1]; + if (flag45) + { + array3[num14].SetActive(!array3[num14].activeSelf); + } + } + } + goto IL_340B; + } + else + { + if (!(text2 == "tutorialend")) + { + goto IL_33E4; + } + PtcC2G_UpdateTutorial ptcC2G_UpdateTutorial = new PtcC2G_UpdateTutorial(); + for (int num15 = 1; num15 < array.Length; num15++) + { + ptcC2G_UpdateTutorial.Data.tutorialID = uint.Parse(array[num15]); + XSingleton.singleton.Send(ptcC2G_UpdateTutorial); + } + goto IL_340B; + } + } + else if (num <= 1685119913u) + { + if (num != 1647561641u) + { + if (num != 1680627553u) + { + if (num != 1685119913u) + { + goto IL_33E4; + } + if (!(text2 == "allskill")) + { + goto IL_33E4; + } + int num16 = (int)XSingleton.singleton.Doc.XBagDoc.GetSkillPointCount(false); + bool flag46 = num16 < 300; + if (flag46) + { + this.ProcessCommand("item 2 800"); + this.ProcessCommand("item 5 800"); + } + this.SkillLearn(null); + goto IL_340B; + } + else + { + if (!(text2 == "guildencourage")) + { + goto IL_33E4; + } + uint count2 = 0u; + int num17 = 1; + bool flag47 = array.Length > 1; + if (flag47) + { + uint.TryParse(array[1], out count2); + } + bool flag48 = array.Length > 2; + if (flag48) + { + int.TryParse(array[2], out num17); + } + for (int num18 = 0; num18 < num17; num18++) + { + RpcC2M_WorldBossGuildAddAttr rpcC2M_WorldBossGuildAddAttr = new RpcC2M_WorldBossGuildAddAttr(); + rpcC2M_WorldBossGuildAddAttr.oArg.count = count2; + XSingleton.singleton.Send(rpcC2M_WorldBossGuildAddAttr); + } + goto IL_340B; + } + } + else + { + if (!(text2 == "levelslot")) + { + goto IL_33E4; + } + bool flag49 = array.Length == 3; + if (flag49) + { + RpcC2G_LevelUpSlotAttr rpcC2G_LevelUpSlotAttr = new RpcC2G_LevelUpSlotAttr(); + rpcC2G_LevelUpSlotAttr.oArg.slot = uint.Parse(array[1]); + rpcC2G_LevelUpSlotAttr.oArg.count = uint.Parse(array[2]); + XSingleton.singleton.Send(rpcC2G_LevelUpSlotAttr); + } + goto IL_340B; + } + } + else if (num <= 1713047890u) + { + if (num != 1708488555u) + { + if (num != 1713047890u) + { + goto IL_33E4; + } + if (!(text2 == "freetime")) + { + goto IL_33E4; + } + int logintime = int.Parse(array[1]); + AdditionRemindDocument specificDocument8 = XDocuments.GetSpecificDocument(AdditionRemindDocument.uuID); + specificDocument8.LOGINTIME = logintime; + goto IL_340B; + } + else + { + if (!(text2 == "buy")) + { + goto IL_33E4; + } + RpcC2G_BuyGoldAndFatigue rpcC2G_BuyGoldAndFatigue = new RpcC2G_BuyGoldAndFatigue(); + rpcC2G_BuyGoldAndFatigue.oArg.fatigueID = uint.Parse(array[1]); + XSingleton.singleton.Send(rpcC2G_BuyGoldAndFatigue); + goto IL_340B; + } + } + else if (num != 1737033224u) + { + if (num != 1738168302u) + { + goto IL_33E4; + } + if (!(text2 == "hudnum")) + { + goto IL_33E4; + } + XHUDComponent._Max_UI_UpdateCount_PreFrame = int.Parse(array[1]); + goto IL_340B; + } + else + { + if (!(text2 == "setxy")) + { + goto IL_33E4; + } + Screen.SetResolution(int.Parse(array[1]), int.Parse(array[2]), true); + goto IL_340B; + } + } + else if (num <= 3319670096u) + { + if (num <= 2556470705u) + { + if (num <= 2045478139u) + { + if (num <= 1922688807u) + { + if (num != 1758302155u) + { + if (num != 1789352652u) + { + if (num != 1922688807u) + { + goto IL_33E4; + } + if (!(text2 == "showblacklist")) + { + goto IL_33E4; + } + PtcC2M_BlackListReportNew proto = new PtcC2M_BlackListReportNew(); + XSingleton.singleton.Send(proto); + goto IL_340B; + } + else + { + if (!(text2 == "removeblack")) + { + goto IL_33E4; + } + RpcC2M_RemoveBlackListNew rpcC2M_RemoveBlackListNew = new RpcC2M_RemoveBlackListNew(); + rpcC2M_RemoveBlackListNew.oArg.otherroleid = ulong.Parse(array[1]); + XSingleton.singleton.Send(rpcC2M_RemoveBlackListNew); + goto IL_340B; + } + } + else + { + if (!(text2 == "showsystemui")) + { + goto IL_33E4; + } + bool flag50 = array.Length == 2; + if (flag50) + { + XSingleton.singleton.OpenSystem((XSysDefine)int.Parse(array[1]), 0UL); + } + goto IL_340B; + } + } + else if (num <= 1968698200u) + { + if (num != 1925156125u) + { + if (num != 1968698200u) + { + goto IL_33E4; + } + if (!(text2 == "inquirytutorial")) + { + goto IL_33E4; + } + int num19 = 0; + int num20 = 10; + StringBuilder stringBuilder = new StringBuilder(); + stringBuilder.Append((num19 + 1).ToString("000") + "-" + (num19 + num20).ToString("000") + ": "); + for (int num21 = 0; num21 < XSingleton.singleton.TutorialBitsArray.Length; num21++) + { + byte b = XSingleton.singleton.TutorialBitsArray[num21]; + for (int num22 = 0; num22 < 8; num22++) + { + bool flag51 = ((int)b & 1 << num22) == 0; + if (flag51) + { + stringBuilder.Append("0"); + } + else + { + stringBuilder.Append("1"); + } + num19++; + bool flag52 = num19 % num20 == 0; + if (flag52) + { + DlgBase.singleton.AddMessage(stringBuilder.ToString()); + stringBuilder = new StringBuilder(); + stringBuilder.Append((num19 + 1).ToString("000") + " " + (num19 + num20).ToString("000") + ":"); + } + } + } + bool flag53 = num19 % num20 != 0; + if (flag53) + { + DlgBase.singleton.AddMessage(stringBuilder.ToString()); + } + goto IL_340B; + } + else if (!(text2 == "tutorialendcurall")) + { + goto IL_33E4; + } + } + else if (num != 2038880671u) + { + if (num != 2045478139u) + { + goto IL_33E4; + } + if (!(text2 == "hideT")) + { + goto IL_33E4; + } + bool flag54 = array.Length == 2; + if (flag54) + { + int num23 = int.Parse(array[1]); + GameObject gameObject2 = GameObject.Find("Scene/Terrain"); + bool flag55 = gameObject2 != null; + if (flag55) + { + this.terrain = gameObject2; + } + bool flag56 = this.terrain != null; + if (flag56) + { + this.terrain.SetActive(num23 > 0); + } + } + goto IL_340B; + } + else + { + if (!(text2 == "unloadassets")) + { + goto IL_33E4; + } + Resources.UnloadUnusedAssets(); + goto IL_340B; + } + } + else if (num <= 2487212655u) + { + if (num != 2093821818u) + { + if (num != 2415043315u) + { + if (num != 2487212655u) + { + goto IL_33E4; + } + if (!(text2 == "bubble")) + { + goto IL_33E4; + } + XBubbleEventArgs @event = XEventPool.GetEvent(); + bool flag57 = array.Length >= 2; + if (flag57) + { + @event.bubbletext = array[1]; + } + bool flag58 = array.Length >= 3; + if (flag58) + { + @event.existtime = float.Parse(array[2]); + } + bool flag59 = array.Length >= 4; + if (flag59) + { + @event.Firer = XSingleton.singleton.GetEntity(ulong.Parse(array[3])); + @event.speaker = XSingleton.singleton.GetEntity(ulong.Parse(array[3])).Name; + } + else + { + @event.Firer = XSingleton.singleton.Player; + @event.speaker = XSingleton.singleton.Player.Name; + } + XBubbleComponent xbubbleComponent = @event.Firer.GetXComponent(XBubbleComponent.uuID) as XBubbleComponent; + bool flag60 = xbubbleComponent == null; + if (flag60) + { + XSingleton.singleton.CreateComponent(@event.Firer, XBubbleComponent.uuID); + } + XSingleton.singleton.FireEvent(@event); + goto IL_340B; + } + else if (!(text2 == "tca")) + { + goto IL_33E4; + } + } + else + { + if (!(text2 == "themeopen")) + { + goto IL_33E4; + } + DlgBase.singleton.debug = true; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_340B; + } + } + else if (num <= 2504763628u) + { + if (num != 2489139438u) + { + if (num != 2504763628u) + { + goto IL_33E4; + } + if (!(text2 == "testversionserver")) + { + goto IL_33E4; + } + using (new StreamWriter(Path.Combine(Application.persistentDataPath, "TEST_VERSION"))) + { + XSingleton.singleton.XPlatform.SetNoBackupFlag(Path.Combine(Application.persistentDataPath, "TEST_VERSION")); + } + goto IL_340B; + } + else + { + if (!(text2 == "tutorialendcur")) + { + goto IL_33E4; + } + XSingleton.singleton.SkipCurrentTutorial(false); + goto IL_340B; + } + } + else if (num != 2544429414u) + { + if (num != 2556470705u) + { + goto IL_33E4; + } + if (!(text2 == "notice")) + { + goto IL_33E4; + } + bool flag61 = array.Length >= 2; + if (flag61) + { + ulong[] array4 = null; + bool flag62 = array.Length >= 3; + if (flag62) + { + array4 = new ulong[array.Length - 2]; + for (int num24 = 2; num24 < array.Length; num24++) + { + array4[num24 - 2] = ulong.Parse(array[num24]); + } + } + XInvitationDocument specificDocument9 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + specificDocument9.SendOpenSysInvitation((NoticeType)int.Parse(array[1]), array4); + } + goto IL_340B; + } + else + { + if (!(text2 == "reconnect")) + { + goto IL_33E4; + } + XSingleton.singleton.XConnect.ReconnectionEnabled = true; + goto IL_340B; + } + XSingleton.singleton.SkipCurrentTutorial(true); + goto IL_340B; + } + if (num <= 3020998307u) + { + if (num <= 2734521612u) + { + if (num != 2632689412u) + { + if (num != 2722888107u) + { + if (num != 2734521612u) + { + goto IL_33E4; + } + if (!(text2 == "team")) + { + goto IL_33E4; + } + DlgBase.singleton.ShowTeamView(); + goto IL_340B; + } + else + { + if (!(text2 == "chat")) + { + goto IL_33E4; + } + ulong item = ulong.Parse(array[1]); + string info = array[2]; + RpcC2M_chat rpcC2M_chat = new RpcC2M_chat(); + rpcC2M_chat.oArg.chatinfo = new KKSG.ChatInfo(); + rpcC2M_chat.oArg.chatinfo.channel = 3u; + rpcC2M_chat.oArg.chatinfo.info = info; + rpcC2M_chat.oArg.chatinfo.dest = new ChatDest(); + rpcC2M_chat.oArg.chatinfo.dest.roleid.Add(item); + for (int num25 = 0; num25 < 20; num25++) + { + XSingleton.singleton.Send(rpcC2M_chat); + } + goto IL_340B; + } + } + else + { + if (!(text2 == "custombattle")) + { + goto IL_33E4; + } + uint op = 0u; + ulong uid = 0UL; + uint configid = 0u; + bool flag63 = array.Length > 1; + if (flag63) + { + uint.TryParse(array[1], out op); + } + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = (CustomBattleOp)op; + bool flag64 = array.Length > 2; + if (flag64) + { + ulong.TryParse(array[2], out uid); + } + bool flag65 = rpcC2M_CustomBattleOp.oArg.op == CustomBattleOp.CustomBattle_Create; + if (flag65) + { + bool flag66 = array.Length > 2; + if (flag66) + { + uint.TryParse(array[2], out configid); + } + } + rpcC2M_CustomBattleOp.oArg.uid = uid; + rpcC2M_CustomBattleOp.oArg.config = new CustomBattleConfig(); + rpcC2M_CustomBattleOp.oArg.config.configid = configid; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + goto IL_340B; + } + } + else if (num <= 3006960056u) + { + if (num != 2945169614u) + { + if (num != 3006960056u) + { + goto IL_33E4; + } + if (!(text2 == "showflowerpage")) + { + goto IL_33E4; + } + ulong roleid2 = ulong.Parse(array[1]); + RpcC2M_ShowFlowerPageNew rpcC2M_ShowFlowerPageNew = new RpcC2M_ShowFlowerPageNew(); + rpcC2M_ShowFlowerPageNew.oArg.roleid = roleid2; + XSingleton.singleton.Send(rpcC2M_ShowFlowerPageNew); + goto IL_340B; + } + else + { + if (!(text2 == "enable")) + { + goto IL_33E4; + } + bool flag67 = array.Length >= 3; + if (flag67) + { + int num26 = int.Parse(array[1]); + int num27 = int.Parse(array[2]); + switch (num26) + { + case 1: + XFxMgr.EmptyFx = (num27 != 0); + break; + case 2: + XSingleton.singleton.hasSound = (num27 != 0); + break; + case 3: + XStateMachine._EnableAtor = (num27 != 0); + break; + case 4: + { + bool flag68 = num27 != 0; + if (flag68) + { + XSingleton.singleton.GameCamera.SetReplaceCameraShader(ShaderManager._color); + } + else + { + XSingleton.singleton.GameCamera.SetReplaceCameraShader(null); + } + break; + } + } + } + goto IL_340B; + } + } + else if (num != 3020023337u) + { + if (num != 3020998307u) + { + goto IL_33E4; + } + if (!(text2 == "aitree")) + { + goto IL_33E4; + } + XRole xrole = XSingleton.singleton.CreateRole(XSingleton.singleton.XPlayerData, XSingleton.singleton.Player.MoveObj.Position, Quaternion.identity, false, false); + XMount xmount = XSingleton.singleton.CreateMount(12014u, xrole, true); + XRole entity4 = XSingleton.singleton.CreateRole(XSingleton.singleton.XPlayerData, XSingleton.singleton.Player.MoveObj.Position, Quaternion.identity, false, false); + bool flag69 = xrole.Mount.MountCopilot(entity4); + XSingleton.singleton.AddLog(flag69.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + string value = XSingleton.singleton.GetValue("WeddingPatrolAITree"); + bool flag70 = xrole.AI == null; + if (flag70) + { + xrole.AI = (XSingleton.singleton.CreateComponent(xrole, XAIComponent.uuID) as XAIComponent); + xrole.AI.InitVariables(); + xrole.AI.SetFixVariables(); + } + bool flag71 = xrole.Nav == null; + if (flag71) + { + xrole.Nav = (XSingleton.singleton.CreateComponent(xrole, XNavigationComponent.uuID) as XNavigationComponent); + xrole.Nav.Active(); + } + xrole.AI.Patrol.InitNavPath(XSingleton.singleton.GetValue("WeddingPatrolPath"), XPatrol.PathType.PT_NORMAL); + xrole.AI.SetBehaviorTree(value); + goto IL_340B; + } + else if (!(text2 == "tea")) + { + goto IL_33E4; + } + } + else if (num <= 3230451497u) + { + if (num != 3133860241u) + { + if (num != 3173563725u) + { + if (num != 3230451497u) + { + goto IL_33E4; + } + if (!(text2 == "killclientall")) + { + goto IL_33E4; + } + bool flag72 = array.Length > 1; + if (flag72) + { + XSingleton.singleton.TickKillAll(array[1]); + } + else + { + XSingleton.singleton.KillAllMonster(); + } + goto IL_340B; + } + else + { + if (!(text2 == "death")) + { + goto IL_33E4; + } + XSingleton.singleton.Player.Attributes.ForceDeath(); + goto IL_340B; + } + } + else + { + if (!(text2 == "bundlelog")) + { + goto IL_33E4; + } + AssetBundleManager.enableLog = !AssetBundleManager.enableLog; + XFileLog._logBundleOpen = !XFileLog._logBundleOpen; + goto IL_340B; + } + } + else if (num <= 3277320633u) + { + if (num != 3272115138u) + { + if (num != 3277320633u) + { + goto IL_33E4; + } + if (!(text2 == "guildcollectitem")) + { + goto IL_33E4; + } + for (int num28 = 8000; num28 < 8016; num28++) + { + this.ProcessCommand(string.Format("item {0} 20", num28)); + } + goto IL_340B; + } + else + { + if (!(text2 == "titleitem")) + { + goto IL_33E4; + } + this.ProcessCommand("item 2097 1"); + this.ProcessCommand("item 301 30"); + this.ProcessCommand("item 302 30"); + this.ProcessCommand("item 303 30"); + this.ProcessCommand("item 304 30"); + goto IL_340B; + } + } + else if (num != 3299020295u) + { + if (num != 3319670096u) + { + goto IL_33E4; + } + if (!(text2 == "anim")) + { + goto IL_33E4; + } + XAnimator.debug = !XAnimator.debug; + goto IL_340B; + } + else if (!(text2 == "tutorialendall")) + { + goto IL_33E4; + } + XSingleton.singleton.CloseAllTutorial(); + this.ProcessCommand("tutorialendcurall"); + goto IL_340B; + } + else if (num <= 3723728503u) + { + if (num <= 3449438095u) + { + if (num <= 3402078869u) + { + if (num != 3331625495u) + { + if (num != 3363572210u) + { + if (num != 3402078869u) + { + goto IL_33E4; + } + if (!(text2 == "allpk")) + { + goto IL_33E4; + } + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_CustomBattle_BountyMode); + goto IL_340B; + } + else + { + if (!(text2 == "IgnoreServerOpenDay")) + { + goto IL_33E4; + } + XActivityDocument specificDocument10 = XDocuments.GetSpecificDocument(XActivityDocument.uuID); + specificDocument10.ServerOpenDay = 1000; + goto IL_340B; + } + } + else + { + if (!(text2 == "boon")) + { + goto IL_33E4; + } + DlgBase.singleton.SetVisible(true, true); + goto IL_340B; + } + } + else if (num <= 3412752292u) + { + if (num != 3411225317u) + { + if (num != 3412752292u) + { + goto IL_33E4; + } + if (!(text2 == "mzj")) + { + goto IL_33E4; + } + DlgBase.singleton.Show(XSysDefine.XSys_CampDuel, true); + goto IL_340B; + } + else + { + if (!(text2 == "stop")) + { + goto IL_33E4; + } + bool flag73 = array.Length > 1; + if (flag73) + { + int num29 = 0; + int.TryParse(array[1], out num29); + int num30 = num29; + if (num30 != 0) + { + if (num30 == 1) + { + GameObject gameObject3 = GameObject.Find("UIRoot(Clone)"); + bool flag74 = gameObject3 != null; + if (flag74) + { + gameObject3.SetActive(false); + } + gameObject3 = GameObject.Find("HpbarRoot(Clone)"); + bool flag75 = gameObject3 != null; + if (flag75) + { + gameObject3.SetActive(false); + } + gameObject3 = GameObject.Find("NpcHpbarRoot"); + bool flag76 = gameObject3 != null; + if (flag76) + { + gameObject3.SetActive(false); + } + } + } + else + { + GameObject gameObject4 = GameObject.Find("XGamePoint"); + bool flag77 = gameObject4 != null; + if (flag77) + { + gameObject4.SetActive(false); + } + } + } + goto IL_340B; + } + } + else if (num != 3432660476u) + { + if (num != 3449438095u) + { + goto IL_33E4; + } + if (!(text2 == "mzj1")) + { + goto IL_33E4; + } + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc(17u); + goto IL_340B; + } + else + { + if (!(text2 == "mzj0")) + { + goto IL_33E4; + } + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc(165u); + goto IL_340B; + } + } + else if (num <= 3492411834u) + { + if (num != 3466215714u) + { + if (num != 3483754705u) + { + if (num != 3492411834u) + { + goto IL_33E4; + } + if (!(text2 == "openurl")) + { + goto IL_33E4; + } + bool flag78 = array.Length > 1; + if (flag78) + { + Application.OpenURL(array[1]); + } + goto IL_340B; + } + else + { + if (!(text2 == "airuntime")) + { + goto IL_33E4; + } + int num31 = int.Parse(array[1]); + XAIComponent.UseRunTime = (num31 != 0); + XSingleton.singleton.DelayLoad = XAIComponent.UseRunTime; + goto IL_340B; + } + } + else + { + if (!(text2 == "mzj2")) + { + goto IL_33E4; + } + XCampDuelDocument.Doc.campID = 2; + goto IL_340B; + } + } + else if (num <= 3549706178u) + { + if (num != 3522024923u) + { + if (num != 3549706178u) + { + goto IL_33E4; + } + if (!(text2 == "setsound")) + { + goto IL_33E4; + } + XSingleton.singleton.hasSound = !XSingleton.singleton.hasSound; + goto IL_340B; + } + else + { + if (!(text2 == "comps")) + { + goto IL_33E4; + } + XSingleton.singleton.PrintAllComponent(); + goto IL_340B; + } + } + else if (num != 3622053638u) + { + if (num != 3723728503u) + { + goto IL_33E4; + } + if (!(text2 == "kiss")) + { + goto IL_33E4; + } + XSingleton.singleton.Start("CutScene/argent_kiss", true, true); + goto IL_340B; + } + else + { + if (!(text2 == "authinvalid")) + { + goto IL_33E4; + } + XSingleton.singleton.OnAuthorizationSignOut("test"); + goto IL_340B; + } + } + else if (num <= 3932305931u) + { + if (num <= 3800916422u) + { + if (num != 3782316509u) + { + if (num != 3792732933u) + { + if (num != 3800916422u) + { + goto IL_33E4; + } + if (!(text2 == "hud")) + { + goto IL_33E4; + } + XHUDComponent.processHud = !XHUDComponent.processHud; + goto IL_340B; + } + else + { + if (!(text2 == "removefriend")) + { + goto IL_33E4; + } + ulong friendroleid2 = ulong.Parse(array[1]); + RpcC2M_RemoveFriendNew rpcC2M_RemoveFriendNew = new RpcC2M_RemoveFriendNew(); + rpcC2M_RemoveFriendNew.oArg.friendroleid = friendroleid2; + XSingleton.singleton.Send(rpcC2M_RemoveFriendNew); + goto IL_340B; + } + } + else + { + if (!(text2 == "getappearance")) + { + goto IL_33E4; + } + ulong roleid3 = ulong.Parse(array[1]); + int mask = int.Parse(array[2]); + RpcC2M_GetUnitAppearanceNew rpcC2M_GetUnitAppearanceNew = new RpcC2M_GetUnitAppearanceNew(); + rpcC2M_GetUnitAppearanceNew.oArg.roleid = roleid3; + rpcC2M_GetUnitAppearanceNew.oArg.mask = mask; + XSingleton.singleton.Send(rpcC2M_GetUnitAppearanceNew); + goto IL_340B; + } + } + else if (num <= 3852368885u) + { + if (num != 3835008432u) + { + if (num != 3852368885u) + { + goto IL_33E4; + } + if (!(text2 == "mob")) + { + goto IL_33E4; + } + uint id4 = uint.Parse(array[1]); + Quaternion rotation = Quaternion.Euler(0f, 0f, 0f); + XEntity xentity2 = XSingleton.singleton.CreateEntity(id4, XSingleton.singleton.Player.EngineObject.Position, rotation, true, uint.MaxValue); + goto IL_340B; + } + else + { + if (!(text2 == "uiopt")) + { + goto IL_33E4; + } + bool flag79 = array.Length >= 4; + if (flag79) + { + int num32 = int.Parse(array[1]); + int num33 = int.Parse(array[2]); + int num34 = int.Parse(array[3]); + XSingleton.singleton.SetUIOptOption(num32 != 0, num33 != 0, num34 != 0, true); + } + goto IL_340B; + } + } + else if (num != 3924622254u) + { + if (num != 3932305931u) + { + goto IL_33E4; + } + if (!(text2 == "guilddragon")) + { + goto IL_33E4; + } + DlgBase.singleton.ShowGuildBossView(); + goto IL_340B; + } + else if (!(text2 == "niube")) + { + goto IL_33E4; + } + } + else if (num <= 4120248703u) + { + if (num != 4085338559u) + { + if (num != 4117418983u) + { + if (num != 4120248703u) + { + goto IL_33E4; + } + if (!(text2 == "hailong")) + { + goto IL_33E4; + } + List list2 = new List + { + "item 85 100", + "item 40607 1", + "item 40608 1", + "item 40609 1", + "item 2503001 1", + "item 2503002 1", + "item 2503003 1", + "item 2503004 1", + "item 2503011 1", + "item 2503012 1", + "item 2503013 1", + "item 2503021 1", + "item 2503022 1", + "item 2503031 1", + "item 2503032 1", + "item 1000106 10", + "item 1000206 10", + "item 1000306 10", + "item 1000406 10", + "item 1001106 10", + "item 1002106 10", + "item 1003106 10", + "item 7 100000000" + }; + XPlayer player = XSingleton.singleton.Player; + uint typeID = player.TypeID; + switch (typeID % 10u) + { + case 1u: + list2.Add("item 140600 1"); + list2.Add("item 140601 1"); + list2.Add("item 140602 1"); + list2.Add("item 140603 1"); + list2.Add("item 140604 1"); + list2.Add("item 140605 1"); + list2.Add("item 140606 1"); + break; + case 2u: + list2.Add("item 240600 1"); + list2.Add("item 240601 1"); + list2.Add("item 240602 1"); + list2.Add("item 240603 1"); + list2.Add("item 240604 1"); + list2.Add("item 240605 1"); + list2.Add("item 240606 1"); + break; + case 3u: + list2.Add("item 340600 1"); + list2.Add("item 340601 1"); + list2.Add("item 340602 1"); + list2.Add("item 340603 1"); + list2.Add("item 340604 1"); + list2.Add("item 340605 1"); + list2.Add("item 340606 1"); + break; + case 4u: + list2.Add("item 440600 1"); + list2.Add("item 440601 1"); + list2.Add("item 440602 1"); + list2.Add("item 440603 1"); + list2.Add("item 440604 1"); + list2.Add("item 440605 1"); + list2.Add("item 440606 1"); + break; + case 5u: + list2.Add("item 540600 1"); + list2.Add("item 540601 1"); + list2.Add("item 540602 1"); + list2.Add("item 540603 1"); + list2.Add("item 540604 1"); + list2.Add("item 540605 1"); + list2.Add("item 540606 1"); + break; + } + foreach (string command2 in list2) + { + this.ProcessCommand(command2); + } + goto IL_340B; + } + else + { + if (!(text2 == "setsysredpoint")) + { + goto IL_33E4; + } + XSingleton.singleton.SetSysRedPointState((XSysDefine)int.Parse(array[1]), array[2] == "true"); + goto IL_340B; + } + } + else + { + if (!(text2 == "gyroon")) + { + goto IL_33E4; + } + XSingleton.singleton.Enabled = true; + goto IL_340B; + } + } + else if (num <= 4237826497u) + { + if (num != 4193803318u) + { + if (num != 4237826497u) + { + goto IL_33E4; + } + if (!(text2 == "capture")) + { + goto IL_33E4; + } + XSingleton.singleton.PandoraPicShare("", "", "UIRoot(Clone)/OperatingActivityDlg(Clone)/Bg/Right"); + goto IL_340B; + } + else + { + if (!(text2 == "AddMaquee")) + { + goto IL_33E4; + } + int num35 = 0; + int.TryParse(array[1], out num35); + for (int num36 = 0; num36 < num35; num36++) + { + DlgBase.singleton.AddMaqueeNormalInfo(array[2], 0f); + } + goto IL_340B; + } + } + else if (num != 4239574328u) + { + if (num != 4294409274u) + { + goto IL_33E4; + } + if (!(text2 == "openfc")) + { + goto IL_33E4; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + goto IL_340B; + } + else + { + if (!(text2 == "removefiles")) + { + goto IL_33E4; + } + XSingleton.singleton.ClearAudioCache(); + goto IL_340B; + } + string[] array5 = new string[] + { + "level 55", + "openallsystem", + "star", + "task finishall", + "item 1 900000", + "item 7 900000", + "item 9997 1", + "tutorialendall" + }; + foreach (string command3 in array5) + { + this.ProcessCommand(command3); + } + goto IL_340B; + IL_33E4: + RpcC2G_GMCommand rpcC2G_GMCommand2 = new RpcC2G_GMCommand(); + rpcC2G_GMCommand2.oArg.cmd = command; + XSingleton.singleton.Send(rpcC2G_GMCommand2); + result = true; + IL_340B: + return result; + } + + public void SkillLearn(object o = null) + { + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + bool flag = false; + for (int i = 10; i <= 1000; i *= 10) + { + bool flag2 = (ulong)XSingleton.singleton.XPlayerData.TypeID < (ulong)((long)(i / 10)); + if (flag2) + { + break; + } + int profID = (int)(XSingleton.singleton.XPlayerData.TypeID % (uint)i); + List profSkillID = XSingleton.singleton.GetProfSkillID(profID); + for (int j = 0; j < profSkillID.Count; j++) + { + bool flag3 = specificDocument.CheckLevelUpButton(profSkillID[j]); + if (flag3) + { + flag = true; + RpcC2G_SkillLevelup rpcC2G_SkillLevelup = new RpcC2G_SkillLevelup(); + rpcC2G_SkillLevelup.oArg.skillHash = profSkillID[j]; + XSingleton.singleton.Send(rpcC2G_SkillLevelup); + } + } + } + bool flag4 = flag; + if (flag4) + { + XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(this.SkillLearn), null); + } + else + { + XSingleton.singleton.AddGreenLog("Learn All Skill End.", null, null, null, null, null); + } + } + + public void GuildCollectNav(object o = null) + { + XSingleton.singleton.KillTimer(this._timeToken); + this._timeToken = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.GuildCollectNav), null); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XSingleton.singleton.LastNpc = null; + } + else + { + bool flag2 = XSingleton.singleton.LastNpc != null; + if (!flag2) + { + this.NpcID -= 1u; + bool flag3 = this.NpcID < 97u; + if (flag3) + { + this.NpcID = 100u; + } + XNpc npc = XSingleton.singleton.GetNpc(this.NpcID); + bool flag4 = npc != null; + if (flag4) + { + XSingleton.singleton.LastNpc = npc; + } + } + } + } + + public void ClearGuildCollectNav() + { + this.ProcessCommand("clearguildcollectCD"); + XSingleton.singleton.LastNpc = null; + XSingleton.singleton.KillTimer(this._timeToken); + } + + public void CustomCommand(int index) + { + string text = Path.Combine(Application.persistentDataPath, "GM.txt"); + FileInfo fileInfo = new FileInfo(text); + bool exists = fileInfo.Exists; + if (exists) + { + StreamReader streamReader; + try + { + streamReader = new StreamReader(text, Encoding.Default); + } + catch (IOException ex) + { + Debug.Log(ex); + XSingleton.singleton.AddErrorLog("读表失败,请关闭正在打开的表格重试", null, null, null, null, null); + return; + } + bool flag = false; + while (!streamReader.EndOfStream) + { + string text2 = streamReader.ReadLine(); + bool flag2 = text2.Length >= 2; + if (flag2) + { + bool flag3 = text2[0] == '$'; + if (flag3) + { + flag = ((int)text2[1] == 48 + index); + continue; + } + } + bool flag4 = flag; + if (flag4) + { + this.ProcessCommand(text2); + } + } + streamReader.Close(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommand.cs.meta b/Client/Assets/Scripts/XMainClient/XCommand.cs.meta new file mode 100644 index 00000000..48f41755 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommand.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 127c6a7da179e0542b7af22b5c02a6b0 +timeCreated: 1611403242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandClickEntity.cs b/Client/Assets/Scripts/XMainClient/XCommandClickEntity.cs new file mode 100644 index 00000000..1fa59a84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandClickEntity.cs @@ -0,0 +1,70 @@ +using System; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandClickEntity : XBaseCommand + { + private GameObject _finger; + + private XEntity _target = null; + + public override bool Execute() + { + Vector3 zero = Vector3.zero; + Transform parent = XSingleton.singleton.UIRoot.Find("TutorialPanel"); + bool flag = this._finger == null; + if (flag) + { + this._finger = (XSingleton.singleton.CreateFromPrefab("UI/Common/Quan", true, false) as GameObject); + } + this._finger.SetActive(false); + this._finger.SetActive(true); + XSingleton.singleton.AddChild(parent, this._finger.transform); + this.UpdateFinger(); + XSingleton.singleton.Exculsive = true; + XSingleton.singleton.ExculsiveOnEntity = true; + return true; + } + + public override void Update() + { + base.Update(); + this.UpdateFinger(); + } + + protected void UpdateFinger() + { + bool flag = this._target == null || this._finger == null; + if (!flag) + { + Vector3 vector = Vector3.zero; + vector = this._target.EngineObject.Position; + vector += new Vector3(0f, 0.8f, 0f); + Vector3 vector2 = XSingleton.singleton.GameCamera.UnityCamera.WorldToViewportPoint(vector); + Vector3 position = XSingleton.singleton.UICamera.ViewportToWorldPoint(vector2); + this._finger.transform.position = position; + Vector3 localPosition = this._finger.transform.localPosition; + localPosition.x = (float)Mathf.FloorToInt(localPosition.x); + localPosition.y = (float)Mathf.FloorToInt(localPosition.y); + localPosition.z = 0f; + this._finger.transform.localPosition = localPosition; + } + } + + public override void OnFinish() + { + this.Stop(); + } + + public override void Stop() + { + XSingleton.singleton.Exculsive = false; + XSingleton.singleton.ExculsiveOnEntity = false; + XResourceLoaderMgr.SafeDestroy(ref this._finger, false); + base.Stop(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandClickEntity.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandClickEntity.cs.meta new file mode 100644 index 00000000..7c718c9b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandClickEntity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f3314d55db69b547aa050fc0a908a8c +timeCreated: 1611404244 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandCutscene.cs b/Client/Assets/Scripts/XMainClient/XCommandCutscene.cs new file mode 100644 index 00000000..681a445b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandCutscene.cs @@ -0,0 +1,39 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandCutscene : XBaseCommand + { + public override bool Execute() + { + base.publicModule(); + XSingleton.singleton.Start(this._cmd.param1, !string.IsNullOrEmpty(this._cmd.param2) && this._cmd.param2.ToLower() == "true", true); + return true; + } + + public override void Update() + { + bool flag = !XSingleton.singleton.IsPlaying; + if (flag) + { + XSingleton.singleton.OnCmdFinished(); + } + } + + public override void OnFinish() + { + base.OnFinish(); + } + + public override void Stop() + { + base.Stop(); + bool isPlaying = XSingleton.singleton.IsPlaying; + if (isPlaying) + { + XSingleton.singleton.Stop(true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandCutscene.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandCutscene.cs.meta new file mode 100644 index 00000000..b351f3ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandCutscene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f17a940712ec564fbed5427de7abbf2 +timeCreated: 1611403207 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandDirectSys.cs b/Client/Assets/Scripts/XMainClient/XCommandDirectSys.cs new file mode 100644 index 00000000..19b5bdde --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandDirectSys.cs @@ -0,0 +1,64 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandDirectSys : XBaseCommand + { + private uint CachedOpenSystem; + + public override bool Execute() + { + base.publicModule(); + return this._execute(this._cmd.param1, this._cmd.param2); + } + + public override void OnFinish() + { + XSingleton.singleton.Exculsive = false; + base.OnFinish(); + } + + public bool _execute(string param1, string param2) + { + this.CachedOpenSystem = uint.Parse(param1); + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + bool flag = xplayerAttributes.IsSystemOpened(this.CachedOpenSystem); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !XSingleton.singleton.IsSysOpend(this.CachedOpenSystem); + if (flag2) + { + result = false; + } + else + { + bool flag3 = this.CachedOpenSystem > 0u; + if (flag3) + { + (XSingleton.singleton.Player.Attributes as XPlayerAttributes).ReallyOpenSystem(this.CachedOpenSystem); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.OnSysChange((XSysDefine)this.CachedOpenSystem); + XSingleton.singleton.RecalculateRedPointState((XSysDefine)this.CachedOpenSystem, true); + } + result = true; + } + else + { + result = false; + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandDirectSys.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandDirectSys.cs.meta new file mode 100644 index 00000000..48447b06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandDirectSys.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a70954303705df8468e67356e78111d6 +timeCreated: 1611404291 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandExec.cs b/Client/Assets/Scripts/XMainClient/XCommandExec.cs new file mode 100644 index 00000000..61dfd551 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandExec.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient +{ + internal class XCommandExec : XBaseCommand + { + public override bool Execute() + { + base.publicModule(); + XCommandExec._execute(this._cmd.param1); + return true; + } + + public static void _execute(string param1) + { + string text = "Table/Tutorial/" + param1; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandExec.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandExec.cs.meta new file mode 100644 index 00000000..001a0a08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandExec.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d844a536d51e90c4a8241c8c4580dfab +timeCreated: 1611404638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandForceClick.cs b/Client/Assets/Scripts/XMainClient/XCommandForceClick.cs new file mode 100644 index 00000000..0a81c439 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandForceClick.cs @@ -0,0 +1,317 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandForceClick : XBaseCommand + { + private GameObject _finger; + + private GameObject _clickGo; + + private GameObject _cloneGo; + + private int orgWidth1; + + private int orgHeight1; + + private int orgWidth2; + + private int orgHeight2; + + private uint _time = 0u; + + public override bool Execute() + { + bool flag = this._cmd.param2 == "_canvas/SkillFrame/Skill1"; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SkillHandler.AlwaysHot(1, true); + } + XSingleton.singleton.Player.Skill.EndSkill(true, false); + } + else + { + bool flag3 = this._cmd.param2 == "_canvas/SkillFrame/Skill3"; + if (flag3) + { + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.SkillHandler.AlwaysHot(3, true); + } + XSingleton.singleton.Player.Skill.EndSkill(true, false); + } + } + base.publicModule(); + return this._execute(this._cmd.param1, this._cmd.param2, true); + } + + public override void Update() + { + } + + public override void OnFinish() + { + this._execute(this._cmd.param1, this._cmd.param2, false); + bool flag = this._cmd.param2 == "_canvas/SkillFrame/Skill1" && XSingleton.singleton.Player != null; + if (flag) + { + Vector3 forward = XSingleton.singleton.Player.EngineObject.Forward; + bool flag2 = Vector3.Angle(forward, XSingleton.singleton.Boss.EngineObject.Forward) > 135f; + if (flag2) + { + XSingleton.singleton.Player.Net.ReportRotateAction(XSingleton.singleton.HorizontalRotateVetor3(forward, (float)(XSingleton.singleton.Clockwise(forward, XSingleton.singleton.Boss.EngineObject.Forward) ? 90 : -90), true)); + } + } + base.OnFinish(); + } + + protected bool _execute(string param1, string param2, bool bExculsive) + { + Transform transform = XSingleton.singleton.UIRoot.Find(this._cmd.param1 + "(Clone)"); + bool flag = !transform || !transform.gameObject.activeInHierarchy; + bool result; + if (flag) + { + result = false; + } + else + { + Transform transform2 = XSingleton.singleton.FindChild(transform, this._cmd.param2); + bool flag2 = transform2 == null || !transform2.gameObject.activeInHierarchy; + if (flag2) + { + bool flag3 = transform2 == null && this._cmd.isOutError; + if (flag3) + { + this._cmd.isOutError = false; + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TutorialId:", + this._cmd.TutorialID, + " Configuration File Path Error! tag:", + this._cmd.tag, + "\nPath:", + this._cmd.param1, + "(Clone)/", + this._cmd.param2 + }), null, null, null, null, null); + } + result = false; + } + else + { + this._clickGo = transform2.gameObject; + bool flag4 = this._cmd.interalDelay > 0f; + if (flag4) + { + base.SetOverlay(); + } + if (bExculsive) + { + this._time = XSingleton.singleton.SetTimer(this._cmd.interalDelay, new XTimerMgr.ElapsedEventHandler(this.ShowFinger), null); + } + else + { + this.Stop(); + } + result = true; + } + } + return result; + } + + public override void Stop() + { + bool flag = this._time > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._time); + this._time = 0u; + } + bool flag2 = this._finger != null; + if (flag2) + { + bool flag3 = this._cmd.param3 != null; + if (flag3) + { + IXUISprite ixuisprite = this._finger.transform.Find("Quan1").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = this.orgWidth1; + ixuisprite.spriteHeight = this.orgHeight1; + } + bool flag4 = this._cmd.param4 != null; + if (flag4) + { + IXUISprite ixuisprite2 = this._finger.transform.Find("Quan2").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteWidth = this.orgWidth2; + ixuisprite2.spriteHeight = this.orgHeight2; + } + XResourceLoaderMgr.SafeDestroy(ref this._finger, false); + } + base.DestroyText(); + bool flag5 = this._cloneGo != null; + if (flag5) + { + this._cloneGo.transform.parent = null; + UnityEngine.Object.Destroy(this._cloneGo); + } + base.DestroyAilin(); + base.DestroyOverlay(); + bool flag6 = DlgBase.singleton.IsLoaded(); + if (flag6) + { + bool flag7 = DlgBase.singleton.SkillHandler != null; + if (flag7) + { + DlgBase.singleton.SkillHandler.AlwaysHot(1, false); + } + bool flag8 = DlgBase.singleton.SkillHandler != null; + if (flag8) + { + DlgBase.singleton.SkillHandler.AlwaysHot(3, false); + } + } + XSingleton.singleton.Pause = false; + XSingleton.singleton.Exculsive = false; + } + + protected void ShowFinger(object o) + { + bool flag = this._finger == null; + if (flag) + { + this._finger = (XSingleton.singleton.CreateFromPrefab("UI/Common/Quan", true, false) as GameObject); + } + this._finger.SetActive(false); + bool flag2 = this._cmd.param3 != null; + if (flag2) + { + float num = float.Parse(this._cmd.param3); + bool flag3 = num >= 0f; + if (flag3) + { + IXUISprite ixuisprite = this._finger.transform.Find("Quan1").GetComponent("XUISprite") as IXUISprite; + this.orgWidth1 = ixuisprite.spriteWidth; + this.orgHeight1 = ixuisprite.spriteHeight; + ixuisprite.spriteWidth = (int)((float)ixuisprite.spriteWidth * num); + ixuisprite.spriteHeight = (int)((float)ixuisprite.spriteHeight * num); + } + } + bool flag4 = this._cmd.param4 != null; + if (flag4) + { + float num2 = float.Parse(this._cmd.param4); + bool flag5 = num2 >= 0f; + if (flag5) + { + IXUISprite ixuisprite2 = this._finger.transform.Find("Quan2").GetComponent("XUISprite") as IXUISprite; + this.orgWidth2 = ixuisprite2.spriteWidth; + this.orgHeight2 = ixuisprite2.spriteHeight; + ixuisprite2.spriteWidth = (int)((float)ixuisprite2.spriteWidth * num2); + ixuisprite2.spriteHeight = (int)((float)ixuisprite2.spriteHeight * num2); + } + } + base.SetOverlay(); + this._cloneGo = XCommon.Instantiate(this._clickGo.gameObject); + this.SetupCloneButton(this._clickGo.gameObject, this._cloneGo); + base.SetTutorialText(this._cmd.textPos, this._cloneGo.transform); + base.SetAilin(); + bool pause = this._cmd.pause; + if (pause) + { + XSingleton.singleton.Pause = true; + } + XSingleton.singleton.Exculsive = true; + } + + protected void SetupCloneButton(GameObject targetGo, GameObject cloneGo) + { + XSingleton.singleton.AddChild(cloneGo.transform, this._finger.transform); + bool flag = this._cmd.param5 == null; + if (flag) + { + this._cmd.param5 = "0"; + } + bool flag2 = this._cmd.param6 == null; + if (flag2) + { + this._cmd.param6 = "0"; + } + this._finger.transform.localPosition += new Vector3(float.Parse(this._cmd.param5), float.Parse(this._cmd.param6), 0f); + cloneGo.name = targetGo.name; + IXUIObject ixuiobject = cloneGo.GetComponent("XUIObject") as IXUIObject; + bool flag3 = ixuiobject == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("XUIObject No Find", null, null, null, null, null); + } + ixuiobject.Exculsive = true; + cloneGo.transform.parent = XBaseCommand._Overlay.transform; + XSingleton.singleton.m_uiTool.MarkParentAsChanged(cloneGo); + Vector3 position = targetGo.transform.position; + Vector3 localPosition = XBaseCommand._Overlay.transform.InverseTransformPoint(position); + localPosition.z = 0f; + cloneGo.transform.localPosition = localPosition; + cloneGo.transform.localScale = targetGo.transform.localScale; + IXUICheckBox ixuicheckBox = targetGo.GetComponent("XUICheckBox") as IXUICheckBox; + bool flag4 = ixuicheckBox != null; + if (flag4) + { + IXUICheckBox ixuicheckBox2 = cloneGo.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ID = ixuicheckBox.ID; + ixuicheckBox2.ForceSetFlag(false); + ixuicheckBox2.RegisterOnCheckEventHandler(ixuicheckBox.GetCheckEventHandler()); + } + IXUIButton ixuibutton = targetGo.GetComponent("XUIButton") as IXUIButton; + bool flag5 = ixuibutton != null; + if (flag5) + { + IXUIButton ixuibutton2 = cloneGo.GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = ixuibutton.ID; + ixuibutton2.RegisterClickEventHandler(ixuibutton.GetClickEventHandler()); + ixuibutton2.RegisterPressEventHandler(ixuibutton.GetPressEventHandler()); + ixuibutton2.SetClickCD(2f); + ixuibutton2.CloseScrollView(); + this._finger.SetActive(true); + } + else + { + IXUISprite ixuisprite = targetGo.GetComponent("XUISprite") as IXUISprite; + bool flag6 = ixuisprite != null; + if (flag6) + { + IXUISprite ixuisprite2 = cloneGo.GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = ixuisprite.ID; + ixuisprite2.RegisterSpriteClickEventHandler(ixuisprite.GetSpriteClickHandler()); + ixuisprite2.RegisterSpritePressEventHandler(ixuisprite.GetSpritePressHandler()); + ixuisprite2.SetClickCD(2f); + ixuisprite2.CloseScrollView(); + this._finger.SetActive(true); + } + else + { + IXUITexture ixuitexture = targetGo.GetComponent("XUITexture") as IXUITexture; + bool flag7 = ixuitexture != null; + if (flag7) + { + IXUITexture ixuitexture2 = cloneGo.GetComponent("XUITexture") as IXUITexture; + ixuitexture2.ID = ixuitexture.ID; + ixuitexture2.RegisterLabelClickEventHandler(ixuitexture.GetTextureClickHandler()); + ixuitexture2.SetClickCD(2f); + ixuitexture2.CloseScrollView(); + this._finger.SetActive(true); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandForceClick.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandForceClick.cs.meta new file mode 100644 index 00000000..93fd62b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandForceClick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e9ef1ad5d08c1c40819d252e0a59872 +timeCreated: 1611403608 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandForceSkill.cs b/Client/Assets/Scripts/XMainClient/XCommandForceSkill.cs new file mode 100644 index 00000000..c3ecb51b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandForceSkill.cs @@ -0,0 +1,182 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandForceSkill : XBaseCommand + { + private GameObject _finger; + + private GameObject _clickGo; + + private GameObject _cloneGo; + + private int orgWidth; + + private int orgHeight; + + private uint _time1 = 0u; + + private uint _time2 = 0u; + + public override bool Execute() + { + Transform transform = XSingleton.singleton.UIRoot.Find(this._cmd.param1); + bool flag = transform == null || !transform.gameObject.activeInHierarchy; + bool result; + if (flag) + { + result = false; + } + else + { + this._clickGo = transform.gameObject; + this._time1 = XSingleton.singleton.SetTimer(this._cmd.interalDelay, new XTimerMgr.ElapsedEventHandler(this.ShowFinger), null); + base.publicModule(); + result = true; + } + return result; + } + + public override void Stop() + { + bool flag = this._time1 > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._time1); + this._time1 = 0u; + } + bool flag2 = this._time2 > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._time2); + this._time2 = 0u; + } + bool flag3 = this._finger != null; + if (flag3) + { + IXUISprite ixuisprite = this._finger.transform.Find("Quan1").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = this.orgWidth; + ixuisprite.spriteHeight = this.orgHeight; + XResourceLoaderMgr.SafeDestroy(ref this._finger, false); + } + bool flag4 = this._cloneGo != null; + if (flag4) + { + this._cloneGo.transform.parent = null; + UnityEngine.Object.Destroy(this._cloneGo); + this._cloneGo = null; + } + base.DestroyAilin(); + base.DestroyOverlay(); + XSingleton.singleton.Pause = false; + XSingleton.singleton.Exculsive = false; + } + + protected void ShowFinger(object o) + { + base.SetOverlay(); + DlgBase.singleton.SetVisible(false, true); + bool flag = string.IsNullOrEmpty(this._cmd.ailinText2); + if (flag) + { + this._SetupFinger(); + } + base.SetAilin(); + bool pause = this._cmd.pause; + if (pause) + { + XSingleton.singleton.Pause = true; + } + } + + protected void _SetupFinger() + { + bool flag = this._finger == null; + if (flag) + { + this._finger = (XSingleton.singleton.CreateFromPrefab("UI/Common/Quan", true, false) as GameObject); + } + this._finger.SetActive(false); + float num = float.Parse(this._cmd.param3); + bool flag2 = num > 0f; + if (flag2) + { + IXUISprite ixuisprite = this._finger.transform.Find("Quan1").GetComponent("XUISprite") as IXUISprite; + this.orgWidth = ixuisprite.spriteWidth; + this.orgHeight = ixuisprite.spriteHeight; + ixuisprite.spriteWidth = (int)((float)ixuisprite.spriteWidth * num); + ixuisprite.spriteHeight = (int)((float)ixuisprite.spriteHeight * num); + } + this._cloneGo = XCommon.Instantiate(this._clickGo.gameObject); + this.SetupCloneButton(this._clickGo.gameObject, this._cloneGo); + } + + protected override void OnMouseClick(IXUISprite sp) + { + base.OnMouseClick(sp); + bool flag = !string.IsNullOrEmpty(this._cmd.ailinText2); + if (flag) + { + this._SetupFinger(); + } + } + + protected void SetupCloneButton(GameObject targetGo, GameObject cloneGo) + { + XSingleton.singleton.AddChild(cloneGo.transform, this._finger.transform); + this._finger.transform.localRotation *= Quaternion.Euler(0f, 0f, -90f); + cloneGo.name = targetGo.name; + IXUIObject ixuiobject = cloneGo.GetComponent("XUIObject") as IXUIObject; + ixuiobject.Exculsive = true; + cloneGo.transform.parent = XBaseCommand._Overlay.transform; + Vector3 position = targetGo.transform.position; + Vector3 localPosition = XBaseCommand._Overlay.transform.InverseTransformPoint(position); + localPosition.z = 0f; + cloneGo.transform.localPosition = localPosition; + cloneGo.transform.localScale = targetGo.transform.localScale; + this._finger.SetActive(true); + IXUIButton ixuibutton = cloneGo.GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnClick)); + XSingleton.singleton.Exculsive = true; + } + + protected bool OnBtnClick(IXUIButton go) + { + int num = int.Parse(this._cmd.param2); + XSingleton.singleton.Pause = false; + this._time2 = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.CastSkill), num); + return true; + } + + protected void CastSkill(object o) + { + int num = (int)o; + XPlayer player = XSingleton.singleton.Player; + XPlayerAttributes xplayerAttributes = player.Attributes as XPlayerAttributes; + switch (num) + { + case 0: + player.Net.ReportSkillAction(null, player.SkillMgr.GetPhysicalIdentity(), -1); + break; + case 1: + { + uint skillid = XSingleton.singleton.XHash(player.Present.PresentLib.Dash); + player.Net.ReportSkillAction(null, skillid, -1); + break; + } + case 2: + { + uint skillid2 = xplayerAttributes.skillSlot[0]; + player.Net.ReportSkillAction(null, skillid2, -1); + break; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandForceSkill.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandForceSkill.cs.meta new file mode 100644 index 00000000..af6bd868 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandForceSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9683275e3a0f9bf42af6382bd45feacd +timeCreated: 1611404185 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandForceSlide.cs b/Client/Assets/Scripts/XMainClient/XCommandForceSlide.cs new file mode 100644 index 00000000..af68a710 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandForceSlide.cs @@ -0,0 +1,140 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandForceSlide : XBaseCommand + { + private GameObject _finger; + + private Transform _cloneSrc; + + private Transform _cloneDst; + + private uint _dragskillID; + + private uint _dragSlot; + + public override bool Execute() + { + Transform uiwindow = this.GetUIWindow(this._cmd.param1); + Transform uiwindow2 = this.GetUIWindow(this._cmd.param2); + bool flag = uiwindow == null || uiwindow2 == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this._finger == null; + if (flag2) + { + this._finger = (XSingleton.singleton.CreateFromPrefab("UI/Common/SlideFinger", true, false) as GameObject); + } + base.SetOverlay(); + this._cloneSrc = this.CloneWindow(uiwindow); + this._cloneDst = this.CloneWindow(uiwindow2); + this.SetupSlide(); + IXUITweenTool ixuitweenTool = this._finger.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + IXUISprite ixuisprite = uiwindow.GetComponent("XUISprite") as IXUISprite; + this._dragskillID = (uint)ixuisprite.ID; + IXUISprite ixuisprite2 = uiwindow2.GetComponent("XUISprite") as IXUISprite; + this._dragSlot = (uint)ixuisprite2.ID; + IXUIDragDropItem ixuidragDropItem = this._cloneSrc.Find("Icon").GetComponent("XUIDragDropItem") as IXUIDragDropItem; + ixuidragDropItem.RegisterOnFinishEventHandler(new OnDropReleaseEventHandler(this.OnDragEnd)); + ixuidragDropItem.RegisterOnStartEventHandler(new OnDropStartEventHandler(this.OnDragStart)); + base.SetTutorialText(this._cmd.textPos, this._cloneSrc); + XSingleton.singleton.Exculsive = true; + base.publicModule(); + result = true; + } + return result; + } + + protected void OnDragStart(GameObject go) + { + GameObject gameObject = this._cloneDst.Find("Can").gameObject; + gameObject.SetActive(true); + } + + protected void OnDragEnd(GameObject go, GameObject surface) + { + IXUISprite ixuisprite = go.GetComponent("XUISprite") as IXUISprite; + uint num = (uint)ixuisprite.ID; + IXUISprite ixuisprite2 = surface.GetComponent("XUISprite") as IXUISprite; + bool flag = ixuisprite2 != null && surface.name.StartsWith("SkillSlot"); + if (flag) + { + uint num2 = (uint)ixuisprite2.ID; + RpcC2G_BindSkill rpcC2G_BindSkill = new RpcC2G_BindSkill(); + rpcC2G_BindSkill.oArg.skillhash = this._dragskillID; + rpcC2G_BindSkill.oArg.slot = (int)this._dragSlot; + XSingleton.singleton.Send(rpcC2G_BindSkill); + XSingleton.singleton.OnCmdFinished(); + } + } + + protected Transform CloneWindow(Transform window) + { + GameObject gameObject = XCommon.Instantiate(window.gameObject); + gameObject.transform.parent = XBaseCommand._Overlay.transform; + XSingleton.singleton.AddChild(XSingleton.singleton.UIRoot, XBaseCommand._Overlay.transform); + Vector3 position = window.transform.position; + Vector3 localPosition = XSingleton.singleton.UIRoot.InverseTransformPoint(position); + localPosition.z = 0f; + gameObject.transform.localPosition = localPosition; + gameObject.transform.localScale = Vector3.one; + return gameObject.transform; + } + + protected void SetupSlide() + { + this._finger.transform.parent = XBaseCommand._Overlay.transform; + this._finger.transform.localPosition = Vector3.zero; + this._finger.transform.localScale = Vector3.one; + Vector3 vector = XSingleton.singleton.UIRoot.InverseTransformPoint(this._cloneSrc.transform.position); + Vector3 vector2 = XSingleton.singleton.UIRoot.InverseTransformPoint(this._cloneDst.transform.position); + Vector3 localPosition = (vector + vector2) / 2f; + float magnitude = (vector - vector2).magnitude; + float num = Vector3.Angle(vector - vector2, Vector3.right); + localPosition.z = 0f; + this._finger.transform.localPosition = localPosition; + this._finger.transform.localScale = new Vector3(magnitude / 712f, 1f, 1f); + this._finger.transform.Rotate(0f, 0f, num - 180f); + } + + protected Transform GetUIWindow(string name) + { + Transform transform = XSingleton.singleton.UIRoot.Find("SkillDlg(Clone)"); + bool flag = !transform || !transform.gameObject.activeInHierarchy; + Transform result; + if (flag) + { + result = null; + } + else + { + Transform transform2 = XSingleton.singleton.FindChild(transform.transform, name); + result = transform2; + } + return result; + } + + public override void OnFinish() + { + this.Stop(); + } + + public override void Stop() + { + XResourceLoaderMgr.SafeDestroy(ref this._finger, false); + base.Stop(); + XSingleton.singleton.Exculsive = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandForceSlide.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandForceSlide.cs.meta new file mode 100644 index 00000000..d2600015 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandForceSlide.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0151ef5caee190e4c93b52fb9f045b16 +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandGenericClick.cs b/Client/Assets/Scripts/XMainClient/XCommandGenericClick.cs new file mode 100644 index 00000000..1321c577 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandGenericClick.cs @@ -0,0 +1,48 @@ +using System; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandGenericClick : XBaseCommand + { + private GameObject _finger; + + public override bool Execute() + { + bool flag = this._finger == null; + if (flag) + { + this._finger = (XSingleton.singleton.CreateFromPrefab("UI/Common/Quan", true, false) as GameObject); + } + base.SetOverlay(); + XSingleton.singleton.AddChild(XSingleton.singleton.UIRoot, XBaseCommand._Overlay.transform); + int num = int.Parse(this._cmd.param1); + int num2 = int.Parse(this._cmd.param2); + Vector3 vector = XSingleton.singleton.UICamera.ScreenToWorldPoint(XTutorialHelper.BaseScreenPos2Real(new Vector2((float)num, (float)num2))); + Vector3 localPosition = XBaseCommand._Overlay.transform.InverseTransformPoint(vector); + XSingleton.singleton.AddChild(XBaseCommand._Overlay.transform, this._finger.transform); + localPosition.z = 0f; + this._finger.transform.localPosition = localPosition; + XSingleton.singleton.Exculsive = true; + XSingleton.singleton.ExculsiveOnGeneric = true; + base.SetTutorialText(this._cmd.textPos, this._finger.transform); + base.publicModule(); + return true; + } + + public override void OnFinish() + { + this.Stop(); + } + + public override void Stop() + { + XSingleton.singleton.Exculsive = false; + XSingleton.singleton.ExculsiveOnGeneric = false; + XResourceLoaderMgr.SafeDestroy(ref this._finger, false); + base.Stop(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandGenericClick.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandGenericClick.cs.meta new file mode 100644 index 00000000..278a64d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandGenericClick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d6b78b497c3ad274c91405a6e2615ce5 +timeCreated: 1611404633 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandMove.cs b/Client/Assets/Scripts/XMainClient/XCommandMove.cs new file mode 100644 index 00000000..702a3f64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandMove.cs @@ -0,0 +1,47 @@ +using System; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandMove : XBaseCommand + { + private uint _time = 0u; + + public override bool Execute() + { + this._time = XSingleton.singleton.SetTimer(this._cmd.interalDelay, new XTimerMgr.ElapsedEventHandler(this.ShowVT), null); + base.publicModule(); + return true; + } + + protected void ShowVT(object o) + { + this._startTime = Time.time; + base.SetButtomText(); + DlgBase.singleton.ShowPanel(true, new Vector2(200f, 50f)); + bool pause = this._cmd.pause; + if (pause) + { + XSingleton.singleton.Pause = true; + } + } + + public override void Stop() + { + DlgBase.singleton.ShowPanel(false, Vector2.zero); + bool flag = this._time > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._time); + this._time = 0u; + } + base.DestroyButtomText(); + base.DestroyOverlay(); + XSingleton.singleton.Pause = false; + XSingleton.singleton.Exculsive = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandMove.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandMove.cs.meta new file mode 100644 index 00000000..8d8aa2ad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandMove.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d9e977b55e2f044a8359d95c9dde8fc +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandNewIcon.cs b/Client/Assets/Scripts/XMainClient/XCommandNewIcon.cs new file mode 100644 index 00000000..2ecec19f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandNewIcon.cs @@ -0,0 +1,139 @@ +using System; +using System.Reflection; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandNewIcon : XBaseCommand + { + private GameObject _newicon = null; + + private uint CachedOpenSystem; + + public override bool Execute() + { + base.publicModule(); + return this._execute(this._cmd.param1, this._cmd.param2); + } + + public override void OnFinish() + { + XSingleton.singleton.Exculsive = false; + base.OnFinish(); + } + + public bool _execute(string param1, string param2) + { + this.CachedOpenSystem = uint.Parse(param1); + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + bool flag = xplayerAttributes.IsSystemOpened(this.CachedOpenSystem); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !XSingleton.singleton.IsSysOpend(this.CachedOpenSystem); + if (flag2) + { + result = false; + } + else + { + bool flag3 = this.CachedOpenSystem > 0u; + if (flag3) + { + string systemIcon = this.GetSystemIcon(this.CachedOpenSystem); + XSingleton.singleton.AddLog("new icon executed", this.CachedOpenSystem.ToString(), ",", systemIcon, null, null, XDebugColor.XDebug_None); + XResourceLoaderMgr.SafeDestroy(ref this._newicon, false); + bool flag4 = this.CachedOpenSystem < 10u; + if (flag4) + { + this._newicon = (XSingleton.singleton.CreateFromPrefab("UI/Common/NewSkill", true, false) as GameObject); + } + else + { + this._newicon = (XSingleton.singleton.CreateFromPrefab("UI/Common/NewIcon", true, false) as GameObject); + } + base.SetOverlay(); + IXUISprite ixuisprite = this._newicon.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = systemIcon; + XSingleton.singleton.AddChild(XBaseCommand._Overlay.transform, this._newicon.transform); + IXUITweenTool ixuitweenTool = this._newicon.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnNewIconTweenFinished)); + bool flag5 = param1 != null && param1.Length > 0 && param2 != null && param2.Length > 0; + if (flag5) + { + Type type = Type.GetType("XMainClient.UI." + param1); + MethodInfo method = type.GetMethod("GetChildWorldPos", BindingFlags.Instance | BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy); + Vector3 vector = (Vector3)method.Invoke(null, new object[] + { + param2 + }); + Vector3 to = XSingleton.singleton.UIRoot.InverseTransformPoint(vector); + ixuitweenTool.SetPositionTweenPos(0, Vector3.zero, to); + } + else + { + Vector3 newIconFlyPosH = DlgBase.singleton.GetNewIconFlyPosH1((XSysDefine)this.CachedOpenSystem); + ixuitweenTool.SetPositionTweenPos(0, Vector3.zero, newIconFlyPosH); + } + ixuitweenTool.SetTargetGameObject(this._newicon); + ixuitweenTool.PlayTween(true, -1f); + DlgBase.singleton.ForceOpenSysIcons((XSysDefine)this.CachedOpenSystem); + XSingleton.singleton.Exculsive = true; + result = true; + } + else + { + result = false; + } + } + } + return result; + } + + protected string GetSystemIcon(uint sysID) + { + bool flag = sysID < 10u; + string result; + if (flag) + { + RoleType profession = XSingleton.singleton.Player.PlayerAttributes.Profession; + string str = XSingleton.singleton.RoleTypeToString(profession) + "_B" + sysID; + uint skillHash = XSingleton.singleton.XHash(str); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillHash, 1u); + result = skillConfig.Icon; + } + else + { + result = XSingleton.singleton.GetSysIcon((int)sysID); + } + return result; + } + + protected void OnNewIconTweenFinished(IXUITweenTool tween) + { + XResourceLoaderMgr.SafeDestroy(ref this._newicon, false); + (XSingleton.singleton.Player.Attributes as XPlayerAttributes).ReallyOpenSystem(this.CachedOpenSystem); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.OnSysChange((XSysDefine)this.CachedOpenSystem); + } + } + + public override void Stop() + { + XResourceLoaderMgr.SafeDestroy(ref this._newicon, false); + base.Stop(); + XSingleton.singleton.Exculsive = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandNewIcon.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandNewIcon.cs.meta new file mode 100644 index 00000000..4ac9994c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandNewIcon.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8418129e5ec9a240b7a7caf989bb210 +timeCreated: 1611404533 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandNoforceClick.cs b/Client/Assets/Scripts/XMainClient/XCommandNoforceClick.cs new file mode 100644 index 00000000..d4980238 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandNoforceClick.cs @@ -0,0 +1,171 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandNoforceClick : XBaseCommand + { + private GameObject _finger; + + private int orgWidth1; + + private int orgHeight1; + + private int orgWidth2; + + private int orgHeight2; + + public override bool Execute() + { + bool flag = this._cmd.param2 == "_canvas/SkillFrame/Skill0"; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SkillHandler.AlwaysHot(0, true); + } + XSingleton.singleton.Player.Skill.EndSkill(true, false); + } + Transform transform = XSingleton.singleton.UIRoot.Find(this._cmd.param1 + "(Clone)"); + bool flag3 = !transform || !transform.gameObject.activeInHierarchy; + bool result; + if (flag3) + { + result = false; + } + else + { + Transform transform2 = XSingleton.singleton.FindChild(transform, this._cmd.param2); + bool flag4 = transform2 == null || !transform2.gameObject.activeInHierarchy; + if (flag4) + { + bool flag5 = transform2 == null && this._cmd.isOutError; + if (flag5) + { + this._cmd.isOutError = false; + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "TutorialId:", + this._cmd.TutorialID, + " Configuration File Path Error! tag:", + this._cmd.tag, + "\nPath:", + this._cmd.param1, + "(Clone)/", + this._cmd.param2 + }), null, null, null, null, null); + } + result = false; + } + else + { + this._startTime = Time.time; + bool flag6 = this._finger == null; + if (flag6) + { + this._finger = (XSingleton.singleton.CreateFromPrefab("UI/Common/Quan", true, false) as GameObject); + } + bool flag7 = this._cmd.param3 != null; + if (flag7) + { + float num = float.Parse(this._cmd.param3); + bool flag8 = num >= 0f; + if (flag8) + { + IXUISprite ixuisprite = this._finger.transform.Find("Quan1").GetComponent("XUISprite") as IXUISprite; + this.orgWidth1 = ixuisprite.spriteWidth; + this.orgHeight1 = ixuisprite.spriteHeight; + ixuisprite.spriteWidth = (int)((float)ixuisprite.spriteWidth * num); + ixuisprite.spriteHeight = (int)((float)ixuisprite.spriteHeight * num); + } + } + bool flag9 = this._cmd.param4 != null; + if (flag9) + { + float num2 = float.Parse(this._cmd.param4); + bool flag10 = num2 >= 0f; + if (flag10) + { + IXUISprite ixuisprite2 = this._finger.transform.Find("Quan2").GetComponent("XUISprite") as IXUISprite; + this.orgWidth2 = ixuisprite2.spriteWidth; + this.orgHeight2 = ixuisprite2.spriteHeight; + ixuisprite2.spriteWidth = (int)((float)ixuisprite2.spriteWidth * num2); + ixuisprite2.spriteHeight = (int)((float)ixuisprite2.spriteHeight * num2); + } + } + IXUIObject ixuiobject = transform2.GetComponent("XUIObject") as IXUIObject; + ixuiobject.Exculsive = true; + XSingleton.singleton.AddChild(transform2, this._finger.transform); + bool flag11 = this._cmd.param5 == null; + if (flag11) + { + this._cmd.param5 = "0"; + } + bool flag12 = this._cmd.param6 == null; + if (flag12) + { + this._cmd.param6 = "0"; + } + this._finger.transform.localPosition += new Vector3(float.Parse(this._cmd.param5), float.Parse(this._cmd.param6), 0f); + this._finger.SetActive(false); + this._finger.SetActive(true); + base.SetTutorialText(this._cmd.textPos, transform2); + base.SetButtomText(); + base.SetAilin(); + bool pause = this._cmd.pause; + if (pause) + { + XSingleton.singleton.Pause = true; + } + XSingleton.singleton.NoforceClick = true; + base.publicModule(); + result = true; + } + } + return result; + } + + public override void OnFinish() + { + this.Stop(); + } + + public override void Stop() + { + bool flag = this._finger != null; + if (flag) + { + bool flag2 = this._cmd.param3 != null; + if (flag2) + { + IXUISprite ixuisprite = this._finger.transform.Find("Quan1").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteWidth = this.orgWidth1; + ixuisprite.spriteHeight = this.orgHeight1; + } + bool flag3 = this._cmd.param4 != null; + if (flag3) + { + IXUISprite ixuisprite2 = this._finger.transform.Find("Quan2").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteWidth = this.orgWidth2; + ixuisprite2.spriteHeight = this.orgHeight2; + } + XResourceLoaderMgr.SafeDestroy(ref this._finger, false); + } + base.DestroyAilin(); + XSingleton.singleton.Pause = false; + XSingleton.singleton.NoforceClick = false; + bool flag4 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.SkillHandler != null; + if (flag4) + { + DlgBase.singleton.SkillHandler.AlwaysHot(0, false); + } + base.Stop(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandNoforceClick.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandNoforceClick.cs.meta new file mode 100644 index 00000000..47e45658 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandNoforceClick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 258fa438441dfb7438b8a66492351d18 +timeCreated: 1611403465 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandPrefab.cs b/Client/Assets/Scripts/XMainClient/XCommandPrefab.cs new file mode 100644 index 00000000..c240956f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandPrefab.cs @@ -0,0 +1,142 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandPrefab : XBaseCommand + { + private GameObject _Prefab; + + private uint _time = 0u; + + private uint _time2 = 0u; + + public override bool Execute() + { + bool flag = this._cmd.param2 == "SelectSight"; + bool result; + if (flag) + { + bool pause = this._cmd.pause; + if (pause) + { + XSingleton.singleton.Pause = true; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + else + { + bool flag2 = this._cmd.param2 == "SelectSkipTutorial"; + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + result = true; + } + else + { + this._time = XSingleton.singleton.SetTimer(this._cmd.interalDelay, new XTimerMgr.ElapsedEventHandler(this.ShowVT), null); + base.publicModule(); + result = true; + } + } + return result; + } + + protected void ShowVT(object o) + { + base.SetOverlay(); + this.ShowPic(); + bool pause = this._cmd.pause; + if (pause) + { + XSingleton.singleton.Pause = true; + } + } + + protected void ShowPic() + { + bool flag = this._Prefab == null; + if (flag) + { + this._Prefab = (XSingleton.singleton.CreateFromPrefab(this._cmd.param1, true, false) as GameObject); + } + XSingleton.singleton.AddChild(XBaseCommand._Overlay, this._Prefab); + IXUITweenTool ixuitweenTool = this._Prefab.GetComponent("XUIPlayTween") as IXUITweenTool; + bool flag2 = this._cmd.param2 == "Time"; + if (flag2) + { + this._time2 = XSingleton.singleton.SetTimer(float.Parse(this._cmd.param3), new XTimerMgr.ElapsedEventHandler(this.TweenFinish), null); + } + else + { + bool flag3 = this._cmd.param2 == "PlayFinished"; + if (flag3) + { + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnTweenFinish)); + } + else + { + XSingleton.singleton.AddErrorLog("Tutorial ShowPrefab No Finish Way!\nTag:" + this._cmd.tag, null, null, null, null, null); + } + } + ixuitweenTool.PlayTween(true, -1f); + } + + protected void TweenFinish(object o) + { + this.RegisterOnMouseClick(); + } + + protected void OnTweenFinish(IXUITweenTool tool) + { + this.RegisterOnMouseClick(); + } + + protected void RegisterOnMouseClick() + { + bool flag = this._Prefab != null; + if (flag) + { + IXUISprite ixuisprite = this._Prefab.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnMouseClick)); + } + else + { + this.OnMouseClick(null); + } + } + + protected override void OnMouseClick(IXUISprite sp) + { + base.OnMouseClick(sp); + XSingleton.singleton.OnCmdFinished(); + } + + public override void Stop() + { + bool flag = this._time > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._time); + this._time = 0u; + } + bool flag2 = this._time2 > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this._time2); + this._time2 = 0u; + } + XResourceLoaderMgr.SafeDestroy(ref this._Prefab, false); + base.DestroyAilin(); + base.DestroyOverlay(); + XSingleton.singleton.Pause = false; + XSingleton.singleton.Exculsive = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandPrefab.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandPrefab.cs.meta new file mode 100644 index 00000000..7ddc4431 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandPrefab.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34b95fa7dd3965940b8f05620d0895d3 +timeCreated: 1611403556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandPureOverlay.cs b/Client/Assets/Scripts/XMainClient/XCommandPureOverlay.cs new file mode 100644 index 00000000..aec4b97a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandPureOverlay.cs @@ -0,0 +1,19 @@ +using System; + +namespace XMainClient +{ + internal class XCommandPureOverlay : XBaseCommand + { + public override bool Execute() + { + base.SetOverlay(); + base.publicModule(); + return true; + } + + public override void Stop() + { + base.DestroyOverlay(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandPureOverlay.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandPureOverlay.cs.meta new file mode 100644 index 00000000..194733c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandPureOverlay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c862fd0362a0f844f9cf4ec332aad068 +timeCreated: 1611404534 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCommandPureText.cs b/Client/Assets/Scripts/XMainClient/XCommandPureText.cs new file mode 100644 index 00000000..7993b25a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandPureText.cs @@ -0,0 +1,25 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCommandPureText : XBaseCommand + { + public override bool Execute() + { + this._startTime = Time.time; + int num = int.Parse(this._cmd.param1); + int num2 = int.Parse(this._cmd.param2); + Vector3 vector = XSingleton.singleton.UICamera.ScreenToWorldPoint(XTutorialHelper.BaseScreenPos2Real(new Vector2((float)num, (float)num2))); + Vector3 vector2 = XSingleton.singleton.UIRoot.InverseTransformPoint(vector); + base.SetTutorialText(this._cmd.textPos, XSingleton.singleton.UIRoot); + base.publicModule(); + return true; + } + + public override void Update() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCommandPureText.cs.meta b/Client/Assets/Scripts/XMainClient/XCommandPureText.cs.meta new file mode 100644 index 00000000..0617e193 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCommandPureText.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9bf55fc0bbff48043bb8948f913e1ea6 +timeCreated: 1611404208 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCompeteDocument.cs b/Client/Assets/Scripts/XMainClient/XCompeteDocument.cs new file mode 100644 index 00000000..1fab60b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCompeteDocument.cs @@ -0,0 +1,278 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCompeteDocument : XDocComponent + { + public override uint ID + { + get + { + return XCompeteDocument.uuID; + } + } + + public static XCompeteDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XCompeteDocument.uuID) as XCompeteDocument; + } + } + + public FirstPassRankList RankList + { + get + { + return this.m_rankList; + } + } + + public bool HadRedDot + { + get + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Activity_WeekDragonNest); + return !flag && this.m_hadRedDot; + } + set + { + this.m_hadRedDot = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XCompeteDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public CompeteNestDlg View = null; + + public int CurDNid = 0; + + public int CanGetCount = 0; + + public int GetRewardMax = 0; + + public int LeftRewardCount = 0; + + private FirstPassRankList m_rankList = null; + + private List m_titleRowList; + + private Dictionary m_picDic; + + private bool m_hadRedDot = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XCompeteDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + bool flag2 = this.View.m_rankHandler != null && this.View.m_rankHandler.IsVisible(); + if (flag2) + { + this.ReqRankList(); + } + else + { + this.ReqCompeteDragonInfo(); + } + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void ReqCompeteDragonInfo() + { + RpcC2G_GetCompeteDragonInfo rpcC2G_GetCompeteDragonInfo = new RpcC2G_GetCompeteDragonInfo(); + rpcC2G_GetCompeteDragonInfo.oArg.opArg = CompeteDragonOpArg.CompeteDragon_GetInfo; + XSingleton.singleton.Send(rpcC2G_GetCompeteDragonInfo); + } + + public void ReqRankList() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.CompeteDragonRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void ReqLastSeasonRankList() + { + } + + public void ReqFetchReward() + { + RpcC2G_GetCompeteDragonInfo rpcC2G_GetCompeteDragonInfo = new RpcC2G_GetCompeteDragonInfo(); + rpcC2G_GetCompeteDragonInfo.oArg.opArg = CompeteDragonOpArg.CompeteDragon_GetReward; + XSingleton.singleton.Send(rpcC2G_GetCompeteDragonInfo); + } + + public void OnGetCompeteDragonInfo(GetCompeteDragonInfoRes oRes) + { + this.CurDNid = (int)oRes.curDNExpID; + this.CanGetCount = oRes.canCanGetRewardCount; + this.LeftRewardCount = oRes.leftRewardCount; + this.GetRewardMax = oRes.totalRewardCount; + this.RefreshUi(); + } + + public void OnFetchReward(GetCompeteDragonInfoRes oRes) + { + this.CanGetCount--; + this.LeftRewardCount--; + this.RefreshUi(); + } + + public void OnGetRankList(ClientQueryRankListRes oRes, bool LastWeek = false) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + bool flag2 = !LastWeek; + if (flag2) + { + this.m_rankList = new FirstPassRankList(oRes, false); + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + bool flag5 = this.View.m_rankHandler != null && this.View.m_rankHandler.IsVisible(); + if (flag5) + { + this.View.m_rankHandler.FillContent(); + } + } + } + } + } + } + + public void RefreshUi() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.Resfresh(); + } + } + + public DesignationTable.RowData GetTittleNameByRank(int rank) + { + bool flag = this.m_titleRowList == null; + if (flag) + { + XDesignationDocument xdesignationDocument = XSingleton.singleton.Doc.GetXComponent(XDesignationDocument.uuID) as XDesignationDocument; + this.m_titleRowList = new List(); + int @int = XSingleton.singleton.GetInt("WeekDragonTitleType"); + for (int i = 0; i < xdesignationDocument._DesignationTable.Table.Length; i++) + { + DesignationTable.RowData rowData = xdesignationDocument._DesignationTable.Table[i]; + bool flag2 = rowData != null && rowData.CompleteType == @int; + if (flag2) + { + bool flag3 = !this.m_titleRowList.Contains(rowData); + if (flag3) + { + this.m_titleRowList.Add(rowData); + } + } + } + } + for (int j = 0; j < this.m_titleRowList.Count; j++) + { + bool flag4 = this.m_titleRowList[j].CompleteValue != null && this.m_titleRowList[j].CompleteValue.Length == 2; + if (flag4) + { + bool flag5 = rank >= this.m_titleRowList[j].CompleteValue[0] && rank <= this.m_titleRowList[j].CompleteValue[1]; + if (flag5) + { + return this.m_titleRowList[j]; + } + } + } + return null; + } + + public string GetPicNameByDNid(uint DNid) + { + bool flag = this.m_picDic == null; + if (flag) + { + this.InitPicData(); + } + string result = ""; + this.m_picDic.TryGetValue(DNid, out result); + return result; + } + + private void InitPicData() + { + this.m_picDic = new Dictionary(); + string value = XSingleton.singleton.GetValue("WeekDragonPics"); + bool flag = string.IsNullOrEmpty(value); + if (!flag) + { + string[] array = value.Split(XGlobalConfig.ListSeparator); + bool flag2 = array == null; + if (!flag2) + { + for (int i = 0; i < array.Length; i++) + { + string[] array2 = array[i].Split(XGlobalConfig.SequenceSeparator); + bool flag3 = array2 == null; + if (!flag3) + { + bool flag4 = array2.Length != 2; + if (!flag4) + { + uint key; + bool flag5 = uint.TryParse(array2[0], out key); + if (flag5) + { + bool flag6 = !this.m_picDic.ContainsKey(key); + if (flag6) + { + this.m_picDic.Add(key, array2[1]); + } + } + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCompeteDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCompeteDocument.cs.meta new file mode 100644 index 00000000..06f8fe6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCompeteDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44208bc3a446222459e765c92f2b5730 +timeCreated: 1611403644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XComponent.cs b/Client/Assets/Scripts/XMainClient/XComponent.cs new file mode 100644 index 00000000..529f9cc0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XComponent.cs @@ -0,0 +1,208 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XComponent + { + public abstract uint ID { get; } + + public bool Enabled + { + get + { + return this._enabled && !this._detached; + } + set + { + this._enabled = value; + } + } + + public bool Detached + { + get + { + return this._detached; + } + set + { + this._detached = value; + } + } + + public bool ManualUnitBuff + { + get + { + return this._manualUnitBuff; + } + set + { + this._manualUnitBuff = value; + } + } + + public XObject Host + { + get + { + return this._host; + } + } + + public XEntity Entity + { + get + { + return this._entity; + } + } + + public static readonly uint uuID = 0u; + + protected XObject _host = null; + + protected XEntity _entity = null; + + private bool _enabled = true; + + private bool _detached = false; + + protected bool _manualUnitBuff = false; + + protected SmallBuffer _eventMap; + + public delegate bool XEventHandler(XEventArgs e); + + public struct ComponentEventHandler + { + public int eventIndex; + + public XComponent.XEventHandler handler; + } + + public virtual void InitilizeBuffer() + { + XSingleton.singleton.GetBuffer(ref this._eventMap, 8); + } + + public virtual void UninitilizeBuffer() + { + XSingleton.singleton.ReturnBuffer(ref this._eventMap); + } + + private XComponent.XEventHandler FindEventHandler(int eventIndex) + { + int count = this._eventMap.Count; + for (int i = 0; i < count; i++) + { + XComponent.ComponentEventHandler componentEventHandler = this._eventMap[i]; + bool flag = componentEventHandler.eventIndex == eventIndex; + if (flag) + { + return componentEventHandler.handler; + } + } + return null; + } + + public virtual void OnReconnect(UnitAppearance data) + { + } + + public virtual void Attached() + { + } + + public virtual void OnEnterScene() + { + } + + public virtual void OnLeaveScene() + { + } + + public virtual void Update(float fDeltaT) + { + } + + public virtual void FixedUpdate() + { + } + + public virtual void PostUpdate(float fDeltaT) + { + } + + public bool OnEvent(XEventArgs e) + { + int eventIndex = XFastEnumIntEqualityComparer.ToInt(e.ArgsDefine); + XComponent.XEventHandler xeventHandler = this.FindEventHandler(eventIndex); + bool flag = xeventHandler != null; + return flag && xeventHandler(e); + } + + public virtual void OnAttachToHost(XObject host) + { + this._host = host; + this._entity = (this._host as XEntity); + this.BeginRegisterEvent(); + this.EventSubscribe(); + this.EndRegisterEvent(); + } + + public virtual void OnDetachFromHost() + { + this.EventUnsubscribe(); + this._host = null; + this._entity = null; + } + + public virtual void OnComponentAttachToHost(XComponent c) + { + } + + public virtual void OnComponentDetachFromHost(XComponent c) + { + } + + private void BeginRegisterEvent() + { + } + + private void EndRegisterEvent() + { + } + + protected virtual void EventSubscribe() + { + } + + protected void EventUnsubscribe() + { + this._eventMap.Clear(); + } + + protected void RegisterEvent(XEventDefine eventID, XComponent.XEventHandler handler) + { + int num = XFastEnumIntEqualityComparer.ToInt(eventID); + int count = this._eventMap.Count; + for (int i = 0; i < count; i++) + { + XComponent.ComponentEventHandler componentEventHandler = this._eventMap[i]; + bool flag = componentEventHandler.eventIndex == num; + if (flag) + { + return; + } + } + this._eventMap.Add(new XComponent.ComponentEventHandler + { + eventIndex = num, + handler = handler + }); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XComponent.cs.meta new file mode 100644 index 00000000..d8c83bd3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f56500bc51355b645b88d69d46edbb66 +timeCreated: 1611404875 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XComponentMgr.cs b/Client/Assets/Scripts/XMainClient/XComponentMgr.cs new file mode 100644 index 00000000..e690d0c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XComponentMgr.cs @@ -0,0 +1,920 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XComponentMgr : XSingleton + { + private Dictionary _slots = new Dictionary(); + + private Dictionary _componentCache = new Dictionary(); + + public static int ComponenCreatetCount = 0; + + private int count = 0; + + public class ComponentCache + { + public int SlotIndex = -1; + + public Queue componentCache = new Queue(); + } + + private enum XComponentSet + { + AI_Auto_Fight, + Player_Attributes, + Basic_Move, + BeHit_Presentation, + Charge_Move, + Basic_Fall, + Freezing_Presentation, + Basic_Idle, + Basic_Jump, + Basic_Rotation, + Audio, + Character_Billboard, + Moba_Billboard, + Character_Buff, + Death, + Character_Equipment, + Entity_Gravity, + CombatInfoInScene, + Presentation, + Skill, + StateMachine, + Role_StateMachine, + AI_StateMachine, + Camera_Basic_Collison, + Camera_Basic_Shake, + Action_Generator, + Renderer, + Net_Component, + Role_Attributes, + Camera_Common_Action, + ShowUp, + Npc_Attributes, + Camera_Solo_Effect, + Camera_Wall_Component, + Camera_Motion, + Navgation_Component, + Camera_CloseUp_Component, + Camera_IntellectiveFollow_Component, + Fly, + Shadow, + Assist_AI, + Others_Attributes, + Endure, + TShow, + CampMainDocument, + CampMissionDocument, + FindExpDocument, + EquipCreateDocument, + ArenaDocument, + AchievementDocument, + JadeDocument, + CharacterDocument, + ActivityDocument, + MystShopDocument, + LoginRewardDocument, + MainInterfaceDocument, + DailyActivitiesDocument, + FashionDocument, + SuperRiskDocument, + EmblemDocument, + RankDocument, + FlowerSendDocument, + FlowerRankDocument, + FlowerReplyDocument, + WeekendPartyDocument, + PlatformAbilityDocument, + PKInvitationDocument, + WelfareDocument, + CharacterCommonMenuDocument, + EnhanceDocument, + OptionsDocument, + SystemRewardDocument, + XBagDocument, + CharacterEquipDocument, + XEquipDocument, + NormalShopDocument, + SweepDocument, + TeamDocument, + ShowGetItemDocument, + AdditionRemindDocument, + ExpeditionDocument, + WorldBossDocument, + DanceDocument, + XRechargeDocument, + XPurchaseDocument, + XFPStrengthenDocument, + LevelUpStatusDocument, + ShowGetAchivementTipDocument, + SystemTipDocument, + ReinforceDocument, + SkillTreeDocument, + XOtherPlayerInfoDocument, + LotteryDocument, + RecycleItemDocument, + XChatDocument, + SelectCharacterDocument, + GuildDocument, + GuildListDocument, + XFriendsDocument, + XLevelDocument, + XGuildArenaBattleDocument, + GuildHallDocument, + GuildApproveDocument, + GuildMemberDocument, + GuildSignInDocument, + GuildViewDocument, + GuildRelaxGameDocument, + GuildJokerDocument, + GuildSkillDocument, + GuildRedPacketDocument, + XGuildQualifierDocument, + XGuildJokerMatchDocument, + XGuildArenaDocument, + XGuildRankDocument, + XGuildSalaryDocument, + XGuildInheritDocument, + XGuildTerritoryDocument, + LevelRewardDocument, + CharacterItemDocument, + GuildDragonDocument, + NextDayRewardDocument, + InvitationDocument, + OnlineRewardDocument, + FootFx, + XRoleAutoFightAIComponent, + XLocateTarget, + SmeltingDocument, + QualifyingDocument, + XAIArenaFightComponent, + BattleSkillDocument, + GuildSmallMonsterDocument, + XTitleDocument, + XQuickTimeEventComponent, + SceneDamageRankDocument, + XSuperArmorComponent, + WoozyComponent, + BattleDocument, + XAIComponent, + XInheritComponent, + GayValleyDocument, + GayValleyFashionDocument, + GayValleyFishingDocument, + FishingComponent, + Camera_Vertical_Adjustment, + TShowDocument, + FightGroupDocument, + PetDocument, + XAuctionDocument, + AuctionDocument, + MailDocument, + XGameMallDocument, + PPTDocument, + MountComponent, + DesignationDocument, + DragonRewardDocument, + LevelSealDocument, + Bubble, + XTerritoryComponent, + QuickReplyDocument, + CaptainPVPDocument, + VoiceQADocument, + BattleCaptainPVPDocument, + XSkyArenaEntranceDocument, + XSkyArenaBattleDocument, + XBigMeleeEntranceDocument, + XBigMeleeBattleDocument, + XBattleFieldEntranceDocument, + XBattleFieldBattleDocument, + XRaceDocument, + XPersonalCareerDocument, + DragonNestDocument, + PushSubscribeDocument, + MulActivityDocument, + PVPActivityDocument, + TeamInviteDocument, + XBossBushDocument, + SpectateDocument, + SpectateSceneDocument, + SpectateLevelRewardDocument, + XApolloDocument, + GroupChatDocument, + XBigPrizeDocument, + XRadioDocument, + XLuaDocument, + XSevenLoginDocument, + FirstPassDocument, + XOperatingActivityDocument, + XThemeActivityDocument, + BiochemicalHellDogDocument, + MadDuckSiegeDocument, + RollDocument, + SpriteSystemDocument, + XCardCollectDocument, + XDragonCrusadeDocument, + XGuildMineBattleDocument, + XGuildMineMainDocument, + XGuildMineEntranceDocument, + XManipulation, + ReviveDocument, + IDIPDocument, + XSmeltDocument, + HomePlantDocument, + HomeMainDocument, + TaskDocument, + XCarnivalDocument, + TempActivityDocument, + HomeCookAndPartyDocument, + ActivityInviteDocument, + HomeFishingDocument, + CombatStatisticsDocument, + AuctionHouseDocument, + GuildResContentionBuffDocument, + XScreenShotShareDocument, + GuildDonateDocument, + GuildDailyTaskDocument, + BillboardDocument, + CharacterShowChatComponent, + MentorshipDocument, + EnchantDocument, + HeroBattleDocument, + HeroBattleSkillDocument, + XWeekNestDocument, + XCompeteDocument, + XPartnerDocument, + WeddingDocument, + DragonPartnerDocument, + NPCFavorDocument, + DramaDocument, + XJokerKingDocument, + PandoraDocument, + XForgeDocument, + FreeTeamVersusLeagueDocument, + TeamLeagueBattleDocument, + NestDocument, + ProfessionChangeDocument, + AnnouncementDocument, + HallFameDocument, + MilitaryRankDocument, + GuildCollectDocument, + ExchangeItemDocument, + RenameDocument, + FashionStorageDocument, + ArtifactDocument, + ArtifactComposeDocument, + ArtifactBagDocument, + ArtifactAtlasDocument, + RequestDocument, + AbyssPartyDocument, + CustomBattleDocument, + MobaEntranceDocument, + MobaBattleDocument, + TaJieHelpDocument, + ArtifactDeityStoveDocument, + ArtifactRecastDocument, + ArtifactFuseDocument, + ArtifactInscriptionDocument, + WeekEndNestDocument, + XGuildWeeklyBountyDocument, + EquipUpgradeDocument, + EquipFusionDocument, + PrerogativeDocument, + TargetRewardDocument, + XDragonGuildDocument, + XDragonGuildListDocument, + XDragonGuildTaskDocument, + XDragonGuildApproveDocument, + XTransformDocument, + XBackFlowDocument, + XYorozuyaDocument, + MysterioursDocument, + XCampDuelDocument, + ArtifactRefinedDocument, + XArtifactCreateDocument, + CrossGVGDocument, + XGuildGrowthDocument, + MAX + } + + public XComponentMgr() + { + int num = 15; + int num2 = 26; + XComponentMgr.ComponentCache componentCache = new XComponentMgr.ComponentCache(); + componentCache.SlotIndex = num; + this._componentCache.Add(XEquipComponent.uuID, componentCache); + componentCache = new XComponentMgr.ComponentCache(); + componentCache.SlotIndex = num2; + this._componentCache.Add(XRenderComponent.uuID, componentCache); + int num3 = XFastEnumIntEqualityComparer.ToInt(XComponentMgr.XComponentSet.MAX); + for (int i = 0; i < num3; i++) + { + bool flag = i != num && i != num2; + if (flag) + { + Dictionary slots = this._slots; + XCommon singleton = XSingleton.singleton; + XComponentMgr.XComponentSet xcomponentSet = (XComponentMgr.XComponentSet)i; + slots.Add(singleton.XHash(xcomponentSet.ToString()), i); + } + } + } + + public XComponent CreateComponent(XObject hoster, uint uuid) + { + XComponent xcomponent = null; + XComponentMgr.ComponentCache componentCache = null; + bool flag = this._componentCache.TryGetValue(uuid, out componentCache); + if (flag) + { + bool flag2 = componentCache.componentCache.Count > 0; + if (flag2) + { + xcomponent = componentCache.componentCache.Dequeue(); + } + else + { + xcomponent = this.ComponentFactory((XComponentMgr.XComponentSet)componentCache.SlotIndex); + } + } + else + { + int slot = 0; + bool flag3 = this._slots.TryGetValue(uuid, out slot); + if (flag3) + { + xcomponent = this.ComponentFactory((XComponentMgr.XComponentSet)slot); + } + } + bool flag4 = xcomponent != null; + if (flag4) + { + xcomponent.InitilizeBuffer(); + bool flag5 = hoster != null; + if (flag5) + { + hoster.AttachComponent(xcomponent); + } + XComponentMgr.ComponenCreatetCount++; + this.count++; + return xcomponent; + } + throw new XErrorUnregisteredComponentException("Component with uuid: " + uuid + " not registered."); + } + + public void RemoveComponent(XComponent c) + { + bool flag = !c.ManualUnitBuff; + if (flag) + { + c.UninitilizeBuffer(); + this.count--; + } + XComponentMgr.ComponentCache componentCache = null; + bool flag2 = this._componentCache.TryGetValue(c.ID, out componentCache); + if (flag2) + { + componentCache.componentCache.Enqueue(c); + } + } + + public void ClearAll() + { + foreach (KeyValuePair keyValuePair in this._componentCache) + { + keyValuePair.Value.componentCache.Clear(); + } + } + + public void PrintAllComponent() + { + } + + private XComponent ComponentFactory(XComponentMgr.XComponentSet slot) + { + switch (slot) + { + case XComponentMgr.XComponentSet.Player_Attributes: + return new XPlayerAttributes(); + case XComponentMgr.XComponentSet.Basic_Move: + return new XMoveComponent(); + case XComponentMgr.XComponentSet.BeHit_Presentation: + return new XBeHitComponent(); + case XComponentMgr.XComponentSet.Charge_Move: + return new XChargeComponent(); + case XComponentMgr.XComponentSet.Basic_Fall: + return new XFallComponent(); + case XComponentMgr.XComponentSet.Freezing_Presentation: + return new XFreezeComponent(); + case XComponentMgr.XComponentSet.Basic_Idle: + return new XIdleComponent(); + case XComponentMgr.XComponentSet.Basic_Jump: + return new XJumpComponent(); + case XComponentMgr.XComponentSet.Basic_Rotation: + return new XRotationComponent(); + case XComponentMgr.XComponentSet.Audio: + return new XAudioComponent(); + case XComponentMgr.XComponentSet.Character_Billboard: + return new XBillboardComponent(); + case XComponentMgr.XComponentSet.Moba_Billboard: + return new XMobaBillboardComponent(); + case XComponentMgr.XComponentSet.Character_Buff: + return new XBuffComponent(); + case XComponentMgr.XComponentSet.Death: + return new XDeathComponent(); + case XComponentMgr.XComponentSet.Character_Equipment: + return new XEquipComponent(); + case XComponentMgr.XComponentSet.Entity_Gravity: + return new XGravityComponent(); + case XComponentMgr.XComponentSet.CombatInfoInScene: + return new XHUDComponent(); + case XComponentMgr.XComponentSet.Presentation: + return new XPresentComponent(); + case XComponentMgr.XComponentSet.Skill: + return new XSkillComponent(); + case XComponentMgr.XComponentSet.StateMachine: + return new XStateMachine(); + case XComponentMgr.XComponentSet.Camera_Basic_Collison: + return new XCameraCollisonComponent(); + case XComponentMgr.XComponentSet.Camera_Basic_Shake: + return new XCameraShakeComponent(); + case XComponentMgr.XComponentSet.Action_Generator: + return new XActionGeneratorComponent(); + case XComponentMgr.XComponentSet.Renderer: + return new XRenderComponent(); + case XComponentMgr.XComponentSet.Net_Component: + return new XNetComponent(); + case XComponentMgr.XComponentSet.Role_Attributes: + return new XRoleAttributes(); + case XComponentMgr.XComponentSet.Camera_Common_Action: + return new XCameraActionComponent(); + case XComponentMgr.XComponentSet.ShowUp: + return new XShowUpComponent(); + case XComponentMgr.XComponentSet.Npc_Attributes: + return new XNpcAttributes(); + case XComponentMgr.XComponentSet.Camera_Solo_Effect: + return new XCameraSoloComponent(); + case XComponentMgr.XComponentSet.Camera_Wall_Component: + return new XCameraWallComponent(); + case XComponentMgr.XComponentSet.Camera_Motion: + return new XCameraMotionComponent(); + case XComponentMgr.XComponentSet.Navgation_Component: + return new XNavigationComponent(); + case XComponentMgr.XComponentSet.Camera_CloseUp_Component: + return new XCameraCloseUpComponent(); + case XComponentMgr.XComponentSet.Camera_IntellectiveFollow_Component: + return new XCameraIntellectiveFollow(); + case XComponentMgr.XComponentSet.Fly: + return new XFlyComponent(); + case XComponentMgr.XComponentSet.Shadow: + return new XShadowComponent(); + case XComponentMgr.XComponentSet.Others_Attributes: + return new XOthersAttributes(); + case XComponentMgr.XComponentSet.Endure: + return new XEndureComponent(); + case XComponentMgr.XComponentSet.FindExpDocument: + return new XFindExpDocument(); + case XComponentMgr.XComponentSet.EquipCreateDocument: + return new XEquipCreateDocument(); + case XComponentMgr.XComponentSet.ArenaDocument: + return new XArenaDocument(); + case XComponentMgr.XComponentSet.AchievementDocument: + return new XAchievementDocument(); + case XComponentMgr.XComponentSet.JadeDocument: + return new XJadeDocument(); + case XComponentMgr.XComponentSet.CharacterDocument: + return new XCharacterDocument(); + case XComponentMgr.XComponentSet.ActivityDocument: + return new XActivityDocument(); + case XComponentMgr.XComponentSet.MystShopDocument: + return new XMystShopDocument(); + case XComponentMgr.XComponentSet.LoginRewardDocument: + return new XLoginRewardDocument(); + case XComponentMgr.XComponentSet.MainInterfaceDocument: + return new XMainInterfaceDocument(); + case XComponentMgr.XComponentSet.DailyActivitiesDocument: + return new XDailyActivitiesDocument(); + case XComponentMgr.XComponentSet.FashionDocument: + return new XFashionDocument(); + case XComponentMgr.XComponentSet.SuperRiskDocument: + return new XSuperRiskDocument(); + case XComponentMgr.XComponentSet.EmblemDocument: + return new XEmblemDocument(); + case XComponentMgr.XComponentSet.RankDocument: + return new XRankDocument(); + case XComponentMgr.XComponentSet.FlowerSendDocument: + return new XFlowerSendDocument(); + case XComponentMgr.XComponentSet.FlowerRankDocument: + return new XFlowerRankDocument(); + case XComponentMgr.XComponentSet.FlowerReplyDocument: + return new XFlowerReplyDocument(); + case XComponentMgr.XComponentSet.WeekendPartyDocument: + return new XWeekendPartyDocument(); + case XComponentMgr.XComponentSet.PlatformAbilityDocument: + return new XPlatformAbilityDocument(); + case XComponentMgr.XComponentSet.PKInvitationDocument: + return new XPKInvitationDocument(); + case XComponentMgr.XComponentSet.WelfareDocument: + return new XWelfareDocument(); + case XComponentMgr.XComponentSet.CharacterCommonMenuDocument: + return new XCharacterCommonMenuDocument(); + case XComponentMgr.XComponentSet.EnhanceDocument: + return new XEnhanceDocument(); + case XComponentMgr.XComponentSet.OptionsDocument: + return new XOptionsDocument(); + case XComponentMgr.XComponentSet.SystemRewardDocument: + return new XSystemRewardDocument(); + case XComponentMgr.XComponentSet.XBagDocument: + return new XBagDocument(); + case XComponentMgr.XComponentSet.CharacterEquipDocument: + return new XCharacterEquipDocument(); + case XComponentMgr.XComponentSet.XEquipDocument: + return new XEquipDocument(); + case XComponentMgr.XComponentSet.NormalShopDocument: + return new XNormalShopDocument(); + case XComponentMgr.XComponentSet.SweepDocument: + return new XSweepDocument(); + case XComponentMgr.XComponentSet.TeamDocument: + return new XTeamDocument(); + case XComponentMgr.XComponentSet.ShowGetItemDocument: + return new XShowGetItemDocument(); + case XComponentMgr.XComponentSet.AdditionRemindDocument: + return new AdditionRemindDocument(); + case XComponentMgr.XComponentSet.ExpeditionDocument: + return new XExpeditionDocument(); + case XComponentMgr.XComponentSet.WorldBossDocument: + return new XWorldBossDocument(); + case XComponentMgr.XComponentSet.DanceDocument: + return new XDanceDocument(); + case XComponentMgr.XComponentSet.XRechargeDocument: + return new XRechargeDocument(); + case XComponentMgr.XComponentSet.XPurchaseDocument: + return new XPurchaseDocument(); + case XComponentMgr.XComponentSet.XFPStrengthenDocument: + return new XFPStrengthenDocument(); + case XComponentMgr.XComponentSet.LevelUpStatusDocument: + return new XLevelUpStatusDocument(); + case XComponentMgr.XComponentSet.ShowGetAchivementTipDocument: + return new XShowGetAchivementTipDocument(); + case XComponentMgr.XComponentSet.SystemTipDocument: + return new XSystemTipDocument(); + case XComponentMgr.XComponentSet.SkillTreeDocument: + return new XSkillTreeDocument(); + case XComponentMgr.XComponentSet.XOtherPlayerInfoDocument: + return new XOtherPlayerInfoDocument(); + case XComponentMgr.XComponentSet.RecycleItemDocument: + return new XRecycleItemDocument(); + case XComponentMgr.XComponentSet.XChatDocument: + return new XChatDocument(); + case XComponentMgr.XComponentSet.SelectCharacterDocument: + return new XSelectCharacterDocument(); + case XComponentMgr.XComponentSet.GuildDocument: + return new XGuildDocument(); + case XComponentMgr.XComponentSet.GuildListDocument: + return new XGuildListDocument(); + case XComponentMgr.XComponentSet.XFriendsDocument: + return new XFriendsDocument(); + case XComponentMgr.XComponentSet.XLevelDocument: + return new XLevelDocument(); + case XComponentMgr.XComponentSet.XGuildArenaBattleDocument: + return new XGuildArenaBattleDocument(); + case XComponentMgr.XComponentSet.GuildHallDocument: + return new XGuildHallDocument(); + case XComponentMgr.XComponentSet.GuildApproveDocument: + return new XGuildApproveDocument(); + case XComponentMgr.XComponentSet.GuildMemberDocument: + return new XGuildMemberDocument(); + case XComponentMgr.XComponentSet.GuildSignInDocument: + return new XGuildSignInDocument(); + case XComponentMgr.XComponentSet.GuildViewDocument: + return new XGuildViewDocument(); + case XComponentMgr.XComponentSet.GuildRelaxGameDocument: + return new XGuildRelaxGameDocument(); + case XComponentMgr.XComponentSet.GuildJokerDocument: + return new XGuildJokerDocument(); + case XComponentMgr.XComponentSet.GuildSkillDocument: + return new XGuildSkillDocument(); + case XComponentMgr.XComponentSet.GuildRedPacketDocument: + return new XGuildRedPacketDocument(); + case XComponentMgr.XComponentSet.XGuildQualifierDocument: + return new XGuildQualifierDocument(); + case XComponentMgr.XComponentSet.XGuildJokerMatchDocument: + return new XGuildJockerMatchDocument(); + case XComponentMgr.XComponentSet.XGuildArenaDocument: + return new XGuildArenaDocument(); + case XComponentMgr.XComponentSet.XGuildRankDocument: + return new XGuildRankDocument(); + case XComponentMgr.XComponentSet.XGuildSalaryDocument: + return new XGuildSalaryDocument(); + case XComponentMgr.XComponentSet.XGuildInheritDocument: + return new XGuildInheritDocument(); + case XComponentMgr.XComponentSet.XGuildTerritoryDocument: + return new XGuildTerritoryDocument(); + case XComponentMgr.XComponentSet.LevelRewardDocument: + return new XLevelRewardDocument(); + case XComponentMgr.XComponentSet.CharacterItemDocument: + return new XCharacterItemDocument(); + case XComponentMgr.XComponentSet.GuildDragonDocument: + return new XGuildDragonDocument(); + case XComponentMgr.XComponentSet.NextDayRewardDocument: + return new XNextDayRewardDocument(); + case XComponentMgr.XComponentSet.InvitationDocument: + return new XInvitationDocument(); + case XComponentMgr.XComponentSet.OnlineRewardDocument: + return new XOnlineRewardDocument(); + case XComponentMgr.XComponentSet.FootFx: + return new XFootFxComponent(); + case XComponentMgr.XComponentSet.XLocateTarget: + return new XLocateTargetComponent(); + case XComponentMgr.XComponentSet.QualifyingDocument: + return new XQualifyingDocument(); + case XComponentMgr.XComponentSet.BattleSkillDocument: + return new XBattleSkillDocument(); + case XComponentMgr.XComponentSet.GuildSmallMonsterDocument: + return new XGuildSmallMonsterDocument(); + case XComponentMgr.XComponentSet.XTitleDocument: + return new XTitleDocument(); + case XComponentMgr.XComponentSet.XQuickTimeEventComponent: + return new XQuickTimeEventComponent(); + case XComponentMgr.XComponentSet.SceneDamageRankDocument: + return new XSceneDamageRankDocument(); + case XComponentMgr.XComponentSet.XSuperArmorComponent: + return new XSuperArmorComponent(); + case XComponentMgr.XComponentSet.WoozyComponent: + return new XWoozyComponent(); + case XComponentMgr.XComponentSet.BattleDocument: + return new XBattleDocument(); + case XComponentMgr.XComponentSet.XAIComponent: + return new XAIComponent(); + case XComponentMgr.XComponentSet.XInheritComponent: + return new XInheritComponent(); + case XComponentMgr.XComponentSet.FishingComponent: + return new XFishingComponent(); + case XComponentMgr.XComponentSet.Camera_Vertical_Adjustment: + return new XCameraVAdjustComponent(); + case XComponentMgr.XComponentSet.FightGroupDocument: + return new XFightGroupDocument(); + case XComponentMgr.XComponentSet.PetDocument: + return new XPetDocument(); + case XComponentMgr.XComponentSet.AuctionDocument: + return new AuctionDocument(); + case XComponentMgr.XComponentSet.MailDocument: + return new XMailDocument(); + case XComponentMgr.XComponentSet.XGameMallDocument: + return new XGameMallDocument(); + case XComponentMgr.XComponentSet.PPTDocument: + return new XPPTDocument(); + case XComponentMgr.XComponentSet.MountComponent: + return new XMountComponent(); + case XComponentMgr.XComponentSet.DesignationDocument: + return new XDesignationDocument(); + case XComponentMgr.XComponentSet.DragonRewardDocument: + return new XDragonRewardDocument(); + case XComponentMgr.XComponentSet.LevelSealDocument: + return new XLevelSealDocument(); + case XComponentMgr.XComponentSet.Bubble: + return new XBubbleComponent(); + case XComponentMgr.XComponentSet.XTerritoryComponent: + return new XTerritoryComponent(); + case XComponentMgr.XComponentSet.QuickReplyDocument: + return new XQuickReplyDocument(); + case XComponentMgr.XComponentSet.CaptainPVPDocument: + return new XCaptainPVPDocument(); + case XComponentMgr.XComponentSet.VoiceQADocument: + return new XVoiceQADocument(); + case XComponentMgr.XComponentSet.BattleCaptainPVPDocument: + return new XBattleCaptainPVPDocument(); + case XComponentMgr.XComponentSet.XSkyArenaEntranceDocument: + return new XSkyArenaEntranceDocument(); + case XComponentMgr.XComponentSet.XSkyArenaBattleDocument: + return new XSkyArenaBattleDocument(); + case XComponentMgr.XComponentSet.XBigMeleeEntranceDocument: + return new XBigMeleeEntranceDocument(); + case XComponentMgr.XComponentSet.XBigMeleeBattleDocument: + return new XBigMeleeBattleDocument(); + case XComponentMgr.XComponentSet.XBattleFieldEntranceDocument: + return new XBattleFieldEntranceDocument(); + case XComponentMgr.XComponentSet.XBattleFieldBattleDocument: + return new XBattleFieldBattleDocument(); + case XComponentMgr.XComponentSet.XRaceDocument: + return new XRaceDocument(); + case XComponentMgr.XComponentSet.XPersonalCareerDocument: + return new XPersonalCareerDocument(); + case XComponentMgr.XComponentSet.DragonNestDocument: + return new XDragonNestDocument(); + case XComponentMgr.XComponentSet.PushSubscribeDocument: + return new XPushSubscribeDocument(); + case XComponentMgr.XComponentSet.PVPActivityDocument: + return new XPVPActivityDocument(); + case XComponentMgr.XComponentSet.TeamInviteDocument: + return new XTeamInviteDocument(); + case XComponentMgr.XComponentSet.XBossBushDocument: + return new XBossBushDocument(); + case XComponentMgr.XComponentSet.SpectateDocument: + return new XSpectateDocument(); + case XComponentMgr.XComponentSet.SpectateSceneDocument: + return new XSpectateSceneDocument(); + case XComponentMgr.XComponentSet.SpectateLevelRewardDocument: + return new XSpectateLevelRewardDocument(); + case XComponentMgr.XComponentSet.XApolloDocument: + return new XApolloDocument(); + case XComponentMgr.XComponentSet.GroupChatDocument: + return new GroupChatDocument(); + case XComponentMgr.XComponentSet.XBigPrizeDocument: + return new XAncientDocument(); + case XComponentMgr.XComponentSet.XRadioDocument: + return new XRadioDocument(); + case XComponentMgr.XComponentSet.XLuaDocument: + return new XLuaDocument(); + case XComponentMgr.XComponentSet.XSevenLoginDocument: + return new XSevenLoginDocument(); + case XComponentMgr.XComponentSet.FirstPassDocument: + return new FirstPassDocument(); + case XComponentMgr.XComponentSet.XOperatingActivityDocument: + return new XOperatingActivityDocument(); + case XComponentMgr.XComponentSet.XThemeActivityDocument: + return new XThemeActivityDocument(); + case XComponentMgr.XComponentSet.BiochemicalHellDogDocument: + return new BiochemicalHellDogDocument(); + case XComponentMgr.XComponentSet.MadDuckSiegeDocument: + return new MadDuckSiegeDocument(); + case XComponentMgr.XComponentSet.RollDocument: + return new XRollDocument(); + case XComponentMgr.XComponentSet.SpriteSystemDocument: + return new XSpriteSystemDocument(); + case XComponentMgr.XComponentSet.XCardCollectDocument: + return new XCardCollectDocument(); + case XComponentMgr.XComponentSet.XDragonCrusadeDocument: + return new XDragonCrusadeDocument(); + case XComponentMgr.XComponentSet.XGuildMineBattleDocument: + return new XGuildMineBattleDocument(); + case XComponentMgr.XComponentSet.XGuildMineMainDocument: + return new XGuildMineMainDocument(); + case XComponentMgr.XComponentSet.XGuildMineEntranceDocument: + return new XGuildMineEntranceDocument(); + case XComponentMgr.XComponentSet.XManipulation: + return new XManipulationComponent(); + case XComponentMgr.XComponentSet.ReviveDocument: + return new XReviveDocument(); + case XComponentMgr.XComponentSet.IDIPDocument: + return new XIDIPDocument(); + case XComponentMgr.XComponentSet.XSmeltDocument: + return new XSmeltDocument(); + case XComponentMgr.XComponentSet.HomePlantDocument: + return new HomePlantDocument(); + case XComponentMgr.XComponentSet.HomeMainDocument: + return new HomeMainDocument(); + case XComponentMgr.XComponentSet.TaskDocument: + return new XTaskDocument(); + case XComponentMgr.XComponentSet.XCarnivalDocument: + return new XCarnivalDocument(); + case XComponentMgr.XComponentSet.TempActivityDocument: + return new XTempActivityDocument(); + case XComponentMgr.XComponentSet.HomeCookAndPartyDocument: + return new XHomeCookAndPartyDocument(); + case XComponentMgr.XComponentSet.ActivityInviteDocument: + return new XActivityInviteDocument(); + case XComponentMgr.XComponentSet.HomeFishingDocument: + return new XHomeFishingDocument(); + case XComponentMgr.XComponentSet.CombatStatisticsDocument: + return new XCombatStatisticsDocument(); + case XComponentMgr.XComponentSet.AuctionHouseDocument: + return new AuctionHouseDocument(); + case XComponentMgr.XComponentSet.GuildResContentionBuffDocument: + return new XGuildResContentionBuffDocument(); + case XComponentMgr.XComponentSet.XScreenShotShareDocument: + return new XScreenShotShareDocument(); + case XComponentMgr.XComponentSet.GuildDonateDocument: + return new XGuildDonateDocument(); + case XComponentMgr.XComponentSet.GuildDailyTaskDocument: + return new XGuildDailyTaskDocument(); + case XComponentMgr.XComponentSet.BillboardDocument: + return new XBillBoardDocument(); + case XComponentMgr.XComponentSet.CharacterShowChatComponent: + return new XCharacterShowChatComponent(); + case XComponentMgr.XComponentSet.MentorshipDocument: + return new XMentorshipDocument(); + case XComponentMgr.XComponentSet.EnchantDocument: + return new XEnchantDocument(); + case XComponentMgr.XComponentSet.HeroBattleDocument: + return new XHeroBattleDocument(); + case XComponentMgr.XComponentSet.HeroBattleSkillDocument: + return new XHeroBattleSkillDocument(); + case XComponentMgr.XComponentSet.XWeekNestDocument: + return new XWeekNestDocument(); + case XComponentMgr.XComponentSet.XCompeteDocument: + return new XCompeteDocument(); + case XComponentMgr.XComponentSet.XPartnerDocument: + return new XPartnerDocument(); + case XComponentMgr.XComponentSet.WeddingDocument: + return new XWeddingDocument(); + case XComponentMgr.XComponentSet.DragonPartnerDocument: + return new XDragonPartnerDocument(); + case XComponentMgr.XComponentSet.NPCFavorDocument: + return new XNPCFavorDocument(); + case XComponentMgr.XComponentSet.DramaDocument: + return new XDramaDocument(); + case XComponentMgr.XComponentSet.XJokerKingDocument: + return new XJokerKingDocument(); + case XComponentMgr.XComponentSet.PandoraDocument: + return new PandoraDocument(); + case XComponentMgr.XComponentSet.XForgeDocument: + return new XForgeDocument(); + case XComponentMgr.XComponentSet.FreeTeamVersusLeagueDocument: + return new XFreeTeamVersusLeagueDocument(); + case XComponentMgr.XComponentSet.TeamLeagueBattleDocument: + return new XTeamLeagueBattleDocument(); + case XComponentMgr.XComponentSet.NestDocument: + return new XNestDocument(); + case XComponentMgr.XComponentSet.ProfessionChangeDocument: + return new XProfessionChangeDocument(); + case XComponentMgr.XComponentSet.AnnouncementDocument: + return new XAnnouncementDocument(); + case XComponentMgr.XComponentSet.HallFameDocument: + return new XHallFameDocument(); + case XComponentMgr.XComponentSet.MilitaryRankDocument: + return new XMilitaryRankDocument(); + case XComponentMgr.XComponentSet.GuildCollectDocument: + return new XGuildCollectDocument(); + case XComponentMgr.XComponentSet.ExchangeItemDocument: + return new XExchangeItemDocument(); + case XComponentMgr.XComponentSet.RenameDocument: + return new XRenameDocument(); + case XComponentMgr.XComponentSet.FashionStorageDocument: + return new XFashionStorageDocument(); + case XComponentMgr.XComponentSet.ArtifactDocument: + return new ArtifactDocument(); + case XComponentMgr.XComponentSet.ArtifactComposeDocument: + return new ArtifactComposeDocument(); + case XComponentMgr.XComponentSet.ArtifactBagDocument: + return new ArtifactBagDocument(); + case XComponentMgr.XComponentSet.ArtifactAtlasDocument: + return new ArtifactAtlasDocument(); + case XComponentMgr.XComponentSet.RequestDocument: + return new XRequestDocument(); + case XComponentMgr.XComponentSet.AbyssPartyDocument: + return new XAbyssPartyDocument(); + case XComponentMgr.XComponentSet.CustomBattleDocument: + return new XCustomBattleDocument(); + case XComponentMgr.XComponentSet.MobaEntranceDocument: + return new XMobaEntranceDocument(); + case XComponentMgr.XComponentSet.MobaBattleDocument: + return new XMobaBattleDocument(); + case XComponentMgr.XComponentSet.TaJieHelpDocument: + return new TaJieHelpDocument(); + case XComponentMgr.XComponentSet.ArtifactDeityStoveDocument: + return new ArtifactDeityStoveDocument(); + case XComponentMgr.XComponentSet.ArtifactRecastDocument: + return new ArtifactRecastDocument(); + case XComponentMgr.XComponentSet.ArtifactFuseDocument: + return new ArtifactFuseDocument(); + case XComponentMgr.XComponentSet.ArtifactInscriptionDocument: + return new ArtifactInscriptionDocument(); + case XComponentMgr.XComponentSet.WeekEndNestDocument: + return new WeekEndNestDocument(); + case XComponentMgr.XComponentSet.XGuildWeeklyBountyDocument: + return new XGuildWeeklyBountyDocument(); + case XComponentMgr.XComponentSet.EquipUpgradeDocument: + return new EquipUpgradeDocument(); + case XComponentMgr.XComponentSet.EquipFusionDocument: + return new EquipFusionDocument(); + case XComponentMgr.XComponentSet.PrerogativeDocument: + return new XPrerogativeDocument(); + case XComponentMgr.XComponentSet.TargetRewardDocument: + return new XTargetRewardDocument(); + case XComponentMgr.XComponentSet.XDragonGuildDocument: + return new XDragonGuildDocument(); + case XComponentMgr.XComponentSet.XDragonGuildListDocument: + return new XDragonGuildListDocument(); + case XComponentMgr.XComponentSet.XDragonGuildTaskDocument: + return new XDragonGuildTaskDocument(); + case XComponentMgr.XComponentSet.XDragonGuildApproveDocument: + return new XDragonGuildApproveDocument(); + case XComponentMgr.XComponentSet.XTransformDocument: + return new XTransformDocument(); + case XComponentMgr.XComponentSet.XBackFlowDocument: + return new XBackFlowDocument(); + case XComponentMgr.XComponentSet.XYorozuyaDocument: + return new XYorozuyaDocument(); + case XComponentMgr.XComponentSet.MysterioursDocument: + return new XRiftDocument(); + case XComponentMgr.XComponentSet.XCampDuelDocument: + return new XCampDuelDocument(); + case XComponentMgr.XComponentSet.ArtifactRefinedDocument: + return new ArtifactRefinedDocument(); + case XComponentMgr.XComponentSet.XArtifactCreateDocument: + return new XArtifactCreateDocument(); + case XComponentMgr.XComponentSet.CrossGVGDocument: + return new XCrossGVGDocument(); + case XComponentMgr.XComponentSet.XGuildGrowthDocument: + return new XGuildGrowthDocument(); + } + throw new XErrorUnregisteredComponentException("Component at slot " + slot + " not registered."); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XComponentMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XComponentMgr.cs.meta new file mode 100644 index 00000000..165f9b67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XComponentMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b55deb8ce1158ea49b6fe345381ae22a +timeCreated: 1611404395 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XConcreteStage.cs b/Client/Assets/Scripts/XMainClient/XConcreteStage.cs new file mode 100644 index 00000000..2356b104 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XConcreteStage.cs @@ -0,0 +1,80 @@ +using System; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XConcreteStage : XStage + { + public XConcreteStage(EXStage eStage) : base(eStage) + { + } + + public override void OnEnterStage(EXStage eOld) + { + base.OnEnterStage(eOld); + } + + public override void OnLeaveStage(EXStage eNew) + { + base.OnLeaveStage(eNew); + bool flag = eNew != EXStage.Null && !XStage.IsConcreteStage(eNew); + if (flag) + { + XSingleton.singleton.OnLeaveStage(); + XSingleton.singleton.Doc.Refresh(); + } + } + + private void InitTerrain(uint sceneid) + { + XSingleton.singleton.CurrentTerrain = Terrain.activeTerrain; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneid); + bool flag = !string.IsNullOrEmpty(sceneData.BlockFilePath); + if (flag) + { + bool flag2 = !XCurrentGrid.grid.LoadFile(sceneData.BlockFilePath); + if (flag2) + { + XSingleton.singleton.AddErrorLog("Load Grid file: Assets\\Resources\\", sceneData.BlockFilePath, " failed!", null, null, null); + } + } + else + { + XSingleton.singleton.AddErrorLog("Null path of Grid file for sceneid ", sceneid.ToString(), null, null, null, null); + } + } + + protected virtual void InstallCamera() + { + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraActionComponent.uuID); + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraCollisonComponent.uuID); + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraShakeComponent.uuID); + XSingleton.singleton.GameCamera.Target = XSingleton.singleton.Player; + } + + public override void OnEnterScene(uint sceneid, bool transfer) + { + base.OnEnterScene(sceneid, transfer); + XSingleton.singleton.ResetPlayerData(); + XSingleton.singleton.OnEnterScene(sceneid); + this.InitTerrain(sceneid); + this.InstallCamera(); + XSingleton.singleton.OnEnterScene(); + XSingleton.singleton.LoadConcreteUI(this._eStage); + XSingleton.singleton.OnEnterScene(sceneid); + XSingleton.singleton.PlaceDynamicScene(sceneid); + XSingleton.singleton.InitAIData(); + } + + public override void OnLeaveScene(bool transfer) + { + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.CurrentTerrain = null; + XSingleton.singleton.Doc.OnLeaveScene(); + XSingleton.singleton.Clean(transfer); + base.OnLeaveScene(transfer); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XConcreteStage.cs.meta b/Client/Assets/Scripts/XMainClient/XConcreteStage.cs.meta new file mode 100644 index 00000000..26ac0ec3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XConcreteStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cfe49eb54c309954a83246fd15a7c641 +timeCreated: 1611404583 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XConnection.cs b/Client/Assets/Scripts/XMainClient/XConnection.cs new file mode 100644 index 00000000..43a5a30b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XConnection.cs @@ -0,0 +1,285 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XConnection + { + public bool OnConnectDelay + { + get + { + return this._is_connect_delay; + } + } + + public bool OnRpcDelay + { + get + { + return Rpc.OnRpcDelay; + } + } + + public bool OnReconnect + { + get + { + return this._is_on_reconnection; + } + } + + public bool ReconnectionEnabled + { + get + { + return this._reconnection_enabled; + } + set + { + this._reconnection_enabled = value; + } + } + + private float ConnectElapsed + { + get + { + return (float)DateTime.Now.Subtract(this._last_connect_at).TotalSeconds; + } + } + + private float ReconnectElapsed + { + get + { + return (float)DateTime.Now.Subtract(this._reconnect_at).TotalSeconds; + } + } + + private readonly uint _buffer_size = 262140u; + + private readonly float _connect_time_out = 5f; + + private readonly float _connect_delay_notice_threshold = 0.5f; + + private DateTime _last_connect_at = DateTime.Now; + + private DateTime _reconnect_at = DateTime.Now; + + private CNetwork _network = null; + + private bool _reconnection_enabled = true; + + private bool _is_on_reconnection = false; + + private bool _is_manually_reconnection = false; + + private bool _is_manually_reconnect_ui_bshow = false; + + private bool _is_connect_delay = false; + + private string _reconnect_ip = null; + + private int _reconnect_port = 0; + + private int _try_reconnect_count = 0; + + public CNetwork Init(INetObserver observer) + { + this._network = new CNetwork(); + CNetSender oSender = new CNetSender(this._network); + CNetProcessor oProc = new CNetProcessor(this._network, observer); + bool flag = !this._network.Init(oProc, oSender, new CPacketBreaker(), this._buffer_size, this._buffer_size); + if (flag) + { + XSingleton.singleton.AddErrorLog("network initialization failed!", null, null, null, null, null); + this._network = null; + } + return this._network; + } + + public bool Connet(string IP, int Port) + { + this.Close(NetErrCode.Net_NoError); + this._last_connect_at = DateTime.Now; + bool flag = this._network.Connect(IP, Port); + bool flag2 = !flag; + if (flag2) + { + XSingleton.singleton.AddLog("connect to ", IP, "failed!", null, null, null, XDebugColor.XDebug_None); + } + return flag; + } + + public void Reconnect(string IP, int Port) + { + XSingleton.singleton.AddLog("Begin Reconnection.", null, null, null, null, null, XDebugColor.XDebug_None); + this._reconnect_ip = IP; + this._reconnect_port = Port; + bool flag = !this._is_on_reconnection; + if (flag) + { + this._is_on_reconnection = true; + this._is_manually_reconnection = false; + this._is_manually_reconnect_ui_bshow = false; + this._reconnect_at = DateTime.Now; + } + } + + public bool Close(NetErrCode err) + { + bool flag = !this._network.IsDisconnect(); + bool result; + if (flag) + { + this._network.Close(err); + result = true; + } + else + { + result = false; + } + return result; + } + + public void OnReconnected() + { + this._is_on_reconnection = false; + XSingleton.singleton.AddLog("Reconnected.", null, null, null, null, null, XDebugColor.XDebug_None); + Rpc.delayRpcName = ""; + } + + public void OnReconnectFailed() + { + bool is_on_reconnection = this._is_on_reconnection; + if (is_on_reconnection) + { + this._is_on_reconnection = false; + bool flag = this._network.GetSocketState() > SocketState.State_Closed; + if (flag) + { + this.Close(NetErrCode.Net_ReconnectFailed); + } + XSingleton.singleton.AddLog("Reconnect Failed.", null, null, null, null, null, XDebugColor.XDebug_None); + bool sceneReady = XSingleton.singleton.SceneReady; + if (sceneReady) + { + XSingleton.singleton.OnFatalErrorClosed(ErrorCode.ERR_RECONNECT_FAIL); + } + else + { + XSingleton.singleton.Error = ErrorCode.ERR_RECONNECT_FAIL; + } + } + } + + public void StopReconnection() + { + bool is_on_reconnection = this._is_on_reconnection; + if (is_on_reconnection) + { + this._is_on_reconnection = false; + } + } + + public SocketState GetSocketState() + { + return this._network.GetSocketState(); + } + + public void Update() + { + this._is_connect_delay = false; + switch (this._network.GetSocketState()) + { + case SocketState.State_Closed: + { + bool is_on_reconnection = this._is_on_reconnection; + if (is_on_reconnection) + { + bool flag = !this._is_manually_reconnection; + if (flag) + { + this._try_reconnect_count = XSingleton.singleton.GetInt("ReconnectTime"); + bool flag2 = this.Connet(this._reconnect_ip, this._reconnect_port); + if (flag2) + { + bool flag3 = !string.IsNullOrEmpty(Rpc.delayRpcName); + if (flag3) + { + XSingleton.singleton.AddWarningLog("rpc delay: ", Rpc.delayRpcName, null, null, null, null); + } + XSingleton.singleton.AddLog("reconnecting...", null, null, null, null, null, XDebugColor.XDebug_None); + } + this._is_manually_reconnection = true; + } + else + { + bool flag4 = !this._is_manually_reconnect_ui_bshow; + if (flag4) + { + bool flag5 = this._try_reconnect_count > 0; + if (flag5) + { + this._is_manually_reconnect_ui_bshow = true; + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("RECONNECT_TIP"), XStringDefineProxy.GetString("RECONNECT"), new ButtonClickEventHandler(this.OnReconnetButtonClicked), 300); + this._try_reconnect_count--; + } + else + { + this.OnReconnectFailed(); + } + } + } + } + break; + } + case SocketState.State_Connecting: + { + bool flag6 = this.ConnectElapsed > this._connect_time_out; + if (flag6) + { + this.Close(NetErrCode.Net_ConnectError); + } + else + { + bool flag7 = this.ConnectElapsed > this._connect_delay_notice_threshold; + if (flag7) + { + this._is_connect_delay = true; + XSingleton.singleton.Cancel(); + } + } + break; + } + case SocketState.State_Connected: + Rpc.CheckDelay(); + break; + } + bool onRpcTimeOutClosed = Rpc.OnRpcTimeOutClosed; + if (onRpcTimeOutClosed) + { + XSingleton.singleton.AddWarningLog("Rpc ", Rpc.delayRpcName + " delay closing...", null, null, null, null); + this.Close(NetErrCode.Net_Rpc_Delay); + } + } + + private bool OnReconnetButtonClicked(IXUIButton button) + { + DlgBase.singleton.SetVisible(false, true); + bool flag = this.Connet(this._reconnect_ip, this._reconnect_port); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("START_RECONNECT"), "fece00"); + XSingleton.singleton.AddLog("reconnecting...", null, null, null, null, null, XDebugColor.XDebug_None); + } + this._is_manually_reconnect_ui_bshow = false; + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XConnection.cs.meta b/Client/Assets/Scripts/XMainClient/XConnection.cs.meta new file mode 100644 index 00000000..bd2b9ca4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XConnection.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd93a2f958a0d8b4da3185ac8740fc9b +timeCreated: 1611404454 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCoolDownAllSkillsArgs.cs b/Client/Assets/Scripts/XMainClient/XCoolDownAllSkillsArgs.cs new file mode 100644 index 00000000..e347da7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCoolDownAllSkillsArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XCoolDownAllSkillsArgs : XEventArgs + { + public XCoolDownAllSkillsArgs() + { + this._eDefine = XEventDefine.XEvent_CoolDownAllSkills; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCoolDownAllSkillsArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XCoolDownAllSkillsArgs.cs.meta new file mode 100644 index 00000000..27fc7f5c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCoolDownAllSkillsArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 669320901ad3c5a4e8924e3b76ba7b4a +timeCreated: 1611403854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCrossGVGDocument.cs b/Client/Assets/Scripts/XMainClient/XCrossGVGDocument.cs new file mode 100644 index 00000000..ae8b76dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCrossGVGDocument.cs @@ -0,0 +1,382 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCrossGVGDocument : XDocComponent + { + public override uint ID + { + get + { + return XCrossGVGDocument.uuID; + } + } + + public bool InterfaceState + { + get + { + return this._interfaceIconState; + } + } + + public bool HasDuelCombat + { + get + { + return this._hasDuelCombat; + } + } + + public uint RegisterationCount + { + get + { + return this.m_registrationCount; + } + } + + public CrossGvgTimeState TimeStep + { + get + { + return this._timeState; + } + } + + public CrossGvgRoomState RoomState + { + get + { + return this._SelfRoomState; + } + } + + public bool VisibleEnterBattle + { + get + { + return this._visibleEnterBattle; + } + } + + public bool HasAvailableJoin + { + get + { + return this._hasAvailableJoin; + } + } + + public XBetterList GVGRanks + { + get + { + return this._guildList.BufferValues; + } + } + + public List GVGDuels + { + get + { + return this._duelRecords; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CrossGVGDocument"); + + private CrossGvgTimeState _timeState = CrossGvgTimeState.CGVG_NotOpen; + + public GuildArenaTab SelectTabIndex = GuildArenaTab.Hall; + + private List _duelRecords = new List(); + + private List _supportGuildIDs; + + private CrossGvgRoomState _SelfRoomState = CrossGvgRoomState.CGRS_Idle; + + private bool _visibleEnterBattle = false; + + private bool _hasAvailableJoin = false; + + private XBetterDictionary _guildList = new XBetterDictionary(0); + + private Dictionary _combatGroups = new Dictionary(); + + private uint m_registrationCount; + + private bool _hasDuelCombat = false; + + private bool _interfaceIconState = false; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void SetMainInterfaceBtnState(bool active) + { + this._interfaceIconState = active; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_CrossGVG, true); + } + } + + public string ToSupportString() + { + return string.Format("{0}/{1}", (this._supportGuildIDs == null) ? 0 : this._supportGuildIDs.Count, XSingleton.singleton.GetInt("CrossGvgSupport")); + } + + public bool IsSupportExist(ulong guildID) + { + return this._supportGuildIDs != null && this._supportGuildIDs.Contains(guildID); + } + + public bool IsSupportFull() + { + int @int = XSingleton.singleton.GetInt("CrossGvgSupport"); + return this._supportGuildIDs == null || this._supportGuildIDs.Count >= @int; + } + + public void SynCrossGVGTimeState(CrossGvgTimeState state) + { + XSingleton.singleton.AddGreenLog("Cross State = " + state.ToString(), null, null, null, null, null); + this._timeState = state; + GuildArenaTab guildArenaTab = this.SelectTabIndex; + switch (this._timeState) + { + case CrossGvgTimeState.CGVG_NotOpen: + case CrossGvgTimeState.CGVG_Select: + guildArenaTab = GuildArenaTab.Hall; + break; + case CrossGvgTimeState.CGVG_PointRace: + guildArenaTab = GuildArenaTab.Duel; + break; + case CrossGvgTimeState.CGVG_Guess: + case CrossGvgTimeState.CGVG_Knockout: + case CrossGvgTimeState.CGVG_SeasonEnd: + guildArenaTab = GuildArenaTab.Combat; + break; + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = guildArenaTab == this.SelectTabIndex; + if (flag2) + { + DlgBase.singleton.RefreshData(); + } + else + { + DlgBase.singleton.SelectTabIndex(guildArenaTab); + } + } + } + + public XGuildBasicData GetGVGGuildInfo(ulong guildID) + { + return (guildID > 0UL && this._guildList.ContainsKey(guildID)) ? this._guildList[guildID] : null; + } + + public void SendCrossGVGOper(CrossGvgOperType type, ulong uid = 0UL) + { + RpcC2M_CrossGvgOper rpcC2M_CrossGvgOper = new RpcC2M_CrossGvgOper(); + rpcC2M_CrossGvgOper.oArg.type = type; + if (type == CrossGvgOperType.CGOT_SupportGuild) + { + bool flag = uid > 0UL; + if (flag) + { + rpcC2M_CrossGvgOper.oArg.support_guildid.Add(uid); + } + } + XSingleton.singleton.Send(rpcC2M_CrossGvgOper); + } + + public void NotifyCrossGVGOper(CrossGvgOperArg oArg, CrossGvgOperRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = oArg.type == CrossGvgOperType.CGOT_SupportGuild; + if (flag2) + { + bool flag3 = this._supportGuildIDs == null; + if (flag3) + { + this._supportGuildIDs = new List(); + } + int i = 0; + int count = oArg.support_guildid.Count; + while (i < count) + { + bool flag4 = this._supportGuildIDs.Contains(oArg.support_guildid[i]); + if (!flag4) + { + this._supportGuildIDs.Add(oArg.support_guildid[i]); + } + i++; + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.RefreshData(); + } + } + } + else + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + } + + public void SendCrossGVGData() + { + RpcC2M_GetCrossGvgData rpc = new RpcC2M_GetCrossGvgData(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveCrossGVGData(GetCrossGvgDataRes res) + { + XSingleton.singleton.AddGreenLog("GetCrossGvgDataRes = " + res.rank.ToString() + " : " + res.record.ToString(), null, null, null, null, null); + this._supportGuildIDs = res.support_guildid; + this.m_registrationCount = res.season_num; + this.ConvertGuildList(res.rank); + this.ConvertDuelRecord(res.record); + this.ConvertCombatRecord(res.rooms); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshData(); + } + } + + public void NotifyCrossGVGRoomState(CrossGvgRoomInfo room, CrossGvgRacePointRecord record) + { + XSingleton.singleton.AddGreenLog("NotifyCrossGVGRoomState :room = " + (room == null).ToString() + " record = " + (record == null).ToString(), null, null, null, null, null); + bool flag = this.ConvertDuelRecord(record) || this.ConvertCombatRecord(room); + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshData(); + } + } + } + + public bool TryGetCombatRoom(uint roomID, out XGVGCombatGroupData combatData) + { + return this._combatGroups.TryGetValue(roomID, out combatData); + } + + private void ConvertGuildList(List ranks) + { + this._guildList.Clear(); + int i = 0; + int count = ranks.Count; + while (i < count) + { + XGVGGuildInfo xgvgguildInfo = new XGVGGuildInfo(); + xgvgguildInfo.Setup(ranks[i]); + this._guildList.Add(xgvgguildInfo.uid, xgvgguildInfo); + i++; + } + } + + private void ConvertCombatRecord(List rooms) + { + this._SelfRoomState = CrossGvgRoomState.CGRS_Idle; + this._visibleEnterBattle = false; + this._hasAvailableJoin = false; + int i = 0; + int count = rooms.Count; + while (i < count) + { + this.ConvertCombatRecord(rooms[i]); + i++; + } + } + + private bool ConvertCombatRecord(CrossGvgRoomInfo room) + { + bool flag = room == null; + bool result; + if (flag) + { + result = false; + } + else + { + XGVGCombatGroupData xgvgcombatGroupData = null; + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag2 = !this._combatGroups.TryGetValue(room.roomid, out xgvgcombatGroupData); + if (flag2) + { + xgvgcombatGroupData = new XGVGCombatGroupData(); + this._combatGroups.Add(room.roomid, xgvgcombatGroupData); + } + xgvgcombatGroupData.Convert(room); + bool flag3 = xgvgcombatGroupData.InCombatGroup(specificDocument.UID); + if (flag3) + { + this._hasAvailableJoin = true; + this._SelfRoomState = xgvgcombatGroupData.RoomState; + this._visibleEnterBattle = (xgvgcombatGroupData.WinnerID == 0UL || (xgvgcombatGroupData.WinnerID == specificDocument.UID && xgvgcombatGroupData.RoomID != 7u)); + } + result = true; + } + return result; + } + + private void ConvertDuelRecord(List records) + { + int count = records.Count; + this._hasDuelCombat = (count > 0); + this._duelRecords.Clear(); + int i = 0; + int count2 = records.Count; + while (i < count2) + { + GVGDuelCombatInfo gvgduelCombatInfo = new GVGDuelCombatInfo(); + gvgduelCombatInfo.Setup(records[i]); + this._duelRecords.Add(gvgduelCombatInfo); + i++; + } + } + + private bool ConvertDuelRecord(CrossGvgRacePointRecord record) + { + bool flag = record == null; + bool result; + if (flag) + { + result = false; + } + else + { + int i = 0; + int count = this._duelRecords.Count; + while (i < count) + { + bool flag2 = this._duelRecords[i] != null && this._duelRecords[i].roomID == record.roomid; + if (flag2) + { + this._duelRecords[i].Setup(record); + return true; + } + i++; + } + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCrossGVGDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCrossGVGDocument.cs.meta new file mode 100644 index 00000000..c234d3c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCrossGVGDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a663e9b02bab4442ac9e49333e9e59f +timeCreated: 1611404200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCustomBattleDocument.cs b/Client/Assets/Scripts/XMainClient/XCustomBattleDocument.cs new file mode 100644 index 00000000..ee68dafb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCustomBattleDocument.cs @@ -0,0 +1,1138 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCustomBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XCustomBattleDocument.uuID; + } + } + + public List BountyList + { + get + { + return this._bounty_list; + } + } + + public List CustomList + { + get + { + return this._custom_list; + } + } + + public XCustomBattleDocument.BountyModeData CurrentBountyData { get; set; } + + public XCustomBattleDocument.CustomModeData CurrentCustomData { get; set; } + + public XCustomBattleDocument.CustomModeData SelfCustomData { get; set; } + + public ulong CurrentMatchingID + { + get + { + return this._currentMatchingID; + } + } + + public bool passwordForJoin { get; set; } + + public ulong CacheGameID { get; set; } + + public bool RedPoint + { + get + { + return this.BountyModeRedPoint || this.CustomModeRedPoint; + } + } + + public bool BountyModeRedPoint { get; set; } + + public bool CustomModeRedPoint { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CustomBattleDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private List _bounty_list = new List(); + + private List _custom_list = new List(); + + public XCustomBattleDocument.CustomModeCreateData CustomCreateData; + + private ulong _currentMatchingID = 0UL; + + public bool QueryCross = true; + + public bool IsCreateGM = false; + + private static CustomBattleTable _customBattleTable = new CustomBattleTable(); + + private static CustomRewardTable _customRewardTable = new CustomRewardTable(); + + private static CustomBattleSystemTable _customSystemTable = new CustomBattleSystemTable(); + + private static CustomSystemRewardTable _customSystemRewardTable = new CustomSystemRewardTable(); + + private static CustomBattleTypeTable _customBattleType = new CustomBattleTypeTable(); + + public class BountyModeData + { + public float winPrecent + { + get + { + return 1f * this.winCount / this.winMax; + } + } + + public string winText + { + get + { + return string.Format("{0}/{1}", this.winCount, this.winMax); + } + } + + public uint boxLeftTime + { + get + { + return (Time.time < this.boxOpenTime) ? (this.boxOpenTime - (uint)Time.time) : 0u; + } + } + + public ulong gameID; + + public int expID; + + public uint gameType; + + public string gameName; + + public ItemBrief ticket; + + public CustomBattleRoleState status; + + public uint winMax; + + public uint winCount; + + public uint loseCount; + + public uint boxOpenTime; + } + + public class CustomModeData + { + public string joinText + { + get + { + return string.Format("{0}/{1}", this.joinCount, this.maxJoinCount); + } + } + + public uint gameStartLeftTime + { + get + { + return (Time.time < this.gameReadyTime) ? (this.gameReadyTime - (uint)Time.time) : 0u; + } + } + + public uint gameEndLeftTime + { + get + { + return (Time.time < this.gameBattleTime) ? (this.gameBattleTime - (uint)Time.time) : 0u; + } + } + + public uint boxLeftTime + { + get + { + return (Time.time < this.boxOpenTime) ? (this.boxOpenTime - (uint)Time.time) : 0u; + } + } + + public string token; + + public ulong gameID; + + public int expID; + + public uint configID; + + public uint gameType; + + public string gameName; + + public string gameCreator; + + public ulong creatorID; + + public uint joinCount; + + public uint maxJoinCount; + + public uint gameLength; + + public uint gameReadyTime; + + public uint gameBattleTime; + + public uint gameMask; + + public uint tagMask; + + public bool fairMode; + + public bool hasPassword; + + public string gamePassword; + + public CustomBattleState gameStatus; + + public uint selfPoint; + + public uint selfRank; + + public CustomBattleRoleState selfStatus; + + public uint boxOpenTime; + + public List rankList = new List(); + } + + public struct CustomModeCreateData + { + public string gameName; + + public uint gameType; + + public uint configID; + + public uint canJoinCount; + + public uint battleTimeIndex; + + public bool hasPassword; + + public string password; + + public bool isFair; + + public uint scaleMask; + + public uint readyTime; + + public ItemBrief cost; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XCustomBattleDocument.AsyncLoader.AddTask("Table/CustomBattle", XCustomBattleDocument._customBattleTable, false); + XCustomBattleDocument.AsyncLoader.AddTask("Table/CustomReward", XCustomBattleDocument._customRewardTable, false); + XCustomBattleDocument.AsyncLoader.AddTask("Table/CustomBattleSystem", XCustomBattleDocument._customSystemTable, false); + XCustomBattleDocument.AsyncLoader.AddTask("Table/CustomSystemReward", XCustomBattleDocument._customSystemRewardTable, false); + XCustomBattleDocument.AsyncLoader.AddTask("Table/CustomBattleType", XCustomBattleDocument._customBattleType, false); + XCustomBattleDocument.AsyncLoader.Execute(callback); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.SendCustomBattleQueryBountyMode(); + this.SendCustomBattleQueryCustomModeSelfInfo(); + } + } + + public void SendCustomBattleSearch(string str) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_Search; + rpcC2M_CustomBattleOp.oArg.name = str; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleQueryBountyMode() + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_Query; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleQueryCustomModeList(bool queryCross = false) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_QueryRandom; + rpcC2M_CustomBattleOp.oArg.querycross = queryCross; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleSearchCustomModeList(ulong gameID) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_QueryOne; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleQueryCustomModeSelfInfo() + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_QuerySelf; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleMatch(ulong gameID) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_Match; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleUnMatch() + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_UnMatch; + rpcC2M_CustomBattleOp.oArg.uid = this._currentMatchingID; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleDrop(ulong gameID) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_Drop; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleJoin(ulong gameID, bool showPassword = false, string password = "") + { + bool flag = !showPassword; + if (flag) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_Join; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + rpcC2M_CustomBattleOp.oArg.password = password; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + else + { + this.passwordForJoin = true; + DlgBase.singleton.ShowPasswordSettingHandler(); + } + } + + public void SendCustomBattleExit(ulong gameID) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_UnJoin; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleModifyPassword(ulong gameID, string password) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_Modify; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + rpcC2M_CustomBattleOp.oArg.password = password; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleCreate() + { + CustomBattleTable.RowData customBattleData = this.GetCustomBattleData(this.CustomCreateData.configID); + bool flag = customBattleData == null; + if (!flag) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_Create; + rpcC2M_CustomBattleOp.oArg.config = new CustomBattleConfig(); + rpcC2M_CustomBattleOp.oArg.config.name = this.CustomCreateData.gameName; + rpcC2M_CustomBattleOp.oArg.config.configid = this.CustomCreateData.configID; + rpcC2M_CustomBattleOp.oArg.config.canjoincount = this.CustomCreateData.canJoinCount; + rpcC2M_CustomBattleOp.oArg.config.battletime = customBattleData.timespan[(int)this.CustomCreateData.battleTimeIndex]; + rpcC2M_CustomBattleOp.oArg.config.haspassword = this.CustomCreateData.hasPassword; + rpcC2M_CustomBattleOp.oArg.config.password = this.CustomCreateData.password; + rpcC2M_CustomBattleOp.oArg.config.isfair = this.CustomCreateData.isFair; + rpcC2M_CustomBattleOp.oArg.config.scalemask = this.CustomCreateData.scaleMask; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + } + + public void SendCustomBattleStartNow(ulong gameID) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_StartNow; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleClearCD(ulong gameID) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_ClearCD; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public void SendCustomBattleGetReward(ulong gameID) + { + RpcC2M_CustomBattleOp rpcC2M_CustomBattleOp = new RpcC2M_CustomBattleOp(); + rpcC2M_CustomBattleOp.oArg.op = CustomBattleOp.CustomBattle_Reward; + rpcC2M_CustomBattleOp.oArg.uid = gameID; + XSingleton.singleton.Send(rpcC2M_CustomBattleOp); + } + + public CustomBattleSystemTable.RowData GetSystemBattleData(uint id) + { + return XCustomBattleDocument._customSystemTable.GetByid(id); + } + + public void DoErrorOp(CustomBattleOp op, ulong gameID) + { + if (op - CustomBattleOp.CustomBattle_Join <= 3) + { + this.RefreshCustomBattleInfo(); + } + } + + public void RecvCustomBattleOp(CustomBattleOp op, ulong gameID, CustomBattleClientInfo data, CustomBattleOpArg oArg) + { + switch (op) + { + case CustomBattleOp.CustomBattle_Query: + this.SetCustomBattleList(data); + break; + case CustomBattleOp.CustomBattle_Create: + this.OnCreateGameSucc(gameID, data); + break; + case CustomBattleOp.CustomBattle_Join: + this.ShowCustomBattleInfo(gameID, data); + break; + case CustomBattleOp.CustomBattle_Match: + { + bool flag = this.CurrentBountyData != null && this.CurrentBountyData.gameID == gameID; + if (flag) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_CustomBattle_BountyMode, EXStage.Hall); + } + else + { + bool flag2 = this.CurrentCustomData != null && this.CurrentCustomData.gameID == gameID; + if (flag2) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_CustomBattle_CustomMode, EXStage.Hall); + } + } + this._currentMatchingID = gameID; + this.CacheGameID = gameID; + this.ShowMatchingHandler(); + break; + } + case CustomBattleOp.CustomBattle_Reward: + this.OnFetchSystemBattleChest(gameID, data); + break; + case CustomBattleOp.CustomBattle_ClearCD: + this.OnClearSystemBattleChestCD(gameID, data); + break; + case CustomBattleOp.CustomBattle_QueryRandom: + this.SetCustomBattleCustomModeListRandom(data); + break; + case CustomBattleOp.CustomBattle_QueryOne: + this.SetCustomBattleCustomModeListOne(data); + break; + case CustomBattleOp.CustomBattle_UnJoin: + this.OnUnjoinBattleSucc(); + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("UnJoinCustomBattle"), "fece00"); + break; + case CustomBattleOp.CustomBattle_UnMatch: + XSingleton.singleton.RemoveCachedUI(XSysDefine.XSys_CustomBattle_BountyMode); + XSingleton.singleton.RemoveCachedUI(XSysDefine.XSys_CustomBattle_CustomMode); + this._currentMatchingID = 0UL; + this.CacheGameID = 0UL; + break; + case CustomBattleOp.CustomBattle_Modify: + XSingleton.singleton.ShowSystemTip((oArg.password != "") ? XSingleton.singleton.GetString("SetPasswordSucc") : XSingleton.singleton.GetString("CancelPassword"), "fece00"); + break; + case CustomBattleOp.CustomBattle_QuerySelf: + this.SetCustomBattleCustomModeSelfInfo(data); + break; + case CustomBattleOp.CustomBattle_StartNow: + this.OnCustomBattleStartNow(); + break; + case CustomBattleOp.CustomBattle_Drop: + this.OnBountyModeDrop(); + break; + case CustomBattleOp.CustomBattle_Search: + this.SetCustomBattleCustomModeListSearch(data); + break; + } + } + + private void OnCustomBattleStartNow() + { + this.SendCustomBattleQueryCustomModeSelfInfo(); + } + + private void OnBountyModeDrop() + { + this.SendCustomBattleQueryBountyMode(); + } + + private void RefreshHandler(DlgHandlerBase handler) + { + bool flag = handler != null && handler.IsVisible(); + if (flag) + { + handler.RefreshData(); + } + } + + private void RefreshAllView() + { + this.RefreshRedPoint(); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + this.RefreshHandler(DlgBase.singleton._BountyModeDetailHandler); + this.RefreshHandler(DlgBase.singleton._BountyModeListHandler); + this.RefreshHandler(DlgBase.singleton._CustomModeBriefHandler); + this.RefreshHandler(DlgBase.singleton._ChestHandler); + this.RefreshHandler(DlgBase.singleton._CustomModeCreateHandler); + this.RefreshHandler(DlgBase.singleton._CustomModeDetailHandler); + this.RefreshHandler(DlgBase.singleton._CustomModeListHandler); + this.RefreshHandler(DlgBase.singleton._MatchingHandler); + this.RefreshHandler(DlgBase.singleton._PasswordSettingHandler); + } + } + + private void OnClearSystemBattleChestCD(ulong gameID, CustomBattleClientInfo data) + { + for (int i = 0; i < this._bounty_list.Count; i++) + { + bool flag = this._bounty_list[i].gameID == gameID; + if (flag) + { + this._bounty_list[i].boxOpenTime = 0u; + } + } + for (int j = 0; j < this._custom_list.Count; j++) + { + bool flag2 = this._custom_list[j].gameID == gameID; + if (flag2) + { + this._custom_list[j].boxOpenTime = 0u; + } + } + bool flag3 = this.CurrentBountyData != null && this.CurrentBountyData.gameID == gameID; + if (flag3) + { + this.CurrentBountyData.boxOpenTime = 0u; + } + bool flag4 = this.CurrentCustomData != null && this.CurrentCustomData.gameID == gameID; + if (flag4) + { + this.CurrentCustomData.boxOpenTime = 0u; + } + this.RefreshAllView(); + } + + private void OnFetchSystemBattleChest(ulong gameID, CustomBattleClientInfo data) + { + for (int i = 0; i < this._bounty_list.Count; i++) + { + bool flag = this._bounty_list[i].gameID == gameID; + if (flag) + { + this._bounty_list[i].status = CustomBattleRoleState.CustomBattle_RoleState_Ready; + } + } + for (int j = 0; j < this._custom_list.Count; j++) + { + bool flag2 = this._custom_list[j].gameID == gameID; + if (flag2) + { + this._custom_list[j].gameStatus = CustomBattleState.CustomBattle_End; + this._custom_list[j].selfStatus = CustomBattleRoleState.Custombattle_RoleState_Taken; + } + } + bool flag3 = this.CurrentBountyData != null && this.CurrentBountyData.gameID == gameID; + if (flag3) + { + this.CurrentBountyData.status = CustomBattleRoleState.CustomBattle_RoleState_Ready; + this.CurrentBountyData = null; + } + bool flag4 = this.CurrentCustomData != null && this.CurrentCustomData.gameID == gameID; + if (flag4) + { + this.CurrentCustomData.gameStatus = CustomBattleState.CustomBattle_End; + this.CurrentCustomData.selfStatus = CustomBattleRoleState.Custombattle_RoleState_Taken; + } + bool flag5 = DlgBase.singleton._ChestHandler != null && DlgBase.singleton._ChestHandler.IsVisible(); + if (flag5) + { + DlgBase.singleton._ChestHandler.SetVisible(false); + } + bool flag6 = DlgBase.singleton._BountyModeDetailHandler != null && DlgBase.singleton._BountyModeDetailHandler.IsVisible(); + if (flag6) + { + DlgBase.singleton._BountyModeDetailHandler.SetVisible(false); + } + this.RefreshAllView(); + } + + private void OnCreateGameSucc(ulong gameID, CustomBattleClientInfo data) + { + bool flag = this.SelfCustomData == null; + if (flag) + { + this.SelfCustomData = new XCustomBattleDocument.CustomModeData(); + } + this.SetCustomInfo(this.SelfCustomData, data.createinfo); + bool flag2 = DlgBase.singleton._CustomModeCreateHandler != null; + if (flag2) + { + DlgBase.singleton._CustomModeCreateHandler.SetVisible(false); + } + this.RefreshAllView(); + } + + private void ShowCustomBattleInfo(ulong gameID, CustomBattleClientInfo data) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + for (int i = 0; i < this._bounty_list.Count; i++) + { + bool flag2 = this._bounty_list[i].gameID == gameID; + if (flag2) + { + bool flag3 = DlgBase.singleton._BountyModeListHandler != null; + if (flag3) + { + DlgBase.singleton._BountyModeListHandler.ShowDetailByIndex(i); + this.SendCustomBattleQueryBountyMode(); + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("JoinBountyBattle"), "fece00"); + break; + } + } + } + for (int j = 0; j < this._custom_list.Count; j++) + { + bool flag4 = this._custom_list[j].gameID == gameID; + if (flag4) + { + bool flag5 = data != null && data.joininfo != null; + if (flag5) + { + bool flag6 = this.SelfCustomData == null; + if (flag6) + { + this.SelfCustomData = new XCustomBattleDocument.CustomModeData(); + } + this.SetCustomInfo(this.SelfCustomData, data.joininfo); + bool flag7 = DlgBase.singleton._CustomModeListHandler != null; + if (flag7) + { + DlgBase.singleton._CustomModeListHandler.ShowSelfDetail(); + this.SendCustomBattleQueryCustomModeList(this.QueryCross); + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("JoinCustomBattle"), "fece00"); + break; + } + } + } + } + } + } + + private void RefreshCustomBattleInfo() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + this.SendCustomBattleQueryBountyMode(); + this.SendCustomBattleQueryCustomModeList(this.QueryCross); + bool flag2 = this.CurrentCustomData != null; + if (flag2) + { + this.SendCustomBattleSearchCustomModeList(this.CurrentCustomData.gameID); + } + this.SendCustomBattleQueryCustomModeSelfInfo(); + } + } + + private void SetCustomBattleList(CustomBattleClientInfo data) + { + this._bounty_list.Clear(); + bool flag = data == null || data.queryinfo == null || data.queryinfo.battlesystem == null; + if (flag) + { + this.RefreshAllView(); + } + else + { + for (int i = 0; i < data.queryinfo.battlesystem.Count; i++) + { + bool flag2 = data.queryinfo.battlesystem[i].data == null; + if (!flag2) + { + bool issystem = data.queryinfo.battlesystem[i].data.config.issystem; + if (issystem) + { + this.AddBountyInfoList(data.queryinfo.battlesystem[i]); + } + } + } + this.RefreshAllView(); + } + } + + private void SetCustomBattleCustomModeListSearch(CustomBattleClientInfo data) + { + this._custom_list.Clear(); + bool flag = data == null || data.searchinfo == null; + if (flag) + { + this.RefreshAllView(); + } + else + { + for (int i = 0; i < data.searchinfo.Count; i++) + { + bool flag2 = data.searchinfo[i].data == null; + if (!flag2) + { + this._custom_list.Add(new XCustomBattleDocument.CustomModeData()); + this.SetCustomInfo(this._custom_list[i], data.searchinfo[i]); + } + } + this.RefreshAllView(); + } + } + + private void SetCustomBattleCustomModeListRandom(CustomBattleClientInfo data) + { + this._custom_list.Clear(); + bool flag = data == null || data.queryinfo == null || data.queryinfo.battlerandom == null; + if (flag) + { + this.RefreshAllView(); + } + else + { + for (int i = 0; i < data.queryinfo.battlerandom.Count; i++) + { + bool flag2 = data.queryinfo.battlerandom[i].data == null; + if (!flag2) + { + this._custom_list.Add(new XCustomBattleDocument.CustomModeData()); + this.SetCustomInfo(this._custom_list[i], data.queryinfo.battlerandom[i]); + } + } + this.RefreshAllView(); + } + } + + private void SetCustomBattleCustomModeListOne(CustomBattleClientInfo data) + { + bool flag = data == null || data.queryinfo == null || data.queryinfo.battleone == null; + if (flag) + { + this.RefreshAllView(); + } + else + { + bool flag2 = data.queryinfo.battleone.data != null; + if (flag2) + { + for (int i = 0; i < this._custom_list.Count; i++) + { + bool flag3 = this._custom_list[i].gameID == data.queryinfo.battleone.data.uid; + if (flag3) + { + this.SetCustomInfo(this._custom_list[i], data.queryinfo.battleone); + } + } + bool flag4 = this.SelfCustomData != null && this.SelfCustomData.gameID == data.queryinfo.battleone.data.uid; + if (flag4) + { + this.SetCustomInfo(this.SelfCustomData, data.queryinfo.battleone); + } + } + this.RefreshAllView(); + } + } + + private void SetCustomBattleCustomModeSelfInfo(CustomBattleClientInfo data) + { + bool flag = data == null || data.joininfo == null; + if (flag) + { + this.RefreshAllView(); + } + else + { + bool flag2 = data.joininfo.data != null; + if (flag2) + { + bool flag3 = this.SelfCustomData == null; + if (flag3) + { + this.SelfCustomData = new XCustomBattleDocument.CustomModeData(); + } + this.SetCustomInfo(this.SelfCustomData, data.joininfo); + } + this.RefreshAllView(); + } + } + + private void ShowMatchingHandler() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.ShowMatchingHandler(); + } + } + + private void OnUnjoinBattleSucc() + { + this.SelfCustomData = null; + DlgBase.singleton._CustomModeDetailHandler.SetVisible(false); + DlgBase.singleton.ShowCustomModeListHandler(); + } + + public void ShowTeamView(int expID) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(expID); + } + + private void AddBountyInfoList(CustomBattleDataRole info) + { + CustomBattleSystemTable.RowData byid = XCustomBattleDocument._customSystemTable.GetByid((uint)info.data.uid); + bool flag = byid == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Bounty Game not found: " + info.data.uid, null, null, null, null, null); + } + else + { + XCustomBattleDocument.BountyModeData bountyModeData = new XCustomBattleDocument.BountyModeData(); + bountyModeData.gameID = info.data.uid; + bountyModeData.expID = byid.ExpID; + bountyModeData.gameName = byid.desc; + bountyModeData.gameType = byid.type; + bountyModeData.ticket = new ItemBrief(); + bountyModeData.ticket.itemID = byid.ticket[0]; + bountyModeData.ticket.itemCount = byid.ticket[1]; + bool flag2 = info.role != null; + if (flag2) + { + bountyModeData.status = info.role.state; + bountyModeData.winMax = byid.end[0]; + bountyModeData.winCount = info.role.win; + bountyModeData.loseCount = info.role.lose; + bountyModeData.boxOpenTime = (uint)Time.time + info.role.rewardcd; + } + else + { + bountyModeData.status = CustomBattleRoleState.CustomBattle_RoleState_Ready; + bountyModeData.winMax = byid.end[0]; + bountyModeData.winCount = 0u; + bountyModeData.loseCount = 0u; + bountyModeData.boxOpenTime = 0u; + } + this._bounty_list.Add(bountyModeData); + bool flag3 = this.CurrentBountyData != null; + if (flag3) + { + bool flag4 = this.CurrentBountyData.gameID == bountyModeData.gameID; + if (flag4) + { + this.CurrentBountyData = bountyModeData; + } + } + } + } + + public SeqListRef GetSystemBattleReward(uint id, uint win) + { + for (int i = 0; i < XCustomBattleDocument._customSystemRewardTable.Table.Length; i++) + { + bool flag = XCustomBattleDocument._customSystemRewardTable.Table[i].id == id && XCustomBattleDocument._customSystemRewardTable.Table[i].wincounts == win; + if (flag) + { + return XCustomBattleDocument._customSystemRewardTable.Table[i].rewardshow; + } + } + return default(SeqListRef); + } + + public SeqRef GetSystemBattleQuickOpenCost(uint id, uint win) + { + for (int i = 0; i < XCustomBattleDocument._customSystemRewardTable.Table.Length; i++) + { + bool flag = XCustomBattleDocument._customSystemRewardTable.Table[i].id == id && XCustomBattleDocument._customSystemRewardTable.Table[i].wincounts == win; + if (flag) + { + return XCustomBattleDocument._customSystemRewardTable.Table[i].boxquickopen; + } + } + return new SeqRef(DataHandler.defaultUIntBuffer); + } + + private void SetCustomInfo(XCustomBattleDocument.CustomModeData data, CustomBattleDataRole info) + { + CustomBattleTable.RowData byid = XCustomBattleDocument._customBattleTable.GetByid(info.data.config.configid); + bool flag = byid == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Bounty Game not found: " + info.data.config.configid, null, null, null, null, null); + } + else + { + data.token = info.data.config.token; + data.gameID = info.data.uid; + data.expID = byid.ExpID; + data.gameName = info.data.config.name; + data.configID = info.data.config.configid; + data.gameType = info.data.config.tagtype; + data.gameCreator = info.data.config.creatorname; + data.creatorID = info.data.config.creator; + data.joinCount = info.data.config.hasjoincount; + data.maxJoinCount = info.data.config.canjoincount; + data.gameLength = info.data.config.battletimeconf; + data.gameReadyTime = (uint)Time.time + info.data.config.readytime; + data.gameBattleTime = (uint)Time.time + info.data.config.battletime; + data.gameMask = info.data.config.scalemask; + data.tagMask = info.data.config.tagmask; + data.fairMode = info.data.config.isfair; + data.hasPassword = info.data.config.haspassword; + data.gamePassword = info.data.config.password; + data.gameStatus = info.data.config.state; + bool flag2 = info.role != null; + if (flag2) + { + data.selfPoint = info.role.point; + data.selfRank = info.role.rank; + data.selfStatus = info.role.state; + data.boxOpenTime = (uint)Time.time + info.role.rewardcd; + } + else + { + data.selfPoint = 0u; + data.selfRank = 0u; + data.selfStatus = (CustomBattleRoleState)0; + data.boxOpenTime = 0u; + } + bool flag3 = info.data.rank != null && info.data.rank.Count > 0; + if (flag3) + { + data.rankList.Clear(); + for (int i = 0; i < info.data.rank.Count; i++) + { + data.rankList.Add(info.data.rank[i]); + } + } + bool flag4 = this.CurrentCustomData != null; + if (flag4) + { + bool flag5 = this.CurrentCustomData.gameID == data.gameID; + if (flag5) + { + this.CurrentCustomData = data; + } + } + } + } + + public void ResetCustomModeCreateData() + { + XCustomBattleDocument.CustomModeCreateData customModeCreateData = default(XCustomBattleDocument.CustomModeCreateData); + customModeCreateData.gameName = XSingleton.singleton.XPlayerData.Name; + customModeCreateData.gameType = XCustomBattleDocument._customBattleTable.Table[0].type; + customModeCreateData.configID = XCustomBattleDocument._customBattleTable.Table[0].id; + customModeCreateData.canJoinCount = XCustomBattleDocument._customBattleTable.Table[0].joincount; + customModeCreateData.battleTimeIndex = 0u; + customModeCreateData.hasPassword = false; + customModeCreateData.password = ""; + customModeCreateData.isFair = false; + customModeCreateData.scaleMask = 0u; + customModeCreateData.readyTime = XCustomBattleDocument._customBattleTable.Table[0].readytimepan; + customModeCreateData.cost = new ItemBrief(); + customModeCreateData.cost.itemID = XCustomBattleDocument._customBattleTable.Table[0].create[0, 0]; + customModeCreateData.cost.itemCount = XCustomBattleDocument._customBattleTable.Table[0].create[0, 1]; + this.CustomCreateData = customModeCreateData; + } + + public CustomBattleTypeTable.RowData[] GetCustomBattleTypelist() + { + return XCustomBattleDocument._customBattleType.Table; + } + + public CustomBattleTypeTable.RowData GetCustomBattleTypeData(int typeID) + { + return XCustomBattleDocument._customBattleType.GetBytype(typeID); + } + + public CustomBattleTable.RowData GetCustomBattleData(uint configid) + { + return XCustomBattleDocument._customBattleTable.GetByid(configid); + } + + public uint GetCustomBattleFirstID(uint type) + { + uint num = uint.MaxValue; + for (int i = 0; i < XCustomBattleDocument._customBattleTable.Table.Length; i++) + { + bool flag = type == XCustomBattleDocument._customBattleTable.Table[i].type && XCustomBattleDocument._customBattleTable.Table[i].id < num; + if (flag) + { + num = XCustomBattleDocument._customBattleTable.Table[i].id; + } + } + return num; + } + + public uint GetCustomBattleNextID(uint type, uint currentid) + { + uint num = uint.MaxValue; + for (int i = 0; i < XCustomBattleDocument._customBattleTable.Table.Length; i++) + { + bool flag = type == XCustomBattleDocument._customBattleTable.Table[i].type && XCustomBattleDocument._customBattleTable.Table[i].id > currentid && XCustomBattleDocument._customBattleTable.Table[i].id < num; + if (flag) + { + num = XCustomBattleDocument._customBattleTable.Table[i].id; + } + } + return num; + } + + public uint GetCustomBattlePreID(uint type, uint currentid) + { + uint num = 0u; + for (int i = 0; i < XCustomBattleDocument._customBattleTable.Table.Length; i++) + { + bool flag = type == XCustomBattleDocument._customBattleTable.Table[i].type && XCustomBattleDocument._customBattleTable.Table[i].id < currentid && XCustomBattleDocument._customBattleTable.Table[i].id > num; + if (flag) + { + num = XCustomBattleDocument._customBattleTable.Table[i].id; + } + } + return num; + } + + public uint GetCustomBattleLevelLimitByType(uint type) + { + for (int i = 0; i < XCustomBattleDocument._customBattleTable.Table.Length; i++) + { + bool flag = XCustomBattleDocument._customBattleTable.Table[i].type == type; + if (flag) + { + return XCustomBattleDocument._customBattleTable.Table[i].levellimit; + } + } + return 0u; + } + + public SeqListRef GetCustomBattleBestReward(uint configID) + { + for (int i = 0; i < XCustomBattleDocument._customRewardTable.Table.Length; i++) + { + bool flag = XCustomBattleDocument._customRewardTable.Table[i].id == configID && XCustomBattleDocument._customRewardTable.Table[i].rank[0] == 1u; + if (flag) + { + return XCustomBattleDocument._customRewardTable.Table[i].rewardshow; + } + } + return default(SeqListRef); + } + + public SeqListRef GetCustomBattleRewardByRank(uint configID, uint rank) + { + for (int i = 0; i < XCustomBattleDocument._customRewardTable.Table.Length; i++) + { + bool flag = XCustomBattleDocument._customRewardTable.Table[i].id == configID && XCustomBattleDocument._customRewardTable.Table[i].rank[0] <= rank && XCustomBattleDocument._customRewardTable.Table[i].rank[1] >= rank; + if (flag) + { + return XCustomBattleDocument._customRewardTable.Table[i].rewardshow; + } + } + return default(SeqListRef); + } + + public SeqRef GetCustomBattleQuickOpenCost(uint configID, uint rank) + { + for (int i = 0; i < XCustomBattleDocument._customRewardTable.Table.Length; i++) + { + bool flag = XCustomBattleDocument._customRewardTable.Table[i].id == configID && XCustomBattleDocument._customRewardTable.Table[i].rank[0] <= rank && XCustomBattleDocument._customRewardTable.Table[i].rank[1] >= rank; + if (flag) + { + return XCustomBattleDocument._customRewardTable.Table[i].boxquickopen; + } + } + return new SeqRef(DataHandler.defaultUIntBuffer); + } + + public void DestoryFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + } + } + + private void RefreshRedPoint() + { + this.BountyModeRedPoint = false; + this.CustomModeRedPoint = false; + for (int i = 0; i < this._bounty_list.Count; i++) + { + this.BountyModeRedPoint |= (this._bounty_list[i].status == CustomBattleRoleState.CustomBattle_RoleState_Reward && this._bounty_list[i].boxLeftTime == 0u); + } + for (int j = 0; j < this._custom_list.Count; j++) + { + this.CustomModeRedPoint |= (this._custom_list[j].selfStatus == CustomBattleRoleState.CustomBattle_RoleState_Reward && this._custom_list[j].boxLeftTime == 0u); + } + bool flag = this.SelfCustomData != null; + if (flag) + { + this.CustomModeRedPoint |= (this.SelfCustomData.selfStatus == CustomBattleRoleState.CustomBattle_RoleState_Reward && this.SelfCustomData.boxLeftTime == 0u); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_CustomBattle_BountyMode, true); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_CustomBattle_CustomMode, true); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.RefreshCustomBattleInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCustomBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XCustomBattleDocument.cs.meta new file mode 100644 index 00000000..1f221321 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCustomBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2814c07cc4259e74d872be4b03a08e83 +timeCreated: 1611403473 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCustomShadow.cs b/Client/Assets/Scripts/XMainClient/XCustomShadow.cs new file mode 100644 index 00000000..de712fc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCustomShadow.cs @@ -0,0 +1,235 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + [RequireComponent(typeof(Camera))] + public class XCustomShadow : MonoBehaviour + { + public int shadowChannel = 0; + + public ShadowMapInfo shadowMapInfoRef = null; + + public Camera m_shadowCamera = null; + + private Transform m_shadowCameraTransformCache = null; + + private Transform m_TargetTransformCache = null; + + public Transform m_modifyEntityTransformCache = null; + + public static float scale = 0.33f; + + public float bias = 0.5f; + + private Vector3 m_lastShadowPos = Vector3.zero; + + private Transform m_lightTransformCache = null; + + private Vector3 m_invLightForwardDir = new Vector3(0f, 0f, -1f); + + private Vector3 m_lightRightDir = new Vector3(1f, 0f, 0f); + + private Vector3 m_lightUpDir = new Vector3(0f, 1f, 0f); + + public Matrix4x4 scaleBiasMatrix = Matrix4x4.identity; + + private static Texture shadowMask = null; + + public static XCustomShadow Create(Transform parent, ShadowMapInfo sg) + { + GameObject gameObject = new GameObject("ShadowProjector"); + Camera camera = gameObject.AddComponent(); + XCustomShadow xcustomShadow = gameObject.AddComponent(); + xcustomShadow.m_shadowCamera = camera; + xcustomShadow.shadowMapInfoRef = sg; + xcustomShadow.m_shadowCameraTransformCache = gameObject.transform; + camera.useOcclusionCulling = false; + camera.clearFlags = (CameraClearFlags)2; + camera.backgroundColor = new Color(1f, 1f, 1f, 1f); + camera.farClipPlane = 5f; + camera.orthographicSize = 1.5f; + camera.orthographic = true; + camera.depth = -2f; + camera.cullingMask = 0; + camera.cullingMask |= 1 << XPlayer.PlayerLayer; + camera.targetTexture = sg.shadowMap; + camera.enabled = false; + xcustomShadow.enabled = false; + return xcustomShadow; + } + + public void Begin(XGameObject target) + { + bool flag = this.OnTargetChange(target); + if (flag) + { + bool flag2 = this.m_shadowCamera != null; + if (flag2) + { + this.m_shadowCamera.orthographicSize = 1.5f; + this.scaleBiasMatrix = Matrix4x4.Scale(Vector3.one); + Shader shader = null; + int num = this.shadowChannel; + switch (num) + { + case 1: + shader = ShaderManager._maskR; + break; + case 2: + shader = ShaderManager._maskG; + break; + case 3: + break; + case 4: + shader = ShaderManager._maskB; + break; + default: + if (num == 8) + { + shader = ShaderManager._maskA; + } + break; + } + bool flag3 = shader != null; + if (flag3) + { + this.m_shadowCamera.SetReplacementShader(shader, "RenderType"); + bool flag4 = XCustomShadow.shadowMask == null; + if (flag4) + { + XCustomShadow.shadowMask = XSingleton.singleton.GetSharedResource("Shader/Shadow/ShadowMask", ".png", true, false); + Shader.SetGlobalTexture("_ShadowMask", XCustomShadow.shadowMask); + } + } + } + } + bool flag5 = this.m_shadowCamera != null; + if (flag5) + { + this.m_shadowCamera.enabled = true; + } + base.enabled = true; + } + + public void Clear(bool destroy) + { + bool flag = this.shadowMapInfoRef != null; + if (flag) + { + this.shadowMapInfoRef.FreeChannel(this.shadowChannel); + this.shadowMapInfoRef = null; + } + this.shadowChannel = 0; + this.m_lightTransformCache = null; + this.m_TargetTransformCache = null; + bool flag2 = this.m_shadowCamera != null; + if (flag2) + { + this.m_shadowCamera.enabled = false; + } + base.enabled = false; + if (destroy) + { + bool flag3 = this.m_shadowCamera != null; + if (flag3) + { + this.m_shadowCamera.targetTexture = null; + } + bool flag4 = XCustomShadow.shadowMask != null; + if (flag4) + { + XSingleton.singleton.UnSafeDestroyShareResource("Shader/Shadow/ShadowMask", ".png", XCustomShadow.shadowMask, false); + XCustomShadow.shadowMask = null; + Shader.SetGlobalTexture("_ShadowMask", null); + } + this.m_shadowCameraTransformCache = null; + UnityEngine.Object.Destroy(base.gameObject); + } + } + + public bool OnTargetChange(XGameObject target) + { + Transform transform = (target != null) ? target.Find("") : null; + bool flag = this.m_TargetTransformCache != transform; + bool result; + if (flag) + { + this.m_TargetTransformCache = transform; + this.m_lightTransformCache = null; + result = true; + } + else + { + result = false; + } + return result; + } + + public void SetCullLayer(bool enable) + { + bool flag = this.m_shadowCamera != null; + if (flag) + { + this.m_shadowCamera.cullingMask = 0; + if (enable) + { + this.m_shadowCamera.cullingMask |= 1 << XPlayer.PlayerLayer; + } + else + { + this.m_shadowCamera.cullingMask |= int.MinValue; + } + } + } + + private void Update() + { + bool flag = this.m_lightTransformCache == null; + if (flag) + { + Light mainLight = XQualitySetting.mainLight; + bool flag2 = mainLight != null; + if (flag2) + { + this.m_lightTransformCache = mainLight.transform; + bool flag3 = this.m_lightTransformCache != null; + if (flag3) + { + this.m_invLightForwardDir = -this.m_lightTransformCache.forward; + this.m_lightRightDir = this.m_lightTransformCache.right; + this.m_lightUpDir = this.m_lightTransformCache.up; + } + } + } + bool flag4 = this.m_shadowCameraTransformCache != null && this.m_lightTransformCache != null && this.m_TargetTransformCache != null; + if (flag4) + { + Vector3 position = this.m_shadowCameraTransformCache.position; + float num = this.m_lastShadowPos.x * position.x + this.m_lastShadowPos.y * position.y + this.m_lastShadowPos.z * position.z; + float num2 = Quaternion.Angle(this.m_shadowCameraTransformCache.rotation, this.m_lightTransformCache.rotation); + bool flag5 = num2 >= 5f || num > 0.5f; + if (flag5) + { + this.m_shadowCameraTransformCache.rotation = this.m_lightTransformCache.rotation; + this.m_shadowCameraTransformCache.position = this.m_TargetTransformCache.position + this.m_invLightForwardDir * 2f + this.m_lightRightDir * 0.4f + this.m_lightUpDir * 0.2f; + this.m_lastShadowPos = this.m_shadowCameraTransformCache.position; + this.scaleBiasMatrix[0, 0] = XCustomShadow.scale; + this.scaleBiasMatrix[1, 1] = XCustomShadow.scale; + this.scaleBiasMatrix[2, 2] = XCustomShadow.scale; + this.scaleBiasMatrix[0, 3] = this.bias; + this.scaleBiasMatrix[1, 3] = this.bias; + this.scaleBiasMatrix[2, 3] = this.bias; + Matrix4x4 matrix4x = this.scaleBiasMatrix * this.m_shadowCamera.worldToCameraMatrix; + Shader.SetGlobalMatrix("custom_World2Shadow", matrix4x); + } + bool flag6 = this.m_modifyEntityTransformCache != this.m_TargetTransformCache && this.m_modifyEntityTransformCache != null; + if (flag6) + { + this.m_TargetTransformCache = this.m_modifyEntityTransformCache; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCustomShadow.cs.meta b/Client/Assets/Scripts/XMainClient/XCustomShadow.cs.meta new file mode 100644 index 00000000..6569be3e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCustomShadow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e99d5474707ecf54d94407e343d6145b +timeCreated: 1611404757 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCustomShadowMgr.cs b/Client/Assets/Scripts/XMainClient/XCustomShadowMgr.cs new file mode 100644 index 00000000..d2f3307c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCustomShadowMgr.cs @@ -0,0 +1,159 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XCustomShadowMgr : XSingleton + { + private const int m_MaxShadowCount = 4; + + private const int m_CurrentShadowCount = 0; + + private List m_shadowGroups = null; + + private List m_shadowInfos = null; + + public static Matrix4x4 texMatrix = Matrix4x4.identity; + + public override bool Init() + { + XCustomShadowMgr.texMatrix[0, 0] = 0.5f; + XCustomShadowMgr.texMatrix[1, 1] = 0.5f; + XCustomShadowMgr.texMatrix[2, 2] = 0.5f; + XCustomShadowMgr.texMatrix[0, 3] = 0.5f; + XCustomShadowMgr.texMatrix[1, 3] = 0.5f; + XCustomShadowMgr.texMatrix[2, 3] = 0.5f; + return true; + } + + private ShadowMapInfo GetShadowMap(out int channel) + { + channel = 0; + bool flag = this.m_shadowGroups == null; + if (flag) + { + this.m_shadowGroups = new List(); + } + for (int i = 0; i < this.m_shadowGroups.Count; i++) + { + ShadowMapInfo shadowMapInfo = this.m_shadowGroups[i]; + int num = shadowMapInfo.AllocChannel(); + bool flag2 = num != 0; + if (flag2) + { + channel = num; + return shadowMapInfo; + } + } + ShadowMapInfo shadowMapInfo2 = new ShadowMapInfo(); + shadowMapInfo2.CreateShadowMap(); + channel = shadowMapInfo2.AllocChannel(); + this.m_shadowGroups.Add(shadowMapInfo2); + return shadowMapInfo2; + } + + public XCustomShadow AddShadowProjector(Transform mainCamera) + { + int num = 0; + ShadowMapInfo shadowMap = this.GetShadowMap(out num); + bool flag = shadowMap != null && num != 0; + XCustomShadow result; + if (flag) + { + bool flag2 = this.m_shadowInfos == null; + if (flag2) + { + this.m_shadowInfos = new List(); + } + for (int i = 0; i < this.m_shadowInfos.Count; i++) + { + XCustomShadow xcustomShadow = this.m_shadowInfos[i]; + bool flag3 = xcustomShadow.shadowChannel == 0; + if (flag3) + { + xcustomShadow.shadowChannel = num; + return xcustomShadow; + } + } + XCustomShadow xcustomShadow2 = XCustomShadow.Create(mainCamera, shadowMap); + xcustomShadow2.shadowChannel = num; + this.m_shadowInfos.Add(xcustomShadow2); + result = xcustomShadow2; + } + else + { + result = null; + } + return result; + } + + public void RemoveShadowProjector(XCustomShadow cs) + { + cs.Clear(false); + } + + public void SetCullLayer(bool enable) + { + bool flag = this.m_shadowInfos != null; + if (flag) + { + for (int i = 0; i < this.m_shadowInfos.Count; i++) + { + XCustomShadow xcustomShadow = this.m_shadowInfos[i]; + bool flag2 = xcustomShadow != null; + if (flag2) + { + xcustomShadow.SetCullLayer(enable); + } + } + } + } + + public void SetShadowScale(float scale) + { + bool flag = this.m_shadowInfos != null; + if (flag) + { + XCustomShadow.scale = 0.33f / scale; + Shader.SetGlobalFloat("shadowScale", XCustomShadow.scale); + for (int i = 0; i < this.m_shadowInfos.Count; i++) + { + XCustomShadow xcustomShadow = this.m_shadowInfos[i]; + bool flag2 = xcustomShadow != null && xcustomShadow.m_shadowCamera != null; + if (flag2) + { + xcustomShadow.m_shadowCamera.orthographicSize = 1.5f * scale; + } + } + } + } + + public void Clear() + { + XCustomShadow.scale = 0.33f; + Shader.SetGlobalFloat("shadowScale", XCustomShadow.scale); + bool flag = this.m_shadowInfos != null; + if (flag) + { + for (int i = 0; i < this.m_shadowInfos.Count; i++) + { + XCustomShadow xcustomShadow = this.m_shadowInfos[i]; + xcustomShadow.Clear(true); + } + this.m_shadowInfos.Clear(); + } + bool flag2 = this.m_shadowGroups != null; + if (flag2) + { + for (int j = 0; j < this.m_shadowGroups.Count; j++) + { + ShadowMapInfo shadowMapInfo = this.m_shadowGroups[j]; + shadowMapInfo.Clear(); + } + this.m_shadowGroups.Clear(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCustomShadowMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XCustomShadowMgr.cs.meta new file mode 100644 index 00000000..d90f2bae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCustomShadowMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c83b87527394174283791b0360d67c1 +timeCreated: 1611403174 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XCutScene.cs b/Client/Assets/Scripts/XMainClient/XCutScene.cs new file mode 100644 index 00000000..a3e1e9e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCutScene.cs @@ -0,0 +1,701 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XCutScene : XSingleton + { + public bool IsPlaying + { + get + { + return this._cut_scene; + } + } + + public bool IsExcludeNewBorn + { + get + { + return this._exclusive; + } + set + { + this._exclusive = value; + } + } + + public float Length + { + get + { + return this.IsPlaying ? this._cut_scene_data.Length : 0f; + } + } + + public string Name + { + get + { + return this._name; + } + } + + public Vector3 EndWithPos { get; set; } + + public float EndWithDir { get; set; } + + public uint GeneralMonsterID { get; set; } + + public Dictionary _common_actors = new Dictionary(); + + private List _common_fx = new List(); + + private bool _cut_scene = false; + + private bool _exclusive = true; + + private List _eventToken = new List(); + + private List _actors = null; + + protected List _fx = new List(); + + private XCutSceneData _cut_scene_data = null; + + private XCameraMotionData _camera = new XCameraMotionData(); + + private XEntity _target = null; + + private uint _token = 0u; + + private string _name = null; + + private XTimerMgr.ElapsedEventHandler _startCb = null; + + private XTimerMgr.ElapsedEventHandler _endCb = null; + + private XTimerMgr.ElapsedEventHandler _actorOnStageCb = null; + + private XTimerMgr.ElapsedEventHandler _playerOnStageCb = null; + + private XTimerMgr.ElapsedEventHandler _fxCb = null; + + private XTimerMgr.ElapsedEventHandler _audioCb = null; + + private XTimerMgr.ElapsedEventHandler _subTitleCb = null; + + private XTimerMgr.ElapsedEventHandler _slashCb = null; + + private XTimerMgr.ElapsedEventHandler _endShowCb = null; + + private XTimerMgr.ElapsedEventHandler _endSubTitleCb = null; + + private CommandCallback _findFxTransCb = null; + + private bool _bFadeAtEnd = true; + + private float farClipPlaneBackUP = 150f; + + public XCutScene() + { + this._camera.AutoSync_At_Begin = false; + this._camera.Coordinate = CameraMotionSpace.World; + this._camera.Follow_Position = false; + this._camera.LookAt_Target = false; + this._camera.At = 0f; + this._camera.MotionType = CameraMotionType.AnchorBased; + this._startCb = new XTimerMgr.ElapsedEventHandler(this.InnerStart); + this._endCb = new XTimerMgr.ElapsedEventHandler(this.InnerEnd); + this._actorOnStageCb = new XTimerMgr.ElapsedEventHandler(this.ActorOnStage); + this._playerOnStageCb = new XTimerMgr.ElapsedEventHandler(this.PlayerOnStage); + this._fxCb = new XTimerMgr.ElapsedEventHandler(this.Fx); + this._audioCb = new XTimerMgr.ElapsedEventHandler(this.Audio); + this._subTitleCb = new XTimerMgr.ElapsedEventHandler(this.SubTitle); + this._slashCb = new XTimerMgr.ElapsedEventHandler(this.Slash); + this._endShowCb = new XTimerMgr.ElapsedEventHandler(this.EndShow); + this._endSubTitleCb = new XTimerMgr.ElapsedEventHandler(this.EndSubTitle); + this._findFxTransCb = new CommandCallback(this.AttachFx); + } + + public void Start(string cutname, bool bFadeOut = true, bool bFadeAtEnd = true) + { + bool cut_scene = this._cut_scene; + if (cut_scene) + { + XSingleton.singleton.Stop(true); + } + this._bFadeAtEnd = bFadeAtEnd; + this._actors = new List(); + XSingleton.singleton.StopSoundForCutscene(); + XSingleton.singleton.DoScriptRecord(cutname); + XSingleton.singleton.MakeEffectEnable(XPostEffect.BlackWhite, false); + this._cut_scene = true; + this._name = cutname; + this._cut_scene_data = XSingleton.singleton.GetData(this._name, ".txt"); + XBillBoardDocument.SetAllBillBoardState(BillBoardHideType.CutScene, false); + bool flag = XSingleton.singleton.CurrentStage is XConcreteStage; + if (flag) + { + XSingleton.singleton.ShowBlock(true); + } + bool overrideBGM = this._cut_scene_data.OverrideBGM; + if (overrideBGM) + { + XSingleton.singleton.PauseBGM(); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.OnStopVoiceRecord(); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.OnStopVoiceRecord(); + } + XSingleton.singleton.TimeMagicBack(); + XSingleton.singleton.EnablePlayerAI(false); + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < ally.Count; i++) + { + bool flag4 = ally[i] != XSingleton.singleton.Player; + if (flag4) + { + XAIEnableAI @event = XEventPool.GetEvent(); + @event.Firer = ally[i]; + @event.Enable = false; + XSingleton.singleton.FireEvent(@event); + } + } + bool flag5 = string.IsNullOrEmpty(this._cut_scene_data.CameraClip); + if (flag5) + { + XAutoFade.FadeOut2In(1f, 2.5f); + this.AddedTimerToken(XSingleton.singleton.SetTimer(1f, this._endCb, null)); + } + else if (bFadeOut) + { + XAutoFade.FadeOut2In(0.5f, 0.5f); + this.AddedTimerToken(XSingleton.singleton.SetTimer(0.5f, this._startCb, null)); + } + else + { + this.InnerStart(this); + } + } + + public void Stop(bool bImmdiately = false) + { + bool isPlaying = this.IsPlaying; + if (isPlaying) + { + for (int i = 0; i < this._eventToken.Count; i++) + { + XSingleton.singleton.KillTimer(this._eventToken[i]); + } + this._eventToken.Clear(); + if (bImmdiately) + { + this.InnerEnd(null); + } + else + { + this.EndShow(null); + } + } + } + + public void ClearCommon() + { + for (int i = 0; i < this._common_fx.Count; i++) + { + bool flag = this._common_fx[i] != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._common_fx[i], true); + } + } + this._common_fx.Clear(); + foreach (XActor xactor in this._common_actors.Values) + { + xactor.Uninitilize(); + } + this._common_actors.Clear(); + } + + public void OnLeaveScene() + { + bool isPlaying = this.IsPlaying; + if (isPlaying) + { + this.Stop(true); + XAutoFade.FastFadeIn(); + } + } + + public void AddedTimerToken(uint token) + { + this._eventToken.Add(token); + } + + private void InnerStart(object o) + { + XSingleton.singleton.Freezed = true; + bool flag = o == null; + if (flag) + { + XAutoFade.MakeBlack(false); + } + this.farClipPlaneBackUP = XSingleton.singleton.GameCamera.UnityCamera.farClipPlane; + XSingleton.singleton.GameCamera.UnityCamera.farClipPlane = 150f; + XSingleton.singleton.GameCamera.UnityCamera.fieldOfView = this._cut_scene_data.FieldOfView; + this._camera.Motion = this._cut_scene_data.CameraClip; + this._camera.Follow_Position = this._cut_scene_data.GeneralShow; + this._camera.AutoSync_At_Begin = this._cut_scene_data.GeneralShow; + bool flag2 = XSingleton.singleton.GameCamera.CloseUp != null; + if (flag2) + { + XSingleton.singleton.GameCamera.CloseUp.Stop(null); + } + bool flag3 = XSingleton.singleton.GameCamera.Collision != null; + if (flag3) + { + XSingleton.singleton.GameCamera.Collision.Enabled = false; + } + bool flag4 = XSingleton.singleton.GameCamera.VAdjust != null; + if (flag4) + { + XSingleton.singleton.GameCamera.VAdjust.Enabled = false; + } + bool flag5 = XSingleton.singleton.GameCamera.Solo != null; + if (flag5) + { + XSingleton.singleton.GameCamera.Solo.Stop(); + } + foreach (XActorDataClip xactorDataClip in this._cut_scene_data.Actors) + { + this.AddedTimerToken(XSingleton.singleton.SetTimer(xactorDataClip.TimeLineAt / 30f - 0.016f, this._actorOnStageCb, xactorDataClip)); + } + bool generalShow = this._cut_scene_data.GeneralShow; + if (generalShow) + { + bool flag6 = XSingleton.singleton.Boss != null; + if (flag6) + { + this._target = XSingleton.singleton.Boss; + } + else + { + bool flag7 = this.GeneralMonsterID > 0u; + if (flag7) + { + Vector3 zero = Vector3.zero; + float angle = 0f; + bool flag8 = XSingleton.singleton.QueryMonsterStaticInfo(this.GeneralMonsterID, ref zero, ref angle); + if (flag8) + { + this._target = XSingleton.singleton.CreateDummy(this.GeneralMonsterID, zero, XSingleton.singleton.FloatToQuaternion(angle)); + } + else + { + XSingleton.singleton.AddErrorLog("QueryMonsterStaticInfo failed with id ", this.GeneralMonsterID.ToString(), " in cutscene ", this._cut_scene_data.Name, null, null); + } + } + else + { + XSingleton.singleton.AddErrorLog("Missing Boss id in general cutscene script with name ", this._cut_scene_data.Name, null, null, null, null); + } + } + } + XCameraMotionEventArgs @event = XEventPool.GetEvent(); + @event.Motion = this._camera; + @event.Target = this._target; + @event.Trigger = this._cut_scene_data.Trigger; + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + bool flag9 = !this._cut_scene_data.GeneralShow; + if (flag9) + { + foreach (XPlayerDataClip xplayerDataClip in this._cut_scene_data.Player) + { + this.AddedTimerToken(XSingleton.singleton.SetTimer(xplayerDataClip.TimeLineAt / 30f - 0.016f, this._playerOnStageCb, xplayerDataClip)); + } + foreach (XFxDataClip xfxDataClip in this._cut_scene_data.Fxs) + { + this.AddedTimerToken(XSingleton.singleton.SetTimer(xfxDataClip.TimeLineAt / 30f, this._fxCb, xfxDataClip)); + } + } + foreach (XAudioDataClip xaudioDataClip in this._cut_scene_data.Audios) + { + this.AddedTimerToken(XSingleton.singleton.SetTimer(xaudioDataClip.TimeLineAt / 30f, this._audioCb, xaudioDataClip)); + } + bool mourningborder = this._cut_scene_data.Mourningborder; + if (mourningborder) + { + DlgBase.singleton.SetVisible(true, true); + foreach (XSubTitleDataClip xsubTitleDataClip in this._cut_scene_data.SubTitle) + { + this.AddedTimerToken(XSingleton.singleton.SetTimer(xsubTitleDataClip.TimeLineAt / 30f, this._subTitleCb, xsubTitleDataClip)); + } + foreach (XSlashDataClip xslashDataClip in this._cut_scene_data.Slash) + { + this.AddedTimerToken(XSingleton.singleton.SetTimer(xslashDataClip.TimeLineAt / 30f, new XTimerMgr.ElapsedEventHandler(this.Slash), xslashDataClip)); + } + } + else + { + bool flag10 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag10) + { + } + } + bool autoEnd = this._cut_scene_data.AutoEnd; + if (autoEnd) + { + this.AddedTimerToken(XSingleton.singleton.SetTimer((this._cut_scene_data.TotalFrame - 30f) / 30f, this._endShowCb, null)); + } + this.Reflection(); + XSingleton.singleton.Dummilize(this._cut_scene_data.TypeMask); + bool flag11 = this.EndWithPos.sqrMagnitude > 0.1f; + if (flag11) + { + this.CorrectToEndPos(); + } + } + + public void Reflection() + { + bool flag = this._cut_scene_data != null; + if (flag) + { + bool flag2 = !string.IsNullOrEmpty(this._cut_scene_data.Script); + if (flag2) + { + XSingleton.singleton.ExecuteCutScene(this._cut_scene_data.Script, this._actors); + } + } + } + + private void ActorOnStage(object o) + { + XActorDataClip xactorDataClip = o as XActorDataClip; + XActor xactor = null; + bool flag = !string.IsNullOrEmpty(xactorDataClip.Tag); + if (flag) + { + int num = 0; + bool flag2 = int.TryParse(xactorDataClip.Tag, out num) && num > XGame.RoleCount; + if (flag2) + { + return; + } + } + Vector3 pos; + pos= new Vector3(xactorDataClip.AppearX, xactorDataClip.AppearY, xactorDataClip.AppearZ); + bool flag3 = xactorDataClip.bUsingID && xactorDataClip.bToCommonPool; + if (flag3) + { + bool flag4 = !this._common_actors.TryGetValue((uint)xactorDataClip.StatisticsID, out xactor); + if (flag4) + { + xactor = (xactorDataClip.bUsingID ? new XActor((uint)xactorDataClip.StatisticsID, pos, xactorDataClip.Clip) : new XActor(xactorDataClip.Prefab, pos, Quaternion.identity, xactorDataClip.Clip)); + xactor.Initilize(0); + bool flag5 = !string.IsNullOrEmpty(xactorDataClip.Tag); + if (flag5) + { + xactor.EngineObject.Tag = xactorDataClip.Tag; + } + this._common_actors.Add((uint)xactorDataClip.StatisticsID, xactor); + } + else + { + xactor.PlayAnimation(xactorDataClip.Clip); + } + } + else + { + xactor = (xactorDataClip.bUsingID ? new XActor((uint)xactorDataClip.StatisticsID, pos, xactorDataClip.Clip) : new XActor(xactorDataClip.Prefab, pos, Quaternion.identity, xactorDataClip.Clip)); + xactor.Initilize(0); + } + this._actors.Add(xactor); + this.Reflection(); + } + + private void PlayerOnStage(object o) + { + XPlayerDataClip xplayerDataClip = o as XPlayerDataClip; + Vector3 pos; + pos= new Vector3(xplayerDataClip.AppearX, xplayerDataClip.AppearY, xplayerDataClip.AppearZ); + XActor xactor; + switch (XSingleton.singleton.Player.BasicTypeID) + { + case 1u: + xactor = new XActor(pos, xplayerDataClip.Clip1); + break; + case 2u: + xactor = new XActor(pos, xplayerDataClip.Clip2); + break; + case 3u: + xactor = new XActor(pos, xplayerDataClip.Clip3); + break; + case 4u: + xactor = new XActor(pos, xplayerDataClip.Clip4); + break; + case 5u: + xactor = new XActor(pos, xplayerDataClip.Clip5); + break; + case 6u: + xactor = new XActor(pos, xplayerDataClip.Clip6); + break; + case 7u: + xactor = new XActor(pos, xplayerDataClip.Clip7); + break; + default: + xactor = new XActor(pos, null); + break; + } + xactor.Initilize(0); + this._actors.Add(xactor); + this.Reflection(); + } + + private void AttachFx(XGameObject go, object o, int commandID) + { + XFxDataClip xfxDataClip = o as XFxDataClip; + XFx xfx = XSingleton.singleton.CreateFx(xfxDataClip.Fx, null, false); + xfx.DelayDestroy = xfxDataClip.Destroy_Delay; + Transform transform = (go != null) ? go.Find(xfxDataClip.Bone) : null; + bool flag = transform != null; + if (flag) + { + xfx.Play(transform, Vector3.zero, xfxDataClip.Scale * Vector3.one, 1f, xfxDataClip.Follow, false); + bool flag2 = this._common_actors.ContainsValue(this._actors[xfxDataClip.BindIdx]); + if (flag2) + { + this._common_fx.Add(xfx); + } + } + else + { + xfx.Play(new Vector3(xfxDataClip.AppearX, xfxDataClip.AppearY, xfxDataClip.AppearZ), XSingleton.singleton.FloatToQuaternion(xfxDataClip.Face), Vector3.one, 1f); + } + this._fx.Add(xfx); + } + + private void Fx(object o) + { + XFxDataClip xfxDataClip = o as XFxDataClip; + bool flag = xfxDataClip.BindIdx >= 0; + if (flag) + { + XGameObject engineObject = this._actors[xfxDataClip.BindIdx].EngineObject; + engineObject.CallCommand(this._findFxTransCb, o, -1, false); + } + else + { + this.AttachFx(null, o, -1); + } + } + + private void Audio(object o) + { + XAudioDataClip xaudioDataClip = o as XAudioDataClip; + bool flag = xaudioDataClip.BindIdx < 0; + if (flag) + { + XSingleton.singleton.PlayUISound(xaudioDataClip.Clip, true, xaudioDataClip.Channel); + } + else + { + bool flag2 = XSingleton.singleton.Player != null; + if (flag2) + { + XSingleton.singleton.PlaySound(this._actors[xaudioDataClip.BindIdx], xaudioDataClip.Channel, xaudioDataClip.Clip, false, new XAudioExParam("PlayerClass", XSingleton.singleton.Player.PlayerAttributes.BasicTypeID)); + } + else + { + XSingleton.singleton.PlaySound(this._actors[xaudioDataClip.BindIdx], xaudioDataClip.Channel, xaudioDataClip.Clip); + } + } + } + + private void SubTitle(object o) + { + XSubTitleDataClip xsubTitleDataClip = o as XSubTitleDataClip; + DlgBase.singleton.SetText(xsubTitleDataClip.Context); + XSingleton.singleton.KillTimer(this._token); + this._token = XSingleton.singleton.SetTimer(xsubTitleDataClip.Duration / 30f, this._endSubTitleCb, null); + } + + private void Slash(object o) + { + XSlashDataClip xslashDataClip = o as XSlashDataClip; + bool generalShow = this._cut_scene_data.GeneralShow; + if (generalShow) + { + string name = ""; + bool flag = this._target != null && (this._target.IsDummy || XEntity.ValideEntity(this._target)); + if (flag) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._target.TypeID); + bool flag2 = byID != null; + if (flag2) + { + name = byID.Name; + } + } + DlgBase.singleton.SetIntroText(true, name, xslashDataClip.Discription, xslashDataClip.AnchorX, xslashDataClip.AnchorY); + } + else + { + DlgBase.singleton.SetIntroText(true, xslashDataClip.Name, xslashDataClip.Discription, xslashDataClip.AnchorX, xslashDataClip.AnchorY); + } + this.AddedTimerToken(XSingleton.singleton.SetTimer(xslashDataClip.Duration, new XTimerMgr.ElapsedEventHandler(this.EndSlash), null)); + } + + private void EndShow(object o) + { + bool bFadeAtEnd = this._bFadeAtEnd; + if (bFadeAtEnd) + { + XAutoFade.FadeOut2In(1f, 1f); + } + this.AddedTimerToken(XSingleton.singleton.SetTimer(0.984f, this._endCb, null)); + } + + private void EndSlash(object o) + { + DlgBase.singleton.SetIntroText(false, "", "", 0f, 0f); + } + + private void EndSubTitle(object o) + { + DlgBase.singleton.SetText(""); + } + + private void InnerEnd(object o) + { + bool overrideBGM = this._cut_scene_data.OverrideBGM; + if (overrideBGM) + { + XSingleton.singleton.ResumeBGM(); + } + XSingleton.singleton.KillTimer(this._token); + for (int i = 0; i < this._eventToken.Count; i++) + { + XSingleton.singleton.KillTimer(this._eventToken[i]); + } + this._eventToken.Clear(); + XBillBoardDocument.SetAllBillBoardState(BillBoardHideType.CutScene, true); + for (int j = 0; j < this._fx.Count; j++) + { + bool flag = !this._common_fx.Contains(this._fx[j]); + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx[j], true); + } + } + this._fx.Clear(); + for (int k = 0; k < this._actors.Count; k++) + { + bool flag2 = !this._common_actors.ContainsValue(this._actors[k]); + if (flag2) + { + this._actors[k].Uninitilize(); + } + } + this._actors.Clear(); + this._actors = null; + XSingleton.singleton.GameCamera.FovBack(); + this._cut_scene = false; + this._name = null; + XSingleton.singleton.Dedummilize(); + this.Reflection(); + bool mourningborder = this._cut_scene_data.Mourningborder; + if (mourningborder) + { + this.EndSubTitle(null); + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.MakeEffectEnable(XPostEffect.BlackWhite, XSingleton.singleton.Player.IsDead); + } + bool flag3 = !string.IsNullOrEmpty(this._cut_scene_data.CameraClip); + if (flag3) + { + XCameraMotionEndEventArgs @event = XEventPool.GetEvent(); + @event.Target = this._target; + @event.Firer = XSingleton.singleton.GameCamera; + @event.CutSceneEnd = true; + XSingleton.singleton.FireEvent(@event); + } + bool flag4 = this._target != null && this._target.IsDummy; + if (flag4) + { + XSingleton.singleton.DestroyImmediate(this._target); + } + this._target = null; + XSingleton.singleton.Freezed = false; + bool flag5 = XSingleton.singleton.CurrentStage is XConcreteStage; + if (flag5) + { + XSingleton.singleton.ShowBlock(false); + } + bool flag6 = XSingleton.singleton.Player != null && !XSingleton.singleton.IsCurrentLevelFinished; + if (flag6) + { + XSingleton.singleton.EnablePlayerAI(true); + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int l = 0; l < ally.Count; l++) + { + bool flag7 = ally[l] != XSingleton.singleton.Player; + if (flag7) + { + XAIEnableAI event2 = XEventPool.GetEvent(); + event2.Firer = ally[l]; + event2.Enable = true; + XSingleton.singleton.FireEvent(event2); + } + } + } + XSingleton.singleton.GameCamera.TrySolo(); + this.EndWithPos = Vector3.zero; + this.GeneralMonsterID = 0u; + XSingleton.singleton.GameCamera.UnityCamera.farClipPlane = this.farClipPlaneBackUP; + bool flag8 = !XSingleton.singleton.SyncMode && !XOperationData.Is3DMode() && XEntity.ValideEntity(XSingleton.singleton.Player); + if (flag8) + { + XSingleton.singleton.GameCamera.Root_R_Y = XSingleton.singleton.AngleToFloat(XSingleton.singleton.Player.MoveObj.Forward); + } + bool flag9 = DlgBase.singleton.IsVisible(); + if (flag9) + { + DlgBase.singleton.RefreshWelcomeBackFlow(); + } + } + + private void CorrectToEndPos() + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < ally.Count; i++) + { + bool flag = ally[i].IsRole || (ally[i].MobbedBy != null && ally[i].MobbedBy.IsRole && ally[i].Attributes != null && ally[i].Attributes.RunSpeed > 0f); + if (flag) + { + XOnEntityTransferEventArgs @event = XEventPool.GetEvent(); + @event.Firer = ally[i]; + XSingleton.singleton.FireEvent(@event); + ally[i].CorrectMe(this.EndWithPos, XSingleton.singleton.FloatToAngle(this.EndWithDir), false, false); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XCutScene.cs.meta b/Client/Assets/Scripts/XMainClient/XCutScene.cs.meta new file mode 100644 index 00000000..660e70cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XCutScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58720f32d5f4f334c983c61755d68c31 +timeCreated: 1611403754 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDailyActivitiesDocument.cs b/Client/Assets/Scripts/XMainClient/XDailyActivitiesDocument.cs new file mode 100644 index 00000000..9b546292 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDailyActivitiesDocument.cs @@ -0,0 +1,340 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDailyActivitiesDocument : XDocComponent + { + public override uint ID + { + get + { + return XDailyActivitiesDocument.uuID; + } + } + + public XDailyActivitiesView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public List ActivityList + { + get + { + return this._ActivityList; + } + } + + public uint CurrentExp + { + get + { + return this._CurrentExp; + } + } + + public uint WeekExp + { + get + { + return this._WeekExp; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("DailyActivitiesDocument"); + + private XDailyActivitiesView _view = null; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ActivityChestTable _ChestReader = new ActivityChestTable(); + + private static ActivityTable _ActivityReader = new ActivityTable(); + + private List _ActivityList = new List(); + + public uint _CurrentExp = 0u; + + public uint _WeekExp = 0u; + + private uint _ChestsInfo = 0u; + + public List ChestExps = new List(); + + public List WeekExps = new List(); + + public List SpriteName = new List(); + + public SeqListRef Reward = default(SeqListRef); + + public int ChestCount; + + public uint MaxExp; + + public int SeverRedPointNotify = 0; + + public static void Execute(OnLoadedCallback callback = null) + { + XDailyActivitiesDocument.AsyncLoader.AddTask("Table/ActivityChest", XDailyActivitiesDocument._ChestReader, false); + XDailyActivitiesDocument.AsyncLoader.AddTask("Table/Activity", XDailyActivitiesDocument._ActivityReader, false); + XDailyActivitiesDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._ActivityList.Clear(); + this.ChestExps = XSingleton.singleton.GetUIntList("ActivityChestExp"); + this.SpriteName = XSingleton.singleton.GetStringList("ActivityChestSpriteName"); + this.ChestCount = this.ChestExps.Count; + this.MaxExp = this.ChestExps[this.ChestExps.Count - 1]; + this.WeekExps = XSingleton.singleton.GetUIntList("ActivityChestExpWeekly"); + } + + public void QueryDailyActivityData() + { + RpcC2G_GetActivityInfo rpc = new RpcC2G_GetActivityInfo(); + XSingleton.singleton.Send(rpc); + } + + public void GetDailyActivityData(ActivityRecord data) + { + this._ChestsInfo = data.ChestGetInfo; + this._CurrentExp = data.ActivityAllValue; + this._WeekExp = data.activityWeekValue; + this._ActivityList.Clear(); + for (int i = 0; i < data.ActivityId.Count; i++) + { + ActivityTable.RowData activityBasicInfo = this.GetActivityBasicInfo(data.ActivityId[i]); + XDailyActivity xdailyActivity = new XDailyActivity(); + xdailyActivity.id = data.ActivityId[i]; + xdailyActivity.currentCount = data.FinishCount[i]; + xdailyActivity.requiredCount = data.NeedFinishCount[i]; + xdailyActivity.finish = (xdailyActivity.currentCount == xdailyActivity.requiredCount); + xdailyActivity.random = (activityBasicInfo.random > 0u); + xdailyActivity.sysID = activityBasicInfo.id; + this._ActivityList.Add(xdailyActivity); + } + this._ActivityList.Sort(new Comparison(XDailyActivitiesDocument.CompareActivityList)); + bool flag = this.View != null && this.View.active; + if (flag) + { + this.View.RefreshPage(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.FillContent(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward_Activity, true); + } + + private static int CompareActivityList(XDailyActivity act1, XDailyActivity act2) + { + bool flag = act1.finish != act2.finish; + int result; + if (flag) + { + result = (act1.finish ? 1 : -1); + } + else + { + bool flag2 = act1.random != act2.random; + if (flag2) + { + result = (act1.random ? -1 : 1); + } + else + { + result = 0; + } + } + return result; + } + + public bool IsFinishedAllActivity() + { + for (int i = 0; i < this._ActivityList.Count; i++) + { + bool flag = !this._ActivityList[i].finish; + if (flag) + { + return false; + } + } + return true; + } + + public int GetTotalActivityNum() + { + return this._ActivityList.Count; + } + + public int GetFinishedActivityNum() + { + int num = 0; + for (int i = 0; i < this._ActivityList.Count; i++) + { + bool flag = !this._ActivityList[i].finish; + if (flag) + { + num++; + } + } + return num; + } + + public ActivityTable.RowData GetActivityBasicInfo(uint sortid) + { + for (int i = 0; i < XDailyActivitiesDocument._ActivityReader.Table.Length; i++) + { + bool flag = sortid == XDailyActivitiesDocument._ActivityReader.Table[i].sortid; + if (flag) + { + return XDailyActivitiesDocument._ActivityReader.Table[i]; + } + } + return null; + } + + public void DealWithBuyReply() + { + bool flag = DlgBase.singleton._livenessActivityHandler != null && DlgBase.singleton._livenessActivityHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._livenessActivityHandler.InitView(false); + } + } + + public void GetChestReward(uint chestid) + { + uint num = chestid + 1u; + uint level = XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < XDailyActivitiesDocument._ChestReader.Table.Length; i++) + { + ActivityChestTable.RowData rowData = XDailyActivitiesDocument._ChestReader.Table[i]; + bool flag = rowData.chest != num; + if (!flag) + { + bool flag2 = rowData.level[0] <= level && rowData.level[1] >= level; + if (flag2) + { + this.Reward = rowData.viewabledrop; + return; + } + } + } + XSingleton.singleton.AddErrorLog("Can't Find This Player's ActivityChest,chest id = ", num.ToString(), " level = ", level.ToString(), null, null); + } + + public bool IsChestOpend(uint index) + { + uint num = 1u << (int)index; + return (this._ChestsInfo & num) > 0u; + } + + public void ReqFetchChest(uint id) + { + RpcC2G_GetActivityChest rpcC2G_GetActivityChest = new RpcC2G_GetActivityChest(); + rpcC2G_GetActivityChest.oArg.ChestIndex = id; + XSingleton.singleton.Send(rpcC2G_GetActivityChest); + } + + public void OnFetchChest(uint chestID, uint chestInfo, List itemID, List itemCount) + { + this._ChestsInfo = chestInfo; + bool flag = this.View != null && this.View.active; + if (flag) + { + this.View.OnChestFetched(chestID); + } + this.SeverRedPointNotify = 0; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward_Activity, true); + } + + public bool HasCanFetchReward() + { + bool flag = this.SeverRedPointNotify != 0; + bool result; + if (flag) + { + bool flag2 = this.SeverRedPointNotify > 0; + if (flag2) + { + this.SeverRedPointNotify = 0; + result = true; + } + else + { + this.SeverRedPointNotify = 0; + result = false; + } + } + else + { + for (int i = 0; i < this.ChestCount; i++) + { + bool flag3 = !this.IsChestOpend((uint)i) && this.CurrentExp >= this.ChestExps[i]; + if (flag3) + { + return true; + } + } + for (int j = 0; j < this.WeekExps.Count; j++) + { + bool flag4 = !this.IsChestOpend((uint)(this.ChestCount + j)) && this.WeekExp >= this.WeekExps[j]; + if (flag4) + { + return true; + } + } + result = false; + } + return result; + } + + public uint FindNeed2ShowReward() + { + bool flag = this.CurrentExp >= this.MaxExp; + uint result; + if (flag) + { + result = 0u; + } + else + { + for (int i = 0; i < this.ChestCount; i++) + { + bool flag2 = !this.IsChestOpend((uint)i); + if (flag2) + { + return (uint)i; + } + } + result = 0u; + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton._livenessActivityHandler != null && DlgBase.singleton._livenessActivityHandler.IsVisible(); + if (flag) + { + this.QueryDailyActivityData(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDailyActivitiesDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDailyActivitiesDocument.cs.meta new file mode 100644 index 00000000..1376751a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDailyActivitiesDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e851c17a05f0561449c14e4c31641100 +timeCreated: 1611404752 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDailyActivitiesView.cs b/Client/Assets/Scripts/XMainClient/XDailyActivitiesView.cs new file mode 100644 index 00000000..7cbc821c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDailyActivitiesView.cs @@ -0,0 +1,376 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDailyActivitiesView : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/DailyActivity/LivenessActivityFrame"; + } + } + + public XUIPool m_ActivityItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ChestPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public static string TEXTUREPATH = "atlas/UI/Battle/minimap/"; + + private XDailyActivitiesDocument _doc = null; + + private IXUIScrollView _scrollView; + + private XChestProgress m_Progress; + + private IXUILabel totalExp; + + private XNumberTween m_TotalExpTween; + + private IXUILabel m_WeekExp; + + private XNumberTween m_WeekExpTween; + + private IXUILabel m_WeekAward1; + + private IXUILabel m_WeekAward2; + + private IXUISprite m_WeekAwardBox1; + + private IXUISprite m_WeekAwardBox2; + + private IXUISprite m_WeekAwardBox1Redpoint; + + private IXUISprite m_WeekAwardBox2Redpoint; + + private GameObject m_WeekAward1Get; + + private GameObject m_WeekAward2Get; + + private GameObject m_WeekAwardFx1; + + private GameObject m_WeekAwardFx2; + + private bool _refreshNow = true; + + private static readonly uint ExpIncreaseSpeed = 80u; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + this._doc.View = this; + Transform transform = base.PanelObject.transform.Find("RightView/ActivityTpl"); + this.m_ActivityItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this._scrollView = (base.PanelObject.transform.Find("RightView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Progress = new XChestProgress(base.PanelObject.transform.Find("UpView/Progress").GetComponent("XUIProgress") as IXUIProgress); + this.m_Progress.IncreaseSpeed = XDailyActivitiesView.ExpIncreaseSpeed; + transform = base.PanelObject.transform.Find("UpView/Progress/Chests/Chest"); + this.m_ChestPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + transform = base.PanelObject.transform.Find("LeftView/Item"); + this.totalExp = (base.PanelObject.transform.Find("UpView/CurrentExp").GetComponent("XUILabel") as IXUILabel); + this.m_TotalExpTween = XNumberTween.Create(this.totalExp); + this.m_TotalExpTween.SetNumberWithTween(0UL, "", false, true); + this.m_WeekExp = (base.PanelObject.transform.Find("LeftView/Exp").GetComponent("XUILabel") as IXUILabel); + this.m_WeekExpTween = XNumberTween.Create(this.m_WeekExp); + this.m_WeekExpTween.SetNumberWithTween(0UL, "", false, true); + this.m_WeekAward1 = (base.PanelObject.transform.Find("LeftView/Exp500").GetComponent("XUILabel") as IXUILabel); + this.m_WeekAward2 = (base.PanelObject.transform.Find("LeftView/Exp1000").GetComponent("XUILabel") as IXUILabel); + this.m_WeekAwardBox1 = (base.PanelObject.transform.Find("LeftView/Exp500/box").GetComponent("XUISprite") as IXUISprite); + this.m_WeekAwardBox2 = (base.PanelObject.transform.Find("LeftView/Exp1000/box").GetComponent("XUISprite") as IXUISprite); + this.m_WeekAwardBox1Redpoint = (base.PanelObject.transform.Find("LeftView/Exp500/box/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_WeekAwardBox2Redpoint = (base.PanelObject.transform.Find("LeftView/Exp1000/box/RedPoint").GetComponent("XUISprite") as IXUISprite); + this.m_WeekAward1Get = base.PanelObject.transform.Find("LeftView/Exp500/ylq").gameObject; + this.m_WeekAward2Get = base.PanelObject.transform.Find("LeftView/Exp1000/ylq").gameObject; + this.m_WeekAwardFx1 = base.PanelObject.transform.Find("LeftView/Exp500/Fx").gameObject; + this.m_WeekAwardFx2 = base.PanelObject.transform.Find("LeftView/Exp1000/Fx").gameObject; + this.m_ChestPool.ReturnAll(false); + for (int i = 0; i < this._doc.ChestCount; i++) + { + GameObject chest = this.m_ChestPool.FetchGameObject(false); + XChest chest2 = new XChest(chest, this._doc.SpriteName[i]); + this.m_Progress.AddChest(chest2); + } + this.ChangeChestProgressState(true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = 0; i < this._doc.ChestCount; i++) + { + this.m_Progress.ChestList[i].m_Chest.ID = (ulong)((long)i); + this.m_Progress.ChestList[i].m_Chest.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChestClicked)); + } + this.m_WeekAwardBox1.ID = (ulong)((long)this._doc.ChestCount); + this.m_WeekAwardBox1.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnWeekAwardBoxClicked)); + this.m_WeekAwardBox2.ID = (ulong)((long)this._doc.ChestCount + 1L); + this.m_WeekAwardBox2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnWeekAwardBoxClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.InitView(true); + this.SetWeedAwardExp(); + } + + private void SetWeedAwardExp() + { + bool flag = this._doc.WeekExps.Count >= 2; + if (flag) + { + this.m_WeekAward1.SetText(this._doc.WeekExps[0].ToString()); + this.m_WeekAwardBox1.SetGrey(!this._doc.IsChestOpend((uint)this._doc.ChestCount)); + this.m_WeekAward1Get.SetActive(this._doc.IsChestOpend((uint)this._doc.ChestCount)); + bool flag2 = this._doc.WeekExp >= this._doc.WeekExps[0] && !this._doc.IsChestOpend((uint)this._doc.ChestCount); + this.m_WeekAwardBox1Redpoint.SetVisible(flag2); + this.m_WeekAwardFx1.SetActive(flag2); + this.m_WeekAward2.SetText(this._doc.WeekExps[1].ToString()); + this.m_WeekAwardBox2.SetGrey(!this._doc.IsChestOpend((uint)(this._doc.ChestCount + 1))); + this.m_WeekAward2Get.SetActive(this._doc.IsChestOpend((uint)(this._doc.ChestCount + 1))); + bool flag3 = this._doc.WeekExp >= this._doc.WeekExps[1] && !this._doc.IsChestOpend((uint)(this._doc.ChestCount + 1)); + this.m_WeekAwardBox2Redpoint.SetVisible(flag3); + this.m_WeekAwardFx2.SetActive(flag3); + } + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.InitView(false); + this.SetWeedAwardExp(); + } + + public void InitView(bool RefreshNow) + { + if (RefreshNow) + { + this.m_ActivityItemPool.ReturnAll(false); + } + else + { + this._refreshNow = false; + } + this._doc.ActivityList.Clear(); + this._doc.QueryDailyActivityData(); + } + + public override void OnUnload() + { + this.m_Progress.Unload(); + this._doc.View = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + this.m_Progress.Update(Time.deltaTime); + } + + public void SetCurrentExpAmi() + { + this.m_Progress.TargetExp = this._doc.CurrentExp; + this.m_TotalExpTween.SetNumberWithTween((ulong)this._doc.CurrentExp, "", false, true); + this.m_WeekExpTween.SetNumberWithTween((ulong)this._doc.WeekExp, "", false, true); + } + + public void ChangeChestProgressState(bool init = false) + { + for (int i = 0; i < this._doc.ChestCount; i++) + { + XChest xchest = this.m_Progress.ChestList[i]; + if (init) + { + xchest.SetExp(this._doc.ChestExps[i]); + } + xchest.Opened = this._doc.IsChestOpend((uint)i); + } + if (init) + { + this.m_Progress.SetExp(0u, this._doc.MaxExp); + } + } + + public void RefreshPage() + { + this.SetWeedAwardExp(); + this.ChangeChestProgressState(false); + this.SetCurrentExpAmi(); + this._scrollView.SetPosition(0f); + bool flag = !this._refreshNow; + if (flag) + { + this._refreshNow = true; + this.m_ActivityItemPool.ReturnAll(false); + } + for (int i = 0; i < this._doc.ActivityList.Count; i++) + { + GameObject gameObject = this.m_ActivityItemPool.FetchGameObject(true); + gameObject.transform.localPosition = new Vector3(this.m_ActivityItemPool.TplPos.x, this.m_ActivityItemPool.TplPos.y - (float)(i * this.m_ActivityItemPool.TplHeight), this.m_ActivityItemPool.TplPos.z); + this._UpdateActivityState(gameObject, i); + } + } + + private void _UpdateActivityState(GameObject go, int index) + { + XDailyActivity xdailyActivity = this._doc.ActivityList[index]; + ActivityTable.RowData activityBasicInfo = this._doc.GetActivityBasicInfo(xdailyActivity.id); + bool flag = activityBasicInfo == null; + if (flag) + { + go.SetActive(false); + XSingleton.singleton.AddErrorLog("Cant find DailyActivity ID ", xdailyActivity.id.ToString(), ", Skip it", null, null, null); + } + else + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Description").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Exp").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("HuoyueBi").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("Progress").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = go.transform.Find("Finish").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = go.transform.Find("Go").GetComponent("XUIButton") as IXUIButton; + GameObject gameObject = go.transform.Find("Bg").gameObject; + GameObject gameObject2 = go.transform.Find("BgHighight").gameObject; + gameObject.SetActive(activityBasicInfo.random == 0u); + gameObject2.SetActive(activityBasicInfo.random > 0u); + ixuilabel.SetText(activityBasicInfo.title); + ixuilabel2.SetText(activityBasicInfo.name); + bool active = XSingleton.singleton.IsSystemOpened(XSysDefine.Xsys_Backflow); + ixuilabel4.gameObject.SetActive(active); + ixuilabel3.SetText(string.Format("+{0}", activityBasicInfo.value)); + ixuilabel4.SetText("+" + activityBasicInfo.item[0, 1]); + ixuisprite.SetSprite(activityBasicInfo.icon); + ixuilabel5.SetVisible(!xdailyActivity.finish); + ixuisprite2.SetVisible(xdailyActivity.finish); + ixuibutton.SetVisible(!xdailyActivity.finish); + bool flag2 = !xdailyActivity.finish; + if (flag2) + { + ixuilabel5.SetText(string.Format("{0}/{1}", xdailyActivity.currentCount, xdailyActivity.requiredCount)); + IXUIButton ixuibutton2 = go.transform.Find("Go").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.ID = (ulong)((long)index); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGoBtnClicked)); + } + } + } + + private void OnChestClicked(IXUISprite iSp) + { + uint num = (uint)iSp.ID; + bool flag = this.m_Progress.IsExpEnough((int)num) && !this._doc.IsChestOpend(num); + if (flag) + { + this._doc.ReqFetchChest(num); + } + else + { + this.ShowReward(num, iSp); + } + } + + private void OnWeekAwardBoxClicked(IXUISprite iSp) + { + uint num = (uint)iSp.ID; + uint num2 = num - (uint)this._doc.ChestExps.Count; + bool flag = (ulong)num2 < (ulong)((long)this._doc.WeekExps.Count) && num2 >= 0u; + if (flag) + { + bool flag2 = !this._doc.IsChestOpend(num) && this._doc.WeekExp >= this._doc.WeekExps[(int)num2]; + if (flag2) + { + this._doc.ReqFetchChest(num); + } + else + { + this.ShowReward(num, iSp); + } + } + } + + public void ShowReward(uint index, IXUISprite iSp) + { + this._doc.GetChestReward(index); + List list = new List(); + List list2 = new List(); + for (int i = 0; i < this._doc.Reward.Count; i++) + { + list.Add(this._doc.Reward[i, 0]); + list2.Add(this._doc.Reward[i, 1]); + } + DlgBase.singleton.Show(list, list2, false); + DlgBase.singleton.SetGlobalPosition(iSp.gameObject.transform.position); + } + + public void OnChestFetched(uint index) + { + bool flag = (ulong)index < (ulong)((long)this.m_Progress.ChestList.Count); + if (flag) + { + this.m_Progress.ChestList[(int)index].Open(); + } + else + { + bool flag2 = (ulong)index - (ulong)((long)this.m_Progress.ChestList.Count) < (ulong)((long)this._doc.WeekExps.Count); + if (flag2) + { + this.SetWeedAwardExp(); + } + else + { + XSingleton.singleton.AddErrorLog("activity chest index is out of range!", null, null, null, null, null); + } + } + } + + private bool OnGoBtnClicked(IXUIButton btn) + { + bool flag = (int)btn.ID >= this._doc.ActivityList.Count; + bool result; + if (flag) + { + result = true; + } + else + { + DlgBase.singleton.Close(false); + uint num = this._doc.ActivityList[(int)btn.ID].sysID; + bool flag2 = (ulong)num > (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Num)); + if (flag2) + { + num %= 10000u; + } + XSysDefine xsysDefine = (XSysDefine)num; + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 != XSysDefine.XSys_GuildRelax_VoiceQA) + { + if (xsysDefine2 != XSysDefine.XSys_GuildDailyTask) + { + XSingleton.singleton.OpenSystem(xsysDefine, 0UL); + } + else + { + XSingleton.singleton.CloseAllUI(); + XSingleton.singleton.OpenSystem(xsysDefine, 0UL); + } + } + else + { + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Activity); + } + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDailyActivitiesView.cs.meta b/Client/Assets/Scripts/XMainClient/XDailyActivitiesView.cs.meta new file mode 100644 index 00000000..36ec5bdf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDailyActivitiesView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8af2319e8aa2ee4799cf99233fdfa56 +timeCreated: 1611404535 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDailyActivity.cs b/Client/Assets/Scripts/XMainClient/XDailyActivity.cs new file mode 100644 index 00000000..4d4108ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDailyActivity.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XDailyActivity + { + public int priority = -1; + + public uint id; + + public uint requiredCount; + + public uint currentCount; + + public bool finish; + + public bool random; + + public uint sysID; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDailyActivity.cs.meta b/Client/Assets/Scripts/XMainClient/XDailyActivity.cs.meta new file mode 100644 index 00000000..8673e294 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDailyActivity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a056bfa7f489414abadd7b22196f8a7 +timeCreated: 1611403161 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDanceDocument.cs b/Client/Assets/Scripts/XMainClient/XDanceDocument.cs new file mode 100644 index 00000000..0cdcc421 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDanceDocument.cs @@ -0,0 +1,382 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDanceDocument : XDocComponent + { + public override uint ID + { + get + { + return XDanceDocument.uuID; + } + } + + private bool _playerDancing + { + get + { + return XSingleton.singleton.XPlayerData.Outlook.state.bDancing; + } + } + + public static Dictionary> DanceConfigData + { + get + { + return XDanceDocument.m_DanceConfigData; + } + } + + public List SelfConfigData + { + get + { + return this.m_SelfConfigData; + } + } + + public static XDanceDocument Doc + { + get + { + return XDocuments.GetSpecificDocument(XDanceDocument.uuID); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("DanceDocument"); + + private uint _timerToken; + + private bool _dancingEffectPlaying = false; + + private uint _currDancingID; + + private uint _currMotionType = 0u; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static DanceConfig _DanceConfigReader = new DanceConfig(); + + private static Dictionary> m_DanceConfigData = new Dictionary>(); + + private List m_SelfConfigData = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + XDanceDocument.AsyncLoader.AddTask("Table/DanceConfig", XDanceDocument._DanceConfigReader, false); + XDanceDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XDanceDocument.m_DanceConfigData.Clear(); + for (int i = 0; i < XDanceDocument._DanceConfigReader.Table.Length; i++) + { + DanceConfig.RowData rowData = XDanceDocument._DanceConfigReader.Table[i]; + List list; + bool flag = !XDanceDocument.m_DanceConfigData.TryGetValue((uint)rowData.PresentID, out list); + if (flag) + { + list = new List(); + } + list.Add(rowData); + XDanceDocument.m_DanceConfigData[(uint)rowData.PresentID] = list; + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_Move, new XComponent.XEventHandler(this.OnStopAnimation)); + } + + protected bool OnStopAnimation(XEventArgs args) + { + bool playerDancing = this._playerDancing; + if (playerDancing) + { + this.ReqStopJustDance(); + } + return true; + } + + public static DanceConfig.RowData GetDanceConfig(uint motionID) + { + return XDanceDocument._DanceConfigReader.GetByMotionID(motionID); + } + + public string GetDanceAction(uint presentID, uint serverMotionID) + { + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(this.GetSelfActualMotionID(presentID, serverMotionID)); + bool flag = danceConfig != null; + string result; + if (flag) + { + result = danceConfig.Motion; + } + else + { + result = ""; + } + return result; + } + + private uint GetSelfActualMotionID(uint presentID, uint serverMotionID) + { + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(serverMotionID); + bool flag = danceConfig == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + List list; + bool flag2 = XDanceDocument.m_DanceConfigData.TryGetValue(presentID, out list); + if (flag2) + { + for (int i = 0; i < list.Count; i++) + { + bool flag3 = list[i].MotionType == danceConfig.MotionType; + if (flag3) + { + return list[i].MotionID; + } + } + } + result = 0u; + } + return result; + } + + public void GetDanceIDs(uint btnType) + { + this._currMotionType = btnType; + this.GetAllDanceIDs(); + } + + public void GetAllDanceIDs() + { + RpcC2M_GetDanceIds rpcC2M_GetDanceIds = new RpcC2M_GetDanceIds(); + List list; + bool flag = XDanceDocument.m_DanceConfigData.TryGetValue(XSingleton.singleton.Player.PresentID, out list); + if (flag) + { + for (int i = 0; i < list.Count; i++) + { + DanceConfig.RowData rowData = list[i]; + rpcC2M_GetDanceIds.oArg.danceid.Add(rowData.MotionID); + } + } + XSingleton.singleton.Send(rpcC2M_GetDanceIds); + } + + public void OnGetDanceIDs(GetDanceIdsRes oRes) + { + this.m_SelfConfigData.Clear(); + List list = new List(); + for (int i = 0; i < oRes.danceid.Count; i++) + { + DanceMotionData danceMotionData = new DanceMotionData(); + danceMotionData.motionID = oRes.danceid[i]; + danceMotionData.valid = oRes.valid[i]; + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(oRes.danceid[i]); + bool flag = (this._currMotionType == 1u && !danceConfig.LoverMotion) || (this._currMotionType == 2u && danceConfig.LoverMotion); + if (flag) + { + list.Add(danceMotionData); + } + this.m_SelfConfigData.Add(danceMotionData); + } + list.Sort(new Comparison(XDanceDocument.SortMotionID)); + DlgBase.singleton.RefreshMotionPanel(list); + } + + public static int SortMotionID(DanceMotionData data1, DanceMotionData data2) + { + return (int)(data2.valid - data1.valid); + } + + public bool IsUnlock(uint valid, SeqListRef condition) + { + for (int i = 0; i < condition.Count; i++) + { + uint type = condition[i, 0]; + bool flag = !this.IsUnlock(valid, type); + if (flag) + { + return false; + } + } + return true; + } + + public bool IsUnlock(uint valid, uint type) + { + uint num = valid & 1u << (int)type; + return num > 0u; + } + + public void ReqStartJustDance(uint motionID) + { + this._currDancingID = motionID; + bool playerDancing = this._playerDancing; + if (playerDancing) + { + this.ReqStopJustDance(); + } + RpcC2G_JustDance rpcC2G_JustDance = new RpcC2G_JustDance(); + rpcC2G_JustDance.oArg.type = (uint)XFastEnumIntEqualityComparer.ToInt(OutLookStateType.OutLook_Dance); + rpcC2G_JustDance.oArg.danceid = motionID; + XSingleton.singleton.Send(rpcC2G_JustDance); + } + + public void ReqStopJustDance() + { + bool flag = !this._playerDancing; + if (!flag) + { + RpcC2G_JustDance rpcC2G_JustDance = new RpcC2G_JustDance(); + rpcC2G_JustDance.oArg.type = (uint)XFastEnumIntEqualityComparer.ToInt(OutLookStateType.OutLook_Normal); + rpcC2G_JustDance.oArg.danceid = this._currDancingID; + XSingleton.singleton.Send(rpcC2G_JustDance); + } + } + + public void OnJustDance(JustDanceArg oArg, JustDanceRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + + private void StartDance(uint motionID) + { + bool dancingEffectPlaying = this._dancingEffectPlaying; + if (dancingEffectPlaying) + { + this.StopDance(motionID); + } + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(motionID); + bool flag = danceConfig == null; + if (!flag) + { + float num = XSingleton.singleton.Player.PlaySpecifiedAnimationGetLength(danceConfig.Motion); + XSingleton.singleton.KillTimer(this._timerToken); + bool flag2 = danceConfig.LoopCount != 0 && num > 0f; + if (flag2) + { + this._timerToken = XSingleton.singleton.SetTimer(num * (float)danceConfig.LoopCount, new XTimerMgr.ElapsedEventHandler(this.OnFishingStateChange), null); + } + bool flag3 = danceConfig.Music != ""; + if (flag3) + { + XSingleton.singleton.PlaySound(XSingleton.singleton.Player, AudioChannel.Action, danceConfig.Music); + XSingleton.singleton.PauseBGM(); + } + this._dancingEffectPlaying = true; + } + } + + private void OnFishingStateChange(object o = null) + { + this.ReqStopJustDance(); + } + + private void StopDance(uint motionID) + { + bool flag = !this._dancingEffectPlaying; + if (!flag) + { + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(motionID); + bool flag2 = danceConfig == null; + if (!flag2) + { + XSingleton.singleton.KillTimer(this._timerToken); + bool flag3 = danceConfig.Music != ""; + if (flag3) + { + XSingleton.singleton.StopSound(XSingleton.singleton.Player, AudioChannel.Action); + XSingleton.singleton.ResumeBGM(); + } + this._dancingEffectPlaying = false; + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.ReqStopJustDance(); + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + bool dancingEffectPlaying = this._dancingEffectPlaying; + if (dancingEffectPlaying) + { + XSingleton.singleton.StopSound(XSingleton.singleton.Player, AudioChannel.Action); + } + this._dancingEffectPlaying = false; + XSingleton.singleton.KillTimer(this._timerToken); + this._timerToken = 0u; + } + + public static void OnDance(bool bDancing, XEntity entity, uint motionID) + { + motionID = XDanceDocument.Doc.GetSelfActualMotionID(entity.PresentID, motionID); + bool flag = entity != null && bDancing; + if (flag) + { + DanceConfig.RowData danceConfig = XDanceDocument.GetDanceConfig(motionID); + bool flag2 = danceConfig != null && danceConfig.EffectPath != ""; + if (flag2) + { + XSingleton.singleton.CreateAndPlay(danceConfig.EffectPath, entity.MoveObj, Vector3.zero, Vector3.one, 1f, false, danceConfig.EffectTime, true); + } + } + bool flag3 = entity == null || !entity.IsPlayer; + if (!flag3) + { + int @int = XSingleton.singleton.GetInt("NPCRamdom"); + int num = UnityEngine.Random.Range(0, 100); + List npcs = XSingleton.singleton.GetNpcs(XSingleton.singleton.SceneID); + bool flag4 = npcs != null && num > @int; + if (flag4) + { + int i = 0; + int count = npcs.Count; + while (i < count) + { + XNpc npc = XSingleton.singleton.GetNpc(npcs[i]); + bool flag5 = npc != null; + if (flag5) + { + npc.InteractRoleDance(entity as XRole, bDancing); + } + i++; + } + } + XDanceDocument specificDocument = XDocuments.GetSpecificDocument(XDanceDocument.uuID); + if (bDancing) + { + specificDocument.StartDance(motionID); + } + else + { + specificDocument.StopDance(motionID); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDanceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDanceDocument.cs.meta new file mode 100644 index 00000000..3f8c0bd8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDanceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23182661b47e1834680d23b465eca8f1 +timeCreated: 1611403426 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDataBase.cs b/Client/Assets/Scripts/XMainClient/XDataBase.cs new file mode 100644 index 00000000..c264fefe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDataBase.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public abstract class XDataBase + { + public bool bRecycled = true; + + public virtual void Recycle() + { + } + + public virtual void Init() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDataBase.cs.meta b/Client/Assets/Scripts/XMainClient/XDataBase.cs.meta new file mode 100644 index 00000000..e3690e9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDataBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad5e58c52a1d31646b15fe42e7c3f11d +timeCreated: 1611404334 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDataPool.cs b/Client/Assets/Scripts/XMainClient/XDataPool.cs new file mode 100644 index 00000000..9cdf3e4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDataPool.cs @@ -0,0 +1,41 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + public class XDataPool where T : XDataBase, new() + { + private static Queue _pool = new Queue(); + + public static T GetData() + { + bool flag = XDataPool._pool.Count > 0; + T result; + if (flag) + { + T t = XDataPool._pool.Dequeue(); + t.Init(); + t.bRecycled = false; + result = t; + } + else + { + T t2 = Activator.CreateInstance(); + t2.Init(); + t2.bRecycled = false; + result = t2; + } + return result; + } + + public static void Recycle(T data) + { + bool flag = !data.bRecycled; + if (flag) + { + XDataPool._pool.Enqueue(data); + data.bRecycled = true; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDataPool.cs.meta b/Client/Assets/Scripts/XMainClient/XDataPool.cs.meta new file mode 100644 index 00000000..8777f870 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDataPool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 99d954ea8fa1cd94c9aaa73093c9964e +timeCreated: 1611404197 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDeath.cs b/Client/Assets/Scripts/XMainClient/XDeath.cs new file mode 100644 index 00000000..76c90069 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDeath.cs @@ -0,0 +1,17 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XDeath : XSingleton + { + public void DeathDetect(XEntity entity, XEntity killer, bool bForce) + { + bool flag = bForce || entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic) <= 0.0; + if (flag) + { + entity.TriggerDeath(killer); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDeath.cs.meta b/Client/Assets/Scripts/XMainClient/XDeath.cs.meta new file mode 100644 index 00000000..ec996da6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDeath.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 527fc629a0383eb4694abfb4a8f2b131 +timeCreated: 1611403708 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDeck.cs b/Client/Assets/Scripts/XMainClient/XDeck.cs new file mode 100644 index 00000000..1d5e1ddb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDeck.cs @@ -0,0 +1,248 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDeck + { + private XCardCollectDocument cardDoc + { + get + { + return XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + } + } + + public List AttrBase + { + get + { + return this._AttrBase; + } + } + + public List AttrPer + { + get + { + return this._AttrPer; + } + } + + public List AttrSum + { + get + { + return this._AttrSum; + } + } + + public int CurStarLevel + { + get + { + return this.m_CurStarLevel; + } + set + { + bool flag = value > this.StarLevelMAX; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "CardGroupID ", + this.cardDoc.CurSelectGroup, + " Star Error!\nStar:", + value, + " StarMAX:", + this.StarLevelMAX + }), null, null, null, null, null); + } + this.m_CurStarLevel = value; + } + } + + public static readonly uint DECK_PER_REWARD_COUNT_MAX = 6u; + + public static readonly uint GROUP_NEED_CARD_MAX = 6u; + + public string Name; + + public int ActionNum; + + public bool IsDeckDirty; + + public XBetterDictionary combDic = new XBetterDictionary(0); + + private List _ShowCardsGroupInfo = new List(); + + private List _AttrBase = new List(); + + private List _AttrPer = new List(); + + private List _AttrSum = new List(); + + public List> ActionNumReward = new List>(); + + public List CardList = new List(); + + public int StarLevelMAX = 0; + + private int m_CurStarLevel; + + public bool redPoint; + + public struct Attribute + { + public uint id; + + public uint num; + } + + public void Init() + { + this.IsDeckDirty = true; + this.ActionNum = 0; + this.m_CurStarLevel = 0; + for (int i = 0; i < this.combDic.BufferValues.Count; i++) + { + XCardCombination xcardCombination = this.combDic.BufferValues[i]; + xcardCombination.status = CardCombinationStatus.None; + } + this._AttrBase.Clear(); + this._AttrPer.Clear(); + this._AttrSum.Clear(); + this.redPoint = false; + } + + public XCardCombination FindCardCombination(uint teamId) + { + XCardCombination result; + bool flag = !this.combDic.TryGetValue(teamId, out result); + if (flag) + { + XSingleton.singleton.AddErrorLog("Card TeamId No Find! CardTeamId: " + teamId, null, null, null, null, null); + } + return result; + } + + public void RefreshRedPoint() + { + this.redPoint = false; + for (int i = 0; i < this.combDic.BufferValues.Count; i++) + { + bool flag = this.combDic.BufferValues[i].status == CardCombinationStatus.Activated; + if (!flag) + { + XCardCombination xcardCombination = this.combDic.BufferValues[i]; + bool flag2 = true; + int curStarLevel = this.CurStarLevel; + bool flag3 = curStarLevel >= xcardCombination.starPostion.Count; + if (flag3) + { + xcardCombination.status = CardCombinationStatus.NoCanActive; + } + else + { + int num = xcardCombination.starPostion[curStarLevel]; + int num2 = 0; + while ((long)num2 < (long)((ulong)xcardCombination.data.StarFireCondition[num, 0])) + { + int itemID = (int)xcardCombination.data.StarFireCondition[num + num2 + 1, 0]; + bool flag4 = (long)this.cardDoc.GetCardCount(itemID) < (long)((ulong)xcardCombination.data.StarFireCondition[num + num2 + 1, 1]); + if (flag4) + { + flag2 = false; + break; + } + num2++; + } + bool flag5 = flag2; + if (flag5) + { + xcardCombination.status = CardCombinationStatus.CanActive; + this.redPoint = true; + } + else + { + xcardCombination.status = CardCombinationStatus.NoCanActive; + } + } + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_CardCollect, true); + } + + private void RefreshCardsGroup() + { + this.RefreshRedPoint(); + this._ShowCardsGroupInfo.Clear(); + for (int i = 0; i < this.combDic.BufferValues.Count; i++) + { + bool flag = this.combDic.BufferValues[i].status == CardCombinationStatus.CanActive; + if (flag) + { + this._ShowCardsGroupInfo.Add(this.combDic.BufferValues[i]); + } + } + for (int j = 0; j < this.combDic.BufferValues.Count; j++) + { + bool flag2 = this.combDic.BufferValues[j].status == CardCombinationStatus.NoCanActive; + if (flag2) + { + this._ShowCardsGroupInfo.Add(this.combDic.BufferValues[j]); + } + } + for (int k = 0; k < this.combDic.BufferValues.Count; k++) + { + bool flag3 = this.combDic.BufferValues[k].status == CardCombinationStatus.Activated; + if (flag3) + { + this._ShowCardsGroupInfo.Add(this.combDic.BufferValues[k]); + } + } + this.IsDeckDirty = false; + } + + public void RefreshAttr(SynCardAttr data) + { + this._AttrBase.Clear(); + this._AttrPer.Clear(); + this._AttrSum.Clear(); + for (int i = 0; i < data.addAttr.Count; i++) + { + XDeck.Attribute item = default(XDeck.Attribute); + item.id = data.addAttr[i].id; + item.num = data.addAttr[i].num; + this._AttrBase.Add(item); + } + for (int j = 0; j < data.addper.Count; j++) + { + XDeck.Attribute item2 = default(XDeck.Attribute); + item2.id = data.addper[j].id; + item2.num = data.addper[j].num; + this._AttrPer.Add(item2); + } + for (int k = 0; k < data.allAttr.Count; k++) + { + XDeck.Attribute attribute = default(XDeck.Attribute); + attribute.id = data.allAttr[k].id; + attribute.num = data.allAttr[k].num; + this.cardDoc.AddAttribute(attribute.id, attribute.num); + this._AttrSum.Add(attribute); + } + } + + public XCardCombination GetShowCardsGroupInfo(int index) + { + bool isDeckDirty = this.IsDeckDirty; + if (isDeckDirty) + { + this.RefreshCardsGroup(); + } + return this._ShowCardsGroupInfo[index]; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDeck.cs.meta b/Client/Assets/Scripts/XMainClient/XDeck.cs.meta new file mode 100644 index 00000000..eb81a3b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDeck.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc411765fdc11104db65ddff71cb5924 +timeCreated: 1611404445 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDesignationDocument.cs b/Client/Assets/Scripts/XMainClient/XDesignationDocument.cs new file mode 100644 index 00000000..8aeeb616 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDesignationDocument.cs @@ -0,0 +1,661 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDesignationDocument : XDocComponent + { + public override uint ID + { + get + { + return XDesignationDocument.uuID; + } + } + + public DesignationTable _DesignationTable + { + get + { + return XDesignationDocument._designationTable; + } + } + + public List> DesList + { + get + { + return this._desList; + } + } + + public string SpecialDesignation + { + get + { + return this._specialDesignation; + } + } + + public uint CoverDesignationID + { + get + { + return this._coverDesignationID; + } + } + + public uint AbilityDesignationID + { + get + { + return this._abilityDesignationID; + } + } + + public bool RedPoint + { + get + { + return this._redPoint; + } + set + { + this._redPoint = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("DesignationDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public List achievesDetails = new List(); + + public XAchieveView achieveView; + + public GetAchieveBrifInfoRes achieveSurveyInfo; + + private static DesignationTable _designationTable = new DesignationTable(); + + public static AchievementV2Table achieveTable = new AchievementV2Table(); + + public static AchievementPointRewardTable achieveRwdTable = new AchievementPointRewardTable(); + + private List> _desList = new List>(); + + private HashSet hash = new HashSet(); + + private static readonly int DESIGNATION_FRAME_RATE = 16; + + private string _specialDesignation; + + private uint _coverDesignationID; + + private uint _abilityDesignationID; + + public bool IsMaxAbilityDes; + + public int LastDisPlayTab = 0; + + public uint MaxAbilityDesNum; + + private bool _redPoint = false; + + private uint _lastSurveyID = 0u; + + public double GetSignTime; + + public static void Execute(OnLoadedCallback callback = null) + { + XDesignationDocument.AsyncLoader.AddTask("Table/Designation", XDesignationDocument._designationTable, false); + XDesignationDocument.AsyncLoader.AddTask("Table/Achievement", XDesignationDocument.achieveTable, false); + XDesignationDocument.AsyncLoader.AddTask("Table/AchievementPointReward", XDesignationDocument.achieveRwdTable, false); + XDesignationDocument.AsyncLoader.Execute(callback); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public string GetMyCoverDesignation() + { + DesignationTable.RowData byID = XDesignationDocument._designationTable.GetByID((int)this._coverDesignationID); + bool flag = byID == null; + string result; + if (flag) + { + result = XStringDefineProxy.GetString("NONE"); + } + else + { + bool flag2 = byID.Effect == ""; + if (flag2) + { + bool special = byID.Special; + if (special) + { + result = byID.Color + this._specialDesignation; + } + else + { + result = byID.Color + byID.Designation; + } + } + else + { + result = XLabelSymbolHelper.FormatAnimation(byID.Atlas, byID.Effect, XDesignationDocument.DESIGNATION_FRAME_RATE); + } + } + return result; + } + + private int Compare(DesignationInfo x, DesignationInfo y) + { + bool flag = x.ID == y.ID; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = x.isNew != y.isNew; + if (flag2) + { + result = (y.isNew ? 1 : -1); + } + else + { + bool flag3 = x.completed != y.completed; + if (flag3) + { + result = (y.completed ? 1 : -1); + } + else + { + result = x.sortID - y.sortID; + } + } + } + return result; + } + + public void UpdateRedPoints() + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Design, true); + } + + public void SendQueryDesignationInfo() + { + RpcC2G_GetDesignationReq rpc = new RpcC2G_GetDesignationReq(); + XSingleton.singleton.Send(rpc); + } + + public void SendQuerySetDesignation(uint type, uint ID) + { + RpcC2G_SetDesignationReq rpcC2G_SetDesignationReq = new RpcC2G_SetDesignationReq(); + rpcC2G_SetDesignationReq.oArg.type = type; + rpcC2G_SetDesignationReq.oArg.designationID = ID; + XSingleton.singleton.Send(rpcC2G_SetDesignationReq); + } + + public void SendQueryDesignationList(uint type) + { + RpcC2G_GetClassifyDesignationReq rpcC2G_GetClassifyDesignationReq = new RpcC2G_GetClassifyDesignationReq(); + rpcC2G_GetClassifyDesignationReq.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_GetClassifyDesignationReq); + } + + public void SetTabRedPoint(List list) + { + bool flag = DlgBase.singleton._DesignationHandler != null && DlgBase.singleton._DesignationHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._DesignationHandler.SetTabRedPoint(list); + } + } + + public void DealWithAppearRedPoint(uint abilityDesID, List list) + { + bool flag = this.IsMaxAbilityDes && this.GetPPTOfAbilityDes(abilityDesID) != this.MaxAbilityDesNum; + if (flag) + { + this.SetTabRedPoint(list); + } + } + + public void SendQueryGetAchiPointReward(uint ID) + { + bool flag = ID != this._lastSurveyID; + if (flag) + { + RpcC2G_GetAchievePointRewardReq rpcC2G_GetAchievePointRewardReq = new RpcC2G_GetAchievePointRewardReq(); + rpcC2G_GetAchievePointRewardReq.oArg.rewardId = ID; + this._lastSurveyID = ID; + XSingleton.singleton.Send(rpcC2G_GetAchievePointRewardReq); + } + } + + public void SetDesignationListData(List list, int type) + { + this.GetSignTime = this.GetNowTime(); + this.hash.Clear(); + this._desList[type].Clear(); + uint level = XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < list.Count; i++) + { + this.hash.Add((int)list[i].designationID); + DesignationTable.RowData byID = XDesignationDocument._designationTable.GetByID((int)list[i].designationID); + bool flag = byID == null || (ulong)level < (ulong)((long)byID.Level[0]) || (ulong)level > (ulong)((long)byID.Level[1]) || !this.CheckChannelShow(byID); + if (!flag) + { + DesignationInfo designationInfo = new DesignationInfo(); + designationInfo.isNew = list[i].isNew; + designationInfo.ID = byID.ID; + designationInfo.desName = byID.Designation; + designationInfo.explanation = byID.Explanation; + designationInfo.attribute = byID.Attribute; + designationInfo.color = byID.Color; + designationInfo.completed = true; + designationInfo.effect = byID.Effect; + designationInfo.atlas = byID.Atlas; + designationInfo.sortID = byID.SortID; + bool flag2 = byID.Pragmaticality != 0 && list[i].reachTimestamp > 0u; + if (flag2) + { + designationInfo.leftTime = (int)list[i].reachTimestamp; + } + else + { + designationInfo.leftTime = -1; + } + this._desList[type].Add(designationInfo); + } + } + int j = 0; + while (j < XDesignationDocument._designationTable.Table.Length) + { + bool flag3 = XDesignationDocument._designationTable.Table[j].Type == type + 1; + if (flag3) + { + bool flag4 = !this.hash.Contains(XDesignationDocument._designationTable.Table[j].ID); + if (flag4) + { + DesignationTable.RowData byID2 = XDesignationDocument._designationTable.GetByID(XDesignationDocument._designationTable.Table[j].ID); + bool flag5 = byID2 == null || (ulong)level < (ulong)((long)byID2.Level[0]) || (ulong)level > (ulong)((long)byID2.Level[1]) || !this.CheckChannelShow(byID2); + if (!flag5) + { + DesignationInfo designationInfo2 = new DesignationInfo(); + designationInfo2.isNew = false; + designationInfo2.ID = byID2.ID; + designationInfo2.desName = byID2.Designation; + designationInfo2.explanation = byID2.Explanation; + designationInfo2.attribute = byID2.Attribute; + designationInfo2.color = byID2.Color; + designationInfo2.completed = false; + designationInfo2.effect = byID2.Effect; + designationInfo2.atlas = byID2.Atlas; + designationInfo2.sortID = byID2.SortID; + designationInfo2.leftTime = -1; + this._desList[type].Add(designationInfo2); + } + } + } + IL_2ED: + j++; + continue; + goto IL_2ED; + } + this._desList[type].Sort(new Comparison(this.Compare)); + this.hash.Clear(); + bool flag6 = DlgBase.singleton._DesignationHandler != null && DlgBase.singleton._DesignationHandler.IsVisible(); + if (flag6) + { + DlgBase.singleton._DesignationHandler.SetDesignationList(this._desList[type], type, true); + } + } + + private bool CheckChannelShow(DesignationTable.RowData data) + { + bool flag = data.Channel == 0; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = data.Channel == 1; + if (flag2) + { + result = (XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + } + else + { + bool flag3 = data.Channel == 2; + if (flag3) + { + result = (XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + } + else + { + XSingleton.singleton.AddErrorLog("designation channel error! check config on designation table. ID = ", data.ID.ToString(), null, null, null, null); + result = true; + } + } + } + return result; + } + + public uint GetPPTOfAbilityDes(uint ID) + { + DesignationTable.RowData byID = XDesignationDocument._designationTable.GetByID((int)ID); + bool flag = ID == 0u || byID == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + double num = 0.0; + for (int i = 0; i < byID.Attribute.Count; i++) + { + num += XSingleton.singleton.GetPPT(byID.Attribute[i, 0], byID.Attribute[i, 1], null, -1); + } + result = (uint)num; + } + return result; + } + + public void SetCoverDesignationID(uint ID, string specialDesi) + { + this._specialDesignation = specialDesi; + this._coverDesignationID = ID; + XDesignationInfoChange @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + } + + public void SetDesignationInfo(uint type, uint ID, string specialDesi) + { + bool flag = type == 1u; + if (flag) + { + this.SetCoverDesignationID(ID, specialDesi); + } + else + { + this._abilityDesignationID = ID; + bool flag2 = this.GetPPTOfAbilityDes(this._abilityDesignationID) == this.MaxAbilityDesNum; + if (flag2) + { + bool flag3 = !this.IsMaxAbilityDes; + if (flag3) + { + this.IsMaxAbilityDes = true; + bool flag4 = DlgBase.singleton._DesignationHandler != null && DlgBase.singleton._DesignationHandler.IsVisible(); + if (flag4) + { + DlgBase.singleton._DesignationHandler.HideTabRedPoint(); + } + } + } + else + { + bool isMaxAbilityDes = this.IsMaxAbilityDes; + if (isMaxAbilityDes) + { + this.IsMaxAbilityDes = false; + } + } + } + bool flag5 = DlgBase.singleton._DesignationHandler != null && DlgBase.singleton._DesignationHandler.IsVisible(); + if (flag5) + { + DlgBase.singleton._DesignationHandler.SetCurrentChooseDes(type, ID); + DlgBase.singleton._DesignationHandler.SetDesignationList(this._desList[this.LastDisPlayTab], this.LastDisPlayTab, false); + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._desList.Clear(); + for (int i = 0; i < 6; i++) + { + List item = new List(); + this._desList.Add(item); + } + } + + private int Sort(AchieveItemInfo x, AchieveItemInfo y) + { + bool flag = x.state != y.state; + int result; + if (flag) + { + result = x.state - y.state; + } + else + { + bool flag2 = x.row.SortID != y.row.SortID; + if (flag2) + { + result = x.row.SortID - y.row.SortID; + } + else + { + result = x.row.ID - y.row.ID; + } + } + return result; + } + + public void FetchAchieveSurvey() + { + RpcC2G_GetAchieveBrifInfoReq rpc = new RpcC2G_GetAchieveBrifInfoReq(); + XSingleton.singleton.Send(rpc); + } + + public void OnResAchieveSurvey(GetAchieveBrifInfoRes oRes) + { + this.achieveSurveyInfo = oRes; + bool flag = this.achieveView != null && this.achieveView.IsVisible(); + if (flag) + { + this.achieveView.RefreshSurvey(); + } + else + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetAchievementLabel(); + } + } + } + + public void GetPPT(out string text, out uint value, SeqListRef list, bool hasLineBreak = false) + { + text = ""; + double num = 0.0; + for (int i = 0; i < list.Count; i++) + { + num += XSingleton.singleton.GetPPT(list[i, 0], list[i, 1], null, -1); + text += XStringDefineProxy.GetString((XAttributeDefine)list[i, 0]); + text = text + "+" + list[i, 1].ToString(); + text += " "; + bool flag = hasLineBreak && i == 1 && i + 1 < list.Count; + if (flag) + { + text += "\n"; + } + } + value = (uint)num; + } + + public void FetchAchieveType(AchieveType type) + { + RpcC2G_GetAchieveClassifyInfoReq rpcC2G_GetAchieveClassifyInfoReq = new RpcC2G_GetAchieveClassifyInfoReq(); + rpcC2G_GetAchieveClassifyInfoReq.oArg.type = (uint)type; + XSingleton.singleton.Send(rpcC2G_GetAchieveClassifyInfoReq); + } + + public void OnResAchieveType(GetAchieveClassifyInfoRes oRes) + { + this.achievesDetails.Clear(); + bool flag = this.achieveView != null && this.achieveView.IsVisible(); + if (flag) + { + foreach (StcAchieveInfo stcAchieveInfo in oRes.dataList) + { + AchieveItemInfo achieveItemInfo = new AchieveItemInfo(); + achieveItemInfo.row = this.FindAchieve(stcAchieveInfo); + bool flag2 = stcAchieveInfo.rewardStatus == 0u; + if (flag2) + { + achieveItemInfo.state = AchieveState.Normal; + } + else + { + bool flag3 = stcAchieveInfo.rewardStatus == 1u; + if (flag3) + { + achieveItemInfo.state = AchieveState.Claim; + } + else + { + achieveItemInfo.state = AchieveState.Claimed; + } + } + this.achievesDetails.Add(achieveItemInfo); + } + foreach (AchievementV2Table.RowData rowData in XDesignationDocument.achieveTable.Table) + { + bool flag4 = !this.FindAchieve(rowData); + if (flag4) + { + bool flag5 = rowData.Type == (int)this.achieveView.m_achieveType; + if (flag5) + { + AchieveItemInfo achieveItemInfo2 = new AchieveItemInfo(); + achieveItemInfo2.row = rowData; + achieveItemInfo2.state = AchieveState.Normal; + this.achievesDetails.Add(achieveItemInfo2); + } + } + } + this.achievesDetails.Sort(new Comparison(this.Sort)); + this.achieveView.RefreshDetails(); + } + } + + public bool FindAchieve(AchievementV2Table.RowData row) + { + foreach (AchieveItemInfo achieveItemInfo in this.achievesDetails) + { + bool flag = achieveItemInfo.row.ID == row.ID; + if (flag) + { + return true; + } + } + return false; + } + + public AchievementV2Table.RowData FindAchieve(StcAchieveInfo info) + { + foreach (AchievementV2Table.RowData rowData in XDesignationDocument.achieveTable.Table) + { + bool flag = (long)rowData.ID == (long)((ulong)info.achieveID); + if (flag) + { + return rowData; + } + } + XSingleton.singleton.AddErrorLog("not find info in achievement table id: ", info.achieveID.ToString(), null, null, null, null); + return null; + } + + public void OnReachAhieveNtf(PtcG2C_ReachAchieveNtf res) + { + uint achieveID = res.Data.achieveID; + foreach (AchievementV2Table.RowData rowData in XDesignationDocument.achieveTable.Table) + { + bool flag = (long)rowData.ID == (long)((ulong)achieveID); + if (flag) + { + DlgBase.singleton.Show(rowData); + } + } + } + + public void OnReachDesignationNtf(PtcG2C_ReachDesignationNtf res) + { + DesignationTable.RowData byID = XDesignationDocument._designationTable.GetByID((int)res.Data.designationID); + DlgBase.singleton.ShowDesignation(byID); + } + + public void ClaimAchieve(int id) + { + XSingleton.singleton.AddLog("ClaimAchieve ", id.ToString(), null, null, null, null, XDebugColor.XDebug_None); + RpcC2G_GetAchieveRewardReq rpcC2G_GetAchieveRewardReq = new RpcC2G_GetAchieveRewardReq(); + rpcC2G_GetAchieveRewardReq.oArg.achieveID = (uint)id; + XSingleton.singleton.Send(rpcC2G_GetAchieveRewardReq); + } + + public void OnClaimedAchieve(uint id) + { + bool flag = this.achievesDetails != null && this.achieveView != null && this.achieveSurveyInfo != null; + if (flag) + { + for (int i = 0; i < this.achievesDetails.Count; i++) + { + bool flag2 = this.achievesDetails[i].row.ID == (int)id; + if (flag2) + { + this.achievesDetails[i].state = AchieveState.Claimed; + break; + } + } + foreach (AchievementV2Table.RowData rowData in XDesignationDocument.achieveTable.Table) + { + bool flag3 = (long)rowData.ID == (long)((ulong)id); + if (flag3) + { + foreach (AchieveBriefInfo achieveBriefInfo in this.achieveSurveyInfo.dataList) + { + bool flag4 = (ulong)achieveBriefInfo.achieveClassifyType == (ulong)((long)rowData.Type); + if (flag4) + { + AchieveBriefInfo achieveBriefInfo2 = achieveBriefInfo; + uint canRewardCount = achieveBriefInfo2.canRewardCount; + achieveBriefInfo2.canRewardCount = canRewardCount - 1u; + this.achieveView.RefreshPoints(); + bool flag5 = achieveBriefInfo.canRewardCount <= 0u; + if (flag5) + { + this.FetchAchieveSurvey(); + } + break; + } + } + break; + } + } + this.achievesDetails.Sort(new Comparison(this.Sort)); + this.achieveView.RefreshDetails(); + } + } + + public double GetNowTime() + { + return (double)(DateTime.Now.Ticks / 10000000L); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDesignationDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDesignationDocument.cs.meta new file mode 100644 index 00000000..06c597fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDesignationDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 468f8b74589e0d84eaf71d652ccc334c +timeCreated: 1611403650 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDesignationInfoChange.cs b/Client/Assets/Scripts/XMainClient/XDesignationInfoChange.cs new file mode 100644 index 00000000..65ca6ff3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDesignationInfoChange.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XDesignationInfoChange : XEventArgs + { + public XDesignationInfoChange() + { + this._eDefine = XEventDefine.XEvent_DesignationInfoChange; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDesignationInfoChange.cs.meta b/Client/Assets/Scripts/XMainClient/XDesignationInfoChange.cs.meta new file mode 100644 index 00000000..8b68b50a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDesignationInfoChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1cec80d4ff4231744b193d3977a4590f +timeCreated: 1611403350 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDialogSentence.cs b/Client/Assets/Scripts/XMainClient/XDialogSentence.cs new file mode 100644 index 00000000..75858bca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDialogSentence.cs @@ -0,0 +1,92 @@ +using System; + +namespace XMainClient +{ + internal struct XDialogSentence + { + public int Talker + { + get + { + return this.m_Talker; + } + set + { + this.m_Talker = value; + this.m_Inited = true; + } + } + + public string Content + { + get + { + return this.m_Content; + } + set + { + this.m_Content = value; + } + } + + public string Voice + { + get + { + return this.m_Voice; + } + set + { + this.m_Voice = value; + } + } + + public bool bCanReject + { + get + { + return this.m_bCanReject; + } + set + { + this.m_bCanReject = value; + } + } + + public bool Inited + { + get + { + return this.m_Inited; + } + } + + private int m_Talker; + + private string m_Content; + + private string m_Voice; + + private bool m_bCanReject; + + private bool m_Inited; + + public XDialogSentence(int _talker, string _content, string _voice = null, bool _bCanReject = false) + { + this.m_Talker = _talker; + this.m_Inited = false; + this.m_Content = _content; + this.m_Voice = _voice; + this.m_bCanReject = _bCanReject; + } + + public void Reset() + { + this.m_Talker = -1; + this.Content = string.Empty; + this.Voice = string.Empty; + this.m_bCanReject = false; + this.m_Inited = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDialogSentence.cs.meta b/Client/Assets/Scripts/XMainClient/XDialogSentence.cs.meta new file mode 100644 index 00000000..891afd3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDialogSentence.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c3f3ea0fabc889b41b25ccc4c564e244 +timeCreated: 1611404499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDocComponent.cs b/Client/Assets/Scripts/XMainClient/XDocComponent.cs new file mode 100644 index 00000000..4365dfcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDocComponent.cs @@ -0,0 +1,39 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XDocComponent : XComponent + { + public override void InitilizeBuffer() + { + XSingleton.singleton.GetBuffer(ref this._eventMap, 4); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_OnReconnected, new XComponent.XEventHandler(this.Reconnect)); + } + + protected bool Reconnect(XEventArgs args) + { + XReconnectedEventArgs arg = args as XReconnectedEventArgs; + this.OnReconnected(arg); + return true; + } + + public virtual void OnEnterSceneFinally() + { + } + + public virtual void OnSceneStarted() + { + } + + public virtual void OnGamePause(bool pause) + { + } + + protected abstract void OnReconnected(XReconnectedEventArgs arg); + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDocComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XDocComponent.cs.meta new file mode 100644 index 00000000..23674e05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDocComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4eb91c72ed68a7d41912ab0ff2f5f02b +timeCreated: 1611403699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDocuments.cs b/Client/Assets/Scripts/XMainClient/XDocuments.cs new file mode 100644 index 00000000..6b37a93e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDocuments.cs @@ -0,0 +1,482 @@ +using System; +using System.Collections.Generic; +using System.Threading; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XDocuments : XObject + { + public XBagDocument XBagDoc + { + get + { + return this._bag_doc; + } + } + + public XBattleDocument XBattleDoc + { + get + { + return this._battle_doc; + } + } + + public XSpectateSceneDocument XSpectateSceneDoc + { + get + { + return this._spectateScene_doc; + } + } + + public XSceneDamageRankDocument XSceneDamageRankDoc + { + get + { + return this._SceneDamageRank_doc; + } + } + + public XCombatStatisticsDocument XCombatStatisticsDoc + { + get + { + return this._CombatStatistics_doc; + } + } + + private XBagDocument _bag_doc = null; + + private XBattleDocument _battle_doc = null; + + private XSpectateSceneDocument _spectateScene_doc = null; + + private XSceneDamageRankDocument _SceneDamageRank_doc = null; + + private XCombatStatisticsDocument _CombatStatistics_doc = null; + + private List _async_data = new List(64); + + private delegate void AsyncLoadExecute(OnLoadedCallback notcallback = null); + + private struct AsyncLoadData + { + public XDocuments.AsyncLoadExecute Execute; + + public OnLoadedCallback Loaded; + + public XTableAsyncLoader TableLoader; + + public AsyncLoadData(XDocuments.AsyncLoadExecute exe, OnLoadedCallback loadedcallback, XTableAsyncLoader loader) + { + this.Execute = exe; + this.Loaded = loadedcallback; + this.TableLoader = loader; + } + } + + public XDocuments() + { + this._async_data.Clear(); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XJadeDocument.Execute), null, XJadeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XArenaDocument.Execute), null, XArenaDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XEquipDocument.Execute), new OnLoadedCallback(XEquipDocument.OnTableLoaded), XEquipDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XAchievementDocument.Execute), null, XAchievementDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XActivityDocument.Execute), null, XActivityDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XDailyActivitiesDocument.Execute), null, XDailyActivitiesDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFashionDocument.Execute), null, XFashionDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSuperRiskDocument.Execute), null, XSuperRiskDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XEmblemDocument.Execute), null, XEmblemDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XEnhanceDocument.Execute), new OnLoadedCallback(XEnhanceDocument.OnTableLoaded), XEnhanceDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSystemRewardDocument.Execute), null, XSystemRewardDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XRechargeDocument.Execute), null, XRechargeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XChatDocument.Execute), null, XChatDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XPurchaseDocument.Execute), null, XPurchaseDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFPStrengthenDocument.Execute), null, XFPStrengthenDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGameMallDocument.Execute), null, XGameMallDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XExpeditionDocument.Execute), new OnLoadedCallback(XExpeditionDocument.OnTableLoaded), XExpeditionDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XScreenShotShareDocument.Execute), null, XScreenShotShareDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFriendsDocument.Execute), null, XFriendsDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XLevelDocument.Execute), null, XLevelDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildSkillDocument.Execute), new OnLoadedCallback(XGuildSkillDocument.OnTableLoaded), XGuildSkillDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildRelaxGameDocument.Execute), null, XGuildRelaxGameDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildJokerDocument.Execute), null, XGuildJokerDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildSignInDocument.Execute), null, XGuildSignInDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildRedPacketDocument.Execute), null, XGuildRedPacketDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildQualifierDocument.Execute), null, XGuildQualifierDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildRankDocument.Execute), null, XGuildRankDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildSalaryDocument.Execute), new OnLoadedCallback(XGuildSalaryDocument.OnTableLoaded), XGuildSalaryDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildTerritoryDocument.Execute), new OnLoadedCallback(XGuildTerritoryDocument.OnLoadcallback), XGuildTerritoryDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XInvitationDocument.Execute), null, XInvitationDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XOnlineRewardDocument.Execute), null, XOnlineRewardDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XLevelRewardDocument.Execute), null, XLevelRewardDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XTeamDocument.Execute), new OnLoadedCallback(XTeamDocument.OnTableLoaded), XTeamDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XTitleDocument.Execute), new OnLoadedCallback(XTitleDocument.OnTableLoaded), XTitleDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XQualifyingDocument.Execute), null, XQualifyingDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XCharacterItemDocument.Execute), new OnLoadedCallback(XCharacterItemDocument.OnTableLoaded), XCharacterItemDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildSmallMonsterDocument.Execute), null, XGuildSmallMonsterDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XPetDocument.Execute), new OnLoadedCallback(XPetDocument.OnTableLoaded), XPetDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(AuctionDocument.Execute), new OnLoadedCallback(AuctionDocument.OnTableLoaded), AuctionDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XCharacterEquipDocument.Execute), new OnLoadedCallback(XCharacterEquipDocument.OnTableLoaded), XCharacterEquipDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildDocument.Execute), new OnLoadedCallback(XGuildDocument.OnTableLoaded), XGuildDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFightGroupDocument.Execute), new OnLoadedCallback(XFightGroupDocument.OnTableLoaded), XFightGroupDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFindExpDocument.Execute), null, XFindExpDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XEquipCreateDocument.Execute), new OnLoadedCallback(XEquipCreateDocument.OnTableLoaded), XEquipCreateDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XDesignationDocument.Execute), null, XDesignationDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XDragonRewardDocument.Execute), null, XDragonRewardDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSpectateSceneDocument.Execute), null, XSpectateSceneDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XLevelSealDocument.Execute), null, XLevelSealDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XQuickReplyDocument.Execute), new OnLoadedCallback(XQuickReplyDocument.OnTableLoaded), XQuickReplyDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XVoiceQADocument.Execute), null, XVoiceQADocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XDragonNestDocument.Execute), null, XDragonNestDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSevenLoginDocument.Execute), null, XSevenLoginDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildDragonDocument.Execute), null, XGuildDragonDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSpectateLevelRewardDocument.Execute), null, XSpectateLevelRewardDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFlowerRankDocument.Execute), null, XFlowerRankDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XWelfareDocument.Execute), new OnLoadedCallback(XWelfareDocument.OnTableLoaded), XWelfareDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XPVPActivityDocument.Execute), null, XPVPActivityDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFlowerReplyDocument.Execute), null, XFlowerReplyDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XWeekendPartyDocument.Execute), null, XWeekendPartyDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XCarnivalDocument.Execute), null, XCarnivalDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XBossBushDocument.Execute), null, XBossBushDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XWorldBossDocument.Execute), null, XWorldBossDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(FirstPassDocument.Execute), null, FirstPassDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XTempActivityDocument.Execute), null, XTempActivityDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XOperatingActivityDocument.Execute), null, XOperatingActivityDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XThemeActivityDocument.Execute), null, XThemeActivityDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSpriteSystemDocument.Execute), new OnLoadedCallback(XSpriteSystemDocument.OnTableLoaded), XSpriteSystemDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XCardCollectDocument.Execute), new OnLoadedCallback(XCardCollectDocument.OnTableLoaded), XCardCollectDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSkyArenaEntranceDocument.Execute), null, XSkyArenaEntranceDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XBigMeleeEntranceDocument.Execute), null, XBigMeleeEntranceDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XBattleFieldEntranceDocument.Execute), null, XBattleFieldEntranceDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildMineMainDocument.Execute), null, XGuildMineMainDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XRaceDocument.Execute), null, XRaceDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XPersonalCareerDocument.Execute), null, XPersonalCareerDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildMineBattleDocument.Execute), null, XGuildMineBattleDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XDragonCrusadeDocument.Execute), new OnLoadedCallback(XDragonCrusadeDocument.OnTableLoaded), XDragonCrusadeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSmeltDocument.Execute), null, XSmeltDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(HomePlantDocument.Execute), null, HomePlantDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(HomeMainDocument.Execute), null, HomeMainDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XTaskDocument.Execute), null, XTaskDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XOptionsDocument.Execute), new OnLoadedCallback(XOptionsDocument.OnTableLoaded), XOptionsDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XHomeCookAndPartyDocument.Execute), null, XHomeCookAndPartyDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XHomeFishingDocument.Execute), null, XHomeFishingDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XMainInterfaceDocument.Execute), null, XMainInterfaceDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildResContentionBuffDocument.Execute), null, XGuildResContentionBuffDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(AuctionHouseDocument.Execute), null, AuctionHouseDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildDonateDocument.Execute), null, XGuildDonateDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildDailyTaskDocument.Execute), null, XGuildDailyTaskDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XPushSubscribeDocument.Execute), null, XPushSubscribeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XMentorshipDocument.Execute), null, XMentorshipDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XEnchantDocument.Execute), new OnLoadedCallback(XEnchantDocument.OnTableLoaded), XEnchantDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XHeroBattleDocument.Execute), null, XHeroBattleDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XNormalShopDocument.Execute), null, XNormalShopDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XWeekNestDocument.Execute), null, XWeekNestDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XCompeteDocument.Execute), null, XCompeteDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XPartnerDocument.Execute), new OnLoadedCallback(XPartnerDocument.OnTableLoaded), XPartnerDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XWeddingDocument.Execute), new OnLoadedCallback(XWeddingDocument.OnTableLoaded), XWeddingDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(PandoraDocument.Execute), null, PandoraDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XJokerKingDocument.Execute), null, XJokerKingDocument.AsynLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XDanceDocument.Execute), new OnLoadedCallback(XDanceDocument.OnTableLoaded), XDanceDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XForgeDocument.Execute), new OnLoadedCallback(XForgeDocument.OnTableLoaded), XForgeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFreeTeamVersusLeagueDocument.Execute), null, XFreeTeamVersusLeagueDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XNestDocument.Execute), null, XNestDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XProfessionChangeDocument.Execute), null, XProfessionChangeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XSkillTreeDocument.Execute), null, XSkillTreeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XMilitaryRankDocument.Execute), null, XMilitaryRankDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildCollectDocument.Execute), null, XGuildCollectDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XRenameDocument.Execute), null, XRenameDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactDocument.Execute), new OnLoadedCallback(ArtifactDocument.OnTableLoaded), ArtifactDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactComposeDocument.Execute), null, ArtifactComposeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XFashionStorageDocument.Execute), null, XFashionStorageDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactBagDocument.Execute), null, ArtifactBagDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactAtlasDocument.Execute), null, ArtifactAtlasDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XAbyssPartyDocument.Execute), null, XAbyssPartyDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XCustomBattleDocument.Execute), null, XCustomBattleDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XMobaEntranceDocument.Execute), null, XMobaEntranceDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XMobaBattleDocument.Execute), null, XMobaBattleDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XCharacterCommonMenuDocument.Execute), null, XCharacterCommonMenuDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(TaJieHelpDocument.Execute), null, TaJieHelpDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(GroupChatDocument.Execute), new OnLoadedCallback(GroupChatDocument.OnTableLoaded), GroupChatDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XAncientDocument.Execute), null, XAncientDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactDeityStoveDocument.Execute), null, ArtifactDeityStoveDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactRecastDocument.Execute), null, ArtifactRecastDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactFuseDocument.Execute), null, ArtifactFuseDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactInscriptionDocument.Execute), null, ArtifactInscriptionDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(WeekEndNestDocument.Execute), null, WeekEndNestDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(EquipUpgradeDocument.Execute), new OnLoadedCallback(EquipUpgradeDocument.OnTableLoaded), EquipUpgradeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(EquipFusionDocument.Execute), new OnLoadedCallback(EquipFusionDocument.OnTableLoaded), EquipFusionDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XPrerogativeDocument.Execute), new OnLoadedCallback(XPrerogativeDocument.OnTableLoaded), XPrerogativeDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XNPCFavorDocument.Execute), null, XNPCFavorDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XTargetRewardDocument.Execute), new OnLoadedCallback(XTargetRewardDocument.OnTableLoaded), XTargetRewardDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XDragonGuildDocument.Execute), new OnLoadedCallback(XDragonGuildDocument.OnTableLoaded), XDragonGuildDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XYorozuyaDocument.Execute), new OnLoadedCallback(XYorozuyaDocument.OnTableLoaded), XYorozuyaDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XDragonGuildTaskDocument.Execute), null, XDragonGuildTaskDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XBackFlowDocument.Execute), null, XBackFlowDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XTransformDocument.Execute), null, XTransformDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XRiftDocument.Execute), null, XRiftDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XCampDuelDocument.Execute), null, XCampDuelDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(ArtifactRefinedDocument.Execute), null, ArtifactRefinedDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XArtifactCreateDocument.Execute), new OnLoadedCallback(XArtifactCreateDocument.OnTableLoaded), XArtifactCreateDocument.AsyncLoader)); + this._async_data.Add(new XDocuments.AsyncLoadData(new XDocuments.AsyncLoadExecute(XGuildGrowthDocument.Execute), new OnLoadedCallback(XGuildGrowthDocument.OnTableLoaded), XGuildGrowthDocument.AsyncLoader)); + } + + public void CtorLoad() + { + ThreadPool.SetMaxThreads(XTableAsyncLoader.AsyncPerTime, XTableAsyncLoader.AsyncPerTime); + XTableAsyncLoader.currentThreadCount = XTableAsyncLoader.AsyncPerTime; + XDocuments.AsyncLoadData[] array = new XDocuments.AsyncLoadData[XTableAsyncLoader.AsyncPerTime]; + for (int i = 0; i < XTableAsyncLoader.AsyncPerTime; i++) + { + array[i] = this._async_data[i]; + array[i].Execute(array[i].Loaded); + } + int j = 0; + int asyncPerTime = XTableAsyncLoader.AsyncPerTime; + while (j < this._async_data.Count) + { + for (int k = 0; k < XTableAsyncLoader.AsyncPerTime; k++) + { + XDocuments.AsyncLoadData asyncLoadData = array[k]; + bool flag = asyncLoadData.TableLoader != null && asyncLoadData.TableLoader.IsDone; + if (flag) + { + j++; + bool flag2 = asyncPerTime < this._async_data.Count; + if (flag2) + { + asyncLoadData = this._async_data[asyncPerTime++]; + asyncLoadData.Execute(asyncLoadData.Loaded); + } + else + { + asyncLoadData.TableLoader = null; + } + array[k] = asyncLoadData; + } + } + Thread.Sleep(1); + } + } + + public override bool Initilize(int flag) + { + this._bag_doc = (XSingleton.singleton.CreateComponent(this, XBagDocument.uuID) as XBagDocument); + XSingleton.singleton.CreateComponent(this, XMainInterfaceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCharacterEquipDocument.uuID); + XSingleton.singleton.CreateComponent(this, XJadeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XArenaDocument.uuID); + XSingleton.singleton.CreateComponent(this, XEquipDocument.uuID); + XSingleton.singleton.CreateComponent(this, XAchievementDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCharacterDocument.uuID); + XSingleton.singleton.CreateComponent(this, XActivityDocument.uuID); + XSingleton.singleton.CreateComponent(this, XMystShopDocument.uuID); + XSingleton.singleton.CreateComponent(this, XLoginRewardDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDailyActivitiesDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFashionDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSuperRiskDocument.uuID); + XSingleton.singleton.CreateComponent(this, XEmblemDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRankDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFlowerSendDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFlowerRankDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFlowerReplyDocument.uuID); + XSingleton.singleton.CreateComponent(this, XWeekendPartyDocument.uuID); + XSingleton.singleton.CreateComponent(this, XPlatformAbilityDocument.uuID); + XSingleton.singleton.CreateComponent(this, XPKInvitationDocument.uuID); + XSingleton.singleton.CreateComponent(this, XWelfareDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCharacterCommonMenuDocument.uuID); + XSingleton.singleton.CreateComponent(this, XEnhanceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XOptionsDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSystemRewardDocument.uuID); + XSingleton.singleton.CreateComponent(this, XNormalShopDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSweepDocument.uuID); + XSingleton.singleton.CreateComponent(this, XTeamDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGameMallDocument.uuID); + XSingleton.singleton.CreateComponent(this, XShowGetItemDocument.uuID); + XSingleton.singleton.CreateComponent(this, AdditionRemindDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRechargeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XPurchaseDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFPStrengthenDocument.uuID); + XSingleton.singleton.CreateComponent(this, XExpeditionDocument.uuID); + XSingleton.singleton.CreateComponent(this, XWorldBossDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDanceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XLevelUpStatusDocument.uuID); + XSingleton.singleton.CreateComponent(this, XShowGetAchivementTipDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSystemTipDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSkillTreeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XOtherPlayerInfoDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRecycleItemDocument.uuID); + XSingleton.singleton.CreateComponent(this, XChatDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSelectCharacterDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildListDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFriendsDocument.uuID); + XSingleton.singleton.CreateComponent(this, XLevelDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildHallDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildApproveDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildMemberDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildSignInDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildViewDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildRelaxGameDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildJokerDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildJockerMatchDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildSkillDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildRedPacketDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildArenaDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildInheritDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildQualifierDocument.uuID); + XSingleton.singleton.CreateComponent(this, XLevelRewardDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCharacterItemDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildDragonDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildRankDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildSalaryDocument.uuID); + XSingleton.singleton.CreateComponent(this, XTitleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildArenaBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildTerritoryDocument.uuID); + XSingleton.singleton.CreateComponent(this, XInvitationDocument.uuID); + XSingleton.singleton.CreateComponent(this, XOnlineRewardDocument.uuID); + XSingleton.singleton.CreateComponent(this, XQualifyingDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBattleSkillDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildSmallMonsterDocument.uuID); + this._SceneDamageRank_doc = (XSingleton.singleton.CreateComponent(this, XSceneDamageRankDocument.uuID) as XSceneDamageRankDocument); + this._battle_doc = (XSingleton.singleton.CreateComponent(this, XBattleDocument.uuID) as XBattleDocument); + XSingleton.singleton.CreateComponent(this, XPetDocument.uuID); + XSingleton.singleton.CreateComponent(this, AuctionDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFindExpDocument.uuID); + XSingleton.singleton.CreateComponent(this, XEquipCreateDocument.uuID); + XSingleton.singleton.CreateComponent(this, XMailDocument.uuID); + XSingleton.singleton.CreateComponent(this, XPPTDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDesignationDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDragonRewardDocument.uuID); + XSingleton.singleton.CreateComponent(this, XLevelSealDocument.uuID); + XSingleton.singleton.CreateComponent(this, XQuickReplyDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCaptainPVPDocument.uuID); + XSingleton.singleton.CreateComponent(this, XVoiceQADocument.uuID); + XSingleton.singleton.CreateComponent(this, XSpectateDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSpectateLevelRewardDocument.uuID); + this._spectateScene_doc = (XSingleton.singleton.CreateComponent(this, XSpectateSceneDocument.uuID) as XSpectateSceneDocument); + XSingleton.singleton.CreateComponent(this, XPVPActivityDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBattleCaptainPVPDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSkyArenaEntranceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSkyArenaBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBigMeleeEntranceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBigMeleeBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBattleFieldEntranceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBattleFieldBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRaceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XPersonalCareerDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDragonNestDocument.uuID); + XSingleton.singleton.CreateComponent(this, XPushSubscribeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XTeamInviteDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildMineBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildMineMainDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildMineEntranceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBossBushDocument.uuID); + XSingleton.singleton.CreateComponent(this, XApolloDocument.uuID); + XSingleton.singleton.CreateComponent(this, GroupChatDocument.uuID); + XSingleton.singleton.CreateComponent(this, XAncientDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRadioDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSevenLoginDocument.uuID); + XSingleton.singleton.CreateComponent(this, FirstPassDocument.uuID); + XSingleton.singleton.CreateComponent(this, XOperatingActivityDocument.uuID); + XSingleton.singleton.CreateComponent(this, XThemeActivityDocument.uuID); + XSingleton.singleton.CreateComponent(this, BiochemicalHellDogDocument.uuID); + XSingleton.singleton.CreateComponent(this, MadDuckSiegeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XTempActivityDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRollDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSpriteSystemDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCardCollectDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDragonCrusadeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XReviveDocument.uuID); + XSingleton.singleton.CreateComponent(this, XIDIPDocument.uuID); + XSingleton.singleton.CreateComponent(this, XSmeltDocument.uuID); + XSingleton.singleton.CreateComponent(this, HomePlantDocument.uuID); + XSingleton.singleton.CreateComponent(this, HomeMainDocument.uuID); + XSingleton.singleton.CreateComponent(this, XJokerKingDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCarnivalDocument.uuID); + XSingleton.singleton.CreateComponent(this, XTaskDocument.uuID); + XSingleton.singleton.CreateComponent(this, XHomeCookAndPartyDocument.uuID); + XSingleton.singleton.CreateComponent(this, XActivityInviteDocument.uuID); + XSingleton.singleton.CreateComponent(this, XHomeFishingDocument.uuID); + this._CombatStatistics_doc = (XSingleton.singleton.CreateComponent(this, XCombatStatisticsDocument.uuID) as XCombatStatisticsDocument); + XSingleton.singleton.CreateComponent(this, AuctionHouseDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildResContentionBuffDocument.uuID); + XSingleton.singleton.CreateComponent(this, XScreenShotShareDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildDonateDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildDailyTaskDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBillBoardDocument.uuID); + XSingleton.singleton.CreateComponent(this, XMentorshipDocument.uuID); + XSingleton.singleton.CreateComponent(this, XEnchantDocument.uuID); + XSingleton.singleton.CreateComponent(this, XHeroBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XHeroBattleSkillDocument.uuID); + XSingleton.singleton.CreateComponent(this, XWeekNestDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCompeteDocument.uuID); + XSingleton.singleton.CreateComponent(this, XPartnerDocument.uuID); + XSingleton.singleton.CreateComponent(this, XWeddingDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDragonPartnerDocument.uuID); + XSingleton.singleton.CreateComponent(this, XNPCFavorDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDramaDocument.uuID); + XSingleton.singleton.CreateComponent(this, PandoraDocument.uuID); + XSingleton.singleton.CreateComponent(this, XForgeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFreeTeamVersusLeagueDocument.uuID); + XSingleton.singleton.CreateComponent(this, XTeamLeagueBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XNestDocument.uuID); + XSingleton.singleton.CreateComponent(this, XProfessionChangeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XAnnouncementDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRenameDocument.uuID); + XSingleton.singleton.CreateComponent(this, XHallFameDocument.uuID); + XSingleton.singleton.CreateComponent(this, XMilitaryRankDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildCollectDocument.uuID); + XSingleton.singleton.CreateComponent(this, XExchangeItemDocument.uuID); + XSingleton.singleton.CreateComponent(this, XFashionStorageDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactBagDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactComposeDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactAtlasDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRequestDocument.uuID); + XSingleton.singleton.CreateComponent(this, XAbyssPartyDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCustomBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, XMobaEntranceDocument.uuID); + XSingleton.singleton.CreateComponent(this, XMobaBattleDocument.uuID); + XSingleton.singleton.CreateComponent(this, TaJieHelpDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactDeityStoveDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactRecastDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactFuseDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactInscriptionDocument.uuID); + XSingleton.singleton.CreateComponent(this, WeekEndNestDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildWeeklyBountyDocument.uuID); + XSingleton.singleton.CreateComponent(this, EquipUpgradeDocument.uuID); + XSingleton.singleton.CreateComponent(this, EquipFusionDocument.uuID); + XSingleton.singleton.CreateComponent(this, XTargetRewardDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDragonGuildDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDragonGuildListDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDragonGuildTaskDocument.uuID); + XSingleton.singleton.CreateComponent(this, XDragonGuildApproveDocument.uuID); + XSingleton.singleton.CreateComponent(this, XTransformDocument.uuID); + XSingleton.singleton.CreateComponent(this, XBackFlowDocument.uuID); + XSingleton.singleton.CreateComponent(this, XYorozuyaDocument.uuID); + XSingleton.singleton.CreateComponent(this, XRiftDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCampDuelDocument.uuID); + XSingleton.singleton.CreateComponent(this, ArtifactRefinedDocument.uuID); + XSingleton.singleton.CreateComponent(this, XArtifactCreateDocument.uuID); + XSingleton.singleton.CreateComponent(this, XCrossGVGDocument.uuID); + XSingleton.singleton.CreateComponent(this, XGuildGrowthDocument.uuID); + XSingleton.singleton.CreateComponent(this, XPrerogativeDocument.uuID); + XSingleton.singleton.CreateComponent(this, XLuaDocument.uuID); + return true; + } + + public static T GetSpecificDocument(uint uuID) where T : XComponent + { + return XSingleton.singleton.Doc.GetXComponent(uuID) as T; + } + + public void Refresh() + { + base.Uninitilize(); + this.Initilize(0); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDocuments.cs.meta b/Client/Assets/Scripts/XMainClient/XDocuments.cs.meta new file mode 100644 index 00000000..47e33680 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDocuments.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7cd6865bf57bd240b58d580e04cc6d0 +timeCreated: 1611404532 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDoodadCreateArgs.cs b/Client/Assets/Scripts/XMainClient/XDoodadCreateArgs.cs new file mode 100644 index 00000000..7b532c73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDoodadCreateArgs.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal class XDoodadCreateArgs : XEventArgs + { + public XLevelDoodad doo; + + public XDoodadCreateArgs() + { + this._eDefine = XEventDefine.XEvent_DoodadCreate; + this.doo = null; + } + + public override void Recycle() + { + base.Recycle(); + this.doo = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDoodadCreateArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XDoodadCreateArgs.cs.meta new file mode 100644 index 00000000..ab2b5272 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDoodadCreateArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fc1bf6e1af925474089a66c214012fb7 +timeCreated: 1611404934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDoodadDeleteArgs.cs b/Client/Assets/Scripts/XMainClient/XDoodadDeleteArgs.cs new file mode 100644 index 00000000..3f6d638e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDoodadDeleteArgs.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal class XDoodadDeleteArgs : XEventArgs + { + public XLevelDoodad doo; + + public XDoodadDeleteArgs() + { + this._eDefine = XEventDefine.XEvent_DoodadDelete; + this.doo = null; + } + + public override void Recycle() + { + base.Recycle(); + this.doo = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDoodadDeleteArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XDoodadDeleteArgs.cs.meta new file mode 100644 index 00000000..fcd690a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDoodadDeleteArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ddf2411896f70324d9cac640c2834974 +timeCreated: 1611404684 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDoodadType.cs b/Client/Assets/Scripts/XMainClient/XDoodadType.cs new file mode 100644 index 00000000..17980dea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDoodadType.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum XDoodadType + { + Item, + Buff, + BuffHorse, + BuffSkill, + BigMeleeItem + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDoodadType.cs.meta b/Client/Assets/Scripts/XMainClient/XDoodadType.cs.meta new file mode 100644 index 00000000..41dc7c5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDoodadType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d51028713f3129b4cbc940a1af6b8f4f +timeCreated: 1611404605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonCrusadeDocument.cs b/Client/Assets/Scripts/XMainClient/XDragonCrusadeDocument.cs new file mode 100644 index 00000000..7d28ee43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonCrusadeDocument.cs @@ -0,0 +1,181 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonCrusadeDocument : XDocComponent + { + public override uint ID + { + get + { + return XDragonCrusadeDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XDragonCrusadeDocument"); + + public static bool QuitFromCrusade = false; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static DragonExpList mDragonExpList = new DragonExpList(); + + public static List _DragonCrusageGateDataInfo = new List(); + + public static Dictionary SectonChapterMax = new Dictionary(); + + public DERankRes oResRank; + + public int leftChanllageCnt; + + public static DERankChangePara mDERankChangePara; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnGamePause(bool pause) + { + base.OnGamePause(pause); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + } + + public override void OnEnterSceneFinally() + { + bool flag = XDragonCrusadeDocument.QuitFromCrusade && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + XDragonCrusadeDocument.QuitFromCrusade = false; + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XDragonCrusadeDocument.AsyncLoader.AddTask("Table/DragonExpList", XDragonCrusadeDocument.mDragonExpList, false); + XDragonCrusadeDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + for (int i = 0; i < XDragonCrusadeDocument.mDragonExpList.Table.Length; i++) + { + DragonCrusageGateData dragonCrusageGateData = new DragonCrusageGateData(); + dragonCrusageGateData.SceneID = XDragonCrusadeDocument.mDragonExpList.Table[i].SceneID; + dragonCrusageGateData.expData = XDragonCrusadeDocument.mDragonExpList.Table[i]; + dragonCrusageGateData.sceneData = XSingleton.singleton.GetSceneData(dragonCrusageGateData.SceneID); + dragonCrusageGateData.Chapter = dragonCrusageGateData.expData.ChapterID[0]; + bool flag = !XDragonCrusadeDocument.SectonChapterMax.ContainsKey(dragonCrusageGateData.expData.ChapterID[0]); + if (flag) + { + XDragonCrusadeDocument.SectonChapterMax[dragonCrusageGateData.expData.ChapterID[0]] = dragonCrusageGateData.expData.ChapterID[1]; + } + else + { + bool flag2 = dragonCrusageGateData.expData.ChapterID[1] > XDragonCrusadeDocument.SectonChapterMax[dragonCrusageGateData.expData.ChapterID[0]]; + if (flag2) + { + XDragonCrusadeDocument.SectonChapterMax[dragonCrusageGateData.expData.ChapterID[0]] = dragonCrusageGateData.expData.ChapterID[1]; + } + } + XDragonCrusadeDocument._DragonCrusageGateDataInfo.Add(dragonCrusageGateData); + } + } + + public string GetChapter(uint sceneID) + { + for (int i = 0; i < XDragonCrusadeDocument._DragonCrusageGateDataInfo.Count; i++) + { + DragonCrusageGateData dragonCrusageGateData = XDragonCrusadeDocument._DragonCrusageGateDataInfo[i]; + bool flag = dragonCrusageGateData.SceneID == sceneID; + if (flag) + { + return string.Concat(new object[] + { + dragonCrusageGateData.expData.ChapterID[0].ToString(), + "-", + dragonCrusageGateData.expData.ChapterID[1], + " ", + dragonCrusageGateData.sceneData.Comment + }); + } + } + return sceneID + " Not Found Chapter"; + } + + public void ReadyOpen() + { + this.DEProgressReq(); + this.DERankReq(); + } + + public void DEProgressReq() + { + RpcC2G_DEProgressReq rpc = new RpcC2G_DEProgressReq(); + XSingleton.singleton.Send(rpc); + } + + public void OnDEProgressReq(DEProgressRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + this.leftChanllageCnt = oRes.leftcount; + for (int i = 0; i < XDragonCrusadeDocument._DragonCrusageGateDataInfo.Count; i++) + { + DragonCrusageGateData dragonCrusageGateData = XDragonCrusadeDocument._DragonCrusageGateDataInfo[i]; + for (int j = 0; j < oRes.allpro.Count; j++) + { + DEProgress deprogress = oRes.allpro[j]; + bool flag2 = deprogress.sceneID == dragonCrusageGateData.SceneID; + if (flag2) + { + dragonCrusageGateData.deProgress = deprogress; + dragonCrusageGateData.leftcount = oRes.leftcount; + dragonCrusageGateData.allcount = oRes.allcount; + dragonCrusageGateData.SealLevel = oRes.serverseallevel; + break; + } + } + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.RefreshProgressFromNet(); + } + } + } + + public void DERankReq() + { + RpcC2M_DERankReq rpc = new RpcC2M_DERankReq(); + XSingleton.singleton.Send(rpc); + } + + public void OnDERankReq(DERankRes oRes) + { + this.oResRank = oRes; + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.RefreshProgressSync(new Action(this.RefreshProgressSyncDone)); + } + + private void RefreshProgressSyncDone(bool done) + { + DlgBase.singleton.RefreshRank(this.oResRank); + } + + public void OnNotifyResult(DERankChangePara data) + { + XDragonCrusadeDocument.mDERankChangePara = data; + DlgBase.singleton.UpdateHint(data); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonCrusadeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonCrusadeDocument.cs.meta new file mode 100644 index 00000000..4988a854 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonCrusadeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 03a71a7cc9201574b9de317a94dcdd82 +timeCreated: 1611402959 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApplyBehaviour.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildApplyBehaviour.cs new file mode 100644 index 00000000..e7fbe102 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApplyBehaviour.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XDragonGuildApplyBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnApply = null; + + public IXUIButton m_BtnEnterGuild; + + public IXUILabel m_Annoucement; + + public IXUILabel m_PPT; + + public IXUILabel m_NeedApprove; + + public IXUILabel m_ResultNote; + + public GameObject m_ApplyMenu; + + public GameObject m_ResultMenu; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/ApplyMenu/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnApply = (base.transform.Find("Bg/ApplyMenu/OK").GetComponent("XUIButton") as IXUIButton); + this.m_BtnEnterGuild = (base.transform.Find("Bg/ResultMenu/OK").GetComponent("XUIButton") as IXUIButton); + this.m_Annoucement = (base.transform.Find("Bg/ApplyMenu/Annoucement").GetComponent("XUILabel") as IXUILabel); + this.m_Annoucement.SetText(""); + this.m_PPT = (base.transform.Find("Bg/ApplyMenu/PPT").GetComponent("XUILabel") as IXUILabel); + this.m_NeedApprove = (base.transform.Find("Bg/ApplyMenu/NeedApprove").GetComponent("XUILabel") as IXUILabel); + this.m_ResultNote = (base.transform.Find("Bg/ResultMenu/Note").GetComponent("XUILabel") as IXUILabel); + this.m_ApplyMenu = base.transform.Find("Bg/ApplyMenu").gameObject; + this.m_ResultMenu = base.transform.Find("Bg/ResultMenu").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApplyBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildApplyBehaviour.cs.meta new file mode 100644 index 00000000..175ce843 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApplyBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de640f2a24cf55d4bb967f799ec42894 +timeCreated: 1611404686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApplyView.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildApplyView.cs new file mode 100644 index 00000000..22f92e71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApplyView.cs @@ -0,0 +1,136 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildApplyView : DlgBase + { + public override string fileName + { + get + { + return "DungeonTroop/DungeonTroopApplyDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private ulong m_UID; + + private string m_Name; + + private XDragonGuildListDocument _doc; + + private XFx m_xfx; + + protected override void Init() + { + this._doc = XDragonGuildListDocument.Doc; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnApply.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnApplyBtnClicked)); + base.uiBehaviour.m_BtnEnterGuild.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnEnterSceneBtnClicked)); + } + + public void ShowApply(ulong uid, string name, uint ppt, bool bNeedApprove) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + this.m_UID = uid; + this.m_Name = name; + base.uiBehaviour.m_PPT.SetText(ppt.ToString()); + base.uiBehaviour.m_NeedApprove.SetText(bNeedApprove ? XStringDefineProxy.GetString("YES") : XStringDefineProxy.GetString("NO")); + base.uiBehaviour.m_ApplyMenu.SetActive(true); + base.uiBehaviour.m_ResultMenu.SetActive(false); + base.uiBehaviour.m_Close.SetVisible(true); + } + + public void Hide() + { + this.SetVisible(false, true); + this.DestroyFx(this.m_xfx); + } + + public void ShowResult(bool bCreate, string name) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + string text = bCreate ? XStringDefineProxy.GetString("CREATE") : XStringDefineProxy.GetString("JOIN"); + base.uiBehaviour.m_ResultNote.SetText(XStringDefineProxy.GetString("DRAGON_GUILD_APPLY_SUCCESS", new object[] + { + text, + name + })); + base.uiBehaviour.m_ApplyMenu.SetActive(false); + base.uiBehaviour.m_ResultMenu.SetActive(true); + base.uiBehaviour.m_Close.SetVisible(false); + this.DestroyFx(this.m_xfx); + this.m_xfx = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_yh", null, true); + this.m_xfx.Play(DlgBase.singleton.uiBehaviour.m_FxFirework.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + + public void DestroyFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + } + } + + private bool _OnApplyBtnClicked(IXUIButton btn) + { + this._doc.ReqApplyDragonGuild(this.m_UID, this.m_Name); + return true; + } + + private bool _OnEnterSceneBtnClicked(IXUIButton btn) + { + this.Hide(); + DlgBase.singleton.RefreshDragonGuildPage(); + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.Hide(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApplyView.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildApplyView.cs.meta new file mode 100644 index 00000000..51844560 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApplyView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 35be41bf8ebfc1341bc6eefe53e71d3d +timeCreated: 1611403560 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApproveBehaviour.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveBehaviour.cs new file mode 100644 index 00000000..80c477cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveBehaviour.cs @@ -0,0 +1,44 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XDragonGuildApproveBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIButton m_BtnOneKeyCancel; + + public IXUIButton m_BtnSetting; + + public IXUIButton m_BtnSendMessage; + + public IXUILabel m_RequiredPPT; + + public IXUILabel m_NeedApprove; + + public IXUILabel m_MemberCount; + + public IXUIWrapContent m_WrapContent; + + public IXUIScrollView m_ScrollView; + + public GameObject m_SettingPanel; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_BtnOneKeyCancel = (base.transform.Find("Bg/BtnOneKeyCancel").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSetting = (base.transform.Find("Bg/BtnSetting").GetComponent("XUIButton") as IXUIButton); + this.m_BtnSendMessage = (base.transform.Find("Bg/BtnSendMessage").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RequiredPPT = (base.transform.Find("Bg/PPTRequirement").GetComponent("XUILabel") as IXUILabel); + this.m_NeedApprove = (base.transform.Find("Bg/NeedApprove").GetComponent("XUILabel") as IXUILabel); + this.m_MemberCount = (base.transform.Find("Bg/MemberCount").GetComponent("XUILabel") as IXUILabel); + this.m_SettingPanel = base.transform.Find("Bg/SettingPanel").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApproveBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveBehaviour.cs.meta new file mode 100644 index 00000000..4f7991f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c472e911842d4dc4fa51a50fc0f1cc10 +timeCreated: 1611404501 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDlg.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDlg.cs new file mode 100644 index 00000000..549329ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDlg.cs @@ -0,0 +1,228 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildApproveDlg : DlgBase + { + public override string fileName + { + get + { + return "DungeonTroop/DungeonTroopApproveDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XDragonGuildDocument _DragonGuildDoc; + + private XDragonGuildApproveDocument _ApproveDoc; + + private XDragonGuildApproveSettingView _SettingView; + + private bool m_ApproveStatu = false; + + protected override void Init() + { + this._ApproveDoc = XDocuments.GetSpecificDocument(XDragonGuildApproveDocument.uuID); + this._ApproveDoc.DragonGuildApproveView = this; + this._DragonGuildDoc = XDragonGuildDocument.Doc; + DlgHandlerBase.EnsureCreate(ref this._SettingView, base.uiBehaviour.m_SettingPanel, null, true); + } + + protected override void OnUnload() + { + this._ApproveDoc.DragonGuildApproveView = null; + DlgHandlerBase.EnsureUnload(ref this._SettingView); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + base.uiBehaviour.m_BtnOneKeyCancel.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOneKeyCancelBtnClick)); + base.uiBehaviour.m_BtnSetting.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSettingBtnClick)); + base.uiBehaviour.m_BtnSendMessage.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSendMessageBtnClick)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._WrapContentItemUpdated)); + base.uiBehaviour.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this._WrapContentInit)); + } + + protected override void OnShow() + { + this._ApproveDoc.ReqApproveList(); + this._SettingView.SetVisible(false); + this.RefreshSetting(); + this.RefreshMember(); + } + + public void RefreshSetting() + { + DragonGuildApproveSetting approveSetting = this._ApproveDoc.ApproveSetting; + bool flag = approveSetting.PPT == 0u; + if (flag) + { + base.uiBehaviour.m_RequiredPPT.SetText(XStringDefineProxy.GetString("NONE")); + } + else + { + base.uiBehaviour.m_RequiredPPT.SetText(approveSetting.GetStrPPT()); + } + base.uiBehaviour.m_NeedApprove.SetText(approveSetting.autoApprove ? XStringDefineProxy.GetString("GUILD_APPROVE_NEEDNT") : XStringDefineProxy.GetString("GUILD_APPROVE_NEED")); + } + + public void RefreshMember() + { + this.m_ApproveStatu = false; + base.uiBehaviour.m_MemberCount.SetText(string.Format("{0}/{1}", this._DragonGuildDoc.BaseData.memberCount, this._DragonGuildDoc.BaseData.maxMemberCount)); + } + + public void RefreshList(bool bResetPosition) + { + List approveList = this._ApproveDoc.ApproveList; + int count = approveList.Count; + base.uiBehaviour.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + + private void _WrapContentInit(Transform t, int index) + { + IXUIButton ixuibutton = t.Find("BtnOK").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("BtnCancel").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOKBtnClick)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCancelBtnClick)); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this._ApproveDoc.ApproveList.Count; + if (!flag) + { + XDragonGuildMember xdragonGuildMember = this._ApproveDoc.ApproveList[index]; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("PPT").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = t.Find("ApplyTime").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = t.Find("Portrait").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = t.Find("BtnOK").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("BtnCancel").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite2 = t.Find("Profession").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(xdragonGuildMember.name); + ixuilabel2.SetText("Lv." + xdragonGuildMember.level); + ixuilabel3.SetText(xdragonGuildMember.ppt.ToString()); + ixuilabel4.SetText(XSingleton.singleton.TimeAgoFormatString(xdragonGuildMember.time)); + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2(xdragonGuildMember.profession)); + ixuisprite2.SetSprite(XSingleton.singleton.GetProfIcon(xdragonGuildMember.profession)); + ixuibutton.ID = (ulong)((long)index); + ixuibutton2.ID = (ulong)((long)index); + } + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _OnOneKeyCancelBtnClick(IXUIButton go) + { + bool flag = !this._DragonGuildDoc.IsInDragonGuild(); + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("GUILD_APPROVE_REJECT_ALL_CONFIRM"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._OnOneKeyCancel)); + result = true; + } + return result; + } + + private bool _OnOneKeyCancel(IXUIButton go) + { + this._ApproveDoc.ReqRejectAll(); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool _OnSettingBtnClick(IXUIButton btn) + { + this._SettingView.SetVisible(true); + return true; + } + + private bool _OnSendMessageBtnClick(IXUIButton btn) + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + specificDocument.SendDragonGuildInvitation(); + return true; + } + + private bool _OnOKBtnClick(IXUIButton btn) + { + bool approveStatu = this.m_ApproveStatu; + bool result; + if (approveStatu) + { + result = false; + } + else + { + this.m_ApproveStatu = true; + this._ApproveDoc.ReqApprove(true, (int)btn.ID); + result = true; + } + return result; + } + + private bool _OnCancelBtnClick(IXUIButton btn) + { + bool approveStatu = this.m_ApproveStatu; + bool result; + if (approveStatu) + { + result = false; + } + else + { + this.m_ApproveStatu = true; + this._ApproveDoc.ReqApprove(false, (int)btn.ID); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDlg.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDlg.cs.meta new file mode 100644 index 00000000..e164b091 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d8ed8baf10e72c34d8bb5af2e0518eb8 +timeCreated: 1611404642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDocument.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDocument.cs new file mode 100644 index 00000000..4fe69bce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDocument.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildApproveDocument : XDocComponent + { + public override uint ID + { + get + { + return XDragonGuildApproveDocument.uuID; + } + } + + public XDragonGuildApproveDlg DragonGuildApproveView { get; set; } + + public List ApproveList + { + get + { + return this.m_ApproveList; + } + } + + public DragonGuildApproveSetting ApproveSetting + { + get + { + return this._ApproveSetting; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XDragonGuildApproveDocument"); + + private List m_ApproveList = new List(); + + private DragonGuildApproveSetting _ApproveSetting = new DragonGuildApproveSetting(); + + public void ReqApproveList() + { + RpcC2M_FetchDGApps rpc = new RpcC2M_FetchDGApps(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetApproveList(FetchDGAppRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + int num = oRes.roleid.Count - this.m_ApproveList.Count; + bool flag2 = num > 0; + if (flag2) + { + for (int i = 0; i < num; i++) + { + XDragonGuildMember item = new XDragonGuildMember(); + this.m_ApproveList.Add(item); + } + } + else + { + this.m_ApproveList.RemoveRange(this.m_ApproveList.Count + num, -num); + } + for (int j = 0; j < oRes.roleid.Count; j++) + { + XDragonGuildMember xdragonGuildMember = this.m_ApproveList[j]; + xdragonGuildMember.uid = oRes.roleid[j]; + xdragonGuildMember.name = oRes.rolename[j]; + xdragonGuildMember.level = oRes.level[j]; + xdragonGuildMember.time = (int)oRes.time[j]; + xdragonGuildMember.ppt = oRes.ppt[j]; + xdragonGuildMember.profession = XFastEnumIntEqualityComparer.ToInt(oRes.profession[j]); + } + bool flag3 = this.DragonGuildApproveView != null && this.DragonGuildApproveView.IsVisible(); + if (flag3) + { + this.DragonGuildApproveView.RefreshList(true); + } + } + } + + public void ReqApprove(bool bApprove, int index) + { + bool flag = index < 0 || index >= this.m_ApproveList.Count; + if (!flag) + { + RpcC2M_DragonGuildApproval rpcC2M_DragonGuildApproval = new RpcC2M_DragonGuildApproval(); + rpcC2M_DragonGuildApproval.oArg.roleid = this.m_ApproveList[index].uid; + rpcC2M_DragonGuildApproval.oArg.type = (bApprove ? 0u : 1u); + XSingleton.singleton.Send(rpcC2M_DragonGuildApproval); + } + } + + public void ReqRejectAll() + { + RpcC2M_DragonGuildApproval rpcC2M_DragonGuildApproval = new RpcC2M_DragonGuildApproval(); + rpcC2M_DragonGuildApproval.oArg.type = 2u; + XSingleton.singleton.Send(rpcC2M_DragonGuildApproval); + } + + public void OnApprove(DragonGuildApprovalArg oArg, DragonGuildApprovalRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + bool flag2 = oArg.type == 2u; + if (flag2) + { + this.m_ApproveList.Clear(); + } + else + { + for (int i = 0; i < this.m_ApproveList.Count; i++) + { + bool flag3 = this.m_ApproveList[i].uid == oArg.roleid; + if (flag3) + { + this.m_ApproveList.RemoveAt(i); + bool flag4 = oArg.type == 0u; + if (flag4) + { + XDragonGuildDocument.Doc.BaseData.memberCount += 1u; + } + break; + } + } + } + bool flag5 = this.DragonGuildApproveView == null || !this.DragonGuildApproveView.IsVisible(); + if (!flag5) + { + this.DragonGuildApproveView.RefreshMember(); + this.DragonGuildApproveView.RefreshList(oArg.type == 2u); + DlgBase.singleton.RefreshDragonGuildPage(); + } + } + } + + public void ReqSetApprove(DragonGuildApproveSetting setting) + { + RpcC2M_ChangeDragonGuildSetting rpcC2M_ChangeDragonGuildSetting = new RpcC2M_ChangeDragonGuildSetting(); + rpcC2M_ChangeDragonGuildSetting.oArg.needapproval = (setting.autoApprove ? 0u : 1u); + rpcC2M_ChangeDragonGuildSetting.oArg.powerpoint = setting.PPT; + XSingleton.singleton.Send(rpcC2M_ChangeDragonGuildSetting); + } + + public void OnSetApprove(DragonGuildApproveSetting setting) + { + this._ApproveSetting = setting; + bool flag = this.DragonGuildApproveView != null && this.DragonGuildApproveView.IsVisible(); + if (flag) + { + this.DragonGuildApproveView.RefreshSetting(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.DragonGuildApproveView != null && this.DragonGuildApproveView.IsVisible(); + if (flag) + { + this.ReqApproveList(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDocument.cs.meta new file mode 100644 index 00000000..ae9c1ddc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildApproveDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9f76df32b6a3ab94c9600379eb9c9dc4 +timeCreated: 1611404245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildBaseData.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildBaseData.cs new file mode 100644 index 00000000..e64f4eba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildBaseData.cs @@ -0,0 +1,48 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XDragonGuildBaseData : XDataBase + { + public ulong uid; + + public string dragonGuildName; + + public ulong leaderuid; + + public string leaderName; + + public uint level; + + public uint memberCount; + + public uint maxMemberCount; + + public ulong totalPPT; + + public uint curexp; + + public string sceneName; + + public uint sceneCnt; + + public XDragonGuildBaseData() + { + this.dragonGuildName = ""; + this.leaderName = ""; + } + + public virtual void Init(DragonGuildInfo info) + { + this.uid = info.id; + this.dragonGuildName = info.name; + this.leaderuid = info.leaderId; + this.leaderName = info.leadername; + this.level = info.level; + this.memberCount = info.membercounts; + this.maxMemberCount = info.capacity; + this.totalPPT = info.totalPPT; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildBaseData.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildBaseData.cs.meta new file mode 100644 index 00000000..e24b6f86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildBaseData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6002c0667ca42674098bd327236d1caa +timeCreated: 1611403831 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildBasicInfoDisplay.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildBasicInfoDisplay.cs new file mode 100644 index 00000000..4c73724c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildBasicInfoDisplay.cs @@ -0,0 +1,125 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class XDragonGuildBasicInfoDisplay + { + public Transform Root; + + public IXUILabel DragonGuildName; + + public IXUILabel LeaderName; + + public IXUILabel Level; + + public IXUILabel MemberCount; + + public IXUILabel PPT; + + public void Init(Transform go, bool bFirstInit) + { + this.Root = go; + Transform transform = this.Root.Find("GuildName"); + bool flag = transform != null; + if (flag) + { + this.DragonGuildName = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.DragonGuildName.SetText(""); + } + } + else + { + this.DragonGuildName = null; + } + transform = this.Root.Find("LeaderName"); + bool flag2 = transform != null; + if (flag2) + { + this.LeaderName = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.LeaderName.SetText(""); + } + } + else + { + this.LeaderName = null; + } + transform = this.Root.Find("Level"); + bool flag3 = transform != null; + if (flag3) + { + this.Level = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Level.SetText(""); + } + } + else + { + this.Level = null; + } + transform = this.Root.Find("MemberCount"); + bool flag4 = transform != null; + if (flag4) + { + this.MemberCount = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.MemberCount.SetText(""); + } + } + else + { + this.MemberCount = null; + } + transform = this.Root.Find("PPT"); + bool flag5 = transform != null; + if (flag5) + { + this.PPT = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.PPT.SetText(""); + } + } + else + { + this.PPT = null; + } + } + + public void Set(XDragonGuildBaseData data) + { + bool flag = this.DragonGuildName != null; + if (flag) + { + this.DragonGuildName.SetText(data.dragonGuildName); + } + bool flag2 = this.LeaderName != null; + if (flag2) + { + this.LeaderName.SetText(data.leaderName); + } + bool flag3 = this.Level != null; + if (flag3) + { + this.Level.SetText("Lv." + data.level); + } + bool flag4 = this.PPT != null; + if (flag4) + { + this.PPT.SetText(data.totalPPT.ToString()); + } + bool flag5 = this.MemberCount != null; + if (flag5) + { + this.MemberCount.SetText(string.Format("{0}/{1}", data.memberCount, data.maxMemberCount)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildBasicInfoDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildBasicInfoDisplay.cs.meta new file mode 100644 index 00000000..e0bf2ddc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildBasicInfoDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bae08d470d635c749b5cf2a3f72d05a4 +timeCreated: 1611404439 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildCreateView.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildCreateView.cs new file mode 100644 index 00000000..16283a68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildCreateView.cs @@ -0,0 +1,165 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildCreateView : DlgHandlerBase + { + private IXUIInput m_NameInput; + + private IXUILabel m_Cost; + + private GameObject m_CreatePanel; + + private GameObject m_VipPanel; + + private int m_CostNum; + + private GameObject m_CreateHighlight; + + private Dictionary m_helpList = new Dictionary(); + + private XDragonGuildListDocument m_listDoc; + + private XDragonGuildDocument m_guildDoc; + + protected override void Init() + { + base.Init(); + this.m_CreatePanel = base.PanelObject.transform.Find("CreateMenu").gameObject; + this.m_VipPanel = base.PanelObject.transform.Find("VipMenu").gameObject; + this.m_NameInput = (base.PanelObject.transform.Find("CreateMenu/NameInput").GetComponent("XUIInput") as IXUIInput); + this.m_Cost = (base.PanelObject.transform.Find("CreateMenu/OK/MoneyCost").GetComponent("XUILabel") as IXUILabel); + this.m_CostNum = XSingleton.singleton.GetInt("DragonGuildCreateCost"); + this.m_Cost.SetText(this.m_CostNum.ToString()); + IXUILabelSymbol ixuilabelSymbol = base.PanelObject.transform.Find("VipMenu/Note").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabelSymbol.InputText = XStringDefineProxy.GetString("GUILD_CREATE_VIP_REQUIRE", new object[] + { + XSingleton.singleton.GetInt("GuildCreateVipRequirement") + }); + this.m_guildDoc = XDragonGuildDocument.Doc; + this.m_listDoc = XDragonGuildListDocument.Doc; + this.m_CreateHighlight = base.PanelObject.transform.Find("CreateMenu/OK/Highlight").gameObject; + Transform transform = base.PanelObject.transform.Find("CreateMenu/HelpList"); + int i = 0; + int childCount = transform.childCount; + while (i < childCount) + { + Transform child = transform.GetChild(i); + this.m_helpList.Add(child.GetComponent("XUIButton") as IXUIButton, child.name); + DragonGuildIntroduce.RowData introduce = this.m_guildDoc.GetIntroduce(child.name); + bool flag = introduce != null; + if (flag) + { + IXUILabel ixuilabel = child.Find("Label").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(introduce.Title); + } + i++; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = base.PanelObject.transform.Find("VipMenu/Close").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = base.PanelObject.transform.Find("CreateMenu/Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCloseBtnClick)); + IXUIButton ixuibutton3 = base.PanelObject.transform.Find("CreateMenu/OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCreateBtnClicked)); + IXUIButton ixuibutton4 = base.PanelObject.transform.Find("VipMenu/OK").GetComponent("XUIButton") as IXUIButton; + ixuibutton4.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnVipBtnClicked)); + foreach (IXUIButton ixuibutton5 in this.m_helpList.Keys) + { + ixuibutton5.RegisterClickEventHandler(new ButtonClickEventHandler(this._ShowCreateHelpClick)); + } + } + + protected override void OnShow() + { + base.OnShow(); + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + bool flag = vipLevel >= XSingleton.singleton.GetInt("GuildCreateVipRequirement"); + this.m_CreatePanel.SetActive(flag); + this.m_VipPanel.SetActive(!flag); + this.m_NameInput.SetText(""); + bool flag2 = flag; + if (flag2) + { + this.m_CreateHighlight.SetActive(XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN) >= (ulong)((long)this.m_CostNum)); + } + } + + public override void OnUnload() + { + bool flag = this.m_helpList != null; + if (flag) + { + this.m_helpList.Clear(); + this.m_helpList = null; + } + base.OnUnload(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + private bool _ShowCreateHelpClick(IXUIButton button) + { + string helpName; + bool flag = this.m_helpList.TryGetValue(button, out helpName); + bool result; + if (flag) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + Guildintroduce.RowData introduce = specificDocument.GetIntroduce(helpName); + bool flag2 = introduce != null; + if (flag2) + { + XSingleton.singleton.ShowSystemHelp(introduce.Desc, introduce.Title, XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + } + result = true; + } + else + { + result = false; + } + return result; + } + + private bool _OnCreateBtnClicked(IXUIButton btn) + { + string text = this.m_NameInput.GetText(); + bool flag = text.Length == 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DRAGON_GUILD_CREATE_NAME_REQUIRE"), "fece00"); + } + else + { + this.m_listDoc.ReqCreateDragonGuild(text); + } + return true; + } + + private bool _OnVipBtnClicked(IXUIButton btn) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Money, 0UL); + base.SetVisible(false); + return true; + } + + private bool _OnCloseBtnClick(IXUIButton go) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildCreateView.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildCreateView.cs.meta new file mode 100644 index 00000000..a8ed709e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildCreateView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d75a4dd49aa891b468bd996fd50802d0 +timeCreated: 1611404635 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildDocument.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildDocument.cs new file mode 100644 index 00000000..8094d73c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildDocument.cs @@ -0,0 +1,932 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Reflection; +using System.Threading; +using KKSG; +using MiniJSON; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildDocument : XDocComponent + { + public override uint ID + { + get + { + return XDragonGuildDocument.uuID; + } + } + + public static XDragonGuildDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XDragonGuildDocument.uuID) as XDragonGuildDocument; + } + } + + public static DragonGuildTable DragonGuildBuffTable + { + get + { + return XDragonGuildDocument.m_pDragonGuildTable; + } + } + + public static XDragonGuildPP DragonGuildPP + { + get + { + return XDragonGuildDocument._DragonGuildPP; + } + } + + public uint CurDragonGuildLevel + { + get + { + return this.m_curDragonGuildLevel; + } + set + { + this.m_curDragonGuildLevel = value; + } + } + + public XDragonGuildBaseData BaseData + { + get + { + return this.m_pBaseData; + } + } + + public List ShopRecordList + { + get + { + return this.m_shopRecordList; + } + } + + public bool IsHadLivenessRedPoint + { + get + { + return this.m_bIsHadLivenessRedPoint; + } + set + { + bool flag = this.m_bIsHadLivenessRedPoint != value; + if (flag) + { + this.m_bIsHadLivenessRedPoint = value; + DlgBase.singleton.SetRedPoint(TabIndex.DragonGuild, this.IsHadRedDot); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshUIRedPoint(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.UpdateRedpointUI(); + } + } + } + } + + public bool IsHadRecordRedPoint + { + get + { + return this.m_bIsHadRecordRedPoint; + } + set + { + bool flag = this.m_bIsHadRecordRedPoint != value; + if (flag) + { + this.m_bIsHadRecordRedPoint = value; + DlgBase.singleton.SetRedPoint(TabIndex.DragonGuild, this.IsHadRedDot); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshUIRedPoint(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.UpdateRedpointUI(); + } + } + } + } + + public bool IsHadRedDot + { + get + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GuildCollectSummon); + return !flag && (this.m_bIsHadRecordRedPoint | this.IsHadLivenessRedPoint); + } + } + + public DragonGuildMemberSortType SortType + { + get + { + return this.m_SortType; + } + set + { + bool flag = this.m_SortType != value; + if (flag) + { + this.m_Direction = XDragonGuildMember.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(value)]; + } + else + { + this.m_Direction = -this.m_Direction; + } + this.m_SortType = value; + } + } + + public int SortDirection + { + get + { + return this.m_Direction; + } + } + + public List MemberList + { + get + { + return this.m_MemberList; + } + } + + public ulong UID + { + get + { + return this.m_pBaseData.uid; + } + } + + public DragonGuildPosition Position + { + get + { + return this.m_Position; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XDragonGuildDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static DragonGuildLiveness DragonGuildLivenessData = null; + + private static DragonGuildPermissionTable m_PermissionTable = new DragonGuildPermissionTable(); + + private static DragonGuildConfigTable m_ConfigTable = new DragonGuildConfigTable(); + + private static DragonGuildLivenessTable m_dragonguildlivenessTab = new DragonGuildLivenessTable(); + + private static DragonGuildIntroduce m_IntroduceTable = new DragonGuildIntroduce(); + + private static DragonGuildTable m_pDragonGuildTable = new DragonGuildTable(); + + private static XDragonGuildPP _DragonGuildPP = new XDragonGuildPP(); + + private uint m_curDragonGuildLevel = 0u; + + public DragonGuildShopRecordsHandler ShopRecordsHandler; + + private XDragonGuildBaseData m_pBaseData = new XDragonGuildBaseData(); + + public XDragonGuildMainHandler View; + + private List m_shopRecordList = new List(); + + private bool m_bIsHadLivenessRedPoint = false; + + private bool m_bIsHadRecordRedPoint = false; + + private DragonGuildMemberSortType m_SortType = DragonGuildMemberSortType.DGMST_ACTIVE; + + private int m_Direction = -1; + + private List m_GuildInheritUids = new List(); + + private List m_MemberList = new List(); + + private bool _bInited = false; + + private DragonGuildPosition m_Position; + + public GuildBindStatus qqGroupBindStatus; + + public string qqGroupName; + + public static string GetPortraitName(int index) + { + return "ghicon_" + index.ToString(); + } + + public DragonGuildIntroduce.RowData GetIntroduce(string helpName) + { + return XDragonGuildDocument.m_IntroduceTable.GetByHelpName(helpName); + } + + public bool IsInDragonGuild() + { + return this.m_pBaseData.uid > 0UL; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XDragonGuildDocument.AsyncLoader.AddTask("Table/DragonGuildPermission", XDragonGuildDocument.m_PermissionTable, false); + XDragonGuildDocument.AsyncLoader.AddTask("Table/DragonGuildConfig", XDragonGuildDocument.m_ConfigTable, false); + XDragonGuildDocument.AsyncLoader.AddTask("Table/DragonGuildLiveness", XDragonGuildDocument.m_dragonguildlivenessTab, false); + XDragonGuildDocument.AsyncLoader.AddTask("Table/DragonGuildIntroduce", XDragonGuildDocument.m_IntroduceTable, false); + XDragonGuildDocument.AsyncLoader.AddTask("Table/DragonGuild", XDragonGuildDocument.m_pDragonGuildTable, false); + XDragonGuildDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XDragonGuildDocument.DragonGuildLivenessData = new DragonGuildLiveness(XDragonGuildDocument.m_dragonguildlivenessTab); + XDragonGuildDocument.DragonGuildPP.InitTable(XDragonGuildDocument.m_PermissionTable); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._bInited = false; + this.m_Position = DragonGuildPosition.DGPOS_COUNT; + this.m_pBaseData.uid = 0UL; + this.m_pBaseData.level = 0u; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public bool IsMyDragonGuildMember(ulong dragonguilduid) + { + bool flag = !this.IsInDragonGuild(); + return !flag && this.m_pBaseData.uid == dragonguilduid; + } + + public void SortAndShow() + { + XDragonGuildMember.playerID = XSingleton.singleton.Player.Attributes.EntityID; + XDragonGuildMember.dir = this.m_Direction; + XDragonGuildMember.sortType = this.m_SortType; + CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; + Thread.CurrentThread.CurrentCulture = CultureInfo.GetCultureInfo(XSingleton.singleton.GetValue("Culture")); + this.m_MemberList.Sort(); + Thread.CurrentThread.CurrentCulture = currentCulture; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshMemberList(true); + } + } + + public DragonGuildPosition GetMemberPosition(ulong memberID) + { + DragonGuildPosition result = DragonGuildPosition.DGPOS_COUNT; + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag = this.m_MemberList[i].uid == memberID; + if (flag) + { + result = this.m_MemberList[i].position; + break; + } + } + return result; + } + + public void ReqChangePosition(ulong uid, DragonGuildPosition toPosition) + { + RpcC2M_ChangeDragonGuildPosition rpcC2M_ChangeDragonGuildPosition = new RpcC2M_ChangeDragonGuildPosition(); + rpcC2M_ChangeDragonGuildPosition.oArg.roleid = uid; + rpcC2M_ChangeDragonGuildPosition.oArg.position = (uint)XFastEnumIntEqualityComparer.ToInt(toPosition); + XSingleton.singleton.Send(rpcC2M_ChangeDragonGuildPosition); + } + + public void OnChangePosition(ChangeDragonGuildPositionArg oArg, ChangeDragonGuildPositionRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_DG_NOT_IN_SAME; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DRAGON_GUILD_MEMBER_LEAVE"), "fece00"); + this.ReqMemberList(); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag3 = this.m_MemberList[i].uid == oArg.roleid; + if (flag3) + { + this.m_MemberList[i].position = (DragonGuildPosition)oArg.position; + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.RefreshPage(); + } + break; + } + } + } + } + } + + public void ReqMemberList() + { + RpcC2M_AskDragonGuildMembers rpc = new RpcC2M_AskDragonGuildMembers(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetMemberList(DragonGuildMemberRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_GuildInheritUids.Clear(); + int num = oRes.members.Count - this.m_MemberList.Count; + for (int i = 0; i < num; i++) + { + XDragonGuildMember item = new XDragonGuildMember(); + this.m_MemberList.Add(item); + } + bool flag2 = num < 0; + if (flag2) + { + this.m_MemberList.RemoveRange(this.m_MemberList.Count + num, -num); + } + for (int j = 0; j < oRes.members.Count; j++) + { + bool flag3 = oRes.members[j] == null; + if (!flag3) + { + this.m_MemberList[j].Set(oRes.members[j]); + XDragonGuildMember xdragonGuildMember = this.m_MemberList[j]; + bool flag4 = xdragonGuildMember.position == DragonGuildPosition.DGPOS_LEADER; + if (flag4) + { + this.m_pBaseData.leaderName = xdragonGuildMember.name; + this.m_pBaseData.leaderuid = xdragonGuildMember.uid; + } + } + } + this.m_pBaseData.memberCount = (uint)this.m_MemberList.Count; + bool flag5 = this.View != null && this.View.IsVisible(); + if (flag5) + { + this.View.RefreshPage(); + this.SortAndShow(); + } + XGuildMemberListEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public bool SetID(ulong id) + { + bool result = !this._bInited || this.m_pBaseData.uid != id; + this.m_pBaseData.uid = id; + return result; + } + + public uint GetMaxExp() + { + bool flag = this.BaseData.level > 0u && (ulong)this.BaseData.level <= (ulong)((long)XDragonGuildDocument.m_ConfigTable.Table.Length); + uint result; + if (flag) + { + result = XDragonGuildDocument.m_ConfigTable.Table[(int)(this.BaseData.level - 1u)].DragonGuildExpNeed; + } + else + { + result = 1u; + } + return result; + } + + public uint GetMaxMemberCount() + { + bool flag = this.BaseData.level > 0u && (ulong)this.BaseData.level <= (ulong)((long)XDragonGuildDocument.m_ConfigTable.Table.Length); + uint result; + if (flag) + { + result = XDragonGuildDocument.m_ConfigTable.Table[(int)(this.BaseData.level - 1u)].DragonGuildNumber; + } + else + { + result = 1u; + } + return result; + } + + public bool SetLevel(uint newLevel) + { + bool result = this.m_pBaseData.level != 0u && this.m_pBaseData.level != newLevel && this.m_pBaseData.uid > 0UL; + this.m_pBaseData.level = newLevel; + return result; + } + + public bool IsMaxLevel() + { + return (long)XDragonGuildDocument.m_ConfigTable.Table.Length == (long)((ulong)this.m_pBaseData.level); + } + + public bool SetPosition(DragonGuildPosition newPos) + { + bool result = this.m_Position != DragonGuildPosition.DGPOS_COUNT && this.m_Position != newPos && this.m_pBaseData.uid > 0UL; + this.m_Position = newPos; + return result; + } + + public bool SetTotalPPT(ulong newTotalPPT) + { + bool result = newTotalPPT != 0UL && newTotalPPT != this.m_pBaseData.totalPPT && this.m_pBaseData.uid > 0UL; + this.m_pBaseData.totalPPT = newTotalPPT; + return result; + } + + public bool IHavePermission(DragonGuildPermission pem) + { + return XDragonGuildDocument.DragonGuildPP.HasPermission(this.m_Position, pem); + } + + public bool CheckPermission(DragonGuildPermission pem) + { + bool flag = !this.IsInDragonGuild(); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.IHavePermission(pem); + if (flag2) + { + result = true; + } + else + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_DG_NO_PERMISSION, "fece00"); + result = false; + } + } + return result; + } + + public void InitData(PtcM2C_LoginDragonGuildInfo data) + { + bool flag = this.SetID(data.Data.dgid); + bool flag2 = this.SetPosition((DragonGuildPosition)data.Data.position); + bool flag3 = this.SetLevel(data.Data.level); + this.m_pBaseData.dragonGuildName = data.Data.name; + bool flag4 = this.SetTotalPPT(data.Data.totalPPT); + this.m_pBaseData.memberCount = data.Data.memberCount; + this.m_pBaseData.maxMemberCount = this.GetMaxMemberCount(); + this.m_pBaseData.curexp = data.Data.exp; + bool flag5 = data.Data.mapId == 0u; + if (flag5) + { + this.m_pBaseData.sceneName = XStringDefineProxy.GetString("DRAGON_GUILD_NO_PASS_SCENE"); + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(data.Data.mapId); + bool flag6 = sceneData != null; + if (flag6) + { + this.m_pBaseData.sceneName = sceneData.Comment; + } + else + { + this.m_pBaseData.sceneName = XStringDefineProxy.GetString("DRAGON_GUILD_NO_PASS_SCENE"); + XSingleton.singleton.AddErrorLog2("XDragonGuildRankInfo|can't finde scene id=", new object[] + { + data.Data.mapId + }); + } + } + this.m_pBaseData.sceneCnt = data.Data.mapCnt; + this.QueryWXGroup(); + this.QueryQQGroup(); + bool flag7 = flag; + if (flag7) + { + this.OnInDragonGuildStateChanged(this.IsInDragonGuild()); + } + bool flag8 = flag2; + if (flag8) + { + this.OnDragonGuildPositionChange(); + } + bool flag9 = flag3 || flag4; + if (flag9) + { + this.OnDragonGuildInfoChange(); + } + XDragonGuildInfoChange @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + XDragonGuildInfoChange event2 = XEventPool.GetEvent(); + event2.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event2); + this._bInited = true; + DlgBase.singleton.SetRedPoint(TabIndex.DragonGuild, this.IsHadRedDot); + } + + private void OnDragonGuildInfoChange() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshLabelInfo(); + } + } + + private void OnDragonGuildLevelChange() + { + uint level = this.m_pBaseData.level; + for (int i = 0; i < XDragonGuildDocument.m_ConfigTable.Table.Length; i++) + { + DragonGuildConfigTable.RowData rowData = XDragonGuildDocument.m_ConfigTable.Table[i]; + bool flag = rowData.DragonGuildLevel == this.m_pBaseData.level; + if (flag) + { + this.BaseData.maxMemberCount = rowData.DragonGuildNumber; + } + } + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshLabelInfo(); + } + } + + protected void OnInDragonGuildStateChanged(bool bIsEnter) + { + DlgBase.singleton.RefreshDragonGuildPage(); + bool flag = !this._bInited; + if (!flag) + { + bool flag2 = !bIsEnter; + if (flag2) + { + this.IsHadLivenessRedPoint = false; + this.IsHadRecordRedPoint = false; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DRAGON_GUILD_EXIT_GUILD"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DRAGON_GUILD_JOIN_GUILD"), "fece00"); + } + } + } + + protected void OnDragonGuildPositionChange() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + ulong entityID = XSingleton.singleton.Player.Attributes.EntityID; + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag2 = this.m_MemberList[i].uid == entityID; + if (flag2) + { + this.m_MemberList[i].position = this.m_Position; + this.View.RefreshPage(); + break; + } + } + } + bool flag3 = DlgBase.singleton.IsVisible() && !this.IHavePermission(DragonGuildPermission.DGEM_APPROVAL); + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + public void QueryWXGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_WeChat || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DragonGuild_Bind_Group); + if (!flag) + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.DragonGuild; + Dictionary dictionary = new Dictionary(); + dictionary["unionID"] = this.UID.ToString(); + dictionary["openIdList"] = XSingleton.singleton.OpenID; + string param = Json.Serialize(dictionary); + XSingleton.singleton.XPlatform.QueryWXGroup(param); + } + } + + public void QueryQQGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DragonGuild_Bind_Group); + if (!flag) + { + RpcC2M_GetDragonGuildBindInfo rpcC2M_GetDragonGuildBindInfo = new RpcC2M_GetDragonGuildBindInfo(); + rpcC2M_GetDragonGuildBindInfo.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2M_GetDragonGuildBindInfo); + XSingleton.singleton.AddLog("[QQGroup QueryQQGroup]token:" + XSingleton.singleton.TokenCache, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void OnGetQQGroupBindInfo(GetDragonGuildBindInfoArg oArg, GetDragonGuildBindInfoRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (!flag) + { + this.qqGroupBindStatus = oRes.bind_status; + this.qqGroupName = oRes.group_name; + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshQQGroupBtn(); + } + } + } + + public void BindQQGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DragonGuild_Bind_Group); + if (!flag) + { + RpcC2M_DragonGuildBindGroupReq rpcC2M_DragonGuildBindGroupReq = new RpcC2M_DragonGuildBindGroupReq(); + rpcC2M_DragonGuildBindGroupReq.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2M_DragonGuildBindGroupReq); + XSingleton.singleton.AddLog("[QQGroup BindQQGroup]token:" + XSingleton.singleton.TokenCache, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void OnBindQQGroup(DragonGuildBindReq oArg, DragonGuildBindRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DRAGON_GUILD_BIN_QQ_GROUP_SUC"), "fece00"); + this.qqGroupName = oRes.group_name; + this.qqGroupBindStatus = GuildBindStatus.GBS_Owner; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshQQGroupBtn(); + } + } + } + + public void JoinQQGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DragonGuild_Bind_Group); + if (!flag) + { + RpcC2M_DragonGuildJoinBindGroup rpcC2M_DragonGuildJoinBindGroup = new RpcC2M_DragonGuildJoinBindGroup(); + rpcC2M_DragonGuildJoinBindGroup.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2M_DragonGuildJoinBindGroup); + XSingleton.singleton.AddLog("[QQGroup JoinQQGroup]token:" + XSingleton.singleton.TokenCache, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void OnJoinBindQQGroup(DragonGuildJoinBindGroupArg oArg, DragonGuildJoinBindGroupRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DRAGON_GUILD_JOIN_QQ_GROUP_SUC"), "fece00"); + this.qqGroupBindStatus = GuildBindStatus.GBS_Member; + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshQQGroupBtn(); + } + } + } + + public void UnbindQQGroup() + { + bool flag = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DragonGuild_Bind_Group); + if (!flag) + { + RpcC2M_DragonGuildUnBindGroup rpcC2M_DragonGuildUnBindGroup = new RpcC2M_DragonGuildUnBindGroup(); + rpcC2M_DragonGuildUnBindGroup.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2M_DragonGuildUnBindGroup); + XSingleton.singleton.AddLog("[QQGroup UnbindQQGroup]token:" + XSingleton.singleton.TokenCache, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void OnUnbindQQGroup(DragonGuildUnBindGroupArg oArg, DragonGuildUnBindGroupRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DRAGON_GUILD_UNBIND_QQ_GROUP_SUC"), "fece00"); + this.qqGroupBindStatus = GuildBindStatus.GBS_NotBind; + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshQQGroupBtn(); + } + } + } + + public void ReqLeaveDragonGuild() + { + RpcC2M_LeaveFromDragonGuild rpcC2M_LeaveFromDragonGuild = new RpcC2M_LeaveFromDragonGuild(); + rpcC2M_LeaveFromDragonGuild.oArg.roleid = XSingleton.singleton.Player.Attributes.EntityID; + XSingleton.singleton.Send(rpcC2M_LeaveFromDragonGuild); + } + + public void ReqKickAss(ulong uid) + { + RpcC2M_LeaveFromDragonGuild rpcC2M_LeaveFromDragonGuild = new RpcC2M_LeaveFromDragonGuild(); + rpcC2M_LeaveFromDragonGuild.oArg.roleid = uid; + XSingleton.singleton.Send(rpcC2M_LeaveFromDragonGuild); + } + + public void ReqShopRecords() + { + RpcC2M_GetDragonGuildShopRecord rpc = new RpcC2M_GetDragonGuildShopRecord(); + XSingleton.singleton.Send(rpc); + } + + public void OnLeaveDragonGuild(LeaveDragonGuildRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public void OnKickAss(LeaveDragonGuildArg oArg, LeaveDragonGuildRes oRes) + { + bool flag = oRes.result != ErrorCode.ERR_SUCCESS && oRes.result != ErrorCode.ERR_DG_NOT_IN_SAME; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + for (int i = 0; i < this.m_MemberList.Count; i++) + { + bool flag2 = this.m_MemberList[i].uid == oArg.roleid; + if (flag2) + { + this.m_MemberList.RemoveAt(i); + this.BaseData.memberCount = (uint)this.m_MemberList.Count; + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + this.View.RefreshMemberList(false); + this.View.RefreshLabelInfo(); + } + break; + } + } + } + } + + public void OnGetShopRecordBack(GetDragonGuildShopRecordRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_shopRecordList.Clear(); + for (int i = 0; i < oRes.record.Count; i++) + { + this.m_shopRecordList.Add(new DragonGuildShopRecord(oRes.record[i])); + } + bool flag4 = this.ShopRecordsHandler != null && this.ShopRecordsHandler.IsVisible(); + if (flag4) + { + this.ShopRecordsHandler.FillContent(); + } + } + } + } + } + + public static void OnDragonGuildHyperLinkClick(string param) + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (!flag) + { + string text = ""; + bool flag2 = XLabelSymbolHelper.ParseDragonGuildParam(param, ref text); + if (flag2) + { + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GuildCollectSummon); + if (flag3) + { + bool flag4 = XDragonGuildDocument.Doc.IsInDragonGuild(); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_DG_ALREADY_IN_DG"), "fece00"); + } + else + { + XDragonGuildListDocument.Doc.ReqSearch(text); + DlgBase.singleton.ShowTab(XSysDefine.XSys_GuildCollectSummon); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DRAGON_GUILD_LOG_CANNOT_JOIN"), "fece00"); + } + } + } + } + + public void OnNameChange(string name) + { + this.BaseData.dragonGuildName = name; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshLabelInfo(); + } + } + + internal void RefreshWXGroupBtn() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshWXGroupBtn(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildDocument.cs.meta new file mode 100644 index 00000000..c009df0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cd6237c481615bc44b68d24e51e90312 +timeCreated: 1611404554 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildInfoChange.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildInfoChange.cs new file mode 100644 index 00000000..c3c8af03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildInfoChange.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XDragonGuildInfoChange : XEventArgs + { + public XDragonGuildInfoChange() + { + this._eDefine = XEventDefine.XEvent_DragonGuildInfoChange; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildInfoChange.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildInfoChange.cs.meta new file mode 100644 index 00000000..7f5f3724 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildInfoChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e49874bf09f7ecd4da24ab71c6882e93 +timeCreated: 1611404738 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildListData.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildListData.cs new file mode 100644 index 00000000..d44293c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildListData.cs @@ -0,0 +1,33 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XDragonGuildListData : XDragonGuildBaseData + { + public bool bIsApplying; + + public bool bNeedApprove; + + public uint requiredPPT; + + public static int[] DefaultSortDirection = new int[] + { + 1, + -1, + -1, + -1, + 1, + 1, + 1 + }; + + public override void Init(DragonGuildInfo info) + { + base.Init(info); + this.bIsApplying = info.isSendApplication; + this.requiredPPT = info.recruitppt; + this.bNeedApprove = info.needapproval; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildListData.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildListData.cs.meta new file mode 100644 index 00000000..e6e2cf5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildListData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c72c8e2ce7aa8354f89fae2ba17d99e6 +timeCreated: 1611404529 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildListDocument.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildListDocument.cs new file mode 100644 index 00000000..d7035156 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildListDocument.cs @@ -0,0 +1,298 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildListDocument : XDocComponent + { + public override uint ID + { + get + { + return XDragonGuildListDocument.uuID; + } + } + + public static XDragonGuildListDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XDragonGuildListDocument.uuID) as XDragonGuildListDocument; + } + } + + public List ListData + { + get + { + return this._ListData; + } + } + + public DragonGuildSortType SortType + { + get + { + return this.m_SortType; + } + set + { + bool flag = this.m_SortType != value; + if (flag) + { + this.m_Direction = XGuildListData.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(value)]; + } + else + { + this.m_Direction = -this.m_Direction; + } + this.m_SortType = value; + } + } + + public int SortDirection + { + get + { + return this.m_Direction; + } + } + + public string SearchText { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XDragonGuildListDocument"); + + private static readonly int COUNT_PER_PULL = 5; + + private static readonly int COUNT_ALL = 500; + + private static readonly int NAME_LENGTH_LIMIT = 8; + + private List _ListData = new List(); + + private DragonGuildSortType m_SortType = DragonGuildSortType.DragonGuildSortByLevel; + + private int m_Direction = XGuildListData.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(DragonGuildSortType.DragonGuildSortByLevel)]; + + public XDragonGuildListHandler View; + + private void _ClearAllList() + { + for (int i = 0; i < this._ListData.Count; i++) + { + this._ListData[i].Recycle(); + } + this._ListData.Clear(); + } + + private void _AddTail() + { + XDragonGuildListData data = XDataPool.GetData(); + data.uid = 0UL; + this._ListData.Add(data); + } + + private void _RemoveTail() + { + bool flag = this._ListData.Count > 0 && this._ListData[this._ListData.Count - 1].uid == 0UL; + if (flag) + { + this._ListData[this._ListData.Count - 1].Recycle(); + this._ListData.RemoveAt(this._ListData.Count - 1); + } + } + + public void ReqCreateDragonGuild(string name) + { + bool flag = name.Length > XDragonGuildListDocument.NAME_LENGTH_LIMIT; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DRAGON_GUILD_NAME_LENGTH_LIMIT", new object[] + { + XDragonGuildListDocument.NAME_LENGTH_LIMIT + }), "fece00"); + } + else + { + RpcC2M_CreateOrJoinDragonGuild rpcC2M_CreateOrJoinDragonGuild = new RpcC2M_CreateOrJoinDragonGuild(); + rpcC2M_CreateOrJoinDragonGuild.oArg.iscreate = true; + rpcC2M_CreateOrJoinDragonGuild.oArg.dgname = name; + XSingleton.singleton.Send(rpcC2M_CreateOrJoinDragonGuild); + } + } + + public void OnCreateDragonGuild(CreateOrJoinDragonGuildArg oArg, CreateOrJoinDragonGuildRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + DlgBase.singleton.RefreshDragonGuildPage(); + } + } + + public void ReqApplyDragonGuild(ulong uid, string name) + { + RpcC2M_CreateOrJoinDragonGuild rpcC2M_CreateOrJoinDragonGuild = new RpcC2M_CreateOrJoinDragonGuild(); + rpcC2M_CreateOrJoinDragonGuild.oArg.iscreate = false; + rpcC2M_CreateOrJoinDragonGuild.oArg.dgid = uid; + rpcC2M_CreateOrJoinDragonGuild.oArg.dgname = name; + XSingleton.singleton.Send(rpcC2M_CreateOrJoinDragonGuild); + } + + public void OnApplyDragonGuild(CreateOrJoinDragonGuildArg oArg, CreateOrJoinDragonGuildRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + bool flag2 = oRes.result != ErrorCode.ERR_DG_WAITAPPROVAL; + if (flag2) + { + return; + } + } + DlgBase.singleton.Hide(); + bool flag3 = oRes.result == ErrorCode.ERR_DG_WAITAPPROVAL; + if (flag3) + { + for (int i = 0; i < this._ListData.Count; i++) + { + bool flag4 = this._ListData[i].uid == oArg.dgid; + if (flag4) + { + this._ListData[i].bIsApplying = true; + break; + } + } + bool flag5 = this.View != null && this.View.IsVisible(); + if (flag5) + { + this.View.RefreshPage(false); + } + } + } + + public void ReqQuickJoin() + { + this.ReqApplyDragonGuild(0UL, ""); + } + + public void ReqSearch(string text) + { + this.SearchText = text; + this._ClearAllList(); + bool flag = this.SearchText != ""; + if (flag) + { + this._ReqDragonGuildList(0, XDragonGuildListDocument.COUNT_ALL); + } + else + { + this.ReqDragonGuildList(); + } + } + + public void ReqDragonGuildList() + { + this._ClearAllList(); + this._ReqDragonGuildList(0, XDragonGuildListDocument.COUNT_PER_PULL); + } + + public void ReqMoreGuilds() + { + this._RemoveTail(); + this._ReqDragonGuildList(this._ListData.Count, XDragonGuildListDocument.COUNT_PER_PULL); + } + + private void _ReqDragonGuildList(int start, int count) + { + RpcC2M_FetchDragonGuildList rpcC2M_FetchDragonGuildList = new RpcC2M_FetchDragonGuildList(); + rpcC2M_FetchDragonGuildList.oArg.start = start; + rpcC2M_FetchDragonGuildList.oArg.count = count; + rpcC2M_FetchDragonGuildList.oArg.reason = 1; + rpcC2M_FetchDragonGuildList.oArg.sortType = XFastEnumIntEqualityComparer.ToInt(this.m_SortType); + rpcC2M_FetchDragonGuildList.oArg.name = this.SearchText; + rpcC2M_FetchDragonGuildList.oArg.reverse = (this.m_Direction * XDragonGuildListData.DefaultSortDirection[XFastEnumIntEqualityComparer.ToInt(this.m_SortType)] != 1); + XSingleton.singleton.Send(rpcC2M_FetchDragonGuildList); + } + + public void OnGetDragonGuildList(FetchDragonGuildListArg oArg, FetchDragonGuildRes oRes) + { + int num = Math.Min(this._ListData.Count, oArg.start); + for (int i = 0; i < oRes.dragonguilds.Count; i++) + { + DragonGuildInfo dragonGuildInfo = oRes.dragonguilds[i]; + for (int j = 0; j < num; j++) + { + bool flag = this._ListData[j].uid == dragonGuildInfo.id; + if (flag) + { + this._ClearAllList(); + this._ReqDragonGuildList(0, oArg.start + oArg.count); + return; + } + } + int num2 = oArg.start + i; + bool flag2 = num2 < this._ListData.Count; + XDragonGuildListData xdragonGuildListData; + if (flag2) + { + xdragonGuildListData = this._ListData[num2]; + } + else + { + xdragonGuildListData = XDataPool.GetData(); + this._ListData.Add(xdragonGuildListData); + } + xdragonGuildListData.Init(dragonGuildInfo); + } + bool flag3 = oRes.dragonguilds.Count != 0 && oArg.count != XDragonGuildListDocument.COUNT_ALL; + if (flag3) + { + this._AddTail(); + } + else + { + bool flag4 = this._ListData.Count > 0; + if (flag4) + { + bool flag5 = oArg.count != XDragonGuildListDocument.COUNT_ALL; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DRAGON_GUILD_LIST_NO_MORE_GUILDS"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DRAGON_GUILD_LIST_NO_GUILDS"), "fece00"); + } + } + bool flag6 = this.View != null && this.View.IsVisible(); + if (flag6) + { + bool flag7 = oArg.start == 0 && (oArg.count == XDragonGuildListDocument.COUNT_PER_PULL || oArg.count == XDragonGuildListDocument.COUNT_ALL); + if (flag7) + { + this.View.RefreshPage(true); + } + else + { + this.View.NewContentAppended(); + } + return; + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildListDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildListDocument.cs.meta new file mode 100644 index 00000000..2c5976cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildListDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56986dff0dbe7a84c9a3a674706f5af3 +timeCreated: 1611403744 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildListHandler.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildListHandler.cs new file mode 100644 index 00000000..c343542a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildListHandler.cs @@ -0,0 +1,331 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildListHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "DungeonTroop/DungeonTroopList"; + } + } + + private int CurPPT + { + get + { + bool getPPT = this.GetPPT; + if (getPPT) + { + XPlayer player = XSingleton.singleton.Player; + XPlayerAttributes xplayerAttributes = player.Attributes as XPlayerAttributes; + this.m_curPPT = (int)xplayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + this.GetPPT = false; + } + return this.m_curPPT; + } + } + + private XDragonGuildListDocument m_listDoc = XDragonGuildListDocument.Doc; + + private XDragonGuildDocument m_guildDoc = XDragonGuildDocument.Doc; + + private XDragonGuildCreateView _CreateView; + + private XDragonGuildBasicInfoDisplay _BasicInfoDisplayer = new XDragonGuildBasicInfoDisplay(); + + private int m_curPPT = 0; + + private bool GetPPT = false; + + private IXUIButton m_Help; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ScrollView; + + private IXUIButton m_Create; + + private IXUIButton m_QuickJoin; + + private IXUIButton m_Search; + + private IXUIInput m_SearchText; + + private GameObject m_CreatePanel; + + private XTitleBar m_TitleBar; + + private Dictionary m_helpList = new Dictionary(); + + protected override void Init() + { + base.Init(); + this.m_listDoc.View = this; + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_Create = (base.transform.Find("Bg/Create").GetComponent("XUIButton") as IXUIButton); + this.m_QuickJoin = (base.transform.Find("Bg/QuickJoin").GetComponent("XUIButton") as IXUIButton); + this.m_Search = (base.transform.Find("Bg/Search").GetComponent("XUIButton") as IXUIButton); + this.m_SearchText = (base.transform.Find("Bg/SearchText").GetComponent("XUIInput") as IXUIInput); + this.m_CreatePanel = base.transform.Find("Bg/CreatePanel").gameObject; + Transform transform = base.transform.Find("Bg/HelpList"); + int i = 0; + int childCount = transform.childCount; + while (i < childCount) + { + Transform child = transform.GetChild(i); + this.m_helpList.Add(child.GetComponent("XUIButton") as IXUIButton, child.name); + i++; + } + Transform transform2 = base.transform.Find("Bg/Titles"); + DlgHandlerBase.EnsureCreate(ref this.m_TitleBar, transform2.gameObject, null, true); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + this.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.WrapContentItemInit)); + foreach (IXUIButton ixuibutton in this.m_helpList.Keys) + { + DragonGuildIntroduce.RowData introduce = this.m_guildDoc.GetIntroduce(ixuibutton.gameObject.name); + bool flag = introduce != null; + if (flag) + { + IXUILabel ixuilabel = ixuibutton.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(introduce.Title); + } + } + DlgHandlerBase.EnsureCreate(ref this._CreateView, this.m_CreatePanel, null, true); + } + + public override void OnUnload() + { + this.m_listDoc.View = null; + DlgHandlerBase.EnsureUnload(ref this._CreateView); + DlgHandlerBase.EnsureUnload(ref this.m_TitleBar); + base.OnUnload(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnHelpBtnClick)); + this.m_Create.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnCreateBtnClick)); + this.m_Search.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnSearchBtnClick)); + this.m_QuickJoin.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnQuickJoinBtnClick)); + this.m_TitleBar.RegisterClickEventHandler(new TitleClickEventHandler(this._OnTitleClickEventHandler)); + foreach (IXUIButton ixuibutton in this.m_helpList.Keys) + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._ShowHelpClick)); + } + } + + protected override void OnShow() + { + this.m_SearchText.SetText(""); + this.m_listDoc.SearchText = ""; + this.m_listDoc.ReqDragonGuildList(); + this._CreateView.SetVisible(false); + this.RefreshPage(true); + this.m_TitleBar.Refresh((ulong)((long)XFastEnumIntEqualityComparer.ToInt(this.m_listDoc.SortType))); + } + + private bool _OnHelpBtnClick(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildCollectSummon); + return true; + } + + private bool _OnCreateBtnClick(IXUIButton go) + { + bool flag = this.m_guildDoc.IsInDragonGuild(); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_DG_ALREADY_IN_DG, "fece00"); + result = true; + } + else + { + this._CreateView.SetVisible(true); + result = true; + } + return result; + } + + private bool _OnSearchBtnClick(IXUIButton go) + { + string text = this.m_SearchText.GetText(); + this.m_listDoc.ReqSearch(text); + return true; + } + + private bool _OnQuickJoinBtnClick(IXUIButton go) + { + bool flag = this.m_guildDoc.IsInDragonGuild(); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_DG_ALREADY_IN_DG, "fece00"); + result = true; + } + else + { + this.m_listDoc.ReqQuickJoin(); + result = true; + } + return result; + } + + private bool _OnTitleClickEventHandler(ulong ID) + { + this.m_listDoc.SortType = (DragonGuildSortType)ID; + this.m_listDoc.ReqDragonGuildList(); + return this.m_listDoc.SortDirection > 0; + } + + private bool _ShowHelpClick(IXUIButton button) + { + string helpName; + bool flag = this.m_helpList.TryGetValue(button, out helpName); + bool result; + if (flag) + { + DragonGuildIntroduce.RowData introduce = this.m_guildDoc.GetIntroduce(helpName); + bool flag2 = introduce != null; + if (flag2) + { + XSingleton.singleton.ShowSystemHelp(introduce.Desc, introduce.Title, XStringDefineProxy.GetString(XStringDefine.COMMON_OK)); + } + result = true; + } + else + { + result = false; + } + return result; + } + + public void NewContentAppended() + { + List listData = this.m_listDoc.ListData; + this.m_WrapContent.SetContentCount(listData.Count, false); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + List listData = this.m_listDoc.ListData; + bool flag = index >= listData.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Item index out of range: ", index.ToString(), null, null, null, null); + } + else + { + XDragonGuildListData xdragonGuildListData = listData[index]; + Transform transform = t.Find("LoadMore"); + Transform transform2 = t.Find("ValidContent"); + IXUISprite ixuisprite = t.Find("Bg").GetComponent("XUISprite") as IXUISprite; + bool flag2 = xdragonGuildListData.uid == 0UL; + if (flag2) + { + ixuisprite.SetVisible(false); + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + } + else + { + ixuisprite.SetVisible(true); + transform.gameObject.SetActive(false); + transform2.gameObject.SetActive(true); + this._BasicInfoDisplayer.Init(t.Find("ValidContent"), false); + this._BasicInfoDisplayer.Set(xdragonGuildListData); + IXUIButton ixuibutton = t.Find("ValidContent/Apply").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = t.Find("ValidContent/Apply/T").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton2 = t.Find("ValidContent/View").GetComponent("XUIButton") as IXUIButton; + ixuibutton.SetEnable(!xdragonGuildListData.bIsApplying && !this.m_guildDoc.IsInDragonGuild(), false); + bool bIsApplying = xdragonGuildListData.bIsApplying; + if (bIsApplying) + { + ixuilabel.SetText(XStringDefineProxy.GetString("APPLYING")); + } + else + { + bool flag3 = !xdragonGuildListData.bNeedApprove; + if (flag3) + { + ixuilabel.SetText(XStringDefineProxy.GetString("JOIN")); + } + else + { + ixuilabel.SetText(XStringDefineProxy.GetString("APPLY")); + } + ixuibutton.SetGrey((ulong)xdragonGuildListData.requiredPPT <= (ulong)((long)this.CurPPT)); + } + ixuibutton.ID = (ulong)((long)index); + ixuibutton2.ID = (ulong)((long)index); + } + } + } + + private void WrapContentItemInit(Transform t, int index) + { + IXUIButton ixuibutton = t.Find("ValidContent/Apply").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnJoinBtnClick)); + IXUILabel ixuilabel = t.Find("LoadMore").GetComponent("XUILabel") as IXUILabel; + ixuilabel.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnLoadMoreClick)); + } + + private bool _OnJoinBtnClick(IXUIButton go) + { + bool flag = XDragonGuildDocument.Doc.IsInDragonGuild(); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_DG_ALREADY_IN_DG, "fece00"); + result = true; + } + else + { + int num = (int)go.ID; + bool flag2 = num < 0 || num >= this.m_listDoc.ListData.Count; + if (flag2) + { + result = false; + } + else + { + XDragonGuildListData xdragonGuildListData = this.m_listDoc.ListData[num]; + DlgBase.singleton.ShowApply(xdragonGuildListData.uid, xdragonGuildListData.dragonGuildName, xdragonGuildListData.requiredPPT, xdragonGuildListData.bNeedApprove); + result = true; + } + } + return result; + } + + private void _OnLoadMoreClick(IXUILabel go) + { + this.m_listDoc.ReqMoreGuilds(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + this.m_WrapContent.RefreshAllVisibleContents(); + } + + public void RefreshPage(bool bResetPosition = true) + { + List listData = this.m_listDoc.ListData; + this.GetPPT = true; + this.m_WrapContent.SetContentCount(listData.Count, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildListHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildListHandler.cs.meta new file mode 100644 index 00000000..74ffc692 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildListHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc36e597d77e52e41969e999527e5bdf +timeCreated: 1611404445 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildMainBonusView.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildMainBonusView.cs new file mode 100644 index 00000000..0712c5e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildMainBonusView.cs @@ -0,0 +1,95 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildMainBonusView : DlgHandlerBase + { + private IXUISprite m_btnClose; + + private GameObject m_CurrentBuff; + + private GameObject m_NextBuff; + + private XDragonGuildDocument m_doc; + + protected override void Init() + { + base.Init(); + this.m_btnClose = (base.PanelObject.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_CurrentBuff = base.PanelObject.transform.Find("Active/CurrentBuff").gameObject; + this.m_NextBuff = base.PanelObject.transform.Find("Active/NextBuff").gameObject; + this.m_doc = XDragonGuildDocument.Doc; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnCloseBtnClick)); + } + + private void _OnCloseBtnClick(IXUISprite go) + { + base.SetVisible(false); + } + + protected override void OnShow() + { + base.OnShow(); + this.Refresh(); + } + + public void Refresh() + { + uint level = this.m_doc.BaseData.level; + bool flag = this.m_doc.IsMaxLevel(); + if (flag) + { + this._RefreshBuff(this.m_CurrentBuff, level); + this._SetFinalBuff(this.m_NextBuff); + } + else + { + this._RefreshBuff(this.m_CurrentBuff, level); + this._RefreshBuff(this.m_NextBuff, level + 1u); + } + } + + protected override void OnHide() + { + base.OnHide(); + } + + private void _SetFinalBuff(GameObject go) + { + IXUILabel ixuilabel = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Buff1").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText("--"); + ixuilabel2.SetText(XStringDefineProxy.GetString("DRAGON_GUILD_MAX_LEVEL")); + } + + private void _RefreshBuff(GameObject go, uint level) + { + DragonGuildTable.RowData bylevel = XDragonGuildDocument.DragonGuildBuffTable.GetBylevel(level); + bool flag = bylevel == null; + if (!flag) + { + IXUILabel ixuilabel = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Buff1").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(bylevel.level.ToString()); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData(bylevel.buf[0], bylevel.buf[1]); + bool flag2 = buffData == null; + if (flag2) + { + ixuilabel2.SetText(string.Empty); + } + else + { + ixuilabel2.SetText(buffData.BuffName); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildMainBonusView.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildMainBonusView.cs.meta new file mode 100644 index 00000000..24f3eaf2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildMainBonusView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 09c853c41684b1548ab14cd7591317f5 +timeCreated: 1611403159 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildMainHandler.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildMainHandler.cs new file mode 100644 index 00000000..c9f9e646 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildMainHandler.cs @@ -0,0 +1,755 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildMainHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "DungeonTroop/DungeonTroopMenberDlg"; + } + } + + private XDragonGuildDocument m_doc = XDragonGuildDocument.Doc; + + private XDragonGuildMemberInfoDisplay _MemberInfoDisplay = new XDragonGuildMemberInfoDisplay(); + + private DragonGuildPosition m_SelectedHigherPosition; + + private DragonGuildPosition m_SelectedLowerPosition; + + private ulong m_SelectedMemberID; + + private string m_SelectedName; + + private XDragonGuildMember m_SelectMember; + + private IXUIButton m_Help; + + private IXUILabel m_DragonGuildName; + + private IXUILabel m_DragonGuildMemberCount; + + private IXUILabel m_DragonGuildLevel; + + private IXUILabel m_DragonGuildTotalPPT; + + private IXUILabel m_DragonGuildTeamLeaderName; + + private XTitleBar m_TitleBar; + + private IXUIWrapContent m_WrapContent; + + private IXUIScrollView m_ScrollView; + + private XDragonGuildMainBonusView m_BonusView; + + private IXUIButton m_BonusButton; + + private IXUIButton m_DismissButton; + + private IXUIButton m_LeaveButton; + + private IXUIButton m_StoreButton; + + private IXUIButton m_RecordButton; + + private IXUIButton m_RankButton; + + private IXUIButton m_AuthoriseButton; + + private IXUIButton m_LivenessRewardButton; + + private IXUIButton m_BtnQQGroup; + + private IXUILabel m_BtnQQGroupText; + + private IXUILabel m_QQGroupName; + + private IXUIButton m_BtnWXGroup; + + private IXUILabel m_BtnWXGroupText; + + protected override void Init() + { + base.Init(); + this.m_doc.View = this; + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_DragonGuildName = (base.transform.Find("Bg/Status/Title").GetComponent("XUILabel") as IXUILabel); + this.m_DragonGuildMemberCount = (base.transform.Find("Bg/Status/Num").GetComponent("XUILabel") as IXUILabel); + this.m_DragonGuildLevel = (base.transform.Find("Bg/Status/Level").GetComponent("XUILabel") as IXUILabel); + this.m_DragonGuildTotalPPT = (base.transform.Find("Bg/Status/PPT").GetComponent("XUILabel") as IXUILabel); + this.m_DragonGuildTeamLeaderName = (base.transform.Find("Bg/Status/Leader").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Titles"); + DlgHandlerBase.EnsureCreate(ref this.m_TitleBar, transform.gameObject, null, true); + this.m_WrapContent = (base.transform.Find("Bg/Panel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ScrollView = (base.transform.Find("Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + DlgHandlerBase.EnsureCreate(ref this.m_BonusView, base.transform.Find("Bg/TroopBonusPop").gameObject, this, true); + this.m_BonusButton = (base.transform.Find("Bg/MenuList/BtnTroopBonus").GetComponent("XUIButton") as IXUIButton); + this.m_DismissButton = (base.transform.Find("Bg/MenuList/BtnDismiss").GetComponent("XUIButton") as IXUIButton); + this.m_LeaveButton = (base.transform.Find("Bg/MenuList/BtnLeave").GetComponent("XUIButton") as IXUIButton); + this.m_StoreButton = (base.transform.Find("Bg/MenuList/BtnTroopStore").GetComponent("XUIButton") as IXUIButton); + this.m_RecordButton = (base.transform.Find("Bg/MenuList/BtnTroopRecord").GetComponent("XUIButton") as IXUIButton); + this.m_RankButton = (base.transform.Find("Bg/MenuList/BtnTroopRank").GetComponent("XUIButton") as IXUIButton); + this.m_AuthoriseButton = (base.transform.Find("Bg/MenuList/BtnTroopAuthorise").GetComponent("XUIButton") as IXUIButton); + this.m_LivenessRewardButton = (base.transform.Find("Bg/MenuList/BtnTroopReward").GetComponent("XUIButton") as IXUIButton); + this.m_BtnWXGroup = (base.transform.Find("Bg/MenuList/BtnTroopWeChat").GetComponent("XUIButton") as IXUIButton); + this.m_BtnWXGroupText = (base.transform.Find("Bg/MenuList/BtnTroopWeChat/T").GetComponent("XUILabel") as IXUILabel); + this.m_BtnQQGroup = (base.transform.Find("Bg/MenuList/BtnTroopQQ").GetComponent("XUIButton") as IXUIButton); + this.m_BtnQQGroupText = (base.transform.Find("Bg/MenuList/BtnTroopQQ/T").GetComponent("XUILabel") as IXUILabel); + this.m_QQGroupName = (base.transform.Find("Bg/MenuList/BtnTroopQQ/QQGroupInfo").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnHelpBtnClick)); + this.m_StoreButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopButtonClick)); + this.m_LivenessRewardButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLivenessButtonClick)); + this.m_RecordButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRecordButtonClick)); + this.m_RankButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnRankBtnClick)); + this.m_AuthoriseButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnAuthoriseBtnClick)); + this.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.WrapContentItemUpdated)); + this.m_WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.WrapContentItemInit)); + this.m_TitleBar.RegisterClickEventHandler(new TitleClickEventHandler(this._OnTitleClickEventHandler)); + this.m_LeaveButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnLeaveBtnClick)); + this.m_DismissButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDismissBtnClick)); + this.m_BtnWXGroup.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnWXGroupBtnClick)); + this.m_BtnQQGroup.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnQQGroupBtnClick)); + this.m_BonusButton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnBonusBtnClick)); + } + + private bool _OnHelpBtnClick(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_GuildCollectSummon); + return true; + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_TitleBar); + DlgHandlerBase.EnsureUnload(ref this.m_BonusView); + base.OnUnload(); + } + + private bool _OnBonusBtnClick(IXUIButton button) + { + this.m_BonusView.SetVisible(true); + return true; + } + + private bool _OnAuthoriseBtnClick(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool _OnRankBtnClick(IXUIButton go) + { + DlgBase.singleton.ShowRank(XSysDefine.XSys_Rank_DragonGuild); + return true; + } + + private bool _OnDismissBtnClick(IXUIButton button) + { + string @string = XStringDefineProxy.GetString("DRAGON_GUILD_DISMISS_TIP"); + string string2 = XStringDefineProxy.GetString("COMMON_OK"); + string string3 = XStringDefineProxy.GetString("COMMON_CANCEL"); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this._OnLeaveBtnClick), null); + return true; + } + + private bool _OnLeaveBtnClick(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + this.m_doc.ReqLeaveDragonGuild(); + return true; + } + + protected override void OnShow() + { + this.m_doc.ReqMemberList(); + this.m_TitleBar.Refresh((ulong)((long)XFastEnumIntEqualityComparer.ToInt(this.m_doc.SortType))); + this.m_BonusView.SetVisible(false); + this.m_doc.QueryWXGroup(); + this.m_doc.QueryQQGroup(); + } + + public bool OnRecordButtonClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + + public bool OnShopButtonClick(IXUIButton btn) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_DragonGuildShop, 0UL); + return true; + } + + public bool OnLivenessButtonClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(true, true); + return true; + } + + public void RefreshPage() + { + this.RefreshMemberList(true); + this.RefreshButtonsState(); + this.RefreshLabelInfo(); + this.RefreshUIRedPoint(); + this.RefreshWXGroupBtn(); + this.RefreshQQGroupBtn(); + } + + public void RefreshLabelInfo() + { + this.m_DragonGuildName.SetText(this.m_doc.BaseData.dragonGuildName); + this.m_DragonGuildLevel.SetText(this.m_doc.BaseData.level.ToString()); + this.m_DragonGuildMemberCount.SetText(string.Format("{0}/{1}", this.m_doc.BaseData.memberCount, this.m_doc.BaseData.maxMemberCount)); + this.m_DragonGuildTotalPPT.SetText(this.m_doc.BaseData.totalPPT.ToString()); + this.m_DragonGuildTeamLeaderName.SetText(this.m_doc.BaseData.leaderName); + } + + public void RefreshUIRedPoint() + { + this.m_RecordButton.gameObject.transform.Find("redpoint").gameObject.SetActive(this.m_doc.IsHadRecordRedPoint); + this.m_LivenessRewardButton.gameObject.transform.Find("redpoint").gameObject.SetActive(this.m_doc.IsHadLivenessRedPoint); + } + + public void RefreshMemberList(bool bResetPosition = true) + { + List memberList = this.m_doc.MemberList; + int count = memberList.Count; + this.m_WrapContent.SetContentCount(count, false); + if (bResetPosition) + { + this.m_ScrollView.ResetPosition(); + } + } + + public void RefreshButtonsState() + { + this.m_AuthoriseButton.SetVisible(this.m_doc.IHavePermission(DragonGuildPermission.DGEM_APPROVAL)); + bool flag = this.m_doc.IHavePermission(DragonGuildPermission.DGEM_DISMISS); + if (flag) + { + this.m_LeaveButton.SetVisible(false); + this.m_DismissButton.SetVisible(true); + } + else + { + this.m_LeaveButton.SetVisible(true); + this.m_DismissButton.SetVisible(false); + } + } + + private bool _OnTitleClickEventHandler(ulong ID) + { + this.m_doc.SortType = (DragonGuildMemberSortType)ID; + this.m_doc.SortAndShow(); + return this.m_doc.SortDirection > 0; + } + + private void WrapContentItemInit(Transform itemTransform, int index) + { + IXUISprite ixuisprite = itemTransform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnMemberClick)); + } + + private void WrapContentItemUpdated(Transform t, int index) + { + bool flag = index < 0 || index >= this.m_doc.MemberList.Count; + if (!flag) + { + XDragonGuildMember xdragonGuildMember = this.m_doc.MemberList[index]; + ulong entityID = XSingleton.singleton.Player.Attributes.EntityID; + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + GameObject gameObject = t.Find("PlayerBg").gameObject; + IXUILabel ixuilabel = t.Find("LastLoginTime").GetComponent("XUILabel") as IXUILabel; + this._MemberInfoDisplay.Init(t, false); + this._MemberInfoDisplay.Set(xdragonGuildMember); + bool flag2 = this.m_doc.Position == DragonGuildPosition.DGPOS_LEADER || this.m_doc.Position == DragonGuildPosition.DGPOS_VICELEADER; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.TimeAgoFormatString(xdragonGuildMember.time)); + } + else + { + ixuilabel.SetText(XSingleton.singleton.TimeOnOrOutFromString(xdragonGuildMember.time)); + } + ixuisprite.ID = (ulong)((long)index); + gameObject.SetActive(entityID == xdragonGuildMember.uid); + } + } + + private void _OnMemberClick(IXUISprite iSp) + { + int num = (int)iSp.ID; + bool flag = num < 0 || num >= this.m_doc.MemberList.Count; + if (!flag) + { + XDragonGuildMember xdragonGuildMember = this.m_doc.MemberList[num]; + bool flag2 = xdragonGuildMember.uid == XSingleton.singleton.Player.Attributes.EntityID; + if (!flag2) + { + this.m_SelectMember = xdragonGuildMember; + this.m_SelectedName = xdragonGuildMember.name; + this.m_SelectedMemberID = xdragonGuildMember.uid; + DragonGuildPosition position = xdragonGuildMember.position; + this.m_SelectedHigherPosition = (DragonGuildPosition)XDragonGuildDocument.DragonGuildPP.GetHigherPosition(position); + this.m_SelectedLowerPosition = (DragonGuildPosition)XDragonGuildDocument.DragonGuildPP.GetLowerPosition(position); + DragonGuildPermission setPositionPermission = XDragonGuildDocument.DragonGuildPP.GetSetPositionPermission(this.m_SelectedHigherPosition, this.m_SelectedHigherPosition); + DragonGuildPermission setPositionPermission2 = XDragonGuildDocument.DragonGuildPP.GetSetPositionPermission(position, this.m_SelectedLowerPosition); + List list = new List(); + List list2 = new List(); + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_VIEW")); + list2.Add(new ButtonClickEventHandler(DlgBase.singleton.ShowDetailInfo)); + bool flag3 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + if (flag3) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_ADDFRIEND")); + list2.Add(new ButtonClickEventHandler(DlgBase.singleton.AddFriend)); + } + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_SENDFLOWER")); + list2.Add(new ButtonClickEventHandler(DlgBase.singleton.SendFlower)); + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_PRIVATECHAT")); + list2.Add(new ButtonClickEventHandler(DlgBase.singleton.PrivateChat)); + bool flag4 = this.m_doc.Position == DragonGuildPosition.DGPOS_LEADER; + if (flag4) + { + DragonGuildPosition position2 = xdragonGuildMember.position; + if (position2 != DragonGuildPosition.DGPOS_VICELEADER) + { + if (position2 == DragonGuildPosition.DGPOS_MEMBER) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_DRAGON_GUILD_INCREASEPOSITION")); + list2.Add(new ButtonClickEventHandler(this._HigherPositionClick)); + } + } + else + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_DRAGON_GUILD_DECREASEPOSITION")); + list2.Add(new ButtonClickEventHandler(this._LowerPositionClick)); + } + } + bool flag5 = this.m_doc.IHavePermission(DragonGuildPermission.DGEM_FIREMEMBER); + if (flag5) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_FIREFROMDRAGONGUILD")); + list2.Add(new ButtonClickEventHandler(this._OnKickAssBtnClick)); + } + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_PK")); + list2.Add(new ButtonClickEventHandler(this._PKClick)); + DlgBase.singleton.ShowMenuUI(xdragonGuildMember.uid, xdragonGuildMember.name, list, list2, 0u, (uint)xdragonGuildMember.profession); + } + } + } + + private bool _LowerPositionClick(IXUIButton button) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + this.m_doc.ReqChangePosition(this.m_SelectedMemberID, DragonGuildPosition.DGPOS_MEMBER); + return true; + } + + private bool _HigherPositionClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + this.m_doc.ReqChangePosition(this.m_SelectedMemberID, DragonGuildPosition.DGPOS_VICELEADER); + return true; + } + + private bool _OnKickAssBtnClick(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + bool flag = !this.m_doc.CheckPermission(DragonGuildPermission.DGEM_FIREMEMBER); + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("DRAGON_GUILD_FIREMEMBER_CONFIRM", new object[] + { + this.m_SelectedName + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._KickAss)); + result = true; + } + return result; + } + + private bool _KickAss(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = !this.m_doc.CheckPermission(DragonGuildPermission.DGEM_FIREMEMBER); + bool result; + if (flag) + { + result = true; + } + else + { + this.m_doc.ReqKickAss(this.m_SelectedMemberID); + result = true; + } + return result; + } + + private bool _PKClick(IXUIButton btn) + { + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + specificDocument.SendPKInvitation(this.m_SelectedMemberID); + return true; + } + + private bool _OnWXGroupBtnClick(IXUIButton btn) + { + bool flag = XSingleton.singleton.XPlatform.CheckStatus("Weixin_Installed", ""); + bool flag2 = !flag; + bool result; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_WX_NOT_INSTALL"), "fece00"); + result = false; + } + else + { + int num = (int)btn.ID; + Dictionary dictionary = new Dictionary(); + dictionary["unionID"] = this.m_doc.BaseData.uid.ToString(); + dictionary["chatRoomNickName"] = XSingleton.singleton.XPlayerData.Name; + bool flag3 = num == 0; + if (flag3) + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.DragonGuild; + dictionary["chatRoomName"] = this.m_doc.BaseData.dragonGuildName; + string param = Json.Serialize(dictionary); + XSingleton.singleton.XPlatform.CreateWXGroup(param); + XSingleton.singleton.AddLog("[WXGroup DragonGuild CreateWXGroup] param:" + dictionary.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + bool flag4 = num == 1; + if (flag4) + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.DragonGuild; + string param2 = Json.Serialize(dictionary); + XSingleton.singleton.XPlatform.JoinWXGroup(param2); + } + else + { + bool flag5 = num == 2; + if (flag5) + { + return this._OnGuildWXGroupShare(); + } + } + } + result = true; + } + return result; + } + + private bool _OnGuildWXGroupShare() + { + bool flag = XSingleton.singleton.XPlatform.CheckStatus("Weixin_Installed", ""); + bool flag2 = !flag; + bool result; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GUILD_WX_NOT_INSTALL"), "fece00"); + result = false; + } + else + { + XSingleton.singleton.wxGroupCallbackType = WXGroupCallBackType.DragonGuild; + Dictionary dictionary = new Dictionary(); + dictionary["msgType"] = 1; + dictionary["subType"] = 1; + dictionary["unionid"] = this.m_doc.BaseData.uid.ToString(); + dictionary["title"] = XSingleton.singleton.GetValue("DragonGuildGroupShareTitle"); + dictionary["description"] = XSingleton.singleton.GetValue("DragonGuildGroupShareContent"); + dictionary["mediaTagName"] = "MSG_INVITE"; + dictionary["imgUrl"] = XSingleton.singleton.GetValue("DragonGuildGroupShareImgUrl"); + dictionary["messageExt"] = "messageExt"; + dictionary["msdkExtInfo"] = "msdkExtInfo"; + string param = Json.Serialize(dictionary); + XSingleton.singleton.XPlatform.ShareWithWXGroup(param); + result = true; + } + return result; + } + + public void DragonGuildGroupResult(string apiId, string result, int error) + { + XSingleton.singleton.AddLog("[WXGroup DragonGuildGroupResult]appiId:" + apiId + ",result:" + result, null, null, null, null, null, XDebugColor.XDebug_None); + int num = 0; + bool flag = !int.TryParse(apiId, out num); + if (flag) + { + XSingleton.singleton.AddLog("[WXGroup DragonGuildGroupResult]appiId parse failed", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + bool flag2 = num == 6; + if (flag2) + { + bool flag3 = result == "Success"; + if (flag3) + { + this.m_doc.QueryWXGroup(); + } + else + { + this.HandleErrorCode(error); + } + } + else + { + bool flag4 = num == 8; + if (flag4) + { + bool flag5 = result == "Success"; + if (flag5) + { + this.m_doc.QueryWXGroup(); + } + else + { + this.HandleErrorCode(error); + } + } + else + { + bool flag6 = num == 9; + if (flag6) + { + bool flag7 = result == "Success"; + if (flag7) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DRAGON_GUILD_GROUP_SHARE_SUC"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DRAGON_GUILD_GROUP_SHARE_FAIL"), "fece00"); + } + } + } + } + } + } + + private void HandleErrorCode(int errorCode) + { + string key = string.Format("DRAGON_GUILD_GROUP_ERROR_{0}", errorCode.ToString()); + string text; + bool data = XSingleton.singleton.GetData(key, out text); + if (data) + { + XSingleton.singleton.ShowSystemTip(text, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip("DRAGON_GUILD_GROUP_ERROR_OTHER", "fece00"); + } + } + + public void RefreshWXGroupBtn() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_WeChat || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DragonGuild_Bind_Group); + if (flag2) + { + this.m_BtnWXGroup.SetVisible(false); + } + else + { + bool flag3 = XSingleton.singleton.wxGroupInfo != null && XSingleton.singleton.wxGroupInfo.data.flag == "Success" && XSingleton.singleton.wxGroupInfo.data.errorCode != -10007; + if (flag3) + { + XSingleton.singleton.AddLog("[WXGroup DragonGuild RefreshWXGroupBtn] 1", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag4 = false; + string[] array = XSingleton.singleton.wxGroupInfo.data.openIdList.Split(new char[] + { + ',' + }); + for (int i = 0; i < array.Length; i++) + { + bool flag5 = array[i] == XSingleton.singleton.OpenID; + if (flag5) + { + flag4 = true; + break; + } + } + bool flag6 = flag4; + if (flag6) + { + XSingleton.singleton.AddLog("[WXGroup DragonGuild RefreshWXGroupBtn] 2", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnWXGroup.ID = 2UL; + this.m_BtnWXGroupText.SetText(XSingleton.singleton.GetString("DRAGON_GUILD_WX_SHARE")); + this.m_BtnWXGroup.SetVisible(true); + } + else + { + bool flag7 = XSingleton.singleton.wxGroupInfo.data.errorCode == 0; + if (flag7) + { + XSingleton.singleton.AddLog("[WXGroup DragonGuild RefreshWXGroupBtn] 3", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnWXGroup.SetVisible(true); + this.m_BtnWXGroup.ID = 1UL; + this.m_BtnWXGroupText.SetText(XSingleton.singleton.GetString("DRAGON_GUILD_JOIN_WX_GROUP")); + } + else + { + XSingleton.singleton.AddLog("[WXGroup DragonGuild RefreshWXGroupBtn] 4", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnWXGroup.SetVisible(false); + } + } + } + else + { + bool flag8 = XSingleton.singleton.wxGroupInfo != null && XSingleton.singleton.wxGroupInfo.data.flag == "Success" && XSingleton.singleton.wxGroupInfo.data.errorCode == -10007; + if (flag8) + { + XSingleton.singleton.AddLog("[WXGroup DragonGuild RefreshWXGroupBtn] 5", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag9 = this.m_doc.Position == DragonGuildPosition.DGPOS_LEADER || this.m_doc.Position == DragonGuildPosition.DGPOS_VICELEADER; + if (flag9) + { + this.m_BtnWXGroup.ID = 0UL; + this.m_BtnWXGroup.SetVisible(true); + this.m_BtnWXGroupText.SetText(XSingleton.singleton.GetString("DRAGON_GUILD_CREATE_WX_GROUP")); + } + else + { + this.m_BtnWXGroup.SetVisible(false); + } + } + else + { + XSingleton.singleton.AddLog("[WXGroup DragonGuild RefreshWXGroupBtn] 6", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnWXGroup.SetVisible(false); + } + } + } + } + } + + private bool _OnQQGroupBtnClick(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num == 2; + if (flag) + { + this.m_doc.BindQQGroup(); + } + else + { + bool flag2 = num == 3; + if (flag2) + { + this.m_doc.JoinQQGroup(); + } + else + { + bool flag3 = num == 1; + if (flag3) + { + this.m_doc.UnbindQQGroup(); + } + } + } + return true; + } + + public void RefreshQQGroupBtn() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ || !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DragonGuild_Bind_Group); + if (flag2) + { + this.m_BtnQQGroup.SetVisible(false); + } + else + { + XSingleton.singleton.AddLog("[QQGroup DragonGuild RefreshQQGroupBtn] 1", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = this.m_doc.qqGroupBindStatus == GuildBindStatus.GBS_Owner || this.m_doc.qqGroupBindStatus == GuildBindStatus.GBS_Admin || this.m_doc.qqGroupBindStatus == GuildBindStatus.GBS_Member; + if (flag3) + { + bool flag4 = this.m_doc.Position == DragonGuildPosition.DGPOS_LEADER; + if (flag4) + { + XSingleton.singleton.AddLog("[QQGroup DragonGuild RefreshQQGroupBtn] 2", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnQQGroup.SetVisible(true); + this.m_BtnQQGroup.ID = 1UL; + this.m_BtnQQGroupText.SetText(XSingleton.singleton.GetString("DRAGON_GUILD_UNBIND_QQ_GROUP")); + } + else + { + XSingleton.singleton.AddLog("[QQGroup DragonGuild RefreshQQGroupBtn] 3", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnQQGroup.SetVisible(true); + this.m_BtnQQGroupText.SetText(this.m_doc.qqGroupName); + } + } + else + { + bool flag5 = this.m_doc.qqGroupBindStatus == GuildBindStatus.GBS_NotBind; + if (flag5) + { + bool flag6 = this.m_doc.Position == DragonGuildPosition.DGPOS_LEADER; + if (flag6) + { + XSingleton.singleton.AddLog("[QQGroup DragonGuild RefreshQQGroupBtn] 4", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnQQGroup.ID = 2UL; + this.m_BtnQQGroup.SetVisible(true); + this.m_BtnQQGroupText.SetText(XSingleton.singleton.GetString("DRAGON_GUILD_BIND_QQ_GROUP")); + this.m_QQGroupName.SetText(XSingleton.singleton.GetString("DRAGON_GUILD_NOT_BIN_QQ_GROUP")); + } + else + { + XSingleton.singleton.AddLog("[QQGroup DragonGuild RefreshQQGroupBtn] 5", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnQQGroup.ID = 4UL; + this.m_BtnQQGroup.SetVisible(true); + this.m_BtnQQGroupText.SetText(""); + this.m_QQGroupName.SetText(XSingleton.singleton.GetString("DRAGON_GUILD_NOT_BIN_QQ_GROUP")); + } + } + else + { + bool flag7 = this.m_doc.qqGroupBindStatus == GuildBindStatus.GBS_NotMember; + if (flag7) + { + XSingleton.singleton.AddLog("[QQGroup DragonGuild RefreshQQGroupBtn] 6", null, null, null, null, null, XDebugColor.XDebug_None); + this.m_BtnQQGroup.SetVisible(true); + this.m_BtnQQGroup.ID = 3UL; + this.m_BtnQQGroupText.SetText(XSingleton.singleton.GetString("DRAGON_GUILD_JOIN_QQ_GROUP")); + this.m_QQGroupName.SetText(this.m_doc.qqGroupName); + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildMainHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildMainHandler.cs.meta new file mode 100644 index 00000000..916c8e1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildMainHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b2de6cf26a3cb545990747de44d7f3b +timeCreated: 1611403686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildMember.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildMember.cs new file mode 100644 index 00000000..0d52e491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildMember.cs @@ -0,0 +1,151 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildMember : IComparable + { + public static int ONLINE_TIME = -1; + + public ulong uid; + + public string name; + + public int profession = 1; + + public uint ppt; + + public uint level; + + public DragonGuildPosition position; + + public int time; + + public uint vip; + + public bool isOnline; + + public uint liveness; + + public uint paymemberid; + + public uint titleID; + + public static DragonGuildMemberSortType sortType = DragonGuildMemberSortType.DGMST_ID; + + public static ulong playerID = 0UL; + + public static int dir = -1; + + public static int[] DefaultSortDirection = new int[] + { + 1, + -1, + -1, + -1, + -1, + -1, + 1 + }; + + public string GetLiveness() + { + return this.liveness.ToString(); + } + + public int CompareTo(XDragonGuildMember other) + { + int num = 0; + bool flag = XDragonGuildMember.playerID != 0UL && this.uid != other.uid; + if (flag) + { + bool flag2 = this.uid == XDragonGuildMember.playerID; + if (flag2) + { + return -1; + } + bool flag3 = other.uid == XDragonGuildMember.playerID; + if (flag3) + { + return 1; + } + } + bool flag4 = this.ppt == 0u && other.ppt > 0u; + int result; + if (flag4) + { + result = 1; + } + else + { + bool flag5 = this.ppt != 0u && other.ppt == 0u; + if (flag5) + { + result = -1; + } + else + { + switch (XDragonGuildMember.sortType) + { + case DragonGuildMemberSortType.DGMST_TITLE: + num = this.titleID.CompareTo(other.titleID); + break; + case DragonGuildMemberSortType.DGMST_LEVEL: + num = this.level.CompareTo(other.level); + break; + case DragonGuildMemberSortType.DGMST_POSITION: + num = -this.position.CompareTo(other.position); + break; + case DragonGuildMemberSortType.DGMST_PPT: + num = this.ppt.CompareTo(other.ppt); + break; + case DragonGuildMemberSortType.DGMST_ACTIVE: + num = this.liveness.CompareTo(other.liveness); + break; + case DragonGuildMemberSortType.DGMST_ONLINE: + num = this.isOnline.CompareTo(other.isOnline); + break; + case DragonGuildMemberSortType.DGMST_NAME: + num = this.name.CompareTo(other.name); + break; + case DragonGuildMemberSortType.DGMST_PROFESSION: + num = this.profession.CompareTo(other.profession); + break; + case DragonGuildMemberSortType.DGMST_TIME: + num = this.time.CompareTo(other.time); + break; + } + bool flag6 = num == 0; + if (flag6) + { + num = this.uid.CompareTo(other.uid); + } + result = num * XDragonGuildMember.dir; + } + } + return result; + } + + public void Set(DragonGuildMembersInfo data) + { + this.uid = data.roleid; + this.name = data.name; + this.position = (DragonGuildPosition)data.position; + this.ppt = data.ppt; + this.level = data.level; + this.profession = XFastEnumIntEqualityComparer.ToInt(data.profession); + this.time = (int)data.lastlogin; + this.vip = data.vip; + this.paymemberid = data.paymemberid; + this.isOnline = data.isonline; + this.liveness = data.activity; + bool flag = data.lastlogin == 0u; + if (flag) + { + this.time = XDragonGuildMember.ONLINE_TIME; + } + this.titleID = data.title; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildMember.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildMember.cs.meta new file mode 100644 index 00000000..a5d8bc35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildMember.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 114cd02777f74c44685f58e9cf209d9e +timeCreated: 1611403221 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildMemberInfoDisplay.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildMemberInfoDisplay.cs new file mode 100644 index 00000000..61a40a8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildMemberInfoDisplay.cs @@ -0,0 +1,176 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildMemberInfoDisplay + { + public Transform Root; + + public IXUILabelSymbol Name; + + public IXUILabel Level; + + public IXUILabel Position; + + public IXUILabel PPT; + + public IXUISprite Portrait; + + public IXUISprite Profession; + + public IXUILabel Liveness; + + public IXUISpriteAnimation Title; + + public void Init(Transform go, bool bFirstInit) + { + this.Root = go; + Transform transform = this.Root.Find("Name"); + bool flag = transform != null; + if (flag) + { + this.Name = (transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol); + if (bFirstInit) + { + this.Name.InputText = ""; + } + } + else + { + this.Name = null; + } + transform = this.Root.Find("Position"); + bool flag2 = transform != null; + if (flag2) + { + this.Position = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Position.SetText(""); + } + } + else + { + this.Position = null; + } + transform = this.Root.Find("Level"); + bool flag3 = transform != null; + if (flag3) + { + this.Level = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Level.SetText(""); + } + } + else + { + this.Level = null; + } + transform = this.Root.Find("PPT"); + bool flag4 = transform != null; + if (flag4) + { + this.PPT = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.PPT.SetText(""); + } + } + else + { + this.PPT = null; + } + transform = this.Root.Find("Portrait"); + bool flag5 = transform != null; + if (flag5) + { + this.Portrait = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.Portrait = null; + } + transform = this.Root.Find("Profession"); + bool flag6 = transform != null; + if (flag6) + { + this.Profession = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.Profession = null; + } + transform = this.Root.Find("Liveness"); + bool flag7 = transform != null; + if (flag7) + { + this.Liveness = (transform.GetComponent("XUILabel") as IXUILabel); + if (bFirstInit) + { + this.Liveness.SetText(string.Empty); + } + } + transform = this.Root.Find("Title"); + bool flag8 = transform != null; + if (flag8) + { + this.Title = (transform.GetComponent("XUISpriteAnimation") as IXUISpriteAnimation); + } + } + + public void Set(XDragonGuildMember data) + { + bool flag = this.Name != null; + if (flag) + { + this.Name.InputText = data.name + XWelfareDocument.GetMemberPrivilegeIconString(data.paymemberid) + XRechargeDocument.GetVIPIconString(data.vip); + } + bool flag2 = this.Position != null; + if (flag2) + { + this.Position.SetText(XDragonGuildDocument.DragonGuildPP.GetPositionName(data.position, false)); + } + bool flag3 = this.Level != null; + if (flag3) + { + this.Level.SetText("Lv." + data.level); + } + bool flag4 = this.PPT != null; + if (flag4) + { + this.PPT.SetText(data.ppt.ToString()); + } + bool flag5 = this.Portrait != null; + if (flag5) + { + this.Portrait.SetSprite(XSingleton.singleton.GetProfHeadIcon2(data.profession)); + } + bool flag6 = this.Profession != null; + if (flag6) + { + this.Profession.SetSprite(XSingleton.singleton.GetProfIcon(data.profession)); + } + bool flag7 = this.Liveness != null; + if (flag7) + { + this.Liveness.SetText(data.GetLiveness()); + } + bool flag8 = this.Title != null; + if (flag8) + { + TitleTable.RowData title = XTitleDocument.GetTitle(data.titleID); + bool flag9 = title != null; + if (flag9) + { + this.Title.SetNamePrefix(title.RankAtlas, title.RankIcon); + this.Title.SetFrameRate(XTitleDocument.TITLE_FRAME_RATE); + this.Title.MakePixelPerfect(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildMemberInfoDisplay.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildMemberInfoDisplay.cs.meta new file mode 100644 index 00000000..ab38f3ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildMemberInfoDisplay.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8707489a6373405498d5987d5db993dd +timeCreated: 1611404076 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildPP.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildPP.cs new file mode 100644 index 00000000..86cdb4cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildPP.cs @@ -0,0 +1,189 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildPP + { + public static int POSITION_COUNT; + + private List PositionName = new List(); + + private List PositionColor = new List(); + + private List PositionNameWithColor = new List(); + + public static int PERMISSION_COUNT; + + private int[][] DragonGuildPermissionMatrix; + + public static int PemissionNameToIndex(string pemstr) + { + return XDragonGuildPP.Permission2Int((DragonGuildPermission)Enum.Parse(typeof(DragonGuildPermission), pemstr)); + } + + public void InitTable(DragonGuildPermissionTable table) + { + this.PositionName.Clear(); + this.PositionColor.Clear(); + this.PositionNameWithColor.Clear(); + XDragonGuildPP.POSITION_COUNT = XDragonGuildPP.Position2Int(DragonGuildPosition.DGPOS_COUNT); + for (int i = 0; i < XDragonGuildPP.POSITION_COUNT; i++) + { + DragonGuildPosition dragonGuildPosition = (DragonGuildPosition)i; + string @string = XStringDefineProxy.GetString(dragonGuildPosition.ToString()); + this.PositionName.Add(@string); + this.PositionColor.Add(XSingleton.singleton.GetItemQualityColor(XDragonGuildPP.POSITION_COUNT - 1 - i)); + this.PositionNameWithColor.Add(string.Format("[{0}]{1}[-]", XSingleton.singleton.GetItemQualityRGB(XDragonGuildPP.POSITION_COUNT - 1 - i), @string)); + } + XDragonGuildPP.PERMISSION_COUNT = XDragonGuildPP.Permission2Int(DragonGuildPermission.DGEM_MAX); + this.DragonGuildPermissionMatrix = new int[XDragonGuildPP.PERMISSION_COUNT][]; + for (int j = 0; j < this.DragonGuildPermissionMatrix.Length; j++) + { + this.DragonGuildPermissionMatrix[j] = new int[XDragonGuildPP.POSITION_COUNT]; + } + for (int k = 0; k < table.Table.Length; k++) + { + DragonGuildPermissionTable.RowData rowData = table.Table[k]; + int num = XDragonGuildPP.PemissionNameToIndex(rowData.DragonGuildID); + this.DragonGuildPermissionMatrix[num][XDragonGuildPP.Position2Int(DragonGuildPosition.DGPOS_LEADER)] = rowData.DGPOS_LEADER; + this.DragonGuildPermissionMatrix[num][XDragonGuildPP.Position2Int(DragonGuildPosition.DGPOS_VICELEADER)] = rowData.DGPOS_VIVELEADER; + this.DragonGuildPermissionMatrix[num][XDragonGuildPP.Position2Int(DragonGuildPosition.DGPOS_MEMBER)] = rowData.DGPOS_MEMBER; + } + } + + public string GetPositionName(DragonGuildPosition position, bool bWithColor = false) + { + bool flag = position == DragonGuildPosition.DGPOS_COUNT; + string result; + if (flag) + { + result = ""; + } + else + { + result = (bWithColor ? this.PositionNameWithColor[XDragonGuildPP.Position2Int(position)] : this.PositionName[XDragonGuildPP.Position2Int(position)]); + } + return result; + } + + public Color GetPositionColor(DragonGuildPosition position) + { + bool flag = position == DragonGuildPosition.DGPOS_COUNT; + Color result; + if (flag) + { + result = Color.white; + } + else + { + result = this.PositionColor[XDragonGuildPP.Position2Int(position)]; + } + return result; + } + + public bool HasPermission(DragonGuildPosition pos, DragonGuildPermission pem) + { + bool flag = pem == DragonGuildPermission.DGEM_DONOTHING; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = pos == DragonGuildPosition.DGPOS_COUNT || pem == DragonGuildPermission.DGEM_MAX || pos == DragonGuildPosition.DGPOS_INVALID || pem == DragonGuildPermission.DGEM_INVALID; + result = (!flag2 && this.DragonGuildPermissionMatrix[XDragonGuildPP.Permission2Int(pem)][XDragonGuildPP.Position2Int(pos)] == 1); + } + return result; + } + + public bool HasLowerPosition(DragonGuildPosition pos) + { + int num = XFastEnumIntEqualityComparer.ToInt(pos); + bool flag = num >= XDragonGuildPP.POSITION_COUNT - 1; + return !flag; + } + + public int GetLowerPosition(DragonGuildPosition pos) + { + int num = XFastEnumIntEqualityComparer.ToInt(pos); + bool flag = num > XDragonGuildPP.POSITION_COUNT - 1; + int result; + if (flag) + { + result = num; + } + else + { + result = num + 1; + } + return result; + } + + public bool HasHigherPosition(DragonGuildPosition pos) + { + int num = XFastEnumIntEqualityComparer.ToInt(pos); + bool flag = num <= 0; + return !flag; + } + + public int GetHigherPosition(DragonGuildPosition pos) + { + int num = XFastEnumIntEqualityComparer.ToInt(pos); + bool flag = num < 0; + int result; + if (flag) + { + result = num; + } + else + { + result = num - 1; + } + return result; + } + + public DragonGuildPermission GetSetPositionPermission(DragonGuildPosition higherPos, DragonGuildPosition targetPos) + { + bool flag = targetPos == DragonGuildPosition.DGPOS_COUNT || targetPos == DragonGuildPosition.DGPOS_INVALID; + DragonGuildPermission result; + if (flag) + { + result = DragonGuildPermission.DGEM_MAX; + } + else + { + switch (higherPos) + { + case DragonGuildPosition.DGPOS_LEADER: + result = DragonGuildPermission.DGEM_CHANGELEADER; + break; + case DragonGuildPosition.DGPOS_VICELEADER: + result = DragonGuildPermission.DGEM_SET_VICELEADER; + break; + case DragonGuildPosition.DGPOS_MEMBER: + result = DragonGuildPermission.DGEM_DONOTHING; + break; + default: + result = DragonGuildPermission.DGEM_MAX; + break; + } + } + return result; + } + + private static int Position2Int(DragonGuildPosition pos) + { + return XFastEnumIntEqualityComparer.ToInt(pos); + } + + private static int Permission2Int(DragonGuildPermission pem) + { + return XFastEnumIntEqualityComparer.ToInt(pem); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildPP.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildPP.cs.meta new file mode 100644 index 00000000..7a12b285 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildPP.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f82ba7b0d67a3e54ba8202ab3ce2bec2 +timeCreated: 1611404892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildRankInfo.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildRankInfo.cs new file mode 100644 index 00000000..add382d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildRankInfo.cs @@ -0,0 +1,46 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XDragonGuildRankInfo : XBaseRankInfo + { + public string formatname2; + + public string name2; + + public uint passCount; + + public string passSceneName; + + public void ProcessData(DragonGuildInfo info) + { + this.id = info.id; + this.name = info.name; + bool flag = info.sceneId == 0u; + if (flag) + { + this.passSceneName = XStringDefineProxy.GetString("DRAGON_GUILD_NO_PASS_SCENE"); + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(info.sceneId); + bool flag2 = sceneData != null; + if (flag2) + { + this.passSceneName = sceneData.Comment; + } + else + { + this.passSceneName = XStringDefineProxy.GetString("DRAGON_GUILD_NO_PASS_SCENE"); + XSingleton.singleton.AddErrorLog2("XDragonGuildRankInfo|can't finde scene id=", new object[] + { + info.sceneId + }); + } + } + this.value = (ulong)info.sceneCnt; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildRankInfo.cs.meta new file mode 100644 index 00000000..e20d3e3d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76fcfd7d46908a340b243a2c6dac1458 +timeCreated: 1611403951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildRankList.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildRankList.cs new file mode 100644 index 00000000..17969fa0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XDragonGuildRankList : XBaseRankList + { + public XDragonGuildRankList() + { + this.type = XRankType.DragonGuildRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XDragonGuildRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildRankList.cs.meta new file mode 100644 index 00000000..a1ec1bb6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe1bf6a74467faf4889f29023bdf4ece +timeCreated: 1611404939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildTaskDocument.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildTaskDocument.cs new file mode 100644 index 00000000..4c780966 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildTaskDocument.cs @@ -0,0 +1,306 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildTaskDocument : XDocComponent + { + public override uint ID + { + get + { + return XDragonGuildTaskDocument.uuID; + } + } + + public XDragonGuildTaskView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XDragonGuildTaskDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static DragonGuildAchieveTable m_dragonachieveTab = new DragonGuildAchieveTable(); + + public static DragonGuildTaskTable m_dragontaskTab = new DragonGuildTaskTable(); + + public List m_achievelist = new List(); + + public List m_tasklist = new List(); + + public string m_taskresettime; + + private XDragonGuildTaskView _view = null; + + public static void Execute(OnLoadedCallback callback = null) + { + XDragonGuildTaskDocument.AsyncLoader.AddTask("Table/DragonGuildTask", XDragonGuildTaskDocument.m_dragontaskTab, false); + XDragonGuildTaskDocument.AsyncLoader.AddTask("Table/DragonGuildAchieve", XDragonGuildTaskDocument.m_dragonachieveTab, false); + XDragonGuildTaskDocument.AsyncLoader.Execute(callback); + } + + public override void OnGamePause(bool pause) + { + base.OnGamePause(pause); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton != null && DlgBase.singleton.IsVisible(); + if (flag) + { + this.ReqInfo(); + } + } + + public bool HadTaskRedPoint() + { + bool result = false; + for (int i = 0; i < this.m_tasklist.Count; i++) + { + bool flag = this.m_tasklist[i].state == 2; + if (flag) + { + result = true; + break; + } + } + return result; + } + + public bool HadAchieveRedPoint() + { + bool result = false; + for (int i = 0; i < this.m_achievelist.Count; i++) + { + bool flag = this.m_achievelist[i].state == 2; + if (flag) + { + result = true; + break; + } + } + return result; + } + + private DragonGuildTaskTable.RowData GetTaskById(uint id) + { + for (int i = 0; i < XDragonGuildTaskDocument.m_dragontaskTab.Table.Length; i++) + { + bool flag = XDragonGuildTaskDocument.m_dragontaskTab.Table[i].taskID == id; + if (flag) + { + return XDragonGuildTaskDocument.m_dragontaskTab.Table[i]; + } + } + return null; + } + + private DragonGuildAchieveTable.RowData GetAchieveById(uint id) + { + for (int i = 0; i < XDragonGuildTaskDocument.m_dragonachieveTab.Table.Length; i++) + { + bool flag = XDragonGuildTaskDocument.m_dragonachieveTab.Table[i].ID == id; + if (flag) + { + return XDragonGuildTaskDocument.m_dragonachieveTab.Table[i]; + } + } + return null; + } + + public XDragonGuildTpl GetDataByindex(int index, uint state) + { + bool flag = state == 1u; + XDragonGuildTpl result; + if (flag) + { + result = this.m_tasklist[index]; + } + else + { + bool flag2 = state == 2u; + if (flag2) + { + result = this.m_achievelist[index]; + } + else + { + XSingleton.singleton.AddErrorLog("DragonGuildTask state is error", null, null, null, null, null); + result = null; + } + } + return result; + } + + public void ReqInfo() + { + RpcC2M_GetDragonGuildTaskInfo rpc = new RpcC2M_GetDragonGuildTaskInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReqFetchAchieve(int id) + { + RpcC2G_GetDragonGuildTaskChest rpcC2G_GetDragonGuildTaskChest = new RpcC2G_GetDragonGuildTaskChest(); + rpcC2G_GetDragonGuildTaskChest.oArg.type = DragonGuildTaskType.TASK_ACHIVEMENT; + rpcC2G_GetDragonGuildTaskChest.oArg.taskid = (uint)id; + XSingleton.singleton.Send(rpcC2G_GetDragonGuildTaskChest); + } + + public void ReqFetchTask(int id) + { + RpcC2G_GetDragonGuildTaskChest rpcC2G_GetDragonGuildTaskChest = new RpcC2G_GetDragonGuildTaskChest(); + rpcC2G_GetDragonGuildTaskChest.oArg.type = DragonGuildTaskType.TASK_NORMAL; + rpcC2G_GetDragonGuildTaskChest.oArg.taskid = (uint)id; + XSingleton.singleton.Send(rpcC2G_GetDragonGuildTaskChest); + } + + public void OnGetInfo(GetDragonGuildTaskInfoRes oRes) + { + this.m_achievelist.Clear(); + this.m_tasklist.Clear(); + this.m_taskresettime = oRes.task_refreshtime; + for (int i = 0; i < oRes.taskrecord.Count; i++) + { + DragonGuildTaskInfo dragonGuildTaskInfo = oRes.taskrecord[i]; + XDragonGuildTpl xdragonGuildTpl = new XDragonGuildTpl(); + DragonGuildTaskTable.RowData taskById = this.GetTaskById(dragonGuildTaskInfo.taskID); + xdragonGuildTpl.id = dragonGuildTaskInfo.taskID; + xdragonGuildTpl.title = taskById.name; + xdragonGuildTpl.desc = ""; + xdragonGuildTpl.exp = taskById.guildExp; + xdragonGuildTpl.type = taskById.taskType; + xdragonGuildTpl.item = taskById.viewabledrop; + xdragonGuildTpl.finishCount = taskById.count; + xdragonGuildTpl.doingCount = dragonGuildTaskInfo.finishCount; + xdragonGuildTpl.state = 1; + bool flag = xdragonGuildTpl.finishCount <= xdragonGuildTpl.doingCount && xdragonGuildTpl.type != 3u; + if (flag) + { + xdragonGuildTpl.state = 2; + } + bool flag2 = xdragonGuildTpl.type == 3u && xdragonGuildTpl.doingCount > 0u; + if (flag2) + { + xdragonGuildTpl.state = 2; + } + bool flag3 = oRes.taskcompleted[i]; + if (flag3) + { + xdragonGuildTpl.state = 3; + } + this.m_tasklist.Add(xdragonGuildTpl); + } + for (int j = 0; j < oRes.achiverecord.Count; j++) + { + DragonGuildTaskInfo dragonGuildTaskInfo2 = oRes.achiverecord[j]; + XDragonGuildTpl xdragonGuildTpl2 = new XDragonGuildTpl(); + DragonGuildAchieveTable.RowData achieveById = this.GetAchieveById(dragonGuildTaskInfo2.taskID); + xdragonGuildTpl2.id = dragonGuildTaskInfo2.taskID; + xdragonGuildTpl2.title = achieveById.name; + xdragonGuildTpl2.desc = achieveById.description; + xdragonGuildTpl2.exp = achieveById.guildExp; + xdragonGuildTpl2.type = achieveById.Type; + xdragonGuildTpl2.item = achieveById.viewabledrop; + xdragonGuildTpl2.lefttime = achieveById.chestCount - dragonGuildTaskInfo2.receiveCount; + xdragonGuildTpl2.finishCount = achieveById.count; + xdragonGuildTpl2.doingCount = dragonGuildTaskInfo2.finishCount; + xdragonGuildTpl2.state = 1; + bool flag4 = xdragonGuildTpl2.doingCount == xdragonGuildTpl2.finishCount && xdragonGuildTpl2.type != 3u; + if (flag4) + { + xdragonGuildTpl2.state = 2; + } + bool flag5 = xdragonGuildTpl2.type == 3u && xdragonGuildTpl2.doingCount > 0u; + if (flag5) + { + xdragonGuildTpl2.state = 2; + } + bool flag6 = xdragonGuildTpl2.lefttime == 0u; + if (flag6) + { + xdragonGuildTpl2.state = 4; + } + bool flag7 = oRes.achivecompleted[j]; + if (flag7) + { + xdragonGuildTpl2.state = 3; + } + this.m_achievelist.Add(xdragonGuildTpl2); + } + this.m_achievelist.Sort(new Comparison(this.AchieveSort)); + XDragonGuildDocument.Doc.IsHadRecordRedPoint = (this.HadAchieveRedPoint() || this.HadTaskRedPoint()); + bool flag8 = this.View != null && this.View.IsVisible(); + if (flag8) + { + this.View.RefreshUI(); + } + } + + private int GetAchieveSortNum(XDragonGuildTpl a) + { + bool flag = a.state == 2; + int result; + if (flag) + { + result = 4; + } + else + { + bool flag2 = a.state == 1; + if (flag2) + { + result = 3; + } + else + { + bool flag3 = a.state == 4; + if (flag3) + { + result = 2; + } + else + { + result = 1; + } + } + } + return result; + } + + public int AchieveSort(XDragonGuildTpl a, XDragonGuildTpl b) + { + int achieveSortNum = this.GetAchieveSortNum(a); + int achieveSortNum2 = this.GetAchieveSortNum(b); + return achieveSortNum2 - achieveSortNum; + } + + public void OnFetchAchieve(uint id) + { + this.ReqInfo(); + } + + public void OnFetchTask(uint id) + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.OnTaskFetch(id); + } + XDragonGuildDocument.Doc.IsHadRecordRedPoint = (this.HadAchieveRedPoint() || this.HadTaskRedPoint()); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildTaskDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildTaskDocument.cs.meta new file mode 100644 index 00000000..6ffd552c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildTaskDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ec9e0b1c48f4119428633eaf0cee47d6 +timeCreated: 1611404788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildTpl.cs b/Client/Assets/Scripts/XMainClient/XDragonGuildTpl.cs new file mode 100644 index 00000000..ef736b0b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildTpl.cs @@ -0,0 +1,28 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonGuildTpl + { + public uint id; + + public string title; + + public string desc; + + public uint exp; + + public uint type; + + public SeqListRef item; + + public int state; + + public uint finishCount; + + public uint doingCount; + + public uint lefttime; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonGuildTpl.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonGuildTpl.cs.meta new file mode 100644 index 00000000..260c6d56 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonGuildTpl.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7cbcb37cabb28064992b0559abb3c97e +timeCreated: 1611403998 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs b/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs new file mode 100644 index 00000000..92017714 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs @@ -0,0 +1,159 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonNestBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public XUIPool m_TabTplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_NestName; + + public IXUILabel m_NormalCurPPT; + + public IXUILabel m_NormalSugPPT; + + public IXUILabel m_NormalSugAttr; + + public IXUILabel m_NormalSugLevel; + + public IXUILabel m_NormalSugMember; + + public IXUILabel m_EasySugAttr; + + public IXUILabel m_EasySugLevel; + + public IXUILabel m_EasySugMember; + + public Transform m_NormalDetail; + + public Transform m_EasyDetail; + + public Transform m_WeakPPTFrame; + + public IXUILabel m_WeakPPT; + + public IXUISprite m_WeakPPTHelp; + + public IXUICheckBox m_DiffEasyCheckBox; + + public IXUICheckBox m_DiffNormalCheckBox; + + public IXUICheckBox m_DiffHardCheckBox; + + public IXUISprite m_DiffHardLock; + + public IXUISprite m_quanMinSpr; + + public Transform m_NestFrameNormal; + + public XUIPool m_NestNormalTplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITexture m_NestNormalBg; + + public Transform m_WeakTip; + + public IXUILabel m_WeakName; + + public IXUILabel m_WeakTip1; + + public IXUILabel m_WeakTip2; + + public IXUISprite m_WeakBlock; + + public IXUILabel m_WeakPercent; + + public Transform m_NestFrameHard; + + public IXUILabel m_NestHardName; + + public IXUITexture m_NestHardBossIcon; + + public IXUITexture m_NestHardBg; + + public XUIPool m_ItemTplPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_SweepButton; + + public GameObject m_SweepCostItem; + + public IXUILabel m_SweepCostItemNum; + + public IXUIButton m_EnterButton; + + public GameObject m_CostItem; + + public IXUILabel m_CostItemNum; + + public IXUILabel m_EnterText; + + public IXUILabel m_ResertTip; + + public IXUISprite m_Help; + + public Transform m_HelpFrame; + + public IXUILabel m_HelpTip; + + public IXUISprite m_HelpClose; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_quanMinSpr = (base.transform.Find("Bg/qmms").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("Bg/Tab/Panel/TabTpl"); + this.m_TabTplPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_DiffEasyCheckBox = (base.transform.Find("Bg/ToggleDiffEasy").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DiffNormalCheckBox = (base.transform.Find("Bg/ToggleDiffNormal").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DiffHardCheckBox = (base.transform.Find("Bg/ToggleDiffHard").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_DiffHardLock = (base.transform.Find("Bg/ToggleDiffHard/Lock").GetComponent("XUISprite") as IXUISprite); + this.m_NestName = (base.transform.Find("Bg/DetailFrame/NestName").GetComponent("XUILabel") as IXUILabel); + this.m_NormalCurPPT = (base.transform.Find("Bg/DetailFrame/DiffNormal/CurPPT").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSugPPT = (base.transform.Find("Bg/DetailFrame/DiffNormal/SugPPT").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSugAttr = (base.transform.Find("Bg/DetailFrame/DiffNormal/SugAttr").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSugLevel = (base.transform.Find("Bg/DetailFrame/DiffNormal/SugLevel").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSugMember = (base.transform.Find("Bg/DetailFrame/DiffNormal/SugMember").GetComponent("XUILabel") as IXUILabel); + this.m_EasySugAttr = (base.transform.Find("Bg/DetailFrame/DiffEasy/SugAttr").GetComponent("XUILabel") as IXUILabel); + this.m_EasySugLevel = (base.transform.Find("Bg/DetailFrame/DiffEasy/SugLevel").GetComponent("XUILabel") as IXUILabel); + this.m_EasySugMember = (base.transform.Find("Bg/DetailFrame/DiffEasy/SugMember").GetComponent("XUILabel") as IXUILabel); + this.m_NormalDetail = base.transform.Find("Bg/DetailFrame/DiffNormal"); + this.m_EasyDetail = base.transform.Find("Bg/DetailFrame/DiffEasy"); + this.m_WeakPPTFrame = base.transform.Find("Bg/DetailFrame/DiffNormal/WeakPPT"); + this.m_WeakPPT = (base.transform.Find("Bg/DetailFrame/DiffNormal/WeakPPT/PPT").GetComponent("XUILabel") as IXUILabel); + this.m_WeakPPTHelp = (base.transform.Find("Bg/DetailFrame/DiffNormal/WeakPPT/Help").GetComponent("XUISprite") as IXUISprite); + this.m_NestFrameNormal = base.transform.Find("Bg/NestFrameNormal"); + transform = base.transform.Find("Bg/NestFrameNormal/NestTpl"); + this.m_NestNormalTplPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_NestNormalBg = (base.transform.Find("Bg/NestFrameNormal/Bg").GetComponent("XUITexture") as IXUITexture); + this.m_WeakTip = base.transform.Find("Bg/NestFrameNormal/WeakTip/Tips"); + this.m_WeakName = (base.transform.Find("Bg/NestFrameNormal/WeakTip/Tips/Name").GetComponent("XUILabel") as IXUILabel); + this.m_WeakTip1 = (base.transform.Find("Bg/NestFrameNormal/WeakTip/Tips/Tip1").GetComponent("XUILabel") as IXUILabel); + this.m_WeakTip2 = (base.transform.Find("Bg/NestFrameNormal/WeakTip/Tips/Tip2").GetComponent("XUILabel") as IXUILabel); + this.m_WeakBlock = (base.transform.Find("Bg/NestFrameNormal/Block").GetComponent("XUISprite") as IXUISprite); + this.m_WeakPercent = (base.transform.Find("Bg/NestFrameNormal/WeakTip/Percent").GetComponent("XUILabel") as IXUILabel); + this.m_NestFrameHard = base.transform.Find("Bg/NestFrameHard"); + this.m_NestHardName = (base.transform.Find("Bg/NestFrameHard/NestTpl/Name").GetComponent("XUILabel") as IXUILabel); + this.m_NestHardBossIcon = (base.transform.Find("Bg/NestFrameHard/NestTpl/Boss").GetComponent("XUITexture") as IXUITexture); + this.m_NestHardBg = (base.transform.Find("Bg/NestFrameHard/Bg").GetComponent("XUITexture") as IXUITexture); + transform = base.transform.Find("Bg/ItemList/ItemTpl"); + this.m_ItemTplPool.SetupPool(transform.parent.gameObject, transform.gameObject, 8u, false); + this.m_SweepButton = (base.transform.Find("Bg/SweepButton").GetComponent("XUIButton") as IXUIButton); + this.m_SweepCostItem = base.transform.Find("Bg/SweepButton/Item").gameObject; + this.m_SweepCostItemNum = (base.transform.Find("Bg/SweepButton/Item/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_EnterButton = (base.transform.Find("Bg/Enter").GetComponent("XUIButton") as IXUIButton); + this.m_CostItem = base.transform.Find("Bg/ItemTpl").gameObject; + this.m_CostItemNum = (base.transform.Find("Bg/ItemTpl/Cost").GetComponent("XUILabel") as IXUILabel); + this.m_EnterText = (base.transform.Find("Bg/Enter/Text").GetComponent("XUILabel") as IXUILabel); + this.m_ResertTip = (base.transform.Find("Bg/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUISprite") as IXUISprite); + this.m_HelpFrame = base.transform.Find("Bg/HelpFrame"); + this.m_HelpTip = (base.transform.Find("Bg/HelpFrame/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_HelpClose = (base.transform.Find("Bg/HelpFrame/Block").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs.meta new file mode 100644 index 00000000..b6a2b80a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonNestBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62ca6cd92be89204d8e0cb7a68be20b7 +timeCreated: 1611403842 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonNestDocument.cs b/Client/Assets/Scripts/XMainClient/XDragonNestDocument.cs new file mode 100644 index 00000000..bc7505f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonNestDocument.cs @@ -0,0 +1,475 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonNestDocument : XDocComponent + { + public override uint ID + { + get + { + return XDragonNestDocument.uuID; + } + } + + public uint CurrentType + { + get + { + return this._current_type; + } + set + { + this._current_type = value; + } + } + + public uint CurrentDiff + { + get + { + return this._current_diff; + } + set + { + this._current_diff = value; + } + } + + public uint CurrentExpID + { + get + { + return this._current_expid; + } + set + { + this._current_expid = value; + } + } + + public DragonWeakType CurrentWeakType + { + get + { + return this._current_weak_type; + } + set + { + this._current_weak_type = value; + } + } + + public int CurrentWeakState + { + get + { + return this._current_weak_state; + } + set + { + this._current_weak_state = value; + } + } + + public int DragonNestBOSSWave + { + get + { + return XSingleton.singleton.GetInt("DragonNestBOSSWave"); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("DragonNestDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static DragonNestTable m_DragonNestTable = new DragonNestTable(); + + private static DragonNestType m_DragonNestTypeTable = new DragonNestType(); + + private uint _current_type = 1u; + + private uint _current_diff = 0u; + + private uint _current_expid; + + private DragonWeakType _current_weak_type; + + private int _current_weak_state; + + public List DragonNestDataList = new List(); + + public class DragonNestData + { + public uint Type; + + public uint Diff; + + public uint Wave; + + public bool IsLocked; + + public bool IsFinished; + + public int WeakState; + + public DragonWeakType WeakType; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XDragonNestDocument.AsyncLoader.AddTask("Table/DragonNestList", XDragonNestDocument.m_DragonNestTable, false); + XDragonNestDocument.AsyncLoader.AddTask("Table/DragonNestType", XDragonNestDocument.m_DragonNestTypeTable, false); + XDragonNestDocument.AsyncLoader.Execute(callback); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.SetDragonNestInfo(null); + } + } + + public DragonNestType.RowData[] GetDragonNestTypeList() + { + return XDragonNestDocument.m_DragonNestTypeTable.Table; + } + + public DragonNestType.RowData GetDragonNestTypeDataByID(uint id) + { + for (int i = 0; i < XDragonNestDocument.m_DragonNestTypeTable.Table.Length; i++) + { + bool flag = XDragonNestDocument.m_DragonNestTypeTable.Table[i].DragonNestType == id; + if (flag) + { + return XDragonNestDocument.m_DragonNestTypeTable.Table[i]; + } + } + return null; + } + + public int GetDragonNestRewardlessLevel(uint id) + { + for (int i = 0; i < XDragonNestDocument.m_DragonNestTable.Table.Length; i++) + { + bool flag = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestID == id; + if (flag) + { + return (XDragonNestDocument.m_DragonNestTable.Table[i].MaxDragonDropLevel == 0) ? 1000000000 : XDragonNestDocument.m_DragonNestTable.Table[i].MaxDragonDropLevel; + } + } + return 1000000000; + } + + public List GetDragonNestListByTypeAndDiff(uint type, uint diff) + { + List list = new List(); + for (int i = 0; i < XDragonNestDocument.m_DragonNestTable.Table.Length; i++) + { + bool flag = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestType == type && XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestDifficulty == diff; + if (flag) + { + list.Add(XDragonNestDocument.m_DragonNestTable.Table[i]); + } + } + return list; + } + + public DragonNestTable.RowData GetDragonNestByTypeAndDiffAndWave(uint type, uint diff, uint wave) + { + for (int i = 0; i < XDragonNestDocument.m_DragonNestTable.Table.Length; i++) + { + bool flag = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestType == type && XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestDifficulty == diff && XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestWave == wave; + if (flag) + { + return XDragonNestDocument.m_DragonNestTable.Table[i]; + } + } + return null; + } + + public DragonNestTable.RowData GetDragonNestByID(uint id) + { + for (int i = 0; i < XDragonNestDocument.m_DragonNestTable.Table.Length; i++) + { + bool flag = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestID == id; + if (flag) + { + return XDragonNestDocument.m_DragonNestTable.Table[i]; + } + } + return null; + } + + public bool CheckLock(uint type, uint diff) + { + for (int i = 0; i < this.DragonNestDataList.Count; i++) + { + bool flag = this.DragonNestDataList[i].Type == type && this.DragonNestDataList[i].Diff == diff; + if (flag) + { + return this.DragonNestDataList[i].IsLocked; + } + } + return true; + } + + public uint CheckWave(uint type, uint diff) + { + for (int i = 0; i < this.DragonNestDataList.Count; i++) + { + bool flag = this.DragonNestDataList[i].Type == type && this.DragonNestDataList[i].Diff == diff; + if (flag) + { + return this.DragonNestDataList[i].Wave; + } + } + return 0u; + } + + public int GetWeakState(uint type, uint diff) + { + for (int i = 0; i < this.DragonNestDataList.Count; i++) + { + bool flag = this.DragonNestDataList[i].Type == type && this.DragonNestDataList[i].Diff == diff; + if (flag) + { + return this.DragonNestDataList[i].WeakState; + } + } + return -1; + } + + public DragonWeakType GetWeakType(uint type, uint diff) + { + for (int i = 0; i < this.DragonNestDataList.Count; i++) + { + bool flag = this.DragonNestDataList[i].Type == type && this.DragonNestDataList[i].Diff == diff; + if (flag) + { + return this.DragonNestDataList[i].WeakType; + } + } + return DragonWeakType.DragonWeakType_Null; + } + + public bool CheckCanFightByExpID(uint expid) + { + uint num = 0u; + uint num2 = 0u; + uint num3 = 0u; + for (int i = 0; i < XDragonNestDocument.m_DragonNestTable.Table.Length; i++) + { + bool flag = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestID == expid; + if (flag) + { + num = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestType; + num2 = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestDifficulty; + num3 = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestWave; + break; + } + } + for (int j = 0; j < this.DragonNestDataList.Count; j++) + { + bool flag2 = this.DragonNestDataList[j].Type == num && this.DragonNestDataList[j].Diff == num2; + if (flag2) + { + return num3 == this.DragonNestDataList[j].Wave; + } + } + return false; + } + + public bool CheckIsOpenByExpID(uint expid) + { + uint num = 0u; + uint num2 = 0u; + uint num3 = 0u; + for (int i = 0; i < XDragonNestDocument.m_DragonNestTable.Table.Length; i++) + { + bool flag = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestID == expid; + if (flag) + { + num = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestType; + num2 = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestDifficulty; + num3 = XDragonNestDocument.m_DragonNestTable.Table[i].DragonNestWave; + break; + } + } + for (int j = 0; j < this.DragonNestDataList.Count; j++) + { + bool flag2 = this.DragonNestDataList[j].Type == num && this.DragonNestDataList[j].Diff == num2; + if (flag2) + { + return num3 <= this.DragonNestDataList[j].Wave; + } + } + return false; + } + + public XDragonNestDocument.DragonNestData GetDragonNestData(uint type, uint diff) + { + for (int i = 0; i < this.DragonNestDataList.Count; i++) + { + bool flag = this.DragonNestDataList[i].Type == type && this.DragonNestDataList[i].Diff == diff; + if (flag) + { + return this.DragonNestDataList[i]; + } + } + return null; + } + + public void ResetData() + { + this._current_type = 1u; + this._current_diff = 0u; + this._current_expid = this.GetDragonNestByTypeAndDiffAndWave(1u, 0u, 1u).DragonNestID; + } + + public void SendReqDragonNestInfo() + { + RpcC2G_GetDragonTopInfo rpc = new RpcC2G_GetDragonTopInfo(); + XSingleton.singleton.Send(rpc); + } + + public void SetDragonNestInfo(List data) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this.DragonNestDataList.Clear(); + for (int i = 0; i < XDragonNestDocument.m_DragonNestTypeTable.Table.Length; i++) + { + XDragonNestDocument.DragonNestData item = this.CreateDragonNestData(i, 0u); + this.DragonNestDataList.Add(item); + item = this.CreateDragonNestData(i, 1u); + this.DragonNestDataList.Add(item); + item = this.CreateDragonNestData(i, 2u); + this.DragonNestDataList.Add(item); + } + bool flag = data == null; + if (!flag) + { + for (int j = 0; j < data.Count; j++) + { + for (int k = 0; k < this.DragonNestDataList.Count; k++) + { + bool flag2 = (long)data[j].dragonType == (long)((ulong)this.DragonNestDataList[k].Type) && (long)data[j].hardLevel == (long)((ulong)this.DragonNestDataList[k].Diff); + if (flag2) + { + bool flag3 = data[j].curFloor == -1; + if (flag3) + { + this.DragonNestDataList[k].IsFinished = true; + this.DragonNestDataList[k].Wave = 7u; + } + else + { + this.DragonNestDataList[k].IsFinished = false; + this.DragonNestDataList[k].Wave = (uint)data[j].curFloor; + } + this.DragonNestDataList[k].IsLocked = ((ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)specificDocument.GetExpeditionDataByID((int)this.GetDragonNestByTypeAndDiffAndWave(this.DragonNestDataList[k].Type, this.DragonNestDataList[k].Diff, 1u).DragonNestID).RequiredLevel)); + this.DragonNestDataList[k].WeakState = data[j].refreshTimes; + this.DragonNestDataList[k].WeakType = data[j].weakType; + } + } + } + bool flag4 = !DlgBase.singleton.IsVisible(); + if (!flag4) + { + DlgBase.singleton.RefreshUI(); + } + } + } + + private XDragonNestDocument.DragonNestData CreateDragonNestData(int i, uint diff) + { + XDragonNestDocument.DragonNestData dragonNestData = new XDragonNestDocument.DragonNestData(); + dragonNestData.Type = XDragonNestDocument.m_DragonNestTypeTable.Table[i].DragonNestType; + dragonNestData.Diff = diff; + dragonNestData.Wave = 1u; + dragonNestData.IsFinished = false; + dragonNestData.WeakState = -1; + dragonNestData.WeakType = DragonWeakType.DragonWeakType_Null; + dragonNestData.IsLocked = true; + dragonNestData.Wave = (dragonNestData.IsLocked ? 0u : dragonNestData.Wave); + return dragonNestData; + } + + public ExpeditionTable.RowData GetLastExpeditionRowData() + { + bool flag = this.DragonNestDataList.Count == 0; + ExpeditionTable.RowData result; + if (flag) + { + result = null; + } + else + { + XDragonNestDocument.DragonNestData dragonNestData = null; + for (int i = 0; i < this.DragonNestDataList.Count; i++) + { + bool flag2 = this.DragonNestDataList[i].Diff == 2u; + if (!flag2) + { + bool isLocked = this.DragonNestDataList[i].IsLocked; + if (isLocked) + { + break; + } + dragonNestData = this.DragonNestDataList[i]; + } + } + bool flag3 = dragonNestData == null; + if (flag3) + { + result = null; + } + else + { + DragonNestTable.RowData rowData = null; + List dragonNestListByTypeAndDiff = this.GetDragonNestListByTypeAndDiff(dragonNestData.Type, dragonNestData.Diff); + uint num = (dragonNestData.Wave == 7u) ? 6u : dragonNestData.Wave; + for (int j = 0; j < dragonNestListByTypeAndDiff.Count; j++) + { + bool flag4 = num == dragonNestListByTypeAndDiff[j].DragonNestWave; + if (flag4) + { + rowData = dragonNestListByTypeAndDiff[j]; + break; + } + } + bool flag5 = rowData == null; + if (flag5) + { + result = null; + } + else + { + XExpeditionDocument xexpeditionDocument = XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument; + ExpeditionTable.RowData expeditionDataByID = xexpeditionDocument.GetExpeditionDataByID((int)rowData.DragonNestID); + result = expeditionDataByID; + } + } + } + return result; + } + + public string GetPreName(int DNExpID) + { + DragonNestTable.RowData dragonNestByID = this.GetDragonNestByID((uint)DNExpID); + return XStringDefineProxy.GetString(string.Format("DragonNestPreName{0}", dragonNestByID.DragonNestType)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonNestDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonNestDocument.cs.meta new file mode 100644 index 00000000..5f892d07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonNestDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e6ebe22dbd8f36c4c9c2227b92c3f597 +timeCreated: 1611404747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonNestView.cs b/Client/Assets/Scripts/XMainClient/XDragonNestView.cs new file mode 100644 index 00000000..af94c45a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonNestView.cs @@ -0,0 +1,926 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonNestView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/DragonNestDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XDragonNestDocument _doc = null; + + private XExpeditionDocument _expDoc = null; + + private XMainInterfaceDocument _mainDoc = null; + + private XSweepDocument _sweepDoc = null; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + this._expDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this._mainDoc = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + this._sweepDoc = XDocuments.GetSpecificDocument(XSweepDocument.uuID); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseButtonClicked)); + base.uiBehaviour.m_SweepButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSweepButtonClicked)); + base.uiBehaviour.m_EnterButton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterButtonClicked)); + base.uiBehaviour.m_WeakBlock.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnWeakTipBlockClicked)); + base.uiBehaviour.m_WeakPercent.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnWeakPercentClicked)); + base.uiBehaviour.m_WeakPPTHelp.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnWeakPPTHelpClicked)); + base.uiBehaviour.m_Help.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_HelpClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHelpCloseClicked)); + base.uiBehaviour.m_quanMinSpr.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._onClickQuanMinSpr)); + base.uiBehaviour.m_DiffEasyCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnDiffCheckBoxClicked)); + base.uiBehaviour.m_DiffNormalCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnDiffCheckBoxClicked)); + base.uiBehaviour.m_DiffHardCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnDiffCheckBoxClicked)); + base.uiBehaviour.m_DiffEasyCheckBox.ID = 0UL; + base.uiBehaviour.m_DiffNormalCheckBox.ID = 1UL; + base.uiBehaviour.m_DiffHardCheckBox.ID = 2UL; + base.uiBehaviour.m_DiffHardLock.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnDiffHardLockClicked)); + } + + private bool OnDiffCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnDiffChange((uint)box.ID); + result = true; + } + return result; + } + + private void OnDiffHardLockClicked(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("DRAGON_NEST_HARD_LOCK_TIP"), "fece00"); + } + + private void OnWeakPPTHelpClicked(IXUISprite sp) + { + base.uiBehaviour.m_WeakTip.gameObject.SetActive(true); + base.uiBehaviour.m_WeakBlock.SetVisible(true); + } + + private void OnWeakPercentClicked(IXUILabel label) + { + base.uiBehaviour.m_WeakTip.gameObject.SetActive(true); + base.uiBehaviour.m_WeakBlock.SetVisible(true); + } + + private void OnHelpClicked(IXUISprite sp) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Activity_DragonNest); + } + + private void OnHelpCloseClicked(IXUISprite sp) + { + base.uiBehaviour.m_HelpFrame.gameObject.SetActive(false); + } + + private void _onClickQuanMinSpr(IXUISprite spr) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_DragonNest_QuanMin); + } + + private bool OnCloseButtonClicked(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnSweepButtonClicked(IXUIButton button) + { + this._sweepDoc.TrySweepQuery(0u, this._doc.CurrentExpID, 1u); + return true; + } + + private bool OnEnterButtonClicked(IXUIButton button) + { + this._OnRealEnter((int)this._doc.CurrentExpID); + return true; + } + + private void _OnRealEnter(int id) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.SetAndMatch(id); + } + + private void OnDiffChange(uint value) + { + this._doc.CurrentDiff = value; + this._doc.CurrentWeakState = this._doc.GetWeakState(this._doc.CurrentType, this._doc.CurrentDiff); + this._doc.CurrentWeakType = this._doc.GetWeakType(this._doc.CurrentType, this._doc.CurrentDiff); + uint num = this._doc.CheckWave(this._doc.CurrentType, this._doc.CurrentDiff); + num = ((num == 7u) ? 6u : num); + num = ((num == 0u) ? 1u : num); + bool flag = this._doc.CurrentDiff == 2u; + if (flag) + { + num = 1u; + } + this._doc.CurrentExpID = this._doc.GetDragonNestByTypeAndDiffAndWave(this._doc.CurrentType, this._doc.CurrentDiff, num).DragonNestID; + this.SetupResertTip(); + this.SetDiffFrame(this._doc.CurrentDiff); + this.SetupNestFrame(); + this.SetupDetailFrame(); + } + + private void OnWeakTipBlockClicked(IXUISprite sp) + { + base.uiBehaviour.m_WeakTip.gameObject.SetActive(false); + base.uiBehaviour.m_WeakBlock.SetVisible(false); + } + + private void OnTabClicked(IXUISprite sp) + { + bool flag = this._doc.CurrentType == (uint)sp.ID; + if (!flag) + { + this._doc.CurrentType = (uint)sp.ID; + this._doc.CurrentDiff = 0u; + this.SetupTabFrame(); + this.SetupNormalDragon(); + } + } + + public void ShowDragonNestByTypeAndDiff(uint type, uint diff) + { + XDragonNestDocument specificDocument = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + bool flag = specificDocument.CurrentType != type || specificDocument.CurrentDiff != diff; + if (flag) + { + specificDocument.CurrentType = type; + specificDocument.CurrentDiff = diff; + } + bool flag2 = !base.IsVisible(); + if (flag2) + { + this.SetVisible(true, true); + } + } + + private void OnTabLockClicked(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByLevel", new object[] + { + this._expDoc.GetExpeditionDataByID((int)this._doc.GetDragonNestByTypeAndDiffAndWave((uint)sp.ID, 1u, 1u).DragonNestID).RequiredLevel.ToString(), + this._doc.GetDragonNestTypeDataByID((uint)sp.ID).TypeName + }), "fece00"); + } + + private void OnFinishedNestClicked(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("OnlyCanEnterCurrentStage"), "fece00"); + } + + private void OnFinishedNestClicked(IXUITexture tex) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("OnlyCanEnterCurrentStage"), "fece00"); + } + + private void OnNestLockByLevelClicked(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByLevel", new object[] + { + this._expDoc.GetExpeditionDataByID((int)sp.ID).RequiredLevel.ToString(), + this._expDoc.GetExpeditionDataByID((int)sp.ID).DNExpeditionName + }), "fece00"); + } + + private void OnNestLockByLevelClicked(IXUITexture tex) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByLevel", new object[] + { + this._expDoc.GetExpeditionDataByID((int)tex.ID).RequiredLevel.ToString(), + this._expDoc.GetExpeditionDataByID((int)tex.ID).DNExpeditionName + }), "fece00"); + } + + private void OnNestLockClicked(IXUISprite sp) + { + DragonNestTable.RowData dragonNestByID = this._doc.GetDragonNestByID((uint)sp.ID); + uint dragonNestID = this._doc.GetDragonNestByTypeAndDiffAndWave(dragonNestByID.DragonNestType, dragonNestByID.DragonNestDifficulty, dragonNestByID.DragonNestWave - 1u).DragonNestID; + string dnexpeditionName = this._expDoc.GetExpeditionDataByID((int)dragonNestID).DNExpeditionName; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByFinishPreStage", new object[] + { + dnexpeditionName + }), "fece00"); + } + + private void OnNestLockClicked(IXUITexture tex) + { + DragonNestTable.RowData dragonNestByID = this._doc.GetDragonNestByID((uint)tex.ID); + uint dragonNestID = this._doc.GetDragonNestByTypeAndDiffAndWave(dragonNestByID.DragonNestType, dragonNestByID.DragonNestDifficulty, dragonNestByID.DragonNestWave - 1u).DragonNestID; + string dnexpeditionName = this._expDoc.GetExpeditionDataByID((int)dragonNestID).DNExpeditionName; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByFinishPreStage", new object[] + { + dnexpeditionName + }), "fece00"); + } + + private void OnDiffLockByLevelClicked(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByLevel", new object[] + { + this._expDoc.GetExpeditionDataByID((int)this._doc.GetDragonNestByTypeAndDiffAndWave(this._doc.CurrentType, 1u, 1u).DragonNestID).RequiredLevel.ToString(), + this._doc.GetDragonNestTypeDataByID(this._doc.CurrentType).TypeName + }), "fece00"); + } + + private void OnDiffLockClicked(IXUISprite sp) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("UnlockByPreDiff"), "fece00"); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.SendReqDragonNestInfo(); + this.SetupTabFrame(); + this.SetupNormalDragon(); + this.SetupHelpFrame(); + } + + protected override void OnHide() + { + base.OnHide(); + this._doc.ResetData(); + XSingleton.singleton.Freezed = false; + base.uiBehaviour.m_NestNormalBg.SetTexturePath(""); + base.uiBehaviour.m_NestHardBg.SetTexturePath(""); + XSingleton.singleton.DestroyTextureInActivePool(base.uiBehaviour.m_NestNormalTplPool, "Boss"); + } + + protected override void OnUnload() + { + this._doc.ResetData(); + base.OnUnload(); + } + + public override int[] GetTitanBarItems() + { + int[] array = new int[1]; + ExpeditionTable.RowData expeditionDataByID = this._expDoc.GetExpeditionDataByID((int)this._doc.CurrentExpID); + bool flag = expeditionDataByID == null; + int[] result; + if (flag) + { + result = null; + } + else + { + bool flag2 = expeditionDataByID.CostItem.Count == 0; + if (flag2) + { + uint sceneIDByExpID = this._expDoc.GetSceneIDByExpID(expeditionDataByID.DNExpeditionID); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneIDByExpID); + bool flag3 = sceneData == null || sceneData.SweepTicket == null || sceneData.SweepTicket.Length == 0; + if (flag3) + { + result = null; + } + else + { + array[0] = (int)sceneData.SweepTicket[0]; + result = array; + } + } + else + { + array[0] = expeditionDataByID.CostItem[0, 0]; + result = array; + } + } + return result; + } + + private string GetWeekDayString(int day) + { + string result; + switch (day) + { + case 1: + result = XStringDefineProxy.GetString("Monday"); + break; + case 2: + result = XStringDefineProxy.GetString("Tuesday"); + break; + case 3: + result = XStringDefineProxy.GetString("Wednesday"); + break; + case 4: + result = XStringDefineProxy.GetString("Thursday"); + break; + case 5: + result = XStringDefineProxy.GetString("Friday"); + break; + case 6: + result = XStringDefineProxy.GetString("Saturday"); + break; + case 7: + result = XStringDefineProxy.GetString("Sunday"); + break; + default: + result = ""; + break; + } + return result; + } + + private void SetupResertTip() + { + string[] array = null; + switch (this._doc.CurrentDiff) + { + case 0u: + array = XSingleton.singleton.GetValue("SmallDragonResetWeekDay").Split(new char[] + { + '|' + }); + break; + case 1u: + array = XSingleton.singleton.GetValue("DragonResetWeekDay").Split(new char[] + { + '|' + }); + break; + case 2u: + array = XSingleton.singleton.GetValue("HardDragonResetWeekDay").Split(new char[] + { + '|' + }); + break; + } + string text = ""; + for (int i = 0; i < array.Length; i++) + { + text = string.Format("{0}{1}{2}", text, (text == "") ? " " : ",", this.GetWeekDayString(int.Parse(array[i]))); + } + base.uiBehaviour.m_ResertTip.SetText(XStringDefineProxy.GetString("RESERT_TIME", new object[] + { + text + })); + } + + private void SetupTabFrame() + { + DragonNestType.RowData[] dragonNestTypeList = this._doc.GetDragonNestTypeList(); + base.uiBehaviour.m_TabTplPool.FakeReturnAll(); + for (int i = 0; i < dragonNestTypeList.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_TabTplPool.FetchGameObject(false); + this.SetupTabTpl(gameObject, dragonNestTypeList[i]); + gameObject.transform.localPosition = base.uiBehaviour.m_TabTplPool.TplPos - new Vector3(0f, (float)(i * base.uiBehaviour.m_TabTplPool.TplHeight)); + } + base.uiBehaviour.m_TabTplPool.ActualReturnAll(false); + } + + private void SetupTabTpl(GameObject go, DragonNestType.RowData data) + { + IXUISprite ixuisprite = go.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Bg/Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = go.transform.Find("Bg/Fx").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = go.transform.Find("Bg/Icon").GetComponent("XUISprite") as IXUISprite; + Transform transform = go.transform.Find("Lock"); + bool flag = this._doc.CheckLock(data.DragonNestType, 1u); + ixuilabel.SetText(data.TypeName); + transform.gameObject.SetActive(flag); + ixuisprite2.SetVisible(this._doc.CurrentType == data.DragonNestType); + ixuisprite3.SetSprite(data.TypeIcon); + ixuisprite.ID = (ulong)data.DragonNestType; + bool flag2 = flag; + if (flag2) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTabLockClicked)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnTabClicked)); + } + } + + private void SetupNormalDragon() + { + base.uiBehaviour.m_DiffEasyCheckBox.ForceSetFlag(false); + base.uiBehaviour.m_DiffNormalCheckBox.ForceSetFlag(false); + base.uiBehaviour.m_DiffHardCheckBox.ForceSetFlag(false); + switch (this._doc.CurrentDiff) + { + case 0u: + base.uiBehaviour.m_DiffEasyCheckBox.bChecked = true; + break; + case 1u: + base.uiBehaviour.m_DiffNormalCheckBox.bChecked = true; + break; + case 2u: + base.uiBehaviour.m_DiffHardCheckBox.bChecked = true; + break; + } + bool visible = this._doc.CheckLock(this._doc.CurrentType, 2u); + base.uiBehaviour.m_DiffHardLock.SetVisible(visible); + this.OnDiffChange(this._doc.CurrentDiff); + } + + private void SetDiffFrame(uint diff) + { + base.uiBehaviour.m_NestFrameNormal.gameObject.SetActive(diff == 1u || diff == 0u); + base.uiBehaviour.m_NestFrameHard.gameObject.SetActive(diff == 2u); + } + + private void SetupNestFrame() + { + List dragonNestListByTypeAndDiff = this._doc.GetDragonNestListByTypeAndDiff(this._doc.CurrentType, this._doc.CurrentDiff); + uint num = this._doc.CheckWave(this._doc.CurrentType, this._doc.CurrentDiff); + num = ((num == 7u) ? 6u : num); + num = ((num == 0u) ? 1u : num); + bool flag = this._doc.CurrentDiff == 2u; + if (flag) + { + num = 1u; + } + switch (this._doc.CurrentDiff) + { + case 0u: + base.uiBehaviour.m_NestNormalTplPool.FakeReturnAll(); + for (int i = 0; i < dragonNestListByTypeAndDiff.Count; i++) + { + GameObject go = base.uiBehaviour.m_NestNormalTplPool.FetchGameObject(false); + this.SetupNestTpl(go, dragonNestListByTypeAndDiff[i], num); + bool flag2 = dragonNestListByTypeAndDiff[i].DragonNestWave == num; + if (flag2) + { + base.uiBehaviour.m_WeakTip.parent.gameObject.SetActive(false); + } + } + base.uiBehaviour.m_NestNormalTplPool.ActualReturnAll(false); + break; + case 1u: + base.uiBehaviour.m_NestNormalTplPool.FakeReturnAll(); + for (int j = 0; j < dragonNestListByTypeAndDiff.Count; j++) + { + GameObject gameObject = base.uiBehaviour.m_NestNormalTplPool.FetchGameObject(false); + this.SetupNestTpl(gameObject, dragonNestListByTypeAndDiff[j], num); + bool flag3 = dragonNestListByTypeAndDiff[j].DragonNestWave == num; + if (flag3) + { + base.uiBehaviour.m_WeakTip.parent.gameObject.SetActive(true); + base.uiBehaviour.m_WeakTip.parent.localPosition = gameObject.transform.localPosition; + } + } + base.uiBehaviour.m_NestNormalTplPool.ActualReturnAll(false); + break; + case 2u: + { + base.uiBehaviour.m_NestHardBossIcon.SetTexturePath(dragonNestListByTypeAndDiff[0].DragonNestIcon); + ExpeditionTable.RowData expeditionDataByID = this._expDoc.GetExpeditionDataByID((int)dragonNestListByTypeAndDiff[0].DragonNestID); + base.uiBehaviour.m_NestHardName.SetText(expeditionDataByID.DNExpeditionName); + break; + } + } + } + + private void SetupNestTpl(GameObject go, DragonNestTable.RowData data, uint wave) + { + IXUISprite ixuisprite = go.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + Transform transform = go.transform.Find("Bg"); + IXUISprite ixuisprite2 = go.transform.Find("Bg/Icon").GetComponent("XUISprite") as IXUISprite; + Transform transform2 = go.transform.Find("Bg/Lock"); + Transform transform3 = go.transform.Find("Bg/Fx"); + IXUITexture ixuitexture = go.transform.Find("Boss").GetComponent("XUITexture") as IXUITexture; + Transform transform4 = go.transform.Find("Boss/Fx"); + ExpeditionTable.RowData expeditionDataByID = this._expDoc.GetExpeditionDataByID((int)data.DragonNestID); + ixuilabel.SetText(expeditionDataByID.DNExpeditionName); + go.transform.localPosition = new Vector3((float)data.DragonNestPosX, (float)data.DragonNestPosY); + bool flag = (ulong)data.DragonNestWave == (ulong)((long)this._doc.DragonNestBOSSWave); + if (flag) + { + transform.gameObject.SetActive(false); + ixuitexture.SetVisible(true); + transform4.gameObject.SetActive(wave == data.DragonNestWave); + ixuitexture.SetTexturePath(data.DragonNestIcon); + ixuitexture.ID = (ulong)expeditionDataByID.DNExpeditionID; + bool flag2 = wave > data.DragonNestWave; + if (flag2) + { + ixuitexture.RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnFinishedNestClicked)); + } + else + { + bool flag3 = wave < data.DragonNestWave; + if (flag3) + { + bool flag4 = data.DragonNestWave == 1u; + if (flag4) + { + ixuitexture.RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnNestLockByLevelClicked)); + } + else + { + ixuitexture.RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnNestLockClicked)); + } + } + else + { + ixuitexture.RegisterLabelClickEventHandler(null); + } + } + } + else + { + transform.gameObject.SetActive(true); + ixuitexture.SetVisible(false); + ixuisprite2.SetSprite(data.DragonNestIcon, data.DragonNestAtlas, false); + transform2.gameObject.SetActive(wave < data.DragonNestWave); + transform3.gameObject.SetActive(wave == data.DragonNestWave); + ixuisprite.ID = (ulong)expeditionDataByID.DNExpeditionID; + bool flag5 = wave > data.DragonNestWave; + if (flag5) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnFinishedNestClicked)); + } + else + { + bool flag6 = wave < data.DragonNestWave; + if (flag6) + { + bool flag7 = data.DragonNestWave == 1u; + if (flag7) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnNestLockByLevelClicked)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnNestLockClicked)); + } + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(null); + } + } + } + } + + private void SetupDetailFrame() + { + ExpeditionTable.RowData expeditionDataByID = this._expDoc.GetExpeditionDataByID((int)this._doc.CurrentExpID); + DragonNestTable.RowData dragonNestByID = this._doc.GetDragonNestByID(this._doc.CurrentExpID); + bool flag = expeditionDataByID == null || dragonNestByID == null; + if (!flag) + { + DragonNestType.RowData dragonNestTypeDataByID = this._doc.GetDragonNestTypeDataByID(this._doc.CurrentType); + base.uiBehaviour.m_NestName.SetText(expeditionDataByID.DNExpeditionName); + switch (this._doc.CurrentDiff) + { + case 0u: + base.uiBehaviour.m_NormalDetail.gameObject.SetActive(false); + base.uiBehaviour.m_EasyDetail.gameObject.SetActive(true); + base.uiBehaviour.m_quanMinSpr.gameObject.SetActive(true); + base.uiBehaviour.m_EasySugAttr.SetText(dragonNestByID.SuggestAttr); + base.uiBehaviour.m_EasySugLevel.SetText(expeditionDataByID.DisplayLevel.ToString()); + base.uiBehaviour.m_EasySugMember.SetText(expeditionDataByID.PlayerNumber.ToString()); + base.uiBehaviour.m_NestNormalBg.SetTexturePath(dragonNestTypeDataByID.TypeBg); + break; + case 1u: + base.uiBehaviour.m_NormalDetail.gameObject.SetActive(true); + base.uiBehaviour.m_EasyDetail.gameObject.SetActive(false); + base.uiBehaviour.m_quanMinSpr.gameObject.SetActive(false); + base.uiBehaviour.m_NormalCurPPT.SetText(XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic).ToString("0")); + base.uiBehaviour.m_NormalSugPPT.SetText(expeditionDataByID.DisplayPPT.ToString()); + base.uiBehaviour.m_NormalSugAttr.SetText(dragonNestByID.SuggestAttr); + base.uiBehaviour.m_NormalSugLevel.SetText(expeditionDataByID.DisplayLevel.ToString()); + base.uiBehaviour.m_NormalSugMember.SetText(expeditionDataByID.PlayerNumber.ToString()); + base.uiBehaviour.m_NestNormalBg.SetTexturePath(dragonNestTypeDataByID.TypeBg); + this.SetupWeakDetail(dragonNestByID, expeditionDataByID); + break; + case 2u: + base.uiBehaviour.m_NormalDetail.gameObject.SetActive(true); + base.uiBehaviour.m_EasyDetail.gameObject.SetActive(false); + base.uiBehaviour.m_quanMinSpr.gameObject.SetActive(false); + base.uiBehaviour.m_NormalCurPPT.SetText(XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic).ToString("0")); + base.uiBehaviour.m_NormalSugPPT.SetText(expeditionDataByID.DisplayPPT.ToString()); + base.uiBehaviour.m_NormalSugAttr.SetText(dragonNestByID.SuggestAttr); + base.uiBehaviour.m_NormalSugLevel.SetText(expeditionDataByID.DisplayLevel.ToString()); + base.uiBehaviour.m_NormalSugMember.SetText(expeditionDataByID.PlayerNumber.ToString()); + base.uiBehaviour.m_NestHardBg.SetTexturePath(dragonNestTypeDataByID.TypeBg); + break; + } + base.uiBehaviour.m_WeakTip.gameObject.SetActive(false); + base.uiBehaviour.m_WeakBlock.SetVisible(false); + this.SetupItemList(expeditionDataByID); + this.SetupEnterCost(expeditionDataByID); + this.SetupSweepCost(expeditionDataByID); + this._mainDoc.OnTopUIRefreshed(this); + } + } + + private void SetupWeakDetail(DragonNestTable.RowData data, ExpeditionTable.RowData expData) + { + base.uiBehaviour.m_WeakName.SetText(expData.DNExpeditionName); + switch (this._doc.CurrentWeakType) + { + case DragonWeakType.DragonWeakType_Null: + base.uiBehaviour.m_WeakPPTFrame.gameObject.SetActive(false); + base.uiBehaviour.m_NormalSugPPT.SetColor(new Color(1f, 1f, 1f)); + base.uiBehaviour.m_WeakTip1.SetText(data.WeakNotPassTip1); + base.uiBehaviour.m_WeakTip2.SetText(XSingleton.singleton.ReplaceReturn(data.WeakNotPassTip2)); + base.uiBehaviour.m_WeakPercent.SetText(XStringDefineProxy.GetString("DragonNestNotPassTip")); + break; + case DragonWeakType.DragonWeakType_Pass: + { + int num = 0; + for (int i = 0; i < data.WeakInfo.Count; i++) + { + bool flag = (ulong)data.WeakInfo[i, 0] <= (ulong)((long)this._doc.CurrentWeakState); + if (flag) + { + num = i; + } + } + bool flag2 = data.WeakTip1.Length != 0; + if (flag2) + { + base.uiBehaviour.m_WeakTip1.SetText((num < data.WeakTip1.Length) ? data.WeakTip1[num] : data.WeakTip1[data.WeakTip1.Length - 1]); + } + else + { + base.uiBehaviour.m_WeakTip1.SetText(""); + } + bool flag3 = data.WeakTip2.Length != 0; + if (flag3) + { + base.uiBehaviour.m_WeakTip2.SetText(XSingleton.singleton.ReplaceReturn((num < data.WeakTip2.Length) ? data.WeakTip2[num] : data.WeakTip2[data.WeakTip2.Length - 1])); + } + else + { + base.uiBehaviour.m_WeakTip2.SetText(""); + } + bool flag4 = data.WeakPercent.Length != 0; + if (flag4) + { + base.uiBehaviour.m_WeakPercent.SetText(string.Format("{0}%", (num < data.WeakPercent.Length) ? data.WeakPercent[num].ToString() : data.WeakPercent[data.WeakPercent.Length - 1].ToString())); + } + else + { + base.uiBehaviour.m_WeakPercent.SetText(""); + } + bool flag5 = data.WeakCombat.Length != 0; + if (flag5) + { + bool flag6 = expData.DisplayPPT == ((num < data.WeakCombat.Length) ? data.WeakCombat[num] : data.WeakCombat[data.WeakCombat.Length - 1]); + if (flag6) + { + base.uiBehaviour.m_WeakPPTFrame.gameObject.SetActive(false); + base.uiBehaviour.m_NormalSugPPT.SetColor(new Color(1f, 1f, 1f)); + } + else + { + base.uiBehaviour.m_WeakPPTFrame.gameObject.SetActive(true); + base.uiBehaviour.m_WeakPPT.SetText((num < data.WeakCombat.Length) ? data.WeakCombat[num].ToString() : data.WeakCombat[data.WeakCombat.Length - 1].ToString()); + base.uiBehaviour.m_WeakPPT.MakePixelPerfect(); + base.uiBehaviour.m_NormalSugPPT.SetColor(new Color(0.5f, 0.5f, 0.5f)); + } + } + else + { + base.uiBehaviour.m_WeakPPTFrame.gameObject.SetActive(false); + base.uiBehaviour.m_NormalSugPPT.SetColor(new Color(1f, 1f, 1f)); + } + break; + } + case DragonWeakType.DragonWeakType_NotPass: + { + int num2 = 0; + for (int j = 0; j < data.WeakInfoEx.Count; j++) + { + bool flag7 = (ulong)data.WeakInfoEx[j, 0] <= (ulong)((long)this._doc.CurrentWeakState); + if (flag7) + { + num2 = j; + } + } + bool flag8 = data.WeakTip1EX.Length != 0; + if (flag8) + { + base.uiBehaviour.m_WeakTip1.SetText((num2 < data.WeakTip1EX.Length) ? data.WeakTip1EX[num2] : data.WeakTip1EX[data.WeakTip1EX.Length - 1]); + } + else + { + base.uiBehaviour.m_WeakTip1.SetText(""); + } + bool flag9 = data.WeakTip2EX.Length != 0; + if (flag9) + { + base.uiBehaviour.m_WeakTip2.SetText(XSingleton.singleton.ReplaceReturn((num2 < data.WeakTip2EX.Length) ? data.WeakTip2EX[num2] : data.WeakTip2EX[data.WeakTip2EX.Length - 1])); + } + else + { + base.uiBehaviour.m_WeakTip2.SetText(""); + } + bool flag10 = data.WeakPercentEX.Length != 0; + if (flag10) + { + base.uiBehaviour.m_WeakPercent.SetText(string.Format("{0}%", (num2 < data.WeakPercentEX.Length) ? data.WeakPercentEX[num2].ToString() : data.WeakPercentEX[data.WeakPercentEX.Length - 1].ToString())); + } + else + { + base.uiBehaviour.m_WeakPercent.SetText(""); + } + bool flag11 = data.WeakCombatEX.Length != 0; + if (flag11) + { + bool flag12 = expData.DisplayPPT == ((num2 < data.WeakCombatEX.Length) ? data.WeakCombatEX[num2] : data.WeakCombatEX[data.WeakCombatEX.Length - 1]); + if (flag12) + { + base.uiBehaviour.m_WeakPPTFrame.gameObject.SetActive(false); + base.uiBehaviour.m_NormalSugPPT.SetColor(new Color(1f, 1f, 1f)); + } + else + { + base.uiBehaviour.m_WeakPPTFrame.gameObject.SetActive(true); + base.uiBehaviour.m_WeakPPT.SetText((num2 < data.WeakCombatEX.Length) ? data.WeakCombatEX[num2].ToString() : data.WeakCombatEX[data.WeakCombatEX.Length - 1].ToString()); + base.uiBehaviour.m_WeakPPT.MakePixelPerfect(); + base.uiBehaviour.m_NormalSugPPT.SetColor(new Color(0.5f, 0.5f, 0.5f)); + } + } + else + { + base.uiBehaviour.m_WeakPPTFrame.gameObject.SetActive(false); + base.uiBehaviour.m_NormalSugPPT.SetColor(new Color(1f, 1f, 1f)); + } + break; + } + } + } + + private void SetupItemList(ExpeditionTable.RowData expData) + { + bool flag = expData.ViewableDropList == null; + if (!flag) + { + base.uiBehaviour.m_ItemTplPool.FakeReturnAll(); + for (int i = 0; i < expData.ViewableDropList.Length; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemTplPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)expData.ViewableDropList[i], 0, false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_ItemTplPool.TplPos.x + (float)(i * base.uiBehaviour.m_ItemTplPool.TplWidth), base.uiBehaviour.m_ItemTplPool.TplPos.y); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)expData.ViewableDropList[i]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + base.uiBehaviour.m_ItemTplPool.ActualReturnAll(false); + } + } + + private void SetupEnterCost(ExpeditionTable.RowData expData) + { + bool flag = expData.CostItem.Count > 0; + if (flag) + { + base.uiBehaviour.m_CostItem.SetActive(true); + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_CostItem, expData.CostItem[0, 0], 0, false); + base.uiBehaviour.m_CostItemNum.SetText(string.Format("x{0}", expData.CostItem[0, 1])); + IXUISprite ixuisprite = base.uiBehaviour.m_CostItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)expData.CostItem[0, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + base.uiBehaviour.m_CostItem.SetActive(false); + } + XDragonNestDocument.DragonNestData dragonNestData = this._doc.GetDragonNestData(this._doc.CurrentType, this._doc.CurrentDiff); + bool flag2 = dragonNestData == null; + if (!flag2) + { + bool flag3 = dragonNestData.Wave == 0u; + if (flag3) + { + base.uiBehaviour.m_EnterText.SetText(XStringDefineProxy.GetString("IS_LOCK")); + base.uiBehaviour.m_EnterButton.SetEnable(false, false); + base.uiBehaviour.m_SweepButton.SetEnable(false, false); + } + else + { + bool flag4 = dragonNestData.Wave == 7u; + if (flag4) + { + base.uiBehaviour.m_EnterText.SetText(XStringDefineProxy.GetString("IS_FINISH")); + base.uiBehaviour.m_EnterButton.SetEnable(false, false); + base.uiBehaviour.m_SweepButton.SetEnable(false, false); + } + else + { + base.uiBehaviour.m_EnterText.SetText(XStringDefineProxy.GetString("TEAM_ENTER")); + base.uiBehaviour.m_EnterButton.SetEnable(true, false); + base.uiBehaviour.m_SweepButton.SetEnable(true, false); + } + } + } + } + + private void SetupSweepCost(ExpeditionTable.RowData expData) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DragonNest_Sweep); + if (flag) + { + base.uiBehaviour.m_SweepButton.SetVisible(false); + } + else + { + uint sceneIDByExpID = this._expDoc.GetSceneIDByExpID(expData.DNExpeditionID); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneIDByExpID); + bool flag2 = this._doc.CurrentDiff == 0u && sceneData.SweepTicket != null && sceneData.SweepTicket.Length != 0; + if (flag2) + { + base.uiBehaviour.m_SweepButton.SetVisible(true); + XSingleton.singleton.normalItemDrawer.DrawItem(base.uiBehaviour.m_SweepCostItem, (int)sceneData.SweepTicket[0], 0, false); + base.uiBehaviour.m_SweepCostItemNum.SetText("x1"); + IXUISprite ixuisprite = base.uiBehaviour.m_SweepCostItem.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)sceneData.SweepTicket[0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + base.uiBehaviour.m_SweepButton.SetVisible(false); + } + } + } + + private void SetupHelpFrame() + { + base.uiBehaviour.m_HelpFrame.gameObject.SetActive(false); + base.uiBehaviour.m_HelpTip.SetText(XStringDefineProxy.GetString("DragonNestHelpTip")); + } + + public void RefreshUI() + { + this.SetupTabFrame(); + this.SetupNormalDragon(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonNestView.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonNestView.cs.meta new file mode 100644 index 00000000..dc1ec94f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonNestView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ba5e8a9a0aed324083c27521dfdfd97 +timeCreated: 1611404096 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonPartnerDocument.cs b/Client/Assets/Scripts/XMainClient/XDragonPartnerDocument.cs new file mode 100644 index 00000000..224f59b6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonPartnerDocument.cs @@ -0,0 +1,83 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonPartnerDocument : XDocComponent + { + public override uint ID + { + get + { + return XDragonPartnerDocument.uuID; + } + } + + public List DragonGroupRoleInfoLsit { get; private set; } + + public List RecordList { get; private set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("DragonPartnerDocument"); + + public XDragonPartnerHandler View; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void ReqDragonGroupRoleInfo() + { + XSingleton.singleton.AddLog("DragonPartner ReqDragonGroupRoleInfo.", null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2G_DragonGroupRoleList rpc = new RpcC2G_DragonGroupRoleList(); + XSingleton.singleton.Send(rpc); + } + + public void OnReqDragonGropRoleInfo(DragonGroupRoleListC2S oArg, DragonGroupRoleListS2C oRes) + { + XSingleton.singleton.AddLog("DragonGroupRoleList OnReqDragonGropRoleInfo", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.errorcode); + } + else + { + this.DragonGroupRoleInfoLsit = oRes.rolelist; + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshData(); + } + } + } + + public void SendDragonGroupRecord() + { + XSingleton.singleton.AddGreenLog("SendDragonGroupRecord", null, null, null, null, null); + RpcC2G_DragonGroupRecord rpc = new RpcC2G_DragonGroupRecord(); + XSingleton.singleton.Send(rpc); + } + + public void ReceiveDragonGroupRecord(DragonGroupRecordC2S arg, DragonGroupRecordS2C res) + { + XSingleton.singleton.AddGreenLog("ReceiveDragonGroupRecord", null, null, null, null, null); + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + } + else + { + this.RecordList = res.recordlist; + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshData(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonPartnerDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonPartnerDocument.cs.meta new file mode 100644 index 00000000..d3726b54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonPartnerDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f1935a3d6e9c0a847982ed03e2871691 +timeCreated: 1611404838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDragonRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XDragonRewardDocument.cs new file mode 100644 index 00000000..d92159af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonRewardDocument.cs @@ -0,0 +1,220 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDragonRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XDragonRewardDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("DragonRewardDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static DargonReward _reader = new DargonReward(); + + public List rewds = new List(); + + public XDragonRwdHandler rwdView; + + public bool isAgreeHelp = true; + + public uint helpCnt = 0u; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Reward_Dragon); + if (flag) + { + this.FetchList(); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XDragonRewardDocument.AsyncLoader.AddTask("Table/DargonReward", XDragonRewardDocument._reader, false); + XDragonRewardDocument.AsyncLoader.Execute(callback); + } + + public void FetchList() + { + RpcC2G_DHRReqC2G rpcC2G_DHRReqC2G = new RpcC2G_DHRReqC2G(); + rpcC2G_DHRReqC2G.oArg.op = DHRReqOp.DHR_OP_LIST; + rpcC2G_DHRReqC2G.oArg.id = 0; + XSingleton.singleton.Send(rpcC2G_DHRReqC2G); + } + + public void Claim(int id) + { + RpcC2G_DHRReqC2G rpcC2G_DHRReqC2G = new RpcC2G_DHRReqC2G(); + rpcC2G_DHRReqC2G.oArg.op = DHRReqOp.DHR_OP_FETCH_REWARD; + rpcC2G_DHRReqC2G.oArg.id = id; + XSingleton.singleton.Send(rpcC2G_DHRReqC2G); + } + + public void AgreeHelp(bool agree) + { + RpcC2G_DHRReqC2G rpcC2G_DHRReqC2G = new RpcC2G_DHRReqC2G(); + rpcC2G_DHRReqC2G.oArg.op = (agree ? DHRReqOp.DHR_OP_WANT_BE_HELP : DHRReqOp.DHR_OP_WANT_NOT_HELP); + rpcC2G_DHRReqC2G.oArg.id = 0; + XSingleton.singleton.Send(rpcC2G_DHRReqC2G); + } + + public void OnResAchieve(List dataList, uint helps, bool want) + { + this.isAgreeHelp = want; + this.helpCnt = helps; + this.rewds.Clear(); + int i = 0; + int count = dataList.Count; + while (i < count) + { + DragonRwdItem dragonRwdItem = new DragonRwdItem(); + dragonRwdItem.row = this.Find(dataList[i]); + bool flag = dragonRwdItem.row == null; + if (!flag) + { + bool flag2 = dataList[i].state == DHRState.DHR_CANNOT; + if (flag2) + { + dragonRwdItem.state = AchieveState.Normal; + } + else + { + bool flag3 = dataList[i].state == DHRState.DHR_CAN_HAVEHOT; + if (flag3) + { + dragonRwdItem.state = AchieveState.Claim; + } + else + { + dragonRwdItem.state = AchieveState.Claimed; + } + } + this.rewds.Add(dragonRwdItem); + } + i++; + } + int j = 0; + int num = XDragonRewardDocument._reader.Table.Length; + while (j < num) + { + bool flag4 = !this.Find(XDragonRewardDocument._reader.Table[j]); + if (flag4) + { + DragonRwdItem dragonRwdItem2 = new DragonRwdItem(); + dragonRwdItem2.row = XDragonRewardDocument._reader.Table[j]; + dragonRwdItem2.state = AchieveState.Normal; + this.rewds.Add(dragonRwdItem2); + } + j++; + } + this.rewds.Sort(new Comparison(this.Sort)); + this.RefreshRedp(); + bool flag5 = this.rwdView != null && this.rwdView.IsVisible(); + if (flag5) + { + this.rwdView.Refresh(); + } + } + + private void RefreshRedp() + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward_Dragon, true); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward, true); + } + + public bool HasNewRed() + { + int i = 0; + int count = this.rewds.Count; + while (i < count) + { + bool flag = this.rewds[i].state == AchieveState.Claim; + if (flag) + { + return true; + } + i++; + } + return false; + } + + private bool Find(DargonReward.RowData row) + { + int i = 0; + int count = this.rewds.Count; + while (i < count) + { + bool flag = this.rewds[i].row.ID == row.ID; + if (flag) + { + return true; + } + i++; + } + return false; + } + + private DargonReward.RowData Find(DHRewrad2State info) + { + int i = 0; + int num = XDragonRewardDocument._reader.Table.Length; + while (i < num) + { + bool flag = XDragonRewardDocument._reader.Table[i].ID == info.id; + if (flag) + { + return XDragonRewardDocument._reader.Table[i]; + } + i++; + } + return null; + } + + private int Sort(DragonRwdItem x, DragonRwdItem y) + { + bool flag = x.state != y.state; + int result; + if (flag) + { + result = x.state - y.state; + } + else + { + bool flag2 = x.row == null || y.row == null; + if (flag2) + { + result = 0; + } + else + { + bool flag3 = x.row.SortID != y.row.SortID; + if (flag3) + { + result = x.row.SortID - y.row.SortID; + } + else + { + result = x.row.ID - y.row.ID; + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDragonRewardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDragonRewardDocument.cs.meta new file mode 100644 index 00000000..5dc2253a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDragonRewardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27743abd65bc91f419c0fa3306c9bb92 +timeCreated: 1611403471 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDramaDocument.cs b/Client/Assets/Scripts/XMainClient/XDramaDocument.cs new file mode 100644 index 00000000..c8e4c07e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDramaDocument.cs @@ -0,0 +1,272 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XDramaDocument : XDocComponent + { + public override uint ID + { + get + { + return XDramaDocument.uuID; + } + } + + public XDramaOperate CurOperate + { + get + { + return this.m_CurOperate; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("DramaDocument"); + + private Dictionary _DramaOperateDic = new Dictionary(default(XFastEnumIntEqualityComparer)); + + public bool bBlockClose = false; + + private XSysDefine m_CurOperateSys; + + private XDramaOperate m_CurOperate; + + private XNPCFavorDrama favorDrama; + + private XNpc _npc = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.bBlockClose = false; + this.m_CurOperate = null; + this.m_CurOperateSys = XSysDefine.XSys_Invalid; + this._DramaOperateDic.Clear(); + this._DramaOperateDic.Add(XSysDefine.XSys_Mentorship, new XMentorshipPupilsDramaOperate()); + this._DramaOperateDic.Add(XSysDefine.XSys_Partner, new XPartnerDramaOperate()); + this._DramaOperateDic.Add(XSysDefine.XSys_Wedding, new XWeddingDramaOperate()); + this.favorDrama = new XNPCFavorDrama(); + this.favorDrama.BDeprecated = true; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_MentorshipRelationOperation, new XComponent.XEventHandler(this.OnOperatingMentorship)); + } + + public void OnMeetNpc(XNpc npc) + { + bool flag = npc == null; + if (!flag) + { + switch (npc.NPCType) + { + case 1u: + this.CommonNpc(npc); + break; + case 2u: + HomePlantDocument.Doc.ClickFarmModle(npc); + break; + case 3u: + HomePlantDocument.Doc.CliclTroubleMakerModle(npc); + break; + case 4u: + DlgBase.singleton.ShowNpcDialog(npc); + break; + case 5u: + { + XGuildCollectDocument specificDocument = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + specificDocument.OnMeetLottery(npc.TypeID); + break; + } + case 6u: + { + XWeddingLitterGirlDramaOperate xweddingLitterGirlDramaOperate = new XWeddingLitterGirlDramaOperate(); + xweddingLitterGirlDramaOperate.ShowNpc(npc); + break; + } + case 7u: + { + XWeddingLitterBoyDramaOperate xweddingLitterBoyDramaOperate = new XWeddingLitterBoyDramaOperate(); + xweddingLitterBoyDramaOperate.ShowNpc(npc); + break; + } + case 8u: + { + XGuildHuntDramaOperate xguildHuntDramaOperate = new XGuildHuntDramaOperate(); + xguildHuntDramaOperate.ShowNpc(npc); + break; + } + } + } + } + + public void CommonNpc(XNpc npc) + { + this._npc = npc; + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + XTaskInfo xtaskInfo = null; + NpcTaskState npcTaskState = specificDocument.GetNpcTaskState(npc.TypeID, ref xtaskInfo); + bool flag = false; + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_NPCFavor); + if (flag2) + { + XNPCFavorDocument specificDocument2 = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + EFavorState state = specificDocument2.GetState(npc.TypeID); + flag = (state > EFavorState.None); + } + bool flag3 = npcTaskState == NpcTaskState.TaskBegin || npcTaskState == NpcTaskState.TaskEnd || (npcTaskState == NpcTaskState.TaskInprocess && !flag) || (npc._linkSys == 0 && !flag); + if (flag3) + { + DlgBase.singleton.ShowNpcDialog(npc); + } + else + { + bool flag4 = npc._linkSys != 0; + if (flag4) + { + XSysDefine linkSys = (XSysDefine)npc._linkSys; + bool flag5 = !XSingleton.singleton.IsSystemOpened(linkSys); + if (flag5) + { + DlgBase.singleton.ShowNpcDialog(npc); + } + else + { + XDramaOperate xdramaOperate; + bool flag6 = this._DramaOperateDic.TryGetValue(linkSys, out xdramaOperate); + if (!flag6) + { + bool flag7 = flag; + if (flag7) + { + string @string = XStringDefineProxy.GetString(Enum.GetName(typeof(XSysDefine), linkSys)); + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("ChooseSYS_OR_NPC"), @string), @string, XStringDefineProxy.GetString("ChooseNPCFavor"), new ButtonClickEventHandler(this.OnClickSys), new ButtonClickEventHandler(this.OnShowNpc), false, XTempTipDefine.OD_START, 50); + } + else + { + XSingleton.singleton.OpenSystem(linkSys, 0UL); + } + return; + } + this.m_CurOperate = xdramaOperate; + this.m_CurOperateSys = linkSys; + xdramaOperate.ShowNpc(npc); + } + } + else + { + bool flag8 = flag; + if (flag8) + { + bool flag9 = this.favorDrama != null; + if (flag9) + { + this.favorDrama.BDeprecated = false; + this.favorDrama.ShowNpc(npc); + } + } + } + } + XCameraCloseUpEventArgs @event = XEventPool.GetEvent(); + @event.Target = XSingleton.singleton.LastNpc; + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + + private bool OnClickSys(IXUIButton btn) + { + bool flag = this._npc == null; + bool result; + if (flag) + { + result = true; + } + else + { + XSysDefine linkSys = (XSysDefine)this._npc._linkSys; + XSingleton.singleton.OpenSystem(linkSys, 0UL); + DlgBase.singleton.SetVisible(false, true); + result = true; + } + return result; + } + + private bool OnShowNpc(IXUIButton btn) + { + bool flag = this.favorDrama != null && this._npc != null; + if (flag) + { + this.favorDrama.BDeprecated = false; + this.favorDrama.ShowNpc(this._npc); + this._npc = null; + } + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public void OnUIClose() + { + this.m_CurOperate = null; + this.m_CurOperateSys = XSysDefine.XSys_Invalid; + this.favorDrama.BDeprecated = true; + } + + public XDramaOperate GetOpenedOperate(XSysDefine sys) + { + bool flag = this.m_CurOperateSys == sys; + XDramaOperate result; + if (flag) + { + result = this.m_CurOperate; + } + else + { + result = null; + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.bBlockClose = false; + } + + protected bool OnOperatingMentorship(XEventArgs e) + { + XDramaOperate openedOperate = this.GetOpenedOperate(XSysDefine.XSys_Mentorship); + bool flag = openedOperate != null; + if (flag) + { + XMentorRelationOpArgs xmentorRelationOpArgs = e as XMentorRelationOpArgs; + XMentorshipPupilsDramaOperate xmentorshipPupilsDramaOperate = openedOperate as XMentorshipPupilsDramaOperate; + bool flag2 = xmentorshipPupilsDramaOperate != null; + if (flag2) + { + xmentorshipPupilsDramaOperate.OnMentorRelationOp(xmentorRelationOpArgs.oArg, xmentorRelationOpArgs.oRes); + } + } + return true; + } + + public XNPCFavorDrama GetFavorDrama() + { + bool flag = !this.favorDrama.BDeprecated; + XNPCFavorDrama result; + if (flag) + { + result = this.favorDrama; + } + else + { + result = null; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDramaDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XDramaDocument.cs.meta new file mode 100644 index 00000000..74fc9ac8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDramaDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 028df5490ad40a64cbd6cc996c208e2c +timeCreated: 1611402957 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDropData.cs b/Client/Assets/Scripts/XMainClient/XDropData.cs new file mode 100644 index 00000000..65c05df4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDropData.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal struct XDropData + { + public int itemID; + + public int count; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDropData.cs.meta b/Client/Assets/Scripts/XMainClient/XDropData.cs.meta new file mode 100644 index 00000000..939511a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDropData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bbba00692744a244085bf167310d2c82 +timeCreated: 1611404443 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDropPackage.cs b/Client/Assets/Scripts/XMainClient/XDropPackage.cs new file mode 100644 index 00000000..ff4ec3be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDropPackage.cs @@ -0,0 +1,20 @@ +using System; + +namespace XMainClient +{ + internal class XDropPackage + { + public uint money; + + public uint weapon_count; + + public uint armor_count; + + public void Reset() + { + this.money = 0u; + this.weapon_count = 0u; + this.armor_count = 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDropPackage.cs.meta b/Client/Assets/Scripts/XMainClient/XDropPackage.cs.meta new file mode 100644 index 00000000..48a1b870 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDropPackage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 93554b068b5ddf4478da744bb1f08ae7 +timeCreated: 1611404150 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XDummy.cs b/Client/Assets/Scripts/XMainClient/XDummy.cs new file mode 100644 index 00000000..d7125095 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDummy.cs @@ -0,0 +1,425 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XDummy : XEntity, IXDummy + { + public bool AutoAdded + { + get + { + return this._autoAdd; + } + } + + public XShowUpComponent Show + { + get + { + return this._show; + } + } + + public ulong RefID { get; set; } + + public float DefaultRotation + { + get + { + return this._defaultRotation; + } + } + + public XOutlookData OutlookData + { + get + { + return this._data; + } + } + + public bool IsUI + { + get + { + return this.isUI; + } + } + + public bool IsEnableUIRim + { + get + { + return this.enableUIRim; + } + set + { + bool flag = this.enableUIRim != value; + if (flag) + { + this.enableUIRim = value; + bool flag2 = this.enableUIRim; + if (flag2) + { + XDummy.visibleDummyCount++; + } + else + { + XDummy.visibleDummyCount--; + } + bool flag3 = XDummy.visibleDummyCount > 0; + if (flag3) + { + Shader.SetGlobalFloat("uirim", 1f); + } + else + { + Shader.SetGlobalFloat("uirim", 0f); + } + } + } + } + + public override uint PresentID + { + get + { + return this._present_id; + } + } + + public override uint TypeID + { + get + { + return this._type_id; + } + } + + public override ulong ID + { + get + { + return this._id; + } + } + + private ulong _id = 0UL; + + private uint _present_id; + + private uint _type_id; + + private int srcLayer = -1; + + private bool isUI = false; + + private int renderQueue = -1; + + private bool enableUIRim = false; + + private XShowUpComponent _show = null; + + private bool _demonstration; + + private bool _autoAdd; + + private bool _mainDummy = false; + + private XOutlookData _data = null; + + public static int visibleDummyCount = 0; + + private static CommandCallback _setLayerCb = new CommandCallback(XDummy._SetLayer); + + private static CommandCallback _setRenderQueueCb = new CommandCallback(XDummy._SetRenderQueue); + + private float _defaultRotation; + + public bool Initilize(uint type_id, Vector3 position, Quaternion rotation) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Dummy; + this._id = (ulong)(((long)XSingleton.singleton.New_id & 1152921504606846975L) | (long)XAttributes.GetTypePrefix(EntitySpecies.Species_Dummy)); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(type_id); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + string value = XSingleton.singleton.PreFilterPrefab(byPresentID.Prefab); + bool flag = string.IsNullOrEmpty(value); + if (flag) + { + this._xobject = XGameObject.CreateXGameObject("", position, rotation, true, true); + } + else + { + this._xobject = XGameObject.CreateXGameObject("Prefabs/" + byPresentID.Prefab, position, rotation, true, true); + } + this._xobject.UID = this._id; + this._xobject.Name = this._id.ToString(); + this._present_id = byID.PresentID; + this._type_id = type_id; + this._data = null; + this._demonstration = false; + this._autoAdd = false; + return this.Initilize(0); + } + + public bool Initilize(uint present_id, uint type_id, XOutlookData outlookData, bool autoAdd, bool demonstration, bool asyncLoad) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Dummy; + this._id = (ulong)(((long)XSingleton.singleton.New_id & 1152921504606846975L) | (long)XAttributes.GetTypePrefix(EntitySpecies.Species_Dummy)); + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(present_id); + this._defaultRotation = byPresentID.UIAvatarAngle; + string value = XSingleton.singleton.PreFilterPrefab(byPresentID.Prefab); + bool flag = string.IsNullOrEmpty(value); + if (flag) + { + this._xobject = XGameObject.CreateXGameObject("", asyncLoad, true); + } + else + { + this._xobject = XGameObject.CreateXGameObject("Prefabs/" + byPresentID.Prefab, asyncLoad, true); + } + this._xobject.UID = this._id; + this._xobject.Name = this._id.ToString(); + this._present_id = present_id; + this._type_id = type_id; + this._data = outlookData; + bool flag2 = this._data != null; + if (flag2) + { + this._mainDummy = this._data.isMainDummy; + this._data.SetProfType(this._type_id); + } + this._demonstration = demonstration; + this._autoAdd = autoAdd; + base.Scale = 1f; + return this.Initilize(0); + } + + public override bool Initilize(int flag) + { + this._present = (XSingleton.singleton.CreateComponent(this, XPresentComponent.uuID) as XPresentComponent); + bool demonstration = this._demonstration; + if (demonstration) + { + this._machine = (XSingleton.singleton.CreateComponent(this, XStateMachine.uuID) as XStateMachine); + this._machine.SetDefaultState(XSingleton.singleton.CreateComponent(this, XIdleComponent.uuID) as XIdleComponent); + this._skill = (XSingleton.singleton.CreateComponent(this, XSkillComponent.uuID) as XSkillComponent); + this._show = (XSingleton.singleton.CreateComponent(this, XShowUpComponent.uuID) as XShowUpComponent); + this._buff = (XSingleton.singleton.CreateComponent(this, XBuffComponent.uuID) as XBuffComponent); + XSingleton.singleton.CreateComponent(this, XChargeComponent.uuID); + } + bool flag2 = this._data != null; + if (flag2) + { + this._equip = (XSingleton.singleton.CreateComponent(this, XEquipComponent.uuID) as XEquipComponent); + } + this.ResetAnimation(); + this._xobject.Ator.cullingMode = 0; + this._audio = (XSingleton.singleton.CreateComponent(this, XAudioComponent.uuID) as XAudioComponent); + this._xobject.EnableCC = false; + return true; + } + + public void SetAnimation(string anim) + { + base.OverrideAnimClip("Idle", anim, true, false); + } + + public float SetAnimationGetLength(string anim) + { + return base.OverrideAnimClipGetLength("Idle", anim, true); + } + + public void PlaySpecifiedState(string state = "Stand") + { + base.Ator.CrossFade(state, 0.05f, 0, 0f); + } + + public void ResetAnimation() + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.World && base.Present.PresentLib.AttackIdle.Length > 0; + if (flag) + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.AttackIdle, true, false); + } + else + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.Idle, true, false); + } + } + + public override void OnCreated() + { + XSingleton.singleton.Puppets(this, false, false); + for (int i = 0; i < base.Components.Count; i++) + { + bool flag = base.Components[i] != null; + if (flag) + { + base.Components[i].Attached(); + } + } + this._layer = 19; + base.SetCollisionLayer(this._layer); + bool flag2 = this._equip != null; + if (flag2) + { + this._equip.IsUIAvatar = this._data.uiAvatar; + this._equip.SetEnhanceMaster(this._data.enhanceMasterLevel); + this._equip.SetSuitFx(this._data.suitEffectID); + this._equip.EquipFromVisibleList(this._data.OutlookList, this._data.hairColorID, this._data.suitEffectID); + this._equip.SpriteFromData(this._data.sprite); + } + this._data = null; + XSingleton.singleton.Puppets(this, false, false); + } + + public override void OnDestroy() + { + base.OnDestroy(); + bool flag = !this._autoAdd; + if (flag) + { + this.Uninitilize(); + } + } + + protected sealed override void Move() + { + base.MoveObj.Position += this._movement; + this._movement = Vector3.zero; + } + + private static void _SetLayer(XGameObject gameObject, object o, int commandID) + { + XDummy xdummy = o as XDummy; + bool flag = xdummy != null && gameObject != null; + if (flag) + { + bool flag2 = xdummy.srcLayer < 0; + if (!flag2) + { + Transform transform = gameObject.Find(""); + bool flag3 = transform != null; + if (flag3) + { + XCommon.tmpRender.Clear(); + transform.GetComponentsInChildren(true, XCommon.tmpRender); + int count = XCommon.tmpRender.Count; + for (int i = 0; i < count; i++) + { + Renderer renderer = XCommon.tmpRender[i]; + renderer.gameObject.layer = xdummy.srcLayer; + } + XCommon.tmpRender.Clear(); + } + } + } + } + + private static void _SetRenderQueue(XGameObject gameObject, object o, int commandID) + { + XDummy xdummy = o as XDummy; + bool flag = xdummy != null && gameObject != null; + if (flag) + { + Transform transform = gameObject.Find(""); + bool flag2 = transform != null; + if (flag2) + { + transform.GetComponentsInChildren(XCommon.tmpRender); + int count = XCommon.tmpRender.Count; + for (int i = 0; i < count; i++) + { + Renderer renderer = XCommon.tmpRender[i]; + bool flag3 = renderer.CompareTag("BindedRes") || renderer.CompareTag("Mount_BindedRes"); + if (flag3) + { + int j = 0; + int num = renderer.materials.Length; + while (j < num) + { + renderer.materials[j].renderQueue = xdummy.renderQueue; + j++; + } + } + } + XCommon.tmpRender.Clear(); + } + } + } + + public void SetupUIDummy(bool ui) + { + this.isUI = ui; + this.srcLayer = (this.isUI ? XQualitySetting.UILayer : this._xobject.Layer); + bool flag = this._equip != null; + if (flag) + { + this._equip.IsUIAvatar = ui; + } + else + { + bool flag2 = this._xobject != null; + if (flag2) + { + this._xobject.CallCommand(XDummy._setLayerCb, this, -1, false); + } + } + } + + public void SetupRenderQueue(IUIDummy uiDummy) + { + bool flag = uiDummy != null; + if (flag) + { + uiDummy.Reset(); + uiDummy.RefreshRenderQueue = new RefreshRenderQueueCb(this.RenderQueueCb); + } + } + + private void RenderQueueCb(int rq) + { + bool flag = this.renderQueue != rq; + if (flag) + { + this.renderQueue = rq; + bool flag2 = this._equip != null; + if (flag2) + { + this._equip.SetRenderQueue(this.renderQueue); + } + else + { + bool flag3 = this._xobject != null; + if (flag3) + { + this._xobject.CallCommand(XDummy._setRenderQueueCb, this, -1, false); + } + } + } + } + + public bool IsMainDummy() + { + return this._mainDummy; + } + + public void SetOutlook(XOutlookData outlookData) + { + bool flag = this._equip != null && outlookData != null; + if (flag) + { + this._equip.IsUIAvatar = outlookData.uiAvatar; + this._equip.SetEnhanceMaster(outlookData.enhanceMasterLevel); + this._equip.SetSuitFx(outlookData.suitEffectID); + this._equip.EquipFromVisibleList(outlookData.OutlookList, outlookData.hairColorID, outlookData.suitEffectID); + this._equip.SpriteFromData(outlookData.sprite); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XDummy.cs.meta b/Client/Assets/Scripts/XMainClient/XDummy.cs.meta new file mode 100644 index 00000000..5d31bb04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XDummy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6673001ae0e7eb9488d3a2c287bf6a54 +timeCreated: 1611403854 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XElite.cs b/Client/Assets/Scripts/XMainClient/XElite.cs new file mode 100644 index 00000000..0f805247 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XElite.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal sealed class XElite : XOpposer + { + public override bool Initilize(int flag) + { + base.Initilize(flag); + this._eEntity_Type |= XEntity.EnitityType.Entity_Elite; + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XElite.cs.meta b/Client/Assets/Scripts/XMainClient/XElite.cs.meta new file mode 100644 index 00000000..36d02e93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XElite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8df1780c8e8c82c42b019a87cf9fef6a +timeCreated: 1611404106 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEmbleAttrView.cs b/Client/Assets/Scripts/XMainClient/XEmbleAttrView.cs new file mode 100644 index 00000000..39ea838b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmbleAttrView.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEmbleAttrView : XAttrCommonHandler where T : XAttrCommonFile, new() + { + private List m_ShowAttriDataLst; + + public void SetBaseData(XBodyBag equipments) + { + this.SetShowData(equipments); + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshData(); + } + } + + public void SetBaseData(List lst) + { + this.SetShowData(lst); + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshData(); + } + } + + public override void SetData() + { + base.SetData(); + bool flag = this.m_ShowAttriDataLst == null; + if (!flag) + { + List list = new List(); + List list2 = new List(); + List list3 = new List(); + this.GetData(ref list, ref list2, ref list3); + XAttrData xattrData = base._FetchAttrData(); + xattrData.Type = AttriDataType.Attri; + xattrData.Title = XStringDefineProxy.GetString("EmblemAttriTittle"); + bool flag2 = list.Count == 0 && list2.Count == 0; + if (flag2) + { + xattrData.StrEmpty = XStringDefineProxy.GetString("EmblemAttriDes"); + } + else + { + for (int i = 0; i < list.Count; i++) + { + xattrData.Left.Add(list[i].Name); + xattrData.Right.Add(list[i].NumStr); + } + for (int j = 0; j < list2.Count; j++) + { + xattrData.Left.Add(list2[j].Name); + xattrData.Right.Add(list2[j].NumStr); + } + } + xattrData = base._FetchAttrData(); + xattrData.Title = XStringDefineProxy.GetString("EmblemSkillTittle"); + xattrData.Type = AttriDataType.Skill; + bool flag3 = list3.Count == 0; + if (flag3) + { + xattrData.StrEmpty = XStringDefineProxy.GetString("EmblemSkillDes"); + } + else + { + for (int k = 0; k < list3.Count; k++) + { + xattrData.Left.Add(list3[k].NeedLevelStr); + xattrData.Right.Add(list3[k].SkillDes); + } + } + } + } + + private void GetData(ref List lst1, ref List lst2, ref List lst3) + { + for (int i = 0; i < this.m_ShowAttriDataLst.Count; i++) + { + bool flag = this.m_ShowAttriDataLst[i].TypeID == 1u; + if (flag) + { + lst1.Add(this.m_ShowAttriDataLst[i]); + } + else + { + bool flag2 = this.m_ShowAttriDataLst[i].TypeID == 2u; + if (flag2) + { + lst2.Add(this.m_ShowAttriDataLst[i]); + } + else + { + bool flag3 = this.m_ShowAttriDataLst[i].TypeID == 3u; + if (flag3) + { + lst3.Add(this.m_ShowAttriDataLst[i]); + } + } + } + } + } + + private void SetShowData(XBodyBag equipments) + { + this.m_ShowAttriDataLst = new List(); + int num = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_START); + int num2 = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_END); + for (int i = num; i < num2; i++) + { + bool flag = equipments[i] == null || equipments[i].itemID == 0 || (ulong)equipments[i].type != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM)); + if (!flag) + { + XEmblemItem xemblemItem = equipments[i] as XEmblemItem; + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(xemblemItem.itemID); + bool flag2 = emblemConf != null; + if (flag2) + { + bool flag3 = emblemConf.EmblemType > 1000; + if (flag3) + { + ShowAttriData showAttriData = new ShowAttriData(emblemConf); + this.m_ShowAttriDataLst.Add(showAttriData); + } + else + { + XAttrItem xattrItem = equipments[i] as XAttrItem; + for (int j = 0; j < xattrItem.changeAttr.Count; j++) + { + ShowAttriData showAttriData = this.FindTheSameAttri(xattrItem.changeAttr[j].AttrID); + bool flag4 = showAttriData == null; + if (flag4) + { + showAttriData = new ShowAttriData((uint)equipments[i].itemID, xattrItem.changeAttr[j]); + this.m_ShowAttriDataLst.Add(showAttriData); + } + else + { + showAttriData.Add(xattrItem.changeAttr[j].AttrValue); + } + } + } + } + } + } + } + + private void SetShowData(List lst) + { + bool flag = lst == null; + if (!flag) + { + this.m_ShowAttriDataLst = new List(); + XItemChangeAttr xitemChangeAttr = default(XItemChangeAttr); + for (int i = 0; i < lst.Count; i++) + { + bool flag2 = lst[i] == null || lst[i].ItemID == 0u || (ulong)lst[i].ItemType != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM)); + if (!flag2) + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf((int)lst[i].ItemID); + bool flag3 = emblemConf != null; + if (flag3) + { + bool flag4 = emblemConf.EmblemType > 1000; + if (flag4) + { + ShowAttriData showAttriData = new ShowAttriData(emblemConf); + this.m_ShowAttriDataLst.Add(showAttriData); + } + else + { + for (int j = 0; j < lst[i].AttrID.Count; j++) + { + xitemChangeAttr.AttrID = lst[i].AttrID[j]; + xitemChangeAttr.AttrValue = lst[i].AttrValue[j]; + ShowAttriData showAttriData = this.FindTheSameAttri(lst[i].AttrID[j]); + bool flag5 = showAttriData == null; + if (flag5) + { + showAttriData = new ShowAttriData(lst[i].ItemID, xitemChangeAttr); + this.m_ShowAttriDataLst.Add(showAttriData); + } + else + { + showAttriData.Add(xitemChangeAttr.AttrValue); + } + } + } + } + } + } + } + } + + private ShowAttriData FindTheSameAttri(uint nameId) + { + for (int i = 0; i < this.m_ShowAttriDataLst.Count; i++) + { + bool flag = this.m_ShowAttriDataLst[i].NameId == nameId; + if (flag) + { + return this.m_ShowAttriDataLst[i]; + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEmbleAttrView.cs.meta b/Client/Assets/Scripts/XMainClient/XEmbleAttrView.cs.meta new file mode 100644 index 00000000..b23ce4de --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmbleAttrView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e0d82f74cf085f145aa031bf2f56740f +timeCreated: 1611404699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEmblemDocument.cs b/Client/Assets/Scripts/XMainClient/XEmblemDocument.cs new file mode 100644 index 00000000..e3de8afa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmblemDocument.cs @@ -0,0 +1,1042 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEmblemDocument : XDocComponent + { + public override uint ID + { + get + { + return XEmblemDocument.uuID; + } + } + + public EmblemSlotStatus[] EquipLock + { + get + { + bool flag = this.m_equipLock == null; + if (flag) + { + this.m_equipLock = new EmblemSlotStatus[XEmblemDocument.Position_TotalEnd - XEmblemDocument.Position_TotalStart]; + for (int i = XEmblemDocument.Position_TotalStart; i < XEmblemDocument.Position_TotalEnd; i++) + { + this.m_equipLock[i] = new EmblemSlotStatus(i); + } + } + return this.m_equipLock; + } + } + + public bool bCanBePowerful + { + get + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Char_Emblem) & this._bCanBePowerful; + } + set + { + this._bCanBePowerful = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Char_Emblem, true); + } + } + + public XNewItemTipsMgr NewItems + { + get + { + return this._NewItems; + } + } + + public bool IsEquipEmblem + { + get + { + XBodyBag emblemBag = XSingleton.singleton.Doc.XBagDoc.EmblemBag; + for (int i = 0; i < emblemBag.Length; i++) + { + bool flag = emblemBag[i] != null && emblemBag[i].itemID != 0 && (ulong)emblemBag[i].type == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM)); + if (flag) + { + return true; + } + } + return false; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("EmblemDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static int Position_AttrStart = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_START); + + public static int Position_AttrEnd = XBagDocument.BodyPosition(EmblemPosition.EMBLEMIX); + + public static int Position_SkillStart = XBagDocument.BodyPosition(EmblemPosition.EMBLEMIX); + + public static int Position_SkillEnd = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_END); + + public static int Position_NoPaySkillStart = XBagDocument.BodyPosition(EmblemPosition.EMBLEMIX); + + public static int Position_NoPaySkillEnd = XBagDocument.BodyPosition(EmblemPosition.EMBLEMXIII); + + public static int Position_PaySkillStart = XBagDocument.BodyPosition(EmblemPosition.EMBLEMXIII); + + public static int Position_PaySkillEnd = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_END); + + public static int Position_TotalStart = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_START); + + public static int Position_TotalEnd = XBagDocument.BodyPosition(EmblemPosition.EMBLEM_END); + + public EmblemBagView _BagHandler = null; + + public EmblemEquipView _EquipHandler = null; + + private static SkillEmblem _emblemSkillReader = new SkillEmblem(); + + private static string emblemSkillAttrFmt = ""; + + private List[] _emblemLevels = new List[6]; + + private List m_needMoneyList = new List(); + + private EmblemSlotStatus[] m_equipLock; + + public List emblemSlotUnlockLevel = new List(); + + public static int Level_Count = 0; + + public HashSet selectedItems = new HashSet(); + + public uint selectedItemsTotalExp = 0u; + + public ulong currentEmblemUID = 0UL; + + private bool _bCanBePowerful = false; + + private bool _bShouldUpdateRedPoints = false; + + private XNewItemTipsMgr _NewItems = new XNewItemTipsMgr(); + + private List m_ItemList = new List(); + + public static int HadSlottingNum = 0; + + private List ShowAttriDataLst; + + public static bool isFullLevel(uint level) + { + return (ulong)level >= (ulong)((long)(XEmblemDocument.Level_Count - 1)); + } + + public static string GetDisplayLevel(uint level) + { + bool flag = XEmblemDocument.isFullLevel(level); + string result; + if (flag) + { + result = "MAX"; + } + else + { + result = (level + 1u).ToString(); + } + return result; + } + + public static SkillEmblem.RowData GetEmblemSkillConf(uint dwItemId) + { + return XEmblemDocument._emblemSkillReader.GetByEmblemID(dwItemId); + } + + public static string GetEmblemSkillAttrString(uint dwItemId) + { + bool flag = string.IsNullOrEmpty(XEmblemDocument.emblemSkillAttrFmt); + if (flag) + { + XEmblemDocument.emblemSkillAttrFmt = XStringDefineProxy.GetString("TOOLTIP_EMBLEM_IDENTIFY_SKILL_FMT"); + } + SkillEmblem.RowData byEmblemID = XEmblemDocument._emblemSkillReader.GetByEmblemID(dwItemId); + bool flag2 = byEmblemID != null; + string result; + if (flag2) + { + result = string.Format(XEmblemDocument.emblemSkillAttrFmt, byEmblemID.SkillScript, XStringDefineProxy.GetString("TOOLTIP_EMBLEM_IDENTIFY_SKILL_" + byEmblemID.SkillType), byEmblemID.SkillPercent); + } + else + { + result = string.Empty; + } + return result; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XEmblemDocument.AsyncLoader.AddTask("Table/SkillEmblem", XEmblemDocument._emblemSkillReader, false); + XEmblemDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.emblemSlotUnlockLevel.Clear(); + string[] array = XSingleton.singleton.GetValue("AttributeEmblemSlotLevelLimit").Split(XGlobalConfig.ListSeparator); + int num = 0; + while (num < array.Length && num < XEmblemDocument.Position_AttrEnd) + { + this.emblemSlotUnlockLevel.Add(uint.Parse(array[num])); + num++; + } + array = XSingleton.singleton.GetValue("SkillEmblemSlotLevelLimit").Split(XGlobalConfig.ListSeparator); + int num2 = 0; + while (num2 < array.Length && num2 < XEmblemDocument.Position_NoPaySkillEnd - XEmblemDocument.Position_NoPaySkillStart + 1) + { + this.emblemSlotUnlockLevel.Add(uint.Parse(array[num2])); + num2++; + } + array = XSingleton.singleton.GetValue("ExtraSkillEmblemSlotLevelLimit").Split(XGlobalConfig.ListSeparator); + int num3 = 0; + while (num3 < array.Length && num3 < XEmblemDocument.Position_PaySkillEnd - XEmblemDocument.Position_PaySkillStart + 1) + { + this.emblemSlotUnlockLevel.Add(uint.Parse(array[num3])); + num3++; + } + array = XSingleton.singleton.GetValue("ExtraSkillEmblemSlotDragonCoin").Split(XGlobalConfig.ListSeparator); + int num4 = 0; + while (num4 < array.Length && num4 < XEmblemDocument.Position_PaySkillEnd - XEmblemDocument.Position_PaySkillStart + 1) + { + this.m_needMoneyList.Add(int.Parse(array[num4])); + num4++; + } + this._NewItems.ClearItemType(); + this._NewItems.Filter.AddItemType(ItemType.EMBLEM); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_LoadEquip, new XComponent.XEventHandler(this.OnLoadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_SwapItem, new XComponent.XEventHandler(this.OnSwapItem)); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnItemChangedFinished)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public int SlottingNeedMoney(int slot) + { + int num = slot - XEmblemDocument.Position_PaySkillStart; + bool flag = num < 0 || num >= this.m_needMoneyList.Count; + int result; + if (flag) + { + result = 0; + } + else + { + result = this.m_needMoneyList[num]; + } + return result; + } + + public int IsCanSlotting(int slot) + { + bool flag = XEmblemDocument.HadSlottingNum >= XEmblemDocument.Position_PaySkillEnd - XEmblemDocument.Position_PaySkillStart; + int result; + if (flag) + { + result = 2; + } + else + { + int num = slot - XEmblemDocument.Position_PaySkillStart + 1; + bool flag2 = num == 1; + if (flag2) + { + result = 0; + } + else + { + bool flag3 = num == XEmblemDocument.HadSlottingNum + 1; + if (flag3) + { + result = 0; + } + else + { + result = 1; + } + } + } + return result; + } + + public void ReqEmbleSlotting(ulong slot) + { + RpcC2G_BuyExtraSkillEmblemSlot rpc = new RpcC2G_BuyExtraSkillEmblemSlot(); + XSingleton.singleton.Send(rpc); + } + + public void OnEmbleSlottingBack(BuyExtraSkillEmblemSlotRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XEmblemDocument.HadSlottingNum = (int)oRes.extraSkillEmblemSlot; + bool flag3 = this._EquipHandler != null && this._EquipHandler.IsVisible(); + if (flag3) + { + this._EquipHandler.ShowEquipments(); + this._EquipHandler.PlayBuySlotFx(XEmblemDocument.HadSlottingNum + XEmblemDocument.Position_PaySkillStart - 1); + } + } + } + } + + public void InitWhenCreateRole(uint playerLevel) + { + this.UpdateEquipLockState(playerLevel); + this.UpdateEquipSlottingState(); + this.UpdateRedPoints(playerLevel); + } + + public void UpdateEquipLockState(uint playerLevel) + { + for (int i = XEmblemDocument.Position_TotalStart; i < XEmblemDocument.Position_TotalEnd; i++) + { + bool flag = playerLevel >= this.emblemSlotUnlockLevel[i]; + if (flag) + { + this.EquipLock[i].LevelIsdOpen = true; + } + else + { + this.EquipLock[i].LevelIsdOpen = false; + } + } + } + + public void UpdateEquipSlottingState() + { + for (int i = XEmblemDocument.Position_TotalStart; i < XEmblemDocument.Position_NoPaySkillEnd; i++) + { + this.EquipLock[i].HadSlotting = true; + } + for (int j = XEmblemDocument.Position_PaySkillStart; j < XEmblemDocument.Position_PaySkillEnd; j++) + { + int num = j - XEmblemDocument.Position_PaySkillStart; + bool flag = XEmblemDocument.HadSlottingNum > num; + if (flag) + { + this.EquipLock[j].HadSlotting = true; + } + else + { + this.EquipLock[j].HadSlotting = false; + } + } + } + + public List GetEmblemItems() + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM); + this.m_ItemList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.m_ItemList); + bool flag = this.currentEmblemUID > 0UL; + if (flag) + { + foreach (XItem xitem in this.m_ItemList) + { + bool flag2 = this.currentEmblemUID == xitem.uid; + if (flag2) + { + this.m_ItemList.Remove(xitem); + break; + } + } + } + return this.m_ItemList; + } + + public bool IsEquipThisSkillEmblem(uint skillHash, ref List row) + { + row.Clear(); + XBodyBag emblemBag = XBagDocument.BagDoc.EmblemBag; + bool flag = emblemBag == null; + bool result; + if (flag) + { + result = false; + } + else + { + int i = XEmblemDocument.Position_SkillStart; + while (i < XEmblemDocument.Position_SkillEnd) + { + bool flag2 = emblemBag[i] != null && emblemBag[i].uid > 0UL; + if (flag2) + { + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)emblemBag[i].itemID); + bool flag3 = emblemSkillConf == null; + if (!flag3) + { + uint skillID = XSingleton.singleton.GetSkillID(emblemSkillConf.SkillName, 0u); + bool flag4 = skillID == skillHash; + if (flag4) + { + row.Add(emblemSkillConf); + } + bool flag5 = emblemSkillConf.ExSkillScript != string.Empty; + if (flag5) + { + skillID = XSingleton.singleton.GetSkillID(emblemSkillConf.ExSkillScript, 0u); + bool flag6 = skillID == skillHash; + if (flag6) + { + bool flag7 = !row.Contains(emblemSkillConf); + if (flag7) + { + row.Add(emblemSkillConf); + } + } + } + } + } + IL_F2: + i++; + continue; + goto IL_F2; + } + result = (row.Count > 0); + } + return result; + } + + public List AttriDataList() + { + this.ShowAttriDataLst = new List(); + XBodyBag emblemBag = XSingleton.singleton.Doc.XBagDoc.EmblemBag; + for (int i = XEmblemDocument.Position_TotalStart; i < XEmblemDocument.Position_TotalEnd; i++) + { + bool flag = emblemBag[i] == null || emblemBag[i].itemID == 0 || emblemBag[i].Type != ItemType.EMBLEM; + if (!flag) + { + XEmblemItem xemblemItem = emblemBag[i] as XEmblemItem; + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(xemblemItem.itemID); + bool flag2 = emblemConf != null; + if (flag2) + { + bool flag3 = XEmblemDocument.IsSkillEmblem(emblemConf.EmblemType); + if (flag3) + { + ShowAttriData showAttriData = new ShowAttriData(emblemConf); + this.ShowAttriDataLst.Add(showAttriData); + } + else + { + XAttrItem xattrItem = emblemBag[i] as XAttrItem; + for (int j = 0; j < xattrItem.changeAttr.Count; j++) + { + ShowAttriData showAttriData = this.FindTheSameAttri(xattrItem.changeAttr[j].AttrID); + bool flag4 = showAttriData == null; + if (flag4) + { + showAttriData = new ShowAttriData((uint)emblemBag[i].itemID, xattrItem.changeAttr[j]); + this.ShowAttriDataLst.Add(showAttriData); + } + else + { + showAttriData.Add(xattrItem.changeAttr[j].AttrValue); + } + } + } + } + } + } + return this.ShowAttriDataLst; + } + + public ShowAttriData FindTheSameAttri(uint nameId) + { + for (int i = 0; i < this.ShowAttriDataLst.Count; i++) + { + bool flag = this.ShowAttriDataLst[i].NameId == nameId; + if (flag) + { + return this.ShowAttriDataLst[i]; + } + } + return null; + } + + public void RefreshBag() + { + bool flag = this._BagHandler != null && this._BagHandler.IsVisible(); + if (flag) + { + this._BagHandler.Refresh(); + } + } + + public void ShowIdentifySucEffect() + { + bool flag = this._BagHandler != null && this._BagHandler.IsVisible(); + if (flag) + { + this._BagHandler.ShowEmblemIdentifyEffect(); + } + } + + public bool OnLoadEquip(XEventArgs args) + { + bool flag = this._EquipHandler == null || !this._EquipHandler.active; + bool result; + if (flag) + { + result = false; + } + else + { + XLoadEquipEventArgs xloadEquipEventArgs = args as XLoadEquipEventArgs; + DlgBase.singleton.HideToolTip(true); + this._bShouldUpdateRedPoints = true; + this._EquipHandler.SetSlot(xloadEquipEventArgs.slot, xloadEquipEventArgs.item, null); + result = true; + } + return result; + } + + public bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + bool flag = this._BagHandler == null || !this._BagHandler.active; + bool result; + if (flag) + { + bool bNew = xaddItemEventArgs.bNew; + if (bNew) + { + this._bShouldUpdateRedPoints = (this._NewItems.AddItems(xaddItemEventArgs.items, false) || this._bShouldUpdateRedPoints); + } + result = false; + } + else + { + this._BagHandler.OnAddItem(); + result = true; + } + return result; + } + + public bool OnUnloadEquip(XEventArgs args) + { + bool flag = this._EquipHandler == null || !this._EquipHandler.active; + bool result; + if (flag) + { + result = false; + } + else + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + DlgBase.singleton.HideToolTip(true); + this._bShouldUpdateRedPoints = true; + this._EquipHandler.SetSlot(xunloadEquipEventArgs.slot, null, null); + result = true; + } + return result; + } + + public bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + this._bShouldUpdateRedPoints = (this._NewItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, true) || this._bShouldUpdateRedPoints); + bool flag = this._BagHandler == null || !this._BagHandler.active; + bool result; + if (flag) + { + result = false; + } + else + { + this._BagHandler.OnRemoveItem(); + foreach (ulong num in xremoveItemEventArgs.uids) + { + bool flag2 = num == DlgBase.singleton.MainItemUID; + if (flag2) + { + DlgBase.singleton.HideToolTip(false); + break; + } + } + result = true; + } + return result; + } + + public bool OnItemNumChanged(XEventArgs args) + { + bool flag = this._BagHandler == null || !this._BagHandler.active; + bool result; + if (flag) + { + result = false; + } + else + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + this._BagHandler.OnItemCountChanged(xitemNumChangedEventArgs.item); + result = true; + } + return result; + } + + public bool OnSwapItem(XEventArgs args) + { + bool flag = this._EquipHandler == null || !this._EquipHandler.active || this._BagHandler == null || !this._BagHandler.active; + bool result; + if (flag) + { + result = false; + } + else + { + XSwapItemEventArgs xswapItemEventArgs = args as XSwapItemEventArgs; + this._NewItems.RemoveItem(xswapItemEventArgs.itemNowOnBody.uid, xswapItemEventArgs.itemNowOnBody.Type, false); + DlgBase.singleton.HideToolTip(true); + this._EquipHandler.SetSlot(xswapItemEventArgs.slot, xswapItemEventArgs.itemNowOnBody, null); + this._BagHandler.OnSwapItem(xswapItemEventArgs.itemNowOnBody, xswapItemEventArgs.itemNowInBag, xswapItemEventArgs.slot); + this._bShouldUpdateRedPoints = true; + result = true; + } + return result; + } + + public bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + XItem item = xupdateItemEventArgs.item; + bool flag = item.Type != ItemType.EMBLEM; + bool result; + if (flag) + { + result = false; + } + else + { + this._bShouldUpdateRedPoints = true; + bool flag2 = this._EquipHandler == null || !this._EquipHandler.active || this._BagHandler == null || !this._BagHandler.active; + if (flag2) + { + result = false; + } + else + { + int slot; + bool flag3 = !XSingleton.singleton.Doc.XBagDoc.EmblemBag.GetItemPos(item.uid, out slot); + if (flag3) + { + this._BagHandler.OnUpdateItem(item); + } + else + { + this._EquipHandler.SetSlot(slot, item, null); + } + bool flag4 = item.uid == DlgBase.singleton.MainItemUID; + if (flag4) + { + DlgBase.singleton.HideToolTip(false); + } + result = true; + } + } + return result; + } + + public bool OnItemChangedFinished(XEventArgs args) + { + bool bShouldUpdateRedPoints = this._bShouldUpdateRedPoints; + if (bShouldUpdateRedPoints) + { + this.UpdateRedPoints(); + this._bShouldUpdateRedPoints = false; + } + return true; + } + + public bool IsEmblemMorePowerful(ulong uid) + { + return this.IsEmblemMorePowerful(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(uid) as XEmblemItem, XSingleton.singleton.XPlayerData.Level); + } + + public bool IsEmblemMorePowerful(XEmblemItem emblem, uint playerLevel) + { + bool flag = emblem == null; + bool result; + if (flag) + { + result = false; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(emblem.itemID); + bool flag2 = itemConf == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = (long)itemConf.ReqLevel > (long)((ulong)playerLevel); + if (flag3) + { + result = false; + } + else + { + bool flag4 = XBagDocument.IsProfMatched(emblem.Prof); + bool flag5 = !flag4; + if (flag5) + { + result = false; + } + else + { + XBagDocument xbagDoc = XSingleton.singleton.Doc.XBagDoc; + XEmblemItem xemblemItem = XEmblemDocument.CheckEquipedEmblemsAttrs(xbagDoc.EmblemBag, emblem) as XEmblemItem; + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(emblem.itemID); + bool flag6 = xemblemItem == null && emblemConf != null; + if (flag6) + { + int num; + bool firstEmptyEmblemSlot = XEmblemDocument.GetFirstEmptyEmblemSlot(xbagDoc.EmblemBag, emblemConf.EmblemType, out num); + bool flag7 = !firstEmptyEmblemSlot; + if (flag7) + { + result = false; + } + else + { + bool flag8 = XEmblemDocument.IsSkillEmblem(emblemConf.EmblemType); + if (flag8) + { + XSkillTreeDocument specificDocument = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)emblem.itemID); + bool flag9 = emblemSkillConf != null && emblemSkillConf.SkillPPT > 0u; + if (flag9) + { + List skillNames = new List + { + emblemSkillConf.SkillName, + emblemSkillConf.ExSkillScript + }; + result = specificDocument.IsEquipThisSkill(skillNames); + } + else + { + result = false; + } + } + else + { + result = (xbagDoc.GetItemPPT(emblem, ItemAttrCompareType.IACT_SELF) > 0u); + } + } + } + else + { + bool flag10 = emblemConf != null && XEmblemDocument.IsSkillEmblem(emblemConf.EmblemType); + if (flag10) + { + SkillEmblem.RowData emblemSkillConf2 = XEmblemDocument.GetEmblemSkillConf((uint)emblem.itemID); + SkillEmblem.RowData emblemSkillConf3 = XEmblemDocument.GetEmblemSkillConf((uint)xemblemItem.itemID); + bool flag11 = emblemSkillConf2 != null && emblemSkillConf3 != null; + if (flag11) + { + XSkillTreeDocument specificDocument2 = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + List list = new List + { + emblemSkillConf2.SkillName, + emblemSkillConf2.ExSkillScript + }; + bool flag12 = specificDocument2.IsEquipThisSkill(list); + list.Clear(); + list.Add(emblemSkillConf3.SkillName); + list.Add(emblemSkillConf3.ExSkillScript); + bool flag13 = specificDocument2.IsEquipThisSkill(list); + bool flag14 = flag12; + if (flag14) + { + bool flag15 = flag13; + result = (!flag15 || emblemSkillConf2.SkillPPT > emblemSkillConf3.SkillPPT); + } + else + { + result = false; + } + } + else + { + XSingleton.singleton.AddErrorLog("skillRowData == null || equipedSkillRowData == null, id = ", emblem.itemID.ToString(), " and ", xemblemItem.itemID.ToString(), null, null); + result = false; + } + } + else + { + result = (xbagDoc.IsAttrMorePowerful(emblem, xemblemItem, ItemAttrCompareType.IACT_SELF) == ItemAttrCompareResult.IACR_LARGER); + } + } + } + } + } + } + return result; + } + + public void UpdateRedPoints() + { + this.UpdateRedPoints(XSingleton.singleton.XPlayerData.Level); + } + + public void UpdateRedPoints(uint playerLevel) + { + this._bCanBePowerful = false; + List emblemItems = this.GetEmblemItems(); + for (int i = 0; i < emblemItems.Count; i++) + { + XEmblemItem xemblemItem = emblemItems[i] as XEmblemItem; + bool flag = xemblemItem == null; + if (!flag) + { + bool flag2 = this.IsEmblemMorePowerful(xemblemItem, playerLevel); + bool flag3 = flag2; + if (flag3) + { + this.bCanBePowerful = true; + break; + } + } + } + bool flag4 = !this._bCanBePowerful; + if (flag4) + { + this.bCanBePowerful = false; + } + } + + public void RefreshTips(ulong uid) + { + bool flag = this._BagHandler != null && this._BagHandler.IsVisible(); + if (flag) + { + this._BagHandler.RefreshTips(uid); + } + } + + public static bool GetFirstEmptyEmblemSlot(XBodyBag bag, short emblemType, out int pos) + { + XEmblemDocument specificDocument = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + EmblemSlotStatus[] equipLock = specificDocument.EquipLock; + bool flag = !XEmblemDocument.IsSkillEmblem(emblemType); + int num; + int num2; + if (flag) + { + num = XEmblemDocument.Position_AttrStart; + num2 = XEmblemDocument.Position_AttrEnd; + } + else + { + num = XEmblemDocument.Position_SkillStart; + num2 = XEmblemDocument.Position_PaySkillEnd; + } + for (int i = num; i < num2; i++) + { + bool flag2 = !equipLock[i - XEmblemDocument.Position_TotalStart].IsLock && (bag[i] == null || bag[i].uid == 0UL); + if (flag2) + { + pos = i; + return true; + } + } + pos = XEmblemDocument.Position_TotalEnd; + return false; + } + + public static XItem CheckEquipedEmblemsAttrs(XBodyBag bag, XItem newItem) + { + XEmblemItem xemblemItem = newItem as XEmblemItem; + bool flag = xemblemItem == null; + XItem result; + if (flag) + { + result = null; + } + else + { + bool flag2 = xemblemItem.changeAttr.Count > 0; + if (flag2) + { + XItemChangeAttr xitemChangeAttr = xemblemItem.changeAttr[0]; + int i = XEmblemDocument.Position_TotalStart; + while (i < XEmblemDocument.Position_TotalEnd) + { + bool flag3 = bag[i] != null && bag[i].uid > 0UL; + if (flag3) + { + XEmblemItem xemblemItem2 = bag[i] as XEmblemItem; + bool flag4 = xemblemItem2 == null || xemblemItem2.changeAttr.Count == 0; + if (!flag4) + { + XItemChangeAttr xitemChangeAttr2 = xemblemItem2.changeAttr[0]; + bool flag5 = xitemChangeAttr2.AttrID == xitemChangeAttr.AttrID; + if (flag5) + { + return xemblemItem2; + } + } + } + IL_C9: + i++; + continue; + goto IL_C9; + } + } + else + { + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)xemblemItem.itemID); + bool flag6 = emblemSkillConf != null; + if (flag6) + { + for (int j = XEmblemDocument.Position_TotalStart; j < XEmblemDocument.Position_TotalEnd; j++) + { + bool flag7 = bag[j] != null && bag[j].uid > 0UL; + if (flag7) + { + XEmblemItem xemblemItem3 = bag[j] as XEmblemItem; + bool flag8 = xemblemItem3 != null; + if (flag8) + { + SkillEmblem.RowData emblemSkillConf2 = XEmblemDocument.GetEmblemSkillConf((uint)xemblemItem3.itemID); + bool flag9 = emblemSkillConf2 != null; + if (flag9) + { + bool flag10 = emblemSkillConf2.SkillScript == emblemSkillConf.SkillScript; + if (flag10) + { + return xemblemItem3; + } + } + } + } + } + } + } + result = null; + } + return result; + } + + public static float GetSkillCDRatio(XBodyBag EmblemBag, uint skillID) + { + return XEmblemDocument.GetSkillEffectRatio(EmblemBag, skillID, 2u); + } + + public static float GetSkillDamageRatio(XBodyBag EmblemBag, uint skillID) + { + return XEmblemDocument.GetSkillEffectRatio(EmblemBag, skillID, 1u); + } + + public static float GetSkillEffectRatio(XBodyBag EmblemBag, uint skillID, uint type) + { + bool flag = EmblemBag == null || !XSingleton.singleton.IsSkillEmblemEnabled() || skillID == 0u; + float result; + if (flag) + { + result = 0f; + } + else + { + float num = 0f; + int i = XEmblemDocument.Position_SkillStart; + while (i < XEmblemDocument.Position_SkillEnd) + { + bool flag2 = EmblemBag[i] != null && EmblemBag[i].uid > 0UL; + if (flag2) + { + SkillEmblem.RowData byEmblemID = XEmblemDocument._emblemSkillReader.GetByEmblemID((uint)EmblemBag[i].itemID); + bool flag3 = byEmblemID != null && (uint)byEmblemID.SkillType == type; + if (flag3) + { + uint num2 = XSingleton.singleton.XHash(byEmblemID.SkillName); + bool flag4 = num2 != skillID; + if (flag4) + { + uint num3 = XSingleton.singleton.XHash(byEmblemID.ExSkillScript); + bool flag5 = num3 != skillID; + if (flag5) + { + goto IL_102; + } + } + num = (float)byEmblemID.SkillPercent / 100f; + bool flag6 = byEmblemID.SkillType != 1; + if (flag6) + { + num = -num; + } + return num; + } + } + IL_102: + i++; + continue; + goto IL_102; + } + result = num; + } + return result; + } + + public static bool IsSkillEmblem(short type) + { + return type > 1000; + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + XPlayerLevelChangedEventArgs xplayerLevelChangedEventArgs = arg as XPlayerLevelChangedEventArgs; + this.UpdateEquipLockState(xplayerLevelChangedEventArgs.level); + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.InitWhenCreateRole(arg.PlayerInfo.Brief.level); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEmblemDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XEmblemDocument.cs.meta new file mode 100644 index 00000000..588c00f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmblemDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91db7a1dc833f96488a090acf942965c +timeCreated: 1611404144 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEmblemInfo.cs b/Client/Assets/Scripts/XMainClient/XEmblemInfo.cs new file mode 100644 index 00000000..ec819418 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmblemInfo.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal struct XEmblemInfo + { + public uint level; + + public uint thirdslot; + + public void Init() + { + this.level = 0u; + this.thirdslot = 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEmblemInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XEmblemInfo.cs.meta new file mode 100644 index 00000000..1511f4b3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmblemInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b41db1503acf87346bfde60fd7cbd097 +timeCreated: 1611404391 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEmblemItem.cs b/Client/Assets/Scripts/XMainClient/XEmblemItem.cs new file mode 100644 index 00000000..79339b7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmblemItem.cs @@ -0,0 +1,114 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEmblemItem : XAttrItem + { + public bool bIsSkillEmblem + { + get + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(this.itemID); + bool flag = emblemConf == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("EmblemBasic not find this itemid = {0}", this.itemID), null, null, null, null, null); + result = false; + } + else + { + result = (emblemConf.EmblemType > 1000); + } + return result; + } + } + + public override bool Treasure + { + get + { + return this.smeltingInfo.Attrs.Count > 2 || this.emblemInfo.thirdslot > 0u; + } + } + + public override bool bHasPPT + { + get + { + return true; + } + } + + public XEmblemInfo emblemInfo = default(XEmblemInfo); + + public XSmeltingInfo smeltingInfo = default(XSmeltingInfo); + + public override void Init() + { + base.Init(); + this.smeltingInfo.Init(); + this.emblemInfo.Init(); + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + + public override string ToPPTString(XAttributes attributes = null) + { + string result = string.Empty; + bool bIsSkillEmblem = this.bIsSkillEmblem; + if (bIsSkillEmblem) + { + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)this.itemID); + bool flag = emblemSkillConf == null; + if (flag) + { + result = "SKILL EMBLEM."; + } + else + { + result = emblemSkillConf.SkillPPT.ToString(); + } + } + else + { + bool flag2 = this.emblemInfo.thirdslot == 1u || this.emblemInfo.thirdslot == 10u; + if (flag2) + { + int num; + int endIndex; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)this.itemID, out num, out endIndex); + bool flag3 = num >= 0; + if (flag3) + { + bool flag4 = this.emblemInfo.thirdslot == 1u; + uint num2; + uint num3; + if (flag4) + { + uint ppt = this.GetPPT(attributes); + XEquipCreateDocument.GetRandomPPT(num, endIndex, out num2, out num3); + num2 += ppt; + num3 += ppt; + } + else + { + XEquipCreateDocument.GetPPT(num, endIndex, true, true, out num2, out num3); + } + result = string.Format("{0} - {1}", num2, num3); + } + } + else + { + result = this.GetPPT(attributes).ToString(); + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEmblemItem.cs.meta b/Client/Assets/Scripts/XMainClient/XEmblemItem.cs.meta new file mode 100644 index 00000000..2933eab8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmblemItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00eafa167b480e745a27aa4760fd0eca +timeCreated: 1611402952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEmblemItemDrawer.cs b/Client/Assets/Scripts/XMainClient/XEmblemItemDrawer.cs new file mode 100644 index 00000000..887a111a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmblemItemDrawer.cs @@ -0,0 +1,45 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XEmblemItemDrawer : XItemDrawer + { + public override void DrawItem(GameObject go, XItem realItem, bool bForceShowNum = false) + { + this._GetUI(go); + bool flag = realItem == null; + if (flag) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + base._GetItemData(realItem.itemID); + this._SetupIcon(); + this._SetupAttrIcon(null); + this._SetupName(realItem); + this._SetupNum(realItem); + this._SetupNumTop(realItem); + this.SetCorner(realItem); + this._ClearVariables(); + } + } + + private void SetCorner(XItem realItem) + { + bool flag = realItem == null; + if (!flag) + { + XEmblemItem xemblemItem = realItem as XEmblemItem; + base._SetupLeftDownCorner(base._GetBindingState(realItem)); + base._SetupLeftUpCorner(xemblemItem.emblemInfo.thirdslot == 2u && !xemblemItem.bIsSkillEmblem, ""); + base._SetupRightDownCorner(xemblemItem.emblemInfo.thirdslot == 1u && !xemblemItem.bIsSkillEmblem); + base._SetupRightUpCorner(realItem.Type == ItemType.FRAGMENT); + base._SetUpProf(false); + base._SetupMask(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEmblemItemDrawer.cs.meta b/Client/Assets/Scripts/XMainClient/XEmblemItemDrawer.cs.meta new file mode 100644 index 00000000..0239f3f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmblemItemDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eff674e047a66cc4a837e1ed1e9bf899 +timeCreated: 1611404806 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEmpty.cs b/Client/Assets/Scripts/XMainClient/XEmpty.cs new file mode 100644 index 00000000..5d2aa5bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmpty.cs @@ -0,0 +1,46 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XEmpty : XEntity + { + public override ulong ID + { + get + { + return this._id; + } + } + + public override string Prefab + { + get + { + return "empty"; + } + } + + private ulong _id = 0UL; + + public bool Initilize(XGameObject o) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Empty; + this._xobject = o; + this._xobject.Name = this.ID.ToString(); + this.EngineObject.Position = Vector3.zero; + this.EngineObject.Rotation = Quaternion.identity; + return true; + } + + public override void OnCreated() + { + } + + public override void Uninitilize() + { + base.Uninitilize(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEmpty.cs.meta b/Client/Assets/Scripts/XMainClient/XEmpty.cs.meta new file mode 100644 index 00000000..8aaf5e9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEmpty.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a91595cb8e9562f4f9291f8bb8bc9668 +timeCreated: 1611404297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEnchantDocument.cs b/Client/Assets/Scripts/XMainClient/XEnchantDocument.cs new file mode 100644 index 00000000..4d12d475 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnchantDocument.cs @@ -0,0 +1,856 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEnchantDocument : XDocComponent + { + public override uint ID + { + get + { + return XEnchantDocument.uuID; + } + } + + public ulong SelectedEquipUID + { + get + { + return this.m_SelectedEquip; + } + } + + public int SelectedItemID + { + get + { + return this.m_SelectedItemID; + } + } + + public List ItemList + { + get + { + return this.m_ItemList; + } + } + + public bool[] RedPointStates + { + get + { + return this.m_RedPointStates; + } + } + + public XItemChangeAttr LastEnchantAttr + { + get + { + return this._lastEnchantAttr; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("EnchantDocument"); + + public static uint EnchantMinLevel = 0u; + + public static uint[] EnchantNeedLevel; + + private static EnchantEquip _EnchantEquipTable = new EnchantEquip(); + + private static XItemFilter _ItemFilter = new XItemFilter(); + + private static Dictionary _EnchantAttrs = new Dictionary(); + + private ulong m_SelectedEquip; + + private ItemList.RowData m_SelectEquipItemConf; + + private int m_SelectedItemID = 0; + + private List m_ItemList = new List(); + + private List m_TempItemList = new List(); + + private List m_TempItemList2 = new List(); + + private EquipList.RowData[] m_TempEquipConfList = new EquipList.RowData[XBagDocument.EquipMax]; + + private XItemRequiredCollector m_TempItemRequired = new XItemRequiredCollector(); + + private bool[] m_RedPointStates = new bool[XBagDocument.EquipMax]; + + private XItemChangeAttr _lastEnchantAttr; + + private Dictionary m_TempDataDic = new Dictionary(); + + public EnchantOperateHandler _EnchantOperateHandler; + + public EnchantBagHandler _EnchantBagHandler; + + public EnchantActiveHandler _EnchantActiveHandler; + + public EnchantResultHandler _EnchantResultHandler; + + private bool _bCostDirty = false; + + private bool _bShouldUpdateRedPoint = false; + + private XEnchantInfo _preInfo = default(XEnchantInfo); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static void Execute(OnLoadedCallback callback = null) + { + XEnchantDocument.AsyncLoader.AddTask("Table/EnchantEquip", XEnchantDocument._EnchantEquipTable, false); + XEnchantDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XEnchantDocument._ItemFilter.Clear(); + XEnchantDocument._EnchantAttrs.Clear(); + for (int i = 0; i < XEnchantDocument._EnchantEquipTable.Table.Length; i++) + { + EnchantEquip.RowData rowData = XEnchantDocument._EnchantEquipTable.Table[i]; + XEnchantDocument._ItemFilter.AddItemID((int)rowData.EnchantID); + for (int j = 0; j < rowData.Cost.Count; j++) + { + XEnchantDocument._ItemFilter.AddItemID((int)rowData.Cost[j, 0]); + } + XPrefixAttributes xprefixAttributes = new XPrefixAttributes(); + XEnchantDocument._EnchantAttrs.Add(rowData.EnchantID, xprefixAttributes); + for (int k = 0; k < rowData.Attribute.Count; k++) + { + XPrefixAttribute xprefixAttribute = null; + for (int l = 0; l < xprefixAttributes.AttributeList.Count; l++) + { + bool flag = xprefixAttributes.AttributeList[l].attrid == rowData.Attribute[k, 0]; + if (flag) + { + xprefixAttribute = xprefixAttributes.AttributeList[l]; + break; + } + } + bool flag2 = xprefixAttribute == null; + if (flag2) + { + xprefixAttribute = new XPrefixAttribute(); + xprefixAttribute.attrid = rowData.Attribute[k, 0]; + xprefixAttribute.minValue = float.MaxValue; + xprefixAttributes.AttributeList.Add(xprefixAttribute); + } + xprefixAttribute.maxValue = Math.Max(xprefixAttribute.maxValue, rowData.Attribute[k, 2]); + xprefixAttribute.minValue = Math.Min(xprefixAttribute.minValue, rowData.Attribute[k, 1]); + } + } + } + + public static void InitFromGlobalConfig() + { + string[] array = XSingleton.singleton.GetValue("EnchantNeedLevel").Split(XGlobalConfig.ListSeparator); + bool flag = XEnchantDocument.EnchantNeedLevel == null || XEnchantDocument.EnchantNeedLevel.Length != array.Length + 1; + if (flag) + { + XEnchantDocument.EnchantNeedLevel = new uint[array.Length + 1]; + XEnchantDocument.EnchantNeedLevel[0] = 0u; + } + for (int i = 0; i < array.Length; i++) + { + XEnchantDocument.EnchantNeedLevel[i + 1] = uint.Parse(array[i]); + } + bool flag2 = XEnchantDocument.EnchantNeedLevel.Length > 1; + if (flag2) + { + XEnchantDocument.EnchantMinLevel = XEnchantDocument.EnchantNeedLevel[1]; + } + else + { + XEnchantDocument.EnchantMinLevel = 0u; + } + } + + public EnchantEquip.RowData GetEnchantEquipData(int itemid) + { + return XEnchantDocument._EnchantEquipTable.GetByEnchantID((uint)itemid); + } + + public XPrefixAttributes GetEnchantAttrs(uint itemid) + { + XPrefixAttributes xprefixAttributes = null; + bool flag = XEnchantDocument._EnchantAttrs.TryGetValue(itemid, out xprefixAttributes); + XPrefixAttributes result; + if (flag) + { + result = xprefixAttributes; + } + else + { + result = null; + } + return result; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_LoadEquip, new XComponent.XEventHandler(this.OnLoadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnFinishItemChange)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this._EnchantOperateHandler != null && this._EnchantOperateHandler.IsVisible(); + if (flag) + { + this.ToggleBlock(false); + this._EnchantOperateHandler.RefreshData(); + } + bool flag2 = this._EnchantBagHandler != null && this._EnchantBagHandler.IsVisible(); + if (flag2) + { + this._EnchantBagHandler.RefreshData(); + } + } + + public bool OnLoadEquip(XEventArgs args) + { + XLoadEquipEventArgs xloadEquipEventArgs = args as XLoadEquipEventArgs; + bool flag = xloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoint = true; + } + return true; + } + + public bool OnUnloadEquip(XEventArgs args) + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + bool flag = xunloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoint = true; + } + return true; + } + + public bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + bool flag = xupdateItemEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoint = true; + } + return true; + } + + public bool OnVirtualItemChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = this._RelatedItemUpdated(xvirtualItemChangedEventArgs.itemID); + if (flag) + { + this._bCostDirty |= this._IsUIShowed(); + this._bShouldUpdateRedPoint = true; + } + return true; + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag = this._RelatedItemUpdated(xaddItemEventArgs.items[i].itemID); + if (flag) + { + this._bCostDirty |= this._IsUIShowed(); + this._bShouldUpdateRedPoint = true; + break; + } + } + return true; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + for (int i = 0; i < xremoveItemEventArgs.ids.Count; i++) + { + bool flag = this._RelatedItemUpdated(xremoveItemEventArgs.ids[i]); + if (flag) + { + this._bCostDirty |= this._IsUIShowed(); + this._bShouldUpdateRedPoint = true; + break; + } + } + return true; + } + + public bool OnItemNumChanged(XEventArgs args) + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag = this._RelatedItemUpdated(xitemNumChangedEventArgs.item.itemID); + if (flag) + { + this._bCostDirty |= this._IsUIShowed(); + this._bShouldUpdateRedPoint = true; + } + return true; + } + + public bool OnFinishItemChange(XEventArgs args) + { + bool bShouldUpdateRedPoint = this._bShouldUpdateRedPoint; + if (bShouldUpdateRedPoint) + { + this.UpdateRedPoints(); + this._bShouldUpdateRedPoint = false; + } + bool bCostDirty = this._bCostDirty; + if (bCostDirty) + { + this._bCostDirty = false; + bool flag = this._EnchantOperateHandler != null && this._EnchantOperateHandler.IsVisible(); + if (flag) + { + this._EnchantOperateHandler.RefreshItems(); + } + bool flag2 = this._EnchantBagHandler != null && this._EnchantBagHandler.IsVisible(); + if (flag2) + { + this._EnchantBagHandler.RefreshData(); + } + } + return true; + } + + public void UpdateRedPoints() + { + this.UpdateRedPoints(XSingleton.singleton.XPlayerData.Level); + } + + public void UpdateRedPoints(uint playerLevel) + { + bool bState = false; + bool flag = false; + XBodyBag equipBag = XSingleton.singleton.Doc.XBagDoc.EquipBag; + for (int i = 0; i < XBagDocument.EquipMax; i++) + { + this.m_TempEquipConfList[i] = null; + this.m_RedPointStates[i] = false; + XEquipItem xequipItem = equipBag[i] as XEquipItem; + bool flag2 = xequipItem == null || xequipItem.itemID == 0 || xequipItem.itemConf == null; + if (!flag2) + { + bool flag3 = xequipItem.itemConf.ItemQuality < 3; + if (!flag3) + { + EquipSuitTable.RowData suit = XCharacterEquipDocument.SuitManager.GetSuit(xequipItem.itemID, true); + bool flag4 = suit == null; + if (!flag4) + { + this.m_TempEquipConfList[i] = XBagDocument.GetEquipConf(xequipItem.itemID); + flag |= (this.m_TempEquipConfList[i] != null); + } + } + } + } + bool flag5 = flag; + if (flag5) + { + List allEnchantItemsTemporarily = this.GetAllEnchantItemsTemporarily(); + for (int j = 0; j < allEnchantItemsTemporarily.Count; j++) + { + EnchantEquip.RowData enchantEquipData = this.GetEnchantEquipData(allEnchantItemsTemporarily[j].itemID); + bool flag6 = enchantEquipData == null; + if (!flag6) + { + bool flag7 = (long)allEnchantItemsTemporarily[j].itemCount < (long)((ulong)enchantEquipData.Num); + if (!flag7) + { + bool flag8 = true; + for (int k = 0; k < (int)enchantEquipData.Cost.count; k++) + { + bool flag9 = XSingleton.singleton.Doc.XBagDoc.GetItemCount((int)enchantEquipData.Cost[k, 0]) < (ulong)enchantEquipData.Cost[k, 1]; + if (flag9) + { + flag8 = false; + break; + } + } + bool flag10 = !flag8; + if (!flag10) + { + bool flag11 = false; + for (int l = 0; l < XBagDocument.EquipMax; l++) + { + EquipList.RowData rowData = this.m_TempEquipConfList[l]; + bool flag12 = rowData == null || this.m_RedPointStates[l]; + if (!flag12) + { + XEquipItem xequipItem2 = equipBag[l] as XEquipItem; + bool bHasEnchant = xequipItem2.enchantInfo.bHasEnchant; + if (!bHasEnchant) + { + flag11 = true; + bool flag13 = !XEnchantDocument.IsEnchantMatched(rowData, enchantEquipData); + if (!flag13) + { + bool flag14 = XEnchantDocument.CanEnchant((int)equipBag[l].itemConf.ReqLevel, enchantEquipData.EnchantLevel) == EnchantCheckResult.ECR_OK; + if (flag14) + { + this.m_RedPointStates[l] = true; + bState = true; + } + } + } + } + } + bool flag15 = !flag11; + if (flag15) + { + break; + } + } + } + } + } + } + XSingleton.singleton.SetSysRedState(XSysDefine.XSys_Item_Enchant, bState); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Item_Enchant, true); + bool flag16 = DlgBase.singleton._EquipBagHandler != null && DlgBase.singleton._EquipBagHandler.IsVisible(); + if (flag16) + { + DlgBase.singleton._EquipBagHandler.RefreshRedPoints(); + } + } + + private bool _IsUIShowed() + { + bool flag = this._EnchantOperateHandler == null || !this._EnchantOperateHandler.IsVisible(); + return !flag; + } + + private bool _RelatedItemUpdated(int itemid) + { + return XEnchantDocument._ItemFilter.Contains(itemid); + } + + public List GetAllEnchantItemsTemporarily() + { + this.m_TempItemList.Clear(); + for (int i = 0; i < this.m_TempItemList2.Count; i++) + { + this.m_TempItemList2[i].Recycle(); + } + this.m_TempItemList2.Clear(); + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.ENCHANT); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.m_TempItemList); + this.m_TempItemList.Sort(new Comparison(this._SortByID)); + this._MergeItemsWithSameID(this.m_TempItemList, this.m_TempItemList2); + return this.m_TempItemList2; + } + + public List GetEnchantItems() + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.ENCHANT); + for (int i = 0; i < this.m_ItemList.Count; i++) + { + this.m_ItemList[i].Recycle(); + } + this.m_ItemList.Clear(); + this.m_TempItemList.Clear(); + this.m_TempDataDic.Clear(); + bool flag = this.m_SelectEquipItemConf == null; + List itemList; + if (flag) + { + itemList = this.m_ItemList; + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(this.m_SelectEquipItemConf.ItemID); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.m_TempItemList); + int num = this.m_TempItemList.Count; + int j = 0; + while (j < num) + { + XItem xitem = this.m_TempItemList[j]; + EnchantEquip.RowData enchantEquipData = this.GetEnchantEquipData(xitem.itemID); + bool flag2 = XEnchantDocument.IsEnchantMatched(equipConf, enchantEquipData); + if (flag2) + { + this.m_TempDataDic[xitem.uid] = enchantEquipData; + j++; + } + else + { + bool flag3 = --num > j; + if (flag3) + { + XItem value = this.m_TempItemList[j]; + this.m_TempItemList[j] = this.m_TempItemList[num]; + this.m_TempItemList[num] = value; + } + } + } + bool flag4 = num < this.m_TempItemList.Count; + if (flag4) + { + this.m_TempItemList.RemoveRange(num, this.m_TempItemList.Count - num); + } + this.m_TempItemList.Sort(new Comparison(this._SortEnchantItems)); + this._MergeItemsWithSameID(this.m_TempItemList, this.m_ItemList); + itemList = this.m_ItemList; + } + return itemList; + } + + private void _MergeItemsWithSameID(List from, List to) + { + XItem xitem = null; + for (int i = 0; i < from.Count; i++) + { + XItem xitem2 = from[i]; + bool flag = xitem == null || xitem.itemID != xitem2.itemID; + if (flag) + { + xitem = XDataPool.GetData(); + to.Add(xitem); + xitem.itemID = xitem2.itemID; + xitem.itemConf = xitem2.itemConf; + } + xitem.itemCount += xitem2.itemCount; + } + } + + private int _SortByID(XItem left, XItem right) + { + return left.itemID.CompareTo(right.itemID); + } + + private int _SortEnchantItems(XItem left, XItem right) + { + bool flag = this.m_SelectEquipItemConf == null; + int result; + if (flag) + { + result = 0; + } + else + { + ItemList.RowData itemConf = left.itemConf; + ItemList.RowData itemConf2 = right.itemConf; + EnchantEquip.RowData rowData; + this.m_TempDataDic.TryGetValue(left.uid, out rowData); + EnchantEquip.RowData rowData2; + this.m_TempDataDic.TryGetValue(right.uid, out rowData2); + bool flag2 = itemConf == null || rowData == null; + if (flag2) + { + result = 1; + } + else + { + bool flag3 = itemConf2 == null || rowData2 == null; + if (flag3) + { + result = -1; + } + else + { + EnchantCheckResult enchantCheckResult = XEnchantDocument.CanEnchant((int)this.m_SelectEquipItemConf.ReqLevel, rowData.EnchantLevel); + EnchantCheckResult enchantCheckResult2 = XEnchantDocument.CanEnchant((int)this.m_SelectEquipItemConf.ReqLevel, rowData2.EnchantLevel); + bool flag4 = (enchantCheckResult == EnchantCheckResult.ECR_OK && enchantCheckResult2 == EnchantCheckResult.ECR_OK) || (enchantCheckResult != EnchantCheckResult.ECR_OK && enchantCheckResult2 > EnchantCheckResult.ECR_OK); + if (flag4) + { + int num = -itemConf.ReqLevel.CompareTo(itemConf2.ReqLevel); + bool flag5 = num != 0; + if (flag5) + { + result = num; + } + else + { + num = -itemConf.ItemQuality.CompareTo(itemConf2.ItemQuality); + bool flag6 = num != 0; + if (flag6) + { + result = num; + } + else + { + num = itemConf.ItemID.CompareTo(itemConf2.ItemID); + bool flag7 = num != 0; + if (flag7) + { + result = num; + } + else + { + result = left.uid.CompareTo(right.uid); + } + } + } + } + else + { + bool flag8 = enchantCheckResult == EnchantCheckResult.ECR_OK; + if (flag8) + { + result = -1; + } + else + { + bool flag9 = enchantCheckResult2 == EnchantCheckResult.ECR_OK; + if (flag9) + { + result = 1; + } + else + { + result = 0; + } + } + } + } + } + } + return result; + } + + public static EnchantCheckResult CanEnchant(int equipLevel, uint enchantItemLevel) + { + bool flag = (ulong)enchantItemLevel > (ulong)((long)XEnchantDocument.EnchantNeedLevel.Length); + EnchantCheckResult result; + if (flag) + { + XSingleton.singleton.AddErrorLog("enchantItemLevel ", enchantItemLevel.ToString(), " > EnchantNeedLevel.Length ", XEnchantDocument.EnchantNeedLevel.Length.ToString(), null, null); + result = EnchantCheckResult.ECR_INVALID; + } + else + { + bool flag2 = (long)equipLevel < (long)((ulong)XEnchantDocument.EnchantNeedLevel[(int)enchantItemLevel]); + if (flag2) + { + result = EnchantCheckResult.ECR_ITEM_TOO_HIGH; + } + else + { + result = EnchantCheckResult.ECR_OK; + } + } + return result; + } + + public static bool CanEquipEnchant(int equipLevel) + { + return (long)equipLevel >= (long)((ulong)XEnchantDocument.EnchantMinLevel); + } + + public static bool IsEnchantMatched(EquipList.RowData equipData, EnchantEquip.RowData enchantData) + { + bool flag = equipData == null || enchantData == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < enchantData.Pos.Length; i++) + { + bool flag2 = enchantData.Pos[i] == (uint)equipData.EquipPos; + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public EnchantCheckResult CanEnchant(EnchantEquip.RowData enchantConf) + { + bool flag = this.m_SelectEquipItemConf == null || enchantConf == null; + EnchantCheckResult result; + if (flag) + { + result = EnchantCheckResult.ECR_INVALID; + } + else + { + result = XEnchantDocument.CanEnchant((int)this.m_SelectEquipItemConf.ReqLevel, enchantConf.EnchantLevel); + } + return result; + } + + public void SelectEquip(ulong uid) + { + XItem itemByUID = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(uid); + bool flag = itemByUID == null || itemByUID.itemConf == null; + if (!flag) + { + bool flag2 = !XEnchantDocument.CanEquipEnchant((int)itemByUID.itemConf.ReqLevel); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("EnchantMinLevelRequired", new object[] + { + XEnchantDocument.EnchantMinLevel + }), "fece00"); + } + else + { + this.m_SelectEquipItemConf = itemByUID.itemConf; + this.m_SelectedEquip = uid; + bool flag3 = !DlgBase.singleton.IsVisible(); + if (!flag3) + { + bool flag4 = DlgBase.singleton._equipHandler != null; + if (flag4) + { + DlgBase.singleton._equipHandler.SelectEquip(uid); + } + bool flag5 = DlgBase.singleton._EnchantHandler != null && DlgBase.singleton._EnchantHandler.IsVisible(); + if (flag5) + { + DlgBase.singleton._EnchantHandler.RefreshData(); + } + else + { + DlgBase.singleton.ShowRightPopView(DlgBase.singleton._EnchantHandler); + } + } + } + } + } + + public void SelectEnchantItem(int itemID) + { + this.m_SelectedItemID = itemID; + bool flag = this._EnchantBagHandler != null && this._EnchantBagHandler.IsVisible(); + if (flag) + { + this._EnchantBagHandler.SetVisible(false); + } + bool flag2 = this._EnchantOperateHandler != null && this._EnchantOperateHandler.IsVisible(); + if (flag2) + { + this._EnchantOperateHandler.RefreshData(); + } + } + + public XEnchantInfo GetPreEnchantInfo() + { + return this._preInfo; + } + + public void SetPreEnchantInfo(XEnchantInfo info) + { + this._preInfo.Init(); + this._preInfo.AttrList = new List(info.AttrList); + this._preInfo.ChooseAttr = info.ChooseAttr; + this._preInfo.EnchantIDList = new List(info.EnchantIDList); + } + + public void ToggleBlock(bool bBlock) + { + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.AttrEventBlocker.bBlockReceiver = bBlock; + } + + public void ReqEnchant() + { + RpcC2G_EnchantEquip rpcC2G_EnchantEquip = new RpcC2G_EnchantEquip(); + rpcC2G_EnchantEquip.oArg.enchantid = (uint)this.m_SelectedItemID; + rpcC2G_EnchantEquip.oArg.uid = this.m_SelectedEquip; + XSingleton.singleton.Send(rpcC2G_EnchantEquip); + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.SelectedEquipUID) as XEquipItem; + this.ToggleBlock(true); + bool flag = xequipItem == null; + if (!flag) + { + this.SetPreEnchantInfo(xequipItem.enchantInfo); + } + } + + public void OnGetEnchant(EnchantEquipArg oArg, EnchantEquipRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + this.ToggleBlock(false); + bool flag2 = this._EnchantOperateHandler != null && this._EnchantOperateHandler.IsVisible(); + if (flag2) + { + this._EnchantOperateHandler.ResetOKCD(); + } + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag3 = oRes.attr != null; + if (flag3) + { + this._lastEnchantAttr.AttrID = oRes.attr.id; + this._lastEnchantAttr.AttrValue = oRes.attr.value; + } + bool flag4 = this._EnchantResultHandler != null && this._EnchantResultHandler.IsVisible(); + if (flag4) + { + this._EnchantResultHandler.RefreshData(); + } + bool flag5 = this._EnchantOperateHandler != null && this._EnchantOperateHandler.IsVisible(); + if (flag5) + { + this._EnchantOperateHandler.RefreshData(); + } + } + } + + public void SendEnchantActiveAttribute(uint curSelectedAttribute) + { + RpcC2G_EnchantActiveAttribute rpcC2G_EnchantActiveAttribute = new RpcC2G_EnchantActiveAttribute(); + rpcC2G_EnchantActiveAttribute.oArg.uid = this.m_SelectedEquip; + rpcC2G_EnchantActiveAttribute.oArg.attrID = curSelectedAttribute; + XSingleton.singleton.Send(rpcC2G_EnchantActiveAttribute); + } + + public void OnGetEnchantActiveAttr(EnchantActiveAttributeArg oArg, EnchantActiveAttributeRes oRes) + { + bool flag = this._EnchantActiveHandler != null && this._EnchantActiveHandler.IsVisible(); + if (flag) + { + this._EnchantActiveHandler.RefreshData(); + } + bool flag2 = this._EnchantOperateHandler != null && this._EnchantOperateHandler.IsVisible(); + if (flag2) + { + this._EnchantOperateHandler.RefreshData(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEnchantDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XEnchantDocument.cs.meta new file mode 100644 index 00000000..8ee385f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnchantDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 156df2d59fc6b02428bb8237512a0b7b +timeCreated: 1611403263 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEnchantInfo.cs b/Client/Assets/Scripts/XMainClient/XEnchantInfo.cs new file mode 100644 index 00000000..d6c59c52 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnchantInfo.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal struct XEnchantInfo + { + public bool bHasEnchant + { + get + { + return this.AttrList != null && this.AttrList.Count != 0; + } + } + + public List AttrList; + + public int EnchantItemID; + + public uint ChooseAttr; + + public List EnchantIDList; + + public void Init() + { + bool flag = this.AttrList == null; + if (flag) + { + this.AttrList = new List(); + } + else + { + this.AttrList.Clear(); + } + bool flag2 = this.EnchantIDList == null; + if (flag2) + { + this.EnchantIDList = new List(); + } + else + { + this.EnchantIDList.Clear(); + } + this.EnchantItemID = 0; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEnchantInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XEnchantInfo.cs.meta new file mode 100644 index 00000000..840d3aa2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnchantInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7911a4c4cbc7e4549af4c4c21737534b +timeCreated: 1611403983 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEndureComponent.cs b/Client/Assets/Scripts/XMainClient/XEndureComponent.cs new file mode 100644 index 00000000..63850e93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEndureComponent.cs @@ -0,0 +1,233 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XEndureComponent : XComponent + { + public override uint ID + { + get + { + return XEndureComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Endure"); + + private static readonly string _endure_curve = "Curve/Endure_forward"; + + private static IXCurve _curve_v = null; + + private static float _total = 0f; + + private float _last_offset = 0f; + + private float _delta_x = 0f; + + private float _delta_z = 0f; + + private float _delta_cumulation_x = 0f; + + private float _delta_cumulation_z = 0f; + + private float _elapsed = 0f; + + private bool _bEndure = false; + + private XFx _fx = null; + + private XFx _hit_fx = null; + + private Vector3 _direction = Vector3.zero; + + private XWoozyComponent woo = null; + + static XEndureComponent() + { + IXCurve curve = XSingleton.singleton.GetCurve(XEndureComponent._endure_curve); + XEndureComponent._curve_v = curve; + XEndureComponent._total = XEndureComponent._curve_v.GetTime(XEndureComponent._curve_v.length - 1); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Endure, new XComponent.XEventHandler(this.OnEndure)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._bEndure = false; + this._last_offset = 0f; + this._delta_x = 0f; + this._delta_z = 0f; + this._delta_cumulation_x = 0f; + this._delta_cumulation_z = 0f; + } + + public override void OnDetachFromHost() + { + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + bool flag2 = this._hit_fx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._hit_fx, true); + this._hit_fx = null; + } + base.OnDetachFromHost(); + } + + public override void Attached() + { + base.Attached(); + this.woo = (this._entity.GetXComponent(XWoozyComponent.uuID) as XWoozyComponent); + } + + private bool OnEndure(XEventArgs e) + { + XEndureEventArgs xendureEventArgs = e as XEndureEventArgs; + this.PlayFx(xendureEventArgs.Fx, true, ref this._fx); + bool flag = !string.IsNullOrEmpty(this._entity.Present.PresentLib.HitFx); + if (flag) + { + this.PlayFx(this._entity.Present.PresentLib.HitFx, true, ref this._hit_fx); + } + XSingleton.singleton.PlaySound(this._entity, AudioChannel.Behit, XAudioStateDefine.XState_Audio_Bati, false, (xendureEventArgs.HitFrom == null) ? null : new XAudioExParam(xendureEventArgs.HitFrom)); + bool bEndure = this._bEndure; + bool result; + if (bEndure) + { + result = true; + } + else + { + this._bEndure = true; + this._elapsed = 0f; + this._direction = xendureEventArgs.Dir; + this._delta_cumulation_x = 0f; + this._delta_cumulation_z = 0f; + result = true; + } + return result; + } + + public override void Update(float fDeltaT) + { + bool bEndure = this._bEndure; + if (bEndure) + { + this._elapsed += fDeltaT; + bool flag = this._elapsed > XEndureComponent._total; + if (flag) + { + this._elapsed = XEndureComponent._total; + bool flag2 = this._fx != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + bool flag3 = this._hit_fx != null; + if (flag3) + { + XSingleton.singleton.DestroyFx(this._hit_fx, true); + this._hit_fx = null; + } + bool flag4 = !this._entity.IsRole; + if (flag4) + { + this.MoveImpl(new Vector3(-this._delta_cumulation_x, 0f, -this._delta_cumulation_z)); + } + this._delta_cumulation_x = 0f; + this._delta_cumulation_z = 0f; + this._bEndure = false; + } + else + { + bool flag5 = !this._entity.IsRole; + if (flag5) + { + this.CalcDeltaPos(); + this.MoveImpl(new Vector3(this._delta_x, 0f, this._delta_z)); + } + } + } + } + + private void MoveImpl(Vector3 delta) + { + bool flag = this.woo != null && this.woo.InTransfer; + if (!flag) + { + float num = 0f; + Vector3 vector = this._entity.MoveObj.Position + delta; + bool flag2 = this._entity.Fly == null && XSingleton.singleton.TryGetTerrainY(vector, out num) && num >= 0f; + if (flag2) + { + bool flag3 = XSingleton.singleton.CheckDynamicBlock(this._entity.MoveObj.Position, vector); + if (flag3) + { + bool flag4 = !this._entity.GravityDisabled; + if (flag4) + { + vector.y = num + ((this._entity.MoveObj != null && this._entity.MoveObj.EnableCC) ? 0.25f : 0.05f); + this._entity.MoveObj.Position = vector; + bool flag5 = this._entity.MoveObj != null; + if (flag5) + { + this._entity.MoveObj.Move(Vector3.down); + } + } + else + { + this._entity.MoveObj.Position = vector; + } + this._delta_cumulation_x += delta.x; + this._delta_cumulation_z += delta.z; + } + } + } + } + + private void CalcDeltaPos() + { + float num = XEndureComponent._curve_v.Evaluate(this._elapsed); + Vector3 vector = this._direction * (num - this._last_offset); + this._delta_x = vector.x; + this._delta_z = vector.z; + this._last_offset = num; + } + + private void PlayFx(string fx, bool follow, ref XFx xfx) + { + bool flag = fx == null || fx.Length == 0; + if (!flag) + { + bool flag2 = xfx != null && xfx.FxName != fx; + if (flag2) + { + XSingleton.singleton.DestroyFx(xfx, true); + xfx = null; + } + bool flag3 = XEntity.FilterFx(this._entity, XFxMgr.FilterFxDis0); + if (!flag3) + { + bool flag4 = xfx == null; + if (flag4) + { + xfx = XSingleton.singleton.CreateFx(fx, null, true); + } + xfx.DelayDestroy = 0.5f; + xfx.Play(this._entity.EngineObject, Vector3.zero, Vector3.one, 1f, follow, false, "", this._entity.Height * 0.5f); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEndureComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XEndureComponent.cs.meta new file mode 100644 index 00000000..8378f1b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEndureComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a627b99af7b197a408f58125c14c839d +timeCreated: 1611404287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs b/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs new file mode 100644 index 00000000..b422a7f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs @@ -0,0 +1,28 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XEndureEventArgs : XEventArgs + { + public string Fx = null; + + public Vector3 Dir = Vector3.zero; + + public XEntity HitFrom = null; + + public XEndureEventArgs() + { + this._eDefine = XEventDefine.XEvent_Endure; + } + + public override void Recycle() + { + this.Fx = null; + this.Dir = Vector3.zero; + this.HitFrom = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs.meta new file mode 100644 index 00000000..1e22ce8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEndureEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bc77ad3ff2e9bf64fb93fc2e5feffb07 +timeCreated: 1611404446 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEnemy.cs b/Client/Assets/Scripts/XMainClient/XEnemy.cs new file mode 100644 index 00000000..fdee06ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnemy.cs @@ -0,0 +1,118 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XEnemy : XEntity + { + public override bool IsFighting + { + get + { + bool flag = this._ai == null; + return !flag && this._ai.IsFighting; + } + } + + public override bool HasAI + { + get + { + return this._ai != null; + } + } + + private Ray _rayVer = new Ray(Vector3.zero, Vector3.down); + + private Vector3 _lastSrc = Vector3.zero; + + private Vector3 _lastRes = Vector3.zero; + + protected XOthersAttributes _other_attr = null; + + public override bool Initilize(int flag) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Enemy; + this._using_cc_move = false; + this._present = (XSingleton.singleton.CreateComponent(this, XPresentComponent.uuID) as XPresentComponent); + this._machine = (XSingleton.singleton.CreateComponent(this, XStateMachine.uuID) as XStateMachine); + this._other_attr = (this.Attributes as XOthersAttributes); + this._layer = (this._other_attr.Blocked ? LayerMask.NameToLayer("BigGuy") : LayerMask.NameToLayer("Enemy")); + XIdleComponent defaultState = XSingleton.singleton.CreateComponent(this, XIdleComponent.uuID) as XIdleComponent; + this._death = (XSingleton.singleton.CreateComponent(this, XDeathComponent.uuID) as XDeathComponent); + this._machine.SetDefaultState(defaultState); + this._behit = (XSingleton.singleton.CreateComponent(this, XBeHitComponent.uuID) as XBeHitComponent); + bool flag2 = this._other_attr.FashionTemplate > 0u; + if (flag2) + { + this._equip = (XSingleton.singleton.CreateComponent(this, XEquipComponent.uuID) as XEquipComponent); + } + bool flag3 = this._equip != null; + if (flag3) + { + this._equip.IsUIAvatar = false; + } + bool flag4 = (flag & XFastEnumIntEqualityComparer.ToInt(XEntity.InitFlag.Entity_Transform)) == 0; + if (flag4) + { + bool flag5 = this._present != null && this._present.PresentLib.Shadow; + if (flag5) + { + XSingleton.singleton.CreateComponent(this, XShadowComponent.uuID); + } + this._skill = (XSingleton.singleton.CreateComponent(this, XSkillComponent.uuID) as XSkillComponent); + this._net = (XSingleton.singleton.CreateComponent(this, XNetComponent.uuID) as XNetComponent); + bool flag6 = this._other_attr.FloatingMax > 0f; + if (flag6) + { + this._fly = (XSingleton.singleton.CreateComponent(this, XFlyComponent.uuID) as XFlyComponent); + } + XSingleton.singleton.CreateComponent(this, XFreezeComponent.uuID); + bool flag7 = this.Attributes.GetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Basic) > 0.0 && this.Attributes.SuperArmorRecoveryTimeLimit > 0.0; + if (flag7) + { + XSingleton.singleton.CreateComponent(this, XSuperArmorComponent.uuID); + } + XSingleton.singleton.CreateComponent(this, XWoozyComponent.uuID); + } + return true; + } + + public override void Uninitilize() + { + base.Uninitilize(); + } + + public override void OnCreated() + { + this._render = XRenderComponent.AddRenderComponent(this); + bool flag = this._render != null; + if (flag) + { + this._render.SetEntityLayer(this._layer); + this._render.PostCreateComponent(); + } + bool flag2 = this.Attributes.Type != EntitySpecies.Species_Puppet && this._transformee == null; + if (flag2) + { + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA && this._other_attr.SameBillBoardByMaster; + if (flag3) + { + XSingleton.singleton.CreateComponent(this, XMobaBillboardComponent.uuID); + } + else + { + this._billboard = (XSingleton.singleton.CreateComponent(this, XBillboardComponent.uuID) as XBillboardComponent); + } + } + base.OnCreated(); + } + + public override bool CastFakeShadow() + { + return XQualitySetting.GetQuality(EFun.EEnemyShadow); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEnemy.cs.meta b/Client/Assets/Scripts/XMainClient/XEnemy.cs.meta new file mode 100644 index 00000000..8522f083 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnemy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7b023122ab4e39040aec96c99738ed81 +timeCreated: 1611403992 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEnhanceDocument.cs b/Client/Assets/Scripts/XMainClient/XEnhanceDocument.cs new file mode 100644 index 00000000..8a1d877c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnhanceDocument.cs @@ -0,0 +1,1088 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEnhanceDocument : XDocComponent + { + public override uint ID + { + get + { + return XEnhanceDocument.uuID; + } + } + + public static XEnhanceDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XEnhanceDocument.uuID) as XEnhanceDocument; + } + } + + public EnhanceTable Enhance + { + get + { + return XEnhanceDocument.m_enhanceTable; + } + } + + public EnhanceMaster EnhanceMasterTable + { + get + { + return XEnhanceDocument.m_EnhanceMasterTable; + } + } + + public bool bCanBePowerful + { + get + { + return this._bCanBePowerful; + } + set + { + this._bCanBePowerful = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Item_Enhance, true); + } + } + + public uint HistoryMaxLevel + { + get + { + return this.m_historyMaxLevel; + } + } + + public uint TheMasterMaxLevel + { + get + { + bool flag = XEnhanceDocument.m_EnhanceMasterTable.Table.Length == 0; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = (uint)XEnhanceDocument.m_EnhanceMasterTable.Table[XEnhanceDocument.m_EnhanceMasterTable.Table.Length - 1].TotalEnhanceLevel; + } + return result; + } + } + + public List MorePowerfulEquips + { + get + { + return this.m_morePowerfulEquips; + } + } + + public List RedPointEquips + { + get + { + return this.m_RedPointEquips; + } + } + + public List CombainItems + { + get + { + return this.m_combainItems; + } + } + + public List EnhanceAttrLst + { + get + { + return this.m_EnhanceAttrLst; + } + } + + public SeqList ExchangeRateList + { + get + { + bool flag = this.m_exchangeRateList == null; + if (flag) + { + this.m_exchangeRateList = XSingleton.singleton.GetSequence3List("ExchangeRate", false); + } + return this.m_exchangeRateList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("EnhanceDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static EnhanceTable m_enhanceTable = new EnhanceTable(); + + private static EnhanceMaster m_EnhanceMasterTable = new EnhanceMaster(); + + public EnhanceView enhanceView; + + public EnhanceMasterHandler enhanceMasterView; + + public ulong selectedEquip = 0UL; + + public bool IsNeedBreak = false; + + public XEnhanceRpcState rpcState = XEnhanceRpcState.ERS_NONE; + + private XNewItemTipsMgr _NewItems = new XNewItemTipsMgr(); + + private int RED_POINT_LEVEL_COUNT = 5; + + private XItemRequiredCollector m_ItemsRequiredCollector = new XItemRequiredCollector(); + + private bool _bCanBePowerful = false; + + private uint m_historyMaxLevel = 0u; + + private bool m_bShouldUpdateRedPoints = false; + + private List m_morePowerfulEquips = new List(); + + private List m_RedPointEquips = new List(); + + private static uint maxPos = 0u; + + private static uint maxEnhanceLevel = 0u; + + private static bool enhanceIndexed = true; + + private List> m_nextLevelAttr = new List>(); + + private List m_combainItems = null; + + private bool isLoadingData = true; + + private List m_EnhanceAttrLst = new List(); + + private SeqList m_exchangeRateList; + + public static void Execute(OnLoadedCallback callback = null) + { + XEnhanceDocument.AsyncLoader.AddTask("Table/Enhance", XEnhanceDocument.m_enhanceTable, false); + XEnhanceDocument.AsyncLoader.AddTask("Table/EnhanceMaster", XEnhanceDocument.m_EnhanceMasterTable, false); + XEnhanceDocument.AsyncLoader.Execute(callback); + } + + private static int MakeKey(uint profID, uint pos, uint enhanceLevel) + { + return (profID * 100000u + pos * 1000u + enhanceLevel).GetHashCode(); + } + + public static void OnTableLoaded() + { + for (int i = 0; i < XEnhanceDocument.m_enhanceTable.Table.Length; i++) + { + EnhanceTable.RowData rowData = XEnhanceDocument.m_enhanceTable.Table[i]; + bool flag = rowData != null; + if (flag) + { + bool flag2 = rowData.EquipPos > XEnhanceDocument.maxPos; + if (flag2) + { + XEnhanceDocument.maxPos = rowData.EquipPos; + } + bool flag3 = rowData.EnhanceLevel > XEnhanceDocument.maxEnhanceLevel; + if (flag3) + { + XEnhanceDocument.maxEnhanceLevel = rowData.EnhanceLevel; + } + bool flag4 = (long)i != (long)((ulong)(rowData.EquipPos * XEnhanceDocument.maxEnhanceLevel + rowData.EnhanceLevel - 1u)); + if (flag4) + { + XEnhanceDocument.enhanceIndexed = false; + break; + } + } + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.selectedEquip = 0UL; + this._NewItems.ClearItemType(); + this._NewItems.Filter.AddItemType(ItemType.MATERAIL); + this.RED_POINT_LEVEL_COUNT = XSingleton.singleton.GetInt("EnhanceRedPointLevelCount"); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_LoadEquip, new XComponent.XEventHandler(this.OnLoadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_SwapItem, new XComponent.XEventHandler(this.OnSwapItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnFinishItemChange)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.rpcState == XEnhanceRpcState.ERS_RECEIVING; + if (flag) + { + this.rpcState = XEnhanceRpcState.ERS_NONE; + } + bool flag2 = this.enhanceView != null && this.enhanceView.IsVisible(); + if (flag2) + { + this.enhanceView.RefreshPage(); + } + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + public bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + bool flag = xupdateItemEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this.m_bShouldUpdateRedPoints = true; + } + bool flag2 = this.enhanceView == null || !this.enhanceView.active; + bool result; + if (flag2) + { + result = false; + } + else + { + XItem item = xupdateItemEventArgs.item; + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + bool flag3 = equipConf != null; + if (flag3) + { + DlgBase.singleton._equipHandler.SetEquipSlot((int)equipConf.EquipPos, item); + } + bool flag4 = item.uid == this.selectedEquip; + if (flag4) + { + this.enhanceView.RefreshPage(); + } + result = true; + } + return result; + } + + public bool OnVirtualItemChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = xvirtualItemChangedEventArgs.itemID == 1; + if (flag) + { + this.m_bShouldUpdateRedPoints = true; + } + bool flag2 = this.enhanceView == null || !this.enhanceView.active; + bool result; + if (flag2) + { + result = false; + } + else + { + this.enhanceView.RefreshPage(); + result = true; + } + return result; + } + + protected bool OnLoadEquip(XEventArgs args) + { + XLoadEquipEventArgs xloadEquipEventArgs = args as XLoadEquipEventArgs; + bool flag = xloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this.m_bShouldUpdateRedPoints = true; + } + return true; + } + + protected bool OnUnloadEquip(XEventArgs args) + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + bool flag = xunloadEquipEventArgs.type == ItemType.EQUIP; + if (flag) + { + this.m_bShouldUpdateRedPoints = true; + } + return true; + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + this.m_bShouldUpdateRedPoints = this._NewItems.AddItems(xaddItemEventArgs.items, true); + return true; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + this.m_bShouldUpdateRedPoints = this._NewItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, true); + return true; + } + + protected bool OnSwapItem(XEventArgs args) + { + XSwapItemEventArgs xswapItemEventArgs = args as XSwapItemEventArgs; + this.m_bShouldUpdateRedPoints = true; + return true; + } + + public bool OnItemNumChanged(XEventArgs args) + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag = xitemNumChangedEventArgs.item.Type == ItemType.MATERAIL; + if (flag) + { + this.m_bShouldUpdateRedPoints = true; + } + bool flag2 = this.enhanceView == null || !this.enhanceView.active; + bool result; + if (flag2) + { + result = false; + } + else + { + this.enhanceView.RefreshPage(); + result = true; + } + return result; + } + + public bool OnFinishItemChange(XEventArgs args) + { + bool bShouldUpdateRedPoints = this.m_bShouldUpdateRedPoints; + if (bShouldUpdateRedPoints) + { + this.UpdateRedPoints(); + this.m_bShouldUpdateRedPoints = false; + } + return true; + } + + public void ReqEnhance() + { + RpcC2G_EnhanceItem rpcC2G_EnhanceItem = new RpcC2G_EnhanceItem(); + rpcC2G_EnhanceItem.oArg.UniqueItemId = this.selectedEquip; + XSingleton.singleton.Send(rpcC2G_EnhanceItem); + this.rpcState = XEnhanceRpcState.ERS_RECEIVING; + } + + public void ReqEnhanceAttr() + { + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + EnhanceTable.RowData enhanceRowData = this.GetEnhanceRowData(xequipItem); + bool flag2 = enhanceRowData == null; + if (!flag2) + { + bool flag3 = XSingleton.singleton.XPlayerData == null; + if (!flag3) + { + RpcC2G_GetEnhanceAttr rpcC2G_GetEnhanceAttr = new RpcC2G_GetEnhanceAttr(); + rpcC2G_GetEnhanceAttr.oArg.prof = (uint)XSingleton.singleton.XPlayerData.Profession; + rpcC2G_GetEnhanceAttr.oArg.equippos = enhanceRowData.EquipPos; + rpcC2G_GetEnhanceAttr.oArg.enhancelevel = xequipItem.enhanceInfo.EnhanceLevel + 1u; + XSingleton.singleton.Send(rpcC2G_GetEnhanceAttr); + } + } + } + } + + public void OnEnhanceBack(EnhanceItemRes oRes) + { + this.ProcessResult(oRes.ErrorCode); + this.m_combainItems = oRes.comagates; + bool flag = oRes.ErrorCode == ErrorCode.ERR_ENHANCE_SUCCEED; + if (flag) + { + this.m_nextLevelAttr.Clear(); + for (int i = 0; i < oRes.nextAttrs.Count; i++) + { + AttributeInfo attributeInfo = oRes.nextAttrs[i]; + bool flag2 = attributeInfo != null; + if (flag2) + { + this.m_nextLevelAttr.Add(new XTuple(attributeInfo.id, attributeInfo.value)); + } + } + } + bool flag3 = this.enhanceView != null && this.enhanceView.IsVisible(); + if (flag3) + { + this.enhanceView.PlayEffect(); + } + } + + public void ProcessResult(ErrorCode rpcErrCode) + { + bool flag = this.rpcState != XEnhanceRpcState.ERS_RECEIVING; + if (!flag) + { + switch (rpcErrCode) + { + case ErrorCode.ERR_ENHANCE_LACKITEM: + case ErrorCode.ERR_ENHANCE_MAX: + XSingleton.singleton.ShowSystemTip(rpcErrCode, "fece00"); + this.rpcState = XEnhanceRpcState.ERS_ERR; + break; + case ErrorCode.ERR_ENHANCE_FAILED: + this.rpcState = XEnhanceRpcState.ERS_ENHANCEFAIED; + break; + case ErrorCode.ERR_ENHANCE_SUCCEED: + { + bool flag2 = !this.IsNeedBreak; + if (flag2) + { + this.rpcState = XEnhanceRpcState.ERS_ENHANCESUCCEED; + } + else + { + this.rpcState = XEnhanceRpcState.ERS_BREAKSUCCEED; + } + break; + } + default: + { + bool flag3 = rpcErrCode > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(rpcErrCode, "fece00"); + this.rpcState = XEnhanceRpcState.ERS_ERR; + } + break; + } + } + } + } + + public void GetTotalEnhanceLevelBack(uint level) + { + this.m_historyMaxLevel = level; + bool flag = this.isLoadingData; + if (flag) + { + this.isLoadingData = false; + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ActiveNewEnhanceMaster"), this.m_historyMaxLevel), "fece00"); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + bool flag3 = DlgBase.singleton._equipHandler != null && DlgBase.singleton._equipHandler.IsVisible(); + if (flag3) + { + DlgBase.singleton._equipHandler.PlayEnhanceMasterEffect(); + } + } + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + bool flag5 = DlgBase.singleton._EquipBagHandler != null && DlgBase.singleton._EquipBagHandler.IsVisible(); + if (flag5) + { + DlgBase.singleton._EquipBagHandler.ShowEnhanceMasterLevel(); + } + } + bool flag6 = this.enhanceMasterView != null && this.enhanceMasterView.IsVisible(); + if (flag6) + { + this.enhanceMasterView.RefreshView(); + } + bool flag7 = XSingleton.singleton.XPlayerData != null; + if (flag7) + { + XSingleton.singleton.XPlayerData.Outlook.enhanceMasterLevel = level; + } + bool flag8 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.Equipment != null; + if (flag8) + { + XSingleton.singleton.Player.Equipment.RefreshEquipFx(); + XSingleton.singleton.OnEnhanceMasterChanged(XSingleton.singleton.Player); + } + } + + public void OnReqEnhanceAttrBack(GetEnhanceAttrArg oArg, GetEnhanceAttrRes oRes) + { + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + EnhanceTable.RowData enhanceRowData = this.GetEnhanceRowData(xequipItem); + bool flag2 = enhanceRowData == null; + if (!flag2) + { + bool flag3 = enhanceRowData.EquipPos != oArg.equippos; + if (!flag3) + { + this.m_nextLevelAttr.Clear(); + for (int i = 0; i < oRes.attrs.Count; i++) + { + AttributeInfo attributeInfo = oRes.attrs[i]; + bool flag4 = attributeInfo != null; + if (flag4) + { + this.m_nextLevelAttr.Add(new XTuple(attributeInfo.id, attributeInfo.value)); + } + } + this.SetEnhanceUIAttr(xequipItem); + bool flag5 = this.enhanceView != null && this.enhanceView.IsVisible(); + if (flag5) + { + this.enhanceView.FillAttrUi(); + } + } + } + } + } + + public EnhanceTable.RowData GetEnhanceRowData(uint pos, uint enhanceLevel) + { + bool flag = XEnhanceDocument.enhanceIndexed && (long)XEnhanceDocument.m_enhanceTable.Table.Length == (long)((ulong)(XEnhanceDocument.maxEnhanceLevel * (1u + XEnhanceDocument.maxPos))); + EnhanceTable.RowData result; + if (flag) + { + result = XEnhanceDocument.m_enhanceTable.Table[(int)(pos * XEnhanceDocument.maxEnhanceLevel + enhanceLevel - 1u)]; + } + else + { + for (int i = 0; i < XEnhanceDocument.m_enhanceTable.Table.Length; i++) + { + EnhanceTable.RowData rowData = XEnhanceDocument.m_enhanceTable.Table[i]; + bool flag2 = rowData != null && rowData.EquipPos == pos && rowData.EnhanceLevel == enhanceLevel; + if (flag2) + { + return rowData; + } + } + result = null; + } + return result; + } + + public EnhanceTable.RowData GetEnhanceRowData(XEquipItem item) + { + bool flag = item == null; + EnhanceTable.RowData result; + if (flag) + { + result = null; + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + EnhanceTable.RowData enhanceRowData = this.GetEnhanceRowData((uint)equipConf.EquipPos, item.enhanceInfo.EnhanceLevel + 1u); + result = enhanceRowData; + } + return result; + } + + public EnhanceMaster.RowData GetCurStageEnhanceMasterRowData(uint level) + { + bool flag = XSingleton.singleton.XPlayerData == null; + EnhanceMaster.RowData result; + if (flag) + { + result = null; + } + else + { + uint curStageLevel = this.GetCurStageLevel(level); + uint profession = (uint)XSingleton.singleton.XPlayerData.Profession; + for (int i = 0; i < XEnhanceDocument.m_EnhanceMasterTable.Table.Length; i++) + { + EnhanceMaster.RowData rowData = XEnhanceDocument.m_EnhanceMasterTable.Table[i]; + bool flag2 = (long)rowData.ProfessionId == (long)((ulong)profession) && (long)rowData.TotalEnhanceLevel == (long)((ulong)curStageLevel); + if (flag2) + { + return XEnhanceDocument.m_EnhanceMasterTable.Table[i]; + } + } + result = null; + } + return result; + } + + private uint GetCurStageLevel(uint level) + { + uint profession = (uint)XSingleton.singleton.XPlayerData.Profession; + List list = new List(); + for (int i = 0; i < XEnhanceDocument.m_EnhanceMasterTable.Table.Length; i++) + { + EnhanceMaster.RowData rowData = XEnhanceDocument.m_EnhanceMasterTable.Table[i]; + bool flag = (long)rowData.ProfessionId == (long)((ulong)profession); + if (flag) + { + list.Add((uint)rowData.TotalEnhanceLevel); + } + } + bool flag2 = list.Count == 0; + uint result; + if (flag2) + { + result = 0u; + } + else + { + list.Sort(); + for (int j = 0; j < list.Count; j++) + { + bool flag3 = j == 0; + if (flag3) + { + bool flag4 = level < list[j]; + if (flag4) + { + return 0u; + } + } + else + { + bool flag5 = level < list[j]; + if (flag5) + { + return list[j - 1]; + } + } + } + result = list[list.Count - 1]; + } + return result; + } + + public EnhanceMaster.RowData GetNextStageEnhanceMasterRowData(uint level) + { + uint profession = (uint)XSingleton.singleton.XPlayerData.Profession; + for (int i = 0; i < XEnhanceDocument.m_EnhanceMasterTable.Table.Length; i++) + { + EnhanceMaster.RowData rowData = XEnhanceDocument.m_EnhanceMasterTable.Table[i]; + bool flag = (long)rowData.ProfessionId == (long)((ulong)profession) && (long)rowData.TotalEnhanceLevel > (long)((ulong)level); + if (flag) + { + return rowData; + } + } + return null; + } + + public void GetSuccessRate(XEquipItem item, ref uint oriValue, ref uint addValue) + { + EnhanceTable.RowData enhanceRowData = this.GetEnhanceRowData(item); + bool flag = enhanceRowData == null; + if (flag) + { + oriValue = 50u; + addValue = 0u; + } + else + { + oriValue = enhanceRowData.SuccessRate; + addValue = item.enhanceInfo.EnhanceTimes * enhanceRowData.UpRate; + } + } + + public void SetEnhanceUIAttr(XEquipItem item) + { + this.m_EnhanceAttrLst.Clear(); + bool flag = this.m_nextLevelAttr == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("error,please check Enhance", null, null, null, null, null); + for (int i = 0; i < item.enhanceInfo.EnhanceAttr.Count; i++) + { + uint num = item.enhanceInfo.EnhanceAttr[i].AttrID; + uint num2 = item.enhanceInfo.EnhanceAttr[i].AttrValue; + EnhanceAttr item2 = new EnhanceAttr(num, num2, num2); + this.m_EnhanceAttrLst.Add(item2); + } + } + else + { + bool flag2 = item.enhanceInfo.EnhanceAttr == null; + if (flag2) + { + for (int j = 0; j < this.m_nextLevelAttr.Count; j++) + { + uint num = this.m_nextLevelAttr[j].Item1; + uint num2 = 0u; + uint afterValue = this.m_nextLevelAttr[j].Item2; + EnhanceAttr item3 = new EnhanceAttr(num, num2, afterValue); + this.m_EnhanceAttrLst.Add(item3); + } + } + else + { + bool flag3 = item.enhanceInfo.EnhanceAttr.Count >= this.m_nextLevelAttr.Count; + if (flag3) + { + for (int k = 0; k < item.enhanceInfo.EnhanceAttr.Count; k++) + { + uint num = item.enhanceInfo.EnhanceAttr[k].AttrID; + uint num2 = item.enhanceInfo.EnhanceAttr[k].AttrValue; + uint afterValue = this.GetAddValue(num, this.m_nextLevelAttr); + EnhanceAttr item4 = new EnhanceAttr(num, num2, afterValue); + this.m_EnhanceAttrLst.Add(item4); + } + } + else + { + for (int l = 0; l < this.m_nextLevelAttr.Count; l++) + { + uint num = this.m_nextLevelAttr[l].Item1; + uint num2 = this.GetValue(num, item.enhanceInfo.EnhanceAttr); + uint afterValue = this.m_nextLevelAttr[l].Item2; + EnhanceAttr item5 = new EnhanceAttr(num, num2, afterValue); + this.m_EnhanceAttrLst.Add(item5); + } + } + } + } + } + + private uint GetAddValue(uint attrId, List> data) + { + for (int i = 0; i < data.Count; i++) + { + bool flag = attrId == data[i].Item1; + if (flag) + { + return data[i].Item2; + } + } + return 0u; + } + + private uint GetValue(uint attrId, List lst) + { + for (int i = 0; i < lst.Count; i++) + { + bool flag = attrId == lst[i].AttrID; + if (flag) + { + return lst[i].AttrValue; + } + } + return 0u; + } + + public void SelectEquip(ulong id) + { + this.selectedEquip = id; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = DlgBase.singleton._EnhanceHandler != null && DlgBase.singleton._EnhanceHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton._EnhanceHandler.ChangeEquip(); + } + else + { + DlgBase.singleton.ShowRightPopView(DlgBase.singleton._EnhanceHandler); + } + bool flag3 = DlgBase.singleton._equipHandler != null; + if (flag3) + { + DlgBase.singleton._equipHandler.SelectEquip(id); + } + } + } + + public void GetLowestItemNeedCountByID(uint itemid, uint needCount, ref int lowestid, ref ulong lowestNeedCount) + { + lowestNeedCount = (ulong)needCount; + lowestid = (int)itemid; + bool flag = this.ExchangeRateList != null; + if (flag) + { + uint oriId = itemid; + int num = 0; + int num2 = -1; + for (;;) + { + this.GetId(oriId, ref num2, ref num); + bool flag2 = num2 == -1; + if (flag2) + { + break; + } + lowestid = num2; + lowestNeedCount *= (ulong)((long)num); + oriId = (uint)num2; + } + } + } + + public void GetLowestItemOwnedCountByID(uint itemid, ref int lowestid, ref ulong lowestOwnedCount) + { + lowestOwnedCount = XBagDocument.BagDoc.GetItemCount((int)itemid); + lowestid = (int)itemid; + bool flag = this.ExchangeRateList != null; + if (flag) + { + uint oriId = itemid; + int num = 0; + int num2 = -1; + for (;;) + { + this.GetId(oriId, ref num2, ref num); + bool flag2 = num2 == -1; + if (flag2) + { + break; + } + lowestid = num2; + lowestOwnedCount *= (ulong)((long)num); + lowestOwnedCount += XBagDocument.BagDoc.GetItemCount(num2); + oriId = (uint)num2; + } + } + } + + public ulong GetItemCountByID(uint itemId) + { + int num = 1; + bool flag = itemId == 1u; + ulong result; + if (flag) + { + result = XBagDocument.BagDoc.GetItemCount((int)itemId); + } + else + { + bool flag2 = this.ExchangeRateList == null; + ulong num2; + if (flag2) + { + num2 = XBagDocument.BagDoc.GetItemCount((int)itemId); + } + else + { + num2 = XBagDocument.BagDoc.GetItemCount((int)itemId); + int num3 = 0; + int num4 = 0; + for (;;) + { + this.GetId(itemId, ref num4, ref num3); + bool flag3 = num4 == -1; + if (flag3) + { + break; + } + num *= num3; + num2 *= (ulong)((long)num3); + num2 += XBagDocument.BagDoc.GetItemCount(num4); + itemId = (uint)num4; + } + } + result = num2 / (ulong)((long)num); + } + return result; + } + + private void GetId(uint oriId, ref int findId, ref int rate) + { + for (int i = 0; i < (int)this.ExchangeRateList.Count; i++) + { + bool flag = (ulong)oriId == (ulong)((long)this.ExchangeRateList[i, 0]); + if (flag) + { + findId = this.ExchangeRateList[i, 1]; + rate = this.ExchangeRateList[i, 2]; + return; + } + } + findId = -1; + rate = 0; + } + + public uint GetMaxEnhanceLevel() + { + bool flag = XSingleton.singleton.XPlayerData == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + PlayerLevelTable.RowData byLevel = XSingleton.singleton.LevelTable.GetByLevel((int)XSingleton.singleton.XPlayerData.Level); + bool flag2 = byLevel == null; + if (flag2) + { + result = 0u; + } + else + { + result = byLevel.MaxEnhanceLevel; + } + } + return result; + } + + public void UpdateRedPoints() + { + this._bCanBePowerful = false; + uint num; + this.GetAllCanBeMorePowerfulEquips(out num); + this.bCanBePowerful = ((ulong)num == (ulong)((long)this.RED_POINT_LEVEL_COUNT)); + bool flag = DlgBase.singleton._EquipBagHandler != null && DlgBase.singleton._EquipBagHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._EquipBagHandler.RefreshRedPoints(); + } + } + + public void GetAllCanBeMorePowerfulEquips(out uint maxTimes) + { + int num = XBagDocument.BodyPosition(EquipPosition.EQUIP_START); + int num2 = XBagDocument.BodyPosition(EquipPosition.EQUIP_END); + this.MorePowerfulEquips.Clear(); + this.m_RedPointEquips.Clear(); + maxTimes = 0u; + Dictionary dictionary = new Dictionary(); + for (int i = num; i < num2; i++) + { + XEquipItem xequipItem = XBagDocument.BagDoc.EquipBag[i] as XEquipItem; + uint canEnhanceTimes = this.GetCanEnhanceTimes(xequipItem); + bool flag = canEnhanceTimes == 0u; + if (!flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + maxTimes = Math.Max(maxTimes, canEnhanceTimes); + bool flag2 = (ulong)canEnhanceTimes == (ulong)((long)this.RED_POINT_LEVEL_COUNT); + if (flag2) + { + this.m_RedPointEquips.Add((int)equipConf.EquipPos); + } + bool flag3 = canEnhanceTimes > 0u; + if (flag3) + { + this.MorePowerfulEquips.Add((int)equipConf.EquipPos); + } + } + } + } + + public uint GetCanEnhanceTimes(XEquipItem equip) + { + bool flag = equip == null || equip.itemID == 0; + uint result; + if (flag) + { + result = 0u; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(equip.itemID); + bool flag2 = itemConf == null; + if (flag2) + { + result = 0u; + } + else + { + bool flag3 = itemConf.ItemQuality < 2; + if (flag3) + { + result = 0u; + } + else + { + this.m_ItemsRequiredCollector.Init(); + EquipList.RowData equipConf = XBagDocument.GetEquipConf(equip.itemID); + bool flag4 = equipConf == null; + if (flag4) + { + result = 0u; + } + else + { + uint num = 0u; + int i = 1; + while (i <= this.RED_POINT_LEVEL_COUNT) + { + bool flag5 = equip.enhanceInfo.EnhanceLevel + (uint)i > this.GetMaxEnhanceLevel(); + if (flag5) + { + break; + } + EnhanceTable.RowData enhanceRowData = this.GetEnhanceRowData((uint)equipConf.EquipPos, equip.enhanceInfo.EnhanceLevel + (uint)i); + bool flag6 = enhanceRowData == null; + if (flag6) + { + break; + } + for (int j = 0; j < enhanceRowData.NeedItem.Count; j++) + { + int num2 = 0; + ulong itemcount = 0UL; + this.GetLowestItemNeedCountByID(enhanceRowData.NeedItem[j, 0], enhanceRowData.NeedItem[j, 1], ref num2, ref itemcount); + bool flag7 = !this.m_ItemsRequiredCollector.HasOwnedItem(num2); + if (flag7) + { + ulong count = 0UL; + this.GetLowestItemOwnedCountByID(enhanceRowData.NeedItem[j, 0], ref num2, ref count); + this.m_ItemsRequiredCollector.SetNewOwnedItem(num2, count); + } + this.m_ItemsRequiredCollector.GetRequiredItem((uint)num2, itemcount, 1f); + bool flag8 = !this.m_ItemsRequiredCollector.bItemsEnough; + if (flag8) + { + break; + } + } + bool flag9 = !this.m_ItemsRequiredCollector.bItemsEnough; + if (flag9) + { + break; + } + i++; + num += 1u; + } + result = num; + } + } + } + } + return result; + } + + private int _SortComparison(XEquipItem left, XEquipItem right) + { + return left.enhanceInfo.EnhanceLevel.CompareTo(right.enhanceInfo.EnhanceLevel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEnhanceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XEnhanceDocument.cs.meta new file mode 100644 index 00000000..1d272ea9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnhanceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21a5b54b24b8d634da0cd399e481f3dd +timeCreated: 1611403414 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs b/Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs new file mode 100644 index 00000000..f8d89ce1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal struct XEnhanceInfo + { + public uint EnhanceLevel; + + public uint EnhanceTimes; + + public List EnhanceAttr; + + public void Init() + { + bool flag = this.EnhanceAttr == null; + if (flag) + { + this.EnhanceAttr = new List(); + } + else + { + this.EnhanceAttr.Clear(); + } + this.EnhanceLevel = 0u; + this.EnhanceTimes = 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs.meta new file mode 100644 index 00000000..f929f64f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnhanceInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aeb1a367177f1fe4aa59648acf7f0eb8 +timeCreated: 1611404341 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEnhanceRpcState.cs b/Client/Assets/Scripts/XMainClient/XEnhanceRpcState.cs new file mode 100644 index 00000000..63f9c292 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnhanceRpcState.cs @@ -0,0 +1,14 @@ +using System; + +namespace XMainClient +{ + internal enum XEnhanceRpcState + { + ERS_NONE, + ERS_RECEIVING, + ERS_ENHANCESUCCEED, + ERS_ENHANCEFAIED, + ERS_BREAKSUCCEED, + ERS_ERR + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEnhanceRpcState.cs.meta b/Client/Assets/Scripts/XMainClient/XEnhanceRpcState.cs.meta new file mode 100644 index 00000000..3e3d7d95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnhanceRpcState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7bf10416b6a3fb945ba5dda0507718fc +timeCreated: 1611403995 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEnmityEventArgs.cs b/Client/Assets/Scripts/XMainClient/XEnmityEventArgs.cs new file mode 100644 index 00000000..7ffb784e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnmityEventArgs.cs @@ -0,0 +1,42 @@ +using System; + +namespace XMainClient +{ + internal class XEnmityEventArgs : XEventArgs + { + public XObject Starter + { + get + { + return this._starter; + } + set + { + this._starter = value; + } + } + + public XAttributeDefine AttrKey { get; set; } + + public double DeltaValue { get; set; } + + public uint SkillId { get; set; } + + protected XObject _starter = null; + + public XEnmityEventArgs() + { + this._eDefine = XEventDefine.XEvent_Enmity; + this.AttrKey = XAttributeDefine.XAttr_Invalid; + } + + public override void Recycle() + { + this.AttrKey = XAttributeDefine.XAttr_Invalid; + this.DeltaValue = 0.0; + this._starter = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEnmityEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XEnmityEventArgs.cs.meta new file mode 100644 index 00000000..27e40d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnmityEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4591f2115b28774a8612da85aa44625 +timeCreated: 1611404853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEnmityList.cs b/Client/Assets/Scripts/XMainClient/XEnmityList.cs new file mode 100644 index 00000000..e01b6374 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnmityList.cs @@ -0,0 +1,242 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEnmityList + { + public bool IsInited + { + get + { + return this._inited; + } + } + + public bool IsActive + { + get + { + return this._is_active; + } + } + + private List _hatred_list = new List(); + + private List _targets = new List(); + + private XEntity _host = null; + + private static readonly float OT_VALUE = float.Parse(XSingleton.singleton.GetValue("OTValue")); + + private bool _inited = false; + + private bool _is_active = true; + + private DateTime _last_refresh_time = DateTime.Today; + + public void Init(XEntity host) + { + bool inited = this._inited; + if (!inited) + { + this._host = host; + this._hatred_list.Clear(); + this._inited = true; + } + } + + public void Reset() + { + this._hatred_list.Clear(); + } + + public void AddHateValue(XEntity entity, float value) + { + bool flag = false; + float enmityCoefficient = XSingleton.singleton.GetEnmityCoefficient((int)entity.Attributes.Type); + float profFixedEnmity = XSingleton.singleton.GetProfFixedEnmity((int)entity.Attributes.TypeID); + float num = profFixedEnmity + value * enmityCoefficient * (float)(entity.Attributes.GetAttr(XAttributeDefine.XATTR_ENMITY_Total) / XSingleton.singleton.GeneralCombatParam); + for (int i = 0; i < this._hatred_list.Count; i++) + { + bool flag2 = this._hatred_list[i].entity == entity; + if (flag2) + { + this._hatred_list[i].value += num; + this._hatred_list[i].value = Math.Max(this._hatred_list[i].value, 0f); + flag = true; + break; + } + } + bool flag3 = !flag; + if (flag3) + { + Enmity enmity = new Enmity(); + enmity.value = Math.Max(num, 0f); + enmity.entity = entity; + this._hatred_list.Add(enmity); + } + this.UpdateHateList(); + } + + public int CompareHate(Enmity a, Enmity b) + { + return b.value.CompareTo(a.value); + } + + public void UpdateHateList() + { + bool flag = this._hatred_list.Count == 0; + if (!flag) + { + float value = this._hatred_list[0].value; + int num = 0; + float num2 = 0f; + for (int i = 1; i < this._hatred_list.Count; i++) + { + bool flag2 = !XEntity.ValideEntity(this._hatred_list[i].entity); + if (flag2) + { + this._hatred_list.RemoveAt(i); + i--; + } + } + bool flag3 = !XEntity.ValideEntity(this._hatred_list[0].entity); + if (flag3) + { + this._hatred_list.RemoveAt(0); + this._hatred_list.Sort(new Comparison(this.CompareHate)); + } + else + { + for (int j = 1; j < this._hatred_list.Count; j++) + { + bool flag4 = num == 0; + if (flag4) + { + bool flag5 = this._hatred_list[j].value > value * XEnmityList.OT_VALUE; + if (flag5) + { + num = j; + num2 = this._hatred_list[j].value; + } + } + else + { + bool flag6 = this._hatred_list[j].value > num2; + if (flag6) + { + num = j; + num2 = this._hatred_list[j].value; + } + } + } + bool flag7 = num != 0; + if (flag7) + { + Enmity value2 = this._hatred_list[0]; + this._hatred_list[0] = this._hatred_list[num]; + this._hatred_list[num] = value2; + } + Enmity item = this._hatred_list[0]; + List hatred_list = this._hatred_list; + hatred_list.RemoveAt(0); + this._hatred_list.Sort(new Comparison(this.CompareHate)); + this._hatred_list.Insert(0, item); + bool flag8 = (DateTime.Now - this._last_refresh_time).Seconds < 1; + if (!flag8) + { + this._last_refresh_time = DateTime.Now; + } + } + } + } + + public void AddInitHateValue(XEntity entity) + { + bool flag = this._hatred_list.Count != 0; + if (!flag) + { + float value = float.Parse(XSingleton.singleton.GetValue("InitEnmityValue")); + this.AddHateValue(entity, value); + } + } + + public List GetHateEntity(bool filterImmortal = false) + { + this._targets.Clear(); + this.UpdateHateList(); + bool flag = this._hatred_list.Count == 0; + List targets; + if (flag) + { + targets = this._targets; + } + else + { + bool flag2 = !this._is_active; + if (flag2) + { + targets = this._targets; + } + else + { + if (filterImmortal) + { + float num = 0f; + for (int i = 0; i < this._hatred_list.Count; i++) + { + bool flag3 = this._hatred_list[i].entity.Buffs == null || !this._hatred_list[i].entity.Buffs.IsBuffStateOn(XBuffType.XBuffType_Immortal); + if (flag3) + { + bool flag4 = num == 0f; + if (flag4) + { + num = this._hatred_list[i].value; + this._targets.Add(this._hatred_list[i].entity); + } + else + { + bool flag5 = num == this._hatred_list[i].value; + if (flag5) + { + this._targets.Add(this._hatred_list[i].entity); + } + } + } + } + } + else + { + float num2 = 0f; + for (int j = 0; j < this._hatred_list.Count; j++) + { + bool flag6 = num2 == 0f; + if (flag6) + { + num2 = this._hatred_list[j].value; + this._targets.Add(this._hatred_list[j].entity); + } + else + { + bool flag7 = num2 == this._hatred_list[j].value; + if (flag7) + { + this._targets.Add(this._hatred_list[j].entity); + } + } + } + } + targets = this._targets; + } + } + return targets; + } + + public void SetActive(bool active) + { + this._is_active = active; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEnmityList.cs.meta b/Client/Assets/Scripts/XMainClient/XEnmityList.cs.meta new file mode 100644 index 00000000..77d6c1f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEnmityList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62f97cf0fe2fbc04e94208501bb0a060 +timeCreated: 1611403843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEntity.cs b/Client/Assets/Scripts/XMainClient/XEntity.cs new file mode 100644 index 00000000..2c87f4ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEntity.cs @@ -0,0 +1,2188 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XEntity : XObject + { + public bool IsVisible + { + get + { + return this._isVisible; + } + } + + public XMount Mount + { + get + { + return this._mount; + } + } + + public List Affiliates + { + get + { + return this._affiliates; + } + } + + public XNavigationComponent Nav + { + get + { + return this._nav; + } + set + { + this._nav = value; + } + } + + public virtual XAttributes Attributes + { + get + { + return this._attr; + } + } + + public XStateMachine Machine + { + get + { + return this._machine; + } + } + + public XSkillComponent Skill + { + get + { + return this._skill; + } + } + + public XPresentComponent Present + { + get + { + return this._present; + } + } + + public XBuffComponent Buffs + { + get + { + return this._buff; + } + } + + public XNetComponent Net + { + get + { + return this._net; + } + } + + public XRotationComponent Rotate + { + get + { + return this._rotate; + } + } + + public XSkillMgr SkillMgr + { + get + { + return (this.Skill != null) ? this.Skill.SkillMgr : null; + } + } + + public XBeHitComponent BeHit + { + get + { + return this._behit; + } + } + + public XDeathComponent Death + { + get + { + return this._death; + } + } + + public XEquipComponent Equipment + { + get + { + return this._equip; + } + } + + public XFlyComponent Fly + { + get + { + return this._fly; + } + } + + public XQuickTimeEventComponent QTE + { + get + { + return this._qte; + } + } + + public XRenderComponent Renderer + { + get + { + return this._render; + } + set + { + this._render = value; + } + } + + public XAudioComponent Audio + { + get + { + return this._audio; + } + } + + public XBillboardComponent BillBoard + { + get + { + return this._billboard; + } + set + { + this._billboard = value; + } + } + + public XAIComponent AI + { + get + { + return this._ai; + } + set + { + this._ai = value; + } + } + + public uint ServerSpecialState + { + get + { + return this._server_special_state; + } + set + { + this._server_special_state = value; + } + } + + public virtual bool IsFighting + { + get + { + bool flag = this._ai != null; + return flag && this._ai.IsFighting; + } + } + + public virtual bool HasAI + { + get + { + return this._ai != null; + } + } + + public bool CanSelected { get; set; } + + public bool IsPassive + { + get + { + return this._passive; + } + set + { + this._passive = value; + } + } + + public bool IsClientPredicted + { + get + { + return this._client_predicted && !this._passive; + } + } + + public bool IsNavigating + { + get + { + return this._nav != null && this._nav.IsOnNav; + } + } + + public bool IsServerFighting + { + get + { + return this._server_fighting; + } + set + { + this._server_fighting = value; + } + } + + public bool IsDisappear + { + get + { + return this._bDisappear; + } + set + { + this._bDisappear = value; + } + } + + public bool IsTransform + { + get + { + return XEntity.ValideEntity(this._transformer); + } + } + + public XEntity Transformer + { + get + { + return this._transformer; + } + } + + public XEntity Transformee + { + get + { + return this._transformee; + } + } + + public XEntity RealEntity + { + get + { + return this.IsTransform ? this._transformer : this; + } + } + + public bool CachedSpecialStateFromServer + { + get + { + return this._last_special_state_from_server > 0UL; + } + } + + public float Height + { + get + { + return this._height; + } + } + + public float Radius + { + get + { + return this._radius; + } + } + + public Vector3 RadiusCenter + { + get + { + return this._xobject.Position + this._xobject.Rotation * (this._present.RadiusOffset * this._scale); + } + } + + public XAnimator Ator + { + get + { + return this.IsTransform ? this._transformer.Ator : ((this._xobject != null) ? this._xobject.Ator : null); + } + } + + public int DefaultLayer + { + get + { + return this._layer; + } + } + + public bool StandOn + { + get + { + return this._bStandOn; + } + } + + public bool IsMounted + { + get + { + return this._mount != null; + } + } + + public bool IsCopilotMounted + { + get + { + return this.IsMounted && this._is_mount_copilot; + } + } + + public bool GravityDisabled + { + get + { + return this._gravity_disabled; + } + } + + public int EntityType + { + get + { + return XFastEnumIntEqualityComparer.ToInt(this._eEntity_Type); + } + } + + public bool IsPlayer + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Player) > (XEntity.EnitityType)0; + } + } + + public bool IsRole + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Role) > (XEntity.EnitityType)0; + } + } + + public bool IsOpposer + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Opposer) > (XEntity.EnitityType)0; + } + } + + public bool IsEnemy + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Enemy) > (XEntity.EnitityType)0; + } + } + + public bool IsPuppet + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Puppet) > (XEntity.EnitityType)0; + } + } + + public bool IsBoss + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Boss) > (XEntity.EnitityType)0; + } + } + + public bool IsElite + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Elite) > (XEntity.EnitityType)0; + } + } + + public bool IsNpc + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Npc) > (XEntity.EnitityType)0; + } + } + + public bool IsDummy + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Dummy) > (XEntity.EnitityType)0; + } + } + + public bool IsSubstance + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Substance) > (XEntity.EnitityType)0; + } + } + + public bool IsEmpty + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Empty) > (XEntity.EnitityType)0; + } + } + + public bool IsAffiliate + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Affiliate) > (XEntity.EnitityType)0; + } + } + + public bool IsMountee + { + get + { + return (this._eEntity_Type & XEntity.EnitityType.Entity_Mount) > (XEntity.EnitityType)0; + } + } + + public bool IsMainViewEntity + { + get + { + return this.IsPlayer || (XSingleton.singleton.Player != null && XSingleton.singleton.Player.WatchTo == this); + } + } + + public bool IsDead + { + get + { + return this._attr == null || this._attr.IsDead; + } + } + + public float Scale + { + get + { + return this._scale; + } + set + { + this._scale = value; + bool flag = this._present != null; + if (flag) + { + this._height = this._present.PresentLib.BoundHeight; + this._radius = this._present.PresentLib.BoundRadius; + } + this._height *= this._scale; + this._radius *= this._scale; + } + } + + public string Name + { + get + { + return (this._attr == null) ? "NULL" : this._attr.Name; + } + } + + public virtual uint TypeID + { + get + { + return (this._attr == null) ? 0u : this._attr.TypeID; + } + } + + public virtual uint PresentID + { + get + { + return (this._attr == null) ? 0u : this._attr.PresentID; + } + } + + public virtual uint PowerPoint + { + get + { + return (this._attr == null) ? 0u : ((uint)this._attr.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Total)); + } + } + + public virtual uint SkillCasterTypeID + { + get + { + return (this._attr == null) ? 0u : this._attr.TypeID; + } + } + + public int Wave + { + get + { + return this._wave; + } + set + { + this._wave = value; + } + } + + public float CreateTime + { + get + { + return this._create_time; + } + set + { + this._create_time = value; + } + } + + public override XGameObject EngineObject + { + get + { + return this._xobject; + } + } + + public XGameObject MoveObj + { + get + { + return this.IsMounted ? this._mount.EngineObject : this.EngineObject; + } + } + + public virtual string Prefab + { + get + { + return (this._attr == null) ? string.Empty : this._attr.Prefab; + } + } + + public XStateDefine CurState + { + get + { + return this._machine.Current; + } + } + + public long ActionToken + { + get + { + return this._machine.ActionToken; + } + } + + public XEntity MobbedBy { get; set; } + + public bool LifewithinMobbedSkill { get; set; } + + public bool MobShieldable { get; set; } + + public bool MobShield + { + get + { + return this.MobbedBy != null && this._mob_shield; + } + set + { + bool flag = this.MobbedBy == null; + if (!flag) + { + bool flag2 = this._mob_shield != value; + if (flag2) + { + this._mob_shield = value; + this.OnHide(this._mob_shield, BillBoardHideType.Filter); + } + } + } + } + + protected bool _client_predicted = false; + + protected bool _passive = false; + + protected bool _using_cc_move = false; + + protected XPresentComponent _present = null; + + protected XStateMachine _machine = null; + + protected XSkillComponent _skill = null; + + protected XBuffComponent _buff = null; + + protected XNetComponent _net = null; + + protected XRotationComponent _rotate = null; + + protected XBeHitComponent _behit = null; + + protected XDeathComponent _death = null; + + protected XNavigationComponent _nav = null; + + protected XEquipComponent _equip = null; + + protected XRenderComponent _render = null; + + protected XFlyComponent _fly = null; + + protected XAIComponent _ai = null; + + protected XQuickTimeEventComponent _qte = null; + + protected XAudioComponent _audio = null; + + protected XBillboardComponent _billboard = null; + + protected float _airthreshold = 0.1f; + + protected float _height = 0f; + + protected float _radius = 0f; + + protected float _scale = 1f; + + protected bool _bStandOn = false; + + protected bool _bDisappear = false; + + protected bool _gravity_disabled = false; + + private bool _mob_shield = false; + + protected XEntity.EnitityType _eEntity_Type = XEntity.EnitityType.Entity_None; + + protected int _layer = 0; + + private int _wave = -1; + + private float _create_time = 0f; + + private uint _slow_motion_token = 0u; + + private bool _server_fighting = false; + + private Vector3 _next_pos = Vector3.zero; + + private Vector3 _next_face = Vector3.zero; + + private uint _next_timer_token = 0u; + + private uint _server_special_state = 0u; + + private ulong _last_special_state_from_server = 0UL; + + protected Vector3 _movement = Vector3.zero; + + protected Vector3 _server_movement = Vector3.zero; + + protected XGameObject _xobject = null; + + protected XEntity _transformer = null; + + protected XEntity _transformee = null; + + protected XMount _mount = null; + + protected bool _is_mount_copilot = false; + + protected Animator _childAtor = null; + + private static CommandCallback _initChildAtorCb = new CommandCallback(XEntity._InitChildAtor); + + protected bool _isVisible = true; + + private List _affiliates = new List(); + + private XTimerMgr.ElapsedEventHandler _translationCb = null; + + private XTimerMgr.ElapsedEventHandler _endSlowMotionCb = null; + + private static float m_AnimLength = -1f; + + private static XAnimationClip m_xclip = null; + + private static OverrideAnimCallback m_AnimLoadCb = new OverrideAnimCallback(XEntity.AnimLoadCallback); + + protected enum EnitityType + { + Entity_None = 1, + Entity_Role, + Entity_Player = 4, + Entity_Enemy = 8, + Entity_Opposer = 16, + Entity_Boss = 32, + Entity_Puppet = 64, + Entity_Elite = 128, + Entity_Npc = 256, + Entity_Dummy = 512, + Entity_Empty = 1024, + Entity_Substance = 2048, + Entity_Temp = 4096, + Entity_Affiliate = 8192, + Entity_Mount = 16384 + } + + protected enum InitFlag + { + Entity_Transform = 1 + } + + public Vector3 HugeMonsterColliderCenter(int idx) + { + SeqListRef hugeMonsterColliders = this.Present.PresentLib.HugeMonsterColliders; + return this.EngineObject.Position + this.EngineObject.Rotation * (new Vector3(hugeMonsterColliders[idx, 0], 0f, hugeMonsterColliders[idx, 1]) * this._scale); + } + + public void DisableGravity() + { + this._gravity_disabled = true; + } + + public static bool IsSameType(XEntity lhs, XEntity rhs) + { + return lhs._eEntity_Type == rhs._eEntity_Type; + } + + public XEntity() + { + this._translationCb = new XTimerMgr.ElapsedEventHandler(this.Translation); + this._endSlowMotionCb = new XTimerMgr.ElapsedEventHandler(this.EndSlowMotion); + this.CanSelected = true; + } + + public float SubDelay(float t) + { + bool isPlayer = this.IsPlayer; + float result; + if (isPlayer) + { + float num = (float)XSingleton.singleton.GetDelay() / 1000f; + result = ((num > 0.15f) ? (t - 0.15f) : (t - num)); + } + else + { + result = t; + } + return result; + } + + public float GetDelay() + { + return (float)XSingleton.singleton.GetDelay() / 1000f; + } + + public static bool ValideEntity(XEntity e) + { + return e != null && !e.IsDead && !e.Deprecated && !e.Destroying; + } + + public override void OnCreated() + { + XFightGroupDocument.OnCalcFightGroup(this); + base.OnCreated(); + XOnEntityCreatedArgs @event = XEventPool.GetEvent(); + @event.entity = this; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + this._TryCreateHUDComponent(); + bool flag = this.IsRole && !this.IsPlayer; + if (flag) + { + switch (this.Attributes.Outlook.state.type) + { + case OutLookStateType.OutLook_Sit: + this.PlaySpecifiedAnimation(XHomeCookAndPartyDocument.Doc.GetHomeFeastAction(this.Attributes.BasicTypeID % 10u)); + break; + case OutLookStateType.OutLook_Dance: + this.PlaySpecifiedAnimation(XDanceDocument.Doc.GetDanceAction(this.PresentID, this.Attributes.Outlook.state.param)); + break; + case OutLookStateType.OutLook_RidePet: + XPetDocument.TryMount(true, this, this.Attributes.Outlook.state.param, true); + break; + case OutLookStateType.OutLook_Inherit: + XGuildInheritDocument.TryInInherit(this); + break; + case OutLookStateType.OutLook_RidePetCopilot: + { + XEntity entity = XSingleton.singleton.GetEntity(this.Attributes.Outlook.state.paramother); + bool flag2 = entity != null; + if (flag2) + { + XPetDocument.TryMountCopilot(true, this, entity, true); + } + break; + } + } + } + bool flag3 = XSingleton.singleton.IsPlaying && XSingleton.singleton.IsExcludeNewBorn; + if (flag3) + { + XSingleton.singleton.Puppets(this, true, true); + } + else + { + bool flag4 = !this.IsPlayer; + if (flag4) + { + bool flag5 = this._attr != null && this._attr.SoloShow; + if (flag5) + { + XOthersAttributes xothersAttributes = this._attr as XOthersAttributes; + bool flag6 = xothersAttributes == null || !xothersAttributes.GeneralCutScene; + if (flag6) + { + XSingleton.singleton.GameCamera.TrySolo(); + } + } + else + { + XSingleton.singleton.GameCamera.TrySolo(); + } + bool flag7 = this._present != null; + if (flag7) + { + this._present.ShowUp(); + } + } + else + { + XSingleton.singleton.Puppets(this, false, false); + } + } + bool flag8 = !this.IsPlayer; + if (flag8) + { + bool flag9 = this._nav != null; + if (flag9) + { + this._nav.Active(); + } + bool flag10 = this._ai != null; + if (flag10) + { + this._ai.Active(); + } + } + bool flag11 = !this.IsNpc; + if (flag11) + { + XSingleton.singleton.CreateComponent(this, XGravityComponent.uuID); + } + this.SetCollisionLayer(this._layer); + bool flag12 = !this.IsPlayer; + if (flag12) + { + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(this); + bool flag13 = xsecurityStatistics != null; + if (flag13) + { + xsecurityStatistics.OnStart(); + } + } + bool flag14 = XSingleton.singleton.SceneType == SceneType.SCENE_WORLDBOSS || XSingleton.singleton.SceneType == SceneType.SCENE_GUILD_BOSS; + if (flag14) + { + bool isBoss = this.IsBoss; + if (isBoss) + { + this.IsServerFighting = true; + } + } + this.InitChildAtor(); + } + + public override void OnDestroy() + { + bool flag = this._next_timer_token > 0u; + if (flag) + { + this.Translation(this); + } + bool flag2 = this._xobject == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("XEntity Destory error", this.Name, null, null, null, null); + } + else + { + this._xobject.SetParent(null); + bool flag3 = this.Nav != null; + if (flag3) + { + base.DetachComponent(XNavigationComponent.uuID); + } + bool flag4 = this.MobbedBy != null && !this.MobbedBy.Deprecated && this.MobbedBy.Skill != null; + if (flag4) + { + this.MobbedBy.Skill.RemoveSkillMob(this); + } + this.MobbedBy = null; + bool isMounted = this.IsMounted; + if (isMounted) + { + bool isCopilotMounted = this.IsCopilotMounted; + if (isCopilotMounted) + { + this._mount.UnMountEntity(this); + } + else + { + this._mount.UnMountAll(); + this._mount.OnDestroy(); + this._mount = null; + } + } + bool isTransform = this.IsTransform; + if (isTransform) + { + XSingleton.singleton.DestroyImmediate(this._transformer); + this._transformer = null; + } + XFightGroupDocument.OnDecalcFightGroup(this); + base.OnDestroy(); + } + } + + public bool HasComeOnPresent() + { + return this.SkillMgr != null && this.SkillMgr.GetAppearIdentity() != 0u && (!this.IsRole || XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID).ShowUp); + } + + public void DestroyAffiliate(XAffiliate affiliate) + { + for (int i = 0; i < this._affiliates.Count; i++) + { + bool flag = this._affiliates[i] == affiliate; + if (flag) + { + affiliate.OnDestroy(); + this._affiliates.RemoveAt(i); + break; + } + } + } + + public void TriggerDeath(XEntity killer) + { + bool flag = this._attr != null && this._attr.IsDead; + if (!flag) + { + this._attr.IsDead = true; + XRealDeadEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this; + @event.Killer = killer; + XSingleton.singleton.FireEvent(@event); + @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + @event.Killer = killer; + @event.TheDead = this; + XSingleton.singleton.FireEvent(@event); + XSingleton.singleton.OnMonsterDie(this); + } + } + + public void UpdateSpecialStateFromServer(uint specialstate, uint mask) + { + this._server_special_state = specialstate; + bool flag = ((ulong)mask & (ulong)(1L << (XFastEnumIntEqualityComparer.ToInt(UnitSpecialState.Unit_Puppet) & 31))) > 0UL; + if (flag) + { + bool freezed = ((ulong)specialstate & (ulong)(1L << (XFastEnumIntEqualityComparer.ToInt(UnitSpecialState.Unit_Puppet) & 31))) > 0UL; + bool isPlayer = this.IsPlayer; + if (isPlayer) + { + bool flag2 = mask == uint.MaxValue; + if (flag2) + { + XSingleton.singleton.UnFreezed(); + } + XSingleton.singleton.Freezed = freezed; + } + } + bool flag3 = ((ulong)mask & (ulong)(1L << (XFastEnumIntEqualityComparer.ToInt(UnitSpecialState.Unit_Invisible) & 31))) > 0UL; + if (flag3) + { + bool flag4 = ((ulong)specialstate & (ulong)(1L << (XFastEnumIntEqualityComparer.ToInt(UnitSpecialState.Unit_Invisible) & 31))) > 0UL; + this.RendererToggle(!flag4); + } + } + + public KKSG.XQTEState GetQTESpecificPhase() + { + XStateDefine xstateDefine = this.Machine.Current; + KKSG.XQTEState result; + if (xstateDefine != XStateDefine.XState_Freeze) + { + if (xstateDefine != XStateDefine.XState_BeHit) + { + result = KKSG.XQTEState.QTE_None; + } + else + { + result = this._behit.GetQTESpecificPhase(); + } + } + else + { + result = KKSG.XQTEState.QTE_HitFreeze; + } + return result; + } + + public void ApplyMove(Vector3 movement) + { + this._movement += movement; + } + + public void ApplyMove(float x, float y, float z) + { + this._movement.x = this._movement.x + x; + this._movement.z = this._movement.z + z; + this._movement.y = this._movement.y + y; + } + + public void LookTo(Vector3 forward) + { + bool flag = this.MoveObj != null; + if (flag) + { + this.MoveObj.Forward = forward; + } + bool flag2 = this.Rotate != null; + if (flag2) + { + this.Rotate.Cancel(); + } + } + + protected virtual void PositionTo(Vector3 pos) + { + bool flag = this.MoveObj != null; + if (flag) + { + this.MoveObj.Position = pos; + } + bool flag2 = this.MoveObj != null; + if (flag2) + { + this.MoveObj.Move(Vector3.down); + } + bool flag3 = this._net != null; + if (flag3) + { + this._net.CorrectNet(pos); + } + bool flag4 = this.IsPlayer && XSingleton.singleton.GameCamera.Wall != null; + if (flag4) + { + XSingleton.singleton.GameCamera.Wall.EndEffect(); + XSingleton.singleton.GameCamera.Wall.TargetY = XSingleton.singleton.GameCamera.Root_R_Y; + } + } + + public virtual void CorrectMe(Vector3 pos, Vector3 face, bool reconnected = false, bool fade = false) + { + pos.y = XSingleton.singleton.TerrainY(pos) + ((this.MoveObj != null && this.MoveObj.EnableCC) ? 0.25f : 0.05f); + bool flag = this._nav != null; + if (flag) + { + this._nav.Interrupt(); + } + if (reconnected) + { + this.LookTo(face); + this.PositionTo(pos); + } + else + { + bool flag2 = this.IsPlayer || (XSingleton.singleton.bSpectator && this == XSingleton.singleton.Player.WatchTo); + if (flag2) + { + bool isPlayer = this.IsPlayer; + if (isPlayer) + { + XSingleton.singleton.Idled(this); + } + if (fade) + { + this._net.Pause = true; + this._next_pos = pos; + this._next_face = face; + XAutoFade.FadeOut2In(1f, 0.5f); + bool isPlayer2 = this.IsPlayer; + if (isPlayer2) + { + XSingleton.singleton.Freezed = true; + XSingleton.singleton.EnablePlayerAI(false); + } + bool flag3 = this._next_timer_token > 0u; + if (flag3) + { + XSingleton.singleton.KillTimer(this._next_timer_token); + bool isPlayer3 = this.IsPlayer; + if (isPlayer3) + { + XSingleton.singleton.Freezed = false; + XSingleton.singleton.EnablePlayerAI(true); + } + } + this._next_timer_token = XSingleton.singleton.SetTimer(0.47f, this._translationCb, null); + } + else + { + this.LookTo(face); + this.PositionTo(pos); + } + } + else + { + this.LookTo(face); + this.PositionTo(pos); + } + } + } + + public virtual void OnTransform(uint to) + { + bool destroying = base.Destroying; + if (!destroying) + { + bool flag = this.Machine != null; + if (flag) + { + this.Machine.OnAnimationOverrided(); + } + bool flag2 = this.Skill != null && this.Skill.IsCasting(); + if (flag2) + { + this.Skill.EndSkill(true, true); + } + else + { + bool flag3 = this.Machine != null; + if (flag3) + { + this.Machine.ForceToDefaultState(false); + } + } + this.TransformFigture(to); + this.TransformSkill(to); + } + } + + private void TransformFigture(uint to) + { + bool flag = this.IsTransform && this._transformer.TypeID == to; + if (!flag) + { + bool flag2 = this._equip != null && !this._equip.IsVisible; + if (!flag2) + { + bool isTransform = this.IsTransform; + bool isDisappear; + if (isTransform) + { + isDisappear = this._transformer.IsDisappear; + XRenderComponent.OnTransform(this._transformer, this, false); + bool isMustTransform = XSingleton.singleton.IsMustTransform; + if (isMustTransform) + { + this.EngineObject.ClearTransformPhysic(); + } + bool flag3 = this._transformer._present != null; + if (flag3) + { + this._transformer._present.OnTransform(this, false); + } + this._transformer.SetCollisionLayer(this._transformer.DefaultLayer); + this._transformer.EngineObject.SetRenderLayer(this._transformer.DefaultLayer); + XSingleton.singleton.DestroyImmediate(this._transformer); + this._transformer = null; + } + else + { + bool flag4 = to == 0u; + if (flag4) + { + return; + } + isDisappear = this.IsDisappear; + } + bool flag5 = to > 0u; + if (flag5) + { + this._transformer = XSingleton.singleton.CreateTransform(to, this._xobject.Position, this._xobject.Rotation, false, this, (uint)XFastEnumIntEqualityComparer.ToInt(FightGroupType.FightNeutral)); + bool flag6 = this._transformer != null; + if (flag6) + { + this.InnerRendererToggle(false); + bool flag7 = this.IsMounted && !this.IsCopilotMounted; + if (flag7) + { + this.Mount.RendererToggle(false); + } + this._transformer.RendererToggle(!isDisappear); + this._transformer.IsDisappear = isDisappear; + bool flag8 = this._transformer.Ator != null; + if (flag8) + { + this._transformer.Ator.speed = 1f; + } + XRenderComponent.OnTransform(this, this._transformer, true); + bool isMustTransform2 = XSingleton.singleton.IsMustTransform; + if (isMustTransform2) + { + this.EngineObject.TransformPhysic(this._transformer.EngineObject); + } + this._transformer.SetCollisionLayer(this.DefaultLayer); + this._transformer.EngineObject.SetRenderLayer(this.DefaultLayer); + bool flag9 = this._transformer._present != null; + if (flag9) + { + this._transformer._present.OnTransform(this, true); + } + } + } + else + { + this.RendererToggle(!isDisappear); + this.IsDisappear = isDisappear; + bool flag10 = this.Ator != null; + if (flag10) + { + this.Ator.speed = 1f; + } + bool flag11 = !this.IsDisappear && this.Ator != null; + if (flag11) + { + this.Ator.SetTrigger("EndSkill"); + } + } + } + } + } + + private void TransformSkill(uint to) + { + bool flag = this._skill != null; + if (flag) + { + XEntityPresentation.RowData template = null; + bool flag2 = to == 0u; + if (flag2) + { + template = null; + } + else + { + bool isTransform = this.IsTransform; + if (isTransform) + { + template = this._transformer.Present.PresentLib; + } + else + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(to); + bool flag3 = byID != null; + if (flag3) + { + template = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + } + } + } + this._skill.ReAttachSkill(template, to); + } + } + + public void OnTransform(XEntity transformee) + { + this._transformee = transformee; + } + + private static void OnScale(XEntity entity, uint scaleParam) + { + float num = 1f; + bool flag = scaleParam == 0u; + if (flag) + { + entity.Scale = entity.Present.PresentLib.Scale; + Vector3 localScale = Vector3.one * entity.Scale; + entity.EngineObject.LocalScale = localScale; + } + else + { + num = scaleParam * 0.001f; + entity.Scale = entity.Present.PresentLib.Scale * num; + Vector3 localScale2 = Vector3.one * entity.Scale; + entity.EngineObject.LocalScale = localScale2; + num *= 1.5f; + } + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + XSingleton.singleton.SetShadowScale(num); + } + } + + public void OnScale(uint scaleParam) + { + XEntity.OnScale(this, scaleParam); + bool isTransform = this.IsTransform; + if (isTransform) + { + XEntity.OnScale(this._transformer, scaleParam); + } + } + + private void Translation(object o) + { + this._next_timer_token = 0u; + this._net.Pause = false; + bool isPlayer = this.IsPlayer; + if (isPlayer) + { + XSingleton.singleton.Freezed = false; + } + bool flag = o == this; + if (!flag) + { + bool flag2 = this.MoveObj != null; + if (flag2) + { + this.LookTo(this._next_face); + XSingleton.singleton.GameCamera.YRotateEx(XSingleton.singleton.AngleToFloat(this.MoveObj.Forward)); + this.PositionTo(this._next_pos); + bool isPlayer2 = this.IsPlayer; + if (isPlayer2) + { + XSingleton.singleton.EnablePlayerAI(true); + } + } + } + } + + public void DyingCloseUp() + { + bool flag = !XSingleton.singleton.IsPlaying && !this.Present.PresentLib.Huge; + if (flag) + { + bool flag2 = XSingleton.singleton.GameCamera.Solo != null; + if (flag2) + { + XSingleton.singleton.GameCamera.Solo.Stop(); + } + XCameraMotionData xcameraMotionData = new XCameraMotionData(); + xcameraMotionData.AutoSync_At_Begin = true; + xcameraMotionData.Coordinate = CameraMotionSpace.World; + xcameraMotionData.Follow_Position = false; + xcameraMotionData.LookAt_Target = false; + xcameraMotionData.At = 0f; + xcameraMotionData.Motion = ((this.Height > 2f) ? "Animation/Main_Camera/Main_Camera_die_bigguy" : "Animation/Main_Camera/Main_Camera_die"); + XCameraMotionEventArgs @event = XEventPool.GetEvent(); + @event.Motion = xcameraMotionData; + @event.Target = this; + @event.Trigger = "ToEffect"; + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + this.BeginSlowMotion(0.3f, 1f, true); + } + } + + public virtual void Dying() + { + XOthersAttributes xothersAttributes = this.Attributes as XOthersAttributes; + bool flag = xothersAttributes != null && xothersAttributes.EndShow; + if (flag) + { + this.DyingCloseUp(); + } + } + + public virtual void Died() + { + XSingleton.singleton.DestroyEntity(this); + } + + public bool Initilize(XGameObject o, XAttributes attr, bool transform) + { + this._layer = o.Layer; + base.AttachComponent(attr); + this._attr = attr; + this._using_cc_move = this.IsPlayer; + this._xobject = o; + this._xobject.UID = this.ID; + this._xobject.Name = this.ID.ToString(); + this._client_predicted = XSingleton.singleton.IsViewGridScene; + int flag = transform ? XFastEnumIntEqualityComparer.ToInt(XEntity.InitFlag.Entity_Transform) : 0; + bool result = this.Initilize(flag); + bool isPlayer = this.IsPlayer; + if (isPlayer) + { + this._xobject.EnableCC = true; + this._xobject.EnableBC = false; + } + else + { + this._xobject.EnableCC = false; + this._xobject.EnableBC = true; + } + return result; + } + + public override void Uninitilize() + { + bool flag = this._skill != null; + if (flag) + { + bool flag2 = this._skill.IsCasting(); + if (flag2) + { + this._skill.EndSkill(false, false); + } + } + bool flag3 = this._machine != null; + if (flag3) + { + this._machine.ForceToDefaultState(false); + } + string text = (this._attr != null) ? this._attr.Prefab : null; + base.Uninitilize(); + bool flag4 = this._childAtor != null; + if (flag4) + { + this._childAtor.enabled = false; + Transform transform = this._xobject.Find(""); + bool flag5 = transform != null; + if (flag5) + { + XSingleton.singleton.EnableParticle(transform.gameObject, false); + } + this._childAtor = null; + } + bool flag6 = this._xobject != null; + if (flag6) + { + XGameObject.DestroyXGameObject(this._xobject); + this._xobject = null; + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + this._gravity_disabled = false; + bool flag = this.IsMounted && this.IsCopilotMounted; + if (flag) + { + this.EngineObject.Update(); + } + else + { + this.Move(); + } + this._movement.y = 0f; + bool flag2 = !XSingleton.singleton.SyncMode || this.IsSubstance; + if (flag2) + { + this.SetDynamicLayer(this._movement.sqrMagnitude); + } + this._movement = Vector3.zero; + this._server_movement = Vector3.zero; + this.UpdateMoveTracker(); + this.MoveObj.Update(); + } + + public override void PostUpdate(float fDeltaT) + { + base.PostUpdate(fDeltaT); + bool isTransform = this.IsTransform; + if (isTransform) + { + this.Transformer.PostUpdate(fDeltaT); + } + bool flag = this.IsMounted && !this.IsCopilotMounted; + if (flag) + { + this._mount.PostUpdate(fDeltaT); + } + for (int i = 0; i < this._affiliates.Count; i++) + { + this._affiliates[i].PostUpdate(fDeltaT); + } + } + + public void OverrideAnimClip(string motion, string clipname, bool shortPath, bool force = false) + { + this.OverrideAnimClip(motion, clipname, shortPath, null, force); + } + + public void OverrideAnimClip(string motion, string clipname, bool shortPath, OverrideAnimCallback overrideAnim, bool force = false) + { + bool flag = string.IsNullOrEmpty(clipname); + if (!flag) + { + bool flag2 = this.Ator != null; + if (flag2) + { + if (shortPath) + { + XPresentComponent xpresentComponent = this.IsTransform ? this.Transformer.Present : this.Present; + clipname = xpresentComponent.ActionPrefix + clipname; + } + this.Ator.OverrideAnim(motion, clipname, overrideAnim, force); + } + } + } + + private static void AnimLoadCallback(XAnimationClip clip) + { + XEntity.m_AnimLength = ((clip != null) ? clip.length : -1f); + XEntity.m_xclip = clip; + } + + public float OverrideAnimClipGetLength(string motion, string clipname, bool shortPath) + { + XEntity.m_AnimLength = -1f; + bool flag = string.IsNullOrEmpty(clipname); + float animLength; + if (flag) + { + animLength = XEntity.m_AnimLength; + } + else + { + bool flag2 = this.Ator != null; + if (flag2) + { + if (shortPath) + { + XPresentComponent xpresentComponent = this.IsTransform ? this.Transformer.Present : this.Present; + clipname = xpresentComponent.ActionPrefix + clipname; + } + this.Ator.OverrideAnim(motion, clipname, XEntity.m_AnimLoadCb, false); + } + animLength = XEntity.m_AnimLength; + } + return animLength; + } + + public void OverrideAnimClipGetClip(string motion, string clipname, bool shortPath, bool forceOverride, out XAnimationClip outClip) + { + XEntity.m_AnimLength = -1f; + XEntity.m_xclip = null; + bool flag = string.IsNullOrEmpty(clipname); + if (flag) + { + outClip = null; + } + else + { + bool flag2 = this.Ator != null; + if (flag2) + { + if (shortPath) + { + XPresentComponent xpresentComponent = this.IsTransform ? this.Transformer.Present : this.Present; + clipname = xpresentComponent.ActionPrefix + clipname; + } + this.Ator.OverrideAnim(motion, clipname, XEntity.m_AnimLoadCb, forceOverride); + } + outClip = XEntity.m_xclip; + XEntity.m_xclip = null; + } + } + + public virtual void PlaySpecifiedAnimation(string anim) + { + } + + public void SetCollisionLayer(int layer) + { + bool flag = this._xobject != null && this._xobject.Layer != layer; + if (flag) + { + this._xobject.Layer = layer; + bool flag2 = this.IsMounted && !this.IsCopilotMounted; + if (flag2) + { + this._mount.SetCollisionLayer(layer); + } + } + bool flag3 = layer == XPlayer.PlayerLayer; + if (flag3) + { + this._xobject.EnableCC = true; + this._xobject.EnableBC = false; + } + else + { + this._xobject.EnableCC = false; + this._xobject.EnableBC = true; + } + } + + public void BeginSlowMotion(float factor, float duration, bool withcameraeffect = false) + { + XSingleton.singleton.TimeMagic(factor); + bool flag = this._slow_motion_token > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._slow_motion_token); + } + this._slow_motion_token = XSingleton.singleton.SetTimer(duration, this._endSlowMotionCb, withcameraeffect ? this : null); + } + + protected void StickOnGround(float outy) + { + float num = 0f; + bool flag = outy > 0f; + if (flag) + { + num = outy; + } + else + { + bool flag2 = !XSingleton.singleton.TryGetTerrainY(this.MoveObj.Position, out num); + if (flag2) + { + return; + } + } + bool flag3 = this.MoveObj.Position.y <= num; + if (flag3) + { + Vector3 position = this.MoveObj.Position; + position.y = num + 0.01f; + this.MoveObj.Position = position; + this._bStandOn = (this._fly == null || this._behit.LaidOnGround()); + } + } + + protected virtual void Move() + { + bool flag = !this._machine.State.SyncPredicted; + if (flag) + { + this._movement.x = this._server_movement.x; + this._movement.z = this._server_movement.z; + } + bool flag2 = this._movement.x != 0f || this._movement.z != 0f || this._movement.y > 0f || !this._bStandOn; + if (flag2) + { + Vector3 vector = this.MoveObj.Position + this._movement; + float num = 0f; + bool flag3 = XSingleton.singleton.TryGetTerrainY(vector, out num); + if (flag3) + { + bool flag4 = num < 0f; + if (flag4) + { + bool syncPredicted = this._machine.State.SyncPredicted; + if (syncPredicted) + { + this._bStandOn = false; + float num2 = XSingleton.singleton.TerrainY(this.MoveObj.Position); + bool flag5 = vector.y < num2; + if (flag5) + { + vector.y = num2; + } + } + else + { + bool flag6 = !this.IsPlayer; + if (flag6) + { + vector.y = this.MoveObj.Position.y; + this.MoveObj.Position = vector; + this._bStandOn = true; + } + } + } + else + { + bool using_cc_move = this._using_cc_move; + if (using_cc_move) + { + Vector3 position = this.MoveObj.Position; + this._bStandOn = this.ControllerMove(this.MoveObj); + bool flag7 = !XSingleton.singleton.TryGetTerrainY(this.MoveObj.Position, out num) || num < 0f; + if (flag7) + { + this.MoveObj.Position = position; + } + else + { + bool bStandOn = this._bStandOn; + if (bStandOn) + { + bool flag8 = this.MoveObj.Position.y < num && num - this.MoveObj.Position.y > 0.05f; + if (flag8) + { + this._bStandOn = false; + } + } + else + { + num = -1f; + } + } + } + else + { + bool flag9 = !this._machine.State.SyncPredicted || XSingleton.singleton.CheckDynamicBlock(this.MoveObj.Position, vector); + if (flag9) + { + this.MoveObj.Position = vector; + this._bStandOn = false; + } + } + } + bool flag10 = !this._bStandOn; + if (flag10) + { + vector.x = this.MoveObj.Position.x; + vector.z = this.MoveObj.Position.z; + this.MoveObj.Position = vector; + this.StickOnGround(num); + } + bool flag11 = this.EngineObject != this.MoveObj; + if (flag11) + { + this.EngineObject.SyncPos(); + } + } + } + } + + //c 移动 + protected bool ControllerMove(XGameObject moveObj) + { + Vector3 position = moveObj.Position; + CollisionFlags collisionFlags = moveObj.Move(this._movement); + bool flag = XSingleton.singleton.CheckDynamicBlock(position, moveObj.Position); + bool result; + if (flag) + { + result = (((int)collisionFlags & 4) != 0 && (this._fly == null || this._behit.LaidOnGround())); + } + else + { + this.MoveObj.Position = position; + result = this._bStandOn; + } + return result; + } + + //c 同步服务器位置设置 + public void SyncServerMove(Vector3 delta) + { + delta.y = 0f; + bool flag = delta.sqrMagnitude < XCommon.XEps * XCommon.XEps; + if (flag) + { + this._server_movement = Vector3.zero; + } + else + { + this._server_movement = delta; + } + } + + private void SetDynamicLayer(float dis) + { + bool flag = this._skill != null && this._skill.IsCasting(); + if (flag) + { + bool flag2 = !XSingleton.singleton.SyncMode; + if (flag2) + { + this._skill.CurrentSkill.UpdateCollisionLayer(dis / Time.deltaTime); + } + } + else + { + bool flag3 = this._machine != null; + if (flag3) + { + this._machine.UpdateCollisionLayer(); + } + } + } + + private void EndSlowMotion(object o) + { + XSingleton.singleton.TimeMagicBack(); + this._slow_motion_token = 0u; + bool flag = o != null; + if (flag) + { + XCameraMotionEndEventArgs @event = XEventPool.GetEvent(); + @event.Target = this; + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + } + + private void UpdateMoveTracker() + { + bool isTransform = this.IsTransform; + if (isTransform) + { + this.Transformer.MoveObj.Position = this.MoveObj.Position; + this.Transformer.MoveObj.Rotation = this.MoveObj.Rotation; + } + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + this.UpdateWatcher(); + } + } + + public void OnMount(XMount mount, bool copilot) + { + bool flag = this.IsMounted && !this.IsCopilotMounted; + if (flag) + { + this._mount.OnDestroy(); + } + this._mount = mount; + this._is_mount_copilot = copilot; + bool flag2 = this._xobject != null; + if (flag2) + { + bool isPlayer = this.IsPlayer; + if (isPlayer) + { + this._xobject.EnableBC = false; + this._xobject.EnableCC = !this.IsMounted; + } + else + { + this._xobject.EnableBC = !this.IsMounted; + this._xobject.EnableCC = false; + } + } + bool isMounted = this.IsMounted; + if (isMounted) + { + XOnMountedEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this; + XSingleton.singleton.FireEvent(@event); + bool isPlayer2 = this.IsPlayer; + if (isPlayer2) + { + XOnMountedEventArgs event2 = XEventPool.GetEvent(); + event2.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event2); + } + } + else + { + XOnUnMountedEventArgs event3 = XEventPool.GetEvent(); + event3.Firer = this; + XSingleton.singleton.FireEvent(event3); + bool isPlayer3 = this.IsPlayer; + if (isPlayer3) + { + XOnUnMountedEventArgs event4 = XEventPool.GetEvent(); + event4.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event4); + } + } + for (int i = 0; i < this.Affiliates.Count; i++) + { + this.Affiliates[i].OnMount(); + } + this._bStandOn = false; + } + + public virtual void UpdateWatcher() + { + } + + private void _TryCreateHUDComponent() + { + bool flag = base.GetXComponent(XHUDComponent.uuID) == null; + if (flag) + { + bool flag2 = !this.IsNpc; + if (flag2) + { + XSingleton.singleton.CreateComponent(this, XHUDComponent.uuID); + } + } + } + + public virtual bool ProcessRealTimeShadow() + { + bool flag = this._equip != null; + bool result; + if (flag) + { + bool flag2 = ((this._transformee != null) ? this._transformee.IsPlayer : this.IsPlayer) && XQualitySetting._CastShadow; + this._equip.EnableRealTimeShadow(flag2); + result = flag2; + } + else + { + result = false; + } + return result; + } + + public virtual bool CastFakeShadow() + { + return false; + } + + public void RendererToggle(bool enabled) + { + bool isTransform = this.IsTransform; + if (isTransform) + { + this.Transformer.RendererToggle(enabled); + bool flag = this.Transformer.IsMounted && !this.Transformer.IsCopilotMounted && this.Transformer.Mount.EngineObject != null; + if (flag) + { + this.Transformer.Mount.RendererToggle(enabled); + } + this.Transformer.IsDisappear = !enabled; + } + else + { + this.InnerRendererToggle(enabled); + bool flag2 = this.IsMounted && !this.IsCopilotMounted && this.Mount.EngineObject != null; + if (flag2) + { + this.Mount.RendererToggle(enabled); + } + this.IsDisappear = !enabled; + } + } + + private void InnerRendererToggle(bool enabled) + { + bool flag = this._equip != null; + if (flag) + { + this._equip.EnableRender(enabled); + } + else + { + bool flag2 = this is XMount; + if (flag2) + { + XMount xmount = this as XMount; + xmount.SetActive(enabled); + } + else + { + bool flag3 = this._xobject != null; + if (flag3) + { + this._xobject.SetActive(enabled, ""); + } + } + } + this.ShowEntityEffect(enabled, BillBoardHideType.InnerRenderer); + } + + private static void _InitChildAtor(XGameObject gameObject, object o, int commandID) + { + XEntity xentity = o as XEntity; + bool flag = xentity != null; + if (flag) + { + Transform transform = gameObject.Find(""); + bool flag2 = transform != null; + if (flag2) + { + xentity._childAtor = transform.GetComponentInChildren(); + bool flag3 = xentity._childAtor != null; + if (flag3) + { + bool flag4 = xentity.Ator.IsSame(xentity._childAtor); + if (flag4) + { + xentity._childAtor = null; + } + else + { + xentity._childAtor.enabled = true; + bool flag5 = xentity._childAtor.runtimeAnimatorController != null; + if (flag5) + { + xentity._childAtor.Play(xentity._childAtor.runtimeAnimatorController.name, -1, 0f); + } + XSingleton.singleton.EnableParticle(transform.gameObject, true); + } + } + } + } + } + + public void InitChildAtor() + { + bool enableAtor = XStateMachine._EnableAtor; + if (enableAtor) + { + this.EngineObject.CallCommand(XEntity._initChildAtorCb, this, -1, false); + } + } + + private void ShowEntityEffect(bool show, BillBoardHideType billboardType) + { + XBillboardShowCtrlEventArgs @event = XEventPool.GetEvent(); + @event.show = show; + @event.type = billboardType; + @event.Firer = ((this.Transformee == null) ? this : this.Transformee); + XSingleton.singleton.FireEvent(@event); + XFootFxComponent xfootFxComponent = base.GetXComponent(XFootFxComponent.uuID) as XFootFxComponent; + bool flag = xfootFxComponent != null; + if (flag) + { + xfootFxComponent.SetActive(show); + } + XShadowComponent xshadowComponent = base.GetXComponent(XShadowComponent.uuID) as XShadowComponent; + bool flag2 = xshadowComponent != null; + if (flag2) + { + xshadowComponent.SetActive(show); + } + } + + public void OnFade(bool fadeIn, float time, bool isVisibleAfterFadeout, BillBoardHideType billboardType) + { + XEntity realEntity = this.RealEntity; + if (fadeIn) + { + this._isVisible = true; + this.ShowEntityEffect(true, billboardType); + } + else + { + this._isVisible = isVisibleAfterFadeout; + bool flag = !this._isVisible; + if (flag) + { + this.ShowEntityEffect(false, billboardType); + } + } + XRenderComponent.OnFade(realEntity, fadeIn, time, isVisibleAfterFadeout); + } + + public void OnHide(bool hide, BillBoardHideType billboardType) + { + this._isVisible = !hide; + XEntity realEntity = this.RealEntity; + realEntity.ShowEntityEffect(this._isVisible, billboardType); + XRenderComponent.OnHide(realEntity, hide); + } + + public static bool FilterFx(Vector3 pos, float dis) + { + bool filterFx = XSingleton.singleton.FilterFx; + if (filterFx) + { + Vector3 position = XSingleton.singleton.Player.EngineObject.Position; + float num = (pos.x - position.x) * (pos.x - position.x) + (pos.z - position.z) * (pos.z - position.z); + bool flag = num > dis; + if (flag) + { + return true; + } + } + return false; + } + + public static bool FilterFx(XEntity e, float dis) + { + bool flag = XSingleton.singleton.FilterFx && !e.IsPlayer && !(e is XDummy); + if (flag) + { + Vector3 position = XSingleton.singleton.Player.EngineObject.Position; + Vector3 position2 = e.EngineObject.Position; + float num = (position2.x - position.x) * (position2.x - position.x) + (position2.z - position.z) * (position2.z - position.z); + bool flag2 = num > dis; + if (flag2) + { + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEntity.cs.meta b/Client/Assets/Scripts/XMainClient/XEntity.cs.meta new file mode 100644 index 00000000..750e6181 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEntity.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ad11777451d42da4ab4b62b5f54c2bf3 +timeCreated: 1611404333 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEntityAttrChangeEventArgs.cs b/Client/Assets/Scripts/XMainClient/XEntityAttrChangeEventArgs.cs new file mode 100644 index 00000000..a6dbe199 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEntityAttrChangeEventArgs.cs @@ -0,0 +1,38 @@ +using System; + +namespace XMainClient +{ + internal class XEntityAttrChangeEventArgs : XEventArgs + { + public XAttributeDefine AttrKey { get; set; } + + public double Value { get; set; } + + public double Delta { get; set; } + + public ulong CasterID { get; set; } + + public XEntity Entity { get; set; } + + public XEntityAttrChangeEventArgs() + { + this._eDefine = XEventDefine.XEvent_EntityAttributeChange; + this.AttrKey = XAttributeDefine.XAttr_Invalid; + this.Value = 0.0; + this.Delta = 0.0; + this.CasterID = 0UL; + this.Entity = null; + } + + public override void Recycle() + { + this.AttrKey = XAttributeDefine.XAttr_Invalid; + this.Value = 0.0; + this.Delta = 0.0; + this.CasterID = 0UL; + this.Entity = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEntityAttrChangeEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XEntityAttrChangeEventArgs.cs.meta new file mode 100644 index 00000000..69ba3178 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEntityAttrChangeEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a34551bd1183fb249a046d44d438d57f +timeCreated: 1611404260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEntityMgr.cs b/Client/Assets/Scripts/XMainClient/XEntityMgr.cs new file mode 100644 index 00000000..3adcd4e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEntityMgr.cs @@ -0,0 +1,1052 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XEntityMgr : XSingleton + { + public SuperArmorRecoveryCoffTable SuperArmorCoffTable + { + get + { + return this._super_armor_coff_info; + } + } + + public PlayerLevelTable LevelTable + { + get + { + return this._level_table; + } + } + + public XEntityPresentation EntityInfo + { + get + { + return this._entity_data_info; + } + } + + public ProfessionTable RoleInfo + { + get + { + return this._role_data_info; + } + } + + public XEntityStatistics EntityStatistics + { + get + { + return this._statistics_data_info; + } + } + + public XNpcInfo NpcInfo + { + get + { + return this._npc_data_info; + } + } + + public XPlayer Player { get; set; } + + public XBoss Boss { get; set; } + + private XTableAsyncLoader _async_loader = null; + + private List _empty = new List(); + + private PlayerLevelTable _level_table = new PlayerLevelTable(); + + private XEntityPresentation _entity_data_info = new XEntityPresentation(); + + private ProfessionTable _role_data_info = new ProfessionTable(); + + private XEntityStatistics _statistics_data_info = new XEntityStatistics(); + + private XNpcInfo _npc_data_info = new XNpcInfo(); + + private SuperArmorRecoveryCoffTable _super_armor_coff_info = new SuperArmorRecoveryCoffTable(); + + private Dictionary _entities = new Dictionary(); + + private Dictionary> _scene_npcs = new Dictionary>(); + + private Dictionary _npcs = new Dictionary(); + + private Dictionary _anim_length = new Dictionary(); + + private List _entities_itor = new List(); + + private List _addlist = new List(); + + private List _removelist = new List(); + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/PlayerLevel", this._level_table, false); + this._async_loader.AddTask("Table/XEntityPresentation", this._entity_data_info, false); + this._async_loader.AddTask("Table/Profession", this._role_data_info, false); + this._async_loader.AddTask("Table/XEntityStatistics", this._statistics_data_info, false); + this._async_loader.AddTask("Table/XNpcList", this._npc_data_info, false); + this._async_loader.AddTask("Table/SuperArmorRecoveryCoffTable", this._super_armor_coff_info, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + foreach (XNpcInfo.RowData rowData in this._npc_data_info.Table) + { + List list = null; + bool flag3 = !this._scene_npcs.TryGetValue(rowData.SceneID, out list); + if (flag3) + { + list = new List(); + this._scene_npcs.Add(rowData.SceneID, list); + } + list.Add(rowData.ID); + } + result = true; + } + return result; + } + + public override void Uninit() + { + this._async_loader = null; + this._empty.Clear(); + this._entities.Clear(); + this._scene_npcs.Clear(); + this._npcs.Clear(); + this._entities_itor.Clear(); + this._addlist.Clear(); + this._removelist.Clear(); + } + + public XEntity GetEntity(ulong id) + { + XEntity xentity = null; + bool flag = this._entities.TryGetValue(id, out xentity); + XEntity result; + if (flag) + { + result = ((xentity.IsDead && !xentity.IsPlayer) ? null : xentity); + } + else + { + result = null; + } + return result; + } + + public XEntity GetEntityExcludeDeath(ulong id) + { + XEntity xentity = null; + bool flag = this._entities.TryGetValue(id, out xentity); + XEntity result; + if (flag) + { + result = (xentity.IsDead ? null : xentity); + } + else + { + result = null; + } + return result; + } + + public XEntity GetEntityConsiderDeath(ulong id) + { + XEntity xentity = null; + bool flag = this._entities.TryGetValue(id, out xentity); + XEntity result; + if (flag) + { + result = (xentity.Deprecated ? null : xentity); + } + else + { + result = null; + } + return result; + } + + public List GetNpcs(uint scene_id) + { + return this._scene_npcs.ContainsKey(scene_id) ? this._scene_npcs[scene_id] : null; + } + + public XNpc GetNpc(uint id) + { + XNpc result = null; + this._npcs.TryGetValue(id, out result); + return result; + } + + public XPlayer CreatePlayer(Vector3 position, Quaternion rotation, bool autoAdd, bool emptyPrefab = false) + { + XPlayer xplayer = this.PrepareEntity(XSingleton.singleton.XPlayerData, position, rotation, autoAdd, false, emptyPrefab, false); + xplayer.OnCreated(); + return xplayer; + } + + public XRole CreateRole(XAttributes attr, Vector3 position, Quaternion rotation, bool autoAdd, bool emptyPrefab = false) + { + XRole xrole = this.PrepareEntity(attr, position, rotation, autoAdd, false, emptyPrefab, true); + xrole.OnCreated(); + return xrole; + } + + private XEntity PreCreateEntity(XAttributes attr, Vector3 position, Quaternion rotation, bool autoAdd, bool transform = false) + { + XEntity result = null; + switch (attr.Type) + { + case EntitySpecies.Species_Boss: + result = this.PrepareEntity(attr, position, rotation, autoAdd, transform, false, true); + break; + case EntitySpecies.Species_Opposer: + result = this.PrepareEntity(attr, position, rotation, autoAdd, transform, false, true); + break; + case EntitySpecies.Species_Puppet: + result = this.PrepareEntity(attr, position, rotation, autoAdd, transform, false, true); + break; + case EntitySpecies.Species_Substance: + result = this.PrepareEntity(attr, position, rotation, autoAdd, transform, false, true); + break; + case EntitySpecies.Species_Elite: + result = this.PrepareEntity(attr, position, rotation, autoAdd, transform, false, true); + break; + } + return result; + } + + private void PostCreateEntity(XEntity e) + { + bool flag = e != null; + if (flag) + { + e.OnCreated(); + } + } + + public XEntity CreateEntityByCaller(XEntity caller, uint id, Vector3 position, Quaternion rotation, bool autoAdd, uint fightgroup = 4294967295u) + { + XAttributes attr = XSingleton.singleton.InitAttrFromClient(id, null, fightgroup); + XEntity xentity = this.PreCreateEntity(attr, position, rotation, autoAdd, false); + xentity.MobbedBy = caller; + this.PostCreateEntity(xentity); + return xentity; + } + + public XEntity CreateEntity(XAttributes attr, Vector3 position, Quaternion rotation, bool autoAdd) + { + XEntity xentity = this.PreCreateEntity(attr, position, rotation, autoAdd, false); + this.PostCreateEntity(xentity); + return xentity; + } + + public XEntity CreateEntity(uint id, Vector3 position, Quaternion rotation, bool autoAdd, uint fightgroup = 4294967295u) + { + return this.CreateEntity(XSingleton.singleton.InitAttrFromClient(id, null, fightgroup), position, rotation, autoAdd); + } + + public XEntity CreateTransform(uint id, Vector3 position, Quaternion rotation, bool autoAdd, XEntity transformee, uint fightgroup = 4294967295u) + { + XAttributes xattributes = XSingleton.singleton.InitAttrFromClient(id, null, fightgroup); + bool flag = xattributes != null; + XEntity result; + if (flag) + { + XEntity xentity = this.PreCreateEntity(xattributes, position, rotation, autoAdd, true); + xentity.OnTransform(transformee); + this.PostCreateEntity(xentity); + result = xentity; + } + else + { + result = null; + } + return result; + } + + public void PreloadTemp(uint present_id, uint type_id, EntitySpecies spe) + { + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(present_id); + string skillprefix = "SkillPackage/" + byPresentID.SkillLocation; + bool force = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + bool flag = !string.IsNullOrEmpty(byPresentID.A); + if (flag) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.A, force); + } + bool flag2 = !string.IsNullOrEmpty(byPresentID.AA); + if (flag2) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.AA, force); + } + bool flag3 = !string.IsNullOrEmpty(byPresentID.AAA); + if (flag3) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.AAA, force); + } + bool flag4 = !string.IsNullOrEmpty(byPresentID.AAAA); + if (flag4) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.AAAA, force); + } + bool flag5 = !string.IsNullOrEmpty(byPresentID.AAAAA); + if (flag5) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.AAAAA, force); + } + bool flag6 = !string.IsNullOrEmpty(byPresentID.Appear); + if (flag6) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.Appear, force); + } + bool flag7 = !string.IsNullOrEmpty(byPresentID.Disappear); + if (flag7) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.Disappear, force); + } + bool flag8 = !string.IsNullOrEmpty(byPresentID.Dash); + if (flag8) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.Dash, force); + } + bool flag9 = !string.IsNullOrEmpty(byPresentID.SuperArmorRecoverySkill); + if (flag9) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.SuperArmorRecoverySkill, force); + } + bool flag10 = !string.IsNullOrEmpty(byPresentID.ArmorBroken); + if (flag10) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.ArmorBroken, force); + } + bool flag11 = byPresentID.OtherSkills != null; + if (flag11) + { + int i = 0; + int num = byPresentID.OtherSkills.Length; + while (i < num) + { + bool flag12 = !string.IsNullOrEmpty(byPresentID.OtherSkills[i]) && byPresentID.OtherSkills[i] != "E"; + if (flag12) + { + XSkillData.PreLoadSkillForTemp(skillprefix, byPresentID.OtherSkills[i], force); + } + i++; + } + } + } + + public XDummy CreateDummy(uint present_id, uint type_id, XOutlookData outlookData, bool autoAdd = false, bool demonstration = false, bool asyncLoad = true) + { + XDummy xdummy = this.PrepareDummy(present_id, type_id, outlookData, autoAdd, demonstration, asyncLoad); + xdummy.OnCreated(); + return xdummy; + } + + public XDummy CreateDummy(uint type_id, Vector3 position, Quaternion rotation) + { + return this.PrepareDummy(type_id, position, rotation); + } + + public XAffiliate CreateAffiliate(uint present_id, XEntity mainbody) + { + return this.PrepareAffiliate(present_id, mainbody); + } + + public XAffiliate CreateAffiliate(uint present_id, XGameObject go, XEntity mainbody) + { + return this.PrepareAffiliate(present_id, go, mainbody); + } + + public XMount CreateMount(uint present_id, XEntity mainbody, bool isCopilot) + { + return XEntity.ValideEntity(mainbody) ? this.PrepareMount(present_id, mainbody, isCopilot) : null; + } + + public XEmpty CreateEmpty() + { + XEmpty xempty = this.PrepareEmpty(); + xempty.OnCreated(); + return xempty; + } + + public XNpc CreateNpc(uint id, bool autoAdd) + { + bool flag = this._npcs.ContainsKey(id); + if (flag) + { + XSingleton.singleton.AddGreenLog("npc has already exist: ", id.ToString(), null, null, null, null); + this.DestroyNpc(id); + } + XNpcAttributes xnpcAttributes = XSingleton.singleton.InitNpcAttr(id); + XNpc xnpc = this.PrepareEntity(xnpcAttributes, xnpcAttributes.Position, Quaternion.Euler(xnpcAttributes.Rotation), autoAdd, false, false, true); + xnpc.OnCreated(); + this._npcs.Add(id, xnpc); + return xnpc; + } + + public void DestroyNpc(uint id) + { + XNpc x; + bool flag = this._npcs.TryGetValue(id, out x); + if (flag) + { + this._npcs.Remove(id); + this.DestroyEntity(x); + } + } + + public void DestroyEntity(XEntity x) + { + bool flag = x == null || x.Deprecated; + if (!flag) + { + bool flag2 = !this._entities.ContainsKey(x.ID); + if (flag2) + { + this.DestroyImmediate(x); + this._addlist.Remove(x); + this._removelist.Remove(x); + } + else + { + x.Destroying = true; + x.OnDestroy(); + this.SafeRemove(x); + } + } + } + + public void DestroyImmediate(XEntity x) + { + bool flag = x == null || x.Deprecated; + if (!flag) + { + x.Destroying = true; + x.OnDestroy(); + x.Uninitilize(); + } + } + + public void DestroyEntity(ulong id) + { + this.DestroyEntity(this.GetEntityConsiderDeath(id)); + } + + public void OnReconnect() + { + foreach (KeyValuePair keyValuePair in this._entities) + { + UnitAppearance unitAppearance; + bool flag = XSingleton.singleton.UnitsAppearance.TryGetValue(keyValuePair.Key, out unitAppearance); + if (flag) + { + bool flag2 = !keyValuePair.Value.IsPuppet && !keyValuePair.Value.IsSubstance; + if (flag2) + { + keyValuePair.Value.CorrectMe(new Vector3(unitAppearance.position.x, unitAppearance.position.y, unitAppearance.position.z), XSingleton.singleton.FloatToAngle(unitAppearance.direction), true, false); + bool flag3 = keyValuePair.Value.IsDead ^ unitAppearance.IsDead; + if (flag3) + { + bool isDead = unitAppearance.IsDead; + if (isDead) + { + XSingleton.singleton.DeathDetect(keyValuePair.Value, null, true); + } + else + { + bool isPlayer = keyValuePair.Value.IsPlayer; + if (isPlayer) + { + XPlayer xplayer = keyValuePair.Value as XPlayer; + bool flag4 = xplayer != null; + if (flag4) + { + xplayer.Revive(); + } + } + else + { + XRole xrole = keyValuePair.Value as XRole; + bool flag5 = xrole != null; + if (flag5) + { + xrole.Revive(); + } + } + } + } + keyValuePair.Value.Attributes.InitAttribute(unitAppearance.attributes); + bool flag6 = keyValuePair.Value.Buffs != null; + if (flag6) + { + keyValuePair.Value.Buffs.InitFromServer(unitAppearance.buffs, unitAppearance.allbuffsinfo); + } + bool flag7 = !XSingleton.singleton.IsPlaying; + if (flag7) + { + this.Puppets(keyValuePair.Value, false, false); + } + keyValuePair.Value.OnReconnect(unitAppearance); + } + } + else + { + bool flag8 = !keyValuePair.Value.IsNpc && !keyValuePair.Value.IsPlayer && !keyValuePair.Value.IsDummy; + if (flag8) + { + this.DestroyEntity(keyValuePair.Value); + } + } + } + foreach (KeyValuePair keyValuePair2 in XSingleton.singleton.UnitsAppearance) + { + bool flag9 = !this._entities.ContainsKey(keyValuePair2.Key); + if (flag9) + { + this.CreateEntityByUnitAppearance(keyValuePair2.Value); + } + } + } + + public void OnLeaveScene() + { + XLeaveSceneArgs @event = XEventPool.GetEvent(); + @event.Firer = this.Player; + XSingleton.singleton.FireEvent(@event); + foreach (KeyValuePair keyValuePair in this._entities) + { + this.DestroyImmediate(keyValuePair.Value); + } + for (int i = 0; i < this._addlist.Count; i++) + { + this.DestroyImmediate(this._addlist[i]); + } + for (int j = 0; j < this._removelist.Count; j++) + { + this._removelist[j].Uninitilize(); + } + this._addlist.Clear(); + this._removelist.Clear(); + this._entities.Clear(); + this._npcs.Clear(); + this._entities_itor.Clear(); + } + + public void KillAlly(XEntity me) + { + List ally = this.GetAlly(me); + for (int i = 0; i < ally.Count; i++) + { + bool flag = ally[i] != me; + if (flag) + { + ally[i].Attributes.ForceDeath(); + } + } + } + + public void Update(float fDeltaT) + { + this.Iterate(this._entities_itor, fDeltaT); + } + + public void PostUpdate(float fDeltaT) + { + this.PostIterate(this._entities_itor, fDeltaT); + this.InnerAdd(); + this.InnerRemove(); + } + + public void FixedUpdate() + { + } + + public bool IsNeutral(XEntity e) + { + return e.Attributes == null || this.IsNeutral(e.Attributes.FightGroup); + } + + public bool IsNeutral(uint e) + { + return XFightGroupDocument.IsNeutral(e); + } + + public bool IsAlly(XEntity me) + { + return me.Attributes != null && this.IsAlly(me.Attributes.FightGroup); + } + + public bool IsOpponent(XEntity me) + { + return me.Attributes != null && this.IsOpponent(me.Attributes.FightGroup); + } + + public bool IsAlly(XEntity me, XEntity other) + { + return me.Attributes != null && other.Attributes != null && (me == other || this.IsAlly(me.Attributes.FightGroup, other.Attributes.FightGroup)); + } + + public bool IsOpponent(XEntity me, XEntity other) + { + bool flag = me == null || other == null; + return !flag && (me != other && me.Attributes != null && other.Attributes != null) && this.IsOpponent(me.Attributes.FightGroup, other.Attributes.FightGroup); + } + + public bool IsAlly(uint me) + { + return !this.IsNeutral(me) && XSingleton.singleton.XPlayerData != null && this.IsAlly(me, XSingleton.singleton.XPlayerData.FightGroup); + } + + public bool IsOpponent(uint me) + { + return !this.IsNeutral(me) && XSingleton.singleton.XPlayerData != null && this.IsOpponent(me, XSingleton.singleton.XPlayerData.FightGroup); + } + + public bool IsAlly(uint me, uint other) + { + return !this.IsNeutral(me) && !this.IsNeutral(other) && XFightGroupDocument.IsAlly(me, other); + } + + public bool IsOpponent(uint me, uint other) + { + return !this.IsNeutral(me) && !this.IsNeutral(other) && XFightGroupDocument.IsOpponent(me, other); + } + + public List GetOpponent(XEntity me) + { + bool flag = me == null; + List result; + if (flag) + { + result = this._empty; + } + else + { + bool flag2 = !this.IsNeutral(me); + if (flag2) + { + result = XFightGroupDocument.GetOpponent(me.Attributes.FightGroup); + } + else + { + result = this._empty; + } + } + return result; + } + + public List GetAlly(XEntity me) + { + bool flag = me == null; + List result; + if (flag) + { + result = this._empty; + } + else + { + bool flag2 = !this.IsNeutral(me); + if (flag2) + { + result = XFightGroupDocument.GetAlly(me.Attributes.FightGroup); + } + else + { + result = this._empty; + } + } + return result; + } + + public List GetNeutral() + { + return XFightGroupDocument.GetNeutral(); + } + + public List GetAll() + { + return this._entities_itor; + } + + public XEntity Add(XEntity x) + { + ulong id = x.ID; + bool flag = !this.DuplicationCheck(id); + if (flag) + { + throw new ArgumentException(string.Concat(new object[] + { + "Duplicated ID ", + id, + " Name ", + x.Name + })); + } + this._entities.Add(id, x); + this._entities_itor.Add(x); + return x; + } + + public void DummilizePlayer(bool disappear = true) + { + this.Puppets(this.Player, true, disappear); + } + + public void DedummilizePlayer() + { + this.Puppets(this.Player, false, false); + } + + public void Dummilize(int mask) + { + foreach (XEntity xentity in this._entities.Values) + { + bool flag = xentity.Attributes == null; + if (!flag) + { + int num = XFastEnumIntEqualityComparer.ToInt(xentity.Attributes.Type); + this.Puppets(xentity, true, (num & mask) != 0); + } + } + } + + public void Dedummilize() + { + foreach (XEntity xentity in this._entities.Values) + { + bool destroying = xentity.Destroying; + if (!destroying) + { + this.Puppets(xentity, false, ((ulong)xentity.ServerSpecialState & (ulong)(1L << (XFastEnumIntEqualityComparer.ToInt(UnitSpecialState.Unit_Invisible) & 31))) > 0UL); + } + } + } + + public void ToggleOtherPlayers(bool hide) + { + } + + public void Idled(XEntity x) + { + bool flag = x.Skill != null; + if (flag) + { + x.Skill.EndSkill(true, x.Destroying); + } + bool flag2 = x.Machine != null; + if (flag2) + { + x.Machine.ForceToDefaultState(false); + } + } + + public void Puppets(XEntity x, bool bPuppet, bool bDisappear) + { + bool flag = XSingleton.singleton.bSpectator && x.IsPlayer && (!bPuppet || !bDisappear); + if (!flag) + { + if (bPuppet) + { + this.Idled(x); + } + bool flag2 = x.Skill != null; + if (flag2) + { + x.Skill.Enabled = !bPuppet; + } + bool flag3 = x.Machine != null; + if (flag3) + { + x.Machine.Enabled = !bPuppet; + if (bPuppet) + { + x.Machine.PostUpdate(0f); + } + } + x.RendererToggle(!bDisappear); + } + } + + private bool DuplicationCheck(ulong hash) + { + bool flag = !this._entities.ContainsKey(hash); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._removelist.Contains(this._entities[hash]); + if (flag2) + { + XEntity xentity = this._entities[hash]; + this.Remove(hash); + xentity.Uninitilize(); + result = true; + } + else + { + result = false; + } + } + return result; + } + + private void SafeAdd(XEntity x) + { + this._addlist.Add(x); + this._removelist.Remove(x); + } + + private void Remove(ulong hash) + { + bool flag = this._entities.ContainsKey(hash); + if (flag) + { + XEntity item = this._entities[hash]; + this._entities.Remove(hash); + this._entities_itor.Remove(item); + } + } + + private void SafeRemove(XEntity x) + { + this._removelist.Add(x); + this._addlist.Remove(x); + } + + private void InnerAdd() + { + int i = 0; + int count = this._addlist.Count; + while (i < count) + { + XEntity x = this._addlist[i]; + this.Add(x); + i++; + } + this._addlist.Clear(); + } + + private void InnerRemove() + { + int i = 0; + int count = this._removelist.Count; + while (i < count) + { + XEntity xentity = this._removelist[i]; + this.Remove(xentity.ID); + xentity.Uninitilize(); + i++; + } + this._removelist.Clear(); + } + + private T PrepareEntity(XAttributes attr, Vector3 position, Quaternion rotation, bool autoAdd, bool transform, bool emptyPrefab = false, bool asyncLoad = true) where T : XEntity + { + attr.AppearAt = position; + T t = Activator.CreateInstance(); + XGameObject xgameObject; + if (emptyPrefab) + { + xgameObject = XGameObject.CreateXGameObject("", position, rotation, asyncLoad, true); + } + else + { + string value = XSingleton.singleton.PreFilterPrefab(attr.Prefab); + bool flag = string.IsNullOrEmpty(value); + if (flag) + { + xgameObject = XGameObject.CreateXGameObject("", position, rotation, asyncLoad, true); + } + else + { + xgameObject = XGameObject.CreateXGameObject("Prefabs/" + attr.Prefab, position, rotation, asyncLoad, true); + } + } + xgameObject.CCStepOffset = 0.1f; + t.Initilize(xgameObject, attr, transform); + if (autoAdd) + { + this.SafeAdd(t); + } + return t; + } + + private XDummy PrepareDummy(uint type_id, Vector3 position, Quaternion rotation) + { + XDummy xdummy = new XDummy(); + xdummy.Initilize(type_id, position, rotation); + return xdummy; + } + + private XDummy PrepareDummy(uint present_id, uint type_id, XOutlookData outlookData, bool autoAdd, bool demonstration, bool asyncLoad) + { + XDummy xdummy = new XDummy(); + xdummy.Initilize(present_id, type_id, outlookData, autoAdd, demonstration, asyncLoad); + if (autoAdd) + { + this.SafeAdd(xdummy); + } + return xdummy; + } + + private XAffiliate PrepareAffiliate(uint present_id, XEntity mainbody) + { + XAffiliate xaffiliate = new XAffiliate(); + xaffiliate.Initilize(mainbody, present_id); + xaffiliate.OnCreated(); + return xaffiliate; + } + + private XAffiliate PrepareAffiliate(uint present_id, XGameObject go, XEntity mainbody) + { + XAffiliate xaffiliate = new XAffiliate(); + xaffiliate.Initilize(mainbody, present_id, go); + xaffiliate.OnCreated(); + return xaffiliate; + } + + private XMount PrepareMount(uint present_id, XEntity mainbody, bool isCopilot) + { + XMount xmount = new XMount(); + xmount.Initilize(mainbody, present_id, isCopilot); + xmount.EngineObject.CCStepOffset = 0.1f; + xmount.OnCreated(); + return xmount; + } + + private XEmpty PrepareEmpty() + { + XEmpty xempty = new XEmpty(); + XGameObject o = XGameObject.CreateXGameObject(XAIComponent.UseRunTime ? "" : "Prefabs/empty", true, true); + xempty.Initilize(o); + return xempty; + } + + private void Iterate(List iterator, float fDeltaT) + { + int count = iterator.Count; + for (int i = 0; i < count; i++) + { + XEntity xentity = iterator[i]; + bool flag = !xentity.Deprecated; + if (flag) + { + xentity.Update(fDeltaT); + } + } + } + + private void PostIterate(List iterator, float fDeltaT) + { + int count = iterator.Count; + for (int i = 0; i < count; i++) + { + XEntity xentity = iterator[i]; + bool flag = !xentity.Deprecated; + if (flag) + { + xentity.PostUpdate(fDeltaT); + } + } + } + + private void FixedIterate(List iterator) + { + int count = iterator.Count; + for (int i = 0; i < count; i++) + { + XEntity xentity = iterator[i]; + bool flag = !xentity.Deprecated; + if (flag) + { + xentity.FixedUpdate(); + } + } + } + + public XAttributes GetAttributesWithAppearance(UnitAppearance unit) + { + XAttributes xattributes = XSingleton.singleton.InitAttrFromServer(unit.uID, unit.nickid, unit.unitType, unit.unitName, unit.attributes, unit.fightgroup, unit.isServerControl, unit.skills, unit.bindskills, new XOutLookAttr(unit.outlook), unit.level, 0u); + xattributes.MidwayEnter = !unit.isnewmob; + xattributes.HostID = unit.hostid; + XOutlookHelper.SetOutLook(xattributes, unit.outlook, true); + return xattributes; + } + + public XEntity CreateEntityByUnitAppearance(UnitAppearance unit) + { + XAttributes attributesWithAppearance = this.GetAttributesWithAppearance(unit); + bool flag = attributesWithAppearance.Type == EntitySpecies.Species_Role; + XEntity xentity; + if (flag) + { + xentity = XSingleton.singleton.Add(XSingleton.singleton.CreateRole(attributesWithAppearance, new Vector3(unit.position.x, unit.position.y, unit.position.z), Quaternion.Euler(0f, unit.direction, 0f), false, XSingleton.singleton.IsMustTransform)); + } + else + { + xentity = XSingleton.singleton.Add(XSingleton.singleton.CreateEntity(attributesWithAppearance, new Vector3(unit.position.x, unit.position.y, unit.position.z), Quaternion.Euler(0f, unit.direction, 0f), false)); + } + bool flag2 = xentity.Buffs != null; + if (flag2) + { + xentity.Buffs.InitFromServer(unit.buffs, unit.allbuffsinfo); + } + xentity.ServerSpecialState = unit.specialstate; + bool hostidSpecified = unit.hostidSpecified; + if (hostidSpecified) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(unit.hostid); + bool flag3 = entityConsiderDeath != null && !entityConsiderDeath.Deprecated && entityConsiderDeath.Skill != null; + if (flag3) + { + xentity.MobbedBy = entityConsiderDeath; + entityConsiderDeath.Skill.AddSkillMob(xentity); + xentity.MobShieldable = (unit.mobshieldableSpecified && unit.mobshieldable); + xentity.MobShield = XSingleton.singleton.MobShield(xentity); + } + } + bool flag4 = !XSingleton.singleton.IsPlaying || !XSingleton.singleton.IsExcludeNewBorn; + if (flag4) + { + xentity.UpdateSpecialStateFromServer(unit.specialstate, uint.MaxValue); + } + bool isDead = unit.IsDead; + if (isDead) + { + XSingleton.singleton.DeathDetect(xentity, null, true); + } + return xentity; + } + + public void DelayProcess() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEntityMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XEntityMgr.cs.meta new file mode 100644 index 00000000..0b68628f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEntityMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ab37beaf2d213b34b8820b30fb9e84f6 +timeCreated: 1611404307 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEquipChangeEventArgs.cs b/Client/Assets/Scripts/XMainClient/XEquipChangeEventArgs.cs new file mode 100644 index 00000000..76caa6ce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipChangeEventArgs.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XEquipChangeEventArgs : XEventArgs + { + public List EquipPart { get; set; } + + public List ItemID { get; set; } + + public XEquipChangeEventArgs() + { + this._eDefine = XEventDefine.XEvent_EquipChange; + } + + public override void Recycle() + { + this.EquipPart = null; + this.ItemID = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEquipChangeEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XEquipChangeEventArgs.cs.meta new file mode 100644 index 00000000..3015782c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipChangeEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90923c21f56a36a41823eecb8e1cb4c8 +timeCreated: 1611404139 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEquipComponent.cs b/Client/Assets/Scripts/XMainClient/XEquipComponent.cs new file mode 100644 index 00000000..e0c3bcaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipComponent.cs @@ -0,0 +1,1504 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEquipComponent : XComponent, IDelayLoad + { + public override uint ID + { + get + { + return XEquipComponent.uuID; + } + } + + public XAffiliate Sprite + { + get + { + return this._sprite; + } + } + + public bool IsUIAvatar + { + get + { + return this._isUIAvatar; + } + set + { + this._isUIAvatar = value; + } + } + + public bool IsVisible + { + get + { + return this._visible; + } + } + + public bool IsRenderEnable + { + get + { + return this._enableRender; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Character_Equipment"); + + private uint _type_id; + + private int _prof_id = 0; + + public Transform _root = null; + + private XFx _rootFx = null; + + private uint _rootFxID = 0u; + + private Transform _rootPoint = null; + + private int m_mainWeaponID = 0; + + private Transform[] _mainWeaponPoint = null; + + private XFx[] _mainWeaponFx = null; + + private static int _mainWeapointSize = 2; + + private int m_sideWeaponID = 0; + + private XFx[] sideWeaponFx = null; + + private Transform[] sideWeaponPoint = null; + + private static int sideWeaponPointSize = 2; + + private XAffiliate _wing = null; + + private Transform _wingPoint = null; + + private XAffiliate _tail = null; + + private Transform _tailPoint = null; + + private XAffiliate _sprite = null; + + private Transform _spritePoint = null; + + private XAffiliate _fishing = null; + + private Transform _finshingPoint = null; + + private DefaultEquip.RowData _defaultEquipList; + + private CombineMeshTask _combineMeshTask = null; + + private uint enhanceLevel = 0u; + + private LoadFinishedCallback _LoadFinishedCallback; + + private bool _isUIAvatar = false; + + private bool _enableRealTimeShadow = false; + + private bool _enableRender = true; + + private int _renderQueue = -1; + + private bool _visible = true; + + private uint _hairColorID = 0u; + + private static CommandCallback _getSkinmeshCb = new CommandCallback(XEquipComponent._GetSkinmesh); + + private XCustomShadow m_CustomShadow = null; + + private int combineFinishFrame = 0; + + public XEquipComponent() + { + this._combineMeshTask = new CombineMeshTask(new MountLoadCallback(this.PartLoaded)); + } + + private static void _GetSkinmesh(XGameObject gameObject, object o, int commandID) + { + XEquipComponent xequipComponent = o as XEquipComponent; + bool flag = xequipComponent != null; + if (flag) + { + Transform transform = gameObject.Find(""); + xequipComponent.GetEquipPoints(transform); + Transform transform2 = transform.Find("CombinedMesh"); + bool flag2 = transform2 != null; + if (flag2) + { + transform2.parent = null; + UnityEngine.Object.Destroy(transform2.gameObject); + } + SkinnedMeshRenderer skinnedMeshRenderer = gameObject.SMR; + bool flag3 = skinnedMeshRenderer == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog2("error role prefab not skin mesh:{0}", new object[] + { + gameObject.m_Location + }); + } + else + { + bool flag4 = transform != skinnedMeshRenderer.transform; + if (flag4) + { + skinnedMeshRenderer = null; + xequipComponent._combineMeshTask.noCombine = true; + } + } + xequipComponent._combineMeshTask.skin = skinnedMeshRenderer; + bool flag5 = skinnedMeshRenderer != null; + if (flag5) + { + skinnedMeshRenderer.enabled = false; + } + } + } + + private bool IsSkinmeshLoaded() + { + return this._combineMeshTask.skin != null || this._combineMeshTask.noCombine; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._type_id = this._entity.TypeID; + this.m_mainWeaponID = 0; + this.m_sideWeaponID = 0; + bool isRole = this._entity.IsRole; + short id; + if (isRole) + { + id = (short)this._type_id; + } + else + { + bool isDummy = this._entity.IsDummy; + if (isDummy) + { + id = (short)this._type_id; + } + else + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._type_id); + id = byID.FashionTemplate; + } + } + this._defaultEquipList = XEquipDocument.GetDefaultEquip(id); + bool flag = this._defaultEquipList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Cant find defaultEquip with id: ", id.ToString(), ", typeid ", this._type_id.ToString(), ", entityType ", this._entity.EntityType.ToString()); + this._prof_id = 0; + } + else + { + this._prof_id = (int)(this._defaultEquipList.id - 1); + } + this._host.EngineObject.CallCommand(XEquipComponent._getSkinmeshCb, this, -1, false); + this._LoadFinishedCallback = null; + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnPlayerDeathEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnRevived, new XComponent.XEventHandler(this.OnPlayerReviveEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnMounted, new XComponent.XEventHandler(this.OnMountEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnUnMounted, new XComponent.XEventHandler(this.OnMountEvent)); + } + + public override void Attached() + { + bool flag = this._entity.IsPlayer && XQualitySetting._CastShadow; + if (flag) + { + this.m_CustomShadow = XSingleton.singleton.AddShadowProjector(XSingleton.singleton.GameCamera.CameraTrans); + } + bool isViewGridScene = XSingleton.singleton.IsViewGridScene; + if (isViewGridScene) + { + bool flag2 = this._entity is XDummy; + if (flag2) + { + this._visible = true; + } + else + { + bool flag3 = XEquipDocument.CurrentVisibleRole < XQualitySetting.GetVisibleRoleCount(); + if (flag3) + { + XEquipDocument.CurrentVisibleRole++; + this._visible = true; + } + else + { + this._visible = false; + } + } + } + else + { + this._visible = true; + } + bool visible = this._visible; + if (visible) + { + bool flag4 = this.IsSkinmeshLoaded(); + if (flag4) + { + this.Load(); + } + else + { + XSingleton.singleton.AddDelayProcess(this); + } + } + } + + public override void OnDetachFromHost() + { + bool flag = this.m_CustomShadow != null; + if (flag) + { + XSingleton.singleton.RemoveShadowProjector(this.m_CustomShadow); + this.m_CustomShadow = null; + } + bool flag2 = this._visible && !this._isUIAvatar; + if (flag2) + { + XEquipDocument.CurrentVisibleRole--; + } + XSingleton.singleton.RemoveDelayProcess(this); + this.UnEquipFx(); + this.UnEquipAffiliateParts(); + this._combineMeshTask.Reset(this._entity); + this._type_id = 0u; + this._prof_id = 0; + this.m_mainWeaponID = 0; + this._root = null; + this._rootFx = null; + this._rootFxID = 0u; + this._rootPoint = null; + this._mainWeaponFx = null; + this.m_sideWeaponID = 0; + this._wing = null; + this._wingPoint = null; + this._tail = null; + this._tailPoint = null; + this._sprite = null; + this._spritePoint = null; + this._fishing = null; + this._finshingPoint = null; + this._defaultEquipList = null; + this.enhanceLevel = 0u; + this._LoadFinishedCallback = null; + this._isUIAvatar = false; + this._enableRealTimeShadow = false; + this._enableRender = true; + this._renderQueue = -1; + this._visible = true; + this._hairColorID = 0u; + base.OnDetachFromHost(); + } + + public void Load() + { + this.EquipFromAttr(); + this.SpriteFromAttr(); + } + + public EDelayProcessType DelayUpdate() + { + bool flag = this._combineMeshTask != null; + EDelayProcessType result; + if (flag) + { + bool flag2 = this._combineMeshTask.combineStatus == ECombineStatus.ENotCombine; + if (flag2) + { + this.Load(); + result = EDelayProcessType.EUpdate; + } + else + { + bool flag3 = this.IsSkinmeshLoaded() && this._combineMeshTask.Process(); + if (flag3) + { + this.CombineMesh(); + } + bool flag4 = this._combineMeshTask.combineStatus == ECombineStatus.ECombined; + if (flag4) + { + bool flag5 = this.combineFinishFrame > 1; + if (flag5) + { + for (EPartType epartType = EPartType.ECombinePartEnd; epartType < EPartType.EMountEnd; epartType++) + { + EquipLoadTask equipLoadTask = this._combineMeshTask.parts[XFastEnumIntEqualityComparer.ToInt(epartType)]; + this.PartLoaded(equipLoadTask as MountLoadTask); + } + this.combineFinishFrame = 0; + result = EDelayProcessType.EFinish; + } + else + { + this.SetHairColor(); + this.RefreshSuitFx(); + this.combineFinishFrame++; + result = EDelayProcessType.EUpdate; + } + } + else + { + result = EDelayProcessType.EUpdate; + } + } + } + else + { + result = EDelayProcessType.EFinish; + } + return result; + } + + private void SetHairColor() + { + bool flag = this._combineMeshTask.skin != null; + if (flag) + { + Color hairColor = XFashionStorageDocument.GetHairColor(this._hairColorID); + ShaderManager.SetColor(this._combineMeshTask.mpb, hairColor, ShaderManager._ShaderKeyIDHairColor); + this._combineMeshTask.skin.SetPropertyBlock(this._combineMeshTask.mpb); + } + } + + public void SetLoadFinishedCallback(LoadFinishedCallback callback) + { + this._LoadFinishedCallback = callback; + } + + private void UnEquipFx() + { + this.DestroyFx(this._mainWeaponFx); + this.DestroyFx(this.sideWeaponFx); + this.DestroyFx(ref this._rootFx); + bool flag = this.sideWeaponPoint != null; + if (flag) + { + for (int i = 0; i < this.sideWeaponPoint.Length; i++) + { + this.sideWeaponPoint[i] = null; + } + } + } + + private void UnEquipAffiliateParts() + { + bool flag = this._wing != null; + if (flag) + { + this._entity.DestroyAffiliate(this._wing); + this._wing = null; + } + bool flag2 = this._tail != null; + if (flag2) + { + this._entity.DestroyAffiliate(this._tail); + this._tail = null; + } + bool flag3 = this._fishing != null; + if (flag3) + { + this._entity.DestroyAffiliate(this._fishing); + this._fishing = null; + } + bool flag4 = this._sprite != null; + if (flag4) + { + this._entity.DestroyAffiliate(this._sprite); + this._sprite = null; + } + } + + private void UnEquipAffiliateParts(ref XAffiliate aff) + { + bool flag = aff != null; + if (flag) + { + this._entity.DestroyAffiliate(aff); + aff = null; + } + } + + private void GetEquipPoints(Transform root) + { + this._root = root; + bool flag = this._defaultEquipList == null; + if (!flag) + { + this._wingPoint = XEquipDocument.GetMountPoint(root, this._defaultEquipList.WingPoint); + bool flag2 = this._mainWeaponFx == null; + if (flag2) + { + this._mainWeaponFx = new XFx[XEquipComponent._mainWeapointSize]; + } + bool flag3 = this._mainWeaponPoint == null; + if (flag3) + { + this._mainWeaponPoint = new Transform[XEquipComponent._mainWeapointSize]; + } + this._mainWeaponPoint[0] = XEquipDocument.GetMountPoint(root, this._defaultEquipList.WeaponPoint[0]); + bool flag4 = this._defaultEquipList.WeaponPoint.Length > 1 && XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag4) + { + this._mainWeaponPoint[1] = XEquipDocument.GetMountPoint(root, this._defaultEquipList.WeaponPoint[1]); + } + else + { + this._mainWeaponPoint[1] = null; + } + bool flag5 = !string.IsNullOrEmpty(this._defaultEquipList.RootPoint); + if (flag5) + { + this._rootPoint = XEquipDocument.GetMountPoint(root, this._defaultEquipList.RootPoint); + } + else + { + this._rootPoint = null; + } + bool flag6 = this.sideWeaponPoint == null; + if (flag6) + { + this.sideWeaponPoint = new Transform[XEquipComponent.sideWeaponPointSize]; + } + bool flag7 = this.sideWeaponFx == null; + if (flag7) + { + this.sideWeaponFx = new XFx[XEquipComponent.sideWeaponPointSize]; + } + for (int i = 0; i < XEquipComponent.sideWeaponPointSize; i++) + { + bool flag8 = this._defaultEquipList.SideWeaponPoint == null; + if (flag8) + { + break; + } + bool flag9 = i < this._defaultEquipList.SideWeaponPoint.Length; + if (flag9) + { + this.sideWeaponPoint[i] = XEquipDocument.GetMountPoint(root, this._defaultEquipList.SideWeaponPoint[i]); + } + else + { + this.sideWeaponPoint[i] = null; + } + } + this._tailPoint = XEquipDocument.GetMountPoint(root, this._defaultEquipList.TailPoint); + this._spritePoint = XEquipDocument.GetMountPoint(root, "sprite"); + this._finshingPoint = XEquipDocument.GetMountPoint(root, this._defaultEquipList.FishingPoint); + } + } + + public void EquipFromVisibleList(FashionPositionInfo[] outlookList, uint hairID, uint effectID) + { + this.EquipAll(outlookList, hairID, effectID); + } + + public void EquipFromAttr() + { + bool isDummy = this._entity.IsDummy; + if (!isDummy) + { + bool isRole = this._entity.IsRole; + if (isRole) + { + this.EquipAll(this._entity.Attributes.Outlook.OutlookList, this._entity.Attributes.Outlook.hairColorID, this._entity.Attributes.Outlook.suitEffectID); + } + else + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._type_id); + int equiplistByFashionTemplate = XEquipDocument.GetEquiplistByFashionTemplate(byID.FashionTemplate, ref XOutlookData.sharedFashionList); + this.EquipAll(XOutlookData.sharedFashionList, 0u, 0u); + XOutlookData.InitFasionList(ref XOutlookData.sharedFashionList); + } + } + } + + public void OnEquipChange() + { + this.EquipFromAttr(); + } + + private void EquipAll(FashionPositionInfo[] fashionList, uint hairID = 0u, uint effect = 0u) + { + bool flag = !this._visible; + if (!flag) + { + bool flag2 = fashionList == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("null fashion list", null, null, null, null, null); + } + else + { + this._combineMeshTask.roleType = this._prof_id; + XSingleton.singleton.RemoveDelayProcess(this); + this._combineMeshTask.BeginCombine(); + HashSet hashSet = HashPool.Get(); + int num = XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionSecondaryWeapon); + int num2 = XFastEnumIntEqualityComparer.ToInt(FashionPosition.Hair); + this._rootFxID = effect; + int i = 0; + int num3 = fashionList.Length; + while (i < num3) + { + FashionPositionInfo fashionPositionInfo = fashionList[i]; + bool flag3 = num == i; + if (flag3) + { + this.m_sideWeaponID = fashionPositionInfo.fasionID; + } + else + { + bool flag4 = num2 == i; + if (flag4) + { + this._hairColorID = ((fashionPositionInfo.fasionID < 10000 || hairID == 0u) ? XFashionStorageDocument.GetDefaultColorID((uint)fashionPositionInfo.fasionID) : hairID); + } + } + int num4 = CombineMeshTask.ConvertPart((FashionPosition)i); + bool flag5 = num4 >= 0; + if (flag5) + { + EquipLoadTask equipLoadTask = this._combineMeshTask.parts[num4]; + equipLoadTask.Load(this._entity, this._prof_id, ref fashionPositionInfo, XSingleton.singleton.DelayLoad && !this._entity.IsPlayer, hashSet); + } + i++; + } + HashPool.Release(hashSet); + bool flag6 = this._combineMeshTask.EndCombine() && this.IsSkinmeshLoaded(); + if (flag6) + { + this.DelayUpdate(); + } + XSingleton.singleton.AddDelayProcess(this); + } + } + } + + private void CombineMesh() + { + bool needCombine = this._combineMeshTask.needCombine; + if (needCombine) + { + XEquipDocument._CombineMeshUtility.Combine(this._combineMeshTask); + bool flag = this._combineMeshTask.skin != null && this._combineMeshTask.skin.sharedMaterial != null; + if (flag) + { + this._combineMeshTask.skin.sharedMaterial.name = this._entity.EngineObject.Name; + } + } + bool flag2 = this.m_CustomShadow != null; + if (flag2) + { + this.m_CustomShadow.Begin(this._entity.EngineObject); + } + this._combineMeshTask.combineStatus = ECombineStatus.ECombined; + int num = this._isUIAvatar ? XQualitySetting.UILayer : this._entity.DefaultLayer; + bool flag3 = this._combineMeshTask.skin != null; + if (flag3) + { + bool flag4 = num >= 0; + if (flag4) + { + this._combineMeshTask.skin.gameObject.layer = num; + } + this._combineMeshTask.skin.enabled = this._enableRender; + for (EPartType epartType = EPartType.EMountEnd; epartType <= EPartType.EMountEnd; epartType++) + { + DecalLoadTask decalLoadTask = this._combineMeshTask.parts[XFastEnumIntEqualityComparer.ToInt(epartType)] as DecalLoadTask; + decalLoadTask.PostLoad(this._combineMeshTask); + } + Color hairColor = XFashionStorageDocument.GetHairColor(this._hairColorID); + ShaderManager.SetColor(this._combineMeshTask.mpb, hairColor, ShaderManager._ShaderKeyIDHairColor); + this._combineMeshTask.skin.SetPropertyBlock(this._combineMeshTask.mpb); + int quality = XQualitySetting.GetQuality(); + bool flag5 = CombineMeshTask.s_CombineMatType == ECombineMatType.EIndependent || (this._entity.IsPlayer && quality >= XQualitySetting.normalLevel); + if (flag5) + { + this._combineMeshTask.skin.quality = (SkinQuality ) 4; + } + else + { + this._combineMeshTask.skin.quality = 0; + } + bool flag6 = CombineMeshTask.s_CombineMatType == ECombineMatType.ECombined; + if (flag6) + { + this._host.EngineObject.SyncPhysicBox(new Vector3(0f, 0.5f, 0f), new Vector3(0.5f, 1f, 0.5f)); + } + this.RefreshFxActive(ref this._mainWeaponFx, this._enableRender); + this.RefreshFxActive(ref this.sideWeaponFx, this._enableRender); + this.RefreshFxActive(ref this._rootFx, this._enableRender); + bool flag7 = num != XQualitySetting.UILayer && num >= 0; + if (flag7) + { + GameObject gameObject = this._combineMeshTask.skin.gameObject; + XRenderComponent.RemoveObj(this._entity, gameObject); + XRenderComponent.AddEquipObj(this._entity, gameObject, this._combineMeshTask.skin); + } + this.RefreshSecondWeaponFx(); + } + bool flag8 = this._LoadFinishedCallback != null; + if (flag8) + { + this._LoadFinishedCallback(this); + } + } + + private void RefreshShadow() + { + bool enableRealTimeShadow = this._enableRealTimeShadow; + if (enableRealTimeShadow) + { + bool flag = this._entity.IsPlayer && this.m_CustomShadow == null; + if (flag) + { + this.m_CustomShadow = XSingleton.singleton.AddShadowProjector(XSingleton.singleton.GameCamera.CameraTrans); + bool flag2 = this.m_CustomShadow != null; + if (flag2) + { + this.m_CustomShadow.Begin(this._entity.EngineObject); + } + } + } + else + { + bool flag3 = this.m_CustomShadow != null; + if (flag3) + { + XSingleton.singleton.RemoveShadowProjector(this.m_CustomShadow); + this.m_CustomShadow = null; + } + } + } + + private void RefreshEnable() + { + int layer = this._isUIAvatar ? XQualitySetting.UILayer : this._entity.DefaultLayer; + for (EPartType epartType = EPartType.ECombinePartEnd; epartType < EPartType.EMountEnd; epartType++) + { + MountLoadTask mountLoadTask = this._combineMeshTask.parts[XFastEnumIntEqualityComparer.ToInt(epartType)] as MountLoadTask; + mountLoadTask.ProcessEnable(this._enableRender, XEquipComponent.ForceDisableEffect(this._entity, mountLoadTask), layer); + } + bool flag = this._combineMeshTask.skin != null; + if (flag) + { + this._combineMeshTask.skin.enabled = this._enableRender; + } + this.RefreshFxActive(ref this._mainWeaponFx, this._enableRender); + this.RefreshFxActive(ref this.sideWeaponFx, this._enableRender); + this.RefreshFxActive(ref this._rootFx, this._enableRender); + } + + private void RefreshRenderQueue() + { + bool flag = this._renderQueue > 0; + if (flag) + { + for (EPartType epartType = EPartType.ECombinePartEnd; epartType < EPartType.EMountEnd; epartType++) + { + MountLoadTask mountLoadTask = this._combineMeshTask.parts[XFastEnumIntEqualityComparer.ToInt(epartType)] as MountLoadTask; + mountLoadTask.ProcessRenderQueue(this._renderQueue); + } + this.RefreshFxQueue(ref this._mainWeaponFx, this._renderQueue); + this.RefreshFxQueue(ref this.sideWeaponFx, this._renderQueue); + this.RefreshFxQueue(ref this._rootFx, this._renderQueue); + } + } + + private static bool HideWing(XEntity e, MountLoadTask mountPart) + { + bool flag = mountPart.part == EPartType.EWeaponEnd && e.Attributes != null && (e.Attributes.Outlook.state.type == OutLookStateType.OutLook_RidePet || e.Attributes.Outlook.state.type == OutLookStateType.OutLook_RidePetCopilot); + if (flag) + { + bool flag2 = e.Attributes.Outlook.state.param > 0u && !XPetDocument.GetWithowWind(e.Attributes.Outlook.state.param); + if (flag2) + { + return true; + } + } + return false; + } + + private static bool ForceDisableEffect(XEntity e, MountLoadTask mountPart) + { + return XSingleton.singleton.SceneType != SceneType.SCENE_LOGIN && !XQualitySetting.GetQuality(EFun.ECommonHigh) && !e.IsPlayer && mountPart.part != EPartType.ECombinePartEnd; + } + + private void PartLoaded(MountLoadTask mountPart) + { + bool flag = this._entity == null || this._combineMeshTask.combineStatus != ECombineStatus.ECombined; + if (!flag) + { + bool flag2 = mountPart != null && mountPart.processStatus == EProcessStatus.EPreProcess; + if (flag2) + { + XGameObject xgo = mountPart.xgo; + bool flag3 = xgo == null; + if (flag3) + { + bool flag4 = mountPart.part == EPartType.EWeaponEnd; + if (flag4) + { + this.UnEquipAffiliateParts(ref this._wing); + } + else + { + bool flag5 = mountPart.part == EPartType.ETail; + if (flag5) + { + this.UnEquipAffiliateParts(ref this._tail); + } + else + { + bool flag6 = mountPart.part == EPartType.ESprite; + if (flag6) + { + this.UnEquipAffiliateParts(ref this._sprite); + } + } + } + } + else + { + int layer = this._isUIAvatar ? XQualitySetting.UILayer : this._entity.DefaultLayer; + bool flag7 = XEquipComponent.HideWing(this._entity, mountPart); + bool forceDisable = XEquipComponent.ForceDisableEffect(this._entity, mountPart); + bool enable = !flag7 && this._enableRender; + mountPart.ProcessRender(this._entity, layer, enable, this._renderQueue, forceDisable); + bool flag8 = mountPart.part == EPartType.ECombinePartEnd; + if (flag8) + { + this.m_mainWeaponID = mountPart.fpi.fasionID; + WeaponLoadTask weaponLoadTask = mountPart as WeaponLoadTask; + bool flag9 = weaponLoadTask != null && this._mainWeaponPoint != null; + if (flag9) + { + weaponLoadTask.PostProcess(this._mainWeaponPoint[0], this._mainWeaponPoint[1], this._entity); + } + this.RefreshEquipFx(); + } + else + { + XAffiliate xaffiliate = null; + bool flag10 = mountPart.part == EPartType.EWeaponEnd; + if (flag10) + { + this._wing = mountPart.PostProcess(this._entity, this._wing, this._wingPoint); + xaffiliate = this._wing; + } + else + { + bool flag11 = mountPart.part == EPartType.ETail; + if (flag11) + { + this._tail = mountPart.PostProcess(this._entity, this._tail, this._tailPoint); + xaffiliate = this._tail; + } + else + { + bool flag12 = mountPart.part == EPartType.ESprite; + if (flag12) + { + this._sprite = mountPart.PostProcess(this._entity, this._sprite, this._spritePoint); + bool flag13 = this._sprite != null; + if (flag13) + { + xaffiliate = this._sprite; + this._sprite.MirrorState = false; + this._sprite.ChangeSpriteMatColor(); + this.UpdateSpriteOffset(this._entity.IsMounted ? ESpriteStatus.EMount : ESpriteStatus.ENormal); + } + } + } + } + bool flag14 = xaffiliate != null; + if (flag14) + { + xaffiliate.OnMount(); + } + } + } + mountPart.processStatus = EProcessStatus.EProcessed; + } + } + } + + public bool IsLoadingPart() + { + return this._combineMeshTask.combineStatus == ECombineStatus.ECombineing; + } + + public bool IsCombineFinish() + { + return this._combineMeshTask.combineStatus == ECombineStatus.ECombined; + } + + public void EquipFishing(bool enabled, uint presentid = 0u) + { + if (enabled) + { + XAffiliate xaffiliate = XSingleton.singleton.CreateAffiliate(presentid, this._entity); + xaffiliate.MirrorState = false; + this._fishing = xaffiliate; + xaffiliate.EngineObject.SetParentTrans(this._finshingPoint); + xaffiliate.EngineObject.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, Vector3.one, false); + } + else + { + bool flag = this._fishing != null; + if (flag) + { + this._entity.DestroyAffiliate(this._fishing); + this._fishing = null; + } + } + } + + public void PlayFishingRodAnimation(string anim) + { + bool flag = this._fishing != null; + if (flag) + { + this._fishing.Presentation(anim, null, null); + } + } + + public void EffectFromAttr() + { + } + + public uint SpriteFromAttr() + { + bool isDummy = this._entity.IsDummy; + uint result; + if (isDummy) + { + result = 0u; + } + else + { + bool isRole = this._entity.IsRole; + if (isRole) + { + bool flag = this._entity.Attributes.Outlook.sprite.leaderid == 0u; + if (flag) + { + this.AttachSprite(false, 0u); + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(this._entity.Attributes.Outlook.sprite.leaderid); + bool flag2 = bySpriteID == null; + if (!flag2) + { + this.AttachSprite(true, bySpriteID.PresentID); + return bySpriteID.PresentID; + } + XSingleton.singleton.AddErrorLog(string.Format("Error! sprite leaderID = ", this._entity.Attributes.Outlook.sprite.leaderid), null, null, null, null, null); + this.AttachSprite(false, 0u); + } + } + result = 0u; + } + return result; + } + + public void SpriteFromData(XOutlookSprite sprite) + { + bool flag = sprite.leaderid == 0u; + if (flag) + { + this.AttachSprite(false, 0u); + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(sprite.leaderid); + bool flag2 = bySpriteID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Format("Error! sprite leaderID = {0}", sprite.leaderid), null, null, null, null, null); + this.AttachSprite(false, 0u); + } + else + { + this.AttachSprite(true, bySpriteID.PresentID); + } + } + } + + public void AttachSprite(bool bAttached, uint presentid = 0u) + { + MountLoadTask mountLoadTask = this._combineMeshTask.parts[11] as MountLoadTask; + FashionPositionInfo fashionPositionInfo = new FashionPositionInfo(0); + fashionPositionInfo.presentID = (bAttached ? presentid : 0u); + mountLoadTask.Load(this._entity, -1, ref fashionPositionInfo, true, null); + } + + private void UpdateSpriteOffset(ESpriteStatus spriteState) + { + bool flag = this._combineMeshTask.combineStatus == ECombineStatus.ECombined && this._spritePoint != null && this._combineMeshTask.skin != null; + if (flag) + { + Vector3 size = this._combineMeshTask.skin.localBounds.size; + size.x /= -2f; + size.z = 0f; + bool flag2 = spriteState == ESpriteStatus.EMount || spriteState == ESpriteStatus.EDead; + if (flag2) + { + size.y /= 2f; + } + this._spritePoint.localPosition = XSingleton.singleton.SpriteOffset + size; + } + } + + public void RefreashSprite() + { + this.UpdateSpriteOffset(this._entity.IsMounted ? ESpriteStatus.EMount : ESpriteStatus.ENormal); + } + + private void UpdateEnhanceLevel(XBodyBag equipBag) + { + bool flag = equipBag != null; + if (flag) + { + this.enhanceLevel = uint.MaxValue; + for (int i = 0; i < XBagDocument.EquipMax; i++) + { + XEquipItem xequipItem = equipBag[i] as XEquipItem; + bool flag2 = xequipItem != null && xequipItem.itemID != 0; + if (!flag2) + { + this.enhanceLevel = 0u; + return; + } + this.enhanceLevel = Math.Min(this.enhanceLevel, xequipItem.enhanceInfo.EnhanceLevel); + } + bool flag3 = this.enhanceLevel != uint.MaxValue; + if (flag3) + { + return; + } + } + this.enhanceLevel = 0u; + } + + public void SetEnhanceMaster(uint level) + { + this.enhanceLevel = level; + } + + public void SetSuitFx(uint id) + { + this._rootFxID = id; + } + + private bool ShowEquipFx(bool login = true) + { + XQualitySetting.ESetting quality = (XQualitySetting.ESetting)XQualitySetting.GetQuality(); + bool flag = this._entity.IsDummy || this._entity.IsPlayer; + XQualitySetting.ESetting esetting = quality; + if (esetting - XQualitySetting.ESetting.EHeigh <= 1) + { + flag = true; + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_LOGIN; + if (flag2) + { + flag = (flag && login); + } + return flag; + } + + private void RefreshEnhanceLevel() + { + bool isDummy = this._entity.IsDummy; + if (!isDummy) + { + bool flag = this._entity.Attributes != null; + if (flag) + { + this.enhanceLevel = this._entity.Attributes.Outlook.enhanceMasterLevel; + } + else + { + this.enhanceLevel = 0u; + } + } + } + + private void RefreshSuitFxID() + { + bool isDummy = this._entity.IsDummy; + if (!isDummy) + { + bool flag = this._entity.Attributes != null; + if (flag) + { + this._rootFxID = this._entity.Attributes.Outlook.suitEffectID; + } + else + { + this._rootFxID = 0u; + } + } + } + + public void RefreshSuitFx() + { + this.RefreshSuitFxID(); + this.SetSuitFx(this.ShowEquipFx(false)); + } + + public void RefreshEquipFx() + { + this.RefreshEnhanceLevel(); + this.SetWeaponFx(this.ShowEquipFx(true)); + } + + public void RefreshSecondWeaponFx() + { + this.SetSideWeaponFx(this.ShowEquipFx(true)); + } + + private void SetSideWeaponFx(bool setFx) + { + bool flag = this.sideWeaponFx == null || this.sideWeaponPoint == null; + if (!flag) + { + string[] strFxs = null; + bool flag2 = setFx && XFashionDocument.TryGetFashionEnhanceFx(this.m_sideWeaponID, this._type_id, out strFxs); + if (flag2) + { + this.SetWeaponFx(ref this.sideWeaponFx, ref this.sideWeaponPoint, strFxs); + } + else + { + this.DestroyFx(this.sideWeaponFx); + } + } + } + + private void SetSuitFx(bool setFx) + { + string text = null; + bool flag = setFx && XFashionStorageDocument.TryGetSpecialEffect(this._rootFxID, this._type_id, out text); + if (flag) + { + bool flag2 = this._rootFx != null && !this._rootFx.FxName.Equals(text); + if (flag2) + { + this.DestroyFx(ref this._rootFx); + this._rootFx = null; + } + bool flag3 = this._rootFx != null; + if (!flag3) + { + Transform transform = (XSingleton.singleton.SceneType == SceneType.SCENE_LOGIN && this._rootPoint != null) ? this._rootPoint : this._root; + bool isUIAvatar = this._isUIAvatar; + if (isUIAvatar) + { + this._rootFx = XSingleton.singleton.CreateUIFx(text, transform, true); + bool flag4 = this._renderQueue > 0; + if (flag4) + { + this._rootFx.SetRenderQueue(this._renderQueue); + } + } + else + { + this._rootFx = XSingleton.singleton.CreateFx(text, XFx._ProcessMesh, true); + this._rootFx.SetActive(this._enableRender); + this._rootFx.SetRenderLayer(this._entity.DefaultLayer); + this._rootFx.Play(transform, Vector3.zero, Vector3.one, 1f, true, false); + this._rootFx.SetParent(transform, Vector3.zero, Quaternion.Euler(new Vector3(0f, 0f, -transform.localEulerAngles.z)), Vector3.one); + XRenderComponent.AddFx(this._entity, this._rootFx); + bool flag5 = this._rootFx != null && this._entity.Mount != null; + if (flag5) + { + this._entity.Mount.MountFx(this._rootFx, this._entity.IsCopilotMounted); + } + } + } + } + else + { + this.DestroyFx(ref this._rootFx); + } + } + + private void SetWeaponFx(ref XFx[] xfxs, ref Transform[] points, string[] strFxs) + { + bool flag = xfxs == null || points == null; + if (!flag) + { + bool flag2 = strFxs == null; + if (flag2) + { + this.DestroyFx(xfxs); + } + else + { + bool flag3 = !this.ComparerValue(xfxs, strFxs); + bool flag4 = flag3; + if (flag4) + { + this.DestroyFx(xfxs); + } + bool flag5 = flag3; + if (flag5) + { + int i = 0; + int num = points.Length; + while (i < num) + { + bool flag6 = points[i] == null || i >= strFxs.Length; + if (!flag6) + { + bool isUIAvatar = this._isUIAvatar; + if (isUIAvatar) + { + xfxs[i] = XSingleton.singleton.CreateUIFx(strFxs[i], points[i], true); + bool flag7 = this._renderQueue > 0; + if (flag7) + { + xfxs[i].SetRenderQueue(this._renderQueue); + } + } + else + { + XFx xfx = XSingleton.singleton.CreateFx(strFxs[i], XFx._ProcessMesh, true); + xfx.SetActive(this._enableRender); + xfx.SetRenderLayer(this._entity.DefaultLayer); + xfx.Play(points[i], Vector3.zero, Vector3.one, 1f, true, false); + xfxs[i] = xfx; + XRenderComponent.AddFx(this._entity, xfxs[i]); + } + } + i++; + } + } + } + } + } + + private bool ComparerValue(XFx[] fxs, string[] str) + { + bool flag = str == null; + bool result; + if (flag) + { + result = false; + } + else + { + int i = 0; + int num = fxs.Length; + while (i < num) + { + bool flag2 = i < str.Length; + if (flag2) + { + bool flag3 = fxs[i] == null || string.IsNullOrEmpty(str[i]); + if (flag3) + { + return false; + } + bool flag4 = !fxs[i].FxName.Equals(str[i]); + if (flag4) + { + return false; + } + } + else + { + bool flag5 = fxs[i] != null; + if (flag5) + { + return false; + } + } + i++; + } + result = true; + } + return result; + } + + private void SetWeaponFx(bool setFx) + { + string[] strFxs = null; + bool flag = setFx && (XFashionDocument.TryGetFashionEnhanceFx(this.m_mainWeaponID, this._type_id, out strFxs) || XEquipDocument.TryGetEnhanceFxData(this._type_id, this.enhanceLevel, out strFxs)); + if (flag) + { + this.SetWeaponFx(ref this._mainWeaponFx, ref this._mainWeaponPoint, strFxs); + } + else + { + this.DestroyFx(this._mainWeaponFx); + } + } + + private void DestroyFx(XFx[] fxs) + { + bool flag = fxs != null && fxs.Length != 0; + if (flag) + { + int i = 0; + int num = fxs.Length; + while (i < num) + { + bool flag2 = fxs[i] == null; + if (!flag2) + { + this.DestroyFx(ref fxs[i]); + } + i++; + } + } + } + + private void DestroyFx(ref XFx fx) + { + bool flag = fx != null; + if (flag) + { + XRenderComponent.RemoveFx(this._entity, fx); + XSingleton.singleton.DestroyFx(fx, true); + fx = null; + } + } + + private void RefreshFxActive(ref XFx[] xfxs, bool active) + { + bool flag = xfxs == null; + if (!flag) + { + for (int i = 0; i < xfxs.Length; i++) + { + this.RefreshFxActive(ref xfxs[i], active); + } + } + } + + private void RefreshFxActive(ref XFx xfx, bool active) + { + bool flag = xfx != null; + if (flag) + { + xfx.SetActive(active); + } + } + + private void RefreshFxQueue(ref XFx xfx, int renderQueue) + { + bool flag = xfx != null; + if (flag) + { + xfx.SetRenderQueue(renderQueue); + } + } + + private void RefreshFxQueue(ref XFx[] xfxs, int renderQueue) + { + for (int i = 0; i < xfxs.Length; i++) + { + this.RefreshFxQueue(ref xfxs[i], renderQueue); + } + } + + protected bool OnPlayerDeathEvent(XEventArgs e) + { + bool flag = this._sprite == null || this._entity.Attributes.Outlook.sprite.leaderid == 0u; + bool result; + if (flag) + { + result = true; + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(this._entity.Attributes.Outlook.sprite.leaderid); + this._sprite.Presentation(bySpriteID.DeathAnim, null, null); + this.UpdateSpriteOffset(ESpriteStatus.EDead); + result = true; + } + return result; + } + + protected bool OnPlayerReviveEvent(XEventArgs e) + { + bool flag = this._sprite == null || this._entity.Attributes.Outlook.sprite.leaderid == 0u; + bool result; + if (flag) + { + result = true; + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(this._entity.Attributes.Outlook.sprite.leaderid); + this._sprite.Presentation(bySpriteID.ReviveAnim, null, null); + this.UpdateSpriteOffset(this._entity.IsMounted ? ESpriteStatus.EMount : ESpriteStatus.ENormal); + result = true; + } + return result; + } + + protected bool OnMountEvent(XEventArgs e) + { + bool flag = e is XOnMountedEventArgs; + if (flag) + { + this.UpdateSpriteOffset(ESpriteStatus.EMount); + int layer = this._isUIAvatar ? XQualitySetting.UILayer : this._entity.DefaultLayer; + MountLoadTask mountLoadTask = this._combineMeshTask.parts[XFastEnumIntEqualityComparer.ToInt(EPartType.EWeaponEnd)] as MountLoadTask; + bool flag2 = XEquipComponent.HideWing(this._entity, mountLoadTask); + mountLoadTask.ProcessEnable(!flag2 && this._enableRender, false, layer); + bool flag3 = this.m_CustomShadow != null; + if (flag3) + { + this.m_CustomShadow.OnTargetChange(this._entity.MoveObj); + } + bool flag4 = this._rootFx != null && this._entity.Mount != null; + if (flag4) + { + this._entity.Mount.MountFx(this._rootFx, this._entity.IsCopilotMounted); + } + } + else + { + bool flag5 = e is XOnUnMountedEventArgs; + if (flag5) + { + this.UpdateSpriteOffset(ESpriteStatus.ENormal); + int layer2 = this._isUIAvatar ? XQualitySetting.UILayer : this._entity.DefaultLayer; + MountLoadTask mountLoadTask2 = this._combineMeshTask.parts[XFastEnumIntEqualityComparer.ToInt(EPartType.EWeaponEnd)] as MountLoadTask; + mountLoadTask2.ProcessEnable(this._enableRender, XEquipComponent.ForceDisableEffect(this._entity, mountLoadTask2), layer2); + bool flag6 = this.m_CustomShadow != null; + if (flag6) + { + this.m_CustomShadow.OnTargetChange(this._entity.EngineObject); + } + bool flag7 = this._rootFx != null; + if (flag7) + { + this._rootFx.SetParent(this._root, Vector3.zero, Quaternion.identity, Vector3.one); + } + } + } + return true; + } + + public void EnableRealTimeShadow(bool enable) + { + this._enableRealTimeShadow = enable; + bool flag = this.IsCombineFinish(); + if (flag) + { + this.RefreshShadow(); + } + } + + public void EnableRender(bool enable) + { + this._enableRender = enable; + bool flag = this.IsCombineFinish(); + if (flag) + { + this.RefreshEnable(); + } + } + + public void SetRenderQueue(int renderQueue) + { + this._renderQueue = renderQueue; + bool flag = this.IsCombineFinish(); + if (flag) + { + this.RefreshRenderQueue(); + } + } + + public void RefreshRenderObj() + { + bool flag = this.IsCombineFinish(); + if (flag) + { + bool flag2 = this._combineMeshTask.skin != null; + if (flag2) + { + GameObject gameObject = this._combineMeshTask.skin.gameObject; + XRenderComponent.AddEquipObj(this._entity, gameObject, this._combineMeshTask.skin); + } + for (EPartType epartType = EPartType.ECombinePartEnd; epartType < EPartType.EMountEnd; epartType++) + { + MountLoadTask mountLoadTask = this._combineMeshTask.parts[XFastEnumIntEqualityComparer.ToInt(epartType)] as MountLoadTask; + mountLoadTask.ProcessRenderComponent(this._entity); + } + bool flag3 = this._mainWeaponFx != null; + if (flag3) + { + int i = 0; + int num = this._mainWeaponFx.Length; + while (i < num) + { + XFx xfx = this._mainWeaponFx[i]; + bool flag4 = xfx != null; + if (flag4) + { + XRenderComponent.AddFx(this._entity, xfx); + } + i++; + } + } + bool flag5 = this.sideWeaponPoint != null; + if (flag5) + { + int j = 0; + int num2 = this.sideWeaponPoint.Length; + while (j < num2) + { + XFx xfx2 = this.sideWeaponFx[j]; + bool flag6 = xfx2 != null; + if (flag6) + { + XRenderComponent.AddFx(this._entity, xfx2); + } + j++; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEquipComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XEquipComponent.cs.meta new file mode 100644 index 00000000..c0aba143 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8b9cd0a7653174438fae881f9c29e22 +timeCreated: 1611404406 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEquipCreateDocument.cs b/Client/Assets/Scripts/XMainClient/XEquipCreateDocument.cs new file mode 100644 index 00000000..01285f69 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipCreateDocument.cs @@ -0,0 +1,1926 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEquipCreateDocument : XDocComponent + { + public override uint ID + { + get + { + return XEquipCreateDocument.uuID; + } + } + + public static XEquipCreateDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XEquipCreateDocument.uuID) as XEquipCreateDocument; + } + } + + public static ItemComposeTable ItemComposeReader + { + get + { + return XEquipCreateDocument.sItemComposeReader; + } + } + + public string DefaultEmblemAttrString + { + get + { + return XEquipCreateDocument.sDefaultEmblemAttrString; + } + } + + public string EmblemAttrEndString + { + get + { + return XEquipCreateDocument.sEmblemAttrEndString; + } + } + + public bool RedPointEquip + { + get + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_EquipCreate_EquipSet) & this.mRedPointEquip; + } + set + { + this.mRedPointEquip = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_EquipCreate_EquipSet, true); + } + } + + public bool RedPointEmblem + { + get + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_EquipCreate_EmblemSet) & this.mRedPointEmblem; + } + set + { + this.mRedPointEmblem = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_EquipCreate_EmblemSet, true); + } + } + + public bool IsForbidGetItemUI + { + get + { + bool flag = DlgBase.singleton.IsVisible(); + bool result; + if (flag) + { + result = DlgBase.singleton.equipSetCreateHandler.IsVisible(); + } + else + { + bool flag2 = XSuperRiskDocument.Doc.GameViewHandler != null && XSuperRiskDocument.Doc.GameViewHandler.IsVisible(); + if (flag2) + { + result = true; + } + else + { + bool flag3 = DlgBase.singleton.IsVisible(); + result = flag3; + } + } + return result; + } + } + + public int CurRoleProf + { + get + { + bool flag = -1 == this.mCurRoleProf; + if (flag) + { + this.mCurRoleProf = this._GetCurrentPlayerProf(); + } + return this.mCurRoleProf; + } + } + + public int NextShowLevel + { + get + { + int @int = XSingleton.singleton.GetInt("ShowStageMoreThanCurStage"); + int num = 0; + int level = (int)XSingleton.singleton.XPlayerData.Level; + for (int i = XEquipCreateDocument.sEquipSuitLevelList.Count - 1; i > 0; i--) + { + bool flag = XEquipCreateDocument.sEquipSuitLevelList[i] > level; + if (flag) + { + num = i; + num -= @int - 1; + break; + } + } + bool flag2 = num < 1; + if (flag2) + { + num = 1; + } + return XEquipCreateDocument.sEquipSuitLevelList[num]; + } + } + + public int LastShowLevel + { + get + { + int @int = XSingleton.singleton.GetInt("ShowStageLessThanCurStage"); + int num = 1; + int level = (int)XSingleton.singleton.XPlayerData.Level; + for (int i = XEquipCreateDocument.sEquipSuitLevelList.Count - 1; i > 0; i--) + { + bool flag = XEquipCreateDocument.sEquipSuitLevelList[i] > level; + if (flag) + { + num = i; + num += @int + 1; + break; + } + } + bool flag2 = num == 1; + if (flag2) + { + num += @int; + } + bool flag3 = num >= XEquipCreateDocument.sEquipSuitLevelList.Count; + if (flag3) + { + num = XEquipCreateDocument.sEquipSuitLevelList.Count - 1; + } + return XEquipCreateDocument.sEquipSuitLevelList[num]; + } + } + + private static List MarkList + { + get + { + bool flag = XEquipCreateDocument.m_markList == null; + if (flag) + { + XEquipCreateDocument.m_markList = XSingleton.singleton.GetIntList("SmeltCorlorRange"); + } + return XEquipCreateDocument.m_markList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("EquipCreateDocument"); + + private static EquipSuitTable sEquipSuitTable = new EquipSuitTable(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ItemComposeTable sItemComposeReader = new ItemComposeTable(); + + private static AttributeEmblem sAttributeEmblemTable = new AttributeEmblem(); + + private static List sEquipSuitQualityGroupList = new List(); + + private static Dictionary sEquipSuitIDMenuDataDic = new Dictionary(); + + private static List sEquipSuitLevelList = new List(); + + private static Dictionary m_itemQuanlityTypeDic = new Dictionary(); + + private static Dictionary> m_quanlityLevelDic = new Dictionary>(); + + private List mDataUIList; + + private List mMainProfDataList; + + private List mEmblemBagItems = new List(); + + private static string sDefaultEmblemAttrString; + + private static string sEmblemAttrEndString; + + private bool mRedPointEquip; + + private bool mRedPointEmblem; + + private int mLastItemTypeListLevel; + + private int mCurSelectLevel; + + private int mCurSelectProf; + + private int mCurRoleProf; + + private bool mItemTypeListDirty; + + private uint mTimerID; + + private int mTimerCount; + + private float mTimerPassSecond; + + private int mCurComposeID; + + public static int CoinId = 1; + + private XTimerMgr.AccurateElapsedEventHandler _onTimeCb = null; + + public bool IsBind = false; + + public ulong CurUid = 0UL; + + private Dictionary EmblemRedDotDic = new Dictionary(); + + private static CVSReader.RowDataCompare comp = new CVSReader.RowDataCompare(XEquipCreateDocument.EmblemAttrDataCompare); + + private static List m_markList; + + public bool IsCreating = false; + + private class MaterialPointClass + { + public XItem Item + { + get + { + return this.item; + } + } + + public uint Ppt + { + get + { + return this.ppt; + } + } + + private XItem item; + + private uint ppt; + + public MaterialPointClass(XItem item, uint ppt) + { + this.item = item; + this.ppt = ppt; + } + } + + public XEquipCreateDocument() + { + this._onTimeCb = new XTimerMgr.AccurateElapsedEventHandler(this.OnTimer); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XEquipCreateDocument.AsyncLoader.AddTask("Table/ItemCompose", XEquipCreateDocument.sItemComposeReader, false); + XEquipCreateDocument.AsyncLoader.AddTask("Table/EquipSuit", XEquipCreateDocument.sEquipSuitTable, false); + XEquipCreateDocument.AsyncLoader.AddTask("Table/AttributeEmblem", XEquipCreateDocument.sAttributeEmblemTable, false); + XEquipCreateDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnFinishItemChange)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public static void OnTableLoaded() + { + XEquipCreateDocument.sEmblemAttrEndString = XStringDefineProxy.GetString("EQUIPCREATE_EMBLEMSET_ATTR_END_FMT").Replace("{n}", "\n"); + XEquipCreateDocument.sDefaultEmblemAttrString = XStringDefineProxy.GetString("EQUIPCREATE_EMBLEMSET_ATTR_DEFAULT").Replace("{n}", "\n"); + XEquipCreateDocument.CoinId = XSingleton.singleton.GetInt("CoinItemID"); + XEquipCreateDocument.sEquipSuitQualityGroupList.Clear(); + Dictionary> dictionary = new Dictionary>(); + XCharacterEquipDocument.CreateSuitManager(XEquipCreateDocument.sEquipSuitTable); + for (int i = 0; i < XEquipCreateDocument.sEquipSuitTable.Table.Length; i++) + { + EquipSuitTable.RowData rowData = XEquipCreateDocument.sEquipSuitTable.Table[i]; + bool flag = rowData == null; + if (!flag) + { + bool isCreateShow = rowData.IsCreateShow; + if (isCreateShow) + { + List list = null; + bool flag2 = !dictionary.TryGetValue(rowData.SuitQuality, out list); + if (flag2) + { + list = new List(); + dictionary.Add(rowData.SuitQuality, list); + } + EquipSuitMenuDataItem equipSuitMenuDataItem = new EquipSuitMenuDataItem(); + equipSuitMenuDataItem.suitData = rowData; + equipSuitMenuDataItem.show = true; + equipSuitMenuDataItem.suitItemList = new List(); + XEquipCreateDocument._GetEquipSuitList(rowData.SuitID, ref equipSuitMenuDataItem.suitItemList); + XEquipCreateDocument.sEquipSuitIDMenuDataDic[rowData.SuitID] = equipSuitMenuDataItem; + list.Add(equipSuitMenuDataItem); + } + } + } + foreach (KeyValuePair> keyValuePair in dictionary) + { + bool flag3 = keyValuePair.Value.Count > 0; + if (flag3) + { + EquipSuitMenuData equipSuitMenuData = new EquipSuitMenuData(); + equipSuitMenuData.quality = keyValuePair.Key; + equipSuitMenuData.list = keyValuePair.Value; + XEquipCreateDocument.sEquipSuitQualityGroupList.Add(equipSuitMenuData); + } + } + XEquipCreateDocument.sEquipSuitQualityGroupList.Sort(); + XEquipCreateDocument.InitQuanlityLevelDic(); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.mRedPointEquip = false; + this.mRedPointEmblem = false; + this.mItemTypeListDirty = false; + this.mLastItemTypeListLevel = -1; + this.mCurSelectLevel = 0; + this.mCurSelectProf = 0; + this.mCurRoleProf = -1; + this.mTimerID = 0u; + this.mTimerCount = 0; + this.mCurComposeID = 0; + this.CurUid = 0UL; + this.mMainProfDataList = XSingleton.singleton.GetMainProfList(); + XSingleton.singleton.Init(); + } + + public override void OnDetachFromHost() + { + this.mDataUIList = null; + this.mMainProfDataList = null; + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.CheckLevelUp(arg.PlayerInfo.Brief.level); + this.IsCreating = false; + bool flag = DlgBase.singleton != null && DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.equipSetCreateHandler != null && DlgBase.singleton.equipSetCreateHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton.equipSetCreateHandler.SetVisible(false); + } + } + } + + private static void InitQuanlityLevelDic() + { + XEquipCreateDocument.m_quanlityLevelDic.Clear(); + XEquipCreateDocument.sEquipSuitLevelList.Clear(); + XEquipCreateDocument.InitItemQuanlityTypeDic(); + for (int i = 0; i < XEquipCreateDocument.sEquipSuitQualityGroupList.Count; i++) + { + EquipSuitMenuData equipSuitMenuData = XEquipCreateDocument.sEquipSuitQualityGroupList[i]; + bool flag = equipSuitMenuData == null; + if (!flag) + { + for (int j = 0; j < equipSuitMenuData.list.Count; j++) + { + EquipSuitMenuDataItem equipSuitMenuDataItem = equipSuitMenuData.list[j]; + bool flag2 = equipSuitMenuDataItem == null || equipSuitMenuDataItem.suitData == null; + if (!flag2) + { + int level = equipSuitMenuDataItem.suitData.Level; + bool flag3 = level != 0 && !XEquipCreateDocument.sEquipSuitLevelList.Contains(level); + if (flag3) + { + XEquipCreateDocument.sEquipSuitLevelList.Add(level); + } + int key = 0; + bool flag4 = XEquipCreateDocument.m_itemQuanlityTypeDic.TryGetValue(equipSuitMenuData.quality, out key); + if (flag4) + { + bool flag5 = XEquipCreateDocument.m_quanlityLevelDic.ContainsKey(key); + if (flag5) + { + bool flag6 = !XEquipCreateDocument.m_quanlityLevelDic[key].Contains(level); + if (flag6) + { + XEquipCreateDocument.m_quanlityLevelDic[key].Add(level); + } + } + else + { + List list = new List(); + list.Add(level); + XEquipCreateDocument.m_quanlityLevelDic.Add(key, list); + } + } + else + { + XSingleton.singleton.AddErrorLog(string.Format("m_itemQuanlityTypeDic not include suitMenuData.quality = {0}", equipSuitMenuData.quality), null, null, null, null, null); + } + } + } + } + } + foreach (KeyValuePair> keyValuePair in XEquipCreateDocument.m_quanlityLevelDic) + { + keyValuePair.Value.Sort(); + } + XEquipCreateDocument.sEquipSuitLevelList.Sort(); + XEquipCreateDocument.sEquipSuitLevelList.Add(0); + XEquipCreateDocument.sEquipSuitLevelList.Reverse(); + } + + private static void InitItemQuanlityTypeDic() + { + XEquipCreateDocument.m_itemQuanlityTypeDic.Clear(); + string[] array = XSingleton.singleton.GetValue("RedDotByQuanlityClass").Split(XGlobalConfig.ListSeparator); + bool flag = array != null; + if (flag) + { + for (int i = 0; i < array.Length; i++) + { + bool flag2 = array[i] == null; + if (!flag2) + { + string[] array2 = array[i].Split(XGlobalConfig.SequenceSeparator); + bool flag3 = array2 != null; + if (flag3) + { + for (int j = 0; j < array2.Length; j++) + { + XEquipCreateDocument.m_itemQuanlityTypeDic.Add(int.Parse(array2[j]), i); + } + } + } + } + } + } + + public static bool InEquipSuit(int suitID, bool prof = true) + { + EquipSuitTable.RowData suitBySuitId = XCharacterEquipDocument.SuitManager.GetSuitBySuitId(suitID); + bool flag = suitBySuitId == null; + return !flag && (!prof || (long)suitBySuitId.ProfID == (long)((ulong)XSingleton.singleton.XPlayerData.BasicTypeID)); + } + + public int CurShowLevel(uint curLevel, int quanlity = -1) + { + List list = null; + int num = -1; + bool flag = quanlity == -1; + if (flag) + { + list = XEquipCreateDocument.sEquipSuitLevelList; + } + else + { + int num2 = 0; + bool flag2 = XEquipCreateDocument.m_itemQuanlityTypeDic.TryGetValue(quanlity, out num2); + if (!flag2) + { + XSingleton.singleton.AddErrorLog(string.Format("not find this key in m_itemQuanlityTypeDic quanlity = {0}", quanlity), null, null, null, null, null); + return num; + } + bool flag3 = !XEquipCreateDocument.m_quanlityLevelDic.TryGetValue(num2, out list); + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Format("not find this key in m_quanlityLevelDic key = {0}", num2), null, null, null, null, null); + return num; + } + } + bool flag4 = list != null; + if (flag4) + { + for (int i = 0; i < list.Count; i++) + { + bool flag5 = list[i] <= (int)curLevel && list[i] > num; + if (flag5) + { + num = list[i]; + } + } + } + return num; + } + + private bool IsMaterialEnough(ItemComposeTable.RowData composeData) + { + bool flag = composeData != null; + bool result; + if (flag) + { + bool flag2 = true; + bool flag3 = flag2 && composeData.SrcItem4[0] > 0; + if (flag3) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount(composeData.SrcItem4[0]); + ulong num = (ulong)((long)composeData.SrcItem4[1]); + flag2 = (itemCount >= num); + } + bool flag4 = flag2 && composeData.SrcItem1[0] > 0; + if (flag4) + { + ulong itemCount2 = XBagDocument.BagDoc.GetItemCount(composeData.SrcItem1[0]); + ulong num2 = (ulong)((long)composeData.SrcItem1[1]); + flag2 = (itemCount2 >= num2); + } + bool flag5 = flag2 && composeData.SrcItem2[0] > 0; + if (flag5) + { + ulong itemCount3 = XBagDocument.BagDoc.GetItemCount(composeData.SrcItem2[0]); + ulong num3 = (ulong)((long)composeData.SrcItem2[1]); + flag2 = (itemCount3 >= num3); + } + bool flag6 = flag2 && composeData.SrcItem3[0] > 0; + if (flag6) + { + ulong itemCount4 = XBagDocument.BagDoc.GetItemCount(composeData.SrcItem3[0]); + ulong num4 = (ulong)((long)composeData.SrcItem3[1]); + flag2 = (itemCount4 >= num4); + } + result = flag2; + } + else + { + result = false; + } + return result; + } + + public override void OnEnterSceneFinally() + { + bool flag = SceneType.SCENE_HALL != XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + if (!flag) + { + this.mItemTypeListDirty = true; + this._CheckUpdateItemTypeList(); + bool flag2 = XSingleton.singleton.XPlayerData != null; + if (flag2) + { + this._CheckRedPointByLevel(XSingleton.singleton.XPlayerData.Level); + } + this._CheckUpdateEmblemList(); + this.UpdatePlateMetalsRedDot(); + } + } + + public void CheckLevelUp(uint curLevel) + { + bool flag = SceneType.SCENE_HALL != XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + if (!flag) + { + this._CheckUpdateItemTypeList(); + this._CheckRedPointByLevel(curLevel); + } + } + + private bool OnFinishItemChange(XEventArgs e) + { + bool flag = SceneType.SCENE_HALL != XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + bool result; + if (flag) + { + result = false; + } + else + { + this._CheckUpdateItemTypeList(); + bool flag2 = XSingleton.singleton.XPlayerData != null; + if (flag2) + { + this._CheckRedPointByLevel(XSingleton.singleton.XPlayerData.Level); + } + this._CheckUpdateEmblemList(); + this.UpdatePlateMetalsRedDot(); + result = true; + } + return result; + } + + public ItemComposeTable.RowData GetItemCoomposeRow(int itemId) + { + for (int i = 0; i < XEquipCreateDocument.sItemComposeReader.Table.Length; i++) + { + ItemComposeTable.RowData rowData = XEquipCreateDocument.sItemComposeReader.Table[i]; + bool flag = rowData.Type == 4 && rowData.SrcItem1[0] == itemId; + if (flag) + { + return rowData; + } + } + return null; + } + + private void _CheckRedPointByLevel(uint curLevel) + { + bool flag = SceneType.SCENE_HALL != XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + if (!flag) + { + this.SetRedDotOnlyByLevel(curLevel); + bool redPointEquip = false; + for (int i = 0; i < XEquipCreateDocument.sEquipSuitQualityGroupList.Count; i++) + { + bool flag2 = !XEquipCreateDocument.sEquipSuitQualityGroupList[i].redpoint; + if (!flag2) + { + XEquipCreateDocument.sEquipSuitQualityGroupList[i].redpoint = false; + EquipSuitMenuData equipSuitMenuData = XEquipCreateDocument.sEquipSuitQualityGroupList[i]; + for (int j = 0; j < equipSuitMenuData.list.Count; j++) + { + bool flag3 = !equipSuitMenuData.list[j].redpoint; + if (!flag3) + { + equipSuitMenuData.list[j].redpoint = false; + int profID = equipSuitMenuData.list[j].suitData.ProfID; + bool flag4 = profID != 0 && this.CurRoleProf != profID; + if (!flag4) + { + List suitItemList = equipSuitMenuData.list[j].suitItemList; + int suitQuality = equipSuitMenuData.list[j].suitData.SuitQuality; + EquipSuitItemData[][] itemPosGroupList = XSingleton.singleton.ItemPosGroupList; + int[][] redPointPosGroupList = XSingleton.singleton.RedPointPosGroupList; + for (int k = 0; k < itemPosGroupList.Length; k++) + { + for (int l = 0; l < itemPosGroupList[k].Length; l++) + { + itemPosGroupList[k][l] = null; + } + } + bool flag5 = false; + int level = equipSuitMenuData.list[j].suitData.Level; + for (int m = 0; m < suitItemList.Count; m++) + { + suitItemList[m].redpoint = false; + bool flag6 = XBagDocument.BagDoc.GetItemCount(suitItemList[m].itemData.ItemID) > 0UL; + if (!flag6) + { + bool flag7 = suitItemList[m].CompareValue < 0; + if (!flag7) + { + bool flag8 = false; + for (int k = 0; k < XBagDocument.BagDoc.EquipBag.Length; k++) + { + flag8 = this.IsOwn(XBagDocument.BagDoc.EquipBag[k], suitItemList[m].itemData, suitQuality, level); + bool flag9 = flag8; + if (flag9) + { + break; + } + } + bool flag10 = !flag8; + if (flag10) + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.EQUIP); + List list = new List(); + XBagDocument.BagDoc.GetItemsByType(typeFilter, ref list); + for (int k = 0; k < list.Count; k++) + { + flag8 = this.IsOwn(list[k], suitItemList[m].itemData, suitQuality, level); + bool flag11 = flag8; + if (flag11) + { + break; + } + } + } + bool flag12 = !flag8; + if (flag12) + { + for (int k = 0; k < itemPosGroupList.Length; k++) + { + for (int l = 0; l < itemPosGroupList[k].Length; l++) + { + bool flag13 = (int)suitItemList[m].itemData.EquipPos == redPointPosGroupList[k][l]; + if (flag13) + { + itemPosGroupList[k][l] = suitItemList[m]; + flag5 = true; + } + } + } + } + bool flag14 = flag5; + if (flag14) + { + redPointEquip = true; + for (int k = 0; k < itemPosGroupList.Length; k++) + { + for (int l = 0; l < itemPosGroupList[k].Length; l++) + { + bool flag15 = itemPosGroupList[k][l] != null; + if (flag15) + { + itemPosGroupList[k][l].redpoint = true; + break; + } + } + } + equipSuitMenuData.list[j].redpoint = true; + equipSuitMenuData.redpoint = true; + } + } + } + } + } + } + } + } + } + this.RedPointEquip = redPointEquip; + this.RefreshRedPointEquipUI(); + } + } + + private void SetRedDotOnlyByLevel(uint checkLevel) + { + this.RedPointEquip = false; + int num = 0; + Dictionary dictionary = new Dictionary(); + int nextShowLevel = this.NextShowLevel; + int lastShowLevel = this.LastShowLevel; + for (int i = 0; i < XEquipCreateDocument.sEquipSuitQualityGroupList.Count; i++) + { + EquipSuitMenuData equipSuitMenuData = XEquipCreateDocument.sEquipSuitQualityGroupList[i]; + bool flag = equipSuitMenuData == null; + if (!flag) + { + bool flag2 = false; + for (int j = 0; j < equipSuitMenuData.list.Count; j++) + { + EquipSuitMenuDataItem equipSuitMenuDataItem = equipSuitMenuData.list[j]; + bool flag3 = equipSuitMenuDataItem == null; + if (!flag3) + { + bool flag4 = false; + bool flag5 = equipSuitMenuDataItem.suitData != null; + if (flag5) + { + bool flag6 = equipSuitMenuDataItem.suitData.Level >= lastShowLevel && equipSuitMenuDataItem.suitData.Level <= nextShowLevel; + if (flag6) + { + bool flag7 = !dictionary.TryGetValue(equipSuitMenuDataItem.suitData.SuitQuality, out num); + if (flag7) + { + num = this.CurShowLevel(checkLevel, equipSuitMenuDataItem.suitData.SuitQuality); + dictionary.Add(equipSuitMenuDataItem.suitData.SuitQuality, num); + } + flag4 = (equipSuitMenuDataItem.suitData.Level == num); + } + } + equipSuitMenuDataItem.redpoint = flag4; + bool flag8 = !flag4; + if (flag8) + { + for (int k = 0; k < equipSuitMenuDataItem.suitItemList.Count; k++) + { + equipSuitMenuDataItem.suitItemList[k].redpoint = false; + } + } + flag2 = (flag2 || flag4); + } + } + XEquipCreateDocument.sEquipSuitQualityGroupList[i].redpoint = flag2; + this.RedPointEquip = (this.RedPointEquip || flag2); + dictionary.Clear(); + } + } + } + + private bool IsOwn(XItem _xItem, EquipList.RowData equipListData2, int quanlity, int suitLevel) + { + bool result = false; + bool flag = _xItem != null; + if (flag) + { + bool flag2 = _xItem.itemID == equipListData2.ItemID; + if (flag2) + { + result = true; + } + else + { + int num = 0; + EquipList.RowData equipConf = XBagDocument.GetEquipConf(_xItem.itemID); + ItemList.RowData itemConf = XBagDocument.GetItemConf(_xItem.itemID); + EquipSuitTable.RowData suit = XCharacterEquipDocument.SuitManager.GetSuit(_xItem.itemID, false); + bool flag3 = suit != null; + if (flag3) + { + num = suit.Level; + } + bool flag4 = equipConf != null && (equipConf.EquipPos == equipListData2.EquipPos && (int)itemConf.ItemQuality > quanlity) && num > suitLevel; + if (flag4) + { + result = true; + } + } + } + return result; + } + + private void RefreshRedPointEquipUI() + { + bool flag = DlgBase.singleton.equipSetHandler != null && DlgBase.singleton.equipSetHandler.IsVisible(); + if (flag) + { + DlgBase.singleton.equipSetHandler.RefreshRedPoint(); + } + } + + private int _GetCurrentPlayerProf() + { + return (int)XSingleton.singleton.XPlayerData.BasicTypeID; + } + + public List GetUpdateItemTypeList(bool forceGet) + { + bool flag = this._CheckUpdateItemTypeList(); + List result; + if (flag) + { + result = XEquipCreateDocument.sEquipSuitQualityGroupList; + } + else if (forceGet) + { + result = XEquipCreateDocument.sEquipSuitQualityGroupList; + } + else + { + result = null; + } + return result; + } + + private bool _CheckUpdateItemTypeList() + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + int nextShowLevel = this.NextShowLevel; + int lastShowLevel = this.LastShowLevel; + int num = this.CurShowLevel(XSingleton.singleton.XPlayerData.Level, -1); + bool flag = level != this.mLastItemTypeListLevel || this.mItemTypeListDirty; + bool result; + if (flag) + { + this.mLastItemTypeListLevel = level; + this.mItemTypeListDirty = false; + bool flag2 = XEquipCreateDocument.sEquipSuitQualityGroupList == null; + if (flag2) + { + result = true; + } + else + { + for (int i = 0; i < XEquipCreateDocument.sEquipSuitQualityGroupList.Count; i++) + { + bool flag3 = XEquipCreateDocument.sEquipSuitQualityGroupList[i] == null; + if (!flag3) + { + XEquipCreateDocument.sEquipSuitQualityGroupList[i].show = false; + for (int j = 0; j < XEquipCreateDocument.sEquipSuitQualityGroupList[i].list.Count; j++) + { + bool flag4 = XEquipCreateDocument.sEquipSuitQualityGroupList[i].list[j] == null; + if (!flag4) + { + EquipSuitTable.RowData suitData = XEquipCreateDocument.sEquipSuitQualityGroupList[i].list[j].suitData; + bool flag5 = suitData == null; + if (flag5) + { + XSingleton.singleton.AddGreenLog("data is null i=" + i.ToString() + "j=" + j.ToString(), null, null, null, null, null); + } + else + { + XEquipCreateDocument.sEquipSuitQualityGroupList[i].list[j].show = false; + bool flag6 = true; + bool flag7 = this.mCurSelectLevel == 0; + if (flag7) + { + bool flag8 = suitData.Level > this.mLastItemTypeListLevel && suitData.Level > nextShowLevel; + if (flag8) + { + flag6 = false; + } + } + else + { + bool flag9 = suitData.Level > num || suitData.Level < lastShowLevel; + if (flag9) + { + flag6 = false; + } + } + bool flag10 = !flag6; + if (!flag10) + { + bool flag11 = this.mCurSelectProf != 0; + if (flag11) + { + bool flag12 = suitData.ProfID != this.mCurSelectProf && suitData.ProfID != 0; + if (flag12) + { + flag6 = false; + } + } + XEquipCreateDocument.sEquipSuitQualityGroupList[i].list[j].show = flag6; + bool flag13 = flag6; + if (flag13) + { + XEquipCreateDocument.sEquipSuitQualityGroupList[i].list[j].suitItemList.Sort(); + XEquipCreateDocument.sEquipSuitQualityGroupList[i].show = true; + } + } + } + } + } + } + } + result = true; + } + } + else + { + result = false; + } + return result; + } + + private void _CheckUpdateEmblemList() + { + this.mEmblemBagItems.Clear(); + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM_MATERIAL); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.mEmblemBagItems); + bool flag = DlgBase.singleton.emblemSetHandler != null; + if (flag) + { + bool flag2 = DlgBase.singleton.emblemSetHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton.emblemSetHandler.RefreshItemList(); + } + } + } + + private bool OnVirtualItemChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = xvirtualItemChangedEventArgs.itemID == 1; + if (flag) + { + this.UpdatePlateMetalsRedDot(); + } + return true; + } + + public bool IsHadRedDot(int itemId) + { + bool result = false; + this.EmblemRedDotDic.TryGetValue(itemId, out result); + return result; + } + + private void UpdatePlateMetalsRedDot() + { + this.EmblemRedDotDic.Clear(); + Dictionary> dictionary = new Dictionary>(); + List list = null; + for (int i = 0; i < this.mEmblemBagItems.Count; i++) + { + list = null; + XItem xitem = this.mEmblemBagItems[i]; + ItemComposeTable.RowData emblemComposeDataByMetalID = this.GetEmblemComposeDataByMetalID(xitem.itemID); + bool flag = emblemComposeDataByMetalID == null; + if (!flag) + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(emblemComposeDataByMetalID.ItemID); + bool flag2 = emblemConf == null; + if (flag2) + { + this.EmblemRedDotDic.Add(xitem.itemID, false); + } + else + { + bool flag3 = dictionary.TryGetValue(emblemConf.EmblemType, out list); + if (flag3) + { + uint unGetEmblemPPT = this.GetUnGetEmblemPPT(emblemComposeDataByMetalID.ItemID, emblemConf.EmblemType > 1000); + for (int j = 0; j < list.Count; j++) + { + bool flag4 = unGetEmblemPPT > list[j].Ppt; + if (flag4) + { + XEquipCreateDocument.MaterialPointClass item = new XEquipCreateDocument.MaterialPointClass(xitem, unGetEmblemPPT); + list.Insert(j, item); + break; + } + } + } + else + { + list = new List(); + uint unGetEmblemPPT = this.GetUnGetEmblemPPT(emblemComposeDataByMetalID.ItemID, emblemConf.EmblemType > 1000); + XEquipCreateDocument.MaterialPointClass item2 = new XEquipCreateDocument.MaterialPointClass(xitem, unGetEmblemPPT); + list.Add(item2); + dictionary.Add(emblemConf.EmblemType, list); + } + } + } + } + this.RedPointEmblem = false; + foreach (KeyValuePair> keyValuePair in dictionary) + { + bool flag5 = false; + for (int k = 0; k < keyValuePair.Value.Count; k++) + { + XItem xitem = keyValuePair.Value[k].Item; + bool flag6 = !flag5; + if (flag6) + { + bool flag7 = this.IsHadPlateMetalsRedDot(xitem, keyValuePair.Value[k].Ppt); + if (flag7) + { + bool flag8 = !this.EmblemRedDotDic.ContainsKey(xitem.itemID); + if (flag8) + { + this.EmblemRedDotDic.Add(xitem.itemID, true); + } + else + { + this.EmblemRedDotDic[xitem.itemID] = true; + } + flag5 = true; + this.RedPointEmblem = true; + } + } + else + { + bool flag9 = !this.EmblemRedDotDic.ContainsKey(xitem.itemID); + if (flag9) + { + this.EmblemRedDotDic.Add(xitem.itemID, false); + } + else + { + this.EmblemRedDotDic[xitem.itemID] = false; + } + } + } + } + } + + private bool IsHadPlateMetalsRedDot(XItem metelItem, uint ppt) + { + bool flag = metelItem.Prof != 0u && (ulong)metelItem.Prof != (ulong)((long)XEquipCreateDocument.Doc.CurRoleProf); + bool result; + if (flag) + { + result = false; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(metelItem.itemID); + bool flag2 = itemConf == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = (long)itemConf.ReqLevel > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag3) + { + result = false; + } + else + { + ItemComposeTable.RowData emblemComposeDataByMetalID = this.GetEmblemComposeDataByMetalID(metelItem.itemID); + bool flag4 = emblemComposeDataByMetalID == null; + if (flag4) + { + result = false; + } + else + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(emblemComposeDataByMetalID.ItemID); + bool flag5 = emblemConf == null; + if (flag5) + { + result = false; + } + else + { + bool flag6 = !this.IsMaterialEnough(emblemComposeDataByMetalID); + if (flag6) + { + result = false; + } + else + { + bool flag7 = (long)emblemComposeDataByMetalID.Coin > (long)XBagDocument.BagDoc.GetItemCount(1); + if (flag7) + { + result = false; + } + else + { + XEmblemItem xemblemItem = this.CheckEquipedEmblemsAttrs(emblemComposeDataByMetalID); + bool flag8 = xemblemItem == null; + if (flag8) + { + bool flag9 = this.IsHadEmptyPos(emblemConf.EmblemType > 1000); + if (flag9) + { + bool flag10 = this.BagIsHadBetterEmblem(ppt, (uint)emblemConf.EmblemType); + result = !flag10; + } + else + { + result = false; + } + } + else + { + uint emblemPPT = this.GetEmblemPPT(xemblemItem, emblemConf.EmblemType > 1000); + bool flag11 = ppt > emblemPPT; + if (flag11) + { + bool flag12 = this.BagIsHadBetterEmblem(ppt, (uint)emblemConf.EmblemType); + result = !flag12; + } + else + { + result = false; + } + } + } + } + } + } + } + } + } + return result; + } + + public XEmblemItem CheckEquipedEmblemsAttrs(ItemComposeTable.RowData composeData) + { + bool flag = composeData == null; + XEmblemItem result; + if (flag) + { + result = null; + } + else + { + XBodyBag emblemBag = XSingleton.singleton.Doc.XBagDoc.EmblemBag; + int num; + int num2; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)composeData.ItemID, out num, out num2); + bool flag2 = num >= 0; + if (flag2) + { + uint num3 = 0u; + for (int i = num; i < num2; i++) + { + AttributeEmblem.RowData rowData = XEquipCreateDocument.sAttributeEmblemTable.Table[i]; + bool flag3 = rowData.Position == 1; + if (flag3) + { + num3 = (uint)rowData.AttrID; + break; + } + } + int j = XEmblemDocument.Position_TotalStart; + while (j < XEmblemDocument.Position_TotalEnd) + { + bool flag4 = emblemBag[j] != null && emblemBag[j].uid > 0UL; + if (flag4) + { + XEmblemItem xemblemItem = emblemBag[j] as XEmblemItem; + bool flag5 = xemblemItem == null || xemblemItem.changeAttr.Count == 0; + if (!flag5) + { + XItemChangeAttr xitemChangeAttr = xemblemItem.changeAttr[0]; + bool flag6 = xitemChangeAttr.AttrID == num3; + if (flag6) + { + return xemblemItem; + } + } + } + IL_117: + j++; + continue; + goto IL_117; + } + } + else + { + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)composeData.ItemID); + bool flag7 = emblemSkillConf != null; + if (flag7) + { + for (int k = XEmblemDocument.Position_TotalStart; k < XEmblemDocument.Position_TotalEnd; k++) + { + bool flag8 = emblemBag[k] == null || emblemBag[k].uid == 0UL; + if (!flag8) + { + XEmblemItem xemblemItem2 = emblemBag[k] as XEmblemItem; + bool flag9 = xemblemItem2 == null; + if (!flag9) + { + SkillEmblem.RowData emblemSkillConf2 = XEmblemDocument.GetEmblemSkillConf((uint)xemblemItem2.itemID); + bool flag10 = emblemSkillConf2 == null; + if (!flag10) + { + bool flag11 = emblemSkillConf2.SkillScript == emblemSkillConf.SkillScript; + if (flag11) + { + return xemblemItem2; + } + } + } + } + } + } + } + result = null; + } + return result; + } + + private bool IsHadEmptyPos(bool isSkillEmblem) + { + int num; + int num2; + if (isSkillEmblem) + { + num = XEmblemDocument.Position_SkillStart; + num2 = XEmblemDocument.Position_SkillEnd; + } + else + { + num = XEmblemDocument.Position_AttrStart; + num2 = XEmblemDocument.Position_AttrEnd; + } + int position_TotalStart = XEmblemDocument.Position_TotalStart; + XEmblemDocument specificDocument = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + EmblemSlotStatus[] equipLock = specificDocument.EquipLock; + for (int i = num; i < num2; i++) + { + bool flag = XBagDocument.BagDoc.EmblemBag[i] == null && !equipLock[i - position_TotalStart].IsLock; + if (flag) + { + return true; + } + } + return false; + } + + private bool BagIsHadBetterEmblem(uint ppt, uint type) + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM); + List list = new List(); + XBagDocument.BagDoc.GetItemsByType(typeFilter, ref list); + for (int i = 0; i < list.Count; i++) + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(list[i].itemID); + bool flag = emblemConf != null && (ulong)type == (ulong)((long)emblemConf.EmblemType); + if (flag) + { + uint emblemPPT = this.GetEmblemPPT(list[i] as XEmblemItem, emblemConf.EmblemType > 1000); + bool flag2 = emblemPPT > ppt; + if (flag2) + { + return true; + } + } + } + return false; + } + + private uint GetUnGetEmblemPPT(int emblemItemId, bool isSkillEmblem) + { + uint result; + if (isSkillEmblem) + { + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)emblemItemId); + result = emblemSkillConf.SkillPPT; + } + else + { + int num; + int endIndex; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)emblemItemId, out num, out endIndex); + bool flag = num >= 0; + if (flag) + { + uint num2; + uint num3; + XEquipCreateDocument.GetPPT(num, endIndex, false, false, out num2, out num3); + result = num2; + } + else + { + XSingleton.singleton.AddErrorLog2("AttributeEmblem not find this Id:{0}" + emblemItemId, new object[0]); + result = 0u; + } + } + return result; + } + + private uint GetEmblemPPT(XEmblemItem item, bool isSkillEmblem) + { + uint result; + if (isSkillEmblem) + { + SkillEmblem.RowData emblemSkillConf = XEmblemDocument.GetEmblemSkillConf((uint)item.itemID); + result = emblemSkillConf.SkillPPT; + } + else + { + result = item.GetPPT(null); + } + return result; + } + + public List GetUpdateItemLevelList() + { + return XEquipCreateDocument.sEquipSuitLevelList; + } + + public ProfSkillTable.RowData GetMainProfByID(int id) + { + for (int i = 0; i < this.mMainProfDataList.Count; i++) + { + bool flag = id == this.mMainProfDataList[i].ProfID; + if (flag) + { + return this.mMainProfDataList[i]; + } + } + return this.mMainProfDataList[0]; + } + + public List GetMainProfList() + { + return this.mMainProfDataList; + } + + public List GetEmblemList() + { + this.mEmblemBagItems.Clear(); + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.EMBLEM_MATERIAL); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.mEmblemBagItems); + return this.mEmblemBagItems; + } + + public ItemComposeTable.RowData GetEmblemComposeDataByMetalID(int id) + { + for (int i = 0; i < XEquipCreateDocument.sItemComposeReader.Table.Length; i++) + { + ItemComposeTable.RowData rowData = XEquipCreateDocument.sItemComposeReader.Table[i]; + bool flag = rowData.Type == 3 && rowData.SrcItem1[0] == id; + if (flag) + { + return rowData; + } + } + return null; + } + + public int GetEmblemComposeAttrByEmblemID(int id, out string name) + { + name = XEquipCreateDocument.sDefaultEmblemAttrString; + int num; + int num2; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)id, out num, out num2); + bool flag = num >= 0; + int result; + if (flag) + { + string format = XStringDefineProxy.GetString("EQUIPCREATE_EMBLEMSET_ATTR_FMT").Replace("{n}", "\n"); + string format2 = XStringDefineProxy.GetString("EQUIPCREATE_EMBLEMSET_ATTR_FMT2").Replace("{n}", "\n"); + string @string = XStringDefineProxy.GetString("EMBLEM_Attr_1stTittle"); + string string2 = XStringDefineProxy.GetString("EMBLEM_Attr_2edTittle"); + string string3 = XStringDefineProxy.GetString("EMBLEM_Attr_3rdTittle"); + int num3 = 0; + for (int i = num; i < num2; i++) + { + AttributeEmblem.RowData rowData = XEquipCreateDocument.sAttributeEmblemTable.Table[i]; + bool flag2 = rowData.Position == 1 || rowData.Position == 2; + if (flag2) + { + bool flag3 = XAttributeCommon.IsPercentRange((int)rowData.AttrID); + string format3; + if (flag3) + { + format3 = "{0}%"; + } + else + { + format3 = "{0}"; + } + bool flag4 = rowData.Range[0] != rowData.Range[1]; + string text; + if (flag4) + { + text = string.Format(format, XAttributeCommon.GetAttrStr((int)rowData.AttrID), string.Format(format3, rowData.Range[0]), string.Format(format3, rowData.Range[1])); + } + else + { + text = string.Format(format2, XAttributeCommon.GetAttrStr((int)rowData.AttrID), string.Format(format3, rowData.Range[1])); + } + num3++; + bool flag5 = num3 == 1; + if (flag5) + { + name = string.Format("{0}{1}", @string, text); + } + else + { + bool flag6 = num3 == 2; + if (flag6) + { + name = string.Format("{0}{1}{2}", name, string2, text); + } + else + { + bool flag7 = num3 == 3; + if (flag7) + { + name = string.Format("{0}{1}{2}", name, string3, text); + } + } + } + } + } + result = num3; + } + else + { + result = -1; + } + return result; + } + + public void StartCreateEquip(int ID) + { + this.mCurComposeID = ID; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.equipSetCreateHandler.SetVisible(true); + DlgBase.singleton.equipSetCreateHandler.SetEquipInfo(ID); + DlgBase.singleton.equipSetCreateHandler.SetFinishState(false); + DlgBase.singleton.equipSetCreateHandler.SetBar(0); + this.mTimerCount = 0; + this._OpenTimer(); + } + } + + public void CancelCreateEquip() + { + this.mCurComposeID = 0; + this.CurUid = 0UL; + this._CloseTimer(); + } + + public void ReqCreateEquipSet(int ID, ulong uid = 0UL) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = (ulong)((long)ID); + rpcC2G_UseItem.oArg.count = 1u; + rpcC2G_UseItem.oArg.uids.Add(uid); + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.Composite); + XSingleton.singleton.Send(rpcC2G_UseItem); + } + + public void OnReqCreateEquipSet(UseItemArg oArg, UseItemRes oRes) + { + this.IsCreating = false; + bool flag = (long)this.mCurComposeID == (long)oArg.uid; + if (flag) + { + bool flag2 = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + bool flag3 = DlgBase.singleton.equipSetCreateHandler != null && DlgBase.singleton.equipSetCreateHandler.IsVisible(); + if (flag3) + { + bool flag4 = oRes.uid > 0UL; + if (flag4) + { + DlgBase.singleton.equipSetCreateHandler.SetFinishEquipInfo(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(oRes.uid)); + } + DlgBase.singleton.equipSetCreateHandler.SetFinishState(true); + } + ItemComposeTable.RowData itemConposeDataByID = XEquipCreateDocument.GetItemConposeDataByID(this.mCurComposeID); + bool flag5 = itemConposeDataByID != null; + if (flag5) + { + switch (itemConposeDataByID.Type) + { + case 1: + { + bool flag6 = DlgBase.singleton.equipSetHandler != null && DlgBase.singleton.equipSetHandler.IsVisible(); + if (flag6) + { + DlgBase.singleton.equipSetHandler.RefreshItemList(); + } + break; + } + case 3: + this._CheckUpdateEmblemList(); + this.UpdatePlateMetalsRedDot(); + break; + case 5: + { + bool flag7 = DlgBase.singleton.m_artifactSetHandler != null && DlgBase.singleton.m_artifactSetHandler.IsVisible(); + if (flag7) + { + DlgBase.singleton.m_artifactSetHandler.RefreshItemList(); + } + break; + } + } + } + } + } + } + + public void ReqEnhanceTransform(ulong src, ulong dst) + { + RpcC2G_EnhanceTranster rpcC2G_EnhanceTranster = new RpcC2G_EnhanceTranster(); + rpcC2G_EnhanceTranster.oArg.originuid = src; + rpcC2G_EnhanceTranster.oArg.destuid = dst; + XSingleton.singleton.Send(rpcC2G_EnhanceTranster); + } + + public void OnReplyEnhanceTransform(EnhanceTransterArg oArg, EnhanceTransterRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + + public void RefreshEquipSuitListUIByProf(int prof, bool refreshUI) + { + bool flag = prof != this.mCurSelectProf; + if (flag) + { + this.mCurSelectProf = prof; + this.mItemTypeListDirty = true; + if (refreshUI) + { + this._RefreshEquipSuitListUI(); + } + } + } + + public void RefreshEquipSuitListUIByLevel(int level, bool refreshUI) + { + bool flag = level != this.mCurSelectLevel; + if (flag) + { + this.mCurSelectLevel = level; + this.mItemTypeListDirty = true; + if (refreshUI) + { + this._RefreshEquipSuitListUI(); + } + } + } + + public void RefreshEquipSuitListByProf(int prof) + { + bool flag = prof != this.mCurSelectProf; + if (flag) + { + this.mCurSelectProf = prof; + this._RefreshEquipSuitListUI(); + } + } + + public static ItemComposeTable.RowData GetItemConposeDataByID(int id) + { + bool flag = XEquipCreateDocument.sItemComposeReader != null; + ItemComposeTable.RowData result; + if (flag) + { + result = XEquipCreateDocument.sItemComposeReader.GetByID(id); + } + else + { + result = null; + } + return result; + } + + private static int EmblemAttrDataCompare(AttributeEmblem.RowData rowData, uint emblemID) + { + return emblemID.CompareTo(rowData.EmblemID); + } + + public static void GetEmblemAttrDataByID(uint emblemID, out int startIndex, out int endIndex) + { + CVSReader.GetRowDataListByField(XEquipCreateDocument.sAttributeEmblemTable.Table, emblemID, out startIndex, out endIndex, XEquipCreateDocument.comp); + } + + public static AttributeEmblem.RowData GetAttributeEmblem(int index) + { + return XEquipCreateDocument.sAttributeEmblemTable.Table[index]; + } + + public static void GetRandomPPT(int starIndex, int endIndex, out uint minRandomPPT, out uint maxRandomPPT) + { + minRandomPPT = 0u; + maxRandomPPT = 0u; + bool flag = starIndex >= 0 && starIndex <= endIndex && endIndex < XEquipCreateDocument.sAttributeEmblemTable.Table.Length; + if (flag) + { + uint num = uint.MaxValue; + uint num2 = 0u; + for (int i = starIndex; i <= endIndex; i++) + { + AttributeEmblem.RowData rowData = XEquipCreateDocument.sAttributeEmblemTable.Table[i]; + bool flag2 = rowData.Position == 3; + if (flag2) + { + num = Math.Min(num, (uint)XSingleton.singleton.GetPPT((uint)rowData.AttrID, rowData.Range[0], null, -1)); + num2 = Math.Max(num2, (uint)XSingleton.singleton.GetPPT((uint)rowData.AttrID, rowData.Range[1], null, -1)); + } + } + bool flag3 = num != uint.MaxValue; + if (flag3) + { + minRandomPPT = num; + } + bool flag4 = num2 > 0u; + if (flag4) + { + maxRandomPPT = num2; + } + } + } + + public static void GetPPT(int starIndex, int endIndex, bool bIncludeMinRandom, bool bIncludeMaxRandom, out uint minPPT, out uint maxPPT) + { + minPPT = 0u; + maxPPT = 0u; + bool flag = starIndex >= 0 && starIndex <= endIndex && endIndex < XEquipCreateDocument.sAttributeEmblemTable.Table.Length; + if (flag) + { + uint num = uint.MaxValue; + uint num2 = 0u; + double num3 = 0.0; + double num4 = 0.0; + for (int i = starIndex; i <= endIndex; i++) + { + AttributeEmblem.RowData rowData = XEquipCreateDocument.sAttributeEmblemTable.Table[i]; + bool flag2 = rowData.Position == 1 || rowData.Position == 2; + if (flag2) + { + num3 += XSingleton.singleton.GetPPT((uint)rowData.AttrID, rowData.Range[0], null, -1); + num4 += XSingleton.singleton.GetPPT((uint)rowData.AttrID, rowData.Range[1], null, -1); + } + else + { + bool flag3 = rowData.Position == 3; + if (flag3) + { + if (bIncludeMinRandom) + { + num = Math.Min(num, (uint)XSingleton.singleton.GetPPT((uint)rowData.AttrID, rowData.Range[0], null, -1)); + } + if (bIncludeMaxRandom) + { + num2 = Math.Max(num2, (uint)XSingleton.singleton.GetPPT((uint)rowData.AttrID, rowData.Range[1], null, -1)); + } + } + } + } + minPPT = (uint)num3; + maxPPT = (uint)num4; + bool flag4 = num != uint.MaxValue; + if (flag4) + { + minPPT += num; + } + bool flag5 = num2 > 0u; + if (flag5) + { + maxPPT += num2; + } + } + } + + public static AttributeEmblem.RowData FindAttr(int starIndex, int endIndex, int slotIndex, uint attrid) + { + bool flag = starIndex >= 0 && starIndex <= endIndex && endIndex < XEquipCreateDocument.sAttributeEmblemTable.Table.Length; + if (flag) + { + for (int i = starIndex; i <= endIndex; i++) + { + AttributeEmblem.RowData rowData = XEquipCreateDocument.sAttributeEmblemTable.Table[i]; + bool flag2 = (int)rowData.Position == slotIndex + 1 && attrid == (uint)rowData.AttrID; + if (flag2) + { + return rowData; + } + } + } + return null; + } + + public static string GetPrefixColor(int starIndex, int endIndex, int slotIndex, uint attrid, uint attrValue) + { + AttributeEmblem.RowData data = XEquipCreateDocument.FindAttr(starIndex, endIndex, slotIndex, attrid); + return XEquipCreateDocument.GetPrefixColor(data, attrValue); + } + + public static string GetPrefixColor(AttributeEmblem.RowData data, uint attrValue) + { + bool flag = data == null; + string itemQualityRGB; + if (flag) + { + itemQualityRGB = XSingleton.singleton.GetItemQualityRGB(0); + } + else + { + float num = data.Range[1] - data.Range[0]; + bool flag2 = num <= 0f; + if (flag2) + { + num = 0f; + } + bool flag3 = attrValue != data.Range[1]; + float num2; + if (flag3) + { + num2 = (attrValue - data.Range[0]) * 100u / num; + } + else + { + num2 = 100f; + } + int quality = XEquipCreateDocument.MarkList.Count - 1; + for (int i = 0; i < XEquipCreateDocument.MarkList.Count; i++) + { + bool flag4 = num2 < (float)XEquipCreateDocument.MarkList[i]; + if (flag4) + { + quality = i; + break; + } + } + itemQualityRGB = XSingleton.singleton.GetItemQualityRGB(quality); + } + return itemQualityRGB; + } + + public List GetUpdateRefreshEquipSuitList(int suitID) + { + EquipSuitMenuDataItem equipSuitMenuDataItem = null; + this.mDataUIList = null; + bool flag = XEquipCreateDocument.sEquipSuitIDMenuDataDic.TryGetValue(suitID, out equipSuitMenuDataItem); + if (flag) + { + this.mDataUIList = equipSuitMenuDataItem.suitItemList; + } + bool flag2 = this.mDataUIList != null; + if (flag2) + { + this.mDataUIList.Sort(); + } + return this.mDataUIList; + } + + public EquipSuitItemData GetEquipSuitListItem(int index) + { + bool flag = this.mDataUIList != null && this.mDataUIList.Count > index && index >= 0; + EquipSuitItemData result; + if (flag) + { + result = this.mDataUIList[index]; + } + else + { + result = null; + } + return result; + } + + private static void _GetEquipSuitList(int suitID, ref List _list) + { + EquipSuitTable.RowData bySuitID = XEquipCreateDocument.sEquipSuitTable.GetBySuitID(suitID); + bool flag = bySuitID != null; + if (flag) + { + _list.Clear(); + bool flag2 = bySuitID.EquipID != null; + if (flag2) + { + for (int i = 0; i < bySuitID.EquipID.Length; i++) + { + ItemComposeTable.RowData byID = XEquipCreateDocument.sItemComposeReader.GetByID(bySuitID.EquipID[i]); + bool flag3 = byID != null; + if (flag3) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(byID.ItemID); + bool flag4 = equipConf != null; + if (flag4) + { + EquipSuitItemData equipSuitItemData = new EquipSuitItemData(); + equipSuitItemData.redpoint = false; + equipSuitItemData.itemData = equipConf; + equipSuitItemData.itemComposeData = byID; + _list.Add(equipSuitItemData); + } + } + } + } + } + } + + private void _RefreshEquipSuitListUI() + { + this.mItemTypeListDirty = true; + DlgBase.singleton.equipSetHandler.RefreshItemType(); + } + + private void _OpenTimer() + { + this._CloseTimer(); + this.mTimerID = XSingleton.singleton.SetTimerAccurate(1f / (float)XSingleton.singleton.TimerPerSecondCount, this._onTimeCb, null); + } + + private void _CloseTimer() + { + XSingleton.singleton.KillTimer(this.mTimerID); + this.mTimerID = 0u; + } + + protected void OnTimer(object param, float delay) + { + this.mTimerCount++; + int timerPerSecondCount = XSingleton.singleton.TimerPerSecondCount; + float timerTotalSecond = XSingleton.singleton.TimerTotalSecond; + bool flag = DlgBase.singleton.equipSetCreateHandler != null; + if (flag) + { + DlgBase.singleton.equipSetCreateHandler.SetBar((int)((float)(this.mTimerCount * 100) / (timerTotalSecond * (float)timerPerSecondCount))); + } + this.mTimerPassSecond = (float)(this.mTimerCount / timerPerSecondCount); + bool flag2 = this.mTimerPassSecond < timerTotalSecond; + if (flag2) + { + this._OpenTimer(); + } + else + { + bool flag3 = DlgBase.singleton.equipSetCreateHandler != null; + if (flag3) + { + DlgBase.singleton.equipSetCreateHandler.SetBar(100); + } + this.IsCreating = true; + this.ReqCreateEquipSet(this.mCurComposeID, this.CurUid); + } + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + XPlayerLevelChangedEventArgs xplayerLevelChangedEventArgs = arg as XPlayerLevelChangedEventArgs; + this.CheckLevelUp(xplayerLevelChangedEventArgs.level); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEquipCreateDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XEquipCreateDocument.cs.meta new file mode 100644 index 00000000..1a6f8341 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipCreateDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc1b57afe78d9544bb0c895d8b7ec7a3 +timeCreated: 1611404677 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEquipCreateStaticData.cs b/Client/Assets/Scripts/XMainClient/XEquipCreateStaticData.cs new file mode 100644 index 00000000..3b1adc6c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipCreateStaticData.cs @@ -0,0 +1,51 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XEquipCreateStaticData : XStaticDataBase + { + public int[] EquipPosOrderArray; + + public int TimerPerSecondCount = 0; + + public float TimerTotalSecond = 0f; + + public EquipSuitItemData[][] ItemPosGroupList; + + public int[][] RedPointPosGroupList; + + public int[] RedPointCheckLevelList; + + protected override void OnInit() + { + this.TimerPerSecondCount = XSingleton.singleton.GetInt("EquipCreateTimerPerSecondCount"); + this.TimerTotalSecond = (float)XSingleton.singleton.GetInt("EquipCreateTimerTotalSecond") / 1000f; + this.EquipPosOrderArray = new int[XFastEnumIntEqualityComparer.ToInt(EquipPosition.EQUIP_END)]; + string[] array = XSingleton.singleton.GetValue("EquipCreatePosOrder").Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + int.TryParse(array[i], out this.EquipPosOrderArray[i]); + } + string[] array2 = XSingleton.singleton.GetValue("EquipCreateRedPointPosGroupList").Split(XGlobalConfig.ListSeparator); + this.RedPointPosGroupList = new int[array2.Length][]; + this.ItemPosGroupList = new EquipSuitItemData[array2.Length][]; + for (int i = 0; i < array2.Length; i++) + { + string[] array3 = array2[i].Split(XGlobalConfig.SequenceSeparator); + this.RedPointPosGroupList[i] = new int[array3.Length]; + this.ItemPosGroupList[i] = new EquipSuitItemData[array3.Length]; + for (int j = 0; j < array3.Length; j++) + { + int.TryParse(array3[j], out this.RedPointPosGroupList[i][j]); + } + } + } + + public override void Uninit() + { + this.EquipPosOrderArray = null; + base.Uninit(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEquipCreateStaticData.cs.meta b/Client/Assets/Scripts/XMainClient/XEquipCreateStaticData.cs.meta new file mode 100644 index 00000000..11e8c38d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipCreateStaticData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 603cb967476e88f4fbe0764ed0fb2679 +timeCreated: 1611403832 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEquipDocument.cs b/Client/Assets/Scripts/XMainClient/XEquipDocument.cs new file mode 100644 index 00000000..e11b05d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipDocument.cs @@ -0,0 +1,701 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEquipDocument : XDocComponent + { + public override uint ID + { + get + { + return XEquipDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XEquipDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static DefaultEquip m_defaultEquip = new DefaultEquip(); + + private static EnhanceFxTable m_EnhanceFxTable = new EnhanceFxTable(); + + public static string present_prefix = "_presentid:"; + + public static CombineMeshUtility _CombineMeshUtility = null; + + public static XMeshPartList _MeshPartList = null; + + private static uint maxProf = 0u; + + private static uint maxEnhanceLevel = 0u; + + private static bool enhanceIndexed = true; + + public static int CurrentVisibleRole = 0; + + public static void Execute(OnLoadedCallback callback = null) + { + XEquipDocument.AsyncLoader.AddTask("Table/DefaultEquip", XEquipDocument.m_defaultEquip, false); + XEquipDocument.AsyncLoader.AddTask("Table/EnhanceFx", XEquipDocument.m_EnhanceFxTable, false); + XEquipDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + EnhanceFxTable.RowData rowData = null; + for (int i = 0; i < XEquipDocument.m_EnhanceFxTable.Table.Length; i++) + { + EnhanceFxTable.RowData rowData2 = XEquipDocument.m_EnhanceFxTable.Table[i]; + bool flag = rowData2 != null; + if (flag) + { + bool flag2 = rowData2.ProfID > XEquipDocument.maxProf; + if (flag2) + { + XEquipDocument.maxProf = rowData2.ProfID; + } + bool flag3 = rowData2.EnhanceLevel > XEquipDocument.maxEnhanceLevel; + if (flag3) + { + XEquipDocument.maxEnhanceLevel = rowData2.EnhanceLevel; + } + bool flag4 = rowData != null && XEquipDocument.enhanceIndexed; + if (flag4) + { + bool flag5 = (rowData2.ProfID - rowData.ProfID <= 1u && rowData2.EnhanceLevel - rowData.EnhanceLevel == 1u) || rowData.EnhanceLevel - rowData2.EnhanceLevel + 1u == XEquipDocument.maxEnhanceLevel; + if (!flag5) + { + XEquipDocument.enhanceIndexed = false; + } + } + rowData = rowData2; + } + } + XEquipDocument._CombineMeshUtility = new CombineMeshUtility(); + XEquipDocument._MeshPartList = new XMeshPartList(); + XEquipDocument._MeshPartList.Load(); + XOutlookData.InitSharedFasionList(); + } + + public static bool TryGetEnhanceFxData(uint prof, uint enhanceLevel, out string[] strFx) + { + prof %= 10u; + strFx = null; + bool flag = enhanceLevel == 0u; + bool result; + if (flag) + { + result = false; + } + else + { + EnhanceFxTable.RowData rowData = null; + bool flag2 = XEquipDocument.enhanceIndexed && (long)XEquipDocument.m_EnhanceFxTable.Table.Length == (long)((ulong)(XEquipDocument.maxEnhanceLevel * XEquipDocument.maxProf)); + if (flag2) + { + rowData = XEquipDocument.m_EnhanceFxTable.Table[(int)((prof - 1u) * XEquipDocument.maxEnhanceLevel + enhanceLevel - 1u)]; + } + else + { + for (int i = 0; i < XEquipDocument.m_EnhanceFxTable.Table.Length; i++) + { + EnhanceFxTable.RowData rowData2 = XEquipDocument.m_EnhanceFxTable.Table[i]; + bool flag3 = rowData2 != null && rowData2.ProfID == prof && rowData2.EnhanceLevel == enhanceLevel; + if (flag3) + { + rowData = rowData2; + } + } + } + bool flag4 = rowData == null; + if (flag4) + { + result = false; + } + else + { + strFx = rowData.MainWeaponFx; + result = true; + } + } + return result; + } + + public static string GetTips(uint prof, uint enhanceLevel) + { + int num = -1; + for (int i = 0; i < XEquipDocument.m_EnhanceFxTable.Table.Length; i++) + { + EnhanceFxTable.RowData rowData = XEquipDocument.m_EnhanceFxTable.Table[i]; + bool flag = rowData.ProfID == prof && rowData.EnhanceLevel > enhanceLevel && !string.IsNullOrEmpty(rowData.Tips); + if (flag) + { + bool flag2 = num == -1; + if (flag2) + { + num = i; + } + else + { + bool flag3 = rowData.EnhanceLevel < XEquipDocument.m_EnhanceFxTable.Table[num].EnhanceLevel; + if (flag3) + { + num = i; + } + } + } + } + bool flag4 = num != -1; + string result; + if (flag4) + { + result = XEquipDocument.m_EnhanceFxTable.Table[num].Tips; + } + else + { + for (int j = 0; j < XEquipDocument.m_EnhanceFxTable.Table.Length; j++) + { + EnhanceFxTable.RowData rowData = XEquipDocument.m_EnhanceFxTable.Table[j]; + bool flag5 = rowData.ProfID == prof && rowData.EnhanceLevel <= enhanceLevel && !string.IsNullOrEmpty(rowData.Tips); + if (flag5) + { + bool flag6 = num == -1; + if (flag6) + { + num = j; + } + else + { + bool flag7 = rowData.EnhanceLevel > XEquipDocument.m_EnhanceFxTable.Table[num].EnhanceLevel; + if (flag7) + { + num = j; + } + } + } + } + bool flag8 = num != -1; + if (flag8) + { + result = XEquipDocument.m_EnhanceFxTable.Table[num].Tips; + } + else + { + result = ""; + } + } + return result; + } + + private static Material GetMaterial(Shader shader) + { + bool flag = shader == ShaderManager._skin_cutout; + Material result; + if (flag) + { + result = XSingleton.singleton.CreateFromAsset("Materials/Char/RimLightBlendCutout", ".mat", true, false); + } + else + { + bool flag2 = shader == ShaderManager._skin_blend; + if (flag2) + { + result = XSingleton.singleton.CreateFromAsset("Materials/Char/RimLightBlend", ".mat", true, false); + } + else + { + bool flag3 = shader == ShaderManager._skin8; + if (flag3) + { + result = XSingleton.singleton.CreateFromAsset("Materials/Char/RimLightBlend8", ".mat", true, false); + } + else + { + result = new Material(shader); + } + } + } + return result; + } + + public static void ReturnMaterial(Material mat) + { + bool flag = mat != null; + if (flag) + { + Shader shader = mat.shader; + bool flag2 = shader == ShaderManager._skin_cutout; + if (flag2) + { + mat.SetTexture("_Face", null); + mat.SetTexture("_Hair", null); + mat.SetTexture("_Body", null); + mat.SetTexture("_Alpha", null); + } + else + { + bool flag3 = shader == ShaderManager._skin_blend; + if (flag3) + { + mat.SetTexture("_Face", null); + mat.SetTexture("_Hair", null); + mat.SetTexture("_Body", null); + } + else + { + bool flag4 = shader == ShaderManager._skin8; + if (flag4) + { + mat.SetTexture("_Tex0", null); + mat.SetTexture("_Tex1", null); + mat.SetTexture("_Tex2", null); + mat.SetTexture("_Tex3", null); + mat.SetTexture("_Tex4", null); + mat.SetTexture("_Tex5", null); + mat.SetTexture("_Tex6", null); + mat.SetTexture("_Tex7", null); + } + } + } + XSingleton.singleton.UnSafeDestroy(mat, true, false); + } + } + + public static Material GetRoleMat(bool isOnepart, bool hasAlpha, int roleType = 0) + { + Material result; + if (isOnepart) + { + if (hasAlpha) + { + result = XEquipDocument.GetMaterial(ShaderManager._skin_cutout); + } + else + { + result = XEquipDocument.GetMaterial(ShaderManager._skin_blend); + } + } + else + { + bool flag = roleType > 0; + if (flag) + { + result = XSingleton.singleton.CreateFromAsset(XSingleton.singleton.GetRoleMaterial((uint)roleType), ".mat", true, false); + } + else + { + result = XEquipDocument.GetMaterial(ShaderManager._skin8); + } + } + return result; + } + + public static DefaultEquip.RowData GetDefaultEquip(short id) + { + return XEquipDocument.m_defaultEquip.GetByProfID((int)id); + } + + public static string GetDefaultEquipName(int partIndex, string path, int professionIndex, out string dir) + { + bool flag = partIndex >= 0 && partIndex < XEquipDocument._MeshPartList.partSuffix.Length && professionIndex >= 0 && professionIndex < XEquipDocument._MeshPartList.proPrefix.Length; + string result; + if (flag) + { + string text = XEquipDocument._MeshPartList.proPrefix[professionIndex]; + string text2 = XEquipDocument._MeshPartList.partSuffix[partIndex]; + bool flag2 = string.IsNullOrEmpty(path); + if (flag2) + { + dir = "Player"; + result = string.Format("Player/{0}{1}", text, text2); + } + else + { + bool flag3 = path.StartsWith("/"); + if (flag3) + { + dir = path; + result = string.Format("{0}/{1}{2}", path, text, text2); + } + else + { + bool flag4 = path == "E"; + if (flag4) + { + dir = ""; + result = ""; + } + else + { + dir = "Player"; + result = string.Format("Player/{0}{1}", text, path); + } + } + } + } + else + { + dir = ""; + result = path; + } + return result; + } + + public static int GetEquiplistByFashionTemplate(short fashionTemplate, ref FashionPositionInfo[] fashionlist) + { + bool flag = fashionTemplate == 0; + int result; + if (flag) + { + XOutlookData.InitFasionList(ref fashionlist); + result = -1; + } + else + { + DefaultEquip.RowData defaultEquip = XEquipDocument.GetDefaultEquip(fashionTemplate); + int num = (int)(defaultEquip.id - 1); + FashionPositionInfo fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.EHeadgear), defaultEquip.Helmet, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_START)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.EUpperBody), defaultEquip.Body, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionUpperBody)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.ELowerBody), defaultEquip.Leg, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionLowerBody)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.EBoots), defaultEquip.Boots, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionBoots)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.EGloves), defaultEquip.Glove, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionGloves)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.ECombinePartEnd), defaultEquip.Weapon, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionMainWeapon)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.ECombinePartStart), defaultEquip.Face, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_END)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.EHair), defaultEquip.Hair, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.Hair)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipName(XFastEnumIntEqualityComparer.ToInt(EPartType.ESecondaryWeapon), defaultEquip.SecondWeapon, num, out fashionPositionInfo.fashionDir); + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionSecondaryWeapon)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = defaultEquip.Wing; + bool flag2 = defaultEquip.Wing != null && defaultEquip.Wing.StartsWith(XEquipDocument.present_prefix); + if (flag2) + { + fashionPositionInfo.presentID = uint.Parse(defaultEquip.Wing.Substring(XEquipDocument.present_prefix.Length)); + } + fashionPositionInfo.itemID = 0; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionWings)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = defaultEquip.Tail; + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionTail)] = fashionPositionInfo; + fashionPositionInfo.fasionID = defaultEquip.ProfID; + fashionPositionInfo.fashionName = defaultEquip.Decal; + fashionPositionInfo.itemID = 0; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionlist[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionDecal)] = fashionPositionInfo; + result = num; + } + return result; + } + + public static void RefreshFashionList(ref FashionPositionInfo[] fashionlist, uint typeID) + { + int i = 0; + int num = fashionlist.Length; + while (i < num) + { + FashionPositionInfo fashionPositionInfo = fashionlist[i]; + bool flag = !fashionPositionInfo.replace; + if (flag) + { + fashionPositionInfo.fashionName = ""; + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(fashionPositionInfo.itemID); + bool flag2 = fashionConf != null; + if (flag2) + { + bool flag3 = fashionConf.ReplaceID != null && fashionConf.ReplaceID.Length != 0; + if (flag3) + { + int num2 = (int)(typeID % 10u - 1u); + FashionList.RowData rowData = null; + bool flag4 = num2 >= fashionConf.ReplaceID.Length; + if (flag4) + { + XSingleton.singleton.AddErrorLog2("check FashionList ReplaceID Count by fasionID = {0}", new object[] + { + fashionPositionInfo.itemID + }); + } + else + { + rowData = XBagDocument.GetFashionConf((int)fashionConf.ReplaceID[num2]); + } + bool flag5 = rowData != null; + if (flag5) + { + int equipPos = (int)rowData.EquipPos; + bool flag6 = equipPos >= 0 && equipPos < fashionlist.Length; + if (flag6) + { + FashionPositionInfo fashionPositionInfo2 = fashionlist[equipPos]; + bool flag7 = fashionPositionInfo2.fasionID < 10000; + if (flag7) + { + fashionPositionInfo2.fashionName = XEquipDocument.GetEquipPrefabModel(rowData, typeID, out fashionPositionInfo2.fashionDir); + fashionPositionInfo2.replace = true; + fashionPositionInfo2.itemID = rowData.ItemID; + fashionPositionInfo2.fasionID = rowData.ItemID; + fashionlist[equipPos] = fashionPositionInfo2; + } + } + } + } + bool flag8 = fashionConf.PresentID != 0; + if (flag8) + { + fashionPositionInfo.presentID = (uint)fashionConf.PresentID; + fashionPositionInfo.fashionName = ""; + } + else + { + fashionPositionInfo.fashionName = XEquipDocument.GetEquipPrefabModel(fashionConf, typeID, out fashionPositionInfo.fashionDir); + } + } + else + { + fashionPositionInfo.fasionID = (int)typeID; + fashionPositionInfo.fashionName = XEquipDocument.GetDefaultEquipModel(typeID, (FashionPosition)i, out fashionPositionInfo.fashionDir); + } + } + fashionlist[i] = fashionPositionInfo; + i++; + } + } + + private static string GetDefaultEquipModel(DefaultEquip.RowData de, FashionPosition part) + { + string result; + switch (part) + { + case FashionPosition.FASHION_START: + result = de.Helmet; + break; + case FashionPosition.FashionUpperBody: + result = de.Body; + break; + case FashionPosition.FashionLowerBody: + result = de.Leg; + break; + case FashionPosition.FashionGloves: + result = de.Glove; + break; + case FashionPosition.FashionBoots: + result = de.Boots; + break; + case FashionPosition.FashionMainWeapon: + result = de.Weapon; + break; + case FashionPosition.FashionSecondaryWeapon: + result = de.SecondWeapon; + break; + case FashionPosition.FashionWings: + result = de.Wing; + break; + case FashionPosition.FashionTail: + result = de.Tail; + break; + case FashionPosition.FashionDecal: + result = de.Decal; + break; + case FashionPosition.FASHION_END: + result = de.Face; + break; + case FashionPosition.Hair: + result = de.Hair; + break; + default: + result = ""; + break; + } + return result; + } + + public static string GetDefaultEquipModel(uint typeID, FashionPosition part, out string dir) + { + DefaultEquip.RowData defaultEquip = XEquipDocument.GetDefaultEquip((short)typeID); + dir = ""; + bool flag = defaultEquip == null; + string result; + if (flag) + { + result = ""; + } + else + { + int partIndex = CombineMeshTask.ConvertPart(part); + int num = (int)(typeID % 10u); + result = XEquipDocument.GetDefaultEquipName(partIndex, XEquipDocument.GetDefaultEquipModel(defaultEquip, part), num - 1, out dir); + } + return result; + } + + public static string GetEquipPrefabModel(FashionList.RowData data, uint typeID, out string dir) + { + bool flag = data != null; + string result; + if (flag) + { + int num = CombineMeshTask.ConvertPart((FashionPosition)data.EquipPos); + uint num2 = typeID % 10u; + uint num3 = num2 - 1u; + string arg = XEquipDocument._MeshPartList.proPrefix[(int)num3]; + string arg2 = ""; + bool flag2 = num >= 0 && num < XEquipDocument._MeshPartList.partSuffix.Length; + if (flag2) + { + arg2 = XEquipDocument._MeshPartList.partSuffix[num]; + } + string text = XSingleton.singleton.GetEquipPrefabModel(data, num2); + bool flag3 = text == "E" || (string.IsNullOrEmpty(data.SuitName) && string.IsNullOrEmpty(text)); + if (flag3) + { + dir = ""; + result = ""; + } + else + { + bool flag4 = string.IsNullOrEmpty(data.SuitName); + if (flag4) + { + dir = text; + result = string.Format("{0}/{1}{2}", text, arg, arg2); + } + else + { + dir = data.SuitName; + bool flag5 = string.IsNullOrEmpty(text); + if (flag5) + { + result = string.Format("{0}/{1}{2}", data.SuitName, arg, arg2); + } + else + { + bool flag6 = text.StartsWith("$"); + if (flag6) + { + string text2 = typeID.ToString(); + string text3 = text.Substring(1); + string[] array = text3.Split(XGlobalConfig.AllSeparators); + bool flag7 = array.Length % 2 == 0; + if (flag7) + { + for (int i = array.Length - 1; i > 0; i -= 2) + { + bool flag8 = text2.EndsWith(array[i - 1]); + if (flag8) + { + text = array[i]; + XSingleton.singleton.AddGreenLog("Select Equip :" + text.ToString(), null, null, null, null, null); + break; + } + } + } + } + result = string.Format("{0}/{1}{2}", data.SuitName, arg, text); + } + } + } + } + else + { + dir = ""; + result = ""; + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static SkinnedMeshRenderer GetSmr(GameObject keyGo) + { + Transform transform = keyGo.transform.Find("CombinedMesh"); + bool flag = transform == null; + if (flag) + { + transform = new GameObject("CombinedMesh") + { + transform = + { + parent = keyGo.transform + } + }.transform; + } + SkinnedMeshRenderer skinnedMeshRenderer = transform.GetComponent(); + bool flag2 = skinnedMeshRenderer == null; + if (flag2) + { + skinnedMeshRenderer = transform.gameObject.AddComponent(); + } + return skinnedMeshRenderer; + } + + public static Transform GetMountPoint(Transform keyTran, string point) + { + Transform transform = keyTran.Find(point); + bool flag = transform != null; + Transform result; + if (flag) + { + result = transform; + } + else + { + result = XSingleton.singleton.FindChildRecursively(keyTran, point); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEquipDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XEquipDocument.cs.meta new file mode 100644 index 00000000..92d5026d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b432d62d7bab1645b719f5a176cff8a +timeCreated: 1611403891 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEquipItem.cs b/Client/Assets/Scripts/XMainClient/XEquipItem.cs new file mode 100644 index 00000000..b88def70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipItem.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEquipItem : XAttrItem + { + public override bool bHasPPT + { + get + { + return true; + } + } + + public override bool Treasure + { + get + { + return this.randAttrInfo.RandAttr.Count > 2; + } + } + + public override AttrType Atype + { + get + { + return this.attrType; + } + } + + public XEnhanceInfo enhanceInfo = default(XEnhanceInfo); + + public XJadeInfo jadeInfo = default(XJadeInfo); + + public XReinforceInfo reinforceInfo = default(XReinforceInfo); + + public XSmeltingInfo smeltingInfo = default(XSmeltingInfo); + + public XRandAttrInfo randAttrInfo = default(XRandAttrInfo); + + public XEnchantInfo enchantInfo = default(XEnchantInfo); + + public XForgeAttrInfo forgeAttrInfo = default(XForgeAttrInfo); + + public XequipFuseInfo fuseInfo = default(XequipFuseInfo); + + public AttrType attrType = AttrType.None; + + public override string ToPPTString(XAttributes attributes = null) + { + uint num = this.GetPPT(attributes); + string result = string.Empty; + bool bPreview = this.randAttrInfo.bPreview; + if (bPreview) + { + uint num2 = 0u; + uint num3 = 0u; + EquipSlotAttrDatas attrData = XCharacterEquipDocument.RandomAttrMgr.GetAttrData((uint)this.itemID); + bool flag = attrData != null; + if (flag) + { + num2 = num + EquipSlotAttrDatas.GetMinPPT(attrData, attributes, false); + num3 = num + EquipSlotAttrDatas.GetMaxPPT(attrData, attributes); + } + EquipSlotAttrDatas attrData2 = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)this.itemID); + bool flag2 = attrData != null; + if (flag2) + { + num2 += EquipSlotAttrDatas.GetMinPPT(attrData, attributes, true); + num3 += num + EquipSlotAttrDatas.GetMaxPPT(attrData, attributes); + } + result = string.Format("{0} - {1}", num2, num3); + } + else + { + for (int i = 0; i < this.randAttrInfo.RandAttr.Count; i++) + { + num += (uint)XSingleton.singleton.GetPPT(this.randAttrInfo.RandAttr[i], attributes, -1); + } + for (int j = 0; j < this.forgeAttrInfo.ForgeAttr.Count; j++) + { + num += (uint)XSingleton.singleton.GetPPT(this.forgeAttrInfo.ForgeAttr[j], attributes, -1); + } + result = num.ToString(); + } + return result; + } + + public IEnumerable EnhanceAttr() + { + return this.enhanceInfo.EnhanceAttr; + } + + public IEnumerable ReinforceAttr() + { + return this.reinforceInfo.ReinforceAttr; + } + + public override void Init() + { + base.Init(); + this.jadeInfo.Init(); + this.enhanceInfo.Init(); + this.randAttrInfo.Init(); + this.enchantInfo.Init(); + this.forgeAttrInfo.Init(); + this.fuseInfo.Init(); + } + + public override void Recycle() + { + base.Recycle(); + this.Init(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEquipItem.cs.meta b/Client/Assets/Scripts/XMainClient/XEquipItem.cs.meta new file mode 100644 index 00000000..38b502cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba63276b62265bb48995c740bfd4ace1 +timeCreated: 1611404436 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEquipItemDrawer.cs b/Client/Assets/Scripts/XMainClient/XEquipItemDrawer.cs new file mode 100644 index 00000000..a7bb6e0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipItemDrawer.cs @@ -0,0 +1,96 @@ +using System; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEquipItemDrawer : XItemDrawer + { + public override void DrawItem(GameObject go, XItem realItem, bool bForceShowNum = false) + { + this._GetUI(go); + bool flag = realItem == null; + if (flag) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + base._GetItemData(realItem.itemID); + this._SetupIcon(); + this._SetupAttrIcon(realItem); + this._SetupName(realItem); + this._SetupNum(realItem); + this._SetupNumTop(realItem); + XEquipItem xequipItem = realItem as XEquipItem; + base._SetupLeftDownCorner(base._GetBindingState(realItem)); + base._SetupLeftUpCorner(xequipItem.forgeAttrInfo.ForgeAttr.Count > 0, ""); + base._SetupRightDownCorner(false); + base._SetupRightUpCorner(realItem.Type == ItemType.FRAGMENT); + base._SetUpProf(false); + base._SetupMask(); + this._ClearVariables(); + } + } + + protected override void _SetupName(XItem equip) + { + bool flag = this.itemdata == null; + if (flag) + { + base._SetNameUI(null, 1); + } + else + { + XEquipItem xequipItem = equip as XEquipItem; + string text = XSingleton.singleton.ChooseProfString(this.itemdata.ItemName, XItemDrawerMgr.Param.Profession); + bool flag2 = xequipItem.enhanceInfo.EnhanceLevel > 0u; + if (flag2) + { + base._SetNameUI(string.Format("{0}+{1}", text, xequipItem.enhanceInfo.EnhanceLevel), (int)this.itemdata.ItemQuality); + } + else + { + base._SetNameUI(text, (int)this.itemdata.ItemQuality); + } + } + } + + protected override void _SetupNum(XItem equip) + { + XEquipItem xequipItem = equip as XEquipItem; + bool flag = xequipItem.enhanceInfo.EnhanceLevel > 0u; + if (flag) + { + base._SetNumUI("[cfff0d]+" + xequipItem.enhanceInfo.EnhanceLevel); + } + else + { + base._SetNumUI(null); + } + } + + protected override void _SetupAttrIcon(XItem equip) + { + XEquipItem xequipItem = equip as XEquipItem; + AttrType attrType = xequipItem.attrType; + if (attrType != AttrType.Physics) + { + if (attrType != AttrType.Magic) + { + base._SetAttrIcon(null, null); + } + else + { + base._SetAttrIcon("f_01", "common/Universal"); + } + } + else + { + base._SetAttrIcon("r_01", "common/Universal"); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEquipItemDrawer.cs.meta b/Client/Assets/Scripts/XMainClient/XEquipItemDrawer.cs.meta new file mode 100644 index 00000000..870f6d1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipItemDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc954b51767196546a7ff7173ab8fd8f +timeCreated: 1611404551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEquipSuitManager.cs b/Client/Assets/Scripts/XMainClient/XEquipSuitManager.cs new file mode 100644 index 00000000..48acc224 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipSuitManager.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEquipSuitManager + { + private EquipSuitTable.RowData[] equipSuitTable = null; + + public XEquipSuitManager(EquipSuitTable.RowData[] datas) + { + this.equipSuitTable = datas; + } + + public EquipSuitTable.RowData GetSuit(int equipid, bool bConsiderOtherProf = false) + { + int basicTypeID = (int)XSingleton.singleton.XPlayerData.BasicTypeID; + for (int i = 0; i < this.equipSuitTable.Length; i++) + { + EquipSuitTable.RowData rowData = this.equipSuitTable[i]; + bool flag = rowData.ProfID != 0 && basicTypeID != rowData.ProfID; + if (!flag) + { + bool flag2 = rowData.EquipID != null; + if (flag2) + { + for (int j = 0; j < rowData.EquipID.Length; j++) + { + bool flag3 = rowData.EquipID[j] == equipid; + if (flag3) + { + return rowData; + } + } + } + } + } + if (bConsiderOtherProf) + { + for (int k = 0; k < this.equipSuitTable.Length; k++) + { + EquipSuitTable.RowData rowData2 = this.equipSuitTable[k]; + bool flag4 = rowData2.EquipID != null; + if (flag4) + { + for (int l = 0; l < rowData2.EquipID.Length; l++) + { + bool flag5 = rowData2.EquipID[l] == equipid; + if (flag5) + { + return rowData2; + } + } + } + } + } + return null; + } + + public EquipSuitTable.RowData GetSuitBySuitId(int suitId) + { + for (int i = 0; i < this.equipSuitTable.Length; i++) + { + bool flag = this.equipSuitTable[i].SuitID == suitId; + if (flag) + { + return this.equipSuitTable[i]; + } + } + return null; + } + + public bool WillChangeEquipedCount(int suitItemID, int newItemID) + { + EquipSuitTable.RowData suit = this.GetSuit(suitItemID, false); + bool flag = suit != null; + return flag && !XEquipSuitManager.ContainEquip(suit, newItemID); + } + + public static bool ContainEquip(EquipSuitTable.RowData row, int itemID) + { + bool flag = row.EquipID != null; + if (flag) + { + for (int i = 0; i < row.EquipID.Length; i++) + { + bool flag2 = row.EquipID[i] == itemID; + if (flag2) + { + return true; + } + } + } + return false; + } + + public static int GetEffectDataCount() + { + return 11; + } + + public static int GetEffectData(EquipSuitTable.RowData row, int index, out int effect1) + { + int result; + switch (index) + { + case 1: + effect1 = (int)row.Effect1[1]; + result = (int)row.Effect1[0]; + break; + case 2: + effect1 = (int)row.Effect2[1]; + result = (int)row.Effect2[0]; + break; + case 3: + effect1 = (int)row.Effect3[1]; + result = (int)row.Effect3[0]; + break; + case 4: + effect1 = (int)row.Effect4[1]; + result = (int)row.Effect4[0]; + break; + case 5: + effect1 = (int)row.Effect5[1]; + result = (int)row.Effect5[0]; + break; + case 6: + effect1 = (int)row.Effect6[1]; + result = (int)row.Effect6[0]; + break; + case 7: + effect1 = (int)row.Effect7[1]; + result = (int)row.Effect7[0]; + break; + case 8: + effect1 = (int)row.Effect8[1]; + result = (int)row.Effect8[0]; + break; + case 9: + effect1 = (int)row.Effect9[1]; + result = (int)row.Effect9[0]; + break; + case 10: + effect1 = (int)row.Effect10[1]; + result = (int)row.Effect10[0]; + break; + default: + effect1 = 0; + result = 0; + break; + } + return result; + } + + public static bool IsEffectJustActivated(EquipSuitTable.RowData row, int equipCount) + { + int num = 0; + return XEquipSuitManager.GetEffectData(row, equipCount, out num) != 0; + } + + public static int GetEquipedSuits(EquipSuitTable.RowData row, XBodyBag equipsOnBody, List pos) + { + int num = 0; + bool flag = equipsOnBody.Length != XBagDocument.EquipMax; + int result; + if (flag) + { + result = 0; + } + else + { + for (int i = 0; i < XBagDocument.EquipMax; i++) + { + XItem xitem = equipsOnBody[i]; + bool flag2 = xitem == null; + if (!flag2) + { + bool flag3 = XEquipSuitManager.ContainEquip(row, xitem.itemID); + if (flag3) + { + bool flag4 = pos != null; + if (flag4) + { + pos.Add(i); + } + num++; + } + } + } + result = num; + } + return result; + } + + public static bool WillChangeEquipedCount(EquipSuitTable.RowData row, int itemid, XBodyBag equipsOnBody) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemid); + bool flag = equipConf == null; + bool result; + if (flag) + { + result = false; + } + else + { + XItem xitem = equipsOnBody[(int)equipConf.EquipPos]; + bool flag2 = xitem == null; + result = (flag2 || (XEquipSuitManager.ContainEquip(row, itemid) ^ XEquipSuitManager.ContainEquip(row, xitem.itemID))); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEquipSuitManager.cs.meta b/Client/Assets/Scripts/XMainClient/XEquipSuitManager.cs.meta new file mode 100644 index 00000000..edcca870 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEquipSuitManager.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 66f833491b2423c45b996750e1097391 +timeCreated: 1611403856 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEventArgs.cs b/Client/Assets/Scripts/XMainClient/XEventArgs.cs new file mode 100644 index 00000000..80ffe042 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventArgs.cs @@ -0,0 +1,80 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XEventArgs + { + public bool ManualRecycle { get; set; } + + public XObject Firer + { + get + { + return this._firer; + } + set + { + this._firer = value; + } + } + + public XEventDefine ArgsDefine + { + get + { + return this._eDefine; + } + } + + public long Token + { + get + { + return this._token; + } + set + { + this._token = value; + } + } + + public bool DepracatedPass + { + get + { + return this._depracatedPass; + } + set + { + this._depracatedPass = value; + } + } + + protected XEventDefine _eDefine = XEventDefine.XEvent_Invalid; + + protected long _token = 0L; + + protected XObject _firer = null; + + protected bool _depracatedPass = false; + + public XEventArgs() + { + this._token = XSingleton.singleton.UniqueToken; + this.ManualRecycle = false; + } + + public virtual void Recycle() + { + this._token = 0L; + this._firer = null; + this._depracatedPass = false; + } + + public virtual XEventArgs Clone() + { + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XEventArgs.cs.meta new file mode 100644 index 00000000..5dd1319d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ca2345caebcb074aa13e55823098345 +timeCreated: 1611403691 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEventBlocker.cs b/Client/Assets/Scripts/XMainClient/XEventBlocker.cs new file mode 100644 index 00000000..a38bce1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventBlocker.cs @@ -0,0 +1,78 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEventBlocker where T : XEventArgs + { + public XEventBlocker.XEventHandler EventHandler { get; set; } + + public bool bBlockReceiver + { + get + { + return this.m_bBlockReceiver; + } + set + { + this.m_bBlockReceiver = value; + bool flag = !this.m_bBlockReceiver; + if (flag) + { + for (int i = 0; i < this.m_EventPool.Count; i++) + { + bool flag2 = this.EventHandler != null; + if (flag2) + { + this.EventHandler(this.m_EventPool[i]); + } + this.m_EventPool[i].Recycle(); + } + this.m_EventPool.Clear(); + } + } + } + + public bool bBlockSender + { + get + { + return this.m_bBlockSender; + } + set + { + this.m_bBlockSender = value; + bool flag = !this.m_bBlockSender; + if (flag) + { + for (int i = 0; i < this.m_EventPool.Count; i++) + { + XSingleton.singleton.FireEvent(this.m_EventPool[i]); + } + this.m_EventPool.Clear(); + } + } + } + + private List m_EventPool = new List(); + + private bool m_bBlockReceiver = false; + + private bool m_bBlockSender = false; + + public delegate bool XEventHandler(XEventArgs e); + + public void AddEvent(T e) + { + this.m_EventPool.Add(e); + } + + public void ClearEvents() + { + this.m_EventPool.Clear(); + this.m_bBlockReceiver = false; + this.m_bBlockSender = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEventBlocker.cs.meta b/Client/Assets/Scripts/XMainClient/XEventBlocker.cs.meta new file mode 100644 index 00000000..43c2476e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventBlocker.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e09375e34f9f17a46af7838317d671f1 +timeCreated: 1611404698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEventDefine.cs b/Client/Assets/Scripts/XMainClient/XEventDefine.cs new file mode 100644 index 00000000..dd501e11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventDefine.cs @@ -0,0 +1,122 @@ +using System; + +namespace XMainClient +{ + internal enum XEventDefine + { + XEvent_Invalid = -1, + XEvent_Idle, + XEvent_Move, + XEvent_Jump, + XEvent_Fall, + XEvent_Charge, + XEvent_Freeze, + XEvent_BeHit, + XEvent_Attack, + XEvent_Hit, + XEvent_QTE, + XEvent_OnSkillFired, + XEvent_OnJAPassed, + XEvent_Rotation, + XEvent_Endure, + XEvent_CameraShake, + XEvent_CameraSolo, + XEvent_CameraMotion, + XEvent_CameraMotionEnd, + XEvent_CameraAction, + XEvent_CameraCloseUp, + XEvent_CameraCloseUpEnd, + XEvent_AttackShowBegin, + XEvent_AttackShow, + XEvent_AttackShowEnd, + XEvent_EquipChange, + XEvent_PlaySound, + XEvent_NaviMove, + XEvent_OnEntityCreated, + XEvent_OnEntityDeleted, + XEvent_FadeIn, + XEvent_FadeOut, + XEvent_LoadEquip, + XEvent_UnloadEquip, + XEvent_AddItem, + XEvent_RemoveItem, + XEvent_ItemNumChanged, + XEvent_SwapItem, + XEvent_UpdateItem, + XEvent_VirtualItemChanged, + XEvent_ItemChangeFinished, + XEvent_AIAutoFight, + XEvent_SkillExternal, + XEvent_OnRevived, + XEvent_AIEnterFight, + XEvent_AIRestart, + XEvent_AIStartSkill = 46, + XEvent_AISkillHurt, + XEvent_AIEndSkill, + XEvent_AIStop, + XEvent_AIEvent, + XEvent_GuildPositionChanged = 60, + XEvent_GuildLevelChanged, + XEvent_InGuildStateChanged, + XEvent_GuildInfoChange, + XEvent_FriendInfoChange = 70, + XEvent_BuffAdd = 100, + XEvent_BuffRemove, + XEvent_AttributeChange, + XEvent_HUDAdd, + XEvent_RealDead, + XEvent_LeaveScene, + XEvent_HUDDoodad, + XEvent_BuffBillboardAdd, + XEvent_BuffBillboardRemove, + XEvent_Bubble, + XEvent_BillboardHide, + XEvent_BillboardShowCtrl, + XEvent_TeamMemberCountChanged = 119, + XEvent_JoinTeam, + XEvent_LeaveTeam, + XEvent_OnReconnected = 123, + XEvent_SpotOn, + XEvent_Highlight, + XEvent_FriendList, + XEvent_GuildMemberList, + XEvent_Enmity, + XEvent_OnEntityTransfer, + XEvent_ArmorBroken, + XEvent_ArmorRecover, + XEvent_WoozyOn, + XEvent_WoozyOff, + XEvent_StrengthPresevedOn, + XEvent_StrengthPresevedOff, + XEvent_AudioOperation, + XEvent_CoolDownAllSkills, + XEvent_InitCoolDownAllSkills, + XEvent_DesignationInfoChange = 140, + XEvent_ProjectDamage, + XEvent_EnableAI, + XEvent_OnMounted, + XEvent_OnUnMounted, + XEvent_TitleChange, + XEvent_BuffChange, + XEvent_ComboChange, + XEvent_Manipulation_On, + XEvent_Manipulation_Off, + XEvent_TaskStateChange, + XEvent_DoodadCreate, + XEvent_DoodadDelete, + XEvent_ActivityTaskUpdate, + XEvent_FightGroupChanged, + XEvent_HomeFeasting, + XEvent_BattleEnd, + XEvent_PlayerLevelChange, + XEvent_MentorshipRelationOperation, + XEvent_Prerogative, + XEvent_NpcFavorFxChange, + XEvent_DragonGuildInfoChange, + XEvent_BigMeleePointChange, + XEvent_BigMeleeEnemyChange, + XEvent_EntityAttributeChange, + XEvent_Move_Mob, + XEvent_Num + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEventDefine.cs.meta b/Client/Assets/Scripts/XMainClient/XEventDefine.cs.meta new file mode 100644 index 00000000..7c84fede --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventDefine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e39f0e64b316db49a24c0db0f655cc5 +timeCreated: 1611403607 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEventMgr.cs b/Client/Assets/Scripts/XMainClient/XEventMgr.cs new file mode 100644 index 00000000..3c605eae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventMgr.cs @@ -0,0 +1,187 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XEventMgr : XSingleton + { + private XTimerMgr.ElapsedEventHandler _dispatchDelayEventCb = null; + + private List m_eventPoolClearCb = new List(); + + private Dictionary> m_EventHandlerMap = new Dictionary>(); + + private List m_CacheEventHandlerList = null; + + private SmallBufferPool m_eventPool = new SmallBufferPool(); + + private BlockInfo[] blockInit = new BlockInfo[] + { + new BlockInfo(4, 512), + new BlockInfo(8, 1024), + new BlockInfo(16, 1024) + }; + + public XEventMgr() + { + this._dispatchDelayEventCb = new XTimerMgr.ElapsedEventHandler(this.DispatchDelayEvent); + } + + public override bool Init() + { + this.m_eventPool.Init(this.blockInit, 4); + return true; + } + + public void GetBuffer(ref SmallBuffer sb, int size) + { + this.m_eventPool.GetBlock(ref sb, size, 0); + } + + public void ReturnBuffer(ref SmallBuffer sb) + { + this.m_eventPool.ReturnBlock(ref sb); + } + + public int GetAllocCount() + { + return this.m_eventPool.allocBlockCount; + } + + public void BeginRegisterEvent(uint componentID) + { + this.m_CacheEventHandlerList = null; + bool flag = this.m_EventHandlerMap.TryGetValue(componentID, out this.m_CacheEventHandlerList); + if (flag) + { + this.m_CacheEventHandlerList = null; + } + else + { + this.m_CacheEventHandlerList = new List(); + this.m_EventHandlerMap.Add(componentID, this.m_CacheEventHandlerList); + } + } + + public void EndRegisterEvent() + { + this.m_CacheEventHandlerList = null; + } + + public void RegisterEvent(XEventDefine eventID, XComponent.XEventHandler handler) + { + bool flag = this.m_CacheEventHandlerList != null; + if (flag) + { + int num = XFastEnumIntEqualityComparer.ToInt(eventID); + int count = this.m_CacheEventHandlerList.Count; + for (int i = 0; i < count; i++) + { + XComponent.ComponentEventHandler componentEventHandler = this.m_CacheEventHandlerList[i]; + bool flag2 = componentEventHandler.eventIndex == num; + if (flag2) + { + return; + } + } + XComponent.ComponentEventHandler item = default(XComponent.ComponentEventHandler); + item.eventIndex = num; + item.handler = handler; + this.m_CacheEventHandlerList.Add(item); + } + } + + public bool OnEvent(uint componentID, XEventArgs e) + { + List list = null; + bool flag = this.m_EventHandlerMap.TryGetValue(componentID, out list); + if (flag) + { + int num = XFastEnumIntEqualityComparer.ToInt(e.ArgsDefine); + int count = list.Count; + for (int i = 0; i < count; i++) + { + XComponent.ComponentEventHandler componentEventHandler = list[i]; + bool flag2 = componentEventHandler.eventIndex == num; + if (flag2) + { + bool flag3 = componentEventHandler.handler != null; + if (flag3) + { + return componentEventHandler.handler(e); + } + } + } + } + return false; + } + + public bool FireEvent(XEventArgs args) + { + return this.DispatchEvent(args); + } + + public uint FireEvent(XEventArgs args, float delay) + { + bool flag = delay <= 0f; + uint result; + if (flag) + { + this.DispatchEvent(args); + result = 0u; + } + else + { + result = XSingleton.singleton.SetTimer(delay, this._dispatchDelayEventCb, args); + } + return result; + } + + public void CancelDelayEvent(uint token) + { + XSingleton.singleton.KillTimer(token); + } + + private void DispatchDelayEvent(object o) + { + this.DispatchEvent(o as XEventArgs); + } + + private bool DispatchEvent(XEventArgs args) + { + bool result = false; + bool flag = args.Firer != null && (!args.Firer.Deprecated || args.DepracatedPass); + if (flag) + { + result = args.Firer.DispatchEvent(args); + } + bool flag2 = !args.ManualRecycle; + if (flag2) + { + args.Recycle(); + } + return result; + } + + public void RegisterEventPool(EventPoolClear epc) + { + this.m_eventPoolClearCb.Add(epc); + } + + public void Clear() + { + for (int i = 0; i < this.m_eventPoolClearCb.Count; i++) + { + EventPoolClear eventPoolClear = this.m_eventPoolClearCb[i]; + bool flag = eventPoolClear != null; + if (flag) + { + eventPoolClear(); + } + } + this.m_eventPoolClearCb.Clear(); + this.m_EventHandlerMap.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEventMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XEventMgr.cs.meta new file mode 100644 index 00000000..3960afc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7772e0082c436b04da0ab2ff00fe01a5 +timeCreated: 1611403954 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEventPool.cs b/Client/Assets/Scripts/XMainClient/XEventPool.cs new file mode 100644 index 00000000..099be4dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventPool.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XEventPool where T : XEventArgs, new() + { + private static Queue _pool = null; + + public static void Clear() + { + bool flag = XEventPool._pool != null; + if (flag) + { + XEventPool._pool.Clear(); + XEventPool._pool = null; + } + } + + public static T GetEvent() + { + bool flag = XEventPool._pool == null; + if (flag) + { + XEventPool._pool = new Queue(); + XSingleton.singleton.RegisterEventPool(new EventPoolClear(XEventPool.Clear)); + } + bool flag2 = XEventPool._pool.Count > 0; + T result; + if (flag2) + { + T t = XEventPool._pool.Dequeue(); + bool flag3 = t == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("XEvent Type should be ", typeof(T).ToString(), " but is ", t.ToString(), null, null); + } + t.Token = XSingleton.singleton.UniqueToken; + result = t; + } + else + { + result = Activator.CreateInstance(); + } + return result; + } + + public static void Recycle(T args) + { + XEventPool._pool.Enqueue(args); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEventPool.cs.meta b/Client/Assets/Scripts/XMainClient/XEventPool.cs.meta new file mode 100644 index 00000000..fcf0bf16 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEventPool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d0079e95e06bbe4c9b63c0268e2667a +timeCreated: 1611403603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XEvent_HomeFeastingArgs.cs b/Client/Assets/Scripts/XMainClient/XEvent_HomeFeastingArgs.cs new file mode 100644 index 00000000..38d504da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEvent_HomeFeastingArgs.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal class XEvent_HomeFeastingArgs : XEventArgs + { + public uint time = 0u; + + public XEvent_HomeFeastingArgs() + { + this._eDefine = XEventDefine.XEvent_HomeFeasting; + this.time = 0u; + } + + public override void Recycle() + { + base.Recycle(); + this.time = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XEvent_HomeFeastingArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XEvent_HomeFeastingArgs.cs.meta new file mode 100644 index 00000000..d3987cef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XEvent_HomeFeastingArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55dae20bff977ef45bb3f05e92ed0f45 +timeCreated: 1611403739 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XExchangeItemDocument.cs b/Client/Assets/Scripts/XMainClient/XExchangeItemDocument.cs new file mode 100644 index 00000000..ff1c9449 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XExchangeItemDocument.cs @@ -0,0 +1,243 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XExchangeItemDocument : XDocComponent + { + public override uint ID + { + get + { + return XExchangeItemDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ExchangeItemDocument"); + + public List ItemList = new List(); + + public ulong CurrentSelectUid; + + public int OtherSelectId; + + public bool MyEnsureState; + + public bool OtherEnsureState; + + public ulong MyAudioID; + + public uint MyAudioTime; + + public string MyInputText; + + public ulong OtherAudioID; + + public uint OtherAudioTime; + + public string OtherInputText; + + public int TipsState; + + public int ExchangeType; + + public string ExchangeItemStr; + + public bool ExchangeState = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void QuerySelectItem(ulong uid) + { + RpcC2G_GuildCampExchangeOperate rpcC2G_GuildCampExchangeOperate = new RpcC2G_GuildCampExchangeOperate(); + rpcC2G_GuildCampExchangeOperate.oArg.operate_type = ((uid == 0UL) ? GuildCampItemOperate.SWINGDOWNITEM : GuildCampItemOperate.SWINGUPITEM); + rpcC2G_GuildCampExchangeOperate.oArg.item_uid = uid; + XSingleton.singleton.Send(rpcC2G_GuildCampExchangeOperate); + } + + public void QueryEnsureExchange(bool state) + { + RpcC2G_GuildCampExchangeOperate rpcC2G_GuildCampExchangeOperate = new RpcC2G_GuildCampExchangeOperate(); + rpcC2G_GuildCampExchangeOperate.oArg.operate_type = GuildCampItemOperate.CONFIRM; + rpcC2G_GuildCampExchangeOperate.oArg.confirm = state; + XSingleton.singleton.Send(rpcC2G_GuildCampExchangeOperate); + } + + public void QueryCloseUI() + { + RpcC2G_GuildCampExchangeOperate rpcC2G_GuildCampExchangeOperate = new RpcC2G_GuildCampExchangeOperate(); + rpcC2G_GuildCampExchangeOperate.oArg.operate_type = GuildCampItemOperate.CANCEL; + XSingleton.singleton.Send(rpcC2G_GuildCampExchangeOperate); + } + + public void Init(ItemType type, string name, uint prof) + { + this.MyAudioID = 0UL; + this.MyAudioTime = 0u; + this.MyInputText = ""; + this.OtherAudioID = 0UL; + this.OtherAudioTime = 0u; + this.OtherInputText = ""; + this.CurrentSelectUid = 0UL; + this.OtherSelectId = 0; + this.MyEnsureState = false; + this.OtherEnsureState = false; + this.TipsState = 0; + this.ExchangeType = XFastEnumIntEqualityComparer.ToInt(type); + this.ExchangeItemStr = XStringDefineProxy.GetString(string.Format("ExchangeType_{0}", this.ExchangeType)); + DlgBase.singleton.InitShow(name, prof); + } + + public void OnServerDataGet(GuildCampPartyTradeNotifyArg data) + { + bool flag = XSingleton.singleton.XPlayerData == null; + if (!flag) + { + bool flag2 = data.open_trade && data.lauch_role_id != XSingleton.singleton.XPlayerData.RoleID && data.target_role_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + XSingleton.singleton.AddErrorLog("message error. 2 roleid not me. id :", data.lauch_role_id.ToString(), " --- ", data.target_role_id.ToString(), null, null); + } + else + { + bool flag3 = this.ExchangeState != data.open_trade; + if (flag3) + { + this.ExchangeState = data.open_trade; + bool exchangeState = this.ExchangeState; + if (exchangeState) + { + bool flag4 = data.lauch_role_id == XSingleton.singleton.XPlayerData.RoleID; + if (flag4) + { + this.Init(ItemType.GuildCollectCard, data.target_name, data.target_profession); + } + else + { + this.Init(ItemType.GuildCollectCard, data.lauch_name, data.lauch_profession); + } + } + else + { + DlgBase.singleton.SetVisible(false, true); + } + } + bool exchangeState2 = this.ExchangeState; + if (exchangeState2) + { + bool flag5 = data.lauch_role_id == XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + this.OnStateChange(data.lauch_item_uid, (int)data.target_item_id, data.lauch_confirm, data.target_confirm, data.lauch_chat_info, data.target_chat_info); + } + else + { + this.OnStateChange(data.target_item_uid, (int)data.lauch_item_id, data.target_confirm, data.lauch_confirm, data.target_chat_info, data.lauch_chat_info); + } + } + } + } + } + + public void OnStateChange(ulong mySelect, int otherSelect, bool myEnsureState, bool otherEnsureState, GuildCampChatInfo myAudio, GuildCampChatInfo otherAudio) + { + bool flag = false; + bool flag2 = !DlgBase.singleton.IsVisible(); + if (!flag2) + { + bool flag3 = mySelect != this.CurrentSelectUid; + if (flag3) + { + this.CurrentSelectUid = mySelect; + DlgBase.singleton.OnMySelectChange(this.CurrentSelectUid); + DlgBase.singleton.RefreshMyItemList(); + } + bool flag4 = otherSelect != this.OtherSelectId; + if (flag4) + { + this.OtherSelectId = otherSelect; + DlgBase.singleton.OnOtherSelectChange(this.OtherSelectId); + bool myEnsureState2 = this.MyEnsureState; + if (myEnsureState2) + { + flag = true; + } + } + bool flag5 = myEnsureState != this.MyEnsureState || otherEnsureState != this.OtherEnsureState; + if (flag5) + { + this.MyEnsureState = myEnsureState; + this.OtherEnsureState = otherEnsureState; + DlgBase.singleton.OnEnsureStateChange(); + } + bool flag6 = myAudio != null && (this.MyAudioID != myAudio.audio_id || this.MyInputText != myAudio.chat_text); + if (flag6) + { + this.MyAudioID = myAudio.audio_id; + this.MyInputText = myAudio.chat_text; + this.MyAudioTime = myAudio.audio_time; + DlgBase.singleton.RefreshMyChat(); + } + bool flag7 = otherAudio != null && (this.OtherAudioID != otherAudio.audio_id || this.OtherInputText != otherAudio.chat_text); + if (flag7) + { + this.OtherAudioID = otherAudio.audio_id; + this.OtherInputText = otherAudio.chat_text; + this.OtherAudioTime = otherAudio.audio_time; + DlgBase.singleton.RefreshOtherChat(); + } + bool flag8 = flag; + if (flag8) + { + this.TipsState = 2; + } + else + { + bool myEnsureState3 = this.MyEnsureState; + if (myEnsureState3) + { + this.TipsState = 3; + } + else + { + bool flag9 = this.CurrentSelectUid == 0UL; + if (flag9) + { + this.TipsState = 0; + } + else + { + this.TipsState = 1; + } + } + } + DlgBase.singleton.OnTipsChange(); + } + } + + public void SendChat(string ans, ulong audioID, uint audioTime) + { + bool flag = audioID == 0UL && ans.Length == 0; + if (!flag) + { + RpcC2G_GuildCampExchangeOperate rpcC2G_GuildCampExchangeOperate = new RpcC2G_GuildCampExchangeOperate(); + rpcC2G_GuildCampExchangeOperate.oArg.operate_type = ((audioID == 0UL) ? GuildCampItemOperate.TEXTCHAT : GuildCampItemOperate.AUDIOCHAT); + rpcC2G_GuildCampExchangeOperate.oArg.audio_id = audioID; + rpcC2G_GuildCampExchangeOperate.oArg.chat_text = ans; + rpcC2G_GuildCampExchangeOperate.oArg.audio_time = audioTime; + XSingleton.singleton.Send(rpcC2G_GuildCampExchangeOperate); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XExchangeItemDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XExchangeItemDocument.cs.meta new file mode 100644 index 00000000..6995e41a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XExchangeItemDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c8856a191d9e2c041a6f5ebd980f58d5 +timeCreated: 1611404534 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XExpeditionDocument.cs b/Client/Assets/Scripts/XMainClient/XExpeditionDocument.cs new file mode 100644 index 00000000..350b9226 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XExpeditionDocument.cs @@ -0,0 +1,1029 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XExpeditionDocument : XDocComponent + { + public override uint ID + { + get + { + return XExpeditionDocument.uuID; + } + } + + public static ExpeditionTable ExpTable + { + get + { + return XExpeditionDocument._ExpeditionReader; + } + } + + public bool EnlargeMatch { get; set; } + + public TeamTowerData SingleTowerData + { + get + { + return this._SingleTowerData; + } + } + + public int ExpeditionId + { + get + { + return this.SelectExpId; + } + set + { + this.SelectExpId = value; + } + } + + public int GoddessRewardsCanGetTimes + { + get + { + return this.m_GoddessRewardsCanGetTimes; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ExpeditionDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public ActivityExpeditionHandler ExpeditionView; + + public ActivityNestHandler NestView; + + public ActivityTeamTowerSingleDlg TeamTowerSingleView; + + public ActivityRiftDlg TeamMysteriourView; + + public ActivityGoddessTrialDlg GoddessTrialView; + + private static ExpeditionTable _ExpeditionReader = new ExpeditionTable(); + + private static RandomSceneTable _RandomSceneReader = new RandomSceneTable(); + + private static TeamTowerRewardTable _TeamTowerRewardTable = new TeamTowerRewardTable(); + + private static PkProfessionTable _PkProfTable = new PkProfessionTable(); + + private static PVEAttrModify _PveAttrTable = new PVEAttrModify(); + + private int SelectExpId; + + private int m_GoddessRewardsCanGetTimes = 0; + + public XTeamCategoryMgr TeamCategoryMgr = new XTeamCategoryMgr(); + + public Dictionary currentDayCount = new Dictionary(default(XFastEnumIntEqualityComparer)); + + public Dictionary currentBuyCount = new Dictionary(default(XFastEnumIntEqualityComparer)); + + public Dictionary maxCount = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private Dictionary _TowerData = new Dictionary(); + + private TeamTowerData _SingleTowerData = new TeamTowerData(); + + private List _TempExpList = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + XExpeditionDocument.AsyncLoader.AddTask("Table/DNExpedition", XExpeditionDocument._ExpeditionReader, false); + XExpeditionDocument.AsyncLoader.AddTask("Table/RandomSceneList", XExpeditionDocument._RandomSceneReader, false); + XExpeditionDocument.AsyncLoader.AddTask("Table/TeamTower", XExpeditionDocument._TeamTowerRewardTable, false); + XExpeditionDocument.AsyncLoader.AddTask("Table/PkProfession", XExpeditionDocument._PkProfTable, false); + XExpeditionDocument.AsyncLoader.AddTask("Table/PVEAttrModify", XExpeditionDocument._PveAttrTable, false); + XExpeditionDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.TeamCategoryMgr.Init(); + this.InitTeamTowerData(); + this.currentDayCount.Clear(); + this.currentBuyCount.Clear(); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_JoinTeam, new XComponent.XEventHandler(this.OnJoinTeam)); + base.RegisterEvent(XEventDefine.XEvent_LeaveTeam, new XComponent.XEventHandler(this.OnLeaveTeam)); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + this.TeamCategoryMgr.RefreshAbyssStates(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_TOWER; + if (flag) + { + XSingleton.singleton.OnClearDoodad(); + XSingleton.singleton.CacheUI(XSysDefine.XSys_Activity_TeamTowerSingle, EXStage.Hall); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_GODDESS; + if (flag2) + { + int num = this.GetDayMaxCount(TeamLevelType.TeamLevelGoddessTrial, null) - this.GetDayCount(TeamLevelType.TeamLevelGoddessTrial, null); + int @int = XSingleton.singleton.GetInt("GoddessTrialNeedJoinTimes"); + bool flag3 = @int <= 0; + if (!flag3) + { + bool flag4 = this.GoddessRewardsCanGetTimes > 0 || (num > 0 && num % @int == 0); + if (flag4) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_Activity_GoddessTrial, EXStage.Hall); + } + } + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_TOWER; + if (flag) + { + XSingleton.singleton.OnClearDoodad(); + } + } + + public static string GetFullName(ExpeditionTable.RowData rowData) + { + bool flag = rowData == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + TeamLevelType type = (TeamLevelType)rowData.Type; + bool flag2 = type == TeamLevelType.TeamLevelNest; + if (flag2) + { + NestListTable.RowData byNestID = XNestDocument.NestListData.GetByNestID(rowData.DNExpeditionID); + bool flag3 = byNestID != null; + if (flag3) + { + bool flag4 = rowData.CostCountType != 0; + string @string; + if (flag4) + { + @string = XStringDefineProxy.GetString(string.Format("TeamNestDifficult{0}", byNestID.Difficulty)); + } + else + { + @string = XStringDefineProxy.GetString(string.Format("TeamNestDifficult{0}", (long)(byNestID.Difficulty * 100) + (long)((ulong)rowData.Stars[0]))); + } + return XStringDefineProxy.GetString("EXP_FULL_NAME", new object[] + { + rowData.DNExpeditionName, + @string + }); + } + } + result = rowData.DNExpeditionName; + } + return result; + } + + public ExpeditionTable.RowData GetExpeditionDataByIndex(int index) + { + bool flag = index >= XExpeditionDocument._ExpeditionReader.Table.Length; + ExpeditionTable.RowData result; + if (flag) + { + result = null; + } + else + { + result = XExpeditionDocument._ExpeditionReader.Table[index]; + } + return result; + } + + public RandomSceneTable.RowData[] GetRandomSceneTable() + { + return XExpeditionDocument._RandomSceneReader.Table; + } + + public RandomSceneTable.RowData GetRandomSceneRowDataBySceneId(int sceneId) + { + for (int i = 0; i < XExpeditionDocument._RandomSceneReader.Table.Length; i++) + { + bool flag = (long)sceneId == (long)((ulong)XExpeditionDocument._RandomSceneReader.Table[i].SceneID); + if (flag) + { + return XExpeditionDocument._RandomSceneReader.Table[i]; + } + } + return null; + } + + public TeamTowerRewardTable.RowData GetTeamTowerRewardData(int index) + { + bool flag = XExpeditionDocument._TeamTowerRewardTable.Table.Length > index; + TeamTowerRewardTable.RowData result; + if (flag) + { + result = XExpeditionDocument._TeamTowerRewardTable.Table[index]; + } + else + { + result = null; + } + return result; + } + + public TeamTowerRewardTable.RowData[] GetTeamTowerTable() + { + return XExpeditionDocument._TeamTowerRewardTable.Table; + } + + public List GetRandomSceneList(uint RandomID) + { + List list = new List(); + for (int i = 0; i < XExpeditionDocument._RandomSceneReader.Table.Length; i++) + { + bool flag = XExpeditionDocument._RandomSceneReader.Table[i].RandomID == RandomID; + if (flag) + { + list.Add(XExpeditionDocument._RandomSceneReader.Table[i].SceneID); + } + } + return list; + } + + public ExpeditionTable.RowData GetExpeditionDataByID(int id) + { + return XExpeditionDocument._ExpeditionReader.GetByDNExpeditionID(id); + } + + public List GetExpeditionList(TeamLevelType type) + { + this._TempExpList.Clear(); + for (int i = 0; i < XExpeditionDocument._ExpeditionReader.Table.Length; i++) + { + bool flag = XExpeditionDocument._ExpeditionReader.Table[i].Type == (int)type; + if (flag) + { + this._TempExpList.Add(XExpeditionDocument._ExpeditionReader.Table[i]); + } + } + return this._TempExpList; + } + + public string GetExpNameByHardLevel(int hardlevel) + { + for (int i = 0; i < XExpeditionDocument._TeamTowerRewardTable.Table.Length; i++) + { + bool flag = XExpeditionDocument._TeamTowerRewardTable.Table[i].TowerHardLevel == hardlevel; + if (flag) + { + return XExpeditionDocument._TeamTowerRewardTable.Table[i].Name; + } + } + return ""; + } + + public TeamTowerData GetTeamTowerDataByExpid(int expid) + { + TeamTowerData teamTowerData = null; + bool flag = this._TowerData.TryGetValue(expid, out teamTowerData); + TeamTowerData result; + if (flag) + { + result = teamTowerData; + } + else + { + result = null; + } + return result; + } + + private void InitTeamTowerData() + { + this._TowerData.Clear(); + List expeditionList = this.GetExpeditionList(TeamLevelType.TeamLevelTeamTower); + for (int i = 0; i < expeditionList.Count; i++) + { + bool flag = !this._TowerData.ContainsKey(expeditionList[i].DNExpeditionID); + if (flag) + { + TeamTowerData teamTowerData = new TeamTowerData(); + teamTowerData.difficulty = 0; + teamTowerData.time = 0; + teamTowerData.level = 0; + teamTowerData.maxlevel = expeditionList[i].RandomSceneIDs.Length; + teamTowerData.open = false; + teamTowerData.sweeplefttime = 0; + teamTowerData.showteam = false; + teamTowerData.sweepreqtime = Time.time; + this._TowerData.Add(expeditionList[i].DNExpeditionID, teamTowerData); + } + } + this.EnlargeMatch = false; + } + + public bool OnJoinTeam(XEventArgs args) + { + bool flag = this.ExpeditionView == null || !this.ExpeditionView.active; + bool result; + if (flag) + { + result = true; + } + else + { + XJoinTeamEventArgs xjoinTeamEventArgs = args as XJoinTeamEventArgs; + bool flag2 = this.GetExpeditionDataByID((int)xjoinTeamEventArgs.dungeonID) != null; + if (flag2) + { + this.ExpeditionView.ShowExpediFrame(); + } + result = true; + } + return result; + } + + public bool OnLeaveTeam(XEventArgs args) + { + bool flag = this.ExpeditionView == null || !this.ExpeditionView.active; + bool result; + if (flag) + { + result = true; + } + else + { + XLeaveTeamEventArgs xleaveTeamEventArgs = args as XLeaveTeamEventArgs; + bool flag2 = this.GetExpeditionDataByID((int)xleaveTeamEventArgs.dungeonID) != null; + if (flag2) + { + this.ExpeditionView.ShowExpediFrame(); + } + result = true; + } + return result; + } + + public void SetTeamCount(TeamOPRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + this.m_GoddessRewardsCanGetTimes = oRes.GoddessGetRewardsCount; + XWeekNestDocument.Doc.CurDNid = oRes.weeknestexpid; + bool flag2 = XWeekNestDocument.Doc.CurDNid == 0; + if (flag2) + { + XSingleton.singleton.AddGreenLog("curDNid cannot is 0", null, null, null, null, null); + } + for (int i = 0; i < oRes.teamcount.Count; i++) + { + bool flag3 = oRes.teamcount[i] == null; + if (!flag3) + { + this.currentDayCount[(TeamLevelType)oRes.teamcount[i].teamtype] = oRes.teamcount[i].leftcount; + this.maxCount[(TeamLevelType)oRes.teamcount[i].teamtype] = oRes.teamcount[i].maxcount; + this.currentBuyCount[(TeamLevelType)oRes.teamcount[i].teamtype] = oRes.teamcount[i].buycount; + } + } + this.currentDayCount[TeamLevelType.TeamLevelWeekNest] = (int)oRes.wnrewardleftcount; + this.maxCount[TeamLevelType.TeamLevelWeekNest] = (int)oRes.wnrewardmaxcount; + this.RefreshRedPoints(); + this._GeneralRefreshLeftCount(); + } + } + + private void _GeneralRefreshLeftCount() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshLeftCount(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.ShowTeamView(); + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshHardLeftCount(); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshTimes(); + } + bool flag5 = DlgBase.singleton.IsVisible() && DlgBase.singleton.IsLoaded(); + if (flag5) + { + DlgBase.singleton.SetTeamLeftTimes(); + } + XWeekNestDocument.Doc.RefreshUi(); + } + + public void SetGoddessRewardsCanGetTimes(GetGoddessTrialRewardsRes oRes) + { + this.m_GoddessRewardsCanGetTimes = (int)oRes.leftGoddessReward; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshTimes(); + } + } + + public int GetDayMaxCount(TeamLevelType dungeonType, SceneTable.RowData sceneData = null) + { + bool flag = dungeonType == TeamLevelType.TeamLevelDragonNest; + if (flag) + { + bool flag2 = sceneData != null; + if (flag2) + { + return (int)sceneData.DayLimit; + } + } + else + { + int result = 0; + bool flag3 = this.maxCount.TryGetValue(dungeonType, out result); + if (flag3) + { + return result; + } + } + return 0; + } + + public int GetTotalCount(TeamLevelType dungeonType, SceneTable.RowData sceneData = null) + { + return this.GetDayMaxCount(dungeonType, sceneData) + this.GetBuyCount(dungeonType); + } + + public int GetBuyLimit(TeamLevelType dungeonType) + { + int result; + if (dungeonType != TeamLevelType.TeamLevelNest) + { + if (dungeonType != TeamLevelType.TeamLevelAbyss) + { + result = 0; + } + else + { + result = XSingleton.singleton.GetInt("BuyAbyssCountLimit"); + } + } + else + { + result = XSingleton.singleton.GetInt("BuyNestCountLimit"); + } + return result; + } + + public CostInfo GetBuyCost(TeamLevelType dungeonType) + { + CostInfo result; + if (dungeonType != TeamLevelType.TeamLevelNest) + { + if (dungeonType != TeamLevelType.TeamLevelAbyss) + { + result = default(CostInfo); + } + else + { + result = XSingleton.singleton.QueryCost("BuyAbyssCountCost", this.GetBuyCount(dungeonType)); + } + } + else + { + result = XSingleton.singleton.QueryCost("BuyNestCountCost", this.GetBuyCount(dungeonType)); + } + return result; + } + + public bool CanBuy(TeamLevelType dungeonType, out int buyCount, out int buyLimit) + { + buyCount = this.GetBuyCount(dungeonType); + buyLimit = this.GetBuyLimit(dungeonType); + return buyCount < buyLimit; + } + + public int GetBuyCount(TeamLevelType dungeonType) + { + int num; + bool flag = this.currentBuyCount.TryGetValue(dungeonType, out num); + int result; + if (flag) + { + result = num; + } + else + { + result = 0; + } + return result; + } + + public int GetDayCount(TeamLevelType dungeonType, SceneTable.RowData sceneData = null) + { + bool flag = dungeonType == TeamLevelType.TeamLevelTeamTower; + int result; + if (flag) + { + result = this.SingleTowerData.leftcount; + } + else + { + int num; + bool flag2 = this.currentDayCount.TryGetValue(dungeonType, out num); + if (flag2) + { + result = num; + } + else + { + bool flag3 = sceneData != null; + if (flag3) + { + XLevelDocument specificDocument = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + uint num2; + bool flag4 = specificDocument.SceneDayEnter.TryGetValue((uint)sceneData.id, out num2); + if (flag4) + { + return (int)((uint)sceneData.DayLimit - num2); + } + } + result = this.GetDayMaxCount(dungeonType, sceneData); + } + } + return result; + } + + public void ReqBuyCount(TeamLevelType type) + { + RpcC2G_BuyTeamSceneCount rpcC2G_BuyTeamSceneCount = new RpcC2G_BuyTeamSceneCount(); + rpcC2G_BuyTeamSceneCount.oArg.type = XFastEnumIntEqualityComparer.ToInt(type); + XSingleton.singleton.Send(rpcC2G_BuyTeamSceneCount); + } + + public void OnBuyCount(BuyTeamSceneCountP oArg, BuyTeamSceneCountRet oRes) + { + bool flag = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("BUYCOUNT_SUCCESS"), "fece00"); + TeamLevelType type = (TeamLevelType)oArg.type; + this.currentBuyCount[type] = (int)oRes.buycount; + this.currentDayCount[type] = (int)(oRes.maxcount - oRes.entercount); + this.maxCount[type] = (int)oRes.maxcount; + this.RefreshRedPoints(); + this._GeneralRefreshLeftCount(); + } + } + + public void OnRefreshTeamLevelAbyss(int hadCount) + { + this.currentDayCount[TeamLevelType.TeamLevelAbyss] = hadCount; + } + + public void OnRefreshDayCount(TeamLevelType type, int count) + { + bool flag = this.currentDayCount.ContainsKey(type); + if (flag) + { + this.currentDayCount[type] = count; + } + } + + public bool CheckCountAndBuy(int expid, SceneTable.RowData sceneData = null) + { + ExpeditionTable.RowData expeditionDataByID = this.GetExpeditionDataByID(expid); + TeamLevelType type = (TeamLevelType)expeditionDataByID.Type; + bool flag = this.GetDayCount(type, sceneData) == 0 && this.GetDayMaxCount(type, sceneData) != 0; + bool result; + if (flag) + { + int num; + int num2; + bool flag2 = this.CanBuy(type, out num, out num2); + if (flag2) + { + DlgBase.singleton.PassiveShow(type); + } + else + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_SCENE_TODYCOUNTLIMIT, "fece00"); + } + result = false; + } + else + { + result = true; + } + return result; + } + + private bool IsLastTeamFinished(int expid) + { + return expid <= 3010; + } + + public void UpdateTowerActivtyTop(GetTowerActivityTopRes oRes) + { + List list = new List(this._TowerData.Keys); + for (int i = 0; i < this._TowerData.Count; i++) + { + this._TowerData[list[i]].open = false; + this._TowerData[list[i]].showteam = false; + this._TowerData[list[i]].level = 0; + this._TowerData[list[i]].time = 0; + this._TowerData[list[i]].sweeplefttime = 0; + this._TowerData[list[i]].sweepfloor = 0; + this._TowerData[list[i]].sweepreqtime = 0f; + } + int num = 3001; + ExpeditionTable.RowData expeditionDataByID = this.GetExpeditionDataByID(num); + bool flag = (ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)expeditionDataByID.RequiredLevel); + if (flag) + { + this._TowerData[num].open = true; + this._TowerData[num].showteam = true; + } + for (int j = 0; j < oRes.infos.Count; j++) + { + TowerRecord towerRecord = oRes.infos[j]; + bool flag2 = towerRecord.openHardLevel <= 0; + if (!flag2) + { + int num2 = (towerRecord.openHardLevel - 1) * 10 + 3001; + bool flag3 = this._TowerData.ContainsKey(num2); + if (flag3) + { + ExpeditionTable.RowData expeditionDataByID2 = this.GetExpeditionDataByID(num2); + this._TowerData[num2].level = towerRecord.reachTopFloor; + this._TowerData[num2].time = towerRecord.bestTime; + this._TowerData[num2].sweeplefttime = towerRecord.sweepTime; + this._TowerData[num2].sweepfloor = towerRecord.sweepFloor; + this._TowerData[num2].sweepreqtime = Time.time; + this._TowerData[num2].open = true; + bool flag4 = this.GetTeamTowerTopLevel(towerRecord.openHardLevel) <= towerRecord.sweepFloor; + if (flag4) + { + this._TowerData[num2].showteam = true; + } + else + { + bool flag5 = this._TowerData.ContainsKey(list[j] + towerRecord.sweepFloor / 5); + if (flag5) + { + bool flag6 = towerRecord.sweepTime == 0 && towerRecord.sweepFloor > 0; + if (flag6) + { + this._TowerData[num2 + towerRecord.reachTopFloor / 5].showteam = true; + this._TowerData[num2].showteam = false; + } + else + { + this._TowerData[num2].showteam = true; + } + } + } + } + } + } + bool flag7 = oRes.infos.Count > 0; + if (flag7) + { + TowerRecord towerRecord2 = oRes.infos[oRes.infos.Count - 1]; + bool flag8 = towerRecord2.reachTopFloor == this.GetTeamTowerTopLevel(towerRecord2.openHardLevel); + if (flag8) + { + bool flag9 = towerRecord2.openHardLevel == 1; + if (flag9) + { + this._TowerData[num + 10].showteam = true; + this._TowerData[num + 10].open = true; + } + } + } + } + + public void OnRefreshShowTeam() + { + for (int i = 0; i < 3; i++) + { + int key = i * 10 + 3001; + bool flag = this._TowerData.ContainsKey(key); + if (flag) + { + } + } + } + + public int GetTeamTowerTopLevel(int hardlevel) + { + int num = 1; + for (int i = 0; i < XExpeditionDocument._TeamTowerRewardTable.Table.Length; i++) + { + bool flag = XExpeditionDocument._TeamTowerRewardTable.Table[i].TowerHardLevel == hardlevel && XExpeditionDocument._TeamTowerRewardTable.Table[i].TowerFloor > num; + if (flag) + { + num = XExpeditionDocument._TeamTowerRewardTable.Table[i].TowerFloor; + } + } + return num; + } + + public bool IsTeamTowerOpen(int expid) + { + bool flag = this._TowerData.ContainsKey(expid); + return flag && this._TowerData[expid].showteam; + } + + public bool IsNestOpen(int expid) + { + ExpeditionTable.RowData expeditionDataByID = this.GetExpeditionDataByID(expid); + return this.IsNestOpen(expeditionDataByID); + } + + public bool IsNestOpen(ExpeditionTable.RowData rowData) + { + bool flag = rowData == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = rowData.Type != 3; + if (flag2) + { + result = false; + } + else + { + int rank = XSingleton.singleton.GetRank((int)this.GetSceneIDByExpID(rowData.DNExpeditionID)); + bool flag3 = rank <= 0; + result = !flag3; + } + } + return result; + } + + public uint GetSceneIDByExpID(int expID) + { + ExpeditionTable.RowData expeditionDataByID = this.GetExpeditionDataByID(expID); + bool flag = expeditionDataByID == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + TeamLevelType type = (TeamLevelType)expeditionDataByID.Type; + bool flag2 = type == TeamLevelType.TeamLevelExpdition; + if (flag2) + { + result = 0u; + } + else + { + RandomSceneTable.RowData[] randomSceneTable = this.GetRandomSceneTable(); + for (int i = 0; i < randomSceneTable.Length; i++) + { + bool flag3 = randomSceneTable[i].RandomID == expeditionDataByID.RandomSceneIDs[0]; + if (flag3) + { + return randomSceneTable[i].SceneID; + } + } + result = 0u; + } + } + return result; + } + + public int GetExpIDBySceneID(uint sceneID) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + RandomSceneTable.RowData[] randomSceneTable = specificDocument.GetRandomSceneTable(); + for (int i = 0; i < randomSceneTable.Length; i++) + { + bool flag = randomSceneTable[i].SceneID == sceneID; + if (flag) + { + for (int j = 0; j < XExpeditionDocument._ExpeditionReader.Table.Length; j++) + { + uint[] randomSceneIDs = XExpeditionDocument._ExpeditionReader.Table[j].RandomSceneIDs; + for (int k = 0; k < randomSceneIDs.Length; k++) + { + bool flag2 = randomSceneIDs[k] == randomSceneTable[i].RandomID; + if (flag2) + { + return XExpeditionDocument._ExpeditionReader.Table[j].DNExpeditionID; + } + } + } + } + } + return 0; + } + + public void RefreshRedPoints() + { + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Level_Elite, this.GetDayCount(TeamLevelType.TeamLevelAbyss, null) > 0); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Activity_TeamTower, this.GetDayCount(TeamLevelType.TeamLevelTeamTower, null) > 0); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Activity_Nest, this.GetDayCount(TeamLevelType.TeamLevelNest, null) > 0); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Activity_Nest, true); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_WeekNest, this.GetDayCount(TeamLevelType.TeamLevelWeekNest, null) > 0); + } + + public void GetSingleTowerActivityTop() + { + RpcC2G_GetTowerActivityTop rpc = new RpcC2G_GetTowerActivityTop(); + XSingleton.singleton.Send(rpc); + } + + public void GetSingleTowerActivityTopRes(GetTowerActivityTopRes oRes) + { + this._SingleTowerData.sweepreqtime = Time.time; + bool flag = oRes.infos.Count == 0; + if (flag) + { + this._SingleTowerData.sweeplefttime = 0; + this._SingleTowerData.level = 0; + this._SingleTowerData.maxlevel = 0; + this._SingleTowerData.time = 0; + this._SingleTowerData.leftcount = oRes.leftResetCount; + this._SingleTowerData.sweepfloor = 0; + this._SingleTowerData.sweepreqtime = Time.time; + this._SingleTowerData.refreshcount = 5; + this._SingleTowerData.firstpassreward = new List(); + } + else + { + this._SingleTowerData.sweeplefttime = oRes.infos[0].sweepTime; + this._SingleTowerData.level = oRes.infos[0].curFloor; + this._SingleTowerData.maxlevel = oRes.infos[0].reachTopFloor; + this._SingleTowerData.time = oRes.infos[0].bestTime; + this._SingleTowerData.leftcount = oRes.leftResetCount; + this._SingleTowerData.sweepfloor = oRes.infos[0].sweepFloor; + this._SingleTowerData.sweepreqtime = Time.time; + this._SingleTowerData.refreshcount = 5 - oRes.infos[0].refreshCount; + this._SingleTowerData.firstpassreward = new List(); + for (int i = 0; i < oRes.infos[0].gotFloorFirstPassReward.Count; i++) + { + this._SingleTowerData.firstpassreward.Add(oRes.infos[0].gotFloorFirstPassReward[i]); + } + } + bool flag2 = this.TeamTowerSingleView != null && this.TeamTowerSingleView.IsVisible(); + if (flag2) + { + this.TeamTowerSingleView.OnRefreshTopInfo(); + } + XActivityDocument.Doc.OnGetDayCount(); + } + + public void SweepSingleTower() + { + RpcC2G_SweepTower rpcC2G_SweepTower = new RpcC2G_SweepTower(); + rpcC2G_SweepTower.oArg.hardLevel = 1; + XSingleton.singleton.Send(rpcC2G_SweepTower); + } + + public void SweepSingleTowerRes(SweepTowerArg oArg, SweepTowerRes oRes) + { + bool flag = this.TeamTowerSingleView != null && this.TeamTowerSingleView.IsVisible(); + if (flag) + { + this.TeamTowerSingleView.OnStartSweepRes(oArg, oRes.leftTime); + } + } + + public void ResetSingleTower() + { + RpcC2G_ResetTower rpcC2G_ResetTower = new RpcC2G_ResetTower(); + rpcC2G_ResetTower.oArg.hardLevel = 1; + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.Send(rpcC2G_ResetTower); + } + + public void ResetSingleTowerRes() + { + bool flag = this.TeamTowerSingleView != null && this.TeamTowerSingleView.IsVisible(); + if (flag) + { + this.TeamTowerSingleView.OnResetSweepRes(); + } + } + + public void RefreshSingleSweepReward() + { + RpcC2G_RefreshSweepReward rpc = new RpcC2G_RefreshSweepReward(); + XSingleton.singleton.Send(rpc); + } + + public void RefreshSingleSweepRewardRes(ErrorCode code, int result) + { + bool flag = this.TeamTowerSingleView != null && this.TeamTowerSingleView.IsVisible(); + if (flag) + { + this.TeamTowerSingleView.OnStartPlayRefreshResultEffect(code, result); + } + } + + public void GetSweepSingleTowerReward() + { + RpcC2G_GetSweepTowerReward rpc = new RpcC2G_GetSweepTowerReward(); + XSingleton.singleton.Send(rpc); + } + + public void GetSweepSingleTowerRewardRes() + { + bool flag = this.TeamTowerSingleView != null && this.TeamTowerSingleView.IsVisible(); + if (flag) + { + this.TeamTowerSingleView.OnGotReward(); + } + } + + public void GetFirstPassReward(int floor) + { + RpcC2G_GetTowerFirstPassReward rpcC2G_GetTowerFirstPassReward = new RpcC2G_GetTowerFirstPassReward(); + rpcC2G_GetTowerFirstPassReward.oArg.floor = floor; + XSingleton.singleton.Send(rpcC2G_GetTowerFirstPassReward); + } + + public void GetFirstPassRewardRes(ErrorCode error) + { + bool flag = this.TeamTowerSingleView != null && this.TeamTowerSingleView.IsVisible(); + if (flag) + { + this.TeamTowerSingleView.OnGetFirstPassRewardRes(error); + } + } + + public void OnAppPaused() + { + bool flag = this.TeamTowerSingleView != null && this.TeamTowerSingleView.IsVisible(); + if (flag) + { + this.TeamTowerSingleView.OnRefreshReverseCount(); + } + } + + public bool IsPveAttrModifyScene(uint sceneID) + { + return XExpeditionDocument._PveAttrTable.GetBySceneID(sceneID) != null; + } + + public void TryShowPveAttrTips(uint expID) + { + uint sceneIDByExpID = this.GetSceneIDByExpID((int)expID); + bool flag = this.IsPveAttrModifyScene(sceneIDByExpID); + if (flag) + { + DlgBase.singleton.ShowTips(XOptionsDefine.OD_NO_REFINED_CONFIRM, "PveAttrModifyTips"); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XExpeditionDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XExpeditionDocument.cs.meta new file mode 100644 index 00000000..70fb5365 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XExpeditionDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 367f600da58097b4fb5742fbb582b16a +timeCreated: 1611403562 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFPStrengthenDocument.cs b/Client/Assets/Scripts/XMainClient/XFPStrengthenDocument.cs new file mode 100644 index 00000000..c1c4b30f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFPStrengthenDocument.cs @@ -0,0 +1,677 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFPStrengthenDocument : XDocComponent + { + public override uint ID + { + get + { + return XFPStrengthenDocument.uuID; + } + } + + public XFpStrengthenView StrengthenView + { + get + { + return this._XFpStrengthenView; + } + set + { + this._XFpStrengthenView = value; + } + } + + public List StrengthAuxDataList + { + get + { + bool flag = this._StrengthAuxDataList == null; + if (flag) + { + this._StrengthAuxDataList = new List(); + for (int i = 0; i < XFPStrengthenDocument.StrengthenReader.Table.Length; i++) + { + FpStrengthNew.RowData rowData = XFPStrengthenDocument.StrengthenReader.Table[i]; + bool flag2 = rowData == null; + if (!flag2) + { + bool flag3 = rowData.Bqtype == 0; + if (flag3) + { + StrengthAuxData item = new StrengthAuxData(rowData); + this._StrengthAuxDataList.Add(item); + } + } + } + } + return this._StrengthAuxDataList; + } + } + + public int ShowUpSprNum + { + get + { + bool flag = this.m_showUpSprNum == -1; + if (flag) + { + this.m_showUpSprNum = XSingleton.singleton.GetInt("ShowUpSprNum"); + } + return this.m_showUpSprNum; + } + } + + public Dictionary> NewDic + { + get + { + bool flag = this.m_newDic == null; + if (flag) + { + this.m_newDic = new Dictionary>(); + bool flag2 = XFPStrengthenDocument.StrengthenReader != null; + if (flag2) + { + for (int i = 0; i < XFPStrengthenDocument.StrengthenReader.Table.Length; i++) + { + FpStrengthNew.RowData rowData = XFPStrengthenDocument.StrengthenReader.Table[i]; + bool flag3 = rowData != null; + if (flag3) + { + bool flag4 = !this.m_newDic.ContainsKey(rowData.BQID); + if (flag4) + { + this.m_newDic.Add(rowData.BQID, new XTuple(rowData.Bqtype, false)); + } + } + } + } + } + return this.m_newDic; + } + } + + public bool IsHadRedot + { + get + { + return this.m_isHadRedot; + } + set + { + bool flag = this.m_isHadRedot != value; + if (flag) + { + this.m_isHadRedot = value; + XSingleton.singleton.UpdateRedPointOnHallUI(XSysDefine.XSys_Strong); + } + } + } + + public bool NeedUp { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XFPStrengthenDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static FpStrengthNew StrengthenReader = new FpStrengthNew(); + + public static FpStrengthenTable StrengthenReader1 = new FpStrengthenTable(); + + private static RecommendFightNum _RecommendFightReader = new RecommendFightNum(); + + private XFpStrengthenView _XFpStrengthenView = null; + + private int[] _totalFightRateNums; + + private string[] _totalFightRateDes; + + private int[] _partFightRateNums; + + private string[] _partFightRateDes; + + private List _StrengthAuxDataList = null; + + private int m_showUpSprNum = -1; + + private bool m_sendMesIsBack = true; + + private bool _dataIsInit = false; + + private Dictionary> m_newDic; + + public Dictionary TabNewDic = new Dictionary(); + + private bool m_isHadRedot = false; + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AttributeChange, new XComponent.XEventHandler(this.OnAttributeChange)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = !this.m_sendMesIsBack; + if (flag) + { + this.m_sendMesIsBack = true; + this.RequsetFightNum(); + } + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XFPStrengthenDocument.AsyncLoader.AddTask("Table/FpStrengthNew", XFPStrengthenDocument.StrengthenReader, false); + XFPStrengthenDocument.AsyncLoader.AddTask("Table/BQ", XFPStrengthenDocument.StrengthenReader1, false); + XFPStrengthenDocument.AsyncLoader.AddTask("Table/RecommendFightNum", XFPStrengthenDocument._RecommendFightReader, false); + XFPStrengthenDocument.AsyncLoader.Execute(callback); + } + + public FpStrengthenTable.RowData GetStrengthData(int id) + { + return XFPStrengthenDocument.StrengthenReader1.GetByBQID(id); + } + + public RecommendFightNum.RowData GetRecommendFightData(XSysDefine type, int level = -1) + { + bool flag = level == -1; + if (flag) + { + bool flag2 = XSingleton.singleton.XPlayerData != null; + if (flag2) + { + level = (int)XSingleton.singleton.XPlayerData.Level; + } + else + { + XSingleton.singleton.AddErrorLog("XAttributeMgr.singleton.XPlayerData is null", null, null, null, null, null); + } + } + bool flag3 = type == XSysDefine.XSys_None; + if (flag3) + { + for (int i = 0; i < XFPStrengthenDocument._RecommendFightReader.Table.Length; i++) + { + bool flag4 = (ulong)XFPStrengthenDocument._RecommendFightReader.Table[i].Level == (ulong)((long)level); + if (flag4) + { + return XFPStrengthenDocument._RecommendFightReader.Table[i]; + } + } + } + else + { + for (int j = 0; j < XFPStrengthenDocument._RecommendFightReader.Table.Length; j++) + { + bool flag5 = (ulong)XFPStrengthenDocument._RecommendFightReader.Table[j].Level == (ulong)((long)level) && XFPStrengthenDocument._RecommendFightReader.Table[j].SystemID == (uint)type; + if (flag5) + { + return XFPStrengthenDocument._RecommendFightReader.Table[j]; + } + } + } + return null; + } + + public void RequsetFightNum() + { + RpcC2G_QueryPowerPoint rpc = new RpcC2G_QueryPowerPoint(); + XSingleton.singleton.Send(rpc); + this.m_sendMesIsBack = false; + } + + public void RefreshUi(QueryPowerPointRes oRes) + { + this.m_sendMesIsBack = true; + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag2 = oRes.bqID == null || oRes.ppt == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("the sever gived data is null!", null, null, null, null, null); + } + else + { + for (int i = 0; i < oRes.bqID.Count; i++) + { + StrengthAuxData strengthAuxDataById = this.GetStrengthAuxDataById(oRes.bqID[i]); + bool flag3 = strengthAuxDataById != null; + if (flag3) + { + strengthAuxDataById.FightNum = (uint)oRes.ppt[i]; + strengthAuxDataById.FightPercent = strengthAuxDataById.GetFightPercent(this.GetFightNumBySysType((XSysDefine)strengthAuxDataById.StrengthenData.BQSystem)); + } + } + this.AuxSortCompare(); + this.SetNeedUp(); + this.SetHadRedot(); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshUi(true); + } + } + } + } + + private void AuxSortCompare() + { + for (int i = 0; i < this.StrengthAuxDataList.Count - 1; i++) + { + for (int j = i + 1; j < this.StrengthAuxDataList.Count; j++) + { + bool flag = this.StrengthAuxDataList[i].FightPercent > this.StrengthAuxDataList[j].FightPercent; + if (flag) + { + StrengthAuxData value = this.StrengthAuxDataList[j]; + this.StrengthAuxDataList[j] = this.StrengthAuxDataList[i]; + this.StrengthAuxDataList[i] = value; + } + } + } + } + + private StrengthAuxData GetStrengthAuxDataById(uint BQId) + { + bool flag = this.StrengthAuxDataList == null || this.StrengthAuxDataList.Count == 0; + StrengthAuxData result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < this.StrengthAuxDataList.Count; i++) + { + bool flag2 = (long)this.StrengthAuxDataList[i].Id == (long)((ulong)BQId); + if (flag2) + { + return this.StrengthAuxDataList[i]; + } + } + result = null; + } + return result; + } + + public int GetFightNumBySysType(XSysDefine type) + { + RecommendFightNum.RowData recommendFightData = this.GetRecommendFightData(type, -1); + bool flag = recommendFightData == null; + int result; + if (flag) + { + XSingleton.singleton.AddGreenLog("the data is not find ==", type.ToString(), null, null, null, null); + result = 1; + } + else + { + result = (int)recommendFightData.Point; + } + return result; + } + + public List GetStrengthByType(int type) + { + List list = new List(); + for (int i = 0; i < XFPStrengthenDocument.StrengthenReader.Table.Length; i++) + { + FpStrengthNew.RowData rowData = XFPStrengthenDocument.StrengthenReader.Table[i]; + bool flag = rowData.Bqtype == type; + if (flag) + { + bool flag2 = XSingleton.singleton.IsSystemOpened((XSysDefine)rowData.BQSystem) && (long)rowData.ShowLevel <= (long)((ulong)XSingleton.singleton.XPlayerData.Level); + bool flag3 = flag2; + if (flag3) + { + list.Add(rowData); + } + } + } + bool flag4 = type != 0; + if (flag4) + { + list.Sort(new Comparison(this.DataCompare)); + } + return list; + } + + private int DataCompare(FpStrengthNew.RowData left, FpStrengthNew.RowData right) + { + bool flag = left.StarNum > right.StarNum; + int result; + if (flag) + { + result = -1; + } + else + { + result = 1; + } + return result; + } + + public int GetFuncNumByType(int type) + { + int num = 0; + for (int i = 0; i < XFPStrengthenDocument.StrengthenReader.Table.Length; i++) + { + FpStrengthNew.RowData rowData = XFPStrengthenDocument.StrengthenReader.Table[i]; + bool flag = rowData.Bqtype == type && XSingleton.singleton.IsSystemOpened((XSysDefine)rowData.BQSystem) && (long)rowData.ShowLevel <= (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag) + { + num++; + } + } + return num; + } + + public FpStrengthenTable.RowData SearchBySysID(XSysDefine sys) + { + for (int i = 0; i < XFPStrengthenDocument.StrengthenReader1.Table.Length; i++) + { + FpStrengthenTable.RowData rowData = XFPStrengthenDocument.StrengthenReader1.Table[i]; + bool flag = rowData.BQSystem == (int)sys; + if (flag) + { + return rowData; + } + } + return null; + } + + public List GetBQByType(int type) + { + List list = new List(); + for (int i = 0; i < XFPStrengthenDocument.StrengthenReader1.Table.Length; i++) + { + FpStrengthenTable.RowData rowData = XFPStrengthenDocument.StrengthenReader1.Table[i]; + bool flag = rowData.Bqtype == type; + if (flag) + { + bool flag2 = XSingleton.singleton.IsSystemOpened((XSysDefine)rowData.BQSystem) && (long)rowData.ShowLevel <= (long)((ulong)XSingleton.singleton.XPlayerData.Level); + bool flag3 = flag2; + if (flag3) + { + list.Add(rowData); + } + } + } + return list; + } + + public void TryShowBrief() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = !specificDocument.bInTeam; + if (flag) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_Strong_Brief, EXStage.Hall); + } + } + + public string GetTotalFightRateDes(int fightPercent) + { + this.InitStringData(); + string text = ""; + bool flag = this._totalFightRateDes == null || this._totalFightRateNums == null; + string result; + if (flag) + { + XSingleton.singleton.AddErrorLog("error,plase check Strength_TotalFight_Rate(gb or stringTab)", null, null, null, null, null); + result = text; + } + else + { + int index = this.GetIndex((double)fightPercent, this._totalFightRateNums); + bool flag2 = this._totalFightRateDes.Length >= index; + if (flag2) + { + text = this._totalFightRateDes[index]; + } + else + { + XSingleton.singleton.AddErrorLog("err err err!", null, null, null, null, null); + } + result = text; + } + return result; + } + + public string GetPartFightRateDes(double fightPercent) + { + this.InitStringData(); + string text = ""; + bool flag = this._partFightRateDes == null || this._partFightRateNums == null; + string result; + if (flag) + { + XSingleton.singleton.AddErrorLog("error,plase check Strength_TotalFight_Rate(gb or stringTab)", null, null, null, null, null); + result = text; + } + else + { + int index = this.GetIndex(fightPercent, this._partFightRateNums); + bool flag2 = this._partFightRateDes.Length >= index; + if (flag2) + { + bool flag3 = index == 0; + if (flag3) + { + text = XSingleton.singleton.StringCombine("[ff4343]", this._partFightRateDes[index], "[-]"); + } + else + { + bool flag4 = index == 1; + if (flag4) + { + text = XSingleton.singleton.StringCombine("[6df5ff]", this._partFightRateDes[index], "[-]"); + } + else + { + bool flag5 = index == 2; + if (flag5) + { + text = XSingleton.singleton.StringCombine("[4ef23d]", this._partFightRateDes[index], "[-]"); + } + else + { + bool flag6 = index == 3; + if (flag6) + { + text = XSingleton.singleton.StringCombine("[fff640]", this._partFightRateDes[index], "[-]"); + } + else + { + text = this._partFightRateDes[index]; + } + } + } + } + } + else + { + XSingleton.singleton.AddErrorLog("err err err", null, null, null, null, null); + } + result = text; + } + return result; + } + + private int GetIndex(double fightPercent, int[] array) + { + bool flag = array == null || array.Length == 0; + int result; + if (flag) + { + result = 0; + } + else + { + for (int i = 0; i < array.Length; i++) + { + bool flag2 = fightPercent < (double)array[i]; + if (flag2) + { + return i; + } + } + result = array.Length; + } + return result; + } + + private void InitStringData() + { + bool dataIsInit = this._dataIsInit; + if (!dataIsInit) + { + this._totalFightRateDes = XStringDefineProxy.GetString("Strength_TotalFight_Rate").Split(new char[] + { + '|' + }); + this._partFightRateDes = XStringDefineProxy.GetString("Strength_ParticalFight_Rate").Split(new char[] + { + '|' + }); + this._totalFightRateNums = XSingleton.singleton.GetIntList("Strength_TotalFight_Rate").ToArray(); + this._partFightRateNums = XSingleton.singleton.GetIntList("Strength_ParticalFight_Rate").ToArray(); + this._dataIsInit = true; + } + } + + private bool OnAttributeChange(XEventArgs e) + { + XAttrChangeEventArgs xattrChangeEventArgs = e as XAttrChangeEventArgs; + XAttributeDefine attrKey = xattrChangeEventArgs.AttrKey; + if (attrKey == XAttributeDefine.XAttr_POWER_POINT_Basic) + { + this.RequsetFightNum(); + } + return true; + } + + public bool GetNewStatus(int BqId) + { + bool flag = this.NewDic.ContainsKey(BqId); + return flag && this.NewDic[BqId].Item2; + } + + public bool GetTabNew(int BqType) + { + bool flag = this.TabNewDic.ContainsKey(BqType); + return flag && this.TabNewDic[BqType]; + } + + public void SetNew(List sysIds) + { + bool flag = sysIds == null; + if (!flag) + { + for (int i = 0; i < sysIds.Count; i++) + { + this.SetNew(sysIds[i]); + } + } + } + + public void CancleNew(int bqType) + { + bool flag = this.TabNewDic.ContainsKey(bqType); + if (flag) + { + this.TabNewDic.Remove(bqType); + foreach (KeyValuePair> keyValuePair in this.NewDic) + { + bool flag2 = keyValuePair.Value.Item1 == bqType; + if (flag2) + { + keyValuePair.Value.Item2 = false; + } + } + } + } + + private void SetNew(uint sysId) + { + bool flag = XFPStrengthenDocument.StrengthenReader == null; + if (!flag) + { + for (int i = 0; i < XFPStrengthenDocument.StrengthenReader.Table.Length; i++) + { + FpStrengthNew.RowData rowData = XFPStrengthenDocument.StrengthenReader.Table[i]; + bool flag2 = rowData == null; + if (!flag2) + { + bool flag3 = (long)rowData.BQSystem == (long)((ulong)sysId); + if (flag3) + { + bool flag4 = this.NewDic.ContainsKey(rowData.BQID); + if (flag4) + { + this.NewDic[rowData.BQID].Item2 = true; + } + bool flag5 = !this.TabNewDic.ContainsKey(rowData.Bqtype); + if (flag5) + { + this.TabNewDic.Add(rowData.Bqtype, true); + } + } + } + } + } + } + + private void SetNeedUp() + { + this.NeedUp = false; + for (int i = 0; i < this.StrengthAuxDataList.Count; i++) + { + bool flag = this.StrengthAuxDataList[i].FightPercent < (double)this.ShowUpSprNum; + if (flag) + { + this.NeedUp = true; + break; + } + } + } + + private void SetHadRedot() + { + bool flag = this.NeedUp; + bool flag2 = !flag; + if (flag2) + { + foreach (KeyValuePair> keyValuePair in this.NewDic) + { + bool item = keyValuePair.Value.Item2; + if (item) + { + flag = true; + break; + } + } + } + this.IsHadRedot = flag; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFPStrengthenDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFPStrengthenDocument.cs.meta new file mode 100644 index 00000000..8d20c9f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFPStrengthenDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: be28356136dc91e43a8a41d288339407 +timeCreated: 1611404459 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFadeInEventArgs.cs b/Client/Assets/Scripts/XMainClient/XFadeInEventArgs.cs new file mode 100644 index 00000000..9d84d70b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFadeInEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XFadeInEventArgs : XEventArgs + { + public float In = 0f; + + public XFadeInEventArgs() + { + this._eDefine = XEventDefine.XEvent_FadeIn; + } + + public override void Recycle() + { + base.Recycle(); + this.In = 0f; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFadeInEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XFadeInEventArgs.cs.meta new file mode 100644 index 00000000..84f73599 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFadeInEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85066fe64bd6ce7459c7c3bb0403220d +timeCreated: 1611404051 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFadeOutEventArgs.cs b/Client/Assets/Scripts/XMainClient/XFadeOutEventArgs.cs new file mode 100644 index 00000000..166d7d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFadeOutEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XFadeOutEventArgs : XEventArgs + { + public float Out = 0f; + + public XFadeOutEventArgs() + { + this._eDefine = XEventDefine.XEvent_FadeOut; + } + + public override void Recycle() + { + base.Recycle(); + this.Out = 0f; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFadeOutEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XFadeOutEventArgs.cs.meta new file mode 100644 index 00000000..94174159 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFadeOutEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe1d989ec3fd6d44e862daaab41b7f00 +timeCreated: 1611404939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFakeTouch.cs b/Client/Assets/Scripts/XMainClient/XFakeTouch.cs new file mode 100644 index 00000000..d0c9b355 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFakeTouch.cs @@ -0,0 +1,22 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal struct XFakeTouch + { + public Vector2 deltaPosition { get; set; } + + public float deltaTime { get; set; } + + public int fingerId { get; set; } + + public TouchPhase phase { get; set; } + + public Vector2 position { get; set; } + + public Vector2 rawPosition { get; set; } + + public int tapCount { get; set; } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFakeTouch.cs.meta b/Client/Assets/Scripts/XMainClient/XFakeTouch.cs.meta new file mode 100644 index 00000000..4dd1ef85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFakeTouch.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 689bf2d784f85e84e9f3bf40be6b8a7d +timeCreated: 1611403883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFashionDocument.cs b/Client/Assets/Scripts/XMainClient/XFashionDocument.cs new file mode 100644 index 00000000..ddfea0ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionDocument.cs @@ -0,0 +1,1692 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFashionDocument : XDocComponent + { + public override uint ID + { + get + { + return XFashionDocument.uuID; + } + } + + public List FashionBag { get; set; } + + public List FashionOnBody { get; set; } + + public List Collections { get; set; } + + public List NewFashionList { get; set; } + + public bool RedPoint + { + get + { + return this.CalRedPoint(); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FashionDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public FashionBagHandler FashionDlg; + + private static FashionSuitTable _fashionSuitTable = new FashionSuitTable(); + + private static FashionComposeTable _fashionComposeTable = new FashionComposeTable(); + + private static FashionEffectTable _fashionEffectTable = new FashionEffectTable(); + + private static FashionEnhanceFx _fashionEnhanceFx = new FashionEnhanceFx(); + + protected Dictionary FashionSuitInfo = new Dictionary(); + + protected Dictionary CachedFashionRedpoint = new Dictionary(); + + private List sendUids = new List(); + + private List m_suitTemps = new List(); + + public int MAX_QUALITY = 6; + + public int fashion_filter = -1; + + private string[] QUALITY_NAME = new string[] + { + "D", + "C", + "B", + "A", + "S", + "L" + }; + + protected bool _bShouldUpdateRedPoints = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XFashionDocument.AsyncLoader.AddTask("Table/FashionSuit", XFashionDocument._fashionSuitTable, false); + XFashionDocument.AsyncLoader.AddTask("Table/FashionCompose", XFashionDocument._fashionComposeTable, false); + XFashionDocument.AsyncLoader.AddTask("Table/FashionEffect", XFashionDocument._fashionEffectTable, false); + XFashionDocument.AsyncLoader.AddTask("Table/FashionFx", XFashionDocument._fashionEnhanceFx, false); + XFashionDocument.AsyncLoader.Execute(callback); + } + + public static bool IsFashionBySuitID(int suitID) + { + return XFashionDocument._fashionSuitTable.GetBySuitID(suitID) != null; + } + + public static bool IsTargetPart(int itemid, FashionPosition pos) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(itemid); + bool flag = fashionConf == null; + return !flag && XFastEnumIntEqualityComparer.ToInt(pos) == (int)fashionConf.EquipPos; + } + + public static bool TryGetFashionEnhanceFx(int itemid, uint prof, out string[] strFx) + { + strFx = null; + prof %= 10u; + bool flag = itemid == 0; + bool result; + if (flag) + { + result = false; + } + else + { + FashionEnhanceFx.RowData byItemID = XFashionDocument._fashionEnhanceFx.GetByItemID(itemid); + bool flag2 = byItemID == null; + if (flag2) + { + result = false; + } + else + { + switch (prof) + { + case 1u: + strFx = byItemID.Fx1; + break; + case 2u: + strFx = byItemID.Fx2; + break; + case 3u: + strFx = byItemID.Fx3; + break; + case 4u: + strFx = byItemID.Fx4; + break; + case 5u: + strFx = byItemID.Fx5; + break; + case 6u: + strFx = byItemID.Fx6; + break; + case 7u: + strFx = byItemID.Fx7; + break; + case 8u: + strFx = byItemID.Fx8; + break; + } + result = true; + } + } + return result; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public void UpdateRedPoints() + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Fashion_Fashion, true); + } + + protected ClientFashionData ConvertClientFashionData(FashionData d) + { + return new ClientFashionData + { + itemID = d.itemID, + level = d.level, + timeleft = (double)((d.timeleft == uint.MaxValue) ? -1f : ((float)d.timeleft)), + uid = d.uid + }; + } + + public void Init(List fashions, List fashiononbody, List collectionList) + { + this.FashionBag = new List(); + this.FashionOnBody = new List(); + this.Collections = new List(); + this.NewFashionList = new List(); + this.FashionSuitInfo.Clear(); + for (int i = 0; i < XFashionDocument._fashionSuitTable.Table.Length; i++) + { + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(XFashionDocument._fashionSuitTable.Table[i].SuitID); + bool flag = bySuitID.FashionID != null; + if (flag) + { + for (int j = 0; j < bySuitID.FashionID.Length; j++) + { + this.FashionSuitInfo.Add(bySuitID.FashionID[j], bySuitID.SuitID); + } + } + } + bool flag2 = fashions == null || fashiononbody == null; + if (!flag2) + { + for (int k = 0; k < fashions.Count; k++) + { + this.FashionBag.Add(this.ConvertClientFashionData(fashions[k])); + } + for (int l = 0; l < fashiononbody.Count; l++) + { + this.FashionOnBody.Add(this.ConvertClientFashionData(fashiononbody[l])); + } + for (int m = 0; m < collectionList.Count; m++) + { + this.Collections.Add(collectionList[m]); + } + } + } + + public void UpdateFashionData(FashionChangedData data) + { + switch (data.changeType) + { + case FashionNTFType.ADD_FASHION: + { + XAddItemEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + for (int i = 0; i < data.fashion.Count; i++) + { + this.FashionBag.Add(this.ConvertClientFashionData(data.fashion[i])); + bool flag = !this.Collections.Contains(data.fashion[i].itemID); + if (flag) + { + this.Collections.Add(data.fashion[i].itemID); + } + XItem item = XBagDocument.MakeFasionItemById(data.fashion[i].itemID); + @event.items.Add(item); + } + XSingleton.singleton.FireEvent(@event); + XSingleton.singleton.Doc.XBagDoc.FinishItemChange(); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Fashion_Fashion, true); + break; + } + case FashionNTFType.UPGRADE_FASHION: + for (int j = 0; j < data.fashion.Count; j++) + { + ClientFashionData clientFashionData = this.FindFashion(data.fashion[j].uid); + bool flag2 = clientFashionData != null; + if (flag2) + { + clientFashionData.timeleft = data.fashion[0].timeleft; + } + } + break; + case FashionNTFType.WEAR_FASHION: + { + for (int k = 0; k < data.fashion.Count; k++) + { + int pos = (int)data.fashion[k].pos; + ClientFashionData clientFashionData2 = this.FashionOnBody[pos]; + this.FashionOnBody[pos] = this.ConvertClientFashionData(data.fashion[k]); + bool flag3 = this.IsValidFashionData(clientFashionData2); + if (flag3) + { + this.FashionBag.Add(clientFashionData2); + } + for (int l = 0; l < this.FashionBag.Count; l++) + { + bool flag4 = this.FashionBag[l].uid == data.fashion[k].uid; + if (flag4) + { + this.FashionBag.RemoveAt(l); + break; + } + } + } + bool flag5 = this.FashionDlg != null && this.FashionDlg.IsVisible(); + if (flag5) + { + this.FashionDlg.ShowFashions(); + this.FashionDlg.UpdateBag(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Fashion_Fashion, true); + break; + } + case FashionNTFType.DELBODY_FASHION: + for (int m = 0; m < data.fashion.Count; m++) + { + ulong uid = data.fashion[m].uid; + ClientFashionData clientFashionData3 = this.FindFashion(uid); + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)clientFashionData3.itemID); + bool flag6 = fashionConf != null; + if (flag6) + { + this.FashionOnBody[(int)fashionConf.EquipPos] = new ClientFashionData(); + bool flag7 = this.FashionDlg != null && this.FashionDlg.IsVisible(); + if (flag7) + { + this.FashionDlg.OnBodyFashionDisappear((int)fashionConf.EquipPos); + } + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)clientFashionData3.itemID); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("FASHION_DISAPPEAR"), XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)), "fece00"); + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Fashion_Fashion, true); + break; + case FashionNTFType.DELBAG_FASHION: + for (int n = 0; n < data.fashion.Count; n++) + { + ulong uid2 = data.fashion[n].uid; + ClientFashionData clientFashionData4 = this.FindFashion(uid2); + bool flag8 = clientFashionData4 != null; + if (flag8) + { + this.FashionBag.Remove(clientFashionData4); + bool flag9 = this.FashionDlg != null && this.FashionDlg.IsVisible(); + if (flag9) + { + this.FashionDlg.OnBagFashionDisappear(clientFashionData4.uid); + } + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Fashion_Fashion, true); + break; + } + } + + public bool IsValidFashionData(ClientFashionData d) + { + return d.itemID > 0u && d.uid > 0UL; + } + + public FashionSuitTable.RowData GetSuitData(int suitID) + { + return XFashionDocument._fashionSuitTable.GetBySuitID(suitID); + } + + public uint GetFashionFragment(int fashionID) + { + return 0u; + } + + public SeqListRef GetFashionAttr(int fashionID, int level) + { + for (int i = 0; i < XFashionDocument._fashionComposeTable.Table.Length; i++) + { + bool flag = XFashionDocument._fashionComposeTable.Table[i].FashionID == fashionID && XFashionDocument._fashionComposeTable.Table[i].FashionLevel == level; + if (flag) + { + return XFashionDocument._fashionComposeTable.Table[i].Attributes; + } + } + return default(SeqListRef); + } + + public bool OwnFashion(int fashionID) + { + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + bool flag = (ulong)this.FashionOnBody[i].itemID == (ulong)((long)fashionID); + if (flag) + { + return true; + } + } + for (int j = 0; j < this.FashionBag.Count; j++) + { + bool flag2 = (ulong)this.FashionBag[j].itemID == (ulong)((long)fashionID); + if (flag2) + { + return true; + } + } + return false; + } + + public ClientFashionData FindFashionInBag(int fashionID) + { + bool flag = this.FashionBag == null || this.FashionOnBody == null; + ClientFashionData result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < this.FashionBag.Count; i++) + { + bool flag2 = (ulong)this.FashionBag[i].itemID == (ulong)((long)fashionID); + if (flag2) + { + return this.FashionBag[i]; + } + } + result = null; + } + return result; + } + + public ClientFashionData FindFashionLimitTimeFirst(int fashionID) + { + bool flag = this.FashionBag == null || this.FashionOnBody == null; + ClientFashionData result; + if (flag) + { + result = null; + } + else + { + ClientFashionData clientFashionData = null; + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + bool flag2 = (ulong)this.FashionOnBody[i].itemID == (ulong)((long)fashionID); + if (flag2) + { + clientFashionData = this.FashionOnBody[i]; + } + } + bool flag3 = clientFashionData == null; + if (flag3) + { + for (int j = 0; j < this.FashionBag.Count; j++) + { + bool flag4 = (ulong)this.FashionBag[j].itemID == (ulong)((long)fashionID) && this.FashionBag[j].timeleft > 0.0; + if (flag4) + { + return this.FashionBag[j]; + } + bool flag5 = (ulong)this.FashionBag[j].itemID == (ulong)((long)fashionID) && this.FashionBag[j].timeleft == -1.0; + if (flag5) + { + clientFashionData = this.FashionBag[j]; + } + } + } + result = clientFashionData; + } + return result; + } + + public ClientFashionData FindFashionByPosInBody(int pos) + { + bool flag = this.FashionBag == null || this.FashionOnBody == null; + ClientFashionData result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)this.FashionOnBody[i].itemID); + bool flag2 = fashionConf != null && (int)fashionConf.EquipPos == pos; + if (flag2) + { + return this.FashionOnBody[i]; + } + } + result = null; + } + return result; + } + + public bool TryFindFashionUidInBody(int fashionID, out ulong uid) + { + uid = 0UL; + ClientFashionData clientFashionData = this.FindFashionInBody(fashionID); + bool flag = clientFashionData != null; + bool result; + if (flag) + { + uid = clientFashionData.uid; + result = true; + } + else + { + result = false; + } + return result; + } + + public ClientFashionData FindFashionInBody(int fashionID) + { + bool flag = this.FashionBag == null || this.FashionOnBody == null; + ClientFashionData result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + bool flag2 = (ulong)this.FashionOnBody[i].itemID == (ulong)((long)fashionID); + if (flag2) + { + return this.FashionOnBody[i]; + } + } + result = null; + } + return result; + } + + public bool TryFindFashion(ulong uid, out ClientFashionData fishionData) + { + fishionData = this.FindFashion(uid); + return fishionData != null; + } + + public ClientFashionData FindFashion(ulong uid) + { + bool flag = this.FashionBag == null || this.FashionOnBody == null; + ClientFashionData result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + bool flag2 = this.FashionOnBody[i].uid == uid; + if (flag2) + { + return this.FashionOnBody[i]; + } + } + for (int j = 0; j < this.FashionBag.Count; j++) + { + bool flag3 = this.FashionBag[j].uid == uid; + if (flag3) + { + return this.FashionBag[j]; + } + } + result = null; + } + return result; + } + + public ClientFashionData GetPartFashion(int part) + { + return this.FashionOnBody[part]; + } + + public int GetFashionSuit(int fashionID) + { + int num = 0; + bool flag = this.FashionSuitInfo.TryGetValue((uint)fashionID, out num); + int result; + if (flag) + { + result = num; + } + else + { + result = 0; + } + return result; + } + + public bool IsOverAll(int fashionID) + { + int fashionSuit = this.GetFashionSuit(fashionID); + bool flag = fashionSuit == 0; + bool result; + if (flag) + { + result = false; + } + else + { + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(fashionSuit); + result = (bySuitID != null && bySuitID.OverAll == 1); + } + return result; + } + + public SeqListRef GetSuitPartCountEffect(int suitID, int count) + { + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(suitID); + bool flag = bySuitID == null; + SeqListRef result; + if (flag) + { + result = default(SeqListRef); + } + else + { + switch (count) + { + case 2: + result = bySuitID.Effect2; + break; + case 3: + result = bySuitID.Effect3; + break; + case 4: + result = bySuitID.Effect4; + break; + case 5: + result = bySuitID.Effect5; + break; + case 6: + result = bySuitID.Effect6; + break; + case 7: + result = bySuitID.Effect7; + break; + default: + result = default(SeqListRef); + break; + } + } + return result; + } + + protected FashionEffectTable.RowData GetFashionEffectData(uint quality, bool IsThreeSuit) + { + for (int i = 0; i < XFashionDocument._fashionEffectTable.Table.Length; i++) + { + bool flag = XFashionDocument._fashionEffectTable.Table[i].Quality == quality && XFashionDocument._fashionEffectTable.Table[i].IsThreeSuit == IsThreeSuit; + if (flag) + { + return XFashionDocument._fashionEffectTable.Table[i]; + } + } + return null; + } + + public SeqListRef GetQualityEffect(int quality, int count, bool IsThreeSuit) + { + FashionEffectTable.RowData fashionEffectData = this.GetFashionEffectData((uint)quality, IsThreeSuit); + bool flag = fashionEffectData == null; + SeqListRef result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fashion Quality config not found : " + (uint)quality, null, null, null, null, null); + result = default(SeqListRef); + } + else + { + switch (count) + { + case 2: + result = fashionEffectData.Effect2; + break; + case 3: + result = fashionEffectData.Effect3; + break; + case 4: + result = fashionEffectData.Effect4; + break; + case 5: + result = fashionEffectData.Effect5; + break; + case 6: + result = fashionEffectData.Effect6; + break; + case 7: + result = fashionEffectData.Effect7; + break; + default: + result = default(SeqListRef); + break; + } + } + return result; + } + + public Dictionary GetTotalQualityCountOnBody(bool IsThreeSuit) + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.FashionOnBody[i].itemID); + bool flag = itemConf == null; + if (!flag) + { + bool flag2 = IsThreeSuit ^ this.IsFashionThreeSpecial((int)this.FashionOnBody[i].itemID); + if (!flag2) + { + bool flag3 = IsThreeSuit && this.GetFashionSuit((int)this.FashionOnBody[i].itemID) == 0; + if (!flag3) + { + bool flag4 = dictionary.ContainsKey((int)itemConf.ItemQuality); + if (flag4) + { + Dictionary dictionary2 = dictionary; + int itemQuality = (int)itemConf.ItemQuality; + dictionary2[itemQuality] += 1u; + } + else + { + dictionary.Add((int)itemConf.ItemQuality, 1u); + } + } + } + } + } + return dictionary; + } + + public Dictionary GetTotalQualityCount(List fashionList, bool IsThreeSuit) + { + Dictionary dictionary = new Dictionary(); + bool flag = fashionList == null; + Dictionary result; + if (flag) + { + result = dictionary; + } + else + { + for (int i = 0; i < fashionList.Count; i++) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)fashionList[i]); + bool flag2 = itemConf == null; + if (!flag2) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)fashionList[i]); + bool flag3 = fashionConf == null; + if (!flag3) + { + bool flag4 = IsThreeSuit ^ this.IsFashionThreeSpecial((int)fashionList[i]); + if (!flag4) + { + bool flag5 = IsThreeSuit && this.GetFashionSuit((int)fashionList[i]) == 0; + if (!flag5) + { + bool flag6 = dictionary.ContainsKey((int)itemConf.ItemQuality); + if (flag6) + { + Dictionary dictionary2 = dictionary; + int itemQuality = (int)itemConf.ItemQuality; + dictionary2[itemQuality] += 1u; + } + else + { + dictionary.Add((int)itemConf.ItemQuality, 1u); + } + } + } + } + } + } + result = dictionary; + } + return result; + } + + public bool IsFashionThreeSpecial(int itemID) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(itemID); + bool flag = fashionConf == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fashion ID not exists:" + itemID, null, null, null, null, null); + result = false; + } + else + { + bool flag2 = (int)fashionConf.EquipPos == XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionWings) || (int)fashionConf.EquipPos == XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionTail) || (int)fashionConf.EquipPos == XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionDecal); + result = flag2; + } + return result; + } + + public string GetQualityName(int quality) + { + bool flag = quality < this.QUALITY_NAME.Length; + string result; + if (flag) + { + result = this.QUALITY_NAME[quality]; + } + else + { + result = ""; + } + return result; + } + + public int GetQualityCountOnBody(int quality, bool IsThreeSuit) + { + int num = 0; + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.FashionOnBody[i].itemID); + bool flag = itemConf == null; + if (!flag) + { + bool flag2 = IsThreeSuit ^ this.IsFashionThreeSpecial((int)this.FashionOnBody[i].itemID); + if (!flag2) + { + bool flag3 = IsThreeSuit && this.GetFashionSuit((int)this.FashionOnBody[i].itemID) == 0; + if (!flag3) + { + bool flag4 = quality == (int)itemConf.ItemQuality; + if (flag4) + { + num++; + } + } + } + } + } + return num; + } + + public int GetSuitPartCount(int suitID) + { + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(suitID); + int num = 0; + bool flag = bySuitID.FashionID != null; + if (flag) + { + for (int i = 0; i < bySuitID.FashionID.Length; i++) + { + bool flag2 = this.OwnFashion((int)bySuitID.FashionID[i]); + if (flag2) + { + num++; + } + } + } + return num; + } + + public int GetSuitCollectCount(int suitID) + { + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(suitID); + int num = 0; + bool flag = bySuitID.FashionID != null; + if (flag) + { + for (int i = 0; i < bySuitID.FashionID.Length; i++) + { + bool flag2 = this.HasCollected(bySuitID.FashionID[i]); + if (flag2) + { + num++; + } + } + } + return num; + } + + public SeqListRef GetSuitLevelEffect(int suitID, int level) + { + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(suitID); + switch (level) + { + case 1: + { + bool flag = bySuitID.All1.Count > 0; + if (flag) + { + return bySuitID.All1; + } + break; + } + case 2: + { + bool flag2 = bySuitID.All2.Count > 0; + if (flag2) + { + return bySuitID.All2; + } + break; + } + case 3: + { + bool flag3 = bySuitID.All3.Count > 0; + if (flag3) + { + return bySuitID.All3; + } + break; + } + case 4: + { + bool flag4 = bySuitID.All4.Count > 0; + if (flag4) + { + return bySuitID.All4; + } + break; + } + } + return default(SeqListRef); + } + + public bool IsFashionEquipOn(ulong uid) + { + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + bool flag = this.FashionOnBody[i].uid == uid; + if (flag) + { + return true; + } + } + return false; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.FashionBag.Clear(); + this.FashionOnBody.Clear(); + this.NewFashionList.Clear(); + this.Collections.Clear(); + bool flag = arg.PlayerInfo.fashionrecord != null; + if (flag) + { + for (int i = 0; i < arg.PlayerInfo.fashionrecord.bagfashion.Count; i++) + { + this.FashionBag.Add(this.ConvertClientFashionData(arg.PlayerInfo.fashionrecord.bagfashion[i])); + } + for (int j = 0; j < arg.PlayerInfo.fashionrecord.bodyfashion.Count; j++) + { + this.FashionOnBody.Add(this.ConvertClientFashionData(arg.PlayerInfo.fashionrecord.bodyfashion[j])); + } + for (int k = 0; k < arg.PlayerInfo.fashionrecord.collected.Count; k++) + { + this.Collections.Add(arg.PlayerInfo.fashionrecord.collected[k]); + } + } + } + + public void EquipSuit(int suitID) + { + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(suitID); + bool flag = bySuitID != null && bySuitID.FashionID != null; + if (flag) + { + for (int i = 0; i < bySuitID.FashionID.Length; i++) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = (ulong)bySuitID.FashionID[i]; + rpcC2G_UseItem.oArg.count = 1u; + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.FashionWear); + XSingleton.singleton.Send(rpcC2G_UseItem); + } + } + } + + public int GetEquipCount(int suitID) + { + int num = 0; + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + int fashionSuit = this.GetFashionSuit((int)this.FashionOnBody[i].itemID); + bool flag = fashionSuit == suitID; + if (flag) + { + num++; + } + } + return num; + } + + public int GetSuitTotalCount(int suitID) + { + FashionSuitTable.RowData suitData = this.GetSuitData(suitID); + bool flag = suitData != null && suitData.FashionID != null; + int result; + if (flag) + { + result = suitData.FashionID.Length; + } + else + { + result = 0; + } + return result; + } + + public XItem MakeXItem(ClientFashionData d) + { + XItem xitem = XBagDocument.MakeXItem((int)d.itemID, false); + bool flag = xitem != null; + if (flag) + { + xitem.uid = d.uid; + } + return xitem; + } + + public List GetItem() + { + List list = new List(); + int i = 0; + while (i < this.FashionBag.Count) + { + bool flag = this.fashion_filter >= 0; + if (!flag) + { + goto IL_5A; + } + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)this.FashionBag[i].itemID); + bool flag2 = fashionConf == null || (int)fashionConf.EquipPos != this.fashion_filter; + if (!flag2) + { + goto IL_5A; + } + IL_95: + i++; + continue; + IL_5A: + bool flag3 = this.IsFashionEquipOn(this.FashionBag[i].uid); + if (flag3) + { + goto IL_95; + } + XItem item = this.MakeXItem(this.FashionBag[i]); + list.Add(item); + goto IL_95; + } + list.Sort(new Comparison(this.FashionCompare)); + return list; + } + + public void GetItem(ref List ret, int filter = -1) + { + bool flag = ret == null; + if (flag) + { + ret = new List(); + } + int i = 0; + int count = this.FashionBag.Count; + while (i < count) + { + int itemID = (int)this.FashionBag[i].itemID; + bool flag2 = filter >= 0; + if (!flag2) + { + goto IL_6E; + } + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(itemID); + bool flag3 = fashionConf == null || (int)fashionConf.EquipPos != filter; + if (!flag3) + { + goto IL_6E; + } + IL_AC: + i++; + continue; + IL_6E: + bool flag4 = this.IsFashionEquipOn(this.FashionBag[i].uid); + if (flag4) + { + goto IL_AC; + } + XItem item = this.MakeXItem(this.FashionBag[i]); + ret.Add(item); + goto IL_AC; + } + i = 0; + count = this.FashionOnBody.Count; + while (i < count) + { + int itemID2 = (int)this.FashionOnBody[i].itemID; + bool flag5 = filter >= 0; + if (!flag5) + { + goto IL_115; + } + FashionList.RowData fashionConf2 = XBagDocument.GetFashionConf(itemID2); + bool flag6 = fashionConf2 == null || (int)fashionConf2.EquipPos != filter; + if (!flag6) + { + goto IL_115; + } + IL_134: + i++; + continue; + IL_115: + XItem item2 = this.MakeXItem(this.FashionOnBody[i]); + ret.Add(item2); + goto IL_134; + } + } + + public List GetFashionInBag(int filter, bool justpersistent) + { + List list = new List(); + for (int i = 0; i < this.FashionBag.Count; i++) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.FashionBag[i].itemID); + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)this.FashionBag[i].itemID); + bool flag = fashionConf == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("eData = null:" + this.FashionBag[i].itemID, null, null, null, null, null); + } + else + { + bool flag2 = (int)fashionConf.EquipPos == XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionWings) || (int)fashionConf.EquipPos == XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionTail) || (int)fashionConf.EquipPos == XFastEnumIntEqualityComparer.ToInt(FashionPosition.FashionDecal); + if (!flag2) + { + bool flag3 = filter >= 0; + if (flag3) + { + bool flag4 = fashionConf == null || (int)fashionConf.EquipPos != filter; + if (flag4) + { + goto IL_107; + } + } + bool flag5 = justpersistent && itemConf.TimeLimit > 0u; + if (!flag5) + { + list.Add(this.FashionBag[i]); + } + } + } + IL_107:; + } + return list; + } + + private int FashionCompare(XItem data1, XItem data2) + { + bool flag = data1 == null; + int result; + if (flag) + { + result = 1; + } + else + { + bool flag2 = data2 == null; + if (flag2) + { + result = -1; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(data1.itemID); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf(data2.itemID); + bool flag3 = itemConf.ItemQuality > itemConf2.ItemQuality; + if (flag3) + { + result = -1; + } + else + { + bool flag4 = itemConf.ItemQuality < itemConf2.ItemQuality; + if (flag4) + { + result = 1; + } + else + { + int num; + this.FashionSuitInfo.TryGetValue((uint)data1.itemID, out num); + int num2; + this.FashionSuitInfo.TryGetValue((uint)data2.itemID, out num2); + bool flag5 = num > num2; + if (flag5) + { + result = -1; + } + else + { + bool flag6 = num < num2; + if (flag6) + { + result = 1; + } + else + { + result = data1.itemID.CompareTo(data2.itemID); + } + } + } + } + } + } + return result; + } + + public void ActivateFashion(ulong uid) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = uid; + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.ActivationFashion); + XSingleton.singleton.Send(rpcC2G_UseItem); + } + + public void EquipFashion(bool On, ulong uid, int fashionID) + { + if (On) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = uid; + rpcC2G_UseItem.oArg.count = 1u; + rpcC2G_UseItem.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.FashionWear); + XSingleton.singleton.Send(rpcC2G_UseItem); + } + else + { + RpcC2G_UseItem rpcC2G_UseItem2 = new RpcC2G_UseItem(); + rpcC2G_UseItem2.oArg.uid = uid; + rpcC2G_UseItem2.oArg.count = 1u; + rpcC2G_UseItem2.oArg.OpType = ItemUseMgr.GetItemUseValue(ItemUse.FashionOff); + XSingleton.singleton.Send(rpcC2G_UseItem2); + } + } + + public void EquipFashionSuit(bool On, int fashionID) + { + if (On) + { + int fashionSuit = this.GetFashionSuit(fashionID); + FashionSuitTable.RowData suitData = this.GetSuitData(fashionSuit); + bool flag = suitData == null; + if (!flag) + { + this.sendUids.Clear(); + bool flag2 = suitData.FashionID != null; + if (flag2) + { + for (int i = 0; i < suitData.FashionID.Length; i++) + { + ClientFashionData clientFashionData = this.FindFashionLimitTimeFirst((int)suitData.FashionID[i]); + bool flag3 = clientFashionData != null; + if (flag3) + { + this.sendUids.Add(clientFashionData.uid); + } + } + } + this.SendEquipFashionSuit(this.sendUids, ItemUseMgr.GetItemUseValue(ItemUse.FashionSuitWear)); + } + } + else + { + bool flag4 = this.TryFindOverAllFashionSuit(fashionID, ref this.sendUids); + if (flag4) + { + this.SendEquipFashionSuit(this.sendUids, ItemUseMgr.GetItemUseValue(ItemUse.FashionSuitOff)); + } + } + } + + private void SendEquipFashionSuit(List uids, uint type) + { + RpcC2G_UseItem rpcC2G_UseItem = new RpcC2G_UseItem(); + rpcC2G_UseItem.oArg.uid = 0UL; + rpcC2G_UseItem.oArg.count = 1u; + rpcC2G_UseItem.oArg.OpType = type; + rpcC2G_UseItem.oArg.uids.AddRange(uids); + XSingleton.singleton.Send(rpcC2G_UseItem); + } + + public bool TryFindOverAllFashionSuit(int fashionID, ref List uids) + { + uids.Clear(); + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(fashionID); + bool flag = fashionConf == null; + bool result; + if (flag) + { + result = false; + } + else + { + ClientFashionData clientFashionData = this.FindFashionByPosInBody((int)fashionConf.EquipPos); + bool flag2 = clientFashionData == null; + if (flag2) + { + result = false; + } + else + { + int fashionSuit = this.GetFashionSuit((int)clientFashionData.itemID); + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(fashionSuit); + bool flag3 = bySuitID == null || bySuitID.FashionID == null; + if (flag3) + { + result = false; + } + else + { + int i = 0; + int num = bySuitID.FashionID.Length; + while (i < num) + { + ulong item; + bool flag4 = this.TryFindFashionUidInBody((int)bySuitID.FashionID[i], out item); + if (flag4) + { + uids.Add(item); + } + i++; + } + result = (uids.Count > 0); + } + } + } + return result; + } + + public Dictionary GetFashonListAttr(List fashions) + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < fashions.Count; i++) + { + SeqListRef fashionAttr = this.GetFashionAttr((int)fashions[i], 0); + for (int j = 0; j < fashionAttr.Count; j++) + { + bool flag = dictionary.ContainsKey(fashionAttr[j, 0]); + if (flag) + { + Dictionary dictionary2 = dictionary; + uint key = fashionAttr[j, 0]; + dictionary2[key] += fashionAttr[j, 1]; + } + else + { + dictionary.Add(fashionAttr[j, 0], fashionAttr[j, 1]); + } + } + } + return dictionary; + } + + public Dictionary GetOnBodyAttr() + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + SeqListRef fashionAttr = this.GetFashionAttr((int)this.FashionOnBody[i].itemID, 0); + for (int j = 0; j < fashionAttr.Count; j++) + { + bool flag = dictionary.ContainsKey(fashionAttr[j, 0]); + if (flag) + { + Dictionary dictionary2 = dictionary; + uint key = fashionAttr[j, 0]; + dictionary2[key] += fashionAttr[j, 1]; + } + else + { + dictionary.Add(fashionAttr[j, 0], fashionAttr[j, 1]); + } + } + } + return dictionary; + } + + public Dictionary GetFashonSuitAttr(List fashions) + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < fashions.Count; i++) + { + bool flag = fashions[i] == 0u; + if (!flag) + { + int fashionSuit = this.GetFashionSuit((int)fashions[i]); + bool flag2 = dictionary.ContainsKey(fashionSuit); + if (flag2) + { + Dictionary dictionary2 = dictionary; + int key = fashionSuit; + dictionary2[key] += 1u; + } + else + { + dictionary.Add(fashionSuit, 1u); + } + } + } + return dictionary; + } + + public Dictionary GetOnBodySuitAttr() + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + bool flag = this.FashionOnBody[i].itemID == 0u; + if (!flag) + { + bool flag2 = !this.IsFashionThreeSpecial((int)this.FashionOnBody[i].itemID); + if (!flag2) + { + int fashionSuit = this.GetFashionSuit((int)this.FashionOnBody[i].itemID); + bool flag3 = dictionary.ContainsKey(fashionSuit); + if (flag3) + { + Dictionary dictionary2 = dictionary; + int key = fashionSuit; + dictionary2[key] += 1u; + } + else + { + dictionary.Add(fashionSuit, 1u); + } + } + } + } + return dictionary; + } + + public Dictionary GetFashionListSuitAttr(List fashionList) + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < fashionList.Count; i++) + { + bool flag = fashionList[i] == 0u; + if (!flag) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)fashionList[i]); + bool flag2 = fashionConf == null; + if (!flag2) + { + bool flag3 = !this.IsFashionThreeSpecial((int)fashionList[i]); + if (!flag3) + { + int fashionSuit = this.GetFashionSuit((int)fashionList[i]); + bool flag4 = fashionSuit == 0; + if (!flag4) + { + bool flag5 = dictionary.ContainsKey(fashionSuit); + if (flag5) + { + Dictionary dictionary2 = dictionary; + int key = fashionSuit; + dictionary2[key] += 1u; + } + else + { + dictionary.Add(fashionSuit, 1u); + } + } + } + } + } + } + return dictionary; + } + + public List GetSuitCollectionList() + { + List list = new List(); + uint level = XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < XFashionDocument._fashionSuitTable.Table.Length; i++) + { + FashionSuitTable.RowData suitData = this.GetSuitData(XFashionDocument._fashionSuitTable.Table[i].SuitID); + bool flag = (ulong)level >= (ulong)((long)suitData.ShowLevel); + if (flag) + { + list.Add(XFashionDocument._fashionSuitTable.Table[i].SuitID); + } + } + list.Sort(new Comparison(this.SuitCollectionCompare)); + return list; + } + + private int SuitCollectionCompare(int suitID1, int suitID2) + { + FashionSuitTable.RowData suitData = this.GetSuitData(suitID1); + FashionSuitTable.RowData suitData2 = this.GetSuitData(suitID2); + bool flag = suitData.FashionID != null && suitData2.FashionID != null; + if (flag) + { + bool flag2 = suitData.FashionID == null || suitData.FashionID.Length < suitData2.FashionID.Length; + if (flag2) + { + return -1; + } + bool flag3 = suitData2.FashionID == null || suitData.FashionID.Length > suitData2.FashionID.Length; + if (flag3) + { + return 1; + } + bool flag4 = suitData.SuitQuality > suitData2.SuitQuality; + if (flag4) + { + return -1; + } + bool flag5 = suitData.SuitQuality < suitData2.SuitQuality; + if (flag5) + { + return 1; + } + } + return suitID1.CompareTo(suitID2); + } + + public bool HasCollected(uint fashionID) + { + return this.Collections.Contains(fashionID); + } + + public override void Update(float fDeltaT) + { + bool flag = this.FashionOnBody == null || this.FashionBag == null; + if (!flag) + { + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + bool flag2 = this.FashionOnBody[i].timeleft > 0.0; + if (flag2) + { + this.FashionOnBody[i].timeleft -= (double)Time.deltaTime; + } + } + for (int j = 0; j < this.FashionBag.Count; j++) + { + bool flag3 = this.FashionBag[j].timeleft > 0.0; + if (flag3) + { + this.FashionBag[j].timeleft -= (double)fDeltaT; + } + } + } + } + + public bool IsSuitNoSale(int suitID) + { + FashionSuitTable.RowData suitData = this.GetSuitData(suitID); + return suitData.NoSale; + } + + public bool FashionInBag(ulong uid) + { + for (int i = 0; i < this.FashionBag.Count; i++) + { + bool flag = this.FashionBag[i].uid == uid; + if (flag) + { + return true; + } + } + return false; + } + + public bool FashionInBody(ulong uid) + { + for (int i = 0; i < this.FashionOnBody.Count; i++) + { + bool flag = this.FashionOnBody[i].uid == uid; + if (flag) + { + return true; + } + } + return false; + } + + public bool TryGetFashionInBag(ulong uid, out ClientFashionData fashionData) + { + fashionData = null; + for (int i = 0; i < this.FashionBag.Count; i++) + { + bool flag = this.FashionBag[i].uid == uid; + if (flag) + { + fashionData = this.FashionBag[i]; + return true; + } + } + return false; + } + + public int GetFashionCount(int itemid) + { + int num = 0; + for (int i = 0; i < this.FashionBag.Count; i++) + { + bool flag = (ulong)this.FashionBag[i].itemID == (ulong)((long)itemid); + if (flag) + { + num++; + } + } + for (int j = 0; j < this.FashionOnBody.Count; j++) + { + bool flag2 = (ulong)this.FashionOnBody[j].itemID == (ulong)((long)itemid); + if (flag2) + { + num++; + } + } + return num; + } + + public bool ValidPart(int fashionID) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(fashionID); + return fashionConf != null && (int)fashionConf.EquipPos <= XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_END); + } + + public bool ShowSuitAllButton(ulong uid) + { + bool flag = this.FashionInBag(uid); + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.FashionInBody(uid); + result = flag2; + } + return result; + } + + public bool IsOverAll(ulong uid) + { + ClientFashionData clientFashionData; + bool flag = this.TryFindFashion(uid, out clientFashionData); + if (flag) + { + int fashionSuit = this.GetFashionSuit((int)clientFashionData.itemID); + FashionSuitTable.RowData bySuitID = XFashionDocument._fashionSuitTable.GetBySuitID(fashionSuit); + bool flag2 = bySuitID != null; + if (flag2) + { + return bySuitID.OverAll == 1; + } + } + return false; + } + + public int GetFullCollectionSuitCount() + { + int num = 0; + for (int i = 0; i < XFashionDocument._fashionSuitTable.Table.Length; i++) + { + int suitCollectCount = this.GetSuitCollectCount(XFashionDocument._fashionSuitTable.Table[i].SuitID); + int suitTotalCount = this.GetSuitTotalCount(XFashionDocument._fashionSuitTable.Table[i].SuitID); + bool flag = suitCollectCount == suitTotalCount; + if (flag) + { + num++; + } + } + return num; + } + + public void GetSuitIcon(FashionSuitTable.RowData suitData, ref string atlas, ref string sprite) + { + uint itemID = 0u; + bool flag = suitData.FashionID != null && suitData.FashionID.Length == 3; + if (flag) + { + itemID = suitData.FashionID[0]; + } + else + { + bool flag2 = suitData.FashionID != null && suitData.FashionID.Length == 7; + if (flag2) + { + itemID = suitData.FashionID[1]; + } + } + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemID); + atlas = XSingleton.singleton.ChooseProfString(itemConf.ItemAtlas, 0u); + sprite = XSingleton.singleton.ChooseProfString(itemConf.ItemIcon, 0u); + } + + public bool CalRedPoint() + { + for (int i = 0; i < this.FashionBag.Count; i++) + { + bool flag = this.HasFashionRedPoint(this.FashionBag[i]); + if (flag) + { + return true; + } + } + return false; + } + + public bool HasFashionRedPoint(ClientFashionData d) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)d.itemID); + return fashionConf != null && (int)fashionConf.EquipPos < XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_END) && !this.IsValidFashionData(this.FashionOnBody[(int)fashionConf.EquipPos]); + } + + public bool HasOneFashionSuit() + { + for (int i = 0; i < XFashionDocument._fashionSuitTable.Table.Length; i++) + { + int suitCollectCount = this.GetSuitCollectCount(XFashionDocument._fashionSuitTable.Table[i].SuitID); + int suitTotalCount = this.GetSuitTotalCount(XFashionDocument._fashionSuitTable.Table[i].SuitID); + bool flag = suitCollectCount == suitTotalCount; + if (flag) + { + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFashionDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFashionDocument.cs.meta new file mode 100644 index 00000000..5858d421 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79560f58b5cd3a04c9b58464a68850ee +timeCreated: 1611403985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs b/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs new file mode 100644 index 00000000..505e6a7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs @@ -0,0 +1,66 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XFashionDrawer : XItemDrawer + { + protected override string RightDownCornerName + { + get + { + return "sp_1"; + } + } + + public void DrawItem(GameObject go, int fashionID) + { + this._GetUI(go); + base._GetItemData(fashionID); + bool flag = this.itemdata == null; + if (flag) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + this._SetupIcon(); + this._SetupName(null); + this._SetupNum(0); + this._SetupNumTop(null); + this._SetupAttrIcon(null); + base._SetupLeftDownCorner(base._GetBindingState(null)); + base._SetupLeftUpCorner(false, ""); + base._SetupRightDownCorner(false); + base._SetupRightUpCorner(false); + base._SetUpProf(false); + base._SetupMask(); + this._ClearVariables(); + } + } + + public void DrawItem(GameObject go, ClientFashionData fashion) + { + this.DrawItem(go, (int)fashion.itemID); + this._SetupTime(); + } + + protected void _SetupNum(int level) + { + bool flag = level > 0; + if (flag) + { + base._SetNumUI("+" + level); + } + else + { + base._SetNumUI(null); + } + } + + protected void _SetupTime() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs.meta b/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs.meta new file mode 100644 index 00000000..2149b41a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7f619bc38f8249448e466679f991861 +timeCreated: 1611404751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFashionItem.cs b/Client/Assets/Scripts/XMainClient/XFashionItem.cs new file mode 100644 index 00000000..641cdfe5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionItem.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class XFashionItem : XAttrItem + { + public uint fashionLevel; + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFashionItem.cs.meta b/Client/Assets/Scripts/XMainClient/XFashionItem.cs.meta new file mode 100644 index 00000000..edbecd64 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3898dd606d428804ca76d128c5ad150d +timeCreated: 1611403590 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFashionRankInfo.cs b/Client/Assets/Scripts/XMainClient/XFashionRankInfo.cs new file mode 100644 index 00000000..5108665b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionRankInfo.cs @@ -0,0 +1,20 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XFashionRankInfo : XBaseRankInfo + { + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, XBaseRankInfo.GetUnderLineName(this.name)); + this.id = data.RoleId; + this.rank = data.Rank; + this.value = (ulong)data.powerpoint; + this.guildicon = data.guildicon; + this.guildname = data.guildname; + this.startType = data.starttype; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFashionRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XFashionRankInfo.cs.meta new file mode 100644 index 00000000..f17e3692 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91c765377404bdf4bb0aa5940763731b +timeCreated: 1611404143 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFashionRankList.cs b/Client/Assets/Scripts/XMainClient/XFashionRankList.cs new file mode 100644 index 00000000..06f4ffe2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionRankList.cs @@ -0,0 +1,35 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XFashionRankList : XBaseRankList + { + public XFashionRankList() + { + this.type = XRankType.FashionRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XPPTRankInfo(); + } + + public override XBaseRankInfo GetLatestMyRankInfo() + { + bool flag = this.myRankInfo == null || this.myRankInfo.rank != XRankDocument.INVALID_RANK; + XBaseRankInfo myRankInfo; + if (flag) + { + myRankInfo = this.myRankInfo; + } + else + { + this.myRankInfo.name = XSingleton.singleton.Player.Name; + this.myRankInfo.value = 0UL; + myRankInfo = this.myRankInfo; + } + return myRankInfo; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFashionRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XFashionRankList.cs.meta new file mode 100644 index 00000000..782cd53d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d92f2b2d3499e304e8694ea081eca54b +timeCreated: 1611404643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFashionStorageDocument.cs b/Client/Assets/Scripts/XMainClient/XFashionStorageDocument.cs new file mode 100644 index 00000000..b7ec09c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionStorageDocument.cs @@ -0,0 +1,1233 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFashionStorageDocument : XDocComponent + { + public override uint ID + { + get + { + return XFashionStorageDocument.uuID; + } + } + + public static uint[] SpecialEffectIDs + { + get + { + bool flag = XFashionStorageDocument.m_specialEffectIDs == null; + if (flag) + { + int num = XFashionStorageDocument.m_specialEffects.Table.Length; + XFashionStorageDocument.m_specialEffectIDs = new uint[num]; + for (int i = 0; i < num; i++) + { + XFashionStorageDocument.m_specialEffectIDs[i] = XFashionStorageDocument.m_specialEffects.Table[i].suitid; + } + } + return XFashionStorageDocument.m_specialEffectIDs; + } + } + + public List DisplayFashion + { + get + { + return this.m_displayFashion; + } + } + + public List SpecialEffects + { + get + { + return this.m_special_effects; + } + } + + public bool ShowEffect + { + get + { + bool showEffect = this.m_showEffect; + bool result; + if (showEffect) + { + this.m_showEffect = false; + result = true; + } + else + { + result = false; + } + return result; + } + } + + public bool RedPoint + { + get + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Fashion_OutLook) && this.m_redPoint; + } + } + + public bool EquipRedPoint + { + get + { + return this.m_equipRedPoint; + } + } + + public bool FashionRedPoint + { + get + { + return this.m_fashionRedPoint; + } + } + + public bool SuitRedPoint + { + get + { + return this.m_suitSuitRedPoint; + } + } + + public uint selfEffectID + { + get + { + return this.m_selfEffectID; + } + } + + public static uint HairColorID + { + get + { + XFashionStorageDocument specificDocument = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + return specificDocument.m_selfHairColor; + } + } + + public uint selfHairColor + { + get + { + return this.m_selfHairColor; + } + } + + public uint CurHairColor + { + get + { + return this.m_selfHairColor; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FashionStorageDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static FashionCharm m_fashionCharmTable = new FashionCharm(); + + private static FashionSuitSpecialEffects m_specialEffects = new FashionSuitSpecialEffects(); + + private static Dictionary m_charmMap = new Dictionary(); + + private static HairColorTable m_hairColorTable = new HairColorTable(); + + private static FashionHair m_fashionHair = new FashionHair(); + + private static uint[] m_specialEffectIDs; + + private List m_displayFashion = new List(); + + private List m_special_effects = new List(); + + private List m_activateCharms; + + private List m_ownDisplayItems; + + private XBetterDictionary m_partDisplay; + + private XBetterDictionary m_fashionCharm; + + private XBetterDictionary m_equipCharm; + + public FashionStorageType fashionStorageType = FashionStorageType.OutLook; + + private bool m_redPoint = false; + + private bool m_equipRedPoint = false; + + private bool m_fashionRedPoint = false; + + private bool m_suitSuitRedPoint = false; + + private bool m_showEffect = false; + + private uint m_selfEffectID = 0u; + + public uint previewEffectID = 0u; + + private XBetterDictionary m_activateSuitEffects; + + private uint m_selfHairColor = 0u; + + public uint previewHairColor = 0u; + + public uint selectHairID = 0u; + + public FashionStoragePreview preview = FashionStoragePreview.None; + + private XBetterDictionary m_activateHairColors; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static bool TryGetFashionStoragePosition(FashionPosition position, out int pos) + { + pos = -1; + bool result = true; + switch (position) + { + case FashionPosition.FASHION_START: + pos = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FashionHeadgear); + return result; + case FashionPosition.FashionUpperBody: + pos = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FashionUpperBody); + return result; + case FashionPosition.FashionLowerBody: + pos = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FashionLowerBody); + return result; + case FashionPosition.FashionGloves: + pos = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FashionGloves); + return result; + case FashionPosition.FashionBoots: + pos = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FashionBoots); + return result; + case FashionPosition.FashionMainWeapon: + case FashionPosition.FashionSecondaryWeapon: + pos = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FashionWeapon); + return result; + case FashionPosition.FashionWings: + case FashionPosition.FashionTail: + case FashionPosition.FashionDecal: + pos = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FashionThird); + return result; + case FashionPosition.Hair: + pos = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FASHION_START); + return result; + } + result = false; + return result; + } + + public static string GetFashionStoragePartName(FashionStoragePosition pos) + { + string result; + switch (pos) + { + case FashionStoragePosition.FASHION_START: + result = XStringDefineProxy.GetString("FASHION_HAIR"); + break; + case FashionStoragePosition.FashionHeadgear: + result = XStringDefineProxy.GetString("FASHION_HEAD"); + break; + case FashionStoragePosition.FashionUpperBody: + result = XStringDefineProxy.GetString("FASHION_UPPERBODY"); + break; + case FashionStoragePosition.FashionLowerBody: + result = XStringDefineProxy.GetString("FASHION_LOWERBODY"); + break; + case FashionStoragePosition.FashionGloves: + result = XStringDefineProxy.GetString("FASHION_GLOVES"); + break; + case FashionStoragePosition.FashionBoots: + result = XStringDefineProxy.GetString("FASHION_BOOTS"); + break; + case FashionStoragePosition.FashionWeapon: + result = XStringDefineProxy.GetString("FASHION_WEAPON"); + break; + case FashionStoragePosition.FashionThird: + result = XStringDefineProxy.GetString("FASHION_THIRD"); + break; + default: + result = ""; + break; + } + return result; + } + + public static Color GetHairColor(uint colorID) + { + HairColorTable.RowData byID = XFashionStorageDocument.m_hairColorTable.GetByID(colorID); + bool flag = byID == null; + Color result; + if (flag) + { + result = Color.white; + } + else + { + result = XSingleton.singleton.GetColor(byID.Color); + } + return result; + } + + public static FashionSuitSpecialEffects.RowData GetSpecialEffect(uint id) + { + return XFashionStorageDocument.m_specialEffects.GetBysuitid(id); + } + + public static uint GetDefaultColorID(uint hairID) + { + bool flag = hairID == 0u; + uint result; + if (flag) + { + result = 1u; + } + else + { + FashionHair.RowData byHairID = XFashionStorageDocument.m_fashionHair.GetByHairID(hairID); + bool flag2 = byHairID == null; + if (flag2) + { + result = 1u; + } + else + { + result = byHairID.DefaultColorID; + } + } + return result; + } + + public static bool TryGetSpecialEffect(uint id, uint type_id, out string strFx) + { + strFx = string.Empty; + type_id %= 10u; + bool flag = id == 0u; + bool result; + if (flag) + { + result = false; + } + else + { + FashionSuitSpecialEffects.RowData bysuitid = XFashionStorageDocument.m_specialEffects.GetBysuitid(id); + bool flag2 = bysuitid == null; + if (flag2) + { + result = false; + } + else + { + switch (type_id) + { + case 1u: + strFx = bysuitid.Fx1; + break; + case 2u: + strFx = bysuitid.Fx2; + break; + case 3u: + strFx = bysuitid.Fx3; + break; + case 4u: + strFx = bysuitid.Fx4; + break; + case 5u: + strFx = bysuitid.Fx5; + break; + case 6u: + strFx = bysuitid.Fx6; + break; + case 7u: + strFx = bysuitid.Fx7; + break; + case 8u: + strFx = bysuitid.Fx8; + break; + } + result = true; + } + } + return result; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XFashionStorageDocument.AsyncLoader.AddTask("Table/FashionCharm", XFashionStorageDocument.m_fashionCharmTable, false); + XFashionStorageDocument.AsyncLoader.AddTask("Table/FashionHair", XFashionStorageDocument.m_fashionHair, false); + XFashionStorageDocument.AsyncLoader.AddTask("Table/HairColorTable", XFashionStorageDocument.m_hairColorTable, false); + XFashionStorageDocument.AsyncLoader.AddTask("Table/FashionSuitSpecialEffects", XFashionStorageDocument.m_specialEffects, false); + XFashionStorageDocument.AsyncLoader.Execute(null); + } + + public void InitHairColor(uint colorID, List hairs) + { + this.m_selfHairColor = colorID; + bool flag = this.m_activateHairColors == null; + if (flag) + { + this.m_activateHairColors = new XBetterDictionary(0); + } + this.m_activateHairColors.Clear(); + int i = 0; + int num = XFashionStorageDocument.m_fashionHair.Table.Length; + while (i < num) + { + bool flag2 = XFashionStorageDocument.m_fashionHair.Table[i].UnLookColorID == null || XFashionStorageDocument.m_fashionHair.Table[i].UnLookColorID.Length == 0; + if (!flag2) + { + this.m_activateHairColors.Add(XFashionStorageDocument.m_fashionHair.Table[i].HairID, new FashionStorageHairColor(XFashionStorageDocument.m_fashionHair.Table[i])); + } + i++; + } + i = 0; + num = hairs.Count; + while (i < num) + { + bool flag3 = this.m_activateHairColors.ContainsKey(hairs[i].hair_id); + if (flag3) + { + this.m_activateHairColors[hairs[i].hair_id].GetItems().AddRange(hairs[i].hair_color_id); + } + i++; + } + } + + public void Init(FashionRecord info) + { + this.m_displayFashion = info.display_fashion; + this.m_ownDisplayItems = info.own_display_items; + this.m_activateCharms = info.own_fashins; + this.InitCharmMap(); + this.InitPartDisplay(); + this.InitStorageCharm(); + this.InitSuitEffect(); + this.InitHairColor(info.hair_color_id, info.hair_color_info); + this.SetupSpecialEffects(info.special_effects_list, info.special_effects_id); + int i = 0; + int count = this.m_ownDisplayItems.Count; + while (i < count) + { + this.InsertPartToDisplay(this.m_ownDisplayItems[i]); + i++; + } + int j = 0; + int count2 = this.m_activateCharms.Count; + while (j < count2) + { + bool flag = this.m_fashionCharm.ContainsKey((int)this.m_activateCharms[j].suit_id); + if (flag) + { + this.m_fashionCharm[(int)this.m_activateCharms[j].suit_id].SetCount(this.m_activateCharms[j].activate_count); + this.m_fashionCharm[(int)this.m_activateCharms[j].suit_id].Refresh(); + } + else + { + bool flag2 = this.m_equipCharm.ContainsKey((int)this.m_activateCharms[j].suit_id); + if (flag2) + { + this.m_equipCharm[(int)this.m_activateCharms[j].suit_id].SetCount(this.m_activateCharms[j].activate_count); + this.m_equipCharm[(int)this.m_activateCharms[j].suit_id].Refresh(); + } + } + j++; + } + this.RefreshRedPoint(); + XSingleton.singleton.XPlayerData.Outlook.SetFashionData(this.m_displayFashion, this.m_selfHairColor, this.m_selfEffectID, true); + XSingleton.singleton.XPlayerData.Outlook.CalculateOutLookFashion(); + } + + private void SetupSpecialEffects(List effectIDs, uint special_effect_id) + { + this.m_selfEffectID = special_effect_id; + this.m_special_effects.Clear(); + bool flag = effectIDs == null; + if (!flag) + { + this.m_special_effects.AddRange(effectIDs); + } + } + + private void InitSuitEffect() + { + bool flag = this.m_activateSuitEffects == null; + if (flag) + { + this.m_activateSuitEffects = new XBetterDictionary(0); + } + this.m_activateSuitEffects.Clear(); + int i = 0; + int num = XFashionStorageDocument.m_specialEffects.Table.Length; + while (i < num) + { + FashionSuitSpecialEffects.RowData rowData = XFashionStorageDocument.m_specialEffects.Table[i]; + FashionStorageSuitEffect value = new FashionStorageSuitEffect(rowData); + this.m_activateSuitEffects.Add(rowData.suitid, value); + i++; + } + } + + public bool TryGetCharmAttr(out Dictionary attr, out int activate_count, out int activate_total) + { + attr = new Dictionary(); + activate_count = 0; + activate_total = 0; + this.AnalysisCharmAttr(this.m_equipCharm, ref attr, ref activate_total, ref activate_count); + this.AnalysisCharmAttr(this.m_fashionCharm, ref attr, ref activate_total, ref activate_count); + return activate_count > 0; + } + + private void AnalysisCharmAttr(XBetterDictionary charms, ref Dictionary attr, ref int activate_total, ref int activate_count) + { + bool flag = charms == null; + if (!flag) + { + int i = 0; + int count = charms.BufferValues.Count; + while (i < count) + { + bool flag2 = !charms.BufferValues[i].Active; + if (!flag2) + { + activate_total += charms.BufferValues[i].GetFashionList().Length; + activate_count += charms.BufferValues[i].GetItems().Count; + List attributeCharm = charms.BufferValues[i].GetAttributeCharm(); + int j = 0; + int count2 = attributeCharm.Count; + while (j < count2) + { + bool active = attributeCharm[j].active; + if (active) + { + bool flag3 = attr.ContainsKey(attributeCharm[j].key); + if (flag3) + { + Dictionary dictionary = attr; + uint key = attributeCharm[j].key; + dictionary[key] += attributeCharm[j].value; + } + else + { + attr[attributeCharm[j].key] = attributeCharm[j].value; + } + } + j++; + } + } + i++; + } + } + } + + private void RefreshRedPoint() + { + this.m_equipRedPoint = this.GetEquipCharmRedPoint(); + this.m_fashionRedPoint = this.GetFashionCharmRedPoint(); + this.m_suitSuitRedPoint = this.GetFashionSuitEffectRedPoint(); + this.m_redPoint = (this.m_equipRedPoint || this.m_fashionRedPoint || this.m_suitSuitRedPoint); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Fashion_OutLook, true); + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton._FashionBagHandler != null && DlgBase.singleton._FashionBagHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._FashionBagHandler.RefreshOutLookRedPoint(); + } + } + + public bool GetFashionCharmRedPoint() + { + bool flag = false; + bool flag2 = this.m_fashionCharm == null; + bool result; + if (flag2) + { + result = flag; + } + else + { + int i = 0; + int count = this.m_fashionCharm.BufferValues.Count; + while (i < count) + { + bool flag3 = this.m_fashionCharm.BufferValues[i] == null || !this.m_fashionCharm.BufferValues[i].RedPoint; + if (!flag3) + { + flag = true; + break; + } + i++; + } + result = flag; + } + return result; + } + + public bool GetFashionSuitEffectRedPoint() + { + bool flag = false; + bool flag2 = this.m_activateSuitEffects == null; + bool result; + if (flag2) + { + result = flag; + } + else + { + int i = 0; + int count = this.m_activateSuitEffects.BufferValues.Count; + while (i < count) + { + bool flag3 = this.m_activateSuitEffects.BufferValues[i] == null || !this.m_activateSuitEffects.BufferValues[i].RedPoint; + if (!flag3) + { + flag = true; + break; + } + i++; + } + result = flag; + } + return result; + } + + public bool GetEquipCharmRedPoint() + { + bool flag = false; + bool flag2 = this.m_equipCharm == null; + bool result; + if (flag2) + { + result = flag; + } + else + { + int i = 0; + int count = this.m_equipCharm.BufferValues.Count; + while (i < count) + { + bool flag3 = this.m_equipCharm.BufferValues[i] == null || !this.m_equipCharm.BufferValues[i].RedPoint; + if (!flag3) + { + flag = true; + break; + } + i++; + } + result = flag; + } + return result; + } + + private void InitStorageCharm() + { + bool flag = this.m_fashionCharm == null; + if (flag) + { + this.m_fashionCharm = new XBetterDictionary(0); + } + bool flag2 = this.m_equipCharm == null; + if (flag2) + { + this.m_equipCharm = new XBetterDictionary(0); + } + uint basicTypeID = XSingleton.singleton.XPlayerData.BasicTypeID; + this.m_fashionCharm.Clear(); + this.m_equipCharm.Clear(); + int i = 0; + int num = XFashionStorageDocument.m_fashionCharmTable.Table.Length; + while (i < num) + { + FashionCharm.RowData rowData = XFashionStorageDocument.m_fashionCharmTable.Table[i]; + int suitID = (int)rowData.SuitID; + bool flag3 = XFashionDocument.IsFashionBySuitID(suitID); + if (flag3) + { + bool flag4 = !this.m_fashionCharm.ContainsKey(suitID); + if (flag4) + { + this.m_fashionCharm.Add(suitID, new FashionStorageFashionCollection(suitID)); + } + } + else + { + bool flag5 = XEquipCreateDocument.InEquipSuit(suitID, true); + if (flag5) + { + bool flag6 = !this.m_equipCharm.ContainsKey(suitID); + if (flag6) + { + this.m_equipCharm.Add(suitID, new FashionStorageEquipCollection(suitID)); + } + } + } + i++; + } + } + + private void InitCharmMap() + { + int i = 0; + int num = XFashionStorageDocument.m_fashionCharmTable.Table.Length; + while (i < num) + { + bool flag = XFashionStorageDocument.m_fashionCharmTable.Table[i].SuitParam == null; + if (!flag) + { + for (int j = 0; j < XFashionStorageDocument.m_fashionCharmTable.Table[i].SuitParam.Length; j++) + { + bool flag2 = !XFashionStorageDocument.m_charmMap.ContainsKey(XFashionStorageDocument.m_fashionCharmTable.Table[i].SuitParam[j]); + if (flag2) + { + XFashionStorageDocument.m_charmMap.Add(XFashionStorageDocument.m_fashionCharmTable.Table[i].SuitParam[j], XFashionStorageDocument.m_fashionCharmTable.Table[i].SuitID); + } + } + } + i++; + } + } + + private void InitPartDisplay() + { + bool flag = this.m_partDisplay != null; + if (!flag) + { + this.m_partDisplay = new XBetterDictionary(0); + int num = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FASHION_START); + int num2 = XFastEnumIntEqualityComparer.ToInt(FashionStoragePosition.FASHION_END); + for (int i = num; i < num2; i++) + { + this.m_partDisplay.Add(i, new FashionStorageDisplay((FashionStoragePosition)i)); + } + } + } + + public bool InDisplay(uint itemid) + { + return this.m_ownDisplayItems != null && this.m_ownDisplayItems.Contains(itemid); + } + + public void CheckMutuexHair(int hairID) + { + int fashionInBody = this.GetFashionInBody(FashionPosition.FASHION_START); + bool flag = fashionInBody == 0; + if (!flag) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(fashionInBody); + bool flag2 = fashionConf == null || fashionConf.ReplaceID == null; + if (!flag2) + { + int num = (int)(XSingleton.singleton.XPlayerData.BasicTypeID - 1u); + bool flag3 = num >= 0 && num < fashionConf.ReplaceID.Length && fashionConf.ReplaceID[num] > 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FASHION_STPRAGE_MUTEXT"), "fece00"); + } + } + } + } + + public void CheckMutuexHeadgear(int headgear) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(headgear); + bool flag = fashionConf != null && fashionConf.ReplaceID != null; + if (flag) + { + int num = (int)(XSingleton.singleton.XPlayerData.BasicTypeID - 1u); + bool flag2 = num >= 0 && num < fashionConf.ReplaceID.Length && fashionConf.ReplaceID[num] > 0; + if (flag2) + { + bool flag3 = this.GetFashionInBody(FashionPosition.Hair) > 0; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FASHION_STPRAGE_MUTEXT"), "fece00"); + } + } + } + } + + private int GetFashionInBody(FashionPosition pos) + { + int result = 0; + int i = 0; + int count = this.m_displayFashion.Count; + while (i < count) + { + bool flag = this.m_displayFashion[i] != 0u && XFashionDocument.IsTargetPart((int)this.m_displayFashion[i], pos); + if (flag) + { + result = (int)this.m_displayFashion[i]; + break; + } + i++; + } + return result; + } + + private void InsertPartToDisplay(uint itemID) + { + bool flag = itemID == 0u; + if (!flag) + { + bool flag2 = !this.m_ownDisplayItems.Contains(itemID); + if (flag2) + { + this.m_ownDisplayItems.Add(itemID); + } + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)itemID); + bool flag3 = fashionConf != null; + if (flag3) + { + int key = -1; + bool flag4 = XFashionStorageDocument.TryGetFashionStoragePosition((FashionPosition)fashionConf.EquipPos, out key) && this.m_partDisplay.ContainsKey(key); + if (flag4) + { + IFashionStorageSelect fashionStorageSelect = this.m_partDisplay[key]; + bool flag5 = !fashionStorageSelect.GetItems().Contains((uint)fashionConf.ItemID); + if (flag5) + { + fashionStorageSelect.GetItems().Add((uint)fashionConf.ItemID); + } + } + } + bool flag6 = !XFashionStorageDocument.m_charmMap.ContainsKey(itemID); + if (!flag6) + { + int key2 = (int)XFashionStorageDocument.m_charmMap[itemID]; + bool flag7 = this.m_fashionCharm.ContainsKey(key2); + if (flag7) + { + bool flag8 = !this.m_fashionCharm[key2].GetItems().Contains(itemID); + if (flag8) + { + this.m_fashionCharm[key2].GetItems().Add(itemID); + this.m_fashionCharm[key2].Refresh(); + } + } + else + { + bool flag9 = this.m_equipCharm.ContainsKey(key2); + if (flag9) + { + bool flag10 = !this.m_equipCharm[key2].GetItems().Contains(itemID); + if (flag10) + { + this.m_equipCharm[key2].GetItems().Add(itemID); + this.m_equipCharm[key2].Refresh(); + } + } + } + bool flag11 = this.m_activateSuitEffects.ContainsKey((uint)key2); + if (flag11) + { + bool flag12 = !this.m_activateSuitEffects[(uint)key2].GetItems().Contains(itemID); + if (flag12) + { + this.m_activateSuitEffects[(uint)key2].GetItems().Add(itemID); + this.m_activateSuitEffects[(uint)key2].Refresh(); + } + } + } + } + } + + public void ItemUpdate(uint add, uint del) + { + bool flag = add > 0u; + if (flag) + { + this.InsertPartToDisplay(add); + } + bool flag2 = del > 0u; + if (flag2) + { + this.RemovePartFromDisplay(del); + } + this.RefreshRedPoint(); + this.RefreshView(); + } + + private void RefreshView() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(); + } + } + + public void UpdateDisplay(UpdateDisplayItems org) + { + XSingleton.singleton.AddGreenLog("UpdateDisplay :" + org.hair_color_id.ToString(), null, null, null, null, null); + this.m_displayFashion = org.display_items; + this.m_selfHairColor = org.hair_color_id; + this.m_selfEffectID = org.special_effects_id; + bool flag = XSingleton.singleton.XPlayerData == null || XSingleton.singleton.XPlayerData.Outlook == null; + if (!flag) + { + XSingleton.singleton.XPlayerData.Outlook.SetFashionData(this.m_displayFashion, this.m_selfHairColor, this.m_selfEffectID, true); + XEquipChangeEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + this.RefreshView(); + } + } + + private bool RemovePartFromDisplay(uint itemID) + { + bool flag = this.m_partDisplay == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.m_ownDisplayItems.Contains(itemID); + if (flag2) + { + this.m_ownDisplayItems.Remove(itemID); + } + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)itemID); + bool flag3 = fashionConf == null; + if (flag3) + { + result = true; + } + else + { + int key = -1; + bool flag4 = XFashionStorageDocument.TryGetFashionStoragePosition((FashionPosition)fashionConf.EquipPos, out key) && this.m_partDisplay.ContainsKey(key); + if (flag4) + { + IFashionStorageSelect fashionStorageSelect = this.m_partDisplay[key]; + bool flag5 = fashionStorageSelect.GetItems().Contains((uint)fashionConf.ItemID); + if (flag5) + { + fashionStorageSelect.GetItems().Remove((uint)fashionConf.ItemID); + } + } + result = true; + } + } + return result; + } + + public bool FashionInBody(int itemid) + { + return this.m_displayFashion != null && itemid > 0 && this.m_displayFashion.Contains((uint)itemid); + } + + public bool TryGetFashionChaim(uint suitID, out FashionCharm.RowData charm) + { + charm = XFashionStorageDocument.m_fashionCharmTable.GetBySuitID(suitID); + return charm != null; + } + + private void FilterSelect(XBetterDictionary charms, ref List list) + { + bool flag = charms == null; + if (!flag) + { + bool flag2 = list == null; + if (flag2) + { + list = new List(); + } + list.Clear(); + int i = 0; + int count = charms.BufferValues.Count; + while (i < count) + { + bool active = charms.BufferValues[i].Active; + if (active) + { + list.Add(charms.BufferValues[i]); + } + i++; + } + } + } + + public void GetCollection(ref List list, FashionStorageType type) + { + switch (type) + { + case FashionStorageType.OutLook: + this.FilterSelect(this.m_partDisplay, ref list); + break; + case FashionStorageType.FashionCollection: + this.FilterSelect(this.m_fashionCharm, ref list); + break; + case FashionStorageType.EquipCollection: + this.FilterSelect(this.m_equipCharm, ref list); + break; + } + } + + public void SendActivateFashion(uint suitID) + { + RpcC2G_ActivateFashionCharm rpcC2G_ActivateFashionCharm = new RpcC2G_ActivateFashionCharm(); + rpcC2G_ActivateFashionCharm.oArg.suit_id = suitID; + XSingleton.singleton.Send(rpcC2G_ActivateFashionCharm); + } + + public void ReceiveActivateFashion(ActivateFashionArg arg, ActivateFashionRes res) + { + bool flag = res.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.result, "fece00"); + } + else + { + int suit_id = (int)arg.suit_id; + bool flag2 = this.m_fashionCharm.ContainsKey(suit_id); + if (flag2) + { + this.m_fashionCharm[suit_id].SetCount(res.active_count); + this.m_fashionCharm[suit_id].Refresh(); + this.m_showEffect = this.m_fashionCharm[suit_id].ActivateAll; + } + else + { + bool flag3 = this.m_equipCharm.ContainsKey(suit_id); + if (flag3) + { + this.m_equipCharm[suit_id].SetCount(res.active_count); + this.m_equipCharm[suit_id].Refresh(); + this.m_showEffect = this.m_equipCharm[suit_id].ActivateAll; + } + } + this.RefreshRedPoint(); + this.RefreshView(); + } + } + + public bool isActivateEffect(uint effectID) + { + return effectID == 0u || this.m_special_effects.Contains(effectID); + } + + public XBetterList GetActivateSuits() + { + return (this.m_activateSuitEffects != null) ? this.m_activateSuitEffects.BufferValues : null; + } + + public IFashionStorageSelect GetActivateSuit(uint suitID) + { + return (this.m_activateSuitEffects == null) ? null : this.m_activateSuitEffects[suitID]; + } + + public void GetActiveSuitEffect(uint suitEeffectID) + { + this.preview = FashionStoragePreview.None; + RpcC2G_ChooseSpecialEffects rpcC2G_ChooseSpecialEffects = new RpcC2G_ChooseSpecialEffects(); + rpcC2G_ChooseSpecialEffects.oArg.special_effects_id = suitEeffectID; + XSingleton.singleton.Send(rpcC2G_ChooseSpecialEffects); + } + + public void SetActiveSuitEffect(ChooseSpecialEffectsArg oArg, ChooseSpecialEffectsRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag2 = oArg.special_effects_id > 0u && !this.m_special_effects.Contains(oArg.special_effects_id); + if (flag2) + { + this.m_special_effects.Add(oArg.special_effects_id); + } + this.m_selfEffectID = oArg.special_effects_id; + this.RefreshRedPoint(); + this.RefreshView(); + } + } + + public IFashionStorageSelect GetFashionHair(uint hairID) + { + return this.m_activateHairColors.ContainsKey(hairID) ? this.m_activateHairColors[hairID] : null; + } + + public FashionHair.RowData GetFashionHairData(uint hairID) + { + return XFashionStorageDocument.m_fashionHair.GetByHairID(hairID); + } + + public HairColorTable.RowData GetHairColorData(uint colorID) + { + return XFashionStorageDocument.m_hairColorTable.GetByID(colorID); + } + + public bool TryGetHairColor(uint colorID, out HairColorTable.RowData hcolor) + { + bool flag = colorID > 0u; + bool result; + if (flag) + { + hcolor = this.GetHairColorData(colorID); + result = (hcolor != null); + } + else + { + hcolor = null; + result = false; + } + return result; + } + + public bool TryGetSelfHairColor(out HairColorTable.RowData hcolor) + { + return this.TryGetHairColor(this.m_selfHairColor, out hcolor); + } + + public void SelectHair(uint hairID) + { + FashionHair.RowData byHairID = XFashionStorageDocument.m_fashionHair.GetByHairID(hairID); + bool flag = byHairID == null; + if (!flag) + { + this.selectHairID = hairID; + DlgBase.singleton.Switch(FashionStoragePreview.Hair); + } + } + + public bool IsActivateHairColor(uint hairID, uint colorID) + { + return this.m_activateHairColors.ContainsKey(hairID) && this.m_activateHairColors[hairID].GetItems().Contains(colorID); + } + + public bool TryGetActivateUseItem(uint hairID, uint colorID, out uint itemid, out uint count) + { + itemid = 0u; + count = 0u; + FashionHair.RowData fashionHairData = this.GetFashionHairData(hairID); + bool flag = fashionHairData == null; + bool result; + if (flag) + { + result = false; + } + else + { + int i = 0; + int count2 = fashionHairData.Cost.Count; + while (i < count2) + { + bool flag2 = fashionHairData.Cost[i, 0] == colorID; + if (flag2) + { + itemid = fashionHairData.Cost[i, 1]; + count = fashionHairData.Cost[i, 2]; + return true; + } + i++; + } + result = false; + } + return result; + } + + public void GetActivateHairColor(uint hairID, uint colorID) + { + bool flag = !this.IsActivateHairColor(hairID, colorID); + if (flag) + { + uint num; + uint num2; + bool flag2 = !this.TryGetActivateUseItem(hairID, colorID, out num, out num2); + if (flag2) + { + return; + } + uint num3 = (uint)XBagDocument.BagDoc.GetItemCount((int)num); + bool flag3 = num3 < num2; + if (flag3) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)num); + bool flag4 = itemConf != null; + if (flag4) + { + UiUtility singleton = XSingleton.singleton; + string key = "FASHION_HAIR_COLORING"; + object[] itemName = itemConf.ItemName; + singleton.ShowSystemTip(XStringDefineProxy.GetString(key, itemName), "fece00"); + } + return; + } + } + this.preview = FashionStoragePreview.None; + RpcC2G_ActivateHairColor rpcC2G_ActivateHairColor = new RpcC2G_ActivateHairColor(); + rpcC2G_ActivateHairColor.oArg.hair_id = hairID; + rpcC2G_ActivateHairColor.oArg.hair_color_id = colorID; + XSingleton.singleton.Send(rpcC2G_ActivateHairColor); + } + + public void SetActivateHairColor(ActivateHairColorRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + bool flag2 = this.m_activateHairColors.ContainsKey(oRes.hair_id); + if (flag2) + { + int i = 0; + int count = oRes.hair_colorid_list.Count; + while (i < count) + { + bool flag3 = !this.m_activateHairColors[oRes.hair_id].GetItems().Contains(oRes.hair_colorid_list[i]); + if (flag3) + { + this.m_activateHairColors[oRes.hair_id].GetItems().Add(oRes.hair_colorid_list[i]); + } + i++; + } + } + this.RefreshView(); + } + } + + public void DoCheckPreview(ButtonClickEventHandler eventHandle) + { + bool flag = this.preview == FashionStoragePreview.Hair; + if (flag) + { + string @string = XStringDefineProxy.GetString("FASHION_HAIRCOLOR_UNSAVE"); + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), eventHandle); + } + else + { + bool flag2 = eventHandle != null; + if (flag2) + { + eventHandle(null); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFashionStorageDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFashionStorageDocument.cs.meta new file mode 100644 index 00000000..bfb3a54f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFashionStorageDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0528847dd8b71864b8142ca664a34178 +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFightGroupChangedArgs.cs b/Client/Assets/Scripts/XMainClient/XFightGroupChangedArgs.cs new file mode 100644 index 00000000..1eb69f07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFightGroupChangedArgs.cs @@ -0,0 +1,28 @@ +using System; + +namespace XMainClient +{ + internal class XFightGroupChangedArgs : XEventArgs + { + public uint newFightGroup; + + public uint oldFightGroup; + + public XEntity targetEntity; + + public XFightGroupChangedArgs() + { + this._eDefine = XEventDefine.XEvent_FightGroupChanged; + this.newFightGroup = 0u; + this.oldFightGroup = 0u; + } + + public override void Recycle() + { + base.Recycle(); + this.newFightGroup = 0u; + this.oldFightGroup = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFightGroupChangedArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XFightGroupChangedArgs.cs.meta new file mode 100644 index 00000000..e8897c19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFightGroupChangedArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0973066229497e240ac677e248206228 +timeCreated: 1611403156 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFightGroupDocument.cs b/Client/Assets/Scripts/XMainClient/XFightGroupDocument.cs new file mode 100644 index 00000000..ae8fd393 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFightGroupDocument.cs @@ -0,0 +1,251 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFightGroupDocument : XComponent + { + public override uint ID + { + get + { + return XFightGroupDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FightGroupDocument"); + + public static readonly uint _fightNeutral = (uint)XFastEnumIntEqualityComparer.ToInt(FightGroupType.FightNeutral); + + public static readonly List EmptyEntityList = new List(); + + public static bool[,] FightGroup = null; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static FightGroupTable _FightGroup = new FightGroupTable(); + + private static XFightGroupDocument.FightGroupDesc[] _fight_desc = null; + + private static Dictionary _fight_desc_map = new Dictionary(); + + private static Dictionary> _fight_groups = new Dictionary>(); + + public struct FightGroupDesc + { + public List ally; + + public List oppo; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XFightGroupDocument.AsyncLoader.AddTask("Table/FightGroup", XFightGroupDocument._FightGroup, false); + XFightGroupDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + int num = XFightGroupDocument._FightGroup.Table.Length - 1; + int num2 = XFastEnumIntEqualityComparer.ToInt(FightGroupType.FightNeutral); + XFightGroupDocument.FightGroup = new bool[num, num]; + Type typeFromHandle = typeof(FightGroupTable.RowData); + FieldInfo[] fields = typeFromHandle.GetFields(); + for (int i = 0; i < num; i++) + { + FightGroupTable.RowData obj = XFightGroupDocument._FightGroup.Table[i + 1]; + for (int j = 0; j < num; j++) + { + bool flag = i == num2 || j == num2 || i == j; + if (flag) + { + XFightGroupDocument.FightGroup[i, j] = false; + } + else + { + string a = fields[j + 1].GetValue(obj).ToString(); + XFightGroupDocument.FightGroup[i, j] = (a == "o"); + } + } + } + XFightGroupDocument._fight_desc = new XFightGroupDocument.FightGroupDesc[num]; + for (int k = 0; k < XFightGroupDocument._fight_desc.Length; k++) + { + XFightGroupDocument._fight_desc[k].ally = new List(); + XFightGroupDocument._fight_desc[k].oppo = new List(); + } + } + + public static void OnSceneLoaded() + { + for (int i = 0; i < XFightGroupDocument._fight_desc.Length; i++) + { + XFightGroupDocument._fight_desc[i].ally.Clear(); + XFightGroupDocument._fight_desc[i].oppo.Clear(); + } + XFightGroupDocument._fight_desc_map.Clear(); + XFightGroupDocument._fight_groups.Clear(); + for (int j = 0; j < 10; j++) + { + XFightGroupDocument.FightGroupDesc value = default(XFightGroupDocument.FightGroupDesc); + value.ally = new List(); + value.oppo = new List(); + XFightGroupDocument._fight_desc_map.Add((uint)(XFightGroupDocument._fight_desc.Length + j), value); + } + } + + public static void OnCalcFightGroup(XEntity e) + { + bool flag = XSingleton.singleton.IsNeutral(e); + if (flag) + { + XFightGroupDocument._fight_desc[(int)XFightGroupDocument._fightNeutral].ally.Add(e); + } + else + { + uint fightGroup = e.Attributes.FightGroup; + uint num = 0u; + while ((ulong)num < (ulong)((long)XFightGroupDocument._fight_desc.Length)) + { + bool flag2 = XSingleton.singleton.IsAlly(num, fightGroup); + if (flag2) + { + XFightGroupDocument._fight_desc[(int)num].ally.Add(e); + } + bool flag3 = XSingleton.singleton.IsOpponent(num, fightGroup); + if (flag3) + { + XFightGroupDocument._fight_desc[(int)num].oppo.Add(e); + } + num += 1u; + } + foreach (KeyValuePair keyValuePair in XFightGroupDocument._fight_desc_map) + { + bool flag4 = XSingleton.singleton.IsAlly(keyValuePair.Key, fightGroup); + if (flag4) + { + keyValuePair.Value.ally.Add(e); + } + bool flag5 = XSingleton.singleton.IsOpponent(keyValuePair.Key, fightGroup); + if (flag5) + { + keyValuePair.Value.oppo.Add(e); + } + } + } + uint key = XSingleton.singleton.IsNeutral(e) ? XFightGroupDocument._fightNeutral : e.Attributes.FightGroup; + bool flag6 = !XFightGroupDocument._fight_groups.ContainsKey(key); + if (flag6) + { + XFightGroupDocument._fight_groups[key] = new List(); + } + bool flag7 = !XFightGroupDocument._fight_groups[key].Contains(e); + if (flag7) + { + XFightGroupDocument._fight_groups[key].Add(e); + } + } + + public static void OnDecalcFightGroup(XEntity e) + { + bool flag = XSingleton.singleton.IsNeutral(e); + if (flag) + { + XFightGroupDocument._fight_desc[(int)XFightGroupDocument._fightNeutral].ally.Remove(e); + } + else + { + uint num = 0u; + while ((ulong)num < (ulong)((long)XFightGroupDocument._fight_desc.Length)) + { + XFightGroupDocument._fight_desc[(int)num].ally.Remove(e); + XFightGroupDocument._fight_desc[(int)num].oppo.Remove(e); + num += 1u; + } + foreach (KeyValuePair keyValuePair in XFightGroupDocument._fight_desc_map) + { + keyValuePair.Value.ally.Remove(e); + keyValuePair.Value.oppo.Remove(e); + } + } + foreach (KeyValuePair> keyValuePair2 in XFightGroupDocument._fight_groups) + { + keyValuePair2.Value.Remove(e); + } + } + + public static bool IsNeutral(uint e) + { + return e == XFightGroupDocument._fightNeutral; + } + + public static bool IsAlly(uint me, uint other) + { + return me != XFightGroupDocument._fightNeutral && other != XFightGroupDocument._fightNeutral && me == other && !XFightGroupDocument.LookUpTable(me, other); + } + + public static bool IsOpponent(uint me, uint other) + { + return me != XFightGroupDocument._fightNeutral && other != XFightGroupDocument._fightNeutral && XFightGroupDocument.LookUpTable(me, other); + } + + public static List GetOpponent(uint me) + { + return ((ulong)me < (ulong)((long)XFightGroupDocument._fight_desc.Length)) ? XFightGroupDocument._fight_desc[(int)me].oppo : (XFightGroupDocument._fight_desc_map.ContainsKey(me) ? XFightGroupDocument._fight_desc_map[me].oppo : XFightGroupDocument.EmptyEntityList); + } + + public static List GetAlly(uint me) + { + return ((ulong)me < (ulong)((long)XFightGroupDocument._fight_desc.Length)) ? XFightGroupDocument._fight_desc[(int)me].ally : (XFightGroupDocument._fight_desc_map.ContainsKey(me) ? XFightGroupDocument._fight_desc_map[me].ally : XFightGroupDocument.EmptyEntityList); + } + + public static List GetSpecificGroup(uint specific) + { + return XFightGroupDocument._fight_groups[specific]; + } + + public static List GetNeutral() + { + return XFightGroupDocument._fight_desc[(int)XFightGroupDocument._fightNeutral].ally; + } + + private static bool LookUpTable(uint me, uint other) + { + bool flag = XFightGroupDocument._fight_desc.Length == 0; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = (ulong)me >= (ulong)((long)XFightGroupDocument._fight_desc.Length) && (ulong)other >= (ulong)((long)XFightGroupDocument._fight_desc.Length); + if (flag2) + { + result = (me != other); + } + else + { + bool flag3 = (ulong)me >= (ulong)((long)XFightGroupDocument._fight_desc.Length); + if (flag3) + { + me = (uint)(XFightGroupDocument._fight_desc.Length - 1); + } + else + { + bool flag4 = (ulong)other >= (ulong)((long)XFightGroupDocument._fight_desc.Length); + if (flag4) + { + other = (uint)(XFightGroupDocument._fight_desc.Length - 1); + } + } + result = XFightGroupDocument.FightGroup[(int)me, (int)other]; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFightGroupDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFightGroupDocument.cs.meta new file mode 100644 index 00000000..1823beab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFightGroupDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6fef7adef96f534f91adf3daa71ab75 +timeCreated: 1611404401 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFindExpDocument.cs b/Client/Assets/Scripts/XMainClient/XFindExpDocument.cs new file mode 100644 index 00000000..f0275baf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFindExpDocument.cs @@ -0,0 +1,164 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFindExpDocument : XDocComponent + { + public override uint ID + { + get + { + return XFindExpDocument.uuID; + } + } + + public static XFindExpDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XFindExpDocument.uuID) as XFindExpDocument; + } + } + + public int TotalCostGetExp + { + get + { + return this.mTotalCostGetExp; + } + } + + public int TotalFreeGetExp + { + get + { + return this.mTotalFreeGetExp; + } + } + + public int NeedDragonCoin + { + get + { + int @int = XSingleton.singleton.GetInt("ExpFindBackParam"); + return (this.mTotalCostGetExp - this.mTotalFreeGetExp + @int - 1) / @int; + } + } + + public bool IsAvailable + { + get + { + return !this.mFindExpSuccess && (this.mTotalCostGetExp > 0 || this.mTotalFreeGetExp > 0) && (long)this.OpenLevel <= (long)((ulong)XSingleton.singleton.XPlayerData.Level); + } + } + + public int OpenLevel + { + get + { + return XSingleton.singleton.GetInt("ExpFindBackNeedLevel"); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FindExpDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ExpBackTable mReader = new ExpBackTable(); + + private int mTotalFreeGetExp = 0; + + private int mTotalCostGetExp = 0; + + private bool mFindExpSuccess = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XFindExpDocument.AsyncLoader.AddTask("Table/ExpBack", XFindExpDocument.mReader, false); + XFindExpDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._ResetData(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void RequestExpFindBack(bool _isFree) + { + RpcC2G_ExpFindBack rpcC2G_ExpFindBack = new RpcC2G_ExpFindBack(); + rpcC2G_ExpFindBack.oArg.isFree = _isFree; + XSingleton.singleton.Send(rpcC2G_ExpFindBack); + } + + public void OnReplyExpFindBack(ExpFindBackArg oArg, ExpFindBackRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + this.mFindExpSuccess = true; + } + } + + public void OnGetExpInfo(PtcG2C_ExpFindBackNtf roPtc) + { + List expBackInfos = roPtc.Data.expBackInfos; + this._ResetData(); + bool flag = expBackInfos != null && expBackInfos.Count > 0; + if (flag) + { + for (int i = 0; i < expBackInfos.Count; i++) + { + ExpFindBackInfo expFindBackInfo = expBackInfos[i]; + bool flag2 = expFindBackInfo != null; + if (flag2) + { + ExpBackTable.RowData bytype = XFindExpDocument.mReader.GetBytype(ExpBackTypeMgr.GetTypeInt(expFindBackInfo.type)); + bool flag3 = bytype != null; + if (flag3) + { + int num = bytype.count - expFindBackInfo.usedCount; + bool flag4 = num > 0; + if (flag4) + { + this.mTotalFreeGetExp += bytype.exp * bytype.freeExpParam * num; + this.mTotalCostGetExp += bytype.exp * bytype.moneyCostParam * num; + } + } + } + } + this.mTotalFreeGetExp /= 100; + this.mTotalCostGetExp /= 100; + } + } + + private void _ResetData() + { + this.mTotalFreeGetExp = 0; + this.mTotalCostGetExp = 0; + this.mFindExpSuccess = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFindExpDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFindExpDocument.cs.meta new file mode 100644 index 00000000..f7314804 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFindExpDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a4cac2e108d6214cb93db1cae540a55 +timeCreated: 1611403495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFingerId.cs b/Client/Assets/Scripts/XMainClient/XFingerId.cs new file mode 100644 index 00000000..bc0b155f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFingerId.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum XFingerId + { + XCommon_0, + XCommon_1, + XGyroscope_0, + XGyroscope_1, + XJoystick_0, + XJoystick_1, + XFingerId_Max + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFingerId.cs.meta b/Client/Assets/Scripts/XMainClient/XFingerId.cs.meta new file mode 100644 index 00000000..f3d708ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFingerId.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bed495538d470f443ba2d88d8cc4a8ec +timeCreated: 1611404482 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFishingComponent.cs b/Client/Assets/Scripts/XMainClient/XFishingComponent.cs new file mode 100644 index 00000000..27cf8dd9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFishingComponent.cs @@ -0,0 +1,176 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFishingComponent : XComponent + { + public override uint ID + { + get + { + return XFishingComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FishingComponent"); + + private static uint fishing_present_id = 50001u; + + private bool _haveFish; + + private HomeFishingState _currState; + + private uint _timerToken; + + private XEntityPresentation.RowData _fishingRodPresentation; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._fishingRodPresentation = XSingleton.singleton.EntityInfo.GetByPresentID(50001u); + } + + public override void Attached() + { + this._entity.Equipment.EquipFishing(true, XFishingComponent.fishing_present_id); + XSingleton.singleton.AddGreenLog("Equip FishingRod.", null, null, null, null, null); + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + XCameraActionEventArgs @event = XEventPool.GetEvent(); + @event.XRotate = XSingleton.singleton.GameCamera.Root_R_X_Default; + float angle = float.Parse(XSingleton.singleton.GetValue("FishingCameraDesdir")); + float degree = float.Parse(XSingleton.singleton.GetValue("FishingCameraDegree")); + @event.YRotate = XSingleton.singleton.AngleToFloat(XSingleton.singleton.HorizontalRotateVetor3(XSingleton.singleton.FloatToAngle(angle), degree, true)); + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + } + + public override void OnDetachFromHost() + { + this._entity.Equipment.EquipFishing(false, 0u); + XSingleton.singleton.AddGreenLog("delete FishingRod.", null, null, null, null, null); + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.PlayStateBack(); + XCameraMotionEndEventArgs @event = XEventPool.GetEvent(); + @event.Target = this._entity; + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + } + else + { + XSingleton.singleton.KillTimer(this._timerToken); + } + base.OnDetachFromHost(); + } + + public void PlayAnimationWithResult(bool haveFish) + { + this._haveFish = haveFish; + this._currState = HomeFishingState.WAITSERVER; + XRole xrole = this._entity as XRole; + xrole.PlaySpecifiedAnimation(this._entity.Present.PresentLib.FishingIdle); + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingIdle); + XSingleton.singleton.KillTimer(this._timerToken); + this._timerToken = XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.OnFishingStateChange), null); + } + + private void OnFishingStateChange(object o = null) + { + float num = 5f; + XRole xrole = this._entity as XRole; + switch (this._currState) + { + case HomeFishingState.CAST: + { + this._currState = HomeFishingState.WAIT; + num = xrole.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingWait); + bool flag = num < 0f; + if (flag) + { + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingWait); + num = 1f; + break; + } + case HomeFishingState.WAIT: + { + this._currState = HomeFishingState.PULL; + num = xrole.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingPull); + bool flag2 = num < 0f; + if (flag2) + { + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingPull); + break; + } + case HomeFishingState.WAITSERVER: + { + this._currState = HomeFishingState.CAST; + num = xrole.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingCast); + bool flag3 = num < 0f; + if (flag3) + { + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingCast); + break; + } + case HomeFishingState.PULL: + { + this._currState = HomeFishingState.GET; + bool haveFish = this._haveFish; + if (haveFish) + { + num = xrole.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingWin); + bool flag4 = num < 0f; + if (flag4) + { + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingWin); + } + else + { + num = xrole.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingLose); + bool flag5 = num < 0f; + if (flag5) + { + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingLose); + } + break; + } + case HomeFishingState.GET: + { + this._currState = HomeFishingState.WAITSERVER; + num = xrole.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingIdle); + bool flag6 = num < 0f; + if (flag6) + { + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingIdle); + num = -1f; + break; + } + } + bool flag7 = num > 0f; + if (flag7) + { + this._timerToken = XSingleton.singleton.SetTimer(num, new XTimerMgr.ElapsedEventHandler(this.OnFishingStateChange), null); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFishingComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XFishingComponent.cs.meta new file mode 100644 index 00000000..8a57a3d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFishingComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1457e99d6b2b1fa4fa3f0188e2b82fdb +timeCreated: 1611403256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerAwardListInfo.cs b/Client/Assets/Scripts/XMainClient/XFlowerAwardListInfo.cs new file mode 100644 index 00000000..196735fc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerAwardListInfo.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class XFlowerAwardListInfo + { + public int listCount; + + public int selfIndex; + + public bool canGetAward; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerAwardListInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerAwardListInfo.cs.meta new file mode 100644 index 00000000..1ae76ec6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerAwardListInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3d9102d625dbebd4f8e1ccddb176daad +timeCreated: 1611403604 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs new file mode 100644 index 00000000..a58ed076 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class XFlowerRankActivityInfo : XBaseRankInfo + { + public uint flowerCount; + + public uint profession; + + public Dictionary receivedFlowers = new Dictionary(); + + public string headPicUrl; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.id = data.RoleId; + this.rank = data.Rank; + this.guildicon = data.guildicon; + this.guildname = data.guildname; + this.flowerCount = data.flowercount; + this.profession = data.profession; + this.headPicUrl = data.headpic; + this.setid = ((data.pre == null) ? new List() : data.pre.setid); + this.receivedFlowers.Clear(); + foreach (MapIntItem mapIntItem in data.receiveFlowers) + { + bool flag = !this.receivedFlowers.ContainsKey(mapIntItem.key); + if (flag) + { + this.receivedFlowers.Add(mapIntItem.key, mapIntItem.value); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs.meta new file mode 100644 index 00000000..e2d8eb8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6917fdb14a1323f45af1042afc21f0e7 +timeCreated: 1611403884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankActivityList.cs b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityList.cs new file mode 100644 index 00000000..76fa8363 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XFlowerRankActivityList : XBaseRankList + { + public XFlowerRankActivityList() + { + this.type = XRankType.FlowerActivityRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XFlowerRankActivityInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankActivityList.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityList.cs.meta new file mode 100644 index 00000000..6f96a5f7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankActivityList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f37686c18ac34ba41b1cae02c44e970a +timeCreated: 1611404848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankDocument.cs b/Client/Assets/Scripts/XMainClient/XFlowerRankDocument.cs new file mode 100644 index 00000000..7d43cf47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankDocument.cs @@ -0,0 +1,497 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFlowerRankDocument : XDocComponent + { + public override uint ID + { + get + { + return XFlowerRankDocument.uuID; + } + } + + public bool CanGetAward + { + get + { + return this._canGetAward; + } + set + { + this._canGetAward = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_FlowerRank, true); + bool flag = this.View != null; + if (flag) + { + this.View.RefreshRedPoint(); + } + } + } + + public bool CanGetActivityAward + { + get + { + return this._canGetActivityAward; + } + set + { + this._canGetActivityAward = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_FlowerRank, true); + bool flag = this.View != null; + if (flag) + { + this.View.RefreshRedPoint(); + } + } + } + + public XFlowerRankHandler View { get; set; } + + public XFlowerAwardListInfo AwardListInfo + { + get + { + return this._awardListInfo; + } + } + + public ShowFlowerPageRes FlowerPageData + { + get + { + return this._myFlowerPageData; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FlowerRankDocument"); + + public static readonly uint INVALID_RANK = uint.MaxValue; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static FlowerRankRewardTable _flowerRankRewardTable = new FlowerRankRewardTable(); + + private static FlowerWeekRankReward _flowerWeekRankRewardTable = new FlowerWeekRankReward(); + + private bool _canGetAward = false; + + private bool _canGetActivityAward = false; + + public XRankType currentSelectRankTab = XRankType.FlowerTodayRank; + + public uint currentSelectIndex = 0u; + + private XFlowerAwardListInfo _awardListInfo; + + private XBaseRankList _todayRankList; + + private XBaseRankList _yesterdayRankList; + + private XBaseRankList _historyRankList; + + private XBaseRankList _weekRankList; + + private XBaseRankList _activityRankList; + + private List _awardList; + + private ShowFlowerPageRes _myFlowerPageData = null; + + private Dictionary _rankDic = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private float _lastTime = 0f; + + private uint _recordTime = 0u; + + private uint _secondStageTimeStart = 0u; + + public static void Execute(OnLoadedCallback callback = null) + { + XFlowerRankDocument.AsyncLoader.AddTask("Table/FlowerRankReward", XFlowerRankDocument._flowerRankRewardTable, false); + XFlowerRankDocument.AsyncLoader.AddTask("Table/FlowerWeekRankReward", XFlowerRankDocument._flowerWeekRankRewardTable, false); + XFlowerRankDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._todayRankList = new XFlowerRankNormalList(); + this._weekRankList = new XFlowerRankNormalList(); + this._yesterdayRankList = new XFlowerRankNormalList(); + this._historyRankList = new XFlowerRankNormalList(); + this._activityRankList = new XFlowerRankActivityList(); + this._awardListInfo = new XFlowerAwardListInfo(); + this._rankDic.Clear(); + this._rankDic.Add(XRankType.FlowerTodayRank, this._todayRankList); + this._rankDic.Add(XRankType.FlowerYesterdayRank, this._yesterdayRankList); + this._rankDic.Add(XRankType.FlowerHistoryRank, this._historyRankList); + this._rankDic.Add(XRankType.FlowerWeekRank, this._weekRankList); + this._rankDic.Add(XRankType.FlowerActivityRank, this._activityRankList); + } + + public XBaseRankList GetRankList(XRankType type) + { + XBaseRankList xbaseRankList; + bool flag = this._rankDic.TryGetValue(type, out xbaseRankList); + XBaseRankList result; + if (flag) + { + result = xbaseRankList; + } + else + { + result = null; + } + return result; + } + + public void SelectItem(uint index, bool refresh = false) + { + this.currentSelectIndex = index; + XBaseRankList rankList = this.GetRankList(this.currentSelectRankTab); + bool flag = rankList != null; + if (flag) + { + bool flag2 = (ulong)index < (ulong)((long)rankList.rankList.Count); + if (flag2) + { + XBaseRankInfo xbaseRankInfo = rankList.rankList[(int)index]; + this.View.RefreshCharacterInfo(xbaseRankInfo, index); + this.ReqUnitAppearance(xbaseRankInfo.id); + } + else + { + XSingleton.singleton.AddLog(string.Format("index out of range. index = {0} while list count = {1}", index, rankList.rankList.Count), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + bool flag3 = this.View != null && this.View.IsVisible() && refresh; + if (flag3) + { + this.View.RefreshRankContent(); + } + } + + public void ReqUnitAppearance(ulong id) + { + RpcC2M_GetUnitAppearanceNew rpcC2M_GetUnitAppearanceNew = new RpcC2M_GetUnitAppearanceNew(); + rpcC2M_GetUnitAppearanceNew.oArg.roleid = id; + rpcC2M_GetUnitAppearanceNew.oArg.type = 3u; + rpcC2M_GetUnitAppearanceNew.oArg.mask = 524495; + XSingleton.singleton.Send(rpcC2M_GetUnitAppearanceNew); + } + + public void OnGetUnitAppearance(GetUnitAppearanceRes oRes) + { + bool flag = oRes.UnitAppearance == null; + if (!flag) + { + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.UpdateCharacterInfo(oRes); + } + } + } + + public void ReqRankList(XRankType type) + { + XBaseRankList rankList = this.GetRankList(type); + bool flag = rankList != null; + if (flag) + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(XBaseRankList.GetKKSGType(type)); + rpcC2M_ClientQueryRankListNtf.oArg.TimeStamp = rankList.timeStamp; + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + else + { + XSingleton.singleton.AddErrorLog("Rank type not init: ", type.ToString(), null, null, null, null); + } + } + + public void OnGetRankList(ClientQueryRankListRes oRes) + { + XRankType xtype = XBaseRankList.GetXType((RankeType)oRes.RankType); + bool flag = oRes.ErrorCode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XBaseRankList rankList = this.GetRankList(xtype); + bool flag2 = rankList != null; + if (flag2) + { + rankList.timeStamp = oRes.TimeStamp; + XFlowerRankDocument.ProcessRankListData(oRes.RankList, rankList); + XFlowerRankDocument.ProcessSelfRankData(oRes, rankList); + } + else + { + XSingleton.singleton.AddErrorLog("Rank type not inited: ", xtype.ToString(), null, null, null, null); + } + } + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + this.View.RefreshRankWindow(); + } + } + + public static void ProcessRankListData(RankList data, XBaseRankList rank) + { + int num = Math.Max(rank.rankList.Count, data.RankData.Count); + for (int i = rank.rankList.Count; i < num; i++) + { + rank.rankList.Add(rank.CreateNewInfo()); + } + bool flag = data.RankData.Count < rank.rankList.Count; + if (flag) + { + rank.rankList.RemoveRange(data.RankData.Count, rank.rankList.Count - data.RankData.Count); + } + for (int j = 0; j < rank.rankList.Count; j++) + { + XBaseRankInfo xbaseRankInfo = rank.rankList[j]; + xbaseRankInfo.ProcessData(data.RankData[j]); + xbaseRankInfo.rank = (uint)j; + } + } + + public static void ProcessSelfRankData(ClientQueryRankListRes oRes, XBaseRankList rank) + { + bool flag = oRes.RoleRankData != null; + if (flag) + { + rank.myRankInfo = rank.CreateNewInfo(); + rank.myRankInfo.ProcessData(oRes.RoleRankData); + rank.upperBound = oRes.RankAllCount; + bool flag2 = oRes.RankList.RankData.Count > 0 && rank.myRankInfo.name == ""; + if (flag2) + { + rank.myRankInfo.name = XSingleton.singleton.XPlayerData.Name; + rank.myRankInfo.id = XSingleton.singleton.XPlayerData.RoleID; + rank.myRankInfo.rank = XFlowerRankDocument.INVALID_RANK; + } + } + else + { + rank.myRankInfo = null; + } + } + + public void ReqAward() + { + RpcC2G_GetFlowerReward rpc = new RpcC2G_GetFlowerReward(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetAward(GetFlowerRewardArg oArg, GetFlowerRewardRes oRes) + { + bool flag = oRes.errorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.AddErrorLog(XStringDefineProxy.GetString(oRes.errorCode), null, null, null, null, null); + } + this.CanGetAward = false; + this._awardListInfo.canGetAward = false; + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshAwardInfo(); + } + } + + public void ReqAwardList() + { + RpcC2M_MSGetFlowerRewardList rpc = new RpcC2M_MSGetFlowerRewardList(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetAwardList(NewGetFlowerRewardListArg oArg, NewGetFlowerRewardListRes oRes) + { + bool flag = oRes.errorCode == ErrorCode.ERR_SUCCESS; + if (flag) + { + this._awardListInfo.listCount = this.GetAwardCount(); + this._awardListInfo.canGetAward = oRes.canGetReward; + this._awardListInfo.selfIndex = -1; + this._awardList = oRes.briefList; + for (int i = 0; i < oRes.briefList.Count; i++) + { + bool flag2 = oRes.briefList[i].roleID == XSingleton.singleton.PlayerID; + if (flag2) + { + this._awardListInfo.selfIndex = i; + } + } + } + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + this.View.RefreshAwardInfo(); + } + } + + public int GetAwardCount() + { + FlowerRankRewardTable.RowData[] table = XFlowerRankDocument._flowerRankRewardTable.Table; + int num = 0; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].reward[0, 0] != 0; + if (flag) + { + num = i; + } + } + FlowerRankRewardTable.RowData rowData = table[num]; + return rowData.rank[1]; + } + + public SeqListRef GetAwardInfo(int index, out uint designationID, bool yesterday) + { + int num = index + 1; + foreach (FlowerRankRewardTable.RowData rowData in XFlowerRankDocument._flowerRankRewardTable.Table) + { + bool flag = rowData.rank[0] <= num && rowData.rank[1] >= num; + if (flag) + { + designationID = (yesterday ? rowData.yesterday : rowData.history); + return rowData.reward; + } + } + designationID = 0u; + return default(SeqListRef); + } + + public int GetActivityAwardCount() + { + FlowerRankRewardTable.RowData[] table = XFlowerRankDocument._flowerRankRewardTable.Table; + int num = 0; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].activity[0, 0] != 0; + if (flag) + { + num = i; + } + } + FlowerRankRewardTable.RowData rowData = table[num]; + return rowData.rank[1]; + } + + public SeqListRef GetActivityAwardInfo(int index) + { + int num = index + 1; + foreach (FlowerRankRewardTable.RowData rowData in XFlowerRankDocument._flowerRankRewardTable.Table) + { + bool flag = rowData.rank[0] <= num && rowData.rank[1] >= num; + if (flag) + { + return rowData.activity; + } + } + return default(SeqListRef); + } + + public void ReqMyFlowersInfo() + { + RpcC2M_ShowFlowerPageNew rpcC2M_ShowFlowerPageNew = new RpcC2M_ShowFlowerPageNew(); + rpcC2M_ShowFlowerPageNew.oArg.roleid = XSingleton.singleton.XPlayerData.RoleID; + XSingleton.singleton.Send(rpcC2M_ShowFlowerPageNew); + } + + public void OnGetMyFlowers(ShowFlowerPageRes oRes) + { + this._myFlowerPageData = oRes; + this.View.RefreshMyFlowersPage(); + } + + public static uint GetFlowerCharmPoint(ulong flowerID) + { + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("Flower2Charm", XGlobalConfig.AllSeparators); + uint result = 0u; + for (int i = 0; i < andSeparateValue.Length; i += 2) + { + bool flag = flowerID == ulong.Parse(andSeparateValue[i]); + if (flag) + { + result = uint.Parse(andSeparateValue[i + 1]); + } + } + return result; + } + + public void CanGetAwardNtf() + { + this.CanGetAward = true; + } + + public SeqListRef GetWeekRankAward(int rank = 1) + { + for (int i = 0; i < XFlowerRankDocument._flowerWeekRankRewardTable.Table.Length; i++) + { + FlowerWeekRankReward.RowData rowData = XFlowerRankDocument._flowerWeekRankRewardTable.Table[i]; + bool flag = rank >= rowData.Rank[0] && rank <= rowData.Rank[1]; + if (flag) + { + return rowData.Reward; + } + } + return default(SeqListRef); + } + + public void GetFlowerActivityReward() + { + RpcC2M_GetFlowerActivityReward rpc = new RpcC2M_GetFlowerActivityReward(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetFlowerActivityReward(GetFlowerActivityRewardRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + this.CanGetActivityAward = false; + } + } + + public bool ShowRedPoint() + { + return this._canGetAward || this._canGetActivityAward; + } + + public void RecordActivityPastTime(uint time, SeqListRef timestage) + { + this._lastTime = Time.realtimeSinceStartup; + this._recordTime = time; + bool flag = timestage.count >= 2; + if (flag) + { + this._secondStageTimeStart = (timestage[0, 0] * 60u + timestage[0, 1]) * 60u; + } + } + + public bool IsActivityShowTime() + { + float num = Time.realtimeSinceStartup - this._lastTime; + float num2 = this._recordTime + num; + return num2 > this._secondStageTimeStart; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerRankDocument.cs.meta new file mode 100644 index 00000000..3eb0cfab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f3b66f4eeee23a449bdd7c759ee4e807 +timeCreated: 1611404850 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankHandler.cs b/Client/Assets/Scripts/XMainClient/XFlowerRankHandler.cs new file mode 100644 index 00000000..bef2ccbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankHandler.cs @@ -0,0 +1,1177 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFlowerRankHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/FlowerRankHandler"; + } + } + + public XUITabControl m_TabControl = new XUITabControl(); + + public XUITabControl m_FlowerTabControl = new XUITabControl(); + + public IXUIWrapContent m_NormalRankContent = null; + + public IXUIWrapContent m_ActivityRankContetn = null; + + public GameObject m_MyRankFrameNormal = null; + + public GameObject m_MyRankFrameActivity = null; + + private GameObject m_LastSelect; + + public IXUIWrapContent m_AwardContent = null; + + public Transform m_YesterdayRewardPanel; + + public GameObject m_CharacterInfoFrame; + + public IXUILabel m_CharName; + + public IXUISprite m_CharProfession; + + public IXUISprite m_CharGulid; + + public IXUILabel m_CharGulidName; + + public IXUISpriteAnimation m_Designation; + + public IXUIScrollView m_RankScrollView; + + public IXUIScrollView m_AwardScrollView; + + public Transform m_NoRankTip; + + public IXUILabel m_NoRankTipLabel; + + public IXUIButton m_YesterdayReward; + + public IXUIButton m_YesterdayRewardClose; + + public Dictionary m_DicFlowerCount = new Dictionary(); + + public IXUIWrapContent[] m_MyFlowerLogContent = new IXUIWrapContent[2]; + + public IXUISprite m_MyFlowersPanel = null; + + public IXUILabel m_MyFlowersSendTitle; + + public IXUILabel m_MyFlowersReceiveTitle; + + public IXUIScrollView[] m_MyFlowersScrollView = new IXUIScrollView[2]; + + public IUIDummy m_PlayerSnapshot = null; + + public IXUILabel m_CommonTip; + + public IXUILabel m_WeekTip1; + + public IXUILabel m_WeekTip2; + + public IXUILabel m_ActivityTip; + + public IXUILabel m_ActivityRewardTip; + + private XFlowerRankDocument _doc = null; + + private XDummy _PlayerDummy = null; + + private XSysDefine _myFlowersTab = XSysDefine.XSys_Flower_Log_Send; + + private XBaseRankList rankDataList = null; + + private IXUICheckBox[] _tabs; + + public XSysDefine DefaultTab = XSysDefine.XSys_Flower_Rank_Today; + + private UnitAppearance emptyUA = new UnitAppearance(); + + public Dictionary _WrapTextureList = new Dictionary(); + + public IXUIButton m_ActivityRewardPreviewBtn; + + public IXUIButton m_ActivityGetRewardBtn; + + public IXUIButton m_FlowerLogBtn; + + public Transform m_ActivityRewardPreviewPanel; + + public IXUIButton m_ActivityRewardPreviewClose; + + public IXUIWrapContent m_ActivityRewardContent; + + public IXUIScrollView m_ActivityRewardScrollview; + + private ulong m_SendRoleID = 0UL; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + this._doc.View = this; + Transform tabTpl = base.PanelObject.transform.Find("TabList/Panel/TabTpl"); + this.m_TabControl.SetTabTpl(tabTpl); + this.m_RankScrollView = (base.PanelObject.transform.Find("Rank/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_AwardScrollView = (base.PanelObject.transform.Find("RewardPanel/Reward/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_NoRankTip = base.PanelObject.transform.Find("Empty/NA"); + this.m_NoRankTip.gameObject.SetActive(false); + this.m_NoRankTipLabel = (this.m_NoRankTip.Find("tip").GetComponent("XUILabel") as IXUILabel); + this.m_YesterdayReward = (base.PanelObject.transform.Find("BtnYesterdayReward").GetComponent("XUIButton") as IXUIButton); + this.m_YesterdayRewardClose = (base.PanelObject.transform.Find("RewardPanel/Reward/Close").GetComponent("XUIButton") as IXUIButton); + this.m_NormalRankContent = (base.PanelObject.transform.Find("Rank/Panel/NormalList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_NormalRankContent.InitContent(); + this.m_ActivityRankContetn = (base.PanelObject.transform.Find("Rank/Panel/ActiveList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ActivityRankContetn.InitContent(); + this.m_MyRankFrameNormal = base.PanelObject.transform.Find("Rank/MyRankFrame/NormalList/Tpl").gameObject; + this.m_MyRankFrameNormal.gameObject.SetActive(false); + this.m_MyRankFrameActivity = base.PanelObject.transform.Find("Rank/MyRankFrame/ActiveList/Tpl").gameObject; + this.m_MyRankFrameActivity.gameObject.SetActive(false); + this.m_CharacterInfoFrame = base.PanelObject.transform.Find("Rank/CharacterInfoFrame").gameObject; + this.m_CharName = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/Name").GetComponent("XUILabel") as IXUILabel); + this.m_CharName.SetText(""); + this.m_CharProfession = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/ProfIcon").GetComponent("XUISprite") as IXUISprite); + this.m_CharGulid = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/GulidIcon").GetComponent("XUISprite") as IXUISprite); + this.m_CharGulid.SetSprite(""); + this.m_CharGulidName = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/Guild").GetComponent("XUILabel") as IXUILabel); + this.m_CharGulidName.SetText(""); + this.m_PlayerSnapshot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_Designation = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/Designation").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation); + this.m_Designation.gameObject.SetActive(false); + this.m_AwardContent = (base.PanelObject.transform.Find("RewardPanel/Reward/Panel/RewardList").GetComponent("XUIWrapContent") as IXUIWrapContent); + Transform tabTpl2 = base.PanelObject.transform.Find("Log/TabList/Panel/TabTpl"); + this.m_FlowerTabControl.SetTabTpl(tabTpl2); + this.m_MyFlowersPanel = (base.PanelObject.transform.Find("Log").GetComponent("XUISprite") as IXUISprite); + this.m_MyFlowersPanel.gameObject.SetActive(false); + this.m_MyFlowersSendTitle = (base.PanelObject.transform.Find("Log/SendTitle").GetComponent("XUILabel") as IXUILabel); + this.m_MyFlowersReceiveTitle = (base.PanelObject.transform.Find("Log/ReceiveTitle").GetComponent("XUILabel") as IXUILabel); + IXUILabel ixuilabel = base.PanelObject.transform.Find("Log/ReceiveTitle/Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(""); + this.m_MyFlowersReceiveTitle.gameObject.SetActive(false); + for (int i = 0; i < 3; i++) + { + IXUILabel ixuilabel2 = base.PanelObject.transform.Find(string.Format("Log/Flower/{0}", i + 1)).GetComponent("XUILabel") as IXUILabel; + this.m_DicFlowerCount.Add((ulong)((long)(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_RED_ROSE) + i)), ixuilabel2); + ixuilabel2.SetText(""); + } + string[] array = new string[] + { + "SendPanel", + "ReceivePanel" + }; + string[] array2 = new string[] + { + "SendList", + "ReceiveList" + }; + for (int j = 0; j < array2.Length; j++) + { + this.m_MyFlowersScrollView[j] = (base.PanelObject.transform.Find(string.Format("Log/{0}", array[j])).GetComponent("XUIScrollView") as IXUIScrollView); + this.m_MyFlowerLogContent[j] = (base.PanelObject.transform.Find(string.Format("Log/{0}/{1}", array[j], array2[j])).GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_MyFlowerLogContent[j].InitContent(); + this.m_MyFlowerLogContent[j].gameObject.SetActive(false); + } + this.m_YesterdayRewardPanel = base.PanelObject.transform.Find("RewardPanel"); + this.m_YesterdayRewardPanel.gameObject.SetActive(false); + this.m_CommonTip = (base.PanelObject.transform.Find("Rank/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_WeekTip1 = (base.PanelObject.transform.Find("Rank/WeekTip1").GetComponent("XUILabel") as IXUILabel); + this.m_WeekTip2 = (base.PanelObject.transform.Find("Rank/WeekTip2").GetComponent("XUILabel") as IXUILabel); + this.m_ActivityTip = (base.PanelObject.transform.Find("Rank/WeekTip3").GetComponent("XUILabel") as IXUILabel); + this.m_ActivityRewardPreviewBtn = (base.PanelObject.transform.Find("Rank/MyRankFrame/ActiveList/Tpl/BtnMy").GetComponent("XUIButton") as IXUIButton); + this.m_ActivityGetRewardBtn = (base.PanelObject.transform.Find("Rank/MyRankFrame/ActiveList/Tpl/BtnGet").GetComponent("XUIButton") as IXUIButton); + this.m_FlowerLogBtn = (base.PanelObject.transform.Find("Rank/MyRankFrame/NormalList/Tpl/BtnMy").GetComponent("XUIButton") as IXUIButton); + this.m_ActivityRewardPreviewPanel = base.PanelObject.transform.Find("ActiveRewardPanel"); + this.m_ActivityRewardPreviewPanel.gameObject.SetActive(false); + this.m_ActivityRewardPreviewClose = (base.PanelObject.transform.Find("ActiveRewardPanel/Reward/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ActivityRewardContent = (base.PanelObject.transform.Find("ActiveRewardPanel/Reward/Panel/RewardList").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_ActivityRewardScrollview = (base.PanelObject.transform.Find("ActiveRewardPanel/Reward/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_ActivityRewardTip = (base.PanelObject.transform.Find("ActiveRewardPanel/T").GetComponent("XUILabel") as IXUILabel); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_NormalRankContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnRankWrapContentItemUpdated)); + this.m_ActivityRankContetn.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnRankWrapContentItemUpdated)); + this.m_MyFlowersPanel.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnLogPanelClosed)); + this.m_MyFlowerLogContent[0].RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnMyFlowersSendLogWrapContentItemUpdated)); + this.m_MyFlowerLogContent[1].RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnMyFlowersReceivedLogWrapContentItemUpdated)); + this.m_FlowerLogBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMyFlowerClicked)); + this.m_AwardContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnAwardWrapContentItemUpdated)); + this.m_YesterdayReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnYesterdayRewardClicked)); + this.m_YesterdayRewardClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnYesterdayRewardClose)); + this.m_ActivityRewardPreviewBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnActivityRewardPreviewClicked)); + this.m_ActivityGetRewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnActivityRewardGetClicked)); + this.m_ActivityRewardPreviewClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnActivityRewardCloseClicked)); + this.m_ActivityRewardContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnActivityRewardWrapContentItemUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("XFlowerRankView", 1); + this.m_CommonTip.SetText(XSingleton.singleton.GetString("FLOWER_ACTIVITY_TIP4")); + this.m_WeekTip1.SetText(XSingleton.singleton.GetString("FLOWER_ACTIVITY_TIP1")); + this.m_WeekTip2.SetText(XSingleton.singleton.GetString("FLOWER_ACTIVITY_TIP2")); + this.m_NoRankTipLabel.SetText(XStringDefineProxy.GetString("FLOWER_NO_RANK_TIP")); + this.m_ActivityTip.SetText(XStringDefineProxy.GetString("FLOWER_ACTIVITY_TIP5", new object[] + { + XSingleton.singleton.GetInt("FlowerActivityAward") + })); + this.m_ActivityRewardTip.SetText(XStringDefineProxy.GetString("FLOWER_NO_RANK_TIP6")); + this.ShowRank(); + } + + public void ShowRank() + { + this._tabs = this.m_TabControl.SetupTabs(this.DefaultTab, new XUITabControl.UITabControlCallback(this.OnTabSelectionChanged), true, 1f); + this.ShowDefaultTabUI(this.DefaultTab); + this.RefreshRedPoint(); + } + + protected override void OnHide() + { + base.Return3DAvatarPool(); + base.OnHide(); + this._PlayerDummy = null; + this.DefaultTab = XSysDefine.XSys_Flower_Rank_Today; + this.ClearPreTabTextures(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("XFlowerRankView", 1); + XSingleton.singleton.EnableCommonDummy(this._PlayerDummy, this.m_PlayerSnapshot, true); + } + + public override void OnUnload() + { + base.Return3DAvatarPool(); + this._PlayerDummy = null; + this._doc.View = null; + base.OnUnload(); + } + + private void ShowDefaultTabUI(XSysDefine sys) + { + this.OnTabSelectionChanged((ulong)((long)sys)); + } + + public void RefreshRedPoint() + { + bool flag = !base.IsVisible(); + if (!flag) + { + for (int i = 0; i < this._tabs.Length; i++) + { + bool flag2 = this._tabs[i] != null; + if (flag2) + { + this._tabs[i].gameObject.transform.Find("RedPoint").gameObject.SetActive(false); + } + } + bool flag3 = this._tabs.Length > 1 && this._tabs[1] != null; + if (flag3) + { + this._tabs[1].gameObject.transform.Find("RedPoint").gameObject.SetActive(this._doc.CanGetAward); + } + bool flag4 = this._tabs.Length > 4 && this._tabs[4] != null; + if (flag4) + { + this._tabs[4].gameObject.transform.Find("RedPoint").gameObject.SetActive(this._doc.CanGetActivityAward); + } + bool flag5 = this._doc.currentSelectRankTab == XRankType.FlowerYesterdayRank; + if (flag5) + { + this.m_YesterdayReward.gameObject.transform.Find("RedPoint").gameObject.SetActive(this._doc.CanGetAward); + } + bool flag6 = this._doc.currentSelectRankTab == XRankType.FlowerActivityRank; + if (flag6) + { + this.m_ActivityGetRewardBtn.SetVisible(this._doc.CanGetActivityAward); + } + } + } + + public void ClearPreTabTextures() + { + foreach (KeyValuePair keyValuePair in this._WrapTextureList) + { + IXUITexture value = keyValuePair.Value; + value.ID = 0UL; + value.SetRuntimeTex(null, true); + } + this._WrapTextureList.Clear(); + } + + public void OnTabSelectionChanged(ulong id) + { + this.ClearPreTabTextures(); + this.FillCharacterInfoFrame(this.emptyUA); + XSysDefine xsysDefine = (XSysDefine)id; + switch (xsysDefine) + { + case XSysDefine.XSys_Flower_Rank_Today: + this._doc.currentSelectRankTab = XRankType.FlowerTodayRank; + goto IL_CE; + case XSysDefine.XSys_Flower_Rank_Yesterday: + this._doc.currentSelectRankTab = XRankType.FlowerYesterdayRank; + this.RefreshRedPoint(); + goto IL_CE; + case XSysDefine.XSys_Flower_Rank_History: + this._doc.currentSelectRankTab = XRankType.FlowerHistoryRank; + goto IL_CE; + case XSysDefine.XSys_Flower_Rank_Week: + this._doc.currentSelectRankTab = XRankType.FlowerWeekRank; + goto IL_CE; + case XSysDefine.XSys_Flower_Rank_Activity: + this._doc.currentSelectRankTab = XRankType.FlowerActivityRank; + this.RefreshRedPoint(); + goto IL_CE; + } + XSingleton.singleton.AddErrorLog("Invalid system id: ", xsysDefine.ToString(), null, null, null, null); + IL_CE: + this.m_SendRoleID = 0UL; + this.ShowTabUI(); + this._doc.ReqRankList(this._doc.currentSelectRankTab); + } + + private void OnRankWrapContentItemUpdated(Transform t, int index) + { + XRankType currentSelectRankTab = this._doc.currentSelectRankTab; + this.rankDataList = this._doc.GetRankList(currentSelectRankTab); + bool flag = this.rankDataList == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", currentSelectRankTab.ToString(), null, null, null, null); + } + else + { + bool flag2 = index >= this.rankDataList.rankList.Count || index < 0; + if (!flag2) + { + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuisprite.ID = (ulong)((long)index); + ixuilabel.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRankItemClicked)); + this.SetWrapRankItem(t.gameObject, this.rankDataList.rankList[index], index); + this.RankListToggleSelection(t.gameObject, (ulong)this._doc.currentSelectIndex == (ulong)((long)index)); + bool flag3 = (ulong)this._doc.currentSelectIndex == (ulong)((long)index); + if (flag3) + { + this.m_LastSelect = t.gameObject; + } + } + } + } + + private void OnActivityRewardWrapContentItemUpdated(Transform t, int index) + { + bool flag = index >= this._doc.GetActivityAwardCount() + 1; + if (flag) + { + XSingleton.singleton.AddErrorLog("index >= rankDataList.rankList.Count", null, null, null, null, null); + } + else + { + this.SetActivityAwardItem(t.gameObject, index); + } + } + + private void SetActivityAwardItem(GameObject go, int rankIndex) + { + IXUILabel ixuilabel = go.transform.Find("T1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + string[] array = new string[] + { + "N1", + "N2", + "N3" + }; + bool flag = rankIndex < 3; + bool flag2; + if (flag) + { + ixuisprite.SetSprite(array[rankIndex]); + ixuisprite.SetVisible(true); + ixuilabel2.SetVisible(false); + ixuilabel.SetVisible(false); + flag2 = true; + } + else + { + bool flag3 = rankIndex < this._doc.GetActivityAwardCount(); + if (flag3) + { + ixuisprite.SetVisible(false); + ixuilabel2.SetText("No." + (rankIndex + 1)); + ixuilabel2.SetVisible(true); + ixuilabel.SetVisible(false); + flag2 = true; + } + else + { + ixuisprite.SetVisible(false); + ixuilabel2.SetVisible(false); + ixuilabel.SetVisible(true); + flag2 = false; + } + } + List list = new List(); + for (int i = 0; i < 4; i++) + { + list.Add(go.transform.Find(string.Format("Item{0}", i))); + list[i].gameObject.SetActive(false); + } + bool flag4 = flag2; + if (flag4) + { + SeqListRef activityAwardInfo = this._doc.GetActivityAwardInfo(rankIndex); + for (int j = 0; j < activityAwardInfo.Count; j++) + { + bool flag5 = j < list.Count; + if (flag5) + { + list[j].gameObject.SetActive(true); + this.SetAwardInfo(list[j], activityAwardInfo[j, 0], activityAwardInfo[j, 1]); + } + } + } + else + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("FlowerActivityAwardList", false); + for (int k = 0; k < (int)sequenceList.Count; k++) + { + bool flag6 = k < list.Count; + if (flag6) + { + list[k].gameObject.SetActive(true); + this.SetAwardInfo(list[k], sequenceList[k, 0], sequenceList[k, 1]); + } + } + } + } + + private void SetAwardInfo(Transform t, int itemID, int itemCount) + { + XSingleton.singleton.normalItemDrawer.DrawItem(t.gameObject, itemID, itemCount, false); + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + private void OnAwardWrapContentItemUpdated(Transform t, int index) + { + bool flag = index >= this._doc.AwardListInfo.listCount; + if (flag) + { + XSingleton.singleton.AddErrorLog("index >= rankDataList.rankList.Count", null, null, null, null, null); + } + else + { + this.SetAwardItem(t.gameObject, index); + } + } + + private void SetAwardItem(GameObject go, int rankIndex) + { + IXUILabel ixuilabel = go.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + string[] array = new string[] + { + "N1", + "N2", + "N3" + }; + bool flag = rankIndex < 3; + if (flag) + { + ixuisprite.SetSprite(array[rankIndex]); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1)); + ixuilabel.SetVisible(true); + } + IXUIButton ixuibutton = go.transform.Find("Btn").GetComponent("XUIButton") as IXUIButton; + bool flag2 = rankIndex == this._doc.AwardListInfo.selfIndex && this._doc.AwardListInfo.canGetAward; + ixuibutton.SetEnable(flag2, false); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetAwardBtnClicked)); + bool sysRedPointState = XSingleton.singleton.GetSysRedPointState(XSysDefine.XSys_FlowerRank); + ixuibutton.gameObject.transform.Find("RedPoint").gameObject.SetActive(flag2 && sysRedPointState); + List list = new List(); + for (int i = 0; i < 4; i++) + { + list.Add(go.transform.Find(string.Format("Item{0}", i))); + list[i].gameObject.SetActive(false); + } + uint num = 0u; + SeqListRef awardInfo = this._doc.GetAwardInfo(rankIndex, out num, true); + bool flag3 = awardInfo.Count == 0; + if (!flag3) + { + IXUISpriteAnimation ixuispriteAnimation = go.transform.Find("ChImage").GetComponent("XUISpriteAnimation") as IXUISpriteAnimation; + ixuispriteAnimation.gameObject.SetActive(num > 0u); + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + DesignationTable.RowData byID = specificDocument._DesignationTable.GetByID((int)num); + bool flag4 = byID != null; + if (flag4) + { + ixuispriteAnimation.SetFrameRate(16); + ixuispriteAnimation.SetNamePrefix(byID.Effect); + IXUISprite ixuisprite2 = go.transform.Find("ChImage").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.MakePixelPerfect(); + } + for (int j = 0; j < awardInfo.Count; j++) + { + bool flag5 = j < list.Count; + if (flag5) + { + list[j].gameObject.SetActive(true); + this.SetAwardInfo(list[j], awardInfo[j, 0], awardInfo[j, 1]); + } + } + } + } + + private void OnRankItemClicked(IXUISprite sp) + { + bool flag = this.m_LastSelect != null; + if (flag) + { + this.RankListToggleSelection(this.m_LastSelect, false); + } + this.RankListToggleSelection(sp.gameObject, true); + this.m_LastSelect = sp.gameObject; + this._doc.SelectItem((uint)sp.ID, false); + } + + private bool OnGetAwardBtnClicked(IXUIButton sp) + { + this._doc.ReqAward(); + return true; + } + + private void RankListToggleSelection(GameObject go, bool bSelect) + { + IXUISprite ixuisprite = go.transform.Find("SelectBg").GetComponent("XUISprite") as IXUISprite; + bool flag = ixuisprite != null; + if (flag) + { + if (bSelect) + { + ixuisprite.SetAlpha(1f); + } + else + { + ixuisprite.SetAlpha(0f); + } + } + } + + public void UpdateCharacterInfo(GetUnitAppearanceRes oRes) + { + this.FillCharacterInfoFrame(oRes.UnitAppearance); + } + + private void FillCharacterInfoFrame(UnitAppearance data) + { + this.m_CharName.SetText(data.unitName); + this.m_CharProfession.SetSprite(XSingleton.singleton.GetProfIcon((int)data.unitType)); + bool flag = data.uID > 0UL; + if (flag) + { + this._PlayerDummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, data, this.m_PlayerSnapshot, this._PlayerDummy); + } + else + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this._PlayerDummy); + this._PlayerDummy = null; + } + } + + private void ShowTabUI() + { + this.m_CharGulidName.SetText(""); + this.m_CharGulid.SetSprite(""); + this.m_NormalRankContent.gameObject.SetActive(this._doc.currentSelectRankTab != XRankType.FlowerActivityRank); + this.m_ActivityRankContetn.gameObject.SetActive(this._doc.currentSelectRankTab == XRankType.FlowerActivityRank); + this.m_MyRankFrameNormal.gameObject.SetActive(this._doc.currentSelectRankTab != XRankType.FlowerActivityRank); + this.m_MyRankFrameActivity.gameObject.SetActive(this._doc.currentSelectRankTab == XRankType.FlowerActivityRank); + bool flag = this._doc.currentSelectRankTab != XRankType.FlowerActivityRank; + if (flag) + { + this.m_ActivityRankContetn.SetContentCount(0, false); + } + bool flag2 = this._doc.currentSelectRankTab == XRankType.FlowerActivityRank; + if (flag2) + { + this.m_NormalRankContent.SetContentCount(0, false); + } + this.m_YesterdayReward.gameObject.SetActive(this._doc.currentSelectRankTab == XRankType.FlowerYesterdayRank); + this.m_WeekTip1.gameObject.SetActive(this._doc.currentSelectRankTab == XRankType.FlowerWeekRank); + this.m_WeekTip2.gameObject.SetActive(this._doc.currentSelectRankTab == XRankType.FlowerWeekRank); + this.m_CommonTip.gameObject.SetActive(this._doc.currentSelectRankTab != XRankType.FlowerWeekRank && this._doc.currentSelectRankTab != XRankType.FlowerActivityRank); + this.m_ActivityTip.gameObject.SetActive(this._doc.currentSelectRankTab == XRankType.FlowerActivityRank); + this.m_Designation.gameObject.SetActive(false); + } + + public void RefreshAwardInfo() + { + this.m_AwardContent.SetContentCount(this._doc.AwardListInfo.listCount, false); + this.m_AwardScrollView.ResetPosition(); + } + + public void ReReqRank() + { + bool flag = !base.IsVisible() || this._doc == null; + if (!flag) + { + this._doc.ReqRankList(this._doc.currentSelectRankTab); + } + } + + public void RefreshRankWindow() + { + bool flag = !base.IsVisible(); + if (!flag) + { + this.ShowTabUI(); + this.m_MyRankFrameNormal.SetActive(this._doc.currentSelectRankTab != XRankType.FlowerActivityRank); + this.m_MyRankFrameActivity.SetActive(this._doc.currentSelectRankTab == XRankType.FlowerActivityRank); + XBaseRankList rankList = this._doc.GetRankList(this._doc.currentSelectRankTab); + bool flag2 = rankList == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", this._doc.currentSelectRankTab.ToString(), null, null, null, null); + } + else + { + this.m_NoRankTip.gameObject.SetActive(rankList.rankList.Count == 0); + GameObject go = (this._doc.currentSelectRankTab == XRankType.FlowerActivityRank) ? this.m_MyRankFrameActivity : this.m_MyRankFrameNormal; + IXUIWrapContent ixuiwrapContent = (this._doc.currentSelectRankTab == XRankType.FlowerActivityRank) ? this.m_ActivityRankContetn : this.m_NormalRankContent; + ixuiwrapContent.SetContentCount(rankList.rankList.Count, false); + this.SetMyRankFrame(go, rankList.GetLatestMyRankInfo()); + this.m_RankScrollView.ResetPosition(); + bool flag3 = this.m_LastSelect != null; + if (flag3) + { + this.RankListToggleSelection(this.m_LastSelect, false); + } + uint index = 0u; + for (int i = 0; i < rankList.rankList.Count; i++) + { + bool flag4 = this.m_SendRoleID == rankList.rankList[i].id; + if (flag4) + { + bool flag5 = rankList.rankList.Count > 3; + if (flag5) + { + float position = (rankList.rankList.Count == 1) ? 0f : ((float)i / (float)(rankList.rankList.Count - 1)); + this.m_RankScrollView.SetPosition(position); + } + index = (uint)i; + break; + } + } + bool flag6 = rankList.rankList.Count > 0; + if (flag6) + { + this._doc.SelectItem(index, true); + } + } + } + } + + public void RefreshCharacterInfo(XBaseRankInfo info, uint index) + { + this.m_CharGulidName.SetText(info.guildname); + bool flag = info.guildname == ""; + if (flag) + { + this.m_CharGulid.SetSprite(""); + } + else + { + this.m_CharGulid.SetSprite(XGuildDocument.GetPortraitName((int)info.guildicon)); + } + this.m_Designation.gameObject.SetActive(false); + bool flag2 = this._doc.currentSelectRankTab == XRankType.FlowerYesterdayRank || this._doc.currentSelectRankTab == XRankType.FlowerHistoryRank; + if (flag2) + { + uint key = 0u; + bool flag3 = this._doc.GetAwardInfo((int)index, out key, this._doc.currentSelectRankTab == XRankType.FlowerYesterdayRank).Count > 0; + if (flag3) + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + DesignationTable.RowData byID = specificDocument._DesignationTable.GetByID((int)key); + this.m_Designation.SetFrameRate(16); + this.m_Designation.SetNamePrefix(byID.Effect); + IXUISprite ixuisprite = this.m_Designation.gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.MakePixelPerfect(); + this.m_Designation.gameObject.SetActive(true); + } + } + } + + public void RefreshRankContent() + { + IXUIWrapContent ixuiwrapContent = (this._doc.currentSelectRankTab == XRankType.FlowerActivityRank) ? this.m_ActivityRankContetn : this.m_NormalRankContent; + ixuiwrapContent.RefreshAllVisibleContents(); + } + + private void SetWrapRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null; + if (flag) + { + ixuilabel.SetText(string.Empty); + this.SetRank(go, XRankDocument.INVALID_RANK); + } + else + { + IXUISprite ixuisprite = go.transform.Find("headboard/head").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)index); + IXUITexture value = go.transform.Find("headboard/platHead").GetComponent("XUITexture") as IXUITexture; + IXUIButton ixuibutton = go.transform.Find("BtnSend").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)index); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSendFlowerClicked)); + bool flag2 = this._doc.currentSelectRankTab == XRankType.FlowerActivityRank; + if (flag2) + { + ixuibutton.SetVisible(!this._doc.IsActivityShowTime()); + } + else + { + ixuibutton.SetVisible(true); + } + this.SetBaseRankItem(go, info, index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnRankItemRoleClicked)); + this._WrapTextureList[go] = value; + } + } + + private void SetBaseRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("headboard/head").GetComponent("XUISprite") as IXUISprite; + IXUITexture texture = go.transform.Find("headboard/platHead").GetComponent("XUITexture") as IXUITexture; + IXUISprite spr = go.transform.Find("headboard/head/AvatarFrame").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.ParseHeadIcon(info.setid, spr); + string text = ""; + bool flag = info == null; + if (flag) + { + ixuilabel.SetText(string.Empty); + this.SetRank(go, XRankDocument.INVALID_RANK); + } + else + { + this.SetDesignation(ixuilabel.gameObject.transform, info.name, 0u); + this.SetRank(go, info.rank); + bool flag2 = this._doc.currentSelectRankTab == XRankType.FlowerYesterdayRank || this._doc.currentSelectRankTab == XRankType.FlowerHistoryRank; + if (flag2) + { + uint desID = 0u; + bool flag3 = this._doc.GetAwardInfo(index, out desID, this._doc.currentSelectRankTab == XRankType.FlowerYesterdayRank).Count != 0; + if (flag3) + { + Transform go2 = go.transform.Find("Name"); + this.SetDesignation(go2, info.name, desID); + } + } + bool flag4 = this._doc.currentSelectRankTab == XRankType.FlowerActivityRank; + if (flag4) + { + IXUILabel ixuilabel3 = go.transform.Find("Guild").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = go.transform.Find("Guild/icon").GetComponent("XUISprite") as IXUISprite; + XFlowerRankActivityInfo xflowerRankActivityInfo = info as XFlowerRankActivityInfo; + bool flag5 = xflowerRankActivityInfo != null; + if (flag5) + { + ixuilabel2.SetText(this.FormatFlowerCount(xflowerRankActivityInfo.flowerCount)); + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)xflowerRankActivityInfo.profession)); + text = xflowerRankActivityInfo.headPicUrl; + ixuilabel3.SetText(xflowerRankActivityInfo.guildname); + ixuisprite2.SetSprite(XGuildDocument.GetPortraitName((int)xflowerRankActivityInfo.guildicon)); + ixuilabel3.SetVisible(xflowerRankActivityInfo.guildname != ""); + ixuisprite2.SetVisible(xflowerRankActivityInfo.guildname != ""); + } + } + else + { + XFlowerRankNormalInfo xflowerRankNormalInfo = info as XFlowerRankNormalInfo; + bool flag6 = xflowerRankNormalInfo != null; + if (flag6) + { + IXUILabel ixuilabel4 = go.transform.Find("Flower/1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = go.transform.Find("Flower/2").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel6 = go.transform.Find("Flower/3").GetComponent("XUILabel") as IXUILabel; + uint count = 0u; + uint count2 = 0u; + uint count3 = 0u; + xflowerRankNormalInfo.receivedFlowers.TryGetValue((ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_RED_ROSE)), out count); + xflowerRankNormalInfo.receivedFlowers.TryGetValue((ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_WHITE_ROSE)), out count2); + xflowerRankNormalInfo.receivedFlowers.TryGetValue((ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_BLUE_ENCHANTRESS)), out count3); + ixuilabel4.SetText(this.FormatFlowerCount(count)); + ixuilabel5.SetText(this.FormatFlowerCount(count2)); + ixuilabel6.SetText(this.FormatFlowerCount(count3)); + ixuilabel2.SetText(this.FormatFlowerCount(xflowerRankNormalInfo.flowerCount)); + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)xflowerRankNormalInfo.profession)); + text = xflowerRankNormalInfo.headPicUrl; + } + } + XSingleton.singleton.Load((text != "") ? text : string.Empty, texture, DlgBase.singleton.uiBehaviour); + } + } + + private void SetMyRankFrame(GameObject go, XBaseRankInfo info) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("headboard/viplevel").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("headboard/head").GetComponent("XUISprite") as IXUISprite; + IXUITexture ixuitexture = go.transform.Find("headboard/platHead").GetComponent("XUITexture") as IXUITexture; + IXUILabel ixuilabel3 = go.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.name == ""; + if (flag) + { + go.SetActive(false); + } + else + { + GameObject gameObject = go.transform.Find("OutOfRange").gameObject; + gameObject.SetActive(info.rank == XFlowerRankDocument.INVALID_RANK); + go.SetActive(true); + ixuilabel2.gameObject.SetActive(false); + bool flag2 = this._doc.currentSelectRankTab == XRankType.FlowerActivityRank; + if (flag2) + { + XFlowerRankActivityInfo xflowerRankActivityInfo = info as XFlowerRankActivityInfo; + bool flag3 = xflowerRankActivityInfo != null; + if (flag3) + { + xflowerRankActivityInfo.profession = (uint)XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + xflowerRankActivityInfo.headPicUrl = ((XSingleton.singleton.playerInfo != null) ? XSingleton.singleton.playerInfo.data.pictureLarge : ""); + } + } + else + { + XFlowerRankNormalInfo xflowerRankNormalInfo = info as XFlowerRankNormalInfo; + bool flag4 = xflowerRankNormalInfo != null; + if (flag4) + { + xflowerRankNormalInfo.profession = (uint)XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession); + xflowerRankNormalInfo.headPicUrl = ((XSingleton.singleton.playerInfo != null) ? XSingleton.singleton.playerInfo.data.pictureLarge : ""); + } + } + this.SetBaseRankItem(go, info, (int)info.rank); + } + } + + private void SetDesignation(Transform go, string name, uint desID) + { + IXUILabelSymbol ixuilabelSymbol = go.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + DesignationTable.RowData byID = specificDocument._DesignationTable.GetByID((int)desID); + string inputText = name; + bool flag = byID != null; + if (flag) + { + bool flag2 = byID.Effect != ""; + if (flag2) + { + inputText = string.Format("{0}{1}", XLabelSymbolHelper.FormatDesignation(byID.Atlas, byID.Effect, 16), name); + } + else + { + inputText = string.Format("{0}{1}{2}", XSingleton.singleton.GetValue("XUILabelSymbolDesignationColor"), byID.Designation, name); + } + } + ixuilabelSymbol.InputText = inputText; + } + + private string FormatFlowerCount(uint count) + { + bool flag = count >= 100000000u; + string result; + if (flag) + { + count /= 100000000u; + string text = string.Format("{0}{1}", count, XStringDefineProxy.GetString("NumberSeparator1")); + result = text; + } + else + { + bool flag2 = count >= 100000u; + if (flag2) + { + count /= 10000u; + string text2 = string.Format("{0}{1}", count, XStringDefineProxy.GetString("NumberSeparator0")); + result = text2; + } + else + { + result = count.ToString(); + } + } + return result; + } + + private void SetRank(GameObject go, uint rankIndex) + { + IXUILabel ixuilabel = go.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = rankIndex == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + string[] array = new string[] + { + "N1", + "N2", + "N3" + }; + bool flag2 = rankIndex < 3u; + if (flag2) + { + ixuisprite.SetSprite(array[(int)rankIndex]); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1u)); + ixuilabel.SetVisible(true); + } + } + } + + private bool OnSendFlowerClicked(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num < this.rankDataList.rankList.Count; + if (flag) + { + bool flag2 = this.rankDataList.rankList[num].id == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.m_SendRoleID = 0UL; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FLOWER_SEND_ERR_SELF"), "fece00"); + return true; + } + this.m_SendRoleID = this.rankDataList.rankList[num].id; + DlgBase.singleton.ShowBoard(this.rankDataList.rankList[num].id, this.rankDataList.rankList[num].name); + } + return true; + } + + private bool OnMyFlowerClicked(IXUIButton btn) + { + this.m_MyFlowersPanel.gameObject.SetActive(true); + this._doc.ReqMyFlowersInfo(); + this.m_FlowerTabControl.SetupTabs(XSysDefine.XSys_Flower_Log, new XUITabControl.UITabControlCallback(this.OnFlowerTabSelectionChanged), true, 1f); + return true; + } + + private bool OnActivityRewardPreviewClicked(IXUIButton btn) + { + this.m_ActivityRewardPreviewPanel.gameObject.SetActive(true); + this.m_ActivityRewardContent.SetContentCount(this._doc.GetActivityAwardCount() + 1, false); + this.m_ActivityRewardScrollview.ResetPosition(); + return true; + } + + private bool OnActivityRewardCloseClicked(IXUIButton btn) + { + this.m_ActivityRewardPreviewPanel.gameObject.SetActive(false); + return true; + } + + private bool OnActivityRewardGetClicked(IXUIButton btn) + { + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument.GetFlowerActivityReward(); + return true; + } + + private void OnFlowerTabSelectionChanged(ulong id) + { + XSysDefine myFlowersTab = (XSysDefine)id; + this._myFlowersTab = myFlowersTab; + bool flag = this._doc.FlowerPageData == null; + if (!flag) + { + this.RefreshMyFlowersPage(); + } + } + + private void OnLogPanelClosed(IXUISprite spr) + { + this.m_MyFlowersPanel.gameObject.SetActive(false); + } + + private void OnRankItemRoleClicked(IXUISprite iSp) + { + this._doc.SelectItem((uint)iSp.ID, false); + XRankType currentSelectRankTab = this._doc.currentSelectRankTab; + XBaseRankList rankList = this._doc.GetRankList(currentSelectRankTab); + bool flag = (int)iSp.ID < rankList.rankList.Count; + if (flag) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(rankList.rankList[(int)iSp.ID].id, false); + } + } + + private void OnRankItemRoleClicked(IXUITexture iSp) + { + this._doc.SelectItem((uint)iSp.ID, false); + XRankType currentSelectRankTab = this._doc.currentSelectRankTab; + XBaseRankList rankList = this._doc.GetRankList(currentSelectRankTab); + bool flag = (int)iSp.ID < rankList.rankList.Count; + if (flag) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(rankList.rankList[(int)iSp.ID].id, false); + } + } + + public void RefreshMyFlowersPage() + { + IXUIWrapContent ixuiwrapContent = null; + List list = null; + int num = 0; + XSysDefine myFlowersTab = this._myFlowersTab; + if (myFlowersTab != XSysDefine.XSys_Flower_Log_Send) + { + if (myFlowersTab == XSysDefine.XSys_Flower_Log_Receive) + { + this.m_MyFlowersSendTitle.gameObject.SetActive(false); + this.m_MyFlowersReceiveTitle.gameObject.SetActive(true); + this.m_MyFlowerLogContent[0].gameObject.SetActive(false); + this.m_MyFlowerLogContent[1].gameObject.SetActive(true); + ixuiwrapContent = this.m_MyFlowerLogContent[1]; + list = this._doc.FlowerPageData.receiveFlowersTotal; + List receiveRank = this._doc.FlowerPageData.receiveRank; + num = receiveRank.Count; + } + } + else + { + this.m_MyFlowersSendTitle.gameObject.SetActive(true); + this.m_MyFlowersReceiveTitle.gameObject.SetActive(false); + this.m_MyFlowerLogContent[0].gameObject.SetActive(true); + this.m_MyFlowerLogContent[1].gameObject.SetActive(false); + ixuiwrapContent = this.m_MyFlowerLogContent[0]; + list = this._doc.FlowerPageData.sendFlowersTotal; + List sendLog = this._doc.FlowerPageData.sendLog; + num = sendLog.Count; + } + foreach (KeyValuePair keyValuePair in this.m_DicFlowerCount) + { + keyValuePair.Value.SetText("0"); + } + uint num2 = 0u; + for (int i = 0; i < list.Count; i++) + { + bool flag = this.m_DicFlowerCount.ContainsKey(list[i].key); + if (flag) + { + this.m_DicFlowerCount[list[i].key].SetText(this.FormatFlowerCount(list[i].value)); + } + num2 += XFlowerRankDocument.GetFlowerCharmPoint(list[i].key) * list[i].value; + } + bool flag2 = this._myFlowersTab == XSysDefine.XSys_Flower_Log_Receive; + if (flag2) + { + IXUILabel ixuilabel = this.m_MyFlowersReceiveTitle.gameObject.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this.FormatFlowerCount(num2)); + } + ixuiwrapContent.SetContentCount(num, false); + this.m_MyFlowersScrollView[0].ResetPosition(); + this.m_MyFlowersScrollView[1].ResetPosition(); + } + + private void OnMyFlowersSendLogWrapContentItemUpdated(Transform t, int index) + { + bool flag = index >= this._doc.FlowerPageData.sendLog.Count || index < 0; + if (!flag) + { + FlowerInfo2Client flowerInfo2Client = this._doc.FlowerPageData.sendLog[this._doc.FlowerPageData.sendLog.Count - 1 - index]; + IXUISprite ixuisprite = t.Find("1/Flower").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(flowerInfo2Client.roleName); + ixuilabel2.SetText(this.FormatFlowerCount(flowerInfo2Client.count)); + ixuisprite.SetSprite(string.Format("icon-{0}", flowerInfo2Client.itemID)); + uint count = flowerInfo2Client.count * XFlowerRankDocument.GetFlowerCharmPoint((ulong)flowerInfo2Client.itemID); + ixuilabel3.SetText(string.Format(XStringDefineProxy.GetString("FLOWER_SEND_LOG"), this.FormatFlowerCount(count))); + } + } + + private void OnMyFlowersReceivedLogWrapContentItemUpdated(Transform t, int index) + { + bool flag = index >= this._doc.FlowerPageData.receiveRank.Count || index < 0; + if (!flag) + { + ReceiveRoleFlowerInfo2Client receiveRoleFlowerInfo2Client = this._doc.FlowerPageData.receiveRank[index]; + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(receiveRoleFlowerInfo2Client.roleName); + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < 3; i++) + { + IXUILabel ixuilabel2 = t.Find(string.Format("Flower/{0}", i + 1)).GetComponent("XUILabel") as IXUILabel; + dictionary.Add((ulong)((long)(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_RED_ROSE) + i)), ixuilabel2); + ixuilabel2.SetText("0"); + } + for (int j = 0; j < receiveRoleFlowerInfo2Client.flowers.Count; j++) + { + MapIntItem mapIntItem = receiveRoleFlowerInfo2Client.flowers[j]; + bool flag2 = dictionary.ContainsKey(mapIntItem.key); + if (flag2) + { + dictionary[mapIntItem.key].SetText(this.FormatFlowerCount(mapIntItem.value)); + } + } + } + } + + private bool OnYesterdayRewardClicked(IXUIButton btn) + { + this._doc.ReqAwardList(); + this.m_YesterdayRewardPanel.gameObject.SetActive(true); + return true; + } + + private bool OnYesterdayRewardClose(IXUIButton btn) + { + this.m_YesterdayRewardPanel.gameObject.SetActive(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerRankHandler.cs.meta new file mode 100644 index 00000000..3a43dd23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd9b1790e31d80644a0645519ca03242 +timeCreated: 1611404455 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs new file mode 100644 index 00000000..bb36e111 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class XFlowerRankNormalInfo : XBaseRankInfo + { + public uint flowerCount; + + public uint profession; + + public Dictionary receivedFlowers = new Dictionary(); + + public string headPicUrl; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, data.RoleName); + this.id = data.RoleId; + this.rank = data.Rank; + this.guildicon = data.guildicon; + this.guildname = data.guildname; + this.flowerCount = data.flowercount; + this.profession = data.profession; + this.headPicUrl = data.headpic; + this.setid = ((data.pre == null) ? new List() : data.pre.setid); + this.receivedFlowers.Clear(); + foreach (MapIntItem mapIntItem in data.receiveFlowers) + { + bool flag = !this.receivedFlowers.ContainsKey(mapIntItem.key); + if (flag) + { + this.receivedFlowers.Add(mapIntItem.key, mapIntItem.value); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs.meta new file mode 100644 index 00000000..2960b362 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e142295bd0d5d974bb2f4e348adbff0c +timeCreated: 1611404701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankNormalList.cs b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalList.cs new file mode 100644 index 00000000..a30871e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XFlowerRankNormalList : XBaseRankList + { + public XFlowerRankNormalList() + { + this.type = XRankType.FlowerTodayRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XFlowerRankNormalInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerRankNormalList.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalList.cs.meta new file mode 100644 index 00000000..2c57d6fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerRankNormalList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 822561f344cc587409fea21f84742a3e +timeCreated: 1611404039 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerReplyDocument.cs b/Client/Assets/Scripts/XMainClient/XFlowerReplyDocument.cs new file mode 100644 index 00000000..93354df1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerReplyDocument.cs @@ -0,0 +1,179 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFlowerReplyDocument : XDocComponent + { + public override uint ID + { + get + { + return XFlowerReplyDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FlowerReplyDocument"); + + public XFlowerReplyView View; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static FlowerRain _flowerRainTable = new FlowerRain(); + + public static FlowerSendNoticeTable _flowerNoticeTable = new FlowerSendNoticeTable(); + + private List _receiveFlowerMsgCache = new List(); + + private bool _sceneLoading = true; + + public static void Execute(OnLoadedCallback callback = null) + { + XFlowerReplyDocument.AsyncLoader.AddTask("Table/FlowerRain", XFlowerReplyDocument._flowerRainTable, false); + XFlowerReplyDocument.AsyncLoader.AddTask("Table/FlowerNotice", XFlowerReplyDocument._flowerNoticeTable, false); + XFlowerReplyDocument.AsyncLoader.Execute(callback); + } + + public void OnReceiveFlower(ReceiveFlowerData data) + { + bool inTutorial = XSingleton.singleton.InTutorial; + if (!inTutorial) + { + bool sceneLoading = this._sceneLoading; + if (!sceneLoading) + { + bool flag = this._receiveFlowerMsgCache.Count == 0; + if (flag) + { + this._receiveFlowerMsgCache.Add(data); + } + else + { + bool flag2 = data.sendRoleID != this._receiveFlowerMsgCache[this._receiveFlowerMsgCache.Count - 1].sendRoleID; + if (flag2) + { + this._receiveFlowerMsgCache.Add(data); + } + } + } + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool inTutorial = XSingleton.singleton.InTutorial; + if (!inTutorial) + { + bool sceneLoading = this._sceneLoading; + if (!sceneLoading) + { + bool flag = this._receiveFlowerMsgCache.Count > 0; + if (flag) + { + bool flag2 = !DlgBase.singleton.IsVisible(); + if (flag2) + { + this.DisposeMsg(this._receiveFlowerMsgCache[0]); + } + } + } + } + } + + private void DisposeMsg(ReceiveFlowerData data) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.ShowView(data.itemID, data.sendRoleID, data.sendName, data.power, data.profession, data.vip, data.itemCount); + XFlowerReplyView singleton = DlgBase.singleton; + singleton.OnClosed = (Action)Delegate.Combine(singleton.OnClosed, new Action(this.OnReplyViewClosed)); + } + } + + public void OnReplyViewClosed() + { + XFlowerReplyView singleton = DlgBase.singleton; + singleton.OnClosed = (Action)Delegate.Remove(singleton.OnClosed, new Action(this.OnReplyViewClosed)); + bool flag = this._receiveFlowerMsgCache.Count > 0; + if (flag) + { + this._receiveFlowerMsgCache.RemoveAt(0); + } + } + + public void OnShowFlowerRain(ReceiveFlowerData data) + { + bool flag = !XDocuments.GetSpecificDocument(XOptionsDocument.uuID).Flowerrain; + if (!flag) + { + bool sceneLoading = this._sceneLoading; + if (!sceneLoading) + { + FlowerRain.RowData flowerRain = this.GetFlowerRain(data.itemID, data.itemCount); + bool flag2 = flowerRain != null; + if (flag2) + { + Transform transform = XSingleton.singleton.UIRoot.Find("Camera").transform; + bool flag3 = transform != null; + if (flag3) + { + XFx xfx = XSingleton.singleton.CreateUIFx(flowerRain.EffectPath, transform, false); + xfx.DelayDestroy = (float)flowerRain.PlayTime; + XSingleton.singleton.DestroyFx(xfx, false); + } + } + } + } + } + + private FlowerRain.RowData GetFlowerRain(int flowerID, int sendCount) + { + foreach (FlowerRain.RowData rowData in XFlowerReplyDocument._flowerRainTable.Table) + { + bool flag = rowData.FlowerID == flowerID && sendCount == rowData.Count; + if (flag) + { + return rowData; + } + } + return null; + } + + public string GetThxContent(int flowerID, int sendCount) + { + for (int i = 0; i < XFlowerReplyDocument._flowerNoticeTable.Table.Length; i++) + { + FlowerSendNoticeTable.RowData rowData = XFlowerReplyDocument._flowerNoticeTable.Table[i]; + bool flag = rowData.ItemID == flowerID && rowData.Num == sendCount; + if (flag) + { + return rowData.ThanksWords; + } + } + return ""; + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this._sceneLoading = true; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + this._sceneLoading = false; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerReplyDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerReplyDocument.cs.meta new file mode 100644 index 00000000..4b4b151c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerReplyDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c16d0bd1a641e946acb7747efa2c90e +timeCreated: 1611403342 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerSendBehaviour.cs b/Client/Assets/Scripts/XMainClient/XFlowerSendBehaviour.cs new file mode 100644 index 00000000..36d8228f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerSendBehaviour.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFlowerSendBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public XUIPool m_TabPool; + + public IXUILabel m_PointTip; + + public XUIPool m_SendItemPool; + + public IXUIList m_SendItemList; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/P1"); + this.m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_SendItemList = (base.transform.Find("Bg/List").GetComponent("XUIList") as IXUIList); + Transform transform2 = base.transform.Find("Bg/List/Tpl"); + this.m_SendItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + this.m_SendItemPool.SetupPool(transform2.parent.gameObject, transform2.gameObject, 5u, false); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_PointTip = (base.transform.Find("Bg/T1").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerSendBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerSendBehaviour.cs.meta new file mode 100644 index 00000000..5e5ea463 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerSendBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f11c3eef1c7d29d4696f65b126b39cab +timeCreated: 1611404836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerSendDocument.cs b/Client/Assets/Scripts/XMainClient/XFlowerSendDocument.cs new file mode 100644 index 00000000..5788bf9e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerSendDocument.cs @@ -0,0 +1,91 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFlowerSendDocument : XDocComponent + { + public override uint ID + { + get + { + return XFlowerSendDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FlowerSendDocument"); + + public void SendFlower(ulong roleID, uint count, uint sendItemID) + { + RpcC2G_SendFlower rpcC2G_SendFlower = new RpcC2G_SendFlower(); + rpcC2G_SendFlower.oArg.roleid = roleID; + rpcC2G_SendFlower.oArg.count = count; + rpcC2G_SendFlower.oArg.sendItemID = sendItemID; + XSingleton.singleton.Send(rpcC2G_SendFlower); + } + + public void SendFlower(ulong roleID, uint count, uint sendItemID, uint needCostID, uint needCostCount) + { + RpcC2G_SendFlower rpcC2G_SendFlower = new RpcC2G_SendFlower(); + rpcC2G_SendFlower.oArg.roleid = roleID; + rpcC2G_SendFlower.oArg.count = count; + rpcC2G_SendFlower.oArg.sendItemID = sendItemID; + rpcC2G_SendFlower.oArg.costItemID = needCostID; + rpcC2G_SendFlower.oArg.costItemNum = needCostCount; + XSingleton.singleton.Send(rpcC2G_SendFlower); + } + + public void OnSendFlower(SendFlowerArg oArg, SendFlowerRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + DlgBase.singleton.RefreshSendFlowerInfo(); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)oArg.sendItemID); + string arg = (itemConf != null) ? XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u) : ""; + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("FLOWER_SEND_SUC"), oArg.count, arg), "fece00"); + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + bool flag2 = specificDocument.View != null && specificDocument.View.IsVisible(); + if (flag2) + { + specificDocument.View.ReReqRank(); + } + } + else + { + bool flag3 = oRes.errorcode == ErrorCode.ERR_ITEM_NEED_DIAMOND; + if (flag3) + { + DlgBase.singleton.ShowGoToMallError(oArg); + } + else + { + bool flag4 = oRes.errorcode == ErrorCode.ERR_ITEM_NOT_ENOUGH; + if (flag4) + { + DlgBase.singleton.FlowerNotEnough(oArg); + } + else + { + bool flag5 = oRes.errorcode == ErrorCode.ERR_SHOP_LACKMONEY; + if (flag5) + { + DlgBase.singleton.ShowLackMoneyError(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerSendDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerSendDocument.cs.meta new file mode 100644 index 00000000..635c9014 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerSendDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a430337e91e170e4c9dbb7e02e5a0184 +timeCreated: 1611404281 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlowerSendView.cs b/Client/Assets/Scripts/XMainClient/XFlowerSendView.cs new file mode 100644 index 00000000..f415aff0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerSendView.cs @@ -0,0 +1,321 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFlowerSendView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/FlowerSendDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XFlowerSendDocument _doc = null; + + private static readonly int SEND_FLOWER_TYPE_COUNT = 3; + + private string[] sendCountType; + + private List ownCount = new List(); + + private List flowerTab = new List(); + + private List sendItem = new List(); + + private GameObject currSelectTab; + + private XFlowerSendView.SendFlowerType currSelectTabType; + + private ulong roleIDSendTo; + + private string roleNameSendTo; + + private uint sendFlowerId; + + private uint sendFlowerCount; + + private uint needCostID; + + private uint needCostCount; + + private enum SendFlowerType + { + RED_ROSE, + WHITE_ROSE, + BLUE_ENCHANTRESS + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XFlowerSendDocument.uuID); + this.InitFlowerBtnInfo(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + private void InitFlowerBtnInfo() + { + this.flowerTab.Clear(); + this.sendItem.Clear(); + this.ownCount.Clear(); + string[] array = new string[] + { + "icon-90", + "icon-91", + "icon-92" + }; + for (int i = 0; i < XFlowerSendView.SEND_FLOWER_TYPE_COUNT; i++) + { + GameObject gameObject = base.uiBehaviour.m_TabPool.FetchGameObject(false); + gameObject.transform.localPosition = gameObject.transform.localPosition + new Vector3(0f, (float)(-90 * i), 0f); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = gameObject.transform.Find("T1").GetComponent("XUILabel") as IXUILabel; + IXUILabel item = gameObject.transform.Find("T2").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite2 = gameObject.transform.Find("P2").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)i); + ixuilabel.SetText(XStringDefineProxy.GetString(string.Format("FLOWER_SEND_TYPE_{0}", i))); + ixuisprite2.SetSprite(array[i]); + this.flowerTab.Add(gameObject); + this.ownCount.Add(item); + this.SetTabSelect(gameObject, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSendRoseTypeClicked)); + } + this.sendCountType = XSingleton.singleton.GetAndSeparateValue("SendFlowerCount", XGlobalConfig.ListSeparator); + for (int j = 0; j < this.sendCountType.Length; j++) + { + GameObject gameObject2 = base.uiBehaviour.m_SendItemPool.FetchGameObject(false); + gameObject2.transform.parent = base.uiBehaviour.m_SendItemList.gameObject.transform; + IXUISprite ixuisprite3 = gameObject2.GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = gameObject2.transform.Find("T1").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format("{0}{1}", this.sendCountType[j], XStringDefineProxy.GetString("FLOWER_UNIT"))); + ixuisprite3.ID = (ulong)((long)j); + this.sendItem.Add(gameObject2); + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSendItemClicked)); + } + base.uiBehaviour.m_SendItemList.Refresh(); + this.SelectTab(XFlowerSendView.SendFlowerType.RED_ROSE); + } + + private void SelectTab(XFlowerSendView.SendFlowerType type) + { + bool flag = this.currSelectTab != null; + if (flag) + { + this.SetTabSelect(this.currSelectTab, false); + } + this.currSelectTabType = type; + int num = XFastEnumIntEqualityComparer.ToInt(type); + this.currSelectTab = this.flowerTab[num]; + this.SetTabSelect(this.currSelectTab, true); + int num2 = XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_RED_ROSE) + XFastEnumIntEqualityComparer.ToInt(this.currSelectTabType); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("Flower2Charm", XGlobalConfig.AllSeparators); + int num3 = 0; + for (int i = 0; i < andSeparateValue.Length; i += 2) + { + bool flag2 = num2 == int.Parse(andSeparateValue[i]); + if (flag2) + { + num3 = int.Parse(andSeparateValue[i + 1]); + } + } + for (int j = 0; j < this.sendCountType.Length; j++) + { + GameObject gameObject = this.sendItem[j]; + IXUILabel ixuilabel = gameObject.transform.Find("T3").GetComponent("XUILabel") as IXUILabel; + int num4 = int.Parse(this.sendCountType[j]) * num3; + ixuilabel.SetText("+" + num4); + } + string text = string.Format(XStringDefineProxy.GetString("FLOWER_SEND_TIP"), XStringDefineProxy.GetString(string.Format("FLOWER_SEND_TYPE_{0}", num)), num3); + base.uiBehaviour.m_PointTip.SetText(text); + } + + private void OnSendRoseTypeClicked(IXUISprite sp) + { + this.SelectTab((XFlowerSendView.SendFlowerType)sp.ID); + } + + private void OnSendItemClicked(IXUISprite sp) + { + int num = (int)sp.ID; + bool flag = num >= this.sendCountType.Length; + if (!flag) + { + bool flag2 = XSingleton.singleton.SceneType != SceneType.SCENE_HALL && XSingleton.singleton.SceneType != SceneType.SCENE_GUILD_HALL && XSingleton.singleton.SceneType != SceneType.SCENE_FAMILYGARDEN && XSingleton.singleton.SceneType != SceneType.SCENE_LEISURE; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FLOWER_SEND_SCENE_TIP"), "fece00"); + } + else + { + uint count = uint.Parse(this.sendCountType[num]); + uint sendItemID = (uint)(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_RED_ROSE) + XFastEnumIntEqualityComparer.ToInt(this.currSelectTabType)); + this._doc.SendFlower(this.roleIDSendTo, count, sendItemID); + } + } + } + + public void FlowerNotEnough(SendFlowerArg oArg) + { + this.sendFlowerCount = oArg.count; + this.sendFlowerId = oArg.sendItemID; + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("BuyFlowerCost", XGlobalConfig.ListSeparator); + int itemCount = XSingleton.singleton.GetItemCount((int)oArg.sendItemID); + for (int i = 0; i < andSeparateValue.Length; i++) + { + string[] array = andSeparateValue[i].Split(new char[] + { + '=' + }); + bool flag = array.Length == 3; + if (flag) + { + bool flag2 = uint.Parse(array[0]) == this.sendFlowerId; + if (flag2) + { + this.needCostID = uint.Parse(array[1]); + this.needCostCount = (this.sendFlowerCount - (uint)itemCount) * uint.Parse(array[2]); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)this.needCostID); + string label = string.Format(XStringDefineProxy.GetString("FLOWER_SEND_NOT_ENOUGH"), new object[] + { + this.roleNameSendTo, + this.sendFlowerCount, + (long)((ulong)this.sendFlowerCount - (ulong)((long)itemCount)), + this.needCostCount, + (itemConf != null) ? XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u) : "" + }); + string firstBtn = string.Format(XStringDefineProxy.GetString("FLOWER_SEND_NOT_ENOUGH_RIGHT"), (itemConf != null) ? XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u) : ""); + XSingleton.singleton.ShowModalDialog(label, firstBtn, new ButtonClickEventHandler(this.OnUseMoney), 50); + DlgBase.singleton.SetCloseButtonVisible(true); + break; + } + } + } + } + + private bool OnGotoBuy(IXUIButton button) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GameMall); + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FLOWER_MALL_NOT_OPEN"), "fece00"); + result = false; + } + else + { + DlgBase.singleton.SetVisible(false, true); + this.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_GameMall_Diamond); + result = true; + } + return result; + } + + private bool OnUseMoney(IXUIButton button) + { + DlgBase.singleton.SetVisible(false, true); + this._doc.SendFlower(this.roleIDSendTo, this.sendFlowerCount, this.sendFlowerId, this.needCostID, this.needCostCount); + return true; + } + + public void ShowLackMoneyError() + { + ItemEnum itemEnum = (ItemEnum)this.needCostID; + if (itemEnum != ItemEnum.GOLD) + { + if (itemEnum != ItemEnum.DRAGON_COIN) + { + if (itemEnum == ItemEnum.DIAMOND) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_TEAMBUY_DIAMOND_LESS"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_AUCT_DRAGONCOINLESS"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_AUCTGOLDLESS"), "fece00"); + } + } + + public void ShowGoToMallError(SendFlowerArg oArg) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)oArg.sendItemID); + string text = (itemConf != null) ? XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u) : ""; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FLOWER_SEND_GO_TO_MALL", new object[] + { + text + }), "fece00"); + } + + public void RefreshSendFlowerInfo() + { + this.RefreshRoseOwnCount(); + } + + public void OnSendFlowerError() + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FLOWER_SEND_FAIL"), "fece00"); + } + + private void SetTabSelect(GameObject obj, bool select) + { + IXUISprite ixuisprite = obj.transform.Find("Select").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetAlpha((float)(select ? 1 : 0)); + } + + public void ShowBoard(ulong roleID, string roleName) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + this.roleIDSendTo = roleID; + this.roleNameSendTo = roleName; + this.RefreshRoseOwnCount(); + } + + private void RefreshRoseOwnCount() + { + for (int i = 0; i < XFlowerSendView.SEND_FLOWER_TYPE_COUNT; i++) + { + int itemCount = XSingleton.singleton.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.FLOWER_RED_ROSE) + i); + string text = string.Format(XStringDefineProxy.GetString("FLOWER_SEND_OWN_COUNT"), itemCount); + this.ownCount[i].SetText(text); + } + } + + private bool OnCloseClicked(IXUIButton button) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlowerSendView.cs.meta b/Client/Assets/Scripts/XMainClient/XFlowerSendView.cs.meta new file mode 100644 index 00000000..90377ed9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlowerSendView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ad32f64f0a45d14bb5d2f90eb269aed +timeCreated: 1611403165 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFlyComponent.cs b/Client/Assets/Scripts/XMainClient/XFlyComponent.cs new file mode 100644 index 00000000..be3dec27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlyComponent.cs @@ -0,0 +1,96 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XFlyComponent : XComponent + { + public override uint ID + { + get + { + return XFlyComponent.uuID; + } + } + + public float CurrentHeight + { + get + { + return this._current; + } + } + + public float MinHeight + { + get + { + return this._min; + } + } + + public float MaxHeight + { + get + { + return this._max; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Fly"); + + private float _max = 0f; + + private float _min = 0f; + + private float _current = 0f; + + private float _target = 0f; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + XOthersAttributes xothersAttributes = this._entity.Attributes as XOthersAttributes; + this._max = xothersAttributes.FloatingMax; + this._min = xothersAttributes.FloatingMin; + this._target = (this._max - this._min) * XSingleton.singleton.RandomPercentage() + this._min; + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + public override void Attached() + { + this._target += XSingleton.singleton.TerrainY(this._entity.EngineObject.Position); + this._current = this._target; + this._entity.ApplyMove(0f, this._current - this._entity.EngineObject.Position.y, 0f); + } + + public override void Update(float fDeltaT) + { + bool isDead = this._entity.IsDead; + if (!isDead) + { + this._entity.DisableGravity(); + bool flag = this._entity.Skill.IsCasting(); + if (!flag) + { + float num = (this._target - this._current) * Mathf.Min(1f, 3f * fDeltaT); + this._current += num; + this._entity.ApplyMove(0f, num, 0f); + float num2 = XSingleton.singleton.TerrainY(this._entity.EngineObject.Position); + bool flag2 = this._entity.EngineObject.Position.y - num2 > this._max || this._entity.EngineObject.Position.y - num2 < this._min; + if (flag2) + { + this._target = (this._max - this._min) * XSingleton.singleton.RandomPercentage() + this._min + num2; + } + this._target += ((XSingleton.singleton.RandomPercentage() > 0.5f) ? 0.03f : -0.03f); + this._current = this._entity.EngineObject.Position.y; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFlyComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XFlyComponent.cs.meta new file mode 100644 index 00000000..f993158c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFlyComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b24aa5c27f3c6646b5e3fedb52eff36 +timeCreated: 1611403498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFoodSelectorHandler.cs b/Client/Assets/Scripts/XMainClient/XFoodSelectorHandler.cs new file mode 100644 index 00000000..337def8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFoodSelectorHandler.cs @@ -0,0 +1,128 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFoodSelectorHandler : DlgHandlerBase + { + private XPetDocument _PetDoc; + + private XBagWindow m_BagWindow; + + private IXUIButton m_BtnOpenBag; + + private Transform m_NoFeed; + + protected override void Init() + { + base.Init(); + this._PetDoc = XDocuments.GetSpecificDocument(XPetDocument.uuID); + GameObject gameObject = base.PanelObject.transform.Find("ItemPanel").gameObject; + this.m_BagWindow = new XBagWindow(gameObject, new ItemUpdateHandler(this._WrapContentItemUpdated), new GetItemHandler(this._PetDoc.GetFood)); + this.m_BagWindow.Init(); + this.m_BtnOpenBag = (base.PanelObject.transform.Find("BtnFeed").GetComponent("XUIButton") as IXUIButton); + this.m_NoFeed = gameObject.transform.Find("NoFeed"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnOpenBag.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnOpenClicked)); + } + + public override void OnUnload() + { + this._PetDoc = null; + base.OnUnload(); + } + + private void _WrapContentItemUpdated(Transform t, int index) + { + t = t.Find("Item"); + IXUISprite ixuisprite = t.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = t.Find("FullDegree").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Exp").GetComponent("XUILabel") as IXUILabel; + bool flag = this.m_BagWindow.m_XItemList == null || index >= this.m_BagWindow.m_XItemList.Count || index < 0; + if (flag) + { + XSingleton.singleton.DrawItem(t.gameObject, null); + ixuilabel.SetText(""); + ixuilabel2.SetText(""); + } + else + { + XItem xitem = this.m_BagWindow.m_XItemList[index]; + XSingleton.singleton.DrawItem(t.gameObject, xitem); + ItemList.RowData itemConf = XBagDocument.GetItemConf(xitem.itemID); + IXUILabel ixuilabel3 = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetColor(XSingleton.singleton.GetItemQualityColor((int)itemConf.ItemQuality)); + PetFoodTable.RowData petFood = XPetDocument.GetPetFood((uint)xitem.itemID); + ixuilabel.SetText(XSingleton.singleton.NumberFormat((ulong)petFood.hungry)); + ixuilabel2.SetText(XSingleton.singleton.NumberFormat((ulong)petFood.exp)); + ixuisprite.ID = (ulong)((long)xitem.itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnFeedClicked)); + } + this.m_NoFeed.gameObject.SetActive(this.m_BagWindow.m_XItemList.Count == 0); + } + + private List _GetFood() + { + return null; + } + + public void ShowBag(bool bShow) + { + if (bShow) + { + bool flag = this._PetDoc.CanHasRedPoint && this._PetDoc.CurSelectedPet.UID == this._PetDoc.CurFightUID; + if (flag) + { + this._PetDoc.CanHasRedPoint = false; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Horse, true); + DlgBase.singleton.RefreshPage(false); + } + this.m_BagWindow.PanelObject.SetActive(true); + this.m_BagWindow.OnShow(); + } + else + { + this.m_BagWindow.PanelObject.SetActive(false); + } + } + + public void UpdateContent() + { + this.m_BagWindow.UpdateBag(); + } + + private void _OnCloseClicked(IXUISprite iSp) + { + this.ShowBag(false); + } + + private bool _OnOpenClicked(IXUIButton btn) + { + bool activeSelf = this.m_BagWindow.PanelObject.activeSelf; + if (activeSelf) + { + this.ShowBag(false); + } + else + { + this.ShowBag(true); + } + return true; + } + + private void _OnFeedClicked(IXUISprite iSp) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + specificDocument.ReqFeed((int)iSp.ID); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFoodSelectorHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XFoodSelectorHandler.cs.meta new file mode 100644 index 00000000..d814882b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFoodSelectorHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00fc5d62712b6ea4fa1ad356d91d75de +timeCreated: 1611402952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFootFxComponent.cs b/Client/Assets/Scripts/XMainClient/XFootFxComponent.cs new file mode 100644 index 00000000..87e6fe48 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFootFxComponent.cs @@ -0,0 +1,67 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFootFxComponent : XComponent + { + public override uint ID + { + get + { + return XFootFxComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FootFx"); + + private XGameObject _fx = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + string footFx = XSingleton.singleton.GetFootFx(XSingleton.singleton.XPlayerData.BasicTypeID); + bool flag = string.IsNullOrEmpty(footFx); + if (!flag) + { + this._fx = XGameObject.CreateXGameObject(footFx, true, true); + this._fx.SetParent(this._entity.MoveObj); + this._fx.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, Vector3.one, false); + } + } + + public override void OnDetachFromHost() + { + bool flag = this._fx != null; + if (flag) + { + XGameObject.DestroyXGameObject(this._fx); + this._fx = null; + } + base.OnDetachFromHost(); + } + + public override void PostUpdate(float fDeltaT) + { + Vector3 zero = Vector3.zero; + zero.y = (this._entity.StandOn ? 0f : (XSingleton.singleton.TerrainY(this._entity.MoveObj.Position) - this._entity.MoveObj.Position.y)) + 0.025f; + bool bMounted = this._entity.Attributes.Outlook.state.bMounted; + if (bMounted) + { + zero.y -= 0.9f; + } + this._fx.SetLocalPRS(zero, true, Quaternion.identity, false, Vector3.one, false); + this._fx.Rotation = XSingleton.singleton.RotateToGround(this._entity.MoveObj.Position, this._entity.MoveObj.Forward); + } + + public void SetActive(bool active) + { + bool flag = this._fx != null; + if (flag) + { + this._fx.SetActive(active, ""); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFootFxComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XFootFxComponent.cs.meta new file mode 100644 index 00000000..d94c06e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFootFxComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0465932784b80df4ebeb754ae13e7c94 +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XForbidWordMgr.cs b/Client/Assets/Scripts/XMainClient/XForbidWordMgr.cs new file mode 100644 index 00000000..c5f46d8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XForbidWordMgr.cs @@ -0,0 +1,321 @@ +using System; +using System.Collections.Generic; +using System.Text; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XForbidWordMgr : XSingleton + { + private FWnode m_root = null; + + private XTableAsyncLoader _async_loader = null; + + private ForbidWord m_table = new ForbidWord(); + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/ForbidWord", this.m_table, false); + this._async_loader.Execute(new OnLoadedCallback(this.BuildTree)); + } + return this._async_loader.IsDone; + } + + public override void Uninit() + { + this.DelTree(this.m_root); + this._async_loader = null; + } + + private void BuildTree() + { + bool flag = this.m_root != null; + if (!flag) + { + this.m_root = new FWnode(); + for (int i = 0; i < this.m_table.Table.Length; i++) + { + this.AddWord(this.m_table.Table[i].forbidword); + } + } + } + + private void AddWord(string word) + { + bool flag = this.m_root == null; + if (flag) + { + XSingleton.singleton.AddLog("forbid word build tree error root NULL ", word, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + FWnode fwnode = this.m_root; + FWchildNode fwchildNode = null; + int length = word.Length; + for (int i = 0; i < length; i++) + { + bool flag2 = fwnode == null; + if (flag2) + { + bool flag3 = fwchildNode == null; + if (flag3) + { + XSingleton.singleton.AddLog("forbid word build tree error ptrs NULL ", word, null, null, null, null, XDebugColor.XDebug_None); + return; + } + bool flag4 = fwchildNode.m_child == null; + if (flag4) + { + fwchildNode.m_child = new FWnode(); + } + fwnode = fwchildNode.m_child; + } + bool flag5 = fwnode == null; + if (flag5) + { + XSingleton.singleton.AddLog("forbid word build tree error ptr NULL ", word, null, null, null, null, XDebugColor.XDebug_None); + return; + } + char c = word[i]; + fwchildNode = null; + bool flag6 = fwnode.m_childs != null; + if (flag6) + { + int count = fwnode.m_childs.Count; + for (int j = 0; j < count; j++) + { + bool flag7 = fwnode.m_childs[j].m_c == c; + if (flag7) + { + fwchildNode = fwnode.m_childs[j]; + break; + } + } + } + bool flag8 = fwchildNode == null; + if (flag8) + { + FWchildNode fwchildNode2 = new FWchildNode(); + fwchildNode2.m_c = c; + bool flag9 = fwnode.m_childs == null; + if (flag9) + { + fwnode.m_childs = new List(); + } + fwnode.m_childs.Add(fwchildNode2); + fwchildNode = fwnode.m_childs[fwnode.m_childs.Count - 1]; + } + fwnode = null; + } + bool flag10 = fwchildNode != null; + if (flag10) + { + fwchildNode.m_onewend = true; + } + } + } + + private void DelTree(FWnode cur) + { + bool flag = cur != null; + if (flag) + { + int count = cur.m_childs.Count; + for (int i = 0; i < count; i++) + { + this.DelTree(cur.m_childs[i].m_child); + } + cur.m_childs.Clear(); + cur = null; + } + } + + public bool HaveForbidWord(string word) + { + StringBuilder s = new StringBuilder(word); + int length = word.Length; + for (int i = 0; i < length; i++) + { + bool flag = this.MatchLength(s, i, length) > 0; + if (flag) + { + return true; + } + } + return false; + } + + public string FilterForbidWord(string word) + { + StringBuilder stringBuilder = new StringBuilder(word); + int length = word.Length; + for (int i = 0; i < length; i++) + { + int num = this.MatchLength(stringBuilder, i, length); + bool flag = num > 0; + if (flag) + { + StringBuilder stringBuilder2 = new StringBuilder(); + StringBuilder stringBuilder3 = new StringBuilder(); + for (int j = 0; j < num; j++) + { + bool flag2 = i + j < length; + if (flag2) + { + stringBuilder2 = stringBuilder2.Append(stringBuilder[i + j]); + stringBuilder3.Append("*"); + } + else + { + XSingleton.singleton.AddLog("filter forbid word error = ", word, null, null, null, null, XDebugColor.XDebug_None); + } + } + stringBuilder.Replace(stringBuilder2.ToString(), stringBuilder3.ToString(), i, stringBuilder2.Length); + i += num - 1; + } + } + return stringBuilder.ToString(); + } + + private int MatchLength(StringBuilder s, int start, int size) + { + int result = 0; + FWnode fwnode = this.m_root; + for (int i = start; i < size; i++) + { + char c = s[i]; + bool flag = fwnode == null; + if (flag) + { + break; + } + FWchildNode fwchildNode = null; + int count = fwnode.m_childs.Count; + for (int j = 0; j < count; j++) + { + bool flag2 = fwnode.m_childs[j].m_c == c; + if (flag2) + { + fwchildNode = fwnode.m_childs[j]; + } + } + fwnode = null; + bool flag3 = fwchildNode != null; + if (flag3) + { + bool onewend = fwchildNode.m_onewend; + if (onewend) + { + result = i - start + 1; + break; + } + fwnode = fwchildNode.m_child; + } + } + return result; + } + + public string FilterIllegalCode(string word) + { + byte[] bytes = Encoding.UTF8.GetBytes(word); + List list = new List(bytes); + int i = 0; + while (i < list.Count) + { + byte c = list[i]; + int num = this.EncodeLength(c); + bool flag = num == 0; + if (flag) + { + bool flag2 = !this.IsLegalChar(c); + if (flag2) + { + list.RemoveRange(i, 1); + } + else + { + i++; + } + } + else + { + bool flag3 = i + num > list.Count; + if (flag3) + { + return word; + } + byte[] array = new byte[num]; + for (int j = 0; j < num; j++) + { + array[j] = list[i + j]; + } + string @string = Encoding.UTF8.GetString(array); + bool flag4 = !this.IsLegalChinese(@string); + if (flag4) + { + list.RemoveRange(i, num); + } + else + { + i += num; + } + } + } + return Encoding.UTF8.GetString(list.ToArray()); + } + + public int EncodeLength(byte c) + { + int num = 0; + for (int i = 7; i > 0; i--) + { + bool flag = (1 << i & (int)c) == 0; + if (flag) + { + break; + } + num++; + } + return num; + } + + public bool IsLegalChar(byte c) + { + return (48 <= c && c <= 57) || (65 <= c && c <= 90) || (97 <= c && c <= 122); + } + + public bool IsLegalChinese(string word) + { + bool flag = word.Length != 3; + bool result; + if (flag) + { + result = false; + } + else + { + byte[] bytes = new byte[] + { + 228, + 184, + 128 + }; + string @string = Encoding.UTF8.GetString(bytes); + byte[] bytes2 = new byte[] + { + 233, + 190, + 187 + }; + string string2 = Encoding.UTF8.GetString(bytes2); + bool flag2 = string.Compare(word, @string) >= 0 && string.Compare(word, string2) <= 0; + result = flag2; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XForbidWordMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XForbidWordMgr.cs.meta new file mode 100644 index 00000000..5a28e008 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XForbidWordMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee120bb1a2c97994e9ac3761edd304cf +timeCreated: 1611404794 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XForgeAttrInfo.cs b/Client/Assets/Scripts/XMainClient/XForgeAttrInfo.cs new file mode 100644 index 00000000..4ac0dc7c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XForgeAttrInfo.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal struct XForgeAttrInfo + { + public bool bPreview; + + public uint UnSavedAttrid; + + public uint UnSavedAttrValue; + + public List ForgeAttr; + + public void Init() + { + this.bPreview = false; + this.UnSavedAttrid = 0u; + this.UnSavedAttrValue = 0u; + bool flag = this.ForgeAttr == null; + if (flag) + { + this.ForgeAttr = new List(); + } + else + { + this.ForgeAttr.Clear(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XForgeAttrInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XForgeAttrInfo.cs.meta new file mode 100644 index 00000000..c5d6b9bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XForgeAttrInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84a36c7a52ebe024dafd0f9dc0a37f5d +timeCreated: 1611404049 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XForgeDocument.cs b/Client/Assets/Scripts/XMainClient/XForgeDocument.cs new file mode 100644 index 00000000..408e9618 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XForgeDocument.cs @@ -0,0 +1,409 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XForgeDocument : XDocComponent + { + public override uint ID + { + get + { + return XForgeDocument.uuID; + } + } + + public static XForgeDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XForgeDocument.uuID) as XForgeDocument; + } + } + + public static EquipAttrDataMgr ForgeAttrMgr + { + get + { + return XForgeDocument.m_forgeAttrMgr; + } + } + + public EquipList.RowData EquipRow + { + get + { + return this.m_equipRow; + } + } + + public ulong CurUid + { + get + { + return this.m_curUid; + } + } + + public int TransRate + { + get + { + bool flag = this.m_transRate == -1; + if (flag) + { + this.m_transRate = XSingleton.singleton.GetInt("ForgeSmeltTransRate"); + XSingleton.singleton.AddGreenLog(string.Format("m_transRate = {0}", this.m_transRate), null, null, null, null, null); + } + return this.m_transRate; + } + } + + public Dictionary> AttackTypeDic + { + get + { + bool flag = this.m_attackTypeDic == null; + if (flag) + { + this.m_attackTypeDic = new Dictionary>(); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("AttackTypeAndAttributeId", true); + for (int i = 0; i < (int)sequenceList.Count; i++) + { + bool flag2 = this.m_attackTypeDic.ContainsKey(sequenceList[i, 0]); + if (flag2) + { + this.m_attackTypeDic[sequenceList[i, 0]].Add(sequenceList[i, 1]); + } + else + { + this.m_attackTypeDic.Add(sequenceList[i, 0], new List + { + sequenceList[i, 1] + }); + } + } + } + return this.m_attackTypeDic; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XForgeDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ForgeAttributes m_forgeAttrTab = new ForgeAttributes(); + + private static EquipAttrDataMgr m_forgeAttrMgr; + + private ulong m_curUid = 0UL; + + private EquipList.RowData m_equipRow = null; + + private bool m_bRedDotIsDirty = false; + + public ForgeMainHandler View; + + public bool IsUsedStone = false; + + public bool IsSelect = false; + + public bool IsShowTips = true; + + private int m_transRate = -1; + + private Dictionary> m_attackTypeDic; + + public static void Execute(OnLoadedCallback callback = null) + { + XForgeDocument.AsyncLoader.AddTask("Table/ForgeAttributes", XForgeDocument.m_forgeAttrTab, false); + XForgeDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XForgeDocument.m_forgeAttrMgr = new ForgeAttrDataMgr(XForgeDocument.m_forgeAttrTab); + } + + public override void OnAttachToHost(XObject host) + { + this.IsSelect = false; + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_LoadEquip, new XComponent.XEventHandler(this.OnLoadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_SwapItem, new XComponent.XEventHandler(this.OnSwapItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnItemChangedFinished)); + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this.IsSelect = false; + this.Clear(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.ShowUI(); + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + XForgeDocument.m_forgeAttrMgr.DataClear(); + } + + public bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + } + return true; + } + + public bool OnVirtualItemChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + } + this.m_bRedDotIsDirty = true; + return true; + } + + public bool OnSwapItem(XEventArgs args) + { + XSwapItemEventArgs xswapItemEventArgs = args as XSwapItemEventArgs; + bool flag = xswapItemEventArgs.itemNowOnBody.Type == ItemType.EQUIP; + if (flag) + { + this.m_bRedDotIsDirty = true; + } + return true; + } + + public bool OnLoadEquip(XEventArgs args) + { + XLoadEquipEventArgs xloadEquipEventArgs = args as XLoadEquipEventArgs; + bool flag = xloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this.m_bRedDotIsDirty = true; + } + return true; + } + + public bool OnUnloadEquip(XEventArgs args) + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + bool flag = xunloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this.m_bRedDotIsDirty = true; + } + return true; + } + + public bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag = xaddItemEventArgs.items[i].Type == ItemType.EQUIP; + if (flag) + { + this.m_bRedDotIsDirty = true; + } + } + return true; + } + + public bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + return true; + } + + public bool OnItemChangedFinished(XEventArgs args) + { + return true; + } + + public void Clear() + { + this.m_curUid = 0UL; + bool flag = !this.m_bRedDotIsDirty; + if (flag) + { + this.m_bRedDotIsDirty = true; + } + } + + private void InitData(ulong uid) + { + this.m_curUid = uid; + XEquipItem xequipItem = XBagDocument.BagDoc.GetItemByUID(this.CurUid) as XEquipItem; + bool flag = xequipItem == null; + if (flag) + { + XSingleton.singleton.AddGreenLog(string.Format("not find item ,curUid = {0}", this.CurUid), null, null, null, null, null); + } + else + { + this.m_equipRow = XBagDocument.GetEquipConf(xequipItem.itemID); + } + } + + public void SelectEquip(ulong uid) + { + bool flag = uid == 0UL; + if (!flag) + { + bool flag2 = uid == this.m_curUid; + if (!flag2) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag3 = itemByUID.Type != ItemType.EQUIP; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("OnlyEquipCanForge"), "fece00"); + } + else + { + bool flag4 = !XForgeDocument.ForgeAttrMgr.IsHadThisEquip(itemByUID.itemID); + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ThisEquipCannotForge"), "fece00"); + } + else + { + this.InitData(uid); + bool flag5 = !DlgBase.singleton.IsVisible(); + if (!flag5) + { + bool flag6 = this.View != null && this.View.IsVisible(); + if (flag6) + { + this.View.ShowUI(); + } + else + { + DlgBase.singleton.ShowRightPopView(DlgBase.singleton._ForgeMainHandler); + } + bool flag7 = DlgBase.singleton._equipHandler != null; + if (flag7) + { + DlgBase.singleton._equipHandler.SelectEquip(uid); + } + } + } + } + } + } + } + + public void ReqForgeEquip(ForgeOpType type) + { + RpcC2G_ForgeEquip rpcC2G_ForgeEquip = new RpcC2G_ForgeEquip(); + rpcC2G_ForgeEquip.oArg.uid = this.CurUid; + rpcC2G_ForgeEquip.oArg.isUsedStone = this.IsUsedStone; + rpcC2G_ForgeEquip.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_ForgeEquip); + } + + public void OnForgeEquipBack(ForgeOpType type, ForgeEquipRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.errorcode != ErrorCode.ERR_SUCCESS && oRes.errorcode != ErrorCode.ERR_EQUIP_FORGE_FAILED; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + bool flag5 = type == ForgeOpType.Forge_Replace; + if (flag5) + { + this.View.ShowUI(); + this.View.ShowEffect(true); + } + else + { + bool flag6 = type == ForgeOpType.Forge_Equip; + if (flag6) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.CurUid); + bool flag7 = itemByUID == null; + if (!flag7) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + bool flag8 = xequipItem.forgeAttrInfo.UnSavedAttrid != 0u && xequipItem.forgeAttrInfo.ForgeAttr.Count > 0; + if (flag8) + { + this.View.ShowReplaceHandler(); + } + else + { + this.View.ShowUI(); + bool flag9 = oRes.errorcode == ErrorCode.ERR_EQUIP_FORGE_FAILED; + if (flag9) + { + this.View.ShowEffect(false); + } + else + { + this.View.ShowEffect(true); + } + } + } + } + else + { + this.View.ShowUI(); + } + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XForgeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XForgeDocument.cs.meta new file mode 100644 index 00000000..af063a19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XForgeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6b9295b0f6ec76642abcced39edbb89e +timeCreated: 1611403892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFreeTeamVersusLeagueDocument.cs b/Client/Assets/Scripts/XMainClient/XFreeTeamVersusLeagueDocument.cs new file mode 100644 index 00000000..d748d233 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFreeTeamVersusLeagueDocument.cs @@ -0,0 +1,639 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFreeTeamVersusLeagueDocument : XDocComponent + { + public override uint ID + { + get + { + return XFreeTeamVersusLeagueDocument.uuID; + } + } + + public static XFreeTeamVersusLeagueDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XFreeTeamVersusLeagueDocument.uuID) as XFreeTeamVersusLeagueDocument; + } + } + + public static LeagueRankReward LeagueRankRewardTable + { + get + { + return XFreeTeamVersusLeagueDocument.leagueRankRewardTable; + } + } + + public LeagueTeamDetail TeamInfoDetail + { + get + { + return this._teamInfoDetail; + } + set + { + this._teamInfoDetail = value; + } + } + + public ulong TeamLeagueID + { + get + { + return this._teamLeagueID; + } + } + + public bool IsOpen + { + get + { + return this._isOpen; + } + } + + public bool IsCross + { + get + { + return this._isCross; + } + } + + public bool IsTeamMatching + { + get + { + return this._isTeamMatching; + } + } + + public LeagueTeamDetail EliChampionTeam + { + get + { + return this._eliChampionTeam; + } + set + { + this._eliChampionTeam = value; + } + } + + public LeagueEliType EliStateType { get; private set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("FreeTeamVersusLeagueDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private LeagueTeamDetail _teamInfoDetail; + + private ulong _teamLeagueID = 0UL; + + private bool _isOpen = false; + + private bool _isCross = false; + + private bool _isTeamMatching = false; + + private LeagueTeamDetail _eliChampionTeam; + + private static LeagueRankReward leagueRankRewardTable = new LeagueRankReward(); + + public bool MainInterfaceState = false; + + public uint TimeStamp; + + public string LeagueTeamName; + + public uint BattleScore; + + public uint BattledTimes; + + public uint BattleNumWeekly; + + public float BattleWinRate; + + public uint MyTeamRank = uint.MaxValue; + + public LeagueBattleTimeState TodayState = LeagueBattleTimeState.LBTS_BeforeOpen; + + public LeagueBattleRecordBaseInfo PKRecordBaseInfo = new LeagueBattleRecordBaseInfo(); + + private uint pointRaceRewardsLeftTime = 0u; + + private uint crossRewardsLeftTime = 0u; + + private uint updateTime = 0u; + + private List _teamInfoList = new List(); + + private List _pkRecordList = new List(); + + private SortedDictionary> _eliminationVersusDic = new SortedDictionary>(); + + public static void Execute(OnLoadedCallback callback = null) + { + XFreeTeamVersusLeagueDocument.AsyncLoader.AddTask("Table/LeagueRankReward", XFreeTeamVersusLeagueDocument.LeagueRankRewardTable, false); + XFreeTeamVersusLeagueDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + private uint GetMaxRound() + { + uint result = 0u; + foreach (KeyValuePair> keyValuePair in this._eliminationVersusDic) + { + result = keyValuePair.Key; + for (int i = 1; i < keyValuePair.Value.Count; i++) + { + bool flag = keyValuePair.Value[i].team1 == null || keyValuePair.Value[i].team1.leagueid == 0UL || keyValuePair.Value[i].team2 == null || keyValuePair.Value[i].team2.leagueid == 0UL; + if (flag) + { + return result; + } + } + } + return result; + } + + public void OnGetLeagueSeasonInfo(PtcM2C_UpdateLeagueBattleSeasonInfo roPtc) + { + this._teamLeagueID = roPtc.Data.league_teamid; + this._isCross = roPtc.Data.is_cross; + this._isOpen = roPtc.Data.is_open; + this.TodayState = roPtc.Data.state; + } + + public void SendGetLeagueTeamInfo(ulong teamID) + { + RpcC2M_GetLeagueTeamInfo rpcC2M_GetLeagueTeamInfo = new RpcC2M_GetLeagueTeamInfo(); + rpcC2M_GetLeagueTeamInfo.oArg.league_teamid = teamID; + XSingleton.singleton.Send(rpcC2M_GetLeagueTeamInfo); + } + + public void OnGetLeagueTeamInfo(GetLeagueTeamInfoArg oArg, GetLeagueTeamInfoRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + this._teamInfoDetail = oRes.team; + DlgBase.singleton.ShowDetail(oRes.team.teamname, oRes.team.members); + } + else + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + } + + public void SendGetLeagueBattleInfo() + { + RpcC2M_GetLeagueBattleInfo rpc = new RpcC2M_GetLeagueBattleInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetLeagueBattleInfo(GetLeagueBattleInfoRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + this.TodayState = oRes.today_state; + this.TimeStamp = oRes.timestamp; + this._teamLeagueID = oRes.league_teamid; + this.LeagueTeamName = oRes.league_teamname; + this.BattleScore = oRes.score; + this.BattledTimes = oRes.battlenum; + this.BattleNumWeekly = oRes.week_battlenum; + this.BattleWinRate = oRes.winrate; + this.updateTime = (uint)Time.time; + this.pointRaceRewardsLeftTime = oRes.rankreward_lefttime; + this.crossRewardsLeftTime = oRes.crossrankreward_lefttime; + this.MyTeamRank = oRes.rank; + this.EliStateType = oRes.eli_type; + this.UpdateTeamMemberInfo(oRes.member); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshUI(); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + private void UpdateTeamMemberInfo(List member) + { + this._teamInfoList.Clear(); + bool flag = this._teamLeagueID > 0UL; + if (flag) + { + for (int i = 0; i < member.Count; i++) + { + this._teamInfoList.Add(new LeagueTeamDetailInfo + { + roleBrief = member[i].brief, + pkPoints = member[i].pkpoint + }); + } + } + } + + public int GetPkRecordCount() + { + return this._pkRecordList.Count; + } + + public LeaguePKRecordInfo GetPkRecordInfoByIndex(int index) + { + bool flag = index < this._pkRecordList.Count; + LeaguePKRecordInfo result; + if (flag) + { + result = this._pkRecordList[index]; + } + else + { + result = null; + } + return result; + } + + public void SendGetLeagueBattleRecord() + { + RpcC2M_GetLeagueBattleRecord rpc = new RpcC2M_GetLeagueBattleRecord(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetLeagueBattleRecord(GetLeagueBattleRecordRes oRes) + { + bool flag = oRes.result == ErrorCode.ERR_SUCCESS; + if (flag) + { + this.PKRecordBaseInfo.totalWinNum = oRes.winnum; + this.PKRecordBaseInfo.totalLoseNum = oRes.losenum; + this.PKRecordBaseInfo.winRate = oRes.winrate; + this.PKRecordBaseInfo.maxContinueLose = oRes.max_continuelose; + this.PKRecordBaseInfo.maxContinueWin = oRes.max_continuewin; + this._pkRecordList.Clear(); + for (int i = 0; i < oRes.records.Count; i++) + { + LeagueBattleOneRecord leagueBattleOneRecord = oRes.records[i]; + this._pkRecordList.Add(new LeaguePKRecordInfo + { + opponentTeamId = leagueBattleOneRecord.other_teamid, + opponentTeamName = leagueBattleOneRecord.other_teamname, + serverId = leagueBattleOneRecord.serverid, + serverName = leagueBattleOneRecord.servername, + scoreChange = leagueBattleOneRecord.score_change, + result = leagueBattleOneRecord.result, + time = leagueBattleOneRecord.time + }); + } + this._pkRecordList.Reverse(); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshUI(); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public LeagueTeamDetailInfo GetMyTeamMemberInfoByIndex(int index) + { + bool flag = index < this._teamInfoList.Count; + LeagueTeamDetailInfo result; + if (flag) + { + result = this._teamInfoList[index]; + } + else + { + result = null; + } + return result; + } + + public int GetMyTeamMemberCount() + { + return this._teamInfoList.Count; + } + + public LeagueTeamMemberDetail GetTeamMemberInfoByIndex(int index) + { + bool flag = this._teamInfoDetail != null && index < this._teamInfoDetail.members.Count; + LeagueTeamMemberDetail result; + if (flag) + { + result = this._teamInfoDetail.members[index]; + } + else + { + result = null; + } + return result; + } + + public LeagueTeamMemberDetail GetTeamMemberInfoByRoleID(ulong roleID) + { + return null; + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceState = state; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_TeamLeague, true); + } + } + + public void OnTeamLeagueCreateNtf(PtcM2C_NotifyLeagueTeamCreate roPtc) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_LEAGUE_CREATE_SUCC"), "fece00"); + this._teamLeagueID = roPtc.Data.league_teamid; + this.LeagueTeamName = roPtc.Data.name; + } + + public void OnTeamLeagueDissolveNtf(PtcM2C_NotifyLeagueTeamDissolve roPtc) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_LEAGUE_DISSOLVE", new object[] + { + roPtc.Data.leave_rolename + }), "fece00"); + this._teamLeagueID = 0UL; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.UpdateTeamDetailInfo(); + DlgBase.singleton.ClearState(); + } + } + + public void ReqLeaveTeamLeague() + { + RpcC2M_LeaveLeagueTeam rpc = new RpcC2M_LeaveLeagueTeam(); + XSingleton.singleton.Send(rpc); + } + + public void ReqMatchGame(bool match) + { + RpcC2M_LeagueBattleReq rpcC2M_LeagueBattleReq = new RpcC2M_LeagueBattleReq(); + rpcC2M_LeagueBattleReq.oArg.type = (match ? LeagueBattleReqType.LBReqType_Match : LeagueBattleReqType.LBReqType_CancelMatch); + XSingleton.singleton.Send(rpcC2M_LeagueBattleReq); + } + + public void SetTeamMatchState(bool state) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = specificDocument.MyTeamView != null && specificDocument.MyTeamView.IsVisible(); + if (flag) + { + if (state) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TEAM_MATCH_START"), "fece00"); + } + } + } + + public void SendGetLeagueEleInfo() + { + RpcC2M_GetLeagueEleInfo rpc = new RpcC2M_GetLeagueEleInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetLeagueEleInfo(GetLeagueEleInfoRes oRes) + { + bool flag = oRes.rounds.Count > 0; + if (flag) + { + this._eliminationVersusDic.Clear(); + uint num = 0u; + List rounds = oRes.rounds; + for (int i = 0; i < rounds.Count; i++) + { + bool flag2 = num != rounds[i].round; + if (flag2) + { + num = rounds[i].round; + this._eliminationVersusDic[num] = new List(); + } + this._eliminationVersusDic[num].AddRange(rounds[i].rooms); + } + this._eliChampionTeam = oRes.chamption; + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshUI(); + } + } + } + + public List GetRoomsInfoByRound(uint round) + { + List result = null; + this._eliminationVersusDic.TryGetValue(round, out result); + return result; + } + + public void SendJoinLeagueEleBattle() + { + RpcC2M_JoinLeagueEleBattle rpc = new RpcC2M_JoinLeagueEleBattle(); + XSingleton.singleton.Send(rpc); + } + + public void SendCloseLeagueEleNtf() + { + PtcC2M_CloseLeagueEleNtf proto = new PtcC2M_CloseLeagueEleNtf(); + XSingleton.singleton.Send(proto); + } + + public void OnUpdateEliRoomInfo(PtcM2C_UpdateLeagueEleRoomStateNtf roPtc) + { + bool flag = false; + foreach (KeyValuePair> keyValuePair in this._eliminationVersusDic) + { + int i = 0; + while (i < keyValuePair.Value.Count) + { + bool flag2 = keyValuePair.Value[i].roomid == roPtc.Data.room.roomid; + if (flag2) + { + keyValuePair.Value[i] = roPtc.Data.room; + bool flag3 = keyValuePair.Key == 3u && keyValuePair.Value[i].state == LBEleRoomState.LBEleRoomState_Finish; + if (flag3) + { + this.SendGetLeagueEleInfo(); + return; + } + flag = true; + break; + } + else + { + i++; + } + } + } + bool flag4 = flag && DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshUI(); + } + } + + public bool IsMyTeamInFighting() + { + bool flag = this._teamLeagueID > 0UL; + if (flag) + { + foreach (KeyValuePair> keyValuePair in this._eliminationVersusDic) + { + for (int i = 0; i < keyValuePair.Value.Count; i++) + { + bool flag2 = keyValuePair.Value[i].state == LBEleRoomState.LBEleRoomState_Fighting; + if (flag2) + { + bool flag3 = (keyValuePair.Value[i].team1 != null && keyValuePair.Value[i].team1.leagueid == this._teamLeagueID) || (keyValuePair.Value[i].team2 != null && keyValuePair.Value[i].team2.leagueid == this._teamLeagueID); + if (flag3) + { + return true; + } + } + } + } + } + return false; + } + + public bool IsMyTeamInFinal() + { + bool flag = this._teamLeagueID > 0UL; + if (flag) + { + foreach (KeyValuePair> keyValuePair in this._eliminationVersusDic) + { + for (int i = 0; i < keyValuePair.Value.Count; i++) + { + LBEleRoomInfo lbeleRoomInfo = keyValuePair.Value[i]; + bool flag2 = (keyValuePair.Value[i].team1 != null && keyValuePair.Value[i].team1.leagueid == this._teamLeagueID) || (keyValuePair.Value[i].team2 != null && keyValuePair.Value[i].team2.leagueid == this._teamLeagueID); + if (flag2) + { + return true; + } + } + } + } + return false; + } + + public int GetRewardsLeftTime() + { + int result = 0; + bool flag = this.TodayState == LeagueBattleTimeState.LBTS_PointRace || this.TodayState == LeagueBattleTimeState.LBTS_Idle; + if (flag) + { + result = (int)(this.pointRaceRewardsLeftTime + this.updateTime - (uint)Time.time); + } + else + { + bool flag2 = this.TodayState == LeagueBattleTimeState.LBTS_CrossPointRace || this.TodayState == LeagueBattleTimeState.LBTS_CrossIdle; + if (flag2) + { + result = (int)(this.crossRewardsLeftTime + this.updateTime - (uint)Time.time); + } + } + return result; + } + + public string GetOpenInstructionString() + { + string text = XSingleton.singleton.GetString("LeagueTeamRules"); + text = XSingleton.singleton.ReplaceReturn(text); + DateTime t = new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); + t = t.AddSeconds(this.TimeStamp).ToLocalTime(); + SeqList sequence3List = XSingleton.singleton.GetSequence3List("LeagueBattleOpenDate", true); + int count = (int)sequence3List.Count; + DateTime dateTime = new DateTime(t.Year, sequence3List[count - 1, 0], sequence3List[count - 1, 1]); + for (int i = (int)(sequence3List.Count - 2); i >= 0; i--) + { + DateTime t2 = new DateTime(t.Year, sequence3List[i + 1, 0], sequence3List[i + 1, 1]); + DateTime dateTime2 = new DateTime(t.Year, sequence3List[i, 0], sequence3List[i, 1]); + bool flag = t >= dateTime2 && t < t2; + if (flag) + { + dateTime = dateTime2; + break; + } + } + int num = XSingleton.singleton.GetInt("LeagueMatchSign") - 1; + DateTime dateTime3 = dateTime.AddDays((double)num); + int @int = XSingleton.singleton.GetInt("LeagueBattleNeedLevel"); + int int2 = XSingleton.singleton.GetInt("LeagueTeamRoleNum"); + DateTime dateTime4 = dateTime.AddDays((double)(num + 1)); + int num2 = XSingleton.singleton.GetInt("LeagueRacePointLastDay") - 1; + DateTime dateTime5 = dateTime4.AddDays((double)num2); + int int3 = XSingleton.singleton.GetInt("LeagueEleminationAfterDay"); + DateTime dateTime6 = dateTime5.AddDays((double)int3); + int int4 = XSingleton.singleton.GetInt("LeagueCrossRacePointAfterDay"); + DateTime dateTime7 = dateTime6.AddDays((double)(int4 + 1)); + int int5 = XSingleton.singleton.GetInt("LeagueCrossRacePointLastDay"); + DateTime dateTime8 = dateTime7.AddDays((double)(int5 - 1)); + int int6 = XSingleton.singleton.GetInt("LeagueCrossEleminationAfterDay"); + DateTime dateTime9 = dateTime8.AddDays((double)int6); + string @string = XStringDefineProxy.GetString("TIME_FORMAT_MONTHDAY"); + return string.Format(text, new object[] + { + dateTime.ToString(@string), + dateTime3.ToString(@string), + @int, + int2, + dateTime4.ToString(@string), + dateTime5.ToString(@string), + dateTime6.ToString(@string), + dateTime7.ToString(@string), + dateTime8.ToString(@string), + dateTime9.ToString(@string) + }); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFreeTeamVersusLeagueDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFreeTeamVersusLeagueDocument.cs.meta new file mode 100644 index 00000000..4962f0db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFreeTeamVersusLeagueDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b36e3af7714a604983948cff1d4d31d +timeCreated: 1611403686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendData.cs b/Client/Assets/Scripts/XMainClient/XFriendData.cs new file mode 100644 index 00000000..cf542931 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendData.cs @@ -0,0 +1,57 @@ +using System; +using System.Collections.Generic; +using UnityEngine; + +namespace XMainClient +{ + public class XFriendData + { + public uint profession; + + public uint viplevel; + + public uint lastlogin; + + public uint level; + + public uint powerpoint; + + public uint online; + + public int audioid; + + public uint uid; + + public uint titleID; + + public uint paymemberid; + + public uint degreeAll; + + public uint degreeDay; + + public uint receiveGiftState; + + public uint sendGiftState; + + public uint receiveAll; + + public int receiveNo; + + public ulong roleid; + + public string name; + + public string guildname; + + public uint receivetime; + + public GameObject friendgo; + + public string openID; + + public string nickName; + + public List setid; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendData.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendData.cs.meta new file mode 100644 index 00000000..149e7de9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1ec02b4259f06f34c983db3caffa44d7 +timeCreated: 1611403365 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendInfoChange.cs b/Client/Assets/Scripts/XMainClient/XFriendInfoChange.cs new file mode 100644 index 00000000..f78d2e96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendInfoChange.cs @@ -0,0 +1,21 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XFriendInfoChange : XEventArgs + { + public FriendOpType opType; + + public XFriendInfoChange() + { + this._eDefine = XEventDefine.XEvent_FriendInfoChange; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendInfoChange.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendInfoChange.cs.meta new file mode 100644 index 00000000..23d300b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendInfoChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b6784eb3a4832fd43b2ddb9f0f905173 +timeCreated: 1611404398 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendListEventArgs.cs b/Client/Assets/Scripts/XMainClient/XFriendListEventArgs.cs new file mode 100644 index 00000000..b84a4b29 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendListEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XFriendListEventArgs : XEventArgs + { + public XFriendListEventArgs() + { + this._eDefine = XEventDefine.XEvent_FriendList; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendListEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendListEventArgs.cs.meta new file mode 100644 index 00000000..1ed9f70b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendListEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1278c337533384f41869d7bd15a7bf9f +timeCreated: 1611403241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs b/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs new file mode 100644 index 00000000..f2e0843e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs @@ -0,0 +1,79 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFriendsBehaviour : DlgBehaviourBase + { + public XUIPool FriendTabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel lbButtonR; + + public IXUILabel lbButtonL; + + public IXUIButton btnClose; + + public IXUIButton btnRight; + + public IXUIButton btnLeft; + + public IXUIButton btnHint; + + public IXUILabel lbFriendsNum; + + public IXUILabel lbFriendsNumLabel; + + public IXUIWrapContent FriendListWrapContent; + + public IXUIScrollView FriendListScrollView; + + public IXUIPanel FriendListPanel; + + public IXUIList TabList; + + public GameObject goFriendListTitle; + + public GameObject goFriendListZero; + + public GameObject goFriendListBrockZero; + + public Transform FriendTabTpl; + + public Transform content; + + public static readonly uint FUNCTION_NUM = 3u; + + private void Awake() + { + Transform transform = base.transform.Find("Bg"); + this.btnClose = (transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.btnRight = (transform.Find("ButtonR").GetComponent("XUIButton") as IXUIButton); + this.lbButtonR = (this.btnRight.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.btnLeft = (transform.Find("ButtonL").GetComponent("XUIButton") as IXUIButton); + this.lbButtonL = (this.btnLeft.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.btnHint = (transform.Find("Hint").GetComponent("XUIButton") as IXUIButton); + this.lbFriendsNum = (transform.Find("FriendNum").GetComponent("XUILabel") as IXUILabel); + this.lbFriendsNumLabel = (transform.Find("FriendNumLabel").GetComponent("XUILabel") as IXUILabel); + this.FriendListScrollView = (transform.Find("Content/FriendList").GetComponent("XUIScrollView") as IXUIScrollView); + this.content = transform.Find("Content"); + this.FriendListPanel = (this.FriendListScrollView.gameObject.transform.GetComponent("XUIPanel") as IXUIPanel); + this.FriendListWrapContent = (this.FriendListScrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.goFriendListZero = transform.Find("NoFriend").gameObject; + this.goFriendListBrockZero = transform.Find("NoBlockFriend").gameObject; + this.goFriendListTitle = transform.Find("Content/Titles").gameObject; + this.goFriendListZero.SetActive(false); + this.goFriendListBrockZero.SetActive(false); + this.FriendTabTpl = transform.Find("Tabs/Tpl"); + this.FriendTabPool.SetupPool(this.FriendTabTpl.parent.gameObject, this.FriendTabTpl.gameObject, (uint)XFriendsDocument.FriendsTabCount, false); + this.TabList = (this.FriendTabTpl.parent.GetComponent("XUIList") as IXUIList); + } + + private void OnApplicationPause(bool pause) + { + XDragonGuildDocument.Doc.QueryWXGroup(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs.meta new file mode 100644 index 00000000..901fafbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a3759710c702d3a4b87673e26c62a2ef +timeCreated: 1611404261 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendsBlockBehaviour.cs b/Client/Assets/Scripts/XMainClient/XFriendsBlockBehaviour.cs new file mode 100644 index 00000000..9a671f09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsBlockBehaviour.cs @@ -0,0 +1,18 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XFriendsBlockBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public static readonly uint FUNCTION_NUM = 3u; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendsBlockBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendsBlockBehaviour.cs.meta new file mode 100644 index 00000000..a3e146a4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsBlockBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd37a7879e5d42249ad22a119a329b3b +timeCreated: 1611404681 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendsDocument.cs b/Client/Assets/Scripts/XMainClient/XFriendsDocument.cs new file mode 100644 index 00000000..b77e29e3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsDocument.cs @@ -0,0 +1,433 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFriendsDocument : XDocComponent + { + public override uint ID + { + get + { + return XFriendsDocument.uuID; + } + } + + public static XFriendsDocument Doc + { + get + { + return XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + } + } + + public List PlatFriendsRankList + { + get + { + return this.m_listPlatFriendsRank; + } + } + + public PlatFriendRankInfo2Client SelfPlatRankInfo + { + get + { + return this.m_selfPlatRank; + } + } + + public Dictionary FriendsVipInfo + { + get + { + return this._FriendsVipInfo; + } + } + + public static int FriendsTabCount + { + get + { + return XFriendsDocument._FriendSysTable.Table.Length; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XFriendsDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static FriendTable _FriendTable = new FriendTable(); + + private static FriendSysConfigTable _FriendSysTable = new FriendSysConfigTable(); + + private List m_listPlatFriendsRank = null; + + private PlatFriendRankInfo2Client m_selfPlatRank = null; + + private Dictionary _FriendsVipInfo = new Dictionary(); + + private bool syncFriendsData = false; + + private int entertimer = 0; + + public static FriendSysConfigTable.RowData GetFriendsTabItemByID(int id) + { + return XFriendsDocument._FriendSysTable.GetByTabID(id); + } + + public static FriendSysConfigTable.RowData GetFriendsTabItemByIndex(int index) + { + return XFriendsDocument._FriendSysTable.Table[index]; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.syncFriendsData = false; + XSingleton.singleton.Init(); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XFriendsDocument.AsyncLoader.AddTask("Table/Friend", XFriendsDocument._FriendTable, false); + XFriendsDocument.AsyncLoader.AddTask("Table/FriendSystemConfig", XFriendsDocument._FriendSysTable, false); + XFriendsDocument.AsyncLoader.Execute(callback); + } + + public FriendTable.RowData[] GetFriendLevelDatas() + { + return XFriendsDocument._FriendTable.Table; + } + + public FriendTable.RowData GetFriendLevelData(uint level) + { + for (int i = 0; i < XFriendsDocument._FriendTable.Table.Length; i++) + { + bool flag = XFriendsDocument._FriendTable.Table[i].level == level; + if (flag) + { + return XFriendsDocument._FriendTable.Table[i]; + } + } + return null; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.ReqFriendsInfo(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this.entertimer = 0; + this._FriendsVipInfo.Clear(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + XSingleton.singleton.Init(); + this.ReqFriendsInfo(); + this.entertimer++; + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + bool flag = specificDocument != null && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + specificDocument.SendOfflineMsg(); + } + } + + public void SDKQueryFriends() + { + XSingleton.singleton.AddLog("XFriendsDocument SDKQueryFriends", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("QueryFriends", ""); + } + + public void ReqFriendsInfo() + { + PtcC2M_FriendQueryReportNew ptcC2M_FriendQueryReportNew = new PtcC2M_FriendQueryReportNew(); + ptcC2M_FriendQueryReportNew.Data.op = FriendOpType.Friend_ApplyAll; + XSingleton.singleton.Send(ptcC2M_FriendQueryReportNew); + PtcC2M_FriendQueryReportNew ptcC2M_FriendQueryReportNew2 = new PtcC2M_FriendQueryReportNew(); + ptcC2M_FriendQueryReportNew2.Data.op = FriendOpType.Friend_FriendAll; + XSingleton.singleton.Send(ptcC2M_FriendQueryReportNew2); + PtcC2M_BlackListReportNew proto = new PtcC2M_BlackListReportNew(); + XSingleton.singleton.Send(proto); + } + + public void SyncPlatFriendsInfo() + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (!flag) + { + bool flag2 = this.syncFriendsData; + if (!flag2) + { + XSingleton.singleton.AddLog("FriendsRank SyncPlatFriendsInfo", null, null, null, null, null, XDebugColor.XDebug_None); + PtcC2M_SyncPlatFriend2MS ptcC2M_SyncPlatFriend2MS = new PtcC2M_SyncPlatFriend2MS(); + bool flag3 = XSingleton.singleton.friendsInfo != null; + if (flag3) + { + XSingleton.singleton.AddLog("FriendsRank friendsCount = " + XSingleton.singleton.friendsInfo.data.Length, null, null, null, null, null, XDebugColor.XDebug_None); + int @int = XSingleton.singleton.GetInt("SyncPlatFriendsCount"); + XSingleton.singleton.AddLog("FriendsRank SyncPlatFriendsCount = " + @int, null, null, null, null, null, XDebugColor.XDebug_None); + for (int i = 0; i < XSingleton.singleton.friendsInfo.data.Length; i++) + { + bool flag4 = i < @int; + if (!flag4) + { + break; + } + FriendInfo.Data data = XSingleton.singleton.friendsInfo.data[i]; + PlatFriend platFriend = new PlatFriend(); + platFriend.openid = data.openId; + platFriend.nickname = data.nickName; + platFriend.bigpic = data.pictureLarge; + platFriend.midpic = ""; + platFriend.smallpic = ""; + ptcC2M_SyncPlatFriend2MS.Data.friendInfo.Add(platFriend); + } + XSingleton.singleton.AddLog("FriendsRank SendCount = " + ptcC2M_SyncPlatFriend2MS.Data.friendInfo.Count, null, null, null, null, null, XDebugColor.XDebug_None); + } + bool flag5 = XSingleton.singleton.playerInfo != null; + if (flag5) + { + PlatFriend platFriend2 = new PlatFriend(); + platFriend2.openid = XSingleton.singleton.OpenID; + platFriend2.nickname = XSingleton.singleton.playerInfo.data.nickName; + platFriend2.bigpic = XSingleton.singleton.playerInfo.data.pictureLarge; + platFriend2.midpic = XSingleton.singleton.playerInfo.data.pictureMiddle; + platFriend2.smallpic = XSingleton.singleton.playerInfo.data.pictureSmall; + ptcC2M_SyncPlatFriend2MS.Data.selfInfo = platFriend2; + XSingleton.singleton.AddLog("FriendsRank SyncPlatFriendsInfo self openid = " + platFriend2.openid, null, null, null, null, null, XDebugColor.XDebug_None); + } + this.syncFriendsData = true; + XSingleton.singleton.Send(ptcC2M_SyncPlatFriend2MS); + } + } + } + + public bool IsQQFriend(string openID) + { + bool flag = XSingleton.singleton.friendsInfo != null; + if (flag) + { + for (int i = 0; i < XSingleton.singleton.friendsInfo.data.Length; i++) + { + bool flag2 = XSingleton.singleton.friendsInfo.data[i].openId == openID; + if (flag2) + { + return true; + } + } + } + return false; + } + + public void ReqPlatFriendsRank() + { + XSingleton.singleton.AddLog("FriendsRank ReqPlatFriendsRank", null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2M_ReqPlatFriendRankList rpc = new RpcC2M_ReqPlatFriendRankList(); + XSingleton.singleton.Send(rpc); + } + + public void SendGift2PlatFriend(string openID) + { + XSingleton.singleton.AddLog("FriendsRank SendGift2PlatFriend openid = " + openID, null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2M_SendGift2PlatFriend rpcC2M_SendGift2PlatFriend = new RpcC2M_SendGift2PlatFriend(); + rpcC2M_SendGift2PlatFriend.oArg.openid = openID; + XSingleton.singleton.Send(rpcC2M_SendGift2PlatFriend); + } + + public void SendPk2PlatFriend(string openID) + { + XSingleton.singleton.AddLog("FriendsRank SendPk2PlatFriend openid = " + openID, null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2M_InvFightReqAll rpcC2M_InvFightReqAll = new RpcC2M_InvFightReqAll(); + rpcC2M_InvFightReqAll.oArg.reqtype = InvFightReqType.IFRT_INV_ONE; + rpcC2M_InvFightReqAll.oArg.iscross = true; + rpcC2M_InvFightReqAll.oArg.account = openID; + XSingleton.singleton.Send(rpcC2M_InvFightReqAll); + } + + public void OnSendGift2PlatFriend(SendGift2PlatFriendArg oArg, SendGift2PlatFriendRes oRes) + { + XSingleton.singleton.AddLog("FriendsRank OnSendGift2PlatFriend", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.error); + } + else + { + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("SendPlatFriendGift", XGlobalConfig.SequenceSeparator); + bool flag2 = andSeparateValue.Length == 2; + if (flag2) + { + string text = XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(int.Parse(andSeparateValue[0])).ItemName, 0u); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND", new object[] + { + andSeparateValue[1], + text + }), "fece00"); + } + for (int i = 0; i < this.m_listPlatFriendsRank.Count; i++) + { + bool flag3 = this.m_listPlatFriendsRank[i].platfriendBaseInfo.openid == oArg.openid; + if (flag3) + { + this.m_listPlatFriendsRank[i].hasGiveGift = true; + DlgBase.singleton.OnRefreshSendGiftState(this.m_listPlatFriendsRank[i]); + break; + } + } + bool flag4 = XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_Guest && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends_Gift_Share); + if (flag4) + { + DlgBase.singleton.NoticeFriend(oArg.openid); + } + } + } + + public void OnReqPlatFriendsRank(ReqPlatFriendRankListArg oArg, ReqPlatFriendRankListRes oRes) + { + XSingleton.singleton.AddLog("FriendsRank OnReqPlatFriendsRank", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.error); + } + else + { + XTeamInviteDocument specificDocument = XDocuments.GetSpecificDocument(XTeamInviteDocument.uuID); + bool flag2 = specificDocument.OnGetInvitePlatList(oRes); + if (!flag2) + { + this.m_listPlatFriendsRank = oRes.platFriends; + this.m_selfPlatRank = oRes.selfInfo; + XSingleton.singleton.AddLog("OnReqPlatFriendsRank count= " + oRes.platFriends.Count, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP); + if (flag3) + { + this.ReqQQFriendsVipInfo(oRes.platFriends); + } + else + { + DlgBase.singleton.OnRefreshPlatFriendsRank(); + } + } + } + } + + public void ReqQQFriendsVipInfo(List platFriendList) + { + RpcC2G_QueryQQFriendsVipInfo rpcC2G_QueryQQFriendsVipInfo = new RpcC2G_QueryQQFriendsVipInfo(); + rpcC2G_QueryQQFriendsVipInfo.oArg.token = XSingleton.singleton.TokenCache; + rpcC2G_QueryQQFriendsVipInfo.oArg.friendopenids.Clear(); + List list = new List(); + for (int i = 0; i < platFriendList.Count; i++) + { + rpcC2G_QueryQQFriendsVipInfo.oArg.friendopenids.Add(platFriendList[i].platfriendBaseInfo.openid); + } + XSingleton.singleton.Send(rpcC2G_QueryQQFriendsVipInfo); + } + + public void OnGetQQFriendsVipInfo(QueryQQFriendsVipInfoArg oArg, QueryQQFriendsVipInfoRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this._FriendsVipInfo.Clear(); + for (int i = 0; i < oRes.info.Count; i++) + { + QQVipType value = QQVipType.None; + string openid = oRes.info[i].openid; + bool is_svip = oRes.info[i].is_svip; + if (is_svip) + { + value = QQVipType.SVip; + } + else + { + bool is_vip = oRes.info[i].is_vip; + if (is_vip) + { + value = QQVipType.Vip; + } + } + this._FriendsVipInfo[openid] = value; + } + DlgBase.singleton.OnRefreshPlatFriendsRank(); + } + } + + public void OnFriendGiftOp(FriendGiftOpArg oArg, FriendGiftOpRes oRes) + { + DlgBase.singleton.OnFriendGiftOp(oArg, oRes); + } + + public void OnApply(DoAddFriendArg oArg, DoAddFriendRes oRes) + { + DlgBase.singleton.OnApply(oArg, oRes); + } + + public void AddFriendRes(ErrorCode code, ulong uid) + { + DlgBase.singleton.AddFriendRes(code, uid); + } + + public void OnFriendOpNotify(PtcM2C_FriendOpNtfNew roPtc) + { + DlgBase.singleton.OnFriendOpNotify(roPtc); + XFriendInfoChange @event = XEventPool.GetEvent(); + @event.opType = roPtc.Data.op; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + public void RemoveFriendRes(ErrorCode code, ulong roleid) + { + DlgBase.singleton.RemoveFriendRes(code, roleid); + } + + public void UpdateFriendInfo(ulong uid, uint daydegree, uint alldegree) + { + DlgBase.singleton.UpdateFriendInfo(uid, daydegree, alldegree); + } + + public void QueryRoleStateRes(RoleStateNtf rolestate) + { + DlgBase.singleton.QueryRoleStateRes(rolestate); + } + + public void RandomFriendRes(RandomFriendWaitListRes waitList) + { + DlgBase.singleton.RandomFriendRes(waitList); + } + + public void AddBlockFriendRes(Friend2Client black) + { + DlgBase.singleton.AddBlockFriendRes(black); + } + + public void RefreshBlockFriendData(BlackListNtf blacklist) + { + DlgBase.singleton.RefreshBlockFriendData(blacklist); + } + + public void RemoveBlockFriendRes(ErrorCode code, ulong roleid) + { + DlgBase.singleton.RemoveBlockFriendRes(code, roleid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendsDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendsDocument.cs.meta new file mode 100644 index 00000000..21a1dba5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1c908c9173ccb8d499fa3cfadc81144e +timeCreated: 1611403346 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs b/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs new file mode 100644 index 00000000..a5526d62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs @@ -0,0 +1,40 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFriendsSearchBehaviour : DlgBehaviourBase + { + public IXUIScrollView m_ScrollView; + + public IXUIButton m_Close; + + public IXUIButton m_Refresh; + + public IXUIButton m_AddFriend; + + public IXUIInput m_SearchName; + + public IXUILabel m_CountdownText; + + public static readonly uint FUNCTION_NUM = 3u; + + public XUIPool m_FriendRandomListPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/List"); + Transform transform2 = transform.Find("tpl"); + this.m_ScrollView = (transform.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Refresh = (base.transform.Find("Bg/change").GetComponent("XUIButton") as IXUIButton); + this.m_AddFriend = (base.transform.Find("Bg/add").GetComponent("XUIButton") as IXUIButton); + this.m_SearchName = (base.transform.Find("Bg/textinput").GetComponent("XUIInput") as IXUIInput); + this.m_CountdownText = (base.transform.Find("Bg/changeLabel").GetComponent("XUILabel") as IXUILabel); + this.m_FriendRandomListPool.SetupPool(transform.gameObject, transform2.gameObject, 4u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs.meta new file mode 100644 index 00000000..01098055 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsSearchBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: affdaaa630ef2fe4ca0f8804d1681fd2 +timeCreated: 1611404348 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendsSearchView.cs b/Client/Assets/Scripts/XMainClient/XFriendsSearchView.cs new file mode 100644 index 00000000..8f6058bf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsSearchView.cs @@ -0,0 +1,297 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFriendsSearchView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/FriendsSearchDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private bool mIsListInited; + + private int m_RefreshCD; + + private uint mTimerID; + + private ulong m_AddFriendId = 0UL; + + private XFriendsDocument _doc = null; + + private List m_UIList = new List(); + + private XPlayerInfoChildView m_AddFriendListTempView; + + private XTimerMgr.AccurateElapsedEventHandler _onTimeCb = null; + + private RandomFriendWaitListRes _waitList; + + private List m_RandomFriendIndexSortList = new List(); + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + this.m_AddFriendListTempView = new XPlayerInfoChildView(); + this._onTimeCb = new XTimerMgr.AccurateElapsedEventHandler(this.OnTimer); + this.mIsListInited = false; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Refresh.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshFriends)); + base.uiBehaviour.m_AddFriend.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddFriendDirect)); + } + + public void ShowBoard(RandomFriendWaitListRes waitList) + { + bool flag = !base.IsVisible(); + if (flag) + { + this._waitList = waitList; + this.SetVisibleWithAnimation(true, null); + } + } + + protected override void OnShow() + { + base.OnShow(); + XPlatformAbilityDocument.Doc.QueryQQVipInfo(); + bool flag = !this.mIsListInited; + if (flag) + { + base.uiBehaviour.m_FriendRandomListPool.FakeReturnAll(); + this.m_UIList.Clear(); + for (int i = 0; i < 4; i++) + { + GameObject gameObject = base.uiBehaviour.m_FriendRandomListPool.FetchGameObject(false); + gameObject.SetActive(false); + this.m_UIList.Add(gameObject); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_FriendRandomListPool.TplPos.x, base.uiBehaviour.m_FriendRandomListPool.TplPos.y - (float)(i * base.uiBehaviour.m_FriendRandomListPool.TplHeight), base.uiBehaviour.m_FriendRandomListPool.TplPos.z); + } + base.uiBehaviour.m_FriendRandomListPool.ActualReturnAll(false); + this.mIsListInited = true; + } + base.uiBehaviour.m_ScrollView.ResetPosition(); + this.m_RefreshCD = 0; + XSingleton.singleton.KillTimer(this.mTimerID); + this.mTimerID = 0u; + base.uiBehaviour.m_SearchName.SetText(""); + base.uiBehaviour.m_CountdownText.SetText(XStringDefineProxy.GetString("FRIEND_ADDDLG_NO_COUNTDOWN")); + this.OnRefreshRandomFriend(this._waitList); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.mTimerID); + this.mTimerID = 0u; + base.OnHide(); + } + + protected override void OnUnload() + { + this.m_AddFriendListTempView = null; + this._doc = null; + XSingleton.singleton.KillTimer(this.mTimerID); + this.mTimerID = 0u; + base.OnUnload(); + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + DlgBase.singleton.RefreshUI(); + return true; + } + + public bool OnAddFriend(IXUIButton sp) + { + ulong id = sp.ID; + bool flag = id == XSingleton.singleton.XPlayerData.RoleID; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_NOT_ADD_SELF"), "fece00"); + result = true; + } + else + { + this.m_AddFriendId = id; + DlgBase.singleton.AddFriendById(id); + result = true; + } + return result; + } + + public void OnHeadClick(IXUISprite go) + { + ulong id = go.ID; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(id, false); + } + + public bool OnAddFriendDirect(IXUIButton sp) + { + string text = base.uiBehaviour.m_SearchName.GetText(); + bool flag = (text + string.Empty).Length <= 0; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_NAME_CANNOT_NULL"), "fece00"); + result = false; + } + else + { + DlgBase.singleton.AddFriendByName(text); + result = true; + } + return result; + } + + public bool OnRefreshFriends(IXUIButton sp) + { + bool flag = this.m_RefreshCD > 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_REFRESH_CD_HINT"), "fece00"); + } + else + { + this.m_RefreshCD = XSingleton.singleton.RefreshAddListCD; + bool flag2 = this.m_RefreshCD > 0; + if (flag2) + { + XSingleton.singleton.KillTimer(this.mTimerID); + base.uiBehaviour.m_CountdownText.SetText(XStringDefineProxy.GetString("FRIEND_ADDDLG_COUNTDOWN_FMT", new object[] + { + this.m_RefreshCD + })); + this.mTimerID = XSingleton.singleton.SetTimerAccurate(1f, this._onTimeCb, null); + } + DlgBase.singleton.RandomFriend(); + } + return true; + } + + protected void OnTimer(object param, float delay) + { + IXUILabel countdownText = base.uiBehaviour.m_CountdownText; + string key = "FRIEND_ADDDLG_COUNTDOWN_FMT"; + object[] array = new object[1]; + int num = 0; + int num2 = this.m_RefreshCD - 1; + this.m_RefreshCD = num2; + array[num] = num2; + countdownText.SetText(XStringDefineProxy.GetString(key, array)); + bool flag = this.m_RefreshCD > 0; + if (flag) + { + this.mTimerID = XSingleton.singleton.SetTimerAccurate(1f, this._onTimeCb, null); + } + else + { + base.uiBehaviour.m_CountdownText.SetText(XStringDefineProxy.GetString("FRIEND_ADDDLG_NO_COUNTDOWN")); + } + } + + public void FriendAdded() + { + bool flag = !base.IsVisible(); + if (!flag) + { + List list = ListPool.Get(); + base.uiBehaviour.m_FriendRandomListPool.GetActiveList(list); + for (int i = 0; i < list.Count; i++) + { + IXUIButton ixuibutton = list[i].transform.Find("add").GetComponent("XUIButton") as IXUIButton; + bool flag2 = ixuibutton.ID == this.m_AddFriendId; + if (flag2) + { + ixuibutton.SetEnable(false, false); + } + } + ListPool.Release(list); + } + } + + private void SortRandomFriendByOnlineState(RandomFriendWaitListRes waitList) + { + this.m_RandomFriendIndexSortList.Clear(); + for (int i = 0; i < waitList.lastlogin.Count; i++) + { + bool flag = waitList.lastlogin[i] == 0u; + if (flag) + { + this.m_RandomFriendIndexSortList.Insert(0, i); + } + else + { + this.m_RandomFriendIndexSortList.Add(i); + } + } + } + + public void OnRefreshRandomFriend(RandomFriendWaitListRes waitList) + { + this.SortRandomFriendByOnlineState(waitList); + for (int i = 0; i < this.m_RandomFriendIndexSortList.Count; i++) + { + bool flag = i >= this.m_UIList.Count; + if (flag) + { + break; + } + int num = this.m_RandomFriendIndexSortList[i]; + GameObject gameObject = this.m_UIList[i]; + gameObject.SetActive(true); + XPlayerInfoChildView addFriendListTempView = this.m_AddFriendListTempView; + addFriendListTempView.FindFrom(gameObject.transform); + IXUIButton ixuibutton = gameObject.transform.Find("add").GetComponent("XUIButton") as IXUIButton; + bool flag2 = num < waitList.nickid.Count; + if (flag2) + { + addFriendListTempView.uidLab.SetText(waitList.nickid[num].ToString()); + } + addFriendListTempView.lbName.InputText = XSingleton.singleton.StringCombine(XTitleDocument.GetTitleWithFormat(waitList.titleid[num], waitList.name[num]), XRechargeDocument.GetVIPIconString(waitList.viplevel[num])); + addFriendListTempView.lbLevel.SetText(waitList.level[num].ToString()); + addFriendListTempView.lbPPT.SetText(waitList.powerpoint[num].ToString()); + addFriendListTempView.sprHead.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)waitList.profession[num])); + addFriendListTempView.SetGuildName(waitList.guildname[num]); + DlgBase.singleton.UpdateFriendOnlineState(gameObject.transform, (waitList.lastlogin[num] == 0u) ? 1u : 0u, waitList.lastlogin[num]); + ixuibutton.SetEnable(true, false); + ixuibutton.ID = waitList.roleid[num]; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddFriend)); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = waitList.roleid[num]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnHeadClick)); + } + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendsSearchView.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendsSearchView.cs.meta new file mode 100644 index 00000000..d8097567 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsSearchView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f440ae3fa1009b40ba38a9eb76348cb +timeCreated: 1611403700 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendsSendFlowerBehaviour.cs b/Client/Assets/Scripts/XMainClient/XFriendsSendFlowerBehaviour.cs new file mode 100644 index 00000000..dbd2bcdb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsSendFlowerBehaviour.cs @@ -0,0 +1,124 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFriendsSendFlowerBehaviour : DlgBehaviourBase + { + public const int TOTAL_RANK_NUM = 3; + + public IXUIButton m_Close; + + public IXUISprite m_PlayerImage; + + public IXUIButton m_AddFriends; + + public IXUIButton m_Chat; + + public IXUILabel m_FlowerTotalNum; + + public IXUILabel m_FlowerWeekNum; + + public IXUILabel m_FlowerRankNum; + + public IXUILabel m_PlayerName; + + public IXUILabel m_SendTimes; + + public IXUIButton m_SendOne; + + public IXUIButton m_SendNine; + + public IXUIButton m_SendNN; + + public List m_RankBoard = new List(); + + public List m_RankSprite = new List(); + + public List m_RankName = new List(); + + public List m_RankNum = new List(); + + public List m_GiveFatigueNum = new List(); + + public List m_CostMoneyNum = new List(); + + public List m_GiveFlowerNum = new List(); + + public List m_CostSprite = new List(); + + public List m_RewardSprite = new List(); + + public List m_SendButton = new List(); + + public List m_SendFlowerSp = new List(); + + public XUIPool m_FlowerMsgPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_FlowerMineMsgPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_GiveFatigueNum2; + + public IXUISprite m_SendBoard; + + public IXUISprite m_InfoOther; + + public IXUISprite m_InfoMine; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_PlayerImage = (base.transform.Find("Bg/info/head").GetComponent("XUISprite") as IXUISprite); + this.m_AddFriends = (base.transform.Find("Bg/info/addfriend").GetComponent("XUIButton") as IXUIButton); + this.m_Chat = (base.transform.Find("Bg/info/chat").GetComponent("XUIButton") as IXUIButton); + this.m_FlowerTotalNum = (base.transform.Find("Bg/totalnum").GetComponent("XUILabel") as IXUILabel); + this.m_FlowerWeekNum = (base.transform.Find("Bg/weeklynum").GetComponent("XUILabel") as IXUILabel); + this.m_FlowerRankNum = (base.transform.Find("Bg/weeklyranknum").GetComponent("XUILabel") as IXUILabel); + this.m_PlayerName = (base.transform.Find("Bg/titleback/name").GetComponent("XUILabel") as IXUILabel); + this.m_GiveFatigueNum2 = (base.transform.Find("Bg/SendBoard/send3/Sprite/fatiguenum2").GetComponent("XUILabel") as IXUILabel); + this.m_SendTimes = (base.transform.Find("Bg/SendBoard/times").GetComponent("XUILabel") as IXUILabel); + this.m_SendOne = (base.transform.Find("Bg/SendBoard/send1/Sprite/change").GetComponent("XUIButton") as IXUIButton); + this.m_SendNine = (base.transform.Find("Bg/SendBoard/send2/Sprite/change").GetComponent("XUIButton") as IXUIButton); + this.m_SendNN = (base.transform.Find("Bg/SendBoard/send3/Sprite/change").GetComponent("XUIButton") as IXUIButton); + this.m_SendOne.ID = 1UL; + this.m_SendNine.ID = 9UL; + this.m_SendNN.ID = 99UL; + for (int i = 1; i <= 3; i++) + { + IXUISprite item = base.transform.Find("Bg/rank/rank" + i.ToString() + "/head").GetComponent("XUISprite") as IXUISprite; + IXUILabel item2 = base.transform.Find("Bg/rank/rank" + i.ToString() + "/name").GetComponent("XUILabel") as IXUILabel; + IXUILabel item3 = base.transform.Find("Bg/rank/rank" + i.ToString() + "/num").GetComponent("XUILabel") as IXUILabel; + IXUISprite item4 = base.transform.Find("Bg/rank/rank" + i.ToString()).GetComponent("XUISprite") as IXUISprite; + IXUILabel item5 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/fatiguenum").GetComponent("XUILabel") as IXUILabel; + IXUILabel item6 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/coinnum").GetComponent("XUILabel") as IXUILabel; + IXUILabel item7 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/change/flowernum").GetComponent("XUILabel") as IXUILabel; + IXUIButton item8 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/change").GetComponent("XUIButton") as IXUIButton; + IXUISprite item9 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/change/Sprite").GetComponent("XUISprite") as IXUISprite; + IXUISprite item10 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/iconreward").GetComponent("XUISprite") as IXUISprite; + IXUISprite item11 = base.transform.Find("Bg/SendBoard/send" + i.ToString() + "/Sprite/iconcost").GetComponent("XUISprite") as IXUISprite; + this.m_RankBoard.Add(item4); + this.m_RankSprite.Add(item); + this.m_RankName.Add(item2); + this.m_RankNum.Add(item3); + this.m_GiveFatigueNum.Add(item5); + this.m_CostMoneyNum.Add(item6); + this.m_GiveFlowerNum.Add(item7); + this.m_SendButton.Add(item8); + this.m_SendFlowerSp.Add(item9); + this.m_CostSprite.Add(item11); + this.m_RewardSprite.Add(item10); + } + GameObject gameObject = base.transform.Find("Bg/back/scrollteam").gameObject; + GameObject gameObject2 = base.transform.Find("Bg/back/scrollteam/template").gameObject; + this.m_FlowerMsgPool.SetupPool(gameObject, gameObject2, 10u, false); + this.m_FlowerMineMsgPool.SetupPool(base.transform.Find("Bg/backMine/scrollteam").gameObject, base.transform.Find("Bg/backMine/scrollteam/template").gameObject, 10u, false); + this.m_SendBoard = (base.transform.Find("Bg/SendBoard").GetComponent("XUISprite") as IXUISprite); + this.m_InfoOther = (base.transform.Find("Bg/back").GetComponent("XUISprite") as IXUISprite); + this.m_InfoMine = (base.transform.Find("Bg/backMine").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendsSendFlowerBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendsSendFlowerBehaviour.cs.meta new file mode 100644 index 00000000..4ff41e67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsSendFlowerBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 595a4471234cca04e8949ac42a37eb84 +timeCreated: 1611403783 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs b/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs new file mode 100644 index 00000000..e43ff563 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs @@ -0,0 +1,75 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XFriendsStaticData : XStaticDataBase + { + public uint SendGiftMinDegree; + + public uint SendGiftMaxTimes; + + public uint ReceiveGifMaxTimes; + + public uint MaxFriendlyEvaluation; + + public int RefreshAddListCD; + + public string CommonCountTotalFmt; + + public string CommonCountTotalEnoughFmt; + + public string CommonCountTotalNotEnoughFmt; + + public string CannotSendGiftToFriendHintText; + + public string GiftAlreadySentToFriendHintText; + + public string GiftSuccessfullySentHintText; + + public string GiftSuccessfullyReceiveHintText; + + public string Second; + + public string Minute; + + public string Hour; + + public string Day; + + public string Month; + + public string Ago; + + protected override void OnInit() + { + this.RefreshAddListCD = XSingleton.singleton.GetInt("FriendSystemRefreshAddListCD"); + this.SendGiftMinDegree = (uint)XSingleton.singleton.GetInt("FriendSystemSendGiftMinDegree"); + this.SendGiftMaxTimes = (uint)XSingleton.singleton.GetInt("FriendSystemSendGifMaxTimes"); + this.ReceiveGifMaxTimes = (uint)XSingleton.singleton.GetInt("FriendSystemAcceptGifMaxTimes"); + this.MaxFriendlyEvaluation = (uint)XSingleton.singleton.GetInt("FriendSystemMaxFriendlyEvaluation"); + this.CannotSendGiftToFriendHintText = XStringDefineProxy.GetString("FRIEND_CANNOT_SEND_GIFT_FMT", new object[] + { + this.SendGiftMinDegree + }); + this.CommonCountTotalFmt = XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_FMT"); + this.CommonCountTotalNotEnoughFmt = XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_NOTENOUGH_FMT"); + this.CommonCountTotalEnoughFmt = XStringDefineProxy.GetString("COMMON_COUNT_TOTAL_ENOUGH_FMT"); + this.GiftAlreadySentToFriendHintText = XStringDefineProxy.GetString("FRIEND_GIFT_ALREADY_SENT"); + this.GiftSuccessfullyReceiveHintText = XStringDefineProxy.GetString("FRIEND_RECEIVE_GIFT_HINT_FMT"); + this.GiftSuccessfullySentHintText = XStringDefineProxy.GetString("FRIEND_SEND_GIFT_HINT_FMT"); + this.Second = XStringDefineProxy.GetString("SECOND_DUARATION"); + this.Minute = XStringDefineProxy.GetString("MINUTE_DUARATION"); + this.Hour = XStringDefineProxy.GetString("HOUR_DUARATION"); + this.Day = XStringDefineProxy.GetString("DAY_DUARATION"); + this.Month = XStringDefineProxy.GetString("MONTH_DUARATION"); + this.Ago = XStringDefineProxy.GetString("AGO"); + } + + public override void Uninit() + { + this.CommonCountTotalFmt = null; + base.Uninit(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs.meta new file mode 100644 index 00000000..5c3e247b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsStaticData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 830e4bfce8ae9e048827778d9e049a99 +timeCreated: 1611404042 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFriendsView.cs b/Client/Assets/Scripts/XMainClient/XFriendsView.cs new file mode 100644 index 00000000..298988a2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsView.cs @@ -0,0 +1,2307 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XFriendsView : DlgBase + { + public uint TodaySendLeft + { + get + { + return this.m_TodaySendLeft; + } + } + + public uint TodayReceiveLeft + { + get + { + return this.m_TodayReceiveLeft; + } + } + + public uint TodaySendCount + { + get + { + return XSingleton.singleton.SendGiftMaxTimes - this.m_TodaySendLeft; + } + } + + public uint TodayReceiveCount + { + get + { + return XSingleton.singleton.ReceiveGifMaxTimes - this.m_TodayReceiveLeft; + } + } + + public bool Redpoint + { + get + { + for (int i = 0; i < this.mRedpoint.Length; i++) + { + bool flag = this.mRedpoint[i]; + if (flag) + { + return true; + } + } + return this.canSendGift; + } + } + + public override string fileName + { + get + { + return "GameSystem/FriendsDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public XMentorshipPupilsHandler MentorshipHandler + { + get + { + return this.m_mentorshipHandler; + } + set + { + this.m_mentorshipHandler = value; + } + } + + public Action OnAddBlockSucc; + + public Action OnRemoveFriendSucc; + + private bool m_RefreshFriendChatUI; + + private bool m_HasGiftCanReceive = false; + + private uint m_TodaySendLeft; + + private uint m_TodayReceiveLeft; + + private bool canSendGift = false; + + private bool[] mRedpoint = new bool[10]; + + private GameObject[] mRedpointUI = new GameObject[10]; + + private TabIndex m_CurrentTabIndex = TabIndex.ShowFriend; + + private int m_FriendListTitleHeight; + + private XFriendsDocument _doc = null; + + public List friendData = new List(); + + public List blockFriendData = new List(); + + public List applyData = new List(); + + private string m_DeleteFriendName = ""; + + private XPlayerInfoChildView m_FriendListTempView; + + private XFriendsViewHintHandler m_FriendsViewHintHandler; + + private GameObject m_FriendsViewHintFrame; + + private XFriendsViewAddBlockHandler m_FriendsViewAddBlockHandler; + + private GameObject m_FriendsViewAddBlockFrame; + + private XFriendsViewReceiveGiftHandler m_FriendsViewReceiveGiftHandler; + + private GameObject m_FriendsViewReceiveGiftFrame; + + private XFriendsRankHandler m_FriendsRankHandler; + + private GameObject m_FriendsRankFrame; + + private PartnerMainHandler m_partnerMainHandler; + + private FriendsWeddingHandler m_weddingMainHandler; + + private XMentorshipPupilsHandler m_mentorshipHandler; + + private XDragonPartnerHandler m_dragonPartnerHandler; + + private XDragonGuildListHandler m_dragonGuildListHandler; + + private XDragonGuildMainHandler m_dragonGuildMainHandler; + + private string m_noticeFriendOpenID; + + private string m_title; + + private string m_description; + + private string m_gameTag; + + public enum ShareType + { + PK = 1, + Invite + } + + private int GetTabIndexInt(TabIndex index) + { + return XFastEnumIntEqualityComparer.ToInt(index); + } + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XFriendsDocument.uuID); + this.m_FriendListTempView = new XPlayerInfoChildView(); + this.m_FriendsViewHintFrame = base.uiBehaviour.transform.Find("Bg/FriendHintFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_FriendsViewHintHandler, this.m_FriendsViewHintFrame, null, false); + this.m_FriendsViewAddBlockFrame = base.uiBehaviour.transform.Find("Bg/FriendAddBlockFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_FriendsViewAddBlockHandler, this.m_FriendsViewAddBlockFrame, null, false); + this.m_FriendsViewReceiveGiftFrame = base.uiBehaviour.transform.Find("Bg/FriendGiftFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_FriendsViewReceiveGiftHandler, this.m_FriendsViewReceiveGiftFrame, null, false); + this.m_FriendsRankFrame = base.uiBehaviour.transform.Find("Bg/FriendsRank").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_FriendsRankHandler, this.m_FriendsRankFrame, null, false); + DlgHandlerBase.EnsureCreate(ref this.m_partnerMainHandler, base.uiBehaviour.transform.Find("Bg"), false, this); + DlgHandlerBase.EnsureCreate(ref this.m_weddingMainHandler, base.uiBehaviour.transform.Find("Bg"), false, this); + DlgHandlerBase.EnsureCreate(ref this.m_mentorshipHandler, base.uiBehaviour.transform.Find("Bg"), false, this); + DlgHandlerBase.EnsureCreate(ref this.m_dragonPartnerHandler, base.uiBehaviour.transform.Find("Bg"), false, this); + DlgHandlerBase.EnsureCreate(ref this.m_dragonGuildMainHandler, base.uiBehaviour.transform.Find("Bg"), false, this); + DlgHandlerBase.EnsureCreate(ref this.m_dragonGuildListHandler, base.uiBehaviour.transform.Find("Bg"), false, this); + } + + public override void RegisterEvent() + { + base.uiBehaviour.btnClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClose)); + base.uiBehaviour.btnRight.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonR)); + base.uiBehaviour.btnLeft.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickButtonL)); + base.uiBehaviour.btnHint.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCkickHint)); + base.uiBehaviour.FriendListWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._RankWrapFriendListUpdated)); + } + + protected override void OnShow() + { + base.OnShow(); + PtcC2M_FriendQueryReportNew ptcC2M_FriendQueryReportNew = new PtcC2M_FriendQueryReportNew(); + ptcC2M_FriendQueryReportNew.Data.op = FriendOpType.Friend_GiftInfo; + XSingleton.singleton.Send(ptcC2M_FriendQueryReportNew); + this.canSendGift = false; + this.m_FriendListTitleHeight = (base.uiBehaviour.goFriendListTitle.transform.Find("T1").Find("P").GetComponent("XUISprite") as IXUISprite).spriteHeight; + base.uiBehaviour.FriendTabPool.FakeReturnAll(); + int i = 0; + while (i < XFriendsDocument.FriendsTabCount) + { + FriendSysConfigTable.RowData friendsTabItemByIndex = XFriendsDocument.GetFriendsTabItemByIndex(i); + bool isOpen = friendsTabItemByIndex.IsOpen; + if (isOpen) + { + TabIndex tabIndex = (TabIndex)(friendsTabItemByIndex.TabID - 1); + bool flag = tabIndex == TabIndex.QQFriend && XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_QQ; + if (!flag) + { + bool flag2 = tabIndex == TabIndex.WeChatFriend && XSingleton.singleton.Channel != XAuthorizationChannel.XAuthorization_WeChat; + if (!flag2) + { + bool flag3 = tabIndex == TabIndex.Mentorship && !XSingleton.singleton.IsSystemOpen(75); + if (!flag3) + { + bool flag4 = tabIndex == TabIndex.Partner && !XSingleton.singleton.IsSystemOpen(700); + if (!flag4) + { + bool flag5 = tabIndex == TabIndex.Wedding && !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Wedding); + if (!flag5) + { + bool flag6 = tabIndex == TabIndex.DragonPartner && !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Activity_DragonNest); + if (!flag6) + { + bool flag7 = tabIndex == TabIndex.DragonGuild && !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GuildCollectSummon); + if (!flag7) + { + GameObject gameObject = base.uiBehaviour.FriendTabPool.FetchGameObject(false); + IXUICheckBox ixuicheckBox = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)((long)(friendsTabItemByIndex.TabID - 1)); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnClickTab)); + IXUISprite ixuisprite = gameObject.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = friendsTabItemByIndex.Icon; + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(friendsTabItemByIndex.TabName); + IXUILabel ixuilabel2 = gameObject.transform.Find("Selected/T").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(friendsTabItemByIndex.TabName); + IXUISprite ixuisprite2 = gameObject.transform.Find("Selected/P").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteName = friendsTabItemByIndex.Icon; + bool flag8 = tabIndex == this.m_CurrentTabIndex; + if (flag8) + { + bool bChecked = ixuicheckBox.bChecked; + if (bChecked) + { + this.OnClickTab(ixuicheckBox); + } + else + { + ixuicheckBox.ForceSetFlag(true); + } + } + else + { + ixuicheckBox.ForceSetFlag(false); + } + this.mRedpointUI[friendsTabItemByIndex.TabID - 1] = gameObject.transform.Find("RedPoint").gameObject; + } + } + } + } + } + } + } + } + IL_314: + i++; + continue; + goto IL_314; + } + base.uiBehaviour.FriendTabPool.ActualReturnAll(false); + this.SetRedPoint(TabIndex.Mentorship, XMentorshipDocument.Doc.IsHasRedDot()); + this.SetTabRedpoint(TabIndex.Partner, XPartnerDocument.Doc.IsHadRedDot); + this.UpdateRedpointUI(); + base.uiBehaviour.TabList.Refresh(); + this.RefreshFriendList(true); + this.QueryRoleState(); + this._doc.ReqPlatFriendsRank(); + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_CurrentTabIndex == TabIndex.Partner; + if (flag) + { + this.m_partnerMainHandler.SetVisible(false); + } + bool flag2 = this.m_CurrentTabIndex == TabIndex.Mentorship; + if (flag2) + { + this.MentorshipHandler.SetVisible(false); + } + bool flag3 = this.m_CurrentTabIndex == TabIndex.Wedding; + if (flag3) + { + this.m_weddingMainHandler.SetVisible(false); + } + bool flag4 = this.m_FriendsRankHandler != null; + if (flag4) + { + this.m_FriendsRankHandler.ClearPreTabTextures(); + } + bool flag5 = this.m_CurrentTabIndex == TabIndex.DragonPartner; + if (flag5) + { + this.m_dragonPartnerHandler.SetVisible(false); + } + bool flag6 = this.m_CurrentTabIndex == TabIndex.DragonGuild; + if (flag6) + { + bool flag7 = this.m_dragonGuildMainHandler.IsVisible(); + if (flag7) + { + this.m_dragonGuildMainHandler.SetVisible(false); + } + bool flag8 = this.m_dragonGuildListHandler.IsVisible(); + if (flag8) + { + this.m_dragonGuildListHandler.SetVisible(false); + } + } + } + + protected override void OnUnload() + { + this.m_FriendListTempView = null; + this._doc = null; + for (int i = 0; i < this.mRedpointUI.Length; i++) + { + this.mRedpointUI[i] = null; + } + DlgHandlerBase.EnsureUnload(ref this.m_FriendsViewHintHandler); + this.m_FriendsViewHintFrame = null; + DlgHandlerBase.EnsureUnload(ref this.m_FriendsViewAddBlockHandler); + this.m_FriendsViewAddBlockFrame = null; + DlgHandlerBase.EnsureUnload(ref this.m_FriendsViewReceiveGiftHandler); + this.m_FriendsViewReceiveGiftFrame = null; + DlgHandlerBase.EnsureUnload(ref this.m_FriendsRankHandler); + this.m_FriendsRankHandler = null; + base.uiBehaviour.FriendTabPool.ReturnAll(false); + DlgHandlerBase.EnsureUnload(ref this.m_partnerMainHandler); + DlgHandlerBase.EnsureUnload(ref this.m_mentorshipHandler); + DlgHandlerBase.EnsureUnload(ref this.m_weddingMainHandler); + DlgHandlerBase.EnsureUnload(ref this.m_dragonPartnerHandler); + DlgHandlerBase.EnsureUnload(ref this.m_dragonGuildMainHandler); + DlgHandlerBase.EnsureUnload(ref this.m_dragonGuildListHandler); + base.OnUnload(); + } + + public void OnRefreshPlatFriendsRank() + { + bool flag = !base.IsVisible() || this.m_FriendsRankHandler == null; + if (!flag) + { + this.m_FriendsRankHandler.RefreshRankList(); + } + } + + public void OnRefreshSendGiftState(PlatFriendRankInfo2Client info) + { + bool flag = !base.IsVisible() || this.m_FriendsRankHandler == null; + if (!flag) + { + this.m_FriendsRankHandler.OnRefreshSendGiftState(info); + } + } + + public void NoticeFriend(string openID) + { + bool flag = !base.IsVisible() || this.m_FriendsRankHandler == null; + if (!flag) + { + this.m_FriendsRankHandler.NoticeFriend(openID); + } + } + + public bool OnClickClose(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public void ShowTab(XSysDefine sys) + { + if (sys <= XSysDefine.XSys_Partner) + { + if (sys != XSysDefine.XSys_Mentorship) + { + if (sys == XSysDefine.XSys_Partner) + { + this.m_CurrentTabIndex = TabIndex.Partner; + } + } + else + { + this.m_CurrentTabIndex = TabIndex.Mentorship; + } + } + else if (sys != XSysDefine.XSys_Wedding) + { + if (sys == XSysDefine.XSys_GuildCollectSummon) + { + this.m_CurrentTabIndex = TabIndex.DragonGuild; + } + } + else + { + this.m_CurrentTabIndex = TabIndex.Wedding; + } + this.SetVisible(true, true); + } + + private void SetTabRedpoint(TabIndex index, bool redpoint) + { + int tabIndexInt = this.GetTabIndexInt(index); + this.mRedpoint[tabIndexInt] = redpoint; + bool flag = this.mRedpointUI[tabIndexInt] != null; + if (flag) + { + this.mRedpointUI[tabIndexInt].SetActive(redpoint); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + } + + public void SetRedPoint(TabIndex index, bool repoint) + { + int tabIndexInt = this.GetTabIndexInt(index); + bool flag = tabIndexInt < this.mRedpoint.Length; + if (flag) + { + this.mRedpoint[tabIndexInt] = repoint; + } + } + + private bool OnClickTab(IXUICheckBox cbx) + { + bool bChecked = cbx.bChecked; + if (bChecked) + { + this.m_CurrentTabIndex = (TabIndex)cbx.ID; + this._ApplyTabData(this.m_CurrentTabIndex); + } + return true; + } + + public void UpdateRedpointUI() + { + for (int i = 0; i < this.mRedpointUI.Length; i++) + { + bool flag = null != this.mRedpointUI[i]; + if (flag) + { + this.mRedpointUI[i].SetActive(this.mRedpoint[i]); + } + } + } + + public void OnShowFriendDlg() + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + } + + public XFriendData GetFriendDataById(ulong uid) + { + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].roleid == uid; + if (flag) + { + return this.friendData[i]; + } + } + return null; + } + + public XFriendData GetFriendDataByName(string name) + { + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].name == name; + if (flag) + { + return this.friendData[i]; + } + } + return null; + } + + public XFriendData GetBlockFriendDataById(ulong uid) + { + for (int i = 0; i < this.blockFriendData.Count; i++) + { + bool flag = this.blockFriendData[i].roleid == uid; + if (flag) + { + return this.blockFriendData[i]; + } + } + return null; + } + + public XFriendData GetBlockFriendDataByName(string name) + { + for (int i = 0; i < this.blockFriendData.Count; i++) + { + bool flag = this.blockFriendData[i].name == name; + if (flag) + { + return this.blockFriendData[i]; + } + } + return null; + } + + public List GetFriendData() + { + return this.friendData; + } + + public bool OnClickSendGiftToFriend(IXUIButton btn) + { + RpcC2M_FriendGiftOpNew rpcC2M_FriendGiftOpNew = new RpcC2M_FriendGiftOpNew(); + rpcC2M_FriendGiftOpNew.oArg.op = FriendOpType.Friend_SendGift; + rpcC2M_FriendGiftOpNew.oArg.roleid.Add(btn.ID); + XSingleton.singleton.Send(rpcC2M_FriendGiftOpNew); + return true; + } + + public bool OnClickReceiveGiftFromFriend(IXUIButton btn) + { + bool flag = this.m_TodayReceiveLeft > 0u; + if (flag) + { + RpcC2M_FriendGiftOpNew rpcC2M_FriendGiftOpNew = new RpcC2M_FriendGiftOpNew(); + rpcC2M_FriendGiftOpNew.oArg.op = FriendOpType.Friend_TakeGift; + rpcC2M_FriendGiftOpNew.oArg.roleid.Add(btn.ID); + XSingleton.singleton.Send(rpcC2M_FriendGiftOpNew); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_RECEIVE_ZERO_LEFT"), "fece00"); + } + return true; + } + + public bool OnClickSendGiftToFriendNotAvaliable(IXUIButton btn) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.CannotSendGiftToFriendHintText, "fece00"); + return true; + } + + public string GetFriendNameById(ulong uid) + { + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].roleid == uid; + if (flag) + { + return this.friendData[i].name; + } + } + return ""; + } + + public string GetBlockFriendNameById(ulong uid) + { + for (int i = 0; i < this.blockFriendData.Count; i++) + { + bool flag = this.blockFriendData[i].roleid == uid; + if (flag) + { + return this.blockFriendData[i].name; + } + } + return ""; + } + + private bool OnClickButtonR(IXUIButton sp) + { + TabIndex currentTabIndex = this.m_CurrentTabIndex; + switch (currentTabIndex) + { + case TabIndex.ShowFriend: + DlgBase.singleton.RandomFriend(); + return true; + case TabIndex.ApplyFriend: + { + bool flag = this.applyData.Count > 0; + if (flag) + { + RpcC2M_DoAddFriendNew rpcC2M_DoAddFriendNew = new RpcC2M_DoAddFriendNew(); + for (int i = 0; i < this.applyData.Count; i++) + { + rpcC2M_DoAddFriendNew.oArg.roleid.Add(this.applyData[i].roleid); + } + rpcC2M_DoAddFriendNew.oArg.op = FriendOpType.Friend_AgreeApply; + XSingleton.singleton.Send(rpcC2M_DoAddFriendNew); + } + return true; + } + case TabIndex.DragonPartner: + break; + case TabIndex.WeChatFriend: + DlgBase.singleton.RandomFriend(); + return true; + default: + if (currentTabIndex == TabIndex.BlockFriend) + { + this.m_FriendsViewAddBlockHandler.SetVisible(true); + return true; + } + break; + } + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_UNKNOWN, "fece00"); + return true; + } + + private bool OnClickButtonL(IXUIButton sp) + { + TabIndex currentTabIndex = this.m_CurrentTabIndex; + if (currentTabIndex != TabIndex.ShowFriend) + { + if (currentTabIndex != TabIndex.ApplyFriend) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_UNKNOWN, "fece00"); + } + else + { + bool flag = this.applyData.Count > 0; + if (flag) + { + RpcC2M_DoAddFriendNew rpcC2M_DoAddFriendNew = new RpcC2M_DoAddFriendNew(); + for (int i = 0; i < this.applyData.Count; i++) + { + rpcC2M_DoAddFriendNew.oArg.roleid.Add(this.applyData[i].roleid); + } + rpcC2M_DoAddFriendNew.oArg.op = FriendOpType.Friend_IgnoreApply; + XSingleton.singleton.Send(rpcC2M_DoAddFriendNew); + } + } + } + else + { + bool flag2 = this.m_FriendsViewReceiveGiftHandler != null; + if (flag2) + { + this.m_FriendsViewReceiveGiftHandler.SetVisible(true); + this.m_FriendsViewReceiveGiftHandler.RefreshList(this.friendData); + } + } + return true; + } + + public bool OnClickAddQQFriends(IXUIButton sp) + { + ulong id = sp.ID; + XFriendData friendDataById = this.GetFriendDataById(id); + XSingleton.singleton.OneKeyAddQQFriend(friendDataById.openID, friendDataById.nickName); + return true; + } + + public bool OnClickChatFriend(IXUIButton sp) + { + ulong id = sp.ID; + bool flag = this.GetBlockFriendDataById(id) != null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_BLOCK_HINT_TEXT"), "fece00"); + } + else + { + XFriendData friendDataById = this.GetFriendDataById(id); + bool flag2 = friendDataById != null; + if (flag2) + { + ChatFriendData chatFriendData = new ChatFriendData(); + chatFriendData.name = friendDataById.name; + chatFriendData.roleid = friendDataById.roleid; + chatFriendData.powerpoint = friendDataById.powerpoint; + chatFriendData.profession = friendDataById.profession; + chatFriendData.viplevel = friendDataById.viplevel; + chatFriendData.isfriend = true; + chatFriendData.setid = friendDataById.setid; + chatFriendData.msgtime = DateTime.Now; + DlgBase.singleton.PrivateChatTo(chatFriendData); + } + } + return true; + } + + private bool OnClickAgreeApply(IXUIButton sp) + { + bool flag = this.GetFriendDataById(sp.ID) != null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_ALREADY_FRIENDS"), "fece00"); + } + RpcC2M_DoAddFriendNew rpcC2M_DoAddFriendNew = new RpcC2M_DoAddFriendNew(); + rpcC2M_DoAddFriendNew.oArg.roleid.Add(sp.ID); + rpcC2M_DoAddFriendNew.oArg.op = FriendOpType.Friend_AgreeApply; + XSingleton.singleton.Send(rpcC2M_DoAddFriendNew); + return true; + } + + public void OnApply(DoAddFriendArg oArg, DoAddFriendRes oRes) + { + FriendOpType op = oArg.op; + if (op != FriendOpType.Friend_AgreeApply) + { + if (op == FriendOpType.Friend_IgnoreApply) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_SUCCESS"), "fece00"); + } + } + else + { + bool flag = oRes.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RRIENDS_APPLY_AGREE"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + + private bool OnClickIgnoreApply(IXUIButton sp) + { + bool flag = this.GetFriendDataById(sp.ID) != null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_ALREADY_FRIENDS"), "fece00"); + } + RpcC2M_DoAddFriendNew rpcC2M_DoAddFriendNew = new RpcC2M_DoAddFriendNew(); + rpcC2M_DoAddFriendNew.oArg.roleid.Add(sp.ID); + rpcC2M_DoAddFriendNew.oArg.op = FriendOpType.Friend_IgnoreApply; + XSingleton.singleton.Send(rpcC2M_DoAddFriendNew); + return true; + } + + private bool OnCkickHint(IXUIButton sp) + { + this.m_FriendsViewHintHandler.SetVisible(true); + return true; + } + + private bool DoDeleteFriend(IXUIButton sp) + { + this.RemoveFriend(sp.ID); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public bool OnClickDeleteFriend(IXUIButton sp) + { + bool flag = TabIndex.BlockFriend == this.m_CurrentTabIndex; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_BLOCK_HINT_TEXT"), "fece00"); + } + else + { + bool flag2 = this.m_CurrentTabIndex == TabIndex.ShowFriend; + if (flag2) + { + DlgBase.singleton.Load(); + DlgBase.singleton.uiBehaviour.m_OKButton.ID = sp.ID; + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("FRIENDS_DELETE"), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.DoDeleteFriend)); + } + } + return true; + } + + public bool OnRemoveBlockFriend(IXUIButton sp) + { + ulong id = sp.ID; + DlgBase.singleton.RemoveBlockFriend(id); + return true; + } + + private void OnClickFriendItemPanel(IXUISprite sp) + { + ulong id = sp.ID; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(id, false); + } + + public void AddFriendById(ulong id) + { + bool flag = id == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_NOT_ADD_SELF"), "fece00"); + } + else + { + RpcC2M_AddFriendNew rpcC2M_AddFriendNew = new RpcC2M_AddFriendNew(); + rpcC2M_AddFriendNew.oArg.friendroleid = id; + XSingleton.singleton.Send(rpcC2M_AddFriendNew); + } + } + + public void AddFriendByName(string name) + { + RpcC2M_AddFriendNew rpcC2M_AddFriendNew = new RpcC2M_AddFriendNew(); + rpcC2M_AddFriendNew.oArg.name = name; + XSingleton.singleton.Send(rpcC2M_AddFriendNew); + } + + public void AddFriendRes(ErrorCode code, ulong uid) + { + bool flag = code == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_APPLY_SUCC"), "fece00"); + DlgBase.singleton.FriendAdded(); + } + else + { + bool flag2 = code == ErrorCode.ERR_FRIEND_REPEATED; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_ALREADY_FRIENDS"), "fece00"); + } + else + { + bool flag3 = code == ErrorCode.ERR_ADDFRIEND_DUMMYROLE; + if (flag3) + { + XSingleton.singleton.ShowErrorCode(code); + } + else + { + XSingleton.singleton.ShowSystemTip(code, "fece00"); + } + } + } + } + + private bool IsNewFirend(XFriendData data) + { + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].roleid == data.roleid; + if (flag) + { + return false; + } + } + return true; + } + + public void OnFriendOpNotify(PtcM2C_FriendOpNtfNew roPtc) + { + switch (roPtc.Data.op) + { + case FriendOpType.Friend_FriendAll: + this.friendData.Clear(); + for (int i = 0; i < roPtc.Data.friendlist.Count; i++) + { + Friend2Client friend2Client = roPtc.Data.friendlist[i]; + XFriendData xfriendData = this.GenerateFriendInfo(friend2Client); + this.friendData.Add(xfriendData); + XSingleton.singleton.AddSpriteYuYinId(friend2Client.name + "_" + friend2Client.roleid.ToString(), xfriendData.audioid); + } + this.QueryRoleState(); + this.CheckGiftSendReceiveState(); + break; + case FriendOpType.Friend_ApplyAll: + { + this.applyData.Clear(); + for (int j = 0; j < roPtc.Data.applylist.Count; j++) + { + Friend2Client friend2Client2 = roPtc.Data.applylist[j]; + XFriendData item = this.GenerateFriendInfo(friend2Client2); + this.applyData.Add(item); + } + bool flag = base.IsVisible(); + if (flag) + { + this.RefreshFriendList(false); + } + this.SetTabRedpoint(TabIndex.ApplyFriend, this.applyData.Count > 0); + break; + } + case FriendOpType.Friend_FriendAdd: + { + for (int k = 0; k < roPtc.Data.friendlist.Count; k++) + { + Friend2Client friend2Client3 = roPtc.Data.friendlist[k]; + XFriendData xfriendData2 = this.GenerateFriendInfo(friend2Client3); + bool flag2 = this.IsNewFirend(xfriendData2); + this.friendData.Add(xfriendData2); + DlgBase.singleton.ChatDoc.RemoveStranger(friend2Client3.roleid); + bool flag3 = flag2; + if (flag3) + { + DlgBase.singleton.UIOP.RefreshFriendChat(xfriendData2, false); + } + XSingleton.singleton.AddSpriteYuYinId(xfriendData2.name + "_" + xfriendData2.roleid.ToString(), xfriendData2.audioid); + } + this.SortFriendData(); + bool flag4 = base.IsVisible(); + if (flag4) + { + this.RefreshFriendList(false); + bool flag5 = this.m_FriendsViewReceiveGiftHandler != null && this.m_FriendsViewReceiveGiftHandler.IsVisible(); + if (flag5) + { + this.m_FriendsViewReceiveGiftHandler.RefreshList(this.friendData); + } + } + this.CheckGiftSendReceiveState(); + break; + } + case FriendOpType.Friend_FriendDelete: + { + for (int l = 0; l < this.friendData.Count; l++) + { + bool flag6 = false; + int num = 0; + while (roPtc.Data.deletelist.Count > 0 && num < roPtc.Data.deletelist.Count) + { + bool flag7 = roPtc.Data.deletelist[num] == this.friendData[l].roleid; + if (flag7) + { + flag6 = true; + int index = roPtc.Data.deletelist.Count - 1; + roPtc.Data.deletelist[num] = roPtc.Data.deletelist[index]; + roPtc.Data.deletelist.RemoveAt(index); + break; + } + num++; + } + bool flag8 = flag6; + if (flag8) + { + int index2 = this.friendData.Count - 1; + this.friendData[l--] = this.friendData[index2]; + this.friendData.RemoveAt(index2); + } + } + this.SortFriendData(); + bool flag9 = base.IsVisible(); + if (flag9) + { + this.RefreshFriendList(false); + bool flag10 = this.m_FriendsViewReceiveGiftHandler != null && this.m_FriendsViewReceiveGiftHandler.IsVisible(); + if (flag10) + { + this.m_FriendsViewReceiveGiftHandler.RefreshList(this.friendData); + } + } + this.CheckGiftSendReceiveState(); + break; + } + case FriendOpType.Friend_ApplyAdd: + { + for (int m = 0; m < roPtc.Data.applylist.Count; m++) + { + Friend2Client friend2Client4 = roPtc.Data.applylist[m]; + XFriendData item2 = this.GenerateFriendInfo(friend2Client4); + this.applyData.Add(item2); + } + bool flag11 = base.IsVisible(); + if (flag11) + { + this.RefreshFriendList(false); + bool flag12 = this.m_FriendsViewReceiveGiftHandler != null && this.m_FriendsViewReceiveGiftHandler.IsVisible(); + if (flag12) + { + this.m_FriendsViewReceiveGiftHandler.RefreshList(this.friendData); + } + } + this.SetTabRedpoint(TabIndex.ApplyFriend, this.applyData.Count > 0); + break; + } + case FriendOpType.Friend_ApplyDelete: + { + for (int n = 0; n < this.applyData.Count; n++) + { + bool flag13 = false; + int num2 = 0; + while (roPtc.Data.deleteapplylist.Count > 0 && num2 < roPtc.Data.deleteapplylist.Count) + { + bool flag14 = roPtc.Data.deleteapplylist[num2] == this.applyData[n].roleid; + if (flag14) + { + flag13 = true; + int index3 = roPtc.Data.deleteapplylist.Count - 1; + roPtc.Data.deleteapplylist[num2] = roPtc.Data.deleteapplylist[index3]; + roPtc.Data.deleteapplylist.RemoveAt(index3); + break; + } + num2++; + } + bool flag15 = flag13; + if (flag15) + { + int index4 = this.applyData.Count - 1; + this.applyData[n--] = this.applyData[index4]; + this.applyData.RemoveAt(index4); + } + } + bool flag16 = base.IsVisible(); + if (flag16) + { + this.RefreshFriendList(false); + bool flag17 = this.m_FriendsViewReceiveGiftHandler != null && this.m_FriendsViewReceiveGiftHandler.IsVisible(); + if (flag17) + { + this.m_FriendsViewReceiveGiftHandler.RefreshList(this.friendData); + } + } + this.SetTabRedpoint(TabIndex.ApplyFriend, this.applyData.Count > 0); + break; + } + case FriendOpType.Friend_ReveiveGift: + { + for (int num3 = 0; num3 < roPtc.Data.senderid.Count; num3++) + { + XFriendData friendDataById = this.GetFriendDataById(roPtc.Data.senderid[num3]); + bool flag18 = friendDataById != null; + if (flag18) + { + friendDataById.receiveAll += 1u; + friendDataById.receiveGiftState = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_Received); + friendDataById.receivetime = roPtc.Data.receivedtime[num3]; + } + } + bool flag19 = base.IsVisible() && this.m_FriendsViewReceiveGiftHandler != null && this.m_FriendsViewReceiveGiftHandler.IsVisible(); + if (flag19) + { + this.m_FriendsViewReceiveGiftHandler.RefreshList(this.friendData); + } + this.CheckGiftSendReceiveState(); + break; + } + case FriendOpType.Friend_GiftInfo: + this.m_TodaySendLeft = roPtc.Data.giftcount.SendLeft; + this.m_TodayReceiveLeft = roPtc.Data.giftcount.ReceiveLeft; + break; + } + } + + private bool _CheckHasGiftToSend() + { + this.canSendGift = false; + uint num = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftSend.FriendGift_Sended); + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].degreeDay >= XSingleton.singleton.SendGiftMinDegree && this.friendData[i].sendGiftState != num; + if (flag) + { + this.canSendGift = true; + break; + } + } + return this.canSendGift; + } + + private void CheckGiftSendReceiveState() + { + bool flag = this._CheckHasGiftToSend(); + bool flag2 = this._CheckHasGiftCanReceive(); + this.SetTabRedpoint(TabIndex.ShowFriend, flag || flag2); + this.RefreshGiftBtnRedPoint(); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + } + + public void OnFriendGiftOp(FriendGiftOpArg oArg, FriendGiftOpRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + FriendOpType op = oArg.op; + if (op != FriendOpType.Friend_SendGift) + { + if (op == FriendOpType.Friend_TakeGift) + { + this.m_TodayReceiveLeft -= 1u; + bool flag2 = oArg.roleid != null && oArg.roleid.Count > 0; + if (flag2) + { + XFriendData friendDataById = this.GetFriendDataById(oArg.roleid[0]); + bool flag3 = friendDataById != null; + if (flag3) + { + friendDataById.receiveGiftState = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_ReceiveTaken); + List list = new List(); + list.Add((uint)XFastEnumIntEqualityComparer.ToInt(ItemEnum.FRIEND_GIFT)); + List list2 = new List(); + list2.Add(1u); + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GiftSuccessfullyReceiveHintText, this.m_TodayReceiveLeft), "fece00"); + } + bool flag4 = base.IsVisible() && base.uiBehaviour != null && base.uiBehaviour.FriendListWrapContent != null && this.friendData != null; + if (flag4) + { + base.uiBehaviour.FriendListWrapContent.SetContentCount(this.friendData.Count, false); + } + bool flag5 = base.IsVisible() && this.m_FriendsViewReceiveGiftHandler != null && this.m_FriendsViewReceiveGiftHandler.IsVisible(); + if (flag5) + { + this.m_FriendsViewReceiveGiftHandler.RefreshList(); + } + this.CheckGiftSendReceiveState(); + this.ReceiveGiftReply(friendDataById); + } + } + } + else + { + this.m_TodaySendLeft -= 1u; + bool flag6 = oArg.roleid != null && oArg.roleid.Count > 0; + if (flag6) + { + XFriendData friendDataById2 = this.GetFriendDataById(oArg.roleid[0]); + bool flag7 = friendDataById2 != null; + if (flag7) + { + friendDataById2.sendGiftState = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftSend.FriendGift_Sended); + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GiftSuccessfullySentHintText, this.m_TodaySendLeft), "fece00"); + this.CheckGiftSendReceiveState(); + } + bool flag8 = base.IsVisible() && this.m_CurrentTabIndex == TabIndex.ShowFriend; + if (flag8) + { + bool flag9 = base.uiBehaviour != null && base.uiBehaviour.FriendListWrapContent != null && this.friendData != null; + if (flag9) + { + base.uiBehaviour.FriendListWrapContent.SetContentCount(this.friendData.Count, false); + } + } + bool flag10 = base.IsVisible() && this.m_FriendsViewReceiveGiftHandler != null && this.m_FriendsViewReceiveGiftHandler.IsVisible(); + if (flag10) + { + this.m_FriendsViewReceiveGiftHandler.RefreshList(); + } + } + } + } + } + + private void ReceiveGiftReply(XFriendData _data) + { + ChatInfo chatInfo = new ChatInfo(); + chatInfo.mTime = DateTime.Now; + chatInfo.isSelfSender = true; + chatInfo.mReceiverName = _data.name; + chatInfo.mReceiverId = _data.roleid; + chatInfo.mReciverPowerPoint = _data.powerpoint; + chatInfo.mRecieverProfession = _data.profession; + chatInfo.mReceiverVip = _data.viplevel; + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.AddChatinfo2FriendList(chatInfo); + DlgBase.singleton.SendExternalFriendChat(XStringDefineProxy.GetString("FRIENDS_RECEIVE_THX"), chatInfo, 0UL, 0f, null); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_RECEIVE_THX_SEND"), "fece00"); + } + + public void RemoveFriend(ulong id) + { + DlgBase.singleton.Load(); + DlgBase.singleton.uiBehaviour.m_OKButton.ID = id; + XFriendData friendDataById = this.GetFriendDataById(id); + bool flag = friendDataById != null; + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("FRIENDS_DELETE", new object[] + { + friendDataById.name + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.DoDeleteFriendByID)); + } + else + { + this.DoDeleteFriendByID(DlgBase.singleton.uiBehaviour.m_OKButton); + } + } + + private bool DoDeleteFriendByID(IXUIButton btn) + { + XFriendData friendDataById = this.GetFriendDataById(btn.ID); + bool flag = friendDataById != null; + if (flag) + { + this.m_DeleteFriendName = friendDataById.name; + } + XSingleton.singleton.CloseModalDlg(); + bool flag2 = this.OnRemoveFriendSucc != null; + if (flag2) + { + this.OnRemoveFriendSucc(); + } + ulong id = btn.ID; + RpcC2M_RemoveFriendNew rpcC2M_RemoveFriendNew = new RpcC2M_RemoveFriendNew(); + rpcC2M_RemoveFriendNew.oArg.friendroleid = id; + XSingleton.singleton.Send(rpcC2M_RemoveFriendNew); + return true; + } + + public void RemoveFriendRes(ErrorCode code, ulong roleid) + { + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].roleid == roleid; + if (flag) + { + DlgBase.singleton.ChatDoc.AddStranger(roleid); + this.friendData.RemoveAt(i); + break; + } + } + this.RefreshFriendList(false); + bool flag2 = this.m_DeleteFriendName != ""; + if (flag2) + { + bool flag3 = code == ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_DEL_SUCC") + this.m_DeleteFriendName, "fece00"); + } + this.m_DeleteFriendName = ""; + } + DlgBase.singleton.ChatDoc.RemoveFriend(roleid); + } + + public void UpdateFriendInfo(ulong uid, uint daydegree, uint alldegree) + { + XFriendData friendDataById = this.GetFriendDataById(uid); + bool flag = friendDataById != null; + if (flag) + { + uint deltaDay = daydegree - friendDataById.degreeDay; + uint deltaAll = alldegree - friendDataById.degreeAll; + friendDataById.degreeDay = daydegree; + friendDataById.degreeAll = alldegree; + this.CheckGiftSendReceiveState(); + bool flag2 = base.IsVisible() && this.m_CurrentTabIndex == TabIndex.ShowFriend; + if (flag2) + { + bool flag3 = null != friendDataById.friendgo; + if (flag3) + { + this._UpdateFriendDegreeUI(friendDataById.friendgo.transform, friendDataById, deltaDay, deltaAll); + this._UpdateFriendSendGiftUI(friendDataById.friendgo.transform, friendDataById); + } + else + { + base.uiBehaviour.FriendListWrapContent.SetContentCount(this.friendData.Count, false); + } + } + } + } + + public void QueryRoleState() + { + PtcC2M_RoleStateReportNew ptcC2M_RoleStateReportNew = new PtcC2M_RoleStateReportNew(); + for (int i = 0; i < this.friendData.Count; i++) + { + ptcC2M_RoleStateReportNew.Data.roleid.Add(this.friendData[i].roleid); + } + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + for (int j = 0; j < specificDocument.ChatFriendList.Count; j++) + { + ChatFriendData chatFriendData = specificDocument.ChatFriendList[j]; + bool flag = !ptcC2M_RoleStateReportNew.Data.roleid.Contains(chatFriendData.roleid); + if (flag) + { + ptcC2M_RoleStateReportNew.Data.roleid.Add(chatFriendData.roleid); + } + } + XSingleton.singleton.Send(ptcC2M_RoleStateReportNew); + } + + public void SortFriendData() + { + this.friendData.Sort(new Comparison(this.CompareFriendData)); + } + + public void QueryRoleStateRes(RoleStateNtf rolestate) + { + for (int i = 0; i < this.friendData.Count; i++) + { + for (int j = 0; j < rolestate.roleid.Count; j++) + { + bool flag = rolestate.roleid[j] == this.friendData[i].roleid; + if (flag) + { + this.friendData[i].online = rolestate.state[j]; + this.friendData[i].lastlogin = rolestate.timelastlogin[j]; + } + } + } + this.SortFriendData(); + this.RefreshFriendList(false); + bool flag2 = base.IsVisible() && this.m_FriendsViewReceiveGiftHandler != null && this.m_FriendsViewReceiveGiftHandler.IsVisible(); + if (flag2) + { + this.m_FriendsViewReceiveGiftHandler.RefreshList(this.friendData); + } + XFriendListEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + private int CompareOfflineTime(uint lastLogin1, uint lastLogin2) + { + int num = 0; + int num2 = 0; + int value = 0; + int num3 = 0; + this.GetOfflineTime((int)lastLogin1, out num, out num2); + this.GetOfflineTime((int)lastLogin2, out value, out num3); + bool flag = num2 == num3; + int result; + if (flag) + { + result = num.CompareTo(value); + } + else + { + result = num2.CompareTo(num3); + } + return result; + } + + private void GetOfflineTime(int lastlogin, out int number, out int unit) + { + bool flag = lastlogin < 60; + if (flag) + { + number = 1; + unit = 1; + } + else + { + bool flag2 = lastlogin < 3600; + if (flag2) + { + number = lastlogin / 60; + unit = 1; + } + else + { + bool flag3 = lastlogin < 86400; + if (flag3) + { + number = lastlogin / 3600; + unit = 2; + } + else + { + bool flag4 = lastlogin < 2678400; + if (flag4) + { + number = lastlogin / 86400; + unit = 3; + } + else + { + number = lastlogin / 2592000; + unit = 4; + } + } + } + } + } + + private int CompareFriendData(XFriendData a, XFriendData b) + { + bool flag = a.online == 0u && b.online == 0u; + if (flag) + { + int num = this.CompareOfflineTime(a.lastlogin, b.lastlogin); + bool flag2 = num != 0; + if (flag2) + { + return num; + } + } + else + { + bool flag3 = a.online == 0u || b.online == 0u; + if (flag3) + { + return b.online.CompareTo(a.online); + } + } + bool flag4 = b.degreeAll != a.degreeAll; + int result; + if (flag4) + { + result = b.degreeAll.CompareTo(a.degreeAll); + } + else + { + bool flag5 = b.level != a.level; + if (flag5) + { + result = b.level.CompareTo(a.level); + } + else + { + bool flag6 = b.powerpoint != a.powerpoint; + if (flag6) + { + result = b.powerpoint.CompareTo(a.powerpoint); + } + else + { + result = b.name.CompareTo(a.name); + } + } + } + return result; + } + + public int CompareFriendGiftData(XFriendData a, XFriendData b) + { + return b.receiveAll.CompareTo(a.receiveAll); + } + + public void ShowFriends(bool refreshChatUI = false) + { + this.m_RefreshFriendChatUI = refreshChatUI; + this._ApplyTabData(TabIndex.ApplyFriend); + } + + private int _SetTabNumLabel(TabIndex tab) + { + TabIndex currentTabIndex = this.m_CurrentTabIndex; + int num; + if (currentTabIndex != TabIndex.ShowFriend) + { + if (currentTabIndex != TabIndex.ApplyFriend) + { + if (currentTabIndex != TabIndex.BlockFriend) + { + num = 0; + } + else + { + num = this.blockFriendData.Count; + base.uiBehaviour.goFriendListBrockZero.SetActive(num <= 0); + } + } + else + { + num = this.applyData.Count; + } + } + else + { + num = this.friendData.Count; + base.uiBehaviour.goFriendListZero.SetActive(num <= 0); + } + FriendSysConfigTable.RowData friendsTabItemByID = XFriendsDocument.GetFriendsTabItemByID(this.GetTabIndexInt(this.m_CurrentTabIndex) + 1); + int num2 = num; + bool flag = this.m_CurrentTabIndex == TabIndex.ApplyFriend; + if (flag) + { + num2 = this.friendData.Count; + } + base.uiBehaviour.lbFriendsNum.SetText(string.Format(XSingleton.singleton.CommonCountTotalFmt, num2, friendsTabItemByID.NumLimit)); + return num; + } + + private void _ApplyTabData(TabIndex tab) + { + bool flag = base.IsVisible(); + bool flag2 = flag; + if (flag2) + { + base.uiBehaviour.btnHint.SetVisible(this.m_CurrentTabIndex == TabIndex.ShowFriend); + bool flag3 = this.m_CurrentTabIndex == TabIndex.ShowFriend; + if (flag3) + { + base.uiBehaviour.goFriendListTitle.SetActive(true); + } + else + { + base.uiBehaviour.goFriendListTitle.SetActive(false); + } + this.MentorshipHandler.SetVisible(this.m_CurrentTabIndex == TabIndex.Mentorship); + this.m_FriendsRankHandler.SetVisible(TabIndex.WeChatFriend == this.m_CurrentTabIndex || TabIndex.QQFriend == this.m_CurrentTabIndex); + bool flag4 = this.m_partnerMainHandler.IsVisible() && TabIndex.Partner != this.m_CurrentTabIndex; + if (flag4) + { + this.m_partnerMainHandler.SetVisible(false); + } + this.m_weddingMainHandler.SetVisible(TabIndex.Wedding == this.m_CurrentTabIndex); + bool flag5 = this.m_dragonPartnerHandler.IsVisible() && TabIndex.DragonPartner != this.m_CurrentTabIndex; + if (flag5) + { + this.m_dragonPartnerHandler.SetVisible(false); + } + bool flag6 = this.m_dragonGuildListHandler.IsVisible() && TabIndex.DragonGuild != this.m_CurrentTabIndex; + if (flag6) + { + this.m_dragonGuildListHandler.SetVisible(false); + } + bool flag7 = this.m_dragonGuildMainHandler.IsVisible() && TabIndex.DragonGuild != this.m_CurrentTabIndex; + if (flag7) + { + this.m_dragonGuildMainHandler.SetVisible(false); + } + base.uiBehaviour.content.gameObject.SetActive(TabIndex.WeChatFriend != this.m_CurrentTabIndex && TabIndex.QQFriend != this.m_CurrentTabIndex); + base.uiBehaviour.goFriendListZero.SetActive(false); + base.uiBehaviour.goFriendListBrockZero.SetActive(false); + FriendSysConfigTable.RowData friendsTabItemByID = XFriendsDocument.GetFriendsTabItemByID(this.GetTabIndexInt(this.m_CurrentTabIndex) + 1); + base.uiBehaviour.btnLeft.SetVisible(friendsTabItemByID.LButtonLabel.Length > 0); + base.uiBehaviour.lbButtonL.SetText(friendsTabItemByID.LButtonLabel); + base.uiBehaviour.btnRight.SetVisible(friendsTabItemByID.RButtonLabel.Length > 0); + base.uiBehaviour.lbButtonR.SetText(friendsTabItemByID.RButtonLabel); + base.uiBehaviour.lbFriendsNumLabel.SetText(friendsTabItemByID.NumLabel); + base.uiBehaviour.lbFriendsNumLabel.SetVisible(friendsTabItemByID.NumLabel.Length > 0); + base.uiBehaviour.lbFriendsNum.SetVisible(friendsTabItemByID.NumLabel.Length > 0); + this._SetTabNumLabel(this.m_CurrentTabIndex); + this.CheckGiftSendReceiveState(); + } + bool flag8 = flag; + if (flag8) + { + this.RefreshFriendList(false); + } + switch (tab) + { + case TabIndex.ShowFriend: + { + PtcC2M_FriendQueryReportNew ptcC2M_FriendQueryReportNew = new PtcC2M_FriendQueryReportNew(); + ptcC2M_FriendQueryReportNew.Data.op = FriendOpType.Friend_FriendAll; + XSingleton.singleton.Send(ptcC2M_FriendQueryReportNew); + break; + } + case TabIndex.ApplyFriend: + { + PtcC2M_FriendQueryReportNew ptcC2M_FriendQueryReportNew2 = new PtcC2M_FriendQueryReportNew(); + ptcC2M_FriendQueryReportNew2.Data.op = FriendOpType.Friend_ApplyAll; + XSingleton.singleton.Send(ptcC2M_FriendQueryReportNew2); + break; + } + case TabIndex.DragonPartner: + { + bool flag9 = this.m_dragonPartnerHandler != null && !this.m_dragonPartnerHandler.IsVisible(); + if (flag9) + { + this.m_dragonPartnerHandler.SetVisible(true); + } + break; + } + case TabIndex.Partner: + { + bool flag10 = this.m_partnerMainHandler != null && !this.m_partnerMainHandler.IsVisible(); + if (flag10) + { + this.m_partnerMainHandler.SetVisible(true); + } + break; + } + case TabIndex.Mentorship: + { + bool flag11 = this.MentorshipHandler != null && !this.MentorshipHandler.IsVisible(); + if (flag11) + { + this.MentorshipHandler.SetVisible(true); + } + break; + } + case TabIndex.Wedding: + { + bool flag12 = this.m_weddingMainHandler != null && !this.m_weddingMainHandler.IsVisible(); + if (flag12) + { + this.m_weddingMainHandler.SetVisible(true); + } + break; + } + case TabIndex.DragonGuild: + { + bool flag13 = XDragonGuildDocument.Doc.IsInDragonGuild(); + if (flag13) + { + this.m_dragonGuildMainHandler.SetVisible(false); + this.m_dragonGuildMainHandler.SetVisible(true); + bool flag14 = this.m_dragonGuildListHandler.IsVisible(); + if (flag14) + { + this.m_dragonGuildListHandler.SetVisible(false); + } + } + else + { + this.m_dragonGuildListHandler.SetVisible(true); + bool flag15 = this.m_dragonGuildMainHandler.IsVisible(); + if (flag15) + { + this.m_dragonGuildMainHandler.SetVisible(false); + } + } + break; + } + } + } + + private XFriendData GenerateFriendInfo(Friend2Client friend2Client) + { + return new XFriendData + { + name = friend2Client.name, + lastlogin = friend2Client.lastlogin, + level = friend2Client.level, + powerpoint = friend2Client.powerpoint, + profession = friend2Client.profession, + roleid = friend2Client.roleid, + viplevel = friend2Client.viplevel, + audioid = (int)friend2Client.audioid, + setid = ((friend2Client.pre != null) ? friend2Client.pre.setid : new List()), + online = 0u, + degreeDay = friend2Client.daydegree, + degreeAll = friend2Client.alldegree, + receiveGiftState = friend2Client.receivegiftstate, + sendGiftState = friend2Client.sendgiftstate, + uid = friend2Client.nickid, + titleID = friend2Client.titleid, + receiveAll = friend2Client.receiveall, + guildname = friend2Client.guildname, + receivetime = friend2Client.receivetime, + paymemberid = friend2Client.paymemberid, + openID = friend2Client.openid, + nickName = friend2Client.nickname + }; + } + + public bool IsMyFriend(ulong uid) + { + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].roleid == uid; + if (flag) + { + return true; + } + } + return false; + } + + public uint GetFriendDegreeAll(ulong uid) + { + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].roleid == uid; + if (flag) + { + return this.friendData[i].degreeAll; + } + } + return 0u; + } + + public bool IsBlock(ulong uid) + { + for (int i = 0; i < this.blockFriendData.Count; i++) + { + bool flag = this.blockFriendData[i].roleid == uid; + if (flag) + { + return true; + } + } + return false; + } + + public void RefreshFriendList(bool reset = false) + { + bool flag = !base.IsVisible(); + if (!flag) + { + int num = this._SetTabNumLabel(this.m_CurrentTabIndex); + base.uiBehaviour.FriendListWrapContent.SetContentCount(num, false); + if (reset) + { + base.uiBehaviour.FriendListScrollView.ResetPosition(); + } + } + } + + public void SetTencentImage(IXUITexture texture) + { + bool flag = texture == null; + if (!flag) + { + texture.gameObject.SetActive(false); + } + } + + public void RandomFriend() + { + RpcC2M_RandomFriendWaitListNew rpc = new RpcC2M_RandomFriendWaitListNew(); + XSingleton.singleton.Send(rpc); + } + + public void RandomFriendRes(RandomFriendWaitListRes waitList) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.OnRefreshRandomFriend(waitList); + } + else + { + DlgBase.singleton.ShowBoard(waitList); + } + } + + private bool DoAddBlockFriendByID(IXUIButton btn) + { + RpcC2M_AddBlackListNew rpcC2M_AddBlackListNew = new RpcC2M_AddBlackListNew(); + rpcC2M_AddBlackListNew.oArg.otherroleid = btn.ID; + XSingleton.singleton.Send(rpcC2M_AddBlackListNew); + bool flag = this.OnAddBlockSucc != null; + if (flag) + { + this.OnAddBlockSucc(); + } + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool DoAddBlockFriendByName(IXUIButton btn) + { + RpcC2M_AddBlackListNew rpcC2M_AddBlackListNew = new RpcC2M_AddBlackListNew(); + rpcC2M_AddBlackListNew.oArg.name = btn.gameObject.name; + XSingleton.singleton.Send(rpcC2M_AddBlackListNew); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + public void AddBlockFriend(ulong uid) + { + bool flag = uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_CAN_NOT_BAN_SELF"), "fece00"); + } + else + { + bool flag2 = this.GetBlockFriendDataById(uid) != null; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_ALREADY_BAN"), "fece00"); + } + else + { + DlgBase.singleton.Load(); + DlgBase.singleton.uiBehaviour.m_OKButton.ID = uid; + XFriendData friendDataById = this.GetFriendDataById(uid); + bool flag3 = friendDataById != null; + if (flag3) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("FRIENDS_BLOCK", new object[] + { + friendDataById.name + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.DoAddBlockFriendByID)); + } + else + { + this.DoAddBlockFriendByID(DlgBase.singleton.uiBehaviour.m_OKButton); + } + } + } + } + + public void AddBlockFriend(string name) + { + bool flag = name == XSingleton.singleton.XPlayerData.Name; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_CAN_NOT_BAN_SELF"), "fece00"); + } + else + { + bool flag2 = this.GetBlockFriendDataByName(name) != null; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_ALREADY_BAN"), "fece00"); + } + else + { + DlgBase.singleton.Load(); + DlgBase.singleton.uiBehaviour.m_OKButton.gameObject.name = name; + XFriendData friendDataByName = this.GetFriendDataByName(name); + bool flag3 = friendDataByName != null; + if (flag3) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("FRIENDS_BLOCK", new object[] + { + friendDataByName.name + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.DoAddBlockFriendByName)); + } + else + { + this.DoAddBlockFriendByName(DlgBase.singleton.uiBehaviour.m_OKButton); + } + } + } + } + + public void AddBlockFriendRes(Friend2Client black) + { + XFriendData item = this.GenerateFriendInfo(black); + this.blockFriendData.Add(item); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("FRIENDS_BAN_SUCC"), black.name), "fece00"); + DlgBase.singleton.ChatDoc.RemoveFriend(black.roleid); + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = this.friendData[i].roleid == black.roleid; + if (flag) + { + this.friendData.RemoveAt(i); + break; + } + } + this.RefreshUI(); + } + + public void RefreshBlockFriendData(BlackListNtf blacklist) + { + this.blockFriendData.Clear(); + for (int i = 0; i < blacklist.blacklist.Count; i++) + { + Friend2Client friend2Client = blacklist.blacklist[i]; + XFriendData item = this.GenerateFriendInfo(friend2Client); + this.blockFriendData.Add(item); + } + } + + public void RefreshUI() + { + this.RefreshFriendList(false); + } + + public void RemoveBlockFriend(ulong uid) + { + RpcC2M_RemoveBlackListNew rpcC2M_RemoveBlackListNew = new RpcC2M_RemoveBlackListNew(); + rpcC2M_RemoveBlackListNew.oArg.otherroleid = uid; + XSingleton.singleton.Send(rpcC2M_RemoveBlackListNew); + } + + public void RemoveBlockFriendRes(ErrorCode code, ulong roleid) + { + bool flag = code == ErrorCode.ERR_SUCCESS; + if (flag) + { + for (int i = 0; i < this.blockFriendData.Count; i++) + { + bool flag2 = this.blockFriendData[i].roleid == roleid; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("FRIENDS_DIS_BAN"), this.blockFriendData[i].name), "fece00"); + this.blockFriendData.RemoveAt(i); + break; + } + } + this.RefreshFriendList(false); + } + } + + public override void StackRefresh() + { + this.RefreshUI(); + bool flag = this.m_CurrentTabIndex == TabIndex.Mentorship; + if (flag) + { + XMentorshipDocument.Doc.SendMentorshipInfoReq(); + } + } + + private void _UpdateFriendSendGiftUI(Transform t, XFriendData friendInfo) + { + bool flag = friendInfo.degreeDay > XSingleton.singleton.SendGiftMinDegree; + if (flag) + { + friendInfo.degreeDay = XSingleton.singleton.SendGiftMinDegree; + } + Transform transform = t.Find("send"); + Transform transform2 = t.Find("sent"); + uint num = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftSend.FriendGift_Sended); + bool flag2 = friendInfo.sendGiftState == num; + if (flag2) + { + transform2.gameObject.SetActive(true); + transform.gameObject.SetActive(false); + } + else + { + transform2.gameObject.SetActive(false); + transform.gameObject.SetActive(true); + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = friendInfo.roleid; + bool flag3 = friendInfo.degreeDay < XSingleton.singleton.SendGiftMinDegree; + if (flag3) + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSendGiftToFriendNotAvaliable)); + } + else + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSendGiftToFriend)); + } + Transform transform3 = transform.Find("fx"); + Transform transform4 = transform.Find("Progress"); + Transform transform5 = transform.Find("RedPoint"); + IXUILabel ixuilabel = transform.Find("V").GetComponent("XUILabel") as IXUILabel; + bool flag4 = friendInfo.degreeDay < XSingleton.singleton.SendGiftMinDegree; + if (flag4) + { + transform3.gameObject.SetActive(false); + transform4.gameObject.SetActive(true); + transform5.gameObject.SetActive(false); + ixuilabel.SetText(string.Format(XSingleton.singleton.CommonCountTotalFmt, friendInfo.degreeDay, XSingleton.singleton.SendGiftMinDegree)); + IXUIProgress ixuiprogress = transform4.GetComponent("XUIProgress") as IXUIProgress; + ixuiprogress.value = friendInfo.degreeDay / XSingleton.singleton.SendGiftMinDegree; + } + else + { + ixuilabel.SetText(string.Empty); + transform3.gameObject.SetActive(true); + transform4.gameObject.SetActive(false); + transform5.gameObject.SetActive(true); + } + } + } + + private void _UpdateFriendDegreeUI(Transform t, XFriendData data, uint deltaDay, uint deltaAll) + { + bool flag = !base.IsVisible(); + if (!flag) + { + Transform transform = t.Find("hgd"); + bool flag2 = this.m_CurrentTabIndex == TabIndex.ShowFriend; + if (flag2) + { + transform.gameObject.SetActive(true); + IXUILabel ixuilabel = transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + bool flag3 = data.degreeAll < XSingleton.singleton.MaxFriendlyEvaluation; + if (flag3) + { + ixuilabel.SetText(data.degreeAll.ToString()); + } + else + { + ixuilabel.SetText("MAX"); + } + IXUISprite ixuisprite = ixuilabel.gameObject.transform.Find("Mark").GetComponent("XUISprite") as IXUISprite; + float num = data.degreeAll; + num /= XSingleton.singleton.MaxFriendlyEvaluation; + ixuisprite.SetFillAmount(1f - num); + ixuisprite.ID = (ulong)data.degreeAll; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickDegreeHeart)); + bool flag4 = deltaAll > 0u; + if (flag4) + { + Transform transform2 = transform.Find("Add"); + transform2.gameObject.SetActive(true); + IXUILabel ixuilabel2 = transform2.GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(deltaAll.ToString()); + bool activeSelf = t.gameObject.activeSelf; + if (activeSelf) + { + IXUITweenTool ixuitweenTool = transform2.GetComponent("XUIPlayTween") as IXUITweenTool; + bool flag5 = ixuitweenTool != null; + if (flag5) + { + ixuitweenTool.SetTweenGroup(1); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnAddTweenFinishEventHandler)); + ixuitweenTool.StopTweenExceptGroup(ixuitweenTool.TweenGroup); + ixuitweenTool.PlayTween(true, -1f); + } + } + } + } + else + { + transform.gameObject.SetActive(false); + } + } + } + + public void OnClickDegreeHeart(IXUISprite spr) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FRIENDS_DEGREE_HINT_TEXT_FMT", new object[] + { + spr.ID + }), "fece00"); + } + + public void UpdateFriendOnlineState(Transform trans, uint online, uint lastlogin) + { + GameObject gameObject = trans.Find("Online").gameObject; + gameObject.SetActive(this.m_CurrentTabIndex == TabIndex.ShowFriend && online > 0u); + IXUILabel ixuilabel = trans.Find("Offline").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Empty); + } + + private void OnAddTweenFinishEventHandler(IXUITweenTool tween) + { + tween.gameObject.SetActive(false); + } + + private void _RankWrapFriendListUpdated(Transform t, int i) + { + XPlayerInfoChildView friendListTempView = this.m_FriendListTempView; + friendListTempView.FindFrom(t); + IXUITexture tencentImage = t.Find("tencent").GetComponent("XUITexture") as IXUITexture; + this.SetTencentImage(tencentImage); + Transform transform = t.Find("recover"); + Transform transform2 = t.Find("send"); + Transform transform3 = t.Find("sent"); + Transform transform4 = t.Find("chat"); + Transform transform5 = t.Find("agree"); + Transform transform6 = t.Find("ignore"); + Transform transform7 = t.Find("BtnAddFriend"); + transform.gameObject.SetActive(TabIndex.BlockFriend == this.m_CurrentTabIndex); + transform2.gameObject.SetActive(this.m_CurrentTabIndex == TabIndex.ShowFriend); + transform3.gameObject.SetActive(this.m_CurrentTabIndex == TabIndex.ShowFriend); + transform4.gameObject.SetActive(this.m_CurrentTabIndex == TabIndex.ShowFriend); + transform5.gameObject.SetActive(TabIndex.ApplyFriend == this.m_CurrentTabIndex); + transform6.gameObject.SetActive(TabIndex.ApplyFriend == this.m_CurrentTabIndex); + transform7.gameObject.SetActive(false); + XFriendData xfriendData = null; + bool flag = TabIndex.BlockFriend == this.m_CurrentTabIndex; + if (flag) + { + bool flag2 = i >= 0 && i < this.blockFriendData.Count; + if (flag2) + { + xfriendData = this.blockFriendData[i]; + IXUIButton ixuibutton = transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = xfriendData.roleid; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRemoveBlockFriend)); + } + } + else + { + bool flag3 = this.m_CurrentTabIndex == TabIndex.ShowFriend; + if (flag3) + { + bool flag4 = i >= 0 && i < this.friendData.Count; + if (flag4) + { + xfriendData = this.friendData[i]; + this._UpdateFriendSendGiftUI(t, xfriendData); + IXUIButton ixuibutton2 = transform4.Find("btn").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.SetVisible(true); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickChatFriend)); + ixuibutton2.ID = xfriendData.roleid; + transform7.gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && !this._doc.IsQQFriend(xfriendData.openID)); + IXUIButton ixuibutton3 = transform7.GetComponent("XUIButton") as IXUIButton; + ixuibutton3.ID = xfriendData.roleid; + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAddQQFriends)); + } + } + else + { + bool flag5 = TabIndex.ApplyFriend == this.m_CurrentTabIndex; + if (flag5) + { + bool flag6 = i >= 0 && i < this.applyData.Count; + if (flag6) + { + xfriendData = this.applyData[i]; + IXUIButton ixuibutton4 = transform5.GetComponent("XUIButton") as IXUIButton; + ixuibutton4.ID = xfriendData.roleid; + ixuibutton4.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAgreeApply)); + IXUIButton ixuibutton5 = transform6.GetComponent("XUIButton") as IXUIButton; + ixuibutton5.ID = xfriendData.roleid; + ixuibutton5.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickIgnoreApply)); + } + } + } + } + bool flag7 = xfriendData == null; + if (!flag7) + { + IXUISprite spr = t.Find("AvatarFrame").GetComponent("XUISprite") as IXUISprite; + XSingleton.singleton.ParseHeadIcon(xfriendData.setid, spr); + this._UpdateFriendDegreeUI(t, xfriendData, 0u, 0u); + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = xfriendData.roleid; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickFriendItemPanel)); + this.UpdateFriendOnlineState(transform4, xfriendData.online, xfriendData.lastlogin); + int profession = (int)xfriendData.profession; + IXUISprite ixuisprite2 = t.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.SetSprite(XSingleton.singleton.GetProfIcon(profession)); + friendListTempView.uidLab.SetVisible(false); + friendListTempView.sprHead.SetSprite(XSingleton.singleton.GetProfHeadIcon2(profession)); + friendListTempView.lbName.InputText = XSingleton.singleton.StringCombine(XTitleDocument.GetTitleWithFormat(xfriendData.titleID, xfriendData.name), XWelfareDocument.GetMemberPrivilegeIconString(xfriendData.paymemberid), XRechargeDocument.GetVIPIconString(xfriendData.viplevel)); + friendListTempView.lbLevel.SetText(xfriendData.level.ToString()); + friendListTempView.lbPPT.SetText(xfriendData.powerpoint.ToString()); + friendListTempView.SetGuildName(xfriendData.guildname); + xfriendData.friendgo = t.gameObject; + } + } + + private bool _CheckHasGiftCanReceive() + { + this.m_HasGiftCanReceive = false; + bool visible = false; + uint num = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_Received); + uint num2 = (uint)XFastEnumIntEqualityComparer.ToInt(FriendGiftReceive.FriendGift_ReceiveNone); + for (int i = 0; i < this.friendData.Count; i++) + { + bool flag = num == this.friendData[i].receiveGiftState; + if (flag) + { + this.m_HasGiftCanReceive = true; + } + bool flag2 = num2 != this.friendData[i].receiveGiftState; + if (flag2) + { + visible = true; + } + } + bool flag3 = base.IsVisible(); + if (flag3) + { + bool flag4 = this.m_CurrentTabIndex == TabIndex.ShowFriend; + if (flag4) + { + base.uiBehaviour.btnLeft.SetVisible(visible); + } + } + return this.m_HasGiftCanReceive && XSingleton.singleton.ReceiveGifMaxTimes > 0u && DlgBase.singleton.TodayReceiveCount < XSingleton.singleton.ReceiveGifMaxTimes; + } + + private void RefreshGiftBtnRedPoint() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = !base.uiBehaviour.btnLeft.IsVisible(); + if (!flag2) + { + IXUISprite ixuisprite = base.uiBehaviour.btnLeft.gameObject.transform.Find("RedPoint").GetComponent("XUISprite") as IXUISprite; + bool flag3 = this.m_CurrentTabIndex == TabIndex.ShowFriend; + if (flag3) + { + bool active = this.m_HasGiftCanReceive && XSingleton.singleton.ReceiveGifMaxTimes > 0u && DlgBase.singleton.TodayReceiveCount < XSingleton.singleton.ReceiveGifMaxTimes; + ixuisprite.gameObject.SetActive(active); + } + else + { + ixuisprite.gameObject.SetActive(false); + } + } + } + } + + public void RefreshDragonGuildPage() + { + bool flag = (this.m_dragonGuildListHandler != null && this.m_dragonGuildListHandler.IsVisible()) || (this.m_dragonGuildMainHandler != null && this.m_dragonGuildMainHandler.IsVisible()); + if (flag) + { + this._ApplyTabData(TabIndex.DragonGuild); + } + } + + public void NoticeFriendShare(string openID, XFriendsView.ShareType tpye) + { + this.m_noticeFriendOpenID = openID; + bool flag = tpye == XFriendsView.ShareType.PK; + if (flag) + { + this.m_title = string.Format(XSingleton.singleton.GetString("PLAT_FRIEND_PK_TITLE"), new object[0]); + this.m_description = string.Format(XSingleton.singleton.GetString("PLAT_FRIEND_PK_SUMMARY"), new object[0]); + this.m_gameTag = "MSG_SHARE_FRIEND_PVP"; + } + else + { + bool flag2 = tpye == XFriendsView.ShareType.Invite; + if (!flag2) + { + return; + } + this.m_title = string.Format(XSingleton.singleton.GetString("PLAT_FRIEND_INVITE_TITLE"), new object[0]); + this.m_description = string.Format(XSingleton.singleton.GetString("PLAT_FRIEND_INVITE_SUMMARY"), new object[0]); + this.m_gameTag = "MSG_INVITE"; + } + string label = ""; + bool flag3 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag3) + { + label = XSingleton.singleton.GetString("FRIEND_SEND_PLAT_FRIEND_TIP_QQ"); + } + else + { + bool flag4 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag4) + { + label = XSingleton.singleton.GetString("FRIEND_SEND_PLAT_FRIEND_TIP_WX"); + } + } + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_OK2"), XStringDefineProxy.GetString("FRIEND_SEND_PLAT_FRIEND_CANCEL"), new ButtonClickEventHandler(this.OnEnsureNoticeFriendPk)); + } + + private bool OnEnsureNoticeFriendPk(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + this.SharePkToQQFriend(); + } + else + { + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag2) + { + this.SharePkToWXFriend(); + } + } + return true; + } + + private void SharePkToQQFriend() + { + Dictionary dictionary = new Dictionary(); + dictionary["act"] = 1; + dictionary["openId"] = this.m_noticeFriendOpenID; + dictionary["title"] = this.m_title; + dictionary["summary"] = this.m_description; + dictionary["targetUrl"] = string.Format(XSingleton.singleton.GetString("PLAT_FRIEND_PK_TARGET_URLQQ"), new object[0]); + dictionary["imageUrl"] = string.Format(XSingleton.singleton.GetString("PLAT_FRIEND_PK_IMAGE_URLQQ"), new object[0]); + dictionary["previewText"] = string.Format(XSingleton.singleton.GetString("PLAT_FRIEND_PK_PREVIEW_URLQQ"), new object[0]); + dictionary["gameTag"] = this.m_gameTag; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("SharePkToQQFriend paramStr = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("share_send_to_friend_qq", text); + } + + private void SharePkToWXFriend() + { + Dictionary dictionary = new Dictionary(); + dictionary["openId"] = this.m_noticeFriendOpenID; + dictionary["title"] = this.m_title; + dictionary["description"] = this.m_description; + dictionary["thumbMediaId"] = ""; + dictionary["mediaTagName"] = this.m_gameTag; + dictionary["messageExt"] = "ShareWithWeixin"; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("SharePkToWXFriend paramStr = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendExtDara("share_send_to_friend_wx", text); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFriendsView.cs.meta b/Client/Assets/Scripts/XMainClient/XFriendsView.cs.meta new file mode 100644 index 00000000..d63feae4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFriendsView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba72228df80dc0743baa392610d31191 +timeCreated: 1611404436 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XFxType.cs b/Client/Assets/Scripts/XMainClient/XFxType.cs new file mode 100644 index 00000000..b415b76d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFxType.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum XFxType + { + FT_NONE, + FT_WARNING, + FT_OTHER, + FT_ME + } +} diff --git a/Client/Assets/Scripts/XMainClient/XFxType.cs.meta b/Client/Assets/Scripts/XMainClient/XFxType.cs.meta new file mode 100644 index 00000000..1c807265 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XFxType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 90c5ddca68419594ea5d0f39ae66d863 +timeCreated: 1611404140 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGVGCombatGroupData.cs b/Client/Assets/Scripts/XMainClient/XGVGCombatGroupData.cs new file mode 100644 index 00000000..ad869b39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGVGCombatGroupData.cs @@ -0,0 +1,117 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XGVGCombatGroupData + { + public uint RoomID + { + get + { + return this._roomID; + } + } + + public ulong GuildOneID + { + get + { + return this._guildOneID; + } + } + + public ulong GuildTwoID + { + get + { + return this._guildTwoID; + } + } + + public ulong WinnerID + { + get + { + return this._winerID; + } + } + + public uint WatchID + { + get + { + return this._roomWatchID; + } + } + + public CrossGvgRoomState RoomState + { + get + { + return this._roomState; + } + } + + public XGuildBasicData GuildOne + { + get + { + return this._GuildOne; + } + } + + public XGuildBasicData GuildTwo + { + get + { + return this._GuildTwo; + } + } + + public XGuildBasicData Winner + { + get + { + return this._Winner; + } + } + + private uint _roomID; + + private ulong _guildOneID; + + private ulong _guildTwoID; + + private ulong _winerID; + + private CrossGvgRoomState _roomState; + + private uint _roomWatchID; + + private XGuildBasicData _GuildOne = null; + + private XGuildBasicData _GuildTwo = null; + + private XGuildBasicData _Winner = null; + + public void Convert(CrossGvgRoomInfo info) + { + this._roomID = info.roomid; + this._guildOneID = info.guild1; + this._guildTwoID = info.guild2; + this._winerID = info.winguildid; + this._roomWatchID = info.liveid; + this._roomState = info.state; + XCrossGVGDocument specificDocument = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + this._GuildOne = specificDocument.GetGVGGuildInfo(info.guild1); + this._GuildTwo = specificDocument.GetGVGGuildInfo(info.guild2); + this._Winner = specificDocument.GetGVGGuildInfo(info.winguildid); + } + + public bool InCombatGroup(ulong guildID) + { + return this._guildOneID == guildID || this._guildTwoID == guildID; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGVGCombatGroupData.cs.meta b/Client/Assets/Scripts/XMainClient/XGVGCombatGroupData.cs.meta new file mode 100644 index 00000000..847f9d1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGVGCombatGroupData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 281d71aa90dc3574e82b630a1c242b11 +timeCreated: 1611403473 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs b/Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs new file mode 100644 index 00000000..cd6143a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs @@ -0,0 +1,36 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XGVGGuildInfo : XGuildBasicData + { + public uint serverID; + + public string serverName; + + public uint score; + + public uint killNum; + + public void Setup(CrossGvgGuildInfo guildInfo) + { + this.uid = guildInfo.guildid; + this.guildName = guildInfo.guildname; + this.serverID = guildInfo.serverid; + this.serverName = guildInfo.servername; + this.score = guildInfo.score; + this.killNum = guildInfo.killnum; + this.portraitIndex = (int)guildInfo.icon; + } + + public override string ToGuildNameString() + { + return XStringDefineProxy.GetString("CROSS_GVG_GUILDNAME", new object[] + { + this.serverID, + this.guildName + }); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs.meta new file mode 100644 index 00000000..f7734e62 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGVGGuildInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: caf5f13d957ac4e4385591e15926791a +timeCreated: 1611404544 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGame.cs b/Client/Assets/Scripts/XMainClient/XGame.cs new file mode 100644 index 00000000..cd375fcf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGame.cs @@ -0,0 +1,615 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Threading; +using KKSG; +using ProtoBuf; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XGame : XSingleton + { + public bool IsGMAccount + { + get + { + return this._isgmaccount; + } + set + { + this._isgmaccount = value; + } + } + + public bool ShowBuildLog + { + get + { + return this._show_build_log; + } + set + { + this._show_build_log = value; + } + } + + public ulong PlayerID + { + get + { + return this._player_id; + } + set + { + this._player_id = value; + } + } + + public bool CalcFps + { + get + { + return this._calc_fps; + } + } + + public float Fps + { + get + { + return this._fps; + } + } + + public float FpsAvg + { + get + { + return this._fpsAvg; + } + } + + public XStage CurrentStage + { + get + { + return this._stage; + } + } + + public bool StageReady + { + get + { + return this._stage != null && this._stage.IsEntered; + } + } + + internal XDocuments Doc + { + get + { + return this._doc; + } + } + + public int SyncModeValue + { + get + { + return this._nSyncMode; + } + set + { + this._nSyncMode = value; + Physics.IgnoreLayerCollision(10, 10, this.SyncMode); + Physics.IgnoreLayerCollision(21, 13, this.SyncMode); + } + } + + public bool SyncMode + { + get + { + return this._nSyncMode == 1; + } + } + + public static int RoleCount; + + private XStage _stage = null; + + private XStage _old_stage = null; + + private List _singletons = null; + + private XDocuments _doc = null; + + private int _nSyncMode = 0; + + private bool _show_build_log = true; + + private int _fps_count = 0; + + private float _fps = (float)XShell.TargetFrame; + + private float _fpsAvg = (float)XShell.TargetFrame; + + private float _fps_interval = 0.16667f; + + private bool _calc_fps = true; + + private float _fps_real_time = 0f; + + private int _fpsCalcCount = 0; + + private float _fpsAcc = 0f; + + private bool _isgmaccount = false; + + private ulong _player_id = 0UL; + + private int _millisecondsToWait = 0; + + private float _lastExitClickTime = 0f; + + private XTimerMgr.ElapsedEventHandler _fpsHandler = null; + + private XTimerMgr.ElapsedEventHandler _innerSwitchCb = null; + + public bool notLoadScene = true; + + public bool networkRun = true; + + public bool switchScene = false; + + public static bool EditorMode = false; + + public XGame() + { + this._singletons = new List(); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + XSingleton.singleton.Uninit(); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._singletons.Add(XSingleton.singleton); + this._fpsHandler = new XTimerMgr.ElapsedEventHandler(this.CalculateFPS); + this._innerSwitchCb = new XTimerMgr.ElapsedEventHandler(this.InnerSwitch); + this._doc = new XDocuments(); + } + + public IEnumerator Awake() + { + XLinkTimeStamp.FetchBuildDateTime(); + this.TriggerFps(); + PtcRegister.RegistProtocol(); + XSingleton.singleton.LoadServerCurve("Table/Curve"); + XSingleton.singleton.Initialize(); + CVSReader.Init(); + int i = 0; + int num; + for (i = 0; i < this._singletons.Count; i = num + 1) + { + int tryCount = 0; + while (!this._singletons[i].Init()) + { + num = tryCount; + tryCount = num + 1; + bool flag = tryCount % 1000 == 0; + if (flag) + { + Thread.Sleep(1); + } + } + num = i; + } + GC.Collect(); + i = 0; + XBagDocument.Execute(new OnLoadedCallback(XBagDocument.OnTableLoaded)); + while (!XBagDocument.AsyncLoader.IsDone) + { + num = i + 1; + i = num; + bool flag2 = num % 1000 == 0; + if (flag2) + { + Thread.Sleep(1); + } + } + this._doc.CtorLoad(); + this._doc.Initilize(0); + Serializer.SetMultiThread(XSingleton.singleton.GetSettingEnum(ESettingConfig.EMultiThreadProtoBuf)); + Serializer.SetSkipProtoIgnore(XSingleton.singleton.GetSettingEnum(ESettingConfig.ESkipProtoIgnore)); + XAutoFade.MakeBlack(true); + XOptionsDocument optDoc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag3 = optDoc != null; + if (flag3) + { + int value = optDoc.GetValue(XOptionsDefine.OD_SMOOTH); + XSingleton.singleton.SetUIOptOption(false, value == 1, false, false); + } + bool settingEnum = XSingleton.singleton.GetSettingEnum(ESettingConfig.EApm); + if (settingEnum) + { + XSingleton.singleton.XPlatform.InitApm(); + } + XResourceLoaderMgr.UseCurveTable = XSingleton.singleton.GetSettingEnum(ESettingConfig.ELoadCurveTable); + XSingleton.singleton.DelayLoad = XSingleton.singleton.GetSettingEnum(ESettingConfig.EDelayLoad); + XFxMgr.FilterFarFx = XSingleton.singleton.GetSettingEnum(ESettingConfig.EFilterFarFx); + yield return null; + yield break; + } + + public override bool Init() + { + XQualitySetting.InitResolution(); + bool flag = (int)Application.platform == 7 || (int)Application.platform == 0|| (int)Application.platform == 2; + if (flag) + { + Application.targetFrameRate = 60; + } + else + { + Application.targetFrameRate = XShell.TargetFrame; + } + XAutoFade.FadeIn(0f, true); + this.SwitchTo(EXStage.Login, 3u); + return true; + } + + public override void Uninit() + { + this.SwitchTo(EXStage.Null, 0u); + this._doc.Uninitilize(); + for (int i = this._singletons.Count - 1; i >= 0; i--) + { + this._singletons[i].Uninit(); + } + XSingleton.singleton.Close(NetErrCode.Net_NoError); + XSingleton.singleton.Uninit(); + INativePlugin nativePlugin = XSingleton.singleton.XPlatform.GetNativePlugin(); + bool flag = nativePlugin != null; + if (flag) + { + nativePlugin.CloseHooks(); + } + } + + public void UpdateNetwork() + { + bool flag = this.networkRun; + if (flag) + { + XSingleton.singleton.Update(); + } + } + + public void PreUpdate(float fDeltaT) + { + bool flag = this.StageReady && this.notLoadScene; + if (flag) + { + XSingleton.singleton.Update(); + this._stage.PreUpdate(fDeltaT); + } + } + + public void Update(float fDeltaT) + { + bool flag = this.StageReady && this.notLoadScene; + if (flag) + { + this._stage.Update(fDeltaT); + this._doc.Update(fDeltaT); + XSingleton.singleton.Update(fDeltaT); + } + bool calc_fps = this._calc_fps; + if (calc_fps) + { + this._fps_count++; + } + bool key = Input.GetKey((KeyCode)284); + if (key) + { + XSingleton.singleton.OnProcess3DTouch(""); + } + } + + private void CheckExit() + { + bool keyDown = Input.GetKeyDown((KeyCode)27); + if (keyDown) + { + bool flag = Time.time - this._lastExitClickTime < float.Parse(XSingleton.singleton.GetValue("DoubleClickExitTime")); + if (flag) + { + Application.Quit(); + } + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("EXIT_GAME_TIP"), "fece00"); + this._lastExitClickTime = Time.time; + } + } + + public void PostUpdate(float fDeltaT) + { + bool flag = this.StageReady && this.notLoadScene; + if (flag) + { + this._stage.PostUpdate(fDeltaT); + this._doc.PostUpdate(fDeltaT); + XSingleton.singleton.PostUpdate(fDeltaT); + } + } + + public void SwitchTo(EXStage eStage, uint sceneID) + { + bool flag = sceneID == XSingleton.singleton.SceneID && this.CurrentStage.Stage == eStage && sceneID != 3u && XSingleton.singleton.SceneType != SceneType.SCENE_TOWER; + if (flag) + { + XSingleton.singleton.AddLog("switch to the same scene id ", sceneID.ToString(), " with same stage.", null, null, null, XDebugColor.XDebug_None); + } + bool flag2 = eStage == EXStage.Null || sceneID == 0u; + if (flag2) + { + this._old_stage = this._stage; + this._old_stage.OnLeaveStage(EXStage.Null); + this._old_stage.OnLeaveScene(false); + XSingleton.singleton.OnLeaveScene(false); + this._old_stage = null; + } + else + { + int num = XFastEnumIntEqualityComparer.ToInt(eStage); + uint num2 = (uint)(num << 24 | (int)sceneID); + bool flag3 = this._stage == null || sceneID != XSingleton.singleton.SceneID || XSingleton.singleton.GetSceneSwitchToSelf(sceneID); + if (flag3) + { + XSingleton.singleton.UntriggerScene(); + } + bool flag4 = (eStage == EXStage.World || eStage == EXStage.Hall) && XSingleton.singleton.TurnToTransfer(sceneID); + if (flag4) + { + XAutoFade.FadeOut(0.5f); + XSingleton.singleton.SetTimer(1f, this._innerSwitchCb, num2 | 2147483648u); + } + else + { + float sceneDelayTransfer = XSingleton.singleton.GetSceneDelayTransfer(sceneID); + bool flag5 = sceneDelayTransfer > 0f; + if (flag5) + { + XAutoFade.FadeOut(sceneDelayTransfer); + XSingleton.singleton.SetTimer(sceneDelayTransfer + 0.03f, this._innerSwitchCb, num2); + } + else + { + this.InnerSwitch(num2); + } + } + } + } + + public XStage CreateSpecifiecStage(EXStage eStage) + { + XStage result; + switch (eStage) + { + case EXStage.Login: + result = XStage.CreateSpecificStage(); + break; + case EXStage.SelectChar: + result = XStage.CreateSpecificStage(); + break; + case EXStage.World: + result = XStage.CreateSpecificStage(); + break; + case EXStage.Hall: + result = XStage.CreateSpecificStage(); + break; + default: + result = null; + break; + } + return result; + } + + public void TriggerFps() + { + bool calc_fps = this._calc_fps; + if (calc_fps) + { + XSingleton.singleton.SetGlobalTimer(this._fps_interval, this._fpsHandler, null); + } + } + + private void InnerSwitch(object o) + { + this.switchScene = true; + uint num = (uint)o; + bool flag = num >> 31 > 0u; + uint num2 = num & 16777215u; + EXStage exstage = (EXStage)(num >> 24 & 127u); + bool flag2 = flag; + if (flag2) + { + XAutoFade.MakeBlack(false); + } + bool flag3 = XSingleton.singleton.SceneID == 100u; + if (flag3) + { + XAutoFade.FadeIn(0.2f, false); + } + this._old_stage = this._stage; + this._stage = ((this._old_stage != null && exstage == this._old_stage.Stage) ? this._old_stage : this.CreateSpecifiecStage(exstage)); + bool flag4 = this._old_stage != null; + if (flag4) + { + this._old_stage.OnLeaveStage(this._stage.Stage); + bool flag5 = num2 != XSingleton.singleton.SceneID || XSingleton.singleton.GetSceneSwitchToSelf(num2); + if (flag5) + { + XSingleton.singleton.m_uiTool.EnableUILoadingUpdate(false); + this._old_stage.OnLeaveScene(flag); + bool flag6 = XSingleton.singleton.SceneID > 0u; + if (flag6) + { + XSingleton.singleton.OnLeaveScene(flag); + } + XSingleton.singleton.LoadSceneAsync(num2, exstage, !flag, flag); + } + else + { + this.OnEnterStage(); + this.switchScene = false; + } + } + else + { + XSingleton.singleton.LoadSceneAsync(num2, exstage, true, false); + } + } + + private void LockFps(int goal) + { + float num = 1f / (float)goal - Time.smoothDeltaTime; + bool flag = num > 0f; + if (flag) + { + this._millisecondsToWait++; + } + else + { + this._millisecondsToWait--; + } + Thread.Sleep((int)Mathf.Clamp((float)this._millisecondsToWait, 0f, 1f / (float)goal * 1000f)); + } + + private void CalculateFPS(object o) + { + float realtimeSinceStartup = Time.realtimeSinceStartup; + this._fps = (float)this._fps_count / (realtimeSinceStartup - this._fps_real_time); + this._fpsCalcCount++; + this._fpsAcc += this._fps; + bool flag = this._fpsCalcCount >= 20; + if (flag) + { + this._fpsAvg = this._fpsAcc / (float)this._fpsCalcCount; + this._fpsCalcCount = 0; + this._fpsAcc = 0f; + } + bool flag2 = DlgBase.singleton.MainDoc != null; + if (flag2) + { + bool flag3 = DlgBase.singleton.MainDoc.GetFpsState == XMainInterfaceDocument.GetFps.start; + if (flag3) + { + DlgBase.singleton.MainDoc.FpsStartTime = realtimeSinceStartup; + DlgBase.singleton.MainDoc.PeakFps = this._fps; + DlgBase.singleton.MainDoc.FpsCount = this._fps_count; + DlgBase.singleton.MainDoc.GetFpsState = XMainInterfaceDocument.GetFps.running; + } + else + { + bool flag4 = DlgBase.singleton.MainDoc.GetFpsState == XMainInterfaceDocument.GetFps.running; + if (flag4) + { + DlgBase.singleton.MainDoc.PeakFps = Math.Max(this._fps, DlgBase.singleton.MainDoc.PeakFps); + DlgBase.singleton.MainDoc.FpsCount += this._fps_count; + } + } + } + this._fps_real_time = realtimeSinceStartup; + this._fps_count = 0; + XSingleton.singleton.SetGlobalTimer(this._fps_interval, this._fpsHandler, null); + } + + private void OnEnterStage() + { + this._stage.OnEnterStage((this._old_stage != null) ? this._old_stage.Stage : EXStage.Null); + } + + public void OnEnterScene(uint sceneid, bool bTransfer = false) + { + bool bHall = XSingleton.singleton.GetSceneType(sceneid) == SceneType.SCENE_HALL || XSingleton.singleton.GetSceneType(sceneid) == SceneType.SCENE_GUILD_HALL || XSingleton.singleton.GetSceneType(sceneid) == SceneType.SCENE_LEISURE; + XSingleton.singleton.GameCamera.PreInstall(GameObject.Find("Main Camera"), bHall); + XSingleton.singleton.OnEnterScene(sceneid, bTransfer); + this._stage.OnEnterScene(sceneid, bTransfer); + XSingleton.singleton.GameCamera.Installed(); + XSingleton.singleton.AssociatedCamera = XSingleton.singleton.GameCamera.UnityCamera; + XSingleton.singleton.InitAIMgr(); + this.OnEnterStage(); + } + + public string GetSyncModeString() + { + bool flag = this._nSyncMode == 0; + string result; + if (flag) + { + result = " Solo Mode "; + } + else + { + bool flag2 = this._nSyncMode == 1; + if (flag2) + { + result = " OnLine Mode "; + } + else + { + bool flag3 = this._nSyncMode == 2; + if (flag3) + { + result = " Mixed Mode "; + } + else + { + result = "Unknown"; + } + } + } + return result; + } + + public static void SetVisible(GameObject go, int layer) + { + go.layer = layer; + for (int i = 0; i < go.transform.childCount; i++) + { + Transform child = go.transform.GetChild(i); + XGame.SetVisible(child.gameObject, layer); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGame.cs.meta b/Client/Assets/Scripts/XMainClient/XGame.cs.meta new file mode 100644 index 00000000..0fe07f30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGame.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c815e44039b9ad46a2a985db42184cf +timeCreated: 1611403174 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGameEntrance.cs b/Client/Assets/Scripts/XMainClient/XGameEntrance.cs new file mode 100644 index 00000000..c24ef068 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGameEntrance.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections; +using System.IO; +using System.Reflection; +using System.Text.RegularExpressions; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public sealed class XGameEntrance : IEntrance, IXInterface + { + public bool Deprecated { get; set; } + + public bool Awaked + { + get + { + return this._be_awaked; + } + } + + private XGame _game = null; + + private IEnumerator _awake = null; + + private bool _be_awaked = false; + + public static void Fire() + { + XSingleton.singleton.AttachInterface(0u, new XGameEntrance()); + } + + public static void Test(Assembly ass) + { + Type[] types = ass.GetTypes(); + bool flag = types != null; + if (flag) + { + MemoryStream memoryStream = new MemoryStream(); + foreach (Type type in types) + { + bool flag2 = type.IsSubclassOf(typeof(Protocol)); + if (flag2) + { + Protocol protocol = Activator.CreateInstance(type) as Protocol; + bool flag3 = protocol != null; + if (flag3) + { + memoryStream.SetLength(0L); + memoryStream.Position = 0L; + protocol.SerializeWithHead(memoryStream); + } + } + else + { + bool flag4 = type.IsSubclassOf(typeof(Rpc)); + if (flag4) + { + Rpc rpc = Activator.CreateInstance(type) as Rpc; + bool flag5 = rpc != null; + if (flag5) + { + rpc.SocketID = 0; + rpc.BeforeSend(); + memoryStream.SetLength(0L); + memoryStream.Position = 0L; + rpc.SerializeWithHead(memoryStream); + } + } + } + } + memoryStream.Close(); + } + else + { + Debug.Log("null types"); + } + } + + public void Awake() + { + bool flag = this._game == null; + if (flag) + { + this._game = XSingleton.singleton; + } + bool flag2 = this._awake == null; + if (flag2) + { + this._awake = this._game.Awake(); + } + else + { + bool flag3 = !this._awake.MoveNext(); + if (flag3) + { + this._awake = null; + this._be_awaked = true; + } + } + } + + public void Start() + { + bool flag = !this._game.Init(); + if (flag) + { + Application.Quit(); + } + } + + public void NetUpdate() + { + this._game.UpdateNetwork(); + } + + public void PreUpdate() + { + this._game.PreUpdate(Time.deltaTime); + } + + public void Update() + { + this._game.Update(Time.deltaTime); + } + + public void PostUpdate() + { + this._game.PostUpdate(Time.deltaTime); + } + + public void Quit() + { + bool flag = this._game != null; + if (flag) + { + this._game.Uninit(); + this._game = null; + } + } + + public void Authorization(string token) + { + XSingleton.singleton.AddLog("[XGameEntrance.Authorization]", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = token != null && token != ""; + if (flag) + { + XSingleton.singleton.AddLog("[XGameEntrance.Authorization] token = " + token, null, null, null, null, null, XDebugColor.XDebug_None); + string[] array = Regex.Split(token, "__RXSN__", RegexOptions.None); + bool flag2 = array.Length == 2; + if (flag2) + { + XSingleton.singleton.RefreshAccessToken(array[0]); + } + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + bool flag3 = specificDocument != null; + if (flag3) + { + specificDocument.PayParameterNtf(); + } + XSingleton.singleton.PandoraLogin(); + } + bool authorized = XSingleton.singleton.Authorized; + if (!authorized) + { + switch (XSingleton.singleton.Channel) + { + case XAuthorizationChannel.XAuthorization_SD: + XSingleton.singleton.OnAuthorization(token, "", "", XAuthorizationChannel.XAuthorization_SD); + break; + case XAuthorizationChannel.XAuthorization_QQ: + { + string[] array2 = Regex.Split(token, "__RXSN__", RegexOptions.None); + bool flag4 = array2.Length < 2; + if (flag4) + { + XSingleton.singleton.AddLog("login token error!!!", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.OnAuthorization("", "", "", XAuthorizationChannel.XAuthorization_QQ); + } + else + { + XSingleton.singleton.OnAuthorization(array2[0], "", array2[1], XAuthorizationChannel.XAuthorization_QQ); + } + break; + } + case XAuthorizationChannel.XAuthorization_WeChat: + { + string[] array3 = Regex.Split(token, "__RXSN__", RegexOptions.None); + bool flag5 = array3.Length < 2; + if (flag5) + { + XSingleton.singleton.AddLog("long token error!!!", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.OnAuthorization("", "", "", XAuthorizationChannel.XAuthorization_WeChat); + } + else + { + XSingleton.singleton.OnAuthorization(array3[0], "", array3[1], XAuthorizationChannel.XAuthorization_WeChat); + } + break; + } + case XAuthorizationChannel.XAuthorization_Guest: + { + string[] array4 = Regex.Split(token, "__RXSN__", RegexOptions.None); + bool flag6 = array4.Length < 2; + if (flag6) + { + XSingleton.singleton.AddLog("long token error!!!", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.OnAuthorization("", "", "", XAuthorizationChannel.XAuthorization_Guest); + } + else + { + XSingleton.singleton.OnAuthorization(array4[0], "", array4[1], XAuthorizationChannel.XAuthorization_Guest); + } + break; + } + } + } + } + + public void AuthorizationSignOut(string msg) + { + XSingleton.singleton.OnAuthorizationSignOut(msg); + } + + public void SetQualityLevel(int level) + { + XQualitySetting.Init(); + XQualitySetting.SetQuality(level, true); + } + + public void FadeUpdate() + { + XAutoFade.PostUpdate(); + } + + public void MonoObjectRegister(string key, MonoBehaviour behavior) + { + bool flag = behavior is IEnvSetting; + if (flag) + { + XQualitySetting.SetEnvSet(behavior as IEnvSetting); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGameEntrance.cs.meta b/Client/Assets/Scripts/XMainClient/XGameEntrance.cs.meta new file mode 100644 index 00000000..461beb1f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGameEntrance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14251e244c5259a4ab8fb9b77fa96233 +timeCreated: 1611403252 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGameMallDocument.cs b/Client/Assets/Scripts/XMainClient/XGameMallDocument.cs new file mode 100644 index 00000000..72f35048 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGameMallDocument.cs @@ -0,0 +1,470 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGameMallDocument : XDocComponent + { + public override uint ID + { + get + { + return XGameMallDocument.uuID; + } + } + + public bool isNewVIP + { + get + { + return this.hotGoods.Count > 0; + } + } + + public CIBShop currCIBShop + { + get + { + for (int i = 0; i < this.mallItemlist.Count; i++) + { + bool flag = (ulong)this.mallItemlist[i].row.itemid == (ulong)((long)this.currItemID); + if (flag) + { + return this.mallItemlist[i]; + } + } + return null; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XGameMallDocument"); + + private static IBShop _IBShopTable = new IBShop(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public int currItemID = 0; + + public bool isNewWeekly = true; + + public List hotGoods = new List(); + + public List tabNews = new List(); + + public List shopRedPoint = new List(); + + public bool vipTabshow = false; + + public bool presentStatus = true; + + public bool isBuying = false; + + public bool isQuerying = false; + + public List presentList; + + public List recvList; + + public List mallItemlist = new List(); + + public List mallItemUIList = new List(); + + public List ShopSystems = new List(); + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendQueryItems(DlgBase.singleton.mallType); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XGameMallDocument.AsyncLoader.AddTask("Table/IBShop", XGameMallDocument._IBShopTable, false); + XGameMallDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + this.ShopSystems.Clear(); + List intList = XSingleton.singleton.GetIntList("ShopShowingIconList"); + for (int i = 0; i < intList.Count; i++) + { + this.ShopSystems.Add((XSysDefine)intList[i]); + } + } + + public void SendQueryItems(MallType type) + { + RpcC2G_QueryIBItem rpcC2G_QueryIBItem = new RpcC2G_QueryIBItem(); + rpcC2G_QueryIBItem.oArg.type = (uint)this.GetCoinItemid(); + rpcC2G_QueryIBItem.oArg.subtype = (uint)type; + XSingleton.singleton.Send(rpcC2G_QueryIBItem); + } + + public void RespItems(IBQueryItemReq oArg, IBQueryItemRes oRes) + { + uint coinItemid = (uint)this.GetCoinItemid(); + bool flag = coinItemid == oArg.type; + uint mallType = (uint)DlgBase.singleton.mallType; + this.vipTabshow = oRes.viptab; + this.tabNews = oRes.newproducts; + bool flag2 = this.GetCoinItemid() == (int)oArg.type && DlgBase.singleton.mallType == (MallType)oArg.subtype; + if (flag2) + { + this.MergeIBShop(oRes.iteminfo, this.GetItemsFromTable()); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.Refresh(); + } + } + else + { + XSingleton.singleton.AddLog("mall tab has changed!", null, null, null, null, null, XDebugColor.XDebug_None); + } + this.isBuying = false; + } + + public void UpdateItemBuyCnt(uint goodsid, uint cnt) + { + GameItemsMallHander gameItemsMallHander = DlgBase.singleton._gameItemsMallHander; + GameDescMallHander gameDescMallHander = DlgBase.singleton._gameDescMallHander; + bool flag = gameDescMallHander != null && gameItemsMallHander != null && DlgBase.singleton.IsVisible() && this.currCIBShop != null && this.currCIBShop.sinfo != null && goodsid == this.currCIBShop.sinfo.goodsid; + if (flag) + { + for (int i = 0; i < this.mallItemlist.Count; i++) + { + bool flag2 = this.mallItemlist[i].sinfo.goodsid == this.currCIBShop.sinfo.goodsid; + if (flag2) + { + this.mallItemlist[i].sinfo.nbuycount = cnt; + this.mallItemlist[i].finish = this.IsFinish(this.mallItemlist[i].sinfo, this.mallItemlist[i].row); + gameDescMallHander.Refresh(); + gameItemsMallHander.Refresh(); + break; + } + } + } + } + + public void SendBuyItem(uint goodsid, uint count) + { + bool flag = !this.isBuying; + if (flag) + { + this.isBuying = true; + RpcC2G_BuyIBItem rpcC2G_BuyIBItem = new RpcC2G_BuyIBItem(); + rpcC2G_BuyIBItem.oArg.goodsid = goodsid; + rpcC2G_BuyIBItem.oArg.count = count; + XSingleton.singleton.Send(rpcC2G_BuyIBItem); + } + } + + public CIBShop SearchIBShop(int itemid) + { + for (int i = 0; i < this.mallItemlist.Count; i++) + { + bool flag = (ulong)this.mallItemlist[i].row.itemid == (ulong)((long)itemid); + if (flag) + { + return this.mallItemlist[i]; + } + } + return null; + } + + public void OnResBuyItem(IBBuyItemReq oArg, IBBuyItemRes res) + { + uint goodsid = oArg.goodsid; + uint itemid = XGameMallDocument._IBShopTable.GetByid(goodsid).itemid; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemid); + string text = XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u); + this.SendQueryItems(DlgBase.singleton.mallType); + } + + private void MergeIBShop(List server_list, Dictionary dicTable) + { + this.mallItemlist.Clear(); + this.mallItemUIList.Clear(); + for (int i = 0; i < server_list.Count; i++) + { + bool flag = dicTable.ContainsKey(server_list[i].goodsid); + if (flag) + { + CIBShop cibshop = new CIBShop(); + cibshop.row = dicTable[server_list[i].goodsid]; + cibshop.sinfo = server_list[i]; + cibshop.finish = this.IsFinish(server_list[i], cibshop.row); + this.mallItemlist.Add(cibshop); + } + } + this.mallItemlist.Sort(new Comparison(this.SortData)); + bool flag2 = !this.Search((uint)this.currItemID); + if (flag2) + { + this.currItemID = (int)((this.mallItemlist.Count > 0) ? this.mallItemlist[0].row.itemid : 0u); + } + int count = this.mallItemlist.Count; + for (int j = 0; j < count; j += 2) + { + CUIIBShop item = default(CUIIBShop); + item.item1 = this.mallItemlist[j]; + bool flag3 = this.mallItemlist.Count > j + 1; + if (flag3) + { + item.item2 = this.mallItemlist[j + 1]; + } + else + { + item.item2 = null; + } + this.mallItemUIList.Add(item); + } + } + + private bool IsFinish(IBShopItemInfo info, IBShop.RowData row) + { + bool flag = info.itemid == DlgBase.singleton.privilegeID; + bool result; + if (flag) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + float num = 0f; + bool flag2 = specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce); + if (flag2) + { + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce); + num = ((memberPrivilegeConfig != null) ? ((float)memberPrivilegeConfig.BuyGreenAgateLimit / 100f) : 0f); + } + int num2 = 0; + PayMemberPrivilege payMemberPrivilege = specificDocument.PayMemberPrivilege; + bool flag3 = payMemberPrivilege != null; + if (flag3) + { + List usedPrivilegeShop = payMemberPrivilege.usedPrivilegeShop; + for (int i = 0; i < usedPrivilegeShop.Count; i++) + { + bool flag4 = (long)usedPrivilegeShop[i].goodsID == (long)((ulong)info.goodsid); + if (flag4) + { + num2 = usedPrivilegeShop[i].usedCount; + break; + } + } + } + result = (info.nlimitcount > 0u && info.nlimitcount + row.buycount * num <= (float)((ulong)info.nbuycount + (ulong)((long)num2))); + } + else + { + result = (info.nlimitcount > 0u && info.nlimitcount <= info.nbuycount); + } + return result; + } + + private Dictionary GetItemsFromTable() + { + Dictionary dictionary = new Dictionary(); + IBShop.RowData[] table = XGameMallDocument._IBShopTable.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].currencytype == (uint)this.GetCoinItemid() && table[i].type == (uint)DlgBase.singleton.mallType; + if (flag) + { + dictionary.Add(table[i].id, table[i]); + } + } + return dictionary; + } + + public void FindItem(int itemid, out uint currency, out uint type) + { + currency = (type = 0u); + IBShop.RowData[] table = XGameMallDocument._IBShopTable.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = (ulong)table[i].itemid == (ulong)((long)itemid); + if (flag) + { + currency = table[i].currencytype; + type = table[i].type; + break; + } + } + } + + public uint FindItemPrice(uint itemId, uint currencytype) + { + IBShop.RowData[] table = XGameMallDocument._IBShopTable.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].itemid == itemId && table[i].currencytype == currencytype; + if (flag) + { + return table[i].currencycount; + } + } + return 0u; + } + + private int ChangeLimtSort(CIBShop limit) + { + return (limit.sinfo.nlimittime > 0u) ? 1 : 0; + } + + private int ChangeDiscount(CIBShop discount) + { + return (int)((discount.row.discount == 0u) ? 100u : discount.row.discount); + } + + private int ChangeFashion(CIBShop shop) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)shop.row.itemid); + bool flag = itemConf.ItemType == 2 || itemConf.ItemType == 5; + int result; + if (flag) + { + result = (int)itemConf.ItemType; + } + else + { + result = 0; + } + return result; + } + + private int SortData(CIBShop x, CIBShop y) + { + bool flag = x.row.sortid != y.row.sortid; + int result; + if (flag) + { + result = x.row.sortid - y.row.sortid; + } + else + { + result = (int)(x.row.id - y.row.id); + } + return result; + } + + public int GetCoinItemid() + { + bool flag = DlgBase.singleton.currSys == XSysDefine.XSys_GameMall_Diamond; + int result; + if (flag) + { + result = XFastEnumIntEqualityComparer.ToInt(ItemEnum.DIAMOND); + } + else + { + bool flag2 = DlgBase.singleton.currSys == XSysDefine.XSys_GameMall_Dragon; + if (flag2) + { + result = XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN); + } + else + { + result = XFastEnumIntEqualityComparer.ToInt(ItemEnum.DIAMOND); + } + } + return result; + } + + private bool Search(uint itemid) + { + bool flag = this.mallItemlist != null; + if (flag) + { + for (int i = 0; i < this.mallItemlist.Count; i++) + { + bool flag2 = this.mallItemlist[i].row.itemid == itemid; + if (flag2) + { + return true; + } + } + } + return false; + } + + public ShopTypeTable.RowData GetShopTypeData(XSysDefine shop) + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + return specificDocument.GetShopTypeData(shop); + } + + public void RefreshShopRedPoint(XSysDefine sys, bool isredon) + { + List list = new List(this.ShopSystems); + bool flag = !list.Contains(sys); + if (!flag) + { + if (isredon) + { + bool flag2 = !this.shopRedPoint.Contains(sys); + if (flag2) + { + this.shopRedPoint.Add(sys); + } + } + else + { + bool flag3 = this.shopRedPoint.Contains(sys); + if (flag3) + { + this.shopRedPoint.Remove(sys); + } + } + DlgBase.singleton.RefreshShopRedPoint(); + } + } + + public void SendQueryGiftItems(uint type) + { + RpcC2M_IbGiftHistReq rpcC2M_IbGiftHistReq = new RpcC2M_IbGiftHistReq(); + rpcC2M_IbGiftHistReq.oArg.type = type; + XSingleton.singleton.Send(rpcC2M_IbGiftHistReq); + } + + public void HandleGiftItems(uint type, List list) + { + bool flag = type == 0u; + if (flag) + { + this.presentList = list; + } + else + { + this.recvList = list; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.Refresh(); + } + } + + public void ClearGiftItems() + { + bool flag = this.presentList != null; + if (flag) + { + this.presentList.Clear(); + } + bool flag2 = this.recvList != null; + if (flag2) + { + this.recvList.Clear(); + } + this.presentList = null; + this.recvList = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGameMallDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XGameMallDocument.cs.meta new file mode 100644 index 00000000..b77bc3d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGameMallDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 447daffa09e9823429e6f1b11d284616 +timeCreated: 1611403645 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGameSysMgr.cs b/Client/Assets/Scripts/XMainClient/XGameSysMgr.cs new file mode 100644 index 00000000..a909d635 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGameSysMgr.cs @@ -0,0 +1,3565 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGameSysMgr : XSingleton, IGameSysMgr, IXInterface + { + public bool Deprecated { get; set; } + + public bool bStopBlockRedPoint + { + get + { + return this.m_bStopBlockRedPoint; + } + set + { + this.m_bStopBlockRedPoint = value; + this.optionsDoc.SetValue(XOptionsDefine.OD_STOP_BLOCK_REDPOINT, this.m_bStopBlockRedPoint ? 1 : 0, false); + } + } + + public float GetFlowerRemainTime + { + get + { + return this._getFlowerRemainTime; + } + set + { + this._getFlowerRemainTime = value; + } + } + + public float OnlineRewardRemainTime + { + get + { + return this._onlineRewardRemainTime; + } + set + { + this._onlineRewardRemainTime = value; + this.RecalculateRedPointState(XSysDefine.XSys_OnlineReward, true); + } + } + + public HashSet SysH5 + { + get + { + return this._sysH5; + } + } + + private XTableAsyncLoader _async_loader = null; + + private OpenSystemTable _openSystemTable = new OpenSystemTable(); + + private SystemAnnounce _announceSystemTable = new SystemAnnounce(); + + private uint m_PlayerLevel; + + private XOptionsDocument optionsDoc; + + private SysIntCache alwaysOpen = new SysIntCache(1024); + + private SysIntCache redPointState = new SysIntCache(1024); + + private List[] noRedPointLevel = new List[1024]; + + private List[] sysRedPointRelative = new List[1024]; + + private SysIntCache sysRedPointHasRefreshed = new SysIntCache(1024); + + private HashSet _sysH5 = new HashSet(default(XFastEnumIntEqualityComparer)); + + private GameObject[] sysRedPointRelativeUI = new GameObject[1024]; + + private XSubSysRedPointMgr[] subSysRedPoint = new XSubSysRedPointMgr[1024]; + + public List m_AnnounceSys = new List(); + + private List _ReturnList = new List(); + + private bool m_bStopBlockRedPoint; + + private float _getFlowerRemainTime; + + private float _onlineRewardRemainTime; + + private IXUILabel OnlineTime = null; + + private XSysDefine[] _allXSysDefines; + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/SystemList", this._openSystemTable, false); + this._async_loader.AddTask("Table/SystemAnnounce", this._announceSystemTable, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + int num = 0; + Type typeFromHandle = typeof(XSysDefine); + for (XSysDefine xsysDefine = XSysDefine.XSys_None; xsysDefine < XSysDefine.XSys_Num; xsysDefine++) + { + bool flag3 = Enum.IsDefined(typeFromHandle, xsysDefine); + if (flag3) + { + num++; + } + } + this._allXSysDefines = new XSysDefine[num]; + int num2 = 0; + for (XSysDefine xsysDefine2 = XSysDefine.XSys_None; xsysDefine2 < XSysDefine.XSys_Num; xsysDefine2++) + { + bool flag4 = Enum.IsDefined(typeFromHandle, xsysDefine2); + if (flag4) + { + this._allXSysDefines[num2++] = xsysDefine2; + } + } + this.redPointState.Clear(); + this._CheckSystemId(); + this._InitAlwaysOpenedSystems(); + this._InitNoRedPointLevel(); + this.SetupSysAnnounceTable(); + result = true; + } + return result; + } + + public string GetSystemName(XSysDefine define) + { + int sysID = XFastEnumIntEqualityComparer.ToInt(define); + return this.GetSystemName(sysID); + } + + public string GetSystemName(int sysID) + { + OpenSystemTable.RowData bySystemID = this._openSystemTable.GetBySystemID(sysID); + return (bySystemID == null) ? string.Empty : bySystemID.SystemDescription; + } + + public int GetSystemOpenLevel(XSysDefine define) + { + int key = XFastEnumIntEqualityComparer.ToInt(define); + OpenSystemTable.RowData bySystemID = this._openSystemTable.GetBySystemID(key); + return (bySystemID == null) ? 0 : bySystemID.PlayerLevel; + } + + public OpenSystemTable.RowData GetSystemOpen(XSysDefine define) + { + int key = XFastEnumIntEqualityComparer.ToInt(define); + return this._openSystemTable.GetBySystemID(key); + } + + public override void Uninit() + { + this.redPointState.Clear(); + this.m_AnnounceSys.Clear(); + this.alwaysOpen.Clear(); + for (int i = 0; i < this.noRedPointLevel.Length; i++) + { + bool flag = this.noRedPointLevel[i] != null; + if (flag) + { + this.noRedPointLevel[i].Clear(); + } + } + this._async_loader = null; + } + + public void Reset() + { + this.OnlineTime = null; + } + + public void InitWhenSelectRole(uint level) + { + string[] names = Enum.GetNames(typeof(XSysDefine)); + Type typeFromHandle = typeof(XSysDefine); + for (int i = 0; i < names.Length; i++) + { + XSysDefine xsysDefine = (XSysDefine)Enum.Parse(typeFromHandle, names[i]); + bool flag = xsysDefine == XSysDefine.XSys_Invalid; + if (!flag) + { + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(xsysDefine), false); + } + } + this.m_PlayerLevel = level; + this.optionsDoc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + this.bStopBlockRedPoint = (this.optionsDoc.GetValue(XOptionsDefine.OD_STOP_BLOCK_REDPOINT) != 0); + } + + private void _InitAlwaysOpenedSystems() + { + for (int i = 0; i < this._allXSysDefines.Length; i++) + { + this.alwaysOpen.SetFlag(XFastEnumIntEqualityComparer.ToInt(this._allXSysDefines[i]), true); + } + for (int j = 0; j < this._openSystemTable.Table.Length; j++) + { + this.alwaysOpen.SetFlag(this._openSystemTable.Table[j].SystemID, false); + } + } + + private void _InitNoRedPointLevel() + { + for (int i = 0; i < this._openSystemTable.Table.Length; i++) + { + OpenSystemTable.RowData rowData = this._openSystemTable.Table[i]; + List list = new List(); + bool flag = rowData.NoRedPointLevel != null; + if (flag) + { + for (int j = 0; j < rowData.NoRedPointLevel.Length; j++) + { + bool flag2 = !list.Contains(rowData.NoRedPointLevel[j]); + if (flag2) + { + list.Add(rowData.NoRedPointLevel[j]); + } + } + bool flag3 = list.Count != 0; + if (flag3) + { + this.noRedPointLevel[rowData.SystemID] = list; + } + } + bool inNotice = rowData.InNotice; + if (inNotice) + { + this._sysH5.Add((XSysDefine)rowData.SystemID); + } + } + } + + private void _CheckSystemId() + { + HashSet hashSet = new HashSet(); + hashSet.Clear(); + for (int i = 0; i < this._openSystemTable.Table.Length; i++) + { + bool flag = hashSet.Contains(this._openSystemTable.Table[i].SystemID); + if (flag) + { + XSingleton.singleton.AddErrorLog("SystemID repeated from systemList!!! repeated ID = ", this._openSystemTable.Table[i].SystemID.ToString(), null, null, null, null); + } + else + { + hashSet.Add(this._openSystemTable.Table[i].SystemID); + } + } + } + + public void OnLevelChanged(uint newLevel) + { + this.m_PlayerLevel = newLevel; + this.bStopBlockRedPoint = false; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.InitRedPointsWhenShow(); + } + } + + public bool IsSystemOpen(int sys) + { + return this.IsSystemOpened((XSysDefine)sys); + } + + public bool IsSystemOpened(XSysDefine sys) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData == null; + return !flag && this.IsSystemOpened(sys, xplayerData); + } + + public bool IsSystemOpened(XSysDefine sys, XPlayerAttributes attr) + { + bool flag = sys == XSysDefine.XSys_Invalid || sys == XSysDefine.XSys_Num; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.alwaysOpen.IsFlag(XFastEnumIntEqualityComparer.ToInt(sys)); + result = (flag2 || attr.IsSystemOpened((uint)XFastEnumIntEqualityComparer.ToInt(sys))); + } + return result; + } + + protected void SetupSysAnnounceTable() + { + SystemAnnounce.RowData[] table = this._announceSystemTable.Table; + List list = ListPool.Get(); + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].OpenAnnounceLevel == 0; + if (!flag) + { + int num = 0; + for (int j = 0; j < list.Count; j++) + { + bool flag2 = list[j] < table[i].OpenAnnounceLevel; + if (flag2) + { + num++; + } + } + list.Insert(num, table[i].OpenAnnounceLevel); + this.m_AnnounceSys.Insert(num, table[i].ID); + } + } + ListPool.Release(list); + } + + public void GamePause(bool pause) + { + XSingleton.singleton.AddLog(pause ? "Game to BackGround." : "Game back to ForeGround.", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.OnGamePause(pause); + for (int i = 0; i < XSingleton.singleton.Doc.Components.Count; i++) + { + (XSingleton.singleton.Doc.Components[i] as XDocComponent).OnGamePause(pause); + } + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.OnGamePause(pause); + } + } + + public XSysDefine GetNextAnnounceSystem(out int level) + { + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + for (int i = 0; i < this.m_AnnounceSys.Count; i++) + { + int openAnnounceLevel = this._announceSystemTable.GetByID(this.m_AnnounceSys[i]).OpenAnnounceLevel; + int num = (i == 0) ? 0 : this._announceSystemTable.GetByID(this.m_AnnounceSys[i - 1]).OpenAnnounceLevel; + bool flag = (ulong)xplayerAttributes.Level < (ulong)((long)openAnnounceLevel) && (ulong)xplayerAttributes.Level >= (ulong)((long)num); + if (flag) + { + level = openAnnounceLevel; + return (XSysDefine)this._announceSystemTable.GetByID(this.m_AnnounceSys[i]).SystemID; + } + } + level = 0; + return XSysDefine.XSys_Invalid; + } + + public void Update(float fDeltaT) + { + float num = this.GetFlowerRemainTime; + bool flag = this.GetFlowerRemainTime > 0f; + if (flag) + { + num -= fDeltaT; + } + bool flag2 = num <= 0f; + if (flag2) + { + num = 0f; + } + this.GetFlowerRemainTime = num; + float num2 = this.OnlineRewardRemainTime; + num2 -= fDeltaT; + bool flag3 = num2 <= 0f; + if (flag3) + { + num2 = 0f; + } + this.OnlineRewardRemainTime = num2; + } + + public List GetChildSys(XSysDefine sys) + { + this._ReturnList.Clear(); + if (sys <= XSysDefine.XSys_Team) + { + if (sys <= XSysDefine.XSys_MobaAcitivity) + { + if (sys <= XSysDefine.XSys_Rank) + { + switch (sys) + { + case XSysDefine.XSys_Level: + this._ReturnList.Add(XSysDefine.XSys_Level_Normal); + this._ReturnList.Add(XSysDefine.XSys_Level_Elite); + return this._ReturnList; + case XSysDefine.XSys_Item: + this._ReturnList.Add(XSysDefine.XSys_Item_Equip); + this._ReturnList.Add(XSysDefine.XSys_Fashion); + this._ReturnList.Add(XSysDefine.XSys_Char_Emblem); + this._ReturnList.Add(XSysDefine.XSys_Item_Jade); + this._ReturnList.Add(XSysDefine.XSys_Artifact); + this._ReturnList.Add(XSysDefine.XSys_Bag_Item); + this._ReturnList.Add(XSysDefine.XSys_Design_Designation); + return this._ReturnList; + case XSysDefine.XSys_Skill: + this._ReturnList.Add(XSysDefine.XSys_Skill_Levelup); + this._ReturnList.Add(XSysDefine.XSys_Skill_Promote); + return this._ReturnList; + case XSysDefine.XSys_Char: + this._ReturnList.Add(XSysDefine.XSys_Char_Attr); + return this._ReturnList; + case XSysDefine.XSys_Horse: + case XSysDefine.XSys_Guild: + case XSysDefine.XSys_Confession: + case XSysDefine.XSys_Auction: + case XSysDefine.XSys_TShowRule: + case XSysDefine.XSys_CardCollect: + case XSysDefine.XSys_Wifi: + case XSysDefine.XSys_SuperReward: + case XSysDefine.XSys_Draw: + case XSysDefine.XSys_Strong: + case XSysDefine.XSys_Target: + break; + case XSysDefine.XSys_Fashion: + this._ReturnList.Add(XSysDefine.XSys_Fashion_Fashion); + this._ReturnList.Add(XSysDefine.XSys_Fashion_OutLook); + break; + case XSysDefine.XSys_Recycle: + this._ReturnList.Add(XSysDefine.XSys_Recycle_Equip); + this._ReturnList.Add(XSysDefine.XSys_Recycle_Jade); + return this._ReturnList; + case XSysDefine.XSys_Bag: + return this._ReturnList; + case XSysDefine.XSys_TShow: + this._ReturnList.Add(XSysDefine.XSys_TShow_Vote); + this._ReturnList.Add(XSysDefine.XSys_TShow_Main); + return this._ReturnList; + case XSysDefine.XSys_FlowerRank: + this._ReturnList.Add(XSysDefine.XSys_Flower_Rank_Today); + this._ReturnList.Add(XSysDefine.XSys_Flower_Rank_Yesterday); + this._ReturnList.Add(XSysDefine.XSys_Flower_Rank_Week); + this._ReturnList.Add(XSysDefine.XSys_Flower_Rank_History); + this._ReturnList.Add(XSysDefine.XSys_Flower_Rank_Activity); + return this._ReturnList; + case XSysDefine.XSys_Camp: + this._ReturnList.Add(XSysDefine.XSys_Camp_CampHall); + return this._ReturnList; + case XSysDefine.XSys_Mail: + this._ReturnList.Add(XSysDefine.XSys_Mail_System); + return this._ReturnList; + case XSysDefine.XSys_Design: + this._ReturnList.Add(XSysDefine.XSys_Design_Achieve); + return this._ReturnList; + case XSysDefine.XSys_Mall: + this._ReturnList.Add(XSysDefine.XSys_Mall_Mall); + this._ReturnList.Add(XSysDefine.XSys_Mall_MystShop); + return this._ReturnList; + case XSysDefine.XSys_Reward: + this._ReturnList.Add(XSysDefine.XSys_Design_Achieve); + this._ReturnList.Add(XSysDefine.XSys_LevelReward); + this._ReturnList.Add(XSysDefine.XSys_Reward_Target); + this._ReturnList.Add(XSysDefine.XSys_ServerActivity); + this._ReturnList.Add(XSysDefine.XSys_WeekShareReward); + this._ReturnList.Add(XSysDefine.XSys_Reward_Dragon); + return this._ReturnList; + default: + if (sys == XSysDefine.XSys_Rank) + { + this._ReturnList.Add(XSysDefine.XSys_Rank_Qualifying); + this._ReturnList.Add(XSysDefine.XSys_Rank_SkyArena); + this._ReturnList.Add(XSysDefine.XSys_Rank_CampDuel); + this._ReturnList.Add(XSysDefine.XSys_Rank_Guild); + this._ReturnList.Add(XSysDefine.XSys_Rank_GuildBoss); + this._ReturnList.Add(XSysDefine.XSys_Rank_WorldBoss); + this._ReturnList.Add(XSysDefine.XSys_FlowerRank); + this._ReturnList.Add(XSysDefine.XSys_Rank_DragonGuild); + this._ReturnList.Add(XSysDefine.XSys_Rank_BigMelee); + this._ReturnList.Add(XSysDefine.XSys_Rank_TeamTower); + this._ReturnList.Add(XSysDefine.XSys_Rank_Rift); + this._ReturnList.Add(XSysDefine.XSys_Rank_Sprite); + this._ReturnList.Add(XSysDefine.XSys_Rank_Pet); + return this._ReturnList; + } + break; + } + } + else + { + if (sys == XSysDefine.XSys_EquipCreate) + { + this._ReturnList.Add(XSysDefine.XSys_EquipCreate_EquipSet); + this._ReturnList.Add(XSysDefine.XSys_EquipCreate_EmblemSet); + this._ReturnList.Add(XSysDefine.XSys_EquipCreate_ArtifactSet); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_Activity) + { + this._ReturnList.Add(XSysDefine.XSys_Activity_Nest); + this._ReturnList.Add(XSysDefine.XSys_Activity_WorldBoss); + this._ReturnList.Add(XSysDefine.XSys_Activity_DragonNest); + this._ReturnList.Add(XSysDefine.XSys_Activity_ExpeditionFrame); + this._ReturnList.Add(XSysDefine.XSys_Activity_TeamTower); + return this._ReturnList; + } + switch (sys) + { + case XSysDefine.XSys_DailyAcitivity: + this._ReturnList.Add(XSysDefine.XSys_Activity); + this._ReturnList.Add(XSysDefine.XSys_Reward_Activity); + return this._ReturnList; + case XSysDefine.XSys_PVPAcitivity: + this._ReturnList.Add(XSysDefine.XSys_Qualifying); + this._ReturnList.Add(XSysDefine.XSys_HeroBattle); + this._ReturnList.Add(XSysDefine.XSys_Activity_CaptainPVP); + this._ReturnList.Add(XSysDefine.XSys_WeekNest); + this._ReturnList.Add(XSysDefine.XSys_TeamLeague); + this._ReturnList.Add(XSysDefine.XSys_CustomBattle); + this._ReturnList.Add(XSysDefine.XSys_HallFame); + return this._ReturnList; + case XSysDefine.XSys_MobaAcitivity: + this._ReturnList.Add(XSysDefine.XSys_PVPAcitivity); + return this._ReturnList; + } + } + } + else if (sys <= XSysDefine.XSys_Carnival) + { + if (sys == XSysDefine.XSys_GameMall) + { + this._ReturnList.Add(XSysDefine.XSys_GameMall_Diamond); + this._ReturnList.Add(XSysDefine.XSys_GameMall_Dragon); + this._ReturnList.Add(XSysDefine.XSys_Mall); + this._ReturnList.Add(XSysDefine.XSys_GameMall_Pay); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_Carnival) + { + this._ReturnList.Add(XSysDefine.XSys_Carnival_Content); + this._ReturnList.Add(XSysDefine.XSys_Carnival_Rwd); + this._ReturnList.Add(XSysDefine.XSys_Carnival_Tabs); + return this._ReturnList; + } + } + else + { + if (sys == XSysDefine.XSys_GuildHall) + { + this._ReturnList.Add(XSysDefine.XSys_GuildHall_SignIn); + this._ReturnList.Add(XSysDefine.XSys_GuildHall_Approve); + this._ReturnList.Add(XSysDefine.XSys_GuildHall_Skill); + this._ReturnList.Add(XSysDefine.XSys_GuildHall_Member); + this._ReturnList.Add(XSysDefine.XSys_GuildDungeon_SmallMonter); + this._ReturnList.Add(XSysDefine.XSys_GuildBoon_Salay); + this._ReturnList.Add(XSysDefine.XSys_GuildRelax_Joker); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_GuildRelax) + { + this._ReturnList.Add(XSysDefine.XSys_GuildRelax_VoiceQA); + this._ReturnList.Add(XSysDefine.XSys_GuildRelax_JokerMatch); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_Team) + { + this._ReturnList.Add(XSysDefine.XSys_Team_TeamList); + this._ReturnList.Add(XSysDefine.XSys_Team_MyTeam); + return this._ReturnList; + } + } + } + else if (sys <= XSysDefine.Xsys_Backflow) + { + if (sys <= XSysDefine.XSys_CustomBattle) + { + if (sys == XSysDefine.XSys_Home) + { + this._ReturnList.Add(XSysDefine.XSys_Home_MyHome); + this._ReturnList.Add(XSysDefine.XSys_Home_HomeFriends); + this._ReturnList.Add(XSysDefine.XSys_Home_Cooking); + this._ReturnList.Add(XSysDefine.XSys_Home_Feast); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_CustomBattle) + { + this._ReturnList.Add(XSysDefine.XSys_CustomBattle_BountyMode); + this._ReturnList.Add(XSysDefine.XSys_CustomBattle_CustomMode); + return this._ReturnList; + } + } + else + { + if (sys == XSysDefine.XSys_Artifact_DeityStove) + { + this._ReturnList.Add(XSysDefine.XSys_Artifact_Comepose); + this._ReturnList.Add(XSysDefine.XSys_Artifact_Recast); + this._ReturnList.Add(XSysDefine.XSys_Artifact_Fuse); + this._ReturnList.Add(XSysDefine.XSys_Artifact_Inscription); + this._ReturnList.Add(XSysDefine.XSys_Artifact_Refined); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_Flower_Log) + { + this._ReturnList.Add(XSysDefine.XSys_Flower_Log_Send); + this._ReturnList.Add(XSysDefine.XSys_Flower_Log_Receive); + return this._ReturnList; + } + if (sys == XSysDefine.Xsys_Backflow) + { + this._ReturnList.Add(XSysDefine.XSys_BackFlowMall); + this._ReturnList.Add(XSysDefine.XSys_BackFlowWelfare); + this._ReturnList.Add(XSysDefine.Xsys_Backflow_LavishGift); + this._ReturnList.Add(XSysDefine.Xsys_Backflow_NewServerReward); + this._ReturnList.Add(XSysDefine.Xsys_Backflow_LavishGift); + this._ReturnList.Add(XSysDefine.Xsys_Backflow_Target); + this._ReturnList.Add(XSysDefine.Xsys_Backflow_Task); + return this._ReturnList; + } + } + } + else if (sys <= XSysDefine.XSys_GuildBoon_RedPacket) + { + if (sys == XSysDefine.XSys_OperatingActivity) + { + this._ReturnList.Add(XSysDefine.XSys_FirstPass); + this._ReturnList.Add(XSysDefine.XSys_CampDuel); + this._ReturnList.Add(XSysDefine.XSys_MWCX); + this._ReturnList.Add(XSysDefine.XSys_GHJC); + this._ReturnList.Add(XSysDefine.XSys_Flower_Activity); + this._ReturnList.Add(XSysDefine.XSys_CrushingSeal); + this._ReturnList.Add(XSysDefine.XSys_LevelSeal); + this._ReturnList.Add(XSysDefine.XSys_OldFriendsBack); + this._ReturnList.Add(XSysDefine.XSys_Holiday); + this._ReturnList.Add(XSysDefine.XSys_Announcement); + this._ReturnList.Add(XSysDefine.XSys_Shanggu); + this._ReturnList.Add(XSysDefine.XSys_LuckyTurntable); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_ThemeActivity) + { + this._ReturnList.Add(XSysDefine.XSys_ThemeActivity_HellDog); + this._ReturnList.Add(XSysDefine.XSys_ThemeActivity_MadDuck); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_GuildBoon_RedPacket) + { + this._ReturnList.Add(XSysDefine.XSys_GuildBoon_FixedRedPacket); + this._ReturnList.Add(XSysDefine.XSys_GuildRedPacket); + return this._ReturnList; + } + } + else + { + if (sys == XSysDefine.XSys_GuildChallenge) + { + this._ReturnList.Add(XSysDefine.XSys_GuildChallenge_MemberRank); + this._ReturnList.Add(XSysDefine.XSys_GuildChallenge_GuildRank); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_SpriteSystem) + { + this._ReturnList.Add(XSysDefine.XSys_SpriteSystem_Main); + this._ReturnList.Add(XSysDefine.XSys_SpriteSystem_Fight); + this._ReturnList.Add(XSysDefine.XSys_SpriteSystem_Shop); + this._ReturnList.Add(XSysDefine.XSys_SpriteSystem_Lottery); + this._ReturnList.Add(XSysDefine.XSys_SpriteSystem_Resolve); + return this._ReturnList; + } + if (sys == XSysDefine.XSys_GameCommunity) + { + this._ReturnList.Add(XSysDefine.XSys_GC_XinYueVIP); + this._ReturnList.Add(XSysDefine.XSys_GC_XiaoYueGuanJia); + this._ReturnList.Add(XSysDefine.XSys_GC_Reserve17); + this._ReturnList.Add(XSysDefine.XSys_GC_Reserve18); + this._ReturnList.Add(XSysDefine.XSys_GC_Reserve19); + this._ReturnList.Add(XSysDefine.XSys_GC_Reserve20); + this._ReturnList.Add(XSysDefine.XSys_GC_Reserve21); + return this._ReturnList; + } + } + this._ReturnList.Add(sys); + return this._ReturnList; + } + + public XSysDefine GetParentSys(XSysDefine sys) + { + XSysDefine result = sys; + if (sys <= XSysDefine.XSys_PrerogativeShop) + { + if (sys <= XSysDefine.XSys_Char_Attr) + { + if (sys <= XSysDefine.XSys_WeekShareReward) + { + if (sys <= XSysDefine.XSys_Mall) + { + if (sys == XSysDefine.XSys_Fashion) + { + goto IL_5F6; + } + if (sys == XSysDefine.XSys_FlowerRank) + { + goto IL_63E; + } + if (sys != XSysDefine.XSys_Mall) + { + return result; + } + goto IL_62E; + } + else + { + switch (sys) + { + case XSysDefine.XSys_ServerActivity: + case XSysDefine.XSys_LevelReward: + break; + case (XSysDefine)38: + case XSysDefine.XSys_OnlineReward: + case XSysDefine.XSys_Setting: + case XSysDefine.XSys_Rank: + case (XSysDefine)43: + case XSysDefine.XSys_EquipCreate: + case XSysDefine.XSys_SystemActivity: + case (XSysDefine)53: + return result; + case XSysDefine.XSys_ReceiveEnergy: + goto IL_697; + case XSysDefine.XSys_LevelSeal: + goto IL_6B9; + case XSysDefine.XSys_BossRush: + case XSysDefine.XSys_SuperRisk: + case XSysDefine.XSys_DragonCrusade: + case XSysDefine.XSys_Arena: + goto IL_60E; + case XSysDefine.XSys_Activity: + goto IL_69F; + case XSysDefine.XSys_Qualifying: + goto IL_616; + default: + if (sys == XSysDefine.XSys_PVPAcitivity) + { + return XSysDefine.XSys_MobaAcitivity; + } + if (sys != XSysDefine.XSys_WeekShareReward) + { + return result; + } + break; + } + } + } + else if (sys <= XSysDefine.XSys_Level_Swap) + { + if (sys == XSysDefine.XSys_GuildRedPacket) + { + goto IL_67D; + } + if (sys == XSysDefine.XSys_HallFame) + { + goto IL_616; + } + if (sys - XSysDefine.XSys_Level_Normal > 2) + { + return result; + } + return XSysDefine.XSys_Level; + } + else if (sys <= XSysDefine.XSys_Item_Enchant) + { + if (sys - XSysDefine.XSys_Item_Equip > 2 && sys != XSysDefine.XSys_Item_Enchant) + { + return result; + } + goto IL_5F6; + } + else + { + if (sys - XSysDefine.XSys_Skill_Levelup <= 1) + { + return XSysDefine.XSys_Skill; + } + if (sys != XSysDefine.XSys_Char_Attr) + { + return result; + } + return XSysDefine.XSys_Char; + } + } + else if (sys <= XSysDefine.XSys_CustomBattle_CustomMode) + { + if (sys <= XSysDefine.XSys_Recycle_Jade) + { + if (sys == XSysDefine.XSys_Char_Emblem) + { + goto IL_5F6; + } + switch (sys) + { + case XSysDefine.XSys_Home_Cooking: + case XSysDefine.XSys_Home_Feast: + case XSysDefine.XSys_Home_MyHome: + case XSysDefine.XSys_Home_HomeFriends: + return XSysDefine.XSys_Home; + case XSysDefine.XSys_Home_Fishing: + case XSysDefine.XSys_Home_Plant: + case (XSysDefine)157: + case (XSysDefine)158: + case XSysDefine.XSys_Horse_LearnSkill: + return result; + case XSysDefine.XSys_Fashion_Fashion: + case XSysDefine.XSys_Fashion_OutLook: + return XSysDefine.XSys_Fashion; + default: + if (sys - XSysDefine.XSys_Recycle_Equip > 1) + { + return result; + } + return XSysDefine.XSys_Recycle; + } + } + else + { + if (sys == XSysDefine.XSys_Bag_Item) + { + goto IL_5F6; + } + if (sys - XSysDefine.XSys_TShow_Vote <= 1) + { + return XSysDefine.XSys_TShow; + } + if (sys - XSysDefine.XSys_CustomBattle_BountyMode > 1) + { + return result; + } + return XSysDefine.XSys_CustomBattle; + } + } + else if (sys <= XSysDefine.XSys_Mail_System) + { + if (sys - XSysDefine.XSys_Camp_CampHall <= 1 || sys == XSysDefine.XSys_Camp_Mission) + { + return XSysDefine.XSys_Camp; + } + if (sys != XSysDefine.XSys_Mail_System) + { + return result; + } + return XSysDefine.XSys_Mail; + } + else + { + if (sys > XSysDefine.XSys_Design_Achieve) + { + if (sys - XSysDefine.XSys_Mall_MystShop > 5) + { + switch (sys) + { + case XSysDefine.XSys_Reward_Activity: + goto IL_69F; + case (XSysDefine)352: + case (XSysDefine)354: + case XSysDefine.XSys_Prerogative: + return result; + case XSysDefine.XSys_Reward_Login: + goto IL_697; + case XSysDefine.XSys_Reward_Dragon: + case XSysDefine.XSys_Reward_Target: + goto IL_5FE; + case XSysDefine.XSys_PrerogativeShop: + break; + default: + return result; + } + } + return XSysDefine.XSys_Mall; + } + if (sys == XSysDefine.XSys_Design_Designation) + { + goto IL_5F6; + } + if (sys != XSysDefine.XSys_Design_Achieve) + { + return result; + } + } + IL_5FE: + return XSysDefine.XSys_Reward; + IL_69F: + return XSysDefine.XSys_DailyAcitivity; + } + if (sys <= XSysDefine.XSys_GC_XiaoYueGuanJia) + { + if (sys <= XSysDefine.XSys_Welfare_NiceGirl) + { + if (sys <= XSysDefine.XSys_SystemActivity_Other) + { + switch (sys) + { + case XSysDefine.XSys_Artifact: + goto IL_5F6; + case XSysDefine.XSys_Artifact_Comepose: + case XSysDefine.XSys_Artifact_Recast: + case XSysDefine.XSys_Artifact_Fuse: + case XSysDefine.XSys_Artifact_Inscription: + case XSysDefine.XSys_Artifact_Refined: + return XSysDefine.XSys_Artifact_DeityStove; + case XSysDefine.XSys_Artifact_Atlas: + case XSysDefine.XSys_Artifact_DeityStove: + return result; + default: + switch (sys) + { + case XSysDefine.XSys_Rank_Rift: + case XSysDefine.XSys_Rank_WorldBoss: + case XSysDefine.XSys_Rank_Guild: + case XSysDefine.XSys_Rank_Fashion: + case XSysDefine.XSys_Rank_TeamTower: + case XSysDefine.XSys_Rank_GuildBoss: + case XSysDefine.XSys_Rank_Pet: + case XSysDefine.XSys_Rank_Sprite: + case XSysDefine.XSys_Rank_Qualifying: + case XSysDefine.XSys_Rank_BigMelee: + case XSysDefine.XSys_Rank_DragonGuild: + case XSysDefine.XSys_Rank_SkyArena: + case XSysDefine.XSys_Rank_CampDuel: + goto IL_63E; + case XSysDefine.XSys_Rank_PPT: + case XSysDefine.XSys_Rank_Level: + case XSysDefine.XSys_Flower_Log: + case (XSysDefine)428: + case (XSysDefine)429: + case (XSysDefine)433: + case (XSysDefine)434: + case (XSysDefine)435: + case (XSysDefine)436: + case (XSysDefine)437: + case (XSysDefine)438: + case (XSysDefine)439: + case XSysDefine.XSys_Yorozuya: + case (XSysDefine)441: + case (XSysDefine)442: + case (XSysDefine)443: + case (XSysDefine)444: + case (XSysDefine)445: + case (XSysDefine)446: + case (XSysDefine)447: + case (XSysDefine)448: + case (XSysDefine)449: + return result; + case XSysDefine.XSys_Flower_Rank_Today: + case XSysDefine.XSys_Flower_Rank_Yesterday: + case XSysDefine.XSys_Flower_Rank_History: + case XSysDefine.XSys_Flower_Rank_Week: + case XSysDefine.XSys_Flower_Rank_Activity: + return XSysDefine.XSys_FlowerRank; + case XSysDefine.XSys_Flower_Log_Send: + case XSysDefine.XSys_Flower_Log_Receive: + return XSysDefine.XSys_Flower_Log; + case XSysDefine.XSys_EquipCreate_EquipSet: + case XSysDefine.XSys_EquipCreate_EmblemSet: + case XSysDefine.XSys_EquipCreate_ArtifactSet: + return XSysDefine.XSys_EquipCreate; + default: + if (sys != XSysDefine.XSys_SystemActivity_Other) + { + return result; + } + return XSysDefine.XSys_SystemActivity; + } + break; + } + } + else + { + switch (sys) + { + case XSysDefine.XSys_Activity_Nest: + case XSysDefine.XSys_Activity_SmallMonster: + case XSysDefine.XSys_Activity_Fashion: + case XSysDefine.XSys_Activity_WorldBoss: + case XSysDefine.XSys_Activity_ExpeditionFrame: + case XSysDefine.XSys_Activity_DragonNest: + case XSysDefine.XSys_Activity_TeamTower: + case XSysDefine.XSys_Activity_GoddessTrial: + case XSysDefine.XSys_Activity_TeamTowerSingle: + case XSysDefine.XSys_EndlessAbyss: + goto IL_60E; + case XSysDefine.XSys_Activity_BossRush: + case XSysDefine.XSys_BigMelee: + case XSysDefine.XSys_BigMeleeEnd: + case XSysDefine.XSys_Battlefield: + case (XSysDefine)534: + case (XSysDefine)535: + case (XSysDefine)536: + case (XSysDefine)537: + case (XSysDefine)538: + case (XSysDefine)539: + return result; + case XSysDefine.XSys_Activity_CaptainPVP: + goto IL_616; + case XSysDefine.XSys_Shanggu: + goto IL_6B9; + default: + if (sys - XSysDefine.XSys_Welfare_GiftBag > 3 && sys != XSysDefine.XSys_Welfare_NiceGirl) + { + return result; + } + goto IL_697; + } + } + } + else if (sys <= XSysDefine.XSys_LuckyTurntable) + { + switch (sys) + { + case XSysDefine.Xsys_Backflow_LavishGift: + case XSysDefine.Xsys_Backflow_NewServerReward: + case XSysDefine.Xsys_Backflow_LevelUp: + case XSysDefine.Xsys_Backflow_Task: + case XSysDefine.Xsys_Backflow_Target: + case XSysDefine.Xsys_Backflow_Privilege: + goto IL_6E1; + case XSysDefine.Xsys_Backflow_Dailylogin: + case XSysDefine.Xsys_Backflow_GiftBag: + case XSysDefine.Xsys_Server_Two: + return result; + default: + switch (sys) + { + case XSysDefine.XSys_FirstPass: + case XSysDefine.XSys_MWCX: + case XSysDefine.XSys_GHJC: + case XSysDefine.XSys_Flower_Activity: + case XSysDefine.XSys_CrushingSeal: + case XSysDefine.XSys_Holiday: + case XSysDefine.XSys_Announcement: + case XSysDefine.XSys_OldFriendsBack: + case XSysDefine.XSys_CampDuel: + goto IL_6B9; + case XSysDefine.XSys_GuildRank: + case (XSysDefine)608: + case XSysDefine.XSys_Patface: + case XSysDefine.XSys_PandoraSDK: + return result; + case XSysDefine.XSys_WeekNest: + goto IL_616; + default: + if (sys != XSysDefine.XSys_LuckyTurntable) + { + return result; + } + goto IL_6B9; + } + break; + } + } + else if (sys <= XSysDefine.XSys_Carnival_Content) + { + if (sys - XSysDefine.XSys_GameMall_Diamond <= 2) + { + goto IL_62E; + } + if (sys - XSysDefine.XSys_Carnival_Tabs > 2) + { + return result; + } + return XSysDefine.XSys_Carnival; + } + else if (sys != XSysDefine.XSys_GC_XinYueVIP && sys != XSysDefine.XSys_GC_XiaoYueGuanJia) + { + return result; + } + } + else + { + if (sys <= XSysDefine.XSys_GuildDungeon_SmallMonter) + { + if (sys <= XSysDefine.XSys_GuildRelax_JokerMatch) + { + if (sys - XSysDefine.XSys_GC_Reserve17 <= 4) + { + goto IL_6D9; + } + if (sys - XSysDefine.XSys_ThemeActivity_HellDog <= 1) + { + return XSysDefine.XSys_ThemeActivity; + } + switch (sys) + { + case XSysDefine.XSys_GuildHall_SignIn: + case XSysDefine.XSys_GuildHall_Approve: + case XSysDefine.XSys_GuildHall_Skill: + case XSysDefine.XSys_GuildHall_Member: + case XSysDefine.XSys_GuildRelax_Joker: + break; + case (XSysDefine)814: + case (XSysDefine)815: + case (XSysDefine)816: + case (XSysDefine)817: + case (XSysDefine)818: + case (XSysDefine)819: + return result; + case XSysDefine.XSys_GuildRelax_VoiceQA: + case XSysDefine.XSys_GuildRelax_JokerMatch: + return XSysDefine.XSys_GuildRelax; + default: + return result; + } + } + else if (sys != XSysDefine.XSys_GuildBoon_Salay) + { + if (sys == XSysDefine.XSys_GuildBoon_FixedRedPacket) + { + goto IL_67D; + } + if (sys != XSysDefine.XSys_GuildDungeon_SmallMonter) + { + return result; + } + } + return XSysDefine.XSys_GuildHall; + } + if (sys <= XSysDefine.XSys_SpriteSystem_Resolve) + { + if (sys - XSysDefine.XSys_GuildChallenge_MemberRank <= 1) + { + return XSysDefine.XSys_GuildChallenge; + } + if (sys - XSysDefine.XSys_Team_TeamList <= 1) + { + return XSysDefine.XSys_Team; + } + if (sys - XSysDefine.XSys_SpriteSystem_Main > 3) + { + return result; + } + } + else if (sys <= XSysDefine.XSys_HeroBattle) + { + if (sys != XSysDefine.XSys_SpriteSystem_Shop) + { + if (sys != XSysDefine.XSys_HeroBattle) + { + return result; + } + goto IL_616; + } + } + else + { + if (sys == XSysDefine.XSys_TeamLeague) + { + goto IL_616; + } + if (sys != XSysDefine.XSys_BackFlowMall) + { + return result; + } + goto IL_6E1; + } + return XSysDefine.XSys_SpriteSystem; + } + IL_6D9: + return XSysDefine.XSys_GameCommunity; + IL_6E1: + return XSysDefine.Xsys_Backflow; + IL_5F6: + return XSysDefine.XSys_Item; + IL_60E: + return XSysDefine.XSys_Activity; + IL_616: + return XSysDefine.XSys_PVPAcitivity; + IL_62E: + return XSysDefine.XSys_GameMall; + IL_63E: + return XSysDefine.XSys_Rank; + IL_67D: + return XSysDefine.XSys_GuildBoon_RedPacket; + IL_697: + return XSysDefine.XSys_Welfare; + IL_6B9: + result = XSysDefine.XSys_OperatingActivity; + return result; + } + + public OpenSystemTable.RowData GetSysData(int sysid) + { + return this._openSystemTable.GetBySystemID(sysid); + } + + public SystemAnnounce.RowData GetSysAnnounceData(int sysid, int level) + { + for (int i = 0; i < this._announceSystemTable.Table.Length; i++) + { + bool flag = this._announceSystemTable.Table[i].SystemID == sysid && this._announceSystemTable.Table[i].OpenAnnounceLevel == level; + if (flag) + { + return this._announceSystemTable.Table[i]; + } + } + return null; + } + + public SystemAnnounce.RowData GetSysAnnounceData(uint level) + { + for (int i = 0; i < this._announceSystemTable.Table.Length; i++) + { + bool flag = (long)this._announceSystemTable.Table[i].OpenAnnounceLevel >= (long)((ulong)level); + if (flag) + { + bool flag2 = (long)this._announceSystemTable.Table[i].OpenAnnounceLevel > (long)((ulong)level); + SystemAnnounce.RowData result; + if (flag2) + { + result = this._announceSystemTable.Table[i]; + } + else + { + bool flag3 = !this.IsSystemOpen(this._announceSystemTable.Table[i].SystemID); + if (!flag3) + { + goto IL_87; + } + result = this._announceSystemTable.Table[i]; + } + return result; + } + IL_87:; + } + return null; + } + + public int GetSysOpenLevel(int sysid) + { + OpenSystemTable.RowData bySystemID = this._openSystemTable.GetBySystemID(sysid); + bool flag = bySystemID != null; + int result; + if (flag) + { + result = bySystemID.PlayerLevel; + } + else + { + result = 0; + } + return result; + } + + public int GetSysOpenServerDay(int sysid) + { + OpenSystemTable.RowData bySystemID = this._openSystemTable.GetBySystemID(sysid); + bool flag = bySystemID != null; + int result; + if (flag) + { + bool flag2 = XSingleton.singleton.LoginExData != null && XSingleton.singleton.LoginExData.is_backflow_server; + if (flag2) + { + bool flag3 = bySystemID.BackServerOpenDay.Count == 0; + if (flag3) + { + result = 0; + } + else + { + for (int i = 0; i < bySystemID.BackServerOpenDay.Count; i++) + { + bool flag4 = XSingleton.singleton.LoginExData.backflow_level <= bySystemID.BackServerOpenDay[i, 0]; + if (flag4) + { + return (int)bySystemID.BackServerOpenDay[i, 1]; + } + } + result = (int)bySystemID.BackServerOpenDay[bySystemID.BackServerOpenDay.Count - 1, 1]; + } + } + else + { + result = (int)bySystemID.OpenDay; + } + } + else + { + result = 0; + } + return result; + } + + public int GetSysOpenLevel(XSysDefine sys) + { + return this.GetSysOpenLevel(XFastEnumIntEqualityComparer.ToInt(sys)); + } + + public string GetSysName(int sysid) + { + OpenSystemTable.RowData bySystemID = this._openSystemTable.GetBySystemID(sysid); + bool flag = bySystemID != null; + string result; + if (flag) + { + result = bySystemID.SystemDescription; + } + else + { + result = null; + } + return result; + } + + public string GetSysIcon(int sysid) + { + OpenSystemTable.RowData bySystemID = this._openSystemTable.GetBySystemID(sysid); + bool flag = bySystemID != null; + string result; + if (flag) + { + result = bySystemID.Icon; + } + else + { + result = null; + } + return result; + } + + public string GetSysAnnounceIcon(int sysid) + { + for (int i = 0; i < this._announceSystemTable.Table.Length; i++) + { + bool flag = sysid == this._announceSystemTable.Table[i].SystemID; + if (flag) + { + return this._announceSystemTable.Table[i].AnnounceIcon; + } + } + return null; + } + + public void OnSysOpen(XSysDefine sys) + { + if (sys <= XSysDefine.XSys_Char) + { + if (sys != XSysDefine.XSys_Skill) + { + if (sys != XSysDefine.XSys_Char) + { + } + } + } + else if (sys != XSysDefine.XSys_Draw) + { + if (sys != XSysDefine.XSys_Item_Equip) + { + } + } + } + + public void RecalculateRedPointState(XSysDefine sys, bool bImmUpdateUI = true) + { + if (sys <= XSysDefine.XSys_GuildRelax_JokerMatch) + { + switch (sys) + { + case XSysDefine.XSys_GuildHall: + case XSysDefine.XSys_GuildRelax: + case XSysDefine.XSys_GuildDragon: + case XSysDefine.XSys_GuildPvp: + case XSysDefine.XSys_GuildMine: + break; + case (XSysDefine)83: + case (XSysDefine)84: + case XSysDefine.XSys_GuildRedPacket: + goto IL_AC; + default: + if (sys - XSysDefine.XSys_Welfare_GiftBag > 9) + { + if (sys != XSysDefine.XSys_GuildRelax_JokerMatch) + { + goto IL_AC; + } + } + else + { + bool flag = !this.IsSystemOpened(XSysDefine.XSys_Welfare); + if (flag) + { + return; + } + goto IL_C3; + } + break; + } + } + else if (sys <= XSysDefine.XSys_GuildBoon_FixedRedPacket) + { + if (sys != XSysDefine.XSys_GuildBoon_RedPacket && sys != XSysDefine.XSys_GuildBoon_FixedRedPacket) + { + goto IL_AC; + } + } + else if (sys != XSysDefine.XSys_GuildDungeon_SmallMonter && sys != XSysDefine.XSys_GuildChallenge) + { + goto IL_AC; + } + bool flag2 = !this.IsSystemOpened(XSysDefine.XSys_Guild); + if (flag2) + { + return; + } + goto IL_C3; + IL_AC: + bool flag3 = !this.IsSystemOpened(sys); + if (flag3) + { + return; + } + IL_C3: + if (sys <= XSysDefine.XSys_Fashion_Fashion) + { + if (sys <= XSysDefine.XSys_Arena) + { + if (sys <= XSysDefine.XSys_Strong) + { + if (sys <= XSysDefine.XSys_Horse) + { + if (sys != XSysDefine.XSys_Skill) + { + if (sys == XSysDefine.XSys_Horse) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Horse), specificDocument.CanHasRedPoint && specificDocument.HasFood && specificDocument.FightPetHungry); + } + } + else + { + XSkillTreeDocument specificDocument2 = XDocuments.GetSpecificDocument(XSkillTreeDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Skill), specificDocument2.RedPoint); + } + } + else if (sys != XSysDefine.XSys_FlowerRank) + { + if (sys != XSysDefine.XSys_CardCollect) + { + if (sys == XSysDefine.XSys_Strong) + { + XFPStrengthenDocument specificDocument3 = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(sys), specificDocument3.IsHadRedot); + } + } + else + { + XCardCollectDocument specificDocument4 = XDocuments.GetSpecificDocument(XCardCollectDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CardCollect), specificDocument4.GetRedPoint()); + } + } + else + { + XFlowerRankDocument specificDocument5 = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_FlowerRank), specificDocument5.ShowRedPoint()); + } + } + else if (sys <= XSysDefine.XSys_LevelReward) + { + if (sys != XSysDefine.XSys_ServerActivity) + { + if (sys != XSysDefine.XSys_OnlineReward) + { + if (sys == XSysDefine.XSys_LevelReward) + { + XAchievementDocument specificDocument6 = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_LevelReward), specificDocument6.HasCompleteAchivement(XSysDefine.XSys_LevelReward)); + } + } + else + { + XOnlineRewardDocument specificDocument7 = XDocuments.GetSpecificDocument(XOnlineRewardDocument.uuID); + bool flag4 = specificDocument7.CheckOver(); + if (flag4) + { + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_OnlineReward), this.OnlineRewardRemainTime <= 0f); + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + bool flag6 = this.OnlineTime == null; + if (flag6) + { + IXUIButton sysButton = DlgBase.singleton.uiBehaviour.GetSysButton(XSysDefine.XSys_OnlineReward); + bool flag7 = sysButton != null; + if (flag7) + { + Transform transform = sysButton.gameObject.transform.Find("Text"); + bool flag8 = transform != null; + if (flag8) + { + this.OnlineTime = (transform.GetComponent("XUILabel") as IXUILabel); + } + } + } + bool flag9 = this.OnlineTime != null; + if (flag9) + { + bool flag10 = this.OnlineRewardRemainTime <= 0f; + if (flag10) + { + this.OnlineTime.SetVisible(false); + } + else + { + this.OnlineTime.SetVisible(true); + this.OnlineTime.SetText(XSingleton.singleton.TimeFormatString((int)this.OnlineRewardRemainTime, 2, 3, 4, false, true)); + } + } + } + } + else + { + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_OnlineReward), false); + } + } + } + else + { + XAchievementDocument specificDocument8 = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_ServerActivity), specificDocument8.HasCompleteAchivement(XSysDefine.XSys_ServerActivity)); + } + } + else if (sys != XSysDefine.XSys_ReceiveEnergy) + { + if (sys != XSysDefine.XSys_LevelSeal) + { + if (sys == XSysDefine.XSys_Arena) + { + XArenaDocument specificDocument9 = XDocuments.GetSpecificDocument(XArenaDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Arena), specificDocument9.RedPoint); + } + } + else + { + XLevelSealDocument specificDocument10 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_LevelSeal), specificDocument10.RedPoint); + } + } + else + { + XSystemRewardDocument specificDocument11 = XDocuments.GetSpecificDocument(XSystemRewardDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_ReceiveEnergy), specificDocument11.HasReceiveEnergyCanFetchReward()); + } + } + else + { + if (sys <= XSysDefine.XSys_Level_Normal) + { + if (sys <= XSysDefine.XSys_WeekShareReward) + { + if (sys == XSysDefine.XSys_Qualifying) + { + int @int = XSingleton.singleton.GetInt("QualifyingFirstRewardCount"); + XQualifyingDocument specificDocument12 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Qualifying), (ulong)specificDocument12.LeftFirstRewardCount < (ulong)((long)@int)); + goto IL_1389; + } + if (sys != XSysDefine.XSys_WeekShareReward) + { + goto IL_1389; + } + XAchievementDocument specificDocument13 = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_WeekShareReward), specificDocument13.HasWeekReward || !specificDocument13.Monday); + goto IL_1389; + } + else + { + switch (sys) + { + case XSysDefine.XSys_GuildRelax: + { + XGuildRelaxGameDocument specificDocument14 = XDocuments.GetSpecificDocument(XGuildRelaxGameDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildRelax), specificDocument14.RedPoint); + goto IL_1389; + } + case (XSysDefine)83: + case (XSysDefine)84: + case XSysDefine.XSys_CrossGVG: + case XSysDefine.XSys_Team: + case XSysDefine.XSys_GayValley: + case XSysDefine.XSys_GayValleyManager: + goto IL_1389; + case XSysDefine.XSys_GuildDragon: + { + bool flag11 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_GuildDragon); + if (flag11) + { + XGuildDragonDocument specificDocument15 = XDocuments.GetSpecificDocument(XGuildDragonDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildDragon), specificDocument15.bCanFight); + } + goto IL_1389; + } + case XSysDefine.XSys_GuildPvp: + { + XGuildArenaDocument specificDocument16 = XDocuments.GetSpecificDocument(XGuildArenaDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildPvp), specificDocument16.bHasAvailableArenaIcon); + goto IL_1389; + } + case XSysDefine.XSys_GuildRedPacket: + { + XGuildRedPacketDocument specificDocument17 = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildRedPacket), specificDocument17.bHasAvailableRedPacket); + goto IL_1389; + } + case XSysDefine.XSys_GuildMine: + { + XGuildDocument specificDocument18 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag12 = XGuildDocument.GuildConfig.IsSysUnlock(XSysDefine.XSys_GuildMine, specificDocument18.Level); + XGuildMineEntranceDocument specificDocument19 = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildMine), specificDocument19.MainInterfaceState && flag12); + goto IL_1389; + } + case XSysDefine.XSys_SevenActivity: + { + XSevenLoginDocument specificDocument20 = XDocuments.GetSpecificDocument(XSevenLoginDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_SevenActivity), specificDocument20.bHasAvailableRedPoint); + goto IL_1389; + } + case XSysDefine.XSys_Title: + break; + default: + { + if (sys == XSysDefine.XSys_HallFame) + { + XCustomBattleDocument specificDocument21 = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this.SetSysRedPointState(XSysDefine.XSys_HallFame, XHallFameDocument.Doc.CanSupportType.Count > 0); + goto IL_1389; + } + if (sys != XSysDefine.XSys_Level_Normal) + { + goto IL_1389; + } + XLevelDocument specificDocument22 = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Level_Normal), specificDocument22.HasDifficultAllChapterRedpoint(0)); + goto IL_1389; + } + } + } + } + else if (sys <= XSysDefine.XSys_Char_Emblem) + { + if (sys == XSysDefine.XSys_Level_Elite) + { + XLevelDocument specificDocument23 = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Level_Normal), specificDocument23.HasDifficultAllChapterRedpoint(1)); + goto IL_1389; + } + switch (sys) + { + case XSysDefine.XSys_Item_Equip: + case XSysDefine.XSys_Item_Enhance: + case XSysDefine.XSys_Item_Enchant: + break; + case XSysDefine.XSys_Item_Jade: + { + XJadeDocument specificDocument24 = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Item_Jade), specificDocument24.bCanBePowerful); + goto IL_1389; + } + case XSysDefine.XSys_Item_SlotAttr: + goto IL_1389; + case XSysDefine.XSys_Item_Smelting: + case XSysDefine.XSys_Item_Reinforce: + case XSysDefine.XSys_Emblem_Smelting: + goto IL_1389; + default: + { + if (sys != XSysDefine.XSys_Char_Emblem) + { + goto IL_1389; + } + XEmblemDocument specificDocument25 = XDocuments.GetSpecificDocument(XEmblemDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Char_Emblem), specificDocument25.bCanBePowerful || XSmeltDocument.Doc.EmblemCanBePower); + goto IL_1389; + } + } + } + else + { + if (sys == XSysDefine.XSys_Home || sys == XSysDefine.XSys_Home_MyHome) + { + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Home), HomeMainDocument.Doc.HomeMainRedDot); + goto IL_1389; + } + if (sys != XSysDefine.XSys_Fashion_Fashion) + { + goto IL_1389; + } + XFashionDocument specificDocument26 = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Fashion_Fashion), specificDocument26.RedPoint); + goto IL_1389; + } + XCharacterEquipDocument specificDocument27 = XDocuments.GetSpecificDocument(XCharacterEquipDocument.uuID); + XEnhanceDocument specificDocument28 = XDocuments.GetSpecificDocument(XEnhanceDocument.uuID); + XTitleDocument specificDocument29 = XDocuments.GetSpecificDocument(XTitleDocument.uuID); + bool flag13 = sys == XSysDefine.XSys_Title && specificDocument27.Handler != null; + if (flag13) + { + specificDocument27.Handler.RefreshTitleRedPoint(); + } + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Item_Equip), specificDocument27.bCanBePowerful || (this.IsSystemOpened(XSysDefine.XSys_Item_Enhance) && specificDocument28.bCanBePowerful) || XSmeltDocument.Doc.EquipCanBePower || (this.IsSystemOpened(XSysDefine.XSys_Item_Enchant) && this.GetSysRedPointState(XSysDefine.XSys_Item_Enchant)) || (this.IsSystemOpened(XSysDefine.XSys_Title) && specificDocument29.bEnableTitleLevelUp)); + } + } + else if (sys <= XSysDefine.XSys_NPCFavor) + { + if (sys <= XSysDefine.XSys_Artifact) + { + if (sys <= XSysDefine.XSys_Bag_Item) + { + if (sys != XSysDefine.XSys_Fashion_OutLook) + { + if (sys == XSysDefine.XSys_Bag_Item) + { + XCharacterItemDocument specificDocument30 = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Bag_Item), specificDocument30.bHasAvailableItems); + } + } + else + { + XFashionStorageDocument specificDocument31 = XDocuments.GetSpecificDocument(XFashionStorageDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Fashion_OutLook), specificDocument31.RedPoint); + } + } + else + { + switch (sys) + { + case XSysDefine.XSys_CustomBattle: + { + XCustomBattleDocument specificDocument32 = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CustomBattle), specificDocument32.RedPoint); + break; + } + case XSysDefine.XSys_CustomBattle_BountyMode: + { + XCustomBattleDocument specificDocument33 = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CustomBattle_BountyMode), specificDocument33.BountyModeRedPoint); + break; + } + case XSysDefine.XSys_CustomBattle_CustomMode: + { + XCustomBattleDocument specificDocument34 = XDocuments.GetSpecificDocument(XCustomBattleDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CustomBattle_CustomMode), specificDocument34.CustomModeRedPoint); + break; + } + default: + switch (sys) + { + case XSysDefine.XSys_Reward_Achivement: + { + XAchievementDocument specificDocument35 = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Reward_Achivement), specificDocument35.HasCompleteAchivement(XSysDefine.XSys_Reward_Achivement)); + break; + } + case XSysDefine.XSys_Reward_Activity: + { + XDailyActivitiesDocument specificDocument36 = XDocuments.GetSpecificDocument(XDailyActivitiesDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Reward_Activity), specificDocument36.HasCanFetchReward()); + break; + } + case (XSysDefine)352: + case (XSysDefine)354: + break; + case XSysDefine.XSys_Reward_Login: + { + XLoginRewardDocument specificDocument37 = XDocuments.GetSpecificDocument(XLoginRewardDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Reward_Login), !specificDocument37.IsTodayChecked()); + break; + } + case XSysDefine.XSys_Reward_Dragon: + { + XDragonRewardDocument specificDocument38 = XDocuments.GetSpecificDocument(XDragonRewardDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Reward_Dragon), specificDocument38.HasNewRed()); + this.UpdateRedPointOnHallUI(sys); + break; + } + case XSysDefine.XSys_Prerogative: + { + XPrerogativeDocument specificDocument39 = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + break; + } + case XSysDefine.XSys_Reward_Target: + { + XTargetRewardDocument specificDocument40 = XDocuments.GetSpecificDocument(XTargetRewardDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Reward_Target), specificDocument40.HasNewRed()); + break; + } + default: + if (sys == XSysDefine.XSys_Artifact) + { + ArtifactBagDocument doc = ArtifactBagDocument.Doc; + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Artifact), doc.CanBePowerful); + } + break; + } + break; + } + } + } + else if (sys <= XSysDefine.XSys_Activity_DragonNest) + { + switch (sys) + { + case XSysDefine.XSys_EquipCreate_EquipSet: + { + XEquipCreateDocument specificDocument41 = XDocuments.GetSpecificDocument(XEquipCreateDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_EquipCreate_EquipSet), specificDocument41.RedPointEquip); + break; + } + case XSysDefine.XSys_EquipCreate_EmblemSet: + { + XEquipCreateDocument specificDocument42 = XDocuments.GetSpecificDocument(XEquipCreateDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_EquipCreate_EmblemSet), specificDocument42.RedPointEmblem); + break; + } + case XSysDefine.XSys_EquipCreate_ArtifactSet: + { + XArtifactCreateDocument doc2 = XArtifactCreateDocument.Doc; + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_EquipCreate_ArtifactSet), doc2.RedPointArtifact); + break; + } + default: + if (sys != XSysDefine.XSys_MentorshipMsg_Tip) + { + switch (sys) + { + case XSysDefine.XSys_Activity_WorldBoss: + this.UpdateRedPointOnHallUI(sys); + break; + case XSysDefine.XSys_Activity_ExpeditionFrame: + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Activity_ExpeditionFrame), 0 < ActivityExpeditionHandler.GetDayLeftCount()); + break; + } + } + else + { + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_MentorshipMsg_Tip), XMentorshipDocument.Doc.TipIconHasRedPoint); + } + break; + } + } + else + { + switch (sys) + { + case XSysDefine.XSys_Welfare_GiftBag: + { + XWelfareDocument specificDocument43 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare_GiftBag), specificDocument43.GetRedPoint(XSysDefine.XSys_Welfare_GiftBag)); + break; + } + case XSysDefine.XSys_Welfare_StarFund: + { + XWelfareDocument specificDocument44 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare_StarFund), specificDocument44.GetRedPoint(XSysDefine.XSys_Welfare_StarFund)); + break; + } + case XSysDefine.XSys_Welfare_FirstRechange: + { + XWelfareDocument specificDocument45 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare_FirstRechange), specificDocument45.GetRedPoint(XSysDefine.XSys_Welfare_FirstRechange)); + this.UpdateRedPointOnHallUI(sys); + break; + } + case XSysDefine.XSyS_Welfare_RewardBack: + { + XWelfareDocument specificDocument46 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSyS_Welfare_RewardBack), specificDocument46.GetRedPoint(XSysDefine.XSyS_Welfare_RewardBack)); + this.UpdateRedPointOnHallUI(sys); + break; + } + case XSysDefine.XSys_Welfare_MoneyTree: + { + XWelfareDocument specificDocument47 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare_MoneyTree), specificDocument47.GetRedPoint(XSysDefine.XSys_Welfare_MoneyTree)); + this.UpdateRedPointOnHallUI(sys); + break; + } + case XSysDefine.XSys_Welfare_KingdomPrivilege: + case XSysDefine.XSys_Welfare_YyMall: + case (XSysDefine)573: + case (XSysDefine)574: + case (XSysDefine)575: + case (XSysDefine)576: + case (XSysDefine)577: + case (XSysDefine)578: + case (XSysDefine)579: + case XSysDefine.Xsys_Backflow: + case XSysDefine.Xsys_Backflow_Dailylogin: + case XSysDefine.Xsys_Backflow_GiftBag: + case XSysDefine.Xsys_Server_Two: + break; + case XSysDefine.XSys_Welfare_KingdomPrivilege_Court: + { + XWelfareDocument specificDocument48 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare_KingdomPrivilege_Court), specificDocument48.GetRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Court)); + break; + } + case XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer: + { + XWelfareDocument specificDocument49 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer), specificDocument49.GetRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer)); + break; + } + case XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce: + { + XWelfareDocument specificDocument50 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce), specificDocument50.GetRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce)); + break; + } + case XSysDefine.XSys_Welfare_NiceGirl: + { + XWelfareDocument specificDocument51 = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare_NiceGirl), specificDocument51.GetRedPoint(XSysDefine.XSys_Welfare_NiceGirl)); + break; + } + case XSysDefine.Xsys_Backflow_LavishGift: + case XSysDefine.Xsys_Backflow_NewServerReward: + case XSysDefine.Xsys_Backflow_LevelUp: + case XSysDefine.Xsys_Backflow_Task: + case XSysDefine.Xsys_Backflow_Target: + case XSysDefine.Xsys_Backflow_Privilege: + { + bool add = XBackFlowDocument.Doc.GetRedPointState(sys); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(sys), add); + break; + } + default: + if (sys != XSysDefine.XSys_OperatingActivity) + { + if (sys == XSysDefine.XSys_NPCFavor) + { + XNPCFavorDocument specificDocument52 = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_NPCFavor), specificDocument52.IsNeedShowRedpoint); + this.UpdateRedPointOnHallUI(sys); + } + } + else + { + XOperatingActivityDocument doc3 = XOperatingActivityDocument.Doc; + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_OperatingActivity), doc3.IsHadRedDot()); + } + break; + } + } + } + else if (sys <= XSysDefine.XSys_GuildRelax_JokerMatch) + { + if (sys <= XSysDefine.XSys_GuildHall_SignIn) + { + if (sys - XSysDefine.XSys_ThemeActivity > 2) + { + if (sys == XSysDefine.XSys_GuildHall_SignIn) + { + XGuildSignInDocument specificDocument53 = XDocuments.GetSpecificDocument(XGuildSignInDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildHall_SignIn), specificDocument53.bHasAvailableChest || specificDocument53.CanSignInSelection != 0); + } + } + else + { + XThemeActivityDocument specificDocument54 = XDocuments.GetSpecificDocument(XThemeActivityDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_ThemeActivity), specificDocument54.IsHadRedPoint()); + } + } + else if (sys != XSysDefine.XSys_GuildHall_Skill) + { + if (sys != XSysDefine.XSys_GuildRelax_Joker) + { + if (sys == XSysDefine.XSys_GuildRelax_JokerMatch) + { + XGuildJockerMatchDocument specificDocument55 = XDocuments.GetSpecificDocument(XGuildJockerMatchDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildRelax_JokerMatch), specificDocument55.bAvaiableIconWhenShow); + } + } + else + { + XGuildJokerDocument specificDocument56 = XDocuments.GetSpecificDocument(XGuildJokerDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildRelax_Joker), specificDocument56.GameCount > 0); + } + } + else + { + XGuildSkillDocument specificDocument57 = XDocuments.GetSpecificDocument(XGuildSkillDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildHall_Skill), specificDocument57.RedPoint); + } + } + else if (sys <= XSysDefine.XSys_GuildChallenge) + { + if (sys != XSysDefine.XSys_GuildBoon_Salay) + { + if (sys != XSysDefine.XSys_GuildBoon_FixedRedPacket) + { + if (sys != XSysDefine.XSys_GuildChallenge) + { + } + } + else + { + XGuildRedPacketDocument specificDocument58 = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildBoon_FixedRedPacket), specificDocument58.bHasAvailableFixedRedPoint); + } + } + else + { + XGuildSalaryDocument specificDocument59 = XDocuments.GetSpecificDocument(XGuildSalaryDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildBoon_Salay), specificDocument59.HasRedPoint); + } + } + else if (sys != XSysDefine.XSys_QQVIP) + { + if (sys != XSysDefine.XSys_HeroBattle) + { + if (sys == XSysDefine.XSys_Moba) + { + int int2 = XSingleton.singleton.GetInt("MobaStageNum"); + XMobaEntranceDocument specificDocument60 = XDocuments.GetSpecificDocument(XMobaEntranceDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Moba), (ulong)specificDocument60.GetRewardStage < (ulong)((long)int2)); + } + } + else + { + int int3 = XSingleton.singleton.GetInt("HeroBattleSpecialNum"); + XHeroBattleDocument specificDocument61 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_HeroBattle), (ulong)specificDocument61.JoinToday < (ulong)((long)int3)); + } + } + else + { + XPlatformAbilityDocument specificDocument62 = XDocuments.GetSpecificDocument(XPlatformAbilityDocument.uuID); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_QQVIP), specificDocument62.QQVipRedPoint); + } + IL_1389: + this.UpdateLevel1SystemState(sys); + XSysDefine parentSys = this.GetParentSys(sys); + if (bImmUpdateUI) + { + this.UpdateParentRedPoint(sys); + this.sysRedPointHasRefreshed.Clear(); + int num = XFastEnumIntEqualityComparer.ToInt(sys); + bool flag14 = num >= 0 && num < this.sysRedPointRelative.Length; + if (flag14) + { + List list = this.sysRedPointRelative[num]; + bool flag15 = list != null; + if (flag15) + { + for (int i = 0; i < list.Count; i++) + { + XSysDefine xsysDefine = list[i]; + bool flag16 = !this.sysRedPointHasRefreshed.IsFlag(XFastEnumIntEqualityComparer.ToInt(xsysDefine)); + if (flag16) + { + parentSys = this.GetParentSys(xsysDefine); + this.UpdateRedPointOnHallUI(parentSys); + this.UpdateSubSysRedPointsUI(parentSys); + this.UpdateRelativeSysRedPointsUI(xsysDefine); + this.sysRedPointHasRefreshed.SetFlag(XFastEnumIntEqualityComparer.ToInt(xsysDefine), true); + } + } + } + } + } + } + + private void UpdateParentRedPoint(XSysDefine define) + { + this.UpdateRedPointOnHallUI(define); + this.UpdateSubSysRedPointsUI(define); + this.UpdateRelativeSysRedPointsUI(define); + XSysDefine parentSys = this.GetParentSys(define); + bool flag = parentSys == define || parentSys == XSysDefine.XSys_None || parentSys == XSysDefine.XSys_Invalid; + if (!flag) + { + this.UpdateParentRedPoint(parentSys); + } + } + + protected void UpdateLevel1SystemState(XSysDefine sys) + { + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Bag), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Bag_Item)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Fashion), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Fashion_Fashion) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Fashion_OutLook)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Item), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Item_Equip) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Bag_Item) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Char_Emblem) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Item_Jade) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Fashion) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Design_Designation) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Artifact)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Reward), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Design_Achieve) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_LevelReward) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_ServerActivity) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Reward_Dragon) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Reward_Target) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_WeekShareReward)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildHall), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildHall_SignIn) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildHall_Skill) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildHall_Member) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildHall_Approve) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildDungeon_SmallMonter) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildBoon_Salay) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildRelax_Joker)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Guild), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildHall) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildRelax) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildMine) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildDragon) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildPvp) || !XGuildDocument.InGuild); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Rank), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_FlowerRank)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GuildBoon_RedPacket), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildRedPacket) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GuildBoon_FixedRedPacket)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_EquipCreate), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_EquipCreate_EquipSet) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_EquipCreate_EmblemSet) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_EquipCreate_ArtifactSet)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GameCommunity), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GC_XinYueVIP) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GC_XiaoYueGuanJia) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GC_Reserve17) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GC_Reserve18) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GC_Reserve19) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GC_Reserve20) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GC_Reserve21) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Questionnaire)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Char), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Char_Attr) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Char_Emblem)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Character), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Char) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Bag) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Design)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Camp_CampHall), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Camp_Mission)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Camp), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Camp_CampHall) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Camp_MemberHall)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Level), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Level_Normal) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Level_Elite)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_DailyAcitivity), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Reward_Activity)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_CustomBattle), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_CustomBattle_BountyMode) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_CustomBattle_CustomMode)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_PVPAcitivity), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Qualifying) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_HeroBattle) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Activity_CaptainPVP) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_WeekNest) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_TeamLeague) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_CustomBattle) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_HallFame)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_MobaAcitivity), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_PVPAcitivity)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_SystemActivity), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_SystemActivity_Other)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Welfare), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare_GiftBag) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare_StarFund) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare_FirstRechange) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_ReceiveEnergy) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Reward_Login) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSyS_Welfare_RewardBack) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare_KingdomPrivilege_Court) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare_NiceGirl) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare_MoneyTree)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_SpriteSystem), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_SpriteSystem_Main) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_SpriteSystem_Fight) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_SpriteSystem_Resolve) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_SpriteSystem_Shop)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_GameMall), this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GameMall_Diamond) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GameMall_Dragon) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_GameMall_Pay) || this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Mall)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.Xsys_Backflow), this.GetSysRedPointStateConsiderBlock(XSysDefine.Xsys_Backflow_LavishGift) || this.GetSysRedPointStateConsiderBlock(XSysDefine.Xsys_Backflow_Target) || this.GetSysRedPointStateConsiderBlock(XSysDefine.Xsys_Backflow_Task)); + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Friends), DlgBase.singleton.Redpoint); + for (int i = 0; i < this.sysRedPointRelative.Length; i++) + { + List list = this.sysRedPointRelative[i]; + bool flag = list != null; + if (flag) + { + for (int j = 0; j < list.Count; j++) + { + XSysDefine xsysDefine = list[j]; + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(xsysDefine), this.GetSysRedPointStateConsiderBlock(xsysDefine) || this.GetSysRedPointStateConsiderBlock((XSysDefine)i)); + } + } + } + if (sys <= XSysDefine.XSys_GameMall) + { + if (sys <= XSysDefine.XSys_Strong) + { + if (sys <= XSysDefine.XSys_Horse) + { + if (sys - XSysDefine.XSys_Item > 1 && sys != XSysDefine.XSys_Horse) + { + return; + } + } + else + { + if (sys == XSysDefine.XSys_Auction) + { + goto IL_7E3; + } + if (sys != XSysDefine.XSys_CardCollect) + { + if (sys != XSysDefine.XSys_Strong) + { + return; + } + goto IL_7E3; + } + } + } + else if (sys <= XSysDefine.XSys_Rank) + { + if (sys == XSysDefine.XSys_Reward) + { + goto IL_7E3; + } + if (sys != XSysDefine.XSys_Rank) + { + return; + } + } + else if (sys != XSysDefine.XSys_EquipCreate) + { + if (sys != XSysDefine.XSys_Spectate && sys != XSysDefine.XSys_GameMall) + { + return; + } + goto IL_7E3; + } + } + else if (sys <= XSysDefine.XSys_Welfare) + { + if (sys <= XSysDefine.XSys_Friends) + { + if (sys == XSysDefine.XSys_Carnival) + { + goto IL_7E3; + } + if (sys != XSysDefine.XSys_Friends) + { + return; + } + } + else + { + if (sys == XSysDefine.XSys_SevenActivity) + { + goto IL_7E3; + } + if (sys != XSysDefine.XSys_Title) + { + if (sys != XSysDefine.XSys_Welfare) + { + return; + } + goto IL_7E3; + } + } + } + else if (sys <= XSysDefine.XSys_OperatingActivity) + { + if (sys != XSysDefine.XSys_Welfare_FirstRechange && sys != XSysDefine.Xsys_Backflow && sys != XSysDefine.XSys_OperatingActivity) + { + return; + } + goto IL_7E3; + } + else if (sys != XSysDefine.XSys_NPCFavor) + { + if (sys == XSysDefine.XSys_ThemeActivity) + { + goto IL_7E3; + } + if (sys != XSysDefine.XSys_SpriteSystem) + { + return; + } + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.CalMenuSwitchBtnRedPointState(); + } + return; + IL_7E3: + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.CalH2SwitchBtnRedPointState(null); + } + } + + public void AttachSysRedPointRelative(int sys, int childSys, bool bImmCalculate) + { + int num = XFastEnumIntEqualityComparer.ToInt((XSysDefine)childSys); + bool flag = num >= 0 && num < this.sysRedPointRelative.Length; + if (flag) + { + List list = this.sysRedPointRelative[num]; + bool flag2 = list == null; + if (flag2) + { + list = new List(); + this.sysRedPointRelative[num] = list; + } + bool flag3 = !list.Contains((XSysDefine)sys); + if (flag3) + { + list.Add((XSysDefine)sys); + } + } + if (bImmCalculate) + { + this.RecalculateRedPointState((XSysDefine)sys, true); + } + } + + public void AttachSysRedPointRelativeUI(int sys, GameObject go) + { + this.sysRedPointRelativeUI[sys] = go; + bool flag = null != go; + if (flag) + { + go.SetActive(this.redPointState.IsFlag(sys)); + } + } + + public void DetachSysRedPointRelative(int sys) + { + this.sysRedPointRelative[sys] = null; + } + + public void DetachSysRedPointRelativeUI(int sys) + { + this.sysRedPointRelativeUI[sys] = null; + } + + public void ForceUpdateSysRedPointImmediately(int sys, bool redpoint) + { + this.redPointState.SetFlag(sys, redpoint); + this.RecalculateRedPointState((XSysDefine)sys, true); + } + + public void UpdateRedPointOnHallUI(XSysDefine sys) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetSystemRedPointState(sys, this.GetSysRedPointStateConsiderBlock(sys)); + if (sys <= XSysDefine.XSys_SuperRisk) + { + if (sys <= XSysDefine.XSys_Bag) + { + if (sys != XSysDefine.XSys_Char && sys != XSysDefine.XSys_Bag) + { + return; + } + } + else if (sys != XSysDefine.XSys_Design && sys != XSysDefine.XSys_EquipCreate) + { + if (sys != XSysDefine.XSys_SuperRisk) + { + return; + } + goto IL_159; + } + DlgBase.singleton.SetSystemRedPointState(XSysDefine.XSys_Character, this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Character)); + return; + } + if (sys <= XSysDefine.XSys_Pet_Pairs) + { + if (sys != XSysDefine.XSys_PK) + { + switch (sys) + { + case XSysDefine.XSys_GuildHall: + case XSysDefine.XSys_GuildRelax: + case XSysDefine.XSys_GuildDragon: + case XSysDefine.XSys_GuildPvp: + case XSysDefine.XSys_GuildMine: + { + DlgBase.singleton.SetSystemRedPointState(XSysDefine.XSys_Guild, this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Guild)); + bool flag2 = sys == XSysDefine.XSys_GuildDragon; + if (flag2) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildBossMainInterface, true); + } + return; + } + case (XSysDefine)83: + case (XSysDefine)84: + case XSysDefine.XSys_GuildRedPacket: + return; + default: + if (sys != XSysDefine.XSys_Pet_Pairs) + { + return; + } + break; + } + } + } + else + { + if (sys == XSysDefine.XSys_Activity_WorldBoss) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_Activity_WorldBoss, true); + return; + } + if (sys != XSysDefine.XSys_Welfare && sys - XSysDefine.XSys_Welfare_GiftBag > 9) + { + return; + } + DlgBase.singleton.SetSystemRedPointState(XSysDefine.XSys_Welfare, this.GetSysRedPointStateConsiderBlock(XSysDefine.XSys_Welfare)); + return; + } + IL_159: + DlgBase.singleton.RefreshH5ButtonState(sys, true); + } + } + + public void UpdateSubSysRedPointsUI(XSysDefine sys) + { + int num = XFastEnumIntEqualityComparer.ToInt(sys); + bool flag = num >= 0 && num < this.subSysRedPoint.Length; + if (flag) + { + XSubSysRedPointMgr xsubSysRedPointMgr = this.subSysRedPoint[XFastEnumIntEqualityComparer.ToInt(sys)]; + bool flag2 = xsubSysRedPointMgr != null; + if (flag2) + { + xsubSysRedPointMgr.UpdateRedPointUI(); + } + } + } + + public void UpdateRelativeSysRedPointsUI(XSysDefine sys) + { + int num = XFastEnumIntEqualityComparer.ToInt(sys); + bool flag = num >= 0 && num < this.sysRedPointRelativeUI.Length; + if (flag) + { + GameObject gameObject = this.sysRedPointRelativeUI[num]; + bool flag2 = gameObject; + if (flag2) + { + gameObject.SetActive(this.redPointState.IsFlag(num)); + } + } + } + + public void RegisterSubSysRedPointMgr(XSysDefine sys, XSubSysRedPointMgr mgr) + { + int num = XFastEnumIntEqualityComparer.ToInt(sys); + bool flag = num >= 0 && num < this.sysRedPointRelativeUI.Length; + if (flag) + { + this.subSysRedPoint[num] = mgr; + } + } + + public void OnLeaveScene(bool transfer) + { + for (int i = 0; i < this.subSysRedPoint.Length; i++) + { + this.subSysRedPoint[i] = null; + } + } + + public bool GetSysRedPointStateConsiderBlock(XSysDefine sys) + { + int num = XFastEnumIntEqualityComparer.ToInt(sys); + bool flag = num >= 0 && num < this.sysRedPointRelativeUI.Length; + bool result; + if (flag) + { + bool flag2 = this.redPointState.IsFlag(num); + List list = this.noRedPointLevel[num]; + bool flag3 = list == null; + if (flag3) + { + result = flag2; + } + else + { + result = (flag2 && (this.bStopBlockRedPoint || !list.Contains(this.m_PlayerLevel))); + } + } + else + { + result = false; + } + return result; + } + + public bool GetSysRedPointState(int sys) + { + return this.GetSysRedPointState((XSysDefine)sys); + } + + public bool GetSysRedPointState(XSysDefine sys) + { + return this.redPointState.IsFlag(XFastEnumIntEqualityComparer.ToInt(sys)); + } + + public void SetSysRedState(XSysDefine sys, bool bState) + { + bool flag = this.redPointState != null; + if (flag) + { + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(sys), bState); + } + } + + public void SetSysRedPointState(XSysDefine sys, bool bState) + { + bool flag = !this.IsSystemOpened(sys); + if (flag) + { + bState = false; + } + this.redPointState.SetFlag(XFastEnumIntEqualityComparer.ToInt(sys), bState); + } + + public void OpenSystem(int sys) + { + this.OpenSystem((XSysDefine)sys, 0UL); + } + + public void OpenSystem(XSysDefine sys, ulong param = 0UL) + { + bool flag = !this.IsSystemOpened(sys); + if (!flag) + { + XSysDefine xsysDefine = sys; + if (xsysDefine <= XSysDefine.XSys_WeekNest) + { + if (xsysDefine <= XSysDefine.XSys_Bag_Item) + { + if (xsysDefine <= XSysDefine.XSys_Level_Elite) + { + if (xsysDefine <= XSysDefine.XSys_MilitaryRank) + { + switch (xsysDefine) + { + case XSysDefine.XSys_Level: + DlgBase.singleton.FadeShow(); + return; + case XSysDefine.XSys_Item: + goto IL_834; + case XSysDefine.XSys_Skill: + break; + case XSysDefine.XSys_Char: + case XSysDefine.XSys_Bag: + case XSysDefine.XSys_TShow: + case XSysDefine.XSys_TShowRule: + case XSysDefine.XSys_Camp: + case XSysDefine.XSys_Wifi: + case XSysDefine.XSys_Design: + case XSysDefine.XSys_SuperReward: + case XSysDefine.XSys_Draw: + case XSysDefine.XSys_Mall: + case XSysDefine.XSys_Target: + case (XSysDefine)36: + case (XSysDefine)38: + case XSysDefine.XSys_OnlineReward: + case XSysDefine.XSys_Setting: + case XSysDefine.XSys_Rank: + case XSysDefine.XSys_LevelReward: + case (XSysDefine)43: + case XSysDefine.XSys_SystemActivity: + case XSysDefine.XSys_LevelSeal: + case XSysDefine.XSys_Arena: + case (XSysDefine)53: + case XSysDefine.XSys_MulActivity: + case XSysDefine.XSys_ExcellentLive: + case (XSysDefine)66: + case XSysDefine.XSys_WeekShareReward: + case XSysDefine.XSys_DungeonShareReward: + case XSysDefine.XSys_OtherPlayerInfo: + case XSysDefine.XSys_Chat: + case XSysDefine.XSys_Maquee: + case XSysDefine.XSys_SendFlower: + goto IL_127F; + case XSysDefine.XSys_Horse: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Fashion: + goto IL_C2B; + case XSysDefine.XSys_Guild: + goto IL_B85; + case XSysDefine.XSys_Recycle: + goto IL_A67; + case XSysDefine.XSys_Confession: + return; + case XSysDefine.XSys_Auction: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_FlowerRank: + DlgBase.singleton.ShowRank(sys); + return; + case XSysDefine.XSys_CardCollect: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Mail: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Mail_System); + return; + case XSysDefine.XSys_Strong: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Reward: + case XSysDefine.XSys_ServerActivity: + goto IL_C42; + case XSysDefine.XSys_ReceiveEnergy: + goto IL_10A0; + case XSysDefine.XSys_EquipCreate: + goto IL_7A1; + case XSysDefine.XSys_BossRush: + { + XBossBushDocument xbossBushDocument = XSingleton.singleton.Doc.GetXComponent(XBossBushDocument.uuID) as XBossBushDocument; + xbossBushDocument.ParseRefresh(); + xbossBushDocument.SendQuery(BossRushReqStatus.BOSSRUSH_REQ_BASEDATA); + return; + } + case XSysDefine.XSys_SuperRisk: + DlgBase.singleton.Show(false, 0); + return; + case XSysDefine.XSys_DragonCrusade: + { + XDragonCrusadeDocument xdragonCrusadeDocument = XSingleton.singleton.Doc.GetXComponent(XDragonCrusadeDocument.uuID) as XDragonCrusadeDocument; + xdragonCrusadeDocument.ReadyOpen(); + return; + } + case XSysDefine.XSys_Activity: + case XSysDefine.XSys_DailyAcitivity: + goto IL_DF7; + case XSysDefine.XSys_Qualifying: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Spectate: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_PVPAcitivity: + case XSysDefine.XSys_MobaAcitivity: + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + case XSysDefine.XSys_Money: + DlgBase.singleton.ShowPurchase(ItemEnum.DIAMOND); + return; + case XSysDefine.XSys_Coin: + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.GOLD); + return; + case XSysDefine.XSys_Power: + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.FATIGUE); + return; + case XSysDefine.XSys_DragonCoin: + DlgBase.singleton.ReqQuickCommonPurchase(ItemEnum.DRAGON_COIN); + return; + case XSysDefine.XSys_GameMall: + goto IL_E98; + case XSysDefine.XSys_Carnival: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Friends: + DlgBase.singleton.OnShowFriendDlg(); + return; + case XSysDefine.XSys_Mentorship: + DlgBase.singleton.ShowTab(XSysDefine.XSys_Mentorship); + return; + default: + switch (xsysDefine) + { + case XSysDefine.XSys_GuildHall: + goto IL_BD0; + case XSysDefine.XSys_GuildRelax: + case XSysDefine.XSys_GuildDragon: + case XSysDefine.XSys_GuildMine: + goto IL_B85; + case (XSysDefine)83: + case (XSysDefine)84: + case XSysDefine.XSys_GuildRedPacket: + case XSysDefine.XSys_CrossGVG: + case XSysDefine.XSys_GayValley: + case XSysDefine.XSys_GayValleyManager: + case XSysDefine.XSys_SevenActivity: + goto IL_127F; + case XSysDefine.XSys_GuildPvp: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Team: + DlgBase.singleton.ShowTeamView(); + return; + case XSysDefine.XSys_Title: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Task: + DlgBase.singleton.TryShowTaskView(); + return; + default: + if (xsysDefine != XSysDefine.XSys_MilitaryRank) + { + goto IL_127F; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + break; + } + } + else + { + if (xsysDefine == XSysDefine.XSys_Recharge) + { + DlgBase.singleton.ShowPurchase(ItemEnum.DIAMOND); + return; + } + if (xsysDefine == XSysDefine.XSys_Level_Normal) + { + DlgBase.singleton.SetAutoSelectScene(0, 0, 0u); + DlgBase.singleton.FadeShow(); + return; + } + if (xsysDefine != XSysDefine.XSys_Level_Elite) + { + goto IL_127F; + } + DlgBase.singleton.SetAutoSelectScene(0, 0, 1u); + DlgBase.singleton.FadeShow(); + return; + } + } + else if (xsysDefine <= XSysDefine.XSys_Char_Emblem) + { + switch (xsysDefine) + { + case XSysDefine.XSys_Item_Equip: + case XSysDefine.XSys_Item_Jade: + goto IL_834; + case XSysDefine.XSys_Item_Enhance: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Item_Equip); + return; + default: + if (xsysDefine - XSysDefine.XSys_Skill_Levelup > 1) + { + if (xsysDefine != XSysDefine.XSys_Char_Emblem) + { + goto IL_127F; + } + goto IL_834; + } + break; + } + } + else + { + switch (xsysDefine) + { + case XSysDefine.XSys_Home: + case XSysDefine.XSys_Home_Cooking: + case XSysDefine.XSys_Home_Fishing: + case XSysDefine.XSys_Home_Feast: + case XSysDefine.XSys_Home_MyHome: + { + DlgBase.singleton.ShowWorkGameSystem(sys); + bool flag2 = XSingleton.singleton.GameCamera != null && XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag2) + { + XSingleton.singleton.GameCamera.UnityCamera.enabled = true; + } + return; + } + case XSysDefine.XSys_Home_Plant: + case XSysDefine.XSys_Home_HomeFriends: + case (XSysDefine)157: + case (XSysDefine)158: + case XSysDefine.XSys_Horse_LearnSkill: + goto IL_127F; + case XSysDefine.XSys_Fashion_Fashion: + goto IL_C2B; + default: + if (xsysDefine - XSysDefine.XSys_Recycle_Equip <= 1) + { + goto IL_A67; + } + if (xsysDefine != XSysDefine.XSys_Bag_Item) + { + goto IL_127F; + } + goto IL_834; + } + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + IL_A67: + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + IL_C2B: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Fashion_Fashion); + return; + } + if (xsysDefine <= XSysDefine.XSys_Artifact_Refined) + { + if (xsysDefine <= XSysDefine.XSys_Design_Designation) + { + if (xsysDefine - XSysDefine.XSys_CustomBattle <= 2) + { + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + } + if (xsysDefine == XSysDefine.XSys_WeekEndNest) + { + DlgBase.singleton.SetVisible(true, true); + return; + } + if (xsysDefine != XSysDefine.XSys_Design_Designation) + { + goto IL_127F; + } + goto IL_834; + } + else + { + if (xsysDefine == XSysDefine.XSys_Design_Achieve) + { + goto IL_C42; + } + switch (xsysDefine) + { + case XSysDefine.XSys_Strong_Brief: + DlgBase.singleton.SetVisible(true, true); + return; + case XSysDefine.XSys_Reward_Achivement: + case (XSysDefine)352: + case (XSysDefine)354: + case (XSysDefine)359: + goto IL_127F; + case XSysDefine.XSys_Reward_Activity: + goto IL_DF7; + case XSysDefine.XSys_Reward_Login: + goto IL_10A0; + case XSysDefine.XSys_Reward_Dragon: + case XSysDefine.XSys_Reward_Target: + goto IL_C42; + case XSysDefine.XSys_Prerogative: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_PrerogativeShop: + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_PrerogativeShop, 0UL); + return; + case XSysDefine.XSys_AbyssParty: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + default: + switch (xsysDefine) + { + case XSysDefine.XSys_Artifact: + goto IL_834; + case XSysDefine.XSys_Artifact_Comepose: + case XSysDefine.XSys_Artifact_Recast: + case XSysDefine.XSys_Artifact_Fuse: + case XSysDefine.XSys_Artifact_Inscription: + case XSysDefine.XSys_Artifact_Refined: + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + case XSysDefine.XSys_Artifact_Atlas: + case XSysDefine.XSys_Artifact_DeityStove: + goto IL_127F; + default: + goto IL_127F; + } + break; + } + } + } + else if (xsysDefine <= XSysDefine.XSys_EquipCreate_ArtifactSet) + { + if (xsysDefine - XSysDefine.XSys_Flower_Rank_Today <= 3 || xsysDefine == XSysDefine.XSys_Flower_Rank_Activity) + { + DlgBase.singleton.ShowFlowerRank(sys); + return; + } + if (xsysDefine - XSysDefine.XSys_EquipCreate_EquipSet > 2) + { + goto IL_127F; + } + } + else if (xsysDefine <= XSysDefine.XSys_InGameAD) + { + switch (xsysDefine) + { + case XSysDefine.XSys_Activity_Nest: + DlgBase.singleton.ShowView(-1); + return; + case XSysDefine.XSys_Activity_SmallMonster: + case XSysDefine.XSys_Activity_Fashion: + case XSysDefine.XSys_Activity_ExpeditionFrame: + DlgBase.singleton.ShowSubSystem(XSysDefine.XSys_Activity); + return; + case XSysDefine.XSys_Activity_BossRush: + case XSysDefine.XSys_BigMeleeEnd: + case (XSysDefine)534: + case (XSysDefine)535: + case (XSysDefine)536: + case (XSysDefine)537: + case (XSysDefine)538: + case (XSysDefine)539: + case XSysDefine.XSys_Shanggu: + case (XSysDefine)543: + case (XSysDefine)544: + case (XSysDefine)545: + case (XSysDefine)546: + case (XSysDefine)547: + case (XSysDefine)548: + case (XSysDefine)549: + case (XSysDefine)550: + case XSysDefine.XSys_MulActivity_SkyArenaEnd: + case (XSysDefine)556: + case (XSysDefine)557: + case (XSysDefine)558: + case (XSysDefine)559: + case XSysDefine.XSys_Welfare: + case (XSysDefine)561: + case XSysDefine.XSys_Welfare_NiceGirl: + case (XSysDefine)573: + case (XSysDefine)574: + case (XSysDefine)575: + case (XSysDefine)576: + case (XSysDefine)577: + case (XSysDefine)578: + case (XSysDefine)579: + case XSysDefine.Xsys_Backflow_Dailylogin: + case XSysDefine.Xsys_Backflow_GiftBag: + case XSysDefine.Xsys_Server_Two: + goto IL_127F; + case XSysDefine.XSys_Activity_WorldBoss: + DlgBase.singleton.ShowView(); + return; + case XSysDefine.XSys_Activity_DragonNest: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Activity_TeamTower: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Activity_CaptainPVP: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Activity_GoddessTrial: + case XSysDefine.XSys_EndlessAbyss: + { + bool flag3 = sys == XSysDefine.XSys_EndlessAbyss; + TeamLevelType type; + if (flag3) + { + type = TeamLevelType.TeamLevelEndlessAbyss; + } + else + { + type = TeamLevelType.TeamLevelGoddessTrial; + } + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(type); + bool flag4 = expeditionList != null && expeditionList.Count > 0; + if (flag4) + { + XLevelSealDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + for (int i = 0; i < expeditionList.Count; i++) + { + bool flag5 = specificDocument2.SealType == expeditionList[i].LevelSealType; + if (flag5) + { + specificDocument.ExpeditionId = expeditionList[i].DNExpeditionID; + break; + } + } + } + XTeamDocument specificDocument3 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument3.SetAndMatch(specificDocument.ExpeditionId); + return; + } + case XSysDefine.XSys_Activity_TeamTowerSingle: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_BigMelee: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Battlefield: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Activity_WeekDragonNest: + DlgBase.singleton.SetVisible(true, true); + return; + case XSysDefine.XSys_MulActivity_MulVoiceQA: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_Activity); + return; + case XSysDefine.XSys_MulActivity_SkyArena: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_MulActivity_Race: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_MulActivity_WeekendParty: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Welfare_GiftBag: + case XSysDefine.XSys_Welfare_StarFund: + case XSysDefine.XSys_Welfare_FirstRechange: + case XSysDefine.XSyS_Welfare_RewardBack: + case XSysDefine.XSys_Welfare_MoneyTree: + case XSysDefine.XSys_Welfare_KingdomPrivilege: + case XSysDefine.XSys_Welfare_KingdomPrivilege_Court: + case XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer: + case XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce: + case XSysDefine.XSys_Welfare_YyMall: + goto IL_10A0; + case XSysDefine.Xsys_Backflow: + case XSysDefine.Xsys_Backflow_LavishGift: + case XSysDefine.Xsys_Backflow_NewServerReward: + case XSysDefine.Xsys_Backflow_LevelUp: + case XSysDefine.Xsys_Backflow_Task: + case XSysDefine.Xsys_Backflow_Target: + case XSysDefine.Xsys_Backflow_Privilege: + goto IL_1248; + case XSysDefine.Xsys_TaJieHelp: + DlgBase.singleton.SetVisible(true, true); + return; + default: + { + if (xsysDefine != XSysDefine.XSys_InGameAD) + { + goto IL_127F; + } + bool flag6 = XCampDuelDocument.Doc.curStage == 1; + if (flag6) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CAMPDUEL_END_TIP"), "fece00"); + } + return; + } + } + } + else + { + if (xsysDefine - XSysDefine.XSys_OperatingActivity <= 1) + { + goto IL_A88; + } + if (xsysDefine != XSysDefine.XSys_WeekNest) + { + goto IL_127F; + } + DlgBase.singleton.SetVisible(true, true); + return; + } + IL_7A1: + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + IL_834: + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + IL_C42: + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + IL_DF7: + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + IL_10A0: + DlgBase.singleton.Show(sys); + return; + } + if (xsysDefine <= XSysDefine.XSys_GuildQualifier) + { + if (xsysDefine <= XSysDefine.XSys_GuildHall_Member) + { + if (xsysDefine <= XSysDefine.XSys_NPCFavor) + { + if (xsysDefine != XSysDefine.XSys_CampDuel) + { + switch (xsysDefine) + { + case XSysDefine.XSys_GameMall_Diamond: + goto IL_E98; + case XSysDefine.XSys_GameMall_Dragon: + { + XGameMallDocument specificDocument4 = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument4.currItemID = (int)param; + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_GameMall_Dragon); + return; + } + case XSysDefine.XSys_GameMall_Pay: + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_GameMall_Pay); + return; + case XSysDefine.XSys_GameMall_DWeek: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.WEEK, param); + return; + case XSysDefine.XSys_GameMall_DCost: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.COST, param); + return; + case XSysDefine.XSys_GameMall_DLongyu: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.LONGYU, param); + return; + case XSysDefine.XSys_GameMall_DFashion: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.FASHION, param); + return; + case XSysDefine.XSys_GameMall_DRide: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.RIDE, param); + return; + case XSysDefine.XSys_GameMall_DGift: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.GIFT, param); + return; + case XSysDefine.XSys_GameMall_DVip: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.VIP, param); + return; + case XSysDefine.XSys_GameMall_GWeek: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Dragon, MallType.WEEK, param); + return; + case XSysDefine.XSys_GameMall_GCost: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Dragon, MallType.COST, param); + return; + case XSysDefine.XSys_GameMall_GLongyu: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Dragon, MallType.LONGYU, param); + return; + case XSysDefine.XSys_GameMall_GRide: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Dragon, MallType.RIDE, param); + return; + case XSysDefine.XSys_GameMall_GGift: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Dragon, MallType.GIFT, param); + return; + case XSysDefine.XSys_GameMall_GEquip: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Dragon, MallType.EQUIP, param); + return; + case XSysDefine.Xsys_GameMall_DEquip: + DlgBase.singleton.ShowMall(XSysDefine.XSys_GameMall_Diamond, MallType.EQUIP, param); + return; + default: + switch (xsysDefine) + { + case XSysDefine.XSys_Partner: + DlgBase.singleton.ShowTab(sys); + return; + case XSysDefine.XSys_Parner_Liveness: + goto IL_127F; + case XSysDefine.XSys_Wedding: + DlgBase.singleton.ShowTab(sys); + return; + case XSysDefine.XSys_NPCFavor: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + default: + goto IL_127F; + } + break; + } + } + } + else + { + switch (xsysDefine) + { + case XSysDefine.XSys_Pandora730: + case XSysDefine.XSys_Pandora731: + case XSysDefine.XSys_Pandora732: + case XSysDefine.XSys_Pandora733: + case XSysDefine.XSys_Pandora734: + case XSysDefine.XSys_Pandora735: + case XSysDefine.XSys_Pandora736: + case XSysDefine.XSys_Pandora737: + case XSysDefine.XSys_Pandora738: + case XSysDefine.XSys_Pandora739: + case XSysDefine.XSys_Pandora740: + case XSysDefine.XSys_Pandora741: + case XSysDefine.XSys_Pandora742: + case XSysDefine.XSys_Pandora743: + case XSysDefine.XSys_Pandora744: + case XSysDefine.XSys_Pandora745: + case XSysDefine.XSys_Pandora746: + case XSysDefine.XSys_Pandora747: + case XSysDefine.XSys_Pandora748: + case XSysDefine.XSys_Pandora749: + case XSysDefine.XSys_PandoraTest: + break; + case (XSysDefine)751: + case (XSysDefine)752: + case (XSysDefine)753: + case (XSysDefine)754: + case (XSysDefine)755: + case (XSysDefine)756: + case (XSysDefine)757: + case (XSysDefine)758: + case (XSysDefine)759: + goto IL_127F; + case XSysDefine.XSys_GroupRecruit: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_GroupRecruitAuthorize: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + default: + if (xsysDefine - XSysDefine.XSys_GuildHall_SignIn > 1 && xsysDefine != XSysDefine.XSys_GuildHall_Member) + { + goto IL_127F; + } + goto IL_BD0; + } + } + } + else if (xsysDefine <= XSysDefine.XSys_GuildDungeon_SmallMonter) + { + switch (xsysDefine) + { + case XSysDefine.XSys_GuildRelax_Joker: + goto IL_BD0; + case XSysDefine.XSys_GuildRelax_VoiceQA: + goto IL_B85; + case XSysDefine.XSys_GuildRelax_JokerMatch: + case XSysDefine.XSys_GuildLab_Consider: + case XSysDefine.XSys_GuildLab_Build: + goto IL_127F; + case XSysDefine.XSys_GuildGrowthHunting: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_GuildGrowthDonate: + DlgBase.singleton.DonateType = GuildDonateType.GrowthDonate; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + default: + { + if (xsysDefine == XSysDefine.XSys_GuildBoon_RedPacket) + { + goto IL_BD0; + } + if (xsysDefine != XSysDefine.XSys_GuildDungeon_SmallMonter) + { + goto IL_127F; + } + XGuildDocument specificDocument5 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag7 = specificDocument5.CheckInGuild(); + if (flag7) + { + bool flag8 = XGuildDocument.GuildConfig.GetUnlockLevel(sys) <= specificDocument5.Level && this.IsSystemOpened(sys); + if (flag8) + { + XGuildSmallMonsterDocument specificDocument6 = XDocuments.GetSpecificDocument(XGuildSmallMonsterDocument.uuID); + bool flag9 = specificDocument6.CheckEnterLevel(); + if (flag9) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + else + { + bool flag10 = !DlgBase.singleton.IsVisible(); + if (flag10) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + return; + } + } + } + else + { + if (xsysDefine == XSysDefine.XSys_GuildChallenge) + { + goto IL_B85; + } + if (xsysDefine == XSysDefine.XSys_WorldBoss_EndRank) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + if (xsysDefine != XSysDefine.XSys_GuildQualifier) + { + goto IL_127F; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + } + else if (xsysDefine <= XSysDefine.XSys_HeroBattle) + { + if (xsysDefine <= XSysDefine.XSys_GuildWeeklyBountyTask) + { + if (xsysDefine == XSysDefine.XSys_GuildMineMain) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + switch (xsysDefine) + { + case XSysDefine.XSys_GuildDailyTask: + { + bool flag11 = !this.GoToTakeDailyTask(); + if (flag11) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + XSingleton.singleton.CloseAllUI(); + } + return; + } + case XSysDefine.XSys_GuildDialyDonate: + XGuildDonateDocument.Doc.ShowViewWithType(GuildDonateType.DailyDonate); + return; + case XSysDefine.XSys_GuildWeeklyDonate: + XGuildDonateDocument.Doc.ShowViewWithType(GuildDonateType.WeeklyDonate); + return; + case (XSysDefine)889: + goto IL_127F; + case XSysDefine.XSys_GuildInherit: + goto IL_BD0; + default: + switch (xsysDefine) + { + case XSysDefine.XSys_JockerKing: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_Team_TeamList: + case XSysDefine.XSys_Team_MyTeam: + goto IL_127F; + case XSysDefine.XSys_Team_Invited: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_GuildWeeklyBountyTask: + { + bool flag12 = !this.GoToTakeWeeklyTask(); + if (flag12) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + XSingleton.singleton.CloseAllUI(); + } + return; + } + default: + goto IL_127F; + } + break; + } + } + else + { + switch (xsysDefine) + { + case XSysDefine.xSys_Mysterious: + DlgBase.singleton.SetVisible(true, true); + return; + case (XSysDefine)928: + case (XSysDefine)929: + case XSysDefine.XSys_SpriteSystem_Detail: + goto IL_127F; + case XSysDefine.XSys_SpriteSystem: + case XSysDefine.XSys_SpriteSystem_Main: + case XSysDefine.XSys_SpriteSystem_Lottery: + case XSysDefine.XSys_SpriteSystem_Fight: + case XSysDefine.XSys_SpriteSystem_Resolve: + case XSysDefine.XSys_SpriteSystem_Shop: + DlgBase.singleton.ShowWorkGameSystem(sys); + return; + default: + if (xsysDefine == XSysDefine.XSys_Link_Share) + { + XScreenShotShareDocument.DoShowShare(); + return; + } + if (xsysDefine != XSysDefine.XSys_HeroBattle) + { + goto IL_127F; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + } + } + else if (xsysDefine <= XSysDefine.XSys_Moba) + { + if (xsysDefine == XSysDefine.XSys_TeamLeague) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + if (xsysDefine == XSysDefine.XSys_ProfessionChange) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + if (xsysDefine != XSysDefine.XSys_Moba) + { + goto IL_127F; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + else if (xsysDefine <= XSysDefine.XSys_Rename_Guild) + { + if (xsysDefine == XSysDefine.XSys_Rename_Player) + { + DlgBase.singleton.ShowRenameSystem(XRenameDocument.RenameType.PLAYER_NAME_VOLUME); + return; + } + if (xsysDefine != XSysDefine.XSys_Rename_Guild) + { + goto IL_127F; + } + DlgBase.singleton.ShowRenameSystem(XRenameDocument.RenameType.GUILD_NAME_VOLUME); + return; + } + else + { + if (xsysDefine == XSysDefine.XSys_BackFlowMall) + { + goto IL_1248; + } + if (xsysDefine != XSysDefine.XSys_Rename_DragonGuild) + { + goto IL_127F; + } + DlgBase.singleton.ShowRenameSystem(XRenameDocument.RenameType.DRAGON_GUILD_NAME_VOLUME); + return; + } + IL_A88: + DlgBase.singleton.Show(sys, false); + return; + IL_B85: + XGuildDocument specificDocument7 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + GuildSceneState guildSceneState = specificDocument7.TryEnterGuildScene(); + bool flag13 = guildSceneState == GuildSceneState.GSS_InGuildScene; + if (flag13) + { + this.OpenGuildSystem(sys); + } + else + { + bool flag14 = guildSceneState == GuildSceneState.GSS_NotGuildScene; + if (flag14) + { + XSingleton.singleton.CacheUI(sys, EXStage.Hall); + } + } + return; + IL_BD0: + XGuildDocument specificDocument8 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument8.bInGuild; + if (bInGuild) + { + this.OpenGuildSystem(sys); + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + return; + IL_E98: + XGameMallDocument specificDocument9 = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument9.currItemID = (int)param; + DlgBase.singleton.ShowWorkGameSystem(XSysDefine.XSys_GameMall_Diamond); + return; + IL_1248: + DlgBase.singleton.ShowHandler(sys); + return; + IL_127F: + XNormalShopDocument specificDocument10 = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + bool flag15 = specificDocument10.IsShop(sys); + if (flag15) + { + DlgBase.singleton.ShowShopSystem(sys, 0UL); + } + else + { + XSingleton.singleton.AddErrorLog("System jump not finished: ", sys.ToString(), null, null, null, null); + } + } + } + + public void OpenGuildSystem(XSysDefine sys) + { + if (sys <= XSysDefine.XSys_GuildRelax_JokerMatch) + { + if (sys <= XSysDefine.XSys_GuildHall_Member) + { + switch (sys) + { + case XSysDefine.XSys_GuildHall: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_GuildRelax: + break; + case (XSysDefine)83: + case (XSysDefine)84: + case XSysDefine.XSys_GuildRedPacket: + return; + case XSysDefine.XSys_GuildDragon: + DlgBase.singleton.ShowGuildBossView(); + return; + case XSysDefine.XSys_GuildPvp: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_GuildMine: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_CrossGVG: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + default: + switch (sys) + { + case XSysDefine.XSys_GuildHall_SignIn: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_GuildHall_Approve: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + case XSysDefine.XSys_GuildHall_Skill: + return; + case XSysDefine.XSys_GuildHall_Member: + goto IL_161; + default: + return; + } + break; + } + } + else + { + if (sys == XSysDefine.XSys_GuildRelax_Joker) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + if (sys - XSysDefine.XSys_GuildRelax_VoiceQA > 1) + { + return; + } + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + if (sys <= XSysDefine.XSys_GuildChallenge) + { + if (sys == XSysDefine.XSys_GuildBoon_RedPacket) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + if (sys != XSysDefine.XSys_GuildChallenge) + { + return; + } + return; + } + else + { + if (sys == XSysDefine.XSys_GuildQualifier) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + if (sys != XSysDefine.XSys_GuildInherit) + { + if (sys != XSysDefine.XSys_GuildTerritory) + { + return; + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return; + } + } + IL_161: + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + + private bool GoToTakeDailyTask() + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + XTaskRecord taskRecord = specificDocument.TaskRecord; + for (int i = 0; i < taskRecord.Tasks.Count; i++) + { + bool flag = taskRecord.Tasks[i].Status == TaskStatus.TaskStatus_CanTake && taskRecord.Tasks[i].TableData.TaskType == 4u; + if (flag) + { + specificDocument.DoTask(taskRecord.Tasks[i].ID); + return true; + } + } + return false; + } + + private bool GoToTakeWeeklyTask() + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + XTaskRecord taskRecord = specificDocument.TaskRecord; + for (int i = 0; i < taskRecord.Tasks.Count; i++) + { + bool flag = taskRecord.Tasks[i].Status == TaskStatus.TaskStatus_CanTake && taskRecord.Tasks[i].TableData.TaskType == 7u; + if (flag) + { + specificDocument.DoTask(taskRecord.Tasks[i].ID); + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGameSysMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XGameSysMgr.cs.meta new file mode 100644 index 00000000..893f4ff3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGameSysMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e30e49dd2058a3b46a4b5151aa7d53bd +timeCreated: 1611404730 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGameUI.cs b/Client/Assets/Scripts/XMainClient/XGameUI.cs new file mode 100644 index 00000000..58452c23 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGameUI.cs @@ -0,0 +1,506 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.Battle; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XGameUI : XSingleton, IXGameUI, IXInterface + { + public int Base_UI_Width { get; set; } + + public int Base_UI_Height { get; set; } + + public bool Deprecated { get; set; } + + public GameObject DlgControllerTpl + { + get + { + return this._dlgControllerTpl; + } + } + + public GameObject[] buttonTpl + { + get + { + return this._buttonTpl; + } + } + + public GameObject[] spriteTpl + { + get + { + return this._spriteTpl; + } + } + + public IXUIPanel HpbarRoot + { + get + { + return this.m_objHpbarRoot; + } + set + { + this.m_objHpbarRoot = value; + } + } + + public IXUIPanel NpcHpbarRoot + { + get + { + return this.m_objNpcHpbarRoot; + } + set + { + this.m_objNpcHpbarRoot = value; + } + } + + public GameObject UIAudio + { + get + { + return this.m_uiAudio; + } + } + + public Transform UIRoot + { + get + { + return this.m_objUIRoot; + } + set + { + this.m_objUIRoot = value; + this.m_uiTool = (this.m_objUIRoot.GetComponent("XUITool") as IXUITool); + GameObject gameObject = this.m_objUIRoot.Find("GenericEventHandle").gameObject; + this.m_uiAudio = this.m_objUIRoot.Find("uiplayaudio").gameObject; + XSingleton.singleton.StoreAudioSource(this.m_uiAudio); + this.m_uiTool.SetUIGenericEventHandle(gameObject); + XSingleton.singleton.UIRoot = this.m_objUIRoot; + } + } + + public Camera UICamera + { + get + { + return this.m_uiCamera; + } + set + { + this.m_uiCamera = value; + } + } + + private Transform m_objUIRoot = null; + + private IXUIPanel m_objHpbarRoot = null; + + private IXUIPanel m_objNpcHpbarRoot = null; + + private Camera m_uiCamera = null; + + public IXUITool m_uiTool = null; + + private IXUISprite m_overlay = null; + + private GameObject m_connect = null; + + private GameObject m_block = null; + + private GameObject m_uiAudio = null; + + public static int _far_far_away = 1000; + + public static Vector3 Far_Far_Away = new Vector3(10000f, 10000f, 0f); + + private GameObject[] _buttonTpl = new GameObject[3]; + + private GameObject[] _spriteTpl = new GameObject[1]; + + private GameObject _dlgControllerTpl = null; + + public override bool Init() + { + XSingleton.singleton.AddLog("XMainClient.XGameUI.Init --------------------------------", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("XGameUI"), this); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("IModalDlg"), DlgBase.singleton); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("IXNormalItemDrawer"), XSingleton.singleton.normalItemDrawer); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("IGameSysMgr"), XSingleton.singleton); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("IUiUtility"), XSingleton.singleton); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("ITssSdkSend"), XSingleton.singleton); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("IX3DAvatarMgr"), XSingleton.singleton); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("ILuaExtion"), XSingleton.singleton); + bool flag = this.UIRoot == null; + if (flag) + { + this.UIRoot = (XSingleton.singleton.CreateFromPrefab("UI/Common/work/UIRoot", false, true) as GameObject).transform; + UnityEngine.Object.DontDestroyOnLoad(this.UIRoot); + } + bool flag2 = this.HpbarRoot == null; + if (flag2) + { + GameObject gameObject = XSingleton.singleton.CreateFromPrefab("UI/Common/work/HpbarRoot", false, true) as GameObject; + bool flag3 = gameObject != null; + if (flag3) + { + this.HpbarRoot = (gameObject.GetComponent("XUIPanel") as IXUIPanel); + UnityEngine.Object.DontDestroyOnLoad(gameObject); + } + } + bool flag4 = this.NpcHpbarRoot == null; + if (flag4) + { + GameObject gameObject2 = XSingleton.singleton.CreateFromPrefab("UI/Common/work/HpbarRoot", false, true) as GameObject; + bool flag5 = gameObject2 != null; + if (flag5) + { + gameObject2.name = "NpcHpbarRoot"; + this.NpcHpbarRoot = (gameObject2.GetComponent("XUIPanel") as IXUIPanel); + UnityEngine.Object.DontDestroyOnLoad(gameObject2); + } + } + for (int i = 0; i < 3; i++) + { + this._buttonTpl[i] = (XSingleton.singleton.CreateFromPrefab("UI/Common/work/XButton" + (i + 1), false, true) as GameObject); + this._buttonTpl[i].SetActive(false); + UnityEngine.Object.DontDestroyOnLoad(this._buttonTpl[i]); + } + for (int j = 0; j < 1; j++) + { + this._spriteTpl[j] = (XSingleton.singleton.CreateFromPrefab("UI/Common/work/XSprite" + (j + 1), false, true) as GameObject); + this._spriteTpl[j].SetActive(false); + UnityEngine.Object.DontDestroyOnLoad(this._spriteTpl[j]); + } + this._dlgControllerTpl = (XSingleton.singleton.CreateFromPrefab("UI/Common/work/DlgAnimation", false, true) as GameObject); + this._dlgControllerTpl.SetActive(false); + UnityEngine.Object.DontDestroyOnLoad(this._dlgControllerTpl); + return true; + } + + public override void Uninit() + { + } + + public void GetOverlay() + { + bool flag = this.m_overlay == null; + if (flag) + { + this.m_overlay = (this.m_objUIRoot.Find("fade_panel/fade_canvas").GetComponent("XUISprite") as IXUISprite); + this.m_overlay.gameObject.SetActive(false); + } + } + + public float GetOverlayAlpha() + { + this.GetOverlay(); + return this.m_overlay.gameObject.activeSelf ? this.m_overlay.GetAlpha() : 0f; + } + + public void SetOverlayAlpha(float alpha) + { + this.GetOverlay(); + bool flag = alpha > 0f; + if (flag) + { + bool flag2 = !this.m_overlay.gameObject.activeSelf; + if (flag2) + { + this.m_overlay.gameObject.SetActive(true); + } + this.m_overlay.SetAlpha(alpha); + } + else + { + this.m_overlay.gameObject.SetActive(false); + } + } + + private void ShowConnecting(bool bVisible) + { + bool flag = this.m_connect == null; + if (flag) + { + this.m_connect = this.m_objUIRoot.Find("fade_panel/connecting").gameObject; + } + if (bVisible) + { + bool flag2 = !this.m_connect.activeSelf; + if (flag2) + { + this.m_connect.SetActive(bVisible); + } + } + else + { + bool activeSelf = this.m_connect.activeSelf; + if (activeSelf) + { + this.m_connect.SetActive(bVisible); + } + } + } + + public void ShowBlock(bool bVisible) + { + bool flag = this.m_block == null; + if (flag) + { + this.m_block = this.m_objUIRoot.Find("block").gameObject; + } + if (bVisible) + { + bool flag2 = !this.m_block.activeSelf; + if (flag2) + { + this.m_block.SetActive(bVisible); + } + } + else + { + bool activeSelf = this.m_block.activeSelf; + if (activeSelf) + { + this.m_block.SetActive(bVisible); + } + } + } + + public void OnGenericClick() + { + bool flag = XSingleton.singleton.CurrentStage != null; + if (flag) + { + bool flag2 = !XSingleton.singleton.Exculsive; + if (flag2) + { + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag5 = DlgBase.singleton.IsLoaded(); + if (flag5) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag6 = DlgBase.singleton.IsLoaded(); + if (flag6) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag7 = DlgBase.singleton.IsLoaded(); + if (flag7) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag8 = DlgBase.singleton.IsLoaded(); + if (flag8) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag9 = DlgBase.singleton.IsLoaded(); + if (flag9) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag10 = DlgBase.singleton.IsLoaded(); + if (flag10) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag11 = DlgBase.singleton.IsLoaded(); + if (flag11) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag12 = DlgBase.singleton.IsLoaded(); + if (flag12) + { + DlgBase.singleton.HideToolTip(false); + } + } + bool flag13 = XSingleton.singleton.Exculsive && XSingleton.singleton.ExculsiveOnGeneric; + if (flag13) + { + bool flag14 = DlgBase.singleton.IsLoaded(); + if (flag14) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag15 = DlgBase.singleton.IsLoaded(); + if (flag15) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag16 = DlgBase.singleton.IsLoaded(); + if (flag16) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag17 = DlgBase.singleton.IsLoaded(); + if (flag17) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag18 = DlgBase.singleton.IsLoaded(); + if (flag18) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag19 = DlgBase.singleton.IsLoaded(); + if (flag19) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag20 = DlgBase.singleton.IsLoaded(); + if (flag20) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag21 = DlgBase.singleton.IsLoaded(); + if (flag21) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag22 = DlgBase.singleton.IsLoaded(); + if (flag22) + { + DlgBase.singleton.HideToolTip(false); + } + bool flag23 = DlgBase.singleton.IsLoaded(); + if (flag23) + { + DlgBase.singleton.HideToolTip(false); + } + XSingleton.singleton.OnTutorialClicked(); + } + } + } + + public void ShowCutSceneUI() + { + DlgBase.singleton.Load(); + DlgBase.singleton.SetVisible(true, true); + } + + public void UpdateNetUI() + { + this.ShowConnecting(XSingleton.singleton.FetchTokenDelay || XSingleton.singleton.LoginDelay || XSingleton.singleton.XConnect.OnConnectDelay || XSingleton.singleton.XConnect.OnRpcDelay || XSingleton.singleton.XConnect.OnReconnect); + } + + internal void LoadLoginUI(EXStage eStage) + { + DlgBase.singleton.Load(); + DlgBase.singleton.SetVisible(true, true); + } + + internal void UnloadLoginUI() + { + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + } + + internal void LoadSelectCharUI(EXStage eStage) + { + DlgBase.singleton.Load(); + DlgBase.singleton.SetVisible(true, true); + } + + internal void UnLoadSelectCharUI() + { + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + } + + internal void LoadWorldUI(EXStage eStage) + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + DlgBase.singleton.Load(); + } + else + { + DlgBase.singleton.Load(); + } + DlgBase.singleton.Load(); + DlgBase.singleton.Load(); + DlgBase.singleton.Load(); + } + + internal void UnloadWorldUI() + { + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + DlgBase.singleton.UnLoad(false); + } + + internal void LoadHallUI(EXStage eStage) + { + DlgBase.singleton.Load(); + } + + internal void LoadConcreteUI(EXStage eStage) + { + } + + public void SetUIOptOption(bool globalMerge, bool selectMerge, bool lowDeviceMerge, bool refreshUI = true) + { + bool flag = this.m_uiTool != null; + if (flag) + { + this.m_uiTool.SetUIOptOption(globalMerge, selectMerge, lowDeviceMerge); + } + if (refreshUI) + { + bool flag2 = this.m_objUIRoot != null; + if (flag2) + { + this.m_objUIRoot.gameObject.SetActive(false); + this.m_objUIRoot.gameObject.SetActive(true); + } + bool flag3 = this.m_objHpbarRoot != null; + if (flag3) + { + this.m_objHpbarRoot.gameObject.SetActive(false); + this.m_objHpbarRoot.gameObject.SetActive(true); + } + bool flag4 = this.m_objNpcHpbarRoot != null; + if (flag4) + { + this.m_objNpcHpbarRoot.gameObject.SetActive(false); + this.m_objNpcHpbarRoot.gameObject.SetActive(true); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGameUI.cs.meta b/Client/Assets/Scripts/XMainClient/XGameUI.cs.meta new file mode 100644 index 00000000..4b769e6e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGameUI.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 24e7fc34883635a4eae5b94d358dff74 +timeCreated: 1611403463 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGausBlur.cs b/Client/Assets/Scripts/XMainClient/XGausBlur.cs new file mode 100644 index 00000000..90c299c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGausBlur.cs @@ -0,0 +1,50 @@ +using System; +using UnityEngine; + +internal class XGausBlur : XImageEffectBase +{ + public int iterations = 3; + + public float blurSpread = 0.6f; + + private void OnRenderImage(RenderTexture source, RenderTexture destination) + { + int num = source.width / 4; + int num2 = source.height / 4; + RenderTexture renderTexture = RenderTexture.GetTemporary(num, num2, 0); + this.DownSample4x(source, renderTexture); + for (int i = 0; i < this.iterations; i++) + { + RenderTexture temporary = RenderTexture.GetTemporary(num, num2, 0); + this.FourTapCone(renderTexture, temporary, i); + RenderTexture.ReleaseTemporary(renderTexture); + renderTexture = temporary; + } + Graphics.Blit(renderTexture, destination); + RenderTexture.ReleaseTemporary(renderTexture); + } + + public void FourTapCone(RenderTexture source, RenderTexture dest, int iteration) + { + float num = 0.5f + (float)iteration * this.blurSpread; + Graphics.BlitMultiTap(source, dest, base.material, new Vector2[] + { + new Vector2(-num, -num), + new Vector2(-num, num), + new Vector2(num, num), + new Vector2(num, -num) + }); + } + + private void DownSample4x(RenderTexture source, RenderTexture dest) + { + float num = 1f; + Graphics.BlitMultiTap(source, dest, base.material, new Vector2[] + { + new Vector2(-num, -num), + new Vector2(-num, num), + new Vector2(num, num), + new Vector2(num, -num) + }); + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGausBlur.cs.meta b/Client/Assets/Scripts/XMainClient/XGausBlur.cs.meta new file mode 100644 index 00000000..ab700242 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGausBlur.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c1c285f04faad2e4db20d3ebbeb33092 +timeCreated: 1611404491 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGeneralShopBehaviour.cs b/Client/Assets/Scripts/XMainClient/XGeneralShopBehaviour.cs new file mode 100644 index 00000000..b5553e76 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGeneralShopBehaviour.cs @@ -0,0 +1,23 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGeneralShopBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public XUIPool m_ShopTypePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + this.m_ShopTypePool.SetupPool(base.transform.Find("Bg/ListFrame/Panel").gameObject, base.transform.Find("Bg/ListFrame/Panel/RecordTpl").gameObject, 10u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGeneralShopBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XGeneralShopBehaviour.cs.meta new file mode 100644 index 00000000..37518169 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGeneralShopBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1354e2c07a2e3f643a7c0f48d868a3aa +timeCreated: 1611403247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGesture.cs b/Client/Assets/Scripts/XMainClient/XGesture.cs new file mode 100644 index 00000000..778c30f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGesture.cs @@ -0,0 +1,337 @@ +using System; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGesture : XSingleton + { + public bool Freezed + { + get + { + return this._bFreeze; + } + set + { + this._bFreeze = value; + this.Cancel(); + } + } + + public bool Working + { + get + { + return this._finger_id != -1; + } + } + + public bool Gestured + { + get + { + return this._bswype || this._one || this._one_up; + } + } + + public bool OneTouch + { + get + { + return this._one; + } + } + + public bool OneUpTouch + { + get + { + return this._one_up; + } + } + + public bool Swype + { + get + { + return this._bswype; + } + } + + public bool LastSwypeUsed + { + get + { + return this._last_swype_used; + } + } + + public float LastSwypeAt + { + get + { + return this._last_swype_at; + } + } + + public float LastSwypeDis + { + get + { + return this._swype_dis; + } + } + + public Vector3 SwypeDirection + { + get + { + return -this._swypedir; + } + } + + public XGesture.SwypeDirectionType SwypeType + { + get + { + return this._swype_type; + } + } + + public Vector3 GesturePosition + { + get + { + return this._gesturepos; + } + } + + public Vector3 TouchPosition + { + get + { + return this._touchpos; + } + } + + public int FingerId + { + get + { + return this._finger_id; + } + } + + private readonly float _dead_zone = 10f; + + private bool _bTouch = false; + + private int _finger_id = -1; + + private bool _one = false; + + private bool _one_up = false; + + private bool _bswype = false; + + private bool _last_swype_used = false; + + private bool _bFreeze = false; + + private float _last_swype_at = 0f; + + private float _start_at = 0f; + + private float _swype_start_at = 0f; + + private float _swype_dis = 0f; + + private Vector2 _start = Vector2.zero; + + private Vector2 _swype_start = Vector2.zero; + + private Vector2 _double_touch_start = Vector2.zero; + + private Vector2 _end = Vector2.zero; + + private Vector3 _swypedir = Vector3.zero; + + private Vector3 _gesturepos = Vector3.zero; + + private Vector3 _touchpos = Vector3.zero; + + private float _last_touch_down_at = 0f; + + private XGesture.SwypeDirectionType _swype_type; + + public enum SwypeDirectionType + { + Left, + Right + } + + private enum DoubleTouchPhase + { + Preparing, + Prepared + } + + public void SwypeCounted() + { + this._last_swype_used = true; + } + + public void ClearOneHit() + { + this._one = false; + this._one_up = false; + } + + public void OnEnterScene() + { + this._bFreeze = false; + this.Cancel(); + } + + public void Feed(XTouchItem touch) + { + this._one |= this.OneUpdate(touch); + this._one_up |= this.OneUpUpdate(touch); + bool flag = (!this._bFreeze || XSingleton.singleton.bSpectator) && ((this._finger_id == -1 && touch.FingerId != XSingleton.singleton.FingerId) || this._finger_id == touch.FingerId); + if (flag) + { + bool flag2 = touch.Phase == 0; + if (flag2) + { + this._start = touch.Position; + this._swype_start = this._start; + this._start_at = Time.time; + this._swype_start_at = this._start_at; + this._bTouch = true; + } + bool bTouch = this._bTouch; + if (bTouch) + { + bool flag3 = XTouch.IsActiveTouch(touch); + if (flag3) + { + this._gesturepos = touch.Position; + this._bswype = this.SwypeUpdate(touch); + bool bswype = this._bswype; + if (bswype) + { + this._finger_id = touch.FingerId; + } + } + else + { + this.Cancel(); + } + } + } + } + + public void Cancel() + { + this._bTouch = false; + this._one = false; + this._bswype = false; + this._finger_id = -1; + } + + private bool OneUpdate(XTouchItem touch) + { + bool flag = touch.Phase == null && (touch.FingerId == XFastEnumIntEqualityComparer.ToInt(XFingerId.XCommon_0) || touch.FingerId == XFastEnumIntEqualityComparer.ToInt(XFingerId.XCommon_1)); + bool result; + if (flag) + { + this._touchpos = touch.Position; + result = true; + } + else + { + result = false; + } + return result; + } + + private bool OneUpUpdate(XTouchItem touch) + { + bool flag = touch.FingerId != XFastEnumIntEqualityComparer.ToInt(XFingerId.XCommon_0) && touch.FingerId != XFastEnumIntEqualityComparer.ToInt(XFingerId.XCommon_1); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = touch.Phase == 0; + if (flag2) + { + bool flag3 = XSingleton.singleton.EditorMode && touch.FingerId == 1; + if (flag3) + { + return false; + } + this._touchpos = touch.Position; + this._last_touch_down_at = Time.time; + } + else + { + bool flag4 = (int)touch.Phase == 4 || (int)touch.Phase == 3; + if (flag4) + { + float a = Time.time - this._last_touch_down_at; + bool flag5 = XSingleton.singleton.IsLess(a, 0.5f / Time.timeScale); + if (flag5) + { + Vector2 vector; + vector.x = this._touchpos.x - touch.Position.x; + vector.y = this._touchpos.y - touch.Position.y; + float num = Mathf.Sqrt(Mathf.Pow(vector.x, 2f) + Mathf.Pow(vector.y, 2f)); + bool flag6 = num < this._dead_zone; + if (flag6) + { + this._touchpos = touch.Position; + return true; + } + } + } + } + result = false; + } + return result; + } + + private bool SwypeUpdate(XTouchItem touch) + { + TouchPhase phase = touch.Phase; + bool flag = (int)phase == 1; + if (flag) + { + this._end = touch.Position; + Vector2 vector = this._end - this._swype_start; + float time = Time.time; + this._swype_dis = Mathf.Sqrt(Mathf.Pow(vector.x, 2f) + Mathf.Pow(vector.y, 2f)); + bool flag2 = this._swype_dis > this._dead_zone; + if (flag2) + { + this._swype_type = (XSingleton.singleton.IsGreater(this._swype_start.x, (float)Screen.width * 0.5f) ? XGesture.SwypeDirectionType.Right : XGesture.SwypeDirectionType.Left); + this._swype_start = this._end; + this._swype_start_at = time; + this._swypedir.x = vector.x; + this._swypedir.y = 0f; + this._swypedir.z = vector.y; + this._swypedir.Normalize(); + this._gesturepos = this._end; + this._last_swype_at = time; + this._last_swype_used = false; + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGesture.cs.meta b/Client/Assets/Scripts/XMainClient/XGesture.cs.meta new file mode 100644 index 00000000..b117189b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGesture.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57102c9ba02265e4ba61d2856da3b63b +timeCreated: 1611403747 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGlobalConfig.cs b/Client/Assets/Scripts/XMainClient/XGlobalConfig.cs new file mode 100644 index 00000000..1f7cd14c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGlobalConfig.cs @@ -0,0 +1,648 @@ +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XGlobalConfig : XSingleton + { + public static readonly char[] SequenceSeparator = new char[] + { + '=' + }; + + public static readonly char[] ListSeparator = new char[] + { + '|' + }; + + public static readonly char[] AllSeparators = new char[] + { + '|', + '=' + }; + + public static readonly char[] SpaceSeparator = new char[] + { + ' ' + }; + + public static readonly char[] TabSeparator = new char[] + { + ' ', + '\t' + }; + + private XTableAsyncLoader _async_loader = null; + + private GlobalTable _table = new GlobalTable(); + + public double CriticalLimit; + + public double CritResistLimit; + + public double ParalyzeLimit; + + public double ParaResistLimit; + + public double StunLimit; + + public double StunResistLimit; + + public double FinalDamageLimit; + + public double CritDamageBase; + + public double ElemAtkLimit; + + public double ElemDefLimit; + + public double GeneralCombatParam; + + public double AttrChangeDamageLimit; + + public float CDChangeUpperBound; + + public float CDChangeLowerBound; + + public double AttackSpeedUpperBound; + + public double AttackSpeedLowerBound; + + public double CritDamageUpperBound; + + public double CritDamageLowerBound; + + public float DamageRandomUpperBound; + + public float DamageRandomLowerBound; + + public float StunTime; + + public float[] AccelerationUp; + + public float[] AccelerationDown; + + public float Hit_PresentStraight; + + public float Hit_HardStraight; + + public float Hit_Offset; + + public float Hit_Height; + + public float ProShowTurnInterval = 4f; + + public float CloseUpCameraSpeed = 3f; + + public float ScreenSaveLimit = 30f; + + public int ScreenSavePercentage = 20; + + public uint[] NewbieLevelRoleID; + + public int[] EntitySummonGroupLimit; + + public ulong[] NumberSeparators; + + public ulong MinSeparateNum; + + public int PINGInterval = 3; + + public List CameraAdjustScopeExceptSkills = new List(); + + public int MaxGetGuildCheckInBonusNum; + + public float BuffMinAuraInterval; + + public float BuffMinRegenerateInterval; + + public uint BuffMaxDisplayCountPlayer = 5u; + + public uint BuffMaxDisplayCountTeam = 5u; + + public uint BuffMaxDisplayCountBoss = 5u; + + public float BuffMaxDisplayTime = 600f; + + public int StudentMinLevel = 20; + + public int TeacherMinLevel = 30; + + public List ViewGridScene = new List(); + + public Vector3 SpriteOffset = Vector3.zero; + + public uint DefaultIconWidth; + + public float GyroScale = 0.2f; + + public float GyroDeadZone = 0.01f; + + public float GyroFrequency = 30f; + + public int MaxEquipPosType; + + public int[] EquipPosType = new int[XBagDocument.EquipMax]; + + public float LoginBlockTime; + + public uint SettingEnum = 0u; + + private string[] EmptyPrefab = null; + + public float MobaTowerFxOffset = 2f; + + public Vector3[] SelectPos = null; + + public Vector3[] MobMovePos = null; + + public HashSet BlockFashionProfs = new HashSet(); + + private SeqList emptySeqList = new SeqList(2, 1); + + private SeqList tmpSeqList = new SeqList(2, 1); + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/GlobalConfig", this._table, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; + XGame.RoleCount = int.Parse(this.GetValue("MaxRole")); + this.ElemDefLimit = double.Parse(this.GetValue("ElemDefLimit")); + this.ElemAtkLimit = double.Parse(this.GetValue("ElemAtkLimit")); + this.CritDamageBase = double.Parse(this.GetValue("CritDamageBase")); + this.FinalDamageLimit = double.Parse(this.GetValue("FinalDamageLimit")); + this.StunResistLimit = double.Parse(this.GetValue("StunResistLimit")); + this.StunLimit = double.Parse(this.GetValue("StunLimit")); + this.ParaResistLimit = double.Parse(this.GetValue("ParaResistLimit")); + this.ParalyzeLimit = double.Parse(this.GetValue("ParalyzeLimit")); + this.CritResistLimit = double.Parse(this.GetValue("CritResistLimit")); + this.CriticalLimit = double.Parse(this.GetValue("CriticalLimit")); + this.GeneralCombatParam = double.Parse(this.GetValue("GeneralCombatParam")); + this.AttrChangeDamageLimit = double.Parse(this.GetValue("AttrChangeDamageLimit")); + string[] array = this.GetValue("CDChangeLimit").Split(XGlobalConfig.SequenceSeparator); + this.CDChangeLowerBound = float.Parse(array[0]); + this.CDChangeUpperBound = float.Parse(array[1]); + string[] array2 = this.GetValue("AttackSpeedLimit").Split(XGlobalConfig.SequenceSeparator); + this.AttackSpeedLowerBound = double.Parse(array2[0]); + this.AttackSpeedUpperBound = double.Parse(array2[1]); + string[] array3 = this.GetValue("CritDamageLimit").Split(XGlobalConfig.SequenceSeparator); + this.CritDamageLowerBound = double.Parse(array3[0]); + this.CritDamageUpperBound = double.Parse(array3[1]); + string[] array4 = this.GetValue("DamageRandomRange").Split(XGlobalConfig.SequenceSeparator); + this.DamageRandomLowerBound = float.Parse(array4[0]); + this.DamageRandomUpperBound = float.Parse(array4[1]); + this.StunTime = float.Parse(this.GetValue("StunTime")); + this.AccelerationUp = new float[XGame.RoleCount]; + this.AccelerationDown = new float[XGame.RoleCount]; + string[] array5 = this.GetValue("AccelerationUp").Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < XGame.RoleCount; i++) + { + this.AccelerationUp[i] = float.Parse(array5[i]); + } + array5 = this.GetValue("AccelerationDown").Split(XGlobalConfig.ListSeparator); + for (int j = 0; j < XGame.RoleCount; j++) + { + this.AccelerationDown[j] = float.Parse(array5[j]); + } + this.Hit_PresentStraight = float.Parse(this.GetValue("PresentStraight")); + this.Hit_HardStraight = float.Parse(this.GetValue("HardStraight")); + this.Hit_Offset = float.Parse(this.GetValue("Offset")); + this.Hit_Height = float.Parse(this.GetValue("Height")); + this.CloseUpCameraSpeed = float.Parse(this.GetValue("CloseUpCameraSpeed")); + this.NewbieLevelRoleID = new uint[XGame.RoleCount]; + string[] array6 = this.GetValue("NewbieLevelRoleID").Split(XGlobalConfig.ListSeparator); + for (int k = 0; k < XGame.RoleCount; k++) + { + this.NewbieLevelRoleID[k] = uint.Parse(array6[k]); + } + string[] array7 = this.GetValue("EntitySummonGroupLimit").Split(XGlobalConfig.ListSeparator); + this.EntitySummonGroupLimit = new int[array7.Length + 1]; + for (int l = 1; l <= array7.Length; l++) + { + this.EntitySummonGroupLimit[l] = int.Parse(array7[l - 1]); + } + string[] array8 = this.GetValue("CameraAdjustScopeExceptSkills").Split(XGlobalConfig.ListSeparator); + for (int m = 0; m < array8.Length; m++) + { + this.CameraAdjustScopeExceptSkills.Add(XSingleton.singleton.XHash(array8[m])); + } + string[] array9 = this.GetValue("NumberSeparator").Split(XGlobalConfig.ListSeparator); + this.NumberSeparators = new ulong[array9.Length]; + for (int n = 0; n < array9.Length; n++) + { + this.NumberSeparators[n] = ulong.Parse(array9[n]); + } + this.MinSeparateNum = ulong.Parse(this.GetValue("MinSeparateNum")); + this.PINGInterval = int.Parse(this.GetValue("PINGInterval")); + this.ScreenSaveLimit = float.Parse(this.GetValue("ScreenSaveLimit")); + this.ScreenSavePercentage = int.Parse(this.GetValue("ScreenSavePercentage")); + this.MaxGetGuildCheckInBonusNum = int.Parse(this.GetValue("MaxGetGuildCheckInBonusNum")); + this.BuffMinAuraInterval = float.Parse(this.GetValue("BuffMinAuraInterval")); + this.BuffMinRegenerateInterval = float.Parse(this.GetValue("BuffMinRegenerateInterval")); + this.StudentMinLevel = int.Parse(this.GetValue("GuildInheritRoleLvlLow")); + this.TeacherMinLevel = int.Parse(this.GetValue("GuildInheritRoleLvlHig")); + List uintList = this.GetUIntList("BuffMaxDisplayCount"); + bool flag3 = uintList.Count != 3; + if (flag3) + { + XSingleton.singleton.AddErrorLog("BuffMaxDisplayCount should be 3: ", uintList.ToString(), null, null, null, null); + } + else + { + this.BuffMaxDisplayCountPlayer = uintList[0]; + this.BuffMaxDisplayCountTeam = uintList[1]; + this.BuffMaxDisplayCountBoss = uintList[2]; + } + this.BuffMaxDisplayTime = float.Parse(this.GetValue("BuffMaxDisplayTime")); + string text = ""; + bool value = this.GetValue("SpriteOffset", out text); + if (value) + { + string[] array10 = text.Split(XGlobalConfig.ListSeparator); + bool flag4 = array10.Length != 0; + if (flag4) + { + this.SpriteOffset.x = float.Parse(array10[0]); + bool flag5 = array10.Length > 1; + if (flag5) + { + this.SpriteOffset.y = float.Parse(array10[1]); + bool flag6 = array10.Length > 2; + if (flag6) + { + this.SpriteOffset.z = float.Parse(array10[2]); + } + } + } + } + string[] array11 = this.GetValue("ViewGridScene").Split(XGlobalConfig.ListSeparator); + for (int num = 0; num < array11.Length; num++) + { + this.ViewGridScene.Add(int.Parse(array11[num])); + } + this.ProShowTurnInterval = float.Parse(this.GetValue("ProShowTurnInterval")); + this.DefaultIconWidth = uint.Parse(this.GetValue("DefaultIconWidth")); + string[] array12 = this.GetValue("Gyro").Split(XGlobalConfig.ListSeparator); + this.GyroScale = float.Parse(array12[0]); + this.GyroDeadZone = float.Parse(array12[1]); + this.GyroFrequency = float.Parse(array12[2]); + string[] array13 = this.GetValue("EquipPosType").Split(XGlobalConfig.ListSeparator); + bool flag7 = array13.Length != XBagDocument.EquipMax; + if (flag7) + { + XSingleton.singleton.AddErrorLog("EquipPosType Length Error: ", array13.Length.ToString(), null, null, null, null); + } + this.MaxEquipPosType = 0; + for (int num2 = 0; num2 < array13.Length; num2++) + { + this.EquipPosType[num2] = int.Parse(array13[num2]); + this.MaxEquipPosType = Math.Max(this.MaxEquipPosType, this.EquipPosType[num2]); + } + this.LoginBlockTime = uint.Parse(this.GetValue("LoginBlockTime")); + string text2; + bool value2 = this.GetValue("SettingEnum", out text2); + if (value2) + { + bool flag8 = text2.StartsWith("0x"); + if (flag8) + { + text2 = text2.Substring(2).Replace(",", ""); + this.SettingEnum = Convert.ToUInt32(text2, 2); + } + else + { + this.SettingEnum = Convert.ToUInt32(text2); + } + } + text2 = ""; + bool flag9 = this.GetValue("EmptyPrefab", out text2) && !string.IsNullOrEmpty(text2); + if (flag9) + { + this.EmptyPrefab = text2.Split(XGlobalConfig.ListSeparator); + } + text2 = ""; + bool flag10 = this.GetValue("SelectPos", out text2) && !string.IsNullOrEmpty(text2); + if (flag10) + { + string[] array14 = text2.Split(new char[] + { + ',' + }); + bool flag11 = array14 != null && array14.Length != 0; + if (flag11) + { + int num3 = array14.Length; + bool flag12 = num3 % 3 == 0; + if (flag12) + { + this.SelectPos = new Vector3[num3 / 3]; + for (int num4 = 0; num4 < this.SelectPos.Length; num4++) + { + Vector3 vector = default(Vector3); + float num5 = 0f; + float.TryParse(array14[num4 * 3], out num5); + vector.x = num5; + num5 = 0f; + float.TryParse(array14[num4 * 3 + 1], out num5); + vector.y = num5; + num5 = 0f; + float.TryParse(array14[num4 * 3 + 2], out num5); + vector.z = num5; + this.SelectPos[num4] = vector; + } + } + } + } + text2 = ""; + bool flag13 = this.GetValue("MobMovePos", out text2) && !string.IsNullOrEmpty(text2); + if (flag13) + { + string[] array15 = text2.Split(XGlobalConfig.AllSeparators); + bool flag14 = array15 != null && array15.Length != 0; + if (flag14) + { + int num6 = array15.Length; + bool flag15 = num6 % 3 == 0; + if (flag15) + { + this.MobMovePos = new Vector3[num6 / 3]; + for (int num7 = 0; num7 < this.MobMovePos.Length; num7++) + { + Vector3 vector2 = default(Vector3); + float num8 = 0f; + float.TryParse(array15[num7 * 3], out num8); + vector2.x = num8; + num8 = 0f; + float.TryParse(array15[num7 * 3 + 1], out num8); + vector2.y = num8; + num8 = 0f; + float.TryParse(array15[num7 * 3 + 2], out num8); + vector2.z = num8; + this.MobMovePos[num7] = vector2; + } + } + } + } + this.MobaTowerFxOffset = float.Parse(this.GetValue("MobaTowerFxOffset")); + this.BlockFashionProfs.Clear(); + string[] array16 = this.GetValue("BlockFashionProfs").Split(XGlobalConfig.ListSeparator); + for (int num9 = 0; num9 < array16.Length; num9++) + { + this.BlockFashionProfs.Add(uint.Parse(array16[num9])); + } + XBuffComponent.InitConfigs(); + HomeSpriteClass.InitPosList(); + XProfessionSkillMgr.InitFromGlobalConfig(); + XEnchantDocument.InitFromGlobalConfig(); + XCharacterItemDocument.InitFromGlobalConfig(); + XSingleton.singleton.InitFromGlobalConfig(); + XCharacterItemDocument.InitTabList(); + XQualitySetting.VisibleRoleCountPerLevel = (this.GetInt("ViewGridCount") + 2) / 4; + result = true; + } + return result; + } + + public override void Uninit() + { + this._async_loader = null; + } + + public string GetValue(string key) + { + string text = ""; + uint key2 = XSingleton.singleton.XHash(key); + bool flag = this._table.Table.TryGetValue(key2, out text); + string result; + if (flag) + { + result = text; + } + else + { + result = text; + } + return result; + } + + public bool GetValue(string key, out string value) + { + uint key2 = XSingleton.singleton.XHash(key); + return this._table.Table.TryGetValue(key2, out value); + } + + public string[] GetAndSeparateValue(string key, char[] separator) + { + return this.GetValue(key).Split(separator); + } + + public int GetInt(string key) + { + string s = ""; + bool value = this.GetValue(key, out s); + int result; + if (value) + { + result = int.Parse(s); + } + else + { + result = 0; + } + return result; + } + + private SeqList GetSequenceList(string key, short dim, bool tmp = true) + { + string[] array = this.GetValue(key).Split(XGlobalConfig.AllSeparators); + bool flag = array.Length == 0 || array.Length % (int)dim != 0; + SeqList result; + if (flag) + { + XSingleton.singleton.AddErrorLog("XGlobalConfig GetSequenceList Error! key is ", key, null, null, null, null); + result = this.emptySeqList; + } + else + { + SeqList seqList; + if (tmp) + { + seqList = this.tmpSeqList; + seqList.Reset(dim, (short)(array.Length / (int)dim)); + } + else + { + seqList = new SeqList(dim, (short)(array.Length / (int)dim)); + } + for (int i = 0; i < array.Length; i += (int)dim) + { + for (int j = 0; j < (int)dim; j++) + { + seqList[i / (int)dim, j] = int.Parse(array[i + j]); + } + } + result = seqList; + } + return result; + } + + public SeqList GetSequenceList(string key, bool tmp) + { + return this.GetSequenceList(key, 2, tmp); + } + + public SeqList GetSequence3List(string key, bool tmp) + { + return this.GetSequenceList(key, 3, tmp); + } + + public SeqList GetSequence4List(string key, bool tmp) + { + return this.GetSequenceList(key, 4, tmp); + } + + public List GetIntList(string key) + { + List list = new List(); + string[] array = this.GetValue(key).Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + list.Add(int.Parse(array[i])); + } + return list; + } + + public void GetIntList(string key, List list) + { + string value = this.GetValue(key); + bool flag = !string.IsNullOrEmpty(value); + if (flag) + { + string[] array = value.Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + list.Add(int.Parse(array[i])); + } + } + } + + public List GetUIntList(string key) + { + List list = new List(); + string[] array = this.GetValue(key).Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + list.Add(uint.Parse(array[i])); + } + return list; + } + + public List GetStringList(string key) + { + List list = new List(); + string[] array = this.GetValue(key).Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + list.Add(array[i]); + } + return list; + } + + public SeqList GetStringSeqList(string key) + { + string[] array = this.GetValue(key).Split(XGlobalConfig.AllSeparators); + SeqList seqList = new SeqList(2, (short)(array.Length / 2)); + bool flag = array.Length == 0 || array.Length % 2 != 0; + SeqList result; + if (flag) + { + XSingleton.singleton.AddErrorLog("XGlobalConfig GetSequenceList Error! key is ", key, null, null, null, null); + result = seqList; + } + else + { + for (int i = 0; i < array.Length; i += 2) + { + for (int j = 0; j < 2; j++) + { + seqList[i / 2, j] = array[i + j]; + } + } + result = seqList; + } + return result; + } + + public void GetFloatList(string key, ref float[] floatList) + { + string[] array = this.GetValue(key).Split(XGlobalConfig.ListSeparator); + bool flag = array.Length != 0; + if (flag) + { + floatList = new float[array.Length]; + for (int i = 0; i < array.Length; i++) + { + floatList[i] = float.Parse(array[i]); + } + } + } + + public List GetFloatList(string key) + { + List list = new List(); + string[] array = this.GetValue(key).Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < array.Length; i++) + { + list.Add(float.Parse(array[i])); + } + return list; + } + + public bool GetSettingEnum(ESettingConfig sc) + { + uint settingEnum = XSingleton.singleton.SettingEnum; + return ((ulong)settingEnum & (ulong)((long)XFastEnumIntEqualityComparer.ToInt(sc))) > 0UL; + } + + public string PreFilterPrefab(string location) + { + bool flag = this.EmptyPrefab == null; + string result; + if (flag) + { + result = location; + } + else + { + for (int i = 0; i < this.EmptyPrefab.Length; i++) + { + bool flag2 = location.EndsWith(this.EmptyPrefab[i]); + if (flag2) + { + return ""; + } + } + result = location; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGlobalConfig.cs.meta b/Client/Assets/Scripts/XMainClient/XGlobalConfig.cs.meta new file mode 100644 index 00000000..41a24279 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGlobalConfig.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0bc6f144bdd30da488bca9648771fe01 +timeCreated: 1611403170 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGoldGroupData.cs b/Client/Assets/Scripts/XMainClient/XGoldGroupData.cs new file mode 100644 index 00000000..158e9cda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGoldGroupData.cs @@ -0,0 +1,156 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal struct XGoldGroupData + { + public bool bActive + { + get + { + return this.index >= 0; + } + set + { + bool flag = !value; + if (flag) + { + this.index = -1; + this.type = GoldGroupType.GGT_NONE; + } + } + } + + public GoldGroupType type; + + public int index; + + public int itemid; + + public int itemcount; + + public XTeamBriefData teamBrief; + + public static string GetName(ref SeqListRef data, int index) + { + bool flag = index < 0 || index >= data.Count; + string result; + if (flag) + { + result = string.Empty; + } + else + { + int num = (int)data[index, 0]; + int num2 = (int)data[index, 1]; + GoldGroupType goldGroupType = (GoldGroupType)num; + if (goldGroupType != GoldGroupType.GGT_DIAMOND) + { + if (goldGroupType != GoldGroupType.GGT_TICKET) + { + result = string.Empty; + } + else + { + result = XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("TeamGoldGroupName2_", num2.ToString())); + } + } + else + { + result = XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("TeamGoldGroupName1_", num2.ToString()), new object[] + { + data[index, 2].ToString() + }); + } + } + return result; + } + + public void SetData(TeamExtraInfo extraInfo, ExpeditionTable.RowData rowData) + { + bool flag = extraInfo == null || rowData == null || !extraInfo.costindexSpecified; + if (flag) + { + this.bActive = false; + } + else + { + int costindex = (int)extraInfo.costindex; + bool flag2 = costindex < 0 || costindex >= rowData.CostType.Count; + if (flag2) + { + this.bActive = false; + } + else + { + this.index = costindex; + this.type = (GoldGroupType)rowData.CostType[this.index, 0]; + this.itemid = (int)rowData.CostType[this.index, 1]; + this.itemcount = (int)rowData.CostType[this.index, 2]; + } + } + } + + public void SetUI(GameObject go, bool bShowFinalRewardIcon = true) + { + bool flag = !this.bActive; + if (flag) + { + go.SetActive(false); + } + else + { + go.SetActive(true); + IXUILabel ixuilabel = go.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag2 = bShowFinalRewardIcon && this.type == GoldGroupType.GGT_TICKET; + if (flag2) + { + ixuisprite.SetSprite(XBagDocument.GetItemSmallIcon(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DRAGON_COIN), 0u)); + } + else + { + ixuisprite.SetSprite(XBagDocument.GetItemSmallIcon(this.itemid, 0u)); + } + bool flag3 = this.type == GoldGroupType.GGT_TICKET; + if (flag3) + { + ixuilabel.SetText(XStringDefineProxy.GetString("GGT_TICKET")); + } + else + { + ixuilabel.SetText(this.itemcount.ToString()); + } + Transform transform = go.transform.Find("Description"); + bool flag4 = transform != null; + if (flag4) + { + IXUILabel ixuilabel2 = transform.GetComponent("XUILabel") as IXUILabel; + GoldGroupType goldGroupType = this.type; + if (goldGroupType != GoldGroupType.GGT_DIAMOND) + { + if (goldGroupType != GoldGroupType.GGT_TICKET) + { + ixuilabel2.SetText(string.Empty); + } + else + { + ixuilabel2.SetText(XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("TeamGoldGroupDescription2_", this.itemid.ToString()))); + } + } + else + { + ixuilabel2.SetText(XStringDefineProxy.GetString(XSingleton.singleton.StringCombine("TeamGoldGroupDescription1_", this.itemid.ToString()), new object[] + { + (this.teamBrief == null || this.teamBrief.totalMemberCount <= 1) ? this.itemcount : (this.itemcount / (this.teamBrief.totalMemberCount - 1)) + })); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGoldGroupData.cs.meta b/Client/Assets/Scripts/XMainClient/XGoldGroupData.cs.meta new file mode 100644 index 00000000..517df2f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGoldGroupData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 057c7feeb167b6246b84b7b1b9e9b27a +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGravityComponent.cs b/Client/Assets/Scripts/XMainClient/XGravityComponent.cs new file mode 100644 index 00000000..718d8ac3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGravityComponent.cs @@ -0,0 +1,27 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XGravityComponent : XComponent + { + public override uint ID + { + get + { + return XGravityComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Entity_Gravity"); + + public override void Update(float fDeltaT) + { + bool flag = !this._entity.GravityDisabled; + if (flag) + { + this._entity.ApplyMove(0f, -1f, 0f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGravityComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XGravityComponent.cs.meta new file mode 100644 index 00000000..b8eb3a97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGravityComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 054d31de6da3963459e97d544fe1f684 +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XGyroscope.cs b/Client/Assets/Scripts/XMainClient/XGyroscope.cs new file mode 100644 index 00000000..16b5cf03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGyroscope.cs @@ -0,0 +1,206 @@ +using System; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XGyroscope : XSingleton + { + public float Scale + { + get + { + return this._scale; + } + } + + public float DeadZone + { + get + { + return this._deadzone; + } + } + + public float Frequency + { + get + { + return this._frequency; + } + } + + public bool Enabled + { + get + { + return this._enabled; + } + set + { + bool flag = this._enabled != value; + if (flag) + { + this._touch_count_this_frame = 0; + this._enabled = value; + } + Input.gyro.enabled = this._enabled; + bool enabled = this._enabled; + if (enabled) + { + this._scale = (XSingleton.singleton.EditorMode ? 1f : XSingleton.singleton.GyroScale); + this._deadzone = XSingleton.singleton.GyroDeadZone; + this._frequency = XSingleton.singleton.GyroFrequency; + Input.gyro.updateInterval = 1f / this._frequency; + } + this.Cancel(); + XSingleton.singleton.Cancel(); + } + } + + public int touchCount + { + get + { + return this._touch_count_this_frame; + } + } + + private XTouchItem _touches = new XTouchItem(); + + private bool _enabled = false; + + private static Vector2 _init_pos = new Vector2((float)Screen.width * 0.55f, (float)Screen.height * 0.55f); + + private static Vector2 _last_pos = XGyroscope._init_pos; + + private static Vector2 _curr_pos = XGyroscope._init_pos; + + private int _touch_count_this_frame = 0; + + private float _frequency = 30f; + + private float _scale = 0.2f; + + private float _deadzone = 0.01f; + + public void OnEnterScene() + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + this.Enabled = (specificDocument.GetValue(XOptionsDefine.OD_Gyro) != 0); + } + } + + public void Update() + { + this._touch_count_this_frame = 0; + bool currentPos = this.GetCurrentPos(); + if (currentPos) + { + this._touches.faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XGyroscope_0); + this._touches.faketouch.position = XGyroscope._curr_pos; + this._touches.faketouch.deltaTime = Time.smoothDeltaTime; + this._touches.faketouch.deltaPosition = XGyroscope._curr_pos - XGyroscope._last_pos; + this._touches.faketouch.phase = ((XGyroscope._curr_pos == XGyroscope._init_pos) ? (TouchPhase)3 : ((XGyroscope._last_pos == XGyroscope._init_pos) ? (TouchPhase)0 : (TouchPhase)1)); + this._touches.faketouch.tapCount = 1; + this._touches.Fake = true; + XGyroscope._last_pos = XGyroscope._curr_pos; + this._touch_count_this_frame++; + } + } + + public XTouchItem GetTouch(int idx) + { + return this._touches; + } + + public void Set(float scale, float times, float deadzone) + { + bool enabled = this.Enabled; + if (enabled) + { + this._scale = (XSingleton.singleton.EditorMode ? 1f : scale); + this._deadzone = deadzone; + this._frequency = times; + Input.gyro.updateInterval = 1f / this._frequency; + } + } + + private bool GetCurrentPos() + { + float num = 0f; + float num2 = 0f; + bool editorMode = XSingleton.singleton.EditorMode; + if (editorMode) + { + bool key = Input.GetKey((KeyCode)276); + if (key) + { + num -= 1f; + } + bool key2 = Input.GetKey((KeyCode)275); + if (key2) + { + num += 1f; + } + bool key3 = Input.GetKey((KeyCode)274); + if (key3) + { + num2 -= 1f; + } + bool key4 = Input.GetKey((KeyCode)273); + if (key4) + { + num2 += 1f; + } + } + else + { + Vector3 rotationRateUnbiased = Input.gyro.rotationRateUnbiased; + rotationRateUnbiased.z = 0f; + bool flag = rotationRateUnbiased.sqrMagnitude < this._deadzone * this._deadzone; + if (flag) + { + num2 = (num = 0f); + } + else + { + num = -(rotationRateUnbiased.y * 57.29578f); + num2 = rotationRateUnbiased.x * 57.29578f; + } + } + bool flag2 = num != 0f || num2 != 0f; + bool result; + if (flag2) + { + XGyroscope._curr_pos = XGyroscope._last_pos + new Vector2(this._scale * num, this._scale * num2); + result = true; + } + else + { + bool flag3 = XGyroscope._curr_pos != XGyroscope._init_pos; + if (flag3) + { + XGyroscope._last_pos = XGyroscope._init_pos; + XGyroscope._curr_pos = XGyroscope._init_pos; + result = true; + } + else + { + result = false; + } + } + return result; + } + + public void Cancel() + { + XGyroscope._last_pos = XGyroscope._init_pos; + XGyroscope._curr_pos = XGyroscope._init_pos; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XGyroscope.cs.meta b/Client/Assets/Scripts/XMainClient/XGyroscope.cs.meta new file mode 100644 index 00000000..e46895ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XGyroscope.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 191dbab72b2b29341ad111ba4f62fe7b +timeCreated: 1611403300 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHUDAddEventArgs.cs b/Client/Assets/Scripts/XMainClient/XHUDAddEventArgs.cs new file mode 100644 index 00000000..c71aa2fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHUDAddEventArgs.cs @@ -0,0 +1,25 @@ +using System; + +namespace XMainClient +{ + internal class XHUDAddEventArgs : XEventArgs + { + public ProjectDamageResult damageResult { get; set; } + + public XEntity caster { get; set; } + + public XHUDAddEventArgs() + { + this._eDefine = XEventDefine.XEvent_HUDAdd; + this.caster = null; + } + + public override void Recycle() + { + this.damageResult = null; + this.caster = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHUDAddEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XHUDAddEventArgs.cs.meta new file mode 100644 index 00000000..936b10d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHUDAddEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 199e2976ca48a5744a4e6559b74debe6 +timeCreated: 1611403303 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHUDComponent.cs b/Client/Assets/Scripts/XMainClient/XHUDComponent.cs new file mode 100644 index 00000000..d4d0051b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHUDComponent.cs @@ -0,0 +1,392 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XHUDComponent : XComponent + { + public override uint ID + { + get + { + return XHUDComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("CombatInfoInScene"); + + private GameObject _hudObject = null; + + private List _List = new List(); + + private List _Unused = new List(); + + private Camera gameCamera = null; + + private Camera uiCamera = null; + + private XBattleDocument _BattleDoc; + + public static bool processHud = true; + + private static int currentCount = 0; + + public static int _Max_UI_UpdateCount_PreFrame = 4; + + public static void ResetCurrentCount() + { + XHUDComponent.currentCount = 0; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._hudObject = XSingleton.singleton.GetGameObject(); + this._hudObject.layer = LayerMask.NameToLayer("UI"); + this._hudObject.name = this._entity.EngineObject.Name + "_hud"; + this.gameCamera = XSingleton.singleton.GameCamera.UnityCamera; + this.uiCamera = XSingleton.singleton.UICamera; + XSingleton.singleton.AddChild(XSingleton.singleton.UIRoot, this._hudObject.transform); + this._BattleDoc = XDocuments.GetSpecificDocument(XBattleDocument.uuID); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + int i = this._List.Count; + while (i > 0) + { + XHudEntry ent = this._List[--i]; + this.DestroyEntityHudGameObject(ent); + } + XSingleton.singleton.ReturnGameObject(this._hudObject); + this._hudObject = null; + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_HUDAdd, new XComponent.XEventHandler(this.AddHud)); + base.RegisterEvent(XEventDefine.XEvent_HUDDoodad, new XComponent.XEventHandler(this.AddDoodadHUD)); + } + + private XHudEntry CreateHUD() + { + bool flag = this._Unused.Count > 0; + XHudEntry result; + if (flag) + { + XHudEntry xhudEntry = this._Unused[this._Unused.Count - 1]; + this._Unused.RemoveAt(this._Unused.Count - 1); + xhudEntry.time = Time.realtimeSinceStartup; + xhudEntry.offset = 0f; + this._List.Add(xhudEntry); + result = xhudEntry; + } + else + { + XHudEntry xhudEntry2 = new XHudEntry(); + this._List.Add(xhudEntry2); + result = xhudEntry2; + } + return result; + } + + public bool AddDoodadHUD(XEventArgs e) + { + XHUDDoodadArgs xhuddoodadArgs = e as XHUDDoodadArgs; + GameObject gameObject = XSingleton.singleton.CreateFromPrefab("UI/Billboard/HUDDoodad", Vector3.zero, Quaternion.identity, true, false); + gameObject.layer = LayerMask.NameToLayer("UI"); + XSingleton.singleton.AddChild(this._hudObject, gameObject); + XHudEntry xhudEntry = this.CreateHUD(); + xhudEntry.time = Time.realtimeSinceStartup; + xhudEntry.stay = 0.1f; + xhudEntry.offset = 0f; + xhudEntry.val = 0f; + xhudEntry.label = (gameObject.transform.GetComponent("XUILabel") as IXUILabel); + xhudEntry.label.SetRootAsUIPanel(true); + xhudEntry.isDigital = true; + IXUILabelSymbol ixuilabelSymbol = gameObject.transform.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ItemList.RowData itemConf = XBagDocument.GetItemConf(xhuddoodadArgs.itemid); + bool flag = itemConf != null; + if (flag) + { + ItemType itemType = (ItemType)itemConf.ItemType; + if (itemType != ItemType.VIRTUAL_ITEM) + { + ItemList.RowData itemConf2 = XBagDocument.GetItemConf(xhuddoodadArgs.itemid); + string itemQualityColorStr = XSingleton.singleton.GetItemQualityColorStr((int)itemConf2.ItemQuality); + ixuilabelSymbol.InputText = string.Format("[{0}]{1}[-] x{2}", itemQualityColorStr, XSingleton.singleton.ChooseProfString(itemConf2.ItemName, 0u), xhuddoodadArgs.count); + } + else + { + string inputText = XLabelSymbolHelper.FormatCostWithIcon("+{1} {0}", xhuddoodadArgs.count, (ItemEnum)xhuddoodadArgs.itemid); + ixuilabelSymbol.InputText = inputText; + } + } + this.UIFollowTarget(); + IXHUDDescription ixhuddescription = gameObject.transform.GetComponent("HUDDescription") as IXHUDDescription; + xhudEntry.offsetCurve = ixhuddescription.GetPosCurve(); + xhudEntry.scaleCurve = ixhuddescription.GetScaleCurve(); + xhudEntry.alphaCurve = ixhuddescription.GetAlphaCurve(); + return true; + } + + public bool AddHud(XEventArgs e) + { + bool flag = !XHUDComponent.processHud || XHUDComponent.currentCount > XHUDComponent._Max_UI_UpdateCount_PreFrame; + bool result; + if (flag) + { + e.Recycle(); + result = true; + } + else + { + bool flag2 = !XHUDComponent.processHud; + if (flag2) + { + result = true; + } + else + { + bool flag3 = XHUDComponent.currentCount >= XHUDComponent._Max_UI_UpdateCount_PreFrame; + if (flag3) + { + bool flag4 = this._List.Count > 0; + if (flag4) + { + this.DeleteHUD(this._List[0]); + } + } + XHUDAddEventArgs xhudaddEventArgs = e as XHUDAddEventArgs; + bool flag5 = !this._entity.IsPlayer && (!XSingleton.singleton.bSpectator || XSingleton.singleton.Player.WatchTo == null || XSingleton.singleton.Player.WatchTo.ID != this._entity.ID); + if (flag5) + { + ulong num = 0UL; + bool flag6 = false; + bool flag7 = xhudaddEventArgs.caster == null || xhudaddEventArgs.caster.Attributes == null || xhudaddEventArgs.caster.Attributes.HostID == 0UL; + if (flag7) + { + bool flag8 = !this._BattleDoc.ShowTeamMemberDamageHUD; + if (flag8) + { + num = xhudaddEventArgs.damageResult.Caster; + } + else + { + flag6 = true; + } + } + else + { + bool showMobDamageHUD = this._BattleDoc.ShowMobDamageHUD; + if (!showMobDamageHUD) + { + return true; + } + num = xhudaddEventArgs.caster.Attributes.HostID; + } + bool flag9 = !flag6; + if (flag9) + { + bool flag10 = num > 0UL; + if (!flag10) + { + return true; + } + bool flag11 = XSingleton.singleton.Player.WatchTo != null && XSingleton.singleton.Player.WatchTo.ID == num; + bool flag12 = num != XSingleton.singleton.XPlayerData.RoleID && !flag11; + if (flag12) + { + return true; + } + } + } + GameObject hudtemplateByDamageResult = XSingleton.singleton.GetHUDTemplateByDamageResult(xhudaddEventArgs.damageResult, this._entity.IsPlayer); + XHUDComponent.currentCount++; + hudtemplateByDamageResult.layer = LayerMask.NameToLayer("UI"); + XHudEntry xhudEntry = this.CreateHUD(); + xhudEntry.time = Time.realtimeSinceStartup; + xhudEntry.stay = 0.1f; + xhudEntry.offset = 0f; + xhudEntry.val = (float)xhudaddEventArgs.damageResult.Value; + bool flag13 = !xhudEntry.init; + if (flag13) + { + xhudEntry.label = (hudtemplateByDamageResult.transform.GetComponent("XUILabel") as IXUILabel); + xhudEntry.label.SetRootAsUIPanel(true); + } + XSingleton.singleton.AddChildNoMark(this._hudObject, hudtemplateByDamageResult); + xhudEntry.isDigital = true; + string text = XSingleton.singleton.GetHUDText(xhudaddEventArgs.damageResult, xhudEntry.isDigital); + bool isMainViewEntity = this._entity.IsMainViewEntity; + if (isMainViewEntity) + { + text = ((xhudaddEventArgs.damageResult.Value >= 0.0) ? "-" : "+") + text; + } + bool flag14 = xhudaddEventArgs.damageResult.Result != ProjectResultType.PJRES_IMMORTAL && xhudaddEventArgs.damageResult.Result != ProjectResultType.PJRES_MISS; + if (flag14) + { + xhudEntry.label.SetText(text); + } + bool flag15 = this._entity.IsEnemy && xhudaddEventArgs.damageResult.Value > 0.0; + if (flag15) + { + XSingleton.singleton.ls._total_damage += (float)xhudaddEventArgs.damageResult.Value; + } + else + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + bool flag16 = xhudaddEventArgs.damageResult.Value > 0.0; + if (flag16) + { + XSingleton.singleton.ls._total_hurt += (float)xhudaddEventArgs.damageResult.Value; + } + else + { + XSingleton.singleton.ls._total_heal += (float)(-(float)xhudaddEventArgs.damageResult.Value); + } + } + } + bool flag17 = !xhudaddEventArgs.damageResult.IsCritical() && !this._entity.IsMainViewEntity; + if (flag17) + { + bool bEnable = false; + Color white = Color.white; + Color white2 = Color.white; + XSingleton.singleton.GetElementColor(xhudaddEventArgs.damageResult.ElementType, ref bEnable, ref white, ref white2); + xhudEntry.label.SetGradient(bEnable, white, white2); + xhudEntry.label.SetColor(white); + } + bool flag18 = !xhudaddEventArgs.damageResult.IsCritical() && xhudaddEventArgs.damageResult.Result != ProjectResultType.PJRES_IMMORTAL && this._entity.IsMainViewEntity; + if (flag18) + { + xhudEntry.label.SetGradient(false, Color.white, Color.white); + xhudEntry.label.SetColor(new Color32(byte.MaxValue, 32, 73, byte.MaxValue)); + } + bool flag19 = xhudaddEventArgs.damageResult.Value < 0.0; + if (flag19) + { + Color green = Color.green; + Color green2 = Color.green; + xhudEntry.label.SetGradient(true, green, green2); + xhudEntry.label.SetColor(green); + } + this.UIFollowTarget(); + bool flag20 = !xhudEntry.init; + if (flag20) + { + IXHUDDescription ixhuddescription = hudtemplateByDamageResult.transform.GetComponent("HUDDescription") as IXHUDDescription; + xhudEntry.offsetCurve = ixhuddescription.GetPosCurve(); + xhudEntry.alphaCurve = ixhuddescription.GetAlphaCurve(); + xhudEntry.scaleCurve = ixhuddescription.GetScaleCurve(); + } + result = true; + } + } + return result; + } + + private void DeleteHUD(XHudEntry ent) + { + this._List.Remove(ent); + this._Unused.Add(ent); + this.DestroyEntityHudGameObject(ent); + XHUDComponent.currentCount--; + } + + protected void HideEntityHudGameObject(XHudEntry ent) + { + ent.label.gameObject.transform.localPosition = XResourceLoaderMgr.Far_Far_Away; + XSingleton.singleton.UnSafeDestroy(ent.label.gameObject, true, false); + } + + protected void DestroyEntityHudGameObject(XHudEntry ent) + { + ent.label.gameObject.transform.localPosition = XResourceLoaderMgr.Far_Far_Away; + XSingleton.singleton.UnSafeDestroy(ent.label.gameObject, true, false); + } + + private void UIFollowTarget() + { + bool flag = this.gameCamera == null; + if (flag) + { + this.gameCamera = XSingleton.singleton.GameCamera.UnityCamera; + } + float height = this._entity.Height; + Vector3 radiusCenter = this._entity.RadiusCenter; + Vector3 vector; + vector= new Vector3(radiusCenter.x, radiusCenter.y + height, radiusCenter.z); + Vector3 vector2 = this.gameCamera.WorldToViewportPoint(vector); + if (vector2.z > 0f) + { + bool flag2 = vector2.x > 0f && vector2.x < 1f && vector2.y > 0f && vector2.y < 1f; + } + this._hudObject.transform.position = this.uiCamera.ViewportToWorldPoint(vector2); + vector2 = this._hudObject.transform.localPosition; + vector2.x = (float)Mathf.FloorToInt(vector2.x); + vector2.y = (float)Mathf.FloorToInt(vector2.y); + bool flag3 = vector2.y > (float)(XSingleton.singleton.Base_UI_Height / 2) * 0.5f; + if (flag3) + { + vector2.y = (float)(XSingleton.singleton.Base_UI_Height / 2) * 0.5f; + } + vector2.z = 0f; + this._hudObject.transform.localPosition = vector2; + } + + private void UpdateHUDs() + { + float realtimeSinceStartup = Time.realtimeSinceStartup; + int i = this._List.Count; + while (i > 0) + { + XHudEntry xhudEntry = this._List[--i]; + float time = xhudEntry.offsetCurve[xhudEntry.offsetCurve.length - 1].time; + float time2 = xhudEntry.scaleCurve[xhudEntry.scaleCurve.length - 1].time; + float time3 = xhudEntry.alphaCurve[xhudEntry.alphaCurve.length - 1].time; + float num = Mathf.Max(Mathf.Max(time2, time), time3); + float num2 = realtimeSinceStartup - xhudEntry.movementStart; + xhudEntry.offset = xhudEntry.offsetCurve.Evaluate(num2); + float num3 = xhudEntry.scaleCurve.Evaluate(realtimeSinceStartup - xhudEntry.time); + bool flag = num3 < 0.001f; + if (flag) + { + num3 = 0.001f; + } + xhudEntry.label.gameObject.transform.localScale = Vector3.one * num3; + float num4 = xhudEntry.alphaCurve.Evaluate(realtimeSinceStartup - xhudEntry.time); + Color color = xhudEntry.label.GetColor(); + Color color2; + color2= new Color(color.r, color.g, color.b, num4); + xhudEntry.label.SetColor(color2); + bool flag2 = num2 > num; + if (flag2) + { + this.DeleteHUD(xhudEntry); + } + } + float num5 = -200f; + int j = this._List.Count; + while (j > 0) + { + XHudEntry xhudEntry2 = this._List[--j]; + num5 = Mathf.Max(num5, xhudEntry2.offset); + xhudEntry2.label.gameObject.transform.localPosition = new Vector3(0f, num5, 0f); + num5 += Mathf.Round(xhudEntry2.label.gameObject.transform.localScale.y * 20f); + } + } + + public override void PostUpdate(float fDeltaT) + { + this.UpdateHUDs(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHUDComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XHUDComponent.cs.meta new file mode 100644 index 00000000..73d92d43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHUDComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8e6174b6d49486543b65da788df3c109 +timeCreated: 1611404128 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHUDDoodadArgs.cs b/Client/Assets/Scripts/XMainClient/XHUDDoodadArgs.cs new file mode 100644 index 00000000..6d97fd4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHUDDoodadArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XHUDDoodadArgs : XEventArgs + { + public int count { get; set; } + + public int itemid { get; set; } + + public XHUDDoodadArgs() + { + this._eDefine = XEventDefine.XEvent_HUDDoodad; + } + + public override void Recycle() + { + this.count = 0; + this.itemid = 0; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHUDDoodadArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XHUDDoodadArgs.cs.meta new file mode 100644 index 00000000..40711691 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHUDDoodadArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87957ab9086c2884f83483924220c028 +timeCreated: 1611404080 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHallFameDocument.cs b/Client/Assets/Scripts/XMainClient/XHallFameDocument.cs new file mode 100644 index 00000000..bcbf4ad8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHallFameDocument.cs @@ -0,0 +1,319 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XHallFameDocument : XDocComponent + { + public override uint ID + { + get + { + return XHallFameDocument.uuID; + } + } + + public static XHallFameDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XHallFameDocument.uuID) as XHallFameDocument; + } + } + + public List CanSupportType + { + get + { + return this._canSupportType; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("HallFameDocument"); + + public static readonly int Max_Role_Num = 4; + + public ulong SeasonBeginTime = 0UL; + + public ulong SeasonEndTime = 0UL; + + public uint Season_time = 0u; + + private List _list = new List(XHallFameDocument.Max_Role_Num); + + private List _curShowedRoleData; + + private List _canSupportType = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + XSingleton.singleton.AddGreenLog("XHallFameDocument...OnDetachFromHost", null, null, null, null, null); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public List GetRankInfoListBySysID(ArenaStarType id) + { + this._list.Clear(); + XRankType rankTypeByStarType = this.GetRankTypeByStarType(id); + bool flag = rankTypeByStarType != XRankType.InValid; + if (flag) + { + int rankListCountByType = this.GetRankListCountByType(id); + for (int i = 0; i < this._curShowedRoleData.Count; i++) + { + HallFameRoleInfo hallFameRoleInfo = new HallFameRoleInfo(); + hallFameRoleInfo.OutLook = this._curShowedRoleData[i].outlook; + hallFameRoleInfo.hisData = this._curShowedRoleData[i].historydata; + this._list.Add(hallFameRoleInfo); + switch (rankTypeByStarType) + { + case XRankType.LastWeek_PKRank: + { + bool flag2 = i < rankListCountByType; + if (flag2) + { + XQualifyingDocument specificDocument = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + QualifyingRankInfo qualifyingRankInfo = specificDocument.LastSeasonRankList[i]; + hallFameRoleInfo.LastData.Add((int)qualifyingRankInfo.point); + hallFameRoleInfo.LastData.Add((int)qualifyingRankInfo.totalNum); + hallFameRoleInfo.Rank = (uint)(i + 1); + hallFameRoleInfo.TeamName = ""; + } + break; + } + case XRankType.LastWeek_NestWeekRank: + { + FirstPassRankList lastWeekRankList = XWeekNestDocument.Doc.LastWeekRankList; + hallFameRoleInfo.LastData.Add((int)lastWeekRankList.InfoList[0].UseTime); + hallFameRoleInfo.Rank = 1u; + hallFameRoleInfo.TeamName = ""; + break; + } + case XRankType.LastWeek_HeroBattleRank: + { + bool flag3 = i < rankListCountByType; + if (flag3) + { + XHeroBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + HeroBattleRankData heroBattleRankData = specificDocument2.LastWeek_MainRankList[i]; + hallFameRoleInfo.LastData.Add((int)heroBattleRankData.fightTotal); + hallFameRoleInfo.LastData.Add((int)heroBattleRankData.maxContinue); + hallFameRoleInfo.LastData.Add((int)(heroBattleRankData.winTotal / heroBattleRankData.fightTotal * 100f)); + hallFameRoleInfo.LastData.Add((int)heroBattleRankData.maxKills); + hallFameRoleInfo.Rank = (uint)(i + 1); + hallFameRoleInfo.TeamName = ""; + } + break; + } + case XRankType.LastWeek_LeagueTeamRank: + { + XRankDocument specificDocument3 = XDocuments.GetSpecificDocument(XRankDocument.uuID); + XBaseRankList rankList = specificDocument3.GetRankList(rankTypeByStarType); + bool flag4 = rankList.rankList.Count > 0; + if (flag4) + { + XBaseRankInfo xbaseRankInfo = rankList.rankList[0]; + XLeagueTeamRankInfo xleagueTeamRankInfo = xbaseRankInfo as XLeagueTeamRankInfo; + hallFameRoleInfo.LastData.Add((int)xleagueTeamRankInfo.point); + hallFameRoleInfo.LastData.Add((int)xleagueTeamRankInfo.winNum); + hallFameRoleInfo.LastData.Add((int)(xleagueTeamRankInfo.winRate * 100f)); + hallFameRoleInfo.LastData.Add((int)xleagueTeamRankInfo.maxContineWins); + hallFameRoleInfo.Rank = 1u; + hallFameRoleInfo.TeamName = xleagueTeamRankInfo.teamName; + } + break; + } + } + } + } + return this._list; + } + + public HallFameRoleInfo GetRoleInfoByRoleID(ulong roleID) + { + for (int i = 0; i < this._list.Count; i++) + { + bool flag = this._list[i].OutLook.roleid == roleID; + if (flag) + { + return this._list[i]; + } + } + return null; + } + + public void SendArenaStarRoleReq(ArenaStarReqType reqType, ArenaStarType starType, ulong roleID) + { + RpcC2M_ArenaStarRoleReq rpcC2M_ArenaStarRoleReq = new RpcC2M_ArenaStarRoleReq(); + rpcC2M_ArenaStarRoleReq.oArg.reqtype = reqType; + rpcC2M_ArenaStarRoleReq.oArg.roleid = roleID; + rpcC2M_ArenaStarRoleReq.oArg.zantype = starType; + XSingleton.singleton.Send(rpcC2M_ArenaStarRoleReq); + } + + public void OnGetStarRoleInfo(ArenaStarReqArg oArg, ArenaStarReqRes oRes) + { + bool flag = oArg.reqtype == ArenaStarReqType.ASRT_ROLEDATA; + if (flag) + { + this._curShowedRoleData = oRes.toproledata; + this.SeasonBeginTime = (ulong)oRes.seasonbegintime; + this.SeasonEndTime = (ulong)oRes.seasonendtime; + this.Season_time = oRes.season_num; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshRightView(oArg.zantype); + } + } + else + { + bool flag3 = oArg.reqtype == ArenaStarReqType.ASRT_DIANZAN; + if (flag3) + { + bool flag4 = this.CanSupportType.Contains(oArg.zantype); + if (flag4) + { + this.CanSupportType.Remove(oArg.zantype); + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.RefreshRedPoint(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_HallFame, true); + } + } + } + + public XRankType GetRankTypeByStarType(ArenaStarType type) + { + XRankType result; + switch (type) + { + case ArenaStarType.AST_PK: + result = XRankType.LastWeek_PKRank; + break; + case ArenaStarType.AST_HEROBATTLE: + result = XRankType.LastWeek_HeroBattleRank; + break; + case ArenaStarType.AST_WEEKNEST: + result = XRankType.LastWeek_NestWeekRank; + break; + case ArenaStarType.AST_LEAGUE: + result = XRankType.LastWeek_LeagueTeamRank; + break; + default: + result = XRankType.InValid; + break; + } + return result; + } + + public void OnGetSupportInfo(ArenaStarPara data) + { + this.CanSupportType.Clear(); + for (int i = 0; i < data.newdata.Count; i++) + { + this.CanSupportType.Add(data.newdata[i]); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_HallFame, true); + } + + public ArenaStarHistData GetHistoryDataByRoleID(ulong roleID) + { + for (int i = 0; i < this._list.Count; i++) + { + bool flag = this._list[i].OutLook.roleid == roleID; + if (flag) + { + return this._list[i].hisData; + } + } + return null; + } + + public List GetLastSeasonDataByRoleID(ulong roleID) + { + for (int i = 0; i < this._list.Count; i++) + { + bool flag = this._list[i].OutLook.roleid == roleID; + if (flag) + { + return this._list[i].LastData; + } + } + return null; + } + + public string GetVictioryAction(uint basicType) + { + return string.Format("Player_{0}_{1}", XSingleton.singleton.GetLowerCaseWord(basicType), "victory"); + } + + private int GetRankListCountByType(ArenaStarType type) + { + int result = 0; + XRankDocument specificDocument = XDocuments.GetSpecificDocument(XRankDocument.uuID); + switch (type) + { + case ArenaStarType.AST_PK: + { + bool flag = specificDocument.LastWeekQualifyingRankList != null; + if (flag) + { + XQualifyingDocument specificDocument2 = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + result = specificDocument2.LastSeasonRankList.Count; + } + break; + } + case ArenaStarType.AST_HEROBATTLE: + { + XHeroBattleDocument specificDocument3 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + result = specificDocument3.LastWeek_MainRankList.Count; + break; + } + case ArenaStarType.AST_WEEKNEST: + result = XWeekNestDocument.Doc.LastWeekRankList.InfoList.Count; + break; + case ArenaStarType.AST_LEAGUE: + { + bool flag2 = specificDocument.LastWeekLeagueTeamRankList != null; + if (flag2) + { + result = specificDocument.LastWeekLeagueTeamRankList.rankList.Count; + } + break; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHallFameDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XHallFameDocument.cs.meta new file mode 100644 index 00000000..da95bdb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHallFameDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: edd17b350ea016e409938ccdbc3de185 +timeCreated: 1611404793 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHallStage.cs b/Client/Assets/Scripts/XMainClient/XHallStage.cs new file mode 100644 index 00000000..e9ca8794 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHallStage.cs @@ -0,0 +1,39 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XHallStage : XConcreteStage + { + public XHallStage() : base(EXStage.Hall) + { + } + + protected override void InstallCamera() + { + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraCloseUpComponent.uuID); + base.InstallCamera(); + } + + public override void OnEnterScene(uint sceneid, bool transfer) + { + base.OnEnterScene(sceneid, transfer); + XSingleton.singleton.LoadHallUI(this._eStage); + DlgBase.singleton.SetVisible(true, true); + XSingleton.singleton.EnableSDONotify(); + } + + public override void OnLeaveScene(bool transfer) + { + base.OnLeaveScene(transfer); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + XSingleton.singleton.Update(fDeltaT); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHallStage.cs.meta b/Client/Assets/Scripts/XMainClient/XHallStage.cs.meta new file mode 100644 index 00000000..6a347cb0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHallStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2467c21d9fd3044181c01268ca43e10 +timeCreated: 1611404383 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHeroBattleDocument.cs b/Client/Assets/Scripts/XMainClient/XHeroBattleDocument.cs new file mode 100644 index 00000000..7ec32f8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHeroBattleDocument.cs @@ -0,0 +1,906 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XHeroBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XHeroBattleDocument.uuID; + } + } + + private XHeroBattleSkillDocument _skillDoc + { + get + { + bool flag = this._valueDoc == null; + if (flag) + { + this._valueDoc = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + } + return this._valueDoc; + } + } + + public OverWatchTable OverWatchReader + { + get + { + return XHeroBattleDocument._overWatchReader; + } + } + + public HeroBattleMapCenter HeroBattleMapReader + { + get + { + return XHeroBattleDocument._heroBattleMapReader; + } + } + + public HeroBattleTips HerobattletipsReader + { + get + { + return XHeroBattleDocument._herobattletips; + } + } + + public HeroBattleWeekReward HeroBattleWeekRewardReader + { + get + { + return XHeroBattleDocument._heroBattleWeekReward; + } + } + + public HeroBattleExperienceHero HeroExperienceReader + { + get + { + return XHeroBattleDocument._experienceReader; + } + } + + public List RecordList + { + get + { + return this._recordList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("HeroBattleDocument"); + + private XHeroBattleSkillDocument _valueDoc; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static OverWatchTable _overWatchReader = new OverWatchTable(); + + private static HeroBattleMapCenter _heroBattleMapReader = new HeroBattleMapCenter(); + + private static HeroBattleTips _herobattletips = new HeroBattleTips(); + + private static HeroBattleWeekReward _heroBattleWeekReward = new HeroBattleWeekReward(); + + private static HeroBattleExperienceHero _experienceReader = new HeroBattleExperienceHero(); + + private List _recordList = new List(); + + private Dictionary _nameIndex = new Dictionary(); + + public HeroBattleHandler _HeroBattleHandler; + + public List RankList = new List(); + + public List TeamBlood = new List(); + + public Dictionary heroIDIndex = new Dictionary(); + + public List MainRankList = new List(); + + public HeroBattleRankData MyRankData = new HeroBattleRankData(); + + public List LastWeek_MainRankList = new List(); + + public HeroBattleRankData LastWeek_MyRankData = new HeroBattleRankData(); + + public bool MaininterfaceState = false; + + public uint BattleTotal; + + public uint BattleWin; + + public uint BattleLose; + + public uint WinThisWeek; + + public uint JoinToday; + + public uint MyTeam; + + public ulong SpectateUid = 0UL; + + public HeroBattleRewardState RewardState; + + public uint GetRewardStage; + + public static bool LoadSkillHandler = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XHeroBattleDocument.AsyncLoader.AddTask("Table/OverWatch", XHeroBattleDocument._overWatchReader, false); + XHeroBattleDocument.AsyncLoader.AddTask("Table/HeroBattleTips", XHeroBattleDocument._herobattletips, false); + XHeroBattleDocument.AsyncLoader.AddTask("Table/HeroBattleWeekReward", XHeroBattleDocument._heroBattleWeekReward, false); + XHeroBattleDocument.AsyncLoader.AddTask("Table/HeroBattleMapCenter", XHeroBattleDocument._heroBattleMapReader, false); + XHeroBattleDocument.AsyncLoader.AddTask("Table/HeroBattleExperienceHero", XHeroBattleDocument._experienceReader, false); + XHeroBattleDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnPlayerDeathEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnRevived, new XComponent.XEventHandler(this.OnPlayerReviveEvent)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool loadSkillHandler = XHeroBattleDocument.LoadSkillHandler; + if (loadSkillHandler) + { + XHeroBattleSkillDocument.IsWeekendNestLoad = true; + XHeroBattleDocument.LoadSkillHandler = false; + } + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag2 = !XSingleton.singleton.bSpectator && !specificDocument.bInTeam; + if (flag2) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_HeroBattle, EXStage.Hall); + } + } + else + { + bool isWeekendNestLoad = XHeroBattleSkillDocument.IsWeekendNestLoad; + if (isWeekendNestLoad) + { + XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.ShowHeroNestTips), null); + } + } + } + + private void ShowHeroNestTips(object o = null) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WeekendHeroNestLevelTips"), "fece00"); + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this.TeamBlood.Clear(); + } + + public void QueryHeroBattleUIInfo() + { + RpcC2G_GetHeroBattleInfo rpc = new RpcC2G_GetHeroBattleInfo(); + XSingleton.singleton.Send(rpc); + } + + public void QueryGetReward() + { + RpcC2G_GetHeroBattleWeekReward rpc = new RpcC2G_GetHeroBattleWeekReward(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetRewardSuccess(bool getState, uint stage) + { + this.GetRewardStage = stage; + this.RewardState = HeroBattleRewardState.CanNotGet; + if (getState) + { + this.RewardState = HeroBattleRewardState.CanGet; + } + bool flag = this.GetRewardStage == this.HeroBattleWeekRewardReader.Table[this.HeroBattleWeekRewardReader.Table.Length - 1].id; + if (flag) + { + this.GetRewardStage -= 1u; + this.RewardState = HeroBattleRewardState.GetEnd; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshInfo(); + } + } + + public void QueryBattleRecord() + { + RpcC2G_GetHeroBattleGameRecord rpc = new RpcC2G_GetHeroBattleGameRecord(); + XSingleton.singleton.Send(rpc); + } + + public void QueryRankInfo() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.HeroBattleRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void QueryLastSeasonRankInfo() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.LastWeek_HeroBattleRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void SetBattleRecord(List list) + { + this._recordList.Clear(); + for (int i = list.Count - 1; i >= 0; i--) + { + BattleRecordGameInfo battleRecordGameInfo = new BattleRecordGameInfo(); + bool flag = true; + for (int j = 0; j < list[i].team1.Count; j++) + { + bool flag2 = list[i].team1[j].roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + flag = true; + battleRecordGameInfo.left.Add(this.GetOnePlayerInfo(list[i].team1[j])); + } + } + for (int k = 0; k < list[i].team2.Count; k++) + { + bool flag3 = list[i].team2[k].roleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + flag = false; + battleRecordGameInfo.left.Add(this.GetOnePlayerInfo(list[i].team2[k])); + } + } + for (int l = 0; l < list[i].team1.Count; l++) + { + bool flag4 = list[i].team1[l].roleID == XSingleton.singleton.XPlayerData.RoleID; + if (!flag4) + { + bool flag5 = flag; + if (flag5) + { + battleRecordGameInfo.left.Add(this.GetOnePlayerInfo(list[i].team1[l])); + } + else + { + battleRecordGameInfo.right.Add(this.GetOnePlayerInfo(list[i].team1[l])); + } + } + } + for (int m = 0; m < list[i].team2.Count; m++) + { + bool flag6 = list[i].team2[m].roleID == XSingleton.singleton.XPlayerData.RoleID; + if (!flag6) + { + bool flag7 = flag; + if (flag7) + { + battleRecordGameInfo.right.Add(this.GetOnePlayerInfo(list[i].team2[m])); + } + else + { + battleRecordGameInfo.left.Add(this.GetOnePlayerInfo(list[i].team2[m])); + } + } + } + battleRecordGameInfo.result = list[i].over; + battleRecordGameInfo.militaryExploit = list[i].exploit; + this._recordList.Add(battleRecordGameInfo); + } + bool flag8 = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_HeroBattleRecordHandler != null && DlgBase.singleton.m_HeroBattleRecordHandler.IsVisible(); + if (flag8) + { + DlgBase.singleton.m_HeroBattleRecordHandler.SetupRecord(this.RecordList); + } + bool flag9 = DlgBase.singleton.IsVisible() && DlgBase.singleton.m_BattleRecordHandler != null && DlgBase.singleton.m_BattleRecordHandler.IsVisible(); + if (flag9) + { + DlgBase.singleton.m_BattleRecordHandler.SetupRecord(this.RecordList); + } + } + + public BattleRecordPlayerInfo GetOnePlayerInfo(RoleSmallInfo data) + { + return new BattleRecordPlayerInfo + { + name = data.roleName, + profression = data.roleProfession, + roleID = data.roleID + }; + } + + public void SetHeroBattleInfo(GetHeroBattleInfoRes data) + { + this._skillDoc.SetHeroHoldStatus(data.weekhero, data.havehero, data.experiencehero, data.experienceherolefttime); + this.BattleTotal = data.totalnum; + this.BattleWin = data.winnum; + this.BattleLose = data.losenum; + this.WinThisWeek = data.winthisweek; + this.JoinToday = data.todaygetspcount; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_HeroBattle, true); + this.GetRewardStage = data.weekprize; + this.RewardState = HeroBattleRewardState.CanNotGet; + bool cangetprize = data.cangetprize; + if (cangetprize) + { + this.RewardState = HeroBattleRewardState.CanGet; + } + bool flag = this.GetRewardStage == this.HeroBattleWeekRewardReader.Table[this.HeroBattleWeekRewardReader.Table.Length - 1].id; + if (flag) + { + this.GetRewardStage -= 1u; + this.RewardState = HeroBattleRewardState.GetEnd; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshInfo(); + bool flag3 = DlgBase.singleton.m_HeroBattleSkillHandler != null; + if (flag3) + { + DlgBase.singleton.m_HeroBattleSkillHandler.SetupTabs(); + } + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + bool flag5 = DlgBase.singleton.m_HeroBattleSkillHandler != null; + if (flag5) + { + DlgBase.singleton.m_HeroBattleSkillHandler.SetupTabs(); + } + } + } + + public void SetHeroBattleInfo(HeroBattleRecord data) + { + this._skillDoc.SetHeroHoldStatus(data.freeweekhero, data.havehero, data.experiencehero, data.experienceherotime); + this.BattleTotal = data.totalnum; + this.BattleWin = data.winnum; + this.BattleLose = data.losenum; + this.WinThisWeek = data.winthisweek; + this.JoinToday = data.todayspcount; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_HeroBattle, true); + this.GetRewardStage = data.weekprize; + this.RewardState = HeroBattleRewardState.CanNotGet; + bool cangetprize = data.cangetprize; + if (cangetprize) + { + this.RewardState = HeroBattleRewardState.CanGet; + } + bool flag = this.GetRewardStage == this.HeroBattleWeekRewardReader.Table[this.HeroBattleWeekRewardReader.Table.Length - 1].id; + if (flag) + { + this.GetRewardStage -= 1u; + this.RewardState = HeroBattleRewardState.GetEnd; + } + } + + public void SetHeroBattleMyTeam(HeroBattleTeamRoleData data) + { + bool flag = XSingleton.singleton.XPlayerData == null; + if (!flag) + { + bool bSpectator = XSingleton.singleton.bSpectator; + ulong num; + if (bSpectator) + { + num = this.SpectateUid; + } + else + { + num = XSingleton.singleton.XPlayerData.RoleID; + } + this.heroIDIndex.Clear(); + for (int i = 0; i < data.members1.Count; i++) + { + this.heroIDIndex[data.members1[i].uid] = data.members1[i].heroid; + bool flag2 = data.members1[i].uid == num; + if (flag2) + { + this.MyTeam = data.team1; + bool flag3 = !this._skillDoc.AlSelectHero && data.members1[i].heroid > 0u; + if (flag3) + { + this._skillDoc.SetAlreadySelectHero(); + } + } + } + for (int j = 0; j < data.members2.Count; j++) + { + this.heroIDIndex[data.members2[j].uid] = data.members2[j].heroid; + bool flag4 = data.members2[j].uid == num; + if (flag4) + { + this.MyTeam = data.team2; + bool flag5 = !this._skillDoc.AlSelectHero && data.members2[j].heroid > 0u; + if (flag5) + { + this._skillDoc.SetAlreadySelectHero(); + } + } + } + BattleIndicateHandler battleIndicateHandler = XSingleton.singleton.bSpectator ? DlgBase.singleton.IndicateHandler : DlgBase.singleton.IndicateHandler; + bool flag6 = battleIndicateHandler != null; + if (flag6) + { + for (int k = 0; k < data.members1.Count; k++) + { + battleIndicateHandler.SetHeroMiniMapElement(data.members1[k].uid, data.members1[k].heroid, data.team1 == this.MyTeam, false); + bool flag7 = data.members1[k].uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag7) + { + bool flag8 = this._HeroBattleHandler != null && this._HeroBattleHandler.IsVisible(); + if (flag8) + { + this._HeroBattleHandler.RefreshScoreBoard(data.members1[k].killnum, data.members1[k].deathnum, data.members1[k].assitnum); + } + } + } + for (int l = 0; l < data.members2.Count; l++) + { + battleIndicateHandler.SetHeroMiniMapElement(data.members2[l].uid, data.members2[l].heroid, data.team2 == this.MyTeam, false); + bool flag9 = data.members2[l].uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag9) + { + bool flag10 = this._HeroBattleHandler != null && this._HeroBattleHandler.IsVisible(); + if (flag10) + { + this._HeroBattleHandler.RefreshScoreBoard(data.members2[l].killnum, data.members2[l].deathnum, data.members2[l].assitnum); + } + } + } + } + bool flag11 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.TeamMonitor != null; + if (flag11) + { + this.TeamBlood.Clear(); + this._skillDoc.TAS.Clear(); + bool flag12 = this.MyTeam == data.team1; + if (flag12) + { + for (int m = 0; m < data.members1.Count; m++) + { + this.TeamBlood.Add(this.Turn2TeamBloodData(data.members1[m])); + bool flag13 = data.members1[m].uid != num; + if (flag13) + { + this._skillDoc.TAS.Add(data.members1[m].heroid); + } + } + } + else + { + for (int n = 0; n < data.members2.Count; n++) + { + this.TeamBlood.Add(this.Turn2TeamBloodData(data.members2[n])); + bool flag14 = data.members2[n].uid != num; + if (flag14) + { + this._skillDoc.TAS.Add(data.members2[n].heroid); + } + } + } + bool flag15 = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag15) + { + DlgBase.singleton.TeamMonitor.TeamInfoChangeOnSpectate(this.TeamBlood); + } + bool flag16 = this._skillDoc._HeroBattleTeamHandler != null; + if (flag16) + { + this._skillDoc._HeroBattleTeamHandler.Refresh(); + } + bool flag17 = !this._skillDoc.CSSH && this._skillDoc.m_HeroBattleSkillHandler != null; + if (flag17) + { + this._skillDoc.m_HeroBattleSkillHandler.RefreshTab(); + } + } + bool flag18 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.SpectateTeamMonitor != null; + if (flag18) + { + DlgBase.singleton.SpectateTeamMonitor.OnTeamInfoChanged(); + } + bool flag19 = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag19) + { + this.RankList.Clear(); + bool flag20 = !DlgBase.singleton.IsLoaded() || data.team1 == this.MyTeam; + if (flag20) + { + for (int num2 = 0; num2 < data.members1.Count; num2++) + { + this.RankList.Add(this.Turn2DamageData(data.members1[num2])); + } + } + bool flag21 = !DlgBase.singleton.IsLoaded() || data.team2 == this.MyTeam; + if (flag21) + { + for (int num3 = 0; num3 < data.members2.Count; num3++) + { + this.RankList.Add(this.Turn2DamageData(data.members2[num3])); + } + } + XSceneDamageRankDocument specificDocument = XDocuments.GetSpecificDocument(XSceneDamageRankDocument.uuID); + specificDocument.OnGetRank(this.RankList); + } + } + } + + private XTeamBloodUIData Turn2TeamBloodData(HeroBattleTeamMember data) + { + return new XTeamBloodUIData + { + uid = data.uid, + entityID = data.uid, + level = 0u, + name = data.name, + bIsLeader = false, + profession = RoleType.Role_Warrior + }; + } + + private XCaptainPVPInfo Turn2DamageData(HeroBattleTeamMember data) + { + return new XCaptainPVPInfo + { + name = data.name, + kill = (int)data.killnum, + dead = (int)data.deathnum, + id = data.uid, + assit = (int)data.assitnum + }; + } + + public void SetHeroBattleTeamData(HeroBattleTeamMsg data) + { + bool flag = this._HeroBattleHandler != null; + if (flag) + { + this._HeroBattleHandler.SetTeamData(data); + } + } + + public void SetHeroBattleProgressData(HeroBattleSyncData data) + { + bool flag = this._HeroBattleHandler != null; + if (flag) + { + this._HeroBattleHandler.SetProgressData(data); + } + } + + public void SetHeroBattleInCircleData(HeroBattleInCircle data) + { + bool flag = this._HeroBattleHandler != null; + if (flag) + { + this._HeroBattleHandler.SetInCircleData(data); + } + } + + public void StartHeroBattleAddTime(int time) + { + bool flag = this._HeroBattleHandler != null; + if (flag) + { + this._HeroBattleHandler.StartAddTime(time); + } + } + + public bool OnPlayerDeathEvent(XEventArgs args) + { + bool flag = this._HeroBattleHandler == null; + bool result; + if (flag) + { + result = false; + } + else + { + XRealDeadEventArgs xrealDeadEventArgs = args as XRealDeadEventArgs; + bool flag2 = !xrealDeadEventArgs.TheDead.IsPlayer; + if (flag2) + { + result = false; + } + else + { + this._HeroBattleHandler.SetDeathGoState(true); + this._HeroBattleHandler.SetReviveLeftTime(); + bool flag3 = this._skillDoc.m_HeroBattleSkillHandler != null; + if (flag3) + { + this._skillDoc.m_HeroBattleSkillHandler.SetCountDown(float.Parse(XSingleton.singleton.GetValue("HeroBattleReviveTime")), false); + } + result = true; + } + } + return result; + } + + public bool OnPlayerReviveEvent(XEventArgs args) + { + bool flag = this._HeroBattleHandler == null; + bool result; + if (flag) + { + result = false; + } + else + { + XOnRevivedArgs xonRevivedArgs = args as XOnRevivedArgs; + bool flag2 = !xonRevivedArgs.entity.IsPlayer; + if (flag2) + { + result = false; + } + else + { + this._HeroBattleHandler.SetDeathGoState(false); + result = true; + } + } + return result; + } + + public void SetUIDeathGoState(bool state) + { + bool flag = this._HeroBattleHandler != null; + if (flag) + { + this._HeroBattleHandler.SetDeathGoState(state); + } + bool flag2 = this._skillDoc.m_HeroBattleSkillHandler != null; + if (flag2) + { + this._skillDoc.m_HeroBattleSkillHandler.SetVisible(false); + } + } + + public void ReceiveBattleSkill(PvpBattleKill battleSkillInfo) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_HEROBATTLE; + if (!flag) + { + GVGBattleSkill gvgbattleSkill = new GVGBattleSkill(); + gvgbattleSkill.killerID = battleSkillInfo.killID; + gvgbattleSkill.deadID = battleSkillInfo.deadID; + gvgbattleSkill.contiKillCount = battleSkillInfo.contiKillCount; + bool flag2 = false; + for (int i = 0; i < battleSkillInfo.assitids.Count; i++) + { + bool flag3 = battleSkillInfo.assitids[i] == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + flag2 = true; + break; + } + } + bool flag4 = flag2; + if (flag4) + { + gvgbattleSkill.contiKillCount = -1; + DlgBase.singleton.AddBattleSkill(gvgbattleSkill); + } + else + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(gvgbattleSkill.killerID); + XEntity entityConsiderDeath2 = XSingleton.singleton.GetEntityConsiderDeath(gvgbattleSkill.deadID); + bool flag5 = entityConsiderDeath == null || entityConsiderDeath2 == null; + if (flag5) + { + XSingleton.singleton.AddLog("entity id: " + gvgbattleSkill.killerID, " dead id: " + gvgbattleSkill.deadID, null, null, null, null, XDebugColor.XDebug_None); + return; + } + gvgbattleSkill.killerName = entityConsiderDeath.Name; + gvgbattleSkill.deadName = entityConsiderDeath2.Name; + gvgbattleSkill.killerPosition = XSingleton.singleton.IsAlly(entityConsiderDeath); + DlgBase.singleton.AddBattleSkill(gvgbattleSkill); + XSingleton.singleton.AddGreenLog(string.Format("ReceiveBattleSkill:{0} --- ,{1} ,.... {2}", gvgbattleSkill.killerName, gvgbattleSkill.deadName, gvgbattleSkill.contiKillCount), null, null, null, null, null); + } + for (int j = 0; j < this.RankList.Count; j++) + { + bool flag6 = battleSkillInfo.killID == this.RankList[j].id; + if (flag6) + { + this.RankList[j].kill++; + } + bool flag7 = battleSkillInfo.deadID == this.RankList[j].id; + if (flag7) + { + this.RankList[j].dead++; + } + } + XSceneDamageRankDocument specificDocument = XDocuments.GetSpecificDocument(XSceneDamageRankDocument.uuID); + specificDocument.OnGetRank(this.RankList); + } + } + + public void GetBattleTips(uint id) + { + bool flag = !DlgBase.singleton.IsLoaded(); + if (!flag) + { + HeroBattleTips.RowData byid = XHeroBattleDocument._herobattletips.GetByid(id); + bool flag2 = byid != null; + if (flag2) + { + DlgBase.singleton.ShowNotice(byid.tips, 3f, 3f); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.QueryHeroBattleUIInfo(); + } + } + + public void StartMvpCutScene() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + HeroBattleMapCenter.RowData bySceneID = XHeroBattleDocument._heroBattleMapReader.GetBySceneID(XSingleton.singleton.SceneID); + bool flag2 = bySceneID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Can't find mvp map data by sceneID = ", XSingleton.singleton.SceneID.ToString(), null, null, null, null); + } + else + { + XSingleton.singleton.Start(bySceneID.MVPCutScene, true, true); + } + } + + public uint GetExperienceTicketID(uint heroID) + { + for (int i = 0; i < XHeroBattleDocument._experienceReader.Table.Length; i++) + { + bool flag = XHeroBattleDocument._experienceReader.Table[i].HeroID == heroID; + if (flag) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)XHeroBattleDocument._experienceReader.Table[i].ItemID); + bool flag2 = itemCount > 0UL; + if (flag2) + { + return XHeroBattleDocument._experienceReader.Table[i].ItemID; + } + } + } + return 0u; + } + + public void SetRankInfo(ClientQueryRankListRes oRes, bool LastWeek = false) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + bool flag2 = oRes.RankList == null; + if (!flag2) + { + HeroBattleRankData heroBattleRankData = LastWeek ? this.LastWeek_MyRankData : this.MyRankData; + List list = LastWeek ? this.LastWeek_MainRankList : this.MainRankList; + heroBattleRankData.roleID = 0UL; + heroBattleRankData.name = XSingleton.singleton.XPlayerData.Name; + heroBattleRankData.rank = oRes.RoleRankData.Rank; + heroBattleRankData.winTotal = this.BattleWin; + heroBattleRankData.fightTotal = this.BattleTotal; + list.Clear(); + for (int i = 0; i < oRes.RankList.RankData.Count; i++) + { + list.Add(this.TurnServerData(oRes.RankList.RankData[i], (uint)i)); + } + bool flag3 = DlgBase.singleton.IsVisible() && !LastWeek; + if (flag3) + { + DlgBase.singleton.SetupRankFrame(); + } + } + } + } + + public HeroBattleRankData TurnServerData(RankData data, uint rank) + { + return new HeroBattleRankData + { + roleID = data.RoleId, + name = data.RoleName, + rank = rank, + winTotal = data.heroinfo.winNum, + fightTotal = data.heroinfo.totalNum, + maxContinue = data.heroinfo.continueWinNum, + maxKills = data.heroinfo.maxKillNum + }; + } + + public static void GetIconByHeroID(uint heroID, out string atlas, out string icon) + { + OverWatchTable.RowData byHeroID = XHeroBattleDocument._overWatchReader.GetByHeroID(heroID); + bool flag = byHeroID != null; + if (flag) + { + atlas = byHeroID.IconAtlas; + icon = byHeroID.Icon; + } + else + { + atlas = ""; + icon = ""; + } + } + + public static string GetSmallIconByHeroID(uint heroID) + { + OverWatchTable.RowData byHeroID = XHeroBattleDocument._overWatchReader.GetByHeroID(heroID); + bool flag = byHeroID != null; + string result; + if (flag) + { + result = byHeroID.MiniMapIcon; + } + else + { + result = ""; + } + return result; + } + + public static OverWatchTable.RowData GetDataByHeroID(uint heroID) + { + return XHeroBattleDocument._overWatchReader.GetByHeroID(heroID); + } + + public void OnAncientPercentGet(float percent) + { + bool flag = DlgBase.singleton.m_HeroBattleHandler != null; + if (flag) + { + DlgBase.singleton.m_HeroBattleHandler.SetAncientPercent(percent); + } + } + + public void QueryUseAncientSkill(int skillIndex) + { + RpcC2G_SelectHeroAncientPower rpcC2G_SelectHeroAncientPower = new RpcC2G_SelectHeroAncientPower(); + rpcC2G_SelectHeroAncientPower.oArg.selectpower = (uint)skillIndex; + XSingleton.singleton.Send(rpcC2G_SelectHeroAncientPower); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHeroBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XHeroBattleDocument.cs.meta new file mode 100644 index 00000000..823d7cb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHeroBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 97d48ac4c1fa08e49a33c0891822ca7a +timeCreated: 1611404189 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHeroBattleSkillDocument.cs b/Client/Assets/Scripts/XMainClient/XHeroBattleSkillDocument.cs new file mode 100644 index 00000000..02f14b49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHeroBattleSkillDocument.cs @@ -0,0 +1,478 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XHeroBattleSkillDocument : XDocComponent + { + public override uint ID + { + get + { + return XHeroBattleSkillDocument.uuID; + } + } + + private XHeroBattleDocument _heroDoc + { + get + { + bool flag = this._valueDoc == null; + if (flag) + { + this._valueDoc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + } + return this._valueDoc; + } + } + + public HashSet WeekFreeList + { + get + { + return this._weekFreeList; + } + } + + public HashSet AlreadyGetList + { + get + { + return this._alreadyGetList; + } + } + + public HashSet ExperienceList + { + get + { + return this._experienceList; + } + } + + public Dictionary ExperienceTimeDict + { + get + { + return this._experienceTimeDict; + } + } + + public uint CurrentSelect + { + get + { + return this._currentSelect; + } + set + { + this._currentSelect = value; + this._currentEntityStatisticsID = this._heroDoc.OverWatchReader.GetByHeroID(this._currentSelect).StatisticsID; + } + } + + public uint[] CurrentEntityStatisticsID + { + get + { + return this._currentEntityStatisticsID; + } + } + + public XDummy Dummy { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("HeroBattleSkillDocument"); + + private XHeroBattleDocument _valueDoc; + + public HeroBattleSkillHandler m_HeroBattleSkillHandler; + + public HeroBattleTeamHandler _HeroBattleTeamHandler; + + private HashSet _weekFreeList = new HashSet(); + + private HashSet _alreadyGetList = new HashSet(); + + private HashSet _experienceList = new HashSet(); + + private Dictionary _experienceTimeDict = new Dictionary(); + + public HashSet TAS = new HashSet(); + + public bool CSSH = false; + + public bool AlSelectHero = false; + + public readonly uint UNSELECT = 100000u; + + private uint _currentSelect; + + private uint[] _currentEntityStatisticsID; + + public bool IsPreViewShow; + + public uint CurrentSelectExperienceTicketID; + + public Camera BlackHouseCamera; + + public GameObject BlackHouse; + + private RenderTexture skillPreView; + + public static bool IsWeekendNestLoad; + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AttackShowEnd, new XComponent.XEventHandler(this.SkillPlayFinished)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemChange)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.IsPreViewShow = false; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + XHeroBattleSkillDocument.IsWeekendNestLoad = false; + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag) + { + this.CSSH = (XSingleton.singleton.GetValue("HeroBattleCanChooseSame") == "1"); + } + else + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag2) + { + this.CSSH = false; + } + else + { + this.CSSH = true; + } + } + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag3) + { + bool flag4 = this.m_HeroBattleSkillHandler != null; + if (flag4) + { + this.m_HeroBattleSkillHandler.SetCountDown(float.Parse(XSingleton.singleton.GetValue("HeroBattleChooseHeroTime")), true); + } + } + bool flag5 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag5) + { + bool flag6 = this.m_HeroBattleSkillHandler != null; + if (flag6) + { + this.m_HeroBattleSkillHandler.SetCountDown(float.Parse(XSingleton.singleton.GetValue("MobaBattleChooseHeroTime")), true); + } + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE || XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag) + { + this.TAS.Clear(); + } + this.AlSelectHero = false; + } + + public void SetHeroHoldStatus(List weekList, List haveList, List experienceList, List expTimeList) + { + this._weekFreeList.Clear(); + this._alreadyGetList.Clear(); + this._experienceList.Clear(); + this._experienceTimeDict.Clear(); + for (int i = 0; i < weekList.Count; i++) + { + this._weekFreeList.Add(weekList[i]); + } + for (int j = 0; j < haveList.Count; j++) + { + this._alreadyGetList.Add(haveList[j]); + } + for (int k = 0; k < experienceList.Count; k++) + { + this._experienceList.Add(experienceList[k]); + this._experienceTimeDict[experienceList[k]] = expTimeList[k]; + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void SetHeroBattleCanUseHero(HeroBattleCanUseHeroData data) + { + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.m_HeroBattleSkillHandler != null; + if (flag) + { + this.CheckWeekFreeDif(data.freehero, data.havehero, data.experiencehero); + bool isWeekendNestLoad = XHeroBattleSkillDocument.IsWeekendNestLoad; + if (isWeekendNestLoad) + { + this.m_HeroBattleSkillHandler.SetCountDown(data.leftChooseTime, true); + } + } + } + + public void SetUnSelect() + { + this._currentSelect = this.UNSELECT; + } + + private void CheckWeekFreeDif(List freeList, List haveList, List experienceList) + { + bool flag = false; + for (int i = 0; i < freeList.Count; i++) + { + bool flag2 = !this._weekFreeList.Contains(freeList[i]); + if (flag2) + { + this._weekFreeList.Clear(); + for (int j = 0; j < freeList.Count; j++) + { + this._weekFreeList.Add(freeList[j]); + } + flag = true; + break; + } + } + for (int k = 0; k < haveList.Count; k++) + { + bool flag3 = !this._alreadyGetList.Contains(haveList[k]); + if (flag3) + { + this._alreadyGetList.Clear(); + for (int l = 0; l < haveList.Count; l++) + { + this._alreadyGetList.Add(haveList[l]); + } + flag = true; + break; + } + } + for (int m = 0; m < experienceList.Count; m++) + { + bool flag4 = !this._experienceList.Contains(experienceList[m]); + if (flag4) + { + this._experienceList.Clear(); + for (int n = 0; n < experienceList.Count; n++) + { + this._experienceList.Add(experienceList[n]); + } + flag = true; + break; + } + } + bool flag5 = flag && this.m_HeroBattleSkillHandler != null; + if (flag5) + { + this.m_HeroBattleSkillHandler.RefreshTab(); + } + } + + public void CreateSkillBlackHouse() + { + bool flag = this.BlackHouse == null; + if (flag) + { + XSingleton.singleton.GetSkillBlackHouse(ref this.BlackHouse, ref this.BlackHouseCamera); + this.BlackHouseCamera.enabled = false; + } + } + + public void ReplaceDummy(int HandlerType) + { + this.DelDummy(); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._currentEntityStatisticsID[HandlerType]); + XOutlookData xoutlookData = new XOutlookData(); + xoutlookData.SetDefaultFashion(byID.FashionTemplate); + this.Dummy = XSingleton.singleton.CreateDummy(byID.PresentID, 0u, null, true, true, true); + bool flag = this.Dummy == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Dummy Creat Fail.", null, null, null, null, null); + } + else + { + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + this.Dummy.OverrideAnimClip("Idle", byPresentID.Idle, true, false); + XSingleton.singleton.ResetDummyPos(this.Dummy); + } + } + + public void DelDummy() + { + bool flag = this.Dummy != null; + if (flag) + { + XSingleton.singleton.SkillShowEnd(this.Dummy); + XSingleton.singleton.DestroyEntity(this.Dummy); + this.Dummy = null; + } + } + + public void SetSkillPreviewTexture(RenderTexture rt) + { + this.skillPreView = rt; + bool flag = this.BlackHouseCamera != null; + if (flag) + { + this.BlackHouseCamera.targetTexture = rt; + } + } + + public bool SkillPlayFinished(XEventArgs args) + { + bool flag = this.m_HeroBattleSkillHandler == null || !this.m_HeroBattleSkillHandler.IsVisible(); + bool result; + if (flag) + { + result = false; + } + else + { + this.m_HeroBattleSkillHandler.SetPlayBtnState(true); + result = true; + } + return result; + } + + public void QueryBuyHero(uint heroID) + { + RpcC2G_BuyHeroInHeroBattle rpcC2G_BuyHeroInHeroBattle = new RpcC2G_BuyHeroInHeroBattle(); + rpcC2G_BuyHeroInHeroBattle.oArg.heroid = heroID; + XSingleton.singleton.Send(rpcC2G_BuyHeroInHeroBattle); + } + + public void OnBuyHeroSuccess(uint heroID) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("HeroBattleBuySuccess"), "fece00"); + this._alreadyGetList.Add(heroID); + bool flag = this.m_HeroBattleSkillHandler != null; + if (flag) + { + this.m_HeroBattleSkillHandler.RefreshTab(); + bool flag2 = this.m_HeroBattleSkillHandler.LastSelectSprite != null; + if (flag2) + { + this.m_HeroBattleSkillHandler.OnTabClick(this.m_HeroBattleSkillHandler.LastSelectSprite); + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.uiBehaviour.m_BuyBtn.SetVisible(false); + } + bool flag4 = this.m_HeroBattleSkillHandler != null && this.m_HeroBattleSkillHandler.IsVisible(); + if (flag4) + { + this.m_HeroBattleSkillHandler.SetFx(); + } + } + + public void QuerySelectBattleHero() + { + RpcC2G_SetHeroInHeroBattle rpcC2G_SetHeroInHeroBattle = new RpcC2G_SetHeroInHeroBattle(); + rpcC2G_SetHeroInHeroBattle.oArg.heroid = this._currentSelect; + XSingleton.singleton.Send(rpcC2G_SetHeroInHeroBattle); + } + + public void OnSelectHeroSuccess(uint heroID) + { + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID(heroID); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("HeroBattleChangeHero"), byHeroID.Name), "fece00"); + XSingleton.singleton.AddGreenLog("Select Hero Success.", null, null, null, null, null); + this.SetAlreadySelectHero(); + } + + public void SetAlreadySelectHero() + { + this.AlSelectHero = true; + bool flag = this.m_HeroBattleSkillHandler != null; + if (flag) + { + this.m_HeroBattleSkillHandler.SetVisible(false); + } + } + + protected bool OnItemChange(XEventArgs args) + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag = xitemNumChangedEventArgs.item.type == 30u && xitemNumChangedEventArgs.oldCount > xitemNumChangedEventArgs.item.itemCount; + if (flag) + { + this.OnUseTicketSuccess((uint)xitemNumChangedEventArgs.item.itemID); + } + return true; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + for (int i = 0; i < xremoveItemEventArgs.types.Count; i++) + { + bool flag = xremoveItemEventArgs.types[i] == ItemType.Hero_Experience_Ticket; + if (flag) + { + this.OnUseTicketSuccess((uint)xremoveItemEventArgs.ids[i]); + } + } + return true; + } + + public void QueryUseExperienceTicket() + { + for (int i = 0; i < XBagDocument.BagDoc.ItemBag.Count; i++) + { + bool flag = (long)XBagDocument.BagDoc.ItemBag[i].itemID == (long)((ulong)this.CurrentSelectExperienceTicketID); + if (flag) + { + XBagDocument.BagDoc.UseItem(XBagDocument.BagDoc.ItemBag[i], 0u); + break; + } + } + } + + public void OnUseTicketSuccess(uint itemID) + { + HeroBattleExperienceHero.RowData byItemID = this._heroDoc.HeroExperienceReader.GetByItemID(itemID); + bool flag = byItemID != null && !this._alreadyGetList.Contains(byItemID.HeroID) && !this._experienceList.Contains(byItemID.HeroID); + if (flag) + { + OverWatchTable.RowData byHeroID = this._heroDoc.OverWatchReader.GetByHeroID(byItemID.HeroID); + string text = string.Format(XStringDefineProxy.GetString("HeroBattleUseTicketSuccess"), byHeroID.Name, byItemID.ShowTime); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + this._experienceList.Add(byItemID.HeroID); + this._experienceTimeDict[byItemID.HeroID] = byItemID.LastTime * 3600u; + bool flag2 = this.m_HeroBattleSkillHandler != null; + if (flag2) + { + this.m_HeroBattleSkillHandler.RefreshTab(); + bool flag3 = this.m_HeroBattleSkillHandler.LastSelectSprite != null; + if (flag3) + { + this.m_HeroBattleSkillHandler.OnTabClick(this.m_HeroBattleSkillHandler.LastSelectSprite); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHeroBattleSkillDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XHeroBattleSkillDocument.cs.meta new file mode 100644 index 00000000..a79d3fbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHeroBattleSkillDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8dbb82caa7a77ec4686a09f7cb8adc41 +timeCreated: 1611404105 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHighlightEventArgs.cs b/Client/Assets/Scripts/XMainClient/XHighlightEventArgs.cs new file mode 100644 index 00000000..bb2152af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHighlightEventArgs.cs @@ -0,0 +1,20 @@ +using System; + +namespace XMainClient +{ + internal class XHighlightEventArgs : XEventArgs + { + public bool Enabled = false; + + public XHighlightEventArgs() + { + this._eDefine = XEventDefine.XEvent_Highlight; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHighlightEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XHighlightEventArgs.cs.meta new file mode 100644 index 00000000..35f63196 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHighlightEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92b5f78d448a90244ac6cadd947961fd +timeCreated: 1611404148 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHitEventArgs.cs b/Client/Assets/Scripts/XMainClient/XHitEventArgs.cs new file mode 100644 index 00000000..25010f66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHitEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XHitEventArgs : XEventArgs + { + public XHitEventArgs() + { + this._eDefine = XEventDefine.XEvent_Hit; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHitEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XHitEventArgs.cs.meta new file mode 100644 index 00000000..e56a317a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHitEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0956fde548063a045b2667daf3a6be9a +timeCreated: 1611403155 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHomeCookAndPartyDocument.cs b/Client/Assets/Scripts/XMainClient/XHomeCookAndPartyDocument.cs new file mode 100644 index 00000000..479d6546 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHomeCookAndPartyDocument.cs @@ -0,0 +1,693 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XHomeCookAndPartyDocument : XDocComponent + { + public override uint ID + { + get + { + return XHomeCookAndPartyDocument.uuID; + } + } + + public static XHomeCookAndPartyDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XHomeCookAndPartyDocument.uuID) as XHomeCookAndPartyDocument; + } + } + + public static CookingFoodInfo CookingFoolInfoTable + { + get + { + return XHomeCookAndPartyDocument._cookingFoodInfoTable; + } + } + + public static CookingLevel CookingLevelTable + { + get + { + return XHomeCookAndPartyDocument._cookingLevelTable; + } + } + + public static GardenBanquetCfg GardenBanquetCfgTable + { + get + { + return XHomeCookAndPartyDocument._gardenBanquetCfg; + } + } + + public uint CurBanquetID + { + get + { + return this._curBanquetID; + } + set + { + this._curBanquetID = value; + } + } + + public uint CurBanquetState + { + get + { + return this._curBanquetState; + } + set + { + this._curBanquetState = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("HomeCookAndPartyDocument"); + + private static CookingFoodInfo _cookingFoodInfoTable = new CookingFoodInfo(); + + private static CookingLevel _cookingLevelTable = new CookingLevel(); + + private static GardenBanquetCfg _gardenBanquetCfg = new GardenBanquetCfg(); + + private static ItemBuffTable _itemBuffTable = new ItemBuffTable(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private uint MaxCookLevel = 0u; + + private List _newCookingItems = new List(); + + private uint _timerID = 0u; + + private uint _curBanquetID = 0u; + + private uint _curBanquetState = 0u; + + private uint _CountDownTimerID = 0u; + + private int _curFeastRemainTime = 0; + + private uint _totalFeastedTimesWeekly = 0u; + + private uint _timeToCooking = 5u; + + protected float _curPassedTime = 0f; + + public static void Execute(OnLoadedCallback callback = null) + { + XHomeCookAndPartyDocument.AsyncLoader.AddTask("Table/CookingFoodInfo", XHomeCookAndPartyDocument._cookingFoodInfoTable, false); + XHomeCookAndPartyDocument.AsyncLoader.AddTask("Table/CookingLevel", XHomeCookAndPartyDocument._cookingLevelTable, false); + XHomeCookAndPartyDocument.AsyncLoader.AddTask("Table/GardenBanquetCfg", XHomeCookAndPartyDocument._gardenBanquetCfg, false); + XHomeCookAndPartyDocument.AsyncLoader.AddTask("Table/ItemBuff", XHomeCookAndPartyDocument._itemBuffTable, false); + XHomeCookAndPartyDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this.ResetBanquetState(); + } + + private void ResetBanquetState() + { + bool flag = this._curBanquetID > 0u; + if (flag) + { + this._curBanquetID = 0u; + bool flag2 = this._curBanquetState > 0u; + if (flag2) + { + XSingleton.singleton.Freezed = false; + } + this._curBanquetState = 0u; + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.ResetBanquetState(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public CookingFoodInfo.RowData GetCookInfoByCuisineID(uint id) + { + for (int i = 0; i < XHomeCookAndPartyDocument._cookingFoodInfoTable.Table.Length; i++) + { + bool flag = XHomeCookAndPartyDocument._cookingFoodInfoTable.Table[i].FoodID == id; + if (flag) + { + return XHomeCookAndPartyDocument._cookingFoodInfoTable.Table[i]; + } + } + return null; + } + + public GardenBanquetCfg.RowData GetGardenBanquetInfoByID(uint id) + { + GardenBanquetCfg.RowData[] table = XHomeCookAndPartyDocument._gardenBanquetCfg.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].BanquetID == id; + if (flag) + { + return table[i]; + } + } + return null; + } + + public bool IsFoodIdActiveInTable(uint id) + { + for (int i = 0; i < XHomeCookAndPartyDocument.CookingFoolInfoTable.Table.Length; i++) + { + bool flag = XHomeCookAndPartyDocument.CookingFoolInfoTable.Table[i].FoodID == id; + if (flag) + { + return XHomeCookAndPartyDocument.CookingFoolInfoTable.Table[i].CookBookID == 0u; + } + } + return false; + } + + public void ReqGardenCookingFood(uint foodId) + { + RpcC2M_GardenCookingFood rpcC2M_GardenCookingFood = new RpcC2M_GardenCookingFood(); + rpcC2M_GardenCookingFood.oArg.food_id = foodId; + XSingleton.singleton.Send(rpcC2M_GardenCookingFood); + } + + public void AddNewCookItem(uint id) + { + bool flag = !this._newCookingItems.Contains(id); + if (flag) + { + this._newCookingItems.Add(id); + } + } + + public bool RemoveNewCookItem(uint id) + { + bool flag = this._newCookingItems.Contains(id); + bool result; + if (flag) + { + this._newCookingItems.Remove(id); + result = true; + } + else + { + result = false; + } + return result; + } + + public bool IsNewAddedCookItem(uint id) + { + return this._newCookingItems.Contains(id); + } + + public void StartCreateFood(uint foodID) + { + CookingFoodInfo.RowData cookInfoByCuisineID = XHomeCookAndPartyDocument.Doc.GetCookInfoByCuisineID(foodID); + bool flag = cookInfoByCuisineID != null; + if (flag) + { + this._timeToCooking = cookInfoByCuisineID.Duration; + this._curPassedTime = 0f; + this.TimerUp(); + } + } + + private void TimerUp() + { + this.StopCreateFoodTimer(); + this._timerID = XSingleton.singleton.SetTimerAccurate(0.025f, new XTimerMgr.AccurateElapsedEventHandler(this.OnCreatingFood), 0.025f); + } + + public void StopCreateFoodTimer() + { + XSingleton.singleton.KillTimer(this._timerID); + this._timerID = 0u; + } + + public void CookingFoodSuccess() + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.HomeCookingHandler.IsVisible(); + if (flag) + { + DlgBase.singleton.HomeCookingHandler.CookingSuccess(); + } + } + + public void BeginToFeast(uint banquet_id) + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag = sceneType != SceneType.SCENE_FAMILYGARDEN; + if (!flag) + { + this._curBanquetID = banquet_id; + GardenBanquetCfg.RowData gardenBanquetInfoByID = this.GetGardenBanquetInfoByID(this._curBanquetID); + bool flag2 = gardenBanquetInfoByID != null; + if (flag2) + { + this._curFeastRemainTime = (int)this.GetTotalFeastTimeByID(this._curBanquetID); + bool flag3 = XSingleton.singleton.Player != null; + if (flag3) + { + XCharacterShowChatComponent xcharacterShowChatComponent = XSingleton.singleton.Player.GetXComponent(XCharacterShowChatComponent.uuID) as XCharacterShowChatComponent; + bool flag4 = xcharacterShowChatComponent != null; + if (flag4) + { + xcharacterShowChatComponent.AttachFeastCdTime(); + this.CountDownTimerUp(); + XAutoFade.FadeIn(2f, true); + } + } + bool flag5 = DlgBase.singleton.IsVisible() && DlgBase.singleton.HomeFeastHandler != null && DlgBase.singleton.HomeFeastHandler.IsVisible(); + if (flag5) + { + DlgBase.singleton.HomeFeastHandler.BeginToFeast(); + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + this._curFeastRemainTime = 0; + this._curBanquetID = 0u; + this._curBanquetState = 0u; + } + } + } + + public void SendActiveFoodMenu(uint foodID) + { + RpcC2M_ActiveCookbook rpcC2M_ActiveCookbook = new RpcC2M_ActiveCookbook(); + rpcC2M_ActiveCookbook.oArg.garden_id = HomePlantDocument.Doc.GardenId; + rpcC2M_ActiveCookbook.oArg.cook_book_id = foodID; + XSingleton.singleton.Send(rpcC2M_ActiveCookbook); + } + + public string GetFoodNameByID(uint id) + { + for (int i = 0; i < XHomeCookAndPartyDocument.CookingFoolInfoTable.Table.Length; i++) + { + bool flag = XHomeCookAndPartyDocument.CookingFoolInfoTable.Table[i].FoodID == id; + if (flag) + { + return XHomeCookAndPartyDocument.CookingFoolInfoTable.Table[i].FoodName; + } + } + return ""; + } + + public void SortFoodTableData() + { + CookingFoodInfo.RowData[] table = XHomeCookAndPartyDocument._cookingFoodInfoTable.Table; + for (int i = 0; i < table.Length; i++) + { + for (int j = i + 1; j < table.Length; j++) + { + bool flag = this.SortData(table[i], table[j]) > 0; + if (flag) + { + CookingFoodInfo.RowData rowData = table[i]; + table[i] = table[j]; + table[j] = rowData; + } + } + } + } + + public bool IsTimeLimited(uint foodId) + { + uint frequency = XHomeCookAndPartyDocument.Doc.GetCookInfoByCuisineID(foodId).Frequency; + bool flag = frequency <= 0u; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = frequency <= HomeMainDocument.Doc.GetFoodMakedTimes(foodId); + result = flag2; + } + return result; + } + + public void SendGardenBanquet(uint banquetID) + { + RpcC2M_GardenBanquet rpcC2M_GardenBanquet = new RpcC2M_GardenBanquet(); + rpcC2M_GardenBanquet.oArg.banquet_id = banquetID; + XSingleton.singleton.Send(rpcC2M_GardenBanquet); + } + + public void OnGardenFeastPhase(PtcG2C_GardenBanquetNotice res) + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag = sceneType != SceneType.SCENE_FAMILYGARDEN; + if (!flag) + { + this._totalFeastedTimesWeekly = res.Data.timesTSWK; + this._curBanquetState = res.Data.banquet_stage; + bool flag2 = this._curBanquetState == 1u; + if (flag2) + { + this.EnableBackToMainCity(false); + XSingleton.singleton.Freezed = true; + bool flag3 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.Nav != null; + if (flag3) + { + bool flag4 = XSingleton.singleton.Player.Ator != null; + if (flag4) + { + XSingleton.singleton.Player.Ator.EnableRootMotion(true); + } + XSingleton.singleton.Player.Nav.Interrupt(); + XSingleton.singleton.Player.Nav.Enabled = false; + } + } + else + { + bool flag5 = this._curBanquetState == 0u; + if (flag5) + { + this.EnableBackToMainCity(true); + bool flag6 = this.IsHasRewards(); + if (flag6) + { + this.OnGetGardenFeastRewards(); + } + this._curFeastRemainTime = 0; + this._curBanquetID = 0u; + XSingleton.singleton.Freezed = false; + bool flag7 = XSingleton.singleton.Player != null && XSingleton.singleton.Player.Nav != null; + if (flag7) + { + bool flag8 = XSingleton.singleton.Player.Ator != null; + if (flag8) + { + XSingleton.singleton.Player.Ator.EnableRootMotion(false); + } + XSingleton.singleton.Player.Nav.Interrupt(); + XSingleton.singleton.Player.Nav.Enabled = true; + } + } + } + this.ChangeFeastPhase(); + } + } + + private bool IsHasRewards() + { + int @int = XSingleton.singleton.GetInt("GardenBanquetAwardTimesTSWK"); + return (ulong)this._totalFeastedTimesWeekly <= (ulong)((long)@int); + } + + public void OnHomeFeastingCountDown(object argu, float delay) + { + this._curFeastRemainTime--; + XEvent_HomeFeastingArgs @event = XEventPool.GetEvent(); + @event.time = (uint)Math.Max(0, this._curFeastRemainTime); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + bool flag = this._curFeastRemainTime >= 1; + if (flag) + { + this.CountDownTimerUp(); + } + else + { + this.StopCountDownTimer(); + } + } + + private void CountDownTimerUp() + { + this.StopCountDownTimer(); + this._CountDownTimerID = XSingleton.singleton.SetTimerAccurate(1f, new XTimerMgr.AccurateElapsedEventHandler(this.OnHomeFeastingCountDown), null); + } + + private void StopCountDownTimer() + { + XSingleton.singleton.KillTimer(this._CountDownTimerID); + this._CountDownTimerID = 0u; + } + + public void OnGetGardenFeastRewards() + { + GardenBanquetCfg.RowData gardenBanquetInfoByID = this.GetGardenBanquetInfoByID(this._curBanquetID); + bool flag = gardenBanquetInfoByID != null; + if (flag) + { + List list = new List(); + for (int i = 0; i < gardenBanquetInfoByID.BanquetAwards.Count; i++) + { + list.Add(new ItemBrief + { + itemID = gardenBanquetInfoByID.BanquetAwards[i, 0], + itemCount = gardenBanquetInfoByID.BanquetAwards[i, 1] + }); + } + DlgBase.singleton.ShowByTitle(list, XSingleton.singleton.GetString("FeastReward"), null); + bool flag2 = DlgBase.singleton.IsVisible() && DlgBase.singleton.HomeFeastHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton.HomeFeastHandler.RefreshPartyBtnState(true); + } + } + } + + public uint GetExpByCookLevel(uint level) + { + foreach (CookingLevel.RowData rowData in XHomeCookAndPartyDocument._cookingLevelTable.Table) + { + bool flag = rowData.CookLevel == level; + if (flag) + { + return rowData.Experiences; + } + } + return 0u; + } + + public ItemBuffTable.RowData GetItembuffDataByID(uint id) + { + for (int i = 0; i < XHomeCookAndPartyDocument._itemBuffTable.Table.Length; i++) + { + ItemBuffTable.RowData rowData = XHomeCookAndPartyDocument._itemBuffTable.Table[i]; + bool flag = rowData.ItemId == id; + if (flag) + { + return rowData; + } + } + return null; + } + + public uint GetItemIDByBuffID(uint id) + { + for (int i = 0; i < XHomeCookAndPartyDocument._itemBuffTable.Table.Length; i++) + { + ItemBuffTable.RowData rowData = XHomeCookAndPartyDocument._itemBuffTable.Table[i]; + for (int j = 0; j < rowData.Buffs.Count; j++) + { + bool flag = rowData.Buffs[j, 0] == id; + if (flag) + { + return rowData.ItemId; + } + } + } + return 0u; + } + + private void ChangeFeastPhase() + { + GardenBanquetCfg.RowData gardenBanquetInfoByID = this.GetGardenBanquetInfoByID(this._curBanquetID); + bool flag = gardenBanquetInfoByID == null; + if (!flag) + { + XBubbleEventArgs @event = XEventPool.GetEvent(); + string bubbletext = ""; + uint num = 0u; + bool flag2 = this._curBanquetState != 0u && (ulong)this._curBanquetState <= (ulong)((long)XSingleton.singleton.GetInt("HomePartyMaxPhase")); + if (flag2) + { + switch (this._curBanquetState) + { + case 1u: + bubbletext = gardenBanquetInfoByID.VoiceOver1; + num = gardenBanquetInfoByID.VoiceOver1Duration; + break; + case 2u: + bubbletext = gardenBanquetInfoByID.VoiceOver2; + num = gardenBanquetInfoByID.VoiceOver2Duration; + break; + case 3u: + bubbletext = gardenBanquetInfoByID.VoiceOver3; + num = gardenBanquetInfoByID.VoiceOver3Duration; + break; + case 4u: + bubbletext = gardenBanquetInfoByID.VoiceOver4; + num = gardenBanquetInfoByID.VoiceOver4Duration; + break; + default: + XSingleton.singleton.AddErrorLog("Invalid _curBanquetState", null, null, null, null, null); + break; + } + XNpc npc = XSingleton.singleton.GetNpc((uint)XSingleton.singleton.GetInt("HouseKeeperID")); + bool flag3 = npc == null; + if (!flag3) + { + @event.bubbletext = bubbletext; + @event.existtime = num; + @event.Firer = npc; + @event.speaker = npc.Name; + XBubbleComponent xbubbleComponent = @event.Firer.GetXComponent(XBubbleComponent.uuID) as XBubbleComponent; + bool flag4 = xbubbleComponent == null; + if (flag4) + { + XSingleton.singleton.CreateComponent(@event.Firer, XBubbleComponent.uuID); + } + XSingleton.singleton.FireEvent(@event); + } + } + } + } + + public uint GetTotalFeastTimeByID(uint banquetID) + { + GardenBanquetCfg.RowData gardenBanquetInfoByID = this.GetGardenBanquetInfoByID(banquetID); + bool flag = gardenBanquetInfoByID != null; + uint result; + if (flag) + { + result = gardenBanquetInfoByID.VoiceOver1Duration + gardenBanquetInfoByID.VoiceOver2Duration + gardenBanquetInfoByID.VoiceOver3Duration + gardenBanquetInfoByID.VoiceOver4Duration; + } + else + { + result = 0u; + } + return result; + } + + public string GetHomeFeastAction(uint basicType) + { + return string.Format("Player_{0}_{1}", XSingleton.singleton.GetLowerCaseWord(basicType), "yanhui"); + } + + public uint GetMaxLevel() + { + bool flag = this.MaxCookLevel == 0u; + if (flag) + { + uint num = 0u; + for (int i = 0; i < XHomeCookAndPartyDocument._cookingLevelTable.Table.Length; i++) + { + num = Math.Max(XHomeCookAndPartyDocument._cookingLevelTable.Table[i].CookLevel, num); + } + this.MaxCookLevel = num; + } + return this.MaxCookLevel; + } + + private void EnableBackToMainCity(bool Enable) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + DlgBase.singleton.SetVisible(false, true); + bool flag2 = !Enable; + if (flag2) + { + XSingleton.singleton.CloseAllUI(); + } + HomeHandler homeHandler = DlgBase.singleton._HomeHandler; + bool flag3 = homeHandler != null; + if (flag3) + { + homeHandler.EnableBackToMainCity(Enable); + } + DlgBase.singleton.BottomDownBtns(Enable); + } + + private void OnCreatingFood(object argu, float delay) + { + this._curPassedTime += (float)argu; + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.HomeCookingHandler.IsVisible(); + if (flag) + { + DlgBase.singleton.HomeCookingHandler.SetProgress(this._curPassedTime / this._timeToCooking); + } + bool flag2 = this._curPassedTime >= this._timeToCooking; + if (flag2) + { + this.StopCreateFoodTimer(); + } + else + { + this.TimerUp(); + } + } + + private int SortData(CookingFoodInfo.RowData x1, CookingFoodInfo.RowData x2) + { + int num = x1.Level.CompareTo(x2.Level); + return (num == 0) ? this.FoodActiveCompare(x1.FoodID, x2.FoodID) : num; + } + + private int FoodActiveCompare(uint foodIdL, uint foodIdR) + { + bool flag = HomeMainDocument.Doc.IsFoodIDActive(foodIdL); + bool flag2 = HomeMainDocument.Doc.IsFoodIDActive(foodIdR); + bool flag3 = flag ^ flag2; + int result; + if (flag3) + { + bool flag4 = flag; + if (flag4) + { + result = -1; + } + else + { + result = 1; + } + } + else + { + result = 0; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHomeCookAndPartyDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XHomeCookAndPartyDocument.cs.meta new file mode 100644 index 00000000..53501dc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHomeCookAndPartyDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5af3ebbc7dfcf414692c4b649d63fe51 +timeCreated: 1611403794 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHomeFishingDocument.cs b/Client/Assets/Scripts/XMainClient/XHomeFishingDocument.cs new file mode 100644 index 00000000..ccc851b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHomeFishingDocument.cs @@ -0,0 +1,511 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XHomeFishingDocument : XDocComponent + { + public override uint ID + { + get + { + return XHomeFishingDocument.uuID; + } + } + + public GardenFishConfig _HomeFishTable + { + get + { + return XHomeFishingDocument._homeFishTable; + } + } + + public FishInfo FishInfoTable + { + get + { + return XHomeFishingDocument._fishInfo; + } + } + + public bool isSweep { get; set; } + + public List FishList + { + get + { + return this._fishList; + } + } + + public uint TimerToken + { + get + { + return this._timerToken; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("HomeFishingDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GardenFishConfig _homeFishTable = new GardenFishConfig(); + + private static FishInfo _fishInfo = new FishInfo(); + + private bool _nearFishPoolState = false; + + public uint FishingLevel = 1u; + + public uint CurrentExp = 0u; + + private List _fishList = new List(); + + public bool LastFishingHasFish = true; + + private uint _timerToken; + + private HomeFishingState _currState; + + private bool m_first_cast = false; + + public bool LastLevelUp = false; + + private ulong _reconnectSign; + + public bool IsFishing = false; + + public bool ServerStopFishing = false; + + private XEntityPresentation.RowData _fishingRodPresentation; + + public static readonly int stoshID = 5500; + + public static readonly string LEVELUPFX = "Effects/FX_Particle/UIfx/UI_jy_dy_sj"; + + public static void Execute(OnLoadedCallback callback = null) + { + XHomeFishingDocument.AsyncLoader.AddTask("Table/GardenFishing", XHomeFishingDocument._homeFishTable, false); + XHomeFishingDocument.AsyncLoader.AddTask("Table/FishInfo", XHomeFishingDocument._fishInfo, false); + XHomeFishingDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._fishingRodPresentation = XSingleton.singleton.EntityInfo.GetByPresentID(50001u); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this._nearFishPoolState = false; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.IsFishing && this._currState == HomeFishingState.WAITSERVER; + if (flag) + { + bool flag2 = this._reconnectSign == XBagDocument.BagDoc.GetItemCount(5500) + 1UL; + if (flag2) + { + this.LastFishingHasFish = false; + this.OnFishingStateChange(null); + } + else + { + bool flag3 = this._reconnectSign == XBagDocument.BagDoc.GetItemCount(5500); + if (flag3) + { + this.SendFishingQuery(); + } + } + } + bool flag4 = this.IsFishing && DlgBase.singleton.IsVisible(); + if (flag4) + { + XSingleton.singleton.Freezed = true; + } + } + + public void SendLevelExpQuery() + { + RpcC2M_GardenFishInfo rpcC2M_GardenFishInfo = new RpcC2M_GardenFishInfo(); + HomePlantDocument specificDocument = XDocuments.GetSpecificDocument(HomePlantDocument.uuID); + rpcC2M_GardenFishInfo.oArg.garden_id = specificDocument.GardenId; + XSingleton.singleton.Send(rpcC2M_GardenFishInfo); + } + + private void SendFishingQuery() + { + XCharacterItemDocument specificDocument = XDocuments.GetSpecificDocument(XCharacterItemDocument.uuID); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + specificDocument.ToggleBlock(true); + } + RpcC2M_TryFish rpcC2M_TryFish = new RpcC2M_TryFish(); + HomePlantDocument specificDocument2 = XDocuments.GetSpecificDocument(HomePlantDocument.uuID); + bool flag2 = specificDocument2.HomeType == HomeTypeEnum.MyHome; + if (flag2) + { + rpcC2M_TryFish.oArg.quest_type = GardenQuestType.MYSELF; + } + else + { + bool flag3 = specificDocument2.HomeType == HomeTypeEnum.OtherHome; + if (!flag3) + { + XSingleton.singleton.AddErrorLog("try fishing error. home type error.", null, null, null, null, null); + return; + } + rpcC2M_TryFish.oArg.quest_type = GardenQuestType.FRIEND; + } + rpcC2M_TryFish.oArg.garden_id = specificDocument2.GardenId; + rpcC2M_TryFish.oArg.casting_net = this.isSweep; + XSingleton.singleton.Send(rpcC2M_TryFish); + } + + public void SetLevelExpInfo(uint level, uint exp) + { + this.FishingLevel = level; + this.CurrentExp = exp; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(false); + } + } + + public void OnFishingResultGet(List list, uint level, uint exp) + { + bool flag = !this.IsFishing; + if (!flag) + { + bool flag2 = list.Count == 0; + if (flag2) + { + this.LastFishingHasFish = false; + this.OnFishingStateChange(null); + } + else + { + this.LastFishingHasFish = true; + this.LastLevelUp = (this.FishingLevel != level); + this.FishingLevel = level; + this.CurrentExp = exp; + for (int i = 0; i < list.Count; i++) + { + uint num = list[i].itemCount; + for (int j = 0; j < this._fishList.Count; j++) + { + bool flag3 = this._fishList[j].itemID == list[i].itemID; + if (flag3) + { + num += this._fishList[j].itemCount; + this._fishList.RemoveAt(j); + break; + } + } + ItemBrief itemBrief = new ItemBrief(); + itemBrief.itemID = list[i].itemID; + itemBrief.itemCount = num; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemBrief.itemID); + XSingleton.singleton.AddGreenLog("fishing get ", itemConf.ItemName[0], null, null, null, null); + itemBrief.isbind = !itemConf.CanTrade; + this._fishList.Add(itemBrief); + } + this.OnFishingStateChange(null); + } + } + } + + public void StartFishing() + { + XDanceDocument.Doc.ReqStopJustDance(); + this._entity = XSingleton.singleton.Player; + XComponent xcomponent = XSingleton.singleton.CreateComponent(XSingleton.singleton.Player, XFishingComponent.uuID); + xcomponent.Attached(); + this.SetStartFishingState(); + this.IsFishing = true; + DlgBase.singleton.SetFishingTipsState(true); + } + + public void StopFishing() + { + XSingleton.singleton.Player.PlaySpecifiedAnimation(this._entity.Present.PresentLib.FishingIdle); + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingIdle); + DlgBase.singleton.SetFishingTipsState(false); + } + + public void ContinueFishing() + { + this._timerToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.OnFishingStateChange), null); + DlgBase.singleton.SetFishingTipsState(true); + } + + public void LeaveFishing() + { + bool serverStopFishing = this.ServerStopFishing; + if (serverStopFishing) + { + this.ServerStopFishing = false; + } + else + { + PtcC2M_GardenFishStop ptcC2M_GardenFishStop = new PtcC2M_GardenFishStop(); + HomePlantDocument specificDocument = XDocuments.GetSpecificDocument(HomePlantDocument.uuID); + ptcC2M_GardenFishStop.Data.garden_id = specificDocument.GardenId; + XSingleton.singleton.AddGreenLog("notice server stop fishing.", null, null, null, null, null); + XSingleton.singleton.Send(ptcC2M_GardenFishStop); + } + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.DetachComponent(XFishingComponent.uuID); + } + this.IsFishing = false; + XSingleton.singleton.KillTimer(this._timerToken); + DlgBase.singleton.SetFishingTipsState(false); + } + + private void SetStartFishingState() + { + this.m_first_cast = true; + this._currState = HomeFishingState.GET; + XSingleton.singleton.Player.PlaySpecifiedAnimation(this._entity.Present.PresentLib.FishingIdle); + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingIdle); + this._timerToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.OnFishingStateChange), null); + } + + private void OnFishingStateChange(object o = null) + { + bool flag = !this.IsFishing || XSingleton.singleton.Player == null || this._entity == null; + if (!flag) + { + float num = 5f; + switch (this._currState) + { + case HomeFishingState.CAST: + { + this._currState = HomeFishingState.WAIT; + num = XSingleton.singleton.Player.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingWait); + bool flag2 = num < 0f; + if (flag2) + { + this.ErrorLeaveFishing(); + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingWait); + num = 2f; + XSingleton.singleton.AddGreenLog("state = wait, time = 2.0", null, null, null, null, null); + break; + } + case HomeFishingState.WAIT: + this._currState = HomeFishingState.WAITSERVER; + this._reconnectSign = XBagDocument.BagDoc.GetItemCount(5500); + this.SendFishingQuery(); + num = -1f; + XSingleton.singleton.AddGreenLog("state = wait server, time = infinite", null, null, null, null, null); + break; + case HomeFishingState.WAITSERVER: + { + bool lastFishingHasFish = this.LastFishingHasFish; + if (lastFishingHasFish) + { + bool high = XHomeFishingDocument._fishInfo.GetByFishID(this._fishList[this._fishList.Count - 1].itemID).quality > 0; + DlgBase.singleton.PlayGetFishFx(high); + } + this._currState = HomeFishingState.PULL; + num = XSingleton.singleton.Player.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingPull); + bool flag3 = num < 0f; + if (flag3) + { + this.ErrorLeaveFishing(); + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingPull); + XSingleton.singleton.AddGreenLog("state = pull, time = ", num.ToString(), null, null, null, null); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.DelayShowFish(); + } + break; + } + case HomeFishingState.PULL: + { + this._currState = HomeFishingState.GET; + bool lastFishingHasFish2 = this.LastFishingHasFish; + if (lastFishingHasFish2) + { + num = XSingleton.singleton.Player.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingWin); + bool flag5 = num < 0f; + if (flag5) + { + this.ErrorLeaveFishing(); + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingWin); + XSingleton.singleton.AddGreenLog("state = win, time = ", num.ToString(), null, null, null, null); + } + else + { + num = XSingleton.singleton.Player.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingLose); + bool flag6 = num < 0f; + if (flag6) + { + this.ErrorLeaveFishing(); + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingLose); + } + break; + } + case HomeFishingState.GET: + { + bool first_cast = this.m_first_cast; + if (first_cast) + { + this.m_first_cast = false; + XCameraMotionData xcameraMotionData = new XCameraMotionData(); + xcameraMotionData.Motion = "Animation/Main_Camera/Main_Camera_fishing_start"; + xcameraMotionData.AutoSync_At_Begin = false; + xcameraMotionData.Coordinate = CameraMotionSpace.World; + xcameraMotionData.Follow_Position = true; + xcameraMotionData.LookAt_Target = false; + xcameraMotionData.At = 0f; + XCameraMotionEventArgs @event = XEventPool.GetEvent(); + @event.Motion = xcameraMotionData; + @event.Target = XSingleton.singleton.Player; + @event.Trigger = "ToEffect"; + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + bool flag7 = XBagDocument.BagDoc.GetItemCount(XHomeFishingDocument.stoshID) == 0UL; + if (flag7) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FishingStoshLess"), "fece00"); + this.StopFishing(); + return; + } + this._currState = HomeFishingState.CAST; + num = XSingleton.singleton.Player.PlaySpecifiedAnimationGetLength(this._entity.Present.PresentLib.FishingCast); + bool flag8 = num < 0f; + if (flag8) + { + this.ErrorLeaveFishing(); + return; + } + this._entity.Equipment.PlayFishingRodAnimation(this._fishingRodPresentation.FishingCast); + XSingleton.singleton.AddGreenLog("state = cast, time = ", num.ToString(), null, null, null, null); + break; + } + } + bool flag9 = num > 0f; + if (flag9) + { + this._timerToken = XSingleton.singleton.SetTimer(num, new XTimerMgr.ElapsedEventHandler(this.OnFishingStateChange), null); + } + } + } + + public void SetFishingUIState(bool state) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_FAMILYGARDEN; + if (!flag) + { + bool flag2 = state == this._nearFishPoolState; + if (!flag2) + { + this._nearFishPoolState = state; + DlgBase.singleton.SetUIState(state); + } + } + } + + public void ErrorLeaveFishing() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.OnCloseBtnClick(null); + } + else + { + this.LeaveFishing(); + } + } + + protected bool OnAddItem(XEventArgs args) + { + bool flag = !this._nearFishPoolState; + bool result; + if (flag) + { + result = true; + } + else + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag2 = xaddItemEventArgs.items[i].itemID == XHomeFishingDocument.stoshID; + if (flag2) + { + bool flag3 = DlgBase.singleton.IsVisible() && DlgBase.singleton.uiBehaviour.m_InFishingFrame.activeInHierarchy; + if (flag3) + { + bool flag4 = XBagDocument.BagDoc.GetItemCount(XHomeFishingDocument.stoshID) == (ulong)((long)xaddItemEventArgs.items[i].itemCount); + if (flag4) + { + this.ContinueFishing(); + } + } + } + } + result = true; + } + return result; + } + + public static void OnFishingStateStop(OutLookStateType newType, XEntity entity) + { + bool flag = newType == OutLookStateType.OutLook_Fish; + if (!flag) + { + XRole xrole = entity as XRole; + bool flag2 = xrole.Attributes.RoleID != XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + XSingleton.singleton.AddGreenLog("outlook delete fishingRom.", null, null, null, null, null); + xrole.DetachComponent(XFishingComponent.uuID); + } + else + { + XHomeFishingDocument specificDocument = XDocuments.GetSpecificDocument(XHomeFishingDocument.uuID); + bool isFishing = specificDocument.IsFishing; + if (isFishing) + { + specificDocument.ServerStopFishing = true; + specificDocument.FishList.Clear(); + specificDocument.ErrorLeaveFishing(); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHomeFishingDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XHomeFishingDocument.cs.meta new file mode 100644 index 00000000..51945a25 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHomeFishingDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0810ab2111598254cb1d38352ed55d7a +timeCreated: 1611402969 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XHudEntry.cs b/Client/Assets/Scripts/XMainClient/XHudEntry.cs new file mode 100644 index 00000000..b84f7c19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHudEntry.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class XHudEntry + { + public float movementStart + { + get + { + return this.time + this.stay; + } + } + + public bool init = false; + + public float time; + + public float stay = 0f; + + public float offset = 0f; + + public float val = 0f; + + public IXUILabel label; + + public bool isDigital = true; + + public AnimationCurve offsetCurve = new AnimationCurve(); + + public AnimationCurve alphaCurve = new AnimationCurve(); + + public AnimationCurve scaleCurve = new AnimationCurve(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/XHudEntry.cs.meta b/Client/Assets/Scripts/XMainClient/XHudEntry.cs.meta new file mode 100644 index 00000000..f190bee0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XHudEntry.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a42fcafd9a6865a4289f48da07da4d9a +timeCreated: 1611404281 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XIDIPDocument.cs b/Client/Assets/Scripts/XMainClient/XIDIPDocument.cs new file mode 100644 index 00000000..832243ee --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XIDIPDocument.cs @@ -0,0 +1,111 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XIDIPDocument : XDocComponent + { + public override uint ID + { + get + { + return XIDIPDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("IDIPDocument"); + + public bool ZeroRewardBtnState = false; + + public double ZeroRewardEndTime = 0.0; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void DealWithIDIPMessage(IdipMessage info) + { + DlgBase.singleton.ShowHelp(XStringDefineProxy.GetString("IDIPTitle"), info.message); + } + + public void DealWithIDIPTips(IdipPunishInfo info) + { + string text = XSingleton.singleton.TimeFormatSince1970(info.endTime, XStringDefineProxy.GetString("IDIP_TIPS_TIME"), true); + string label; + switch (info.type) + { + case 1: + { + string arg = XSingleton.singleton.TimeDuarationFormatString(info.banTime, 5); + label = string.Format(XStringDefineProxy.GetString("IDIP_TIPS_IDSEALED"), arg, text); + goto IL_198; + } + case 2: + { + string arg = XSingleton.singleton.TimeDuarationFormatString(info.banTime, 5); + label = string.Format(XStringDefineProxy.GetString("IDIP_TIPS_SILENCE"), arg, text); + goto IL_198; + } + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 11: + label = string.Format(XStringDefineProxy.GetString("IDIP_TIPS_RANK"), text); + goto IL_198; + case 10: + label = string.Format(XStringDefineProxy.GetString("IDIP_TIPS_GUILDRANK"), text); + goto IL_198; + case 12: + { + bool flag = info.leftTime == 0; + if (flag) + { + this.ZeroRewardBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_IDIP_ZeroReward, true); + return; + } + label = string.Format(XStringDefineProxy.GetString("IDIP_TIPS_ZEROREWARD"), text); + this.ZeroRewardEndTime = (double)info.leftTime + this.GetNowTime(); + this.ZeroRewardBtnState = true; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_IDIP_ZeroReward, true); + goto IL_198; + } + case 13: + case 14: + label = string.Format(XStringDefineProxy.GetString("IDIP_TIPS_PLAY"), text); + goto IL_198; + } + XSingleton.singleton.AddLog("Undefine IDIP Tips type.", info.type.ToString(), null, null, null, null, XDebugColor.XDebug_None); + return; + IL_198: + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK")); + } + + private double GetNowTime() + { + return (double)(DateTime.Now.Ticks / 10000000L); + } + + public string GetLeftTimeString() + { + int num = (int)(this.ZeroRewardEndTime - this.GetNowTime()); + bool flag = num < 0; + string result; + if (flag) + { + result = "0"; + } + else + { + result = XSingleton.singleton.TimeDuarationFormatString(num, 5); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XIDIPDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XIDIPDocument.cs.meta new file mode 100644 index 00000000..3fd6b583 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XIDIPDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 37907778c419ec74f88494e30ab4018c +timeCreated: 1611403566 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XImageEffectBase.cs b/Client/Assets/Scripts/XMainClient/XImageEffectBase.cs new file mode 100644 index 00000000..a663600b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XImageEffectBase.cs @@ -0,0 +1,49 @@ +using System; +using UnityEngine; + +public class XImageEffectBase : MonoBehaviour +{ + protected Material material + { + get + { + bool flag = this.m_Material == null; + if (flag) + { + this.m_Material = new Material(this.shader); + this.m_Material.hideFlags = (HideFlags)61; + } + return this.m_Material; + } + } + + public Shader shader; + + private Material m_Material; + + protected virtual void Start() + { + bool flag = !SystemInfo.supportsImageEffects; + if (flag) + { + base.enabled = false; + } + else + { + bool flag2 = !this.shader || !this.shader.isSupported; + if (flag2) + { + base.enabled = false; + } + } + } + + protected virtual void OnDisable() + { + bool flag = this.m_Material; + if (flag) + { + UnityEngine.Object.Destroy(this.m_Material); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XImageEffectBase.cs.meta b/Client/Assets/Scripts/XMainClient/XImageEffectBase.cs.meta new file mode 100644 index 00000000..4afec173 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XImageEffectBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5df9a815fda7f244b44867cb907c47d +timeCreated: 1611404878 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XInGuildStateChangedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XInGuildStateChangedEventArgs.cs new file mode 100644 index 00000000..2bca5982 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInGuildStateChangedEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XInGuildStateChangedEventArgs : XEventArgs + { + public bool bIsEnter = true; + + public bool bRoleInit = false; + + public XInGuildStateChangedEventArgs() + { + this._eDefine = XEventDefine.XEvent_InGuildStateChanged; + } + + public override void Recycle() + { + base.Recycle(); + this.bIsEnter = true; + this.bRoleInit = false; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XInGuildStateChangedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XInGuildStateChangedEventArgs.cs.meta new file mode 100644 index 00000000..9fd8401a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInGuildStateChangedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 832c29c7a8e9c1343b7fcd0b39c324cb +timeCreated: 1611404043 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XInheritComponent.cs b/Client/Assets/Scripts/XMainClient/XInheritComponent.cs new file mode 100644 index 00000000..c728b5ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInheritComponent.cs @@ -0,0 +1,139 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XInheritComponent : XComponent + { + public override uint ID + { + get + { + return XInheritComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XInheritComponent"); + + private float m_timerToken; + + private XFx m_xfxObj; + + private bool m_inInherit = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + bool flag = this.m_xfxObj == null; + if (flag) + { + this.m_xfxObj = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_cg_st", null, true); + this.m_xfxObj.Play(this._entity.EngineObject, Vector3.zero, Vector3.one, 1f, true, false, "", 0f); + } + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + XCameraActionEventArgs @event = XEventPool.GetEvent(); + @event.XRotate = XSingleton.singleton.GameCamera.Root_R_X_Default; + float angle = float.Parse(XSingleton.singleton.GetValue("GuildInheritCameraDesdir")); + float degree = float.Parse(XSingleton.singleton.GetValue("GuildInheritCameraDegree")); + @event.YRotate = XSingleton.singleton.AngleToFloat(XSingleton.singleton.HorizontalRotateVetor3(XSingleton.singleton.FloatToAngle(angle), degree, true)); + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + } + + public override void OnDetachFromHost() + { + bool flag = this.m_xfxObj != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.m_xfxObj, true); + this.m_xfxObj = null; + } + bool flag2 = this._entity != null && this._entity.IsPlayer; + if (flag2) + { + XRole xrole = this._entity as XRole; + xrole.PlayStateBack(); + XCameraMotionEndEventArgs @event = XEventPool.GetEvent(); + @event.Target = this._entity; + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + base.OnDetachFromHost(); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.m_timerToken > 0f; + if (flag) + { + this.m_timerToken -= fDeltaT; + } + else + { + bool inInherit = this.m_inInherit; + if (inInherit) + { + this.StopInheritAction(); + } + else + { + this.StartInheritAction(); + } + } + } + + private void StartInheritAction() + { + XRole xrole = this._entity as XRole; + int randomNumber = this.GetRandomNumber(2, 0); + string targetName = this.GetTargetName(randomNumber); + bool flag = !string.IsNullOrEmpty(targetName); + if (flag) + { + this.m_timerToken = xrole.PlaySpecifiedAnimationGetLength(this.GetTargetName(randomNumber)); + } + else + { + this.m_timerToken = 5f; + } + this.m_inInherit = true; + } + + private void StopInheritAction() + { + this.m_inInherit = false; + this.m_timerToken = (float)this.GetRandomNumber(5, 2); + XRole xrole = this._entity as XRole; + xrole.PlayStateBack(); + } + + private int GetRandomNumber(int max, int min = 0) + { + System.Random random = new System.Random(); + int num = random.Next(min, max); + return num + 1; + } + + private string GetTargetName(int index) + { + string result = this._entity.Present.PresentLib.InheritActionOne; + if (index != 1) + { + if (index == 2) + { + result = this._entity.Present.PresentLib.InheritActionTwo; + } + } + else + { + result = this._entity.Present.PresentLib.InheritActionOne; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XInheritComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XInheritComponent.cs.meta new file mode 100644 index 00000000..52572542 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInheritComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8e377704f2492d45930fa631234e17b +timeCreated: 1611404896 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XInitCoolDownAllSkillsArgs.cs b/Client/Assets/Scripts/XMainClient/XInitCoolDownAllSkillsArgs.cs new file mode 100644 index 00000000..3b32f7ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInitCoolDownAllSkillsArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XInitCoolDownAllSkillsArgs : XEventArgs + { + public XInitCoolDownAllSkillsArgs() + { + this._eDefine = XEventDefine.XEvent_InitCoolDownAllSkills; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XInitCoolDownAllSkillsArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XInitCoolDownAllSkillsArgs.cs.meta new file mode 100644 index 00000000..cc638c03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInitCoolDownAllSkillsArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb67a0b6ce09df642a64c05d19105dcf +timeCreated: 1611404783 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XInput.cs b/Client/Assets/Scripts/XMainClient/XInput.cs new file mode 100644 index 00000000..c3cd7f20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInput.cs @@ -0,0 +1,555 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XInput : XSingleton + { + public bool Freezed + { + get + { + return XSingleton.singleton.Freezed && XSingleton.singleton.Freezed; + } + set + { + bool flag = XSingleton.singleton.bSpectator || value; + bool flag2 = flag; + if (flag2) + { + bool flag3 = this._freeze_count == 0; + if (flag3) + { + XSingleton.singleton.Freezed = true; + XSingleton.singleton.Freezed = true; + XSingleton.singleton.Empty(); + } + this._freeze_count++; + bool flag4 = XSingleton.singleton.CurrentStage is XConcreteStage; + if (flag4) + { + XSingleton.singleton.AddLog("Freeze++: ", this._freeze_count.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + else + { + this._freeze_count--; + bool flag5 = this._freeze_count == 0; + if (flag5) + { + XSingleton.singleton.Freezed = false; + XSingleton.singleton.Freezed = false; + } + else + { + bool flag6 = this._freeze_count < 0; + if (flag6) + { + this._freeze_count = 0; + } + } + bool flag7 = XSingleton.singleton.CurrentStage is XConcreteStage; + if (flag7) + { + XSingleton.singleton.AddLog("Freeze--: ", this._freeze_count.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + } + } + + public bool HasMove + { + get + { + return this._hasMove; + } + } + + public bool HasEnemy + { + get + { + return this._hasEnemy; + } + } + + public bool HasNpc + { + get + { + return this._hasNpc; + } + } + + public bool HasRole + { + get + { + return this._hasRole; + } + } + + public bool HasDummy + { + get + { + return this._hasDummy; + } + } + + public float LastMoveAt + { + get + { + return this._last_move_at; + } + } + + public float LastEntityAt + { + get + { + return this._last_entity_at; + } + } + + public XEntity LastEnemy + { + get + { + return this._last_enemy; + } + } + + public XEntity LastNpc + { + get + { + return this._last_npc; + } + set + { + this._last_npc = value; + this._hasNpc = (this._last_npc != null); + } + } + + public XEntity LastRole + { + get + { + return this._last_role; + } + } + + public XEntity LastDummy + { + get + { + return this._last_dummy; + } + } + + public Vector3 LastMovePoint + { + get + { + return this._last_move_point; + } + } + + public Vector3 LastGroundPoint + { + get + { + return this._last_ground_point; + } + } + + public bool IsFxShield + { + get + { + return this._ally_fx_shield; + } + } + + public bool IsMyFxShield + { + get + { + return this._my_fx_shield; + } + } + + private GameObject _45hide = null; + + private XEntity _last_enemy = null; + + private XEntity _last_npc = null; + + private XEntity _last_role = null; + + private XEntity _last_dummy = null; + + private Vector3 _last_move_point = Vector3.zero; + + private Vector3 _last_ground_point = Vector3.zero; + + private float _last_move_at = 0f; + + private float _last_entity_at = 0f; + + private RaycastHit _hit; + + private int _freeze_count = 0; + + private bool _hasMove = false; + + private bool _hasEnemy = false; + + private bool _hasNpc = false; + + private bool _hasRole = false; + + private bool _hasDummy = false; + + private bool _ally_fx_shield = false; + + private bool _mob_shield = false; + + private bool _my_fx_shield = false; + + private XTableAsyncLoader _async_loader = null; + + private XOperationTable _reader = new XOperationTable(); + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/XOperation", this._reader, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + return !flag2; + } + + public override void Uninit() + { + this._async_loader = null; + } + + public void UnFreezed() + { + bool freezed = this.Freezed; + if (freezed) + { + this._freeze_count = 1; + this.Freezed = false; + } + } + + public void OnEnterScene() + { + this._45hide = null; + this._freeze_count = 0; + XSingleton.singleton.OnEnterScene(); + XSingleton.singleton.OnEnterScene(); + XSingleton.singleton.OnEnterScene(); + this.UpdateShieldOperation(); + this.UnFreezed(); + } + + public void OnLeaveScene() + { + this._last_npc = null; + } + + public void UpdateShieldOperation() + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + this._ally_fx_shield = (specificDocument.GetValue(XOptionsDefine.OD_Shield_Skill_Fx) != 0); + this._mob_shield = (specificDocument.GetValue(XOptionsDefine.OD_Shield_Summon) != 0); + this._my_fx_shield = (specificDocument.GetValue(XOptionsDefine.OD_Shield_My_Skill_Fx) != 0); + bool flag2 = XSingleton.singleton.Player != null; + if (flag2) + { + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < ally.Count; i++) + { + bool flag3 = ally[i].Skill != null && ally[i].Skill.SkillMobs != null; + if (flag3) + { + for (int j = 0; j < ally[i].Skill.SkillMobs.Count; j++) + { + ally[i].Skill.SkillMobs[j].MobShield = this.MobShield(ally[i].Skill.SkillMobs[j]); + } + } + } + } + } + } + + public void UpdateDefaultCameraOperationByScene() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + XOperationTable.RowData rowData = null; + XOperationMode operationMode = XSingleton.singleton.OperationMode; + if (operationMode != XOperationMode.X25D) + { + if (operationMode - XOperationMode.X3D <= 1) + { + rowData = this._reader.GetByID((int)sceneData.OperationSettings[0]); + } + } + else + { + rowData = this._reader.GetByID((int)sceneData.OperationSettings[1]); + } + bool flag = rowData != null; + if (flag) + { + XSingleton.singleton.CameraAngle = rowData.Angle; + XSingleton.singleton.CameraDistance = rowData.Distance; + XSingleton.singleton.AllowVertical = rowData.Vertical; + XSingleton.singleton.AllowHorizontal = rowData.Horizontal; + XSingleton.singleton.MaxVertical = rowData.MaxV; + XSingleton.singleton.MinVertical = rowData.MinV; + XSingleton.singleton.OffSolo = rowData.OffSolo; + } + } + + public bool FxShield(XEntity e) + { + return (this._ally_fx_shield && e != null && !e.IsPlayer && XSingleton.singleton.IsAlly(e)) || (this._my_fx_shield && e != null && e.IsPlayer); + } + + public bool MobShield(XEntity e) + { + return this._mob_shield && e != null && e.MobbedBy != null && !e.MobbedBy.IsPlayer && e.MobShieldable && XSingleton.singleton.IsAlly(e); + } + + public bool UpdateOperationMode() + { + bool isPlaying = XSingleton.singleton.IsPlaying; + bool result; + if (isPlaying) + { + XSingleton.singleton.AddErrorLog("Cannot change operation mode during cut-scene playing!", null, null, null, null, null); + result = false; + } + else + { + bool flag = XSingleton.singleton.CurrentStage is XConcreteStage; + if (flag) + { + this.InnerOperationModeUpdate(); + result = true; + } + else + { + result = false; + } + } + return result; + } + + private void InnerOperationModeUpdate() + { + XSingleton.singleton.Cancel(); + XSingleton.singleton.Cancel(); + XOperationMode operationMode = XSingleton.singleton.OperationMode; + if (operationMode != XOperationMode.X25D) + { + if (operationMode - XOperationMode.X3D <= 1) + { + bool flag = this._45hide == null; + if (flag) + { + this._45hide = GameObject.Find("Scene/45hide"); + } + bool flag2 = this._45hide != null && !this._45hide.activeSelf; + if (flag2) + { + this._45hide.SetActive(true); + } + } + } + else + { + bool flag3 = this._45hide == null; + if (flag3) + { + this._45hide = GameObject.Find("Scene/45hide"); + } + bool flag4 = this._45hide != null && this._45hide.activeSelf; + if (flag4) + { + this._45hide.SetActive(false); + } + } + XSingleton.singleton.GameCamera.SetSightType(); + } + + private XEntity HitOnEnemy() + { + return null; + } + + private XEntity HitOnRole() + { + bool oneUpTouch = XSingleton.singleton.OneUpTouch; + if (oneUpTouch) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag) + { + Ray ray = XSingleton.singleton.GameCamera.UnityCamera.ScreenPointToRay(XSingleton.singleton.TouchPosition); + int num = 1 << LayerMask.NameToLayer("Role"); + bool flag2 = Physics.SphereCast(ray, 0.1f, out this._hit, float.PositiveInfinity, num); + if (flag2) + { + string s = this._hit.collider.gameObject.name.StartsWith("mount_") ? this._hit.collider.gameObject.name.Substring(6) : this._hit.collider.gameObject.name; + ulong id = 0UL; + bool flag3 = ulong.TryParse(s, out id); + if (flag3) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + return (entity != null && entity.IsRole && !entity.IsPlayer) ? entity : null; + } + return null; + } + } + } + return null; + } + + private XEntity HitOnDummy() + { + bool oneUpTouch = XSingleton.singleton.OneUpTouch; + if (oneUpTouch) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag) + { + Ray ray = XSingleton.singleton.GameCamera.UnityCamera.ScreenPointToRay(XSingleton.singleton.TouchPosition); + int num = 1 << LayerMask.NameToLayer("Dummy"); + bool flag2 = Physics.SphereCast(ray, 0.1f, out this._hit, float.PositiveInfinity, num); + if (flag2) + { + ulong id = 0UL; + bool flag3 = ulong.TryParse(this._hit.collider.gameObject.name, out id); + if (flag3) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(id); + return (entityConsiderDeath != null && entityConsiderDeath.IsDummy) ? entityConsiderDeath : null; + } + return null; + } + } + } + return null; + } + + private XEntity HitOnNpc() + { + bool oneUpTouch = XSingleton.singleton.OneUpTouch; + if (oneUpTouch) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag) + { + Ray ray = XSingleton.singleton.GameCamera.UnityCamera.ScreenPointToRay(XSingleton.singleton.TouchPosition); + int num = 1 << LayerMask.NameToLayer("Npc"); + bool flag2 = Physics.SphereCast(ray, 0.1f, out this._hit, float.PositiveInfinity, num); + if (flag2) + { + ulong id = 0UL; + bool flag3 = ulong.TryParse(this._hit.collider.gameObject.name, out id); + if (flag3) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + return (entity != null && entity.IsNpc) ? entity : null; + } + return null; + } + } + } + return null; + } + + private Vector3 HitOnGround() + { + return Vector3.zero; + } + + public void Update() + { + Vector3 vector = Vector3.zero; + this._hasMove = false; + this._hasEnemy = false; + this._hasNpc = false; + this._hasRole = false; + this._hasDummy = false; + XSingleton.singleton.Update(); + bool gestured = XSingleton.singleton.Gestured; + if (gestured) + { + XEntity xentity = this.HitOnEnemy(); + this._hasEnemy = (xentity != null); + XEntity xentity2 = this.HitOnNpc(); + this._hasNpc = (xentity2 != null); + bool flag = !this._hasEnemy && !this._hasNpc; + if (flag) + { + xentity2 = this.HitOnRole(); + this._hasRole = (xentity2 != null); + this._last_role = (this._hasRole ? xentity2 : null); + bool flag2 = !this._hasRole; + if (flag2) + { + xentity2 = this.HitOnDummy(); + this._hasDummy = (xentity2 != null); + this._last_dummy = (this._hasDummy ? xentity2 : null); + bool flag3 = !this._hasDummy; + if (flag3) + { + vector = this.HitOnGround(); + bool flag4 = vector != Vector3.zero; + bool oneTouch = XSingleton.singleton.OneTouch; + if (oneTouch) + { + this._hasMove = flag4; + bool hasMove = this._hasMove; + if (hasMove) + { + this._last_move_point = vector; + this._last_move_at = Time.time; + } + } + bool flag5 = flag4; + if (flag5) + { + this._last_ground_point = vector; + } + } + } + } + else + { + this._last_enemy = xentity; + this._last_npc = xentity2; + this._last_entity_at = Time.time; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XInput.cs.meta b/Client/Assets/Scripts/XMainClient/XInput.cs.meta new file mode 100644 index 00000000..9b435c55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInput.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a0066b1c97fc893438d38a998ddcff9d +timeCreated: 1611404247 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XInvitationDocument.cs b/Client/Assets/Scripts/XMainClient/XInvitationDocument.cs new file mode 100644 index 00000000..8aaf6132 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInvitationDocument.cs @@ -0,0 +1,573 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XInvitationDocument : XDocComponent + { + public override uint ID + { + get + { + return XInvitationDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("InvitationDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static NoticeTable m_NoticeTable = new NoticeTable(); + + private XInvitationDocument.InvitationChatLinkData m_ChatLinkData = new XInvitationDocument.InvitationChatLinkData(); + + private static int mLiveID = 0; + + private static int mType = 1; + + private class InvitationChatLinkData + { + public ChatChannelType channel; + + public string content; + + public List param; + + public bool bIsSystem; + + public void Reset() + { + bool flag = this.param != null; + if (flag) + { + this.param.Clear(); + } + this.param = null; + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XInvitationDocument.AsyncLoader.AddTask("Table/Notice", XInvitationDocument.m_NoticeTable, false); + XInvitationDocument.AsyncLoader.Execute(callback); + } + + public NoticeTable.RowData GetNoticeData(NoticeType type) + { + return XInvitationDocument.m_NoticeTable.GetByid(this.ToID(type)); + } + + public NoticeTable.RowData GetNoticeData(uint id) + { + return XInvitationDocument.m_NoticeTable.GetByid(id); + } + + private uint ToID(NoticeType type) + { + return (uint)XFastEnumIntEqualityComparer.ToInt(type); + } + + private bool _IsOpenSys(NoticeType type) + { + return NoticeType.NT_OPENSYS_BEGIN <= type && type < NoticeType.NT_OPENSYS_END; + } + + private void _SendMessage(uint channel, string content, List param, bool bIsSystem = true, bool isRecruit = false, bool isDragonGuildRecruit = false) + { + bool flag = channel == 1u; + if (flag) + { + this.m_ChatLinkData.Reset(); + this.m_ChatLinkData.channel = (ChatChannelType)channel; + this.m_ChatLinkData.content = content; + this.m_ChatLinkData.param = param; + this.m_ChatLinkData.bIsSystem = bIsSystem; + bool flag2 = DlgBase.singleton.CheckWorldSendMsg(false, new ButtonClickEventHandler(this._RealSendMsg), ChatChannelType.World); + if (flag2) + { + DlgBase.singleton.SendChatContent(content, (ChatChannelType)channel, true, param, bIsSystem, 0UL, 0f, isRecruit, isDragonGuildRecruit); + } + } + else + { + DlgBase.singleton.SendChatContent(content, (ChatChannelType)channel, true, param, bIsSystem, 0UL, 0f, isRecruit, isDragonGuildRecruit); + } + } + + private bool _RealSendMsg(IXUIButton btn) + { + DlgBase.singleton.SendChatContent(this.m_ChatLinkData.content, this.m_ChatLinkData.channel, true, this.m_ChatLinkData.param, this.m_ChatLinkData.bIsSystem, 0UL, 0f, false, false); + this.m_ChatLinkData.Reset(); + return DlgBase.singleton.CheckSelect(btn); + } + + public void SendGuildInvitation() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.CheckInGuild(); + if (!flag) + { + NoticeTable.RowData noticeData = this.GetNoticeData(NoticeType.NT_INVITE_GUILD); + bool flag2 = noticeData == null; + if (!flag2) + { + List list = new List(); + ChatParam chatParam = new ChatParam(); + chatParam.guild = new ChatParamGuild(); + chatParam.guild.guildid = specificDocument.UID; + chatParam.guild.guildname = specificDocument.BasicData.guildName; + ChatParam chatParam2 = new ChatParam(); + chatParam2.link = new ChatParamLink(); + chatParam2.link.id = noticeData.linkparam; + chatParam2.link.content = noticeData.linkcontent; + chatParam2.guild = chatParam.guild; + list.Add(chatParam); + list.Add(chatParam2); + this._SendMessage((uint)noticeData.channel, string.Format(noticeData.info, specificDocument.BasicData.guildName), list, true, true, false); + } + } + } + + public void SendDragonGuildInvitation() + { + XDragonGuildDocument doc = XDragonGuildDocument.Doc; + bool flag = !doc.IsInDragonGuild(); + if (!flag) + { + NoticeTable.RowData noticeData = this.GetNoticeData(NoticeType.NT_INVITE_DRAGON_GUILD); + bool flag2 = noticeData == null; + if (!flag2) + { + List list = new List(); + ChatParam chatParam = new ChatParam(); + chatParam.dragonguild = new ChatParamDragonGuild(); + chatParam.dragonguild.dragonguildId = doc.UID; + chatParam.dragonguild.dragonguildname = doc.BaseData.dragonGuildName; + ChatParam chatParam2 = new ChatParam(); + chatParam2.link = new ChatParamLink(); + chatParam2.link.id = noticeData.linkparam; + chatParam2.link.content = noticeData.linkcontent; + chatParam2.dragonguild = chatParam.dragonguild; + list.Add(chatParam); + list.Add(chatParam2); + this._SendMessage((uint)noticeData.channel, string.Format(noticeData.info, doc.BaseData.dragonGuildName), list, true, false, true); + } + } + } + + public void SendSpectateInvitation(uint noticeid, uint liveID, LiveType liveType, params object[] args) + { + NoticeTable.RowData noticeData = this.GetNoticeData(noticeid); + bool flag = noticeData == null; + if (!flag) + { + List list = new List(); + list.Add(new ChatParam + { + //! + //link = new ChatParamLink(), + link = new ChatParamLink + { + id = noticeData.linkparam, + content = noticeData.linkcontent + }, + //spectate = new ChatParamSpectate(), + spectate = new ChatParamSpectate + { + liveid = liveID, + livetype = (uint)liveType + } + }); + uint activeChannelType = (uint)DlgBase.singleton.activeChannelType; + this._SendMessage(activeChannelType, string.Format(noticeData.info, args), list, true, false, false); + } + } + + public string GetSpectateLinkString(uint noticeid, params object[] args) + { + NoticeTable.RowData noticeData = this.GetNoticeData(noticeid); + bool flag = noticeData == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + string text = string.Format(noticeData.info, args); + text = text.Replace("$L", XSingleton.singleton.StringCombine("[56eaef][u]", noticeData.linkcontent, "[/u][-]")); + result = text; + } + return result; + } + + public void SendGuildInvitationPrivate() + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag = !specificDocument.CheckInGuild(); + if (!flag) + { + NoticeTable.RowData noticeData = this.GetNoticeData(NoticeType.NT_INVITE_GUILD_PRIVATE); + bool flag2 = noticeData == null; + if (!flag2) + { + List list = new List(); + ChatParam chatParam = new ChatParam(); + chatParam.role = new ChatParamRole(); + chatParam.role.uniqueid = XSingleton.singleton.XPlayerData.RoleID; + chatParam.role.name = XSingleton.singleton.XPlayerData.Name; + chatParam.role.profession = XSingleton.singleton.XPlayerData.TypeID; + ChatParam chatParam2 = new ChatParam(); + chatParam2.guild = new ChatParamGuild(); + chatParam2.guild.guildid = specificDocument.UID; + chatParam2.guild.guildname = specificDocument.BasicData.guildName; + ChatParam chatParam3 = new ChatParam(); + chatParam3.link = new ChatParamLink(); + chatParam3.link.id = noticeData.linkparam; + chatParam3.link.content = noticeData.linkcontent; + chatParam3.guild = chatParam2.guild; + list.Add(chatParam); + list.Add(chatParam2); + list.Add(chatParam3); + this._SendMessage((uint)noticeData.channel, string.Format(noticeData.info, XSingleton.singleton.XPlayerData.Name, specificDocument.BasicData.guildName), list, true, false, false); + } + } + } + + public void SendTeamInvitation(NoticeType teamType, uint teamid, uint expid, string expName) + { + NoticeTable.RowData noticeData = this.GetNoticeData(teamType); + bool flag = noticeData == null; + if (!flag) + { + List list = new List(); + list.Add(new ChatParam + { + //! + //team = new ChatParamTeam(), + team = new ChatParamTeam + { + teamid = teamid, + expeditionid = expid + }, + //link = new ChatParamLink(), + link = new ChatParamLink + { + id = noticeData.linkparam, + content = noticeData.linkcontent + } + }); + this._SendMessage((uint)noticeData.channel, string.Format(noticeData.info, expName), list, true, false, false); + } + } + + public string GetOpenSysLinkString(NoticeType noticeType, params object[] args) + { + NoticeTable.RowData byid = XInvitationDocument.m_NoticeTable.GetByid((uint)XFastEnumIntEqualityComparer.ToInt(noticeType)); + bool flag = byid == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + string text = string.Format(byid.info, args); + text = text.Replace("$L", XSingleton.singleton.StringCombine("[56eaef][u]", byid.linkcontent, "[/u][-]")); + result = text; + } + return result; + } + + public void SendOpenSysInvitation(NoticeType noticeType, params ulong[] param) + { + NoticeTable.RowData byid = XInvitationDocument.m_NoticeTable.GetByid((uint)XFastEnumIntEqualityComparer.ToInt(noticeType)); + bool flag = byid == null; + if (!flag) + { + List paramList = XInvitationDocument.GetParamList(byid, param); + int num = byid.channel; + bool flag2 = num == -9999; + if (flag2) + { + num = XFastEnumIntEqualityComparer.ToInt(DlgBase.singleton.activeChannelType); + } + this._SendMessage((uint)num, byid.info, paramList, true, false, false); + } + } + + public void SendOpenSysInvitation(XSysDefine sys, params ulong[] param) + { + NoticeTable.RowData noticeData = this.GetNoticeData(sys); + bool flag = noticeData == null; + if (!flag) + { + List paramList = XInvitationDocument.GetParamList(noticeData, param); + this._SendMessage((uint)noticeData.channel, noticeData.info, paramList, true, false, false); + } + } + + public void SendActivityInvitation(XSysDefine sys, ulong param = 0UL, bool self = true) + { + NoticeTable.RowData noticeData = this.GetNoticeData(sys); + bool flag = noticeData == null; + if (!flag) + { + List paramList = XInvitationDocument.GetParamList(noticeData, new ulong[] + { + param + }); + DlgBase.singleton.SendChatContent(noticeData.info, (ChatChannelType)noticeData.channel, self, paramList, true, 0UL, 0f, false, false); + } + } + + public static List GetParamList(NoticeTable.RowData data, params ulong[] param) + { + List list = new List(); + ChatParam chatParam = new ChatParam(); + chatParam.link = new ChatParamLink(); + chatParam.link.id = data.linkparam; + chatParam.link.content = data.linkcontent; + bool flag = param != null; + if (flag) + { + for (int i = 0; i < param.Length; i++) + { + chatParam.link.param.Add(param[i]); + } + } + list.Add(chatParam); + return list; + } + + public NoticeTable.RowData GetNoticeData(XSysDefine sys) + { + NoticeTable.RowData rowData = null; + uint num = 0u; + while ((ulong)num < (ulong)((long)XInvitationDocument.m_NoticeTable.Table.Length)) + { + rowData = XInvitationDocument.m_NoticeTable.Table[(int)num]; + bool flag = rowData.linkparam == (uint)sys && this._IsOpenSys((NoticeType)rowData.id); + if (flag) + { + break; + } + num += 1u; + rowData = null; + } + return rowData; + } + + public string ParseLink(ChatParam param) + { + bool flag = param.link == null; + string result; + if (flag) + { + result = ""; + } + else + { + string content = param.link.content; + bool flag2 = param.team != null; + if (flag2) + { + result = XLabelSymbolHelper.FormatTeam(content, (int)param.team.teamid, param.team.expeditionid); + } + else + { + bool flag3 = param.guild != null; + if (flag3) + { + result = XLabelSymbolHelper.FormatGuild(content, param.guild.guildid); + } + else + { + bool flag4 = param.dragonguild != null; + if (flag4) + { + result = XLabelSymbolHelper.FormatDragonGuild(content, param.dragonguild.dragonguildname); + } + else + { + bool flag5 = param.spectate != null; + if (flag5) + { + result = XLabelSymbolHelper.FormatSpectate(content, (int)param.spectate.liveid, (int)param.spectate.livetype); + } + else + { + result = XLabelSymbolHelper.FormatUI(content, (ulong)param.link.id, param.link.param); + } + } + } + } + } + return result; + } + + public static void OnUIHyperLinkClick(string param) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NOT_IN_HALL_SPECTATE"), "fece00"); + } + else + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NOT_IN_HALL_STAGE"), "fece00"); + } + else + { + SceneType sceneType = XSingleton.singleton.SceneType; + bool flag3 = sceneType == SceneType.SCENE_FAMILYGARDEN && XHomeCookAndPartyDocument.Doc.CurBanquetID > 0u; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("HomeFeasting"), "fece00"); + } + else + { + ulong num = 0UL; + List list = new List(); + bool flag4 = XLabelSymbolHelper.ParseUIParam(param, ref num, ref list); + if (flag4) + { + XSingleton.singleton.AddLog("UI link clicked: ", param, null, null, null, null, XDebugColor.XDebug_None); + bool flag5 = !XSingleton.singleton.IsSystemOpened((XSysDefine)num); + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SYSTEM_NOT_OPEN"), "fece00"); + } + else + { + XSysDefine xsysDefine = (XSysDefine)num; + if (xsysDefine <= XSysDefine.XSys_Home_Feast) + { + if (xsysDefine == XSysDefine.XSys_Personal_Career) + { + DlgBase.singleton.OpenOtherPush(list); + goto IL_29A; + } + if (xsysDefine == XSysDefine.XSys_Home_Feast) + { + bool flag6 = list.Count == 1; + if (flag6) + { + string name = ""; + bool flag7 = list[0] == XSingleton.singleton.XPlayerData.EntityID; + if (flag7) + { + name = XSingleton.singleton.XPlayerData.Name; + } + else + { + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(list[0]); + bool flag8 = friendDataById != null; + if (flag8) + { + name = friendDataById.name; + } + } + HomeMainDocument.Doc.ReqEnterHomeScene(list[0], name); + } + goto IL_29A; + } + } + else + { + if (xsysDefine == XSysDefine.XSys_Wedding) + { + bool flag9 = list.Count == 1; + if (flag9) + { + XWeddingDocument.Doc.WeddingInviteOperate(WeddingInviteOperType.Wedding_Apply, XSingleton.singleton.XPlayerData.RoleID, list[0]); + } + goto IL_29A; + } + if (xsysDefine == XSysDefine.XSys_GuildDialyDonate) + { + bool flag10 = list.Count == 1; + if (flag10) + { + XGuildDonateDocument.Doc.ShowViewWithID((uint)list[0], GuildDonateType.DailyDonate); + } + goto IL_29A; + } + if (xsysDefine == XSysDefine.XSys_GuildWeeklyDonate) + { + bool flag11 = list.Count == 1; + if (flag11) + { + XGuildDonateDocument.Doc.ShowViewWithID((uint)list[0], GuildDonateType.WeeklyDonate); + } + goto IL_29A; + } + } + XSingleton.singleton.OpenSystem((XSysDefine)num, 0UL); + IL_29A:; + } + } + } + } + } + } + + public static void OnSpectateClick(string param) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NOT_IN_HALL_SPECTATE"), "fece00"); + } + else + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NOT_IN_HALL_STAGE"), "fece00"); + } + else + { + bool flag3 = XLabelSymbolHelper.ParseSpectateParam(param, ref XInvitationDocument.mLiveID, ref XInvitationDocument.mType); + if (flag3) + { + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "xxxxxxxxxxx=> liveid: ", + XInvitationDocument.mLiveID, + " type: ", + XInvitationDocument.mType + }), null, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + string @string = XStringDefineProxy.GetString("Spectate_Sure"); + string string2 = XStringDefineProxy.GetString(XStringDefine.COMMON_OK); + string string3 = XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(XInvitationDocument.OnGoSpectate), null); + } + } + } + } + + private static bool OnGoSpectate(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.EnterSpectateBattle((uint)XInvitationDocument.mLiveID, (LiveType)XInvitationDocument.mType); + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XInvitationDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XInvitationDocument.cs.meta new file mode 100644 index 00000000..a32d8841 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XInvitationDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc06050dd236db54bb324d3084d61cce +timeCreated: 1611404548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItem.cs b/Client/Assets/Scripts/XMainClient/XItem.cs new file mode 100644 index 00000000..51e79afa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItem.cs @@ -0,0 +1,166 @@ +using System; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal abstract class XItem : XDataBase + { + public ItemType Type + { + get + { + return (ItemType)this.type; + } + } + + public uint Prof + { + get + { + return XBagDocument.GetItemProf(this.itemID); + } + } + + public IXItemDescription Description + { + get + { + return XItem.GetItemDescription(this.Type, this.itemID); + } + } + + public virtual bool bHasPPT + { + get + { + return false; + } + } + + public virtual bool Treasure + { + get + { + return false; + } + } + + public virtual AttrType Atype + { + get + { + return AttrType.None; + } + } + + public ulong uid; + + public uint type; + + public int itemID; + + public int itemCount; + + public bool bBinding; + + public uint smeltDegreeNum; + + public ItemList.RowData itemConf; + + public double blocking; + + public uint bexpirationTime; + + private static XEquipDescription s_EquipDescription = new XEquipDescription(); + + private static XEmblemDescription s_EmblemDescription = new XEmblemDescription(); + + private static XJadeDescription s_JadeDescription = new XJadeDescription(); + + private static XFashionDescription s_FashionDescription = new XFashionDescription(); + + private static XFashionHairDescription s_FashionHairDescription = new XFashionHairDescription(); + + private static XNormalDescription s_NormalDescription = new XNormalDescription(); + + private static XartifactDescription s_ArtifactDescription = new XartifactDescription(); + + public override void Init() + { + base.Init(); + this.uid = 0UL; + this.type = 0u; + this.itemID = 0; + this.itemCount = 0; + this.smeltDegreeNum = 0u; + this.bBinding = false; + this.itemConf = null; + } + + public virtual uint GetPPT(XAttributes attributes = null) + { + return 0u; + } + + public virtual string ToPPTString(XAttributes attributes = null) + { + return string.Empty; + } + + public static bool IsVirtualItem(int itemID) + { + return itemID < XFastEnumIntEqualityComparer.ToInt(ItemEnum.VIRTUAL_ITEM_MAX); + } + + public static IXItemDescription GetItemDescription(ItemType type, int itemid = 0) + { + switch (type) + { + case ItemType.EQUIP: + return XItem.s_EquipDescription; + case ItemType.PECK: + case ItemType.VIRTUAL_ITEM: + case ItemType.MATERAIL: + break; + case ItemType.FASHION: + return XItem.SelectFashionDescription(itemid); + case ItemType.EMBLEM: + return XItem.s_EmblemDescription; + case ItemType.JADE: + return XItem.s_JadeDescription; + default: + if (type == ItemType.ARTIFACT) + { + return XItem.s_ArtifactDescription; + } + break; + } + return XItem.s_NormalDescription; + } + + private static IXItemDescription SelectFashionDescription(int itemid) + { + bool flag = itemid == 0; + IXItemDescription result; + if (flag) + { + result = XItem.s_FashionDescription; + } + else + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(itemid); + bool flag2 = fashionConf == null || XFastEnumIntEqualityComparer.ToInt(FashionPosition.Hair) != (int)fashionConf.EquipPos; + if (flag2) + { + result = XItem.s_FashionDescription; + } + else + { + result = XItem.s_FashionHairDescription; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItem.cs.meta b/Client/Assets/Scripts/XMainClient/XItem.cs.meta new file mode 100644 index 00000000..dcac96fd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7edc6d100696bbe419a5ee77ae880904 +timeCreated: 1611404006 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs b/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs new file mode 100644 index 00000000..9802c69c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal struct XItemChangeAttr : IComparable + { + public uint AttrID; + + public uint AttrValue; + + public int CompareTo(XItemChangeAttr other) + { + bool flag = this.AttrID == other.AttrID; + int result; + if (flag) + { + result = this.AttrValue.CompareTo(other.AttrValue); + } + else + { + result = this.AttrID.CompareTo(other.AttrID); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs.meta b/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs.meta new file mode 100644 index 00000000..e02b93a0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemChangeAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5567401c4a48b7f45b0bd07e3c759fdd +timeCreated: 1611403737 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemChangeFinishedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XItemChangeFinishedEventArgs.cs new file mode 100644 index 00000000..9fa246b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemChangeFinishedEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XItemChangeFinishedEventArgs : XEventArgs + { + public XItemChangeFinishedEventArgs() + { + this._eDefine = XEventDefine.XEvent_ItemChangeFinished; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemChangeFinishedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XItemChangeFinishedEventArgs.cs.meta new file mode 100644 index 00000000..a83169c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemChangeFinishedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f5ce8ef99f9de304796de4db65fbdea1 +timeCreated: 1611404877 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemDrawer.cs b/Client/Assets/Scripts/XMainClient/XItemDrawer.cs new file mode 100644 index 00000000..a02ffacc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemDrawer.cs @@ -0,0 +1,918 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XItemDrawer + { + protected virtual string LeftDownCornerName + { + get + { + return "Bind"; + } + } + + protected virtual string LeftUpCornerName + { + get + { + return "Emblem_0"; + } + } + + protected virtual string RightDownCornerName + { + get + { + return "sp_wenzhang"; + } + } + + protected virtual string RightUpCornerName + { + get + { + return "sp_1"; + } + } + + private Dictionary ProfNameDic + { + get + { + bool flag = this.m_profNameDic == null; + if (flag) + { + this.m_profNameDic = new Dictionary(); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("profIconName", XGlobalConfig.AllSeparators); + bool flag2 = andSeparateValue.Length % 2 != 0; + if (flag2) + { + XSingleton.singleton.AddErrorLog("profIconName in gb had error", null, null, null, null, null); + } + else + { + int key = 0; + for (int i = 0; i < andSeparateValue.Length; i += 2) + { + bool flag3 = int.TryParse(andSeparateValue[i], out key); + if (flag3) + { + this.m_profNameDic.Add(key, andSeparateValue[i + 1]); + } + else + { + XSingleton.singleton.AddErrorLog(string.Format("profIconName in gb had error,index = {0} not a num", i), null, null, null, null, null); + } + } + } + } + return this.m_profNameDic; + } + } + + protected Transform m_uiTransform; + + protected IXUISprite m_quality; + + protected IXUISprite m_icon; + + protected IXUISprite m_iconBg; + + protected IXUISprite m_maskOld; + + protected IXUISprite m_largeMask; + + protected IXUILabel m_name; + + protected IXUILabel m_num; + + protected IXUILabel m_numTop; + + protected ItemList.RowData itemdata; + + protected IXUISprite m_leftDownCorner; + + protected IXUISprite m_leftUpCorner; + + protected IXUISprite m_rightDownCorner; + + protected IXUISprite m_rightUpCorner; + + protected IXUISprite m_mask; + + protected IXUISprite m_prof; + + protected IXUISprite m_attrType; + + protected string m_maskName = "kuang_35"; + + private Dictionary m_profNameDic; + + protected virtual void _GetUI(GameObject uiGo) + { + this.m_uiTransform = uiGo.transform; + Transform transform = uiGo.transform.Find("Icon/Icon"); + bool flag = transform != null; + if (flag) + { + this.m_icon = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_icon = null; + } + transform = uiGo.transform.Find("Icon/Attr"); + bool flag2 = transform != null; + if (flag2) + { + this.m_attrType = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_attrType = null; + } + transform = uiGo.transform.Find("Icon"); + bool flag3 = transform != null; + if (flag3) + { + this.m_iconBg = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_iconBg = null; + } + transform = uiGo.transform.Find("Name"); + bool flag4 = transform != null; + if (flag4) + { + this.m_name = (transform.GetComponent("XUILabel") as IXUILabel); + } + else + { + this.m_name = null; + } + transform = uiGo.transform.Find("Quality"); + bool flag5 = transform != null; + if (flag5) + { + this.m_quality = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_quality = null; + } + transform = uiGo.transform.Find("Num"); + bool flag6 = transform != null; + if (flag6) + { + this.m_num = (transform.GetComponent("XUILabel") as IXUILabel); + } + else + { + this.m_num = null; + } + transform = uiGo.transform.Find("NumTop"); + bool flag7 = transform != null; + if (flag7) + { + this.m_numTop = (transform.GetComponent("XUILabel") as IXUILabel); + } + else + { + this.m_numTop = null; + } + transform = uiGo.transform.Find("LeftDownCorner/Icon"); + bool flag8 = transform != null; + if (flag8) + { + this.m_leftDownCorner = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_leftDownCorner = null; + } + transform = uiGo.transform.Find("LeftUpCorner/Icon"); + bool flag9 = transform != null; + if (flag9) + { + this.m_leftUpCorner = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_leftUpCorner = null; + } + transform = uiGo.transform.Find("RightDownCorner/Icon"); + bool flag10 = transform != null; + if (flag10) + { + this.m_rightDownCorner = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_rightDownCorner = null; + } + transform = uiGo.transform.Find("RightUpCorner/Icon"); + bool flag11 = transform != null; + if (flag11) + { + this.m_rightUpCorner = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_rightUpCorner = null; + } + transform = uiGo.transform.Find("Mask/Icon"); + bool flag12 = transform != null; + if (flag12) + { + this.m_mask = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_mask = null; + } + transform = uiGo.transform.Find("RightUpProf/Icon"); + bool flag13 = transform != null; + if (flag13) + { + this.m_prof = (transform.GetComponent("XUISprite") as IXUISprite); + } + else + { + this.m_prof = null; + } + } + + public virtual void DrawItem(GameObject go, XItem realItem, bool bForceShowNum = false) + { + this._GetUI(go); + bool flag = realItem == null; + if (flag) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + this._GetItemData(realItem.itemID); + this._SetupIcon(); + this._SetupAttrIcon(realItem); + this._SetupName(realItem); + this._SetupNum(realItem); + this._SetupNumTop(realItem); + this._SetupLeftDownCorner(this._GetBindingState(realItem)); + this._SetupLeftUpCorner(false, ""); + this._SetupRightDownCorner(false); + this._SetupRightUpCorner(realItem.Type == ItemType.FRAGMENT); + this._SetupMask(); + this._SetUpProf(false); + this._ClearVariables(); + } + } + + protected virtual void _SetupName(XItem item) + { + this._SetNameUI(); + } + + protected virtual void _SetupNum(XItem item) + { + this._SetupNum(item.itemCount, false); + } + + protected virtual void _SetupNumTop(XItem item) + { + this._SetNumTopUI(null); + } + + protected void _SetupLeftDownCorner(bool flag) + { + bool flag2 = flag && this.m_leftDownCorner == null; + if (flag2) + { + this.m_leftDownCorner = this.GetCornerSpr("LeftDownCorner", ItemCornerType.LeftDown); + } + bool flag3 = this.m_leftDownCorner != null; + if (flag3) + { + bool flag4 = !flag; + if (flag4) + { + this.m_leftDownCorner.SetVisible(false); + } + else + { + this.m_leftDownCorner.SetVisible(true); + this.m_leftDownCorner.SetSprite(this.LeftDownCornerName); + } + } + } + + protected void _SetupLeftUpCorner(bool flag, string cornerName = "") + { + bool flag2 = flag && this.m_leftUpCorner == null; + if (flag2) + { + this.m_leftUpCorner = this.GetCornerSpr("LeftUpCorner", ItemCornerType.LeftUp); + } + bool flag3 = this.m_leftUpCorner != null; + if (flag3) + { + bool flag4 = !flag; + if (flag4) + { + this.m_leftUpCorner.SetVisible(false); + } + else + { + this.m_leftUpCorner.SetVisible(true); + bool flag5 = cornerName == ""; + if (flag5) + { + this.m_leftUpCorner.SetSprite(this.LeftUpCornerName); + } + else + { + this.m_leftUpCorner.SetSprite(cornerName); + } + } + } + } + + protected void _SetupRightDownCorner(bool flag) + { + bool flag2 = flag && this.m_rightDownCorner == null; + if (flag2) + { + this.m_rightDownCorner = this.GetCornerSpr("RightDownCorner", ItemCornerType.RightDown); + } + bool flag3 = this.m_rightDownCorner != null; + if (flag3) + { + bool flag4 = !flag; + if (flag4) + { + this.m_rightDownCorner.SetVisible(false); + } + else + { + this.m_rightDownCorner.SetVisible(true); + this.m_rightDownCorner.SetSprite(this.RightDownCornerName); + } + } + } + + protected void _SetupRightUpCorner(bool flag) + { + bool flag2 = flag && this.m_rightUpCorner == null; + if (flag2) + { + this.m_rightUpCorner = this.GetCornerSpr("RightUpCorner", ItemCornerType.RightUp); + } + bool flag3 = this.m_rightUpCorner != null; + if (flag3) + { + bool flag4 = !flag; + if (flag4) + { + this.m_rightUpCorner.SetVisible(false); + } + else + { + this.m_rightUpCorner.SetVisible(true); + this.m_rightUpCorner.SetSprite(this.RightDownCornerName); + } + } + } + + protected void _SetUpProf(bool flag) + { + bool flag2 = flag && this.m_prof == null; + if (flag2) + { + this.m_prof = this.GetCornerSpr("RightUpProf", ItemCornerType.Prof); + } + bool flag3 = this.m_prof != null; + if (flag3) + { + bool flag4 = !flag; + if (flag4) + { + this.m_prof.SetVisible(false); + } + else + { + this.m_prof.SetVisible(true); + this.m_prof.SetSprite(this.GetProfIconName()); + } + } + } + + protected void _SetupMask() + { + bool bShowMask = XItemDrawerMgr.Param.bShowMask; + if (bShowMask) + { + this.m_maskName = "kuang_35"; + this._SetupMaskUI(true); + } + else + { + bool flag = this.itemdata == null; + if (flag) + { + this._SetupMaskUI(false); + } + else + { + ItemType itemType = (ItemType)this.itemdata.ItemType; + if (itemType != ItemType.EQUIP) + { + if (itemType != ItemType.ARTIFACT) + { + this._SetupMaskUI(false); + } + else + { + this._SetupLevelMask(); + } + } + else + { + bool flag2 = this._SetupLevelMask(); + if (!flag2) + { + this._SetupProfMask(); + } + } + } + } + } + + private void _SetupMaskUI(bool flag) + { + bool flag2 = flag && this.m_mask == null; + if (flag2) + { + this.m_mask = this.GetCornerSpr("Mask", ItemCornerType.Center); + } + bool flag3 = this.m_mask != null; + if (flag3) + { + bool flag4 = !flag; + if (flag4) + { + this.m_mask.SetVisible(false); + } + else + { + this.m_mask.SetVisible(true); + this.m_mask.SetSprite(this.m_maskName); + bool flag5 = this.m_icon != null; + if (flag5) + { + this.m_mask.transform.localScale = this.m_quality.transform.localScale; + this.m_mask.spriteWidth = this.m_quality.spriteWidth * 7 / 9; + this.m_mask.spriteHeight = this.m_quality.spriteHeight * 7 / 9; + } + } + } + } + + private IXUISprite GetCornerSpr(string name, ItemCornerType type) + { + GameObject go = XSingleton.singleton.GetGo(type); + bool flag = go == null; + IXUISprite result; + if (flag) + { + result = null; + } + else + { + GameObject gameObject = XCommon.Instantiate(go); + gameObject.SetActive(true); + gameObject.name = name; + gameObject.transform.parent = this.m_uiTransform; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = Vector3.zero; + result = (gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + } + return result; + } + + protected bool _SetupLevelMask() + { + XPlayer player = XSingleton.singleton.Player; + bool flag = player != null && XItemDrawerMgr.Param.bShowLevelReq; + if (flag) + { + uint level = player.Attributes.Level; + bool flag2 = (ulong)level < (ulong)((long)this.itemdata.ReqLevel); + if (flag2) + { + this.m_maskName = "kuang_35"; + this._SetupMaskUI(true); + return true; + } + this._SetupMaskUI(false); + } + else + { + this._SetupMaskUI(false); + } + return false; + } + + protected bool _SetupProfMask() + { + bool bShowProfReq = XItemDrawerMgr.Param.bShowProfReq; + if (bShowProfReq) + { + bool flag = XBagDocument.IsProfMatched((uint)this.itemdata.Profession); + if (!flag) + { + this.m_maskName = "kuang_35"; + this._SetupMaskUI(true); + return true; + } + this._SetupMaskUI(false); + } + else + { + this._SetupMaskUI(false); + } + return false; + } + + private string GetProfIconName() + { + bool flag = XSingleton.singleton.Player == null; + string result; + if (flag) + { + result = ""; + } + else + { + string text = ""; + this.ProfNameDic.TryGetValue((int)XSingleton.singleton.Player.BasicTypeID, out text); + result = text; + } + return result; + } + + protected void _GetItemData(int id) + { + this.itemdata = XBagDocument.GetItemConf(id); + } + + protected bool _GetBindingState(XItem item) + { + bool flag = item == null; + bool result; + if (flag) + { + result = XItemDrawerMgr.Param.bBinding; + } + else + { + result = (item.bBinding && !XItemDrawerMgr.Param.bHideBinding); + } + return result; + } + + protected virtual void _SetupIcon() + { + bool flag = this.itemdata == null; + if (flag) + { + this._SetIconUI(null, null, 1, 1); + this._SetIconBgUI(null, null); + } + else + { + bool flag2 = XItemDrawerMgr.Param.IconType == 0u; + if (flag2) + { + this._SetIconUI(XSingleton.singleton.ChooseProfString(this.itemdata.ItemIcon, XItemDrawerMgr.Param.Profession), XSingleton.singleton.ChooseProfString(this.itemdata.ItemAtlas, XItemDrawerMgr.Param.Profession), (int)this.itemdata.ItemQuality, (int)this.itemdata.ItemType); + } + else + { + this._SetIconUI(XSingleton.singleton.ChooseProfString(this.itemdata.ItemIcon1, XItemDrawerMgr.Param.Profession), XSingleton.singleton.ChooseProfString(this.itemdata.ItemAtlas1, XItemDrawerMgr.Param.Profession), (int)this.itemdata.ItemQuality, (int)this.itemdata.ItemType); + } + bool flag3 = this.itemdata.ItemType == 28; + if (flag3) + { + this._SetIconBgUI("29", "Item/Item"); + } + else + { + this._SetIconBgUI(string.Empty, string.Empty); + } + } + } + + protected virtual void _SetupAttrIcon(XItem item) + { + this._SetAttrIcon(null, null); + } + + protected void _SetIconBgUI(string icon, string atlas) + { + bool flag = this.m_iconBg != null; + if (flag) + { + bool flag2 = icon == null || atlas == null; + if (flag2) + { + this.m_iconBg.SetVisible(false); + } + else + { + this.m_iconBg.SetVisible(true); + bool flag3 = atlas == string.Empty; + if (flag3) + { + this.m_iconBg.SetSprite(icon); + } + else + { + this.m_iconBg.SetSprite(icon, atlas, false); + } + } + } + } + + protected void _SetAttrIcon(string icon, string atlas) + { + bool flag = this.m_attrType != null; + if (flag) + { + bool flag2 = string.IsNullOrEmpty(icon) || string.IsNullOrEmpty(atlas); + if (flag2) + { + this.m_attrType.SetVisible(false); + } + else + { + this.m_attrType.SetVisible(true); + this.m_attrType.SetSprite(icon, atlas, false); + } + } + } + + protected void _SetIconUI(string icon, string atlas, int quality, int type) + { + bool flag = icon == null || atlas == null; + if (flag) + { + bool flag2 = this.m_quality != null; + if (flag2) + { + this.m_quality.SetVisible(false); + } + bool flag3 = this.m_icon != null; + if (flag3) + { + this.m_icon.SetVisible(false); + } + } + else + { + bool flag4 = this.m_quality != null; + if (flag4) + { + this.m_quality.SetVisible(true); + this.m_quality.SetSprite(XSingleton.singleton.GetItemQualityFrame(quality, type)); + } + bool flag5 = this.m_icon != null; + if (flag5) + { + this.m_icon.SetVisible(true); + this.m_icon.SetSprite(icon, atlas, false); + this.m_icon.SetAudioClip("Audio/UI/UI_Button_ok"); + bool flag6 = this.itemdata == null || this.itemdata.IconTransform == null || this.itemdata.IconTransform.Length != 9; + if (flag6) + { + this.m_icon.gameObject.transform.localPosition = Vector3.zero; + this.m_icon.gameObject.transform.localRotation = Quaternion.identity; + this.m_icon.gameObject.transform.localScale = Vector3.one; + } + else + { + this.m_icon.gameObject.transform.localPosition = new Vector3(this.itemdata.IconTransform[0], this.itemdata.IconTransform[1], this.itemdata.IconTransform[2]); + this.m_icon.gameObject.transform.localRotation = Quaternion.Euler(this.itemdata.IconTransform[3], this.itemdata.IconTransform[4], this.itemdata.IconTransform[5]); + this.m_icon.gameObject.transform.localScale = new Vector3(this.itemdata.IconTransform[6], this.itemdata.IconTransform[7], this.itemdata.IconTransform[8]); + } + } + } + } + + protected void _SetLargeMaskUI(string sprite, string atlas) + { + bool flag = this.m_largeMask == null && sprite != null; + if (flag) + { + GameObject gameObject = XCommon.Instantiate(this.m_icon.gameObject); + for (int i = gameObject.transform.childCount - 1; i >= 0; i--) + { + GameObject gameObject2 = gameObject.transform.GetChild(i).gameObject; + UnityEngine.Object.Destroy(gameObject2); + } + gameObject.transform.parent = this.m_icon.gameObject.transform.parent; + gameObject.transform.localPosition = this.m_icon.gameObject.transform.localPosition; + gameObject.transform.localScale = this.m_icon.gameObject.transform.localScale; + BoxCollider component = gameObject.GetComponent(); + bool flag2 = component != null; + if (flag2) + { + UnityEngine.Object.Destroy(component); + } + gameObject.name = "LargeMask"; + this.m_largeMask = (gameObject.GetComponent("XUISprite") as IXUISprite); + this.m_largeMask.spriteDepth++; + } + bool flag3 = this.m_largeMask != null; + if (flag3) + { + bool flag4 = sprite == null || atlas == null; + if (flag4) + { + this.m_largeMask.SetVisible(false); + } + else + { + this.m_largeMask.SetSprite(sprite, atlas, false); + this.m_largeMask.SetVisible(true); + } + } + } + + protected void _SetNameUI() + { + bool flag = this.itemdata == null; + if (flag) + { + this._SetNameUI(null, 1); + } + else + { + this._SetNameUI(XSingleton.singleton.ChooseProfString(this.itemdata.ItemName, 0u), (int)this.itemdata.ItemQuality); + } + } + + protected void _SetNameUI(string name, int quality) + { + bool flag = this.m_name != null; + if (flag) + { + bool flag2 = name == null; + if (flag2) + { + this.m_name.SetVisible(false); + } + else + { + this.m_name.SetText(name); + this.m_name.SetVisible(true); + this.m_name.SetColor(XSingleton.singleton.GetItemQualityColor(quality)); + } + } + } + + protected void _SetNumUI(string num) + { + bool flag = this.m_num != null; + if (flag) + { + bool flag2 = num == null; + if (flag2) + { + this.m_num.SetVisible(false); + } + else + { + this.m_num.SetText(num); + this.m_num.SetVisible(true); + bool flag3 = XItemDrawerMgr.Param.NumColor != null; + if (flag3) + { + this.m_num.SetColor(XItemDrawerMgr.Param.NumColor ?? Color.white); + } + } + } + } + + protected void _SetNumTopUI(string num) + { + bool flag = this.m_numTop != null; + if (flag) + { + bool flag2 = num == null; + if (flag2) + { + this.m_numTop.SetVisible(false); + } + else + { + this.m_numTop.SetText(num); + this.m_numTop.SetVisible(true); + } + } + } + + protected void _SetupNum(int count, bool bForceShowNum = false) + { + bool flag = XItemDrawerMgr.Param.MaxItemCount < 0; + if (flag) + { + bool flag2 = count <= 1 && !bForceShowNum; + if (flag2) + { + this._SetNumUI(null); + } + else + { + this._SetNumUI(count.ToString()); + } + } + else + { + bool flag3 = XItemDrawerMgr.Param.MaxShowNum >= 0 && count > XItemDrawerMgr.Param.MaxShowNum; + if (flag3) + { + this._SetNumUI(XSingleton.singleton.StringCombine("...", "/", XItemDrawerMgr.Param.MaxItemCount.ToString())); + } + else + { + this._SetNumUI(XSingleton.singleton.StringCombine(count.ToString(), "/", XItemDrawerMgr.Param.MaxItemCount.ToString())); + } + } + } + + protected void _SetupNum(int useCount, bool bForceShowNum, int itemCount) + { + bool flag = !bForceShowNum; + if (flag) + { + this._SetNumUI(null); + } + else + { + bool flag2 = itemCount < useCount; + if (flag2) + { + this._SetNumUI(string.Format("[ff0000]{0}[-]/{1}", itemCount.ToString(), useCount.ToString())); + } + else + { + this._SetNumUI(string.Format("{0}/{1}", itemCount.ToString(), useCount.ToString())); + } + } + } + + protected virtual void DrawEmpty() + { + this.itemdata = null; + this._SetIconUI(null, null, 0, 0); + this._SetAttrIcon(null, null); + this._SetIconBgUI(null, null); + this._SetNameUI(null, 0); + this._SetNumUI(null); + this._SetNumTopUI(null); + this._SetupLeftDownCorner(false); + this._SetupLeftUpCorner(false, ""); + this._SetupRightDownCorner(false); + this._SetupRightUpCorner(false); + this._SetupMask(); + this._SetUpProf(false); + } + + protected virtual void _ClearVariables() + { + this.m_icon = null; + this.m_iconBg = null; + this.m_name = null; + this.m_num = null; + this.m_numTop = null; + this.m_quality = null; + this.m_maskOld = null; + this.m_largeMask = null; + this.m_leftDownCorner = null; + this.m_leftUpCorner = null; + this.m_rightDownCorner = null; + this.m_rightUpCorner = null; + this.m_mask = null; + this.itemdata = null; + this.m_attrType = null; + XItemDrawerMgr.Param.Reset(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemDrawer.cs.meta b/Client/Assets/Scripts/XMainClient/XItemDrawer.cs.meta new file mode 100644 index 00000000..ee50803f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d21b8af671f4485498c5782627b86bcf +timeCreated: 1611404594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemDrawerMgr.cs b/Client/Assets/Scripts/XMainClient/XItemDrawerMgr.cs new file mode 100644 index 00000000..ee54fc63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemDrawerMgr.cs @@ -0,0 +1,149 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XItemDrawerMgr : XSingleton + { + public GameObject LeftDownCornerGo; + + public GameObject LeftUpCornerGo; + + public GameObject RightDownCornerGo; + + public GameObject RightUpCornerGo; + + public GameObject MaskGo; + + public GameObject ProfGo; + + public XNormalItemDrawer normalItemDrawer = new XNormalItemDrawer(); + + public XEquipItemDrawer equipItemDrawer = new XEquipItemDrawer(); + + public XJadeSlotDrawer jadeSlotDrawer = new XJadeSlotDrawer(); + + public XJadeItemDrawer jadeItemDrawer = new XJadeItemDrawer(); + + public XEmblemItemDrawer emblemItemDrawer = new XEmblemItemDrawer(); + + public XFashionDrawer fashionDrawer = new XFashionDrawer(); + + public static XItemDrawerParam Param = new XItemDrawerParam(); + + public void DrawItem(GameObject go, XItem item) + { + bool flag = item == null; + if (flag) + { + this.normalItemDrawer.DrawItem(go, null, 0, false); + } + else + { + item.Description.ItemDrawer.DrawItem(go, item, false); + } + } + + public void Init(uint profession) + { + XItemDrawerParam.DefaultProfession = profession % 10u; + XItemDrawerMgr.Param.Reset(); + } + + public GameObject GetGo(ItemCornerType type) + { + GameObject result; + switch (type) + { + case ItemCornerType.LeftDown: + { + bool flag = this.LeftDownCornerGo == null; + if (flag) + { + this.LeftDownCornerGo = this.Load("LeftDownCorner"); + } + result = this.LeftDownCornerGo; + break; + } + case ItemCornerType.LeftUp: + { + bool flag2 = this.LeftUpCornerGo == null; + if (flag2) + { + this.LeftUpCornerGo = this.Load("LeftUpCorner"); + } + result = this.LeftUpCornerGo; + break; + } + case ItemCornerType.RightDown: + { + bool flag3 = this.RightDownCornerGo == null; + if (flag3) + { + this.RightDownCornerGo = this.Load("RightDownCorner"); + } + result = this.RightDownCornerGo; + break; + } + case ItemCornerType.RightUp: + { + bool flag4 = this.RightUpCornerGo == null; + if (flag4) + { + this.RightUpCornerGo = this.Load("RightUpCorner"); + } + result = this.RightUpCornerGo; + break; + } + case ItemCornerType.Center: + { + bool flag5 = this.MaskGo == null; + if (flag5) + { + this.MaskGo = this.Load("Mask"); + } + result = this.MaskGo; + break; + } + case ItemCornerType.Prof: + { + bool flag6 = this.ProfGo == null; + if (flag6) + { + this.ProfGo = this.Load("RightUpProf"); + } + result = this.ProfGo; + break; + } + default: + XSingleton.singleton.AddErrorLog("type error", null, null, null, null, null); + result = null; + break; + } + return result; + } + + private GameObject Load(string perfabName) + { + string location = XSingleton.singleton.StringCombine("UI/Common/", perfabName); + GameObject gameObject = XSingleton.singleton.CreateFromPrefab(location, true, false) as GameObject; + bool flag = gameObject == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("type error,perfabName = " + perfabName, null, null, null, null, null); + } + return gameObject; + } + + public void OnleaveScene() + { + XResourceLoaderMgr.SafeDestroy(ref this.LeftDownCornerGo, true); + XResourceLoaderMgr.SafeDestroy(ref this.LeftUpCornerGo, true); + XResourceLoaderMgr.SafeDestroy(ref this.RightDownCornerGo, true); + XResourceLoaderMgr.SafeDestroy(ref this.RightUpCornerGo, true); + XResourceLoaderMgr.SafeDestroy(ref this.MaskGo, true); + XResourceLoaderMgr.SafeDestroy(ref this.ProfGo, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemDrawerMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XItemDrawerMgr.cs.meta new file mode 100644 index 00000000..bd51cd39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemDrawerMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0c9ba46a1c5e4594da723ca1c82741f7 +timeCreated: 1611403174 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemDrawerParam.cs b/Client/Assets/Scripts/XMainClient/XItemDrawerParam.cs new file mode 100644 index 00000000..87d9142c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemDrawerParam.cs @@ -0,0 +1,44 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XItemDrawerParam + { + public static uint DefaultProfession = 0u; + + public uint Profession = 0u; + + public uint IconType = 0u; + + public bool bShowLevelReq = true; + + public bool bShowProfReq = true; + + public bool bBinding = false; + + public int MaxItemCount = -1; + + public Color? NumColor = null; + + public bool bHideBinding; + + public bool bShowMask; + + public int MaxShowNum = -1; + + public void Reset() + { + this.Profession = XItemDrawerParam.DefaultProfession; + this.IconType = 0u; + this.bShowLevelReq = true; + this.bShowProfReq = true; + this.bBinding = false; + this.MaxItemCount = -1; + this.NumColor = null; + this.bHideBinding = false; + this.bShowMask = false; + this.MaxShowNum = -1; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemDrawerParam.cs.meta b/Client/Assets/Scripts/XMainClient/XItemDrawerParam.cs.meta new file mode 100644 index 00000000..1bf1aabb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemDrawerParam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cc6e233d249d48d42aac9c76347ce48e +timeCreated: 1611404550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemFilter.cs b/Client/Assets/Scripts/XMainClient/XItemFilter.cs new file mode 100644 index 00000000..60a289a7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemFilter.cs @@ -0,0 +1,150 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XItemFilter + { + public ulong FilterValue + { + get + { + return this._FilterValue; + } + } + + private HashSet _Types = null; + + private HashSet _IDs = null; + + private ulong _FilterValue = 0UL; + + private bool m_bExclusive = false; + + public void AddItemType(ItemType type) + { + bool flag = this._Types == null; + if (flag) + { + this._Types = new HashSet(default(XFastEnumIntEqualityComparer)); + } + this._Types.Add(type); + this._FilterValue |= 1UL << XFastEnumIntEqualityComparer.ToInt(type); + } + + public void AddItemID(int id) + { + bool flag = this._IDs == null; + if (flag) + { + this._IDs = new HashSet(default(XFastEnumIntEqualityComparer)); + } + this._IDs.Add(id); + } + + public void ExcludeItemType(ItemType type) + { + bool flag = this._Types == null; + if (flag) + { + this._Types = new HashSet(default(XFastEnumIntEqualityComparer)); + } + bool flag2 = !this.m_bExclusive; + if (flag2) + { + this.m_bExclusive = true; + this._FilterValue = ulong.MaxValue; + } + this._Types.Add(type); + this._FilterValue &= ~(1UL << XFastEnumIntEqualityComparer.ToInt(type)); + } + + public void ExcludeItemID(int id) + { + bool flag = this._IDs == null; + if (flag) + { + this._IDs = new HashSet(default(XFastEnumIntEqualityComparer)); + } + bool flag2 = !this.m_bExclusive; + if (flag2) + { + this.m_bExclusive = true; + } + this._IDs.Add(id); + } + + public void Clear() + { + bool flag = this._Types != null; + if (flag) + { + this._Types.Clear(); + } + bool flag2 = this._IDs != null; + if (flag2) + { + this._IDs.Clear(); + } + this._FilterValue = 0UL; + this.m_bExclusive = false; + } + + public bool Contains(ItemType type) + { + bool bExclusive = this.m_bExclusive; + bool result; + if (bExclusive) + { + result = (this._Types == null || !this._Types.Contains(type)); + } + else + { + result = (this._Types != null && this._Types.Contains(type)); + } + return result; + } + + public bool Contains(int id) + { + bool bExclusive = this.m_bExclusive; + bool result; + if (bExclusive) + { + result = (this._IDs == null || !this._IDs.Contains(id)); + } + else + { + result = (this._IDs != null && this._IDs.Contains(id)); + } + return result; + } + + public bool Contains(List types) + { + for (int i = 0; i < types.Count; i++) + { + bool flag = this.Contains(types[i]); + if (flag) + { + return true; + } + } + return false; + } + + public bool Contains(List ids) + { + for (int i = 0; i < ids.Count; i++) + { + bool flag = this.Contains(ids[i]); + if (flag) + { + return true; + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemFilter.cs.meta b/Client/Assets/Scripts/XMainClient/XItemFilter.cs.meta new file mode 100644 index 00000000..27774efa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemFilter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 45c513da87d6bc747941d031fa843d33 +timeCreated: 1611403648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemMorePowerfulTipMgr.cs b/Client/Assets/Scripts/XMainClient/XItemMorePowerfulTipMgr.cs new file mode 100644 index 00000000..eaa6dba0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemMorePowerfulTipMgr.cs @@ -0,0 +1,134 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XItemMorePowerfulTipMgr + { + public bool bLoaded + { + get + { + return this.m_Tip != null; + } + } + + private XUIPool m_Pool = new XUIPool(XSingleton.singleton.m_uiTool); + + private GameObject m_Tip = null; + + private Dictionary m_TipsDic = new Dictionary(); + + private bool m_bLoadFromUI = false; + + public int DeltaDepth = 60; + + public void Load(string prefabName) + { + this._Load("UI/Common/" + prefabName); + } + + public void LoadFromUI(GameObject go) + { + this.m_Tip = go; + this.m_bLoadFromUI = true; + } + + private void _Load(string prefab) + { + this._Destroy(); + this.m_Tip = (XSingleton.singleton.CreateFromPrefab(prefab, true, false) as GameObject); + this.m_bLoadFromUI = false; + } + + public void SetupPool(GameObject parent) + { + bool flag = this.m_Tip == null; + if (flag) + { + this.Load("ItemMorePowerfulTip"); + } + this.m_Pool.SetupPool(parent, this.m_Tip, 2u, false); + } + + private void _Destroy() + { + bool flag = !this.m_bLoadFromUI; + if (flag) + { + XResourceLoaderMgr.SafeDestroy(ref this.m_Tip, true); + } + this.m_TipsDic.Clear(); + } + + public void Unload() + { + this._Destroy(); + } + + public void ReturnAll() + { + this.m_Pool.ReturnAll(false); + this.m_TipsDic.Clear(); + } + + public void ReturnInstance(IXUISprite bg) + { + GameObject go; + bool flag = this.m_TipsDic.TryGetValue(bg, out go); + if (flag) + { + this.m_Pool.ReturnInstance(go, false); + this.m_TipsDic.Remove(bg); + } + } + + public void FakeReturnAll() + { + this.m_Pool.FakeReturnAll(); + this.m_TipsDic.Clear(); + } + + public void ActualReturnAll() + { + this.m_Pool.ActualReturnAll(false); + } + + public GameObject SetTip(GameObject bg) + { + IXUISprite tip = bg.GetComponent("XUISprite") as IXUISprite; + return this.SetTip(tip); + } + + public GameObject SetTip(IXUISprite bg) + { + GameObject gameObject; + bool flag = this.m_TipsDic.TryGetValue(bg, out gameObject); + GameObject result; + if (flag) + { + result = gameObject; + } + else + { + gameObject = this.m_Pool.FetchGameObject(false); + gameObject.transform.parent = bg.gameObject.transform; + gameObject.transform.localPosition = Vector3.zero; + gameObject.transform.localScale = Vector3.one; + gameObject.name = this.m_Tip.name; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag2 = !this.m_bLoadFromUI; + if (flag2) + { + ixuisprite.spriteDepth = bg.spriteDepth + this.DeltaDepth; + } + this.m_TipsDic.Add(bg, gameObject); + result = gameObject; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemMorePowerfulTipMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XItemMorePowerfulTipMgr.cs.meta new file mode 100644 index 00000000..1ea63b11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemMorePowerfulTipMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6dad5a384f4dc604280e5c42976c250c +timeCreated: 1611403903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemNumChangedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XItemNumChangedEventArgs.cs new file mode 100644 index 00000000..ec51519f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemNumChangedEventArgs.cs @@ -0,0 +1,35 @@ +using System; + +namespace XMainClient +{ + internal class XItemNumChangedEventArgs : XEventArgs + { + public int oldCount; + + public XItem item; + + public bool bNew = true; + + public XItemNumChangedEventArgs() + { + this._eDefine = XEventDefine.XEvent_ItemNumChanged; + } + + public override void Recycle() + { + base.Recycle(); + this.item = null; + this.bNew = true; + XEventPool.Recycle(this); + } + + public override XEventArgs Clone() + { + XItemNumChangedEventArgs @event = XEventPool.GetEvent(); + @event.oldCount = this.oldCount; + @event.item = this.item; + @event.bNew = this.bNew; + return @event; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemNumChangedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XItemNumChangedEventArgs.cs.meta new file mode 100644 index 00000000..9ec497cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemNumChangedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8dbaf7bb99411074b8aff87108470a32 +timeCreated: 1611404105 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemRequired.cs b/Client/Assets/Scripts/XMainClient/XItemRequired.cs new file mode 100644 index 00000000..92d1ecce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemRequired.cs @@ -0,0 +1,35 @@ +using System; + +namespace XMainClient +{ + internal class XItemRequired : XDataBase + { + public bool bEnough + { + get + { + return this.requiredCount <= this.ownedCount; + } + } + + public int itemID; + + public ulong requiredCount; + + public ulong ownedCount; + + public override void Init() + { + base.Init(); + this.itemID = 0; + this.requiredCount = 0UL; + this.ownedCount = 0UL; + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemRequired.cs.meta b/Client/Assets/Scripts/XMainClient/XItemRequired.cs.meta new file mode 100644 index 00000000..cdf38b2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemRequired.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c47a065cd60d27940839283378aca368 +timeCreated: 1611404502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemRequiredCollector.cs b/Client/Assets/Scripts/XMainClient/XItemRequiredCollector.cs new file mode 100644 index 00000000..0306242d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemRequiredCollector.cs @@ -0,0 +1,198 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XItemRequiredCollector + { + public List RequiredItems + { + get + { + return this.m_RequiredItems; + } + } + + public bool bItemsEnough + { + get + { + for (int i = 0; i < this.m_RequiredItems.Count; i++) + { + bool flag = !this.m_RequiredItems[i].bEnough; + if (flag) + { + return false; + } + } + return true; + } + } + + private List m_RequiredItems = new List(); + + private List m_OwnedItems = new List(); + + public void Init() + { + this.InitRequired(); + this.InitOwned(); + } + + public void ReturnNotEnoughItems() + { + bool bItemsEnough = this.bItemsEnough; + if (!bItemsEnough) + { + for (int i = 0; i < this.m_RequiredItems.Count; i++) + { + XItemRequired xitemRequired = this.m_RequiredItems[i]; + XItemRequired ownedItem = this.GetOwnedItem(xitemRequired.itemID); + ownedItem.ownedCount += xitemRequired.requiredCount; + } + } + } + + public void InitRequired() + { + for (int i = 0; i < this.m_RequiredItems.Count; i++) + { + this.m_RequiredItems[i].Recycle(); + } + this.m_RequiredItems.Clear(); + } + + public void InitOwned() + { + for (int i = 0; i < this.m_OwnedItems.Count; i++) + { + this.m_OwnedItems[i].Recycle(); + } + this.m_OwnedItems.Clear(); + } + + public void PreserveOwned(int itemID) + { + this.GetOwnedItem(itemID); + } + + public XItemRequired GetRequiredItem(uint itemid, ulong itemcount, float param = 1f) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemid); + bool flag = itemConf == null; + XItemRequired result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Cant find required item id ", itemid.ToString(), null, null, null, null); + result = null; + } + else + { + XItemRequired data = XDataPool.GetData(); + this.m_RequiredItems.Add(data); + data.itemID = (int)itemid; + data.requiredCount = (ulong)(itemcount * param); + XItemRequired ownedItem = this.GetOwnedItem(data.itemID); + data.ownedCount = ownedItem.ownedCount; + ownedItem.ownedCount -= data.requiredCount; + result = data; + } + return result; + } + + public void GetRequiredItems(ref SeqListRef tableData, float param = 1f) + { + for (int i = 0; i < tableData.Count; i++) + { + this.GetRequiredItem(tableData[i, 0], (ulong)tableData[i, 1], param); + } + } + + public void Merge() + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < this.m_RequiredItems.Count; i++) + { + XItemRequired xitemRequired = this.m_RequiredItems[i]; + XItemRequired xitemRequired2; + bool flag = dictionary.TryGetValue(xitemRequired.itemID, out xitemRequired2); + if (flag) + { + xitemRequired2.requiredCount += xitemRequired.requiredCount; + xitemRequired.Recycle(); + } + else + { + this.m_RequiredItems[dictionary.Count] = xitemRequired; + dictionary.Add(xitemRequired.itemID, xitemRequired); + } + } + bool flag2 = dictionary.Count < this.m_RequiredItems.Count; + if (flag2) + { + this.m_RequiredItems.RemoveRange(dictionary.Count, this.m_RequiredItems.Count - dictionary.Count); + } + } + + public XItemRequired GetItem(int itemid) + { + for (int i = 0; i < this.m_RequiredItems.Count; i++) + { + bool flag = this.m_RequiredItems[i].itemID == itemid; + if (flag) + { + return this.m_RequiredItems[i]; + } + } + return null; + } + + public bool HasOwnedItem(int itemID) + { + for (int i = 0; i < this.m_OwnedItems.Count; i++) + { + bool flag = this.m_OwnedItems[i].itemID == itemID; + if (flag) + { + return true; + } + } + return false; + } + + public void SetNewOwnedItem(int itemID, ulong count) + { + bool flag = this.HasOwnedItem(itemID); + if (!flag) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + bool flag2 = itemConf == null; + if (!flag2) + { + XItemRequired data = XDataPool.GetData(); + data.itemID = itemID; + data.ownedCount = count; + this.m_OwnedItems.Add(data); + } + } + } + + public XItemRequired GetOwnedItem(int itemID) + { + for (int i = 0; i < this.m_OwnedItems.Count; i++) + { + bool flag = this.m_OwnedItems[i].itemID == itemID; + if (flag) + { + return this.m_OwnedItems[i]; + } + } + XItemRequired data = XDataPool.GetData(); + data.itemID = itemID; + data.ownedCount = XSingleton.singleton.Doc.XBagDoc.GetItemCount(itemID); + this.m_OwnedItems.Add(data); + return data; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemRequiredCollector.cs.meta b/Client/Assets/Scripts/XMainClient/XItemRequiredCollector.cs.meta new file mode 100644 index 00000000..80e36d72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemRequiredCollector.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4bf8621785c1f148846b5fa4a6dcaa0 +timeCreated: 1611404503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XItemSelector.cs b/Client/Assets/Scripts/XMainClient/XItemSelector.cs new file mode 100644 index 00000000..5f2bfd07 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemSelector.cs @@ -0,0 +1,147 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XItemSelector + { + public GameObject Effects + { + get + { + return this.m_Selecter; + } + } + + private GameObject m_Selecter = null; + + private IUIDummy m_UIDummy = null; + + public int DeltaDepth = 50; + + private bool m_bLoadFromUI; + + private Transform m_Parent = XSingleton.singleton.UIRoot; + + private uint m_DefaultWidth = 0u; + + public XItemSelector(uint defaltWidth = 0u) + { + this.m_DefaultWidth = defaltWidth; + } + + public void Load(string prefabName) + { + this._Load("UI/Common/" + prefabName); + } + + private void _Load(string prefab) + { + this._Destroy(); + this.m_Selecter = (XSingleton.singleton.CreateFromPrefab(prefab, true, false) as GameObject); + this.m_UIDummy = (this.m_Selecter.GetComponent("UIDummy") as IUIDummy); + this.m_bLoadFromUI = false; + this.m_Parent = XSingleton.singleton.UIRoot; + } + + public void LoadFromUI(GameObject go, Transform parent) + { + this._Destroy(); + this.m_Selecter = go; + this.m_UIDummy = (this.m_Selecter.GetComponent("UIDummy") as IUIDummy); + this.m_bLoadFromUI = true; + bool flag = parent != null; + if (flag) + { + this.m_Parent = parent; + } + this.Hide(); + } + + private void _Destroy() + { + bool flag = this.m_Selecter != null; + if (flag) + { + bool flag2 = !this.m_bLoadFromUI; + if (flag2) + { + XResourceLoaderMgr.SafeDestroy(ref this.m_Selecter, true); + } + else + { + this.m_Selecter.transform.parent = this.m_Parent; + } + this.m_Selecter = null; + this.m_UIDummy = null; + } + } + + public void Unload() + { + this._Destroy(); + } + + public void Select(GameObject bg) + { + bool flag = bg == null; + if (!flag) + { + IXUISprite bg2 = bg.GetComponent("XUISprite") as IXUISprite; + this.Select(bg2); + } + } + + public void Select(IXUISprite bg) + { + bool flag = bg == null; + if (!flag) + { + bool flag2 = this.m_Selecter == null; + if (flag2) + { + this.Load("ItemSelector"); + } + bool flag3 = this.m_Selecter == null; + if (!flag3) + { + this.m_Selecter.SetActive(true); + this.m_Selecter.transform.parent = bg.gameObject.transform; + this.m_Selecter.transform.localPosition = Vector3.zero; + bool flag4 = this.m_DefaultWidth > 0u; + if (flag4) + { + float num = (float)bg.spriteWidth / this.m_DefaultWidth; + this.m_Selecter.transform.localScale = new Vector3(num, num, num); + } + else + { + this.m_Selecter.transform.localScale = Vector3.one; + } + XSingleton.singleton.m_uiTool.MarkParentAsChanged(this.m_Selecter); + bool flag5 = !this.m_bLoadFromUI; + if (flag5) + { + bool flag6 = this.m_UIDummy != null; + if (flag6) + { + this.m_UIDummy.depth = bg.spriteDepth + this.DeltaDepth; + } + } + } + } + } + + public void Hide() + { + bool flag = this.m_Selecter == null; + if (!flag) + { + this.m_Selecter.transform.parent = this.m_Parent; + this.m_Selecter.SetActive(false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XItemSelector.cs.meta b/Client/Assets/Scripts/XMainClient/XItemSelector.cs.meta new file mode 100644 index 00000000..a422e0a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XItemSelector.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 34a3d21e91ba70d49a8357bf5b2c208f +timeCreated: 1611403556 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XJAComboSkill.cs b/Client/Assets/Scripts/XMainClient/XJAComboSkill.cs new file mode 100644 index 00000000..63c27be3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJAComboSkill.cs @@ -0,0 +1,212 @@ +using System; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XJAComboSkill : XArtsSkill + { + public bool DuringJA + { + get + { + return this._during_ja; + } + } + + public override int SkillType + { + get + { + return 0; + } + } + + private float _sub_fire_time = 0f; + + private bool _during_ja = false; + + private XTimerMgr.ElapsedEventHandler _ReFire = null; + + private XTimerMgr.ElapsedEventHandler _EnterJA = null; + + private XTimerMgr.ElapsedEventHandler _LeaveJA = null; + + public bool IsInJaPeriod() + { + XJAData xjadata = this._data.Ja[0]; + return XSingleton.singleton.IsLess(base.TimeElapsed, xjadata.End * this._time_scale) && XSingleton.singleton.IsGreater(base.TimeElapsed, xjadata.At * this._time_scale); + } + + public void ReFire(uint id, XEntity target, int slot, float speed, uint sequence) + { + this._during_ja = false; + bool flag = id > 0u; + if (flag) + { + XSkillCore skill = this._skillmgr.GetSkill(id); + bool flag2 = skill != null; + if (flag2) + { + this._firer.Skill.EndSkill(false, true); + XAttackEventArgs @event = XEventPool.GetEvent(); + @event.Identify = id; + @event.Firer = this._firer; + @event.Slot = slot; + @event.Target = target; + @event.TimeScale = speed; + @event.SyncSequence = sequence; + XSingleton.singleton.FireEvent(@event); + } + } + else + { + XSkillJAPassedEventArgs event2 = XEventPool.GetEvent(); + event2.Firer = this._firer; + event2.Slot = this._slot_pos; + XSingleton.singleton.FireEvent(event2); + } + } + + private uint GetNextJAIdentify() + { + uint result = 0u; + bool flag = this.ValidJA(); + if (flag) + { + XJAData xjadata = this._data.Ja[0]; + bool isPlayer = this._firer.IsPlayer; + bool flag2; + if (isPlayer) + { + bool autoPlayOn = (this._firer.Attributes as XPlayerAttributes).AutoPlayOn; + if (autoPlayOn) + { + flag2 = true; + } + else + { + float lastAttackTime = DlgBase.singleton.SkillHandler.LastAttackTime; + float a = lastAttackTime - this._sub_fire_time; + flag2 = (XSingleton.singleton.IsLess(a, xjadata.End * this._time_scale) && XSingleton.singleton.IsGreater(a, xjadata.At * this._time_scale)); + } + } + else + { + flag2 = true; + } + bool flag3 = flag2; + if (flag3) + { + result = XSingleton.singleton.XHash(xjadata.Name); + DlgBase.singleton.SkillHandler.LastAttackTime = 0f; + } + else + { + result = XSingleton.singleton.XHash(xjadata.Next_Name); + } + } + return result; + } + + private void ReFire(object param) + { + uint nextJAIdentify = this.GetNextJAIdentify(); + bool flag = nextJAIdentify > 0u; + if (flag) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + XSkillCore skill = this._skillmgr.GetSkill(nextJAIdentify); + bool flag2 = skill != null && skill.CanCast(this._token); + if (flag2) + { + this._firer.Net.ReportSkillAction(null, XSingleton.singleton.XHash(skill.Soul.Name), this._slot_pos); + } + } + } + else + { + this._during_ja = false; + XSkillJAPassedEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._firer; + @event.Slot = this._slot_pos; + XSingleton.singleton.FireEvent(@event); + } + } + + protected override void Start() + { + this._sub_fire_time = Time.time; + this._during_ja = false; + bool isPlayer = this._firer.IsPlayer; + if (isPlayer) + { + this.JAAt(); + } + base.Start(); + } + + protected override void Stop(bool cleanUp) + { + base.Stop(cleanUp); + bool flag = !this._firer.Destroying && this._during_ja; + if (flag) + { + this._during_ja = false; + XSkillJAPassedEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._firer; + @event.Slot = this._slot_pos; + XSingleton.singleton.FireEvent(@event); + } + } + + private void OnEnter(object o) + { + this._during_ja = true; + } + + private void OnLeave(object o) + { + this._during_ja = false; + } + + private void JAAt() + { + bool flag = this._ReFire == null; + if (flag) + { + this._ReFire = new XTimerMgr.ElapsedEventHandler(this.ReFire); + } + bool flag2 = this._EnterJA == null; + if (flag2) + { + this._EnterJA = new XTimerMgr.ElapsedEventHandler(this.OnEnter); + } + bool flag3 = this._LeaveJA == null; + if (flag3) + { + this._LeaveJA = new XTimerMgr.ElapsedEventHandler(this.OnLeave); + } + bool flag4 = this._data.Ja.Count == 1; + if (flag4) + { + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Ja[0].Point * this._time_scale, this._ReFire, null), true); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Ja[0].At * this._time_scale, this._EnterJA, null), true); + base.AddedTimerToken(XSingleton.singleton.SetTimer(this._data.Ja[0].End * this._time_scale, this._LeaveJA, null), true); + } + else + { + this._during_ja = true; + } + } + + private bool ValidJA() + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XJAComboSkill.cs.meta b/Client/Assets/Scripts/XMainClient/XJAComboSkill.cs.meta new file mode 100644 index 00000000..f44d41dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJAComboSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c286dd737d18da6478cfbbe6019b58f8 +timeCreated: 1611404494 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XJadeDocument.cs b/Client/Assets/Scripts/XMainClient/XJadeDocument.cs new file mode 100644 index 00000000..87d045a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeDocument.cs @@ -0,0 +1,1401 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XJadeDocument : XDocComponent + { + public override uint ID + { + get + { + return XJadeDocument.uuID; + } + } + + public JadeTable jadeTable + { + get + { + return XJadeDocument._JadeTable; + } + } + + public bool bCanBePowerful + { + get + { + return this._bCanBePowerful; + } + set + { + this._bCanBePowerful = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Item_Jade, true); + } + } + + public int[] JadeLevelUpCost + { + get + { + bool flag = this.jadeLevelUpCost == null; + if (flag) + { + this.jadeLevelUpCost = XSingleton.singleton.GetIntList("JadeLevelUpCost").ToArray(); + } + return this.jadeLevelUpCost; + } + } + + public XNewItemTipsMgr NewItems + { + get + { + return this._NewItems; + } + } + + public List SelectedSlotItemList + { + get + { + return this.m_SelectedSlotItemList; + } + } + + public List MorePowerfulEquips + { + get + { + return this.m_MorePowerfulEquips; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("JadeDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static JadeTable _JadeTable = new JadeTable(); + + private static JadeSlotTable _JadeSlotTable = new JadeSlotTable(); + + public List JadeMosaicLevel = XSingleton.singleton.GetIntList("JadeMosaicLevel"); + + public JadeEquipHandler equipHandler; + + public ulong selectedEquip; + + public int selectedSlotIndex; + + public ulong composeSource; + + public uint TargetItemId = 0u; + + private bool _bCanBePowerful = false; + + private int[] jadeLevelUpCost; + + private bool _bShouldUpdateRedPoints = false; + + private bool _bShouldCalcMorePowerfulTip = false; + + private XNewItemTipsMgr _NewItems = new XNewItemTipsMgr(); + + private List m_ItemList = new List(); + + private List m_SelectedSlotItemList = new List(); + + private List m_TempList0 = new List(); + + private List m_TempList1 = new List(); + + private List m_MorePowerfulEquips = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + XJadeDocument.AsyncLoader.AddTask("Table/Jade", XJadeDocument._JadeTable, false); + XJadeDocument.AsyncLoader.AddTask("Table/JadeSlot", XJadeDocument._JadeSlotTable, false); + XJadeDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._NewItems.ClearItemType(); + this._NewItems.Filter.AddItemType(ItemType.JADE); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_LoadEquip, new XComponent.XEventHandler(this.OnLoadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_SwapItem, new XComponent.XEventHandler(this.OnSwapItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnFinishItemChange)); + } + + public XJadeItem GetJadeItem(ulong uid) + { + return XSingleton.singleton.Doc.XBagDoc.GetItemByUID(uid) as XJadeItem; + } + + public SeqListRef GetSlotInfoByPos(byte pos) + { + JadeSlotTable.RowData byEquipSlot = XJadeDocument._JadeSlotTable.GetByEquipSlot(pos); + bool flag = byEquipSlot == null; + SeqListRef result; + if (flag) + { + result = default(SeqListRef); + } + else + { + result = byEquipSlot.JadeSlotAndLevel; + } + return result; + } + + public uint GetSlot(byte pos, int index) + { + SeqListRef slotInfoByPos = this.GetSlotInfoByPos(pos); + bool flag = (int)slotInfoByPos.count > index; + uint result; + if (flag) + { + result = slotInfoByPos[index, 0]; + } + else + { + result = 0u; + } + return result; + } + + public bool JadeIsOpen(byte pos, uint level) + { + SeqListRef slotInfoByPos = this.GetSlotInfoByPos(pos); + for (int i = 0; i < (int)slotInfoByPos.count; i++) + { + bool flag = level >= slotInfoByPos[i, 1]; + if (flag) + { + return true; + } + } + return false; + } + + public int GetSlotOpenLevel(byte pos, int index) + { + SeqListRef slotInfoByPos = this.GetSlotInfoByPos(pos); + bool flag = (int)slotInfoByPos.count > index; + int result; + if (flag) + { + result = (int)slotInfoByPos[index, 1]; + } + else + { + result = -1; + } + return result; + } + + public bool SlotLevelIsOpen(byte pos, int index) + { + bool flag = XSingleton.singleton.XPlayerData == null; + bool result; + if (flag) + { + result = false; + } + else + { + int slotOpenLevel = this.GetSlotOpenLevel(pos, index); + bool flag2 = slotOpenLevel == -1; + result = (!flag2 && (ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)slotOpenLevel)); + } + return result; + } + + public List GetJades() + { + ulong typeFilter = 1UL << XFastEnumIntEqualityComparer.ToInt(ItemType.JADE); + this.m_ItemList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(typeFilter, ref this.m_ItemList); + return this.m_ItemList; + } + + public void SelectEquip(ulong uid) + { + this.selectedEquip = uid; + XEquipItem equipNew = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(uid) as XEquipItem; + bool flag = this.equipHandler != null; + if (flag) + { + this.equipHandler.SetEquipNew(equipNew); + } + JadeBagHandler jadeBagHandler = DlgBase.singleton._JadeBagHandler; + bool flag2 = jadeBagHandler != null && jadeBagHandler.IsVisible(); + if (flag2) + { + jadeBagHandler.SetVisible(false); + } + bool flag3 = DlgBase.singleton._equipHandler != null; + if (flag3) + { + DlgBase.singleton._equipHandler.SelectEquip(uid); + } + } + + public void SelectSlot(int slotIndex) + { + this.selectedSlotIndex = slotIndex; + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + this.m_SelectedSlotItemList.Clear(); + bool flag = xequipItem == null; + if (!flag) + { + bool flag2 = XSingleton.singleton.XPlayerData == null; + if (!flag2) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(xequipItem.itemID); + bool flag3 = equipConf == null; + if (!flag3) + { + this.GetJades(); + uint slot = this.GetSlot(equipConf.EquipPos, this.selectedSlotIndex); + this.m_TempList0.Clear(); + this.m_TempList1.Clear(); + for (int i = 0; i < this.m_ItemList.Count; i++) + { + XJadeItem xjadeItem = this.m_ItemList[i] as XJadeItem; + bool flag4 = xjadeItem == null; + if (!flag4) + { + JadeTable.RowData byJadeID = XJadeDocument._JadeTable.GetByJadeID((uint)xjadeItem.itemID); + bool flag5 = byJadeID == null; + if (!flag5) + { + bool flag6 = byJadeID.JadeEquip != slot; + if (!flag6) + { + int num = this.JadeLevelToMosaicLevel(byJadeID.JadeLevel); + bool flag7 = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)num); + if (flag7) + { + this.m_TempList1.Add(xjadeItem); + } + else + { + this.m_TempList0.Add(xjadeItem); + } + } + } + } + } + this.m_TempList0.Sort(new Comparison(this._SortJade)); + this.m_TempList1.Sort(new Comparison(this._SortJade)); + for (int j = 0; j < this.m_TempList0.Count; j++) + { + this.m_SelectedSlotItemList.Add(this.m_TempList0[j]); + } + for (int k = 0; k < this.m_TempList1.Count; k++) + { + this.m_SelectedSlotItemList.Add(this.m_TempList1[k]); + } + JadeBagHandler jadeBagHandler = DlgBase.singleton._JadeBagHandler; + bool flag8 = jadeBagHandler != null; + if (flag8) + { + bool flag9 = jadeBagHandler.IsVisible(); + if (flag9) + { + jadeBagHandler.RefreshData(); + } + else + { + jadeBagHandler.SetVisible(true); + } + } + } + } + } + } + + private int _SortJade(XItem jade0, XItem jade1) + { + JadeTable.RowData byJadeID = XJadeDocument._JadeTable.GetByJadeID((uint)jade0.itemID); + JadeTable.RowData byJadeID2 = XJadeDocument._JadeTable.GetByJadeID((uint)jade1.itemID); + bool flag = byJadeID.JadeLevel == byJadeID2.JadeLevel; + int result; + if (flag) + { + result = byJadeID.JadeID.CompareTo(byJadeID2.JadeID); + } + else + { + result = -byJadeID.JadeLevel.CompareTo(byJadeID2.JadeLevel); + } + return result; + } + + public void ReqComposeJade(ulong uid, uint addLevel) + { + RpcC2G_JadeCompose rpcC2G_JadeCompose = new RpcC2G_JadeCompose(); + rpcC2G_JadeCompose.oArg.JadeUniqueId = uid; + rpcC2G_JadeCompose.oArg.ComposeType = 0u; + rpcC2G_JadeCompose.oArg.AddLevel = addLevel; + XSingleton.singleton.Send(rpcC2G_JadeCompose); + } + + public void ReqUpdateJade(uint slot, uint addLevel) + { + RpcC2G_JadeCompose rpcC2G_JadeCompose = new RpcC2G_JadeCompose(); + rpcC2G_JadeCompose.oArg.SlotPos = slot; + rpcC2G_JadeCompose.oArg.ComposeType = 1u; + rpcC2G_JadeCompose.oArg.EquipUniqueId = this.selectedEquip; + rpcC2G_JadeCompose.oArg.AddLevel = addLevel; + XSingleton.singleton.Send(rpcC2G_JadeCompose); + } + + public void OnComposeJade(JadeComposeArg oArg, JadeComposeRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = oRes.ErrorCode == ErrorCode.ERR_JADE_COUNTNOTENOUGH; + if (flag2) + { + bool flag3 = oArg.ComposeType == 1u; + if (flag3) + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(oArg.EquipUniqueId) as XEquipItem; + XJadeItem xjadeItem = xequipItem.jadeInfo.jades[(int)oArg.SlotPos]; + int itemID = xjadeItem.itemID; + XSingleton.singleton.ShowItemAccess(itemID, null); + } + else + { + int itemID2 = this.GetJadeItem(oArg.JadeUniqueId).itemID; + XSingleton.singleton.ShowItemAccess(itemID2, null); + } + } + bool flag4 = oRes.ErrorCode == ErrorCode.ERR_JADE_MINEQUIPLEVEL; + if (flag4) + { + bool flag5 = oArg.ComposeType == 1u; + XJadeItem xjadeItem2; + if (flag5) + { + XEquipItem xequipItem2 = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(oArg.EquipUniqueId) as XEquipItem; + xjadeItem2 = xequipItem2.jadeInfo.jades[(int)oArg.SlotPos]; + } + else + { + xjadeItem2 = this.GetJadeItem(oArg.JadeUniqueId); + } + ItemList.RowData itemConf = XBagDocument.GetItemConf(xjadeItem2.itemID); + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID((uint)xjadeItem2.itemID); + bool flag6 = itemConf == null || byJadeID == null; + if (!flag6) + { + uint jadeLevel = byJadeID.JadeLevel; + int num = this.JadeLevelToMosaicLevel(byJadeID.JadeLevel); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ERR_JADE_MINEQUIPLEVEL"), itemConf.ItemName[0], num.ToString()), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + } + else + { + JadeComposeFrameHandler jadeComposeFrameHandler = DlgBase.singleton._JadeComposeFrameHandler; + bool flag7 = jadeComposeFrameHandler != null && jadeComposeFrameHandler.IsVisible(); + if (flag7) + { + bool flag8 = oArg.ComposeType == 1u; + if (flag8) + { + this.RefreshUi(oArg.SlotPos); + } + else + { + List list; + bool itemByItemId = XBagDocument.BagDoc.GetItemByItemId((int)this.TargetItemId, out list); + if (itemByItemId) + { + this.RefreshUi(list[0].uid); + } + else + { + jadeComposeFrameHandler.SetVisible(false); + } + } + } + } + } + + public void ReqOperateJade0(ulong uid, uint type) + { + bool flag = this.selectedEquip == 0UL; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("JADE_DIALOG_NOEQUIP"), "fece00"); + } + else + { + RpcC2G_JadeOperation rpcC2G_JadeOperation = new RpcC2G_JadeOperation(); + rpcC2G_JadeOperation.oArg.OperationType = type; + rpcC2G_JadeOperation.oArg.JadeUniqueId = uid; + rpcC2G_JadeOperation.oArg.EquipUniqueId = this.selectedEquip; + XSingleton.singleton.Send(rpcC2G_JadeOperation); + } + } + + public void ReqPutOnJade(ulong uid) + { + bool flag = this.selectedEquip == 0UL; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("JADE_DIALOG_NOEQUIP"), "fece00"); + } + else + { + RpcC2G_JadeOperation rpcC2G_JadeOperation = new RpcC2G_JadeOperation(); + rpcC2G_JadeOperation.oArg.OperationType = 0u; + rpcC2G_JadeOperation.oArg.JadeUniqueId = uid; + rpcC2G_JadeOperation.oArg.EquipUniqueId = this.selectedEquip; + rpcC2G_JadeOperation.oArg.Pos = (uint)this.selectedSlotIndex; + XSingleton.singleton.Send(rpcC2G_JadeOperation); + } + } + + public void ReqTakeOffJade(uint slotIndex) + { + bool flag = this.selectedEquip == 0UL; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("JADE_DIALOG_NOEQUIP"), "fece00"); + } + else + { + RpcC2G_JadeOperation rpcC2G_JadeOperation = new RpcC2G_JadeOperation(); + rpcC2G_JadeOperation.oArg.OperationType = 1u; + rpcC2G_JadeOperation.oArg.EquipUniqueId = this.selectedEquip; + rpcC2G_JadeOperation.oArg.Pos = slotIndex; + XSingleton.singleton.Send(rpcC2G_JadeOperation); + } + } + + public void OnOperateJade(JadeOperationArg oArg, JadeOperationRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = oRes.ErrorCode == ErrorCode.ERR_JADE_MINEQUIPLEVEL; + if (flag2) + { + XJadeItem jadeItem = this.GetJadeItem(oArg.JadeUniqueId); + ItemList.RowData itemConf = XBagDocument.GetItemConf(jadeItem.itemID); + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID((uint)jadeItem.itemID); + bool flag3 = itemConf == null || byJadeID == null; + if (!flag3) + { + uint jadeLevel = byJadeID.JadeLevel; + int num = this.JadeLevelToMosaicLevel(byJadeID.JadeLevel); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ERR_JADE_MINEQUIPLEVEL"), itemConf.ItemName[0], num.ToString()), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + } + } + + public void ReqBuySlot() + { + RpcC2G_BuyJadeSlot rpcC2G_BuyJadeSlot = new RpcC2G_BuyJadeSlot(); + rpcC2G_BuyJadeSlot.oArg.EquipUId = this.selectedEquip; + XSingleton.singleton.Send(rpcC2G_BuyJadeSlot); + } + + public void OnBuySlot(BuyJadeSlotRes oRes) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + + public void TryToCompose(ulong uid) + { + this.composeSource = uid; + XJadeItem jadeItem = this.GetJadeItem(uid); + bool flag = jadeItem == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Cant find source jade. id = ", uid.ToString(), null, null, null, null); + } + else + { + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID((uint)jadeItem.itemID); + bool flag2 = byJadeID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant find jade config. id = ", jadeItem.itemID.ToString(), null, null, null, null); + } + else + { + ulong num = (ulong)byJadeID.JadeCompose[1]; + bool flag3 = num == 0UL; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("JADE_DIALOG_COMPOSE_MAX_LEVEL"), "fece00"); + this.composeSource = 0UL; + } + else + { + int num2 = (int)byJadeID.JadeCompose[0]; + JadeComposeFrameHandler jadeComposeFrameHandler = DlgBase.singleton._JadeComposeFrameHandler; + bool flag4 = jadeComposeFrameHandler != null; + if (flag4) + { + jadeComposeFrameHandler.ShowUi(-1, (uint)jadeItem.itemID, byJadeID.JadeLevel, this.composeSource); + } + } + } + } + } + + private void RefreshUi(ulong uid) + { + this.composeSource = uid; + XJadeItem jadeItem = this.GetJadeItem(uid); + bool flag = jadeItem == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Cant find source jade. id = ", uid.ToString(), null, null, null, null); + } + else + { + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID((uint)jadeItem.itemID); + bool flag2 = byJadeID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant find jade config. id = ", jadeItem.itemID.ToString(), null, null, null, null); + } + else + { + JadeComposeFrameHandler jadeComposeFrameHandler = DlgBase.singleton._JadeComposeFrameHandler; + bool flag3 = jadeComposeFrameHandler != null; + if (flag3) + { + jadeComposeFrameHandler.ShowUi(-1, (uint)jadeItem.itemID, byJadeID.JadeLevel, this.composeSource); + } + } + } + } + + private void RefreshUi(uint slot) + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + XJadeItem xjadeItem = xequipItem.jadeInfo.jades[(int)slot]; + bool flag2 = xjadeItem == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant find source jade.", null, null, null, null, null); + } + else + { + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID((uint)xjadeItem.itemID); + bool flag3 = byJadeID == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Cant find jade config. id = ", xjadeItem.itemID.ToString(), null, null, null, null); + } + else + { + JadeComposeFrameHandler jadeComposeFrameHandler = DlgBase.singleton._JadeComposeFrameHandler; + bool flag4 = jadeComposeFrameHandler != null; + if (flag4) + { + jadeComposeFrameHandler.ShowUi((int)slot, (uint)xjadeItem.itemID, byJadeID.JadeLevel, 0UL); + } + } + } + } + } + + public void TryToCompose(uint slot) + { + XEquipItem xequipItem = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + XJadeItem xjadeItem = xequipItem.jadeInfo.jades[(int)slot]; + bool flag2 = xjadeItem == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Cant find source jade.", null, null, null, null, null); + } + else + { + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID((uint)xjadeItem.itemID); + bool flag3 = byJadeID == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Cant find jade config. id = ", xjadeItem.itemID.ToString(), null, null, null, null); + } + else + { + ulong num = (ulong)byJadeID.JadeCompose[1]; + bool flag4 = num == 0UL; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("JADE_DIALOG_COMPOSE_MAX_LEVEL"), "fece00"); + this.composeSource = 0UL; + } + else + { + int num2 = (int)byJadeID.JadeCompose[0]; + int num3 = this.JadeLevelToMosaicLevel(byJadeID.JadeLevel + 1u); + bool flag5 = XSingleton.singleton.XPlayerData == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("XPlayerData is null", null, null, null, null, null); + } + else + { + bool flag6 = (long)num3 > (long)((ulong)XSingleton.singleton.XPlayerData.Level); + if (flag6) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("JADE_COMPOSE_TIP2"), num3), "fece00"); + } + else + { + JadeComposeFrameHandler jadeComposeFrameHandler = DlgBase.singleton._JadeComposeFrameHandler; + bool flag7 = jadeComposeFrameHandler != null; + if (flag7) + { + jadeComposeFrameHandler.ShowUi((int)slot, (uint)xjadeItem.itemID, byJadeID.JadeLevel, 0UL); + } + } + } + } + } + } + } + } + + public XJadeItem CheckEquipedJadesAttrs(XJadeItem jade) + { + XEquipItem equip = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + return this.CheckJadesAttrs(equip, jade); + } + + public XJadeItem CheckJadesAttrs(XEquipItem equip, XJadeItem jade) + { + bool flag = equip == null || jade == null || jade.changeAttr.Count == 0; + XJadeItem result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < equip.jadeInfo.jades.Length; i++) + { + XJadeItem xjadeItem = equip.jadeInfo.jades[i]; + bool flag2 = this.IsSameType(xjadeItem, jade); + if (flag2) + { + return xjadeItem; + } + } + result = null; + } + return result; + } + + public bool IsSameType(XJadeItem jade0, XJadeItem jade1) + { + return jade0 != null && jade1 != null && jade0.changeAttr.Count > 0 && jade1.changeAttr.Count > 0 && jade0.changeAttr[0].AttrID == jade1.changeAttr[0].AttrID; + } + + public int CheckProperSlot(XJadeItem jade) + { + bool flag = jade == null; + int result; + if (flag) + { + result = -1; + } + else + { + XEquipItem equip = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + result = this.CheckProperSlot(equip, jade); + } + return result; + } + + public int CheckProperSlot(XEquipItem equip, XJadeItem jade) + { + bool flag = equip == null || jade == null; + int result; + if (flag) + { + result = -1; + } + else + { + JadeTable.RowData byJadeID = XJadeDocument._JadeTable.GetByJadeID((uint)jade.itemID); + bool flag2 = byJadeID == null; + if (flag2) + { + result = -1; + } + else + { + int num = -1; + foreach (uint slot in equip.jadeInfo.AllSlots()) + { + num++; + bool flag3 = this.IsSlotMatch(slot, byJadeID) && equip.jadeInfo.jades[num] == null; + if (flag3) + { + return num; + } + } + result = -1; + } + } + return result; + } + + public bool IsSlotMatch(uint slot, XJadeItem jade) + { + JadeTable.RowData byJadeID = XJadeDocument._JadeTable.GetByJadeID((uint)jade.itemID); + bool flag = byJadeID == null; + return !flag && this.IsSlotMatch(slot, byJadeID); + } + + public bool IsSlotMatch(uint slot, JadeTable.RowData rowData) + { + return slot == rowData.JadeEquip; + } + + public bool CanUpdate(int slotIndex) + { + bool flag = this.selectedEquip == 0UL; + bool result; + if (flag) + { + result = false; + } + else + { + XEquipItem equip = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + result = this.CanUpdate(equip, slotIndex); + } + return result; + } + + public bool CanUpdate(XEquipItem equip, int slotIndex) + { + bool flag = equip == null; + bool result; + if (flag) + { + result = false; + } + else + { + XJadeItem xjadeItem = equip.jadeInfo.jades[slotIndex]; + bool flag2 = xjadeItem == null; + if (flag2) + { + result = false; + } + else + { + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID((uint)xjadeItem.itemID); + bool flag3 = byJadeID == null; + if (flag3) + { + result = false; + } + else + { + ulong num = (ulong)byJadeID.JadeCompose[1]; + bool flag4 = XSingleton.singleton.Doc.XBagDoc.GetItemCount(xjadeItem.itemID) >= (ulong)(byJadeID.JadeCompose[0] - 1u) && num != 0UL && this.IsLeveLOK(equip, xjadeItem, 1u); + result = flag4; + } + } + } + return result; + } + + public bool CanReplace(XEquipItem equipItem, int slotIndex) + { + this.GetJades(); + return this.CanReplace(equipItem, slotIndex, this.m_ItemList); + } + + public bool CanReplace(XEquipItem equipItem, int slotIndex, List jades) + { + bool flag = equipItem == null; + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < jades.Count; i++) + { + XJadeItem jadeItem = jades[i] as XJadeItem; + bool flag2 = this.CanBeMorePowerful(equipItem, slotIndex, jadeItem); + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public bool CanBeMorePowerful(XEquipItem equipItem, int slotIndex, XJadeItem jadeItem) + { + bool flag = equipItem == null || jadeItem == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !this.IsLeveLOK(equipItem, jadeItem, 0u); + if (flag2) + { + result = false; + } + else + { + XJadeItem xjadeItem = equipItem.jadeInfo.jades[slotIndex]; + bool flag3 = xjadeItem == null; + if (flag3) + { + xjadeItem = this.CheckEquipedJadesAttrs(jadeItem); + EquipList.RowData equipConf = XBagDocument.GetEquipConf(equipItem.itemID); + bool flag4 = equipConf == null; + if (flag4) + { + result = false; + } + else + { + SeqListRef slotInfoByPos = this.GetSlotInfoByPos(equipConf.EquipPos); + bool flag5 = slotIndex >= (int)slotInfoByPos.count; + result = (!flag5 && xjadeItem == null && this.IsSlotMatch(slotInfoByPos[slotIndex, 0], jadeItem)); + } + } + else + { + result = (this.IsSameType(jadeItem, xjadeItem) && XSingleton.singleton.Doc.XBagDoc.IsAttrMorePowerful(jadeItem, xjadeItem, ItemAttrCompareType.IACT_SELF) == ItemAttrCompareResult.IACR_LARGER); + } + } + } + return result; + } + + public List GetAllCanBeMorePowerfulEquips() + { + List jades = this.GetJades(); + XBagDocument xbagDoc = XSingleton.singleton.Doc.XBagDoc; + int num = XBagDocument.BodyPosition(EquipPosition.EQUIP_START); + int num2 = XBagDocument.BodyPosition(EquipPosition.EQUIP_END); + this.m_MorePowerfulEquips.Clear(); + for (int i = num; i < num2; i++) + { + XEquipItem xequipItem = xbagDoc.EquipBag[i] as XEquipItem; + bool flag = xequipItem == null; + if (!flag) + { + bool flag2 = false; + foreach (XItem xitem in jades) + { + XJadeItem xjadeItem = xitem as XJadeItem; + XJadeItem xjadeItem2 = this.CheckJadesAttrs(xequipItem, xjadeItem); + bool flag3 = !this.IsLeveLOK(xequipItem, xjadeItem, 0u); + if (!flag3) + { + bool flag4 = xjadeItem2 == null; + if (flag4) + { + int num3 = this.CheckProperSlot(xequipItem, xjadeItem); + bool flag5 = num3 != -1; + if (flag5) + { + this.m_MorePowerfulEquips.Add(i); + flag2 = true; + break; + } + } + else + { + bool flag6 = xbagDoc.IsAttrMorePowerful(xjadeItem, xjadeItem2, ItemAttrCompareType.IACT_SELF) == ItemAttrCompareResult.IACR_LARGER; + if (flag6) + { + this.m_MorePowerfulEquips.Add(i); + flag2 = true; + break; + } + } + } + } + bool flag7 = flag2; + if (!flag7) + { + int num4 = 0; + while ((long)num4 < (long)((ulong)xequipItem.jadeInfo.slotCount)) + { + bool flag8 = this.CanUpdate(xequipItem, num4); + if (flag8) + { + this.m_MorePowerfulEquips.Add(i); + flag2 = true; + break; + } + num4++; + } + } + } + } + return this.m_MorePowerfulEquips; + } + + public bool HasRedPoint(int equip) + { + for (int i = 0; i < this.MorePowerfulEquips.Count; i++) + { + bool flag = this.MorePowerfulEquips[i] == equip; + if (flag) + { + return true; + } + } + return false; + } + + protected bool OnLoadEquip(XEventArgs args) + { + XLoadEquipEventArgs xloadEquipEventArgs = args as XLoadEquipEventArgs; + bool flag = xloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + } + return true; + } + + protected bool OnUnloadEquip(XEventArgs args) + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + bool flag = xunloadEquipEventArgs.type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + } + return true; + } + + public bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + this._bShouldUpdateRedPoints = this._NewItems.AddItems(xaddItemEventArgs.items, !xaddItemEventArgs.bNew); + this._bShouldCalcMorePowerfulTip = this._bShouldUpdateRedPoints; + return true; + } + + public bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + this._bShouldUpdateRedPoints = this._NewItems.RemoveItems(xremoveItemEventArgs.uids, xremoveItemEventArgs.types, true); + this._bShouldCalcMorePowerfulTip = this._bShouldUpdateRedPoints; + return true; + } + + public bool OnItemNumChanged(XEventArgs args) + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag = xitemNumChangedEventArgs.item.Type == ItemType.JADE; + if (flag) + { + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + } + return true; + } + + public bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + XItem item = xupdateItemEventArgs.item; + bool flag = xupdateItemEventArgs.item.Type == ItemType.EQUIP; + if (flag) + { + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + } + bool flag2 = item.uid == this.selectedEquip; + if (flag2) + { + bool flag3 = this.equipHandler != null && this.equipHandler.active; + if (flag3) + { + this.equipHandler.SetEquipNew(item as XEquipItem); + } + } + return true; + } + + public bool OnSwapItem(XEventArgs args) + { + this._bShouldUpdateRedPoints = true; + this._bShouldCalcMorePowerfulTip = true; + return true; + } + + public bool OnFinishItemChange(XEventArgs args) + { + bool bShouldUpdateRedPoints = this._bShouldUpdateRedPoints; + if (bShouldUpdateRedPoints) + { + this.UpdateRedPoints(); + this._bShouldUpdateRedPoints = false; + } + bool bShouldCalcMorePowerfulTip = this._bShouldCalcMorePowerfulTip; + if (bShouldCalcMorePowerfulTip) + { + JadeBagHandler jadeBagHandler = DlgBase.singleton._JadeBagHandler; + bool flag = jadeBagHandler != null && jadeBagHandler.active; + if (flag) + { + jadeBagHandler.RefreshData(); + } + bool flag2 = this.equipHandler != null && this.equipHandler.active; + if (flag2) + { + this.equipHandler.RecalcMorePowerfulTip(); + } + this._bShouldCalcMorePowerfulTip = false; + } + return true; + } + + public bool IsJadeMorePowerful(ulong uid) + { + return this.IsJadeMorePowerful(XSingleton.singleton.Doc.XBagDoc.GetItemByUID(uid) as XJadeItem); + } + + public bool IsJadeMorePowerful(XJadeItem jade) + { + bool flag = jade == null; + bool result; + if (flag) + { + result = false; + } + else + { + XBagDocument xbagDoc = XSingleton.singleton.Doc.XBagDoc; + XJadeItem xjadeItem = this.CheckEquipedJadesAttrs(jade); + bool flag2 = !this.IsLeveLOK(jade, 0u); + if (flag2) + { + result = false; + } + else + { + bool flag3 = xjadeItem == null; + if (flag3) + { + int num = this.CheckProperSlot(jade); + result = (num != -1); + } + else + { + result = (xbagDoc.IsAttrMorePowerful(jade, xjadeItem, ItemAttrCompareType.IACT_SELF) == ItemAttrCompareResult.IACR_LARGER); + } + } + } + return result; + } + + public List UpdateRedPoints() + { + List allCanBeMorePowerfulEquips = this.GetAllCanBeMorePowerfulEquips(); + this.bCanBePowerful = (allCanBeMorePowerfulEquips.Count > 0); + bool flag = this.equipHandler != null && this.equipHandler.active; + if (flag) + { + this.equipHandler.EquipHandler.SetRedPoints(allCanBeMorePowerfulEquips); + } + return allCanBeMorePowerfulEquips; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.equipHandler != null && this.equipHandler.IsVisible(); + if (flag) + { + this.SelectEquip(this.selectedEquip); + } + } + + public void ShowTip(int itemId) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemId); + bool flag = itemConf == null; + if (!flag) + { + string @string = XStringDefineProxy.GetString("JADE_REPLACE_OK"); + object[] itemName = itemConf.ItemName; + string text = string.Format(XStringDefineProxy.GetString(@string, itemName), new object[0]); + XSingleton.singleton.ShowSystemTip(text, "fece00"); + } + } + + public int JadeLevelToMosaicLevel(uint jadeLevel) + { + bool flag = (ulong)jadeLevel > (ulong)((long)this.JadeMosaicLevel.Count); + int result; + if (flag) + { + XSingleton.singleton.AddGreenLog("Jade Level = " + jadeLevel + " GlobalConfig No Deploy!", null, null, null, null, null); + result = -1; + } + else + { + result = this.JadeMosaicLevel[(int)(jadeLevel - 1u)]; + } + return result; + } + + public int EquipLevel2JadeLevel(int equipLevel) + { + for (int i = this.JadeMosaicLevel.Count - 1; i >= 0; i--) + { + bool flag = this.JadeMosaicLevel[i] <= equipLevel; + if (flag) + { + return i + 1; + } + } + return 0; + } + + public bool IsLeveLOK(XJadeItem jade, uint jadeLevelUp = 0u) + { + bool flag = jade == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.selectedEquip == 0UL; + if (flag2) + { + result = false; + } + else + { + XEquipItem equip = XSingleton.singleton.Doc.XBagDoc.GetItemByUID(this.selectedEquip) as XEquipItem; + result = this.IsLeveLOK(equip, jade, jadeLevelUp); + } + } + return result; + } + + public bool IsLeveLOK(XEquipItem equip, XJadeItem jade, uint jadeLevelUp = 0u) + { + bool flag = equip == null || jade == null; + bool result; + if (flag) + { + result = false; + } + else + { + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID((uint)jade.itemID); + bool flag2 = byJadeID == null; + if (flag2) + { + result = false; + } + else + { + int num = this.JadeLevelToMosaicLevel(byJadeID.JadeLevel + jadeLevelUp); + bool flag3 = XSingleton.singleton.XPlayerData == null; + if (flag3) + { + result = false; + } + else + { + bool flag4 = (long)num <= (long)((ulong)XSingleton.singleton.XPlayerData.Level); + result = flag4; + } + } + } + return result; + } + + private JadeTable.RowData GetRowDataByParentItemId(uint itemId) + { + bool flag = this.jadeTable == null; + JadeTable.RowData result; + if (flag) + { + result = null; + } + else + { + for (int i = 0; i < this.jadeTable.Table.Length; i++) + { + bool flag2 = this.jadeTable.Table[i].JadeCompose[1] == itemId; + if (flag2) + { + return this.jadeTable.Table[i]; + } + } + result = null; + } + return result; + } + + public uint GetTargetItemId(uint sourceItemId, uint addLevel) + { + bool flag = addLevel == 0u; + uint result; + if (flag) + { + result = sourceItemId; + } + else + { + JadeTable.RowData byJadeID = this.jadeTable.GetByJadeID(sourceItemId); + bool flag2 = byJadeID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("cannot find id,sourceItemId = " + sourceItemId, null, null, null, null, null); + result = 0u; + } + else + { + bool flag3 = addLevel == 1u; + if (flag3) + { + result = byJadeID.JadeCompose[1]; + } + else + { + uint num = byJadeID.JadeCompose[1]; + int num2 = 0; + while ((long)num2 < (long)((ulong)(addLevel - 1u))) + { + byJadeID = this.jadeTable.GetByJadeID(num); + bool flag4 = byJadeID == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("not find this jade in jadetxt,id = " + num, null, null, null, null, null); + break; + } + bool flag5 = byJadeID.JadeCompose[1] == 0u; + if (flag5) + { + XSingleton.singleton.AddGreenLog("is end,id = " + num, null, null, null, null, null); + break; + } + num = byJadeID.JadeCompose[1]; + num2++; + } + result = num; + } + } + } + return result; + } + + public bool GetNeedItems(uint targetId, uint hadItemId, int type, out List> hadJades, out XTuple needBuyJade, out ulong needGold, out uint needMall) + { + needGold = 0UL; + needMall = 0u; + hadJades = new List>(); + needBuyJade = new XTuple(); + bool flag = targetId == hadItemId; + bool result; + if (flag) + { + result = false; + } + else + { + ulong num = 1UL; + for (JadeTable.RowData rowDataByParentItemId = this.GetRowDataByParentItemId(targetId); rowDataByParentItemId != null; rowDataByParentItemId = this.GetRowDataByParentItemId(rowDataByParentItemId.JadeID)) + { + bool flag2 = (long)this.JadeLevelUpCost.Length > (long)((ulong)rowDataByParentItemId.JadeLevel); + if (flag2) + { + needGold += (ulong)this.JadeLevelUpCost[(int)rowDataByParentItemId.JadeLevel] * num; + } + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)rowDataByParentItemId.JadeID); + num *= (ulong)rowDataByParentItemId.JadeCompose[0]; + bool flag3 = type != -1 && hadItemId == rowDataByParentItemId.JadeID && num > 0UL; + if (flag3) + { + num -= 1UL; + } + bool flag4 = itemCount >= num; + if (flag4) + { + XTuple item = new XTuple(rowDataByParentItemId.JadeID, (uint)num); + hadJades.Add(item); + return false; + } + bool flag5 = itemCount > 0UL; + if (flag5) + { + XTuple item2 = new XTuple(rowDataByParentItemId.JadeID, (uint)itemCount); + hadJades.Add(item2); + } + num -= itemCount; + needBuyJade.Item1 = rowDataByParentItemId.JadeID; + needBuyJade.Item2 = (uint)num; + } + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + uint num2 = specificDocument.FindItemPrice(needBuyJade.Item1, 7u); + needMall = num2 * needBuyJade.Item2; + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XJadeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XJadeDocument.cs.meta new file mode 100644 index 00000000..af46854b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 422366a2831d96449b44d3368dd79aba +timeCreated: 1611403638 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XJadeInfo.cs b/Client/Assets/Scripts/XMainClient/XJadeInfo.cs new file mode 100644 index 00000000..46335c93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeInfo.cs @@ -0,0 +1,116 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal struct XJadeInfo + { + public uint slotCount + { + get + { + return this._slotCount; + } + } + + public uint slots + { + set + { + this._slots = value; + this._slotCount = 0u; + for (uint num = 0u; num < XJadeInfo.slot_max; num += 1u) + { + uint slot = this.GetSlot((int)num); + bool flag = XJadeInfo.SlotExists(slot); + if (flag) + { + this._slotCount += 1u; + } + } + } + } + + private static readonly uint slot_mask = 15u; + + private static readonly uint slot_step = 4u; + + private static readonly uint slot_max = 32u / XJadeInfo.slot_step; + + private uint _slots; + + private uint _slotCount; + + public XJadeItem[] jades; + + public static readonly uint SLOT_NOTEXIST = 0u; + + public static readonly uint SLOT_NOTOPEN = 15u; + + public void Init() + { + bool flag = this.jades == null; + if (flag) + { + this.jades = new XJadeItem[XJadeInfo.slot_max]; + } + else + { + int num = 0; + while ((long)num < (long)((ulong)XJadeInfo.slot_max)) + { + bool flag2 = this.jades[num] != null; + if (flag2) + { + this.jades[num].Recycle(); + this.jades[num] = null; + } + num++; + } + } + this._slotCount = 0u; + this._slots = 0u; + } + + public uint GetSlot(int index) + { + return this._slots >> (int)((long)index * (long)((ulong)XJadeInfo.slot_step)) & XJadeInfo.slot_mask; + } + + public IEnumerable AllSlots() + { + uint num; + for (uint i = 0u; i < this._slotCount; i = num) + { + yield return this.GetSlot((int)i); + num = i + 1u; + } + yield break; + } + + public static bool SlotExists(uint slot) + { + return slot != XJadeInfo.SLOT_NOTEXIST; + } + + public static bool SlotNotOpen(uint slot) + { + return slot == XJadeInfo.SLOT_NOTOPEN; + } + + public static bool SlotOpened(uint slot) + { + return XJadeInfo.SlotExists(slot) && !XJadeInfo.SlotNotOpen(slot); + } + + public static bool SlotEmpty(int slotIndex, XJadeInfo jadeInfo) + { + return XJadeInfo.SlotOpened(jadeInfo.GetSlot(slotIndex)) && jadeInfo.jades[slotIndex] == null; + } + + public static bool SlotHasJade(int slotIndex, XJadeInfo jadeInfo) + { + return XJadeInfo.SlotOpened(jadeInfo.GetSlot(slotIndex)) && jadeInfo.jades[slotIndex] != null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XJadeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XJadeInfo.cs.meta new file mode 100644 index 00000000..d4996289 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d08959cee655e4b44864128dc3d6f727 +timeCreated: 1611404588 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XJadeItem.cs b/Client/Assets/Scripts/XMainClient/XJadeItem.cs new file mode 100644 index 00000000..fe4d869e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeItem.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class XJadeItem : XAttrItem + { + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XJadeItem.cs.meta b/Client/Assets/Scripts/XMainClient/XJadeItem.cs.meta new file mode 100644 index 00000000..783f8942 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dca8e4a034af9f04095cb2b2daeb11ad +timeCreated: 1611404679 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XJadeItemDrawer.cs b/Client/Assets/Scripts/XMainClient/XJadeItemDrawer.cs new file mode 100644 index 00000000..93281033 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeItemDrawer.cs @@ -0,0 +1,79 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XJadeItemDrawer : XItemDrawer + { + public void DrawItem(GameObject go, int itemid, int itemCount = 0, bool bForceShowNum = false) + { + this._GetUI(go); + bool flag = itemid == 0; + if (flag) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + base._GetItemData(itemid); + this._SetupIcon(); + this._SetupName(null); + this._SetupAttrIcon(null); + base._SetupNum(itemCount, bForceShowNum); + this._SetupNumTop(null); + base._SetupLeftDownCorner(base._GetBindingState(null)); + base._SetupLeftUpCorner(false, ""); + base._SetupRightDownCorner(false); + base._SetupRightUpCorner(false); + base._SetUpProf(false); + base._SetupMask(); + this._ClearVariables(); + } + } + + public void DrawItem(GameObject go, int itemid, int itemUseCount, bool bForceShowNum, int itemCount) + { + this._GetUI(go); + bool flag = itemid == 0; + if (flag) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + base._GetItemData(itemid); + this._SetupIcon(); + this._SetupName(null); + this._SetupAttrIcon(null); + base._SetupNum(itemUseCount, bForceShowNum, itemCount); + this._SetupNumTop(null); + base._SetupLeftDownCorner(base._GetBindingState(null)); + base._SetupLeftUpCorner(false, ""); + base._SetupRightDownCorner(false); + base._SetupRightUpCorner(false); + base._SetUpProf(false); + base._SetupMask(); + this._ClearVariables(); + } + } + + protected override void _SetupNumTop(XItem jade) + { + bool flag = this.m_numTop != null && this.itemdata != null; + if (flag) + { + XJadeDocument specificDocument = XDocuments.GetSpecificDocument(XJadeDocument.uuID); + JadeTable jadeTable = specificDocument.jadeTable; + JadeTable.RowData byJadeID = jadeTable.GetByJadeID((uint)this.itemdata.ItemID); + bool flag2 = byJadeID != null; + if (flag2) + { + base._SetNumTopUI("Lv." + byJadeID.JadeLevel); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XJadeItemDrawer.cs.meta b/Client/Assets/Scripts/XMainClient/XJadeItemDrawer.cs.meta new file mode 100644 index 00000000..753409d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeItemDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 250dce6601136b443892200cacbc2fd6 +timeCreated: 1611403463 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XJadeSlotDrawer.cs b/Client/Assets/Scripts/XMainClient/XJadeSlotDrawer.cs new file mode 100644 index 00000000..1f575725 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeSlotDrawer.cs @@ -0,0 +1,72 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XJadeSlotDrawer : XItemDrawer + { + private IXUISprite cover; + + private IXUISprite back; + + private IXUISprite total; + + private IXUISprite lockJade; + + public void DrawItem(GameObject go, uint slot, bool hasLock, XJadeItem realItem) + { + this._GetUI(go); + this.SetupCoverAndBack(slot, hasLock); + this._SetupAttrIcon(null); + XSingleton.singleton.jadeItemDrawer.DrawItem(go, realItem, false); + this._ClearVariables(); + } + + private void SetupCoverAndBack(uint slot, bool hasLock) + { + bool flag = !XJadeInfo.SlotExists(slot); + if (flag) + { + if (hasLock) + { + this.cover.SetVisible(true); + this.lockJade.SetVisible(true); + this.total.SetVisible(true); + } + else + { + this.lockJade.SetVisible(false); + this.cover.SetVisible(false); + this.back.SetVisible(false); + this.total.SetVisible(false); + } + } + else + { + this.total.SetVisible(true); + this.lockJade.SetVisible(false); + this.cover.SetVisible(false); + this.back.SetVisible(true); + this.back.SetSprite("iconly_" + slot); + } + } + + protected override void _GetUI(GameObject uiGo) + { + base._GetUI(uiGo); + this.cover = (uiGo.transform.Find("Cover").GetComponent("XUISprite") as IXUISprite); + this.back = (uiGo.transform.Find("Back").GetComponent("XUISprite") as IXUISprite); + this.total = (uiGo.transform.GetComponent("XUISprite") as IXUISprite); + this.lockJade = (uiGo.transform.Find("Lock").GetComponent("XUISprite") as IXUISprite); + } + + protected override void _ClearVariables() + { + base._ClearVariables(); + this.cover = null; + this.back = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XJadeSlotDrawer.cs.meta b/Client/Assets/Scripts/XMainClient/XJadeSlotDrawer.cs.meta new file mode 100644 index 00000000..5c168640 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJadeSlotDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1201790feaf6ca04db46ce88ad7f4159 +timeCreated: 1611403241 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XJoinTeamEventArgs.cs b/Client/Assets/Scripts/XMainClient/XJoinTeamEventArgs.cs new file mode 100644 index 00000000..4eca297b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJoinTeamEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XJoinTeamEventArgs : XEventArgs + { + public uint dungeonID; + + public XJoinTeamEventArgs() + { + this._eDefine = XEventDefine.XEvent_JoinTeam; + } + + public override void Recycle() + { + base.Recycle(); + this.dungeonID = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XJoinTeamEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XJoinTeamEventArgs.cs.meta new file mode 100644 index 00000000..562b8599 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJoinTeamEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dce40455e83de394792140928fc52949 +timeCreated: 1611404680 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XJokerKingDocument.cs b/Client/Assets/Scripts/XMainClient/XJokerKingDocument.cs new file mode 100644 index 00000000..401b088f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJokerKingDocument.cs @@ -0,0 +1,593 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XJokerKingDocument : XDocComponent + { + public override uint ID + { + get + { + return XJokerKingDocument.uuID; + } + } + + public uint JokerKingTimes + { + get + { + return this.m_JokerKingTimes; + } + } + + public CardMatchState MatchState + { + get + { + return this.m_matchState; + } + } + + public double TimeLeft + { + get + { + return this.m_timeLeft; + } + set + { + this.m_timeLeft = value; + } + } + + public uint ChangeCount + { + get + { + return this.m_changeount; + } + } + + public uint MatchRound + { + get + { + return this.m_matchRound; + } + } + + public uint MatchResult + { + get + { + return this.m_matchResult; + } + } + + public List MatchJockers + { + get + { + return this.m_matchJokers; + } + } + + public uint MatchJockerStore + { + get + { + return this.m_matchJockerStore; + } + } + + public List MatchBestJockers + { + get + { + return this.m_matchBestJockers; + } + } + + public string MatchBestJockerName + { + get + { + return this.m_matchBestName; + } + } + + public List MatchRankNames + { + get + { + return this.m_matchRankName; + } + } + + public List MatchRankScores + { + get + { + return this.m_matchRankScore; + } + } + + public List MatchItems + { + get + { + return this.m_matchItems; + } + } + + public bool IsBegin + { + get + { + return this.m_isBegion; + } + } + + public bool IsCanBegin + { + get + { + return this.m_isCanBegion; + } + } + + public bool IsSignUp + { + get + { + return this.m_isSignUp; + } + } + + public bool bAvaiableIconWhenShow + { + get + { + return this.m_bAvaiableIconWhenShow; + } + set + { + this.m_bAvaiableIconWhenShow = value; + XSingleton.singleton.AddGreenLog("bAvaiableIconWhenShow:", this.bAvaiableIconWhenShow.ToString(), null, null, null, null); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_JockerKing, true); + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_JockerKing, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.JokerKingMatchQuery(); + } + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XJokerKingDocument"); + + public static XTableAsyncLoader AsynLoader = new XTableAsyncLoader(); + + public static PokerTournamentReward JokerTournamed = new PokerTournamentReward(); + + private CardMatchState m_matchState; + + private double m_timeLeft; + + private uint m_changeount; + + private uint m_matchRound; + + private uint m_matchResult; + + private uint m_matchJockerStore; + + private uint m_oldJockerID = 0u; + + private string m_matchBestName = string.Empty; + + private List m_matchJokers = new List(); + + private List m_matchBestJockers = new List(); + + private List m_matchItems = new List(); + + private List m_matchRankName = new List(); + + private List m_matchRankScore = new List(); + + private uint JokerToken; + + private bool m_isBegion = false; + + private bool m_isSignUp = false; + + private bool m_isCanBegion = false; + + private uint m_JokerKingTimes = 0u; + + public bool wattingPTC = false; + + private bool m_bAvaiableIconWhenShow = false; + + public void JokerKingGameOver() + { + this.m_isSignUp = false; + this.m_matchState = CardMatchState.CardMatch_StateDummy; + this.bAvaiableIconWhenShow = false; + XSingleton.singleton.AddGreenLog("JokerKingGameOver", null, null, null, null, null); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XJokerKingDocument.AsynLoader.AddTask("Table/PokerTournamentReward", XJokerKingDocument.JokerTournamed, false); + XJokerKingDocument.AsynLoader.Execute(callback); + } + + public void JokerKingMatchQuery() + { + this.SendJokerKingMsg(CardMatchOp.CardMatch_Query, 0u); + } + + public void JokerKingMatchAdd() + { + this.SendJokerKingMsg(CardMatchOp.CardMatch_Add, 0u); + } + + public void JokerKingMatchExit() + { + this.SendJokerKingMsg(CardMatchOp.CardMatch_Del, 0u); + } + + public void JokerKingMatchSignUp() + { + int @int = XSingleton.singleton.GetInt("PokerTournamentSignUpNum"); + bool flag = (ulong)this.m_JokerKingTimes < (ulong)((long)@int); + if (flag) + { + this.SendJokerKingMsg(CardMatchOp.CardMatch_SignUp, 0u); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("JOKERKING_TIME_FULL"), "fece00"); + } + } + + public void JokerKingRoundChange(uint card) + { + bool flag = this.wattingPTC; + if (!flag) + { + this.wattingPTC = true; + this.SendJokerKingMsg(CardMatchOp.CardMatch_RoundChange, card); + } + } + + private void SendJokerKingMsg(CardMatchOp op, uint card = 0u) + { + XSingleton.singleton.AddGreenLog("Send JokerKing Message:", op.ToString(), null, null, null, null); + PtcC2M_PokerTournamentReq ptcC2M_PokerTournamentReq = new PtcC2M_PokerTournamentReq(); + ptcC2M_PokerTournamentReq.Data.op = op; + ptcC2M_PokerTournamentReq.Data.card = card; + this.m_oldJockerID = card; + XSingleton.singleton.Send(ptcC2M_PokerTournamentReq); + } + + public void JokerKingRoundOver() + { + PtcC2M_PokerTournamentReq ptcC2M_PokerTournamentReq = new PtcC2M_PokerTournamentReq(); + ptcC2M_PokerTournamentReq.Data.op = CardMatchOp.CardMatch_RoundEnd; + XSingleton.singleton.Send(ptcC2M_PokerTournamentReq); + } + + public void SendJokerMatchRank() + { + PtcC2M_GuildCardRankReq ptcC2M_GuildCardRankReq = new PtcC2M_GuildCardRankReq(); + ptcC2M_GuildCardRankReq.Data.type = 3u; + XSingleton.singleton.Send(ptcC2M_GuildCardRankReq); + } + + public void ReceiveJokerRank(List names, List scores) + { + XSingleton.singleton.AddGreenLog("Length:", names.Count.ToString(), null, null, null, null); + this.m_matchRankName.Clear(); + this.m_matchRankName.AddRange(names); + this.m_matchRankScore.Clear(); + this.m_matchRankScore.AddRange(scores); + int score = 0; + int rank = -1; + for (int i = 0; i < names.Count; i++) + { + bool flag = names[i] == XSingleton.singleton.XPlayerData.Name; + if (flag) + { + bool flag2 = i < scores.Count; + if (flag2) + { + score = scores[i]; + rank = i; + break; + } + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetRankInfo(this.m_matchRankName.Count); + DlgBase.singleton.RefreshSelfRank(score, rank); + } + } + + public void ReceiveJokerKingMatchInfo(GuildCardMatchNtf ntf) + { + XSingleton.singleton.AddGreenLog("Receive JokerKing Message:", ntf.op.ToString(), null, null, null, null); + switch (ntf.op) + { + case CardMatchOp.CardMatch_Begin: + this.JokerBegion(); + break; + case CardMatchOp.CardMatch_Add: + this.ShowJokerJoin(ntf); + this.SendJokerMatchRank(); + break; + case CardMatchOp.CardMatch_RoundBegin: + this.ShowMatchBegin(ntf); + break; + case CardMatchOp.CardMatch_RoundChange: + this.ChangeJocker(ntf); + break; + case CardMatchOp.CardMatch_RoundEnd: + this.SendJokerMatchRank(); + this.EndJockerGame(ntf); + break; + case CardMatchOp.CardMatch_End: + this.SendJokerMatchRank(); + this.JokerMatchOver(); + break; + case CardMatchOp.CardMatch_Query: + this.ShowJokerQuery(ntf); + break; + case CardMatchOp.CardMatch_RoundWaiting: + this.ShowWaittingJocker(ntf); + this.SendJokerMatchRank(); + break; + case CardMatchOp.CardMatch_SignUp: + this.JokerSignUpResult(ntf); + break; + } + } + + private void JokerBegion() + { + this.m_matchState = CardMatchState.CardMatch_StateBegin; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshData(); + } + } + + private void JokerMatchOver() + { + this.m_matchJokers.Clear(); + this.m_timeLeft = 0.0; + this.m_matchState = CardMatchState.CardMatch_StateEnd; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshWhenShow(); + } + } + + private void SetMatchData(GuildCardMatchNtf ntf) + { + this.m_matchState = ntf.state; + this.m_timeLeft = ntf.timeleft + 1u; + this.m_changeount = ntf.changecount; + this.m_matchResult = ntf.result; + this.m_matchJockerStore = ntf.store; + this.m_matchItems.Clear(); + this.m_matchItems.AddRange(ntf.items); + this.m_matchRound = (uint)((long)XSingleton.singleton.GetInt("PokerTournamentRound") - (long)((ulong)((ntf.round == uint.MaxValue) ? 0u : (ntf.round + 1u)))); + this.m_matchJokers.Clear(); + this.m_matchJokers.AddRange(ntf.cards); + } + + private void ShowJokerJoin(GuildCardMatchNtf ntf) + { + this.SetMatchData(ntf); + this.ClearBestJoker(); + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + + private void ShowMatchBegin(GuildCardMatchNtf ntf) + { + this.SetMatchData(ntf); + this.ClearBestJoker(); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshWhenShow(); + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.m_timeLeft > (double)fDeltaT; + if (flag) + { + this.m_timeLeft -= (double)fDeltaT; + } + else + { + this.m_timeLeft = 0.0; + } + } + + private void ShowJokerQuery(GuildCardMatchNtf ntf) + { + this.m_matchState = ntf.state; + this.m_isBegion = ntf.isbegin; + this.m_isCanBegion = true; + this.m_timeLeft = ntf.timeleft; + this.m_isSignUp = ntf.sign_up; + this.m_JokerKingTimes = ntf.sign_up_num; + XSingleton.singleton.AddGreenLog("ntf:", this.m_matchState.ToString(), " ", this.m_isSignUp.ToString(), null, null); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshData(); + } + } + + private void ShowWaittingJocker(GuildCardMatchNtf ntf) + { + this.m_timeLeft = ntf.timeleft + 1u; + this.m_matchState = ntf.state; + this.m_matchJokers.Clear(); + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshWhenShow(); + } + } + + public void EndJockerGame(GuildCardMatchNtf ntf) + { + this.m_matchState = CardMatchState.CardMatch_StateRoundEnd; + this.m_matchJockerStore = 5u; + this.MatchJockers.Clear(); + this.m_matchItems.Clear(); + this.m_matchItems.AddRange(ntf.items); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = this.MatchResult != 8u; + if (flag2) + { + XSingleton.singleton.PlayUISound("Audio/UI/pukeshenli", true, AudioChannel.Action); + DlgBase.singleton.JokerStatus(2); + XSingleton.singleton.KillTimer(this.JokerToken); + this.JokerToken = XSingleton.singleton.SetTimer(1f, DlgBase.singleton.ResetJokerStatusCb, null); + } + else + { + XSingleton.singleton.PlayUISound("Audio/UI/pukeshibai", true, AudioChannel.Action); + DlgBase.singleton.JokerStatus(3); + XSingleton.singleton.KillTimer(this.JokerToken); + this.JokerToken = XSingleton.singleton.SetTimer(1f, DlgBase.singleton.ResetJokerStatusCb, null); + } + } + bool flag3 = !DlgBase.singleton.IsVisible(); + if (!flag3) + { + DlgBase.singleton.RefreshWhenShow(); + } + } + + private void ChangeJocker(GuildCardMatchNtf ntf) + { + this.wattingPTC = false; + this.m_matchResult = ntf.result; + bool flag = this.m_changeount > 0u; + if (flag) + { + this.m_changeount -= 1u; + } + uint oldJockerID = this.m_oldJockerID; + uint newCard = 0u; + int num = 0; + int i = 0; + int count = ntf.cards.Count; + while (i < count) + { + bool flag2 = !this.m_matchJokers.Contains(ntf.cards[i]); + if (flag2) + { + newCard = ntf.cards[i]; + num = this.m_matchJokers.IndexOf(this.m_oldJockerID); + bool flag3 = num > -1; + if (flag3) + { + this.m_matchJokers[num] = ntf.cards[i]; + } + break; + } + i++; + } + bool flag4 = !DlgBase.singleton.IsVisible(); + if (!flag4) + { + DlgBase.singleton.ChangeCard(oldJockerID, newCard, num); + DlgBase.singleton.SetGameCount(); + } + } + + private void JokerSignUpResult(GuildCardMatchNtf ntf) + { + XSingleton.singleton.AddGreenLog("Sign Up:", ntf.sign_up.ToString(), null, null, null, null); + this.m_isSignUp = ntf.sign_up; + this.m_JokerKingTimes = ntf.sign_up_num; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshData(); + } + } + + private void JokerKingQueryResult(GuildCardMatchNtf ntf) + { + XSingleton.singleton.AddGreenLog("ntf Query:", ntf.state.ToString(), ntf.isbegin.ToString(), ntf.sign_up.ToString(), null, null); + this.m_matchState = ntf.state; + this.m_isBegion = ntf.isbegin; + this.m_isSignUp = ntf.sign_up; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshData(); + } + } + + public void SetBestJocker(List jockers, string name) + { + this.m_matchBestJockers.Clear(); + this.m_matchBestJockers.AddRange(jockers); + this.m_matchBestName = name; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetupBestCard(); + } + } + + private void ClearBestJoker() + { + this.m_matchBestJockers.Clear(); + this.m_matchBestName = string.Empty; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetupBestCard(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XJokerKingDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XJokerKingDocument.cs.meta new file mode 100644 index 00000000..6ec2ee86 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XJokerKingDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d25ab67b592af04aa3dcd6b33ea9c1f +timeCreated: 1611403900 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XKeyboard.cs b/Client/Assets/Scripts/XMainClient/XKeyboard.cs new file mode 100644 index 00000000..c38a2042 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XKeyboard.cs @@ -0,0 +1,141 @@ +using System; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XKeyboard : XSingleton + { + public bool Enabled + { + get + { + return XSingleton.singleton.EditorMode; + } + } + + public int touchCount + { + get + { + return this._touch_count_this_frame; + } + } + + private XTouchItem[] _touches = new XTouchItem[XTouch.MultiTouchCount]; + + private int _touch_count_this_frame = 0; + + private bool _bAxis = false; + + private float _x = 0f; + + private float _y = 0f; + + private Vector3 _lastMousePos = Vector3.zero; + + public XKeyboard() + { + for (int i = 0; i < XTouch.MultiTouchCount; i++) + { + this._touches[i] = new XTouchItem(); + } + } + + public XTouchItem GetTouch(int idx) + { + return this._touches[idx]; + } + + public void Update() + { + this._touch_count_this_frame = 0; + this._bAxis = false; + bool mouseButton = Input.GetMouseButton(0); + if (mouseButton) + { + this._touches[this._touch_count_this_frame].faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XCommon_0); + this._touches[this._touch_count_this_frame].faketouch.position = Input.mousePosition; + this._touches[this._touch_count_this_frame].faketouch.deltaTime = Time.smoothDeltaTime; + this._touches[this._touch_count_this_frame].faketouch.deltaPosition = Input.mousePosition - this._lastMousePos; + this._touches[this._touch_count_this_frame].faketouch.phase = (Input.GetMouseButtonDown(0) ? (TouchPhase) 0 : ((this._touches[this._touch_count_this_frame].faketouch.deltaPosition.sqrMagnitude > 1f) ? (TouchPhase)1 : (TouchPhase)2)); + this._touches[this._touch_count_this_frame].faketouch.tapCount = 1; + this._touches[this._touch_count_this_frame].Fake = true; + this._lastMousePos = Input.mousePosition; + this._touch_count_this_frame++; + } + else + { + bool mouseButtonUp = Input.GetMouseButtonUp(0); + if (mouseButtonUp) + { + this._touches[this._touch_count_this_frame].faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XCommon_0); + this._touches[this._touch_count_this_frame].faketouch.position = Input.mousePosition; + this._touches[this._touch_count_this_frame].faketouch.deltaTime = Time.smoothDeltaTime; + this._touches[this._touch_count_this_frame].faketouch.phase = (TouchPhase)3; + this._touches[this._touch_count_this_frame].faketouch.tapCount = 1; + this._touches[this._touch_count_this_frame].Fake = true; + this._touch_count_this_frame++; + } + } + this._bAxis = true; + int num = 0; // horizontal + int num2 = 0; // verticle + bool key = Input.GetKey((KeyCode) 97); + if (key) + { + num--; + } + bool key2 = Input.GetKey((KeyCode)100); + if (key2) + { + num++; + } + bool key3 = Input.GetKey((KeyCode)115); + if (key3) + { + num2--; + } + bool key4 = Input.GetKey((KeyCode)119); + if (key4) + { + num2++; + } + bool flag = num != 0 || num2 != 0; + if (flag) + { + this._touches[this._touch_count_this_frame].faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XCommon_1); + this._touches[this._touch_count_this_frame].faketouch.deltaTime = Time.smoothDeltaTime; + this._touches[this._touch_count_this_frame].faketouch.phase = ((this._x == 0f && this._y == 0f) ? (TouchPhase)0 : (TouchPhase)1); + //this._touches[this._touch_count_this_frame].faketouch.position = ((this._touches[this._touch_count_this_frame].faketouch.phase == null) ? new Vector2(XSingleton.singleton.MaxDistance, XSingleton.singleton.MaxDistance) : ((num != 0 && num2 != 0) ? new Vector2(XSingleton.singleton.MaxDistance + (float)num * XSingleton.singleton.MaxDistance * 0.707f, XSingleton.singleton.MaxDistance + (float)num2 * XSingleton.singleton.MaxDistance * 0.707f) : new Vector2(XSingleton.singleton.MaxDistance + (float)num * XSingleton.singleton.MaxDistance, XSingleton.singleton.MaxDistance + (float)num2 * XSingleton.singleton.MaxDistance))); + this._touches[this._touch_count_this_frame].faketouch.position = ((this._touches[this._touch_count_this_frame].faketouch.phase == TouchPhase.Began) ? new Vector2(XSingleton.singleton.MaxDistance, XSingleton.singleton.MaxDistance) : ((num != 0 && num2 != 0) ? new Vector2(XSingleton.singleton.MaxDistance + (float)num * XSingleton.singleton.MaxDistance * 0.707f, XSingleton.singleton.MaxDistance + (float)num2 * XSingleton.singleton.MaxDistance * 0.707f) : new Vector2(XSingleton.singleton.MaxDistance + (float)num * XSingleton.singleton.MaxDistance, XSingleton.singleton.MaxDistance + (float)num2 * XSingleton.singleton.MaxDistance))); + this._touches[this._touch_count_this_frame].faketouch.tapCount = 1; + this._touches[this._touch_count_this_frame].Fake = true; + this._touch_count_this_frame++; + } + else + { + bool flag2 = this._x != 0f || this._y != 0f; + if (flag2) + { + this._touches[this._touch_count_this_frame].faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XCommon_1); + this._touches[this._touch_count_this_frame].faketouch.position = new Vector2(XSingleton.singleton.MaxDistance, XSingleton.singleton.MaxDistance); + this._touches[this._touch_count_this_frame].faketouch.deltaTime = Time.smoothDeltaTime; + this._touches[this._touch_count_this_frame].faketouch.phase = (TouchPhase) 3; + this._touches[this._touch_count_this_frame].faketouch.tapCount = 1; + this._touches[this._touch_count_this_frame].Fake = true; + this._touch_count_this_frame++; + } + } + this._x = (float)num; + this._y = (float)num2; + bool flag3 = !this._bAxis; + if (flag3) + { + this._x = 0f; + this._y = 0f; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XKeyboard.cs.meta b/Client/Assets/Scripts/XMainClient/XKeyboard.cs.meta new file mode 100644 index 00000000..b90a3b21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XKeyboard.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 215fff8df2da3f04abab94bb2ba5c8b5 +timeCreated: 1611403413 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLFU.cs b/Client/Assets/Scripts/XMainClient/XLFU.cs new file mode 100644 index 00000000..3842f05d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLFU.cs @@ -0,0 +1,222 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLFU + { + private static readonly uint DURATION_COUNT = 16u; + + private List> m_Items = new List>(); + + private Dictionary> m_dicItems = new Dictionary>(); + + private int m_HeapSize = 0; + + private int m_Size = 5; + + private uint m_CurTotalCount = 0u; + + public XLFU(int size) + { + bool flag = size <= 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("size <= 0", null, null, null, null, null); + } + this.m_Size = size; + } + + public void Clear() + { + this.m_Items.Clear(); + this.m_dicItems.Clear(); + this.m_HeapSize = 0; + this.m_CurTotalCount = 0u; + } + + public T Add(T t) + { + this._AdjustFrequent(); + XLFUItem xlfuitem = null; + bool flag = this.m_dicItems.TryGetValue(t, out xlfuitem); + if (!flag) + { + bool flag2 = this.m_HeapSize >= this.m_Items.Count; + if (flag2) + { + xlfuitem = new XLFUItem(); + this.m_Items.Add(xlfuitem); + } + else + { + xlfuitem = this.m_Items[this.m_HeapSize]; + } + xlfuitem.data = t; + xlfuitem.frequent = 0u; + this.m_dicItems.Add(t, xlfuitem); + xlfuitem.index = this.m_HeapSize; + this.m_HeapSize++; + this._PercolateUp(xlfuitem); + } + xlfuitem.bCanPop = false; + xlfuitem.frequent += 1u; + this._PercolateDown(xlfuitem); + bool flag3 = this.m_HeapSize > this.m_Size; + if (flag3) + { + XLFUItem xlfuitem2 = this.m_Items[0]; + bool bCanPop = xlfuitem2.bCanPop; + if (bCanPop) + { + return this.Pop(); + } + } + return default(T); + } + + public void MarkCanPop(T t, bool bCanPop) + { + XLFUItem xlfuitem = null; + bool flag = this.m_dicItems.TryGetValue(t, out xlfuitem); + if (flag) + { + xlfuitem.bCanPop = bCanPop; + if (bCanPop) + { + this._PercolateUp(xlfuitem); + } + else + { + this._PercolateDown(xlfuitem); + } + } + } + + public void Remove(T t) + { + XLFUItem xlfuitem = null; + bool flag = this.m_dicItems.TryGetValue(t, out xlfuitem); + if (flag) + { + this.m_HeapSize--; + int index = xlfuitem.index; + this.Swap(index, this.m_HeapSize); + this._PercolateDown(this.m_Items[index]); + this.m_dicItems.Remove(this.m_Items[this.m_HeapSize].data); + } + } + + private void _AdjustFrequent() + { + this.m_CurTotalCount += 1u; + bool flag = this.m_CurTotalCount >= XLFU.DURATION_COUNT; + if (flag) + { + for (int i = 0; i < this.m_HeapSize; i++) + { + this.m_Items[i].frequent >>= 1; + } + this.m_CurTotalCount = 0u; + } + } + + public T Pop() + { + bool flag = this.m_HeapSize > 0; + T result; + if (flag) + { + this.m_HeapSize--; + this.Swap(0, this.m_HeapSize); + this._PercolateDown(this.m_Items[0]); + this.m_dicItems.Remove(this.m_Items[this.m_HeapSize].data); + result = this.m_Items[this.m_HeapSize].data; + } + else + { + result = default(T); + } + return result; + } + + public T Peek() + { + bool flag = this.m_HeapSize > 0; + T result; + if (flag) + { + result = this.m_Items[0].data; + } + else + { + result = default(T); + } + return result; + } + + private void Swap(int x, int y) + { + XLFUItem value = this.m_Items[x]; + this.m_Items[x] = this.m_Items[y]; + this.m_Items[x].index = x; + this.m_Items[y] = value; + this.m_Items[y].index = y; + } + + private void _PercolateDown(XLFUItem item) + { + int i = item.index; + int heapSize = this.m_HeapSize; + while (i < heapSize) + { + int num = 2 * i + 1; + int num2 = 2 * i + 2; + XLFUItem other = this.m_Items[i]; + int num3 = i; + bool flag = num < heapSize && this.m_Items[num].CompareTo(other) < 0; + if (flag) + { + other = this.m_Items[num]; + num3 = num; + } + bool flag2 = num2 < heapSize && this.m_Items[num2].CompareTo(other) < 0; + if (flag2) + { + other = this.m_Items[num2]; + num3 = num2; + } + bool flag3 = num3 != i; + if (!flag3) + { + break; + } + this.Swap(i, num3); + i = num3; + } + } + + private void _PercolateUp(XLFUItem item) + { + int num; + for (int i = item.index; i > 0; i = num) + { + num = (i - 1) / 2; + XLFUItem other = this.m_Items[num]; + int num2 = num; + bool flag = num >= 0 && this.m_Items[i].CompareTo(other) < 0; + if (flag) + { + num2 = i; + } + bool flag2 = num2 != num; + if (!flag2) + { + break; + } + this.Swap(num, num2); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLFU.cs.meta b/Client/Assets/Scripts/XMainClient/XLFU.cs.meta new file mode 100644 index 00000000..379e1cbf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLFU.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ed363e73b75c12a45827884aed579d64 +timeCreated: 1611404791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLFUItem.cs b/Client/Assets/Scripts/XMainClient/XLFUItem.cs new file mode 100644 index 00000000..38a89896 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLFUItem.cs @@ -0,0 +1,42 @@ +using System; + +namespace XMainClient +{ + internal class XLFUItem : IComparable> + { + public bool bCanPop + { + get + { + return this.canPop < 0; + } + set + { + this.canPop = (value ? -1 : 1); + } + } + + public T data; + + public uint frequent = 0u; + + public int index; + + private int canPop; + + public int CompareTo(XLFUItem other) + { + bool flag = this.canPop == other.canPop; + int result; + if (flag) + { + result = this.frequent.CompareTo(other.frequent); + } + else + { + result = this.canPop.CompareTo(other.canPop); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLFUItem.cs.meta b/Client/Assets/Scripts/XMainClient/XLFUItem.cs.meta new file mode 100644 index 00000000..8e3e7015 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLFUItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89bd736fa08a6874c83e1f46b259dcb3 +timeCreated: 1611404089 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLabelSymbolHelper.cs b/Client/Assets/Scripts/XMainClient/XLabelSymbolHelper.cs new file mode 100644 index 00000000..9f6f4ce7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLabelSymbolHelper.cs @@ -0,0 +1,246 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLabelSymbolHelper + { + public static string FormatCostWithIcon(int cost, ItemEnum moneyType) + { + return string.Format("{0}{1}", XLabelSymbolHelper.FormatSmallIcon(XFastEnumIntEqualityComparer.ToInt(moneyType)), cost); + } + + public static string FormatCostWithIconLast(int cost, ItemEnum moneyType) + { + return string.Format("{0}{1}", cost, XLabelSymbolHelper.FormatSmallIcon(XFastEnumIntEqualityComparer.ToInt(moneyType))); + } + + public static string FormatCostWithIcon(string s, int cost, ItemEnum moneyType) + { + return string.Format(s, XLabelSymbolHelper.FormatSmallIcon(XFastEnumIntEqualityComparer.ToInt(moneyType)), cost); + } + + public static string FormatItemSmallIcon(string s, int itemId, int cost) + { + return string.Format(s, XLabelSymbolHelper.FormatSmallIcon(itemId), cost); + } + + public static string FormatSmallIcon(int itemID) + { + string sprite; + string atlas; + XBagDocument.GetItemSmallIconAndAtlas(itemID, out sprite, out atlas, 0u); + return XStringFormatHelper.FormatImage(atlas, sprite); + } + + public static string FormatImage(int itemID) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemID); + bool flag = itemConf == null; + string result; + if (flag) + { + result = ""; + } + else + { + result = XStringFormatHelper.FormatImage(XSingleton.singleton.ChooseProfString(itemConf.ItemAtlas, 0u), XSingleton.singleton.ChooseProfString(itemConf.ItemIcon, 0u)); + } + return result; + } + + public static string FormatImage(string atlas, string sprite) + { + return XStringFormatHelper.FormatImage(atlas, sprite); + } + + public static string FormatAnimation(string atlas, string sprite, int frameRate) + { + return XStringFormatHelper.FormatAnimation(atlas, sprite, frameRate); + } + + public static string FormatDesignation(string atlas, string sprite, int frameRate = 16) + { + return XStringFormatHelper.FormatAnimation(atlas, sprite, frameRate); + } + + public static string FormatGuild(string name, ulong uid) + { + return XStringFormatHelper.FormatGuild(name, uid); + } + + public static string FormatDragonGuild(string name, string dragonguildname) + { + return XStringFormatHelper.FormatDragonGuild(name, dragonguildname); + } + + public static string FormatTeam(string name, int teamid, uint expid) + { + return XStringFormatHelper.FormatTeam(name, teamid, expid); + } + + public static string FormatItem(string name, XItem item) + { + return XStringFormatHelper.FormatItem(name, XSingleton.singleton.GetItemQualityRGB((int)XBagDocument.GetItemConf(item.itemID).ItemQuality), item.uid); + } + + public static string FormatName(string name, ulong uid, string color = "00ffff") + { + return XStringFormatHelper.FormatName(name, uid, color); + } + + public static string FormatPk(string name, ulong uid) + { + return XStringFormatHelper.FormatPk(name, uid); + } + + public static string FormatSpectate(string name, int liveid, int type) + { + return XStringFormatHelper.FormatSpeactate(name, liveid, type); + } + + public static string FormatUI(string name, ulong uid, List paramList) + { + return XStringFormatHelper.FormatUI(name, uid, paramList); + } + + public static bool ParseGuildParam(string param, ref ulong guildid) + { + guildid = ulong.Parse(param); + return true; + } + + public static bool ParseDragonGuildParam(string param, ref string dragonguildname) + { + dragonguildname = param; + return true; + } + + public static bool ParseSpectateParam(string param, ref int liveid, ref int type) + { + string[] array = param.Split(XStringFormatHelper.Separator); + bool flag = array.Length != 2; + bool result; + if (flag) + { + result = false; + } + else + { + liveid = int.Parse(array[0]); + type = int.Parse(array[1]); + result = true; + } + return result; + } + + public static bool ParsePkParam(string param, ref ulong roleid) + { + roleid = ulong.Parse(param); + return true; + } + + public static bool ParseUIParam(string param, ref ulong sysid, ref List sysParamList) + { + string[] array = param.Split(XStringFormatHelper.Separator); + bool flag = array.Length == 0; + bool result; + if (flag) + { + result = false; + } + else + { + sysid = ulong.Parse(array[0]); + bool flag2 = array.Length > 1; + if (flag2) + { + bool flag3 = sysParamList == null; + if (flag3) + { + sysParamList = new List(); + } + sysParamList.Clear(); + for (int i = 1; i < array.Length; i++) + { + sysParamList.Add(ulong.Parse(array[i])); + } + } + else + { + bool flag4 = sysParamList != null; + if (flag4) + { + sysParamList.Clear(); + } + } + result = true; + } + return result; + } + + public static bool ParseNameParam(string param, ref string name, ref ulong uid) + { + string[] array = param.Split(XStringFormatHelper.Separator); + bool flag = array.Length != 2; + bool result; + if (flag) + { + result = false; + } + else + { + uid = ulong.Parse(array[0]); + name = XStringFormatHelper.UnEscape(array[1]); + result = true; + } + return result; + } + + public static bool ParseTeamParam(string param, ref int teamid, ref uint expid) + { + string[] array = param.Split(XStringFormatHelper.Separator); + bool flag = array.Length != 2; + bool result; + if (flag) + { + result = false; + } + else + { + teamid = int.Parse(array[0]); + expid = uint.Parse(array[1]); + result = true; + } + return result; + } + + public static void RegisterHyperLinkClicks(IXUILabelSymbol labelSymbol) + { + labelSymbol.RegisterTeamEventHandler(new HyperLinkClickEventHandler(XTeamDocument.OnTeamHyperLinkClick)); + labelSymbol.RegisterPkEventHandler(new HyperLinkClickEventHandler(XQualifyingDocument.OnPkHyperLinkClick)); + labelSymbol.RegisterGuildEventHandler(new HyperLinkClickEventHandler(XGuildDocument.OnGuildHyperLinkClick)); + labelSymbol.RegisterDragonGuildEventHandler(new HyperLinkClickEventHandler(XDragonGuildDocument.OnDragonGuildHyperLinkClick)); + labelSymbol.RegisterUIEventHandler(new HyperLinkClickEventHandler(XInvitationDocument.OnUIHyperLinkClick)); + labelSymbol.RegisterSpectateEventHandler(new HyperLinkClickEventHandler(XInvitationDocument.OnSpectateClick)); + } + + public static string RemoveFormatInfo(string input) + { + bool flag = input.Contains("ui="); + string result; + if (flag) + { + result = input.Substring(0, input.IndexOf("ui=")); + } + else + { + result = input; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLabelSymbolHelper.cs.meta b/Client/Assets/Scripts/XMainClient/XLabelSymbolHelper.cs.meta new file mode 100644 index 00000000..8a3af837 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLabelSymbolHelper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 72a0d9d5ee7f08c4fba86a5d2414c677 +timeCreated: 1611403938 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs new file mode 100644 index 00000000..a09d7025 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs @@ -0,0 +1,44 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XLeagueTeamRankInfo : XBaseRankInfo + { + public ulong leagueTeamID; + + public uint serverID; + + public string serverName; + + public string teamName; + + public uint point; + + public uint winNum; + + public float winRate; + + public uint time; + + public uint maxContineWins; + + public override void ProcessData(RankData data) + { + this.time = data.time; + bool flag = data.leagueinfo != null; + if (flag) + { + this.leagueTeamID = data.leagueinfo.league_teamid; + this.serverID = data.leagueinfo.serverid; + this.serverName = data.leagueinfo.servername; + this.teamName = data.leagueinfo.teamname; + this.point = data.leagueinfo.point; + this.winNum = data.leagueinfo.winnum; + this.winRate = data.leagueinfo.winrate; + this.maxContineWins = data.leagueinfo.continuewin; + } + this.rank = data.Rank; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs.meta new file mode 100644 index 00000000..79592ce4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a9bcef4f290e78542920fef30071773d +timeCreated: 1611404300 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLeagueTeamRankList.cs b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankList.cs new file mode 100644 index 00000000..e3db92c1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankList.cs @@ -0,0 +1,38 @@ +using System; + +namespace XMainClient +{ + public class XLeagueTeamRankList : XBaseRankList + { + public XLeagueTeamRankList() + { + this.type = XRankType.LeagueTeamRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XLeagueTeamRankInfo(); + } + + public override XBaseRankInfo GetLatestMyRankInfo() + { + bool flag = this.myRankInfo == null || this.myRankInfo.rank != XRankDocument.INVALID_RANK; + XBaseRankInfo myRankInfo; + if (flag) + { + myRankInfo = this.myRankInfo; + } + else + { + bool flag2 = this.myRankInfo == null; + if (flag2) + { + this.myRankInfo = this.CreateNewInfo(); + } + this.myRankInfo.rank = XRankDocument.INVALID_RANK; + myRankInfo = this.myRankInfo; + } + return myRankInfo; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLeagueTeamRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankList.cs.meta new file mode 100644 index 00000000..0091c4d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeagueTeamRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d431a78f75512147bd37234b25fcc99 +timeCreated: 1611403352 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLeaveSceneArgs.cs b/Client/Assets/Scripts/XMainClient/XLeaveSceneArgs.cs new file mode 100644 index 00000000..90e7a643 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeaveSceneArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XLeaveSceneArgs : XEventArgs + { + public XLeaveSceneArgs() + { + this._eDefine = XEventDefine.XEvent_LeaveScene; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLeaveSceneArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XLeaveSceneArgs.cs.meta new file mode 100644 index 00000000..055ab36e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeaveSceneArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac5a18052676a7c4a82ff9787f74c0d2 +timeCreated: 1611404330 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLeaveTeamEventArgs.cs b/Client/Assets/Scripts/XMainClient/XLeaveTeamEventArgs.cs new file mode 100644 index 00000000..2d0c5991 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeaveTeamEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XLeaveTeamEventArgs : XEventArgs + { + public uint dungeonID; + + public XLeaveTeamEventArgs() + { + this._eDefine = XEventDefine.XEvent_LeaveTeam; + } + + public override void Recycle() + { + base.Recycle(); + this.dungeonID = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLeaveTeamEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XLeaveTeamEventArgs.cs.meta new file mode 100644 index 00000000..1d5b47ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeaveTeamEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e2b957268ea4b2641a73a993f4886124 +timeCreated: 1611404729 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLeftTimeCounter.cs b/Client/Assets/Scripts/XMainClient/XLeftTimeCounter.cs new file mode 100644 index 00000000..e97d5a70 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeftTimeCounter.cs @@ -0,0 +1,217 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLeftTimeCounter + { + private float m_fLeftTime; + + private float m_startTime; + + private float m_Time; + + private int m_nLeftTime; + + private int m_nNoticeTime = 0; + + private bool m_autoSetVisible = false; + + private int m_forward = -1; + + private IXUILabel m_Label = null; + + private object m_FinishParam = null; + + private string m_FormatString = ""; + + private TimeOverFinishEventHandler m_FinishEventHandler = null; + + private int m_lowCount = 2; + + private int m_upCount = 3; + + private int m_minUnit = 4; + + private bool m_isCarry = false; + + private bool m_needPadLeft = true; + + private bool m_needMillisecond = false; + + private bool m_isFormat = true; + + private IXUITweenTool m_tween = null; + + public XLeftTimeCounter(IXUILabel label, bool autoSetVisible = false) + { + this.m_Label = label; + this.m_autoSetVisible = autoSetVisible; + bool autoSetVisible2 = this.m_autoSetVisible; + if (autoSetVisible2) + { + this.m_Label.SetVisible(false); + } + this.m_tween = (label.gameObject.GetComponent("XUIPlayTween") as IXUITweenTool); + this.SetLeftTimeFx(false); + } + + public void SetForward(int forward) + { + this.m_forward = forward; + } + + public void SetFormatString(string formatString) + { + this.m_FormatString = formatString; + this._SetLeftTimeText(); + } + + public int GetLeftTime() + { + return this.m_nLeftTime; + } + + public float GetFloatLeftTime() + { + return this.m_fLeftTime; + } + + public void SetLeftTime(float seconds, int noticeTime = -1) + { + this.m_startTime = Time.time; + this.m_fLeftTime = seconds; + this.m_Time = seconds; + bool flag = noticeTime != -1; + if (flag) + { + this.m_nNoticeTime = noticeTime; + } + this._SetLeftTimeText(); + this.SetLeftTimeFx(false); + } + + public int Update() + { + bool flag = this.m_fLeftTime > 0f; + int result; + if (flag) + { + bool flag2 = this.m_autoSetVisible && !this.m_Label.IsVisible(); + if (flag2) + { + this.m_Label.SetVisible(true); + } + this.m_fLeftTime = Math.Max(this.m_Time + (float)this.m_forward * (Time.time - this.m_startTime), 0f); + bool flag3 = this.m_nLeftTime != (int)this.m_fLeftTime || this.m_needMillisecond; + if (flag3) + { + this._SetLeftTimeText(); + bool flag4 = this.m_tween != null && this.m_forward == -1 && this.m_nLeftTime < this.m_nNoticeTime; + if (flag4) + { + this.SetLeftTimeFx(true); + } + } + result = this.m_nLeftTime; + } + else + { + bool flag5 = this.m_FinishEventHandler != null; + if (flag5) + { + this.m_FinishEventHandler(this.m_FinishParam); + this.m_FinishEventHandler = null; + } + bool flag6 = this.m_autoSetVisible && this.m_Label.IsVisible(); + if (flag6) + { + this.m_Label.SetVisible(false); + } + result = 0; + } + return result; + } + + private void _SetLeftTimeText() + { + this.m_nLeftTime = (int)this.m_fLeftTime; + bool isFormat = this.m_isFormat; + string text; + if (isFormat) + { + bool needMillisecond = this.m_needMillisecond; + if (needMillisecond) + { + text = XSingleton.singleton.TimeFormatString(this.m_fLeftTime, this.m_lowCount, this.m_upCount, this.m_minUnit, this.m_isCarry); + } + else + { + text = XSingleton.singleton.TimeFormatString(this.m_nLeftTime, this.m_lowCount, this.m_upCount, this.m_minUnit, this.m_isCarry, this.m_needPadLeft); + } + } + else + { + text = this.m_nLeftTime.ToString(); + } + bool flag = string.IsNullOrEmpty(this.m_FormatString); + if (flag) + { + this.m_Label.SetText(text); + } + else + { + this.m_Label.SetText(string.Format(this.m_FormatString, text)); + } + } + + private void SetLeftTimeFx(bool bVisable) + { + bool flag = this.m_tween != null; + if (flag) + { + if (bVisable) + { + this.m_tween.PlayTween(true, -1f); + } + else + { + this.m_tween.ResetTween(true); + this.m_tween.StopTween(); + } + } + } + + public void SetFinishEventHandler(TimeOverFinishEventHandler finishEventHandler, object param = null) + { + this.m_FinishEventHandler = finishEventHandler; + this.m_FinishParam = param; + } + + public void SetTimeFormat(int lowCount, int upCount = 3, int minUnit = 4, bool needMillisecond = false) + { + this.m_lowCount = lowCount; + this.m_upCount = upCount; + this.m_minUnit = minUnit; + this.m_needMillisecond = needMillisecond; + } + + public void SetCarry() + { + this.m_isCarry = true; + } + + public void SetNoNeedPadLeft() + { + this.m_needPadLeft = false; + } + + public void SetFormat(bool isFormat) + { + this.m_isFormat = isFormat; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLeftTimeCounter.cs.meta b/Client/Assets/Scripts/XMainClient/XLeftTimeCounter.cs.meta new file mode 100644 index 00000000..317b036d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLeftTimeCounter.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6a98fc60a5e5da4bb5fe578ad84bc45 +timeCreated: 1611404289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs b/Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs new file mode 100644 index 00000000..52776694 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs @@ -0,0 +1,132 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelAIMgr : XSingleton + { + public bool AiReady + { + get + { + return this._ai_ready; + } + } + + public bool AiDebug + { + get + { + return this._ai_debug; + } + } + + public Vector3 ArenaCenter + { + get + { + return this._arena_center; + } + } + + public List PathList + { + get + { + return this._path_list; + } + } + + private GameObject _start_pos = null; + + private List _path_list = new List(); + + private bool _ai_ready = false; + + private bool _ai_debug = false; + + private Vector3 _arena_center = Vector3.zero; + + private static readonly int MAX_PATH_POINT = 100; + + public void InitAIData() + { + string sceneDynamicPrefix = XSingleton.singleton.GetSceneDynamicPrefix(XSingleton.singleton.SceneID); + GameObject gameObject = GameObject.Find("Arena_center"); + bool flag = gameObject != null; + if (flag) + { + this._arena_center = gameObject.transform.position; + } + GameObject gameObject2 = GameObject.Find(sceneDynamicPrefix + "navigation"); + this._path_list.Clear(); + bool flag2 = gameObject2 != null; + if (flag2) + { + for (int i = 0; i < XLevelAIMgr.MAX_PATH_POINT; i++) + { + Transform transform = gameObject2.transform.Find("path" + i.ToString()); + bool flag3 = transform == null; + if (flag3) + { + break; + } + GameObject gameObject3 = transform.gameObject; + bool flag4 = gameObject3 == null; + if (flag4) + { + break; + } + this._path_list.Add(gameObject3); + } + } + bool flag5 = this._path_list.Count == 0; + if (flag5) + { + this._ai_ready = false; + } + else + { + this._ai_ready = true; + } + } + + public void ClearAIData() + { + this._start_pos = null; + this._path_list.Clear(); + } + + public GameObject GetAiStartPos() + { + return this._start_pos; + } + + public List GetPathPos() + { + return this._path_list; + } + + public void EnableAllAI(bool enable) + { + List opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < opponent.Count; i++) + { + XAIEnableAI @event = XEventPool.GetEvent(); + @event.Firer = opponent[i]; + @event.Enable = enable; + XSingleton.singleton.FireEvent(@event); + } + for (int j = 0; j < ally.Count; j++) + { + XAIEnableAI event2 = XEventPool.GetEvent(); + event2.Firer = ally[j]; + event2.Enable = enable; + XSingleton.singleton.FireEvent(event2); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs.meta new file mode 100644 index 00000000..ed9df25b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelAIMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 138197be7e1817847ae4ed3d844ecd2c +timeCreated: 1611403249 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelBaseTask.cs b/Client/Assets/Scripts/XMainClient/XLevelBaseTask.cs new file mode 100644 index 00000000..07b3f7b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelBaseTask.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XLevelBaseTask + { + public int _id; + + protected XLevelSpawnInfo _spawner; + + public XLevelBaseTask(XLevelSpawnInfo ls) + { + this._spawner = ls; + } + + public virtual bool Execute(float time) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelBaseTask.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelBaseTask.cs.meta new file mode 100644 index 00000000..b071ddbc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelBaseTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8c119fc39e1d6da42b7b4fbcac420f0d +timeCreated: 1611404098 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelDocument.cs b/Client/Assets/Scripts/XMainClient/XLevelDocument.cs new file mode 100644 index 00000000..b8b94c9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelDocument.cs @@ -0,0 +1,493 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.Battle; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelDocument : XDocComponent + { + public override uint ID + { + get + { + return XLevelDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XLevelDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static RandomTaskTable _randomtask = new RandomTaskTable(); + + public Dictionary SceneDayEnter = new Dictionary(); + + public Dictionary SceneBuyCount = new Dictionary(); + + public Dictionary> DropData = new Dictionary>(); + + public List SceneBox = new List(); + + private int _rtask = 0; + + private XTimerMgr.ElapsedEventHandler _showRandomTaskCb = null; + + private bool m_bIsResetSceneMesBack = true; + + private int m_reqSceneId = 0; + + public XLevelDocument() + { + this._showRandomTaskCb = new XTimerMgr.ElapsedEventHandler(this.ShowRandomTask); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XLevelDocument.AsyncLoader.AddTask("Table/randomtask", XLevelDocument._randomtask, false); + XLevelDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.SceneDayEnter.Clear(); + for (int i = 0; i < XBagDocument.DropTable.Table.Length; i++) + { + int dropID = XBagDocument.DropTable.Table[i].DropID; + int itemID = XBagDocument.DropTable.Table[i].ItemID; + int itemCount = XBagDocument.DropTable.Table[i].ItemCount; + XDropData item = default(XDropData); + item.itemID = itemID; + item.count = itemCount; + bool flag = this.DropData.ContainsKey(dropID); + if (flag) + { + this.DropData[dropID].Add(item); + } + else + { + List value = new List(); + this.DropData.Add(dropID, value); + this.DropData[dropID].Add(item); + } + } + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + public void UpdateSceneDayTime(QuerySceneDayCountRes data) + { + for (int i = 0; i < data.sceneid.Count; i++) + { + bool flag = this.SceneDayEnter.ContainsKey(data.sceneid[i]); + if (flag) + { + this.SceneDayEnter[data.sceneid[i]] = data.scenecout[i]; + } + else + { + this.SceneDayEnter.Add(data.sceneid[i], data.scenecout[i]); + } + bool flag2 = this.SceneBuyCount.ContainsKey(data.sceneid[i]); + if (flag2) + { + this.SceneBuyCount[data.sceneid[i]] = data.scenebuycount[i]; + } + else + { + this.SceneBuyCount.Add(data.sceneid[i], data.scenebuycount[i]); + } + } + this.SceneBox.Clear(); + this.SceneBox.AddRange(data.chestOpenedScene); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.UpdateSceneEnterTime(); + DlgBase.singleton.UpdateSceneBox(); + } + this.RefreshRedPoint(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = SceneType.SCENE_HALL == XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID); + if (flag) + { + RpcC2G_QuerySceneDayCount rpcC2G_QuerySceneDayCount = new RpcC2G_QuerySceneDayCount(); + List list = ListPool.Get(); + XSingleton.singleton.GetChapterList(XChapterType.SCENE_BATTLE, list); + for (int i = 0; i < list.Count; i++) + { + XChapter.RowData chapter = XSingleton.singleton.GetChapter(list[i]); + List list2 = ListPool.Get(); + XSingleton.singleton.GetSceneListByChapter(list[i], list2); + rpcC2G_QuerySceneDayCount.oArg.type = 1u; + for (int j = 0; j < list2.Count; j++) + { + rpcC2G_QuerySceneDayCount.oArg.groupid.Add(list2[j]); + } + ListPool.Release(list2); + } + ListPool.Release(list); + XSingleton.singleton.Send(rpcC2G_QuerySceneDayCount); + } + } + + public static string GetDifficulty(int _PlayerPPT, int _RecommendPower) + { + string[] array = XSingleton.singleton.GetValue("SceneDifficult").Split(XGlobalConfig.ListSeparator); + float num = (float)_PlayerPPT / (float)_RecommendPower; + float[] array2 = new float[] + { + float.Parse(array[0]), + float.Parse(array[1]), + float.Parse(array[2]) + }; + bool flag = num >= array2[0]; + string @string; + if (flag) + { + @string = XStringDefineProxy.GetString("EASY"); + } + else + { + bool flag2 = num >= array2[1] && num < array2[0]; + if (flag2) + { + @string = XStringDefineProxy.GetString("NORMAL"); + } + else + { + bool flag3 = num >= array2[2] && num < array2[1]; + if (flag3) + { + @string = XStringDefineProxy.GetString("HARD"); + } + else + { + @string = XStringDefineProxy.GetString("VERYHARD"); + } + } + } + return @string; + } + + public double GetExpAddition(int level) + { + PlayerLevelTable.RowData byLevel = XSingleton.singleton.LevelTable.GetByLevel(level); + bool flag = byLevel != null; + double result; + if (flag) + { + result = byLevel.ExpAddition; + } + else + { + result = 1.0; + } + return result; + } + + public void RefreshRedPoint() + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Level_Normal, false); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Level_Elite, true); + } + + public void OnFetchSceneChestSucc(uint sceneID) + { + this.SceneBox.Add(sceneID); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.OnFetchSceneChestSucc(); + } + this.RefreshRedPoint(); + } + + public List GetDropData(int dropID) + { + bool flag = this.DropData.ContainsKey(dropID); + List result; + if (flag) + { + result = this.DropData[dropID]; + } + else + { + result = null; + } + return result; + } + + public void AutoGoBattle(int sceneid, int chapterid, uint diff) + { + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.SetAutoSelectScene(sceneid, chapterid, diff); + DlgBase.singleton.FadeShow(); + } + + public void ResetScene(int sceneid) + { + this.m_reqSceneId = sceneid; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData((uint)sceneid); + RpcC2G_StageCountReset rpcC2G_StageCountReset = new RpcC2G_StageCountReset(); + rpcC2G_StageCountReset.oArg.groupid = ((sceneData.DayLimitGroupID > 0u) ? sceneData.DayLimitGroupID : ((uint)sceneid)); + XSingleton.singleton.Send(rpcC2G_StageCountReset); + this.m_bIsResetSceneMesBack = false; + } + + public void OnResetSceneSucc(uint sceneid, StageCountResetRes oRes) + { + this.m_bIsResetSceneMesBack = true; + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + bool flag3 = this.SceneDayEnter.ContainsKey(sceneid); + if (flag3) + { + this.SceneDayEnter[sceneid] = 0u; + } + bool flag4 = this.SceneBuyCount.ContainsKey(sceneid); + if (flag4) + { + Dictionary sceneBuyCount = this.SceneBuyCount; + sceneBuyCount[sceneid] += 1u; + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.OnResetSucc(); + } + } + } + } + + public bool HasChapterRedpoint(int chapterid) + { + XChapter.RowData chapter = XSingleton.singleton.GetChapter(chapterid); + List list = ListPool.Get(); + XSingleton.singleton.GetSceneListByChapter(chapterid, list); + int num = 0; + for (int i = 0; i < list.Count; i++) + { + uint num2 = list[i]; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(list[i]); + int num3 = XSingleton.singleton.GetRank((int)num2); + bool flag = num3 == -1; + if (flag) + { + num3 = 0; + } + num += num3; + bool flag2 = sceneData.SceneChest != 0; + if (flag2) + { + bool flag3 = num3 > 0 && !this.SceneBox.Contains(num2); + if (flag3) + { + ListPool.Release(list); + return true; + } + } + } + ListPool.Release(list); + for (int j = 0; j < chapter.Drop.Count; j++) + { + int num4 = chapter.Drop[j, 0]; + bool flag4 = num >= num4; + if (flag4) + { + bool flag5 = !XSingleton.singleton.HasChapterBoxFetched(chapterid, j); + if (flag5) + { + return true; + } + } + } + return false; + } + + public bool HasDifficultAllChapterRedpoint(int difficult) + { + List list = ListPool.Get(); + XSingleton.singleton.GetChapterList(XChapterType.SCENE_BATTLE, list); + for (int i = 0; i < list.Count; i++) + { + XChapter.RowData chapter = XSingleton.singleton.GetChapter(list[i]); + bool flag = chapter.Difficult[1] == difficult; + if (flag) + { + bool flag2 = this.HasChapterRedpoint(list[i]); + bool flag3 = flag2; + if (flag3) + { + ListPool.Release(list); + return true; + } + } + } + ListPool.Release(list); + return false; + } + + public int GetUnFinishedPreSceneID(SceneTable.RowData data) + { + bool flag = data != null && data.PreScene != null; + if (flag) + { + for (int i = 0; i < data.PreScene.Length; i++) + { + bool flag2 = data.PreScene[i] != 0; + if (flag2) + { + int rank = XSingleton.singleton.GetRank(data.PreScene[i]); + bool flag3 = rank <= 0; + if (flag3) + { + return data.PreScene[i]; + } + } + } + } + return 0; + } + + public SceneRefuseReason CanLevelOpen(uint sceneID) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneID); + bool flag = sceneData == null; + SceneRefuseReason result; + if (flag) + { + result = SceneRefuseReason.Admit; + } + else + { + int preTask = (int)sceneData.PreTask; + bool flag2 = preTask != 0; + if (flag2) + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + bool flag3 = !specificDocument.TaskRecord.IsTaskFinished((uint)preTask); + if (flag3) + { + return SceneRefuseReason.PreTask_Notfinish; + } + } + int[] preScene = sceneData.PreScene; + bool flag4 = preScene != null && preScene.Length != 0; + if (flag4) + { + bool flag5 = this.GetUnFinishedPreSceneID(sceneData) > 0; + if (flag5) + { + return SceneRefuseReason.PreScene_Notfinish; + } + } + bool flag6 = (uint)sceneData.RequiredLevel > XSingleton.singleton.XPlayerData.Level; + if (flag6) + { + result = SceneRefuseReason.Level_NotEnough; + } + else + { + bool flag7 = 1 == XSingleton.singleton.GetSceneDifficult((int)sceneID); + if (flag7) + { + uint num = sceneData.DayLimitGroupID; + bool flag8 = num == 0u; + if (flag8) + { + num = sceneID; + } + uint num2 = 0u; + bool flag9 = this.SceneDayEnter.TryGetValue(num, out num2); + if (flag9) + { + bool flag10 = num2 == 0u; + if (flag10) + { + return SceneRefuseReason.ReachLimitTimes; + } + } + } + result = SceneRefuseReason.Admit; + } + } + return result; + } + + public void OnTaskRandomTask(int rtask) + { + XSingleton.singleton.SetTimer(1f, this._showRandomTaskCb, rtask); + } + + public override void PostUpdate(float fDeltaT) + { + base.PostUpdate(fDeltaT); + bool isPlaying = XSingleton.singleton.IsPlaying; + if (!isPlaying) + { + bool flag = this._rtask > 0; + if (flag) + { + DlgBase.singleton.ShowRandomTask(this._rtask); + this._rtask = 0; + } + } + } + + protected void ShowRandomTask(object o) + { + int rtask = (int)o; + this._rtask = rtask; + } + + public RandomTaskTable.RowData GetRandomTaskData(int rtask) + { + return XLevelDocument._randomtask.GetByTaskID(rtask); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = !this.m_bIsResetSceneMesBack; + if (flag) + { + this.ResetScene(this.m_reqSceneId); + } + } + + public BossRushTable.RowData GetBossRushConfig(uint sceneID, uint index) + { + return null; + } + + public uint GetBossRushReward(uint sceneID, int killcount) + { + return 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelDocument.cs.meta new file mode 100644 index 00000000..4634656e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56e110a8c391e294996be6532655c7ad +timeCreated: 1611403746 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelDoodad.cs b/Client/Assets/Scripts/XMainClient/XLevelDoodad.cs new file mode 100644 index 00000000..27b3c491 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelDoodad.cs @@ -0,0 +1,36 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XLevelDoodad + { + public uint index; + + public int wave; + + public Vector3 pos; + + public XDoodadType type; + + public uint id; + + public uint count; + + public uint token; + + public bool dropped; + + public bool picked; + + public float lastPickTime; + + public uint templateid; + + public ulong roleid; + + public GameObject doodad; + + public GameObject billboard; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelDoodad.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelDoodad.cs.meta new file mode 100644 index 00000000..cf927e00 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelDoodad.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d75ae4cf0e00674097e46d2544e247d +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelDoodadMgr.cs b/Client/Assets/Scripts/XMainClient/XLevelDoodadMgr.cs new file mode 100644 index 00000000..b06069f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelDoodadMgr.cs @@ -0,0 +1,1080 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelDoodadMgr : XSingleton + { + private List _doodads = new List(); + + private GameObject _HpbarRoot = null; + + private List _DropedDoodads = new List(); + + private List _TimerToken = new List(); + + private Dictionary _NoticeDictionary = new Dictionary(); + + private XTimerMgr.ElapsedEventHandler _showRollOverNoticeCb = null; + + private XTimerMgr.ElapsedEventHandler _delayGenerateDoodadCb = null; + + private float _DoodadPickCD = 0f; + + public XLevelDoodadMgr() + { + this._showRollOverNoticeCb = new XTimerMgr.ElapsedEventHandler(this.ShowRollOverNotice); + this._delayGenerateDoodadCb = new XTimerMgr.ElapsedEventHandler(this.DelayGenerateDoodad); + } + + public override bool Init() + { + this._HpbarRoot = XSingleton.singleton.HpbarRoot.gameObject; + this._DoodadPickCD = (float)XSingleton.singleton.GetInt("DoodadPickCD") / 100f; + return true; + } + + public override void Uninit() + { + this._doodads.Clear(); + this._DropedDoodads.Clear(); + this._NoticeDictionary.Clear(); + this._HpbarRoot = null; + } + + public void CacheDoodad(List doodads) + { + bool flag = this._doodads.Count > 0; + if (flag) + { + this.OnClearDoodad(); + } + this._doodads.Clear(); + for (int i = 0; i < doodads.Count; i++) + { + DoodadInfo doodadInfo = doodads[i]; + XLevelDoodad xlevelDoodad = new XLevelDoodad(); + xlevelDoodad.index = (uint)i; + xlevelDoodad.wave = doodadInfo.waveid; + xlevelDoodad.type = (XDoodadType)doodadInfo.type; + xlevelDoodad.id = doodadInfo.id; + xlevelDoodad.count = doodadInfo.count; + xlevelDoodad.dropped = false; + xlevelDoodad.picked = false; + xlevelDoodad.lastPickTime = 0f; + this._doodads.Add(xlevelDoodad); + } + } + + public void OnMonsterDie(XEntity entity) + { + XLevelDoodad xlevelDoodad = this.FindWave(entity.Wave); + bool flag = xlevelDoodad == null; + if (!flag) + { + bool dropped = xlevelDoodad.dropped; + if (!dropped) + { + XLevelDynamicInfo waveDynamicInfo = XSingleton.singleton.CurrentSpawner.GetWaveDynamicInfo(entity.Wave); + int num = waveDynamicInfo._TotalCount - waveDynamicInfo._dieCount; + float num2 = 1f / (float)(num + 1); + float num3 = XSingleton.singleton.RandomFloat(0f, 1f); + bool flag2 = num3 <= num2; + if (flag2) + { + xlevelDoodad.dropped = true; + xlevelDoodad.pos = entity.EngineObject.Position; + xlevelDoodad.templateid = entity.Attributes.TypeID; + bool flag3 = entity.IsBoss && xlevelDoodad.id == 1u; + if (flag3) + { + this._doodads.Remove(xlevelDoodad); + } + this.DelayGenerateClientDoodad(xlevelDoodad); + } + } + } + } + + public void ReportServerList(List l) + { + l.Clear(); + for (int i = 0; i < this._doodads.Count; i++) + { + bool picked = this._doodads[i].picked; + if (picked) + { + l.Add((uint)this._doodads[i].wave); + } + } + } + + public void OnLeaveScene() + { + for (int i = 0; i < this._doodads.Count; i++) + { + bool flag = this._doodads[i].dropped && !this._doodads[i].picked; + if (flag) + { + bool flag2 = this._doodads[i].doodad != null; + if (flag2) + { + XResourceLoaderMgr.SafeDestroy(ref this._doodads[i].doodad, true); + } + bool flag3 = this._doodads[i].billboard != null; + if (flag3) + { + XResourceLoaderMgr.SafeDestroy(ref this._doodads[i].billboard, true); + } + } + } + this._doodads.Clear(); + this._NoticeDictionary.Clear(); + } + + public void OnClearDoodad() + { + for (int i = 0; i < this._TimerToken.Count; i++) + { + XSingleton.singleton.KillTimer(this._TimerToken[i]); + } + this._TimerToken.Clear(); + for (int j = 0; j < this._doodads.Count; j++) + { + bool flag = this._doodads[j].dropped && !this._doodads[j].picked; + if (flag) + { + bool flag2 = this._doodads[j].doodad != null; + if (flag2) + { + XResourceLoaderMgr.SafeDestroy(ref this._doodads[j].doodad, true); + } + bool flag3 = this._doodads[j].billboard != null; + if (flag3) + { + XResourceLoaderMgr.SafeDestroy(ref this._doodads[j].billboard, true); + } + } + } + this._doodads.Clear(); + } + + protected XLevelDoodad FindWave(int wave) + { + for (int i = 0; i < this._doodads.Count; i++) + { + bool flag = this._doodads[i].wave == wave; + if (flag) + { + return this._doodads[i]; + } + } + return null; + } + + protected XLevelDoodad FindWaveByIndex(uint index) + { + for (int i = 0; i < this._doodads.Count; i++) + { + bool flag = this._doodads[i].index == index; + if (flag) + { + return this._doodads[i]; + } + } + return null; + } + + private bool GenerateDoodadFx(XLevelDoodad doo, Vector3 pos) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(doo.templateid); + bool flag = byID != null && byID.Type == 1; + if (flag) + { + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID); + Vector3 vector = XSingleton.singleton.GameCamera.UnityCamera.transform.position - pos; + vector.y = 0f; + vector.Normalize(); + float num = float.Parse(XSingleton.singleton.GetValue("DoodadDist")); + bool flag2 = byPresentID != null; + if (flag2) + { + doo.pos += vector * (num + byPresentID.BoundRadius); + pos += vector * (num + byPresentID.BoundRadius); + } + else + { + doo.pos += vector * num; + pos += vector * num; + } + } + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)doo.id); + bool flag3 = itemConf != null; + if (flag3) + { + string doodadFx = itemConf.DoodadFx; + string[] array = doodadFx.Split(XGlobalConfig.ListSeparator); + bool flag4 = array.Length > 1; + if (flag4) + { + int num2 = int.Parse(array[0]); + bool flag5 = num2 == 0; + if (flag5) + { + XFx xfx = XSingleton.singleton.CreateFx(array[2], null, true); + xfx.Play(pos, Quaternion.identity, Vector3.one, 1f); + bool flag6 = doo.id == 1u; + if (flag6) + { + XSingleton.singleton.PlaySoundAt(pos, "Audio/common/Coins"); + } + bool flag7 = !XSingleton.singleton.SyncMode && !XSingleton.singleton.IsCurrentLevelFinished; + if (flag7) + { + bool flag8 = (float)array.Length >= 3f; + uint num3; + if (flag8) + { + num3 = XSingleton.singleton.SetTimer(float.Parse(array[3]), this._delayGenerateDoodadCb, doo); + } + else + { + num3 = XSingleton.singleton.SetTimer(1.5f, this._delayGenerateDoodadCb, doo); + } + doo.token = num3; + this._TimerToken.Add(num3); + } + return true; + } + XSingleton.singleton.PlaySoundAt(pos, "Audio/common/Item_Gem"); + return false; + } + } + return false; + } + + private bool GetDoodadInfo(XLevelDoodad doo, ref string location, ref string name, ref Vector3 offset, ref int quality, ref bool isequip) + { + bool flag = doo == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Doo is null!", null, null, null, null, null); + result = false; + } + else + { + bool flag2 = doo.type == XDoodadType.Item; + if (flag2) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)doo.id); + bool flag3 = fashionConf != null; + if (flag3) + { + string text = ""; + string equipPrefabModel = XEquipDocument.GetEquipPrefabModel(fashionConf, XSingleton.singleton.Player.BasicTypeID, out text); + bool flag4 = equipPrefabModel != ""; + if (flag4) + { + location = "Equipments/" + equipPrefabModel; + offset = this.GetDoodadOffset(XSingleton.singleton.Player.BasicTypeID, (FashionPosition)fashionConf.EquipPos); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)doo.id); + bool flag5 = itemConf == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("ItemID not exist:" + doo.id, null, null, null, null, null); + return false; + } + name = XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u); + quality = (int)itemConf.ItemQuality; + } + } + else + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf((int)doo.id); + bool flag6 = equipConf != null; + if (flag6) + { + bool flag7 = equipConf.EquipPos == 0; + string text2; + if (flag7) + { + text2 = XSingleton.singleton.GetValue("DoodadPrefabHead"); + } + else + { + bool flag8 = equipConf.EquipPos == 7; + if (flag8) + { + text2 = XSingleton.singleton.GetValue("DoodadPrefabNecklace"); + } + else + { + bool flag9 = equipConf.EquipPos == 8; + if (flag9) + { + text2 = XSingleton.singleton.GetValue("DoodadPrefabEarring"); + } + else + { + bool flag10 = equipConf.EquipPos == 9; + if (flag10) + { + text2 = XSingleton.singleton.GetValue("DoodadPrefabRing"); + } + else + { + string text3 = ""; + text2 = XEquipDocument.GetDefaultEquipModel(XSingleton.singleton.Player.BasicTypeID, (FashionPosition)equipConf.EquipPos, out text3); + } + } + } + } + bool flag11 = text2 != ""; + if (flag11) + { + location = "Equipments/" + text2; + offset = this.GetDoodadOffsetEquip(XSingleton.singleton.Player.BasicTypeID, (EquipPosition)equipConf.EquipPos); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf((int)doo.id); + bool flag12 = itemConf2 == null; + if (flag12) + { + XSingleton.singleton.AddErrorLog("ItemID not exist:" + doo.id, null, null, null, null, null); + return false; + } + name = XSingleton.singleton.ChooseProfString(itemConf2.ItemName, 0u); + quality = (int)itemConf2.ItemQuality; + isequip = true; + } + } + else + { + ItemList.RowData itemConf3 = XBagDocument.GetItemConf((int)doo.id); + bool flag13 = itemConf3 == null; + if (flag13) + { + XSingleton.singleton.AddErrorLog("ItemID not exist:" + doo.id, null, null, null, null, null); + return false; + } + string[] array = itemConf3.DoodadFx.Split(XGlobalConfig.ListSeparator); + bool flag14 = array.Length < 3; + if (flag14) + { + location = ((array.Length > 1) ? array[1] : array[0]); + name = XSingleton.singleton.ChooseProfString(itemConf3.ItemName, 0u); + quality = (int)itemConf3.ItemQuality; + } + } + } + } + else + { + bool flag15 = doo.type == XDoodadType.Buff || doo.type == XDoodadType.BuffHorse || doo.type == XDoodadType.BuffSkill || doo.type == XDoodadType.BigMeleeItem; + if (flag15) + { + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)doo.id, 1); + bool flag16 = buffData == null; + if (flag16) + { + XSingleton.singleton.AddErrorLog("BuffID not exist:" + doo.id, null, null, null, null, null); + return false; + } + location = buffData.BuffDoodadFx; + name = buffData.BuffName; + quality = -1; + } + } + result = true; + } + return result; + } + + private GameObject GenerateDoodadGO(XLevelDoodad doo, Vector3 pos, string location, bool isequip, int quality, Vector3 offset) + { + bool flag = doo == null; + GameObject result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Doo is null!", null, null, null, null, null); + result = null; + } + else + { + GameObject gameObject = null; + bool flag2 = doo.type == XDoodadType.Buff || doo.type == XDoodadType.BuffHorse || doo.type == XDoodadType.BuffSkill || doo.type == XDoodadType.BigMeleeItem; + if (flag2) + { + gameObject = (XSingleton.singleton.CreateFromPrefab(location, true, false) as GameObject); + } + else + { + GameObject gameObject2 = XSingleton.singleton.CreateFromPrefab(location, true, false) as GameObject; + bool flag3 = gameObject2 == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Equip == null", null, null, null, null, null); + return null; + } + if (isequip) + { + string str; + switch (quality) + { + case 3: + str = "Szcs_glow"; + break; + case 4: + str = "Szbz_glow"; + break; + case 5: + str = "Szbh_glow"; + break; + default: + str = "Szty_glow"; + break; + } + gameObject = (XSingleton.singleton.CreateFromPrefab("Prefabs/Effects/Default/" + str, true, false) as GameObject); + bool flag4 = gameObject == null; + if (flag4) + { + return null; + } + Transform transform = XSingleton.singleton.FindChildRecursively(gameObject.transform, "zhuangbei"); + bool flag5 = gameObject2.transform == null || transform == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("Equip or t = null", null, null, null, null, null); + return null; + } + XSingleton.singleton.AddChild(transform, gameObject2.transform); + gameObject2.transform.localRotation = Quaternion.Euler(-90f, 0f, 0f); + gameObject2.transform.localPosition += offset; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)doo.id); + bool flag6 = itemConf == null; + if (flag6) + { + XSingleton.singleton.AddErrorLog("Doo.Id not exists : " + (int)doo.id, null, null, null, null, null); + return null; + } + string[] array = itemConf.DoodadFx.Split(XGlobalConfig.ListSeparator); + bool flag7 = array.Length > 1; + if (flag7) + { + int num = int.Parse(array[0]); + bool flag8 = num == 0; + if (flag8) + { + gameObject = gameObject2; + gameObject2.transform.localPosition = pos; + } + else + { + bool flag9 = num == 1; + if (flag9) + { + gameObject = (XSingleton.singleton.CreateFromPrefab(array[2], true, false) as GameObject); + bool flag10 = gameObject == null; + if (flag10) + { + return null; + } + Transform transform2 = XSingleton.singleton.FindChildRecursively(gameObject.transform, "Point_drop01"); + gameObject2.transform.localRotation = Quaternion.Euler(-90f, 0f, 0f); + bool flag11 = gameObject2.transform == null || transform2 == null; + if (flag11) + { + XSingleton.singleton.AddErrorLog("Equip or t = null", null, null, null, null, null); + return null; + } + XSingleton.singleton.AddChild(transform2, gameObject2.transform); + } + } + } + else + { + gameObject = gameObject2; + gameObject2.transform.localPosition = pos; + } + } + } + bool flag12 = gameObject == null; + if (flag12) + { + XSingleton.singleton.AddErrorLog("Go = null!", null, null, null, null, null); + result = null; + } + else + { + float num2 = XSingleton.singleton.TerrainY(pos); + gameObject.transform.position = new Vector3(pos.x, num2 + 0.5f, pos.z); + result = gameObject; + } + } + return result; + } + + private bool AttachDoodadBillboard(XLevelDoodad doo, string name, int quality) + { + bool flag = doo == null; + bool result; + if (flag) + { + result = false; + } + else + { + GameObject gameObject = XSingleton.singleton.CreateFromPrefab("UI/Billboard/DoodadBillboard", true, false) as GameObject; + bool flag2 = gameObject == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Billboard create failed", null, null, null, null, null); + result = false; + } + else + { + XSingleton.singleton.AddChild(this._HpbarRoot, gameObject); + gameObject.transform.localScale = new Vector3(0.005f, 0.005f, 0.005f); + doo.billboard = gameObject; + IXUILabel ixuilabel = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = gameObject.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + bool flag3 = ixuilabel != null; + if (flag3) + { + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType != SceneType.SCENE_HORSE_RACE && sceneType != SceneType.SCENE_WEEKEND4V4_HORSERACING) + { + bool flag4 = doo.count > 1u; + if (flag4) + { + ixuilabelSymbol.InputText = name + doo.count.ToString(); + } + else + { + ixuilabelSymbol.InputText = name; + } + ixuilabel.SetColor(XSingleton.singleton.GetItemQualityColor(quality)); + } + else + { + ixuilabel.SetText(XStringDefineProxy.GetString("RACE_DOODAD_NAME")); + } + } + bool flag5 = XSingleton.singleton.SceneType == SceneType.SCENE_BATTLEFIELD_FIGHT; + if (flag5) + { + ulong roleid = doo.roleid; + string text = XBattleFieldBattleDocument.Doc.userIdToRole[roleid]; + bool flag6 = text != null; + if (flag6) + { + ixuilabelSymbol.InputText = text + "\n" + ixuilabel.GetText(); + } + } + result = true; + } + } + return result; + } + + private GameObject GenerateDoodadObject(XLevelDoodad doo, Vector3 pos) + { + string text = ""; + string name = ""; + Vector3 zero = Vector3.zero; + int quality = 0; + bool isequip = false; + bool flag = !this.GetDoodadInfo(doo, ref text, ref name, ref zero, ref quality, ref isequip); + GameObject result; + if (flag) + { + XSingleton.singleton.AddErrorLog("doodad info get error", null, null, null, null, null); + result = null; + } + else + { + bool flag2 = text == ""; + if (flag2) + { + result = null; + } + else + { + GameObject gameObject = this.GenerateDoodadGO(doo, pos, text, isequip, quality, zero); + bool flag3 = gameObject == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Doodad gameobject create failed", null, null, null, null, null); + result = null; + } + else + { + doo.doodad = gameObject; + doo.pos = pos; + bool flag4 = !this.AttachDoodadBillboard(doo, name, quality); + if (flag4) + { + XSingleton.singleton.AddErrorLog("Doodad billboard create failed", null, null, null, null, null); + result = null; + } + else + { + XDoodadCreateArgs @event = XEventPool.GetEvent(); + @event.doo = doo; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + result = gameObject; + } + } + } + } + return result; + } + + private void DelayGenerateClientDoodad(object obj) + { + XLevelDoodad xlevelDoodad = (XLevelDoodad)obj; + this.GenerateDoodad(xlevelDoodad, xlevelDoodad.pos); + } + + protected GameObject GenerateDoodad(XLevelDoodad doo, Vector3 pos) + { + bool flag = this.GenerateDoodadFx(doo, pos); + bool flag2 = flag; + GameObject result; + if (flag2) + { + result = doo.doodad; + } + else + { + result = this.GenerateDoodadObject(doo, pos); + } + return result; + } + + protected Vector3 GetDoodadOffset(uint typeid, FashionPosition pos) + { + string value; + switch (pos) + { + case FashionPosition.FASHION_START: + value = XSingleton.singleton.GetValue("DoodadOffsetHead"); + break; + case FashionPosition.FashionUpperBody: + value = XSingleton.singleton.GetValue("DoodadOffsetUpperBody"); + break; + case FashionPosition.FashionLowerBody: + value = XSingleton.singleton.GetValue("DoodadOffsetLowerBody"); + break; + case FashionPosition.FashionGloves: + value = XSingleton.singleton.GetValue("DoodadOffsetGloves"); + break; + case FashionPosition.FashionBoots: + value = XSingleton.singleton.GetValue("DoodadOffsetBoots"); + break; + case FashionPosition.FashionMainWeapon: + value = XSingleton.singleton.GetValue("DoodadOffsetMainWeapon"); + break; + case FashionPosition.FashionSecondaryWeapon: + value = XSingleton.singleton.GetValue("DoodadOffsetSecWeapon"); + break; + case FashionPosition.FashionWings: + value = XSingleton.singleton.GetValue("DoodadOffsetWing"); + break; + case FashionPosition.FashionTail: + value = XSingleton.singleton.GetValue("DoodadOffsetTail"); + break; + case FashionPosition.FashionDecal: + value = XSingleton.singleton.GetValue("DoodadOffsetDecal"); + break; + default: + value = XSingleton.singleton.GetValue("DoodadOffsetNormal"); + break; + } + string[] array = value.Split(XGlobalConfig.AllSeparators); + float num = float.Parse(array[(int)((typeid - 1u) * 2u)]); + float num2 = float.Parse(array[(int)((typeid - 1u) * 2u + 1u)]); + return new Vector3(num, num2, 0f); + } + + protected Vector3 GetDoodadOffsetEquip(uint typeid, EquipPosition pos) + { + string value; + switch (pos) + { + case EquipPosition.EQUIP_START: + value = XSingleton.singleton.GetValue("DoodadOffsetHead"); + break; + case EquipPosition.Upperbody: + value = XSingleton.singleton.GetValue("DoodadOffsetUpperBody"); + break; + case EquipPosition.Lowerbody: + value = XSingleton.singleton.GetValue("DoodadOffsetLowerBody"); + break; + case EquipPosition.Gloves: + value = XSingleton.singleton.GetValue("DoodadOffsetGloves"); + break; + case EquipPosition.Boots: + value = XSingleton.singleton.GetValue("DoodadOffsetBoots"); + break; + case EquipPosition.Mainweapon: + value = XSingleton.singleton.GetValue("DoodadOffsetMainWeapon"); + break; + case EquipPosition.Secondaryweapon: + value = XSingleton.singleton.GetValue("DoodadOffsetSecWeapon"); + break; + case EquipPosition.Necklace: + value = XSingleton.singleton.GetValue("DoodadOffsetNormal"); + break; + case EquipPosition.Earrings: + value = XSingleton.singleton.GetValue("DoodadOffsetNormal"); + break; + case EquipPosition.Rings: + value = XSingleton.singleton.GetValue("DoodadOffsetNormal"); + break; + default: + value = XSingleton.singleton.GetValue("DoodadOffsetNormal"); + break; + } + string[] array = value.Split(XGlobalConfig.AllSeparators); + float num = float.Parse(array[(int)((typeid - 1u) * 2u)]); + float num2 = float.Parse(array[(int)((typeid - 1u) * 2u + 1u)]); + return new Vector3(num, num2, 0f); + } + + public void OnDoodadPicked(int wave, uint index) + { + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + this.OnDoodadPickedSolo(wave, index); + } + else + { + this.OnDoodadPickedSync(wave, index); + } + } + + protected void OnDoodadPickedSolo(int wave, uint index) + { + XLevelDoodad xlevelDoodad = this.FindWaveByIndex(index); + bool flag = xlevelDoodad == null; + if (flag) + { + XSingleton.singleton.AddLog("Pick up some doodad not exists??", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + bool flag2 = xlevelDoodad.type == XDoodadType.Buff; + if (flag2) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc.BuffID = (int)xlevelDoodad.id; + @event.xBuffDesc.BuffLevel = (int)xlevelDoodad.count; + @event.Firer = XSingleton.singleton.Player; + @event.xBuffDesc.CasterID = XSingleton.singleton.Player.ID; + XSingleton.singleton.FireEvent(@event); + } + bool flag3 = xlevelDoodad.type == XDoodadType.Item; + if (flag3) + { + XHUDDoodadArgs event2 = XEventPool.GetEvent(); + event2.itemid = (int)xlevelDoodad.id; + event2.count = (int)xlevelDoodad.count; + event2.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(event2); + } + this._OnDoodadPickedSucc(xlevelDoodad, XSingleton.singleton.Player); + } + } + + protected void _OnDoodadPickedSucc(XLevelDoodad doo, XEntity p) + { + bool flag = doo.doodad == null; + if (!flag) + { + XDoodadDeleteArgs @event = XEventPool.GetEvent(); + @event.doo = doo; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + doo.picked = true; + bool flag2 = doo.type == XDoodadType.Item; + if (flag2) + { + Transform transform = XSingleton.singleton.FindChildRecursively(doo.doodad.transform, "zhuangbei"); + bool flag3 = transform != null && transform.childCount > 0; + if (flag3) + { + GameObject gameObject = transform.GetChild(0).gameObject; + XSingleton.singleton.UnSafeDestroy(gameObject, true, false); + } + } + XResourceLoaderMgr.SafeDestroy(ref doo.doodad, true); + XResourceLoaderMgr.SafeDestroy(ref doo.billboard, true); + bool flag4 = p != null; + if (flag4) + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/Roles/Lzg_Ty/Ty_buff_xishou", p.EngineObject, Vector3.zero, Vector3.one, 1f, true, 5f, true); + } + } + } + + protected void OnDoodadPickedSync(int wave, uint index) + { + XLevelDoodad xlevelDoodad = this.FindWaveByIndex(index); + bool flag = xlevelDoodad == null; + if (!flag) + { + bool flag2 = Time.time - xlevelDoodad.lastPickTime < this._DoodadPickCD; + if (!flag2) + { + xlevelDoodad.lastPickTime = Time.time; + RpcC2G_FetchEnemyDoodadReq rpcC2G_FetchEnemyDoodadReq = new RpcC2G_FetchEnemyDoodadReq(); + rpcC2G_FetchEnemyDoodadReq.oArg.waveid = xlevelDoodad.wave; + rpcC2G_FetchEnemyDoodadReq.oArg.pos = new Vec3(); + rpcC2G_FetchEnemyDoodadReq.oArg.pos.x = xlevelDoodad.pos.x; + rpcC2G_FetchEnemyDoodadReq.oArg.pos.y = xlevelDoodad.pos.y; + rpcC2G_FetchEnemyDoodadReq.oArg.pos.z = xlevelDoodad.pos.z; + rpcC2G_FetchEnemyDoodadReq.oArg.id = xlevelDoodad.id; + rpcC2G_FetchEnemyDoodadReq.oArg.type = (int)xlevelDoodad.type; + rpcC2G_FetchEnemyDoodadReq.oArg.count = xlevelDoodad.count; + rpcC2G_FetchEnemyDoodadReq.oArg.index = xlevelDoodad.index; + XSingleton.singleton.Send(rpcC2G_FetchEnemyDoodadReq); + } + } + } + + public void OnDoodadPickedSyncSucc(uint index, int wave, Vector3 posid, XEntity p, uint maxroll, uint playerroll) + { + XLevelDoodad xlevelDoodad = this.FindWaveByIndex(index); + bool flag = xlevelDoodad == null; + if (!flag) + { + this._OnDoodadPickedSucc(xlevelDoodad, p); + bool flag2 = xlevelDoodad.type == XDoodadType.Item; + if (flag2) + { + this.ShowGetItemNotice(xlevelDoodad, p); + } + } + } + + private void ShowGetItemNotice(XLevelDoodad doo, XEntity p) + { + bool flag = doo.type == XDoodadType.Item; + if (flag) + { + XHUDDoodadArgs @event = XEventPool.GetEvent(); + @event.itemid = (int)doo.id; + @event.count = (int)doo.count; + @event.Firer = p; + XSingleton.singleton.FireEvent(@event); + } + } + + protected void ShowStartRollNotice(XLevelDoodad doo, XEntity p, uint maxroll, uint playerroll) + { + string @string = XStringDefineProxy.GetString("DOODAD_DEPENDING"); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)doo.id); + string itemQualityRGB = XSingleton.singleton.GetItemQualityRGB((int)itemConf.ItemQuality); + string arg = string.Format("[{0}]{1}[-]", itemQualityRGB, XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)); + string text = string.Format(@string, arg); + uint num = XSingleton.singleton.ShowSystemNoticeTip(text); + XSingleton.singleton.SetTimer(1f, this._showRollOverNoticeCb, num); + XSyncDoodadInfo xsyncDoodadInfo = new XSyncDoodadInfo(); + xsyncDoodadInfo.doo = doo; + xsyncDoodadInfo.owner = p; + xsyncDoodadInfo.maxroll = maxroll; + xsyncDoodadInfo.playerroll = playerroll; + this._NoticeDictionary.Add(num, xsyncDoodadInfo); + } + + protected void ShowRollOverNotice(object o) + { + uint num = (uint)o; + XSyncDoodadInfo xsyncDoodadInfo = this._NoticeDictionary[num]; + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)xsyncDoodadInfo.doo.id); + string itemQualityRGB = XSingleton.singleton.GetItemQualityRGB((int)itemConf.ItemQuality); + string text = string.Format("[{0}]{1}[-]", itemQualityRGB, XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)); + bool flag = xsyncDoodadInfo.maxroll == xsyncDoodadInfo.playerroll; + if (flag) + { + string @string = XStringDefineProxy.GetString("DOODAD_RESULT_PLAYER"); + string text2 = string.Format(@string, text, xsyncDoodadInfo.maxroll); + XSingleton.singleton.EditSystemNoticeTip(text2, num); + } + else + { + string string2 = XStringDefineProxy.GetString("DOODAD_RESULT"); + string text3 = string.Format(string2, new object[] + { + text, + xsyncDoodadInfo.owner.Name, + xsyncDoodadInfo.maxroll, + xsyncDoodadInfo.playerroll + }); + XSingleton.singleton.EditSystemNoticeTip(text3, num); + } + bool flag2 = xsyncDoodadInfo.doo.type == XDoodadType.Item; + if (flag2) + { + XHUDDoodadArgs @event = XEventPool.GetEvent(); + @event.itemid = (int)xsyncDoodadInfo.doo.id; + @event.count = (int)xsyncDoodadInfo.doo.count; + @event.Firer = xsyncDoodadInfo.owner; + XSingleton.singleton.FireEvent(@event); + } + } + + public void Update() + { + XPlayer player = XSingleton.singleton.Player; + bool flag = !XEntity.ValideEntity(player); + if (!flag) + { + for (int i = 0; i < this._doodads.Count; i++) + { + bool flag2 = this._doodads[i].doodad != null; + if (flag2) + { + bool flag3 = this._doodads[i].billboard != null; + if (flag3) + { + Vector3 position; + position= new Vector3(this._doodads[i].doodad.transform.position.x, this._doodads[i].doodad.transform.position.y + 0.2f, this._doodads[i].doodad.transform.position.z); + this._doodads[i].billboard.transform.position = position; + this._doodads[i].billboard.transform.rotation = XSingleton.singleton.GameCamera.Rotaton; + } + bool flag4 = player != null && this._doodads[i].dropped && !this._doodads[i].picked; + if (flag4) + { + float num = Vector3.Magnitude(player.EngineObject.Position - this._doodads[i].doodad.transform.position); + bool flag5 = num < 1f; + if (flag5) + { + this.OnDoodadPicked(this._doodads[i].wave, this._doodads[i].index); + } + } + } + } + } + } + + public void ReceiveDoodadServerInfo(EnemyDoodadInfo info) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(info.dropperTemplateID); + bool flag = byID != null; + if (flag) + { + bool flag2 = byID.Type == 1; + if (flag2) + { + XSingleton.singleton.SetTimer(0.05f, new XTimerMgr.ElapsedEventHandler(this.GenerateDoodadFromServer), info); + } + else + { + this.GenerateDoodadFromServer(info); + } + } + else + { + this.GenerateDoodadFromServer(info); + } + } + + public void GenerateDoodadFromServer(object obj) + { + EnemyDoodadInfo enemyDoodadInfo = (EnemyDoodadInfo)obj; + XLevelDoodad xlevelDoodad = new XLevelDoodad(); + xlevelDoodad.wave = enemyDoodadInfo.waveid; + Vector3 pos; + pos= new Vector3(enemyDoodadInfo.pos.x, enemyDoodadInfo.pos.y, enemyDoodadInfo.pos.z); + xlevelDoodad.pos = pos; + xlevelDoodad.type = (XDoodadType)enemyDoodadInfo.type; + xlevelDoodad.id = enemyDoodadInfo.id; + xlevelDoodad.count = enemyDoodadInfo.count; + xlevelDoodad.dropped = true; + xlevelDoodad.picked = false; + xlevelDoodad.lastPickTime = 0f; + xlevelDoodad.index = enemyDoodadInfo.index; + xlevelDoodad.token = 0u; + xlevelDoodad.templateid = enemyDoodadInfo.dropperTemplateID; + xlevelDoodad.roleid = enemyDoodadInfo.roleid; + this._doodads.Add(xlevelDoodad); + this.GenerateDoodad(xlevelDoodad, pos); + } + + public void ExternalGenerateDoodad(int doodadid, int type, int waveid, Vector3 pos, uint templateid, uint index, uint count) + { + XLevelDoodad xlevelDoodad = new XLevelDoodad(); + xlevelDoodad.wave = waveid; + xlevelDoodad.pos = pos; + xlevelDoodad.type = (XDoodadType)type; + xlevelDoodad.id = (uint)doodadid; + xlevelDoodad.count = count; + xlevelDoodad.dropped = true; + xlevelDoodad.picked = false; + xlevelDoodad.lastPickTime = 0f; + xlevelDoodad.index = index; + xlevelDoodad.token = 0u; + xlevelDoodad.templateid = templateid; + this._doodads.Add(xlevelDoodad); + this.GenerateDoodad(xlevelDoodad, pos); + } + + public void DelayGenerateDoodad(object obj) + { + bool isCurrentLevelFinished = XSingleton.singleton.IsCurrentLevelFinished; + if (!isCurrentLevelFinished) + { + XLevelDoodad xlevelDoodad = (XLevelDoodad)obj; + bool flag = xlevelDoodad.token > 0u; + if (flag) + { + this._TimerToken.Contains(xlevelDoodad.token); + this._TimerToken.Remove(xlevelDoodad.token); + } + this.GenerateDoodadObject(xlevelDoodad, xlevelDoodad.pos); + } + } + + public List GetDoodadsInScene(XDoodadType type) + { + this._DropedDoodads.Clear(); + for (int i = 0; i < this._doodads.Count; i++) + { + bool flag = this._doodads[i].type == type && this._doodads[i].dropped && !this._doodads[i].picked; + if (flag) + { + this._DropedDoodads.Add(this._doodads[i].doodad); + } + } + return this._DropedDoodads; + } + + public void PickAllDoodad() + { + for (int i = 0; i < this._doodads.Count; i++) + { + bool flag = this._doodads[i].dropped && !this._doodads[i].picked; + if (flag) + { + this.OnDoodadPicked(this._doodads[i].wave, this._doodads[i].index); + } + } + } + + public void OnReconnect() + { + this.OnClearDoodad(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelDoodadMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelDoodadMgr.cs.meta new file mode 100644 index 00000000..b8d5908f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelDoodadMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eb12d67a865e39547b1b7fa6c574f99d +timeCreated: 1611404782 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelDynamicInfo.cs b/Client/Assets/Scripts/XMainClient/XLevelDynamicInfo.cs new file mode 100644 index 00000000..90b4242a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelDynamicInfo.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XLevelDynamicInfo + { + public int _id; + + public bool _pushIntoTask = false; + + public float _generatetime = 0f; + + public float _prewaveFinishTime = 0f; + + public float _exStringFinishTime = 0f; + + public int _TotalCount = 0; + + public int _generateCount = 0; + + public int _dieCount = 0; + + public List _enemyIds = new List(); + + public void Reset() + { + this._pushIntoTask = false; + this._generatetime = 0f; + this._generateCount = 0; + this._prewaveFinishTime = 0f; + this._exStringFinishTime = 0f; + this._dieCount = 0; + this._enemyIds.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelDynamicInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelDynamicInfo.cs.meta new file mode 100644 index 00000000..6141bb09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelDynamicInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8da3dd6858cb35146b303f8a408dd4e5 +timeCreated: 1611404105 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelFinishMgr.cs b/Client/Assets/Scripts/XMainClient/XLevelFinishMgr.cs new file mode 100644 index 00000000..f3d8195b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelFinishMgr.cs @@ -0,0 +1,616 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelFinishMgr : XSingleton + { + public bool NeedUpdate { get; set; } + + public uint LastFinishScene { get; set; } + + public string LevelRewardToken { get; set; } + + public bool HaveBattleResultData { get; set; } + + public bool IsCurrentLevelFinished { get; set; } + + public bool IsCurrentLevelWin { get; set; } + + public bool NeedCheckLevelfinishScript { get; set; } + + public bool WaitingLevelContinueSelect { get; set; } + + public bool IsFastLevelFinish { get; set; } + + public bool IsReturnClicked { get; set; } + + public int KeyNpcID { get; set; } + + private uint _current_scene_id; + + private List _WinCondition = new List(); + + private List _LoseCondition = new List(); + + public override bool Init() + { + return true; + } + + public override void Uninit() + { + } + + public void OnSceneLoaded(uint sceneID) + { + this._current_scene_id = sceneID; + this.NeedUpdate = false; + this.HaveBattleResultData = false; + this.IsCurrentLevelFinished = false; + this.IsCurrentLevelWin = false; + this.NeedCheckLevelfinishScript = false; + this.WaitingLevelContinueSelect = false; + this.IsFastLevelFinish = (sceneID == 100u || sceneID == 25u); + this.IsReturnClicked = false; + this.KeyNpcID = 0; + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.RequestServer = false; + this._WinCondition.Clear(); + this._LoseCondition.Clear(); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneID); + bool flag = sceneData != null; + if (flag) + { + for (int i = 0; i < sceneData.WinCondition.Count; i++) + { + XLevelWin item = default(XLevelWin); + item.cond = (XLevelWinCondition)sceneData.WinCondition[i, 0]; + item.param = sceneData.WinCondition[i, 1]; + this._WinCondition.Add(item); + } + for (int j = 0; j < sceneData.LoseCondition.Count; j++) + { + XLevelLose xlevelLose = default(XLevelLose); + xlevelLose.cond = (XLevelLoseCondtion)sceneData.LoseCondition[j, 0]; + xlevelLose.param = sceneData.LoseCondition[j, 1]; + this._LoseCondition.Add(xlevelLose); + bool flag2 = xlevelLose.cond == XLevelLoseCondtion.LevelLose_NpcDie; + if (flag2) + { + this.KeyNpcID = sceneData.LoseCondition[j, 1]; + } + } + } + } + + public void OnLeaveScene() + { + this.NeedUpdate = false; + this.NeedCheckLevelfinishScript = false; + this.IsFastLevelFinish = false; + } + + public void CanLevelFinished(XLevelState ls) + { + bool isCurrentLevelFinished = this.IsCurrentLevelFinished; + if (!isCurrentLevelFinished) + { + bool needCheckLevelfinishScript = this.NeedCheckLevelfinishScript; + if (!needCheckLevelfinishScript) + { + bool waitingLevelContinueSelect = this.WaitingLevelContinueSelect; + if (!waitingLevelContinueSelect) + { + bool flag = false; + bool flag2 = false; + bool bKillOpponent = true; + bool flag3 = false; + for (int i = 0; i < this._WinCondition.Count; i++) + { + switch (this._WinCondition[i].cond) + { + case XLevelWinCondition.LevelWin_Boss: + { + bool flag4 = ls._boss_total > 0 && ls._boss_total == ls._boss_kill; + if (flag4) + { + flag = true; + flag2 = XSingleton.singleton.ExecuteWaveExtraScript(ls._BossWave); + } + break; + } + case XLevelWinCondition.LevelWin_Killall: + { + bool flag5 = ls._total_monster > 0 && ls._total_monster == ls._total_kill; + if (flag5) + { + flag = true; + bool flag6 = ls._BossWave > 0; + if (flag6) + { + flag2 = XSingleton.singleton.ExecuteWaveExtraScript(ls._BossWave); + } + } + break; + } + case XLevelWinCondition.LevelWin_Kill_N: + { + bool flag7 = ls._total_kill >= this._WinCondition[i].param; + if (flag7) + { + flag = true; + } + break; + } + case XLevelWinCondition.LevelWin_Time: + { + float time = Time.time; + bool flag8 = time - ls._start_time > (float)this._WinCondition[i].param; + if (flag8) + { + flag = true; + } + break; + } + case XLevelWinCondition.LevelWin_PVP: + { + bool flag9 = ls._total_kill == this._WinCondition[i].param; + if (flag9) + { + flag = true; + } + break; + } + case XLevelWinCondition.LevelWin_BossRush: + { + float time2 = Time.time; + uint num = uint.Parse(XSingleton.singleton.GetValue("BossRushTime")); + bool flag10 = this.IsReturnClicked || ls._refuseRevive || time2 - ls._start_time > num || (ls._boss_kill > 0 && DlgBase.singleton.isWin); + if (flag10) + { + XBossBushDocument specificDocument = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + bool flag11 = ls._boss_kill > 0 || specificDocument.respData.currank > 1; + if (flag11) + { + flag = true; + bKillOpponent = false; + } + else + { + flag3 = true; + bKillOpponent = false; + } + bool flag12 = XSingleton.singleton.Boss != null; + if (flag12) + { + XSingleton.singleton.Puppets(XSingleton.singleton.Boss, true, false); + } + } + break; + } + } + bool flag13 = flag || flag3; + if (flag13) + { + break; + } + } + bool flag14 = flag; + if (flag14) + { + this.StopPlayerAllysAI(); + bool flag15 = !flag2; + if (flag15) + { + this.OnLevelFinish(ls._lastDieEntityPos + new Vector3(0f, ls._lastDieEntityHeight, 0f) / 2f, ls._lastDieEntityPos, 500u, 0u, bKillOpponent); + this.IsCurrentLevelFinished = true; + this.IsCurrentLevelWin = true; + return; + } + this.KillAllOpponent(); + this.NeedCheckLevelfinishScript = true; + } + bool flag16 = flag3; + if (flag16) + { + this.OnLevelFailed(); + this.IsCurrentLevelFinished = true; + this.IsCurrentLevelWin = false; + } + else + { + for (int j = 0; j < this._LoseCondition.Count; j++) + { + switch (this._LoseCondition[j].cond) + { + case XLevelLoseCondtion.LevelLose_PlayerDie: + { + bool flag17 = ls._my_team_alive == 0u && ls._refuseRevive; + if (flag17) + { + flag3 = true; + } + break; + } + case XLevelLoseCondtion.LevelTime_Out: + { + float time3 = Time.time; + bool flag18 = time3 - ls._start_time > (float)this._LoseCondition[j].param; + if (flag18) + { + flag3 = true; + } + break; + } + case XLevelLoseCondtion.LevelLose_NpcDie: + { + bool key_npc_die = ls._key_npc_die; + if (key_npc_die) + { + flag3 = true; + } + break; + } + } + bool flag19 = flag3; + if (flag19) + { + break; + } + } + bool flag20 = flag3; + if (flag20) + { + this.OnLevelFailed(); + this.IsCurrentLevelFinished = true; + this.IsCurrentLevelWin = false; + } + } + } + } + } + } + + public void ForceLevelFinish(bool win) + { + this.IsCurrentLevelFinished = true; + if (win) + { + XLevelState ls = XSingleton.singleton.ls; + this.IsCurrentLevelWin = true; + this.OnLevelFinish(ls._lastDieEntityPos + new Vector3(0f, ls._lastDieEntityHeight, 0f) / 2f, ls._lastDieEntityPos, 500u, 0u, true); + } + else + { + this.OnLevelFailed(); + } + } + + public void OnLevelFailed() + { + XSingleton.singleton.SetLastFailSceneID(this._current_scene_id); + this.LastFinishScene = 0u; + this.IsCurrentLevelWin = false; + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + DlgBase.singleton.SetVisiblePure(false); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisiblePure(false); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetVisiblePure(false); + } + XSingleton.singleton.MakeEffectEnable(XPostEffect.BlackWhite, true); + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.ShowStageFailUI(null); + XFPStrengthenDocument specificDocument2 = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + specificDocument2.TryShowBrief(); + XSingleton.singleton.bStopBlockRedPoint = true; + } + + public void OnLevelFinish(Vector3 dropInitPos, Vector3 dropGounrdPos, uint money, uint itemCount, bool bKillOpponent) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisiblePure(false); + } + if (bKillOpponent) + { + this.KillAllOpponent(); + } + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._current_scene_id); + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < ally.Count; i++) + { + XAIEnableAI @event = XEventPool.GetEvent(); + @event.Firer = ally[i]; + @event.Enable = false; + XSingleton.singleton.FireEvent(@event); + } + bool flag2 = string.IsNullOrEmpty(sceneData.EndCutScene); + if (flag2) + { + XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.SendBattleReport), null); + } + else + { + XSingleton.singleton.SetTimer(sceneData.EndCutSceneTime, new XTimerMgr.ElapsedEventHandler(this.PlayCutScene), sceneData.EndCutScene); + } + } + + private void PlayCutScene(object o) + { + string str = (string)o; + this.NeedUpdate = true; + XSingleton.singleton.Start("CutScene/" + str, true, true); + } + + public void KillAllOpponent() + { + XSingleton.singleton.OnBeforeKillMonster(); + List opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int i = 0; i < opponent.Count; i++) + { + bool flag = !XEntity.ValideEntity(opponent[i]) || opponent[i].IsPuppet; + if (!flag) + { + XSingleton.singleton.ls._after_force_kill++; + opponent[i].Attributes.ForceDeath(); + } + } + } + + public void StopPlayerAllysAI() + { + XAIStopEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < ally.Count; i++) + { + XAIStopEventArgs event2 = XEventPool.GetEvent(); + event2.Firer = ally[i]; + XSingleton.singleton.FireEvent(event2); + } + } + + protected void ForceReturnHall(object o) + { + XSingleton.singleton.ReqLeaveScene(); + } + + public void Update(float deltaT) + { + bool needCheckLevelfinishScript = this.NeedCheckLevelfinishScript; + if (needCheckLevelfinishScript) + { + bool flag = !XSingleton.singleton.BossExtarScriptExecuting; + if (flag) + { + this.NeedCheckLevelfinishScript = false; + this.ForceLevelFinish(true); + } + } + bool flag2 = !this.NeedUpdate; + if (!flag2) + { + bool isPlaying = XSingleton.singleton.IsPlaying; + if (!isPlaying) + { + this.NeedUpdate = false; + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + this.ShowLevelFinishUI(); + } + else + { + this.SendBattleReport(null); + } + } + } + } + + public void SendBattleReport(object o) + { + this.LastFinishScene = this._current_scene_id; + XLevelState ls = XSingleton.singleton.ls; + XAttributes attributes = XSingleton.singleton.Player.Attributes; + RpcC2G_ReportBattle rpcC2G_ReportBattle = new RpcC2G_ReportBattle(); + rpcC2G_ReportBattle.oArg.battledata = new BattleData(); + rpcC2G_ReportBattle.oArg.battledata.timespan = (int)(ls._end_time - ls._start_time); + double attr = XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + double attr2 = XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + rpcC2G_ReportBattle.oArg.battledata.hppercent = (uint)(attr * 100.0 / attr2); + rpcC2G_ReportBattle.oArg.battledata.Combo = (int)XSingleton.singleton.ls._max_combo; + rpcC2G_ReportBattle.oArg.battledata.BeHit = (int)XSingleton.singleton.ls._player_behit; + rpcC2G_ReportBattle.oArg.battledata.found = XSingleton.singleton.ls._enemy_in_fight; + for (int i = 0; i < XLevelRewardDocument.Table.Table.Length; i++) + { + StageRankTable.RowData rowData = XLevelRewardDocument.Table.Table[i]; + bool flag = rowData.scendid != this._current_scene_id; + if (!flag) + { + bool flag2 = false; + uint num = 0u; + bool flag3 = rowData.star2[0] == 5u; + if (flag3) + { + flag2 = true; + num = rowData.star2[1]; + } + bool flag4 = rowData.star3[0] == 5u; + if (flag4) + { + flag2 = true; + num = rowData.star3[1]; + } + bool flag5 = !flag2; + if (!flag5) + { + List all = XSingleton.singleton.GetAll(); + for (int j = 0; j < all.Count; j++) + { + XEntity xentity = all[j]; + bool flag6 = !xentity.IsRole && xentity.TypeID == num; + if (flag6) + { + rpcC2G_ReportBattle.oArg.battledata.npchp = (uint)(xentity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic) * 100.0 / xentity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total)); + break; + } + } + break; + } + } + } + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + foreach (KeyValuePair keyValuePair in specificDocument.TaskMonstersKilled) + { + bool flag7 = keyValuePair.Value == 0u; + if (!flag7) + { + rpcC2G_ReportBattle.oArg.battledata.monster_id.Add(keyValuePair.Key); + rpcC2G_ReportBattle.oArg.battledata.monster_num.Add(keyValuePair.Value); + } + } + List list = new List(ls._entity_die.Keys); + for (int k = 0; k < list.Count; k++) + { + rpcC2G_ReportBattle.oArg.battledata.smallmonster.Add((uint)list[k]); + rpcC2G_ReportBattle.oArg.battledata.smallmonster.Add((uint)ls._entity_die[list[k]]); + } + bool flag8 = XSingleton.singleton.SceneType == SceneType.SCENE_BOSSRUSH; + if (flag8) + { + rpcC2G_ReportBattle.oArg.battledata.bossrush.Add(DlgBase.singleton.killAllMonster); + } + rpcC2G_ReportBattle.oArg.battledata.OpenChest = ls._box_enemy_kill; + XSingleton.singleton.PickAllDoodad(); + XSingleton.singleton.ReportServerList(rpcC2G_ReportBattle.oArg.battledata.pickDoodadWaveID); + XLevelRewardDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument2.LevelFinishTime = rpcC2G_ReportBattle.oArg.battledata.timespan; + specificDocument2.LevelFinishHp = rpcC2G_ReportBattle.oArg.battledata.hppercent; + specificDocument2.RequestServer = true; + rpcC2G_ReportBattle.oArg.battledata.anticheatInfo = new CliAntiCheatInfo(); + rpcC2G_ReportBattle.oArg.battledata.anticheatInfo.battleStamp = this.LevelRewardToken; + rpcC2G_ReportBattle.oArg.battledata.anticheatInfo.totalDamage = (uint)XSingleton.singleton.ls._total_damage; + rpcC2G_ReportBattle.oArg.battledata.anticheatInfo.totalHurt = (uint)XSingleton.singleton.ls._total_hurt; + rpcC2G_ReportBattle.oArg.battledata.anticheatInfo.totalRecovery = (uint)XSingleton.singleton.ls._total_heal; + rpcC2G_ReportBattle.oArg.battledata.anticheatInfo.currentHp = (uint)XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + for (int l = 0; l < XSingleton.singleton.ls._monster_refresh_time.Count; l++) + { + rpcC2G_ReportBattle.oArg.battledata.anticheatInfo.monsterRfsTimes.Add(XSingleton.singleton.ls._monster_refresh_time[l]); + } + XSingleton.singleton.Send(rpcC2G_ReportBattle); + } + + public void SendLevelFailData() + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + RpcC2G_ReportBattle rpcC2G_ReportBattle = new RpcC2G_ReportBattle(); + rpcC2G_ReportBattle.oArg.battledata = new BattleData(); + rpcC2G_ReportBattle.oArg.battledata.isfailed = true; + rpcC2G_ReportBattle.oArg.battledata.failedinfo = new BattleFailedData(); + rpcC2G_ReportBattle.oArg.battledata.failedinfo.timespan = (uint)(Time.time - XSingleton.singleton.ls._start_time); + rpcC2G_ReportBattle.oArg.battledata.failedinfo.deathcount = XSingleton.singleton.ls._death_count; + double attr = XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + double attr2 = XSingleton.singleton.Player.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + rpcC2G_ReportBattle.oArg.battledata.failedinfo.hppercent = (uint)(attr * 100.0 / attr2); + XSingleton.singleton.Send(rpcC2G_ReportBattle); + } + } + + public static void PlayVictory() + { + XPlayer player = XSingleton.singleton.Player; + bool isMounted = player.IsMounted; + if (!isMounted) + { + player.Net.ReportSkillAction(null, player.SkillMgr.GetDisappearIdentity(), -1); + XSingleton.singleton.GameCamera.TargetOffset = 7f; + XComponent xcomponent = XSingleton.singleton.GameCamera.GetXComponent(XCameraVAdjustComponent.uuID); + bool flag = xcomponent != null; + if (flag) + { + xcomponent.Enabled = false; + } + } + } + + public void StartLevelFinish() + { + XAIEnableAI @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + @event.Enable = false; + XSingleton.singleton.FireEvent(@event); + bool isFastLevelFinish = this.IsFastLevelFinish; + if (isFastLevelFinish) + { + this.ForceReturnHall(null); + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._current_scene_id); + bool flag = !string.IsNullOrEmpty(sceneData.EndCutScene) && XSingleton.singleton.SyncMode; + if (flag) + { + XSingleton.singleton.SetTimer(sceneData.EndCutSceneTime, new XTimerMgr.ElapsedEventHandler(this.PlayCutScene), sceneData.EndCutScene); + } + else + { + this.ShowLevelFinishUI(); + } + } + } + + private void ShowLevelFinishUI() + { + this.IsCurrentLevelFinished = true; + XSingleton.singleton.Pause = false; + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + DlgBase.singleton.SetVisiblePure(false); + DlgBase.singleton.Show(false); + DlgBase.singleton.SetFakeHide(true); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisiblePure(false); + DlgBase.singleton.Show(false); + DlgBase.singleton.SetFakeHide(false); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetVisiblePure(false); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.SetVisible(false, true); + } + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.ShowBattleResultFrame(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelFinishMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelFinishMgr.cs.meta new file mode 100644 index 00000000..f445f2f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelFinishMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a1a6c65fbbebf084ca3c343f2a2a1f59 +timeCreated: 1611404254 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelInfo.cs b/Client/Assets/Scripts/XMainClient/XLevelInfo.cs new file mode 100644 index 00000000..000685c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelInfo.cs @@ -0,0 +1,32 @@ +using System; + +namespace XMainClient +{ + internal class XLevelInfo + { + public string infoName; + + public float x; + + public float y; + + public float z; + + public float face; + + public float width; + + public float height; + + public float thickness; + + public bool enable; + + public XLevelInfo() + { + this.infoName = ""; + this.x = (this.y = (this.z = (this.face = (this.width = (this.height = (this.thickness = 0f)))))); + this.enable = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelInfo.cs.meta new file mode 100644 index 00000000..e71dfdf0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c1b0d34fc6016d41bbde0f9399ce057 +timeCreated: 1611403690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelLose.cs b/Client/Assets/Scripts/XMainClient/XLevelLose.cs new file mode 100644 index 00000000..517ed08e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelLose.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal struct XLevelLose + { + public XLevelLoseCondtion cond; + + public int param; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelLose.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelLose.cs.meta new file mode 100644 index 00000000..193e2052 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelLose.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 20b5bfcf1ccf9714e837b5dc7d5b241d +timeCreated: 1611403408 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelLoseCondtion.cs b/Client/Assets/Scripts/XMainClient/XLevelLoseCondtion.cs new file mode 100644 index 00000000..67b48817 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelLoseCondtion.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum XLevelLoseCondtion + { + LevelLose_None, + LevelLose_PlayerDie, + LevelLose_TeamDie, + LevelTime_Out, + LevelLose_NpcDie + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelLoseCondtion.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelLoseCondtion.cs.meta new file mode 100644 index 00000000..c7b82557 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelLoseCondtion.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a2e3531340387e4e87e8512d4c1608f +timeCreated: 1611403988 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelRankInfo.cs b/Client/Assets/Scripts/XMainClient/XLevelRankInfo.cs new file mode 100644 index 00000000..693382d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRankInfo.cs @@ -0,0 +1,20 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XLevelRankInfo : XBaseRankInfo + { + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, XBaseRankInfo.GetUnderLineName(this.name)); + this.id = data.RoleId; + this.rank = data.Rank; + this.value = (ulong)data.RoleLevel; + this.guildicon = data.guildicon; + this.guildname = data.guildname; + this.startType = data.starttype; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelRankInfo.cs.meta new file mode 100644 index 00000000..3b3deb95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 96590db680a16ab4faf1218c5e6049ce +timeCreated: 1611404184 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelRankList.cs b/Client/Assets/Scripts/XMainClient/XLevelRankList.cs new file mode 100644 index 00000000..5813f70c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRankList.cs @@ -0,0 +1,35 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XLevelRankList : XBaseRankList + { + public XLevelRankList() + { + this.type = XRankType.LevelRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XLevelRankInfo(); + } + + public override XBaseRankInfo GetLatestMyRankInfo() + { + bool flag = this.myRankInfo == null || this.myRankInfo.rank != XRankDocument.INVALID_RANK; + XBaseRankInfo myRankInfo; + if (flag) + { + myRankInfo = this.myRankInfo; + } + else + { + this.myRankInfo.name = XSingleton.singleton.Player.Name; + this.myRankInfo.value = (ulong)XCharacterDocument.GetCharacterAttr().Level; + myRankInfo = this.myRankInfo; + } + return myRankInfo; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelRankList.cs.meta new file mode 100644 index 00000000..5e5097c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4f1893f0f26c2304bb755687f9ede09b +timeCreated: 1611403699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelRewardBehaviour.cs b/Client/Assets/Scripts/XMainClient/XLevelRewardBehaviour.cs new file mode 100644 index 00000000..891e86af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRewardBehaviour.cs @@ -0,0 +1,9 @@ +using System; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XLevelRewardBehaviour : DlgBehaviourBase + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelRewardBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelRewardBehaviour.cs.meta new file mode 100644 index 00000000..a3b475f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRewardBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23cf92202c90ecd4e97213a603210da2 +timeCreated: 1611403457 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XLevelRewardDocument.cs new file mode 100644 index 00000000..4bdbb9b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRewardDocument.cs @@ -0,0 +1,2473 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XLevelRewardDocument.uuID; + } + } + + public bool RequestServer + { + get + { + return this._requestServer; + } + set + { + this._requestServer = value; + } + } + + public uint Rank + { + get + { + return this.GetRankByBit(this._rank); + } + } + + public uint FirstStars { get; set; } + + public SceneType CurrentStage + { + get + { + return XSingleton.singleton.SceneType; + } + } + + public uint CurrentScene + { + get + { + return XSingleton.singleton.SceneID; + } + } + + public SceneTable.RowData CurrentSceneData + { + get + { + return this._current_scene_data; + } + } + + public int LevelFinishTime { get; set; } + + public uint LevelFinishHp { get; set; } + + public bool CanPeerBox + { + get + { + bool flag = this.CurrentSceneData == null; + return !flag && this.CurrentSceneData.PeerBox[0] > 0u; + } + } + + public uint PeerBoxCost + { + get + { + bool flag = this.CurrentSceneData == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = this.CurrentSceneData.PeerBox[1]; + } + return result; + } + } + + public bool IsArenaMiss { get; set; } + + public int ArenaRankUp { get; set; } + + public uint ArenaGemUp { get; set; } + + public int TotalDamage { get; set; } + + public bool IsSelect { get; set; } + + public int SelectLeftTime { get; set; } + + public bool IsWin { get; set; } + + public bool IsStageFailed { get; set; } + + public int PickUpTotalTime { get; set; } + + public int RandomTaskExp { get; set; } + + public int RandomTaskMoney { get; set; } + + public int RandomTask { get; set; } + + public int StartLevel { get; set; } + + public float StartPercent { get; set; } + + public float TotalExpPercent { get; set; } + + public float CurrentExpPercent { get; set; } + + public float GrowExpPercent { get; set; } + + public float TotalExp { get; set; } + + public int SmallMonsterRank { get; set; } + + public bool BrokeRecords { get; set; } + + public bool RedSmallMonsterKilled { get; set; } + + public int TowerFloor { get; set; } + + public bool IsEndLevel { get; set; } + + public uint WatchCount { get; set; } + + public uint LikeCount { get; set; } + + public static int MEMBER_COUNT = 16; + + public RiftResult RiftResult; + + public new static readonly uint uuID = XSingleton.singleton.XHash("LevelRewardDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private bool _requestServer = false; + + private uint _rank = 0u; + + public List Stars = new List(); + + public List Items = new List(); + + public List StarsItems = new List(); + + private SceneTable.RowData _current_scene_data = null; + + private float _last_query_box_time = 0f; + + public List Member = new List(); + + public Dictionary MemberSelectChest = new Dictionary(); + + public static StageRankTable Table = new StageRankTable(); + + public XLevelRewardDocument.PVPData PvpBattleData = default(XLevelRewardDocument.PVPData); + + public XLevelRewardDocument.HeroBattleData HeroData = default(XLevelRewardDocument.HeroBattleData); + + public XLevelRewardDocument.HeroBattleData MobaData = default(XLevelRewardDocument.HeroBattleData); + + public XLevelRewardDocument.RaceData RaceBattleData = default(XLevelRewardDocument.RaceData); + + public XLevelRewardDocument.InvFightData InvFightBattleData = default(XLevelRewardDocument.InvFightData); + + public XLevelRewardDocument.SkyArenaData SkyArenaBattleData = default(XLevelRewardDocument.SkyArenaData); + + public XLevelRewardDocument.AbyssPartyData AbyssPartyBattleData = default(XLevelRewardDocument.AbyssPartyData); + + public XLevelRewardDocument.BigMeleeData BigMeleeBattleData = default(XLevelRewardDocument.BigMeleeData); + + public XLevelRewardDocument.BattleFieldData BattleFieldBattleData = default(XLevelRewardDocument.BattleFieldData); + + public XLevelRewardDocument.GuildMineData GuildMineBattleData = default(XLevelRewardDocument.GuildMineData); + + public XLevelRewardDocument.GerenalData GerenalBattleData = default(XLevelRewardDocument.GerenalData); + + public XLevelRewardDocument.SelectChestData SelectChestFrameData = default(XLevelRewardDocument.SelectChestData); + + public XLevelRewardDocument.DragonCrusadeData DragonCrusadeDataWin = default(XLevelRewardDocument.DragonCrusadeData); + + public List BattleDataList = new List(); + + public XLevelRewardDocument.QualifyingData QualifyingBattleData = default(XLevelRewardDocument.QualifyingData); + + public XLevelRewardDocument.CustomBattleGameData CustomBattleData = default(XLevelRewardDocument.CustomBattleGameData); + + public XLevelRewardDocument.WeekendPartyData WeekendPartyBattleData = default(XLevelRewardDocument.WeekendPartyData); + + public XLevelRewardDocument.BattleRoyaleData BattleRoyaleDataInfo = default(XLevelRewardDocument.BattleRoyaleData); + + private float LastLeaveSceneTime = 0f; + + private XFx TheGoddessWinFx = null; + + private uint _autoReturnTimeToken = 0u; + + public struct DamageRank + { + public string Name { get; set; } + + public int Damage { get; set; } + } + + public struct PVPRoleInfo + { + public string Name; + + public ulong uID; + + public uint Level; + + public int Prof; + + public int KillCount; + + public int MaxKillCount; + + public uint DeathCount; + + public uint AssitCount; + + public bool IsMvp; + + public ulong Damage; + + public uint BeHit; + + public float Kda; + + public ulong Heal; + + public uint ServerID; + + public uint militaryRank; + + public bool isescape; + } + + public struct PVPData + { + public int PVPResult; + + public List DayJoinReward; + + public List WinReward; + + public List Team1Data; + + public List Team2Data; + + public void Init() + { + this.PVPResult = 0; + this.DayJoinReward = new List(); + this.WinReward = new List(); + this.Team1Data = new List(); + this.Team2Data = new List(); + } + } + + public struct CustomBattleInfo + { + public string RoleName; + + public ulong RoleID; + + public int RoleProf; + + public int KillCount; + + public int MaxKillCount; + + public int DeathCount; + + public ulong Damage; + + public ulong Heal; + + public int PointChange; + + public bool IsMvp; + } + + public struct CustomBattleGameData + { + public uint GameType; + + public PkResultType Result; + + public List Team1Data; + + public List Team2Data; + + public void Init() + { + this.GameType = 0u; + this.Result = PkResultType.PkResult_Draw; + this.Team1Data = new List(); + this.Team2Data = new List(); + } + } + + public struct WeekendPartyData + { + public uint WarTime; + + public List AllRoleData; + + public uint Team1Score; + + public uint Team2Score; + + public uint PlayerRedBlue; + + public List HasRewardsID; + + public void Init() + { + this.WarTime = 0u; + this.Team1Score = 0u; + this.Team2Score = 0u; + this.PlayerRedBlue = 0u; + this.AllRoleData = new List(); + this.HasRewardsID = new List(); + } + } + + public struct HeroBattleData + { + public HeroBattleOver Result; + + public uint MvpHeroID; + + public int KillMax; + + public int DeathMin; + + public int AssitMax; + + public ulong DamageMax; + + public uint BeHitMax; + + public ulong DamageMaxUid; + + public ulong BeHitMaxUid; + + public List DayJoinReward; + + public List WinReward; + + public XLevelRewardDocument.PVPRoleInfo MvpData; + + public List Team1Data; + + public List Team2Data; + + public void Init() + { + this.MvpHeroID = 1u; + this.KillMax = 0; + this.AssitMax = 0; + this.DamageMax = 0UL; + this.BeHitMax = 0u; + this.DeathMin = int.MaxValue; + this.DayJoinReward = new List(); + this.WinReward = new List(); + this.Team1Data = new List(); + this.Team2Data = new List(); + } + } + + public struct GuildMineData + { + public uint mine; + + public List item; + + public void Init() + { + this.mine = 0u; + this.item = new List(); + } + } + + public struct RaceData + { + public List rolename; + + public List profession; + + public List> item; + + public List time; + + public List petid; + + public List rank; + + public void Init() + { + this.rolename = new List(); + this.profession = new List(); + this.item = new List>(); + this.time = new List(); + this.petid = new List(); + this.rank = new List(); + } + } + + public struct InvFightData + { + public string rivalName; + + public bool isWin; + + public void Init() + { + this.rivalName = ""; + this.isWin = false; + } + } + + public struct SkyArenaData + { + public List roleid; + + public List killcount; + + public List deathcount; + + public List damage; + + public List ismvp; + + public uint floor; + + public List item; + + public void Init() + { + this.roleid = new List(); + this.killcount = new List(); + this.deathcount = new List(); + this.damage = new List(); + this.ismvp = new List(); + this.floor = 0u; + this.item = new List(); + } + } + + public struct AbyssPartyData + { + public int AbysssPartyListId; + + public uint Time; + + public List item; + + public void Init() + { + this.AbysssPartyListId = 0; + this.Time = 0u; + this.item = new List(); + } + } + + public struct BigMeleeData + { + public uint rank; + + public uint score; + + public uint kill; + + public uint death; + + public List item; + + public void Init() + { + this.rank = 0u; + this.score = 0u; + this.kill = 0u; + this.death = 0u; + this.item = new List(); + } + } + + public struct BattleRankRoleInfo + { + public ulong RoleID; + + public uint Rank; + + public string Name; + + public string ServerName; + + public uint KillCount; + + public uint CombKill; + + public uint DeathCount; + + public bool isMVP; + + public ulong Damage; + + public int RoleProf; + + public uint Point; + } + + public struct BattleFieldData + { + public bool allend; + + public List MemberData; + + public List item; + + public void Init() + { + this.allend = false; + this.MemberData = new List(); + this.item = new List(); + } + } + + public struct GerenalData + { + public uint Rank; + + public uint Score; + + public List Stars; + + public List Items; + + public uint LevelFinishTime; + + public uint StartLevel; + + public float StartPercent; + + public float TotalExpPercent; + + public float CurrentExpPercent; + + public float GrowExpPercent; + + public float TotalExp; + + public float GuildBuff; + + public int SwitchLeftTime; + + public uint GuildExp; + + public uint GuildContribution; + + public uint GuildDragonCoin; + + public ItemBrief GoldGroupReward; + + public bool isHelper; + + public bool noneReward; + + public bool isSeal; + + public void Init() + { + this.Rank = 0u; + this.Stars = new List(); + this.Items = new List(); + this.LevelFinishTime = 0u; + this.StartLevel = 0u; + this.StartPercent = 0f; + this.TotalExpPercent = 0f; + this.CurrentExpPercent = 0f; + this.GrowExpPercent = 0f; + this.TotalExp = 0f; + this.SwitchLeftTime = 0; + this.GuildExp = 0u; + this.GuildContribution = 0u; + this.GuildDragonCoin = 0u; + this.GoldGroupReward = null; + this.isHelper = false; + this.noneReward = false; + this.isSeal = false; + } + } + + public struct LevelRewardRoleData + { + public ulong uid; + + public string Name; + + public uint Level; + + public bool isLeader; + + public bool isHelper; + + public bool noneReward; + + public int ProfID; + + public uint Rank; + + public int BoxID; + + public uint ServerID; + + public List chestList; + + public void Init() + { + this.uid = 0UL; + this.Name = ""; + this.Level = 0u; + this.isLeader = false; + this.isHelper = false; + this.noneReward = false; + this.ProfID = 0; + this.Rank = 0u; + this.BoxID = 0; + this.chestList = new List(); + } + } + + public struct SelectChestData + { + public XLevelRewardDocument.LevelRewardRoleData Player; + + public List Others; + + public int SelectLeftTime; + + public void Init() + { + this.Player.Init(); + this.Others = new List(); + this.SelectLeftTime = 0; + } + } + + public struct DragonCrusadeData + { + public XLevelRewardDocument.LevelRewardRoleData Player; + + public List Others; + + public int BossDamageHP; + + public int BossLeftHP; + + public DragonExpResult MyResult; + + public void Init() + { + this.Player.Init(); + this.Others = new List(); + this.BossDamageHP = 0; + this.BossLeftHP = 0; + this.MyResult = null; + } + } + + public struct BattleData + { + public ulong uid; + + public string Name; + + public int ProfID; + + public bool isLeader; + + public uint Rank; + + public ulong DamageTotal; + + public float DamagePercent; + + public ulong HealTotal; + + public uint DeathCount; + + public uint ComboCount; + } + + public struct QualifyingData + { + public PkResultType QualifyingResult; + + public int QualifyingRankChange; + + public int FirstRank; + + public int QualifyingPointChange; + + public uint QualifyingHonorChange; + + public List QualifyingHonorItems; + + public KKVsRoleState myState; + + public KKVsRoleState opState; + + public void Init() + { + this.QualifyingResult = PkResultType.PkResult_Draw; + this.QualifyingRankChange = 0; + this.FirstRank = 0; + this.QualifyingPointChange = 0; + this.QualifyingHonorChange = 0u; + this.QualifyingHonorItems = new List(); + this.myState = KKVsRoleState.KK_VS_ROLE_NORMAL; + this.opState = KKVsRoleState.KK_VS_ROLE_NORMAL; + } + } + + public struct BattleRoyaleData + { + public uint SelfRank; + + public uint AllRank; + + public uint KillCount; + + public string KilledBy; + + public uint LiveTime; + + public int AddPoint; + + public void Init() + { + this.SelfRank = 0u; + this.AllRank = 0u; + this.KillCount = 0u; + this.KilledBy = ""; + this.LiveTime = 0u; + this.AddPoint = 0; + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XLevelRewardDocument.AsyncLoader.AddTask("Table/StageRank", XLevelRewardDocument.Table, false); + XLevelRewardDocument.AsyncLoader.Execute(callback); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + this.PvpBattleData.Init(); + this.InvFightBattleData.Init(); + this.SkyArenaBattleData.Init(); + this.AbyssPartyBattleData.Init(); + this.BigMeleeBattleData.Init(); + this.BattleFieldBattleData.Init(); + this.RaceBattleData.Init(); + this.GuildMineBattleData.Init(); + this.GerenalBattleData.Init(); + this.SelectChestFrameData.Init(); + this.DragonCrusadeDataWin.Init(); + this.QualifyingBattleData.Init(); + this.CustomBattleData.Init(); + this._current_scene_data = XSingleton.singleton.GetSceneData(this.CurrentScene); + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this.DestroyFx(this.TheGoddessWinFx); + this.TheGoddessWinFx = null; + } + + public void SendLeaveScene() + { + bool flag = Time.time - this.LastLeaveSceneTime < 3f; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CLICK_TOO_FAST"), "fece00"); + } + else + { + this.LastLeaveSceneTime = Time.time; + XSingleton.singleton.ReqLeaveScene(); + } + } + + public void SendSelectChest(uint index) + { + RpcC2G_SelectChestReward rpcC2G_SelectChestReward = new RpcC2G_SelectChestReward(); + rpcC2G_SelectChestReward.oArg.chestIdx = index; + XSingleton.singleton.Send(rpcC2G_SelectChestReward); + } + + public void SendPeerChest(uint index) + { + RpcC2G_PeerBox rpcC2G_PeerBox = new RpcC2G_PeerBox(); + rpcC2G_PeerBox.oArg.index = index; + XSingleton.singleton.Send(rpcC2G_PeerBox); + } + + public void SetPeerChest(uint index, ItemBrief item, uint type) + { + this.SelectChestFrameData.Player.chestList[(int)index].itemID = (int)item.itemID; + this.SelectChestFrameData.Player.chestList[(int)index].itemCount = (int)item.itemCount; + this.SelectChestFrameData.Player.chestList[(int)index].isbind = item.isbind; + this.SelectChestFrameData.Player.chestList[(int)index].chestType = (int)type; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.SetPeerResult(); + } + } + + public void SendQueryBoxs(bool force = false) + { + bool flag = !force && Time.time - this._last_query_box_time < 1f; + if (!flag) + { + this._last_query_box_time = Time.time; + RpcC2G_QueryBoxs rpc = new RpcC2G_QueryBoxs(); + XSingleton.singleton.Send(rpc); + } + } + + public void SetSelectBoxLeftTime(uint leftTime) + { + this.SelectChestFrameData.SelectLeftTime = (int)leftTime; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshSelectChestLeftTime(); + } + } + + public void SetBoxsInfo(List boxs) + { + this.SetSelectBoxLeftTime(0u); + for (int i = 0; i < boxs.Count; i++) + { + bool flag = boxs[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + this.SelectChestFrameData.Player.BoxID = (int)boxs[i].index; + for (int j = 0; j < this.SelectChestFrameData.Player.chestList.Count; j++) + { + this.SelectChestFrameData.Player.chestList[j].itemID = (int)boxs[i].items[j].itemID; + this.SelectChestFrameData.Player.chestList[j].itemCount = (int)boxs[i].items[j].itemCount; + this.SelectChestFrameData.Player.chestList[j].isbind = boxs[i].items[j].isbind; + this.SelectChestFrameData.Player.chestList[j].chestType = (int)boxs[i].type[j]; + } + } + else + { + for (int k = 0; k < this.SelectChestFrameData.Others.Count; k++) + { + bool flag2 = boxs[i].roleid == this.SelectChestFrameData.Others[k].uid; + if (flag2) + { + XLevelRewardDocument.LevelRewardRoleData levelRewardRoleData = this.SelectChestFrameData.Others[k]; + levelRewardRoleData.BoxID = (int)boxs[i].index; + for (int l = 0; l < this.SelectChestFrameData.Player.chestList.Count; l++) + { + levelRewardRoleData.chestList[l].itemID = (int)boxs[i].items[l].itemID; + levelRewardRoleData.chestList[l].itemCount = (int)boxs[i].items[l].itemCount; + levelRewardRoleData.chestList[l].isbind = boxs[i].items[l].isbind; + levelRewardRoleData.chestList[l].chestType = (int)boxs[i].type[l]; + } + this.SelectChestFrameData.Others[k] = levelRewardRoleData; + } + } + } + } + bool flag3 = !DlgBase.singleton.IsVisible(); + if (!flag3) + { + DlgBase.singleton.ShowAllChest(); + } + } + + public void SendReturnWaitBattleField() + { + bool flag = Time.time - this.LastLeaveSceneTime < 3f; + if (!flag) + { + this.LastLeaveSceneTime = Time.time; + PtcC2M_GoBackReadySceneNtf proto = new PtcC2M_GoBackReadySceneNtf(); + XSingleton.singleton.Send(proto); + } + } + + public void ReEnterLevel() + { + bool flag = Time.time - this.LastLeaveSceneTime < 3f; + if (!flag) + { + this.LastLeaveSceneTime = Time.time; + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = this.CurrentScene; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + } + } + + public void SendReEnterAbyssParty(uint ID) + { + bool flag = Time.time - this.LastLeaveSceneTime < 3f; + if (!flag) + { + this.LastLeaveSceneTime = Time.time; + bool flag2 = ID == 0u; + if (flag2) + { + DlgBase.singleton.OnJoinClicked(null); + } + else + { + XAbyssPartyDocument.Doc.AbyssPartyEnter((int)ID); + } + } + } + + public void SendReEnterRiskBattle() + { + bool flag = Time.time - this.LastLeaveSceneTime < 3f; + if (!flag) + { + this.LastLeaveSceneTime = Time.time; + RpcC2G_ReEnterRiskBattle rpc = new RpcC2G_ReEnterRiskBattle(); + XSingleton.singleton.Send(rpc); + } + } + + public void SetBattleResult(List stars, uint money, List items, uint firstStars, List starsItems) + { + this.Stars.Clear(); + for (int i = 0; i < stars.Count; i++) + { + this.Stars.Add(stars[i]); + } + this.Items.Clear(); + for (int j = 0; j < items.Count; j++) + { + bool flag = false; + for (int k = 0; k < this.Items.Count; k++) + { + bool flag2 = items[j].itemID == this.Items[k].itemID; + if (flag2) + { + flag = true; + this.Items[k].itemCount += items[j].itemCount; + break; + } + } + bool flag3 = !flag; + if (flag3) + { + this.Items.Add(this.CopyItemBrief(items[j])); + } + } + bool flag4 = money > 0u; + if (flag4) + { + ItemBrief itemBrief = new ItemBrief + { + itemID = (uint)XFastEnumIntEqualityComparer.ToInt(ItemEnum.GOLD), + itemCount = money + }; + bool flag = false; + for (int l = 0; l < this.Items.Count; l++) + { + bool flag5 = itemBrief.itemID == this.Items[l].itemID; + if (flag5) + { + flag = true; + this.Items[l].itemCount += itemBrief.itemCount; + break; + } + } + bool flag6 = !flag; + if (flag6) + { + this.Items.Add(this.CopyItemBrief(itemBrief)); + } + } + this.FirstStars = firstStars; + this.StarsItems.Clear(); + for (int m = 0; m < starsItems.Count; m++) + { + this.StarsItems.Add(this.CopyItemBrief(starsItems[m])); + } + this.MemberSelectChest.Clear(); + this.IsSelect = false; + this.SelectLeftTime = XSingleton.singleton.GetInt("LevelFinishSelectChestTime"); + } + + public void SetQualifyingResult(PkResult data) + { + this.IsWin = (data.result == PkResultType.PkResult_Win); + this.QualifyingBattleData.Init(); + this.QualifyingBattleData.QualifyingResult = data.result; + this.QualifyingBattleData.QualifyingRankChange = data.rank; + this.QualifyingBattleData.FirstRank = data.firstrank; + this.QualifyingBattleData.QualifyingPointChange = data.winpoint; + this.QualifyingBattleData.QualifyingHonorChange = data.honorpoint; + this.QualifyingBattleData.QualifyingHonorItems = data.items; + bool flag = data.dragoncount > 0u; + if (flag) + { + ItemBrief itemBrief = new ItemBrief(); + itemBrief.itemID = 7u; + itemBrief.itemCount = data.dragoncount; + this.QualifyingBattleData.QualifyingHonorItems.Add(itemBrief); + } + this.QualifyingBattleData.myState = data.mystate; + this.QualifyingBattleData.opState = data.opstate; + } + + public void SetDamageRank(List name, List damage) + { + this.Member.Clear(); + this.TotalDamage = 0; + for (int i = 0; i < name.Count; i++) + { + XLevelRewardDocument.DamageRank item = new XLevelRewardDocument.DamageRank + { + Name = name[i], + Damage = (int)damage[i] + }; + this.Member.Add(item); + this.TotalDamage += item.Damage; + } + this.TotalDamage = Math.Max(1, this.TotalDamage); + this.Member.Sort(new Comparison(XLevelRewardDocument.DamageCompare)); + } + + public void ShowBattleResultFrame() + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + DlgBase.singleton.SetVisiblePure(false); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisiblePure(false); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetVisiblePure(false); + } + bool isWin = this.IsWin; + if (isWin) + { + XLevelFinishMgr.PlayVictory(); + } + bool isEndLevel = this.IsEndLevel; + if (isEndLevel) + { + this.DestroyFx(this.TheGoddessWinFx); + this.TheGoddessWinFx = null; + this.TheGoddessWinFx = XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/UIfx/UI_TheGoddessWin", XSingleton.singleton.UIRoot, Vector3.zero, Vector3.one, 1f, true, (float)XSingleton.singleton.GetInt("LevelFinishFxTime"), true); + XSingleton.singleton.SetTimer((float)XSingleton.singleton.GetInt("LevelFinishFxTime"), new XTimerMgr.ElapsedEventHandler(this.ShowLevelRewardUI), null); + } + else + { + XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.ShowLevelRewardUI), null); + } + } + + public void ShowLevelReward() + { + this.ShowLevelRewardUI(null); + } + + private void ShowLevelRewardUI(object o) + { + this.DestroyFx(this.TheGoddessWinFx); + this.TheGoddessWinFx = null; + bool bSpectator = XSingleton.singleton.bSpectator; + if (!bSpectator) + { + XSingleton.singleton.Cancel(); + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + SceneType currentStage = this.CurrentStage; + switch (currentStage) + { + case SceneType.SCENE_BATTLE: + case SceneType.SCENE_NEST: + case (SceneType)4: + case (SceneType)6: + case SceneType.SCENE_WORLDBOSS: + case (SceneType)8: + case SceneType.SCENE_BOSSRUSH: + case SceneType.SCENE_GUILD_HALL: + case SceneType.SCENE_GUILD_BOSS: + case SceneType.SCENE_ABYSSS: + case (SceneType)14: + case SceneType.SCENE_FAMILYGARDEN: + case SceneType.SCENE_TOWER: + case SceneType.SCENE_DRAGON: + case SceneType.SCENE_GMF: + case SceneType.SCENE_GODDESS: + case SceneType.SCENE_ENDLESSABYSS: + goto IL_2A9; + case SceneType.SCENE_ARENA: + XSingleton.singleton.PlayBGM("Audio/UI/PvP_Victory"); + DlgBase.singleton.ShowLevelReward(SceneType.SCENE_ARENA); + goto IL_2CE; + case SceneType.SCENE_PK: + break; + case SceneType.SCENE_PVP: + XSingleton.singleton.PlayBGM("Audio/mapambience/PVP_score"); + DlgBase.singleton.ShowLevelReward(SceneType.SCENE_PVP); + goto IL_2CE; + case SceneType.SCENE_DRAGON_EXP: + XSingleton.singleton.PlayBGM("Audio/UI/guankashenli"); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.Refresh(); + goto IL_2CE; + case SceneType.SCENE_RISK: + XSingleton.singleton.PlayBGM("Audio/UI/guankashenli"); + DlgBase.singleton.ShowLevelReward(SceneType.SCENE_RISK); + goto IL_2CE; + default: + switch (currentStage) + { + case SceneType.SCENE_WEEK_NEST: + case SceneType.SCENE_VS_CHALLENGE: + case SceneType.SCENE_HORSE: + case SceneType.SCENE_HORSE_RACE: + case SceneType.SCENE_CASTLE_WAIT: + case SceneType.SCENE_CASTLE_FIGHT: + case SceneType.SCENE_LEAGUE_BATTLE: + case SceneType.SCENE_ACTIVITY_ONE: + case SceneType.SCENE_ACTIVITY_TWO: + case SceneType.SCENE_ACTIVITY_THREE: + case SceneType.SCENE_ABYSS_PARTY: + goto IL_2A9; + case SceneType.SCENE_HEROBATTLE: + case SceneType.SCENE_MOBA: + DlgBase.singleton.ShowLevelReward(this.CurrentStage); + goto IL_2CE; + case SceneType.SCENE_INVFIGHT: + { + bool isWin = this.InvFightBattleData.isWin; + if (isWin) + { + XSingleton.singleton.PlayBGM("Audio/UI/PvP_Victory"); + } + else + { + XSingleton.singleton.PlayBGM("Audio/UI/PvP_Lose"); + } + DlgBase.singleton.ShowLevelReward(SceneType.SCENE_INVFIGHT); + goto IL_2CE; + } + case SceneType.SCENE_CUSTOMPK: + case SceneType.SCENE_CUSTOMPKTWO: + XSingleton.singleton.PlayBGM("Audio/mapambience/PVP_score"); + DlgBase.singleton.ShowLevelReward(this.CurrentStage); + goto IL_2CE; + case SceneType.SCENE_PKTWO: + break; + case SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT: + case SceneType.SCENE_WEEKEND4V4_GHOSTACTION: + case SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE: + case SceneType.SCENE_WEEKEND4V4_CRAZYBOMB: + case SceneType.SCENE_WEEKEND4V4_HORSERACING: + case SceneType.SCENE_WEEKEND4V4_DUCK: + DlgBase.singleton.ShowLevelReward(this.CurrentStage); + goto IL_2CE; + default: + if (currentStage != SceneType.SCENE_SURVIVE) + { + goto IL_2A9; + } + goto IL_2CE; + } + break; + } + bool flag2 = this.QualifyingBattleData.QualifyingResult == PkResultType.PkResult_Win; + if (flag2) + { + XSingleton.singleton.PlayBGM("Audio/UI/PvP_Victory"); + } + else + { + XSingleton.singleton.PlayBGM("Audio/UI/PvP_Lose"); + } + DlgBase.singleton.ShowLevelReward(SceneType.SCENE_PK); + goto IL_2CE; + IL_2A9: + XSingleton.singleton.PlayBGM("Audio/UI/guankashenli"); + DlgBase.singleton.ShowLevelReward(this.CurrentStage); + IL_2CE: + int sceneAutoLeaveTime = XSingleton.singleton.GetSceneAutoLeaveTime(this.CurrentScene); + bool flag3 = sceneAutoLeaveTime != 0; + if (flag3) + { + this._autoReturnTimeToken = XSingleton.singleton.SetTimer((float)sceneAutoLeaveTime, new XTimerMgr.ElapsedEventHandler(this.AutoLeaveScene), null); + } + } + } + + public void ShowStageFailUI(object o) + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (!bSpectator) + { + XSingleton.singleton.Cancel(); + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + SceneType currentStage = this.CurrentStage; + if (currentStage != SceneType.SCENE_RISK) + { + DlgBase.singleton.ShowStageFailFrame(this.CurrentStage); + } + else + { + DlgBase.singleton.ShowStageFailFrame(SceneType.SCENE_RISK); + } + } + } + + private void AutoLeaveScene(object o) + { + bool flag = this.CurrentScene != XSingleton.singleton.SceneID; + if (!flag) + { + bool flag2 = this.CurrentStage == SceneType.SCENE_GODDESS || this.CurrentStage == SceneType.SCENE_ENDLESSABYSS; + if (flag2) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag3 = !specificDocument.bIsLeader; + if (!flag3) + { + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int num = 0; + bool flag4 = this.CurrentStage == SceneType.SCENE_GODDESS; + if (flag4) + { + num = specificDocument2.GetDayCount(TeamLevelType.TeamLevelGoddessTrial, null); + } + else + { + bool flag5 = this.CurrentStage == SceneType.SCENE_ENDLESSABYSS; + if (flag5) + { + num = specificDocument2.GetDayCount(TeamLevelType.TeamLevelEndlessAbyss, null); + } + } + bool flag6 = num - 1 <= 0; + if (!flag6) + { + specificDocument.ReqTeamOp(TeamOperate.TEAM_BATTLE_CONTINUE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + } + } + else + { + this.SendLeaveScene(); + } + } + } + + public void ShowSelectChestFrame() + { + DlgBase.singleton.ShowSelectChestFrame(); + } + + public void ShowFirstPassShareView() + { + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_DungeonShareReward); + if (flag) + { + XSingleton.singleton.AddLog("ShowFirstPassShareView", null, null, null, null, null, XDebugColor.XDebug_None); + XAchievementDocument specificDocument = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + bool flag2 = this.CurrentScene != 0u && this.CurrentScene == specificDocument.FirstPassSceneID; + if (flag2) + { + XSingleton.singleton.KillTimer(this._autoReturnTimeToken); + this._autoReturnTimeToken = 0u; + XScreenShotShareDocument specificDocument2 = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + XSingleton.singleton.shareCallbackType = ShareCallBackType.DungeonShare; + specificDocument2.CurShareBgType = ShareBgType.DungeonType; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + + private static int DamageCompare(XLevelRewardDocument.DamageRank member1, XLevelRewardDocument.DamageRank member2) + { + return member2.Damage.CompareTo(member1.Damage); + } + + public void SetPickItemList(List items) + { + for (int i = 0; i < items.Count; i++) + { + this.Items.Add(this.CopyItemBrief(items[i])); + } + } + + public void SetBattleResultData(NewBattleResult data) + { + this.IsWin = true; + int index = 0; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + index = i; + break; + } + } + this.IsEndLevel = data.isFinalResult; + StageRoleResult stageRoleResult = data.roleReward[index]; + bool flag2 = !stageRoleResult.ishelper; + if (flag2) + { + XSingleton.singleton.SetRank((int)data.stageInfo.stageID, (int)stageRoleResult.stars); + } + this._rank = stageRoleResult.stars; + this.SetBattleResult(this.GetStarsByBit(stageRoleResult.stars), stageRoleResult.money, stageRoleResult.items, stageRoleResult.firststars, stageRoleResult.starreward); + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + this.LevelFinishTime = (int)data.stageInfo.timespan; + } + bool flag3 = data.specialStage != null; + if (flag3) + { + this.ArenaRankUp = (int)data.specialStage.arenaup; + this.IsArenaMiss = data.specialStage.arenamissed; + } + this.ArenaGemUp = 0u; + for (int j = 0; j < stageRoleResult.items.Count; j++) + { + bool flag4 = stageRoleResult.items[j].itemID == 7u; + if (flag4) + { + this.ArenaGemUp = stageRoleResult.items[j].itemCount; + } + } + this.IsStageFailed = data.stageInfo.isStageFailed; + bool flag5 = stageRoleResult.pkresult != null; + if (flag5) + { + this.SetQualifyingResult(stageRoleResult.pkresult); + } + bool flag6 = stageRoleResult.stars < 7u && data.stageInfo.stageType == 2u; + if (flag6) + { + XPlayer player = XSingleton.singleton.Player; + bool flag7 = player != null && player.Attributes.Level > 10u; + if (flag7) + { + XFPStrengthenDocument specificDocument = XDocuments.GetSpecificDocument(XFPStrengthenDocument.uuID); + specificDocument.TryShowBrief(); + } + } + bool flag8 = stageRoleResult.guildGoblinResult != null; + if (flag8) + { + this.SmallMonsterRank = stageRoleResult.guildGoblinResult.curRank; + this.RedSmallMonsterKilled = stageRoleResult.guildGoblinResult.getGuildBonus; + } + bool flag9 = data.specialStage != null; + if (flag9) + { + this.BrokeRecords = false; + bool flag10 = data.specialStage.bossrushresult != null; + if (flag10) + { + this.BrokeRecords = (data.specialStage.bossrushresult.lastmax < data.specialStage.bossrushresult.currentmax); + } + } + bool flag11 = stageRoleResult.towerResult != null; + if (flag11) + { + this.BrokeRecords = stageRoleResult.towerResult.isNewRecord; + this.TowerFloor = stageRoleResult.towerResult.towerFloor; + } + this.WatchCount = 0u; + this.LikeCount = 0u; + bool flag12 = data.watchinfo != null; + if (flag12) + { + this.WatchCount = data.watchinfo.wathccount; + this.LikeCount = data.watchinfo.likecount; + } + XSingleton.singleton.OnSetBattleResult(); + this.SetBattleDataList(data); + this.SetSelectChestResult(data); + this.SetGerenalResult(data); + SceneType stageType = (SceneType)data.stageInfo.stageType; + if (stageType <= SceneType.SCENE_WEEKEND4V4_DUCK) + { + if (stageType != SceneType.SCENE_PVP) + { + if (stageType != SceneType.SCENE_DRAGON_EXP) + { + switch (stageType) + { + case SceneType.SKYCITY_FIGHTING: + this.SetSkyArenaResult(data); + break; + case SceneType.SCENE_RESWAR_PVP: + case SceneType.SCENE_RESWAR_PVE: + this.SetGuildMineResult(data); + break; + case SceneType.SCENE_HORSE_RACE: + this.SetRaceResult(data); + break; + case SceneType.SCENE_HEROBATTLE: + this.SetHeroBattleResult(data); + break; + case SceneType.SCENE_INVFIGHT: + this.SetInviFightResult(data); + break; + case SceneType.SCENE_ABYSS_PARTY: + this.SetAbyssPartyResult(data); + break; + case SceneType.SCENE_CUSTOMPK: + case SceneType.SCENE_CUSTOMPKTWO: + this.SetCustomBattleResult(data); + break; + case SceneType.SCENE_MOBA: + this.SetMobaBattleResult(data); + break; + case SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT: + case SceneType.SCENE_WEEKEND4V4_GHOSTACTION: + case SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE: + case SceneType.SCENE_WEEKEND4V4_CRAZYBOMB: + case SceneType.SCENE_WEEKEND4V4_HORSERACING: + case SceneType.SCENE_WEEKEND4V4_DUCK: + this.SetWeekendPartyBattleResult(data); + break; + } + } + else + { + this.SetDragonCrusadeResult(data); + } + } + else + { + this.SetPVPResult(data); + } + } + else if (stageType != SceneType.SCENE_BIGMELEE_FIGHT) + { + if (stageType != SceneType.SCENE_BATTLEFIELD_FIGHT) + { + if (stageType == SceneType.SCENE_RIFT) + { + this.SetRiftData(data); + } + } + else + { + this.SetBattleFieldResult(data); + } + } + else + { + this.SetBigMeleeResult(data); + } + bool canDrawBox = this.CurrentSceneData.CanDrawBox; + if (canDrawBox) + { + this.SendQueryBoxs(false); + } + } + + private void SetWeekendPartyBattleResult(NewBattleResult data) + { + this.WeekendPartyBattleData.Init(); + StageRoleResult stageRoleResult = null; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + stageRoleResult = data.roleReward[i]; + bool flag2 = data.roleReward[i].weekend4v4roledata != null; + if (flag2) + { + this.WeekendPartyBattleData.PlayerRedBlue = stageRoleResult.weekend4v4roledata.redblue; + XSingleton.singleton.AddLog("WeekendPary result selfRedBlue = " + this.WeekendPartyBattleData.PlayerRedBlue.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + break; + } + } + bool flag3 = stageRoleResult == null; + if (!flag3) + { + for (int j = 0; j < data.roleReward.Count; j++) + { + WeekendPartyBattleRoleInfo weekendPartyBattleRoleInfo = new WeekendPartyBattleRoleInfo(); + WeekEnd4v4BattleRoleData weekend4v4roledata = data.roleReward[j].weekend4v4roledata; + bool flag4 = weekend4v4roledata != null && weekend4v4roledata.isline; + if (flag4) + { + weekendPartyBattleRoleInfo.roleName = weekend4v4roledata.rolename; + weekendPartyBattleRoleInfo.roleID = weekend4v4roledata.roleid; + weekendPartyBattleRoleInfo.kill = weekend4v4roledata.killCount; + weekendPartyBattleRoleInfo.beKilled = weekend4v4roledata.bekilledCount; + weekendPartyBattleRoleInfo.score = weekend4v4roledata.score; + weekendPartyBattleRoleInfo.redBlue = weekend4v4roledata.redblue; + weekendPartyBattleRoleInfo.RoleProf = (int)weekend4v4roledata.profession; + this.WeekendPartyBattleData.AllRoleData.Add(weekendPartyBattleRoleInfo); + } + } + bool flag5 = data.stageInfo != null && data.stageInfo.weekend4v4tmresult != null; + if (flag5) + { + this.WeekendPartyBattleData.WarTime = data.stageInfo.weekend4v4tmresult.teamSeconds; + this.WeekendPartyBattleData.Team1Score = ((this.WeekendPartyBattleData.PlayerRedBlue == 1u) ? data.stageInfo.weekend4v4tmresult.redTeamScore : data.stageInfo.weekend4v4tmresult.blueTeamScore); + this.WeekendPartyBattleData.Team2Score = ((this.WeekendPartyBattleData.PlayerRedBlue != 1u) ? data.stageInfo.weekend4v4tmresult.redTeamScore : data.stageInfo.weekend4v4tmresult.blueTeamScore); + this.WeekendPartyBattleData.HasRewardsID = data.stageInfo.weekend4v4tmresult.hasRewardsID; + XSingleton.singleton.AddLog("WeekendPary result redTeamScore = " + data.stageInfo.weekend4v4tmresult.redTeamScore.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("WeekendPary result blueTeamScore = " + data.stageInfo.weekend4v4tmresult.blueTeamScore.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + } + + private void SetRiftData(NewBattleResult data) + { + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + StageRoleResult stageRoleResult = data.roleReward[i]; + this.RiftResult = stageRoleResult.riftResult; + break; + } + } + } + + private void SetCustomBattleResult(NewBattleResult data) + { + this.CustomBattleData.Init(); + StageRoleResult stageRoleResult = null; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + stageRoleResult = data.roleReward[i]; + break; + } + } + bool flag2 = stageRoleResult == null; + if (!flag2) + { + this.CustomBattleData.GameType = (uint)XFastEnumIntEqualityComparer.ToInt(stageRoleResult.custombattle.type); + this.CustomBattleData.Result = stageRoleResult.custombattle.result; + for (int j = 0; j < data.roleReward.Count; j++) + { + XLevelRewardDocument.CustomBattleInfo item = new XLevelRewardDocument.CustomBattleInfo + { + RoleName = data.roleReward[j].rolename, + RoleID = data.roleReward[j].roleid, + RoleProf = data.roleReward[j].profession, + KillCount = data.roleReward[j].killcount, + MaxKillCount = data.roleReward[j].killcontinuemax, + DeathCount = (int)data.roleReward[j].deathcount, + Damage = (ulong)data.roleReward[j].damage, + Heal = (ulong)data.roleReward[j].treat, + PointChange = data.roleReward[j].custombattle.point, + IsMvp = false + }; + bool flag3 = stageRoleResult.custombattle.fightgroup == data.roleReward[j].custombattle.fightgroup; + if (flag3) + { + this.CustomBattleData.Team1Data.Add(item); + } + else + { + this.CustomBattleData.Team2Data.Add(item); + } + } + } + } + + public void SetDragonCrusadeWin() + { + } + + public void SetPlayerSelectChestID(int index) + { + this.SelectChestFrameData.Player.BoxID = index; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshSelectChest(); + } + } + + public void SetBattleDataList(NewBattleResult data) + { + this.BattleDataList.Clear(); + float num = 0f; + for (int i = 0; i < data.roleReward.Count; i++) + { + num += data.roleReward[i].damage; + } + bool flag = num == 0f; + if (flag) + { + num = 1f; + } + for (int j = 0; j < data.roleReward.Count; j++) + { + XLevelRewardDocument.BattleData item = new XLevelRewardDocument.BattleData + { + uid = data.roleReward[j].roleid, + Name = data.roleReward[j].rolename, + ProfID = data.roleReward[j].profession, + Rank = this.GetRankByBit(data.roleReward[j].stars), + isLeader = data.roleReward[j].isLeader, + DamageTotal = (ulong)data.roleReward[j].damage, + DamagePercent = data.roleReward[j].damage * 100f / num, + HealTotal = (ulong)data.roleReward[j].treat, + DeathCount = data.roleReward[j].deathcount, + ComboCount = data.roleReward[j].maxcombo + }; + this.BattleDataList.Add(item); + } + } + + private void SetSelectChestResult(NewBattleResult data) + { + this.SelectChestFrameData.Init(); + StageRoleResult stageRoleResult = null; + int num = -1; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + stageRoleResult = data.roleReward[i]; + num = i; + break; + } + } + bool flag2 = stageRoleResult == null; + if (!flag2) + { + this.SelectChestFrameData.Player.uid = stageRoleResult.roleid; + this.SelectChestFrameData.Player.Name = stageRoleResult.rolename; + this.SelectChestFrameData.Player.Rank = this.GetRankByBit(stageRoleResult.stars); + this.SelectChestFrameData.Player.Level = stageRoleResult.endlevel; + this.SelectChestFrameData.Player.ProfID = stageRoleResult.profession; + this.SelectChestFrameData.Player.isLeader = stageRoleResult.isLeader; + this.SelectChestFrameData.Player.BoxID = 0; + List chestList = new List + { + new BattleRewardChest(), + new BattleRewardChest(), + new BattleRewardChest(), + new BattleRewardChest() + }; + this.SelectChestFrameData.Player.chestList = chestList; + this.SelectChestFrameData.Player.isHelper = stageRoleResult.ishelper; + this.SelectChestFrameData.Player.noneReward = stageRoleResult.isboxexcept; + this.SelectChestFrameData.Others.Clear(); + for (int j = 0; j < data.roleReward.Count; j++) + { + bool flag3 = j != num; + if (flag3) + { + chestList = new List + { + new BattleRewardChest(), + new BattleRewardChest(), + new BattleRewardChest(), + new BattleRewardChest() + }; + XLevelRewardDocument.LevelRewardRoleData item = new XLevelRewardDocument.LevelRewardRoleData + { + uid = data.roleReward[j].roleid, + Name = data.roleReward[j].rolename, + Level = data.roleReward[j].endlevel, + ProfID = data.roleReward[j].profession, + isLeader = data.roleReward[j].isLeader, + Rank = this.GetRankByBit(data.roleReward[j].stars), + BoxID = 0, + chestList = chestList, + isHelper = data.roleReward[j].ishelper, + noneReward = data.roleReward[j].isboxexcept, + ServerID = data.roleReward[j].serverid + }; + this.SelectChestFrameData.Others.Add(item); + } + } + this.SelectChestFrameData.SelectLeftTime = XSingleton.singleton.GetInt("LevelFinishSelectChestTime"); + } + } + + private void SetGerenalResult(NewBattleResult data) + { + this.GerenalBattleData.Init(); + StageRoleResult stageRoleResult = null; + int num = -1; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + stageRoleResult = data.roleReward[i]; + num = i; + break; + } + } + bool flag2 = stageRoleResult == null; + if (!flag2) + { + this.GerenalBattleData.Score = stageRoleResult.score; + this.GerenalBattleData.Rank = this.GetRankByBit(this._rank); + List starsByBit = this.GetStarsByBit(this._rank); + for (int j = 0; j < starsByBit.Count; j++) + { + this.GerenalBattleData.Stars.Add(starsByBit[j]); + } + this.GerenalBattleData.Items.Clear(); + for (int k = 0; k < stageRoleResult.items.Count; k++) + { + bool flag3 = false; + for (int l = 0; l < this.GerenalBattleData.Items.Count; l++) + { + bool flag4 = stageRoleResult.items[k].itemID == this.GerenalBattleData.Items[l].itemID; + if (flag4) + { + flag3 = true; + this.GerenalBattleData.Items[l].itemCount += stageRoleResult.items[k].itemCount; + break; + } + } + bool flag5 = !flag3; + if (flag5) + { + this.GerenalBattleData.Items.Add(this.CopyItemBrief(stageRoleResult.items[k])); + } + } + bool flag6 = stageRoleResult.money > 0u; + if (flag6) + { + ItemBrief itemBrief = new ItemBrief + { + itemID = (uint)XFastEnumIntEqualityComparer.ToInt(ItemEnum.GOLD), + itemCount = stageRoleResult.money + }; + bool flag3 = false; + for (int m = 0; m < this.GerenalBattleData.Items.Count; m++) + { + bool flag7 = itemBrief.itemID == this.Items[m].itemID; + if (flag7) + { + flag3 = true; + this.GerenalBattleData.Items[m].itemCount += itemBrief.itemCount; + break; + } + } + bool flag8 = !flag3; + if (flag8) + { + this.GerenalBattleData.Items.Add(this.CopyItemBrief(itemBrief)); + } + } + this.GerenalBattleData.LevelFinishTime = data.stageInfo.timespan; + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + this.GerenalBattleData.StartLevel = stageRoleResult.startLevel; + this.GerenalBattleData.StartPercent = 1f * stageRoleResult.startExp / (float)xplayerData.GetLevelUpExp((int)(stageRoleResult.startLevel + 1u)); + this.GerenalBattleData.TotalExpPercent = stageRoleResult.endlevel - stageRoleResult.startLevel + 1f * stageRoleResult.endexp / (float)xplayerData.GetLevelUpExp((int)(stageRoleResult.endlevel + 1u)) - 1f * stageRoleResult.startExp / (float)xplayerData.GetLevelUpExp((int)(stageRoleResult.startLevel + 1u)); + this.GerenalBattleData.CurrentExpPercent = 1f * stageRoleResult.startExp / (float)xplayerData.GetLevelUpExp((int)(stageRoleResult.startLevel + 1u)); + this.GerenalBattleData.GrowExpPercent = this.GerenalBattleData.TotalExpPercent / 60f; + this.GerenalBattleData.TotalExp = stageRoleResult.exp; + this.GerenalBattleData.GuildBuff = 0f; + for (int n = 0; n < data.roleReward.Count; n++) + { + bool flag9 = num != n && data.roleReward[n].gid != 0UL && data.roleReward[num].gid == data.roleReward[n].gid; + if (flag9) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this.CurrentScene); + this.GerenalBattleData.GuildBuff = sceneData.GuildExpBounus; + break; + } + } + this.GerenalBattleData.SwitchLeftTime = 0; + this.GerenalBattleData.GuildExp = stageRoleResult.guildexp; + this.GerenalBattleData.GuildContribution = stageRoleResult.guildcon; + this.GerenalBattleData.GuildDragonCoin = stageRoleResult.guilddargon; + bool flag10 = stageRoleResult.teamcostreward != null; + if (flag10) + { + this.GerenalBattleData.GoldGroupReward = new ItemBrief(); + this.GerenalBattleData.GoldGroupReward.itemID = stageRoleResult.teamcostreward.itemID; + this.GerenalBattleData.GoldGroupReward.itemCount = stageRoleResult.teamcostreward.itemCount; + this.GerenalBattleData.GoldGroupReward.isbind = stageRoleResult.teamcostreward.isbind; + } + this.GerenalBattleData.isHelper = stageRoleResult.ishelper; + this.GerenalBattleData.noneReward = stageRoleResult.isboxexcept; + this.GerenalBattleData.isSeal = stageRoleResult.isexpseal; + } + } + + private void SetPVPResult(NewBattleResult data) + { + this.PvpBattleData.Init(); + PVPResult pvpresult = null; + int num = -1; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + pvpresult = data.roleReward[i].pvpresult; + num = i; + break; + } + } + bool flag2 = pvpresult == null; + if (!flag2) + { + this.IsWin = (pvpresult.wingroup == pvpresult.mygroup); + bool flag3 = pvpresult.wingroup == 3; + if (flag3) + { + this.PvpBattleData.PVPResult = 3; + } + else + { + bool flag4 = pvpresult.wingroup == pvpresult.mygroup; + if (flag4) + { + this.PvpBattleData.PVPResult = 1; + } + else + { + this.PvpBattleData.PVPResult = 2; + } + } + for (int j = 0; j < pvpresult.dayjoinreward.Count; j++) + { + this.PvpBattleData.DayJoinReward.Add(pvpresult.dayjoinreward[j]); + } + for (int k = 0; k < pvpresult.winreward.Count; k++) + { + this.PvpBattleData.WinReward.Add(pvpresult.winreward[k]); + } + this.PvpBattleData.Team1Data.Add(this.GetPVPRoleInfo(num, data, true)); + for (int l = 0; l < data.roleReward.Count; l++) + { + bool flag5 = l == num; + if (!flag5) + { + bool flag6 = pvpresult.mygroup == data.roleReward[l].pvpresult.mygroup; + if (flag6) + { + this.PvpBattleData.Team1Data.Add(this.GetPVPRoleInfo(l, data, true)); + } + else + { + this.PvpBattleData.Team2Data.Add(this.GetPVPRoleInfo(l, data, true)); + } + } + } + } + } + + private void SetHeroBattleResult(NewBattleResult data) + { + this.HeroData.Init(); + uint num = uint.MaxValue; + int num2 = -1; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + this.HeroData.Result = data.roleReward[i].heroresult.over; + num = data.roleReward[i].heroresult.teamid; + num2 = i; + break; + } + } + bool flag2 = num == uint.MaxValue; + if (!flag2) + { + this.HeroData.Team1Data.Add(this.GetPVPRoleInfo(num2, data, false)); + for (int j = 0; j < data.roleReward[num2].heroresult.winreward.Count; j++) + { + this.HeroData.WinReward.Add(this.CopyItemBrief(data.roleReward[num2].heroresult.winreward[j])); + } + for (int k = 0; k < data.roleReward[num2].heroresult.dayjoinreward.Count; k++) + { + this.HeroData.DayJoinReward.Add(this.CopyItemBrief(data.roleReward[num2].heroresult.dayjoinreward[k])); + } + for (int l = 0; l < data.roleReward.Count; l++) + { + bool flag3 = data.roleReward[l].heroresult.mvpid == data.roleReward[l].roleid; + if (flag3) + { + this.HeroData.MvpData = this.GetPVPRoleInfo(l, data, false); + this.HeroData.MvpHeroID = data.roleReward[l].heroresult.mvpheroid; + } + bool flag4 = data.roleReward[l].killcount > this.HeroData.KillMax; + if (flag4) + { + this.HeroData.KillMax = data.roleReward[l].killcount; + } + bool flag5 = (ulong)data.roleReward[l].deathcount < (ulong)((long)this.HeroData.DeathMin); + if (flag5) + { + this.HeroData.DeathMin = (int)data.roleReward[l].deathcount; + } + bool flag6 = (ulong)data.roleReward[l].assitnum > (ulong)((long)this.HeroData.AssitMax); + if (flag6) + { + this.HeroData.AssitMax = (int)data.roleReward[l].assitnum; + } + bool flag7 = data.roleReward[l].damage > this.HeroData.DamageMax; + if (flag7) + { + this.HeroData.DamageMax = (ulong)data.roleReward[l].damage; + } + bool flag8 = data.roleReward[l].behitdamage > this.HeroData.BeHitMax; + if (flag8) + { + this.HeroData.BeHitMax = data.roleReward[l].behitdamage; + } + bool flag9 = l == num2; + if (!flag9) + { + bool flag10 = num == data.roleReward[l].heroresult.teamid; + if (flag10) + { + this.HeroData.Team1Data.Add(this.GetPVPRoleInfo(l, data, false)); + } + else + { + this.HeroData.Team2Data.Add(this.GetPVPRoleInfo(l, data, false)); + } + } + } + } + } + + private void SetMobaBattleResult(NewBattleResult data) + { + this.MobaData.Init(); + XMobaBattleDocument specificDocument = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + int num = -1; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + this.MobaData.Result = (data.roleReward[i].mobabattle.isWin ? HeroBattleOver.HeroBattleOver_Win : HeroBattleOver.HeroBattleOver_Lose); + num = i; + break; + } + } + bool flag2 = num == -1; + if (!flag2) + { + this.MobaData.Team1Data.Add(this.GetMobaRoleInfo(num, data, false)); + for (int j = 0; j < data.roleReward[num].mobabattle.winreward.Count; j++) + { + this.MobaData.WinReward.Add(this.CopyItemBrief(data.roleReward[num].mobabattle.winreward[j])); + } + this.MobaData.BeHitMaxUid = data.stageInfo.mobabattle.behitdamagemaxid; + this.MobaData.DamageMaxUid = data.stageInfo.mobabattle.damagemaxid; + for (int k = 0; k < data.roleReward.Count; k++) + { + bool flag3 = data.stageInfo.mobabattle.mvpid == data.roleReward[k].roleid; + if (flag3) + { + this.MobaData.MvpData = this.GetMobaRoleInfo(k, data, false); + this.MobaData.MvpHeroID = data.roleReward[k].mobabattle.heroid; + } + bool flag4 = data.roleReward[k].killcount > this.MobaData.KillMax; + if (flag4) + { + this.MobaData.KillMax = data.roleReward[k].killcount; + } + bool flag5 = (ulong)data.roleReward[k].deathcount < (ulong)((long)this.MobaData.DeathMin); + if (flag5) + { + this.MobaData.DeathMin = (int)data.roleReward[k].deathcount; + } + bool flag6 = (ulong)data.roleReward[k].assitnum > (ulong)((long)this.MobaData.AssitMax); + if (flag6) + { + this.MobaData.AssitMax = (int)data.roleReward[k].assitnum; + } + bool flag7 = k == num; + if (!flag7) + { + bool flag8 = specificDocument.isAlly(data.roleReward[k].roleid); + if (flag8) + { + this.MobaData.Team1Data.Add(this.GetMobaRoleInfo(k, data, false)); + } + else + { + this.MobaData.Team2Data.Add(this.GetMobaRoleInfo(k, data, false)); + } + } + } + } + } + + private void SetGuildMineResult(NewBattleResult data) + { + this.GuildMineBattleData.Init(); + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + this.GuildMineBattleData.item = data.roleReward[i].items; + this.GuildMineBattleData.mine = data.roleReward[i].reswar; + break; + } + } + } + + private void SetRaceResult(NewBattleResult data) + { + this.RaceBattleData.Init(); + for (int i = 0; i < data.roleReward.Count; i++) + { + StageRoleResult stageRoleResult = data.roleReward[i]; + bool flag = stageRoleResult.money > 0u; + if (flag) + { + ItemBrief item = new ItemBrief + { + itemID = (uint)XFastEnumIntEqualityComparer.ToInt(ItemEnum.GOLD), + itemCount = stageRoleResult.money + }; + stageRoleResult.items.Add(item); + } + this.RaceBattleData.rolename.Add(stageRoleResult.rolename); + this.RaceBattleData.profession.Add(stageRoleResult.profession); + this.RaceBattleData.item.Add(stageRoleResult.items); + this.RaceBattleData.time.Add(stageRoleResult.horse.time); + this.RaceBattleData.petid.Add(stageRoleResult.horse.horse); + this.RaceBattleData.rank.Add(stageRoleResult.horse.rank); + } + } + + private void SetInviFightResult(NewBattleResult data) + { + this.InvFightBattleData.Init(); + int num = 0; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + num = i; + break; + } + } + StageRoleResult stageRoleResult = (num < data.roleReward.Count) ? data.roleReward[num] : null; + bool flag2 = stageRoleResult != null; + if (flag2) + { + this.InvFightBattleData.isWin = (stageRoleResult.invfightresult.resulttype == PkResultType.PkResult_Win); + this.InvFightBattleData.rivalName = stageRoleResult.invfightresult.opname; + } + } + + private void SetSkyArenaResult(NewBattleResult data) + { + this.SkyArenaBattleData.Init(); + for (int i = 0; i < data.roleReward.Count; i++) + { + StageRoleResult stageRoleResult = data.roleReward[i]; + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + this.SkyArenaBattleData.roleid.Add(stageRoleResult.roleid); + this.SkyArenaBattleData.killcount.Add(stageRoleResult.killcount); + this.SkyArenaBattleData.deathcount.Add((int)stageRoleResult.deathcount); + this.SkyArenaBattleData.damage.Add((ulong)stageRoleResult.damage); + this.SkyArenaBattleData.ismvp.Add(stageRoleResult.skycity.ismvp); + this.SkyArenaBattleData.item = stageRoleResult.skycity.item; + this.SkyArenaBattleData.floor = stageRoleResult.skycity.floor; + } + } + for (int j = 0; j < data.roleReward.Count; j++) + { + bool flag2 = data.roleReward[j].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (!flag2) + { + StageRoleResult stageRoleResult = data.roleReward[j]; + this.SkyArenaBattleData.roleid.Add(stageRoleResult.roleid); + this.SkyArenaBattleData.killcount.Add(stageRoleResult.killcount); + this.SkyArenaBattleData.deathcount.Add((int)stageRoleResult.deathcount); + this.SkyArenaBattleData.damage.Add((ulong)stageRoleResult.damage); + this.SkyArenaBattleData.ismvp.Add(stageRoleResult.skycity.ismvp); + } + } + } + + private void SetAbyssPartyResult(NewBattleResult data) + { + this.AbyssPartyBattleData.Init(); + this.AbyssPartyBattleData.Time = data.stageInfo.timespan; + bool flag = data.roleReward.Count > 0; + if (flag) + { + this.AbyssPartyBattleData.item = data.roleReward[0].items; + } + this.AbyssPartyBattleData.AbysssPartyListId = (int)data.stageInfo.abyssid; + } + + private void SetBigMeleeResult(NewBattleResult data) + { + this.BigMeleeBattleData.Init(); + bool flag = data.roleReward.Count == 0; + if (!flag) + { + this.BigMeleeBattleData.rank = data.roleReward[0].bigmelee.rank; + this.BigMeleeBattleData.score = data.roleReward[0].bigmelee.score; + this.BigMeleeBattleData.kill = data.roleReward[0].bigmelee.kill; + this.BigMeleeBattleData.death = data.roleReward[0].bigmelee.death; + this.BigMeleeBattleData.item = data.roleReward[0].bigmelee.items; + } + } + + private void SetBattleFieldResult(NewBattleResult data) + { + this.BattleFieldBattleData.Init(); + this.BattleFieldBattleData.allend = data.stageInfo.end; + for (int i = 0; i < data.roleReward.Count; i++) + { + XLevelRewardDocument.BattleRankRoleInfo battleRankRoleInfo = default(XLevelRewardDocument.BattleRankRoleInfo); + battleRankRoleInfo.RoleID = data.roleReward[i].battlefield.roleid; + battleRankRoleInfo.Rank = data.roleReward[i].battlefield.rank; + battleRankRoleInfo.Point = data.roleReward[i].battlefield.point; + battleRankRoleInfo.KillCount = data.roleReward[i].battlefield.killer; + battleRankRoleInfo.DeathCount = data.roleReward[i].battlefield.death; + battleRankRoleInfo.ServerName = data.roleReward[i].battlefield.svrname; + battleRankRoleInfo.isMVP = data.roleReward[i].battlefield.ismvp; + battleRankRoleInfo.Damage = (ulong)data.roleReward[i].battlefield.hurt; + battleRankRoleInfo.Name = data.roleReward[i].battlefield.name; + battleRankRoleInfo.RoleProf = (int)data.roleReward[i].battlefield.job; + battleRankRoleInfo.CombKill = data.roleReward[i].battlefield.killstreak; + this.BattleFieldBattleData.MemberData.Add(battleRankRoleInfo); + bool flag = battleRankRoleInfo.RoleID == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + this.BattleFieldBattleData.item = data.roleReward[i].items; + } + } + } + + public void ShowBattleRoyaleResultUI() + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SkillHandler.ResetPressState(); + DlgBase.singleton.SetVisiblePure(false); + DlgBase.singleton.Show(false); + DlgBase.singleton.SetFakeHide(true); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisiblePure(false); + DlgBase.singleton.Show(false); + DlgBase.singleton.SetFakeHide(false); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetVisiblePure(false); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.SetVisible(false, true); + } + XSingleton.singleton.Cancel(); + bool flag5 = !DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.SetVisible(true, true); + } + DlgBase.singleton.ShowLevelReward(SceneType.SCENE_SURVIVE); + } + + private void SetDragonCrusadeResult(NewBattleResult data) + { + this.DragonCrusadeDataWin.Init(); + StageRoleResult stageRoleResult = null; + int num = -1; + for (int i = 0; i < data.roleReward.Count; i++) + { + bool flag = data.roleReward[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + stageRoleResult = data.roleReward[i]; + num = i; + this.DragonCrusadeDataWin.MyResult = data.roleReward[i].deresult; + break; + } + } + bool flag2 = stageRoleResult == null; + if (!flag2) + { + this.DragonCrusadeDataWin.Player.uid = stageRoleResult.roleid; + this.DragonCrusadeDataWin.Player.Name = stageRoleResult.rolename; + this.DragonCrusadeDataWin.Player.Rank = this.GetRankByBit(stageRoleResult.stars); + this.DragonCrusadeDataWin.Player.Level = stageRoleResult.endlevel; + this.DragonCrusadeDataWin.Player.ProfID = stageRoleResult.profession; + this.DragonCrusadeDataWin.Player.isLeader = stageRoleResult.isLeader; + this.DragonCrusadeDataWin.Player.BoxID = 0; + this.DragonCrusadeDataWin.Player.chestList = stageRoleResult.box; + this.DragonCrusadeDataWin.Player.isHelper = stageRoleResult.ishelper; + this.DragonCrusadeDataWin.Others.Clear(); + for (int j = 0; j < data.roleReward.Count; j++) + { + bool flag3 = j != num; + if (flag3) + { + XLevelRewardDocument.LevelRewardRoleData item = new XLevelRewardDocument.LevelRewardRoleData + { + uid = data.roleReward[j].roleid, + Name = data.roleReward[j].rolename, + Level = data.roleReward[j].endlevel, + ProfID = data.roleReward[j].profession, + isLeader = data.roleReward[j].isLeader, + Rank = this.GetRankByBit(data.roleReward[j].stars), + BoxID = 0, + chestList = data.roleReward[j].box, + isHelper = data.roleReward[j].ishelper + }; + this.DragonCrusadeDataWin.Others.Add(item); + } + } + } + } + + private XLevelRewardDocument.PVPRoleInfo GetPVPRoleInfo(int id, NewBattleResult data, bool isCapData = true) + { + return new XLevelRewardDocument.PVPRoleInfo + { + uID = data.roleReward[id].roleid, + Name = data.roleReward[id].rolename, + Prof = data.roleReward[id].profession, + Level = data.roleReward[id].endlevel, + KillCount = data.roleReward[id].killcount, + MaxKillCount = data.roleReward[id].killcontinuemax, + DeathCount = data.roleReward[id].deathcount, + AssitCount = data.roleReward[id].assitnum, + IsMvp = (isCapData ? data.roleReward[id].pvpresult.ismvp : (data.roleReward[id].heroresult.mvpid == data.roleReward[id].roleid || data.roleReward[id].heroresult.losemvpid == data.roleReward[id].roleid)), + Damage = (ulong)data.roleReward[id].damage, + BeHit = data.roleReward[id].behitdamage, + Kda = ((data.roleReward[id].heroresult == null) ? 0f : data.roleReward[id].heroresult.kda), + Heal = (ulong)data.roleReward[id].treat, + ServerID = data.roleReward[id].serverid, + militaryRank = data.roleReward[id].military_rank + }; + } + + private XLevelRewardDocument.PVPRoleInfo GetMobaRoleInfo(int id, NewBattleResult data, bool isCapData = true) + { + return new XLevelRewardDocument.PVPRoleInfo + { + uID = data.roleReward[id].roleid, + Name = data.roleReward[id].rolename, + Prof = data.roleReward[id].profession, + Level = data.roleReward[id].endlevel, + KillCount = data.roleReward[id].killcount, + MaxKillCount = (int)data.roleReward[id].multikillcountmax, + DeathCount = data.roleReward[id].deathcount, + AssitCount = data.roleReward[id].assitnum, + IsMvp = (data.roleReward[id].roleid == data.stageInfo.mobabattle.mvpid || data.roleReward[id].roleid == data.stageInfo.mobabattle.losemvpid), + Damage = (ulong)data.roleReward[id].damage, + BeHit = data.roleReward[id].behitdamage, + Kda = ((data.roleReward[id].mobabattle == null) ? 0f : data.roleReward[id].mobabattle.kda), + Heal = (ulong)data.roleReward[id].treat, + ServerID = data.roleReward[id].serverid, + militaryRank = data.roleReward[id].military_rank, + isescape = data.roleReward[id].mobabattle.isescape + }; + } + + private List GetStarsByBit(uint rank) + { + List list = new List(); + int i = 0; + int num = 1; + while (i < 5) + { + bool flag = ((ulong)rank & (ulong)((long)num)) > 0UL; + if (flag) + { + list.Add(1u); + } + else + { + list.Add(0u); + } + i++; + num <<= 1; + } + return list; + } + + public uint GetRankByBit(uint bit) + { + uint num = 0u; + while (bit > 0u) + { + bool flag = (bit & 1u) == 1u; + if (flag) + { + num += 1u; + } + bit >>= 1; + } + return num; + } + + public ItemBrief CopyItemBrief(ItemBrief item) + { + return new ItemBrief + { + itemID = item.itemID, + itemCount = item.itemCount, + isbind = item.isbind + }; + } + + public void DestroyFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.World && (this._requestServer || XSingleton.singleton.SyncMode); + if (flag) + { + XSingleton.singleton.SendBattleReport(null); + } + } + + public void ReportPlayer(ulong uid, List list) + { + RpcC2G_ReportBadPlayer rpcC2G_ReportBadPlayer = new RpcC2G_ReportBadPlayer(); + rpcC2G_ReportBadPlayer.oArg.roleid = uid; + rpcC2G_ReportBadPlayer.oArg.reason.Clear(); + for (int i = 0; i < list.Count; i++) + { + bool state = list[i].state; + if (state) + { + rpcC2G_ReportBadPlayer.oArg.reason.Add(list[i].type); + } + } + rpcC2G_ReportBadPlayer.oArg.scenetype = (uint)XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.SceneType); + XSingleton.singleton.Send(rpcC2G_ReportBadPlayer); + } + + public List GetMobaIconList(XLevelRewardDocument.PVPRoleInfo data, ulong DamageMaxUid = 0UL, ulong BeHitMaxUid = 0UL, int KillMax = 0, int AssistsMax = 0) + { + List list = new List(); + bool flag = data.MaxKillCount > 2; + if (flag) + { + int maxKillCount = data.MaxKillCount; + if (maxKillCount != 3) + { + if (maxKillCount != 4) + { + list.Add("ic_pf5"); + } + else + { + list.Add("ic_pf4"); + } + } + else + { + list.Add("ic_pf3"); + } + } + bool flag2 = data.KillCount == KillMax && KillMax != 0; + if (flag2) + { + list.Add("ic_pf1"); + } + bool flag3 = (ulong)data.AssitCount == (ulong)((long)AssistsMax) && AssistsMax != 0; + if (flag3) + { + list.Add("ic_pf6"); + } + bool flag4 = data.uID == BeHitMaxUid && BeHitMaxUid > 0UL; + if (flag4) + { + list.Add("ic_pf2"); + } + bool flag5 = data.uID == DamageMaxUid && DamageMaxUid > 0UL; + if (flag5) + { + list.Add("ic_pf0"); + } + bool isescape = data.isescape; + if (isescape) + { + list.Add("ic_pf8"); + } + return list; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelRewardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelRewardDocument.cs.meta new file mode 100644 index 00000000..9ab2ae1b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRewardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 58e9f98f106b1b04f8de22ad29380fe3 +timeCreated: 1611403761 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelRewardView.cs b/Client/Assets/Scripts/XMainClient/XLevelRewardView.cs new file mode 100644 index 00000000..bc1949bd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRewardView.cs @@ -0,0 +1,360 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelRewardView : DlgBase + { + public override string fileName + { + get + { + return "Battle/LevelRewardDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public DlgHandlerBase _DlgHandler = null; + + private LevelRewardGerenalHandler _GerenalHandler = null; + + private LevelRewardSelectChestHandler _SelectChestHandler = null; + + private LevelRewardPVPHandler _PVPHandler = null; + + private LevelRewardSkyArenaHandler _SkyArenaHandler = null; + + private LevelRewardBigMeleeHandler _BigMeleeHandler = null; + + private LevelRewardBattleFieldHandler _BattleFieldHandler = null; + + private LevelRewardAbyssPartyHandler _AbyssPartyHandler = null; + + private LevelRewardRaceHandler _RaceHandler = null; + + private LevelRewardBattleDataHandler _BattleDataHandler = null; + + private LevelRewardStageFailHandler _StageFailHandler = null; + + private LevelRewardArenaHandler _ArenaHandler = null; + + private LevelRewardActivityHandler _ActivityHandler = null; + + private LevelRewardSuperRiskHandler _SuperRiskHandler = null; + + private LevelRewardSuperRiskFailHandler _SuperRiskFailHandler = null; + + private LevelRewardProfTrialsHandler _ProfTrialsHandler = null; + + private LevelRewardTerritoryHandler _territoryHandler = null; + + private LevelRewardHeroBattleHandler _heroBattleHandler = null; + + private LevelRewardMobaBattleHandler _mobaBattleHandler = null; + + private LevelRewardCustomBattleHandler _customBattleHandler = null; + + private LevelRewardWeekendPartyBattleHandler _weekendPartyBattleHandler = null; + + private LevelRewardBattleRoyaleHandler _battleRoyaleHandler = null; + + public LevelRewardReportHandler _reportHandler = null; + + private LevelRewardRiftHandler _riftHandler = null; + + private XLevelRewardDocument _doc; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._GerenalHandler); + DlgHandlerBase.EnsureUnload(ref this._SelectChestHandler); + DlgHandlerBase.EnsureUnload(ref this._PVPHandler); + DlgHandlerBase.EnsureUnload(ref this._SkyArenaHandler); + DlgHandlerBase.EnsureUnload(ref this._BigMeleeHandler); + DlgHandlerBase.EnsureUnload(ref this._BattleFieldHandler); + DlgHandlerBase.EnsureUnload(ref this._AbyssPartyHandler); + DlgHandlerBase.EnsureUnload(ref this._RaceHandler); + DlgHandlerBase.EnsureUnload(ref this._BattleDataHandler); + DlgHandlerBase.EnsureUnload(ref this._StageFailHandler); + DlgHandlerBase.EnsureUnload(ref this._ArenaHandler); + DlgHandlerBase.EnsureUnload(ref this._ActivityHandler); + DlgHandlerBase.EnsureUnload(ref this._SuperRiskHandler); + DlgHandlerBase.EnsureUnload(ref this._SuperRiskFailHandler); + DlgHandlerBase.EnsureUnload(ref this._ProfTrialsHandler); + DlgHandlerBase.EnsureUnload(ref this._territoryHandler); + DlgHandlerBase.EnsureUnload(ref this._heroBattleHandler); + DlgHandlerBase.EnsureUnload(ref this._mobaBattleHandler); + DlgHandlerBase.EnsureUnload(ref this._customBattleHandler); + DlgHandlerBase.EnsureUnload(ref this._reportHandler); + DlgHandlerBase.EnsureUnload(ref this._weekendPartyBattleHandler); + DlgHandlerBase.EnsureUnload(ref this._battleRoyaleHandler); + DlgHandlerBase.EnsureUnload(ref this._riftHandler); + this._DlgHandler = null; + base.OnUnload(); + } + + public void SetPowerpoint(int value) + { + DlgBase.singleton.ShowPPT(value); + } + + public void ShowLevelReward(SceneType type) + { + bool flag = this._DlgHandler != null; + if (flag) + { + this._DlgHandler.SetVisible(false); + this._DlgHandler = null; + } + switch (type) + { + case SceneType.SCENE_ARENA: + case SceneType.SCENE_PK: + case SceneType.SCENE_INVFIGHT: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._ArenaHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_BOSSRUSH: + case SceneType.SCENE_TOWER: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._ActivityHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_PVP: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._PVPHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_RISK: + case SceneType.SCENE_RESWAR_PVP: + case SceneType.SCENE_RESWAR_PVE: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._SuperRiskHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SKYCITY_FIGHTING: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._SkyArenaHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_PROF_TRIALS: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._ProfTrialsHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_HORSE_RACE: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._RaceHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_HEROBATTLE: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._heroBattleHandler, base.uiBehaviour.transform, false, null); + this._heroBattleHandler.PlayCutScene(); + return; + case SceneType.SCENE_CASTLE_WAIT: + case SceneType.SCENE_CASTLE_FIGHT: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._territoryHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_ABYSS_PARTY: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._AbyssPartyHandler, base.uiBehaviour.transform, true, this); + return; + case SceneType.SCENE_CUSTOMPK: + case SceneType.SCENE_CUSTOMPKTWO: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._customBattleHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_MOBA: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._mobaBattleHandler, base.uiBehaviour.transform, false, null); + this._mobaBattleHandler.PlayCutScene(); + return; + case SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT: + case SceneType.SCENE_WEEKEND4V4_GHOSTACTION: + case SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE: + case SceneType.SCENE_WEEKEND4V4_CRAZYBOMB: + case SceneType.SCENE_WEEKEND4V4_HORSERACING: + case SceneType.SCENE_WEEKEND4V4_DUCK: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._weekendPartyBattleHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_BIGMELEE_FIGHT: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._BigMeleeHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_BATTLEFIELD_FIGHT: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._BattleFieldHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_SURVIVE: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._battleRoyaleHandler, base.uiBehaviour.transform, true, null); + return; + case SceneType.SCENE_RIFT: + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._riftHandler, base.uiBehaviour.transform, true, null); + return; + } + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._GerenalHandler, base.uiBehaviour.transform, true, null); + } + + protected override void OnShow() + { + base.OnShow(); + XPlatformAbilityDocument.Doc.QueryQQVipInfo(); + } + + public void RefreshQQVip() + { + bool flag = base.IsVisible() && this._GerenalHandler != null && this._GerenalHandler.IsVisible(); + if (flag) + { + this._GerenalHandler.RefreshQQVipInfo(this._doc.CurrentStage); + } + } + + public void ShowSelectChestFrame() + { + bool flag = this._DlgHandler != null; + if (flag) + { + this._DlgHandler.SetVisible(false); + this._DlgHandler = null; + } + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._SelectChestHandler, base.uiBehaviour.transform, true, null); + } + + public void ShowBattleDataFrame() + { + DlgHandlerBase.EnsureCreate(ref this._BattleDataHandler, base.uiBehaviour.transform, true, null); + } + + public void RefreshSelectChest() + { + bool flag = this._SelectChestHandler != null && this._DlgHandler == this._SelectChestHandler && this._SelectChestHandler.CurrentStatus != LevelRewardSelectChestHandler.SelectChestStatus.SelectFinish; + if (flag) + { + this._SelectChestHandler.RefreshSelectChest(); + } + } + + public void RefreshSelectChestLeftTime() + { + bool flag = this._SelectChestHandler != null && this._DlgHandler == this._SelectChestHandler && this._SelectChestHandler.CurrentStatus != LevelRewardSelectChestHandler.SelectChestStatus.SelectFinish; + if (flag) + { + this._SelectChestHandler.RefreshLeftTime(); + } + } + + public void ShowAllChest() + { + bool flag = this._SelectChestHandler != null && this._DlgHandler == this._SelectChestHandler && this._SelectChestHandler.CurrentStatus != LevelRewardSelectChestHandler.SelectChestStatus.SelectFinish; + if (flag) + { + this._SelectChestHandler.ShowAllChest(); + } + } + + public void SetPeerResult() + { + bool flag = this._SelectChestHandler != null && this._DlgHandler == this._SelectChestHandler && this._SelectChestHandler.CurrentStatus != LevelRewardSelectChestHandler.SelectChestStatus.SelectFinish; + if (flag) + { + this._SelectChestHandler.SetPeerResult(); + } + } + + public void ShowStageFailFrame(SceneType type) + { + bool flag = this._DlgHandler != null; + if (flag) + { + this._DlgHandler.SetVisible(false); + this._DlgHandler = null; + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.Show(false); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + } + DlgBase.singleton.SetFakeHide(true); + if (type <= SceneType.SCENE_RESWAR_PVE) + { + if (type == SceneType.SCENE_RISK || type - SceneType.SCENE_RESWAR_PVP <= 1) + { + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._SuperRiskFailHandler, base.uiBehaviour.transform, true, null); + return; + } + } + else if (type == SceneType.SCENE_CUSTOMPK || type == SceneType.SCENE_CUSTOMPKTWO) + { + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._customBattleHandler, base.uiBehaviour.transform, true, null); + return; + } + this._DlgHandler = DlgHandlerBase.EnsureCreate(ref this._StageFailHandler, base.uiBehaviour.transform, true, null); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this._DlgHandler != null; + if (flag) + { + this._DlgHandler.OnUpdate(); + } + } + + public LevelRewardTerritoryHandler GetTerritoryHandler() + { + return this._territoryHandler; + } + + public void CutSceneShowEnd() + { + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType != SceneType.SCENE_HEROBATTLE) + { + if (sceneType == SceneType.SCENE_MOBA) + { + bool flag = this._mobaBattleHandler != null; + if (flag) + { + this._mobaBattleHandler.ShowUI(); + } + } + } + else + { + bool flag2 = this._heroBattleHandler != null; + if (flag2) + { + this._heroBattleHandler.ShowUI(); + } + } + } + + public void ShowReport(ulong uid, string name, IXUISprite reportBtn) + { + bool flag = this._reportHandler == null; + if (flag) + { + DlgHandlerBase.EnsureCreate(ref this._reportHandler, base.uiBehaviour.transform, true, null); + } + else + { + this._reportHandler.SetVisible(true); + } + this._reportHandler.InitShow(uid, name, reportBtn); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelRewardView.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelRewardView.cs.meta new file mode 100644 index 00000000..2c8b43be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelRewardView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b0f2376061b06b34cb7fedc0f462c2be +timeCreated: 1611404354 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelScriptMgr.cs b/Client/Assets/Scripts/XMainClient/XLevelScriptMgr.cs new file mode 100644 index 00000000..a6fc75c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelScriptMgr.cs @@ -0,0 +1,1348 @@ +using System; +using System.Collections.Generic; +using System.IO; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelScriptMgr : XSingleton + { + public uint CommandCount = 0u; + + private List _CmdQueue = new List(); + + private LevelCmdDesc _currentCmd; + + public List _externalString = new List(); + + public List _onceString = new List(); + + private Dictionary> _LevelScripts = new Dictionary>(); + + private List _LevelInfos = new List(); + + public void RunScript(string funcName) + { + XSingleton.singleton.AddGreenLog("add script ", funcName, null, null, null, null); + bool flag = !this._LevelScripts.ContainsKey(funcName); + if (!flag) + { + bool flag2 = this._CmdQueue != null && this._CmdQueue.Count > 0; + if (flag2) + { + XSingleton.singleton.AddGreenLog("script function append", null, null, null, null, null); + } + bool flag3 = this._CmdQueue.Count == 0; + if (flag3) + { + this._currentCmd = null; + } + List list = this._LevelScripts[funcName]; + for (int i = 0; i < list.Count; i++) + { + list[i].Reset(); + this._CmdQueue.Add(list[i]); + } + this.Update(); + } + } + + public bool IsCurrentCmdFinished() + { + bool flag = this._currentCmd == null; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._currentCmd.state == XCmdState.Cmd_Finished; + result = flag2; + } + return result; + } + + public void ClearWallInfo() + { + this._LevelInfos.Clear(); + } + + public void PreloadLevelScript(string file) + { + this.Reset(); + this.ClearWallInfo(); + Stream stream = XSingleton.singleton.ReadText("Table/" + file, ".txt", true); + StreamReader streamReader = new StreamReader(stream); + string key = ""; + for (;;) + { + string text = streamReader.ReadLine(); + bool flag = text == null; + if (flag) + { + break; + } + text = text.Trim(); + bool flag2 = text.StartsWith("func:"); + if (flag2) + { + string text2 = text.Substring(5); + List value = new List(); + this._LevelScripts.Add(text2, value); + key = text2; + } + bool flag3 = text.StartsWith("talkl"); + if (flag3) + { + string[] array = text.Split(XGlobalConfig.TabSeparator); + LevelCmdDesc levelCmdDesc = new LevelCmdDesc(); + levelCmdDesc.cmd = LevelCmd.Level_Cmd_TalkL; + levelCmdDesc.Param.Add(array[1]); + levelCmdDesc.Param.Add(array[2]); + bool flag4 = array.Length > 3; + if (flag4) + { + levelCmdDesc.Param.Add(array[3]); + } + this._LevelScripts[key].Add(levelCmdDesc); + } + else + { + bool flag5 = text.StartsWith("talkr"); + if (flag5) + { + string[] array2 = text.Split(XGlobalConfig.TabSeparator); + LevelCmdDesc levelCmdDesc2 = new LevelCmdDesc(); + levelCmdDesc2.cmd = LevelCmd.Level_Cmd_TalkR; + levelCmdDesc2.Param.Add(array2[1]); + levelCmdDesc2.Param.Add(array2[2]); + bool flag6 = array2.Length > 3; + if (flag6) + { + levelCmdDesc2.Param.Add(array2[3]); + } + this._LevelScripts[key].Add(levelCmdDesc2); + } + else + { + bool flag7 = text.StartsWith("stoptalk"); + if (flag7) + { + LevelCmdDesc levelCmdDesc3 = new LevelCmdDesc(); + levelCmdDesc3.cmd = LevelCmd.Level_Cmd_Notalk; + this._LevelScripts[key].Add(levelCmdDesc3); + } + else + { + bool flag8 = text.StartsWith("addbuff"); + if (flag8) + { + string[] array3 = text.Split(XGlobalConfig.TabSeparator); + bool flag9 = array3.Length >= 4; + if (flag9) + { + LevelCmdDesc levelCmdDesc4 = new LevelCmdDesc(); + levelCmdDesc4.cmd = LevelCmd.Level_Cmd_Addbuff; + levelCmdDesc4.Param.Add(array3[1]); + levelCmdDesc4.Param.Add(array3[2]); + levelCmdDesc4.Param.Add(array3[3]); + this._LevelScripts[key].Add(levelCmdDesc4); + } + } + else + { + bool flag10 = text.StartsWith("removebuff"); + if (flag10) + { + string[] array4 = text.Split(XGlobalConfig.TabSeparator); + bool flag11 = array4.Length >= 3; + if (flag11) + { + LevelCmdDesc levelCmdDesc5 = new LevelCmdDesc(); + levelCmdDesc5.cmd = LevelCmd.Level_Cmd_Removebuff; + levelCmdDesc5.Param.Add(array4[1]); + levelCmdDesc5.Param.Add(array4[2]); + this._LevelScripts[key].Add(levelCmdDesc5); + } + } + else + { + bool flag12 = text.StartsWith("hidebillboard"); + if (flag12) + { + string[] array5 = text.Split(XGlobalConfig.TabSeparator); + bool flag13 = array5.Length >= 3; + if (flag13) + { + LevelCmdDesc levelCmdDesc6 = new LevelCmdDesc(); + levelCmdDesc6.cmd = LevelCmd.Level_Cmd_HideBillboard; + levelCmdDesc6.Param.Add(array5[1]); + levelCmdDesc6.Param.Add(array5[2]); + this._LevelScripts[key].Add(levelCmdDesc6); + } + } + else + { + bool flag14 = text.StartsWith("changebody"); + if (flag14) + { + string[] array6 = text.Split(XGlobalConfig.TabSeparator); + bool flag15 = array6.Length >= 2; + if (flag15) + { + LevelCmdDesc levelCmdDesc7 = new LevelCmdDesc(); + levelCmdDesc7.cmd = LevelCmd.Level_Cmd_ChangeBody; + levelCmdDesc7.Param.Add(array6[1]); + this._LevelScripts[key].Add(levelCmdDesc7); + } + } + else + { + bool flag16 = text.StartsWith("justfx"); + if (flag16) + { + string[] array7 = text.Split(XGlobalConfig.TabSeparator); + bool flag17 = array7.Length >= 2; + if (flag17) + { + LevelCmdDesc levelCmdDesc8 = new LevelCmdDesc(); + levelCmdDesc8.cmd = LevelCmd.Level_Cmd_JustFx; + levelCmdDesc8.Param.Add(array7[1]); + this._LevelScripts[key].Add(levelCmdDesc8); + } + } + else + { + bool flag18 = text.StartsWith("playfx"); + if (flag18) + { + string[] array8 = text.Split(XGlobalConfig.TabSeparator); + bool flag19 = array8.Length >= 3; + if (flag19) + { + LevelCmdDesc levelCmdDesc9 = new LevelCmdDesc(); + levelCmdDesc9.cmd = LevelCmd.Level_Cmd_PlayFx; + levelCmdDesc9.Param.Add(array8[1]); + levelCmdDesc9.Param.Add(array8[2]); + this._LevelScripts[key].Add(levelCmdDesc9); + } + } + else + { + bool flag20 = text.StartsWith("settutorial"); + if (flag20) + { + string[] array9 = text.Split(XGlobalConfig.TabSeparator); + bool flag21 = array9.Length >= 2; + if (flag21) + { + LevelCmdDesc levelCmdDesc10 = new LevelCmdDesc(); + levelCmdDesc10.cmd = LevelCmd.Level_Cmd_Tutorial; + levelCmdDesc10.Param.Add(array9[1]); + this._LevelScripts[key].Add(levelCmdDesc10); + } + } + else + { + bool flag22 = text.StartsWith("notice"); + if (flag22) + { + string[] array10 = text.Split(XGlobalConfig.TabSeparator); + bool flag23 = array10.Length >= 2; + if (flag23) + { + LevelCmdDesc levelCmdDesc11 = new LevelCmdDesc(); + levelCmdDesc11.cmd = LevelCmd.Level_Cmd_Notice; + levelCmdDesc11.Param.Add(array10[1]); + bool flag24 = array10.Length >= 3; + if (flag24) + { + levelCmdDesc11.Param.Add(array10[2]); + } + this._LevelScripts[key].Add(levelCmdDesc11); + } + } + else + { + bool flag25 = text.StartsWith("stopnotice"); + if (flag25) + { + LevelCmdDesc levelCmdDesc12 = new LevelCmdDesc(); + levelCmdDesc12.cmd = LevelCmd.Level_Cmd_StopNotice; + this._LevelScripts[key].Add(levelCmdDesc12); + } + else + { + bool flag26 = text.StartsWith("opendoor"); + if (flag26) + { + string[] array11 = text.Split(XGlobalConfig.TabSeparator); + bool flag27 = array11.Length >= 2; + if (flag27) + { + LevelCmdDesc levelCmdDesc13 = new LevelCmdDesc(); + levelCmdDesc13.cmd = LevelCmd.Level_Cmd_Opendoor; + levelCmdDesc13.Param.Add(array11[1]); + bool flag28 = array11.Length > 2; + if (flag28) + { + levelCmdDesc13.Param.Add(array11[2]); + } + this._LevelScripts[key].Add(levelCmdDesc13); + } + } + else + { + bool flag29 = text.StartsWith("killspawn"); + if (flag29) + { + string[] array12 = text.Split(XGlobalConfig.TabSeparator); + bool flag30 = array12.Length >= 2; + if (flag30) + { + LevelCmdDesc levelCmdDesc14 = new LevelCmdDesc(); + levelCmdDesc14.cmd = LevelCmd.Level_Cmd_KillSpawn; + levelCmdDesc14.Param.Add(array12[1]); + this._LevelScripts[key].Add(levelCmdDesc14); + } + } + else + { + bool flag31 = text.StartsWith("killallspawn"); + if (flag31) + { + LevelCmdDesc levelCmdDesc15 = new LevelCmdDesc(); + levelCmdDesc15.cmd = LevelCmd.Level_Cmd_KillAllSpawn; + this._LevelScripts[key].Add(levelCmdDesc15); + } + else + { + bool flag32 = text.StartsWith("killally"); + if (flag32) + { + LevelCmdDesc levelCmdDesc16 = new LevelCmdDesc(); + levelCmdDesc16.cmd = LevelCmd.Level_Cmd_KillAlly; + this._LevelScripts[key].Add(levelCmdDesc16); + } + else + { + bool flag33 = text.StartsWith("killwave"); + if (flag33) + { + string[] array13 = text.Split(XGlobalConfig.TabSeparator); + bool flag34 = array13.Length >= 2; + if (flag34) + { + LevelCmdDesc levelCmdDesc17 = new LevelCmdDesc(); + levelCmdDesc17.cmd = LevelCmd.Level_Cmd_KillWave; + levelCmdDesc17.Param.Add(array13[1]); + this._LevelScripts[key].Add(levelCmdDesc17); + } + } + else + { + bool flag35 = text.StartsWith("showcutscene"); + if (flag35) + { + string[] array14 = text.Split(XGlobalConfig.TabSeparator); + bool flag36 = array14.Length >= 2; + if (flag36) + { + LevelCmdDesc levelCmdDesc18 = new LevelCmdDesc(); + levelCmdDesc18.cmd = LevelCmd.Level_Cmd_Cutscene; + levelCmdDesc18.Param.Add(array14[1]); + bool flag37 = array14.Length >= 6; + if (flag37) + { + levelCmdDesc18.Param.Add(array14[2]); + levelCmdDesc18.Param.Add(array14[3]); + levelCmdDesc18.Param.Add(array14[4]); + levelCmdDesc18.Param.Add(array14[5]); + bool flag38 = array14.Length >= 7; + if (flag38) + { + levelCmdDesc18.Param.Add(array14[6]); + } + } + else + { + bool flag39 = array14.Length == 3; + if (flag39) + { + levelCmdDesc18.Param.Add(array14[2]); + } + } + this._LevelScripts[key].Add(levelCmdDesc18); + } + } + else + { + bool flag40 = text.StartsWith("levelupfx"); + if (flag40) + { + LevelCmdDesc levelCmdDesc19 = new LevelCmdDesc(); + levelCmdDesc19.cmd = LevelCmd.Level_Cmd_LevelupFx; + this._LevelScripts[key].Add(levelCmdDesc19); + } + else + { + bool flag41 = text.StartsWith("continue_UI"); + if (flag41) + { + LevelCmdDesc levelCmdDesc20 = new LevelCmdDesc(); + levelCmdDesc20.cmd = LevelCmd.Level_Cmd_Continue; + this._LevelScripts[key].Add(levelCmdDesc20); + } + else + { + bool flag42 = text.StartsWith("showskillslot"); + if (flag42) + { + string[] array15 = text.Split(XGlobalConfig.TabSeparator); + bool flag43 = array15.Length >= 2; + if (flag43) + { + LevelCmdDesc levelCmdDesc21 = new LevelCmdDesc(); + levelCmdDesc21.cmd = LevelCmd.Level_Cmd_ShowSkill; + levelCmdDesc21.Param.Add(array15[1]); + this._LevelScripts[key].Add(levelCmdDesc21); + } + } + else + { + bool flag44 = text.StartsWith("bubble"); + if (flag44) + { + string[] array16 = text.Split(XGlobalConfig.TabSeparator); + bool flag45 = array16.Length >= 4; + if (flag45) + { + LevelCmdDesc levelCmdDesc22 = new LevelCmdDesc(); + levelCmdDesc22.cmd = LevelCmd.Level_Cmd_Bubble; + levelCmdDesc22.Param.Add(array16[1]); + levelCmdDesc22.Param.Add(array16[2]); + levelCmdDesc22.Param.Add(array16[3]); + this._LevelScripts[key].Add(levelCmdDesc22); + } + } + else + { + bool flag46 = text.StartsWith("showdirection"); + if (flag46) + { + string[] array17 = text.Split(XGlobalConfig.TabSeparator); + bool flag47 = array17.Length >= 2; + if (flag47) + { + LevelCmdDesc levelCmdDesc23 = new LevelCmdDesc(); + levelCmdDesc23.cmd = LevelCmd.Level_Cmd_Direction; + levelCmdDesc23.Param.Add(array17[1]); + this._LevelScripts[key].Add(levelCmdDesc23); + } + } + else + { + bool flag48 = text.StartsWith("outline"); + if (flag48) + { + string[] array18 = text.Split(XGlobalConfig.TabSeparator); + bool flag49 = array18.Length >= 2; + if (flag49) + { + LevelCmdDesc levelCmdDesc24 = new LevelCmdDesc(); + levelCmdDesc24.cmd = LevelCmd.Level_Cmd_Outline; + levelCmdDesc24.Param.Add(array18[1]); + this._LevelScripts[key].Add(levelCmdDesc24); + } + } + else + { + bool flag50 = text.StartsWith("clientrecord"); + if (flag50) + { + string[] array19 = text.Split(XGlobalConfig.TabSeparator); + bool flag51 = array19.Length >= 2; + if (flag51) + { + LevelCmdDesc levelCmdDesc25 = new LevelCmdDesc(); + levelCmdDesc25.cmd = LevelCmd.Level_Cmd_Record; + levelCmdDesc25.Param.Add(array19[1]); + this._LevelScripts[key].Add(levelCmdDesc25); + } + } + else + { + bool flag52 = text.StartsWith("callnewbiehelper"); + if (flag52) + { + LevelCmdDesc levelCmdDesc26 = new LevelCmdDesc(); + levelCmdDesc26.cmd = LevelCmd.Level_Cmd_NewbieHelper; + this._LevelScripts[key].Add(levelCmdDesc26); + } + else + { + bool flag53 = text.StartsWith("newbienotice"); + if (flag53) + { + string[] array20 = text.Split(XGlobalConfig.TabSeparator); + bool flag54 = array20.Length >= 2; + if (flag54) + { + LevelCmdDesc levelCmdDesc27 = new LevelCmdDesc(); + levelCmdDesc27.cmd = LevelCmd.Level_Cmd_NewbieNotice; + levelCmdDesc27.Param.Add(array20[1]); + this._LevelScripts[key].Add(levelCmdDesc27); + } + } + else + { + bool flag55 = text.StartsWith("summon"); + if (flag55) + { + string[] array21 = text.Split(XGlobalConfig.TabSeparator); + bool flag56 = array21.Length >= 4; + if (flag56) + { + LevelCmdDesc levelCmdDesc28 = new LevelCmdDesc(); + levelCmdDesc28.cmd = LevelCmd.Level_Cmd_Summon; + levelCmdDesc28.Param.Add(array21[1]); + levelCmdDesc28.Param.Add(array21[2]); + levelCmdDesc28.Param.Add(array21[3]); + this._LevelScripts[key].Add(levelCmdDesc28); + } + } + else + { + bool flag57 = text.StartsWith("npcpopspeek"); + if (flag57) + { + string[] array22 = text.Split(XGlobalConfig.TabSeparator); + bool flag58 = array22.Length >= 5; + if (flag58) + { + LevelCmdDesc levelCmdDesc29 = new LevelCmdDesc(); + levelCmdDesc29.cmd = LevelCmd.Level_Cmd_NpcPopSpeek; + levelCmdDesc29.Param.Add(array22[1]); + levelCmdDesc29.Param.Add(array22[2]); + levelCmdDesc29.Param.Add(array22[3]); + levelCmdDesc29.Param.Add(array22[4]); + bool flag59 = array22.Length >= 6; + if (flag59) + { + levelCmdDesc29.Param.Add(array22[5]); + } + this._LevelScripts[key].Add(levelCmdDesc29); + } + } + else + { + bool flag60 = text.StartsWith("aicommand"); + if (flag60) + { + string[] array23 = text.Split(XGlobalConfig.TabSeparator); + bool flag61 = array23.Length >= 3; + if (flag61) + { + LevelCmdDesc levelCmdDesc30 = new LevelCmdDesc(); + levelCmdDesc30.cmd = LevelCmd.Level_Cmd_SendAICmd; + levelCmdDesc30.Param.Add(array23[1]); + levelCmdDesc30.Param.Add(array23[2]); + bool flag62 = array23.Length >= 4; + if (flag62) + { + levelCmdDesc30.Param.Add(array23[3]); + } + else + { + levelCmdDesc30.Param.Add("0"); + } + this._LevelScripts[key].Add(levelCmdDesc30); + } + } + else + { + bool flag63 = text.StartsWith("info"); + if (flag63) + { + string[] array24 = text.Split(XGlobalConfig.TabSeparator); + string[] array25 = array24[1].Split(XGlobalConfig.ListSeparator); + XLevelInfo xlevelInfo = new XLevelInfo(); + xlevelInfo.infoName = array24[0].Substring(5); + xlevelInfo.x = float.Parse(array25[0]); + xlevelInfo.y = float.Parse(array25[1]); + xlevelInfo.z = float.Parse(array25[2]); + xlevelInfo.face = float.Parse(array25[3]); + bool flag64 = array24.Length >= 3; + if (flag64) + { + xlevelInfo.enable = (array24[2] == "on"); + } + bool flag65 = array24.Length >= 4; + if (flag65) + { + xlevelInfo.width = float.Parse(array24[3]); + } + bool flag66 = array24.Length >= 5; + if (flag66) + { + xlevelInfo.height = float.Parse(array24[4]); + } + else + { + xlevelInfo.height = float.MaxValue; + } + bool flag67 = array24.Length >= 6; + if (flag67) + { + xlevelInfo.thickness = float.Parse(array24[5]); + } + this._LevelInfos.Add(xlevelInfo); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + XSingleton.singleton.ClearStream(stream); + } + + public List GetLevelScriptInfos() + { + return this._LevelInfos; + } + + public void Update() + { + bool flag = this._CmdQueue == null || this._CmdQueue.Count == 0; + if (!flag) + { + bool flag2 = this._currentCmd == null || this._currentCmd.state == XCmdState.Cmd_Finished; + if (flag2) + { + this._currentCmd = ((this._CmdQueue.Count > 0) ? this._CmdQueue[0] : null); + bool flag3 = this._currentCmd == null; + if (!flag3) + { + this._CmdQueue.RemoveAt(0); + this.CommandCount += 1u; + this.Execute(this._currentCmd); + } + } + } + } + + public void ExecuteNextCmd() + { + bool flag = this._currentCmd != null; + if (flag) + { + this._currentCmd.state = XCmdState.Cmd_Finished; + } + bool flag2 = this._CmdQueue.Count == 0; + if (flag2) + { + this._currentCmd = null; + } + else + { + this._currentCmd = ((this._CmdQueue.Count > 0) ? this._CmdQueue[0] : null); + bool flag3 = this._currentCmd == null; + if (!flag3) + { + this._CmdQueue.RemoveAt(0); + this.Execute(this._currentCmd); + } + } + } + + public void Reset() + { + this._externalString.Clear(); + this._onceString.Clear(); + this._CmdQueue.Clear(); + this._currentCmd = null; + this._LevelScripts.Clear(); + } + + protected void Execute(LevelCmdDesc cmd) + { + switch (cmd.cmd) + { + case LevelCmd.Level_Cmd_TalkL: + { + bool flag = cmd.Param.Count > 2; + if (flag) + { + DlgBase.singleton.SetLeftAvatar(cmd.Param[0], cmd.Param[1], cmd.Param[2]); + } + else + { + DlgBase.singleton.SetLeftAvatar(cmd.Param[0], cmd.Param[1], string.Empty); + } + this._currentCmd.state = XCmdState.Cmd_In_Process; + break; + } + case LevelCmd.Level_Cmd_TalkR: + { + bool flag2 = cmd.Param.Count > 2; + if (flag2) + { + DlgBase.singleton.SetRightAvatar(cmd.Param[0], cmd.Param[1], cmd.Param[2]); + } + else + { + DlgBase.singleton.SetRightAvatar(cmd.Param[0], cmd.Param[1], string.Empty); + } + this._currentCmd.state = XCmdState.Cmd_In_Process; + break; + } + case LevelCmd.Level_Cmd_Notalk: + XSingleton.singleton.BossExtarScriptExecuting = false; + DlgBase.singleton.SetVisible(false, true); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + case LevelCmd.Level_Cmd_Addbuff: + { + XSingleton.singleton.Pause = false; + int buffID = int.Parse(cmd.Param[1]); + int buffLevel = int.Parse(cmd.Param[2]); + int num = int.Parse(cmd.Param[0]); + bool flag3 = num == 0; + if (flag3) + { + XBuffAddEventArgs @event = XEventPool.GetEvent(); + @event.xBuffDesc.BuffID = buffID; + @event.xBuffDesc.BuffLevel = buffLevel; + @event.Firer = XSingleton.singleton.Player; + @event.xBuffDesc.CasterID = XSingleton.singleton.Player.ID; + XSingleton.singleton.FireEvent(@event); + } + else + { + List opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int i = 0; i < opponent.Count; i++) + { + bool flag4 = (ulong)opponent[i].TypeID == (ulong)((long)num); + if (flag4) + { + XBuffAddEventArgs event2 = XEventPool.GetEvent(); + event2.xBuffDesc.BuffID = buffID; + event2.xBuffDesc.BuffLevel = buffLevel; + event2.Firer = opponent[i]; + event2.xBuffDesc.CasterID = opponent[i].ID; + XSingleton.singleton.FireEvent(event2); + } + } + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_Tutorial: + { + bool needTutorail = XSingleton.singleton.NeedTutorail; + if (needTutorail) + { + XSingleton.singleton.SetExternalString(cmd.Param[0]); + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_Notice: + { + float duration = 3f; + bool flag5 = cmd.Param.Count > 1; + if (flag5) + { + duration = float.Parse(cmd.Param[1]); + } + bool flag6 = DlgBase.singleton.IsLoaded(); + if (flag6) + { + DlgBase.singleton.ShowNotice(cmd.Param[0], duration, 1f); + } + bool flag7 = DlgBase.singleton.IsLoaded(); + if (flag7) + { + DlgBase.singleton.ShowNotice(cmd.Param[0], duration, 1f); + } + bool flag8 = this._currentCmd != null; + if (flag8) + { + this._currentCmd.state = XCmdState.Cmd_Finished; + } + break; + } + case LevelCmd.Level_Cmd_StopNotice: + { + bool flag9 = DlgBase.singleton.IsLoaded(); + if (flag9) + { + DlgBase.singleton.StopNotice(); + } + bool flag10 = DlgBase.singleton.IsLoaded(); + if (flag10) + { + DlgBase.singleton.StopNotice(); + } + bool flag11 = this._currentCmd != null; + if (flag11) + { + this._currentCmd.state = XCmdState.Cmd_Finished; + } + break; + } + case LevelCmd.Level_Cmd_Opendoor: + { + GameObject gameObject = GameObject.Find(XSingleton.singleton.GetSceneDynamicPrefix(XSingleton.singleton.SceneID)); + Transform transform = XSingleton.singleton.FindChildRecursively(gameObject.transform, cmd.Param[0]); + bool flag12 = transform == null; + if (flag12) + { + XSingleton.singleton.AddErrorLog("Wall no exists: ", cmd.Param[0], null, null, null, null); + } + bool flag13 = cmd.Param.Count > 1; + if (flag13) + { + bool flag14 = cmd.Param[1] == "on"; + if (flag14) + { + transform.gameObject.SetActive(true); + bool flag15 = DlgBase.singleton.IsLoaded(); + if (flag15) + { + DlgBase.singleton.IndicateHandler.MiniMapAddDoor(transform); + } + bool flag16 = DlgBase.singleton.IsLoaded(); + if (flag16) + { + DlgBase.singleton.IndicateHandler.MiniMapAddDoor(transform); + } + this.SwitchWallState(cmd.Param[0], true); + } + else + { + bool flag17 = cmd.Param[1].Length == 0 || cmd.Param[1] == "off"; + if (flag17) + { + transform.gameObject.SetActive(false); + this.SwitchWallState(cmd.Param[0], false); + } + } + } + else + { + transform.gameObject.SetActive(false); + this.SwitchWallState(cmd.Param[0], false); + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_Cutscene: + { + XSingleton.singleton.AddLog("play cutscene ", cmd.Param[0], null, null, null, null, XDebugColor.XDebug_None); + bool flag18 = cmd.Param.Count == 6; + if (flag18) + { + XSingleton.singleton.GeneralMonsterID = uint.Parse(cmd.Param[5]); + } + else + { + bool flag19 = cmd.Param.Count == 2; + if (flag19) + { + XSingleton.singleton.GeneralMonsterID = uint.Parse(cmd.Param[1]); + } + } + bool flag20 = this.CommandCount == 1u; + if (flag20) + { + XSingleton.singleton.Start(cmd.Param[0], false, true); + } + else + { + XSingleton.singleton.Start(cmd.Param[0], true, true); + } + bool flag21 = cmd.Param.Count >= 5; + if (flag21) + { + float num2 = float.Parse(cmd.Param[1]); + float num3 = float.Parse(cmd.Param[2]); + float num4 = float.Parse(cmd.Param[3]); + XSingleton.singleton.EndWithDir = float.Parse(cmd.Param[4]); + XSingleton.singleton.EndWithPos = new Vector3(num2, num3, num4); + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_LevelupFx: + { + XPlayer player = XSingleton.singleton.Player; + XSingleton.singleton.CreateAndPlay(XSingleton.singleton.GetValue("LevelupFx"), player.EngineObject, Vector3.zero, Vector3.one, 1f, true, 5f, true); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_ShowSkill: + { + int index = int.Parse(cmd.Param[0]); + bool flag22 = DlgBase.singleton.IsLoaded(); + if (flag22) + { + DlgBase.singleton.SkillHandler.ShowSkillSlot(index); + } + XSingleton.singleton.MeetEnemy = false; + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_KillSpawn: + XSingleton.singleton.AddErrorLog("找小邹: kill spawn", null, null, null, null, null); + XSingleton.singleton.CurrentSpawner.KillSpawn(int.Parse(cmd.Param[0])); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + case LevelCmd.Level_Cmd_KillAlly: + XSingleton.singleton.AddErrorLog("找小邹: kill ally", null, null, null, null, null); + XSingleton.singleton.KillAlly(XSingleton.singleton.Player); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + case LevelCmd.Level_Cmd_KillWave: + { + int num5 = int.Parse(cmd.Param[0]); + List all = XSingleton.singleton.GetAll(); + for (int j = 0; j < all.Count; j++) + { + bool flag23 = num5 == all[j].Wave; + if (flag23) + { + all[j].Attributes.ForceDeath(); + } + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_Direction: + { + GameObject gameObject2 = GameObject.Find(XSingleton.singleton.GetSceneDynamicPrefix(XSingleton.singleton.SceneID)); + Transform transform2 = XSingleton.singleton.FindChildRecursively(gameObject2.transform, cmd.Param[0]); + bool flag24 = transform2 != null; + if (flag24) + { + bool flag25 = DlgBase.singleton.IsLoaded(); + if (flag25) + { + DlgBase.singleton.IndicateHandler.ShowDirection(transform2); + } + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_Outline: + { + int num6 = int.Parse(cmd.Param[0]); + List opponent2 = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int k = 0; k < opponent2.Count; k++) + { + bool flag26 = opponent2[k].Wave == num6; + if (flag26) + { + XHighlightEventArgs event3 = XEventPool.GetEvent(); + event3.Enabled = true; + event3.Firer = opponent2[k]; + XSingleton.singleton.FireEvent(event3); + } + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_Record: + XSingleton.singleton.DoScriptRecord(cmd.Param[0]); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + case LevelCmd.Level_Cmd_Continue: + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + case LevelCmd.Level_Cmd_NewbieHelper: + { + uint num7 = 0u; + uint num8 = 0u; + uint num9 = 0u; + XPlayer player2 = XSingleton.singleton.Player; + XBoss boss = XSingleton.singleton.Boss; + bool flag27 = player2 == null || boss == null; + if (!flag27) + { + bool flag28 = num7 > 0u; + if (flag28) + { + XSingleton.singleton.SpawnExternalMonster(num7, new Vector3(104.3f, 9.93f, 104.5f), 0); + } + bool flag29 = num8 > 0u; + if (flag29) + { + XSingleton.singleton.SpawnExternalMonster(num8, new Vector3(106f, 9.93f, 105f), 0); + } + bool flag30 = num9 > 0u; + if (flag30) + { + XSingleton.singleton.SpawnExternalMonster(num9, new Vector3(103.83f, 9.93f, 101.12f), 0); + } + bool flag31 = this._currentCmd != null; + if (flag31) + { + this._currentCmd.state = XCmdState.Cmd_Finished; + } + } + break; + } + case LevelCmd.Level_Cmd_NewbieNotice: + { + bool flag32 = DlgBase.singleton.IsLoaded(); + if (flag32) + { + DlgBase.singleton.ShowBigNotice(cmd.Param[0]); + } + bool flag33 = DlgBase.singleton.IsLoaded(); + if (flag33) + { + DlgBase.singleton.ShowBigNotice(cmd.Param[0], true); + } + bool flag34 = this._currentCmd != null; + if (flag34) + { + this._currentCmd.state = XCmdState.Cmd_In_Process; + } + break; + } + case LevelCmd.Level_Cmd_Removebuff: + { + XSingleton.singleton.Pause = false; + int xBuffID = int.Parse(cmd.Param[1]); + int num10 = int.Parse(cmd.Param[0]); + bool flag35 = num10 == 0; + if (flag35) + { + XBuffRemoveEventArgs event4 = XEventPool.GetEvent(); + event4.xBuffID = xBuffID; + event4.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(event4); + } + else + { + List opponent3 = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int l = 0; l < opponent3.Count; l++) + { + bool flag36 = (ulong)opponent3[l].TypeID == (ulong)((long)num10); + if (flag36) + { + XBuffRemoveEventArgs event5 = XEventPool.GetEvent(); + event5.xBuffID = xBuffID; + event5.Firer = opponent3[l]; + XSingleton.singleton.FireEvent(event5); + } + } + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_Summon: + { + uint enemyID = uint.Parse(cmd.Param[0]); + uint num11 = uint.Parse(cmd.Param[2]); + Vector3 pos = Vector3.zero; + int rot = 0; + bool flag37 = cmd.Param[1] == "[player]"; + if (flag37) + { + pos = XSingleton.singleton.Player.EngineObject.Position; + } + else + { + int num12 = int.Parse(cmd.Param[1]); + List opponent4 = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int m = 0; m < opponent4.Count; m++) + { + bool flag38 = (ulong)opponent4[m].TypeID == (ulong)((long)num12); + if (flag38) + { + pos = opponent4[m].EngineObject.Position; + rot = (int)opponent4[m].EngineObject.Rotation.eulerAngles.y; + } + } + } + int num13 = 0; + while ((long)num13 < (long)((ulong)num11)) + { + XSingleton.singleton.SpawnExternalMonster(enemyID, pos, rot); + num13++; + } + bool flag39 = this._currentCmd != null; + if (flag39) + { + this._currentCmd.state = XCmdState.Cmd_Finished; + } + break; + } + case LevelCmd.Level_Cmd_KillAllSpawn: + XSingleton.singleton.KillAllOpponent(); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + case LevelCmd.Level_Cmd_NpcPopSpeek: + { + int type = int.Parse(cmd.Param[0]); + int npcid = int.Parse(cmd.Param[1]); + string text = cmd.Param[2]; + float time = float.Parse(cmd.Param[3]); + string fmod = ""; + bool flag40 = cmd.Param.Count >= 5; + if (flag40) + { + fmod = cmd.Param[4]; + } + DlgBase.singleton.ShowNpcPopSpeek(type, npcid, text, time, fmod); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_SendAICmd: + { + int num14 = int.Parse(cmd.Param[0]); + string eventArg = cmd.Param[1]; + int typeId = int.Parse(cmd.Param[2]); + List list = new List(); + bool flag41 = num14 == -1; + if (flag41) + { + bool flag42 = XSingleton.singleton.AIGlobal != null && XSingleton.singleton.AIGlobal.Host != null; + if (flag42) + { + list.Add(XSingleton.singleton.AIGlobal.Host); + } + } + else + { + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + List opponent5 = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int n = 0; n < ally.Count; n++) + { + bool flag43 = ally[n].Attributes.TypeID == (uint)num14; + if (flag43) + { + list.Add(ally[n]); + } + } + for (int num15 = 0; num15 < opponent5.Count; num15++) + { + bool flag44 = opponent5[num15].Attributes.TypeID == (uint)num14; + if (flag44) + { + list.Add(opponent5[num15]); + } + } + } + for (int num16 = 0; num16 < list.Count; num16++) + { + XAIEventArgs event6 = XEventPool.GetEvent(); + event6.DepracatedPass = false; + event6.Firer = list[num16]; + event6.EventType = 1; + event6.EventArg = eventArg; + event6.TypeId = typeId; + XSingleton.singleton.FireEvent(event6, 0.05f); + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_Bubble: + XSingleton.singleton.CurrentSpawner.ShowBubble(int.Parse(cmd.Param[0]), cmd.Param[1], float.Parse(cmd.Param[2])); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + case LevelCmd.Level_Cmd_HideBillboard: + { + int num17 = int.Parse(cmd.Param[0]); + float hidetime = float.Parse(cmd.Param[1]); + List opponent6 = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int num18 = 0; num18 < opponent6.Count; num18++) + { + bool flag45 = (ulong)opponent6[num18].TypeID == (ulong)((long)num17); + if (flag45) + { + XBillboardHideEventArgs event7 = XEventPool.GetEvent(); + event7.hidetime = hidetime; + event7.Firer = opponent6[num18]; + XSingleton.singleton.FireEvent(event7); + } + } + break; + } + case LevelCmd.Level_Cmd_ChangeBody: + { + XPlayer player3 = XSingleton.singleton.Player; + bool flag46 = player3 != null; + if (flag46) + { + player3.OnTransform(uint.Parse(cmd.Param[0])); + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + case LevelCmd.Level_Cmd_JustFx: + this.DoScriptJustFx(cmd.Param); + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + case LevelCmd.Level_Cmd_PlayFx: + { + Transform transform3 = XSingleton.singleton.UIRoot.Find("Camera").transform; + bool flag47 = transform3 != null; + if (flag47) + { + XSingleton.singleton.CreateAndPlay(cmd.Param[0], transform3, Vector3.zero, Vector3.one, 1f, true, float.Parse(cmd.Param[1]), true); + } + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + default: + this._currentCmd.state = XCmdState.Cmd_Finished; + break; + } + } + + public void SetExternalString(string str, bool bOnce) + { + if (bOnce) + { + bool flag = this._onceString.Contains(str); + if (!flag) + { + this._externalString.Add(str); + this._onceString.Add(str); + } + } + else + { + this._externalString.Add(str); + } + } + + public bool QueryExternalString(string str, bool autoRemove) + { + bool flag = false; + foreach (string a in this._externalString) + { + bool flag2 = a == str; + if (flag2) + { + flag = true; + break; + } + } + bool flag3 = flag && autoRemove; + if (flag3) + { + this._externalString.Remove(str); + } + return flag; + } + + public bool IsTalkScript(string funcName) + { + bool flag = !this._LevelScripts.ContainsKey(funcName); + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("invalid script func", null, null, null, null, null); + result = false; + } + else + { + LevelCmdDesc levelCmdDesc = this._LevelScripts[funcName][0]; + bool flag2 = levelCmdDesc.cmd == LevelCmd.Level_Cmd_TalkL || levelCmdDesc.cmd == LevelCmd.Level_Cmd_TalkR; + result = flag2; + } + return result; + } + + protected void SwitchWallState(string name, bool enabled) + { + for (int i = 0; i < this._LevelInfos.Count; i++) + { + bool flag = this._LevelInfos[i].infoName == name; + if (flag) + { + this._LevelInfos[i].enable = enabled; + } + } + } + + public void SyncWallState(string name, bool isOn) + { + this.SetClientWallState(name, isOn); + this.SwitchWallState(name, isOn); + } + + public void SetClientWallState(string name, bool isOn) + { + GameObject gameObject = GameObject.Find(XSingleton.singleton.GetSceneDynamicPrefix(XSingleton.singleton.SceneID)); + bool flag = gameObject == null; + if (!flag) + { + Transform transform = XSingleton.singleton.FindChildRecursively(gameObject.transform, name); + bool flag2 = transform == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Wall no exists: ", name, null, null, null, null); + } + else + { + transform.gameObject.SetActive(isOn); + } + } + } + + public void ResetAirWallState() + { + for (int i = 0; i < this._LevelInfos.Count; i++) + { + this.SetClientWallState(this._LevelInfos[i].infoName, this._LevelInfos[i].enable); + } + } + + public void DoScriptJustFx(List param) + { + float time = float.Parse(param[0]); + XBattleDocument specificDocument = XDocuments.GetSpecificDocument(XBattleDocument.uuID); + int num = 1 << LayerMask.NameToLayer("Resources"); + num |= 1 << LayerMask.NameToLayer("QualityHigh"); + num |= 1 << LayerMask.NameToLayer("QualityNormal"); + num |= 1 << LayerMask.NameToLayer("QualityCullDistance"); + specificDocument.SetCameraLayer(num, time); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelScriptMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelScriptMgr.cs.meta new file mode 100644 index 00000000..9c81ed43 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelScriptMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6a1c6d820887ff4582c3b0b4d2a380a +timeCreated: 1611404289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs b/Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs new file mode 100644 index 00000000..78804d45 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs @@ -0,0 +1,21 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelScriptTask : XLevelBaseTask + { + public string _ScriptName; + + public XLevelScriptTask(XLevelSpawnInfo ls) : base(ls) + { + } + + public override bool Execute(float time) + { + base.Execute(time); + XSingleton.singleton.RunScript(this._ScriptName); + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs.meta new file mode 100644 index 00000000..62fcf6f2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelScriptTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12b4ecde74354c243a76703047558e6b +timeCreated: 1611403243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelSealDocument.cs b/Client/Assets/Scripts/XMainClient/XLevelSealDocument.cs new file mode 100644 index 00000000..9576eafb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSealDocument.cs @@ -0,0 +1,625 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelSealDocument : XDocComponent + { + public override uint ID + { + get + { + return XLevelSealDocument.uuID; + } + } + + public XLevelSealView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public static XLevelSealDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XLevelSealDocument.uuID) as XLevelSealDocument; + } + } + + public float ExpBuff + { + get + { + return this._expBuff; + } + set + { + this._expBuff = value; + } + } + + public uint SealType + { + get + { + return this._sealType; + } + set + { + this._sealType = value; + } + } + + public uint SealLevel + { + get + { + return this._sealLevel; + } + set + { + this._sealLevel = value; + } + } + + public int CurrentSelfCollectIndex + { + get + { + return this._currentSelfCollectIndex; + } + set + { + this._currentSelfCollectIndex = value; + } + } + + public uint Status + { + get + { + return this._status; + } + } + + public bool HasRedPoint + { + get + { + return this.m_HasRedPoint; + } + } + + public bool SelfGiftRedPoint + { + get + { + return this.m_SelfGiftRedPoint; + } + } + + public bool RedPoint + { + get + { + return this.m_HasRedPoint || this.m_SelfGiftRedPoint; + } + } + + public int SealMoeny + { + get + { + return int.Parse(XSingleton.singleton.GetValue("LevelSealFragmentID")); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("LevelSealDocument"); + + private XLevelSealView _view = null; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static LevelSealTypeTable _LevelSealTypeTable = new LevelSealTypeTable(); + + private static LevelSealNewFunctionTable _LevelSealNewFunctionTable = new LevelSealNewFunctionTable(); + + public static readonly uint REWARD_TIPS_COUNT_MAX = 4u; + + private float _expBuff; + + private uint _sealType = 0u; + + private uint _nextSealLevel; + + private uint _sealLevel = 0u; + + private uint _endTime; + + private uint _killBossCnt; + + private uint _needKillBossCnt; + + private uint _totalCollectCount; + + private uint _selfCollectCount; + + private int _currentSelfCollectIndex; + + private string _UnlockBossName; + + private uint _status; + + private XFx _FxFirework; + + private bool m_HasRedPoint = false; + + private bool m_SelfGiftRedPoint = false; + + public static void GetSealLevelRange(int curLevel, out int min, out int max) + { + min = 0; + max = curLevel; + int i = 0; + int num = XLevelSealDocument._LevelSealTypeTable.Table.Length; + while (i < num) + { + bool flag = (long)curLevel <= (long)((ulong)XLevelSealDocument._LevelSealTypeTable.Table[i].Level); + if (flag) + { + max = (int)XLevelSealDocument._LevelSealTypeTable.Table[i].Level; + bool flag2 = XLevelSealDocument._LevelSealTypeTable.Table[i].Type > 2u; + if (flag2) + { + uint key = XLevelSealDocument._LevelSealTypeTable.Table[i].Type - 2u; + LevelSealTypeTable.RowData byType = XLevelSealDocument._LevelSealTypeTable.GetByType(key); + min = (int)byType.Level; + } + else + { + min = 0; + } + break; + } + i++; + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + bool flag = this._sealLevel == 0u && XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag) + { + this.ReqGetLevelSealInfo(); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag = xaddItemEventArgs.items[i].itemID == this.SealMoeny; + if (flag) + { + this.RefreshRedPoint(xaddItemEventArgs.items[i].itemCount); + return true; + } + } + return false; + } + + public bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + for (int i = 0; i < xremoveItemEventArgs.types.Count; i++) + { + bool flag = xremoveItemEventArgs.ids[i] == this.SealMoeny; + if (flag) + { + this.RefreshRedPoint(0); + return true; + } + } + return false; + } + + public bool OnItemNumChanged(XEventArgs args) + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag = xitemNumChangedEventArgs.item.itemID == this.SealMoeny; + bool result; + if (flag) + { + this.RefreshRedPoint(xitemNumChangedEventArgs.item.itemCount); + result = true; + } + else + { + result = false; + } + return result; + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this._sealLevel == 0u; + if (flag) + { + this.ReqGetLevelSealInfo(); + } + } + + public int GetSealLevel(uint type) + { + bool flag = type < 1u; + int result; + if (flag) + { + result = 0; + } + else + { + LevelSealTypeTable.RowData byType = XLevelSealDocument._LevelSealTypeTable.GetByType(type); + result = (int)((byType == null) ? uint.MaxValue : byType.Level); + } + return result; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XLevelSealDocument.AsyncLoader.AddTask("Table/LevelSealType", XLevelSealDocument._LevelSealTypeTable, false); + XLevelSealDocument.AsyncLoader.AddTask("Table/LevelSealNewFunction", XLevelSealDocument._LevelSealNewFunctionTable, false); + XLevelSealDocument.AsyncLoader.Execute(callback); + } + + public void ReqGetLevelSealInfo() + { + RpcC2G_GetLevelSealInfo rpc = new RpcC2G_GetLevelSealInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReqLevelSealButtonClick() + { + RpcC2G_LevelSealButtonStatus rpc = new RpcC2G_LevelSealButtonStatus(); + XSingleton.singleton.Send(rpc); + } + + public void ReqBuyGift() + { + RpcC2G_LevelSealExchange rpc = new RpcC2G_LevelSealExchange(); + XSingleton.singleton.Send(rpc); + } + + public void ReqGetSelfGift() + { + RpcC2G_GetLevelSealSelfGift rpcC2G_GetLevelSealSelfGift = new RpcC2G_GetLevelSealSelfGift(); + rpcC2G_GetLevelSealSelfGift.oArg.count = (uint)this.CurrentSelfCollectIndex; + XSingleton.singleton.Send(rpcC2G_GetLevelSealSelfGift); + } + + public void LevelSealButtonClick(LevelSealOverExpArg oArg, LevelSealOverExpRes oRes) + { + uint status = this._status; + this._status = oRes.m_uStatus; + bool flag = this._status == 0u; + if (flag) + { + bool flag2 = status == 1u; + if (flag2) + { + this.CreateAndPlayFxFxFirework(); + DlgBase.singleton.Show(XSysDefine.XSys_LevelSeal, false); + } + else + { + bool flag3 = status == 2u; + if (flag3) + { + this.ShowNextLevelSeal(true, Vector3.zero); + this.CreateAndPlayFxFxFirework(); + } + } + } + bool flag4 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag4) + { + this.RefreshLevelSealTip(); + } + } + + public void ShowNextLevelSeal(bool isRemove, Vector3 pos) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.SetNextSealLabel(this.GetNextSealTitleInfo(isRemove)); + DlgBase.singleton.SetPosition(pos); + } + + public void SetShowInfo(GetLevelSealInfoArg oArg, GetLevelSealInfoRes oRes) + { + this._killBossCnt = oRes.levelSealData.unLockBossCount; + this._totalCollectCount = oRes.levelSealData.totalCollectCount; + this._selfCollectCount = oRes.levelSealData.selfCollectCount; + this._currentSelfCollectIndex = oRes.levelSealData.selfAwardCountIndex + 1; + bool flag = this._sealLevel == 0u; + if (flag) + { + this.UseLevelSealInfo(oRes.levelSealData); + } + bool flag2 = this.View == null || !this.View.IsVisible(); + if (flag2) + { + } + } + + public void RefreshSelfGift() + { + LevelSealTypeTable.RowData levelSealType = XLevelSealDocument.GetLevelSealType(this._sealType); + string text = XSingleton.singleton.GetString("RunOutLevelSealSelfCollect"); + bool flag = this._currentSelfCollectIndex < levelSealType.PlayerAward.Count; + if (flag) + { + uint num = levelSealType.PlayerAward[this._currentSelfCollectIndex, 0]; + text = string.Format("{0}/{1}", this._selfCollectCount, num); + } + this.RefreshRedPoint(-1); + } + + public void UseLevelSealInfo(PtcG2C_LevelSealNtf roPtc) + { + this.UseLevelSealInfo(roPtc.Data); + } + + public void UseLevelSealInfo(LevelSealInfo data) + { + this._status = data.status; + this._sealType = data.type; + this._endTime = data.endTime; + this._totalCollectCount = data.totalCollectCount; + this._selfCollectCount = data.selfCollectCount; + this._currentSelfCollectIndex = data.selfAwardCountIndex + 1; + this._sealLevel = 0u; + for (int i = 0; i < XLevelSealDocument._LevelSealTypeTable.Table.Length; i++) + { + LevelSealTypeTable.RowData rowData = XLevelSealDocument._LevelSealTypeTable.Table[i]; + bool flag = this._sealType == rowData.Type; + if (flag) + { + this._sealLevel = rowData.Level; + this._needKillBossCnt = rowData.UnlockBossCount; + this._UnlockBossName = rowData.UnlockBossName; + bool flag2 = i < XLevelSealDocument._LevelSealTypeTable.Table.Length - 1; + if (flag2) + { + i++; + } + this._nextSealLevel = XLevelSealDocument._LevelSealTypeTable.Table[i].Level; + break; + } + } + bool flag3 = this._sealLevel == 0u && XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Table LevelSealType Error: Type = ", this._sealType.ToString(), " No Find!", null, null, null); + } + bool flag4 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag4) + { + this.RefreshLevelSealTip(); + } + this.RefreshRedPoint(-1); + } + + public void RefreshRedPoint(int money = -1) + { + LevelSealTypeTable.RowData levelSealType = XLevelSealDocument.GetLevelSealType(this._sealType); + bool flag = levelSealType == null; + if (!flag) + { + uint num = levelSealType.ExchangeInfo[0]; + bool flag2 = money == -1; + if (flag2) + { + money = (int)XBagDocument.BagDoc.GetItemCount(this.SealMoeny); + } + this.m_HasRedPoint = ((long)money >= (long)((ulong)num)); + this.m_SelfGiftRedPoint = this.GetSelfGiftRedPoint(); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_LevelSeal, true); + } + } + + private bool GetSelfGiftRedPoint() + { + LevelSealTypeTable.RowData levelSealType = XLevelSealDocument.GetLevelSealType(this._sealType); + bool flag = levelSealType == null; + bool result; + if (flag) + { + result = false; + } + else + { + int count = levelSealType.CollectAward.Count; + bool flag2 = this._currentSelfCollectIndex < levelSealType.PlayerAward.Count; + if (flag2) + { + uint num = levelSealType.PlayerAward[this._currentSelfCollectIndex, 0]; + result = (num <= this._selfCollectCount); + } + else + { + result = false; + } + } + return result; + } + + public static LevelSealTypeTable.RowData GetLevelSealType(uint type) + { + return XLevelSealDocument._LevelSealTypeTable.GetByType(type); + } + + public Queue GetLevelSealNewFunction(uint type) + { + Queue queue = new Queue(); + for (int i = 0; i < XLevelSealDocument._LevelSealNewFunctionTable.Table.Length; i++) + { + LevelSealNewFunctionTable.RowData rowData = XLevelSealDocument._LevelSealNewFunctionTable.Table[i]; + bool flag = (ulong)type == (ulong)((long)rowData.Type); + if (flag) + { + queue.Enqueue(rowData); + } + } + return queue; + } + + public string GetConditionInfo() + { + return XSingleton.singleton.TimeFormatSince1970((int)this._endTime, XStringDefineProxy.GetString("TIME_FORMAT_MONTHDAYHOUR"), true); + } + + public int GetLeftTime() + { + return (int)XSingleton.singleton.TimeFormatLastTime(this._endTime, true); + } + + public string GetNowSealTitleInfo() + { + return string.Format(XStringDefineProxy.GetString("SEAL_NOW_DESCRIPTION"), this._UnlockBossName); + } + + public string GetNextSealTitleInfo(bool isRemove) + { + string result; + if (isRemove) + { + result = string.Format(XStringDefineProxy.GetString("SEAL_REMOVE_DESCRIPTION"), this._sealLevel); + } + else + { + result = string.Format(XStringDefineProxy.GetString("SEAL_NEXT_DESCRIPTION"), this._nextSealLevel); + } + return result; + } + + public void LevelUp(uint curLevel) + { + bool flag = curLevel >= this._sealLevel && this._sealLevel > 0u; + if (flag) + { + this._status = 1u; + this.RefreshLevelSealTip(); + } + } + + public void RefreshLevelSealTip() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_LevelSeal_Tip, true); + } + } + + public bool IsShowLevelSealIcon() + { + return XSingleton.singleton.XPlayerData.Level >= this._sealLevel && this._sealLevel != 0u && this._status == 0u; + } + + public bool IsInLevelSeal() + { + return XSingleton.singleton.XPlayerData.Level >= this._sealLevel && this._sealLevel > 0u; + } + + public void CreateAndPlayFxFxFirework() + { + bool flag = DlgBase.singleton.uiBehaviour == null || DlgBase.singleton.uiBehaviour.m_FxFirework == null; + if (!flag) + { + XSingleton.singleton.PlayUISound("Audio/UI/zhuanzhi", true, AudioChannel.Action); + this.DestroyFx(this._FxFirework); + this._FxFirework = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_yh", null, true); + this._FxFirework.Play(DlgBase.singleton.uiBehaviour.m_FxFirework.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + } + + public void DestroyFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + fx = null; + } + } + + public uint GetSealType() + { + uint result = 1u; + for (int i = 0; i < XLevelSealDocument._LevelSealTypeTable.Table.Length; i++) + { + bool flag = this.SealLevel <= XLevelSealDocument._LevelSealTypeTable.Table[i].Level; + if (flag) + { + result = XLevelSealDocument._LevelSealTypeTable.Table[i].Type; + break; + } + } + return result; + } + + public uint GetRemoveSealType(uint curlevel) + { + uint result = 0u; + for (int i = 0; i < XLevelSealDocument._LevelSealTypeTable.Table.Length; i++) + { + bool flag = curlevel >= XLevelSealDocument._LevelSealTypeTable.Table[i].Level; + if (!flag) + { + break; + } + result = XLevelSealDocument._LevelSealTypeTable.Table[i].Type; + } + return result; + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + XPlayerLevelChangedEventArgs xplayerLevelChangedEventArgs = arg as XPlayerLevelChangedEventArgs; + this.LevelUp(xplayerLevelChangedEventArgs.level); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelSealDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelSealDocument.cs.meta new file mode 100644 index 00000000..2e2c12b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSealDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee9568d7d309d094a9cf28dd32fd57b8 +timeCreated: 1611404798 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelSealView.cs b/Client/Assets/Scripts/XMainClient/XLevelSealView.cs new file mode 100644 index 00000000..ce2d75d2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSealView.cs @@ -0,0 +1,130 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelSealView : DlgHandlerBase + { + protected override string FileName + { + get + { + return "OperatingActivity/LevelSeal"; + } + } + + private IXUILabel m_NowSeal; + + private IXUILabel m_Condition; + + private IXUILabel m_LeftTime; + + private IXUILabel m_Description; + + private IXUITexture m_NowSealTex; + + private GameObject m_NextSealWindow; + + private IXUIButton m_NextSealBtn; + + private XUIPool m_NewFunctionPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XLevelSealDocument doc = null; + + private XLeftTimeCounter _CDCounter = null; + + private bool isCountdown = false; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + this.doc.View = this; + this.m_NowSeal = (base.transform.Find("Bg/NowSeal/p/Label").GetComponent("XUILabel") as IXUILabel); + this.m_Condition = (base.transform.Find("Bg/NowSeal/p/Condition").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime = (base.transform.Find("Bg/NowSeal/p/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_NowSealTex = (base.transform.Find("Bg/NowSeal/Tex/Tex").GetComponent("XUITexture") as IXUITexture); + this.m_Description = (base.transform.Find("Bg/NowSeal/p/Description").GetComponent("XUILabel") as IXUILabel); + this.m_NextSealBtn = (base.transform.Find("Bg/NowSeal/NextSealBtn").GetComponent("XUIButton") as IXUIButton); + this.m_NextSealWindow = base.transform.Find("Bg/NextSeal").gameObject; + } + + public override void RegisterEvent() + { + this.m_NextSealBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnNextSealBtnClick)); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowNowSeal(); + this.ShowNewInfo(); + this.doc.ReqGetLevelSealInfo(); + } + + protected override void OnHide() + { + this.m_NextSealWindow.SetActive(false); + this.m_NowSealTex.SetTexturePath(""); + this._CDCounter = null; + base.OnHide(); + } + + public override void OnUnload() + { + this._CDCounter = null; + this.doc.View = null; + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.isCountdown && this._CDCounter != null; + if (flag) + { + this._CDCounter.Update(); + } + } + + private bool OnNextSealGoBattleClicked(IXUIButton sp) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Activity, 0UL); + return true; + } + + private void ShowNextLevelSeal() + { + this.doc.ShowNextLevelSeal(false, this.m_NextSealWindow.transform.position); + } + + private bool OnNextSealBtnClick(IXUIButton btn) + { + this.ShowNextLevelSeal(); + return true; + } + + public void ShowNowSeal() + { + this.m_Condition.SetText(this.doc.GetConditionInfo()); + this.m_NowSeal.SetText(this.doc.GetNowSealTitleInfo()); + this.m_Description.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("SEAL_DESCRIPTION"))); + DlgBase.singleton.ShowRemoveSealLeftTime(this.m_LeftTime, ref this._CDCounter, ref this.isCountdown); + } + + public void ShowNewInfo() + { + uint removeSealType = this.doc.GetRemoveSealType(XSingleton.singleton.XPlayerData.Level); + LevelSealTypeTable.RowData levelSealType = XLevelSealDocument.GetLevelSealType(removeSealType); + bool flag = !string.IsNullOrEmpty(levelSealType.NowSealImage); + if (flag) + { + this.m_NowSealTex.SetTexturePath(levelSealType.NowSealImage); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelSealView.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelSealView.cs.meta new file mode 100644 index 00000000..2851ba9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSealView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cac4e43afd2c0a24e9b6837b47e3688f +timeCreated: 1611404543 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelSpawnInfo.cs b/Client/Assets/Scripts/XMainClient/XLevelSpawnInfo.cs new file mode 100644 index 00000000..c5d3d4f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSpawnInfo.cs @@ -0,0 +1,412 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelSpawnInfo + { + public List _waves = new List(); + + public Dictionary _wavesDynamicInfo = new Dictionary(); + + public Dictionary _preloadInfo = new Dictionary(); + + private Queue _tasks = new Queue(); + + private const int spawn_monster_per_frame = 2; + + public void Clear() + { + this._waves.Clear(); + foreach (KeyValuePair keyValuePair in this._wavesDynamicInfo) + { + keyValuePair.Value.Reset(); + } + this._wavesDynamicInfo.Clear(); + this._preloadInfo.Clear(); + this._tasks.Clear(); + } + + public void ResetDynamicInfo() + { + foreach (KeyValuePair keyValuePair in this._wavesDynamicInfo) + { + keyValuePair.Value.Reset(); + } + } + + public void KillSpawn(int waveid) + { + List list = XSingleton.singleton.GetNeutral(); + for (int i = 0; i < list.Count; i++) + { + bool flag = list[i].Wave == waveid; + if (flag) + { + list[i].Attributes.ForceDeath(); + } + } + list = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int j = 0; j < list.Count; j++) + { + bool flag2 = list[j].Wave == waveid; + if (flag2) + { + list[j].Attributes.ForceDeath(); + } + } + } + + public void ShowBubble(int typeid, string text, float exist) + { + List all = XSingleton.singleton.GetAll(); + for (int i = 0; i < all.Count; i++) + { + bool flag = XEntity.ValideEntity(all[i]) && (ulong)all[i].TypeID == (ulong)((long)typeid); + if (flag) + { + XBubbleComponent xbubbleComponent = all[i].GetXComponent(XBubbleComponent.uuID) as XBubbleComponent; + bool flag2 = xbubbleComponent == null; + if (flag2) + { + XSingleton.singleton.CreateComponent(all[i], XBubbleComponent.uuID); + } + XBubbleEventArgs @event = XEventPool.GetEvent(); + @event.bubbletext = text; + @event.existtime = exist; + @event.Firer = all[i]; + @event.speaker = all[i].Name; + XSingleton.singleton.FireEvent(@event); + break; + } + } + } + + public void Update(float time) + { + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + this._SoloUpdate(time); + } + } + + protected void _SoloUpdate(float time) + { + for (int i = 0; i < this._waves.Count; i++) + { + XLevelDynamicInfo waveDynamicInfo = this.GetWaveDynamicInfo(this._waves[i]._id); + bool flag = waveDynamicInfo == null; + if (!flag) + { + bool flag2 = waveDynamicInfo._TotalCount != 0 && waveDynamicInfo._generateCount == waveDynamicInfo._TotalCount; + if (!flag2) + { + bool pushIntoTask = waveDynamicInfo._pushIntoTask; + if (!pushIntoTask) + { + bool flag3 = true; + for (int j = 0; j < this._waves[i]._preWave.Count; j++) + { + XLevelDynamicInfo xlevelDynamicInfo; + bool flag4 = this._wavesDynamicInfo.TryGetValue(this._waves[i]._preWave[j], out xlevelDynamicInfo); + if (flag4) + { + bool flag5 = xlevelDynamicInfo._generateCount != xlevelDynamicInfo._TotalCount; + if (flag5) + { + flag3 = false; + break; + } + bool flag6 = xlevelDynamicInfo._enemyIds.Count == 0; + if (flag6) + { + flag3 = true; + } + else + { + bool flag7 = xlevelDynamicInfo._enemyIds.Count == 1; + if (flag7) + { + XEntity entity = XSingleton.singleton.GetEntity(xlevelDynamicInfo._enemyIds[0]); + bool flag8 = entity != null; + if (flag8) + { + double attr = entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + double attr2 = entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag9 = attr2 > attr * (double)this._waves[i]._preWavePercent; + if (flag9) + { + flag3 = false; + break; + } + } + } + else + { + bool flag10 = xlevelDynamicInfo._generateCount != xlevelDynamicInfo._dieCount; + if (flag10) + { + flag3 = false; + break; + } + } + } + } + } + bool flag11 = !flag3; + if (!flag11) + { + bool flag12 = true; + bool flag13 = this._waves[i]._exString != null && this._waves[i]._exString.Length > 0; + if (flag13) + { + bool flag14 = !XSingleton.singleton.QueryExternalString(this._waves[i]._exString, false); + if (flag14) + { + flag12 = false; + } + } + bool flag15 = flag12 && waveDynamicInfo._exStringFinishTime == 0f; + if (flag15) + { + waveDynamicInfo._exStringFinishTime = time; + } + bool flag16 = flag3 && XSingleton.singleton.IsEqual(waveDynamicInfo._prewaveFinishTime, 0f); + if (flag16) + { + waveDynamicInfo._prewaveFinishTime = time; + } + bool flag17 = false; + bool flag18 = this._waves[i]._exString != null && this._waves[i]._exString.Length > 0; + if (flag18) + { + bool flag19 = time - waveDynamicInfo._exStringFinishTime >= this._waves[i]._time && waveDynamicInfo._exStringFinishTime > 0f; + if (flag19) + { + flag17 = true; + } + } + else + { + bool flag20 = this._waves[i].IsScriptWave() || waveDynamicInfo._generateCount < waveDynamicInfo._TotalCount; + if (flag20) + { + bool flag21 = flag3 && time - waveDynamicInfo._prewaveFinishTime >= this._waves[i]._time; + if (flag21) + { + flag17 = true; + } + } + } + bool flag22 = flag17; + if (flag22) + { + bool flag23 = this._waves[i].IsScriptWave(); + if (flag23) + { + this.GenerateScriptTask(this._waves[i]); + } + else + { + this.GenerateNormalTask(this._waves[i]); + this.GenerateRoundTask(this._waves[i]); + } + bool flag24 = !this._waves[i]._repeat; + if (flag24) + { + waveDynamicInfo._pushIntoTask = true; + } + bool flag25 = this._waves[i]._repeat && this._waves[i]._exString != null && this._waves[i]._exString.Length > 0; + if (flag25) + { + XSingleton.singleton.QueryExternalString(this._waves[i]._exString, true); + waveDynamicInfo._exStringFinishTime = 0f; + } + } + } + } + } + } + } + this.ProcessTaskQueue(time); + } + + public bool ExecuteWaveExtraScript(int wave) + { + for (int i = 0; i < this._waves.Count; i++) + { + XLevelDynamicInfo waveDynamicInfo = this.GetWaveDynamicInfo(this._waves[i]._id); + bool flag = waveDynamicInfo == null; + if (!flag) + { + bool pushIntoTask = waveDynamicInfo._pushIntoTask; + if (!pushIntoTask) + { + bool flag2 = this._waves[i]._preWave.Count > 0 && this._waves[i]._preWave[0] == wave && this._waves[i].IsScriptWave(); + if (flag2) + { + bool flag3 = XSingleton.singleton.IsTalkScript(this._waves[i]._levelscript); + if (flag3) + { + XSingleton.singleton.BossExtarScriptExecuting = true; + XSingleton.singleton.SetTimer(this._waves[i]._time, new XTimerMgr.ElapsedEventHandler(this.RunExtraScript), this._waves[i]._levelscript); + return true; + } + } + } + } + } + return false; + } + + protected void RunExtraScript(object o) + { + string funcName = (string)o; + XSingleton.singleton.RunScript(funcName); + } + + protected void ProcessTaskQueue(float time) + { + bool flag = true; + for (int i = 0; i < 2; i++) + { + bool flag2 = flag; + if (flag2) + { + bool flag3 = this._tasks.Count > 0; + if (flag3) + { + XLevelBaseTask xlevelBaseTask = this._tasks.Dequeue(); + flag = xlevelBaseTask.Execute(time); + } + } + } + } + + public XLevelDynamicInfo GetWaveDynamicInfo(int waveid) + { + XLevelDynamicInfo xlevelDynamicInfo; + bool flag = this._wavesDynamicInfo.TryGetValue(waveid, out xlevelDynamicInfo); + XLevelDynamicInfo result; + if (flag) + { + result = xlevelDynamicInfo; + } + else + { + result = null; + } + return result; + } + + protected XLevelWave GetWaveInfo(int waveid) + { + for (int i = 0; i < this._waves.Count; i++) + { + bool flag = this._waves[i]._id == waveid; + if (flag) + { + return this._waves[i]; + } + } + return null; + } + + public void OnMonsterDie(XEntity entity) + { + XLevelDynamicInfo xlevelDynamicInfo; + bool flag = this._wavesDynamicInfo.TryGetValue(entity.Wave, out xlevelDynamicInfo); + if (flag) + { + xlevelDynamicInfo._dieCount++; + xlevelDynamicInfo._enemyIds.Remove(entity.ID); + } + XSingleton.singleton.OnMonsterDie(entity); + } + + public void GenerateExternalSpawnTask(uint enemyID, Vector3 pos, int rot) + { + XLevelSpawnTask xlevelSpawnTask = new XLevelSpawnTask(this); + xlevelSpawnTask._id = -1; + xlevelSpawnTask._EnemyID = enemyID; + xlevelSpawnTask._MonsterRotate = rot; + xlevelSpawnTask._MonsterIndex = 0; + xlevelSpawnTask._MonsterPos = pos; + xlevelSpawnTask._SpawnType = LevelSpawnType.Spawn_Source_Monster; + xlevelSpawnTask._IsSummonTask = true; + this._tasks.Enqueue(xlevelSpawnTask); + } + + protected void GenerateNormalTask(XLevelWave wave) + { + XSingleton.singleton.ls._monster_refresh_time.Add((uint)(Time.time - XSingleton.singleton.ls._start_time)); + foreach (KeyValuePair keyValuePair in wave._monsterPos) + { + XLevelSpawnTask xlevelSpawnTask = new XLevelSpawnTask(this); + xlevelSpawnTask._id = wave._id; + xlevelSpawnTask._EnemyID = wave._EnemyID; + xlevelSpawnTask._MonsterRotate = (int)wave._monsterRot[keyValuePair.Key].y; + xlevelSpawnTask._MonsterIndex = keyValuePair.Key; + xlevelSpawnTask._MonsterPos = keyValuePair.Value; + xlevelSpawnTask._SpawnType = wave._spawnType; + xlevelSpawnTask._IsSummonTask = false; + this._tasks.Enqueue(xlevelSpawnTask); + } + } + + protected void GenerateRoundTask(XLevelWave wave) + { + bool flag = wave._roundRidus > 0f && wave._roundCount > 0; + if (flag) + { + XSingleton.singleton.ls._monster_refresh_time.Add((uint)(Time.time - XSingleton.singleton.ls._start_time)); + float num = 360f / (float)wave._roundCount; + Vector3 position = XSingleton.singleton.Player.EngineObject.Position; + for (int i = 0; i < wave._roundCount; i++) + { + XLevelSpawnTask xlevelSpawnTask = new XLevelSpawnTask(this); + xlevelSpawnTask._id = wave._id; + xlevelSpawnTask._EnemyID = wave._EnemyID; + xlevelSpawnTask._MonsterIndex = 0; + xlevelSpawnTask._MonsterPos = position + Quaternion.Euler(0f, num * (float)i, 0f) * new Vector3(0f, 0f, 1f) * wave._roundRidus; + xlevelSpawnTask._MonsterRotate = (int)num * i + 180; + xlevelSpawnTask._SpawnType = wave._spawnType; + xlevelSpawnTask._IsSummonTask = false; + this._tasks.Enqueue(xlevelSpawnTask); + } + } + } + + protected void GenerateScriptTask(XLevelWave wave) + { + XLevelScriptTask xlevelScriptTask = new XLevelScriptTask(this); + xlevelScriptTask._ScriptName = wave._levelscript; + this._tasks.Enqueue(xlevelScriptTask); + } + + public bool QueryMonsterStaticInfo(uint monsterID, ref Vector3 position, ref float face) + { + for (int i = 0; i < this._waves.Count; i++) + { + bool flag = this._waves[i]._EnemyID == monsterID; + if (flag) + { + using (Dictionary.KeyCollection.Enumerator enumerator = this._waves[i]._monsterPos.Keys.GetEnumerator()) + { + if (enumerator.MoveNext()) + { + int key = enumerator.Current; + position = this._waves[i]._monsterPos[key]; + face = this._waves[i]._monsterRot[key].y; + return true; + } + } + } + } + return false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelSpawnInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelSpawnInfo.cs.meta new file mode 100644 index 00000000..b06817af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSpawnInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 54572ae1821882d4ca38eaf4d70acff8 +timeCreated: 1611403714 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelSpawnMgr.cs b/Client/Assets/Scripts/XMainClient/XLevelSpawnMgr.cs new file mode 100644 index 00000000..e0d5fbbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSpawnMgr.cs @@ -0,0 +1,403 @@ +using System; +using System.Collections.Generic; +using System.IO; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelSpawnMgr : XSingleton + { + public bool HasRobot + { + get + { + return this._CachedRobotFromServer != null; + } + } + + public XLevelSpawnInfo CurrentSpawner + { + get + { + return this._curSpawner; + } + } + + public XAIGlobal AIGlobal + { + get + { + return this._aiGlobal; + } + } + + private float _time = 0f; + + private XLevelSpawnInfo _curSpawner; + + private XAIGlobal _aiGlobal; + + private Dictionary _CachedMonsterFromServer = new Dictionary(); + + private UnitAppearance _CachedRobotFromServer = null; + + private RandomBossTable _RandomBossReader = new RandomBossTable(); + + public XEntity robot; + + public bool BossExtarScriptExecuting = false; + + public List MonsterIDs = new List(); + + public bool ForcePreloadOneWave = false; + + public int MaxPreloadCount = 6; + + private List ret = new List(); + + public override bool Init() + { + XSingleton.singleton.ReadFile("Table/RandomEntityList", this._RandomBossReader); + return true; + } + + public override void Uninit() + { + } + + private List GetCollectionEntityID(int RandomID) + { + this.ret.Clear(); + for (int i = 0; i < this._RandomBossReader.Table.Length; i++) + { + bool flag = this._RandomBossReader.Table[i].RandomID == RandomID; + if (flag) + { + this.ret.Add(this._RandomBossReader.Table[i].EntityID); + } + } + return this.ret; + } + + public bool OnSceneLoaded(uint sceneID) + { + XSingleton.singleton.OnSceneLoaded(sceneID); + string sceneConfigFile = XSingleton.singleton.GetSceneConfigFile(sceneID); + bool flag = sceneConfigFile.Length == 0; + bool result; + if (flag) + { + this._curSpawner = null; + XSingleton.singleton.ClearWallInfo(); + XSingleton.singleton.Reset(); + result = false; + } + else + { + this.ReadFromSpawnConfig(sceneID, sceneConfigFile); + XSingleton.singleton.CommandCount = 0u; + this.BossExtarScriptExecuting = false; + result = true; + } + return result; + } + + public void GetMonsterCount(XLevelSpawnInfo spawner, ref int totalMonster, ref int totalBoss) + { + bool flag = spawner == null; + if (!flag) + { + int num = 0; + int num2 = 0; + for (int i = 0; i < spawner._waves.Count; i++) + { + XLevelWave xlevelWave = spawner._waves[i]; + bool flag2 = xlevelWave._spawnType == LevelSpawnType.Spawn_Source_Monster; + if (flag2) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(xlevelWave._EnemyID); + bool flag3 = byID != null && XSingleton.singleton.IsOpponent((uint)byID.Fightgroup); + if (flag3) + { + bool flag4 = 1 == byID.Type; + if (flag4) + { + num += xlevelWave._monsterPos.Count + xlevelWave._roundCount; + num2 += xlevelWave._monsterPos.Count + xlevelWave._roundCount; + } + bool flag5 = 6 == byID.Type || 2 == byID.Type; + if (flag5) + { + num += xlevelWave._monsterPos.Count + xlevelWave._roundCount; + } + } + } + else + { + bool flag6 = xlevelWave._spawnType == LevelSpawnType.Spawn_Source_Random; + if (flag6) + { + num += xlevelWave._monsterPos.Count + xlevelWave._roundCount; + int randomID = xlevelWave._randomID; + List collectionEntityID = this.GetCollectionEntityID(randomID); + bool flag7 = collectionEntityID.Count > 0; + if (flag7) + { + int key = collectionEntityID[0]; + XEntityStatistics.RowData byID2 = XSingleton.singleton.EntityStatistics.GetByID((uint)key); + bool flag8 = 1 == byID2.Type; + if (flag8) + { + num2 += xlevelWave._monsterPos.Count + xlevelWave._roundCount; + } + } + } + else + { + num += xlevelWave._monsterPos.Count + xlevelWave._roundCount; + } + } + } + totalMonster = num; + totalBoss = num2; + } + } + + private void ReadFromSpawnConfig(uint sceneID, string configFile) + { + this._time = 0f; + bool flag = this._curSpawner == null; + if (flag) + { + this._curSpawner = new XLevelSpawnInfo(); + } + else + { + this._curSpawner.Clear(); + } + Stream stream = XSingleton.singleton.ReadText("Table/" + configFile, ".txt", true); + StreamReader streamReader = new StreamReader(stream); + string text = streamReader.ReadLine(); + int num = int.Parse(text); + text = streamReader.ReadLine(); + int num2 = int.Parse(text); + for (int i = 0; i < num2; i++) + { + text = streamReader.ReadLine(); + string[] array = text.Split(new char[] + { + ',' + }); + int key = int.Parse(array[0].Substring(3)); + int value = int.Parse(array[1]); + bool forcePreloadOneWave = this.ForcePreloadOneWave; + if (forcePreloadOneWave) + { + bool flag2 = i == 0; + if (flag2) + { + this._curSpawner._preloadInfo.Add(key, value); + } + } + else + { + bool flag3 = this._curSpawner._preloadInfo.Count < this.MaxPreloadCount; + if (flag3) + { + this._curSpawner._preloadInfo.Add(key, value); + } + } + } + for (int j = 0; j < num; j++) + { + XLevelWave xlevelWave = new XLevelWave(); + xlevelWave.ReadFromFile(streamReader); + this._curSpawner._waves.Add(xlevelWave); + XLevelDynamicInfo xlevelDynamicInfo = new XLevelDynamicInfo(); + xlevelDynamicInfo._id = xlevelWave._id; + xlevelDynamicInfo._TotalCount = xlevelWave._monsterPos.Count + xlevelWave._roundCount; + xlevelDynamicInfo.Reset(); + this._curSpawner._wavesDynamicInfo.Add(xlevelWave._id, xlevelDynamicInfo); + } + XSingleton.singleton.ClearStream(stream); + this._time = 0f; + XSingleton.singleton.PreloadLevelScript(configFile + "_sc"); + } + + public void InitGlobalAI(uint sceneId) + { + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + this._aiGlobal = new XAIGlobal(); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneId); + bool flag2 = sceneData != null; + if (flag2) + { + this._aiGlobal.InitAIGlobal(sceneData.SceneAI); + } + else + { + this._aiGlobal.InitAIGlobal("default"); + } + } + } + + public void UnInitGlobalAI() + { + bool flag = this._aiGlobal != null; + if (flag) + { + this._aiGlobal.UnInitAIGlobal(); + this._aiGlobal = null; + } + XSingleton.singleton.ClearAIData(); + } + + public void OnLeaveScene() + { + bool flag = this._curSpawner != null; + if (flag) + { + this._curSpawner.Clear(); + this._curSpawner = null; + } + this.robot = null; + XSingleton.singleton.OnLeaveScene(); + } + + public XLevelSpawnInfo GetSpawnerBySceneID(uint sceneID) + { + return this._curSpawner; + } + + public void OnMonsterDie(XEntity entity) + { + XPlayer xplayer = entity as XPlayer; + bool flag = entity != null && this._curSpawner != null; + if (flag) + { + this._curSpawner.OnMonsterDie(entity); + } + } + + public void OnMonsterSpawn(int waveid) + { + } + + public void Update(float delta) + { + bool isCurrentLevelFinished = XSingleton.singleton.IsCurrentLevelFinished; + if (!isCurrentLevelFinished) + { + bool needCheckLevelfinishScript = XSingleton.singleton.NeedCheckLevelfinishScript; + if (!needCheckLevelfinishScript) + { + this._time += delta; + bool flag = this._curSpawner != null; + if (flag) + { + this._curSpawner.Update(this._time); + } + } + } + } + + public void SetMonster(UnitAppearance monster) + { + uint waveID = monster.waveID; + monster.waveID = waveID - 1u; + this._CachedMonsterFromServer[monster.waveID] = monster; + } + + public void CacheServerMonster(List Monsters) + { + this._CachedMonsterFromServer.Clear(); + for (int i = 0; i < Monsters.Count; i++) + { + this._CachedMonsterFromServer.Add(Monsters[i].waveID, Monsters[i]); + } + } + + public void CacheServerRobot(UnitAppearance Robot) + { + this._CachedRobotFromServer = Robot; + } + + public UnitAppearance GetCacheServerMonster(uint wave) + { + UnitAppearance unitAppearance; + bool flag = this._CachedMonsterFromServer.TryGetValue(wave, out unitAppearance); + UnitAppearance result; + if (flag) + { + result = unitAppearance; + } + else + { + result = null; + } + return result; + } + + public void CreateRobot(uint sceneid) + { + bool flag = this._CachedRobotFromServer == null; + if (!flag) + { + Vector3 sceneStartPos = XSingleton.singleton.GetSceneStartPos(sceneid); + Vector3 forward = XSingleton.singleton.Player.EngineObject.Forward; + Vector3 position = sceneStartPos + forward; + Quaternion sceneStartRot = XSingleton.singleton.GetSceneStartRot(sceneid); + XAttributes attr = XSingleton.singleton.InitAttrFromServer(this._CachedRobotFromServer.uID, this._CachedRobotFromServer.nickid, this._CachedRobotFromServer.unitType, this._CachedRobotFromServer.unitName, this._CachedRobotFromServer.attributes, this._CachedRobotFromServer.fightgroup, this._CachedRobotFromServer.isServerControl, this._CachedRobotFromServer.skills, null, new XOutLookAttr((this._CachedRobotFromServer.outlook != null) ? this._CachedRobotFromServer.outlook.guild : null), this._CachedRobotFromServer.level, 0u); + this.robot = XSingleton.singleton.Add(XSingleton.singleton.CreateRole(attr, position, sceneStartRot, false, false)); + bool isDead = this._CachedRobotFromServer.IsDead; + if (isDead) + { + XSingleton.singleton.DeathDetect(this.robot, null, true); + } + } + } + + public bool ExecuteWaveExtraScript(int wave) + { + bool flag = this._curSpawner != null; + return flag && this._curSpawner.ExecuteWaveExtraScript(wave); + } + + public void SpawnExternalMonster(uint enemyID, Vector3 pos, int rot = 0) + { + bool flag = this._curSpawner != null; + if (flag) + { + this._curSpawner.GenerateExternalSpawnTask(enemyID, pos, rot); + } + } + + public void KillAllMonster() + { + List opponent = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player); + for (int i = 0; i < opponent.Count; i++) + { + XSingleton.singleton.DeathDetect(opponent[i], null, true); + } + } + + public void CacheServerMonsterID(List idList) + { + this.MonsterIDs.Clear(); + for (int i = 0; i < idList.Count; i++) + { + this.MonsterIDs.Add(idList[i]); + } + } + + public bool QueryMonsterStaticInfo(uint monsterID, ref Vector3 position, ref float face) + { + bool flag = this.CurrentSpawner == null; + return !flag && this.CurrentSpawner.QueryMonsterStaticInfo(monsterID, ref position, ref face); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelSpawnMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelSpawnMgr.cs.meta new file mode 100644 index 00000000..76df2ac7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSpawnMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dd251532db0037a41a959685f56759be +timeCreated: 1611404681 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelSpawnTask.cs b/Client/Assets/Scripts/XMainClient/XLevelSpawnTask.cs new file mode 100644 index 00000000..56f4eed3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSpawnTask.cs @@ -0,0 +1,163 @@ +using System; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelSpawnTask : XLevelBaseTask + { + public uint _EnemyID; + + public int _MonsterRotate; + + public int _MonsterIndex; + + public Vector3 _MonsterPos; + + public LevelSpawnType _SpawnType; + + public bool _IsSummonTask; + + public XLevelSpawnTask(XLevelSpawnInfo ls) : base(ls) + { + this._IsSummonTask = false; + } + + public XEntity CreateClientMonster(uint id, float yRotate, Vector3 pos, int _waveid) + { + Quaternion rotation = Quaternion.Euler(0f, yRotate, 0f); + XEntity xentity = XSingleton.singleton.CreateEntity(id, pos, rotation, true, uint.MaxValue); + bool flag = xentity != null; + XEntity result; + if (flag) + { + xentity.Wave = _waveid; + xentity.CreateTime = Time.realtimeSinceStartup; + XAIEventArgs @event = XEventPool.GetEvent(); + @event.DepracatedPass = true; + @event.Firer = XSingleton.singleton.Player; + @event.EventType = 1; + @event.EventArg = "SpawnMonster"; + XSingleton.singleton.FireEvent(@event, 0.05f); + result = xentity; + } + else + { + result = null; + } + return result; + } + + public XEntity CreateServerAttrMonster(UnitAppearance data, float yRotate, Vector3 pos, int _waveid) + { + XAttributes xattributes = XSingleton.singleton.InitAttrFromServer(data.uID, data.nickid, data.unitType, data.unitName, data.attributes, data.fightgroup, data.isServerControl, data.skills, data.bindskills, new XOutLookAttr((OutLook)null), data.level, 0u); + xattributes.Outlook.SetData(data.outlook, xattributes.TypeID); + bool flag = xattributes.Type == EntitySpecies.Species_Role; + XEntity xentity; + if (flag) + { + xentity = XSingleton.singleton.Add(XSingleton.singleton.CreateRole(xattributes, pos, Quaternion.Euler(0f, yRotate, 0f), false, false)); + } + else + { + xentity = XSingleton.singleton.Add(XSingleton.singleton.CreateEntity(xattributes, pos, Quaternion.Euler(0f, yRotate, 0f), false)); + } + bool flag2 = xentity != null; + XEntity result; + if (flag2) + { + xentity.Wave = _waveid; + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_BOSSRUSH; + if (flag3) + { + XLevelDocument specificDocument = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + BossRushTable.RowData bossRushConfig = specificDocument.GetBossRushConfig(XSingleton.singleton.SceneID, (uint)(XSingleton.singleton.ls._total_kill + 1)); + bool flag4 = data != null; + if (flag4) + { + float num = 1f; + double attr = xentity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Basic); + double value = attr * (double)num; + xentity.Attributes.SetAttr(XAttributeDefine.XAttr_MaxHP_Basic, value); + xentity.Attributes.SetAttr(XAttributeDefine.XAttr_CurrentHP_Basic, value); + } + } + bool isDead = data.IsDead; + if (isDead) + { + XSingleton.singleton.DeathDetect(xentity, null, true); + result = null; + } + else + { + result = xentity; + } + } + else + { + result = null; + } + return result; + } + + public override bool Execute(float time) + { + base.Execute(time); + XLevelDynamicInfo xlevelDynamicInfo = null; + bool flag = !this._IsSummonTask; + if (flag) + { + xlevelDynamicInfo = this._spawner.GetWaveDynamicInfo(this._id); + bool flag2 = xlevelDynamicInfo == null; + if (flag2) + { + return true; + } + } + XEntity xentity = null; + bool flag3 = this._SpawnType == LevelSpawnType.Spawn_Source_Monster; + if (flag3) + { + xentity = this.CreateClientMonster(this._EnemyID, (float)this._MonsterRotate, this._MonsterPos + new Vector3(0f, 0.02f, 0f), this._id); + XSingleton.singleton.ls.AddLevelSpawnEntityCount(xentity.ID); + } + else + { + bool flag4 = this._SpawnType == LevelSpawnType.Spawn_Source_Doodad; + if (!flag4) + { + UnitAppearance cacheServerMonster = XSingleton.singleton.GetCacheServerMonster((uint)this._id); + bool flag5 = cacheServerMonster != null; + if (flag5) + { + xentity = this.CreateServerAttrMonster(cacheServerMonster, (float)this._MonsterRotate, this._MonsterPos + new Vector3(0f, 0.02f, 0f), this._id); + } + XSingleton.singleton.ls.AddLevelSpawnEntityCount(xentity.ID); + } + } + bool flag6 = xlevelDynamicInfo != null; + if (flag6) + { + bool flag7 = xentity != null; + if (flag7) + { + xlevelDynamicInfo._generateCount++; + xlevelDynamicInfo._enemyIds.Add(xentity.ID); + } + bool flag8 = xlevelDynamicInfo._generateCount == xlevelDynamicInfo._TotalCount; + if (flag8) + { + xlevelDynamicInfo._generatetime = time; + } + bool flag9 = xentity != null && xentity.IsBoss; + if (flag9) + { + XSingleton.singleton.HasBoss = true; + return false; + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelSpawnTask.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelSpawnTask.cs.meta new file mode 100644 index 00000000..ad94e755 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelSpawnTask.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 18662f887dd4ac84bb7639e0f132c776 +timeCreated: 1611403297 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelState.cs b/Client/Assets/Scripts/XMainClient/XLevelState.cs new file mode 100644 index 00000000..c4587128 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelState.cs @@ -0,0 +1,144 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelState + { + public uint _current_scene_id; + + public int _total_monster = 0; + + public int _total_kill = 0; + + public int _before_force_kill = 0; + + public int _after_force_kill = 0; + + public Dictionary _entity_in_level_spawn = new Dictionary(); + + public Dictionary _entity_die = new Dictionary(); + + public int _boss_total = 0; + + public int _boss_kill = 0; + + public int _remain_monster = 0; + + public int _boss_rush_kill = 0; + + public int _abnormal_monster = 0; + + public int _boss_exist_time = 0; + + public int _monster_exist_time = 0; + + public int _BossWave = 0; + + public Vector3 _lastDieEntityPos; + + public float _lastDieEntityHeight = 0f; + + public bool _refuseRevive = false; + + public int _player_continue_index = 0; + + public uint _my_team_alive = 0u; + + public uint _op_team_alive = 0u; + + public uint _revive_count = 0u; + + public uint _death_count = 0u; + + public uint _max_combo; + + public uint _player_behit; + + public float _start_time; + + public float _end_time; + + public bool _key_npc_die; + + public uint _enemy_in_fight; + + public int _box_enemy_kill = 0; + + public float _total_damage = 0f; + + public float _total_hurt = 0f; + + public float _total_heal = 0f; + + public List _monster_refresh_time = new List(); + + private SceneType sceneType; + + public void AddEntityDieCount(ulong entityID) + { + } + + public void AddLevelSpawnEntityCount(ulong entityID) + { + bool flag = !this._entity_in_level_spawn.ContainsKey(entityID); + if (flag) + { + this._entity_in_level_spawn.Add(entityID, 1); + } + else + { + Dictionary entity_in_level_spawn = this._entity_in_level_spawn; + entity_in_level_spawn[entityID]++; + } + } + + public bool CheckEntityInLevelSpawn(ulong entityID) + { + int num = 0; + bool flag = this._entity_in_level_spawn.TryGetValue(entityID, out num); + return flag && num > 0; + } + + public void Reset() + { + this._current_scene_id = 0u; + this._total_monster = 0; + this._total_kill = 0; + this._remain_monster = 0; + this._before_force_kill = 0; + this._after_force_kill = 0; + this._entity_in_level_spawn.Clear(); + this._entity_die.Clear(); + this._boss_kill = 0; + this._boss_total = 0; + this._boss_rush_kill = 0; + this._BossWave = 0; + this._lastDieEntityPos = Vector3.zero; + this._lastDieEntityHeight = 0f; + this._refuseRevive = false; + this._revive_count = 0u; + this._player_continue_index = 0; + this._abnormal_monster = 0; + this._boss_exist_time = 0; + this._monster_exist_time = 0; + this._my_team_alive = 1u; + this._op_team_alive = 0u; + this._max_combo = 0u; + this._player_behit = 0u; + this._start_time = 0f; + this._end_time = 0f; + this._box_enemy_kill = 0; + this._key_npc_die = false; + this._enemy_in_fight = 0u; + this._total_damage = 0f; + this._total_hurt = 0f; + this._total_heal = 0f; + this._monster_refresh_time.Clear(); + this.sceneType = XSingleton.singleton.SceneType; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelState.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelState.cs.meta new file mode 100644 index 00000000..318cdbcf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: df9d3b0d11bd14d49840c108484bba51 +timeCreated: 1611404693 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelStatistics.cs b/Client/Assets/Scripts/XMainClient/XLevelStatistics.cs new file mode 100644 index 00000000..2a9434d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelStatistics.cs @@ -0,0 +1,338 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelStatistics : XSingleton + { + public uint ComboCount + { + get + { + return this._comboCount; + } + set + { + this._comboCount = value; + } + } + + public XLevelState ls = new XLevelState(); + + public static readonly int BOX_ENEMY_ID = 5011; + + private uint _comboCount; + + private float _lastHitTime; + + private float _combo_interval = 2f; + + public void Clear() + { + this._comboCount = 0u; + this._lastHitTime = 0f; + } + + public void OnEnterScene(uint sceneID) + { + this.ls.Reset(); + this.ls._current_scene_id = sceneID; + this.ls._start_time = Time.time; + XSingleton.singleton.GetMonsterCount(XSingleton.singleton.CurrentSpawner, ref this.ls._total_monster, ref this.ls._boss_total); + this._combo_interval = float.Parse(XSingleton.singleton.GetValue("ComboInterval")); + } + + public void OnLeaveScene() + { + } + + public void OnMonsterDie(XEntity entity) + { + Vector3 lastDieEntityPos = entity.EngineObject.Position + new Vector3(0f, entity.Height / 2f, 0f); + bool flag = entity.IsOpposer || entity.IsBoss || entity.IsRole; + if (flag) + { + bool flag2 = XSingleton.singleton.IsOpponent(entity, XSingleton.singleton.Player); + if (flag2) + { + bool flag3 = entity.Wave >= 0 && this.ls.CheckEntityInLevelSpawn(entity.ID); + if (flag3) + { + this.ls._total_kill++; + bool flag4 = entity.CreateTime > 0f; + if (flag4) + { + this.ls._monster_exist_time += (int)(Time.realtimeSinceStartup - entity.CreateTime); + } + bool isBoss = entity.IsBoss; + if (isBoss) + { + this.ls._boss_kill++; + this.ls._BossWave = entity.Wave; + bool flag5 = entity.CreateTime > 0f; + if (flag5) + { + this.ls._boss_exist_time += (int)(Time.realtimeSinceStartup - entity.CreateTime); + } + } + Dictionary entity_in_level_spawn = this.ls._entity_in_level_spawn; + ulong id = entity.ID; + entity_in_level_spawn[id]--; + bool flag6 = (XSingleton.singleton.Player.EngineObject.Position - entity.EngineObject.Position).sqrMagnitude > 2500f; + if (flag6) + { + this.ls._abnormal_monster++; + } + } + this.ls.AddEntityDieCount((ulong)entity.TypeID); + bool flag7 = this.ls._boss_kill <= this.ls._boss_total; + if (flag7) + { + this.ls._lastDieEntityPos = lastDieEntityPos; + this.ls._lastDieEntityHeight = entity.Height; + } + } + } + bool isBoss2 = entity.IsBoss; + if (isBoss2) + { + this.ls._boss_rush_kill++; + } + bool flag8 = DlgBase.singleton.IsLoaded(); + if (flag8) + { + DlgBase.singleton.IndicateHandler.OnMonsterDie(entity); + } + bool flag9 = DlgBase.singleton.IsLoaded(); + if (flag9) + { + DlgBase.singleton.IndicateHandler.OnMonsterDie(entity); + } + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + this.ls._my_team_alive -= 1u; + this.OnPlayerDie(); + } + bool flag10 = (ulong)entity.TypeID == (ulong)((long)XLevelStatistics.BOX_ENEMY_ID); + if (flag10) + { + this.ls._box_enemy_kill++; + } + bool flag11 = (ulong)entity.TypeID == (ulong)((long)XSingleton.singleton.KeyNpcID); + if (flag11) + { + this.ls._key_npc_die = true; + } + XSingleton.singleton.OnMonsterDie(entity); + } + + public void OnPlayerDie() + { + this.ls._death_count += 1u; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this.ls._current_scene_id); + XSingleton.singleton.MakeEffectEnable(XPostEffect.BlackWhite, true); + bool flag = sceneData.type == 7 || sceneData.type == 11; + if (!flag) + { + XReviveDocument specificDocument = XDocuments.GetSpecificDocument(XReviveDocument.uuID); + bool flag2 = !sceneData.CanRevive || (specificDocument.ReviveUsedTime >= specificDocument.ReviveMaxTime && !XSingleton.singleton.SyncMode); + if (flag2) + { + this.ls._refuseRevive = true; + } + else + { + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SkillHandler.SetVisible(false); + } + specificDocument.StartRevive(); + } + } + } + + public void OnPlayerRevive() + { + this.ls._revive_count += 1u; + this.ls._my_team_alive += 1u; + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this.ls._current_scene_id); + XSingleton.singleton.MakeEffectEnable(XPostEffect.BlackWhite, false); + bool flag = sceneData.type == 7 || sceneData.type == 11; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.OnPlayerRevive(); + } + } + else + { + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.SkillHandler.SetVisible(true); + } + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + xplayerAttributes.HPMPReset(); + XSingleton.singleton.CreateAndPlay(XSingleton.singleton.GetValue("ReviveFx"), XSingleton.singleton.Player.EngineObject, Vector3.zero, Vector3.one, 1f, true, 5f, true); + } + } + + public void OnPlayerRefuseRevive() + { + this.ls._refuseRevive = true; + } + + public void OnHitEnemy(int comboCount = -1) + { + float realtimeSinceStartup = Time.realtimeSinceStartup; + this._lastHitTime = realtimeSinceStartup; + bool flag = comboCount < 0; + if (flag) + { + this._comboCount += 1u; + } + else + { + this._comboCount = (uint)comboCount; + } + bool flag2 = this._comboCount > this.ls._max_combo; + if (flag2) + { + this.ls._max_combo = this._comboCount; + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.OnComboChange(this._comboCount); + } + this._SendComboCountEvent(); + } + + public void OnEnemyHitEnemy(XEntity entity) + { + bool flag = entity == null || entity.Attributes == null || entity.Attributes.HostID != XSingleton.singleton.XPlayerData.RoleID; + if (!flag) + { + XOthersAttributes xothersAttributes = entity.Attributes as XOthersAttributes; + bool flag2 = xothersAttributes != null && xothersAttributes.LinkCombo == 1; + if (flag2) + { + this.OnHitEnemy(-1); + } + } + } + + public void OnPlayerBeHit() + { + this.ls._player_behit += 1u; + } + + public void OnAIinFight(XEntity entity) + { + bool isEnemy = entity.IsEnemy; + if (isEnemy) + { + this.ls._enemy_in_fight += 1u; + } + } + + public void SetPlayerContineIndex(int index) + { + this.ls._player_continue_index = index; + this.ls._start_time = Time.time; + XSingleton.singleton.SetExternalString("playercontinue" + this.ls._player_continue_index.ToString(), false); + } + + public void AddPlayerContinueIndex() + { + this.ls._player_continue_index++; + this.ls._start_time = Time.time; + XSingleton.singleton.SetExternalString("playercontinue" + this.ls._player_continue_index.ToString(), false); + } + + public void Update() + { + float realtimeSinceStartup = Time.realtimeSinceStartup; + bool flag = realtimeSinceStartup - this._lastHitTime > this._combo_interval; + if (flag) + { + bool flag2 = this._comboCount > 0u; + if (flag2) + { + this._comboCount = 0u; + this._SendComboCountEvent(); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.OnComboChange(this._comboCount); + } + } + bool flag4 = !XSingleton.singleton.SyncMode; + if (flag4) + { + XSingleton.singleton.CanLevelFinished(this.ls); + bool isCurrentLevelFinished = XSingleton.singleton.IsCurrentLevelFinished; + if (isCurrentLevelFinished) + { + bool flag5 = this.ls._end_time <= 0f; + if (flag5) + { + this.ls._end_time = Time.time; + } + } + } + } + + public void OnSetBattleResult() + { + this.ls._remain_monster = XSingleton.singleton.GetOpponent(XSingleton.singleton.Player).Count; + } + + public void OnBeforeKillMonster() + { + this.ls._before_force_kill = this.ls._total_kill; + } + + private void _SendComboCountEvent() + { + bool flag = XSingleton.singleton.SyncMode || XSingleton.singleton.Player == null; + if (!flag) + { + XOnComboChangeEventArgs @event = XEventPool.GetEvent(); + @event.ComboCount = this._comboCount; + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + } + } + + public void SendData() + { + XStaticSecurityStatistics.Append("PlayerDeadCount", this.ls._death_count); + XStaticSecurityStatistics.Append("PlayerReliveCount", this.ls._revive_count); + XStaticSecurityStatistics.Append("MonsterCount", (float)(this.ls._total_monster + XStaticSecurityStatistics._MonsterAIInfo._BossCallMonsterTotal)); + XStaticSecurityStatistics.Append("MonsterEndCount", (float)this.ls._remain_monster); + XStaticSecurityStatistics.Append("MonsterCount1", (float)this.ls._before_force_kill); + XStaticSecurityStatistics.Append("MonsterCount2", (float)this.ls._after_force_kill); + XStaticSecurityStatistics.Append("MonsterCount3", (float)this.ls._abnormal_monster); + XStaticSecurityStatistics.Append("BossCount", (float)this.ls._boss_total); + XStaticSecurityStatistics.Append("BossKillCount", (float)this.ls._boss_kill); + XStaticSecurityStatistics.Append("BossTimeTotal", (float)this.ls._boss_exist_time); + XStaticSecurityStatistics.Append("MonsterTimeTotal", (float)this.ls._monster_exist_time); + XStaticSecurityStatistics.Append("RoundTimeUse", (this.ls._end_time > this.ls._start_time) ? ((this.ls._end_time - this.ls._start_time) * 1000f) : 0f); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelStatistics.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelStatistics.cs.meta new file mode 100644 index 00000000..915eec15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelStatistics.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2ae22cfef324efe4d8a2a5221a4a2ff8 +timeCreated: 1611403497 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs b/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs new file mode 100644 index 00000000..1c0b6722 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs @@ -0,0 +1,65 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelUpStatusBehaviour : DlgBehaviourBase + { + public XUIPool m_AttrPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITweenTool m_iPlayTween; + + public IXUIButton m_Close; + + public Transform m_NewSkillFrame; + + public XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_sprSkillBg; + + public IXUILabel m_PreFishingLevel; + + public IXUILabel m_CurFishingLevel; + + public IXUILabel m_FishingTitle; + + public GameObject m_AttrFrame; + + public GameObject m_FishFrame; + + public GameObject m_objWing; + + public IXUILabel m_lblLevel; + + public IXUILabel m_lblSkillPoint; + + public IXUILabel m_lblCurrLevel; + + public IXUITweenTool m_tweenLevel; + + private void Awake() + { + this.m_AttrFrame = base.transform.Find("Bg/AttrFrame").gameObject; + this.m_FishFrame = base.transform.Find("Bg/FishFrame").gameObject; + Transform transform = this.m_AttrFrame.transform.Find("AttrTpl"); + this.m_AttrPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_iPlayTween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_NewSkillFrame = this.m_AttrFrame.transform.Find("NewSkillFrame"); + this.m_sprSkillBg = (this.m_AttrFrame.transform.Find("p").GetComponent("XUISprite") as IXUISprite); + transform = this.m_NewSkillFrame.Find("SkillTpl"); + this.m_SkillPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_lblSkillPoint = (this.m_AttrFrame.transform.Find("SkillPoint/Label").GetComponent("XUILabel") as IXUILabel); + this.m_lblCurrLevel = (this.m_AttrFrame.transform.Find("CurLevel").GetComponent("XUILabel") as IXUILabel); + this.m_tweenLevel = (this.m_AttrFrame.transform.Find("CurLevel").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_PreFishingLevel = (this.m_FishFrame.transform.Find("PreLevel").GetComponent("XUILabel") as IXUILabel); + this.m_CurFishingLevel = (this.m_FishFrame.transform.Find("CurLevel").GetComponent("XUILabel") as IXUILabel); + this.m_FishingTitle = (this.m_FishFrame.transform.Find("Title").GetComponent("XUILabel") as IXUILabel); + this.m_objWing = base.transform.Find("UI_level").gameObject; + this.m_lblLevel = (base.transform.Find("UI_level/LevelNum").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs.meta new file mode 100644 index 00000000..eb32598d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelUpStatusBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 347d384af2a02aa4194c2409128f23be +timeCreated: 1611403555 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelUpStatusDocument.cs b/Client/Assets/Scripts/XMainClient/XLevelUpStatusDocument.cs new file mode 100644 index 00000000..4ad40c81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelUpStatusDocument.cs @@ -0,0 +1,338 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelUpStatusDocument : XDocComponent + { + public override uint ID + { + get + { + return XLevelUpStatusDocument.uuID; + } + } + + public bool bBlock + { + get + { + return this._bBlock; + } + set + { + this._bBlock = value; + bool flag = !this._bBlock; + if (flag) + { + this.CheckLevelUp(); + } + } + } + + public List NewSkillID + { + get + { + return this._newSkillID; + } + } + + public uint CurLevel + { + get + { + return this._CurLevel; + } + set + { + this._CurLevel = value; + } + } + + public uint PreLevel + { + get + { + return this._PreLevel; + } + set + { + this._PreLevel = value; + } + } + + public List AttrID + { + get + { + return this._AttrID; + } + set + { + this._AttrID = value; + } + } + + public List AttrOldValue + { + get + { + return this._AttrOldValue; + } + set + { + this._AttrOldValue = value; + } + } + + public List AttrNewValue + { + get + { + return this._AttrNewValue; + } + set + { + this._AttrNewValue = value; + } + } + + public ulong Exp { get; set; } + + public ulong MaxExp { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("LevelUpStatusDocument"); + + private uint _PreLevel; + + private uint _CurLevel; + + private List _AttrID = new List(); + + private List _AttrOldValue = new List(); + + private List _AttrNewValue = new List(); + + public List _newSkillID = new List(); + + private bool Show = false; + + private bool _bBlock; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.CurLevel = 0u; + this.PreLevel = 0u; + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + } + + public override void OnEnterSceneFinally() + { + this._bBlock = false; + XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.ShowLevelUp), null); + } + + public void CheckLevelUp() + { + bool bBlock = this._bBlock; + if (!bBlock) + { + bool flag = (this.CurLevel == this.PreLevel && this.CurLevel == 0u) || XSingleton.singleton.Player == null; + if (!flag) + { + XRole player = XSingleton.singleton.Player; + bool flag2 = (this.CurLevel != this.PreLevel || player.Attributes.Exp != this.Exp) && DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetGetExpAnimation(this.CalGetExp(player.Attributes.Exp), XSingleton.singleton.Player.EngineObject.Position); + } + player.Attributes.Level = this.CurLevel; + player.Attributes.Exp = this.Exp; + player.Attributes.MaxExp = this.MaxExp; + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetExp(XSingleton.singleton.Player.Attributes as XPlayerAttributes); + DlgBase.singleton.SetLevel(this.CurLevel); + DlgBase.singleton.Show(true); + bool flag4 = DlgBase.singleton._yuyinHandler != null; + if (flag4) + { + DlgBase.singleton._yuyinHandler.Refresh((XSingleton.singleton.SceneType == SceneType.SCENE_HALL) ? YuyinIconType.Hall : YuyinIconType.Guild); + } + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.SetExp(); + } + bool flag6 = this.CurLevel > this.PreLevel; + if (flag6) + { + XSingleton.singleton.CreateAndPlay(XSingleton.singleton.GetValue("LevelupFx"), player.MoveObj, Vector3.zero, Vector3.one, 1f, true, 5f, true); + this.SetLevelUpStatus(); + XPlayerLevelChangedEventArgs @event = XEventPool.GetEvent(); + @event.level = this.CurLevel; + @event.PreLevel = this.PreLevel; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + XSingleton.singleton.OnLevelChanged(this._CurLevel); + DlgBase.singleton.OnPlayerLevelUp(); + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + DlgBase.singleton.OnLevelChange(); + } + } + } + } + } + + public void SetLevelUpStatus() + { + bool flag = (ulong)this.CurLevel >= (ulong)((long)XSingleton.singleton.GetInt("ShowLevelUpLimit")); + if (flag) + { + this.Show = true; + this.ShowLevelUp(null); + } + } + + public void LevelRewardShowLevelUp() + { + bool show = this.Show; + if (show) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + this.RefreshNewSkillID(); + DlgBase.singleton.ShowLevelUpStatus(); + this.Show = false; + } + } + + public void ShowLevelUp(object o = null) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && this.Show; + if (flag) + { + bool flag2 = !DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(true, true); + } + this.RefreshNewSkillID(); + DlgBase.singleton.ShowLevelUpStatus(); + this.Show = false; + } + } + + public void RefreshNewSkillID() + { + this._newSkillID.Clear(); + int num = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.Player.PlayerAttributes.Profession); + int num2 = num % 10; + int num3 = (num > 10) ? (num % 100) : 0; + int num4 = (num > 100) ? (num % 1000) : 0; + int num5 = (num > 1000) ? (num % 10000) : 0; + bool flag = num2 > 0; + if (flag) + { + List profSkillID = XSingleton.singleton.GetProfSkillID(num2); + for (int i = 0; i < profSkillID.Count; i++) + { + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(profSkillID[i], 0u); + bool flag2 = (uint)skillConfig.UpReqRoleLevel[0] == this.CurLevel; + if (flag2) + { + this._newSkillID.Add(profSkillID[i]); + } + } + } + bool flag3 = num3 > 0; + if (flag3) + { + List profSkillID2 = XSingleton.singleton.GetProfSkillID(num3); + for (int j = 0; j < profSkillID2.Count; j++) + { + SkillList.RowData skillConfig2 = XSingleton.singleton.GetSkillConfig(profSkillID2[j], 0u); + bool flag4 = (uint)skillConfig2.UpReqRoleLevel[0] == this.CurLevel; + if (flag4) + { + this._newSkillID.Add(profSkillID2[j]); + } + } + } + bool flag5 = num4 > 0; + if (flag5) + { + List profSkillID3 = XSingleton.singleton.GetProfSkillID(num4); + for (int k = 0; k < profSkillID3.Count; k++) + { + SkillList.RowData skillConfig3 = XSingleton.singleton.GetSkillConfig(profSkillID3[k], 0u); + bool flag6 = (uint)skillConfig3.UpReqRoleLevel[0] == this.CurLevel; + if (flag6) + { + this._newSkillID.Add(profSkillID3[k]); + } + } + } + bool flag7 = num5 > 0; + if (flag7) + { + List profSkillID4 = XSingleton.singleton.GetProfSkillID(num5); + for (int l = 0; l < profSkillID4.Count; l++) + { + SkillList.RowData skillConfig4 = XSingleton.singleton.GetSkillConfig(profSkillID4[l], 0u); + bool flag8 = (uint)skillConfig4.UpReqRoleLevel[0] == this.CurLevel; + if (flag8) + { + this._newSkillID.Add(profSkillID4[l]); + } + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Skill, true); + } + + private ulong CalGetExp(ulong preExp) + { + bool flag = this.PreLevel == this.CurLevel; + ulong result; + if (flag) + { + result = this.Exp - preExp; + } + else + { + ulong num = 0UL; + PlayerLevelTable.RowData byLevel = XSingleton.singleton.LevelTable.GetByLevel((int)(this.PreLevel + 1u)); + num += (ulong)(byLevel.Exp - (long)preExp); + for (uint num2 = this.PreLevel + 1u; num2 < this.CurLevel; num2 += 1u) + { + byLevel = XSingleton.singleton.LevelTable.GetByLevel((int)(num2 + 1u)); + num += (ulong)byLevel.Exp; + } + result = num + this.Exp; + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelUpStatusDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelUpStatusDocument.cs.meta new file mode 100644 index 00000000..345337d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelUpStatusDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1d7325de6537bf542a1fcc529959b7e8 +timeCreated: 1611403353 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelUpStatusView.cs b/Client/Assets/Scripts/XMainClient/XLevelUpStatusView.cs new file mode 100644 index 00000000..4a5614af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelUpStatusView.cs @@ -0,0 +1,209 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLevelUpStatusView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/LevelUpStatusDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XLevelUpStatusDocument _doc; + + private uint timetoken = 0u; + + private bool canClose = false; + + private XAttributeDefine[] AttrInfos = new XAttributeDefine[] + { + XAttributeDefine.XAttr_Strength_Total, + XAttributeDefine.XAttr_Agility_Total, + XAttributeDefine.XAttr_Intelligence_Total, + XAttributeDefine.XAttr_Vitality_Total + }; + + protected override void Init() + { + base.Init(); + base.uiBehaviour.m_iPlayTween.SetTargetGameObject(base.uiBehaviour.m_iPlayTween.gameObject); + base.uiBehaviour.m_iPlayTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + this._doc = XDocuments.GetSpecificDocument(XLevelUpStatusDocument.uuID); + base.uiBehaviour.m_AttrFrame.SetActive(false); + base.uiBehaviour.m_FishFrame.SetActive(false); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + } + + protected override void OnHide() + { + base.OnHide(); + base.uiBehaviour.m_AttrFrame.SetActive(false); + base.uiBehaviour.m_FishFrame.SetActive(false); + bool flag = this.timetoken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.timetoken); + } + } + + public void OnPlayTweenFinish(IXUITweenTool iPlayTween) + { + bool flag = base.IsVisible(); + if (flag) + { + this.SetVisible(false, true); + } + } + + public bool OnCloseClick(IXUIButton button) + { + bool flag = this.canClose; + if (flag) + { + this.SetVisible(false, true); + } + return true; + } + + private void PlayWingEff() + { + uint curLevel = this._doc.CurLevel; + uint preLevel = this._doc.PreLevel; + bool flag = curLevel > preLevel; + if (flag) + { + base.uiBehaviour.m_iPlayTween.gameObject.SetActive(false); + base.uiBehaviour.m_objWing.SetActive(true); + base.uiBehaviour.m_lblLevel.SetText(curLevel.ToString()); + this.timetoken = XSingleton.singleton.SetTimer(1.4f, new XTimerMgr.ElapsedEventHandler(this.Handler), null); + } + else + { + this.Handler(null); + } + } + + public void ShowLevelUpStatus() + { + base.uiBehaviour.m_Close.gameObject.GetComponent().enabled = true; + this.canClose = false; + this.Handler(null); + base.uiBehaviour.m_tweenLevel.ResetTween(true); + base.uiBehaviour.m_tweenLevel.PlayTween(true, -1f); + } + + private void Handler(object arg) + { + this.timetoken = XSingleton.singleton.SetTimer(2f, new XTimerMgr.ElapsedEventHandler(this.EnableCollider), null); + base.uiBehaviour.m_objWing.SetActive(false); + base.uiBehaviour.m_iPlayTween.gameObject.SetActive(true); + this.ShowLevelUp(); + } + + private void EnableCollider(object o) + { + this.canClose = true; + this._doc.PreLevel = 0u; + this._doc.CurLevel = 0u; + } + + public void ShowLevelUp() + { + base.uiBehaviour.m_AttrFrame.SetActive(true); + base.uiBehaviour.m_AttrPool.ReturnAll(false); + GameObject gameObject = base.uiBehaviour.m_AttrPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("AttrName").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("XAttr_Level")); + IXUILabel ixuilabel2 = gameObject.transform.Find("PreValue").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(this._doc.PreLevel.ToString()); + IXUILabel ixuilabel3 = gameObject.transform.Find("CurValue").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.SetText(this._doc.CurLevel.ToString()); + gameObject.SetActive(false); + this.m_uiBehaviour.m_lblSkillPoint.SetText("x" + this.SkillPoint(this._doc.CurLevel).ToString()); + this.m_uiBehaviour.m_lblCurrLevel.SetText(this._doc.CurLevel.ToString()); + for (int i = 0; i < this._doc.AttrID.Count; i++) + { + gameObject = base.uiBehaviour.m_AttrPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_AttrPool.TplPos.x, base.uiBehaviour.m_AttrPool.TplPos.y - (float)(base.uiBehaviour.m_AttrPool.TplHeight * i), base.uiBehaviour.m_AttrPool.TplPos.z); + ixuilabel = (gameObject.transform.Find("AttrName").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XStringDefineProxy.GetString(((XAttributeDefine)this._doc.AttrID[i]).ToString())); + ixuilabel2 = (gameObject.transform.Find("PreValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel2.SetText(this._doc.AttrOldValue[i].ToString()); + ixuilabel3 = (gameObject.transform.Find("CurValue").GetComponent("XUILabel") as IXUILabel); + ixuilabel3.SetText(this._doc.AttrNewValue[i].ToString()); + } + bool flag = this._doc.NewSkillID.Count != 0; + if (flag) + { + base.uiBehaviour.m_NewSkillFrame.gameObject.SetActive(true); + base.uiBehaviour.m_sprSkillBg.spriteHeight = 550; + base.uiBehaviour.m_SkillPool.ReturnAll(false); + for (int j = 0; j < this._doc.NewSkillID.Count; j++) + { + gameObject = base.uiBehaviour.m_SkillPool.FetchGameObject(false); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(this._doc.NewSkillID[j], 0u); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + bool flag2 = skillConfig.SkillType == 3; + if (flag2) + { + ixuisprite2.SetSprite("JN_bd0"); + } + else + { + bool flag3 = skillConfig.SkillType == 2; + if (flag3) + { + ixuisprite2.SetSprite("JN_dk_0"); + } + else + { + ixuisprite2.SetSprite("JN_dk"); + } + } + ixuisprite.SetSprite(skillConfig.Icon, skillConfig.Atlas, false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_SkillPool.TplPos.x - (float)(this._doc.NewSkillID.Count - 1 - j * 2) / 2f * (float)ixuisprite2.spriteWidth, base.uiBehaviour.m_SkillPool.TplPos.y); + } + } + else + { + base.uiBehaviour.m_NewSkillFrame.gameObject.SetActive(false); + base.uiBehaviour.m_sprSkillBg.spriteHeight = 400; + } + base.uiBehaviour.m_iPlayTween.PlayTween(true, -1f); + } + + public int SkillPoint(uint level) + { + PlayerLevelTable levelTable = XSingleton.singleton.LevelTable; + for (int i = 0; i < levelTable.Table.Length; i++) + { + bool flag = (long)levelTable.Table[i].Level == (long)((ulong)level); + if (flag) + { + return levelTable.Table[i].AddSkillPoint; + } + } + return 1; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelUpStatusView.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelUpStatusView.cs.meta new file mode 100644 index 00000000..2d54fb38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelUpStatusView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7160e9e66ee3f54448115861b4ef314e +timeCreated: 1611403934 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelWave.cs b/Client/Assets/Scripts/XMainClient/XLevelWave.cs new file mode 100644 index 00000000..303429e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelWave.cs @@ -0,0 +1,249 @@ +using System; +using System.Collections.Generic; +using System.IO; +using UnityEngine; + +namespace XMainClient +{ + internal class XLevelWave + { + public int _id; + + public LevelSpawnType _spawnType; + + public float _time; + + public int _loopInterval; + + public uint _EnemyID; + + public int _randomID; + + public int _yRotate; + + public bool _repeat; + + public string _exString; + + public List _preWave = new List(); + + public float _preWavePercent; + + public Dictionary _monsterPos = new Dictionary(); + + public Dictionary _monsterRot = new Dictionary(); + + public float _roundRidus; + + public int _roundCount; + + public string _levelscript; + + protected void ParseInfo(string data) + { + InfoType infoType = InfoType.TypeNone; + bool flag = data.StartsWith("id"); + if (flag) + { + infoType = InfoType.TypeId; + } + else + { + bool flag2 = data.StartsWith("bi"); + if (flag2) + { + infoType = InfoType.TypeBaseInfo; + } + else + { + bool flag3 = data.StartsWith("pw"); + if (flag3) + { + infoType = InfoType.TypePreWave; + } + else + { + bool flag4 = data.StartsWith("ei"); + if (flag4) + { + infoType = InfoType.TypeEditor; + } + else + { + bool flag5 = data.StartsWith("mi"); + if (flag5) + { + infoType = InfoType.TypeMonsterInfo; + } + else + { + bool flag6 = data.StartsWith("si"); + if (flag6) + { + infoType = InfoType.TypeScript; + } + else + { + bool flag7 = data.StartsWith("es"); + if (flag7) + { + infoType = InfoType.TypeExString; + } + else + { + bool flag8 = data.StartsWith("st"); + if (flag8) + { + infoType = InfoType.TypeSpawnType; + } + } + } + } + } + } + } + } + string text = data.Substring(3); + switch (infoType) + { + case InfoType.TypeId: + this._id = int.Parse(text); + break; + case InfoType.TypeBaseInfo: + { + string[] array = text.Split(new char[] + { + ',' + }); + this._time = float.Parse(array[0]); + this._loopInterval = int.Parse(array[1]); + this._EnemyID = uint.Parse(array[2]); + this._yRotate = int.Parse(array[5]); + bool flag9 = array.Length > 6; + if (flag9) + { + this._roundRidus = float.Parse(array[6]); + } + bool flag10 = array.Length > 7; + if (flag10) + { + this._roundCount = int.Parse(array[7]); + } + bool flag11 = array.Length > 8; + if (flag11) + { + this._randomID = int.Parse(array[8]); + } + bool flag12 = array.Length > 11; + if (flag12) + { + this._repeat = bool.Parse(array[11]); + } + break; + } + case InfoType.TypePreWave: + { + string[] array2 = text.Split(new char[] + { + '|' + }); + bool flag13 = array2.Length != 0; + if (flag13) + { + string text2 = array2[0]; + bool flag14 = text2.Length > 0; + if (flag14) + { + string[] array3 = text2.Split(new char[] + { + ',' + }); + for (int i = 0; i < array3.Length; i++) + { + int item = 0; + bool flag15 = int.TryParse(array3[i], out item); + if (flag15) + { + this._preWave.Add(item); + } + } + } + } + bool flag16 = array2.Length > 1; + if (flag16) + { + int num = int.Parse(array2[1]); + this._preWavePercent = (float)num / 100f; + } + break; + } + case InfoType.TypeMonsterInfo: + { + string[] array4 = text.Split(new char[] + { + ',' + }); + int key = int.Parse(array4[0]); + float num2 = float.Parse(array4[1]); + float num3 = float.Parse(array4[2]); + float num4 = float.Parse(array4[3]); + Vector3 value; + value= new Vector3(num2, num3, num4); + this._monsterPos.Add(key, value); + Vector3 value2; + value2= new Vector3(0f, 0f, 0f); + bool flag17 = array4.Length > 4; + if (flag17) + { + value2.y = float.Parse(array4[4]); + } + this._monsterRot.Add(key, value2); + break; + } + case InfoType.TypeScript: + { + string[] array5 = text.Split(new char[] + { + ',' + }); + bool flag18 = array5.Length != 0; + if (flag18) + { + this._levelscript = array5[0]; + } + break; + } + case InfoType.TypeExString: + this._exString = text; + break; + case InfoType.TypeSpawnType: + this._spawnType = (LevelSpawnType)int.Parse(text); + break; + } + } + + public void ReadFromFile(StreamReader sr) + { + string text = sr.ReadLine(); + bool flag = text != "bw"; + if (!flag) + { + for (;;) + { + text = sr.ReadLine(); + bool flag2 = text == "ew"; + if (flag2) + { + break; + } + this.ParseInfo(text); + } + } + } + + public bool IsScriptWave() + { + return this._levelscript != null && this._levelscript.Length > 0; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelWave.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelWave.cs.meta new file mode 100644 index 00000000..e019d028 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelWave.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 628cee2cd19b38a4ba462df3ed377491 +timeCreated: 1611403841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelWin.cs b/Client/Assets/Scripts/XMainClient/XLevelWin.cs new file mode 100644 index 00000000..3b10ca7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelWin.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal struct XLevelWin + { + public XLevelWinCondition cond; + + public int param; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelWin.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelWin.cs.meta new file mode 100644 index 00000000..c27b2de2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelWin.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 61409ba51063e4f4383eb66737e1c5e0 +timeCreated: 1611403838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLevelWinCondition.cs b/Client/Assets/Scripts/XMainClient/XLevelWinCondition.cs new file mode 100644 index 00000000..9fb7486b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelWinCondition.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal enum XLevelWinCondition + { + LevelWin_None, + LevelWin_Boss, + LevelWin_Killall, + LevelWin_Kill_N, + LevelWin_Time, + LevelWin_PVP, + LevelWin_BossRush + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLevelWinCondition.cs.meta b/Client/Assets/Scripts/XMainClient/XLevelWinCondition.cs.meta new file mode 100644 index 00000000..1ff71996 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLevelWinCondition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 82687c9154f2dd2498526a6399b217b7 +timeCreated: 1611404040 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLifeTargetDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/XLifeTargetDlgBehaviour.cs new file mode 100644 index 00000000..918096cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLifeTargetDlgBehaviour.cs @@ -0,0 +1,25 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLifeTargetDlgBehaviour : DlgBehaviourBase + { + public XUIPool m_TargetPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_close; + + public IXUIScrollView m_ScrollView; + + private void Awake() + { + this.m_close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Bg/Panel/TargetTpl"); + this.m_TargetPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_ScrollView = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLifeTargetDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XLifeTargetDlgBehaviour.cs.meta new file mode 100644 index 00000000..74ffe721 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLifeTargetDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75ae569d6dc8a9840b8faf49fd386630 +timeCreated: 1611403947 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLifeTargetView.cs b/Client/Assets/Scripts/XMainClient/XLifeTargetView.cs new file mode 100644 index 00000000..cb91aaf2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLifeTargetView.cs @@ -0,0 +1,163 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLifeTargetView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/LifeTargetDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XAchievementDocument _doc = null; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XAchievementDocument.uuID); + this._doc.LifeTargetView = this; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnUnload() + { + base.OnUnload(); + this._doc.LifeTargetView = null; + } + + protected override void OnShow() + { + this.RefreshList(); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisible(false, true); + return true; + } + + public void RefreshList() + { + base.uiBehaviour.m_TargetPool.ReturnAll(false); + List list = new List(); + List list2 = new List(); + this._doc.UpdateShowingAchivementListWithoutMergeType(ref list, ref list2); + Vector3 localPosition = base.uiBehaviour.m_TargetPool._tpl.transform.localPosition; + int num = -1; + foreach (uint aid in list) + { + AchivementTable.RowData achivementData = this._doc.GetAchivementData(aid); + bool flag = achivementData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("achivement not found", null, null, null, null, null); + } + else + { + bool flag2 = achivementData.AchievementCategory != 1; + if (!flag2) + { + GameObject gameObject = base.uiBehaviour.m_TargetPool.FetchGameObject(false); + bool flag3 = gameObject != null; + if (flag3) + { + gameObject.transform.localPosition = new Vector3(localPosition.x, localPosition.y - (float)(++num * base.uiBehaviour.m_TargetPool.TplHeight), localPosition.z); + this._SetAchiveRecord(gameObject, achivementData, AchivementState.Achive_NoFetch); + } + } + } + } + foreach (uint aid2 in list2) + { + AchivementTable.RowData achivementData2 = this._doc.GetAchivementData(aid2); + bool flag4 = achivementData2 == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("achivement not found", null, null, null, null, null); + } + else + { + bool flag5 = achivementData2.AchievementCategory != 1; + if (!flag5) + { + GameObject gameObject2 = base.uiBehaviour.m_TargetPool.FetchGameObject(false); + bool flag6 = gameObject2 != null; + if (flag6) + { + gameObject2.transform.localPosition = new Vector3(localPosition.x, localPosition.y - (float)(++num * base.uiBehaviour.m_TargetPool.TplHeight), localPosition.z); + this._SetAchiveRecord(gameObject2, achivementData2, AchivementState.Not_Achive); + } + } + } + } + } + + protected void _SetAchiveRecord(GameObject go, AchivementTable.RowData data, AchivementState state) + { + IXUILabel ixuilabel = go.transform.Find("TargetBg/Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("TargetBg/ItemTpl/Quality").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = go.transform.Find("TargetBg/ItemTpl/Icon").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = go.transform.Find("TargetBg/Fetch").GetComponent("XUIButton") as IXUIButton; + Transform transform = go.transform.Find("TargetBg/CantFetch"); + IXUILabel ixuilabel2 = transform.Find("Condition").GetComponent("XUILabel") as IXUILabel; + bool flag = state == AchivementState.Achive_NoFetch; + if (flag) + { + ixuibutton.gameObject.SetActive(true); + ixuibutton.ID = (ulong)((long)data.AchievementID); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnFetchClicked)); + transform.gameObject.SetActive(false); + } + else + { + ixuibutton.gameObject.SetActive(false); + transform.gameObject.SetActive(true); + } + ixuilabel.SetText(data.AchievementName); + ixuilabel2.SetText(data.AchievementDescription); + XSingleton.singleton.normalItemDrawer.DrawItem(go.transform.Find("TargetBg/ItemTpl").gameObject, data.AchievementItem[0, 0], 0, false); + } + + protected bool OnFetchClicked(IXUIButton button) + { + this._doc.FetchAchivement((uint)button.ID); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLifeTargetView.cs.meta b/Client/Assets/Scripts/XMainClient/XLifeTargetView.cs.meta new file mode 100644 index 00000000..604500d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLifeTargetView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3818b7838c72c044d80f4d9fbe0b33dd +timeCreated: 1611403569 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLinkTimeStamp.cs b/Client/Assets/Scripts/XMainClient/XLinkTimeStamp.cs new file mode 100644 index 00000000..86df97f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLinkTimeStamp.cs @@ -0,0 +1,18 @@ +using System; +using System.Reflection; + +namespace XMainClient +{ + internal class XLinkTimeStamp + { + public static DateTime BuildDateTime; + + public static Version version; + + public static void FetchBuildDateTime() + { + XLinkTimeStamp.version = Assembly.GetExecutingAssembly().GetName().Version; + XLinkTimeStamp.BuildDateTime = new DateTime(2000, 1, 1).Add(new TimeSpan(864000000000L * (long)XLinkTimeStamp.version.Build + 20000000L * (long)XLinkTimeStamp.version.Revision)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLinkTimeStamp.cs.meta b/Client/Assets/Scripts/XMainClient/XLinkTimeStamp.cs.meta new file mode 100644 index 00000000..37689799 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLinkTimeStamp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f32c3e8229bce04880e88b5b791515c +timeCreated: 1611403908 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLoadEquipEventArgs.cs b/Client/Assets/Scripts/XMainClient/XLoadEquipEventArgs.cs new file mode 100644 index 00000000..74820b28 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoadEquipEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XLoadEquipEventArgs : XEventArgs + { + public XItem item; + + public int slot; + + public XLoadEquipEventArgs() + { + this._eDefine = XEventDefine.XEvent_LoadEquip; + } + + public override void Recycle() + { + base.Recycle(); + this.item = null; + this.slot = 0; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLoadEquipEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XLoadEquipEventArgs.cs.meta new file mode 100644 index 00000000..47ca3fbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoadEquipEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d91f159e888a83d4b908169d7bf77664 +timeCreated: 1611404642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLocateTargetComponent.cs b/Client/Assets/Scripts/XMainClient/XLocateTargetComponent.cs new file mode 100644 index 00000000..5993b87b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLocateTargetComponent.cs @@ -0,0 +1,252 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLocateTargetComponent : XComponent + { + public override uint ID + { + get + { + return XLocateTargetComponent.uuID; + } + } + + public XEntity Target + { + get + { + return XEntity.ValideEntity(this._last_target) ? this._last_target : (XEntity.ValideEntity(this._last_pre_target) ? this._last_pre_target : null); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XLocateTarget"); + + private bool _spectator = false; + + private Vector3 _last_forward = Vector3.zero; + + private XEntity _last_pre_target = null; + + private XEntity _last_target = null; + + private List _elapsed = new List(); + + private List _angle = new List(); + + private float _scene_specified = 0f; + + protected override void EventSubscribe() + { + } + + public override void Attached() + { + this._spectator = (XSingleton.singleton.bSpectator && this._entity.IsPlayer); + this._elapsed.Clear(); + this._angle.Clear(); + this._scene_specified = XSingleton.singleton.SpecifiedTargetLocatedRange(XSingleton.singleton.SceneID); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + public override void Update(float fDeltaT) + { + bool flag = this.Target != null; + int i; + for (i = 0; i < this._elapsed.Count; i++) + { + bool flag2 = Vector3.Angle(this._entity.EngineObject.Forward, XSingleton.singleton.FloatToAngle(this._angle[i])) < XSingleton.singleton.WithinScope * 0.5f; + if (flag2) + { + List elapsed = this._elapsed; + int index = i; + elapsed[index] += fDeltaT; + bool flag3 = this._elapsed[i] > 0.1f; + if (flag3) + { + bool flag4 = this._last_forward.sqrMagnitude == 0f || Vector3.Angle(this._last_forward, XSingleton.singleton.FloatToAngle(this._angle[i])) > 30f || this._elapsed[i] > 0.5f; + if (flag4) + { + break; + } + } + } + else + { + this._elapsed.RemoveAt(i); + this._angle.RemoveAt(i); + i--; + } + } + bool flag5 = i < this._elapsed.Count; + if (flag5) + { + this.Locate(this._entity.EngineObject.Forward, this._entity.EngineObject.Position, true); + this._elapsed.Clear(); + this._angle.Clear(); + } + else + { + float item = XSingleton.singleton.AngleToFloat(this._entity.EngineObject.Forward); + bool flag6 = !this._angle.Contains(item); + if (flag6) + { + this._elapsed.Add(0f); + this._angle.Add(item); + } + } + } + + public XEntity Locate(Vector3 forward, Vector3 pos, bool routine = false) + { + bool flag = false; + XEntity xentity = null; + bool flag2 = xentity != null && !xentity.IsRole && xentity.Buffs != null && xentity.Buffs.IsBuffStateOn(XBuffType.XBuffType_Immortal); + if (flag2) + { + xentity = null; + } + bool flag3 = xentity == null; + if (flag3) + { + xentity = XSkillCore.FindTargetAt(pos, forward, (this._scene_specified > 0f) ? this._scene_specified : XSingleton.singleton.ProfRangeLong, 0f, (float)(XSingleton.singleton.ProfScope >> 1), this._spectator ? (this._entity as XPlayer).WatchTo : this._entity, true); + bool flag4 = xentity != null && !xentity.IsRole && xentity.Buffs != null && xentity.Buffs.IsBuffStateOn(XBuffType.XBuffType_Immortal); + if (flag4) + { + xentity = null; + } + bool flag5 = xentity == null; + if (flag5) + { + xentity = ((XSingleton.singleton.OperationMode == XOperationMode.X25D) ? null : this.AssistLocate(forward, pos)); + bool flag6 = xentity != null && !xentity.IsRole && xentity.Buffs != null && xentity.Buffs.IsBuffStateOn(XBuffType.XBuffType_Immortal); + if (flag6) + { + xentity = null; + } + bool flag7 = xentity != null; + if (flag7) + { + flag = true; + } + else + { + xentity = XSkillCore.FindTargetAt(pos, forward, (this._scene_specified > 0f) ? this._scene_specified : XSingleton.singleton.ProfRangeAll, 0f, 180f, this._spectator ? (this._entity as XPlayer).WatchTo : this._entity, true); + bool flag8 = xentity != null; + if (flag8) + { + bool isPuppet = xentity.IsPuppet; + if (isPuppet) + { + xentity = null; + } + else + { + flag = true; + } + } + } + } + else + { + flag = true; + } + } + bool flag9 = xentity != null && xentity.IsVisible; + if (flag9) + { + XSingleton.singleton.MeetEnemy = true; + bool flag10 = flag; + if (flag10) + { + this.Highlight(null, ref this._last_target, Color.red); + this.Highlight(xentity, ref this._last_pre_target, Color.black); + } + else + { + this.Highlight(null, ref this._last_pre_target, Color.black); + this.Highlight(xentity, ref this._last_target, Color.red); + } + this._last_forward = forward; + } + else + { + xentity = null; + this.Highlight(null, ref this._last_target, Color.red); + this.Highlight(null, ref this._last_pre_target, Color.black); + this._last_forward = Vector3.zero; + } + return xentity; + } + + private XEntity AssistLocate(Vector3 forward, Vector3 pos) + { + Vector3 forward2 = XSingleton.singleton.GameCamera.CameraTrans.forward; + forward2.y = 0f; + forward2.Normalize(); + float num = Vector3.Angle(forward2, forward); + float num2 = XSingleton.singleton.Clockwise(forward2, forward) ? (-XSingleton.singleton.AssistAngle) : XSingleton.singleton.AssistAngle; + bool flag = num < XSingleton.singleton.AssistAngle; + if (flag) + { + num = XSingleton.singleton.AssistAngle; + Vector3 vector = XSingleton.singleton.HorizontalRotateVetor3(forward2, num2, true); + forward = Vector3.Reflect(-vector, forward2); + } + num += XSingleton.singleton.AssistAngle; + num2 = ((num2 > 0f) ? num : (-num)) * 0.5f; + forward = XSingleton.singleton.HorizontalRotateVetor3(forward, num2, false); + return XSkillCore.FindTargetAt(pos, forward, (this._scene_specified > 0f) ? this._scene_specified : XSingleton.singleton.ProfRangeLong, 0f, Mathf.Abs(num2), this._spectator ? (this._entity as XPlayer).WatchTo : this._entity, true); + } + + private void Highlight(XEntity target, ref XEntity last, Color color) + { + bool flag = target != null && target != last; + if (flag) + { + bool flag2 = last != null; + if (flag2) + { + } + last = target; + } + else + { + bool flag3 = target == null && last != null; + if (flag3) + { + last = null; + } + } + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = !XSingleton.singleton.bSpectator && this._entity.IsPlayer; + if (flag) + { + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.BattleTargetHandler.ShowTargetFx(XEntity.ValideEntity(this._last_target), this._last_target); + DlgBase.singleton.BattleTargetHandler.ShowPretargetFx(XEntity.ValideEntity(this._last_pre_target), this._last_pre_target); + } + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.BattleTargetHandler.ShowTargetFx(XEntity.ValideEntity(this._last_target), this._last_target); + DlgBase.singleton.BattleTargetHandler.ShowPretargetFx(XEntity.ValideEntity(this._last_pre_target), this._last_pre_target); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLocateTargetComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XLocateTargetComponent.cs.meta new file mode 100644 index 00000000..97d0c8ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLocateTargetComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c90821ed332ca954785365f3fae9e240 +timeCreated: 1611404536 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLoginDocument.cs b/Client/Assets/Scripts/XMainClient/XLoginDocument.cs new file mode 100644 index 00000000..2d1a1b0c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginDocument.cs @@ -0,0 +1,1440 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Text; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLoginDocument : XSingleton + { + public XLoginView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public PlatNotice Announcement + { + get + { + return this._announcement; + } + } + + public bool SDKSignOut + { + get + { + return this._sdk_sign_out; + } + set + { + this._sdk_sign_out = value; + } + } + + private string _openid + { + get + { + return this.__openid; + } + set + { + this.__openid = value; + XFileLog.OpenID = value; + XSingleton.singleton.XPlatform.SetApmUserID(value); + } + } + + public uint LoginZoneID + { + get + { + return this._login_zoneid; + } + } + + public bool freeflow + { + get + { + return this._freeflow; + } + } + + public int cctype + { + get + { + return this._cctype; + } + } + + private float FetchingElapsed + { + get + { + return Time.realtimeSinceStartup - this._last_fetch_at; + } + } + + private float LoginingElapsed + { + get + { + return Time.realtimeSinceStartup - this._last_login_at; + } + } + + public string Account + { + get + { + return this._account; + } + } + + public string Password + { + get + { + return this._pwd; + } + } + + public string OpenID + { + get + { + return this._openid; + } + } + + public XAuthorizationChannel Channel + { + get + { + return this._channel; + } + } + + public string TokenCache + { + get + { + return this._token_cache; + } + } + + public bool FetchTokenDelay + { + get + { + return this._fetch_delay; + } + } + + public bool LoginDelay + { + get + { + return this._login_delay; + } + } + + public bool Authorized + { + get + { + return this._authorized; + } + } + + public List ZoneList + { + get + { + return this._zone_list; + } + } + + public Dictionary> ServerCategory + { + get + { + return this._server_category; + } + } + + public uint RoleCountInQueue + { + get + { + return this._role_count_inqueue; + } + } + + public uint LeftTimeInQueue + { + get + { + return this._left_time_inqueue; + } + } + + public List BackFlowServerList + { + get + { + return this._backFlowServerList; + } + } + + private static readonly byte _seed = 148; + + private static readonly float _delay_notice_threshold = 0.5f; + + private static readonly float _max_delay_notice_threshold = 10f; + + private static readonly float _max_notice_threshold = 5f; + + private XAuthorizationChannel _channel = XAuthorizationChannel.XAuthorization_Max; + + private XLoginView _view = null; + + private PlatNotice _announcement = null; + + private bool _sdk_sign_out = false; + + private bool _after_login_announcement = false; + + private bool _notification = false; + + private bool _authorized = false; + + private bool _auto_authorization = false; + + private string _account = null; + + private string _pwd = null; + + private string __openid = null; + + private uint _login_zoneid = 0u; + + private bool _freeflow; + + private int _cctype; + + private string _token_cache = null; + + private bool _fetch_delay = false; + + private bool _fetching_token = false; + + private float _last_fetch_at = 0f; + + private bool _authorized_from_login_stage = false; + + private bool _login_delay = false; + + private bool _logining = false; + + private float _last_login_at = 0f; + + private bool _in_server_queue = false; + + private float enterWorldTime = 0f; + + private List _zone_list = new List(); + + private Dictionary> _server_category = new Dictionary>(); + + private Dictionary _server_dic = new Dictionary(); + + private List _backFlowServerList = new List(); + + public Dictionary FriendServerDic = new Dictionary(); + + public List FriendOpenid = new List(); + + private uint _role_count_inqueue = 0u; + + private uint _left_time_inqueue = 0u; + + private LoginReconnectInfo _login_reconnect_info = null; + + private uint _query_queue_token = 0u; + + private float[] lastLoginTime = new float[2]; + + private StartUpType _LaunchTypeServer = StartUpType.StartUp_Normal; + + private void ResetAccoutInfo() + { + this._sdk_sign_out = false; + this._account = null; + this._pwd = null; + this._openid = null; + this._token_cache = null; + } + + public void SetChannelByWakeUp() + { + switch (this.GetWakeUpType()) + { + case StartUpType.StartUp_QQ: + this._channel = XAuthorizationChannel.XAuthorization_QQ; + break; + case StartUpType.StartUp_WX: + this._channel = XAuthorizationChannel.XAuthorization_WeChat; + break; + } + } + + private void SetChannelByLaunchType() + { + switch (this.GetLaunchType()) + { + case StartUpType.StartUp_QQ: + this._channel = XAuthorizationChannel.XAuthorization_QQ; + break; + case StartUpType.StartUp_WX: + this._channel = XAuthorizationChannel.XAuthorization_WeChat; + break; + } + } + + public void LoadAccount() + { + string path = Application.persistentDataPath + "/account.txt"; + bool flag = (int)Application.platform == 7 || (int)Application.platform == 0 || (int)Application.platform == 2; + if (flag) + { + path = Application.dataPath + "/account.txt"; + } + bool flag2 = !File.Exists(path); + if (flag2) + { + this.SetChannelByLaunchType(); + } + else + { + string text = this.XCryptography(File.ReadAllBytes(path)); + string[] array = text.Split(null); + int num = 0; + bool flag3 = int.TryParse(array[0], out num) && num > 0 && num < XFastEnumIntEqualityComparer.ToInt(XAuthorizationChannel.XAuthorization_Max); + if (flag3) + { + this._channel = (XAuthorizationChannel)num; + this.SetChannelByLaunchType(); + switch (this._channel) + { + case XAuthorizationChannel.XAuthorization_Internal: + { + bool flag4 = array.Length == 3; + if (flag4) + { + this._account = array[1]; + this._pwd = array[2]; + } + break; + } + } + } + else + { + this.SetChannelByLaunchType(); + } + } + } + + public void DelAccount() + { + string path = Application.persistentDataPath + "/account.txt"; + bool flag =(int) Application.platform == 7 || (int)Application.platform == 0 || (int)Application.platform == 2; + if (flag) + { + path = Application.dataPath + "/account.txt"; + } + try + { + bool flag2 = !File.Exists(path); + if (!flag2) + { + File.Delete(path); + } + } + catch (Exception ex) + { + XSingleton.singleton.AddErrorLog("Delete account file failed " + ex.Message, null, null, null, null, null); + } + } + + public void AutoAuthorization(bool fromLoginStage) + { + this.Authorization(this._channel, fromLoginStage, true, this._account, this._pwd); + } + + public bool CheckLoginBlockTime() + { + return Time.time - this.lastLoginTime[1] > XSingleton.singleton.LoginBlockTime; + } + + public void Authorization(XAuthorizationChannel channel, bool fromLoginStage, bool auto = false, string account = null, string pwd = null) + { + this.lastLoginTime[1] = this.lastLoginTime[0]; + this.lastLoginTime[0] = Time.time; + this.SetBlockUIVisable(true); + this._authorized = false; + this._auto_authorization = auto; + this._authorized_from_login_stage = fromLoginStage; + this._fetching_token = true; + this._last_fetch_at = Time.realtimeSinceStartup; + switch (channel) + { + case XAuthorizationChannel.XAuthorization_Internal: + this._channel = channel; + this.InternalAuthorization(account, pwd); + break; + case XAuthorizationChannel.XAuthorization_SD: + this._channel = channel; + this.PlatformAuthorization(); + break; + case XAuthorizationChannel.XAuthorization_QQ: + this._channel = channel; + this.QQAuthorization(auto); + break; + case XAuthorizationChannel.XAuthorization_WeChat: + this._channel = channel; + this.WeChatAuthorization(auto); + break; + case XAuthorizationChannel.XAuthorization_Guest: + this._channel = channel; + this.GuestAuthorization(auto); + break; + default: + this._fetching_token = false; + break; + } + } + + public void ShowAfterLoginAnnouncement() + { + bool flag = !this._after_login_announcement; + if (flag) + { + XSingleton.singleton.ShowAfterLoginAnnouncement(this._announcement); + this._after_login_announcement = true; + } + } + + public void OnError(string notify) + { + XSingleton.singleton.PandoraLogout(); + this._fetching_token = false; + this._authorized = false; + this._logining = false; + this._in_server_queue = false; + bool flag = this._channel != XAuthorizationChannel.XAuthorization_Internal && this._channel != XAuthorizationChannel.XAuthorization_Max; + if (flag) + { + this.ResetAccoutInfo(); + } + bool flag2 = !string.IsNullOrEmpty(notify); + if (flag2) + { + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), notify)); + } + this.FromBegining(); + } + + public void OnError() + { + this._fetching_token = false; + this._authorized = false; + this._logining = false; + this._in_server_queue = false; + } + + public void FromBegining() + { + XSingleton.singleton.ClearServerInfo(); + this.SetBlockUIVisable(false); + bool authorized_from_login_stage = this._authorized_from_login_stage; + if (authorized_from_login_stage) + { + XSingleton.singleton.ShowLoginUI(); + } + else + { + this.BackToBegin(); + } + this._after_login_announcement = false; + this._authorized_from_login_stage = false; + } + + public void FromLogining() + { + this.SetBlockUIVisable(false); + bool authorized_from_login_stage = this._authorized_from_login_stage; + if (authorized_from_login_stage) + { + XSingleton.singleton.ShowLoginSelectServerUI(); + } + else + { + this.BackToLogin(); + } + this._authorized_from_login_stage = false; + } + + public void RefreshAccessToken(string token) + { + this._token_cache = token; + XSingleton.singleton.AddLog("AccessToken : ", this._token_cache, null, null, null, null, XDebugColor.XDebug_None); + } + + public void OnAuthorization(string account, string pwd, string openid, XAuthorizationChannel channel) + { + this._fetching_token = false; + this._account = account; + this._pwd = pwd; + this._openid = openid; + this._channel = channel; + this._token_cache = account; + bool flag = string.IsNullOrEmpty(account) || string.IsNullOrEmpty(openid); + if (flag) + { + this.OnAuthorizedFailed(); + } + else + { + switch (channel) + { + case XAuthorizationChannel.XAuthorization_Internal: + XSingleton.singleton.Authorization(LoginType.LOGIN_PASSWORD, account, pwd, openid); + break; + case XAuthorizationChannel.XAuthorization_SD: + XSingleton.singleton.Authorization(LoginType.LOGIN_SNDA_PF, account, pwd, openid); + break; + case XAuthorizationChannel.XAuthorization_QQ: + XSingleton.singleton.Authorization(LoginType.LOGIN_QQ_PF, account, pwd, openid); + break; + case XAuthorizationChannel.XAuthorization_WeChat: + XSingleton.singleton.Authorization(LoginType.LGOIN_WECHAT_PF, account, pwd, openid); + break; + case XAuthorizationChannel.XAuthorization_Guest: + XSingleton.singleton.Authorization(LoginType.LOGIN_IOS_GUEST, account, pwd, openid); + break; + } + } + } + + public void OnAuthorizationSignOut(string msg) + { + bool flag = this._channel == XAuthorizationChannel.XAuthorization_Max; + if (!flag) + { + this._sdk_sign_out = true; + bool flag2 = !XStage.IsConcreteStage(XSingleton.singleton.CurrentStage.Stage); + if (flag2) + { + bool flag3 = string.IsNullOrEmpty(msg); + if (flag3) + { + this._authorized = false; + } + else + { + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), msg)); + } + this.FromBegining(); + } + else + { + XSingleton.singleton.AddLog("OnAuthorizationSignOut " + msg, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.Close(NetErrCode.Net_NoError); + bool sceneReady = XSingleton.singleton.SceneReady; + if (sceneReady) + { + XSingleton.singleton.OnFatalErrorClosed(ErrorCode.ERR_AUTH_TOKEN_INVALID); + } + else + { + XSingleton.singleton.Error = ErrorCode.ERR_AUTH_TOKEN_INVALID; + } + } + this._channel = XAuthorizationChannel.XAuthorization_Max; + } + } + + public void AuthorizationSignOut() + { + bool flag = this._channel == XAuthorizationChannel.XAuthorization_Max; + if (!flag) + { + this._authorized = false; + bool flag2 = this._channel != XAuthorizationChannel.XAuthorization_Internal && this._channel != XAuthorizationChannel.XAuthorization_Max; + if (flag2) + { + this.ResetAccoutInfo(); + XSingleton.singleton.XPlatform.LogOut(); + } + this.DelAccount(); + XSingleton.singleton.PandoraLogout(); + this._channel = XAuthorizationChannel.XAuthorization_Max; + this.FromBegining(); + } + } + + public void OnAuthorized(string identification) + { + bool flag = this._channel == XAuthorizationChannel.XAuthorization_SD; + if (flag) + { + this._account = string.Format("{0} ({1})", identification, XStringDefineProxy.GetString("SDO_TOKEN")); + } + bool flag2 = this._channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag2) + { + this._account = identification + " (QQ)"; + } + bool flag3 = this._channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag3) + { + this._account = string.Format("{0} ({1})", identification, XStringDefineProxy.GetString("WECHAT_TOKEN")); + } + bool flag4 = this._channel == XAuthorizationChannel.XAuthorization_Guest; + if (flag4) + { + this._account = string.Format("{0} ({1})", identification, XStringDefineProxy.GetString("GUEST_TOKEN")); + } + bool flag5 = !this._auto_authorization || this._authorized_from_login_stage; + if (flag5) + { + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), XStringDefineProxy.GetString("AUTHORIZED_SUCCESS"))); + } + this.SaveAccount(); + this._authorized = true; + this.ShowLoginSelectServerUI(); + this.SetBlockUIVisable(false); + XSingleton.singleton.XLoginStep = XLoginStep.Login; + } + + public void OnAuthorizedFailed() + { + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), XStringDefineProxy.GetString("AUTHORIZED_FAIL"))); + string sdkconfig = XSingleton.singleton.XPlatform.GetSDKConfig("get_login_eflag", ""); + bool flag = this._channel != XAuthorizationChannel.XAuthorization_Internal && this._channel != XAuthorizationChannel.XAuthorization_Max; + if (flag) + { + this.ResetAccoutInfo(); + } + XSingleton.singleton.playerInfo = null; + XSingleton.singleton.friendsInfo = null; + this._authorized = false; + this.OnError(); + this.FromBegining(); + } + + public void OnAuthorizedConnectFailed() + { + bool flag = this._channel != XAuthorizationChannel.XAuthorization_Internal && this._channel != XAuthorizationChannel.XAuthorization_Max; + if (flag) + { + this.ResetAccoutInfo(); + } + XSingleton.singleton.playerInfo = null; + XSingleton.singleton.friendsInfo = null; + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), XStringDefineProxy.GetString("AUTHORIZED_CONNECT_FAIL"))); + this._authorized = false; + this.OnError(); + this.FromBegining(); + } + + public void OnAuthorizedTimeOut() + { + bool flag = this._channel != XAuthorizationChannel.XAuthorization_Internal && this._channel != XAuthorizationChannel.XAuthorization_Max; + if (flag) + { + this.ResetAccoutInfo(); + } + XSingleton.singleton.playerInfo = null; + XSingleton.singleton.friendsInfo = null; + XSingleton.singleton.ShowLoginTip(this.PlatformComment(this._channel) + " 授权验证超时"); + this._authorized = false; + this.FromBegining(); + } + + public void Login() + { + this.SetBlockUIVisable(true); + this._logining = true; + this._last_login_at = Time.realtimeSinceStartup; + this._in_server_queue = false; + XSingleton.singleton.Login(); + } + + public void OnLogin() + { + bool authorized_from_login_stage = this._authorized_from_login_stage; + if (authorized_from_login_stage) + { + this._view.TweenAlpha(true); + } + XSingleton.singleton.OnLogin(); + this._logining = false; + this._authorized_from_login_stage = false; + this._in_server_queue = false; + this.SetBlockUIVisable(false); + } + + public StartUpType GetWakeUpType() + { + StartUpType startUpType = StartUpType.StartUp_Normal; + string sdkconfig = XSingleton.singleton.XPlatform.GetSDKConfig("get_wakeup_info", ""); + XSingleton.singleton.AddLog("[GetLaunchType] wakeupInfo:" + sdkconfig, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = sdkconfig == ""; + StartUpType result; + if (flag) + { + result = startUpType; + } + else + { + Dictionary dictionary = Json.Deserialize(sdkconfig) as Dictionary; + object obj = null; + bool flag2 = dictionary != null && dictionary.TryGetValue("wakeup_platform", out obj); + if (flag2) + { + XSingleton.singleton.AddLog("[GetLaunchType] platform: " + obj.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = (long)obj == 1L; + if (flag3) + { + startUpType = StartUpType.StartUp_WX; + } + else + { + bool flag4 = (long)obj == 2L; + if (flag4) + { + startUpType = StartUpType.StartUp_QQ; + } + } + } + result = startUpType; + } + return result; + } + + public StartUpType GetLaunchType() + { + StartUpType startUpType = StartUpType.StartUp_Normal; + string sdkconfig = XSingleton.singleton.XPlatform.GetSDKConfig("get_wakeup_info", ""); + XSingleton.singleton.AddLog("[GetLaunchType] wakeupInfo:" + sdkconfig, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = sdkconfig == ""; + StartUpType result; + if (flag) + { + result = startUpType; + } + else + { + Dictionary dictionary = Json.Deserialize(sdkconfig) as Dictionary; + object obj = null; + bool flag2 = dictionary != null && dictionary.TryGetValue("wakeup_platform", out obj); + if (flag2) + { + XSingleton.singleton.AddLog("[GetLaunchType] platform: " + obj.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = (long)obj == 1L; + if (flag3) + { + XSingleton.singleton.AddLog("[GetLaunchType] platform == 1", null, null, null, null, null, XDebugColor.XDebug_None); + object obj2 = null; + bool flag4 = dictionary.TryGetValue("wakeup_wx_extInfo", out obj2); + if (flag4) + { + bool flag5 = obj2.ToString() == "WX_GameCenter"; + if (flag5) + { + startUpType = StartUpType.StartUp_WX; + XSingleton.singleton.AddLog("[GetLaunchType] StartUpType.StartUp_WX", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + } + else + { + bool flag6 = (long)obj == 2L; + if (flag6) + { + XSingleton.singleton.AddLog("[GetLaunchType] platform == 2", null, null, null, null, null, XDebugColor.XDebug_None); + object obj3 = null; + bool flag7 = dictionary.TryGetValue("wakeup_qq_extInfo", out obj3); + if (flag7) + { + bool flag8 = obj3.ToString() == "sq_gamecenter"; + if (flag8) + { + startUpType = StartUpType.StartUp_QQ; + XSingleton.singleton.AddLog("[GetLaunchType] StartUpType.StartUp_QQ", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + } + } + } + result = startUpType; + } + return result; + } + + public void SetLaunchTypeServerInfo(StartUpType type) + { + this._LaunchTypeServer = type; + } + + public StartUpType GetLaunchTypeServerInfo() + { + return this._LaunchTypeServer; + } + + public void EnterToSelectChar() + { + XSingleton.singleton.OnLogin(); + EXStage stage = XSingleton.singleton.CurrentStage.Stage; + if (stage != EXStage.Login) + { + if (stage == EXStage.SelectChar) + { + XSelectcharStage xselectcharStage = XSingleton.singleton.CurrentStage as XSelectcharStage; + xselectcharStage.ReLogined(); + } + } + else + { + XSingleton.singleton.CurrentStage.Play(); + } + } + + public void CheckQueueState(object o) + { + XSingleton.singleton.KillTimer(this._query_queue_token); + this._query_queue_token = 0u; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = !this._in_server_queue; + if (!flag2) + { + PtcC2M_CheckQueuingReq ptcC2M_CheckQueuingReq = new PtcC2M_CheckQueuingReq(); + ptcC2M_CheckQueuingReq.Data.iscancel = false; + XSingleton.singleton.Send(ptcC2M_CheckQueuingReq); + this._query_queue_token = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(this.CheckQueueState), null); + } + } + } + + public void CancelQueue() + { + PtcC2M_CheckQueuingReq ptcC2M_CheckQueuingReq = new PtcC2M_CheckQueuingReq(); + ptcC2M_CheckQueuingReq.Data.iscancel = true; + XSingleton.singleton.Send(ptcC2M_CheckQueuingReq); + this.OnCancelServerQueue(); + } + + public void ShowServerQueue() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + this._in_server_queue = true; + DlgBase.singleton.ShowQueue(); + this.CheckQueueState(null); + this.SetBlockUIVisable(false); + } + } + + public void WaitForServerQueue(uint roleCount, uint leftTime) + { + this._role_count_inqueue = roleCount; + this._left_time_inqueue = leftTime; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.RefreshQueueState(); + } + } + + public void OnLoginFailed(string error) + { + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), string.IsNullOrEmpty(error) ? XStringDefineProxy.GetString("LOGIN_FAIL") : error)); + this._logining = false; + this._in_server_queue = false; + this.FromLogining(); + } + + public void OnLoginTimeout() + { + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), XStringDefineProxy.GetString("LOGIN_TIMEOUT"))); + this._logining = false; + this._in_server_queue = false; + this.FromLogining(); + } + + public void OnLoginConnectFailed() + { + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), XStringDefineProxy.GetString("LOGIN_CONNECT_FAIL"))); + this._logining = false; + this._in_server_queue = false; + this.FromLogining(); + } + + public void OnCancelServerQueue() + { + XSingleton.singleton.ShowLoginTip(XStringDefineProxy.GetString("CANCEL_QUEUE")); + this._logining = false; + this._in_server_queue = false; + XSingleton.singleton.Close(NetErrCode.Net_NoError); + this._authorized_from_login_stage = true; + this.FromLogining(); + } + + public void EnterWorld(int index) + { + bool flag = Time.time - this.enterWorldTime < 2f; + if (!flag) + { + this.enterWorldTime = Time.time; + bool flag2 = index > 0; + if (flag2) + { + RpcC2M_SelectRoleNew rpcC2M_SelectRoleNew = new RpcC2M_SelectRoleNew(); + rpcC2M_SelectRoleNew.oArg.index = index - 1; + XSingleton.singleton.Send(rpcC2M_SelectRoleNew); + } + XSingleton.singleton.XLoginToken = null; + } + } + + public void CreateChar(string name, RoleType type) + { + bool flag = Time.time - this.enterWorldTime < 2f; + if (!flag) + { + this.enterWorldTime = Time.time; + RpcC2M_CreateRoleNew rpcC2M_CreateRoleNew = new RpcC2M_CreateRoleNew(); + rpcC2M_CreateRoleNew.oArg.name = name; + rpcC2M_CreateRoleNew.oArg.type = type; + XSingleton.singleton.Send(rpcC2M_CreateRoleNew); + this.SetBlockUIVisable(true); + } + } + + public void OnEnterWorldFailed(string error) + { + this.BackToLogin(); + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), string.IsNullOrEmpty(error) ? XStringDefineProxy.GetString("ENTER_WORLD_FAIL") : error)); + } + + public void OnEnterWorldTimeOut() + { + this.BackToLogin(); + XSingleton.singleton.ShowLoginTip(string.Format("{0} {1}", this.PlatformComment(this._channel), XStringDefineProxy.GetString("ENTER_WORLD_TIMEOUT"))); + } + + public void EnableSDONotify() + { + bool flag = !this._notification; + if (flag) + { + XSingleton.singleton.XPlatform.ResgiterSDONotification(XSingleton.singleton.ServerID, XSingleton.singleton.Player.Name); + } + this._notification = true; + } + + private void BackToBegin() + { + bool flag = XSingleton.singleton.XLoginStep == XLoginStep.Begin; + if (!flag) + { + XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Clear(); + XSingleton.singleton.XPlayerCharacters.SelectedSlot = 0; + XSingleton.singleton.XLoginStep = XLoginStep.Begin; + XSingleton.singleton.SwitchTo(EXStage.Login, 3u); + } + } + + private void BackToLogin() + { + bool flag = XSingleton.singleton.XLoginStep == XLoginStep.Login; + if (!flag) + { + XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Clear(); + XSingleton.singleton.XPlayerCharacters.SelectedSlot = 0; + XSingleton.singleton.XLoginStep = XLoginStep.Login; + XSingleton.singleton.SwitchTo(EXStage.Login, 3u); + } + } + + private void SaveAccount() + { + int num = XFastEnumIntEqualityComparer.ToInt(this._channel); + string text = Application.persistentDataPath + "/account.txt"; + bool flag = (int)Application.platform == 7 || (int)Application.platform == 0 || (int)Application.platform == 2; + if (flag) + { + text = Application.dataPath + "/account.txt"; + } + try + { + File.WriteAllBytes(text, this.XCryptography(string.Format("{0}\n{1}\n{2}", num, this._account, this._pwd))); + XSingleton.singleton.XPlatform.SetNoBackupFlag(text); + } + catch (Exception ex) + { + XSingleton.singleton.AddErrorLog("Save account file error ", ex.Message, null, null, null, null); + } + } + + private void PlatformAuthorization() + { + XSingleton.singleton.XPlatform.OnPlatformLogin(); + } + + private void QQAuthorization(bool auto) + { + XSingleton.singleton.XPlatform.OnQQLogin(); + } + + private void WeChatAuthorization(bool auto) + { + XSingleton.singleton.XPlatform.OnWeChatLogin(); + } + + private void GuestAuthorization(bool auto) + { + XSingleton.singleton.XPlatform.OnGuestLogin(); + } + + private void InternalAuthorization(string account, string pwd) + { + this.OnAuthorization(account, pwd, account, XAuthorizationChannel.XAuthorization_Internal); + } + + public void Update() + { + this._fetch_delay = false; + this._login_delay = false; + bool fetching_token = this._fetching_token; + if (fetching_token) + { + bool flag = this.FetchingElapsed > XLoginDocument._delay_notice_threshold; + if (flag) + { + this._fetch_delay = true; + } + bool flag2 = this.FetchingElapsed > XLoginDocument._max_delay_notice_threshold; + if (flag2) + { + this._fetching_token = false; + this._fetch_delay = false; + this.SetBlockUIVisable(false); + } + } + bool flag3 = this._logining && !this._in_server_queue; + if (flag3) + { + bool flag4 = this.LoginingElapsed > XLoginDocument._delay_notice_threshold; + if (flag4) + { + bool flag5 = this.LoginingElapsed > XLoginDocument._max_notice_threshold; + if (flag5) + { + XSingleton.singleton.Close(NetErrCode.Net_NoError); + this.OnLoginTimeout(); + } + else + { + this._login_delay = true; + } + } + } + } + + private string PlatformComment(XAuthorizationChannel channel) + { + string result; + switch (channel) + { + case XAuthorizationChannel.XAuthorization_Internal: + result = ""; + break; + case XAuthorizationChannel.XAuthorization_SD: + result = XStringDefineProxy.GetString("SDO_TOKEN"); + break; + case XAuthorizationChannel.XAuthorization_QQ: + result = "QQ"; + break; + case XAuthorizationChannel.XAuthorization_WeChat: + result = XStringDefineProxy.GetString("WECHAT_TOKEN"); + break; + case XAuthorizationChannel.XAuthorization_Guest: + result = XStringDefineProxy.GetString("GUEST_TOKEN"); + break; + default: + result = ""; + break; + } + return result; + } + + private byte[] XCryptography(string content) + { + byte[] bytes = Encoding.UTF8.GetBytes(content); + for (int i = 0; i < bytes.Length; i++) + { + bytes[i] ^= XLoginDocument._seed; + } + return bytes; + } + + private string XCryptography(byte[] content) + { + for (int i = 0; i < content.Length; i++) + { + content[i] ^= XLoginDocument._seed; + } + return Encoding.UTF8.GetString(content); + } + + public bool IsPublish() + { + return XSingleton.singleton.XPlatform.IsPublish(); + } + + public void SetBlockUIVisable(bool state) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.uiBehaviour.m_BlockWindow.gameObject.SetActive(state); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.uiBehaviour.m_block.gameObject.SetActive(state); + } + } + + public void ShowLoginUI() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.ShowLogin(); + } + } + + public void ShowLoginSelectServerUI() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = string.IsNullOrEmpty(XSingleton.singleton.XLoginToken); + if (flag2) + { + XSingleton.singleton.AutoAuthorization(false); + } + this.ShowAfterLoginAnnouncement(); + DlgBase.singleton.ShowSelectServer(); + DlgBase.singleton.SetCurrentServer(); + } + } + + public void ShowSelectCharGerenalUI() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.ShowSelectCharGerenal(); + } + } + + public void ShowSelectCharSelectedUI(string name, int level) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.ShowSelectCharSelected(name, level); + } + } + + public void ShowSelectCharCreatedUI() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.ShowSelectCharCreated(); + } + } + + public void SetLoginZoneID(uint loginZoneId) + { + this._login_zoneid = loginZoneId; + } + + public void SetAnnouncement(PlatNotice announcement) + { + this._announcement = announcement; + } + + public void SetFreeflow(bool _free, int _type) + { + this._freeflow = _free; + this._cctype = _type; + } + + public void SetGateIPTable(List myServersList, byte[] bytes, List serverList) + { + this._server_dic.Clear(); + this._server_category.Clear(); + this._zone_list.Clear(); + this.BackFlowServerList.Clear(); + for (int i = serverList.Count - 1; i >= 0; i--) + { + LoginGateData loginGateData = serverList[i]; + bool isbackflow = loginGateData.isbackflow; + if (isbackflow) + { + bool flag = true; + for (int j = 0; j < this.BackFlowServerList.Count; j++) + { + bool flag2 = this.BackFlowServerList[j].ServerID == loginGateData.serverid; + if (flag2) + { + flag = false; + break; + } + } + bool flag3 = flag; + if (flag3) + { + this.BackFlowServerList.Add(this.CreateServerInfoData(loginGateData.serverid, loginGateData.servername, loginGateData.zonename, loginGateData.ip, (uint)loginGateData.port, (int)loginGateData.state, (int)loginGateData.flag, loginGateData.backflowlevel)); + } + serverList.RemoveAt(i); + } + } + string @string = XSingleton.singleton.GetString("MYSELF_SERVERS"); + this._server_category.Add(@string, new List()); + this._zone_list.Add(@string); + string string2 = XSingleton.singleton.GetString("BACK_SERVERS"); + bool flag4 = this.BackFlowServerList.Count > 0; + if (flag4) + { + this._zone_list.Add(string2); + this._server_category.Add(string2, new List()); + } + string string3 = XSingleton.singleton.GetString("FRIENDS_SERVERS"); + this._server_category.Add(string3, new List()); + this._zone_list.Add(string3); + bool flag5 = myServersList.Count == 0; + if (flag5) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("TRUE_NAME_TIP"), XStringDefineProxy.GetString("COMMON_OK")); + } + for (int k = 0; k < myServersList.Count; k++) + { + this._server_category[@string].Add(myServersList[k].servers.serverid); + bool flag6 = !this._server_dic.ContainsKey(myServersList[k].servers.serverid); + if (flag6) + { + List list = new List(); + list.Add(string.Format("{0}:{1}", myServersList[k].servers.ip, myServersList[k].servers.port)); + this._server_dic.Add(myServersList[k].servers.serverid, this.CreateServerInfoData(myServersList[k].servers.serverid, myServersList[k].servers.servername, myServersList[k].servers.zonename, myServersList[k].servers.ip, (uint)myServersList[k].servers.port, (int)myServersList[k].servers.state, (int)myServersList[k].servers.flag, myServersList[k].level)); + } + for (int l = 0; l < this._backFlowServerList.Count; l++) + { + bool flag7 = this._backFlowServerList[l].ServerID == myServersList[k].servers.serverid; + if (flag7) + { + this._backFlowServerList[l].Level = myServersList[k].level; + } + } + } + for (int m = 0; m < serverList.Count; m++) + { + bool flag8 = !this._server_category.ContainsKey(serverList[m].zonename); + if (flag8) + { + this._server_category.Add(serverList[m].zonename, new List()); + this._zone_list.Add(serverList[m].zonename); + } + this._server_category[serverList[m].zonename].Add(serverList[m].serverid); + bool flag9 = !this._server_dic.ContainsKey(serverList[m].serverid); + if (flag9) + { + this._server_dic.Add(serverList[m].serverid, this.CreateServerInfoData(serverList[m].serverid, serverList[m].servername, serverList[m].zonename, serverList[m].ip, (uint)serverList[m].port, (int)serverList[m].state, (int)serverList[m].flag, 0u)); + } + } + for (int n = 0; n < this.BackFlowServerList.Count; n++) + { + this._server_category[string2].Add(this.BackFlowServerList[n].ServerID); + bool flag10 = !this._server_dic.ContainsKey(this.BackFlowServerList[n].ServerID); + if (flag10) + { + this._server_dic.Add(this.BackFlowServerList[n].ServerID, this.BackFlowServerList[n]); + } + } + } + + public void SetFriendServerList(List friendList) + { + this.FriendServerDic.Clear(); + this.FriendOpenid.Clear(); + for (int i = 0; i < friendList.Count; i++) + { + ServerInfo serverData = this.GetServerData(friendList[i].serverid); + bool flag = serverData == null; + if (!flag) + { + bool flag2 = !XSingleton.singleton.IsGMAccount; + if (flag2) + { + bool flag3 = serverData.StateTxt == 6; + if (flag3) + { + goto IL_C4; + } + } + FriendServerInfo friendServerInfo = new FriendServerInfo(); + friendServerInfo.info = friendList[i]; + friendServerInfo.account = ""; + friendServerInfo.icon = ""; + this.FriendServerDic[friendList[i].openid] = friendServerInfo; + this.FriendOpenid.Add(friendList[i].openid); + } + IL_C4:; + } + XSingleton.singleton.XPlatform.SendGameExData("QueryFriends", ""); + } + + public void SetFriendServerIcon() + { + for (int i = 0; i < XSingleton.singleton.friendsInfo.data.Length; i++) + { + bool flag = this.FriendServerDic.ContainsKey(XSingleton.singleton.friendsInfo.data[i].openId); + if (flag) + { + this.FriendServerDic[XSingleton.singleton.friendsInfo.data[i].openId].account = XSingleton.singleton.friendsInfo.data[i].nickName; + this.FriendServerDic[XSingleton.singleton.friendsInfo.data[i].openId].icon = XSingleton.singleton.friendsInfo.data[i].pictureLarge; + } + } + } + + public ServerInfo CreateServerInfoData(int serverID, string serverName, string zoneName, string ip, uint port, int state, int stateTxt, uint level) + { + return new ServerInfo + { + ServerID = serverID, + ServerName = serverName, + ZoneName = zoneName, + Ip = ip, + Port = port, + State = state, + StateTxt = stateTxt, + Level = level + }; + } + + public ServerInfo GetServerData(int id) + { + ServerInfo serverInfo; + bool flag = this._server_dic.TryGetValue(id, out serverInfo); + ServerInfo result; + if (flag) + { + result = serverInfo; + } + else + { + result = null; + } + return result; + } + + public void OnServerChanged(int id) + { + ServerInfo serverData = this.GetServerData(id); + bool flag = serverData == null; + if (!flag) + { + bool flag2 = XSingleton.singleton.OnServerChanged(serverData); + if (flag2) + { + this._view.SetCurrentServer(); + } + } + } + + public bool OnLoginForbidClick(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this.BackToLogin(); + return true; + } + + public void SetLoginReconnect(LoginReconnectInfo info) + { + this._login_reconnect_info = info; + } + + public void ShowLoginReconnect() + { + bool flag = this._login_reconnect_info == null || this._login_reconnect_info.scenetemplateid == 0u; + if (!flag) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._login_reconnect_info.scenetemplateid); + string @string = XStringDefineProxy.GetString("LOGIN_RECONNECT_TIP", new object[] + { + (sceneData != null) ? sceneData.Comment : "" + }); + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnStartLoginReconnectClicked), new ButtonClickEventHandler(this.OnCancelLoginReconnectClicked), false, XTempTipDefine.OD_START, 50); + } + } + + private bool OnStartLoginReconnectClicked(IXUIButton btn) + { + RpcC2N_LoginReconnectReq rpcC2N_LoginReconnectReq = new RpcC2N_LoginReconnectReq(); + rpcC2N_LoginReconnectReq.oArg.reconnect = true; + XSingleton.singleton.Send(rpcC2N_LoginReconnectReq); + this._login_reconnect_info = null; + this.SetBlockUIVisable(true); + return true; + } + + private bool OnCancelLoginReconnectClicked(IXUIButton btn) + { + RpcC2N_LoginReconnectReq rpcC2N_LoginReconnectReq = new RpcC2N_LoginReconnectReq(); + rpcC2N_LoginReconnectReq.oArg.reconnect = false; + XSingleton.singleton.Send(rpcC2N_LoginReconnectReq); + this._login_reconnect_info = null; + this.SetBlockUIVisable(true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLoginDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XLoginDocument.cs.meta new file mode 100644 index 00000000..6eb72d89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4a2e4ffeeac9eb46b317db1e8dd0805 +timeCreated: 1611404603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLoginRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XLoginRewardDocument.cs new file mode 100644 index 00000000..5037bc91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginRewardDocument.cs @@ -0,0 +1,274 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLoginRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XLoginRewardDocument.uuID; + } + } + + public XLoginRewardView View + { + get + { + return this._LoginRewardView; + } + set + { + this._LoginRewardView = value; + } + } + + public uint DayChecked + { + get + { + return this._DayChecked; + } + } + + public uint DayCanCheck + { + get + { + return this._DayCanCheck; + } + } + + public uint Bonus + { + get + { + return this._Bonus; + } + } + + public uint ReplenishCount + { + get + { + return this._ReplenishCount; + } + } + + public List ItemIDs + { + get + { + return this._ItemIDs; + } + } + + public List ItemCounts + { + get + { + return this._ItemCounts; + } + } + + public int DoubleTQ + { + get + { + return this._doubleTQ; + } + } + + private uint CheckInfo + { + set + { + this._CheckInfo = value; + this._UpdateDayChecked(); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("LoginRewardDocument"); + + private XLoginRewardView _LoginRewardView = null; + + private List _ReplenishCost = new List(); + + private bool m_bWaitForResult = false; + + private uint _DayChecked; + + private uint _DayCanCheck; + + private uint _Bonus = 0u; + + private uint _ReplenishCount = 0u; + + private List _ItemIDs = new List(); + + private List _ItemCounts = new List(); + + private int _doubleTQ; + + private uint _CheckOffset = 0u; + + private uint _CheckInfo = 0u; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.m_bWaitForResult = false; + this._ReplenishCost.Clear(); + string[] array = XSingleton.singleton.GetValue("SignCost").Split(XGlobalConfig.ListSeparator); + foreach (string s in array) + { + this._ReplenishCost.Add(uint.Parse(s)); + } + } + + public uint GetReplenishCost() + { + bool flag = (ulong)this._ReplenishCount >= (ulong)((long)this._ReplenishCost.Count); + uint result; + if (flag) + { + result = this._ReplenishCost[this._ReplenishCost.Count - 1]; + } + else + { + result = this._ReplenishCost[(int)this._ReplenishCount]; + } + return result; + } + + public bool IsTodayChecked() + { + return (1L << (int)(this._DayCanCheck - 1u + this._CheckOffset & 31u) & (long)((ulong)this._CheckInfo)) != 0L; + } + + private void _UpdateDayChecked() + { + this._DayChecked = 0u; + for (uint num = this._CheckInfo; num > 0u; num &= num - 1u) + { + this._DayChecked += 1u; + } + } + + public void OnCheckinInfoNotify(CheckinInfoNotify data) + { + this._CheckOffset = data.StartDay - 1u; + this._DayCanCheck = data.DayCanCheck; + this._ReplenishCount = data.DayMakeUp; + this.CheckInfo = data.DayCheckInfo; + bool flag = data.ItemId.Count != data.ItemCount.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("data.ItemId.Count != data.ItemCount.Count", null, null, null, null, null); + } + else + { + this._ItemIDs = data.ItemId; + this._ItemCounts = data.ItemCount; + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce); + this._doubleTQ = 0; + bool isOddMonth = data.IsOddMonth; + if (isOddMonth) + { + bool flag2 = memberPrivilegeConfig.CheckinDoubleDays != null; + if (flag2) + { + for (int i = 0; i < memberPrivilegeConfig.CheckinDoubleDays.Length; i++) + { + this._doubleTQ |= 1 << memberPrivilegeConfig.CheckinDoubleDays[i]; + } + } + } + else + { + bool flag3 = memberPrivilegeConfig.CheckinDoubleEvenDays != null; + if (flag3) + { + for (int j = 0; j < memberPrivilegeConfig.CheckinDoubleEvenDays.Length; j++) + { + this._doubleTQ |= 1 << memberPrivilegeConfig.CheckinDoubleEvenDays[j]; + } + } + } + bool flag4 = this.View != null && this.View.active; + if (flag4) + { + this.View.RefreshPage(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward_Login, true); + } + } + + public void ReqCheckin() + { + bool bWaitForResult = this.m_bWaitForResult; + if (!bWaitForResult) + { + RpcC2G_Checkin rpc = new RpcC2G_Checkin(); + XSingleton.singleton.Send(rpc); + this.m_bWaitForResult = true; + } + } + + public void OnCheckin(CheckinRes oRes) + { + this.m_bWaitForResult = false; + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + this._Bonus = oRes.Bonus; + this._DayCanCheck = oRes.DayCanCheck; + this.CheckInfo = oRes.DayCheckInfo; + this._ReplenishCount = oRes.DayMakeUp; + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag2 = specificDocument.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce) && (this._doubleTQ & 1 << (int)this._DayChecked) != 0; + if (flag2) + { + bool flag3 = this.View.IsVisible(); + if (flag3) + { + this.View.ShowTQFx(); + } + } + bool flag4 = this.View != null && this.View.active; + if (flag4) + { + this.View.RefreshStates(); + this.View.SignTweenPlay(); + bool flag5 = this._Bonus > 1u; + if (flag5) + { + this.View.ShowCritical(); + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward_Login, true); + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.RefreshRedpoint(); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.m_bWaitForResult = false; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLoginRewardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XLoginRewardDocument.cs.meta new file mode 100644 index 00000000..fd16c43e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginRewardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77d2bebd68ea12f4694392b915b67440 +timeCreated: 1611403956 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLoginRewardView.cs b/Client/Assets/Scripts/XMainClient/XLoginRewardView.cs new file mode 100644 index 00000000..9ea3383f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginRewardView.cs @@ -0,0 +1,468 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLoginRewardView : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/LoginFrame"; + } + } + + public XUIPool m_LoginItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_LoginItemList = new List(); + + private XLoginRewardDocument _doc = null; + + private XWelfareDocument _welfDoc = null; + + private GameObject criticalConfirmPanel; + + private IXUIButton criticalConfirmOK; + + private XFx criticalEffect; + + private GameObject inputBlocker; + + private IXUIScrollView itemListPanel; + + private GameObject m_TQTips; + + private GameObject m_Fx; + + private GameObject m_QQVipIcon; + + private GameObject m_QQSVipIcon; + + private IXUILabelSymbol m_QQVipTip; + + private GameObject m_QQGameCenter; + + private GameObject m_WXGameCenter; + + private static readonly int COLUMN = 5; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XLoginRewardDocument.uuID); + this._doc.View = this; + this._welfDoc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this.m_LoginItemPool.SetupPool(base.PanelObject.transform.Find("Panel").gameObject, base.PanelObject.transform.Find("Panel/LoginTpl").gameObject, 30u, false); + this.criticalConfirmPanel = base.PanelObject.transform.Find("CriticalConfirm").gameObject; + this.criticalConfirmOK = (this.criticalConfirmPanel.transform.Find("P/OK").GetComponent("XUIButton") as IXUIButton); + this.criticalEffect = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_gorgeous", null, true); + this.inputBlocker = base.PanelObject.transform.Find("InputBlocker").gameObject; + this.itemListPanel = (base.PanelObject.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_TQTips = base.PanelObject.transform.Find("P/T2").gameObject; + this.m_Fx = base.PanelObject.transform.Find("effect").gameObject; + this.m_Fx.SetActive(false); + this.m_QQVipIcon = base.PanelObject.transform.Find("QQVIPTS/QQVIP").gameObject; + this.m_QQSVipIcon = base.PanelObject.transform.Find("QQVIPTS/QQSVIP").gameObject; + this.m_QQVipTip = (base.PanelObject.transform.Find("QQVIPTS").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_QQGameCenter = base.PanelObject.transform.Find("QQ").gameObject; + this.m_WXGameCenter = base.PanelObject.transform.Find("Wechat").gameObject; + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.criticalConfirmOK.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCriticalBtnOKClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.criticalConfirmPanel.SetActive(false); + this.inputBlocker.SetActive(false); + this.m_TQTips.SetActive(this._welfDoc.IsOwnMemberPrivilege(MemberPrivilege.KingdomPrivilege_Commerce)); + this.RefreshPage(); + this.RefreshPlatformAbilityInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + this.m_Fx.SetActive(false); + } + + public void ShowTQFx() + { + this.m_Fx.SetActive(false); + this.m_Fx.SetActive(true); + } + + private void RefreshPlatformAbilityInfo() + { + this.RefreshQQVipInfo(); + this.RefreshQQWXGameCenterInfo(); + } + + private void RefreshQQVipInfo() + { + QQVipInfoClient qqvipInfo = XPlatformAbilityDocument.Doc.QQVipInfo; + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP) && qqvipInfo != null; + if (flag) + { + this.m_QQVipTip.SetVisible(qqvipInfo.is_svip || qqvipInfo.is_vip); + SeqList seqList = qqvipInfo.is_svip ? XSingleton.singleton.GetSequenceList("QQSVipSignIn", true) : XSingleton.singleton.GetSequenceList("QQVipSignIn", true); + bool flag2 = seqList.Count > 0; + if (flag2) + { + int itemID = seqList[0, 0]; + int num = seqList[0, 1]; + string @string = XStringDefineProxy.GetString(qqvipInfo.is_svip ? "QQVIP_LOGIN_SVIP_TIP" : "QQVIP_LOGIN_VIP_TIP"); + string inputText = XSingleton.singleton.StringCombine(@string, XLabelSymbolHelper.FormatImage(itemID), num.ToString()); + this.m_QQVipTip.InputText = inputText; + } + this.m_QQVipIcon.SetActive(qqvipInfo.is_vip && !qqvipInfo.is_svip); + this.m_QQSVipIcon.SetActive(qqvipInfo.is_svip); + } + else + { + this.m_QQVipTip.SetVisible(false); + this.m_QQVipIcon.SetActive(false); + this.m_QQSVipIcon.SetActive(false); + } + } + + private void RefreshQQWXGameCenterInfo() + { + StartUpType launchTypeServerInfo = XSingleton.singleton.GetLaunchTypeServerInfo(); + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege) && launchTypeServerInfo == StartUpType.StartUp_QQ; + if (flag) + { + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("QQGameCenterSingnIn", XGlobalConfig.AllSeparators); + IXUILabelSymbol ixuilabelSymbol = this.m_QQGameCenter.transform.Find("T").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + string text = XSingleton.singleton.GetString("GAMECENTER_SIGN_IN_QQ"); + for (int i = 0; i < andSeparateValue.Length; i += 2) + { + bool flag2 = i + 1 < andSeparateValue.Length; + if (flag2) + { + text = XSingleton.singleton.StringCombine(text, XLabelSymbolHelper.FormatImage(int.Parse(andSeparateValue[i])), andSeparateValue[i + 1]); + } + } + ixuilabelSymbol.InputText = text; + this.m_QQGameCenter.SetActive(true); + bool flag3 = this.m_QQVipTip.IsVisible(); + if (flag3) + { + IXUILabel ixuilabel = this.m_QQVipTip.gameObject.transform.GetComponent("XUILabel") as IXUILabel; + Vector3 localPosition = this.m_QQVipTip.gameObject.transform.localPosition; + this.m_QQGameCenter.transform.localPosition = new Vector3(localPosition.x + (float)ixuilabel.spriteWidth + 20f, localPosition.y, localPosition.z); + } + } + else + { + this.m_QQGameCenter.SetActive(false); + } + bool flag4 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege) && launchTypeServerInfo == StartUpType.StartUp_WX; + if (flag4) + { + string[] andSeparateValue2 = XSingleton.singleton.GetAndSeparateValue("WXGameCenterSingnIn", XGlobalConfig.SequenceSeparator); + IXUILabel ixuilabel2 = this.m_WXGameCenter.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + bool flag5 = andSeparateValue2.Length == 2; + if (flag5) + { + ixuilabel2.SetText(XStringDefineProxy.GetString("GAMECENTER_SIGN_IN_WX", new object[] + { + andSeparateValue2[1], + XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(int.Parse(andSeparateValue2[0])).ItemName, 0u) + })); + } + this.m_WXGameCenter.SetActive(true); + } + else + { + this.m_WXGameCenter.SetActive(false); + } + } + + public override void OnUnload() + { + bool flag = this._doc != null; + if (flag) + { + this._doc.View = null; + } + base.OnUnload(); + } + + public void RefreshPage() + { + List itemIDs = this._doc.ItemIDs; + List itemCounts = this._doc.ItemCounts; + int num = Math.Max(itemIDs.Count, this.m_LoginItemList.Count); + for (int i = this.m_LoginItemList.Count; i < num; i++) + { + GameObject gameObject = this.m_LoginItemPool.FetchGameObject(false); + this.m_LoginItemList.Add(gameObject); + IXUISprite ixuisprite = gameObject.transform.Find("Bg/Item/Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)i); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemClicked)); + } + num = Math.Min(itemIDs.Count, this.m_LoginItemList.Count); + for (int j = this.m_LoginItemList.Count - 1; j >= num; j--) + { + GameObject go = this.m_LoginItemList[j]; + this.m_LoginItemList.RemoveAt(j); + this.m_LoginItemPool.ReturnInstance(go, false); + } + for (int k = 0; k < itemIDs.Count; k++) + { + uint itemID = itemIDs[k]; + uint itemCount = itemCounts[k]; + GameObject gameObject2 = this.m_LoginItemList[k]; + this._updateItemBasicInfo(gameObject2, itemID, itemCount, k); + gameObject2.transform.localPosition = new Vector3(this.m_LoginItemPool.TplPos.x + (float)(k % XLoginRewardView.COLUMN * this.m_LoginItemPool.TplWidth), this.m_LoginItemPool.TplPos.y - (float)(k / XLoginRewardView.COLUMN * this.m_LoginItemPool.TplHeight), this.m_LoginItemPool.TplPos.z); + } + float num2 = 1f; + bool flag = itemIDs.Count > XLoginRewardView.COLUMN; + if (flag) + { + num2 = (float)((itemIDs.Count - 1) / XLoginRewardView.COLUMN); + } + float num3 = (float)((ulong)this._doc.DayChecked / (ulong)((long)XLoginRewardView.COLUMN)); + float position = num3 / num2; + this.itemListPanel.SetPosition(position); + uint dayChecked = this._doc.DayChecked; + bool flag2 = (ulong)dayChecked < (ulong)((long)this.m_LoginItemList.Count); + if (flag2) + { + IXUITweenTool ixuitweenTool = base.PanelObject.transform.Find("SignPlayTween").GetComponent("XUIPlayTween") as IXUITweenTool; + GameObject gameObject3 = this.m_LoginItemList[(int)dayChecked].transform.Find("Signed").gameObject; + ixuitweenTool.SetTargetGameObject(gameObject3); + } + this.RefreshStates(); + } + + public void RefreshStates() + { + uint dayChecked = this._doc.DayChecked; + uint dayCanCheck = this._doc.DayCanCheck; + bool todaySigned = this._doc.IsTodayChecked(); + GameObject gameObject = base.PanelObject.transform.Find("Check").gameObject; + bool flag = dayChecked >= dayCanCheck; + if (flag) + { + gameObject.SetActive(false); + } + else + { + gameObject.SetActive(true); + IXUIButton ixuibutton = base.PanelObject.transform.Find("Check").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCheckClicked)); + GameObject gameObject2 = base.PanelObject.transform.Find("Check/RedPoint").gameObject; + GameObject gameObject3 = base.PanelObject.transform.Find("Check/T").gameObject; + GameObject gameObject4 = base.PanelObject.transform.Find("Check/Cost").gameObject; + bool flag2 = this._doc.IsTodayChecked(); + if (flag2) + { + int replenishCost = (int)this._doc.GetReplenishCost(); + IXUILabel ixuilabel = base.PanelObject.transform.Find("Check/Cost").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(replenishCost.ToString()); + gameObject3.SetActive(false); + gameObject4.SetActive(true); + gameObject2.SetActive(false); + } + else + { + gameObject3.SetActive(true); + gameObject4.SetActive(false); + gameObject2.SetActive(true); + } + } + for (int i = 0; i < this.m_LoginItemList.Count; i++) + { + GameObject go = this.m_LoginItemList[i]; + this._updateItemState(go, i, dayChecked, dayCanCheck, todaySigned); + } + } + + private void _canResign(GameObject go, bool can) + { + GameObject gameObject = go.transform.Find("ReSign").gameObject; + if (can) + { + gameObject.SetActive(true); + } + else + { + gameObject.SetActive(false); + } + } + + private void _updateItemState(GameObject go, int index, uint daychecked, uint daycancheck, bool todaySigned) + { + GameObject gameObject = go.transform.Find("Cover").gameObject; + GameObject gameObject2 = go.transform.Find("Signed").gameObject; + IXUISprite ixuisprite = go.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject3 = go.transform.Find("RedPoint").gameObject; + gameObject3.SetActive(false); + bool flag = (long)index < (long)((ulong)daychecked); + if (flag) + { + gameObject.SetActive(true); + gameObject2.SetActive(true); + this._canResign(go, false); + ixuisprite.SetSprite("kz_lan"); + } + else + { + gameObject.SetActive(false); + gameObject2.SetActive(false); + bool flag2 = (long)index == (long)((ulong)daychecked) && daychecked < daycancheck; + if (flag2) + { + ixuisprite.SetSprite("kz_lan2"); + } + else + { + ixuisprite.SetSprite("kz_lan"); + } + bool flag3 = (long)index < (long)((ulong)daycancheck); + if (flag3) + { + bool flag4 = (long)index == (long)((ulong)daychecked) && !todaySigned; + if (flag4) + { + this._canResign(go, false); + } + else + { + this._canResign(go, true); + } + } + else + { + this._canResign(go, false); + } + } + } + + private void _updateItemBasicInfo(GameObject go, uint itemID, uint itemCount, int index) + { + GameObject gameObject = go.transform.Find("Bg/Item").gameObject; + IXUISprite ixuisprite = go.transform.Find("TQ").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("TQ/Text").GetComponent("XUILabel") as IXUILabel; + bool flag = (this._doc.DoubleTQ & 1 << index + 1) != 0; + ixuisprite.SetVisible(flag); + bool flag2 = flag; + if (flag2) + { + ixuisprite.SetVisible(true); + } + else + { + ixuisprite.SetVisible(false); + } + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)itemID, (int)itemCount, false); + } + + private bool OnCheckClicked(IXUIButton iSp) + { + uint dayChecked = this._doc.DayChecked; + uint dayCanCheck = this._doc.DayCanCheck; + bool flag = dayChecked < dayCanCheck; + if (flag) + { + bool flag2 = this._doc.IsTodayChecked(); + if (flag2) + { + int replenishCost = (int)this._doc.GetReplenishCost(); + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("LOGINREWARD_RESIGN_CONFIRM", new object[] + { + XLabelSymbolHelper.FormatCostWithIcon(replenishCost, ItemEnum.DRAGON_COIN) + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.OnResignBtnOKClicked)); + } + else + { + this._doc.ReqCheckin(); + GameObject gameObject = base.PanelObject.transform.Find("Check/RedPoint").gameObject; + gameObject.SetActive(false); + } + } + return true; + } + + private void OnItemClicked(IXUISprite iSp) + { + uint dayChecked = this._doc.DayChecked; + uint dayCanCheck = this._doc.DayCanCheck; + bool flag = iSp.ID >= (ulong)dayChecked; + if (flag) + { + List itemIDs = this._doc.ItemIDs; + int num = (int)iSp.ID; + bool flag2 = num >= itemIDs.Count; + if (!flag2) + { + int itemID = (int)itemIDs[num]; + XSingleton.singleton.ShowTooltipDialog(itemID, iSp, 0u); + } + } + } + + private bool OnResignBtnOKClicked(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this._doc.ReqCheckin(); + return true; + } + + public void SignTweenPlay() + { + IXUITweenTool ixuitweenTool = base.PanelObject.transform.Find("SignPlayTween").GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.PlayTween(true, -1f); + uint dayChecked = this._doc.DayChecked; + bool flag = (ulong)dayChecked < (ulong)((long)this.m_LoginItemList.Count); + if (flag) + { + GameObject gameObject = this.m_LoginItemList[(int)dayChecked].transform.Find("Signed").gameObject; + ixuitweenTool.SetTargetGameObject(gameObject); + } + } + + private bool OnCriticalBtnOKClicked(IXUIButton btn) + { + this.criticalConfirmPanel.SetActive(false); + this.inputBlocker.SetActive(false); + return true; + } + + public void ShowCritical() + { + IXUILabel ixuilabel = this.criticalConfirmPanel.transform.Find("P/Times0").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = this.criticalConfirmPanel.transform.Find("P/Times1").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = this.criticalConfirmPanel.transform.Find("P/Item").gameObject; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)this._doc.ItemIDs[(int)(this._doc.DayChecked - 1u)], (int)this._doc.ItemCounts[(int)(this._doc.DayChecked - 1u)], true); + ixuilabel.SetText(this._doc.Bonus.ToString()); + ixuilabel2.SetText(this._doc.Bonus.ToString()); + this.PlayCritical(); + } + + public void PlayCritical() + { + this.inputBlocker.SetActive(true); + this.criticalEffect.Play(Vector3.zero, Quaternion.identity, Vector3.one, 1f); + XSingleton.singleton.PlayUISound("Audio/UI/yanhua", true, AudioChannel.Action); + XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this._OnFinishPlayCriticalFx), null); + } + + private void _OnFinishPlayCriticalFx(object o = null) + { + this.criticalConfirmPanel.SetActive(true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLoginRewardView.cs.meta b/Client/Assets/Scripts/XMainClient/XLoginRewardView.cs.meta new file mode 100644 index 00000000..ad24c70a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginRewardView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 278f73f6940366e4abb3e80968da8fc5 +timeCreated: 1611403472 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLoginStage.cs b/Client/Assets/Scripts/XMainClient/XLoginStage.cs new file mode 100644 index 00000000..f1c8bf9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginStage.cs @@ -0,0 +1,99 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLoginStage : XStage + { + private EXStage _eOld = EXStage.Null; + + private bool _login_ready = false; + + private bool _ready = false; + + public XLoginStage() : base(EXStage.Login) + { + } + + public override void OnEnterStage(EXStage eOld) + { + base.OnEnterStage(eOld); + CombineMeshTask.s_CombineMatType = ECombineMatType.EIndependent; + XSingleton.singleton.DelayLoad = false; + this._ready = false; + XSingleton.singleton.LoadLoginUI(this._eStage); + XSingleton.singleton.LoadAccount(); + this._eOld = eOld; + this._login_ready = false; + XSingleton.singleton.Start("CutScene/first_slash_show", false, true); + XLoginStep xloginStep = XSingleton.singleton.XLoginStep; + if (xloginStep != XLoginStep.Begin) + { + if (xloginStep == XLoginStep.Login) + { + XSingleton.singleton.ShowLoginSelectServerUI(); + } + } + else + { + XSingleton.singleton.ShowLoginUI(); + } + XSingleton.singleton.Uninit(); + XQualitySetting.SetDofFade(0f); + } + + public override void OnLeaveStage(EXStage eNew) + { + base.OnLeaveStage(eNew); + XSingleton.singleton.UnloadLoginUI(); + CombineMeshTask.s_CombineMatType = ECombineMatType.ECombined; + XSingleton.singleton.DelayLoad = true; + } + + public override void OnEnterScene(uint sceneid, bool transfer) + { + base.OnEnterScene(sceneid, transfer); + CombineMeshTask.s_CombineMatType = ECombineMatType.EIndependent; + XSingleton.singleton.DelayLoad = false; + XSingleton.singleton.Start("CutScene/first_slash_show", false, true); + } + + public override void Play() + { + this._ready = true; + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + XSingleton.singleton.Update(); + bool flag = (XSingleton.singleton.SDKSignOut || !this._login_ready) && XSingleton.singleton.SceneReady; + if (flag) + { + bool sdksignOut = XSingleton.singleton.SDKSignOut; + if (sdksignOut) + { + XSingleton.singleton.SetChannelByWakeUp(); + } + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_Max; + if (!flag2) + { + XSingleton.singleton.AutoAuthorization(true); + } + XSingleton.singleton.SDKSignOut = false; + this._login_ready = true; + } + } + + public override void PostUpdate(float fDeltaT) + { + base.PostUpdate(fDeltaT); + bool flag = this._ready && XSingleton.singleton.SceneReady; + if (flag) + { + this._ready = false; + XSingleton.singleton.SwitchTo(EXStage.SelectChar, 3u); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLoginStage.cs.meta b/Client/Assets/Scripts/XMainClient/XLoginStage.cs.meta new file mode 100644 index 00000000..57bbd213 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b8a7c350115b21546b9fb292b7a091be +timeCreated: 1611404405 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLoginStep.cs b/Client/Assets/Scripts/XMainClient/XLoginStep.cs new file mode 100644 index 00000000..15ab6195 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginStep.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum XLoginStep + { + Begin, + Authorization, + Login, + EnterGame, + Playing + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLoginStep.cs.meta b/Client/Assets/Scripts/XMainClient/XLoginStep.cs.meta new file mode 100644 index 00000000..91f455eb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginStep.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2424bac7f4fca6844bfef6e17ad3eb22 +timeCreated: 1611403459 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLoginTipBehaviour.cs b/Client/Assets/Scripts/XMainClient/XLoginTipBehaviour.cs new file mode 100644 index 00000000..710856d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginTipBehaviour.cs @@ -0,0 +1,19 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XLoginTipBehaviour : DlgBehaviourBase + { + public IXUITweenTool m_TipTween; + + public IXUILabel m_TipLabel; + + private void Awake() + { + this.m_TipTween = (base.transform.Find("Bg/Tip").GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_TipLabel = (base.transform.Find("Bg/Tip/Text").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLoginTipBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XLoginTipBehaviour.cs.meta new file mode 100644 index 00000000..8b88f45b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginTipBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e5388146a7fe084e8b4cb583f5db759 +timeCreated: 1611404004 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLoginTipView.cs b/Client/Assets/Scripts/XMainClient/XLoginTipView.cs new file mode 100644 index 00000000..d0148d6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginTipView.cs @@ -0,0 +1,57 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XLoginTipView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/LoginTip"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public void ShowTips(string str) + { + DlgBase.singleton.SetVisible(true, true); + base.uiBehaviour.m_TipTween.gameObject.SetActive(true); + base.uiBehaviour.m_TipTween.ResetTween(true); + base.uiBehaviour.m_TipLabel.SetText(str); + base.uiBehaviour.m_TipTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnWelcomeTweenFinish)); + base.uiBehaviour.m_TipTween.PlayTween(true, -1f); + } + + public void StopTips() + { + DlgBase.singleton.SetVisible(false, true); + } + + public void OnWelcomeTweenFinish(IXUITweenTool iPlayTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_TipTween.PlayTween(false, -1f); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLoginTipView.cs.meta b/Client/Assets/Scripts/XMainClient/XLoginTipView.cs.meta new file mode 100644 index 00000000..ea4a56af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLoginTipView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 65c14240bf7f9fb44bbb56a7f894aee9 +timeCreated: 1611403851 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLotteryBoxItem.cs b/Client/Assets/Scripts/XMainClient/XLotteryBoxItem.cs new file mode 100644 index 00000000..8fa07f89 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLotteryBoxItem.cs @@ -0,0 +1,34 @@ +using System; + +namespace XMainClient +{ + internal class XLotteryBoxItem : XItem + { + public static readonly int POOL_SIZE = 8; + + public XItem[] itemList = new XItem[XLotteryBoxItem.POOL_SIZE]; + + public override void Init() + { + base.Init(); + for (int i = 0; i < XLotteryBoxItem.POOL_SIZE; i++) + { + XItem xitem = this.itemList[i]; + bool flag = xitem == null; + if (flag) + { + xitem = new XNormalItem(); + this.itemList[i] = xitem; + } + xitem.itemID = 0; + xitem.itemCount = 0; + } + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLotteryBoxItem.cs.meta b/Client/Assets/Scripts/XMainClient/XLotteryBoxItem.cs.meta new file mode 100644 index 00000000..d724b256 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLotteryBoxItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27e85f3d6dc6d4446af3ffedf3d2d0c4 +timeCreated: 1611403473 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLuaDocument.cs b/Client/Assets/Scripts/XMainClient/XLuaDocument.cs new file mode 100644 index 00000000..17aaea81 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLuaDocument.cs @@ -0,0 +1,60 @@ +using System; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XLuaDocument : XDocComponent + { + public override uint ID + { + get + { + return XLuaDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XLuaDocument"); + + public override void OnDetachFromHost() + { + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.OnDetachFromHost(); + base.OnDetachFromHost(); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.OnAttachToHost(); + } + + public override void OnLeaveScene() + { + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.OnLeaveScene(); + base.OnLeaveScene(); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.OnEnterScene(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.OnEnterSceneFinally(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.OnReconnect(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLuaDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XLuaDocument.cs.meta new file mode 100644 index 00000000..e8545984 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLuaDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ecc8cbab293f394e922e664f969e5e1 +timeCreated: 1611404243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XLuaExtion.cs b/Client/Assets/Scripts/XMainClient/XLuaExtion.cs new file mode 100644 index 00000000..c2e77672 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLuaExtion.cs @@ -0,0 +1,276 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XLuaExtion : XSingleton, ILuaExtion, IXInterface + { + public bool Deprecated { get; set; } + + public void SetPlayerProprerty(string key, object value) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData != null; + if (flag) + { + xplayerData.SetPublicProperty(key, value); + } + } + + public object GetPlayeProprerty(string key) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + return xplayerData.GetPublicProperty(key); + } + + public object CallPlayerMethod(bool isPublic, string method, params object[] args) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + return this.CallMethod(xplayerData, isPublic, method, args); + } + + public object GetDocument(string doc) + { + uint uuid = XSingleton.singleton.XHash(doc); + return XSingleton.singleton.Doc.GetXComponent(uuid); + } + + public object GetDocumentMember(string doc, string key, bool isPublic, bool isField) + { + uint uuid = XSingleton.singleton.XHash(doc); + XComponent xcomponent = XSingleton.singleton.Doc.GetXComponent(uuid); + return this.GetMember(xcomponent, isField, isPublic, key); + } + + public object GetDocumentStaticMember(string doc, string key, bool isPublic, bool isField) + { + return this.GetStaticMember("XMainClient." + doc, key, isPublic, isField); + } + + public void SetDocumentMember(string doc, string key, object value, bool isPublic, bool isField) + { + uint uuid = XSingleton.singleton.XHash(doc); + XComponent xcomponent = XSingleton.singleton.Doc.GetXComponent(uuid); + this.SetMember(xcomponent, isField, isPublic, key, value); + } + + public object CallDocumentMethod(string doc, bool isPublic, string method, params object[] args) + { + uint uuid = XSingleton.singleton.XHash(doc); + XComponent xcomponent = XSingleton.singleton.Doc.GetXComponent(uuid); + return this.CallMethod(xcomponent, isPublic, method, args); + } + + public object CallDocumentStaticMethod(string doc, bool isPublic, string method, params object[] args) + { + return this.CallStaticMethod("XMainClient." + doc, isPublic, method, args); + } + + public object GetSingle(string className) + { + return PublicExt.GetStaticPublicProperty("XMainClient." + className, "singleton"); + } + + public object GetSingleMember(string className, string key, bool isPublic, bool isField, bool isStatic) + { + object result; + if (isStatic) + { + result = this.GetStaticMember("XMainClient." + className, key, isPublic, isField); + } + else + { + object staticPublicProperty = PublicExt.GetStaticPublicProperty("XMainClient." + className, "singleton"); + result = this.GetMember(staticPublicProperty, isField, isPublic, key); + } + return result; + } + + public void SetSingleMember(string className, string key, object value, bool isPublic, bool isField, bool isStatic) + { + if (isStatic) + { + this.SetStaticMember("XMainClient." + className, isField, isPublic, key, value); + } + else + { + object staticPublicProperty = PublicExt.GetStaticPublicProperty("XMainClient." + className, "singleton"); + this.SetMember(staticPublicProperty, isField, isPublic, key, value); + } + } + + public object CallSingleMethod(string className, bool isPublic, bool isStatic, string methodName, params object[] args) + { + object result; + if (isStatic) + { + result = this.CallStaticMethod("XMainClient." + className, isPublic, methodName, args); + } + else + { + object staticPublicProperty = PublicExt.GetStaticPublicProperty("XMainClient." + className, "singleton"); + result = this.CallMethod(staticPublicProperty, isPublic, methodName, args); + } + return result; + } + + private object GetMember(object o, bool isField, bool isPublic, string key) + { + object result; + if (isPublic) + { + if (isField) + { + result = o.GetPublicField(key); + } + else + { + result = o.GetPublicProperty(key); + } + } + else if (isField) + { + result = o.GetPrivateField(key); + } + else + { + result = o.GetPrivateProperty(key); + } + return result; + } + + private object GetStaticMember(string className, string key, bool isPublic, bool isField) + { + object result; + if (isPublic) + { + if (isField) + { + result = PublicExt.GetStaticPublicField(className, key); + } + else + { + result = PublicExt.GetStaticPublicProperty(className, key); + } + } + else if (isField) + { + result = PrivateExt.GetStaticPrivateField(className, key); + } + else + { + result = PrivateExt.GetStaticPrivateProperty(className, key); + } + return result; + } + + private void SetMember(object o, bool isField, bool isPublic, string key, object value) + { + if (isPublic) + { + if (isField) + { + o.SetPublicField(key, value); + } + else + { + o.SetPublicProperty(key, value); + } + } + else if (isField) + { + o.SetPrivateField(key, value); + } + else + { + o.SetPrivateProperty(key, value); + } + } + + private void SetStaticMember(string className, bool isField, bool isPublic, string key, object value) + { + if (isPublic) + { + if (isField) + { + PublicExt.SetStaticPublicField(className, key, value); + } + else + { + PublicExt.SetStaticPublicProperty(className, key, value); + } + } + else if (isField) + { + PrivateExt.SetStaticPrivateField(className, key, value); + } + else + { + PrivateExt.SetStaticPrivateProperty(className, key, value); + } + } + + private object CallStaticMethod(string className, bool isPublic, string methodName, params object[] args) + { + object result; + if (isPublic) + { + result = PublicExt.CallStaticPublicMethod(className, methodName, args); + } + else + { + result = PrivateExt.CallStaticPrivateMethod(className, methodName, args); + } + return result; + } + + private object CallMethod(object o, bool isPublic, string methodName, params object[] args) + { + object result; + if (isPublic) + { + result = o.CallPublicMethod(methodName, args); + } + else + { + result = o.CallPrivateMethod(methodName, args); + } + return result; + } + + public Type GetType(string classname) + { + return Type.GetType("XMainClient." + classname); + } + + public object GetEnumType(string classname, string value) + { + return Enum.Parse(this.GetType(classname), value); + } + + public void RefreshPlayerName() + { + XPlayer player = XSingleton.singleton.Player; + bool flag = player != null && player.BillBoard != null; + if (flag) + { + player.BillBoard.Attached(); + } + } + + public string GetStringTable(string key, params object[] args) + { + return XStringDefineProxy.GetString(key, args); + } + + public string GetGlobalString(string key) + { + return XSingleton.singleton.GetValue(key); + } + + public XLuaLong Get(string str) + { + return new XLuaLong(str); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XLuaExtion.cs.meta b/Client/Assets/Scripts/XMainClient/XLuaExtion.cs.meta new file mode 100644 index 00000000..4f99fdf4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XLuaExtion.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44703d7e4bbbdb041b905461e888f56c +timeCreated: 1611403644 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMailDocument.cs b/Client/Assets/Scripts/XMainClient/XMailDocument.cs new file mode 100644 index 00000000..ef25d702 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMailDocument.cs @@ -0,0 +1,356 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMailDocument : XDocComponent + { + public override uint ID + { + get + { + return XMailDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MailDocument"); + + public List mails = new List(); + + private int currPage = 0; + + private int pagesCnt = 1; + + public ulong select_mail = 0UL; + + public const int PERCNT = 7; + + public string valit; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.ReqMailInfo(); + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.mails.Clear(); + } + + public void ReqMailInfo() + { + RpcC2M_FetchMail rpcC2M_FetchMail = new RpcC2M_FetchMail(); + rpcC2M_FetchMail.oArg.page = (uint)this.currPage; + rpcC2M_FetchMail.oArg.count = 7u; + XSingleton.singleton.Send(rpcC2M_FetchMail); + } + + public void ResMailInfo(FetchMailRes res) + { + this.currPage = (int)res.page; + this.pagesCnt = (int)res.pagecount; + this.mails.Clear(); + for (int i = 0; i < res.mails.Count; i++) + { + SMail smail = res.mails[i]; + MailItem mailItem = new MailItem(); + mailItem.id = smail.uid; + mailItem.isRead = smail.isread; + mailItem.state = (MailState)smail.state; + mailItem.type = (MailType)smail.type; + mailItem.isTemp = smail.istemplate; + mailItem.title = this.FormatStringLength(smail.title, 28); + mailItem.date = this.UnixDate(smail.timestamp); + mailItem.content = smail.content; + bool flag = mailItem.items == null; + if (flag) + { + mailItem.items = new List(); + } + bool flag2 = mailItem.xitems == null; + if (flag2) + { + mailItem.xitems = new List(); + } + mailItem.items.Clear(); + for (int j = 0; j < smail.items.Count; j++) + { + mailItem.items.Add(smail.items[j]); + } + for (int k = 0; k < smail.xitems.Count; k++) + { + mailItem.xitems.Add(smail.xitems[k]); + } + mailItem.valit = smail.timeleft; + this.mails.Add(mailItem); + } + bool flag3 = DlgBase.singleton._systemFrameView != null && DlgBase.singleton._systemFrameView.IsVisible(); + if (flag3) + { + DlgBase.singleton._systemFrameView.Refresh(); + } + } + + public void ReqMailOP(MailOP type, ulong uid) + { + this.ReqMailOP(type, new List + { + uid + }); + } + + public void ReqMailOP(MailOP type, List uid) + { + RpcC2M_MailOp rpcC2M_MailOp = new RpcC2M_MailOp(); + rpcC2M_MailOp.oArg.uid.Clear(); + foreach (ulong num in uid) + { + MailItem mailItem = this.Find(num); + rpcC2M_MailOp.oArg.uid.Add(num); + } + rpcC2M_MailOp.oArg.optype = (uint)type; + XSingleton.singleton.Send(rpcC2M_MailOp); + } + + private MailItem Find(ulong id) + { + for (int i = 0; i < this.mails.Count; i++) + { + bool flag = this.mails[i].id == id; + if (flag) + { + return this.mails[i]; + } + } + return null; + } + + public void ResMailOP(MailOpArg req, MailOpRes res) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = req.optype == 0u; + if (flag2) + { + ulong id = req.uid[0]; + MailItem mailItem = this.Find(id); + bool flag3 = mailItem != null; + if (flag3) + { + mailItem.isRead = true; + bool flag4 = DlgBase.singleton._systemFrameView.IsVisible(); + if (flag4) + { + DlgBase.singleton._systemFrameView.RefreshItems(); + } + } + } + else + { + bool flag5 = req.optype == 2u; + if (flag5) + { + ulong id2 = req.uid[0]; + MailItem mailItem2 = this.Find(id2); + bool flag6 = mailItem2 != null; + if (flag6) + { + mailItem2.state = MailState.CLAIMED; + bool flag7 = DlgBase.singleton._contMailView.IsVisible(); + if (flag7) + { + DlgBase.singleton._contMailView.Refresh(); + } + bool flag8 = DlgBase.singleton._systemFrameView.IsVisible(); + if (flag8) + { + DlgBase.singleton._systemFrameView.RefreshItems(); + } + } + } + else + { + this.ReqMailInfo(); + } + } + } + } + + private DateTime UnixDate(uint sp) + { + DateTime minValue = DateTime.MinValue; + return TimeZone.CurrentTimeZone.ToLocalTime(new DateTime(1970, 1, 1)).AddSeconds(sp); + } + + private void Sort() + { + this.mails.Sort(new Comparison(this.SortMethod)); + } + + private int SortMethod(ulong _x, ulong _y) + { + MailItem x = this.Find(_x); + MailItem y = this.Find(_y); + return this.SortMethod(x, y); + } + + private int SortMethod(MailItem x, MailItem y) + { + bool flag = x == null || y == null; + int result; + if (flag) + { + result = 0; + } + else + { + TimeSpan timeSpan = x.date - y.date; + bool flag2 = timeSpan.TotalSeconds < 0.0; + if (flag2) + { + result = -1; + } + else + { + bool flag3 = timeSpan.TotalSeconds == 0.0; + if (flag3) + { + result = 0; + } + else + { + result = 1; + } + } + } + return result; + } + + public void SetSelect(ulong id) + { + this.select_mail = id; + } + + public void RefreshContentNil() + { + this.select_mail = 0UL; + DlgBase.singleton._contMailView.Refresh(); + } + + public bool CtlPage(bool add) + { + bool flag = !add; + bool result; + if (flag) + { + bool flag2 = this.currPage > 0; + if (flag2) + { + this.currPage--; + this.ReqMailInfo(); + result = true; + } + else + { + result = false; + } + } + else + { + bool flag3 = this.currPage < this.pagesCnt - 1; + if (flag3) + { + this.currPage++; + this.ReqMailInfo(); + result = true; + } + else + { + result = false; + } + } + return result; + } + + public string GetPageFormat() + { + return string.Format("{0}/{1}", this.currPage + 1, Math.Max(1, this.pagesCnt)); + } + + public bool ShowMailContent() + { + return this.select_mail != 0UL && this.Find(this.select_mail) != null; + } + + public MailItem GetMailItem() + { + return this.Find(this.select_mail); + } + + public MailItem GetMailItem(ulong id) + { + return this.Find(id); + } + + public string FormatStringLength(string str, int displayLength) + { + string result = string.Empty; + int byteCount = Encoding.Default.GetByteCount(str); + bool flag = byteCount > displayLength; + if (flag) + { + displayLength -= 3; + int num = 0; + int num2 = 0; + byte[] bytes = Encoding.Unicode.GetBytes(str); + while (num2 < bytes.GetLength(0) && num < displayLength) + { + bool flag2 = num2 % 2 == 0; + if (flag2) + { + num++; + } + else + { + bool flag3 = bytes[num2] > 0; + if (flag3) + { + num++; + } + } + num2++; + } + bool flag4 = num2 % 2 == 1; + if (flag4) + { + bool flag5 = bytes[num2] > 0; + if (flag5) + { + num2--; + } + else + { + num2++; + } + } + result = Encoding.Unicode.GetString(bytes, 0, num2) + "..."; + } + else + { + result = str; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMailDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XMailDocument.cs.meta new file mode 100644 index 00000000..96ccc579 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMailDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de768e535f170b441bccba0d971216b9 +timeCreated: 1611404686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMainClient.csproj b/Client/Assets/Scripts/XMainClient/XMainClient.csproj new file mode 100644 index 00000000..b4d9005b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMainClient.csproj @@ -0,0 +1,6514 @@ + + + + + Debug + AnyCPU + {E6651ECA-E9FD-4D8A-89DD-7B2BEEACEB7E} + Library + XMainClient + XMainClient + v3.5 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + true + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + true + + + + + ..\..\..\..\..\..\..\Games\Steam\steamapps\common\My Friend Pedro\My Friend Pedro - Blood Bullets Bananas_Data\Managed\UnityEngine.dll + + + ..\..\..\Client\Assets\Lib\UILib.dll + + + ..\..\..\Client\Assets\Lib\XUtliPoolLib.dll + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Client/Assets/Scripts/XMainClient/XMainClient.csproj.meta b/Client/Assets/Scripts/XMainClient/XMainClient.csproj.meta new file mode 100644 index 00000000..1e630197 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMainClient.csproj.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 340699b43539ea54fa0206b9db4745c6 +timeCreated: 1611402942 +licenseType: Free +DefaultImporter: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMainInterfaceDocument.cs b/Client/Assets/Scripts/XMainClient/XMainInterfaceDocument.cs new file mode 100644 index 00000000..543505b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMainInterfaceDocument.cs @@ -0,0 +1,764 @@ +using System; +using System.Collections; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMainInterfaceDocument : XDocComponent + { + public override uint ID + { + get + { + return XMainInterfaceDocument.uuID; + } + } + + public GameCommunityTable GameCommunityReader + { + get + { + return XMainInterfaceDocument._gameCommunityReader; + } + } + + public XMainInterface View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public XMainInterfaceDocument.GetFps GetFpsState + { + get + { + return this._get_fps_state; + } + set + { + this._get_fps_state = value; + } + } + + public float FpsStartTime + { + get + { + return this._fps_start_time; + } + set + { + this._fps_start_time = value; + } + } + + public float PeakFps + { + get + { + return this._peak_fps; + } + set + { + this._peak_fps = value; + } + } + + public int FpsCount + { + get + { + return this._fps_count; + } + set + { + this._fps_count = value; + } + } + + public bool GameAnnouncement + { + set + { + this._game_announcement = value; + } + } + + public bool BackFlow + { + get + { + return this._backFlow; + } + set + { + this._backFlow = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MainInterfaceDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GameCommunityTable _gameCommunityReader = new GameCommunityTable(); + + private XMainInterface _view = null; + + public XEventBlocker AttrEventBlocker = new XEventBlocker(); + + public XEventBlocker VirtualItemEventBlocker = new XEventBlocker(); + + public XEventBlocker AddItemEventBlocker = new XEventBlocker(); + + public XEventBlocker RemoveItemEventBlocker = new XEventBlocker(); + + public XEventBlocker ItemNumChangedEventBlocker = new XEventBlocker(); + + private XMainInterfaceDocument.GetFps _get_fps_state = XMainInterfaceDocument.GetFps.wait; + + private float _fps_start_time = 0f; + + private float _peak_fps = 0f; + + private int _fps_count = 0; + + private bool _game_announcement = false; + + public bool ShowWebView = false; + + private bool _backFlow = false; + + public enum GetFps + { + wait, + start, + running, + stop + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.AttrEventBlocker.EventHandler = new XEventBlocker.XEventHandler(this.OnAttributeChange); + this.VirtualItemEventBlocker.EventHandler = new XEventBlocker.XEventHandler(this.OnVirtualItemChanged); + this.AddItemEventBlocker.EventHandler = new XEventBlocker.XEventHandler(this.OnAddItem); + this.RemoveItemEventBlocker.EventHandler = new XEventBlocker.XEventHandler(this.OnRemoveItem); + this.ItemNumChangedEventBlocker.EventHandler = new XEventBlocker.XEventHandler(this.OnItemNumChanged); + this._get_fps_state = XMainInterfaceDocument.GetFps.start; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XMainInterfaceDocument.AsyncLoader.AddTask("Table/GameCommunity", XMainInterfaceDocument._gameCommunityReader, false); + XMainInterfaceDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AttributeChange, new XComponent.XEventHandler(this.OnAttributeChange)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnItemNumChanged)); + base.RegisterEvent(XEventDefine.XEvent_GuildLevelChanged, new XComponent.XEventHandler(this.OnGuildLevelChanged)); + base.RegisterEvent(XEventDefine.XEvent_InGuildStateChanged, new XComponent.XEventHandler(this.OnInGuildStateChanged)); + base.RegisterEvent(XEventDefine.XEvent_TeamMemberCountChanged, new XComponent.XEventHandler(this._OnMemberCountChanged)); + base.RegisterEvent(XEventDefine.XEvent_JoinTeam, new XComponent.XEventHandler(this._OnJoinTeam)); + base.RegisterEvent(XEventDefine.XEvent_LeaveTeam, new XComponent.XEventHandler(this._OnLeaveTeam)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + private bool _OnJoinTeam(XEventArgs e) + { + bool flag = this._view != null; + if (flag) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + this._view._TaskNaviHandler.SetTeamMemberCount(specificDocument.MyTeam.members.Count); + } + } + return true; + } + + private bool _OnLeaveTeam(XEventArgs e) + { + bool flag = this._view != null; + if (flag) + { + this._view._TaskNaviHandler.SetTeamMemberCount(0); + } + return true; + } + + private bool _OnMemberCountChanged(XEventArgs arg) + { + XTeamMemberCountChangedEventArgs xteamMemberCountChangedEventArgs = arg as XTeamMemberCountChangedEventArgs; + bool flag = this._view != null; + if (flag) + { + this._view._TaskNaviHandler.SetTeamMemberCount((int)xteamMemberCountChangedEventArgs.newCount); + } + return true; + } + + protected bool OnGuildLevelChanged(XEventArgs e) + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.OnGuildSysChange(); + } + return true; + } + + protected bool OnInGuildStateChanged(XEventArgs e) + { + XInGuildStateChangedEventArgs xinGuildStateChangedEventArgs = e as XInGuildStateChangedEventArgs; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.OnGuildSysChange(); + } + return true; + } + + protected bool OnAttributeChange(XEventArgs e) + { + bool flag = this._view != null && this._view.IsVisible(); + if (flag) + { + XAttrChangeEventArgs xattrChangeEventArgs = e as XAttrChangeEventArgs; + bool bBlockReceiver = this.AttrEventBlocker.bBlockReceiver; + if (bBlockReceiver) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = xattrChangeEventArgs.AttrKey; + @event.DeltaValue = xattrChangeEventArgs.DeltaValue; + this.AttrEventBlocker.AddEvent(@event); + return true; + } + XAttributeDefine attrKey = xattrChangeEventArgs.AttrKey; + if (attrKey == XAttributeDefine.XAttr_POWER_POINT_Basic) + { + bool flag2 = this._view.IsVisible(); + if (flag2) + { + this._view.SetPowerpoint((int)xattrChangeEventArgs.DeltaValue); + } + DlgBase.singleton.UpdatePPT((int)xattrChangeEventArgs.DeltaValue); + } + } + return true; + } + + private IEnumerator LoadWebViewConfig(string url) + { + WWW www = new WWW(url); + yield return www; + while (!www.isDone) + { + yield return www; + } + bool flag = !string.IsNullOrEmpty(www.error); + if (flag) + { + this.ShowWebView = false; + www.Dispose(); + yield break; + } + bool flag2 = www.text.Contains("true"); + if (flag2) + { + this.ShowWebView = true; + } + else + { + this.ShowWebView = false; + } + www.Dispose(); + www = null; + yield break; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = !this._game_announcement && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + XSingleton.singleton.ShowPatface(); + this._game_announcement = true; + } + else + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag2) + { + XSingleton.singleton.CheckPandoraPLPanel(); + } + } + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + XSingleton.singleton.TryShowCache(); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.MulActTipsToken = XSingleton.singleton.SetTimer(5f, new XTimerMgr.ElapsedEventHandler(DlgBase.singleton.SetMultiActivityTips), null); + } + } + + public override void OnLeaveScene() + { + base.OnEnterScene(); + this.AttrEventBlocker.ClearEvents(); + this.VirtualItemEventBlocker.ClearEvents(); + this.AddItemEventBlocker.ClearEvents(); + this.RemoveItemEventBlocker.ClearEvents(); + this.ItemNumChangedEventBlocker.ClearEvents(); + bool flag = this._get_fps_state == XMainInterfaceDocument.GetFps.running; + if (flag) + { + float num = (float)this._fps_count / (Time.realtimeSinceStartup - this._fps_start_time); + XSingleton.singleton.AddLog("TestinLog-Event>>>> ID Times, Key Average Fps, Value ", num.ToString(), null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("TestinLog-Event>>>> ID Times, Key Peak Fps, Value ", this._peak_fps.ToString(), null, null, null, null, XDebugColor.XDebug_None); + this._get_fps_state = XMainInterfaceDocument.GetFps.stop; + } + XSingleton.singleton.AddGreenLog("OnLeaveScene", null, null, null, null, null); + XSingleton.singleton.CloseAllPandoraPanel(); + } + + public void OnSysOpen() + { + bool flag = this._view != null; + if (flag) + { + this._view.RefreshSysAnnounce(); + } + } + + public void OnSysChange() + { + bool flag = this._view != null; + if (flag) + { + this._view.OnMainSysChange(); + } + } + + public void RefreshVirtualItem(int itemID) + { + DlgBase.singleton.TryRefresh(itemID); + bool flag = this._view == null || !this._view.IsVisible(); + if (!flag) + { + this._view.RefreshMoneyInfo(itemID, false); + } + } + + public void OnLoadWebViewConfig() + { + int num = int.Parse(XSingleton.singleton.GetValue("HideWebView")); + bool flag = num == 1; + if (!flag) + { + string openID = XSingleton.singleton.OpenID; + uint serverID = XSingleton.singleton.ServerID; + RuntimePlatform platform = Application.platform; + string text; + if ((int)platform != 8) + { + if ((int)platform != 11) + { + text = "2"; + } + else + { + text = "1"; + } + } + else + { + text = "0"; + } + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + string text2; + if (flag2) + { + text2 = "2"; + } + else + { + bool flag3 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag3) + { + text2 = "1"; + } + else + { + bool flag4 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_Guest; + if (flag4) + { + return; + } + text2 = "0"; + } + } + string text3 = string.Format(XSingleton.singleton.GetValue("WebviewGray"), new object[] + { + openID, + text2, + text, + serverID + }); + XSingleton.singleton.AddLog("Req url: ", text3, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.uiBehaviour.StartCoroutine(this.LoadWebViewConfig(text3)); + } + } + + protected bool OnVirtualItemChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool bBlockReceiver = this.VirtualItemEventBlocker.bBlockReceiver; + bool result; + if (bBlockReceiver) + { + this.VirtualItemEventBlocker.AddEvent(xvirtualItemChangedEventArgs.Clone() as XVirtualItemChangedEventArgs); + result = true; + } + else + { + DlgBase.singleton.TryRefresh(xvirtualItemChangedEventArgs.itemID); + bool flag = this._view == null || !this._view.IsVisible(); + if (flag) + { + result = false; + } + else + { + this._view.RefreshMoneyInfo(xvirtualItemChangedEventArgs.itemID, true); + result = true; + } + } + return result; + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + bool bBlockReceiver = this.AddItemEventBlocker.bBlockReceiver; + bool result; + if (bBlockReceiver) + { + this.AddItemEventBlocker.AddEvent(xaddItemEventArgs.Clone() as XAddItemEventArgs); + result = true; + } + else + { + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + DlgBase.singleton.TryRefresh(xaddItemEventArgs.items[i].itemID); + bool flag = this._view != null && this._view.IsVisible(); + if (flag) + { + this._view.RefreshMoneyInfo(xaddItemEventArgs.items[i].itemID, true); + } + } + result = true; + } + return result; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + bool bBlockReceiver = this.RemoveItemEventBlocker.bBlockReceiver; + bool result; + if (bBlockReceiver) + { + this.RemoveItemEventBlocker.AddEvent(xremoveItemEventArgs.Clone() as XRemoveItemEventArgs); + result = true; + } + else + { + DlgBase.singleton.TryRefresh(xremoveItemEventArgs.ids); + bool flag = this._view == null || !this._view.IsVisible(); + if (flag) + { + result = true; + } + else + { + for (int i = 0; i < xremoveItemEventArgs.ids.Count; i++) + { + this._view.RefreshMoneyInfo(xremoveItemEventArgs.ids[i], true); + } + result = true; + } + } + return result; + } + + protected bool OnItemNumChanged(XEventArgs args) + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool bBlockReceiver = this.ItemNumChangedEventBlocker.bBlockReceiver; + bool result; + if (bBlockReceiver) + { + this.ItemNumChangedEventBlocker.AddEvent(xitemNumChangedEventArgs.Clone() as XItemNumChangedEventArgs); + result = true; + } + else + { + DlgBase.singleton.TryRefresh(xitemNumChangedEventArgs.item.itemID); + bool flag = this._view == null || !this._view.IsVisible(); + if (flag) + { + result = true; + } + else + { + this._view.RefreshMoneyInfo(xitemNumChangedEventArgs.item.itemID, true); + result = true; + } + } + return result; + } + + public void Present() + { + this.OnTopUIRefreshed(null); + this._view.SetupBaseInfo(XSingleton.singleton.Player.Attributes); + DlgBase.singleton.InitPPT(); + this._view.InitRedPointsWhenShow(); + bool needTutorail = XSingleton.singleton.NeedTutorail; + if (needTutorail) + { + XSingleton.singleton.ReExecuteCurrentCmd(); + } + } + + public int GetPlayerPPT() + { + XPlayer player = XSingleton.singleton.Player; + XPlayerAttributes xplayerAttributes = player.Attributes as XPlayerAttributes; + return (int)xplayerAttributes.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + } + + public ulong GetPlayerGold() + { + return XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.GOLD); + } + + public ulong GetPlayerDC() + { + return XSingleton.singleton.Doc.XBagDoc.GetVirtualItemCount(ItemEnum.DRAGON_COIN); + } + + public void OnTopUIRefreshed(IXUIDlg dlg) + { + bool flag = dlg == null; + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + } + else + { + int[] titanBarItems = dlg.GetTitanBarItems(); + bool flag3 = titanBarItems != null; + if (flag3) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetTitanItems(titanBarItems); + } + else + { + bool hideMainMenu = dlg.hideMainMenu; + if (hideMainMenu) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetTitanItems((XSysDefine)dlg.sysid); + } + else + { + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetVisible(false, true); + } + } + } + } + } + + public void SetBlockItemsChange(bool bBlock) + { + this.VirtualItemEventBlocker.bBlockReceiver = bBlock; + this.AddItemEventBlocker.bBlockReceiver = bBlock; + this.RemoveItemEventBlocker.bBlockReceiver = bBlock; + this.ItemNumChangedEventBlocker.bBlockReceiver = bBlock; + } + + public void SetVoiceBtnAppear(uint type) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.OnVoiceBtnAppear(type); + } + } + + public bool OnPlayerLevelChange(XEventArgs arg) + { + DlgBase.singleton.OnSingleSysChange(XSysDefine.XSys_SystemAnnounce, true); + return true; + } + + public void OnHallIconNtfGet(HallIconPara data) + { + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "IconID: ", + data.systemid, + "\nHallIcon.state: ", + data.state + }), null, null, null, null, null); + bool flag = !XSingleton.singleton.IsSystemOpen(data.systemid); + if (!flag) + { + XSysDefine systemid = (XSysDefine)data.systemid; + if (systemid <= XSysDefine.XSys_Rank_WorldBoss) + { + if (systemid <= XSysDefine.XSys_GuildMine) + { + if (systemid == XSysDefine.XSys_Spectate) + { + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + specificDocument.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN, data.liveInfo); + return; + } + if (systemid == XSysDefine.XSys_GuildMine) + { + XGuildMineEntranceDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + specificDocument2.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + } + } + else + { + if (systemid == XSysDefine.XSys_CrossGVG) + { + XCrossGVGDocument specificDocument3 = XDocuments.GetSpecificDocument(XCrossGVGDocument.uuID); + specificDocument3.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + } + if (systemid == XSysDefine.XSys_Rank_WorldBoss) + { + XWorldBossDocument specificDocument4 = XDocuments.GetSpecificDocument(XWorldBossDocument.uuID); + specificDocument4.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + } + } + } + else if (systemid <= XSysDefine.XSys_MulActivity_SkyArenaEnd) + { + switch (systemid) + { + case XSysDefine.XSys_Activity_CaptainPVP: + { + XCaptainPVPDocument specificDocument5 = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + specificDocument5.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + } + case XSysDefine.XSys_Activity_GoddessTrial: + case XSysDefine.XSys_Activity_TeamTowerSingle: + break; + case XSysDefine.XSys_BigMelee: + { + XBigMeleeEntranceDocument specificDocument6 = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + specificDocument6.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + } + case XSysDefine.XSys_BigMeleeEnd: + { + XBigMeleeEntranceDocument specificDocument7 = XDocuments.GetSpecificDocument(XBigMeleeEntranceDocument.uuID); + specificDocument7.SetMainInterfaceBtnStateEnd(data.state == HallIconState.HICONS_BEGIN); + return; + } + case XSysDefine.XSys_Battlefield: + XBattleFieldEntranceDocument.Doc.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + default: + switch (systemid) + { + case XSysDefine.XSys_MulActivity_SkyArena: + XSkyArenaEntranceDocument.Doc.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + case XSysDefine.XSys_MulActivity_Race: + DlgBase.singleton.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + case XSysDefine.XSys_MulActivity_WeekendParty: + { + XWeekendPartyDocument specificDocument8 = XDocuments.GetSpecificDocument(XWeekendPartyDocument.uuID); + specificDocument8.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + } + case XSysDefine.XSys_MulActivity_SkyArenaEnd: + XSkyArenaEntranceDocument.Doc.SetMainInterfaceBtnStateEnd(data.state == HallIconState.HICONS_BEGIN); + return; + } + break; + } + } + else + { + if (systemid == XSysDefine.XSys_TeamLeague) + { + XFreeTeamVersusLeagueDocument specificDocument9 = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument9.SetMainInterfaceBtnState(data.state == HallIconState.HICONS_BEGIN); + return; + } + if (systemid == XSysDefine.XSys_GuildMineEnd) + { + XGuildMineEntranceDocument specificDocument10 = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + specificDocument10.SetMainInterfaceBtnStateEnd(data.state == HallIconState.HICONS_BEGIN); + return; + } + if (systemid == XSysDefine.XSys_GuildCollect) + { + XGuildCollectDocument specificDocument11 = XDocuments.GetSpecificDocument(XGuildCollectDocument.uuID); + bool flag2 = data.state == HallIconState.HICONS_BEGIN; + specificDocument11.SetMainInterfaceBtnState(flag2 && XSingleton.singleton.SceneType != SceneType.SCENE_GUILD_HALL); + return; + } + } + XSingleton.singleton.AddErrorLog("Undefine system id from HallIconNtf. system = ", ((XSysDefine)data.systemid).ToString(), null, null, null, null); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMainInterfaceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XMainInterfaceDocument.cs.meta new file mode 100644 index 00000000..c31ac68c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMainInterfaceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6fea9ae5a5dea74c828b43dba16a48e +timeCreated: 1611404885 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XManipulationComponent.cs b/Client/Assets/Scripts/XMainClient/XManipulationComponent.cs new file mode 100644 index 00000000..7369bd37 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XManipulationComponent.cs @@ -0,0 +1,96 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XManipulationComponent : XComponent + { + public override uint ID + { + get + { + return XManipulationComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XManipulation"); + + private Dictionary _item = new Dictionary(); + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Manipulation_On, new XComponent.XEventHandler(this.ManipulationOn)); + base.RegisterEvent(XEventDefine.XEvent_Manipulation_Off, new XComponent.XEventHandler(this.ManipulationOff)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnDetachFromHost() + { + this._item.Clear(); + base.OnDetachFromHost(); + } + + public override void Update(float fDeltaT) + { + bool flag = this._item.Count == 0; + if (!flag) + { + foreach (KeyValuePair keyValuePair in this._item) + { + XManipulationData value = keyValuePair.Value; + List list = value.TargetIsOpponent ? XSingleton.singleton.GetOpponent(this._entity) : XSingleton.singleton.GetAlly(this._entity); + Vector3 vector = this._entity.EngineObject.Position + this._entity.EngineObject.Rotation * new Vector3(value.OffsetX, 0f, value.OffsetZ); + for (int i = 0; i < list.Count; i++) + { + XEntity xentity = list[i]; + bool flag2 = !XEntity.ValideEntity(xentity); + if (!flag2) + { + Vector3 vector2 = vector - xentity.EngineObject.Position; + vector2.y = 0f; + float magnitude = vector2.magnitude; + bool flag3 = magnitude < value.Radius && (magnitude == 0f || Vector3.Angle(-vector2, this._entity.EngineObject.Forward) <= value.Degree * 0.5f); + if (flag3) + { + float num = value.Force * Time.deltaTime; + xentity.ApplyMove(vector2.normalized * Mathf.Min(magnitude, num)); + } + } + } + } + } + } + + private bool ManipulationOn(XEventArgs e) + { + XManipulationOnEventArgs xmanipulationOnEventArgs = e as XManipulationOnEventArgs; + bool flag = !this._item.ContainsKey(xmanipulationOnEventArgs.Token); + if (flag) + { + this._item.Add(xmanipulationOnEventArgs.Token, xmanipulationOnEventArgs.data); + } + return true; + } + + private bool ManipulationOff(XEventArgs e) + { + XManipulationOffEventArgs xmanipulationOffEventArgs = e as XManipulationOffEventArgs; + bool flag = xmanipulationOffEventArgs.DenyToken == 0L; + if (flag) + { + this._item.Clear(); + } + else + { + this._item.Remove(xmanipulationOffEventArgs.DenyToken); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XManipulationComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XManipulationComponent.cs.meta new file mode 100644 index 00000000..fb331bb2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XManipulationComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cf4203514c2bce4ca24ac4f974b1ec1 +timeCreated: 1611403504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XManipulationOffEventArgs.cs b/Client/Assets/Scripts/XMainClient/XManipulationOffEventArgs.cs new file mode 100644 index 00000000..1360019c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XManipulationOffEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XManipulationOffEventArgs : XEventArgs + { + public long DenyToken = 0L; + + public XManipulationOffEventArgs() + { + this._eDefine = XEventDefine.XEvent_Manipulation_Off; + } + + public override void Recycle() + { + base.Recycle(); + this.DenyToken = 0L; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XManipulationOffEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XManipulationOffEventArgs.cs.meta new file mode 100644 index 00000000..536b1efb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XManipulationOffEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3715de7e6485e3843bde3a555a510b27 +timeCreated: 1611403564 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XManipulationOnEventArgs.cs b/Client/Assets/Scripts/XMainClient/XManipulationOnEventArgs.cs new file mode 100644 index 00000000..e1ba3153 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XManipulationOnEventArgs.cs @@ -0,0 +1,22 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XManipulationOnEventArgs : XEventArgs + { + public XManipulationData data = null; + + public XManipulationOnEventArgs() + { + this._eDefine = XEventDefine.XEvent_Manipulation_On; + } + + public override void Recycle() + { + base.Recycle(); + this.data = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XManipulationOnEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XManipulationOnEventArgs.cs.meta new file mode 100644 index 00000000..a92bb97d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XManipulationOnEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 278312f03cfb914499972fb898687614 +timeCreated: 1611403471 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMentorRelationOpArgs.cs b/Client/Assets/Scripts/XMainClient/XMentorRelationOpArgs.cs new file mode 100644 index 00000000..c90f66f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMentorRelationOpArgs.cs @@ -0,0 +1,25 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XMentorRelationOpArgs : XEventArgs + { + public MentorRelationOpArg oArg; + + public MentorRelationOpRes oRes; + + public XMentorRelationOpArgs() + { + this._eDefine = XEventDefine.XEvent_MentorshipRelationOperation; + } + + public override void Recycle() + { + base.Recycle(); + this.oArg = null; + this.oRes = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMentorRelationOpArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XMentorRelationOpArgs.cs.meta new file mode 100644 index 00000000..a0e09e8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMentorRelationOpArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1b1fa1a6668de4a42a5eb1f0830b6799 +timeCreated: 1611403314 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMentorshipDocument.cs b/Client/Assets/Scripts/XMainClient/XMentorshipDocument.cs new file mode 100644 index 00000000..1eacfc2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMentorshipDocument.cs @@ -0,0 +1,1742 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMentorshipDocument : XDocComponent + { + public override uint ID + { + get + { + return XMentorshipDocument.uuID; + } + } + + public static XMentorshipDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XMentorshipDocument.uuID) as XMentorshipDocument; + } + } + + public bool HasRedPointOnTasks + { + get + { + return this._hasRedPointOnTasks; + } + set + { + this._hasRedPointOnTasks = value; + this._gettedData = false; + DlgBase.singleton.SetRedPoint(TabIndex.Mentorship, this.IsHasRedDot()); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + } + } + + public bool LeaveFootprint { get; set; } + + public string MentorshipApplyWords + { + get + { + return this._mentorshipApplyWords; + } + set + { + this._mentorshipApplyWords = value; + } + } + + public bool TipIconHasRedPoint + { + get + { + return this._tipIconHasRedPoint; + } + } + + public bool HasApplyMsg + { + get + { + return this._hasApplyMsg; + } + } + + public static MentorCompleteRewardTable MentorCompleteReward + { + get + { + return XMentorshipDocument._mentorCompleteReward; + } + set + { + XMentorshipDocument._mentorCompleteReward = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MentorshipDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static MentorCompleteRewardTable _mentorCompleteReward = new MentorCompleteRewardTable(); + + private static MentorTaskTable _mentorTaskTable = new MentorTaskTable(); + + public readonly int MaxRelationCount = 2; + + private bool _gettedData = false; + + private MyMentorship _myMentorship = MyMentorship.None; + + private List _relationList = new List(); + + private List _myMentorshipTaskList = new List(); + + private PupilApplyInfo _pupilApplyInfo = new PupilApplyInfo(); + + private List _masterApplyInfoList = new List(); + + private List _beenApplyedInfoList = new List(); + + private MessageShowInfoItem _tempShowInfo = new MessageShowInfoItem(); + + public CandidatesViewType CurViewType = CandidatesViewType.None; + + public CandidatesViewRecommendType CurRecommendType = CandidatesViewRecommendType.None; + + private string _mentorshipApplyWords = string.Empty; + + public int ReceiveingProtocolTime = 0; + + public ulong ClickedMainSceneRoleID = 0UL; + + public MentorApplyStatus ClickedRoleMentorshipStatus; + + private bool _hasRedPointOnTasks = false; + + private bool _tipIconHasRedPoint; + + private bool _hasApplyMsg; + + private int timeForReceive; + + private int _myApplyPupilRefreshTime = 0; + + private int _myApplyMasterRefreshTime = 0; + + private uint _countDownTimerID = 0u; + + public static void Execute(OnLoadedCallback callback = null) + { + XMentorshipDocument.AsyncLoader.AddTask("Table/MentorCompleteReward", XMentorshipDocument._mentorCompleteReward, false); + XMentorshipDocument.AsyncLoader.AddTask("Table/MentorTask", XMentorshipDocument._mentorTaskTable, false); + XMentorshipDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._gettedData = false; + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public MentorTaskTable.RowData GetTableTaskInfoByTaskID(uint taskID) + { + return XMentorshipDocument._mentorTaskTable.GetByTaskID(taskID); + } + + public MyMentorship GetMyMentorShip() + { + return this._myMentorship; + } + + public void OnRecordExplanationStart() + { + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.MENTORHIP, null); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.MENTORHIP, null); + } + } + + public void SendMentorshipInfoReq() + { + RpcC2M_GetMyMentorInfo rpc = new RpcC2M_GetMyMentorInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetMyMentorInfo(GetMyMentorInfoRes ores) + { + this._gettedData = true; + this._myMentorship = MyMentorship.None; + this.ReceiveingProtocolTime = ores.curTime - (int)Time.time; + this.timeForReceive = (int)Time.time; + this._mentorshipApplyWords = ores.mentorWords; + this.LeaveFootprint = ores.isNeedStudent; + bool flag = ores.mentorRelationList.Count > 0; + if (flag) + { + EMentorRelationPosition pos = (EMentorRelationPosition)ores.mentorRelationList[0].pos; + bool flag2 = pos == EMentorRelationPosition.EMentorPosMaster; + if (flag2) + { + this._myMentorship = MyMentorship.Mentorship_Pupil; + } + else + { + bool flag3 = pos == EMentorRelationPosition.EMentorPosStudent; + if (flag3) + { + this._myMentorship = MyMentorship.Mentorship_Master; + } + } + this._relationList.Clear(); + for (int i = 0; i < ores.mentorRelationList.Count; i++) + { + OneMentorRelationInfo2Client oneMentorRelationInfo2Client = ores.mentorRelationList[i]; + this._relationList.Add(new MentorRelationInfo + { + roleInfo = oneMentorRelationInfo2Client.roleInfo, + status = oneMentorRelationInfo2Client.curStatus, + inheritStatus = oneMentorRelationInfo2Client.inheritStatus, + inheritApplyRoleID = oneMentorRelationInfo2Client.inheritApplyRoleID, + breakApplyRoleID = oneMentorRelationInfo2Client.breakApplyRoleID + }); + List statusTimeList = this._relationList[i].statusTimeList; + for (int j = 0; j < oneMentorRelationInfo2Client.relationlist.Count; j++) + { + statusTimeList.Add(new MentorRelationTime + { + status = (MentorRelationStatus)oneMentorRelationInfo2Client.relationlist[j].status, + time = oneMentorRelationInfo2Client.relationlist[j].time + }); + } + List taskList = this._relationList[i].taskList; + this.AddTaskInfoUtil(oneMentorRelationInfo2Client.studentTaskList, taskList); + } + this._myMentorshipTaskList.Clear(); + bool flag4 = ores.mentorSelfInfo != null; + if (flag4) + { + this.AddTaskInfoUtil(ores.mentorSelfInfo.selfTaskList, this._myMentorshipTaskList); + } + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + XMentorshipPupilsHandler mentorshipHandler = DlgBase.singleton.MentorshipHandler; + bool flag6 = mentorshipHandler != null && mentorshipHandler.IsVisible(); + if (flag6) + { + mentorshipHandler.RefreshUI(); + } + } + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + XDramaDocument specificDocument = XDocuments.GetSpecificDocument(XDramaDocument.uuID); + XDramaOperate openedOperate = specificDocument.GetOpenedOperate(XSysDefine.XSys_Mentorship); + bool flag8 = openedOperate != null; + if (flag8) + { + XMentorshipPupilsDramaOperate xmentorshipPupilsDramaOperate = openedOperate as XMentorshipPupilsDramaOperate; + bool flag9 = xmentorshipPupilsDramaOperate != null; + if (flag9) + { + xmentorshipPupilsDramaOperate.RefreshOperateStatus(); + } + } + } + this.RefreshMainUIRedPoint(); + } + + public bool IsHasRedDot() + { + bool flag = XSingleton.singleton.XPlayerData == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !this._gettedData; + if (flag2) + { + result = this._hasRedPointOnTasks; + } + else + { + int i = 0; + int count = this._relationList.Count; + while (i < count) + { + bool oneRedStausByIndex = this.GetOneRedStausByIndex(i); + if (oneRedStausByIndex) + { + return true; + } + i++; + } + result = false; + } + } + return result; + } + + public bool GetOneRedStausByIndex(int mentorShipIndex) + { + bool flag = this._myMentorship == MyMentorship.Mentorship_Pupil; + if (flag) + { + MentorRelationInfo mentorRelationInfo = this._relationList[mentorShipIndex]; + bool flag2 = mentorRelationInfo.inheritStatus == EMentorTaskStatus.EMentorTask_AlreadyReport && mentorRelationInfo.inheritApplyRoleID != XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + return true; + } + bool flag3 = !this.IsAllReported(mentorRelationInfo.roleInfo.roleID); + if (flag3) + { + return true; + } + } + bool flag4 = this._myMentorship == MyMentorship.Mentorship_Master; + if (flag4) + { + MentorRelationInfo mentorRelationInfo2 = this._relationList[mentorShipIndex]; + bool flag5 = mentorRelationInfo2.inheritStatus == EMentorTaskStatus.EMentorTask_AlreadyReport && mentorRelationInfo2.inheritApplyRoleID != XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + return true; + } + bool flag6 = !this.IsAllAgreed(mentorRelationInfo2.roleInfo.roleID); + if (flag6) + { + return true; + } + } + return false; + } + + public ulong GetMentorShipInTime(ulong currentRoleID) + { + ulong result = 0UL; + MentorRelationInfo relationTargetInfoByRoleID = this.GetRelationTargetInfoByRoleID(currentRoleID); + bool flag = relationTargetInfoByRoleID != null; + if (flag) + { + for (int i = 0; i < relationTargetInfoByRoleID.statusTimeList.Count; i++) + { + bool flag2 = relationTargetInfoByRoleID.statusTimeList[i].status == MentorRelationStatus.MentorRelationIn; + if (flag2) + { + result = (ulong)relationTargetInfoByRoleID.statusTimeList[i].time; + break; + } + } + } + return result; + } + + public bool IsAllAgreed(ulong roleID) + { + List taskListWithRoleID = this.GetTaskListWithRoleID(roleID); + bool flag = taskListWithRoleID == null; + bool result; + if (flag) + { + result = true; + } + else + { + for (int i = 0; i < taskListWithRoleID.Count; i++) + { + List taskStatusList = taskListWithRoleID[i].taskStatusList; + for (int j = 0; j < taskStatusList.Count; j++) + { + bool flag2 = taskStatusList[j].status == 3u; + if (flag2) + { + return false; + } + } + } + result = true; + } + return result; + } + + public bool IsAllReported(ulong roleID) + { + ulong mentorShipInTime = this.GetMentorShipInTime(roleID); + for (int i = 0; i < this._myMentorshipTaskList.Count; i++) + { + List taskStatusList = this._myMentorshipTaskList[i].taskStatusList; + for (int j = 0; j < taskStatusList.Count; j++) + { + bool flag = taskStatusList[j].roleID == roleID && taskStatusList[j].status == 2u; + if (flag) + { + return false; + } + } + } + return true; + } + + public int GetRelationTargetsCount() + { + return this._relationList.Count; + } + + public MentorRelationInfo GetRelationTargetInfo(int index) + { + bool flag = index < this._relationList.Count; + MentorRelationInfo result; + if (flag) + { + result = this._relationList[index]; + } + else + { + result = null; + } + return result; + } + + public int GetRelationIndexByRoleID(ulong roleID) + { + int result = -1; + for (int i = 0; i < this._relationList.Count; i++) + { + bool flag = this._relationList[i].roleInfo.roleID == roleID; + if (flag) + { + result = i; + break; + } + } + return result; + } + + public MentorRelationInfo GetRelationTargetInfoByRoleID(ulong roleID) + { + for (int i = 0; i < this._relationList.Count; i++) + { + MentorRelationInfo mentorRelationInfo = this._relationList[i]; + bool flag = mentorRelationInfo.roleInfo.roleID == roleID; + if (flag) + { + return mentorRelationInfo; + } + } + return null; + } + + public MentorRelationInfo GetInheritStatusByRoleID(ulong roleID) + { + for (int i = 0; i < this._relationList.Count; i++) + { + bool flag = this._relationList[i].roleInfo.roleID == roleID; + if (flag) + { + return this._relationList[i]; + } + } + return null; + } + + public void SendToGetMyApplyPupilsInfo(bool refreh = false) + { + RpcC2M_GetMyApplyStudentInfo rpcC2M_GetMyApplyStudentInfo = new RpcC2M_GetMyApplyStudentInfo(); + rpcC2M_GetMyApplyStudentInfo.oArg.isRefresh = refreh; + XSingleton.singleton.Send(rpcC2M_GetMyApplyStudentInfo); + } + + public void OnGetMyApplyPupilsInfo(GetMyApplyStudentInfoRes oRes) + { + this._pupilApplyInfo.applyTargetInfoList.Clear(); + for (int i = 0; i < oRes.canApplyList.Count; i++) + { + OneMentorApplyStudentShow oneMentorApplyStudentShow = oRes.canApplyList[i]; + this._pupilApplyInfo.applyTargetInfoList.Add(new PupilTargetItemInfo + { + roleInfo = oRes.canApplyList[i].oneStudent, + isApplied = oRes.canApplyList[i].hasApply, + applyWords = oRes.canApplyList[i].applyWords + }); + } + this._myApplyPupilRefreshTime = oRes.leftRefreshTime; + this.StartCountDown(); + this.RefreshViewCD(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshUI(); + } + } + + public void SendToGetMyApplyMasterInfo(bool refresh = false) + { + RpcC2M_GetMyApplyMasterInfo rpcC2M_GetMyApplyMasterInfo = new RpcC2M_GetMyApplyMasterInfo(); + rpcC2M_GetMyApplyMasterInfo.oArg.isRefresh = refresh; + XSingleton.singleton.Send(rpcC2M_GetMyApplyMasterInfo); + } + + public void OnGetMyApplyMasterInfo(GetMyApplyMasterInfoRes oRes) + { + this._masterApplyInfoList.Clear(); + for (int i = 0; i < oRes.canApplyMasters.Count; i++) + { + OneMentorApplyMasterShow oneMentorApplyMasterShow = oRes.canApplyMasters[i]; + this._masterApplyInfoList.Add(new MasterApplyInfoItem + { + applyWords = oneMentorApplyMasterShow.applyWords, + hasApply = oneMentorApplyMasterShow.hasApply, + roleInfo = oneMentorApplyMasterShow.oneMaster + }); + } + this._myApplyMasterRefreshTime = oRes.leftRefreshTime; + this.StartCountDown(); + this.RefreshViewCD(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshUI(); + } + } + + public void SendCandidatesOpReq(EMentorMsgOpType opType, ulong roleID = 0UL, MentorMsgApplyType type = MentorMsgApplyType.MentorMsgApplyMax, int taskID = 0, bool isAll = false) + { + RpcC2M_MentorMyBeAppliedMsg rpcC2M_MentorMyBeAppliedMsg = new RpcC2M_MentorMyBeAppliedMsg(); + rpcC2M_MentorMyBeAppliedMsg.oArg.operation = opType; + rpcC2M_MentorMyBeAppliedMsg.oArg.msgType = type; + rpcC2M_MentorMyBeAppliedMsg.oArg.roleID = roleID; + rpcC2M_MentorMyBeAppliedMsg.oArg.taskID = taskID; + rpcC2M_MentorMyBeAppliedMsg.oArg.operatingAllTask = isAll; + XSingleton.singleton.Send(rpcC2M_MentorMyBeAppliedMsg); + } + + public void OnGetMyBeenApplyedMsg(MentorMyBeAppliedMsgArg oArg, MentorMyBeAppliedMsgRes oRes) + { + bool flag = oArg.operation != EMentorMsgOpType.EMentorMsgOp_Get; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("OperateSuccess"), "fece00"); + } + switch (oArg.operation) + { + case EMentorMsgOpType.EMentorMsgOp_Get: + { + bool flag2 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag2) + { + this._beenApplyedInfoList.Clear(); + for (int i = 0; i < oRes.msgList.Count; i++) + { + OneMentorBeAppliedMsg oneMentorBeAppliedMsg = oRes.msgList[i]; + this._beenApplyedInfoList.Add(new MentorBeenApplyedInfo + { + applyType = oneMentorBeAppliedMsg.type, + time = oneMentorBeAppliedMsg.time, + reportTaskID = oneMentorBeAppliedMsg.reportTaskID, + roleInfo = oneMentorBeAppliedMsg.roleBrief + }); + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshUI(); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshUI(); + } + this.RefreshMsgMainSceneIcon(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + break; + } + case EMentorMsgOpType.EMentorMsgOpType_Clear: + { + bool flag5 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag5) + { + this.RemoveApplyNewsButInheritReport(oArg); + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.RefreshUI(); + } + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + DlgBase.singleton.RefreshUI(); + } + this.RefreshMsgMainSceneIcon(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + break; + } + case EMentorMsgOpType.EMentorMsgOpType_Agree: + { + bool flag8 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag8) + { + bool flag9 = oArg.msgType == MentorMsgApplyType.MentorMsgApplyInherit; + if (flag9) + { + for (int j = 0; j < this._relationList.Count; j++) + { + MentorRelationInfo mentorRelationInfo = this._relationList[j]; + bool flag10 = mentorRelationInfo.roleInfo.roleID == oArg.roleID; + if (flag10) + { + mentorRelationInfo.inheritStatus = EMentorTaskStatus.EMentorTask_ConfirmReport; + bool flag11 = DlgBase.singleton.IsVisible(); + if (flag11) + { + XMentorshipPupilsHandler mentorshipHandler = DlgBase.singleton.MentorshipHandler; + bool flag12 = mentorshipHandler != null && mentorshipHandler.IsVisible(); + if (flag12) + { + mentorshipHandler.UpdateInheritTaskItem(); + } + } + this.RefreshMainUIRedPoint(); + break; + } + } + } + else + { + bool flag13 = oArg.msgType == MentorMsgApplyType.MentorMsgApplyReportTask; + if (flag13) + { + List taskListWithRoleID = this.GetTaskListWithRoleID(oArg.roleID); + bool flag14 = taskListWithRoleID != null; + if (flag14) + { + for (int k = 0; k < taskListWithRoleID.Count; k++) + { + MentorshipTaskInfo mentorshipTaskInfo = taskListWithRoleID[k]; + bool flag15 = mentorshipTaskInfo.taskID == oArg.taskID; + if (flag15) + { + List taskStatusList = mentorshipTaskInfo.taskStatusList; + bool flag16 = false; + for (int l = 0; l < taskStatusList.Count; l++) + { + bool flag17 = taskStatusList[l].roleID == oArg.roleID; + if (flag17) + { + taskStatusList[l].status = 4u; + flag16 = true; + break; + } + } + bool flag18 = flag16; + if (flag18) + { + this.RefreshTaskItems(); + break; + } + } + } + } + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + bool flag19 = oArg.operatingAllTask && oArg.msgType == MentorMsgApplyType.MentorMsgApplyReportTask; + if (flag19) + { + for (int m = this._beenApplyedInfoList.Count - 1; m >= 0; m--) + { + bool flag20 = this._beenApplyedInfoList[m].applyType == MentorMsgApplyType.MentorMsgApplyReportTask; + if (flag20) + { + this._beenApplyedInfoList.RemoveAt(m); + } + } + } + else + { + for (int n = this._beenApplyedInfoList.Count - 1; n >= 0; n--) + { + bool flag21 = this._beenApplyedInfoList[n].roleInfo.roleID == oArg.roleID && oArg.msgType == this._beenApplyedInfoList[n].applyType; + if (flag21) + { + bool flag22 = oArg.msgType == MentorMsgApplyType.MentorMsgApplyMaster || oArg.msgType == MentorMsgApplyType.MentorMsgApplyStudent; + if (flag22) + { + this._beenApplyedInfoList.RemoveAt(n); + } + else + { + bool flag23 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag23) + { + bool flag24 = this._beenApplyedInfoList[n].applyType == MentorMsgApplyType.MentorMsgApplyReportTask && this._beenApplyedInfoList[n].reportTaskID == oArg.taskID; + if (flag24) + { + this._beenApplyedInfoList.RemoveAt(n); + } + else + { + bool flag25 = this._beenApplyedInfoList[n].applyType != MentorMsgApplyType.MentorMsgApplyReportTask; + if (flag25) + { + this._beenApplyedInfoList.RemoveAt(n); + } + } + } + } + } + } + } + this.RefreshMsgMainSceneIcon(); + this.RefreshRedPointWithoutData(); + bool flag26 = DlgBase.singleton.IsVisible(); + if (flag26) + { + DlgBase.singleton.RefreshUI(); + } + bool flag27 = DlgBase.singleton.IsVisible(); + if (flag27) + { + DlgBase.singleton.RefreshUI(); + } + break; + } + case EMentorMsgOpType.EMentorMsgOpType_Reject: + { + bool flag28 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag28) + { + for (int num = this._beenApplyedInfoList.Count - 1; num >= 0; num--) + { + bool flag29 = this._beenApplyedInfoList[num].roleInfo.roleID == oArg.roleID && this._beenApplyedInfoList[num].applyType == oArg.msgType; + if (flag29) + { + this._beenApplyedInfoList.RemoveAt(num); + } + } + this.RefreshMsgMainSceneIcon(); + bool flag30 = DlgBase.singleton.IsVisible(); + if (flag30) + { + DlgBase.singleton.RefreshUI(); + } + bool flag31 = DlgBase.singleton.IsVisible(); + if (flag31) + { + DlgBase.singleton.RefreshUI(); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + break; + } + } + } + + private void RefreshRedPointWithoutData() + { + this._hasRedPointOnTasks = false; + for (int i = 0; i < this._beenApplyedInfoList.Count; i++) + { + bool flag = this._beenApplyedInfoList[i].applyType == MentorMsgApplyType.MentorMsgApplyInherit || this._beenApplyedInfoList[i].applyType == MentorMsgApplyType.MentorMsgApplyReportTask; + if (flag) + { + this._hasRedPointOnTasks = true; + } + } + this.RefreshMainUIRedPoint(); + } + + private void RefreshMainUIRedPoint() + { + this._hasRedPointOnTasks = this.IsHasRedDot(); + DlgBase.singleton.SetRedPoint(TabIndex.Mentorship, this._hasRedPointOnTasks); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.UpdateRedpointUI(); + } + } + + private void RefreshMsgMainSceneIcon() + { + bool flag = this._beenApplyedInfoList.Count == 0; + if (flag) + { + this._hasApplyMsg = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_MentorshipMsg_Tip, true); + } + } + + private void RemoveApplyNewsButInheritReport(MentorMyBeAppliedMsgArg oArg) + { + for (int i = this._beenApplyedInfoList.Count - 1; i >= 0; i--) + { + bool flag = this._beenApplyedInfoList[i].applyType == MentorMsgApplyType.MentorMsgApplyStudent || this._beenApplyedInfoList[i].applyType == MentorMsgApplyType.MentorMsgApplyMaster; + if (flag) + { + this._beenApplyedInfoList.RemoveAt(i); + } + } + } + + public MentorBeenApplyedInfo GetMentorshipCandidateInfoByIndex(int index) + { + bool flag = index < this._beenApplyedInfoList.Count; + MentorBeenApplyedInfo result; + if (flag) + { + result = this._beenApplyedInfoList[index]; + } + else + { + result = null; + } + return result; + } + + private void AddTaskInfoUtil(List src, List des) + { + for (int i = 0; i < src.Count; i++) + { + OneMentorTaskInfo oneMentorTaskInfo = src[i]; + MentorshipTaskInfo mentorshipTaskInfo = new MentorshipTaskInfo + { + taskID = oneMentorTaskInfo.taskID, + completeProgress = oneMentorTaskInfo.completeProgress, + completeTime = oneMentorTaskInfo.completeTime + }; + List taskStatusList = mentorshipTaskInfo.taskStatusList; + for (int j = 0; j < oneMentorTaskInfo.taskApplyStatus.Count; j++) + { + taskStatusList.Add(new MentorshipTaskStatus + { + roleID = oneMentorTaskInfo.taskApplyStatus[j].key, + status = oneMentorTaskInfo.taskApplyStatus[j].value + }); + } + des.Add(mentorshipTaskInfo); + bool flag = this._myMentorship == MyMentorship.Mentorship_Pupil && des == this._myMentorshipTaskList; + if (flag) + { + for (int k = 0; k < this._relationList.Count; k++) + { + bool flag2 = false; + ulong num = 0UL; + for (int l = 0; l < taskStatusList.Count; l++) + { + bool flag3 = this._relationList[k].roleInfo.roleID == taskStatusList[l].roleID; + if (flag3) + { + flag2 = true; + break; + } + } + bool flag4 = !flag2; + if (flag4) + { + for (int m = 0; m < this._relationList[k].statusTimeList.Count; m++) + { + bool flag5 = this._relationList[k].statusTimeList[m].status == MentorRelationStatus.MentorRelationIn; + if (flag5) + { + num = (ulong)this._relationList[k].statusTimeList[m].time; + break; + } + } + bool flag6 = mentorshipTaskInfo.completeTime != 0; + if (flag6) + { + bool flag7 = (long)mentorshipTaskInfo.completeTime < (long)num; + if (flag7) + { + taskStatusList.Add(new MentorshipTaskStatus + { + roleID = this._relationList[k].roleInfo.roleID, + status = 5u + }); + } + else + { + taskStatusList.Add(new MentorshipTaskStatus + { + roleID = this._relationList[k].roleInfo.roleID, + status = 2u + }); + } + } + } + } + } + } + } + + public MessageShowInfoItem GetCandidateMsgShowInfo(int index) + { + bool flag = this.CurViewType == CandidatesViewType.Application; + if (flag) + { + while (index < this._beenApplyedInfoList.Count) + { + MentorBeenApplyedInfo mentorshipCandidateInfoByIndex = this.GetMentorshipCandidateInfoByIndex(index); + bool flag2 = mentorshipCandidateInfoByIndex != null && mentorshipCandidateInfoByIndex.applyType != MentorMsgApplyType.MentorMsgApplyInherit && mentorshipCandidateInfoByIndex.applyType != MentorMsgApplyType.MentorMsgApplyReportTask; + if (flag2) + { + this._tempShowInfo.taskID = mentorshipCandidateInfoByIndex.reportTaskID; + this._tempShowInfo.roleInfo = mentorshipCandidateInfoByIndex.roleInfo; + this._tempShowInfo.msgType = mentorshipCandidateInfoByIndex.applyType; + this._tempShowInfo.audioTime = mentorshipCandidateInfoByIndex.audioTime; + this._tempShowInfo.audioID = mentorshipCandidateInfoByIndex.audioID; + this._tempShowInfo.promiseWords = mentorshipCandidateInfoByIndex.applyWords; + return this._tempShowInfo; + } + index++; + } + } + else + { + bool flag3 = this.CurViewType == CandidatesViewType.Recommend; + if (flag3) + { + bool flag4 = this.CurRecommendType == CandidatesViewRecommendType.Master; + if (flag4) + { + bool flag5 = index < this._masterApplyInfoList.Count; + if (flag5) + { + MasterApplyInfoItem masterApplyInfoItem = this._masterApplyInfoList[index]; + this._tempShowInfo.roleInfo = masterApplyInfoItem.roleInfo; + this._tempShowInfo.promiseWords = masterApplyInfoItem.applyWords; + this._tempShowInfo.applied = masterApplyInfoItem.hasApply; + return this._tempShowInfo; + } + } + else + { + bool flag6 = index < this._pupilApplyInfo.applyTargetInfoList.Count; + if (flag6) + { + this._tempShowInfo.roleInfo = this._pupilApplyInfo.applyTargetInfoList[index].roleInfo; + this._tempShowInfo.promiseWords = this._pupilApplyInfo.applyTargetInfoList[index].applyWords; + this._tempShowInfo.applied = this._pupilApplyInfo.applyTargetInfoList[index].isApplied; + return this._tempShowInfo; + } + } + } + } + return null; + } + + public int GetMyPupilTaskTotalNumber(ulong roleID) + { + List taskListWithRoleID = this.GetTaskListWithRoleID(roleID); + bool flag = taskListWithRoleID != null; + int result; + if (flag) + { + result = taskListWithRoleID.Count; + } + else + { + result = 0; + } + return result; + } + + public List GetTaskListWithRoleID(ulong roleID) + { + for (int i = 0; i < this._relationList.Count; i++) + { + bool flag = this._relationList[i].roleInfo.roleID == roleID; + if (flag) + { + return this._relationList[i].taskList; + } + } + return null; + } + + public int GetRelationPassedDays(ulong _currentRoleID, MentorRelationStatus status) + { + for (int i = 0; i < this._relationList.Count; i++) + { + bool flag = this._relationList[i].roleInfo.roleID == _currentRoleID; + if (flag) + { + uint num = 0u; + List statusTimeList = this._relationList[i].statusTimeList; + for (int j = 0; j < statusTimeList.Count; j++) + { + bool flag2 = statusTimeList[j].status == status; + if (flag2) + { + num = statusTimeList[j].time; + } + } + return TimeSpan.FromSeconds((double)((long)this.ReceiveingProtocolTime + (long)((ulong)((uint)Time.time)) - (long)((ulong)num))).Days; + } + } + return 0; + } + + public bool IsMentorshipInDaysEnough(ulong roleID) + { + int @int = XSingleton.singleton.GetInt("Mentor_NormalCompleteDay"); + int relationPassedDays = XMentorshipDocument.Doc.GetRelationPassedDays(roleID, MentorRelationStatus.MentorRelationIn); + bool flag = relationPassedDays >= @int; + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_MENTOR_COMPLETE_IN_RELATION_NEED_DAYS"), "fece00"); + result = false; + } + return result; + } + + public bool IsCompletedTaskEnough(ulong roleID) + { + int completedTaskCount = XMentorshipDocument.Doc.GetCompletedTaskCount(roleID); + int @int = XSingleton.singleton.GetInt("Mentor_NormalComplete"); + bool flag = completedTaskCount >= @int; + bool result; + if (flag) + { + result = true; + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_MENTOR_COMPLETE_IN_RELATION_NEED_DAYS"), "fece00"); + result = false; + } + return result; + } + + public MentorshipTaskInfo GetTaskInfoWithIndexAndRoleID(int index, ulong roleID) + { + List taskListWithRoleID = this.GetTaskListWithRoleID(roleID); + bool flag = taskListWithRoleID != null && index < taskListWithRoleID.Count; + MentorshipTaskInfo result; + if (flag) + { + result = taskListWithRoleID[index]; + } + else + { + result = null; + } + return result; + } + + public int GetCanidatesShowMsgCount() + { + bool flag = this.CurViewType == CandidatesViewType.Application; + int result; + if (flag) + { + int num = 0; + for (int i = 0; i < this._beenApplyedInfoList.Count; i++) + { + bool flag2 = this._beenApplyedInfoList[i].applyType != MentorMsgApplyType.MentorMsgApplyReportTask && this._beenApplyedInfoList[i].applyType != MentorMsgApplyType.MentorMsgApplyInherit; + if (flag2) + { + num++; + } + } + result = num; + } + else + { + bool flag3 = this.CurViewType == CandidatesViewType.Recommend; + if (flag3) + { + bool flag4 = this.CurRecommendType == CandidatesViewRecommendType.Master; + if (flag4) + { + result = this._masterApplyInfoList.Count; + } + else + { + result = this._pupilApplyInfo.applyTargetInfoList.Count; + } + } + else + { + result = 0; + } + } + return result; + } + + public int GetBeenApplyMsgCount() + { + return this._beenApplyedInfoList.Count; + } + + public int GetBeenApplyReportsMsgCount() + { + int num = 0; + for (int i = 0; i < this._beenApplyedInfoList.Count; i++) + { + bool flag = this._beenApplyedInfoList[i].applyType == MentorMsgApplyType.MentorMsgApplyReportTask; + if (flag) + { + num++; + } + } + return num; + } + + public MentorBeenApplyedInfo GetBeenApplyInfoByIndex(int index) + { + bool flag = index < this._beenApplyedInfoList.Count; + MentorBeenApplyedInfo result; + if (flag) + { + result = this._beenApplyedInfoList[index]; + } + else + { + result = null; + } + return result; + } + + public int GetMyMentorshipTaskCount() + { + return this._myMentorshipTaskList.Count; + } + + public MentorshipTaskInfo GetMyMentorshipTaskInfoByIndex(int index) + { + bool flag = index < this._myMentorshipTaskList.Count; + MentorshipTaskInfo result; + if (flag) + { + result = this._myMentorshipTaskList[index]; + } + else + { + result = null; + } + return result; + } + + public MessageShowInfoItem GetApplicationViewMsgInfoByIndex(int index) + { + bool flag = index < this._myMentorshipTaskList.Count; + MessageShowInfoItem result; + if (flag) + { + MentorshipTaskInfo mentorshipTaskInfo = this._myMentorshipTaskList[index]; + result = this._tempShowInfo; + } + else + { + index -= this._myMentorshipTaskList.Count; + bool flag2 = index < this._beenApplyedInfoList.Count; + if (flag2) + { + result = this._tempShowInfo; + } + else + { + result = null; + } + } + return result; + } + + public void SetCandidatesViewVisible(CandidatesViewType viewType, CandidatesViewRecommendType recommendType = CandidatesViewRecommendType.None) + { + this.CurViewType = viewType; + this.CurRecommendType = recommendType; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + + public void ResetCandidatesView() + { + this.CurViewType = CandidatesViewType.None; + this.CurRecommendType = CandidatesViewRecommendType.None; + } + + public void SendMentorRelationOp(MentorRelationOpType opType, ulong roleID, int taskID = 0) + { + RpcC2M_MentorRelationOp rpcC2M_MentorRelationOp = new RpcC2M_MentorRelationOp(); + rpcC2M_MentorRelationOp.oArg.destRoleID = roleID; + rpcC2M_MentorRelationOp.oArg.operation = opType; + rpcC2M_MentorRelationOp.oArg.reportTaskID = taskID; + XSingleton.singleton.Send(rpcC2M_MentorRelationOp); + } + + public void OnGetMentorshipOpReply(MentorRelationOpArg oArg, MentorRelationOpRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_FAILED; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + bool flag2 = oRes.error == ErrorCode.ERR_MENTOR_ASKMAXTODAY; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + switch (oArg.operation) + { + case MentorRelationOpType.MentorRelationOp_ApplyMaster: + { + int num = -1; + for (int i = 0; i < this._masterApplyInfoList.Count; i++) + { + bool flag3 = this._masterApplyInfoList[i].roleInfo.roleID == oArg.destRoleID; + if (flag3) + { + num = i; + break; + } + } + bool flag4 = num >= 0; + if (flag4) + { + bool flag5 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag5) + { + this._masterApplyInfoList[num].hasApply = true; + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.RefreshAllVisible(); + } + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("SendMessageSuccess"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + this._masterApplyInfoList.RemoveAt(num); + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + DlgBase.singleton.RefreshUI(); + } + } + } + break; + } + case MentorRelationOpType.MentorRelationOp_ApplyStudent: + { + int num2 = -1; + for (int j = 0; j < this._pupilApplyInfo.applyTargetInfoList.Count; j++) + { + PupilTargetItemInfo pupilTargetItemInfo = this._pupilApplyInfo.applyTargetInfoList[j]; + bool flag8 = pupilTargetItemInfo.roleInfo.roleID == oArg.destRoleID; + if (flag8) + { + num2 = j; + break; + } + } + bool flag9 = num2 >= 0; + if (flag9) + { + bool flag10 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag10) + { + this._pupilApplyInfo.applyTargetInfoList[num2].isApplied = true; + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("SendMessageSuccess"), "fece00"); + bool flag11 = DlgBase.singleton.IsVisible(); + if (flag11) + { + DlgBase.singleton.RefreshAllVisible(); + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + this._pupilApplyInfo.applyTargetInfoList.RemoveAt(num2); + bool flag12 = DlgBase.singleton.IsVisible(); + if (flag12) + { + DlgBase.singleton.RefreshUI(); + } + } + } + break; + } + case MentorRelationOpType.MentorRelationOp_Inherit: + { + bool flag13 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag13) + { + for (int k = 0; k < this._relationList.Count; k++) + { + bool flag14 = this._relationList[k].roleInfo.roleID == oArg.destRoleID; + if (flag14) + { + this._relationList[k].inheritStatus = EMentorTaskStatus.EMentorTask_AlreadyReport; + this._relationList[k].inheritApplyRoleID = XSingleton.singleton.XPlayerData.RoleID; + bool flag15 = DlgBase.singleton.IsVisible(); + if (flag15) + { + XMentorshipPupilsHandler mentorshipHandler = DlgBase.singleton.MentorshipHandler; + bool flag16 = mentorshipHandler != null && mentorshipHandler.IsVisible(); + if (flag16) + { + mentorshipHandler.UpdateInheritTaskItem(); + } + } + break; + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + break; + } + case MentorRelationOpType.MentorRelationOp_ReportTask: + { + bool flag17 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag17) + { + List myMentorshipTaskList = this._myMentorshipTaskList; + foreach (MentorshipTaskInfo mentorshipTaskInfo in myMentorshipTaskList) + { + bool flag18 = mentorshipTaskInfo.taskID == oArg.reportTaskID; + if (flag18) + { + bool flag19 = false; + for (int l = 0; l < mentorshipTaskInfo.taskStatusList.Count; l++) + { + bool flag20 = mentorshipTaskInfo.taskStatusList[l].roleID == oArg.destRoleID; + if (flag20) + { + mentorshipTaskInfo.taskStatusList[l].status = (uint)XFastEnumIntEqualityComparer.ToInt(EMentorTaskStatus.EMentorTask_AlreadyReport); + flag19 = true; + } + } + bool flag21 = !flag19; + if (flag21) + { + mentorshipTaskInfo.taskStatusList.Add(new MentorshipTaskStatus + { + roleID = oArg.destRoleID, + status = (uint)XFastEnumIntEqualityComparer.ToInt(EMentorTaskStatus.EMentorTask_AlreadyReport) + }); + } + } + } + MentorRelationInfo relationTargetInfoByRoleID = this.GetRelationTargetInfoByRoleID(oArg.destRoleID); + bool flag22 = relationTargetInfoByRoleID != null; + if (flag22) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("ReportToTarget"), relationTargetInfoByRoleID.roleInfo.name), "fece00"); + } + this.RefreshTaskItems(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + break; + } + case MentorRelationOpType.MentorRelationOp_ReportAllTask: + { + bool flag23 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag23) + { + this.SendMentorshipInfoReq(); + } + else + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + break; + } + case MentorRelationOpType.MentorRelationOp_Break: + { + bool flag24 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag24) + { + for (int m = 0; m < this._relationList.Count; m++) + { + bool flag25 = this._relationList[m].roleInfo.roleID == oArg.destRoleID; + if (flag25) + { + this._relationList[m].status = MentorRelationStatus.MentorRelationBreak; + this._relationList[m].statusTimeList.Add(new MentorRelationTime + { + status = MentorRelationStatus.MentorRelationBreak, + time = (uint)oRes.curTime + }); + break; + } + } + } + this.FireMentorOperationEvent(oArg, oRes); + break; + } + case MentorRelationOpType.MentorRelationOp_BreakCancel: + case MentorRelationOpType.MentorRelationOp_NormalComplete: + case MentorRelationOpType.MentorRelationOp_ForceComplete: + { + bool flag26 = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag26) + { + for (int n = this._relationList.Count - 1; n >= 0; n--) + { + bool flag27 = this._relationList[n].roleInfo.roleID == oArg.destRoleID; + if (flag27) + { + this._relationList[n].status = MentorRelationStatus.MentorRelationIn; + List statusTimeList = this._relationList[n].statusTimeList; + for (int num3 = statusTimeList.Count - 1; num3 >= 0; num3--) + { + bool flag28 = statusTimeList[num3].status == MentorRelationStatus.MentorRelationBreak; + if (flag28) + { + statusTimeList.RemoveAt(num3); + } + } + break; + } + } + } + this.FireMentorOperationEvent(oArg, oRes); + break; + } + } + } + } + } + + public int GetCompletedTaskCount(ulong roleID) + { + int num = 0; + ulong mentorShipInTime = this.GetMentorShipInTime(roleID); + List taskList = this.GetTaskList(roleID); + bool flag = taskList != null; + if (flag) + { + for (int i = 0; i < taskList.Count; i++) + { + List taskStatusList = taskList[i].taskStatusList; + for (int j = 0; j < taskStatusList.Count; j++) + { + bool flag2 = taskStatusList[j].roleID == roleID && taskStatusList[j].status != 1u && taskStatusList[j].status != 2u && taskStatusList[j].status != 3u; + if (flag2) + { + num++; + } + } + } + } + return num; + } + + public int GetTotalTaskNum(ulong roleID) + { + List taskList = this.GetTaskList(roleID); + return (taskList != null) ? taskList.Count : 0; + } + + private List GetTaskList(ulong roleID) + { + List result = null; + bool flag = this._myMentorship == MyMentorship.Mentorship_Master; + if (flag) + { + for (int i = 0; i < this._relationList.Count; i++) + { + bool flag2 = this._relationList[i].roleInfo.roleID == roleID; + if (flag2) + { + result = this._relationList[i].taskList; + } + } + } + else + { + bool flag3 = this._myMentorship == MyMentorship.Mentorship_Pupil; + if (flag3) + { + result = this._myMentorshipTaskList; + } + } + return result; + } + + private void RefreshTaskItems() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XMentorshipPupilsHandler mentorshipHandler = DlgBase.singleton.MentorshipHandler; + bool flag2 = mentorshipHandler != null && mentorshipHandler.IsVisible(); + if (flag2) + { + mentorshipHandler.RefreshTaskItems(); + } + } + this.RefreshMainUIRedPoint(); + } + + public void SendUpdateMentorshopSetting(string words, bool isChecked) + { + RpcC2M_UpdateMentorApplyStudentInfo rpcC2M_UpdateMentorApplyStudentInfo = new RpcC2M_UpdateMentorApplyStudentInfo(); + rpcC2M_UpdateMentorApplyStudentInfo.oArg.applyWords = words; + rpcC2M_UpdateMentorApplyStudentInfo.oArg.isNeedStudent = !isChecked; + XSingleton.singleton.Send(rpcC2M_UpdateMentorApplyStudentInfo); + } + + public void OnGetMentorshipSetting(UpdateMentorApplyStudentInfoArg oArg, UpdateMentorApplyStudentInfoRes oRes) + { + this.MentorshipApplyWords = oArg.applyWords; + this.LeaveFootprint = oArg.isNeedStudent; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XMentorshipPupilsHandler mentorshipHandler = DlgBase.singleton.MentorshipHandler; + bool flag2 = mentorshipHandler != null && mentorshipHandler.IsVisible(); + if (flag2) + { + mentorshipHandler.OnSettingOk(); + } + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("MentorshipSettingOk"), "fece00"); + } + } + + public void SendGetOtherMentorStatus(ulong roleID) + { + RpcC2M_GetOtherMentorStatus rpcC2M_GetOtherMentorStatus = new RpcC2M_GetOtherMentorStatus(); + rpcC2M_GetOtherMentorStatus.oArg.roleid = roleID; + XSingleton.singleton.Send(rpcC2M_GetOtherMentorStatus); + } + + public void OnGetOtherMentorStatus(GetOtherMentorStatusArg oArg, GetOtherMentorStatusRes oRes) + { + bool flag = oArg.roleid == this.ClickedMainSceneRoleID; + if (flag) + { + this.ClickedRoleMentorshipStatus = oRes.status; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshBtns(); + } + } + } + + public void OnGetMentorshipNotify(PtcM2C_NotifyMentorApply roPtc) + { + EMentorRelationPosition pos = roPtc.Data.pos; + this._tipIconHasRedPoint = roPtc.Data.hasInheritOrReportTask; + this._hasApplyMsg = roPtc.Data.hasMsg; + List appliedBreakInfos = roPtc.Data.appliedBreakInfos; + bool flag = appliedBreakInfos.Count > 0; + if (flag) + { + MentorBreakApplyInfo mentorBreakApplyInfo = appliedBreakInfos[0]; + string arg = (mentorBreakApplyInfo.pos == EMentorRelationPosition.EMentorPosMaster) ? XSingleton.singleton.GetString("Master") : XSingleton.singleton.GetString("Pupil"); + string text = XSingleton.singleton.GetString("Break_Tell"); + text = string.Format(text, arg, mentorBreakApplyInfo.roleName, XSingleton.singleton.TimeDuarationFormatString(mentorBreakApplyInfo.breakTime, 5)); + XSingleton.singleton.ShowModalDialog(text, XStringDefineProxy.GetString("COMMON_OK")); + } + else + { + bool flag2 = pos != EMentorRelationPosition.EMentorPosMax && !this._hasApplyMsg; + if (flag2) + { + bool flag3 = roPtc.Data.pos == EMentorRelationPosition.EMentorPosStudent; + string @string; + string string2; + if (flag3) + { + @string = XSingleton.singleton.GetString("ToGetStudent"); + string2 = XSingleton.singleton.GetString("ToGetStudentTip"); + } + else + { + @string = XSingleton.singleton.GetString("ToGetTeacher"); + string2 = XSingleton.singleton.GetString("ToGetTeacherTip"); + } + XSingleton.singleton.ShowModalDialog(XSingleton.singleton.GetString("Mentorship"), string2, @string, XSingleton.singleton.GetString("TempNoNeed"), new ButtonClickEventHandler(this.ToOpenNews), new ButtonClickEventHandler(this.ToNoShowing), true, XTempTipDefine.OD_START, 50); + } + } + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_MentorshipMsg_Tip, true); + } + + private bool ToNoShowing(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + this.SendUpdateMentorshopSetting("", true); + return true; + } + + private bool ToOpenNews(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + bool flag = XMentorshipDocument.Doc.GetMyPossibleMentorship() == MyMentorship.Mentorship_Pupil; + if (flag) + { + XMentorshipDocument.Doc.SetCandidatesViewVisible(CandidatesViewType.Recommend, CandidatesViewRecommendType.Master); + XMentorshipDocument.Doc.SendToGetMyApplyMasterInfo(false); + } + else + { + XMentorshipDocument.Doc.SetCandidatesViewVisible(CandidatesViewType.Recommend, CandidatesViewRecommendType.Pupil); + XMentorshipDocument.Doc.SendToGetMyApplyPupilsInfo(false); + } + return true; + } + + public MyMentorship GetMyPossibleMentorship() + { + uint level = XSingleton.singleton.XPlayerData.Level; + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint sealType = specificDocument.GetSealType(); + LevelSealTypeTable.RowData levelSealType = XLevelSealDocument.GetLevelSealType(sealType); + bool flag = levelSealType == null; + MyMentorship result; + if (flag) + { + result = MyMentorship.Mentorship_Master; + } + else + { + bool flag2 = (ulong)level >= (ulong)((long)levelSealType.ApplyStudentLevel); + if (flag2) + { + result = MyMentorship.Mentorship_Master; + } + else + { + result = MyMentorship.Mentorship_Pupil; + } + } + return result; + } + + private void FireMentorOperationEvent(MentorRelationOpArg oArg, MentorRelationOpRes oRes) + { + XMentorRelationOpArgs @event = XEventPool.GetEvent(); + @event.oArg = oArg; + @event.oRes = oRes; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + private void StartCountDown() + { + bool flag = this._countDownTimerID > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._countDownTimerID); + } + this._countDownTimerID = XSingleton.singleton.SetTimerAccurate(1f, new XTimerMgr.AccurateElapsedEventHandler(this.TimerCD), null); + } + + private void TimerCD(object param, float delay) + { + bool flag = this._myApplyMasterRefreshTime > 0; + if (flag) + { + this._myApplyMasterRefreshTime--; + } + bool flag2 = this._myApplyPupilRefreshTime > 0; + if (flag2) + { + this._myApplyPupilRefreshTime--; + } + this.RefreshViewCD(); + bool flag3 = this._myApplyMasterRefreshTime <= 0 && this._myApplyPupilRefreshTime <= 0; + if (flag3) + { + XSingleton.singleton.KillTimer(this._countDownTimerID); + this._countDownTimerID = 0u; + } + else + { + this.StartCountDown(); + } + } + + private void RefreshViewCD() + { + bool flag = this.CurViewType == CandidatesViewType.Recommend && DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = this.CurRecommendType == CandidatesViewRecommendType.Master; + if (flag2) + { + DlgBase.singleton.RefreshCDTimeLabel(this._myApplyMasterRefreshTime); + } + else + { + DlgBase.singleton.RefreshCDTimeLabel(this._myApplyPupilRefreshTime); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMentorshipDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XMentorshipDocument.cs.meta new file mode 100644 index 00000000..9d97908a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMentorshipDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd53756834056dd4eb0a9958cf86a98b +timeCreated: 1611404451 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMentorshipLimitHandler.cs b/Client/Assets/Scripts/XMainClient/XMentorshipLimitHandler.cs new file mode 100644 index 00000000..d0988cb9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMentorshipLimitHandler.cs @@ -0,0 +1,40 @@ +using System; + +namespace XMainClient +{ + internal class XMentorshipLimitHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Home/FeastHandler"; + } + } + + protected override void Init() + { + base.Init(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMentorshipLimitHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XMentorshipLimitHandler.cs.meta new file mode 100644 index 00000000..8cb83bad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMentorshipLimitHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68ff539d7adfd76488760b9f59e019a3 +timeCreated: 1611403884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMentorshipPupilsHandler.cs b/Client/Assets/Scripts/XMainClient/XMentorshipPupilsHandler.cs new file mode 100644 index 00000000..6663ab5a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMentorshipPupilsHandler.cs @@ -0,0 +1,881 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMentorshipPupilsHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/TeacherPupil"; + } + } + + private IXUILabel _pupilCondition; + + private IXUILabel _masterCondition; + + private Transform _noMentorship; + + private Transform _hasMentorship; + + private Transform _setting; + + private Transform _pupilRewards; + + private Transform _gongKuTaskItemTrans; + + private IXUIScrollView _scrollView; + + private IXUIWrapContent _reportWrapContent; + + private IXUILabel _footPrintLabel; + + private IXUICheckBox _footPrintCheck; + + private IXUIInput _PromiseContentInput; + + private bool _isCancelRecord; + + private Vector2 _dragDistance; + + private ulong _currentRoleID = 0UL; + + private IXUIButton _reportBtn; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + base.OnShow(); + this._currentRoleID = 0UL; + XMentorshipDocument.Doc.SendMentorshipInfoReq(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this._currentRoleID = 0UL; + base.OnUnload(); + } + + public void RefreshUI() + { + MyMentorship myMentorShip = XMentorshipDocument.Doc.GetMyMentorShip(); + this.InitItemsShowOrNot(myMentorShip); + switch (myMentorShip) + { + case MyMentorship.None: + this.UpdateNoneRelationUI(); + break; + case MyMentorship.Mentorship_Pupil: + this.UpdatePupilUI(); + break; + case MyMentorship.Mentorship_Master: + this.UpdateMasterUI(); + break; + } + } + + public void OnSettingOk() + { + this._setting.gameObject.SetActive(false); + this.UpdateMentorshipPromise(); + } + + public void RefreshTaskItems() + { + this._reportWrapContent.RefreshAllVisibleContents(); + this.RefreshRelationRightViewByRoleID(); + this.RefreshRedPoint(); + } + + public void UpdateInheritTaskItem() + { + MentorRelationInfo relationTargetInfoByRoleID = XMentorshipDocument.Doc.GetRelationTargetInfoByRoleID(this._currentRoleID); + bool flag = relationTargetInfoByRoleID != null; + if (flag) + { + this.RefreshRedPoint(); + IXUIButton ixuibutton = this._gongKuTaskItemTrans.Find("Operation").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = this._currentRoleID; + IXUILabel ixuilabel = this._gongKuTaskItemTrans.Find("Operation/GetLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = this._gongKuTaskItemTrans.Find("Rewards").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = this._gongKuTaskItemTrans.Find("Rewards/Icon").GetComponent("XUISprite") as IXUISprite; + SeqList sequenceList = XSingleton.singleton.GetSequenceList("TeacherInheritRewards", true); + ixuilabel2.SetText((sequenceList[0, 1] == 0) ? "" : sequenceList[0, 1].ToString()); + ItemList.RowData itemConf = XBagDocument.GetItemConf(sequenceList[0, 0]); + ixuisprite.SetSprite(itemConf.ItemIcon1[0]); + Transform transform = this._gongKuTaskItemTrans.Find("Operation/RedPoint"); + transform.gameObject.SetActive(false); + ixuibutton.SetEnable(true, false); + EMentorTaskStatus inheritStatus = relationTargetInfoByRoleID.inheritStatus; + if (inheritStatus != EMentorTaskStatus.EMentorTask_CanReport) + { + if (inheritStatus != EMentorTaskStatus.EMentorTask_AlreadyReport) + { + ixuilabel.SetText(XSingleton.singleton.GetString("InheritFinishMentor")); + ixuibutton.SetEnable(false, false); + } + else + { + bool flag2 = relationTargetInfoByRoleID.inheritApplyRoleID != XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.GetString("ToAccept")); + transform.gameObject.SetActive(true); + } + else + { + ixuibutton.SetEnable(false, false); + ixuilabel.SetText(XSingleton.singleton.GetString("CHAT_SENT")); + } + } + } + else + { + ixuilabel.SetText(XSingleton.singleton.GetString("InheritMentor")); + } + } + } + + public void RefreshRedPoint() + { + int relationIndexByRoleID = XMentorshipDocument.Doc.GetRelationIndexByRoleID(this._currentRoleID); + bool flag = relationIndexByRoleID >= 0; + if (flag) + { + Transform transform = this._hasMentorship.Find("Pupil" + (relationIndexByRoleID + 1) + "/RedPoint"); + transform.gameObject.SetActive(XMentorshipDocument.Doc.GetOneRedStausByIndex(relationIndexByRoleID)); + bool flag2 = XMentorshipDocument.Doc.GetMyMentorShip() == MyMentorship.Mentorship_Pupil; + if (flag2) + { + bool active = !XMentorshipDocument.Doc.IsAllReported(this._currentRoleID); + this._reportBtn.gameObject.transform.Find("RedPoint").gameObject.SetActive(active); + } + } + } + + private void InitProperties() + { + this.InitStateTransProperties(); + this.InitNoMentorshipProperties(); + this.InitHasMentorShipProperties(); + this.InitSettingProperties(); + this.InitPupilRewardsProperties(); + } + + private void InitPupilRewardsProperties() + { + IXUIButton ixuibutton = this._pupilRewards.Find("Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosePupilRewards)); + } + + private bool OnClosePupilRewards(IXUIButton button) + { + this._pupilRewards.gameObject.SetActive(false); + return true; + } + + private void InitSettingProperties() + { + this._footPrintCheck = (this._setting.Find("CheckMentorship").GetComponent("XUICheckBox") as IXUICheckBox); + this._footPrintCheck.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnLeaveFootPrintToggle)); + IXUIButton ixuibutton = this._setting.Find("ok").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnConfirmSetting)); + IXUIButton ixuibutton2 = this._setting.Find("Close").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseSettingDialog)); + this._footPrintLabel = (this._footPrintCheck.gameObject.transform.Find("Mentorship").GetComponent("XUILabel") as IXUILabel); + this._PromiseContentInput = (this._setting.Find("PromiseContentBg").GetComponent("XUIInput") as IXUIInput); + } + + private bool OnConfirmSetting(IXUIButton button) + { + bool flag = (this._footPrintCheck.bChecked ^ !XMentorshipDocument.Doc.LeaveFootprint) || !this._PromiseContentInput.GetText().Equals(XMentorshipDocument.Doc.MentorshipApplyWords); + if (flag) + { + XMentorshipDocument.Doc.SendUpdateMentorshopSetting(this._PromiseContentInput.GetText(), this._footPrintCheck.bChecked); + } + else + { + this._setting.gameObject.SetActive(false); + } + return true; + } + + private void OnDragPressBtn(IXUIButton button, Vector2 delta) + { + this._dragDistance += delta; + this._isCancelRecord = (this._dragDistance.magnitude >= 100f); + } + + private bool OnCloseSettingDialog(IXUIButton button) + { + this._setting.gameObject.SetActive(false); + return true; + } + + private bool OnLeaveFootPrintToggle(IXUICheckBox iXUICheckBox) + { + XMentorshipDocument.Doc.LeaveFootprint = iXUICheckBox.bChecked; + return true; + } + + private void InitHasMentorShipProperties() + { + IXUIButton ixuibutton = this._hasMentorship.Find("MentorshipMall").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickMallBtn)); + IXUIButton ixuibutton2 = this._hasMentorship.Find("RewardsRules").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRewardsBtn)); + IXUIButton ixuibutton3 = this._hasMentorship.Find("PrivateChat").GetComponent("XUIButton") as IXUIButton; + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickPrivateChatBtn)); + this._reportBtn = (this._hasMentorship.Find("AllReport").GetComponent("XUIButton") as IXUIButton); + this._reportBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAllReportBtn)); + IXUIButton ixuibutton4 = this._hasMentorship.Find("AddMentorship/Add").GetComponent("XUIButton") as IXUIButton; + ixuibutton4.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickAddMentorShipBtn)); + IXUISprite ixuisprite = this._hasMentorship.Find("CurrentMentorInstruction/NextStep").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickNextStep)); + IXUISprite ixuisprite2 = this._noMentorship.Find("NextStep").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickNextStep)); + this._reportWrapContent = (this._hasMentorship.Find("MentorshipTask/ScrollPanel/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this._scrollView = (this._hasMentorship.Find("MentorshipTask/ScrollPanel").GetComponent("XUIScrollView") as IXUIScrollView); + this._reportWrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.ReportWrapContentInit)); + this._reportWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.ReportWrapContentUpdate)); + } + + private void ReportWrapContentUpdate(Transform itemTransform, int index) + { + MyMentorship myMentorShip = XMentorshipDocument.Doc.GetMyMentorShip(); + bool flag = myMentorShip == MyMentorship.Mentorship_Pupil; + MentorshipTaskInfo mentorshipTaskInfo; + if (flag) + { + mentorshipTaskInfo = XMentorshipDocument.Doc.GetMyMentorshipTaskInfoByIndex(index); + } + else + { + mentorshipTaskInfo = XMentorshipDocument.Doc.GetTaskInfoWithIndexAndRoleID(index, this._currentRoleID); + } + bool flag2 = mentorshipTaskInfo != null; + if (flag2) + { + MentorTaskTable.RowData tableTaskInfoByTaskID = XMentorshipDocument.Doc.GetTableTaskInfoByTaskID((uint)mentorshipTaskInfo.taskID); + bool flag3 = tableTaskInfoByTaskID != null; + if (flag3) + { + IXUILabel ixuilabel = itemTransform.Find("taskDes").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(tableTaskInfoByTaskID.TaskName); + IXUILabel ixuilabel2 = itemTransform.Find("Rewards").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = itemTransform.Find("Rewards/Icon").GetComponent("XUISprite") as IXUISprite; + bool flag4 = myMentorShip == MyMentorship.Mentorship_Master; + if (flag4) + { + bool flag5 = tableTaskInfoByTaskID.MasterReward.count > 0; + if (flag5) + { + ixuilabel2.SetText(tableTaskInfoByTaskID.MasterReward[0, 1].ToString()); + ItemList.RowData itemConf = XBagDocument.GetItemConf(tableTaskInfoByTaskID.MasterReward[0, 0]); + ixuisprite.SetSprite(itemConf.ItemIcon1[0]); + } + } + else + { + bool flag6 = tableTaskInfoByTaskID.StudentReward.count > 0; + if (flag6) + { + ixuilabel2.SetText(tableTaskInfoByTaskID.StudentReward[0, 1].ToString()); + ItemList.RowData itemConf2 = XBagDocument.GetItemConf(tableTaskInfoByTaskID.StudentReward[0, 0]); + ixuisprite.SetSprite(itemConf2.ItemIcon1[0]); + } + } + IXUILabel ixuilabel3 = itemTransform.Find("Progress").GetComponent("XUILabel") as IXUILabel; + ixuilabel3.gameObject.SetActive(false); + bool flag7 = tableTaskInfoByTaskID.TaskType == 3u || tableTaskInfoByTaskID.TaskType == 29u; + int num = flag7 ? 1 : tableTaskInfoByTaskID.TaskVar[1]; + int num2 = mentorshipTaskInfo.completeProgress; + bool flag8 = flag7; + if (flag8) + { + num2 = ((mentorshipTaskInfo.completeTime == 0) ? 0 : 1); + } + ixuilabel3.SetText(num2 + "/" + num); + IXUIButton ixuibutton = itemTransform.Find("Operation").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)mentorshipTaskInfo.taskID); + Transform transform = ixuibutton.gameObject.transform.Find("RedPoint"); + transform.gameObject.SetActive(false); + IXUILabel ixuilabel4 = ixuibutton.gameObject.transform.Find("GetLabel").GetComponent("XUILabel") as IXUILabel; + ixuibutton.gameObject.SetActive(true); + ixuibutton.SetEnable(true, false); + EMentorTaskStatus ementorTaskStatus = EMentorTaskStatus.EMentorTask_UnComplete; + for (int i = 0; i < mentorshipTaskInfo.taskStatusList.Count; i++) + { + MentorshipTaskStatus mentorshipTaskStatus = mentorshipTaskInfo.taskStatusList[i]; + bool flag9 = mentorshipTaskStatus.roleID == this._currentRoleID; + if (flag9) + { + ementorTaskStatus = (EMentorTaskStatus)mentorshipTaskStatus.status; + break; + } + } + bool flag10 = ementorTaskStatus == EMentorTaskStatus.EMentorTask_UnComplete; + if (flag10) + { + ixuibutton.gameObject.SetActive(false); + ixuilabel3.gameObject.SetActive(true); + } + else + { + bool flag11 = ementorTaskStatus == EMentorTaskStatus.EMentorTask_CanReport; + if (flag11) + { + bool flag12 = myMentorShip == MyMentorship.Mentorship_Pupil; + if (flag12) + { + transform.gameObject.SetActive(true); + ixuilabel4.SetText(XSingleton.singleton.GetString("Report")); + } + else + { + ixuibutton.gameObject.SetActive(false); + ixuilabel3.gameObject.SetActive(true); + } + } + else + { + bool flag13 = ementorTaskStatus == EMentorTaskStatus.EMentorTask_AlreadyReport; + if (flag13) + { + bool flag14 = myMentorShip == MyMentorship.Mentorship_Pupil; + if (flag14) + { + ixuilabel4.SetText(XSingleton.singleton.GetString("Reported")); + ixuibutton.SetEnable(false, false); + } + else + { + transform.gameObject.SetActive(true); + ixuilabel4.SetText(XSingleton.singleton.GetString("ToConfirm")); + } + } + else + { + ixuilabel4.SetText(XSingleton.singleton.GetString("Completed")); + ixuibutton.SetEnable(false, false); + } + } + } + } + } + } + + private void ReportWrapContentInit(Transform itemTransform, int index) + { + IXUIButton ixuibutton = itemTransform.Find("Operation").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickOperation)); + } + + private bool OnClickOperation(IXUIButton button) + { + MyMentorship myMentorShip = XMentorshipDocument.Doc.GetMyMentorShip(); + bool flag = myMentorShip == MyMentorship.Mentorship_Master; + if (flag) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Agree, this._currentRoleID, MentorMsgApplyType.MentorMsgApplyReportTask, (int)button.ID, false); + } + else + { + XMentorshipDocument.Doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_ReportTask, this._currentRoleID, (int)button.ID); + } + return true; + } + + private bool OnClickAllReportBtn(IXUIButton button) + { + bool flag = !XMentorshipDocument.Doc.IsAllReported(this._currentRoleID); + if (flag) + { + XMentorshipDocument.Doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_ReportAllTask, this._currentRoleID, 0); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CompleteTaskToReport"), "fece00"); + } + return true; + } + + private bool OnClickPrivateChatBtn(IXUIButton button) + { + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(this._currentRoleID); + bool flag = friendDataById != null; + if (flag) + { + ChatFriendData chatFriendData = new ChatFriendData(); + chatFriendData.name = friendDataById.name; + chatFriendData.roleid = friendDataById.roleid; + chatFriendData.powerpoint = friendDataById.powerpoint; + chatFriendData.profession = friendDataById.profession; + chatFriendData.viplevel = friendDataById.viplevel; + chatFriendData.isfriend = true; + chatFriendData.msgtime = DateTime.Now; + chatFriendData.setid = friendDataById.setid; + DlgBase.singleton.PrivateChatTo(chatFriendData); + } + return true; + } + + private void InitNoMentorshipProperties() + { + IXUIButton ixuibutton = this._noMentorship.Find("MentorshipMall").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickMallBtn)); + IXUIButton ixuibutton2 = this._noMentorship.Find("RewarsRules").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickRewardsBtn)); + IXUIButton ixuibutton3 = this._noMentorship.Find("Setting").GetComponent("XUIButton") as IXUIButton; + ixuibutton3.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSettingBtn)); + IXUIButton ixuibutton4 = this._noMentorship.Find("Bg/Pupil/PupilBg").GetComponent("XUIButton") as IXUIButton; + ixuibutton4.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnToGetPupils)); + IXUIButton ixuibutton5 = this._noMentorship.Find("Bg/Master/MasterBg").GetComponent("XUIButton") as IXUIButton; + ixuibutton5.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnToGetMaster)); + this._pupilCondition = (this._noMentorship.Find("Bg/Pupil/PupilCondition").GetComponent("XUILabel") as IXUILabel); + this._masterCondition = (this._noMentorship.Find("Bg/Master/MasterCondition").GetComponent("XUILabel") as IXUILabel); + } + + private bool OnToGetMaster(IXUIButton button) + { + bool flag = XMentorshipDocument.Doc.GetMyPossibleMentorship() == MyMentorship.Mentorship_Pupil; + if (flag) + { + XMentorshipDocument.Doc.SetCandidatesViewVisible(CandidatesViewType.Recommend, CandidatesViewRecommendType.Master); + XMentorshipDocument.Doc.SendToGetMyApplyMasterInfo(false); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CantApplyMaster"), "fece00"); + } + return true; + } + + private bool OnToGetPupils(IXUIButton button) + { + bool flag = XMentorshipDocument.Doc.GetMyPossibleMentorship() == MyMentorship.Mentorship_Master; + if (flag) + { + XMentorshipDocument.Doc.SetCandidatesViewVisible(CandidatesViewType.Recommend, CandidatesViewRecommendType.Pupil); + XMentorshipDocument.Doc.SendToGetMyApplyPupilsInfo(false); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("CantApplyPupil"), "fece00"); + } + return true; + } + + private bool OnClickSettingBtn(IXUIButton button) + { + this._setting.gameObject.SetActive(true); + return true; + } + + private bool OnClickRewardsBtn(IXUIButton button) + { + this._pupilRewards.gameObject.SetActive(true); + this.UpdatePupilRewardsDialog(); + return true; + } + + private void UpdatePupilRewardsDialog() + { + IXUILabel ixuilabel = this._pupilRewards.Find("Normal/Base").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("CompletMentorTask"), XSingleton.singleton.GetInt("Mentor_NormalComplete"), "<" + XSingleton.singleton.GetInt("Mentor_PerfectComplete"))); + IXUILabel ixuilabel2 = this._pupilRewards.Find("Perfect/More").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(string.Format(XSingleton.singleton.GetString("CompletMentorTask"), XSingleton.singleton.GetInt("Mentor_PerfectComplete"), "")); + MentorCompleteRewardTable mentorCompleteReward = XMentorshipDocument.MentorCompleteReward; + MentorCompleteRewardTable.RowData byType = mentorCompleteReward.GetByType(1); + SeqListRef seqListRef = (XMentorshipDocument.Doc.GetMyMentorShip() == MyMentorship.Mentorship_Master) ? byType.MasterReward : byType.StudentReward; + Transform transform = this._pupilRewards.Find("Normal/PupilRewards"); + Transform transform2 = this._pupilRewards.Find("Normal/MasterRewards"); + XSingleton.singleton.normalItemDrawer.DrawItem(transform.gameObject, seqListRef[0, 0], seqListRef[0, 1], false); + IXUISprite ixuisprite = transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)seqListRef[0, 0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + XSingleton.singleton.normalItemDrawer.DrawItem(transform2.gameObject, seqListRef[1, 0], seqListRef[1, 1], false); + IXUISprite ixuisprite2 = transform2.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)seqListRef[1, 0]); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + MentorCompleteRewardTable.RowData byType2 = mentorCompleteReward.GetByType(2); + seqListRef = ((XMentorshipDocument.Doc.GetMyMentorShip() == MyMentorship.Mentorship_Master) ? byType2.MasterReward : byType2.StudentReward); + Transform transform3 = this._pupilRewards.Find("Perfect/PupilRewards"); + Transform transform4 = this._pupilRewards.Find("Perfect/MasterRewards"); + XSingleton.singleton.normalItemDrawer.DrawItem(transform3.gameObject, seqListRef[0, 0], seqListRef[0, 1], false); + ixuisprite = (transform3.Find("Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite.ID = (ulong)((long)seqListRef[0, 0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + XSingleton.singleton.normalItemDrawer.DrawItem(transform4.gameObject, seqListRef[1, 0], seqListRef[1, 1], false); + ixuisprite2 = (transform4.Find("Icon").GetComponent("XUISprite") as IXUISprite); + ixuisprite2.ID = (ulong)((long)seqListRef[1, 0]); + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + private bool OnClickMallBtn(IXUIButton button) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Mentorship, 0UL); + return true; + } + + private bool OnClickApplyNewsBtn(IXUIButton button) + { + XMentorshipDocument.Doc.SetCandidatesViewVisible(CandidatesViewType.Application, CandidatesViewRecommendType.None); + return true; + } + + private void InitStateTransProperties() + { + this._noMentorship = base.transform.Find("NoMentorship"); + this._hasMentorship = base.transform.Find("HasMentorship"); + this._setting = base.transform.Find("ReName"); + this._pupilRewards = base.transform.Find("Pupilreward"); + this._gongKuTaskItemTrans = this._hasMentorship.Find("MentorshipTask/Gongku"); + this._noMentorship.gameObject.SetActive(true); + this._hasMentorship.gameObject.SetActive(true); + this._setting.gameObject.SetActive(true); + this._pupilRewards.gameObject.SetActive(true); + IXUIButton ixuibutton = this._gongKuTaskItemTrans.Find("Operation").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickToInherit)); + } + + private bool OnClickToInherit(IXUIButton button) + { + MentorRelationInfo relationTargetInfoByRoleID = XMentorshipDocument.Doc.GetRelationTargetInfoByRoleID(this._currentRoleID); + bool flag = relationTargetInfoByRoleID == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = relationTargetInfoByRoleID.inheritApplyRoleID == this._currentRoleID; + if (flag2) + { + XMentorshipDocument.Doc.SendCandidatesOpReq(EMentorMsgOpType.EMentorMsgOpType_Agree, this._currentRoleID, MentorMsgApplyType.MentorMsgApplyInherit, 0, false); + } + else + { + XMentorshipDocument.Doc.SendMentorRelationOp(MentorRelationOpType.MentorRelationOp_Inherit, this._currentRoleID, 0); + } + result = true; + } + return result; + } + + private void InitItemsShowOrNot(MyMentorship relation) + { + this._pupilRewards.gameObject.SetActive(false); + this._setting.gameObject.SetActive(false); + this._noMentorship.gameObject.SetActive(relation == MyMentorship.None); + this._hasMentorship.gameObject.SetActive(relation == MyMentorship.Mentorship_Pupil || relation == MyMentorship.Mentorship_Master); + this._PromiseContentInput.SetText(XMentorshipDocument.Doc.MentorshipApplyWords); + this._footPrintCheck.bChecked = !XMentorshipDocument.Doc.LeaveFootprint; + } + + private void UpdateMasterUI() + { + this.UpdateTargetsLeftUI(); + this.UpdateDefaultSelectRole(); + } + + private void UpdateMasterRightUI() + { + this._reportBtn.gameObject.SetActive(false); + int myPupilTaskTotalNumber = XMentorshipDocument.Doc.GetMyPupilTaskTotalNumber(this._currentRoleID); + this._reportWrapContent.SetContentCount(myPupilTaskTotalNumber, false); + this._scrollView.ResetPosition(); + this.UpdateInheritTaskItem(); + } + + private void UpdatePupilUI() + { + this.UpdateTargetsLeftUI(); + this.UpdateDefaultSelectRole(); + this.UpdatePupilRightUI(); + } + + private void UpdateDefaultSelectRole() + { + bool flag = this._currentRoleID == 0UL; + if (flag) + { + this.RefreshDefaultOneRelation(); + } + else + { + int relationIndexByRoleID = XMentorshipDocument.Doc.GetRelationIndexByRoleID(this._currentRoleID); + bool flag2 = relationIndexByRoleID >= 0; + if (flag2) + { + Transform transform = this._hasMentorship.Find("Pupil" + (relationIndexByRoleID + 1)); + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + bool bChecked = ixuicheckBox.bChecked; + if (bChecked) + { + this.OnToggleRelationTarget(ixuicheckBox); + } + else + { + ixuicheckBox.ForceSetFlag(true); + } + } + else + { + this.RefreshDefaultOneRelation(); + } + } + } + + private void RefreshDefaultOneRelation() + { + int relationTargetsCount = XMentorshipDocument.Doc.GetRelationTargetsCount(); + bool flag = relationTargetsCount <= 0; + if (!flag) + { + this._currentRoleID = XMentorshipDocument.Doc.GetRelationTargetInfo(0).roleInfo.roleID; + Transform transform = this._hasMentorship.Find("Pupil1"); + IXUICheckBox ixuicheckBox = transform.GetComponent("XUICheckBox") as IXUICheckBox; + bool bChecked = ixuicheckBox.bChecked; + if (bChecked) + { + this.OnToggleRelationTarget(ixuicheckBox); + } + else + { + ixuicheckBox.ForceSetFlag(true); + } + } + } + + private void UpdatePupilRightUI() + { + this._reportBtn.gameObject.SetActive(true); + int myMentorshipTaskCount = XMentorshipDocument.Doc.GetMyMentorshipTaskCount(); + this._reportWrapContent.SetContentCount(myMentorshipTaskCount, false); + this._scrollView.ResetPosition(); + this.UpdateInheritTaskItem(); + } + + private void UpdateTargetsLeftUI() + { + this.UpdateMentorshipPromise(); + int relationTargetsCount = XMentorshipDocument.Doc.GetRelationTargetsCount(); + bool flag = relationTargetsCount <= 0; + if (!flag) + { + Transform item = this._hasMentorship.Find("Pupil1"); + this.UpdatePupilsItem(item, XMentorshipDocument.Doc.GetRelationTargetInfo(0).roleInfo); + Transform transform = this._hasMentorship.Find("Pupil2"); + Transform transform2 = this._hasMentorship.Find("AddMentorship"); + bool flag2 = relationTargetsCount > 1; + if (flag2) + { + transform.gameObject.SetActive(true); + transform2.gameObject.SetActive(false); + this.UpdatePupilsItem(transform, XMentorshipDocument.Doc.GetRelationTargetInfo(1).roleInfo); + } + else + { + transform2.gameObject.SetActive(true); + transform.gameObject.SetActive(false); + } + } + } + + private void UpdateMentorshipPromise() + { + Transform transform = this._hasMentorship.Find("MentorshipPromise"); + IXUILabel ixuilabel = transform.Find("title").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = transform.Find("Promise").GetComponent("XUILabel") as IXUILabel; + MyMentorship myMentorShip = XMentorshipDocument.Doc.GetMyMentorShip(); + bool flag = myMentorShip == MyMentorship.Mentorship_Pupil; + if (flag) + { + ixuilabel.SetText(XSingleton.singleton.GetString("MaterPromiseTitle")); + } + else + { + ixuilabel.SetText(XSingleton.singleton.GetString("PupilPromiseTitle")); + } + ixuilabel2.SetText(XMentorshipDocument.Doc.MentorshipApplyWords); + IXUIButton ixuibutton = transform.Find("Setting").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickSettingBtn)); + } + + private bool OnClickAddMentorShipBtn(IXUIButton button) + { + MyMentorship myMentorShip = XMentorshipDocument.Doc.GetMyMentorShip(); + bool flag = myMentorShip == MyMentorship.Mentorship_Master; + if (flag) + { + XMentorshipDocument.Doc.SetCandidatesViewVisible(CandidatesViewType.Recommend, CandidatesViewRecommendType.Pupil); + } + else + { + bool flag2 = myMentorShip == MyMentorship.Mentorship_Pupil; + if (flag2) + { + XMentorshipDocument.Doc.SetCandidatesViewVisible(CandidatesViewType.Recommend, CandidatesViewRecommendType.Master); + } + } + return true; + } + + private bool OnClickPlayVoiceBtn(IXUIButton button) + { + return true; + } + + private void OnStopSignPlay(object ob) + { + IXUISpriteAnimation ixuispriteAnimation = (IXUISpriteAnimation)ob; + bool flag = ixuispriteAnimation != null; + if (flag) + { + ixuispriteAnimation.SetFrameRate(0); + ixuispriteAnimation.Reset(); + } + } + + private void UpdatePupilsItem(Transform item, RoleBriefInfo info) + { + IXUILabel ixuilabel = item.Find("level").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(info.level.ToString()); + IXUISprite ixuisprite = item.Find("head/p").GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteName = ((XMentorshipDocument.Doc.GetMyMentorShip() == MyMentorship.Mentorship_Master) ? "bs_1" : "bs_0"); + IXUISprite ixuisprite2 = item.Find("head").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteName = XSingleton.singleton.GetProfHeadIcon2((int)((int)info.type % 10)); + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(info.roleID); + IXUILabelSymbol ixuilabelSymbol = item.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel2 = item.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = item.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.SetSprite(XSingleton.singleton.GetProfIcon((int)((int)info.type % 10))); + bool flag = friendDataById != null; + if (flag) + { + ixuilabel2.SetText(""); + ixuilabelSymbol.InputText = XSingleton.singleton.StringCombine(XTitleDocument.GetTitleWithFormat(friendDataById.titleID, friendDataById.name), XWelfareDocument.GetMemberPrivilegeIconString(friendDataById.paymemberid), XRechargeDocument.GetVIPIconString(friendDataById.viplevel)); + } + else + { + ixuilabelSymbol.InputText = ""; + ixuilabel2.SetText(info.name); + } + IXUICheckBox ixuicheckBox = item.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = info.roleID; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnToggleRelationTarget)); + Transform transform = item.Find("RedPoint"); + bool flag2 = XMentorshipDocument.Doc.GetMyMentorShip() == MyMentorship.Mentorship_Pupil; + if (flag2) + { + transform.gameObject.SetActive(!XMentorshipDocument.Doc.IsAllReported(info.roleID)); + } + else + { + transform.gameObject.SetActive(!XMentorshipDocument.Doc.IsAllAgreed(info.roleID)); + } + } + + private bool OnToggleRelationTarget(IXUICheckBox iXUICheckBox) + { + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this._currentRoleID = iXUICheckBox.ID; + bool flag = XMentorshipDocument.Doc.GetMyMentorShip() == MyMentorship.Mentorship_Master; + if (flag) + { + this.UpdateMasterRightUI(); + } + else + { + this.UpdatePupilRightUI(); + } + this.RefreshRelationRightViewByRoleID(); + this.RefreshRedPoint(); + } + return true; + } + + private void RefreshRelationRightViewByRoleID() + { + ulong currentRoleID = this._currentRoleID; + MyMentorship myMentorShip = XMentorshipDocument.Doc.GetMyMentorShip(); + bool flag = myMentorShip == MyMentorship.Mentorship_Master; + string @string; + if (flag) + { + @string = XSingleton.singleton.GetString("HasPupil"); + } + else + { + @string = XSingleton.singleton.GetString("HasMaster"); + } + int relationTargetsCount = XMentorshipDocument.Doc.GetRelationTargetsCount(); + IXUILabel ixuilabel = this._hasMentorship.Find("CurrentMentorInstruction").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Concat(new object[] + { + @string, + relationTargetsCount.ToString(), + "/", + XMentorshipDocument.Doc.MaxRelationCount + })); + IXUILabel ixuilabel2 = this._hasMentorship.Find("MentorshipTask/ConditionBg/ConditonsLabel").GetComponent("XUILabel") as IXUILabel; + int num = XMentorshipDocument.Doc.GetRelationPassedDays(this._currentRoleID, MentorRelationStatus.MentorRelationIn) + 1; + int completedTaskCount = XMentorshipDocument.Doc.GetCompletedTaskCount(this._currentRoleID); + ixuilabel2.SetText(string.Format(XSingleton.singleton.GetString("MentorOverConditions"), completedTaskCount + "/" + XSingleton.singleton.GetInt("Mentor_NormalComplete"), num + "/" + XSingleton.singleton.GetInt("Mentor_NormalCompleteDay"))); + } + + private void UpdateNoneRelationUI() + { + this.RefreshAcceptPupilConditions(); + this.RefreshApplyMasterConditions(); + } + + private void RefreshApplyMasterConditions() + { + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint sealType = specificDocument.GetSealType(); + LevelSealTypeTable.RowData levelSealType = XLevelSealDocument.GetLevelSealType(sealType); + int num = (levelSealType == null) ? 30 : levelSealType.ApplyStudentLevel; + string format = XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("ToBeMasterCondition")); + this._pupilCondition.SetText(string.Format(format, num)); + } + + private void RefreshAcceptPupilConditions() + { + string text = XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetString("ToBePupilConditon")); + this._masterCondition.SetText(text); + } + + private void OnClickNextStep(IXUISprite uiSprite) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Mentorship); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMentorshipPupilsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XMentorshipPupilsHandler.cs.meta new file mode 100644 index 00000000..1c469192 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMentorshipPupilsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2244a646b40bd8044b6ffe2198afc751 +timeCreated: 1611403422 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMilitaryRankDocument.cs b/Client/Assets/Scripts/XMainClient/XMilitaryRankDocument.cs new file mode 100644 index 00000000..977394e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMilitaryRankDocument.cs @@ -0,0 +1,201 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMilitaryRankDocument : XDocComponent + { + public override uint ID + { + get + { + return XMilitaryRankDocument.uuID; + } + } + + public MilitaryRankByExploit MilitaryReader + { + get + { + return XMilitaryRankDocument._militaryReader; + } + } + + public MilitaryRankReward MilitarySeasonReader + { + get + { + return XMilitaryRankDocument._militarySeasonReader; + } + } + + public List RankList + { + get + { + return this._rankList; + } + } + + public MilitaryRankData MyData + { + get + { + return this._myData; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MilitaryRankDocument"); + + private static readonly string MILITARY_ATLAS = "common/Billboard"; + + public int RankShowRange; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static MilitaryRankByExploit _militaryReader = new MilitaryRankByExploit(); + + private static MilitaryRankReward _militarySeasonReader = new MilitaryRankReward(); + + private List _rankList = new List(); + + private MilitaryRankData _myData = new MilitaryRankData(); + + public MilitaryRecord MyMilitaryRecord = new MilitaryRecord(); + + public static string GetMilitaryRankWithFormat(uint level, string name = "", bool space = false) + { + MilitaryRankByExploit.RowData byMilitaryRank = XMilitaryRankDocument._militaryReader.GetByMilitaryRank(level); + bool flag = byMilitaryRank != null; + string result; + if (flag) + { + if (space) + { + name = XSingleton.singleton.StringCombine(" ", name); + } + result = XSingleton.singleton.StringCombine(XLabelSymbolHelper.FormatImage(XMilitaryRankDocument.MILITARY_ATLAS, byMilitaryRank.Icon), name); + } + else + { + result = name; + } + return result; + } + + public static string GetMilitaryIcon(uint level) + { + MilitaryRankByExploit.RowData byMilitaryRank = XMilitaryRankDocument._militaryReader.GetByMilitaryRank(level); + bool flag = byMilitaryRank != null; + string result; + if (flag) + { + result = byMilitaryRank.Icon; + } + else + { + result = ""; + } + return result; + } + + public void SetMyMilitaryRecord(MilitaryRecord data) + { + bool flag = false; + bool flag2 = XSingleton.singleton.XPlayerData != null && XSingleton.singleton.XPlayerData.MilitaryRank != data.military_rank; + if (flag2) + { + flag = true; + XSingleton.singleton.XPlayerData.MilitaryRank = data.military_rank; + } + this.MyMilitaryRecord.military_rank = data.military_rank; + this.MyMilitaryRecord.military_rank_his = data.military_rank_his; + this.MyMilitaryRecord.military_exploit = data.military_exploit; + this.MyMilitaryRecord.military_exploit_his = data.military_exploit_his; + bool flag3 = flag; + if (flag3) + { + XTitleInfoChange @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XMilitaryRankDocument.AsyncLoader.AddTask("Table/MilitaryRankByExploit", XMilitaryRankDocument._militaryReader, false); + XMilitaryRankDocument.AsyncLoader.AddTask("Table/MilitaryRankReward", XMilitaryRankDocument._militarySeasonReader, false); + XMilitaryRankDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.RankShowRange = int.Parse(XSingleton.singleton.GetValue("MilitaryRankShowRange")); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + } + + public void QueryRankInfo() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.MilitaryRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void OnGetRankInfo(ClientQueryRankListRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + this._rankList.Clear(); + for (int i = 0; i < oRes.RankList.RankData.Count; i++) + { + this._rankList.Add(this.TurnRankData2MilitaryData(oRes.RankList.RankData[i], (uint)i)); + } + this._myData = this.TurnRankData2MilitaryData(oRes.RoleRankData, oRes.RoleRankData.Rank); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.Refresh(); + } + } + } + + private MilitaryRankData TurnRankData2MilitaryData(RankData data, uint rank) + { + return new MilitaryRankData + { + rank = rank, + MilitaryLevel = data.military_info.military_rank, + name = data.RoleName, + MilitaryPoint = data.military_info.military_exploit + }; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMilitaryRankDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XMilitaryRankDocument.cs.meta new file mode 100644 index 00000000..a4b4ecf3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMilitaryRankDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dc12c7b1a01b29440ae0e7007511e551 +timeCreated: 1611404677 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMobaBattleDocument.cs b/Client/Assets/Scripts/XMainClient/XMobaBattleDocument.cs new file mode 100644 index 00000000..67a01510 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMobaBattleDocument.cs @@ -0,0 +1,839 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMobaBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XMobaBattleDocument.uuID; + } + } + + public MobaLevel MobaLevelReader + { + get + { + return XMobaBattleDocument._mobaLevelReader; + } + } + + public XBetterDictionary MobaData + { + get + { + return this._mobaData; + } + } + + private XHeroBattleSkillDocument _skillDoc + { + get + { + bool flag = this._valueDoc == null; + if (flag) + { + this._valueDoc = XDocuments.GetSpecificDocument(XHeroBattleSkillDocument.uuID); + } + return this._valueDoc; + } + } + + public int SkillPoint + { + get + { + int num = 0; + for (int i = 2; i <= 5; i++) + { + num += XBattleSkillDocument.SkillLevel[i]; + } + return this.MyLevel() - num; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MobaBattleDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static MobaLevel _mobaLevelReader = new MobaLevel(); + + private static MobaMiniMap _miniMapReader = new MobaMiniMap(); + + public static MobaSignalTable MobaSignalReader = new MobaSignalTable(); + + private XBetterDictionary _mobaData = new XBetterDictionary(0); + + private List _miniMapIconToken = new List(); + + private XHeroBattleSkillDocument _valueDoc; + + public uint MyTeamkill; + + public uint OtherTeamKill; + + public uint MyTeamLevel; + + public uint OtherTeamLevel; + + public MobaMemberData MyData = null; + + private uint _mapFxToken; + + private bool _heroChange; + + private XMobaTowerTargetMgr _TowerMgr = new XMobaTowerTargetMgr(); + + private float _RefreshSignTime; + + private struct MobaMiniMapIcon + { + public uint _index; + + public uint _token; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XMobaBattleDocument.AsyncLoader.AddTask("Table/MobaLevel", XMobaBattleDocument._mobaLevelReader, false); + XMobaBattleDocument.AsyncLoader.AddTask("Table/MobaSignal", XMobaBattleDocument.MobaSignalReader, false); + XMobaBattleDocument.AsyncLoader.AddTask("Table/MobaMiniMap", XMobaBattleDocument._miniMapReader, false); + XMobaBattleDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_OnEntityCreated, new XComponent.XEventHandler(this.OnEntityCreate)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag) + { + this._TowerMgr.Clear(); + this._miniMapIconToken.Clear(); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag2 = !XSingleton.singleton.bSpectator && !specificDocument.bInTeam; + if (flag2) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_Moba, EXStage.Hall); + } + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag) + { + this.MyData = null; + this._mobaData.Clear(); + this._TowerMgr.Clear(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + private bool OnEntityCreate(XEventArgs args) + { + bool flag = XSingleton.singleton.SceneType != SceneType.SCENE_MOBA; + bool result; + if (flag) + { + result = true; + } + else + { + XOnEntityCreatedArgs xonEntityCreatedArgs = args as XOnEntityCreatedArgs; + this._TowerMgr.TryAddTower(xonEntityCreatedArgs.entity); + result = true; + } + return result; + } + + public void OnEntityTargetChange(EntityTargetData changeData) + { + this._TowerMgr.OnTargetChange(changeData); + } + + public void SetBattleMsg(List list) + { + bool flag = list.Count < 2 || this.MyData == null || (list[0].teamid != this.MyData.teamID && list[1].teamid != this.MyData.teamID); + if (flag) + { + XSingleton.singleton.AddGreenLog("set team msg error.", null, null, null, null, null); + } + else + { + bool flag2 = list[0].teamid == this.MyData.teamID; + if (flag2) + { + this.MyTeamkill = list[0].headcount; + this.MyTeamLevel = list[0].grouplevel; + this.OtherTeamKill = list[1].headcount; + this.OtherTeamLevel = list[1].grouplevel; + } + else + { + this.MyTeamkill = list[1].headcount; + this.MyTeamLevel = list[1].grouplevel; + this.OtherTeamKill = list[0].headcount; + this.OtherTeamLevel = list[0].grouplevel; + } + bool flag3 = DlgBase.singleton.m_MobaBattleHandler != null; + if (flag3) + { + DlgBase.singleton.m_MobaBattleHandler.RefreshBattleMsg(); + } + } + } + + public void SetAllData(MobaBattleTeamRoleData data) + { + this._skillDoc.TAS.Clear(); + bool flag = XSingleton.singleton.XPlayerData == null; + if (!flag) + { + for (int i = 0; i < data.datalist1.Count; i++) + { + bool flag2 = data.datalist1[i].uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.InitData(data.datalist1[i], data.team1); + } + } + for (int j = 0; j < data.datalist2.Count; j++) + { + bool flag3 = data.datalist2[j].uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + this.InitData(data.datalist2[j], data.team2); + } + } + for (int k = 0; k < data.datalist1.Count; k++) + { + bool flag4 = data.datalist1[k].uid != XSingleton.singleton.XPlayerData.RoleID; + if (flag4) + { + this.InitData(data.datalist1[k], data.team1); + } + } + for (int l = 0; l < data.datalist2.Count; l++) + { + bool flag5 = data.datalist2[l].uid != XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + this.InitData(data.datalist2[l], data.team2); + } + } + bool flag6 = this._skillDoc._HeroBattleTeamHandler != null && this._skillDoc._HeroBattleTeamHandler.IsVisible(); + if (flag6) + { + this._skillDoc._HeroBattleTeamHandler.Refresh(); + } + bool flag7 = !this._skillDoc.CSSH && this._skillDoc.m_HeroBattleSkillHandler != null; + if (flag7) + { + this._skillDoc.m_HeroBattleSkillHandler.RefreshTab(); + } + } + } + + public void InitData(MobaRoleData data, uint teamID) + { + MobaMemberData mobaMemberData = null; + bool flag = !this._mobaData.TryGetValue(data.uid, out mobaMemberData); + if (flag) + { + mobaMemberData = new MobaMemberData(data.uid, teamID); + this._mobaData[data.uid] = mobaMemberData; + } + bool flag2 = data.uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.MyData = mobaMemberData; + } + this.TurnFromServerData(data, ref mobaMemberData); + } + + public void OnDataChange(List list) + { + bool flag = false; + this._heroChange = false; + for (int i = 0; i < list.Count; i++) + { + MobaMemberData mobaMemberData = null; + bool flag2 = this._mobaData.TryGetValue(list[i].uid, out mobaMemberData); + if (flag2) + { + flag = (this.TurnFromServerData(list[i], ref mobaMemberData) || flag); + } + else + { + XSingleton.singleton.AddGreenLog("server want to change moba data but client haven't! roleID = ", list[i].uid.ToString(), null, null, null, null); + } + } + bool flag3 = flag && DlgBase.singleton.m_MobaBattleHandler != null; + if (flag3) + { + DlgBase.singleton.m_MobaBattleHandler.SetupDetailMsg(); + } + bool heroChange = this._heroChange; + if (heroChange) + { + bool flag4 = this._skillDoc._HeroBattleTeamHandler != null && this._skillDoc._HeroBattleTeamHandler.IsVisible(); + if (flag4) + { + this._skillDoc._HeroBattleTeamHandler.Refresh(); + } + bool flag5 = !this._skillDoc.CSSH && this._skillDoc.m_HeroBattleSkillHandler != null; + if (flag5) + { + this._skillDoc.m_HeroBattleSkillHandler.RefreshTab(); + } + } + } + + public bool TurnFromServerData(MobaRoleData data, ref MobaMemberData info) + { + bool nameSpecified = data.nameSpecified; + if (nameSpecified) + { + info.name = data.name; + } + bool heroidSpecified = data.heroidSpecified; + if (heroidSpecified) + { + info.heroID = data.heroid; + this._heroChange = true; + bool flag = this.MyData != null && this.MyData.teamID == info.teamID; + if (flag) + { + this._skillDoc.TAS.Add(info.heroID); + } + bool flag2 = info.isMy && info.heroID != 0u && DlgBase.singleton.m_HeroBattleSkillHandler != null; + if (flag2) + { + DlgBase.singleton.m_HeroBattleSkillHandler.SetVisible(false); + } + bool flag3 = this.MyData != null && DlgBase.singleton.IndicateHandler != null; + if (flag3) + { + DlgBase.singleton.IndicateHandler.SetHeroMiniMapElement(info.uid, info.heroID, info.teamID == this.MyData.teamID, false); + } + } + bool flag4 = false; + bool attackLevelSpecified = data.attackLevelSpecified; + if (attackLevelSpecified) + { + bool flag5 = info.isMy && info.attackLevel != data.attackLevel && DlgBase.singleton.m_MobaBattleHandler != null; + if (flag5) + { + flag4 = true; + DlgBase.singleton.m_MobaBattleHandler.ShowAdditionFx(0); + } + info.attackLevel = data.attackLevel; + } + bool defenseLevelSpecified = data.defenseLevelSpecified; + if (defenseLevelSpecified) + { + bool flag6 = info.isMy && info.defenseLevel != data.defenseLevel && DlgBase.singleton.m_MobaBattleHandler != null; + if (flag6) + { + flag4 = true; + DlgBase.singleton.m_MobaBattleHandler.ShowAdditionFx(1); + } + info.defenseLevel = data.defenseLevel; + } + bool killNumSpecified = data.killNumSpecified; + if (killNumSpecified) + { + info.kill = data.killNum; + } + bool deathNumSpecified = data.deathNumSpecified; + if (deathNumSpecified) + { + info.dead = data.deathNum; + } + bool assistNumSpecified = data.assistNumSpecified; + if (assistNumSpecified) + { + info.assist = data.assistNum; + } + bool flag7 = info.isMy && (data.killNumSpecified || data.deathNumSpecified || data.assistNumSpecified); + if (flag7) + { + bool flag8 = DlgBase.singleton.m_MobaBattleHandler != null; + if (flag8) + { + DlgBase.singleton.m_MobaBattleHandler.RefreshMyScore(); + } + } + int num = 0; + bool levelSpecified = data.levelSpecified; + if (levelSpecified) + { + bool flag9 = info.level != data.level; + if (flag9) + { + info.level = data.level; + num = info.levelUpExp - info.exp; + info.levelUpExp = this.GetLevelUpExp(info.level); + this.OnRoleLevelUp(info.uid, info.level != 1u, info.isMy); + } + } + bool expSpecified = data.expSpecified; + if (expSpecified) + { + num += (int)data.exp - info.exp; + info.exp = (int)data.exp; + bool flag10 = num != 0; + if (flag10) + { + this.ShowGetExp(num); + } + } + bool reviveTimeSpecified = data.reviveTimeSpecified; + if (reviveTimeSpecified) + { + info.reviveTime = data.reviveTime; + bool flag11 = info.isMy && info.reviveTime > 0f && DlgBase.singleton.m_MobaBattleHandler != null; + if (flag11) + { + DlgBase.singleton.m_MobaBattleHandler.SetOnDeath(); + } + } + bool upgradeNumSpecified = data.upgradeNumSpecified; + if (upgradeNumSpecified) + { + bool flag12 = info.isMy && info.additionPoint > data.upgradeNum && !flag4 && DlgBase.singleton.m_MobaBattleHandler != null; + if (flag12) + { + DlgBase.singleton.m_MobaBattleHandler.ShowAdditionFx(2); + } + info.additionPoint = data.upgradeNum; + bool flag13 = info.isMy && DlgBase.singleton.m_MobaBattleHandler != null; + if (flag13) + { + DlgBase.singleton.m_MobaBattleHandler.SetAdditionFrameState(info.additionPoint > 0u); + } + } + return data.heroidSpecified || data.killNumSpecified || data.deathNumSpecified || data.assistNumSpecified || data.attackLevelSpecified || data.defenseLevelSpecified; + } + + public int MyLevel() + { + bool flag = this.MyData == null; + int result; + if (flag) + { + result = 1; + } + else + { + result = (int)this.MyData.level; + } + return result; + } + + public bool GetRoleLevelAndExp(ulong uid, out int level, out float exp) + { + level = 1; + exp = 0f; + MobaMemberData mobaMemberData = null; + bool flag = this._mobaData.TryGetValue(uid, out mobaMemberData); + bool result; + if (flag) + { + level = (int)mobaMemberData.level; + exp = (float)mobaMemberData.exp * 1f / (float)mobaMemberData.levelUpExp; + result = true; + } + else + { + XSingleton.singleton.AddErrorLog("moba billboard try get level and exp error.", null, null, null, null, null); + result = false; + } + return result; + } + + public int GetLevelUpExp(uint level) + { + MobaLevel.RowData byLevel = XMobaBattleDocument._mobaLevelReader.GetByLevel(level); + bool flag = byLevel == null; + int result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find moba level up exp, level = ", level.ToString(), null, null, null, null); + result = 1; + } + else + { + result = (int)byLevel.Exp; + } + return result; + } + + public void ShowGetExp(int exp) + { + } + + public void OnRoleLevelUp(ulong uid, bool haveFx, bool isMy) + { + if (haveFx) + { + XEntity entity = XSingleton.singleton.GetEntity(uid); + bool flag = XEntity.ValideEntity(entity); + if (flag) + { + XSingleton.singleton.CreateAndPlay(XSingleton.singleton.GetValue("LevelupFx"), entity.MoveObj, Vector3.zero, Vector3.one, 1f, true, 5f, true); + } + } + if (isMy) + { + bool flag2 = DlgBase.singleton.SkillHandler != null; + if (flag2) + { + DlgBase.singleton.SkillHandler.RefreshAddBtn(null); + } + } + } + + public void QuerySkillLevelUp(uint skillID) + { + RpcC2G_SceneMobaOp rpcC2G_SceneMobaOp = new RpcC2G_SceneMobaOp(); + rpcC2G_SceneMobaOp.oArg.op = MobaOp.MobaOp_LevelSkill; + rpcC2G_SceneMobaOp.oArg.param = skillID; + XSingleton.singleton.Send(rpcC2G_SceneMobaOp); + } + + public void QueryAdditionLevelUp(int type) + { + bool flag = this.MyData != null && this.MyData.additionPoint == 0u; + if (!flag) + { + RpcC2G_SceneMobaOp rpcC2G_SceneMobaOp = new RpcC2G_SceneMobaOp(); + rpcC2G_SceneMobaOp.oArg.op = MobaOp.MobaOp_Upgrade; + rpcC2G_SceneMobaOp.oArg.param = (uint)type; + XSingleton.singleton.Send(rpcC2G_SceneMobaOp); + } + } + + public void SendSignal(uint type) + { + RpcC2G_MobaSignaling rpcC2G_MobaSignaling = new RpcC2G_MobaSignaling(); + rpcC2G_MobaSignaling.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_MobaSignaling); + } + + public void OnSignalGet(ulong uid, uint type, Vector3 pos) + { + uint heroID = 0u; + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + bool flag2 = !specificDocument.heroIDIndex.TryGetValue(uid, out heroID); + if (flag2) + { + return; + } + } + else + { + MobaMemberData mobaMemberData; + bool flag3 = !this._mobaData.TryGetValue(uid, out mobaMemberData); + if (flag3) + { + return; + } + heroID = mobaMemberData.heroID; + } + MobaSignalTable.RowData byID = XMobaBattleDocument.MobaSignalReader.GetByID(type); + bool flag4 = !string.IsNullOrEmpty(byID.Effect); + if (flag4) + { + bool flag5 = DlgBase.singleton.IndicateHandler != null; + if (flag5) + { + XBattleDocument.DelMiniMapFx(this._mapFxToken); + this._mapFxToken = XBattleDocument.AddMiniMapFx(pos, byID.Effect); + } + } + bool flag6 = !string.IsNullOrEmpty(byID.Audio); + if (flag6) + { + XSingleton.singleton.PlayUISound(byID.Audio, true, AudioChannel.Action); + } + OverWatchTable.RowData dataByHeroID = XHeroBattleDocument.GetDataByHeroID(heroID); + bool flag7 = dataByHeroID != null && DlgBase.singleton.m_MobaBattleHandler != null && DlgBase.singleton.m_MobaBattleHandler.m_MapSignalHandler != null; + if (flag7) + { + DlgBase.singleton.m_MobaBattleHandler.m_MapSignalHandler.ShowSignal(dataByHeroID.Icon, dataByHeroID.IconAtlas, byID.Icon, byID.Text); + } + bool flag8 = dataByHeroID != null && DlgBase.singleton.m_HeroBattleHandler != null && DlgBase.singleton.m_HeroBattleHandler.m_MapSignalHandler != null; + if (flag8) + { + DlgBase.singleton.m_HeroBattleHandler.m_MapSignalHandler.ShowSignal(dataByHeroID.Icon, dataByHeroID.IconAtlas, byID.Icon, byID.Text); + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + this._TowerMgr.Update(); + bool flag = Time.realtimeSinceStartup - this._RefreshSignTime < 1f; + if (!flag) + { + this._RefreshSignTime = Time.realtimeSinceStartup; + int i = 0; + int count = this._mobaData.BufferValues.Count; + while (i < count) + { + bool flag2 = this._mobaData.BufferValues[i].reviveTime > 0f; + if (flag2) + { + this._mobaData.BufferValues[i].reviveTime -= 1f; + bool flag3 = this._mobaData.BufferValues[i].reviveTime < 0f; + if (flag3) + { + this._mobaData.BufferValues[i].reviveTime = 0f; + } + } + i++; + } + } + } + + public bool isAlly(int teamID) + { + return this.MyData == null || (long)teamID == (long)((ulong)this.MyData.teamID); + } + + public bool isAlly(ulong uid) + { + bool flag = this.MyData == null; + bool result; + if (flag) + { + result = true; + } + else + { + MobaMemberData mobaMemberData; + bool flag2 = !this._mobaData.TryGetValue(uid, out mobaMemberData); + result = (!flag2 && this.MyData.teamID == mobaMemberData.teamID); + } + return result; + } + + public void StartMvpCutScene(bool blueWin) + { + XSingleton.singleton.Start(blueWin ? "CutScene/herocanyan_blue_cutscene" : "CutScene/herocanyan_red_cutscene", true, true); + } + + public void SetMiniMapIcon(List list) + { + HashSet hashSet = new HashSet(); + for (int i = 0; i < list.Count; i++) + { + hashSet.Add(list[i]); + } + for (int j = this._miniMapIconToken.Count - 1; j >= 0; j--) + { + bool flag = !hashSet.Contains(this._miniMapIconToken[j]._index); + if (flag) + { + XBattleDocument.DelMiniMapPic(this._miniMapIconToken[j]._token); + this._miniMapIconToken.RemoveAt(j); + } + else + { + hashSet.Remove(this._miniMapIconToken[j]._index); + } + } + foreach (uint num in hashSet) + { + MobaMiniMap.RowData byPosIndex = XMobaBattleDocument._miniMapReader.GetByPosIndex(num); + bool flag2 = byPosIndex == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("get rowData from mobaminimap error, index = ", num.ToString(), null, null, null, null); + } + else + { + string fx = (byPosIndex.Icon.Length == 1 || this.MyData == null || this.MyData.teamID == 11u) ? byPosIndex.Icon[0] : byPosIndex.Icon[1]; + uint token = XBattleDocument.AddMiniMapPic(new Vector3(byPosIndex.Position[0], 0f, byPosIndex.Position[1]), fx); + this._miniMapIconToken.Add(new XMobaBattleDocument.MobaMiniMapIcon + { + _index = num, + _token = token + }); + } + } + } + + public void MobaHintNotify(MobaHintNtf ntf) + { + this.CreateMessageInfo(ntf.index); + } + + public void MobaKillerNotify(HeroKillNotifyData notify) + { + bool flag = notify.killer == null || notify.dead == null; + if (!flag) + { + bool flag2 = notify.dead.type == HeroKillUnitType.HeroKillUnit_Enemy; + if (flag2) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(notify.dead.id); + uint num = EntityMask.CreateTag(byID); + bool flag3 = (num & EntityMask.Moba_Tower) != 0u || (num & EntityMask.Moba_Home) > 0u; + if (flag3) + { + this.CreateKillerInfo(XFastEnumIntEqualityComparer.ToInt(MobaKillEnum.KILL_DESTROY), notify.killer, notify.dead, notify.assists); + } + else + { + this.CreateKillerInfo(XFastEnumIntEqualityComparer.ToInt(MobaKillEnum.KILL_START), notify.killer, notify.dead, notify.assists); + } + } + else + { + bool flag4 = notify.killer.type == HeroKillUnitType.HeroKillUnit_Enemy; + if (flag4) + { + this.CreateKillerInfo(XFastEnumIntEqualityComparer.ToInt(MobaKillEnum.KILL_START), notify.killer, notify.dead, notify.assists); + } + else + { + bool isFirstBlood = notify.isFirstBlood; + MobaKillEnum en; + if (isFirstBlood) + { + en = MobaKillEnum.KILL_FIRST; + } + else + { + bool flag5 = notify.multiKill >= 4u; + if (flag5) + { + en = MobaKillEnum.KILL_FOUR; + } + else + { + bool flag6 = notify.multiKill == 3u; + if (flag6) + { + en = MobaKillEnum.KILL_THREE; + } + else + { + bool flag7 = notify.multiKill == 2u; + if (flag7) + { + en = MobaKillEnum.KILL_DOUBLE; + } + else + { + bool flag8 = notify.killer.continueCounts > 5u; + if (flag8) + { + en = MobaKillEnum.KILL_SPREE; + } + else + { + bool flag9 = notify.killer.continueCounts > 2u; + if (flag9) + { + en = MobaKillEnum.KILL_UNSTOPPABLE; + } + else + { + en = MobaKillEnum.KILL_START; + } + } + } + } + } + } + this.CreateKillerInfo(XFastEnumIntEqualityComparer.ToInt(en), notify.killer, notify.dead, notify.assists); + bool flag10 = notify.dead.continueCounts > 2u; + if (flag10) + { + this.CreateKillerInfo(XFastEnumIntEqualityComparer.ToInt(MobaKillEnum.KILL_ENDUP), notify.killer, notify.dead, notify.assists); + } + } + } + } + } + + private void CreateKillerInfo(int type, HeroKillUnit killer, HeroKillUnit deader, List assists) + { + MobaReminder info = MobaInfoPool.GetInfo(); + info.reminder = MobaReminderEnum.KILLER; + info.killer = killer; + info.deader = deader; + info.assists = assists; + info.type = type; + MobaSignalTable.RowData byID = XMobaBattleDocument.MobaSignalReader.GetByID((uint)type); + bool flag = byID != null; + if (flag) + { + info.AudioName = byID.Audio; + info.ReminderText = byID.Text; + } + DlgBase.singleton.Enqueue(info); + } + + private void CreateMessageInfo(int type) + { + MobaReminder info = MobaInfoPool.GetInfo(); + info.reminder = MobaReminderEnum.MESSAGE; + info.type = type; + MobaSignalTable.RowData byID = XMobaBattleDocument.MobaSignalReader.GetByID((uint)type); + bool flag = byID != null; + if (flag) + { + info.AudioName = byID.Audio; + info.ReminderText = byID.Text; + } + DlgBase.singleton.Enqueue(info); + } + + public uint GetHeroIDByRoleID(ulong uid) + { + MobaMemberData mobaMemberData = null; + bool flag = this._mobaData.TryGetValue(uid, out mobaMemberData); + uint result; + if (flag) + { + result = mobaMemberData.heroID; + } + else + { + result = 0u; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMobaBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XMobaBattleDocument.cs.meta new file mode 100644 index 00000000..82ec3f79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMobaBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4b634ea5c70db5b4f9697af39d3ecdc8 +timeCreated: 1611403686 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMobaBillboardComponent.cs b/Client/Assets/Scripts/XMainClient/XMobaBillboardComponent.cs new file mode 100644 index 00000000..6fe7316c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMobaBillboardComponent.cs @@ -0,0 +1,362 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XMobaBillboardComponent : XComponent + { + public override uint ID + { + get + { + return XMobaBillboardComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Moba_Billboard"); + + private XMobaBattleDocument _mobaDoc; + + private Transform _billboard = null; + + private IUIDummy _uiDummy = null; + + private IUIBloodGrid _bloodGrid = null; + + private IXUIProgress _bloodBar; + + private IXUIProgress _indureBar; + + public IXUILabelSymbol _name; + + public IXUILabel _level; + + public IXUISprite _exp; + + public string NameStr = ""; + + private XBuffMonitorHandler _buffMonitor; + + private bool InitByMaster = false; + + private float _heroHeight = 10f; + + private static float k = 0.007f; + + private float _viewDistance = 10f; + + private int _alwaysHide = 0; + + public static string HPBAR_TEMPLATE = "UI/Billboard/MobaBillboard"; + + private static readonly string MILITARY_ATLAS = "common/Billboard"; + + public static readonly string billboardString_red = "[e8280c]"; + + public static readonly string billboardString_green = "[53d103]"; + + public static readonly string billboardString_blue = "[0aabd0]"; + + public static readonly Color billboard_red = new Color32(232, 40, 12, byte.MaxValue); + + public static readonly Color billboard_green = new Color32(83, 209, 3, byte.MaxValue); + + public static readonly Color billboard_blue = new Color32(10, 171, 208, byte.MaxValue); + + private BillboardUsage _secondbar_usage = BillboardUsage.MP; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._mobaDoc = XDocuments.GetSpecificDocument(XMobaBattleDocument.uuID); + GameObject gameObject = XSingleton.singleton.CreateFromPrefab(XMobaBillboardComponent.HPBAR_TEMPLATE, this._entity.EngineObject.Position, this._entity.EngineObject.Rotation, true, false); + bool flag = gameObject != null; + if (flag) + { + this._billboard = gameObject.transform; + } + this._uiDummy = (this._billboard.GetComponent("UIDummy") as IUIDummy); + IUIRect parent = XSingleton.singleton.HpbarRoot.UIComponent as IUIRect; + XSingleton.singleton.AddChild(parent, gameObject, XSingleton.singleton.HpbarRoot); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_BillboardShowCtrl, new XComponent.XEventHandler(this.OnShowCtrl)); + base.RegisterEvent(XEventDefine.XEvent_BuffChange, new XComponent.XEventHandler(this.OnBuffChange)); + } + + public override void Attached() + { + base.Attached(); + this._bloodBar = (this._billboard.Find("Hpbar").GetComponent("XUIProgress") as IXUIProgress); + this._bloodGrid = (this._billboard.Find("Hpbar/BloodGrid").GetComponent("UIBloodGrid") as IUIBloodGrid); + this._bloodGrid.SetMAXHP((int)this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total)); + this._indureBar = (this._billboard.Find("Indure").GetComponent("XUIProgress") as IXUIProgress); + this._name = (this._billboard.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this._level = (this._billboard.Find("Level").GetComponent("XUILabel") as IXUILabel); + this._exp = (this._level.gameObject.transform.Find("frame").GetComponent("XUISprite") as IXUISprite); + GameObject gameObject = this._billboard.transform.Find("BuffFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this._buffMonitor, gameObject, null, true); + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + this._bloodBar.SetForegroundColor(XMobaBillboardComponent.billboard_green); + } + else + { + bool flag = XSingleton.singleton.IsOpponent(this._entity); + if (flag) + { + this._bloodBar.SetForegroundColor(XMobaBillboardComponent.billboard_red); + } + else + { + this._bloodBar.SetForegroundColor(XMobaBillboardComponent.billboard_blue); + } + } + bool isRole = this._entity.IsRole; + if (isRole) + { + uint num = this._entity.IsPlayer ? XSingleton.singleton.XPlayerData.MilitaryRank : (this._entity.Attributes as XRoleAttributes).MilitaryRank; + bool flag2 = num == 0u; + if (flag2) + { + this.SetNameStr(this._entity.Attributes.Name); + } + else + { + MilitaryRankByExploit.RowData byMilitaryRank = XMilitaryRankDocument._militaryReader.GetByMilitaryRank(num); + this.SetNameStr(XLabelSymbolHelper.FormatImage(XMobaBillboardComponent.MILITARY_ATLAS, byMilitaryRank.Icon) + this._entity.Attributes.Name); + } + } + else + { + this._name.SetVisible(false); + } + bool flag3 = this._buffMonitor != null; + if (flag3) + { + this._buffMonitor.InitMonitor(XSingleton.singleton.BuffMaxDisplayCountTeam, true, false); + } + this._heroHeight = this._entity.Height; + this._billboard.transform.localScale = Vector3.one * XMobaBillboardComponent.k; + this._uiDummy.alpha = 0f; + } + + private void SetNameStr(string str) + { + this.NameStr = str; + this._name.InputText = str; + } + + private void DestroyGameObjects() + { + bool flag = this._billboard != null; + if (flag) + { + XSingleton.singleton.UnSafeDestroy(this._billboard.gameObject, true, false); + this._billboard = null; + } + } + + public override void OnDetachFromHost() + { + this._alwaysHide = 0; + this.DestroyGameObjects(); + base.OnDetachFromHost(); + } + + private bool OnShowCtrl(XEventArgs e) + { + XBillboardShowCtrlEventArgs xbillboardShowCtrlEventArgs = e as XBillboardShowCtrlEventArgs; + bool flag = xbillboardShowCtrlEventArgs.type == BillBoardHideType.Invalid; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("undefine billboard hide type. check code or contect pyc.", null, null, null, null, null); + result = false; + } + else + { + bool show = xbillboardShowCtrlEventArgs.show; + if (show) + { + this._alwaysHide &= ~(1 << XFastEnumIntEqualityComparer.ToInt(xbillboardShowCtrlEventArgs.type)); + } + else + { + this._alwaysHide |= 1 << XFastEnumIntEqualityComparer.ToInt(xbillboardShowCtrlEventArgs.type); + } + result = true; + } + return result; + } + + private bool OnBuffChange(XEventArgs args) + { + XBuffChangeEventArgs xbuffChangeEventArgs = args as XBuffChangeEventArgs; + bool isRole = xbuffChangeEventArgs.entity.IsRole; + if (isRole) + { + XBuffComponent buffs = xbuffChangeEventArgs.entity.Buffs; + bool flag = buffs != null; + if (flag) + { + this._buffMonitor.OnBuffChanged(buffs.GetUIBuffList()); + } + } + return true; + } + + private void SetBillBoardSameByMaster() + { + bool flag = XEntity.ValideEntity(this._entity.MobbedBy); + if (flag) + { + XMobaBillboardComponent xmobaBillboardComponent = this._entity.MobbedBy.GetXComponent(XMobaBillboardComponent.uuID) as XMobaBillboardComponent; + this._name.SetVisible(true); + this._name.InputText = xmobaBillboardComponent.NameStr; + this._level.SetText(xmobaBillboardComponent._level.GetText()); + } + } + + public override void PostUpdate(float fDeltaT) + { + XEntity xentity = this._host as XEntity; + bool flag = xentity == null; + if (!flag) + { + bool flag2 = !this.InitByMaster && this._entity.MobbedBy != null; + if (flag2) + { + this.InitByMaster = true; + XOthersAttributes xothersAttributes = this._entity.Attributes as XOthersAttributes; + bool sameBillBoardByMaster = xothersAttributes.SameBillBoardByMaster; + if (sameBillBoardByMaster) + { + this.SetBillBoardSameByMaster(); + } + } + bool flag3 = !XEntity.ValideEntity(xentity); + if (flag3) + { + this._uiDummy.alpha = 0f; + } + else + { + bool flag4 = this._alwaysHide != 0; + if (flag4) + { + this._uiDummy.alpha = 0f; + } + else + { + XPlayer player = XSingleton.singleton.Player; + bool flag5 = player == null || player.EngineObject == null; + if (flag5) + { + this.DestroyGameObjects(); + } + else + { + float num = Vector3.Distance(xentity.EngineObject.Position, player.EngineObject.Position); + bool flag6 = num > this._viewDistance; + if (flag6) + { + bool flag7 = this._billboard != null; + if (flag7) + { + this._uiDummy.alpha = 0f; + return; + } + } + bool flag8 = this._billboard != null; + if (flag8) + { + this.UpdateHpBar(); + } + } + } + } + } + } + + private void UpdateHpBar() + { + bool flag = this._uiDummy.alpha == 0f; + if (flag) + { + this._uiDummy.alpha = 1f; + } + float num = 0.2f; + bool flag2 = !this._bloodBar.gameObject.activeSelf; + if (flag2) + { + num -= 0.05f; + } + bool flag3 = !this._indureBar.gameObject.activeSelf; + if (flag3) + { + num -= 0.05f; + } + Vector3 position = this._entity.EngineObject.Position; + Vector3 position2; + position2= new Vector3(position.x, position.y + this._heroHeight + num, position.z); + this._billboard.position = position2; + this._billboard.rotation = XSingleton.singleton.GameCamera.Rotaton; + bool flag4 = XSingleton.singleton.Player != null; + if (flag4) + { + float num2 = 6.27f; + float num3 = Vector3.Distance(XSingleton.singleton.GameCamera.UnityCamera.transform.position, this._billboard.position); + float num4 = XMobaBillboardComponent.k * num3 / num2; + this._billboard.localScale = new Vector3(num4, num4, num4); + } + bool isRole = this._entity.IsRole; + if (isRole) + { + int num5; + float fillAmount; + this._mobaDoc.GetRoleLevelAndExp(this._entity.ID, out num5, out fillAmount); + this._level.SetText(num5.ToString()); + this._exp.SetFillAmount(fillAmount); + } + double attr = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + bool flag5 = this._bloodGrid.MAXHP != (int)attr; + if (flag5) + { + this._bloodGrid.SetMAXHP((int)attr); + } + double num6 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + bool flag6 = num6 < 0.0; + if (flag6) + { + num6 = 0.0; + } + this._bloodBar.value = (float)(num6 / attr); + bool activeInHierarchy = this._indureBar.gameObject.activeInHierarchy; + if (activeInHierarchy) + { + bool flag7 = this._secondbar_usage == BillboardUsage.MP; + if (flag7) + { + double attr2 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxMP_Total); + double attr3 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + bool flag8 = attr3 < attr2; + if (flag8) + { + this._indureBar.value = (float)(attr3 / attr2); + } + else + { + this._indureBar.value = 1f; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMobaBillboardComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XMobaBillboardComponent.cs.meta new file mode 100644 index 00000000..8e8476fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMobaBillboardComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ca0234a570dcf8149874eb9407fc12d9 +timeCreated: 1611404540 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMobaEntranceDocument.cs b/Client/Assets/Scripts/XMainClient/XMobaEntranceDocument.cs new file mode 100644 index 00000000..fcf4db9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMobaEntranceDocument.cs @@ -0,0 +1,284 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMobaEntranceDocument : XDocComponent + { + public override uint ID + { + get + { + return XMobaEntranceDocument.uuID; + } + } + + public uint MatchTotalPercent + { + get + { + bool flag = this.MatchTotalCount == 0u; + uint result; + if (flag) + { + result = 0u; + } + else + { + bool flag2 = this.WinCount == 0u; + if (flag2) + { + result = 0u; + } + else + { + result = Math.Max(1u, 100u * this.WinCount / this.MatchTotalCount); + } + } + return result; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MobaEntranceDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static MobaWeekReward _MobaWeekReward = new MobaWeekReward(); + + public List RecordTotalList = new List(); + + public uint WinThisWeek = 0u; + + public XMobaEntranceDocument.MobaRewardState RewardState = XMobaEntranceDocument.MobaRewardState.CanNotGet; + + public uint GetRewardStage = 0u; + + public uint MatchTotalCount = 0u; + + public uint WinCount = 0u; + + public uint LoseCount = 0u; + + public struct XMobaRecordTotal + { + public uint roundID; + + public uint heroID; + + public bool isWin; + + public bool isMVP; + + public bool isLoseMVP; + + public bool isEscape; + + public uint date; + } + + public struct XMobaRecordRound + { + public uint roundID; + + public uint date; + + public uint time; + + public bool isteam1win; + + public List team1; + + public List team2; + + public ulong mvpid; + + public ulong losemvpid; + + public ulong damagemaxid; + + public ulong behitdamagemaxid; + + public List SetMobaRecordDetailOne(List oResData) + { + List list = new List(oResData.Count); + for (int i = 0; i < oResData.Count; i++) + { + XMobaEntranceDocument.XMobaRecordDetailOne item = default(XMobaEntranceDocument.XMobaRecordDetailOne); + item.heroID = oResData[i].heroid; + item.data.uID = oResData[i].roleid; + item.data.KillCount = (int)oResData[i].killcount; + item.data.DeathCount = oResData[i].deathcount; + item.data.AssitCount = oResData[i].assistcount; + item.data.Kda = oResData[i].kda; + item.data.MaxKillCount = (int)oResData[i].multikillcount; + item.data.isescape = oResData[i].isescape; + item.data.Name = oResData[i].name; + list.Add(item); + } + return list; + } + } + + public struct XMobaRecordDetailOne + { + public uint heroID; + + public XLevelRewardDocument.PVPRoleInfo data; + } + + public enum MobaRewardState + { + CanNotGet, + CanGet, + GetEnd + } + + public static void Execute(OnLoadedCallback callback = null) + { + XMobaEntranceDocument.AsyncLoader.AddTask("Table/MobaWeekReward", XMobaEntranceDocument._MobaWeekReward, false); + XMobaEntranceDocument.AsyncLoader.Execute(callback); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.ReqMobaUIInfo(); + } + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag) + { + this.ReqMobaUIInfo(); + } + } + + public void ReqMobaUIInfo() + { + RpcC2M_GetMobaBattleInfo rpc = new RpcC2M_GetMobaBattleInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReqMobaGetReward() + { + RpcC2M_GetMobaBattleWeekReward rpc = new RpcC2M_GetMobaBattleWeekReward(); + XSingleton.singleton.Send(rpc); + } + + public void SetMobaUIInfo(GetMobaBattleInfoArg oArg, GetMobaBattleInfoRes oRes) + { + this.WinThisWeek = oRes.winthisweek; + this.GetRewardStage = oRes.weekprize; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Moba, true); + this.RewardState = XMobaEntranceDocument.MobaRewardState.CanNotGet; + bool getnextweekprize = oRes.getnextweekprize; + if (getnextweekprize) + { + this.RewardState = XMobaEntranceDocument.MobaRewardState.CanGet; + } + bool flag = this.GetRewardStage == XMobaEntranceDocument._MobaWeekReward.Table[XMobaEntranceDocument._MobaWeekReward.Table.Length - 1].id; + if (flag) + { + this.GetRewardStage -= 1u; + this.RewardState = XMobaEntranceDocument.MobaRewardState.GetEnd; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshRaward(); + } + } + + public void SetMobaNewReward(GetMobaBattleWeekRewardArg oArg, GetMobaBattleWeekRewardRes oRes) + { + this.GetRewardStage = oRes.weekprize; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Moba, true); + this.RewardState = XMobaEntranceDocument.MobaRewardState.CanNotGet; + bool getnextweekprize = oRes.getnextweekprize; + if (getnextweekprize) + { + this.RewardState = XMobaEntranceDocument.MobaRewardState.CanGet; + } + bool flag = this.GetRewardStage == XMobaEntranceDocument._MobaWeekReward.Table[XMobaEntranceDocument._MobaWeekReward.Table.Length - 1].id; + if (flag) + { + this.GetRewardStage -= 1u; + this.RewardState = XMobaEntranceDocument.MobaRewardState.GetEnd; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshRaward(); + } + } + + public void ReqMobaRecordTotal() + { + RpcC2M_GetMobaBattleBriefRecord rpc = new RpcC2M_GetMobaBattleBriefRecord(); + XSingleton.singleton.Send(rpc); + } + + public void SetMobaRecordTotal(GetMobaBattleBriefRecordArg oArg, GetMobaBattleBriefRecordRes oRes) + { + this.MatchTotalCount = oRes.totalnum; + this.WinCount = oRes.winnum; + this.LoseCount = oRes.totalnum - oRes.winnum; + this.RecordTotalList.Clear(); + for (int i = 0; i < oRes.brief.Count; i++) + { + XMobaEntranceDocument.XMobaRecordTotal item = default(XMobaEntranceDocument.XMobaRecordTotal); + item.roundID = oRes.brief[i].tag; + item.heroID = oRes.brief[i].heroid; + item.isWin = oRes.brief[i].iswin; + item.isMVP = oRes.brief[i].ismvp; + item.isLoseMVP = oRes.brief[i].islosemvp; + item.isEscape = oRes.brief[i].isescape; + item.date = oRes.brief[i].date; + this.RecordTotalList.Add(item); + } + bool flag = DlgBase.singleton.m_MobaBattleRecordHandler != null; + if (flag) + { + DlgBase.singleton.m_MobaBattleRecordHandler.Refresh(); + } + } + + public void ReqMobaRecordRound(uint roundID) + { + RpcC2M_GetMobaBattleGameRecord rpcC2M_GetMobaBattleGameRecord = new RpcC2M_GetMobaBattleGameRecord(); + rpcC2M_GetMobaBattleGameRecord.oArg.tag = roundID; + XSingleton.singleton.Send(rpcC2M_GetMobaBattleGameRecord); + } + + public void SetMobaRecordRound(GetMobaBattleGameRecordArg oArg, GetMobaBattleGameRecordRes oRes) + { + XMobaEntranceDocument.XMobaRecordRound data = default(XMobaEntranceDocument.XMobaRecordRound); + bool flag = oRes.record != null; + if (flag) + { + data.roundID = oRes.record.tag; + data.date = oRes.record.date; + data.time = oRes.record.timeSpan; + data.isteam1win = (oRes.record.winteamid == 1u); + data.mvpid = oRes.record.mvpid; + data.losemvpid = oRes.record.losemvpid; + data.damagemaxid = oRes.record.damagemaxid; + data.behitdamagemaxid = oRes.record.behitdamagemaxid; + data.team1 = data.SetMobaRecordDetailOne(oRes.record.team1); + data.team2 = data.SetMobaRecordDetailOne(oRes.record.team2); + } + bool flag2 = DlgBase.singleton.m_MobaBattleRecordHandler != null; + if (flag2) + { + DlgBase.singleton.m_MobaBattleRecordHandler.RefreshDetail(data); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMobaEntranceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XMobaEntranceDocument.cs.meta new file mode 100644 index 00000000..a32ff7ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMobaEntranceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f16c32415f50c714293f936378fb8f86 +timeCreated: 1611404838 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMobaTowerTargetMgr.cs b/Client/Assets/Scripts/XMainClient/XMobaTowerTargetMgr.cs new file mode 100644 index 00000000..e765ab63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMobaTowerTargetMgr.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMobaTowerTargetMgr + { + private List m_TowerList = new List(); + + public void Clear() + { + for (int i = 0; i < this.m_TowerList.Count; i++) + { + this.m_TowerList[i].Destroy(); + } + this.m_TowerList.Clear(); + } + + public void TryAddTower(XEntity newEntity) + { + bool flag = !XEntity.ValideEntity(newEntity); + if (!flag) + { + bool flag2 = newEntity.IsRole || newEntity.Attributes == null; + if (!flag2) + { + bool flag3 = !XSingleton.singleton.IsOpponent(newEntity.Attributes.FightGroup); + if (!flag3) + { + XOthersAttributes xothersAttributes = newEntity.Attributes as XOthersAttributes; + bool flag4 = xothersAttributes == null; + if (!flag4) + { + bool flag5 = newEntity.Attributes == null || (newEntity.Attributes.Tag & EntityMask.Moba_Tower) == 0u; + if (!flag5) + { + for (int i = 0; i < this.m_TowerList.Count; i++) + { + bool flag6 = this.m_TowerList[i].UID == newEntity.ID; + if (flag6) + { + return; + } + } + TowerInfo towerInfo = new TowerInfo(); + towerInfo.UID = newEntity.ID; + towerInfo.Entity = newEntity; + towerInfo.WarningSqrRadius = xothersAttributes.EnterFightRange + XSingleton.singleton.MobaTowerFxOffset; + towerInfo.WarningSqrRadius *= towerInfo.WarningSqrRadius; + this.m_TowerList.Add(towerInfo); + XSingleton.singleton.AddGreenLog("Tower ", newEntity.ID.ToString(), " add, Type ID = ", newEntity.Attributes.TypeID.ToString(), null, null); + } + } + } + } + } + } + + public void OnTargetChange(EntityTargetData data) + { + bool flag = data == null; + if (!flag) + { + for (int i = 0; i < this.m_TowerList.Count; i++) + { + TowerInfo towerInfo = this.m_TowerList[i]; + bool flag2 = towerInfo.UID == data.entityUID; + if (flag2) + { + towerInfo.TargetUID = data.targetUID; + towerInfo.Update(); + break; + } + } + } + } + + public void Update() + { + for (int i = 0; i < this.m_TowerList.Count; i++) + { + TowerInfo towerInfo = this.m_TowerList[i]; + bool flag = !XEntity.ValideEntity(towerInfo.Entity); + if (flag) + { + towerInfo.Destroy(); + XSingleton.singleton.AddGreenLog("Tower remove ", towerInfo.Entity.ID.ToString(), null, null, null, null); + this.m_TowerList.RemoveAt(i); + i--; + } + else + { + towerInfo.Update(); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMobaTowerTargetMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XMobaTowerTargetMgr.cs.meta new file mode 100644 index 00000000..cce17256 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMobaTowerTargetMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 80536cfe50914e04eb0b1777b7de1a09 +timeCreated: 1611404033 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMount.cs b/Client/Assets/Scripts/XMainClient/XMount.cs new file mode 100644 index 00000000..98908b21 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMount.cs @@ -0,0 +1,445 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMount : XEntity + { + public override string Prefab + { + get + { + return this._present.PresentLib.Prefab; + } + } + + public bool HasTurnPresetation + { + get + { + return this._has_turn_anims; + } + } + + public int AngularSpeed + { + get + { + return this._present.PresentLib.AngluarSpeed; + } + } + + public XEntity Copilot + { + get + { + bool flag = this._copilot_enabled && this._mount_component != null; + XEntity result; + if (flag) + { + result = this._mount_component.Copilot; + } + else + { + result = null; + } + return result; + } + } + + public override uint PresentID + { + get + { + return this._present_id; + } + } + + private static Dictionary _basic_rotation = new Dictionary(); + + private uint _present_id; + + private int _commandID = -1; + + private XEntity _mainbody = null; + + private Renderer _Render = null; + + private bool _castShadow = false; + + private bool _copilot_enabled = false; + + private string _prefab; + + private bool _has_turn_anims = false; + + private Transform _mountPoint0 = null; + + private Transform _mountPoint1 = null; + + private XFx _specialFx = null; + + private XFx _specialCopilotFx = null; + + private Quaternion _init_rotation0 = Quaternion.identity; + + private Quaternion _init_rotation1 = Quaternion.identity; + + protected XMountComponent _mount_component = null; + + private string _fx = ""; + + private static CommandCallback _initCb = new CommandCallback(XMount._Init); + + private static void _Init(XGameObject gameObject, object o, int commandID) + { + XMount xmount = o as XMount; + bool flag = xmount._mainbody == null || xmount._commandID != commandID; + if (flag) + { + XSingleton.singleton.AddErrorLog("assert error mount:", xmount.Name, null, null, null, null); + } + else + { + uint num = XSingleton.singleton.XHash(xmount._prefab); + Transform transform = gameObject.Find(""); + Vector3 zero = Vector3.zero; + xmount._mountPoint0 = XEquipDocument.GetMountPoint(transform, "Seat_horse"); + bool flag2 = xmount._mountPoint0 == null; + if (flag2) + { + zero.y = 0.8f; + xmount._mountPoint0 = transform; + } + xmount._mountPoint1 = XEquipDocument.GetMountPoint(transform, "Seat_follow"); + bool flag3 = xmount._mountPoint1 == null; + if (flag3) + { + xmount._mountPoint1 = transform; + } + bool flag4 = !XMount._basic_rotation.TryGetValue(num, out xmount._init_rotation0) && xmount._mountPoint0 != null; + if (flag4) + { + xmount._init_rotation0 = xmount._mountPoint0.localRotation; + XMount._basic_rotation.Add(num, xmount._init_rotation0); + } + bool flag5 = !XMount._basic_rotation.TryGetValue(num + 1u, out xmount._init_rotation1) && xmount._mountPoint1 != null; + if (flag5) + { + xmount._init_rotation1 = xmount._mountPoint1.localRotation; + XMount._basic_rotation.Add(num + 1u, xmount._init_rotation1); + } + int layer = xmount._mainbody.DefaultLayer; + bool flag6 = xmount._mainbody is XDummy; + if (flag6) + { + XDummy xdummy = xmount._mainbody as XDummy; + bool isUI = xdummy.IsUI; + if (isUI) + { + layer = XQualitySetting.UILayer; + } + } + GameObject gameObject2 = gameObject.Get(); + bool flag7 = XMount.ForceDisableEffect(xmount._mainbody); + XCommon.tmpRender.Clear(); + gameObject2.GetComponentsInChildren(XCommon.tmpRender); + int count = XCommon.tmpRender.Count; + int i = 0; + while (i < count) + { + Renderer renderer = XCommon.tmpRender[i]; + GameObject gameObject3 = renderer.gameObject; + string tag = renderer.gameObject.tag; + bool flag8 = gameObject3.CompareTag("Mount_BindedRes"); + bool flag9 = gameObject3.CompareTag("Mount") || flag8; + if (flag9) + { + bool flag10 = flag7 && flag8; + if (flag10) + { + renderer.enabled = false; + } + else + { + bool flag11 = renderer is SkinnedMeshRenderer; + if (flag11) + { + xmount._Render = renderer; + } + renderer.gameObject.layer = layer; + XRenderComponent.AddMountObj(xmount._mainbody, gameObject2, renderer); + } + } + IL_28D: + i++; + continue; + goto IL_28D; + } + XCommon.tmpRender.Clear(); + bool flag12 = xmount._mount_component != null; + if (flag12) + { + xmount._mount_component.RealMount(xmount._mountPoint0, zero, ref xmount._init_rotation0, xmount.Scale); + xmount._mount_component.RealMountCopilot(xmount._mountPoint1, Vector3.zero, ref xmount._init_rotation1, xmount.Scale); + } + xmount.RealMountFx(xmount._specialFx, false); + xmount.RealMountFx(xmount._specialCopilotFx, true); + } + } + + public bool Initilize(XEntity mainbody, uint present_id, bool isCopilot) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Mount; + this._copilot_enabled = isCopilot; + this._mainbody = mainbody; + this._layer = this._mainbody.DefaultLayer; + this._present_id = present_id; + this._castShadow = (((this._mainbody.Transformee != null) ? this._mainbody.Transformee.IsPlayer : this._mainbody.IsPlayer) && XQualitySetting._CastShadow); + this._prefab = "Prefabs/" + XSingleton.singleton.EntityInfo.GetByPresentID(present_id).Prefab; + bool flag = !isCopilot && this._mainbody.Equipment != null && !this._mainbody.Equipment.IsVisible; + if (flag) + { + this._xobject = XGameObject.CreateXGameObject("Prefabs/Empty_Mount", true, true); + } + else + { + this._xobject = XGameObject.CreateXGameObject(this._prefab, true, true); + } + this._xobject.Name = "mount_" + this._mainbody.ID.ToString(); + this._xobject.Tag = this._mainbody.EngineObject.Tag; + this._xobject.Layer = this._mainbody.EngineObject.Layer; + Vector3 position = this._mainbody.EngineObject.Position; + position.y += 0.05f; + this._xobject.Position = position; + this._xobject.Rotation = this._mainbody.EngineObject.Rotation; + bool result = this.Initilize(0); + this._xobject.EnableBC = this._mainbody.EngineObject.EnableBC; + this._xobject.EnableCC = this._mainbody.EngineObject.EnableCC; + return result; + } + + public override bool Initilize(int flag) + { + this._present = (XSingleton.singleton.CreateComponent(this, XPresentComponent.uuID) as XPresentComponent); + this._mount_component = (XSingleton.singleton.CreateComponent(this, XMountComponent.uuID) as XMountComponent); + this._has_turn_anims = (!string.IsNullOrEmpty(base.Present.PresentLib.RunLeft) && !string.IsNullOrEmpty(base.Present.PresentLib.RunRight)); + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && !string.IsNullOrEmpty(base.Present.PresentLib.AttackIdle); + if (flag2) + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.AttackIdle, true, false); + base.OverrideAnimClip("Walk", base.Present.PresentLib.AttackWalk, true, false); + base.OverrideAnimClip("Run", base.Present.PresentLib.AttackRun, true, false); + bool has_turn_anims = this._has_turn_anims; + if (has_turn_anims) + { + base.OverrideAnimClip("RunLeft", base.Present.PresentLib.AttackRunLeft, true, false); + base.OverrideAnimClip("RunRight", base.Present.PresentLib.AttackRunRight, true, false); + } + } + else + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.Idle, true, false); + base.OverrideAnimClip("Walk", base.Present.PresentLib.Walk, true, false); + base.OverrideAnimClip("Run", base.Present.PresentLib.Run, true, false); + bool has_turn_anims2 = this._has_turn_anims; + if (has_turn_anims2) + { + base.OverrideAnimClip("RunLeft", base.Present.PresentLib.RunLeft, true, false); + base.OverrideAnimClip("RunRight", base.Present.PresentLib.RunRight, true, false); + } + } + return true; + } + + public override void OnCreated() + { + base.OnCreated(); + this._mount_component.PreMount(this._mainbody); + this._commandID = XEngineCommand.GetCommandID(); + this._xobject.CallCommand(XMount._initCb, this, this._commandID, true); + this.InnerPlayFx(); + base.SetCollisionLayer(this._layer); + } + + public override void OnDestroy() + { + bool flag = this._xobject != null; + if (flag) + { + XRenderComponent.RemoveObj(this._mainbody, this._xobject.Get()); + } + this._mainbody = null; + this._commandID = -1; + this._mountPoint0 = null; + this._mountPoint1 = null; + base.OnDestroy(); + this.Uninitilize(); + } + + public override bool CastFakeShadow() + { + return this._mainbody.CastFakeShadow(); + } + + private void InnerPlayFx() + { + bool flag = this._fx != ""; + if (flag) + { + XSingleton.singleton.CreateAndPlay(this._fx, this.EngineObject, Vector3.zero, Vector3.one, 1f, false, 3f, true); + this._fx = ""; + } + } + + public void PlayFx(string fx) + { + this._fx = fx; + this.InnerPlayFx(); + } + + public void UnMountEntity(XEntity entity) + { + bool flag = this._mount_component != null; + if (flag) + { + this._mount_component.UnMount(entity); + } + } + + public void UnMountAll() + { + bool flag = this._mount_component != null; + if (flag) + { + this._mount_component.UnMountAll(); + } + } + + public bool MountCopilot(XEntity entity) + { + bool copilot_enabled = this._copilot_enabled; + bool result; + if (copilot_enabled) + { + bool flag = this._mount_component != null; + if (flag) + { + bool flag2 = this._mount_component.PreMountCopilot(entity); + bool flag3 = this._mountPoint1 != null; + if (flag3) + { + this._mount_component.RealMountCopilot(this._mountPoint1, Vector3.zero, ref this._init_rotation1, base.Scale); + } + result = flag2; + } + else + { + result = false; + } + } + else + { + XSingleton.singleton.AddErrorLog("Mountee ", this.ID.ToString(), " does not support a copilot.", null, null, null); + result = false; + } + return result; + } + + public float GetRadius() + { + bool flag = this._Render != null; + float result; + if (flag) + { + Vector3 extents = this._Render.bounds.extents; + float num = (extents.x > extents.y) ? extents.x : extents.y; + num = ((num > extents.z) ? num : extents.z); + result = num; + } + else + { + result = -1f; + } + return result; + } + + private static bool ForceDisableEffect(XEntity e) + { + return !XQualitySetting.GetQuality(EFun.ECommonHigh) && !e.IsPlayer; + } + + public void SetActive(bool enable) + { + bool flag = this._xobject != null && this._xobject.IsLoaded; + if (flag) + { + GameObject gameObject = this._xobject.Get(); + bool flag2 = gameObject != null; + if (flag2) + { + bool flag3 = XMount.ForceDisableEffect(this._mainbody); + XCommon.tmpRender.Clear(); + gameObject.GetComponentsInChildren(XCommon.tmpRender); + int count = XCommon.tmpRender.Count; + for (int i = 0; i < count; i++) + { + Renderer renderer = XCommon.tmpRender[i]; + string tag = renderer.gameObject.tag; + bool flag4 = tag.StartsWith("Mount"); + if (flag4) + { + bool flag5 = flag3 && tag.StartsWith("Mount_BindedRes"); + if (flag5) + { + renderer.enabled = false; + } + else + { + renderer.enabled = enable; + } + } + } + XCommon.tmpRender.Clear(); + } + } + } + + private void RealMountFx(XFx fx, bool copilot) + { + bool flag = fx != null; + if (flag) + { + Transform transform; + if (copilot) + { + transform = this._mountPoint1; + } + else + { + transform = this._mountPoint0; + } + fx.SetParent(this._xobject.Find(""), (transform != null) ? transform.localPosition : Vector3.zero, Quaternion.identity, Vector3.one); + } + } + + public void MountFx(XFx fx, bool copilot) + { + if (copilot) + { + this._specialCopilotFx = fx; + } + else + { + this._specialFx = fx; + } + bool flag = this._xobject != null && this._xobject.IsLoaded; + if (flag) + { + this.RealMountFx(fx, copilot); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMount.cs.meta b/Client/Assets/Scripts/XMainClient/XMount.cs.meta new file mode 100644 index 00000000..98e40160 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMount.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e40fff2229a37f4f951c57284466249 +timeCreated: 1611403201 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMountComponent.cs b/Client/Assets/Scripts/XMainClient/XMountComponent.cs new file mode 100644 index 00000000..4e4203b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMountComponent.cs @@ -0,0 +1,160 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMountComponent : XComponent + { + public override uint ID + { + get + { + return XMountComponent.uuID; + } + } + + public XEntity Copilot + { + get + { + return this._mount_copilotMainBody; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MountComponent"); + + private XEntity _mountMainBody = null; + + private XEntity _mount_copilotMainBody = null; + + public void PreMount(XEntity entity) + { + bool flag = XEntity.ValideEntity(entity); + if (flag) + { + bool flag2 = this._mountMainBody != null; + if (!flag2) + { + this._mountMainBody = entity; + this._mountMainBody.OnMount(this._entity as XMount, false); + } + } + } + + public void RealMount(Transform mountPoint, Vector3 pos, ref Quaternion basic_rotation, float mountScale) + { + bool flag = mountPoint == null || !XEntity.ValideEntity(this._mountMainBody); + if (!flag) + { + XMountComponent._Mount(this._mountMainBody, mountPoint, pos, ref basic_rotation, mountScale); + } + } + + public bool PreMountCopilot(XEntity entity) + { + bool flag = XEntity.ValideEntity(entity); + bool result; + if (flag) + { + bool flag2 = this._mount_copilotMainBody != null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = entity.Machine != null; + if (flag3) + { + entity.Machine.ForceToDefaultState(false); + } + entity.LookTo(this._entity.MoveObj.Forward); + this._mount_copilotMainBody = entity; + this._mount_copilotMainBody.OnMount(this._entity as XMount, true); + result = true; + } + } + else + { + result = false; + } + return result; + } + + public void RealMountCopilot(Transform mountPoint, Vector3 pos, ref Quaternion basic_rotation, float mountScale) + { + bool flag = mountPoint == null || !XEntity.ValideEntity(this._mount_copilotMainBody); + if (!flag) + { + XMountComponent._Mount(this._mount_copilotMainBody, mountPoint, pos, ref basic_rotation, mountScale); + } + } + + public void UnMount(XEntity entity) + { + bool flag = this._mountMainBody == entity; + if (flag) + { + bool flag2 = this._mountMainBody == null; + if (!flag2) + { + this.UnMountAll(); + } + } + else + { + bool flag3 = this._mount_copilotMainBody == entity; + if (flag3) + { + bool flag4 = this._mount_copilotMainBody == null; + if (!flag4) + { + this._UnMount(ref this._mount_copilotMainBody); + } + } + } + } + + public void UnMountAll() + { + bool flag = this._mount_copilotMainBody != null; + if (flag) + { + this._UnMount(ref this._mount_copilotMainBody); + } + bool flag2 = this._mountMainBody != null; + if (flag2) + { + this._UnMount(ref this._mountMainBody); + } + } + + private static void _Mount(XEntity mainBody, Transform mountPoint, Vector3 pos, ref Quaternion basic_rotation, float mountScale) + { + bool flag = mountScale > 0f; + if (flag) + { + mountScale = 1f / mountScale; + } + mainBody.EngineObject.SetParentTrans(mountPoint); + mainBody.EngineObject.SetLocalPRS(pos, true, Quaternion.Inverse(basic_rotation), true, Vector3.one * mountScale, true); + } + + private void _UnMount(ref XEntity mountEntity) + { + bool flag = !mountEntity.Destroying; + if (flag) + { + Vector3 position = this._entity.EngineObject.Position; + position.y += 0.5f; + mountEntity.EngineObject.SetParent(null); + mountEntity.EngineObject.Position = position; + mountEntity.EngineObject.Rotation = this._entity.EngineObject.Rotation; + mountEntity.EngineObject.LocalScale = Vector3.one; + mountEntity.OnMount(null, false); + } + mountEntity = null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMountComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XMountComponent.cs.meta new file mode 100644 index 00000000..69796f66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMountComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 13c281a4ae5e0064bab259d5010c50bd +timeCreated: 1611403250 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMultiPkLoadingBehaviour.cs b/Client/Assets/Scripts/XMainClient/XMultiPkLoadingBehaviour.cs new file mode 100644 index 00000000..4dfabb71 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMultiPkLoadingBehaviour.cs @@ -0,0 +1,39 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XMultiPkLoadingBehaviour : DlgBehaviourBase + { + public IXUITweenTool m_PkLoadingTween; + + public IXUILabel[] m_Name = new IXUILabel[4]; + + public IXUILabel[] m_Score = new IXUILabel[4]; + + public IXUISprite[] m_Prefession = new IXUISprite[4]; + + public IXUITexture[] m_HalfPic = new IXUITexture[4]; + + private void Awake() + { + this.m_PkLoadingTween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform = base.transform.Find("Bg/Left"); + Transform transform2 = base.transform.Find("Bg/Right"); + this.GetComp(transform.Find("P1").gameObject, 0); + this.GetComp(transform.Find("P2").gameObject, 1); + this.GetComp(transform2.Find("P3").gameObject, 2); + this.GetComp(transform2.Find("P4").gameObject, 3); + } + + public void GetComp(GameObject go, int index) + { + this.m_Name[index] = (go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_Score[index] = (go.transform.Find("Score").GetComponent("XUILabel") as IXUILabel); + this.m_Prefession[index] = (go.transform.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_HalfPic[index] = (go.transform.Find("HalfPic").GetComponent("XUITexture") as IXUITexture); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMultiPkLoadingBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XMultiPkLoadingBehaviour.cs.meta new file mode 100644 index 00000000..d8a076da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMultiPkLoadingBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 993a122d340f87c4aa0e634769cfed9b +timeCreated: 1611404194 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMultiPkLoadingView.cs b/Client/Assets/Scripts/XMainClient/XMultiPkLoadingView.cs new file mode 100644 index 00000000..4827d7df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMultiPkLoadingView.cs @@ -0,0 +1,128 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMultiPkLoadingView : DlgBase + { + public override string fileName + { + get + { + return "Common/PkLoadingDlg2"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public bool IsLoadingOver + { + get + { + return this._isLoadingOver; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + private XQualifyingDocument _doc = null; + + private bool _isLoadingOver = false; + + protected override void Init() + { + base.Init(); + this._isLoadingOver = false; + this._doc = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + } + + public void ShowPkLoading() + { + this.SetVisible(true, true); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LoadingOver), null); + this.SetRoleInfo(); + } + + protected override void OnHide() + { + base.OnHide(); + for (int i = 0; i < base.uiBehaviour.m_HalfPic.Length; i++) + { + base.uiBehaviour.m_HalfPic[i].SetTexturePath(""); + } + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + private void LoadingOver(object o) + { + this._isLoadingOver = true; + } + + private void SetRoleInfo() + { + int num = 0; + while (num < this._doc.PkInfoList.Count && num < 4) + { + base.uiBehaviour.m_Name[num].SetText(this._doc.PkInfoList[num].brief.roleName); + base.uiBehaviour.m_Score[num].SetText(this._doc.PkInfoList[num].point.ToString()); + int num2 = (int)this._doc.PkInfoList[num].brief.roleProfession; + bool flag = XAttributes.GetCategory(this._doc.PkInfoList[num].brief.roleID) > EntityCategory.Category_Role; + if (flag) + { + num2 %= 10; + } + base.uiBehaviour.m_Prefession[num].SetSprite(XSingleton.singleton.GetProfIcon(num2)); + string halfPic = XSingleton.singleton.GetHalfPic(this._doc.PkInfoList[num].brief.roleProfession % 10u); + base.uiBehaviour.m_HalfPic[num].SetTexturePath("atlas/UI/common/2DAvatar/" + halfPic); + num++; + } + } + + public void HidePkLoading() + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_PkLoadingTween.PlayTween(true, -1f); + base.uiBehaviour.m_PkLoadingTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPkLoadingTweenFinish)); + } + } + + private void OnPkLoadingTweenFinish(IXUITweenTool tween) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMultiPkLoadingView.cs.meta b/Client/Assets/Scripts/XMainClient/XMultiPkLoadingView.cs.meta new file mode 100644 index 00000000..5c699043 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMultiPkLoadingView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e7cd83270b20ac479d1e748d3305277 +timeCreated: 1611403204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMyTeamHandler.cs b/Client/Assets/Scripts/XMainClient/XMyTeamHandler.cs new file mode 100644 index 00000000..33c0e6d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMyTeamHandler.cs @@ -0,0 +1,1324 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMyTeamHandler : DlgHandlerBase + { + public static readonly int SMALL_TEAM_CAPACITY = 4; + + public static readonly int LARGE_TEAM_CAPACITY = 8; + + public GameObject m_StartHighlight; + + public IXUIButton m_BtnStart; + + public IXUIButton m_BtnBroadcast; + + public IXUIButton m_BtnMatchMembers; + + public IXUISprite m_BtnSetting; + + public IXUISprite m_BtnLeave; + + private Vector3 m_PosLeave; + + private Vector3 m_PosStart; + + public IXUILabel m_MatchMembersIdleLabel; + + public IXUILabel m_MatchMembersMatchingLabel; + + public IXUILabel m_StartLabel; + + public XUIPool m_MemberPoolSmall = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_MemberPoolLarge = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_BtnAddCount; + + private IXUISprite m_BtnHelper; + + private IXUISprite m_HelperSelected; + + private IXUISprite m_BtnTicket; + + private IXUISprite m_TicketSelected; + + private IXUILabel m_PPTRequirement; + + private GameObject m_PPTRequirementTotal; + + private GameObject m_GoldGroup; + + private GameObject m_GoldGroupDescri; + + private XTeamDocument doc; + + private XExpeditionDocument expDoc; + + private XCaptainPVPDocument capDoc; + + private XHeroBattleDocument heroDoc; + + private XPrerogativeDocument preDoc; + + private XDragonNestDocument dragonDoc; + + private XTeamBonusHandler m_BonusHandler = null; + + private XTeamPartnerBonusHandler m_FriendBonusHandler = null; + + private XTeamSettingHandler m_SettingHandler = null; + + private XTeamPasswordHandler m_PasswordHandler = null; + + private XDummy[] m_Avatars = new XDummy[XMyTeamHandler.SMALL_TEAM_CAPACITY]; + + private IUIDummy[] m_UIDummys = new IUIDummy[XMyTeamHandler.SMALL_TEAM_CAPACITY]; + + private int m_MemberCount = 0; + + private Dictionary m_DicFriendDegree = new Dictionary(); + + private Dictionary m_ChatTimerToken = new Dictionary(); + + private List m_preEffects = new List(); + + private bool m_bDirty; + + private HashSet m_MilitaryIconTypes = new HashSet(); + + private float guildInviteTime = 0f; + + private ulong m_SelectedMemberID; + + protected override void Init() + { + base.Init(); + this.m_BtnStart = (base.PanelObject.transform.Find("BtnStart").GetComponent("XUIButton") as IXUIButton); + this.m_BtnBroadcast = (base.PanelObject.transform.Find("BtnBroadcast").GetComponent("XUIButton") as IXUIButton); + this.m_BtnMatchMembers = (base.PanelObject.transform.Find("BtnMatchMembers").GetComponent("XUIButton") as IXUIButton); + this.m_StartHighlight = this.m_BtnStart.gameObject.transform.Find("Highlight").gameObject; + this.m_BtnSetting = (base.PanelObject.transform.Find("BtnTeamSetting").GetComponent("XUISprite") as IXUISprite); + this.m_BtnLeave = (base.PanelObject.transform.Find("BtnLeave").GetComponent("XUISprite") as IXUISprite); + this.m_PosLeave = this.m_BtnLeave.gameObject.transform.localPosition; + this.m_PosStart = this.m_BtnStart.gameObject.transform.localPosition; + Transform transform = base.PanelObject.transform.Find("Panel/MemberTpl4"); + this.m_MemberPoolSmall.SetupPool(transform.parent.gameObject, transform.gameObject, 4u, false); + transform = base.PanelObject.transform.Find("Panel/MemberTpl6"); + this.m_MemberPoolLarge.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_MatchMembersIdleLabel = (this.m_BtnMatchMembers.gameObject.transform.Find("IdleLabel").GetComponent("XUILabel") as IXUILabel); + this.m_MatchMembersMatchingLabel = (this.m_BtnMatchMembers.gameObject.transform.Find("MatchingLabel").GetComponent("XUILabel") as IXUILabel); + this.m_StartLabel = (this.m_BtnStart.gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel); + this.m_BtnAddCount = (base.PanelObject.transform.Find("BtnAddCount").GetComponent("XUIButton") as IXUIButton); + this.m_BtnHelper = (base.PanelObject.transform.Find("BtnHelper").GetComponent("XUISprite") as IXUISprite); + this.m_HelperSelected = (base.PanelObject.transform.Find("BtnHelper/Selected").GetComponent("XUISprite") as IXUISprite); + this.m_BtnTicket = (base.PanelObject.transform.Find("BtnTicket").GetComponent("XUISprite") as IXUISprite); + this.m_TicketSelected = (base.PanelObject.transform.Find("BtnTicket/Selected").GetComponent("XUISprite") as IXUISprite); + this.m_PPTRequirementTotal = base.PanelObject.transform.Find("BattlePoint").gameObject; + this.m_PPTRequirement = (this.m_PPTRequirementTotal.gameObject.transform.Find("Num").GetComponent("XUILabel") as IXUILabel); + this.m_GoldGroup = base.PanelObject.transform.Find("RewardHunt").gameObject; + this.m_GoldGroupDescri = this.m_GoldGroup.transform.Find("Description").gameObject; + this.doc = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + this.doc.MyTeamView = this; + this.expDoc = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + this.capDoc = XDocuments.GetSpecificDocument(XCaptainPVPDocument.uuID); + this.heroDoc = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + this.preDoc = XDocuments.GetSpecificDocument(XPrerogativeDocument.uuID); + this.dragonDoc = XDocuments.GetSpecificDocument(XDragonNestDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this.m_BonusHandler, base.PanelObject.transform.Find("GuildBonusFrame").gameObject, null, true); + DlgHandlerBase.EnsureCreate(ref this.m_FriendBonusHandler, base.PanelObject.transform.Find("FriendBonusFrame").gameObject, this, true); + DlgHandlerBase.EnsureCreate(ref this.m_PasswordHandler, base.PanelObject.transform.Find("PasswordFrame").gameObject, this, false); + DlgHandlerBase.EnsureCreate(ref this.m_SettingHandler, base.PanelObject.transform, false, this); + this.m_FriendBonusHandler.bConsiderTeam = true; + base.Alloc3DAvatarPool("XMyTeamHandler", 1); + this.m_DicFriendDegree.Clear(); + this.m_MilitaryIconTypes.Clear(); + List intList = XSingleton.singleton.GetIntList("TeamMilitaryIconTypes"); + this.m_MilitaryIconTypes.UnionWith(intList); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_BtnStart.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnStartBtnClick)); + this.m_BtnBroadcast.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnBroadcastBtnClick)); + this.m_BtnMatchMembers.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnMatchMembersBtnClick)); + this.m_BtnLeave.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnMemberLeaveClick)); + this.m_BtnAddCount.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnAddCountClicked)); + this.m_BtnHelper.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnHelperClicked)); + this.m_BtnSetting.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSettingBtnClicked)); + this.m_BtnTicket.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnTicketClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("XMyTeamHandler", 4); + this.RefreshPage(); + this.ShowChat(true); + this.m_bDirty = false; + } + + protected override void OnHide() + { + XSingleton.singleton.EnableMainDummy(false, null); + base.Return3DAvatarPool(); + this._ClearAvatarStates(); + this._ClearChatTimer(); + this._ClearPreEffect(); + this._ResetUIDummyCallback(); + this.ShowChat(false); + base.OnHide(); + } + + private void ShowChat(bool show) + { + ShowSettingArgs showSettingArgs = new ShowSettingArgs(); + if (show) + { + showSettingArgs.position = 1; + showSettingArgs.needforceshow = true; + showSettingArgs.forceshow = true; + showSettingArgs.needdepth = true; + showSettingArgs.depth = 4; + } + else + { + showSettingArgs.position = 0; + showSettingArgs.needforceshow = true; + showSettingArgs.forceshow = false; + showSettingArgs.needdepth = true; + showSettingArgs.depth = 0; + showSettingArgs.anim = false; + } + DlgBase.singleton.ShowChatMiniUI(showSettingArgs); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("XMyTeamHandler", 4); + this.RefreshPage(); + this.ShowChat(true); + DlgBase.singleton.SetForceShow(true); + } + + public override void LeaveStackTop() + { + DlgBase.singleton.SetForceShow(false); + this.ShowChat(false); + this._ResetUIDummyCallback(); + base.LeaveStackTop(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_BonusHandler); + DlgHandlerBase.EnsureUnload(ref this.m_FriendBonusHandler); + DlgHandlerBase.EnsureUnload(ref this.m_SettingHandler); + DlgHandlerBase.EnsureUnload(ref this.m_PasswordHandler); + this._ClearChatTimer(); + this._ClearPreEffect(); + this.doc.MyTeamView = null; + this.m_DicFriendDegree.Clear(); + DlgBase.singleton.SetForceShow(false); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool bDirty = this.m_bDirty; + if (bDirty) + { + this.RefreshPage(); + this.m_bDirty = false; + } + } + + private void _ClearChatTimer() + { + foreach (uint token in this.m_ChatTimerToken.Values) + { + XSingleton.singleton.KillTimer(token); + } + this.m_ChatTimerToken.Clear(); + } + + private void _CloseChatTimer(ulong uid) + { + uint token = 0u; + bool flag = this.m_ChatTimerToken.TryGetValue(uid, out token); + if (flag) + { + XSingleton.singleton.KillTimer(token); + this.m_ChatTimerToken.Remove(uid); + } + } + + private void _ClearAvatarStates() + { + for (int i = 0; i < XMyTeamHandler.SMALL_TEAM_CAPACITY; i++) + { + bool flag = this.m_Avatars[i] == null; + if (!flag) + { + this.m_Avatars[i] = null; + } + } + } + + private void _RefreshAvatarStates() + { + } + + private void CheckTicketStates(bool userTicket = false) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID((int)this.doc.currentDungeonID); + bool flag = expeditionDataByID != null; + if (flag) + { + uint num = expeditionDataByID.UseTicket[0]; + uint num2 = expeditionDataByID.UseTicket[1]; + bool flag2 = num > 0u; + if (flag2) + { + XLevelSealDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint sealType = specificDocument2.SealType; + bool flag3 = num2 <= sealType; + if (flag3) + { + this.m_BtnTicket.SetAlpha(1f); + this.m_TicketSelected.SetAlpha(userTicket ? 1f : 0f); + return; + } + } + } + this.m_BtnTicket.SetAlpha(0f); + this.m_TicketSelected.SetAlpha(0f); + } + + public void RefreshPage() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool bInTeam = this.doc.bInTeam; + if (bInTeam) + { + int count = this.doc.MyTeam.members.Count; + int playerNumber = this.doc.currentExpInfo.PlayerNumber; + bool bIsLeader = this.doc.bIsLeader; + this.m_BtnStart.SetVisible(bIsLeader); + this.m_BtnMatchMembers.SetVisible(bIsLeader); + this.m_BtnBroadcast.SetVisible(bIsLeader); + this.m_BtnSetting.SetVisible(bIsLeader && this.doc.currentExpInfo.CostType.Count != 0); + this.m_BtnLeave.gameObject.transform.localPosition = (bIsLeader ? this.m_PosLeave : this.m_PosStart); + this.m_BtnHelper.SetAlpha((this.doc.currentExpInfo.CanHelp == 0 || bIsLeader) ? 0f : 1f); + this.m_HelperSelected.SetAlpha(this.doc.bIsHelper ? 1f : 0f); + this.m_PPTRequirementTotal.SetActive(this.doc.MyTeam.teamBrief.teamPPT > 0u); + this.m_PPTRequirement.SetText(this.doc.MyTeam.teamBrief.GetStrTeamPPT(double.MaxValue)); + this.doc.MyTeam.teamBrief.goldGroup.SetUI(this.m_GoldGroup, true); + this.m_GoldGroupDescri.SetActive(!bIsLeader); + this.RefreshButtonStates(); + this.CheckTicketStates(this.doc.bIsTecket); + bool flag2 = !this.m_bDirty; + if (flag2) + { + XSingleton.singleton.ClearDummy(this.m_dummPool); + this._ClearAvatarStates(); + } + bool flag3 = this.doc.currentExpInfo != null && !this.doc.currentExpInfo.ShowPPT; + bool flag4 = !flag3; + if (flag4) + { + this.m_BonusHandler.SetVisible(true); + this.m_FriendBonusHandler.SetVisible(true); + this.m_BonusHandler.Refresh(); + this.m_FriendBonusHandler.RefreshData(); + } + else + { + this.m_BonusHandler.SetVisible(false); + this.m_FriendBonusHandler.SetVisible(false); + } + this.m_PasswordHandler.RefreshState(); + bool flag5 = this.doc.currentExpInfo == null || this.doc.currentExpInfo.PlayerNumber <= XMyTeamHandler.SMALL_TEAM_CAPACITY; + this.m_MemberPoolSmall.FakeReturnAll(); + this.m_MemberPoolLarge.FakeReturnAll(); + int num = Math.Max(playerNumber, flag5 ? XMyTeamHandler.SMALL_TEAM_CAPACITY : XMyTeamHandler.LARGE_TEAM_CAPACITY); + this.m_MemberCount = num; + Vector3 vector = flag5 ? this.m_MemberPoolSmall.TplPos : this.m_MemberPoolLarge.TplPos; + this._ClearUIDummy(); + this._ClearPreEffect(); + for (int i = 0; i < num; i++) + { + bool flag6 = flag5; + GameObject gameObject; + if (flag6) + { + gameObject = this.m_MemberPoolSmall.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(vector.x + (float)(i * this.m_MemberPoolSmall.TplWidth), vector.y, vector.z); + } + else + { + gameObject = this.m_MemberPoolLarge.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(vector.x + (float)(i % 4 * this.m_MemberPoolLarge.TplWidth), vector.y - (float)(i / 4 * this.m_MemberPoolLarge.TplHeight), vector.z); + } + bool flag7 = i < count; + if (flag7) + { + this._SetMember(gameObject, this.doc.MyTeam.members[i], true, i, flag5); + } + else + { + bool flag8 = i < playerNumber; + if (flag8) + { + this._SetMember(gameObject, null, true, i, flag5); + } + else + { + this._SetMember(gameObject, null, false, i, flag5); + } + } + } + this.m_MemberPoolSmall.ActualReturnAll(false); + this.m_MemberPoolLarge.ActualReturnAll(false); + } + else + { + DlgBase.singleton.ShowTeamView(); + } + } + } + + private void _TryCreateFriendDegreeHandler(GameObject go) + { + XTeamFriendDegreeHandler value; + bool flag = this.m_DicFriendDegree.TryGetValue(go, out value); + if (!flag) + { + DlgHandlerBase.EnsureCreate(ref value, go.transform.Find("Info/FriendDegreeFrame").gameObject, null, true); + this.m_DicFriendDegree.Add(go, value); + } + } + + public void HideChatUI(object obj) + { + IXUISprite ixuisprite = obj as IXUISprite; + ixuisprite.SetVisible(false); + ixuisprite.ID = 0UL; + } + + private void _ClearUIDummy() + { + for (int i = 0; i < this.m_UIDummys.Length; i++) + { + bool flag = this.m_UIDummys[i] != null; + if (flag) + { + this.m_UIDummys[i].RefreshRenderQueue = null; + this.m_UIDummys[i] = null; + } + } + } + + private void _ClearPreEffect() + { + bool flag = this.m_preEffects != null; + if (flag) + { + int i = 0; + int count = this.m_preEffects.Count; + while (i < count) + { + bool flag2 = this.m_preEffects[i] != null; + if (flag2) + { + XSingleton.singleton.DestroyFx(this.m_preEffects[i], true); + } + i++; + } + this.m_preEffects.Clear(); + } + } + + private void _ResetUIDummyCallback() + { + for (int i = 0; i < this.m_UIDummys.Length; i++) + { + bool flag = this.m_UIDummys[i] != null; + if (!flag) + { + break; + } + this.m_UIDummys[i].RefreshRenderQueue = null; + } + } + + private void _SetMember(GameObject go, XTeamMember data, bool bActive, int index, bool bSmallMember) + { + GameObject gameObject = go.transform.Find("Info").gameObject; + GameObject gameObject2 = go.transform.Find("OpMenu").gameObject; + IXUILabel ixuilabel = go.transform.Find("Lock").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject3 = go.transform.Find("BgSmall").gameObject; + IXUIButton ixuibutton = go.transform.Find("BtnInvite").GetComponent("XUIButton") as IXUIButton; + Transform transform = go.transform.Find("Loading"); + IXUISprite ixuisprite = go.transform.Find("Bg_GoldGroup").GetComponent("XUISprite") as IXUISprite; + gameObject.SetActive(data != null && bActive); + gameObject2.SetActive(data != null && bActive); + gameObject3.SetActive(bActive); + ixuibutton.SetVisible(data == null && bActive); + bool flag = ixuibutton.IsVisible(); + if (flag) + { + GameObject gameObject4 = ixuibutton.gameObject.transform.Find("LetsMakeFriends").gameObject; + bool flag2 = this.doc.currentDungeonType == TeamLevelType.TeamLevelWedding || this.doc.currentDungeonType == TeamLevelType.TeamLevelWeddingLicense; + if (flag2) + { + gameObject4.SetActive(false); + } + else + { + gameObject4.SetActive(this.doc.MyTeam.members.Count == index); + } + } + bool flag3 = transform != null; + if (flag3) + { + transform.gameObject.SetActive(data != null && bActive); + } + if (bActive) + { + ixuilabel.SetVisible(false); + } + else + { + ixuilabel.SetVisible(true); + ixuilabel.SetText(XStringDefineProxy.GetString("TEAM_MAX_MEMBER_COUNT", new object[] + { + this.doc.currentExpInfo.PlayerNumber + })); + } + IXUISprite ixuisprite2 = go.transform.Find("chatvoice").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite3 = go.transform.Find("chattext").GetComponent("XUISprite") as IXUISprite; + bool flag4 = bActive || data == null || !this.m_ChatTimerToken.ContainsKey(data.uid); + if (flag4) + { + ixuisprite2.SetVisible(false); + ixuisprite3.SetVisible(false); + } + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnInviteBtnClick)); + IXUISprite ixuisprite4 = go.transform.Find("Bg").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite5 = go.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite5.ID = (ulong)((long)index); + ixuisprite5.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnMemberClicked)); + bool flag5 = data == null; + if (flag5) + { + ixuisprite.SetSprite("", "", false); + } + else + { + bool flag6 = data.uid == XSingleton.singleton.XPlayerData.RoleID; + IXUILabel ixuilabel2 = gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol = ixuilabel2.gameObject.GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel3 = gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject5 = gameObject.transform.Find("Leader").gameObject; + Transform transform2 = gameObject.transform.Find("Snapshot"); + transform2.gameObject.SetActive(true); + IXUISprite ixuisprite6 = gameObject.transform.Find("ProfIcon").GetComponent("XUISprite") as IXUISprite; + GameObject gameObject6 = gameObject.transform.Find("Helper").gameObject; + IXUISprite ixuisprite7 = gameObject.transform.Find("Rewardless").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite8 = gameObject.transform.Find("MilitaryRank").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite9 = gameObject.transform.Find("DragonMedal").GetComponent("XUISprite") as IXUISprite; + ixuisprite9.gameObject.SetActive(false); + Transform transform3 = gameObject.transform.Find("CrossServer"); + GameObject gameObject7 = gameObject.transform.Find("Mysterious").gameObject; + IXUISprite ixuisprite10 = gameObject.transform.Find("Regression").GetComponent("XUISprite") as IXUISprite; + ixuisprite10.SetVisible(data.regression); + ixuilabelSymbol.InputText = XSingleton.singleton.StringCombine(data.name, XWelfareDocument.GetMemberPrivilegeIconString(data.paymemberid), XRechargeDocument.GetVIPIconString(data.vip)); + bool flag7 = flag6; + if (flag7) + { + ixuilabel2.SetColor(new Color(0.9137255f, 0.819607854f, 0.607843161f)); + } + else + { + ixuilabel2.SetColor(new Color(0.572549045f, 0.7137255f, 0.9490196f)); + } + ixuilabel3.SetText(flag6 ? XSingleton.singleton.XPlayerData.Level.ToString() : data.level.ToString()); + gameObject5.SetActive(data.bIsLeader); + GameObject gameObject8 = gameObject.transform.Find("BattlePointBG").gameObject; + bool flag8 = this.doc.currentExpInfo != null && !this.doc.currentExpInfo.ShowPPT; + if (flag8) + { + gameObject8.SetActive(false); + } + else + { + gameObject8.SetActive(true); + IXUILabel ixuilabel4 = gameObject8.transform.Find("Power").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite11 = gameObject8.transform.Find("SisterTA").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel5 = ixuisprite11.transform.Find("Info").GetComponent("XUILabel") as IXUILabel; + bool flag9 = ixuilabel5 != null; + if (flag9) + { + ixuilabel5.SetVisible(false); + } + uint num = 0u; + bool flag10 = flag6; + bool flag11; + if (flag10) + { + num = (uint)XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + flag11 = this.doc.TryGetPveProfessionPPT(this.doc.IsTarja, XSingleton.singleton.XPlayerData.TypeID, ref num); + } + else + { + num = data.ppt; + flag11 = this.doc.TryGetPveProfessionPPT(data.IsTarja, (uint)XFastEnumIntEqualityComparer.ToInt(data.profession), ref num); + } + ixuisprite11.SetVisible(flag11); + ixuilabel4.SetText(flag11 ? string.Format("[c][f1d309]{0}[-][/c]", num) : num.ToString()); + ixuisprite11.ID = 0UL; + ixuisprite11.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnShowTarjaTipHandle)); + } + int profID = XFastEnumIntEqualityComparer.ToInt(data.profession); + ixuisprite6.spriteName = XSingleton.singleton.GetProfIcon(profID); + this._SetRelation(gameObject, data, flag6); + gameObject6.SetActive(data.bIsHelper); + ixuisprite7.SetVisible(!data.bIsHelper && this.dragonDoc.GetDragonNestRewardlessLevel(this.doc.currentDungeonID) <= data.level); + ixuisprite7.RegisterSpritePressEventHandler(new SpritePressEventHandler(this._OnRewardlessPressed)); + ixuisprite7.transform.Find("Popup").gameObject.SetActive(false); + this._SetLeftCount(gameObject, data, flag6); + if (bSmallMember) + { + bool active = this._SetMemberAvatar(transform2, data, index); + transform.gameObject.SetActive(active); + } + else + { + IXUISprite ixuisprite12 = transform2.GetComponent("XUISprite") as IXUISprite; + ixuisprite12.SetSprite(XSingleton.singleton.GetProfHeadIcon2(profID)); + } + bool flag12 = ixuisprite3.ID != data.uid; + if (flag12) + { + this._CloseChatTimer(ixuisprite3.ID); + ixuisprite3.SetVisible(false); + ixuisprite3.ID = 0UL; + } + bool flag13 = ixuisprite2.ID != data.uid; + if (flag13) + { + this._CloseChatTimer(ixuisprite2.ID); + ixuisprite2.SetVisible(false); + ixuisprite2.ID = 0UL; + } + IXUISprite ixuisprite13 = gameObject2.transform.Find("Kick").GetComponent("XUISprite") as IXUISprite; + ixuisprite13.ID = (ulong)((long)index); + ixuisprite13.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnMemberLeaveClick)); + IXUISprite ixuisprite14 = gameObject2.transform.Find("LeaderCommission").GetComponent("XUISprite") as IXUISprite; + ixuisprite14.ID = (ulong)((long)index); + ixuisprite14.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnChangeLeaderClick)); + bool flag14 = flag6 && this.doc.bInTeam; + if (flag14) + { + this.m_BtnLeave.ID = (ulong)((long)index); + ixuisprite13.SetVisible(false); + } + else + { + ixuisprite13.SetVisible(this.doc.bIsLeader); + } + ixuisprite14.SetVisible(this.doc.bIsLeader && !data.bIsLeader); + string text = string.Empty; + bool flag15 = this.doc.bInTeam && data.bIsLeader && this.doc.MyTeam.teamBrief.goldGroup.type > GoldGroupType.GGT_NONE; + if (flag15) + { + bool flag16 = this.doc.MyTeam.teamBrief.goldGroup.type == GoldGroupType.GGT_DIAMOND; + if (flag16) + { + text = XSingleton.singleton.GetValue("TeamFrame_gct_1"); + } + else + { + bool flag17 = this.doc.MyTeam.teamBrief.goldGroup.type == GoldGroupType.GGT_TICKET; + if (flag17) + { + text = XSingleton.singleton.GetValue("TeamFrame_gct_2"); + } + } + } + else + { + bool flag18 = flag6; + if (flag18) + { + text = this.preDoc.GetPreContent(PrerogativeType.PreTeamBorder); + } + else + { + bool flag19 = data.outlook != null && data.outlook.pre != null; + if (flag19) + { + text = XPrerogativeDocument.ConvertTypeToPreContent(PrerogativeType.PreTeamBorder, data.outlook.pre.setid); + } + else + { + text = XPrerogativeDocument.ConvertTypeToPreContent(PrerogativeType.PreTeamBorder, 0u); + } + } + } + bool flag20 = false; + bool flag21 = !string.IsNullOrEmpty(text); + if (flag21) + { + string[] array = text.Split(XGlobalConfig.SequenceSeparator); + bool flag22 = array.Length >= 2; + if (flag22) + { + flag20 = true; + ixuisprite.SetSprite(array[1], array[0], false); + } + } + bool flag23 = !flag20; + if (flag23) + { + ixuisprite.SetSprite("", "", false); + } + List ids = null; + bool flag24 = !flag6 && data.outlook.pre == null; + if (flag24) + { + XSingleton.singleton.AddGreenLog("data.outlook.pre is null", null, null, null, null, null); + } + bool flag25 = !flag6 && data.outlook.pre != null; + if (flag25) + { + uint score = data.outlook.pre.score; + ids = data.outlook.pre.setid; + } + string text2 = flag6 ? this.preDoc.GetPreContent(PrerogativeType.PreTeamBackground) : XPrerogativeDocument.ConvertTypeToPreContent(PrerogativeType.PreTeamBackground, ids); + string text3 = string.Empty; + bool flag26 = !string.IsNullOrEmpty(text2); + if (flag26) + { + string[] array2 = text2.Split(XGlobalConfig.ListSeparator); + text3 = ((!bSmallMember && array2.Length > 1) ? array2[1] : array2[0]); + } + bool flag27 = !string.IsNullOrEmpty(text3); + if (flag27) + { + XFx item = XSingleton.singleton.CreateUIFx(text3, ixuisprite.transform, false); + this.m_preEffects.Add(item); + } + bool flag28 = this.m_MilitaryIconTypes.Contains(XFastEnumIntEqualityComparer.ToInt(this.doc.currentDungeonType)); + if (flag28) + { + string militaryIcon = XMilitaryRankDocument.GetMilitaryIcon((data.outlook != null && data.outlook.military != null) ? data.outlook.military.military_rank : 0u); + bool flag29 = string.IsNullOrEmpty(militaryIcon); + if (flag29) + { + ixuisprite8.SetVisible(false); + } + else + { + ixuisprite8.SetVisible(true); + ixuisprite8.SetSprite(militaryIcon); + } + } + else + { + ixuisprite8.SetVisible(false); + } + bool flag30 = transform3 != null && this.doc.MyTeam != null && this.doc.MyTeam.myData != null; + if (flag30) + { + bool flag31 = flag6; + if (flag31) + { + transform3.gameObject.SetActive(false); + } + else + { + transform3.gameObject.SetActive(this.doc.MyTeam.myData.ServerID != data.ServerID); + } + } + bool flag32 = gameObject7 != null; + if (flag32) + { + bool flag33 = this.doc.MyTeam.teamBrief.rift != null && data.bIsLeader; + if (flag33) + { + gameObject7.SetActive(true); + this.doc.MyTeam.teamBrief.rift.SetUI(gameObject7); + } + else + { + gameObject7.SetActive(false); + } + } + } + } + + private void _SetRelation(GameObject infoGo, XTeamMember data, bool bIsPlayer) + { + if (bIsPlayer) + { + XTeamView.SetTeamRelationUI(infoGo.transform.Find("Relation"), null, false, XTeamRelation.Relation.TR_NONE); + } + else + { + data.Relation.UpdateRelation(data.uid, data.guildID, data.dragonGuildID); + XTeamView.SetTeamRelationUI(infoGo.transform.Find("Relation"), data.Relation, false, XTeamRelation.Relation.TR_NONE); + } + IXUILabel ixuilabel = infoGo.transform.Find("FriendValue").GetComponent("XUILabel") as IXUILabel; + if (bIsPlayer) + { + ixuilabel.SetVisible(false); + } + else + { + ixuilabel.SetVisible(true); + XFriendData friendDataById = DlgBase.singleton.GetFriendDataById(data.uid); + bool flag = friendDataById != null; + if (flag) + { + ixuilabel.SetText(friendDataById.degreeAll.ToString()); + } + else + { + ixuilabel.SetText("0"); + } + } + } + + private void _SetLeftCount(GameObject infoGo, XTeamMember data, bool bIsPlayer) + { + IXUILabel ixuilabel = infoGo.transform.Find("LeftCount").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = infoGo.transform.Find("NoCount").gameObject; + bool flag = data.leftCount < 0; + if (flag) + { + ixuilabel.SetVisible(true); + ixuilabel.SetText(XStringDefineProxy.GetString("TEAM_TARGET_NOT_OPEN")); + gameObject.SetActive(false); + } + else + { + bool flag2 = data.leftCount == 0 && this.doc.currentDungeonType != TeamLevelType.TeamLevelCaptainPVP && this.doc.currentDungeonType != TeamLevelType.TeamLevelMoba && this.doc.currentDungeonType != TeamLevelType.TeamLevelHeroBattle && this.doc.currentDungeonType != TeamLevelType.TeamLevelDragonNest && this.doc.currentDungeonType != TeamLevelType.TeamLevelTeamLeague && !data.bIsHelper && !data.bIsTicket; + if (flag2) + { + ixuilabel.SetVisible(false); + gameObject.SetActive(this.doc.currentExpInfo.CostCountType != 0); + } + else + { + bool flag3 = this.doc.currentDungeonType == TeamLevelType.TeamLevelGoddessTrial || this.doc.currentDungeonType == TeamLevelType.TeamLevelEndlessAbyss; + if (flag3) + { + ixuilabel.SetVisible(true); + ixuilabel.SetText(string.Format("{0}/{1}", bIsPlayer ? this.doc.GetMyDayCount() : data.leftCount, this.doc.GetCurrentDayMaxCount())); + gameObject.SetActive(false); + } + else + { + ixuilabel.SetVisible(false); + gameObject.SetActive(false); + } + } + } + } + + private bool OnShowTarjaTipHandle(IXUISprite sprite, bool pressed) + { + IXUILabel ixuilabel = sprite.transform.Find("Info").GetComponent("XUILabel") as IXUILabel; + bool flag = ixuilabel == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = sprite.ID == 1UL; + if (flag2) + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TEAM_TARJA_DESC_TEAM"))); + } + else + { + ixuilabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("TEAM_TARJA_DESC"))); + } + ixuilabel.SetVisible(pressed); + result = false; + } + return result; + } + + private string _GetSceneDescription(SceneTable.RowData rowData) + { + SceneType type = (SceneType)rowData.type; + if (type <= SceneType.SCENE_GUILD_HALL) + { + switch (type) + { + case SceneType.SCENE_HALL: + case SceneType.SCENE_ARENA: + break; + case SceneType.SCENE_BATTLE: + return XStringDefineProxy.GetString("MASTER_DUNGEON"); + case SceneType.SCENE_NEST: + case (SceneType)4: + goto IL_84; + default: + if (type != SceneType.SCENE_GUILD_HALL) + { + goto IL_84; + } + break; + } + return rowData.Comment; + } + if (type == SceneType.SCENE_ABYSSS) + { + return XStringDefineProxy.GetString("ABYSS_DUNGEON"); + } + if (type == SceneType.SCENE_GODDESS) + { + return XStringDefineProxy.GetString("GODDESS_DUNGEON"); + } + if (type == SceneType.SCENE_ENDLESSABYSS) + { + return XStringDefineProxy.GetString("EndlessAbyss"); + } + IL_84: + return rowData.Comment; + } + + private void _OnDummyLoaded(XEquipComponent equipComp) + { + this.m_bDirty = true; + } + + private bool _SetMemberAvatar(Transform snapShot, XTeamMember data, int index) + { + bool result = false; + XDummy xdummy = null; + IUIDummy iuidummy = snapShot.GetComponent("UIDummy") as IUIDummy; + this.m_UIDummys[index] = iuidummy; + bool flag = data.uid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + XSingleton.singleton.EnableMainDummy(true, iuidummy); + XSingleton.singleton.ResetMainAnimation(); + } + else + { + xdummy = XSingleton.singleton.FindCreateCommonRoleDummy(this.m_dummPool, data.uid, (uint)XFastEnumIntEqualityComparer.ToInt(data.profession), data.outlook, iuidummy, index); + bool flag2 = xdummy != null; + if (flag2) + { + bool delayLoad = XSingleton.singleton.DelayLoad; + if (delayLoad) + { + xdummy.Equipment.SetLoadFinishedCallback(new LoadFinishedCallback(this._OnDummyLoaded)); + } + } + this.m_Avatars[index] = xdummy; + } + bool flag3 = xdummy != null; + if (flag3) + { + result = xdummy.Equipment.IsLoadingPart(); + } + return result; + } + + public void RefreshButtonStates() + { + this.m_BtnAddCount.SetVisible(this.expDoc.GetBuyLimit(this.doc.currentDungeonType) > 0); + bool bInTeam = this.doc.bInTeam; + if (bInTeam) + { + this.m_BtnStart.SetGrey(this.doc.MyTeam.members.Count >= this.doc.currentExpInfo.PlayerLeastNumber); + this.m_BtnStart.SetGrey(this.doc.currentDungeonType != TeamLevelType.TeamLevelPartner); + bool flag = this.doc.currentDungeonType == TeamLevelType.TeamLevelWeddingLicense; + if (flag) + { + this.m_BtnStart.SetGrey(false); + } + this.m_StartHighlight.SetActive(false); + bool bIsLeader = this.doc.bIsLeader; + bool flag2 = bIsLeader; + if (flag2) + { + bool flag3 = this.doc.currentDungeonType == TeamLevelType.TeamLevelCaptainPVP || this.doc.currentDungeonType == TeamLevelType.TeamLevelHeroBattle || this.doc.currentDungeonType == TeamLevelType.TeamLevelMoba || this.doc.currentDungeonType == TeamLevelType.TeamLevelMultiPK || this.doc.currentDungeonType == TeamLevelType.TeamLevelWeekendParty || this.doc.currentDungeonType == TeamLevelType.TeamLevelCustomPKTwo; + if (flag3) + { + this.m_BtnStart.SetVisible(false); + this.m_BtnMatchMembers.SetVisible(true); + } + else + { + this.m_BtnStart.SetVisible(true); + this.m_BtnMatchMembers.SetVisible(false); + } + } + else + { + this.m_BtnStart.SetVisible(false); + this.m_BtnMatchMembers.SetVisible(false); + } + IXUILabel ixuilabel = this.m_BtnStart.gameObject.transform.Find("Label").GetComponent("XUILabel") as IXUILabel; + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + bool flag4 = this.doc.currentDungeonType == TeamLevelType.TeamLevelTeamLeague; + if (flag4) + { + this.m_BtnStart.SetVisible(bIsLeader && specificDocument.TeamLeagueID == 0UL); + this.m_BtnMatchMembers.SetVisible(bIsLeader && specificDocument.TeamLeagueID > 0UL); + ixuilabel.SetText(XSingleton.singleton.GetString("CREATE_TEAM_LEAGUE")); + } + else + { + ixuilabel.SetText(XSingleton.singleton.GetString("START_FIGHT")); + } + this.m_MatchMembersIdleLabel.SetVisible(!this.doc.bMatching); + this.m_MatchMembersMatchingLabel.SetVisible(this.doc.bMatching); + bool flag5 = this.m_BtnBroadcast.IsVisible(); + if (flag5) + { + this.m_BtnBroadcast.SetEnable(true, false); + } + } + } + + private bool _OnStartBtnClick(IXUIButton go) + { + bool flag = !this.doc.bIsLeader; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.doc.currentDungeonType == TeamLevelType.TeamLevelPartner || this.doc.currentDungeonType == TeamLevelType.TeamLevelWeddingLicense; + if (flag2) + { + result = true; + } + else + { + bool flag3 = this.doc.MyTeam.members.Count < this.doc.currentExpInfo.PlayerLeastNumber && go == this.m_BtnStart; + if (flag3) + { + bool flag4 = this.doc.currentDungeonType == TeamLevelType.TeamLevelGuildMine; + if (flag4) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("TEAM_LACK_OF_MEMBERS_CONFIRM", new object[] + { + this.doc.currentExpInfo.PlayerLeastNumber.ToString() + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._OnStartConfirmBtnClick)); + return true; + } + } + bool flag5 = this.doc.currentDungeonType == TeamLevelType.TeamLevelGuildMine; + if (flag5) + { + XGuildMineEntranceDocument specificDocument = XDocuments.GetSpecificDocument(XGuildMineEntranceDocument.uuID); + specificDocument.ReqEnterMine(); + } + else + { + bool flag6 = this.doc.currentDungeonType == TeamLevelType.TeamLevelTeamLeague; + if (flag6) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + this.doc.ReqTeamOp(TeamOperate.TEAM_START_BATTLE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + } + result = true; + } + } + return result; + } + + private bool _OnStartConfirmBtnClick(IXUIButton btn) + { + this._OnStartBtnClick(btn); + XSingleton.singleton.CloseModalDlg(); + return true; + } + + private bool _OnBroadcastBtnClick(IXUIButton go) + { + bool flag = this.doc.MyTeam == null; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = !string.IsNullOrEmpty(this.doc.password); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CantBroadCastCausePassword"), "fece00"); + result = true; + } + else + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + TeamLevelType currentDungeonType = this.doc.currentDungeonType; + NoticeType noticeType; + if (currentDungeonType != TeamLevelType.TeamLevelExpdition && currentDungeonType != TeamLevelType.TeamLevelNest) + { + if (currentDungeonType != TeamLevelType.TeamLevelGuildCamp) + { + noticeType = NoticeType.NT_INVITE_NORMALTEAM; + } + else + { + noticeType = NoticeType.NT_INVITE_GUILDTEAM; + } + } + else + { + noticeType = NoticeType.NT_INVITE_NORMALTEAM; + } + bool flag3 = noticeType != NoticeType.NT_INVITE_GUILDTEAM || this._CanSendGuildInvite(true); + if (flag3) + { + specificDocument.SendTeamInvitation(noticeType, (uint)this.doc.MyTeam.teamBrief.teamID, this.doc.MyTeam.teamBrief.dungeonID, this.doc.currentDungeonName); + } + XGuildDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument2.bInGuild; + if (bInGuild) + { + bool flag4 = this._CanSendGuildInvite(false); + if (flag4) + { + specificDocument.SendTeamInvitation(NoticeType.NT_INVITE_GUILDTEAM, (uint)this.doc.MyTeam.teamBrief.teamID, this.doc.MyTeam.teamBrief.dungeonID, this.doc.currentDungeonName); + } + } + result = true; + } + } + return result; + } + + private bool _CanSendGuildInvite(bool bShowTips) + { + float time = Time.time; + int @int = XSingleton.singleton.GetInt("GuildBroadcastCD"); + bool flag = time - this.guildInviteTime >= (float)@int; + bool result; + if (flag) + { + this.guildInviteTime = time; + result = true; + } + else + { + if (bShowTips) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("GUILD_BROADCAST_TIMELIMIT", new object[] + { + ((int)((float)@int - time + this.guildInviteTime + 1f)).ToString() + }), "fece00"); + } + result = false; + } + return result; + } + + private bool _OnMatchMembersBtnClick(IXUIButton go) + { + TeamLevelType currentDungeonType = this.doc.currentDungeonType; + if (currentDungeonType != TeamLevelType.TeamLevelCaptainPVP) + { + switch (currentDungeonType) + { + case TeamLevelType.TeamLevelHeroBattle: + case TeamLevelType.TeamLevelMultiPK: + case TeamLevelType.TeamLevelWeekendParty: + case TeamLevelType.TeamLevelMoba: + case TeamLevelType.TeamLevelCustomPKTwo: + break; + case TeamLevelType.TeamLevelTeamLeague: + { + XFreeTeamVersusLeagueDocument specificDocument = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + specificDocument.ReqMatchGame(!this.doc.bMatching); + return true; + } + case TeamLevelType.TeamLevelFestival: + case TeamLevelType.TeamLevelTask: + case TeamLevelType.TeamLevelSkyCraft: + return true; + default: + return true; + } + } + KMatchType type = XTeamDocument.TeamType2MatchType(this.doc.currentDungeonType); + KMatchOp op = (!this.doc.bMatching) ? KMatchOp.KMATCH_OP_START : KMatchOp.KMATCH_OP_STOP; + this.doc.ReqMatchStateChange(type, op, true); + return true; + } + + private bool _OnOpenListBtnClick(IXUIButton go) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private void _OnSettingBtnClicked(IXUISprite go) + { + this.m_SettingHandler.SetVisible(true); + } + + private bool _OnChatBtnClick(IXUIButton go) + { + DlgBase.singleton.ShowChannel(ChatChannelType.Team); + return true; + } + + private bool _OnInviteBtnClick(IXUIButton go) + { + bool flag = this.doc.currentDungeonType == TeamLevelType.TeamLevelWedding; + if (flag) + { + RoleOutLookBrief teamLoverRole = XWeddingDocument.Doc.GetTeamLoverRole(); + bool flag2 = teamLoverRole != null; + if (flag2) + { + this.doc.ReqTeamOp(TeamOperate.TEAM_INVITE, teamLoverRole.roleid, null, TeamMemberType.TMT_NORMAL, null); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WeddingLoverInviteTip", new object[] + { + teamLoverRole.name + }), "fece00"); + } + } + else + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + return true; + } + + private void _OnMemberLeaveClick(IXUISprite go) + { + int num = (int)go.ID; + bool flag = !this.doc.bInTeam || num >= this.doc.MyTeam.members.Count; + if (!flag) + { + this.m_SelectedMemberID = this.doc.MyTeam.members[num].uid; + bool flag2 = this.m_SelectedMemberID == XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + this.doc.ReqTeamOp(TeamOperate.TEAM_LEAVE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + else + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("TEAM_FIREMEMBER_CONFIRM", new object[] + { + this.doc.MyTeam.members[num].name + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._DoFireFromTeam)); + } + } + } + + private bool _DoFireFromTeam(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this.doc.ReqTeamOp(TeamOperate.TEAM_KICK, this.m_SelectedMemberID, null, TeamMemberType.TMT_NORMAL, null); + return true; + } + + private void _OnChangeLeaderClick(IXUISprite go) + { + int num = (int)go.ID; + bool flag = !this.doc.bInTeam || num >= this.doc.MyTeam.members.Count; + if (!flag) + { + this.m_SelectedMemberID = this.doc.MyTeam.members[num].uid; + bool flag2 = this.m_SelectedMemberID != XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("TEAM_CHANGELEADER_CONFIRM", new object[] + { + this.doc.MyTeam.members[num].name + }), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this._DoChangeLeader)); + } + } + } + + private bool _DoChangeLeader(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this.doc.ReqTeamOp(TeamOperate.TEAM_TRAHS_LEADER, this.m_SelectedMemberID, null, TeamMemberType.TMT_NORMAL, null); + return true; + } + + private void _OnMemberClicked(IXUISprite go) + { + bool flag = !this.doc.bInTeam; + if (!flag) + { + int num = (int)go.ID; + bool flag2 = num < this.doc.MyTeam.members.Count; + if (flag2) + { + XTeamMember xteamMember = this.doc.MyTeam.members[num]; + bool flag3 = xteamMember.uid == XSingleton.singleton.XPlayerData.RoleID; + if (!flag3) + { + bool flag4 = !xteamMember.bIsRobot; + if (flag4) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(xteamMember.uid, false); + } + } + } + } + } + + private bool _OnAddCountClicked(IXUIButton btn) + { + DlgBase.singleton.ActiveShow(this.doc.currentDungeonType); + return true; + } + + private void _OnHelperClicked(IXUISprite sp) + { + this.doc.ReqTeamOp(TeamOperate.TEAM_MEMBER_TYPE, 0UL, null, this.doc.bIsHelper ? TeamMemberType.TMT_NORMAL : TeamMemberType.TMT_HELPER, null); + } + + private void _OnTicketClicked(IXUISprite sp) + { + this.doc.ReqTeamOp(TeamOperate.TEAM_MEMBER_TYPE, 0UL, null, this.doc.bIsTecket ? TeamMemberType.TMT_NORMAL : TeamMemberType.TMT_USETICKET, null); + } + + private bool _OnRewardlessPressed(IXUISprite sp, bool isPress) + { + Transform transform = sp.transform.Find("Popup"); + transform.gameObject.SetActive(isPress); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMyTeamHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XMyTeamHandler.cs.meta new file mode 100644 index 00000000..5a2c51ab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMyTeamHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe2fce9e32048354ab0dc7ac2bcaf2cd +timeCreated: 1611404939 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMystShopDocument.cs b/Client/Assets/Scripts/XMainClient/XMystShopDocument.cs new file mode 100644 index 00000000..5cc0fcca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMystShopDocument.cs @@ -0,0 +1,76 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMystShopDocument : XDocComponent + { + public override uint ID + { + get + { + return XMystShopDocument.uuID; + } + } + + public List GoodsList + { + get + { + return this.m_goodsList; + } + } + + public XMystShopView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public uint refreshCost + { + get + { + return this._refreshCost; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MystShopDocument"); + + private List m_goodsList = new List(); + + private XMystShopView _view = null; + + private uint refreshTimer = 0u; + + private uint _refreshCost = 0u; + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + XSingleton.singleton.KillTimer(this.refreshTimer); + this.refreshTimer = 0u; + } + + public void ReqOperateMystShop(MythShopOP operation, int index = 0) + { + } + + private void _QueryMythShop(object o = null) + { + this.ReqOperateMystShop(MythShopOP.MythShopQuery, 0); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMystShopDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XMystShopDocument.cs.meta new file mode 100644 index 00000000..84f16b97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMystShopDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e164c50cddd79c24e9ec816eb306dc21 +timeCreated: 1611404701 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMystShopGoods.cs b/Client/Assets/Scripts/XMainClient/XMystShopGoods.cs new file mode 100644 index 00000000..07818bda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMystShopGoods.cs @@ -0,0 +1,8 @@ +using System; + +namespace XMainClient +{ + internal class XMystShopGoods + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMystShopGoods.cs.meta b/Client/Assets/Scripts/XMainClient/XMystShopGoods.cs.meta new file mode 100644 index 00000000..33efaf85 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMystShopGoods.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84d41b617d7063940af6f74273ec697e +timeCreated: 1611404050 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XMystShopView.cs b/Client/Assets/Scripts/XMainClient/XMystShopView.cs new file mode 100644 index 00000000..b95c7157 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMystShopView.cs @@ -0,0 +1,142 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XMystShopView : DlgHandlerBase + { + private XUIPool m_ShopItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_ShopItemList = new List(); + + private XMystShopDocument _doc = null; + + private GameObject refreshConfirmPanel; + + private IXUIButton refreshConfirmOK; + + private IXUIButton refreshConfirmCancel; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XMystShopDocument.uuID); + this._doc.View = this; + GameObject gameObject = base.PanelObject.transform.Find("Panel").gameObject; + GameObject gameObject2 = base.PanelObject.transform.Find("Panel/ShopItemTpl").gameObject; + this.m_ShopItemPool.SetupPool(gameObject, gameObject2, 6u, false); + string[] array = XSingleton.singleton.GetValue("shopTimming").Split(XGlobalConfig.ListSeparator); + string text = ""; + foreach (string str in array) + { + text = text + str + ":00 "; + } + IXUILabel ixuilabel = base.PanelObject.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("MYSTSHOP_REFRESH_TIME", new object[] + { + text + })); + this.refreshConfirmPanel = base.PanelObject.transform.Find("RefreshConfirm").gameObject; + this.refreshConfirmOK = (this.refreshConfirmPanel.transform.Find("P/OK").GetComponent("XUIButton") as IXUIButton); + this.refreshConfirmCancel = (this.refreshConfirmPanel.transform.Find("P/Cancel").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + IXUIButton ixuibutton = base.PanelObject.transform.Find("BtnRefresh").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshBtnClicked)); + this.refreshConfirmOK.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshBtnOKClicked)); + this.refreshConfirmCancel.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshBtnCancelClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.ReqOperateMystShop(MythShopOP.MythShopQuery, 0); + this.refreshConfirmPanel.SetActive(false); + } + + protected override void OnHide() + { + base.OnHide(); + this.refreshConfirmPanel.SetActive(false); + } + + public override void OnUnload() + { + this._doc.View = null; + base.OnUnload(); + } + + public void RefreshGoodsList() + { + List goodsList = this._doc.GoodsList; + int num = Math.Max(goodsList.Count, this.m_ShopItemList.Count); + for (int i = this.m_ShopItemList.Count; i < num; i++) + { + GameObject gameObject = this.m_ShopItemPool.FetchGameObject(false); + this.m_ShopItemList.Add(gameObject); + IXUIButton ixuibutton = gameObject.transform.Find("BtnBuy").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite = gameObject.transform.Find("Item/Icon").GetComponent("XUISprite") as IXUISprite; + ixuibutton.ID = (ulong)((long)i); + ixuisprite.ID = (ulong)((long)i); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnItemBuyClicked)); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemIconClicked)); + } + num = Math.Min(goodsList.Count, this.m_ShopItemList.Count); + for (int j = this.m_ShopItemList.Count - 1; j >= num; j--) + { + GameObject go = this.m_ShopItemList[j]; + this.m_ShopItemList.RemoveAt(j); + this.m_ShopItemPool.ReturnInstance(go, false); + } + for (int k = 0; k < goodsList.Count; k++) + { + XMystShopGoods goods = goodsList[k]; + GameObject gameObject2 = this.m_ShopItemList[k]; + this.UpdateGoodsInfo(goods, gameObject2); + gameObject2.transform.localPosition = new Vector3(this.m_ShopItemPool.TplPos.x + (float)(k % 3 * this.m_ShopItemPool.TplWidth), this.m_ShopItemPool.TplPos.y - (float)(k / 3 * this.m_ShopItemPool.TplHeight), this.m_ShopItemPool.TplPos.z); + } + } + + private void UpdateGoodsInfo(XMystShopGoods goods, GameObject shopItem) + { + } + + private void OnItemIconClicked(IXUISprite iSp) + { + } + + private bool OnItemBuyClicked(IXUIButton btn) + { + this._doc.ReqOperateMystShop(MythShopOP.MythShopBuy, (int)btn.ID); + return true; + } + + private bool OnRefreshBtnClicked(IXUIButton btn) + { + this.refreshConfirmPanel.SetActive(true); + IXUILabel ixuilabel = this.refreshConfirmPanel.transform.Find("P/Cost").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._doc.refreshCost.ToString()); + return true; + } + + private bool OnRefreshBtnOKClicked(IXUIButton btn) + { + this.refreshConfirmPanel.SetActive(false); + this._doc.ReqOperateMystShop(MythShopOP.MythShopRefresh, 0); + return true; + } + + private bool OnRefreshBtnCancelClicked(IXUIButton btn) + { + this.refreshConfirmPanel.SetActive(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XMystShopView.cs.meta b/Client/Assets/Scripts/XMainClient/XMystShopView.cs.meta new file mode 100644 index 00000000..86edfd77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XMystShopView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06dde9928b1687b468eab6f64957f5c6 +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNPCFavorDocument.cs b/Client/Assets/Scripts/XMainClient/XNPCFavorDocument.cs new file mode 100644 index 00000000..95f70dfc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNPCFavorDocument.cs @@ -0,0 +1,1596 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNPCFavorDocument : XDocComponent + { + public override uint ID + { + get + { + return XNPCFavorDocument.uuID; + } + } + + public List NPCIds + { + get + { + XNPCFavorDocument.CheckNpcIds(); + return XNPCFavorDocument.m_NpcIds; + } + } + + public List UnionIds + { + get + { + XNPCFavorDocument.CheckUnionIds(); + return XNPCFavorDocument.m_UnionIds; + } + } + + public Dictionary DictSumAttr + { + get + { + return this.m_DictSumAttr; + } + } + + public ItemBrief Role2NPC + { + get + { + return this.m_role2npc; + } + } + + public ItemBrief NPC2Role + { + get + { + return this.m_npc2role; + } + } + + public uint ExchangeNPCID + { + get + { + return this.m_exchangeNPCId; + } + } + + public uint NpcFlLevTop + { + get + { + return this.npcFlLevTop; + } + } + + public uint GiveLeftCount + { + get + { + return this.giveLeftCount; + } + private set + { + uint num = this.giveLeftCount; + this.giveLeftCount = value; + bool flag = (num == 0u && this.giveLeftCount > 0u) || (num > 0u && this.giveLeftCount == 0u); + if (flag) + { + XNPCFavorFxChangeArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + this.SetupNpcHeadFx(); + } + } + } + + public uint BuyLeftCount + { + get + { + return this.buyLeftCount; + } + private set + { + this.buyLeftCount = value; + } + } + + public uint BuyCost + { + get + { + return this.buyCost; + } + } + + public bool IsNeedShowRedpoint + { + get + { + return this.m_NeedRedPointShow; + } + set + { + this.m_NeedRedPointShow = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_NPCFavor, true); + } + } + + public bool HasNewNpcActive + { + get + { + return this.m_HasNew; + } + set + { + this.m_HasNew = value; + this.IsNeedShowRedpoint = (this.m_HasNew || this.m_UnionRedPoint || this.m_CanLevelUpNpc); + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.SetTabRedpoint(XNPCFavorDlg.TabIndex.Relics, this.m_HasNew || this.m_CanLevelUpNpc); + } + } + } + + public bool HasCanLevelUpNpc + { + get + { + return this.m_CanLevelUpNpc; + } + set + { + this.m_CanLevelUpNpc = value; + this.IsNeedShowRedpoint = (this.m_HasNew || this.m_UnionRedPoint || this.m_CanLevelUpNpc); + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.SetTabRedpoint(XNPCFavorDlg.TabIndex.Relics, this.m_HasNew || this.m_CanLevelUpNpc); + } + } + } + + public bool HasNewUnionActive + { + get + { + return this.m_UnionRedPoint; + } + set + { + this.m_UnionRedPoint = value; + this.IsNeedShowRedpoint = (this.m_HasNew || this.m_UnionRedPoint || this.m_CanLevelUpNpc); + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.SetTabRedpoint(XNPCFavorDlg.TabIndex.Union, this.m_UnionRedPoint); + } + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("NPCFavorDocument"); + + public static StringBuilder sb = new StringBuilder(); + + private const string FX_CanSendGift = "Effects/FX_Particle/Scene/Lzg_scene/rwts_07"; + + private const string FX_CanExchange = "Effects/FX_Particle/Scene/Lzg_scene/rwts_05"; + + private const string FX_SendSuccess = "Effects/FX_Particle/Scene/Lzg_scene/NPC_aixin_Clip01"; + + private const string FX_ChangeSuccess = "Effects/FX_Particle/Scene/Lzg_scene/NPC_aixin_Clip01"; + + private const string FX_FireWorkFx = "Effects/FX_Particle/UIfx/UI_yh"; + + private List m_Fxes = new List(); + + private Dictionary m_FxDict = new Dictionary(); + + private XFx fireWorkFx = null; + + public XNPCFavorDlg View; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static NpcFeeling _npcInfoTable = new NpcFeeling(); + + public static NpcFeelingAttr _npcAttrTable = new NpcFeelingAttr(); + + public static NpcUniteAttr _npcUnionAttrTable = new NpcUniteAttr(); + + private Dictionary m_DictSumAttr = new Dictionary(); + + private static List m_NpcIds = null; + + private static List m_UnionIds = null; + + private List npcfavorrole; + + private List activedNpc; + + private List activedUnites; + + private ItemBrief m_role2npc; + + private ItemBrief m_npc2role; + + private uint m_exchangeNPCId = 0u; + + private bool m_NeedRedPointShow = false; + + private bool m_HasNew = false; + + private bool m_CanLevelUpNpc = false; + + private bool m_UnionRedPoint = false; + + private uint giveLeftCount = 0u; + + private uint buyLeftCount = 0u; + + private uint buyCost = 0u; + + private uint npcFlLevTop = uint.MaxValue; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.SetupNpcHeadFx(); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + this.SetupNpcHeadFx(); + } + + public override void OnLeaveScene() + { + this.ClearFx(); + base.OnLeaveScene(); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XNPCFavorDocument.AsyncLoader.AddTask("Table/NpcFeeling", XNPCFavorDocument._npcInfoTable, false); + XNPCFavorDocument.AsyncLoader.AddTask("Table/NpcFeelingAttr", XNPCFavorDocument._npcAttrTable, false); + XNPCFavorDocument.AsyncLoader.AddTask("Table/NpcUniteAttr", XNPCFavorDocument._npcUnionAttrTable, false); + XNPCFavorDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_TaskStateChange, new XComponent.XEventHandler(this.OnTaskStateChange)); + } + + protected void SetupNpcHeadFx() + { + List npcs = XSingleton.singleton.GetNpcs(XSingleton.singleton.SceneID); + bool flag = npcs == null; + if (!flag) + { + this.ClearFx(); + for (int i = 0; i < npcs.Count; i++) + { + this.SetupFixNpcHeadFx(npcs[i]); + } + } + } + + private bool SetupFixNpcHeadFx(uint xnpcid) + { + NpcFeelingOneNpc oneNpcByXId = this.GetOneNpcByXId(xnpcid); + bool flag = oneNpcByXId == null; + bool result; + if (flag) + { + result = false; + } + else + { + XNpc npc = XSingleton.singleton.GetNpc(xnpcid); + bool flag2 = npc == null; + if (flag2) + { + result = false; + } + else + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + XTaskInfo xtaskInfo = null; + NpcTaskState npcTaskState = specificDocument.GetNpcTaskState(npc.TypeID, ref xtaskInfo); + bool flag3 = npcTaskState == NpcTaskState.Normal || npcTaskState == NpcTaskState.Invalid || npcTaskState == NpcTaskState.TaskInprocess; + if (flag3) + { + string text = null; + bool flag4 = this.IsShowExchangeFx(oneNpcByXId); + if (flag4) + { + text = "Effects/FX_Particle/Scene/Lzg_scene/rwts_05"; + } + else + { + bool flag5 = this.IsShowLoveFx(oneNpcByXId); + if (flag5) + { + text = "Effects/FX_Particle/Scene/Lzg_scene/rwts_07"; + } + } + bool flag6 = text != null; + if (flag6) + { + this.PlayNPCFX(npc, xnpcid, text, true, -1f); + } + } + result = (npcTaskState == NpcTaskState.TaskInprocess); + } + } + return result; + } + + private void RefreshNpcHeadFxById(uint npcid) + { + uint npcXIdById = XNPCFavorDocument.GetNpcXIdById(npcid); + bool flag = this.m_FxDict.ContainsKey(npcXIdById); + if (flag) + { + XFx xfx = this.m_FxDict[npcXIdById]; + this.m_Fxes.Remove(xfx); + this.m_FxDict.Remove(npcXIdById); + XSingleton.singleton.DestroyFx(xfx, true); + } + bool flag2 = this.SetupFixNpcHeadFx(npcXIdById); + if (flag2) + { + XNPCFavorFxChangeArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } + + private void OnNPCActiveSuccess() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshData(); + } + this.PlayFireWorkFx(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCLevelUpSuccess"), "fece00"); + } + + private void OnUnionActiveSuccess() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshData(); + } + this.PlayFireWorkFx(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCActiveUnionSuccess"), "fece00"); + } + + private void OnTriggerExchange(uint npcId) + { + uint npcXIdById = XNPCFavorDocument.GetNpcXIdById(npcId); + bool flag = npcXIdById > 0u; + if (flag) + { + XNPCFavorDrama xnpcfavorDrama = XNPCFavorDocument.IsNpcDialogVisible(); + bool flag2 = xnpcfavorDrama != null; + if (flag2) + { + xnpcfavorDrama.RefreshOperateStatus(false, null); + } + this.PlayFireWorkFx(); + bool flag3 = this.m_FxDict.ContainsKey(npcXIdById); + if (flag3) + { + bool flag4 = string.Equals(this.m_FxDict[npcXIdById].FxName, "Effects/FX_Particle/Scene/Lzg_scene/rwts_05"); + if (!flag4) + { + bool flag5 = string.Equals(this.m_FxDict[npcXIdById].FxName, "Effects/FX_Particle/Scene/Lzg_scene/rwts_07"); + if (flag5) + { + XFx xfx = this.m_FxDict[npcXIdById]; + this.m_Fxes.Remove(xfx); + XSingleton.singleton.DestroyFx(xfx, true); + this.PlayNPCFX(null, npcXIdById, "Effects/FX_Particle/Scene/Lzg_scene/rwts_05", true, -1f); + } + } + } + } + } + + private void PlayNPCFX(XNpc npc, uint xnpcid, string FxName, bool add = false, float delayDestroy = -1f) + { + bool flag = npc == null; + if (flag) + { + npc = XSingleton.singleton.GetNpc(xnpcid); + } + bool flag2 = npc == null; + if (!flag2) + { + XFx xfx = XSingleton.singleton.CreateFx(FxName, null, true); + bool flag3 = xfx != null; + if (flag3) + { + this.m_Fxes.Add(xfx); + xfx.Play(npc.EngineObject, new Vector3(-0.05f, npc.Height + 0.7f, 0f), Vector3.one, 1f, true, false, "", 0f); + bool flag4 = delayDestroy > 0f; + if (flag4) + { + xfx.DelayDestroy = delayDestroy; + } + if (add) + { + bool flag5 = this.m_FxDict.ContainsKey(xnpcid); + if (flag5) + { + this.m_FxDict[xnpcid] = xfx; + } + else + { + this.m_FxDict.Add(xnpcid, xfx); + } + } + } + } + } + + private void PlayOneTimeNPCFX(XNpc npc, uint xnpcid, string FxName, float delayDestroy) + { + bool flag = npc == null; + if (flag) + { + npc = XSingleton.singleton.GetNpc(xnpcid); + } + bool flag2 = npc == null; + if (!flag2) + { + XFx xfx = XSingleton.singleton.CreateFx(FxName, null, true); + bool flag3 = xfx != null; + if (flag3) + { + xfx.Play(npc.EngineObject, new Vector3(-0.05f, npc.Height, 0f), Vector3.one, 1f, true, false, "", 0f); + xfx.DelayDestroy = delayDestroy; + XSingleton.singleton.DestroyFx(xfx, false); + } + } + } + + public void PlayFx(uint xnpcid, string FxName) + { + this.PlayOneTimeNPCFX(null, xnpcid, FxName, 4f); + } + + private bool OnTaskStateChange(XEventArgs e) + { + this.SetupNpcHeadFx(); + return true; + } + + public void PlayFireWorkFx() + { + bool flag = this.fireWorkFx == null; + if (flag) + { + Transform uiroot = XSingleton.singleton.UIRoot; + bool flag2 = uiroot != null; + if (flag2) + { + Transform transform = uiroot.Find("Camera"); + bool flag3 = transform != null; + if (flag3) + { + this.fireWorkFx = XSingleton.singleton.CreateUIFx("Effects/FX_Particle/UIfx/UI_yh", transform, false); + } + } + } + else + { + this.fireWorkFx.Play(); + } + } + + public void PlaySendSuccessFx(uint xnpcid) + { + this.PlayFx(xnpcid, "Effects/FX_Particle/Scene/Lzg_scene/NPC_aixin_Clip01"); + } + + public void PlayExchangeSuccessFx(uint xnpcid) + { + this.PlayFx(xnpcid, "Effects/FX_Particle/Scene/Lzg_scene/NPC_aixin_Clip01"); + } + + public bool IsShowFavorFx(uint xnpcId) + { + NpcFeelingOneNpc oneNpcByXId = this.GetOneNpcByXId(xnpcId); + return this.IsShowLoveFx(oneNpcByXId) || this.IsShowExchangeFx(oneNpcByXId); + } + + public bool IsShowExChangeFx(uint xnpcId) + { + NpcFeelingOneNpc oneNpcByXId = this.GetOneNpcByXId(xnpcId); + return this.IsShowExchangeFx(oneNpcByXId); + } + + private bool IsShowExchangeFx(NpcFeelingOneNpc oneNpc) + { + return this.IsCanExchange(oneNpc); + } + + private bool IsShowLoveFx(NpcFeelingOneNpc oneNpc) + { + bool flag = oneNpc == null; + return !flag && this.IsCanSend() && !this.IsCanLevelUp(oneNpc); + } + + protected void ClearFx() + { + for (int i = 0; i < this.m_Fxes.Count; i++) + { + XSingleton.singleton.DestroyFx(this.m_Fxes[i], true); + } + this.m_Fxes.Clear(); + this.m_FxDict.Clear(); + bool flag = this.fireWorkFx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this.fireWorkFx, true); + } + this.fireWorkFx = null; + } + + public void ReqSrvNpcInfo() + { + RpcC2M_NpcFlReqC2M rpcC2M_NpcFlReqC2M = new RpcC2M_NpcFlReqC2M(); + rpcC2M_NpcFlReqC2M.oArg.reqtype = NpcFlReqType.NPCFL_BASE_DATA; + XSingleton.singleton.Send(rpcC2M_NpcFlReqC2M); + } + + public void ReqSrvGiveGift(uint npcid, NpcLikeItem likeitem) + { + RpcC2M_NpcFlReqC2M rpcC2M_NpcFlReqC2M = new RpcC2M_NpcFlReqC2M(); + rpcC2M_NpcFlReqC2M.oArg.reqtype = NpcFlReqType.NPCFL_GIVE_GIFT; + rpcC2M_NpcFlReqC2M.oArg.npcid = npcid; + rpcC2M_NpcFlReqC2M.oArg.likeitem = likeitem; + XSingleton.singleton.Send(rpcC2M_NpcFlReqC2M); + } + + public void ReqSrvExchangeGift(uint npcid, ItemBrief role2npc, ItemBrief npc2role) + { + RpcC2M_NpcFlReqC2M rpcC2M_NpcFlReqC2M = new RpcC2M_NpcFlReqC2M(); + rpcC2M_NpcFlReqC2M.oArg.reqtype = NpcFlReqType.NPCFL_EXCHANGE; + rpcC2M_NpcFlReqC2M.oArg.npcid = npcid; + rpcC2M_NpcFlReqC2M.oArg.role2npc = role2npc; + rpcC2M_NpcFlReqC2M.oArg.npc2role = npc2role; + XSingleton.singleton.Send(rpcC2M_NpcFlReqC2M); + } + + public void ReqSrvLevelUp(uint npcid) + { + RpcC2M_NpcFlReqC2M rpcC2M_NpcFlReqC2M = new RpcC2M_NpcFlReqC2M(); + rpcC2M_NpcFlReqC2M.oArg.reqtype = NpcFlReqType.NPCFL_NPC_LEVEL_UP; + rpcC2M_NpcFlReqC2M.oArg.npcid = npcid; + XSingleton.singleton.Send(rpcC2M_NpcFlReqC2M); + } + + public void ReqSrvActiveUnionLevel(uint uniteid, uint level) + { + RpcC2M_NpcFlReqC2M rpcC2M_NpcFlReqC2M = new RpcC2M_NpcFlReqC2M(); + rpcC2M_NpcFlReqC2M.oArg.reqtype = NpcFlReqType.NPCFL_UNITE_ACT; + rpcC2M_NpcFlReqC2M.oArg.uniteid = uniteid; + rpcC2M_NpcFlReqC2M.oArg.level = level; + XSingleton.singleton.Send(rpcC2M_NpcFlReqC2M); + } + + public void ReqSrvBuyGiftCount() + { + RpcC2M_NpcFlReqC2M rpcC2M_NpcFlReqC2M = new RpcC2M_NpcFlReqC2M(); + rpcC2M_NpcFlReqC2M.oArg.reqtype = NpcFlReqType.NPCFL_BUY_GIFT_COUNT; + XSingleton.singleton.Send(rpcC2M_NpcFlReqC2M); + } + + public void OnReqSrvNpcInfo(NpcFlArg oArg, NpcFlRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + switch (oArg.reqtype) + { + case NpcFlReqType.NPCFL_GIVE_GIFT: + { + List changenpclist = oRes.changenpclist; + this.m_role2npc = oRes.role2npc; + this.m_npc2role = oRes.npc2role; + this.GiveLeftCount = oRes.giveleftcount; + int i = 0; + int count = changenpclist.Count; + while (i < count) + { + NpcFeelingOneNpc oneNpc = this.GetOneNpc(changenpclist[i].npcid); + bool flag2 = oneNpc != null; + if (flag2) + { + this.activedNpc.Remove(oneNpc); + this.activedNpc.Add(changenpclist[i]); + bool flag3 = this.m_role2npc != null && this.m_npc2role != null; + if (flag3) + { + this.OnTriggerExchange(changenpclist[i].npcid); + this.m_exchangeNPCId = oneNpc.npcid; + } + this.RefreshNpcHeadFxById(changenpclist[i].npcid); + this.OnSendSuccess(); + } + i++; + } + this.SortNpc(); + this.RecalculateCanLevelUpTag(); + break; + } + case NpcFlReqType.NPCFL_EXCHANGE: + { + List changenpclist2 = oRes.changenpclist; + this.m_role2npc = null; + this.m_npc2role = null; + int j = 0; + int count2 = changenpclist2.Count; + while (j < count2) + { + NpcFeelingOneNpc oneNpc2 = this.GetOneNpc(changenpclist2[j].npcid); + bool flag4 = oneNpc2 != null; + if (flag4) + { + this.activedNpc.Remove(oneNpc2); + this.activedNpc.Add(changenpclist2[j]); + this.RefreshNpcHeadFxById(changenpclist2[j].npcid); + this.OnExchangeSuccess(); + } + j++; + } + break; + } + case NpcFlReqType.NPCFL_BASE_DATA: + { + this.activedNpc = oRes.npclist; + this.activedUnites = oRes.unitelist; + this.npcfavorrole = oRes.npcfavorrole; + this.giveLeftCount = oRes.giveleftcount; + this.buyLeftCount = oRes.buyleftcount; + this.buyCost = oRes.buycost; + this.npcFlLevTop = oRes.npcflleveltop; + this.CalculateSumAttr(); + this.SortNpc(); + this.RecalculateNewTag(); + this.RecalculateCanLevelUpTag(); + this.RecalculateUnionTag(); + bool flag5 = this.View != null && this.View.IsVisible(); + if (flag5) + { + this.View.RefreshData(); + } + break; + } + case NpcFlReqType.NPCFL_NPC_LEVEL_UP: + { + List changenpclist3 = oRes.changenpclist; + int k = 0; + int count3 = changenpclist3.Count; + while (k < count3) + { + NpcFeelingOneNpc oneNpc3 = this.GetOneNpc(changenpclist3[k].npcid); + bool flag6 = oneNpc3 != null; + if (flag6) + { + this.activedNpc.Remove(oneNpc3); + this.activedNpc.Add(changenpclist3[k]); + this.RefreshNpcHeadFxById(changenpclist3[k].npcid); + } + k++; + } + this.CalculateSumAttr(); + this.SortNpc(); + this.RecalculateCanLevelUpTag(); + this.RecalculateUnionTag(); + this.OnNPCActiveSuccess(); + break; + } + case NpcFlReqType.NPCFL_UNITE_ACT: + { + int l = 0; + int count4 = oRes.unitelist.Count; + while (l < count4) + { + NpcFeelingUnite activeUniteInfo = this.GetActiveUniteInfo(oRes.unitelist[l].id); + bool flag7 = activeUniteInfo != null; + if (flag7) + { + this.activedUnites.Remove(activeUniteInfo); + } + this.activedUnites.Add(oRes.unitelist[l]); + l++; + } + this.CalculateSumAttr(); + this.RecalculateUnionTag(); + this.OnUnionActiveSuccess(); + break; + } + case NpcFlReqType.NPCFL_BUY_GIFT_COUNT: + { + uint num = this.giveLeftCount; + this.GiveLeftCount = oRes.giveleftcount; + this.buyLeftCount = oRes.buyleftcount; + this.buyCost = oRes.buycost; + bool flag8 = this.View != null && this.View.IsVisible(); + if (flag8) + { + this.View.RefreshGiftTimesInfo(); + } + break; + } + } + } + } + + private void SortNpc() + { + XNPCFavorDocument.CheckNpcIds(); + XNPCFavorDocument.m_NpcIds.Sort(new Comparison(XNPCFavorDocument.Compare)); + } + + private void CalculateSumAttr() + { + this.m_DictSumAttr.Clear(); + int i = 0; + int count = this.activedNpc.Count; + while (i < count) + { + uint level = this.activedNpc[i].level; + NpcFeelingAttr.RowData attrDataByLevel = XNPCFavorDocument.GetAttrDataByLevel(this.activedNpc[i].npcid, level); + bool flag = attrDataByLevel != null; + if (flag) + { + int j = 0; + int count2 = attrDataByLevel.Attr.Count; + while (j < count2) + { + uint num = attrDataByLevel.Attr[j, 0]; + uint num2 = attrDataByLevel.Attr[j, 1]; + bool flag2 = !this.m_DictSumAttr.ContainsKey(num); + if (flag2) + { + this.m_DictSumAttr.Add(num, 0u); + } + Dictionary dictSumAttr = this.m_DictSumAttr; + uint key = num; + dictSumAttr[key] += num2; + j++; + } + } + i++; + } + int k = 0; + int count3 = this.activedUnites.Count; + while (k < count3) + { + NpcUniteAttr.RowData unionTableInfoByUnionId = XNPCFavorDocument.GetUnionTableInfoByUnionId(this.activedUnites[k].id, this.activedUnites[k].level); + bool flag3 = unionTableInfoByUnionId != null; + if (flag3) + { + int l = 0; + int count4 = unionTableInfoByUnionId.Attr.Count; + while (l < count4) + { + uint num3 = unionTableInfoByUnionId.Attr[l, 0]; + uint num4 = unionTableInfoByUnionId.Attr[l, 1]; + bool flag4 = !this.m_DictSumAttr.ContainsKey(num3); + if (flag4) + { + this.m_DictSumAttr.Add(num3, 0u); + } + Dictionary dictSumAttr = this.m_DictSumAttr; + uint key = num3; + dictSumAttr[key] += num4; + l++; + } + } + k++; + } + } + + public void OnNpcFeelingChange(NpcFlRes res) + { + this.OnReqSrvNpcInfo(new NpcFlArg + { + reqtype = NpcFlReqType.NPCFL_BASE_DATA + }, res); + this.SetupNpcHeadFx(); + XNPCFavorFxChangeArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + public void ReqNPCFavorUnionInfo() + { + this.ReqSrvNpcInfo(); + } + + private void OnSendSuccess() + { + XNPCFavorDrama xnpcfavorDrama = XNPCFavorDocument.IsNpcDialogVisible(); + bool flag = xnpcfavorDrama != null; + if (flag) + { + xnpcfavorDrama.SendSuccess(); + } + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCSendSuccess"), "fece00"); + } + + private void OnExchangeSuccess() + { + XNPCFavorDrama xnpcfavorDrama = XNPCFavorDocument.IsNpcDialogVisible(); + bool flag = xnpcfavorDrama != null; + if (flag) + { + xnpcfavorDrama.ExchangeSuccess(); + } + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NPCExchangeSuccess"), "fece00"); + } + + private static void CheckNpcIds() + { + bool flag = XNPCFavorDocument._npcInfoTable.Table == null; + if (!flag) + { + bool flag2 = XNPCFavorDocument.m_NpcIds == null; + if (flag2) + { + XNPCFavorDocument.m_NpcIds = new List(); + int i = 0; + int num = XNPCFavorDocument._npcInfoTable.Table.Length; + while (i < num) + { + XNPCFavorDocument.m_NpcIds.Add(XNPCFavorDocument._npcInfoTable.Table[i].npcId); + i++; + } + } + } + } + + private static void CheckUnionIds() + { + bool flag = XNPCFavorDocument._npcUnionAttrTable.Table == null; + if (!flag) + { + bool flag2 = XNPCFavorDocument.m_UnionIds == null; + if (flag2) + { + XNPCFavorDocument.m_UnionIds = new List(); + for (int i = 0; i < XNPCFavorDocument._npcUnionAttrTable.Table.Length; i++) + { + bool flag3 = !XNPCFavorDocument.m_UnionIds.Contains(XNPCFavorDocument._npcUnionAttrTable.Table[i].id); + if (flag3) + { + XNPCFavorDocument.m_UnionIds.Add(XNPCFavorDocument._npcUnionAttrTable.Table[i].id); + } + } + } + } + } + + private static int Compare(uint x, uint y) + { + XNPCFavorDocument specificDocument = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + NpcFeelingOneNpc oneNpc = specificDocument.GetOneNpc(x); + NpcFeelingOneNpc oneNpc2 = specificDocument.GetOneNpc(y); + bool flag = oneNpc != null && oneNpc2 == null; + int result; + if (flag) + { + result = -1; + } + else + { + bool flag2 = oneNpc == null && oneNpc2 != null; + if (flag2) + { + result = 1; + } + else + { + bool flag3 = oneNpc == null && oneNpc2 == null; + if (flag3) + { + NpcFeeling.RowData npcTableInfoById = XNPCFavorDocument.GetNpcTableInfoById(x); + NpcFeeling.RowData npcTableInfoById2 = XNPCFavorDocument.GetNpcTableInfoById(y); + bool flag4 = npcTableInfoById != null && npcTableInfoById2 != null; + if (flag4) + { + return (int)(npcTableInfoById.openLevel - npcTableInfoById2.openLevel); + } + } + bool flag5 = oneNpc != null && oneNpc2 != null; + if (flag5) + { + bool flag6 = oneNpc.isnew != oneNpc2.isnew; + if (flag6) + { + return oneNpc2.isnew ? 1 : -1; + } + bool flag7 = !oneNpc.isnew; + if (flag7) + { + bool flag8 = oneNpc.level != oneNpc2.level; + if (flag8) + { + return (oneNpc2.level > oneNpc.level) ? 1 : -1; + } + bool flag9 = oneNpc.exp != oneNpc2.exp; + if (flag9) + { + return (oneNpc2.exp > oneNpc.exp) ? 1 : -1; + } + } + } + result = (int)(x - y); + } + } + return result; + } + + public void RemoveAllNewTags() + { + bool flag = this.activedNpc == null; + if (!flag) + { + int i = 0; + int count = this.activedNpc.Count; + while (i < count) + { + this.activedNpc[i].isnew = false; + i++; + } + this.HasNewNpcActive = false; + this.SortNpc(); + } + } + + public void RecalculateNewTag() + { + bool hasNewNpcActive = false; + int i = 0; + int count = this.activedNpc.Count; + while (i < count) + { + bool isnew = this.activedNpc[i].isnew; + if (isnew) + { + hasNewNpcActive = true; + break; + } + i++; + } + this.HasNewNpcActive = hasNewNpcActive; + } + + public void RecalculateCanLevelUpTag() + { + bool hasCanLevelUpNpc = false; + for (int i = 0; i < this.activedNpc.Count; i++) + { + bool flag = this.IsCanLevelUp(this.activedNpc[i]); + if (flag) + { + hasCanLevelUpNpc = true; + break; + } + } + this.HasCanLevelUpNpc = hasCanLevelUpNpc; + } + + public void RecalculateUnionTag() + { + bool hasNewUnionActive = false; + XNPCFavorDocument.CheckUnionIds(); + int i = 0; + int count = XNPCFavorDocument.m_UnionIds.Count; + while (i < count) + { + bool flag = this.IsUnionCanActiveNextLevel(XNPCFavorDocument.m_UnionIds[i]); + if (flag) + { + hasNewUnionActive = true; + break; + } + i++; + } + this.HasNewUnionActive = hasNewUnionActive; + } + + public static void ShowNPCDrama(uint xnpcId) + { + XNPCFavorDrama xnpcfavorDrama = XNPCFavorDocument.IsNpcDialogVisible(); + bool flag = xnpcfavorDrama != null; + if (flag) + { + xnpcfavorDrama.RefreshOperateStatus(true, null); + } + } + + public static XNPCFavorDrama IsNpcDialogVisible() + { + bool flag = DlgBase.singleton.IsVisible(); + XNPCFavorDrama result; + if (flag) + { + XDramaDocument specificDocument = XDocuments.GetSpecificDocument(XDramaDocument.uuID); + result = specificDocument.GetFavorDrama(); + } + else + { + result = null; + } + return result; + } + + public EFavorState GetState(uint xnpcId) + { + NpcFeelingOneNpc oneNpcByXId = this.GetOneNpcByXId(xnpcId); + bool flag = oneNpcByXId != null; + if (flag) + { + bool flag2 = this.IsCanSend() && this.IsCanExchange(oneNpcByXId); + if (flag2) + { + return EFavorState.SendWithExchange; + } + bool flag3 = this.IsCanSend(); + if (flag3) + { + return EFavorState.CanSend; + } + bool flag4 = this.IsCanExchange(oneNpcByXId); + if (flag4) + { + return EFavorState.Exchange; + } + } + return EFavorState.None; + } + + public static NpcFeeling.RowData GetNpcTableInfoByXId(uint xnpcid) + { + bool flag = XNPCFavorDocument._npcInfoTable.Table == null; + NpcFeeling.RowData result; + if (flag) + { + result = null; + } + else + { + int i = 0; + int num = XNPCFavorDocument._npcInfoTable.Table.Length; + while (i < num) + { + bool flag2 = XNPCFavorDocument._npcInfoTable.Table[i].xnpclistid == xnpcid; + if (flag2) + { + return XNPCFavorDocument._npcInfoTable.Table[i]; + } + i++; + } + result = null; + } + return result; + } + + public static NpcFeeling.RowData GetNpcTableInfoById(uint npcid) + { + bool flag = XNPCFavorDocument._npcInfoTable.Table == null; + NpcFeeling.RowData result; + if (flag) + { + result = null; + } + else + { + int i = 0; + int num = XNPCFavorDocument._npcInfoTable.Table.Length; + while (i < num) + { + bool flag2 = XNPCFavorDocument._npcInfoTable.Table[i].npcId == npcid; + if (flag2) + { + return XNPCFavorDocument._npcInfoTable.Table[i]; + } + i++; + } + result = null; + } + return result; + } + + public static NpcFeelingAttr.RowData GetAttrDataByLevel(uint npcid, uint lev) + { + bool flag = XNPCFavorDocument._npcAttrTable.Table == null; + NpcFeelingAttr.RowData result; + if (flag) + { + result = null; + } + else + { + int i = 0; + int num = XNPCFavorDocument._npcAttrTable.Table.Length; + while (i < num) + { + bool flag2 = XNPCFavorDocument._npcAttrTable.Table[i].npcId == npcid && XNPCFavorDocument._npcAttrTable.Table[i].level == lev; + if (flag2) + { + return XNPCFavorDocument._npcAttrTable.Table[i]; + } + i++; + } + result = null; + } + return result; + } + + public static NpcFeelingAttr.RowData GetNpcAttrByIdLev(uint npcId, uint lev) + { + bool flag = XNPCFavorDocument._npcAttrTable == null; + NpcFeelingAttr.RowData result; + if (flag) + { + result = null; + } + else + { + int i = 0; + int num = XNPCFavorDocument._npcAttrTable.Table.Length; + while (i < num) + { + bool flag2 = XNPCFavorDocument._npcAttrTable.Table[i].npcId == npcId && XNPCFavorDocument._npcAttrTable.Table[i].level == lev; + if (flag2) + { + return XNPCFavorDocument._npcAttrTable.Table[i]; + } + i++; + } + result = null; + } + return result; + } + + public static NpcUniteAttr.RowData GetUnionTableInfoByUnionId(uint unionId, uint lev) + { + bool flag = XNPCFavorDocument._npcUnionAttrTable.Table == null; + NpcUniteAttr.RowData result; + if (flag) + { + result = null; + } + else + { + uint num = uint.MaxValue; + int num2 = 0; + int i = 0; + int num3 = XNPCFavorDocument._npcUnionAttrTable.Table.Length; + while (i < num3) + { + bool flag2 = XNPCFavorDocument._npcUnionAttrTable.Table[i].id == unionId; + if (flag2) + { + bool flag3 = lev == 0u; + if (flag3) + { + bool flag4 = XNPCFavorDocument._npcUnionAttrTable.Table[i].level < num; + if (flag4) + { + num = XNPCFavorDocument._npcUnionAttrTable.Table[i].level; + num2 = i; + } + } + else + { + bool flag5 = XNPCFavorDocument._npcUnionAttrTable.Table[i].level == lev; + if (flag5) + { + return XNPCFavorDocument._npcUnionAttrTable.Table[i]; + } + } + } + i++; + } + bool flag6 = lev == 0u; + if (flag6) + { + result = XNPCFavorDocument._npcUnionAttrTable.Table[num2]; + } + else + { + result = null; + } + } + return result; + } + + public static uint GetUnionEffectLev(uint unionId, uint lev) + { + bool flag = XNPCFavorDocument._npcUnionAttrTable.Table == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + uint num = 0u; + int i = 0; + int num2 = XNPCFavorDocument._npcUnionAttrTable.Table.Length; + while (i < num2) + { + bool flag2 = XNPCFavorDocument._npcUnionAttrTable.Table[i].id == unionId; + if (flag2) + { + bool flag3 = XNPCFavorDocument._npcUnionAttrTable.Table[i].level <= lev; + if (flag3) + { + num += 1u; + } + } + i++; + } + result = num; + } + return result; + } + + public static NpcUniteAttr.RowData GetNextUnionDataByUnionId(uint unionId, uint lev) + { + bool flag = XNPCFavorDocument._npcUnionAttrTable.Table == null; + NpcUniteAttr.RowData result; + if (flag) + { + result = null; + } + else + { + uint num = uint.MaxValue; + NpcUniteAttr.RowData rowData = null; + int i = 0; + int num2 = XNPCFavorDocument._npcUnionAttrTable.Table.Length; + while (i < num2) + { + bool flag2 = XNPCFavorDocument._npcUnionAttrTable.Table[i].id != unionId; + if (!flag2) + { + bool flag3 = lev < XNPCFavorDocument._npcUnionAttrTable.Table[i].level && XNPCFavorDocument._npcUnionAttrTable.Table[i].level < num; + if (flag3) + { + num = XNPCFavorDocument._npcUnionAttrTable.Table[i].level; + rowData = XNPCFavorDocument._npcUnionAttrTable.Table[i]; + } + } + i++; + } + result = rowData; + } + return result; + } + + public static uint GetNpcIdByXId(uint xnpcid) + { + bool flag = XNPCFavorDocument._npcInfoTable.Table == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + int i = 0; + int num = XNPCFavorDocument._npcInfoTable.Table.Length; + while (i < num) + { + bool flag2 = XNPCFavorDocument._npcInfoTable.Table[i].xnpclistid == xnpcid; + if (flag2) + { + return XNPCFavorDocument._npcInfoTable.Table[i].npcId; + } + i++; + } + result = 0u; + } + return result; + } + + public static uint GetNpcXIdById(uint npcid) + { + bool flag = XNPCFavorDocument._npcInfoTable.Table == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + int i = 0; + int num = XNPCFavorDocument._npcInfoTable.Table.Length; + while (i < num) + { + bool flag2 = XNPCFavorDocument._npcInfoTable.Table[i].npcId == npcid; + if (flag2) + { + return XNPCFavorDocument._npcInfoTable.Table[i].xnpclistid; + } + i++; + } + result = 0u; + } + return result; + } + + public string GetFavoritePlayerName(uint xnpcid) + { + bool flag = this.npcfavorrole == null; + string empty; + if (flag) + { + empty = string.Empty; + } + else + { + uint npcIdByXId = XNPCFavorDocument.GetNpcIdByXId(xnpcid); + int i = 0; + int count = this.npcfavorrole.Count; + while (i < count) + { + bool flag2 = this.npcfavorrole[i].npcid == npcIdByXId; + if (flag2) + { + return this.npcfavorrole[i].rolename; + } + i++; + } + empty = string.Empty; + } + return empty; + } + + public bool IsShowNPCFavoritePlayer(uint xnpcid) + { + return this.GetFavoritePlayerName(xnpcid) != string.Empty; + } + + public bool IsCanSend() + { + return this.GiveLeftCount > 0u; + } + + public bool IsCanExchange(NpcFeelingOneNpc oneNpc) + { + bool flag = oneNpc == null; + return !flag && oneNpc.exchange != null && oneNpc.exchange.Count > 0; + } + + public bool IsCanLevelUp(NpcFeelingOneNpc info) + { + bool flag = info == null; + bool result; + if (flag) + { + result = false; + } + else + { + NpcFeelingAttr.RowData attrDataByLevel = XNPCFavorDocument.GetAttrDataByLevel(info.npcid, info.level); + uint num = (attrDataByLevel == null) ? 0u : attrDataByLevel.needExp; + NpcFeelingAttr.RowData attrDataByLevel2 = XNPCFavorDocument.GetAttrDataByLevel(info.npcid, info.level + 1u); + bool flag2 = false; + bool flag3 = attrDataByLevel2 != null; + if (flag3) + { + uint num2 = attrDataByLevel2.needExp - num; + flag2 = (info.exp >= num2 && info.level < this.npcFlLevTop); + } + result = flag2; + } + return result; + } + + public uint GetFavorMaxDegree(NpcFeelingOneNpc info) + { + bool flag = info == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + NpcFeelingAttr.RowData attrDataByLevel = XNPCFavorDocument.GetAttrDataByLevel(info.npcid, info.level); + uint num = (attrDataByLevel == null) ? 0u : attrDataByLevel.needExp; + NpcFeelingAttr.RowData attrDataByLevel2 = XNPCFavorDocument.GetAttrDataByLevel(info.npcid, info.level + 1u); + bool flag2 = attrDataByLevel2 != null; + if (flag2) + { + result = attrDataByLevel2.needExp - num; + } + else + { + result = 0u; + } + } + return result; + } + + public bool IsFull(NpcFeelingOneNpc info) + { + bool flag = info == null; + bool result; + if (flag) + { + result = false; + } + else + { + NpcFeelingAttr.RowData attrDataByLevel = XNPCFavorDocument.GetAttrDataByLevel(info.npcid, info.level + 1u); + result = (attrDataByLevel == null); + } + return result; + } + + public NpcFeelingOneNpc GetOneNpcByXId(uint xnpcid) + { + uint npcIdByXId = XNPCFavorDocument.GetNpcIdByXId(xnpcid); + return this.GetOneNpc(npcIdByXId); + } + + public NpcFeelingOneNpc GetOneNpc(uint npcid) + { + bool flag = this.activedNpc == null; + NpcFeelingOneNpc result; + if (flag) + { + result = null; + } + else + { + int i = 0; + int count = this.activedNpc.Count; + while (i < count) + { + bool flag2 = this.activedNpc[i].npcid == npcid; + if (flag2) + { + return this.activedNpc[i]; + } + i++; + } + result = null; + } + return result; + } + + public List GetExchangeInfoByXId(uint xnpcid) + { + uint npcIdByXId = XNPCFavorDocument.GetNpcIdByXId(xnpcid); + return this.GetExchangeInfoById(npcIdByXId); + } + + public List GetExchangeInfoById(uint npcid) + { + NpcFeelingOneNpc oneNpc = this.GetOneNpc(npcid); + return (oneNpc != null) ? oneNpc.exchange : null; + } + + public List GetLikeItemsByXId(uint xnpcid) + { + uint npcIdByXId = XNPCFavorDocument.GetNpcIdByXId(xnpcid); + return this.GetLikeItemsById(npcIdByXId); + } + + public List GetLikeItemsById(uint npcid) + { + NpcFeelingOneNpc oneNpc = this.GetOneNpc(npcid); + return (oneNpc != null) ? oneNpc.likeitem : null; + } + + public NpcFeelingUnite GetActiveUniteInfo(uint unionid) + { + bool flag = this.activedUnites == null; + NpcFeelingUnite result; + if (flag) + { + result = null; + } + else + { + int i = 0; + int count = this.activedUnites.Count; + while (i < count) + { + bool flag2 = this.activedUnites[i].id == unionid; + if (flag2) + { + return this.activedUnites[i]; + } + i++; + } + result = null; + } + return result; + } + + public uint GetUnionSumLevel(uint unionid) + { + bool flag = this.activedNpc == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + NpcUniteAttr.RowData unionTableInfoByUnionId = XNPCFavorDocument.GetUnionTableInfoByUnionId(unionid, 0u); + bool flag2 = unionTableInfoByUnionId == null; + if (flag2) + { + result = 0u; + } + else + { + uint num = 0u; + int i = 0; + int num2 = unionTableInfoByUnionId.npcId.Length; + while (i < num2) + { + NpcFeelingOneNpc oneNpc = this.GetOneNpc(unionTableInfoByUnionId.npcId[i]); + num += ((oneNpc == null) ? 0u : oneNpc.level); + i++; + } + result = num; + } + } + return result; + } + + public bool IsUnionCanActiveNextLevel(uint unionid, uint sumLevel) + { + NpcFeelingUnite activeUniteInfo = this.GetActiveUniteInfo(unionid); + NpcUniteAttr.RowData nextUnionDataByUnionId = XNPCFavorDocument.GetNextUnionDataByUnionId(unionid, (activeUniteInfo == null) ? 0u : activeUniteInfo.level); + uint level = nextUnionDataByUnionId.level; + return sumLevel >= level; + } + + public bool IsUnionCanActiveNextLevel(uint unionid) + { + uint unionSumLevel = this.GetUnionSumLevel(unionid); + return this.IsUnionCanActiveNextLevel(unionid, unionSumLevel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNPCFavorDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XNPCFavorDocument.cs.meta new file mode 100644 index 00000000..ce02885b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNPCFavorDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1a73e89c82fbf734a95f689f614d9f7e +timeCreated: 1611403310 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNPCFavorFxChangeArgs.cs b/Client/Assets/Scripts/XMainClient/XNPCFavorFxChangeArgs.cs new file mode 100644 index 00000000..21859e83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNPCFavorFxChangeArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XNPCFavorFxChangeArgs : XEventArgs + { + public XNPCFavorFxChangeArgs() + { + this._eDefine = XEventDefine.XEvent_NpcFavorFxChange; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNPCFavorFxChangeArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XNPCFavorFxChangeArgs.cs.meta new file mode 100644 index 00000000..f67697d7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNPCFavorFxChangeArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d0f3fd5b1ee629847ba70d3b4d9ab193 +timeCreated: 1611404589 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNavigationComponent.cs b/Client/Assets/Scripts/XMainClient/XNavigationComponent.cs new file mode 100644 index 00000000..52835e97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNavigationComponent.cs @@ -0,0 +1,284 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.AI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XNavigationComponent : XComponent, IEnumerable, IEnumerable + { + public override uint ID + { + get + { + return XNavigationComponent.uuID; + } + } + + public NavMeshPath Paths + { + get + { + return this._path; + } + } + + public bool IsOnNav + { + get + { + return this._bNav; + } + } + + public bool IsOnLastNode + { + get + { + return !this._bFoundNext; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Navgation_Component"); + + private NavMeshAgent _nav = null; + + private NavMeshPath _path = new NavMeshPath(); + + private Vector3 _destination = Vector3.zero; + + private Vector3 _forward = Vector3.forward; + + private IEnumerator _nodes = null; + + private bool _bFoundNext = false; + + private bool _bCameraFollow = true; + + private bool _bNav = false; + + private float _speed_ratio = 1f; + + private static CommandCallback _activeNavCb = new CommandCallback(XNavigationComponent._ActiveNav); + + public override void OnAttachToHost(XObject host) + { + this._bNav = false; + base.OnAttachToHost(host); + } + + public override void OnDetachFromHost() + { + this.Interrupt(); + bool flag = this._nav != null; + if (flag) + { + UnityEngine.Object.Destroy(this._nav); + } + base.OnDetachFromHost(); + } + + private static void _ActiveNav(XGameObject gameObject, object o, int commandID) + { + XNavigationComponent xnavigationComponent = o as XNavigationComponent; + bool flag = xnavigationComponent != null; + if (flag) + { + float y = xnavigationComponent.Entity.MoveObj.Position.y; + xnavigationComponent._nav = xnavigationComponent.Entity.EngineObject.AddComponent(); + xnavigationComponent._nav.radius = xnavigationComponent.Entity.Radius; + xnavigationComponent._nav.stoppingDistance = 0.5f; + xnavigationComponent._nav.autoRepath = false; + xnavigationComponent._nav.height = xnavigationComponent.Entity.Height; + xnavigationComponent._nav.areaMask = 1; + xnavigationComponent._nav.enabled = false; + xnavigationComponent.Entity.MoveObj.Position = new Vector3(xnavigationComponent.Entity.MoveObj.Position.x, y, xnavigationComponent.Entity.MoveObj.Position.z); + } + } + + public void Active() + { + this._entity.EngineObject.CallCommand(XNavigationComponent._activeNavCb, this, -1, false); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_NaviMove, new XComponent.XEventHandler(this.OnNavigation)); + } + + private bool OnNavigation(XEventArgs e) + { + XNavigationEventArgs xnavigationEventArgs = e as XNavigationEventArgs; + this._bCameraFollow = xnavigationEventArgs.CameraFollow; + this._speed_ratio = xnavigationEventArgs.SpeedRatio; + this.Navigate(xnavigationEventArgs.Dest); + return true; + } + + public override void Update(float fDeltaT) + { + bool isOnNav = this.IsOnNav; + if (isOnNav) + { + XStateDefine curState = this._entity.CurState; + if (curState > XStateDefine.XState_Move) + { + this.Interrupt(); + } + else + { + Vector3 position = this._entity.MoveObj.Position; + position.y = 0f; + Vector3 destination = this._destination; + destination.y = 0f; + Vector3 vector = destination - position; + float magnitude = vector.magnitude; + bool flag = magnitude > 0f; + if (flag) + { + bool flag2 = magnitude <= 0.2f; + if (flag2) + { + this.MoveNext(); + } + else + { + float num = Vector3.Angle(vector, this._forward); + bool flag3 = num >= 90f; + if (flag3) + { + this.MoveNext(); + } + } + } + else + { + this.MoveNext(); + } + } + bool isOnNav2 = this.IsOnNav; + if (isOnNav2) + { + this._entity.Net.ReportNavAction(XSingleton.singleton.Horizontal(this._destination - this._entity.MoveObj.Position), false, this._speed_ratio); + } + } + } + + public void Interrupt() + { + this._path.ClearCorners(); + this._bNav = false; + } + + private void Navigate(Vector3 targetPos) + { + bool flag = this._nav == null; + if (!flag) + { + this._path.ClearCorners(); + this._nav.enabled = true; + this._nav.CalculatePath(targetPos, this._path); + this._nav.enabled = false; + this._nodes = (this.TooShort() ? null : this.GetEnumerator()); + this._destination = this._entity.MoveObj.Position; + this._bFoundNext = (this._nodes != null && this._nodes.MoveNext()); + this._bNav = true; + this.MoveNext(); + } + } + + private bool TooShort() + { + return this._path.corners.Length == 2 && XSingleton.singleton.LastNpc != null && (this._path.corners[0] - this._path.corners[1]).magnitude < 2f; + } + + private void MoveNext() + { + bool bFoundNext = this._bFoundNext; + if (bFoundNext) + { + Vector3 destination = this._destination; + this._destination = this._nodes.Current; + this._bFoundNext = this._nodes.MoveNext(); + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + bool flag = !this._bFoundNext; + if (flag) + { + bool flag2 = XSingleton.singleton.LastNpc != null; + if (flag2) + { + Vector3 v = this._entity.MoveObj.Position - this._destination; + Vector3 vector = XSingleton.singleton.Horizontal(v); + bool flag3 = v.magnitude < 1f; + if (flag3) + { + this._destination = destination; + } + else + { + this._destination += vector; + } + } + } + bool bCameraFollow = this._bCameraFollow; + if (bCameraFollow) + { + XCameraActionEventArgs @event = XEventPool.GetEvent(); + @event.XRotate = XSingleton.singleton.GameCamera.Root_R_X_Default; + @event.YRotate = XSingleton.singleton.AngleToFloat(XSingleton.singleton.Horizontal(this._nodes.Current - this._entity.MoveObj.Position)); + @event.Firer = XSingleton.singleton.GameCamera; + XSingleton.singleton.FireEvent(@event); + } + } + this._forward = XSingleton.singleton.Horizontal(this._destination - this._entity.MoveObj.Position); + bool flag4 = this._forward.sqrMagnitude == 0f; + if (flag4) + { + this._forward = this._entity.MoveObj.Forward; + } + } + else + { + this._bNav = false; + this._entity.Net.ReportMoveAction(Vector3.zero, (double)XSingleton.singleton.AngleToFloat(this._entity.EngineObject.Forward)); + bool isPlayer2 = this._entity.IsPlayer; + if (isPlayer2) + { + XSingleton.singleton.Flush(true); + bool flag5 = XSingleton.singleton.LastNpc != null && !XSingleton.singleton.IsUIShowed(); + if (flag5) + { + bool onReconnect = XSingleton.singleton.XConnect.OnReconnect; + if (!onReconnect) + { + XNpc npc = XSingleton.singleton.LastNpc as XNpc; + XDramaDocument specificDocument = XDocuments.GetSpecificDocument(XDramaDocument.uuID); + specificDocument.OnMeetNpc(npc); + } + } + } + } + } + + public IEnumerator GetEnumerator() + { + int num; + for (int i = 1; i < this._path.corners.Length; i = num + 1) + { + yield return this._path.corners[i]; + num = i; + } + yield break; + } + + IEnumerator IEnumerable.GetEnumerator() + { + return this.GetEnumerator(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNavigationComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XNavigationComponent.cs.meta new file mode 100644 index 00000000..0daecea7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNavigationComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91d6af9e2ce9a1b4495269ecee2f1435 +timeCreated: 1611404144 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs b/Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs new file mode 100644 index 00000000..5c7eba8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs @@ -0,0 +1,28 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XNavigationEventArgs : XEventArgs + { + public Vector3 Dest; + + public bool CameraFollow = true; + + public float SpeedRatio = 1f; + + public XNavigationEventArgs() + { + this._eDefine = XEventDefine.XEvent_NaviMove; + } + + public override void Recycle() + { + base.Recycle(); + this.Dest = Vector3.zero; + this.CameraFollow = true; + this.SpeedRatio = 1f; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs.meta new file mode 100644 index 00000000..9224aaba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNavigationEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bffabec874a4f34393ce6fb15233c73 +timeCreated: 1611403689 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNestDocument.cs b/Client/Assets/Scripts/XMainClient/XNestDocument.cs new file mode 100644 index 00000000..24d72f8a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNestDocument.cs @@ -0,0 +1,212 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNestDocument : XDocComponent + { + public override uint ID + { + get + { + return XNestDocument.uuID; + } + } + + public static NestListTable NestListData + { + get + { + return XNestDocument._NestListTable; + } + } + + public static NestTypeTable NestTypeData + { + get + { + return XNestDocument._NestTypeTable; + } + } + + public static NestStarReward NestStarRewardTab + { + get + { + return XNestDocument._nestStarRewardTab; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("NestDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static NestListTable _NestListTable = new NestListTable(); + + private static NestTypeTable _NestTypeTable = new NestTypeTable(); + + private static NestStarReward _nestStarRewardTab = new NestStarReward(); + + public uint NestType = 0u; + + public static void Execute(OnLoadedCallback callback = null) + { + XNestDocument.AsyncLoader.AddTask("Table/NestList", XNestDocument._NestListTable, false); + XNestDocument.AsyncLoader.AddTask("Table/NestType", XNestDocument._NestTypeTable, false); + XNestDocument.AsyncLoader.AddTask("Table/NestStarReward", XNestDocument._nestStarRewardTab, false); + XNestDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public int GetStarNestId(int type) + { + XExpeditionDocument xexpeditionDocument = XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument; + XLevelDocument specificDocument = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + int num = 0; + for (int i = 0; i < XNestDocument.NestListData.Table.Length; i++) + { + NestListTable.RowData rowData = XNestDocument.NestListData.Table[i]; + bool flag = rowData.Type != type; + if (!flag) + { + ExpeditionTable.RowData expeditionDataByID = xexpeditionDocument.GetExpeditionDataByID(rowData.NestID); + bool flag2 = expeditionDataByID == null || expeditionDataByID.CostCountType != 0; + if (!flag2) + { + bool flag3 = num == 0 && expeditionDataByID.Stars[0] == 1u; + if (flag3) + { + num = rowData.NestID; + } + SceneRefuseReason sceneRefuseReason = specificDocument.CanLevelOpen(xexpeditionDocument.GetSceneIDByExpID(rowData.NestID)); + bool flag4 = sceneRefuseReason == SceneRefuseReason.Admit; + if (flag4) + { + num = rowData.NestID; + } + } + } + } + return num; + } + + public int GetNestType(int nestId) + { + for (int i = 0; i < XNestDocument.NestListData.Table.Length; i++) + { + bool flag = XNestDocument.NestListData.Table[i].NestID == nestId; + if (flag) + { + return XNestDocument.NestListData.Table[i].Type; + } + } + return 0; + } + + public List GetNestStarRewards(uint nestType) + { + List list = new List(); + for (int i = 0; i < XNestDocument.NestStarRewardTab.Table.Length; i++) + { + bool flag = XNestDocument.NestStarRewardTab.Table[i].Type == nestType; + if (flag) + { + list.Add(XNestDocument.NestStarRewardTab.Table[i]); + } + } + return list; + } + + public ExpeditionTable.RowData GetLastExpeditionRowData() + { + int num = -1; + HashSet hashSet = new HashSet(); + XExpeditionDocument xexpeditionDocument = XSingleton.singleton.Doc.GetXComponent(XExpeditionDocument.uuID) as XExpeditionDocument; + for (int i = 0; i < XNestDocument.NestListData.Table.Length; i++) + { + NestListTable.RowData rowData = XNestDocument.NestListData.Table[i]; + bool flag = hashSet.Contains(rowData.Type); + if (!flag) + { + ExpeditionTable.RowData rowData2 = xexpeditionDocument.GetExpeditionDataByID(rowData.NestID); + bool flag2 = rowData2 == null; + if (!flag2) + { + bool flag3 = xexpeditionDocument.TeamCategoryMgr.IsExpOpened(rowData2); + if (!flag3) + { + break; + } + hashSet.Add(rowData.Type); + num = rowData.Type; + } + } + } + bool flag4 = num == -1; + ExpeditionTable.RowData result; + if (flag4) + { + result = null; + } + else + { + ExpeditionTable.RowData rowData2 = null; + XLevelDocument specificDocument = XDocuments.GetSpecificDocument(XLevelDocument.uuID); + int j = 0; + while (j < XNestDocument.NestListData.Table.Length) + { + NestListTable.RowData rowData3 = XNestDocument.NestListData.Table[j]; + bool flag5 = rowData3.Type == num; + if (flag5) + { + ExpeditionTable.RowData expeditionDataByID = xexpeditionDocument.GetExpeditionDataByID(rowData3.NestID); + bool flag6 = expeditionDataByID == null; + if (!flag6) + { + bool flag7 = expeditionDataByID.CostCountType == 0; + if (!flag7) + { + SceneRefuseReason sceneRefuseReason = specificDocument.CanLevelOpen(xexpeditionDocument.GetSceneIDByExpID(rowData3.NestID)); + bool flag8 = sceneRefuseReason == SceneRefuseReason.Admit; + if (!flag8) + { + break; + } + rowData2 = expeditionDataByID; + } + } + } + IL_15D: + j++; + continue; + goto IL_15D; + } + bool flag9 = rowData2 != null; + if (flag9) + { + XSingleton.singleton.AddGreenLog(rowData2.DNExpeditionName, null, null, null, null, null); + } + else + { + XSingleton.singleton.AddGreenLog("expdata is null", null, null, null, null, null); + } + result = rowData2; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNestDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XNestDocument.cs.meta new file mode 100644 index 00000000..c935dc0d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNestDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31072c3b5f1dcbb418bcf22df6671743 +timeCreated: 1611403541 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNetComponent.cs b/Client/Assets/Scripts/XMainClient/XNetComponent.cs new file mode 100644 index 00000000..f65f4cf1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNetComponent.cs @@ -0,0 +1,471 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNetComponent : XComponent + { + public override uint ID + { + get + { + return XNetComponent.uuID; + } + } + + public uint SyncSequence + { + get + { + return this._sync_sequence; + } + } + + public uint LastReqSkill + { + get + { + return this._last_req_skill; + } + set + { + this._last_req_skill = value; + } + } + + public bool Pause + { + get + { + return this._pause; + } + set + { + this._pause = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Net_Component"); + + private static List _targets = new List(); + + private bool _pause = false; + + private bool _force_sync = false; + + private uint _sync_sequence = 0u; + + private uint _idle_timer_token = 0u; + + private uint _last_req_skill = 0u; + + private XLocateTargetComponent _locate = null; + + private XMoveComponent _move = null; + + private Vector3 _pos_target = Vector3.zero; + + private Vector3 _magic = Vector3.zero; + + private Vector3 _face_target = Vector3.forward; + + private float _move_anim_speed_target = 0f; + + private float _move_anim_speed = 0f; + + private XTimerMgr.ElapsedEventHandler _IdledCb = null; + + public XNetComponent() + { + this._IdledCb = new XTimerMgr.ElapsedEventHandler(this.Idled); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._sync_sequence = 0u; + } + + public override void Attached() + { + bool flag = !this._entity.IsPlayer; + if (flag) + { + this.CorrectNet(this._entity.MoveObj.Position, this._entity.MoveObj.Forward, 0u, true); + } + this._locate = (this._entity.IsPlayer ? (this._entity.GetXComponent(XLocateTargetComponent.uuID) as XLocateTargetComponent) : null); + this._move = (this._entity.GetXComponent(XMoveComponent.uuID) as XMoveComponent); + } + + public override void OnDetachFromHost() + { + this.KillIdle(); + base.OnDetachFromHost(); + } + + public override void Update(float fDeltaT) + { + bool flag = !XSingleton.singleton.SyncMode || this._entity.IsCopilotMounted; + if (!flag) + { + Vector3 position = this._entity.MoveObj.Position; + bool flag2 = this._entity.Machine.State.SyncPredicted && (this._entity.Skill == null || !this._entity.Skill.IsCasting()); + if (flag2) + { + this._magic = position - this._pos_target; + this._magic.y = 0f; + this._force_sync = (this._magic.sqrMagnitude > 4f); + bool force_sync = this._force_sync; + if (force_sync) + { + this._magic = Vector3.zero; + } + } + else + { + bool flag3 = !this._pause; + if (flag3) + { + Vector3 vector = (this._force_sync || this._entity.IsPassive) ? this._pos_target : (this._pos_target + this._magic); + XStateDefine xstateDefine = this._entity.Machine.Current; + if (xstateDefine != XStateDefine.XState_Move) + { + if (xstateDefine != XStateDefine.XState_Charge) + { + this._entity.SyncServerMove((vector - position) * 0.2f); + } + else + { + bool isUsingCurve = this._entity.Machine.State.IsUsingCurve; + if (isUsingCurve) + { + this._entity.SyncServerMove((vector - position) * 0.2f); + } + else + { + float num = Mathf.Abs(this._entity.Machine.State.Speed * fDeltaT); + Vector3 delta = vector - position; + delta.y = 0f; + float magnitude = delta.magnitude; + bool flag4 = magnitude == 0f; + if (flag4) + { + this._entity.SyncServerMove(delta); + } + else + { + this._entity.SyncServerMove(Mathf.Min(magnitude, num) * delta.normalized); + } + } + } + } + else + { + float num2 = Mathf.Abs(this._move_anim_speed_target * fDeltaT); + Vector3 delta2 = vector - position; + delta2.y = 0f; + float magnitude2 = delta2.magnitude; + bool flag5 = magnitude2 == 0f; + if (flag5) + { + this._entity.SyncServerMove(delta2); + } + else + { + this._entity.SyncServerMove(Mathf.Min(magnitude2, num2) * delta2.normalized); + } + } + bool flag6 = this._entity.Rotate != null; + if (flag6) + { + this._entity.Rotate.Cancel(); + } + float num3 = Vector3.Angle(this._entity.MoveObj.Forward, this._face_target); + float num4 = 0.2f; + bool flag7 = this._entity.Skill != null && this._entity.Skill.IsCasting(); + if (flag7) + { + num4 = (this._entity.Skill.CurrentSkill.MainCore.Soul.Logical.Rotate_Server_Sync ? 1f : (this._entity.IsRole ? 0.2f : 0.5f)); + } + bool flag8 = !XSingleton.singleton.Clockwise(this._entity.MoveObj.Forward, this._face_target); + if (flag8) + { + num3 = -num3; + } + this._entity.MoveObj.Forward = XSingleton.singleton.HorizontalRotateVetor3(this._entity.MoveObj.Forward, num3 * num4, true); + } + } + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + XSingleton.singleton.Flush(false); + } + } + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = !XSingleton.singleton.SyncMode; + if (!flag) + { + bool flag2 = !this._pause && !this._entity.Machine.State.SyncPredicted; + if (flag2) + { + XStateDefine xstateDefine = this._entity.Machine.Current; + if (xstateDefine == XStateDefine.XState_Move) + { + bool flag3 = this._move == null; + if (!flag3) + { + this._move_anim_speed += (this._move_anim_speed_target - this._move_anim_speed) * Mathf.Min(1f, fDeltaT * 20f); + this._move.AnimSpeed = this._move_anim_speed; + } + } + } + } + } + + public bool OnDeathNotify(DeathInfo data) + { + XSingleton.singleton.DeathDetect(this._entity, XSingleton.singleton.GetEntity(data.Killer), true); + return true; + } + + public void OnAttributeChangedNotify(ChangedAttribute changedAttribute) + { + for (int i = 0; i < changedAttribute.AttrID.Count; i++) + { + bool flag = changedAttribute.AttrID[i] == 14; + if (flag) + { + bool flag2 = changedAttribute.showHUD && (changedAttribute.CasterID == XSingleton.singleton.XPlayerData.RoleID || this._entity is XPlayer); + if (flag2) + { + double attr = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + this._entity.Attributes.SetAttrFromServer(changedAttribute.AttrID[i], changedAttribute.AttrValue[i]); + ProjectDamageResult data = XDataPool.GetData(); + data.Accept = true; + data.ElementType = DamageElement.DE_NONE; + data.Value = attr - this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + data.Caster = changedAttribute.CasterID; + XHUDAddEventArgs @event = XEventPool.GetEvent(); + @event.damageResult = data; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + data.Recycle(); + } + else + { + this._entity.Attributes.SetAttrFromServer(changedAttribute.AttrID[i], changedAttribute.AttrValue[i]); + } + } + else + { + this._entity.Attributes.SetAttrFromServer(changedAttribute.AttrID[i], changedAttribute.AttrValue[i]); + } + } + } + + public void OnIdle() + { + this.KillIdle(); + bool flag = this._entity.Machine.Current == XStateDefine.XState_Idle; + if (!flag) + { + bool isPassive = this._entity.IsPassive; + if (isPassive) + { + this.Idled(null); + } + else + { + float interval = (this._entity.Nav != null && this._entity.Nav.IsOnNav) ? 0.5f : 0.1f; + this._idle_timer_token = XSingleton.singleton.SetTimer(interval, this._IdledCb, null); + } + } + } + + public void KillIdle() + { + XSingleton.singleton.KillTimer(this._idle_timer_token); + this._idle_timer_token = 0u; + } + + private void Idled(object o) + { + this._entity.Machine.ForceToDefaultState(true); + } + + public void CorrectMoveSpeed(float speed) + { + this._move_anim_speed_target = speed; + } + + public void SetHallSequence() + { + this._sync_sequence = 2u; + } + + public void CorrectNet(Vector3 pos, Vector3 face, uint sequence, bool updatesequence = true) + { + bool flag = sequence == 0u; + if (flag) + { + this._entity.CorrectMe(pos, face, false, false); + } + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + this._pos_target = pos; + this._face_target = face; + } + this._last_req_skill = 0u; + if (updatesequence) + { + this._sync_sequence = sequence; + } + } + + public void CorrectNet(Vector3 pos) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + this._pos_target = pos; + } + } + + public void ReportRotateAction(Vector3 dir) + { + this.ReportRotateAction(dir, this._entity.Attributes.RotateSpeed, 0L); + } + + public void ReportRotateAction(Vector3 dir, float palstance, long token = 0L) + { + XRotationEventArgs @event = XEventPool.GetEvent(); + @event.TargetDir = dir; + @event.Firer = this._entity; + @event.Palstance = palstance; + @event.Token = token; + XSingleton.singleton.FireEvent(@event); + } + + public void ReportNavAction(Vector3 dir, bool inertia, float speedratio = 1f) + { + bool flag = dir.sqrMagnitude > 0f; + if (flag) + { + this.ReportMoveAction(dir, this._entity.Attributes.RunSpeed * speedratio, inertia); + } + else + { + this.ReportMoveAction(this._entity.MoveObj.Position, 0f, true, false, false, 0f); + } + } + + public void ReportMoveAction(Vector3 des, float speed, bool inertia = false, bool nav = false, bool force2server = false, float stopage_dir = 0f) + { + bool flag = !nav && this._entity.Nav != null; + if (flag) + { + this._entity.Nav.Interrupt(); + } + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + XSingleton.singleton.SendMoveAction(this._entity, des, speed, inertia, force2server); + } + XMoveEventArgs @event = XEventPool.GetEvent(); + @event.Speed = ((speed == 0f) ? this._entity.Attributes.RunSpeed : speed); + @event.Destination = des; + @event.Inertia = inertia; + @event.Firer = this._entity; + @event.StopTowards = stopage_dir; + XSingleton.singleton.FireEvent(@event); + } + + public void ReportMoveAction(Vector3 dir, double stopage_dir = 0.0) + { + bool flag = dir.sqrMagnitude > 0f; + if (flag) + { + this.ReportMoveAction(dir, this._entity.Attributes.RunSpeed, true); + } + else + { + this.ReportMoveAction(this._entity.MoveObj.Position, 0f, true, false, false, (float)stopage_dir); + } + } + + private void ReportMoveAction(Vector3 dir, float speed, bool inertia) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + XSingleton.singleton.SendMoveAction(this._entity, XSingleton.singleton.AngleToFloat(dir), speed, inertia); + } + XMoveEventArgs @event = XEventPool.GetEvent(); + @event.Speed = speed; + @event.Destination = this._entity.MoveObj.Position + dir * @event.Speed; + @event.Inertia = true; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + } + + public void ReportSkillAction(XEntity target, int slot) + { + bool flag = this._locate != null && target == null; + if (flag) + { + target = this._locate.Locate(this._entity.EngineObject.Forward, this._entity.EngineObject.Position, false); + } + XSingleton.singleton.SendSkillAction(this._entity, target, slot); + } + + public bool ReportSkillAction(XEntity target, uint skillid, int slot = -1) + { + bool flag = this._entity.Nav != null; + if (flag) + { + this._entity.Nav.Interrupt(); + } + bool syncMode = XSingleton.singleton.SyncMode; + bool result; + if (syncMode) + { + this._last_req_skill = skillid; + bool flag2 = this._locate != null && target == null; + if (flag2) + { + target = this._locate.Locate(this._entity.EngineObject.Forward, this._entity.EngineObject.Position, false); + } + XSingleton.singleton.SendSkillAction(this._entity, target, skillid, slot); + result = true; + } + else + { + XSkillCore skill = this._entity.SkillMgr.GetSkill(skillid); + bool flag3 = skill == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog(skillid.ToString(), " not found when casting.", null, null, null, null); + result = false; + } + else + { + XAttackEventArgs @event = XEventPool.GetEvent(); + @event.Target = target; + @event.Identify = skillid; + @event.Firer = this._entity; + @event.Slot = slot; + @event.TimeScale = skill.GetTimeScale(); + result = XSingleton.singleton.FireEvent(@event); + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNetComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XNetComponent.cs.meta new file mode 100644 index 00000000..2bb0780f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNetComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f7446847ea9a6a448444726b361002b +timeCreated: 1611403909 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNetEventPool.cs b/Client/Assets/Scripts/XMainClient/XNetEventPool.cs new file mode 100644 index 00000000..4cac37c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNetEventPool.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using System.Threading; + +namespace XMainClient +{ + internal class XNetEventPool + { + private static Queue _pool = new Queue(128); + + public static NetEvent GetEvent() + { + NetEvent netEvent = null; + Monitor.Enter(XNetEventPool._pool); + bool flag = XNetEventPool._pool.Count > 0; + if (flag) + { + netEvent = XNetEventPool._pool.Dequeue(); + } + Monitor.Exit(XNetEventPool._pool); + bool flag2 = netEvent != null; + NetEvent result; + if (flag2) + { + netEvent.Reset(); + result = netEvent; + } + else + { + result = new NetEvent(); + } + return result; + } + + public static void Recycle(NetEvent e) + { + Monitor.Enter(XNetEventPool._pool); + XNetEventPool._pool.Enqueue(e); + Monitor.Exit(XNetEventPool._pool); + } + + public static void RecycleNoLock(NetEvent e) + { + XNetEventPool._pool.Enqueue(e); + } + + public static void Clear() + { + Monitor.Enter(XNetEventPool._pool); + XNetEventPool._pool.Clear(); + Monitor.Exit(XNetEventPool._pool); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNetEventPool.cs.meta b/Client/Assets/Scripts/XMainClient/XNetEventPool.cs.meta new file mode 100644 index 00000000..4b501429 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNetEventPool.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1aaa9ede9e93f6147aaf3f23a23fd975 +timeCreated: 1611403311 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNewItemTipsMgr.cs b/Client/Assets/Scripts/XMainClient/XNewItemTipsMgr.cs new file mode 100644 index 00000000..f2f9fd93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNewItemTipsMgr.cs @@ -0,0 +1,111 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XNewItemTipsMgr + { + public HashSet NewItems + { + get + { + return this._NewItems; + } + } + + public XItemFilter Filter + { + get + { + return this._Filter; + } + } + + public bool bCanClear { get; set; } + + public bool bHasNew + { + get + { + return this._NewItems.Count > 0; + } + } + + private HashSet _NewItems = new HashSet(); + + private XItemFilter _Filter = new XItemFilter(); + + public void ClearItemType() + { + this.Clear(); + this._Filter.Clear(); + this.bCanClear = false; + } + + public bool AddItem(XItem item, bool bDontSave = false) + { + bool flag = this._Filter.Contains(item.Type); + bool result; + if (flag) + { + bool flag2 = !bDontSave; + if (flag2) + { + this._NewItems.Add(item.uid); + } + result = true; + } + else + { + result = false; + } + return result; + } + + public bool AddItems(List items, bool bDontSave = false) + { + bool flag = false; + for (int i = 0; i < items.Count; i++) + { + flag = (this.AddItem(items[i], bDontSave) || flag); + } + return flag; + } + + public bool RemoveItem(ulong uid, ItemType type, bool bConsiderFilter = false) + { + bool flag = this._Filter.Contains(type); + return flag && (this._NewItems.Remove(uid) || bConsiderFilter); + } + + public bool RemoveItems(List items, List types, bool bConsiderFilter = true) + { + bool flag = false; + for (int i = 0; i < items.Count; i++) + { + flag = (this.RemoveItem(items[i], types[i], bConsiderFilter) || flag); + } + return flag; + } + + public void TryClear() + { + bool bCanClear = this.bCanClear; + if (bCanClear) + { + this.Clear(); + } + } + + public void Clear() + { + this._NewItems.Clear(); + this.bCanClear = false; + } + + public bool IsNew(ulong uid) + { + return this._NewItems.Contains(uid); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNewItemTipsMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XNewItemTipsMgr.cs.meta new file mode 100644 index 00000000..adebaa96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNewItemTipsMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fac222cd4a61cd94ca47ba8a141736ac +timeCreated: 1611404928 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs new file mode 100644 index 00000000..713a70f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs @@ -0,0 +1,48 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNextDayRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XNextDayRewardDocument.uuID; + } + } + + public int Status { get; set; } + + public int LeftTime { get; set; } + + public bool HallShow { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("NextDayRewardDocument"); + + public void SendGetReward() + { + RpcC2G_GetNextDayReward rpc = new RpcC2G_GetNextDayReward(); + XSingleton.singleton.Send(rpc); + } + + public void QueryStatus() + { + PtcC2G_NextDayRewardReport proto = new PtcC2G_NextDayRewardReport(); + XSingleton.singleton.Send(proto); + } + + public void RefreshStatus(uint status, uint leftTime) + { + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void LuaShow(bool show) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs.meta new file mode 100644 index 00000000..ed5ecf1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNextDayRewardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6477c181108438f498d7606c0215ac64 +timeCreated: 1611403847 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNormalItem.cs b/Client/Assets/Scripts/XMainClient/XNormalItem.cs new file mode 100644 index 00000000..7097396a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalItem.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class XNormalItem : XItem + { + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNormalItem.cs.meta b/Client/Assets/Scripts/XMainClient/XNormalItem.cs.meta new file mode 100644 index 00000000..44c28209 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalItem.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8409c3fd2e617464aac69e8cdd461d70 +timeCreated: 1611404047 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNormalItemDrawer.cs b/Client/Assets/Scripts/XMainClient/XNormalItemDrawer.cs new file mode 100644 index 00000000..0179cbcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalItemDrawer.cs @@ -0,0 +1,249 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNormalItemDrawer : XItemDrawer, IXNormalItemDrawer, IXInterface + { + public bool Deprecated { get; set; } + + public void OpenClickShowTooltipEvent(GameObject go, int itemid) + { + this.OpenClickShowTooltipEvent(go, itemid, new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + public void OpenClickShowTooltipEvent(GameObject go, int itemid, SpriteClickEventHandler eventHandler) + { + bool flag = null == go; + if (!flag) + { + Transform transform = go.transform.Find("Icon"); + bool flag2 = transform != null; + if (flag2) + { + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + bool flag3 = ixuisprite != null; + if (flag3) + { + ixuisprite.ID = (ulong)((long)itemid); + ixuisprite.RegisterSpriteClickEventHandler(eventHandler); + } + } + } + } + + public void CloseClickShowTooltipEvent(GameObject go) + { + bool flag = null == go; + if (!flag) + { + Transform transform = go.transform.Find("Icon"); + bool flag2 = transform != null; + if (flag2) + { + IXUISprite ixuisprite = transform.GetComponent("XUISprite") as IXUISprite; + bool flag3 = ixuisprite != null; + if (flag3) + { + ixuisprite.RegisterSpriteClickEventHandler(null); + } + } + } + } + + public void DrawItem(GameObject go, ItemList.RowData data, int itemCount = 0, bool bForceShowNum = false) + { + this._GetUI(go); + this.itemdata = data; + bool flag = this.itemdata == null; + if (flag) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + this._SetupIcon(); + this._SetupAttrIcon(null); + this._SetupName(null); + base._SetupNum(itemCount, bForceShowNum); + this._SetupNumTop(null); + base._SetupLeftDownCorner(base._GetBindingState(null)); + base._SetupRightDownCorner(false); + this.SetupLeftUpFragment(data.ItemID); + base._SetupRightUpCorner(false); + base._SetupMask(); + this.SetProf(null); + this._ClearVariables(); + } + } + + public void DrawItem(GameObject go, int itemid, int itemCount = 0, bool bForceShowNum = false) + { + this._GetUI(go); + base._GetItemData(itemid); + bool flag = this.itemdata == null; + if (flag) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + this._SetUp(go, itemid, itemCount, bForceShowNum); + this._SetupAttrIcon(null); + base._SetupLeftDownCorner(base._GetBindingState(null)); + base._SetupRightDownCorner(false); + this.SetupLeftUpFragment(itemid); + base._SetupRightUpCorner(false); + base._SetupMask(); + this.SetProf(null); + this._ClearVariables(); + } + } + + public override void DrawItem(GameObject go, XItem realItem, bool bForceShowNum = false) + { + bool flag = realItem == null; + if (flag) + { + this.DrawItem(go, 0, 0, false); + } + else + { + this._GetUI(go); + base._GetItemData(realItem.itemID); + bool flag2 = this.itemdata == null; + if (flag2) + { + this.DrawEmpty(); + this._ClearVariables(); + } + else + { + this._SetUp(go, realItem.itemID, realItem.itemCount, bForceShowNum); + this._SetupAttrIcon(null); + base._SetupLeftDownCorner(base._GetBindingState(realItem)); + this.SetupLeftUpCorner(realItem); + base._SetupRightDownCorner(false); + base._SetupRightUpCorner(false); + base._SetupMask(); + this.SetProf(realItem); + this._ClearVariables(); + } + } + } + + private void _SetUp(GameObject go, int itemid, int itemCount = 0, bool bForceShowNum = false) + { + this._SetupIcon(); + this._SetupName(null); + base._SetupNum(itemCount, bForceShowNum); + this._SetupNumTop(null); + } + + private void SetupLeftUpCorner(XItem realItem = null) + { + bool flag = realItem == null; + if (flag) + { + base._SetupLeftUpCorner(false, ""); + } + ItemType type = realItem.Type; + if (type != ItemType.FRAGMENT) + { + if (type != ItemType.ARTIFACT) + { + base._SetupLeftUpCorner(false, ""); + } + else + { + XArtifactItem xartifactItem = realItem as XArtifactItem; + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)realItem.itemID); + bool flag2 = artifactListRowData == null || xartifactItem.EffectInfoList == null || (long)xartifactItem.EffectInfoList.Count <= (long)((ulong)artifactListRowData.EffectNum); + if (flag2) + { + base._SetupLeftUpCorner(false, ""); + } + else + { + base._SetupLeftUpCorner(true, ""); + } + } + } + else + { + base._SetupLeftUpCorner(true, "sp_1"); + } + } + + private void SetupLeftUpFragment(int itemid) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + bool flag = itemConf == null; + if (flag) + { + base._SetupLeftUpCorner(false, ""); + } + else + { + bool flag2 = itemConf.ItemType == 8; + if (flag2) + { + base._SetupLeftUpCorner(true, "sp_1"); + } + else + { + base._SetupLeftUpCorner(false, ""); + } + } + } + + private void SetProf(XItem realItem = null) + { + bool flag = realItem == null || realItem.Type != ItemType.ARTIFACT; + if (flag) + { + base._SetUpProf(false); + } + else + { + bool flag2 = XSingleton.singleton.Player == null; + if (flag2) + { + base._SetUpProf(false); + } + else + { + XArtifactItem xartifactItem = realItem as XArtifactItem; + bool flag3 = xartifactItem.EffectInfoList != null; + if (flag3) + { + for (int i = 0; i < xartifactItem.EffectInfoList.Count; i++) + { + bool flag4 = xartifactItem.EffectInfoList[i].BuffInfoList != null; + if (flag4) + { + bool flag5 = xartifactItem.EffectInfoList[i].BaseProf == XSingleton.singleton.Player.BasicTypeID; + if (flag5) + { + base._SetUpProf(true); + return; + } + } + } + } + base._SetUpProf(false); + } + } + } + + protected override void DrawEmpty() + { + base.DrawEmpty(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNormalItemDrawer.cs.meta b/Client/Assets/Scripts/XMainClient/XNormalItemDrawer.cs.meta new file mode 100644 index 00000000..79a86629 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalItemDrawer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b7c8c547374517e4b832f9e766de21c2 +timeCreated: 1611404403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNormalShopDocument.cs b/Client/Assets/Scripts/XMainClient/XNormalShopDocument.cs new file mode 100644 index 00000000..82711c72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalShopDocument.cs @@ -0,0 +1,899 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNormalShopDocument : XDocComponent + { + public override uint ID + { + get + { + return XNormalShopDocument.uuID; + } + } + + public static XNormalShopDocument ShopDoc + { + get + { + return XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + } + } + + public List GoodsList + { + get + { + return this.m_goodsList; + } + } + + public XNormalShopView View + { + get + { + return (!this.IsTabShop(this.m_curSysType)) ? DlgBase.singleton._NormalShopView : DlgBase.singleton._TabCategoryHandler; + } + } + + public XShopPurchaseView PurchaseView + { + get + { + return this._purchase; + } + set + { + this._purchase = value; + } + } + + public uint RereshCount + { + get + { + return this._refresh_count; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("NormalShopDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private List m_goodsList = new List(); + + private XShopPurchaseView _purchase = null; + + private static ShopTypeTable _shoptable = new ShopTypeTable(); + + private static ShopTable _shop = new ShopTable(); + + private uint _refresh_count = 0u; + + private bool isRedPointSend = false; + + private static ulong HONER_BOX_ID = 301UL; + + private static ulong HONER_POINT_SHOW_REDPOINT = 150UL; + + public ulong ToSelectShopItemID = 0UL; + + private XSysDefine m_curSysType = XSysDefine.XSys_None; + + public static void Execute(OnLoadedCallback callback = null) + { + XNormalShopDocument.AsyncLoader.AddTask("Table/ShopType", XNormalShopDocument._shoptable, false); + XNormalShopDocument.AsyncLoader.AddTask("Table/Shop", XNormalShopDocument._shop, false); + XNormalShopDocument.AsyncLoader.Execute(null); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + this.isRedPointSend = false; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && !this.isRedPointSend; + if (flag) + { + this.ReqGoodsList(XSysDefine.XSys_Mall_Honer); + this.isRedPointSend = true; + } + } + + public List GetTabListOfShop(XSysDefine sys) + { + List list = new List(); + uint shopId = this.GetShopId(sys); + for (int i = 0; i < XNormalShopDocument._shop.Table.Length; i++) + { + bool flag = XNormalShopDocument._shop.Table[i].Type == shopId && !list.Contains((int)XNormalShopDocument._shop.Table[i].ShopItemType); + if (flag) + { + list.Add((int)XNormalShopDocument._shop.Table[i].ShopItemType); + } + } + return list; + } + + public static uint GetLimitNumByShopId(uint shopid) + { + for (int i = 0; i < XNormalShopDocument._shop.Table.Length; i++) + { + bool flag = XNormalShopDocument._shop.Table[i].ID == shopid; + if (flag) + { + return (uint)XNormalShopDocument._shop.Table[i].DailyCountCondition; + } + } + return 0u; + } + + public static ShopTable.RowData GetDataByShopId(uint shopid) + { + for (int i = 0; i < XNormalShopDocument._shop.Table.Length; i++) + { + bool flag = XNormalShopDocument._shop.Table[i].ItemId == shopid; + if (flag) + { + return XNormalShopDocument._shop.Table[i]; + } + } + return null; + } + + public static ShopTable.RowData GetDataById(uint id) + { + for (int i = 0; i < XNormalShopDocument._shop.Table.Length; i++) + { + bool flag = XNormalShopDocument._shop.Table[i].ID == id; + if (flag) + { + return XNormalShopDocument._shop.Table[i]; + } + } + return null; + } + + public static ShopTable.RowData GetDataByItemId(uint id) + { + for (int i = 0; i < XNormalShopDocument._shop.Table.Length; i++) + { + bool flag = XNormalShopDocument._shop.Table[i].ItemId == id; + if (flag) + { + return XNormalShopDocument._shop.Table[i]; + } + } + return null; + } + + public uint GetShopId(XSysDefine shop) + { + ShopTypeTable.RowData shopTypeData = this.GetShopTypeData(shop); + bool flag = shopTypeData == null; + uint result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("ShopTypeTable not find this SysId = {0}", shop), null, null, null, null, null); + result = 0u; + } + else + { + result = shopTypeData.ShopID; + } + return result; + } + + public int GetShopViewDefaultTab() + { + int result = 0; + bool flag = this.ToSelectShopItemID > 0UL; + if (flag) + { + ShopTable.RowData dataByItemId = XNormalShopDocument.GetDataByItemId((uint)this.ToSelectShopItemID); + bool flag2 = dataByItemId != null; + if (flag2) + { + return (int)dataByItemId.ShopItemType; + } + } + return result; + } + + public bool CanBuyPreciousShopItem() + { + for (int i = 0; i < this.m_goodsList.Count; i++) + { + XNormalShopGoods xnormalShopGoods = this.m_goodsList[i]; + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)xnormalShopGoods.item.uid); + bool flag = dataById != null && dataById.IsPrecious; + if (flag) + { + uint dailyCountCondition = (uint)dataById.DailyCountCondition; + int weekCountCondition = (int)dataById.WeekCountCondition; + int num = 0; + bool flag2 = dataById.CountCondition > 0u; + if (flag2) + { + num = xnormalShopGoods.totalSoldNum; + } + else + { + bool flag3 = dailyCountCondition > 0u; + if (flag3) + { + num = xnormalShopGoods.soldNum; + } + else + { + bool flag4 = weekCountCondition != 0; + if (flag4) + { + num = (int)xnormalShopGoods.weeklyBuyCount; + } + } + } + int countCondition = (int)dataById.CountCondition; + bool flag5 = dailyCountCondition == 0u && countCondition == 0 && weekCountCondition == 0; + if (!flag5) + { + bool flag6 = countCondition != 0; + bool result; + if (flag6) + { + bool flag7 = num >= countCondition; + if (flag7) + { + goto IL_111; + } + result = true; + } + else + { + bool flag8 = dailyCountCondition != 0u && (long)num >= (long)((ulong)dailyCountCondition); + if (flag8) + { + goto IL_111; + } + bool flag9 = weekCountCondition != 0 && num >= weekCountCondition; + if (flag9) + { + goto IL_111; + } + result = true; + } + return result; + } + } + IL_111:; + } + return false; + } + + public List> GetShopItemByPlayLevelAndShopType(XSysDefine shop) + { + List item = new List(); + List item2 = new List(); + List item3 = new List(); + List> list = new List> + { + item, + item2, + item3 + }; + uint shopId = this.GetShopId(shop); + bool flag = shopId > 0u; + if (flag) + { + for (int i = 0; i < XNormalShopDocument._shop.Table.Length; i++) + { + ShopTable.RowData rowData = XNormalShopDocument._shop.Table[i]; + bool flag2 = rowData.Type == shopId && XSingleton.singleton.XPlayerData.Level >= rowData.LevelShow[0] && XSingleton.singleton.XPlayerData.Level <= rowData.LevelShow[1] && rowData.ShopItemCategory >= 1u && rowData.ShopItemCategory <= 3u; + if (flag2) + { + bool flag3 = !list[(int)(rowData.ShopItemCategory - 1u)].Contains(rowData.ItemId); + if (flag3) + { + list[(int)(rowData.ShopItemCategory - 1u)].Add(rowData.ItemId); + } + } + } + } + return list; + } + + public ShopTypeTable.RowData GetShopTypeData(XSysDefine shop) + { + return XNormalShopDocument._shoptable.GetBySystemId((uint)XFastEnumIntEqualityComparer.ToInt(shop)); + } + + public void ReqGoodsList(XSysDefine sys) + { + this.m_curSysType = sys; + bool flag = sys != XSysDefine.XSys_Mall_Partner && sys != XSysDefine.XSys_DragonGuildShop; + if (flag) + { + RpcC2G_QueryShopItem rpcC2G_QueryShopItem = new RpcC2G_QueryShopItem(); + ShopTypeTable.RowData shopTypeData = this.GetShopTypeData(sys); + bool flag2 = shopTypeData != null; + if (flag2) + { + rpcC2G_QueryShopItem.oArg.type = shopTypeData.ShopID; + rpcC2G_QueryShopItem.oArg.isrefresh = false; + } + else + { + XSingleton.singleton.AddErrorLog("ShopTypeTable not find this sytemId = " + sys, null, null, null, null, null); + } + XSingleton.singleton.Send(rpcC2G_QueryShopItem); + } + else + { + bool flag3 = sys == XSysDefine.XSys_Mall_Partner; + if (flag3) + { + RpcC2M_GetPartnerShop rpc = new RpcC2M_GetPartnerShop(); + XSingleton.singleton.Send(rpc); + } + else + { + bool flag4 = sys == XSysDefine.XSys_DragonGuildShop; + if (flag4) + { + RpcC2M_GetDragonGuildShop rpc2 = new RpcC2M_GetDragonGuildShop(); + XSingleton.singleton.Send(rpc2); + } + } + } + } + + public void OnGetGoodsList(QueryShopItemArg oArg, QueryShopItemRes oRes) + { + this._refresh_count = oRes.refreshcount; + this.SetGoodsList(oRes.ShopItem, oArg.type, oRes.cooklevel); + ShopTypeTable.RowData shopTypeData = this.GetShopTypeData(XSysDefine.XSys_Mall_Card1); + ShopTypeTable.RowData shopTypeData2 = this.GetShopTypeData(XSysDefine.XSys_Mall_Card2); + ShopTypeTable.RowData shopTypeData3 = this.GetShopTypeData(XSysDefine.XSys_Mall_Card3); + ShopTypeTable.RowData shopTypeData4 = this.GetShopTypeData(XSysDefine.XSys_Mall_Card4); + bool flag = (shopTypeData != null && oArg.type == shopTypeData.ShopID) || (shopTypeData2 != null && oArg.type == shopTypeData2.ShopID) || (shopTypeData3 != null && oArg.type == shopTypeData3.ShopID) || (shopTypeData4 != null && oArg.type == shopTypeData4.ShopID); + if (flag) + { + bool flag2 = DlgBase.singleton.ShopHandler != null; + if (flag2) + { + DlgBase.singleton.ShopHandler.SetCardShop(this.GoodsList); + } + } + } + + public bool IsTabShop(XSysDefine sys) + { + bool result = false; + ShopTypeTable.RowData shopTypeData = this.GetShopTypeData(sys); + bool flag = shopTypeData != null && shopTypeData.IsHasTab == 1; + if (flag) + { + result = true; + } + return result; + } + + public bool IsShop(XSysDefine sys) + { + return this.GetShopTypeData(sys) != null; + } + + public void OnGetGoodsList(GetPartnerShopArg oArg, GetPartnerShopRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + this._refresh_count = 0u; + this.SetGoodsList(oRes.item); + } + } + + public void OnGetGoodsList(GetDragonGuildShopArg oArg, GetDragonGuildShopRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + this._refresh_count = 0u; + this.SetGoodsList(oRes.items); + } + } + + public void ReqBuy(int index) + { + bool flag = index >= this.m_goodsList.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Item index out of range. ", index.ToString(), null, null, null, null); + } + else + { + XNormalShopGoods xnormalShopGoods = this.m_goodsList[index]; + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)xnormalShopGoods.item.uid); + uint itemnum = (dataById == null) ? 1u : dataById.ItemOverlap; + this.DoBuyItem(xnormalShopGoods, itemnum); + } + } + + public void DoBuyItem(XNormalShopGoods goods, uint itemnum) + { + bool flag = this.m_curSysType != XSysDefine.XSys_Mall_Partner && this.m_curSysType != XSysDefine.XSys_DragonGuildShop; + if (flag) + { + RpcC2G_BuyShopItem rpcC2G_BuyShopItem = new RpcC2G_BuyShopItem(); + rpcC2G_BuyShopItem.oArg.ItemUniqueId = goods.item.uid; + rpcC2G_BuyShopItem.oArg.count = itemnum; + XSingleton.singleton.Send(rpcC2G_BuyShopItem); + } + else + { + bool flag2 = this.m_curSysType == XSysDefine.XSys_Mall_Partner; + if (flag2) + { + RpcC2M_BuyPartnerShopItem rpcC2M_BuyPartnerShopItem = new RpcC2M_BuyPartnerShopItem(); + rpcC2M_BuyPartnerShopItem.oArg.count = itemnum; + rpcC2M_BuyPartnerShopItem.oArg.id = (uint)goods.item.uid; + XSingleton.singleton.Send(rpcC2M_BuyPartnerShopItem); + } + else + { + bool flag3 = this.m_curSysType == XSysDefine.XSys_DragonGuildShop; + if (flag3) + { + RpcC2M_BuyDragonGuildShopItem rpcC2M_BuyDragonGuildShopItem = new RpcC2M_BuyDragonGuildShopItem(); + rpcC2M_BuyDragonGuildShopItem.oArg.count = itemnum; + rpcC2M_BuyDragonGuildShopItem.oArg.id = (uint)goods.item.uid; + XSingleton.singleton.Send(rpcC2M_BuyDragonGuildShopItem); + } + } + } + } + + public void ReqBuyPanel(int index) + { + XNormalShopGoods goods = this.m_goodsList[index]; + DlgBase.singleton.PurchaseView.OnBuyItem(goods); + } + + public void OnGetBuy(BuyShopItemArg oArg, BuyShopItemRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + for (int i = 0; i < this.m_goodsList.Count; i++) + { + bool flag2 = this.m_goodsList[i].item.uid == oArg.ItemUniqueId; + if (flag2) + { + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)this.m_goodsList[i].item.uid); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)dataById.ConsumeItem[0]); + bool flag3 = dataById != null && itemConf != null; + if (flag3) + { + bool flag4 = oRes.ErrorCode == ErrorCode.ERR_SHOP_LEVELLIMIT; + if (flag4) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString(oRes.ErrorCode), dataById.LevelCondition), "fece00"); + return; + } + bool flag5 = oRes.ErrorCode == ErrorCode.ERR_ITEM_NOT_ENOUGH; + if (flag5) + { + string itemQualityRGB = XSingleton.singleton.GetItemQualityRGB((int)itemConf.ItemQuality); + string arg = string.Concat(new string[] + { + "[", + itemQualityRGB, + "]", + itemConf.ItemName[0], + "[-]" + }); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ERR_NOT_ENOUGH"), arg), "fece00"); + return; + } + } + } + } + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + this.RefreshShopData(oArg.ItemUniqueId, oArg.count); + bool flag6 = DlgBase.singleton.CurPage == CardPage.CardShop && DlgBase.singleton.ShopHandler != null; + if (flag6) + { + DlgBase.singleton.ShopHandler.RefreshChipNum(); + } + } + } + + public void OnGetBuy(BuyPartnerShopItemArg oArg, BuyPartnerShopItemRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + ErrorCode result = oRes.result; + if (result != ErrorCode.ERR_PARTNER_LN_NOT_ENOUGH) + { + if (result - ErrorCode.ERR_PARTNER_ITEM_NOT_FOUND > 2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.ReqGoodsList(XSysDefine.XSys_Mall_Partner); + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + else + { + ShopTable.RowData dataById = XNormalShopDocument.GetDataById(oArg.id); + bool flag3 = dataById != null; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("ERR_PARTNER_LEVEL_NOT_ENOUGH"), dataById.LevelCondition), "fece00"); + } + } + } + else + { + this.RefreshShopData((ulong)oArg.id, oArg.count); + } + } + } + + public void OnGetBuy(BuyDragonGuildShopItemArg oArg, BuyDragonGuildShopItemRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + ErrorCode result = oRes.result; + if (result != ErrorCode.ERR_PARTNER_LN_NOT_ENOUGH) + { + if (result - ErrorCode.ERR_PARTNER_ITEM_NOT_FOUND > 2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.ReqGoodsList(XSysDefine.XSys_DragonGuildShop); + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + else + { + ShopTable.RowData dataById = XNormalShopDocument.GetDataById(oArg.id); + bool flag3 = dataById != null; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("ERR_PARTNER_LEVEL_NOT_ENOUGH"), dataById.LevelCondition), "fece00"); + } + } + } + else + { + this.RefreshShopData((ulong)oArg.id, oArg.count); + } + } + } + + private void RefreshShopData(ulong uid, uint count) + { + for (int i = 0; i < this.m_goodsList.Count; i++) + { + bool flag = this.m_goodsList[i].item.uid == uid; + if (flag) + { + this.m_goodsList[i].soldNum += (int)count; + this.m_goodsList[i].totalSoldNum += (int)count; + this.m_goodsList[i].weeklyBuyCount += count; + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.UpdateShopItemInfo(this.m_goodsList[i]); + } + this.RefreshYyMallView(); + break; + } + } + } + + private void SetGoodsList(List goodsList, uint type = 0u, uint cooklevel = 0u) + { + this.m_goodsList.Clear(); + int num = 0; + bool flag = goodsList != null; + if (flag) + { + ShopTypeTable.RowData shopTypeData = this.GetShopTypeData(XSysDefine.XSys_Mall_Home); + foreach (ShopItem shopItem in goodsList) + { + bool flag2 = shopTypeData != null && shopTypeData.ShopID == type; + if (flag2) + { + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)shopItem.Item.uid); + bool flag3 = cooklevel < (uint)dataById.CookLevel; + if (flag3) + { + continue; + } + } + this.m_goodsList.Add(XNormalShopGoods.MakeGoodsFromData(shopItem)); + num++; + } + } + this.RefreshYyMallView(); + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.RefreshGoodsList(); + } + else + { + ShopTypeTable.RowData shopTypeData2 = this.GetShopTypeData(XSysDefine.XSys_Mall_Honer); + bool flag5 = shopTypeData2 != null && shopTypeData2.ShopID == type; + if (flag5) + { + foreach (ShopItem shopItem2 in goodsList) + { + ShopTable.RowData dataById2 = XNormalShopDocument.GetDataById((uint)shopItem2.Item.uid); + bool flag6 = shopItem2.Item.uid == XNormalShopDocument.HONER_BOX_ID && dataById2 != null; + if (flag6) + { + bool flag7 = XBagDocument.BagDoc.GetItemCount(XFastEnumIntEqualityComparer.ToInt(ItemEnum.HORNOR_POINT)) >= XNormalShopDocument.HONER_POINT_SHOW_REDPOINT && (uint)dataById2.DailyCountCondition - shopItem2.dailybuycount > 0u; + if (flag7) + { + XGameMallDocument specificDocument = XDocuments.GetSpecificDocument(XGameMallDocument.uuID); + specificDocument.RefreshShopRedPoint(XSysDefine.XSys_Mall_Honer, true); + } + } + } + } + } + } + + private void RefreshYyMallView() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgHandlerBase dlgHandlerBase; + DlgBase.singleton.m_AllHandlers.TryGetValue(XSysDefine.XSys_Welfare_YyMall, out dlgHandlerBase); + bool flag2 = dlgHandlerBase != null && dlgHandlerBase.IsVisible(); + if (flag2) + { + dlgHandlerBase.RefreshData(); + } + } + } + + private void SetGoodsList(List goodsList) + { + this.m_goodsList.Clear(); + bool flag = goodsList != null; + if (flag) + { + foreach (PartnerShopItemClient data in goodsList) + { + this.m_goodsList.Add(XNormalShopGoods.MakeGoodsFromData(data)); + } + } + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshGoodsList(); + } + } + + private void SetGoodsList(List goodsList) + { + this.m_goodsList.Clear(); + bool flag = goodsList != null; + if (flag) + { + foreach (DragonGuildShopItemClient data in goodsList) + { + this.m_goodsList.Add(XNormalShopGoods.MakeGoodsFromData(data)); + } + } + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshGoodsList(); + } + } + + private void SelectDefaultShopItem() + { + bool flag = this.ToSelectShopItemID > 0UL && this.m_goodsList.Count > 0; + if (flag) + { + int num = -1; + for (int i = 0; i < this.m_goodsList.Count; i++) + { + bool flag2 = this.m_goodsList[i].item.itemID == (int)this.ToSelectShopItemID; + if (flag2) + { + num = i; + break; + } + } + bool flag3 = num >= 0; + if (flag3) + { + XNormalShopGoods value = this.m_goodsList[num]; + for (int j = num - 1; j >= 0; j--) + { + this.m_goodsList[j + 1] = this.m_goodsList[j]; + } + this.m_goodsList[0] = value; + } + } + } + + protected bool OnVirtualItemChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.OnVirtualItemChanged(xvirtualItemChangedEventArgs.e, xvirtualItemChangedEventArgs.newValue); + } + return true; + } + + protected bool OnItemNumChanged(XEventArgs args) + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.OnItemCountChanged(xitemNumChangedEventArgs.item.itemID, xitemNumChangedEventArgs.item.itemCount); + } + return true; + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + DlgBase.singleton.OnItemCountChanged(xaddItemEventArgs.items[i].itemID, xaddItemEventArgs.items[i].itemCount); + } + } + return true; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + bool flag = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag) + { + for (int i = 0; i < xremoveItemEventArgs.ids.Count; i++) + { + DlgBase.singleton.OnItemCountChanged(xremoveItemEventArgs.ids[i], 0); + } + } + return true; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public bool IsShopAvailable(XSysDefine sys) + { + bool flag = !XSingleton.singleton.IsSystemOpened(sys); + bool result; + if (flag) + { + result = false; + } + else + { + int hour = DateTime.Now.Hour; + int minute = DateTime.Now.Minute; + bool flag2 = false; + ShopTypeTable.RowData shopTypeData = this.GetShopTypeData(sys); + bool flag3 = shopTypeData != null; + if (flag3) + { + for (int i = 0; i < shopTypeData.ShopOpen.Count; i++) + { + int num = hour * 100 + minute; + bool flag4 = (long)num >= (long)((ulong)shopTypeData.ShopOpen[i, 0]) && (long)num <= (long)((ulong)shopTypeData.ShopOpen[i, 1]); + if (flag4) + { + flag2 = true; + } + } + } + result = flag2; + } + return result; + } + + public bool IsExchangeMoney(int itemid) + { + return itemid == 1 || itemid == 7 || itemid == 88; + } + + public bool IsMoneyOrItemEnough(int itemid, int reqnum) + { + ulong itemCount = XSingleton.singleton.Doc.XBagDoc.GetItemCount(itemid); + bool flag = reqnum > (int)itemCount; + return !flag; + } + + public void ProcessItemOrMoneyNotEnough(int itemid) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemid); + bool flag = itemConf != null; + if (flag) + { + string itemQualityRGB = XSingleton.singleton.GetItemQualityRGB((int)itemConf.ItemQuality); + string arg = string.Concat(new string[] + { + "[", + itemQualityRGB, + "]", + itemConf.ItemName[0], + "[-]" + }); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("ERR_NOT_ENOUGH"), arg), "fece00"); + } + bool flag2 = itemid == 88; + if (flag2) + { + XSingleton.singleton.ShowItemAccess(itemid, null); + } + else + { + DlgBase.singleton.ShowBorad((ItemEnum)itemid); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNormalShopDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XNormalShopDocument.cs.meta new file mode 100644 index 00000000..e2726fb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalShopDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 173be3da1f29a864c88e8b11b386ee3a +timeCreated: 1611403292 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNormalShopGoods.cs b/Client/Assets/Scripts/XMainClient/XNormalShopGoods.cs new file mode 100644 index 00000000..2b343c7a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalShopGoods.cs @@ -0,0 +1,160 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNormalShopGoods + { + public XItem item; + + public int priceType; + + public int priceValue; + + public int soldNum; + + public int totalSoldNum; + + public int needLevel; + + public bool isLevelEnough; + + public uint weeklyBuyCount; + + public void UpdateData(ShopItem data) + { + this.item = XBagDocument.MakeXItem(data.Item); + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)data.Item.uid); + bool flag = dataById != null; + if (flag) + { + this.priceType = (int)dataById.ConsumeItem[0]; + this.priceValue = (int)dataById.ConsumeItem[1]; + this.soldNum = (int)data.dailybuycount; + this.totalSoldNum = (int)data.buycount; + this.weeklyBuyCount = data.weekbuycount; + this.needLevel = (int)dataById.LevelCondition; + this.SetLevelCondition(dataById.Type, (uint)dataById.LevelCondition); + } + } + + public static XNormalShopGoods MakeGoodsFromData(ShopItem data) + { + XNormalShopGoods xnormalShopGoods = new XNormalShopGoods(); + xnormalShopGoods.UpdateData(data); + return xnormalShopGoods; + } + + public void UpdateData(PartnerShopItemClient data) + { + ShopTable.RowData dataById = XNormalShopDocument.GetDataById(data.id); + bool flag = dataById == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("not find this shopItem,shopid is :" + data.id, null, null, null, null, null); + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)dataById.ItemId); + bool flag2 = itemConf == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("not find this item,shopid is :" + data.id, "itemid is :" + dataById.ItemId, null, null, null, null); + } + else + { + bool flag3 = itemConf.ItemType == 1; + int itemID; + if (flag3) + { + itemID = XBagDocument.ConvertTemplate(itemConf); + } + else + { + itemID = itemConf.ItemID; + } + this.item = XBagDocument.MakeXItem(itemID, dataById.IsNotBind); + this.item.uid = (ulong)data.id; + this.item.itemCount = 0; + this.priceType = (int)dataById.ConsumeItem[0]; + this.priceValue = (int)dataById.ConsumeItem[1]; + this.soldNum = (int)data.buy_count; + this.totalSoldNum = (int)dataById.DailyCountCondition; + this.weeklyBuyCount = (uint)dataById.WeekCountCondition; + this.needLevel = (int)dataById.LevelCondition; + this.SetLevelCondition(dataById.Type, (uint)dataById.LevelCondition); + } + } + } + + public void UpdateData(DragonGuildShopItemClient data) + { + ShopTable.RowData dataById = XNormalShopDocument.GetDataById(data.id); + bool flag = dataById == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("not find this shopItem,shopid is :" + data.id, null, null, null, null, null); + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)dataById.ItemId); + bool flag2 = itemConf == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("not find this item,shopid is :" + data.id, "itemid is :" + dataById.ItemId, null, null, null, null); + } + else + { + bool flag3 = itemConf.ItemType == 1; + int itemID; + if (flag3) + { + itemID = XBagDocument.ConvertTemplate(itemConf); + } + else + { + itemID = itemConf.ItemID; + } + this.item = XBagDocument.MakeXItem(itemID, dataById.IsNotBind); + this.item.uid = (ulong)data.id; + this.item.itemCount = 0; + this.priceType = (int)dataById.ConsumeItem[0]; + this.priceValue = (int)dataById.ConsumeItem[1]; + this.soldNum = (int)data.buy_count; + this.totalSoldNum = (int)dataById.DailyCountCondition; + this.weeklyBuyCount = (uint)dataById.WeekCountCondition; + this.needLevel = (int)dataById.LevelCondition; + this.SetLevelCondition(dataById.Type, (uint)dataById.LevelCondition); + } + } + } + + public static XNormalShopGoods MakeGoodsFromData(PartnerShopItemClient data) + { + XNormalShopGoods xnormalShopGoods = new XNormalShopGoods(); + xnormalShopGoods.UpdateData(data); + return xnormalShopGoods; + } + + public static XNormalShopGoods MakeGoodsFromData(DragonGuildShopItemClient data) + { + XNormalShopGoods xnormalShopGoods = new XNormalShopGoods(); + xnormalShopGoods.UpdateData(data); + return xnormalShopGoods; + } + + private void SetLevelCondition(uint type, uint level) + { + bool flag = type == 20u; + if (flag) + { + this.isLevelEnough = (XPartnerDocument.Doc.CurPartnerLevel >= level); + } + else + { + this.isLevelEnough = (XSingleton.singleton.XPlayerData.Level >= level); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNormalShopGoods.cs.meta b/Client/Assets/Scripts/XMainClient/XNormalShopGoods.cs.meta new file mode 100644 index 00000000..6bb2aef7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalShopGoods.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb64fb5475b0d074585e91186ffd8c3d +timeCreated: 1611404440 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNormalShopView.cs b/Client/Assets/Scripts/XMainClient/XNormalShopView.cs new file mode 100644 index 00000000..a4e29328 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalShopView.cs @@ -0,0 +1,535 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNormalShopView : DlgHandlerBase + { + protected XUIPool m_ShopItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + protected List m_ShopItemList = new List(); + + private XNormalShopDocument _doc = null; + + public XSysDefine m_SysShop = XSysDefine.XSys_Mall_Mall; + + public IXUIScrollView m_ScrollView; + + private IXUIButton m_RefreshBtn; + + private int m_RefreshedTime = 0; + + private IXUILabel m_RefreshLabel; + + private GameObject m_partnerInfoGo; + + private IXUIButton m_refreshBtn; + + private IXUILabel m_refreshTipLab; + + private PartnerShopRecordsHandler m_partnerShopRecordsHandler; + + private DragonGuildShopRecordsHandler m_dragonguildShopRecordsHandler; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + this.m_ShopItemPool.SetupPool(base.PanelObject.transform.Find("Panel").gameObject, base.PanelObject.transform.Find("Panel/ShopItemTpl").gameObject, 6u, false); + this.m_ScrollView = (base.PanelObject.transform.Find("Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RefreshBtn = (base.PanelObject.transform.Find("RefreshInfo/BtnRefresh").GetComponent("XUIButton") as IXUIButton); + this.m_RefreshBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRefreshShop)); + this.m_RefreshLabel = (base.PanelObject.transform.Find("RefreshInfo/RefreshLabel").GetComponent("XUILabel") as IXUILabel); + this.m_partnerInfoGo = base.PanelObject.transform.Find("PartnerInfo").gameObject; + this.m_refreshBtn = (this.m_partnerInfoGo.transform.Find("RecordBtn").GetComponent("XUIButton") as IXUIButton); + this.m_refreshBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickrRecordBtn)); + this.m_refreshTipLab = (this.m_partnerInfoGo.transform.Find("Tips").GetComponent("XUILabel") as IXUILabel); + this.m_refreshTipLab.SetText(XSingleton.singleton.GetString("PartnerShopRefreshTip")); + DlgHandlerBase.EnsureCreate(ref this.m_partnerShopRecordsHandler, base.PanelObject.transform, false, this); + DlgHandlerBase.EnsureCreate(ref this.m_dragonguildShopRecordsHandler, base.PanelObject.transform, false, this); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnRefreshData(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_partnerShopRecordsHandler); + DlgHandlerBase.EnsureUnload(ref this.m_dragonguildShopRecordsHandler); + base.OnUnload(); + } + + public override void StackRefresh() + { + bool flag = this._doc != null; + if (flag) + { + this._doc.ReqGoodsList(this.m_SysShop); + } + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + } + + public void SetShopType(XSysDefine sys) + { + this.m_SysShop = sys; + } + + public void OnRefreshData() + { + this._doc.ReqGoodsList(this.m_SysShop); + this.m_RefreshLabel.SetText(XSingleton.singleton.GetString("PartnerShopRefreshTip")); + this.m_partnerInfoGo.gameObject.SetActive(this.m_SysShop == XSysDefine.XSys_Mall_Partner || this.m_SysShop == XSysDefine.XSys_DragonGuildShop); + this.m_refreshBtn.ID = (ulong)((long)this.m_SysShop); + this.RefreshShopInfo(); + } + + public void SetRefreshedTime(int times) + { + this.m_RefreshedTime = times; + } + + private void RefreshShopInfo() + { + ShopTypeTable.RowData shopTypeData = this._doc.GetShopTypeData(this.m_SysShop); + string text = ""; + bool flag = shopTypeData != null; + if (flag) + { + bool flag2 = shopTypeData.ShopCycle == null || shopTypeData.ShopCycle.Length == 0; + if (flag2) + { + this.m_RefreshLabel.SetText(""); + } + else + { + bool flag3 = shopTypeData.ShopCycle.Length == 1 && shopTypeData.ShopCycle[0] == 0u; + if (flag3) + { + this.m_RefreshLabel.SetText(""); + } + else + { + for (int i = 0; i < shopTypeData.ShopCycle.Length; i++) + { + int num = (int)(shopTypeData.ShopCycle[i] / 100u); + int num2 = (int)(shopTypeData.ShopCycle[i] % 100u); + bool flag4 = i != shopTypeData.ShopCycle.Length - 1; + if (flag4) + { + text += string.Format("{0:D2}:{1:D2}", num, num2); + } + else + { + text += string.Format("{0:D2}:{1:D2}", num, num2); + } + } + this.m_RefreshLabel.SetText(string.Format(XStringDefineProxy.GetString("SHOP_REFRESH_TIME"), text)); + } + } + bool flag5 = shopTypeData.RefreshCost.Count == 0; + if (flag5) + { + this.m_RefreshBtn.SetVisible(false); + } + else + { + this.m_RefreshBtn.SetVisible(true); + } + } + else + { + this.m_RefreshBtn.SetVisible(false); + } + this.m_ShopItemPool.ReturnAll(false); + DlgBase.singleton.SetSys = this.m_SysShop; + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.OnTopUIRefreshed(DlgBase.singleton); + } + + public void RefreshGoodsList() + { + List goodsList = this._doc.GoodsList; + this.m_ShopItemPool.ReturnAll(false); + this.m_ShopItemList.Clear(); + int num = 0; + for (int i = 0; i < goodsList.Count; i++) + { + XNormalShopGoods xnormalShopGoods = goodsList[i]; + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)xnormalShopGoods.item.uid); + bool flag = this.CheckGoodsShowing(dataById); + if (flag) + { + GameObject showProductGo = this.GetShowProductGo(); + IXUIButton ixuibutton = showProductGo.transform.Find("BtnBuy").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite = showProductGo.transform.Find("Item/Icon").GetComponent("XUISprite") as IXUISprite; + ixuibutton.ID = (ulong)((long)i); + ixuisprite.ID = (ulong)((long)i); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnItemBuyClicked)); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnItemIconClicked)); + ixuibutton.SetAudioClip(""); + this.UpdateGoodsInfo(xnormalShopGoods, showProductGo); + showProductGo.transform.localPosition = new Vector3(this.m_ShopItemPool.TplPos.x + (float)(num % 2 * this.m_ShopItemPool.TplWidth), this.m_ShopItemPool.TplPos.y - (float)(num / 2 * this.m_ShopItemPool.TplHeight), this.m_ShopItemPool.TplPos.z); + num++; + } + } + this.m_ScrollView.ResetPosition(); + } + + protected virtual bool CheckGoodsShowing(ShopTable.RowData shopGoods) + { + bool flag = shopGoods == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.m_SysShop != XSysDefine.XSys_Mall_Partner; + if (flag2) + { + bool flag3 = shopGoods.LevelShow[0] != 0u || shopGoods.LevelShow[1] > 0u; + if (flag3) + { + bool flag4 = XSingleton.singleton.XPlayerData.Level < shopGoods.LevelShow[0] || XSingleton.singleton.XPlayerData.Level > shopGoods.LevelShow[1]; + if (flag4) + { + return false; + } + } + } + result = true; + } + return result; + } + + private GameObject GetShowProductGo() + { + GameObject gameObject = this.m_ShopItemPool.FetchGameObject(false); + this.m_ShopItemList.Add(gameObject); + return gameObject; + } + + private void UpdateGoodsInfo(XNormalShopGoods goods, GameObject shopItem) + { + XSingleton.singleton.DrawItem(shopItem.transform.Find("Item").gameObject, goods.item); + IXUILabel ixuilabel = shopItem.transform.Find("MoneyCost").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = shopItem.transform.Find("MoneyCost/Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = shopItem.transform.Find("Cover").GetComponent("XUISprite") as IXUISprite; + IXUIButton ixuibutton = shopItem.transform.Find("BtnBuy").GetComponent("XUIButton") as IXUIButton; + IXUISprite ixuisprite3 = shopItem.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = goods.item.uid; + IXUISprite ixuisprite4 = shopItem.transform.Find("Item/limit").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = shopItem.transform.Find("Item/limit/num").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite5 = shopItem.transform.Find("sale").GetComponent("XUISprite") as IXUISprite; + ixuisprite5.SetVisible(false); + IXUILabel ixuilabel3 = shopItem.transform.Find("sale/T").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite6 = shopItem.transform.Find("sale2").GetComponent("XUISprite") as IXUISprite; + ixuisprite6.SetVisible(false); + IXUISprite ixuisprite7 = shopItem.transform.Find("sale3").GetComponent("XUISprite") as IXUISprite; + ixuisprite7.SetVisible(false); + IXUISprite ixuisprite8 = shopItem.transform.Find("Item/limit1").GetComponent("XUISprite") as IXUISprite; + ixuisprite8.SetVisible(false); + IXUILabel ixuilabel4 = shopItem.transform.Find("Item/limit1/num").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel5 = shopItem.transform.Find("T1").GetComponent("XUILabel") as IXUILabel; + ixuilabel5.SetVisible(false); + IXUILabel ixuilabel6 = shopItem.transform.Find("T2").GetComponent("XUILabel") as IXUILabel; + ixuilabel6.SetVisible(false); + IXUILabel ixuilabel7 = shopItem.transform.Find("T3").GetComponent("XUILabel") as IXUILabel; + ixuilabel7.SetVisible(false); + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)goods.item.uid); + ixuilabel.SetText(goods.priceValue.ToString()); + bool flag = dataById.Benefit[0] == 1u; + if (flag) + { + ixuisprite6.SetVisible(true); + } + else + { + bool flag2 = dataById.Benefit[0] == 2u; + if (flag2) + { + ixuisprite8.SetVisible(true); + ixuilabel5.SetVisible(true); + ixuilabel5.SetText("[s]" + goods.priceValue.ToString()); + uint num = dataById.Benefit[1]; + bool flag3 = num % 10u == 0u; + if (flag3) + { + num = dataById.Benefit[1] / 10u; + } + ixuilabel4.SetText("[b]" + num.ToString()); + ixuilabel.SetText(((int)((long)goods.priceValue * (long)((ulong)dataById.Benefit[1])) / 100).ToString()); + } + } + ShopTable.RowData dataById2 = XNormalShopDocument.GetDataById((uint)goods.item.uid); + uint dailyCountCondition = (uint)dataById2.DailyCountCondition; + int weekCountCondition = (int)dataById2.WeekCountCondition; + int num2 = 0; + bool flag4 = dataById2.CountCondition > 0u; + if (flag4) + { + num2 = goods.totalSoldNum; + } + else + { + bool flag5 = dailyCountCondition > 0u; + if (flag5) + { + num2 = goods.soldNum; + } + else + { + bool flag6 = weekCountCondition != 0; + if (flag6) + { + num2 = (int)goods.weeklyBuyCount; + } + } + } + int countCondition = (int)dataById2.CountCondition; + bool flag7 = dailyCountCondition == 0u && countCondition == 0 && weekCountCondition == 0; + if (flag7) + { + ixuisprite4.SetVisible(false); + ixuisprite2.SetVisible(false); + ixuibutton.SetEnable(true, false); + } + else + { + bool flag8 = countCondition != 0; + if (flag8) + { + bool flag9 = num2 >= countCondition; + if (flag9) + { + ixuibutton.SetEnable(false, false); + ixuisprite2.SetVisible(true); + } + else + { + ixuibutton.SetEnable(true, false); + ixuisprite2.SetVisible(false); + } + } + else + { + bool flag10 = dailyCountCondition != 0u && (long)num2 >= (long)((ulong)dailyCountCondition); + if (flag10) + { + ixuibutton.SetEnable(false, false); + ixuisprite2.SetVisible(true); + } + else + { + bool flag11 = weekCountCondition != 0 && num2 >= weekCountCondition; + if (flag11) + { + ixuibutton.SetEnable(false, false); + ixuisprite2.SetVisible(false); + } + else + { + ixuibutton.SetEnable(true, false); + ixuisprite2.SetVisible(false); + } + } + } + ixuisprite4.SetVisible(false); + ixuilabel2.SetVisible(false); + ixuilabel6.SetVisible(true); + bool flag12 = countCondition != 0; + if (flag12) + { + ixuilabel6.SetText(string.Format(XStringDefineProxy.GetString("SHOP_TOTAL_CAN_BUY"), ((countCondition - num2 > 0) ? (countCondition - num2) : 0).ToString())); + } + else + { + bool flag13 = dailyCountCondition > 0u; + if (flag13) + { + ixuilabel6.SetText(string.Format(XStringDefineProxy.GetString("SHOP_TODAY_CAN_BUY"), ((long)(((ulong)dailyCountCondition - (ulong)((long)num2) > 0UL) ? ((ulong)dailyCountCondition - (ulong)((long)num2)) : 0UL)).ToString())); + } + else + { + bool flag14 = weekCountCondition != 0; + if (flag14) + { + ixuilabel6.SetText(string.Format(XStringDefineProxy.GetString("SHOP_Weekly_CAN_BUY"), ((weekCountCondition - num2 > 0) ? (weekCountCondition - num2) : 0).ToString())); + } + } + } + } + string itemSmallIcon = XBagDocument.GetItemSmallIcon(goods.priceType, 0u); + ixuisprite.SetSprite(itemSmallIcon); + } + + private void OnItemIconClicked(IXUISprite iSp) + { + List goodsList = this._doc.GoodsList; + bool flag = goodsList.Count <= (int)iSp.ID; + if (flag) + { + XSingleton.singleton.AddErrorLog("goodsList.Count <= (int)iSp.ID", null, null, null, null, null); + } + else + { + XNormalShopGoods xnormalShopGoods = goodsList[(int)iSp.ID]; + XItem mainItem = XBagDocument.MakeXItem(xnormalShopGoods.item.itemID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, iSp, false, 0u); + } + } + + public void UpdateShopItemInfo(XNormalShopGoods item) + { + for (int i = 0; i < this.m_ShopItemList.Count; i++) + { + IXUISprite ixuisprite = this.m_ShopItemList[i].transform.GetComponent("XUISprite") as IXUISprite; + bool flag = ixuisprite.ID == item.item.uid; + if (flag) + { + this.UpdateGoodsInfo(item, this.m_ShopItemList[i]); + break; + } + } + } + + private bool OnItemBuyClicked(IXUIButton btn) + { + this._doc.ReqBuyPanel((int)btn.ID); + return true; + } + + private uint GetRefreshCost() + { + ShopTypeTable.RowData shopTypeData = this._doc.GetShopTypeData(this.m_SysShop); + bool flag = shopTypeData == null; + uint result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("ShopTypeTable not find this systenId = {0}", this.m_SysShop), null, null, null, null, null); + result = 0u; + } + else + { + uint rereshCount = this._doc.RereshCount; + bool flag2 = (ulong)rereshCount < (ulong)((long)shopTypeData.RefreshCost.Count); + if (flag2) + { + result = shopTypeData.RefreshCost[(int)rereshCount, 1]; + } + else + { + result = shopTypeData.RefreshCost[shopTypeData.RefreshCost.Count - 1, 1]; + } + } + return result; + } + + private string GetMoneyName() + { + ShopTypeTable.RowData shopTypeData = this._doc.GetShopTypeData(this.m_SysShop); + bool flag = shopTypeData == null; + string result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("ShopTypeTable not find this systenId = {0}", this.m_SysShop), null, null, null, null, null); + result = ""; + } + else + { + bool flag2 = (ulong)this._doc.RereshCount < (ulong)((long)shopTypeData.RefreshCost.Count); + uint itemID; + if (flag2) + { + itemID = shopTypeData.RefreshCost[(int)this._doc.RereshCount, 0]; + } + else + { + itemID = shopTypeData.RefreshCost[shopTypeData.RefreshCost.Count - 1, 0]; + } + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemID); + result = itemConf.ItemName[0]; + } + return result; + } + + private bool OnRefreshShop(IXUIButton btn) + { + string label = string.Format(XStringDefineProxy.GetString("NORMALSHOP_REFRESH"), this.GetRefreshCost().ToString(), this.GetMoneyName()); + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.DoRefreshShop)); + return true; + } + + private bool OnClickrRecordBtn(IXUIButton btn) + { + XSysDefine xsysDefine = (XSysDefine)btn.ID; + XSysDefine xsysDefine2 = xsysDefine; + bool result; + if (xsysDefine2 != XSysDefine.XSys_Mall_Partner) + { + if (xsysDefine2 != XSysDefine.XSys_DragonGuildShop) + { + XSingleton.singleton.AddErrorLog("ThisButton is not correct init", null, null, null, null, null); + result = false; + } + else + { + this.m_dragonguildShopRecordsHandler.SetVisible(true); + result = true; + } + } + else + { + this.m_partnerShopRecordsHandler.SetVisible(true); + result = true; + } + return result; + } + + private bool DoRefreshShop(IXUIButton btn) + { + bool flag = !this._doc.IsMoneyOrItemEnough(7, (int)this.GetRefreshCost()); + bool result; + if (flag) + { + this._doc.ProcessItemOrMoneyNotEnough(7); + result = false; + } + else + { + RpcC2G_QueryShopItem rpcC2G_QueryShopItem = new RpcC2G_QueryShopItem(); + rpcC2G_QueryShopItem.oArg.isrefresh = true; + rpcC2G_QueryShopItem.oArg.type = this._doc.GetShopId(this.m_SysShop); + XSingleton.singleton.Send(rpcC2G_QueryShopItem); + XSingleton.singleton.CloseModalDlg(); + result = true; + } + return result; + } + + protected override void OnHide() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(false); + DlgBase.singleton.SetVisible(true, true); + } + XNormalShopDocument.ShopDoc.ToSelectShopItemID = 0UL; + base.OnHide(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNormalShopView.cs.meta b/Client/Assets/Scripts/XMainClient/XNormalShopView.cs.meta new file mode 100644 index 00000000..e29d1e6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNormalShopView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fef9fcdebfb1a9941ab0fea5afbf94a6 +timeCreated: 1611404944 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNpc.cs b/Client/Assets/Scripts/XMainClient/XNpc.cs new file mode 100644 index 00000000..7576efef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNpc.cs @@ -0,0 +1,254 @@ +using System; +using System.Text; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XNpc : XEntity + { + public uint NPCType + { + get + { + return this._npc_type; + } + } + + private uint _uGazing = 0u; + + private uint _token = 0u; + + private Transform _head = null; + + private Vector3 _head_rotate = Vector3.forward; + + private bool _onlyHead = true; + + private string[] _show_ups = null; + + public uint _npc_type = 0u; + + public int _linkSys = 0; + + private string _special_anim = string.Empty; + + private string[] _special_chat = new string[0]; + + public static int NpcLayer = LayerMask.NameToLayer("Npc"); + + private static CommandCallback _findHeadCb = new CommandCallback(XNpc._FindHead); + + private XTimerMgr.ElapsedEventHandler _resetIdleCb = null; + + private OverrideAnimCallback animLoadCb = null; + + public XNpc() + { + this._resetIdleCb = new XTimerMgr.ElapsedEventHandler(this.ResetIdle); + } + + private static void _FindHead(XGameObject gameObject, object o, int commandID) + { + XNpc xnpc = o as XNpc; + bool flag = xnpc != null; + if (flag) + { + StringBuilder stringBuilder = xnpc._onlyHead ? new StringBuilder("Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1/Bip001 Neck/Bip001 Head", 128) : new StringBuilder("Bip001/Bip001 Pelvis/Bip001 Spine/Bip001 Spine1", 128); + string text = XSingleton.singleton.EntityInfo.GetByPresentID(xnpc.Attributes.PresentID).BoneSuffix + "/"; + stringBuilder.Replace("/", text); + stringBuilder.Append(text); + xnpc._head = xnpc.EngineObject.Find(stringBuilder.ToString(0, stringBuilder.Length - 1)); + bool flag2 = xnpc._head == null; + if (flag2) + { + stringBuilder.Replace("/Bip001 Spine1" + text, "/"); + xnpc._head = xnpc.EngineObject.Find(stringBuilder.ToString(0, stringBuilder.Length - 1)); + } + } + } + + public override bool Initilize(int flag) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Npc; + this._layer = LayerMask.NameToLayer("Npc"); + this._using_cc_move = false; + this._present = (XSingleton.singleton.CreateComponent(this, XPresentComponent.uuID) as XPresentComponent); + XSingleton.singleton.CreateComponent(this, XIdleComponent.uuID); + this._billboard = (XSingleton.singleton.CreateComponent(this, XBillboardComponent.uuID) as XBillboardComponent); + XSingleton.singleton.CreateComponent(this, XCharacterShowChatComponent.uuID); + this._audio = (XSingleton.singleton.CreateComponent(this, XAudioComponent.uuID) as XAudioComponent); + bool flag2 = this._transformee == null && this._present != null && this._present.PresentLib.Shadow; + if (flag2) + { + XSingleton.singleton.CreateComponent(this, XShadowComponent.uuID); + } + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(this.Attributes.TypeID); + this._uGazing = (XQualitySetting.GetQuality(EFun.ENpcShadow) ? byNPCID.Gazing : 0u); + this._show_ups = byNPCID.ShowUp; + this._linkSys = byNPCID.LinkSystem; + this._special_anim = byNPCID.SpecialAnim; + this._special_chat = byNPCID.SpecialChat.Split(new char[] + { + '|' + }); + bool flag3 = this._uGazing > 0u; + if (flag3) + { + this._onlyHead = byNPCID.OnlyHead; + this._head_rotate = this.EngineObject.Forward; + this.EngineObject.CallCommand(XNpc._findHeadCb, this, -1, false); + } + this._npc_type = XSingleton.singleton.NpcInfo.GetByNPCID(this.TypeID).NPCType; + base.Ator.cullingMode = (AnimatorCullingMode) 1; + return true; + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this._uGazing > 0u && this._head != null; + if (flag) + { + Vector3 vector = XSingleton.singleton.Player.EngineObject.Position - this.EngineObject.Position; + float magnitude = vector.magnitude; + XSingleton.singleton.Horizontal(ref vector); + bool flag2 = magnitude < 10f; + if (flag2) + { + Vector3 forward = this.EngineObject.Forward; + bool flag3 = Vector3.Angle(vector, forward) > this._uGazing; + if (flag3) + { + vector = XSingleton.singleton.HorizontalRotateVetor3(forward, (float)(XSingleton.singleton.Clockwise(forward, vector) ? ((ulong)this._uGazing) : (-(float)((ulong)this._uGazing))), true); + } + } + else + { + vector = this.EngineObject.Forward; + } + this._head_rotate += (vector - this._head_rotate) * Mathf.Min(1f, 3f * fDeltaT); + float num = XSingleton.singleton.AngleToFloat(this._head_rotate); + num -= this.EngineObject.Rotation.eulerAngles.y; + Vector3 localEulerAngles = this._head.localEulerAngles; + localEulerAngles.x += -num; + localEulerAngles.x %= 360f; + bool flag4 = localEulerAngles.x > 180f; + if (flag4) + { + localEulerAngles.x -= 360f; + } + bool flag5 = localEulerAngles.x < -180f; + if (flag5) + { + localEulerAngles.x += 360f; + } + bool flag6 = Mathf.Abs(localEulerAngles.x) > this._uGazing; + if (flag6) + { + localEulerAngles.x = (float)((localEulerAngles.x > 0f) ? ((ulong)this._uGazing) : (-(float)((ulong)this._uGazing))); + } + this._head.localEulerAngles = localEulerAngles; + } + base.PostUpdate(fDeltaT); + } + + private void AnimLoadCallback(XAnimationClip clip) + { + this._token = XSingleton.singleton.SetTimer(clip.length - 0.034f, this._resetIdleCb, null); + bool flag = this.animLoadCb != null; + if (flag) + { + this.animLoadCb(clip); + this.animLoadCb = null; + } + } + + public bool ShowUp(OverrideAnimCallback animLoad = null) + { + bool flag = this._show_ups != null && this._show_ups.Length != 0; + bool result; + if (flag) + { + XSingleton.singleton.KillTimer(this._token); + int num = XSingleton.singleton.RandomInt(0, this._show_ups.Length); + this.animLoadCb = animLoad; + base.OverrideAnimClip("Idle", this._show_ups[num], false, new OverrideAnimCallback(this.AnimLoadCallback), false); + result = true; + } + else + { + result = false; + } + return result; + } + + protected override void Move() + { + } + + public override void OnDestroy() + { + XSingleton.singleton.KillTimer(this._token); + base.OnDestroy(); + } + + private void ResetIdle(object o) + { + bool flag = base.Deprecated || base.Present == null || base.Present.PresentLib == null; + if (!flag) + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && base.Present.PresentLib.AttackIdle.Length > 0; + if (flag2) + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.AttackIdle, true, false); + } + else + { + base.OverrideAnimClip("Idle", base.Present.PresentLib.Idle, true, false); + } + } + } + + public override bool CastFakeShadow() + { + return XQualitySetting.GetQuality(EFun.ENpcShadow); + } + + public static void DelayCreateNpc(uint npcId) + { + XNpc npc = XSingleton.singleton.CreateNpc(npcId, true); + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + specificDocument.CreateFx(npc, npcId); + } + + public void InteractRoleDance(XRole role, bool dancing) + { + bool flag = base.Deprecated || base.Present == null || base.Present.PresentLib == null; + if (!flag) + { + float num = Vector3.Distance(role.MoveObj.Position, base.MoveObj.Position); + float num2 = (float)XSingleton.singleton.GetInt("NPCSpecailAnim"); + bool flag2 = num < num2 && !string.IsNullOrEmpty(this._special_anim); + if (flag2) + { + if (dancing) + { + base.OverrideAnimClip("Idle", this._special_anim, false, new OverrideAnimCallback(this.AnimLoadCallback), false); + XCharacterShowChatComponent xcharacterShowChatComponent = base.GetXComponent(XCharacterShowChatComponent.uuID) as XCharacterShowChatComponent; + bool flag3 = xcharacterShowChatComponent != null; + if (flag3) + { + xcharacterShowChatComponent.AttachChatBubble(); + int num3 = UnityEngine.Random.Range(0, this._special_chat.Length); + xcharacterShowChatComponent.DealWithChat(this._special_chat[num3]); + } + } + else + { + this.ResetIdle(null); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNpc.cs.meta b/Client/Assets/Scripts/XMainClient/XNpc.cs.meta new file mode 100644 index 00000000..40b008c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNpc.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e238a1039237e2b4b8a00e757efae089 +timeCreated: 1611404705 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNpcAttributes.cs b/Client/Assets/Scripts/XMainClient/XNpcAttributes.cs new file mode 100644 index 00000000..ee699ea2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNpcAttributes.cs @@ -0,0 +1,111 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XNpcAttributes : XAttributes + { + public override uint ID + { + get + { + return XNpcAttributes.uuID; + } + } + + public string Icon + { + get + { + return this._icon; + } + } + + public string Portrait + { + get + { + return this._portrait; + } + } + + public uint SceneId + { + get + { + return this._scene_id; + } + } + + public Vector3 Position + { + get + { + return this._position; + } + } + + public Vector3 Rotation + { + get + { + return this._rotation; + } + } + + public string[] Content + { + get + { + return this._content; + } + } + + public string[] Voice + { + get + { + return this._voice; + } + } + + public int[] FunctionList + { + get + { + return this._functionList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Npc_Attributes"); + + private string _icon = null; + + private string _portrait = null; + + private uint _scene_id = 0u; + + private Vector3 _position = Vector3.zero; + + private Vector3 _rotation = Vector3.zero; + + private string[] _content = null; + + private string[] _voice = null; + + private int[] _functionList = null; + + public void InitAttribute(XNpcInfo.RowData data) + { + this._icon = data.Icon; + this._portrait = data.Portrait; + this._scene_id = data.SceneID; + this._position.Set(data.Position[0], data.Position[1], data.Position[2]); + this._rotation.Set(data.Rotation[0], data.Rotation[1], data.Rotation[2]); + this._content = data.Content; + this._voice = data.Voice; + this._functionList = data.FunctionList; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNpcAttributes.cs.meta b/Client/Assets/Scripts/XMainClient/XNpcAttributes.cs.meta new file mode 100644 index 00000000..2a817dc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNpcAttributes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00bc76b9dd4acb64b86f11a260680c8b +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XNumberTween.cs b/Client/Assets/Scripts/XMainClient/XNumberTween.cs new file mode 100644 index 00000000..2deae725 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNumberTween.cs @@ -0,0 +1,135 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XNumberTween : MonoBehaviour + { + public float tweenDuaration + { + get + { + return this.m_tweenDuaration; + } + set + { + this.m_tweenDuaration = value; + this.userTweenDuaration = value; + } + } + + public IXUILabel Label + { + get + { + return this.m_uiLabel; + } + } + + public IXUITweenTool IconTween + { + get + { + return this.m_uiIconTween; + } + } + + private IXUILabel m_uiLabel; + + private IXUITweenTool m_uiIconTween; + + private ulong m_currentNumber = 0UL; + + private ulong m_targetNumber = 0UL; + + private long m_deltaNumber = 0L; + + private string m_tweenPostfix; + + private float m_tweenLeftTime = 0.5f; + + private float m_tweenDuaration = 0.5f; + + public float userTweenDuaration = 0.5f; + + public static XNumberTween Create(Transform t) + { + XNumberTween xnumberTween = t.gameObject.GetComponent(); + bool flag = xnumberTween == null; + if (flag) + { + xnumberTween = t.gameObject.AddComponent(); + } + Transform transform = t.Find("value"); + bool flag2 = transform != null; + if (flag2) + { + xnumberTween.m_uiLabel = (transform.GetComponent("XUILabel") as IXUILabel); + } + transform = t.Find("icon"); + bool flag3 = transform != null; + if (flag3) + { + xnumberTween.m_uiIconTween = (t.Find("icon").GetComponent("XUIPlayTween") as IXUITweenTool); + } + return xnumberTween; + } + + public static XNumberTween Create(IXUILabel label) + { + XNumberTween xnumberTween = label.gameObject.AddComponent(); + xnumberTween.m_uiLabel = label; + return xnumberTween; + } + + public void SetNumberWithTween(ulong target, string postfix = "", bool instant = false, bool dynamicAdjustDuaration = true) + { + bool flag = target == this.m_currentNumber || instant; + if (flag) + { + this.m_uiLabel.SetText(XSingleton.singleton.NumberFormat(target) + postfix); + this.m_targetNumber = target; + this.m_currentNumber = target; + } + else + { + this.m_tweenDuaration = this.userTweenDuaration; + this.m_targetNumber = target; + this.m_deltaNumber = (long)(this.m_targetNumber - this.m_currentNumber); + this.m_tweenPostfix = postfix; + if (dynamicAdjustDuaration) + { + long num = Math.Abs(this.m_deltaNumber); + bool flag2 = num < 20L; + if (flag2) + { + this.m_tweenDuaration = this.userTweenDuaration * (float)num / 20f; + } + } + this.m_tweenLeftTime = this.m_tweenDuaration; + } + } + + private void Update() + { + bool flag = this.m_currentNumber != this.m_targetNumber; + if (flag) + { + this.m_tweenLeftTime -= Time.deltaTime; + bool flag2 = this.m_tweenLeftTime <= 0f; + if (flag2) + { + this.m_currentNumber = this.m_targetNumber; + } + else + { + this.m_currentNumber = this.m_targetNumber - (ulong)((long)((float)this.m_deltaNumber * this.m_tweenLeftTime / this.m_tweenDuaration)); + } + this.m_uiLabel.SetText(string.Format("{0}{1}", XSingleton.singleton.NumberFormat(this.m_currentNumber), this.m_tweenPostfix)); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XNumberTween.cs.meta b/Client/Assets/Scripts/XMainClient/XNumberTween.cs.meta new file mode 100644 index 00000000..31be9464 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XNumberTween.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 70eb4ad2815d52b46a4493ba6665bca5 +timeCreated: 1611403932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XObject.cs b/Client/Assets/Scripts/XMainClient/XObject.cs new file mode 100644 index 00000000..28f4bd7e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XObject.cs @@ -0,0 +1,303 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XObject + { + public List Components + { + get + { + bool flag = this.internalIterator == null; + if (flag) + { + this.internalIterator = ListPool.Get(); + } + return this.internalIterator; + } + } + + public virtual XGameObject EngineObject + { + get + { + return null; + } + } + + public virtual ulong ID + { + get + { + return (this._attr != null) ? this._attr.EntityID : 0UL; + } + } + + public bool Deprecated { get; set; } + + public bool Destroying { get; set; } + + private bool needDetachComponent = false; + + protected XAttributes _attr = null; + + private List internalIterator; + + public XObject() + { + this.Deprecated = false; + this.Destroying = false; + } + + public virtual bool Initilize(int flag) + { + this.Deprecated = false; + this.Destroying = false; + return true; + } + + public virtual void Uninitilize() + { + bool flag = this.internalIterator != null; + if (flag) + { + for (int i = this.internalIterator.Count - 1; i >= 0; i--) + { + XComponent xcomponent = this.internalIterator[i]; + xcomponent.OnDetachFromHost(); + this.OnComponentDetached(xcomponent); + this.Components.RemoveAt(i); + XSingleton.singleton.RemoveComponent(xcomponent); + } + ListPool.Release(this.internalIterator); + this.internalIterator = null; + } + XOnEntityDeletedArgs @event = XEventPool.GetEvent(); + @event.Id = this.ID; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + this._attr = null; + } + + public virtual bool DispatchEvent(XEventArgs e) + { + bool flag = false; + int count = this.Components.Count; + for (int i = 0; i < this.Components.Count; i++) + { + bool flag2 = i >= this.Components.Count; + if (flag2) + { + break; + } + XComponent xcomponent = this.Components[i]; + bool flag3 = xcomponent != null && xcomponent.Enabled; + if (flag3) + { + bool flag4 = xcomponent.OnEvent(e); + flag = (flag4 || flag); + } + bool flag5 = count != this.Components.Count; + if (flag5) + { + XSingleton.singleton.AddWarningLog2("Components Count change:{0}-{1}-{2}-{3}", new object[] + { + count, + this.Components.Count, + i, + xcomponent.ID + }); + break; + } + } + return flag; + } + + public virtual void OnCreated() + { + for (int i = 0; i < this.Components.Count; i++) + { + this.Components[i].Attached(); + } + } + + public virtual void OnDestroy() + { + this.Deprecated = true; + this.Destroying = false; + } + + public void OnEnterScene() + { + for (int i = 0; i < this.Components.Count; i++) + { + XComponent xcomponent = this.Components[i]; + bool flag = xcomponent != null && !xcomponent.Detached; + if (flag) + { + xcomponent.OnEnterScene(); + } + } + } + + public void OnLeaveScene() + { + for (int i = 0; i < this.Components.Count; i++) + { + XComponent xcomponent = this.Components[i]; + bool flag = xcomponent != null && !xcomponent.Detached; + if (flag) + { + xcomponent.OnLeaveScene(); + } + } + } + + public XComponent GetXComponent(uint uuid) + { + int i = 0; + int count = this.Components.Count; + while (i < count) + { + XComponent xcomponent = this.Components[i]; + bool flag = xcomponent != null && xcomponent.ID == uuid && !xcomponent.Detached; + if (flag) + { + return xcomponent; + } + i++; + } + return null; + } + + private XComponent GetXComponent(uint uuid, ref int index) + { + int i = 0; + int count = this.Components.Count; + while (i < count) + { + XComponent xcomponent = this.Components[i]; + bool flag = xcomponent != null && xcomponent.ID == uuid && !xcomponent.Detached; + if (flag) + { + index = i; + return xcomponent; + } + i++; + } + return null; + } + + public void AttachComponent(XComponent componentObject) + { + bool flag = componentObject == null; + if (!flag) + { + int num = this.Components.IndexOf(componentObject); + bool flag2 = num >= 0 && num < this.Components.Count; + if (flag2) + { + bool detached = componentObject.Detached; + if (detached) + { + componentObject.Detached = false; + } + else + { + this.Components[num] = componentObject; + XSingleton.singleton.AddErrorLog("Component ", componentObject.ToString(), " for ", this.ToString(), " added too many times.", null); + } + } + else + { + this.Components.Add(componentObject); + } + componentObject.OnAttachToHost(this); + this.OnComponentAttached(componentObject); + } + } + + public void DetachComponent(uint id) + { + int num = -1; + XComponent xcomponent = this.GetXComponent(id, ref num); + bool flag = xcomponent != null && num >= 0 && num < this.Components.Count; + if (flag) + { + this.needDetachComponent = true; + xcomponent.Detached = true; + } + } + + protected virtual void OnComponentAttached(XComponent componentObject) + { + } + + protected virtual void OnComponentDetached(XComponent componentObject) + { + } + + public virtual void Update(float fDeltaT) + { + for (int i = 0; i < this.Components.Count; i++) + { + XComponent xcomponent = this.Components[i]; + bool flag = xcomponent != null && xcomponent.Enabled; + if (flag) + { + xcomponent.Update(fDeltaT); + } + } + } + + public virtual void FixedUpdate() + { + } + + public virtual void PostUpdate(float fDeltaT) + { + for (int i = 0; i < this.Components.Count; i++) + { + XComponent xcomponent = this.Components[i]; + bool flag = xcomponent != null && xcomponent.Enabled; + if (flag) + { + xcomponent.PostUpdate(fDeltaT); + } + } + bool flag2 = this.needDetachComponent; + if (flag2) + { + for (int j = this.Components.Count - 1; j >= 0; j--) + { + XComponent xcomponent2 = this.Components[j]; + bool detached = xcomponent2.Detached; + if (detached) + { + xcomponent2.OnDetachFromHost(); + this.OnComponentDetached(xcomponent2); + this.Components.RemoveAt(j); + XSingleton.singleton.RemoveComponent(xcomponent2); + } + } + this.needDetachComponent = false; + } + } + + public virtual void OnReconnect(UnitAppearance data) + { + for (int i = 0; i < this.Components.Count; i++) + { + XComponent xcomponent = this.Components[i]; + bool flag = xcomponent != null && !xcomponent.Detached; + if (flag) + { + xcomponent.OnReconnect(data); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XObject.cs.meta b/Client/Assets/Scripts/XMainClient/XObject.cs.meta new file mode 100644 index 00000000..fd07b270 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XObject.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 83419ed20f39c02408f86e01d5c4d52b +timeCreated: 1611404043 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnComboChangeEventArgs.cs b/Client/Assets/Scripts/XMainClient/XOnComboChangeEventArgs.cs new file mode 100644 index 00000000..7d15b98e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnComboChangeEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XOnComboChangeEventArgs : XEventArgs + { + public uint ComboCount = 0u; + + public XOnComboChangeEventArgs() + { + this._eDefine = XEventDefine.XEvent_ComboChange; + } + + public override void Recycle() + { + base.Recycle(); + this.ComboCount = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnComboChangeEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XOnComboChangeEventArgs.cs.meta new file mode 100644 index 00000000..05aac7e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnComboChangeEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 460e17b4de84a74429a029eab8280d22 +timeCreated: 1611403649 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnEntityCreatedArgs.cs b/Client/Assets/Scripts/XMainClient/XOnEntityCreatedArgs.cs new file mode 100644 index 00000000..2c720e6a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnEntityCreatedArgs.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal class XOnEntityCreatedArgs : XEventArgs + { + public XEntity entity; + + public XOnEntityCreatedArgs() + { + this._eDefine = XEventDefine.XEvent_OnEntityCreated; + this.entity = null; + } + + public override void Recycle() + { + base.Recycle(); + this.entity = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnEntityCreatedArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XOnEntityCreatedArgs.cs.meta new file mode 100644 index 00000000..af024ba8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnEntityCreatedArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e7fc410e253a9fd43a86025622b29ab1 +timeCreated: 1611404751 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnEntityDeletedArgs.cs b/Client/Assets/Scripts/XMainClient/XOnEntityDeletedArgs.cs new file mode 100644 index 00000000..aa1d633e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnEntityDeletedArgs.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal class XOnEntityDeletedArgs : XEventArgs + { + public ulong Id; + + public XOnEntityDeletedArgs() + { + this._eDefine = XEventDefine.XEvent_OnEntityDeleted; + this.Id = 0UL; + } + + public override void Recycle() + { + base.Recycle(); + this.Id = 0UL; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnEntityDeletedArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XOnEntityDeletedArgs.cs.meta new file mode 100644 index 00000000..448e3e83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnEntityDeletedArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7fd1aaca72ef34a468cd59cd91b1c49d +timeCreated: 1611404032 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnEntityTransferEventArgs.cs b/Client/Assets/Scripts/XMainClient/XOnEntityTransferEventArgs.cs new file mode 100644 index 00000000..0d45eb53 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnEntityTransferEventArgs.cs @@ -0,0 +1,22 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XOnEntityTransferEventArgs : XEventArgs + { + public Vector3 TransPos; + + public XOnEntityTransferEventArgs() + { + this._eDefine = XEventDefine.XEvent_OnEntityTransfer; + this.TransPos = Vector3.zero; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnEntityTransferEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XOnEntityTransferEventArgs.cs.meta new file mode 100644 index 00000000..fd27e05b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnEntityTransferEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bd4d4ac7356b8f740b4af44ed54c8178 +timeCreated: 1611404450 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnMountedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XOnMountedEventArgs.cs new file mode 100644 index 00000000..7f64fc36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnMountedEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XOnMountedEventArgs : XEventArgs + { + public XOnMountedEventArgs() + { + this._eDefine = XEventDefine.XEvent_OnMounted; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnMountedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XOnMountedEventArgs.cs.meta new file mode 100644 index 00000000..30324bc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnMountedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5624ab78cb33e2f419773378c6366563 +timeCreated: 1611403742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnRevivedArgs.cs b/Client/Assets/Scripts/XMainClient/XOnRevivedArgs.cs new file mode 100644 index 00000000..a29f6cb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnRevivedArgs.cs @@ -0,0 +1,22 @@ +using System; + +namespace XMainClient +{ + internal class XOnRevivedArgs : XEventArgs + { + public XEntity entity; + + public XOnRevivedArgs() + { + this._eDefine = XEventDefine.XEvent_OnRevived; + this.entity = null; + } + + public override void Recycle() + { + base.Recycle(); + this.entity = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnRevivedArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XOnRevivedArgs.cs.meta new file mode 100644 index 00000000..979bced2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnRevivedArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c13bf5b691f22b841ae7a73e871bc11f +timeCreated: 1611404490 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnUnMountedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XOnUnMountedEventArgs.cs new file mode 100644 index 00000000..6ca10387 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnUnMountedEventArgs.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XOnUnMountedEventArgs : XEventArgs + { + public XOnUnMountedEventArgs() + { + this._eDefine = XEventDefine.XEvent_OnUnMounted; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnUnMountedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XOnUnMountedEventArgs.cs.meta new file mode 100644 index 00000000..c500b26a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnUnMountedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 950a51300587b1849afe9206222fcfa0 +timeCreated: 1611404157 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs b/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs new file mode 100644 index 00000000..8be2fb54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs @@ -0,0 +1,37 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOnlineRewardBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_GetReward; + + public IXUILabel m_TimeTip; + + public IXUILabel m_LeftTime; + + public IXUILabel m_GetRewardLabel; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUITweenTool m_BgTween; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_GetReward = (base.transform.Find("Bg/GetReward").GetComponent("XUIButton") as IXUIButton); + this.m_TimeTip = (base.transform.Find("Bg/TimeTip").GetComponent("XUILabel") as IXUILabel); + this.m_LeftTime = (base.transform.Find("Bg/LeftTime").GetComponent("XUILabel") as IXUILabel); + this.m_GetRewardLabel = (base.transform.Find("Bg/GetReward/Text").GetComponent("XUILabel") as IXUILabel); + this.m_BgTween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs.meta new file mode 100644 index 00000000..53619cb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnlineRewardBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6289a76c50164a1449894aff796bb5d6 +timeCreated: 1611403841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnlineRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XOnlineRewardDocument.cs new file mode 100644 index 00000000..006fe6e5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnlineRewardDocument.cs @@ -0,0 +1,119 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOnlineRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XOnlineRewardDocument.uuID; + } + } + + public int CurrentID { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("OnlineRewardDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static OnlineRewardTable RewardTable = new OnlineRewardTable(); + + public List Status = new List(); + + public List LeftTime = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + XOnlineRewardDocument.AsyncLoader.AddTask("Table/OnlineReward", XOnlineRewardDocument.RewardTable, false); + XOnlineRewardDocument.AsyncLoader.Execute(callback); + } + + public void SendGetReward(int index) + { + RpcC2G_GetOnlineReward rpcC2G_GetOnlineReward = new RpcC2G_GetOnlineReward(); + rpcC2G_GetOnlineReward.oArg.index = (uint)index; + XSingleton.singleton.Send(rpcC2G_GetOnlineReward); + } + + public void QueryStatus() + { + PtcC2G_OnlineRewardReport proto = new PtcC2G_OnlineRewardReport(); + XSingleton.singleton.Send(proto); + } + + public void RefreshStatus(List status, List leftTime) + { + this.Status.Clear(); + this.LeftTime.Clear(); + for (int i = 0; i < status.Count; i++) + { + this.Status.Add((int)status[i]); + this.LeftTime.Add((int)leftTime[i]); + } + bool flag = this.Status.Count == 0; + if (flag) + { + this.Status.Add(2); + this.LeftTime.Add(1); + } + this.CurrentID = this.Status.Count - 1; + for (int j = 0; j < this.Status.Count; j++) + { + bool flag2 = this.Status[j] <= 1; + if (flag2) + { + this.CurrentID = j; + break; + } + } + XSingleton.singleton.OnlineRewardRemainTime = (float)this.LeftTime[this.CurrentID]; + bool flag3 = DlgBase.singleton.IsVisible() && XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag3) + { + } + bool flag4 = !DlgBase.singleton.IsVisible(); + if (!flag4) + { + DlgBase.singleton.RefreshItemList(); + DlgBase.singleton.SetGetRewardLabel(this.Status[this.CurrentID]); + } + } + + private bool CanClaim() + { + for (int i = 0; i < this.Status.Count; i++) + { + bool flag = this.Status[i] == 1; + if (flag) + { + return true; + } + } + return false; + } + + public bool CheckOver() + { + for (int i = 0; i < this.Status.Count; i++) + { + bool flag = this.Status[i] != 2; + if (flag) + { + return true; + } + } + return false; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnlineRewardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XOnlineRewardDocument.cs.meta new file mode 100644 index 00000000..3d4f981e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnlineRewardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 10c341f4ee7999548b3d82b202e67ce5 +timeCreated: 1611403219 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOnlineRewardView.cs b/Client/Assets/Scripts/XMainClient/XOnlineRewardView.cs new file mode 100644 index 00000000..15aa8c96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnlineRewardView.cs @@ -0,0 +1,169 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOnlineRewardView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/OnlineReward"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XOnlineRewardDocument _doc = null; + + private uint _timeToken; + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClick)); + base.uiBehaviour.m_GetReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnGetRewardClick)); + } + + private bool OnCloseClick(IXUIButton button) + { + base.uiBehaviour.m_BgTween.PlayTween(false, -1f); + base.uiBehaviour.m_BgTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + return true; + } + + private bool OnGetRewardClick(IXUIButton button) + { + this._doc.SendGetReward(this._doc.CurrentID); + return true; + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XOnlineRewardDocument.uuID); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_ItemPool.FakeReturnAll(); + this._doc.QueryStatus(); + this.RefreshItemList(); + bool flag = this._doc.Status.Count > this._doc.CurrentID; + if (flag) + { + this.SetGetRewardLabel(this._doc.Status[this._doc.CurrentID]); + } + else + { + this.SetGetRewardLabel(1); + } + base.uiBehaviour.m_BgTween.PlayTween(true, -1f); + base.uiBehaviour.m_BgTween.RegisterOnFinishEventHandler(null); + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this._timeToken); + base.OnUnload(); + } + + public void RefreshItemList() + { + base.uiBehaviour.m_ItemPool.FakeReturnAll(); + float num = base.uiBehaviour.m_ItemPool.TplPos.x - (float)(XOnlineRewardDocument.RewardTable.Table[this._doc.CurrentID].reward.Count - 1) / 2f * (float)base.uiBehaviour.m_ItemPool.TplWidth; + for (int i = 0; i < XOnlineRewardDocument.RewardTable.Table[this._doc.CurrentID].reward.Count; i++) + { + uint num2 = XOnlineRewardDocument.RewardTable.Table[this._doc.CurrentID].reward[i, 0]; + uint itemCount = XOnlineRewardDocument.RewardTable.Table[this._doc.CurrentID].reward[i, 1]; + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num2; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num2, (int)itemCount, false); + gameObject.transform.localPosition = new Vector3(num + (float)(i * base.uiBehaviour.m_ItemPool.TplWidth), base.uiBehaviour.m_ItemPool.TplPos.y); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + base.uiBehaviour.m_ItemPool.ActualReturnAll(false); + } + + public void SetGetRewardLabel(int status) + { + bool flag = status == 0; + if (flag) + { + base.uiBehaviour.m_GetReward.SetEnable(false, false); + base.uiBehaviour.m_GetRewardLabel.SetText(XStringDefineProxy.GetString("SRS_FETCH")); + } + else + { + bool flag2 = status == 1; + if (flag2) + { + base.uiBehaviour.m_GetReward.SetEnable(true, false); + base.uiBehaviour.m_GetRewardLabel.SetText(XStringDefineProxy.GetString("SRS_FETCH")); + } + else + { + bool flag3 = status == 2; + if (flag3) + { + base.uiBehaviour.m_GetReward.SetEnable(false, false); + base.uiBehaviour.m_GetRewardLabel.SetText(XStringDefineProxy.GetString("SRS_FETCHED")); + } + } + } + this.SetLeftTime(null); + base.uiBehaviour.m_TimeTip.SetText(XOnlineRewardDocument.RewardTable.Table[this._doc.CurrentID].RewardTip); + } + + public void OnPlayTweenFinish(IXUITweenTool tween) + { + this.SetVisible(false, true); + } + + public void SetLeftTime(object o = null) + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool flag2 = this._doc.Status.Count > this._doc.CurrentID && this._doc.Status[this._doc.CurrentID] != 2 && XSingleton.singleton.OnlineRewardRemainTime > 0f; + if (flag2) + { + base.uiBehaviour.m_LeftTime.SetVisible(true); + base.uiBehaviour.m_LeftTime.SetText(string.Format("{0} {1}", XSingleton.singleton.TimeFormatString((int)XSingleton.singleton.OnlineRewardRemainTime, 2, 3, 4, false, true), XStringDefineProxy.GetString("AFTER_TIME_REWARD"))); + XSingleton.singleton.KillTimer(this._timeToken); + this._timeToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.SetLeftTime), null); + } + else + { + bool flag3 = base.uiBehaviour.m_LeftTime.IsVisible(); + if (flag3) + { + this._doc.QueryStatus(); + } + base.uiBehaviour.m_LeftTime.SetVisible(false); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOnlineRewardView.cs.meta b/Client/Assets/Scripts/XMainClient/XOnlineRewardView.cs.meta new file mode 100644 index 00000000..96746d7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOnlineRewardView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 91d11353e096eae4f8e7099e9a0c7924 +timeCreated: 1611404144 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOperateMode.cs b/Client/Assets/Scripts/XMainClient/XOperateMode.cs new file mode 100644 index 00000000..79408413 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperateMode.cs @@ -0,0 +1,10 @@ +using System; + +namespace XMainClient +{ + internal enum XOperateMode + { + AutoLock = 1, + FreeLock + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOperateMode.cs.meta b/Client/Assets/Scripts/XMainClient/XOperateMode.cs.meta new file mode 100644 index 00000000..be4c0938 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperateMode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6afad61464c33be47a7dd2a0d63842ff +timeCreated: 1611403890 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOperatingActivityBehaviour.cs b/Client/Assets/Scripts/XMainClient/XOperatingActivityBehaviour.cs new file mode 100644 index 00000000..b6baf30f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperatingActivityBehaviour.cs @@ -0,0 +1,31 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOperatingActivityBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public Transform m_tabParent; + + public Transform m_rightTra; + + public Transform m_midTra; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + Transform transform = base.transform.Find("Bg/Left/padTabs/Grid/TabTpl"); + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_tabParent = base.transform.Find("Bg/Left/padTabs/Grid"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_rightTra = base.transform.Find("Bg/Right"); + this.m_midTra = base.transform.Find("Bg/Middle"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOperatingActivityBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XOperatingActivityBehaviour.cs.meta new file mode 100644 index 00000000..2e7fa84c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperatingActivityBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d07713e98b3fb294686aee27e82314a3 +timeCreated: 1611404587 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOperatingActivityDocument.cs b/Client/Assets/Scripts/XMainClient/XOperatingActivityDocument.cs new file mode 100644 index 00000000..3079fe35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperatingActivityDocument.cs @@ -0,0 +1,654 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOperatingActivityDocument : XDocComponent + { + public override uint ID + { + get + { + return XOperatingActivityDocument.uuID; + } + } + + public static OperatingActivity OperatingActivityTable + { + get + { + return XOperatingActivityDocument.m_OperatingActivityTable; + } + } + + public List SealDatas + { + get + { + bool flag = this._staticSealDatas.Count == 0 && this.CurSealActID > 0u; + if (flag) + { + this.InitSealData(); + } + return this._staticSealDatas; + } + } + + public uint CurSealActID + { + get + { + return this.curSealActid; + } + set + { + this.curSealActid = value; + bool flag = this.curSealActid == 0u; + if (flag) + { + DlgBase.singleton.UpdateTab(); + } + else + { + this.InitSealData(); + } + } + } + + public static XOperatingActivityDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XOperatingActivityDocument.uuID) as XOperatingActivityDocument; + } + } + + public XOperatingActivityView View { get; set; } + + public HashSet systemIds + { + get + { + bool flag = this.m_systemIds == null || this.m_systemIds.Count == 0; + if (flag) + { + this.m_systemIds = new HashSet(); + for (int i = 0; i < XOperatingActivityDocument.m_OperatingActivityTable.Table.Length; i++) + { + bool flag2 = XOperatingActivityDocument.m_OperatingActivityTable.Table[i] != null; + if (flag2) + { + this.m_systemIds.Add(XOperatingActivityDocument.m_OperatingActivityTable.Table[i].SysID); + } + } + } + return this.m_systemIds; + } + } + + private bool HolidayRedPoint + { + get + { + return this._holiday_data.LeftCount > 0u; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XOperatingActivityDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static OperatingActivity m_OperatingActivityTable = new OperatingActivity(); + + private static FestScene m_FestivalTable = new FestScene(); + + public HistoryMaxStruct HisMaxLevel = new HistoryMaxStruct(); + + public Dictionary _forzenStates = new Dictionary(); + + private HashSet m_systemIds; + + protected List _staticSealDatas = new List(); + + protected uint curSealActid = 0u; + + private XOperatingActivityDocument.HolidayData _holiday_data; + + public XOperatingActivityDocument.LuckyTurntableInfo m_LuckyTurntableData = new XOperatingActivityDocument.LuckyTurntableInfo(); + + private Dictionary m_levelRedDotDic = new Dictionary(); + + private struct HolidayData + { + public uint HolidayID; + + public uint LeftCount; + + public uint LeftTime; + + public uint SceneID; + + public void Init() + { + this.HolidayID = 0u; + this.LeftCount = 0u; + this.LeftTime = 0u; + this.SceneID = 0u; + } + } + + public class LuckyTurntableItem + { + public int ItemID; + + public int ItemCount; + + public bool HasReceived; + } + + public class LuckyTurntableInfo + { + public int CurrencyType; + + public uint Price; + + public bool IsPay; + + public List Items = new List(); + + public bool CanBuy; + + public void RefreshItems(List records) + { + bool flag = this.Items.Count != records.Count; + if (flag) + { + this.Items.Clear(); + for (int i = records.Count; i > 0; i--) + { + this.Items.Add(new XOperatingActivityDocument.LuckyTurntableItem()); + } + } + this.CanBuy = false; + for (int j = 0; j < records.Count; j++) + { + XOperatingActivityDocument.LuckyTurntableItem luckyTurntableItem = this.Items[j]; + ItemRecord itemRecord = records[j]; + luckyTurntableItem.ItemID = (int)itemRecord.itemID; + luckyTurntableItem.ItemCount = (int)itemRecord.itemCount; + luckyTurntableItem.HasReceived = itemRecord.isreceive; + bool flag2 = !luckyTurntableItem.HasReceived; + if (flag2) + { + this.CanBuy = true; + } + } + } + } + + public void RequestGetLuckyTurntableData() + { + RpcC2G_GetLuckyActivityInfo rpc = new RpcC2G_GetLuckyActivityInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnReceiveGetLuckyTurntableData(GetLuckyActivityInfoRes res) + { + this.m_LuckyTurntableData.CurrencyType = (int)res.currencytype; + this.m_LuckyTurntableData.Price = res.price; + this.m_LuckyTurntableData.IsPay = res.ispay; + this.m_LuckyTurntableData.RefreshItems(res.itemrecord); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.m_luckyTurntableFrameHandler != null; + if (flag2) + { + DlgBase.singleton.m_luckyTurntableFrameHandler.RefeshInfo(); + } + } + } + + public void RequestBuyLuckyTurntable() + { + RpcC2G_BuyDraw rpc = new RpcC2G_BuyDraw(); + XSingleton.singleton.Send(rpc); + } + + public void OnReceiveBuyLuckyTurntable() + { + this.m_LuckyTurntableData.IsPay = true; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.m_luckyTurntableFrameHandler != null; + if (flag2) + { + DlgBase.singleton.m_luckyTurntableFrameHandler.OnBuy(); + } + } + } + + public void RequestUseLuckyTurntable() + { + RpcC2G_LotteryDraw rpc = new RpcC2G_LotteryDraw(); + XSingleton.singleton.Send(rpc); + } + + public void OnReceiveUseLuckyTurntable(LotteryDrawRes res) + { + this.m_LuckyTurntableData.CurrencyType = (int)res.currencytype; + this.m_LuckyTurntableData.Price = res.price; + this.m_LuckyTurntableData.IsPay = false; + this.m_LuckyTurntableData.RefreshItems(res.itemrecord); + int index = (int)res.index; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.m_luckyTurntableFrameHandler != null; + if (flag2) + { + DlgBase.singleton.m_luckyTurntableFrameHandler.OnGetIndex(index); + } + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XOperatingActivityDocument.AsyncLoader.AddTask("Table/OperatingActivity", XOperatingActivityDocument.m_OperatingActivityTable, false); + XOperatingActivityDocument.AsyncLoader.AddTask("Table/festivalscenelist", XOperatingActivityDocument.m_FestivalTable, false); + XOperatingActivityDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ActivityTaskUpdate, new XComponent.XEventHandler(this.OnSealUpdate)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this.DetachPandoraSDKRedPoint(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.SendQueryHolidayData(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + this.SendQueryHolidayData(); + this.HisMaxLevel.Replace(); + bool flag = XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID) == SceneType.SCENE_HALL; + if (flag) + { + this.RefreshRedPoints(); + } + } + + public bool SysIsOpen(XSysDefine sys) + { + bool result; + if (sys != XSysDefine.XSys_LevelSeal) + { + result = XSingleton.singleton.IsSystemOpened(sys); + } + else + { + result = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID).IsShowLevelSealIcon(); + } + return result; + } + + public bool IsHadRedDot() + { + bool flag = false; + foreach (KeyValuePair keyValuePair in this.m_levelRedDotDic) + { + flag |= keyValuePair.Value; + } + XAnnouncementDocument specificDocument = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + flag |= XSingleton.singleton.GetSysRedPointState(XSysDefine.XSys_LuckyTurntable); + return ((FirstPassDocument.Doc.IsHadOutRedDot | this.IsFrozenSealHadRedDot()) || flag) | specificDocument.RedPoint | this.HolidayRedPoint | XCampDuelDocument.Doc.IsRedPoint(); + } + + public bool IsFrozenSealHadRedDot() + { + foreach (SuperActivityTask.RowData rowData in this.SealDatas) + { + bool flag = XTempActivityDocument.Doc.GetActivityState(this.curSealActid, rowData.taskid) == 1u; + if (flag) + { + return true; + } + } + return false; + } + + public void RefreshRedPoints() + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_OperatingActivity, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshRedpoint(); + } + } + + public void OnSystemChanged(List openIds, List closeIds) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + int num = 0; + bool flag2 = this.systemIds != null; + if (flag2) + { + for (int i = 0; i < openIds.Count; i++) + { + bool flag3 = this.systemIds.Contains(openIds[i]); + if (flag3) + { + num = 1; + break; + } + } + for (int j = 0; j < closeIds.Count; j++) + { + bool flag4 = this.systemIds.Contains(closeIds[j]); + if (flag4) + { + bool flag5 = num == 1; + if (flag5) + { + num = 3; + } + else + { + num = 2; + } + break; + } + } + } + bool flag6 = num == 0; + if (!flag6) + { + bool flag7 = num == 1; + if (flag7) + { + DlgBase.singleton.RefreshUI(null); + } + else + { + DlgBase.singleton.RefreshUI(closeIds); + } + } + } + } + + public bool GetTabRedDotState(XSysDefine sys) + { + bool flag = false; + bool result; + if (sys != XSysDefine.XSys_FirstPass) + { + switch (sys) + { + case XSysDefine.XSys_CrushingSeal: + this.m_levelRedDotDic.TryGetValue(sys, out flag); + return this.IsFrozenSealHadRedDot() || flag; + case XSysDefine.XSys_WeekNest: + case (XSysDefine)608: + break; + case XSysDefine.XSys_Holiday: + return this.HolidayRedPoint; + case XSysDefine.XSys_Announcement: + { + XAnnouncementDocument specificDocument = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + return specificDocument.RedPoint; + } + default: + if (sys == XSysDefine.XSys_CampDuel) + { + return XCampDuelDocument.Doc.IsRedPoint(); + } + break; + } + this.m_levelRedDotDic.TryGetValue(sys, out flag); + result = (flag | XSingleton.singleton.GetSysRedPointState(sys)); + } + else + { + this.m_levelRedDotDic.TryGetValue(sys, out flag); + result = (FirstPassDocument.Doc.IsHadOutRedDot || flag); + } + return result; + } + + public void InitSealData() + { + this._staticSealDatas = XTempActivityDocument.Doc.GetDataByActivityType(this.curSealActid); + } + + public void SealOffsetDayUpdate() + { + this.CurSealActID = XTempActivityDocument.Doc.GetCrushingSealActid(); + DlgBase.singleton.UpdateSealTime(); + } + + public void RefeshLevelRedDot(uint curLevel) + { + bool flag = this.HisMaxLevel.PreLevel >= curLevel; + if (!flag) + { + this.HisMaxLevel.PreLevel = curLevel; + for (int i = 0; i < XOperatingActivityDocument.OperatingActivityTable.Table.Length; i++) + { + OperatingActivity.RowData rowData = XOperatingActivityDocument.OperatingActivityTable.Table[i]; + int sysOpenLevel = XSingleton.singleton.GetSysOpenLevel((int)rowData.SysID); + bool flag2 = (ulong)curLevel == (ulong)((long)sysOpenLevel); + if (flag2) + { + bool flag3 = this.m_levelRedDotDic.ContainsKey((XSysDefine)rowData.SysID); + if (flag3) + { + this.m_levelRedDotDic[(XSysDefine)rowData.SysID] = true; + } + else + { + this.m_levelRedDotDic.Add((XSysDefine)rowData.SysID, true); + } + } + else + { + bool flag4 = !this.m_levelRedDotDic.ContainsKey((XSysDefine)rowData.SysID); + if (flag4) + { + this.m_levelRedDotDic.Add((XSysDefine)rowData.SysID, false); + } + } + } + this.RefreshRedPoints(); + } + } + + public void CancleLevelRedDot(XSysDefine define) + { + bool flag = this.m_levelRedDotDic.ContainsKey(define); + if (flag) + { + this.m_levelRedDotDic[define] = false; + } + this.RefreshRedPoints(); + } + + protected bool OnSealUpdate(XEventArgs e) + { + XActivityTaskUpdatedArgs xactivityTaskUpdatedArgs = e as XActivityTaskUpdatedArgs; + for (int i = 0; i < this.SealDatas.Count; i++) + { + bool flag = this.SealDatas[i].taskid == xactivityTaskUpdatedArgs.xTaskID; + if (flag) + { + DlgBase.singleton.OnFsTaskStateUpdated(xactivityTaskUpdatedArgs.xTaskID, (ActivityTaskState)xactivityTaskUpdatedArgs.xState); + this.RefreshRedPoints(); + return true; + } + } + return false; + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + XPlayerLevelChangedEventArgs xplayerLevelChangedEventArgs = arg as XPlayerLevelChangedEventArgs; + this.RefeshLevelRedDot(xplayerLevelChangedEventArgs.level); + return true; + } + + public FestScene.RowData GetFestivalData(uint id) + { + return XOperatingActivityDocument.m_FestivalTable.GetByid(id); + } + + public void EnterHolidayLevel() + { + bool flag = this._holiday_data.HolidayID == 0u; + if (!flag) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(this._holiday_data.SceneID); + bool flag2 = sceneData != null; + if (flag2) + { + bool flag3 = sceneData.syncMode == 0; + if (flag3) + { + bool flag4 = XTeamDocument.GoSingleBattleBeforeNeed(new EventDelegate(this.EnterHolidayLevel)); + if (!flag4) + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = this._holiday_data.SceneID; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + } + } + else + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + int expIDBySceneID = specificDocument.GetExpIDBySceneID(this._holiday_data.SceneID); + specificDocument2.SetAndMatch(expIDBySceneID); + } + } + } + } + + public bool CheckFestivalIsOpen(uint sceneid) + { + return this._holiday_data.SceneID == sceneid; + } + + public uint GetFestivalLeftTime() + { + return this._holiday_data.LeftTime; + } + + public uint GetFestivalLeftCount() + { + return this._holiday_data.LeftCount; + } + + public string GetFestivalPicPath() + { + FestScene.RowData festivalData = this.GetFestivalData(this._holiday_data.HolidayID); + bool flag = festivalData == null; + string result; + if (flag) + { + result = null; + } + else + { + result = festivalData.PicPath; + } + return result; + } + + public uint[] GetFestivalRewardList() + { + FestScene.RowData festivalData = this.GetFestivalData(this._holiday_data.HolidayID); + bool flag = festivalData == null; + uint[] result; + if (flag) + { + result = null; + } + else + { + result = festivalData.RewardList; + } + return result; + } + + public void SendQueryHolidayData() + { + RpcC2G_GetHolidayStageInfo rpc = new RpcC2G_GetHolidayStageInfo(); + XSingleton.singleton.Send(rpc); + } + + public void SetHolidayData(GetHolidayStageInfoRes data) + { + this._holiday_data = default(XOperatingActivityDocument.HolidayData); + this._holiday_data.HolidayID = data.holidayid; + this._holiday_data.LeftCount = data.havetimes; + this._holiday_data.LeftTime = data.lasttime; + this._holiday_data.SceneID = data.sceneid; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Holiday, true); + this.RefreshRedPoints(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.m_HolidayHandler != null; + if (flag2) + { + DlgBase.singleton.m_HolidayHandler.Refresh(); + } + } + } + + private void DetachPandoraSDKRedPoint() + { + List pandoraSDKTabListInfo = XSingleton.singleton.GetPandoraSDKTabListInfo("action"); + bool flag = pandoraSDKTabListInfo != null; + if (flag) + { + for (int i = 0; i < pandoraSDKTabListInfo.Count; i++) + { + XSingleton.singleton.DetachSysRedPointRelative(pandoraSDKTabListInfo[i].sysID); + } + } + } + + public void AttachPandoraRedPoint(int sysID) + { + int sys = XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_OperatingActivity); + bool flag = sysID != 0; + if (flag) + { + XSingleton.singleton.AttachSysRedPointRelative(sys, sysID, false); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOperatingActivityDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XOperatingActivityDocument.cs.meta new file mode 100644 index 00000000..49d802c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperatingActivityDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cff2ae9ca6bd35d45b32b4d6b5cca2e2 +timeCreated: 1611404583 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOperatingActivityView.cs b/Client/Assets/Scripts/XMainClient/XOperatingActivityView.cs new file mode 100644 index 00000000..b2abc67d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperatingActivityView.cs @@ -0,0 +1,494 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOperatingActivityView : DlgBase + { + private XOperatingActivityDocument m_doc + { + get + { + return XOperatingActivityDocument.Doc; + } + } + + public override string fileName + { + get + { + return "OperatingActivity/OperatingActivityDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XSysDefine m_selectSys = XSysDefine.XSys_None; + + private bool m_isDebug; + + private DlgHandlerBase m_CurrHandler; + + public AnnouncementHandler m_AnnouncementHandler; + + public HolidayHandler m_HolidayHandler; + + private XCampDuelMainHandler m_CampDuelMainHandler; + + private FirstPassMainHandler m_FirstPassMainHandler; + + private FirstPassMwcxHandler m_firstpassMwcxHandler; + + private FirstPassGhjcHandler m_firstpassGhjcHandler; + + private FirstPassGuindRankHandler m_firstpassGuildRankHandler; + + private FrozenSealHandler m_firstpassFsHandler; + + private FlowerActivityHandler m_flowerActivityHandler; + + public XLevelSealView m_LevelSealHandler; + + public OldFriendsReplayHandler m_oldFriendsBackHandler; + + private PandoraSDKHandler m_pandoraSDKHandler; + + public AncientHandler m_bigPrizeHandler; + + public LuckyTurntableFrameHandler m_luckyTurntableFrameHandler; + + private Dictionary m_TabsDic = new Dictionary(); + + private XFx _FxFirework; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_CampDuelMainHandler); + DlgHandlerBase.EnsureUnload(ref this.m_FirstPassMainHandler); + DlgHandlerBase.EnsureUnload(ref this.m_firstpassMwcxHandler); + DlgHandlerBase.EnsureUnload(ref this.m_firstpassGhjcHandler); + DlgHandlerBase.EnsureUnload(ref this.m_firstpassGuildRankHandler); + DlgHandlerBase.EnsureUnload(ref this.m_firstpassFsHandler); + DlgHandlerBase.EnsureUnload(ref this.m_flowerActivityHandler); + DlgHandlerBase.EnsureUnload(ref this.m_LevelSealHandler); + DlgHandlerBase.EnsureUnload(ref this.m_HolidayHandler); + DlgHandlerBase.EnsureUnload(ref this.m_AnnouncementHandler); + DlgHandlerBase.EnsureUnload(ref this.m_pandoraSDKHandler); + DlgHandlerBase.EnsureUnload(ref this.m_oldFriendsBackHandler); + DlgHandlerBase.EnsureUnload(ref this.m_luckyTurntableFrameHandler); + DlgHandlerBase.EnsureUnload(ref this.m_bigPrizeHandler); + bool flag = this._FxFirework != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._FxFirework, true); + this._FxFirework = null; + } + XSingleton.singleton.ClosePandoraTabPanel("action"); + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.m_doc.View = this; + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_TabsDic != null; + if (flag) + { + foreach (KeyValuePair keyValuePair in this.m_TabsDic) + { + bool flag2 = keyValuePair.Value != null; + if (flag2) + { + keyValuePair.Value.ForceSetFlag(false); + } + } + } + bool flag3 = this.m_CurrHandler != null; + if (flag3) + { + this.m_CurrHandler.SetVisible(false); + } + this.m_selectSys = XSysDefine.XSys_None; + } + + protected override void OnShow() + { + base.OnShow(); + this.InitTabs(this.m_selectSys); + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = this.m_CurrHandler != null; + if (flag) + { + this.m_CurrHandler.StackRefresh(); + } + this.RefreshRedpoint(); + } + + public void Refresh() + { + bool flag = this.m_CurrHandler != null; + if (flag) + { + this.m_CurrHandler.RefreshData(); + } + } + + public void RefreshUI(List removeIds = null) + { + bool flag = removeIds != null; + if (flag) + { + bool flag2 = removeIds.Contains((uint)XFastEnumIntEqualityComparer.ToInt(this.m_selectSys)); + if (flag2) + { + this.m_selectSys = XSysDefine.XSys_None; + } + } + this.InitTabs(this.m_selectSys); + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.TryFixRefresh(HotfixMode.AFTER, base.luaFileName, base.uiBehaviour.gameObject); + } + + public void Show(XSysDefine sys = XSysDefine.XSys_None, bool isDebug = false) + { + bool flag = base.IsVisible(); + if (!flag) + { + this.m_selectSys = sys; + this.m_isDebug = isDebug; + this.SetVisibleWithAnimation(true, null); + } + } + + private void InitTabs(XSysDefine system) + { + this.m_TabsDic.Clear(); + List list = new List(); + base.uiBehaviour.m_TabPool.FakeReturnAll(); + int num = 0; + int i = 0; + while (i < XOperatingActivityDocument.OperatingActivityTable.Table.Length) + { + OperatingActivity.RowData rowData = XOperatingActivityDocument.OperatingActivityTable.Table[i]; + XSysDefine sysID = (XSysDefine)rowData.SysID; + bool flag = this.m_doc.SysIsOpen(sysID) || this.m_isDebug; + if (flag) + { + bool isPandoraTab = rowData.IsPandoraTab; + if (!isPandoraTab) + { + list.Add(sysID); + GameObject gameObject = base.uiBehaviour.m_TabPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_tabParent; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)base.uiBehaviour.m_TabPool.TplHeight * num), 0f); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)rowData.SysID; + this.InitTabInfo(ixuicheckBox.gameObject, rowData.TabName, rowData.TabIcon); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClicked)); + ixuicheckBox.ForceSetFlag(false); + this.m_TabsDic.Add(sysID, ixuicheckBox); + num++; + } + } + IL_16C: + i++; + continue; + goto IL_16C; + } + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (flag2) + { + List pandoraSDKTabListInfo = XSingleton.singleton.GetPandoraSDKTabListInfo("action"); + bool flag3 = pandoraSDKTabListInfo != null; + if (flag3) + { + for (int j = 0; j < pandoraSDKTabListInfo.Count; j++) + { + bool flag4 = !pandoraSDKTabListInfo[j].tabShow; + if (!flag4) + { + bool flag5 = this.m_doc.SysIsOpen((XSysDefine)pandoraSDKTabListInfo[j].sysID); + if (flag5) + { + list.Add((XSysDefine)pandoraSDKTabListInfo[j].sysID); + GameObject gameObject = base.uiBehaviour.m_TabPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_tabParent; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)base.uiBehaviour.m_TabPool.TplHeight * num), 0f); + IXUICheckBox ixuicheckBox2 = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ID = (ulong)((long)pandoraSDKTabListInfo[j].sysID); + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClicked)); + ixuicheckBox2.ForceSetFlag(false); + this.InitTabInfo(ixuicheckBox2.gameObject, pandoraSDKTabListInfo[j].tabName, "GiftBag19"); + this.m_TabsDic.Add((XSysDefine)pandoraSDKTabListInfo[j].sysID, ixuicheckBox2); + num++; + } + } + } + } + } + base.uiBehaviour.m_TabPool.ActualReturnAll(false); + this.SelectDefaultTab(list, system); + this.RefreshRedpoint(); + } + + private void InitTabInfo(GameObject tab, string tabName, string tabIcon) + { + IXUILabel ixuilabel = tab.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = tab.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = tab.transform.Find("RedPoint").gameObject; + IXUISprite ixuisprite = tab.transform.Find("P/P").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = tab.transform.Find("Selected/P").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(tabName); + ixuilabel2.SetText(tabName); + gameObject.SetActive(false); + ixuisprite.SetSprite(tabIcon); + ixuisprite2.SetSprite(tabIcon); + } + + private void SelectDefaultTab(List listOpen, XSysDefine sys) + { + bool flag = this.m_TabsDic.ContainsKey(sys); + if (flag) + { + this.m_TabsDic[sys].bChecked = true; + } + else + { + bool flag2 = sys == XSysDefine.XSys_None; + if (flag2) + { + for (int i = 0; i < listOpen.Count; i++) + { + bool flag3 = !this.m_doc.GetTabRedDotState(listOpen[i]); + if (!flag3) + { + this.m_TabsDic[listOpen[i]].bChecked = true; + return; + } + } + } + bool flag4 = listOpen.Count > 0; + if (flag4) + { + this.m_TabsDic[listOpen[0]].bChecked = true; + } + } + } + + public void RefreshRedpoint() + { + foreach (KeyValuePair keyValuePair in this.m_TabsDic) + { + bool flag = keyValuePair.Value.IsVisible(); + if (flag) + { + GameObject gameObject = keyValuePair.Value.gameObject.transform.Find("RedPoint").gameObject; + gameObject.SetActive(this.m_doc.GetTabRedDotState(keyValuePair.Key)); + } + } + } + + private void SetupHandlers(XSysDefine sys) + { + this.m_selectSys = sys; + bool flag = XSingleton.singleton.IsPandoraSDKTab(sys, "action"); + if (flag) + { + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_pandoraSDKHandler, base.uiBehaviour.m_rightTra, false, this); + bool flag2 = this.m_pandoraSDKHandler != null; + if (flag2) + { + this.m_pandoraSDKHandler.SetCurrSys(sys); + } + } + else + { + this.m_doc.CancleLevelRedDot(sys); + XSysDefine xsysDefine = sys; + if (xsysDefine <= XSysDefine.XSys_Shanggu) + { + if (xsysDefine == XSysDefine.XSys_LevelSeal) + { + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_LevelSealHandler, base.uiBehaviour.m_rightTra, false, this); + return; + } + if (xsysDefine == XSysDefine.XSys_Shanggu) + { + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_bigPrizeHandler, base.uiBehaviour.m_rightTra, false, this); + return; + } + } + else + { + switch (xsysDefine) + { + case XSysDefine.XSys_FirstPass: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_FirstPassMainHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_MWCX: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_firstpassMwcxHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_GHJC: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_firstpassGhjcHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_GuildRank: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_firstpassGuildRankHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_Flower_Activity: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_flowerActivityHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_CrushingSeal: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_firstpassFsHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_WeekNest: + case (XSysDefine)608: + case XSysDefine.XSys_Patface: + case XSysDefine.XSys_PandoraSDK: + break; + case XSysDefine.XSys_Holiday: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_HolidayHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_Announcement: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_AnnouncementHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_OldFriendsBack: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_oldFriendsBackHandler, base.uiBehaviour.m_rightTra, false, this); + return; + case XSysDefine.XSys_CampDuel: + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_CampDuelMainHandler, base.uiBehaviour.m_rightTra, false, this); + return; + default: + if (xsysDefine == XSysDefine.XSys_LuckyTurntable) + { + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_luckyTurntableFrameHandler, base.uiBehaviour.m_rightTra, false, this); + return; + } + break; + } + } + this.m_CurrHandler = null; + XSingleton.singleton.AddLog("System may be implemented in lua:", sys.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + } + + public bool OnTabClicked(IXUICheckBox checkbox) + { + bool flag = !checkbox.bChecked; + return !flag && this.RefreshUi((XSysDefine)checkbox.ID); + } + + private bool RefreshUi(XSysDefine sys) + { + bool flag = this.m_CurrHandler != null; + if (flag) + { + this.m_CurrHandler.SetVisible(false); + } + this.SetupHandlers(sys); + bool flag2 = this.m_CurrHandler != null; + if (flag2) + { + this.m_CurrHandler.SetVisible(true); + } + return true; + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public void OnFsTaskStateUpdated(uint taskId, ActivityTaskState state) + { + bool flag = this.m_firstpassFsHandler != null && this.m_firstpassFsHandler.IsVisible(); + if (flag) + { + this.m_firstpassFsHandler.RefreshItemWithTaskidAndState(taskId, state); + } + } + + public void PlayCrushingSealFx() + { + XSingleton.singleton.PlayUISound("Audio/UI/zhuanzhi", true, AudioChannel.Action); + bool flag = this._FxFirework != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._FxFirework, true); + } + this._FxFirework = XSingleton.singleton.CreateFx("Effects/FX_Particle/UIfx/UI_yh", null, true); + this._FxFirework.Play(DlgBase.singleton.uiBehaviour.m_FxFirework.transform, Vector3.zero, Vector3.one, 1f, true, false); + } + + public void UpdateTab() + { + } + + public void UpdateSealTime() + { + bool flag = this.m_firstpassFsHandler != null && this.m_firstpassFsHandler.IsVisible(); + if (flag) + { + this.m_firstpassFsHandler.UpdateTime(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOperatingActivityView.cs.meta b/Client/Assets/Scripts/XMainClient/XOperatingActivityView.cs.meta new file mode 100644 index 00000000..a2cb11f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperatingActivityView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d88458be6d72f1f4ba95d22a2d2a4c87 +timeCreated: 1611404639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOperationData.cs b/Client/Assets/Scripts/XMainClient/XOperationData.cs new file mode 100644 index 00000000..72daa870 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperationData.cs @@ -0,0 +1,77 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOperationData : XSingleton + { + public XOperationMode OperationMode = XOperationMode.X3D; + + public int TailCameraSpeed = 60; + + public float ManualCameraSpeedXInBattle = 0.6f; + + public float ManualCameraSpeedYInBattle = 0.15f; + + public float ManualCameraDampXInBattle = 10f; + + public float ManualCameraDampYInBattle = 10f; + + public float ManualCameraSpeedXInHall = 0.3f; + + public float ManualCameraSpeedYInHall = 0.3f; + + public float ManualCameraDampXInHall = 2f; + + public float ManualCameraDampYInHall = 2f; + + public float CameraAngle = 2f; + + public float CameraDistance = 6f; + + public bool AllowVertical = false; + + public bool AllowHorizontal = false; + + public float MaxVertical = 30f; + + public float MinVertical = -10f; + + public int RangeWeight = 10; + + public int BossWeight = 10; + + public int EliteWeight = 2; + + public int EnemyWeight = 1; + + public int PupetWeight = 0; + + public int ImmortalWeight = -10; + + public int RoleWeight = 10; + + public float AssistAngle = 60f; + + public float WithinScope = 90f; + + public float WithinRange = 1f; + + public float ProfRange = 1.5f; + + public float ProfRangeLong = 8f; + + public float ProfRangeAll = 5f; + + public int ProfScope = 60; + + public int CameraAdjustScope = 0; + + public bool OffSolo = false; + + public static bool Is3DMode() + { + return XSingleton.singleton.OperationMode == XOperationMode.X3D || XSingleton.singleton.OperationMode == XOperationMode.X3D_Free; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOperationData.cs.meta b/Client/Assets/Scripts/XMainClient/XOperationData.cs.meta new file mode 100644 index 00000000..a702c75d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperationData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba0c80203ca6dbf4892fe16f6d74dad9 +timeCreated: 1611404434 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOperationMode.cs b/Client/Assets/Scripts/XMainClient/XOperationMode.cs new file mode 100644 index 00000000..e4c3c575 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperationMode.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum XOperationMode + { + X25D = 1, + X3D, + X3D_Free, + MAX = 3 + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOperationMode.cs.meta b/Client/Assets/Scripts/XMainClient/XOperationMode.cs.meta new file mode 100644 index 00000000..1ee4ce0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperationMode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f959fce9a5cbbe488bb754c44fe523d +timeCreated: 1611403611 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOperationRecord.cs b/Client/Assets/Scripts/XMainClient/XOperationRecord.cs new file mode 100644 index 00000000..dca13212 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperationRecord.cs @@ -0,0 +1,304 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOperationRecord : XSingleton, IXOperationRecord, IXInterface + { + public bool Deprecated { get; set; } + + private XTableAsyncLoader _async_loader = null; + + private Dictionary _string_table = new Dictionary(); + + private uint _string_table_index = 0u; + + private Dictionary> _string_dictionary = new Dictionary>(); + + private Dictionary _string_operation_id = new Dictionary(); + + private Dictionary _script_operation_id = new Dictionary(); + + private OperationRecord table = new OperationRecord(); + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/OperationRecord", this.table, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("XOperationRecord"), this); + for (int i = 0; i < this.table.Table.Length; i++) + { + OperationRecord.RowData rowData = this.table.Table[i]; + bool flag3 = this._string_table.ContainsKey(rowData.WindowName); + if (flag3) + { + XSingleton.singleton.AddErrorLog("Operation ID duplicate:", rowData.WindowName, null, null, null, null); + } + uint stringTableID = this.GetStringTableID(rowData.WindowName); + bool flag4 = rowData.WindowName.StartsWith("sc:"); + if (flag4) + { + this._script_operation_id.Add(stringTableID, rowData.RecordID); + } + else + { + this._string_operation_id.Add(stringTableID, rowData.RecordID); + } + } + this.SetupStringDictionary(); + result = true; + } + return result; + } + + public override void Uninit() + { + this._string_table.Clear(); + this._string_dictionary.Clear(); + this._string_operation_id.Clear(); + this._script_operation_id.Clear(); + this._async_loader = null; + } + + protected uint GetStringTableID(string key) + { + bool flag = this._string_table.ContainsKey(key); + uint result; + if (flag) + { + result = this._string_table[key]; + } + else + { + this._string_table_index += 1u; + this._string_table.Add(key, this._string_table_index); + result = this._string_table_index; + } + return result; + } + + protected string GetStringByID(uint id) + { + foreach (KeyValuePair keyValuePair in this._string_table) + { + bool flag = keyValuePair.Value == id; + if (flag) + { + return keyValuePair.Key; + } + } + return ""; + } + + protected string GetStringSectionFromEnd(string s, int section) + { + string text = s; + string text2 = ""; + for (int i = 0; i < section; i++) + { + int num = text.LastIndexOf('/'); + bool flag = num == -1; + if (flag) + { + return s; + } + text2 = text.Substring(num) + text2; + text = text.Substring(0, num); + } + bool flag2 = text2.Length > 1; + if (flag2) + { + return text2.Substring(1); + } + return text2; + } + + protected void SetupStringDictionary() + { + for (int i = 0; i < this.table.Table.Length; i++) + { + OperationRecord.RowData rowData = this.table.Table[i]; + bool flag = rowData.WindowName.StartsWith("sc:"); + if (!flag) + { + string stringSectionFromEnd = this.GetStringSectionFromEnd(rowData.WindowName, 1); + uint stringTableID = this.GetStringTableID(rowData.WindowName); + bool flag2 = this._string_dictionary.ContainsKey(stringSectionFromEnd); + if (flag2) + { + this._string_dictionary[stringSectionFromEnd].Add(stringTableID); + } + else + { + List value = new List(); + this._string_dictionary.Add(stringSectionFromEnd, value); + this._string_dictionary[stringSectionFromEnd].Add(stringTableID); + } + } + } + Dictionary> dictionary = new Dictionary>(); + Dictionary> dictionary2 = new Dictionary>(); + this.CloneDictionary(this._string_dictionary, ref dictionary); + for (int j = 2; j < 20; j++) + { + dictionary2.Clear(); + bool flag3 = true; + foreach (KeyValuePair> keyValuePair in dictionary) + { + bool flag4 = keyValuePair.Value.Count > 1; + if (flag4) + { + for (int k = 0; k < keyValuePair.Value.Count; k++) + { + string stringByID = this.GetStringByID(keyValuePair.Value[k]); + string stringSectionFromEnd2 = this.GetStringSectionFromEnd(stringByID, j); + bool flag5 = dictionary2.ContainsKey(stringSectionFromEnd2); + if (flag5) + { + dictionary2[stringSectionFromEnd2].Add(keyValuePair.Value[k]); + } + else + { + List value2 = new List(); + dictionary2.Add(stringSectionFromEnd2, value2); + dictionary2[stringSectionFromEnd2].Add(keyValuePair.Value[k]); + } + } + flag3 = false; + } + } + bool flag6 = dictionary2.Count > 0; + if (flag6) + { + foreach (KeyValuePair> keyValuePair2 in dictionary2) + { + this._string_dictionary.Add(keyValuePair2.Key, keyValuePair2.Value); + } + this.CloneDictionary(dictionary2, ref dictionary); + } + bool flag7 = flag3; + if (flag7) + { + break; + } + } + } + + protected void CloneDictionary(Dictionary> src, ref Dictionary> dst) + { + dst.Clear(); + foreach (KeyValuePair> keyValuePair in src) + { + dst.Add(keyValuePair.Key, keyValuePair.Value); + } + } + + public int FindRecordID(Transform go) + { + Transform transform = go; + bool flag = this._string_dictionary.ContainsKey(transform.name); + if (flag) + { + bool flag2 = this._string_dictionary[transform.name].Count > 1; + if (flag2) + { + string text = transform.name; + for (;;) + { + transform = transform.transform.parent; + text = transform.name + "/" + text; + bool flag3 = this._GetRecordID(text) == 0; + if (flag3) + { + break; + } + bool flag4 = this._GetRecordID(text) == 1; + if (flag4) + { + goto Block_4; + } + } + return 0; + Block_4:; + } + string gameObjectPath = this.GetGameObjectPath(go); + bool flag5 = this._string_table.ContainsKey(gameObjectPath); + if (flag5) + { + uint key = this._string_table[gameObjectPath]; + PtcC2G_OperateRecordNtf ptcC2G_OperateRecordNtf = new PtcC2G_OperateRecordNtf(); + ptcC2G_OperateRecordNtf.Data.position = this._string_operation_id[key]; + ptcC2G_OperateRecordNtf.Data.account = XSingleton.singleton.Account; + ptcC2G_OperateRecordNtf.Data.arg = XSingleton.singleton.GetCurrentCmdStep().ToString(); + XSingleton.singleton.Send(ptcC2G_OperateRecordNtf); + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "record:", + gameObjectPath, + "-->", + ptcC2G_OperateRecordNtf.Data.position + }), null, null, null, null, null); + return (int)this._string_operation_id[key]; + } + } + return 0; + } + + public void DoScriptRecord(string key) + { + string key2 = "sc:" + key; + bool flag = this._string_table.ContainsKey(key2); + if (flag) + { + uint key3 = this._string_table[key2]; + PtcC2G_OperateRecordNtf ptcC2G_OperateRecordNtf = new PtcC2G_OperateRecordNtf(); + ptcC2G_OperateRecordNtf.Data.position = this._script_operation_id[key3]; + ptcC2G_OperateRecordNtf.Data.account = XSingleton.singleton.Account; + XSingleton.singleton.Send(ptcC2G_OperateRecordNtf); + } + } + + protected int _GetRecordID(string key) + { + bool flag = this._string_dictionary.ContainsKey(key); + int result; + if (flag) + { + result = this._string_dictionary[key].Count; + } + else + { + result = 0; + } + return result; + } + + protected string GetGameObjectPath(Transform obj) + { + string text = "/" + obj.name; + while (obj.transform.parent != null) + { + obj = obj.transform.parent; + text = "/" + obj.name + text; + } + text = text.Substring(1); + int num = text.IndexOf('/'); + return text.Substring(num + 1); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOperationRecord.cs.meta b/Client/Assets/Scripts/XMainClient/XOperationRecord.cs.meta new file mode 100644 index 00000000..8e67eb66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOperationRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77b8bfcf69f2b09478ee05dafe064090 +timeCreated: 1611403955 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOpposer.cs b/Client/Assets/Scripts/XMainClient/XOpposer.cs new file mode 100644 index 00000000..48c24b5e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOpposer.cs @@ -0,0 +1,44 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOpposer : XEnemy + { + public override bool Initilize(int flag) + { + base.Initilize(flag); + this._eEntity_Type |= XEntity.EnitityType.Entity_Opposer; + bool flag2 = base.Ator != null; + if (flag2) + { + XSingleton.singleton.CreateComponent(this, XMoveComponent.uuID); + } + bool flag3 = (flag & XFastEnumIntEqualityComparer.ToInt(XEntity.InitFlag.Entity_Transform)) == 0; + if (flag3) + { + bool flag4 = !XSingleton.singleton.SyncMode; + if (flag4) + { + XSingleton.singleton.CreateComponent(this, XManipulationComponent.uuID); + } + XSingleton.singleton.CreateComponent(this, XChargeComponent.uuID); + this._buff = (XSingleton.singleton.CreateComponent(this, XBuffComponent.uuID) as XBuffComponent); + this._rotate = (XSingleton.singleton.CreateComponent(this, XRotationComponent.uuID) as XRotationComponent); + this._audio = (XSingleton.singleton.CreateComponent(this, XAudioComponent.uuID) as XAudioComponent); + XSingleton.singleton.CreateComponent(this, XEndureComponent.uuID); + bool flag5 = XSingleton.singleton.SceneCanNavi(XSingleton.singleton.SceneID); + if (flag5) + { + this._nav = (XSingleton.singleton.CreateComponent(this, XNavigationComponent.uuID) as XNavigationComponent); + } + bool flag6 = !XSingleton.singleton.SyncMode; + if (flag6) + { + this._ai = (XSingleton.singleton.CreateComponent(this, XAIComponent.uuID) as XAIComponent); + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOpposer.cs.meta b/Client/Assets/Scripts/XMainClient/XOpposer.cs.meta new file mode 100644 index 00000000..9e081e97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOpposer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7f9a4ca7dcd18e14e963fbe2e5c7835f +timeCreated: 1611404031 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOptionsBattleDetailHandler.cs b/Client/Assets/Scripts/XMainClient/XOptionsBattleDetailHandler.cs new file mode 100644 index 00000000..0636931b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsBattleDetailHandler.cs @@ -0,0 +1,596 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOptionsBattleDetailHandler : DlgHandlerBase + { + public OptionsBattleTab CurrentTab + { + get + { + return this.m_CurrentTab; + } + } + + protected override string FileName + { + get + { + return "Battle/BattleSetDlg"; + } + } + + private XOptionsDocument doc = null; + + private OptionsBattleTab m_CurrentTab; + + public bool bDirty = false; + + private Transform m_panel; + + private Transform m_fullPanel; + + private IXUILabel m_Label; + + private Transform m_CameraPanel; + + private Transform m_OperatePanel; + + private IXUISprite m_25D; + + private IXUISprite m_3D; + + private IXUISprite m_3DFree; + + private IXUISprite m_AutoLock; + + private IXUISprite m_FreeLock; + + private Transform m_25DSelected; + + private Transform m_3DSelected; + + private Transform m_3DFreeSelected; + + private Transform m_AutoLockSelected; + + private Transform m_FreeLockSelected; + + private XUIPool m_SelectPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_SinglePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_SlidePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_CheckBoxPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List m_uiSingle = new List(); + + private List m_uiSlider = new List(); + + private List m_uiCheckBox = new List(); + + private XOptionsBattleDetailHandler.UiSingle m_single = default(XOptionsBattleDetailHandler.UiSingle); + + private XOptionsBattleDetailHandler.UiSlider m_slider = default(XOptionsBattleDetailHandler.UiSlider); + + private XOptionsBattleDetailHandler.UiCheckBox m_checkBox = default(XOptionsBattleDetailHandler.UiCheckBox); + + public struct UiSingle + { + public XOptionsDefine option; + + public IXUICheckBox uiCheckBox; + } + + public struct UiSlider + { + public XOptionsDefine option; + + public IXUISlider uiSlider; + + public float min; + + public float max; + } + + public struct UiCheckBox + { + public XOptionsDefine option; + + public List select; + + public void Init() + { + this.select = new List(); + } + } + + public enum OptionsType + { + Single = 1, + Slide, + CheckBox + } + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + this.m_Label = (base.transform.Find("Label").GetComponent("XUILabel") as IXUILabel); + this.m_CameraPanel = base.transform.Find("Classify/CameraPanel"); + bool flag = this.m_CameraPanel != null; + if (flag) + { + this.m_25D = (this.m_CameraPanel.Find("25D/Normal").GetComponent("XUISprite") as IXUISprite); + this.m_3D = (this.m_CameraPanel.Find("3D/Normal").GetComponent("XUISprite") as IXUISprite); + this.m_3DFree = (this.m_CameraPanel.Find("3DFree/Normal").GetComponent("XUISprite") as IXUISprite); + this.m_25DSelected = this.m_CameraPanel.Find("25D/Selected"); + this.m_3DSelected = this.m_CameraPanel.Find("3D/Selected"); + this.m_3DFreeSelected = this.m_CameraPanel.Find("3DFree/Selected"); + } + this.m_OperatePanel = base.transform.Find("Classify/OperatePanel"); + bool flag2 = this.m_OperatePanel != null; + if (flag2) + { + this.m_AutoLock = (this.m_OperatePanel.Find("AutoLock/Normal").GetComponent("XUISprite") as IXUISprite); + this.m_FreeLock = (this.m_OperatePanel.Find("FreeLock/Normal").GetComponent("XUISprite") as IXUISprite); + this.m_AutoLockSelected = this.m_OperatePanel.Find("AutoLock/Selected"); + this.m_FreeLockSelected = this.m_OperatePanel.Find("FreeLock/Selected"); + } + this.m_panel = base.transform.Find("Panel"); + this.m_fullPanel = base.transform.Find("FullPanel"); + Transform transform = this.m_panel.transform.Find("SingleTpl"); + this.m_SinglePool.SetupPool(null, transform.gameObject, 5u, false); + Transform transform2 = this.m_panel.transform.Find("SlideTpl"); + this.m_SlidePool.SetupPool(null, transform2.gameObject, 5u, false); + Transform transform3 = this.m_panel.transform.Find("CheckBoxTpl"); + this.m_CheckBoxPool.SetupPool(null, transform3.gameObject, 5u, false); + Transform transform4 = transform3.Find("Select/SelectTpl"); + this.m_SelectPool.SetupPool(this.m_panel.gameObject, transform4.gameObject, 3u, false); + base.SetVisible(false); + } + + public override void RegisterEvent() + { + bool flag = this.m_25D != null; + if (flag) + { + this.m_25D.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X25D)); + this.m_25D.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChangeTab)); + } + bool flag2 = this.m_3D != null; + if (flag2) + { + this.m_3D.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X3D)); + this.m_3D.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChangeTab)); + } + bool flag3 = this.m_3DFree != null; + if (flag3) + { + this.m_3DFree.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X3D_Free)); + this.m_3DFree.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChangeTab)); + } + bool flag4 = this.m_AutoLock != null; + if (flag4) + { + this.m_AutoLock.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperateMode.AutoLock)); + this.m_AutoLock.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChangeTab)); + } + bool flag5 = this.m_FreeLock != null; + if (flag5) + { + this.m_FreeLock.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperateMode.FreeLock)); + this.m_FreeLock.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnChangeTab)); + } + } + + private void OnChangeTab(IXUISprite sp) + { + this.SaveOption(); + bool flag = this.m_CurrentTab == OptionsBattleTab.CameraTab; + if (flag) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag2 = sceneData != null && sceneData.ShieldSight != null; + if (flag2) + { + for (int i = 0; i < sceneData.ShieldSight.Length; i++) + { + bool flag3 = (int)sp.ID == (int)sceneData.ShieldSight[i]; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("OPTION_SHIELD_SIGHT"), "fece00"); + return; + } + } + } + this.doc.SetValue(XOptionsDefine.OD_VIEW, (int)sp.ID, false); + this.m_25DSelected.gameObject.SetActive((int)sp.ID == 1); + this.m_3DSelected.gameObject.SetActive((int)sp.ID == 2); + this.m_3DFreeSelected.gameObject.SetActive((int)sp.ID == 3); + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.SetView((XOperationMode)sp.ID); + } + bool flag5 = DlgBase.singleton.IsLoaded(); + if (flag5) + { + DlgBase.singleton.SetView((XOperationMode)sp.ID); + } + } + bool flag6 = this.m_CurrentTab == OptionsBattleTab.OperateTab; + if (flag6) + { + this.doc.SetValue(XOptionsDefine.OD_OPERATE, (int)sp.ID, false); + this.m_AutoLockSelected.gameObject.SetActive((int)sp.ID == 1); + this.m_FreeLockSelected.gameObject.SetActive((int)sp.ID == 2); + } + this.RefreshDynamicOption(XFastEnumIntEqualityComparer.ToInt(this.m_CurrentTab), (int)sp.ID); + } + + public void OnMainTabChanged(OptionsBattleTab handler) + { + this.m_CurrentTab = handler; + int cassifyID = 0; + switch (this.m_CurrentTab) + { + case OptionsBattleTab.CameraTab: + cassifyID = this.ShowCameraPanel(); + break; + case OptionsBattleTab.OperateTab: + cassifyID = this.ShowOperatePanel(); + break; + case OptionsBattleTab.OtherTab: + cassifyID = this.ShowOtherPanel(); + break; + } + this.SaveOption(); + this.RefreshDynamicOption(XFastEnumIntEqualityComparer.ToInt(this.m_CurrentTab), cassifyID); + } + + public void ShowUI(OptionsBattleTab tab) + { + bool flag = !base.IsVisible(); + if (flag) + { + base.SetVisible(true); + } + this.OnMainTabChanged(tab); + } + + public void CloseUI() + { + bool flag = base.IsVisible(); + if (flag) + { + base.SetVisible(false); + } + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void SaveOption() + { + bool flag = this.m_uiSingle.Count == 0 && this.m_uiSlider.Count == 0 && this.m_uiCheckBox.Count == 0; + if (!flag) + { + bool flag2 = false; + for (int i = 0; i < this.m_uiSingle.Count; i++) + { + bool flag3 = this.doc.SetValue(this.m_uiSingle[i].option, Convert.ToInt32(this.m_uiSingle[i].uiCheckBox.bChecked), false); + if (flag3) + { + flag2 = true; + } + } + for (int j = 0; j < this.m_uiSlider.Count; j++) + { + bool flag4 = this.doc.SetSliderValue(this.m_uiSlider[j].option, Mathf.Lerp(this.m_uiSlider[j].min, this.m_uiSlider[j].max, this.m_uiSlider[j].uiSlider.Value)); + if (flag4) + { + flag2 = true; + } + } + for (int k = 0; k < this.m_uiCheckBox.Count; k++) + { + for (int l = 0; l < this.m_uiCheckBox[k].select.Count; l++) + { + bool bChecked = this.m_uiCheckBox[k].select[l].bChecked; + if (bChecked) + { + bool flag5 = this.doc.SetValue(this.m_uiCheckBox[k].option, l, false); + if (flag5) + { + flag2 = true; + } + break; + } + } + } + this.m_uiSingle.Clear(); + this.m_uiSlider.Clear(); + this.m_uiCheckBox.Clear(); + bool flag6 = flag2; + if (flag6) + { + this.bDirty = true; + this.doc.SaveSetting(); + } + } + } + + private void CloseAllPanel() + { + bool flag = this.m_CameraPanel != null; + if (flag) + { + this.m_CameraPanel.gameObject.SetActive(false); + } + bool flag2 = this.m_OperatePanel != null; + if (flag2) + { + this.m_OperatePanel.gameObject.SetActive(false); + } + } + + public int ShowCameraPanel() + { + this.CloseAllPanel(); + this.m_CameraPanel.gameObject.SetActive(true); + int value = this.doc.GetValue(XOptionsDefine.OD_VIEW); + this.m_25DSelected.gameObject.SetActive(value == 1); + this.m_3DSelected.gameObject.SetActive(value == 2); + this.m_3DFreeSelected.gameObject.SetActive(value == 3); + return value; + } + + public int ShowOperatePanel() + { + this.CloseAllPanel(); + this.m_OperatePanel.gameObject.SetActive(true); + int value = this.doc.GetValue(XOptionsDefine.OD_OPERATE); + XOperateMode xoperateMode = (XOperateMode)value; + this.m_AutoLockSelected.gameObject.SetActive(xoperateMode == XOperateMode.AutoLock); + this.m_FreeLockSelected.gameObject.SetActive(xoperateMode == XOperateMode.FreeLock); + return value; + } + + public int ShowOtherPanel() + { + this.CloseAllPanel(); + return 1; + } + + public void RefreshDynamicOption(int tabID, int cassifyID) + { + this.m_Label.SetText(this.GetDescription(tabID, cassifyID)); + int num = 0; + int num2 = 0; + int num3 = 0; + int num4 = 0; + this.m_uiSingle.Clear(); + this.m_uiSlider.Clear(); + this.m_uiCheckBox.Clear(); + this.m_SelectPool.FakeReturnAll(); + this.m_SinglePool.FakeReturnAll(); + this.m_SlidePool.FakeReturnAll(); + this.m_CheckBoxPool.FakeReturnAll(); + bool flag = tabID > 0 && cassifyID > 0; + if (flag) + { + for (int i = 0; i < XOptionsDocument.optionsData[tabID - 1][cassifyID - 1].Count; i++) + { + XOptions.RowData rowData = XOptionsDocument.optionsData[tabID - 1][cassifyID - 1][i]; + XOptionsBattleDetailHandler.OptionsType type = (XOptionsBattleDetailHandler.OptionsType)rowData.Type; + XOptionsDefine id = (XOptionsDefine)rowData.ID; + bool flag2 = !this.IsShowOption(id); + if (!flag2) + { + bool flag3 = type == XOptionsBattleDetailHandler.OptionsType.Single; + if (flag3) + { + GameObject gameObject = this.m_SinglePool.FetchGameObject(false); + bool flag4 = this.IsNeedFullPanel(tabID); + if (flag4) + { + XSingleton.singleton.AddChild(this.m_fullPanel, gameObject.transform); + } + else + { + XSingleton.singleton.AddChild(this.m_panel, gameObject.transform); + } + gameObject.name = string.Format("Single{0}", num2); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num), 0f) + this.m_SinglePool.TplPos; + num += this.m_SinglePool.TplHeight; + num2++; + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Text); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Category/Normal").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.bChecked = Convert.ToBoolean(this.doc.GetValue(id)); + this.m_single.option = id; + this.m_single.uiCheckBox = ixuicheckBox; + this.m_uiSingle.Add(this.m_single); + } + else + { + bool flag5 = type == XOptionsBattleDetailHandler.OptionsType.Slide; + if (flag5) + { + GameObject gameObject = this.m_SlidePool.FetchGameObject(false); + bool flag6 = this.IsNeedFullPanel(tabID); + if (flag6) + { + XSingleton.singleton.AddChild(this.m_fullPanel, gameObject.transform); + } + else + { + XSingleton.singleton.AddChild(this.m_panel, gameObject.transform); + } + gameObject.name = string.Format("Slide{0}", num3); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num), 0f) + this.m_SlidePool.TplPos; + num += this.m_SlidePool.TplHeight; + num3++; + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Text); + IXUISlider ixuislider = gameObject.transform.Find("Slider/Bar").GetComponent("XUISlider") as IXUISlider; + int num5 = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession) % 10; + string[] array = rowData.Range.Split(new char[] + { + '|' + }); + string[] array2 = array[num5 - 1].Split(new char[] + { + '=' + }); + ixuislider.Value = Mathf.Clamp01(Mathf.InverseLerp(float.Parse(array2[0]), float.Parse(array2[1]), this.doc.GetFloatValue(id))); + ixuilabel = (gameObject.transform.Find("Slider/TLeft").GetComponent("XUILabel") as IXUILabel); + string text = (rowData.OptionText != null && rowData.OptionText.Length != 0) ? rowData.OptionText[0] : ""; + ixuilabel.SetText(text); + ixuilabel = (gameObject.transform.Find("Slider/TRight").GetComponent("XUILabel") as IXUILabel); + text = ((rowData.OptionText != null && rowData.OptionText.Length > 1) ? rowData.OptionText[1] : ""); + ixuilabel.SetText(text); + this.m_slider.option = id; + this.m_slider.uiSlider = ixuislider; + this.m_slider.min = float.Parse(array2[0]); + this.m_slider.max = float.Parse(array2[1]); + this.m_uiSlider.Add(this.m_slider); + } + else + { + bool flag7 = type == XOptionsBattleDetailHandler.OptionsType.CheckBox; + if (flag7) + { + GameObject gameObject = this.m_CheckBoxPool.FetchGameObject(false); + bool flag8 = this.IsNeedFullPanel(tabID); + if (flag8) + { + XSingleton.singleton.AddChild(this.m_fullPanel, gameObject.transform); + } + else + { + XSingleton.singleton.AddChild(this.m_panel, gameObject.transform); + } + gameObject.name = string.Format("CheckBox{0}", num4); + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)num), 0f) + this.m_CheckBoxPool.TplPos; + num += this.m_CheckBoxPool.TplHeight; + num4++; + IXUILabel ixuilabel = gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Text); + Transform transform = gameObject.transform.Find("Select/SelectTpl"); + int num6 = (rowData.OptionText != null) ? rowData.OptionText.Length : 0; + int value = this.doc.GetValue(id); + this.m_checkBox.option = id; + this.m_checkBox.Init(); + for (int j = 0; j < num6; j++) + { + GameObject gameObject2 = this.m_SelectPool.FetchGameObject(false); + XSingleton.singleton.AddChild(gameObject, gameObject2); + gameObject2.transform.localPosition = new Vector3((float)(this.m_SelectPool.TplWidth * j), 0f, 0f) + this.m_SelectPool.TplPos; + IXUICheckBox ixuicheckBox2 = gameObject2.transform.Find("Btn").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ForceSetFlag(false); + ixuicheckBox2.SetGroup(rowData.ID); + bool flag9 = j == value; + if (flag9) + { + ixuicheckBox2.bChecked = true; + } + ixuilabel = (ixuicheckBox2.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(rowData.OptionText[j]); + ixuilabel = (ixuicheckBox2.gameObject.transform.Find("select/T").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(rowData.OptionText[j]); + this.m_checkBox.select.Add(ixuicheckBox2); + } + this.m_uiCheckBox.Add(this.m_checkBox); + } + } + } + } + } + } + this.m_SelectPool.ActualReturnAll(false); + this.m_SinglePool.ActualReturnAll(false); + this.m_SlidePool.ActualReturnAll(false); + this.m_CheckBoxPool.ActualReturnAll(false); + } + + public string GetDescription(int tabID, int cassifyID) + { + bool flag = cassifyID == 0; + string result; + if (flag) + { + result = ""; + } + else + { + XOptionsDefine option = XOptionsDefine.OD_START; + bool flag2 = tabID == 1; + if (flag2) + { + option = XOptionsDefine.OD_VIEW; + } + else + { + bool flag3 = tabID == 2; + if (flag3) + { + option = XOptionsDefine.OD_OPERATE; + } + else + { + bool flag4 = tabID == 3; + if (flag4) + { + option = XOptionsDefine.OD_OTHER; + } + } + } + XOptions.RowData optionData = XOptionsDocument.GetOptionData(option); + bool flag5 = optionData.OptionText != null && optionData.OptionText.Length > cassifyID - 1; + if (flag5) + { + result = optionData.OptionText[cassifyID - 1]; + } + else + { + result = ""; + } + } + return result; + } + + public bool IsNeedFullPanel(int tabID) + { + return 3 == tabID; + } + + public bool IsShowOption(XOptionsDefine option) + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = option == XOptionsDefine.OD_3D_TOUCH_BATTLE; + return !flag || specificDocument.IsShow3DTouch(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOptionsBattleDetailHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XOptionsBattleDetailHandler.cs.meta new file mode 100644 index 00000000..39434d9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsBattleDetailHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 251e7fe6ed539ee4da5786dc083273bc +timeCreated: 1611403463 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOptionsBattleHandler.cs b/Client/Assets/Scripts/XMainClient/XOptionsBattleHandler.cs new file mode 100644 index 00000000..441b0b9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsBattleHandler.cs @@ -0,0 +1,287 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOptionsBattleHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Battle/BattleSetDlg"; + } + } + + private XOptionsDocument doc = null; + + private XOptionsBattleDetailHandler m_DetailHandler; + + public OptionsBattleTab prefabTab = OptionsBattleTab.CameraTab; + + private IXUIButton m_Close; + + private IXUIButton m_Continue; + + private IXUIButton m_Leave; + + private IXUICheckBox m_CameraTab; + + private IXUICheckBox m_OperateTab; + + private IXUICheckBox m_OtherTab; + + private IXUILabel m_CameraTabLabel; + + private IXUILabel m_OperateTabLabel; + + private IXUILabel m_OtherTabTabLabel; + + private IXUILabel m_CameraSelecteTabLabel; + + private IXUILabel m_OperateSelecteTabLabel; + + private IXUILabel m_OtherSelecteTabTabLabel; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Continue = (base.transform.Find("Bg/Btn/Continue").GetComponent("XUIButton") as IXUIButton); + this.m_Leave = (base.transform.Find("Bg/Btn/Leave").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Tabs"); + this.m_CameraTab = (transform.Find("CameraTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_OperateTab = (transform.Find("OperateTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_OtherTab = (transform.Find("OtherTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_CameraTabLabel = (transform.Find("CameraTab/T").GetComponent("XUILabel") as IXUILabel); + this.m_OperateTabLabel = (transform.Find("OperateTab/T").GetComponent("XUILabel") as IXUILabel); + this.m_OtherTabTabLabel = (transform.Find("OtherTab/T").GetComponent("XUILabel") as IXUILabel); + this.m_CameraSelecteTabLabel = (transform.Find("CameraTab/Selected/T").GetComponent("XUILabel") as IXUILabel); + this.m_OperateSelecteTabLabel = (transform.Find("OperateTab/Selected/T").GetComponent("XUILabel") as IXUILabel); + this.m_OtherSelecteTabTabLabel = (transform.Find("OtherTab/Selected/T").GetComponent("XUILabel") as IXUILabel); + DlgHandlerBase.EnsureCreate(ref this.m_DetailHandler, base.transform.Find("Bg/DetailPanel").gameObject, null, true); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + this.m_Continue.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + this.m_Leave.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnLeaveClicked)); + this.m_CameraTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCameraCheckBoxClicked)); + this.m_OperateTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnOperateCheckBoxClicked)); + this.m_OtherTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnOtherCheckBoxClicked)); + } + + public bool OnCloseClicked(IXUIButton sp) + { + base.SetVisible(false); + bool flag = this.m_DetailHandler != null; + if (flag) + { + this.m_DetailHandler.SaveOption(); + bool flag2 = this.m_DetailHandler.bDirty || XSingleton.singleton.OperationMode != (XOperationMode)this.doc.GetValue(XOptionsDefine.OD_VIEW); + if (flag2) + { + this.doc.SetBattleOptionValue(); + this.m_DetailHandler.bDirty = false; + } + } + return true; + } + + public bool OnLeaveClicked(IXUIButton sp) + { + base.SetVisible(false); + bool flag = this.m_DetailHandler != null; + if (flag) + { + this.m_DetailHandler.SaveOption(); + } + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_TOWER; + if (flag2) + { + PtcC2G_SyncSceneFinish proto = new PtcC2G_SyncSceneFinish(); + XSingleton.singleton.Send(proto); + } + else + { + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_BOSSRUSH; + if (flag3) + { + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.ShowBossrushQuit(); + } + } + else + { + XSingleton.singleton.ReqLeaveScene(); + } + } + } + else + { + RpcC2G_ReportBattle rpcC2G_ReportBattle = new RpcC2G_ReportBattle(); + rpcC2G_ReportBattle.oArg.battledata = new BattleData(); + rpcC2G_ReportBattle.oArg.battledata.BeHit = 0; + rpcC2G_ReportBattle.oArg.battledata.hppercent = 100u; + rpcC2G_ReportBattle.oArg.battledata.Combo = 100; + XSingleton.singleton.IsFastLevelFinish = true; + XSingleton.singleton.ReportServerList(rpcC2G_ReportBattle.oArg.battledata.pickDoodadWaveID); + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.RequestServer = true; + XSingleton.singleton.Send(rpcC2G_ReportBattle); + } + XSingleton.singleton.bStopBlockRedPoint = true; + return true; + } + + public void ShowUI() + { + bool flag = !base.IsVisible(); + if (flag) + { + base.SetVisible(true); + } + this.OnTabChanged(this.prefabTab); + DlgBase.singleton.SetMaqueeSwitch(false); + } + + protected override void OnShow() + { + base.OnShow(); + this.ShowUI(); + XOptions.RowData optionData = XOptionsDocument.GetOptionData(XOptionsDefine.OD_VIEW); + this.m_CameraTabLabel.SetText(optionData.Text); + this.m_CameraSelecteTabLabel.SetText(optionData.Text); + optionData = XOptionsDocument.GetOptionData(XOptionsDefine.OD_OPERATE); + this.m_OperateTabLabel.SetText(optionData.Text); + this.m_OperateSelecteTabLabel.SetText(optionData.Text); + optionData = XOptionsDocument.GetOptionData(XOptionsDefine.OD_OTHER); + this.m_OtherTabTabLabel.SetText(optionData.Text); + this.m_OtherSelecteTabTabLabel.SetText(optionData.Text); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData.IsCanQuit || XSingleton.singleton.bSpectator; + if (flag) + { + this.m_Leave.SetEnable(true, false); + } + else + { + this.m_Leave.SetEnable(true, false); + } + } + + protected override void OnHide() + { + XSingleton.singleton.Pause = false; + DlgBase.singleton.SetMaqueeSwitch(true); + base.OnHide(); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_DetailHandler); + base.OnUnload(); + } + + private bool OnCameraCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsBattleTab.CameraTab); + result = true; + } + return result; + } + + private bool OnOperateCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsBattleTab.OperateTab); + result = true; + } + return result; + } + + private bool OnOtherCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsBattleTab.OtherTab); + result = true; + } + return result; + } + + public void OnTabChanged(OptionsBattleTab handler) + { + switch (handler) + { + case OptionsBattleTab.CameraTab: + { + bool flag = this.m_CameraTab != null; + if (flag) + { + this.m_CameraTab.bChecked = true; + } + break; + } + case OptionsBattleTab.OperateTab: + { + bool flag2 = this.m_OperateTab != null; + if (flag2) + { + this.m_OperateTab.bChecked = true; + } + break; + } + case OptionsBattleTab.OtherTab: + { + bool flag3 = this.m_OtherTab != null; + if (flag3) + { + this.m_OtherTab.bChecked = true; + } + break; + } + } + bool flag4 = this.m_DetailHandler != null; + if (flag4) + { + this.m_DetailHandler.ShowUI(handler); + } + this.prefabTab = handler; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOptionsBattleHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XOptionsBattleHandler.cs.meta new file mode 100644 index 00000000..d5233f18 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsBattleHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b972fa242f652b44b9e6a41e3a1a1f0f +timeCreated: 1611404410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOptionsBehaviour.cs b/Client/Assets/Scripts/XMainClient/XOptionsBehaviour.cs new file mode 100644 index 00000000..dc398698 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsBehaviour.cs @@ -0,0 +1,286 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XOptionsBehaviour : DlgBehaviourBase + { + public IXUIButton m_close; + + public IXUILabelSymbol m_Account; + + public IXUILabel m_Server; + + public IXUILabel m_UID; + + public IXUILabel m_ExpNum; + + public IXUILabel m_Level; + + public IXUILabel m_AchievementLabel; + + public IXUILabelSymbol m_Designation; + + public IXUILabel m_Identity; + + public IXUILabel m_GuildName; + + public IXUILabel m_SameScreenNum; + + public IXUILabel m_SameScreenMinT; + + public IXUILabel m_SameScreenMaxT; + + public IXUISprite m_GuildIcon; + + public IXUISprite m_Tq; + + public IXUISprite m_MilitaryIcon; + + public IXUILabel m_MilitaryName; + + public IXUIScrollView m_SettingPanelScrollView; + + public IXUISprite m_Portrait; + + public IXUITexture m_PortraitTex; + + public IXUISprite m_Wechat; + + public IXUISprite m_Guest; + + public IXUILabelSymbol m_Title; + + public IXUIButton m_Changename; + + public IXUIButton m_TitleBtn; + + public IXUIButton m_DesignationBtn; + + public IXUIButton m_AchievementBtn; + + public IXUIButton m_VipBtn; + + public IXUIButton m_PersonalCareerBtn; + + public IXUIButton m_SwitchAccount; + + public IXUIButton m_SwitchChar; + + public IXUIButton m_GameSirBtn; + + public IXUIButton m_CustomerService; + + public IXUIButton m_ServiceTerms; + + public IXUIButton m_ServiceAgreement; + + public IXUIButton m_PrivacyTerms; + + public IXUIProgress m_ExpBar; + + public IXUIProgress m_SameScreenBar; + + public IXUICheckBox m_InfoTab; + + public IXUICheckBox m_OptionTab; + + public IXUICheckBox m_PushTab; + + public IXUICheckBox m_CameraTab; + + public IXUICheckBox m_GameSound; + + public IXUIProgress m_SoundBar; + + public IXUICheckBox m_GameMusic; + + public IXUIProgress m_MusicBar; + + public IXUICheckBox m_GameVoice; + + public IXUIProgress m_VoiceBar; + + public IXUICheckBox m_GameVolume; + + public IXUICheckBox m_RadioWifi; + + public IXUICheckBox m_RadioTeam; + + public IXUICheckBox m_RadioPrivate; + + public IXUICheckBox m_RadioPublic; + + public IXUICheckBox m_RadioWorld; + + public IXUICheckBox m_RadioAutoPlay; + + public Transform m_Quality; + + public IXUICheckBox m_SuperHighPress; + + public IXUICheckBox m_HighPress; + + public IXUICheckBox m_MidPress; + + public IXUICheckBox m_LowPress; + + public Transform m_Quality2; + + public IXUICheckBox m_HighPress2; + + public IXUICheckBox m_MidPress2; + + public IXUICheckBox m_LowPress2; + + public IXUICheckBox m_Flowerrain; + + public IXUICheckBox m_Radio; + + public IXUICheckBox m_3DTouch; + + public Transform m_ResolutionPanel; + + public IXUICheckBox m_Smooth; + + public IXUICheckBox m_ResolutionHigh; + + public IXUICheckBox m_ResolutionNormal; + + public IXUICheckBox m_ResolutionLow; + + public IXUIWrapContent m_PushWrapContent; + + public IXUIWrapContent m_PushWrapContent2; + + public Transform m_UserInfoPanel; + + public Transform m_SettingPanel; + + public Transform m_PushPanel; + + public GameObject m_BattlePanel; + + public Transform m_VoicePanel; + + public Transform m_DisplayPanel; + + public Transform m_SameScreenNumPanel; + + public Transform m_BasePanel; + + public IXUIButton m_QQOpenVipBtn; + + public GameObject m_QQVipIcon; + + public GameObject m_QQSVipIcon; + + public IXUISprite m_WXGameCenter; + + public IXUISprite m_QQGameCenter; + + public IXUIButton m_PrerogativeBtn; + + private void Awake() + { + this.m_close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Tabs"); + this.m_InfoTab = (transform.Find("InfoTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_OptionTab = (transform.Find("OptionTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_PushTab = (transform.Find("PushTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_CameraTab = (transform.Find("CameraTab").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_UserInfoPanel = base.transform.Find("Bg/UserInfoPanel"); + Transform transform2 = this.m_UserInfoPanel; + Transform transform3 = transform2.Find("BaseInfo"); + this.m_Account = (transform3.Find("Username").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Changename = (transform3.Find("Changename").GetComponent("XUIButton") as IXUIButton); + this.m_UID = (transform3.Find("UID").GetComponent("XUILabel") as IXUILabel); + this.m_Portrait = (transform3.Find("Portrait").GetComponent("XUISprite") as IXUISprite); + this.m_PortraitTex = (transform3.Find("Portrait/Texture").GetComponent("XUITexture") as IXUITexture); + this.m_Wechat = (transform3.Find("Wechat").GetComponent("XUISprite") as IXUISprite); + this.m_Guest = (transform3.Find("Guest").GetComponent("XUISprite") as IXUISprite); + transform3 = transform2.Find("UserInfo"); + this.m_ExpNum = (transform3.Find("Exp/ExpNum").GetComponent("XUILabel") as IXUILabel); + this.m_Level = (transform3.Find("Exp/Level").GetComponent("XUILabel") as IXUILabel); + this.m_ExpBar = (transform3.Find("Exp/ExpBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_TitleBtn = (transform3.Find("Rank/RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Title = (transform3.Find("Rank/RankPic").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_TitleBtn.gameObject.SetActive(false); + this.m_DesignationBtn = (transform3.Find("Title/TitleBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Designation = (transform3.Find("Title/TitleLabel").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_DesignationBtn.gameObject.SetActive(false); + this.m_AchievementBtn = (transform3.Find("Achievement/AchievementBtn").GetComponent("XUIButton") as IXUIButton); + this.m_AchievementLabel = (transform3.Find("Achievement/AchievementLabel").GetComponent("XUILabel") as IXUILabel); + this.m_AchievementBtn.gameObject.SetActive(false); + this.m_MilitaryIcon = (transform3.Find("Military/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_MilitaryName = (transform3.Find("Military/Level").GetComponent("XUILabel") as IXUILabel); + this.m_Identity = (transform3.Find("Guild/Identity").GetComponent("XUILabel") as IXUILabel); + this.m_GuildName = (transform3.Find("Guild/GuildName").GetComponent("XUILabel") as IXUILabel); + this.m_GuildIcon = (transform3.Find("Guild/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_Server = (transform2.Find("Server").GetComponent("XUILabel") as IXUILabel); + this.m_ServiceTerms = (transform2.Find("Link/ServiceTerms").GetComponent("XUIButton") as IXUIButton); + this.m_ServiceAgreement = (transform2.Find("Link/ServiceAgreement").GetComponent("XUIButton") as IXUIButton); + this.m_PrivacyTerms = (transform2.Find("Link/PrivacyTerms").GetComponent("XUIButton") as IXUIButton); + this.m_SwitchChar = (transform2.Find("BottomButtons/SwitchChar").GetComponent("XUIButton") as IXUIButton); + this.m_SwitchAccount = (transform2.Find("BottomButtons/SwitchAccount").GetComponent("XUIButton") as IXUIButton); + this.m_VipBtn = (transform2.Find("BottomButtons/VipBtn").GetComponent("XUIButton") as IXUIButton); + this.m_PersonalCareerBtn = (transform2.Find("BottomButtons/PersonalCareerBtn").GetComponent("XUIButton") as IXUIButton); + this.m_CustomerService = (base.transform.Find("Bg/CustomerService").GetComponent("XUIButton") as IXUIButton); + this.m_SettingPanel = base.transform.Find("Bg/SettingPanel"); + transform2 = this.m_SettingPanel; + this.m_SettingPanelScrollView = (transform2.GetComponent("XUIScrollView") as IXUIScrollView); + this.m_BasePanel = transform2.Find("BasePanel"); + this.m_GameSound = (this.m_BasePanel.Find("GameSound").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_SoundBar = (this.m_BasePanel.Find("GameSound/Slider").GetComponent("XUIProgress") as IXUIProgress); + this.m_GameMusic = (this.m_BasePanel.Find("GameMusic").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_MusicBar = (this.m_BasePanel.Find("GameMusic/Slider").GetComponent("XUIProgress") as IXUIProgress); + this.m_GameVoice = (this.m_BasePanel.Find("GameVoice").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_VoiceBar = (this.m_BasePanel.Find("GameVoice/Slider").GetComponent("XUIProgress") as IXUIProgress); + this.m_Flowerrain = (this.m_BasePanel.Find("Flowerrain").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Radio = (this.m_BasePanel.Find("Radio").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_3DTouch = (this.m_BasePanel.Find("3DTouch").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_GameSirBtn = (this.m_BasePanel.Find("GameSir").GetComponent("XUIButton") as IXUIButton); + this.m_DisplayPanel = transform2.Find("DisplayPanel"); + this.m_Quality = this.m_DisplayPanel.Find("Quality"); + this.m_SuperHighPress = (this.m_Quality.Find("BtnSuperHighPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_HighPress = (this.m_Quality.Find("BtnHighPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_MidPress = (this.m_Quality.Find("BtnMidPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_LowPress = (this.m_Quality.Find("BtnLowPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_Quality2 = this.m_DisplayPanel.Find("Quality2"); + this.m_HighPress2 = (this.m_Quality2.Find("BtnHighPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_MidPress2 = (this.m_Quality2.Find("BtnMidPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_LowPress2 = (this.m_Quality2.Find("BtnLowPress").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_SameScreenNumPanel = transform2.Find("SameScreenNumPanel"); + this.m_SameScreenNum = (this.m_SameScreenNumPanel.Find("Thumb/Num").GetComponent("XUILabel") as IXUILabel); + this.m_SameScreenBar = (this.m_SameScreenNumPanel.Find("Bar").GetComponent("XUIProgress") as IXUIProgress); + this.m_SameScreenMinT = (this.m_SameScreenNumPanel.Find("MinT").GetComponent("XUILabel") as IXUILabel); + this.m_SameScreenMaxT = (this.m_SameScreenNumPanel.Find("MaxT").GetComponent("XUILabel") as IXUILabel); + this.m_VoicePanel = transform2.Find("VoicePanel"); + this.m_GameVolume = (this.m_VoicePanel.Find("GameVolume").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RadioWifi = (this.m_VoicePanel.Find("RadioWifi").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RadioTeam = (this.m_VoicePanel.Find("RadioTeam").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RadioPrivate = (this.m_VoicePanel.Find("RadioPrivate").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RadioPublic = (this.m_VoicePanel.Find("RadioPublic").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RadioWorld = (this.m_VoicePanel.Find("RadioWorld").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_RadioAutoPlay = (this.m_VoicePanel.Find("RadioAutoPlay").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ResolutionPanel = transform2.Find("ResolutionPanel"); + this.m_Smooth = (this.m_ResolutionPanel.Find("Smooth").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ResolutionHigh = (this.m_ResolutionPanel.Find("Resolution/Original").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ResolutionNormal = (this.m_ResolutionPanel.Find("Resolution/Normal").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ResolutionLow = (this.m_ResolutionPanel.Find("Resolution/Fast").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_BattlePanel = base.transform.Find("Bg/BattlePanel").gameObject; + this.m_PushPanel = base.transform.Find("Bg/PushPanel"); + this.m_PushWrapContent = (this.m_PushPanel.Find("Scroll1/wrapcontent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_PushWrapContent2 = (this.m_PushPanel.Find("Scroll2/wrapcontent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_QQOpenVipBtn = (this.m_UserInfoPanel.Find("BottomButtons/QQVipBtn").GetComponent("XUIButton") as IXUIButton); + this.m_QQVipIcon = this.m_UserInfoPanel.Find("BaseInfo/QQVIP").gameObject; + this.m_QQSVipIcon = this.m_UserInfoPanel.Find("BaseInfo/QQSVIP").gameObject; + this.m_WXGameCenter = (this.m_UserInfoPanel.Find("BaseInfo/Wechat").GetComponent("XUISprite") as IXUISprite); + this.m_QQGameCenter = (this.m_UserInfoPanel.Find("BottomButtons/QQ").GetComponent("XUISprite") as IXUISprite); + this.m_Tq = (this.m_UserInfoPanel.Find("BaseInfo/Tq").GetComponent("XUISprite") as IXUISprite); + this.m_PrerogativeBtn = (this.m_UserInfoPanel.Find("BottomButtons/PrerogativeBtn").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOptionsBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XOptionsBehaviour.cs.meta new file mode 100644 index 00000000..4880eff8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c38211365c940bf44a4bedb88359b7e5 +timeCreated: 1611404498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOptionsDefine.cs b/Client/Assets/Scripts/XMainClient/XOptionsDefine.cs new file mode 100644 index 00000000..33f2cc68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsDefine.cs @@ -0,0 +1,130 @@ +using System; + +namespace XMainClient +{ + internal enum XOptionsDefine + { + OD_START, + OD_SOUND, + BA_SOUND, + OD_MUSIC, + BA_MUSIC, + OD_VOICE, + BA_VOICE, + OD_VOLUME = 10, + OD_RADIO_WIFI, + OD_RADIO_TEAM, + OD_RADIO_CAMP, + OD_RADIO_PRIVATE, + OD_RADIO_PUBLIC, + OD_RADIO_WORLD, + OD_RADIO_AUTO_PALY, + OD_QUALITY = 20, + OD_FLOWERRAIN, + OD_SAMESCREENNUM, + OD_TEAM_USE_PASSWORD, + OD_RADIO, + OD_3D_TOUCH, + OD_SMOOTH, + OD_RESOLUTION, + OD_POWERSAVE, + OD_NOTIFICATION, + OD_BLOCKOTHERPLAYERS, + OD_TAILCAMERA_SPEED, + OD_LOCALSETTING_END = 999, + OD_PUSH_ENERGY, + OD_LEVEL_SEAL_REMOVE, + OD_RISK_DICE, + OD_RISK_BOX, + OD_RISK, + OD_SEAL, + OD_BATTLE_OPTION_START = 1100, + OD_VIEW, + OD_OPERATE, + OD_OTHER, + OD_TailCameraSpeed25D = 1111, + OD_TailCameraSpeed3D, + OD_TailCameraSpeed3DFree, + OD_ManualCameraSpeedXInBattle25D = 1121, + OD_ManualCameraSpeedXInBattle3D, + OD_ManualCameraSpeedXInBattle3DFree, + OD_Vertical3D = 1132, + OD_Vertical3DFree, + OD_Distance3DFree = 1143, + ManualCameraSpeedXInHallAutoLock = 2011, + ManualCameraSpeedXInHallFreeLock, + ManualCameraDampXInHallAutoLock = 2021, + ManualCameraDampXInHallFreeLock, + ManualCameraSpeedYInHallAutoLock = 2031, + ManualCameraSpeedYInHallFreeLock, + ManualCameraDampYInHallAutoLock = 2041, + ManualCameraDampYInHallFreeLock, + ManualCameraDampXInBattleAutoLock = 2051, + ManualCameraDampXInBattleFreeLock, + ManualCameraSpeedYInBattleAutoLock = 2061, + ManualCameraSpeedYInBattleFreeLock, + ManualCameraDampYInBattleAutoLock = 2071, + ManualCameraDampYInBattleFreeLock, + RangeWeightAutoLock = 2081, + RangeWeightFreeLock, + BossWeightAutoLock = 2091, + BossWeightFreeLock, + EliteWeightAutoLock = 2101, + EliteWeightFreeLock, + EnemyWeightAutoLock = 2111, + EnemyWeightFreeLock, + PupetWeightAutoLock = 2121, + PupetWeightFreeLock, + RoleWeightAutoLock = 2131, + RoleWeightFreeLock, + ImmortalWeightAutoLock = 2141, + ImmortalWeightFreeLock, + WithinScopeAutoLock = 2151, + WithinScopeFreeLock, + WithinRangeAutoLock = 2161, + WithinRangeFreeLock, + AssistAngleAutoLock = 2171, + AssistAngleFreeLock, + ProfRangeAutoLock = 2181, + ProfRangeFreeLock, + ProfRangeLongAutoLock = 2191, + ProfRangeLongFreeLock, + ProfRangeAllAutoLock = 2201, + ProfRangeAllFreeLock, + CameraAdjustScopeAutoLock = 2211, + CameraAdjustScopeFreeLock, + ProfScopeAutoLock = 2221, + ProfScopeFreeLock, + OD_LOCK_ROCKER = 3011, + OD_3D_TOUCH_BATTLE, + OD_Gyro, + OD_Shield_Skill_Fx, + OD_Shield_Summon, + OD_Shield_NoTeam_Chat, + OD_Shield_My_Skill_Fx, + OD_Awake_Slot, + OD_BATTLE_OPTION_END, + OD_STOP_BLOCK_REDPOINT = 10000, + OD_TEAM_PASSWORD, + OD_GUILD_SKILL_LOCK, + OD_SKIP_TUTORIAL, + OD_NO_ENCHANT_REPLACE_CONFIRM = 10005, + OD_NO_ARTIFACTCOMPOSE_REPLACE_CONFIRM = 10010, + OD_NO_SMELTSTONE_EXCHANGED_CONFIRM = 10015, + OD_NO_FUSE_CONFIRM, + OD_NO_INSCRIPTION_CONFIRM, + OD_NO_RECAST_CONFIRM, + OD_NO_CAPACITYDOWN_TIPS, + OD_RECYCLE_TIPS = 10050, + OD_NO_REFINED_CONFIRM, + OD_NO_PVEATTRMODIFY_CONFIRM = 10051, + OD_RECRUIT_FIRST_GROUP = 10020, + OD_RECRUIT_FIRST_MEMBER, + OD_PREROGATIVE_PreChatBubble = 10031, + OD_PREROGATIVE_PreChatAdorn, + OD_PREROGATIVE_PreChatColor, + OD_PREROGATIVE_PreTeamBorder, + OD_PREROGATIVE_PreTeamBackground, + OD_BackFlow_IsSystemOpen = 10040 + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOptionsDefine.cs.meta b/Client/Assets/Scripts/XMainClient/XOptionsDefine.cs.meta new file mode 100644 index 00000000..1dba3065 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsDefine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2853f0c46fe95d4d9ce3e6b05ff7149 +timeCreated: 1611404257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOptionsDocument.cs b/Client/Assets/Scripts/XMainClient/XOptionsDocument.cs new file mode 100644 index 00000000..bf1ad4d0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsDocument.cs @@ -0,0 +1,1257 @@ +using System; +using System.Collections.Generic; +using System.IO; +using KKSG; +using MiniJSON; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOptionsDocument : XDocComponent + { + public override uint ID + { + get + { + return XOptionsDocument.uuID; + } + } + + public XOptionsView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("OptionsDocument"); + + private XOptionsView _view = null; + + public static readonly int SIGHT_NUM = 3; + + public static readonly int MAGNIFICATION_MULTIPLE = 1000; + + private readonly int[] _QualityLevel = new int[] + { + 0, + 3, + 5 + }; + + private Dictionary options = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private Dictionary floatOptions = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private Dictionary strOptions = new Dictionary(default(XFastEnumIntEqualityComparer)); + + public static Dictionary pushSettings = new Dictionary(); + + public static Dictionary localPushSetting = new Dictionary(); + + public static PushSetting _pushSettingTable = new PushSetting(); + + public static PushMessageTable _pushMessageTable = new PushMessageTable(); + + public static List _pushSetting1 = new List(); + + public static List _pushSetting2 = new List(); + + public static XOptions _optionsTable = new XOptions(); + + public static List>> optionsData = new List>>(); + + public static Dictionary optionsDefault = new Dictionary(default(XFastEnumIntEqualityComparer)); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public bool openVoice = true; + + public float voiceVolme = 1f; + + private float bgmVolme; + + private float mscVolme; + + public bool Flowerrain; + + private static XOptionsDocument.OptionData optionDefault = default(XOptionsDocument.OptionData); + + private float lastSameScreenValue; + + private float lastSound = -1f; + + private float lastMusic = -1f; + + private float lastVoice = -1f; + + private bool openSound; + + private bool openMusic; + + public struct OptionData + { + public string[,] val; + + public bool NeedSight; + + public bool[] NeedProfession; + + public void Init() + { + this.val = new string[XOptionsDocument.SIGHT_NUM, XGame.RoleCount]; + this.NeedProfession = new bool[XOptionsDocument.SIGHT_NUM]; + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.LoadSetting(); + this.RefreshLocalSettings(); + XSingleton.singleton.XPlatform.SendGameExData("push_local_clear", ""); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XOptionsDocument.AsyncLoader.AddTask("Table/PushSetting", XOptionsDocument._pushSettingTable, false); + XOptionsDocument.AsyncLoader.AddTask("Table/PushMessage", XOptionsDocument._pushMessageTable, false); + XOptionsDocument.AsyncLoader.AddTask("Table/XOptions", XOptionsDocument._optionsTable, false); + XOptionsDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XOptionsDocument.pushSettings.Clear(); + for (int i = 0; i < XOptionsDocument._pushSettingTable.Table.Length; i++) + { + bool flag = XOptionsDocument._pushSettingTable.Table[i].TimeOrSystem == 1u; + if (flag) + { + XOptionsDocument._pushSetting1.Add(XOptionsDocument._pushSettingTable.Table[i]); + } + else + { + bool flag2 = XOptionsDocument._pushSettingTable.Table[i].TimeOrSystem == 2u; + if (flag2) + { + XOptionsDocument._pushSetting2.Add(XOptionsDocument._pushSettingTable.Table[i]); + } + } + string configKey = XOptionsDocument._pushSettingTable.Table[i].ConfigKey; + XOptionsDocument.pushSettings.Add(configKey, 1); + } + XOptionsDocument.optionsData.Clear(); + for (int j = 0; j < XFastEnumIntEqualityComparer.ToInt(OptionsBattleTab.OtherTab); j++) + { + XOptionsDocument.optionsData.Add(new List>()); + XOptionsDefine option = XOptionsDefine.OD_VIEW + j; + XOptions.RowData optionData = XOptionsDocument.GetOptionData(option); + bool flag3 = optionData.OptionText != null; + if (flag3) + { + for (int k = 0; k < optionData.OptionText.Length; k++) + { + XOptionsDocument.optionsData[j].Add(new List()); + } + } + else + { + XOptionsDocument.optionsData[j].Add(new List()); + } + } + for (int l = 0; l < XOptionsDocument._optionsTable.Table.Length; l++) + { + int id = XOptionsDocument._optionsTable.Table[l].ID; + int num = XOptionsDocument._optionsTable.Table[l].Classify[0]; + int num2 = XOptionsDocument._optionsTable.Table[l].Classify[1]; + int type = XOptionsDocument._optionsTable.Table[l].Type; + int sort = XOptionsDocument._optionsTable.Table[l].Sort; + bool flag4 = id <= 0; + if (!flag4) + { + XOptions.RowData rowData = XOptionsDocument._optionsTable.Table[l]; + bool flag5 = rowData.ID != 0; + if (flag5) + { + XOptionsDocument.optionDefault.Init(); + string[] array = rowData.Default.Split(new char[] + { + '|' + }); + XOptionsDocument.optionDefault.NeedSight = (array.Length != 1); + for (int m = 0; m < XOptionsDocument.SIGHT_NUM; m++) + { + bool flag6 = array.Length == 1; + string text; + if (flag6) + { + text = array[0]; + } + else + { + text = array[m]; + } + string[] array2 = text.Split(new char[] + { + '=' + }); + XOptionsDocument.optionDefault.NeedProfession[m] = (array2.Length != 1); + for (int n = 0; n < XGame.RoleCount; n++) + { + bool flag7 = array2.Length == 1; + string text2; + if (flag7) + { + text2 = array2[0]; + } + else + { + text2 = array2[n]; + } + XOptionsDocument.optionDefault.val[m, n] = text2; + } + } + XOptionsDocument.optionsDefault.Add((XOptionsDefine)rowData.ID, XOptionsDocument.optionDefault); + } + bool flag8 = (num == 0 && num2 == 0) || type == 0; + if (!flag8) + { + bool flag9 = XOptionsDocument.optionsData.Count >= num && XOptionsDocument.optionsData[num - 1].Count >= num2; + if (flag9) + { + XOptionsDocument.optionsData[num - 1][num2 - 1].Add(rowData); + } + else + { + XSingleton.singleton.AddErrorLog("XOptions Table Error! ID:" + rowData.ID, null, null, null, null, null); + } + } + } + } + for (int num3 = 0; num3 < XOptionsDocument.optionsData.Count; num3++) + { + for (int num4 = 0; num4 < XOptionsDocument.optionsData[num3].Count; num4++) + { + XOptionsDocument.optionsData[num3][num4].Sort(new Comparison(XOptionsDocument.SortCompare)); + } + } + } + + public static XOptions.RowData GetOptionData(XOptionsDefine option) + { + return XOptionsDocument.GetOptionData(XFastEnumIntEqualityComparer.ToInt(option)); + } + + public static XOptions.RowData GetOptionData(int optionID) + { + return XOptionsDocument._optionsTable.GetByID(optionID); + } + + private static int SortCompare(XOptions.RowData item1, XOptions.RowData item2) + { + int sort = item1.Sort; + int sort2 = item2.Sort; + bool flag = sort == sort2; + int result; + if (flag) + { + result = -item1.ID.CompareTo(item2.ID); + } + else + { + result = -sort.CompareTo(sort2); + } + return result; + } + + public override void OnEnterSceneFinally() + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData != null && sceneData.ShieldSight != null; + if (flag) + { + for (int i = 0; i < sceneData.ShieldSight.Length; i++) + { + bool flag2 = (int)sceneData.ShieldSight[i] == this.GetValue(XOptionsDefine.OD_VIEW); + if (flag2) + { + this.SetDefaultSight(sceneData.ShieldSight); + break; + } + } + } + this.SetBattleOptionValue(); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetView(XSingleton.singleton.OperationMode); + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_HORSE_RACE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING; + if (flag4) + { + } + } + + private void SetDefaultSight(byte[] shieldSight) + { + for (XOperationMode xoperationMode = XOperationMode.X25D; xoperationMode <= XOperationMode.X3D_Free; xoperationMode++) + { + bool flag = true; + for (int i = 0; i < shieldSight.Length; i++) + { + bool flag2 = (XOperationMode)shieldSight[i] == xoperationMode; + if (flag2) + { + flag = false; + break; + } + } + bool flag3 = flag; + if (flag3) + { + this.SetValue(XOptionsDefine.OD_VIEW, XFastEnumIntEqualityComparer.ToInt(xoperationMode), false); + XSingleton.singleton.AddGreenLog("Auto Change Sight:" + xoperationMode.ToString(), null, null, null, null, null); + return; + } + } + XSingleton.singleton.AddErrorLog("No Default Sight", null, null, null, null, null); + } + + public override void OnGamePause(bool pause) + { + XSingleton.singleton.AddLog("push_local_clear", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("push_local_clear", ""); + if (pause) + { + DateTime now = DateTime.Now; + int hour = now.Hour; + int minute = now.Minute; + int num = Convert.ToInt32(DateTime.Now.DayOfWeek.ToString("d")); + for (int i = 0; i < XOptionsDocument._pushMessageTable.Table.Length; i++) + { + PushMessageTable.RowData rowData = XOptionsDocument._pushMessageTable.Table[i]; + bool flag = rowData.IsCommonGlobal == 1u && this.IsPushOpen(rowData.Type); + if (flag) + { + bool flag2 = rowData.WeekDay == null || rowData.WeekDay.Length == 0; + if (flag2) + { + bool flag3 = (ulong)rowData.Time[0] > (ulong)((long)hour) || ((ulong)rowData.Time[0] == (ulong)((long)hour) && (ulong)rowData.Time[1] > (ulong)((long)minute)); + if (flag3) + { + XSingleton.singleton.XPlatform.SendGameExData("push_local", this.MakeJson(rowData, now)); + } + DateTime date = now.AddDays(1.0); + XSingleton.singleton.XPlatform.SendGameExData("push_local", this.MakeJson(rowData, date)); + DateTime date2 = now.AddDays(2.0); + XSingleton.singleton.XPlatform.SendGameExData("push_local", this.MakeJson(rowData, date2)); + } + else + { + for (int j = 0; j < rowData.WeekDay.Length; j++) + { + bool flag4 = rowData.WeekDay[j] == (uint)num; + if (flag4) + { + bool flag5 = (ulong)rowData.Time[0] > (ulong)((long)hour) || ((ulong)rowData.Time[0] == (ulong)((long)hour) && (ulong)rowData.Time[1] > (ulong)((long)minute)); + if (flag5) + { + XSingleton.singleton.XPlatform.SendGameExData("push_local", this.MakeJson(rowData, now)); + } + } + else + { + bool flag6 = rowData.WeekDay[j] > (uint)num; + if (flag6) + { + DateTime date3 = now.AddDays((double)((ulong)rowData.WeekDay[j] - (ulong)((long)num))); + XSingleton.singleton.XPlatform.SendGameExData("push_local", this.MakeJson(rowData, date3)); + } + } + } + } + } + } + } + base.OnGamePause(pause); + } + + private string MakeJson(PushMessageTable.RowData row, DateTime date) + { + Dictionary dictionary = new Dictionary(); + dictionary["title"] = row.Title; + dictionary["content"] = row.Content; + dictionary["type"] = 1; + bool flag = (int)Application.platform == 8; + if (flag) + { + dictionary["date"] = date.ToString("yyyy-MM-dd"); + dictionary["hour"] = ((row.Time[0] < 10u) ? ("0" + row.Time[0].ToString()) : row.Time[0].ToString()); + dictionary["min"] = ((row.Time[1] < 10u) ? ("0" + row.Time[1].ToString()) : row.Time[1].ToString()); + } + else + { + dictionary["date"] = date.ToString("yyyyMMdd"); + dictionary["hour"] = row.Time[0]; + dictionary["min"] = row.Time[1]; + } + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog(Application.platform.ToString(), " => ", text, null, null, null, XDebugColor.XDebug_None); + return text; + } + + private bool IsPushOpen(uint type) + { + for (int i = 0; i < XOptionsDocument._pushSettingTable.Table.Length; i++) + { + bool flag = XOptionsDocument._pushSettingTable.Table[i].Type == type; + if (flag) + { + return XOptionsDocument.pushSettings[XOptionsDocument._pushSettingTable.Table[i].ConfigKey] == 1; + } + } + return true; + } + + public void OnBlockOtherPlayers() + { + this.ProccessOption(XOptionsDefine.OD_BLOCKOTHERPLAYERS, this.GetValue(XOptionsDefine.OD_BLOCKOTHERPLAYERS)); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AudioOperation, new XComponent.XEventHandler(this.OnChatVoiceHandled)); + } + + public void InitServerConfig(RoleConfig serverConfig) + { + bool flag = serverConfig != null; + if (flag) + { + bool flag2 = serverConfig.type.Count != serverConfig.value.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("serverConfig.type.Count != serverConfig.value.Count", null, null, null, null, null); + } + else + { + Type typeFromHandle = typeof(XOptionsDefine); + for (int i = 0; i < serverConfig.type.Count; i++) + { + try + { + bool flag3 = XOptionsDocument.pushSettings.ContainsKey(serverConfig.type[i]); + if (flag3) + { + bool flag4 = !XOptionsDocument.localPushSetting.ContainsKey(serverConfig.type[i]); + if (flag4) + { + XOptionsDocument.pushSettings[serverConfig.type[i]] = int.Parse(serverConfig.value[i]); + } + } + else + { + XOptionsDefine xoptionsDefine = (XOptionsDefine)Enum.Parse(typeFromHandle, serverConfig.type[i]); + XOptionsDefine xoptionsDefine2 = xoptionsDefine; + if (xoptionsDefine2 != XOptionsDefine.OD_TEAM_PASSWORD) + { + XOptions.RowData optionData = XOptionsDocument.GetOptionData(xoptionsDefine); + bool flag5 = optionData != null && optionData.Type != 0; + if (flag5) + { + bool flag6 = optionData.Type == 2; + if (flag6) + { + float value; + bool flag7 = float.TryParse(serverConfig.value[i], out value); + if (flag7) + { + this.floatOptions[xoptionsDefine] = value; + } + this.ProccessOption(xoptionsDefine, this.GetFloatValue(xoptionsDefine)); + } + else + { + int value2; + bool flag8 = int.TryParse(serverConfig.value[i], out value2); + if (flag8) + { + this.options[xoptionsDefine] = value2; + } + this.ProccessOption(xoptionsDefine, this.GetValue(xoptionsDefine)); + } + } + } + else + { + this.strOptions.Add(xoptionsDefine, serverConfig.value[i]); + } + } + } + catch (ArgumentException) + { + XSingleton.singleton.AddGreenLog(string.Format("'{0}' is not a member of the XOptionsDefine enumeration.", serverConfig.type[i]), null, null, null, null, null); + } + } + } + } + } + + public void RefreshLocalSettings() + { + for (XOptionsDefine xoptionsDefine = XOptionsDefine.OD_START; xoptionsDefine != XOptionsDefine.OD_LOCALSETTING_END; xoptionsDefine++) + { + this.ProccessOption(xoptionsDefine, this.GetValue(xoptionsDefine)); + } + } + + public void LoadSetting() + { + string path = Application.persistentDataPath + "/options.txt"; + bool flag = (int)Application.platform == 7 || (int)Application.platform == 0 || (int)Application.platform == 2; + if (flag) + { + path = Application.dataPath + "/options.txt"; + } + this.options.Clear(); + bool flag2 = !File.Exists(path); + if (!flag2) + { + using (StreamReader streamReader = new StreamReader(path)) + { + Type typeFromHandle = typeof(XOptionsDefine); + string text; + while ((text = streamReader.ReadLine()) != null) + { + string[] array = text.Split(XGlobalConfig.SpaceSeparator); + bool flag3 = array.Length != 2; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Option file format error: ", text, null, null, null, null); + } + else + { + try + { + bool flag4 = XOptionsDocument.pushSettings.ContainsKey(array[0]); + if (flag4) + { + int value = int.Parse(array[1]); + XOptionsDocument.pushSettings[array[0]] = value; + XOptionsDocument.localPushSetting[array[0]] = value; + } + else + { + XOptionsDefine key = (XOptionsDefine)Enum.Parse(typeFromHandle, array[0]); + this.options.Add(key, int.Parse(array[1])); + } + } + catch (ArgumentException) + { + XSingleton.singleton.AddErrorLog(string.Format("'{0}' is not a member of the XOptionsDefine enumeration.", array[0]), null, null, null, null, null); + } + } + } + } + } + } + + public void SaveSetting() + { + try + { + string text = Application.persistentDataPath + "/options.txt"; + bool flag = (int)Application.platform == 7 || (int)Application.platform == 0 || (int)Application.platform == 2; + if (flag) + { + text = Application.dataPath + "/options.txt"; + } + using (StreamWriter streamWriter = new StreamWriter(text)) + { + foreach (KeyValuePair keyValuePair in XOptionsDocument.localPushSetting) + { + streamWriter.Write(keyValuePair.Key); + streamWriter.Write(' '); + streamWriter.WriteLine(keyValuePair.Value); + } + foreach (KeyValuePair keyValuePair2 in this.options) + { + bool flag2 = keyValuePair2.Key >= XOptionsDefine.OD_LOCALSETTING_END; + if (!flag2) + { + streamWriter.Write(keyValuePair2.Key); + streamWriter.Write(' '); + streamWriter.WriteLine(keyValuePair2.Value); + } + } + foreach (KeyValuePair keyValuePair3 in this.floatOptions) + { + bool flag3 = keyValuePair3.Key >= XOptionsDefine.OD_LOCALSETTING_END; + if (!flag3) + { + streamWriter.Write(keyValuePair3.Key); + streamWriter.Write(' '); + streamWriter.WriteLine(keyValuePair3.Value); + } + } + XSingleton.singleton.XPlatform.SetNoBackupFlag(text); + } + } + catch (Exception) + { + XSingleton.singleton.AddErrorLog("Save Setting Error", null, null, null, null, null); + } + } + + public void ReqSwitchAccount() + { + XSingleton.singleton.Close(NetErrCode.Net_NoError); + XSingleton.singleton.AuthorizationSignOut(); + } + + public void ReqSwitchChar() + { + RpcC2M_ReturnToSelectRole rpc = new RpcC2M_ReturnToSelectRole(); + XSingleton.singleton.Send(rpc); + } + + public void ReqCustomerService() + { + XSingleton.singleton.AddLog("CS coming soon!", null, null, null, null, null, XDebugColor.XDebug_None); + } + + public void OpenCustomerService() + { + Dictionary dictionary = new Dictionary(); + RuntimePlatform platform = Application.platform; + if ((int)platform != 8) + { + if ((int)platform != 11) + { + XSingleton.singleton.AddGreenLog("CustomerService-Options", null, null, null, null, null); + } + else + { + dictionary["url"] = XSingleton.singleton.GetValue("CustomerServiceSetAndroid"); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + } + else + { + dictionary["url"] = XSingleton.singleton.GetValue("CustomerServiceSetApple"); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + } + + public void OpenURL(string url) + { + Application.OpenURL(url); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = DlgBase.singleton.IsVisible() && this.View.CurrentTab == OptionsTab.OptionTab && (double)Math.Abs(this.lastSameScreenValue - this.View.uiBehaviour.m_SameScreenBar.value) > 1E-05; + if (flag) + { + this.lastSameScreenValue = this.View.uiBehaviour.m_SameScreenBar.value; + this.View.SameScreenNumChange(this.lastSameScreenValue); + } + bool flag2 = DlgBase.singleton.IsVisible() && this.View.CurrentTab == OptionsTab.OptionTab && (double)Math.Abs(this.lastSound - this.View.uiBehaviour.m_SoundBar.value) > 1E-05; + if (flag2) + { + this.lastSound = this.View.uiBehaviour.m_SoundBar.value; + this.SetValue(XOptionsDefine.BA_SOUND, (int)(this.lastSound * 100f), false); + this.ProccessOption(XOptionsDefine.BA_SOUND, (int)(this.lastSound * 100f)); + } + bool flag3 = DlgBase.singleton.IsVisible() && this.View.CurrentTab == OptionsTab.OptionTab && (double)Math.Abs(this.lastMusic - this.View.uiBehaviour.m_MusicBar.value) > 1E-05; + if (flag3) + { + this.lastMusic = this.View.uiBehaviour.m_MusicBar.value; + this.SetValue(XOptionsDefine.BA_MUSIC, (int)(this.lastMusic * 100f), false); + this.ProccessOption(XOptionsDefine.BA_MUSIC, (int)(this.lastMusic * 100f)); + } + bool flag4 = DlgBase.singleton.IsVisible() && this.View.CurrentTab == OptionsTab.OptionTab && (double)Math.Abs(this.lastVoice - this.View.uiBehaviour.m_VoiceBar.value) > 1E-05; + if (flag4) + { + this.lastVoice = this.View.uiBehaviour.m_VoiceBar.value; + this.SetValue(XOptionsDefine.BA_VOICE, (int)(this.lastVoice * 100f), false); + this.ProccessOption(XOptionsDefine.BA_VOICE, (int)(this.lastVoice * 100f)); + } + } + + private PushSetting.RowData GetPushSettingRow(string option) + { + for (int i = 0; i < XOptionsDocument._pushSettingTable.Table.Length; i++) + { + bool flag = XOptionsDocument._pushSettingTable.Table[i].ConfigKey == option; + if (flag) + { + return XOptionsDocument._pushSettingTable.Table[i]; + } + } + return null; + } + + public void SavePushValue(string option, int value) + { + bool flag = XOptionsDocument.pushSettings.ContainsKey(option); + if (flag) + { + XOptionsDocument.pushSettings[option] = value; + bool flag2 = this.GetPushSettingRow(option).TimeOrSystem == 1u; + if (flag2) + { + XOptionsDocument.localPushSetting[option] = value; + } + else + { + RpcC2G_SetRoleConfig rpcC2G_SetRoleConfig = new RpcC2G_SetRoleConfig(); + rpcC2G_SetRoleConfig.oArg.type = option; + rpcC2G_SetRoleConfig.oArg.value = value.ToString(); + XSingleton.singleton.Send(rpcC2G_SetRoleConfig); + } + } + else + { + XSingleton.singleton.AddErrorLog("not push type ", option, null, null, null, null); + } + } + + private void SaveToCloud(XOptionsDefine option, int value) + { + this.SaveToCloud(option, value.ToString()); + } + + private void SaveToCloud(XOptionsDefine option, string value) + { + bool flag = option > XOptionsDefine.OD_LOCALSETTING_END; + if (flag) + { + RpcC2G_SetRoleConfig rpcC2G_SetRoleConfig = new RpcC2G_SetRoleConfig(); + rpcC2G_SetRoleConfig.oArg.type = option.ToString(); + rpcC2G_SetRoleConfig.oArg.value = value; + XSingleton.singleton.Send(rpcC2G_SetRoleConfig); + } + } + + public bool SetValue(XOptionsDefine option, int value, bool isMustSave = false) + { + bool flag = !isMustSave && this.GetValue(option) == value; + bool result; + if (flag) + { + result = false; + } + else + { + this.options[option] = value; + this.ProccessOption(option, value); + this.SaveToCloud(option, value); + result = true; + } + return result; + } + + public bool SetSliderValue(XOptionsDefine option, float value) + { + bool flag = this.GetFloatValue(option) == value; + bool result; + if (flag) + { + result = false; + } + else + { + this.floatOptions[option] = value; + this.ProccessOption(option, value); + this.SaveToCloud(option, value.ToString()); + result = true; + } + return result; + } + + public bool SetValue(XOptionsDefine option, string value) + { + bool flag = this.GetStrValue(option) == value; + bool result; + if (flag) + { + result = false; + } + else + { + this.strOptions[option] = value; + this.SaveToCloud(option, value); + result = true; + } + return result; + } + + public int GetPushValue(string option) + { + bool flag = XOptionsDocument.pushSettings.ContainsKey(option); + int result; + if (flag) + { + result = XOptionsDocument.pushSettings[option]; + } + else + { + result = 0; + } + return result; + } + + public int GetValue(XOptionsDefine option) + { + int num; + bool flag = this.options.TryGetValue(option, out num); + int result; + if (flag) + { + result = num; + } + else + { + result = this.GetDefaultValue(option); + } + return result; + } + + public float GetFloatValue(XOptionsDefine option) + { + float num; + bool flag = this.floatOptions.TryGetValue(option, out num); + float result; + if (flag) + { + result = num; + } + else + { + result = this.GetDefaultFloatValue(option); + } + return result; + } + + public string GetStrValue(XOptionsDefine option) + { + string text; + bool flag = this.strOptions.TryGetValue(option, out text); + string result; + if (flag) + { + result = text; + } + else + { + result = this.GetDefaultStrValue(option); + } + return result; + } + + private void ProccessOption(XOptionsDefine option, int value) + { + switch (option) + { + case XOptionsDefine.OD_SOUND: + this.openSound = (value == 1); + this.SetBGMVolme(this.openSound ? ((this.lastSound == -1f) ? 1f : this.lastSound) : 0f); + break; + case XOptionsDefine.BA_SOUND: + { + bool flag = this.openSound; + if (flag) + { + this.SetBGMVolme((float)value / 100f); + } + break; + } + case XOptionsDefine.OD_MUSIC: + this.openMusic = (value == 1); + this.SetMuscVolme(this.openMusic ? ((this.lastMusic == -1f) ? 1f : this.lastMusic) : 0f); + break; + case XOptionsDefine.BA_MUSIC: + { + bool flag2 = this.openMusic; + if (flag2) + { + this.SetMuscVolme((float)value / 100f); + } + break; + } + case XOptionsDefine.OD_VOICE: + this.openVoice = (value == 1); + this.SetVoiceVolme(this.openVoice ? ((this.lastVoice == -1f) ? 1f : this.lastVoice) : 0f); + break; + case XOptionsDefine.BA_VOICE: + { + bool flag3 = this.openVoice; + if (flag3) + { + this.SetVoiceVolme((float)value / 100f); + } + break; + } + case (XOptionsDefine)7: + case (XOptionsDefine)8: + case (XOptionsDefine)9: + case (XOptionsDefine)18: + case (XOptionsDefine)19: + case XOptionsDefine.OD_TEAM_USE_PASSWORD: + case XOptionsDefine.OD_3D_TOUCH: + break; + case XOptionsDefine.OD_VOLUME: + { + bool flag4 = this.View != null; + if (flag4) + { + this.View.SetVolume(value); + } + break; + } + case XOptionsDefine.OD_RADIO_WIFI: + XSingleton.singleton.SetChannelAutoPlay(ChatChannelType.ZeroChannel, value == 1); + break; + case XOptionsDefine.OD_RADIO_TEAM: + XSingleton.singleton.SetChannelAutoPlay(ChatChannelType.Team, value == 1); + break; + case XOptionsDefine.OD_RADIO_CAMP: + XSingleton.singleton.SetChannelAutoPlay(ChatChannelType.Camp, value == 1); + break; + case XOptionsDefine.OD_RADIO_PRIVATE: + XSingleton.singleton.SetChannelAutoPlay(ChatChannelType.Friends, value == 1); + break; + case XOptionsDefine.OD_RADIO_PUBLIC: + XSingleton.singleton.SetChannelAutoPlay(ChatChannelType.Guild, value == 1); + break; + case XOptionsDefine.OD_RADIO_WORLD: + XSingleton.singleton.SetChannelAutoPlay(ChatChannelType.World, value == 1); + break; + case XOptionsDefine.OD_RADIO_AUTO_PALY: + XSingleton.singleton.SetChannelAutoPlay(ChatChannelType.Curr, value == 1); + break; + case XOptionsDefine.OD_QUALITY: + this._ProcessQuality(value); + break; + case XOptionsDefine.OD_FLOWERRAIN: + this.Flowerrain = (value == 1); + break; + case XOptionsDefine.OD_SAMESCREENNUM: + XQualitySetting.SetVisibleRoleLevel(value); + break; + case XOptionsDefine.OD_RADIO: + DlgBase.singleton.Process(value == 1); + break; + case XOptionsDefine.OD_SMOOTH: + XSingleton.singleton.SetUIOptOption(false, value == 1, false, true); + break; + case XOptionsDefine.OD_RESOLUTION: + XQualitySetting.SetResolution((XQualitySetting.EResolution)value, false); + break; + case XOptionsDefine.OD_POWERSAVE: + this._ProcessPowerSave(value); + break; + case XOptionsDefine.OD_NOTIFICATION: + this._ProcessNotification(value); + break; + case XOptionsDefine.OD_BLOCKOTHERPLAYERS: + this._ProcessBlockOtherPlayers(value); + break; + default: + switch (option) + { + case XOptionsDefine.OD_Gyro: + XSingleton.singleton.Enabled = (value == 1); + break; + case XOptionsDefine.OD_Shield_Skill_Fx: + XSingleton.singleton.UpdateShieldOperation(); + break; + case XOptionsDefine.OD_Shield_Summon: + XSingleton.singleton.UpdateShieldOperation(); + break; + case XOptionsDefine.OD_Shield_My_Skill_Fx: + XSingleton.singleton.UpdateShieldOperation(); + break; + } + break; + } + } + + private void ProccessOption(XOptionsDefine option, float value) + { + } + + private string GetDefaultStrValue(XOptionsDefine option) + { + return string.Empty; + } + + private float GetDefaultFloatValue(XOptionsDefine option) + { + string configurationDefault = this.GetConfigurationDefault(option); + bool flag = string.IsNullOrEmpty(configurationDefault); + float result; + if (flag) + { + result = 0f; + } + else + { + result = float.Parse(configurationDefault); + } + return result; + } + + private int GetDefaultValue(XOptionsDefine option) + { + int result; + switch (option) + { + case XOptionsDefine.OD_QUALITY: + result = XQualitySetting.GetDefaultQualityLevel(); + break; + case XOptionsDefine.OD_FLOWERRAIN: + result = ((XQualitySetting.GetDefaultQualityLevel() == XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.ELow)) ? 0 : 1); + break; + case XOptionsDefine.OD_SAMESCREENNUM: + result = XQualitySetting.GetDefalutVisibleRoleLevel(); + break; + default: + if (option != XOptionsDefine.OD_RESOLUTION) + { + if (option != XOptionsDefine.OD_TAILCAMERA_SPEED) + { + string configurationDefault = this.GetConfigurationDefault(option); + bool flag = string.IsNullOrEmpty(configurationDefault); + if (flag) + { + result = 0; + } + else + { + result = int.Parse(configurationDefault); + } + } + else + { + bool flag2 = XSingleton.singleton.Player != null; + if (flag2) + { + result = XSingleton.singleton.TailCameraSpeed; + } + else + { + result = 50; + } + } + } + else + { + result = XQualitySetting.GetDefalutResolution(); + } + break; + } + return result; + } + + public bool IsShow3DTouch() + { + return (int)Application.platform == 8 && XSingleton.singleton.XPlatform.CheckStatus("Is_3DTouch_Supported", ""); + } + + private void _ProcessPowerSave(int value) + { + } + + private void _ProcessNotification(int value) + { + XSingleton.singleton.XPlatform.SetPushStatus(true); + } + + private void _ProcessQuality(int value) + { + XQualitySetting.SetQuality(value, false); + XQualitySetting.PostSetQuality(); + XQualitySetting.PostSetting(); + } + + private void _ProcessBlockOtherPlayers(int value) + { + bool flag = XSingleton.singleton.CurrentStage != null && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + XSingleton.singleton.ToggleOtherPlayers(value == 1); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.InitServerConfig(arg.PlayerInfo.config); + } + + private bool OnChatVoiceHandled(XEventArgs e) + { + XAudioOperationArgs xaudioOperationArgs = e as XAudioOperationArgs; + bool isAudioOn = xaudioOperationArgs.IsAudioOn; + if (isAudioOn) + { + float volume = 1f; + XApolloDocument specificDocument = XDocuments.GetSpecificDocument(XApolloDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + bool isRealtimeVoiceOn = specificDocument.IsRealtimeVoiceOn; + if (isRealtimeVoiceOn) + { + volume = (float)XSingleton.singleton.GetInt("SetMusicVol") / 100f; + } + } + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl", volume); + } + else + { + XSingleton.singleton.SetBusStatuMute("bus:/MainGroupControl", 0f); + } + return true; + } + + public void SetBGMVolme(float vol) + { + this.bgmVolme = Mathf.Clamp01(vol); + XSingleton.singleton.SetBGMVolme(this.bgmVolme); + } + + public void SetMuscVolme(float vol) + { + this.mscVolme = Mathf.Clamp01(vol); + XSingleton.singleton.SetMscVolme(this.mscVolme); + } + + public void SetVoiceVolme(float vol) + { + this.voiceVolme = vol; + } + + public string GetConfigurationDefault(XOptionsDefine option) + { + XOptionsDocument.OptionData optionData; + bool flag = XOptionsDocument.optionsDefault.TryGetValue(option, out optionData); + string result; + if (flag) + { + int num = optionData.NeedSight ? this.GetValue(XOptionsDefine.OD_VIEW) : 1; + bool flag2 = optionData.NeedProfession[num - 1]; + int num2; + if (flag2) + { + bool flag3 = XSingleton.singleton.XPlayerData == null; + if (flag3) + { + return null; + } + num2 = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.XPlayerData.Profession) % 10; + } + else + { + num2 = 1; + } + result = optionData.val[num - 1, num2 - 1]; + } + else + { + result = null; + } + return result; + } + + public bool SetBattleOptionValue() + { + XSingleton.singleton.AddGreenLog("__RefreshBattleOptionValue", null, null, null, null, null); + XOperationMode value = (XOperationMode)this.GetValue(XOptionsDefine.OD_VIEW); + XSingleton.singleton.OperationMode = value; + XSingleton.singleton.UpdateDefaultCameraOperationByScene(); + bool flag = value == XOperationMode.X25D; + if (flag) + { + XSingleton.singleton.TailCameraSpeed = (int)this.GetFloatValue(XOptionsDefine.OD_TailCameraSpeed25D); + XSingleton.singleton.ManualCameraSpeedXInBattle = this.GetFloatValue(XOptionsDefine.OD_ManualCameraSpeedXInBattle25D); + } + else + { + bool flag2 = value == XOperationMode.X3D; + if (flag2) + { + XSingleton.singleton.TailCameraSpeed = (int)this.GetFloatValue(XOptionsDefine.OD_TailCameraSpeed3D); + XSingleton.singleton.ManualCameraSpeedXInBattle = this.GetFloatValue(XOptionsDefine.OD_ManualCameraSpeedXInBattle3D); + bool flag3 = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag3) + { + XSingleton.singleton.AllowVertical = (this.GetValue(XOptionsDefine.OD_Vertical3D) == 1); + } + } + else + { + bool flag4 = value == XOperationMode.X3D_Free; + if (flag4) + { + XSingleton.singleton.TailCameraSpeed = (int)this.GetFloatValue(XOptionsDefine.OD_TailCameraSpeed3DFree); + XSingleton.singleton.ManualCameraSpeedXInBattle = this.GetFloatValue(XOptionsDefine.OD_ManualCameraSpeedXInBattle3DFree); + bool flag5 = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag5) + { + XSingleton.singleton.AllowVertical = (this.GetValue(XOptionsDefine.OD_Vertical3DFree) == 1); + } + XSingleton.singleton.CameraDistance = this.GetFloatValue(XOptionsDefine.OD_Distance3DFree); + } + } + } + XOperateMode value2 = (XOperateMode)this.GetValue(XOptionsDefine.OD_OPERATE); + int num = this.GetValue(XOptionsDefine.OD_OPERATE) - 1; + XSingleton.singleton.ManualCameraSpeedXInHall = this.GetFloatValue(XOptionsDefine.ManualCameraSpeedXInHallAutoLock + num); + XSingleton.singleton.ManualCameraDampXInHall = this.GetFloatValue(XOptionsDefine.ManualCameraDampXInHallAutoLock + num); + XSingleton.singleton.ManualCameraSpeedYInHall = this.GetFloatValue(XOptionsDefine.ManualCameraSpeedYInHallAutoLock + num); + XSingleton.singleton.ManualCameraDampYInHall = this.GetFloatValue(XOptionsDefine.ManualCameraDampYInHallAutoLock + num); + XSingleton.singleton.ManualCameraDampXInBattle = this.GetFloatValue(XOptionsDefine.ManualCameraDampXInBattleAutoLock + num); + XSingleton.singleton.ManualCameraSpeedYInBattle = this.GetFloatValue(XOptionsDefine.ManualCameraSpeedYInBattleAutoLock + num); + XSingleton.singleton.ManualCameraDampYInBattle = this.GetFloatValue(XOptionsDefine.ManualCameraDampYInBattleAutoLock + num); + XSingleton.singleton.RangeWeight = (int)this.GetFloatValue(XOptionsDefine.RangeWeightAutoLock + num); + XSingleton.singleton.BossWeight = (int)this.GetFloatValue(XOptionsDefine.BossWeightAutoLock + num); + XSingleton.singleton.EliteWeight = (int)this.GetFloatValue(XOptionsDefine.EliteWeightAutoLock + num); + XSingleton.singleton.EnemyWeight = (int)this.GetFloatValue(XOptionsDefine.EnemyWeightAutoLock + num); + XSingleton.singleton.PupetWeight = (int)this.GetFloatValue(XOptionsDefine.PupetWeightAutoLock + num); + XSingleton.singleton.RoleWeight = (int)this.GetFloatValue(XOptionsDefine.RoleWeightAutoLock + num); + XSingleton.singleton.ImmortalWeight = (int)this.GetFloatValue(XOptionsDefine.ImmortalWeightAutoLock + num); + XSingleton.singleton.WithinScope = this.GetFloatValue(XOptionsDefine.WithinScopeAutoLock + num); + XSingleton.singleton.WithinRange = this.GetFloatValue(XOptionsDefine.WithinRangeAutoLock + num); + XSingleton.singleton.AssistAngle = this.GetFloatValue(XOptionsDefine.AssistAngleAutoLock + num); + XSingleton.singleton.ProfRange = this.GetFloatValue(XOptionsDefine.ProfRangeAutoLock + num); + XSingleton.singleton.ProfRangeLong = this.GetFloatValue(XOptionsDefine.ProfRangeLongAutoLock + num); + XSingleton.singleton.ProfRangeAll = this.GetFloatValue(XOptionsDefine.ProfRangeAllAutoLock + num); + XSingleton.singleton.ProfScope = (int)this.GetFloatValue(XOptionsDefine.ProfScopeAutoLock + num); + XSingleton.singleton.CameraAdjustScope = (int)this.GetFloatValue(XOptionsDefine.CameraAdjustScopeAutoLock + num); + XSingleton.singleton.UpdateOperationMode(); + XBattleSkillDocument specificDocument = XDocuments.GetSpecificDocument(XBattleSkillDocument.uuID); + bool flag6 = specificDocument.BattleView != null && specificDocument.BattleView.IsVisible(); + if (flag6) + { + specificDocument.BattleView.OnSetOptionsValue(); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOptionsDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XOptionsDocument.cs.meta new file mode 100644 index 00000000..102aaf95 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 205bcba219046004cbf13f4b6f14d59c +timeCreated: 1611403406 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOptionsView.cs b/Client/Assets/Scripts/XMainClient/XOptionsView.cs new file mode 100644 index 00000000..a71f2dff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsView.cs @@ -0,0 +1,1094 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOptionsView : DlgBase + { + public OptionsTab CurrentTab + { + get + { + return this.m_CurrentTab; + } + } + + public override string fileName + { + get + { + return "GameSystem/SettingDlg"; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + public override bool pushstack + { + get + { + return false; + } + } + + private XOptionsDocument _doc = null; + + public Action OnOptionClose; + + private OptionsTab m_CurrentTab; + + private bool _bDirty = false; + + public OptionsTab prefabTab = OptionsTab.InfoTab; + + private XOptionsBattleDetailHandler m_DetailHandler; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + this._doc.View = this; + base.uiBehaviour.m_PushWrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.PushItemUpdate1)); + base.uiBehaviour.m_PushWrapContent2.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.PushItemUpdate2)); + DlgHandlerBase.EnsureCreate(ref this.m_DetailHandler, base.uiBehaviour.m_BattlePanel, null, true); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_InfoTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnInfoCheckBoxClicked)); + base.uiBehaviour.m_OptionTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnOptionCheckBoxClicked)); + base.uiBehaviour.m_PushTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnPushCheckboxClicked)); + base.uiBehaviour.m_CameraTab.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnCameraCheckboxClicked)); + base.uiBehaviour.m_VipBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._VipBtnClicked)); + base.uiBehaviour.m_PersonalCareerBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._PersonalCareerBtnClicked)); + base.uiBehaviour.m_Wechat.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnWechatPrivilegeClicked)); + base.uiBehaviour.m_Guest.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnGuestPrivilegeClicked)); + base.uiBehaviour.m_TitleBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._RankBtnClicked)); + base.uiBehaviour.m_DesignationBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._TitleBtnClicked)); + base.uiBehaviour.m_AchievementBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this._AchievementBtnClicked)); + base.uiBehaviour.m_SwitchAccount.RegisterClickEventHandler(new ButtonClickEventHandler(this._SwitchAccountClicked)); + base.uiBehaviour.m_SwitchChar.RegisterClickEventHandler(new ButtonClickEventHandler(this._SwitchCharClicked)); + base.uiBehaviour.m_CustomerService.RegisterClickEventHandler(new ButtonClickEventHandler(this._CustomerServiceClicked)); + base.uiBehaviour.m_ServiceTerms.RegisterClickEventHandler(new ButtonClickEventHandler(this._ServiceTermsClicked)); + base.uiBehaviour.m_ServiceAgreement.RegisterClickEventHandler(new ButtonClickEventHandler(this._ServiceAgreementClicked)); + base.uiBehaviour.m_PrivacyTerms.RegisterClickEventHandler(new ButtonClickEventHandler(this._PrivacyTermsClicked)); + base.uiBehaviour.m_Changename.RegisterClickEventHandler(new ButtonClickEventHandler(this._ChangeNameClicked)); + base.uiBehaviour.m_GameSound.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_SOUND)); + base.uiBehaviour.m_GameSound.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_GameMusic.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_MUSIC)); + base.uiBehaviour.m_GameMusic.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_GameVoice.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_VOICE)); + base.uiBehaviour.m_GameVoice.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_GameVolume.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_VOLUME)); + base.uiBehaviour.m_GameVolume.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_RadioWifi.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_RADIO_WIFI)); + base.uiBehaviour.m_RadioWifi.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_RadioTeam.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_RADIO_TEAM)); + base.uiBehaviour.m_RadioTeam.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_RadioPrivate.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_RADIO_PRIVATE)); + base.uiBehaviour.m_RadioPrivate.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_RadioPublic.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_RADIO_PUBLIC)); + base.uiBehaviour.m_RadioPublic.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_RadioWorld.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_RADIO_WORLD)); + base.uiBehaviour.m_RadioWorld.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_RadioAutoPlay.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_RADIO_AUTO_PALY)); + base.uiBehaviour.m_RadioAutoPlay.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_GameSirBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OpenGameSirClick)); + base.uiBehaviour.m_Smooth.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_SMOOTH)); + base.uiBehaviour.m_Smooth.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_ResolutionHigh.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.EResolution.EHeigh)); + base.uiBehaviour.m_ResolutionHigh.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._ResolutionCheckBoxChanged)); + base.uiBehaviour.m_ResolutionNormal.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.EResolution.ENormal)); + base.uiBehaviour.m_ResolutionNormal.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._ResolutionCheckBoxChanged)); + base.uiBehaviour.m_ResolutionLow.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.EResolution.ELow)); + base.uiBehaviour.m_ResolutionLow.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._ResolutionCheckBoxChanged)); + base.uiBehaviour.m_LowPress.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.ELow)); + base.uiBehaviour.m_LowPress.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._QualityCheckBoxChanged)); + base.uiBehaviour.m_MidPress.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.ENormal)); + base.uiBehaviour.m_MidPress.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._QualityCheckBoxChanged)); + base.uiBehaviour.m_HighPress.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.EHeigh)); + base.uiBehaviour.m_HighPress.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._QualityCheckBoxChanged)); + base.uiBehaviour.m_SuperHighPress.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.EVeryHeigh)); + base.uiBehaviour.m_SuperHighPress.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._QualityCheckBoxChanged)); + base.uiBehaviour.m_LowPress2.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.ELow)); + base.uiBehaviour.m_LowPress2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._QualityCheckBoxChanged)); + base.uiBehaviour.m_MidPress2.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.ENormal)); + base.uiBehaviour.m_MidPress2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._QualityCheckBoxChanged)); + base.uiBehaviour.m_HighPress2.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.EHeigh)); + base.uiBehaviour.m_HighPress2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._QualityCheckBoxChanged)); + base.uiBehaviour.m_Flowerrain.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_FLOWERRAIN)); + base.uiBehaviour.m_Flowerrain.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_3DTouch.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_3D_TOUCH)); + base.uiBehaviour.m_3DTouch.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_Radio.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOptionsDefine.OD_RADIO)); + base.uiBehaviour.m_Radio.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._SingleCheckBoxChanged)); + base.uiBehaviour.m_QQOpenVipBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnQQOpenVipBtnClicked)); + base.uiBehaviour.m_QQGameCenter.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnQQGameCenterClicked)); + base.uiBehaviour.m_WXGameCenter.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnWXGameCenterClicked)); + base.uiBehaviour.m_PrerogativeBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPrerogativeBtnClicked)); + } + + private bool OpenGameSirClick(IXUIButton btn) + { + XSingleton.singleton.AddGreenLog("ClickGameSirClick", null, null, null, null, null); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool OnPrerogativeBtnClicked(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private bool OnQQOpenVipBtnClicked(IXUIButton btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + XPlatformAbilityDocument.Doc.OpenQQVipRechargeH5(); + return true; + } + + private void OnQQGameCenterClicked(IXUISprite btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + + private void OnWXGameCenterClicked(IXUISprite btn) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + + protected override void OnShow() + { + base.OnShow(); + this.OnTabChanged(this.prefabTab); + this.m_uiBehaviour.m_VipBtn.SetVisible(false); + this.m_uiBehaviour.m_PersonalCareerBtn.SetVisible(XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Personal_Career)); + this.m_uiBehaviour.m_Quality.gameObject.SetActive(XQualitySetting.SupportHighEffect()); + this.m_uiBehaviour.m_Quality2.gameObject.SetActive(!XQualitySetting.SupportHighEffect()); + this.m_uiBehaviour.m_GameSirBtn.SetVisible(XSingleton.singleton.GameSirControl != null && XSingleton.singleton.GameSirControl.IsOpen); + this._bDirty = false; + XPlatformAbilityDocument.Doc.QueryQQVipInfo(); + } + + protected override void OnHide() + { + this.m_DetailHandler.SaveOption(); + bool bDirty = this._bDirty; + if (bDirty) + { + this._doc.SaveSetting(); + this._bDirty = false; + } + bool flag = this.m_DetailHandler.bDirty || XSingleton.singleton.OperationMode != (XOperationMode)this._doc.GetValue(XOptionsDefine.OD_VIEW); + if (flag) + { + this._doc.SetBattleOptionValue(); + this.m_DetailHandler.bDirty = false; + } + this.m_uiBehaviour.m_PortraitTex.SetTexturePath(""); + bool flag2 = this.OnOptionClose != null; + if (flag2) + { + this.OnOptionClose(); + } + base.OnHide(); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_DetailHandler); + this._doc.View = null; + base.OnUnload(); + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool OnInfoCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsTab.InfoTab); + result = true; + } + return result; + } + + private bool OnOptionCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsTab.OptionTab); + result = true; + } + return result; + } + + private bool OnSystemCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsTab.BaseTab); + result = true; + } + return result; + } + + private bool OnNotifyCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsTab.NotifyTab); + result = true; + } + return result; + } + + private bool OnVoiceCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsTab.VoiceTab); + result = true; + } + return result; + } + + private bool OnDisplayCheckBoxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsTab.DisplayTab); + result = true; + } + return result; + } + + public bool OnPushCheckboxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsTab.PushTab); + result = true; + } + return result; + } + + public bool OnCameraCheckboxClicked(IXUICheckBox box) + { + bool flag = !box.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this.OnTabChanged(OptionsTab.CameraTab); + result = true; + } + return result; + } + + public void OnTabChanged(OptionsTab handler) + { + bool flag = this.m_CurrentTab == OptionsTab.CameraTab; + if (flag) + { + this.m_DetailHandler.SaveOption(); + } + this.m_CurrentTab = handler; + this.prefabTab = this.m_CurrentTab; + switch (this.m_CurrentTab) + { + case OptionsTab.InfoTab: + this.ShowUserInfoPanel(); + break; + case OptionsTab.OptionTab: + this.ShowSettingPanel(); + break; + case OptionsTab.BaseTab: + this.ShowBasePanel(); + break; + case OptionsTab.NotifyTab: + this.ShowNotifyPanel(); + break; + case OptionsTab.VoiceTab: + this.ShowVoicePanel(); + break; + case OptionsTab.DisplayTab: + this.ShowDisplayPanel(); + break; + case OptionsTab.PushTab: + this.ShowPushPanel(); + break; + case OptionsTab.CameraTab: + this.ShowCameraPanel(); + break; + } + } + + private void CloseAllPanel() + { + base.uiBehaviour.m_UserInfoPanel.gameObject.SetActive(false); + base.uiBehaviour.m_SettingPanel.gameObject.SetActive(false); + base.uiBehaviour.m_PushPanel.gameObject.SetActive(false); + this.m_DetailHandler.CloseUI(); + } + + public void ShowUserInfoPanel() + { + base.uiBehaviour.m_InfoTab.bChecked = true; + this.CloseAllPanel(); + base.uiBehaviour.m_UserInfoPanel.gameObject.SetActive(true); + bool flag = XSingleton.singleton.AccountType == LoginType.LGOIN_WECHAT_PF && XSingleton.singleton.playerInfo != null && XSingleton.singleton.playerInfo.data.nickName != null; + if (flag) + { + bool flag2 = XSingleton.singleton.playerInfo.data.nickName.Length <= 8; + if (flag2) + { + base.uiBehaviour.m_Account.InputText = XSingleton.singleton.playerInfo.data.nickName; + } + else + { + string arg = XSingleton.singleton.playerInfo.data.nickName.Substring(0, 6); + base.uiBehaviour.m_Account.InputText = string.Format("{0}...", arg); + } + } + else + { + base.uiBehaviour.m_Account.InputText = XSingleton.singleton.XPlayerData.Name; + } + base.uiBehaviour.m_Tq.SetSprite(XWelfareDocument.GetSelfMemberPrivilegeIconName()); + base.uiBehaviour.m_UID.SetText(string.Format("UID {0}", XSingleton.singleton.XPlayerData.ShortId.ToString())); + base.uiBehaviour.m_Server.SetText(XSingleton.singleton.Server); + int profID = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.Player.PlayerAttributes.Profession); + base.uiBehaviour.m_Portrait.SetSprite(XSingleton.singleton.GetProfHeadIcon(profID)); + bool flag3 = XSingleton.singleton.playerInfo != null; + if (flag3) + { + string pictureLarge = XSingleton.singleton.playerInfo.data.pictureLarge; + XSingleton.singleton.Load(pictureLarge, this.m_uiBehaviour.m_PortraitTex, this.m_uiBehaviour); + } + else + { + XSingleton.singleton.Load(string.Empty, this.m_uiBehaviour.m_PortraitTex, this.m_uiBehaviour); + } + this.LoignType(); + base.uiBehaviour.m_Level.SetText(XSingleton.singleton.XPlayerData.Level.ToString()); + ulong exp = XSingleton.singleton.XPlayerData.Exp; + ulong maxExp = XSingleton.singleton.XPlayerData.MaxExp; + base.uiBehaviour.m_ExpNum.SetText(string.Format("{0}/{1}", exp, maxExp)); + base.uiBehaviour.m_ExpBar.value = exp / maxExp; + uint titleID = XSingleton.singleton.XPlayerData.TitleID; + base.uiBehaviour.m_Title.InputText = ((titleID == 0u) ? XSingleton.singleton.GetString("NONE") : XTitleDocument.GetTitleWithFormat(titleID, "")); + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + base.uiBehaviour.m_Designation.InputText = specificDocument.GetMyCoverDesignation(); + bool flag4 = specificDocument.achieveSurveyInfo == null; + if (flag4) + { + specificDocument.FetchAchieveSurvey(); + base.uiBehaviour.m_AchievementLabel.SetText(string.Format("", new object[0])); + } + else + { + this.SetAchievementLabel(); + } + XGuildDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument2.bInGuild; + if (bInGuild) + { + base.uiBehaviour.m_GuildIcon.SetSprite(XGuildDocument.GetPortraitName(specificDocument2.BasicData.portraitIndex), "Social/Guild", false); + } + else + { + base.uiBehaviour.m_GuildIcon.SetSprite("Role_icon_gh", "GameSystem/SysCommon", false); + } + string text = this.DealEmptyString(specificDocument2.BasicData.guildName); + base.uiBehaviour.m_GuildName.SetText(text); + text = this.DealEmptyString(XGuildDocument.GuildPP.GetPositionName(specificDocument2.Position, false)); + base.uiBehaviour.m_Identity.SetText(string.Format("{0} {1}", XSingleton.singleton.GetString("OPTION_IDENTITY"), text)); + this.ShowQQVipInfo(); + this.ShowQQWXGameCenterLaunchInfo(); + XMilitaryRankDocument specificDocument3 = XDocuments.GetSpecificDocument(XMilitaryRankDocument.uuID); + MilitaryRankByExploit.RowData byMilitaryRank = specificDocument3.MilitaryReader.GetByMilitaryRank(specificDocument3.MyMilitaryRecord.military_rank); + bool flag5 = byMilitaryRank != null; + if (flag5) + { + base.uiBehaviour.m_MilitaryIcon.spriteName = byMilitaryRank.Icon; + base.uiBehaviour.m_MilitaryName.SetText(byMilitaryRank.Name); + } + } + + public void ShowQQVipInfo() + { + QQVipInfoClient qqvipInfo = XPlatformAbilityDocument.Doc.QQVipInfo; + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP); + if (flag) + { + XSingleton.singleton.AddLog("[XOptionsView] FunctionId_QQVip open", null, null, null, null, null, XDebugColor.XDebug_None); + } + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP) && qqvipInfo != null; + if (flag2) + { + bool flag3 = (int)Application.platform == 11; + if (flag3) + { + base.uiBehaviour.m_QQOpenVipBtn.SetVisible(true); + IXUILabel ixuilabel = base.uiBehaviour.m_QQOpenVipBtn.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel; + bool flag4 = !qqvipInfo.is_vip; + if (flag4) + { + ixuilabel.SetText(XSingleton.singleton.GetString("QQVIP_OPEN_QQVIP")); + } + else + { + bool flag5 = qqvipInfo.is_vip && !qqvipInfo.is_svip; + if (flag5) + { + ixuilabel.SetText(XSingleton.singleton.GetString("QQVIP_OPEN_SVIP")); + } + else + { + bool is_svip = qqvipInfo.is_svip; + if (is_svip) + { + ixuilabel.SetText(XSingleton.singleton.GetString("QQVIP_RENEW_SVIP")); + } + } + } + } + else + { + base.uiBehaviour.m_QQOpenVipBtn.SetVisible(false); + } + base.uiBehaviour.m_QQVipIcon.SetActive(qqvipInfo.is_vip && !qqvipInfo.is_svip); + base.uiBehaviour.m_QQSVipIcon.SetActive(qqvipInfo.is_svip); + } + else + { + base.uiBehaviour.m_QQVipIcon.SetActive(false); + base.uiBehaviour.m_QQSVipIcon.SetActive(false); + base.uiBehaviour.m_QQOpenVipBtn.SetVisible(false); + } + } + + public void ShowQQWXGameCenterLaunchInfo() + { + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege); + if (flag) + { + XSingleton.singleton.AddLog("[XOptionsView] FunctionId_StartPrivilege open", null, null, null, null, null, XDebugColor.XDebug_None); + } + StartUpType launchTypeServerInfo = XSingleton.singleton.GetLaunchTypeServerInfo(); + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege) && launchTypeServerInfo == StartUpType.StartUp_QQ; + if (flag2) + { + base.uiBehaviour.m_QQGameCenter.SetVisible(true); + } + else + { + base.uiBehaviour.m_QQGameCenter.SetVisible(false); + } + bool flag3 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege) && launchTypeServerInfo == StartUpType.StartUp_WX; + if (flag3) + { + base.uiBehaviour.m_WXGameCenter.SetVisible(true); + } + else + { + base.uiBehaviour.m_WXGameCenter.SetVisible(false); + } + } + + public void ShowSettingPanel() + { + base.uiBehaviour.m_OptionTab.bChecked = true; + this.CloseAllPanel(); + base.uiBehaviour.m_SettingPanel.gameObject.SetActive(true); + base.uiBehaviour.m_GameSound.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_SOUND)); + base.uiBehaviour.m_GameMusic.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_MUSIC)); + base.uiBehaviour.m_GameVoice.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_VOICE)); + base.uiBehaviour.m_Flowerrain.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_FLOWERRAIN)); + base.uiBehaviour.m_Radio.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_RADIO)); + base.uiBehaviour.m_3DTouch.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_3D_TOUCH)); + base.uiBehaviour.m_3DTouch.gameObject.SetActive(this._doc.IsShow3DTouch()); + base.uiBehaviour.m_GameVolume.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_VOLUME)); + base.uiBehaviour.m_RadioWifi.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_RADIO_WIFI)); + base.uiBehaviour.m_RadioTeam.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_RADIO_TEAM)); + base.uiBehaviour.m_RadioPrivate.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_RADIO_PRIVATE)); + base.uiBehaviour.m_RadioPublic.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_RADIO_PUBLIC)); + base.uiBehaviour.m_RadioWorld.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_RADIO_WORLD)); + base.uiBehaviour.m_RadioAutoPlay.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_RADIO_AUTO_PALY)); + base.uiBehaviour.m_Smooth.bChecked = Convert.ToBoolean(this._doc.GetValue(XOptionsDefine.OD_SMOOTH)); + int value = this._doc.GetValue(XOptionsDefine.OD_RESOLUTION); + XQualitySetting.EResolution eresolution = (XQualitySetting.EResolution)value; + bool flag = eresolution == XQualitySetting.EResolution.EHeigh; + if (flag) + { + base.uiBehaviour.m_ResolutionHigh.bChecked = true; + } + else + { + bool flag2 = eresolution == XQualitySetting.EResolution.ENormal; + if (flag2) + { + base.uiBehaviour.m_ResolutionNormal.bChecked = true; + } + else + { + bool flag3 = eresolution == XQualitySetting.EResolution.ELow; + if (flag3) + { + base.uiBehaviour.m_ResolutionLow.bChecked = true; + } + else + { + base.uiBehaviour.m_ResolutionHigh.bChecked = true; + } + } + } + int value2 = this._doc.GetValue(XOptionsDefine.OD_QUALITY); + XQualitySetting.ESetting esetting = (XQualitySetting.ESetting)value2; + bool flag4 = esetting == XQualitySetting.ESetting.ELow; + if (flag4) + { + base.uiBehaviour.m_LowPress.bChecked = true; + base.uiBehaviour.m_LowPress2.bChecked = true; + } + else + { + bool flag5 = esetting == XQualitySetting.ESetting.ENormal; + if (flag5) + { + base.uiBehaviour.m_MidPress.bChecked = true; + base.uiBehaviour.m_MidPress2.bChecked = true; + } + else + { + bool flag6 = esetting == XQualitySetting.ESetting.EHeigh; + if (flag6) + { + base.uiBehaviour.m_HighPress.bChecked = true; + base.uiBehaviour.m_HighPress2.bChecked = true; + } + else + { + bool flag7 = esetting == XQualitySetting.ESetting.EVeryHeigh; + if (flag7) + { + base.uiBehaviour.m_SuperHighPress.bChecked = true; + } + else + { + base.uiBehaviour.m_HighPress.bChecked = true; + } + } + } + } + int num; + int num2; + XQualitySetting.GetDefalutVisibleRoleCount(out num, out num2); + base.uiBehaviour.m_SameScreenMinT.SetText(num.ToString()); + base.uiBehaviour.m_SameScreenMaxT.SetText(num2.ToString()); + base.uiBehaviour.m_SameScreenBar.value = Mathf.InverseLerp(0f, (float)XQualitySetting.veryHighLevel, (float)this._doc.GetValue(XOptionsDefine.OD_SAMESCREENNUM)); + base.uiBehaviour.m_SoundBar.value = Mathf.Clamp01((float)this._doc.GetValue(XOptionsDefine.BA_SOUND) / 100f); + base.uiBehaviour.m_MusicBar.value = Mathf.Clamp01((float)this._doc.GetValue(XOptionsDefine.BA_MUSIC) / 100f); + base.uiBehaviour.m_VoiceBar.value = Mathf.Clamp01((float)this._doc.GetValue(XOptionsDefine.BA_VOICE) / 100f); + } + + public void ShowCameraPanel() + { + base.uiBehaviour.m_CameraTab.bChecked = true; + this.CloseAllPanel(); + this.m_DetailHandler.ShowUI(OptionsBattleTab.CameraTab); + } + + public void ShowPushPanel() + { + base.uiBehaviour.m_PushTab.bChecked = true; + this.CloseAllPanel(); + base.uiBehaviour.m_PushPanel.gameObject.SetActive(true); + base.uiBehaviour.m_PushWrapContent.SetContentCount(XOptionsDocument._pushSetting1.Count, false); + base.uiBehaviour.m_PushWrapContent2.SetContentCount(XOptionsDocument._pushSetting2.Count, false); + } + + private void PushItemUpdate1(Transform t, int index) + { + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Date").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("Time").GetComponent("XUILabel") as IXUILabel; + IXUICheckBox ixuicheckBox = t.Find("toggle").GetComponent("XUICheckBox") as IXUICheckBox; + List pushSetting = XOptionsDocument._pushSetting1; + bool flag = index < pushSetting.Count; + if (flag) + { + PushSetting.RowData rowData = pushSetting[index]; + ixuilabel.SetText(rowData.ConfigName); + ixuilabel2.SetText(string.IsNullOrEmpty(rowData.WeekDay) ? string.Empty : XStringDefineProxy.GetString(rowData.WeekDay.ToString())); + ixuilabel3.SetText(rowData.Time); + ixuicheckBox.bChecked = Convert.ToBoolean(this._doc.GetPushValue(rowData.ConfigKey)); + ixuicheckBox.ID = (ulong)rowData.Type; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnPushToggleClick)); + } + } + + public void PushItemUpdate2(Transform t, int index) + { + IXUILabel ixuilabel = t.Find("Label").GetComponent("XUILabel") as IXUILabel; + IXUICheckBox ixuicheckBox = t.GetComponent("XUICheckBox") as IXUICheckBox; + List pushSetting = XOptionsDocument._pushSetting2; + bool flag = index < pushSetting.Count; + if (flag) + { + PushSetting.RowData rowData = pushSetting[index]; + ixuilabel.SetText(rowData.ConfigName); + ixuicheckBox.bChecked = Convert.ToBoolean(this._doc.GetPushValue(rowData.ConfigKey)); + ixuicheckBox.ID = (ulong)rowData.Type; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnPushToggleClick)); + } + } + + private bool OnPushToggleClick(IXUICheckBox box) + { + PushSetting.RowData[] table = XOptionsDocument._pushSettingTable.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = (ulong)table[i].Type == box.ID; + if (flag) + { + this._doc.SavePushValue(table[i].ConfigKey, box.bChecked ? 1 : 0); + this._bDirty = true; + } + } + return true; + } + + public bool _ChangeNameClicked(IXUIButton btn) + { + DlgBase.singleton.ShowRenameSystem(XRenameDocument.RenameType.PLAYER_NAME_COST); + return true; + } + + public void ShowBasePanel() + { + this.ShowSettingPanel(); + base.uiBehaviour.m_SettingPanelScrollView.SetPosition(0f); + } + + public void ShowNotifyPanel() + { + this.ShowSettingPanel(); + base.uiBehaviour.m_SettingPanelScrollView.SetPosition(0f); + } + + public void ShowVoicePanel() + { + this.ShowSettingPanel(); + base.uiBehaviour.m_SettingPanelScrollView.SetPosition(1f); + } + + public void ShowDisplayPanel() + { + this.ShowSettingPanel(); + base.uiBehaviour.m_SettingPanelScrollView.SetPosition(0f); + } + + private void LoignType() + { + base.uiBehaviour.m_Wechat.gameObject.SetActive(false); + base.uiBehaviour.m_Guest.gameObject.SetActive(false); + } + + public void SetVolume(int value) + { + bool bChecked = value == 1; + base.uiBehaviour.m_RadioWifi.bChecked = bChecked; + base.uiBehaviour.m_RadioTeam.bChecked = bChecked; + base.uiBehaviour.m_RadioPrivate.bChecked = bChecked; + base.uiBehaviour.m_RadioPublic.bChecked = bChecked; + base.uiBehaviour.m_RadioWorld.bChecked = bChecked; + base.uiBehaviour.m_RadioAutoPlay.bChecked = bChecked; + bool flag = this._doc.SetValue(XOptionsDefine.OD_RADIO_WIFI, value, false); + if (flag) + { + this._bDirty = true; + } + bool flag2 = this._doc.SetValue(XOptionsDefine.OD_RADIO_TEAM, value, false); + if (flag2) + { + this._bDirty = true; + } + bool flag3 = this._doc.SetValue(XOptionsDefine.OD_RADIO_CAMP, value, false); + if (flag3) + { + this._bDirty = true; + } + bool flag4 = this._doc.SetValue(XOptionsDefine.OD_RADIO_PRIVATE, value, false); + if (flag4) + { + this._bDirty = true; + } + bool flag5 = this._doc.SetValue(XOptionsDefine.OD_RADIO_PUBLIC, value, false); + if (flag5) + { + this._bDirty = true; + } + bool flag6 = this._doc.SetValue(XOptionsDefine.OD_RADIO_WORLD, value, false); + if (flag6) + { + this._bDirty = true; + } + bool flag7 = this._doc.SetValue(XOptionsDefine.OD_RADIO_AUTO_PALY, value, false); + if (flag7) + { + this._bDirty = true; + } + } + + private bool _SingleCheckBoxChanged(IXUICheckBox iXUICheckBox) + { + XOptionsDefine option = (XOptionsDefine)iXUICheckBox.ID; + bool flag = this._doc.SetValue(option, Convert.ToInt32(iXUICheckBox.bChecked), false); + if (flag) + { + this._bDirty = true; + } + return true; + } + + private bool _ResolutionCheckBoxChanged(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._doc.SetValue(XOptionsDefine.OD_RESOLUTION, (int)iXUICheckBox.ID, false); + if (flag2) + { + this._bDirty = true; + } + result = true; + } + return result; + } + + private bool _QualityCheckBoxChanged(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._doc.SetValue(XOptionsDefine.OD_QUALITY, (int)iXUICheckBox.ID, false); + if (flag2) + { + this._bDirty = true; + } + result = true; + } + return result; + } + + private bool _ViewCheckBoxChanged(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = this._doc.SetValue(XOptionsDefine.OD_VIEW, (int)iXUICheckBox.ID, false); + if (flag2) + { + this._bDirty = true; + } + result = true; + } + return result; + } + + private bool _SwitchCharClicked(IXUIButton iButton) + { + this._doc.ReqSwitchChar(); + return true; + } + + private bool _SwitchAccountClicked(IXUIButton iButton) + { + this._doc.ReqSwitchAccount(); + return true; + } + + private bool _CustomerServiceClicked(IXUIButton iButton) + { + this._doc.OpenCustomerService(); + return true; + } + + private bool _GameAnnouncementClicked(IXUIButton iButton) + { + return true; + } + + private bool _GameGuideClicked(IXUIButton iButton) + { + this._doc.OpenURL(XSingleton.singleton.GetValue("GameGuide")); + return true; + } + + private bool _GameForumClicked(IXUIButton iButton) + { + string openID = XSingleton.singleton.OpenID; + string openKey = XSingleton.singleton.OpenKey; + string appId = XSingleton.singleton.AppId; + string areaId = XSingleton.singleton.AreaId; + bool flag = openID == null || openKey == null || appId == null || areaId == null; + bool result; + if (flag) + { + result = false; + } + else + { + byte[] bytes = Encoding.Default.GetBytes(string.Concat(new string[] + { + openID, + ",", + openKey, + ",", + appId, + ",", + areaId + })); + string arg = Convert.ToBase64String(bytes); + string url = string.Format(XSingleton.singleton.GetValue("Feedback"), arg, openID, areaId); + this._doc.OpenURL(url); + result = true; + } + return result; + } + + private bool _FeedbackClicked(IXUIButton iButton) + { + this._doc.OpenURL(XSingleton.singleton.GetValue("Feedback")); + return true; + } + + private bool _ServiceTermsClicked(IXUIButton iButton) + { + this._doc.OpenURL(XSingleton.singleton.GetValue("ServiceTerms")); + return true; + } + + private bool _ServiceAgreementClicked(IXUIButton iButton) + { + this._doc.OpenURL(XSingleton.singleton.GetValue("ServiceAgreement")); + return true; + } + + private bool _PrivacyTermsClicked(IXUIButton iButton) + { + this._doc.OpenURL(XSingleton.singleton.GetValue("PrivacyTerms")); + return true; + } + + private bool _VipBtnClicked(IXUIButton iButton) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_VIP, 0UL); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _PersonalCareerBtnClicked(IXUIButton iButton) + { + this.SetVisibleWithAnimation(false, null); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + return true; + } + + private void _OnWechatPrivilegeClicked(IXUISprite iSp) + { + } + + private void _OnQQPrivilegeClicked(IXUISprite iSp) + { + } + + private void _OnGuestPrivilegeClicked(IXUISprite iSp) + { + } + + private bool _RankBtnClicked(IXUIButton iButton) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Title); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("TITLE_NOOPEN"), "fece00"); + } + else + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Title, 0UL); + this.SetVisibleWithAnimation(false, null); + } + return true; + } + + private bool _TitleBtnClicked(IXUIButton iButton) + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Design_Designation, 0UL); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _AchievementBtnClicked(IXUIButton iButton) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_WAITING; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("NO_CAN_ENTER"), "fece00"); + result = false; + } + else + { + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Design_Achieve, 0UL); + this.SetVisibleWithAnimation(false, null); + result = true; + } + return result; + } + + public void SameScreenNumChange(float value) + { + int num; + int num2; + XQualitySetting.GetDefalutVisibleRoleCount(out num, out num2); + int value2 = (int)(Mathf.Lerp(0f, (float)XQualitySetting.veryHighLevel, value) + 0.001f); + int num3 = (int)(Mathf.Lerp((float)num, (float)num2, value) + 0.001f); + base.uiBehaviour.m_SameScreenNum.SetText(num3.ToString()); + this._doc.SetValue(XOptionsDefine.OD_SAMESCREENNUM, value2, false); + this._bDirty = true; + } + + private string DealEmptyString(string str) + { + bool flag = string.IsNullOrEmpty(str); + if (flag) + { + str = XSingleton.singleton.GetString("NONE"); + } + return str; + } + + public void SetAchievementLabel() + { + XDesignationDocument specificDocument = XDocuments.GetSpecificDocument(XDesignationDocument.uuID); + base.uiBehaviour.m_AchievementLabel.SetText(string.Format("{0}/{1}", specificDocument.achieveSurveyInfo.achievePoint, specificDocument.achieveSurveyInfo.maxAchievePoint)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOptionsView.cs.meta b/Client/Assets/Scripts/XMainClient/XOptionsView.cs.meta new file mode 100644 index 00000000..c4cc19e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOptionsView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f10b616e1a0973843a229db9072fb5cb +timeCreated: 1611404836 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOrderData.cs b/Client/Assets/Scripts/XMainClient/XOrderData.cs new file mode 100644 index 00000000..5cd86137 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOrderData.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + internal struct XOrderData : IComparable> where T1 : IComparable + { + public T1 x; + + public T2 y; + + public int CompareTo(XOrderData other) + { + return this.x.CompareTo(other.x); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOrderData.cs.meta b/Client/Assets/Scripts/XMainClient/XOrderData.cs.meta new file mode 100644 index 00000000..d54827a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOrderData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 878ab0a02fca25b44a868e378ede98be +timeCreated: 1611404079 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs new file mode 100644 index 00000000..1b029f04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs @@ -0,0 +1,186 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOtherPlayerInfoBehaviour : DlgBehaviourBase + { + public static readonly uint FUNCTION_NUM = 3u; + + public static readonly uint Emblem_Slot_Count = 16u; + + public XUIPool m_FunctionBtns = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_EmblemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_MenuPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private XUIPool m_ArtifactPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject[] m_artifactGo = new GameObject[XBagDocument.ArtifactMax]; + + public IXUISprite m_InfoPanel; + + public IXUISprite m_MenuPanel; + + public IXUISprite m_MenuBack; + + public IXUISprite m_MenuTip; + + public IXUILabel m_MenuPlayerName; + + public IXUILabel m_InfoPlayerName; + + public IXUISprite m_EquipLayer; + + public IXUISprite m_AvatarLayer; + + public IXUISprite m_EmblemLayer; + + public IXUISprite m_GuildLayer; + + public IXUISprite m_PetLayer; + + public IXUISprite m_SpriteLayer; + + public IXUISprite m_SkillLayer; + + public IXUISprite m_artifactLayer; + + public IXUISprite m_GuildLogo; + + public IXUILabel m_GuildName; + + public IXUILabel m_GuildMasterName; + + public IXUILabel m_GuildLevel; + + public IXUILabel m_GuildNumber; + + public IXUILabel m_GuildContent; + + public Transform m_PetInfo; + + public Transform m_PetEmpty; + + public Transform m_PetSkillFrame; + + public XUIPool m_AttributePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_StarPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_SpeedUp; + + public IXUILabel m_PetPPT; + + public IXUILabel m_PetName; + + public IXUILabel m_PetLevel; + + public IXUISprite m_PetSex; + + public XUIPool m_SkillTabs = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_Skills = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_SkillArrow = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_SkillScrollView; + + public GameObject[] m_EmblemBg = new GameObject[XOtherPlayerInfoBehaviour.Emblem_Slot_Count]; + + public IXUISprite[] m_EmblemSlots = new IXUISprite[XOtherPlayerInfoBehaviour.Emblem_Slot_Count]; + + public IXUISprite[] m_EmblemSlotCovers = new IXUISprite[XOtherPlayerInfoBehaviour.Emblem_Slot_Count]; + + public IUIDummy m_EquipSnapshot; + + public IUIDummy m_AvatarSnapshot; + + public IUIDummy m_PetSnapshot; + + public IUIDummy m_CurrentSnapshot; + + private void Awake() + { + this.m_InfoPanel = (base.transform.Find("Bg/InfoPanel").GetComponent("XUISprite") as IXUISprite); + this.m_MenuPanel = (base.transform.Find("Bg/MenuPanel").GetComponent("XUISprite") as IXUISprite); + this.m_MenuBack = (base.transform.Find("Bg/MenuPanel/back").GetComponent("XUISprite") as IXUISprite); + this.m_MenuTip = (base.transform.Find("Bg/MenuPanel/CloseTip").GetComponent("XUISprite") as IXUISprite); + this.m_MenuPool.SetupPool(base.transform.Find("Bg/MenuPanel").gameObject, base.transform.Find("Bg/MenuPanel/template").gameObject, 10u, false); + this.m_MenuPlayerName = (base.transform.Find("Bg/MenuPanel/PlayerName").GetComponent("XUILabel") as IXUILabel); + this.m_EquipLayer = (base.transform.Find("Bg/InfoPanel/EquipLayer").GetComponent("XUISprite") as IXUISprite); + this.m_AvatarLayer = (base.transform.Find("Bg/InfoPanel/AvatarLayer").GetComponent("XUISprite") as IXUISprite); + this.m_EmblemLayer = (base.transform.Find("Bg/InfoPanel/WenzhangLayer").GetComponent("XUISprite") as IXUISprite); + this.m_GuildLayer = (base.transform.Find("Bg/InfoPanel/GuildLayer").GetComponent("XUISprite") as IXUISprite); + this.m_PetLayer = (base.transform.Find("Bg/InfoPanel/PetLayer").GetComponent("XUISprite") as IXUISprite); + this.m_SpriteLayer = (base.transform.Find("Bg/InfoPanel/SpriteLayer").GetComponent("XUISprite") as IXUISprite); + this.m_SkillLayer = (base.transform.Find("Bg/InfoPanel/Skill").GetComponent("XUISprite") as IXUISprite); + this.m_InfoPlayerName = (base.transform.Find("Bg/InfoPanel/name").GetComponent("XUILabel") as IXUILabel); + this.m_artifactLayer = (base.transform.Find("Bg/InfoPanel/ArtifactLayer").GetComponent("XUISprite") as IXUISprite); + this.m_FunctionBtns.SetupPool(base.transform.Find("Bg/InfoPanel").gameObject, base.transform.Find("Bg/InfoPanel/template").gameObject, 4u, false); + this.m_EmblemPool.SetupPool(base.transform.Find("Bg/InfoPanel/WenzhangLayer/Emblems").gameObject, base.transform.Find("Bg/InfoPanel/WenzhangLayer/Emblems/EmblemTpl").gameObject, XOtherPlayerInfoBehaviour.Emblem_Slot_Count, false); + int num = 0; + Transform transform; + while ((long)num < (long)((ulong)XOtherPlayerInfoBehaviour.Emblem_Slot_Count)) + { + transform = base.transform.Find("Bg/InfoPanel/WenzhangLayer/Emblems/Emblem" + num); + GameObject gameObject = this.m_EmblemPool.FetchGameObject(false); + this.m_EmblemBg[num] = gameObject; + gameObject.transform.localPosition = transform.localPosition; + this.m_EmblemSlots[num] = (gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite); + this.m_EmblemSlotCovers[num] = (gameObject.transform.Find("Cover").GetComponent("XUISprite") as IXUISprite); + this.m_EmblemSlotCovers[num].ID = (ulong)((long)num); + num++; + } + transform = base.transform.Find("Bg/InfoPanel/ArtifactLayer/Artifacts"); + this.m_ArtifactPool.SetupPool(transform.gameObject, transform.transform.Find("Tpl").gameObject, (uint)XBagDocument.ArtifactMax, false); + for (int i = 0; i < XBagDocument.ArtifactMax; i++) + { + this.m_artifactGo[i] = this.m_ArtifactPool.FetchGameObject(false); + GameObject gameObject2 = transform.Find("Artifact" + i).gameObject; + this.m_artifactGo[i].transform.localScale = Vector3.one; + this.m_artifactGo[i].transform.localPosition = gameObject2.transform.localPosition; + } + this.m_GuildLogo = (base.transform.Find("Bg/InfoPanel/GuildLayer/logo").GetComponent("XUISprite") as IXUISprite); + this.m_GuildName = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildname").GetComponent("XUILabel") as IXUILabel); + this.m_GuildMasterName = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildinfo1/mastername").GetComponent("XUILabel") as IXUILabel); + this.m_GuildLevel = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildinfo1/guildlevel").GetComponent("XUILabel") as IXUILabel); + this.m_GuildNumber = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildinfo1/guildmember").GetComponent("XUILabel") as IXUILabel); + this.m_GuildContent = (base.transform.Find("Bg/InfoPanel/GuildLayer/guildinfo2/content").GetComponent("XUILabel") as IXUILabel); + this.m_PetInfo = this.m_PetLayer.gameObject.transform.Find("PetInfo"); + this.m_PetEmpty = this.m_PetLayer.gameObject.transform.Find("Empty"); + this.m_PetSkillFrame = this.m_PetInfo.gameObject.transform.Find("SkillFrame"); + Transform transform2 = this.m_PetInfo.gameObject.transform.Find("Attribute/AttributeTpl/Star/StarTpl"); + this.m_StarPool.SetupPool(null, transform2.gameObject, XPetMainView.STAR_MAX, false); + int num2 = 0; + while ((long)num2 < (long)((ulong)XPetMainView.STAR_MAX)) + { + GameObject gameObject = this.m_StarPool.FetchGameObject(false); + gameObject.name = string.Format("Star{0}", num2); + num2++; + } + Transform transform3 = this.m_PetInfo.gameObject.transform.Find("Attribute/AttributeTpl"); + this.m_AttributePool.SetupPool(null, transform3.gameObject, XPetMainView.ATTRIBUTE_NUM_MAX, false); + this.m_SpeedUp = (this.m_PetInfo.gameObject.transform.Find("SpeedUp").GetComponent("XUILabel") as IXUILabel); + this.m_PetPPT = (this.m_PetInfo.gameObject.transform.Find("PowerPoint").GetComponent("XUILabel") as IXUILabel); + this.m_PetName = (this.m_PetInfo.gameObject.transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_PetLevel = (this.m_PetInfo.gameObject.transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_PetSex = (this.m_PetInfo.gameObject.transform.Find("Sex").GetComponent("XUISprite") as IXUISprite); + Transform transform4 = this.m_SkillLayer.gameObject.transform.Find("Tabs/Tpl"); + this.m_SkillTabs.SetupPool(transform4.parent.gameObject, transform4.gameObject, 3u, false); + transform4 = this.m_SkillLayer.gameObject.transform.Find("SkillTree/Skill/SkillTpl"); + this.m_Skills.SetupPool(transform4.parent.gameObject, transform4.gameObject, 16u, false); + transform4 = this.m_SkillLayer.gameObject.transform.Find("SkillTree/Arrow/ArrowTpl"); + this.m_SkillArrow.SetupPool(transform4.parent.gameObject, transform4.gameObject, 16u, false); + this.m_SkillScrollView = (this.m_SkillLayer.gameObject.transform.Find("SkillTree").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_EquipSnapshot = (this.m_EquipLayer.gameObject.transform.Find("CharacterInfoFrame/CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_AvatarSnapshot = (this.m_AvatarLayer.gameObject.transform.Find("CharacterInfoFrame/CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_PetSnapshot = (this.m_PetInfo.gameObject.transform.Find("Snapshot").GetComponent("UIDummy") as IUIDummy); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs.meta new file mode 100644 index 00000000..1f39eec8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ff136102a3bdb4c45a427fa33081ca7c +timeCreated: 1611404945 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoDocument.cs b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoDocument.cs new file mode 100644 index 00000000..5e0ef141 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoDocument.cs @@ -0,0 +1,127 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOtherPlayerInfoDocument : XDocComponent + { + public override uint ID + { + get + { + return XOtherPlayerInfoDocument.uuID; + } + } + + public XOtherPlayerInfoView OtherPlayerInfoView + { + get + { + return this._XOtherPlayerInfoView; + } + set + { + this._XOtherPlayerInfoView = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XOtherPlayerInfoDocument"); + + public UnitAppearance m_Appearance = null; + + private XOtherPlayerInfoView _XOtherPlayerInfoView = null; + + public override void PostUpdate(float fDeltaT) + { + bool hasRole = XSingleton.singleton.HasRole; + if (hasRole) + { + XEntity lastRole = XSingleton.singleton.LastRole; + bool flag = lastRole != null && lastRole.Attributes != null; + if (flag) + { + ulong roleID = lastRole.Attributes.RoleID; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(roleID, true); + } + } + } + + public List GetOtherEmblemInfoList() + { + bool flag = this.m_Appearance == null; + List result; + if (flag) + { + result = null; + } + else + { + result = this.m_Appearance.emblem; + } + return result; + } + + public List GetOtherArtifactInfoList() + { + bool flag = this.m_Appearance == null; + List result; + if (flag) + { + result = null; + } + else + { + result = this.m_Appearance.artifact; + } + return result; + } + + public void OnGetUnitAppearance(GetUnitAppearanceRes oRes) + { + bool flag = oRes.UnitAppearance == null; + if (flag) + { + XSingleton.singleton.AddLog("[XOtherPlayerInfo] unitInfo is null", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + this.m_Appearance = oRes.UnitAppearance; + DlgBase.singleton.RefreshPlayerInfo(oRes.UnitAppearance); + } + } + + public void OnGetSpriteInfoReturn(GetUnitAppearanceRes oRes) + { + bool flag = oRes.UnitAppearance == null; + if (flag) + { + XSingleton.singleton.AddLog("[XOtherPlayerInfo] unitInfo is null", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + this.m_Appearance = oRes.UnitAppearance; + DlgBase.singleton.RefreshSpriteInfo(oRes.UnitAppearance.level, oRes.UnitAppearance.sprites, oRes.UnitAppearance); + } + } + + public void OnGetPetInfoReturn(GetUnitAppearanceRes oRes) + { + bool flag = oRes.UnitAppearance == null; + if (flag) + { + XSingleton.singleton.AddLog("[XOtherPlayerInfo] unitInfo is null", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + DlgBase.singleton.RefreshPetInfo(oRes.UnitAppearance); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoDocument.cs.meta new file mode 100644 index 00000000..ea4dd9da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ce4233f71441eed46a3a31d7f7b0ae6c +timeCreated: 1611404578 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoView.cs b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoView.cs new file mode 100644 index 00000000..e046b23a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoView.cs @@ -0,0 +1,1365 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOtherPlayerInfoView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/OtherPlayerInfo"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XOtherPlayerInfoDocument _doc = null; + + private ArtifactBagDocument m_doc = null; + + private EquipFusionDocument m_equipfusionDoc; + + private ulong m_PlayerId; + + private string m_PlayerName; + + private uint m_PlayerProfession; + + private uint m_PowerPoint; + + private List m_setid = new List(); + + private uint m_PlayerLevel; + + public const int FUNC_NUM = 8; + + public const int EQUIP_NUM = 10; + + public const int AVATAR_NUM = 10; + + public const int EMBLEM_NUM = 16; + + public const int ARTIFACT_NUM = 4; + + private XDummy _PlayerDummy = null; + + private XSpriteAvatarHandler[] _SpriteAvatarHandler = new XSpriteAvatarHandler[4]; + + private ArtifactQuanlityFx[] m_fuseBreakFx = new ArtifactQuanlityFx[10]; + + private XAttributes m_Attributes = null; + + private float _EclipsedTime = 0f; + + public List m_InfoCheck = new List(); + + private Dictionary m_InfoDic = new Dictionary(); + + private Dictionary m_ItemDic = new Dictionary(); + + private Dictionary _skillLevel = new Dictionary(); + + private HashSet _bindsSkills = new HashSet(); + + private ArtifactQuanlityFx[] m_artifactQuanlityFx = new ArtifactQuanlityFx[XBagDocument.ArtifactMax]; + + private XBodyBag m_EquipBag = new XBodyBag(XBagDocument.EquipMax); + + private XBodyBag m_artifactBag = new XBodyBag(XBagDocument.ArtifactMax); + + private List m_FashionBag = new List(); + + private XPetSkillHandler m_SkillHandler; + + private XCharacterAttrView m_CharacterAttrHandler; + + private XEmbleAttrView m_EmbleAttrHandler; + + private XArtifactAttrView m_artifactAttrHandler; + + private uint[] allParts = new uint[10]; + + private uint lastPetID = 0u; + + private bool hasPetInfo = false; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XOtherPlayerInfoDocument.uuID); + this._doc.OtherPlayerInfoView = this; + this.m_doc = ArtifactBagDocument.Doc; + this.m_equipfusionDoc = EquipFusionDocument.Doc; + IXUIButton ixuibutton = base.uiBehaviour.transform.Find("backclick").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickClosePanel)); + ixuibutton = (base.uiBehaviour.transform.Find("Bg/InfoPanel/backclick").GetComponent("XUIButton") as IXUIButton); + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.ClickClosePanel)); + this.m_InfoCheck.Clear(); + base.uiBehaviour.m_FunctionBtns.ReturnAll(false); + string[] array = new string[] + { + XStringDefineProxy.GetString("EQUIP"), + XStringDefineProxy.GetString("SKILL"), + XStringDefineProxy.GetString("FASHION"), + XStringDefineProxy.GetString("EMBLEM"), + XStringDefineProxy.GetString("CHAT_GUILD"), + XStringDefineProxy.GetString("PET"), + XStringDefineProxy.GetString("Sprite"), + XStringDefineProxy.GetString("Artifact") + }; + for (int i = 0; i < 8; i++) + { + GameObject gameObject = base.uiBehaviour.m_FunctionBtns.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_FunctionBtns.TplPos.x, base.uiBehaviour.m_FunctionBtns.TplPos.y - (float)(i * base.uiBehaviour.m_FunctionBtns.TplHeight), base.uiBehaviour.m_FunctionBtns.TplPos.z); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.ShowPlayerInfo)); + ixuicheckBox.ID = (ulong)((long)(i + 1)); + this.m_InfoCheck.Add(ixuicheckBox); + IXUILabel ixuilabel = gameObject.transform.Find("name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("nameSelected").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(array[i]); + ixuilabel2.SetText(array[i]); + } + for (int j = 0; j < XBagDocument.ArtifactMax; j++) + { + this.m_artifactQuanlityFx[j] = new ArtifactQuanlityFx(); + } + this.m_InfoDic[Player_Info.Avatar] = base.uiBehaviour.m_AvatarLayer; + this.m_InfoDic[Player_Info.Equip] = base.uiBehaviour.m_EquipLayer; + this.m_InfoDic[Player_Info.Emblem] = base.uiBehaviour.m_EmblemLayer; + this.m_InfoDic[Player_Info.Guild] = base.uiBehaviour.m_GuildLayer; + this.m_InfoDic[Player_Info.Pet] = base.uiBehaviour.m_PetLayer; + this.m_InfoDic[Player_Info.Sprite] = base.uiBehaviour.m_SpriteLayer; + this.m_InfoDic[Player_Info.Skill] = base.uiBehaviour.m_SkillLayer; + this.m_InfoDic[Player_Info.Artifact] = base.uiBehaviour.m_artifactLayer; + DlgHandlerBase.EnsureCreate(ref this.m_SkillHandler, base.uiBehaviour.m_PetSkillFrame.gameObject, null, true); + for (int k = 0; k < 4; k++) + { + Transform parent = base.uiBehaviour.m_SpriteLayer.gameObject.transform.Find(string.Format("Avatar{0}", k)); + DlgHandlerBase.EnsureCreate(ref this._SpriteAvatarHandler[k], parent, true, this); + } + DlgHandlerBase.EnsureCreate>(ref this.m_CharacterAttrHandler, base.uiBehaviour.m_EquipLayer.gameObject.transform.Find("AttrFrame"), true, null); + DlgHandlerBase.EnsureCreate>(ref this.m_EmbleAttrHandler, base.uiBehaviour.m_EmblemLayer.gameObject.transform.Find("AttrFrame"), true, null); + DlgHandlerBase.EnsureCreate>(ref this.m_artifactAttrHandler, base.uiBehaviour.m_artifactLayer.gameObject.transform.Find("AttrFrame"), true, null); + } + + public override void RegisterEvent() + { + } + + protected override void OnShow() + { + base.OnShow(); + this.InitGuildInfo(); + this.InitEquipAndAvatar(); + base.Alloc3DAvatarPool("XOtherPlayerInfoView"); + this.SetSpriteAvatarHandlerVisible(true); + } + + protected override void OnHide() + { + base.OnHide(); + base.Return3DAvatarPool(); + this._PlayerDummy = null; + this.SetSpriteAvatarHandlerVisible(false); + this.RestQuanlityFx(); + this.hasPetInfo = false; + } + + private void SetSpriteAvatarHandlerVisible(bool visible) + { + for (int i = 0; i < this._SpriteAvatarHandler.Length; i++) + { + this._SpriteAvatarHandler[i].SetVisible(visible); + if (visible) + { + this._SpriteAvatarHandler[i].HideAvatar(); + } + } + } + + protected override void OnUnload() + { + base.Return3DAvatarPool(); + this._doc = null; + this.hasPetInfo = false; + for (int i = 0; i < XBagDocument.ArtifactMax; i++) + { + bool flag = this.m_artifactQuanlityFx[i] != null; + if (flag) + { + this.m_artifactQuanlityFx[i].Reset(); + } + } + for (int j = 0; j < 10; j++) + { + bool flag2 = this.m_fuseBreakFx[j] != null; + if (flag2) + { + this.m_fuseBreakFx[j].Reset(); + this.m_fuseBreakFx[j] = null; + } + } + DlgHandlerBase.EnsureUnload(ref this.m_SkillHandler); + for (int k = 0; k < this._SpriteAvatarHandler.Length; k++) + { + DlgHandlerBase.EnsureUnload(ref this._SpriteAvatarHandler[k]); + } + DlgHandlerBase.EnsureUnload>(ref this.m_CharacterAttrHandler); + DlgHandlerBase.EnsureUnload>(ref this.m_EmbleAttrHandler); + DlgHandlerBase.EnsureUnload>(ref this.m_artifactAttrHandler); + base.OnUnload(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("XOtherPlayerInfoView"); + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisible(false, true); + return true; + } + + public void SetPlayerInfo(ulong uid, string name, List setid, uint powerpoint = 0u, uint profession = 1u) + { + this.m_PlayerId = uid; + this.m_PlayerName = name; + this.m_setid = setid; + this.m_PowerPoint = powerpoint; + this.m_PlayerProfession = profession; + } + + public void ShowMenuUI(ulong uid, string name, List menuName, List clickHandle, uint powerpoint = 0u, uint profession = 1u) + { + bool flag = base.IsVisible() && this.m_PlayerId == uid; + if (!flag) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + this.SetPlayerInfo(uid, name, new List(), powerpoint, profession); + base.uiBehaviour.m_MenuPanel.SetVisible(true); + base.uiBehaviour.m_InfoPanel.SetVisible(false); + base.uiBehaviour.m_MenuPlayerName.SetText(name); + base.uiBehaviour.m_MenuPool.ReturnAll(false); + float x = base.uiBehaviour.m_MenuPool.TplPos.x; + float num = base.uiBehaviour.m_MenuPool.TplPos.y; + bool flag2 = menuName.Count > 0; + if (flag2) + { + num += (float)((menuName.Count - 1) * base.uiBehaviour.m_MenuPool.TplHeight / 2); + } + float z = base.uiBehaviour.m_MenuPool.TplPos.z; + int spriteHeight = base.uiBehaviour.m_MenuPool.TplHeight * menuName.Count + 10; + for (int i = 0; i < menuName.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_MenuPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(x, num - (float)(base.uiBehaviour.m_MenuPool.TplHeight * i), z); + IXUIButton ixuibutton = gameObject.transform.Find("button").GetComponent("XUIButton") as IXUIButton; + IXUILabel ixuilabel = gameObject.transform.Find("button/name").GetComponent("XUILabel") as IXUILabel; + ixuibutton.RegisterClickEventHandler(clickHandle[i]); + ixuilabel.SetText(menuName[i]); + } + base.uiBehaviour.m_MenuPanel.spriteHeight = spriteHeight; + } + } + + public void InitMenuWithBasicInfo(ulong uid, string name, uint powerpoint = 0u, uint professional = 1u) + { + bool flag = DlgBase.singleton.IsMyFriend(uid); + bool flag2 = DlgBase.singleton.IsBlock(uid); + List list = new List(); + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_VIEW")); + bool flag3 = flag; + if (flag3) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_DELETEFRIEND")); + } + else + { + bool flag4 = !flag2; + if (flag4) + { + bool flag5 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + if (flag5) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_ADDFRIEND")); + } + } + } + bool flag6 = !flag2; + if (flag6) + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_PRIVATECHAT")); + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_BLOCK")); + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_SENDFLOWER")); + } + else + { + list.Add(XStringDefineProxy.GetString("OTHERPLAYERINFO_MENU_UNBLOCK")); + } + List list2 = new List(); + list2.Add(new ButtonClickEventHandler(this.ShowDetailInfo)); + bool flag7 = flag; + if (flag7) + { + list2.Add(new ButtonClickEventHandler(this.RemoveFriend)); + } + else + { + bool flag8 = !flag2; + if (flag8) + { + bool flag9 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Friends); + if (flag9) + { + list2.Add(new ButtonClickEventHandler(this.AddFriend)); + } + } + } + bool flag10 = !flag2; + if (flag10) + { + list2.Add(new ButtonClickEventHandler(this.PrivateChat)); + list2.Add(new ButtonClickEventHandler(this.Block)); + list2.Add(new ButtonClickEventHandler(this.SendFlower)); + } + else + { + list2.Add(new ButtonClickEventHandler(this.UnBlock)); + } + this.ShowMenuUI(uid, name, list, list2, powerpoint, professional); + } + + public void InitGuildMenu(ulong guildid, string guildname) + { + this.ShowMenuUI(guildid, guildname, new List + { + XStringDefineProxy.GetString("CHAT_LOOKUP_GUILD") + }, new List + { + new ButtonClickEventHandler(DlgBase.singleton.OnShowGuildInfo) + }, 0u, 1u); + } + + public void InitContentArea(Player_Info option, ulong param1 = 0UL, ulong param2 = 0UL) + { + float realtimeSinceStartup = Time.realtimeSinceStartup; + bool flag = (double)Mathf.Abs(realtimeSinceStartup - this._EclipsedTime) <= 0.1; + if (flag) + { + XSingleton.singleton.AddLog("Time too short", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + this._EclipsedTime = realtimeSinceStartup; + foreach (KeyValuePair keyValuePair in this.m_InfoDic) + { + bool flag2 = keyValuePair.Key == option; + if (flag2) + { + keyValuePair.Value.SetVisible(true); + this.ShowOtherHandler(keyValuePair.Key); + } + else + { + keyValuePair.Value.SetVisible(false); + } + } + base.uiBehaviour.m_InfoPlayerName.SetText(string.Concat(new object[] + { + "Lv.", + this.m_PlayerLevel, + " ", + this.m_PlayerName + })); + this.m_uiBehaviour.m_CurrentSnapshot = null; + switch (option) + { + case Player_Info.Equip: + case Player_Info.Avatar: + this.m_uiBehaviour.m_CurrentSnapshot = ((option == Player_Info.Avatar) ? this.m_uiBehaviour.m_AvatarSnapshot : this.m_uiBehaviour.m_EquipSnapshot); + this.RequirePlayerInfo(); + break; + case Player_Info.Skill: + this.SetupSkillFrame(); + break; + case Player_Info.Emblem: + this.RefreshEmblemInfo(this._doc.m_Appearance); + break; + case Player_Info.Guild: + { + this.InitGuildInfo(); + RpcC2M_GetOtherGuildBriefNew rpcC2M_GetOtherGuildBriefNew = new RpcC2M_GetOtherGuildBriefNew(); + rpcC2M_GetOtherGuildBriefNew.oArg.roleid = this.m_PlayerId; + XSingleton.singleton.Send(rpcC2M_GetOtherGuildBriefNew); + break; + } + case Player_Info.Pet: + this.m_uiBehaviour.m_CurrentSnapshot = this.m_uiBehaviour.m_PetSnapshot; + this.RequirePetInfo(param1, param2); + break; + case Player_Info.Sprite: + for (int i = 0; i < 4; i++) + { + this._SpriteAvatarHandler[i].HideAvatar(); + } + base.uiBehaviour.m_SpriteLayer.gameObject.transform.Find("Empty").gameObject.SetActive(false); + this.RequireSpriteInfo(); + break; + case Player_Info.Artifact: + this.RefreshArtifactInfo(this._doc.m_Appearance); + break; + } + } + } + + private void ShowOtherHandler(Player_Info type) + { + if (type != Player_Info.Emblem) + { + if (type == Player_Info.Artifact) + { + this.m_artifactAttrHandler.SetBaseData(this._doc.GetOtherArtifactInfoList()); + } + } + else + { + this.m_EmbleAttrHandler.SetBaseData(this._doc.GetOtherEmblemInfoList()); + } + } + + private void InitEquipAndAvatar() + { + for (int i = 0; i < 10; i++) + { + GameObject gameObject = base.uiBehaviour.transform.Find("Bg/InfoPanel/EquipLayer/EquipFrame/Part" + i.ToString()).gameObject; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, null, 0, false); + } + IXUILabel ixuilabel = base.uiBehaviour.transform.Find("Bg/InfoPanel/EquipLayer/CharacterInfoFrame/CharacterFrame/PowerPoint").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText("0"); + base.uiBehaviour.m_InfoPlayerName.SetText(""); + for (int j = 0; j < 10; j++) + { + GameObject gameObject2 = base.uiBehaviour.transform.Find("Bg/InfoPanel/AvatarLayer/EquipFrame/Part" + (11 + j).ToString()).gameObject; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, null, 0, false); + } + for (int k = 0; k < 16; k++) + { + GameObject gameObject3 = base.uiBehaviour.m_EmblemBg[k]; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject3, null, 0, false); + gameObject3.SetActive(true); + } + } + + public XAttributes GetAttrByUnitAppearance(UnitAppearance data) + { + return XSingleton.singleton.InitAttrFromServer(data.uID, data.nickid, data.unitType, data.unitName, data.attributes, data.fightgroup, data.isServerControl, data.skills, data.bindskills, new XOutLookAttr(data.outlook), data.level, 0u); + } + + private void _FillCharacterInfoFrame(UnitAppearance data) + { + bool flag = !base.IsVisible(); + if (!flag) + { + this._FillInitEquip(data); + this._FillInitInfos(data); + this._FillInitAvatar(data); + this.RefreshEmblemInfo(data); + this._FillRoleDummy(data); + this._FillInitSkillData(data); + this.RefreshArtifactInfo(data); + } + } + + private void _FillInitEquip(UnitAppearance data) + { + foreach (XItem xitem in this.m_ItemDic.Values) + { + xitem.Recycle(); + } + this.m_ItemDic.Clear(); + int num = 0; + while (num < 10 && num < data.equip.Count) + { + Item kksgitem = data.equip[num]; + XItem xitem2 = XBagDocument.MakeXItem(kksgitem); + this.m_EquipBag[num] = xitem2; + this.m_ItemDic[xitem2.itemID] = xitem2; + GameObject gameObject = base.uiBehaviour.transform.Find("Bg/InfoPanel/EquipLayer/EquipFrame/Part" + num.ToString()).gameObject; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag = xitem2 != null && xitem2.itemID > 0; + if (flag) + { + ixuisprite.ID = (ulong)((long)xitem2.itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemBg)); + XEquipItem xequipItem = xitem2 as XEquipItem; + this.SetEquipEffect(gameObject, xequipItem.fuseInfo.BreakNum, num); + } + else + { + this.SetEquipEffect(gameObject, 0u, num); + } + XItemDrawerMgr.Param.bHideBinding = true; + XItemDrawerMgr.Param.Profession = data.unitType % 10u; + XSingleton.singleton.DrawItem(gameObject, xitem2); + num++; + } + bool flag2 = data.equip.Count > 10; + if (flag2) + { + for (int i = data.equip.Count; i < 10; i++) + { + GameObject gameObject2 = base.uiBehaviour.transform.Find("Bg/InfoPanel/EquipLayer/EquipFrame/Part" + i.ToString()).gameObject; + this.SetEquipEffect(gameObject2, 0u, i); + } + } + } + + private void SetEquipEffect(GameObject go, uint breakLevel, int slot) + { + bool flag = slot >= this.m_fuseBreakFx.Length; + if (!flag) + { + bool flag2 = go == null; + if (!flag2) + { + ArtifactQuanlityFx artifactQuanlityFx = this.m_fuseBreakFx[slot]; + bool flag3 = artifactQuanlityFx == null; + if (flag3) + { + artifactQuanlityFx = new ArtifactQuanlityFx(); + this.m_fuseBreakFx[slot] = artifactQuanlityFx; + } + string path; + bool flag4 = !this.m_equipfusionDoc.GetEffectPath(breakLevel, out path); + if (flag4) + { + artifactQuanlityFx.Reset(); + } + else + { + bool flag5 = !artifactQuanlityFx.IsCanReuse((ulong)breakLevel); + if (flag5) + { + artifactQuanlityFx.SetData((ulong)breakLevel, go.transform.Find("Icon/Icon/Effects"), path); + } + } + } + } + } + + private void RestQuanlityFx() + { + for (int i = 0; i < 10; i++) + { + bool flag = this.m_fuseBreakFx[i] != null; + if (flag) + { + this.m_fuseBreakFx[i].Reset(); + } + } + } + + private void _FillInitInfos(UnitAppearance data) + { + this.m_PlayerProfession = data.unitType; + IXUILabel ixuilabel = base.uiBehaviour.transform.Find("Bg/InfoPanel/EquipLayer/CharacterInfoFrame/CharacterFrame/PowerPoint").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(data.PowerPoint.ToString()); + this.m_PlayerLevel = data.level; + base.uiBehaviour.m_InfoPlayerName.SetText(string.Concat(new object[] + { + "Lv.", + this.m_PlayerLevel, + " ", + this.m_PlayerName + })); + IXUILabel ixuilabel2 = base.uiBehaviour.transform.Find("Bg/InfoPanel/AvatarLayer/CharacterInfoFrame/CharacterFrame/PowerPoint").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(data.PowerPoint.ToString()); + this.m_Attributes = this.GetAttrByUnitAppearance(data); + this.m_CharacterAttrHandler.SetAttributes(this.m_Attributes); + } + + private void _FillInitAvatar(UnitAppearance data) + { + int i = 0; + int num = this.allParts.Length; + while (i < num) + { + this.allParts[i] = 0u; + i++; + } + bool flag = data.outlook != null && data.outlook.display_fashion != null; + if (flag) + { + i = 0; + num = data.outlook.display_fashion.display_fashions.Count; + while (i < num) + { + uint num2 = data.outlook.display_fashion.display_fashions[i]; + FashionList.RowData fashionConf = XBagDocument.GetFashionConf((int)num2); + bool flag2 = fashionConf == null || (int)fashionConf.EquipPos >= this.allParts.Length; + if (!flag2) + { + this.allParts[(int)fashionConf.EquipPos] = num2; + } + i++; + } + } + i = 0; + while (i < 10 && i < this.allParts.Length) + { + uint num3 = this.allParts[i]; + GameObject gameObject = base.uiBehaviour.transform.Find("Bg/InfoPanel/AvatarLayer/EquipFrame/Part" + (11 + i).ToString()).gameObject; + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)num3; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickOutLookBg)); + XItemDrawerMgr.Param.bHideBinding = true; + XItemDrawerMgr.Param.Profession = data.unitType % 10u; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)num3, 0, false); + i++; + } + } + + private void OnClickOutLookBg(IXUISprite sprite) + { + int num = (int)sprite.ID; + bool flag = num == 0; + if (!flag) + { + XSingleton.singleton.ShowTooltipDialog(num, null, this.m_PlayerProfession % 10u); + } + } + + private void _FillInitSkillData(UnitAppearance data) + { + this._bindsSkills.Clear(); + this._skillLevel.Clear(); + for (int i = 0; i < data.bindskills.Count; i++) + { + this._bindsSkills.Add(data.bindskills[i]); + } + for (int j = 0; j < data.skills.Count; j++) + { + this._skillLevel[data.skills[j].skillHash] = data.skills[j].skillLevel; + } + } + + private void _FillRoleDummy(UnitAppearance data) + { + bool flag = data.uID > 0UL; + if (flag) + { + this._PlayerDummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, data.uID, data.unitType, data.outlook, this.m_uiBehaviour.m_CurrentSnapshot, this._PlayerDummy); + } + } + + private void RefreshEmblemInfo(UnitAppearance data) + { + bool flag = data == null; + if (!flag) + { + for (int i = 0; i < 16; i++) + { + GameObject gameObject = base.uiBehaviour.m_EmblemBg[i]; + bool flag2 = data.emblem.Count > i; + if (flag2) + { + Item item = data.emblem[i]; + bool flag3 = item.ItemID > 0u; + if (flag3) + { + XItem xitem = XBagDocument.MakeXItem(item); + this.m_ItemDic[xitem.itemID] = xitem; + XItemDrawerMgr.Param.bHideBinding = true; + XItemDrawerMgr.Param.Profession = data.unitType % 10u; + XSingleton.singleton.DrawItem(gameObject, xitem); + gameObject.SetActive(true); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag4 = xitem != null; + if (flag4) + { + ixuisprite.ID = (ulong)((long)xitem.itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemBg)); + } + } + else + { + gameObject.SetActive(false); + } + } + else + { + gameObject.SetActive(false); + } + } + } + } + + private void RefreshArtifactInfo(UnitAppearance data) + { + bool flag = data == null; + if (!flag) + { + for (int i = 0; i < 4; i++) + { + GameObject gameObject = base.uiBehaviour.m_artifactGo[i]; + bool flag2 = data.artifact.Count > i; + if (flag2) + { + Item item = data.artifact[i]; + XItem xitem = XBagDocument.MakeXItem(item); + this.m_artifactBag[i] = xitem; + bool flag3 = item.ItemID > 0u; + if (flag3) + { + this.m_ItemDic[xitem.itemID] = xitem; + XItemDrawerMgr.Param.bHideBinding = true; + XSingleton.singleton.DrawItem(gameObject, xitem); + bool flag4 = xitem != null && xitem.itemConf != null; + if (flag4) + { + this.SetArtifactEffect(gameObject, xitem.itemID, i); + } + gameObject.SetActive(true); + gameObject.transform.Find("Icon/RedPoint").gameObject.SetActive(false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + bool flag5 = xitem != null; + if (flag5) + { + ixuisprite.ID = (ulong)((long)xitem.itemID); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemBg)); + } + } + else + { + gameObject.SetActive(false); + } + } + else + { + gameObject.SetActive(false); + } + } + } + } + + private void SetArtifactEffect(GameObject go, int itemId, int slot) + { + bool flag = slot >= this.m_artifactQuanlityFx.Length; + if (!flag) + { + bool flag2 = go == null; + if (!flag2) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemId); + bool flag3 = itemConf == null; + if (!flag3) + { + ArtifactListTable.RowData artifactListRowData = ArtifactDocument.GetArtifactListRowData((uint)itemId); + bool flag4 = artifactListRowData == null; + if (!flag4) + { + ArtifactQuanlityFx artifactQuanlityFx = this.m_artifactQuanlityFx[slot]; + bool flag5 = artifactQuanlityFx == null; + if (flag5) + { + artifactQuanlityFx = new ArtifactQuanlityFx(); + this.m_artifactQuanlityFx[slot] = artifactQuanlityFx; + } + ulong key = this.m_doc.MakeKey((uint)itemConf.ItemQuality, artifactListRowData.AttrType); + string path; + bool flag6 = !this.m_doc.GetArtifactEffectPath(key, out path); + if (flag6) + { + artifactQuanlityFx.Reset(); + } + else + { + bool flag7 = !artifactQuanlityFx.IsCanReuse(key); + if (flag7) + { + artifactQuanlityFx.SetData(key, go.transform.Find("Icon/Icon/Effects"), path); + } + } + } + } + } + } + } + + public void InitGuildInfo() + { + base.uiBehaviour.m_GuildLogo.SetSprite(""); + base.uiBehaviour.m_GuildName.SetText(""); + base.uiBehaviour.m_GuildMasterName.SetText(""); + base.uiBehaviour.m_GuildLevel.SetText("0"); + base.uiBehaviour.m_GuildNumber.SetText("0/0"); + base.uiBehaviour.m_GuildContent.SetText(""); + base.uiBehaviour.m_GuildLogo.SetVisible(false); + } + + public void RefreshGuildInfo(GetOtherGuildBriefRes res) + { + bool flag = res.icon == 0u; + if (flag) + { + base.uiBehaviour.m_GuildLogo.SetSprite(""); + base.uiBehaviour.m_GuildLogo.SetVisible(false); + } + else + { + base.uiBehaviour.m_GuildLogo.SetSprite(XGuildDocument.GetPortraitName((int)res.icon)); + base.uiBehaviour.m_GuildLogo.SetVisible(true); + } + base.uiBehaviour.m_GuildName.SetText(res.guildname); + base.uiBehaviour.m_GuildMasterName.SetText(res.leadername); + base.uiBehaviour.m_GuildLevel.SetText(res.guildlevel.ToString()); + base.uiBehaviour.m_GuildNumber.SetText(res.currentcount.ToString() + "/" + res.allcount.ToString()); + base.uiBehaviour.m_GuildContent.SetText(res.announcement); + } + + public void RefreshPetInfo(UnitAppearance data) + { + bool flag = !base.IsVisible() || base.uiBehaviour == null || base.uiBehaviour.m_PetLayer == null || !base.uiBehaviour.m_PetLayer.IsVisible(); + if (!flag) + { + this.m_PlayerLevel = data.level; + bool flag2 = base.uiBehaviour.m_InfoPlayerName != null; + if (flag2) + { + base.uiBehaviour.m_InfoPlayerName.SetText(string.Concat(new object[] + { + "Lv.", + this.m_PlayerLevel, + " ", + this.m_PlayerName + })); + } + bool flag3 = data.pet == null; + if (flag3) + { + bool flag4 = base.uiBehaviour.m_PetInfo != null; + if (flag4) + { + base.uiBehaviour.m_PetInfo.gameObject.SetActive(false); + } + bool flag5 = base.uiBehaviour.m_PetEmpty != null; + if (flag5) + { + base.uiBehaviour.m_PetEmpty.gameObject.SetActive(true); + } + } + else + { + XPet xpet = new XPet(); + xpet.Init(data.pet, PetChange.None); + bool flag6 = base.uiBehaviour.m_PetInfo != null; + if (flag6) + { + base.uiBehaviour.m_PetInfo.gameObject.SetActive(true); + } + bool flag7 = base.uiBehaviour.m_PetEmpty != null; + if (flag7) + { + base.uiBehaviour.m_PetEmpty.gameObject.SetActive(false); + } + this.m_SkillHandler.Refresh(xpet); + this.RefreshPetDummy(xpet.ID); + this.RefreshAttribute(xpet); + } + } + } + + private void RefreshAttribute(XPet pet) + { + bool flag = pet == null; + if (!flag) + { + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(pet.ID); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)petInfo.SpeedBuff, 1); + bool flag2 = buffData == null || 1201 != (int)buffData.BuffChangeAttribute[0, 0]; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Buff No Find XAttr_RUN_SPEED_Percent.\nSp BuffId:" + petInfo.SpeedBuff, null, null, null, null, null); + } + else + { + base.uiBehaviour.m_SpeedUp.SetText(string.Format("{0}%", (buffData.BuffChangeAttribute[0, 1] + 100f).ToString())); + } + DlgBase.singleton.SetPetSex(base.uiBehaviour.m_PetSex, pet.Sex); + base.uiBehaviour.m_PetName.SetText(pet.Name); + base.uiBehaviour.m_PetPPT.SetText(pet.PPT.ToString()); + base.uiBehaviour.m_PetLevel.SetText(string.Format("(Lv.{0})", pet.showLevel.ToString())); + PetLevelTable.RowData petLevel = XPetDocument.GetPetLevel(pet); + PetLevelTable.RowData petLevel2 = XPetDocument.GetPetLevel(pet.ID, pet.Level + 1); + base.uiBehaviour.m_AttributePool.ReturnAll(false); + int num = 0; + while ((long)num < (long)((ulong)XPetMainView.ATTRIBUTE_NUM_MAX)) + { + bool flag3 = num >= petLevel.PetsAttributes.Count; + if (!flag3) + { + GameObject gameObject = base.uiBehaviour.m_AttributePool.FetchGameObject(false); + int spriteHeight = (gameObject.transform.GetComponent("XUISprite") as IXUISprite).spriteHeight; + IXUILabel ixuilabel = gameObject.transform.Find("AttributeName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("AttributeName/AttributeVal").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("AttributeName/GrowUp").GetComponent("XUILabel") as IXUILabel; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)spriteHeight * num), 0f); + string attrStr = XAttributeCommon.GetAttrStr((int)petLevel.PetsAttributes[num, 0]); + ixuilabel.SetText(attrStr); + uint num2 = 0u; + for (int i = 1; i <= pet.Level; i++) + { + PetLevelTable.RowData petLevel3 = XPetDocument.GetPetLevel(pet.ID, i); + num2 += petLevel3.PetsAttributes[num, 1]; + } + ixuilabel2.SetText(XAttributeCommon.GetAttrValueStr(petLevel.PetsAttributes[num, 0], num2, false)); + bool flag4 = petLevel2 != null; + if (flag4) + { + ixuilabel3.SetText(string.Format("+{0}", petLevel2.PetsAttributes[num, 1].ToString())); + } + else + { + ixuilabel3.SetText(""); + } + } + num++; + } + } + } + + public void RefreshPetDummy(uint petID) + { + bool flag = petID > 0u; + if (flag) + { + this.lastPetID = petID; + } + this._PlayerDummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, XPetDocument.GetPresentID(this.lastPetID), this.m_uiBehaviour.m_CurrentSnapshot, this._PlayerDummy, 1f); + DlgBase.singleton.PetActionChange(XPetActionFile.IDLE, this.lastPetID, this._PlayerDummy, false); + } + + public void RefreshPlayerInfo(UnitAppearance data) + { + this._FillCharacterInfoFrame(data); + } + + public void RefreshSpriteInfo(uint level, List list, UnitAppearance data) + { + bool flag = !base.IsVisible() || !base.uiBehaviour.m_SpriteLayer.IsVisible(); + if (!flag) + { + this.m_PlayerLevel = level; + base.uiBehaviour.m_InfoPlayerName.SetText(string.Concat(new object[] + { + "Lv.", + this.m_PlayerLevel, + " ", + this.m_PlayerName + })); + bool flag2 = list.Count != 4; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Get OtherPlayerInfo 's SpriteInfo 's cout is not 4.", null, null, null, null, null); + } + else + { + bool flag3 = false; + for (int i = 0; i < 4; i++) + { + bool flag4 = list[i] == null || list[i].SpriteID == 0u; + if (flag4) + { + this._SpriteAvatarHandler[i].SetSpriteInfo(null, null, 0, false, true); + this._SpriteAvatarHandler[i].HideAvatar(); + } + else + { + flag3 = true; + XAttributes attrByUnitAppearance = this.GetAttrByUnitAppearance(data); + this._SpriteAvatarHandler[i].SetSpriteInfo(list[i], attrByUnitAppearance, i + 7, true, true); + } + } + base.uiBehaviour.m_SpriteLayer.gameObject.transform.Find("Empty").gameObject.SetActive(!flag3); + } + } + } + + public void ShowTab(Player_Info type, ulong param1 = 0UL, ulong param2 = 0UL) + { + base.uiBehaviour.m_MenuPanel.SetVisible(false); + base.uiBehaviour.m_InfoPanel.SetVisible(true); + int num = XFastEnumIntEqualityComparer.ToInt(type) - 1; + bool flag = num < this.m_InfoCheck.Count; + if (flag) + { + this.m_InfoCheck[num].bChecked = true; + this.InitContentArea(type, param1, param2); + } + } + + public bool ShowDetailInfo(IXUIButton sp) + { + this.ShowTab(Player_Info.Equip, 0UL, 0UL); + return true; + } + + public bool AddFriend(IXUIButton sp) + { + base.uiBehaviour.m_MenuPanel.SetVisible(false); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + DlgBase.singleton.AddFriendById(this.m_PlayerId); + return true; + } + + public bool RemoveFriend(IXUIButton sp) + { + base.uiBehaviour.m_MenuPanel.SetVisible(false); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + DlgBase.singleton.RemoveFriend(this.m_PlayerId); + return true; + } + + public bool SendFlower(IXUIButton sp) + { + base.uiBehaviour.m_MenuPanel.SetVisible(false); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + DlgBase.singleton.ShowBoard(this.m_PlayerId, this.m_PlayerName); + return true; + } + + public bool PrivateChat(IXUIButton sp) + { + bool flag = sp != null; + if (flag) + { + base.uiBehaviour.m_MenuPanel.SetVisible(false); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + bool flag2 = DlgBase.singleton.IsBlock(this.m_PlayerId); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_BLOCK_2"), "fece00"); + } + else + { + ChatFriendData chatFriendData = new ChatFriendData(); + chatFriendData.name = this.m_PlayerName; + chatFriendData.roleid = this.m_PlayerId; + chatFriendData.powerpoint = this.m_PowerPoint; + chatFriendData.profession = this.m_PlayerProfession; + chatFriendData.isfriend = DlgBase.singleton.IsMyFriend(this.m_PlayerId); + chatFriendData.msgtime = DateTime.Now; + chatFriendData.viplevel = 0u; + chatFriendData.setid = this.m_setid; + XEntity entity = XSingleton.singleton.GetEntity(this.m_PlayerId); + bool flag3 = entity != null; + if (flag3) + { + XRoleAttributes xroleAttributes = (XRoleAttributes)entity.Attributes; + chatFriendData.profession = (uint)xroleAttributes.Profession; + } + DlgBase.singleton.PrivateChatTo(chatFriendData); + } + return true; + } + + public void OnClickItemBg(IXUISprite sp) + { + int key = (int)sp.ID; + XItem xitem = null; + this.m_ItemDic.TryGetValue(key, out xitem); + bool flag = xitem != null; + if (flag) + { + ItemType type = xitem.Type; + if (type != ItemType.EQUIP) + { + if (type != ItemType.FASHION) + { + if (type == ItemType.ARTIFACT) + { + XSingleton.singleton.BodyBag = this.m_artifactBag; + } + } + else + { + XSingleton.singleton.FashionOnBody = this.m_FashionBag; + } + } + else + { + XSingleton.singleton.BodyBag = this.m_EquipBag; + } + XSingleton.singleton.mainAttributes = this.m_Attributes; + XSingleton.singleton.ShowTooltipDialog(xitem, null, sp, false, this.m_PlayerProfession % 10u); + } + } + + public bool Block(IXUIButton sp) + { + base.uiBehaviour.m_MenuPanel.SetVisible(false); + DlgBase.singleton.AddBlockFriend(this.m_PlayerId); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + return true; + } + + public bool UnBlock(IXUIButton sp) + { + base.uiBehaviour.m_MenuPanel.SetVisible(false); + DlgBase.singleton.RemoveBlockFriend(this.m_PlayerId); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + return true; + } + + public void RequirePlayerInfo() + { + bool flag = this.m_PlayerId == 0UL; + if (!flag) + { + RpcC2M_GetUnitAppearanceNew rpcC2M_GetUnitAppearanceNew = new RpcC2M_GetUnitAppearanceNew(); + rpcC2M_GetUnitAppearanceNew.oArg.roleid = this.m_PlayerId; + rpcC2M_GetUnitAppearanceNew.oArg.mask = 558063; + rpcC2M_GetUnitAppearanceNew.oArg.type = 2u; + XSingleton.singleton.Send(rpcC2M_GetUnitAppearanceNew); + } + } + + public void RequireSpriteInfo() + { + bool flag = this.m_PlayerId == 0UL; + if (!flag) + { + RpcC2M_GetUnitAppearanceNew rpcC2M_GetUnitAppearanceNew = new RpcC2M_GetUnitAppearanceNew(); + rpcC2M_GetUnitAppearanceNew.oArg.roleid = this.m_PlayerId; + rpcC2M_GetUnitAppearanceNew.oArg.mask = 17335023; + rpcC2M_GetUnitAppearanceNew.oArg.type = 5u; + XSingleton.singleton.Send(rpcC2M_GetUnitAppearanceNew); + } + } + + public void RequirePetInfo(ulong playerId, ulong petUID) + { + bool flag = this.m_PlayerId == 0UL; + if (!flag) + { + bool flag2 = this.hasPetInfo; + if (flag2) + { + this.RefreshPetDummy(0u); + } + else + { + this.hasPetInfo = true; + bool flag3 = playerId == 0UL; + if (flag3) + { + playerId = this.m_PlayerId; + } + RpcC2M_GetUnitAppearanceNew rpcC2M_GetUnitAppearanceNew = new RpcC2M_GetUnitAppearanceNew(); + rpcC2M_GetUnitAppearanceNew.oArg.roleid = playerId; + rpcC2M_GetUnitAppearanceNew.oArg.mask = XFastEnumIntEqualityComparer.ToInt(UnitAppearanceField.UNIT_PETS); + rpcC2M_GetUnitAppearanceNew.oArg.type = 6u; + rpcC2M_GetUnitAppearanceNew.oArg.petId = petUID; + XSingleton.singleton.Send(rpcC2M_GetUnitAppearanceNew); + } + } + } + + public bool ShowPlayerInfo(IXUICheckBox iXUICheckBox) + { + Player_Info option = (Player_Info)iXUICheckBox.ID; + bool bChecked = iXUICheckBox.bChecked; + if (bChecked) + { + this.InitContentArea(option, 0UL, 0UL); + } + return true; + } + + public bool ClickClosePanel(IXUIButton sp) + { + this.SetPlayerInfo(0UL, "", new List(), 0u, 1u); + this.SetVisible(false, true); + return true; + } + + private void SetupSkillFrame() + { + int num = 10; + IXUICheckBox ixuicheckBox = null; + base.uiBehaviour.m_SkillTabs.ReturnAll(false); + Vector3 tplPos = base.uiBehaviour.m_SkillTabs.TplPos; + int num2 = 0; + int i = (int)this.m_PlayerProfession; + while (i != 0) + { + i /= 10; + num2++; + } + for (int j = 0; j < num2; j++) + { + int profID = (int)(this.m_PlayerProfession % (uint)num); + GameObject gameObject = base.uiBehaviour.m_SkillTabs.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(tplPos.x, tplPos.y - (float)(j * base.uiBehaviour.m_SkillTabs.TplHeight)); + IXUILabel ixuilabel = gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetProfName(profID)); + IXUILabel ixuilabel2 = gameObject.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(XSingleton.singleton.GetProfName(profID)); + IXUICheckBox ixuicheckBox2 = gameObject.GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox2.ForceSetFlag(false); + ixuicheckBox2.ID = (ulong)((long)j); + ixuicheckBox2.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnSkillTabsClick)); + bool flag = j == 0; + if (flag) + { + ixuicheckBox = ixuicheckBox2; + } + num *= 10; + } + ixuicheckBox.bChecked = true; + this.SetupSkillTree(0); + } + + private bool OnSkillTabsClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this.SetupSkillTree((int)icb.ID); + result = true; + } + return result; + } + + private void SetupSkillTree(int promote) + { + base.uiBehaviour.m_SkillScrollView.SetPosition(0f); + base.uiBehaviour.m_Skills.ReturnAll(false); + base.uiBehaviour.m_SkillArrow.ReturnAll(false); + int num = 10; + for (int i = 0; i < promote; i++) + { + num *= 10; + } + List profSkillID = XSingleton.singleton.GetProfSkillID((int)(this.m_PlayerProfession % (uint)num)); + int num2 = 0; + for (int j = 0; j < profSkillID.Count; j++) + { + GameObject gameObject = base.uiBehaviour.m_Skills.FetchGameObject(false); + gameObject.name = string.Format("Skill{0}", ++num2); + this.SetupSkill(gameObject, profSkillID[j]); + } + } + + private void SetupSkill(GameObject go, uint skillID) + { + uint num = 0u; + this._skillLevel.TryGetValue(skillID, out num); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(skillID, num); + uint skillID2 = XSingleton.singleton.GetSkillID(skillConfig.PreSkill, 0u); + SkillList.RowData skillConfig2 = XSingleton.singleton.GetSkillConfig(skillID2, 0u); + int skillMaxLevel = XSingleton.singleton.GetSkillMaxLevel(skillID, 0u); + SkillTypeEnum skillType = (SkillTypeEnum)skillConfig.SkillType; + IXUISprite ixuisprite = go.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = go.transform.Find("Icon/P").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel = go.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = go.transform.Find("Tip").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.SetVisible(this._bindsSkills.Contains(skillID)); + go.transform.localPosition = new Vector3(base.uiBehaviour.m_Skills.TplPos.x + (float)((int)(skillConfig.XPostion - 1) * base.uiBehaviour.m_Skills.TplWidth), (float)skillConfig.YPostion); + ixuisprite.SetSprite(skillConfig.Icon, skillConfig.Atlas, false); + ixuilabel.SetText(num + "/" + skillMaxLevel); + SkillTypeEnum skillTypeEnum = skillType; + if (skillTypeEnum != SkillTypeEnum.Skill_Big) + { + if (skillTypeEnum != SkillTypeEnum.Skill_Buff) + { + ixuisprite2.SetSprite("JN_dk"); + } + else + { + ixuisprite2.SetSprite("JN_dk_buff"); + } + } + else + { + ixuisprite2.SetSprite("JN_dk_0"); + } + bool flag = skillConfig2 != null; + if (flag) + { + Vector3 localPosition = go.transform.localPosition; + Vector3 vector; + vector= new Vector3(base.uiBehaviour.m_Skills.TplPos.x + (float)((int)(skillConfig2.XPostion - 1) * base.uiBehaviour.m_Skills.TplWidth), (float)skillConfig2.YPostion); + Vector3 vector2 = (localPosition + vector) / 2f; + GameObject gameObject = base.uiBehaviour.m_SkillArrow.FetchGameObject(false); + IXUISprite ixuisprite4 = gameObject.GetComponent("XUISprite") as IXUISprite; + bool flag2 = skillConfig.XPostion == skillConfig2.XPostion || skillConfig.YPostion == skillConfig2.YPostion; + if (flag2) + { + bool flag3 = skillConfig.XPostion == skillConfig2.XPostion; + if (flag3) + { + ixuisprite4.SetSprite("SkillTree_3"); + ixuisprite4.spriteHeight = (int)((float)(skillConfig2.YPostion - skillConfig.YPostion) - (float)ixuisprite.spriteHeight * 1.5f); + ixuisprite4.spriteWidth = base.uiBehaviour.m_SkillArrow.TplWidth; + gameObject.transform.localPosition = vector2; + gameObject.transform.localScale = new Vector3(1f, 1f); + gameObject.transform.localRotation = Quaternion.identity; + } + else + { + ixuisprite4.SetSprite("SkillTree_3"); + int num2 = (skillConfig.XPostion < skillConfig2.XPostion) ? 1 : -1; + ixuisprite4.spriteHeight = (int)((float)((int)(skillConfig2.XPostion - skillConfig.XPostion) * (num2 * base.uiBehaviour.m_Skills.TplWidth)) - (float)ixuisprite.spriteWidth * 1.5f); + ixuisprite4.spriteWidth = base.uiBehaviour.m_SkillArrow.TplWidth; + gameObject.transform.localPosition = vector2; + gameObject.transform.localScale = new Vector3(1f, 1f); + gameObject.transform.localRotation = Quaternion.Euler(0f, 0f, (float)(-(float)num2 * 90)); + } + } + else + { + ixuisprite4.SetSprite("SkillTree_4"); + ixuisprite4.spriteHeight = (int)Math.Abs(localPosition.y - vector.y) - ixuisprite.spriteHeight / 2; + ixuisprite4.spriteWidth = (int)Math.Abs(localPosition.x - vector.x) - ixuisprite.spriteWidth / 2; + int num3 = (skillConfig.XPostion < skillConfig2.XPostion) ? 1 : -1; + gameObject.transform.localPosition = vector2 + new Vector3((float)(ixuisprite.spriteWidth / 2 * -(float)num3), (float)(ixuisprite.spriteHeight / 2)); + gameObject.transform.localScale = new Vector3((float)num3, 1f); + gameObject.transform.localRotation = Quaternion.identity; + } + } + ixuisprite.SetEnabled(num > 0u); + ixuisprite2.SetEnabled(num > 0u); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoView.cs.meta b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoView.cs.meta new file mode 100644 index 00000000..fa023453 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOtherPlayerInfoView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b06a8baf37ee0894b8ebd726ee672cda +timeCreated: 1611404351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOthersAttributes.cs b/Client/Assets/Scripts/XMainClient/XOthersAttributes.cs new file mode 100644 index 00000000..73c7336b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOthersAttributes.cs @@ -0,0 +1,114 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOthersAttributes : XAttributes + { + public override uint ID + { + get + { + return XOthersAttributes.uuID; + } + } + + public float NormalAttackProb { get; set; } + + public float EnterFightRange { get; set; } + + public float FloatingMax { get; set; } + + public float FloatingMin { get; set; } + + public float AIStartTime { get; set; } + + public float AIActionGap { get; set; } + + public bool Blocked { get; set; } + + public bool IsWander { get; set; } + + public bool IsFixedInCD { get; set; } + + public bool Outline { get; set; } + + public int UseMyMesh { get; set; } + + public int SummonGroup { get; set; } + + public bool EndShow { get; set; } + + public bool GeneralCutScene { get; set; } + + public bool SameBillBoardByMaster { get; set; } + + public uint Fov { get; set; } + + public uint FashionTemplate { get; set; } + + public short LinkCombo { get; set; } + + public override uint Tag + { + get + { + return this.m_Tag; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Others_Attributes"); + + private uint m_Tag; + + public XOthersAttributes() + { + this._security_Statistics = new XSecurityStatistics(); + } + + public override void InitAttribute(XEntityStatistics.RowData data) + { + base.InitAttribute(data); + this.Init(data); + } + + private void Init(XEntityStatistics.RowData data) + { + this.NormalAttackProb = data.AttackProb; + this.EnterFightRange = data.Sight; + this.IsWander = data.IsWander; + this.Blocked = data.Block; + base.BeLocked = data.BeLocked; + this.AIStartTime = data.AIStartTime; + this.AIActionGap = data.AIActionGap; + this.IsFixedInCD = data.IsFixedInCD; + this.Outline = data.Highlight; + this.UseMyMesh = (int)data.UseMyMesh; + this.FloatingMin = ((data.FloatHeight != null && data.FloatHeight.Length != 0) ? data.FloatHeight[0] : 0f); + this.FloatingMax = ((data.FloatHeight != null && data.FloatHeight.Length != 0) ? data.FloatHeight[1] : 0f); + this.EndShow = data.EndShow; + base.SoloShow = data.SoloShow; + this.GeneralCutScene = data.UsingGeneralCutscene; + this.SameBillBoardByMaster = data.SameBillBoard; + this.FashionTemplate = (uint)data.FashionTemplate; + this.Fov = (uint)data.Fov; + this.SummonGroup = (int)data.SummonGroup; + this.LinkCombo = data.LinkCombo; + this._inborn_buff = data.InBornBuff; + this._CreateTag(data); + } + + private void _CreateTag(XEntityStatistics.RowData data) + { + this.m_Tag = 0u; + bool flag = data.Tag == null; + if (!flag) + { + for (int i = 0; i < data.Tag.Length; i++) + { + this.m_Tag |= 1u << (int)data.Tag[i]; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOthersAttributes.cs.meta b/Client/Assets/Scripts/XMainClient/XOthersAttributes.cs.meta new file mode 100644 index 00000000..e21e1366 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOthersAttributes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4368be1eb7403d34db65097b2db7d115 +timeCreated: 1611403642 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs b/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs new file mode 100644 index 00000000..13798992 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs @@ -0,0 +1,54 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + public class XOutLookAttr + { + public OutLookGuild guild = null; + + public uint designationID = 0u; + + public string specialDesignation = ""; + + public uint titleID = 0u; + + public uint militaryRank = 0u; + + public uint prerogativeScore = 0u; + + public List prerogativeSetID; + + public XOutLookAttr(OutLook outlook) + { + this.guild = ((outlook != null) ? outlook.guild : null); + this.designationID = ((outlook != null && outlook.designation != null) ? outlook.designation.id : 0u); + this.specialDesignation = ((outlook != null && outlook.designation != null) ? outlook.designation.name : ""); + this.titleID = ((outlook != null && outlook.title != null) ? outlook.title.titleID : 0u); + this.militaryRank = ((outlook != null && outlook.military != null) ? outlook.military.military_rank : 0u); + bool flag = outlook == null || outlook.pre == null; + if (flag) + { + this.prerogativeScore = 0u; + this.prerogativeSetID = null; + } + else + { + this.prerogativeScore = outlook.pre.score; + this.prerogativeSetID = outlook.pre.setid; + } + } + + public XOutLookAttr(uint title, MilitaryRecord military) + { + this.titleID = title; + this.militaryRank = ((military != null) ? military.military_rank : 0u); + } + + public XOutLookAttr(OutLookGuild outguild) + { + this.guild = outguild; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs.meta b/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs.meta new file mode 100644 index 00000000..5777f56c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutLookAttr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 12cf805f1907f604ba52390ca561aaec +timeCreated: 1611403243 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOutlookData.cs b/Client/Assets/Scripts/XMainClient/XOutlookData.cs new file mode 100644 index 00000000..2aa5e7bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutlookData.cs @@ -0,0 +1,255 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOutlookData + { + public FashionPositionInfo[] OutlookList + { + get + { + return this.outlookList; + } + } + + public static FashionPositionInfo[] sharedFashionList = new FashionPositionInfo[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_ALL_END)]; + + public XBodyBag equipBag = null; + + public uint enhanceMasterLevel = 0u; + + public bool uiAvatar = false; + + public bool isMainDummy = false; + + private uint m_typeID = 0u; + + public uint hairColorID = 0u; + + public uint suitEffectID = 0u; + + public XOutlookState state = new XOutlookState(); + + public XOutlookSprite sprite = default(XOutlookSprite); + + private FashionPositionInfo[] fashionList; + + private FashionPositionInfo[] outlookList; + + public static void InitSharedFasionList() + { + XOutlookData.InitFasionList(ref XOutlookData.sharedFashionList); + } + + public static void InitFasionList(ref FashionPositionInfo[] fashionList) + { + bool flag = fashionList == null; + if (flag) + { + fashionList = new FashionPositionInfo[XFastEnumIntEqualityComparer.ToInt(FashionPosition.FASHION_ALL_END)]; + } + int i = 0; + int num = fashionList.Length; + while (i < num) + { + FashionPositionInfo fashionPositionInfo; + fashionPositionInfo.fasionID = 0; + fashionPositionInfo.itemID = 0; + fashionPositionInfo.fashionName = ""; + fashionPositionInfo.fashionDir = ""; + fashionPositionInfo.presentID = 0u; + fashionPositionInfo.replace = false; + fashionList[i] = fashionPositionInfo; + i++; + } + } + + private void SetPart(ref FashionPositionInfo[] partList, int fashionID) + { + FashionList.RowData fashionConf = XBagDocument.GetFashionConf(fashionID); + bool flag = fashionConf != null; + if (flag) + { + int equipPos = (int)fashionConf.EquipPos; + partList[equipPos] = new FashionPositionInfo(fashionID); + } + } + + public void SetData(OutLook outlook, uint type = 0u) + { + this.SetProfType(type); + List fashion = null; + uint hairID = 0u; + uint spacial_effect_id = 0u; + bool flag = outlook != null; + if (flag) + { + bool flag2 = outlook.display_fashion != null; + if (flag2) + { + hairID = outlook.display_fashion.hair_color_id; + fashion = outlook.display_fashion.display_fashions; + spacial_effect_id = outlook.display_fashion.special_effects_id; + } + bool flag3 = outlook.equips != null; + if (flag3) + { + this.enhanceMasterLevel = outlook.equips.enhancemaster; + } + } + this.SetFashionData(fashion, hairID, spacial_effect_id, false); + this.CalculateOutLookFashion(); + } + + public void SetProfType(uint type) + { + this.m_typeID = type; + } + + public uint GetProfType() + { + return this.m_typeID; + } + + public void SetDefaultFashion(short fashionTemplate) + { + XOutlookData.InitFasionList(ref this.outlookList); + XEquipDocument.GetEquiplistByFashionTemplate(fashionTemplate, ref this.outlookList); + } + + public void SetFashion(int pos, int fashionID) + { + bool flag = this.fashionList != null; + if (flag) + { + bool flag2 = pos >= 0 && pos < this.fashionList.Length; + if (flag2) + { + this.fashionList[pos] = new FashionPositionInfo(fashionID); + } + } + } + + public bool SetFashionData(uint[] fashion, bool refresh = true) + { + bool flag = fashion == null || fashion.Length == 0; + bool result; + if (flag) + { + bool flag2 = this.fashionList != null; + if (flag2) + { + XOutlookData.InitFasionList(ref this.fashionList); + } + result = true; + } + else + { + XOutlookData.InitFasionList(ref this.fashionList); + for (int i = 0; i < fashion.Length; i++) + { + this.SetPart(ref this.fashionList, (int)fashion[i]); + } + if (refresh) + { + this.CalculateOutLookFashion(); + } + result = true; + } + return result; + } + + public bool SetFashionData(List fashion, uint hairID, uint spacial_effect_id, bool refresh = true) + { + this.hairColorID = hairID; + this.suitEffectID = spacial_effect_id; + bool flag = fashion == null || fashion.Count == 0; + bool result; + if (flag) + { + bool flag2 = this.fashionList != null; + if (flag2) + { + XOutlookData.InitFasionList(ref this.fashionList); + } + result = true; + } + else + { + XOutlookData.InitFasionList(ref this.fashionList); + for (int i = 0; i < fashion.Count; i++) + { + this.SetPart(ref this.fashionList, (int)fashion[i]); + } + if (refresh) + { + this.CalculateOutLookFashion(); + } + result = true; + } + return result; + } + + public void CalculateOutLookFashion() + { + bool flag = this.fashionList == null; + if (flag) + { + XOutlookData.InitFasionList(ref this.outlookList); + XEquipDocument.RefreshFashionList(ref this.outlookList, this.GetProfType()); + } + else + { + XOutlookData.InitFasionList(ref this.outlookList); + for (int i = 0; i < this.outlookList.Length; i++) + { + this.outlookList[i] = this.fashionList[i]; + } + XEquipDocument.RefreshFashionList(ref this.outlookList, this.GetProfType()); + } + } + + public bool SetSpriteData(OutLook outlook) + { + bool flag = outlook == null; + bool result; + if (flag) + { + this.sprite.leaderid = 0u; + result = false; + } + else + { + OutLookSprite outLookSprite = outlook.sprite; + bool flag2 = outLookSprite == null; + if (flag2) + { + this.sprite.leaderid = 0u; + result = false; + } + else + { + bool flag3 = this.sprite.leaderid == outLookSprite.leaderid; + if (flag3) + { + result = false; + } + else + { + this.sprite.leaderid = outLookSprite.leaderid; + result = true; + } + } + } + return result; + } + + public void SetSpriteData(uint leaderid) + { + this.sprite.leaderid = leaderid; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOutlookData.cs.meta b/Client/Assets/Scripts/XMainClient/XOutlookData.cs.meta new file mode 100644 index 00000000..77a9949d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutlookData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3ce83d48f12a65046a12cd4cf5b83d8d +timeCreated: 1611403603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOutlookHelper.cs b/Client/Assets/Scripts/XMainClient/XOutlookHelper.cs new file mode 100644 index 00000000..6fe71862 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutlookHelper.cs @@ -0,0 +1,322 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XOutlookHelper + { + public static void SetOutLookReplace(XAttributes attributes, XEntity entity, OutLook outlookData) + { + bool flag = outlookData == null; + if (!flag) + { + XOutlookHelper.SetFashion(attributes, entity, outlookData); + XOutlookHelper.SetDesignation(attributes, entity, outlookData); + XOutlookHelper.SetPrerogative(attributes, entity, outlookData); + XOutlookHelper.SetMilitaryRank(attributes, entity, outlookData); + XOutlookHelper.SetTitle(attributes, entity, outlookData); + XOutlookHelper.SetGuildInfo(attributes, entity, outlookData); + XOutlookHelper.SetSprite(attributes, entity, outlookData); + XOutlookHelper.SetStatusState(attributes, entity, outlookData.state, false); + } + } + + private static void SetFashion(XAttributes attributes, XEntity entity, OutLook outlookData) + { + bool flag = entity != null && outlookData.display_fashion != null; + if (flag) + { + attributes.Outlook.SetData(outlookData, attributes.Outlook.GetProfType()); + XEquipComponent xequipComponent = entity.GetXComponent(XEquipComponent.uuID) as XEquipComponent; + bool flag2 = xequipComponent != null; + if (flag2) + { + xequipComponent.EquipFromAttr(); + } + } + } + + private static void SetGuildInfo(XAttributes attributes, XEntity entity, OutLook outLookData) + { + bool flag = entity != null && !entity.IsPlayer && outLookData.guild != null; + if (flag) + { + XRoleAttributes xroleAttributes = attributes as XRoleAttributes; + xroleAttributes.GuildID = outLookData.guild.id; + xroleAttributes.GuildName = outLookData.guild.name; + xroleAttributes.GuildPortrait = outLookData.guild.icon; + XGuildInfoChange @event = XEventPool.GetEvent(); + @event.Firer = entity; + XSingleton.singleton.FireEvent(@event); + } + } + + public static void SetOutLook(XAttributes attributes, OutLook outLook, bool bInit = false) + { + bool flag = outLook == null; + if (!flag) + { + attributes.Outlook.SetData(outLook, attributes.TypeID); + XOutlookHelper.SetSprite(attributes, null, outLook); + XOutlookHelper.SetStatusState(attributes, null, outLook.state, bInit); + } + } + + private static void SetDesignation(XAttributes attributes, XEntity entity, OutLook outlookData) + { + bool flag = outlookData.designation != null; + if (flag) + { + bool flag2 = entity != null && entity.BillBoard != null; + if (flag2) + { + XRoleAttributes xroleAttributes = entity.Attributes as XRoleAttributes; + xroleAttributes.DesignationID = outlookData.designation.id; + xroleAttributes.SpecialDesignation = outlookData.designation.name; + entity.BillBoard.OnDesignationInfoChange(null); + } + } + } + + private static void SetPrerogative(XAttributes attributes, XEntity entity, OutLook outlookData) + { + bool flag = outlookData.pre != null; + if (flag) + { + bool flag2 = entity != null && entity.BillBoard != null; + if (flag2) + { + XRoleAttributes xroleAttributes = entity.Attributes as XRoleAttributes; + xroleAttributes.PrerogativeSetID = outlookData.pre.setid; + xroleAttributes.PrerogativeScore = outlookData.pre.score; + entity.BillBoard.OnTitleNameChange(null); + } + } + } + + private static void SetTitle(XAttributes attributes, XEntity entity, OutLook outlookData) + { + bool flag = outlookData.title != null; + if (flag) + { + bool flag2 = entity != null && entity.BillBoard != null; + if (flag2) + { + XRoleAttributes xroleAttributes = entity.Attributes as XRoleAttributes; + xroleAttributes.TitleID = outlookData.title.titleID; + entity.BillBoard.OnTitleNameChange(null); + } + } + } + + private static void SetMilitaryRank(XAttributes attributes, XEntity entity, OutLook outlookData) + { + bool flag = outlookData.military != null; + if (flag) + { + bool flag2 = entity != null && entity.BillBoard != null; + if (flag2) + { + XRoleAttributes xroleAttributes = entity.Attributes as XRoleAttributes; + xroleAttributes.MilitaryRank = outlookData.military.military_rank; + entity.BillBoard.OnTitleNameChange(null); + } + } + } + + private static void SetEnhancemaster(XAttributes attributes, XEntity entity, OutLook outlookData) + { + bool flag = attributes == null || entity == null || outlookData.equips == null; + if (flag) + { + } + } + + private static void SetSprite(XAttributes attributes, XEntity entity, OutLook outlookData) + { + bool flag = outlookData.sprite != null && attributes.Outlook.SetSpriteData(outlookData); + if (flag) + { + bool flag2 = entity != null; + if (flag2) + { + XEquipComponent xequipComponent = entity.GetXComponent(XEquipComponent.uuID) as XEquipComponent; + bool flag3 = xequipComponent != null; + if (flag3) + { + bool flag4 = attributes.Outlook.sprite.leaderid == 0u; + if (flag4) + { + xequipComponent.AttachSprite(false, 0u); + } + else + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(attributes.Outlook.sprite.leaderid); + bool flag5 = bySpriteID == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("Can't find sprite ID = ", attributes.Outlook.sprite.leaderid.ToString(), " from sprite table.", null, null, null); + } + else + { + xequipComponent.AttachSprite(true, bySpriteID.PresentID); + } + } + } + } + } + } + + public static void SetStatusState(XAttributes attributes, XEntity entity, OutLookState outlookStateData, bool bInit) + { + bool flag = outlookStateData == null; + if (!flag) + { + bool flag2 = attributes.Outlook.state.type != outlookStateData.statetype || attributes.Outlook.state.param != outlookStateData.param || bInit; + if (flag2) + { + bool flag3 = false; + OutLookStateType type = attributes.Outlook.state.type; + XRole xrole = entity as XRole; + bool flag4 = xrole == null; + if (flag4) + { + attributes.Outlook.state.type = outlookStateData.statetype; + attributes.Outlook.state.param = outlookStateData.param; + attributes.Outlook.state.paramother = outlookStateData.paramother; + } + else + { + switch (type) + { + case OutLookStateType.OutLook_Dance: + XDanceDocument.OnDance(false, entity, attributes.Outlook.state.param); + break; + case OutLookStateType.OutLook_RidePet: + flag3 = true; + XPetDocument.TryMount(false, entity, 0u, false); + break; + case OutLookStateType.OutLook_Inherit: + XGuildInheritDocument.TryOutInherit(entity); + break; + case OutLookStateType.OutLook_Fish: + XHomeFishingDocument.OnFishingStateStop(outlookStateData.statetype, entity); + break; + case OutLookStateType.OutLook_RidePetCopilot: + flag3 = true; + XPetDocument.TryMountCopilot(false, entity, null, false); + break; + case OutLookStateType.OutLook_Trans: + XTransformDocument.OnTransform(false, entity, bInit, outlookStateData.statetype == OutLookStateType.OutLook_Trans); + break; + } + attributes.Outlook.state.type = outlookStateData.statetype; + attributes.Outlook.state.param = outlookStateData.param; + attributes.Outlook.state.paramother = outlookStateData.paramother; + switch (outlookStateData.statetype) + { + case OutLookStateType.OutLook_Normal: + xrole.PlayStateBack(); + break; + case OutLookStateType.OutLook_Sit: + { + XHomeFishingDocument specificDocument = XDocuments.GetSpecificDocument(XHomeFishingDocument.uuID); + bool isFishing = specificDocument.IsFishing; + if (isFishing) + { + specificDocument.ServerStopFishing = true; + specificDocument.FishList.Clear(); + specificDocument.ErrorLeaveFishing(); + } + xrole.PlaySpecifiedAnimation(XHomeCookAndPartyDocument.Doc.GetHomeFeastAction(xrole.Attributes.BasicTypeID % 10u)); + break; + } + case OutLookStateType.OutLook_Dance: + xrole.PlaySpecifiedAnimation(XDanceDocument.Doc.GetDanceAction(entity.PresentID, outlookStateData.param)); + XDanceDocument.OnDance(true, entity, outlookStateData.param); + break; + case OutLookStateType.OutLook_RidePet: + flag3 = true; + XPetDocument.TryMount(true, entity, outlookStateData.param, bInit); + break; + case OutLookStateType.OutLook_Inherit: + XGuildInheritDocument.TryInInherit(entity); + break; + case OutLookStateType.OutLook_Fish: + { + bool flag5 = XSingleton.singleton.XPlayerData != null && xrole.Attributes.RoleID != XSingleton.singleton.XPlayerData.RoleID; + if (flag5) + { + XSingleton.singleton.AddGreenLog("get fishing event.", null, null, null, null, null); + XFishingComponent xfishingComponent = xrole.GetXComponent(XFishingComponent.uuID) as XFishingComponent; + bool flag6 = xfishingComponent == null; + if (flag6) + { + xfishingComponent = (XSingleton.singleton.CreateComponent(xrole, XFishingComponent.uuID) as XFishingComponent); + xfishingComponent.Attached(); + } + xfishingComponent.PlayAnimationWithResult(outlookStateData.param % 2u == 1u); + } + break; + } + case OutLookStateType.OutLook_RidePetCopilot: + { + XEntity entity2 = XSingleton.singleton.GetEntity(outlookStateData.paramother); + bool flag7 = entity2 != null; + if (flag7) + { + flag3 = true; + XPetDocument.TryMountCopilot(true, entity, entity2, bInit); + } + break; + } + case OutLookStateType.OutLook_Trans: + XTransformDocument.OnTransform(true, entity, bInit, false); + break; + default: + xrole.PlayStateBack(); + break; + } + bool flag8 = flag3; + if (flag8) + { + XEquipComponent xequipComponent = entity.GetXComponent(XEquipComponent.uuID) as XEquipComponent; + bool flag9 = xequipComponent != null; + if (flag9) + { + xequipComponent.EquipFromAttr(); + } + } + } + } + } + } + + public static bool CanPlaySpecifiedAnimation(XEntity entity) + { + bool flag = entity == null || entity.Attributes == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = entity.Attributes.Outlook.state.type == OutLookStateType.OutLook_Trans; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_STATE_CANTCHANGE, "fece00"); + result = false; + } + else + { + result = true; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOutlookHelper.cs.meta b/Client/Assets/Scripts/XMainClient/XOutlookHelper.cs.meta new file mode 100644 index 00000000..f1292f90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutlookHelper.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 01654c031f01ca149b62b87fd6859d32 +timeCreated: 1611402953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOutlookSprite.cs b/Client/Assets/Scripts/XMainClient/XOutlookSprite.cs new file mode 100644 index 00000000..f6f98e04 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutlookSprite.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + internal struct XOutlookSprite + { + public uint leaderid; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOutlookSprite.cs.meta b/Client/Assets/Scripts/XMainClient/XOutlookSprite.cs.meta new file mode 100644 index 00000000..215ae7e0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutlookSprite.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b3c99b6a053e3424baa9ec9e73b55cad +timeCreated: 1611404390 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XOutlookState.cs b/Client/Assets/Scripts/XMainClient/XOutlookState.cs new file mode 100644 index 00000000..1911a73c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutlookState.cs @@ -0,0 +1,30 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XOutlookState + { + public bool bMounted + { + get + { + return this.type == OutLookStateType.OutLook_RidePet || this.type == OutLookStateType.OutLook_RidePetCopilot; + } + } + + public bool bDancing + { + get + { + return this.type == OutLookStateType.OutLook_Dance; + } + } + + public OutLookStateType type; + + public uint param; + + public ulong paramother; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XOutlookState.cs.meta b/Client/Assets/Scripts/XMainClient/XOutlookState.cs.meta new file mode 100644 index 00000000..a141a047 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XOutlookState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7482bb51c1ed9e44498d40d81140d63c +timeCreated: 1611403943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPKInvitationBehaviour.cs b/Client/Assets/Scripts/XMainClient/XPKInvitationBehaviour.cs new file mode 100644 index 00000000..444a808d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPKInvitationBehaviour.cs @@ -0,0 +1,29 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XPKInvitationBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public IXUIWrapContent m_WrapContent; + + public IXUIButton m_IgnoreAll; + + public IXUIButton m_Help; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_ScrollView = (base.transform.Find("Bg/List").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_WrapContent = (base.transform.Find("Bg/List/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_WrapContent.SetVisible(false); + this.m_IgnoreAll = (base.transform.Find("Bg/Submmit").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (base.transform.Find("Bg/Help").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPKInvitationBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XPKInvitationBehaviour.cs.meta new file mode 100644 index 00000000..c26af05a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPKInvitationBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00a864988c306e24c926692aee596773 +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPKInvitationDocument.cs b/Client/Assets/Scripts/XMainClient/XPKInvitationDocument.cs new file mode 100644 index 00000000..6253ecec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPKInvitationDocument.cs @@ -0,0 +1,220 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPKInvitationDocument : XDocComponent + { + public override uint ID + { + get + { + return XPKInvitationDocument.uuID; + } + } + + public uint InvitationCount + { + get + { + return this.m_InvitationCount; + } + set + { + this.m_InvitationCount = value; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_PK, true); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("PKInvitationDocument"); + + public List AllInvitation = new List(); + + public List PKInfoList = new List(); + + private uint m_InvitationCount; + + public void ReqAllPKInvitation() + { + RpcC2M_InvFightReqAll rpcC2M_InvFightReqAll = new RpcC2M_InvFightReqAll(); + rpcC2M_InvFightReqAll.oArg.reqtype = InvFightReqType.IFRT_REQ_LIST; + XSingleton.singleton.Send(rpcC2M_InvFightReqAll); + } + + public void SendPKInvitation(ulong roleID) + { + RpcC2M_InvFightReqAll rpcC2M_InvFightReqAll = new RpcC2M_InvFightReqAll(); + rpcC2M_InvFightReqAll.oArg.reqtype = InvFightReqType.IFRT_INV_ONE; + rpcC2M_InvFightReqAll.oArg.roleid = roleID; + XSingleton.singleton.Send(rpcC2M_InvFightReqAll); + } + + public void AcceptInvitation(ulong inviteID) + { + RpcC2M_InvFightReqAll rpcC2M_InvFightReqAll = new RpcC2M_InvFightReqAll(); + rpcC2M_InvFightReqAll.oArg.reqtype = InvFightReqType.IFRT_ACCEPT_ONE; + rpcC2M_InvFightReqAll.oArg.invid = inviteID; + XSingleton.singleton.Send(rpcC2M_InvFightReqAll); + } + + public void RejectInvitation(ulong inviteID) + { + RpcC2M_InvFightReqAll rpcC2M_InvFightReqAll = new RpcC2M_InvFightReqAll(); + rpcC2M_InvFightReqAll.oArg.reqtype = InvFightReqType.IFRT_REFUSH_ONE; + rpcC2M_InvFightReqAll.oArg.invid = inviteID; + XSingleton.singleton.Send(rpcC2M_InvFightReqAll); + } + + public void IgnoreAllInvitation() + { + RpcC2M_InvFightReqAll rpcC2M_InvFightReqAll = new RpcC2M_InvFightReqAll(); + rpcC2M_InvFightReqAll.oArg.reqtype = InvFightReqType.IFRT_IGNORE_ALL; + XSingleton.singleton.Send(rpcC2M_InvFightReqAll); + } + + public void AskInvitePKAgain() + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PK_AGAIN_SEND"), "fece00"); + PtcC2G_InvfightAgainReqC2G proto = new PtcC2G_InvfightAgainReqC2G(); + XSingleton.singleton.Send(proto); + } + + public void OnGetPKInfo(InvFightArg oArg, InvFightRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = oRes.errorcode == ErrorCode.ERR_INVFIGHT_INV_TIME_OVER; + if (flag2) + { + this.AllInvitation.Clear(); + this.InvitationCount = 0u; + } + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + switch (oArg.reqtype) + { + case InvFightReqType.IFRT_INV_ONE: + { + bool flag3 = oArg.iscrossSpecified && oArg.iscross; + if (flag3) + { + bool isPlatFriendOnlineSpecified = oRes.isPlatFriendOnlineSpecified; + if (isPlatFriendOnlineSpecified) + { + bool isPlatFriendOnline = oRes.isPlatFriendOnline; + if (isPlatFriendOnline) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PLAT_FRIEND_PK_ONLINE"), "fece00"); + } + else + { + bool accountSpecified = oArg.accountSpecified; + if (accountSpecified) + { + DlgBase.singleton.NoticeFriendShare(oArg.account, XFriendsView.ShareType.PK); + } + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PK_SEND_INVITATION"), "fece00"); + } + break; + } + case InvFightReqType.IFRT_REFUSH_ONE: + this.RemoveInvitation(oArg.invid); + break; + case InvFightReqType.IFRT_IGNORE_ALL: + this.AllInvitation.Clear(); + this.InvitationCount = 0u; + DlgBase.singleton.RefreshList(); + break; + case InvFightReqType.IFRT_REQ_LIST: + this.AllInvitation = oRes.roles; + DlgBase.singleton.StartTimer(); + DlgBase.singleton.RefreshList(); + break; + case InvFightReqType.IFRT_ACCEPT_ONE: + this.RemoveInvitation(oArg.invid); + break; + } + } + } + + private void RemoveInvitation(ulong inviteID) + { + bool flag = false; + for (int i = 0; i < this.AllInvitation.Count; i++) + { + bool flag2 = this.AllInvitation[i].invID == inviteID; + if (flag2) + { + flag = true; + this.AllInvitation.RemoveAt(i); + break; + } + } + bool flag3 = flag; + if (flag3) + { + uint invitationCount = this.InvitationCount; + this.InvitationCount = invitationCount - 1u; + } + DlgBase.singleton.RefreshList(); + } + + public void PKInvitationNotify(PtcM2C_InvFightNotify roPtc) + { + bool flag = roPtc.Data.ntftype == InvFightNotifyType.IFNT_REFUSE_ME; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PK_INVITATION_REJECT", new object[] + { + roPtc.Data.name + }), "fece00"); + } + else + { + bool flag2 = roPtc.Data.ntftype == InvFightNotifyType.IFNT_INVITE_ME; + if (flag2) + { + this.InvitationCount = roPtc.Data.count; + } + } + } + + public void EnterFightScene(PtcG2C_InvFightBefEnterSceneNtf roPtc) + { + this.PKInfoList.Clear(); + for (int i = 0; i < roPtc.Data.roles.Count; i++) + { + RoleSmallInfo roleSmallInfo = new RoleSmallInfo(); + roleSmallInfo.roleID = roPtc.Data.roles[i].roleID; + roleSmallInfo.roleName = roPtc.Data.roles[i].roleName; + roleSmallInfo.roleLevel = roPtc.Data.roles[i].roleLevel; + roleSmallInfo.roleProfession = roPtc.Data.roles[i].roleProfession; + bool flag = roleSmallInfo.roleID != XSingleton.singleton.XPlayerData.EntityID; + if (flag) + { + this.PKInfoList.Add(roleSmallInfo); + } + else + { + this.PKInfoList.Insert(0, roleSmallInfo); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPKInvitationDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPKInvitationDocument.cs.meta new file mode 100644 index 00000000..47c284df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPKInvitationDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d50384336affe14bbf752662ba66ca5 +timeCreated: 1611403901 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPKInvitationView.cs b/Client/Assets/Scripts/XMainClient/XPKInvitationView.cs new file mode 100644 index 00000000..79d1f298 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPKInvitationView.cs @@ -0,0 +1,251 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPKInvitationView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/pkdlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XPKInvitationDocument _Doc; + + private uint _CDToken = 0u; + + private List m_TimeLabelList = new List(); + + private List m_TimeInvID = new List(); + + private Dictionary m_TimeDic = new Dictionary(); + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.KillTimer(this._CDToken); + bool flag = false; + for (int i = 0; i < this._Doc.AllInvitation.Count; i++) + { + bool flag2 = this._Doc.AllInvitation[i].ctime > 0u; + if (flag2) + { + flag = true; + break; + } + } + bool flag3 = !flag; + if (flag3) + { + this._Doc.InvitationCount = 0u; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + base.uiBehaviour.m_WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnWrapContentUpdate)); + base.uiBehaviour.m_IgnoreAll.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnIgnoreAllClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpBtnClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + base.uiBehaviour.m_WrapContent.SetVisible(false); + this.m_TimeLabelList.Clear(); + this.m_TimeInvID.Clear(); + this.m_TimeDic.Clear(); + this._Doc.ReqAllPKInvitation(); + } + + public void StartTimer() + { + bool flag = !base.IsVisible(); + if (!flag) + { + for (int i = 0; i < this._Doc.AllInvitation.Count; i++) + { + this.m_TimeDic[this._Doc.AllInvitation[i].invID] = this._Doc.AllInvitation[i].ctime; + } + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + } + + private void LeftTimeUpdate(object o) + { + for (int i = 0; i < this._Doc.AllInvitation.Count; i++) + { + bool flag = this._Doc.AllInvitation[i].ctime > 0u; + if (flag) + { + InvFightRoleBrief invFightRoleBrief = this._Doc.AllInvitation[i]; + uint ctime = invFightRoleBrief.ctime; + invFightRoleBrief.ctime = ctime - 1u; + } + this.m_TimeDic[this._Doc.AllInvitation[i].invID] = this._Doc.AllInvitation[i].ctime; + int num = this.m_TimeInvID.IndexOf(this._Doc.AllInvitation[i].invID); + bool flag2 = num >= 0 && num < this.m_TimeLabelList.Count; + if (flag2) + { + IXUILabel ixuilabel = this.m_TimeLabelList[num]; + bool flag3 = ixuilabel.IsVisible(); + if (flag3) + { + bool flag4 = this._Doc.AllInvitation[i].ctime > 0u; + if (flag4) + { + ixuilabel.SetText(string.Format("{0}{1}", this._Doc.AllInvitation[i].ctime, XSingleton.singleton.GetString("SECOND_DUARATION"))); + } + else + { + ixuilabel.SetText(XSingleton.singleton.GetString("PK_TIME_END")); + } + } + } + } + XSingleton.singleton.KillTimer(this._CDToken); + this._CDToken = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LeftTimeUpdate), null); + } + + public void RefreshList() + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_WrapContent.SetVisible(true); + base.uiBehaviour.m_WrapContent.SetContentCount(this._Doc.AllInvitation.Count, false); + } + } + + private void OnWrapContentUpdate(Transform t, int index) + { + List allInvitation = this._Doc.AllInvitation; + bool flag = index >= allInvitation.Count; + if (!flag) + { + this.SetInvitationInfo(t, allInvitation[index]); + } + } + + private void SetInvitationInfo(Transform t, InvFightRoleBrief info) + { + bool flag = info == null; + if (!flag) + { + IXUISprite ixuisprite = t.Find("head").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = t.Find("Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Position").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = t.Find("time").GetComponent("XUILabel") as IXUILabel; + IXUIButton ixuibutton = t.Find("yesBtn").GetComponent("XUIButton") as IXUIButton; + IXUIButton ixuibutton2 = t.Find("noBtn").GetComponent("XUIButton") as IXUIButton; + GameObject gameObject = t.Find("qqLaunch").gameObject; + GameObject gameObject2 = t.Find("wxLaunch").gameObject; + ixuisprite.SetSprite(XSingleton.singleton.GetProfHeadIcon2((int)info.profession)); + ixuilabelSymbol.InputText = XTitleDocument.GetTitleWithFormat(info.title, info.name); + ixuilabel.SetText(info.level.ToString()); + ixuilabel2.SetText(XSingleton.singleton.GetProfName((int)info.profession)); + gameObject.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && info.isplatfriend); + gameObject2.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat && info.isplatfriend); + ixuibutton.ID = info.invID; + ixuibutton2.ID = info.invID; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAcceptBtnClicked)); + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRejectBtnClicked)); + int num = this.m_TimeLabelList.IndexOf(ixuilabel3); + bool flag2 = num >= 0 && num < this.m_TimeInvID.Count; + if (flag2) + { + this.m_TimeInvID[num] = info.invID; + } + else + { + this.m_TimeLabelList.Add(ixuilabel3); + this.m_TimeInvID.Add(info.invID); + } + uint num2; + bool flag3 = this.m_TimeDic.TryGetValue(info.invID, out num2); + if (flag3) + { + bool flag4 = num2 > 0u; + if (flag4) + { + ixuilabel3.SetText(string.Format("{0}{1}", num2, XSingleton.singleton.GetString("SECOND_DUARATION"))); + } + else + { + ixuilabel3.SetText(XSingleton.singleton.GetString("PK_TIME_END")); + } + } + } + } + + private bool OnAcceptBtnClicked(IXUIButton btn) + { + uint num; + bool flag = this.m_TimeDic.TryGetValue(btn.ID, out num); + if (flag) + { + bool flag2 = num > 0u; + if (flag2) + { + this._Doc.AcceptInvitation(btn.ID); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PK_TIME_END_TIP"), "fece00"); + } + } + return true; + } + + private bool OnRejectBtnClicked(IXUIButton btn) + { + this._Doc.RejectInvitation(btn.ID); + return true; + } + + private bool OnIgnoreAllClicked(IXUIButton btn) + { + this._Doc.IgnoreAllInvitation(); + return true; + } + + private bool OnHelpBtnClicked(IXUIButton btn) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_PK); + return true; + } + + private bool OnCloseBtnClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPKInvitationView.cs.meta b/Client/Assets/Scripts/XMainClient/XPKInvitationView.cs.meta new file mode 100644 index 00000000..78984dce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPKInvitationView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: decbb83793937544da0237e62bdab2c7 +timeCreated: 1611404687 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPPTDocument.cs b/Client/Assets/Scripts/XMainClient/XPPTDocument.cs new file mode 100644 index 00000000..43acb57e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPPTDocument.cs @@ -0,0 +1,30 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPPTDocument : XDocComponent + { + public override uint ID + { + get + { + return XPPTDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("PPTDocument"); + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + DlgBase.singleton.UnInit(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPPTDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPPTDocument.cs.meta new file mode 100644 index 00000000..df51a916 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPPTDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 23a7df87a2f156d49ae425637e9213dd +timeCreated: 1611403456 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs b/Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs new file mode 100644 index 00000000..e9feccd0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs @@ -0,0 +1,20 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XPPTRankInfo : XBaseRankInfo + { + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, XBaseRankInfo.GetUnderLineName(this.name)); + this.id = data.RoleId; + this.rank = data.Rank; + this.value = (ulong)data.powerpoint; + this.guildicon = data.guildicon; + this.guildname = data.guildname; + this.startType = data.starttype; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs.meta new file mode 100644 index 00000000..93e1adfc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPPTRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f9535b05d410084296cdbba71a7a973 +timeCreated: 1611403611 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPPTRankList.cs b/Client/Assets/Scripts/XMainClient/XPPTRankList.cs new file mode 100644 index 00000000..ca9ffbdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPPTRankList.cs @@ -0,0 +1,35 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XPPTRankList : XBaseRankList + { + public XPPTRankList() + { + this.type = XRankType.PPTRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XPPTRankInfo(); + } + + public override XBaseRankInfo GetLatestMyRankInfo() + { + bool flag = this.myRankInfo == null || this.myRankInfo.rank != XRankDocument.INVALID_RANK; + XBaseRankInfo myRankInfo; + if (flag) + { + myRankInfo = this.myRankInfo; + } + else + { + this.myRankInfo.name = XSingleton.singleton.Player.Name; + this.myRankInfo.value = (ulong)XCharacterDocument.GetCharacterPPT(); + myRankInfo = this.myRankInfo; + } + return myRankInfo; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPPTRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XPPTRankList.cs.meta new file mode 100644 index 00000000..b830ca92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPPTRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 357094a818f40d24bbcf0d7f74c3366a +timeCreated: 1611403558 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPVPActivityDocument.cs b/Client/Assets/Scripts/XMainClient/XPVPActivityDocument.cs new file mode 100644 index 00000000..7fadeee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPVPActivityDocument.cs @@ -0,0 +1,40 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPVPActivityDocument : XDocComponent + { + public override uint ID + { + get + { + return XPVPActivityDocument.uuID; + } + } + + public PVPActivityList PVPActivityTable + { + get + { + return XPVPActivityDocument._pvpActivityTable; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("PVPActivityDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static PVPActivityList _pvpActivityTable = new PVPActivityList(); + + public static void Execute(OnLoadedCallback callback = null) + { + XPVPActivityDocument.AsyncLoader.AddTask("Table/PVPActivityList", XPVPActivityDocument._pvpActivityTable, false); + XPVPActivityDocument.AsyncLoader.Execute(callback); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPVPActivityDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPVPActivityDocument.cs.meta new file mode 100644 index 00000000..fd87eb7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPVPActivityDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 56475a72a8d2d254ca0861daaa2b527f +timeCreated: 1611403743 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPandoraSDKDocument.cs b/Client/Assets/Scripts/XMainClient/XPandoraSDKDocument.cs new file mode 100644 index 00000000..51eb45b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPandoraSDKDocument.cs @@ -0,0 +1,448 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPandoraSDKDocument : XSingleton + { + private bool hasLogin = false; + + public void PandoraLogin() + { + XSingleton.singleton.AddLog("XPandoraMgr try login", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("XPandoraMgr Component missing", null, null, null, null, null); + } + else + { + bool flag3 = XSingleton.singleton.XPlayerData == null; + if (!flag3) + { + int @int = XSingleton.singleton.GetInt("PandoraSDKUseHttps"); + XSingleton.singleton.AddLog("XPandoraMgr https = " + @int, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPandoraManager.SetUseHttps(@int); + XSingleton.singleton.AddGreenLog("PandoraLogin--------------------------------------------", null, null, null, null, null); + string acctype = "test"; + bool flag4 = XSingleton.singleton.AccountType == LoginType.LOGIN_QQ_PF; + if (flag4) + { + acctype = "qq"; + } + else + { + bool flag5 = XSingleton.singleton.AccountType == LoginType.LGOIN_WECHAT_PF; + if (flag5) + { + acctype = "wx"; + } + } + string payToken = "test"; + string payBill = XSingleton.singleton.XPlatform.GetPayBill(); + bool flag6 = payBill != ""; + if (flag6) + { + Dictionary dictionary = Json.Deserialize(payBill) as Dictionary; + bool flag7 = dictionary != null; + if (flag7) + { + object obj; + bool flag8 = dictionary.TryGetValue("pay_token", out obj); + if (flag8) + { + payToken = obj.ToString(); + } + } + } + string platID = ""; + bool flag9 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.Android; + if (flag9) + { + platID = "1"; + } + else + { + bool flag10 = XSingleton.singleton.XPlatform.Platfrom() == XPlatformType.IOS; + if (flag10) + { + platID = "0"; + } + } + XSingleton.singleton.XPandoraManager.PandoraLogin(XSingleton.singleton.OpenID, acctype, XSingleton.singleton.AreaId, XSingleton.singleton.ServerID.ToString(), XSingleton.singleton.AppId, XSingleton.singleton.XPlayerData.RoleID.ToString(), XSingleton.singleton.TokenCache, payToken, XSingleton.singleton.Version, platID); + this.hasLogin = true; + } + } + } + } + + public void PandoraLogout() + { + XSingleton.singleton.AddLog("PandoraLogout", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = this.hasLogin; + if (flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + XSingleton.singleton.AddGreenLog("PandoraLogout--------------------------------------------", null, null, null, null, null); + XSingleton.singleton.XPandoraManager.PandoraLogout(); + this.hasLogin = false; + } + } + } + + public void CheckPandoraPLPanel() + { + XSingleton.singleton.AddLog("PandoraSDK CheckPandoraPLPanel", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + bool flag3 = XSingleton.singleton.SceneType != SceneType.SCENE_HALL; + if (!flag3) + { + bool flag4 = !this.hasLogin; + if (!flag4) + { + XSingleton.singleton.AddGreenLog("PandoraSDK CheckPandoraPLPanel ---------------------------", null, null, null, null, null); + this.ResetAllPopPLParent(); + XSingleton.singleton.XPandoraManager.PopPLPanel(); + } + } + } + } + } + + public void ResetAllPopPLParent() + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + bool flag3 = !this.hasLogin; + if (!flag3) + { + DlgBase.singleton.SetVisible(true, true); + XSingleton.singleton.XPandoraManager.SetPandoraPanelParent("pop", DlgBase.singleton.uiBehaviour.gameObject); + DlgBase.singleton.SetVisible(false, true); + } + } + } + } + + public void NoticePandoraShareResult(string result) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + XSingleton.singleton.AddLog("NoticePandoraShareResult result = " + result, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPandoraManager.NoticePandoraShareResult(result); + } + } + } + + public void NoticePandoraBuyGoodsResult(string result) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + XSingleton.singleton.AddLog("NoticePandoraBuyGoodsResult result = " + result, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPandoraManager.NoticePandoraBuyGoodsResult(result); + } + } + } + + public void CloseAllPandoraPanel() + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + XSingleton.singleton.AddLog("Pandora CloseAllPandoraPanel", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPandoraManager.CloseAllPandoraPanel(); + } + } + } + + public void ClosePandoraTabPanel(string module) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + XSingleton.singleton.AddLog("Pandora ClosePandoraTabPanel", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPandoraManager.ClosePandoraTabPanel(module); + } + } + } + + public bool IsActivityTabShow(int sysID) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (flag2) + { + result = false; + } + else + { + XSingleton.singleton.AddLog("IsActivityTabShow sysID = " + sysID, null, null, null, null, null, XDebugColor.XDebug_None); + result = XSingleton.singleton.XPandoraManager.IsActivityTabShow(sysID); + } + } + return result; + } + + public bool IsPandoraSDKTab(XSysDefine sys, string module) + { + List pandoraSDKTabListInfo = XSingleton.singleton.GetPandoraSDKTabListInfo(module); + bool flag = pandoraSDKTabListInfo != null; + if (flag) + { + for (int i = 0; i < pandoraSDKTabListInfo.Count; i++) + { + bool flag2 = pandoraSDKTabListInfo[i].sysID == (int)sys; + if (flag2) + { + return true; + } + } + } + return false; + } + + public List GetPandoraSDKTabListInfo(string module) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + List result; + if (flag) + { + result = null; + } + else + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (flag2) + { + result = null; + } + else + { + List list = new List(); + List allTabInfo = XSingleton.singleton.XPandoraManager.GetAllTabInfo(); + for (int i = 0; i < allTabInfo.Count; i++) + { + bool flag3 = allTabInfo[i].moduleName == module; + if (flag3) + { + XSingleton.singleton.AddLog("GetPandoraSDKTabInfo find moduleName = " + module, null, null, null, null, null, XDebugColor.XDebug_None); + list.Add(allTabInfo[i]); + } + } + result = this.SortPandoraTab(list); + } + } + return result; + } + + public static int ComparePandoraSDKTab(ActivityTabInfo tab1, ActivityTabInfo tab2) + { + return tab1.sort - tab2.sort; + } + + public List SortPandoraTab(List resultList) + { + List list = new List(); + int i = 0; + while (i < resultList.Count) + { + bool flag = resultList[i].sort != 999; + if (flag) + { + list.Add(resultList[i]); + resultList.RemoveAt(i); + } + else + { + i++; + } + } + list.Sort(new Comparison(XPandoraSDKDocument.ComparePandoraSDKTab)); + list.AddRange(resultList); + return list; + } + + public void ShowPandoraTab(int sysID, bool show, GameObject parent) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + ActivityTabInfo pandoraSDKTabInfo = this.GetPandoraSDKTabInfo(sysID); + bool flag3 = pandoraSDKTabInfo == null; + if (!flag3) + { + if (show) + { + this.ResetAllPopPLParent(); + } + if (show) + { + XSingleton.singleton.XPandoraManager.SetPandoraPanelParent(pandoraSDKTabInfo.moduleName, parent); + } + Dictionary dictionary = new Dictionary(); + dictionary["type"] = (show ? "open" : "hide"); + dictionary["content"] = pandoraSDKTabInfo.activityName; + string json = Json.Serialize(dictionary); + XSingleton.singleton.XPandoraManager.PandoraDoJson(json); + } + } + } + } + + public ActivityTabInfo GetPandoraSDKTabInfo(int sysID) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + ActivityTabInfo result; + if (flag) + { + result = null; + } + else + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (flag2) + { + result = null; + } + else + { + XSingleton.singleton.AddLog("GetPandoraSDKTabInfo sysID = " + sysID, null, null, null, null, null, XDebugColor.XDebug_None); + List allTabInfo = XSingleton.singleton.XPandoraManager.GetAllTabInfo(); + for (int i = 0; i < allTabInfo.Count; i++) + { + bool flag3 = allTabInfo[i].sysID == sysID; + if (flag3) + { + XSingleton.singleton.AddLog("GetPandoraSDKTabInfo find tabName = " + sysID, null, null, null, null, null, XDebugColor.XDebug_None); + return allTabInfo[i]; + } + } + result = null; + } + } + return result; + } + + public bool HasRedpoint(string module) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (flag2) + { + result = false; + } + else + { + List allTabInfo = XSingleton.singleton.XPandoraManager.GetAllTabInfo(); + for (int i = 0; i < allTabInfo.Count; i++) + { + bool flag3 = allTabInfo[i].moduleName == module && allTabInfo[i].tabShow && allTabInfo[i].redPointShow; + if (flag3) + { + return true; + } + } + result = false; + } + } + return result; + } + + public void PandoraDoJson(string json) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + XSingleton.singleton.XPandoraManager.PandoraDoJson(json); + } + } + } + + public void PandoraOnJsonEvent(string json) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + XSingleton.singleton.XPandoraManager.OnJsonPandoraEvent(json); + } + } + } + + public void SetLastFailSceneID(uint id) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_PandoraSDK); + if (!flag) + { + bool flag2 = XSingleton.singleton.XPandoraManager == null; + if (!flag2) + { + List intList = XSingleton.singleton.GetIntList("PandoraSDKCheckFailSceneType"); + SceneType sceneType = XSingleton.singleton.GetSceneType(id); + int item = XFastEnumIntEqualityComparer.ToInt(sceneType); + bool flag3 = intList.Contains(item); + if (flag3) + { + XSingleton.singleton.XPandoraManager.PopPreLossActivity(true); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPandoraSDKDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPandoraSDKDocument.cs.meta new file mode 100644 index 00000000..0f34203a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPandoraSDKDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b278cf4951583ff44850104dd4f5fd30 +timeCreated: 1611404385 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs new file mode 100644 index 00000000..3adfafc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs @@ -0,0 +1,96 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPandoraSDKPopView : DlgBase + { + public override string fileName + { + get + { + return "Hall/PandoraSDKPopDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool isHideTutorial + { + get + { + return true; + } + } + + public override bool isPopup + { + get + { + return true; + } + } + + protected override void OnShow() + { + base.OnShow(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = XSingleton.singleton.GameCamera != null && XSingleton.singleton.GameCamera.UnityCamera != null && !XSingleton.singleton.GameCamera.UnityCamera.enabled; + if (flag) + { + XSingleton.singleton.GameCamera.UnityCamera.enabled = true; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnHide() + { + base.OnHide(); + } + + protected override void OnUnload() + { + XSingleton.singleton.AddLog("XPandoraSDKPopView OnUnload", null, null, null, null, null, XDebugColor.XDebug_None); + base.OnUnload(); + } + + private void OnCloseClicked(IXUISprite btn) + { + XSingleton.singleton.AddLog("XPandoraSDKPopView OnCloseClicked", null, null, null, null, null, XDebugColor.XDebug_None); + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs.meta b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs.meta new file mode 100644 index 00000000..da433de2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 55e4480222e1cce48ae0a1f647303efe +timeCreated: 1611403740 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPandoraSDKPopViewBehaviour.cs b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopViewBehaviour.cs new file mode 100644 index 00000000..cd2b984d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopViewBehaviour.cs @@ -0,0 +1,16 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XPandoraSDKPopViewBehaviour : DlgBehaviourBase + { + public IXUISprite m_Close; + + private void Awake() + { + this.m_Close = (base.transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPandoraSDKPopViewBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopViewBehaviour.cs.meta new file mode 100644 index 00000000..83fee12c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPandoraSDKPopViewBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 653cab3c94121e6489163834532f4ee1 +timeCreated: 1611403849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPartnerDocument.cs b/Client/Assets/Scripts/XMainClient/XPartnerDocument.cs new file mode 100644 index 00000000..4201144e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPartnerDocument.cs @@ -0,0 +1,655 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPartnerDocument : XDocComponent + { + public override uint ID + { + get + { + return XPartnerDocument.uuID; + } + } + + public static XPartnerDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XPartnerDocument.uuID) as XPartnerDocument; + } + } + + public static PartnerTable PartnerTab + { + get + { + return XPartnerDocument.m_partnerTab; + } + } + + public static PartnerLivenessTable PartnerLivenessTab + { + get + { + return XPartnerDocument.m_partnerLivenessTab; + } + } + + public static PartnerWelfare PartnerWelfareTab + { + get + { + return XPartnerDocument.m_partnerWelfareTab; + } + } + + public ulong PartnerID + { + get + { + return this.m_partnerID; + } + } + + public uint Degree + { + get + { + return this.m_degree; + } + } + + public uint CurPartnerLevel + { + get + { + return this.m_curPartnerLevel; + } + set + { + this.m_curPartnerLevel = value; + } + } + + public uint LastLeaveTime + { + get + { + return this.m_lastLeaveTime; + } + } + + public Dictionary PartnerDic + { + get + { + return this.m_partnerDic; + } + } + + public ulong RoleId + { + get + { + return XSingleton.singleton.XPlayerData.RoleID; + } + } + + public bool IsHadLivenessRedPoint + { + get + { + return this.m_bIsHadLivenessRedPoint; + } + set + { + bool flag = this.m_bIsHadLivenessRedPoint != value; + if (flag) + { + this.m_bIsHadLivenessRedPoint = value; + DlgBase.singleton.SetRedPoint(TabIndex.Partner, this.IsHadRedDot); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshUIRedPoint(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.UpdateRedpointUI(); + } + } + } + } + + public bool IsHadShopRedPoint + { + get + { + return this.m_bIsHadShopRedPoint; + } + set + { + bool flag = this.m_bIsHadShopRedPoint != value; + if (flag) + { + this.m_bIsHadShopRedPoint = value; + DlgBase.singleton.SetRedPoint(TabIndex.Partner, this.IsHadRedDot); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshUIRedPoint(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.UpdateRedpointUI(); + } + } + } + } + + public bool IsHadRedDot + { + get + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Partner); + return !flag && (this.IsHadShopRedPoint | this.IsHadLivenessRedPoint); + } + } + + public uint CurLevelMaxExp + { + get + { + bool flag = this.m_curPartnerLevel == XPartnerDocument.m_partnerTab.Table[XPartnerDocument.m_partnerTab.Table.Length - 1].level; + uint partnerlevel; + if (flag) + { + partnerlevel = this.m_curPartnerLevel; + } + else + { + partnerlevel = this.m_curPartnerLevel + 1u; + } + PartnerTable.RowData partnerRow = this.GetPartnerRow(partnerlevel); + bool flag2 = partnerRow == null; + uint result; + if (flag2) + { + result = 0u; + } + else + { + result = partnerRow.degree; + } + return result; + } + } + + public List ShopRecordList + { + get + { + return this.m_shopRecordList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XPartnerDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static PartnerTable m_partnerTab = new PartnerTable(); + + private static PartnerLivenessTable m_partnerLivenessTab = new PartnerLivenessTable(); + + private static PartnerWelfare m_partnerWelfareTab = new PartnerWelfare(); + + public static readonly int MaxAvata = 4; + + public PartnerMainHandler View; + + public PartnerShopRecordsHandler ShopRecordsHandler; + + private ulong m_partnerID = 0UL; + + private uint m_degree = 0u; + + private uint m_curPartnerLevel = 0u; + + private uint m_lastLeaveTime = 0u; + + private Dictionary m_partnerDic = new Dictionary(); + + private bool m_bIsHadLivenessRedPoint = false; + + private bool m_bIsHadShopRedPoint = false; + + public static PartnerLiveness PartnerLivenessData = null; + + private List m_shopRecordList = new List(); + + public bool IsOPen() + { + return false; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XPartnerDocument.AsyncLoader.AddTask("Table/Partner", XPartnerDocument.m_partnerTab, false); + XPartnerDocument.AsyncLoader.AddTask("Table/PartnerLiveness", XPartnerDocument.m_partnerLivenessTab, false); + XPartnerDocument.AsyncLoader.AddTask("Table/PartnerWelfare", XPartnerDocument.m_partnerWelfareTab, false); + XPartnerDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + public static void OnTableLoaded() + { + XPartnerDocument.PartnerLivenessData = new PartnerLiveness(XPartnerDocument.m_partnerLivenessTab); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public PartnerTable.RowData GetPartnerRow(uint Partnerlevel) + { + return XPartnerDocument.m_partnerTab.GetBylevel(Partnerlevel); + } + + public Partner GetMyParnerInfo() + { + Partner result = null; + this.PartnerDic.TryGetValue(this.RoleId, out result); + return result; + } + + public bool IsMyPartner(ulong roleId) + { + bool flag = this.m_partnerID == 0UL; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this.m_partnerDic.ContainsKey(roleId); + result = flag2; + } + return result; + } + + public void ReqPartnerInfo() + { + RpcC2M_GetPartnerInfo rpc = new RpcC2M_GetPartnerInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReqPartnerDetailInfo() + { + RpcC2M_GetPartnerDetailInfo rpc = new RpcC2M_GetPartnerDetailInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ReqLeavePartner() + { + RpcC2M_LeavePartner rpc = new RpcC2M_LeavePartner(); + XSingleton.singleton.Send(rpc); + } + + public void ReqCancleLeavePartner() + { + RpcC2M_CancelLeavePartner rpc = new RpcC2M_CancelLeavePartner(); + XSingleton.singleton.Send(rpc); + } + + public void ReqShopRecords() + { + RpcC2M_GetPartnerShopRecord rpc = new RpcC2M_GetPartnerShopRecord(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetPartnerInfoBack(GetPartnerInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + this.m_partnerDic.Clear(); + this.m_partnerID = oRes.id; + bool flag2 = oRes.id > 0UL; + if (flag2) + { + this.m_degree = oRes.degree; + this.m_curPartnerLevel = oRes.level; + this.m_lastLeaveTime = oRes.last_leave_time; + this.IsHadLivenessRedPoint = oRes.liveness_redpoint; + this.IsHadShopRedPoint = oRes.shop_redpoint; + for (int i = 0; i < oRes.memberids.Count; i++) + { + Partner partner = new Partner(); + partner.MemberId = oRes.memberids[i]; + this.m_partnerDic.Add(oRes.memberids[i], partner); + } + } + else + { + this.IsHadLivenessRedPoint = false; + this.IsHadShopRedPoint = false; + } + DlgBase.singleton.SetRedPoint(TabIndex.Partner, this.IsHadRedDot); + } + } + + public void OnGetPartDetailInfoBack(GetPartnerDetailInfoRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_partnerDic.Clear(); + bool flag4 = this.m_partnerID > 0UL; + if (flag4) + { + this.m_degree = oRes.degree; + this.m_curPartnerLevel = oRes.level; + this.m_bIsHadLivenessRedPoint = oRes.liveness_redpoint; + this.m_bIsHadShopRedPoint = oRes.shop_redpoint; + for (int i = 0; i < oRes.members.Count; i++) + { + Partner partner = new Partner(); + partner.MemberId = oRes.members[i].memberid; + partner.SetDetailInfo(oRes.members[i]); + this.m_partnerDic.Add(oRes.members[i].memberid, partner); + } + } + else + { + this.m_bIsHadLivenessRedPoint = false; + this.m_bIsHadShopRedPoint = false; + } + bool flag5 = this.View != null && this.View.IsVisible(); + if (flag5) + { + this.View.RefreshUi(); + } + } + } + } + } + + public void OnLeavePartnerBack(LeavePartnerRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + Partner partner; + bool flag4 = this.m_partnerDic.TryGetValue(this.RoleId, out partner); + if (flag4) + { + partner.UpdateLeaveInfo(true, (uint)XSingleton.singleton.GetInt("PartnerLeaveTime")); + } + else + { + XSingleton.singleton.AddGreenLog("this error,this data should exist", null, null, null, null, null); + } + bool flag5 = this.View != null && this.View.IsVisible(); + if (flag5) + { + this.View.RefreshUi(); + } + } + } + } + } + + public void OnCancleLeavePartnerBack(CancelLeavePartnerRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + Partner partner; + bool flag4 = this.m_partnerDic.TryGetValue(this.RoleId, out partner); + if (flag4) + { + partner.UpdateLeaveInfo(false, 0u); + } + else + { + XSingleton.singleton.AddGreenLog("this error,this data should exist", null, null, null, null, null); + } + bool flag5 = this.View != null && this.View.IsVisible(); + if (flag5) + { + this.View.RefreshUi(); + } + } + } + } + } + + public void MakePartnerResult(PtcM2C_MakePartnerResultNtf roPtc) + { + bool flag = roPtc.Data.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = roPtc.Data.result == ErrorCode.ERR_PARTNER_ALREADY_HAS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("TEAM_ERR_PARTNER_ALREADY_HAS"), roPtc.Data.err_rolename), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(roPtc.Data.result, "fece00"); + } + } + else + { + this.m_partnerID = roPtc.Data.partnerid; + this.m_curPartnerLevel = roPtc.Data.level; + this.m_degree = roPtc.Data.degree; + for (int i = 0; i < roPtc.Data.memberid.Count; i++) + { + bool flag3 = this.m_partnerDic.ContainsKey(roPtc.Data.memberid[i]); + if (flag3) + { + Partner partner = new Partner(); + partner.MemberId = roPtc.Data.memberid[i]; + this.m_partnerDic.Add(roPtc.Data.memberid[i], partner); + } + } + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("GetPartnerSuccess"), "fece00"); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.PlayGetPartnerEffect(); + } + } + } + + public void UpdatePartnerToClient(PtcM2C_UpdatePartnerToClient roPtc) + { + switch (roPtc.Data.type) + { + case PartnerUpdateType.PUType_Normal: + { + this.m_degree = roPtc.Data.degree; + this.m_curPartnerLevel = roPtc.Data.level; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshUi(); + } + break; + } + case PartnerUpdateType.PUType_Leave: + { + bool flag2 = roPtc.Data.leave_id != XSingleton.singleton.XPlayerData.RoleID; + if (flag2) + { + bool flag3 = this.m_partnerDic.ContainsKey(roPtc.Data.leave_id); + if (flag3) + { + this.m_partnerDic.Remove(roPtc.Data.leave_id); + } + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("HadPartnerLeave"), roPtc.Data.leave_name), "fece00"); + } + else + { + this.m_partnerID = 0UL; + this.m_partnerDic.Clear(); + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("HadLeavedPartner"), roPtc.Data.leave_name), "fece00"); + } + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.RefreshUi(); + } + break; + } + case PartnerUpdateType.PUType_Dissolve: + { + this.m_partnerID = 0UL; + this.m_partnerDic.Clear(); + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PartnerEnd"), "fece00"); + bool flag5 = this.View != null && this.View.IsVisible(); + if (flag5) + { + this.View.RefreshUi(); + } + break; + } + case PartnerUpdateType.PUType_Shop: + this.IsHadShopRedPoint = true; + break; + } + } + + public void OnGetShopRecordBack(GetPartnerShopRecordRes oRes) + { + bool flag = oRes == null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_FAILED, "fece00"); + } + else + { + bool flag2 = oRes.result == ErrorCode.ERR_INVALID_REQUEST; + if (flag2) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag3 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag3) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_shopRecordList.Clear(); + for (int i = 0; i < oRes.record.Count; i++) + { + this.m_shopRecordList.Add(new partnerShopRecord(oRes.record[i])); + } + bool flag4 = this.ShopRecordsHandler != null && this.ShopRecordsHandler.IsVisible(); + if (flag4) + { + this.ShopRecordsHandler.FillContent(); + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPartnerDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPartnerDocument.cs.meta new file mode 100644 index 00000000..91686f1a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPartnerDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f9662d0aa3af97a4189d9d825869d8e7 +timeCreated: 1611404898 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPatfaceBehaviour.cs b/Client/Assets/Scripts/XMainClient/XPatfaceBehaviour.cs new file mode 100644 index 00000000..b47cfaaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPatfaceBehaviour.cs @@ -0,0 +1,19 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XPatfaceBehaviour : DlgBehaviourBase + { + public IXUIButton m_OK; + + public IXUITexture m_Pic; + + private void Awake() + { + this.m_OK = (base.transform.Find("Bg/Ok").GetComponent("XUIButton") as IXUIButton); + this.m_Pic = (base.transform.Find("Bg/Texture").GetComponent("XUITexture") as IXUITexture); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPatfaceBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XPatfaceBehaviour.cs.meta new file mode 100644 index 00000000..faf7a993 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPatfaceBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 89a8c1ef7d579a7489162bb79d1bc1e7 +timeCreated: 1611404089 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPatfaceView.cs b/Client/Assets/Scripts/XMainClient/XPatfaceView.cs new file mode 100644 index 00000000..90804ec7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPatfaceView.cs @@ -0,0 +1,102 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPatfaceView : DlgBase + { + public override string fileName + { + get + { + return "Hall/PatfaceDlg"; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isMainUI + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XAnnouncementDocument doc; + + public bool bShow = false; + + protected override void Init() + { + base.Init(); + this.doc = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + } + + protected override void OnHide() + { + base.OnHide(); + base.uiBehaviour.m_Pic.SetTexturePath(""); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_OK.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnterClicked)); + } + + private bool OnEnterClicked(IXUIButton button) + { + this.bShow = true; + this.doc.SendClickNotice(this.doc.NoticeList[(int)button.ID]); + return true; + } + + public void ShowPatface() + { + bool flag = !this.bShow; + if (!flag) + { + this.bShow = false; + this.doc = XDocuments.GetSpecificDocument(XAnnouncementDocument.uuID); + for (int i = 0; i < this.doc.NoticeList.Count; i++) + { + bool flag2 = this.doc.NoticeList[i].type != 5u || !this.doc.NoticeList[i].isnew; + if (!flag2) + { + this.SetVisible(true, true); + XSingleton.singleton.Load(this.doc.NoticeList[i].content, base.uiBehaviour.m_Pic, base.uiBehaviour); + base.uiBehaviour.m_OK.ID = (ulong)i; + return; + } + } + XSingleton.singleton.CheckPandoraPLPanel(); + this.SetVisible(false, true); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPatfaceView.cs.meta b/Client/Assets/Scripts/XMainClient/XPatfaceView.cs.meta new file mode 100644 index 00000000..3681ce72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPatfaceView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c752e6ff52a2f54782223168821e4ce +timeCreated: 1611403502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPatrol.cs b/Client/Assets/Scripts/XMainClient/XPatrol.cs new file mode 100644 index 00000000..7a423d97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPatrol.cs @@ -0,0 +1,335 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPatrol + { + private List nav_points + { + get + { + bool flag = this._nav_points == null; + if (flag) + { + this._nav_points = ListPool.Get(); + } + return this._nav_points; + } + } + + private List nav_gap_time + { + get + { + bool flag = this._nav_gap_time == null; + if (flag) + { + this._nav_gap_time = ListPool.Get(); + } + return this._nav_gap_time; + } + } + + public int PathIndex + { + get + { + return this._path_index; + } + set + { + this._path_index = value; + } + } + + public int NavIndex + { + get + { + return this._nav_index; + } + set + { + this._nav_index = value; + } + } + + public float NavGap + { + get + { + return this._nav_gap; + } + } + + public float NavNodeFinishTime { get; set; } + + public bool IsInNavGap { get; set; } + + public bool IsPingpong { get; set; } + + public bool IsLoop { get; set; } + + private List _nav_path = null; + + private int _path_index = 0; + + private List _nav_points = null; + + private List _nav_gap_time = null; + + private int _nav_index = 0; + + private bool _is_reverse_nav = false; + + private float _nav_gap = 0f; + + public enum PathType + { + PT_PINGPONG = 1, + PT_LOOP = 0, + PT_NORMAL = 2 + } + + public void Destroy() + { + bool flag = this._nav_points != null; + if (flag) + { + ListPool.Release(this._nav_points); + } + bool flag2 = this._nav_gap_time != null; + if (flag2) + { + ListPool.Release(this._nav_gap_time); + } + } + + public void ToggleNavDir() + { + this._is_reverse_nav = !this._is_reverse_nav; + } + + public Vector3 GetCurNavigationPoint() + { + bool flag = this.nav_points.Count == 0; + Vector3 result; + if (flag) + { + result = Vector3.zero; + } + else + { + bool flag2 = this._nav_index >= this.nav_points.Count; + if (flag2) + { + result = this.nav_points[this.nav_points.Count - 1]; + } + else + { + result = this.nav_points[this._nav_index]; + } + } + return result; + } + + public float GetCurNavGap() + { + bool flag = this.nav_gap_time.Count == 0; + float result; + if (flag) + { + result = 0f; + } + else + { + bool flag2 = this._nav_index >= this.nav_gap_time.Count; + if (flag2) + { + result = this.nav_gap_time[this.nav_gap_time.Count - 1]; + } + else + { + result = this.nav_gap_time[this._nav_index]; + } + } + return result; + } + + public Vector3 GetNextNavPos() + { + bool flag = this.nav_points.Count == 0; + Vector3 result; + if (flag) + { + result = Vector3.zero; + } + else + { + bool isPingpong = this.IsPingpong; + if (isPingpong) + { + bool is_reverse_nav = this._is_reverse_nav; + if (is_reverse_nav) + { + bool flag2 = this._nav_index == 0; + if (flag2) + { + this._is_reverse_nav = false; + this._nav_index = 1; + } + else + { + this._nav_index--; + } + } + else + { + bool flag3 = this._nav_index == this.nav_points.Count - 1; + if (flag3) + { + this._is_reverse_nav = true; + this._nav_index--; + } + else + { + this._nav_index++; + } + } + } + else + { + bool flag4 = !this._is_reverse_nav; + if (flag4) + { + bool flag5 = this._nav_index >= this.nav_points.Count - 1; + if (flag5) + { + bool isLoop = this.IsLoop; + if (isLoop) + { + this._nav_index = 0; + } + } + else + { + this._nav_index++; + } + } + else + { + bool flag6 = this._nav_index <= 0; + if (flag6) + { + bool isLoop2 = this.IsLoop; + if (isLoop2) + { + this._nav_index = this.nav_points.Count - 1; + } + } + else + { + this._nav_index--; + } + } + } + bool flag7 = this._nav_index < 0; + if (flag7) + { + this._nav_index = 0; + } + bool flag8 = this._nav_index >= this.nav_points.Count; + if (flag8) + { + this._nav_index = this.nav_points.Count - 1; + } + result = this.GetCurNavigationPoint(); + } + return result; + } + + public void InitNavPath(string path, XPatrol.PathType type) + { + this._nav_path = XSingleton.singleton.PathList; + this._path_index = 0; + this.nav_points.Clear(); + this.nav_gap_time.Clear(); + string[] array = path.Split(XGlobalConfig.AllSeparators); + bool flag = array.Length % 4 != 0; + if (flag) + { + XSingleton.singleton.AddErrorLog("Format error: ", path, null, null, null, null); + } + else + { + for (int i = 0; i < array.Length; i += 4) + { + this.nav_points.Add(new Vector3(float.Parse(array[i]), float.Parse(array[i + 1]), float.Parse(array[i + 2]))); + this.nav_gap_time.Add(float.Parse(array[i + 3])); + } + this.IsPingpong = (type == XPatrol.PathType.PT_PINGPONG); + this.IsLoop = (type == XPatrol.PathType.PT_LOOP); + this._nav_gap = float.Parse(XSingleton.singleton.GetValue("AINavGap")); + this.NavNodeFinishTime = 0f; + this.IsInNavGap = false; + } + } + + public void InitNavPath(XEntityStatistics.RowData raw) + { + this._nav_path = XSingleton.singleton.PathList; + this._path_index = 0; + this.nav_points.Clear(); + this.nav_gap_time.Clear(); + bool flag = raw != null; + if (flag) + { + this._nav_index = 0; + for (int i = 0; i < raw.navigation.Count; i++) + { + this.nav_points.Add(new Vector3(raw.navigation[i, 0], raw.navigation[i, 1], raw.navigation[i, 2])); + this.nav_gap_time.Add(raw.navigation[i, 3]); + } + this.IsPingpong = (raw.IsNavPingpong == 1); + this.IsLoop = (raw.IsNavPingpong == 0); + } + this._nav_gap = float.Parse(XSingleton.singleton.GetValue("AINavGap")); + this.NavNodeFinishTime = 0f; + this.IsInNavGap = false; + } + + public Transform GetFromNavPath(int index) + { + bool flag = this._nav_path == null || this._nav_path.Count == 0; + Transform result; + if (flag) + { + result = null; + } + else + { + bool flag2 = index < 0; + if (flag2) + { + result = this._nav_path[0].transform; + } + else + { + bool flag3 = index >= this._nav_path.Count; + if (flag3) + { + result = this._nav_path[this._nav_path.Count - 1].transform; + } + else + { + result = this._nav_path[index].transform; + } + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPatrol.cs.meta b/Client/Assets/Scripts/XMainClient/XPatrol.cs.meta new file mode 100644 index 00000000..935dfcbb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPatrol.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 21d5e6b5aa399364b8d9a6a372ad9e2e +timeCreated: 1611403415 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPersonalCareerDocument.cs b/Client/Assets/Scripts/XMainClient/XPersonalCareerDocument.cs new file mode 100644 index 00000000..6f270bd4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPersonalCareerDocument.cs @@ -0,0 +1,154 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPersonalCareerDocument : XDocComponent + { + public override uint ID + { + get + { + return XPersonalCareerDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XPersonalCareerDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static Career CareerTable = new Career(); + + public static TrophyInfo TrophyInfoTable = new TrophyInfo(); + + public static TrophyReward TrophyRewardTable = new TrophyReward(); + + public Dictionary HasData = new Dictionary(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + XPersonalCareerDocument.AsyncLoader.AddTask("Table/Career", XPersonalCareerDocument.CareerTable, false); + XPersonalCareerDocument.AsyncLoader.AddTask("Table/TrophyInfo", XPersonalCareerDocument.TrophyInfoTable, false); + XPersonalCareerDocument.AsyncLoader.AddTask("Table/TrophyReward", XPersonalCareerDocument.TrophyRewardTable, false); + XPersonalCareerDocument.AsyncLoader.Execute(callback); + } + + public TrophyReward.RowData ProcessHonorLevelMax(TrophyReward.RowData data) + { + bool flag = XPersonalCareerDocument.TrophyRewardTable.Table.Length >= 2; + if (flag) + { + bool flag2 = data.HonourRank == XPersonalCareerDocument.TrophyRewardTable.Table[XPersonalCareerDocument.TrophyRewardTable.Table.Length - 1].HonourRank; + if (flag2) + { + data.TrophyScore = XPersonalCareerDocument.TrophyRewardTable.Table[XPersonalCareerDocument.TrophyRewardTable.Table.Length - 2].TrophyScore; + } + } + return data; + } + + public static List GetHonorRewardList() + { + List list = new List(); + for (int i = 0; i < XPersonalCareerDocument.TrophyRewardTable.Table.Length; i++) + { + bool flag = XPersonalCareerDocument.TrophyRewardTable.Table[i].Rewards.Count != 0; + if (flag) + { + list.Add(XPersonalCareerDocument.TrophyRewardTable.Table[i]); + } + } + return list; + } + + public static TrophyReward.RowData GetTrophyReward(int level) + { + for (int i = 0; i < XPersonalCareerDocument.TrophyRewardTable.Table.Length; i++) + { + bool flag = level == XPersonalCareerDocument.TrophyRewardTable.Table[i].HonourRank; + if (flag) + { + return XPersonalCareerDocument.TrophyRewardTable.Table[i]; + } + } + return XPersonalCareerDocument.TrophyRewardTable.Table[XPersonalCareerDocument.TrophyRewardTable.Table.Length - 1]; + } + + public static TrophyReward.RowData GetHonorNextReward(int curLevel) + { + for (int i = curLevel; i < XPersonalCareerDocument.TrophyRewardTable.Table.Length; i++) + { + bool flag = XPersonalCareerDocument.TrophyRewardTable.Table[i].Rewards.Count != 0; + if (flag) + { + return XPersonalCareerDocument.TrophyRewardTable.Table[i]; + } + } + return null; + } + + public static TrophyInfo.RowData GetTrophyTableData(uint ID) + { + for (int i = 0; i < XPersonalCareerDocument.TrophyInfoTable.Table.Length; i++) + { + bool flag = XPersonalCareerDocument.TrophyInfoTable.Table[i].ID == ID; + if (flag) + { + return XPersonalCareerDocument.TrophyInfoTable.Table[i]; + } + } + XSingleton.singleton.AddErrorLog("TrophyID:" + ID + " No Find", null, null, null, null, null); + return null; + } + + public static List GetTrophyTableDataToSceneID(uint SceneID) + { + List list = new List(); + for (int i = 0; i < XPersonalCareerDocument.TrophyInfoTable.Table.Length; i++) + { + bool flag = XPersonalCareerDocument.TrophyInfoTable.Table[i].SceneID == SceneID; + if (flag) + { + list.Add(XPersonalCareerDocument.TrophyInfoTable.Table[i]); + } + } + return list; + } + + public static Career.RowData GetCareer(int sortid) + { + for (int i = 0; i < XPersonalCareerDocument.CareerTable.Table.Length; i++) + { + bool flag = sortid == XPersonalCareerDocument.CareerTable.Table[i].SortId; + if (flag) + { + return XPersonalCareerDocument.CareerTable.Table[i]; + } + } + return null; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void ReqGetCareer(PersonalCarrerReqType type, ulong roleId = 0UL) + { + RpcC2G_PersonalCareer rpcC2G_PersonalCareer = new RpcC2G_PersonalCareer(); + rpcC2G_PersonalCareer.oArg.quest_type = type; + rpcC2G_PersonalCareer.oArg.role_id = roleId; + XSingleton.singleton.Send(rpcC2G_PersonalCareer); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPersonalCareerDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPersonalCareerDocument.cs.meta new file mode 100644 index 00000000..5c5adbbd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPersonalCareerDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 034b1cb5ba611434f96c63fcb0eb0e64 +timeCreated: 1611402958 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPet.cs b/Client/Assets/Scripts/XMainClient/XPet.cs new file mode 100644 index 00000000..735158b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPet.cs @@ -0,0 +1,221 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPet + { + public bool Canpairride { get; set; } + + public List SkillList + { + get + { + return this.m_SkillList; + } + } + + public List ShowSkillList + { + get + { + return this.m_ShowSkillList; + } + } + + public XPet.Skill ActiveSkill + { + get + { + return this.m_ActiveSkill; + } + } + + public static readonly uint FIX_SKILL_COUNT_MAX = 3u; + + public ulong UID; + + public uint ID; + + public int Level; + + public string Name; + + public PetSex Sex; + + public uint PPT; + + public int Exp; + + public uint FullDegree; + + public uint Mood; + + public int HistoryLevelMAX; + + public int showExp; + + public int showLevel; + + public uint showFullDegree; + + private List m_SkillList = new List(); + + private List m_ShowSkillList = new List(); + + private XPet.Skill m_ActiveSkill = new XPet.Skill(); + + public class Skill + { + public uint id; + + public bool open; + + public void Init(uint Id, bool IsOpen = true) + { + this.id = Id; + this.open = IsOpen; + } + } + + public XPet.Skill FindSkill(uint id) + { + for (int i = 0; i < this.m_SkillList.Count; i++) + { + bool flag = this.m_SkillList[i].id == id; + if (flag) + { + return this.m_SkillList[i]; + } + } + return null; + } + + public void Init(PetSingle data, PetChange change = PetChange.None) + { + this.UID = data.uid; + this.ID = data.petid; + this.Level = (int)data.level; + this.Exp = (int)data.exp; + this.Sex = (PetSex)data.sex; + this.PPT = data.power; + this.FullDegree = data.hungry; + this.Mood = data.mood; + this.HistoryLevelMAX = (int)data.max_level; + this.Canpairride = data.canpairride; + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(this.ID); + bool flag = petInfo != null; + if (flag) + { + this.Name = petInfo.name; + } + this.m_SkillList.Clear(); + bool flag2 = data.fixedskills != null; + if (flag2) + { + int num = 0; + while ((long)num < (long)((ulong)XPet.FIX_SKILL_COUNT_MAX)) + { + XPet.Skill skill = new XPet.Skill(); + bool flag3 = num < data.fixedskills.Count; + if (flag3) + { + skill.Init(data.fixedskills[num], true); + } + else + { + PetInfoTable.RowData petInfo2 = XPetDocument.GetPetInfo(this.ID); + bool flag4 = petInfo2 == null; + if (flag4) + { + XSingleton.singleton.AddErrorLog("PetId:" + this.ID + " No Find", null, null, null, null, null); + } + skill.Init(XPetDocument.GetFixSkill(this.ID, num + 1), false); + } + this.m_SkillList.Add(skill); + num++; + } + } + bool flag5 = data.randskills != null; + if (flag5) + { + for (int i = 0; i < data.randskills.Count; i++) + { + bool flag6 = (long)i >= (long)((ulong)(XPetSkillHandler.SKILL_MAX - XPet.FIX_SKILL_COUNT_MAX)); + if (flag6) + { + XSingleton.singleton.AddErrorLog("Random Skill List Count is" + data.randskills.Count, null, null, null, null, null); + break; + } + XPet.Skill skill2 = new XPet.Skill(); + skill2.Init(data.randskills[i], true); + this.m_SkillList.Add(skill2); + } + } + bool flag7 = change > PetChange.None; + if (flag7) + { + XPetDocument specificDocument = XDocuments.GetSpecificDocument(XPetDocument.uuID); + bool flag8 = change == PetChange.All || change == PetChange.Exp; + if (flag8) + { + bool flag9 = this.showExp != this.Exp || this.showLevel != this.Level; + if (flag9) + { + bool flag10 = this.showLevel != 0 && !specificDocument.IsMaxLevel(this.ID, this.showLevel); + if (flag10) + { + specificDocument.ChangeExp = true; + } + } + } + bool flag11 = change == PetChange.All || change == PetChange.ExpTransfer; + if (flag11) + { + bool flag12 = this.showFullDegree != this.FullDegree; + if (flag12) + { + bool flag13 = this.showFullDegree < this.FullDegree; + if (flag13) + { + specificDocument.ChangeFullDegree = true; + } + else + { + this.showFullDegree = this.FullDegree; + } + } + } + bool flag14 = change == PetChange.ExpTransfer; + if (flag14) + { + } + } + else + { + this.showExp = this.Exp; + this.showLevel = this.Level; + this.showFullDegree = this.FullDegree; + this.m_ShowSkillList.Clear(); + for (int j = 0; j < this.m_SkillList.Count; j++) + { + this.m_ShowSkillList.Add(this.m_SkillList[j]); + } + } + } + + public void Refresh() + { + this.showExp = this.Exp; + this.showLevel = this.Level; + this.showFullDegree = this.FullDegree; + this.m_ShowSkillList.Clear(); + for (int i = 0; i < this.m_SkillList.Count; i++) + { + this.m_ShowSkillList.Add(this.m_SkillList[i]); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPet.cs.meta b/Client/Assets/Scripts/XMainClient/XPet.cs.meta new file mode 100644 index 00000000..4c4cff59 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 85892e55205884d4897e9323e39ee860 +timeCreated: 1611404051 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPetActionFile.cs b/Client/Assets/Scripts/XMainClient/XPetActionFile.cs new file mode 100644 index 00000000..e06b7564 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetActionFile.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public enum XPetActionFile + { + MOVE = 1, + IDLE, + IDLE_PEOPLE, + HUNGER = 100, + EAT, + LOSE = 110, + HAPPY, + SLEEP = 120, + CARESS = 200 + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPetActionFile.cs.meta b/Client/Assets/Scripts/XMainClient/XPetActionFile.cs.meta new file mode 100644 index 00000000..4a88fa06 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetActionFile.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: cce31e72bb6ec0d49a2973ae0f274468 +timeCreated: 1611404552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPetDocument.cs b/Client/Assets/Scripts/XMainClient/XPetDocument.cs new file mode 100644 index 00000000..f04fb67c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetDocument.cs @@ -0,0 +1,1706 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPetDocument : XDocComponent + { + public override uint ID + { + get + { + return XPetDocument.uuID; + } + } + + public static ulong HosterId { get; set; } + + public XPetMainView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public int PetCountMax + { + get + { + return this.PetSeatBuy.Length; + } + } + + public uint BeInvitedCount { get; set; } + + public bool BeInvited + { + get + { + return this.m_beInvited; + } + set + { + bool flag = this.m_beInvited != value; + if (flag) + { + this.m_beInvited = value; + XSingleton.singleton.UpdateRedPointOnHallUI(XSysDefine.XSys_Pet_Pairs); + } + } + } + + public List PetInviteInfolist + { + get + { + return this.m_petInviteInfolist; + } + } + + public bool HasGetSkillUI + { + get + { + bool flag = this.View != null && this.View.SkillHandler != null; + return flag && this.View.SkillHandler.HasGetSkillUI; + } + set + { + bool flag = this.View != null && this.View.SkillHandler != null; + if (flag) + { + this.View.SkillHandler.HasGetSkillUI = value; + } + } + } + + private bool CanPlayExpUp + { + get + { + return this.ChangeExp && !this.HasGetSkillUI && !this.InPlayExpUp; + } + } + + public bool HasRedPoint + { + get + { + return this.CanHasRedPoint && this.FightPetHungry && this.HasFood; + } + } + + public List Pets + { + get + { + return this.m_PetList; + } + } + + public ulong CurMount + { + get + { + return (XSingleton.singleton.XPlayerData.Outlook.state.type == OutLookStateType.OutLook_RidePet) ? this.m_CurMount : 0UL; + } + } + + public int DefaultPet + { + get + { + bool hasNewPet = this.HasNewPet; + int result; + if (hasNewPet) + { + result = this.Pets.Count - 1; + } + else + { + result = ((this.CurFightIndex >= 0) ? this.CurFightIndex : 0); + } + return result; + } + } + + private int CurFightIndex + { + get + { + for (int i = 0; i < this.Pets.Count; i++) + { + bool flag = this.m_CurFightUID == this.Pets[i].UID; + if (flag) + { + return i; + } + } + return -1; + } + } + + public ulong CurFightUID + { + get + { + return this.m_CurFightUID; + } + } + + public int CurSelectedIndex + { + get + { + return this.m_CurSelected; + } + } + + public XPet CurSelectedPet + { + get + { + bool flag = this.m_CurSelected >= this.m_PetList.Count || this.m_CurSelected < 0; + XPet result; + if (flag) + { + result = null; + } + else + { + result = this.m_PetList[this.m_CurSelected]; + } + return result; + } + } + + public List SkillBookList + { + get + { + return this.m_SkillBookList; + } + } + + public bool IsDrivingPairPet + { + get + { + bool flag = this.CurMount != 0UL && this.CurSelectedPet != null; + bool result; + if (flag) + { + uint petType = XPetDocument.GetPetType(this.CurSelectedPet.ID); + result = (petType == 1u); + } + else + { + result = false; + } + return result; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("PetDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static PetLevelTable _LevelTable = new PetLevelTable(); + + private static PetItemTable _PetItemTable = new PetItemTable(); + + private static PetInfoTable _InfoTable = new PetInfoTable(); + + private static PetPassiveSkillTable _SkillTable = new PetPassiveSkillTable(); + + private static PetFoodTable _FoodTable = new PetFoodTable(); + + private static PetMoodTipsTable _MoodTipsTable = new PetMoodTipsTable(); + + private static PetBubble _BubbleTable = new PetBubble(); + + private static PetSkillBook _SkillBookTable = new PetSkillBook(); + + private static Dictionary PetLevelInfo = new Dictionary(); + + private static Dictionary PetActionData = new Dictionary(); + + private XPetMainView _view = null; + + private List m_petInviteInfolist = new List(); + + public string[] PetSeatBuy = XSingleton.singleton.GetValue("PetSeatBuy").Split(new char[] + { + '|' + }); + + public string[] ColorLevel = XSingleton.singleton.GetValue("HungryColorThreshold").Split(new char[] + { + '|' + }); + + public string[] HungryExpPercent = XSingleton.singleton.GetValue("HungryExpPercent").Split(new char[] + { + '|', + '=' + }); + + public Queue qExpAnimation = new Queue(); + + public List petGetSkill = new List(); + + public uint PetSeat; + + public static readonly uint PLAY_FULL_DEGREE_UP_FRAMES = 1u; + + private int addExp; + + public bool ChangeExp; + + public bool ChangeFullDegree; + + private bool m_beInvited = false; + + public bool InPlayExpUp; + + public bool HasFood = false; + + public bool FightPetHungry = false; + + public bool CanHasRedPoint = false; + + public bool HasNewPet = false; + + private List m_PetList = new List(); + + private ulong m_CurMount; + + private ulong m_CurFightUID; + + private int m_CurSelected = -1; + + private XItemFilter m_FoodFilter = new XItemFilter(); + + private XItemFilter m_SkillBookFilter = new XItemFilter(); + + private List m_FoodList = new List(); + + private List m_SkillBookList = new List(); + + private struct PetLevel + { + public uint PetId; + + public uint Level; + } + + private struct PetAction + { + public uint PetId; + + public uint PetActionId; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XPetDocument.AsyncLoader.AddTask("Table/PetLevel", XPetDocument._LevelTable, false); + XPetDocument.AsyncLoader.AddTask("Table/PetInfo", XPetDocument._InfoTable, false); + XPetDocument.AsyncLoader.AddTask("Table/PetItem", XPetDocument._PetItemTable, false); + XPetDocument.AsyncLoader.AddTask("Table/PetPassiveSkill", XPetDocument._SkillTable, false); + XPetDocument.AsyncLoader.AddTask("Table/PetFood", XPetDocument._FoodTable, false); + XPetDocument.AsyncLoader.AddTask("Table/PetMoodTips", XPetDocument._MoodTipsTable, false); + XPetDocument.AsyncLoader.AddTask("Table/PetBubble", XPetDocument._BubbleTable, false); + XPetDocument.AsyncLoader.AddTask("Table/PetSkillBook", XPetDocument._SkillBookTable, false); + XPetDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XPetDocument.PetLevelInfo.Clear(); + XPetDocument.PetLevel key = default(XPetDocument.PetLevel); + for (int i = 0; i < XPetDocument._LevelTable.Table.Length; i++) + { + key.PetId = XPetDocument._LevelTable.Table[i].PetsID; + key.Level = XPetDocument._LevelTable.Table[i].level; + XPetDocument.PetLevelInfo.Add(key, XPetDocument._LevelTable.Table[i]); + } + XPetDocument.PetActionData.Clear(); + XPetDocument.PetAction key2 = default(XPetDocument.PetAction); + for (int j = 0; j < XPetDocument._BubbleTable.Table.Length; j++) + { + key2.PetId = XPetDocument._BubbleTable.Table[j].id; + key2.PetActionId = XPetDocument._BubbleTable.Table[j].ActionID; + XPetDocument.PetActionData.Add(key2, XPetDocument._BubbleTable.Table[j]); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + } + + public static string GetFoodDescription(ItemList.RowData rowData) + { + PetFoodTable.RowData byitemid = XPetDocument._FoodTable.GetByitemid((uint)rowData.ItemID); + bool flag = byitemid != null; + string result; + if (flag) + { + result = string.Format(byitemid.description, byitemid.exp); + } + else + { + result = rowData.ItemDescription; + } + return result; + } + + public static uint GetPetID(uint itemid) + { + PetItemTable.RowData byitemid = XPetDocument._PetItemTable.GetByitemid(itemid); + bool flag = byitemid != null; + uint result; + if (flag) + { + result = byitemid.petid; + } + else + { + result = 0u; + } + return result; + } + + public static uint GetPresentID(uint id) + { + PetInfoTable.RowData byid = XPetDocument._InfoTable.GetByid(id); + bool flag = byid != null; + uint result; + if (flag) + { + result = byid.presentID; + } + else + { + result = 0u; + } + return result; + } + + public static uint GetPetType(uint id) + { + PetInfoTable.RowData byid = XPetDocument._InfoTable.GetByid(id); + bool flag = byid != null; + uint result; + if (flag) + { + result = byid.PetType; + } + else + { + result = 0u; + } + return result; + } + + public static bool GetWithowWind(uint id) + { + PetInfoTable.RowData byid = XPetDocument._InfoTable.GetByid(id); + return byid == null || byid.WithWings == 0u; + } + + public static void TryMountCopilot(bool bMount, XEntity copilot, XEntity host, bool bInit = false) + { + bool flag = copilot == host; + if (!flag) + { + if (bMount) + { + bool flag2 = host.IsMounted && !host.IsCopilotMounted; + if (flag2) + { + bool isMounted = copilot.IsMounted; + if (isMounted) + { + bool isCopilotMounted = copilot.IsCopilotMounted; + if (isCopilotMounted) + { + bool flag3 = copilot.Mount == host.Mount; + if (flag3) + { + return; + } + copilot.Mount.UnMountEntity(copilot); + } + else + { + copilot.Mount.UnMountEntity(copilot); + XSingleton.singleton.DestroyEntity(copilot.Mount); + } + } + bool flag4 = !host.Mount.MountCopilot(copilot); + if (flag4) + { + XSingleton.singleton.AddErrorLog("Passive Mount Failed.", null, null, null, null, null); + } + bool flag5 = !bInit; + if (flag5) + { + host.Mount.PlayFx("Effects/FX_Particle/VehicleFX/Vehicle_shangma"); + } + } + else + { + bool flag6 = !host.IsMounted; + if (flag6) + { + XSingleton.singleton.AddErrorLog("Copilot Mount Failed: entity ", host.Name, " does not ride a pet.", null, null, null); + } + else + { + bool isCopilotMounted2 = host.IsCopilotMounted; + if (isCopilotMounted2) + { + XSingleton.singleton.AddErrorLog("Copilot Mount Failed: host entity ", host.Name, " is mounted as a copilot.", null, null, null); + } + } + } + } + else + { + bool isMounted2 = copilot.IsMounted; + if (isMounted2) + { + bool flag7 = !bInit; + if (flag7) + { + copilot.Mount.PlayFx("Effects/FX_Particle/VehicleFX/Vehicle_xiama"); + } + copilot.Mount.UnMountEntity(copilot); + } + } + } + } + + public static void TryMount(bool bMount, XEntity entity, uint petID = 0u, bool bInit = false) + { + if (bMount) + { + uint presentID = XPetDocument.GetPresentID(petID); + bool flag = presentID == 0u; + if (flag) + { + XSingleton.singleton.AddErrorLog("PresentID = 0, while petid = ", petID.ToString(), null, null, null, null); + } + else + { + bool isMounted = entity.IsMounted; + if (isMounted) + { + bool isCopilotMounted = entity.IsCopilotMounted; + if (isCopilotMounted) + { + entity.Mount.UnMountEntity(entity); + } + else + { + bool flag2 = entity.Mount.PresentID == presentID; + if (flag2) + { + return; + } + entity.Mount.UnMountEntity(entity); + XSingleton.singleton.DestroyEntity(entity.Mount); + } + } + bool isCopilot = XPetDocument.GetPetType(petID) == 1u; + XMount xmount = XSingleton.singleton.CreateMount(presentID, entity, isCopilot); + bool flag3 = !bInit && xmount != null; + if (flag3) + { + xmount.PlayFx("Effects/FX_Particle/VehicleFX/Vehicle_shangma"); + } + } + } + else + { + bool flag4 = entity.Mount != null; + if (flag4) + { + bool flag5 = !bInit && entity.Mount.EngineObject != null; + if (flag5) + { + entity.Mount.PlayFx("Effects/FX_Particle/VehicleFX/Vehicle_xiama"); + } + entity.Mount.UnMountEntity(entity); + XSingleton.singleton.DestroyEntity(entity.Mount); + } + } + } + + public PetBubble.RowData GetPetBubble(XPetActionFile PetActionFile, uint petid = 0u) + { + XPetDocument.PetAction petAction = default(XPetDocument.PetAction); + bool flag = petid == 0u && this.CurSelectedPet != null; + if (flag) + { + petid = this.CurSelectedPet.ID; + } + petAction.PetId = petid; + petAction.PetActionId = (uint)XFastEnumIntEqualityComparer.ToInt(PetActionFile); + PetBubble.RowData rowData; + bool flag2 = !XPetDocument.PetActionData.TryGetValue(petAction, out rowData); + PetBubble.RowData result; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "PetBubble No Find\nPetId:", + petAction.PetId, + "PetActionId:", + petAction.PetActionId + }), null, null, null, null, null); + result = null; + } + else + { + result = rowData; + } + return result; + } + + public int GetAddExp(int requiredExp) + { + float num = float.Parse(XSingleton.singleton.GetValue("PetExpUpSpeed")); + return (int)Math.Ceiling((double)((float)requiredExp * num)); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.View == null; + if (!flag) + { + bool flag2 = this.CurSelectedPet == null; + if (!flag2) + { + bool canPlayExpUp = this.CanPlayExpUp; + if (canPlayExpUp) + { + this.InPlayExpUp = true; + int requiredExp = this.GetRequiredExp(this.CurSelectedPet.ID, this.CurSelectedPet.showLevel); + this.addExp = this.GetAddExp(requiredExp); + } + bool flag3 = this.InPlayExpUp && !this.HasGetSkillUI; + if (flag3) + { + int requiredExp2 = this.GetRequiredExp(this.CurSelectedPet.ID, this.CurSelectedPet.showLevel); + this.CurSelectedPet.showExp += this.addExp; + bool flag4 = this.CurSelectedPet.showExp >= requiredExp2 && this.CurSelectedPet.showLevel < this.CurSelectedPet.Level; + if (flag4) + { + this.View.PlayPetLevelUpFx(this.View.uiBehaviour.m_PetSnapshot.transform, false); + this.CurSelectedPet.showExp = 0; + this.CurSelectedPet.showLevel++; + requiredExp2 = this.GetRequiredExp(this.CurSelectedPet.ID, this.CurSelectedPet.showLevel); + this.addExp = this.GetAddExp(requiredExp2); + this.View.RefreshPage(false); + bool flag5 = this.CurSelectedPet.showLevel > this.CurSelectedPet.Level; + if (flag5) + { + this.PlayEnd(); + } + this.View.SkillHandler.PlayNewSkillTip(this.GetNewSkill(), 0u); + } + bool flag6 = this.CurSelectedPet.showExp >= this.CurSelectedPet.Exp && this.CurSelectedPet.showLevel >= this.CurSelectedPet.Level; + if (flag6) + { + this.PlayEnd(); + } + this.View.RefreshExp(); + } + bool changeFullDegree = this.ChangeFullDegree; + if (changeFullDegree) + { + this.CurSelectedPet.showFullDegree += XPetDocument.PLAY_FULL_DEGREE_UP_FRAMES; + bool flag7 = this.CurSelectedPet.showFullDegree >= this.CurSelectedPet.FullDegree; + if (flag7) + { + this.CurSelectedPet.showFullDegree = this.CurSelectedPet.FullDegree; + this.ChangeFullDegree = false; + } + this.View.RefreshFullDegree(); + } + } + } + } + + private void PlayEnd() + { + this.ChangeExp = false; + this.CurSelectedPet.showExp = this.CurSelectedPet.Exp; + this.CurSelectedPet.showLevel = this.CurSelectedPet.Level; + bool flag = this.qExpAnimation.Count == 0; + if (flag) + { + this.InPlayExpUp = false; + bool flag2 = this.View == null; + if (flag2) + { + this.View.RefreshPage(false); + } + } + else + { + PetSingle data = this.qExpAnimation.Dequeue(); + this.Pets[this.CurSelectedIndex].Init(data, PetChange.Exp); + } + } + + public int GetNewSkill() + { + for (int i = 0; i < this.petGetSkill.Count; i++) + { + bool flag = (ulong)this.petGetSkill[i].petLvl == (ulong)((long)this.CurSelectedPet.showLevel); + if (flag) + { + int j = 0; + while (j < this.CurSelectedPet.SkillList.Count) + { + bool flag2 = this.CurSelectedPet.SkillList[j].id == this.petGetSkill[i].skillid; + if (flag2) + { + XSingleton.singleton.AddLog("Get Skill:" + this.petGetSkill[i].skillid, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = (long)j < (long)((ulong)XPet.FIX_SKILL_COUNT_MAX); + if (flag3) + { + this.CurSelectedPet.ShowSkillList[j].open = true; + this.petGetSkill.Remove(this.petGetSkill[i]); + return j; + } + int k; + for (k = 0; k < this.CurSelectedPet.ShowSkillList.Count; k++) + { + bool flag4 = this.CurSelectedPet.ShowSkillList[k].id == this.CurSelectedPet.SkillList[j].id; + if (flag4) + { + break; + } + } + this.petGetSkill.Remove(this.petGetSkill[i]); + bool flag5 = k == this.CurSelectedPet.ShowSkillList.Count; + if (flag5) + { + this.CurSelectedPet.ShowSkillList.Add(this.CurSelectedPet.SkillList[j]); + } + return k; + } + else + { + j++; + } + } + } + } + return -1; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.Pets.Clear(); + this.m_CurSelected = -1; + this.m_FoodFilter.Clear(); + this.m_FoodFilter.AddItemType(ItemType.PET_FOOD); + this.m_SkillBookFilter.Clear(); + this.m_SkillBookFilter.AddItemType(ItemType.PET_SKILL_BOOK); + } + + public void Select(int index, bool bResetPosition = false) + { + this.ClearPetAnimation(); + bool flag = index < this.Pets.Count; + if (flag) + { + this.m_CurSelected = index; + } + this.ShowCurPet(); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetTravelSetBtnStatus(); + DlgBase.singleton.RefreshPage(bResetPosition); + DlgBase.singleton.RefreshPetModel(); + } + } + + public void ClearPetAnimation() + { + while (this.qExpAnimation.Count != 0) + { + PetSingle data = this.qExpAnimation.Dequeue(); + bool flag = this.qExpAnimation.Count == 0 && this.CurSelectedIndex != -1; + if (flag) + { + this.Pets[this.CurSelectedIndex].Init(data, PetChange.None); + } + } + this.ChangeFullDegree = false; + this.ChangeExp = false; + this.HasGetSkillUI = false; + this.InPlayExpUp = false; + bool flag2 = this.CurSelectedPet != null; + if (flag2) + { + this.CurSelectedPet.showFullDegree = this.CurSelectedPet.FullDegree; + this.CurSelectedPet.showExp = this.CurSelectedPet.Exp; + this.CurSelectedPet.showLevel = this.CurSelectedPet.Level; + } + } + + public void ShowCurPet() + { + bool flag = this.CurSelectedPet != null; + if (flag) + { + this.CurSelectedPet.Refresh(); + } + this.petGetSkill.Clear(); + bool flag2 = this.View != null; + if (flag2) + { + this.View.RefreshAutoRefresh(); + this.View.uiBehaviour.m_FullDegreeTip.gameObject.SetActive(false); + this.View.uiBehaviour.m_MoodTip.gameObject.SetActive(false); + this.View.uiBehaviour.m_Talk.gameObject.SetActive(false); + } + } + + public void PlayRandAction() + { + bool flag = this.CurSelectedPet == null; + if (!flag) + { + List list = new List(); + list.Add(this.GetPetBubble(XPetActionFile.IDLE, 0u)); + DateTime dateTime = default(DateTime); + int hour = DateTime.Now.Hour; + bool flag2 = hour >= 22 || hour <= 6; + if (flag2) + { + list.Add(this.GetPetBubble(XPetActionFile.SLEEP, 0u)); + } + this.RandomPlayAnimation(list); + } + } + + public void PlayIdleAction() + { + bool flag = this.CurSelectedPet == null; + if (!flag) + { + this.RandomPlayAnimation(new List + { + this.GetPetBubble(XPetActionFile.IDLE, 0u), + this.GetPetBubble(XPetActionFile.IDLE_PEOPLE, 0u) + }); + } + } + + public void RandomPlayAnimation(List action) + { + int num = 0; + for (int i = 0; i < action.Count; i++) + { + num += (int)action[i].Weights; + } + int num2 = XSingleton.singleton.RandomInt(0, num); + for (int j = 0; j < action.Count; j++) + { + num2 -= (int)action[j].Weights; + bool flag = num2 < 0; + if (flag) + { + bool flag2 = this.View != null; + if (flag2) + { + this.View.PetActionChange((XPetActionFile)action[j].ActionID, this.CurSelectedPet.ID, this.View.m_Dummy, false); + } + break; + } + } + } + + public string RandomPlayBubble(string[] bubble) + { + bool flag = bubble != null; + string result; + if (flag) + { + int num = XSingleton.singleton.RandomInt(0, bubble.Length); + result = bubble[num]; + } + else + { + result = ""; + } + return result; + } + + public PetMoodTipsTable.RowData GetPetMoodTip(uint mood) + { + for (int i = XPetDocument._MoodTipsTable.Table.Length - 1; i >= 0; i--) + { + bool flag = (long)XPetDocument._MoodTipsTable.Table[i].value <= (long)((ulong)mood); + if (flag) + { + return XPetDocument._MoodTipsTable.Table[i]; + } + } + return null; + } + + public static PetSkillBook.RowData GetPetSkillBook(uint itemID) + { + return XPetDocument._SkillBookTable.GetByitemid(itemID); + } + + public static PetFoodTable.RowData GetPetFood(uint itemID) + { + return XPetDocument._FoodTable.GetByitemid(itemID); + } + + public static PetInfoTable.RowData GetPetInfo(uint petID) + { + return XPetDocument._InfoTable.GetByid(petID); + } + + public static PetPassiveSkillTable.RowData GetPetSkill(uint id) + { + return XPetDocument._SkillTable.GetByid(id); + } + + public static uint GetFixSkill(uint PetID, int SkillNum) + { + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(PetID); + bool flag = SkillNum == 1; + uint result; + if (flag) + { + result = petInfo.skill1[0, 0]; + } + else + { + bool flag2 = SkillNum == 2; + if (flag2) + { + result = petInfo.skill2[0, 0]; + } + else + { + bool flag3 = SkillNum == 3; + if (flag3) + { + result = petInfo.skill3[0, 0]; + } + else + { + result = 0u; + } + } + } + return result; + } + + public static PetLevelTable.RowData GetPetLevel(XPet pet) + { + PetLevelTable.RowData petLevel = XPetDocument.GetPetLevel(pet.ID, pet.Level); + bool flag = petLevel == null; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "PetLevelTable petID:", + pet.ID, + " petLevel:", + pet.Level, + " No Find " + }), null, null, null, null, null); + } + return petLevel; + } + + public static PetLevelTable.RowData GetPetLevel(uint petId, int level) + { + XPetDocument.PetLevel key = default(XPetDocument.PetLevel); + key.PetId = petId; + key.Level = (uint)level; + PetLevelTable.RowData rowData; + bool flag = !XPetDocument.PetLevelInfo.TryGetValue(key, out rowData); + PetLevelTable.RowData result; + if (flag) + { + result = null; + } + else + { + result = rowData; + } + return result; + } + + public PetPassiveSkillTable.RowData GetPassiveSkillData(uint id) + { + for (int i = 0; i < XPetDocument._SkillTable.Table.Length; i++) + { + PetPassiveSkillTable.RowData rowData = XPetDocument._SkillTable.Table[i]; + bool flag = rowData.id == id; + if (flag) + { + return rowData; + } + } + return null; + } + + public int GetRequiredExp(XPet pet) + { + return this.GetRequiredExp(pet.ID, pet.Level); + } + + public int GetRequiredExp(uint id, int level) + { + bool flag = this.IsMaxLevel(id, level); + int result; + if (flag) + { + result = 1; + } + else + { + PetLevelTable.RowData petLevel = XPetDocument.GetPetLevel(id, level + 1); + bool flag2 = petLevel == null; + if (flag2) + { + result = 1; + } + else + { + result = (int)petLevel.exp; + } + } + return result; + } + + public void GetExpInfo(XPet pet, out int curExp, out int totalExp) + { + totalExp = this.GetRequiredExp(pet.ID, pet.showLevel); + curExp = pet.showExp; + } + + public bool IsMaxLevel(XPet pet) + { + return this.IsMaxLevel(pet.ID, pet.Level); + } + + public bool IsMaxLevel(uint id, int level) + { + PetLevelTable.RowData petLevel = XPetDocument.GetPetLevel(id, level); + bool flag = petLevel != null; + if (flag) + { + petLevel = XPetDocument.GetPetLevel(id, level + 1); + bool flag2 = petLevel == null; + if (flag2) + { + return true; + } + } + return false; + } + + public List GetFood() + { + ulong filterValue = this.m_FoodFilter.FilterValue; + this.m_FoodList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(filterValue, ref this.m_FoodList); + return this.m_FoodList; + } + + public List GetSkillBook() + { + ulong filterValue = this.m_SkillBookFilter.FilterValue; + this.m_SkillBookList.Clear(); + XSingleton.singleton.Doc.XBagDoc.GetItemsByType(filterValue, ref this.m_SkillBookList); + return this.m_SkillBookList; + } + + public void ReqPetTouch() + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.PetTouch; + rpcC2G_PetOperation.oArg.uid = this.CurSelectedPet.UID; + XSingleton.singleton.Send(rpcC2G_PetOperation); + this.ReqPetInfo(); + } + + public void ReqBuySeat() + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.ExpandSeat; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + + public void ReqMount() + { + XPet curSelectedPet = this.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.PetFellow; + rpcC2G_PetOperation.oArg.uid = curSelectedPet.UID; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + } + + public void ReqRecentMount() + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.uid = this.CurMount; + rpcC2G_PetOperation.oArg.type = PetOP.PetFellow; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + + public void ReqRelease() + { + XPet curSelectedPet = this.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.PetRelease; + rpcC2G_PetOperation.oArg.uid = curSelectedPet.UID; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + } + + public void ReqFight() + { + XPet curSelectedPet = this.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.PetFight; + rpcC2G_PetOperation.oArg.uid = curSelectedPet.UID; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + } + + public void ReqFeed(int itemid) + { + XPet curSelectedPet = this.CurSelectedPet; + bool flag = curSelectedPet == null; + if (!flag) + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.PetFeed; + rpcC2G_PetOperation.oArg.uid = curSelectedPet.UID; + rpcC2G_PetOperation.oArg.food = new ItemBrief(); + rpcC2G_PetOperation.oArg.food.itemID = (uint)itemid; + rpcC2G_PetOperation.oArg.food.itemCount = 1u; + XSingleton.singleton.Send(rpcC2G_PetOperation); + this.ReqPetInfo(); + } + } + + public void ReqPetInfo() + { + RpcC2G_SynPetInfo rpcC2G_SynPetInfo = new RpcC2G_SynPetInfo(); + rpcC2G_SynPetInfo.oArg.uid = this.CurSelectedPet.UID; + XSingleton.singleton.Send(rpcC2G_SynPetInfo); + } + + public void OnPetTouch(PetOperationArg oArg, PetOperationRes oRes) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.View.PetActionChange(XPetActionFile.CARESS, this.CurSelectedPet.ID, this.View.m_Dummy, false); + DlgBase.singleton.RefreshList(false); + } + } + + public void OnBuySeat(PetOperationArg oArg, PetOperationRes oRes) + { + this.PetSeat += 1u; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshList(false); + } + } + + public void OnMount(PetOperationArg oArg, PetOperationRes oRes) + { + this.m_CurMount = oRes.followpetid; + bool flag = this.m_PetList.Count != 0; + if (flag) + { + for (int i = 0; i < this.m_PetList.Count; i++) + { + bool flag2 = this.m_PetList[i].UID == oRes.followpetid; + if (flag2) + { + this.m_CurSelected = i; + break; + } + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + XSingleton.singleton.CloseAllUI(); + } + } + + public void OnRelease(PetOperationArg oArg, PetOperationRes oRes) + { + bool flag = this.HasNewPet && this.CurSelectedIndex == this.Pets.Count - 1; + if (flag) + { + this.HasNewPet = false; + } + this.Pets.Remove(this.CurSelectedPet); + this.m_CurSelected = -1; + this.Select(this.DefaultPet, false); + } + + public void OnFight(PetOperationArg oArg, PetOperationRes oRes) + { + this.m_CurFightUID = oArg.uid; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshPage(false); + } + } + + public void OnFeed(PetOperationArg oArg, PetOperationRes oRes) + { + bool flag = this.CurSelectedPet.UID != oArg.uid; + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + this.View.PetActionChange(XPetActionFile.EAT, this.CurSelectedPet.ID, this.View.m_Dummy, false); + DlgBase.singleton.FoodSelectorHandler.UpdateContent(); + } + } + } + + public void OnPetOperation(PetOperationArg oArg, PetOperationRes oRes) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool ismoodup = oRes.ismoodup; + if (ismoodup) + { + this.View.PlayPetMoodUpFx(); + } + bool ishuneryup = oRes.ishuneryup; + if (ishuneryup) + { + this.View.PlayPetEatUpFx(); + } + } + } + + public void OnPetInfo(SynPetInfoArg oArg, SynPetInfoRes oRes) + { + bool flag = this.CurSelectedPet == null; + if (!flag) + { + bool flag2 = oArg.uid != this.CurSelectedPet.UID; + if (!flag2) + { + this.CurSelectedPet.showFullDegree = oRes.hungry; + this.CurSelectedPet.FullDegree = oRes.hungry; + this.CurSelectedPet.Mood = oRes.mood; + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshFullDegree(); + DlgBase.singleton.RefreshMood(); + } + } + } + } + + public void OnFightPetHungry(PtcG2C_NoticeHungryDown roPtc) + { + bool flag = roPtc.Data.petid == this.CurFightUID && (ulong)roPtc.Data.hungry < (ulong)((long)int.Parse(XSingleton.singleton.GetValue("PetRedPoint"))); + if (flag) + { + this.FightPetHungry = true; + } + } + + public void OnPetChange(PetChangeNotfiy data) + { + bool flag = data.pet.Count == 0; + if (!flag) + { + PetSingle petSingle = data.pet[0]; + XPet xpet = this.GetPet(data.pet[0].uid); + switch (data.type) + { + case PetOP.PetFight: + this.HasNewPet = false; + break; + case PetOP.PetFeed: + { + bool flag2 = data.delexp > 0u; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(string.Format(XSingleton.singleton.GetString("PET_EXP_PERCENT_TIP"), data.delexp.ToString()), "fece00"); + } + bool flag3 = xpet == this.CurSelectedPet; + if (flag3) + { + bool flag4 = !this.IsMaxLevel(petSingle.petid, (int)petSingle.level); + if (flag4) + { + PetLevelTable.RowData petLevel = XPetDocument.GetPetLevel(petSingle.petid, (int)(petSingle.level + 1u)); + bool flag5 = petSingle.exp > petLevel.exp; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PET_LEVEL_MORE_ROLE_TIP"), "fece00"); + } + } + bool flag6 = (long)this.CurSelectedPet.showExp != (long)((ulong)petSingle.exp) || (long)this.CurSelectedPet.showLevel != (long)((ulong)petSingle.level) || this.CurSelectedPet.showFullDegree != petSingle.hungry; + if (flag6) + { + for (int i = 0; i < data.getskills.Count; i++) + { + this.petGetSkill.Add(data.getskills[i]); + } + bool inPlayExpUp = this.InPlayExpUp; + if (inPlayExpUp) + { + this.qExpAnimation.Enqueue(petSingle); + } + else + { + xpet.Init(petSingle, PetChange.All); + } + } + } + else + { + xpet.Init(petSingle, PetChange.None); + } + break; + } + case PetOP.PetBorn: + { + xpet = new XPet(); + xpet.Init(petSingle, PetChange.None); + this.Pets.Add(xpet); + this.HasNewPet = true; + XSingleton.singleton.OpenSystem(XSysDefine.XSys_Horse, 0UL); + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + this.View.PlayPetGetFx(); + } + break; + } + case PetOP.PetExpTransfer: + { + bool flag8 = data.pet.Count != 2; + if (flag8) + { + XSingleton.singleton.AddErrorLog("Pet Transfer Count No 2", null, null, null, null, null); + return; + } + xpet = this.GetPet(data.pet[0].uid); + xpet.Init(data.pet[0], PetChange.ExpTransfer); + xpet = this.GetPet(data.pet[1].uid); + xpet.Init(data.pet[1], PetChange.ExpTransfer); + this.petGetSkill.Clear(); + for (int j = 0; j < data.getskills.Count; j++) + { + this.petGetSkill.Add(data.getskills[j]); + } + bool flag9 = DlgBase.singleton.ExpTransferHandler != null; + if (flag9) + { + DlgBase.singleton.ExpTransferHandler.Transfer(data.pet[0].uid, data.pet[1].uid); + } + break; + } + case PetOP.useskillbook: + { + bool flag10 = xpet == this.CurSelectedPet; + if (flag10) + { + xpet.Init(petSingle, PetChange.None); + } + for (int k = 0; k < data.getskills.Count; k++) + { + this.petGetSkill.Add(data.getskills[k]); + } + bool flag11 = DlgBase.singleton.IsVisible(); + if (flag11) + { + this.View.SkillHandler.PlayNewSkillTip(this.GetNewSkill(), data.delskillid); + } + break; + } + } + switch (data.type) + { + case PetOP.PetFight: + case PetOP.PetUpdate: + case PetOP.PetRelease: + { + bool flag12 = DlgBase.singleton.IsVisible(); + if (flag12) + { + DlgBase.singleton.RefreshList(false); + DlgBase.singleton.RefreshContent(); + } + break; + } + case PetOP.PetTouch: + { + bool flag13 = DlgBase.singleton.IsVisible(); + if (flag13) + { + DlgBase.singleton.RefreshMood(); + } + break; + } + case PetOP.useskillbook: + { + bool flag14 = DlgBase.singleton.IsVisible(); + if (flag14) + { + DlgBase.singleton.RefreshBaseInfo(); + bool flag15 = DlgBase.singleton.SkillLearnHandler.IsVisible(); + if (flag15) + { + DlgBase.singleton.SkillLearnHandler.RefreshList(false); + } + } + break; + } + } + } + } + + public void OnPetAllNotify(PetSysData data) + { + this.Pets.Clear(); + bool flag = data == null || data.petseats == 0u; + if (flag) + { + this.PetSeat = 0u; + while ((ulong)this.PetSeat < (ulong)((long)this.PetSeatBuy.Length)) + { + bool flag2 = int.Parse(this.PetSeatBuy[(int)this.PetSeat]) != 0; + if (flag2) + { + break; + } + this.PetSeat += 1u; + } + } + else + { + this.PetSeat = data.petseats; + bool flag3 = data.pets == null; + if (!flag3) + { + for (int i = 0; i < data.pets.Count; i++) + { + XPet xpet = new XPet(); + xpet.Init(data.pets[i], PetChange.None); + this.Pets.Add(xpet); + } + this.m_CurMount = data.followid; + this.m_CurFightUID = data.fightid; + bool canHasRedPoint = this.CanHasRedPoint; + if (canHasRedPoint) + { + this.HasFood = (this.GetFood().Count != 0); + this.FightPetHungry = (this.CurFightIndex >= 0 && (ulong)this.Pets[this.CurFightIndex].FullDegree < (ulong)((long)int.Parse(XSingleton.singleton.GetValue("PetRedPoint")))); + } + } + } + } + + public void OnReqSetTravelSet(bool status) + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.SetPetPairRide; + rpcC2G_PetOperation.oArg.uid = this.CurSelectedPet.UID; + rpcC2G_PetOperation.oArg.setpairride = status; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + + public void OnReqInviteList() + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.QueryPetPairRideInvite; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + + public void OnReqOffPetPairRide() + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.OffPetPairRide; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + + public void OnReqIgnoreAll() + { + RpcC2G_PetOperation rpcC2G_PetOperation = new RpcC2G_PetOperation(); + rpcC2G_PetOperation.oArg.type = PetOP.IgnorePetPairRideInvite; + XSingleton.singleton.Send(rpcC2G_PetOperation); + } + + public void ReqPetPetOperationOther(PetOtherOp type, ulong otherRoleId) + { + RpcC2G_PetOperationOther rpcC2G_PetOperationOther = new RpcC2G_PetOperationOther(); + rpcC2G_PetOperationOther.oArg.op = type; + rpcC2G_PetOperationOther.oArg.otherroleid = otherRoleId; + XSingleton.singleton.Send(rpcC2G_PetOperationOther); + } + + public void OnReqSetTravelSetBack(PetOperationArg oArg, PetOperationRes oRes) + { + bool flag = this.CurSelectedPet != null && oArg.uid == this.CurSelectedPet.UID; + if (flag) + { + this.CurSelectedPet.Canpairride = oArg.setpairride; + } + else + { + for (int i = 0; i < this.m_PetList.Count; i++) + { + bool flag2 = this.m_PetList[i].UID == oArg.uid; + if (flag2) + { + this.m_PetList[i].Canpairride = oArg.setpairride; + break; + } + } + } + } + + public void OnReqReqInviteListBack(PetOperationArg oArg, PetOperationRes oRes) + { + this.m_petInviteInfolist.Clear(); + for (int i = 0; i < oRes.invite.Count; i++) + { + PetInviteInfo petInviteInfo = new PetInviteInfo(); + petInviteInfo.roleid = oRes.invite[i].roleid; + petInviteInfo.petuid = oRes.invite[i].petuid; + petInviteInfo.petconfigid = oRes.invite[i].petconfigid; + petInviteInfo.rolename = oRes.invite[i].rolename; + petInviteInfo.profession = oRes.invite[i].profession; + petInviteInfo.ppt = oRes.invite[i].ppt; + petInviteInfo.petppt = oRes.invite[i].petppt; + this.m_petInviteInfolist.Add(petInviteInfo); + } + bool flag = this.m_petInviteInfolist.Count == 0; + if (flag) + { + this.BeInvited = false; + this.BeInvitedCount = 0u; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshUi(); + } + } + + public void OnReqIgnoreAllBack() + { + this.m_petInviteInfolist.Clear(); + this.BeInvited = false; + this.BeInvitedCount = 0u; + } + + public void OnReqOffPetPairRideBack() + { + XSingleton.singleton.CloseAllUI(); + } + + public void OnPetPetOperationOtherBack(PetOperationOtherArg oArg, PetOperationOtherRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + bool flag3 = oArg.op == PetOtherOp.AgreePetPairRide; + if (flag3) + { + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + this.OnReqInviteList(); + } + } + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + switch (oArg.op) + { + case PetOtherOp.DoPetPairRide: + { + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.SetVisible(false, true); + } + break; + } + case PetOtherOp.InvitePetPairRide: + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("InvitedSuc"), "fece00"); + break; + case PetOtherOp.AgreePetPairRide: + { + this.BeInvited = false; + this.BeInvitedCount = 0u; + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + XSingleton.singleton.CloseAllUI(); + } + break; + } + } + } + } + } + + public void OnPetInviteNtfPtc(PetInviteNtf roPtc) + { + this.BeInvitedCount = roPtc.allcount; + this.BeInvited = true; + } + + public uint GetFullDegreeRate() + { + bool flag = this.CurSelectedPet == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(this.CurSelectedPet.ID); + uint maxHungry = petInfo.maxHungry; + result = 100u * this.CurSelectedPet.showFullDegree / maxHungry; + } + return result; + } + + public bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag = xaddItemEventArgs.items[i].type == 14u; + if (flag) + { + this.HasFood = true; + return true; + } + } + return false; + } + + public XPet GetPet(ulong uid) + { + for (int i = 0; i < this.Pets.Count; i++) + { + bool flag = uid == this.Pets[i].UID; + if (flag) + { + return this.Pets[i]; + } + } + return null; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.OnPetAllNotify(arg.PlayerInfo.petsys); + bool flag = this.CurSelectedPet == null; + if (flag) + { + this.Select(this.DefaultPet, false); + } + bool flag2 = DlgBase.singleton.ExpTransferHandler != null && DlgBase.singleton.ExpTransferHandler.IsVisible(); + if (flag2) + { + DlgBase.singleton.ExpTransferHandler.Select(DlgBase.singleton.ExpTransferHandler.CurExpTransferSelectedIndex, false); + } + } + + public static void PreLoadPet(int maxCount = 10) + { + List list = ListPool.Get(); + int num = 0; + int num2 = XPetDocument._PetItemTable.Table.Length; + while (num < num2 && num < maxCount) + { + PetItemTable.RowData rowData = XPetDocument._PetItemTable.Table[num]; + uint presentID = XPetDocument.GetPresentID(rowData.petid); + bool flag = presentID != 0u && !list.Contains(presentID); + if (flag) + { + list.Add(presentID); + } + num++; + } + int i = 0; + int count = list.Count; + while (i < count) + { + string location = "Prefabs/" + XSingleton.singleton.EntityInfo.GetByPresentID(list[i]).Prefab; + XSingleton.singleton.CreateInAdvance(location, 1, ECreateHideType.DisableAnim); + i++; + } + ListPool.Release(list); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPetDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPetDocument.cs.meta new file mode 100644 index 00000000..9998eaaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b91a402fd3c5b004bb3806ef7a9d9ccb +timeCreated: 1611404409 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPetRankInfo.cs b/Client/Assets/Scripts/XMainClient/XPetRankInfo.cs new file mode 100644 index 00000000..13224f73 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetRankInfo.cs @@ -0,0 +1,23 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XPetRankInfo : XBaseRankInfo + { + public uint petID; + + public ulong petUID; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XBaseRankInfo.GetUnderLineName(this.name); + this.id = data.RoleId; + this.rank = data.Rank; + this.value = (ulong)data.powerpoint; + this.petID = data.petid; + this.petUID = data.petuid; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPetRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XPetRankInfo.cs.meta new file mode 100644 index 00000000..59c5fd22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9d880b23316280e40affa9d4e005b521 +timeCreated: 1611404236 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPetRankList.cs b/Client/Assets/Scripts/XMainClient/XPetRankList.cs new file mode 100644 index 00000000..c9f2da20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XPetRankList : XBaseRankList + { + public XPetRankList() + { + this.type = XRankType.PetRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XPetRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPetRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XPetRankList.cs.meta new file mode 100644 index 00000000..ab2f7c55 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 53afeb1ef1836b74186bb8d46258c94a +timeCreated: 1611403712 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPetSkillHandler.cs b/Client/Assets/Scripts/XMainClient/XPetSkillHandler.cs new file mode 100644 index 00000000..27247227 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetSkillHandler.cs @@ -0,0 +1,338 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPetSkillHandler : DlgHandlerBase + { + private XPetDocument _PetDoc; + + public XPet CurPet = null; + + public bool HasGetSkillUI = false; + + private static readonly uint SKILL_HORIZONTAL_NUM_MAX = 4u; + + private static readonly uint SKILL_VERTICAL_NUM_MAX = 2u; + + public static readonly uint SKILL_MAX = 8u; + + private Transform m_SkillTpl; + + private IXUISprite m_SkillTips; + + private XUIPool m_SkillPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private Transform m_NewSkill; + + private IXUILabel m_NewSkillText; + + private Transform m_NewSkillIcon; + + private IXUISprite m_NewSkillClose; + + private IXUISprite uiSkillTipsClose; + + private IXUISprite uiIcon; + + private IXUISprite uiQuality; + + private IXUILabel uiName; + + private IXUILabel uiExplanation; + + private IXUILabel uiOpenCondition; + + protected override void Init() + { + base.Init(); + this._PetDoc = XDocuments.GetSpecificDocument(XPetDocument.uuID); + this.m_SkillTpl = base.PanelObject.transform.Find("SkillTpl"); + this.m_SkillPool.SetupPool(null, this.m_SkillTpl.gameObject, XPetSkillHandler.SKILL_MAX, false); + int num = 0; + while ((long)num < (long)((ulong)XPetSkillHandler.SKILL_MAX)) + { + GameObject gameObject = this.m_SkillPool.FetchGameObject(false); + gameObject.name = string.Format("Skill{0}", num); + num++; + } + Transform transform = base.PanelObject.transform.Find("Tips"); + bool flag = transform != null; + if (flag) + { + this.m_SkillTips = (transform.GetComponent("XUISprite") as IXUISprite); + this.m_SkillTips.gameObject.SetActive(false); + } + this.m_NewSkill = base.PanelObject.transform.Find("NewSkill"); + bool flag2 = this.m_NewSkill != null; + if (flag2) + { + this.m_NewSkillText = (this.m_NewSkill.Find("level").GetComponent("XUILabel") as IXUILabel); + this.m_NewSkillIcon = this.m_NewSkill.Find("NewSkilllIcon"); + this.m_NewSkillClose = (this.m_NewSkill.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.m_NewSkillClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnNewSkillCloseClick)); + this.m_NewSkill.gameObject.SetActive(false); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + public override void OnUnload() + { + this._PetDoc = null; + base.OnUnload(); + } + + public void Refresh(XPet pet) + { + this.CurPet = pet; + bool flag = this.CurPet == null; + if (!flag) + { + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(this.CurPet.ID); + uint num = petInfo.randSkillMax + XPet.FIX_SKILL_COUNT_MAX; + this.m_SkillPool.ReturnAll(false); + int num2 = 0; + while ((long)num2 < (long)((ulong)XPetSkillHandler.SKILL_VERTICAL_NUM_MAX)) + { + int num3 = 0; + while ((long)num3 < (long)((ulong)XPetSkillHandler.SKILL_HORIZONTAL_NUM_MAX)) + { + GameObject gameObject = this.m_SkillPool.FetchGameObject(false); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + int spriteWidth = ixuisprite.spriteWidth; + int spriteHeight = ixuisprite.spriteHeight; + gameObject.transform.localPosition = new Vector3((float)(spriteWidth * num3), (float)(-(float)spriteHeight * num2), 0f); + int num4 = (int)((long)num2 * (long)((ulong)XPetSkillHandler.SKILL_HORIZONTAL_NUM_MAX) + (long)num3); + XPet.Skill skillInfo = null; + bool flag2 = num4 < this.CurPet.ShowSkillList.Count; + if (flag2) + { + skillInfo = this.CurPet.ShowSkillList[num4]; + } + bool flag3 = !this._DrawSkillIcon(gameObject, skillInfo, num4, (ulong)num <= (ulong)((long)num4)); + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "PetSkillCount Error!\n PetID:", + this.CurPet.ID, + " CurSKill-SkillNumMAX:", + this.CurPet.ShowSkillList.Count, + "-", + num + }), null, null, null, null, null); + } + ixuisprite.ID = (ulong)((long)num4); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSkillClicked)); + num3++; + } + num2++; + } + } + } + + private bool _DrawSkillIcon(GameObject go, XPet.Skill skillInfo, int index = -1, bool isCover = false) + { + IXUISprite ixuisprite = null; + IXUILabel ixuilabel = null; + IXUISprite ixuisprite2 = null; + Transform transform = null; + Transform transform2 = go.transform.Find("SkillIcon"); + bool flag = transform2 != null; + if (flag) + { + ixuisprite = (transform2.GetComponent("XUISprite") as IXUISprite); + } + transform2 = go.transform.Find("level"); + bool flag2 = transform2 != null; + if (flag2) + { + ixuilabel = (transform2.GetComponent("XUILabel") as IXUILabel); + } + transform2 = go.transform.Find("Quality"); + bool flag3 = transform2 != null; + if (flag3) + { + ixuisprite2 = (transform2.GetComponent("XUISprite") as IXUISprite); + } + transform2 = go.transform.Find("Cover"); + bool flag4 = transform2 != null; + if (flag4) + { + transform = transform2; + } + bool flag5 = ixuisprite != null; + if (flag5) + { + ixuisprite.SetSprite(""); + } + bool flag6 = ixuilabel != null; + if (flag6) + { + ixuilabel.gameObject.SetActive(false); + } + bool flag7 = ixuisprite2 != null; + if (flag7) + { + ixuisprite2.SetSprite("kuang_zq"); + } + bool flag8 = transform != null; + if (flag8) + { + transform.gameObject.SetActive(isCover); + } + bool flag9 = skillInfo == null; + bool result; + if (flag9) + { + result = true; + } + else if (isCover) + { + result = false; + } + else + { + PetPassiveSkillTable.RowData petSkill = XPetDocument.GetPetSkill(skillInfo.id); + bool flag10 = petSkill == null; + if (flag10) + { + XSingleton.singleton.AddErrorLog("PetSkill Id:" + skillInfo.id + " No Find!", null, null, null, null, null); + } + bool flag11 = ixuisprite != null; + if (flag11) + { + ixuisprite.SetSprite(petSkill.Icon); + } + bool flag12 = ixuisprite != null; + if (flag12) + { + ixuisprite.SetColor(Color.white); + } + bool flag13 = !skillInfo.open; + if (flag13) + { + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(this.CurPet.ID); + bool flag14 = ixuilabel != null; + if (flag14) + { + ixuilabel.gameObject.SetActive(true); + ixuilabel.SetText(string.Format(XSingleton.singleton.GetString("PET_LEVEL_OPEN"), petInfo.LvRequire[index])); + } + bool flag15 = ixuisprite != null; + if (flag15) + { + ixuisprite.SetColor(Color.black); + } + } + bool flag16 = ixuisprite2 != null; + if (flag16) + { + ixuisprite2.SetSprite(string.Format("kuang_zq0{0}", petSkill.quality)); + } + result = true; + } + return result; + } + + private void _OnSkillClicked(IXUISprite iSp) + { + bool flag = this.CurPet == null; + if (!flag) + { + int num = (int)iSp.ID; + bool flag2 = num >= this.CurPet.ShowSkillList.Count; + if (!flag2) + { + XPet.Skill skill = this.CurPet.ShowSkillList[num]; + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(this.CurPet.ID); + uint id = skill.id; + this.m_SkillTips.SetVisible(true); + Transform transform = this.m_SkillTips.gameObject.transform; + Transform parent = base.PanelObject.transform.Find(string.Format("Skill{0}", num)); + Vector3 localPosition = transform.localPosition; + XSingleton.singleton.AddChild(parent, transform); + transform.localPosition = localPosition; + bool flag3 = this.uiSkillTipsClose == null; + if (flag3) + { + this.uiSkillTipsClose = (transform.Find("Close").GetComponent("XUISprite") as IXUISprite); + this.uiIcon = (transform.Find("uiIcon").GetComponent("XUISprite") as IXUISprite); + this.uiQuality = (transform.Find("Quality").GetComponent("XUISprite") as IXUISprite); + this.uiName = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.uiExplanation = (transform.Find("Explanation").GetComponent("XUILabel") as IXUILabel); + this.uiOpenCondition = (transform.Find("OpenCondition").GetComponent("XUILabel") as IXUILabel); + } + this.uiSkillTipsClose.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnSkillClose)); + PetPassiveSkillTable.RowData petSkill = XPetDocument.GetPetSkill(id); + this.uiIcon.SetSprite(petSkill.Icon); + this.uiQuality.SetSprite(string.Format("kuang_zq0{0}", petSkill.quality)); + this.uiName.SetText(petSkill.name); + this.uiExplanation.SetText(petSkill.Detail); + bool open = skill.open; + if (open) + { + this.uiOpenCondition.SetText(""); + } + else + { + uint num2 = petInfo.LvRequire[num]; + this.uiOpenCondition.SetText(string.Format(XSingleton.singleton.GetString("PET_OPEN_SKILL"), num2)); + } + } + } + } + + public void PlayNewSkillTip(int newSkillIndex, uint lostSkillId = 0u) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = this.CurPet == null || newSkillIndex >= this.CurPet.ShowSkillList.Count || newSkillIndex < 0; + if (!flag2) + { + XPet.Skill skill = this.CurPet.ShowSkillList[newSkillIndex]; + this.m_NewSkill.gameObject.SetActive(true); + this.HasGetSkillUI = true; + PetPassiveSkillTable.RowData petSkill = XPetDocument.GetPetSkill(skill.id); + string text = string.Format(XSingleton.singleton.GetString("PET_NEW_SKILL"), this.CurPet.Name, petSkill.name); + bool flag3 = lostSkillId == 0u; + if (flag3) + { + text = string.Format(XSingleton.singleton.GetString("PET_NEW_SKILL"), this.CurPet.Name, petSkill.name); + } + else + { + PetPassiveSkillTable.RowData petSkill2 = XPetDocument.GetPetSkill(lostSkillId); + text = string.Format(XSingleton.singleton.GetString("PET_REPLACE_SKILL"), this.CurPet.Name, petSkill.name, petSkill2.name); + } + this.m_NewSkillText.SetText(text); + this._DrawSkillIcon(this.m_NewSkillIcon.gameObject, skill, -1, false); + this.m_NewSkillClose.ID = (ulong)((long)newSkillIndex); + this.Refresh(this.CurPet); + } + } + } + + private void _OnSkillClose(IXUISprite iSp) + { + this.m_SkillTips.SetVisible(false); + } + + private void _OnNewSkillCloseClick(IXUISprite iSp) + { + this.m_NewSkill.gameObject.SetActive(false); + this.HasGetSkillUI = false; + Transform parent = base.PanelObject.transform.Find(string.Format("Skill{0}", iSp.ID)); + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/VehicleFX/Vehicle_jnjh", parent, Vector3.zero, Vector3.one, 1f, false, 3f, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPetSkillHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XPetSkillHandler.cs.meta new file mode 100644 index 00000000..f6185df4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPetSkillHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0084e6cb10af9084db943d94b528f0a5 +timeCreated: 1611402950 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPieceWiseDataMgr.cs b/Client/Assets/Scripts/XMainClient/XPieceWiseDataMgr.cs new file mode 100644 index 00000000..e122f71f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPieceWiseDataMgr.cs @@ -0,0 +1,103 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPieceWiseDataMgr + { + private List> m_Datas = new List>(); + + private bool bRangeIsSet = false; + + private bool bDataIsSet = false; + + private XOrderData m_Min; + + private XOrderData m_Max; + + public void SetRange(double xmin, double ymin, double xmax, double ymax) + { + this.m_Min.x = xmin; + this.m_Min.y = ymin; + this.m_Max.x = xmax; + this.m_Max.y = ymax; + this.bRangeIsSet = true; + bool flag = this.bDataIsSet; + if (flag) + { + this.m_Datas.Add(this.m_Min); + this.m_Datas.Add(this.m_Max); + this.m_Datas.Sort(); + } + } + + public void Init(ref SeqListRef datas) + { + bool flag = false; + bool flag2 = false; + this.m_Datas.Clear(); + for (int i = 0; i < datas.Count; i++) + { + XOrderData xorderData; + xorderData.x = (double)datas[i, 0]; + xorderData.y = (double)datas[i, 1]; + this.m_Datas.Add(xorderData); + bool flag3 = this.bRangeIsSet; + if (flag3) + { + bool flag4 = xorderData.x == this.m_Min.x; + if (flag4) + { + flag = true; + } + else + { + bool flag5 = xorderData.x == this.m_Max.x; + if (flag5) + { + flag2 = true; + } + } + } + } + bool flag6 = this.bRangeIsSet; + if (flag6) + { + bool flag7 = !flag; + if (flag7) + { + this.m_Datas.Add(this.m_Min); + } + bool flag8 = !flag2; + if (flag8) + { + this.m_Datas.Add(this.m_Max); + } + } + this.m_Datas.Sort(); + this.bDataIsSet = true; + } + + public double GetData(double x) + { + for (int i = 1; i < this.m_Datas.Count; i++) + { + bool flag = this.m_Datas[i].x >= x; + if (flag) + { + XOrderData xorderData = this.m_Datas[i - 1]; + XOrderData xorderData2 = this.m_Datas[i]; + double num = xorderData2.x - xorderData.x; + bool flag2 = num == 0.0; + if (flag2) + { + num = 1.0; + } + return xorderData.y + (xorderData2.y - xorderData.y) * (x - xorderData.x) / num; + } + } + return 0.0; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPieceWiseDataMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XPieceWiseDataMgr.cs.meta new file mode 100644 index 00000000..e1e8af24 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPieceWiseDataMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ffb97d1b24cfa2c43a2bfa78f433163f +timeCreated: 1611404948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs b/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs new file mode 100644 index 00000000..db327d78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs @@ -0,0 +1,71 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XPkLoadingBehaviour : DlgBehaviourBase + { + public IXUITweenTool m_PkLoadingTween; + + public IXUILabel[] m_Name = new IXUILabel[2]; + + public IXUILabel[] m_Level = new IXUILabel[2]; + + public IXUILabel[] m_WinCount = new IXUILabel[2]; + + public IXUILabel[] m_Point = new IXUILabel[2]; + + public IXUILabel[] m_Percent = new IXUILabel[2]; + + public IXUILabel[] m_NearWin = new IXUILabel[2]; + + public IXUISprite[] m_Prefession = new IXUISprite[2]; + + public Transform m_LeftSnapshot; + + public Transform m_RightSnapshot; + + public IXUITexture[] m_HalfPic = new IXUITexture[2]; + + public GameObject[] m_Detail = new GameObject[2]; + + private void Awake() + { + this.m_PkLoadingTween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + Transform transform = base.transform.Find("Bg/Left"); + Transform transform2 = base.transform.Find("Bg/Right"); + this.m_Name[0] = (transform.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_Name[1] = (transform2.Find("Name").GetComponent("XUILabel") as IXUILabel); + this.m_Level[0] = (transform.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_Level[1] = (transform2.Find("Level").GetComponent("XUILabel") as IXUILabel); + this.m_Prefession[0] = (transform.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_Prefession[1] = (transform2.Find("Profession").GetComponent("XUISprite") as IXUISprite); + this.m_LeftSnapshot = transform.Find("Snapshot"); + this.m_RightSnapshot = transform2.Find("Snapshot"); + this.m_HalfPic[0] = (transform.Find("HalfPic").GetComponent("XUITexture") as IXUITexture); + this.m_HalfPic[1] = (transform2.Find("HalfPic").GetComponent("XUITexture") as IXUITexture); + Transform transform3 = transform.Find("Detail"); + Transform transform4 = transform2.Find("Detail"); + bool flag = transform3 != null; + if (flag) + { + this.m_Detail[0] = transform.Find("Detail").gameObject; + this.m_WinCount[0] = (transform.Find("Detail/WinCount").GetComponent("XUILabel") as IXUILabel); + this.m_Point[0] = (transform.Find("Detail/Point").GetComponent("XUILabel") as IXUILabel); + this.m_Percent[0] = (transform.Find("Detail/Percent").GetComponent("XUILabel") as IXUILabel); + this.m_NearWin[0] = (transform.Find("Detail/NearWin").GetComponent("XUILabel") as IXUILabel); + } + bool flag2 = transform4 != null; + if (flag2) + { + this.m_Detail[1] = transform2.Find("Detail").gameObject; + this.m_WinCount[1] = (transform2.Find("Detail/WinCount").GetComponent("XUILabel") as IXUILabel); + this.m_Point[1] = (transform2.Find("Detail/Point").GetComponent("XUILabel") as IXUILabel); + this.m_Percent[1] = (transform2.Find("Detail/Percent").GetComponent("XUILabel") as IXUILabel); + this.m_NearWin[1] = (transform2.Find("Detail/NearWin").GetComponent("XUILabel") as IXUILabel); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs.meta new file mode 100644 index 00000000..6574dd8d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPkLoadingBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2427217b1d905d7419b4562d29090be9 +timeCreated: 1611403459 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPkLoadingView.cs b/Client/Assets/Scripts/XMainClient/XPkLoadingView.cs new file mode 100644 index 00000000..c658287a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPkLoadingView.cs @@ -0,0 +1,194 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPkLoadingView : DlgBase + { + public override string fileName + { + get + { + return "Common/PkLoadingDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public bool IsLoadingOver + { + get + { + return this._isLoadingOver; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + private SceneType _SceneType; + + private XQualifyingDocument _doc = null; + + private bool _isLoadingOver = false; + + protected override void Init() + { + base.Init(); + this._isLoadingOver = false; + this._doc = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + } + + public void ShowPkLoading(SceneType sceneType) + { + this._SceneType = sceneType; + this.SetVisible(true, true); + } + + protected override void OnShow() + { + base.OnShow(); + XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.LoadingOver), null); + bool flag = this._SceneType == SceneType.SCENE_PK; + if (flag) + { + this.SetRoleInfo(); + } + else + { + bool flag2 = this._SceneType == SceneType.SCENE_INVFIGHT; + if (flag2) + { + this.SetInvFightInfo(); + } + } + } + + protected override void OnHide() + { + base.OnHide(); + for (int i = 0; i < base.uiBehaviour.m_HalfPic.Length; i++) + { + base.uiBehaviour.m_HalfPic[i].SetTexturePath(""); + } + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + private void LoadingOver(object o) + { + this._isLoadingOver = true; + } + + private void SetRoleInfo() + { + for (int i = 0; i < base.uiBehaviour.m_Detail.Length; i++) + { + base.uiBehaviour.m_Detail[i].SetActive(true); + } + for (int j = 0; j < this._doc.PkInfoList.Count; j++) + { + base.uiBehaviour.m_Level[j].SetText(string.Format("Lv.{0}", this._doc.PkInfoList[j].brief.roleLevel)); + base.uiBehaviour.m_Name[j].SetText(this._doc.PkInfoList[j].brief.roleName); + base.uiBehaviour.m_Point[j].SetText(this._doc.PkInfoList[j].point.ToString()); + base.uiBehaviour.m_WinCount[j].SetText(this._doc.PkInfoList[j].win.ToString()); + base.uiBehaviour.m_Percent[j].SetText(string.Format("{0}%", this._doc.PkInfoList[j].percent)); + string text = ""; + int num = (this._doc.PkInfoList[j].records.Count > 5) ? 5 : this._doc.PkInfoList[j].records.Count; + for (int k = 0; k < num; k++) + { + switch (this._doc.PkInfoList[j].records[k]) + { + case 1u: + text = string.Format((j == 0) ? "{0}[f3da5e]{1}[-]" : "[f3da5e]{1}[-]{0}", text, XStringDefineProxy.GetString("WIN")); + break; + case 2u: + text = string.Format((j == 0) ? "{0}[d5d5d5]{1}[-]" : "[d5d5d5]{1}[-]{0}", text, XStringDefineProxy.GetString("LOSE")); + break; + case 3u: + text = string.Format((j == 0) ? "{0}[99e243]{1}[-]" : "[99e243]{1}[-]{0}", text, XStringDefineProxy.GetString("DRAW")); + break; + } + } + base.uiBehaviour.m_NearWin[j].SetText(text); + int num2 = (int)this._doc.PkInfoList[j].brief.roleProfession; + bool flag = XAttributes.GetCategory(this._doc.PkInfoList[j].brief.roleID) > EntityCategory.Category_Role; + if (flag) + { + num2 %= 10; + } + base.uiBehaviour.m_Prefession[j].SetSprite(XSingleton.singleton.GetProfIcon(num2)); + string halfPic = XSingleton.singleton.GetHalfPic(this._doc.PkInfoList[j].brief.roleProfession % 10u); + base.uiBehaviour.m_HalfPic[j].SetTexturePath("atlas/UI/common/2DAvatar/" + halfPic); + } + } + + private void SetInvFightInfo() + { + for (int i = 0; i < base.uiBehaviour.m_Detail.Length; i++) + { + base.uiBehaviour.m_Detail[i].SetActive(false); + } + XPKInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XPKInvitationDocument.uuID); + for (int j = 0; j < specificDocument.PKInfoList.Count; j++) + { + bool flag = j < base.uiBehaviour.m_Level.Length; + if (flag) + { + base.uiBehaviour.m_Level[j].SetText(string.Format("Lv.{0}", specificDocument.PKInfoList[j].roleLevel)); + base.uiBehaviour.m_Name[j].SetText(specificDocument.PKInfoList[j].roleName); + base.uiBehaviour.m_Prefession[j].SetSprite(XSingleton.singleton.GetProfIcon((int)specificDocument.PKInfoList[j].roleProfession)); + string halfPic = XSingleton.singleton.GetHalfPic(specificDocument.PKInfoList[j].roleProfession % 10u); + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "Load atlas/UI/common/2DAvatar/", + halfPic, + ".png, profession = ", + specificDocument.PKInfoList[j].roleProfession + }), null, null, null, null, null, XDebugColor.XDebug_None); + base.uiBehaviour.m_HalfPic[j].SetTexturePath("atlas/UI/common/2DAvatar/" + halfPic); + } + } + } + + public void HidePkLoading() + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_PkLoadingTween.PlayTween(true, -1f); + base.uiBehaviour.m_PkLoadingTween.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPkLoadingTweenFinish)); + } + } + + private void OnPkLoadingTweenFinish(IXUITweenTool tween) + { + this.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPkLoadingView.cs.meta b/Client/Assets/Scripts/XMainClient/XPkLoadingView.cs.meta new file mode 100644 index 00000000..4c56171d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPkLoadingView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3f9cde49f649de8439c574d3a26591b1 +timeCreated: 1611403612 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPlatformAbilityDocument.cs b/Client/Assets/Scripts/XMainClient/XPlatformAbilityDocument.cs new file mode 100644 index 00000000..4ec5dc80 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlatformAbilityDocument.cs @@ -0,0 +1,146 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPlatformAbilityDocument : XDocComponent + { + public override uint ID + { + get + { + return XPlatformAbilityDocument.uuID; + } + } + + public static XPlatformAbilityDocument Doc + { + get + { + return XDocuments.GetSpecificDocument(XPlatformAbilityDocument.uuID); + } + } + + public QQVipInfoClient QQVipInfo + { + get + { + return this.m_qqVipInfo; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("PlatformAbilityDocument"); + + private QQVipInfoClient m_qqVipInfo = null; + + public bool QQVipRedPoint = false; + + public void ClickRedPointNtf() + { + bool flag = !this.QQVipRedPoint; + if (!flag) + { + PtcC2G_CloseHintNtf ptcC2G_CloseHintNtf = new PtcC2G_CloseHintNtf(); + ptcC2G_CloseHintNtf.Data.systemid = (uint)XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_QQVIP); + XSingleton.singleton.Send(ptcC2G_CloseHintNtf); + } + } + + public void QueryQQVipInfo() + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_QQVIP); + if (flag) + { + RpcC2G_QueryQQVipInfo rpcC2G_QueryQQVipInfo = new RpcC2G_QueryQQVipInfo(); + rpcC2G_QueryQQVipInfo.oArg.token = XSingleton.singleton.TokenCache; + XSingleton.singleton.Send(rpcC2G_QueryQQVipInfo); + } + } + + public void OnQueryQQVipInfo(QueryQQVipInfoArg oArg, QueryQQVipInfoRes oRes) + { + bool flag = oRes == null; + if (!flag) + { + bool flag2 = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag3 = oRes.info == null; + if (!flag3) + { + this.m_qqVipInfo = oRes.info; + XSingleton.singleton.AddLog(string.Concat(new string[] + { + "[QQVipInfo] isVip:", + this.m_qqVipInfo.is_svip.ToString(), + ", isSVip:", + this.m_qqVipInfo.is_svip.ToString(), + ",is_bigger_one_month:", + this.m_qqVipInfo.is_bigger_one_month.ToString() + }), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag4 = DlgBase.singleton.IsVisible() && DlgBase.singleton.CurrentTab == OptionsTab.InfoTab; + if (flag4) + { + DlgBase.singleton.ShowQQVipInfo(); + } + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.RefreshQQVipInfo(); + } + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.RefreshQQVip(); + } + } + } + } + } + + public void OpenQQVipRechargeH5() + { + string text = string.Format("{0}?sRoleId={1}&sPartition={2}&sPfkey={3}", new object[] + { + XSingleton.singleton.GetValue("QQVipRechargeUrl"), + XSingleton.singleton.XPlayerData.RoleID, + XSingleton.singleton.ServerID, + "pfkey" + }); + XSingleton.singleton.AddLog("[OpenQQVipRechargeH5] url = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + Dictionary dictionary = new Dictionary(); + dictionary["url"] = text; + dictionary["screendir"] = "LANDSCAPE"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + } + + public void OnQQVipPayCallback(string msg) + { + XSingleton.singleton.AddLog("Pay [OnQQVipPayCallback] msg:" + msg, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = msg == "Success"; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("QQVIP_RECHARGE_SUC"), "fece00"); + this.QueryQQVipInfo(); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("QQVIP_RECHARGE_FAIL"), "fece00"); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPlatformAbilityDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPlatformAbilityDocument.cs.meta new file mode 100644 index 00000000..96ea5889 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlatformAbilityDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 359b0fb172d17d642a5a468024857512 +timeCreated: 1611403559 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPlaySoundArgs.cs b/Client/Assets/Scripts/XMainClient/XPlaySoundArgs.cs new file mode 100644 index 00000000..a1f1c20c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlaySoundArgs.cs @@ -0,0 +1,43 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPlaySoundArgs : XEventArgs + { + public XPlaySoundArgs.Action SoundAction { get; set; } + + public AudioChannel SoundChannel { get; set; } + + public string EventName { get; set; } + + public XAudioExParam ExParam { get; set; } + + public Vector3 Position = Vector3.zero; + + public enum Action + { + Play, + Pause, + Stop + } + + public XPlaySoundArgs() + { + this._eDefine = XEventDefine.XEvent_PlaySound; + this.SoundChannel = AudioChannel.Motion; + } + + public override void Recycle() + { + base.Recycle(); + this.SoundAction = XPlaySoundArgs.Action.Stop; + this.SoundChannel = AudioChannel.Motion; + this.EventName = null; + this.Position = Vector3.zero; + this.ExParam = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPlaySoundArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XPlaySoundArgs.cs.meta new file mode 100644 index 00000000..a9ac3aa8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlaySoundArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4312845dfca96fd47811d597aded9c4b +timeCreated: 1611403641 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPlayer.cs b/Client/Assets/Scripts/XMainClient/XPlayer.cs new file mode 100644 index 00000000..c9707f54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlayer.cs @@ -0,0 +1,385 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XPlayer : XRole + { + public XRole WatchTo + { + get + { + return (this._watch_to != null && !this._watch_to.Deprecated) ? this._watch_to : null; + } + } + + public XLocateTargetComponent TargetLocated + { + get + { + return this._located_target; + } + } + + public bool IsCorrectingMe + { + get + { + return this._correct_me; + } + } + + public uint[] SkillSlot + { + get + { + bool flag = base.Skill != null && base.Skill.IsSkillReplaced; + uint[] result; + if (flag) + { + result = base.Skill.ReplacedSlot; + } + else + { + result = this.Attributes.skillSlot; + } + return result; + } + } + + public XPlayerAttributes PlayerAttributes + { + get + { + return this.Attributes as XPlayerAttributes; + } + } + + private XLocateTargetComponent _located_target = null; + + private XRole _watch_to = null; + + private IXPlayerAction _action = null; + + private bool _correct_me = false; + + public static int PlayerLayer = LayerMask.NameToLayer("Player"); + + public override bool Initilize(int flag) + { + base.Initilize(flag); + this._xobject.Tag = "Player"; + this._eEntity_Type |= XEntity.EnitityType.Entity_Player; + this._layer = XPlayer.PlayerLayer; + this._using_cc_move = true; + this._client_predicted = true; + this._action = XSingleton.singleton.AttachInterface(1u, new XPlayerAction()); + XSingleton.singleton.AttachInterface(XSingleton.singleton.XHash("IAssociatedCamera"), new XAssociatedCamera()); + bool flag2 = !XSingleton.singleton.bSpectator; + if (flag2) + { + XSingleton.singleton.CreateComponent(this, XActionGeneratorComponent.uuID); + bool flag3 = XSingleton.singleton.SceneCanNavi(XSingleton.singleton.SceneID); + if (flag3) + { + this._nav = (XSingleton.singleton.CreateComponent(this, XNavigationComponent.uuID) as XNavigationComponent); + } + bool flag4 = XSingleton.singleton.CanAutoPlay(XSingleton.singleton.SceneID) && this._xobject.IsNotEmptyObject; + if (flag4) + { + bool flag5 = this._ai == null; + if (flag5) + { + this._ai = (XSingleton.singleton.CreateComponent(this, XAIComponent.uuID) as XAIComponent); + } + bool flag6 = this._nav == null; + if (flag6) + { + this._nav = (XSingleton.singleton.CreateComponent(this, XNavigationComponent.uuID) as XNavigationComponent); + } + } + } + bool flag7 = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall && XSingleton.singleton.SpecifiedTargetLocatedRange(XSingleton.singleton.SceneID) != 0f; + if (flag7) + { + this._located_target = (XSingleton.singleton.CreateComponent(this, XLocateTargetComponent.uuID) as XLocateTargetComponent); + } + return true; + } + + public void UpdatePlayerAttr(XPlayerAttributes attr) + { + this._attr = attr; + } + + public override void OnCreated() + { + XSingleton.singleton.Player = this; + bool flag = this.Attributes.SkillLevelInfo != null; + if (flag) + { + this.Attributes.SkillLevelInfo.RefreshSelfLinkedLevels(this); + } + base.OnCreated(); + } + + public override void OnDestroy() + { + XSingleton.singleton.Player = null; + XSingleton.singleton.DetachInterface(1u); + XSingleton.singleton.DetachInterface(XSingleton.singleton.XHash("IAssociatedCamera")); + this._action = null; + this._watch_to = null; + base.OnDestroy(); + } + + public override void Dying() + { + base.Dying(); + } + + public override void Revive() + { + base.Revive(); + XSingleton.singleton.OnPlayerRevive(); + } + + public void PreUpdate() + { + this._action.RefreshPosition(); + } + + public void WatchIt(XRole role) + { + this._watch_to = role; + this._net.Pause = true; + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + specificDocument.ChangeSpectator(role); + XGuildArenaBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XGuildArenaBattleDocument.uuID); + specificDocument2.ChangeSpectator(role); + this.UpdateWatcher(); + XCameraSoloComponent solo = XSingleton.singleton.GameCamera.Solo; + bool flag = solo == null; + if (!flag) + { + solo.Stop(); + XSingleton.singleton.GameCamera.TrySolo(); + } + } + + public override void OnTransform(uint to) + { + base.OnTransform(to); + XBattleSkillDocument specificDocument = XDocuments.GetSpecificDocument(XBattleSkillDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + specificDocument.ResetAll(XSingleton.singleton.SceneReady && base.IsTransform, true); + } + } + + public override void UpdateWatcher() + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + bool flag = this._watch_to != null; + if (flag) + { + bool deprecated = this._watch_to.Deprecated; + if (deprecated) + { + this._watch_to = null; + } + else + { + base.MoveObj.Position = this._watch_to.MoveObj.Position; + base.MoveObj.Rotation = this._watch_to.MoveObj.Rotation; + } + } + } + } + + protected override void PositionTo(Vector3 pos) + { + base.PositionTo(pos); + this._correct_me = false; + this._action.RefreshPosition(); + } + + public override void CorrectMe(Vector3 pos, Vector3 face, bool reconnected = false, bool fade = false) + { + XSingleton.singleton.Empty(); + bool flag = XSingleton.singleton.bSpectator && XSingleton.singleton.bSceneServerReady; + if (!flag) + { + this._correct_me = true; + base.CorrectMe(pos, face, reconnected, fade); + } + } + + public void OnGamePause(bool pause) + { + if (pause) + { + XSingleton.singleton.Cancel(); + base.Net.ReportMoveAction(Vector3.zero, 0.0); + XSingleton.singleton.Flush(true); + XSingleton.singleton.AddLog("Player to BackGround.", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + protected override void Move() + { + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + this.UpdateWatcher(); + } + else + { + Vector3 hitNormal = XSingleton.singleton.GameCamera.Collision.HitNormal; + hitNormal.y = 0f; + Vector3 movement = this._movement; + movement.y = 0f; + bool flag = hitNormal.sqrMagnitude > 0f && movement.sqrMagnitude > 0f && Vector3.Angle(movement, hitNormal) > 90f; + if (flag) + { + this.EdgeDetection(this.EngineObject.Forward, ref movement); + float num = Vector3.SqrMagnitude(XSingleton.singleton.GameCamera.CameraTrans.position - this.EngineObject.Position); + bool flag2 = num < 1f; + if (flag2) + { + this.ProjectNormal(hitNormal, ref movement); + } + this._movement.x = movement.x; + this._movement.z = movement.z; + } + base.Move(); + this.MoveLateUpdate(); + } + } + + private void MoveLateUpdate() + { + bool flag = XSingleton.singleton.SyncMode && !XStateMgr.IsUnBattleState(base.Machine.Current); + if (!flag) + { + List opponent = XSingleton.singleton.GetOpponent(this); + for (int i = 0; i < opponent.Count; i++) + { + Vector3 position = base.MoveObj.Position; + bool isRole = opponent[i].IsRole; + if (!isRole) + { + bool flag2 = (opponent[i].IsPuppet || opponent[i].IsSubstance) && !XEntity.ValideEntity(opponent[i]); + if (!flag2) + { + bool flag3 = opponent[i].Skill != null && opponent[i].Skill.IsCasting() && opponent[i].Skill.CurrentSkill.MainCore.Soul.IgnoreCollision; + if (!flag3) + { + XOthersAttributes xothersAttributes = opponent[i].Attributes as XOthersAttributes; + bool flag4 = xothersAttributes == null || !xothersAttributes.Blocked; + if (!flag4) + { + bool flag5 = opponent[i].MoveObj.Position.y > position.y + base.Height; + if (!flag5) + { + bool flag6 = opponent[i].Present != null && opponent[i].Present.PresentLib.Huge; + if (flag6) + { + SeqListRef hugeMonsterColliders = opponent[i].Present.PresentLib.HugeMonsterColliders; + for (int j = 0; j < hugeMonsterColliders.Count; j++) + { + float num = hugeMonsterColliders[j, 2] * opponent[i].Scale; + this.A(position, opponent[i].HugeMonsterColliderCenter(j), base.Radius + num); + } + } + else + { + this.A(position, opponent[i].RadiusCenter, base.Radius + opponent[i].Radius); + } + } + } + } + } + } + } + } + } + + private void A(Vector3 me, Vector3 it, float r) + { + Vector3 v = me - it; + v.y = 0f; + float sqrMagnitude = v.sqrMagnitude; + bool flag = sqrMagnitude - r * r < -0.001f; + if (flag) + { + Vector3 vector = XSingleton.singleton.Horizontal(v); + Vector3 vector2 = it + vector * r; + float y = vector2.y; + bool flag2 = XSingleton.singleton.TryGetTerrainY(vector2, out y) && y >= 0f; + if (flag2) + { + bool flag3 = XSingleton.singleton.CheckDynamicBlock(base.MoveObj.Position, vector2); + if (flag3) + { + bool standOn = base.StandOn; + if (standOn) + { + vector2.y = y + 0.25f; + base.MoveObj.Position = vector2; + base.MoveObj.Move(Vector3.down); + } + else + { + vector2.y = me.y; + base.MoveObj.Position = vector2; + } + } + } + } + } + + private bool EdgeDetection(Vector3 forward, ref Vector3 move) + { + RaycastHit raycastHit; + bool flag = this.RayDetection(forward, out raycastHit); + bool result; + if (flag) + { + this.ProjectNormal(raycastHit.normal, ref move); + result = true; + } + else + { + result = false; + } + return result; + } + + private void ProjectNormal(Vector3 normal, ref Vector3 move) + { + Vector3 forward = Vector3.forward; + Vector3 vector = normal; + Vector3.OrthoNormalize(ref vector, ref forward); + move = Vector3.Project(move, forward); + } + + private bool RayDetection(Vector3 ray, out RaycastHit hit) + { + int num = 513; + Vector3 position = this.EngineObject.Position; + position.y += base.Height; + return Physics.Raycast(position, ray, out hit, 1f, num); + } + + public override bool CastFakeShadow() + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPlayer.cs.meta b/Client/Assets/Scripts/XMainClient/XPlayer.cs.meta new file mode 100644 index 00000000..05ba93f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlayer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b5d9aba7d12a4c4890e1edd4e286f21 +timeCreated: 1611403499 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPlayerAction.cs b/Client/Assets/Scripts/XMainClient/XPlayerAction.cs new file mode 100644 index 00000000..390e8ec0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlayerAction.cs @@ -0,0 +1,247 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPlayerAction : IXPlayerAction, IXInterface + { + public bool Deprecated { get; set; } + + public bool IsValid + { + get + { + return XSingleton.singleton.SceneReady && XEntity.ValideEntity(XSingleton.singleton.Player) && !XSingleton.singleton.Player.IsCorrectingMe; + } + } + + private Vector3 _last_pos = Vector3.zero; + + private Vector3 _last_pos_driver = Vector3.zero; + + private XCameraWallComponent _component = null; + + public void CameraWallEnter(AnimationCurve curve, Vector3 intersection, Vector3 cornerdir, float sector, float inDegree, float outDegree, bool positive) + { + bool flag = sector > 0f; + if (flag) + { + bool flag2 = this._component == null; + if (flag2) + { + this._component = (XSingleton.singleton.GameCamera.GetXComponent(XCameraWallComponent.uuID) as XCameraWallComponent); + } + this._component.Effect(curve, intersection, cornerdir, sector, inDegree, outDegree, positive); + } + } + + public void CameraWallExit(float angle) + { + bool flag = this._component == null; + if (flag) + { + this._component = (XSingleton.singleton.GameCamera.GetXComponent(XCameraWallComponent.uuID) as XCameraWallComponent); + } + this._component.EndEffect(); + } + + public void CameraWallVertical(float angle) + { + bool flag = this._component == null; + if (flag) + { + this._component = (XSingleton.singleton.GameCamera.GetXComponent(XCameraWallComponent.uuID) as XCameraWallComponent); + } + this._component.VerticalEffect(angle); + } + + public void SetExternalString(string exString, bool bOnce) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + PtcC2G_AddLevelScriptExtString ptcC2G_AddLevelScriptExtString = new PtcC2G_AddLevelScriptExtString(); + ptcC2G_AddLevelScriptExtString.Data.extString = exString; + XSingleton.singleton.Send(ptcC2G_AddLevelScriptExtString); + } + else + { + XSingleton.singleton.SetExternalString(exString, bOnce); + } + } + + public void PlayCutScene(string cutscene) + { + XSingleton.singleton.AddErrorLog("Cutscene wall is depracated.", null, null, null, null, null); + } + + public void TransferToSceneLocation(Vector3 pos, Vector3 forward) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + XOnEntityTransferEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < ally.Count; i++) + { + bool flag = ally[i] != XSingleton.singleton.Player; + if (flag) + { + XOnEntityTransferEventArgs event2 = XEventPool.GetEvent(); + event2.Firer = ally[i]; + XSingleton.singleton.FireEvent(event2); + bool flag2 = ally[i].MobbedBy != null && ally[i].MobbedBy.IsRole && ally[i].Attributes != null && ally[i].Attributes.RunSpeed > 0f; + if (flag2) + { + bool flag3 = ally[i].Nav != null; + if (flag3) + { + ally[i].Nav.Interrupt(); + } + ally[i].CorrectMe(pos, forward, false, true); + } + } + } + XSingleton.singleton.Player.CorrectMe(pos, forward, false, true); + } + } + + public void TransferToNewScene(uint sceneID) + { + XSingleton.singleton.SwitchTo(XSingleton.singleton.CurrentStage.Stage, sceneID); + } + + public void GotoBattle() + { + bool flag = XSingleton.singleton.IsRecording(); + if (!flag) + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + bool flag2 = !XSingleton.singleton.Player.IsNavigating || (XSingleton.singleton.Player.IsNavigating && XSingleton.singleton.LastNpc == null && specificDocument.NaviTarget == 1); + bool flag3 = flag2 && XSingleton.singleton.Player.Net.SyncSequence > 1u; + if (flag3) + { + bool flag4 = XSingleton.singleton.IsUIShowed(); + if (flag4) + { + this.AdjustPosForDungeonEnter(null); + specificDocument.ResetNavi(); + } + else + { + bool inTutorial = XSingleton.singleton.InTutorial; + if (!inTutorial) + { + XSingleton.singleton.OnGenericClick(); + DlgBase.singleton.SetAutoSelectScene((int)specificDocument.NaviScene, 0, 0u); + DlgBase.singleton.FadeShow(); + XSingleton.singleton.Player.Nav.Interrupt(); + XSingleton.singleton.Player.Net.ReportMoveAction(Vector3.zero, 0.0); + XSingleton.singleton.Freezed = true; + XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.AdjustPosForDungeonEnter), null); + } + } + } + } + } + + public void GotoTerritoryBattle(int index) + { + XSingleton.singleton.AddGreenLog("enter scene: " + index, null, null, null, null, null); + XGuildTerritoryDocument specificDocument = XDocuments.GetSpecificDocument(XGuildTerritoryDocument.uuID); + specificDocument.SendGCFEnterin(index); + } + + public void GotoNest() + { + bool flag = !XSingleton.singleton.Player.IsNavigating || (XSingleton.singleton.Player.IsNavigating && XSingleton.singleton.LastNpc == null && DlgBase.singleton._TaskNaviHandler.IsNavigateToBattle == 2); + bool flag2 = flag && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Activity_DragonNest); + if (flag2) + { + bool flag3 = XSingleton.singleton.IsUIShowed(); + if (flag3) + { + this.AdjustPosForDungeonEnter(null); + } + else + { + XSingleton.singleton.OnGenericClick(); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + XSingleton.singleton.Player.Nav.Interrupt(); + XSingleton.singleton.Player.Net.ReportMoveAction(Vector3.zero, 0.0); + XSingleton.singleton.Freezed = true; + XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.AdjustPosForDungeonEnter), null); + } + } + } + + public void GotoFishing(int seatIndex, bool bFishing) + { + XHomeFishingDocument specificDocument = XDocuments.GetSpecificDocument(XHomeFishingDocument.uuID); + specificDocument.SetFishingUIState(bFishing); + } + + public void GotoYororuya() + { + bool flag = !XSingleton.singleton.Player.IsNavigating || (XSingleton.singleton.Player.IsNavigating && XSingleton.singleton.LastNpc == null && DlgBase.singleton._TaskNaviHandler.IsNavigateToBattle == 2); + bool flag2 = flag && XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Yorozuya); + if (flag2) + { + bool flag3 = XSingleton.singleton.IsUIShowed(); + if (flag3) + { + this.AdjustPosForDungeonEnter(null); + } + else + { + bool inTutorial = XSingleton.singleton.InTutorial; + if (!inTutorial) + { + XSingleton.singleton.OnGenericClick(); + DlgBase.singleton.SetVisible(true, true); + XSingleton.singleton.Player.Nav.Interrupt(); + XSingleton.singleton.Player.Net.ReportMoveAction(Vector3.zero, 0.0); + XSingleton.singleton.Freezed = true; + XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.AdjustPosForDungeonEnter), null); + } + } + } + } + + public Vector3 PlayerPosition(bool notplayertrigger) + { + Vector3 position; + if (notplayertrigger) + { + position = XSingleton.singleton.Dirver.EngineObject.Position; + } + else + { + position = XSingleton.singleton.Player.EngineObject.Position; + } + return position; + } + + public Vector3 PlayerLastPosition(bool notplayertrigger) + { + return notplayertrigger ? this._last_pos_driver : this._last_pos; + } + + public void RefreshPosition() + { + this._last_pos = (XEntity.ValideEntity(XSingleton.singleton.Player) ? XSingleton.singleton.Player.EngineObject.Position : this._last_pos); + this._last_pos_driver = ((XSingleton.singleton.Dirver == XSingleton.singleton.Player) ? this._last_pos : (XEntity.ValideEntity(XSingleton.singleton.Dirver) ? XSingleton.singleton.Dirver.EngineObject.Position : this._last_pos_driver)); + } + + private void AdjustPosForDungeonEnter(object o) + { + XSingleton.singleton.Player.Net.ReportMoveAction(XSingleton.singleton.Player.MoveObj.Position - XSingleton.singleton.Player.MoveObj.Forward * 2f, 0f, false, false, true, 0f); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPlayerAction.cs.meta b/Client/Assets/Scripts/XMainClient/XPlayerAction.cs.meta new file mode 100644 index 00000000..95a1a908 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlayerAction.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 75fb7d320043c134286703feef90f1ae +timeCreated: 1611403948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPlayerAttributes.cs b/Client/Assets/Scripts/XMainClient/XPlayerAttributes.cs new file mode 100644 index 00000000..ceca8e32 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlayerAttributes.cs @@ -0,0 +1,143 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPlayerAttributes : XRoleAttributes + { + public override uint ID + { + get + { + return XPlayerAttributes.uuID; + } + } + + public uint SkillPageIndex { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Player_Attributes"); + + public byte[] openedSystem = new byte[32]; + + public bool AutoPlayOn = false; + + public XPlayerAttributes() + { + this._manualUnitBuff = true; + this._security_Statistics = new XSecurityStatistics(); + } + + public override void InitAttribute(KKSG.Attribute attr) + { + base.InitAttribute(attr); + } + + public bool IsSystemOpened(uint sysID) + { + uint num = sysID / 8u; + int num2 = (int)(sysID % 8u); + int num3 = 1 << num2; + bool flag = (ulong)num >= (ulong)((long)this.openedSystem.Length); + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("sys id out of range: ", sysID.ToString(), null, null, null, null); + result = false; + } + else + { + result = (((int)this.openedSystem[(int)num] & num3) != 0); + } + return result; + } + + public void CacheOpenSystem(uint sysID) + { + bool flag = !XSingleton.singleton.IsImmediatelyOpenSystem(sysID); + if (flag) + { + XSingleton.singleton.AddNewOpenSystem(sysID); + XSingleton.singleton.SetExternalString("OpenSys" + sysID); + } + else + { + this.ReallyOpenSystem(sysID); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.OnSysChange((XSysDefine)sysID); + XSingleton.singleton.RecalculateRedPointState((XSysDefine)sysID, true); + } + } + } + + public void ReallyOpenSystem(uint sysID) + { + uint num = sysID / 8u; + int num2 = (int)(sysID % 8u); + int num3 = 1 << num2; + bool flag = (ulong)num >= (ulong)((long)this.openedSystem.Length); + if (flag) + { + XSingleton.singleton.AddErrorLog("open sys id out of range: ", sysID.ToString(), null, null, null, null); + } + else + { + byte[] array = this.openedSystem; + uint num4 = num; + array[(int)num4] = (byte)((int)array[(int)num4] | num3); + XSingleton.singleton.RecalculateRedPointState((XSysDefine)sysID, true); + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.OnSysOpen(); + } + } + + public void CloseSystem(uint sysID) + { + uint num = sysID / 8u; + int num2 = (int)(sysID % 8u); + int num3 = 1 << num2; + bool flag = (ulong)num >= (ulong)((long)this.openedSystem.Length); + if (flag) + { + XSingleton.singleton.AddErrorLog("close sys id out of range: ", sysID.ToString(), null, null, null, null); + } + else + { + byte[] array = this.openedSystem; + uint num4 = num; + array[(int)num4] = (byte)(array[(int)num4] & (int)(~(byte)num3)); + XSingleton.singleton.SetSysRedPointState((XSysDefine)sysID, false); + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.OnSysChange(); + } + } + + public void HPMPReset() + { + double attr = base.GetAttr(XAttributeDefine.XAttr_MaxHP_Total); + base.SetAttr(XAttributeDefine.XAttr_CurrentHP_Basic, attr); + double attr2 = base.GetAttr(XAttributeDefine.XAttr_MaxMP_Total); + base.SetAttr(XAttributeDefine.XAttr_CurrentMP_Basic, attr2); + } + + public long GetLevelUpExp(int level) + { + PlayerLevelTable.RowData byLevel = XSingleton.singleton.LevelTable.GetByLevel(level); + bool flag = byLevel != null; + long result; + if (flag) + { + result = byLevel.Exp; + } + else + { + result = 0L; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPlayerAttributes.cs.meta b/Client/Assets/Scripts/XMainClient/XPlayerAttributes.cs.meta new file mode 100644 index 00000000..aedc9bbe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlayerAttributes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ccaf980a4d356044b919620991c69521 +timeCreated: 1611404551 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPlayerLevelChangedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XPlayerLevelChangedEventArgs.cs new file mode 100644 index 00000000..b9157059 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlayerLevelChangedEventArgs.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XPlayerLevelChangedEventArgs : XEventArgs + { + public uint level = 0u; + + public uint PreLevel = 0u; + + public XPlayerLevelChangedEventArgs() + { + this._eDefine = XEventDefine.XEvent_PlayerLevelChange; + } + + public override void Recycle() + { + base.Recycle(); + this.level = 0u; + this.PreLevel = 0u; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPlayerLevelChangedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XPlayerLevelChangedEventArgs.cs.meta new file mode 100644 index 00000000..11ffe372 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPlayerLevelChangedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8257651e6e6cbfe439f3acf3d6a25714 +timeCreated: 1611404040 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPostEffect.cs b/Client/Assets/Scripts/XMainClient/XPostEffect.cs new file mode 100644 index 00000000..a5d3afb5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPostEffect.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + public enum XPostEffect + { + RadialBlur, + BlackWhite, + GausBlur, + DOF + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPostEffect.cs.meta b/Client/Assets/Scripts/XMainClient/XPostEffect.cs.meta new file mode 100644 index 00000000..3185dd05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPostEffect.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aff0a63a307a8f14e8a1b49123832bc1 +timeCreated: 1611404347 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPostEffectMgr.cs b/Client/Assets/Scripts/XMainClient/XPostEffectMgr.cs new file mode 100644 index 00000000..3e888f61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPostEffectMgr.cs @@ -0,0 +1,94 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XPostEffectMgr : XSingleton + { + private XRadialBlur _radialBlur; + + private XBlackWhite _blackWhite; + + private XGausBlur _gausBlur; + + public void OnEnterScene(uint sceneid) + { + bool flag = XSingleton.singleton.GameCamera.UnityCamera != null; + if (flag) + { + GameObject gameObject = XSingleton.singleton.GameCamera.UnityCamera.gameObject; + bool flag2 = gameObject != null; + if (flag2) + { + this._gausBlur = gameObject.GetComponent(); + bool flag3 = this._gausBlur == null; + if (flag3) + { + this._gausBlur = gameObject.AddComponent(); + } + this._gausBlur.shader = ShaderManager._gausBlur; + this._gausBlur.enabled = false; + this._blackWhite = gameObject.GetComponent(); + bool flag4 = this._blackWhite == null; + if (flag4) + { + this._blackWhite = gameObject.AddComponent(); + } + this._blackWhite.shader = ShaderManager._blackWhite; + this._blackWhite.enabled = false; + this._radialBlur = gameObject.GetComponent(); + bool flag5 = this._radialBlur == null; + if (flag5) + { + this._radialBlur = gameObject.AddComponent(); + } + this._radialBlur.shader = ShaderManager._radialBlur; + this._radialBlur.enabled = false; + } + } + } + + public void OnLeaveScene() + { + this._radialBlur = null; + this._blackWhite = null; + this._gausBlur = null; + } + + public void MakeEffectEnable(XPostEffect effect, bool enabled) + { + bool quality = XQualitySetting.GetQuality(EFun.ECamera); + switch (effect) + { + case XPostEffect.RadialBlur: + { + bool flag = this._radialBlur != null; + if (flag) + { + this._radialBlur.enabled = (quality && enabled); + } + break; + } + case XPostEffect.BlackWhite: + { + bool flag2 = this._blackWhite != null; + if (flag2) + { + this._blackWhite.enabled = (quality && enabled); + } + break; + } + case XPostEffect.GausBlur: + { + bool flag3 = this._gausBlur != null; + if (flag3) + { + this._gausBlur.enabled = (quality && enabled); + } + break; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPostEffectMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XPostEffectMgr.cs.meta new file mode 100644 index 00000000..9d7875f6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPostEffectMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e066796ecffd6d4399643eea4c75449 +timeCreated: 1611404239 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPowerPointCalculator.cs b/Client/Assets/Scripts/XMainClient/XPowerPointCalculator.cs new file mode 100644 index 00000000..1eb6cac4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPowerPointCalculator.cs @@ -0,0 +1,257 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPowerPointCalculator : XSingleton + { + private XTableAsyncLoader _async_loader = null; + + private PowerPointCoeffTable m_AttrTable = new PowerPointCoeffTable(); + + private ProfessionConvertTable m_AttrConvertTable = new ProfessionConvertTable(); + + private Dictionary m_PPTWeight = new Dictionary(); + + private Dictionary[]> m_AttrConvertor = new Dictionary[]>(); + + private HashSet m_BasicAttrs = new HashSet(default(XFastEnumIntEqualityComparer)) + { + XAttributeDefine.XAttr_Strength_Basic, + XAttributeDefine.XAttr_Intelligence_Basic, + XAttributeDefine.XAttr_Agility_Basic, + XAttributeDefine.XAttr_Vitality_Basic + }; + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/AttributeList", this.m_AttrTable, false); + this._async_loader.AddTask("Table/ProfessionConversionParameter", this.m_AttrConvertTable, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + bool result; + if (flag2) + { + result = false; + } + else + { + this._BuildPPTWeightMap(); + this._BuildAttrConvertor(); + this.m_AttrTable = null; + this.m_AttrConvertTable = null; + result = true; + } + return result; + } + + private void _BuildPPTWeightMap() + { + this.m_PPTWeight.Clear(); + for (int i = 0; i < this.m_AttrTable.Table.Length; i++) + { + PowerPointCoeffTable.RowData rowData = this.m_AttrTable.Table[i]; + int key = (int)(rowData.Profession << 8 | (uint)rowData.AttributeID); + bool flag = this.m_PPTWeight.ContainsKey(key); + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("Duplicated key in PowerPointCoeffTable: prof = {0} and attr = {1}", rowData.Profession, rowData.AttributeID), null, null, null, null, null); + } + else + { + this.m_PPTWeight.Add(key, rowData.Weight); + } + } + } + + private void _BuildAttrConvertor() + { + this.m_AttrConvertor.Clear(); + List> list = new List>(); + for (int i = 0; i < this.m_AttrConvertTable.Table.Length; i++) + { + ProfessionConvertTable.RowData rowData = this.m_AttrConvertTable.Table[i]; + int key = rowData.ProfessionID << 8 | rowData.AttributeID; + bool flag = this.m_AttrConvertor.ContainsKey(key); + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("Duplicated key in ProfessionConvertTable: prof = {0} and attr = {1}", rowData.ProfessionID, rowData.AttributeID), null, null, null, null, null); + } + else + { + list.Clear(); + bool flag2 = rowData.PhysicalAtk != 0.0; + if (flag2) + { + list.Add(new XTuple(11, rowData.PhysicalAtk)); + } + bool flag3 = rowData.MagicAtk != 0.0; + if (flag3) + { + list.Add(new XTuple(21, rowData.MagicAtk)); + } + bool flag4 = rowData.PhysicalDef != 0.0; + if (flag4) + { + list.Add(new XTuple(12, rowData.PhysicalDef)); + } + bool flag5 = rowData.MagicDef != 0.0; + if (flag5) + { + list.Add(new XTuple(22, rowData.MagicDef)); + } + bool flag6 = rowData.MaxHP != 0.0; + if (flag6) + { + list.Add(new XTuple(13, rowData.MaxHP)); + } + bool flag7 = rowData.MaxMP != 0.0; + if (flag7) + { + list.Add(new XTuple(23, rowData.MaxMP)); + } + bool flag8 = rowData.Critical != 0.0; + if (flag8) + { + list.Add(new XTuple(31, rowData.Critical)); + } + bool flag9 = rowData.CritDamage != 0.0; + if (flag9) + { + list.Add(new XTuple(111, rowData.CritDamage)); + } + bool flag10 = rowData.CritResist != 0.0; + if (flag10) + { + list.Add(new XTuple(32, rowData.CritResist)); + } + this.m_AttrConvertor.Add(key, list.ToArray()); + } + } + } + + public XTuple[] GetConvertCoefficient(int attrid, int prof) + { + XTuple[] result; + this.m_AttrConvertor.TryGetValue(this.GetBasicKey(prof, attrid), out result); + return result; + } + + public double GetPPT(XItemChangeAttr attr, XAttributes attributes = null, int prof = -1) + { + return this.GetPPT(attr.AttrID, attr.AttrValue, attributes, prof); + } + + public double GetPPT(uint attrid, uint attrvalue, XAttributes attributes = null, int prof = -1) + { + return this.GetPPT(attrid, attrvalue, attributes, prof); + } + + public double GetPPT(uint attrid, double attrvalue, XAttributes attributes = null, int prof = -1) + { + int num = (int)attrid; + double num2 = attrvalue; + bool flag = attributes == null; + if (flag) + { + attributes = XSingleton.singleton.XPlayerData; + } + bool flag2 = prof < 0; + if (flag2) + { + prof = (int)attributes.BasicTypeID; + } + else + { + prof %= 10; + } + bool flag3 = !XAttributeCommon.IsBasicRange(num); + if (flag3) + { + int basicAttr = XAttributeCommon.GetBasicAttr((int)attrid); + bool flag4 = XAttributeCommon.IsPercentRange((int)attrid); + if (flag4) + { + num2 = attributes.GetAttr((XAttributeDefine)basicAttr) * num2 / 100.0; + } + num = basicAttr; + } + bool flag5 = this.m_BasicAttrs.Contains((XAttributeDefine)num); + double result; + if (flag5) + { + int num3 = prof; + bool flag6 = num3 == 0; + if (flag6) + { + num3 = (int)attributes.BasicTypeID; + } + XTuple[] array; + bool flag7 = this.m_AttrConvertor.TryGetValue(this.GetKey(num3, num), out array); + if (flag7) + { + double num4 = 0.0; + for (int i = 0; i < array.Length; i++) + { + num4 += this._GetPPT(array[i].Item1, array[i].Item2 * num2, prof); + } + result = num4; + } + else + { + result = 0.0; + } + } + else + { + result = this._GetPPT(num, num2, prof); + } + return result; + } + + private double _GetPPT(int attrid, double attrvalue, int prof) + { + double num; + bool flag = this.m_PPTWeight.TryGetValue(this.GetBasicKey(prof, attrid), out num); + double result; + if (flag) + { + result = num * attrvalue; + } + else + { + bool flag2 = prof > 0 && this.m_PPTWeight.TryGetValue(this.GetKey(attrid), out num); + if (flag2) + { + result = num * attrvalue; + } + else + { + result = 0.0; + } + } + return result; + } + + private int GetKey(int prof, int attrid) + { + return prof << 8 | attrid; + } + + private int GetBasicKey(int prof, int attrid) + { + return prof % 10 << 8 | attrid; + } + + private int GetKey(int attrid) + { + return attrid; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPowerPointCalculator.cs.meta b/Client/Assets/Scripts/XMainClient/XPowerPointCalculator.cs.meta new file mode 100644 index 00000000..fe26f736 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPowerPointCalculator.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7ec991ef43340545807ec8d427ffda1 +timeCreated: 1611404532 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPrefixAttribute.cs b/Client/Assets/Scripts/XMainClient/XPrefixAttribute.cs new file mode 100644 index 00000000..fb162368 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPrefixAttribute.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class XPrefixAttribute + { + public uint attrid = 0u; + + public float minValue = 0f; + + public float maxValue = 0f; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPrefixAttribute.cs.meta b/Client/Assets/Scripts/XMainClient/XPrefixAttribute.cs.meta new file mode 100644 index 00000000..066c7a49 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPrefixAttribute.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8407bd9a17c163e40bbc8c2d687c5d56 +timeCreated: 1611404047 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPrefixAttributes.cs b/Client/Assets/Scripts/XMainClient/XPrefixAttributes.cs new file mode 100644 index 00000000..2c5f949c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPrefixAttributes.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XPrefixAttributes : IComparable + { + public List AttributeList + { + get + { + return this.m_AttributeList; + } + } + + public uint slotIndex = 0u; + + private List m_AttributeList = new List(); + + public int CompareTo(XPrefixAttributes other) + { + return this.slotIndex.CompareTo(other.slotIndex); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPrefixAttributes.cs.meta b/Client/Assets/Scripts/XMainClient/XPrefixAttributes.cs.meta new file mode 100644 index 00000000..938d831d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPrefixAttributes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3bad27dd7a1a10745929285add35ea45 +timeCreated: 1611403599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPrerogativeChangeArgs.cs b/Client/Assets/Scripts/XMainClient/XPrerogativeChangeArgs.cs new file mode 100644 index 00000000..d071df03 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPrerogativeChangeArgs.cs @@ -0,0 +1,20 @@ +using System; + +namespace XMainClient +{ + internal class XPrerogativeChangeArgs : XEventArgs + { + public uint prerogativeLevel = 0u; + + public XPrerogativeChangeArgs() + { + this._eDefine = XEventDefine.XEvent_Prerogative; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPrerogativeChangeArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XPrerogativeChangeArgs.cs.meta new file mode 100644 index 00000000..f91bc46b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPrerogativeChangeArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 26d84be60d28ae148b9ac0f375ee8465 +timeCreated: 1611403469 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPrerogativeDocument.cs b/Client/Assets/Scripts/XMainClient/XPrerogativeDocument.cs new file mode 100644 index 00000000..e3afe350 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPrerogativeDocument.cs @@ -0,0 +1,383 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPrerogativeDocument : XDocComponent + { + public override uint ID + { + get + { + return XPrerogativeDocument.uuID; + } + } + + public bool RedPoint + { + get + { + return this._RedPoint; + } + set + { + bool flag = this._RedPoint != value; + if (flag) + { + this._RedPoint = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Prerogative, true); + } + } + } + + public List PlayerSetid + { + get + { + return this._caches; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("PrerogativeDocument"); + + private static PrerogativeContent _prerogativeContent = new PrerogativeContent(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static Dictionary DefaultContent = new Dictionary(); + + public PrerogativeDlg View = null; + + private List _caches; + + private List _activeIds; + + private uint _cacheActiveId; + + private bool _RedPoint = false; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + XPrerogativeDocument.AsyncLoader.AddTask("Table/PrerogativeContent", XPrerogativeDocument._prerogativeContent, false); + XPrerogativeDocument.AsyncLoader.Execute(callback); + } + + public static uint GetDefaultPreID(uint type) + { + return XPrerogativeDocument.DefaultContent.ContainsKey(type) ? XPrerogativeDocument.DefaultContent[type] : 0u; + } + + public static void OnTableLoaded() + { + XPrerogativeDocument.DefaultContent.Clear(); + int i = 0; + int num = XPrerogativeDocument._prerogativeContent.Table.Length; + while (i < num) + { + PrerogativeContent.RowData rowData = XPrerogativeDocument._prerogativeContent.Table[i]; + bool flag = (ulong)rowData.Normal == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(PrerogativeNormalType.PreDefault)) && !XPrerogativeDocument.DefaultContent.ContainsKey(rowData.Type); + if (flag) + { + XPrerogativeDocument.DefaultContent.Add(rowData.Type, rowData.ID); + } + i++; + } + } + + public static uint ConvertTypeToPreId(uint type, List ids) + { + bool flag = ids != null; + if (flag) + { + int i = 0; + int count = ids.Count; + while (i < count) + { + bool flag2 = XPrerogativeDocument.ConvertPreIdToType(ids[i]) == type; + if (flag2) + { + return ids[i]; + } + i++; + } + } + return XPrerogativeDocument.DefaultContent[type]; + } + + public static uint ConvertTypeToPreId(uint type, uint id) + { + bool flag = id > 0u; + if (flag) + { + bool flag2 = XPrerogativeDocument.ConvertPreIdToType(id) == type; + if (flag2) + { + return id; + } + } + return XPrerogativeDocument.DefaultContent[type]; + } + + public static string ConvertTypeToPreContent(PrerogativeType type, uint pid = 0u) + { + uint type2 = (uint)XFastEnumIntEqualityComparer.ToInt(type); + return XPrerogativeDocument.ConvertTypeToPreContent(type2, pid); + } + + public static string ConvertTypeToPreContent(PrerogativeType type, List ids = null) + { + uint type2 = (uint)XFastEnumIntEqualityComparer.ToInt(type); + return XPrerogativeDocument.ConvertTypeToPreContent(type2, ids); + } + + public static string ConvertTypeToPreContent(uint type, uint pid = 0u) + { + bool flag = type == 0u; + string result; + if (flag) + { + result = string.Empty; + } + else + { + uint key = XPrerogativeDocument.ConvertTypeToPreId(type, pid); + PrerogativeContent.RowData byID = XPrerogativeDocument._prerogativeContent.GetByID(key); + result = ((byID != null) ? byID.Content : string.Empty); + } + return result; + } + + public static string ConvertTypeToPreContent(uint type, List ids = null) + { + bool flag = type == 0u; + string result; + if (flag) + { + result = string.Empty; + } + else + { + uint key = XPrerogativeDocument.ConvertTypeToPreId(type, ids); + PrerogativeContent.RowData byID = XPrerogativeDocument._prerogativeContent.GetByID(key); + result = ((byID != null) ? byID.Content : string.Empty); + } + return result; + } + + public static PrerogativeContent.RowData ConvertTypeToPre(uint type, List ids = null) + { + uint key = XPrerogativeDocument.ConvertTypeToPreId(type, ids); + return XPrerogativeDocument._prerogativeContent.GetByID(key); + } + + public static PrerogativeContent.RowData GetPrerogativeByID(uint id) + { + return XPrerogativeDocument._prerogativeContent.GetByID(id); + } + + private static uint ConvertPreIdToType(uint id) + { + PrerogativeContent.RowData byID = XPrerogativeDocument._prerogativeContent.GetByID(id); + bool flag = byID != null; + uint result; + if (flag) + { + result = byID.Type; + } + else + { + result = 0u; + } + return result; + } + + public void Initialize(List preIDs, List activeIDs) + { + this._caches = preIDs; + this._activeIds = activeIDs; + } + + public string GetPreContent(PrerogativeType type) + { + uint type2 = (uint)XFastEnumIntEqualityComparer.ToInt(type); + return this.GetPreContent(type2); + } + + public string GetPreContent(uint type) + { + return XPrerogativeDocument.ConvertTypeToPreContent(type, this._caches); + } + + public PrerogativeContent.RowData GetPreContentData(uint type) + { + return XPrerogativeDocument.ConvertTypeToPre(type, this._caches); + } + + public uint GetPreContentID(uint type) + { + return XPrerogativeDocument.ConvertTypeToPreId(type, this._caches); + } + + public bool TryGetContentByType(ref List list, uint type) + { + bool flag = list == null; + if (flag) + { + list = new List(); + } + list.Clear(); + int i = 0; + int num = XPrerogativeDocument._prerogativeContent.Table.Length; + while (i < num) + { + bool flag2 = XPrerogativeDocument._prerogativeContent.Table[i].Type == type && XPrerogativeDocument._prerogativeContent.Table[i].Normal != 2u; + if (flag2) + { + list.Add(XPrerogativeDocument._prerogativeContent.Table[i]); + } + i++; + } + return true; + } + + public bool IsActived(uint id) + { + bool flag = this._activeIds == null; + return !flag && this._activeIds.Contains(id); + } + + private bool CachePreValue(uint type, uint value) + { + bool flag = this._caches != null; + if (flag) + { + int i = 0; + int count = this._caches.Count; + while (i < count) + { + bool flag2 = XPrerogativeDocument.ConvertPreIdToType(this._caches[i]) == type; + if (flag2) + { + bool flag3 = this._caches[i] == value; + if (flag3) + { + return false; + } + this._caches.RemoveAt(i); + break; + } + else + { + i++; + } + } + } + else + { + this._caches = new List(); + } + this._caches.Add(value); + return true; + } + + public bool TrySendPreCache(uint value) + { + PrerogativeContent.RowData byID = XPrerogativeDocument._prerogativeContent.GetByID(value); + bool flag = byID != null && this.CachePreValue(byID.Type, value); + bool result; + if (flag) + { + RpcC2G_SetPreShow rpcC2G_SetPreShow = new RpcC2G_SetPreShow(); + rpcC2G_SetPreShow.oArg.showid.AddRange(this._caches); + XSingleton.singleton.Send(rpcC2G_SetPreShow); + result = true; + } + else + { + result = false; + } + return result; + } + + public void HidePreCache(uint type) + { + uint num = XPrerogativeDocument.DefaultContent.ContainsKey(type) ? XPrerogativeDocument.DefaultContent[type] : 0u; + bool flag = num > 0u; + if (flag) + { + this.TrySendPreCache(num); + } + } + + public void ReceivePreCache(SetPreShowArg oArg, SetPreShowRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this._caches = oArg.showid; + this.Dispatch(); + } + } + + public void TrySendActivePre(uint value) + { + PrerogativeContent.RowData byID = XPrerogativeDocument._prerogativeContent.GetByID(value); + bool flag = byID != null; + if (flag) + { + RpcC2G_ActivatePreShow rpcC2G_ActivatePreShow = new RpcC2G_ActivatePreShow(); + rpcC2G_ActivatePreShow.oArg.id = value; + this._cacheActiveId = value; + XSingleton.singleton.Send(rpcC2G_ActivatePreShow); + } + } + + public void ReceiveActiveReply(ActivatePreShowArg oArg, ActivatePreShowRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("Prerogative_ActiveSuccess"), "fece00"); + bool flag2 = !this._activeIds.Contains(this._cacheActiveId); + if (flag2) + { + this._activeIds.Add(this._cacheActiveId); + } + this.Dispatch(); + } + } + + private void Dispatch() + { + XPrerogativeChangeArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetHeadIcon(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPrerogativeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPrerogativeDocument.cs.meta new file mode 100644 index 00000000..5dd1867d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPrerogativeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 784bde9de750d484aa655332103f4b53 +timeCreated: 1611403977 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPresentComponent.cs b/Client/Assets/Scripts/XMainClient/XPresentComponent.cs new file mode 100644 index 00000000..7c6d31e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPresentComponent.cs @@ -0,0 +1,173 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPresentComponent : XComponent + { + public override uint ID + { + get + { + return XPresentComponent.uuID; + } + } + + public string SkillPrefix + { + get + { + return this._skill_prefix; + } + } + + public string ActionPrefix + { + get + { + return this._action_prefix; + } + } + + public string CurvePrefix + { + get + { + return this._curve_prefix; + } + } + + public bool IsShowUp { get; set; } + + public Vector3 RadiusOffset + { + get + { + return this._radius_offset; + } + } + + public XEntityPresentation.RowData PresentLib + { + get + { + return this._present_data; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Presentation"); + + private XEntityPresentation.RowData _present_data = null; + + private uint _show_up_token = 0u; + + private string _skill_prefix = null; + + private string _action_prefix = null; + + private string _curve_prefix = null; + + protected Vector3 _radius_offset = Vector3.zero; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.IsShowUp = false; + this.InitPresent(this._entity.PresentID); + } + + public override void Attached() + { + this._entity.Scale = this._present_data.Scale; + bool flag = this._present_data.BoundRadiusOffset != null && this._present_data.BoundRadiusOffset.Length != 0; + if (flag) + { + this._radius_offset.Set(this._present_data.BoundRadiusOffset[0], 0f, this._present_data.BoundRadiusOffset[1]); + } + else + { + this._radius_offset.Set(0f, 0f, 0f); + } + bool flag2 = this._entity.EngineObject != null; + if (flag2) + { + Vector3 localScale = Vector3.one * this._entity.Scale; + this._entity.EngineObject.LocalScale = localScale; + } + } + + public void InitPresent(uint present_id) + { + this._present_data = XSingleton.singleton.EntityInfo.GetByPresentID(present_id); + this._skill_prefix = "SkillPackage/" + this._present_data.SkillLocation; + this._action_prefix = "Animation/" + this._present_data.AnimLocation; + this._curve_prefix = "Curve/" + this._present_data.CurveLocation; + bool flag = XStateMachine._EnableAtor && this._entity.EngineObject != null; + if (flag) + { + this._entity.EngineObject.InitAnim(); + } + bool flag2 = this._entity.Attributes != null && this._entity.Attributes.TypeID == XSingleton.singleton.GetDriveID(XSingleton.singleton.SceneID); + if (flag2) + { + XSingleton.singleton.Dirver = this._entity; + } + } + + public void ShowUp() + { + bool flag = this._entity.HasComeOnPresent() && !this._entity.Attributes.MidwayEnter; + if (flag) + { + this.IsShowUp = true; + XSingleton.singleton.Puppets(this._entity, false, true); + this._entity.Net.ReportSkillAction(null, this._entity.SkillMgr.GetAppearIdentity(), -1); + this._show_up_token = XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.OnReadyFight), null); + } + else + { + XSingleton.singleton.Puppets(this._entity, false, false); + } + } + + public override void OnDetachFromHost() + { + this._present_data = null; + this._entity.EngineObject.LocalScale = Vector3.one; + XSingleton.singleton.KillTimer(this._show_up_token); + base.OnDetachFromHost(); + } + + public void OnReadyFight(object o) + { + XSingleton.singleton.Puppets(this._entity, false, false); + this.IsShowUp = false; + } + + public void OnTransform(XEntity src, bool to) + { + if (to) + { + float num = src.Scale / src.Present.PresentLib.Scale * this._present_data.Scale; + this._entity.Scale = num; + bool flag = this._entity.EngineObject != null; + if (flag) + { + Vector3 localScale = Vector3.one * num; + this._entity.EngineObject.LocalScale = localScale; + } + } + else + { + bool flag2 = this._entity.EngineObject != null; + if (flag2) + { + this._entity.Scale = this._present_data.Scale; + Vector3 localScale2 = Vector3.one * this._present_data.Scale; + this._entity.EngineObject.LocalScale = localScale2; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPresentComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XPresentComponent.cs.meta new file mode 100644 index 00000000..4d03ae22 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPresentComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ea4d5a188cbef542bf4a949fae31881 +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XProfessionChangeDocument.cs b/Client/Assets/Scripts/XMainClient/XProfessionChangeDocument.cs new file mode 100644 index 00000000..70bed1c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XProfessionChangeDocument.cs @@ -0,0 +1,92 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XProfessionChangeDocument : XDocComponent + { + public override uint ID + { + get + { + return XProfessionChangeDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ProfessionChangeDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private int _taskID; + + public uint SceneID; + + public int SelectProfession = 1; + + public int LastExperienceProfID = 1; + + public static void Execute(OnLoadedCallback callback = null) + { + XProfessionChangeDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_TaskStateChange, new XComponent.XEventHandler(this.OnProfChangeTaskFinish)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._taskID = XSingleton.singleton.GetInt("ProfessionChangeTaskID"); + this.SceneID = uint.Parse(XSingleton.singleton.GetValue("ProfessionChangeSceneID")); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.SceneID == this.SceneID; + if (flag) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_ProfessionChange, EXStage.Hall); + this.LastExperienceProfID = this.SelectProfession; + } + } + + public bool OnProfChangeTaskFinish(XEventArgs args) + { + XTaskStatusChangeArgs xtaskStatusChangeArgs = args as XTaskStatusChangeArgs; + bool flag = xtaskStatusChangeArgs.status != TaskStatus.TaskStatus_Over; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = xtaskStatusChangeArgs.id == (uint)this._taskID; + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + result = false; + } + return result; + } + + public void QueryChangeProfession() + { + RpcC2G_ChangeProfession rpcC2G_ChangeProfession = new RpcC2G_ChangeProfession(); + rpcC2G_ChangeProfession.oArg.pro = (uint)this.SelectProfession; + XSingleton.singleton.Send(rpcC2G_ChangeProfession); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XProfessionChangeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XProfessionChangeDocument.cs.meta new file mode 100644 index 00000000..869c7d99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XProfessionChangeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2a62ebdd83156d74ea44c2ddcf12aa34 +timeCreated: 1611403495 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XProfessionSkillMgr.cs b/Client/Assets/Scripts/XMainClient/XProfessionSkillMgr.cs new file mode 100644 index 00000000..4b072e87 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XProfessionSkillMgr.cs @@ -0,0 +1,465 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XProfessionSkillMgr : XSingleton + { + private XTableAsyncLoader _async_loader = null; + + private ProfSkillTable _reader = new ProfSkillTable(); + + private static List m_FootFx; + + private static List m_ProfPortrait; + + private static List m_TeamIndicateAvatar; + + private static List m_SuperRiskAvatar; + + private static List m_RoleMat; + + private static List m_VisibleDistance; + + private static List m_SelectCharDummyHeight; + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/ProfessionSkill", this._reader, false); + this._async_loader.Execute(null); + } + bool flag2 = !this._async_loader.IsDone; + return !flag2; + } + + public static void InitFromGlobalConfig() + { + XProfessionSkillMgr.m_FootFx = XSingleton.singleton.GetStringList("FootFx"); + XProfessionSkillMgr.m_ProfPortrait = XSingleton.singleton.GetStringList("ProfPortrait"); + XProfessionSkillMgr.m_TeamIndicateAvatar = XSingleton.singleton.GetStringList("TeamIndicateAvatar"); + XProfessionSkillMgr.m_SuperRiskAvatar = XSingleton.singleton.GetStringList("SuperRiskAvatar"); + XProfessionSkillMgr.m_RoleMat = XSingleton.singleton.GetStringList("ProfRoleMat"); + XProfessionSkillMgr.m_VisibleDistance = XSingleton.singleton.GetFloatList("VisibleDistance"); + XProfessionSkillMgr.m_SelectCharDummyHeight = XSingleton.singleton.GetFloatList("SelectCharDummyHeight"); + XProfessionSkillMgr.CheckProfessionCount(XProfessionSkillMgr.m_FootFx, "FootFx"); + XProfessionSkillMgr.CheckProfessionCount(XProfessionSkillMgr.m_ProfPortrait, "m_ProfPortrait"); + XProfessionSkillMgr.CheckProfessionCount(XProfessionSkillMgr.m_TeamIndicateAvatar, "m_TeamIndicateAvatar"); + XProfessionSkillMgr.CheckProfessionCount(XProfessionSkillMgr.m_SuperRiskAvatar, "m_SuperRiskAvatar"); + XProfessionSkillMgr.CheckProfessionCount(XProfessionSkillMgr.m_RoleMat, "m_RoleMat"); + XProfessionSkillMgr.CheckProfessionCount(XProfessionSkillMgr.m_VisibleDistance, "m_VisibleDistance"); + XProfessionSkillMgr.CheckProfessionCount(XProfessionSkillMgr.m_SelectCharDummyHeight, "m_SelectCharDummyHeight"); + } + + public static bool CheckProfessionCount(List list, string name) + { + bool flag = list.Count < XGame.RoleCount; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog(name, " length (", list.Count.ToString(), ") < ProfCount ", XGame.RoleCount.ToString(), null); + result = false; + } + else + { + result = true; + } + return result; + } + + public override void Uninit() + { + this._async_loader = null; + } + + public void SetProfSkillIds(List lst) + { + for (int i = 0; i < this._reader.Table.Length; i++) + { + bool flag = this._reader.Table[i] != null; + if (flag) + { + lst.Add(this._reader.Table[i].ProfID); + } + } + } + + public List GetMainProfList() + { + List list = new List(); + for (int i = 1; i < 10; i++) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(i); + bool flag = byProfID != null; + if (flag) + { + list.Add(byProfID); + } + } + return list; + } + + public string GetProfName(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + string result; + if (flag) + { + result = byProfID.ProfName; + } + else + { + result = XStringDefineProxy.GetString("PROFESSION_NONE"); + } + return result; + } + + public string GetProfHeadIcon(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID % 10); + bool flag = byProfID != null; + string result; + if (flag) + { + result = byProfID.ProfHeadIcon; + } + else + { + result = ""; + } + return result; + } + + public string GetProfHeadIcon2(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID % 10); + bool flag = byProfID != null; + string result; + if (flag) + { + result = byProfID.ProfHeadIcon2; + } + else + { + result = ""; + } + return result; + } + + public string GetProfIcon(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + string result; + if (flag) + { + result = byProfID.ProfIcon; + } + else + { + result = ""; + } + return result; + } + + public string GetProfPic(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + string result; + if (flag) + { + result = byProfID.ProfPic; + } + else + { + result = ""; + } + return result; + } + + public List GetProfSkillID(int profID) + { + List list = new List(); + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + if (flag) + { + bool flag2 = byProfID.Skill1 != ""; + if (flag2) + { + list.Add(XSingleton.singleton.XHash(byProfID.Skill1)); + } + bool flag3 = byProfID.Skill2 != ""; + if (flag3) + { + list.Add(XSingleton.singleton.XHash(byProfID.Skill2)); + } + bool flag4 = byProfID.Skill3 != ""; + if (flag4) + { + list.Add(XSingleton.singleton.XHash(byProfID.Skill3)); + } + bool flag5 = byProfID.Skill4 != ""; + if (flag5) + { + list.Add(XSingleton.singleton.XHash(byProfID.Skill4)); + } + } + return list; + } + + public float GetProfFixedEnmity(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + float result; + if (flag) + { + result = byProfID.FixedEnmity; + } + else + { + result = 0f; + } + return result; + } + + public string GetProfDesc(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + string result; + if (flag) + { + result = byProfID.Description; + } + else + { + result = XStringDefineProxy.GetString("PROFESSION_NONE"); + } + return result; + } + + public uint GetProfOperateLevel(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + uint result; + if (flag) + { + result = byProfID.OperateLevel; + } + else + { + result = 0u; + } + return result; + } + + public bool GetProfIsInLeft(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + return !flag || byProfID.PromoteLR; + } + + public uint GetPromoteExperienceID(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + uint result; + if (flag) + { + result = byProfID.PromoteExperienceID; + } + else + { + XSingleton.singleton.AddLog("Can't find the PromoteExperienceID by profID, ID = ", profID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + result = 0u; + } + return result; + } + + public float GetEnmityCoefficient(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + float result; + if (flag) + { + result = byProfID.EnmityCoefficient; + } + else + { + result = 1f; + } + return result; + } + + public string GetFootFx(uint profID) + { + return XSingleton.singleton.ChooseProfData(XProfessionSkillMgr.m_FootFx, profID); + } + + public string GetPortait(uint profID = 0u) + { + return XSingleton.singleton.ChooseProfData(XProfessionSkillMgr.m_ProfPortrait, profID); + } + + public string GetSuperRiskAvatar(uint profID = 0u) + { + return XSingleton.singleton.ChooseProfData(XProfessionSkillMgr.m_SuperRiskAvatar, profID); + } + + public string GetTeamIndicateAvatar(uint profID) + { + return XSingleton.singleton.ChooseProfData(XProfessionSkillMgr.m_TeamIndicateAvatar, profID); + } + + public float GetVisibleDistance(uint profID = 0u) + { + return XSingleton.singleton.ChooseProfData(XProfessionSkillMgr.m_VisibleDistance, profID); + } + + public float GetSelectCharDummyHeight(uint profID = 0u) + { + return XSingleton.singleton.ChooseProfData(XProfessionSkillMgr.m_SelectCharDummyHeight, profID); + } + + public string GetRoleMaterial(uint profID = 0u) + { + return XSingleton.singleton.ChooseProfData(XProfessionSkillMgr.m_RoleMat, profID); + } + + public string GetHalfPic(uint profID) + { + return this.GetLowerCaseWord(profID); + } + + public string GetLowerCaseWord(uint profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID((int)(profID % 10u)); + bool flag = byProfID == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + result = byProfID.ProfWord2; + } + return result; + } + + public string GetUpperCaseWord(uint profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID((int)(profID % 10u)); + bool flag = byProfID == null; + string result; + if (flag) + { + result = string.Empty; + } + else + { + result = byProfID.ProfWord1; + } + return result; + } + + public string GetEquipPrefabModel(FashionList.RowData data, uint profID) + { + string result; + switch (profID) + { + case 1u: + result = data.ModelPrefabWarrior; + break; + case 2u: + result = data.ModelPrefabArcher; + break; + case 3u: + result = data.ModelPrefabSorcer; + break; + case 4u: + result = data.ModelPrefabCleric; + break; + case 5u: + result = data.ModelPrefab5; + break; + case 6u: + result = data.ModelPrefab6; + break; + case 7u: + result = data.ModelPrefab7; + break; + default: + result = string.Empty; + break; + } + return result; + } + + public string GetProfNameIcon(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + string result; + if (flag) + { + result = byProfID.ProfNameIcon; + } + else + { + result = ""; + } + return result; + } + + public string GetProfIntro(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + string result; + if (flag) + { + result = XSingleton.singleton.ReplaceReturn(byProfID.ProfIntro); + } + else + { + result = ""; + } + return result; + } + + public string GetProfTypeIntro(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + bool flag = byProfID != null; + string result; + if (flag) + { + result = XSingleton.singleton.ReplaceReturn(byProfID.ProfTypeIntro); + } + else + { + result = ""; + } + return result; + } + + public bool IsExistProf(int profID) + { + ProfSkillTable.RowData byProfID = this._reader.GetByProfID(profID); + return byProfID != null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XProfessionSkillMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XProfessionSkillMgr.cs.meta new file mode 100644 index 00000000..515fc3f1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XProfessionSkillMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8283686f08c00bd4fb0a1b0fb6847646 +timeCreated: 1611404041 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XProjectDamageEventArgs.cs b/Client/Assets/Scripts/XMainClient/XProjectDamageEventArgs.cs new file mode 100644 index 00000000..6caf2f35 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XProjectDamageEventArgs.cs @@ -0,0 +1,27 @@ +using System; + +namespace XMainClient +{ + internal class XProjectDamageEventArgs : XEventArgs + { + public ProjectDamageResult Damage; + + public HurtInfo Hurt; + + public XEntity Receiver; + + public XProjectDamageEventArgs() + { + this._eDefine = XEventDefine.XEvent_ProjectDamage; + } + + public override void Recycle() + { + base.Recycle(); + this.Damage = null; + this.Hurt = null; + this.Receiver = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XProjectDamageEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XProjectDamageEventArgs.cs.meta new file mode 100644 index 00000000..6a529488 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XProjectDamageEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 14c1f5239ce32aa438ddff2577b25213 +timeCreated: 1611403259 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPuppet.cs b/Client/Assets/Scripts/XMainClient/XPuppet.cs new file mode 100644 index 00000000..e7e336d9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPuppet.cs @@ -0,0 +1,29 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XPuppet : XEnemy + { + public override bool Initilize(int flag) + { + base.Initilize(flag); + this._eEntity_Type |= XEntity.EnitityType.Entity_Puppet; + bool flag2 = (flag & XFastEnumIntEqualityComparer.ToInt(XEntity.InitFlag.Entity_Transform)) == 0; + if (flag2) + { + this._audio = (XSingleton.singleton.CreateComponent(this, XAudioComponent.uuID) as XAudioComponent); + } + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + base.IsServerFighting = true; + } + return true; + } + + protected override void Move() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPuppet.cs.meta b/Client/Assets/Scripts/XMainClient/XPuppet.cs.meta new file mode 100644 index 00000000..599e1ff6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPuppet.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 05219917df9c215499ffda295bf4d875 +timeCreated: 1611402962 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPurchaseBehaviour.cs b/Client/Assets/Scripts/XMainClient/XPurchaseBehaviour.cs new file mode 100644 index 00000000..dbd367cf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPurchaseBehaviour.cs @@ -0,0 +1,47 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XPurchaseBehaviour : DlgBehaviourBase + { + public IXUIButton m_QuitBtn; + + public IXUILabel m_Title; + + public IXUILabel m_BuyNumLeft; + + public IXUILabel m_BuyNumError; + + public IXUILabelSymbol m_BuyNum; + + public IXUILabel m_Time; + + public IXUILabel m_Tips; + + public IXUIButton m_QuickBuyDiamond; + + public IXUIButton m_QuickBuyDiamond10; + + public IXUIButton m_QuickBuyDragonCoin; + + public IXUILabelSymbol m_QuickBuyCost; + + private void Awake() + { + this.m_QuickBuyDiamond = (base.transform.Find("bg/BuyFrame/Btn/UseDiamond").GetComponent("XUIButton") as IXUIButton); + this.m_QuickBuyDiamond10 = (base.transform.Find("bg/BuyFrame/Btn/UseDiamond10").GetComponent("XUIButton") as IXUIButton); + this.m_QuickBuyDragonCoin = (base.transform.Find("bg/BuyFrame/Btn/UseDragonCoin").GetComponent("XUIButton") as IXUIButton); + this.m_QuickBuyCost = (base.transform.Find("bg/BuyFrame/num2").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_QuitBtn = (base.transform.Find("backclick").GetComponent("XUIButton") as IXUIButton); + this.m_Tips = (base.transform.Find("bg/BuyFrame/tips").GetComponent("XUILabel") as IXUILabel); + this.m_Title = (base.transform.Find("bg/BuyFrame/title").GetComponent("XUILabel") as IXUILabel); + this.m_BuyNumLeft = (base.transform.Find("bg/BuyFrame/timesleft").GetComponent("XUILabel") as IXUILabel); + this.m_BuyNumLeft.gameObject.SetActive(false); + this.m_BuyNum = (base.transform.Find("bg/BuyFrame/num1").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_BuyNumError = (base.transform.Find("bg/BuyFrame/error").GetComponent("XUILabel") as IXUILabel); + this.m_Time = (base.transform.Find("bg/BuyFrame/time").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPurchaseBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XPurchaseBehaviour.cs.meta new file mode 100644 index 00000000..4ffb92cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPurchaseBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d854b11844d0e9a4ca94a96615edd8d2 +timeCreated: 1611404639 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPurchaseDocument.cs b/Client/Assets/Scripts/XMainClient/XPurchaseDocument.cs new file mode 100644 index 00000000..0c837742 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPurchaseDocument.cs @@ -0,0 +1,243 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPurchaseDocument : XDocComponent + { + public override uint ID + { + get + { + return XPurchaseDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XPurchaseDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static BuyFatigueTable _BuyFatigureTable = new BuyFatigueTable(); + + private static BuyGoldTable _BuyGoldTable = new BuyGoldTable(); + + public XPurchaseInfo myPurchaseInfo = new XPurchaseInfo(); + + public XPurchaseView PurchaseView; + + private static BuyDragonCoin _BuyDragonCoinTable = new BuyDragonCoin(); + + public static PurchaseInfo _buyInfo = new PurchaseInfo(); + + public static void Execute(OnLoadedCallback callback = null) + { + XPurchaseDocument.AsyncLoader.AddTask("Table/BuyFatigue", XPurchaseDocument._BuyFatigureTable, false); + XPurchaseDocument.AsyncLoader.AddTask("Table/BuyGold", XPurchaseDocument._BuyGoldTable, false); + XPurchaseDocument.AsyncLoader.AddTask("Table/BuyDragonCoin", XPurchaseDocument._BuyDragonCoinTable, false); + XPurchaseDocument.AsyncLoader.Execute(callback); + } + + public void InitPurchaseInfo(BuyGoldFatInfo info) + { + bool flag = info != null; + if (flag) + { + XPurchaseDocument._buyInfo.day = info.day; + XPurchaseDocument._buyInfo.BuyGoldCount = info.BuyGoldCount; + XPurchaseDocument._buyInfo.BuyFatigueCount.Clear(); + XPurchaseDocument._buyInfo.BuyDragonCoinCount = info.BuyDragonCount; + foreach (int item in info.BuyFatigueCount) + { + XPurchaseDocument._buyInfo.BuyFatigueCount.Add(item); + } + } + else + { + XPurchaseDocument._buyInfo.BuyGoldCount = 0; + XPurchaseDocument._buyInfo.BuyDragonCoinCount = 0; + XPurchaseDocument._buyInfo.day = 0u; + XPurchaseDocument._buyInfo.BuyFatigueCount.Clear(); + } + } + + public XPurchaseInfo GetPurchaseInfo(int level, int vip, ItemEnum type) + { + bool flag = type == ItemEnum.GOLD; + if (flag) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + this.myPurchaseInfo.totalBuyNum = specificDocument.VIPReader.Table[vip].BuyGoldTimes; + int num = XPurchaseDocument._buyInfo.BuyGoldCount; + BuyGoldTable.RowData rowData = XPurchaseDocument._BuyGoldTable.Table[level - 1]; + this.myPurchaseInfo.curBuyNum = XPurchaseDocument._buyInfo.BuyGoldCount; + this.myPurchaseInfo.GetCount = (int)rowData.Gold; + this.myPurchaseInfo.fatigue = XPurchaseDocument._buyInfo.BuyFatigueCount; + bool flag2 = rowData.DragonCoinCost != null; + if (flag2) + { + bool flag3 = num >= rowData.DragonCoinCost.Length; + if (flag3) + { + this.myPurchaseInfo.dragoncoinCost = rowData.DragonCoinCost[rowData.DragonCoinCost.Length - 1]; + this.myPurchaseInfo.diamondCost = rowData.DiamondCost[rowData.DiamondCost.Length - 1]; + } + else + { + this.myPurchaseInfo.dragoncoinCost = rowData.DragonCoinCost[num]; + this.myPurchaseInfo.diamondCost = rowData.DiamondCost[num]; + } + } + else + { + XSingleton.singleton.AddErrorLog("data.DragonCoinCost null", null, null, null, null, null); + } + } + else + { + bool flag4 = type == ItemEnum.FATIGUE; + if (flag4) + { + XRechargeDocument specificDocument2 = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + this.myPurchaseInfo.totalBuyNum = specificDocument2.VIPReader.Table[vip].BuyFatigueTimes; + int num = 0; + for (int i = 0; i < XPurchaseDocument._buyInfo.BuyFatigueCount.Count; i += 2) + { + bool flag5 = XPurchaseDocument._buyInfo.BuyFatigueCount[i] == (int)type; + if (flag5) + { + num = XPurchaseDocument._buyInfo.BuyFatigueCount[i + 1]; + } + } + int num2 = 0; + for (int j = 0; j < XPurchaseDocument._BuyFatigureTable.Table.Length; j++) + { + bool flag6 = XPurchaseDocument._BuyFatigureTable.Table[j].FatigueID == (int)type; + if (flag6) + { + num2 = j; + } + } + this.myPurchaseInfo.curBuyNum = num; + this.myPurchaseInfo.GetCount = XPurchaseDocument._BuyFatigureTable.Table[num2].Value; + bool flag7 = XPurchaseDocument._BuyFatigureTable.Table[num2].DragonCoinCost != null; + if (flag7) + { + bool flag8 = num >= XPurchaseDocument._BuyFatigureTable.Table[num2].DragonCoinCost.Length; + if (flag8) + { + this.myPurchaseInfo.dragoncoinCost = XPurchaseDocument._BuyFatigureTable.Table[num2].DragonCoinCost[XPurchaseDocument._BuyFatigureTable.Table[num2].DragonCoinCost.Length - 1]; + this.myPurchaseInfo.diamondCost = XPurchaseDocument._BuyFatigureTable.Table[num2].DiamondCost[XPurchaseDocument._BuyFatigureTable.Table[num2].DiamondCost.Length - 1]; + } + else + { + this.myPurchaseInfo.dragoncoinCost = XPurchaseDocument._BuyFatigureTable.Table[num2].DragonCoinCost[num]; + this.myPurchaseInfo.diamondCost = XPurchaseDocument._BuyFatigureTable.Table[num2].DiamondCost[num]; + } + } + else + { + XSingleton.singleton.AddErrorLog("DragonCoinCost null", null, null, null, null, null); + } + } + else + { + bool flag9 = type == ItemEnum.DRAGON_COIN; + if (flag9) + { + XRechargeDocument specificDocument3 = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + this.myPurchaseInfo.totalBuyNum = specificDocument3.VIPReader.Table[vip].BuyDragonCoinTimes; + int num = XPurchaseDocument._buyInfo.BuyDragonCoinCount; + BuyDragonCoin.RowData rowData2 = XPurchaseDocument._BuyDragonCoinTable.Table[level - 1]; + this.myPurchaseInfo.curBuyNum = XPurchaseDocument._buyInfo.BuyDragonCoinCount; + this.myPurchaseInfo.GetCount = (int)rowData2.DragonCoin; + bool flag10 = rowData2.DiamondCost != null; + if (flag10) + { + bool flag11 = num >= rowData2.DiamondCost.Length; + if (flag11) + { + this.myPurchaseInfo.diamondCost = rowData2.DiamondCost[rowData2.DiamondCost.Length - 1]; + } + else + { + this.myPurchaseInfo.diamondCost = rowData2.DiamondCost[num]; + } + } + } + } + } + return this.myPurchaseInfo; + } + + public void CommonQuickBuy(ItemEnum itemid, ItemEnum useItem, uint count = 1u) + { + RpcC2G_BuyGoldAndFatigue rpcC2G_BuyGoldAndFatigue = new RpcC2G_BuyGoldAndFatigue(); + rpcC2G_BuyGoldAndFatigue.oArg.fatigueID = (uint)itemid; + rpcC2G_BuyGoldAndFatigue.oArg.count = count; + bool flag = itemid == ItemEnum.GOLD && useItem == ItemEnum.DIAMOND; + if (flag) + { + rpcC2G_BuyGoldAndFatigue.oArg.type = buyextype.DIAMONE_BUY_GOLD; + } + else + { + bool flag2 = itemid == ItemEnum.GOLD && useItem == ItemEnum.DRAGON_COIN; + if (flag2) + { + rpcC2G_BuyGoldAndFatigue.oArg.type = buyextype.DRAGONCOIN_BUY_GOLD; + } + else + { + bool flag3 = itemid == ItemEnum.FATIGUE && useItem == ItemEnum.DIAMOND; + if (flag3) + { + rpcC2G_BuyGoldAndFatigue.oArg.type = buyextype.DIAMOND_BUY_FATIGUE; + } + else + { + bool flag4 = itemid == ItemEnum.FATIGUE && useItem == ItemEnum.DRAGON_COIN; + if (flag4) + { + rpcC2G_BuyGoldAndFatigue.oArg.type = buyextype.DRAGON_BUY_FATIGUE; + } + else + { + bool flag5 = itemid == ItemEnum.DRAGON_COIN && useItem == ItemEnum.DIAMOND; + if (flag5) + { + rpcC2G_BuyGoldAndFatigue.oArg.type = buyextype.DIAMONE_BUY_DRAGONCOIN; + } + else + { + bool flag6 = itemid == ItemEnum.CHAT_LANNIAO && useItem == ItemEnum.DRAGON_COIN; + if (flag6) + { + rpcC2G_BuyGoldAndFatigue.oArg.type = buyextype.DRAGONCOIN_BUY_BLUEBIRD; + } + } + } + } + } + } + XSingleton.singleton.Send(rpcC2G_BuyGoldAndFatigue); + } + + public void CommonQuickBuyRandom(ItemEnum itemid, ItemEnum usrItem, uint count) + { + RpcC2G_BuyGoldAndFatigue rpcC2G_BuyGoldAndFatigue = new RpcC2G_BuyGoldAndFatigue(); + rpcC2G_BuyGoldAndFatigue.oArg.fatigueID = (uint)XFastEnumIntEqualityComparer.ToInt(itemid); + rpcC2G_BuyGoldAndFatigue.oArg.count = count; + bool flag = itemid == ItemEnum.DRAGON_COIN && usrItem == ItemEnum.DIAMOND; + if (flag) + { + rpcC2G_BuyGoldAndFatigue.oArg.type = buyextype.DIAMOND_EXCHANGE_DRAGONCOIN; + } + XSingleton.singleton.Send(rpcC2G_BuyGoldAndFatigue); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPurchaseDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPurchaseDocument.cs.meta new file mode 100644 index 00000000..aaaeea9f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPurchaseDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4f3e4dba2c678445a96b6362c18e81a +timeCreated: 1611404394 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs b/Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs new file mode 100644 index 00000000..c743cc67 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XPurchaseInfo + { + public int curBuyNum = 0; + + public int totalBuyNum = 0; + + public int diamondCost = 0; + + public int dragoncoinCost = 0; + + public int GetCount = 0; + + public int vipLevel = 0; + + public List fatigue; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs.meta new file mode 100644 index 00000000..7bf4d9db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPurchaseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eace511952aa3eb46938d046c54efcbe +timeCreated: 1611404780 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPurchaseView.cs b/Client/Assets/Scripts/XMainClient/XPurchaseView.cs new file mode 100644 index 00000000..01b3ad83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPurchaseView.cs @@ -0,0 +1,347 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPurchaseView : DlgBase + { + public override string fileName + { + get + { + return "Common/QuickPurchase"; + } + } + + public override int group + { + get + { + return 2; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideTutorial + { + get + { + return true; + } + } + + private XPurchaseDocument _doc = null; + + private uint nextRecoverTimer = 0u; + + public static FatigueRecoverTime _fatigueTime = new FatigueRecoverTime(); + + public ItemEnum _showItem = ItemEnum.VIRTUAL_ITEM_MAX; + + protected override void Init() + { + this._doc = XDocuments.GetSpecificDocument(XPurchaseDocument.uuID); + this._doc.PurchaseView = this; + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_QuickBuyDiamond.ID = 1UL; + base.uiBehaviour.m_QuickBuyDiamond.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoPurchaseDiamond)); + base.uiBehaviour.m_QuickBuyDiamond10.ID = 10UL; + base.uiBehaviour.m_QuickBuyDiamond10.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoPurchaseDiamond)); + base.uiBehaviour.m_QuickBuyDragonCoin.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoPurchageDC)); + base.uiBehaviour.m_QuitBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnUnload() + { + this._doc = null; + base.OnUnload(); + } + + public bool OnCloseClicked(IXUIButton sp) + { + bool flag = this.nextRecoverTimer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this.nextRecoverTimer); + this.nextRecoverTimer = 0u; + } + this.SetVisibleWithAnimation(false, null); + return true; + } + + public void Refresh() + { + } + + public void ReceiveFatigueTime(PtcG2C_FatigueRecoverTimeNotify times) + { + XPurchaseView._fatigueTime.timeleft = times.Data.timeleft; + XPurchaseView._fatigueTime.fatigueid = times.Data.fatigueID; + XPurchaseView._fatigueTime.updatetime = DateTime.Now; + } + + public void ShowBorad(int itemid) + { + if (itemid != 1) + { + switch (itemid) + { + case 6: + case 7: + case 9: + this.ShowBorad((ItemEnum)itemid); + return; + case 11: + DlgBase.singleton.SetVisible(true, true); + return; + } + XSingleton.singleton.ShowItemAccess(itemid, null); + } + else + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + DlgBase.singleton.Show(XSysDefine.XSys_Welfare_MoneyTree); + } + } + } + + public void ShowBorad(ItemEnum type) + { + if (type != ItemEnum.GOLD) + { + if (type != ItemEnum.DIAMOND) + { + this.SetVisibleWithAnimation(true, null); + this._showItem = type; + this.SetupPanel(); + this.RefreshBoard(); + bool flag = this._showItem == ItemEnum.FATIGUE; + if (flag) + { + bool flag2 = this.nextRecoverTimer > 0u; + if (flag2) + { + XSingleton.singleton.KillTimer(this.nextRecoverTimer); + } + this.nextRecoverTimer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.UpdateTimer), null); + } + } + else + { + DlgBase.singleton.ShowPurchase(ItemEnum.DIAMOND); + } + } + else + { + DlgBase.singleton.Show(XSysDefine.XSys_Welfare_MoneyTree); + } + } + + public void RefreshBoard() + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + XPurchaseInfo purchaseInfo = this._doc.GetPurchaseInfo(level, vipLevel, this._showItem); + base.uiBehaviour.m_BuyNum.InputText = XLabelSymbolHelper.FormatCostWithIcon(purchaseInfo.GetCount, this._showItem); + bool flag = this._showItem == ItemEnum.DRAGON_COIN; + if (flag) + { + base.uiBehaviour.m_QuickBuyCost.InputText = XLabelSymbolHelper.FormatCostWithIcon(purchaseInfo.diamondCost, ItemEnum.DIAMOND); + } + else + { + base.uiBehaviour.m_QuickBuyCost.InputText = XLabelSymbolHelper.FormatCostWithIcon(purchaseInfo.dragoncoinCost, ItemEnum.DRAGON_COIN); + } + } + + protected void SetupPanel() + { + bool flag = this._showItem == ItemEnum.VIRTUAL_ITEM_MAX; + if (!flag) + { + base.uiBehaviour.m_Time.gameObject.SetActive(false); + base.uiBehaviour.m_BuyNumError.gameObject.SetActive(false); + ItemEnum showItem = this._showItem; + if (showItem != ItemEnum.GOLD) + { + if (showItem != ItemEnum.FATIGUE) + { + if (showItem == ItemEnum.DRAGON_COIN) + { + base.uiBehaviour.m_Title.SetText(XStringDefineProxy.GetString("PURCHASEDC")); + base.uiBehaviour.m_QuickBuyDiamond.gameObject.SetActive(true); + base.uiBehaviour.m_QuickBuyDiamond10.gameObject.SetActive(true); + base.uiBehaviour.m_QuickBuyDragonCoin.gameObject.SetActive(false); + base.uiBehaviour.m_Tips.SetText(XStringDefineProxy.GetString("Quick_Purchase_Tips2")); + } + } + else + { + base.uiBehaviour.m_Title.SetText(XStringDefineProxy.GetString("PURCHASEFAT")); + base.uiBehaviour.m_QuickBuyDiamond.gameObject.SetActive(false); + base.uiBehaviour.m_QuickBuyDiamond10.gameObject.SetActive(false); + base.uiBehaviour.m_QuickBuyDragonCoin.gameObject.SetActive(true); + base.uiBehaviour.m_Tips.SetText(XStringDefineProxy.GetString("Quick_Purchase_Tips3")); + } + } + else + { + base.uiBehaviour.m_Title.SetText(XStringDefineProxy.GetString("PURCHASEGOLD")); + base.uiBehaviour.m_QuickBuyDiamond.gameObject.SetActive(false); + base.uiBehaviour.m_QuickBuyDiamond10.gameObject.SetActive(false); + base.uiBehaviour.m_QuickBuyDragonCoin.gameObject.SetActive(true); + base.uiBehaviour.m_Tips.SetText(XStringDefineProxy.GetString("Quick_Purchase_Tips1")); + } + } + } + + public void ShowErrorCode(ErrorCode err) + { + bool flag = base.uiBehaviour != null && base.uiBehaviour.m_BuyNum != null; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(err), "fece00"); + } + } + + public string FormatTime(uint time) + { + bool flag = time >= 3600u; + string result; + if (flag) + { + result = string.Format(string.Format("{0:D2}:{1:D2}:{2:D2}", (int)(time / 3600u), (int)(time % 3600u / 60u), time % 60u), new object[0]); + } + else + { + result = string.Format(string.Format("{0:D2}:{1:D2}", (int)(time % 3600u / 60u), time % 60u), new object[0]); + } + return result; + } + + public uint GetTimeLeft(ItemEnum itemid) + { + uint num = 0u; + for (int i = 0; i < XPurchaseView._fatigueTime.fatigueid.Count; i++) + { + bool flag = XPurchaseView._fatigueTime.fatigueid[i] == (uint)this._showItem; + if (flag) + { + num = XPurchaseView._fatigueTime.timeleft[i] / 1000u; + } + } + double totalSeconds = (DateTime.Now - XPurchaseView._fatigueTime.updatetime).TotalSeconds; + num -= (uint)totalSeconds; + return (num > 0u) ? num : 0u; + } + + public void UpdateTimer(object param) + { + uint num = 0u; + for (int i = 0; i < XPurchaseView._fatigueTime.fatigueid.Count; i++) + { + bool flag = XPurchaseView._fatigueTime.fatigueid[i] == (uint)this._showItem; + if (flag) + { + num = XPurchaseView._fatigueTime.timeleft[i]; + } + } + bool flag2 = num == 0u; + if (flag2) + { + base.uiBehaviour.m_Time.SetText(""); + } + else + { + double totalSeconds = (DateTime.Now - XPurchaseView._fatigueTime.updatetime).TotalSeconds; + num -= (uint)totalSeconds; + bool flag3 = num <= 0u; + if (flag3) + { + base.uiBehaviour.m_Time.SetText(""); + } + else + { + base.uiBehaviour.m_Time.SetText(""); + bool flag4 = this.nextRecoverTimer > 0u; + if (flag4) + { + XSingleton.singleton.KillTimer(this.nextRecoverTimer); + } + this.nextRecoverTimer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.UpdateTimer), null); + } + } + } + + public bool DoPurchaseDiamond(IXUIButton sp) + { + this._doc.CommonQuickBuy(this._showItem, ItemEnum.DIAMOND, (uint)sp.ID); + return true; + } + + public bool DoPurchageDC(IXUIButton sp) + { + bool flag = this._showItem == ItemEnum.FATIGUE; + if (flag) + { + int level = (int)XSingleton.singleton.XPlayerData.Level; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + int vipLevel = (int)specificDocument.VipLevel; + XPurchaseInfo purchaseInfo = this._doc.GetPurchaseInfo(level, vipLevel, ItemEnum.FATIGUE); + int num = (int)XBagDocument.BagDoc.GetVirtualItemCount(ItemEnum.FATIGUE); + bool flag2 = num + purchaseInfo.GetCount > int.Parse(XSingleton.singleton.GetValue("MaxFatigue")); + if (flag2) + { + XSingleton.singleton.ShowFatigueSureDlg(new ButtonClickEventHandler(this.GetFatigueSure)); + return true; + } + } + this._doc.CommonQuickBuy(this._showItem, ItemEnum.DRAGON_COIN, 1u); + return true; + } + + public bool GetFatigueSure(IXUIButton btn) + { + this._doc.CommonQuickBuy(this._showItem, ItemEnum.DRAGON_COIN, 1u); + DlgBase.singleton.SetVisible(false, true); + return true; + } + + public void ReqQuickCommonPurchase(ItemEnum itemEnum = ItemEnum.FATIGUE) + { + this.ReqQuickCommonPurchase(XFastEnumIntEqualityComparer.ToInt(itemEnum)); + } + + public void ReqQuickCommonPurchase(int itemid) + { + this.ShowBorad(itemid); + } + + public void UpdatePlayerBuyInfo(BuyGoldFatInfo buyInfo) + { + bool flag = this._doc == null; + if (!flag) + { + this._doc.InitPurchaseInfo(buyInfo); + this.RefreshBoard(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPurchaseView.cs.meta b/Client/Assets/Scripts/XMainClient/XPurchaseView.cs.meta new file mode 100644 index 00000000..a2f36705 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPurchaseView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 33bb8bbd8bdc38a458e62e02f4186a65 +timeCreated: 1611403553 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XPushSubscribeDocument.cs b/Client/Assets/Scripts/XMainClient/XPushSubscribeDocument.cs new file mode 100644 index 00000000..5bd900f3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPushSubscribeDocument.cs @@ -0,0 +1,200 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XPushSubscribeDocument : XDocComponent + { + public override uint ID + { + get + { + return XPushSubscribeDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("PushSubscribeDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static PushSubscribeTable _PushSubscribeTable = new PushSubscribeTable(); + + public List OptionsDefault = new List(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + bool flag = this.OptionsDefault.Count == 0 && XSingleton.singleton.AccountType == LoginType.LGOIN_WECHAT_PF; + if (flag) + { + this.ReqListSubscribe(); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.OptionsDefault.Count == 0 && XSingleton.singleton.AccountType == LoginType.LGOIN_WECHAT_PF; + if (flag) + { + this.ReqListSubscribe(); + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XPushSubscribeDocument.AsyncLoader.AddTask("Table/PushSubscribe", XPushSubscribeDocument._PushSubscribeTable, false); + XPushSubscribeDocument.AsyncLoader.Execute(callback); + } + + public static PushSubscribeTable.RowData GetPushSubscribe(PushSubscribeOptions type) + { + return XPushSubscribeDocument.GetPushSubscribe((uint)XFastEnumIntEqualityComparer.ToInt(type)); + } + + public static PushSubscribeTable.RowData GetPushSubscribe(uint id) + { + return XPushSubscribeDocument._PushSubscribeTable.GetByMsgId(id); + } + + private void ReqListSubscribe() + { + XSingleton.singleton.AddLog("ReqListSubscribe", null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2M_GetListSubscribe rpcC2M_GetListSubscribe = new RpcC2M_GetListSubscribe(); + rpcC2M_GetListSubscribe.oArg.token = XSingleton.singleton.OpenKey; + XSingleton.singleton.Send(rpcC2M_GetListSubscribe); + } + + public void OnListSubscribe(List data) + { + this.OptionsDefault.Clear(); + for (int i = 0; i < XFastEnumIntEqualityComparer.ToInt(PushSubscribeOptions.MAX); i++) + { + this.OptionsDefault.Add(false); + } + for (int j = 0; j < data.Count; j++) + { + int id = (int)data[j].id; + this.OptionsDefault[id] = data[j].status; + } + XSingleton.singleton.AddLog("OptionsDefault.Count" + this.OptionsDefault.Count, null, null, null, null, null, XDebugColor.XDebug_None); + for (int k = 0; k < XFastEnumIntEqualityComparer.ToInt(PushSubscribeOptions.MAX); k++) + { + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "OptionsDefaultID:", + k, + " value:", + this.OptionsDefault[k].ToString() + }), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void ReqSetSubscribe(PushSubscribeOptions type, bool op) + { + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "ReqSetSubscribe type:", + type, + " op:", + op.ToString() + }), null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2M_SetSubscribe rpcC2M_SetSubscribe = new RpcC2M_SetSubscribe(); + rpcC2M_SetSubscribe.oArg.msgid.Add((uint)XFastEnumIntEqualityComparer.ToInt(type)); + rpcC2M_SetSubscribe.oArg.msgtype = (op ? 0 : 1); + rpcC2M_SetSubscribe.oArg.token = XSingleton.singleton.OpenKey; + XSingleton.singleton.Send(rpcC2M_SetSubscribe); + } + + public void OnSetSubscribe(SetSubscirbeArg data) + { + int num = (int)data.msgid[0]; + bool flag = data.msgtype == 0; + this.OptionsDefault[num] = flag; + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "OnSetSubscribe index:", + num, + " status:", + flag.ToString() + }), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = flag; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("SUBSCRIBE_OK"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("SUBSCRIBE_CANCEL"), "fece00"); + } + switch (num) + { + case 1: + { + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.RefreshSubscribe(); + } + break; + } + case 2: + { + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshSubscribe(); + } + break; + } + case 3: + { + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgHandlerBase dlgHandlerBase; + DlgBase.singleton.m_AllHandlers.TryGetValue(XSysDefine.XSys_ReceiveEnergy, out dlgHandlerBase); + ReceiveEnergyDlg receiveEnergyDlg = dlgHandlerBase as ReceiveEnergyDlg; + receiveEnergyDlg.RefreshSubscribe(); + } + break; + } + } + } + + public bool GetCurSubscribeStatus(PushSubscribeOptions type) + { + int num = XFastEnumIntEqualityComparer.ToInt(type); + bool flag = num >= this.OptionsDefault.Count; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Concat(new object[] + { + "msgId:", + num, + " Options:", + this.OptionsDefault.Count + }), null, null, null, null, null); + result = false; + } + else + { + result = this.OptionsDefault[num]; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XPushSubscribeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XPushSubscribeDocument.cs.meta new file mode 100644 index 00000000..d45860e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XPushSubscribeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ce4e8295a01e8a489988a7c7e84572d +timeCreated: 1611404234 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQQVipDesBehaviour.cs b/Client/Assets/Scripts/XMainClient/XQQVipDesBehaviour.cs new file mode 100644 index 00000000..81fd42c7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQQVipDesBehaviour.cs @@ -0,0 +1,43 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQQVipDesBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_Detail; + + public Transform m_VipDesc; + + public Transform m_SVipDesc; + + public IXUILabel m_VipBtnText; + + public IXUILabel m_SVipBtnText; + + public IXUIButton m_VipBtn; + + public IXUIButton m_SVipBtn; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform transform = base.transform.Find("Bg/Tpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 6u, false); + this.m_Detail = (base.transform.Find("Bg/Detail").GetComponent("XUILabel") as IXUILabel); + this.m_VipDesc = base.transform.Find("Bg/VipDesc"); + this.m_SVipDesc = base.transform.Find("Bg/SVipDesc"); + this.m_VipBtn = (base.transform.Find("Bg/VipDesc/Button").GetComponent("XUIButton") as IXUIButton); + this.m_SVipBtn = (base.transform.Find("Bg/SVipDesc/Button").GetComponent("XUIButton") as IXUIButton); + this.m_VipBtnText = (base.transform.Find("Bg/VipDesc/Button/text").GetComponent("XUILabel") as IXUILabel); + this.m_SVipBtnText = (base.transform.Find("Bg/SVipDesc/Button/text").GetComponent("XUILabel") as IXUILabel); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQQVipDesBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XQQVipDesBehaviour.cs.meta new file mode 100644 index 00000000..b42ad1c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQQVipDesBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0a8bc4c926cbe5542b8650e322a2e06f +timeCreated: 1611403164 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQQVipDesView.cs b/Client/Assets/Scripts/XMainClient/XQQVipDesView.cs new file mode 100644 index 00000000..7b05addf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQQVipDesView.cs @@ -0,0 +1,315 @@ +using System; +using System.Collections.Generic; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQQVipDesView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/PlatformAbility/QQVipDesDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XPlatformAbilityDocument _doc = null; + + public enum VipButtonType + { + None, + OpenVip, + OpenSVip, + RenewVip, + RenewSVip, + UpgradeSVip + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XPlatformAbilityDocument.uuID); + base.uiBehaviour.m_Detail.SetText(XSingleton.singleton.ReplaceReturn(XSingleton.singleton.GetValue("QQVipDesc"))); + base.uiBehaviour.m_ItemPool.FakeReturnAll(); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("QQVipGift", true); + this.SetVipGiftInfo(base.uiBehaviour.m_VipDesc, sequenceList); + SeqList sequenceList2 = XSingleton.singleton.GetSequenceList("QQSVipGift", true); + this.SetVipGiftInfo(base.uiBehaviour.m_SVipDesc, sequenceList2); + base.uiBehaviour.m_ItemPool.ActualReturnAll(false); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + base.uiBehaviour.m_VipBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnVipBtnClicked)); + base.uiBehaviour.m_SVipBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSVipBtnClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshBtnsState(); + } + + public void RefreshBtnsState() + { + bool flag = this._doc.QQVipInfo == null; + if (!flag) + { + XSingleton.singleton.AddLog(string.Concat(new string[] + { + "[QQVipInfo] isVip:", + this._doc.QQVipInfo.is_vip.ToString(), + ", isSVip:", + this._doc.QQVipInfo.is_svip.ToString(), + ",is_bigger_one_month:", + this._doc.QQVipInfo.is_bigger_one_month.ToString() + }), null, null, null, null, null, XDebugColor.XDebug_None); + XQQVipDesView.VipButtonType vipButtonType = XQQVipDesView.VipButtonType.None; + XQQVipDesView.VipButtonType en = XQQVipDesView.VipButtonType.None; + string text = ""; + string text2 = ""; + bool flag2 = !this._doc.QQVipInfo.is_vip; + if (flag2) + { + vipButtonType = XQQVipDesView.VipButtonType.OpenVip; + en = XQQVipDesView.VipButtonType.OpenSVip; + text = XSingleton.singleton.GetString("QQVIP_OPEN_VIP"); + text2 = XSingleton.singleton.GetString("QQVIP_OPEN_SVIP"); + } + else + { + bool flag3 = this._doc.QQVipInfo.is_vip && !this._doc.QQVipInfo.is_svip; + if (flag3) + { + bool is_bigger_one_month = this._doc.QQVipInfo.is_bigger_one_month; + if (is_bigger_one_month) + { + vipButtonType = XQQVipDesView.VipButtonType.RenewVip; + en = XQQVipDesView.VipButtonType.UpgradeSVip; + text = XSingleton.singleton.GetString("QQVIP_RENEW_VIP"); + text2 = XSingleton.singleton.GetString("QQVIP_UPGRADE_SVIP"); + } + else + { + vipButtonType = XQQVipDesView.VipButtonType.RenewVip; + en = XQQVipDesView.VipButtonType.OpenSVip; + text = XSingleton.singleton.GetString("QQVIP_RENEW_VIP"); + text2 = XSingleton.singleton.GetString("QQVIP_OPEN_SVIP"); + } + } + else + { + bool flag4 = this._doc.QQVipInfo.is_vip && this._doc.QQVipInfo.is_svip; + if (flag4) + { + vipButtonType = XQQVipDesView.VipButtonType.RenewVip; + en = XQQVipDesView.VipButtonType.RenewSVip; + text = XSingleton.singleton.GetString("QQVIP_RENEW_VIP"); + text2 = XSingleton.singleton.GetString("QQVIP_RENEW_SVIP"); + } + } + } + bool flag5 = vipButtonType > XQQVipDesView.VipButtonType.None; + if (flag5) + { + base.uiBehaviour.m_VipBtn.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(vipButtonType)); + base.uiBehaviour.m_SVipBtn.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(en)); + base.uiBehaviour.m_VipBtnText.SetText(text); + base.uiBehaviour.m_SVipBtnText.SetText(text2); + } + else + { + base.uiBehaviour.m_VipBtn.SetEnable(false, false); + base.uiBehaviour.m_SVipBtn.SetEnable(false, false); + } + } + } + + private void SetVipGiftInfo(Transform vip, SeqList giftList) + { + IXUIList ixuilist = vip.Find("ItemList").GetComponent("XUIList") as IXUIList; + for (int i = 0; i < (int)giftList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject.transform.parent = ixuilist.gameObject.transform; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, giftList[i, 0], giftList[i, 1], false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)giftList[i, 0]); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + ixuilist.Refresh(); + } + + private bool OnVipBtnClicked(IXUIButton btn) + { + bool flag = this._doc.QQVipInfo == null; + bool result; + if (flag) + { + result = false; + } + else + { + XQQVipDesView.VipButtonType vipButtonType = (XQQVipDesView.VipButtonType)btn.ID; + string serviceCode = ""; + int serviceType = 1; + bool flag2 = !this._doc.QQVipInfo.is_vip; + if (flag2) + { + bool flag3 = vipButtonType == XQQVipDesView.VipButtonType.OpenVip; + if (flag3) + { + serviceCode = "LTMCLUB"; + } + serviceType = 1; + } + else + { + bool flag4 = this._doc.QQVipInfo.is_vip && !this._doc.QQVipInfo.is_svip; + if (flag4) + { + bool is_bigger_one_month = this._doc.QQVipInfo.is_bigger_one_month; + if (is_bigger_one_month) + { + bool flag5 = vipButtonType == XQQVipDesView.VipButtonType.RenewVip; + if (flag5) + { + serviceCode = "LTMCLUB"; + serviceType = 1; + } + } + else + { + bool flag6 = vipButtonType == XQQVipDesView.VipButtonType.RenewVip; + if (flag6) + { + serviceCode = "LTMCLUB"; + serviceType = 1; + } + } + } + else + { + bool flag7 = this._doc.QQVipInfo.is_vip && this._doc.QQVipInfo.is_svip; + if (flag7) + { + bool flag8 = vipButtonType == XQQVipDesView.VipButtonType.RenewVip; + if (flag8) + { + serviceCode = "LTMCLUB"; + serviceType = 1; + } + } + } + } + this.QQVipPurchase(serviceCode, serviceType); + result = true; + } + return result; + } + + private bool OnSVipBtnClicked(IXUIButton btn) + { + bool flag = this._doc.QQVipInfo == null; + bool result; + if (flag) + { + result = false; + } + else + { + XQQVipDesView.VipButtonType vipButtonType = (XQQVipDesView.VipButtonType)btn.ID; + string serviceCode = ""; + int serviceType = 1; + bool flag2 = !this._doc.QQVipInfo.is_vip; + if (flag2) + { + bool flag3 = vipButtonType == XQQVipDesView.VipButtonType.OpenSVip; + if (flag3) + { + serviceCode = "CJCLUBT"; + } + serviceType = 1; + } + else + { + bool flag4 = this._doc.QQVipInfo.is_vip && !this._doc.QQVipInfo.is_svip; + if (flag4) + { + bool is_bigger_one_month = this._doc.QQVipInfo.is_bigger_one_month; + if (is_bigger_one_month) + { + bool flag5 = vipButtonType == XQQVipDesView.VipButtonType.UpgradeSVip; + if (flag5) + { + serviceCode = "CJCLUBT"; + serviceType = 3; + } + } + else + { + bool flag6 = vipButtonType == XQQVipDesView.VipButtonType.OpenSVip; + if (flag6) + { + serviceCode = "CJCLUBT"; + serviceType = 1; + } + } + } + else + { + bool flag7 = this._doc.QQVipInfo.is_vip && this._doc.QQVipInfo.is_svip; + if (flag7) + { + bool flag8 = vipButtonType == XQQVipDesView.VipButtonType.RenewSVip; + if (flag8) + { + serviceCode = "CJCLUBT"; + serviceType = 1; + } + } + } + } + this.QQVipPurchase(serviceCode, serviceType); + result = true; + } + return result; + } + + private void QQVipPurchase(string ServiceCode, int ServiceType) + { + Dictionary dictionary = new Dictionary(); + dictionary["serviceCode"] = ServiceCode; + dictionary["serviceName"] = XSingleton.singleton.GetString("QQVIP_OPEN_RENEW_TITLE"); + dictionary["serviceType"] = ServiceType; + dictionary["remark"] = string.Format("aid={0}", XSingleton.singleton.GetValue("AID")); + dictionary["zoneId"] = string.Format("{0}_{1}", XSingleton.singleton.ServerID, XSingleton.singleton.XPlayerData.RoleID); + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("[QQVipInfo] jsonData:" + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("pay_for_qq_club", text); + } + + private bool OnCloseBtnClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQQVipDesView.cs.meta b/Client/Assets/Scripts/XMainClient/XQQVipDesView.cs.meta new file mode 100644 index 00000000..e883e8b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQQVipDesView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3e82b47a58039cd48813730d44a3d5be +timeCreated: 1611403608 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeBehaviour.cs b/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeBehaviour.cs new file mode 100644 index 00000000..5da05888 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeBehaviour.cs @@ -0,0 +1,35 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XQQWXGameCenterPrivilegeBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUILabel m_Title; + + public IXUILabel m_Privilege1; + + public IXUILabel m_Privilege2; + + public IXUILabel m_Privilege3; + + public GameObject m_QQIcon; + + public GameObject m_WXIcon; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Title = (base.transform.Find("Bg/Title").GetComponent("XUILabel") as IXUILabel); + this.m_Privilege1 = (base.transform.Find("Bg/P1").GetComponent("XUILabel") as IXUILabel); + this.m_Privilege2 = (base.transform.Find("Bg/P2").GetComponent("XUILabel") as IXUILabel); + this.m_Privilege3 = (base.transform.Find("Bg/P3").GetComponent("XUILabel") as IXUILabel); + this.m_QQIcon = base.transform.Find("Bg/P1/qq").gameObject; + this.m_WXIcon = base.transform.Find("Bg/P1/wc").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeBehaviour.cs.meta new file mode 100644 index 00000000..055fa8cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 217c1d20c324aeb47b4a4c2199fa381d +timeCreated: 1611403414 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeView.cs b/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeView.cs new file mode 100644 index 00000000..d5671f10 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeView.cs @@ -0,0 +1,68 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQQWXGameCenterPrivilegeView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/PlatformAbility/QQWXGameCenterLaunchDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseBtnClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + string[] array = null; + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + base.uiBehaviour.m_Title.SetText(XSingleton.singleton.GetString("GAMECENTER_QQ_TITLE")); + array = XSingleton.singleton.GetAndSeparateValue("QQGameCenterLevelReward", XGlobalConfig.SequenceSeparator); + } + else + { + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag2) + { + base.uiBehaviour.m_Title.SetText(XSingleton.singleton.GetString("GAMECENTER_WX_TITLE")); + array = XSingleton.singleton.GetAndSeparateValue("WXGameCenterLevelReward", XGlobalConfig.SequenceSeparator); + } + } + int num = (array != null && array.Length == 2) ? int.Parse(array[1]) : 0; + base.uiBehaviour.m_Privilege1.SetText(XSingleton.singleton.GetString("GAMECENTER_P1")); + base.uiBehaviour.m_Privilege2.SetText(XSingleton.singleton.GetString("GAMECENTER_P2")); + base.uiBehaviour.m_Privilege3.SetText(XStringDefineProxy.GetString("GAMECENTER_P3", new object[] + { + num + })); + base.uiBehaviour.m_QQIcon.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + base.uiBehaviour.m_WXIcon.SetActive(XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + } + + private bool OnCloseBtnClicked(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeView.cs.meta b/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeView.cs.meta new file mode 100644 index 00000000..53081327 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQQWXGameCenterPrivilegeView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c813831d7b8150468323096916d4312 +timeCreated: 1611403602 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingBehaviour.cs b/Client/Assets/Scripts/XMainClient/XQualifyingBehaviour.cs new file mode 100644 index 00000000..000c0b82 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingBehaviour.cs @@ -0,0 +1,126 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIButton m_Help; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUISprite m_UnOpen2V2; + + public Transform m_Bg; + + public IXUIButton m_ShopBtn; + + public IXUIButton m_RankBtn; + + public IXUIButton m_BattleRecordBtn; + + public IXUIButton m_TrainBtn; + + public IXUITexture m_PointRewardBtn; + + public Transform m_PointRewardRedPoint; + + public IXUIButton m_RankRewardBtn; + + public IXUIButton m_Match1V1Btn; + + public IXUILabel m_Match1V1BtnLabel; + + public IXUIButton m_Match2V2Btn; + + public IXUILabel m_Match2V2BtnLabel; + + public IXUIButton m_TeamBtn; + + public Transform m_Message; + + public IXUILabel m_TotalRecords; + + public IXUILabel m_WinRecord; + + public IXUILabel m_LoseRecord; + + public IXUILabel m_WinRate; + + public IXUILabel m_CurrentRank; + + public IXUILabel m_RankEndTips; + + public Transform m_ChallengeFrame; + + public IXUITexture m_Tier; + + public IXUILabel m_WinOfPoint; + + public XNumberTween m_NumberTween; + + public IXUILabelSymbol m_ChallengeTip; + + public IXUILabel m_ChallengeTipText; + + public GameObject m_FxFireworkGo; + + public XUIPool m_RankTabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUICheckBox m_RankTypeAll; + + public XQualifyingRankWindow m_RankWindow; + + public XQualifyingRankRewardWindow m_RankRewardWindow; + + public XQualifyingPointRewardWindow m_PointRewardWindow; + + public GameObject m_BattleRecordFrame; + + private void Awake() + { + this.m_Bg = base.transform.Find("Bg"); + this.m_Close = (this.m_Bg.Find("Close").GetComponent("XUIButton") as IXUIButton); + this.m_Help = (this.m_Bg.Find("Help").GetComponent("XUIButton") as IXUIButton); + this.m_BattleRecordFrame = this.m_Bg.Find("BattleRecordFrame").gameObject; + Transform transform = this.m_Bg.Find("Bg/Tabs/TabTpl"); + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_UnOpen2V2 = (this.m_Bg.Find("Bg/2V2UnOpen").GetComponent("XUISprite") as IXUISprite); + Transform transform2 = this.m_Bg.Find("Bg/BtnList"); + this.m_ShopBtn = (transform2.Find("ShopBtn").GetComponent("XUIButton") as IXUIButton); + this.m_RankBtn = (transform2.Find("RankBtn").GetComponent("XUIButton") as IXUIButton); + this.m_BattleRecordBtn = (transform2.Find("BattleRecordBtn").GetComponent("XUIButton") as IXUIButton); + this.m_TrainBtn = (transform2.Find("TrainingBtn").GetComponent("XUIButton") as IXUIButton); + this.m_PointRewardBtn = (transform2.Find("PointRewardBtn").GetComponent("XUITexture") as IXUITexture); + this.m_PointRewardRedPoint = transform2.Find("PointRewardBtn/RedPoint"); + this.m_RankRewardBtn = (transform2.Find("RankRewardBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Match1V1Btn = (transform2.Find("Match1V1Btn").GetComponent("XUIButton") as IXUIButton); + this.m_Match1V1BtnLabel = (transform2.Find("Match1V1Btn/Text").GetComponent("XUILabel") as IXUILabel); + this.m_Match2V2Btn = (transform2.Find("Match2V2Btn").GetComponent("XUIButton") as IXUIButton); + this.m_Match2V2BtnLabel = (transform2.Find("Match2V2Btn/Text").GetComponent("XUILabel") as IXUILabel); + this.m_TeamBtn = (transform2.Find("TeamBtn").GetComponent("XUIButton") as IXUIButton); + this.m_Message = this.m_Bg.Find("Bg/Message"); + this.m_TotalRecords = (this.m_Message.Find("Records/TotalRecords/Num").GetComponent("XUILabel") as IXUILabel); + this.m_WinRecord = (this.m_Message.Find("Records/Win/Num").GetComponent("XUILabel") as IXUILabel); + this.m_LoseRecord = (this.m_Message.Find("Records/Lose/Num").GetComponent("XUILabel") as IXUILabel); + this.m_WinRate = (this.m_Message.Find("Records/Rate/Num").GetComponent("XUILabel") as IXUILabel); + this.m_CurrentRank = (this.m_Message.Find("CurrentRank/Num").GetComponent("XUILabel") as IXUILabel); + this.m_RankEndTips = (this.m_Message.Find("Tip").GetComponent("XUILabel") as IXUILabel); + this.m_ChallengeFrame = this.m_Bg.Find("Bg/ChallengeFrame"); + this.m_Tier = (this.m_ChallengeFrame.Find("Tier").GetComponent("XUITexture") as IXUITexture); + this.m_WinOfPoint = (this.m_ChallengeFrame.Find("WinOfPoint/Num").GetComponent("XUILabel") as IXUILabel); + this.m_ChallengeTip = (this.m_ChallengeFrame.Find("Tip").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_ChallengeTipText = (this.m_ChallengeTip.gameObject.transform.Find("T").GetComponent("XUILabel") as IXUILabel); + this.m_FxFireworkGo = this.m_ChallengeFrame.Find("m_FxFirework").gameObject; + this.m_FxFireworkGo.SetActive(false); + this.m_RankWindow = new XQualifyingRankWindow(this.m_Bg.Find("RankFrame").gameObject); + this.m_RankRewardWindow = new XQualifyingRankRewardWindow(this.m_Bg.Find("RankRewardFrame").gameObject); + this.m_PointRewardWindow = new XQualifyingPointRewardWindow(this.m_Bg.Find("PointRewardFrame").gameObject); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingBehaviour.cs.meta new file mode 100644 index 00000000..a4953ecf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 876dd25e8acb34a4ab7b5f2333e35394 +timeCreated: 1611404078 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs b/Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs new file mode 100644 index 00000000..415b8790 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs @@ -0,0 +1,63 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingChallengeRecordWindow + { + public bool IsVisible + { + get + { + return this.m_Go.activeSelf; + } + } + + public GameObject m_Go; + + public XUIPool m_RecordPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public IXUILabel MatchTotalWin; + + public IXUILabel MatchTotalLose; + + public IXUILabel RateOfTotalWin; + + public IXUILabel MaxConsecutiveWin; + + public IXUILabel MaxConsecutiveLose; + + public List RateOfWinProf = new List(); + + public XQualifyingChallengeRecordWindow(GameObject go) + { + this.m_Go = go; + this.m_Close = (go.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_RecordPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/RecordTpl").gameObject, 20u, false); + this.m_ScrollView = (go.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.MatchTotalWin = (go.transform.Find("Bg/Bg/Message/Win/Label").GetComponent("XUILabel") as IXUILabel); + this.MatchTotalLose = (go.transform.Find("Bg/Bg/Message/Lose/Label").GetComponent("XUILabel") as IXUILabel); + this.RateOfTotalWin = (go.transform.Find("Bg/Bg/Message/Rate/Label").GetComponent("XUILabel") as IXUILabel); + this.MaxConsecutiveWin = (go.transform.Find("Bg/Bg/Message/ConsWin/Label").GetComponent("XUILabel") as IXUILabel); + this.MaxConsecutiveLose = (go.transform.Find("Bg/Bg/Message/ConsLose/Label").GetComponent("XUILabel") as IXUILabel); + Transform transform = go.transform.Find("Bg/Bg/Message/WinRate"); + for (int i = 0; i < transform.childCount; i++) + { + IXUILabel item = transform.Find(string.Format("Rate{0}/Label", i)).GetComponent("XUILabel") as IXUILabel; + this.RateOfWinProf.Add(item); + } + } + + public void SetVisible(bool v) + { + this.m_Go.SetActive(v); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs.meta new file mode 100644 index 00000000..01d57360 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingChallengeRecordWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: abc4dd4611282784e9eb8a3b031664ce +timeCreated: 1611404308 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingDocument.cs b/Client/Assets/Scripts/XMainClient/XQualifyingDocument.cs new file mode 100644 index 00000000..8be63147 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingDocument.cs @@ -0,0 +1,791 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingDocument : XDocComponent + { + public override uint ID + { + get + { + return XQualifyingDocument.uuID; + } + } + + public uint MatchTime + { + get + { + return this._matchTime; + } + } + + public uint CurrentTime + { + get + { + return this._currentTime; + } + } + + public bool IsMatching + { + get + { + return this._isMatching; + } + } + + public uint RankRewardLeftTime + { + get + { + return this._rankRewardLeftTime; + } + } + + public float RewardSignTime + { + get + { + return this._rewardSignTime; + } + } + + public uint MatchTotalCount + { + get + { + return this._matchTotalWin[this.CurrentSelect] + this._matchTotalLose[this.CurrentSelect] + this._matchTotalDraw[this.CurrentSelect]; + } + } + + public uint MatchTotalWin + { + get + { + return this._matchTotalWin[this.CurrentSelect]; + } + } + + public uint MatchTotalDraw + { + get + { + return this._matchTotalDraw[this.CurrentSelect]; + } + } + + public uint MatchTotalLose + { + get + { + return this._matchTotalLose[this.CurrentSelect]; + } + } + + public uint ContinueWin + { + get + { + return this._continueWin; + } + } + + public uint ContinueLose + { + get + { + return this._continueLose; + } + } + + public List ProfessionWin + { + get + { + return this._professionWin; + } + } + + public uint MaxRewardRank + { + get + { + return XQualifyingDocument._maxRewardRank; + } + } + + public uint MatchTotalPercent + { + get + { + bool flag = this.MatchTotalCount == 0u; + uint result; + if (flag) + { + result = 0u; + } + else + { + bool flag2 = this.MatchTotalWin == 0u; + if (flag2) + { + result = 0u; + } + else + { + result = Math.Max(1u, 100u * this.MatchTotalWin / this.MatchTotalCount); + } + } + return result; + } + } + + public uint MatchRank + { + get + { + return this._matchRank[this.CurrentSelect]; + } + } + + public uint WinStreak + { + get + { + return this._winStreak; + } + } + + public uint WinOfPoint + { + get + { + return this._winOfPoint[this.CurrentSelect]; + } + } + + public int LastWinOfPoint + { + get + { + return this._lastWinOfPoint[this.CurrentSelect]; + } + set + { + this._lastWinOfPoint[this.CurrentSelect] = value; + } + } + + public uint LeftFirstRewardCount + { + get + { + return this._leftFirstRewardCount; + } + } + + public List GameRecords + { + get + { + return this._gameRecords; + } + } + + public List GameRecords2V2 + { + get + { + return this._gameRecords2V2; + } + } + + public List PointRewardList + { + get + { + return this._pointRewardList; + } + } + + public List RankRewardList + { + get + { + return this._rankRewardList; + } + } + + public List> RankList + { + get + { + return this._rankList; + } + } + + public bool RedPoint + { + get + { + return this._redPoint; + } + set + { + this._redPoint = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("QualifyingDocument"); + + public static readonly int DATACOUNT = 2; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private uint _matchTime = 0u; + + private uint _currentTime = 0u; + + private bool _isMatching = false; + + private uint _rankRewardLeftTime = 0u; + + private float _rewardSignTime; + + private uint[] _matchTotalWin = new uint[XQualifyingDocument.DATACOUNT]; + + private uint[] _matchTotalDraw = new uint[XQualifyingDocument.DATACOUNT]; + + private uint[] _matchTotalLose = new uint[XQualifyingDocument.DATACOUNT]; + + private uint _continueWin = 0u; + + private uint _continueLose = 0u; + + private List _professionWin = new List(); + + private uint[] _matchRank = new uint[XQualifyingDocument.DATACOUNT]; + + private static uint _maxRewardRank; + + private uint _winStreak = 0u; + + private uint[] _winOfPoint = new uint[XQualifyingDocument.DATACOUNT]; + + private int[] _lastWinOfPoint = new int[XQualifyingDocument.DATACOUNT]; + + private uint _leftFirstRewardCount = 0u; + + private List _gameRecords = new List(); + + private List _gameRecords2V2 = new List(); + + private float _beginTime = 0f; + + private static PkPointTable _pkPointTable = new PkPointTable(); + + private static PkRankTable _pkRankTable = new PkRankTable(); + + private List _pointRewardList = new List(); + + private List _rankRewardList = new List(); + + private List> _rankList = new List>(); + + public List LastSeasonRankList = new List(); + + private bool _redPoint = false; + + public List PkInfoList = new List(); + + private bool _lastSceneIsQualifying = false; + + public int CurrentSelect = 0; + + public void SetCurrentSys(int num) + { + this.CurrentSelect = num; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(true); + } + } + + public void InitFxNum() + { + for (int i = 0; i < this._lastWinOfPoint.Length; i++) + { + this._lastWinOfPoint[i] = -1000; + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XQualifyingDocument.AsyncLoader.AddTask("Table/PkPointReward", XQualifyingDocument._pkPointTable, false); + XQualifyingDocument.AsyncLoader.AddTask("Table/PkRankReward", XQualifyingDocument._pkRankTable, false); + XQualifyingDocument.AsyncLoader.Execute(callback); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + DlgBase.singleton.HidePkLoading(); + DlgBase.singleton.HidePkLoading(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && this._lastSceneIsQualifying; + if (flag) + { + this._lastSceneIsQualifying = false; + this.SendQueryPKInfo(); + } + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_PK || XSingleton.singleton.SceneType == SceneType.SCENE_PKTWO; + if (flag2) + { + this._lastSceneIsQualifying = true; + } + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_PKTWO; + if (flag3) + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag4 = !XSingleton.singleton.bSpectator && !specificDocument.bInTeam; + if (flag4) + { + XSingleton.singleton.CacheUI(XSysDefine.XSys_Qualifying, EXStage.Hall); + } + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this._isMatching = false; + } + + public void SendBeginMatch() + { + bool flag = this.CurrentSelect == 0; + if (flag) + { + RpcC2M_PkReqC2M rpcC2M_PkReqC2M = new RpcC2M_PkReqC2M(); + rpcC2M_PkReqC2M.oArg.type = PkReqType.PKREQ_ADDPK; + XSingleton.singleton.Send(rpcC2M_PkReqC2M); + } + else + { + bool isMatching = this.IsMatching; + if (isMatching) + { + RpcC2M_PkReqC2M rpcC2M_PkReqC2M2 = new RpcC2M_PkReqC2M(); + rpcC2M_PkReqC2M2.oArg.type = PkReqType.PKREQ_REMOVEPK; + XSingleton.singleton.Send(rpcC2M_PkReqC2M2); + } + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ReqMatchStateChange(KMatchType.KMT_PKTWO, KMatchOp.KMATCH_OP_START, false); + } + } + + public void SendEndMatch() + { + bool flag = this.CurrentSelect == 0; + if (flag) + { + RpcC2M_PkReqC2M rpcC2M_PkReqC2M = new RpcC2M_PkReqC2M(); + rpcC2M_PkReqC2M.oArg.type = PkReqType.PKREQ_REMOVEPK; + XSingleton.singleton.Send(rpcC2M_PkReqC2M); + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ReqMatchStateChange(KMatchType.KMT_PKTWO, KMatchOp.KMATCH_OP_STOP, false); + } + } + + public void SendQueryPKInfo() + { + RpcC2M_PkReqC2M rpcC2M_PkReqC2M = new RpcC2M_PkReqC2M(); + rpcC2M_PkReqC2M.oArg.type = PkReqType.PKREQ_ALLINFO; + XSingleton.singleton.Send(rpcC2M_PkReqC2M); + } + + public void SendQueryRankInfo(uint profession) + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + bool flag = this.CurrentSelect == 0; + if (flag) + { + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.PkRealTimeRank); + } + else + { + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.PkRank2v2); + } + rpcC2M_ClientQueryRankListNtf.oArg.TimeStamp = 1u; + rpcC2M_ClientQueryRankListNtf.oArg.profession = profession; + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void SendFetchPointReward(uint index) + { + RpcC2M_PkReqC2M rpcC2M_PkReqC2M = new RpcC2M_PkReqC2M(); + rpcC2M_PkReqC2M.oArg.type = PkReqType.PKREQ_FETCHPOINTREWARD; + rpcC2M_PkReqC2M.oArg.index = index; + XSingleton.singleton.Send(rpcC2M_PkReqC2M); + } + + public void SetQulifyingRewardCount(PkRecord data) + { + bool flag = data == null; + if (!flag) + { + this._leftFirstRewardCount = data.rewardcounttoday; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Qualifying, true); + } + } + + public void SetQualifyingInfo(QueryPkInfoRes oRes) + { + this._matchTotalWin[0] = oRes.info.histweek.win; + this._matchTotalDraw[0] = oRes.info.histweek.draw; + this._matchTotalLose[0] = oRes.info.histweek.lose; + this._matchTotalWin[1] = oRes.info.info2v2.seasondata.win; + this._matchTotalDraw[1] = oRes.info.info2v2.seasondata.draw; + this._matchTotalLose[1] = oRes.info.info2v2.seasondata.lose; + this._matchRank[0] = oRes.rank1v1; + this._matchRank[1] = oRes.rank2v2; + this._winOfPoint[0] = oRes.info.point; + this._winOfPoint[1] = oRes.info.info2v2.point; + this._leftFirstRewardCount = oRes.rewardcount; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Qualifying, true); + this._winStreak = oRes.info.histweek.continuewin; + this._rankRewardLeftTime = oRes.rankrewardleftT; + this._rewardSignTime = Time.time; + XQualifyingDocument._maxRewardRank = XQualifyingDocument._pkRankTable.Table[XQualifyingDocument._pkRankTable.Table.Length - 1].rank[1]; + this.RedPoint = false; + this._pointRewardList.Clear(); + for (int i = 0; i < XQualifyingDocument._pkPointTable.Table.Length; i++) + { + PointRewardStatus pointRewardStatus = new PointRewardStatus(); + pointRewardStatus.point = XQualifyingDocument._pkPointTable.Table[i].point; + pointRewardStatus.reward = XQualifyingDocument._pkPointTable.Table[i].reward; + bool flag = i < oRes.info.boxtaken.Count; + if (flag) + { + pointRewardStatus.status = oRes.info.boxtaken[i]; + bool flag2 = oRes.info.boxtaken[i] == 1u; + if (flag2) + { + this.RedPoint = true; + } + } + else + { + pointRewardStatus.status = 0u; + } + this._pointRewardList.Add(pointRewardStatus); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Qualifying, true); + this._rankRewardList.Clear(); + for (int j = 0; j < XQualifyingDocument._pkRankTable.Table.Length; j++) + { + RankRewardStatus rankRewardStatus = new RankRewardStatus(); + rankRewardStatus.rank = XQualifyingDocument._pkRankTable.Table[j].rank[1]; + rankRewardStatus.reward = XQualifyingDocument._pkRankTable.Table[j].reward; + rankRewardStatus.isRange = (XQualifyingDocument._pkRankTable.Table[j].rank[0] != XQualifyingDocument._pkRankTable.Table[j].rank[1]); + this._rankRewardList.Add(rankRewardStatus); + } + this._gameRecords.Clear(); + for (int k = oRes.info.records.Count - 1; k >= 0; k--) + { + this._gameRecords.Add(oRes.info.records[k]); + } + this.Set2V2BattleRecord(oRes.info.info2v2.recs); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.Refresh(false); + } + } + + public void Set2V2BattleRecord(List list) + { + this._gameRecords2V2.Clear(); + for (int i = 0; i < list.Count; i++) + { + BattleRecordGameInfo battleRecordGameInfo = new BattleRecordGameInfo(); + for (int j = 0; j < list[i].myside.Count; j++) + { + bool flag = list[i].myside[j].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + battleRecordGameInfo.left.Insert(0, this.GetOnePlayerInfo(list[i].myside[j])); + } + else + { + battleRecordGameInfo.left.Add(this.GetOnePlayerInfo(list[i].myside[j])); + } + } + for (int k = 0; k < list[i].opside.Count; k++) + { + battleRecordGameInfo.right.Add(this.GetOnePlayerInfo(list[i].opside[k])); + } + battleRecordGameInfo.result = (HeroBattleOver)XFastEnumIntEqualityComparer.ToInt(list[i].ret); + battleRecordGameInfo.point2V2 = list[i].cpoint; + this._gameRecords2V2.Add(battleRecordGameInfo); + } + } + + public BattleRecordPlayerInfo GetOnePlayerInfo(PvpRoleBrief data) + { + return new BattleRecordPlayerInfo + { + name = data.rolename, + profression = data.roleprofession, + roleID = data.roleid + }; + } + + public int GetIconIndex(uint point) + { + int result = 0; + for (int i = 0; i < XQualifyingDocument._pkPointTable.Table.Length; i++) + { + bool flag = point > XQualifyingDocument._pkPointTable.Table[i].point; + if (flag) + { + result = XQualifyingDocument._pkPointTable.Table[i].IconIndex; + } + } + return result; + } + + public void SetChallengeRecordInfo(QueryPkInfoRes oRes) + { + this._continueWin = oRes.info.histweek.continuewin; + this._continueLose = oRes.info.histweek.continuelose; + this._professionWin.Clear(); + for (int i = 0; i < oRes.info.prowin.Count; i++) + { + uint num = oRes.info.prowin[i] + oRes.info.prolose[i]; + bool flag = num == 0u; + if (flag) + { + this._professionWin.Add(0u); + } + else + { + bool flag2 = oRes.info.prowin[i] == 0u; + if (flag2) + { + this._professionWin.Add(0u); + } + else + { + this._professionWin.Add(Math.Max(1u, 100u * oRes.info.prowin[i] / num)); + } + } + } + } + + public void SetMatchTime(uint time, bool status) + { + this._matchTime = time; + this._isMatching = status; + this._currentTime = 0u; + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = !this.IsMatching; + if (flag2) + { + DlgBase.singleton.SetBeginMatchButton(XStringDefineProxy.GetString("BEGIN_MATCH")); + } + else + { + DlgBase.singleton.SetBeginMatchButton(string.Format("{0}...\n{1}", XStringDefineProxy.GetString("MATCHING"), XStringDefineProxy.GetString("LEFT_MATCH_TIME", new object[] + { + this.CurrentTime, + this.MatchTime + }))); + this._beginTime = Time.time; + } + } + } + + public void SetMatchButtonTime() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + this._currentTime = (uint)(Time.time - this._beginTime); + DlgBase.singleton.SetBeginMatchButton(string.Format("{0}...\n{1}", XStringDefineProxy.GetString("MATCHING"), XStringDefineProxy.GetString("LEFT_MATCH_TIME", new object[] + { + this.CurrentTime, + this.MatchTime + }))); + } + } + + public int PointRewardCompare(int reward1, int reward2) + { + int num = (int)this.PointRewardList[reward1].status; + int num2 = (int)this.PointRewardList[reward2].status; + bool flag = num == 2; + if (flag) + { + num = -1; + } + bool flag2 = num2 == 2; + if (flag2) + { + num2 = -1; + } + bool flag3 = num2 == num; + int result; + if (flag3) + { + result = reward1.CompareTo(reward2); + } + else + { + result = num2.CompareTo(num); + } + return result; + } + + public void RefreshPointReward(uint index) + { + this._pointRewardList[(int)index].status = 2u; + this.RedPoint = false; + for (int i = 0; i < XQualifyingDocument._pkPointTable.Table.Length; i++) + { + bool flag = this._pointRewardList[i].status == 1u; + if (flag) + { + this.RedPoint = true; + break; + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Qualifying, true); + bool flag2 = !DlgBase.singleton.IsVisible(); + if (!flag2) + { + DlgBase.singleton.uiBehaviour.m_PointRewardRedPoint.gameObject.SetActive(this.RedPoint); + DlgBase.singleton.SetupPointRewardWindow(false); + } + } + + public void OnGetRankInfo(ClientQueryRankListRes oRes, int profession) + { + this._rankList[profession].Clear(); + for (int i = 0; i < oRes.RankList.RankData.Count; i++) + { + QualifyingRankInfo qualifyingRankInfo = new QualifyingRankInfo(); + qualifyingRankInfo.uid = oRes.RankList.RankData[i].RoleId; + qualifyingRankInfo.rank = (uint)(i + 1); + qualifyingRankInfo.level = oRes.RankList.RankData[i].RoleLevel; + qualifyingRankInfo.name = oRes.RankList.RankData[i].RoleName; + qualifyingRankInfo.point = oRes.RankList.RankData[i].pkpoint; + this._rankList[profession].Add(qualifyingRankInfo); + } + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool isVisible = DlgBase.singleton.uiBehaviour.m_RankWindow.IsVisible; + if (isVisible) + { + DlgBase.singleton.SetupRankWindow(this.RankList[profession]); + } + } + } + + public void OnGetLastSeasonRankInfo(ClientQueryRankListRes oRes) + { + bool flag = oRes.RankList == null; + if (!flag) + { + this.LastSeasonRankList.Clear(); + for (int i = 0; i < oRes.RankList.RankData.Count; i++) + { + QualifyingRankInfo qualifyingRankInfo = new QualifyingRankInfo(); + qualifyingRankInfo.uid = oRes.RankList.RankData[i].RoleId; + qualifyingRankInfo.rank = (uint)(i + 1); + qualifyingRankInfo.level = oRes.RankList.RankData[i].RoleLevel; + qualifyingRankInfo.name = oRes.RankList.RankData[i].RoleName; + qualifyingRankInfo.point = oRes.RankList.RankData[i].pkpoint; + bool flag2 = oRes.RankList.RankData[i].pkextradata != null; + if (flag2) + { + qualifyingRankInfo.totalNum = oRes.RankList.RankData[i].pkextradata.joincount; + } + this.LastSeasonRankList.Add(qualifyingRankInfo); + } + } + } + + public void SetPkRoleInfo(List otherInfo) + { + this.PkInfoList.Clear(); + int num = -1; + for (int i = 0; i < otherInfo.Count; i++) + { + PkInfo pkInfo = new PkInfo(); + pkInfo.brief = otherInfo[i].rolebrief; + pkInfo.lose = otherInfo[i].pkrec.lose; + pkInfo.point = otherInfo[i].pkrec.point; + pkInfo.records = otherInfo[i].pkrec.records; + pkInfo.win = otherInfo[i].pkrec.win; + bool flag = pkInfo.brief.roleID != XSingleton.singleton.XPlayerData.EntityID; + if (flag) + { + this.PkInfoList.Add(pkInfo); + } + else + { + bool flag2 = i < 2; + if (flag2) + { + num = 1 - i; + } + else + { + num = 5 - i; + } + this.PkInfoList.Insert(0, pkInfo); + } + } + bool flag3 = num != -1 && num < otherInfo.Count; + if (flag3) + { + int num2 = 2; + while (num2 < 4 && num2 < this.PkInfoList.Count) + { + bool flag4 = this.PkInfoList[num2].brief.roleID == otherInfo[num].rolebrief.roleID; + if (flag4) + { + PkInfo item = this.PkInfoList[num2]; + this.PkInfoList.RemoveAt(num2); + this.PkInfoList.Insert(1, item); + break; + } + num2++; + } + } + } + + public static void OnPkHyperLinkClick(string param) + { + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingDocument.cs.meta new file mode 100644 index 00000000..008c789a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9a8ad44f1cf65254e8e016fb66e3bb4a +timeCreated: 1611404200 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankBehavior.cs b/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankBehavior.cs new file mode 100644 index 00000000..5fadf72a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankBehavior.cs @@ -0,0 +1,27 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingLastSeasonRankBehavior : DlgBehaviourBase + { + public XUIPool m_RolePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public GameObject m_TabTpl; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_RolePool.SetupPool(base.transform.Find("Bg/Bg/ScrollView").gameObject, base.transform.Find("Bg/Bg/ScrollView/RoleTpl").gameObject, 100u, false); + this.m_ScrollView = (base.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_TabTpl = base.transform.Find("Tabs/TabTpl").gameObject; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankBehavior.cs.meta new file mode 100644 index 00000000..3d301a54 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7c23a6f4fb20b074c89b436d17f5bd96 +timeCreated: 1611403996 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankDlg.cs b/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankDlg.cs new file mode 100644 index 00000000..a6f3f255 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankDlg.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XQualifyingLastSeasonRankDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/XQualifyingLastSeasonRankDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + protected override void Init() + { + base.Init(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseDlg)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + public void SetupRankWindow(List list) + { + base.uiBehaviour.m_RolePool.FakeReturnAll(); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_RolePool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject.transform.Find("Bg/Point").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("Bg/RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = list[i].rank > 3u; + if (flag) + { + ixuilabel.SetText(string.Format("No.{0}", list[i].rank)); + } + else + { + ixuilabel.SetText(""); + } + ixuilabel2.SetText(string.Format("Lv.{0}", list[i].level)); + ixuilabel3.SetText(list[i].name); + ixuilabel4.SetText(list[i].point.ToString()); + ixuisprite.SetSprite(string.Format("N{0}", list[i].rank)); + ixuilabel3.ID = list[i].uid; + bool flag2 = list[i].uid == 0UL; + if (flag2) + { + ixuilabel3.RegisterLabelClickEventHandler(null); + } + else + { + ixuilabel3.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnRankItemClicked)); + } + gameObject.transform.localPosition = base.uiBehaviour.m_RolePool.TplPos - new Vector3(0f, (float)(i * base.uiBehaviour.m_RolePool.TplHeight)); + } + base.uiBehaviour.m_RolePool.ActualReturnAll(false); + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + + private void OnRankItemClicked(IXUILabel label) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(label.ID, false); + } + + private bool OnCloseDlg(IXUIButton button) + { + this.SetVisible(false, true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankDlg.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankDlg.cs.meta new file mode 100644 index 00000000..b35d54a1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingLastSeasonRankDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b085182fcf5fc784f98ec65b91212731 +timeCreated: 1611404351 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs b/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs new file mode 100644 index 00000000..fc5acdd6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs @@ -0,0 +1,45 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingPointRewardWindow + { + public bool IsVisible + { + get + { + return this.m_Go.activeSelf; + } + } + + public GameObject m_Go; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public IXUILabel m_CurrentPoint; + + public XQualifyingPointRewardWindow(GameObject go) + { + this.m_Go = go; + this.m_Close = (go.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_RewardPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/RewardTpl").gameObject, 20u, false); + this.m_ItemPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/Item").gameObject, 50u, false); + this.m_ScrollView = (go.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_CurrentPoint = (go.transform.Find("Bg/CurrentPoint/Text").GetComponent("XUILabel") as IXUILabel); + } + + public void SetVisible(bool v) + { + this.m_Go.SetActive(v); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs.meta new file mode 100644 index 00000000..73385379 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingPointRewardWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6da5451860ec2fd4ebc0212cb7a16ca1 +timeCreated: 1611403902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRankInfo.cs b/Client/Assets/Scripts/XMainClient/XQualifyingRankInfo.cs new file mode 100644 index 00000000..0fb0db51 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRankInfo.cs @@ -0,0 +1,29 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XQualifyingRankInfo : XBaseRankInfo + { + public uint rankScore; + + public uint profession; + + public uint totalNum; + + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XBaseRankInfo.GetUnderLineName(this.name); + this.id = data.RoleId; + this.rank = data.Rank; + this.profession = data.profession; + this.rankScore = data.pkpoint; + bool flag = data.pkextradata != null; + if (flag) + { + this.totalNum = data.pkextradata.joincount; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingRankInfo.cs.meta new file mode 100644 index 00000000..107c0184 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 937d989877676b44f9d9a1e96920f17f +timeCreated: 1611404151 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRankList.cs b/Client/Assets/Scripts/XMainClient/XQualifyingRankList.cs new file mode 100644 index 00000000..364d6e7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XQualifyingRankList : XBaseRankList + { + public XQualifyingRankList() + { + this.type = XRankType.QualifyingRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XQualifyingRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingRankList.cs.meta new file mode 100644 index 00000000..c2d71d0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f5b95e5e29e8bd408522643866455d7 +timeCreated: 1611403402 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRankRewardWindow.cs b/Client/Assets/Scripts/XMainClient/XQualifyingRankRewardWindow.cs new file mode 100644 index 00000000..5fa0b9ed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRankRewardWindow.cs @@ -0,0 +1,48 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingRankRewardWindow + { + public bool IsVisible + { + get + { + return this.m_Go.activeSelf; + } + } + + public GameObject m_Go; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public IXUILabel m_RankNum; + + public IXUILabel m_RewardLeftTime; + + public XQualifyingRankRewardWindow(GameObject go) + { + this.m_Go = go; + this.m_Close = (go.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_RewardPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/RewardTpl").gameObject, 20u, false); + this.m_ItemPool.SetupPool(go.transform.Find("Bg/Bg/ScrollView/").gameObject, go.transform.Find("Bg/Bg/ScrollView/Item").gameObject, 50u, false); + this.m_ScrollView = (go.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_RankNum = (go.transform.Find("Bg/BestRank/Text").GetComponent("XUILabel") as IXUILabel); + this.m_RewardLeftTime = (go.transform.Find("Bg/LeftTime").GetComponent("XUILabel") as IXUILabel); + } + + public void SetVisible(bool v) + { + this.m_Go.SetActive(v); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRankRewardWindow.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingRankRewardWindow.cs.meta new file mode 100644 index 00000000..2adbf4cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRankRewardWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0947ff6f8dcd33143988f0c9790d3e07 +timeCreated: 1611403153 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRankWindow.cs b/Client/Assets/Scripts/XMainClient/XQualifyingRankWindow.cs new file mode 100644 index 00000000..5c566e1d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRankWindow.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingRankWindow + { + public bool IsVisible + { + get + { + return this.m_Go.activeSelf; + } + } + + public GameObject m_Go; + + public XUIPool m_RolePool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public GameObject m_TabTpl; + + public XQualifyingRankWindow(GameObject go) + { + this.m_Go = go; + this.m_Close = (go.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_RolePool.SetupPool(go.transform.Find("Bg/Bg/ScrollView").gameObject, go.transform.Find("Bg/Bg/ScrollView/RoleTpl").gameObject, 100u, false); + this.m_ScrollView = (go.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_TabTpl = go.transform.Find("Tabs/TabTpl").gameObject; + } + + public void SetVisible(bool v) + { + this.m_Go.SetActive(v); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRankWindow.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingRankWindow.cs.meta new file mode 100644 index 00000000..953dc775 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRankWindow.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c6b46f65bfef7d42b3b271d9c5b4723 +timeCreated: 1611403895 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRecordsHandler.cs b/Client/Assets/Scripts/XMainClient/XQualifyingRecordsHandler.cs new file mode 100644 index 00000000..61a8fc2d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRecordsHandler.cs @@ -0,0 +1,190 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingRecordsHandler : DlgHandlerBase + { + public uint MatchTotalCount + { + get + { + return this.WinCount + this.DrawCount + this.LoseCount; + } + } + + public uint MatchTotalPercent + { + get + { + bool flag = this.MatchTotalCount == 0u; + uint result; + if (flag) + { + result = 0u; + } + else + { + bool flag2 = this.WinCount == 0u; + if (flag2) + { + result = 0u; + } + else + { + result = Math.Max(1u, 100u * this.WinCount / this.MatchTotalCount); + } + } + return result; + } + } + + protected override string FileName + { + get + { + return "GameSystem/QualifyRecords"; + } + } + + public uint WinCount; + + public uint DrawCount; + + public uint LoseCount; + + public uint ContinueWin; + + public uint ContinueLose; + + public List ProfessionWin = new List(); + + public List GameRecords = new List(); + + public XUIPool m_RecordPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_Close; + + public IXUIScrollView m_ScrollView; + + public IXUILabel MatchTotalWin; + + public IXUILabel MatchTotalLose; + + public IXUILabel RateOfTotalWin; + + public IXUILabel MaxConsecutiveWin; + + public IXUILabel MaxConsecutiveLose; + + public List RateOfWinProf = new List(); + + protected override void Init() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_RecordPool.SetupPool(base.transform.Find("Bg/Bg/ScrollView").gameObject, base.transform.Find("Bg/Bg/ScrollView/RecordTpl").gameObject, 20u, false); + this.m_ScrollView = (base.transform.Find("Bg/Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.MatchTotalWin = (base.transform.Find("Bg/Bg/Message/Win/Label").GetComponent("XUILabel") as IXUILabel); + this.MatchTotalLose = (base.transform.Find("Bg/Bg/Message/Lose/Label").GetComponent("XUILabel") as IXUILabel); + this.RateOfTotalWin = (base.transform.Find("Bg/Bg/Message/Rate/Label").GetComponent("XUILabel") as IXUILabel); + this.MaxConsecutiveWin = (base.transform.Find("Bg/Bg/Message/ConsWin/Label").GetComponent("XUILabel") as IXUILabel); + this.MaxConsecutiveLose = (base.transform.Find("Bg/Bg/Message/ConsLose/Label").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/Bg/Message/WinRate"); + for (int i = 0; i < transform.childCount; i++) + { + IXUILabel item = transform.Find(string.Format("Rate{0}", i)).GetComponent("XUILabel") as IXUILabel; + this.RateOfWinProf.Add(item); + } + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public void Refresh() + { + bool flag = !base.PanelObject.activeSelf; + if (flag) + { + base.SetVisible(true); + } + this.MatchTotalWin.SetText(this.WinCount.ToString()); + this.MatchTotalLose.SetText(this.LoseCount.ToString()); + this.RateOfTotalWin.SetText(this.MatchTotalPercent.ToString() + "%"); + this.MaxConsecutiveWin.SetText(this.ContinueWin.ToString()); + this.MaxConsecutiveLose.SetText(this.ContinueLose.ToString()); + for (int i = 0; i < this.RateOfWinProf.Count; i++) + { + bool flag2 = i >= XGame.RoleCount || i >= this.ProfessionWin.Count; + if (flag2) + { + this.RateOfWinProf[i].gameObject.SetActive(false); + } + else + { + this.RateOfWinProf[i].gameObject.SetActive(true); + this.RateOfWinProf[i].SetText(this.ProfessionWin[i].ToString() + "%"); + } + } + this.m_RecordPool.FakeReturnAll(); + for (int j = 0; j < this.GameRecords.Count; j++) + { + GameObject gameObject = this.m_RecordPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("OpponentName").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("Avatar").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = gameObject.transform.Find("Status").GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = gameObject.transform.Find("Reward").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + ixuilabel.SetText(this.GameRecords[j].name); + ixuisprite.SetSprite(XSingleton.singleton.GetProfIcon((int)this.GameRecords[j].profession)); + switch (this.GameRecords[j].result) + { + case PkResultType.PkResult_Win: + ixuisprite2.SetSprite("jjc-pws-win"); + break; + case PkResultType.PkResult_Lose: + ixuisprite2.SetSprite("jjc-pws-lose"); + break; + case PkResultType.PkResult_Draw: + ixuisprite2.SetSprite("jjc-pws-draw"); + break; + } + ixuilabelSymbol.InputText = XStringDefineProxy.GetString("MATCH_RECORDS_REWARD", new object[] + { + (this.GameRecords[j].point < 0) ? "" : "+", + this.GameRecords[j].point, + XLabelSymbolHelper.FormatSmallIcon(21), + this.GameRecords[j].honorpoint + }); + gameObject.transform.localPosition = this.m_RecordPool.TplPos - new Vector3(0f, (float)(j * this.m_RecordPool.TplHeight)); + } + this.m_RecordPool.ActualReturnAll(false); + this.m_ScrollView.ResetPosition(); + } + + private bool OnCloseClicked(IXUIButton button) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingRecordsHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingRecordsHandler.cs.meta new file mode 100644 index 00000000..3d9b6206 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingRecordsHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9062f630f193625488f8738643f94fa5 +timeCreated: 1611404138 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingView.cs b/Client/Assets/Scripts/XMainClient/XQualifyingView.cs new file mode 100644 index 00000000..3a94c754 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingView.cs @@ -0,0 +1,717 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQualifyingView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/QualifierDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Qualifying); + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XQualifyingDocument _doc = null; + + private uint _numTimeToken; + + private uint _fxTimeToken; + + private string _texStr1; + + private string _texStr2; + + private GuildQualifierHandler m_handler; + + private XQualifyingRecordsHandler m_QualifyingRecordsHandler = null; + + private BattleRecordHandler m_BattleRecord2V2Handler = null; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XQualifyingDocument.uuID); + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag) + { + this._doc.CurrentSelect = 0; + } + base.uiBehaviour.m_NumberTween = XNumberTween.Create(base.uiBehaviour.m_WinOfPoint); + base.uiBehaviour.m_NumberTween.tweenDuaration = 1.5f; + this.m_handler = DlgHandlerBase.EnsureCreate(ref this.m_handler, base.uiBehaviour.m_Bg, false, null); + DlgHandlerBase.EnsureCreate(ref this.m_BattleRecord2V2Handler, base.uiBehaviour.m_BattleRecordFrame, null, false); + this.SetRankTab(); + this.SetupTab(); + } + + public void RefreshGuildQualifier() + { + XGuildQualifierDocument specificDocument = XDocuments.GetSpecificDocument(XGuildQualifierDocument.uuID); + bool serverActive = specificDocument.ServerActive; + if (serverActive) + { + bool flag = !this.m_handler.IsVisible(); + if (flag) + { + this.m_handler.SetVisible(true); + } + this.m_handler.RefreshData(); + } + else + { + this.m_handler.SetVisible(false); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_Help.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnHelpClicked)); + base.uiBehaviour.m_UnOpen2V2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnUnOpenBtnClick)); + base.uiBehaviour.m_ShopBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnShopClicked)); + base.uiBehaviour.m_RankBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankBoardClicked)); + base.uiBehaviour.m_BattleRecordBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnChallengeRecordClicked)); + base.uiBehaviour.m_TrainBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTrainClicked)); + base.uiBehaviour.m_PointRewardBtn.RegisterLabelClickEventHandler(new TextureClickEventHandler(this.OnChestClicked)); + base.uiBehaviour.m_RankRewardBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankRewardClicked)); + base.uiBehaviour.m_Match1V1Btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBeginMatchClicked)); + base.uiBehaviour.m_Match2V2Btn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBeginMatchClicked)); + base.uiBehaviour.m_TeamBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnTeamBtnClick)); + base.uiBehaviour.m_RankWindow.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankWindowCloseClicked)); + base.uiBehaviour.m_RankRewardWindow.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnRankRewardWindowCloseClicked)); + base.uiBehaviour.m_PointRewardWindow.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPointRewardWindowCloseClicked)); + } + + public bool OnHelpClicked(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Qualifying); + return true; + } + + private void OnUnOpenBtnClick(IXUISprite iSp) + { + bool flag = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PK2V2_NOT_IN_CITY"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("LEVEL_REQUIRE_LEVEL"), XSingleton.singleton.GetSysOpenLevel(XSysDefine.XSys_Qualifying2)), "fece00"); + } + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.SendQueryPKInfo(); + XGuildQualifierDocument specificDocument = XDocuments.GetSpecificDocument(XGuildQualifierDocument.uuID); + specificDocument.SendGuildLadderRankInfo(); + base.uiBehaviour.m_RankWindow.SetVisible(false); + base.uiBehaviour.m_RankRewardWindow.SetVisible(false); + base.uiBehaviour.m_PointRewardWindow.SetVisible(false); + this.SetBeginMatchButton(XStringDefineProxy.GetString("BEGIN_MATCH")); + this.Refresh(false); + this.RefreshMatch2v2Btn(); + DlgBase.singleton.TryOpenUI(); + base.uiBehaviour.m_UnOpen2V2.SetVisible(!XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Qualifying2) || XSingleton.singleton.CurrentStage.Stage != EXStage.Hall); + } + + public void Refresh(bool isSwitch) + { + XSingleton.singleton.AddGreenLog("Current = ", this._doc.CurrentSelect.ToString(), null, null, null, null); + this.SetupRankRewardFrame(); + this.SetupChallengeFrame(isSwitch); + } + + private bool OnCloseClicked(IXUIButton button) + { + bool isMatching = this._doc.IsMatching; + if (isMatching) + { + this._doc.SendEndMatch(); + } + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.SetVisibleWithAnimation(false, null); + } + else + { + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + specificDocument.SendLeaveScene(); + } + return true; + } + + private bool OnRankWindowCloseClicked(IXUIButton button) + { + base.uiBehaviour.m_RankWindow.SetVisible(false); + return true; + } + + private bool OnRankRewardWindowCloseClicked(IXUIButton button) + { + base.uiBehaviour.m_RankRewardWindow.SetVisible(false); + return true; + } + + private bool OnPointRewardWindowCloseClicked(IXUIButton button) + { + base.uiBehaviour.m_PointRewardWindow.SetVisible(false); + return true; + } + + private bool OnBeginMatchClicked(IXUIButton button) + { + bool flag = this._doc.CurrentSelect == 0; + bool flag2; + if (flag) + { + flag2 = this._doc.IsMatching; + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + flag2 = (specificDocument.SoloMatchType == KMatchType.KMT_PKTWO); + } + bool flag3 = !flag2; + if (flag3) + { + bool flag4 = XTeamDocument.GoSingleBattleBeforeNeed(new ButtonClickEventHandler(this.OnBeginMatchClicked), button); + if (flag4) + { + return true; + } + this._doc.SendBeginMatch(); + } + else + { + this._doc.SendEndMatch(); + } + return true; + } + + private void SetupTab() + { + base.uiBehaviour.m_TabPool.ReturnAll(false); + GameObject gameObject = base.uiBehaviour.m_TabPool.FetchGameObject(false); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = 0UL; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClick)); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XSingleton.singleton.GetSystemName(XSysDefine.XSys_Qualifying)); + ixuilabel2.SetText(XSingleton.singleton.GetSystemName(XSysDefine.XSys_Qualifying)); + ixuicheckBox.bChecked = (this._doc.CurrentSelect == 0); + } + + private bool OnTabClick(IXUICheckBox icb) + { + bool flag = !icb.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this._doc.CurrentSelect != (int)icb.ID; + if (flag2) + { + base.uiBehaviour.m_FxFireworkGo.SetActive(false); + this._doc.SetCurrentSys((int)icb.ID); + } + result = true; + } + return result; + } + + private bool OnTeamBtnClick(IXUIButton btn) + { + this.SetVisible(false, true); + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + List expeditionList = specificDocument.GetExpeditionList(TeamLevelType.TeamLevelMultiPK); + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag = expeditionList.Count > 0; + if (flag) + { + specificDocument2.SetAndMatch(expeditionList[0].DNExpeditionID); + } + return true; + } + + private bool OnTrainClicked(IXUIButton button) + { + Dictionary dictionary = new Dictionary(); + dictionary["url"] = XSingleton.singleton.GetValue("QualifierTrainURL"); + dictionary["screendir"] = "SENSOR"; + XSingleton.singleton.XPlatform.SendExtDara("open_url", Json.Serialize(dictionary)); + return true; + } + + private bool OnShopClicked(IXUIButton button) + { + DlgBase.singleton.ShowShopSystem(XSysDefine.XSys_Mall_Honer, 0UL); + return true; + } + + private bool OnRankRewardClicked(IXUIButton button) + { + base.uiBehaviour.m_RankRewardWindow.SetVisible(true); + this.SetupRankRewardWindow(); + return true; + } + + private bool OnChallengeRecordClicked(IXUIButton button) + { + bool flag = this._doc.CurrentSelect == 0; + if (flag) + { + bool flag2 = this.m_QualifyingRecordsHandler == null; + if (flag2) + { + DlgHandlerBase.EnsureCreate(ref this.m_QualifyingRecordsHandler, base.uiBehaviour.m_Bg, true, this); + } + this.m_QualifyingRecordsHandler.WinCount = this._doc.MatchTotalWin; + this.m_QualifyingRecordsHandler.DrawCount = this._doc.MatchTotalDraw; + this.m_QualifyingRecordsHandler.LoseCount = this._doc.MatchTotalLose; + this.m_QualifyingRecordsHandler.ContinueWin = this._doc.ContinueWin; + this.m_QualifyingRecordsHandler.ContinueLose = this._doc.ContinueLose; + this.m_QualifyingRecordsHandler.ProfessionWin = this._doc.ProfessionWin; + this.m_QualifyingRecordsHandler.GameRecords = this._doc.GameRecords; + this.m_QualifyingRecordsHandler.Refresh(); + } + else + { + this.m_BattleRecord2V2Handler.SetupRecord(this._doc.GameRecords2V2); + } + return true; + } + + private bool OnRankBoardClicked(IXUIButton button) + { + bool flag = this._doc.RankList.Count == 0; + if (flag) + { + for (int i = 0; i <= XGame.RoleCount; i++) + { + List item = new List(); + this._doc.RankList.Add(item); + } + } + this._doc.SendQueryRankInfo(0u); + base.uiBehaviour.m_RankWindow.SetVisible(true); + this.SetupRankWindow(this._doc.RankList[0]); + base.uiBehaviour.m_RankTypeAll.ForceSetFlag(true); + List list = ListPool.Get(); + base.uiBehaviour.m_RankTabPool.GetActiveList(list); + for (int j = 0; j < list.Count; j++) + { + IXUICheckBox ixuicheckBox = list[j].transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + bool flag2 = ixuicheckBox.ID > 0UL; + if (flag2) + { + ixuicheckBox.SetVisible(this._doc.CurrentSelect == 0); + } + } + return true; + } + + private void OnChestClicked(IXUITexture sp) + { + base.uiBehaviour.m_PointRewardWindow.SetVisible(true); + this.SetupPointRewardWindow(true); + } + + private bool OnPointRewardTplClick(IXUIButton button) + { + this._doc.SendFetchPointReward((uint)button.ID); + return true; + } + + private void OnRankItemClicked(IXUILabel label) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(label.ID, false); + } + + private bool OnRankTabClicked(IXUICheckBox checkBox) + { + bool flag = !checkBox.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + this._doc.SendQueryRankInfo((uint)checkBox.ID); + this.SetupRankWindow(this._doc.RankList[(int)checkBox.ID]); + result = true; + } + return result; + } + + private void SetRankTab() + { + base.uiBehaviour.m_RankTabPool.SetupPool(base.uiBehaviour.m_RankWindow.m_TabTpl.transform.parent.gameObject, base.uiBehaviour.m_RankWindow.m_TabTpl, 5u, false); + base.uiBehaviour.m_RankTabPool.ReturnAll(false); + GameObject gameObject = base.uiBehaviour.m_RankTabPool.FetchGameObject(false); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + base.uiBehaviour.m_RankTypeAll = ixuicheckBox; + ixuicheckBox.ID = 0UL; + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRankTabClicked)); + for (int i = 0; i < XGame.RoleCount; i++) + { + string profName = XSingleton.singleton.GetProfName(i + 1); + GameObject gameObject2 = base.uiBehaviour.m_RankTabPool.FetchGameObject(false); + gameObject2.transform.localPosition -= new Vector3(0f, (float)(base.uiBehaviour.m_RankTabPool.TplHeight * (i + 1)), 0f); + ixuicheckBox = (gameObject2.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox); + ixuicheckBox.ID = (ulong)((long)i + 1L); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnRankTabClicked)); + IXUILabel ixuilabel = gameObject2.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(profName); + IXUILabel ixuilabel2 = gameObject2.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(profName); + } + } + + public void SetupRankWindow(List list) + { + base.uiBehaviour.m_RankWindow.m_RolePool.FakeReturnAll(); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_RankWindow.m_RolePool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Rank").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = gameObject.transform.Find("Bg/Level").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = gameObject.transform.Find("Bg/Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = gameObject.transform.Find("Bg/Point").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = gameObject.transform.Find("Bg/RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = list[i].rank > 3u; + if (flag) + { + ixuilabel.SetText(string.Format("No.{0}", list[i].rank)); + } + else + { + ixuilabel.SetText(""); + } + ixuilabel2.SetText(string.Format("Lv.{0}", list[i].level)); + ixuilabel3.SetText(list[i].name); + ixuilabel4.SetText(list[i].point.ToString()); + ixuisprite.SetSprite(string.Format("N{0}", list[i].rank)); + ixuilabel3.ID = list[i].uid; + bool flag2 = list[i].uid == 0UL; + if (flag2) + { + ixuilabel3.RegisterLabelClickEventHandler(null); + } + else + { + ixuilabel3.RegisterLabelClickEventHandler(new LabelClickEventHandler(this.OnRankItemClicked)); + } + gameObject.transform.localPosition = base.uiBehaviour.m_RankWindow.m_RolePool.TplPos - new Vector3(0f, (float)(i * base.uiBehaviour.m_RankWindow.m_RolePool.TplHeight)); + } + base.uiBehaviour.m_RankWindow.m_RolePool.ActualReturnAll(false); + base.uiBehaviour.m_RankWindow.m_ScrollView.ResetPosition(); + } + + public void SetupPointRewardWindow(bool resetPos = true) + { + base.uiBehaviour.m_PointRewardWindow.m_CurrentPoint.SetText(this._doc.WinOfPoint.ToString()); + Vector3 tplPos = base.uiBehaviour.m_PointRewardWindow.m_RewardPool.TplPos; + base.uiBehaviour.m_PointRewardWindow.m_RewardPool.FakeReturnAll(); + base.uiBehaviour.m_PointRewardWindow.m_ItemPool.FakeReturnAll(); + List list = new List(); + for (int i = 0; i < this._doc.PointRewardList.Count; i++) + { + list.Add(i); + } + list.Sort(new Comparison(this._doc.PointRewardCompare)); + for (int j = 0; j < this._doc.PointRewardList.Count; j++) + { + GameObject gameObject = base.uiBehaviour.m_PointRewardWindow.m_RewardPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Point/Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(this._doc.PointRewardList[list[j]].point.ToString()); + for (int k = 0; k < this._doc.PointRewardList[list[j]].reward.Count; k++) + { + GameObject gameObject2 = base.uiBehaviour.m_PointRewardWindow.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)this._doc.PointRewardList[list[j]].reward[k, 0], (int)this._doc.PointRewardList[list[j]].reward[k, 1], false); + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this._doc.PointRewardList[list[j]].reward[k, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3(base.uiBehaviour.m_PointRewardWindow.m_ItemPool.TplPos.x - base.uiBehaviour.m_PointRewardWindow.m_RewardPool.TplPos.x + (float)(base.uiBehaviour.m_PointRewardWindow.m_ItemPool.TplWidth * k), 0f); + } + gameObject.transform.localPosition = base.uiBehaviour.m_PointRewardWindow.m_RewardPool.TplPos - new Vector3(0f, (float)(base.uiBehaviour.m_PointRewardWindow.m_RewardPool.TplHeight * j)); + GameObject gameObject3 = gameObject.transform.Find("Bg/Tip").gameObject; + GameObject gameObject4 = gameObject.transform.Find("Bg/Reach").gameObject; + GameObject gameObject5 = gameObject.transform.Find("Bg/UnReach").gameObject; + IXUIButton ixuibutton = gameObject.transform.Find("Bg/Button").GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)list[j]; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnPointRewardTplClick)); + uint status = this._doc.PointRewardList[list[j]].status; + gameObject5.SetActive(status == 0u); + gameObject3.SetActive(status == 1u); + gameObject4.SetActive(status == 2u); + ixuibutton.SetVisible(status == 1u); + } + base.uiBehaviour.m_PointRewardWindow.m_ItemPool.ActualReturnAll(false); + base.uiBehaviour.m_PointRewardWindow.m_RewardPool.ActualReturnAll(false); + if (resetPos) + { + base.uiBehaviour.m_PointRewardWindow.m_ScrollView.ResetPosition(); + } + } + + public void SetupRankRewardWindow() + { + bool flag = this._doc.MatchRank == uint.MaxValue || this._doc.MatchRank > this._doc.MaxRewardRank; + if (flag) + { + base.uiBehaviour.m_RankRewardWindow.m_RankNum.SetText(this._doc.MaxRewardRank + XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc3")); + } + else + { + base.uiBehaviour.m_RankRewardWindow.m_RankNum.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1"), this._doc.MatchRank)); + } + Vector3 tplPos = base.uiBehaviour.m_RankRewardWindow.m_RewardPool.TplPos; + base.uiBehaviour.m_RankRewardWindow.m_RewardPool.FakeReturnAll(); + base.uiBehaviour.m_RankRewardWindow.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < this._doc.RankRewardList.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_RankRewardWindow.m_RewardPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("Bg/Rank/RankNum").GetComponent("XUILabel") as IXUILabel; + bool isRange = this._doc.RankRewardList[i].isRange; + if (isRange) + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc2"), this._doc.RankRewardList[i].rank)); + } + else + { + ixuilabel.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1"), this._doc.RankRewardList[i].rank)); + } + for (int j = 0; j < this._doc.RankRewardList[i].reward.Count; j++) + { + GameObject gameObject2 = base.uiBehaviour.m_RankRewardWindow.m_ItemPool.FetchGameObject(false); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)this._doc.RankRewardList[i].reward[j, 0], (int)this._doc.RankRewardList[i].reward[j, 1], false); + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)this._doc.RankRewardList[i].reward[j, 0]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + gameObject2.transform.parent = gameObject.transform; + gameObject2.transform.localPosition = new Vector3(base.uiBehaviour.m_RankRewardWindow.m_ItemPool.TplPos.x + (float)(base.uiBehaviour.m_RankRewardWindow.m_ItemPool.TplWidth * j), 0f); + } + gameObject.transform.localPosition = base.uiBehaviour.m_RankRewardWindow.m_RewardPool.TplPos - new Vector3(0f, (float)(base.uiBehaviour.m_RankRewardWindow.m_RewardPool.TplHeight * i)); + } + base.uiBehaviour.m_RankRewardWindow.m_ItemPool.ActualReturnAll(false); + base.uiBehaviour.m_RankRewardWindow.m_RewardPool.ActualReturnAll(false); + base.uiBehaviour.m_RankRewardWindow.m_ScrollView.ResetPosition(); + } + + public void SetupRankRewardFrame() + { + base.uiBehaviour.m_TotalRecords.SetText(this._doc.MatchTotalCount.ToString()); + uint num = (this._doc.RankRewardLeftTime + 14400u) / 604800u; + bool flag = num > 0u; + if (flag) + { + base.uiBehaviour.m_RankEndTips.SetText(string.Format(XStringDefineProxy.GetString("QualityingRankRewardEndTips1"), num)); + } + else + { + base.uiBehaviour.m_RankEndTips.SetText(XStringDefineProxy.GetString("QualityingRankRewardEndTips2")); + } + base.uiBehaviour.m_WinRecord.SetText(this._doc.MatchTotalWin.ToString()); + base.uiBehaviour.m_LoseRecord.SetText(this._doc.MatchTotalLose.ToString()); + base.uiBehaviour.m_WinRate.SetText(string.Format("{0}%", this._doc.MatchTotalPercent)); + bool flag2 = this._doc.MatchRank == uint.MaxValue || this._doc.MatchRank > this._doc.MaxRewardRank; + if (flag2) + { + base.uiBehaviour.m_CurrentRank.SetText(string.Format("{0}{1}", this._doc.MaxRewardRank, XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc3"))); + } + else + { + base.uiBehaviour.m_CurrentRank.SetText(string.Format(XStringDefineProxy.GetString("Qualifying_Rank_Reward_Desc1"), this._doc.MatchRank)); + } + } + + public void SetupChallengeFrame(bool isSwitch) + { + base.uiBehaviour.m_Match1V1Btn.SetVisible(this._doc.CurrentSelect == 0); + base.uiBehaviour.m_Match2V2Btn.SetVisible(this._doc.CurrentSelect != 0); + base.uiBehaviour.m_TeamBtn.SetVisible(this._doc.CurrentSelect != 0); + base.uiBehaviour.m_ChallengeTip.SetVisible(this._doc.CurrentSelect == 0); + this._texStr1 = "atlas/UI/common/Pic/" + string.Format("jjc-bx-{0}", this._doc.GetIconIndex(this._doc.WinOfPoint)); + base.uiBehaviour.m_PointRewardBtn.SetTexturePath(this._texStr1); + this._texStr2 = "atlas/UI/common/Pic/" + string.Format("tts_{0}", this._doc.GetIconIndex(this._doc.WinOfPoint)); + base.uiBehaviour.m_Tier.SetTexturePath(this._texStr2); + base.uiBehaviour.m_PointRewardRedPoint.gameObject.SetActive(this._doc.RedPoint); + bool flag = (ulong)this._doc.WinOfPoint == (ulong)((long)this._doc.LastWinOfPoint) || Mathf.Abs((float)((ulong)this._doc.WinOfPoint - (ulong)((long)this._doc.LastWinOfPoint))) > 500f; + if (flag) + { + XSingleton.singleton.SetVirtualItem(base.uiBehaviour.m_NumberTween, (ulong)this._doc.WinOfPoint, false, ""); + this._doc.LastWinOfPoint = (int)this._doc.WinOfPoint; + } + else + { + bool flag2 = (ulong)this._doc.WinOfPoint > (ulong)((long)this._doc.LastWinOfPoint); + if (flag2) + { + this._fxTimeToken = XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.DelayParticlePlay), null); + } + if (isSwitch) + { + XSingleton.singleton.SetVirtualItem(base.uiBehaviour.m_NumberTween, (ulong)((long)this._doc.LastWinOfPoint), false, ""); + } + this._numTimeToken = XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.DelaySetVirtualItem), null); + this._doc.LastWinOfPoint = (int)this._doc.WinOfPoint; + } + int @int = XSingleton.singleton.GetInt("QualifyingFirstRewardCount"); + base.uiBehaviour.m_ChallengeTipText.SetText(string.Format(XStringDefineProxy.GetString("MATCH_FIRST_REWARD", new object[] + { + @int + }), new object[0])); + int num = Mathf.Max(@int - (int)this._doc.LeftFirstRewardCount, 0); + base.uiBehaviour.m_ChallengeTip.InputText = string.Format("{0} ({1}/{2})", XStringDefineProxy.GetString("MATCH_FIRST_REWARD_ICON"), num, @int); + } + + private void DelayParticlePlay(object e) + { + base.uiBehaviour.m_FxFireworkGo.SetActive(false); + base.uiBehaviour.m_FxFireworkGo.SetActive(true); + } + + private void DelaySetVirtualItem(object e) + { + XSingleton.singleton.SetVirtualItem(base.uiBehaviour.m_NumberTween, (ulong)this._doc.WinOfPoint, true, ""); + } + + public void RefreshMatch2v2Btn() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + base.uiBehaviour.m_Match2V2BtnLabel.SetText((specificDocument.SoloMatchType == KMatchType.KMT_PKTWO) ? string.Format("{0}...", XStringDefineProxy.GetString("MATCHING")) : XStringDefineProxy.GetString("CAPTAINPVP_SINGLE")); + base.uiBehaviour.m_TeamBtn.SetEnable(specificDocument.SoloMatchType != KMatchType.KMT_PKTWO, false); + } + + public void SetBeginMatchButton(string str) + { + base.uiBehaviour.m_Match1V1BtnLabel.SetText(str); + } + + public void setRewardLeftTime() + { + int totalSecond = (int)(this._doc.RankRewardLeftTime - Time.time + this._doc.RewardSignTime); + base.uiBehaviour.m_RankRewardWindow.m_RewardLeftTime.SetText(XSingleton.singleton.TimeDuarationFormatString(totalSecond, 4)); + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_handler != null; + if (flag) + { + this.m_handler.SetVisible(false); + } + base.uiBehaviour.m_PointRewardBtn.SetTexturePath(""); + base.uiBehaviour.m_Tier.SetTexturePath(""); + XSingleton.singleton.KillTimer(this._fxTimeToken); + XSingleton.singleton.KillTimer(this._numTimeToken); + base.uiBehaviour.m_FxFireworkGo.SetActive(false); + } + + public override void LeaveStackTop() + { + base.LeaveStackTop(); + base.uiBehaviour.m_FxFireworkGo.SetActive(false); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_handler); + DlgHandlerBase.EnsureUnload(ref this.m_QualifyingRecordsHandler); + DlgHandlerBase.EnsureUnload(ref this.m_BattleRecord2V2Handler); + XSingleton.singleton.KillTimer(this._fxTimeToken); + XSingleton.singleton.KillTimer(this._numTimeToken); + base.OnUnload(); + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = this.m_handler != null && this.m_handler.IsVisible(); + if (flag) + { + this.m_handler.OnUpdate(); + } + bool flag2 = this._doc != null && this._doc.IsMatching; + if (flag2) + { + this._doc.SetMatchButtonTime(); + } + bool flag3 = base.uiBehaviour.m_RankRewardWindow.m_Go.activeInHierarchy && this._doc.RankRewardLeftTime > 0u; + if (flag3) + { + this.setRewardLeftTime(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualifyingView.cs.meta b/Client/Assets/Scripts/XMainClient/XQualifyingView.cs.meta new file mode 100644 index 00000000..57a3446b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualifyingView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 76710d042cf566d4ca22752afa011300 +timeCreated: 1611403949 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQualitySetting.cs b/Client/Assets/Scripts/XMainClient/XQualitySetting.cs new file mode 100644 index 00000000..ec980d31 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualitySetting.cs @@ -0,0 +1,608 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XQualitySetting + { + private static XQualitySetting.XSetting[] _settings = new XQualitySetting.XSetting[] + { + new XQualitySetting.XSetting(), + new XQualitySetting.XSetting(), + new XQualitySetting.XSetting(), + new XQualitySetting.XSetting() + }; + + private static float[] _hallLayerculldistance = new float[32]; + + private static float[] _layerculldistance = new float[32]; + + public static Light mainLight = null; + + public static IFxPro fxPro = null; + + public static int VisibleRoleCountPerLevel = 5; + + private static int _VisibleRoleCount = 20; + + private static int _QualityLevel = -1; + + private static int _HardwareQualityLevel = -1; + + private static bool _IsPcOrSimulator = false; + + private static XQualitySetting.XSetting _CurrentSetting = null; + + public static bool _InHall = false; + + public static bool _CastShadow = false; + + public static float _FadeDistance = 81f; + + private static int _flag = 0; + + private static IEnvSetting _envSet; + + public static int width = 1136; + + public static int height = 640; + + public static float maxResolution = 640f; + + public static int _InvisiblityLayerOffset = 0; + + public static int _QualityHighLayerOffset = 0; + + public static int _QualityNormalLayerOffset = 0; + + public static int _UILayerOffset = 0; + + public static int _DefaultLayerOffset = 0; + + public static int InVisiblityLayer = 31; + + public static int UILayer = 5; + + public static int TerrainLayer = 9; + + public static float _WindSpeedFactor = 1f; + + public static int lowLevel = XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.ELow); + + public static int normalLevel = XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.ENormal); + + public static int heighLevel = XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.EHeigh); + + public static int veryHighLevel = XQualitySetting.heighLevel + 1; + + public static int numLevel = XFastEnumIntEqualityComparer.ToInt(XQualitySetting.ESetting.ENum); + + public static int lowResolution = XFastEnumIntEqualityComparer.ToInt(XQualitySetting.EResolution.ELow); + + public static int normalResolution = XFastEnumIntEqualityComparer.ToInt(XQualitySetting.EResolution.ENormal); + + public static int heighResolution = XFastEnumIntEqualityComparer.ToInt(XQualitySetting.EResolution.EHeigh); + + public enum ESetting + { + ELow, + ENormal, + EHeigh, + EVeryHeigh, + ENum + } + + public enum EResolution + { + ELow, + ENormal, + EHeigh, + ENum + } + + public class XSetting + { + public bool _bloom = false; + + public float _CameraHall = 130f; + + public float _CameraWorld = 80f; + + public BlendWeights bw = (BlendWeights)1; + + public int _CullMask = -1; + + public bool _EnableFog = true; + + public int _ShaderLod = 600; + + public int _MaxParticelCount = 10; + } + + public static void Init() + { + XQualitySetting._InvisiblityLayerOffset = 1 << LayerMask.NameToLayer("InVisiblity"); + XQualitySetting._QualityHighLayerOffset = 1 << LayerMask.NameToLayer("QualityHigh"); + XQualitySetting._QualityNormalLayerOffset = 1 << LayerMask.NameToLayer("QualityNormal"); + XQualitySetting._UILayerOffset = 1 << LayerMask.NameToLayer("UI"); + XQualitySetting._DefaultLayerOffset = 1 << LayerMask.NameToLayer("Default"); + XQualitySetting.XSetting xsetting = XQualitySetting._settings[0]; + xsetting._bloom = false; + xsetting._CameraHall = 130f; + xsetting._CameraWorld = 80f; + xsetting.bw = (BlendWeights)1; + xsetting._CullMask = ~(XQualitySetting._QualityHighLayerOffset | XQualitySetting._QualityNormalLayerOffset); + xsetting._EnableFog = false; + xsetting._ShaderLod = 100; + xsetting._MaxParticelCount = 3; + XQualitySetting.XSetting xsetting2 = XQualitySetting._settings[1]; + xsetting2._bloom = false; + xsetting2._CameraHall = 140f; + xsetting2._CameraWorld = 80f; + xsetting2.bw = (BlendWeights)2; + xsetting2._CullMask = (~XQualitySetting._QualityHighLayerOffset | XQualitySetting._QualityNormalLayerOffset); + xsetting2._EnableFog = true; + xsetting2._ShaderLod = 200; + xsetting2._MaxParticelCount = 6; + XQualitySetting.XSetting xsetting3 = XQualitySetting._settings[2]; + xsetting3._bloom = false; + xsetting3._CameraHall = 150f; + xsetting3._CameraWorld = 90f; + xsetting3.bw = (BlendWeights)2; + xsetting3._CullMask = (XQualitySetting._QualityHighLayerOffset | XQualitySetting._QualityNormalLayerOffset); + xsetting3._EnableFog = true; + xsetting3._ShaderLod = 600; + xsetting3._MaxParticelCount = 50; + XQualitySetting.XSetting xsetting4 = XQualitySetting._settings[3]; + xsetting4._bloom = true; + xsetting4._CameraHall = 150f; + xsetting4._CameraWorld = 90f; + xsetting4.bw = (BlendWeights)4; + xsetting4._CullMask = (XQualitySetting._QualityHighLayerOffset | XQualitySetting._QualityNormalLayerOffset); + xsetting4._EnableFog = true; + xsetting4._ShaderLod = 600; + xsetting4._MaxParticelCount = 50; + XQualitySetting._hallLayerculldistance[LayerMask.NameToLayer("Npc")] = 35f; + XQualitySetting._hallLayerculldistance[LayerMask.NameToLayer("Resources")] = 35f; + XQualitySetting._hallLayerculldistance[LayerMask.NameToLayer("QualityHigh")] = 80f; + XQualitySetting._hallLayerculldistance[LayerMask.NameToLayer("QualityNormal")] = 50f; + XQualitySetting._hallLayerculldistance[LayerMask.NameToLayer("QualityCullDistance")] = 20f; + XQualitySetting._hallLayerculldistance[LayerMask.NameToLayer("Dummy")] = 25f; + XQualitySetting._layerculldistance[LayerMask.NameToLayer("Npc")] = 40f; + XQualitySetting._layerculldistance[LayerMask.NameToLayer("Role")] = 40f; + XQualitySetting._layerculldistance[LayerMask.NameToLayer("Enemy")] = 40f; + XQualitySetting._layerculldistance[LayerMask.NameToLayer("BigGuy")] = 60f; + XQualitySetting._layerculldistance[LayerMask.NameToLayer("QualityHigh")] = 60f; + XQualitySetting._layerculldistance[LayerMask.NameToLayer("QualityNormal")] = 40f; + XQualitySetting._layerculldistance[LayerMask.NameToLayer("QualityCullDistance")] = 20f; + } + + public static void SetQuality(int level, bool init = false) + { + bool flag = level >= 0; + if (flag) + { + if (init) + { + QualitySettings.SetQualityLevel(2); + XQualitySetting._IsPcOrSimulator = (level > XQualitySetting.veryHighLevel); + XQualitySetting._HardwareQualityLevel = level; + bool flag2 = XQualitySetting._HardwareQualityLevel == XQualitySetting.lowLevel; + if (flag2) + { + QualitySettings.pixelLightCount = 0; + QualitySettings.masterTextureLimit = 1; + QualitySettings.anisotropicFiltering =(AnisotropicFiltering) 0; + } + else + { + QualitySettings.pixelLightCount = 1; + QualitySettings.masterTextureLimit = 0; + QualitySettings.anisotropicFiltering = (AnisotropicFiltering)1; + } + QualitySettings.particleRaycastBudget = 2; + } + int num = (level > XQualitySetting.veryHighLevel) ? XQualitySetting.veryHighLevel : level; + bool flag3 = XQualitySetting._QualityLevel != num; + XQualitySetting.XSetting xsetting; + if (flag3) + { + XQualitySetting._QualityLevel = num; + xsetting = XQualitySetting._settings[XQualitySetting._QualityLevel]; + QualitySettings.blendWeights = xsetting.bw; + } + else + { + xsetting = XQualitySetting._settings[XQualitySetting._QualityLevel]; + } + XQualitySetting._CurrentSetting = xsetting; + } + } + + public static void InitResolution() + { + XQualitySetting.width = Screen.width; + XQualitySetting.height = Screen.height; + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag = specificDocument != null; + if (flag) + { + int value = specificDocument.GetValue(XOptionsDefine.OD_RESOLUTION); + XQualitySetting.SetResolution((XQualitySetting.EResolution)value, true); + } + } + + public static void SetResolution(XQualitySetting.EResolution resolution, bool force = false) + { + bool flag = (XQualitySetting._InHall || force) && ((int)Application.platform == 11 || (int)Application.platform == 8); + if (flag) + { + int num = XFastEnumIntEqualityComparer.ToInt(resolution); + bool flag2 = num == XQualitySetting.heighResolution; + if (flag2) + { + XQualitySetting.maxResolution = (float)XQualitySetting.height; + Screen.SetResolution(XQualitySetting.width, XQualitySetting.height, true); + } + else + { + bool flag3 = num == XQualitySetting.normalResolution; + if (flag3) + { + XQualitySetting.maxResolution = 1080f; + } + else + { + XQualitySetting.maxResolution = 720f; + } + float num2 = XQualitySetting.maxResolution / (float)XQualitySetting.height; + bool flag4 = num2 > 0.75f; + if (flag4) + { + num2 = 0.75f; + } + bool flag5 = num2 < 0.7f; + if (flag5) + { + num2 = 0.7f; + } + Screen.SetResolution((int)((float)XQualitySetting.width * num2), (int)((float)XQualitySetting.height * num2), true); + } + } + } + + public static int GetDefalutResolution() + { + bool flag = XQualitySetting.width > 1920; + int result; + if (flag) + { + result = XQualitySetting.normalResolution; + } + else + { + result = XQualitySetting.heighResolution; + } + return result; + } + + public static int SetVisibleRoleLevel(int level) + { + bool flag = level < 0; + if (flag) + { + level = 0; + } + else + { + bool flag2 = level > XQualitySetting.veryHighLevel; + if (flag2) + { + level = XQualitySetting.veryHighLevel; + } + } + XQualitySetting._VisibleRoleCount = level * XQualitySetting.VisibleRoleCountPerLevel + XQualitySetting.VisibleRoleCountPerLevel; + return XQualitySetting._VisibleRoleCount; + } + + public static int GetDefalutVisibleRoleLevel() + { + bool flag = XQualitySetting._HardwareQualityLevel == XQualitySetting.veryHighLevel; + int result; + if (flag) + { + result = XQualitySetting.veryHighLevel; + } + else + { + result = XQualitySetting._HardwareQualityLevel + 1; + } + return result; + } + + public static void GetDefalutVisibleRoleCount(out int min, out int max) + { + min = XQualitySetting.VisibleRoleCountPerLevel; + max = 4 * XQualitySetting.VisibleRoleCountPerLevel; + } + + public static int GetVisibleRoleCount() + { + return XQualitySetting._VisibleRoleCount; + } + + public static void PostSetQuality() + { + XQualitySetting._flag = 0; + XQualitySetting.SetQuality(EFun.ECamera, XQualitySetting._QualityLevel >= XQualitySetting.heighLevel); + XQualitySetting.SetQuality(EFun.ENpcShadow, XQualitySetting._QualityLevel >= XQualitySetting.heighLevel); + XQualitySetting.SetQuality(EFun.ERoleShadow, XQualitySetting._QualityLevel >= XQualitySetting.normalLevel); + XQualitySetting.SetQuality(EFun.EEnemyShadow, XQualitySetting._QualityLevel >= XQualitySetting.normalLevel); + XQualitySetting.SetQuality(EFun.ERealTimeShadow, XQualitySetting._QualityLevel >= XQualitySetting.heighLevel && XQualitySetting._HardwareQualityLevel >= XQualitySetting.veryHighLevel && (int)Application.platform != 11); + XQualitySetting.SetQuality(EFun.EFxPro, XQualitySetting._QualityLevel == XQualitySetting.veryHighLevel && XQualitySetting._HardwareQualityLevel >= XQualitySetting.veryHighLevel); + XQualitySetting.SetQuality(EFun.ESceneFade, XQualitySetting._QualityLevel >= XQualitySetting.normalLevel); + XQualitySetting.SetQuality(EFun.EFadeInOut, XQualitySetting._QualityLevel >= XQualitySetting.normalLevel); + bool settingEnum = XSingleton.singleton.GetSettingEnum(ESettingConfig.ELowEffect); + if (settingEnum) + { + XQualitySetting.SetQuality(EFun.ELowEffect, XQualitySetting._QualityLevel == XQualitySetting.lowLevel); + } + else + { + XQualitySetting.SetQuality(EFun.ELowEffect, false); + } + XQualitySetting.SetQuality(EFun.ECommonHigh, XQualitySetting._QualityLevel >= XQualitySetting.heighLevel && XQualitySetting._InHall); + } + + public static int GetQuality() + { + return XQualitySetting._QualityLevel; + } + + public static bool GetQuality(EFun fun) + { + return (XQualitySetting._flag & XFastEnumIntEqualityComparer.ToInt(fun)) != 0; + } + + public static void SetQuality(EFun fun, bool add) + { + if (add) + { + XQualitySetting._flag |= XFastEnumIntEqualityComparer.ToInt(fun); + } + else + { + XQualitySetting._flag &= ~XFastEnumIntEqualityComparer.ToInt(fun); + } + } + + public static XQualitySetting.XSetting GetCurrentQualitySetting() + { + return XQualitySetting._settings[XQualitySetting._QualityLevel]; + } + + public static bool SupportHighEffect() + { + return XQualitySetting._HardwareQualityLevel >= XQualitySetting.veryHighLevel && (int)Application.platform != 11; + } + + public static int GetDefaultQualityLevel() + { + bool isPcOrSimulator = XQualitySetting._IsPcOrSimulator; + int result; + if (isPcOrSimulator) + { + result = XQualitySetting.veryHighLevel; + } + else + { + result = ((XQualitySetting._HardwareQualityLevel > XQualitySetting.heighLevel) ? XQualitySetting.heighLevel : XQualitySetting._HardwareQualityLevel); + } + return result; + } + + public static void EnterScene() + { + XQualitySetting._InHall = false; + XQualitySetting.PostSetQuality(); + } + + public static void EnterHall() + { + XQualitySetting._InHall = true; + XQualitySetting.PostSetQuality(); + } + + public static void SwitchScene() + { + XQualitySetting._envSet = null; + } + + public static void PostSceneLoad() + { + Shader.SetGlobalFloat("uirim", 0f); + XQualitySetting._CastShadow = false; + XQualitySetting.mainLight = null; + GameObject gameObject = GameObject.Find("MainLight"); + bool flag = gameObject != null; + if (flag) + { + XQualitySetting.mainLight = gameObject.GetComponent(); + bool flag2 = XQualitySetting.mainLight != null; + if (flag2) + { + Color color = XQualitySetting.mainLight.color * XQualitySetting.mainLight.intensity; + Shader.SetGlobalColor("lightColor", color); + Vector3 vector = -gameObject.transform.forward.normalized; + Shader.SetGlobalVector("lightDir", new Vector4(vector.x, vector.y, vector.z, 1f)); + XQualitySetting.mainLight.shadows = 0; + bool flag3 = XQualitySetting.GetQuality(EFun.ERealTimeShadow) && !XSingleton.singleton.IsMustTransform; + if (flag3) + { + XQualitySetting._CastShadow = (gameObject.layer == XQualitySetting.TerrainLayer); + } + else + { + XQualitySetting._CastShadow = false; + } + } + } + ShadowMapInfo.EnableShadow(XQualitySetting._CastShadow); + } + + public static void PostSetting() + { + DateTime now = DateTime.Now; + int num = now.Hour * 3600 + now.Minute * 60 + now.Second; + bool flag = XQualitySetting._envSet != null; + if (flag) + { + SceneTable.RowData sceneData = XSingleton.singleton.SceneData; + bool flag2 = sceneData != null && sceneData.EnvSet.Count > 0; + if (flag2) + { + int i = 0; + int count = sceneData.EnvSet.Count; + while (i < count) + { + bool flag3 = num >= sceneData.EnvSet[i, 0] && num < sceneData.EnvSet[i, 1]; + if (flag3) + { + XQualitySetting._envSet.EnableSetting(sceneData.EnvSet[i, 2]); + break; + } + i++; + } + } + else + { + XQualitySetting._envSet.EnableSetting(0); + } + } + XQualitySetting._WindSpeedFactor = XSingleton.singleton.RandomFloat(0.5f, 2f); + XQualitySetting.fxPro = null; + bool flag4 = XQualitySetting._CurrentSetting != null; + if (flag4) + { + Camera unityCamera = XSingleton.singleton.GameCamera.UnityCamera; + bool flag5 = unityCamera != null; + if (flag5) + { + unityCamera.hdr = false; + bool flag6 = XQualitySetting._InHall || XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID) == SceneType.SCENE_CALLBACK; + if (flag6) + { + unityCamera.farClipPlane = XQualitySetting._CurrentSetting._CameraHall; + unityCamera.cullingMask &= ~(XQualitySetting._QualityHighLayerOffset | XQualitySetting._QualityNormalLayerOffset); + unityCamera.cullingMask |= XQualitySetting._CurrentSetting._CullMask; + unityCamera.cullingMask &= ~XQualitySetting._InvisiblityLayerOffset; + unityCamera.cullingMask &= ~XQualitySetting._UILayerOffset; + unityCamera.layerCullDistances = XQualitySetting._hallLayerculldistance; + } + else + { + bool flag7 = unityCamera.farClipPlane < 300f || unityCamera.farClipPlane > 600f; + if (flag7) + { + unityCamera.farClipPlane = XQualitySetting._CurrentSetting._CameraWorld; + } + unityCamera.cullingMask &= ~(XQualitySetting._QualityHighLayerOffset | XQualitySetting._QualityNormalLayerOffset); + unityCamera.cullingMask |= XQualitySetting._CurrentSetting._CullMask; + unityCamera.layerCullDistances = XQualitySetting._layerculldistance; + unityCamera.cullingMask &= ~XQualitySetting._InvisiblityLayerOffset; + unityCamera.cullingMask &= ~XQualitySetting._UILayerOffset; + } + bool flag8 = (int)Application.platform == 8 || XQualitySetting._IsPcOrSimulator; + if (flag8) + { + XQualitySetting.fxPro = (unityCamera.GetComponent("FxPro") as IFxPro); + bool flag9 = XQualitySetting.fxPro != null; + if (flag9) + { + bool flag10 = XQualitySetting.GetQuality(EFun.EFxPro) || XSingleton.singleton.SceneType == SceneType.SCENE_LOGIN; + if (flag10) + { + XQualitySetting.fxPro.Enable(true); + } + else + { + XQualitySetting.fxPro.Enable(false); + } + } + } + XSingleton.singleton.CameraLayerMask = (unityCamera.cullingMask | XQualitySetting._UILayerOffset); + unityCamera.useOcclusionCulling = false; + } + bool flag11 = XQualitySetting._InHall && !XSingleton.singleton.switchScene; + if (flag11) + { + XQualitySetting.PostSceneLoad(); + XPlayer player = XSingleton.singleton.Player; + bool flag12 = player != null; + if (flag12) + { + XShadowComponent xshadowComponent = player.GetXComponent(XShadowComponent.uuID) as XShadowComponent; + bool flag13 = xshadowComponent != null; + if (flag13) + { + xshadowComponent.ProcessShadow(); + } + } + List all = XSingleton.singleton.GetAll(); + for (int j = 0; j < all.Count; j++) + { + XEntity xentity = all[j]; + bool flag14 = xentity.Equipment != null; + if (flag14) + { + xentity.Equipment.RefreshSuitFx(); + xentity.Equipment.RefreshEquipFx(); + xentity.Equipment.RefreshSecondWeaponFx(); + } + XShadowComponent xshadowComponent2 = xentity.GetXComponent(XShadowComponent.uuID) as XShadowComponent; + bool flag15 = xshadowComponent2 != null; + if (flag15) + { + xshadowComponent2.ProcessShadow(); + } + } + } + RenderSettings.fog = XQualitySetting._CurrentSetting._EnableFog; + Shader.globalMaximumLOD = XQualitySetting._CurrentSetting._ShaderLod; + XFxMgr.MaxParticelCount = XQualitySetting._CurrentSetting._MaxParticelCount; + } + } + + public static void SetEnvSet(IEnvSetting envSet) + { + XQualitySetting._envSet = envSet; + } + + public static void SetDofFade(float fade) + { + bool flag = XQualitySetting.fxPro != null; + if (flag) + { + XQualitySetting.fxPro.SetDofFade(fade); + } + } + + public static void Update() + { + bool flag = XQualitySetting._CurrentSetting != null && XQualitySetting._CurrentSetting._ShaderLod >= 400 && XSingleton.singleton.CurrentStage.Stage != EXStage.World; + if (flag) + { + Shader.SetGlobalFloat("_windSpeed", Mathf.Sin(XQualitySetting._WindSpeedFactor * Time.realtimeSinceStartup)); + } + Transform cameraTrans = XSingleton.singleton.GameCamera.CameraTrans; + bool flag2 = cameraTrans != null; + if (flag2) + { + Shader.SetGlobalVector("cameraPos", cameraTrans.position); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQualitySetting.cs.meta b/Client/Assets/Scripts/XMainClient/XQualitySetting.cs.meta new file mode 100644 index 00000000..e1a50358 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQualitySetting.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 31884ecc73116ec4189d87d4b906c6bd +timeCreated: 1611403546 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQueryServerState.cs b/Client/Assets/Scripts/XMainClient/XQueryServerState.cs new file mode 100644 index 00000000..781b9516 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQueryServerState.cs @@ -0,0 +1,250 @@ +using System; +using System.Collections.Generic; +using System.Net; +using System.Net.Sockets; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQueryServerState : XSingleton + { + private readonly int TIMEOUT_VALUE = 5000; + + public XQueryServerState.ServerStateResponseHandler CallbackHandler = null; + + private Queue m_CompleteAR; + + private List m_QueryServerID; + + private Socket m_Socket; + + private class stateobj + { + public EndPoint remote = new IPEndPoint(0L, 0); + + public byte[] buffer = new byte[64]; + } + + private class QueryInfo + { + public int serverID; + + public int queryTime; + + public int tryCount; + + public string serverIP; + + public int serverPort; + } + + public delegate void ServerStateResponseHandler(int serverID, ServerStateEnum serverState, ServerFlagEnum serverFlag); + + public XQueryServerState() + { + this.CallbackHandler = new XQueryServerState.ServerStateResponseHandler(this.PrintHandler); + this.m_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); + this.m_CompleteAR = new Queue(); + this.m_QueryServerID = new List(); + } + + private byte[] int2bytes(int serverID) + { + return new byte[] + { + (byte)(serverID & 255), + (byte)(serverID >> 8 & 255), + (byte)(serverID >> 16 & 255), + (byte)(serverID >> 24 & 255) + }; + } + + private int bytes2int(byte[] a) + { + return (int)(a[0] + byte.MaxValue * (a[1] + byte.MaxValue * (a[2] + byte.MaxValue * a[3]))); + } + + public void Query(int serverID, string serverIP, int serverPort) + { + this.AddQueryRecord(serverID, serverIP, serverPort); + this.SendQueryProtocol(serverID, serverIP, serverPort); + } + + private void SendQueryProtocol(int serverID, string serverIP, int serverPort) + { + try + { + this.m_Socket.SendTo(this.int2bytes(serverID), new IPEndPoint(IPAddress.Parse(serverIP), serverPort)); + XQueryServerState.stateobj stateobj = new XQueryServerState.stateobj(); + AsyncCallback callback = new AsyncCallback(this.OnRecv); + this.m_Socket.BeginReceiveFrom(stateobj.buffer, 0, stateobj.buffer.Length, SocketFlags.None, ref stateobj.remote, callback, stateobj); + } + catch (Exception ex) + { + XSingleton.singleton.AddLog("query protocol failed! + ", ex.Message, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public void ProcessQueryMessage() + { + this.ProcessResponse(); + this.ProcessTimeoutRecord(); + } + + private void ProcessResponse() + { + while (this.m_CompleteAR.Count > 0) + { + IAsyncResult asyncResult = null; + Queue completeAR = this.m_CompleteAR; + lock (completeAR) + { + asyncResult = this.m_CompleteAR.Dequeue(); + } + try + { + XQueryServerState.stateobj stateobj = (XQueryServerState.stateobj)asyncResult.AsyncState; + int num = this.m_Socket.EndReceiveFrom(asyncResult, ref stateobj.remote); + bool flag = num > 0; + if (flag) + { + this.ProcessData(stateobj.buffer, num); + } + } + catch (Exception ex) + { + XSingleton.singleton.AddLog(ex.Message, null, null, null, null, null, XDebugColor.XDebug_None); + } + } + } + + private void ProcessData(byte[] buffer, int length) + { + bool flag = length != 6; + if (flag) + { + XSingleton.singleton.AddErrorLog("Decode Query Server State Info error!", null, null, null, null, null); + } + else + { + int serverID = this.bytes2int(buffer); + this.RemoveQueryRecord(serverID); + this.CallbackHandler(serverID, this.DecodeServerState(buffer[4]), this.DecodeServerFlag(buffer[5])); + } + } + + private void PrintHandler(int serverID, ServerStateEnum serverState, ServerFlagEnum serverFlag) + { + XSingleton.singleton.AddLog("server ", serverID.ToString(), " state: ", serverState.ToString(), " flag: ", serverFlag.ToString(), XDebugColor.XDebug_None); + } + + private ServerFlagEnum DecodeServerFlag(byte p) + { + ServerFlagEnum result; + switch (p) + { + case 0: + result = ServerFlagEnum.MAINTAIN; + break; + case 1: + result = ServerFlagEnum.NEW; + break; + case 2: + result = ServerFlagEnum.NORMAL; + break; + case 3: + result = ServerFlagEnum.FULL; + break; + case 4: + result = ServerFlagEnum.SUGGEST; + break; + default: + result = ServerFlagEnum.MAINTAIN; + break; + } + return result; + } + + private ServerStateEnum DecodeServerState(byte p) + { + ServerStateEnum result; + switch (p) + { + case 0: + result = ServerStateEnum.TIMEOUT; + break; + case 1: + result = ServerStateEnum.EMPTY; + break; + case 2: + result = ServerStateEnum.NORMAL; + break; + case 3: + result = ServerStateEnum.FULL; + break; + default: + result = ServerStateEnum.TIMEOUT; + break; + } + return result; + } + + private void OnRecv(IAsyncResult ar) + { + Queue completeAR = this.m_CompleteAR; + lock (completeAR) + { + this.m_CompleteAR.Enqueue(ar); + } + } + + private void AddQueryRecord(int serverID, string serverIP, int serverPort) + { + XQueryServerState.QueryInfo queryInfo = new XQueryServerState.QueryInfo(); + queryInfo.serverID = serverID; + queryInfo.queryTime = Environment.TickCount; + queryInfo.tryCount = 1; + queryInfo.serverIP = serverIP; + queryInfo.serverPort = serverPort; + this.m_QueryServerID.Add(queryInfo); + } + + private void RemoveQueryRecord(int serverID) + { + for (int i = 0; i < this.m_QueryServerID.Count; i++) + { + bool flag = this.m_QueryServerID[i].serverID == serverID; + if (flag) + { + this.m_QueryServerID.RemoveAt(i); + break; + } + } + } + + private void ProcessTimeoutRecord() + { + int tickCount = Environment.TickCount; + for (int i = this.m_QueryServerID.Count - 1; i >= 0; i--) + { + XQueryServerState.QueryInfo queryInfo = this.m_QueryServerID[i]; + bool flag = tickCount > queryInfo.queryTime + this.TIMEOUT_VALUE; + if (flag) + { + bool flag2 = queryInfo.tryCount <= 3; + if (flag2) + { + queryInfo.tryCount++; + queryInfo.queryTime = Environment.TickCount; + this.SendQueryProtocol(queryInfo.serverID, queryInfo.serverIP, queryInfo.serverPort); + } + else + { + this.CallbackHandler(queryInfo.serverID, ServerStateEnum.TIMEOUT, ServerFlagEnum.MAINTAIN); + this.m_QueryServerID.RemoveAt(i); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQueryServerState.cs.meta b/Client/Assets/Scripts/XMainClient/XQueryServerState.cs.meta new file mode 100644 index 00000000..e66f9a72 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQueryServerState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bca54ee7b7578ae489a3be083621e0be +timeCreated: 1611404448 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQuickReplyDocument.cs b/Client/Assets/Scripts/XMainClient/XQuickReplyDocument.cs new file mode 100644 index 00000000..9a14a1f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQuickReplyDocument.cs @@ -0,0 +1,112 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQuickReplyDocument : XDocComponent + { + public override uint ID + { + get + { + return XQuickReplyDocument.uuID; + } + } + + public QuickReplyDlg QuickReplyView { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("QuickReplyDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static QuickReplyTable _reader = new QuickReplyTable(); + + private static Dictionary> _quickReplyTables = new Dictionary>(); + + public static void Execute(OnLoadedCallback callBack = null) + { + XQuickReplyDocument.AsyncLoader.AddTask("Table/QuickReply", XQuickReplyDocument._reader, false); + XQuickReplyDocument.AsyncLoader.Execute(callBack); + XQuickReplyDocument._quickReplyTables.Clear(); + } + + public static void OnTableLoaded() + { + int i = 0; + int num = XQuickReplyDocument._reader.Table.Length; + while (i < num) + { + QuickReplyTable.RowData rowData = XQuickReplyDocument._reader.Table[i]; + List list; + bool flag = !XQuickReplyDocument._quickReplyTables.TryGetValue(rowData.Type, out list); + if (flag) + { + list = new List(); + XQuickReplyDocument._quickReplyTables.Add(rowData.Type, list); + } + list.Add(rowData); + i++; + } + } + + public QuickReplyTable.RowData GetRowData(int id) + { + return XQuickReplyDocument._reader.GetByID(id); + } + + public List GetQuickReplyList(int type) + { + List result = null; + XQuickReplyDocument._quickReplyTables.TryGetValue(type, out result); + return result; + } + + public void GetThanksForBonus(ulong boundsID) + { + RpcC2G_ThanksForBonus rpcC2G_ThanksForBonus = new RpcC2G_ThanksForBonus(); + rpcC2G_ThanksForBonus.oArg.bonusID = (uint)boundsID; + XSingleton.singleton.Send(rpcC2G_ThanksForBonus); + } + + public void OnThankForBonus(ThanksForBonusArg arg, ThanksForBonusRes res) + { + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.SetCanThank(false); + } + } + + public void GetAskForCheckInBonus() + { + RpcC2G_AskForCheckInBonus rpc = new RpcC2G_AskForCheckInBonus(); + XSingleton.singleton.Send(rpc); + } + + public void OnAskForCheckInBonus(AskForCheckInBonusArg arg, AskForCheckInBonusRes res) + { + bool flag = res.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(res.errorcode, "fece00"); + } + else + { + XGuildRedPacketDocument specificDocument = XDocuments.GetSpecificDocument(XGuildRedPacketDocument.uuID); + specificDocument.GuildBonus.leftAskBonusTime = (double)XSingleton.singleton.GetInt("GuildBonusAskTimeSpan"); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQuickReplyDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XQuickReplyDocument.cs.meta new file mode 100644 index 00000000..ff921d9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQuickReplyDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f69cbd56144e3414fa24040bd171ea41 +timeCreated: 1611404883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XQuickTimeEventComponent.cs b/Client/Assets/Scripts/XMainClient/XQuickTimeEventComponent.cs new file mode 100644 index 00000000..03e6f363 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQuickTimeEventComponent.cs @@ -0,0 +1,178 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XQuickTimeEventComponent : XComponent + { + public override uint ID + { + get + { + return XQuickTimeEventComponent.uuID; + } + } + + public List QTEList + { + get + { + return this._qte_skills; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XQuickTimeEventComponent"); + + public static uint MAXQTE = 63u; + + private ulong _state = 0UL; + + private XBattleSkillDocument _doc = null; + + private List _qte_skills = new List(); + + public bool IsInReservedState() + { + return (this._state & 4094UL) > 0UL; + } + + public bool IsInState(uint state) + { + bool flag = state == 0u; + bool result; + if (flag) + { + result = !this.IsInAnyState(); + } + else + { + bool flag2 = state > XQuickTimeEventComponent.MAXQTE; + result = (!flag2 && (this._state & 1UL << (int)state) > 0UL); + } + return result; + } + + public bool IsInAnyState() + { + return this._state > 0UL; + } + + public bool IsInIgnorePresentState() + { + return this.IsInState(20u) || this.IsInState(12u) || this.IsInState(13u) || this.IsInState(14u) || this.IsInState(15u); + } + + public override void Attached() + { + bool isPlayer = this._entity.IsPlayer; + if (isPlayer) + { + this._doc = XDocuments.GetSpecificDocument(XBattleSkillDocument.uuID); + } + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_QTE, new XComponent.XEventHandler(this.OnQuickTimeEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnJAPassed, new XComponent.XEventHandler(this.OnJAPassed)); + } + + protected bool OnJAPassed(XEventArgs e) + { + XSkillJAPassedEventArgs xskillJAPassedEventArgs = e as XSkillJAPassedEventArgs; + bool flag = xskillJAPassedEventArgs.Slot >= 0; + if (flag) + { + bool flag2 = this._doc != null; + if (flag2) + { + this._doc.Reset(xskillJAPassedEventArgs.Slot); + } + } + return true; + } + + protected bool OnQuickTimeEvent(XEventArgs e) + { + XSkillQTEEventArgs xskillQTEEventArgs = e as XSkillQTEEventArgs; + bool flag = xskillQTEEventArgs.State == 0u || xskillQTEEventArgs.State > XQuickTimeEventComponent.MAXQTE; + if (flag) + { + this._qte_skills.Clear(); + bool flag2 = this._doc != null; + if (flag2) + { + this._doc.ResetAll(false, false); + } + this._state = 0UL; + } + else + { + bool on = xskillQTEEventArgs.On; + if (on) + { + this._state |= 1UL << (int)xskillQTEEventArgs.State; + XSkillMgr.XQTEInfo[] array = null; + int qte = this._entity.SkillMgr.GetQTE(xskillQTEEventArgs.State, out array); + int i = 0; + int num = qte; + while (i < num) + { + uint num2 = array[i].skill; + uint skillLevel = this._entity.Attributes.SkillLevelInfo.GetSkillLevel(array[i].skill); + SkillList.RowData skillConfig = XSingleton.singleton.GetSkillConfig(array[i].skill, skillLevel, this._entity.SkillCasterTypeID); + bool flag3 = skillConfig != null && this._entity.SkillMgr.GetSkill(XSingleton.singleton.XHash(skillConfig.ExSkillScript)) != null; + if (flag3) + { + num2 = XSingleton.singleton.XHash(skillConfig.ExSkillScript); + } + this._qte_skills.Add(num2); + bool flag4 = this._doc != null && (long)array[i].key < (long)((ulong)XBattleSkillDocument.Total_skill_slot); + if (flag4) + { + this._doc.UpdateQTE(array[i].key, num2); + } + i++; + } + } + else + { + this._state &= ~(1UL << (int)xskillQTEEventArgs.State); + XSkillMgr.XQTEInfo[] array2 = null; + int qte2 = this._entity.SkillMgr.GetQTE(xskillQTEEventArgs.State, out array2); + int j = 0; + int num3 = qte2; + while (j < num3) + { + this._qte_skills.Remove(array2[j].skill); + uint skillLevel2 = this._entity.Attributes.SkillLevelInfo.GetSkillLevel(array2[j].skill); + SkillList.RowData skillConfig2 = XSingleton.singleton.GetSkillConfig(array2[j].skill, skillLevel2, this._entity.SkillCasterTypeID); + bool flag5 = skillConfig2 != null && this._entity.SkillMgr.GetSkill(XSingleton.singleton.XHash(skillConfig2.ExSkillScript)) != null; + if (flag5) + { + this._qte_skills.Remove(XSingleton.singleton.XHash(skillConfig2.ExSkillScript)); + } + bool flag6 = this._doc != null && (long)array2[j].key < (long)((ulong)XBattleSkillDocument.Total_skill_slot); + if (flag6) + { + this._doc.Reset(array2[j].key); + } + j++; + } + } + } + return true; + } + + public void OnSkillCasted(uint id, int slot, bool succeed) + { + this._qte_skills.Remove(id); + bool flag = this._doc != null; + if (flag) + { + this._doc.OnSkillCasted(id, slot, succeed); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XQuickTimeEventComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XQuickTimeEventComponent.cs.meta new file mode 100644 index 00000000..8d86eb4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XQuickTimeEventComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af2de1fddef3af14291a66ba7b74176f +timeCreated: 1611404343 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRaceDocument.cs b/Client/Assets/Scripts/XMainClient/XRaceDocument.cs new file mode 100644 index 00000000..96d1ca0e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRaceDocument.cs @@ -0,0 +1,240 @@ +using System; +using System.Text; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRaceDocument : XDocComponent + { + public override uint ID + { + get + { + return XRaceDocument.uuID; + } + } + + public static XRaceDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XRaceDocument.uuID) as XRaceDocument; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XRaceDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static Horse _HorseTable = new Horse(); + + public RaceBattleHandler RaceHandler = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + XRaceDocument.AsyncLoader.AddTask("Table/Horse", XRaceDocument._HorseTable, false); + XRaceDocument.AsyncLoader.Execute(callback); + } + + public static Horse.RowData GetHorseRace(uint sceneId) + { + return XRaceDocument._HorseTable.GetBysceneid(sceneId); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HORSE_RACE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING; + if (flag) + { + this.ReqRaceAllInfo(); + this.ReqDoodadItemList(); + } + } + + public void ReqRaceAllInfo() + { + RpcC2G_HorseReConnect rpc = new RpcC2G_HorseReConnect(); + XSingleton.singleton.Send(rpc); + } + + public void ReqDoodadItemList() + { + RpcC2G_DoodadItemAllSkillReq rpc = new RpcC2G_DoodadItemAllSkillReq(); + XSingleton.singleton.Send(rpc); + } + + public void RefreshAllInfo(HorseReConnectRes oRes) + { + this.RefreshRank(oRes.rank); + this.RaceComplete(oRes.selfarrive); + this.RaceEndLeftTime(oRes.otherreach); + } + + public void RefreshRank(HorseRank data) + { + bool flag = this.RaceHandler != null && data != null; + if (flag) + { + bool rankSpecified = data.rankSpecified; + if (rankSpecified) + { + this.RaceHandler.RefreshRank(data.rank); + } + bool turnsSpecified = data.turnsSpecified; + if (turnsSpecified) + { + this.RaceHandler.RefreshLap(data.turns); + } + } + } + + public void RefreshTime(HorseCountDownTime data) + { + bool flag = this.RaceHandler != null && data != null; + if (flag) + { + bool timeSpecified = data.timeSpecified; + if (timeSpecified) + { + this.RaceHandler.RefreshTime(data.time / 1000f); + } + } + } + + public void RaceComplete(HorseFinal data) + { + bool flag = this.RaceHandler != null && data != null; + if (flag) + { + bool rankSpecified = data.rankSpecified; + if (rankSpecified) + { + this.RaceHandler.RefreshRank(data.rank); + this.RaceHandler.ShowRank(data.rank); + } + bool turnsSpecified = data.turnsSpecified; + if (turnsSpecified) + { + this.RaceHandler.RefreshLap(data.turns); + } + bool timeSpecified = data.timeSpecified; + if (timeSpecified) + { + this.RaceHandler.RefreshTime(data.time); + } + this.RaceHandler.RaceEnd(); + } + } + + public void RaceEndLeftTime(HorseAnimation data) + { + bool flag = this.RaceHandler != null && data != null; + if (flag) + { + bool timeSpecified = data.timeSpecified; + if (timeSpecified) + { + this.RaceHandler.ShowEndLeftTime(data.time / 1000f); + } + } + } + + public void UseDoodad(ItemBuffOpArg oArg, ItemBuffOpRes oRes) + { + bool flag = this.RaceHandler != null; + if (flag) + { + bool flag2 = oArg.indexSpecified && oArg.op == 3u; + if (flag2) + { + this.RaceHandler.UseDoodad(oArg.index); + } + } + } + + public void AddInfo(DoodadItemUseNtf data) + { + bool flag = DlgBase.singleton.m_BattleShowInfoHandler == null; + if (!flag) + { + XEntity entity = XSingleton.singleton.GetEntity(data.roleid); + BuffTable.RowData buffData = XSingleton.singleton.GetBuffData((int)data.buffid, 1); + bool flag2 = entity == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Format("entity not found: {0}", data.roleid), null, null, null, null, null); + } + else + { + bool flag3 = buffData == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Format("RaceAddInfo: Buff data not found: [{0} {1}]", data.buffid, 1), null, null, null, null, null); + } + else + { + bool flag4 = data.roleid == XSingleton.singleton.XPlayerData.RoleID; + string arg; + if (flag4) + { + arg = BattleShowInfoHandler.blue; + } + else + { + arg = BattleShowInfoHandler.red; + } + StringBuilder stringBuilder = new StringBuilder(); + bool flag5 = false; + for (int i = 0; i < buffData.BuffName.Length; i++) + { + bool flag6 = buffData.BuffName[i] == '['; + if (flag6) + { + flag5 = true; + } + bool flag7 = buffData.BuffName[i] == ')'; + if (flag7) + { + flag5 = false; + } + bool flag8 = flag5; + if (flag8) + { + stringBuilder.Append(buffData.BuffName[i]); + } + bool flag9 = buffData.BuffName[i] == '('; + if (flag9) + { + flag5 = true; + } + bool flag10 = buffData.BuffName[i] == ']'; + if (flag10) + { + flag5 = false; + } + } + string newInfo = string.Format(XSingleton.singleton.GetString("RACE_GAME_INFO"), arg, entity.Name, stringBuilder.ToString()); + DlgBase.singleton.m_BattleShowInfoHandler.AddInfo(newInfo); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRaceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRaceDocument.cs.meta new file mode 100644 index 00000000..d294c29e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRaceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 32341218d9867bd4b8daaccdf8e70e0d +timeCreated: 1611403548 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRadialBlur.cs b/Client/Assets/Scripts/XMainClient/XRadialBlur.cs new file mode 100644 index 00000000..3e7df6bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRadialBlur.cs @@ -0,0 +1,19 @@ +using System; +using UnityEngine; + +public class XRadialBlur : XImageEffectBase +{ + public float blurStrength = 6f; + + public float blurWidth = 0.7f; + + private void OnRenderImage(RenderTexture source, RenderTexture dest) + { + base.material.SetTexture("_MainTex", source); + base.material.SetFloat("_BlurStrength", this.blurStrength); + base.material.SetFloat("_BlurWidth", this.blurWidth); + base.material.SetFloat("_iHeight", 1f); + base.material.SetFloat("_iWidth", 1f); + Graphics.Blit(source, dest, base.material); + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRadialBlur.cs.meta b/Client/Assets/Scripts/XMainClient/XRadialBlur.cs.meta new file mode 100644 index 00000000..6907a8ac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRadialBlur.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 052ca5af2e61cc14ea4659a44f01dba9 +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRadioDocument.cs b/Client/Assets/Scripts/XMainClient/XRadioDocument.cs new file mode 100644 index 00000000..b13feaad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRadioDocument.cs @@ -0,0 +1,254 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRadioDocument : XDocComponent + { + public override uint ID + { + get + { + return XRadioDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XRadioDocument"); + + public List hostlist = new List(); + + public List hostIDs = new List(); + + private bool mJoinBigRoomSucc = false; + + public bool isHost = false; + + public XRadioDocument.BigRoomState roomState = XRadioDocument.BigRoomState.OutRoom; + + private bool startLoop = false; + + private float acc_time = 0f; + + private float all_time = 0f; + + private int TimeOut = 8; + + private bool cacheRadioOpen = false; + + public enum BigRoomState + { + OutRoom, + Processing, + InRoom + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this.startLoop; + if (flag) + { + this.acc_time += fDeltaT; + this.all_time += fDeltaT; + bool flag2 = this.all_time > (float)this.TimeOut && !this.mJoinBigRoomSucc; + if (flag2) + { + this.startLoop = false; + this.mJoinBigRoomSucc = false; + this.roomState = XRadioDocument.BigRoomState.OutRoom; + DlgBase.singleton.Refresh(false); + XSingleton.singleton.AddGreenLog("join room timeout, Apollo error!", null, null, null, null, null); + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("FM_ENTER_OVERTIME"), "fece00"); + } + bool flag3 = this.acc_time > 0.4f; + if (flag3) + { + bool flag4 = !this.mJoinBigRoomSucc; + if (flag4) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + bool joinRoomBigResult = xapolloManager.GetJoinRoomBigResult(); + if (joinRoomBigResult) + { + this.startLoop = false; + this.mJoinBigRoomSucc = true; + xapolloManager.openMusic = true; + xapolloManager.openSpeak = false; + this.roomState = XRadioDocument.BigRoomState.InRoom; + this.MuteSounds(false); + DlgBase.singleton.Refresh(true); + DlgBase.singleton.UpdateHostInfo(); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_ENTER_SUCCESS"), "fece00"); + XSingleton.singleton.StopAutoPlay(); + XSingleton.singleton.EnableAutoPlay(false); + } + } + this.acc_time = 0f; + } + } + } + + public override void OnDetachFromHost() + { + this.cacheRadioOpen = false; + this.QuitApolloBigRoom(); + base.OnDetachFromHost(); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag) + { + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + bool flag2 = specificDocument.GetBattleRaw().real > 0; + if (flag2) + { + bool flag3 = this.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag3) + { + this.cacheRadioOpen = true; + } + this.QuitBigRoom(); + } + } + else + { + bool flag4 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag4) + { + bool flag5 = this.cacheRadioOpen; + if (flag5) + { + bool flag6 = this.roomState == XRadioDocument.BigRoomState.OutRoom; + if (flag6) + { + this.JoinBigRoom(); + this.cacheRadioOpen = false; + } + } + } + } + } + + public void UpdateHost(List names, List roles) + { + bool flag = names != null; + if (flag) + { + this.hostlist = names; + this.hostIDs = roles; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.UpdateHostInfo(); + } + } + + public void MuteSounds(bool mute) + { + bool flag = this.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + if (mute) + { + xapolloManager.SetMusicVolum(0); + } + else + { + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + int @int = XSingleton.singleton.GetInt("SetSpeakerVolume"); + xapolloManager.SetMusicVolum((int)((float)@int * specificDocument.voiceVolme)); + } + } + } + + public void JoinBigRoom() + { + bool flag = !this.mJoinBigRoomSucc && !this.startLoop; + if (flag) + { + this.roomState = XRadioDocument.BigRoomState.Processing; + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("FM_ENTERING"), "fece00"); + RpcC2M_JoinFmRoom rpc = new RpcC2M_JoinFmRoom(); + XSingleton.singleton.Send(rpc); + } + } + + public void ProcessJoinBigRoom(JoinLargeRoomReply reply) + { + this.acc_time = 0f; + this.all_time = 0f; + this.startLoop = true; + this.mJoinBigRoomSucc = false; + XSingleton.singleton.AddLog("url:", reply.url, " bussinessid:" + reply.bussniessid, " role:" + reply.key, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("roomid: ", reply.roomid.ToString(), " roomkey:", reply.roomkey.ToString(), null, null, XDebugColor.XDebug_None); + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + xapolloManager.SetRealtimeMode(); + xapolloManager.JoinBigRoom(reply.url, (int)reply.key, reply.bussniessid, (long)reply.roomid, (long)reply.roomkey, (short)reply.memberid); + } + + public void ProcessTimeOut() + { + this.mJoinBigRoomSucc = false; + this.roomState = XRadioDocument.BigRoomState.OutRoom; + DlgBase.singleton.Refresh(false); + } + + public void QuitBigRoom() + { + this.QuitApolloBigRoom(); + PtcC2M_LeaveLargeRoom proto = new PtcC2M_LeaveLargeRoom(); + XSingleton.singleton.Send(proto); + } + + private void QuitApolloBigRoom() + { + try + { + this.startLoop = false; + this.mJoinBigRoomSucc = false; + bool flag = this.roomState == XRadioDocument.BigRoomState.InRoom; + if (flag) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + bool flag2 = xapolloManager != null; + if (flag2) + { + xapolloManager.openSpeak = false; + xapolloManager.QuitBigRoom(); + } + } + this.roomState = XRadioDocument.BigRoomState.OutRoom; + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + XSingleton.singleton.EnableAutoPlay(true); + XSingleton.singleton.StartAutoPlay(true, true); + } + } + catch (Exception ex) + { + XSingleton.singleton.AddLog(ex.StackTrace.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + public bool isHosting() + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + return this.roomState != XRadioDocument.BigRoomState.OutRoom && this.isHost && xapolloManager.openSpeak; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRadioDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRadioDocument.cs.meta new file mode 100644 index 00000000..4c2135b4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRadioDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 27403430237958943afa8e90d3f1c935 +timeCreated: 1611403470 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs b/Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs new file mode 100644 index 00000000..265c19a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal struct XRandAttrInfo + { + public bool bPreview; + + public List RandAttr; + + public void Init() + { + this.bPreview = false; + bool flag = this.RandAttr == null; + if (flag) + { + this.RandAttr = new List(); + } + else + { + this.RandAttr.Clear(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs.meta new file mode 100644 index 00000000..0a16c95d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRandAttrInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5a72f0af5967dfd45b450addfcb79374 +timeCreated: 1611403791 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs b/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs new file mode 100644 index 00000000..a8456d8c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs @@ -0,0 +1,120 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRankBehaviour : DlgBehaviourBase + { + public static readonly uint RANK_UI_TYPE_COUNT = 12u; + + public IXUIButton m_close; + + public XUITabControl m_tabcontrol = new XUITabControl(); + + public IXUIWrapContent[] m_ListPanel = new IXUIWrapContent[XRankBehaviour.RANK_UI_TYPE_COUNT]; + + public IXUISprite m_PopularSprite; + + public IXUILabel m_PopularLabel; + + public GameObject[] m_MyRankFrame = new GameObject[XRankBehaviour.RANK_UI_TYPE_COUNT]; + + public GameObject[] m_TitleFrame = new GameObject[XRankBehaviour.RANK_UI_TYPE_COUNT]; + + public XUIPool m_RankGuildPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIPanel m_ListIXUIPanel; + + public IXPositionGroup m_ListPositionGroup = null; + + public IXUIScrollView m_ListScrollView; + + public GameObject m_CharacterInfoFrame; + + public IXUILabel m_CharName; + + public IXUISprite m_CharProfession; + + public IXUILabel m_GuildName; + + public IXUISprite m_GuildIcon; + + public IXUILabel m_EmptyRankLabel; + + public IXPositionGroup m_EmptyRankLabelGroup = null; + + public GameObject m_PetInfoFrame; + + public IUIDummy m_PlayerSnapshot; + + public IUIDummy m_PetSnapshot; + + public IUIDummy m_SpriteSnapshot; + + public IXUISprite m_CharacterDummyFrame; + + public IXUISprite m_PetDummyFrame; + + public GameObject m_OriginalRank; + + public Transform m_FlowerRankRoot; + + public IXUIButton m_DragonGuildHelp; + + private void Awake() + { + this.m_close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + string[] array = new string[] + { + "BaseList", + "GuildList", + "TwoNameList", + "GuildBossList", + "PetList", + "QualifyList", + "BigMeleeList", + "TroopList", + "SkyArenaList", + "WorldBossList", + "CampDuelList", + "TeamMysterious" + }; + Transform tabTpl = base.transform.Find("Bg/TabList/Panel/TabTpl"); + this.m_tabcontrol.SetTabTpl(tabTpl); + for (uint num = 0u; num < XRankBehaviour.RANK_UI_TYPE_COUNT; num += 1u) + { + this.m_ListPanel[(int)num] = (base.transform.Find("Bg/Bg/Panel/" + array[(int)num]).GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_MyRankFrame[(int)num] = base.transform.Find("Bg/Bg/MyRankFrame/" + array[(int)num]).gameObject; + this.m_TitleFrame[(int)num] = base.transform.Find("Bg/Bg/Titles/" + array[(int)num]).gameObject; + } + this.m_CharacterInfoFrame = base.transform.Find("Bg/Bg/CharacterInfoFrame").gameObject; + this.m_CharName = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/Name").GetComponent("XUILabel") as IXUILabel); + this.m_CharName.SetText(""); + this.m_CharProfession = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/ProfIcon").GetComponent("XUISprite") as IXUISprite); + this.m_GuildName = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/Guild").GetComponent("XUILabel") as IXUILabel); + this.m_GuildName.SetText(""); + this.m_GuildIcon = (this.m_CharacterInfoFrame.transform.Find("TitleFrame/GulidIcon").GetComponent("XUISprite") as IXUISprite); + this.m_CharacterDummyFrame = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame").GetComponent("XUISprite") as IXUISprite); + this.m_PetInfoFrame = base.transform.Find("Bg/Bg/PetInfoFrame").gameObject; + this.m_PetDummyFrame = (this.m_PetInfoFrame.transform.Find("PetFrame").GetComponent("XUISprite") as IXUISprite); + this.m_ListIXUIPanel = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIPanel") as IXUIPanel); + this.m_ListPositionGroup = (base.transform.Find("Bg/Bg/Panel").GetComponent("PositionGroup") as IXPositionGroup); + this.m_ListScrollView = (base.transform.Find("Bg/Bg/Panel").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_EmptyRankLabel = (base.transform.Find("Bg/Bg/Panel/EmptyRank").GetComponent("XUILabel") as IXUILabel); + this.m_EmptyRankLabel.SetText(""); + this.m_EmptyRankLabelGroup = (this.m_EmptyRankLabel.gameObject.transform.GetComponent("PositionGroup") as IXPositionGroup); + this.m_PlayerSnapshot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_PetSnapshot = (this.m_PetInfoFrame.transform.Find("PetFrame/Snapshot").GetComponent("UIDummy") as IUIDummy); + this.m_SpriteSnapshot = (this.m_CharacterInfoFrame.transform.Find("CharacterFrame/SpriteSnapshot").GetComponent("UIDummy") as IUIDummy); + this.m_PopularSprite = (base.transform.Find("Bg/Bg/Titles/GuildList/Popularity/Tips").GetComponent("XUISprite") as IXUISprite); + this.m_PopularLabel = (base.transform.Find("Bg/Bg/Titles/GuildList/PopularityTips").GetComponent("XUILabel") as IXUILabel); + this.m_OriginalRank = base.transform.Find("Bg/Bg").gameObject; + this.m_FlowerRankRoot = base.transform.Find("Bg/FlowerRankRoot"); + this.m_DragonGuildHelp = (base.transform.Find("Bg/Bg/Titles/TroopList/Help").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs.meta new file mode 100644 index 00000000..6d7e254f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a69c8600937535d4cbb5c6ee58143131 +timeCreated: 1611404289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRankDocument.cs b/Client/Assets/Scripts/XMainClient/XRankDocument.cs new file mode 100644 index 00000000..f265177c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankDocument.cs @@ -0,0 +1,677 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRankDocument : XDocComponent + { + public override uint ID + { + get + { + return XRankDocument.uuID; + } + } + + public XRankView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public static XRankDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XRankDocument.uuID) as XRankDocument; + } + } + + public XBaseRankList PPTRankList + { + get + { + return this._PPTRankList; + } + } + + public XBaseRankList LevelRankList + { + get + { + return this._LevelRankList; + } + } + + public XBaseRankList FashionRankList + { + get + { + return this._FashionRankList; + } + } + + public XGuildRankList GuildRankList + { + get + { + return this._GuildRankList; + } + } + + public XDragonGuildRankList DragonRankList + { + get + { + return this._DragonGuildRankList; + } + } + + public XTeamTowerRankList TowerRankList + { + get + { + return this._TowerRankList; + } + } + + public XGuildBossRankList GuildBossRankList + { + get + { + return this._GuildBossRankList; + } + } + + public XPetRankList PetRankList + { + get + { + return this._PetRankList; + } + } + + public XBigMeleeRankList BigMeleeRankList + { + get + { + return this._BigMeleeRankList; + } + } + + public XSkyArenaList SkyArenaList + { + get + { + return this._XSkyArenaList; + } + } + + public XQualifyingRankList QualifyingRankList + { + get + { + return this._QualifyingRankList; + } + } + + public XQualifyingRankList LastWeekQualifyingRankList + { + get + { + return this._LastWeekQualifyingRankList; + } + } + + public XLeagueTeamRankList LastWeekLeagueTeamRankList + { + get + { + return this._LastWeekLeagueTeamRankList; + } + } + + public XRiftRankList RiftRankList + { + get + { + return this._RiftRankList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("RankDocument"); + + public static readonly uint INVALID_RANK = uint.MaxValue; + + private XRankView _view = null; + + private XPPTRankList _PPTRankList; + + private XLevelRankList _LevelRankList; + + private XFashionRankList _FashionRankList; + + private XGuildRankList _GuildRankList; + + private XDragonGuildRankList _DragonGuildRankList; + + private XTeamTowerRankList _TowerRankList; + + private XGuildBossRankList _GuildBossRankList; + + private XWorldBossDamageRankList _WorldBossRankList; + + private XPetRankList _PetRankList; + + private XSpriteRankList _SpriteRankList; + + private XQualifyingRankList _QualifyingRankList; + + private XLeagueTeamRankList _LeagueTeamRankList; + + private XRiftRankList _RiftRankList; + + private XCampDuelRankLeftList _CampDuelRankLeftList; + + private XCampDuelRankRightList _CampDuelRankRightList; + + private XLeagueTeamRankList _LastWeekLeagueTeamRankList; + + private XQualifyingRankList _LastWeekQualifyingRankList; + + private XBigMeleeRankList _BigMeleeRankList; + + private XSkyArenaList _XSkyArenaList; + + public XRankType currentSelectRankList = XRankType.PPTRank; + + public uint currentSelectIndex = 0u; + + private Dictionary _RankDic = new Dictionary(default(XFastEnumIntEqualityComparer)); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._PPTRankList = new XPPTRankList(); + this._LevelRankList = new XLevelRankList(); + this._GuildRankList = new XGuildRankList(); + this._DragonGuildRankList = new XDragonGuildRankList(); + this._FashionRankList = new XFashionRankList(); + this._TowerRankList = new XTeamTowerRankList(); + this._GuildBossRankList = new XGuildBossRankList(); + this._WorldBossRankList = new XWorldBossDamageRankList(); + this._PetRankList = new XPetRankList(); + this._SpriteRankList = new XSpriteRankList(); + this._QualifyingRankList = new XQualifyingRankList(); + this._LeagueTeamRankList = new XLeagueTeamRankList(); + this._LastWeekQualifyingRankList = new XQualifyingRankList(); + this._LastWeekLeagueTeamRankList = new XLeagueTeamRankList(); + this._BigMeleeRankList = new XBigMeleeRankList(); + this._XSkyArenaList = new XSkyArenaList(); + this._RiftRankList = new XRiftRankList(); + this._CampDuelRankLeftList = new XCampDuelRankLeftList(); + this._CampDuelRankRightList = new XCampDuelRankRightList(); + this._RankDic.Clear(); + this._RankDic.Add(XRankType.PPTRank, this._PPTRankList); + this._RankDic.Add(XRankType.LevelRank, this._LevelRankList); + this._RankDic.Add(XRankType.FashionRank, this._FashionRankList); + this._RankDic.Add(XRankType.GuildRank, this._GuildRankList); + this._RankDic.Add(XRankType.DragonGuildRank, this._DragonGuildRankList); + this._RankDic.Add(XRankType.TeamTowerRank, this._TowerRankList); + this._RankDic.Add(XRankType.GuildBossRank, this._GuildBossRankList); + this._RankDic.Add(XRankType.WorldBossDamageRank, this._WorldBossRankList); + this._RankDic.Add(XRankType.PetRank, this._PetRankList); + this._RankDic.Add(XRankType.SpriteRank, this._SpriteRankList); + this._RankDic.Add(XRankType.QualifyingRank, this._QualifyingRankList); + this._RankDic.Add(XRankType.LeagueTeamRank, this._LeagueTeamRankList); + this._RankDic.Add(XRankType.LastWeek_PKRank, this._LastWeekQualifyingRankList); + this._RankDic.Add(XRankType.LastWeek_LeagueTeamRank, this._LastWeekLeagueTeamRankList); + this._RankDic.Add(XRankType.BigMeleeRank, this._BigMeleeRankList); + this._RankDic.Add(XRankType.SkyArenaRank, this._XSkyArenaList); + this._RankDic.Add(XRankType.RiftRank, this._RiftRankList); + this._RankDic.Add(XRankType.CampDuelRankLeft, this._CampDuelRankLeftList); + this._RankDic.Add(XRankType.CampDuelRankRight, this._CampDuelRankRightList); + } + + public XBaseRankList GetRankList(XRankType type) + { + XBaseRankList xbaseRankList; + bool flag = this._RankDic.TryGetValue(type, out xbaseRankList); + XBaseRankList result; + if (flag) + { + result = xbaseRankList; + } + else + { + result = null; + } + return result; + } + + public void ReqPetUnitAppearance(ulong roleid, ulong petUID) + { + RpcC2M_GetUnitAppearanceNew rpcC2M_GetUnitAppearanceNew = new RpcC2M_GetUnitAppearanceNew(); + rpcC2M_GetUnitAppearanceNew.oArg.roleid = roleid; + rpcC2M_GetUnitAppearanceNew.oArg.mask = XFastEnumIntEqualityComparer.ToInt(UnitAppearanceField.UNIT_PETS); + rpcC2M_GetUnitAppearanceNew.oArg.type = 6u; + rpcC2M_GetUnitAppearanceNew.oArg.petId = petUID; + XSingleton.singleton.Send(rpcC2M_GetUnitAppearanceNew); + } + + public void ReqUnitAppearance(ulong id) + { + RpcC2M_GetUnitAppearanceNew rpcC2M_GetUnitAppearanceNew = new RpcC2M_GetUnitAppearanceNew(); + rpcC2M_GetUnitAppearanceNew.oArg.roleid = id; + rpcC2M_GetUnitAppearanceNew.oArg.type = 1u; + rpcC2M_GetUnitAppearanceNew.oArg.mask = 17301711; + XSingleton.singleton.Send(rpcC2M_GetUnitAppearanceNew); + } + + public void OnGetUnitAppearance(GetUnitAppearanceRes oRes) + { + bool flag = oRes.UnitAppearance == null; + if (!flag) + { + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.UpdateCharacterInfo(oRes); + } + } + } + + public void ReqRankList(XRankType type) + { + XBaseRankList rankList = this.GetRankList(type); + bool flag = rankList != null; + if (flag) + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(XBaseRankList.GetKKSGType(type)); + rpcC2M_ClientQueryRankListNtf.oArg.TimeStamp = rankList.timeStamp; + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + else + { + XSingleton.singleton.AddErrorLog("Rank type not init: ", type.ToString(), null, null, null, null); + } + } + + public void OnGetRankList(ClientQueryRankListRes oRes) + { + XRankType xtype = XBaseRankList.GetXType((RankeType)oRes.RankType); + bool flag = xtype != XRankType.LeagueTeamRank; + if (flag) + { + this.currentSelectRankList = xtype; + } + bool flag2 = oRes.ErrorCode == ErrorCode.ERR_SUCCESS; + if (flag2) + { + XBaseRankList rankList = this.GetRankList(xtype); + bool flag3 = rankList != null; + if (flag3) + { + bool flag4 = oRes.RankList != null; + if (flag4) + { + rankList.timeStamp = oRes.TimeStamp; + XRankDocument.ProcessRankListData(oRes.RankList, rankList); + XRankDocument.ProcessSelfRankData(oRes, rankList); + } + } + else + { + XSingleton.singleton.AddErrorLog("Rank type not inited: ", xtype.ToString(), null, null, null, null); + } + } + bool flag5 = xtype != XRankType.LeagueTeamRank; + if (flag5) + { + bool flag6 = this.View != null && this.View.IsVisible(); + if (flag6) + { + this.View.RefreshRankWindow(); + } + } + else + { + bool flag7 = DlgBase.singleton.IsVisible(); + if (flag7) + { + XBaseRankList rankList2 = this.GetRankList(xtype); + DlgBase.singleton.RefreshUI(rankList2); + } + } + } + + public void ReqDragonGuildRankList() + { + RpcC2M_FetchDragonGuildList rpcC2M_FetchDragonGuildList = new RpcC2M_FetchDragonGuildList(); + rpcC2M_FetchDragonGuildList.oArg.start = 0; + rpcC2M_FetchDragonGuildList.oArg.count = 20; + rpcC2M_FetchDragonGuildList.oArg.reason = 2; + rpcC2M_FetchDragonGuildList.oArg.sortType = XFastEnumIntEqualityComparer.ToInt(DragonGuildSortType.DragonGuildSortBySceneID); + XSingleton.singleton.Send(rpcC2M_FetchDragonGuildList); + } + + public void ReqMysteriourRanklist() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.RiftRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void ReqGuildRankList() + { + RpcC2M_ReqGuildList rpcC2M_ReqGuildList = new RpcC2M_ReqGuildList(); + rpcC2M_ReqGuildList.oArg.start = 0; + rpcC2M_ReqGuildList.oArg.count = 20; + rpcC2M_ReqGuildList.oArg.reason = 2; + rpcC2M_ReqGuildList.oArg.sortType = 5; + XSingleton.singleton.Send(rpcC2M_ReqGuildList); + } + + public void ReqGuildBossRankList() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.GuildBossRank); + rpcC2M_ClientQueryRankListNtf.oArg.TimeStamp = this._GuildBossRankList.timeStamp; + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void ReqQualifyingRankList() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.PkRealTimeRank); + rpcC2M_ClientQueryRankListNtf.oArg.TimeStamp = 0u; + rpcC2M_ClientQueryRankListNtf.oArg.profession = 0u; + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void ReqLastWeekQualifyingRankList() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.LastWeek_PkRank); + rpcC2M_ClientQueryRankListNtf.oArg.TimeStamp = 3u; + rpcC2M_ClientQueryRankListNtf.oArg.profession = 0u; + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void OnGetDragonGuildList(FetchDragonGuildListArg oArg, FetchDragonGuildRes oRes) + { + this.currentSelectRankList = this._DragonGuildRankList.type; + XRankDocument.ProcessRankListData(oRes.dragonguilds, this._DragonGuildRankList); + XRankDocument.ProcessSelfRankData(oRes.dragonguilds, this._DragonGuildRankList); + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshRankWindow(); + } + } + + public static void ProcessSelfRankData(List data, XDragonGuildRankList rank) + { + XDragonGuildDocument doc = XDragonGuildDocument.Doc; + bool flag = doc.IsInDragonGuild(); + if (flag) + { + rank.myRankInfo = rank.CreateNewInfo(); + XDragonGuildRankInfo xdragonGuildRankInfo = rank.myRankInfo as XDragonGuildRankInfo; + xdragonGuildRankInfo.name = doc.BaseData.dragonGuildName; + xdragonGuildRankInfo.value = (ulong)doc.BaseData.sceneCnt; + xdragonGuildRankInfo.passSceneName = doc.BaseData.sceneName; + xdragonGuildRankInfo.rank = XRankDocument.INVALID_RANK; + for (int i = 0; i < data.Count; i++) + { + bool flag2 = data[i].id == doc.UID; + if (flag2) + { + xdragonGuildRankInfo.rank = (uint)i; + xdragonGuildRankInfo.ProcessData(data[i]); + return; + } + } + } + rank.myRankInfo = null; + } + + public static void ProcessRankListData(List data, XDragonGuildRankList rank) + { + int num = Math.Max(rank.rankList.Count, data.Count); + for (int i = rank.rankList.Count; i < num; i++) + { + rank.rankList.Add(rank.CreateNewInfo()); + } + bool flag = data.Count < rank.rankList.Count; + if (flag) + { + rank.rankList.RemoveRange(data.Count, rank.rankList.Count - data.Count); + } + for (int j = 0; j < rank.rankList.Count; j++) + { + XDragonGuildRankInfo xdragonGuildRankInfo = rank.rankList[j] as XDragonGuildRankInfo; + xdragonGuildRankInfo.ProcessData(data[j]); + xdragonGuildRankInfo.rank = (uint)j; + } + } + + public void OnGetGuildList(FetchGuildListArg oArg, FetchGuildListRes oRes) + { + this.currentSelectRankList = this._GuildRankList.type; + XRankDocument.ProcessRankListData(oRes.guilds, this._GuildRankList); + XRankDocument.ProcessSelfRankData(oRes.guilds, this._GuildRankList); + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshRankWindow(); + } + } + + private static bool ContainsRole(ulong roleid, XBaseRankList rank) + { + bool flag = rank != null && rank.rankList != null; + if (flag) + { + for (int i = 0; i < rank.rankList.Count; i++) + { + bool flag2 = rank.rankList[i].id == roleid; + if (flag2) + { + return true; + } + } + } + return false; + } + + public static void ProcessRankListData(RankList data, XBaseRankList rank) + { + bool flag = rank.type == XRankType.RiftRank; + if (flag) + { + int count = data.RankData.Count; + rank.rankList.Clear(); + int i = 0; + int count2 = data.RankData.Count; + while (i < count2) + { + List roleNames = data.RankData[i].RoleNames; + for (int j = 0; j < roleNames.Count; j++) + { + bool flag2 = XRankDocument.ContainsRole(data.RankData[i].RoleIds[j], rank); + if (!flag2) + { + XBaseRankInfo xbaseRankInfo = rank.CreateNewInfo(); + xbaseRankInfo.ProcessData(data.RankData[i]); + xbaseRankInfo.name = roleNames[j]; + xbaseRankInfo.id = data.RankData[i].RoleIds[j]; + xbaseRankInfo.rank = (uint)i; + rank.rankList.Add(xbaseRankInfo); + bool flag3 = xbaseRankInfo.id == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + rank.myRankInfo = xbaseRankInfo; + } + } + } + i++; + } + } + else + { + int num = Math.Max(rank.rankList.Count, data.RankData.Count); + for (int k = rank.rankList.Count; k < num; k++) + { + rank.rankList.Add(rank.CreateNewInfo()); + } + bool flag4 = data.RankData.Count < rank.rankList.Count; + if (flag4) + { + rank.rankList.RemoveRange(data.RankData.Count, rank.rankList.Count - data.RankData.Count); + } + for (int l = 0; l < rank.rankList.Count; l++) + { + XBaseRankInfo xbaseRankInfo2 = rank.rankList[l]; + xbaseRankInfo2.ProcessData(data.RankData[l]); + xbaseRankInfo2.rank = (uint)l; + } + } + } + + public static void ProcessRankListData(List data, XGuildRankList rank) + { + int num = Math.Max(rank.rankList.Count, data.Count); + for (int i = rank.rankList.Count; i < num; i++) + { + rank.rankList.Add(rank.CreateNewInfo()); + } + bool flag = data.Count < rank.rankList.Count; + if (flag) + { + rank.rankList.RemoveRange(data.Count, rank.rankList.Count - data.Count); + } + for (int j = 0; j < rank.rankList.Count; j++) + { + XGuildRankInfo xguildRankInfo = rank.rankList[j] as XGuildRankInfo; + xguildRankInfo.ProcessData(data[j]); + xguildRankInfo.rank = (uint)j; + } + } + + public static void ProcessRankListData(List data, XBigMeleeRankList rank) + { + int num = Math.Max(rank.rankList.Count, data.Count); + for (int i = rank.rankList.Count; i < num; i++) + { + rank.rankList.Add(rank.CreateNewInfo()); + } + bool flag = data.Count < rank.rankList.Count; + if (flag) + { + rank.rankList.RemoveRange(data.Count, rank.rankList.Count - data.Count); + } + for (int j = 0; j < rank.rankList.Count; j++) + { + XBigMeleeRankInfo xbigMeleeRankInfo = rank.rankList[j] as XBigMeleeRankInfo; + xbigMeleeRankInfo.ProcessData(data[j]); + xbigMeleeRankInfo.rank = (uint)j; + } + } + + public static void ProcessSelfRankData(ClientQueryRankListRes oRes, XBaseRankList rank) + { + bool flag = oRes.RoleRankData != null; + if (flag) + { + XRankType xtype = XBaseRankList.GetXType((RankeType)oRes.RankType); + bool flag2 = xtype != XRankType.RiftRank || rank.myRankInfo == null; + if (flag2) + { + rank.myRankInfo = rank.CreateNewInfo(); + rank.myRankInfo.ProcessData(oRes.RoleRankData); + rank.upperBound = oRes.RankAllCount; + } + } + else + { + rank.myRankInfo = null; + } + } + + public static void ProcessSelfRankData(List data, XGuildRankList rank) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument.bInGuild; + if (bInGuild) + { + rank.myRankInfo = rank.CreateNewInfo(); + XGuildRankInfo xguildRankInfo = rank.myRankInfo as XGuildRankInfo; + xguildRankInfo.name = specificDocument.BasicData.guildName; + xguildRankInfo.name2 = specificDocument.BasicData.leaderName; + xguildRankInfo.value = (ulong)specificDocument.BasicData.level; + xguildRankInfo.rank = XRankDocument.INVALID_RANK; + for (int i = 0; i < data.Count; i++) + { + bool flag = data[i].id == specificDocument.UID; + if (flag) + { + xguildRankInfo.rank = (uint)i; + xguildRankInfo.ProcessData(data[i]); + return; + } + } + } + rank.myRankInfo = null; + } + + public void SelectItem(uint index) + { + this.currentSelectIndex = index; + XBaseRankList rankList = this.GetRankList(this.currentSelectRankList); + bool flag = rankList != null && rankList.type != XRankType.GuildRank && rankList.type != XRankType.DragonGuildRank && rankList.type != XRankType.TeamTowerRank && rankList.type != XRankType.GuildBossRank && rankList.type != XRankType.LeagueTeamRank; + if (flag) + { + bool flag2 = (ulong)index < (ulong)((long)rankList.rankList.Count); + if (flag2) + { + bool flag3 = rankList.type == XRankType.PetRank; + if (flag3) + { + XPetRankInfo xpetRankInfo = rankList.rankList[(int)index] as XPetRankInfo; + this.View.UpdatePetInfo(xpetRankInfo.petID); + } + else + { + XBaseRankInfo xbaseRankInfo = rankList.rankList[(int)index]; + this.ReqUnitAppearance(xbaseRankInfo.id); + this.View.UpdateGuildInfo(xbaseRankInfo); + } + } + else + { + XSingleton.singleton.AddLog(string.Format("index out of range. index = {0} while list count = {1}", index, rankList.rankList.Count), null, null, null, null, null, XDebugColor.XDebug_None); + } + } + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.RefreshContent(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRankDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRankDocument.cs.meta new file mode 100644 index 00000000..518196f5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8115f9f17346f4c4d8ff0b736e3fb64a +timeCreated: 1611404035 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRankType.cs b/Client/Assets/Scripts/XMainClient/XRankType.cs new file mode 100644 index 00000000..982658e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankType.cs @@ -0,0 +1,39 @@ +using System; + +namespace XMainClient +{ + public enum XRankType + { + PPTRank, + LevelRank, + GuildRank, + DragonGuildRank, + WorldBossGuildRank, + WorldBossGuildRoleRank, + WorldBossDamageRank, + GuildBossRank, + GuildBossRoleRank, + FashionRank, + TeamTowerRank, + FlowerTodayRank, + FlowerYesterdayRank, + FlowerHistoryRank, + FlowerWeekRank, + FlowerActivityRank, + PetRank, + BigMeleeRank, + SkyArenaRank, + ChickenDinnerRank, + CampDuelRankLeft, + CampDuelRankRight, + SpriteRank, + QualifyingRank, + LeagueTeamRank, + LastWeek_PKRank, + LastWeek_NestWeekRank, + LastWeek_HeroBattleRank, + LastWeek_LeagueTeamRank, + RiftRank, + InValid + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRankType.cs.meta b/Client/Assets/Scripts/XMainClient/XRankType.cs.meta new file mode 100644 index 00000000..0b0d2a02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fd134357040085c40be2e965c4a9c844 +timeCreated: 1611404936 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRankView.cs b/Client/Assets/Scripts/XMainClient/XRankView.cs new file mode 100644 index 00000000..869e0e02 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankView.cs @@ -0,0 +1,1481 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRankView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/RankDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XRankDocument _doc = null; + + private ulong _viewGuildId = 0UL; + + private XDummy _PlayerDummy = null; + + private XDummy _PetDummy = null; + + private XDummy _SpriteDummy = null; + + private uint m_PreUIType = 9999999u; + + private UnitAppearance emptyUA = null; + + private XFlowerRankHandler _FlowerRankHandler = null; + + private XCampDuelRankRewardHandler _RankRewardHandler = null; + + protected XSubSysRedPointMgr redpointMgr = new XSubSysRedPointMgr(); + + public Dictionary RankUIType = new Dictionary(default(XFastEnumIntEqualityComparer)); + + public Dictionary RankItemHandlers = new Dictionary(default(XFastEnumIntEqualityComparer)); + + private XRankType[] m_RankTypeList = new XRankType[] + { + XRankType.PPTRank, + XRankType.LevelRank, + XRankType.GuildRank, + XRankType.DragonGuildRank, + XRankType.FashionRank, + XRankType.TeamTowerRank, + XRankType.GuildBossRank, + XRankType.WorldBossDamageRank, + XRankType.PetRank, + XRankType.SpriteRank, + XRankType.QualifyingRank, + XRankType.SkyArenaRank, + XRankType.CampDuelRankLeft, + XRankType.CampDuelRankRight, + XRankType.BigMeleeRank + }; + + public delegate void SetRankItemHandler(GameObject itemGo, XBaseRankInfo info, int index); + + public XRankView() + { + this.RankUIType.Clear(); + this.RankUIType.Add(XRankType.PPTRank, 0u); + this.RankUIType.Add(XRankType.LevelRank, 0u); + this.RankUIType.Add(XRankType.GuildRank, 1u); + this.RankUIType.Add(XRankType.DragonGuildRank, 7u); + this.RankUIType.Add(XRankType.FashionRank, 0u); + this.RankUIType.Add(XRankType.TeamTowerRank, 2u); + this.RankUIType.Add(XRankType.GuildBossRank, 3u); + this.RankUIType.Add(XRankType.WorldBossDamageRank, 9u); + this.RankUIType.Add(XRankType.PetRank, 4u); + this.RankUIType.Add(XRankType.SpriteRank, 0u); + this.RankUIType.Add(XRankType.QualifyingRank, 5u); + this.RankUIType.Add(XRankType.BigMeleeRank, 6u); + this.RankUIType.Add(XRankType.SkyArenaRank, 8u); + this.RankUIType.Add(XRankType.CampDuelRankLeft, 10u); + this.RankUIType.Add(XRankType.CampDuelRankRight, 10u); + this.RankUIType.Add(XRankType.RiftRank, 11u); + this.RankItemHandlers.Clear(); + this.RankItemHandlers.Add(XRankType.PPTRank, new XRankView.SetRankItemHandler(this._SetBaseRankItem)); + this.RankItemHandlers.Add(XRankType.LevelRank, new XRankView.SetRankItemHandler(this._SetBaseRankItem)); + this.RankItemHandlers.Add(XRankType.GuildRank, new XRankView.SetRankItemHandler(this._SetGuildRankItem)); + this.RankItemHandlers.Add(XRankType.DragonGuildRank, new XRankView.SetRankItemHandler(this._SetDragonGuildRankItem)); + this.RankItemHandlers.Add(XRankType.FashionRank, new XRankView.SetRankItemHandler(this._SetBaseRankItem)); + this.RankItemHandlers.Add(XRankType.TeamTowerRank, new XRankView.SetRankItemHandler(this._SetTowerRankItem)); + this.RankItemHandlers.Add(XRankType.GuildBossRank, new XRankView.SetRankItemHandler(this._SetGuildBossRankItem)); + this.RankItemHandlers.Add(XRankType.WorldBossDamageRank, new XRankView.SetRankItemHandler(this._SetWorldBossRankItem)); + this.RankItemHandlers.Add(XRankType.PetRank, new XRankView.SetRankItemHandler(this._SetPetRankItem)); + this.RankItemHandlers.Add(XRankType.SpriteRank, new XRankView.SetRankItemHandler(this._SetBaseRankItem)); + this.RankItemHandlers.Add(XRankType.QualifyingRank, new XRankView.SetRankItemHandler(this._SetQualifyingRankItem)); + this.RankItemHandlers.Add(XRankType.LastWeek_PKRank, new XRankView.SetRankItemHandler(this._SetQualifyingRankItem)); + this.RankItemHandlers.Add(XRankType.BigMeleeRank, new XRankView.SetRankItemHandler(this._SetBigMeleeRankItem)); + this.RankItemHandlers.Add(XRankType.SkyArenaRank, new XRankView.SetRankItemHandler(this._SetSkyArenaRankItem)); + this.RankItemHandlers.Add(XRankType.CampDuelRankLeft, new XRankView.SetRankItemHandler(this._SetCampDuelRankLeftItem)); + this.RankItemHandlers.Add(XRankType.CampDuelRankRight, new XRankView.SetRankItemHandler(this._SetCampDuelRankRightItem)); + this.RankItemHandlers.Add(XRankType.RiftRank, new XRankView.SetRankItemHandler(this._SetRiftRankItem)); + } + + protected override void Init() + { + XSingleton.singleton.RegisterSubSysRedPointMgr(XSysDefine.XSys_Rank, this.redpointMgr); + this._doc = XDocuments.GetSpecificDocument(XRankDocument.uuID); + this._doc.View = this; + this.m_PreUIType = 9999999u; + for (int i = 0; i < this.m_RankTypeList.Length; i++) + { + uint num; + XRankView.SetRankItemHandler setHandler; + bool flag = !this._GetUIAndHandler(this.m_RankTypeList[i], out num, out setHandler); + if (!flag) + { + this._SetMyRankFrame(base.uiBehaviour.m_MyRankFrame[(int)num], null, 0u, setHandler); + } + } + DlgHandlerBase.EnsureCreate(ref this._FlowerRankHandler, base.uiBehaviour.m_FlowerRankRoot, false, this); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_PopularSprite.RegisterSpritePressEventHandler(new SpritePressEventHandler(this.OnPopularTipsShow)); + for (int i = 0; i < base.uiBehaviour.m_ListPanel.Length; i++) + { + base.uiBehaviour.m_ListPanel[i].RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this._OnWrapContentItemUpdated)); + } + base.uiBehaviour.m_CharacterDummyFrame.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this._OnCharacterDrag)); + base.uiBehaviour.m_PetDummyFrame.RegisterSpriteDragEventHandler(new SpriteDragEventHandler(this._OnPetDrag)); + base.uiBehaviour.m_DragonGuildHelp.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnDragonGuildHelpBtnClick)); + } + + private bool _OnDragonGuildHelpBtnClick(IXUIButton button) + { + DlgBase.singleton.ShowHelp(XSysDefine.XSys_Rank_DragonGuild); + return true; + } + + private bool _OnCharacterDrag(Vector2 delta) + { + bool flag = this._PlayerDummy != null && !this._PlayerDummy.Deprecated; + if (flag) + { + XSingleton.singleton.RotateDummy(this._PlayerDummy, -delta.x / 2f); + } + return true; + } + + private bool _OnPetDrag(Vector2 delta) + { + bool flag = this._PetDummy != null && !this._PetDummy.Deprecated; + if (flag) + { + XSingleton.singleton.RotateDummy(this._PetDummy, -delta.x / 2f); + } + return true; + } + + private bool OnPopularTipsShow(IXUISprite sprite, bool isPressed) + { + if (isPressed) + { + bool flag = !base.uiBehaviour.m_PopularLabel.IsVisible(); + if (flag) + { + base.uiBehaviour.m_PopularLabel.SetVisible(true); + } + base.uiBehaviour.m_PopularLabel.SetText(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("GUILD_RANK_TIPS"))); + } + else + { + bool flag2 = base.uiBehaviour.m_PopularLabel.IsVisible(); + if (flag2) + { + base.uiBehaviour.m_PopularLabel.SetVisible(false); + } + } + return false; + } + + protected override void OnShow() + { + base.OnShow(); + base.Alloc3DAvatarPool("XRankView"); + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_uiBehaviour.m_PlayerSnapshot != null; + if (flag) + { + this.m_uiBehaviour.m_PlayerSnapshot.RefreshRenderQueue = null; + } + bool flag2 = this.m_uiBehaviour.m_PetSnapshot != null; + if (flag2) + { + this.m_uiBehaviour.m_PetSnapshot.RefreshRenderQueue = null; + } + bool flag3 = this.m_uiBehaviour.m_SpriteSnapshot != null; + if (flag3) + { + this.m_uiBehaviour.m_SpriteSnapshot.RefreshRenderQueue = null; + } + bool flag4 = this._FlowerRankHandler != null; + if (flag4) + { + this._FlowerRankHandler.ClearPreTabTextures(); + } + base.Return3DAvatarPool(); + this._PlayerDummy = null; + this._PetDummy = null; + this._SpriteDummy = null; + this.redpointMgr.SetupRedPoints(null); + } + + public override void StackRefresh() + { + base.StackRefresh(); + base.Alloc3DAvatarPool("XRankView"); + XSingleton.singleton.EnableCommonDummy(this._PlayerDummy, this.m_uiBehaviour.m_PlayerSnapshot, true); + XSingleton.singleton.EnableCommonDummy(this._PetDummy, this.m_uiBehaviour.m_PetSnapshot, true); + XSingleton.singleton.EnableCommonDummy(this._SpriteDummy, this.m_uiBehaviour.m_SpriteSnapshot, true); + } + + protected override void OnUnload() + { + bool flag = this.m_uiBehaviour.m_PlayerSnapshot != null; + if (flag) + { + this.m_uiBehaviour.m_PlayerSnapshot.RefreshRenderQueue = null; + } + bool flag2 = this.m_uiBehaviour.m_PetSnapshot != null; + if (flag2) + { + this.m_uiBehaviour.m_PetSnapshot.RefreshRenderQueue = null; + } + bool flag3 = this.m_uiBehaviour.m_SpriteSnapshot != null; + if (flag3) + { + this.m_uiBehaviour.m_SpriteSnapshot.RefreshRenderQueue = null; + } + base.Return3DAvatarPool(); + this._PlayerDummy = null; + this._PetDummy = null; + this._SpriteDummy = null; + base.OnUnload(); + this._doc.View = null; + DlgHandlerBase.EnsureUnload(ref this._FlowerRankHandler); + DlgHandlerBase.EnsureUnload(ref this._RankRewardHandler); + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private bool _GetUIAndHandler(XRankType rankType, out uint uiType, out XRankView.SetRankItemHandler handler) + { + uiType = 0u; + handler = null; + bool flag = !this.RankUIType.TryGetValue(rankType, out uiType); + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("There's no type called ", rankType.ToString(), null, null, null, null); + result = false; + } + else + { + bool flag2 = !this.RankItemHandlers.TryGetValue(rankType, out handler); + if (flag2) + { + XSingleton.singleton.AddErrorLog("There's no handler for type ", rankType.ToString(), null, null, null, null); + result = false; + } + else + { + result = true; + } + } + return result; + } + + public void ShowRank(XSysDefine sys) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + XSubSysRedPointMgr xsubSysRedPointMgr = this.redpointMgr; + IXUIObject[] btns = base.uiBehaviour.m_tabcontrol.SetupTabs(sys, new XUITabControl.UITabControlCallback(this.OnTabSelectionChanged), false, 1f); + xsubSysRedPointMgr.SetupRedPoints(btns); + } + + public void ShowFlowerRank(XSysDefine sys) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_FlowerRank); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SYSTEM_NOT_OPEN"), "fece00"); + } + else + { + bool flag2 = !base.IsVisible(); + if (flag2) + { + this.SetVisibleWithAnimation(true, null); + } + XSubSysRedPointMgr xsubSysRedPointMgr = this.redpointMgr; + IXUIObject[] btns = base.uiBehaviour.m_tabcontrol.SetupTabs(XSysDefine.XSys_FlowerRank, new XUITabControl.UITabControlCallback(this.OnTabSelectionChanged), false, 1f); + xsubSysRedPointMgr.SetupRedPoints(btns); + base.uiBehaviour.m_OriginalRank.SetActive(false); + this._FlowerRankHandler.DefaultTab = sys; + bool flag3 = !this._FlowerRankHandler.IsVisible(); + if (flag3) + { + this._FlowerRankHandler.SetVisible(true); + } + else + { + this._FlowerRankHandler.ShowRank(); + } + } + } + + public void OnTabSelectionChanged(ulong id) + { + XSingleton.singleton.ClearDummy(this.m_dummPool); + this._PlayerDummy = null; + this._PetDummy = null; + this._SpriteDummy = null; + XSysDefine xsysDefine = (XSysDefine)id; + base.uiBehaviour.m_OriginalRank.SetActive(xsysDefine != XSysDefine.XSys_FlowerRank); + this._FlowerRankHandler.SetVisible(xsysDefine == XSysDefine.XSys_FlowerRank); + bool flag = this.emptyUA == null; + if (flag) + { + this.emptyUA = new UnitAppearance(); + } + XSysDefine xsysDefine2 = xsysDefine; + if (xsysDefine2 != XSysDefine.XSys_FlowerRank) + { + XRankType type; + switch (xsysDefine2) + { + case XSysDefine.XSys_Rank_Rift: + this._FillCharacterInfoFrame(this.emptyUA); + this._doc.ReqMysteriourRanklist(); + return; + case XSysDefine.XSys_Rank_WorldBoss: + type = XRankType.WorldBossDamageRank; + this._FillCharacterInfoFrame(this.emptyUA); + goto IL_24F; + case XSysDefine.XSys_Rank_PPT: + type = XRankType.PPTRank; + this._FillCharacterInfoFrame(this.emptyUA); + goto IL_24F; + case XSysDefine.XSys_Rank_Level: + type = XRankType.LevelRank; + this._FillCharacterInfoFrame(this.emptyUA); + goto IL_24F; + case XSysDefine.XSys_Rank_Guild: + this._doc.ReqGuildRankList(); + return; + case XSysDefine.XSys_Rank_Fashion: + type = XRankType.FashionRank; + this._FillCharacterInfoFrame(this.emptyUA); + goto IL_24F; + case XSysDefine.XSys_Rank_TeamTower: + type = XRankType.TeamTowerRank; + goto IL_24F; + case XSysDefine.XSys_Rank_GuildBoss: + this._doc.ReqGuildBossRankList(); + return; + case XSysDefine.XSys_Rank_Pet: + type = XRankType.PetRank; + this._FillPetInfoFrame(0u); + goto IL_24F; + case XSysDefine.XSys_Rank_Sprite: + type = XRankType.SpriteRank; + this._FillCharacterInfoFrame(this.emptyUA); + goto IL_24F; + case XSysDefine.XSys_Rank_Qualifying: + this._FillCharacterInfoFrame(this.emptyUA); + this._doc.ReqQualifyingRankList(); + return; + case XSysDefine.XSys_Rank_BigMelee: + XBigMeleeEntranceDocument.Doc.ReqRankData(0); + return; + case XSysDefine.XSys_Rank_DragonGuild: + this._doc.ReqDragonGuildRankList(); + return; + case XSysDefine.XSys_Rank_SkyArena: + type = XRankType.SkyArenaRank; + this._FillCharacterInfoFrame(this.emptyUA); + goto IL_24F; + case XSysDefine.XSys_Rank_CampDuel: + this._doc.ReqRankList(XRankType.CampDuelRankLeft); + this._doc.ReqRankList(XRankType.CampDuelRankRight); + return; + } + XSingleton.singleton.AddErrorLog("Invalid system id: ", xsysDefine.ToString(), null, null, null, null); + return; + IL_24F: + this._doc.ReqRankList(type); + } + } + + private void _SetFramesActive(uint uiType) + { + bool flag = !base.uiBehaviour.m_OriginalRank.activeSelf; + if (!flag) + { + for (uint num = 0u; num < XRankBehaviour.RANK_UI_TYPE_COUNT; num += 1u) + { + this.m_uiBehaviour.m_ListPanel[(int)num].gameObject.SetActive(num == uiType); + this.m_uiBehaviour.m_MyRankFrame[(int)num].SetActive(num == uiType); + this.m_uiBehaviour.m_TitleFrame[(int)num].SetActive(num == uiType); + } + } + } + + public void RefreshContent() + { + bool flag = !base.uiBehaviour.m_OriginalRank.activeSelf; + if (!flag) + { + XRankType currentSelectRankList = this._doc.currentSelectRankList; + uint num; + XRankView.SetRankItemHandler setRankItemHandler; + bool flag2 = !this._GetUIAndHandler(currentSelectRankList, out num, out setRankItemHandler); + if (!flag2) + { + IXUIWrapContent ixuiwrapContent = base.uiBehaviour.m_ListPanel[(int)num]; + ixuiwrapContent.RefreshAllVisibleContents(); + } + } + } + + public void RefreshRankWindow() + { + bool flag = !base.uiBehaviour.m_OriginalRank.activeSelf; + if (!flag) + { + XRankType currentSelectRankList = this._doc.currentSelectRankList; + uint num; + XRankView.SetRankItemHandler setHandler; + bool flag2 = !this._GetUIAndHandler(currentSelectRankList, out num, out setHandler); + if (!flag2) + { + GameObject gameObject = this.m_uiBehaviour.m_ListPanel[(int)num].gameObject; + GameObject go = this.m_uiBehaviour.m_MyRankFrame[(int)num]; + IXUIWrapContent ixuiwrapContent = base.uiBehaviour.m_ListPanel[(int)num]; + XBaseRankList rankList = this._doc.GetRankList(currentSelectRankList); + bool flag3 = rankList == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", currentSelectRankList.ToString(), null, null, null, null); + } + else + { + this._SetFramesActive(num); + bool flag4 = this.m_PreUIType != num; + if (flag4) + { + ixuiwrapContent.InitContent(); + this.m_PreUIType = num; + } + int num2 = rankList.rankList.Count; + bool flag5 = currentSelectRankList == XRankType.CampDuelRankLeft || currentSelectRankList == XRankType.CampDuelRankRight; + if (flag5) + { + num2 = Math.Max(num2, this._doc.GetRankList(XRankType.CampDuelRankLeft).rankList.Count); + num2 = Math.Max(num2, this._doc.GetRankList(XRankType.CampDuelRankRight).rankList.Count); + } + ixuiwrapContent.SetContentCount(num2, true); + this._SetMyRankFrame(go, rankList.GetLatestMyRankInfo(), rankList.upperBound, setHandler); + this._SetTitle(base.uiBehaviour.m_TitleFrame[(int)num]); + this.m_uiBehaviour.m_PetInfoFrame.SetActive(currentSelectRankList == XRankType.PetRank); + XRankType xrankType = currentSelectRankList; + if (xrankType <= XRankType.FashionRank) + { + if (xrankType > XRankType.LevelRank) + { + switch (xrankType) + { + case XRankType.WorldBossDamageRank: + this.m_uiBehaviour.m_CharacterInfoFrame.SetActive(true); + this.m_uiBehaviour.m_EmptyRankLabelGroup.SetGroup(1); + this.m_uiBehaviour.m_EmptyRankLabel.SetText(XStringDefineProxy.GetString("BIG_BOSS_EMPTY_RANK")); + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(rankList.rankList.Count == 0); + goto IL_474; + case XRankType.GuildBossRank: + { + this.m_uiBehaviour.m_CharacterInfoFrame.SetActive(false); + bool flag6 = rankList.rankList.Count == 0; + if (flag6) + { + this.m_uiBehaviour.m_EmptyRankLabel.SetText(XStringDefineProxy.GetString("GUILD_BOSS_EMPTY_RANK_BOSS")); + this.m_uiBehaviour.m_EmptyRankLabelGroup.SetGroup(0); + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(true); + } + else + { + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(false); + } + goto IL_474; + } + case XRankType.GuildBossRoleRank: + goto IL_449; + case XRankType.FashionRank: + break; + default: + goto IL_449; + } + } + } + else + { + switch (xrankType) + { + case XRankType.PetRank: + this.m_uiBehaviour.m_PetInfoFrame.SetActive(true); + this.m_uiBehaviour.m_CharacterInfoFrame.SetActive(false); + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(false); + goto IL_474; + case XRankType.BigMeleeRank: + { + this.m_uiBehaviour.m_CharacterInfoFrame.SetActive(false); + bool flag7 = rankList.rankList.Count == 0; + if (flag7) + { + this.m_uiBehaviour.m_EmptyRankLabel.SetText(XStringDefineProxy.GetString("BIG_BOSS_EMPTY_RANK")); + this.m_uiBehaviour.m_EmptyRankLabelGroup.SetGroup(0); + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(true); + } + else + { + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(false); + } + goto IL_474; + } + case XRankType.SkyArenaRank: + this.m_uiBehaviour.m_CharacterInfoFrame.SetActive(true); + this.m_uiBehaviour.m_EmptyRankLabel.SetText(XStringDefineProxy.GetString("BIG_BOSS_EMPTY_RANK")); + this.m_uiBehaviour.m_EmptyRankLabelGroup.SetGroup(1); + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(true); + goto IL_474; + case XRankType.ChickenDinnerRank: + case XRankType.CampDuelRankLeft: + case XRankType.CampDuelRankRight: + case XRankType.LeagueTeamRank: + goto IL_449; + case XRankType.SpriteRank: + case XRankType.QualifyingRank: + case XRankType.LastWeek_PKRank: + break; + default: + if (xrankType != XRankType.RiftRank) + { + goto IL_449; + } + break; + } + } + this.m_uiBehaviour.m_CharacterInfoFrame.SetActive(true); + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(false); + goto IL_474; + IL_449: + this.m_uiBehaviour.m_CharacterInfoFrame.SetActive(false); + this.m_uiBehaviour.m_EmptyRankLabel.gameObject.SetActive(false); + IL_474: + XRankType xrankType2 = currentSelectRankList; + if (xrankType2 - XRankType.CampDuelRankLeft > 1) + { + Vector3 group = base.uiBehaviour.m_ListPositionGroup.GetGroup(0); + base.uiBehaviour.m_ListIXUIPanel.SetCenter(group.x, group.y); + group = base.uiBehaviour.m_ListPositionGroup.GetGroup(1); + base.uiBehaviour.m_ListIXUIPanel.SetSize(group.x, group.y); + } + else + { + Vector3 group = base.uiBehaviour.m_ListPositionGroup.GetGroup(2); + base.uiBehaviour.m_ListIXUIPanel.SetCenter(group.x, group.y); + group = base.uiBehaviour.m_ListPositionGroup.GetGroup(3); + base.uiBehaviour.m_ListIXUIPanel.SetSize(group.x, group.y); + } + base.uiBehaviour.m_ListScrollView.ResetPosition(); + bool flag8 = rankList.rankList.Count > 0; + if (flag8) + { + this._doc.SelectItem(0u); + } + } + } + } + } + + private void _OnWrapContentItemUpdated(Transform t, int index) + { + bool flag = !base.uiBehaviour.m_OriginalRank.activeSelf; + if (!flag) + { + XRankType currentSelectRankList = this._doc.currentSelectRankList; + XBaseRankList rankList = this._doc.GetRankList(currentSelectRankList); + bool flag2 = rankList == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Fail to get rank list whose type is ", currentSelectRankList.ToString(), null, null, null, null); + } + else + { + bool flag3 = index >= rankList.rankList.Count; + if (flag3) + { + bool flag4 = this._doc.currentSelectRankList != XRankType.CampDuelRankLeft && this._doc.currentSelectRankList != XRankType.CampDuelRankRight; + if (flag4) + { + XSingleton.singleton.AddErrorLog("index >= rankDataList.rankList.Count: idx ", index.ToString(), " count ", rankList.rankList.Count.ToString(), null, null); + } + } + else + { + XRankView.SetRankItemHandler setRankItemHandler; + bool flag5 = !this.RankItemHandlers.TryGetValue(currentSelectRankList, out setRankItemHandler); + if (flag5) + { + XSingleton.singleton.AddErrorLog("There's no handler for type ", currentSelectRankList.ToString(), null, null, null, null); + } + else + { + bool flag6 = currentSelectRankList == XRankType.CampDuelRankLeft; + if (flag6) + { + t = t.Find("Left"); + } + else + { + bool flag7 = currentSelectRankList == XRankType.CampDuelRankRight; + if (flag7) + { + t = t.Find("Right"); + } + } + IXUISprite ixuisprite = t.GetComponent("XUISprite") as IXUISprite; + IXUILabelSymbol ixuilabelSymbol = t.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + bool flag8 = ixuilabelSymbol != null; + if (flag8) + { + ixuilabelSymbol.ID = (ulong)((long)index); + } + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + bool flag9 = ixuilabel != null; + if (flag9) + { + ixuilabel.ID = (ulong)((long)index); + } + bool flag10 = ixuisprite != null; + if (flag10) + { + ixuisprite.ID = (ulong)((long)index); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnRankItemClickedSp)); + } + setRankItemHandler(t.gameObject, rankList.rankList[index], index); + this._ToggleSelection(t.gameObject, (ulong)this._doc.currentSelectIndex == (ulong)((long)index)); + } + } + } + } + } + + private void _FillCharacterInfoFrame(UnitAppearance data) + { + bool flag = !base.uiBehaviour.m_OriginalRank.activeSelf; + if (!flag) + { + this.m_uiBehaviour.m_CharName.SetText(data.unitName); + this.m_uiBehaviour.m_CharProfession.SetSprite(XSingleton.singleton.GetProfIcon((int)data.unitType)); + bool flag2 = data.uID > 0UL; + if (flag2) + { + this._PlayerDummy = XSingleton.singleton.CreateCommonRoleDummy(this.m_dummPool, data, this.m_uiBehaviour.m_PlayerSnapshot, this._PlayerDummy); + bool flag3 = data.sprites.Count > 0; + if (flag3) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(data.sprites[0].SpriteID); + bool flag4 = bySpriteID != null; + if (flag4) + { + this._SpriteDummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, bySpriteID.SpriteModelID, this.m_uiBehaviour.m_SpriteSnapshot, this._SpriteDummy, 1f); + } + else + { + bool flag5 = this._SpriteDummy != null; + if (flag5) + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this._SpriteDummy); + this._SpriteDummy = null; + } + } + } + else + { + bool flag6 = this._SpriteDummy != null; + if (flag6) + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this._SpriteDummy); + this._SpriteDummy = null; + } + } + } + } + } + + private void _FillPetInfoFrame(uint petID) + { + bool flag = !base.uiBehaviour.m_OriginalRank.activeSelf; + if (!flag) + { + uint presentID = XPetDocument.GetPresentID(petID); + bool flag2 = presentID > 0u; + if (flag2) + { + this._PetDummy = XSingleton.singleton.CreateCommonEntityDummy(this.m_dummPool, presentID, this.m_uiBehaviour.m_PetSnapshot, this._PetDummy, 1f); + DlgBase.singleton.PetActionChange(XPetActionFile.IDLE, petID, this._PetDummy, false); + } + else + { + XSingleton.singleton.DestroyDummy(this.m_dummPool, this._PetDummy); + this._PetDummy = null; + } + } + } + + public void UpdateGuildInfo(XBaseRankInfo info) + { + bool flag = !base.uiBehaviour.m_OriginalRank.activeSelf; + if (!flag) + { + base.uiBehaviour.m_GuildName.SetText(info.guildname); + bool flag2 = info.guildname == "" || info.guildname == null; + if (flag2) + { + base.uiBehaviour.m_GuildIcon.SetSprite(""); + } + else + { + base.uiBehaviour.m_GuildIcon.SetSprite(XGuildDocument.GetPortraitName((int)info.guildicon)); + } + } + } + + public void UpdatePetInfo(uint petID) + { + this._FillPetInfoFrame(petID); + } + + public void UpdateCharacterInfo(GetUnitAppearanceRes oRes) + { + this._FillCharacterInfoFrame(oRes.UnitAppearance); + } + + private void _ToggleSelection(GameObject go, bool bSelect) + { + Transform transform = go.transform.Find("Select"); + bool flag = transform == null; + if (!flag) + { + GameObject gameObject = transform.gameObject; + gameObject.SetActive(bSelect); + } + } + + private void _SetBaseRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = go.transform.Find("Value").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = go.transform.Find("QQ").gameObject; + GameObject gameObject2 = go.transform.Find("Wechat").gameObject; + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege); + bool flag2 = !flag; + if (flag2) + { + gameObject.SetActive(false); + gameObject2.SetActive(false); + } + bool flag3 = info == null; + if (flag3) + { + ixuilabelSymbol.InputText = string.Empty; + ixuilabel.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + bool flag4 = flag; + if (flag4) + { + gameObject.SetActive(XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_QQ && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + gameObject2.SetActive(XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_WX && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + } + XSingleton.singleton.AddLog("[_SetBaseRankItem] info == null", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + ixuilabelSymbol.InputText = info.formatname; + ixuilabel.SetText(info.value.ToString()); + this._SetRank(go, info.rank); + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this._OnRankItemClicked)); + bool flag5 = flag; + if (flag5) + { + bool flag6 = info.rank == XRankDocument.INVALID_RANK; + if (flag6) + { + gameObject.SetActive(XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_QQ && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + gameObject2.SetActive(XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_WX && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + } + else + { + gameObject.SetActive(info.startType == StartUpType.StartUp_QQ); + gameObject2.SetActive(info.startType == StartUpType.StartUp_WX); + } + } + } + } + + private void _SetWorldBossRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Profession").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Damage").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + ixuilabel.RegisterLabelClickEventHandler(null); + } + else + { + XWorldBossDamageRankInfo xworldBossDamageRankInfo = info as XWorldBossDamageRankInfo; + bool flag2 = xworldBossDamageRankInfo != null; + if (flag2) + { + ixuilabel.SetText(xworldBossDamageRankInfo.formatname); + ixuilabel2.SetText(XSingleton.singleton.GetProfName((int)xworldBossDamageRankInfo.profession)); + ixuilabel3.SetText(XSingleton.singleton.NumberFormatBillion((ulong)xworldBossDamageRankInfo.damage)); + } + this._SetRank(go, info.rank); + ixuilabel.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnRankItemClicked)); + } + } + + private void _SetPetRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("PetName").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("PetPPT").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + ixuilabel.RegisterLabelClickEventHandler(null); + } + else + { + XPetRankInfo xpetRankInfo = info as XPetRankInfo; + ixuilabel.SetText(xpetRankInfo.formatname); + PetInfoTable.RowData petInfo = XPetDocument.GetPetInfo(xpetRankInfo.petID); + bool flag2 = petInfo != null; + if (flag2) + { + ixuilabel2.SetText(XBaseRankInfo.GetUnderLineName(petInfo.name)); + } + else + { + XSingleton.singleton.AddErrorLog("PetID " + xpetRankInfo.petID + " No Find", null, null, null, null, null); + } + ixuilabel3.SetText(xpetRankInfo.value.ToString()); + this._SetRank(go, info.rank); + ixuilabel.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnRankItemClicked)); + ixuilabel2.ID = (ulong)((long)index); + ixuilabel2.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnPetRankItemClicked)); + } + } + + private void _SetBigMeleeRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Server").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("Point").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(string.Empty); + ixuilabel4.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + } + else + { + XBigMeleeRankInfo xbigMeleeRankInfo = info as XBigMeleeRankInfo; + ixuilabel.SetText(xbigMeleeRankInfo.name); + ixuilabel2.SetText(xbigMeleeRankInfo.serverName); + ixuilabel3.SetText(xbigMeleeRankInfo.kill.ToString()); + ixuilabel4.SetText(xbigMeleeRankInfo.value.ToString()); + this._SetRank(go, info.rank); + } + } + + private void _SetCampDuelRankLeftItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag) + { + bool flag2 = XCampDuelDocument.Doc.campID != 2; + if (flag2) + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + } + } + else + { + XCampDuelRankInfo xcampDuelRankInfo = info as XCampDuelRankInfo; + ixuilabel.SetText(xcampDuelRankInfo.name); + ixuilabel2.SetText(xcampDuelRankInfo.value.ToString()); + this._SetRank(go, info.rank); + } + XBaseRankList rankList = this._doc.GetRankList(XRankType.CampDuelRankRight); + bool flag3 = rankList.rankList.Count <= index; + if (flag3) + { + this._SetCampDuelRankClear(go.transform.parent.Find("Right")); + } + } + + private void _SetCampDuelRankRightItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Num").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag) + { + bool flag2 = XCampDuelDocument.Doc.campID != 1; + if (flag2) + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + } + } + else + { + XCampDuelRankInfo xcampDuelRankInfo = info as XCampDuelRankInfo; + ixuilabel.SetText(xcampDuelRankInfo.name); + ixuilabel2.SetText(xcampDuelRankInfo.value.ToString()); + this._SetRank(go, info.rank); + } + XBaseRankList rankList = this._doc.GetRankList(XRankType.CampDuelRankLeft); + bool flag3 = rankList.rankList.Count <= index; + if (flag3) + { + this._SetCampDuelRankClear(go.transform.parent.Find("Left")); + } + } + + private void _SetCampDuelRankClear(Transform t) + { + bool flag = t == null; + if (!flag) + { + IXUILabel ixuilabel = t.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = t.Find("Num").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + this._SetRank(t.gameObject, XRankDocument.INVALID_RANK); + } + } + + private void _SetSkyArenaRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Kill").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Floor").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("Profession").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(string.Empty); + ixuilabel4.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + } + else + { + XSkyArenaRankInfo xskyArenaRankInfo = info as XSkyArenaRankInfo; + ixuilabel.SetText(xskyArenaRankInfo.name); + ixuilabel2.SetText(xskyArenaRankInfo.kill.ToString()); + ixuilabel3.SetText(xskyArenaRankInfo.floor.ToString()); + ixuilabel4.SetText(XSingleton.singleton.GetProfName((int)xskyArenaRankInfo.profession)); + this._SetRank(go, info.rank); + } + } + + private void _SetGuildBossRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = go.transform.Find("Value0").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Value1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Value2").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel4 = go.transform.Find("Value3").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabelSymbol.InputText = string.Empty; + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(string.Empty); + ixuilabel4.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + ixuilabelSymbol.RegisterSymbolClickHandler(null); + } + else + { + XGuildBossRankInfo xguildBossRankInfo = info as XGuildBossRankInfo; + ixuilabelSymbol.ID = (ulong)((long)(index << 1 | 0)); + GuildBossConfigTable.RowData byBossID = XGuildDragonDocument._GuildBossConfigReader.GetByBossID(xguildBossRankInfo.guildBossIndex); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(byBossID.EnemyID); + float num = byID.MaxHP * byBossID.LifePercent; + float num2 = Mathf.Clamp01(xguildBossRankInfo.damage / num); + string text = (num2 * 100f).ToString("f2") + "%"; + bool flag2 = num2 == 0f; + if (flag2) + { + text = "0%"; + } + bool flag3 = num2 == 1f; + if (flag3) + { + text = "100%"; + } + ixuilabelSymbol.InputText = xguildBossRankInfo.guildBossName; + ixuilabel.SetText(text); + ixuilabel2.SetText(xguildBossRankInfo.m_Time); + ixuilabel3.SetText(xguildBossRankInfo.guildName); + ixuilabel4.SetText(xguildBossRankInfo.strongDPSName); + this._SetRank(go, info.rank); + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this._OnGuildBossClicked)); + } + } + + private void _SetTowerRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol2 = go.transform.Find("Name0").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol3 = go.transform.Find("Name1").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = go.transform.Find("Value0").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Value1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Value2").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = go.transform.Find("QQ").gameObject; + GameObject gameObject2 = go.transform.Find("Wechat").gameObject; + bool flag = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Platform_StartPrivilege); + bool flag2 = !flag; + if (flag2) + { + gameObject.SetActive(false); + gameObject2.SetActive(false); + } + bool flag3 = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag3) + { + ixuilabelSymbol.InputText = string.Empty; + ixuilabelSymbol2.InputText = string.Empty; + ixuilabelSymbol3.InputText = string.Empty; + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + ixuilabelSymbol.RegisterSymbolClickHandler(null); + ixuilabelSymbol2.RegisterSymbolClickHandler(null); + ixuilabelSymbol3.RegisterSymbolClickHandler(null); + bool flag4 = flag; + if (flag4) + { + gameObject.SetActive(XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_QQ && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ); + gameObject2.SetActive(XSingleton.singleton.GetLaunchTypeServerInfo() == StartUpType.StartUp_WX && XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat); + } + } + else + { + XTeamTowerRankInfo xteamTowerRankInfo = info as XTeamTowerRankInfo; + ixuilabelSymbol.SetVisible(xteamTowerRankInfo.memberCount == 1u); + ixuilabelSymbol2.SetVisible(xteamTowerRankInfo.memberCount != 1u); + ixuilabelSymbol3.SetVisible(xteamTowerRankInfo.memberCount != 1u); + ixuilabelSymbol.InputText = xteamTowerRankInfo.formatname; + ixuilabelSymbol2.InputText = xteamTowerRankInfo.formatname; + ixuilabelSymbol3.InputText = xteamTowerRankInfo.formatname1; + ixuilabelSymbol.ID = (ulong)((long)(index << 1 | 0)); + ixuilabelSymbol2.ID = (ulong)((long)(index << 1 | 0)); + ixuilabelSymbol3.ID = (ulong)((long)(index << 1 | 1)); + ixuilabel.SetText(XStringDefineProxy.GetString("TEAMTOWER_DIFF" + xteamTowerRankInfo.diff)); + ixuilabel2.SetText(xteamTowerRankInfo.levelCount.ToString()); + ixuilabel3.SetText(xteamTowerRankInfo.GetValue()); + this._SetRank(go, info.rank); + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this._OnTwoNameClicked)); + ixuilabelSymbol2.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this._OnTwoNameClicked)); + ixuilabelSymbol3.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this._OnTwoNameClicked)); + bool flag5 = flag; + if (flag5) + { + gameObject.SetActive(info.startType == StartUpType.StartUp_QQ); + gameObject2.SetActive(info.startType == StartUpType.StartUp_WX); + } + } + } + + private void _SetQualifyingRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabel ixuilabel = go.transform.Find("Name").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("Value1").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel3 = go.transform.Find("Value2").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null || info.rank == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabel.SetText(string.Empty); + ixuilabel2.SetText(string.Empty); + ixuilabel3.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + ixuilabel.RegisterLabelClickEventHandler(null); + } + else + { + XQualifyingRankInfo xqualifyingRankInfo = info as XQualifyingRankInfo; + ixuilabel.SetText(xqualifyingRankInfo.formatname); + ixuilabel.ID = (ulong)((long)index); + ixuilabel2.SetText(xqualifyingRankInfo.rankScore.ToString()); + ixuilabel3.SetText(XSingleton.singleton.GetProfName((int)xqualifyingRankInfo.profession)); + this._SetRank(go, info.rank); + ixuilabel.RegisterLabelClickEventHandler(new LabelClickEventHandler(this._OnRankItemClicked)); + } + } + + private void _SetDragonGuildRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabelSymbol ixuilabelSymbol2 = go.transform.Find("LeaderName").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = go.transform.Find("Times").GetComponent("XUILabel") as IXUILabel; + XDragonGuildRankInfo xdragonGuildRankInfo = info as XDragonGuildRankInfo; + bool flag = xdragonGuildRankInfo == null; + if (flag) + { + ixuilabelSymbol.InputText = string.Empty; + ixuilabelSymbol2.InputText = string.Empty; + ixuilabel.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + } + else + { + ixuilabelSymbol.InputText = xdragonGuildRankInfo.name; + ixuilabel.SetText(xdragonGuildRankInfo.value.ToString()); + ixuilabelSymbol2.InputText = xdragonGuildRankInfo.passSceneName; + this._SetRank(go, info.rank); + } + } + + private void _SetGuildRankItem(GameObject go, XBaseRankInfo info, int index) + { + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = go.transform.Find("Popularity").GetComponent("XUILabel") as IXUILabel; + IXUILabelSymbol ixuilabelSymbol2 = go.transform.Find("LeaderName").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel2 = go.transform.Find("Level").GetComponent("XUILabel") as IXUILabel; + XGuildRankInfo xguildRankInfo = info as XGuildRankInfo; + bool flag = xguildRankInfo == null; + if (flag) + { + ixuilabelSymbol.InputText = string.Empty; + ixuilabel.SetText(string.Empty); + ixuilabelSymbol2.InputText = string.Empty; + ixuilabel2.SetText(string.Empty); + this._SetRank(go, XRankDocument.INVALID_RANK); + } + else + { + ixuilabelSymbol.InputText = xguildRankInfo.formatname; + ixuilabel.SetText(xguildRankInfo.presitge.ToString()); + ixuilabel2.SetText(xguildRankInfo.value.ToString()); + ixuilabelSymbol2.InputText = xguildRankInfo.formatname2; + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this._OnClickGuild)); + this._SetRank(go, info.rank); + } + } + + private void _SetRiftRankItem(GameObject go, XBaseRankInfo info, int index) + { + XRiftRankInfo xriftRankInfo = info as XRiftRankInfo; + IXUILabelSymbol ixuilabelSymbol = go.transform.Find("Name").GetComponent("XUILabelSymbol") as IXUILabelSymbol; + IXUILabel ixuilabel = go.transform.Find("time").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = go.transform.Find("floor").GetComponent("XUILabel") as IXUILabel; + bool flag = info == null; + if (flag) + { + ixuilabelSymbol.InputText = string.Empty; + this._SetRank(go, XRankDocument.INVALID_RANK); + XSingleton.singleton.AddLog("[_SetBaseRankItem] info == null", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + ixuilabelSymbol.InputText = xriftRankInfo.name; + ixuilabel.SetText(this._FormatTime(xriftRankInfo.passtime)); + ixuilabel2.SetText(xriftRankInfo.floor.ToString()); + this._SetRank(go, info.rank); + ixuilabelSymbol.RegisterSymbolClickHandler(new LabelSymbolClickEventHandler(this._OnRankItemClicked)); + } + } + + private string _FormatTime(uint time) + { + uint num = time % 60u; + return (time / 60u).ToString("d2") + ":" + num.ToString("d2"); + } + + private void _SetRank(GameObject go, uint rankIndex) + { + IXUILabel ixuilabel = go.transform.Find("Rank").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = go.transform.Find("RankImage").GetComponent("XUISprite") as IXUISprite; + bool flag = rankIndex == XRankDocument.INVALID_RANK; + if (flag) + { + ixuilabel.SetVisible(false); + ixuisprite.SetVisible(false); + } + else + { + bool flag2 = rankIndex < 3u; + if (flag2) + { + ixuisprite.SetSprite("N" + (rankIndex + 1u)); + ixuisprite.SetVisible(true); + ixuilabel.SetVisible(false); + } + else + { + ixuisprite.SetVisible(false); + ixuilabel.SetText("No." + (rankIndex + 1u)); + ixuilabel.SetVisible(true); + } + } + } + + private void _SetMyRankFrame(GameObject go, XBaseRankInfo info, uint maxRank, XRankView.SetRankItemHandler setHandler) + { + GameObject gameObject = go.transform.Find("Tpl").gameObject; + GameObject gameObject2 = go.transform.Find("OutOfRange").gameObject; + bool flag = this._doc.currentSelectRankList == XRankType.CampDuelRankLeft; + if (flag) + { + IXUIButton ixuibutton = go.transform.Find("Reward").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCampDuelReward)); + bool flag2 = XCampDuelDocument.Doc.campID == 2; + if (flag2) + { + return; + } + } + bool flag3 = this._doc.currentSelectRankList == XRankType.CampDuelRankRight; + if (flag3) + { + bool flag4 = XCampDuelDocument.Doc.campID == 1; + if (flag4) + { + return; + } + } + bool flag5 = info == null; + if (flag5) + { + go.SetActive(false); + } + else + { + go.SetActive(true); + setHandler(gameObject, info, 0); + gameObject2.SetActive(info.rank == XRankDocument.INVALID_RANK); + } + } + + private void _SetTitle(GameObject title) + { + XRankType currentSelectRankList = this._doc.currentSelectRankList; + bool flag = currentSelectRankList == XRankType.CampDuelRankLeft; + if (flag) + { + IXUILabel ixuilabel = title.transform.Find("TitleL/Title/T").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("CAMPDUEL_LEFT_NAME")); + ixuilabel = (title.transform.Find("TitleR/Title/T").GetComponent("XUILabel") as IXUILabel); + ixuilabel.SetText(XStringDefineProxy.GetString("CAMPDUEL_RIGHT_NAME")); + } + Transform transform = title.transform.Find("ValueName"); + bool flag2 = transform == null; + if (!flag2) + { + IXUILabel ixuilabel2 = transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(XStringDefineProxy.GetString(currentSelectRankList.ToString() + "_ValueName")); + } + } + + private void _OnRankItemClickedSp(IXUISprite sp) + { + this._SelectItem((uint)sp.ID); + } + + private void _OnRankItemClicked(IXUILabelSymbol iSp) + { + this._SelectItem((uint)iSp.ID); + XRankType currentSelectRankList = this._doc.currentSelectRankList; + XBaseRankList rankList = this._doc.GetRankList(currentSelectRankList); + XBaseRankInfo xbaseRankInfo = rankList.rankList[(int)iSp.ID]; + bool flag = currentSelectRankList == XRankType.SpriteRank; + if (flag) + { + DlgBase.singleton.SetPlayerInfo(xbaseRankInfo.id, xbaseRankInfo.name, xbaseRankInfo.setid, 0u, 1u); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.ShowTab(Player_Info.Sprite, 0UL, 0UL); + } + else + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(xbaseRankInfo.id, false); + } + } + + private void _OnRankItemClicked(IXUILabel iSp) + { + this._SelectItem((uint)iSp.ID); + XRankType currentSelectRankList = this._doc.currentSelectRankList; + XBaseRankList rankList = this._doc.GetRankList(currentSelectRankList); + XBaseRankInfo xbaseRankInfo = rankList.rankList[(int)iSp.ID]; + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(xbaseRankInfo.id, false); + } + + private void _OnPetRankItemClicked(IXUILabel iSp) + { + this._SelectItem((uint)iSp.ID); + XRankType currentSelectRankList = this._doc.currentSelectRankList; + XBaseRankList rankList = this._doc.GetRankList(currentSelectRankList); + XPetRankInfo xpetRankInfo = rankList.rankList[(int)iSp.ID] as XPetRankInfo; + bool flag = XSingleton.singleton.XPlayerData.RoleID == xpetRankInfo.id; + if (!flag) + { + DlgBase.singleton.SetPlayerInfo(xpetRankInfo.id, xpetRankInfo.name, xpetRankInfo.setid, 0u, 1u); + DlgBase.singleton.SetVisibleWithAnimation(true, null); + DlgBase.singleton.ShowTab(Player_Info.Pet, xpetRankInfo.id, xpetRankInfo.petUID); + } + } + + private void _OnClickGuild(IXUILabelSymbol iSp) + { + this._SelectItem((uint)iSp.ID); + int index = (int)iSp.ID; + XBaseRankList guildRankList = this._doc.GuildRankList; + ulong id = guildRankList.rankList[index].id; + this._viewGuildId = id; + string name = guildRankList.rankList[index].name; + DlgBase.singleton.InitGuildMenu(id, name); + } + + private void _OnTwoNameClicked(IXUILabelSymbol label) + { + int index = (int)(label.ID >> 1); + int num = (int)(label.ID & 1UL); + this._SelectItem((uint)index); + XRankType currentSelectRankList = this._doc.currentSelectRankList; + XBaseRankList rankList = this._doc.GetRankList(currentSelectRankList); + XTeamTowerRankInfo xteamTowerRankInfo = rankList.rankList[index] as XTeamTowerRankInfo; + bool flag = xteamTowerRankInfo == null; + if (!flag) + { + bool flag2 = num == 0; + if (flag2) + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(xteamTowerRankInfo.id, false); + } + else + { + XCharacterCommonMenuDocument.ReqCharacterMenuInfo(xteamTowerRankInfo.id1, false); + } + } + } + + private void _OnGuildBossClicked(IXUILabelSymbol label) + { + } + + public bool OnShowGuildInfo(IXUIButton sp) + { + XGuildViewDocument specificDocument = XDocuments.GetSpecificDocument(XGuildViewDocument.uuID); + specificDocument.View(this._viewGuildId); + DlgBase.singleton.SetVisibleWithAnimation(false, null); + return true; + } + + private void _SelectItem(uint index) + { + this._doc.SelectItem(index); + } + + public bool OnCampDuelReward(IXUIButton btn) + { + DlgHandlerBase.EnsureCreate(ref this._RankRewardHandler, base.uiBehaviour.m_OriginalRank.transform, false, null); + this._RankRewardHandler.SetVisible(true); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRankView.cs.meta b/Client/Assets/Scripts/XMainClient/XRankView.cs.meta new file mode 100644 index 00000000..12dbb0fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRankView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d41f674af95c7e4a9ff03b9d6c5317f +timeCreated: 1611403505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRealDeadEventArgs.cs b/Client/Assets/Scripts/XMainClient/XRealDeadEventArgs.cs new file mode 100644 index 00000000..0a7c7a65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRealDeadEventArgs.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class XRealDeadEventArgs : XActionArgs + { + public XEntity Killer; + + public XEntity TheDead; + + public XRealDeadEventArgs() + { + this._eDefine = XEventDefine.XEvent_RealDead; + this.Killer = null; + this.TheDead = null; + } + + public override void Recycle() + { + base.Recycle(); + this.Killer = null; + this.TheDead = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRealDeadEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XRealDeadEventArgs.cs.meta new file mode 100644 index 00000000..afdcef63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRealDeadEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d496b4a163b679842aabec810da1e1d1 +timeCreated: 1611404603 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRechargeDocument.cs b/Client/Assets/Scripts/XMainClient/XRechargeDocument.cs new file mode 100644 index 00000000..4969891a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRechargeDocument.cs @@ -0,0 +1,908 @@ +using System; +using System.Collections.Generic; +using KKSG; +using MiniJSON; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRechargeDocument : XDocComponent + { + public override uint ID + { + get + { + return XRechargeDocument.uuID; + } + } + + public VIPTable VIPReader + { + get + { + return XRechargeDocument._VipReader; + } + } + + public PayCardTable PayCardReader + { + get + { + return XRechargeDocument._PayCardReader; + } + } + + public static PayListTable PayTable + { + get + { + return XRechargeDocument._PayReader; + } + } + + public List PayInfo + { + get + { + return this._payInfo; + } + } + + public List IsGiftGet + { + get + { + return this._isGiftGet; + } + } + + public List PayCard + { + get + { + return this._payCard; + } + } + + public uint VipLevel + { + get + { + return this._vipLevel; + } + } + + public float TotalPay + { + get + { + return this._totalPay; + } + } + + public Dictionary FirstPayMarketingInfo + { + get + { + return this.m_FirstPayMarketingInfo; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XRechargeDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static PayListTable _PayReader = new PayListTable(); + + private static VIPTable _VipReader = new VIPTable(); + + private static PayCardTable _PayCardReader = new PayCardTable(); + + public GamePayDiaMallHander RechargeView; + + private static SeqList _vipColor; + + private static readonly uint NEXTVIPLEVELSHOW = 5u; + + public uint MaxVIPLevel = 0u; + + public bool isVIPShow = false; + + private uint _lastVipLevel = 0u; + + private List _payInfo; + + private List _isGiftGet = new List(); + + private List _payCard; + + private uint _vipLevel; + + private float _totalPay; + + private Dictionary m_FirstPayMarketingInfo = new Dictionary(); + + private string m_paramID; + + private int m_Price; + + private PayParamType m_paramType; + + private XRechargeDocument.RechargeType m_CurrRechargeType = XRechargeDocument.RechargeType.None; + + private List m_listPaySucNotify = new List(); + + private float m_NotifyTime = 0f; + + private float m_NotifyInterval = 0f; + + private int m_NotifyCount = 0; + + private string m_goodsParamID = ""; + + private uint m_goodsPrice; + + private string m_goodsUrl; + + public enum RechargeType + { + None, + DiamondRecharge, + Subscribe, + BuyGoods, + PandoraBuyGoods + } + + public static void Execute(OnLoadedCallback callback = null) + { + XRechargeDocument.AsyncLoader.AddTask("Table/PayList", XRechargeDocument._PayReader, false); + XRechargeDocument.AsyncLoader.AddTask("Table/Vip", XRechargeDocument._VipReader, false); + XRechargeDocument.AsyncLoader.AddTask("Table/PayCard", XRechargeDocument._PayCardReader, false); + XRechargeDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.MaxVIPLevel = (uint)(XRechargeDocument._VipReader.Table.Length - 1); + bool flag = XRechargeDocument._vipColor == null; + if (flag) + { + XRechargeDocument._vipColor = XSingleton.singleton.GetSequenceList("VIPIntervalColor", false); + } + this.m_listPaySucNotify.Clear(); + this.m_NotifyInterval = (float)XSingleton.singleton.GetInt("RechargeSucNotifyRepeatInterval"); + this.m_NotifyCount = XSingleton.singleton.GetInt("RechargeSucNotifyRepeatCount"); + } + + public VIPTable.RowData GetVipPermissions(uint vip) + { + vip = Math.Max(vip, 0u); + vip = Math.Min(vip, this.MaxVIPLevel); + return XRechargeDocument._VipReader.GetByVIP((int)vip); + } + + public VIPTable.RowData GetCurrentVipPermissions() + { + return this.GetVipPermissions(this._vipLevel); + } + + public void ReqPayAllInfo() + { + RpcC2G_GetPayAllInfo rpc = new RpcC2G_GetPayAllInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetPayAllInfo(GetPayAllInfoArg oArg, GetPayAllInfoRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + this.SetAllData(oRes.info); + } + } + + private void SetAllData(PayAllInfo info) + { + this.SetAllPayInfoData(info); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVip(); + } + this.SetVIPGiftState(info.VipLevelGift); + bool flag2 = this.RechargeView != null && this.RechargeView.IsVisible(); + if (flag2) + { + this.RechargeView.SetVipProgressInfo(this.VipLevel); + this.RechargeView.RefreshData(); + this.RechargeView.RefreshVIP(); + } + } + + private void SetAllPayInfoData(PayAllInfo info) + { + this._payInfo = info.pay; + this._payCard = info.card; + this._vipLevel = info.vipLevel; + this._lastVipLevel = this._vipLevel; + this._totalPay = info.totalPay / 100f; + } + + public void PayAllInfoNtf(PayAllInfo info) + { + this.SetAllData(info); + } + + public List GetPayCardList() + { + List list = new List(); + for (int i = 0; i < XRechargeDocument._PayCardReader.Table.Length; i++) + { + bool flag = false; + bool flag2 = this._payCard != null; + if (flag2) + { + for (int j = 0; j < this._payCard.Count; j++) + { + bool flag3 = (long)XRechargeDocument._PayCardReader.Table[i].Type == (long)((ulong)this._payCard[j].type); + if (flag3) + { + flag = true; + break; + } + } + } + bool flag4 = !flag; + if (flag4) + { + list.Add(XRechargeDocument._PayCardReader.Table[i]); + } + } + return list; + } + + public uint GetVipRMB(uint vipLevel) + { + for (int i = 0; i < XRechargeDocument._VipReader.Table.Length; i++) + { + bool flag = (long)XRechargeDocument._VipReader.Table[i].VIP == (long)((ulong)vipLevel); + if (flag) + { + return XRechargeDocument._VipReader.Table[i].RMB; + } + } + return 0u; + } + + public float LackMoneyToNextVipLevel(uint currVipLevel) + { + bool flag = this.IsMaxVip(currVipLevel); + float result; + if (flag) + { + result = 0f; + } + else + { + uint vipRMB = this.GetVipRMB(currVipLevel + 1u); + bool flag2 = vipRMB > this.TotalPay; + if (flag2) + { + result = vipRMB - this.TotalPay; + } + else + { + result = 0f; + } + } + return result; + } + + public bool IsMaxVip(uint vipLevel) + { + for (int i = 0; i < XRechargeDocument._VipReader.Table.Length; i++) + { + bool flag = (long)XRechargeDocument._VipReader.Table[i].VIP > (long)((ulong)vipLevel); + if (flag) + { + return false; + } + } + return true; + } + + public void GetPayMarketingInfo() + { + XSingleton.singleton.AddLog("GetPayMarketingInfo", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("get_reward_info", ""); + } + + public void OnGetPayMarketingInfo(List listInfo) + { + this.m_FirstPayMarketingInfo.Clear(); + for (int i = 0; i < listInfo.Count; i++) + { + bool flag = listInfo[i].sendExt != ""; + if (flag) + { + this.m_FirstPayMarketingInfo[listInfo[i].diamondCount] = listInfo[i]; + } + } + bool flag2 = DlgBase.singleton.IsVisible() && DlgBase.singleton.currSys == XSysDefine.XSys_GameMall_Pay; + if (flag2) + { + DlgBase.singleton.RefreshDiamondPay(); + } + } + + public void PayParameterNtf() + { + string openkey; + string pf; + string pfKey; + string sessionType; + string sessionId; + string appid; + this.GetPayBillInfo(out openkey, out pf, out pfKey, out sessionType, out sessionId, out appid); + PtcC2M_PayParameterInfoNtf ptcC2M_PayParameterInfoNtf = new PtcC2M_PayParameterInfoNtf(); + ptcC2M_PayParameterInfoNtf.Data.openkey = openkey; + ptcC2M_PayParameterInfoNtf.Data.sessionType = sessionType; + ptcC2M_PayParameterInfoNtf.Data.sessionId = sessionId; + ptcC2M_PayParameterInfoNtf.Data.pf = pf; + ptcC2M_PayParameterInfoNtf.Data.pfKey = pfKey; + ptcC2M_PayParameterInfoNtf.Data.appid = appid; + XSingleton.singleton.Send(ptcC2M_PayParameterInfoNtf); + } + + public void GetPayBillInfo(out string openKey, out string pf, out string pfKey, out string sesstionType, out string sesstionID, out string offerid) + { + openKey = ""; + pf = ""; + pfKey = ""; + sesstionType = ""; + sesstionID = ""; + offerid = ""; + string payBill = XSingleton.singleton.XPlatform.GetPayBill(); + bool flag = payBill == ""; + if (flag) + { + XSingleton.singleton.AddLog("Pay [GetPayBill] error ", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + Dictionary dictionary = Json.Deserialize(payBill) as Dictionary; + bool flag2 = dictionary != null; + if (flag2) + { + object obj; + bool flag3 = dictionary.TryGetValue("pay_token", out obj); + if (flag3) + { + openKey = obj.ToString(); + } + object obj2; + bool flag4 = dictionary.TryGetValue("pf", out obj2); + if (flag4) + { + pf = obj2.ToString(); + } + object obj3; + bool flag5 = dictionary.TryGetValue("pfkey", out obj3); + if (flag5) + { + pfKey = obj3.ToString(); + } + object obj4; + bool flag6 = dictionary.TryGetValue("sessiontype", out obj4); + if (flag6) + { + sesstionType = obj4.ToString(); + } + object obj5; + bool flag7 = dictionary.TryGetValue("sessionid", out obj5); + if (flag7) + { + sesstionID = obj5.ToString(); + } + object obj6; + bool flag8 = dictionary.TryGetValue("offerid", out obj6); + if (flag8) + { + offerid = obj6.ToString(); + } + } + } + } + + public void SDKRecharge(int price, string paramID, PayParamType paramType) + { + bool flag = XSingleton.singleton.IsWeakNetwork(); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_WEAK_NETWORK_TIP"), "fece00"); + } + this.m_paramID = paramID; + this.m_paramType = paramType; + this.m_Price = price; + this.m_CurrRechargeType = XRechargeDocument.RechargeType.DiamondRecharge; + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "[SDKRecharge] price = ", + price, + ", paramID", + paramID + }), null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.Pay(price, "", paramID, XSingleton.singleton.XPlayerData.RoleID, XSingleton.singleton.ServerID); + } + + public void SDKSubscribe(int price, int buyNum, string serviceCode, string serviceName, string paramID, PayParamType paramType) + { + bool flag = XSingleton.singleton.IsWeakNetwork(); + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_WEAK_NETWORK_TIP"), "fece00"); + } + this.m_paramID = serviceCode; + this.m_paramType = paramType; + this.m_Price = price; + this.m_CurrRechargeType = XRechargeDocument.RechargeType.Subscribe; + Dictionary dictionary = new Dictionary(); + dictionary["buyNum"] = buyNum; + dictionary["serviceCode"] = serviceCode; + dictionary["serviceName"] = serviceName; + dictionary["productId"] = paramID; + dictionary["remark"] = string.Format("aid={0}", XSingleton.singleton.GetValue("AID")); + dictionary["zoneId"] = string.Format("{0}_{1}", XSingleton.singleton.ServerID, XSingleton.singleton.XPlayerData.RoleID); + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("[SDKSubscribe] param = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("pay_for_subscribe", text); + } + + public override void Update(float fDeltaT) + { + this.m_NotifyTime += fDeltaT; + bool flag = this.m_NotifyTime > this.m_NotifyInterval; + if (flag) + { + int i = 0; + while (i < this.m_listPaySucNotify.Count) + { + RpcC2M_PayNotify rpcC2M_PayNotify = this.m_listPaySucNotify[i]; + rpcC2M_PayNotify.oArg.count = rpcC2M_PayNotify.oArg.count + 1; + bool flag2 = rpcC2M_PayNotify.oArg.count > this.m_NotifyCount; + if (flag2) + { + this.m_listPaySucNotify.RemoveAt(i); + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "m_listPaySucNotify.Remove paramid = ", + rpcC2M_PayNotify.oArg.paramid, + ", count = ", + rpcC2M_PayNotify.oArg.count + }), null, null, null, null, null); + } + else + { + XSingleton.singleton.Send(rpcC2M_PayNotify); + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "m_listPaySucNotify.Resend paramid = ", + rpcC2M_PayNotify.oArg.paramid, + ", count = ", + rpcC2M_PayNotify.oArg.count + }), null, null, null, null, null); + i++; + } + } + this.m_NotifyTime = 0f; + } + } + + private void RemoveNotify(PayNotifyArg oArg) + { + for (int i = 0; i < this.m_listPaySucNotify.Count; i++) + { + RpcC2M_PayNotify rpcC2M_PayNotify = this.m_listPaySucNotify[i]; + bool flag = rpcC2M_PayNotify.oArg.paramid == oArg.paramid && oArg.count == 1; + if (flag) + { + this.m_listPaySucNotify.RemoveAt(i); + XSingleton.singleton.AddGreenLog(string.Concat(new object[] + { + "RemoveNotify paramid = ", + rpcC2M_PayNotify.oArg.paramid, + ", remove count = ", + rpcC2M_PayNotify.oArg.count, + ", find count = ", + oArg.count + }), null, null, null, null, null); + break; + } + } + } + + public void PaySuccessNtf() + { + string openkey; + string pf; + string pfKey; + string sessionType; + string sessionId; + string appid; + this.GetPayBillInfo(out openkey, out pf, out pfKey, out sessionType, out sessionId, out appid); + RpcC2M_PayNotify rpcC2M_PayNotify = new RpcC2M_PayNotify(); + rpcC2M_PayNotify.oArg.type = this.m_paramType; + rpcC2M_PayNotify.oArg.paramid = this.m_paramID; + rpcC2M_PayNotify.oArg.amount = this.m_Price; + rpcC2M_PayNotify.oArg.count = 1; + PayParameterInfo payParameterInfo = new PayParameterInfo(); + payParameterInfo.openkey = openkey; + payParameterInfo.sessionType = sessionType; + payParameterInfo.sessionId = sessionId; + payParameterInfo.pf = pf; + payParameterInfo.pfKey = pfKey; + payParameterInfo.appid = appid; + rpcC2M_PayNotify.oArg.data = payParameterInfo; + XSingleton.singleton.Send(rpcC2M_PayNotify); + this.m_NotifyTime = 0f; + bool flag = XSingleton.singleton.GetInt("RechargeSucNotifyRepeat") == 1; + if (flag) + { + this.m_listPaySucNotify.Add(rpcC2M_PayNotify); + } + DlgBase.singleton.SetVisible(false, true); + } + + public void OnPayNotify(PayNotifyArg oArg, PayNotifyRes oRes) + { + bool flag = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + else + { + this.RemoveNotify(oArg); + } + } + + public void OnPayCallback(string msg) + { + XSingleton.singleton.AddLog("Pay [OnPayCallback] msg:" + msg, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = this.m_CurrRechargeType == XRechargeDocument.RechargeType.DiamondRecharge || this.m_CurrRechargeType == XRechargeDocument.RechargeType.Subscribe; + if (flag) + { + this.OnRechargeAndSubscribeCallback(msg); + } + else + { + bool flag2 = this.m_CurrRechargeType == XRechargeDocument.RechargeType.BuyGoods; + if (flag2) + { + this.OnBuyGoodsPayCallback(msg); + } + else + { + bool flag3 = this.m_CurrRechargeType == XRechargeDocument.RechargeType.PandoraBuyGoods; + if (flag3) + { + this.OnPandoraBuyGoodsCallback(msg); + } + } + } + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.OnPayCallback(msg, this.m_goodsParamID); + } + + private void OnRechargeAndSubscribeCallback(string msg) + { + XSingleton.singleton.AddLog("Pay [OnRechargeAndSubscribeCallback] msg:" + msg, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = msg == "true" || msg == "Success"; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_SUCCESS"), "fece00"); + this.CheckGiftBag(); + this.ResetGiftBagBtnCD(); + this.PaySuccessNtf(); + this.GetPayMarketingInfo(); + } + else + { + DlgBase.singleton.SetVisible(false, true); + } + } + + private void OnBuyGoodsPayCallback(string msg) + { + XSingleton.singleton.AddLog("Pay [OnBuyGoodsPayCallback] msg:" + msg, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = msg == "true" || msg == "Success"; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_SUCCESS_GOODS"), "fece00"); + DlgBase.singleton.SetVisible(false, true); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_FAIL_GOODS"), "fece00"); + this.NoticeBusyGoodsFail(); + } + } + + private void OnPandoraBuyGoodsCallback(string msg) + { + XSingleton.singleton.AddLog("Pay [OnPandoraBuyGoodsCallback] msg:" + msg, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = msg == "true" || msg == "Success"; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_SUCCESS_PANDORA"), "fece00"); + XSingleton.singleton.NoticePandoraBuyGoodsResult("success"); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_FAIL_PANDORA"), "fece00"); + XSingleton.singleton.NoticePandoraBuyGoodsResult("fail"); + } + } + + private void ResetGiftBagBtnCD() + { + XSingleton.singleton.AddLog("Pay [ResetGiftBagBtnCD]", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = this.m_paramType != PayParamType.PAY_PARAM_AILEEN; + if (!flag) + { + int @int = XSingleton.singleton.GetInt("GiftBagBtnClickInterval"); + bool flag2 = @int == 0; + if (flag2) + { + XSingleton.singleton.AddLog("Pay [ResetGiftBagBtnCD] GiftBagBtnClickInterval = 0", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XSingleton.singleton.AddLog("Pay [ResetGiftBagBtnCD] interval = " + @int.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.ResetGiftBagBtnCD(@int); + } + } + } + + private void CheckGiftBag() + { + XSingleton.singleton.AddLog("Pay [CheckGiftBag]", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = XSingleton.singleton.GetInt("HideGiftBagBtnAtOnce") == 0; + if (flag) + { + XSingleton.singleton.AddLog("Pay [CheckGiftBag] HideGiftBagBtnAtOnce = 0", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + XSingleton.singleton.AddLog("Pay [CheckGiftBag] m_paramType = " + this.m_paramType.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = this.m_paramType != PayParamType.PAY_PARAM_AILEEN; + if (!flag2) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.HideGiftBagBtn(this.m_paramID); + } + } + } + + public void SDKBuyGoods(uint id, uint goodsCount, ulong toRoleID, string text, string paramID, uint price) + { + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "[SDKBuyGoods] id = ", + id, + ", goodsCount = ", + goodsCount, + ", toRoleID = ", + toRoleID, + ",text = ", + text, + ", paramID = ", + paramID, + ", price = ", + price + }), null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = XSingleton.singleton.XPlatform.Platfrom() != XPlatformType.Standalone && !Application.isEditor; + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + bool flag2 = XSingleton.singleton.IsWeakNetwork(); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_WEAK_NETWORK_TIP"), "fece00"); + } + string openkey; + string pf; + string pfKey; + string sessionType; + string sessionId; + string appid; + this.GetPayBillInfo(out openkey, out pf, out pfKey, out sessionType, out sessionId, out appid); + PayParameterInfo payParameterInfo = new PayParameterInfo(); + payParameterInfo.openkey = openkey; + payParameterInfo.sessionType = sessionType; + payParameterInfo.sessionId = sessionId; + payParameterInfo.pf = pf; + payParameterInfo.pfKey = pfKey; + payParameterInfo.appid = appid; + RpcC2G_PayFriendItem rpcC2G_PayFriendItem = new RpcC2G_PayFriendItem(); + rpcC2G_PayFriendItem.oArg.payparam = payParameterInfo; + rpcC2G_PayFriendItem.oArg.goodsid = id; + rpcC2G_PayFriendItem.oArg.count = goodsCount; + rpcC2G_PayFriendItem.oArg.toroleid = toRoleID; + rpcC2G_PayFriendItem.oArg.text = text; + XSingleton.singleton.Send(rpcC2G_PayFriendItem); + } + + public void OnGetBuyGoodsOrder(PayFriendItemArg oArg, PayFriendItemRes oRes) + { + bool flag = oRes.ret > ErrorCode.ERR_SUCCESS; + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.ShowSystemTip(oRes.ret, "fece00"); + } + else + { + bool flag2 = XSingleton.singleton.IsWeakNetwork(); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("PAY_WEAK_NETWORK_TIP"), "fece00"); + } + this.m_goodsUrl = oRes.billno; + this.m_goodsParamID = oRes.paramid; + this.m_goodsPrice = oRes.price; + this.m_CurrRechargeType = XRechargeDocument.RechargeType.BuyGoods; + Dictionary dictionary = new Dictionary(); + dictionary["zoneId"] = XSingleton.singleton.ServerID.ToString(); + dictionary["productId"] = oRes.paramid; + dictionary["buyNum"] = oArg.count; + dictionary["price"] = oRes.price; + dictionary["tokenUrl"] = oRes.url_param; + dictionary["extInfo"] = oRes.billno; + string text = Json.Serialize(dictionary); + XSingleton.singleton.AddLog("[OnGetBuyGoodsOrder] param = " + text, null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.XPlatform.SendGameExData("pay_for_props", text); + DlgBase.singleton.SetVisible(false, true); + } + } + + private void NoticeBusyGoodsFail() + { + PtcC2M_PayBuyGoodsFailNtf ptcC2M_PayBuyGoodsFailNtf = new PtcC2M_PayBuyGoodsFailNtf(); + ptcC2M_PayBuyGoodsFailNtf.Data.token = this.m_goodsUrl; + XSingleton.singleton.Send(ptcC2M_PayBuyGoodsFailNtf); + DlgBase.singleton.SetVisible(false, true); + } + + public void SDKPandoraBuyGoods(string json) + { + this.m_CurrRechargeType = XRechargeDocument.RechargeType.PandoraBuyGoods; + XSingleton.singleton.XPlatform.SendGameExData("pay_for_pandora", json); + } + + public void SendGetVIPGiftQuery(int level) + { + RpcC2G_BuyVipLevelGift rpcC2G_BuyVipLevelGift = new RpcC2G_BuyVipLevelGift(); + rpcC2G_BuyVipLevelGift.oArg.vipLevel = level; + XSingleton.singleton.Send(rpcC2G_BuyVipLevelGift); + } + + public void OnGetVIPGift(int level) + { + this.IsGiftGet[level] = VIPGiftState.GET; + this.CalVipRedPoint(); + bool flag = this.RechargeView != null && this.RechargeView.IsVisible() && this.isVIPShow; + if (flag) + { + this.RechargeView.RefreshGiftState(level); + } + } + + public bool CalVipRedPoint() + { + for (int i = 0; i < this.IsGiftGet.Count; i++) + { + bool flag = this.IsGiftGet[i] == VIPGiftState.UNGET; + if (flag) + { + return true; + } + } + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_GameMall_Pay, false); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_GameMall, true); + return false; + } + + public void SetVIPGiftState(List getGiftList) + { + this.IsGiftGet.Clear(); + uint num = (this.MaxVIPLevel < this._vipLevel + XRechargeDocument.NEXTVIPLEVELSHOW) ? this.MaxVIPLevel : (this._vipLevel + XRechargeDocument.NEXTVIPLEVELSHOW); + int num2 = 0; + while ((long)num2 <= (long)((ulong)num)) + { + bool flag = (ulong)this._vipLevel >= (ulong)((long)num2); + if (flag) + { + this.IsGiftGet.Add(VIPGiftState.UNGET); + } + else + { + this.IsGiftGet.Add(VIPGiftState.UNABLE); + } + num2++; + } + for (int i = 0; i < getGiftList.Count; i++) + { + int num3 = getGiftList[i]; + bool flag2 = (long)num3 > (long)((ulong)this._vipLevel); + if (flag2) + { + XSingleton.singleton.AddErrorLog("Error. viplevel = ", this._vipLevel.ToString(), " but gift is get by level = ", num3.ToString(), null, null); + } + this.IsGiftGet[num3] = VIPGiftState.GET; + } + } + + public void ShowVipLevelUp() + { + string label = XSingleton.singleton.ReplaceReturn(string.Format(XStringDefineProxy.GetString("VIPLevelUpTips"), "{n}", "{n}", this._vipLevel)); + string @string = XStringDefineProxy.GetString("VIPLevelUpBtnLabel"); + XSingleton.singleton.ShowModalDialog(label, @string, new ButtonClickEventHandler(this.ShowCurrentVip), 50); + } + + private bool ShowCurrentVip(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + this.isVIPShow = true; + bool flag = DlgBase.singleton._gamePayDiaMallHander != null && DlgBase.singleton._gamePayDiaMallHander.IsVisible(); + if (flag) + { + this.ReqPayAllInfo(); + DlgBase.singleton._gamePayDiaMallHander.SetSwitchState(); + } + else + { + DlgBase.singleton.ShowPurchase(ItemEnum.DIAMOND); + } + return true; + } + + public static string GetVIPIconString(uint level) + { + return ""; + } + + public static string GetVIPIconNameString(uint level) + { + int num = 0; + for (int i = 0; i < (int)XRechargeDocument._vipColor.Count; i++) + { + bool flag = (ulong)level >= (ulong)((long)XRechargeDocument._vipColor[i, 0]) && (ulong)level <= (ulong)((long)XRechargeDocument._vipColor[i, 1]); + if (flag) + { + num = i + 1; + break; + } + } + bool flag2 = num == 0; + if (flag2) + { + XSingleton.singleton.AddErrorLog(string.Format("Can't find vip{0} 's icon color.", level), null, null, null, null, null); + } + return XSingleton.singleton.StringCombine("rechar_vip0", num.ToString()); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + DlgBase.singleton.SetVisible(false, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRechargeDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRechargeDocument.cs.meta new file mode 100644 index 00000000..2325a29c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRechargeDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 794e3b54b9e6ff143ba46483668a3c9c +timeCreated: 1611403985 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XReconnectedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XReconnectedEventArgs.cs new file mode 100644 index 00000000..8c59f561 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XReconnectedEventArgs.cs @@ -0,0 +1,23 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XReconnectedEventArgs : XEventArgs + { + public RoleAllInfo PlayerInfo = null; + + public UnitAppearance PlayUnit = null; + + public XReconnectedEventArgs() + { + this._eDefine = XEventDefine.XEvent_OnReconnected; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XReconnectedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XReconnectedEventArgs.cs.meta new file mode 100644 index 00000000..e71b52ea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XReconnectedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a233386ffd01da445927271141aa1bc4 +timeCreated: 1611404256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XReconnection.cs b/Client/Assets/Scripts/XMainClient/XReconnection.cs new file mode 100644 index 00000000..52d0ddc5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XReconnection.cs @@ -0,0 +1,269 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XReconnection : XSingleton + { + public uint SceneID + { + get + { + return this._scene_id; + } + } + + public DeathInfo PlayerDeathinfo + { + get + { + return this._player_death_info; + } + } + + public RoleAllInfo PlayerInfo + { + get + { + return this._player_info; + } + } + + public UnitAppearance PlayerApperance + { + get + { + return this._player_appearance; + } + } + + public Dictionary UnitsAppearance + { + get + { + return this._units_appearance; + } + } + + public bool IsAutoFight + { + get + { + return this._is_auto_fight; + } + } + + public bool IsLoginReconnect + { + get + { + return this._is_login_reconnect; + } + } + + private uint _scene_id; + + private DeathInfo _player_death_info = null; + + private RoleAllInfo _player_info = null; + + private UnitAppearance _player_appearance = null; + + private Dictionary _units_appearance = new Dictionary(); + + private bool _is_auto_fight; + + private bool _is_login_reconnect; + + public void SetLoginReconnectFlag(bool flag) + { + this._is_login_reconnect = flag; + } + + private bool IsValid(UnitAppearance unit) + { + return unit != null && unit.position.x >= XCommon.XEps && unit.position.z >= XCommon.XEps; + } + + private bool IsPupet(uint specialstate) + { + return ((ulong)specialstate & (ulong)(1L << (XFastEnumIntEqualityComparer.ToInt(UnitSpecialState.Unit_Puppet) & 31))) > 0UL; + } + + public void GetReconnectData(PtcG2C_ReconnectSyncNotify data) + { + this._scene_id = ((data.Data.scene == null) ? 1u : data.Data.scene.sceneid); + this._player_death_info = data.Data.deathinfo; + this._player_info = data.Data.self; + this._player_appearance = data.Data.selfAppearance; + this._is_auto_fight = data.Data.isautofight; + XSingleton.singleton.SceneStarted = (data.Data.scene == null || data.Data.scene.isready); + this._units_appearance.Clear(); + bool flag = !XSingleton.singleton.bSpectator; + if (flag) + { + bool flag2 = this.IsValid(this._player_appearance); + if (flag2) + { + this._units_appearance.Add(this._player_appearance.uID, this._player_appearance); + } + } + for (int i = 0; i < data.Data.units.Count; i++) + { + bool flag3 = !this._units_appearance.ContainsKey(data.Data.units[i].uID); + if (flag3) + { + this._units_appearance.Add(data.Data.units[i].uID, data.Data.units[i]); + } + else + { + XSingleton.singleton.AddErrorLog("Reconnect have same key ", data.Data.units[i].uID.ToString(), null, null, null, null); + } + } + this.StartReconnectSync(); + } + + private void StartReconnectSync() + { + bool flag = XSingleton.singleton.SceneID != this._scene_id || !XSingleton.singleton.SceneReady; + if (flag) + { + bool bSceneLoadedRpcSend = XSingleton.singleton.bSceneLoadedRpcSend; + if (bSceneLoadedRpcSend) + { + RpcC2G_DoEnterScene rpcC2G_DoEnterScene = new RpcC2G_DoEnterScene(); + rpcC2G_DoEnterScene.oArg.sceneid = XSingleton.singleton.SceneID; + XSingleton.singleton.Send(rpcC2G_DoEnterScene); + } + } + else + { + this.SyncData(); + } + } + + private void SyncData() + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + bool flag = XSingleton.singleton.Player != null && this._player_death_info != null; + if (flag) + { + XReviveDocument specificDocument = XDocuments.GetSpecificDocument(XReviveDocument.uuID); + specificDocument.SetReviveData((int)this._player_death_info.revivecount, (int)this._player_death_info.costrevivecount, this._player_death_info.type); + } + XSingleton.singleton.OnReconnect(); + XSingleton.singleton.OnReconnect(); + XSingleton.singleton.OnReconnect(); + } + bool flag2 = !this.IsPupet(this._player_appearance.specialstate); + if (flag2) + { + XSingleton.singleton.Stop(true); + } + bool flag3 = !XSingleton.singleton.bSpectator; + if (flag3) + { + XSingleton.singleton.Player.UpdateSpecialStateFromServer(this._player_appearance.specialstate, uint.MaxValue); + } + XReconnectedEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + @event.PlayerInfo = this._player_info; + @event.PlayUnit = this._player_appearance; + XSingleton.singleton.FireEvent(@event); + } + + public void StartEnterSceneSync(List units) + { + bool flag = units.Count == 0; + if (!flag) + { + this._units_appearance.Clear(); + bool flag2 = !XSingleton.singleton.bSpectator; + if (flag2) + { + bool flag3 = this.IsValid(this._player_appearance); + if (flag3) + { + this._units_appearance.Add(XSingleton.singleton.Player.ID, this._player_appearance); + } + } + for (int i = 0; i < units.Count; i++) + { + bool flag4 = !this._units_appearance.ContainsKey(units[i].uID); + if (flag4) + { + this._units_appearance.Add(units[i].uID, units[i]); + } + else + { + XSingleton.singleton.AddErrorLog("Reconnect have same key ", units[i].uID.ToString(), null, null, null, null); + } + } + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + XSingleton.singleton.OnReconnect(); + } + } + } + + public void SetPlayerInfo(RoleAllInfo info) + { + this._player_info = info; + } + + public void StartLoginReconnectSync(LoginReconnectEnterSceneData data, List units) + { + bool flag = data == null; + if (!flag) + { + this._scene_id = XSingleton.singleton.SceneID; + this._player_death_info = data.deathinfo; + this._player_appearance = data.selfAppearance; + this._is_auto_fight = data.isautofight; + XSingleton.singleton.SceneStarted = true; + bool flag2 = XSingleton.singleton.Player != null && data.deathinfo != null; + if (flag2) + { + XReviveDocument specificDocument = XDocuments.GetSpecificDocument(XReviveDocument.uuID); + specificDocument.SetReviveData((int)data.deathinfo.revivecount, (int)data.deathinfo.costrevivecount, data.deathinfo.type); + } + this._units_appearance.Clear(); + bool flag3 = !XSingleton.singleton.bSpectator; + if (flag3) + { + bool flag4 = this.IsValid(this._player_appearance); + if (flag4) + { + this._units_appearance.Add(this._player_appearance.uID, this._player_appearance); + } + } + for (int i = 0; i < units.Count; i++) + { + bool flag5 = !this._units_appearance.ContainsKey(units[i].uID); + if (flag5) + { + this._units_appearance.Add(units[i].uID, units[i]); + } + else + { + XSingleton.singleton.AddErrorLog("Reconnect have same key ", units[i].uID.ToString(), null, null, null, null); + } + } + this.SyncData(); + } + } + + private bool OnReconnectFail(IXUIButton button) + { + XSingleton.singleton.Close(NetErrCode.Net_NoError); + XSingleton.singleton.AuthorizationSignOut(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XReconnection.cs.meta b/Client/Assets/Scripts/XMainClient/XReconnection.cs.meta new file mode 100644 index 00000000..064c3741 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XReconnection.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3dd0f4f0c76bd334e9cfb25e1098222e +timeCreated: 1611403605 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRecycleItemDocument.cs b/Client/Assets/Scripts/XMainClient/XRecycleItemDocument.cs new file mode 100644 index 00000000..d296593c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRecycleItemDocument.cs @@ -0,0 +1,337 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRecycleItemDocument : XDocComponent + { + public override uint ID + { + get + { + return XRecycleItemDocument.uuID; + } + } + + public RecycleItemOperateView OperateView { get; set; } + + public RecycleItemBagView BagView { get; set; } + + public XSysDefine CurrentSys { get; set; } + + public Dictionary SelectedItems + { + get + { + return this.m_SelectedItems; + } + } + + public bool IsSelectionFull + { + get + { + return (long)this.m_SelectedItems.Count >= (long)((ulong)XRecycleItemDocument.MAX_RECYCLE_COUNT); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("RecycleItemDocument"); + + public static readonly uint MAX_RECYCLE_COUNT = 5u; + + private Dictionary m_SelectedItems = new Dictionary(); + + private List m_ItemList = new List(); + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnItemChangeFinished)); + } + + protected bool OnItemChangeFinished(XEventArgs args) + { + bool flag = this.BagView != null && this.BagView.active; + if (flag) + { + this.BagView.UpdateView(); + } + return true; + } + + public void RefreshUI() + { + bool flag = this.BagView != null && this.BagView.active; + if (flag) + { + this.BagView.Refresh(); + } + bool flag2 = this.OperateView != null && this.OperateView.active; + if (flag2) + { + this.OperateView.Refresh(); + } + } + + public List GetItems() + { + this.m_ItemList.Clear(); + for (int i = 0; i < XBagDocument.BagDoc.ItemBag.Count; i++) + { + bool flag = XBagDocument.BagDoc.ItemBag[i].itemConf.IsCanRecycle == 1; + if (flag) + { + this.m_ItemList.Add(XBagDocument.BagDoc.ItemBag[i]); + } + } + return this.m_ItemList; + } + + public void GetQuickSelectItems(int mask) + { + List items = this.GetItems(); + this.ResetSelection(false); + foreach (XItem xitem in items) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(xitem.itemID); + int num = 1 << (int)itemConf.ItemQuality; + bool flag = (num & mask) == 0; + if (!flag) + { + bool flag2 = xitem.itemCount > 1; + if (!flag2) + { + this._ToggleItemSelect(true, xitem.uid, 1UL, false); + bool isSelectionFull = this.IsSelectionFull; + if (isSelectionFull) + { + break; + } + } + } + } + this.RefreshUI(); + } + + public void ResetSelection(bool bRefreshUI) + { + this.m_SelectedItems.Clear(); + if (bRefreshUI) + { + this.RefreshUI(); + } + } + + public bool IsSelected(ulong uid, out int leftCount) + { + leftCount = 0; + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag = this.m_SelectedItems.ContainsKey(uid); + bool result; + if (flag) + { + bool flag2 = itemByUID != null; + if (flag2) + { + leftCount = itemByUID.itemCount - (int)this.m_SelectedItems[uid]; + leftCount = ((leftCount < 0) ? 0 : leftCount); + } + result = true; + } + else + { + bool flag3 = itemByUID != null; + if (flag3) + { + leftCount = itemByUID.itemCount; + } + result = false; + } + return result; + } + + private bool IsSelectFull(ulong uid) + { + bool flag = this.m_SelectedItems.ContainsKey(uid); + bool result; + if (flag) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag2 = itemByUID != null; + if (flag2) + { + result = (itemByUID.itemCount > 999); + } + else + { + this.m_SelectedItems.Remove(uid); + result = false; + } + } + else + { + result = this.IsSelectionFull; + } + return result; + } + + public int GetSelectUidCount(ulong uid) + { + ulong num = 0UL; + this.m_SelectedItems.TryGetValue(uid, out num); + return (int)num; + } + + public void ToggleItemSelect(ulong uid) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag = itemByUID != null; + if (flag) + { + bool flag2 = itemByUID.itemCount == 1; + if (flag2) + { + this._ToggleItemSelect(true, uid, 1UL, true); + } + else + { + bool flag3 = !this.IsSelectFull(uid); + if (flag3) + { + DlgBase.singleton.Show(uid); + } + } + } + } + + public void ToggleItemUnSelect(ulong uid) + { + bool flag = this.m_SelectedItems.ContainsKey(uid); + if (flag) + { + this._ToggleItemSelect(false, uid, this.m_SelectedItems[uid], true); + } + } + + public void _ToggleItemSelect(bool select, ulong uid, ulong count, bool bRefreshUI) + { + bool flag = false; + if (select) + { + bool isSelectionFull = this.IsSelectionFull; + if (isSelectionFull) + { + bool flag2 = this.m_SelectedItems.ContainsKey(uid); + if (flag2) + { + Dictionary selectedItems = this.m_SelectedItems; + selectedItems[uid] += count; + this.m_SelectedItems[uid] = ((this.m_SelectedItems[uid] >= 999UL) ? 999UL : this.m_SelectedItems[uid]); + flag = true; + } + } + else + { + bool flag3 = this.m_SelectedItems.ContainsKey(uid); + if (flag3) + { + Dictionary selectedItems = this.m_SelectedItems; + selectedItems[uid] += count; + this.m_SelectedItems[uid] = ((this.m_SelectedItems[uid] >= 999UL) ? 999UL : this.m_SelectedItems[uid]); + } + else + { + this.m_SelectedItems.Add(uid, count); + } + flag = true; + } + } + else + { + flag = this.m_SelectedItems.Remove(uid); + } + bool flag4 = flag && bRefreshUI; + if (flag4) + { + bool flag5 = this.BagView != null && this.BagView.active; + if (flag5) + { + this.BagView.Refresh(); + } + bool flag6 = this.OperateView != null && this.OperateView.active; + if (flag6) + { + bool flag7 = this.m_SelectedItems.ContainsKey(uid); + if (flag7) + { + this.OperateView.ToggleItem(uid, this.m_SelectedItems[uid], select); + } + else + { + this.OperateView.ToggleItem(uid, 1UL, select); + } + } + } + } + + public void Recycle() + { + bool flag = this.m_SelectedItems.Count == 0; + if (!flag) + { + RpcC2G_DecomposeEquipment rpcC2G_DecomposeEquipment = new RpcC2G_DecomposeEquipment(); + foreach (KeyValuePair keyValuePair in this.m_SelectedItems) + { + rpcC2G_DecomposeEquipment.oArg.equipuniqueid.Add(keyValuePair.Key); + rpcC2G_DecomposeEquipment.oArg.count.Add((uint)keyValuePair.Value); + } + XSingleton.singleton.Send(rpcC2G_DecomposeEquipment); + this.ResetSelection(false); + bool flag2 = this.OperateView != null && this.OperateView.active; + if (flag2) + { + this.OperateView.Refresh(); + } + } + } + + public void OnRecycle(DecomposeEquipmentRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + bool flag2 = oRes.param.Count > 0 && oRes.param[0] > 1f; + if (flag2) + { + bool flag3 = this.OperateView != null && this.OperateView.active; + if (flag3) + { + this.OperateView.PlayCritical(); + } + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.BagView != null && this.BagView.active; + if (flag) + { + this.BagView.Refresh(); + } + bool flag2 = this.OperateView != null && this.OperateView.active; + if (flag2) + { + this.OperateView.Refresh(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRecycleItemDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRecycleItemDocument.cs.meta new file mode 100644 index 00000000..528ce4a9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRecycleItemDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0ca37a4afc485154b9b77706d77bce41 +timeCreated: 1611403175 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XReinforceInfo.cs b/Client/Assets/Scripts/XMainClient/XReinforceInfo.cs new file mode 100644 index 00000000..b525f424 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XReinforceInfo.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal struct XReinforceInfo + { + public uint ReinforceLevel; + + public List ReinforceAttr; + + public void Init() + { + bool flag = this.ReinforceAttr == null; + if (flag) + { + this.ReinforceAttr = new List(); + } + else + { + this.ReinforceAttr.Clear(); + } + this.ReinforceLevel = 0u; + } + + public void Clone(ref XReinforceInfo other) + { + this.Init(); + this.ReinforceLevel = other.ReinforceLevel; + bool flag = other.ReinforceAttr != null; + if (flag) + { + for (int i = 0; i < other.ReinforceAttr.Count; i++) + { + this.ReinforceAttr.Add(other.ReinforceAttr[i]); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XReinforceInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XReinforceInfo.cs.meta new file mode 100644 index 00000000..80925c11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XReinforceInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7731828f1a131714e8ba513d80bd5a37 +timeCreated: 1611403952 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRemoveItemEventArgs.cs b/Client/Assets/Scripts/XMainClient/XRemoveItemEventArgs.cs new file mode 100644 index 00000000..3e77f2fb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRemoveItemEventArgs.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XRemoveItemEventArgs : XEventArgs + { + public List uids = new List(); + + public List types = new List(); + + public List ids = new List(); + + public XRemoveItemEventArgs() + { + this._eDefine = XEventDefine.XEvent_RemoveItem; + } + + public override void Recycle() + { + base.Recycle(); + this.uids.Clear(); + this.types.Clear(); + this.ids.Clear(); + XEventPool.Recycle(this); + } + + public override XEventArgs Clone() + { + XRemoveItemEventArgs @event = XEventPool.GetEvent(); + for (int i = 0; i < this.uids.Count; i++) + { + @event.uids.Add(this.uids[i]); + @event.types.Add(this.types[i]); + @event.ids.Add(this.ids[i]); + } + return @event; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRemoveItemEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XRemoveItemEventArgs.cs.meta new file mode 100644 index 00000000..d6811321 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRemoveItemEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d4016ccb636334b4a95267d189c35215 +timeCreated: 1611404600 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRenameDocument.cs b/Client/Assets/Scripts/XMainClient/XRenameDocument.cs new file mode 100644 index 00000000..fe68cfba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRenameDocument.cs @@ -0,0 +1,195 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRenameDocument : XDocComponent + { + public override uint ID + { + get + { + return XRenameDocument.uuID; + } + } + + public uint renameTimes + { + get + { + return this.m_renamesTime; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("RenameDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static RenameList RenameListTable = new RenameList(); + + private uint m_renamesTime = 0u; + + public enum RenameType + { + GUILD_NAME_VOLUME, + PLAYER_NAME_VOLUME, + PLAYER_NAME_COST, + DRAGON_GUILD_NAME_VOLUME + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + XRenameDocument.AsyncLoader.AddTask("Table/RenameList", XRenameDocument.RenameListTable, false); + XRenameDocument.AsyncLoader.Execute(callback); + } + + public int GetRenameCost(uint renameTimes) + { + int num = XRenameDocument.RenameListTable.Table.Length; + bool flag = (ulong)renameTimes < (ulong)((long)num); + int cost; + if (flag) + { + cost = XRenameDocument.RenameListTable.GetByid((int)renameTimes).cost; + } + else + { + cost = XRenameDocument.RenameListTable.Table[num - 1].cost; + } + return cost; + } + + public void SetPlayerRenameTimes(uint value) + { + this.m_renamesTime = value; + XSingleton.singleton.AddGreenLog("SetPlayerRenameTimes" + value, null, null, null, null, null); + } + + public void SendPlayerConstRename(string value, bool isUseItem = false) + { + bool flag = string.IsNullOrEmpty(value); + if (!flag) + { + RpcC2M_ChangeNameNew rpcC2M_ChangeNameNew = new RpcC2M_ChangeNameNew(); + rpcC2M_ChangeNameNew.oArg.name = value; + rpcC2M_ChangeNameNew.oArg.iscostitem = isUseItem; + XSingleton.singleton.Send(rpcC2M_ChangeNameNew); + } + } + + public void ReceivePlayerCostRename(ChangeNameArg arg, ChangeNameRes res) + { + bool flag = res.errorcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenameSuccess"), "fece00"); + XSingleton.singleton.XPlayerData.Name = arg.name; + XPlayer player = XSingleton.singleton.Player; + bool flag2 = !arg.iscostitem; + if (flag2) + { + this.m_renamesTime += 1u; + } + bool flag3 = player != null && player.BillBoard != null; + if (flag3) + { + player.BillBoard.Attached(); + } + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + bool flag5 = DlgBase.singleton.IsVisible() && DlgBase.singleton.CurrentTab == OptionsTab.InfoTab; + if (flag5) + { + DlgBase.singleton.OnTabChanged(OptionsTab.InfoTab); + } + } + else + { + XSingleton.singleton.ShowErrorCode(res.errorcode); + } + } + + public void SendDragonGuildRenameVolume(string targetValue) + { + bool flag = string.IsNullOrEmpty(targetValue); + if (!flag) + { + RpcC2M_ModifyDragonGuildName rpcC2M_ModifyDragonGuildName = new RpcC2M_ModifyDragonGuildName(); + rpcC2M_ModifyDragonGuildName.oArg.name = targetValue; + XSingleton.singleton.Send(rpcC2M_ModifyDragonGuildName); + } + } + + public void ReceiveDragonGuildRenameVolume(ModifyDragonGuildNameArg oArg, ModifyDragonGuildNameRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.result); + } + else + { + XDragonGuildDocument.Doc.OnNameChange(oArg.name); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenameSuccess"), "fece00"); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + } + + public void SendGuildRenameVolume(string targetValue) + { + bool flag = string.IsNullOrEmpty(targetValue); + if (!flag) + { + RpcC2M_ModifyMsGuildName rpcC2M_ModifyMsGuildName = new RpcC2M_ModifyMsGuildName(); + rpcC2M_ModifyMsGuildName.oArg.name = targetValue; + XSingleton.singleton.Send(rpcC2M_ModifyMsGuildName); + } + } + + public void ReceiveGuildRenameVolume(ModifyArg oArg, ModifyRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowErrorCode(oRes.error); + } + else + { + this.NotifyGuildNewName(oArg.name); + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("RenameSuccess"), "fece00"); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(false, null); + } + } + } + + public void NotifyGuildNewName(string targetName) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool bInGuild = specificDocument.bInGuild; + if (bInGuild) + { + specificDocument.BasicData.guildName = targetName; + XGuildInfoChange @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRenameDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRenameDocument.cs.meta new file mode 100644 index 00000000..3c47dc27 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRenameDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7e2ffeedf15a1cf45b921f6860e10d87 +timeCreated: 1611404003 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRenderComponent.cs b/Client/Assets/Scripts/XMainClient/XRenderComponent.cs new file mode 100644 index 00000000..4d6b072d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRenderComponent.cs @@ -0,0 +1,819 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRenderComponent : XComponent + { + public override uint ID + { + get + { + return XRenderComponent.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Renderer"); + + private List renderObjs = new List(); + + private int _load_part_flag = 0; + + private int _target_part_flag = 0; + + private int _currentLayer = XRole.RoleLayer; + + private bool _fadeOnCreate = false; + + private bool _fadeEffect = false; + + private bool _InFadeState = false; + + private XRenderComponent.FadeType _type = XRenderComponent.FadeType.FadeIn; + + private XRenderComponent.FadeState _fadeState = XRenderComponent.FadeState.Visible; + + private float _elapsed = 0f; + + private float _time = 0f; + + private int _targetFadeColor = 0; + + private uint _timerToken = 0u; + + private float _blinkValue = 0.01f; + + private float _blinkDelta = 0.01f; + + private XTimerMgr.ElapsedEventHandler _onHitBackCb = null; + + private XRenderComponent.RenderAction _action = XRenderComponent.RenderAction.None; + + private static CommandCallback _initCb = new CommandCallback(XRenderComponent._Init); + + private static Color32 hitColor = new Color32(byte.MaxValue, byte.MaxValue, byte.MaxValue, 204); + + private static Color32 fadeColor = new Color32(192, 192, 192, byte.MaxValue); + + private static Color32 highlightColor = new Color32(133, 121, 91, 51); + + private enum FadeType + { + NotFade, + FadeIn, + FadeOut + } + + private enum FadeState + { + Visible, + Fading, + InVisible + } + + public enum LoadPart + { + Equip = 1, + Shadow, + Mount = 4 + } + + private enum RenderAction + { + None, + HitRender, + Blink, + Fade, + DistanceFade + } + + public XRenderComponent() + { + this._onHitBackCb = new XTimerMgr.ElapsedEventHandler(this.OnHitBack); + } + + public static bool HasRenderComponent(XEntity e, bool hasFadeEffect) + { + return (e.IsRole && !e.IsPlayer && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall) || (XSingleton.singleton.CurrentStage.Stage == EXStage.World && hasFadeEffect); + } + + public static XRenderComponent AddRenderComponent(XEntity e) + { + bool flag = XSingleton.singleton.CanFadeOnCreate && !e.IsRole && !e.IsPuppet && (e.SkillMgr == null || e.Present.PresentLib.Appear == ""); + bool flag2 = (EntityMask.Fade & e.Attributes.Tag) > 0u; + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && (flag || e.IsRole) && XQualitySetting.GetQuality(EFun.EFadeInOut); + if (flag3) + { + flag2 = true; + } + bool flag4 = XRenderComponent.HasRenderComponent(e, flag2); + XRenderComponent result; + if (flag4) + { + XRenderComponent xrenderComponent = XSingleton.singleton.CreateComponent(e, XRenderComponent.uuID) as XRenderComponent; + bool flag5 = xrenderComponent != null; + if (flag5) + { + xrenderComponent._fadeOnCreate = flag; + xrenderComponent._fadeEffect = flag2; + bool flag6 = e.IsRole && XSingleton.singleton.IsViewGridScene; + if (flag6) + { + xrenderComponent._action = XRenderComponent.RenderAction.DistanceFade; + xrenderComponent._fadeState = XRenderComponent.FadeState.InVisible; + } + else + { + xrenderComponent._fadeState = XRenderComponent.FadeState.Visible; + } + } + result = xrenderComponent; + } + else + { + result = null; + } + return result; + } + + public void SetEntityLayer(int initLayer) + { + this._currentLayer = initLayer; + } + + public void PostCreateComponent() + { + bool flag = this._entity.IsRole && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this._target_part_flag = 1; + bool flag2 = this._entity.Attributes.Outlook.state.type == OutLookStateType.OutLook_RidePet; + if (flag2) + { + this._target_part_flag += 4; + } + bool quality = XQualitySetting.GetQuality(EFun.ERoleShadow); + if (quality) + { + this._target_part_flag += 2; + } + } + } + + private void AddObject(GameObject mainGo, Renderer render) + { + bool flag = render != null; + if (flag) + { + int renderLayer = (this._fadeState == XRenderComponent.FadeState.InVisible) ? XQualitySetting.InVisiblityLayer : this._currentLayer; + bool flag2 = !this._fadeEffect || render.CompareTag("BindedRes") || render.CompareTag("Mount_BindedRes") || render.CompareTag("Shadow"); + if (flag2) + { + UnFadeObject unFadeObject = new UnFadeObject(); + unFadeObject.InstanceID = mainGo.GetInstanceID(); + unFadeObject.renderGO = render.gameObject; + unFadeObject.SetRenderLayer(renderLayer); + this.renderObjs.Add(unFadeObject); + } + else + { + Material material = render.material; + bool flag3 = material != null; + if (flag3) + { + MatPackage matPack = MatPackage.GetMatPack(material, render); + matPack.InstanceID = mainGo.GetInstanceID(); + matPack.SetRenderLayer(renderLayer); + this.renderObjs.Add(matPack); + } + } + } + } + + private void RemoveObject(int instanceID) + { + for (int i = this.renderObjs.Count - 1; i >= 0; i--) + { + IRenderObject renderObject = this.renderObjs[i]; + bool flag = renderObject.IsSameObj(instanceID); + if (flag) + { + renderObject.SetRenderLayer(this._entity.DefaultLayer); + renderObject.ResetShader(); + this.renderObjs.RemoveAt(i); + } + } + } + + public static void AddEquipObj(XEntity e, GameObject mainGo, Renderer render) + { + bool flag = e != null && mainGo != null && render != null; + if (flag) + { + XRenderComponent renderer = e.Renderer; + bool flag2 = renderer != null; + if (flag2) + { + renderer._load_part_flag |= XFastEnumIntEqualityComparer.ToInt(XRenderComponent.LoadPart.Equip); + renderer.AddObject(mainGo, render); + } + } + } + + public static void AddFx(XEntity e, XFx fx) + { + bool flag = e != null && fx != null; + if (flag) + { + XRenderComponent renderer = e.Renderer; + bool flag2 = renderer != null; + if (flag2) + { + int renderLayer = (renderer._fadeState == XRenderComponent.FadeState.InVisible) ? XQualitySetting.InVisiblityLayer : renderer._currentLayer; + bool flag3 = renderer._type == XRenderComponent.FadeType.FadeOut; + if (flag3) + { + renderLayer = XQualitySetting.InVisiblityLayer; + } + fx.SetRenderLayer(renderLayer); + renderer.renderObjs.Add(fx); + } + } + } + + public static void RemoveObj(XEntity e, GameObject go) + { + bool flag = e != null && go != null; + if (flag) + { + XRenderComponent renderer = e.Renderer; + bool flag2 = renderer != null; + if (flag2) + { + renderer.RemoveObject(go.GetInstanceID()); + } + } + } + + public static void RemoveFx(XEntity e, XFx fx) + { + bool flag = e != null && fx != null; + if (flag) + { + XRenderComponent renderer = e.Renderer; + bool flag2 = renderer != null; + if (flag2) + { + renderer.RemoveObject(fx._instanceID); + } + } + } + + public static void AddShadowObj(XEntity e, GameObject mainGo, Renderer render) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && e != null; + if (flag) + { + XRenderComponent renderer = e.Renderer; + bool flag2 = renderer != null; + if (flag2) + { + renderer._load_part_flag |= XFastEnumIntEqualityComparer.ToInt(XRenderComponent.LoadPart.Shadow); + renderer.AddObject(mainGo, render); + } + } + } + + public static void AddMountObj(XEntity e, GameObject mainGo, Renderer render) + { + bool flag = e != null; + if (flag) + { + XRenderComponent renderer = e.Renderer; + bool flag2 = renderer != null; + if (flag2) + { + int num = XFastEnumIntEqualityComparer.ToInt(XRenderComponent.LoadPart.Mount); + bool flag3 = (renderer._target_part_flag & num) != 0 && e.Attributes.Outlook.state.type == OutLookStateType.OutLook_RidePet; + if (flag3) + { + renderer._load_part_flag |= num; + } + renderer.AddObject(mainGo, render); + } + } + } + + public static void OnHit(XEntity e) + { + bool flag = e != null; + if (flag) + { + XRenderComponent renderer = e.Renderer; + bool flag2 = renderer != null; + if (flag2) + { + bool flag3 = renderer._action > XRenderComponent.RenderAction.None; + if (!flag3) + { + renderer.SetShader(XRenderComponent.RenderAction.HitRender, XRenderComponent.hitColor); + XSingleton.singleton.KillTimer(renderer._timerToken); + renderer._timerToken = XSingleton.singleton.SetTimer(0.1f, renderer._onHitBackCb, null); + } + } + } + } + + private static XRenderComponent DynamicAddRenderComp(XEntity e, bool hide) + { + XRenderComponent xrenderComponent = XSingleton.singleton.CreateComponent(e, XRenderComponent.uuID) as XRenderComponent; + bool flag = xrenderComponent != null; + if (flag) + { + e.Renderer = xrenderComponent; + xrenderComponent._fadeOnCreate = false; + xrenderComponent._fadeEffect = true; + xrenderComponent._fadeState = (hide ? XRenderComponent.FadeState.InVisible : XRenderComponent.FadeState.Visible); + bool flag2 = e.Equipment != null; + if (flag2) + { + e.Equipment.RefreshRenderObj(); + } + else + { + e.EngineObject.CallCommand(XRenderComponent._initCb, xrenderComponent, -1, false); + } + } + return xrenderComponent; + } + + public static void OnFade(XEntity e, bool fadeIn, float time, bool isVisibleAfterFadeout) + { + bool flag = e != null; + if (flag) + { + XRenderComponent xrenderComponent = e.Renderer; + bool flag2 = xrenderComponent == null; + if (flag2) + { + xrenderComponent = XRenderComponent.DynamicAddRenderComp(e, false); + } + bool flag3 = xrenderComponent != null; + if (flag3) + { + xrenderComponent._InFadeState = !fadeIn; + xrenderComponent.InitFade(fadeIn ? XRenderComponent.FadeType.FadeIn : XRenderComponent.FadeType.FadeOut, time, isVisibleAfterFadeout ? 50 : 0); + } + } + } + + public static void OnHide(XEntity e, bool hide) + { + bool flag = e != null; + if (flag) + { + XRenderComponent renderer = e.Renderer; + bool flag2 = renderer != null; + if (flag2) + { + renderer._fadeState = (hide ? XRenderComponent.FadeState.InVisible : XRenderComponent.FadeState.Visible); + renderer._action = XRenderComponent.RenderAction.None; + renderer.ResetShader(); + int layer = hide ? XQualitySetting.InVisiblityLayer : renderer._currentLayer; + renderer.SetLayer(layer); + } + else + { + XRenderComponent.DynamicAddRenderComp(e, hide); + } + } + } + + private void OnFade() + { + Color32 color = XRenderComponent.fadeColor; + color.a = (byte)this._targetFadeColor; + this.SetShader(XRenderComponent.RenderAction.Fade, color); + this._action = XRenderComponent.RenderAction.None; + int layer = (this._targetFadeColor == 0) ? XQualitySetting.InVisiblityLayer : this._currentLayer; + this.SetLayer(layer); + } + + public static void OnTransform(XEntity src, XEntity target, bool to) + { + XRenderComponent renderer = src.Renderer; + XRenderComponent renderer2 = target.Renderer; + bool flag = renderer != null; + if (flag) + { + bool flag2 = renderer._action == XRenderComponent.RenderAction.DistanceFade; + if (flag2) + { + if (to) + { + src.EngineObject.Layer = src.DefaultLayer; + renderer._fadeState = XRenderComponent.FadeState.Visible; + } + } + else + { + bool inFadeState = renderer._InFadeState; + if (inFadeState) + { + XRenderComponent.OnFade(target, false, renderer._time, renderer._targetFadeColor != 0); + } + else + { + bool flag3 = renderer2 != null; + if (flag3) + { + renderer2.FadeInImmediately(); + } + } + } + } + } + + private void InitFade(XRenderComponent.FadeType fadeType, float time, int targetColor) + { + this._type = fadeType; + this._time = time; + this._elapsed = 0f; + this._targetFadeColor = targetColor; + bool flag = this._type == XRenderComponent.FadeType.FadeIn; + if (flag) + { + this.SetLayer(this._currentLayer); + } + this.SetShader(XRenderComponent.RenderAction.Fade, XRenderComponent.fadeColor); + } + + private void SetLayer(int layer) + { + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.SetRenderLayer(layer); + } + } + + public void FadeInImmediately() + { + this._action = XRenderComponent.RenderAction.None; + this._time = 0f; + this._elapsed = 0f; + this._type = XRenderComponent.FadeType.NotFade; + this.ResetShader(); + } + + private void OnHitBack(object o) + { + bool flag = this._action == XRenderComponent.RenderAction.HitRender; + if (flag) + { + this._action = XRenderComponent.RenderAction.None; + this.ResetShader(); + } + } + + private void SetFade(Color32 c, byte a) + { + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.SetColor(c.r, c.g, c.b, a); + } + } + + private void SetShader(XRenderComponent.RenderAction action, Color32 color) + { + this._action = action; + int shader = 0; + XRenderComponent.RenderAction action2 = this._action; + if (action2 - XRenderComponent.RenderAction.HitRender > 1) + { + if (action2 - XRenderComponent.RenderAction.Fade <= 1) + { + shader = 0; + } + } + else + { + shader = 1; + } + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.SetShader(shader); + renderObject.SetColor(color); + } + } + + private void ResetShader() + { + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.ResetShader(); + } + } + + private void DistanceFade() + { + switch (this._fadeState) + { + case XRenderComponent.FadeState.Visible: + { + Vector3 position = XSingleton.singleton.Player.MoveObj.Position; + Vector3 position2 = this._entity.MoveObj.Position; + float num = (position2.x - position.x) * (position2.x - position.x) + (position2.z - position.z) * (position2.z - position.z); + bool flag = num > XQualitySetting._FadeDistance; + if (flag) + { + this._time = 0.5f; + this._elapsed = 0f; + this._type = XRenderComponent.FadeType.FadeOut; + this._fadeState = XRenderComponent.FadeState.Fading; + this.SetShader(XRenderComponent.RenderAction.DistanceFade, XRenderComponent.fadeColor); + } + break; + } + case XRenderComponent.FadeState.Fading: + { + bool flag2 = this._type == XRenderComponent.FadeType.FadeIn; + int renderLayer = flag2 ? this._currentLayer : XQualitySetting.InVisiblityLayer; + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.ResetShader(); + renderObject.SetRenderLayer(renderLayer); + } + this._fadeState = (flag2 ? XRenderComponent.FadeState.Visible : XRenderComponent.FadeState.InVisible); + this._type = XRenderComponent.FadeType.NotFade; + break; + } + case XRenderComponent.FadeState.InVisible: + { + Vector3 position3 = XSingleton.singleton.Player.MoveObj.Position; + Vector3 position4 = this._entity.MoveObj.Position; + float num2 = (position4.x - position3.x) * (position4.x - position3.x) + (position4.z - position3.z) * (position4.z - position3.z); + bool flag3 = num2 < XQualitySetting._FadeDistance - 2f; + if (flag3) + { + bool flag4 = this._entity.Ator != null; + if (flag4) + { + this._entity.Ator.enabled = true; + } + this._time = 1f; + this._elapsed = 0f; + this._type = XRenderComponent.FadeType.FadeIn; + this.SetShader(XRenderComponent.RenderAction.DistanceFade, XRenderComponent.fadeColor); + for (int j = 0; j < this.renderObjs.Count; j++) + { + IRenderObject renderObject2 = this.renderObjs[j]; + renderObject2.SetColor(XRenderComponent.fadeColor.r, XRenderComponent.fadeColor.g, XRenderComponent.fadeColor.b, 0); + renderObject2.SetRenderLayer(this._currentLayer); + } + bool flag5 = this._entity.Ator != null; + if (flag5) + { + this._entity.Ator.enabled = true; + } + this._fadeState = XRenderComponent.FadeState.Fading; + this._entity.Ator.ResetTrigger(); + } + break; + } + } + } + + public override void OnDetachFromHost() + { + bool flag = this._timerToken > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timerToken); + } + this._action = XRenderComponent.RenderAction.None; + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.ResetShader(); + renderObject.SetRenderLayer(this._entity.DefaultLayer); + renderObject.Clean(); + } + this.renderObjs.Clear(); + this._load_part_flag = 0; + this._target_part_flag = 0; + this._currentLayer = XRole.RoleLayer; + this._fadeOnCreate = false; + this._fadeEffect = false; + this._InFadeState = false; + this._type = XRenderComponent.FadeType.FadeIn; + this._fadeState = XRenderComponent.FadeState.Visible; + this._elapsed = 0f; + this._time = 0f; + this._targetFadeColor = 0; + this._timerToken = 0u; + this._blinkValue = 0.01f; + this._blinkDelta = 0.01f; + base.OnDetachFromHost(); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_FadeIn, new XComponent.XEventHandler(this.OnIn)); + base.RegisterEvent(XEventDefine.XEvent_FadeOut, new XComponent.XEventHandler(this.OnOut)); + base.RegisterEvent(XEventDefine.XEvent_Highlight, new XComponent.XEventHandler(this.HighlightSelf)); + } + + private static void _Init(XGameObject gameObject, object o, int commandID) + { + XRenderComponent xrenderComponent = o as XRenderComponent; + GameObject gameObject2 = gameObject.Get(); + XCommon.tmpRender.Clear(); + gameObject2.GetComponentsInChildren(XCommon.tmpRender); + int count = XCommon.tmpRender.Count; + for (int i = 0; i < count; i++) + { + Renderer renderer = XCommon.tmpRender[i]; + bool flag = !renderer.CompareTag("Shadow"); + if (flag) + { + xrenderComponent.AddObject(gameObject2, renderer); + } + } + XCommon.tmpRender.Clear(); + bool flag2 = xrenderComponent._fadeState == XRenderComponent.FadeState.InVisible; + if (flag2) + { + xrenderComponent.ResetShader(); + xrenderComponent.SetLayer(XQualitySetting.InVisiblityLayer); + } + else + { + bool inFadeState = xrenderComponent._InFadeState; + if (inFadeState) + { + xrenderComponent.OnFade(); + } + else + { + bool fadeOnCreate = xrenderComponent._fadeOnCreate; + if (fadeOnCreate) + { + xrenderComponent.InitFade(XRenderComponent.FadeType.FadeIn, 1f, 255); + xrenderComponent.SetFade(XRenderComponent.fadeColor, 0); + } + } + } + } + + public override void Attached() + { + bool flag = this._entity.Equipment == null && (this._fadeEffect || this._fadeOnCreate); + if (flag) + { + this._entity.EngineObject.CallCommand(XRenderComponent._initCb, this, -1, false); + } + } + + public override void PostUpdate(float fDeltaT) + { + bool isTransform = this._entity.IsTransform; + if (!isTransform) + { + bool flag = true; + bool flag2 = this._type > XRenderComponent.FadeType.NotFade; + if (flag2) + { + flag = false; + this._elapsed += fDeltaT; + bool flag3 = this._elapsed < this._time; + if (flag3) + { + XRenderComponent.FadeType type = this._type; + if (type != XRenderComponent.FadeType.FadeIn) + { + if (type == XRenderComponent.FadeType.FadeOut) + { + float num = (float)(255 - this._targetFadeColor) * (this._time - this._elapsed) / this._time + (float)this._targetFadeColor; + this.SetFade(XRenderComponent.fadeColor, (byte)num); + } + } + else + { + this.SetFade(XRenderComponent.fadeColor, (byte)(255f * this._elapsed / this._time)); + } + } + else + { + flag = true; + } + } + bool flag4 = flag; + if (flag4) + { + switch (this._action) + { + case XRenderComponent.RenderAction.Blink: + { + this._blinkValue += this._blinkDelta; + bool flag5 = this._blinkValue > 0.4f; + if (flag5) + { + this._blinkDelta = -0.01f; + } + bool flag6 = this._blinkValue < 0.2f; + if (flag6) + { + this._blinkDelta = 0.01f; + } + float num2 = (this._blinkValue > 0.4f) ? 0.4f : this._blinkValue; + byte b = (byte)(255f * num2); + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.SetColor(b, b, b, b); + } + break; + } + case XRenderComponent.RenderAction.Fade: + { + bool flag7 = flag; + if (flag7) + { + bool flag8 = this._type == XRenderComponent.FadeType.FadeIn; + if (flag8) + { + this.ResetShader(); + this._fadeState = XRenderComponent.FadeState.Visible; + } + else + { + bool flag9 = this._type == XRenderComponent.FadeType.FadeOut; + if (flag9) + { + this._fadeState = ((this._targetFadeColor == 0) ? XRenderComponent.FadeState.InVisible : XRenderComponent.FadeState.Visible); + int layer = (this._targetFadeColor == 0) ? XQualitySetting.InVisiblityLayer : this._currentLayer; + this.SetLayer(layer); + } + } + this._type = XRenderComponent.FadeType.NotFade; + this._action = XRenderComponent.RenderAction.None; + } + break; + } + case XRenderComponent.RenderAction.DistanceFade: + { + bool flag10 = this._target_part_flag == this._load_part_flag && XSingleton.singleton.NeedFixedUpdate; + if (flag10) + { + this.DistanceFade(); + } + break; + } + } + } + for (int j = 0; j < this.renderObjs.Count; j++) + { + IRenderObject renderObject2 = this.renderObjs[j]; + renderObject2.Update(); + } + } + } + + protected bool OnIn(XEventArgs e) + { + XFadeInEventArgs xfadeInEventArgs = e as XFadeInEventArgs; + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.SetRenderLayer(this._currentLayer); + } + return true; + } + + protected bool OnOut(XEventArgs e) + { + for (int i = 0; i < this.renderObjs.Count; i++) + { + IRenderObject renderObject = this.renderObjs[i]; + renderObject.SetRenderLayer(XQualitySetting.InVisiblityLayer); + } + return true; + } + + private bool HighlightSelf(XEventArgs e) + { + this._blinkValue = 0.2f; + this._blinkDelta = 0.01f; + this.SetShader(XRenderComponent.RenderAction.Blink, XRenderComponent.highlightColor); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRenderComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XRenderComponent.cs.meta new file mode 100644 index 00000000..1533ce19 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRenderComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 64aa771d82796df4891fa1cef7710a4a +timeCreated: 1611403848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRequestDocument.cs b/Client/Assets/Scripts/XMainClient/XRequestDocument.cs new file mode 100644 index 00000000..019d488d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRequestDocument.cs @@ -0,0 +1,124 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRequestDocument : XDocComponent + { + public List List + { + get + { + return this._list; + } + } + + public override uint ID + { + get + { + return XRequestDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("RequestDocument"); + + private List _list = new List(); + + public int MainInterfaceNum = 0; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void QueryRequestList() + { + RpcC2G_GetGuildCampPartyExchangeInfo rpc = new RpcC2G_GetGuildCampPartyExchangeInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnRequestListGet(List list) + { + this._list.Clear(); + for (int i = 0; i < list.Count; i++) + { + this._list.Add(this.Copy(list[i])); + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.Refresh(true); + } + } + + public void RemoveList(bool isAll, ulong uid) + { + if (isAll) + { + this._list.Clear(); + } + else + { + for (int i = 0; i < this._list.Count; i++) + { + bool flag = this._list[i].role_id == uid; + if (flag) + { + this._list.RemoveAt(i); + break; + } + } + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.Refresh(true); + } + } + + public PartyExchangeItemInfo Copy(PartyExchangeItemInfo info) + { + return new PartyExchangeItemInfo + { + level = info.level, + name = info.name, + profession_id = info.profession_id, + time = info.time, + role_id = info.role_id + }; + } + + public void ClearList() + { + RpcC2G_ReplyPartyExchangeItemOpt rpcC2G_ReplyPartyExchangeItemOpt = new RpcC2G_ReplyPartyExchangeItemOpt(); + rpcC2G_ReplyPartyExchangeItemOpt.oArg.operate_type = 2u; + XSingleton.singleton.Send(rpcC2G_ReplyPartyExchangeItemOpt); + } + + public void QueryAcceptExchange(ulong uid) + { + RpcC2G_ReplyPartyExchangeItemOpt rpcC2G_ReplyPartyExchangeItemOpt = new RpcC2G_ReplyPartyExchangeItemOpt(); + rpcC2G_ReplyPartyExchangeItemOpt.oArg.lauch_role_id = uid; + rpcC2G_ReplyPartyExchangeItemOpt.oArg.operate_type = 3u; + XSingleton.singleton.Send(rpcC2G_ReplyPartyExchangeItemOpt); + } + + public void QueryRefuseExchange(ulong uid) + { + RpcC2G_ReplyPartyExchangeItemOpt rpcC2G_ReplyPartyExchangeItemOpt = new RpcC2G_ReplyPartyExchangeItemOpt(); + rpcC2G_ReplyPartyExchangeItemOpt.oArg.lauch_role_id = uid; + rpcC2G_ReplyPartyExchangeItemOpt.oArg.operate_type = 1u; + XSingleton.singleton.Send(rpcC2G_ReplyPartyExchangeItemOpt); + } + + public void SetMainInterfaceNum(int num) + { + this.MainInterfaceNum = num; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_Exchange, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRequestDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRequestDocument.cs.meta new file mode 100644 index 00000000..116e959f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRequestDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a61cf28eca46b3a4ea6da24f0e710325 +timeCreated: 1611404287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XReviveDocument.cs b/Client/Assets/Scripts/XMainClient/XReviveDocument.cs new file mode 100644 index 00000000..90added7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XReviveDocument.cs @@ -0,0 +1,317 @@ +using System; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XReviveDocument : XDocComponent + { + public override uint ID + { + get + { + return XReviveDocument.uuID; + } + } + + public bool CanVipRevive + { + get + { + return this._can_vip_revive; + } + } + + public uint VipReviveCount + { + get + { + return this._vip_revive_count; + } + set + { + this._vip_revive_count = value; + } + } + + public string LeaveSceneTip + { + get + { + return this._leave_scene_tip; + } + } + + public string BuffStringTip + { + get + { + return this._buff_string_tip; + } + } + + public uint NormalCostID + { + get + { + bool flag = this._normal_cost_list.Count == 0; + uint result; + if (flag) + { + result = 0u; + } + else + { + bool flag2 = this._revive_cost_time < this._normal_cost_list.Count; + if (flag2) + { + result = this._normal_cost_list[this._revive_cost_time, 0]; + } + else + { + result = this._normal_cost_list[this._normal_cost_list.Count - 1, 0]; + } + } + return result; + } + } + + public uint NormalCostCount + { + get + { + bool flag = this._normal_cost_list.Count == 0; + uint result; + if (flag) + { + result = 0u; + } + else + { + bool flag2 = this._revive_cost_time < this._normal_cost_list.Count; + if (flag2) + { + result = this._normal_cost_list[this._revive_cost_time, 1]; + } + else + { + result = this._normal_cost_list[this._normal_cost_list.Count - 1, 1]; + } + } + return result; + } + } + + public uint SpecialCostID + { + get + { + bool flag = this._special_cost_list.Count == 0; + uint result; + if (flag) + { + result = 0u; + } + else + { + bool flag2 = this._revive_cost_time < this._special_cost_list.Count; + if (flag2) + { + result = this._special_cost_list[this._revive_cost_time, 0]; + } + else + { + result = this._special_cost_list[this._special_cost_list.Count - 1, 0]; + } + } + return result; + } + } + + public uint SpecialCostCount + { + get + { + bool flag = this._special_cost_list.Count == 0; + uint result; + if (flag) + { + result = 0u; + } + else + { + bool flag2 = this._revive_cost_time < this._special_cost_list.Count; + if (flag2) + { + result = this._special_cost_list[this._revive_cost_time, 1]; + } + else + { + result = this._special_cost_list[this._special_cost_list.Count - 1, 1]; + } + } + return result; + } + } + + public int ReviveUsedTime + { + get + { + return this._revive_used_time; + } + } + + public int ReviveMaxTime + { + get + { + return this._revive_max_time; + } + } + + public int ReviveCostTime + { + get + { + return this._revive_cost_time; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ReviveDocument"); + + private string _leave_scene_tip = ""; + + private string _buff_string_tip = ""; + + private SeqListRef _normal_cost_list; + + private SeqListRef _special_cost_list; + + private int _revive_used_time = 0; + + private int _revive_max_time = 0; + + private int _revive_cost_time = 0; + + private ReviveType _sync_revive_type = ReviveType.ReviveNone; + + private bool _can_vip_revive = false; + + private uint _vip_revive_count = 0u; + + private bool _auto_revive = false; + + private bool _auto_revive_limit = false; + + private float _auto_revive_time = 0f; + + private uint _auto_revive_token = 0u; + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + this._leave_scene_tip = XSingleton.singleton.ReplaceReturn(sceneData.LeaveSceneTip); + this._buff_string_tip = XSingleton.singleton.ReplaceReturn(sceneData.ReviveBuffTip); + this._revive_max_time = (int)sceneData.ReviveNumb; + this._revive_used_time = 0; + this._revive_cost_time = 0; + this._normal_cost_list = sceneData.ReviveCost; + this._special_cost_list = sceneData.ReviveMoneyCost; + this._can_vip_revive = (sceneData.CanVIPRevive == 0); + this._vip_revive_count = (uint)sceneData.VipReviveLimit; + this.ResetAutoReviveData(); + } + + public void SetReviveData(int usedtime, int costtime, ReviveType type) + { + this._revive_used_time = usedtime; + this._revive_cost_time = costtime; + this._sync_revive_type = type; + } + + public void SendReviveRpc(ReviveType type) + { + RpcC2G_Revive rpcC2G_Revive = new RpcC2G_Revive(); + rpcC2G_Revive.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_Revive); + } + + public void SendLeaveScene() + { + XSingleton.singleton.SendLevelFailData(); + XSingleton.singleton.ReqLeaveScene(); + } + + public void ResetAutoReviveData() + { + this._auto_revive = false; + this._auto_revive_limit = false; + this._auto_revive_time = 0f; + } + + public void SetAutoReviveData(bool haslimit, float time = 2f) + { + this._auto_revive = true; + this._auto_revive_limit = haslimit; + this._auto_revive_time = time; + } + + public void StartRevive() + { + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + ReviveType sync_revive_type = this._sync_revive_type; + if (sync_revive_type - ReviveType.ReviveItem <= 1 || sync_revive_type == ReviveType.ReviveVIP) + { + DlgBase.singleton.SetVisible(true, true); + } + } + else + { + bool auto_revive = this._auto_revive; + if (auto_revive) + { + XSingleton.singleton.KillTimer(this._auto_revive_token); + this._auto_revive_token = XSingleton.singleton.SetTimer(this._auto_revive_time, new XTimerMgr.ElapsedEventHandler(this.SendAutoReviveRpc), null); + } + else + { + DlgBase.singleton.SetVisible(true, true); + } + } + } + + private void SendAutoReviveRpc(object o) + { + RpcC2G_Revive rpcC2G_Revive = new RpcC2G_Revive(); + rpcC2G_Revive.oArg.type = ReviveType.ReviveSprite; + rpcC2G_Revive.oArg.clientinfo = new ClientReviveInfo(); + rpcC2G_Revive.oArg.clientinfo.islimit = this._auto_revive_limit; + XSingleton.singleton.Send(rpcC2G_Revive); + } + + public void ShowSpecialRevive() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.ShowSpecialReviveFrame(); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool auto_revive = this._auto_revive; + if (auto_revive) + { + XSingleton.singleton.KillTimer(this._auto_revive_token); + this.ShowSpecialRevive(); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XReviveDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XReviveDocument.cs.meta new file mode 100644 index 00000000..1cf240ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XReviveDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 59e6b26879e53fd408ccc7c91231aa81 +timeCreated: 1611403788 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRewardDlgBehaviour.cs b/Client/Assets/Scripts/XMainClient/XRewardDlgBehaviour.cs new file mode 100644 index 00000000..0a492105 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRewardDlgBehaviour.cs @@ -0,0 +1,42 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRewardDlgBehaviour : DlgBehaviourBase + { + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUIPool m_LoginPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIButton m_close; + + public XUITabControl m_tabcontrol = new XUITabControl(); + + public Transform m_achivementFrame; + + public Transform m_activityFrame; + + public Transform m_rewardSysFrame; + + public Transform m_loginFrame; + + public Transform m_levelFrame; + + private void Awake() + { + this.m_close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + Transform tabTpl = base.transform.Find("Bg/Tabs/TabTpl"); + this.m_tabcontrol.SetTabTpl(tabTpl); + this.m_achivementFrame = base.transform.Find("Bg/AchivementFrame"); + this.m_activityFrame = base.transform.Find("Bg/ActivityFrame"); + this.m_rewardSysFrame = base.transform.Find("Bg/RewardFrame"); + this.m_loginFrame = base.transform.Find("Bg/LoginFrame"); + this.m_levelFrame = base.transform.Find("Bg/LevelFrame"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRewardDlgBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XRewardDlgBehaviour.cs.meta new file mode 100644 index 00000000..1b4f669d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRewardDlgBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6fb60167ebbd80c48a70aa6cc141e655 +timeCreated: 1611403929 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRiftDocument.cs b/Client/Assets/Scripts/XMainClient/XRiftDocument.cs new file mode 100644 index 00000000..f60ce353 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRiftDocument.cs @@ -0,0 +1,500 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + [Hotfix] + internal class XRiftDocument : XDocComponent + { + public override uint ID + { + get + { + return XRiftDocument.uuID; + } + } + + public List RankRewardList + { + get + { + return this._rankRewardList; + } + } + + public List WeekFirstPassList + { + get + { + return this._firstpassList; + } + } + + public List WelfareList + { + get + { + return this._welfareList; + } + } + + public Rift.RowData currRiftRow + { + get + { + return this.GetRiftData(this.currFloor, this.currRift); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("MysterioursDocument"); + + public int currRift = 1; + + public int currFloor = 1; + + public uint sceneid = 1u; + + public bool hasNewFirstPass = false; + + public List items; + + private int max_floor = 0; + + public uint self_rank = 0u; + + public bool all_finish = false; + + public bool stop_timer = false; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static Rift m_tableRift = new Rift(); + + private static RiftType m_tableRiftType = new RiftType(); + + private static RiftRankReward m_tableRiftRewd = new RiftRankReward(); + + private static RiftWelfareReward m_tableRiftWelfare = new RiftWelfareReward(); + + private static RiftBuffSuitMonsterType m_tabRiftSuit = new RiftBuffSuitMonsterType(); + + private List _rankRewardList = new List(); + + private List _firstpassList = new List(); + + private List _welfareList = new List(); + + private float lastShowInfoTime; + + public List buffIDS = new List(); + + public List buffLevels = new List(); + + public int currGuidRiftID; + + public List guildBuffIDs = new List(); + + public List guildBuffLevels = new List(); + + public List guildInfos; + + public RiftSceneInfoNtfData scene_rift_data; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public Rift.RowData GetRiftData(int floor, int rift) + { + int i = 0; + int num = XRiftDocument.m_tableRift.Table.Length; + while (i < num) + { + bool flag = XRiftDocument.m_tableRift.Table[i].floor == floor && XRiftDocument.m_tableRift.Table[i].id == rift; + if (flag) + { + return XRiftDocument.m_tableRift.Table[i]; + } + i++; + } + return null; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XRiftDocument.AsyncLoader.AddTask("Table/Rift", XRiftDocument.m_tableRift, false); + XRiftDocument.AsyncLoader.AddTask("Table/RiftType", XRiftDocument.m_tableRiftType, false); + XRiftDocument.AsyncLoader.AddTask("Table/RiftRankReward", XRiftDocument.m_tableRiftRewd, false); + XRiftDocument.AsyncLoader.AddTask("Table/RiftWelfareReward", XRiftDocument.m_tableRiftWelfare, false); + XRiftDocument.AsyncLoader.AddTask("Table/RiftBuffSuitMonsterType", XRiftDocument.m_tabRiftSuit, false); + XRiftDocument.AsyncLoader.Execute(null); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + this.ReculRankList(); + return true; + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + bool flag = this.max_floor == 0; + if (flag) + { + int num = XRiftDocument.m_tableRift.Table.Length; + this.max_floor = XRiftDocument.m_tableRift.Table[num - 1].floor; + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_RIFT; + if (flag) + { + bool flag2 = Time.time > this.lastShowInfoTime + 10f; + if (flag2) + { + this.ReqSceneTime(); + this.lastShowInfoTime = Time.time; + } + } + } + + public RiftBuffSuitMonsterType.RowData GetBuffSuitRow(uint buff, int level) + { + int i = 0; + int num = XRiftDocument.m_tabRiftSuit.Table.Length; + while (i < num) + { + bool flag = XRiftDocument.m_tabRiftSuit.Table[i].buff[0] == buff && (ulong)XRiftDocument.m_tabRiftSuit.Table[i].buff[1] == (ulong)((long)level); + if (flag) + { + return XRiftDocument.m_tabRiftSuit.Table[i]; + } + i++; + } + return null; + } + + public void ReculRankList() + { + this._rankRewardList.Clear(); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + bool flag = xplayerData != null; + if (flag) + { + for (int i = 0; i < XRiftDocument.m_tableRiftRewd.Table.Length; i++) + { + RiftRankReward.RowData rowData = XRiftDocument.m_tableRiftRewd.Table[i]; + bool flag2 = rowData.levelrange == this.currRift; + if (flag2) + { + RankRewardStatus rankRewardStatus = new RankRewardStatus(); + rankRewardStatus.isRange = (rowData.rank[0] != rowData.rank[1]); + bool flag3 = !rankRewardStatus.isRange; + if (flag3) + { + rankRewardStatus.rank = rowData.rank[0]; + } + else + { + rankRewardStatus.rank = rowData.rank[1]; + } + rankRewardStatus.reward = rowData.reward; + this._rankRewardList.Add(rankRewardStatus); + } + } + } + } + + public int RewardCompare(PointRewardStatus reward1, PointRewardStatus reward2) + { + int status = (int)reward1.status; + int status2 = (int)reward2.status; + bool flag = status != status2; + int result; + if (flag) + { + result = status2.CompareTo(status); + } + else + { + result = (int)(reward1.point - reward2.point); + } + return result; + } + + public void CulFirstPass() + { + this._firstpassList.Clear(); + int i = 0; + int num = XRiftDocument.m_tableRift.Table.Length; + while (i < num) + { + bool flag = XRiftDocument.m_tableRift.Table[i].id == this.currRift; + if (flag) + { + PointRewardStatus pointRewardStatus = new PointRewardStatus(); + pointRewardStatus.reward = XRiftDocument.m_tableRift.Table[i].weekfirstpass; + pointRewardStatus.point = (uint)XRiftDocument.m_tableRift.Table[i].floor; + pointRewardStatus.status = 1u; + this._firstpassList.Add(pointRewardStatus); + } + i++; + } + } + + public void CulWelfare() + { + this._welfareList.Clear(); + int i = 0; + int num = XRiftDocument.m_tableRiftWelfare.Table.Length; + while (i < num) + { + bool flag = XRiftDocument.m_tableRiftWelfare.Table[i].levelrange == this.currRift; + if (flag) + { + PointRewardStatus pointRewardStatus = new PointRewardStatus(); + pointRewardStatus.reward = XRiftDocument.m_tableRiftWelfare.Table[i].reward; + pointRewardStatus.point = (uint)XRiftDocument.m_tableRiftWelfare.Table[i].floor[0]; + pointRewardStatus.status = 1u; + this._welfareList.Add(pointRewardStatus); + } + i++; + } + } + + public void ReqMyRiftInfo() + { + RpcC2G_GetMyRiftInfo rpc = new RpcC2G_GetMyRiftInfo(); + XSingleton.singleton.Send(rpc); + } + + public void ResRiftInfo(GetMyRiftInfoRes oRes) + { + this.buffIDS.Clear(); + this.buffLevels.Clear(); + for (int i = 0; i < oRes.buffIDs.Count; i++) + { + this.buffIDS.Add(oRes.buffIDs[i].buffID); + this.buffLevels.Add(oRes.buffIDs[i].buffLevel); + } + this.currFloor = oRes.curRiftFloor; + this.currRift = oRes.curRiftID; + this.items = oRes.gotItemsCount; + this.sceneid = (uint)oRes.curSceneID; + bool flag = this.currFloor < -1 || this.currRift < 0 || this.sceneid <= 0u; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_DATA_ERROR"), "fece00"); + } + else + { + bool flag2 = this.currFloor == -1; + if (flag2) + { + this.currFloor = this.max_floor; + this.all_finish = true; + } + } + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.Refresh(); + } + } + + public void ReqGuildRank() + { + RpcC2M_GetRiftGuildRank rpc = new RpcC2M_GetRiftGuildRank(); + XSingleton.singleton.Send(rpc); + } + + public void ResGuildRank(GetRiftGuildRankRes oRes) + { + this.currGuidRiftID = oRes.curRiftID; + this.guildInfos = oRes.infos; + this.guildBuffLevels.Clear(); + this.guildBuffIDs.Clear(); + int i = 0; + int count = oRes.buffIDs.Count; + while (i < count) + { + this.guildBuffIDs.Add(oRes.buffIDs[i].buffID); + this.guildBuffLevels.Add(oRes.buffIDs[i].buffLevel); + i++; + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.OpenGuildInfoHanlder(); + } + } + + public void ReqRankSelf() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.onlySelfData = true; + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.RiftRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void ResRank(int rank) + { + bool flag = rank >= 0; + if (flag) + { + this.self_rank = (uint)(rank + 1); + } + else + { + this.self_rank = 0u; + } + } + + public void ReqFirstPassRwd(RiftFirstPassOpType type, uint floor) + { + RpcC2G_RiftFirstPassReward rpcC2G_RiftFirstPassReward = new RpcC2G_RiftFirstPassReward(); + rpcC2G_RiftFirstPassReward.oArg.opType = type; + rpcC2G_RiftFirstPassReward.oArg.floor = floor; + XSingleton.singleton.Send(rpcC2G_RiftFirstPassReward); + } + + public void ResFisrtPassRwd(RiftFirstPassOpType type, RiftFirstPassRewardRes oRes) + { + this.hasNewFirstPass = false; + int i = 0; + int count = this._firstpassList.Count; + while (i < count) + { + bool flag = oRes.floorInfos.Count > 0; + if (flag) + { + RiftFloorStatus floorStatus = this.GetFloorStatus(this._firstpassList[i].point, oRes); + bool flag2 = floorStatus == RiftFloorStatus.RiftFloor_CanGetReward; + if (flag2) + { + this._firstpassList[i].status = 3u; + this.hasNewFirstPass = true; + } + else + { + bool flag3 = floorStatus == RiftFloorStatus.RiftFloor_GotReward; + if (flag3) + { + this._firstpassList[i].status = 0u; + } + else + { + bool flag4 = floorStatus == RiftFloorStatus.RiftFloor_NotPass; + if (flag4) + { + this._firstpassList[i].status = 1u; + } + else + { + bool flag5 = floorStatus == RiftFloorStatus.RiftFloor_Complete; + if (flag5) + { + this._firstpassList[i].status = 2u; + } + } + } + } + } + i++; + } + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.RefreshFirstPassRift(); + DlgBase.singleton.RefreshRed(); + } + } + + public void SetFirstPassClaim(int floor) + { + int i = 0; + int count = this._firstpassList.Count; + while (i < count) + { + bool flag = (ulong)this._firstpassList[i].point == (ulong)((long)floor); + if (flag) + { + this._firstpassList[i].status = 0u; + break; + } + i++; + } + bool flag2 = false; + int j = 0; + int count2 = this._firstpassList.Count; + while (j < count2) + { + bool flag3 = this._firstpassList[j].status == 3u; + if (flag3) + { + flag2 = true; + break; + } + j++; + } + this.hasNewFirstPass = flag2; + } + + private RiftFloorStatus GetFloorStatus(uint floor, RiftFirstPassRewardRes oRes) + { + List floorInfos = oRes.floorInfos; + int i = 0; + int count = floorInfos.Count; + while (i < count) + { + bool flag = (long)(floorInfos[i].floor + 1) == (long)((ulong)floor); + if (flag) + { + return floorInfos[i].status; + } + i++; + } + return (RiftFloorStatus)0; + } + + public void OnRiftSceneInfo(RiftSceneInfoNtfData data) + { + this.scene_rift_data = data; + bool flag = DlgBase.singleton.m_riftHandler != null && DlgBase.singleton.m_riftHandler.IsVisible(); + if (flag) + { + DlgBase.singleton.m_riftHandler.Refresh((float)data.floor, data.buffIDs); + } + } + + public void ReqSceneTime() + { + RpcC2G_QuerySceneTime rpc = new RpcC2G_QuerySceneTime(); + XSingleton.singleton.Send(rpc); + } + + public void ResSceneTime(int time) + { + bool flag = DlgBase.singleton.m_riftHandler != null && DlgBase.singleton.m_riftHandler.IsVisible(); + if (flag) + { + DlgBase.singleton.m_riftHandler.s_time = (uint)time; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRiftDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRiftDocument.cs.meta new file mode 100644 index 00000000..c1946320 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRiftDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d89c0271b19b34642b7a442d694dd2ec +timeCreated: 1611404640 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs b/Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs new file mode 100644 index 00000000..3e52beff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs @@ -0,0 +1,24 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XRiftRankInfo : XBaseRankInfo + { + public uint passtime; + + public uint floor; + + public override void ProcessData(RankData data) + { + this.formatname = XBaseRankInfo.GetUnderLineName(this.name); + this.rank = data.Rank; + bool flag = data.riftRankData != null; + if (flag) + { + this.passtime = data.riftRankData.passTime; + this.floor = data.riftRankData.riftFloor; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs.meta new file mode 100644 index 00000000..e265dc7f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRiftRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3fb8ff007e8b92e4d8c525f787bbb4e1 +timeCreated: 1611403612 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRiftRankList.cs b/Client/Assets/Scripts/XMainClient/XRiftRankList.cs new file mode 100644 index 00000000..769431e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRiftRankList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XRiftRankList : XBaseRankList + { + public XRiftRankList() + { + this.type = XRankType.RiftRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XRiftRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRiftRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XRiftRankList.cs.meta new file mode 100644 index 00000000..1f48d89a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRiftRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1db510431cf091242b23b9cdcc3929dd +timeCreated: 1611403357 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRole.cs b/Client/Assets/Scripts/XMainClient/XRole.cs new file mode 100644 index 00000000..75687aec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRole.cs @@ -0,0 +1,213 @@ +using System; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRole : XEntity + { + public uint BasicTypeID + { + get + { + return this._attr.BasicTypeID; + } + } + + public override uint SkillCasterTypeID + { + get + { + return base.IsTransform ? this._transformer.TypeID : ((base.Skill != null && base.Skill.IsSkillReplaced) ? base.Skill.ReplacedByTypeID : 0u); + } + } + + private Vector3 _capsule1 = Vector3.zero; + + private Vector3 _capsule2 = Vector3.zero; + + public static int RoleLayer = LayerMask.NameToLayer("Role"); + + public override bool Initilize(int flag) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Role; + this._layer = LayerMask.NameToLayer("Role"); + this._using_cc_move = false; + this._present = (XSingleton.singleton.CreateComponent(this, XPresentComponent.uuID) as XPresentComponent); + this._machine = (XSingleton.singleton.CreateComponent(this, XStateMachine.uuID) as XStateMachine); + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag2) + { + this._skill = (XSingleton.singleton.CreateComponent(this, XSkillComponent.uuID) as XSkillComponent); + XSingleton.singleton.CreateComponent(this, XEndureComponent.uuID); + } + this._net = (XSingleton.singleton.CreateComponent(this, XNetComponent.uuID) as XNetComponent); + this.AddMoveComponents(); + this._machine.SetDefaultState(base.GetXComponent(XIdleComponent.uuID) as XIdleComponent); + this._buff = (XSingleton.singleton.CreateComponent(this, XBuffComponent.uuID) as XBuffComponent); + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag3) + { + this._death = (XSingleton.singleton.CreateComponent(this, XDeathComponent.uuID) as XDeathComponent); + } + bool flag4 = XSingleton.singleton.SceneType == SceneType.SCENE_MOBA; + if (flag4) + { + XSingleton.singleton.CreateComponent(this, XMobaBillboardComponent.uuID); + } + else + { + this._billboard = (XSingleton.singleton.CreateComponent(this, XBillboardComponent.uuID) as XBillboardComponent); + } + XSingleton.singleton.CreateComponent(this, XCharacterShowChatComponent.uuID); + bool flag5 = XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_FIGHT || XSingleton.singleton.SceneType == SceneType.SCENE_CASTLE_WAIT; + if (flag5) + { + XSingleton.singleton.CreateComponent(this, XTerritoryComponent.uuID); + } + this._audio = (XSingleton.singleton.CreateComponent(this, XAudioComponent.uuID) as XAudioComponent); + bool flag6 = XSingleton.singleton.SceneType == SceneType.SCENE_ARENA; + if (flag6) + { + this._ai = (XSingleton.singleton.CreateComponent(this, XAIComponent.uuID) as XAIComponent); + } + bool flag7 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag7) + { + this._qte = (XSingleton.singleton.CreateComponent(this, XQuickTimeEventComponent.uuID) as XQuickTimeEventComponent); + } + bool flag8 = !XSingleton.singleton.SyncMode; + if (flag8) + { + XSingleton.singleton.CreateComponent(this, XManipulationComponent.uuID); + } + bool isNotEmptyObject = this._xobject.IsNotEmptyObject; + if (isNotEmptyObject) + { + this._equip = (XSingleton.singleton.CreateComponent(this, XEquipComponent.uuID) as XEquipComponent); + bool flag9 = this._equip != null; + if (flag9) + { + this._equip.IsUIAvatar = false; + } + bool flag10 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && this.CastFakeShadow(); + if (flag10) + { + XSingleton.singleton.CreateComponent(this, XFootFxComponent.uuID); + } + } + return true; + } + + public override void OnCreated() + { + XRoleAttributes xroleAttributes = this._attr as XRoleAttributes; + bool flag = this._xobject.IsNotEmptyObject && xroleAttributes != null && !xroleAttributes.IsLocalFake; + if (flag) + { + this._render = XRenderComponent.AddRenderComponent(this); + XSingleton.singleton.CreateComponent(this, XShadowComponent.uuID); + } + bool flag2 = DlgBase.singleton.CanRenderOtherPalyers(); + bool flag3 = this._render != null; + if (flag3) + { + int entityLayer = flag2 ? this._layer : XQualitySetting.InVisiblityLayer; + this._render.SetEntityLayer(entityLayer); + this._render.PostCreateComponent(); + } + base.OnCreated(); + bool flag4 = !flag2; + if (flag4) + { + XBillboardShowCtrlEventArgs @event = XEventPool.GetEvent(); + @event.show = false; + @event.Firer = this; + @event.type = BillBoardHideType.Photo; + XSingleton.singleton.FireEvent(@event); + } + } + + public override void Died() + { + } + + public virtual void Revive() + { + this.Attributes.IsDead = false; + XOnRevivedArgs @event = XEventPool.GetEvent(); + @event.entity = this; + @event.Firer = this; + XSingleton.singleton.FireEvent(@event); + XOnRevivedArgs event2 = XEventPool.GetEvent(); + event2.entity = this; + event2.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(event2); + } + + public override void PlaySpecifiedAnimation(string anim) + { + XSingleton.singleton.Idled(this); + base.OverrideAnimClip("Idle", anim, true, null, false); + base.Ator.CrossFade("Stand", 0.05f, 0, 0f); + } + + public float PlaySpecifiedAnimationGetLength(string anim) + { + XSingleton.singleton.Idled(this); + float result = base.OverrideAnimClipGetLength("Idle", anim, true); + base.Ator.CrossFade("Stand", 0.05f, 0, 0f); + return result; + } + + public void PlayStateBack() + { + XSingleton.singleton.Idled(this); + XPresentComponent xpresentComponent = base.IsTransform ? base.Transformer.Present : base.Present; + bool flag = xpresentComponent != null; + if (flag) + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.World && !string.IsNullOrEmpty(xpresentComponent.PresentLib.AttackIdle); + if (flag2) + { + base.OverrideAnimClip("Idle", xpresentComponent.PresentLib.AttackIdle, true, false); + } + else + { + base.OverrideAnimClip("Idle", xpresentComponent.PresentLib.Idle, true, false); + } + } + } + + private void AddMoveComponents() + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + bool flag2 = !flag; + if (flag2) + { + this._behit = (XSingleton.singleton.CreateComponent(this, XBeHitComponent.uuID) as XBeHitComponent); + } + bool flag3 = !flag; + if (flag3) + { + XSingleton.singleton.CreateComponent(this, XFreezeComponent.uuID); + } + XSingleton.singleton.CreateComponent(this, XIdleComponent.uuID); + this._rotate = (XSingleton.singleton.CreateComponent(this, XRotationComponent.uuID) as XRotationComponent); + XSingleton.singleton.CreateComponent(this, XMoveComponent.uuID); + bool flag4 = !flag; + if (flag4) + { + XSingleton.singleton.CreateComponent(this, XChargeComponent.uuID); + } + } + + public override bool CastFakeShadow() + { + return XQualitySetting.GetQuality(EFun.ERoleShadow); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRole.cs.meta b/Client/Assets/Scripts/XMainClient/XRole.cs.meta new file mode 100644 index 00000000..1548733a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRole.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2d026e5467b09af49b054d6f07597a4f +timeCreated: 1611403504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRoleAttributes.cs b/Client/Assets/Scripts/XMainClient/XRoleAttributes.cs new file mode 100644 index 00000000..7327a8b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRoleAttributes.cs @@ -0,0 +1,117 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRoleAttributes : XAttributes + { + public override uint ID + { + get + { + return XRoleAttributes.uuID; + } + } + + public RoleType Profession + { + get + { + return this._profession; + } + set + { + this._profession = value; + bool flag = XAttributes.IsPlayer(base.RoleID); + if (flag) + { + XFileLog.RoleProf = XFastEnumIntEqualityComparer.ToInt(this._profession); + } + } + } + + public string GuildName { get; set; } + + public ulong GuildID { get; set; } + + public uint DesignationID { get; set; } + + public string SpecialDesignation { get; set; } + + public List PrerogativeSetID { get; set; } + + public uint PrerogativeScore { get; set; } + + public uint MilitaryRank { get; set; } + + public uint GuildPortrait { get; set; } + + public override uint TypeID + { + get + { + return (uint)XFastEnumIntEqualityComparer.ToInt(this.Profession); + } + } + + public override uint BasicTypeID + { + get + { + return this.TypeID % 10u; + } + } + + public override uint Tag + { + get + { + return EntityMask.Role; + } + } + + public bool IsLocalFake + { + get + { + return this._isLocalFake; + } + set + { + this._isLocalFake = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Role_Attributes"); + + private RoleType _profession = RoleType.Role_INVALID; + + private bool _isLocalFake = false; + + public XRoleAttributes() + { + this._battle_Statistics = default(XBattleStatistics); + } + + public override bool IsBindedSkill(uint id) + { + for (int i = 0; i < this.skillSlot.Length; i++) + { + bool flag = this.skillSlot[i] == id; + if (flag) + { + return true; + } + } + return false; + } + + public override void InitAttribute(KKSG.Attribute attr) + { + this.SkillLevelInfo.SetDefaultLevel(0u); + base.InitAttribute(attr); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRoleAttributes.cs.meta b/Client/Assets/Scripts/XMainClient/XRoleAttributes.cs.meta new file mode 100644 index 00000000..377d1af2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRoleAttributes.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16948f24ba223d048ac5b7a2a7859b7f +timeCreated: 1611403288 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRollDocument.cs b/Client/Assets/Scripts/XMainClient/XRollDocument.cs new file mode 100644 index 00000000..36032d2a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRollDocument.cs @@ -0,0 +1,95 @@ +using System; +using KKSG; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XRollDocument : XDocComponent + { + public override uint ID + { + get + { + return XRollDocument.uuID; + } + } + + public uint RollItemID + { + get + { + bool flag = this._current_roll_info == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = this._current_roll_info.id; + } + return result; + } + } + + public uint RollItemCount + { + get + { + bool flag = this._current_roll_info == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = this._current_roll_info.count; + } + return result; + } + } + + public float LastRollTime + { + get + { + return this._last_roll_time; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("RollDocument"); + + private EnemyDoodadInfo _current_roll_info; + + public int ClientRollTime = 0; + + private float _last_roll_time = 0f; + + public void SendRollReq(int type) + { + RpcC2G_ChooseRollReq rpcC2G_ChooseRollReq = new RpcC2G_ChooseRollReq(); + rpcC2G_ChooseRollReq.oArg.info = this._current_roll_info; + rpcC2G_ChooseRollReq.oArg.chooseType = type; + XSingleton.singleton.Send(rpcC2G_ChooseRollReq); + } + + public void SetRollItem(EnemyDoodadInfo info) + { + bool flag = this.ClientRollTime == 0; + if (flag) + { + this.ClientRollTime = XSingleton.singleton.GetInt("ClientRollTime"); + } + this._last_roll_time = Time.time; + this._current_roll_info = info; + DlgBase.singleton.ShowRollInfo(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRollDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XRollDocument.cs.meta new file mode 100644 index 00000000..97c3294f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRollDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 98e66e96b9905c64ba80da99765e0c97 +timeCreated: 1611404192 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRotationComponent.cs b/Client/Assets/Scripts/XMainClient/XRotationComponent.cs new file mode 100644 index 00000000..ef583955 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRotationComponent.cs @@ -0,0 +1,186 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XRotationComponent : XComponent + { + public override uint ID + { + get + { + return XRotationComponent.uuID; + } + } + + public float To + { + get + { + return this._to; + } + } + + public bool Rotating + { + get + { + return this._rotate; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Basic_Rotation"); + + private XStateMachine _machine = null; + + private bool _rotate = false; + + private float _to = 0f; + + private float _from = 0f; + + private float _rotateSpeed = 0f; + + private Vector3 _last_towards = Vector3.zero; + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_Rotation, new XComponent.XEventHandler(this.OnBasicRotate)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._rotateSpeed = 0f; + this._machine = this._entity.Machine; + } + + private bool Permission(XEventArgs e) + { + bool flag = !this._machine.State.SyncPredicted; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = XStateMgr.IsUnControlledState(this._machine.Current); + bool flag3 = this._entity.Skill != null && this._entity.Skill.IsCasting(); + if (flag3) + { + result = (e.Token == this._entity.Skill.CurrentSkill.Token || (this._entity.Skill.CurrentSkill.MainCore.CanRotate() && !flag2)); + } + else + { + result = (e.Token == this._machine.ActionToken || !flag2); + } + } + return result; + } + + private bool OnBasicRotate(XEventArgs e) + { + bool flag = this.Permission(e); + bool result; + if (flag) + { + XRotationEventArgs xrotationEventArgs = e as XRotationEventArgs; + Vector3 normalized = xrotationEventArgs.TargetDir.normalized; + normalized.y = 0f; + bool flag2 = normalized.sqrMagnitude == 0f; + if (flag2) + { + result = false; + } + else + { + Vector3 forward = this._entity.MoveObj.Forward; + this._from = XSingleton.singleton.AngleToFloat(forward); + float num = Vector3.Angle(forward, normalized); + bool flag3 = XSingleton.singleton.Clockwise(forward, normalized); + if (flag3) + { + this._to = this._from + num; + } + else + { + this._to = this._from - num; + } + this._rotateSpeed = xrotationEventArgs.Palstance; + this._rotate = true; + this._last_towards = this._entity.MoveObj.Forward; + result = true; + } + } + else + { + result = false; + } + return result; + } + + public override void Update(float fDeltaT) + { + bool rotate = this._rotate; + if (rotate) + { + bool flag = !XSingleton.singleton.IsEqual(this._from, this._to); + if (flag) + { + this._from += (this._to - this._from) * Mathf.Min(1f, fDeltaT * this._rotateSpeed); + } + else + { + this._rotate = false; + this._from = this._to; + } + this._entity.MoveObj.Rotation = Quaternion.Euler(0f, this._from, 0f); + } + } + + public float Angular() + { + bool rotate = this._rotate; + float result; + if (rotate) + { + float num = Vector3.Angle(this._last_towards, this._entity.MoveObj.Forward); + bool flag = !XSingleton.singleton.Clockwise(this._last_towards, this._entity.MoveObj.Forward); + if (flag) + { + num = -num; + } + this._last_towards = this._entity.MoveObj.Forward; + result = ((Mathf.Abs(num) > 1f) ? ((float)((num > 0f) ? 1 : -1)) : num); + } + else + { + result = 0f; + } + return result; + } + + public void Cancel() + { + this._rotate = false; + this._to = XSingleton.singleton.AngleToFloat(this._entity.MoveObj.Forward); + } + + public float GetMeaningfulFace() + { + return (this._rotate && this._rotateSpeed > 0f) ? this._to : XSingleton.singleton.AngleToFloat(this._entity.MoveObj.Forward); + } + + public Vector3 GetMeaningfulFaceVector3() + { + return (this._rotate && this._rotateSpeed > 0f) ? XSingleton.singleton.FloatToAngle(this._to) : this._entity.MoveObj.Forward; + } + + public Quaternion GetMeaningfulFaceQuaternion() + { + return (this._rotate && this._rotateSpeed > 0f) ? XSingleton.singleton.FloatToQuaternion(this._to) : this._entity.MoveObj.Rotation; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRotationComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XRotationComponent.cs.meta new file mode 100644 index 00000000..f3fe8caf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRotationComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0d6283125610b0546940758ee89aa1f4 +timeCreated: 1611403195 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XRotationEventArgs.cs b/Client/Assets/Scripts/XMainClient/XRotationEventArgs.cs new file mode 100644 index 00000000..de354b61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRotationEventArgs.cs @@ -0,0 +1,25 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XRotationEventArgs : XEventArgs + { + public Vector3 TargetDir = Vector3.forward; + + public float Palstance = 0f; + + public XRotationEventArgs() + { + this._eDefine = XEventDefine.XEvent_Rotation; + } + + public override void Recycle() + { + this.TargetDir = Vector3.forward; + this.Palstance = 0f; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XRotationEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XRotationEventArgs.cs.meta new file mode 100644 index 00000000..e1c32dc8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XRotationEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e53c432883107df4d807b2e3ce5b5e35 +timeCreated: 1611404742 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XScene.cs b/Client/Assets/Scripts/XMainClient/XScene.cs new file mode 100644 index 00000000..2667b4d3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XScene.cs @@ -0,0 +1,697 @@ +using System; +using System.Collections.Generic; +using KKSG; +using ProtoBuf; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XScene : XSingleton + { + public bool bSpectator + { + get + { + return this._bIsSpectator; + } + } + + public bool FilterFx + { + get + { + return !this._bIsSpectator && XFxMgr.FilterFarFx && XSingleton.singleton.CurrentStage.Stage == EXStage.World; + } + } + + public bool SceneReady + { + get + { + return this._bSceneEntered; + } + } + + public bool SceneStarted + { + get + { + return this._bStarted; + } + set + { + bool flag = this._bStarted == value; + if (!flag) + { + this._bStarted = value; + bool bStarted = this._bStarted; + if (bStarted) + { + this.OnSceneStarted(); + } + } + } + } + + public XEntity Dirver + { + get + { + return this._story_dirver; + } + set + { + this._story_dirver = value; + } + } + + public Camera AssociatedCamera { get; set; } + + public bool IsMustTransform + { + get + { + return this._scene_type == SceneType.SCENE_MOBA || this._scene_type == SceneType.SCENE_HEROBATTLE || this.m_IsMustTransform; + } + set + { + this.m_IsMustTransform = value; + } + } + + public bool IsMobaScene + { + get + { + return this._scene_type == SceneType.SCENE_MOBA || this._scene_type == SceneType.SCENE_HEROBATTLE; + } + } + + public bool CanFadeOnCreate + { + get + { + return this._scene_type != SceneType.SCENE_MOBA && this._scene_type != SceneType.SCENE_HEROBATTLE; + } + } + + public bool IsViewGridScene { get; set; } + + public SceneType SceneType + { + get + { + return this._scene_type; + } + } + + public uint SceneID + { + get + { + return this._scene_id; + } + } + + public SceneTable.RowData SceneData + { + get + { + return this._scene_data; + } + } + + public XCameraEx GameCamera + { + get + { + return this._camera; + } + } + + public bool IsPVPScene + { + get + { + bool flag = this.SceneData != null; + return !flag || this.SceneData.CombatType == 1; + } + } + + public Terrain CurrentTerrain + { + get + { + return this._terrain; + } + set + { + this._terrain = value; + } + } + + public SceneCfg SceneEntranceConfig + { + get + { + return this._scene_cfg; + } + } + + public ErrorCode Error + { + get + { + return this._error; + } + set + { + this._error = value; + } + } + + public string ErrorAddtional + { + get + { + return this._error_addtional; + } + set + { + this._error_addtional = value; + } + } + + private XSceneLoader _loader = null; + + private XSceneTransfer _transfer = null; + + private int _next_sync_mode = 0; + + private bool _next_is_spectator = false; + + private string _scene_file = null; + + private uint _scene_id = 0u; + + private ErrorCode _error = ErrorCode.ERR_SUCCESS; + + private string _error_addtional = null; + + private SceneCfg _scene_cfg = null; + + public SceneType _scene_type = SceneType.SCENE_LOGIN; + + private SceneTable.RowData _scene_data = null; + + private XEntity _story_dirver = null; + + private bool _bSceneEntered = false; + + private bool _bIsSpectator = false; + + private bool _bStarted = false; + + public bool bSceneServerReady = false; + + public bool bSceneLoadedRpcSend = false; + + private Terrain _terrain = null; + + public Vector3 BattleTargetPoint; + + public Vector3 NestTargetPoint; + + private bool m_IsMustTransform = false; + + private XCameraEx _camera = new XCameraEx(); + + public override bool Init() + { + this._loader = XUpdater.XUpdater.XGameRoot.AddComponent(); + this._transfer = XUpdater.XUpdater.XGameRoot.AddComponent(); + return true; + } + + public override void Uninit() + { + this._loader = null; + this._transfer = null; + } + + public bool TryGetTerrainY(Vector3 pos, out float y) + { + return XCurrentGrid.grid.TryGetHeight(pos, out y); + } + + public bool IsWalkable(Vector3 pos) + { + float num = 0f; + return XCurrentGrid.grid.TryGetHeight(pos, out num) && num >= 0f; + } + + public bool IsWalkable(Vector3 pos, out float y) + { + bool flag = XCurrentGrid.grid.TryGetHeight(pos, out y); + if (flag) + { + bool flag2 = y >= 0f; + if (flag2) + { + bool flag3 = this._terrain != null; + if (flag3) + { + float num = this._terrain.SampleHeight(pos); + bool flag4 = y - num < 0.05f; + if (flag4) + { + y = num; + } + return true; + } + } + } + return false; + } + + public float TerrainY(Vector3 pos) + { + float num = 0f; + bool flag = this._terrain != null; + if (flag) + { + num = this._terrain.SampleHeight(pos); + } + bool flag2 = XCurrentGrid.grid != null; + if (flag2) + { + float height = XCurrentGrid.grid.GetHeight(pos); + bool flag3 = height - num > 0.05f; + if (flag3) + { + num = height; + } + } + return num; + } + + public void PauseBGM() + { + XSingleton.singleton.PauseBGM(); + } + + public void ResumeBGM() + { + XSingleton.singleton.ResumeBGM(); + } + + public bool TurnToTransfer(uint sceneid) + { + string unitySceneFile = XSingleton.singleton.GetUnitySceneFile(sceneid); + return this._scene_file == unitySceneFile; + } + + public void UntriggerScene() + { + this._bSceneEntered = false; + } + + public void StoreSceneConfig(SceneCfg config) + { + this._scene_cfg = Serializer.DeepClone(config); + } + + public void SceneEnterTo(SceneCfg config, bool fromserver = true) + { + uint sceneID = config.SceneID; + SceneType sceneType = XSingleton.singleton.GetSceneType(sceneID); + this._next_sync_mode = config.SyncMode; + this._next_is_spectator = config.isWatcher; + bool flag = XSingleton.singleton.GetSceneType(config.SceneID) == SceneType.SCENE_BOSSRUSH; + if (flag) + { + XLevelSpawnInfo spawnerBySceneID = XSingleton.singleton.GetSpawnerBySceneID(config.SceneID); + XSingleton.singleton.MonsterIDs.Clear(); + XBossBushDocument specificDocument = XDocuments.GetSpecificDocument(XBossBushDocument.uuID); + XSingleton.singleton.MonsterIDs.Add(specificDocument.entityRow.ID); + } + else + { + XSingleton.singleton.CacheServerMonsterID(config.preloadEnemyIDs); + } + bool flag2 = config.SyncMode == 2; + if (flag2) + { + XSingleton.singleton.CacheServerMonster(config.enemyWaves); + } + switch (sceneType) + { + case SceneType.SCENE_HALL: + if (fromserver) + { + EXStage stage = XSingleton.singleton.CurrentStage.Stage; + if (stage != EXStage.SelectChar) + { + XSingleton.singleton.SwitchTo(EXStage.Hall, sceneID); + } + else + { + XSingleton.singleton.CurrentStage.Play(); + this.StoreSceneConfig(config); + } + } + else + { + XSingleton.singleton.SwitchTo(EXStage.Hall, sceneID); + } + goto IL_336; + case SceneType.SCENE_BATTLE: + if (fromserver) + { + EXStage stage2 = XSingleton.singleton.CurrentStage.Stage; + if (stage2 != EXStage.SelectChar) + { + XSingleton.singleton.SwitchTo(EXStage.World, sceneID); + } + else + { + XSingleton.singleton.CurrentStage.Play(); + this.StoreSceneConfig(config); + } + } + else + { + XSingleton.singleton.SwitchTo(EXStage.World, sceneID); + } + goto IL_336; + case SceneType.SCENE_NEST: + case SceneType.SCENE_ARENA: + case SceneType.SCENE_WORLDBOSS: + case SceneType.SCENE_BOSSRUSH: + case SceneType.SCENE_GUILD_BOSS: + case SceneType.SCENE_PK: + case SceneType.SCENE_ABYSSS: + case SceneType.SCENE_TOWER: + case SceneType.SCENE_PVP: + case SceneType.SCENE_DRAGON: + case SceneType.SCENE_GMF: + case SceneType.SCENE_GODDESS: + case SceneType.SCENE_DRAGON_EXP: + case SceneType.SCENE_RISK: + case SceneType.SCENE_ENDLESSABYSS: + case SceneType.SKYCITY_FIGHTING: + case SceneType.SCENE_PROF_TRIALS: + case SceneType.SCENE_GPR: + case SceneType.SCENE_RESWAR_PVP: + case SceneType.SCENE_RESWAR_PVE: + case SceneType.SCENE_GUILD_CAMP: + case SceneType.SCENE_AIRSHIP: + case SceneType.SCENE_WEEK_NEST: + case SceneType.SCENE_HORSE_RACE: + case SceneType.SCENE_HEROBATTLE: + case SceneType.SCENE_INVFIGHT: + case SceneType.SCENE_CASTLE_WAIT: + case SceneType.SCENE_CASTLE_FIGHT: + case SceneType.SCENE_LEAGUE_BATTLE: + case SceneType.SCENE_ACTIVITY_ONE: + case SceneType.SCENE_ACTIVITY_TWO: + case SceneType.SCENE_ACTIVITY_THREE: + case SceneType.SCENE_ABYSS_PARTY: + case SceneType.SCENE_CUSTOMPK: + case SceneType.SCENE_PKTWO: + case SceneType.SCENE_MOBA: + case SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT: + case SceneType.SCENE_WEEKEND4V4_GHOSTACTION: + case SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE: + case SceneType.SCENE_WEEKEND4V4_CRAZYBOMB: + case SceneType.SCENE_WEEKEND4V4_HORSERACING: + case SceneType.SCENE_CUSTOMPKTWO: + case SceneType.SCENE_WEEKEND4V4_DUCK: + case SceneType.SCENE_BIGMELEE_FIGHT: + case SceneType.SCENE_CALLBACK: + case SceneType.SCENE_BIOHELL: + case SceneType.SCENE_DUCK: + case SceneType.SCENE_COUPLE: + case SceneType.SCENE_BATTLEFIELD_FIGHT: + case SceneType.SCENE_COMPETEDRAGON: + case SceneType.SCENE_SURVIVE: + case SceneType.SCENE_GCF: + case SceneType.SCENE_GUILD_WILD_HUNT: + case SceneType.SCENE_AWAKE: + XSingleton.singleton.SwitchTo(EXStage.World, sceneID); + goto IL_336; + case SceneType.SCENE_GUILD_HALL: + case SceneType.SCENE_FAMILYGARDEN: + case SceneType.SKYCITY_WAITING: + case SceneType.SCENE_HORSE: + case SceneType.SCENE_BIGMELEE_READY: + case SceneType.SCENE_WEDDING: + case SceneType.SCENE_BATTLEFIELD_READY: + case SceneType.SCENE_LEISURE: + XSingleton.singleton.SwitchTo(EXStage.Hall, sceneID); + goto IL_336; + case SceneType.SCENE_RIFT: + { + XRiftDocument specificDocument2 = XDocuments.GetSpecificDocument(XRiftDocument.uuID); + bool flag3 = specificDocument2 != null; + if (flag3) + { + specificDocument2.stop_timer = false; + } + XSingleton.singleton.SwitchTo(EXStage.World, sceneID); + goto IL_336; + } + } + XSingleton.singleton.AddErrorLog("can't process enter scene type: ", sceneType.ToString(), null, null, null, null); + IL_336: + XSingleton.singleton.CacheDoodad(config.doodads); + } + + public void SceneEnterTo(bool fromserver = true) + { + this.SceneEnterTo(this._scene_cfg, fromserver); + this._scene_cfg = null; + } + + public void LoadSceneAsync(uint sceneid, EXStage eStage, bool prograss, bool transfer) + { + this._scene_file = XSingleton.singleton.GetUnitySceneFile(sceneid); + bool flag = !string.IsNullOrEmpty(this._scene_file); + if (flag) + { + this._bSceneEntered = false; + this.bSceneServerReady = false; + this.bSceneLoadedRpcSend = false; + XSingleton.singleton.Clear(); + XEquipDocument.CurrentVisibleRole = 0; + XDummy.visibleDummyCount = 0; + Shader.SetGlobalVector("uirim", new Vector4(1f, 1f, 1f, 0f)); + if (transfer) + { + this._transfer.TransferScene(sceneid); + } + else + { + this._loader.LoadScene(this._scene_file, eStage, prograss, sceneid, this._scene_id); + } + } + else + { + XSingleton.singleton.AddErrorLog("No scene file found with id ", sceneid.ToString(), null, null, null, null); + } + } + + public void OnSceneBeginLoad(uint sceneid) + { + this._bStarted = false; + this._scene_id = sceneid; + XFileLog.SceneID = sceneid; + this._scene_type = XSingleton.singleton.GetSceneType(this._scene_id); + this._scene_data = XSingleton.singleton.GetSceneData(this._scene_id); + XSingleton.singleton.SyncModeValue = this._next_sync_mode; + this._bIsSpectator = this._next_is_spectator; + bool flag = this._scene_type != SceneType.SCENE_HALL; + if (flag) + { + XQualitySetting.EnterScene(); + } + else + { + XQualitySetting.EnterHall(); + } + this.IsViewGridScene = XSingleton.singleton.ViewGridScene.Contains(XFastEnumIntEqualityComparer.ToInt(this._scene_type)); + } + + public void OnSceneLoaded(uint sceneid) + { + this._next_sync_mode = 0; + this._next_is_spectator = false; + XSingleton.singleton.OnSceneLoaded(); + XSingleton.singleton.OnSceneLoaded(sceneid); + XFightGroupDocument.OnSceneLoaded(); + } + + public void OnEnterScene(uint sceneid, bool transfer) + { + this._story_dirver = XSingleton.singleton.Player; + XSingleton.singleton.OnEnterScene(); + XSingleton.singleton.OnEnterScene(sceneid); + XQualitySetting.PostSetting(); + } + + public void TriggerScene() + { + this._bSceneEntered = true; + XSingleton.singleton.CreateRobot(this._scene_id); + string sceneConfigFile = XSingleton.singleton.GetSceneConfigFile(this._scene_id); + bool flag = sceneConfigFile.Length != 0; + if (flag) + { + XSingleton.singleton.InitGlobalAI(this._scene_id); + } + } + + public void OnSceneStarted() + { + for (int i = 0; i < XSingleton.singleton.Doc.Components.Count; i++) + { + (XSingleton.singleton.Doc.Components[i] as XDocComponent).OnSceneStarted(); + } + } + + public void OnLeaveScene(bool transfer) + { + this._story_dirver = null; + this._bStarted = false; + XSingleton.singleton.TimeMagicBack(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.OnLeaveScene(transfer); + this._camera.Uninitilize(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.KillTimerAll(); + XSingleton.singleton.UnInitGlobalAI(); + XHUDComponent.ResetCurrentCount(); + bool flag = !transfer; + if (flag) + { + XSingleton.singleton.Clear(); + } + ShadowMapInfo.ClearShadowRes(); + XSyncDebug.OnLeaveScene(); + } + + public void PreUpdate(float fDeltaT) + { + bool bSceneEntered = this._bSceneEntered; + if (bSceneEntered) + { + XSingleton.singleton.Update(); + bool flag = XSingleton.singleton.Player != null; + if (flag) + { + XSingleton.singleton.Player.PreUpdate(); + } + } + } + + public void Update(float fDeltaT) + { + bool bSceneEntered = this._bSceneEntered; + if (bSceneEntered) + { + XSingleton.singleton.Update(fDeltaT); + XSingleton.singleton.Update(fDeltaT); + XSingleton.singleton.Update(fDeltaT); + XSingleton.singleton.Update(); + this._camera.Update(fDeltaT); + XSingleton.singleton.Update(); + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + XSingleton.singleton.Update(fDeltaT); + } + bool needTutorail = XSingleton.singleton.NeedTutorail; + if (needTutorail) + { + XSingleton.singleton.Update(); + } + } + } + + public void PostUpdate(float fDeltaT) + { + bool bSceneEntered = this._bSceneEntered; + if (bSceneEntered) + { + this._camera.PostUpdate(fDeltaT); + XSingleton.singleton.PostUpdate(fDeltaT); + XSingleton.singleton.PostUpdate(); + XQualitySetting.Update(); + } + } + + public void FixedUpdate() + { + bool bSceneEntered = this._bSceneEntered; + if (bSceneEntered) + { + XSingleton.singleton.FixedUpdate(); + this._camera.FixedUpdate(); + } + } + + public bool CheckDynamicBlock(Vector3 from, Vector3 to) + { + List levelScriptInfos = XSingleton.singleton.GetLevelScriptInfos(); + for (int i = 0; i < levelScriptInfos.Count; i++) + { + bool enable = levelScriptInfos[i].enable; + if (enable) + { + float num = levelScriptInfos[i].width / 2f; + Vector3 vector; + vector= new Vector3(levelScriptInfos[i].x, 0f, levelScriptInfos[i].z); + Vector3 vector2 = XSingleton.singleton.HorizontalRotateVetor3(XSingleton.singleton.FloatToAngle(levelScriptInfos[i].face), 90f, true); + bool flag = XSingleton.singleton.IsLineSegmentCross(from, to, vector + num * vector2, vector - num * vector2); + if (flag) + { + bool flag2 = levelScriptInfos[i].height > from.y; + if (flag2) + { + return false; + } + } + } + } + return true; + } + + public void ReqLeaveScene() + { + XStaticSecurityStatistics.OnEnd(); + PtcC2G_LeaveSceneReq proto = new PtcC2G_LeaveSceneReq(); + XSingleton.singleton.Send(proto); + } + + public void RefreshScenMustTransform() + { + this.m_IsMustTransform = false; + List list = ListPool.Get(); + XSingleton.singleton.GetIntList("TransformSceneID", list); + for (int i = 0; i < list.Count; i++) + { + bool flag = (ulong)this._scene_id == (ulong)((long)list[i]); + if (flag) + { + this.m_IsMustTransform = true; + break; + } + } + ListPool.Release(list); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XScene.cs.meta b/Client/Assets/Scripts/XMainClient/XScene.cs.meta new file mode 100644 index 00000000..2eb395ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XScene.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 62f08ec851237544195461487463d260 +timeCreated: 1611403843 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSceneDamageRankDocument.cs b/Client/Assets/Scripts/XMainClient/XSceneDamageRankDocument.cs new file mode 100644 index 00000000..652b5e1c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSceneDamageRankDocument.cs @@ -0,0 +1,151 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSceneDamageRankDocument : XDocComponent + { + public override uint ID + { + get + { + return XSceneDamageRankDocument.uuID; + } + } + + public List RankList + { + get + { + return this.m_RankList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SceneDamageRankDocument"); + + public IRankView RankHandler; + + private List m_RankList = new List(); + + public override void OnEnterSceneFinally() + { + this.m_RankList.Clear(); + } + + public void ReqRank() + { + PtcC2G_SceneDamageRankReport proto = new PtcC2G_SceneDamageRankReport(); + XSingleton.singleton.Send(proto); + } + + public void OnGetRank(SceneDamageRankNtf data) + { + bool flag = data.damage.Count != data.name.Count; + if (!flag) + { + int num = data.damage.Count - this.m_RankList.Count; + for (int i = 0; i < num; i++) + { + this.m_RankList.Add(new XBaseRankInfo()); + } + bool flag2 = num < 0; + if (flag2) + { + this.m_RankList.RemoveRange(this.m_RankList.Count + num, -num); + } + for (int j = 0; j < this.m_RankList.Count; j++) + { + this.m_RankList[j].name = data.name[j]; + this.m_RankList[j].value = (ulong)data.damage[j]; + this.m_RankList[j].id = data.roleid[j]; + } + this.m_RankList.Sort(new Comparison(this._Compare)); + bool flag3 = this.RankHandler != null && this.RankHandler.IsVisible(); + if (flag3) + { + this.RankHandler.RefreshPage(); + } + } + } + + public void OnGetRank(List data) + { + int num = data.Count - this.m_RankList.Count; + for (int i = 0; i < num; i++) + { + this.m_RankList.Add(new XCaptainPVPRankInfo()); + } + bool flag = num < 0; + if (flag) + { + this.m_RankList.RemoveRange(this.m_RankList.Count + num, -num); + } + for (int j = 0; j < this.m_RankList.Count; j++) + { + XCaptainPVPRankInfo xcaptainPVPRankInfo = this.m_RankList[j] as XCaptainPVPRankInfo; + xcaptainPVPRankInfo.name = data[j].name; + xcaptainPVPRankInfo.kill = data[j].kill; + xcaptainPVPRankInfo.dead = data[j].dead; + xcaptainPVPRankInfo.assit = data[j].assit; + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + xcaptainPVPRankInfo.id = data[j].id; + } + } + this.m_RankList.Sort(new Comparison(this._ComparePVP)); + bool flag2 = this.RankHandler != null && this.RankHandler.IsVisible(); + if (flag2) + { + this.RankHandler.RefreshPage(); + } + } + + private int _Compare(XBaseRankInfo left, XBaseRankInfo right) + { + bool flag = left.value == right.value; + int result; + if (flag) + { + result = left.id.CompareTo(right.id); + } + else + { + result = -left.value.CompareTo(right.value); + } + return result; + } + + private int _ComparePVP(XBaseRankInfo left, XBaseRankInfo right) + { + XCaptainPVPRankInfo xcaptainPVPRankInfo = left as XCaptainPVPRankInfo; + XCaptainPVPRankInfo xcaptainPVPRankInfo2 = right as XCaptainPVPRankInfo; + bool flag = xcaptainPVPRankInfo.kill == xcaptainPVPRankInfo2.kill; + int result; + if (flag) + { + bool flag2 = xcaptainPVPRankInfo.dead == xcaptainPVPRankInfo2.dead; + if (flag2) + { + result = xcaptainPVPRankInfo.id.CompareTo(xcaptainPVPRankInfo2.id); + } + else + { + result = xcaptainPVPRankInfo.dead.CompareTo(xcaptainPVPRankInfo2.dead); + } + } + else + { + result = -xcaptainPVPRankInfo.kill.CompareTo(xcaptainPVPRankInfo2.kill); + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSceneDamageRankDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSceneDamageRankDocument.cs.meta new file mode 100644 index 00000000..3b8d0901 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSceneDamageRankDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9e18d74d9b456dd4b8f859192995e560 +timeCreated: 1611404240 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSceneLoader.cs b/Client/Assets/Scripts/XMainClient/XSceneLoader.cs new file mode 100644 index 00000000..f83b1456 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSceneLoader.cs @@ -0,0 +1,630 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using UnityEngine.SceneManagement; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + public sealed class XSceneLoader : MonoBehaviour + { + private AsyncOperation _op = null; + + private XSceneLoader.AsyncSceneBuildRequest _asbr = null; + + private uint _loading_scene_id = 0u; + + private EXStage _loading_scene_stage = EXStage.Null; + + private bool _enabled = false; + + private bool _prograss = true; + + private float _sub_progress = 0f; + + private float _current_progress = 0f; + + private float _target_progress = 0f; + + private bool _DelayLoadCache = true; + + private bool _LoadingSpectateScene = false; + + private enum LoadingPhase + { + Scene_Downlaod, + Scene_Load, + Scene_Build, + Scene_Doc + } + + private class AsyncSceneBuildRequest + { + public float Progress = 1f; + + public IEnumerator Pedometer = null; + } + + public void LoadScene(string scene, EXStage eStage, bool prograss, uint nextsceneid, uint currentsceneid) + { + XSingleton.singleton.notLoadScene = false; + XSingleton.singleton.networkRun = false; + XSingleton.singleton.update = false; + this._loading_scene_id = nextsceneid; + this._loading_scene_stage = eStage; + this._prograss = prograss; + XSingleton.singleton.Clear(); + ObjectPoolCache.Clear(); + XSingleton.singleton.XPlatform.ClearClass(); + bool settingEnum = XSingleton.singleton.GetSettingEnum(ESettingConfig.EClearBundle); + if (settingEnum) + { + XSingleton.singleton.Clear(); + } + XSingleton.singleton.BeginRecord(); + XSingleton.singleton.XPlatform.MarkLevelEnd(); + XSingleton.singleton.XPlatform.MarkLoadlevel(scene); + XQualitySetting.SwitchScene(); + XSingleton.singleton.m_uiTool.PreLoad(false); + XSingleton.singleton.m_uiTool.ReleaseAllDrawCall(); + XSingleton.singleton.CallUnloadCallback(); + XSingleton.singleton.ReleasePool(); + this._DelayLoadCache = XSingleton.singleton.DelayLoad; + XSingleton.singleton.DelayLoad = false; + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + this._LoadingSpectateScene = specificDocument.IsLoadingSpectateScene; + bool flag = SceneType.SCENE_PK != XSingleton.singleton.GetSceneType(nextsceneid) && SceneType.SCENE_INVFIGHT != XSingleton.singleton.GetSceneType(nextsceneid) && SceneType.SCENE_LEAGUE_BATTLE != XSingleton.singleton.GetSceneType(nextsceneid); + if (flag) + { + DlgBase.singleton.Load(); + bool isLoadingSpectateScene = specificDocument.IsLoadingSpectateScene; + if (isLoadingSpectateScene) + { + specificDocument.IsLoadingSpectateScene = false; + string[] array = XSingleton.singleton.GetValue("Spectate_Tips").Split(XGlobalConfig.ListSeparator); + int num = UnityEngine.Random.Range(0, array.Length); + DlgBase.singleton.SetLoadingTip(array[num]); + } + else + { + string loadingTip = (currentsceneid == 1u) ? XSingleton.singleton.GetSceneLoadingTips(true, nextsceneid) : ((nextsceneid == 1u) ? XSingleton.singleton.GetSceneLoadingTips(false, currentsceneid) : ((nextsceneid == 100u) ? XSingleton.singleton.GetSceneLoadingTips(true, nextsceneid) : ((nextsceneid == 3u) ? XSingleton.singleton.GetSceneLoadingTips(false, 2u) : XSingleton.singleton.GetSceneLoadingTips(true, nextsceneid)))); + DlgBase.singleton.SetLoadingTip(loadingTip); + } + bool flag2 = nextsceneid == 100u || nextsceneid == 21u || nextsceneid == 22u; + string text; + if (flag2) + { + text = this.GetMyProfessionLoadingPic(); + } + else + { + text = XSingleton.singleton.GetSceneLoadingPic(nextsceneid); + } + bool flag3 = string.IsNullOrEmpty(text); + if (flag3) + { + prograss = false; + } + else + { + DlgBase.singleton.SetLoadingPic(text); + } + DlgBase.singleton.SetVisible(prograss, true); + DlgBase.singleton.SetLoadingProgress(0f); + } + Application.backgroundLoadingPriority = (ThreadPriority)4; + base.StartCoroutine(this.LoadLevelWithProgress(scene)); + XSingleton.singleton.OnSceneBeginLoad(this._loading_scene_id); + } + + private IEnumerator LoadLevelWithProgress(string scene) + { + base.enabled = true; + this._enabled = true; + this._current_progress = 0f; + this._target_progress = 0f; + this.DisplayPrograss(XSceneLoader.LoadingPhase.Scene_Downlaod, 1f); + yield return null; + bool flag = SceneType.SCENE_PK == XSingleton.singleton.SceneType || SceneType.SCENE_INVFIGHT == XSingleton.singleton.SceneType; + if (flag) + { + DlgBase.singleton.ShowPkLoading(XSingleton.singleton.SceneType); + } + else + { + bool flag2 = SceneType.SCENE_LEAGUE_BATTLE == XSingleton.singleton.SceneType; + if (flag2) + { + DlgBase.singleton.ShowPkLoading(); + } + else + { + bool flag3 = SceneType.SCENE_PKTWO == XSingleton.singleton.SceneType; + if (flag3) + { + DlgBase.singleton.ShowPkLoading(); + } + } + } + XSingleton.singleton.m_uiTool.EnableUILoadingUpdate(true); + yield return null; + this.DisplayPrograss(XSceneLoader.LoadingPhase.Scene_Load, 0f); + bool flag4 = XSingleton.singleton.ABManager != null; + if (flag4) + { + XSingleton.singleton.ABManager.UnloadUnusedBundle(true); + } + this._op = SceneManager.LoadSceneAsync("empty"); + while (!this._op.isDone) + { + yield return null; + } + this._op = Resources.UnloadUnusedAssets(); + while (!this._op.isDone) + { + yield return null; + } + XSingleton.singleton.LoadABScene(XSingleton.singleton.GetScenePath(this._loading_scene_id)); + this._op = SceneManager.LoadSceneAsync(scene); + while (!this._op.isDone) + { + yield return null; + } + XSingleton.singleton.DelayLoad = this._DelayLoadCache; + XQualitySetting.PostSceneLoad(); + this.DisplayPrograss(XSceneLoader.LoadingPhase.Scene_Load, 1f); + XSingleton.singleton.AddLog("-------------scene ready & begin load other res-------------", null, null, null, null, null, XDebugColor.XDebug_None); + yield return null; + this._asbr = this.SceneBuildAsync(this._loading_scene_id); + yield return null; + while (this._asbr.Pedometer.MoveNext()) + { + this.DisplayPrograss(XSceneLoader.LoadingPhase.Scene_Build, this._asbr.Progress); + yield return null; + } + this._asbr = null; + bool prograss = this._prograss; + if (prograss) + { + bool flag5 = XStage.IsConcreteStage(this._loading_scene_stage); + if (flag5) + { + XSingleton.singleton.RefreshScenMustTransform(); + this.CreatePlayer(); + this.DisplayPrograss(XSceneLoader.LoadingPhase.Scene_Doc, 0.3f); + yield return null; + IEnumerator iter = this.DocPreload(this._loading_scene_id); + while (iter.MoveNext()) + { + this.DisplayPrograss(XSceneLoader.LoadingPhase.Scene_Doc, 0.3f + 0.4f * this._sub_progress); + yield return null; + } + iter = null; + } + XSingleton.singleton.OnEnterScene(this._loading_scene_id, false); + this.DisplayPrograss(XSceneLoader.LoadingPhase.Scene_Doc, 0.9f); + bool flag6 = this._loading_scene_id == 100u; + if (flag6) + { + uint idx = XSingleton.singleton.Player.BasicTypeID - 1u; + uint id = XSingleton.singleton.NewbieLevelRoleID[(int)idx]; + XEntityStatistics.RowData raw = XSingleton.singleton.EntityStatistics.GetByID(id); + XSingleton.singleton.Player.OnTransform(raw.ID); + yield return null; + raw = null; + } + this.DisplayPrograss(XSceneLoader.LoadingPhase.Scene_Doc, 1f); + yield return null; + this._target_progress = 0.9f; + bool flag7 = this._prograss && this._current_progress < 0.89f; + if (flag7) + { + yield return null; + } + this._enabled = false; + DlgBase.singleton.SetLoadingProgress(1f); + yield return null; + bool flag8 = XStage.IsConcreteStage(this._loading_scene_stage); + if (flag8) + { + RpcC2G_DoEnterScene DoEnterSceneRpc = new RpcC2G_DoEnterScene(); + DoEnterSceneRpc.oArg.sceneid = XSingleton.singleton.SceneID; + XSingleton.singleton.Send(DoEnterSceneRpc); + XSingleton.singleton.bSceneLoadedRpcSend = true; + DoEnterSceneRpc = null; + } + } + else + { + XSingleton.singleton.OnEnterScene(this._loading_scene_id, false); + } + bool flag9 = XStage.IsConcreteStage(this._loading_scene_stage); + if (flag9) + { + yield return null; + } + else + { + XSingleton.singleton.bSceneServerReady = (XSingleton.singleton.Error == ErrorCode.ERR_SUCCESS); + yield return null; + } + int waitTime = 1; + XSingleton.singleton.networkRun = true; + while (!XSingleton.singleton.bSceneServerReady) + { + int num = waitTime; + waitTime = num + 1; + bool flag10 = XSingleton.singleton.Error > ErrorCode.ERR_SUCCESS; + if (flag10) + { + bool flag11 = string.IsNullOrEmpty(XSingleton.singleton.ErrorAddtional); + if (flag11) + { + XSingleton.singleton.OnFatalErrorClosed(XSingleton.singleton.Error); + } + else + { + XSingleton.singleton.OnFatalErrorClosed(string.Format(XStringDefineProxy.GetString(XSingleton.singleton.Error), XSingleton.singleton.ErrorAddtional)); + } + XSingleton.singleton.Error = ErrorCode.ERR_SUCCESS; + XSingleton.singleton.ErrorAddtional = null; + XSingleton.singleton.CloseOnServerErrorNtf = false; + break; + } + bool flag12 = XSingleton.singleton.SceneEntranceConfig != null; + if (flag12) + { + this._prograss = false; + XSingleton.singleton.TriggerScene(); + break; + } + yield return null; + } + bool bSceneServerReady = XSingleton.singleton.bSceneServerReady; + if (bSceneServerReady) + { + this.PlayBGM(this._loading_scene_id); + XAutoFade.MakeBlack(true); + this._prograss = false; + yield return null; + DlgBase.singleton.HideSelf(false); + XSingleton.singleton.TriggerScene(); + yield return null; + XAutoFade.FadeIn(1f, true); + } + this._op = null; + bool flag13 = XSingleton.singleton.SceneEntranceConfig != null; + if (flag13) + { + XSingleton.singleton.SceneEnterTo(true); + } + XSingleton.singleton.notLoadScene = true; + XSingleton.singleton.switchScene = false; + XSingleton.singleton.update = true; + Application.backgroundLoadingPriority = (ThreadPriority)2; + bool settingEnum = XSingleton.singleton.GetSettingEnum(ESettingConfig.ESceneUnloadResource); + if (settingEnum) + { + Resources.UnloadUnusedAssets(); + } + bool flag14 = this._loading_scene_id == 1u; + if (flag14) + { + GC.Collect(); + } + XSingleton.singleton.XPlatform.MarkLoadlevelCompleted(); + yield break; + } + + private void Update() + { + bool flag = this._enabled && this._prograss; + if (flag) + { + this._current_progress += Mathf.Abs(this._target_progress - this._current_progress) * 0.5f; + DlgBase.singleton.SetLoadingProgress(this._current_progress); + } + } + + private void DisplayPrograss(XSceneLoader.LoadingPhase phase, float progress) + { + bool flag = !this._prograss; + if (!flag) + { + switch (phase) + { + case XSceneLoader.LoadingPhase.Scene_Downlaod: + this._target_progress = progress * 0.1f; + break; + case XSceneLoader.LoadingPhase.Scene_Load: + this._target_progress = progress * 0.2f + 0.1f; + break; + case XSceneLoader.LoadingPhase.Scene_Build: + this._target_progress = progress * 0.4f + 0.3f; + break; + case XSceneLoader.LoadingPhase.Scene_Doc: + this._target_progress = progress * 0.2f + 0.7f; + break; + } + } + } + + private XSceneLoader.AsyncSceneBuildRequest SceneBuildAsync(uint sceneID) + { + return new XSceneLoader.AsyncSceneBuildRequest + { + Pedometer = this.Preloader(sceneID) + }; + } + + private IEnumerator Preloader(uint sceneID) + { + IEnumerator ietr = null; + this._asbr.Progress = 0f; + yield return null; + XSingleton.singleton.OnSceneLoaded(sceneID); + this._asbr.Progress = 0.05f; + yield return null; + ietr = this.PreLoadSceneMonster(sceneID); + while (ietr.MoveNext()) + { + this._asbr.Progress = 0.05f + this._sub_progress * 0.75f; + yield return null; + } + ietr = this.PreLoadSceneRes(sceneID); + while (ietr.MoveNext()) + { + this._asbr.Progress = 0.8f + this._sub_progress * 0.1f; + yield return null; + } + ietr = this.PlaceSceneNpc(sceneID); + while (ietr.MoveNext()) + { + this._asbr.Progress = 0.9f + this._sub_progress * 0.1f; + yield return null; + } + this._asbr.Progress = 1f; + yield break; + } + + private void CreatePlayer() + { + this._sub_progress = 0f; + XSingleton.singleton.AddLog("Preload Player", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.Add(XSingleton.singleton.CreatePlayer(Vector3.zero, Quaternion.identity, false, XSingleton.singleton.IsMustTransform || this._LoadingSpectateScene)); + this._LoadingSpectateScene = false; + } + + private IEnumerator PlaceSceneNpc(uint sceneID) + { + this._sub_progress = 0f; + List npcList = XSingleton.singleton.GetNpcs(sceneID); + bool flag = npcList != null && npcList.Count > 0; + if (flag) + { + int step = 0; + XTaskDocument taskDoc = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + int num; + for (int i = 0; i < npcList.Count; i = num + 1) + { + num = step; + step = num + 1; + bool flag2 = !taskDoc.ShouldNpcExist(npcList[i]); + if (!flag2) + { + XSingleton.singleton.CreateNpc(npcList[i], true); + this._sub_progress = (float)step / (float)npcList.Count; + } + num = i; + } + taskDoc = null; + } + this._sub_progress = 1f; + yield return null; + yield break; + } + + private IEnumerator PreLoadSceneMonster(uint sceneID) + { + this._sub_progress = 0f; + List prefabs = new List(); + XLevelSpawnInfo spawner = XSingleton.singleton.GetSpawnerBySceneID(sceneID); + bool flag = spawner != null; + if (flag) + { + Dictionary preloadInfo = new Dictionary(); + foreach (KeyValuePair keyValuePair in spawner._preloadInfo) + { + bool flag2 = keyValuePair.Key == 0; + if (!flag2) + { + preloadInfo.Add(keyValuePair.Key, keyValuePair.Value); + //! + // keyValuePair = default(KeyValuePair); + } + } + Dictionary.Enumerator enumerator = default(Dictionary.Enumerator); + bool flag3 = !XSingleton.singleton.ForcePreloadOneWave; + if (flag3) + { + int i = 0; + while (i < XSingleton.singleton.MonsterIDs.Count && preloadInfo.Count < XSingleton.singleton.MaxPreloadCount) + { + bool flag4 = XSingleton.singleton.MonsterIDs[i] == 0u; + if (!flag4) + { + bool flag5 = !preloadInfo.ContainsKey((int)XSingleton.singleton.MonsterIDs[i]); + if (flag5) + { + preloadInfo.Add((int)XSingleton.singleton.MonsterIDs[i], 1); + } + } + int num = i + 1; + i = num; + } + } + int step = 0; + float progress = 0f; + foreach (KeyValuePair keyValuePair2 in preloadInfo) + { + int num = step; + step = num + 1; + progress = (float)step / (float)preloadInfo.Count * 0.9f; + uint enemyID = (uint)keyValuePair2.Key; + XEntityStatistics.RowData data = XSingleton.singleton.EntityStatistics.GetByID(enemyID); + bool flag6 = data == null; + if (flag6) + { + XSingleton.singleton.AddErrorLog("Cant find statistic id: ", enemyID.ToString(), null, null, null, null); + } + else + { + XEntityPresentation.RowData presentData = XSingleton.singleton.EntityInfo.GetByPresentID(data.PresentID); + bool flag7 = presentData == null; + if (flag7) + { + XSingleton.singleton.AddErrorLog("Cant find present id ", data.PresentID.ToString(), " while statistic id = ", data.ID.ToString(), null, null); + } + else + { + string prefab = presentData.Prefab; + bool flag8 = !prefabs.Contains(data.PresentID); + if (flag8) + { + string location = "Prefabs/" + prefab; + float diff = progress - this._sub_progress; + XSingleton.singleton.CreateInAdvance(location, 1, ECreateHideType.DisableAnim); + this._sub_progress += diff * 0.2f; + XSingleton.singleton.AddLog("Preload ", prefab, " with pid ", data.PresentID.ToString(), null, null, XDebugColor.XDebug_None); + XSingleton.singleton.PreloadTemp(data.PresentID, enemyID, (EntitySpecies)data.Type); + this._sub_progress += diff * 0.7f; + prefabs.Add(data.PresentID); + location = null; + } + this._sub_progress = progress; + bool flag9 =(int) Application.platform == 7 || Application.platform == 0; + if (flag9) + { + yield return null; + } + data = null; + presentData = null; + prefab = null; + //! + //keyValuePair2 = default(KeyValuePair); + } + } + } + Dictionary.Enumerator enumerator2 = default(Dictionary.Enumerator); + this._sub_progress = 0.9f; + XSingleton.singleton.CreateInAdvance(XCombatHUDMgr.HUD_NORMAL, 10, ECreateHideType.NotHide); + XSingleton.singleton.CreateInAdvance(XCombatHUDMgr.HUD_CRITICAL, 5, ECreateHideType.NotHide); + XSingleton.singleton.CreateInAdvance(XCombatHUDMgr.HUD_PLAYER, 5, ECreateHideType.NotHide); + this._sub_progress = 1f; + preloadInfo = null; + } + bool flag10 = XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag10) + { + XBillBoardDocument.PreLoad(16); + XSingleton.singleton.m_uiTool.PreLoad(true); + } + else + { + bool flag11 = XSingleton.singleton.SceneType == SceneType.SCENE_LOGIN; + if (!flag11) + { + XSingleton.singleton.m_uiTool.PreLoad(true); + } + } + yield return null; + this._sub_progress = 1f; + yield break; + yield break; + } + + private IEnumerator PreLoadSceneRes(uint sceneID) + { + this._sub_progress = 0f; + bool flag = sceneID > 3u; + if (flag) + { + PreloadAnimationList.RowData[] Anims = XSingleton.singleton.AnimReader.Table; + int step = 0; + int i = 0; + int imax = Anims.Length; + while (i < imax) + { + this._sub_progress = 0.5f + (float)step / ((float)Anims.Length * 2f); + PreloadAnimationList.RowData rowData = Anims[i]; + bool flag2 = rowData.SceneID == 0 || (long)rowData.SceneID == (long)((ulong)sceneID); + int num; + if (flag2) + { + num = step; + step = num + 1; + XSingleton.singleton.GetXAnimation(rowData.AnimName, true, true); + yield return null; + } + rowData = null; + num = i + 1; + i = num; + } + Anims = null; + } + this._sub_progress = 1f; + yield break; + } + + private void PlayBGM(uint sceneid) + { + string sceneBGM = XSingleton.singleton.GetSceneBGM(sceneid); + XSingleton.singleton.PlayBGM(sceneBGM); + } + + private IEnumerator DocPreload(uint sceneid) + { + this._sub_progress = 0f; + int num; + for (int i = 0; i < XSingleton.singleton.Doc.Components.Count; i = num + 1) + { + XSingleton.singleton.Doc.Components[i].OnEnterScene(); + this._sub_progress = (float)i / (float)XSingleton.singleton.Doc.Components.Count; + num = i; + } + yield return null; + this._sub_progress = 1f; + yield break; + } + + private string GetMyProfessionLoadingPic() + { + uint num = XSingleton.singleton.XPlayerData.TypeID % 10u; + string[] array = XSingleton.singleton.GetValue("ProfessionLoadingPic").Split(XGlobalConfig.AllSeparators); + bool flag = array.Length % 2 != 0; + string result; + if (flag) + { + result = ""; + } + else + { + for (int i = 0; i < array.Length; i += 2) + { + bool flag2 = uint.Parse(array[i]) == num; + if (flag2) + { + return array[i + 1]; + } + } + result = ""; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSceneLoader.cs.meta b/Client/Assets/Scripts/XMainClient/XSceneLoader.cs.meta new file mode 100644 index 00000000..28dbfca5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSceneLoader.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e4fd0ce084724cd41bbbb1034f19014e +timeCreated: 1611404741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSceneMgr.cs b/Client/Assets/Scripts/XMainClient/XSceneMgr.cs new file mode 100644 index 00000000..fef7a91f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSceneMgr.cs @@ -0,0 +1,745 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public sealed class XSceneMgr : XSingleton + { + public PreloadAnimationList AnimReader + { + get + { + return this._animReader; + } + } + + private XTableAsyncLoader _async_loader = null; + + private SceneTable _reader = new SceneTable(); + + private PreloadAnimationList _animReader = new PreloadAnimationList(); + + private XChapter _chapterReader = new XChapter(); + + private List _PVPOne = null; + + public override bool Init() + { + bool flag = this._async_loader == null; + if (flag) + { + this._async_loader = new XTableAsyncLoader(); + this._async_loader.AddTask("Table/ChapterList", this._chapterReader, false); + this._async_loader.AddTask("Table/SceneList", this._reader, false); + this._async_loader.AddTask("Table/PreloadAnimationList", this._animReader, false); + this._async_loader.Execute(null); + } + return this._async_loader.IsDone; + } + + public override void Uninit() + { + this._async_loader = null; + } + + public SceneTable.RowData GetSceneData(uint sceneID) + { + return this._reader.GetBySceneID((int)sceneID); + } + + public string GetScenePath(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + string result; + if (flag) + { + result = bySceneID.ScenePath; + } + else + { + result = ""; + } + return result; + } + + public uint GetDriveID(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + result = bySceneID.StoryDriver; + } + return result; + } + + public void GetSceneList(SceneType type, List lst) + { + for (int i = 0; i < this._reader.Table.Length; i++) + { + bool flag = (SceneType)this._reader.Table[i].type == type; + if (flag) + { + lst.Add(this._reader.Table[i].id); + } + } + } + + public SceneTable.RowData GetSceneData(int sceneID) + { + return this._reader.GetBySceneID(sceneID); + } + + public bool SceneCanNavi(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + return bySceneID.SceneCanNavi; + } + + public SceneType GetSceneType(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + SceneType result; + if (flag) + { + result = (SceneType)bySceneID.type; + } + else + { + result = SceneType.SCENE_HALL; + } + return result; + } + + public bool CanAutoPlay(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + return bySceneID.ShowAutoFight; + } + + public float SpecifiedTargetLocatedRange(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + return bySceneID.SpecifiedTargetLocatedRange; + } + + public string GetSceneBGM(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + string result; + if (flag) + { + result = bySceneID.BGM; + } + else + { + result = ""; + } + return result; + } + + public string GetSceneLoadingTips(bool forward, uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null && bySceneID.LoadingTips != null; + if (flag) + { + bool flag2 = forward && bySceneID.LoadingTips.Length != 0; + if (flag2) + { + return bySceneID.LoadingTips[0]; + } + bool flag3 = bySceneID.LoadingTips.Length > 1; + if (flag3) + { + return bySceneID.LoadingTips[1]; + } + } + return null; + } + + public string GetSceneLoadingPic(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID.LoadingPic != null && bySceneID.LoadingPic.Length != 0; + string result; + if (flag) + { + result = bySceneID.LoadingPic[XSingleton.singleton.RandomInt(0, bySceneID.LoadingPic.Length)]; + } + else + { + result = ""; + } + return result; + } + + public bool IsPVPScene() + { + SceneType sceneType = XSingleton.singleton.SceneType; + return sceneType == SceneType.SCENE_ARENA || sceneType == SceneType.SCENE_PK || sceneType == SceneType.SCENE_INVFIGHT || sceneType == SceneType.SCENE_PVP || sceneType == SceneType.SKYCITY_FIGHTING || sceneType == SceneType.SCENE_RESWAR_PVP || sceneType == SceneType.SCENE_BIGMELEE_FIGHT || sceneType == SceneType.SCENE_BATTLEFIELD_FIGHT || sceneType == SceneType.SCENE_SURVIVE || sceneType == SceneType.SCENE_GMF || sceneType == SceneType.SCENE_GPR || sceneType == SceneType.SCENE_GCF || sceneType == SceneType.SCENE_LEAGUE_BATTLE || sceneType == SceneType.SCENE_HORSE_RACE || sceneType == SceneType.SCENE_CASTLE_FIGHT || sceneType == SceneType.SCENE_CASTLE_WAIT || sceneType == SceneType.SCENE_HEROBATTLE || sceneType == SceneType.SCENE_CUSTOMPK || sceneType == SceneType.SCENE_CUSTOMPKTWO || sceneType == SceneType.SCENE_PKTWO || sceneType == SceneType.SCENE_MOBA || sceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || sceneType == SceneType.SCENE_WEEKEND4V4_GHOSTACTION || sceneType == SceneType.SCENE_WEEKEND4V4_HORSERACING || sceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE || sceneType == SceneType.SCENE_WEEKEND4V4_DUCK || sceneType == SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT; + } + + public bool IsPVEScene() + { + SceneType sceneType = XSingleton.singleton.SceneType; + return sceneType == SceneType.SCENE_BATTLE || sceneType == SceneType.SCENE_BOSSRUSH || sceneType == SceneType.SCENE_CALLBACK || sceneType == SceneType.SCENE_NEST || sceneType == SceneType.SCENE_ABYSSS || sceneType == SceneType.SCENE_WORLDBOSS || sceneType == SceneType.SCENE_GUILD_BOSS || sceneType == SceneType.SCENE_TOWER || sceneType == SceneType.SCENE_DRAGON || sceneType == SceneType.SCENE_GODDESS || sceneType == SceneType.SCENE_ENDLESSABYSS || sceneType == SceneType.SCENE_DRAGON_EXP || sceneType == SceneType.SCENE_GUILD_CAMP || sceneType == SceneType.SCENE_RISK || sceneType == SceneType.SCENE_PROF_TRIALS || sceneType == SceneType.SCENE_RESWAR_PVE || sceneType == SceneType.SCENE_AIRSHIP || sceneType == SceneType.SCENE_WEEK_NEST || sceneType == SceneType.SCENE_ACTIVITY_ONE || sceneType == SceneType.SCENE_ACTIVITY_TWO || sceneType == SceneType.SCENE_ACTIVITY_THREE || sceneType == SceneType.SCENE_ABYSS_PARTY || sceneType == SceneType.SCENE_CALLBACK || sceneType == SceneType.SCENE_RIFT || sceneType == SceneType.SCENE_GUILD_WILD_HUNT || sceneType == SceneType.SCENE_BIOHELL || sceneType == SceneType.SCENE_DUCK || sceneType == SceneType.SCENE_COUPLE || sceneType == SceneType.SCENE_COMPETEDRAGON || sceneType == SceneType.SCENE_AWAKE; + } + + public bool Is1V1Scene() + { + bool flag = this._PVPOne == null; + if (flag) + { + this._PVPOne = XSingleton.singleton.GetIntList("PVPOne"); + } + int sceneID = (int)XSingleton.singleton.SceneID; + return this._PVPOne.Contains(sceneID); + } + + public bool GetSceneSwitchToSelf(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + return flag && bySceneID.SwitchToSelf; + } + + public float GetSceneDelayTransfer(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + float result; + if (flag) + { + result = Mathf.Min(0.5f, bySceneID.DelayTransfer); + } + else + { + result = 0f; + } + return result; + } + + public string GetUnitySceneFile(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + string result; + if (flag) + { + result = bySceneID.sceneFile; + } + else + { + result = ""; + } + return result; + } + + public string GetSceneConfigFile(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + string result; + if (flag) + { + result = bySceneID.configFile; + } + else + { + result = ""; + } + return result; + } + + public int GetSceneSyncMode(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + int result; + if (flag) + { + result = (int)bySceneID.syncMode; + } + else + { + result = -1; + } + return result; + } + + public bool GetSceneDraw(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + return flag && bySceneID.CanDrawBox; + } + + public bool GetSceneFlyOut(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + return flag && bySceneID.HasFlyOut; + } + + public Vector3 GetSceneStartPos(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + Vector3 result; + if (flag) + { + result = new Vector3(bySceneID.StartPos[0, 0], bySceneID.StartPos[0, 1], bySceneID.StartPos[0, 2]); + } + else + { + result = Vector3.zero; + } + return result; + } + + public Quaternion GetSceneStartRot(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + Quaternion result; + if (flag) + { + result = Quaternion.Euler(bySceneID.StartRot[0], bySceneID.StartRot[1], bySceneID.StartRot[2]); + } + else + { + result = Quaternion.identity; + } + return result; + } + + public uint GetGroupByScene(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null && bySceneID.DayLimitGroupID > 0u; + uint result; + if (flag) + { + result = bySceneID.DayLimitGroupID; + } + else + { + result = sceneID; + } + return result; + } + + public void GetSceneListByChapter(int chapter, List sceneList) + { + int i = 0; + int num = this._reader.Table.Length; + while (i < num) + { + SceneTable.RowData rowData = this._reader.Table[i]; + bool flag = (int)rowData.Chapter == chapter; + if (flag) + { + sceneList.Add((uint)rowData.id); + } + i++; + } + } + + public void GetSceneListByType(XChapterType t, List ret) + { + int i = 0; + int num = this._reader.Table.Length; + while (i < num) + { + SceneTable.RowData rowData = this._reader.Table[i]; + bool flag = (XChapterType)rowData.type == t; + if (flag) + { + ret.Add((uint)rowData.id); + } + i++; + } + } + + public AsyncSceneAnimationRequest ShowSceneLoadAnim(SceneType sceneType) + { + bool flag = SceneType.SCENE_PK == sceneType || SceneType.SCENE_INVFIGHT == sceneType; + AsyncSceneAnimationRequest result; + if (flag) + { + DlgBase.singleton.ShowPkLoading(sceneType); + result = new AsyncSceneAnimationRequest(); + } + else + { + bool flag2 = SceneType.SCENE_PKTWO == sceneType; + if (flag2) + { + DlgBase.singleton.ShowPkLoading(); + result = new AsyncSceneAnimationRequest(); + } + else + { + result = null; + } + } + return result; + } + + public void UpdateSceneLoadAnim(AsyncSceneAnimationRequest asar, SceneType sceneType) + { + bool flag = sceneType == SceneType.SCENE_LEAGUE_BATTLE; + if (flag) + { + asar.IsDone = DlgBase.singleton.IsLoadingOver; + } + else + { + bool flag2 = sceneType == SceneType.SCENE_PKTWO; + if (flag2) + { + asar.IsDone = DlgBase.singleton.IsLoadingOver; + } + else + { + asar.IsDone = DlgBase.singleton.IsLoadingOver; + } + } + } + + public int GetScenePreDifficultScene(int sceneID, int index) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID(sceneID); + XChapter.RowData byChapterID = this._chapterReader.GetByChapterID((int)bySceneID.Chapter); + bool flag = byChapterID.Difficult[1] == 0; + int result; + if (flag) + { + result = 0; + } + else + { + int num = byChapterID.Difficult[0]; + XChapter.RowData[] table = this._chapterReader.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag2 = table[i].Difficult[0] == num && table[i].Difficult[1] == byChapterID.Difficult[1] - 1; + if (flag2) + { + List list = ListPool.Get(); + this.GetSceneListByChapter(table[i].ChapterID, list); + list.Sort(); + int result2 = (int)list[index]; + ListPool.Release(list); + return result2; + } + } + result = 0; + } + return result; + } + + public int GetSceneChapter(int sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID(sceneID); + bool flag = bySceneID != null; + int result; + if (flag) + { + result = (int)bySceneID.Chapter; + } + else + { + result = 0; + } + return result; + } + + public int GetSceneDifficult(int sceneID) + { + int sceneChapter = this.GetSceneChapter(sceneID); + bool flag = sceneChapter > 0; + if (flag) + { + XChapter.RowData chapter = this.GetChapter(sceneChapter); + bool flag2 = chapter != null; + if (flag2) + { + return chapter.Difficult[1]; + } + } + return -1; + } + + public void GetChapterList(XChapterType t, List lst) + { + XChapter.RowData[] table = this._chapterReader.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].Type == (int)t; + if (flag) + { + lst.Add(table[i].ChapterID); + } + } + } + + public XChapter.RowData GetChapter(int chapter) + { + return this._chapterReader.GetByChapterID(chapter); + } + + public int GetChapterID(int chapter, uint difficult) + { + int num = this._chapterReader.GetByChapterID(chapter).Difficult[0]; + XChapter.RowData[] table = this._chapterReader.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].Difficult[0] == num && (long)table[i].Difficult[1] == (long)((ulong)difficult); + if (flag) + { + return table[i].ChapterID; + } + } + return 0; + } + + private static int SortChapterCompare(XChapter.RowData data1, XChapter.RowData data2) + { + bool flag = data1.ChapterID > data2.ChapterID; + int result; + if (flag) + { + result = 1; + } + else + { + result = -1; + } + return result; + } + + public int GetNextChapter(int chapter) + { + XChapter.RowData[] table = this._chapterReader.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].PreChapter == chapter; + if (flag) + { + return table[i].ChapterID; + } + } + return chapter; + } + + public int GetPreviousChapter(int chapter) + { + XChapter.RowData[] table = this._chapterReader.Table; + for (int i = 0; i < table.Length; i++) + { + bool flag = table[i].ChapterID == chapter; + if (flag) + { + return table[i].PreChapter; + } + } + return 0; + } + + public void PlaceDynamicScene(uint sceneID) + { + GameObject gameObject = GameObject.Find("DynamicScene"); + bool flag = gameObject != null; + if (flag) + { + for (int i = 0; i < gameObject.transform.childCount; i++) + { + gameObject.transform.GetChild(i).gameObject.SetActive(false); + } + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag2 = bySceneID != null; + if (flag2) + { + bool flag3 = bySceneID.DynamicScene != null && bySceneID.DynamicScene.Length > 0; + if (flag3) + { + Transform transform = gameObject.transform.Find(bySceneID.DynamicScene); + bool flag4 = transform != null; + if (flag4) + { + transform.gameObject.SetActive(true); + Component component = transform.GetComponent("XSceneOperation"); + bool flag5 = component != null; + if (flag5) + { + IXSceneOperation ixsceneOperation = component as IXSceneOperation; + ixsceneOperation.SetLightMap(); + } + } + } + } + } + } + + public void PlaceDynamicScene(string name) + { + GameObject gameObject = GameObject.Find("DynamicScene"); + bool flag = gameObject != null; + if (flag) + { + for (int i = 0; i < gameObject.transform.childCount; i++) + { + gameObject.transform.GetChild(i).gameObject.SetActive(false); + } + Transform transform = gameObject.transform.Find(name); + bool flag2 = transform != null; + if (flag2) + { + transform.gameObject.SetActive(true); + } + } + } + + public string GetSceneDynamicPrefix(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null && bySceneID.DynamicScene != null; + string result; + if (flag) + { + result = "DynamicScene/" + bySceneID.DynamicScene + "/"; + } + else + { + result = ""; + } + return result; + } + + public int GetFirstStarRewardCount(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + if (flag) + { + bool flag2 = bySceneID.FirstSSS.Count >= 1; + if (flag2) + { + return (int)bySceneID.FirstSSS[0, 1]; + } + } + return -1; + } + + public short[] GetSceneMiniMapSize(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + if (flag) + { + bool flag2 = bySceneID.MiniMapSize != null && bySceneID.MiniMapSize.Length >= 2; + if (flag2) + { + return bySceneID.MiniMapSize; + } + } + return null; + } + + public string GetSceneMiniMap(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + string result; + if (flag) + { + result = bySceneID.MiniMap; + } + else + { + result = ""; + } + return result; + } + + public int GetSceneMiniMapRotation(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + int result; + if (flag) + { + result = (int)bySceneID.MiniMapRotation; + } + else + { + result = 0; + } + return result; + } + + public bool GetSceneStaticMiniMapCenter(uint sceneID, out Vector3 pos) + { + pos = Vector3.zero; + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID == null || bySceneID.StaticMiniMapCenter == null || bySceneID.StaticMiniMapCenter.Length != 3; + bool result; + if (flag) + { + result = false; + } + else + { + pos = new Vector3(bySceneID.StaticMiniMapCenter[0], bySceneID.StaticMiniMapCenter[1], bySceneID.StaticMiniMapCenter[2]); + result = true; + } + return result; + } + + public Vector2 GetSceneMiniMapOutSize(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID == null || bySceneID.MiniMapOutSize == null || bySceneID.MiniMapOutSize.Length != 2; + Vector2 result; + if (flag) + { + result = Vector2.one; + } + else + { + result = new Vector2(bySceneID.MiniMapOutSize[0], bySceneID.MiniMapOutSize[1]); + } + return result; + } + + public int GetSceneAutoLeaveTime(uint sceneID) + { + SceneTable.RowData bySceneID = this._reader.GetBySceneID((int)sceneID); + bool flag = bySceneID != null; + int result; + if (flag) + { + result = (int)bySceneID.AutoReturn; + } + else + { + result = 0; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSceneMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XSceneMgr.cs.meta new file mode 100644 index 00000000..b6faf2da --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSceneMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6f03b097cf12bb049902b5399439ab81 +timeCreated: 1611403907 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSceneTransfer.cs b/Client/Assets/Scripts/XMainClient/XSceneTransfer.cs new file mode 100644 index 00000000..de018dc6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSceneTransfer.cs @@ -0,0 +1,183 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + public sealed class XSceneTransfer : MonoBehaviour + { + private uint _loading_scene_id = 0u; + + public void TransferScene(uint sceneid) + { + this._loading_scene_id = sceneid; + base.StartCoroutine(this.TransferLevelInMainCity()); + } + + private IEnumerator TransferLevelInMainCity() + { + XSingleton.singleton.OnSceneBeginLoad(this._loading_scene_id); + XSingleton.singleton.OnSceneLoaded(this._loading_scene_id); + XSingleton.singleton.m_uiTool.EnableUILoadingUpdate(true); + XSingleton.singleton.RefreshScenMustTransform(); + this.CreatePlayer(this._loading_scene_id); + while (XSingleton.singleton.Player.Equipment != null && XSingleton.singleton.Player.Equipment.IsLoadingPart()) + { + yield return null; + } + this.DocPreload(this._loading_scene_id); + yield return null; + this.PreLoadSceneMonster(this._loading_scene_id); + yield return null; + this.PlaceSceneNpc(this._loading_scene_id); + yield return null; + this.ResetLevelAirWall(); + yield return null; + XSingleton.singleton.OnEnterScene(this._loading_scene_id, true); + SceneType sceneType = XSingleton.singleton.GetSceneType(this._loading_scene_id); + AsyncSceneAnimationRequest asar = XSingleton.singleton.ShowSceneLoadAnim(sceneType); + while (asar != null && !asar.IsDone) + { + XSingleton.singleton.UpdateSceneLoadAnim(asar, sceneType); + yield return null; + } + RpcC2G_DoEnterScene DoEnterSceneRpc = new RpcC2G_DoEnterScene(); + DoEnterSceneRpc.oArg.sceneid = XSingleton.singleton.SceneID; + XSingleton.singleton.Send(DoEnterSceneRpc); + XSingleton.singleton.bSceneLoadedRpcSend = true; + while (!XSingleton.singleton.bSceneServerReady) + { + bool flag = XSingleton.singleton.Error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.OnFatalErrorClosed(XSingleton.singleton.Error); + XSingleton.singleton.Error = ErrorCode.ERR_SUCCESS; + XSingleton.singleton.CloseOnServerErrorNtf = false; + break; + } + bool flag2 = XSingleton.singleton.SceneEntranceConfig != null; + if (flag2) + { + DlgBase.singleton.HidePkLoading(); + DlgBase.singleton.HidePkLoading(); + DlgBase.singleton.HidePkLoading(); + XSingleton.singleton.TriggerScene(); + break; + } + yield return null; + } + bool bSceneServerReady = XSingleton.singleton.bSceneServerReady; + if (bSceneServerReady) + { + this.PlayBGM(this._loading_scene_id); + DlgBase.singleton.HidePkLoading(); + DlgBase.singleton.HidePkLoading(); + DlgBase.singleton.HidePkLoading(); + XAutoFade.FadeIn(1f, true); + XSingleton.singleton.TriggerScene(); + } + bool flag3 = XSingleton.singleton.SceneEntranceConfig != null; + if (flag3) + { + XSingleton.singleton.SceneEnterTo(true); + } + XSingleton.singleton.switchScene = false; + yield break; + } + + private void CreatePlayer(uint sceneID) + { + XSingleton.singleton.AddLog("Preload Player", null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.Add(XSingleton.singleton.CreatePlayer(Vector3.zero, Quaternion.identity, false, XSingleton.singleton.IsMustTransform)); + } + + private void PreLoadSceneMonster(uint sceneID) + { + List list = new List(); + XLevelSpawnInfo spawnerBySceneID = XSingleton.singleton.GetSpawnerBySceneID(sceneID); + bool flag = spawnerBySceneID != null; + if (flag) + { + Dictionary dictionary = new Dictionary(); + foreach (KeyValuePair keyValuePair in spawnerBySceneID._preloadInfo) + { + bool flag2 = keyValuePair.Key == 0; + if (!flag2) + { + dictionary.Add(keyValuePair.Key, keyValuePair.Value); + } + } + for (int i = 0; i < XSingleton.singleton.MonsterIDs.Count; i++) + { + bool flag3 = XSingleton.singleton.MonsterIDs[i] == 0u; + if (!flag3) + { + bool flag4 = !dictionary.ContainsKey((int)XSingleton.singleton.MonsterIDs[i]); + if (flag4) + { + dictionary.Add((int)XSingleton.singleton.MonsterIDs[i], 1); + } + } + } + foreach (KeyValuePair keyValuePair2 in dictionary) + { + uint key = (uint)keyValuePair2.Key; + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(key); + bool flag5 = byID == null; + if (!flag5) + { + string prefab = XSingleton.singleton.EntityInfo.GetByPresentID(byID.PresentID).Prefab; + bool flag6 = !list.Contains(byID.PresentID); + if (flag6) + { + XSingleton.singleton.PreloadTemp(byID.PresentID, key, (EntitySpecies)byID.Type); + list.Add(byID.PresentID); + } + } + } + } + } + + private void PlaceSceneNpc(uint sceneID) + { + List npcs = XSingleton.singleton.GetNpcs(sceneID); + bool flag = npcs != null; + if (flag) + { + XTaskDocument specificDocument = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + for (int i = 0; i < npcs.Count; i++) + { + bool flag2 = !specificDocument.ShouldNpcExist(npcs[i]); + if (!flag2) + { + XSingleton.singleton.CreateNpc(npcs[i], true); + } + } + } + } + + private void ResetLevelAirWall() + { + XSingleton.singleton.ResetAirWallState(); + } + + private void DocPreload(uint sceneid) + { + for (int i = 0; i < XSingleton.singleton.Doc.Components.Count; i++) + { + XSingleton.singleton.Doc.Components[i].OnEnterScene(); + } + } + + private void PlayBGM(uint sceneid) + { + string sceneBGM = XSingleton.singleton.GetSceneBGM(sceneid); + XSingleton.singleton.PlayBGM(sceneBGM); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSceneTransfer.cs.meta b/Client/Assets/Scripts/XMainClient/XSceneTransfer.cs.meta new file mode 100644 index 00000000..2223ec38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSceneTransfer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a256ca9c8ef24334b96db10e63e914e5 +timeCreated: 1611404256 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XScreenShotMgr.cs b/Client/Assets/Scripts/XMainClient/XScreenShotMgr.cs new file mode 100644 index 00000000..ee5a9237 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XScreenShotMgr.cs @@ -0,0 +1,456 @@ +using System; +using System.Collections; +using System.IO; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XScreenShotMgr : XSingleton + { + public string FilePath + { + get + { + return this._file_path; + } + } + + public string FileName + { + get + { + return this._file_name; + } + } + + private string _file_name; + + private string _file_path; + + private string _share_type; + + private int _check_count = 0; + + private int _max_check_count = 50; + + private bool _is_sharing = false; + + private IXIFlyMgr _ifly_mgr = null; + + private uint _check_token = 0u; + + private uint _share_token = 0u; + + private int _share_count = 0; + + private bool _share_doing = false; + + private string _logo_local_path; + + private int _share_index = 1; + + private WWW _downloader = null; + + private bool _share_session = false; + + private ShareTagType _tag = ShareTagType.Invite_Tag; + + private string _url = null; + + private object[] _params; + + private ScreenShotCallback _share_callback = null; + + public override bool Init() + { + bool flag = this._ifly_mgr == null; + if (flag) + { + this._ifly_mgr = (XUpdater.XUpdater.XGameRoot.GetComponent("XIFlyMgr") as IXIFlyMgr); + } + this._logo_local_path = Application.persistentDataPath + "/sharelogo"; + this.ClearOldPic(); + return true; + } + + public override void Uninit() + { + base.Uninit(); + } + + private void CheckScreenShotPic(object obj) + { + bool flag = this._ifly_mgr == null; + if (!flag) + { + bool flag2 = File.Exists(this._file_path); + if (flag2) + { + this._is_sharing = false; + bool flag3 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag3) + { + this._ifly_mgr.ScreenShotQQShare(this._file_path, this._share_type); + } + else + { + this._ifly_mgr.ScreenShotWeChatShare(this._file_path, this._share_type); + } + DlgBase.singleton.SetVisible(false, true); + } + else + { + bool flag4 = this._check_count >= this._max_check_count; + if (flag4) + { + XSingleton.singleton.AddErrorLog("Share failed", null, null, null, null, null); + } + else + { + this._check_token = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.CheckScreenShotPic), null); + this._check_count++; + } + } + } + } + + public void CaptureScreenshot(object obj) + { + XSingleton.singleton.SendStatisticToServer(ShareOpType.Photo, DragonShareType.None); + this._file_name = string.Format("{0}{1}{2}_{3}{4}{5}.png", new object[] + { + DateTime.Now.Year.ToString().PadLeft(2, '0'), + DateTime.Now.Month.ToString().PadLeft(2, '0'), + DateTime.Now.Day.ToString().PadLeft(2, '0'), + DateTime.Now.Hour.ToString().PadLeft(2, '0'), + DateTime.Now.Minute.ToString().PadLeft(2, '0'), + DateTime.Now.Second.ToString().PadLeft(2, '0') + }); + this._file_path = Application.persistentDataPath + "/" + this._file_name; + XSingleton.singleton.AddLog("Take a screen shot: ", this._file_path, null, null, null, null, XDebugColor.XDebug_None); + RuntimePlatform platform = Application.platform; + if ((int)platform != 8 && (int)platform != 11) + { + Application.CaptureScreenshot(this._file_path, 0); + } + else + { + Application.CaptureScreenshot(this._file_name, 0); + } + } + + public void ShareScreen(bool issession) + { + if (issession) + { + this._share_type = "Session"; + } + else + { + bool flag = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag) + { + this._share_type = "QZone"; + } + else + { + this._share_type = "Timeline"; + } + } + bool is_sharing = this._is_sharing; + if (!is_sharing) + { + this._check_count = 0; + this.CheckScreenShotPic(null); + } + } + + public string PartCaptureScreen(Rect rect, string accountType, string scene) + { + this._share_type = scene; + XSingleton.singleton.SendStatisticToServer(ShareOpType.Share, DragonShareType.Pandora); + XSingleton.singleton.IFLYMGR.GetMonoBehavior().StartCoroutine(this.CaptureByCamera(rect, accountType)); + return this._file_path; + } + + private IEnumerator CaptureByCamera(Rect rect, string accountType) + { + yield return new WaitForEndOfFrame(); + Texture2D texture = new Texture2D((int)rect.width, (int)rect.height); + texture.ReadPixels(rect, 0, 0); + texture.Apply(); + try + { + byte[] bytes = texture.EncodeToPNG(); + this._file_name = string.Format("{0}{1}{2}_{3}{4}{5}.png", new object[] + { + DateTime.Now.Year.ToString().PadLeft(2, '0'), + DateTime.Now.Month.ToString().PadLeft(2, '0'), + DateTime.Now.Day.ToString().PadLeft(2, '0'), + DateTime.Now.Hour.ToString().PadLeft(2, '0'), + DateTime.Now.Minute.ToString().PadLeft(2, '0'), + DateTime.Now.Second.ToString().PadLeft(2, '0') + }); + this._file_path = Application.persistentDataPath + "/" + this._file_name; + File.WriteAllBytes(this._file_path, bytes); + bytes = null; + } + catch (Exception ex) + { + Exception e = ex; + XSingleton.singleton.AddErrorLog("part capture failed " + e.Message, null, null, null, null, null); + } + bool flag = File.Exists(this._file_path); + if (flag) + { + bool flag2 = accountType == "qq"; + if (flag2) + { + this._ifly_mgr.ScreenShotQQShare(this._file_path, this._share_type); + } + else + { + this._ifly_mgr.ScreenShotWeChatShare(this._file_path, this._share_type); + } + } + yield break; + } + + private void ClearOldPic() + { + string persistentDataPath = Application.persistentDataPath; + bool flag = Directory.Exists(persistentDataPath); + if (flag) + { + DirectoryInfo directoryInfo = new DirectoryInfo(persistentDataPath); + FileInfo[] files = directoryInfo.GetFiles(); + bool flag2 = files != null; + if (flag2) + { + for (int i = 0; i < files.Length; i++) + { + string a = files[i].Name.Substring(files[i].Name.LastIndexOf(".") + 1); + bool flag3 = a != "png"; + if (!flag3) + { + files[i].Delete(); + } + } + } + } + } + + public void SaveScreenshotPic(string filepath) + { + this._ifly_mgr.ScreenShotSave(filepath); + } + + public void RefreshPhotoView(string fullpath) + { + this._ifly_mgr.RefreshAndroidPhotoView(fullpath); + } + + public void StartExternalScreenShotView(ScreenShotCallback callback) + { + bool share_doing = this._share_doing; + if (!share_doing) + { + this._share_callback = callback; + this.CaptureScreenshot(null); + this._share_token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(this.ExternalReadyShare), null); + } + } + + private void ExternalReadyShare(object obj) + { + bool flag = !File.Exists(XSingleton.singleton.FilePath); + if (flag) + { + this._share_count++; + bool flag2 = this._share_count > 30; + if (flag2) + { + XSingleton.singleton.ShowSystemTip("Failed", "fece00"); + this._share_doing = false; + } + else + { + this._share_token = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.ExternalReadyShare), null); + } + } + else + { + XSingleton.singleton.AddLog("The screen file path: ", XSingleton.singleton.FilePath, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("File exist: ", File.Exists(XSingleton.singleton.FilePath).ToString(), null, null, null, null, XDebugColor.XDebug_None); + RuntimePlatform platform = Application.platform; + if ((int)platform == 8 || (int)platform == 11) + { + byte[] array = File.ReadAllBytes(XSingleton.singleton.FilePath); + Texture2D texture2D = new Texture2D(2, 2); + bool flag3 = texture2D.LoadImage(array); + XSingleton.singleton.AddLog("Use file load", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag4 = flag3; + if (flag4) + { + int width = texture2D.width; + int height = texture2D.height; + XSingleton.singleton.AddLog("The width: ", width.ToString(), ", height: ", height.ToString(), null, null, XDebugColor.XDebug_None); + bool flag5 = width <= 600 && this._share_callback != null; + if (flag5) + { + this._share_callback(false); + } + else + { + this.DoShareAction(); + } + UnityEngine.Object.DestroyImmediate(texture2D, true); + } + else + { + bool flag6 = !flag3 && this._share_callback != null; + if (flag6) + { + this._share_callback(false); + } + } + this._share_doing = false; + } + } + } + + private void DoShareAction() + { + this.ShareScreen(false); + } + + private IEnumerator StartDownloadLogo(string path) + { + XSingleton.singleton.AddLog("StartDownloadLogo", null, null, null, null, null, XDebugColor.XDebug_None); + this._downloader = new WWW(path); + yield return this._downloader; + while (!this._downloader.isDone) + { + yield return this._downloader; + } + XSingleton.singleton.AddLog("Will do share, local icon: ", this._logo_local_path, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.AddLog("IsDone: ", this._downloader.isDone.ToString(), ", error: ", this._downloader.error, null, null, XDebugColor.XDebug_None); + bool flag = this._downloader.isDone && string.IsNullOrEmpty(this._downloader.error); + if (flag) + { + byte[] bs = this._downloader.bytes; + bool flag2 = bs != null; + if (flag2) + { + try + { + File.WriteAllBytes(this._logo_local_path, bs); + } + catch (Exception ex) + { + Exception e = ex; + XSingleton.singleton.AddErrorLog("write file local failed!", e.Message, null, null, null, null); + } + XSingleton.singleton.AddLog("Is icon exsit: ", File.Exists(this._logo_local_path).ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag3 = File.Exists(this._logo_local_path); + if (flag3) + { + this.DownLoadCallback(); + } + } + bs = null; + } + this._downloader.Dispose(); + this._downloader = null; + yield break; + } + + private void DownLoadCallback() + { + bool flag = this._ifly_mgr == null; + if (!flag) + { + ShareTable.RowData shareInfoById = XScreenShotShareDocument.GetShareInfoById(this._share_index); + string[] array = shareInfoById.Link.Split(new char[] + { + '|' + }); + XSingleton.singleton.AddLog("Links: ", shareInfoById.Link, null, null, null, null, XDebugColor.XDebug_None); + bool flag2 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_QQ; + if (flag2) + { + string text = this._url; + bool flag3 = string.IsNullOrEmpty(text); + if (flag3) + { + text = array[0]; + text = string.Format(text, this._params); + } + this._ifly_mgr.ShareQZoneLink(shareInfoById.Title, shareInfoById.Desc, text, this._logo_local_path, this._share_session); + } + else + { + bool flag4 = XSingleton.singleton.Channel == XAuthorizationChannel.XAuthorization_WeChat; + if (flag4) + { + string text2 = this._url; + bool flag5 = string.IsNullOrEmpty(text2); + if (flag5) + { + text2 = ((array.Length > 1) ? array[1] : array[0]); + text2 = string.Format(text2, this._params); + } + bool flag6 = this._tag == ShareTagType.Invite_Tag; + if (flag6) + { + this._ifly_mgr.ShareWechatLink(shareInfoById.Title, this._logo_local_path, text2, this._share_session); + } + else + { + bool flag7 = this._tag == ShareTagType.GiftBag_Tag; + if (flag7) + { + this._ifly_mgr.ShareWechatLinkWithMediaTag(shareInfoById.Title, this._logo_local_path, text2, this._share_session, "MSG_GIFT_PACKS_FD"); + } + } + } + } + } + } + + public void DoShareWithLink(int shareindex, bool issession = false, ShareTagType tag = ShareTagType.Invite_Tag, string url = null, params object[] args) + { + this.SendStatisticToServer(ShareOpType.Share, DragonShareType.ActivityShare); + ShareTable.RowData shareInfoById = XScreenShotShareDocument.GetShareInfoById(shareindex); + XSingleton.singleton.AddLog("Will doshare with link", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = shareInfoById != null; + if (flag) + { + this._share_index = shareindex; + this._share_session = issession; + this._tag = tag; + this._params = args; + this._url = url; + bool flag2 = File.Exists(this._logo_local_path); + if (flag2) + { + File.Delete(this._logo_local_path); + } + XSingleton.singleton.AddLog("Icon: ", shareInfoById.Icon, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.IFLYMGR.GetMonoBehavior().StartCoroutine(this.StartDownloadLogo(shareInfoById.Icon)); + } + } + + public void SendStatisticToServer(ShareOpType op, DragonShareType type) + { + PtcC2G_ShareReport ptcC2G_ShareReport = new PtcC2G_ShareReport(); + ptcC2G_ShareReport.Data.type = (int)type; + ptcC2G_ShareReport.Data.op = (int)type; + XSingleton.singleton.Send(ptcC2G_ShareReport); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XScreenShotMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XScreenShotMgr.cs.meta new file mode 100644 index 00000000..990920cc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XScreenShotMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 64d6ceb8c10310c48a798dc3806e94d6 +timeCreated: 1611403848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XScreenShotShareDocument.cs b/Client/Assets/Scripts/XMainClient/XScreenShotShareDocument.cs new file mode 100644 index 00000000..d28f4671 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XScreenShotShareDocument.cs @@ -0,0 +1,211 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XScreenShotShareDocument : XDocComponent + { + public override uint ID + { + get + { + return XScreenShotShareDocument.uuID; + } + } + + public static CommentType ShareIndex { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XScreenShotShareDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public ScreenShotShareView ScreenShotView; + + private static PhotographEffectCfg _EffectCfgReader = new PhotographEffectCfg(); + + private static ShareTable _ShareTable = new ShareTable(); + + private static ShareBgTexture _shareBgTextureTable = new ShareBgTexture(); + + public List EffectListId = new List(); + + public List EffectAllListId = new List(); + + public List EffectCfgList = new List(); + + public uint CharmVal = 0u; + + public ShareBgType CurShareBgType = ShareBgType.NoneType; + + public uint SpriteID = 0u; + + private static int _choice_index = 0; + + public XScreenShotShareDocument() + { + for (int i = 0; i < XScreenShotShareDocument._EffectCfgReader.Table.Length; i++) + { + bool flag = !this.EffectAllListId.Contains(XScreenShotShareDocument._EffectCfgReader.Table[i].EffectID); + if (flag) + { + this.EffectAllListId.Add(XScreenShotShareDocument._EffectCfgReader.Table[i].EffectID); + } + } + } + + public static void Execute(OnLoadedCallback callback = null) + { + XScreenShotShareDocument.AsyncLoader.AddTask("Table/PhotographEffect", XScreenShotShareDocument._EffectCfgReader, false); + XScreenShotShareDocument.AsyncLoader.AddTask("Table/ShareTable", XScreenShotShareDocument._ShareTable, false); + XScreenShotShareDocument.AsyncLoader.AddTask("Table/ShareBgTexture", XScreenShotShareDocument._shareBgTextureTable, false); + XScreenShotShareDocument.AsyncLoader.Execute(callback); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void OnGetPhotoGraphEffect(PhotographEffect res) + { + this.EffectListId.Clear(); + for (int i = 0; i < res.photograph_effect.Count; i++) + { + this.EffectListId.Add(res.photograph_effect[i]); + } + this.CharmVal = res.charm; + bool flag = this.ScreenShotView != null && this.ScreenShotView.IsVisible(); + if (flag) + { + this.ScreenShotView.OnRefreshEffects(); + } + } + + public List GetRowDataById(uint effectid) + { + this.EffectCfgList.Clear(); + for (int i = 0; i < XScreenShotShareDocument._EffectCfgReader.Table.Length; i++) + { + bool flag = XScreenShotShareDocument._EffectCfgReader.Table[i].EffectID == effectid; + if (flag) + { + this.EffectCfgList.Add(XScreenShotShareDocument._EffectCfgReader.Table[i]); + } + } + return this.EffectCfgList; + } + + public XTuple GetShareBgTexturePath() + { + for (int i = 0; i < XScreenShotShareDocument._shareBgTextureTable.Table.Length; i++) + { + ShareBgTexture.RowData rowData = XScreenShotShareDocument._shareBgTextureTable.Table[i]; + bool flag = rowData != null && rowData.ShareBgType == (int)this.CurShareBgType; + if (flag) + { + uint num = (this.CurShareBgType == ShareBgType.DungeonType) ? XSingleton.singleton.SceneID : this.SpriteID; + int num2 = -1; + uint[] subBgIDList = rowData.SubBgIDList; + int j = 0; + int num3 = subBgIDList.Length; + while (j < num3) + { + bool flag2 = subBgIDList[j] == num; + if (flag2) + { + num2 = j; + break; + } + j++; + } + string t = ""; + bool flag3 = num2 >= 0 && num2 < rowData.TexturePathList.Length; + string t2; + if (flag3) + { + t2 = rowData.TexturePathList[num2]; + bool flag4 = this.CurShareBgType == ShareBgType.DungeonType; + if (flag4) + { + bool flag5 = num2 < rowData.Text.Length; + if (flag5) + { + t = rowData.Text[num2]; + } + else + { + bool flag6 = rowData.Text.Length != 0; + if (flag6) + { + t = rowData.Text[0]; + } + } + } + } + else + { + t2 = rowData.TexturePathList[0]; + bool flag7 = rowData.Text.Length != 0; + if (flag7) + { + t = rowData.Text[0]; + } + } + return new XTuple(t2, t); + } + } + return new XTuple("", ""); + } + + public static ShareTable.RowData GetShareInfoById(int index) + { + for (int i = 0; i < XScreenShotShareDocument._ShareTable.Table.Length; i++) + { + bool flag = XScreenShotShareDocument._ShareTable.Table[i].Condition == index; + if (flag) + { + return XScreenShotShareDocument._ShareTable.Table[i]; + } + } + return null; + } + + public static void DoShowShare() + { + XScreenShotShareDocument._choice_index = XFastEnumIntEqualityComparer.ToInt(XScreenShotShareDocument.ShareIndex); + ShareTable.RowData shareInfoById = XScreenShotShareDocument.GetShareInfoById(XScreenShotShareDocument._choice_index); + bool flag = shareInfoById != null; + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(shareInfoById.Desc, XStringDefineProxy.GetString("COMMON_DESE"), XStringDefineProxy.GetString("COMMON_DIDIAO")); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(XScreenShotShareDocument.OnShareInfo), null); + } + } + + private static bool OpenAppStorePraise(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + ShareTable.RowData shareInfoById = XScreenShotShareDocument.GetShareInfoById(5); + bool flag = shareInfoById != null; + if (flag) + { + Application.OpenURL(shareInfoById.Link); + } + return true; + } + + private static bool OnShareInfo(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.DoShareWithLink(XScreenShotShareDocument._choice_index, false, ShareTagType.Invite_Tag, null, new object[0]); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XScreenShotShareDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XScreenShotShareDocument.cs.meta new file mode 100644 index 00000000..390bb095 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XScreenShotShareDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2c3a7bbefe691a9468c940f086ee3d95 +timeCreated: 1611403502 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSecurityAIInfo.cs b/Client/Assets/Scripts/XMainClient/XSecurityAIInfo.cs new file mode 100644 index 00000000..591a1fef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityAIInfo.cs @@ -0,0 +1,114 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XSecurityAIInfo + { + public int _PhysicalAttackNum; + + public int _SkillAttackNum; + + public float _LifeTime; + + public int _BossCallMonsterTotal; + + public int _BossCallMonsterCount; + + public void Reset() + { + this._PhysicalAttackNum = 0; + this._SkillAttackNum = 0; + this._LifeTime = 0f; + this._BossCallMonsterTotal = 0; + this._BossCallMonsterCount = 0; + } + + public void Merge(XSecurityAIInfo other) + { + bool flag = other == null; + if (!flag) + { + this._PhysicalAttackNum += other._PhysicalAttackNum; + this._SkillAttackNum += other._SkillAttackNum; + this._LifeTime += other._LifeTime; + this._BossCallMonsterTotal += other._BossCallMonsterTotal; + this._BossCallMonsterCount += other._BossCallMonsterCount; + } + } + + public void OnMobCast() + { + this._BossCallMonsterCount++; + } + + public void OnMobMonster() + { + this._BossCallMonsterTotal++; + } + + public void OnPhysicalAttack() + { + this._PhysicalAttackNum++; + } + + public void OnSkillAttack() + { + this._SkillAttackNum++; + } + + public void OnCallMonster(XEntity entity) + { + this._BossCallMonsterTotal++; + bool flag = Time.time - entity.AI.LastCallMonsterTime > 1f; + if (flag) + { + this._BossCallMonsterCount++; + entity.AI.LastCallMonsterTime = Time.time; + } + } + + public void OnExternalCallMonster() + { + this._BossCallMonsterTotal++; + this._BossCallMonsterCount++; + } + + public void SetLifeTime(float life) + { + this._LifeTime = life; + } + + public static XSecurityAIInfo TryGetStatistics(XEntity entity) + { + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(entity); + bool flag = xsecurityStatistics == null; + XSecurityAIInfo result; + if (flag) + { + result = null; + } + else + { + result = xsecurityStatistics.AIInfo; + } + return result; + } + + public static void SendBossData(XSecurityAIInfo info, string keywords) + { + XStaticSecurityStatistics.Append("BossAttackCount", (float)info._PhysicalAttackNum); + XStaticSecurityStatistics.Append("BossUseSkillCount", (float)info._SkillAttackNum); + XStaticSecurityStatistics.Append("BossTimeTotal", (float)((int)(info._LifeTime * 1000f))); + XStaticSecurityStatistics.Append("BossCallCount", (float)info._BossCallMonsterCount); + XStaticSecurityStatistics.Append("BossCallTotal", (float)info._BossCallMonsterTotal); + } + + public static void SendEnemyData(XSecurityAIInfo info, string keywords) + { + XStaticSecurityStatistics.Append("MonsterAttackCount", (float)info._PhysicalAttackNum); + XStaticSecurityStatistics.Append("MonsterSkillCount", (float)info._SkillAttackNum); + XStaticSecurityStatistics.Append("MonsterTimeTotal", info._LifeTime); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSecurityAIInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSecurityAIInfo.cs.meta new file mode 100644 index 00000000..530280ec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityAIInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 87024a2e81e96b641a5ed5caf308e469 +timeCreated: 1611404056 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSecurityAttributeInfo.cs b/Client/Assets/Scripts/XMainClient/XSecurityAttributeInfo.cs new file mode 100644 index 00000000..e31f8b9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityAttributeInfo.cs @@ -0,0 +1,209 @@ +using System; +using System.Collections.Generic; +using System.Text; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSecurityAttributeInfo + { + private XSecurityAttributeInfo.AttrInfo _Hp = default(XSecurityAttributeInfo.AttrInfo); + + private XSecurityAttributeInfo.AttrInfo _Mp = default(XSecurityAttributeInfo.AttrInfo); + + private List _PlayerInitAttrKeyList; + + private List _PlayerInitAttrValueList; + + private struct AttrInfo + { + public float _IncCount; + + public float _IncMax; + + public float _IncMin; + + public float _IncTotal; + + public float _DecCount; + + public float _DecMax; + + public float _DecMin; + + public float _DecTotal; + + public void Reset() + { + this._IncCount = 0f; + this._IncMax = 0f; + this._IncMin = float.MaxValue; + this._IncTotal = 0f; + this._DecCount = 0f; + this._DecMax = 0f; + this._DecMin = float.MaxValue; + this._DecTotal = 0f; + } + + public void OnChange(double delta) + { + bool flag = delta > 0.0; + if (flag) + { + this._IncCount += 1f; + this._IncTotal += (float)delta; + this._IncMax = Math.Max((float)delta, this._IncMax); + this._IncMin = Math.Min((float)delta, this._IncMin); + } + else + { + this._DecCount += 1f; + this._DecTotal += (float)(-(float)delta); + this._DecMax = Math.Max((float)(-(float)delta), this._DecMax); + this._DecMin = Math.Min((float)(-(float)delta), this._DecMin); + } + } + } + + public void OnAttributeChange(XAttributeDefine attr, double delta) + { + bool flag = attr == XAttributeDefine.XAttr_CurrentHP_Basic; + if (flag) + { + this._Hp.OnChange(delta); + } + else + { + bool flag2 = attr == XAttributeDefine.XAttr_CurrentMP_Basic; + if (flag2) + { + this._Mp.OnChange(delta); + } + } + } + + public void Reset() + { + this._Hp.Reset(); + this._Mp.Reset(); + } + + public void OnAttach(XEntity entity) + { + bool flag = entity == null || !entity.IsPlayer || entity.Attributes == null; + if (!flag) + { + bool flag2 = this._PlayerInitAttrKeyList == null; + if (flag2) + { + this._PlayerInitAttrKeyList = new List(); + } + bool flag3 = this._PlayerInitAttrValueList == null; + if (flag3) + { + this._PlayerInitAttrValueList = new List(); + } + this._PlayerInitAttrKeyList.Clear(); + this._PlayerInitAttrValueList.Clear(); + this._PreserveBasicAttrs(entity.Attributes); + } + } + + public bool IsUsefulAttr(XAttributeDefine attr) + { + return attr == XAttributeDefine.XAttr_CurrentMP_Basic || attr == XAttributeDefine.XAttr_CurrentHP_Basic; + } + + public void SendData() + { + this._SendData(ref this._Hp, "HP"); + this._SendData(ref this._Mp, "MP"); + this.SendPlayerInitData(); + } + + private void _SendData(ref XSecurityAttributeInfo.AttrInfo info, string keywords) + { + XStaticSecurityStatistics.Append(string.Format("PlayerHeal{0}Count", keywords), info._IncCount); + XStaticSecurityStatistics.Append(string.Format("PlayerHeal{0}Max", keywords), info._IncMax); + XStaticSecurityStatistics.Append(string.Format("PlayerHeal{0}Min", keywords), info._IncMin); + XStaticSecurityStatistics.Append(string.Format("PlayerHeal{0}Total", keywords), info._IncTotal); + XStaticSecurityStatistics.Append(string.Format("PlayerDamage{0}Count", keywords), info._DecCount); + XStaticSecurityStatistics.Append(string.Format("PlayerDamage{0}Max", keywords), info._DecMax); + XStaticSecurityStatistics.Append(string.Format("PlayerDamage{0}Min", keywords), info._DecMin); + XStaticSecurityStatistics.Append(string.Format("PlayerDamage{0}Total", keywords), info._DecTotal); + } + + public void SendPlayerInitData() + { + bool flag = this._PlayerInitAttrKeyList == null || this._PlayerInitAttrValueList == null; + if (!flag) + { + bool flag2 = this._PlayerInitAttrKeyList.Count != this._PlayerInitAttrValueList.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("_PlayerInitAttrKeyList.Count != _PlayerInitAttrValueList.Count ", this._PlayerInitAttrKeyList.Count.ToString(), " != ", this._PlayerInitAttrValueList.Count.ToString(), null, null); + } + else + { + for (int i = 0; i < this._PlayerInitAttrKeyList.Count; i++) + { + XStaticSecurityStatistics.Append(this._PlayerInitAttrKeyList[i], this._PlayerInitAttrValueList[i]); + } + } + } + } + + private void _PreserveBasicAttrs(XAttributes attributes) + { + XStaticSecurityStatistics.Append("RoleAtk", attributes.GetAttr(XAttributeDefine.XAttr_PhysicalAtkMod_Total), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + XStaticSecurityStatistics.Append("RoleMAtk", attributes.GetAttr(XAttributeDefine.XAttr_MagicAtkMod_Total), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + XStaticSecurityStatistics.Append("RoleHP", attributes.GetAttr(XAttributeDefine.XAttr_MaxHP_Total), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + XStaticSecurityStatistics.Append("RoleMP", attributes.GetAttr(XAttributeDefine.XAttr_MaxMP_Total), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + XStaticSecurityStatistics.Append("RoleDef", attributes.GetAttr(XAttributeDefine.XAttr_PhysicalDefMod_Total), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + XStaticSecurityStatistics.Append("RoleMDef", attributes.GetAttr(XAttributeDefine.XAttr_MagicDefMod_Total), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + List list = new List(); + list.Clear(); + list.Add(XAttributeDefine.XAttr_FinalDamage_Total); + list.Add(XAttributeDefine.XAttr_Critical_Total); + list.Add(XAttributeDefine.XAttr_CritDamage_Total); + list.Add(XAttributeDefine.XAttr_CritResist_Total); + list.Add(XAttributeDefine.XAttr_Paralyze_Total); + list.Add(XAttributeDefine.XAttr_ParaResist_Total); + list.Add(XAttributeDefine.XAttr_Stun_Total); + list.Add(XAttributeDefine.XAttr_StunResist_Total); + XStaticSecurityStatistics.Append("Roleinf1", XSecurityAttributeInfo._GetMergeAttrs(attributes, list), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + list.Clear(); + list.Add(XAttributeDefine.XAttr_FireAtk_Total); + list.Add(XAttributeDefine.XAttr_WaterAtk_Total); + list.Add(XAttributeDefine.XAttr_LightAtk_Total); + list.Add(XAttributeDefine.XAttr_DarkAtk_Total); + list.Add(XAttributeDefine.XAttr_FireDef_Total); + list.Add(XAttributeDefine.XAttr_WaterDef_Total); + list.Add(XAttributeDefine.XAttr_LightDef_Total); + list.Add(XAttributeDefine.XAttr_DarkDef_Total); + XStaticSecurityStatistics.Append("Roleinf2", XSecurityAttributeInfo._GetMergeAttrs(attributes, list), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + list.Clear(); + list.Add(XAttributeDefine.XAttr_Strength_Total); + list.Add(XAttributeDefine.XAttr_Agility_Total); + list.Add(XAttributeDefine.XAttr_Intelligence_Total); + list.Add(XAttributeDefine.XAttr_Vitality_Total); + XStaticSecurityStatistics.Append("Roleinf3", XSecurityAttributeInfo._GetMergeAttrs(attributes, list), this._PlayerInitAttrKeyList, this._PlayerInitAttrValueList); + } + + private static string _GetMergeAttrs(XAttributes attributes, List attrs) + { + StringBuilder shareSB = XSingleton.singleton.shareSB; + shareSB.Length = 0; + for (int i = 0; i < attrs.Count; i++) + { + bool flag = i != 0; + if (flag) + { + shareSB.Append(','); + } + shareSB.Append(((long)attributes.GetAttr(attrs[i])).ToString()); + } + return shareSB.ToString(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSecurityAttributeInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSecurityAttributeInfo.cs.meta new file mode 100644 index 00000000..500f73ca --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityAttributeInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 16687eaa3ca23144ab4d79d537c50213 +timeCreated: 1611403287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSecurityBuffInfo.cs b/Client/Assets/Scripts/XMainClient/XSecurityBuffInfo.cs new file mode 100644 index 00000000..6daca1dd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityBuffInfo.cs @@ -0,0 +1,292 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSecurityBuffInfo + { + private static HashSet _UsefulAttrs = new HashSet(default(XFastEnumIntEqualityComparer)) + { + XAttributeDefine.XATTR_ATTACK_SPEED_Basic, + XAttributeDefine.XATTR_ATTACK_SPEED_Percent, + XAttributeDefine.XAttr_Critical_Basic, + XAttributeDefine.XAttr_Critical_Percent, + XAttributeDefine.XAttr_RUN_SPEED_Basic, + XAttributeDefine.XAttr_RUN_SPEED_Percent, + XAttributeDefine.XAttr_PhysicalDefMod_Basic, + XAttributeDefine.XAttr_PhysicalDefMod_Percent, + XAttributeDefine.XAttr_PhysicalAtkMod_Basic, + XAttributeDefine.XAttr_PhysicalAtkMod_Percent, + XAttributeDefine.XAttr_MagicAtkMod_Basic, + XAttributeDefine.XAttr_MagicAtkMod_Percent + }; + + public XSecurityBuffInfo.BuffInfo _AttackSpeed = default(XSecurityBuffInfo.BuffInfo); + + public XSecurityBuffInfo.BuffInfo _RunSpeed = default(XSecurityBuffInfo.BuffInfo); + + public XSecurityBuffInfo.BuffInfo _Critical = default(XSecurityBuffInfo.BuffInfo); + + public XSecurityBuffInfo.BuffInfo _PhysicalDef = default(XSecurityBuffInfo.BuffInfo); + + public XSecurityBuffInfo.BuffInfo _Attack = default(XSecurityBuffInfo.BuffInfo); + + public XSecurityBuffInfo.BuffInfo _Immortal = default(XSecurityBuffInfo.BuffInfo); + + public XSecurityBuffInfo.BuffInfo _ReduceDamage = default(XSecurityBuffInfo.BuffInfo); + + public XSecurityBuffInfo.BuffInfo _Freeze = default(XSecurityBuffInfo.BuffInfo); + + private static XSecurityBuffInfo.AttributeParam s_AttrParam = new XSecurityBuffInfo.AttributeParam(); + + public struct BuffInfo + { + public int _CountTotal; + + public float _EffectMin; + + public float _EffectMax; + + public float _TimeMin; + + public float _TimeMax; + + public float _TimeTotal; + + public void Reset() + { + this._CountTotal = 0; + this._EffectMax = 0f; + this._EffectMin = float.MaxValue; + this._TimeMax = 0f; + this._TimeMin = float.MaxValue; + this._TimeTotal = 0f; + } + + public void OnChanged(XBuff buff, double value) + { + this._CountTotal++; + this._EffectMax = Math.Max(this._EffectMax, (float)value); + this._EffectMin = Math.Min(this._EffectMin, (float)value); + float num = buff.ActualDuration * 1000f; + this._TimeMax = Math.Max(this._TimeMax, num); + this._TimeMin = Math.Min(this._TimeMin, num); + this._TimeTotal += num; + } + + public void Merge(ref XSecurityBuffInfo.BuffInfo other) + { + this._CountTotal += other._CountTotal; + this._EffectMax = Math.Max(this._EffectMax, other._EffectMax); + this._EffectMin = Math.Min(this._EffectMin, other._EffectMin); + this._TimeMax = Math.Max(this._TimeMax, other._TimeMax); + this._TimeMin = Math.Min(this._TimeMin, other._TimeMin); + this._TimeTotal += other._TimeTotal; + } + } + + public class AttributeParam + { + public XAttributes attributes = null; + + public XAttributeDefine attr = XAttributeDefine.XAttr_PhysicalDefMod_Percent; + + public double value = 0.0; + + public float initValue = 0f; + + public XBuff buff = null; + } + + public bool IsUsefulAttr(XAttributeDefine attr) + { + return XSecurityBuffInfo._UsefulAttrs.Contains(attr); + } + + public void Reset() + { + this._AttackSpeed.Reset(); + this._RunSpeed.Reset(); + this._Critical.Reset(); + this._PhysicalDef.Reset(); + this._Immortal.Reset(); + this._ReduceDamage.Reset(); + this._Freeze.Reset(); + } + + public void OnAttributeChanged(XAttributes attributes, XBuff buff, XAttributeDefine attr, double value) + { + bool flag = attributes == null || buff == null || buff.SkillID == 0u || value <= 0.0; + if (!flag) + { + if (attr <= XAttributeDefine.XATTR_ATTACK_SPEED_Basic) + { + if (attr <= XAttributeDefine.XAttr_MagicAtkMod_Basic) + { + if (attr == XAttributeDefine.XAttr_PhysicalAtkMod_Basic) + { + goto IL_101; + } + if (attr == XAttributeDefine.XAttr_PhysicalDefMod_Basic) + { + goto IL_F0; + } + if (attr != XAttributeDefine.XAttr_MagicAtkMod_Basic) + { + return; + } + goto IL_101; + } + else + { + if (attr == XAttributeDefine.XAttr_Critical_Basic) + { + goto IL_CE; + } + if (attr == XAttributeDefine.XAttr_RUN_SPEED_Basic) + { + goto IL_DF; + } + if (attr != XAttributeDefine.XATTR_ATTACK_SPEED_Basic) + { + return; + } + } + } + else if (attr <= XAttributeDefine.XAttr_MagicAtkMod_Percent) + { + if (attr == XAttributeDefine.XAttr_PhysicalAtkMod_Percent) + { + goto IL_101; + } + if (attr == XAttributeDefine.XAttr_PhysicalDefMod_Percent) + { + goto IL_F0; + } + if (attr != XAttributeDefine.XAttr_MagicAtkMod_Percent) + { + return; + } + goto IL_101; + } + else + { + if (attr == XAttributeDefine.XAttr_Critical_Percent) + { + goto IL_CE; + } + if (attr == XAttributeDefine.XAttr_RUN_SPEED_Percent) + { + goto IL_DF; + } + if (attr != XAttributeDefine.XATTR_ATTACK_SPEED_Percent) + { + return; + } + } + this._AttackSpeed.OnChanged(buff, value); + return; + IL_CE: + this._Critical.OnChanged(buff, value); + return; + IL_DF: + this._RunSpeed.OnChanged(buff, value); + return; + IL_F0: + this._PhysicalDef.OnChanged(buff, value); + return; + IL_101: + this._Attack.OnChanged(buff, value); + } + } + + public void OnReduceDamage(XBuff buff, double value) + { + bool flag = buff == null || buff.SkillID == 0u; + if (!flag) + { + this._ReduceDamage.OnChanged(buff, value * 100.0); + } + } + + public void OnFreeze(XBuff buff) + { + bool flag = buff == null || buff.SkillID == 0u; + if (!flag) + { + this._Freeze.OnChanged(buff, 0.0); + } + } + + public void OnImmortal(XBuff buff) + { + bool flag = buff == null || buff.SkillID == 0u; + if (!flag) + { + this._Immortal.OnChanged(buff, 0.0); + } + } + + public static XSecurityBuffInfo TryGetStatistics(XEntity entity) + { + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(entity); + bool flag = xsecurityStatistics == null; + XSecurityBuffInfo result; + if (flag) + { + result = null; + } + else + { + result = xsecurityStatistics.BuffStatistics; + } + return result; + } + + public static double GetValue(XSecurityBuffInfo.AttributeParam param, double finalValue) + { + bool flag = XAttributeCommon.IsBasicRange(XFastEnumIntEqualityComparer.ToInt(param.attr)); + if (flag) + { + bool flag2 = param.initValue != 0f; + if (flag2) + { + finalValue = (finalValue - (double)param.initValue) / (double)param.initValue; + } + } + else + { + finalValue *= 0.01; + } + return finalValue; + } + + public static void ProcessNormal(ref XSecurityBuffInfo.BuffInfo buffInfo, XSecurityBuffInfo.AttributeParam param) + { + buffInfo.OnChanged(param.buff, XSecurityBuffInfo.GetValue(param, param.value)); + } + + public static void SendPlayerData(XSecurityBuffInfo buffInfos) + { + XSecurityBuffInfo._SendData(buffInfos._PhysicalDef, "1"); + XSecurityBuffInfo._SendData(buffInfos._Attack, "2"); + XSecurityBuffInfo._SendData(buffInfos._Critical, "3"); + XSecurityBuffInfo._SendData(buffInfos._RunSpeed, "4"); + XSecurityBuffInfo._SendData(buffInfos._AttackSpeed, "5"); + XSecurityBuffInfo._SendData(buffInfos._ReduceDamage, "6"); + XSecurityBuffInfo._SendData(buffInfos._Immortal, "7"); + XSecurityBuffInfo._SendData(buffInfos._Freeze, "8"); + } + + private static void _SendData(XSecurityBuffInfo.BuffInfo buffInfo, string keywords) + { + XStaticSecurityStatistics.Append(string.Format("Skill{0}Count", keywords), (float)buffInfo._CountTotal); + XStaticSecurityStatistics.Append(string.Format("Skill{0}EffectMin", keywords), buffInfo._EffectMin); + XStaticSecurityStatistics.Append(string.Format("Skill{0}EffectMax", keywords), buffInfo._EffectMax); + XStaticSecurityStatistics.Append(string.Format("Skill{0}TimeMin", keywords), buffInfo._TimeMin); + XStaticSecurityStatistics.Append(string.Format("Skill{0}TimeMax", keywords), buffInfo._TimeMax); + XStaticSecurityStatistics.Append(string.Format("Skill{0}TimeTotal", keywords), buffInfo._TimeTotal); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSecurityBuffInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSecurityBuffInfo.cs.meta new file mode 100644 index 00000000..f5c8a77f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityBuffInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b24f21e13804e84d83b16896aa3acdf +timeCreated: 1611403597 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSecurityDamageInfo.cs b/Client/Assets/Scripts/XMainClient/XSecurityDamageInfo.cs new file mode 100644 index 00000000..a57b9cea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityDamageInfo.cs @@ -0,0 +1,118 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSecurityDamageInfo + { + public float _AttackTotal; + + public float _AttackMax; + + public float _AttackMin; + + public int _AttackCount; + + public int _CriticalAttackCount; + + public int _InvalidAttackCount; + + public float _HurtTotal; + + public float _HurtMax; + + public float _HurtMin; + + public void Reset() + { + this._AttackTotal = 0f; + this._AttackMax = 0f; + this._AttackMin = float.MaxValue; + this._AttackCount = 0; + this._CriticalAttackCount = 0; + this._InvalidAttackCount = 0; + this._HurtTotal = 0f; + this._HurtMax = 0f; + this._HurtMin = float.MaxValue; + } + + public void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = result.Value >= 0.0; + if (flag) + { + this._AttackCount++; + this._AttackTotal += (float)result.Value; + this._AttackMax = Math.Max((float)result.Value, this._AttackMax); + bool flag2 = result.Value > 0.0; + if (flag2) + { + this._AttackMin = Math.Min((float)result.Value, this._AttackMin); + } + bool flag3 = (result.Flag & XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_CRITICAL)) != 0; + if (flag3) + { + this._CriticalAttackCount++; + } + bool flag4 = result.Result == ProjectResultType.PJRES_IMMORTAL; + if (flag4) + { + this._InvalidAttackCount++; + } + } + } + + public void OnReceiveDamage(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = result.Value >= 0.0; + if (flag) + { + this._HurtTotal += (float)result.Value; + this._HurtMax = Math.Max((float)result.Value, this._HurtMax); + bool flag2 = result.Value > 0.0; + if (flag2) + { + this._HurtMin = Math.Min((float)result.Value, this._HurtMin); + } + } + } + + public void Merge(XSecurityDamageInfo other) + { + bool flag = other == null; + if (!flag) + { + this._AttackTotal += other._AttackTotal; + this._AttackMax = Math.Max(this._AttackMax, other._AttackMax); + this._AttackMin = Math.Min(this._AttackMin, other._AttackMin); + this._AttackCount += other._AttackCount; + this._CriticalAttackCount += other._CriticalAttackCount; + this._InvalidAttackCount += other._InvalidAttackCount; + this._HurtTotal += other._HurtTotal; + this._HurtMax = Math.Max(this._HurtMax, other._HurtMax); + this._HurtMin = Math.Min(this._HurtMin, other._HurtMin); + } + } + + public static void SendPlayerData(XSecurityDamageInfo info) + { + XStaticSecurityStatistics.Append("PlayerDpsCount", (float)info._AttackCount); + XStaticSecurityStatistics.Append("PlayerAtkMissTotal", (float)info._InvalidAttackCount); + XStaticSecurityStatistics.Append("PlayerCritCount", (float)info._CriticalAttackCount); + XStaticSecurityStatistics.Append("PlayerDamageMax", info._AttackMax); + XStaticSecurityStatistics.Append("PlayerDamageMin", info._AttackMin); + XStaticSecurityStatistics.Append("PlayerDpsTotal", info._AttackTotal); + } + + public static void SendEnemyData(XSecurityDamageInfo info, string keywords) + { + XStaticSecurityStatistics.Append(string.Format("{0}MissCount", keywords), (float)info._InvalidAttackCount); + XStaticSecurityStatistics.Append(string.Format("{0}AttackMax", keywords), info._AttackMax); + XStaticSecurityStatistics.Append(string.Format("{0}AttackMin", keywords), info._AttackMin); + XStaticSecurityStatistics.Append(string.Format("{0}AttackTotal", keywords), info._AttackTotal); + XStaticSecurityStatistics.Append(string.Format("{0}DamageMax", keywords), info._HurtMax); + XStaticSecurityStatistics.Append(string.Format("{0}DamageMin", keywords), info._HurtMin); + XStaticSecurityStatistics.Append(string.Format("{0}DamageTotal", keywords), info._HurtTotal); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSecurityDamageInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSecurityDamageInfo.cs.meta new file mode 100644 index 00000000..c5f26135 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityDamageInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d395b797e1cb3274ca0855776bd0f655 +timeCreated: 1611404599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSecurityHPInfo.cs b/Client/Assets/Scripts/XMainClient/XSecurityHPInfo.cs new file mode 100644 index 00000000..045b8f33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityHPInfo.cs @@ -0,0 +1,34 @@ +using System; + +namespace XMainClient +{ + internal class XSecurityHPInfo + { + public float _TotalValue; + + public float _MaxValue; + + public float _MinValue; + + public void Reset() + { + this._TotalValue = 0f; + this._MaxValue = 0f; + this._MinValue = float.MaxValue; + } + + public void Merge(float value) + { + this._TotalValue += value; + this._MaxValue = Math.Max(this._MaxValue, value); + this._MinValue = Math.Min(this._MinValue, value); + } + + public static void SendData(XSecurityHPInfo info, string keywords) + { + XStaticSecurityStatistics.Append(string.Format("{0}InitHPMax", keywords), info._MaxValue); + XStaticSecurityStatistics.Append(string.Format("{0}InitHPMin", keywords), info._MinValue); + XStaticSecurityStatistics.Append(string.Format("{0}InitHPTotal", keywords), info._TotalValue); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSecurityHPInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSecurityHPInfo.cs.meta new file mode 100644 index 00000000..1414b682 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityHPInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ac66c3cd75d92344cb70f4086348dc7b +timeCreated: 1611404330 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSecurityMobInfo.cs b/Client/Assets/Scripts/XMainClient/XSecurityMobInfo.cs new file mode 100644 index 00000000..d2e49c6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityMobInfo.cs @@ -0,0 +1,138 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XSecurityMobInfo + { + public List MobInfoList + { + get + { + return this._MobInfosList; + } + } + + private List _MobInfosList = new List(); + + private Dictionary _MobInfos = new Dictionary(); + + public class MobInfo : XDataBase + { + public uint _TemplateID; + + public int _CastCount; + + public float _AttackTotal; + + public void Reset() + { + this._TemplateID = 0u; + this._CastCount = 0; + this._AttackTotal = 0f; + } + + public void Merge(XSecurityMobInfo.MobInfo other) + { + bool flag = other == null; + if (!flag) + { + this._AttackTotal += other._AttackTotal; + this._CastCount += other._CastCount; + } + } + + public override void Init() + { + base.Init(); + this.Reset(); + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } + + private XSecurityMobInfo.MobInfo _TryGetMobInfo(uint templateID) + { + XSecurityMobInfo.MobInfo data; + bool flag = !this._MobInfos.TryGetValue(templateID, out data); + if (flag) + { + data = XDataPool.GetData(); + data._TemplateID = templateID; + this._MobInfosList.Add(data); + this._MobInfos.Add(templateID, data); + } + return data; + } + + public void Reset() + { + for (int i = 0; i < this._MobInfosList.Count; i++) + { + this._MobInfosList[i].Recycle(); + } + this._MobInfosList.Clear(); + this._MobInfos.Clear(); + } + + public void Merge(XSecurityMobInfo other) + { + for (int i = 0; i < other._MobInfosList.Count; i++) + { + XSecurityMobInfo.MobInfo mobInfo = this._TryGetMobInfo(other._MobInfosList[i]._TemplateID); + mobInfo.Merge(other._MobInfosList[i]); + } + } + + public void OnCast(uint templateID, int count) + { + XSecurityMobInfo.MobInfo mobInfo = this._TryGetMobInfo(templateID); + mobInfo._CastCount += count; + } + + public void OnCastDamage(uint templateID, double value) + { + XSecurityMobInfo.MobInfo mobInfo = this._TryGetMobInfo(templateID); + mobInfo._AttackTotal += (float)value; + } + + public void Append(XEntity entity) + { + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(entity); + bool flag = xsecurityStatistics == null || !xsecurityStatistics.bValid; + if (!flag) + { + XSecurityMobInfo.MobInfo mobInfo = this._TryGetMobInfo(entity.TypeID); + mobInfo._CastCount++; + mobInfo._AttackTotal += xsecurityStatistics.DamageStatistics._AttackTotal; + } + } + + public XSecurityMobInfo.MobInfo GetMobInfoByID(uint templateID) + { + XSecurityMobInfo.MobInfo result; + this._MobInfos.TryGetValue(templateID, out result); + return result; + } + + public static XSecurityMobInfo TryGetStatistics(XEntity entity) + { + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(entity); + bool flag = xsecurityStatistics == null; + XSecurityMobInfo result; + if (flag) + { + result = null; + } + else + { + result = xsecurityStatistics.MobStatistics; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSecurityMobInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSecurityMobInfo.cs.meta new file mode 100644 index 00000000..9ba66075 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityMobInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bda3b6ce7911ba94b8a1b5fec9130a5f +timeCreated: 1611404456 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSecuritySkillInfo.cs b/Client/Assets/Scripts/XMainClient/XSecuritySkillInfo.cs new file mode 100644 index 00000000..717d5818 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecuritySkillInfo.cs @@ -0,0 +1,417 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSecuritySkillInfo + { + public List SkillInfoList + { + get + { + return this._SkillInfoList; + } + } + + public XSecuritySkillInfo.SkillInfo NormalAttackInfo + { + get + { + return this._NormalAttackInfo; + } + } + + private List _SkillInfoList = new List(); + + private Dictionary _SkillInfos = new Dictionary(); + + private XSecuritySkillInfo.SkillInfo _NormalAttackInfo = new XSecuritySkillInfo.SkillInfo(); + + private XSecuritySkillInfo.SkillInfo _QTEAttackInfo = null; + + public class SkillInfo : XDataBase + { + public uint _SkillID; + + public uint _IntervalMin; + + public int _CastCount; + + public int _AttackCount; + + public float _AttackTotal; + + public float _AttackMax; + + public float _AttackMin = float.MaxValue; + + public float _CriticalAttackMax; + + public float _CriticalAttackMin = float.MaxValue; + + public uint _SingleAttackMaxCount; + + private uint _last_cast; + + private long _last_token; + + private uint _last_single_attack_count; + + public void OnCast(int count) + { + this._CastCount += count; + bool flag = this._last_cast > 0u; + if (flag) + { + uint num = (uint)Time.realtimeSinceStartup * 1000u - this._last_cast; + bool flag2 = num < this._IntervalMin; + if (flag2) + { + this._IntervalMin = num; + } + } + else + { + this._last_cast = (uint)Time.realtimeSinceStartup * 1000u; + } + } + + public void OnCast() + { + this.OnCast(1); + } + + public void OnCastDamage(double value) + { + this._AttackCount++; + this._AttackTotal += (float)value; + this._AttackMax = Math.Max((float)value, this._AttackMax); + bool flag = value > 0.0; + if (flag) + { + this._AttackMin = Math.Min((float)value, this._AttackMin); + } + } + + public void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + this._AttackCount++; + this._AttackTotal += (float)result.Value; + bool flag = (result.Flag & XFastEnumIntEqualityComparer.ToInt(DamageFlag.DMGFLAG_CRITICAL)) != 0; + if (flag) + { + this._CriticalAttackMax = Math.Max((float)result.Value, this._CriticalAttackMax); + bool flag2 = result.Value > 0.0; + if (flag2) + { + this._CriticalAttackMin = Math.Min((float)result.Value, this._CriticalAttackMin); + } + } + else + { + this._AttackMax = Math.Max((float)result.Value, this._AttackMax); + bool flag3 = result.Value > 0.0; + if (flag3) + { + this._AttackMin = Math.Min((float)result.Value, this._AttackMin); + } + } + bool flag4 = rawInput.SkillToken != this._last_token; + if (flag4) + { + this._last_token = rawInput.SkillToken; + this._last_single_attack_count = 0u; + } + this._last_single_attack_count += 1u; + bool flag5 = this._last_single_attack_count > this._SingleAttackMaxCount; + if (flag5) + { + this._SingleAttackMaxCount = this._last_single_attack_count; + } + } + + public void Reset() + { + this._SkillID = 0u; + this._IntervalMin = uint.MaxValue; + this._AttackCount = 0; + this._CastCount = 0; + this._AttackTotal = 0f; + this._AttackMax = 0f; + this._AttackMin = float.MaxValue; + this._CriticalAttackMax = 0f; + this._CriticalAttackMin = float.MaxValue; + this._SingleAttackMaxCount = 0u; + this._last_cast = 0u; + this._last_token = 0L; + this._last_single_attack_count = 0u; + } + + public void Merge(XSecuritySkillInfo.SkillInfo other) + { + bool flag = other == null; + if (!flag) + { + this._AttackCount += other._AttackCount; + this._AttackTotal += other._AttackTotal; + this._AttackMax = Math.Max(this._AttackMax, other._AttackMax); + this._AttackMin = Math.Min(this._AttackMin, other._AttackMin); + this._CriticalAttackMax = Math.Max(this._CriticalAttackMax, other._CriticalAttackMax); + this._CriticalAttackMin = Math.Min(this._CriticalAttackMin, other._CriticalAttackMin); + this._SingleAttackMaxCount = Math.Max(this._SingleAttackMaxCount, other._SingleAttackMaxCount); + this._CastCount += other._CastCount; + this._IntervalMin = Math.Min(this._IntervalMin, other._IntervalMin); + } + } + + public override void Init() + { + base.Init(); + this.Reset(); + } + + public override void Recycle() + { + base.Recycle(); + XDataPool.Recycle(this); + } + } + + private XSecuritySkillInfo.SkillInfo _TryGetSkillInfo(uint skillID) + { + XSecuritySkillInfo.SkillInfo data; + bool flag = !this._SkillInfos.TryGetValue(skillID, out data); + if (flag) + { + data = XDataPool.GetData(); + data._SkillID = skillID; + this._SkillInfos.Add(skillID, data); + this._SkillInfoList.Add(data); + } + return data; + } + + public void OnCastDamage(uint skillID, double value) + { + bool flag = value >= 0.0; + if (flag) + { + bool flag2 = skillID > 0u; + if (flag2) + { + XSecuritySkillInfo.SkillInfo skillInfo = this._TryGetSkillInfo(skillID); + skillInfo.OnCastDamage(value); + } + } + } + + public void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = result.Value >= 0.0; + if (flag) + { + bool flag2 = rawInput.SkillID > 0u; + if (flag2) + { + XSecuritySkillInfo.SkillInfo skillInfo = this._TryGetSkillInfo(rawInput.SkillID); + skillInfo.OnCastDamage(rawInput, result); + } + } + } + + public void OnCast(uint skillID) + { + this.OnCast(skillID, 1); + } + + public void OnCast(uint skillID, int count) + { + XSecuritySkillInfo.SkillInfo skillInfo = this._TryGetSkillInfo(skillID); + skillInfo.OnCast(count); + } + + public void Reset() + { + for (int i = 0; i < this._SkillInfoList.Count; i++) + { + this._SkillInfoList[i].Recycle(); + } + this._SkillInfoList.Clear(); + this._SkillInfos.Clear(); + this._NormalAttackInfo.Reset(); + bool flag = this._QTEAttackInfo != null; + if (flag) + { + this._QTEAttackInfo.Reset(); + } + } + + public void Merge(XSecuritySkillInfo other) + { + this._NormalAttackInfo.Merge(other._NormalAttackInfo); + bool flag = this._QTEAttackInfo != null; + if (flag) + { + this._QTEAttackInfo.Merge(other._QTEAttackInfo); + } + for (int i = 0; i < other._SkillInfoList.Count; i++) + { + XSecuritySkillInfo.SkillInfo skillInfo = this._TryGetSkillInfo(other._SkillInfoList[i]._SkillID); + skillInfo.Merge(other._SkillInfoList[i]); + } + } + + public void OnAttach(XEntity entity) + { + bool flag = entity == null; + if (!flag) + { + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + bool flag2 = this._QTEAttackInfo == null; + if (flag2) + { + this._QTEAttackInfo = new XSecuritySkillInfo.SkillInfo(); + this._QTEAttackInfo.Reset(); + } + } + } + } + + public void OnEnd(XEntity entity) + { + this.EndTo(entity, this, true); + } + + public void EndTo(XEntity entity, XSecuritySkillInfo other, bool bProcessQTE) + { + bool flag = entity != null && entity.SkillMgr != null; + if (flag) + { + XSkillMgr skillMgr = entity.SkillMgr; + foreach (XSecuritySkillInfo.SkillInfo skillInfo in this._SkillInfos.Values) + { + bool flag2 = skillMgr.IsPhysicalAttack(skillInfo._SkillID); + if (flag2) + { + other._NormalAttackInfo.Merge(skillInfo); + } + else if (bProcessQTE) + { + bool flag3 = this._QTEAttackInfo != null && skillMgr.IsQTESkill(skillInfo._SkillID); + if (flag3) + { + other._QTEAttackInfo.Merge(skillInfo); + } + } + else + { + XSecuritySkillInfo.SkillInfo skillInfo2 = other._TryGetSkillInfo(skillInfo._SkillID); + skillInfo2.Merge(skillInfo); + } + } + } + } + + public XSecuritySkillInfo.SkillInfo GetSkillInfoByID(uint skillID) + { + XSecuritySkillInfo.SkillInfo result; + this._SkillInfos.TryGetValue(skillID, out result); + return result; + } + + public static XSecuritySkillInfo TryGetStatistics(XEntity entity) + { + XSecurityStatistics xsecurityStatistics = XSecurityStatistics.TryGetStatistics(entity); + bool flag = xsecurityStatistics == null; + XSecuritySkillInfo result; + if (flag) + { + result = null; + } + else + { + result = xsecurityStatistics.SkillStatistics; + } + return result; + } + + public static void SendPlayerData(XEntity entity, XSecuritySkillInfo skillInfos) + { + bool flag = skillInfos._NormalAttackInfo != null; + if (flag) + { + XStaticSecurityStatistics.Append("PlayerATKMax", skillInfos._NormalAttackInfo._AttackMax); + XStaticSecurityStatistics.Append("PlayerATKMin", skillInfos._NormalAttackInfo._AttackMin); + XStaticSecurityStatistics.Append("PlayerCritATKMax", skillInfos._NormalAttackInfo._CriticalAttackMax); + XStaticSecurityStatistics.Append("PlayerCritATKMin", skillInfos._NormalAttackInfo._CriticalAttackMin); + XStaticSecurityStatistics.Append("PlayerAtkTotal", skillInfos._NormalAttackInfo._AttackTotal); + XStaticSecurityStatistics.Append("PlayerAtkCount", (float)skillInfos._NormalAttackInfo._CastCount); + XStaticSecurityStatistics.Append("PlayerAtkTag", skillInfos._NormalAttackInfo._SingleAttackMaxCount); + } + bool flag2 = skillInfos._QTEAttackInfo != null; + if (flag2) + { + XStaticSecurityStatistics.Append("PlayerQTEMax", skillInfos._QTEAttackInfo._AttackMax); + XStaticSecurityStatistics.Append("PlayerQTEMin", skillInfos._QTEAttackInfo._AttackMin); + XStaticSecurityStatistics.Append("PlayerCritQTEMax", skillInfos._QTEAttackInfo._CriticalAttackMax); + XStaticSecurityStatistics.Append("PlayerCritQTEMin", skillInfos._QTEAttackInfo._CriticalAttackMin); + XStaticSecurityStatistics.Append("PlayerQTEDps", skillInfos._QTEAttackInfo._AttackTotal); + XStaticSecurityStatistics.Append("PlayerQTECount", (float)skillInfos._QTEAttackInfo._CastCount); + XStaticSecurityStatistics.Append("PlayerQTEHitCount", (float)skillInfos._QTEAttackInfo._AttackCount); + XStaticSecurityStatistics.Append("PlayerQTETag", skillInfos._QTEAttackInfo._SingleAttackMaxCount); + } + bool flag3 = entity == null; + if (!flag3) + { + XAttributes attributes = entity.Attributes; + XSkillMgr skillMgr = entity.SkillMgr; + bool flag4 = attributes == null || skillMgr == null; + if (!flag4) + { + int num = 0; + XSecuritySkillInfo.SkillInfo skillInfo; + for (int i = 0; i < attributes.skillSlot.Length; i++) + { + bool flag5 = skillMgr.IsPhysicalAttack(attributes.skillSlot[i]); + if (!flag5) + { + bool flag6 = skillMgr.GetDashIdentity() == attributes.skillSlot[i]; + if (!flag6) + { + bool flag7 = skillMgr.IsQTESkill(attributes.skillSlot[i]); + if (!flag7) + { + skillInfo = null; + skillInfos._SkillInfos.TryGetValue(attributes.skillSlot[i], out skillInfo); + XSecuritySkillInfo.SkillInfo skillInfo2 = skillInfo; + int num2 = num + 1; + num = num2; + XSecuritySkillInfo._SendPlayerData(skillInfo2, num2.ToString()); + } + } + } + } + skillInfos._SkillInfos.TryGetValue(skillMgr.GetDashIdentity(), out skillInfo); + XSecuritySkillInfo._SendPlayerData(skillInfo, "10"); + } + } + } + + private static void _SendPlayerData(XSecuritySkillInfo.SkillInfo skillInfo, string keywords) + { + XStaticSecurityStatistics.Append(string.Format("PlayerSkillMax{0}", keywords), (skillInfo == null) ? 0f : skillInfo._AttackMax); + XStaticSecurityStatistics.Append(string.Format("PlayerSkillMin{0}", keywords), (skillInfo == null) ? 0f : skillInfo._AttackMin); + XStaticSecurityStatistics.Append(string.Format("PlayerCritSkillMax{0}", keywords), (skillInfo == null) ? 0f : skillInfo._CriticalAttackMax); + XStaticSecurityStatistics.Append(string.Format("PlayerCritSkillMin{0}", keywords), (skillInfo == null) ? 0f : skillInfo._CriticalAttackMin); + XStaticSecurityStatistics.Append(string.Format("PlayerSkillHitCount{0}", keywords), (float)((skillInfo == null) ? 0 : skillInfo._AttackCount)); + XStaticSecurityStatistics.Append(string.Format("PlayerSkillDPS{0}", keywords), (skillInfo == null) ? 0f : skillInfo._AttackTotal); + XStaticSecurityStatistics.Append(string.Format("PlayerSkillCount{0}", keywords), (float)((skillInfo == null) ? 0 : skillInfo._CastCount)); + XStaticSecurityStatistics.Append(string.Format("PlayerSkillCD{0}", keywords), (skillInfo == null) ? 0u : skillInfo._IntervalMin); + XStaticSecurityStatistics.Append(string.Format("PlayerSkillTag{0}", keywords), (skillInfo == null) ? 0u : skillInfo._SingleAttackMaxCount); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSecuritySkillInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSecuritySkillInfo.cs.meta new file mode 100644 index 00000000..3ac54f93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecuritySkillInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e005caba26e188545896122b45e9be30 +timeCreated: 1611404695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSecurityStatistics.cs b/Client/Assets/Scripts/XMainClient/XSecurityStatistics.cs new file mode 100644 index 00000000..60dd4a39 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityStatistics.cs @@ -0,0 +1,349 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XSecurityStatistics + { + public bool bValid + { + get + { + return this._bInited; + } + } + + public XSecurityDamageInfo DamageStatistics + { + get + { + return this._DamageInfo; + } + } + + public XSecurityAttributeInfo AttributeStatistics + { + get + { + return this._AttributeInfo; + } + } + + public XSecurityBuffInfo BuffStatistics + { + get + { + return this._BuffInfo; + } + } + + public XSecuritySkillInfo SkillStatistics + { + get + { + return this._SkillInfo; + } + } + + public XSecurityMobInfo MobStatistics + { + get + { + return this._MobInfo; + } + } + + public XSecurityAIInfo AIInfo + { + get + { + return this._AIInfo; + } + } + + public XEntity Entity + { + get + { + return this.m_Entity; + } + set + { + this.m_Entity = value; + } + } + + public float _Distance; + + public float _InitHp; + + public float _InitMp; + + public float _FinalHp; + + public float _FinalMp; + + private bool _bInited = false; + + private XSecurityDamageInfo _DamageInfo = new XSecurityDamageInfo(); + + private XSecurityAttributeInfo _AttributeInfo; + + private XSecurityBuffInfo _BuffInfo; + + private XSecuritySkillInfo _SkillInfo; + + private XSecurityMobInfo _MobInfo; + + public XSecurityAIInfo _AIInfo; + + private XEntity m_Entity; + + public void OnAttach() + { + bool flag = this.m_Entity != null; + if (flag) + { + bool isPlayer = this.m_Entity.IsPlayer; + if (isPlayer) + { + bool flag2 = this._AttributeInfo == null; + if (flag2) + { + this._AttributeInfo = new XSecurityAttributeInfo(); + this._AttributeInfo.Reset(); + } + bool flag3 = this._SkillInfo == null; + if (flag3) + { + this._SkillInfo = new XSecuritySkillInfo(); + this._SkillInfo.Reset(); + } + bool flag4 = this._BuffInfo == null; + if (flag4) + { + this._BuffInfo = new XSecurityBuffInfo(); + this._BuffInfo.Reset(); + } + bool flag5 = this._MobInfo == null; + if (flag5) + { + this._MobInfo = new XSecurityMobInfo(); + this._MobInfo.Reset(); + } + this._SkillInfo.OnAttach(this.m_Entity); + this._AttributeInfo.OnAttach(this.m_Entity); + } + else + { + bool isEnemy = this.m_Entity.IsEnemy; + if (isEnemy) + { + bool flag6 = this._AIInfo == null; + if (flag6) + { + this._AIInfo = new XSecurityAIInfo(); + this._AIInfo.Reset(); + } + } + } + } + } + + public void Dump() + { + bool flag = this.Entity == null; + if (!flag) + { + bool flag2 = !this._bInited; + if (!flag2) + { + bool flag3 = !this.Entity.IsPlayer; + if (flag3) + { + this.OnEnd(); + } + bool isBoss = this.Entity.IsBoss; + if (isBoss) + { + XStaticSecurityStatistics._BossDamageInfo.Merge(this._DamageInfo); + XStaticSecurityStatistics._BossAIInfo.Merge(this._AIInfo); + XStaticSecurityStatistics._BossHPInfo.Merge(this._InitHp); + XStaticSecurityStatistics._BossMoveDistance += this._Distance; + } + else + { + bool isOpposer = this.Entity.IsOpposer; + if (isOpposer) + { + XStaticSecurityStatistics._MonsterDamageInfo.Merge(this._DamageInfo); + XStaticSecurityStatistics._MonsterAIInfo.Merge(this._AIInfo); + XStaticSecurityStatistics._MonsterHPInfo.Merge(this._InitHp); + XStaticSecurityStatistics._MonsterMoveDistance += this._Distance; + } + } + } + } + } + + public void Reset() + { + this._DamageInfo.Reset(); + bool flag = this._AttributeInfo != null; + if (flag) + { + this._AttributeInfo.Reset(); + } + bool flag2 = this._SkillInfo != null; + if (flag2) + { + this._SkillInfo.Reset(); + } + bool flag3 = this._BuffInfo != null; + if (flag3) + { + this._BuffInfo.Reset(); + } + bool flag4 = this._AIInfo != null; + if (flag4) + { + this._AIInfo.Reset(); + } + bool flag5 = this._MobInfo != null; + if (flag5) + { + this._MobInfo.Reset(); + } + this._InitHp = -1f; + this._InitMp = -1f; + this._FinalHp = 0f; + this._FinalMp = 0f; + this._Distance = 0f; + this._bInited = true; + } + + public void OnStart() + { + this.Reset(); + this.OnAttach(); + bool flag = this.m_Entity != null && this.m_Entity.Attributes != null; + if (flag) + { + this._InitHp = (float)this.m_Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + this._InitMp = (float)this.m_Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + } + } + + public void OnEnd() + { + bool flag = !this._bInited; + if (!flag) + { + bool flag2 = this.m_Entity != null; + if (flag2) + { + bool flag3 = this.m_Entity.Attributes != null; + if (flag3) + { + this._FinalHp = (float)this.m_Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic); + this._FinalMp = (float)this.m_Entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentMP_Basic); + } + bool flag4 = this.SkillStatistics != null; + if (flag4) + { + this.SkillStatistics.OnEnd(this.m_Entity); + } + bool flag5 = !this.m_Entity.IsPlayer; + if (flag5) + { + this.OnEntityFinish(XSingleton.singleton.Player); + } + } + this._bInited = false; + } + } + + public void OnCastDamage(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = !result.Accept; + if (!flag) + { + this._DamageInfo.OnCastDamage(rawInput, result); + bool flag2 = this._SkillInfo != null; + if (flag2) + { + this._SkillInfo.OnCastDamage(rawInput, result); + } + } + } + + public void OnReceiveDamage(HurtInfo rawInput, ProjectDamageResult result) + { + bool flag = !result.Accept; + if (!flag) + { + this._DamageInfo.OnReceiveDamage(rawInput, result); + } + } + + public void OnAttributeChange(XAttributeDefine attr, double oldValue, double delta) + { + bool flag = this._AttributeInfo != null && this._AttributeInfo.IsUsefulAttr(attr); + if (flag) + { + this._AttributeInfo.OnAttributeChange(attr, delta); + } + } + + public bool IsUsefulAttr(XAttributeDefine attr) + { + return this._AttributeInfo != null && this._AttributeInfo.IsUsefulAttr(attr); + } + + public void OnMobCast() + { + } + + public void OnMobMonster() + { + } + + public void OnMove(float distance) + { + this._Distance += distance; + } + + public void OnEntityFinish(XEntity host) + { + bool flag = host == null || this.Entity == null || this.Entity.Attributes == null; + if (!flag) + { + bool flag2 = this.Entity.Attributes.HostID != host.ID; + if (!flag2) + { + XSecurityMobInfo xsecurityMobInfo = XSecurityMobInfo.TryGetStatistics(host); + bool flag3 = xsecurityMobInfo == null; + if (!flag3) + { + xsecurityMobInfo.Append(this.Entity); + } + } + } + } + + public static XSecurityStatistics TryGetStatistics(XEntity entity) + { + bool flag = entity == null || entity.Attributes == null; + XSecurityStatistics result; + if (flag) + { + result = null; + } + else + { + result = entity.Attributes.SecurityStatistics; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSecurityStatistics.cs.meta b/Client/Assets/Scripts/XMainClient/XSecurityStatistics.cs.meta new file mode 100644 index 00000000..1359f3bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSecurityStatistics.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f373967be18330848b31f4de792c19d7 +timeCreated: 1611404848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSelectCharacterDocument.cs b/Client/Assets/Scripts/XMainClient/XSelectCharacterDocument.cs new file mode 100644 index 00000000..418c960b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSelectCharacterDocument.cs @@ -0,0 +1,105 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSelectCharacterDocument : XDocComponent + { + public override uint ID + { + get + { + return XSelectCharacterDocument.uuID; + } + } + + public XSelectCharView View + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public int CurrentProf + { + get + { + return this._currentCreateProf; + } + set + { + this._currentCreateProf = value; + } + } + + public List RoleList + { + get + { + return this._roleList; + } + set + { + this._roleList = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SelectCharacterDocument"); + + private int _currentCreateProf = -1; + + private int tttt = 2; + + private List _roleList = new List(); + + private XSelectCharView _view = null; + + private List testlist = new List(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.testlist.Add(1); + this.testlist.Add(2); + this.testlist.Add(4); + } + + public void OnSelectCharBack() + { + XSingleton.singleton.Close(NetErrCode.Net_NoError); + XAutoFade.FadeOut2In(1.5f, 0.5f); + XSingleton.singleton.AddLog(string.Concat(this.tttt), null, null, null, null, null, XDebugColor.XDebug_None); + XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.BackToLoginOnClick), null); + } + + public void OnEnterWorld() + { + XSelectcharStage xselectcharStage = XSingleton.singleton.CurrentStage as XSelectcharStage; + bool flag = xselectcharStage != null; + if (flag) + { + xselectcharStage.EnterGameWorld(this._view.SelectCharIndex); + } + XMainInterfaceDocument specificDocument = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument.GameAnnouncement = false; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + private void BackToLoginOnClick(object o) + { + XAutoFade.MakeBlack(false); + XSingleton.singleton.FromLogining(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSelectCharacterDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSelectCharacterDocument.cs.meta new file mode 100644 index 00000000..523a414c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSelectCharacterDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fee6441dd332f274fbfdae3d33e17d76 +timeCreated: 1611404943 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSelectcharStage.cs b/Client/Assets/Scripts/XMainClient/XSelectcharStage.cs new file mode 100644 index 00000000..21d19fef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSelectcharStage.cs @@ -0,0 +1,227 @@ +using System; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSelectcharStage : XCharStage + { + private uint _token2 = 0u; + + private uint _token3 = 0u; + + private float _turn_interval = 3f; + + private float _turn_update = 0f; + + private bool _character_show = false; + + public XSelectcharStage() : base(EXStage.SelectChar) + { + this._turn_interval = XSingleton.singleton.ProShowTurnInterval; + this._turn_update = 0f; + } + + public override void OnEnterStage(EXStage eOld) + { + base.OnEnterStage(eOld); + CombineMeshTask.s_CombineMatType = ECombineMatType.EIndependent; + XSingleton.singleton.DelayLoad = false; + bool flag = this._eStage != eOld; + if (flag) + { + this._auto_enter = false; + } + this._character_show = false; + this._prelusive = true; + bool flag2 = eOld == EXStage.Login; + if (flag2) + { + XSingleton.singleton.Start("CutScene/first2second_slash_show", false, true); + this._token2 = XSingleton.singleton.SetTimer(XSingleton.singleton.Length, new XTimerMgr.ElapsedEventHandler(this.PresentDone), null); + } + else + { + this.ReLogined(); + XSingleton.singleton.Uninit(); + } + XSingleton.singleton.XLoginStep = XLoginStep.EnterGame; + } + + public override void OnLeaveStage(EXStage eNew) + { + base.OnLeaveStage(eNew); + this._character_show = false; + XSingleton.singleton.KillTimer(this._token2); + XSingleton.singleton.KillTimer(this._token3); + CombineMeshTask.s_CombineMatType = ECombineMatType.ECombined; + XSingleton.singleton.DelayLoad = true; + } + + public void ReLogined() + { + this._auto_enter = false; + this._cur_tag = 0; + DlgBase.singleton.SwitchProfession(-1); + XSingleton.singleton.Start("CutScene/second_slash_show", false, true); + XSingleton.singleton.ShowSelectCharGerenalUI(); + this._prelusive = false; + } + + public static void ShowBillboard(XDummy dummy) + { + int num = -1; + int.TryParse(dummy.EngineObject.Tag, out num); + bool flag = num < 0 || num - 1 >= XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Count; + if (flag) + { + XSingleton.singleton.AddErrorLog("Character tag ", dummy.EngineObject.Tag, " exceeded server PlayerBriefInfo count.", null, null, null); + } + else + { + RoleBriefInfo roleBriefInfo = XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo[num - 1]; + bool flag2 = roleBriefInfo == null; + if (!flag2) + { + XSingleton.singleton.HpbarRoot.gameObject.SetActive(true); + XSingleton.singleton.NpcHpbarRoot.gameObject.SetActive(true); + bool flag3 = dummy.BillBoard == null; + if (flag3) + { + dummy.BillBoard = (XSingleton.singleton.CreateComponent(dummy, XBillboardComponent.uuID) as XBillboardComponent); + dummy.BillBoard.AttachDummyBillboard(roleBriefInfo.name, roleBriefInfo.level, (int)((int)roleBriefInfo.type % 10)); + } + else + { + dummy.BillBoard.AttachDummyBillboard(roleBriefInfo.name, roleBriefInfo.level, (int)((int)roleBriefInfo.type % 10)); + } + dummy.BillBoard.SetSelectCharStageScale(); + } + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + this._turn_update = (this._character_show ? (this._turn_update + fDeltaT) : 0f); + bool flag = !this._prelusive; + if (flag) + { + bool flag2 = this._turn_update > this._turn_interval; + if (flag2) + { + base.ShowCharacterTurn(this._cur_tag); + } + else + { + bool oneTouch = XSingleton.singleton.OneTouch; + if (oneTouch) + { + Ray ray = XSingleton.singleton.GameCamera.UnityCamera.ScreenPointToRay(XSingleton.singleton.TouchPosition); + int num = 1 << LayerMask.NameToLayer("Dummy"); + RaycastHit raycastHit; + bool flag3 = Physics.SphereCast(ray, 0.1f, out raycastHit, float.PositiveInfinity, num); + if (flag3) + { + int num2 = int.Parse(raycastHit.collider.tag); + bool flag4 = this._cur_tag == num2; + if (flag4) + { + base.ShowCharacterTurn(this._cur_tag); + } + else + { + base.ShowCharacter(num2); + } + } + } + } + } + bool prelusive = this._prelusive; + if (prelusive) + { + this._character_show = false; + } + } + + public override void Play() + { + XAutoFade.FadeOut2In(0.5f, 0.5f); + XSingleton.singleton.SetTimer(0.5f, new XTimerMgr.ElapsedEventHandler(this.EnterFinally), null); + } + + public void EnterGameWorld(int index) + { + XSingleton.singleton.SetBlockUIVisable(true); + XSingleton.singleton.EnterWorld(index); + } + + protected void EnterFinally(object o) + { + XSingleton.singleton.SceneEnterTo(false); + } + + protected void PresentDone(object o) + { + XSingleton.singleton.Start("CutScene/second_slash_show", false, true); + bool auto_enter = this._auto_enter; + if (auto_enter) + { + base.ShowCharacter(XSingleton.singleton.XPlayerCharacters.SelectedSlot); + } + else + { + this._token3 = XSingleton.singleton.SetTimer(0.433f, new XTimerMgr.ElapsedEventHandler(this.FirstShow), XSingleton.singleton.XPlayerCharacters.SelectedSlot); + XSingleton.singleton.ShowSelectCharGerenalUI(); + this._prelusive = false; + } + } + + protected void FirstShow(object o) + { + int tag = (int)o; + base.ShowCharacter(tag); + } + + protected override void PrelusiveDone() + { + bool flag = this._cur_tag == 0; + if (!flag) + { + DlgBase.singleton.SelectCharIndex = this._cur_tag; + bool auto_enter = this._auto_enter; + if (auto_enter) + { + this.EnterGameWorld(this._cur_tag); + } + else + { + this._prelusive = false; + bool flag2 = this._cur_tag - 1 >= XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Count; + if (flag2) + { + XSingleton.singleton.AddErrorLog("Character tag ", this._cur_tag.ToString(), " exceeded server PlayerBriefInfo count.", null, null, null); + } + else + { + bool flag3 = XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo[this._cur_tag - 1] == null; + if (flag3) + { + XSingleton.singleton.ShowSelectCharCreatedUI(); + } + else + { + int level = XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo[this._cur_tag - 1].level; + XSingleton.singleton.ShowSelectCharSelectedUI(XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo[this._cur_tag - 1].name, level); + } + XSingleton.singleton.Start("CutScene/character_show" + XCharStage.role_type[this._cur_tag], false, true); + this._character_show = true; + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSelectcharStage.cs.meta b/Client/Assets/Scripts/XMainClient/XSelectcharStage.cs.meta new file mode 100644 index 00000000..df606773 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSelectcharStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e5875bbba597eb46b08bb614ced09e4 +timeCreated: 1611403202 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XServerTimeMgr.cs b/Client/Assets/Scripts/XMainClient/XServerTimeMgr.cs new file mode 100644 index 00000000..ddb5f5e4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XServerTimeMgr.cs @@ -0,0 +1,81 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XServerTimeMgr : XSingleton + { + public static readonly long SyncTimeOut = 2000L; + + private long _TimeDelay = 0L; + + private uint _token = 0u; + + private PtcC2G_DelayNotify _delay = new PtcC2G_DelayNotify(); + + private XTimerMgr.ElapsedEventHandler _onTimerStartSyncTime = null; + + private RpcC2G_SyncTime syncTimeRpc = new RpcC2G_SyncTime(); + + public XServerTimeMgr() + { + this._onTimerStartSyncTime = new XTimerMgr.ElapsedEventHandler(this.OnStartSyncTime); + } + + public override bool Init() + { + this.OnStartSyncTime(null); + return true; + } + + public override void Uninit() + { + XSingleton.singleton.KillTimer(this._token); + } + + public long GetDelay() + { + return this._TimeDelay; + } + + private void OnStartSyncTime(object param) + { + bool flag = XSingleton.singleton.XLoginStep == XLoginStep.Playing; + if (flag) + { + this.syncTimeRpc.oArg.time = DateTime.Now.Ticks; + XSingleton.singleton.Send(this.syncTimeRpc); + } + else + { + this.Trigger(); + } + } + + public void OnSyncTime(long sendAt, long replayAt) + { + double num = (double)(replayAt - sendAt) / 10000.0; + this._TimeDelay = (long)num; + this._delay.Data.delay = (uint)this._TimeDelay; + XSingleton.singleton.Send(this._delay); + this.Trigger(); + } + + public void OnSyncTimeout() + { + XSingleton.singleton.AddLog("Ping time out!", null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.World && XSingleton.singleton.IsConnected() && !XSingleton.singleton.XConnect.OnReconnect && !Rpc.OnRpcDelay; + if (flag) + { + } + this._TimeDelay = XServerTimeMgr.SyncTimeOut; + this.Trigger(); + } + + private void Trigger() + { + XSingleton.singleton.KillTimer(this._token); + this._token = XSingleton.singleton.SetGlobalTimer((float)XSingleton.singleton.PINGInterval, this._onTimerStartSyncTime, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XServerTimeMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XServerTimeMgr.cs.meta new file mode 100644 index 00000000..c1c804c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XServerTimeMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 44ac1deafdd465442b0b0026ed425623 +timeCreated: 1611403646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSevenLoginDocument.cs b/Client/Assets/Scripts/XMainClient/XSevenLoginDocument.cs new file mode 100644 index 00000000..1d453edb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSevenLoginDocument.cs @@ -0,0 +1,325 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSevenLoginDocument : XDocComponent + { + public override uint ID + { + get + { + return XSevenLoginDocument.uuID; + } + } + + public SevenLoginDlg SevenLoginView { get; set; } + + public bool bHasAvailableSevenIcon + { + get + { + return this.m_bHasAvailableSevenIcon; + } + set + { + bool flag = this.m_bHasAvailableSevenIcon != value; + if (flag) + { + this.m_bHasAvailableSevenIcon = value; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.OnSingleSysChange(XSysDefine.XSys_SevenActivity, true); + } + } + } + } + + public bool bHasAvailableRedPoint + { + get + { + return this.m_bHasAvailableSevenRedPoint; + } + } + + public List LoginRewards + { + get + { + return this.m_LoginRewards ?? new List(); + } + } + + public int LastDay + { + get + { + return this.m_NextImprotDay - this.m_CurrentLoginDay; + } + } + + public int NextImportDay + { + get + { + return this.m_NextImprotDay; + } + } + + public int NextImportItem + { + get + { + return this.m_NextImportItemID; + } + } + + public bool NextGetState + { + get + { + return this.m_NextGetState; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XSevenLoginDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static SevenImportTable m_sevenImportTable = new SevenImportTable(); + + private List m_LoginRewards; + + private bool m_bHasAvailableSevenIcon = false; + + private bool m_bHasAvailableSevenRedPoint = false; + + private int m_CurrentLoginDay = 1; + + private double m_CurrentTime = 0.0; + + private int m_NextImprotDay = 0; + + private int m_NextImportItemID = 0; + + private bool m_NextGetState = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XSevenLoginDocument.AsyncLoader.AddTask("Table/SevenImport", XSevenLoginDocument.m_sevenImportTable, false); + XSevenLoginDocument.AsyncLoader.Execute(callback); + } + + public uint GetRedayFatigue(int day) + { + uint num = 0u; + bool flag = this.m_LoginRewards != null; + if (flag) + { + int i = 0; + int count = this.LoginRewards.Count; + while (i < count) + { + bool flag2 = this.LoginRewards[i].day == day; + if (flag2) + { + int j = 0; + int count2 = this.LoginRewards[i].items.Count; + while (j < count2) + { + bool flag3 = (ulong)this.LoginRewards[i].items[j].itemID == (ulong)((long)XFastEnumIntEqualityComparer.ToInt(ItemEnum.FATIGUE)); + if (flag3) + { + num += this.LoginRewards[i].items[j].itemCount; + } + j++; + } + } + i++; + } + } + return num; + } + + public override void Update(float fDeltaT) + { + bool flag = !this.bHasAvailableSevenIcon; + if (!flag) + { + this.m_CurrentTime += (double)fDeltaT; + } + } + + public int GetLastSecond() + { + return (this.m_CurrentLoginDay < this.m_NextImprotDay) ? ((this.m_NextImprotDay - this.m_CurrentLoginDay) * 86400 - (int)this.m_CurrentTime) : 0; + } + + public void GetLoginReward(int day) + { + RpcC2G_ReqGetLoginReward rpcC2G_ReqGetLoginReward = new RpcC2G_ReqGetLoginReward(); + rpcC2G_ReqGetLoginReward.oArg.day = day; + XSingleton.singleton.Send(rpcC2G_ReqGetLoginReward); + } + + public void ReceiveLoginReward(LoginRewardGetReq oArg, LoginRewardGetRet oRes) + { + bool flag = oRes.ret > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ret, "fece00"); + } + else + { + bool flag2 = this.m_LoginRewards == null; + if (!flag2) + { + bool flag3 = false; + int i = 0; + int count = this.m_LoginRewards.Count; + while (i < count) + { + bool flag4 = this.m_LoginRewards[i].day == this.m_NextImprotDay; + if (flag4) + { + flag3 = (this.m_LoginRewards[i].state == LoginRewardState.LOGINRS_CANNOT); + break; + } + i++; + } + bool flag5 = this.LastDay == 1 && oArg.day == this.m_CurrentLoginDay && flag3; + if (flag5) + { + bool flag6 = DlgBase.singleton.IsVisible(); + if (flag6) + { + DlgBase.singleton.ShowDialogSheredTexture(); + } + } + } + } + } + + public bool TryGetHallMessage(out string message, out string spriteName) + { + message = string.Empty; + spriteName = string.Empty; + bool flag = this.m_NextImprotDay == 0; + bool result; + if (flag) + { + result = false; + } + else + { + SevenImportTable.RowData byID = XSevenLoginDocument.m_sevenImportTable.GetByID(this.m_NextImprotDay); + bool flag2 = byID == null; + if (flag2) + { + result = false; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(this.NextImportItem); + bool flag3 = itemConf != null; + if (flag3) + { + bool nextGetState = this.m_NextGetState; + if (nextGetState) + { + message = XStringDefineProxy.GetString("SEVEN_LOGIN_MAIN_MESSAGE2", new object[] + { + (itemConf == null) ? "??" : itemConf.ItemName[0] + }); + } + else + { + message = XStringDefineProxy.GetString("SEVEN_LOGIN_MAIN_MESSAGE1", new object[] + { + this.LastDay, + (itemConf == null) ? "??" : itemConf.ItemName[0] + }); + } + } + spriteName = byID.SharedIcon; + result = true; + } + } + return result; + } + + public string GetDialogSharedString() + { + SevenImportTable.RowData byID = XSevenLoginDocument.m_sevenImportTable.GetByID(this.m_NextImprotDay); + return (byID == null) ? string.Empty : byID.DialogSharedTexture; + } + + public string GetSharedString() + { + SevenImportTable.RowData byID = XSevenLoginDocument.m_sevenImportTable.GetByID(this.m_NextImprotDay); + return (byID == null) ? string.Empty : byID.SharedTexture; + } + + public void OnSevenLoginReward(LoginRewardRet oRes) + { + this.bHasAvailableSevenIcon = oRes.open; + bool flag = !this.bHasAvailableSevenIcon; + if (!flag) + { + this.m_CurrentLoginDay = (int)oRes.logindayforreward; + this.m_LoginRewards = oRes.rewards; + this.m_CurrentTime = oRes.sectoday; + this.m_bHasAvailableSevenRedPoint = false; + SevenImportTable.RowData[] table = XSevenLoginDocument.m_sevenImportTable.Table; + this.m_NextImprotDay = 0; + this.m_NextImportItemID = 0; + this.m_NextGetState = false; + for (int i = this.m_LoginRewards.Count - 1; i >= 0; i--) + { + bool flag2 = this.m_LoginRewards[i].state == LoginRewardState.LOGINRS_HAVEHOT; + if (flag2) + { + this.m_bHasAvailableSevenRedPoint = true; + } + for (int j = table.Length - 1; j >= 0; j--) + { + SevenImportTable.RowData rowData = table[j]; + bool flag3 = rowData.ID == this.m_LoginRewards[i].day; + if (flag3) + { + bool flag4 = this.m_LoginRewards[i].state == LoginRewardState.LOGINRS_HAVEHOT || this.m_LoginRewards[i].state == LoginRewardState.LOGINRS_CANNOT; + if (flag4) + { + this.m_NextImprotDay = this.m_LoginRewards[i].day; + this.m_NextImportItemID = rowData.ItemID; + this.m_NextGetState = (this.m_LoginRewards[i].state == LoginRewardState.LOGINRS_HAVEHOT); + break; + } + } + } + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_SevenActivity, true); + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.InitSevenLoginWhenShow(); + } + bool flag6 = this.SevenLoginView != null && this.SevenLoginView.IsVisible(); + if (flag6) + { + this.SevenLoginView.Refresh(); + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs args) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSevenLoginDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSevenLoginDocument.cs.meta new file mode 100644 index 00000000..d1d15a66 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSevenLoginDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 928f13e8a944b2f4884ad71c372e4aca +timeCreated: 1611404148 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShadowComponent.cs b/Client/Assets/Scripts/XMainClient/XShadowComponent.cs new file mode 100644 index 00000000..ea68dea0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShadowComponent.cs @@ -0,0 +1,176 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShadowComponent : XComponent + { + public override uint ID + { + get + { + return XShadowComponent.uuID; + } + } + + private XGameObject Shadow + { + get + { + return this._shadow; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("Shadow"); + + private XGameObject _shadow = null; + + private bool _showRealTimeShadow = false; + + private static CommandCallback _initCb = new CommandCallback(XShadowComponent._Init); + + private static void _Init(XGameObject gameObject, object o, int commandID) + { + XShadowComponent xshadowComponent = o as XShadowComponent; + GameObject gameObject2 = gameObject.Get(); + Renderer componentInChildren = gameObject2.GetComponentInChildren(); + componentInChildren.enabled = (!xshadowComponent.Entity.IsDisappear && xshadowComponent.Entity.IsVisible); + componentInChildren.gameObject.layer = xshadowComponent._entity.DefaultLayer; + XRenderComponent.AddShadowObj(xshadowComponent._entity, gameObject2, componentInChildren); + } + + private void LoadShadow() + { + bool flag = this._shadow == null; + if (flag) + { + this._shadow = XGameObject.CreateXGameObject("Prefabs/Shadow", true, true); + this._shadow.SetParent(this._entity.MoveObj); + this._shadow.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, Vector3.one, false); + this._shadow.CallCommand(XShadowComponent._initCb, this, -1, false); + } + } + + private void ProcessRealtimeShadow() + { + this._showRealTimeShadow = false; + bool flag = this._entity != null; + if (flag) + { + this._showRealTimeShadow = this._entity.ProcessRealTimeShadow(); + } + } + + private void ProcessFakeShadow() + { + bool flag = XEntity.ValideEntity(this._entity.Transformee); + bool flag2; + if (flag) + { + flag2 = this._entity.Transformee.CastFakeShadow(); + } + else + { + flag2 = this._entity.CastFakeShadow(); + } + bool enable = !this._showRealTimeShadow && flag2; + bool flag3 = !this._showRealTimeShadow && flag2; + if (flag3) + { + this.LoadShadow(); + } + bool flag4 = this._shadow != null; + if (flag4) + { + this._shadow.SetActive(enable, ""); + } + } + + public void ProcessShadow() + { + this.ProcessRealtimeShadow(); + this.ProcessFakeShadow(); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_OnMounted, new XComponent.XEventHandler(this.OnMountEvent)); + base.RegisterEvent(XEventDefine.XEvent_OnUnMounted, new XComponent.XEventHandler(this.OnMountEvent)); + } + + public override void Attached() + { + base.Attached(); + this.ProcessShadow(); + bool showRealTimeShadow = this._showRealTimeShadow; + if (!showRealTimeShadow) + { + bool flag = this._shadow != null; + if (flag) + { + Vector3 localScale = Vector3.one * this._entity.Radius * 2.5f; + this._shadow.LocalScale = localScale; + } + } + } + + public override void OnDetachFromHost() + { + bool flag = this._shadow != null; + if (flag) + { + XRenderComponent.RemoveObj(this._entity, this._shadow.Get()); + XGameObject.DestroyXGameObject(this._shadow); + this._shadow = null; + } + base.OnDetachFromHost(); + } + + protected bool OnMountEvent(XEventArgs e) + { + bool showRealTimeShadow = this._showRealTimeShadow; + bool result; + if (showRealTimeShadow) + { + result = true; + } + else + { + bool flag = this._shadow != null; + if (flag) + { + this._shadow.SetParent(this._entity.MoveObj); + this._shadow.SetLocalPRS(Vector3.zero, true, Quaternion.identity, true, Vector3.one, e is XOnUnMountedEventArgs); + } + result = true; + } + return result; + } + + public override void PostUpdate(float fDeltaT) + { + bool showRealTimeShadow = this._showRealTimeShadow; + if (!showRealTimeShadow) + { + bool flag = this._shadow != null; + if (flag) + { + Vector3 zero = Vector3.zero; + Vector3 position = this._entity.MoveObj.Position; + zero.y = (this._entity.StandOn ? 0f : (XSingleton.singleton.TerrainY(position) - position.y)) / this._entity.Scale + 0.025f; + this._shadow.SetLocalPRS(zero, true, XSingleton.singleton.RotateToGround(position, Vector3.forward), true, Vector3.one, false); + } + } + } + + public void SetActive(bool active) + { + bool flag = this._shadow != null; + if (flag) + { + this._shadow.SetActive(active, ""); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShadowComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XShadowComponent.cs.meta new file mode 100644 index 00000000..edfca062 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShadowComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f43b2df834a88c74eba9d6a497b534f7 +timeCreated: 1611404853 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShopPurchaseView.cs b/Client/Assets/Scripts/XMainClient/XShopPurchaseView.cs new file mode 100644 index 00000000..92ad4dcd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShopPurchaseView.cs @@ -0,0 +1,322 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShopPurchaseView : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Common/PurchaseFrame"; + } + } + + public IXUISprite mItemIcon; + + public IXUILabel mItemName; + + public IXUILabel mItemOwnNum; + + public IXUILabel mItemCanBuyNum; + + public IXUIButton mMinusTen; + + public IXUIButton mMinusOne; + + public IXUIButton mAddOne; + + public IXUIButton mAddTen; + + public IXUIButton mClose; + + public IXUIButton mBlock; + + public IXUILabel mCurBuyNum; + + public IXUISprite mMoneyIcon; + + public IXUILabel mMoneyNum; + + public IXUIButton mDoBuy; + + private XNormalShopDocument _doc = null; + + private int mItemId = 0; + + private int mMoneyType = 0; + + private int mWantBuyNum = 0; + + private int mMaxCanBuyNum = 0; + + private int mMaxConstrainNum = 0; + + private int mPrice = 0; + + private XNormalShopGoods mBuyGoods; + + private static readonly int MAX_BUYNUM_ONE_TIME = 9999; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + this.mItemIcon = (base.PanelObject.transform.Find("Item/Icon").GetComponent("XUISprite") as IXUISprite); + this.mItemName = (base.PanelObject.transform.Find("Item/Name").GetComponent("XUILabel") as IXUILabel); + this.mItemOwnNum = (base.PanelObject.transform.Find("OP/own").GetComponent("XUILabel") as IXUILabel); + this.mItemCanBuyNum = (base.PanelObject.transform.Find("OP/canbuy").GetComponent("XUILabel") as IXUILabel); + this.mMinusTen = (base.PanelObject.transform.Find("OP/minus10").GetComponent("XUIButton") as IXUIButton); + this.mMinusTen.ID = 10UL; + this.mMinusOne = (base.PanelObject.transform.Find("OP/minus1").GetComponent("XUIButton") as IXUIButton); + this.mMinusOne.ID = 1UL; + this.mAddOne = (base.PanelObject.transform.Find("OP/add1").GetComponent("XUIButton") as IXUIButton); + this.mAddOne.ID = 1UL; + this.mAddTen = (base.PanelObject.transform.Find("OP/add10").GetComponent("XUIButton") as IXUIButton); + this.mAddTen.ID = 10UL; + this.mClose = (base.PanelObject.transform.Find("OP/close").GetComponent("XUIButton") as IXUIButton); + this.mBlock = (base.PanelObject.transform.Find("block").GetComponent("XUIButton") as IXUIButton); + this.mCurBuyNum = (base.PanelObject.transform.Find("buynum").GetComponent("XUILabel") as IXUILabel); + this.mMoneyIcon = (base.PanelObject.transform.Find("moneysign").GetComponent("XUISprite") as IXUISprite); + this.mMoneyNum = (base.PanelObject.transform.Find("moneynum").GetComponent("XUILabel") as IXUILabel); + this.mDoBuy = (base.PanelObject.transform.Find("OP/OK").GetComponent("XUIButton") as IXUIButton); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.mMinusTen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMinusItem)); + this.mMinusOne.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMinusItem)); + this.mAddTen.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddItem)); + this.mAddOne.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnAddItem)); + this.mDoBuy.RegisterClickEventHandler(new ButtonClickEventHandler(this.DoPurchase)); + this.mClose.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosePurchaseView)); + this.mBlock.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClosePurchaseView)); + } + + protected override void OnShow() + { + base.OnShow(); + this._doc.PurchaseView = this; + } + + public override void OnUnload() + { + base.OnUnload(); + } + + public int GetMaxConstrainNum(int itemid, ulong moneynum, int price) + { + int num = (int)moneynum / price; + int num2 = XShopPurchaseView.MAX_BUYNUM_ONE_TIME; + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)this.mBuyGoods.item.uid); + bool flag = dataById.DailyCountCondition > 0 || dataById.CountCondition > 0u || dataById.WeekCountCondition > 0; + if (flag) + { + bool flag2 = dataById.CountCondition > 0u; + if (flag2) + { + num2 = (int)(dataById.CountCondition - (uint)this.mBuyGoods.soldNum); + } + else + { + bool flag3 = dataById.DailyCountCondition > 0; + if (flag3) + { + num2 = (int)dataById.DailyCountCondition - this.mBuyGoods.soldNum; + } + else + { + num2 = (int)((uint)dataById.WeekCountCondition - this.mBuyGoods.weeklyBuyCount); + } + } + num2 = ((num2 >= 0) ? num2 : 0); + } + return num2; + } + + public int CalMaxCanBuyNum(int itemid, ulong moneynum, int price) + { + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)this.mBuyGoods.item.uid); + bool flag = dataById.Benefit[0] == 2u; + if (flag) + { + price = price * (int)dataById.Benefit[1] / 100; + } + int num = (int)moneynum / price; + this.mMaxConstrainNum = this.GetMaxConstrainNum(itemid, moneynum, price); + return (num < this.mMaxConstrainNum) ? num : this.mMaxConstrainNum; + } + + public void OnBuyItem(XNormalShopGoods goods) + { + base.SetVisible(true); + this.mBuyGoods = goods; + this.OnBuyItem(goods.item.itemID, goods.priceType, goods.priceValue); + } + + public int GetNeedMoney() + { + ShopTable.RowData dataById = XNormalShopDocument.GetDataById((uint)this.mBuyGoods.item.uid); + bool flag = dataById.Benefit[0] == 2u; + int result; + if (flag) + { + result = this.mWantBuyNum * this.mPrice * (int)dataById.Benefit[1] / 100; + } + else + { + result = this.mWantBuyNum * this.mPrice; + } + return result; + } + + public void OnBuyItem(int itemid, int moneyid, int price) + { + this.mItemId = itemid; + this.mWantBuyNum = 1; + this.mMoneyType = moneyid; + XSingleton.singleton.DrawItem(base.PanelObject.transform.Find("Item").gameObject, this.mBuyGoods.item); + ulong itemCount = XSingleton.singleton.Doc.XBagDoc.GetItemCount(moneyid); + ulong num = XSingleton.singleton.Doc.XBagDoc.GetItemCount(itemid); + bool flag = num == 0UL; + if (flag) + { + XFashionDocument specificDocument = XDocuments.GetSpecificDocument(XFashionDocument.uuID); + num = (ulong)((long)specificDocument.GetFashionCount(itemid)); + } + this.mMaxCanBuyNum = this.CalMaxCanBuyNum(itemid, itemCount, price); + this.mPrice = price; + int maxConstrainNum = this.GetMaxConstrainNum(itemid, itemCount, price); + this.mItemOwnNum.SetText(num.ToString()); + this.mCurBuyNum.SetText(this.mWantBuyNum.ToString()); + bool flag2 = maxConstrainNum == XShopPurchaseView.MAX_BUYNUM_ONE_TIME; + if (flag2) + { + this.mItemCanBuyNum.SetVisible(false); + } + else + { + this.mItemCanBuyNum.SetVisible(true); + this.mItemCanBuyNum.SetText(maxConstrainNum.ToString()); + } + bool flag3 = !this._doc.IsMoneyOrItemEnough(this.mMoneyType, this.GetNeedMoney()); + if (flag3) + { + this.mMoneyNum.SetText("[fe0000]" + this.GetNeedMoney().ToString() + "[-]"); + } + else + { + this.mMoneyNum.SetText(this.GetNeedMoney().ToString()); + } + string itemSmallIcon = XBagDocument.GetItemSmallIcon(moneyid, 0u); + this.mMoneyIcon.SetSprite(itemSmallIcon); + } + + public bool OnAddItem(IXUIButton sp) + { + int num = this.mWantBuyNum; + int num2 = (int)sp.ID; + bool flag = this.mWantBuyNum + num2 >= this.mMaxCanBuyNum; + if (flag) + { + this.mWantBuyNum = ((this.mMaxCanBuyNum == 0) ? 1 : this.mMaxCanBuyNum); + } + else + { + this.mWantBuyNum += num2; + } + bool flag2 = this.mWantBuyNum >= XShopPurchaseView.MAX_BUYNUM_ONE_TIME; + if (flag2) + { + this.mWantBuyNum = ((XShopPurchaseView.MAX_BUYNUM_ONE_TIME == 0) ? 1 : XShopPurchaseView.MAX_BUYNUM_ONE_TIME); + } + this.mCurBuyNum.SetText(this.mWantBuyNum.ToString()); + bool flag3 = !this._doc.IsMoneyOrItemEnough(this.mMoneyType, this.GetNeedMoney()); + if (flag3) + { + this.mMoneyNum.SetText("[fe0000]" + this.GetNeedMoney().ToString() + "[-]"); + } + else + { + this.mMoneyNum.SetText(this.GetNeedMoney().ToString()); + } + bool flag4 = num == this.mWantBuyNum; + if (flag4) + { + bool flag5 = this.mWantBuyNum == this.mMaxConstrainNum; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_BUY_LIMIT"), "fece00"); + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_REINFORCE_LACKMONEY"), "fece00"); + } + } + return true; + } + + public bool OnMinusItem(IXUIButton sp) + { + int num = (int)sp.ID; + bool flag = this.mWantBuyNum - num <= 1; + if (flag) + { + this.mWantBuyNum = 1; + } + else + { + this.mWantBuyNum -= num; + } + this.mCurBuyNum.SetText(this.mWantBuyNum.ToString()); + bool flag2 = !this._doc.IsMoneyOrItemEnough(this.mMoneyType, this.GetNeedMoney()); + if (flag2) + { + this.mMoneyNum.SetText("[fe0000]" + this.GetNeedMoney().ToString() + "[-]"); + } + else + { + this.mMoneyNum.SetText(this.GetNeedMoney().ToString()); + } + return true; + } + + public bool DoPurchase(IXUIButton sp) + { + bool flag = this._doc.IsExchangeMoney(this.mMoneyType) && !this._doc.IsMoneyOrItemEnough(this.mMoneyType, this.GetNeedMoney()); + bool result; + if (flag) + { + this._doc.ProcessItemOrMoneyNotEnough(this.mMoneyType); + base.SetVisible(false); + result = false; + } + else + { + bool flag2 = this.mWantBuyNum == 0; + if (flag2) + { + base.SetVisible(false); + result = false; + } + else + { + this._doc.DoBuyItem(this.mBuyGoods, (uint)this.mWantBuyNum); + base.SetVisible(false); + result = true; + } + } + return result; + } + + public bool OnClosePurchaseView(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShopPurchaseView.cs.meta b/Client/Assets/Scripts/XMainClient/XShopPurchaseView.cs.meta new file mode 100644 index 00000000..1b2eb757 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShopPurchaseView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3c6cfa8fd4fde9149ace30f1d58b3e0b +timeCreated: 1611403601 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShopTabCategoryHandler.cs b/Client/Assets/Scripts/XMainClient/XShopTabCategoryHandler.cs new file mode 100644 index 00000000..df1c0cad --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShopTabCategoryHandler.cs @@ -0,0 +1,155 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShopTabCategoryHandler : XNormalShopView + { + private XUIPool _tabItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private List _tabs = new List(); + + private List _tabCheckList = new List(); + + private int _curTabId = -1; + + protected override void Init() + { + base.Init(); + this.InitProperties(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnShow() + { + this.UpdateTabs(); + this.SetDefaultTabCheck(); + base.OnShow(); + } + + private void SetDefaultTabCheck() + { + int shopViewDefaultTab = XNormalShopDocument.ShopDoc.GetShopViewDefaultTab(); + bool flag = this._tabCheckList.Count > 0; + if (flag) + { + bool flag2 = shopViewDefaultTab > 0; + if (flag2) + { + for (int i = 0; i < this._tabCheckList.Count; i++) + { + bool flag3 = (int)this._tabCheckList[i].ID == shopViewDefaultTab; + if (flag3) + { + bool bChecked = this._tabCheckList[i].bChecked; + if (bChecked) + { + this._curTabId = (int)this._tabCheckList[0].ID; + } + else + { + this._tabCheckList[i].bChecked = true; + } + break; + } + } + } + else + { + bool bChecked2 = this._tabCheckList[0].bChecked; + if (bChecked2) + { + this._curTabId = (int)this._tabCheckList[0].ID; + } + else + { + this._tabCheckList[0].bChecked = true; + } + } + } + } + + protected override void OnHide() + { + base.OnHide(); + } + + public override void OnUnload() + { + this._tabCheckList.Clear(); + this._tabs.Clear(); + this._tabItemPool.ReturnAll(false); + base.OnUnload(); + } + + private void UpdateTabs() + { + XNormalShopDocument specificDocument = XDocuments.GetSpecificDocument(XNormalShopDocument.uuID); + this._tabs = specificDocument.GetTabListOfShop(this.m_SysShop); + this._tabs.Sort(); + this._tabCheckList.Clear(); + this._tabItemPool.ReturnAll(false); + for (int i = 0; i < this._tabs.Count; i++) + { + GameObject item = this._tabItemPool.FetchGameObject(false); + this.InitTabItem(item, i); + } + } + + private void InitTabItem(GameObject item, int tabIndex) + { + List stringList = XSingleton.singleton.GetStringList("ShopTabTypeList"); + IXUICheckBox ixuicheckBox = item.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ForceSetFlag(false); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnItemTypeChecked)); + ixuicheckBox.ID = (ulong)((long)this._tabs[tabIndex]); + this._tabCheckList.Add(ixuicheckBox); + item.transform.localPosition = new Vector3(this._tabItemPool.TplPos.x + (float)(this._tabItemPool.TplWidth * tabIndex), this._tabItemPool.TplPos.y, this._tabItemPool.TplPos.z); + string text = (this._tabs[tabIndex] <= stringList.Count) ? stringList[this._tabs[tabIndex] - 1] : ""; + IXUILabel ixuilabel = item.transform.Find("Bg/TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + IXUILabel ixuilabel2 = item.transform.Find("Bg/SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel2.SetText(text); + } + + private bool OnItemTypeChecked(IXUICheckBox iXUICheckBox) + { + bool flag = !iXUICheckBox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + this._curTabId = (int)iXUICheckBox.ID; + this.RefreshTabItems(); + result = true; + } + return result; + } + + private void RefreshTabItems() + { + base.RefreshGoodsList(); + } + + private void InitProperties() + { + this._tabItemPool.SetupPool(base.PanelObject, base.PanelObject.transform.Find("TabItem").gameObject, 4u, false); + } + + protected override bool CheckGoodsShowing(ShopTable.RowData shopGoods) + { + bool flag = base.CheckGoodsShowing(shopGoods); + return flag && (int)shopGoods.ShopItemType == this._curTabId; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShopTabCategoryHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XShopTabCategoryHandler.cs.meta new file mode 100644 index 00000000..9eb12903 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShopTabCategoryHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: aa57a4c1db1afe74ea7b75a7fc7d584b +timeCreated: 1611404302 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipBehaviour.cs b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipBehaviour.cs new file mode 100644 index 00000000..5b6de3e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipBehaviour.cs @@ -0,0 +1,33 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XShowGetAchivementTipBehaviour : DlgBehaviourBase + { + public GameObject m_Bg; + + public IXUILabel m_AchivementName; + + public IXUILabel m_AchivementText; + + public GameObject m_Bg2; + + public IXUILabel m_AchivementName2; + + public IXUILabel m_AchivementText2; + + private void Awake() + { + this.m_AchivementName = (base.transform.Find("Bg/Label1").GetComponent("XUILabel") as IXUILabel); + this.m_AchivementText = (base.transform.Find("Bg/Label2").GetComponent("XUILabel") as IXUILabel); + this.m_Bg = base.transform.Find("Bg").gameObject; + this.m_AchivementName2 = (base.transform.Find("Bg1/Label1").GetComponent("XUILabel") as IXUILabel); + this.m_AchivementText2 = (base.transform.Find("Bg1/Label2").GetComponent("XUILabel") as IXUILabel); + this.m_Bg2 = base.transform.Find("Bg1").gameObject; + this.m_Bg2.SetActive(false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipBehaviour.cs.meta new file mode 100644 index 00000000..3e503a20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f6ca65ef739437e449fea624abf7278a +timeCreated: 1611404884 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipDocument.cs b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipDocument.cs new file mode 100644 index 00000000..3d14f480 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipDocument.cs @@ -0,0 +1,101 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShowGetAchivementTipDocument : XDocComponent + { + public override uint ID + { + get + { + return XShowGetAchivementTipDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ShowGetAchivementTipDocument"); + + private Queue AchivementQueue = new Queue(); + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.AchivementQueue.Clear(); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + this.CheckScene(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && DlgBase.singleton.queue.Count > 0; + if (flag) + { + DlgBase.singleton.ShowUI(); + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + public void AddAchivement(uint AchivementID, uint state) + { + bool flag = state != 1u; + if (!flag) + { + AchivementTable.RowData achivementData = XDocuments.GetSpecificDocument(XAchievementDocument.uuID).GetAchivementData(AchivementID); + bool flag2 = achivementData == null; + if (!flag2) + { + bool flag3 = achivementData.ShowAchivementTip == 0; + if (!flag3) + { + this.AchivementQueue.Enqueue(achivementData); + this.CheckScene(); + } + } + } + } + + public void ShowAchivementTip(object o = null) + { + bool flag = this.AchivementQueue.Count > 0 && !DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetAlpha(1f); + } + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.ShowTip(this.AchivementQueue.Dequeue()); + } + } + + private void CheckScene() + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && !DlgBase.singleton.IsVisible(); + if (flag) + { + this.ShowAchivementTip(null); + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipDocument.cs.meta new file mode 100644 index 00000000..90545553 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e5056529d10b52347847faa430eec415 +timeCreated: 1611404741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipView.cs b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipView.cs new file mode 100644 index 00000000..b4ef2fec --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipView.cs @@ -0,0 +1,224 @@ +using System; +using System.Collections.Generic; +using UILib; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShowGetAchivementTipView : DlgBase + { + public XShowGetAchivementTipView.State state + { + get + { + return this._state; + } + set + { + this._state = value; + this.m_uiBehaviour.m_Bg.SetActive(value == XShowGetAchivementTipView.State.Silver); + this.m_uiBehaviour.m_Bg2.SetActive(value == XShowGetAchivementTipView.State.Gold); + } + } + + public override string fileName + { + get + { + return "GameSystem/ShowAchivementTipDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + public Queue queue = new Queue(); + + private XShowGetAchivementTipView.State _state = XShowGetAchivementTipView.State.Silver; + + private XShowGetAchivementTipDocument _doc = null; + + public enum State + { + Silver, + Gold + } + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XShowGetAchivementTipDocument.uuID); + } + + protected override void OnShow() + { + base.uiBehaviour.m_Bg.SetActive(false); + } + + protected override void OnUnload() + { + } + + public void ShowUI() + { + bool flag = this.queue.Count <= 0; + if (!flag) + { + this.SetVisible(true, true); + TipNode tipNode = this.queue.Peek(); + bool flag2 = tipNode.type == 0; + if (flag2) + { + AchievementV2Table.RowData rowData = tipNode.data as AchievementV2Table.RowData; + bool flag3 = rowData.GainShowIcon != 0; + if (flag3) + { + this.state = XShowGetAchivementTipView.State.Silver; + base.uiBehaviour.m_AchivementName.SetText(rowData.Achievement); + base.uiBehaviour.m_AchivementText.SetText(rowData.Explanation); + } + else + { + this.state = XShowGetAchivementTipView.State.Gold; + base.uiBehaviour.m_AchivementName2.SetText(rowData.Achievement); + base.uiBehaviour.m_AchivementText2.SetText(rowData.Explanation); + } + } + else + { + bool flag4 = tipNode.type == 1; + if (flag4) + { + DesignationTable.RowData rowData2 = tipNode.data as DesignationTable.RowData; + bool flag5 = rowData2.GainShowIcon != 0; + if (flag5) + { + this.state = XShowGetAchivementTipView.State.Silver; + base.uiBehaviour.m_AchivementName.SetText(rowData2.Designation); + base.uiBehaviour.m_AchivementText.SetText(rowData2.Explanation); + } + else + { + this.state = XShowGetAchivementTipView.State.Gold; + base.uiBehaviour.m_AchivementName2.SetText(rowData2.Designation); + base.uiBehaviour.m_AchivementText2.SetText(rowData2.Explanation); + } + } + } + bool flag6 = this.state == XShowGetAchivementTipView.State.Silver; + if (flag6) + { + IXUITweenTool ixuitweenTool = base.uiBehaviour.m_Bg.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetTargetGameObject(base.uiBehaviour.m_Bg); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + ixuitweenTool.PlayTween(true, -1f); + } + else + { + IXUITweenTool ixuitweenTool2 = base.uiBehaviour.m_Bg2.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool2.SetTargetGameObject(base.uiBehaviour.m_Bg2); + ixuitweenTool2.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + ixuitweenTool2.PlayTween(true, -1f); + } + } + } + + public void Show(AchievementV2Table.RowData data) + { + bool flag = this.queue.Count > 0; + if (flag) + { + TipNode tipNode = new TipNode(); + tipNode.data = data; + tipNode.type = 0; + this.queue.Enqueue(tipNode); + } + else + { + TipNode tipNode2 = new TipNode(); + tipNode2.data = data; + tipNode2.type = 0; + this.queue.Enqueue(tipNode2); + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag2) + { + this.ShowUI(); + } + } + } + + public void ShowDesignation(DesignationTable.RowData data) + { + bool flag = this.queue.Count > 0; + if (flag) + { + TipNode tipNode = new TipNode(); + tipNode.data = data; + tipNode.type = 1; + this.queue.Enqueue(tipNode); + } + else + { + TipNode tipNode2 = new TipNode(); + tipNode2.data = data; + tipNode2.type = 1; + this.queue.Enqueue(tipNode2); + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag2) + { + this.ShowUI(); + } + } + } + + public void ShowTip(AchivementTable.RowData date) + { + this.state = XShowGetAchivementTipView.State.Silver; + bool flag = date.AchievementIcon != null; + if (flag) + { + base.uiBehaviour.m_AchivementName.SetText(date.AchievementName); + } + base.uiBehaviour.m_AchivementName.SetText(date.AchievementName); + base.uiBehaviour.m_AchivementText.SetText(date.AchievementDescription); + IXUITweenTool ixuitweenTool = base.uiBehaviour.m_Bg.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetTargetGameObject(base.uiBehaviour.m_Bg); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + ixuitweenTool.PlayTween(true, -1f); + } + + public void OnPlayTweenFinish(IXUITweenTool iPlayTween) + { + this.queue.Dequeue(); + bool flag = this.queue.Count > 0; + if (flag) + { + this.ShowUI(); + } + else + { + base.uiBehaviour.m_Bg.SetActive(false); + this.SetVisible(false, true); + } + } + + protected override void OnHide() + { + this.queue.Clear(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipView.cs.meta b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipView.cs.meta new file mode 100644 index 00000000..05ca3d79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetAchivementTipView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b953f7315ec75d946a70284e7cd64ebf +timeCreated: 1611404410 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShowGetItemBehaviour.cs b/Client/Assets/Scripts/XMainClient/XShowGetItemBehaviour.cs new file mode 100644 index 00000000..8721981f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetItemBehaviour.cs @@ -0,0 +1,21 @@ +using System; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShowGetItemBehaviour : DlgBehaviourBase + { + public XUIPool m_ShowItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_Bg = null; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/TipTpl"); + this.m_ShowItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 5u, false); + this.m_Bg = base.transform.Find("Bg"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShowGetItemBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XShowGetItemBehaviour.cs.meta new file mode 100644 index 00000000..28582291 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetItemBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9e6a94e92c119641a3480762b72c8a2 +timeCreated: 1611404646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShowGetItemDocument.cs b/Client/Assets/Scripts/XMainClient/XShowGetItemDocument.cs new file mode 100644 index 00000000..2cb315a5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetItemDocument.cs @@ -0,0 +1,674 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShowGetItemDocument : XDocComponent + { + public override uint ID + { + get + { + return XShowGetItemDocument.uuID; + } + } + + public bool bBlock + { + get + { + return this.m_bBlock; + } + set + { + this.m_bBlock = value; + bool flag = !this.m_bBlock; + if (flag) + { + this.CheckScene(); + } + else + { + XSingleton.singleton.KillTimer(this.ShowItemToken); + this.ShowItemToken = 0u; + } + } + } + + public bool bIgonre + { + get + { + return this.m_bIgnore; + } + set + { + this.m_bIgnore = value; + } + } + + public bool IsForbidGetItemUI + { + get + { + bool flag = XSuperRiskDocument.Doc.GameViewHandler != null; + return flag && XSuperRiskDocument.Doc.GameViewHandler.IsVisible(); + } + } + + public bool IsForbidByLua + { + get + { + return this._ForbidByLua; + } + set + { + XSingleton.singleton.AddErrorLog("set fordie lua " + value.ToString(), null, null, null, null, null); + this._ForbidByLua = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ShowGetItemDocument"); + + public Queue ItemQueue = new Queue(); + + public static Queue> ItemUIQueue = new Queue>(); + + public List ItemFlashList = new List(); + + private Queue StringQueue = new Queue(); + + private uint StringQueueID; + + private bool QueueIsFull = false; + + private int ExceedCount = 0; + + private uint ShowItemToken; + + private bool _ForbidByLua = false; + + private bool m_bBlock; + + private bool m_bIgnore; + + private bool m_bDirty = false; + + private List m_ItemList = null; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.ItemQueue.Clear(); + this.StringQueue.Clear(); + this.StringQueueID = 0u; + this.ItemFlashList.Clear(); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnAddVirtualItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemNumChanged, new XComponent.XEventHandler(this.OnNumChange)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnChangeFinished)); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + this.m_bBlock = false; + this.m_bIgnore = false; + this.CheckScene(); + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + XSingleton.singleton.KillTimer(this.ShowItemToken); + this.ShowItemToken = 0u; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + private bool CampareItems(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + int i = 0; + while (i < xaddItemEventArgs.items.Count) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(xaddItemEventArgs.items[i].itemID); + bool flag = itemConf != null; + if (flag) + { + bool flag2 = !XBagDocument.ItemCanShowTips((uint)xaddItemEventArgs.items[i].itemID); + if (!flag2) + { + bool flag3 = xaddItemEventArgs.items[i].itemCount >= itemConf.OverCnt; + if (flag3) + { + return true; + } + } + } + IL_77: + i++; + continue; + goto IL_77; + } + return false; + } + + private bool DealwithFlashItems(XAddItemEventArgs arg) + { + bool flag = false; + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + for (int i = 0; i < arg.items.Count; i++) + { + bool flag2 = specificDocument.IsGiftBagItem(arg.items[i].itemID); + if (flag2) + { + flag = true; + break; + } + } + bool flag3 = flag; + if (flag3) + { + int j = 0; + while (j < arg.items.Count) + { + bool flag4 = XBagDocument.GetItemConf(arg.items[j].itemID) != null; + if (flag4) + { + bool flag5 = !XBagDocument.ItemCanShowTips((uint)arg.items[j].itemID); + if (!flag5) + { + ItemBrief itemBrief = new ItemBrief(); + itemBrief.itemID = (uint)arg.items[j].itemID; + itemBrief.itemCount = (uint)arg.items[j].itemCount; + this.ItemFlashList.Add(itemBrief); + } + } + IL_EE: + j++; + continue; + goto IL_EE; + } + } + return flag; + } + + protected bool OnAddItem(XEventArgs args) + { + bool bIgnore = this.m_bIgnore; + bool result; + if (bIgnore) + { + result = false; + } + else + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + bool flag = !xaddItemEventArgs.bNew; + if (flag) + { + result = true; + } + else + { + bool flag2 = this.DealwithFlashItems(xaddItemEventArgs); + if (flag2) + { + this.m_bDirty = true; + result = true; + } + else + { + bool flag3 = !this.CampareItems(args); + if (flag3) + { + int i = 0; + while (i < xaddItemEventArgs.items.Count) + { + bool flag4 = XBagDocument.GetItemConf(xaddItemEventArgs.items[i].itemID) != null; + if (flag4) + { + bool flag5 = !XBagDocument.ItemCanShowTips((uint)xaddItemEventArgs.items[i].itemID); + if (!flag5) + { + bool flag6 = !this.QueueIsFull; + if (flag6) + { + XItem item = new XNormalItem + { + itemID = xaddItemEventArgs.items[i].itemID, + itemCount = xaddItemEventArgs.items[i].itemCount + }; + this.ItemQueue.Enqueue(item); + bool flag7 = this.ItemQueue.Count >= 10; + if (flag7) + { + this.QueueIsFull = true; + } + } + else + { + this.ExceedCount++; + } + } + } + IL_138: + i++; + continue; + goto IL_138; + } + } + else + { + bool flag8 = this.m_ItemList == null; + if (flag8) + { + this.m_ItemList = new List(); + } + for (int j = 0; j < xaddItemEventArgs.items.Count; j++) + { + bool flag9 = !XBagDocument.ItemCanShowTips((uint)xaddItemEventArgs.items[j].itemID); + if (!flag9) + { + XItem item2 = new XNormalItem + { + itemID = xaddItemEventArgs.items[j].itemID, + itemCount = xaddItemEventArgs.items[j].itemCount + }; + this.m_ItemList.Add(item2); + } + } + } + this.m_bDirty = true; + result = true; + } + } + } + return result; + } + + public void ClearItemQueue() + { + this.ItemQueue.Clear(); + XShowGetItemDocument.ItemUIQueue.Clear(); + this.StringQueue.Clear(); + this.QueueIsFull = false; + DlgBase.singleton.isPlaying = false; + } + + protected bool OnAddVirtualItem(XEventArgs args) + { + bool bIgnore = this.m_bIgnore; + bool result; + if (bIgnore) + { + result = false; + } + else + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = !XBagDocument.ItemCanShowTips((uint)xvirtualItemChangedEventArgs.itemID); + if (flag) + { + result = true; + } + else + { + XItem xitem = new XNormalItem(); + xitem.itemID = xvirtualItemChangedEventArgs.itemID; + bool flag2 = xvirtualItemChangedEventArgs.itemID != 4; + if (flag2) + { + xitem.itemCount = (int)(xvirtualItemChangedEventArgs.newValue - xvirtualItemChangedEventArgs.oldValue); + } + else + { + xitem.itemCount = (int)xvirtualItemChangedEventArgs.newValue; + } + bool flag3 = xitem.itemCount <= 0; + if (flag3) + { + result = true; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(xitem.itemID); + bool flag4 = xitem.itemCount < itemConf.OverCnt; + if (flag4) + { + bool flag5 = XBagDocument.GetItemConf(xitem.itemID) != null; + if (flag5) + { + bool flag6 = !this.QueueIsFull; + if (flag6) + { + this.ItemQueue.Enqueue(xitem); + bool flag7 = this.ItemQueue.Count >= 10; + if (flag7) + { + this.QueueIsFull = true; + } + } + else + { + this.ExceedCount++; + } + } + } + else + { + bool flag8 = this.m_ItemList == null; + if (flag8) + { + this.m_ItemList = new List(); + } + this.m_ItemList.Add(xitem); + } + this.m_bDirty = true; + result = true; + } + } + } + return result; + } + + protected bool OnNumChange(XEventArgs args) + { + bool bIgnore = this.m_bIgnore; + bool result; + if (bIgnore) + { + result = false; + } + else + { + XItemNumChangedEventArgs xitemNumChangedEventArgs = args as XItemNumChangedEventArgs; + bool flag = !XBagDocument.ItemCanShowTips((uint)xitemNumChangedEventArgs.item.itemID); + if (flag) + { + result = true; + } + else + { + bool flag2 = xitemNumChangedEventArgs.item.itemCount <= xitemNumChangedEventArgs.oldCount; + if (flag2) + { + result = true; + } + else + { + bool flag3 = !xitemNumChangedEventArgs.bNew; + if (flag3) + { + result = true; + } + else + { + XItem xitem = new XNormalItem(); + xitem.itemID = xitemNumChangedEventArgs.item.itemID; + xitem.itemCount = xitemNumChangedEventArgs.item.itemCount - xitemNumChangedEventArgs.oldCount; + ItemList.RowData itemConf = XBagDocument.GetItemConf(xitem.itemID); + bool flag4 = xitem.itemCount < itemConf.OverCnt; + if (flag4) + { + bool flag5 = XBagDocument.GetItemConf(xitem.itemID) != null; + if (flag5) + { + bool flag6 = !this.QueueIsFull; + if (flag6) + { + this.ItemQueue.Enqueue(xitem); + bool flag7 = this.ItemQueue.Count >= 10; + if (flag7) + { + this.QueueIsFull = true; + } + } + else + { + this.ExceedCount++; + } + } + } + else + { + bool flag8 = this.m_ItemList == null; + if (flag8) + { + this.m_ItemList = new List(); + } + this.m_ItemList.Add(xitem); + } + this.m_bDirty = true; + result = true; + } + } + } + } + return result; + } + + protected bool OnChangeFinished(XEventArgs args) + { + bool bDirty = this.m_bDirty; + if (bDirty) + { + bool flag = this.m_ItemList != null && this.m_ItemList.Count > 0; + if (flag) + { + bool flag2 = true; + for (int i = 0; i < this.m_ItemList.Count; i++) + { + bool flag3 = XBagDocument.GetItemConf(this.m_ItemList[i].itemID) == null; + if (flag3) + { + flag2 = false; + break; + } + } + bool flag4 = flag2; + if (flag4) + { + XShowGetItemDocument.ItemUIQueue.Enqueue(this.m_ItemList); + } + this.m_ItemList = null; + } + this.CheckScene(); + this.m_bDirty = false; + } + return true; + } + + private void CheckScene() + { + bool bBlock = this.m_bBlock; + if (!bBlock) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall && this.ItemQueue.Count > 0 && this.ShowItemToken == 0u; + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + this.ShowItemToken = XSingleton.singleton.SetTimer(0.4f, new XTimerMgr.ElapsedEventHandler(this.CheckQueueItem), null); + } + bool flag2 = this.StringQueue.Count > 0 && this.ShowItemToken == 0u; + if (flag2) + { + DlgBase.singleton.SetVisible(true, true); + this.ShowItemToken = XSingleton.singleton.SetTimer(0.4f, new XTimerMgr.ElapsedEventHandler(this.CheckQueueItem), null); + } + this.CheckUIScene(); + this.CheckFlashItemScene(); + } + } + + private void CheckUIScene(IXUITweenTool tween) + { + this.CheckUIScene(); + } + + private void CheckUIScene() + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + bool flag2 = XShowGetItemDocument.ItemUIQueue.Count > 0 && !DlgBase.singleton.isPlaying; + if (flag2) + { + List list = XShowGetItemDocument.ItemUIQueue.Peek(); + bool flag3 = list != null && list.Count > 0; + if (flag3) + { + DlgBase.singleton.ShowItems(list, new OnTweenFinishEventHandler(this.CheckUIScene)); + } + else + { + XSingleton.singleton.AddErrorLog("list is null", null, null, null, null, null); + } + bool flag4 = XShowGetItemDocument.ItemUIQueue.Count > 0; + if (flag4) + { + XShowGetItemDocument.ItemUIQueue.Dequeue(); + } + } + } + } + + private void CheckFlashItemScene() + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + bool flag2 = this.ItemFlashList.Count > 0 && !DlgBase.singleton.IsVisible(); + if (flag2) + { + bool inTutorial = XSingleton.singleton.InTutorial; + if (inTutorial) + { + List list = new List(); + for (int i = 0; i < this.ItemFlashList.Count; i++) + { + list.Add(new XNormalItem + { + itemID = (int)this.ItemFlashList[i].itemID, + itemCount = (int)this.ItemFlashList[i].itemCount + }); + } + XShowGetItemDocument.ItemUIQueue.Enqueue(list); + this.ItemFlashList.Clear(); + this.CheckUIScene(); + } + else + { + DlgBase.singleton.Show(this.ItemFlashList, new Action(this.CheckFlashItemScene)); + this.ItemFlashList.Clear(); + } + } + } + } + + public void CheckQueueItem(object o = null) + { + bool flag = this.ItemQueue.Count != 0 && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + bool flag2 = !this.m_bBlock; + if (flag2) + { + DlgBase.singleton.SetAlpha(1f); + DlgBase.singleton.ShowItem(this.ItemQueue.Dequeue()); + } + } + else + { + bool flag3 = this.QueueIsFull && XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + this.QueueIsFull = false; + bool flag4 = this.ExceedCount > 0; + if (flag4) + { + bool flag5 = DlgBase.singleton.IsVisible(); + if (flag5) + { + DlgBase.singleton.SetAlpha(1f); + } + DlgBase.singleton.ShowFullTip(this.ExceedCount); + } + this.ExceedCount = 0; + } + else + { + bool flag6 = this.StringQueue.Count != 0; + if (flag6) + { + DlgBase.singleton.SetAlpha(1f); + StringTip stringTip = this.StringQueue.Dequeue(); + DlgBase.singleton.ShowString(stringTip.str, stringTip.id); + } + } + } + XSingleton.singleton.KillTimer(this.ShowItemToken); + this.ShowItemToken = 0u; + bool flag7 = !this.m_bBlock && DlgBase.singleton.IsVisible(); + if (flag7) + { + this.ShowItemToken = XSingleton.singleton.SetTimer(0.4f, new XTimerMgr.ElapsedEventHandler(this.CheckQueueItem), null); + } + } + + public uint AddTip(string str) + { + this.StringQueueID += 1u; + StringTip item = default(StringTip); + item.str = str; + item.id = this.StringQueueID; + this.StringQueue.Enqueue(item); + this.CheckScene(); + return this.StringQueueID; + } + + public void EditTip(string str, uint id) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.EditString(str, id); + } + } + + public void StopShowItem() + { + XSingleton.singleton.KillTimer(this.ShowItemToken); + this.ShowItemToken = 0u; + } + + public void SetForbidByLua(bool bFlag) + { + this._ForbidByLua = bFlag; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShowGetItemDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XShowGetItemDocument.cs.meta new file mode 100644 index 00000000..7cf0f0cd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowGetItemDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f892cfe8c0fdfc04bb3b82f905e70062 +timeCreated: 1611404894 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsBehavior.cs b/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsBehavior.cs new file mode 100644 index 00000000..b12b66b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsBehavior.cs @@ -0,0 +1,34 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XShowSameQualityItemsBehavior : DlgBehaviourBase + { + public IXUIButton OkBtn = null; + + public IXUILabel TaskStr; + + public IXUILabel TipStr; + + public IXUIScrollView ScrollView; + + public IXUIWrapContent WrapContent; + + public IXUILabel progressLabel; + + public IXUIButton CloseBtn; + + private void Awake() + { + this.OkBtn = (base.transform.Find("task/OK").GetComponent("XUIButton") as IXUIButton); + this.TaskStr = (base.transform.Find("task/OK/TaskStr").GetComponent("XUILabel") as IXUILabel); + this.TipStr = (base.transform.Find("task/Tip").GetComponent("XUILabel") as IXUILabel); + this.progressLabel = (base.transform.Find("task/Tnum").GetComponent("XUILabel") as IXUILabel); + this.ScrollView = (base.transform.Find("ItemsFrame").GetComponent("XUIScrollView") as IXUIScrollView); + this.WrapContent = (base.transform.Find("ItemsFrame/WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.CloseBtn = (base.transform.Find("Close").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsBehavior.cs.meta b/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsBehavior.cs.meta new file mode 100644 index 00000000..97def5c3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsBehavior.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3513eacd88f266d48ad6c4d2b86e6251 +timeCreated: 1611403557 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsView.cs b/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsView.cs new file mode 100644 index 00000000..3f4f5bb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsView.cs @@ -0,0 +1,344 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShowSameQualityItemsView : DlgBase + { + public override string fileName + { + get + { + return "Guild/ShowSameQualityDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XShowSameQualityItemsView.SelectItemsHandler _handler = null; + + private List _itemList = new List(); + + private ItemType _itemType; + + private ItemQuality _itemQuality; + + private string _tip; + + private Dictionary> _itemIDAndNumber = new Dictionary>(); + + private int _totalNumber = 0; + + private int _maxNeeded; + + private int _curProgress = 0; + + public delegate void SelectItemsHandler(List itemList); + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + } + + protected override void OnUnload() + { + this._handler = null; + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + base.uiBehaviour.OkBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnOkBtnClicked)); + base.uiBehaviour.WrapContent.RegisterItemInitEventHandler(new WrapItemInitEventHandler(this.OnWrapContentInit)); + base.uiBehaviour.WrapContent.RegisterItemUpdateEventHandler(new WrapItemUpdateEventHandler(this.OnUpdateWrapContentItem)); + base.uiBehaviour.CloseBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseView)); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshUI(); + } + + public override void StackRefresh() + { + base.StackRefresh(); + } + + private void OnWrapContentInit(Transform itemTransform, int index) + { + IXUISprite ixuisprite = itemTransform.Find("Item1/Count/Add").GetComponent("XUISprite") as IXUISprite; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddItem)); + IXUISprite ixuisprite2 = itemTransform.Find("Item1/Count/Sub").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSubItem)); + IXUISprite ixuisprite3 = itemTransform.Find("Item2/Count/Add").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnAddItem)); + IXUISprite ixuisprite4 = itemTransform.Find("Item2/Count/Sub").GetComponent("XUISprite") as IXUISprite; + ixuisprite4.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSubItem)); + } + + private void OnSubItem(IXUISprite uiSprite) + { + int num = (int)uiSprite.ID; + bool flag = num < this._itemList.Count; + if (flag) + { + Transform transform = uiSprite.gameObject.transform.parent.Find("selNum"); + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + int itemID = this._itemList[num].itemID; + int itemCount = this._itemList[num].itemCount; + bool flag2 = this._itemIDAndNumber.ContainsKey(num); + if (flag2) + { + bool flag3 = this._itemIDAndNumber[num].Count > 1; + if (flag3) + { + this._itemIDAndNumber[num].RemoveAt(this._itemIDAndNumber[num].Count - 1); + } + else + { + this._itemIDAndNumber.Remove(num); + } + this._totalNumber--; + this._curProgress--; + ixuilabel.SetText((this._itemIDAndNumber.ContainsKey(num) ? this._itemIDAndNumber[num].Count : 0).ToString()); + base.uiBehaviour.progressLabel.SetText(this._curProgress + "/" + this._maxNeeded); + } + } + } + + private void OnAddItem(IXUISprite uiSprite) + { + int num = (int)uiSprite.ID; + bool flag = num < this._itemList.Count; + if (flag) + { + Transform transform = uiSprite.gameObject.transform.parent.Find("selNum"); + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + int itemCount = this._itemList[num].itemCount; + bool flag2 = this._itemIDAndNumber.ContainsKey(num); + if (flag2) + { + bool flag3 = this._curProgress < this._maxNeeded; + if (flag3) + { + bool flag4 = this._itemIDAndNumber[num].Count < this._itemList[num].itemCount; + if (flag4) + { + this._itemIDAndNumber[num].Add(this._itemList[num].uid); + this._curProgress++; + this._totalNumber++; + ixuilabel.SetText(this._itemIDAndNumber[num].Count.ToString()); + base.uiBehaviour.progressLabel.SetText(this._curProgress + "/" + this._maxNeeded); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ItemNumberUpToMost"), "fece00"); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DoNotNeedMore"), "fece00"); + } + } + else + { + bool flag5 = this._curProgress < this._maxNeeded; + if (flag5) + { + this._itemIDAndNumber.Add(num, new List()); + this._itemIDAndNumber[num].Add(this._itemList[num].uid); + this._curProgress++; + this._totalNumber++; + ixuilabel.SetText(this._itemIDAndNumber[num].Count.ToString()); + base.uiBehaviour.progressLabel.SetText(this._curProgress + "/" + this._maxNeeded); + } + else + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("DoNotNeedMore"), "fece00"); + } + } + } + } + + private void OnUpdateWrapContentItem(Transform itemTransform, int index) + { + bool flag = index * 2 >= this._itemList.Count; + if (!flag) + { + Transform transform = itemTransform.Find("Item1"); + transform.gameObject.SetActive(true); + int num = 2 * index; + XItem info = this._itemList[num]; + this.UpdateSubItem(transform, info, num); + Transform transform2 = itemTransform.Find("Item2"); + int num2 = num + 1; + bool flag2 = num2 >= this._itemList.Count; + if (flag2) + { + transform2.gameObject.SetActive(false); + } + else + { + transform2.gameObject.SetActive(true); + XItem info2 = this._itemList[num2]; + this.UpdateSubItem(transform2, info2, num2); + } + } + } + + private void UpdateSubItem(Transform item, XItem info, int index) + { + IXUISprite ixuisprite = item.Find("Count/Add").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)index); + IXUISprite ixuisprite2 = item.Find("Count/Sub").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.ID = (ulong)((long)index); + int num = this._itemIDAndNumber.ContainsKey(index) ? this._itemIDAndNumber[index].Count : 0; + IXUILabel ixuilabel = item.Find("Count/selNum").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(num.ToString()); + GameObject gameObject = item.Find("Item").gameObject; + XSingleton.singleton.DrawItem(gameObject, info); + IXUISprite ixuisprite3 = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite3.ID = info.uid; + ixuisprite3.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemIcon)); + } + + private void OnClickItemIcon(IXUISprite spr) + { + XItem xitem = null; + for (int i = 0; i < this._itemList.Count; i++) + { + bool flag = this._itemList[i].uid == spr.ID; + if (flag) + { + xitem = this._itemList[i]; + break; + } + } + bool flag2 = xitem != null; + if (flag2) + { + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(xitem, spr, false, 0u); + } + } + + protected override void OnHide() + { + this.ClearData(); + base.OnHide(); + } + + private void ClearData() + { + this._handler = null; + this._totalNumber = 0; + this._curProgress = 0; + this._itemIDAndNumber.Clear(); + this._itemList.Clear(); + this._maxNeeded = 0; + } + + public void ShowView(XShowSameQualityItemsView.SelectItemsHandler handler, ItemType type, ItemQuality quality, string tip, int maxNeeded, int current = 0) + { + this._handler = handler; + this._itemType = type; + this._itemQuality = quality; + this._tip = tip; + this._maxNeeded = maxNeeded; + this._curProgress = current; + this._itemList = XBagDocument.BagDoc.GetItemsByTypeAndQuality(1UL << (int)this._itemType, this._itemQuality); + this.SetVisibleWithAnimation(true, null); + } + + public void ShowView(XShowSameQualityItemsView.SelectItemsHandler handler, List itemList, string tip, int maxNeeded, int current = 0) + { + this._handler = handler; + this._tip = tip; + this._maxNeeded = maxNeeded; + this._curProgress = current; + this._itemList = itemList; + this.SetVisibleWithAnimation(true, null); + } + + private void RefreshUI() + { + this._itemIDAndNumber.Clear(); + this._totalNumber = 0; + base.uiBehaviour.progressLabel.SetText(this._curProgress + "/" + this._maxNeeded); + this._itemList.Sort(new Comparison(this.SortItemList)); + base.uiBehaviour.WrapContent.SetContentCount((this._itemList.Count + 1) / 2, false); + base.uiBehaviour.ScrollView.ResetPosition(); + base.uiBehaviour.TipStr.SetText(this._tip); + } + + private int SortItemList(XItem x, XItem y) + { + bool flag = x.itemConf.ReqLevel != y.itemConf.ReqLevel; + int result; + if (flag) + { + result = (int)(x.itemConf.ReqLevel - y.itemConf.ReqLevel); + } + else + { + result = x.itemID - y.itemID; + } + return result; + } + + private bool OnOkBtnClicked(IXUIButton button) + { + List list = new List(); + foreach (List collection in this._itemIDAndNumber.Values) + { + list.AddRange(collection); + } + bool flag = list.Count == 0; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ItemNoSelected"), "fece00"); + } + else + { + bool flag2 = this._handler != null; + if (flag2) + { + this._handler(list); + } + this.Close(); + } + return true; + } + + private void Close() + { + this._itemList.Clear(); + this._handler = null; + this._tip = ""; + this.SetVisible(false, true); + } + + private bool OnCloseView(IXUIButton button) + { + this.Close(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsView.cs.meta b/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsView.cs.meta new file mode 100644 index 00000000..37abf2b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowSameQualityItemsView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f71f275cb14ddfd4e9eb1bee7710f644 +timeCreated: 1611404886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XShowUpComponent.cs b/Client/Assets/Scripts/XMainClient/XShowUpComponent.cs new file mode 100644 index 00000000..b2c553c9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowUpComponent.cs @@ -0,0 +1,143 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XShowUpComponent : XComponent + { + public override uint ID + { + get + { + return XShowUpComponent.uuID; + } + } + + public XCameraEx ShowCamera + { + get + { + return this._show_camera; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("ShowUp"); + + private XCameraEx _show_camera = null; + + private bool _spot_on = false; + + private bool _cast_on = false; + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_AttackShowBegin, new XComponent.XEventHandler(this.Begin)); + base.RegisterEvent(XEventDefine.XEvent_AttackShow, new XComponent.XEventHandler(this.Act)); + base.RegisterEvent(XEventDefine.XEvent_AttackShowEnd, new XComponent.XEventHandler(this.ActEnd)); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._show_camera = new XCameraEx(); + } + + public override void OnDetachFromHost() + { + this._show_camera = null; + base.OnDetachFromHost(); + } + + public bool Begin(XEventArgs e) + { + this._spot_on = true; + this._cast_on = false; + XAttackShowBeginArgs xattackShowBeginArgs = e as XAttackShowBeginArgs; + this._show_camera.PreInstall(xattackShowBeginArgs.XCamera, false); + XSingleton.singleton.CreateComponent(this._show_camera, XCameraMotionComponent.uuID); + XSingleton.singleton.CreateComponent(this._show_camera, XCameraShakeComponent.uuID); + this._show_camera.Installed(); + this._show_camera.Target = this._entity; + this._show_camera.Root_R_Y = this._entity.EngineObject.Rotation.eulerAngles.y; + XSingleton.singleton.AssociatedCamera = this._show_camera.UnityCamera; + return true; + } + + public bool Act(XEventArgs e) + { + bool cast_on = this._cast_on; + if (cast_on) + { + this.StopCurrentShow(); + } + XSingleton.singleton.ClearBullets(); + XAttackShowArgs xattackShowArgs = e as XAttackShowArgs; + XSkillCore xskillCore = this._entity.SkillMgr.GetSkill(XSingleton.singleton.XHash(xattackShowArgs.name)); + bool flag = xskillCore == null; + if (flag) + { + xskillCore = XSingleton.singleton.Build(this._entity.Present.SkillPrefix, xattackShowArgs.name, this._entity); + } + this._entity.SkillMgr.AttachSkill(xskillCore, true); + XAttackEventArgs @event = XEventPool.GetEvent(); + @event.Identify = xskillCore.ID; + @event.Target = null; + @event.Demonstration = true; + @event.AffectCamera = this._show_camera; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + this._cast_on = true; + return true; + } + + public bool ActEnd(XEventArgs e) + { + XAttackShowEndArgs xattackShowEndArgs = e as XAttackShowEndArgs; + bool forceQuit = xattackShowEndArgs.ForceQuit; + if (forceQuit) + { + this.StopCurrentShow(); + this._spot_on = false; + this._show_camera.Uninitilize(); + XSingleton.singleton.AssociatedCamera = XSingleton.singleton.GameCamera.UnityCamera; + } + else + { + bool cast_on = this._cast_on; + if (cast_on) + { + XAttackShowEndArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } + this._cast_on = false; + return true; + } + + public override void Update(float fDeltaT) + { + bool spot_on = this._spot_on; + if (spot_on) + { + this._show_camera.Update(fDeltaT); + } + } + + public override void PostUpdate(float fDeltaT) + { + bool spot_on = this._spot_on; + if (spot_on) + { + this._show_camera.PostUpdate(fDeltaT); + } + } + + private void StopCurrentShow() + { + this._cast_on = false; + this._entity.Skill.EndSkill(true, true); + XSingleton.singleton.ClearBullets(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XShowUpComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XShowUpComponent.cs.meta new file mode 100644 index 00000000..d322a1af --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XShowUpComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5b01fd765fb3e3f408b5e9324e72500c +timeCreated: 1611403796 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSirJoystick.cs b/Client/Assets/Scripts/XMainClient/XSirJoystick.cs new file mode 100644 index 00000000..cfbac3e8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSirJoystick.cs @@ -0,0 +1,174 @@ +using System; +using UnityEngine; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSirJoystick : XSingleton + { + private IXGameSirControl SirControl + { + get + { + return XSingleton.singleton.GameSirControl; + } + } + + public int touchCount + { + get + { + return this._touch_count_this_frame; + } + } + + public bool Enabled + { + get + { + return this.SirControl != null && this.SirControl.IsConnected(); + } + } + + private XTouchItem[] _touches = new XTouchItem[XSirJoystick._touch_count_total_frame]; + + private Vector2 _RotatePos = new Vector2((float)Screen.width * 0.75f, (float)Screen.height * 0.5f); + + private Vector2 _RockerPos = new Vector2((float)Screen.width * 0.2f, (float)Screen.height * 0.25f); + + private Vector2 _RotateRangeX = new Vector2((float)Screen.width * 0.5f, (float)Screen.width * 1f); + + private Vector2 _RotateRangeY = new Vector2((float)Screen.height * 0.2f, (float)Screen.height * 0.8f); + + private int _touch_count_this_frame = 0; + + private static int _touch_count_total_frame = 2; + + private float _x = 0f; + + private float _y = 0f; + + private float _z = 0f; + + private float _rz = 0f; + + private Vector2 _tempPos; + + private int _RotateStep = 10; + + public XSirJoystick() + { + for (int i = 0; i < XSirJoystick._touch_count_total_frame; i++) + { + this._touches[i] = new XTouchItem(); + } + } + + public XTouchItem GetTouch(int touch) + { + return this._touches[touch]; + } + + public void Update() + { + this._touch_count_this_frame = 0; + this.OnTouch(); + this.UpdateRocker(); + this.UpdateRotate(); + } + + private void OnTouch() + { + bool button = this.SirControl.GetButton(XGameSirKeyCode.BTN_THUMBL); + if (button) + { + XSingleton.singleton.GameCamera.BackToPlayer(); + } + } + + private void UpdateRocker() + { + float axis = this.SirControl.GetAxis(XGameSirKeyCode.AXIS_X); + float num = -this.SirControl.GetAxis(XGameSirKeyCode.AXIS_Y); + bool flag = axis != 0f || num != 0f; + if (flag) + { + this._touches[this._touch_count_this_frame].faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XJoystick_1); + this._touches[this._touch_count_this_frame].faketouch.deltaTime = Time.smoothDeltaTime; + this._touches[this._touch_count_this_frame].faketouch.phase = ((this._x == 0f && this._y == 0f) ?(TouchPhase) 0 :(TouchPhase) 1); + this._touches[this._touch_count_this_frame].faketouch.position = ((this._touches[this._touch_count_this_frame].faketouch.phase == null) ? this._RockerPos : ((axis != 0f && num != 0f) ? new Vector2(this._RockerPos.x + axis * XSingleton.singleton.MaxDistance * 0.707f, this._RockerPos.y + num * XSingleton.singleton.MaxDistance * 0.707f) : new Vector2(this._RockerPos.x + axis * XSingleton.singleton.MaxDistance, this._RockerPos.y + num * XSingleton.singleton.MaxDistance))); + this._touches[this._touch_count_this_frame].faketouch.tapCount = 1; + this._touches[this._touch_count_this_frame].Fake = true; + this._touch_count_this_frame++; + } + else + { + bool flag2 = this._x != 0f || this._y != 0f; + if (flag2) + { + this._touches[this._touch_count_this_frame].faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XJoystick_1); + this._touches[this._touch_count_this_frame].faketouch.position = this._RockerPos; + this._touches[this._touch_count_this_frame].faketouch.deltaTime = Time.smoothDeltaTime; + this._touches[this._touch_count_this_frame].faketouch.phase = (TouchPhase)3; + this._touches[this._touch_count_this_frame].faketouch.tapCount = 1; + this._touches[this._touch_count_this_frame].Fake = true; + this._touch_count_this_frame++; + } + } + this._x = axis; + this._y = num; + } + + private void UpdateRotate() + { + float axis = this.SirControl.GetAxis(XGameSirKeyCode.AXIS_Z); + float num = -this.SirControl.GetAxis(XGameSirKeyCode.AXIS_RZ); + bool flag = axis != 0f || num != 0f; + if (flag) + { + this._touches[this._touch_count_this_frame].faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XJoystick_0); + this._touches[this._touch_count_this_frame].faketouch.deltaTime = Time.smoothDeltaTime; + this._touches[this._touch_count_this_frame].faketouch.deltaPosition = new Vector2(axis, num); + bool flag2 = this._z == 0f && this._rz == 0f; + if (flag2) + { + this._touches[this._touch_count_this_frame].faketouch.phase = 0; + this._touches[this._touch_count_this_frame].faketouch.position = this._RotatePos; + this._tempPos = this._RotatePos; + } + else + { + bool flag3 = this._touches[this._touch_count_this_frame].faketouch.deltaPosition.sqrMagnitude >= 0.5f; + if (flag3) + { + this._tempPos += this._touches[this._touch_count_this_frame].faketouch.deltaPosition * (float)this._RotateStep; + this._tempPos.x = Mathf.Clamp(this._tempPos.x, this._RotateRangeX.x, this._RotateRangeX.y); + this._tempPos.y = Mathf.Clamp(this._tempPos.y, this._RotateRangeY.x, this._RotateRangeY.y); + this._touches[this._touch_count_this_frame].faketouch.phase = (TouchPhase)1; + this._touches[this._touch_count_this_frame].faketouch.position = this._tempPos; + } + } + this._touches[this._touch_count_this_frame].faketouch.tapCount = 1; + this._touches[this._touch_count_this_frame].Fake = true; + this._touch_count_this_frame++; + } + else + { + bool flag4 = this._z != 0f || this._rz != 0f; + if (flag4) + { + this._touches[this._touch_count_this_frame].faketouch.fingerId = XFastEnumIntEqualityComparer.ToInt(XFingerId.XJoystick_0); + this._touches[this._touch_count_this_frame].faketouch.position = this._tempPos; + this._touches[this._touch_count_this_frame].faketouch.deltaTime = Time.smoothDeltaTime; + this._touches[this._touch_count_this_frame].faketouch.phase = (TouchPhase)3; + this._touches[this._touch_count_this_frame].faketouch.tapCount = 1; + this._touches[this._touch_count_this_frame].Fake = true; + this._touch_count_this_frame++; + } + } + this._z = axis; + this._rz = num; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSirJoystick.cs.meta b/Client/Assets/Scripts/XMainClient/XSirJoystick.cs.meta new file mode 100644 index 00000000..6e4e75e9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSirJoystick.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6c802708f05860c438aff515792b0769 +timeCreated: 1611403899 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSkyArenaBattleDocument.cs b/Client/Assets/Scripts/XMainClient/XSkyArenaBattleDocument.cs new file mode 100644 index 00000000..3e3f8935 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSkyArenaBattleDocument.cs @@ -0,0 +1,273 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkyArenaBattleDocument : XDocComponent + { + public override uint ID + { + get + { + return XSkyArenaBattleDocument.uuID; + } + } + + public ulong myId + { + get + { + return XSingleton.singleton.XPlayerData.RoleID; + } + } + + public int MyTeam + { + get + { + return this._MyTeam; + } + } + + public uint Floor + { + get + { + return this._Floor; + } + } + + public uint Stage + { + get + { + return this._Stage; + } + } + + public XBetterDictionary UserIdToRole + { + get + { + return this._UserIdToRole; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XSkyArenaBattleDocument"); + + public SkyArenaBattleHandler BattleHandler = null; + + public SkyArenaInfoHandler InfoHandler = null; + + private int _MyTeam = 0; + + private uint _Floor = 0u; + + private uint _Stage = 0u; + + public uint ShowAddStage = 0u; + + private XBetterDictionary _UserIdToRole = new XBetterDictionary(0); + + private bool _CanPlayAnim = false; + + public struct RoleData + { + public ulong uid; + + public string name; + + public int teamid; + + public uint lv; + + public uint job; + + public uint ppt; + + public bool online; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_FIGHTING; + if (flag) + { + bool flag2 = this.InfoHandler == null; + if (!flag2) + { + bool canPlayAnim = this._CanPlayAnim; + if (canPlayAnim) + { + this.InfoHandler.PlayStartTween(); + this._CanPlayAnim = false; + } + else + { + XSingleton.singleton.AddErrorLog("No Receive TeamData", null, null, null, null, null); + this.ReqSkyArenaBattleAllInfo(); + } + DlgBase.singleton.uiBehaviour.m_SkyAreanStage.SetText(string.Format(XSingleton.singleton.GetString("SKY_ARENA_STAGE"), this.Stage.ToString())); + } + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SKYCITY_FIGHTING; + if (flag) + { + this.ReqSkyArenaBattleAllInfo(); + } + } + + public void ReqSkyArenaBattleAllInfo() + { + RpcC2G_SkyCityAllInfoReq rpc = new RpcC2G_SkyCityAllInfoReq(); + XSingleton.singleton.Send(rpc); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public void SetBattleTeamInfo(PtcG2C_SkyCityTeamRes roPtc) + { + bool flag = roPtc.Data == null; + if (!flag) + { + this.SetBattleTeamInfo(roPtc.Data); + this._CanPlayAnim = true; + } + } + + public void SetBattleTeamInfo(SkyCityAllTeamBaseInfo data) + { + bool flag = data == null; + if (!flag) + { + this._Stage = data.games; + this._Floor = data.floor; + this._UserIdToRole.Clear(); + for (int i = 0; i < data.info.Count; i++) + { + XSkyArenaBattleDocument.RoleData roleData; + roleData.uid = data.info[i].uid; + roleData.name = data.info[i].name; + roleData.job = data.info[i].job; + roleData.lv = data.info[i].lv; + roleData.online = data.info[i].online; + roleData.ppt = data.info[i].ppt; + roleData.teamid = data.info[i].teamid; + this._UserIdToRole.Add(roleData.uid, roleData); + bool flag2 = this.myId == roleData.uid; + if (flag2) + { + this._MyTeam = roleData.teamid; + } + } + bool flag3 = this._MyTeam == 0; + if (flag3) + { + XSingleton.singleton.AddErrorLog("No Find My Team", null, null, null, null, null); + } + } + } + + public void SetBattleInfo(PtcG2C_SkyCityBattleDataNtf roPtc) + { + this.SetBattleInfo(roPtc.Data); + } + + public void SetBattleInfo(SkyCityAllInfo data) + { + bool flag = data == null; + if (!flag) + { + bool flag2 = this.BattleHandler == null; + if (!flag2) + { + this.BattleHandler.RefreshStatusTime(data.timetype, data.lefttime); + bool flag3 = data.timetype == SkyCityTimeType.SecondWaiting; + if (!flag3) + { + List groupdata = data.groupdata; + for (int i = 0; i < groupdata.Count; i++) + { + this.BattleHandler.SetDamage((ulong)groupdata[i].totaldamage, (ulong)groupdata[i].teamid == (ulong)((long)this._MyTeam)); + this.BattleHandler.SetScore(groupdata[i].killcount, (ulong)groupdata[i].teamid == (ulong)((long)this._MyTeam)); + } + } + } + } + } + + public void SetBattleAllInfo(SkyCityArg oArg, SkyCityRes oRes) + { + this.SetBattleTeamInfo(oRes.baseinfo); + this.SetBattleInfo(oRes.allinfo); + } + + public void SetBattleEndInfo(PtcG2C_SkyCityEstimateRes roPtc) + { + bool flag = this.InfoHandler != null; + if (flag) + { + this.InfoHandler.PlayEndTween(roPtc.Data); + } + } + + public void HideVSInfo() + { + bool flag = this.InfoHandler != null; + if (flag) + { + XSingleton.singleton.AddGreenLog("HideVSInfo", null, null, null, null, null); + this.InfoHandler.CloseTween(); + } + } + + public void HideTime() + { + bool flag = this.BattleHandler != null; + if (flag) + { + this.BattleHandler.HideTime(); + } + } + + public void StageEnd() + { + bool flag = DlgBase.singleton.uiBehaviour == null; + if (!flag) + { + bool flag2 = DlgBase.singleton.uiBehaviour.m_SkyAreanStage != null; + if (flag2) + { + DlgBase.singleton.uiBehaviour.m_SkyAreanStage.SetText(string.Format(XSingleton.singleton.GetString("SKY_ARENA_STAGE"), (this.Stage + 1u).ToString())); + } + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID + this.ShowAddStage); + bool flag3 = sceneData != null && DlgBase.singleton.uiBehaviour.m_SceneName != null; + if (flag3) + { + DlgBase.singleton.uiBehaviour.m_SceneName.SetText(sceneData.Comment); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSkyArenaBattleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSkyArenaBattleDocument.cs.meta new file mode 100644 index 00000000..e987a14e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSkyArenaBattleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68c9bd247cd9bef4cb3ce1038ced8cb1 +timeCreated: 1611403883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSkyArenaEntranceDocument.cs b/Client/Assets/Scripts/XMainClient/XSkyArenaEntranceDocument.cs new file mode 100644 index 00000000..ccd9008b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSkyArenaEntranceDocument.cs @@ -0,0 +1,142 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSkyArenaEntranceDocument : XDocComponent + { + public override uint ID + { + get + { + return XSkyArenaEntranceDocument.uuID; + } + } + + public static XSkyArenaEntranceDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XSkyArenaEntranceDocument.uuID) as XSkyArenaEntranceDocument; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XSkyArenaEntranceDocument"); + + public SkyArenaEntranceView View = null; + + public SkyArenaWaitHandler WaitHandler = null; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static SkyArenaReward _SkyArenaRewardTable = new SkyArenaReward(); + + public bool MainInterfaceState = false; + + public bool MainInterfaceStateEnd = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public override void OnEnterSceneFinally() + { + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XSkyArenaEntranceDocument.AsyncLoader.AddTask("Table/SkyArenaReward", XSkyArenaEntranceDocument._SkyArenaRewardTable, false); + XSkyArenaEntranceDocument.AsyncLoader.Execute(callback); + } + + public SkyArenaReward.RowData GetSkyArenaRewardShow() + { + SkyArenaReward.RowData rowData = null; + for (int i = 0; i < XSkyArenaEntranceDocument._SkyArenaRewardTable.Table.Length; i++) + { + bool flag = (long)XSkyArenaEntranceDocument._SkyArenaRewardTable.Table[i].LevelSegment <= (long)((ulong)XLevelSealDocument.Doc.SealType) && XSkyArenaEntranceDocument._SkyArenaRewardTable.Table[i].Floor == 0; + if (flag) + { + rowData = XSkyArenaEntranceDocument._SkyArenaRewardTable.Table[i]; + } + } + bool flag2 = rowData == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("SkyArenaReward.RowData is null! SealType:" + XLevelSealDocument.Doc.SealType, null, null, null, null, null); + } + return rowData; + } + + public List GetSkyArenaRewardList() + { + int num = 1; + List list = new List(); + for (int i = 0; i < XSkyArenaEntranceDocument._SkyArenaRewardTable.Table.Length; i++) + { + bool flag = XSkyArenaEntranceDocument._SkyArenaRewardTable.Table[i].LevelSegment != num; + if (flag) + { + bool flag2 = (long)XSkyArenaEntranceDocument._SkyArenaRewardTable.Table[i].LevelSegment <= (long)((ulong)XLevelSealDocument.Doc.SealType); + if (!flag2) + { + return list; + } + num = XSkyArenaEntranceDocument._SkyArenaRewardTable.Table[i].LevelSegment; + list.Clear(); + } + bool flag3 = XSkyArenaEntranceDocument._SkyArenaRewardTable.Table[i].Floor != 0; + if (flag3) + { + list.Add(XSkyArenaEntranceDocument._SkyArenaRewardTable.Table[i]); + } + } + return list; + } + + public void ReqSingleJoin() + { + RpcC2M_SkyCityEnter rpc = new RpcC2M_SkyCityEnter(); + XSingleton.singleton.Send(rpc); + } + + public void SetTime(uint time) + { + bool flag = this.WaitHandler != null; + if (flag) + { + this.WaitHandler.StartTime(time); + } + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceState = state; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_MulActivity_SkyArena, true); + } + + public void SetMainInterfaceBtnStateEnd(bool state) + { + this.MainInterfaceStateEnd = state; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_MulActivity_SkyArenaEnd, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSkyArenaEntranceDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSkyArenaEntranceDocument.cs.meta new file mode 100644 index 00000000..fb6935e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSkyArenaEntranceDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 220e49d060917d846810adad51bebfb4 +timeCreated: 1611403418 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSkyArenaList.cs b/Client/Assets/Scripts/XMainClient/XSkyArenaList.cs new file mode 100644 index 00000000..27c21e3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSkyArenaList.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + public class XSkyArenaList : XBaseRankList + { + public XSkyArenaList() + { + this.type = XRankType.SkyArenaRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XSkyArenaRankInfo(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSkyArenaList.cs.meta b/Client/Assets/Scripts/XMainClient/XSkyArenaList.cs.meta new file mode 100644 index 00000000..00f5d7e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSkyArenaList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ab2345a3efd74340bf597bff5b7c36e +timeCreated: 1611404093 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSkyArenaRankInfo.cs b/Client/Assets/Scripts/XMainClient/XSkyArenaRankInfo.cs new file mode 100644 index 00000000..f71ced5f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSkyArenaRankInfo.cs @@ -0,0 +1,28 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XSkyArenaRankInfo : XBaseRankInfo + { + public uint profession; + + public uint kill; + + public uint floor; + + public override void ProcessData(RankData data) + { + this.rank = data.Rank; + bool flag = data.skycity == null; + if (!flag) + { + this.id = data.skycity.roleid; + this.name = data.skycity.rolename; + this.floor = data.skycity.floor; + this.kill = data.skycity.killer; + this.profession = data.skycity.job; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSkyArenaRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSkyArenaRankInfo.cs.meta new file mode 100644 index 00000000..766a0c63 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSkyArenaRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c67fe79502599234f9e440315f5690bb +timeCreated: 1611404509 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSmallChatInfo.cs b/Client/Assets/Scripts/XMainClient/XSmallChatInfo.cs new file mode 100644 index 00000000..447f75ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSmallChatInfo.cs @@ -0,0 +1,12 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XSmallChatInfo + { + public ChatInfo info; + + public GameObject uiobject; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSmallChatInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSmallChatInfo.cs.meta new file mode 100644 index 00000000..f18d3d7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSmallChatInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 79a5a05702bbfae48acbb87eb463b972 +timeCreated: 1611403986 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSmeltDocument.cs b/Client/Assets/Scripts/XMainClient/XSmeltDocument.cs new file mode 100644 index 00000000..4076a414 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSmeltDocument.cs @@ -0,0 +1,1197 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSmeltDocument : XDocComponent + { + public override uint ID + { + get + { + return XSmeltDocument.uuID; + } + } + + public static XSmeltDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XSmeltDocument.uuID) as XSmeltDocument; + } + } + + public List MorePowerfulEquips + { + get + { + return this.m_morePowerfulEquips; + } + } + + private List EquipAttackSmeltExchanged + { + get + { + bool flag = this.m_equipAttackSmeltExchanged == null; + if (flag) + { + this.m_equipAttackSmeltExchanged = XSingleton.singleton.GetIntList("EquipAttackSmeltExchanged"); + } + return this.m_equipAttackSmeltExchanged; + } + } + + private List EquipDefenseSmeltExchanged + { + get + { + bool flag = this.m_equipDefenseSmeltExchanged == null; + if (flag) + { + this.m_equipDefenseSmeltExchanged = XSingleton.singleton.GetIntList("EquipDefenseSmeltExchanged"); + } + return this.m_equipDefenseSmeltExchanged; + } + } + + private List EmblemSmeltExchanged + { + get + { + bool flag = this.m_emblemSmeltExchanged == null; + if (flag) + { + this.m_emblemSmeltExchanged = XSingleton.singleton.GetIntList("EmblemSmeltExchanged"); + } + return this.m_emblemSmeltExchanged; + } + } + + public bool EmblemCanBePower + { + get + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Emblem_Smelting) & this.emblemCanBePower; + } + set + { + bool flag = this.emblemCanBePower != value; + if (flag) + { + this.emblemCanBePower = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Char_Emblem, true); + } + } + } + + public bool EquipCanBePower + { + get + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Item_Smelting) & this.equipCanBePower; + } + set + { + bool flag = this.equipCanBePower != value; + if (flag) + { + this.equipCanBePower = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Item_Equip, true); + } + } + } + + public ulong CurUid + { + get + { + return this.m_curUid; + } + set + { + this.m_curUid = value; + bool flag = this.m_curUid > 0UL; + if (flag) + { + this.Init(); + } + } + } + + public List SmeltAttrList + { + get + { + return this.m_smeltAttrList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XSmeltDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public bool MesIsBack = true; + + private bool m_emblemRedDotDataIsDirty = false; + + private bool m_equipRedDotDataIsDirty = false; + + private bool emblemCanBePower = false; + + private bool equipCanBePower = false; + + private List m_morePowerfulEquips = new List(); + + private List m_equipAttackSmeltExchanged; + + private List m_equipDefenseSmeltExchanged; + + private List m_emblemSmeltExchanged; + + private ulong m_curUid = 0UL; + + private List m_smeltAttrList; + + public SmeltMainHandler View = null; + + public int SelectIndex = 0; + + public uint[] SmeltResult = null; + + public static void Execute(OnLoadedCallback callback = null) + { + XSmeltDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_UpdateItem, new XComponent.XEventHandler(this.OnUpdateItem)); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_LoadEquip, new XComponent.XEventHandler(this.OnLoadEquip)); + base.RegisterEvent(XEventDefine.XEvent_UnloadEquip, new XComponent.XEventHandler(this.OnUnloadEquip)); + base.RegisterEvent(XEventDefine.XEvent_SwapItem, new XComponent.XEventHandler(this.OnSwapItem)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnItemChangedFinished)); + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + this.Clear(); + this.View = null; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.MesIsBack = true; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.UpdateUi(false); + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public bool OnUpdateItem(XEventArgs args) + { + XUpdateItemEventArgs xupdateItemEventArgs = args as XUpdateItemEventArgs; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshUi(false); + } + return true; + } + + public bool OnVirtualItemChanged(XEventArgs args) + { + XVirtualItemChangedEventArgs xvirtualItemChangedEventArgs = args as XVirtualItemChangedEventArgs; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshUi(false); + } + this.m_emblemRedDotDataIsDirty = true; + this.m_equipRedDotDataIsDirty = true; + this.IsHadCanSmeltBodyEmblem(); + return true; + } + + public bool OnSwapItem(XEventArgs args) + { + XSwapItemEventArgs xswapItemEventArgs = args as XSwapItemEventArgs; + bool flag = xswapItemEventArgs.itemNowOnBody.Type == ItemType.EMBLEM; + if (flag) + { + this.m_emblemRedDotDataIsDirty = true; + } + else + { + bool flag2 = xswapItemEventArgs.itemNowOnBody.Type == ItemType.EQUIP; + if (flag2) + { + this.m_equipRedDotDataIsDirty = true; + } + } + return true; + } + + public bool OnLoadEquip(XEventArgs args) + { + XLoadEquipEventArgs xloadEquipEventArgs = args as XLoadEquipEventArgs; + bool flag = xloadEquipEventArgs.item.Type == ItemType.EMBLEM; + if (flag) + { + this.m_emblemRedDotDataIsDirty = true; + } + else + { + bool flag2 = xloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag2) + { + this.m_equipRedDotDataIsDirty = true; + } + } + return true; + } + + public bool OnUnloadEquip(XEventArgs args) + { + XUnloadEquipEventArgs xunloadEquipEventArgs = args as XUnloadEquipEventArgs; + bool flag = xunloadEquipEventArgs.item.Type == ItemType.EMBLEM; + if (flag) + { + this.m_emblemRedDotDataIsDirty = true; + } + else + { + bool flag2 = xunloadEquipEventArgs.item.Type == ItemType.EQUIP; + if (flag2) + { + this.m_equipRedDotDataIsDirty = true; + } + } + return true; + } + + public bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag = xaddItemEventArgs.items[i].Type == ItemType.EMBLEM; + if (flag) + { + this.m_emblemRedDotDataIsDirty = true; + } + else + { + bool flag2 = xaddItemEventArgs.items[i].Type == ItemType.EQUIP; + if (flag2) + { + this.m_equipRedDotDataIsDirty = true; + } + } + } + this.IsHadCanSmeltBodyEmblem(); + return true; + } + + public bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + for (int i = 0; i < xremoveItemEventArgs.ids.Count; i++) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID((ulong)((long)xremoveItemEventArgs.ids[i])); + bool flag = itemByUID == null; + if (!flag) + { + bool flag2 = itemByUID.Type == ItemType.EMBLEM; + if (flag2) + { + this.m_emblemRedDotDataIsDirty = true; + } + else + { + bool flag3 = itemByUID.Type == ItemType.EQUIP; + if (flag3) + { + this.m_equipRedDotDataIsDirty = true; + } + } + } + } + this.IsHadCanSmeltBodyEmblem(); + return true; + } + + public bool OnItemChangedFinished(XEventArgs args) + { + this.m_emblemRedDotDataIsDirty = true; + this.m_equipRedDotDataIsDirty = true; + bool emblemRedDotDataIsDirty = this.m_emblemRedDotDataIsDirty; + if (emblemRedDotDataIsDirty) + { + this.IsHadCanSmeltBodyEmblem(); + this.m_emblemRedDotDataIsDirty = false; + } + bool equipRedDotDataIsDirty = this.m_equipRedDotDataIsDirty; + if (equipRedDotDataIsDirty) + { + this.IsHadCanSmeltBodyEquip(); + XEnhanceDocument specificDocument = XDocuments.GetSpecificDocument(XEnhanceDocument.uuID); + specificDocument.UpdateRedPoints(); + this.m_equipRedDotDataIsDirty = false; + } + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.UpdateUi(false); + } + return true; + } + + public void ReqSmelt() + { + uint num = 0u; + bool flag = this.m_smeltAttrList != null && (long)this.m_smeltAttrList.Count > (long)((ulong)num); + if (flag) + { + num = this.m_smeltAttrList[this.SelectIndex].Index; + } + RpcC2G_SmeltItem rpcC2G_SmeltItem = new RpcC2G_SmeltItem(); + rpcC2G_SmeltItem.oArg.uid = this.m_curUid; + rpcC2G_SmeltItem.oArg.slot = num; + rpcC2G_SmeltItem.oArg.isForge = this.m_smeltAttrList[this.SelectIndex].IsForge; + this.SetLastAttr(this.SelectIndex); + XSingleton.singleton.Send(rpcC2G_SmeltItem); + this.MesIsBack = false; + } + + public void ReqSmeltReturn(ulong uid) + { + RpcC2G_ReturnSmeltStone rpcC2G_ReturnSmeltStone = new RpcC2G_ReturnSmeltStone(); + rpcC2G_ReturnSmeltStone.oArg.uid = uid; + XSingleton.singleton.Send(rpcC2G_ReturnSmeltStone); + } + + public void OnSmeltBack(SmeltItemRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + this.MesIsBack = true; + } + else + { + this.m_smeltAttrList[this.SelectIndex].SmeltResult = oRes.result; + bool flag2 = (ulong)this.m_smeltAttrList[this.SelectIndex].SmeltResult > (ulong)((long)this.m_smeltAttrList[this.SelectIndex].LastValue); + if (flag2) + { + this.m_smeltAttrList[this.SelectIndex].RealValue = oRes.result; + this.m_smeltAttrList[this.SelectIndex].IsReplace = true; + this.RefreshData(); + } + else + { + this.m_smeltAttrList[this.SelectIndex].IsReplace = false; + } + bool flag3 = DlgBase.singleton._EmblemEquipHandler != null && DlgBase.singleton._EmblemEquipHandler.IsVisible(); + if (flag3) + { + DlgBase.singleton._EmblemEquipHandler.ShowEquipments(); + } + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.RefreshUi(true); + } + this.MesIsBack = true; + } + } + + public void SmeltReturnBack(ReturnSmeltStoneRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + + public List> GetShouldShowItems(int baseItemId, int needCount, ref int totalNum) + { + totalNum = 0; + List> list = new List>(); + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.CurUid); + bool flag = itemByUID == null; + List> result; + if (flag) + { + XSingleton.singleton.AddErrorLog("not find uid : ", this.CurUid.ToString(), null, null, null, null); + result = list; + } + else + { + bool flag2 = itemByUID.Type == ItemType.EQUIP; + bool flag3 = flag2; + if (flag3) + { + bool flag4 = this.ExchangedDataDispose(this.EquipAttackSmeltExchanged, baseItemId, needCount, ref list, ref totalNum); + bool flag5 = !flag4; + if (flag5) + { + this.ExchangedDataDispose(this.EquipDefenseSmeltExchanged, baseItemId, needCount, ref list, ref totalNum); + } + } + else + { + this.ExchangedDataDispose(this.EmblemSmeltExchanged, baseItemId, needCount, ref list, ref totalNum); + } + bool flag6 = totalNum < needCount; + if (flag6) + { + list.Clear(); + totalNum = (int)XBagDocument.BagDoc.GetItemCount(baseItemId); + XTuple item = new XTuple(baseItemId, totalNum); + list.Add(item); + } + else + { + totalNum = needCount; + } + result = list; + } + return result; + } + + private bool ExchangedDataDispose(List sourceList, int baseItemId, int needCount, ref List> lst, ref int totalNum) + { + bool flag = false; + lst.Clear(); + int i = 0; + while (i < sourceList.Count) + { + int num = sourceList[i]; + bool flag2 = num == baseItemId; + if (flag2) + { + flag = true; + } + bool flag3 = flag; + if (flag3) + { + int num2 = (int)XBagDocument.BagDoc.GetItemCount(num); + bool flag4 = num2 == 0; + if (!flag4) + { + bool flag5 = totalNum + num2 > needCount; + if (flag5) + { + num2 = needCount - totalNum; + } + totalNum += num2; + XTuple item = new XTuple(num, num2); + lst.Add(item); + bool flag6 = totalNum >= needCount; + if (flag6) + { + break; + } + } + } + IL_8D: + i++; + continue; + goto IL_8D; + } + return flag; + } + + private void Init() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_curUid); + bool flag = itemByUID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("not find uid : ", this.m_curUid.ToString(), null, null, null, null); + } + else + { + this.m_smeltAttrList = new List(); + bool flag2 = itemByUID.Type == ItemType.EQUIP; + if (flag2) + { + XEquipItem item = itemByUID as XEquipItem; + this.GetEquipSmeltAttr(item); + } + else + { + bool flag3 = itemByUID.Type == ItemType.EMBLEM; + if (flag3) + { + XAttrItem item2 = itemByUID as XAttrItem; + this.GetEmblemSmeltAttr(item2); + } + } + } + } + + private void GetEquipSmeltAttr(XEquipItem item) + { + EquipSlotAttrDatas attrData = XCharacterEquipDocument.RandomAttrMgr.GetAttrData((uint)item.itemID); + EquipSlotAttrDatas attrData2 = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)item.itemID); + int count = item.randAttrInfo.RandAttr.Count; + List list = new List(); + for (int i = 0; i < count; i++) + { + list.Add(item.randAttrInfo.RandAttr[i]); + } + for (int j = 0; j < item.forgeAttrInfo.ForgeAttr.Count; j++) + { + list.Add(item.forgeAttrInfo.ForgeAttr[j]); + } + for (int k = 0; k < list.Count; k++) + { + bool flag = list[k].AttrID <= 0u; + if (!flag) + { + bool flag2 = XAttributeCommon.IsPercentRange((int)list[k].AttrID); + if (!flag2) + { + bool flag3 = k < count; + EquipSlotAttrDatas equipSlotAttrDatas; + int num; + if (flag3) + { + equipSlotAttrDatas = attrData; + num = k + 1; + } + else + { + equipSlotAttrDatas = attrData2; + num = count - k + 1; + } + bool flag4 = equipSlotAttrDatas == null; + if (!flag4) + { + EquipAttrData attrData3 = equipSlotAttrDatas.GetAttrData(num, list[k]); + bool flag5 = attrData3 != null; + if (flag5) + { + SmeltAttr smeltAttr = new SmeltAttr(attrData3.AttrId, (uint)attrData3.RangValue.Min, (uint)attrData3.RangValue.Max, (uint)(num - 1), attrData3.Slot, k >= count); + smeltAttr.IsCanSmelt = attrData3.IsCanSmelt; + smeltAttr.RealValue = list[k].AttrValue; + smeltAttr.ColorStr = equipSlotAttrDatas.GetColor((int)smeltAttr.Slot, list[k]); + this.m_smeltAttrList.Add(smeltAttr); + } + else + { + XSingleton.singleton.AddGreenLog("data inconformity", null, null, null, null, null); + } + } + } + } + } + } + + private void GetEmblemSmeltAttr(XAttrItem item) + { + int num; + int endIndex; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)item.itemID, out num, out endIndex); + bool flag = num >= 0; + if (flag) + { + for (int i = 0; i < item.changeAttr.Count; i++) + { + XItemChangeAttr xitemChangeAttr = item.changeAttr[i]; + bool flag2 = XAttributeCommon.IsPercentRange((int)xitemChangeAttr.AttrID); + if (!flag2) + { + AttributeEmblem.RowData rowData = XEquipCreateDocument.FindAttr(num, endIndex, i, xitemChangeAttr.AttrID); + bool flag3 = rowData != null; + if (flag3) + { + SmeltAttr smeltAttr = new SmeltAttr((uint)rowData.AttrID, rowData.Range[0], rowData.Range[1], (uint)i, (uint)rowData.Position, false); + smeltAttr.RealValue = xitemChangeAttr.AttrValue; + smeltAttr.ColorStr = XEquipCreateDocument.GetPrefixColor(rowData, xitemChangeAttr.AttrValue); + this.m_smeltAttrList.Add(smeltAttr); + } + else + { + XSingleton.singleton.AddErrorLog("data inconformity", null, null, null, null, null); + } + } + } + } + } + + private void RefreshData() + { + SmeltAttr smeltAttr = this.GetSmeltAttr(this.SelectIndex); + bool flag = smeltAttr == null; + if (!flag) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_curUid); + bool flag2 = itemByUID == null; + if (flag2) + { + XSingleton.singleton.AddGreenLog("not find uid : ", this.m_curUid.ToString(), null, null, null, null); + } + else + { + bool flag3 = itemByUID.Type == ItemType.EQUIP; + if (flag3) + { + XItemChangeAttr attr = default(XItemChangeAttr); + attr.AttrID = smeltAttr.AttrID; + attr.AttrValue = smeltAttr.RealValue; + this.IsHadCanSmeltBodyEquip(); + bool flag4 = !smeltAttr.IsForge; + EquipSlotAttrDatas attrData; + if (flag4) + { + attrData = XCharacterEquipDocument.RandomAttrMgr.GetAttrData((uint)itemByUID.itemID); + } + else + { + attrData = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)itemByUID.itemID); + } + bool flag5 = attrData == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("not find id : ", itemByUID.itemID.ToString(), null, null, null, null); + } + else + { + smeltAttr.ColorStr = attrData.GetColor((int)smeltAttr.Slot, attr); + } + } + else + { + this.IsHadCanSmeltBodyEmblem(); + int num; + int endIndex; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)itemByUID.itemID, out num, out endIndex); + bool flag6 = num >= 0; + if (flag6) + { + smeltAttr.ColorStr = XEquipCreateDocument.GetPrefixColor(num, endIndex, (int)smeltAttr.Index, smeltAttr.AttrID, smeltAttr.RealValue); + } + } + } + } + } + + public SmeltAttr GetSmeltAttr(int index) + { + bool flag = this.m_smeltAttrList == null || this.m_smeltAttrList.Count == 0; + SmeltAttr result; + if (flag) + { + result = null; + } + else + { + bool flag2 = this.m_smeltAttrList.Count > index; + if (flag2) + { + result = this.m_smeltAttrList[index]; + } + else + { + XSingleton.singleton.AddErrorLog("data is null", null, null, null, null, null); + result = null; + } + } + return result; + } + + public void Clear() + { + this.SelectIndex = 0; + this.m_curUid = 0UL; + this.SmeltResult = null; + this.MesIsBack = true; + } + + public void SelectEquip(ulong uid) + { + bool flag = uid == 0UL; + if (!flag) + { + bool flag2 = uid == this.m_curUid; + if (!flag2) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(uid); + bool flag3 = itemByUID == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog(string.Format("cannot find this item uid = {0}", uid), null, null, null, null, null); + } + else + { + bool flag4 = itemByUID.Type == ItemType.EMBLEM; + if (flag4) + { + XEmblemItem xemblemItem = itemByUID as XEmblemItem; + bool bIsSkillEmblem = xemblemItem.bIsSkillEmblem; + if (bIsSkillEmblem) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SkillEmblemCannotSmelt"), "fece00"); + return; + } + bool flag5 = xemblemItem.changeAttr.Count <= 0; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NoCanSmelt"), "fece00"); + return; + } + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemByUID.itemID); + int @int = XSingleton.singleton.GetInt("SmeltEmblemMinLevel"); + bool flag6 = itemConf == null || (int)itemConf.ReqLevel < @int; + if (flag6) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("EmblemSmeltLevel"), @int), "fece00"); + return; + } + } + else + { + bool flag7 = itemByUID.Type == ItemType.EQUIP; + if (flag7) + { + XEquipItem xequipItem = itemByUID as XEquipItem; + bool flag8 = xequipItem.randAttrInfo.RandAttr.Count <= 0 && xequipItem.forgeAttrInfo.ForgeAttr.Count <= 0; + if (flag8) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NoCanSmelt"), "fece00"); + return; + } + EquipList.RowData equipConf = XBagDocument.GetEquipConf(itemByUID.itemID); + bool flag9 = equipConf == null || !equipConf.IsCanSmelt; + if (flag9) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("NoCanSmelt"), "fece00"); + return; + } + ItemList.RowData itemConf2 = XBagDocument.GetItemConf(itemByUID.itemID); + int int2 = XSingleton.singleton.GetInt("SmeltEquipMinLevel"); + bool flag10 = itemConf2 == null || (int)itemConf2.ReqLevel < int2; + if (flag10) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("EquipSmeltLevel"), int2), "fece00"); + return; + } + } + } + this.CurUid = uid; + bool flag11 = !DlgBase.singleton.IsVisible(); + if (!flag11) + { + bool flag12 = this.View != null && this.View.IsVisible(); + if (flag12) + { + this.View.ShowUi(); + } + else + { + DlgBase.singleton.ShowRightPopView(DlgBase.singleton._SmeltMainHandler); + } + bool flag13 = DlgBase.singleton._equipHandler != null; + if (flag13) + { + DlgBase.singleton._equipHandler.SelectEquip(uid); + } + } + } + } + } + } + + public void SetLastAttr(int index) + { + bool flag = this.m_smeltAttrList == null || index >= this.m_smeltAttrList.Count; + if (!flag) + { + this.m_smeltAttrList[index].LastValue = (int)this.m_smeltAttrList[index].RealValue; + } + } + + public SeqListRef GetNeedItem() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_curUid); + bool flag = itemByUID == null; + SeqListRef result; + if (flag) + { + XSingleton.singleton.AddErrorLog("not find uid : ", this.m_curUid.ToString(), null, null, null, null); + result = default(SeqListRef); + } + else + { + result = this.NeedItem(itemByUID); + } + return result; + } + + public uint GetNeedGold() + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.m_curUid); + bool flag = itemByUID == null; + uint result; + if (flag) + { + XSingleton.singleton.AddErrorLog("not find uid : ", this.m_curUid.ToString(), null, null, null, null); + result = 0u; + } + else + { + result = this.NeedGold(itemByUID); + } + return result; + } + + private SeqListRef NeedItem(XItem item) + { + bool flag = item.Type == ItemType.EQUIP; + SeqListRef result; + if (flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + result = equipConf.SmeltNeedItem; + } + else + { + bool flag2 = item.Type == ItemType.EMBLEM; + if (flag2) + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(item.itemID); + result = emblemConf.SmeltNeedItem; + } + else + { + XSingleton.singleton.AddErrorLog("the maybe Type cannot be anything but EQUIP or EMBLEM! Please check the type of [CurType].", null, null, null, null, null); + result = default(SeqListRef); + } + } + return result; + } + + private uint NeedGold(XItem item) + { + bool flag = item.Type == ItemType.EQUIP; + uint result; + if (flag) + { + EquipList.RowData equipConf = XBagDocument.GetEquipConf(item.itemID); + result = equipConf.SmeltNeedMoney; + } + else + { + bool flag2 = item.Type == ItemType.EMBLEM; + if (flag2) + { + EmblemBasic.RowData emblemConf = XBagDocument.GetEmblemConf(item.itemID); + result = emblemConf.SmeltNeedMoney; + } + else + { + XSingleton.singleton.AddErrorLog("the maybe Type cannot be anything but EQUIP or EMBLEM! Please check the type of [CurType].", null, null, null, null, null); + result = 0u; + } + } + return result; + } + + public void InitEquipAndEmblemRedDot() + { + this.IsHadCanSmeltBodyEquip(); + this.IsHadCanSmeltBodyEmblem(); + } + + public void IsHadCanSmeltBodyEquip() + { + this.MorePowerfulEquips.Clear(); + for (int i = 0; i < XBagDocument.EquipMax; i++) + { + bool flag = XBagDocument.BagDoc.EquipBag[i] != null; + if (flag) + { + bool flag2 = this.IsHadRedDot(XBagDocument.BagDoc.EquipBag[i]); + if (flag2) + { + this.EquipCanBePower = true; + return; + } + } + } + this.EquipCanBePower = false; + } + + public void GetRedDotEquips() + { + this.MorePowerfulEquips.Clear(); + for (int i = 0; i < XBagDocument.EquipMax; i++) + { + bool flag = XBagDocument.BagDoc.EquipBag[i] != null; + if (flag) + { + bool flag2 = this.IsHadRedDot(XBagDocument.BagDoc.EquipBag[i]); + if (flag2) + { + this.MorePowerfulEquips.Add(i); + } + } + } + } + + public void IsHadCanSmeltBodyEmblem() + { + for (int i = 0; i < XBagDocument.EmblemMax; i++) + { + bool flag = XBagDocument.BagDoc.EmblemBag[i] != null; + if (flag) + { + bool flag2 = this.IsHadRedDot(XBagDocument.BagDoc.EmblemBag[i]); + if (flag2) + { + this.EmblemCanBePower = true; + return; + } + } + } + this.EmblemCanBePower = false; + } + + public bool IsHadRedDot(XItem item) + { + bool flag = item == null; + bool result; + if (flag) + { + result = false; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(item.itemID); + bool flag2 = itemConf == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = itemConf.ItemQuality < 3; + if (flag3) + { + result = false; + } + else + { + uint num = this.NeedGold(item); + bool flag4 = XBagDocument.BagDoc.GetItemCount(1) < (ulong)num; + if (flag4) + { + result = false; + } + else + { + uint @int = (uint)XSingleton.singleton.GetInt("SmeltMultipleFactor"); + SeqListRef seqListRef = this.NeedItem(item); + for (int i = 0; i < seqListRef.Count; i++) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)seqListRef[i, 0]); + bool flag5 = itemCount < (ulong)(seqListRef[i, 1] * @int); + if (flag5) + { + return false; + } + } + bool flag6 = item.Type == ItemType.EQUIP; + if (flag6) + { + XEquipItem xequipItem = item as XEquipItem; + EquipSlotAttrDatas attrData = XCharacterEquipDocument.RandomAttrMgr.GetAttrData((uint)item.itemID); + EquipSlotAttrDatas attrData2 = XForgeDocument.ForgeAttrMgr.GetAttrData((uint)item.itemID); + bool flag7 = attrData == null && attrData2 == null; + if (flag7) + { + return false; + } + bool flag8 = xequipItem.randAttrInfo.RandAttr.Count <= 0 && xequipItem.forgeAttrInfo.ForgeAttr.Count <= 0; + if (flag8) + { + return false; + } + int count = xequipItem.randAttrInfo.RandAttr.Count; + List list = new List(); + for (int j = 0; j < count; j++) + { + list.Add(xequipItem.randAttrInfo.RandAttr[j]); + } + for (int k = 0; k < xequipItem.forgeAttrInfo.ForgeAttr.Count; k++) + { + list.Add(xequipItem.forgeAttrInfo.ForgeAttr[k]); + } + for (int l = 0; l < list.Count; l++) + { + bool flag9 = list[l].AttrID <= 0u; + if (!flag9) + { + bool flag10 = XAttributeCommon.IsPercentRange((int)list[l].AttrID); + if (!flag10) + { + bool flag11 = l < count; + EquipSlotAttrDatas equipSlotAttrDatas; + int slot; + if (flag11) + { + equipSlotAttrDatas = attrData; + slot = l + 1; + } + else + { + equipSlotAttrDatas = attrData2; + slot = count - l + 1; + } + bool flag12 = equipSlotAttrDatas == null; + if (!flag12) + { + string color = equipSlotAttrDatas.GetColor(slot, list[l]); + bool flag13 = this.QuantityIsNeedRemind(color); + if (flag13) + { + return true; + } + } + } + } + } + } + else + { + bool flag14 = item.Type == ItemType.EMBLEM; + if (flag14) + { + XAttrItem xattrItem = item as XAttrItem; + bool flag15 = xattrItem == null || xattrItem.changeAttr.Count <= 0; + if (flag15) + { + return false; + } + int num2; + int endIndex; + XEquipCreateDocument.GetEmblemAttrDataByID((uint)item.itemID, out num2, out endIndex); + bool flag16 = num2 >= 0; + if (flag16) + { + for (int m = 0; m < xattrItem.changeAttr.Count; m++) + { + XItemChangeAttr xitemChangeAttr = xattrItem.changeAttr[m]; + bool flag17 = XAttributeCommon.IsPercentRange((int)xitemChangeAttr.AttrID); + if (!flag17) + { + string color = XEquipCreateDocument.GetPrefixColor(num2, endIndex, m, xitemChangeAttr.AttrID, xitemChangeAttr.AttrValue); + bool flag18 = this.QuantityIsNeedRemind(color); + if (flag18) + { + return true; + } + } + } + } + } + } + result = false; + } + } + } + } + return result; + } + + public bool IsShowRedDot(SmeltAttr attr) + { + XItem itemByUID = XBagDocument.BagDoc.GetItemByUID(this.CurUid); + bool flag = itemByUID == null; + bool result; + if (flag) + { + result = false; + } + else + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(itemByUID.itemID); + bool flag2 = itemConf == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = itemConf.ItemQuality < 3; + if (flag3) + { + result = false; + } + else + { + uint needGold = this.GetNeedGold(); + bool flag4 = XBagDocument.BagDoc.GetItemCount(1) < (ulong)needGold; + if (flag4) + { + result = false; + } + else + { + uint @int = (uint)XSingleton.singleton.GetInt("SmeltMultipleFactor"); + SeqListRef needItem = this.GetNeedItem(); + for (int i = 0; i < needItem.Count; i++) + { + ulong itemCount = XBagDocument.BagDoc.GetItemCount((int)needItem[i, 0]); + bool flag5 = itemCount < (ulong)(needItem[i, 1] * @int); + if (flag5) + { + return false; + } + } + result = this.QuantityIsNeedRemind(attr.ColorStr); + } + } + } + } + return result; + } + + private bool QuantityIsNeedRemind(string color) + { + return color == XSingleton.singleton.GetValue("Quality0Color") || color == XSingleton.singleton.GetValue("Quality1Color") || color == XSingleton.singleton.GetValue("Quality2Color"); + } + + public void ResetSetting() + { + DlgBase.singleton.ForceSetTipsValue(XTempTipDefine.OD_SMELTSTONE_EXCHANGED, false); + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + specificDocument.SetValue(XOptionsDefine.OD_NO_SMELTSTONE_EXCHANGED_CONFIRM, 0, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSmeltDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSmeltDocument.cs.meta new file mode 100644 index 00000000..43bdfb36 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSmeltDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c94bd51a8c9678c4087f0663fc8d2c7d +timeCreated: 1611404538 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs b/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs new file mode 100644 index 00000000..f01aab4b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs @@ -0,0 +1,55 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal struct XSmeltingInfo + { + public static readonly int MAX_SLOT_COUNT = 6; + + public List Attrs; + + public bool bHasSmelting; + + public bool bCanBeSmelted; + + public uint minQuality; + + public int SlotCapacity; + + public void Init() + { + bool flag = this.Attrs == null; + if (flag) + { + this.Attrs = new List(); + } + else + { + this.Attrs.Clear(); + } + this.minQuality = uint.MaxValue; + this.bHasSmelting = false; + this.SlotCapacity = XSmeltingInfo.MAX_SLOT_COUNT; + this.bCanBeSmelted = true; + } + + public void Clone(ref XSmeltingInfo other) + { + this.Init(); + this.bHasSmelting = other.bHasSmelting; + bool flag = other.Attrs != null; + if (flag) + { + for (int i = 0; i < other.Attrs.Count; i++) + { + this.Attrs.Add(other.Attrs[i]); + } + } + } + + public void SetSlotInfo(int itemid) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs.meta new file mode 100644 index 00000000..070b2f97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSmeltingInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f038bc1a93eff8f4b9cd956431c038a6 +timeCreated: 1611404830 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpectateDocument.cs b/Client/Assets/Scripts/XMainClient/XSpectateDocument.cs new file mode 100644 index 00000000..ddb78d96 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpectateDocument.cs @@ -0,0 +1,382 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpectateDocument : XDocComponent + { + public override uint ID + { + get + { + return XSpectateDocument.uuID; + } + } + + public List SpectateRecord + { + get + { + return this._spectateRecord; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SpectateDocument"); + + private List _spectateRecord = new List(); + + public List MyRecentRecord = new List(); + + public OneLiveRecordInfo WatchMostRecord; + + public OneLiveRecordInfo CommendMostRecord; + + public SeqList PkIntervalList; + + public int TotalWatch; + + public int TotalCommend; + + public int CurrPage = 0; + + public int MaxPage = 0; + + public int CurrTime = 0; + + public int CurrTabs = 0; + + public bool IsLoadingSpectateScene = false; + + public readonly int ITEMPERPAGE = 4; + + public bool MainInterfaceState = false; + + public LiveIconData MainInterfaceData; + + public LiveIconData ClickData; + + public uint TempliveID; + + public LiveType TempLiveType; + + public uint LiveCount = 0u; + + public bool VisibleSetting = false; + + public bool TempSetting = false; + + public override void OnEnterSceneFinally() + { + this.IsLoadingSpectateScene = false; + } + + private void GetPVPInterval() + { + this.PkIntervalList = XSingleton.singleton.GetSequenceList("Spectate_PVP_interval", false); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.GetPVPInterval(); + } + + public void SendQuerySpectateInfo(int ID) + { + this.CurrTabs = ID; + RpcC2G_GetWatchInfoByID rpcC2G_GetWatchInfoByID = new RpcC2G_GetWatchInfoByID(); + rpcC2G_GetWatchInfoByID.oArg.type = ID; + XSingleton.singleton.Send(rpcC2G_GetWatchInfoByID); + } + + public void SetSpectateInfo(int currTime, List list) + { + this.CurrTime = currTime; + this._spectateRecord.Clear(); + for (int i = 0; i < list.Count; i++) + { + OneLiveRecordInfo item = new OneLiveRecordInfo(); + item = list[i]; + this._spectateRecord.Add(item); + } + this.MaxPage = (list.Count + this.ITEMPERPAGE - 1) / this.ITEMPERPAGE; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshSpectate(0); + } + } + + public bool OnLeaveTeamSure(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool bInTeam = specificDocument.bInTeam; + if (bInTeam) + { + specificDocument.ReqTeamOp(TeamOperate.TEAM_LEAVE, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + this.SendEnterSpectateQuery(this.TempliveID, this.TempLiveType); + return true; + } + + public void EnterSpectateBattle(uint liveID, LiveType type) + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Spectate); + if (flag) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("Spectate_UnOpen"), XSingleton.singleton.GetSysOpenLevel(XSysDefine.XSys_Spectate)), "fece00"); + } + else + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + bool flag2 = !specificDocument.bInTeam; + if (flag2) + { + this.SendEnterSpectateQuery(liveID, type); + } + else + { + this.TempliveID = liveID; + this.TempLiveType = type; + XSingleton.singleton.ShowLeaveTeamModalDialog(new ButtonClickEventHandler(this.OnLeaveTeamSure), ""); + } + } + } + + public void SendEnterSpectateQuery(uint liveID, LiveType type) + { + this.IsLoadingSpectateScene = true; + RpcC2G_EnterWatchBattle rpcC2G_EnterWatchBattle = new RpcC2G_EnterWatchBattle(); + rpcC2G_EnterWatchBattle.oArg.liveID = liveID; + rpcC2G_EnterWatchBattle.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_EnterWatchBattle); + } + + public void SendQueryMyLiveInfo() + { + RpcC2G_GetMyWatchRecord rpc = new RpcC2G_GetMyWatchRecord(); + XSingleton.singleton.Send(rpc); + } + + public void SetMyLiveInfo(int watchNum, int commendNum, OneLiveRecordInfo watchMostRecord, OneLiveRecordInfo commendMostRecord, List list, bool visSet) + { + this.TotalWatch = watchNum; + this.TotalCommend = commendNum; + this.WatchMostRecord = watchMostRecord; + this.CommendMostRecord = commendMostRecord; + this.VisibleSetting = visSet; + this.MyRecentRecord.Clear(); + for (int i = 0; i < list.Count; i++) + { + OneLiveRecordInfo item = new OneLiveRecordInfo(); + item = list[i]; + this.MyRecentRecord.Add(item); + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshMyRecord(); + } + } + + public void EnterLiveError(bool isOver) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetWatchBtnGrey(isOver); + } + } + + public void SetLiveCount(uint count) + { + XSingleton.singleton.AddLog(string.Format("Get live count = {0} by server", count), null, null, null, null, null, XDebugColor.XDebug_None); + this.LiveCount = count; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.ShowLiveCount(count); + } + } + + public void SetMainInterfaceBtnState(bool state, LiveIconData data) + { + bool flag = data == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Get MainInterfaceBtnState data of spectate is null", null, null, null, null, null); + } + else + { + bool flag2 = !state && (this.MainInterfaceData == null || data.liveID != this.MainInterfaceData.liveID); + if (!flag2) + { + this.MainInterfaceState = state; + this.MainInterfaceData = data; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_ExcellentLive, true); + } + } + } + + public void SetMainInterfaceBtnFalse() + { + this.MainInterfaceState = false; + this.MainInterfaceData = null; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_ExcellentLive, true); + } + + public void MainInterfaceEnterQuery() + { + bool flag = this.ClickData == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("spectate maininterface click data is null", null, null, null, null, null); + } + else + { + this.EnterSpectateBattle((uint)this.ClickData.liveID, (LiveType)this.ClickData.liveType); + } + } + + public string GetTitle(OneLiveRecordInfo info) + { + string text = XStringDefineProxy.GetString("Spectate_Title_" + XFastEnumIntEqualityComparer.ToInt(info.liveType)); + LiveType liveType = info.liveType; + switch (liveType) + { + case LiveType.LIVE_PVP: + break; + case LiveType.LIVE_NEST: + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + return XExpeditionDocument.GetFullName(specificDocument.GetExpeditionDataByID(info.DNExpID)); + } + case LiveType.LIVE_PROTECTCAPTAIN: + case LiveType.LIVE_GUILDBATTLE: + return text; + case LiveType.LIVE_DRAGON: + { + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + return XExpeditionDocument.GetFullName(specificDocument2.GetExpeditionDataByID(info.DNExpID)); + } + default: + if (liveType != LiveType.LIVE_PVP2) + { + return text; + } + break; + } + text = string.Format("{0}{1}{2}", text, this.GetPVPPostfix(info.tianTiLevel), XStringDefineProxy.GetString("PVP_Point")); + return text; + } + + private string GetPVPPostfix(int pkPoint) + { + bool flag = this.PkIntervalList == null; + string result; + if (flag) + { + result = ""; + } + else + { + bool flag2 = pkPoint < this.PkIntervalList[0, 0]; + if (flag2) + { + result = ""; + } + else + { + for (int i = 0; i < (int)this.PkIntervalList.Count; i++) + { + bool flag3 = pkPoint <= this.PkIntervalList[i, 1]; + if (flag3) + { + return this.PkIntervalList[i, 0].ToString(); + } + } + result = ""; + } + } + return result; + } + + public static LiveType GetLiveTypeBySceneType(SceneType type) + { + if (type <= SceneType.SCENE_WEEK_NEST) + { + if (type <= SceneType.SCENE_PK) + { + if (type == SceneType.SCENE_NEST) + { + return LiveType.LIVE_NEST; + } + if (type == SceneType.SCENE_PK) + { + return LiveType.LIVE_PVP; + } + } + else + { + switch (type) + { + case SceneType.SCENE_PVP: + return LiveType.LIVE_PROTECTCAPTAIN; + case SceneType.SCENE_DRAGON: + return LiveType.LIVE_DRAGON; + case SceneType.SCENE_GMF: + return LiveType.LIVE_GUILDBATTLE; + default: + if (type == SceneType.SCENE_GPR) + { + return LiveType.LIVE_GUILDBATTLE; + } + if (type == SceneType.SCENE_WEEK_NEST) + { + return LiveType.LIVE_DRAGON; + } + break; + } + } + } + else if (type <= SceneType.SCENE_LEAGUE_BATTLE) + { + if (type == SceneType.SCENE_HEROBATTLE) + { + return LiveType.LIVE_HEROBATTLE; + } + if (type == SceneType.SCENE_LEAGUE_BATTLE) + { + return LiveType.LIVE_LEAGUEBATTLE; + } + } + else + { + if (type == SceneType.SCENE_CUSTOMPK) + { + return LiveType.LIVE_CUSTOMPK; + } + if (type == SceneType.SCENE_PKTWO) + { + return LiveType.LIVE_PVP2; + } + if (type == SceneType.SCENE_GCF) + { + return LiveType.LIVE_CROSSGVG; + } + } + XSingleton.singleton.AddErrorLog("Can't find The live Type by SceneType", null, null, null, null, null); + return LiveType.LIVE_MAX; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpectateDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSpectateDocument.cs.meta new file mode 100644 index 00000000..145d84ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpectateDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7864bfb702f221641bdd425f0ac41630 +timeCreated: 1611403979 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpectateLevelRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XSpectateLevelRewardDocument.cs new file mode 100644 index 00000000..5a1b296b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpectateLevelRewardDocument.cs @@ -0,0 +1,214 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpectateLevelRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XSpectateLevelRewardDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SpectateLevelRewardDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static SpectateLevelRewardConfig _levelRewardConfig = new SpectateLevelRewardConfig(); + + public List DataList; + + public Dictionary StarDict = new Dictionary(); + + public uint WatchNum; + + public uint CommendNum; + + public ulong WinUid; + + public ulong MvpUid; + + public int[] DataType; + + public List WidthList = new List(); + + public int WidthTotal; + + public int WinTag; + + public double DamageSum; + + private float LastLevelSceneTime = 0f; + + public static void Execute(OnLoadedCallback callback = null) + { + XSpectateLevelRewardDocument.AsyncLoader.AddTask("Table/SpectateLevelRewardConfig", XSpectateLevelRewardDocument._levelRewardConfig, false); + XSpectateLevelRewardDocument.AsyncLoader.Execute(callback); + } + + public bool InitData() + { + this.DamageSum = 0.0; + for (int i = 0; i < this.DataList.Count; i++) + { + this.DamageSum += this.DataList[i].damageall; + } + int key = XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.SceneType); + SpectateLevelRewardConfig.RowData bySceneType = XSpectateLevelRewardDocument._levelRewardConfig.GetBySceneType(key); + bool flag = bySceneType == null; + bool result; + if (flag) + { + XSingleton.singleton.AddLog("SpectateLevelRewardConfig can't find by sceneType = ", key.ToString(), null, null, null, null, XDebugColor.XDebug_None); + result = false; + } + else + { + this.DataType = bySceneType.DataConfig; + this.SetWidth(); + result = true; + } + return result; + } + + public void SetWidth() + { + this.WidthList.Clear(); + this.WidthTotal = 0; + bool flag = this.DataType != null; + if (flag) + { + int i = 0; + while (i < this.DataType.Length) + { + int num = 0; + switch (this.DataType[i]) + { + case 3: + num = 332; + break; + case 4: + goto IL_B6; + case 5: + num = 116; + break; + case 6: + num = 140; + break; + case 7: + num = 120; + break; + case 8: + num = 112; + break; + case 9: + num = 108; + break; + case 10: + num = 124; + break; + case 11: + num = 160; + break; + case 12: + num = 140; + this.CalWinOrLoseMess(); + break; + case 13: + num = 135; + break; + default: + goto IL_B6; + } + IL_DD: + this.WidthTotal += num; + this.WidthList.Add(num); + i++; + continue; + IL_B6: + XSingleton.singleton.AddErrorLog("SpectateLevelRewardConfig DataConfig Error! Can't find width of type = ", this.DataType[i].ToString(), null, null, null, null); + goto IL_DD; + } + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public void SetData(BattleWatcherNtf ntf) + { + this.DataList = ntf.data; + this.StarDict.Clear(); + bool flag = ntf.star != null; + if (flag) + { + for (int i = 0; i < ntf.star.Count; i++) + { + this.StarDict[ntf.star[i].roleid] = ntf.star[i].star; + } + } + this.WinUid = ntf.winuid; + this.MvpUid = ntf.mvp; + this.WatchNum = ntf.watchinfo.wathccount; + this.CommendNum = ntf.watchinfo.likecount; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + } + bool flag3 = !this.InitData(); + if (!flag3) + { + DlgBase.singleton.ShowData(); + } + } + + public void LevelScene() + { + bool flag = Time.time - this.LastLevelSceneTime < 5f; + if (!flag) + { + this.LastLevelSceneTime = Time.time; + XSingleton.singleton.ReqLeaveScene(); + } + } + + private void CalWinOrLoseMess() + { + bool flag = this.WinUid == 0UL; + if (flag) + { + this.WinTag = 0; + } + else + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + bool flag2 = true; + bool flag3 = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag3) + { + XHeroBattleDocument specificDocument2 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + flag2 = (specificDocument2.MyTeam == (uint)this.WinUid); + } + else + { + bool flag4 = !specificDocument.IsBlueTeamDict.TryGetValue(this.WinUid, out flag2); + if (flag4) + { + XSingleton.singleton.AddErrorLog("spectate level reward can't find this winer's team, winer uid = ", this.WinUid.ToString(), null, null, null, null); + } + } + this.WinTag = (flag2 ? 1 : -1); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpectateLevelRewardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSpectateLevelRewardDocument.cs.meta new file mode 100644 index 00000000..181db64f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpectateLevelRewardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 36173e7abfce43943bf1c8442ebbf53e +timeCreated: 1611403561 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpectateSceneDocument.cs b/Client/Assets/Scripts/XMainClient/XSpectateSceneDocument.cs new file mode 100644 index 00000000..4615816f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpectateSceneDocument.cs @@ -0,0 +1,1035 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpectateSceneDocument : XDocComponent + { + public override uint ID + { + get + { + return XSpectateSceneDocument.uuID; + } + } + + public SpectateSceneView _SpectateSceneView + { + get + { + return this._view; + } + set + { + this._view = value; + } + } + + public uint CurrentBuffID + { + get + { + return this._currentBuffID; + } + } + + public bool ShowStrengthPresevedBar + { + get + { + return this._showStrengthPresevedBar; + } + } + + public bool ShowTeamMemberDamageHUD { get; set; } + + public LiveTable LiveConfigTable + { + get + { + return XSpectateSceneDocument._liveConfigTable; + } + } + + public bool IsCrossServerBattle { get; set; } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SpectateSceneDocument"); + + private SpectateSceneView _view = null; + + private uint _currentBuffID = 0u; + + private bool _showStrengthPresevedBar = false; + + private XEntity _strengthPresevedEntity = null; + + private List _BattleLines = new List(); + + private static string LINEFX = "Effects/FX_Particle/Roles/Lzg_Ty/shuangren_xian"; + + public List LeftTeamMonitorData = new List(); + + public List RightTeamMonitorData = new List(); + + public Dictionary IsBlueTeamDict = new Dictionary(); + + public HashSet UnInitRoleList = new HashSet(); + + public ulong BlueSaveID = 0UL; + + public ulong RedSaveID = 0UL; + + public uint BlueFightGroup = uint.MaxValue; + + public uint RedFightGroup = uint.MaxValue; + + public int WatchNum = 0; + + public int CommendNum = 0; + + public int WatchTarget; + + public int CommendTarget; + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static LiveTable _liveConfigTable = new LiveTable(); + + private float LastLevelSceneTime = 0f; + + public OneLiveRecordInfo liveRecordInfo; + + public static void Execute(OnLoadedCallback callback = null) + { + XSpectateSceneDocument.AsyncLoader.AddTask("Table/LiveTable", XSpectateSceneDocument._liveConfigTable, false); + XSpectateSceneDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.ShowTeamMemberDamageHUD = (XSingleton.singleton.GetInt("ShowTeamMemberDamageHUD") == 1); + } + + public void GetTargetNum(bool isBattle = false) + { + LiveTable.RowData rowData; + if (isBattle) + { + rowData = XSpectateSceneDocument._liveConfigTable.Table[0]; + } + else + { + rowData = XSpectateSceneDocument._liveConfigTable.GetBySceneType(XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.SceneType)); + } + bool flag = rowData != null; + if (flag) + { + this.WatchTarget = rowData.ShowWatch; + this.CommendTarget = rowData.ShowPraise; + } + else + { + XSingleton.singleton.AddErrorLog("Can't find liveConfigTable by Scenetype. Scenetype = ", XFastEnumIntEqualityComparer.ToInt(XSingleton.singleton.SceneType).ToString(), null, null, null, null); + } + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + this._BattleLines.Clear(); + } + + public override void OnEnterSceneFinally() + { + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this._view != null && this._view.IsLoaded() && this._view.IsVisible(); + if (flag) + { + this.SendCheckTime(); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ArmorRecover, new XComponent.XEventHandler(this.OnArmorRecover)); + base.RegisterEvent(XEventDefine.XEvent_ArmorBroken, new XComponent.XEventHandler(this.OnArmorBroken)); + base.RegisterEvent(XEventDefine.XEvent_WoozyOn, new XComponent.XEventHandler(this.OnWoozyOn)); + base.RegisterEvent(XEventDefine.XEvent_WoozyOff, new XComponent.XEventHandler(this.OnWoozyOff)); + base.RegisterEvent(XEventDefine.XEvent_StrengthPresevedOn, new XComponent.XEventHandler(this.OnStrengthPresevedOn)); + base.RegisterEvent(XEventDefine.XEvent_StrengthPresevedOff, new XComponent.XEventHandler(this.OnStrengthPresevedOff)); + base.RegisterEvent(XEventDefine.XEvent_ProjectDamage, new XComponent.XEventHandler(this.OnProjectDamage)); + base.RegisterEvent(XEventDefine.XEvent_BuffChange, new XComponent.XEventHandler(this.OnBuffChange)); + base.RegisterEvent(XEventDefine.XEvent_OnEntityCreated, new XComponent.XEventHandler(this.OnEntityCreate)); + base.RegisterEvent(XEventDefine.XEvent_OnEntityDeleted, new XComponent.XEventHandler(this.OnEntityDelete)); + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + bool bSpectator = XSingleton.singleton.bSpectator; + if (bSpectator) + { + this.UnInitRoleList.Clear(); + this.BlueFightGroup = uint.MaxValue; + this.RedFightGroup = uint.MaxValue; + } + } + + public bool TryGetSummonedIsBlueTeam(XEntity entity, out bool isBlueTeam) + { + isBlueTeam = true; + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(entity.Attributes.HostID); + bool flag = XEntity.ValideEntity(entityConsiderDeath); + bool result; + if (flag) + { + result = this.TryGetEntityIsBlueTeam(entityConsiderDeath, out isBlueTeam); + } + else + { + XSingleton.singleton.AddGreenLog("Set Summoned billboard on spectator mode, but master invalide. try get team by fight group.", null, null, null, null, null); + bool flag2 = entity.Attributes == null; + if (flag2) + { + result = false; + } + else + { + bool flag3 = this.BlueFightGroup != uint.MaxValue; + if (flag3) + { + isBlueTeam = (entity.Attributes.FightGroup == this.BlueFightGroup); + result = true; + } + else + { + bool flag4 = this.RedFightGroup != uint.MaxValue; + if (flag4) + { + isBlueTeam = (entity.Attributes.FightGroup != this.RedFightGroup); + result = true; + } + else + { + result = false; + } + } + } + } + return result; + } + + public bool TryGetTeam(XEntity entity, out bool isBlueTeam) + { + isBlueTeam = true; + SceneType sceneType = XSingleton.singleton.SceneType; + if (sceneType <= SceneType.SCENE_GPR) + { + if (sceneType != SceneType.SCENE_GMF && sceneType != SceneType.SCENE_GPR) + { + goto IL_BF; + } + } + else if (sceneType != SceneType.SCENE_LEAGUE_BATTLE && sceneType != SceneType.SCENE_GCF) + { + goto IL_BF; + } + XTeamLeagueBattleDocument specificDocument = XDocuments.GetSpecificDocument(XTeamLeagueBattleDocument.uuID); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_LEAGUE_BATTLE; + ulong num; + if (flag) + { + num = specificDocument.GetBattleTeamLeagueID(entity.Attributes.RoleID); + } + else + { + num = (entity.Attributes as XRoleAttributes).GuildID; + } + bool flag2 = num == this.BlueSaveID || num == this.RedSaveID; + if (flag2) + { + isBlueTeam = (num == this.BlueSaveID); + this.IsBlueTeamDict[entity.Attributes.RoleID] = isBlueTeam; + return true; + } + return false; + IL_BF: + return this.IsBlueTeamDict.TryGetValue(entity.Attributes.RoleID, out isBlueTeam); + } + + public bool TryGetEntityIsBlueTeam(XEntity entity, out bool isBlueTeam) + { + isBlueTeam = true; + bool flag = entity.Attributes == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = !this.TryGetTeam(entity, out isBlueTeam); + if (flag2) + { + bool flag3 = !this.UnInitRoleList.Contains(entity.Attributes.RoleID); + if (flag3) + { + this.UnInitRoleList.Add(entity.Attributes.RoleID); + } + XSingleton.singleton.AddLog("Can't find this player's TeamMsg, Maybe scene is end. ID = ", entity.ID.ToString(), " Name = ", entity.Name, " Scene = ", XSingleton.singleton.SceneType.ToString(), XDebugColor.XDebug_None); + result = false; + } + else + { + bool flag4 = isBlueTeam; + if (flag4) + { + this.BlueFightGroup = entity.Attributes.FightGroup; + } + else + { + this.RedFightGroup = entity.Attributes.FightGroup; + } + result = true; + } + } + return result; + } + + public void DealWithTeamMessage(OneLiveRecordInfo data) + { + XSingleton.singleton.AddLog("Get TeamMonitor Data In Spectator Mode.", null, null, null, null, null, XDebugColor.XDebug_None); + this.liveRecordInfo = data; + bool flag = DlgBase.singleton.SpectateTeamMonitor != null; + if (flag) + { + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(true, this.LeftTeamMonitorData); + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(false, this.RightTeamMonitorData); + } + this.IsBlueTeamDict.Clear(); + bool flag2 = data.liveType == LiveType.LIVE_GUILDBATTLE || data.liveType == LiveType.LIVE_CROSSGVG; + if (flag2) + { + XGuildDocument specificDocument = XDocuments.GetSpecificDocument(XGuildDocument.uuID); + bool flag3 = specificDocument.bInGuild && specificDocument.BasicData.guildName.Equals(data.nameInfos[1].guildName); + if (flag3) + { + this.BlueSaveID = data.nameInfos[1].guildID; + this.RedSaveID = data.nameInfos[0].guildID; + } + else + { + this.BlueSaveID = data.nameInfos[0].guildID; + this.RedSaveID = data.nameInfos[1].guildID; + } + } + else + { + bool flag4 = data.liveType == LiveType.LIVE_LEAGUEBATTLE; + if (flag4) + { + XFreeTeamVersusLeagueDocument specificDocument2 = XDocuments.GetSpecificDocument(XFreeTeamVersusLeagueDocument.uuID); + bool flag5 = specificDocument2.TeamLeagueID == data.nameInfos[1].leagueID; + if (flag5) + { + this.BlueSaveID = data.nameInfos[1].leagueID; + this.RedSaveID = data.nameInfos[0].leagueID; + } + else + { + this.BlueSaveID = data.nameInfos[0].leagueID; + this.RedSaveID = data.nameInfos[1].leagueID; + } + } + else + { + XHeroBattleDocument specificDocument3 = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + bool flag6 = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE; + if (flag6) + { + specificDocument3.SpectateUid = 0UL; + } + for (int i = 0; i < data.nameInfos.Count; i++) + { + this.IsBlueTeamDict[data.nameInfos[i].roleInfo.roleID] = data.nameInfos[i].isLeft; + bool flag7 = XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE && data.nameInfos[i].isLeft && specificDocument3.SpectateUid == 0UL; + if (flag7) + { + specificDocument3.SpectateUid = data.nameInfos[i].roleInfo.roleID; + } + } + } + } + bool flag8 = this.UnInitRoleList.Count != 0; + if (flag8) + { + XSingleton.singleton.AddGreenLog("deal with un init role on spectate msg, cout = ", this.UnInitRoleList.Count.ToString(), null, null, null, null); + foreach (ulong id in this.UnInitRoleList) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(id); + bool flag9 = entityConsiderDeath != null; + if (flag9) + { + this.DealWithUnitAppear(entityConsiderDeath); + bool flag10 = entityConsiderDeath.BillBoard != null; + if (flag10) + { + entityConsiderDeath.BillBoard.Refresh(); + } + bool flag11 = DlgBase.singleton.IndicateHandler != null; + if (flag11) + { + DlgBase.singleton.IndicateHandler.ResetMiniMapElement(id); + } + } + } + } + } + + public void DealWithUnitAppear(XEntity entity) + { + bool flag = !entity.IsRole; + if (!flag) + { + bool flag2 = !DlgBase.singleton.IsLoaded(); + if (!flag2) + { + for (int i = 0; i < this.LeftTeamMonitorData.Count; i++) + { + bool flag3 = this.LeftTeamMonitorData[i].uid == entity.Attributes.RoleID; + if (flag3) + { + return; + } + } + for (int j = 0; j < this.RightTeamMonitorData.Count; j++) + { + bool flag4 = this.RightTeamMonitorData[j].uid == entity.Attributes.RoleID; + if (flag4) + { + return; + } + } + XSingleton.singleton.AddLog("DealWithUnitAppear ID = ", entity.Attributes.RoleID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + bool flag5 = true; + bool flag6 = !this.TryGetEntityIsBlueTeam(entity, out flag5); + if (!flag6) + { + XTeamBloodUIData xteamBloodUIData = new XTeamBloodUIData(); + xteamBloodUIData.uid = entity.Attributes.RoleID; + xteamBloodUIData.entityID = entity.Attributes.RoleID; + xteamBloodUIData.level = entity.Attributes.Level; + xteamBloodUIData.name = entity.Attributes.Name; + xteamBloodUIData.profession = (RoleType)entity.Attributes.TypeID; + xteamBloodUIData.bIsLeader = false; + xteamBloodUIData.isLeft = flag5; + bool flag7 = flag5; + if (flag7) + { + this.LeftTeamMonitorData.Add(xteamBloodUIData); + bool flag8 = this.LeftTeamMonitorData.Count == 1; + if (flag8) + { + XSingleton.singleton.Player.WatchIt(entity as XRole); + } + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(true, this.LeftTeamMonitorData); + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(false, this.RightTeamMonitorData); + } + else + { + this.RightTeamMonitorData.Add(xteamBloodUIData); + bool flag9 = this.LeftTeamMonitorData.Count == 0; + if (flag9) + { + XSingleton.singleton.Player.WatchIt(entity as XRole); + } + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(true, this.LeftTeamMonitorData); + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(false, this.RightTeamMonitorData); + } + } + } + } + } + + public void DealWithUnitDisAppear(ulong roleID) + { + bool flag = !DlgBase.singleton.IsLoaded(); + if (!flag) + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_GMF || XSingleton.singleton.SceneType == SceneType.SCENE_GPR || XSingleton.singleton.SceneType == SceneType.SCENE_LEAGUE_BATTLE; + if (flag2) + { + this.DeleteMonitorByRoleID(roleID); + } + else + { + DlgBase.singleton.SpectateTeamMonitor.OnTeamInfoChanged(); + } + this.ChangeSpectateWhenWatchNull(); + } + } + + public void DeleteMonitorByRoleID(ulong roleID) + { + XSingleton.singleton.AddLog("GuildArena DeleteMonitorByRoleID ID = ", roleID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + for (int i = 0; i < this.LeftTeamMonitorData.Count; i++) + { + bool flag = this.LeftTeamMonitorData[i].uid == roleID; + if (flag) + { + this.LeftTeamMonitorData.RemoveAt(i); + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(true, this.LeftTeamMonitorData); + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(false, this.RightTeamMonitorData); + return; + } + } + for (int j = 0; j < this.RightTeamMonitorData.Count; j++) + { + bool flag2 = this.RightTeamMonitorData[j].uid == roleID; + if (flag2) + { + this.RightTeamMonitorData.RemoveAt(j); + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(true, this.LeftTeamMonitorData); + DlgBase.singleton.SpectateTeamMonitor.OnLeftTeamInfoChanged(false, this.RightTeamMonitorData); + return; + } + } + XSingleton.singleton.AddLog("Delete Monitor in Spectate Mode fail. MayBe isn't a role. ID = ", roleID.ToString(), null, null, null, null, XDebugColor.XDebug_None); + } + + private void ChangeSpectateWhenWatchNull() + { + bool flag = XSingleton.singleton.Player != null && XSingleton.singleton.Player.WatchTo == null; + if (flag) + { + for (int i = 0; i < this.LeftTeamMonitorData.Count; i++) + { + XEntity entityConsiderDeath = XSingleton.singleton.GetEntityConsiderDeath(this.LeftTeamMonitorData[i].uid); + bool flag2 = entityConsiderDeath != null && entityConsiderDeath.IsRole; + if (flag2) + { + XSingleton.singleton.Player.WatchIt(entityConsiderDeath as XRole); + return; + } + } + for (int j = 0; j < this.RightTeamMonitorData.Count; j++) + { + XEntity entityConsiderDeath2 = XSingleton.singleton.GetEntityConsiderDeath(this.RightTeamMonitorData[j].uid); + bool flag3 = entityConsiderDeath2 != null && entityConsiderDeath2.IsRole; + if (flag3) + { + XSingleton.singleton.Player.WatchIt(entityConsiderDeath2 as XRole); + return; + } + } + XSingleton.singleton.AddLog("Scene have not player. watch null.", null, null, null, null, null, XDebugColor.XDebug_None); + } + } + + protected bool OnProjectDamage(XEventArgs args) + { + bool flag = this._view == null || !this._view.IsVisible(); + bool result; + if (flag) + { + result = false; + } + else + { + XProjectDamageEventArgs xprojectDamageEventArgs = args as XProjectDamageEventArgs; + this._view.OnProjectDamage(xprojectDamageEventArgs.Damage, xprojectDamageEventArgs.Receiver); + result = true; + } + return result; + } + + protected bool OnArmorRecover(XEventArgs args) + { + XArmorRecoverArgs xarmorRecoverArgs = args as XArmorRecoverArgs; + XEntity self = xarmorRecoverArgs.Self; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.OnPlaySuperarmorFx(self, false); + this._view.SetupSpeedFx(self, false, Color.white); + result = true; + } + return result; + } + + protected bool OnArmorBroken(XEventArgs args) + { + XArmorBrokenArgs xarmorBrokenArgs = args as XArmorBrokenArgs; + XEntity self = xarmorBrokenArgs.Self; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.OnPlaySuperarmorFx(self, true); + this._view.SetupSpeedFx(self, false, Color.white); + result = true; + } + return result; + } + + protected bool OnWoozyOn(XEventArgs args) + { + XWoozyOnArgs xwoozyOnArgs = args as XWoozyOnArgs; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.OnStopSuperarmorFx(xwoozyOnArgs.Self); + result = true; + } + return result; + } + + protected bool OnWoozyOff(XEventArgs args) + { + XWoozyOffArgs xwoozyOffArgs = args as XWoozyOffArgs; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.OnStopSuperarmorFx(xwoozyOffArgs.Self); + result = true; + } + return result; + } + + protected bool OnStrengthPresevedOn(XEventArgs args) + { + this._showStrengthPresevedBar = true; + XStrengthPresevationOnArgs xstrengthPresevationOnArgs = args as XStrengthPresevationOnArgs; + this._strengthPresevedEntity = xstrengthPresevationOnArgs.Host; + bool flag = this._view == null; + bool result; + if (flag) + { + result = false; + } + else + { + this._view.ShowStrengthPresevedBar(xstrengthPresevationOnArgs.Host); + result = true; + } + return result; + } + + protected bool OnStrengthPresevedOff(XEventArgs args) + { + XStrengthPresevationOffArgs xstrengthPresevationOffArgs = args as XStrengthPresevationOffArgs; + bool flag = !this._showStrengthPresevedBar; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = this._strengthPresevedEntity == null; + if (flag2) + { + result = false; + } + else + { + this._showStrengthPresevedBar = false; + this._strengthPresevedEntity = null; + bool flag3 = this._view == null; + if (flag3) + { + result = false; + } + else + { + this._view.HideStrengthPresevedBar(); + this._view.StopNotice(); + result = true; + } + } + } + return result; + } + + protected bool OnBuffChange(XEventArgs args) + { + XBuffChangeEventArgs xbuffChangeEventArgs = args as XBuffChangeEventArgs; + this.OnBuffChange(xbuffChangeEventArgs.entity); + return true; + } + + protected void OnBuffChange(XEntity entity) + { + bool flag = entity == null || !DlgBase.singleton.IsLoaded(); + if (!flag) + { + bool isRole = entity.IsRole; + if (isRole) + { + XBuffComponent buffs = entity.Buffs; + bool flag2 = buffs != null; + if (flag2) + { + DlgBase.singleton.SpectateTeamMonitor.m_TeamMonitor_Left.OnTeamMemberBuffChange(entity.ID, buffs.GetUIBuffList()); + DlgBase.singleton.SpectateTeamMonitor.m_TeamMonitor_Right.OnTeamMemberBuffChange(entity.ID, buffs.GetUIBuffList()); + DlgBase.singleton.EnemyInfoHandler.OnBuffChange(entity.ID); + } + } + else + { + bool isBoss = entity.IsBoss; + if (isBoss) + { + DlgBase.singleton.EnemyInfoHandler.OnBuffChange(entity.ID); + } + } + } + } + + public bool CheckBindQTE() + { + List buffList = XSingleton.singleton.Player.Buffs.GetBuffList(); + string[] array = XSingleton.singleton.GetValue("BindBuffID").Split(XGlobalConfig.ListSeparator); + for (int i = 0; i < buffList.Count; i++) + { + for (int j = 0; j < array.Length; j++) + { + bool flag = buffList[i] == uint.Parse(array[j]); + if (flag) + { + this._currentBuffID = buffList[i]; + return true; + } + } + } + this._currentBuffID = 0u; + return false; + } + + public void LineStateChange(ulong e1, ulong e2, bool on) + { + BattleLine battleLine = this.FindBattleLine(e1, e2); + if (on) + { + bool flag = battleLine == null; + if (flag) + { + BattleLine battleLine2 = new BattleLine(); + battleLine2.e1 = e1; + battleLine2.e2 = e2; + this._BattleLines.Add(battleLine2); + battleLine = battleLine2; + } + battleLine.xe1 = XSingleton.singleton.GetEntity(e1); + battleLine.xe2 = XSingleton.singleton.GetEntity(e2); + battleLine.fx = XSingleton.singleton.CreateFx(XSpectateSceneDocument.LINEFX, null, true); + Vector3 position = (battleLine.xe1.EngineObject.Position + battleLine.xe2.EngineObject.Position) / 2f + new Vector3(0f, battleLine.xe1.Height / 2f, 0f); + Quaternion rotation = Quaternion.FromToRotation(battleLine.xe1.EngineObject.Position - battleLine.xe2.EngineObject.Position, Vector3.right); + battleLine.fx.Play(position, rotation, Vector3.one, 1f); + } + else + { + bool flag2 = battleLine != null; + if (flag2) + { + this._BattleLines.Remove(battleLine); + XSingleton.singleton.DestroyFx(battleLine.fx, true); + } + } + } + + public void RefreshTowerSceneInfo(PtcG2C_TowerSceneInfoNtf infoNtf) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + ExpeditionTable.RowData expeditionDataByID = specificDocument.GetExpeditionDataByID(specificDocument.ExpeditionId); + uint randomID = expeditionDataByID.RandomSceneIDs[infoNtf.Data.curTowerFloor - 1]; + List randomSceneList = specificDocument.GetRandomSceneList(randomID); + bool flag = randomSceneList.Count > 0; + if (flag) + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(randomSceneList[0]); + string file = sceneData.configFile + "_sc"; + XSingleton.singleton.PreloadLevelScript(file); + } + } + + protected BattleLine FindBattleLine(ulong e1, ulong e2) + { + for (int i = 0; i < this._BattleLines.Count; i++) + { + bool flag = (e1 == this._BattleLines[i].e1 && e2 == this._BattleLines[i].e2) || (e1 == this._BattleLines[i].e2 && e2 == this._BattleLines[i].e1); + if (flag) + { + return this._BattleLines[i]; + } + } + return null; + } + + private bool OnEntityCreate(XEventArgs args) + { + XOnEntityCreatedArgs xonEntityCreatedArgs = args as XOnEntityCreatedArgs; + this.DealWithUnitAppear(xonEntityCreatedArgs.entity); + this.MiniMapAdd(xonEntityCreatedArgs.entity); + return true; + } + + private bool OnEntityDelete(XEventArgs args) + { + XOnEntityDeletedArgs xonEntityDeletedArgs = args as XOnEntityDeletedArgs; + this.MiniMapDel(xonEntityDeletedArgs.Id); + this.DealWithUnitDisAppear(xonEntityDeletedArgs.Id); + return true; + } + + private void MiniMapAdd(XEntity e) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapAdd(e); + } + } + } + + private void MiniMapDel(ulong uid) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapDel(uid); + } + } + } + + public static void SetMiniMapElement(ulong id, string spriteName, int width, int height) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.SetMiniMapElement(id, spriteName, width, height); + } + } + } + + public static void ResetMiniMapElement(ulong id) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.ResetMiniMapElement(id); + } + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + for (int i = 0; i < this._BattleLines.Count; i++) + { + this._BattleLines[i].fx.Position = (this._BattleLines[i].xe1.EngineObject.Position + this._BattleLines[i].xe2.EngineObject.Position) / 2f + new Vector3(0f, this._BattleLines[i].xe1.Height / 2f, 0f); + this._BattleLines[i].fx.Rotation = Quaternion.FromToRotation(this._BattleLines[i].xe1.EngineObject.Position - this._BattleLines[i].xe2.EngineObject.Position, Vector3.right); + } + } + + public void SendCommendBtnClick() + { + RpcC2G_CommendWatchBattle rpc = new RpcC2G_CommendWatchBattle(); + XSingleton.singleton.Send(rpc); + } + + public void LevelScene() + { + bool flag = Time.time - this.LastLevelSceneTime < 5f; + if (!flag) + { + this.LastLevelSceneTime = Time.time; + XSingleton.singleton.ReqLeaveScene(); + } + } + + public static bool WhetherWathchNumShow(int watchNum, int commendNum, int sceneType) + { + LiveTable.RowData bySceneType = XSpectateSceneDocument._liveConfigTable.GetBySceneType(sceneType); + bool flag = bySceneType == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = watchNum >= bySceneType.ShowWatch || commendNum >= bySceneType.ShowPraise; + result = flag2; + } + return result; + } + + public void CommendClickSuccess() + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.SpectateHandler != null; + if (flag) + { + DlgBase.singleton.SpectateHandler.CommendSuccess(); + } + } + + public static void SetMiniMapSize(Vector2 size, float scale = 0f) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.SetMiniMapSize(size, scale); + } + } + } + + public static uint AddMiniMapFx(Vector3 pos, string fx) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + return DlgBase.singleton.IndicateHandler.MiniMapFxAdd(pos, fx); + } + } + return 0u; + } + + public static void DelMiniMapFx(uint token) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapFxDel(token); + } + } + } + + public static uint AddMiniMapPic(Vector3 pos, string fx) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + return DlgBase.singleton.IndicateHandler.MiniMapPicAdd(pos, fx); + } + } + return 0u; + } + + public static void DelMiniMapPic(uint token) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + bool flag2 = DlgBase.singleton.IndicateHandler != null; + if (flag2) + { + DlgBase.singleton.IndicateHandler.MiniMapPicDel(token); + } + } + } + + public void SendCheckTime() + { + bool sceneStarted = XSingleton.singleton.SceneStarted; + if (sceneStarted) + { + RpcC2G_QuerySceneTime rpc = new RpcC2G_QuerySceneTime(); + XSingleton.singleton.Send(rpc); + } + } + + public void ResetSceneTime(int time) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + DlgBase.singleton.ResetLeftTime(time); + } + } + + public void ChangeSpectator(XRole role) + { + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.IndicateHandler.ChangeWatchToEntity(role); + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_PVP; + if (flag2) + { + XBattleCaptainPVPDocument specificDocument = XDocuments.GetSpecificDocument(XBattleCaptainPVPDocument.uuID); + bool flag3 = specificDocument.spectateInitTeam == 0; + if (flag3) + { + specificDocument.ReqBattleCaptainPVPRefreshInfo(true); + } + else + { + bool flag4 = this.IsBlueTeamDict[role.ID]; + if (flag4) + { + specificDocument.spectateNowTeam = 1; + } + else + { + specificDocument.spectateNowTeam = 2; + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpectateSceneDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSpectateSceneDocument.cs.meta new file mode 100644 index 00000000..aeadd10f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpectateSceneDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6daa03dd18a144d489c87376a609a472 +timeCreated: 1611403902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpectateTeamMonitorHandler.cs b/Client/Assets/Scripts/XMainClient/XSpectateTeamMonitorHandler.cs new file mode 100644 index 00000000..d9b7971c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpectateTeamMonitorHandler.cs @@ -0,0 +1,156 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpectateTeamMonitorHandler : DlgHandlerBase + { + public XTeamMonitorHandler m_TeamMonitor_Left; + + public XTeamMonitorHandler m_TeamMonitor_Right; + + private GameObject m_TeamGo_Left; + + private GameObject m_TeamGo_Right; + + private IXUICheckBox m_RankCheckBox; + + private IXUICheckBox m_TeamCheckBox; + + private bool isTabsShow = true; + + protected override void Init() + { + this.m_TeamGo_Left = base.PanelObject.transform.Find("L/TeamFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_TeamMonitor_Left, this.m_TeamGo_Left, null, false); + this.m_TeamGo_Left = base.PanelObject.transform.Find("L/TeamFrame/TeamPanel").gameObject; + this.m_TeamGo_Right = base.PanelObject.transform.Find("R/TeamFrame").gameObject; + DlgHandlerBase.EnsureCreate(ref this.m_TeamMonitor_Right, this.m_TeamGo_Right, null, false); + this.m_TeamGo_Right = base.PanelObject.transform.Find("R/TeamFrame/TeamPanel").gameObject; + this.m_RankCheckBox = (base.PanelObject.transform.Find("TabList/RankParent/Rank").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_TeamCheckBox = (base.PanelObject.transform.Find("TabList/TeamParent/Team").GetComponent("XUICheckBox") as IXUICheckBox); + XSpectateDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateDocument.uuID); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_PK || XSingleton.singleton.SceneType == SceneType.SCENE_GMF || XSingleton.singleton.SceneType == SceneType.SCENE_GPR || XSingleton.singleton.SceneType == SceneType.SCENE_LEAGUE_BATTLE || XSingleton.singleton.SceneType == SceneType.SCENE_CUSTOMPK || XSingleton.singleton.SceneType == SceneType.SCENE_PKTWO || XSingleton.singleton.SceneType == SceneType.SCENE_GCF; + if (flag) + { + this.isTabsShow = false; + this.m_RankCheckBox.gameObject.SetActive(false); + this.m_TeamCheckBox.gameObject.SetActive(false); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_RankCheckBox.ID = 0UL; + this.m_TeamCheckBox.ID = 1UL; + this.m_RankCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnTabSelectionChanged)); + this.m_TeamCheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this._OnTabSelectionChanged)); + } + + private bool _OnTabSelectionChanged(IXUICheckBox ckb) + { + bool flag = !ckb.bChecked; + bool result; + if (flag) + { + result = true; + } + else + { + bool flag2 = ckb.ID == 0UL; + if (flag2) + { + this.m_TeamMonitor_Left.m_DamageRankHandler.SetVisible(true); + this.m_TeamGo_Left.SetActive(false); + this.m_TeamGo_Right.SetActive(false); + } + else + { + this.m_TeamMonitor_Left.m_DamageRankHandler.SetVisible(false); + this.m_TeamGo_Left.SetActive(true); + this.m_TeamGo_Right.SetActive(true); + this.m_TeamMonitor_Left.CheckToggleState(); + this.m_TeamMonitor_Right.CheckToggleState(); + } + result = true; + } + return result; + } + + protected override void OnHide() + { + this.m_TeamMonitor_Left.SetVisible(false); + this.m_TeamMonitor_Right.SetVisible(false); + this.m_RankCheckBox.gameObject.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + this.m_TeamCheckBox.gameObject.transform.localPosition = Vector3.one * (float)XGameUI._far_far_away; + } + + protected override void OnShow() + { + this.m_TeamMonitor_Left.SetVisible(true); + this.m_TeamMonitor_Right.SetVisible(true); + bool flag = this.isTabsShow; + if (flag) + { + this.m_RankCheckBox.gameObject.transform.localPosition = Vector3.zero; + this.m_TeamCheckBox.gameObject.transform.localPosition = Vector3.zero; + } + } + + public override void OnUnload() + { + this.m_TeamMonitor_Left.OnUnload(); + this.m_TeamMonitor_Right.OnUnload(); + base.OnUnload(); + } + + public void InitWhenShowMainUI() + { + XSpectateSceneDocument specificDocument = XDocuments.GetSpecificDocument(XSpectateSceneDocument.uuID); + this.m_TeamMonitor_Left.InitWhenShowMainUIByBloodList(specificDocument.LeftTeamMonitorData); + this.m_TeamMonitor_Right.InitWhenShowMainUIByBloodList(specificDocument.RightTeamMonitorData); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + byte teamInfoDefaultTab = sceneData.TeamInfoDefaultTab; + if (teamInfoDefaultTab != 0) + { + if (teamInfoDefaultTab == 1) + { + this.m_RankCheckBox.bChecked = true; + } + } + else + { + this.m_TeamCheckBox.bChecked = true; + } + } + + public void OnLeftTeamInfoChanged(bool isLeft, List list) + { + if (isLeft) + { + this.m_TeamMonitor_Left.TeamInfoChangeOnSpectate(list); + } + else + { + this.m_TeamMonitor_Right.TeamInfoChangeOnSpectate(list); + } + } + + public void OnTeamInfoChanged() + { + this.m_TeamMonitor_Left.OnTeamInfoChanged(); + this.m_TeamMonitor_Right.OnTeamInfoChanged(); + } + + public override void OnUpdate() + { + this.m_TeamMonitor_Left.OnUpdate(); + this.m_TeamMonitor_Right.OnUpdate(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpectateTeamMonitorHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XSpectateTeamMonitorHandler.cs.meta new file mode 100644 index 00000000..41eb709f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpectateTeamMonitorHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9ec10d21f19be254b8122cc5ac23d62f +timeCreated: 1611404242 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpotOnEventArgs.cs b/Client/Assets/Scripts/XMainClient/XSpotOnEventArgs.cs new file mode 100644 index 00000000..c6ddc574 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpotOnEventArgs.cs @@ -0,0 +1,24 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XSpotOnEventArgs : XEventArgs + { + public bool Enabled = false; + + public Color color = Color.red; + + public XSpotOnEventArgs() + { + this._eDefine = XEventDefine.XEvent_SpotOn; + } + + public override void Recycle() + { + Color red = Color.red; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpotOnEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XSpotOnEventArgs.cs.meta new file mode 100644 index 00000000..3949b611 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpotOnEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6d9988657b6021c48a13428cd45be601 +timeCreated: 1611403902 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteAwakeHandler.cs b/Client/Assets/Scripts/XMainClient/XSpriteAwakeHandler.cs new file mode 100644 index 00000000..dbed0d93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteAwakeHandler.cs @@ -0,0 +1,147 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpriteAwakeHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteAwakeWindow"; + } + } + + private XSpriteAvatarHandler _AvatarHandler; + + private XSpriteAttributeAHandler m_AptitudeHandler1; + + private XSpriteAttributeAHandler m_AptitudeHandler2; + + private IXUILabel m_CurrPower; + + private IXUILabel m_AfterPower; + + private Transform m_ArrowUp; + + private Transform m_ArrowDown; + + private GameObject m_btnKeepOrigHighlight; + + private GameObject m_btnEnsureAwakeHighlight; + + private SpriteInfo m_OrgInfo; + + private SpriteInfo m_NewInfo; + + private IXUILabel m_Tip; + + protected override void Init() + { + Transform parent = base.PanelObject.transform.Find("Bg/AvatarRoot"); + DlgHandlerBase.EnsureCreate(ref this._AvatarHandler, parent, true, this); + Transform parent2 = base.PanelObject.transform.Find("Bg/CurrFrameRoot/AptitudeRoot"); + DlgHandlerBase.EnsureCreate(ref this.m_AptitudeHandler1, parent2, true, this); + Transform parent3 = base.PanelObject.transform.Find("Bg/AfterFrameRoot/AptitudeRoot"); + DlgHandlerBase.EnsureCreate(ref this.m_AptitudeHandler2, parent3, true, this); + this.m_CurrPower = (base.PanelObject.transform.Find("Bg/CurrPower").GetComponent("XUILabel") as IXUILabel); + this.m_AfterPower = (base.PanelObject.transform.Find("Bg/AfterPower").GetComponent("XUILabel") as IXUILabel); + this.m_ArrowUp = base.PanelObject.transform.Find("Bg/ArrowUp"); + this.m_ArrowDown = base.PanelObject.transform.Find("Bg/ArrowDown"); + this.m_btnKeepOrigHighlight = base.PanelObject.transform.Find("Bg/KeepOrig/Recommend").gameObject; + this.m_btnEnsureAwakeHighlight = base.PanelObject.transform.Find("Bg/EnsureAwake/Recommend").gameObject; + this.m_Tip = (base.PanelObject.transform.Find("Bg/Tip").GetComponent("XUILabel") as IXUILabel); + } + + public override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this._AvatarHandler); + DlgHandlerBase.EnsureUnload(ref this.m_AptitudeHandler1); + DlgHandlerBase.EnsureUnload(ref this.m_AptitudeHandler2); + base.OnUnload(); + } + + public override void RegisterEvent() + { + IXUIButton ixuibutton = base.PanelObject.transform.Find("Bg/KeepOrig").GetComponent("XUIButton") as IXUIButton; + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnKeepOrgClicked)); + IXUIButton ixuibutton2 = base.PanelObject.transform.Find("Bg/EnsureAwake").GetComponent("XUIButton") as IXUIButton; + ixuibutton2.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnEnsureAwakeClicked)); + } + + private bool OnKeepOrgClicked(IXUIButton btn) + { + DlgBase.singleton._AwakeWindow.SetVisible(false); + return true; + } + + protected override void OnShow() + { + base.OnShow(); + this._AvatarHandler.SetVisible(true); + this.m_Tip.SetText(XSingleton.singleton.GetString("SpriteAwake_Tip2")); + } + + protected override void OnHide() + { + DlgBase.singleton._SpriteMainFrame.SetAvatar(); + this._AvatarHandler.SetVisible(false); + base.OnHide(); + } + + private bool OnEnsureAwakeClicked(IXUIButton btn) + { + DlgBase.singleton._SpriteMainFrame.OnAwakeBtnClick(null); + return true; + } + + private bool OnKeepNew(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + specificDocument.ReqSpriteOperation(SpriteType.Sprite_Awake_Replace); + return true; + } + + public void SetSpritesInfo(SpriteInfo currSprite, SpriteInfo newSprite) + { + this.m_OrgInfo = currSprite; + this.m_NewInfo = newSprite; + this._AvatarHandler.SetSpriteInfo(currSprite, XSingleton.singleton.XPlayerData, 6, false, true); + this.m_CurrPower.SetText(currSprite.PowerPoint.ToString()); + this.m_AptitudeHandler1.SetSpriteAttributeInfo(currSprite, XSingleton.singleton.XPlayerData, null); + this.m_AptitudeHandler2.SetSpriteAttributeInfo(newSprite, XSingleton.singleton.XPlayerData, currSprite); + this.m_ArrowUp.gameObject.SetActive(newSprite.PowerPoint > currSprite.PowerPoint); + this.m_ArrowDown.gameObject.SetActive(newSprite.PowerPoint < currSprite.PowerPoint); + bool flag = newSprite.PowerPoint > currSprite.PowerPoint; + if (flag) + { + this.m_AfterPower.SetText(XStringDefineProxy.GetString("SpriteAttributeUpColor", new object[] + { + newSprite.PowerPoint + })); + } + else + { + bool flag2 = newSprite.PowerPoint < currSprite.PowerPoint; + if (flag2) + { + this.m_AfterPower.SetText(XStringDefineProxy.GetString("SpriteAttributeDownColor", new object[] + { + newSprite.PowerPoint + })); + } + else + { + this.m_AfterPower.SetText(newSprite.PowerPoint.ToString()); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteAwakeHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteAwakeHandler.cs.meta new file mode 100644 index 00000000..c7b1d4b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteAwakeHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 441a4f4878fbd30419f607188d3bdc57 +timeCreated: 1611403643 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteDetailBehaviour.cs b/Client/Assets/Scripts/XMainClient/XSpriteDetailBehaviour.cs new file mode 100644 index 00000000..40e5aeac --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteDetailBehaviour.cs @@ -0,0 +1,23 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XSpriteDetailBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public Transform m_AvatarRoot; + + public Transform m_AttrFrameRoot; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_AvatarRoot = base.transform.Find("Bg/AvatarRoot"); + this.m_AttrFrameRoot = base.transform.Find("Bg/AttrFrameRoot"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteDetailBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteDetailBehaviour.cs.meta new file mode 100644 index 00000000..ad9b547a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteDetailBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 84804c4a4fd91114ba9a5b5279105a31 +timeCreated: 1611404048 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteDetailView.cs b/Client/Assets/Scripts/XMainClient/XSpriteDetailView.cs new file mode 100644 index 00000000..38c29a77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteDetailView.cs @@ -0,0 +1,126 @@ +using System; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpriteDetailView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/SpriteSystem/SpriteDetailDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_SpriteSystem_Detail); + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + private XSpriteAvatarHandler m_AvatarHandler; + + private XSpriteAttributeHandler m_AttrHandler; + + private SpriteInfo m_SpriteInfo = null; + + private uint m_SpriteID = 0u; + + private XAttributes m_Attributes = null; + + protected override void Init() + { + base.Init(); + DlgHandlerBase.EnsureCreate(ref this.m_AvatarHandler, base.uiBehaviour.m_AvatarRoot, true, this); + DlgHandlerBase.EnsureCreate(ref this.m_AttrHandler, base.uiBehaviour.m_AttrFrameRoot, true, this); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_AvatarHandler); + DlgHandlerBase.EnsureUnload(ref this.m_AttrHandler); + base.OnUnload(); + } + + public void ShowDetail(SpriteInfo spriteData, XAttributes attributes) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.m_SpriteInfo = spriteData; + this.m_Attributes = attributes; + this.SetVisibleWithAnimation(true, null); + } + } + + protected override void OnShow() + { + base.OnShow(); + this.m_AvatarHandler.SetVisible(true); + bool flag = this.m_SpriteInfo != null; + if (flag) + { + this.m_AvatarHandler.SetSpriteInfo(this.m_SpriteInfo, this.m_Attributes, 6, false, true); + this.m_AttrHandler.SetSpriteAttributeInfo(this.m_SpriteInfo, this.m_Attributes, null); + } + else + { + this.m_AvatarHandler.SetSpriteInfo(this.m_SpriteID, true, 0u); + this.m_AttrHandler.SetSpriteAttributeInfo(this.m_SpriteID); + } + } + + protected override void OnHide() + { + base.OnHide(); + this.m_AvatarHandler.SetVisible(false); + } + + public void ShowDetail(uint spriteID) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.m_SpriteInfo = null; + this.m_SpriteID = spriteID; + this.m_Attributes = null; + this.SetVisibleWithAnimation(true, null); + } + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteDetailView.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteDetailView.cs.meta new file mode 100644 index 00000000..1e08ff9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteDetailView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ebedaf2649fc5014b96a3d245ea1bb5d +timeCreated: 1611404785 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteIllustrationHandler.cs b/Client/Assets/Scripts/XMainClient/XSpriteIllustrationHandler.cs new file mode 100644 index 00000000..595bdbed --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteIllustrationHandler.cs @@ -0,0 +1,273 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpriteIllustrationHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/SpriteSystem/SpriteIllustrationWindow"; + } + } + + private IXUIButton m_Close; + + private XUIPool m_SpritePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIScrollView m_ScrollView; + + private IXUITable m_Table; + + private IXUILabel m_Title; + + private IXUILabelSymbol m_Tip; + + private IXUILabel m_LTypeName; + + private IXUILabel m_STypeName; + + private IXUILabel m_ATypeName; + + private IXUILabel m_BTypeName; + + private IXUILabel m_CTypeName; + + private List m_TypeList = new List(); + + private List> m_SpriteID = new List>(); + + private List m_TypeTitle = new List(); + + protected override void Init() + { + this.m_TypeList.Clear(); + this.m_TypeTitle.Clear(); + this.m_LTypeName = (base.PanelObject.transform.Find("Bg/ScrollView/Table/L/TypeL/Name").GetComponent("XUILabel") as IXUILabel); + this.m_STypeName = (base.PanelObject.transform.Find("Bg/ScrollView/Table/S/TypeL/Name").GetComponent("XUILabel") as IXUILabel); + this.m_ATypeName = (base.PanelObject.transform.Find("Bg/ScrollView/Table/A/TypeL/Name").GetComponent("XUILabel") as IXUILabel); + this.m_BTypeName = (base.PanelObject.transform.Find("Bg/ScrollView/Table/B/TypeL/Name").GetComponent("XUILabel") as IXUILabel); + this.m_CTypeName = (base.PanelObject.transform.Find("Bg/ScrollView/Table/C/TypeL/Name").GetComponent("XUILabel") as IXUILabel); + this.m_Close = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + for (int i = 1; i < XFastEnumIntEqualityComparer.ToInt(SpriteQuality.MAX); i++) + { + SpriteQuality spriteQuality = (SpriteQuality)i; + string s = spriteQuality.ToString(); + Transform item = base.PanelObject.transform.Find(XSingleton.singleton.StringCombine("Bg/ScrollView/Table/", s)); + this.m_TypeTitle.Add(item); + IXUIList ixuilist = base.PanelObject.transform.Find(XSingleton.singleton.StringCombine("Bg/ScrollView/Table/", s, "/Grid")).GetComponent("XUIList") as IXUIList; + ixuilist.RegisterRepositionHandle(new OnAfterRepostion(this.OnListRefreshFinished)); + this.m_TypeList.Add(ixuilist); + } + Transform transform = base.PanelObject.transform.Find("Bg/ScrollView/ItemTpl"); + this.m_SpritePool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_ScrollView = (base.PanelObject.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Table = (base.PanelObject.transform.Find("Bg/ScrollView/Table").GetComponent("XUITable") as IXUITable); + this.m_Title = (base.PanelObject.transform.Find("Bg/Tittle").GetComponent("XUILabel") as IXUILabel); + this.m_Tip = (base.PanelObject.transform.Find("Tip").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + } + + private void OnListRefreshFinished() + { + this.m_Table.Reposition(); + this.m_ScrollView.ResetPosition(); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + private void ClassifySpritesByQuality(List itemList, bool isItem) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this.m_SpriteID.Clear(); + List list = new List(); + List list2 = new List(); + List list3 = new List(); + List list4 = new List(); + List list5 = new List(); + int i = 0; + while (i < itemList.Count) + { + SpriteQuality spriteQuality; + //! + uint item; + if (isItem) + { + SpritePreviewTable.RowData byItemID = specificDocument._SpritePreviewTable.GetByItemID(itemList[i]); + bool flag = byItemID == null; + if (!flag) + { + spriteQuality = (SpriteQuality)byItemID.ItemQuality; + item = byItemID.ItemID; + goto IL_B9; + } + } + else + { + SpriteTable.RowData bySpriteID = specificDocument._SpriteTable.GetBySpriteID(itemList[i]); + bool flag2 = bySpriteID == null; + if (!flag2) + { + spriteQuality = (SpriteQuality)bySpriteID.SpriteQuality; + item = bySpriteID.SpriteID; + goto IL_B9; + } + } + IL_116: + i++; + continue; + IL_B9: + switch (spriteQuality) + { + case SpriteQuality.C: + { + list5.Add(item); + break; + } + case SpriteQuality.B: + { + list4.Add(item); + break; + } + case SpriteQuality.A: + { + list3.Add(item); + break; + } + case SpriteQuality.S: + { + list2.Add(item); + break; + } + case SpriteQuality.L: + { + list.Add(item); + break; + } + } + goto IL_116; + } + this.m_SpriteID.Add(list5); + this.m_SpriteID.Add(list4); + this.m_SpriteID.Add(list3); + this.m_SpriteID.Add(list2); + this.m_SpriteID.Add(list); + } + + private void ShowIllustration(List itemList, bool isItem, bool showTip) + { + this.m_Title.SetText(isItem ? XStringDefineProxy.GetString("SpriteAwardPreview") : XStringDefineProxy.GetString("SpriteIllustrationName")); + this.SetIllustrationType(isItem ? XStringDefineProxy.GetString("SpriteIllustrationType1") : XStringDefineProxy.GetString("SpriteIllustrationType2")); + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + this.m_Tip.InputText = XStringDefineProxy.GetString("SpriteLotterySafeTip", new object[] + { + specificDocument.SpecialSafeCount + }); + this.m_Tip.SetVisible(showTip); + this.m_ScrollView.ResetPosition(); + this.ClassifySpritesByQuality(itemList, isItem); + this.m_SpritePool.FakeReturnAll(); + this.CreateIcon(SpriteQuality.L, isItem); + this.CreateIcon(SpriteQuality.S, isItem); + this.CreateIcon(SpriteQuality.A, isItem); + this.CreateIcon(SpriteQuality.B, isItem); + this.CreateIcon(SpriteQuality.C, isItem); + this.m_SpritePool.ActualReturnAll(true); + } + + private void SetIllustrationType(string name) + { + this.m_LTypeName.SetText(name); + this.m_STypeName.SetText(name); + this.m_ATypeName.SetText(name); + this.m_BTypeName.SetText(name); + this.m_CTypeName.SetText(name); + } + + public void ShowSpriteEggIllustration(SpriteEggLotteryType type) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + List list; + bool flag = specificDocument._SpriteEggPreviewDict.TryGetValue(XFastEnumIntEqualityComparer.ToInt(type), out list); + if (flag) + { + bool flag2 = list.Count > 0; + if (flag2) + { + this.ShowIllustration(list, true, type == SpriteEggLotteryType.Special); + } + } + } + + public void ShowSpriteAllIllustration() + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + bool flag = specificDocument.SpriteShowInIllustration.Count > 0; + if (flag) + { + this.ShowIllustration(specificDocument.SpriteShowInIllustration, false, false); + } + } + + private void CreateIcon(SpriteQuality quality, bool isItem) + { + int index = XFastEnumIntEqualityComparer.ToInt(quality) - 1; + IXUIList ixuilist = this.m_TypeList[index]; + List list = this.m_SpriteID[index]; + this.m_TypeTitle[index].gameObject.SetActive(list.Count > 0); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = this.m_SpritePool.FetchGameObject(false); + gameObject.transform.parent = ixuilist.gameObject.transform; + if (isItem) + { + this.SetItemInfo(gameObject, list[i]); + } + else + { + this.SetSpriteInfo(gameObject, list[i]); + } + XSingleton.singleton.m_uiTool.ChangePanel(gameObject, ixuilist.GetParentUIRect(), ixuilist.GetParentPanel()); + } + ixuilist.Refresh(); + } + + private void SetItemInfo(GameObject obj, uint itemID) + { + IXUISprite ixuisprite = obj.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)itemID; + XSingleton.singleton.normalItemDrawer.DrawItem(obj, (int)itemID, 0, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + private void SetSpriteInfo(GameObject obj, uint spriteID) + { + XSingleton.singleton.normalItemDrawer.DrawItem(obj, (int)spriteID, 0, false); + IXUISprite ixuisprite = obj.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)spriteID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSpriteIconClicked)); + } + + private void OnSpriteIconClicked(IXUISprite spr) + { + uint spriteID = (uint)spr.ID; + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + DlgBase.singleton.ShowDetail(spriteID); + } + + private bool OnCloseClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteIllustrationHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteIllustrationHandler.cs.meta new file mode 100644 index 00000000..a45c333a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteIllustrationHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1fd733da45655c640b3f9f7784a3ce5c +timeCreated: 1611403403 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteRankInfo.cs b/Client/Assets/Scripts/XMainClient/XSpriteRankInfo.cs new file mode 100644 index 00000000..acd99ce0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteRankInfo.cs @@ -0,0 +1,18 @@ +using System; +using KKSG; + +namespace XMainClient +{ + public class XSpriteRankInfo : XBaseRankInfo + { + public override void ProcessData(RankData data) + { + this.name = data.RoleName; + this.formatname = XTitleDocument.GetTitleWithFormat(data.titleID, XBaseRankInfo.GetUnderLineName(this.name)); + this.id = data.RoleId; + this.rank = data.Rank; + this.value = (ulong)data.powerpoint; + this.startType = data.starttype; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteRankInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteRankInfo.cs.meta new file mode 100644 index 00000000..554b3f78 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteRankInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a353d530c2e3cc2419c72b316cebff6d +timeCreated: 1611404260 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteRankList.cs b/Client/Assets/Scripts/XMainClient/XSpriteRankList.cs new file mode 100644 index 00000000..2443cf08 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteRankList.cs @@ -0,0 +1,46 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XSpriteRankList : XBaseRankList + { + public XSpriteRankList() + { + this.type = XRankType.SpriteRank; + } + + public override XBaseRankInfo CreateNewInfo() + { + return new XSpriteRankInfo(); + } + + public override XBaseRankInfo GetLatestMyRankInfo() + { + bool flag = this.myRankInfo == null || this.myRankInfo.rank != XRankDocument.INVALID_RANK; + XBaseRankInfo myRankInfo; + if (flag) + { + myRankInfo = this.myRankInfo; + } + else + { + this.myRankInfo.name = XSingleton.singleton.Player.Name; + this.myRankInfo.formatname = XTitleDocument.GetTitleWithFormat(XSingleton.singleton.XPlayerData.TitleID, this.myRankInfo.name); + uint num = 0u; + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + for (int i = 0; i < specificDocument.SpriteList.Count; i++) + { + bool flag2 = specificDocument.isSpriteFight(specificDocument.SpriteList[i].uid); + if (flag2) + { + num += specificDocument.SpriteList[i].PowerPoint; + } + } + this.myRankInfo.value = (ulong)num; + myRankInfo = this.myRankInfo; + } + return myRankInfo; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteRankList.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteRankList.cs.meta new file mode 100644 index 00000000..537e7824 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteRankList.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe3403c89a6a29f46bc2daf55da8d99e +timeCreated: 1611404940 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteShowBehaviour.cs b/Client/Assets/Scripts/XMainClient/XSpriteShowBehaviour.cs new file mode 100644 index 00000000..803c3c77 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteShowBehaviour.cs @@ -0,0 +1,29 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XSpriteShowBehaviour : DlgBehaviourBase + { + public IXUISprite m_Close; + + public Transform m_AvatarRoot; + + public Transform m_FxPoint; + + public IXUISprite m_Quality; + + public IXUITweenTool m_QualityTween; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + this.m_AvatarRoot = base.transform.Find("Bg/AvatarRoot"); + this.m_FxPoint = base.transform.Find("Bg/Fx"); + this.m_Quality = (base.transform.Find("Bg/Quality").GetComponent("XUISprite") as IXUISprite); + this.m_QualityTween = (base.transform.Find("Bg").GetComponent("XUIPlayTween") as IXUITweenTool); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteShowBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteShowBehaviour.cs.meta new file mode 100644 index 00000000..7fce15ae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteShowBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2de83a2b62368c1469a18e7733d0cd40 +timeCreated: 1611403508 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteShowView.cs b/Client/Assets/Scripts/XMainClient/XSpriteShowView.cs new file mode 100644 index 00000000..41ecde40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteShowView.cs @@ -0,0 +1,200 @@ +using System; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpriteShowView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/SpriteSystem/SpriteShowDlg"; + } + } + + public override int sysid + { + get + { + return XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_SpriteSystem_Detail); + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XSpriteSystemDocument _doc = null; + + private XSpriteAvatarHandler m_AvatarHandler; + + private XFx m_Fx; + + private bool _from_lottery = false; + + private uint token = 0u; + + private int _spriteID = 0; + + private bool _isShowedShare = false; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + DlgHandlerBase.EnsureCreate(ref this.m_AvatarHandler, base.uiBehaviour.m_AvatarRoot, true, this); + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool isShowedShare = this._isShowedShare; + if (isShowedShare) + { + this._spriteID = 0; + this._isShowedShare = false; + this.OnCloseClicked(null); + } + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnHide() + { + XSingleton.singleton.KillTimer(this.token); + this._doc.DestroyFx(this.m_Fx); + this.m_Fx = null; + this._spriteID = 0; + this._isShowedShare = false; + base.OnHide(); + this.m_AvatarHandler.SetVisible(false); + } + + protected override void OnUnload() + { + XSingleton.singleton.KillTimer(this.token); + this._doc.DestroyFx(this.m_Fx); + this.m_Fx = null; + DlgHandlerBase.EnsureUnload(ref this.m_AvatarHandler); + base.OnUnload(); + } + + public void ShowDetail(uint spriteID, uint ppt, bool fromLottery = false) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisible(true, true); + } + this.m_AvatarHandler.SetVisible(true); + this.m_AvatarHandler.SetSpriteInfo(spriteID, false, ppt); + this.SetLotteryAnim(); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)spriteID); + this.SetupFx((int)((itemConf != null) ? itemConf.ItemQuality : 0)); + this.SetupQuality((int)((itemConf != null) ? itemConf.ItemQuality : 0)); + this._from_lottery = fromLottery; + this._spriteID = (int)spriteID; + } + + private void SetLotteryAnim() + { + XEntityPresentation.RowData spritePresent = this.m_AvatarHandler.GetSpritePresent(); + XSingleton.singleton.KillTimer(this.token); + float interval = this.m_AvatarHandler.SetSpriteAnim(spritePresent.AttackIdle); + this.token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(this.ResetAvatarAnim), null); + } + + private void SetupFx(int quality) + { + this._doc.DestroyFx(this.m_Fx); + this.m_Fx = null; + switch (quality) + { + case 3: + this.m_Fx = this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_05_orange", base.uiBehaviour.m_FxPoint); + break; + case 4: + this.m_Fx = this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_05_purple", base.uiBehaviour.m_FxPoint); + break; + case 5: + this.m_Fx = this._doc.CreateAndPlayFx("Effects/FX_Particle/UIfx/UI_jl_05_red", base.uiBehaviour.m_FxPoint); + break; + } + } + + private void SetupQuality(int quality) + { + switch (quality) + { + case 3: + base.uiBehaviour.m_Quality.SetSprite("Fairy_Show_0"); + break; + case 4: + base.uiBehaviour.m_Quality.SetSprite("Fairy_Show_1"); + break; + case 5: + base.uiBehaviour.m_Quality.SetSprite("Fairy_Show_2"); + break; + } + base.uiBehaviour.m_QualityTween.PlayTween(true, -1f); + } + + private void ResetAvatarAnim(object o) + { + this.m_AvatarHandler.ResetSpriteAnim(); + } + + public void OnCloseClicked(IXUISprite sp) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(this._spriteID); + XScreenShotShareDocument specificDocument = XDocuments.GetSpecificDocument(XScreenShotShareDocument.uuID); + bool flag = itemConf != null && itemConf.ItemQuality == 4 && specificDocument.CurShareBgType == ShareBgType.LuckySpriteType && (ulong)specificDocument.SpriteID == (ulong)((long)this._spriteID); + if (flag) + { + this._isShowedShare = true; + XSingleton.singleton.shareCallbackType = ShareCallBackType.GloryPic; + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + bool flag2 = this._from_lottery && this._doc.AutoShowEpicSprite; + if (flag2) + { + DlgBase.singleton._SpriteLotteryHandler.OnOkButtonClicked(null); + } + else + { + this.SetVisible(false, true); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteShowView.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteShowView.cs.meta new file mode 100644 index 00000000..e14af7ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteShowView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: bb64b82701ae25b4585145249f1b737f +timeCreated: 1611404440 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteSkillTipBehaviour.cs b/Client/Assets/Scripts/XMainClient/XSpriteSkillTipBehaviour.cs new file mode 100644 index 00000000..5bf9bba7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteSkillTipBehaviour.cs @@ -0,0 +1,76 @@ +using System; +using UILib; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XSpriteSkillTipBehaviour : DlgBehaviourBase + { + public IXUISprite m_Close; + + public IXUISprite m_MainSkill; + + public IXUISprite m_MainTopFrame; + + public IXUISprite m_MainMiddleFrame; + + public IXUISprite m_MainBottomFrame; + + public IXUILabel m_MainSkillName; + + public IXUILabel m_MainSkillType; + + public IXUILabel m_MainSkillLevel; + + public IXUILabel m_MainCurrEffect; + + public IXUILabel m_MainDesc; + + public IXUISprite m_MainIcon; + + public IXUILabel m_MainSkillDuration; + + public IXUISprite m_NormalSkill; + + public IXUISprite m_NormalTopFrame; + + public IXUISprite m_NormalMiddleFrame; + + public IXUILabel m_NormalSkillName; + + public IXUILabel m_NormalSkillType; + + public IXUILabel m_NormalSkillQuality; + + public IXUILabel m_NormalCurrEffect; + + public IXUISprite m_NormalIcon; + + public IXUISprite m_NormalIconQuality; + + private void Awake() + { + this.m_Close = (base.transform.Find("Black").GetComponent("XUISprite") as IXUISprite); + this.m_MainSkill = (base.transform.Find("Bg/Bg/ToolTipCaptian").GetComponent("XUISprite") as IXUISprite); + this.m_MainTopFrame = (base.transform.Find("Bg/Bg/ToolTipCaptian/TopFrame").GetComponent("XUISprite") as IXUISprite); + this.m_MainMiddleFrame = (base.transform.Find("Bg/Bg/ToolTipCaptian/MiddleFrame").GetComponent("XUISprite") as IXUISprite); + this.m_MainBottomFrame = (base.transform.Find("Bg/Bg/ToolTipCaptian/BottomFrame").GetComponent("XUISprite") as IXUISprite); + this.m_MainSkillName = (this.m_MainSkill.gameObject.transform.Find("TopFrame/Name").GetComponent("XUILabel") as IXUILabel); + this.m_MainSkillType = (this.m_MainSkill.gameObject.transform.Find("TopFrame/Type").GetComponent("XUILabel") as IXUILabel); + this.m_MainSkillLevel = (this.m_MainSkill.gameObject.transform.Find("TopFrame/Level").GetComponent("XUILabel") as IXUILabel); + this.m_MainIcon = (this.m_MainSkill.gameObject.transform.Find("TopFrame/ItemTpl/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_MainSkillDuration = (this.m_MainSkill.gameObject.transform.Find("TopFrame/Duration").GetComponent("XUILabel") as IXUILabel); + this.m_MainDesc = (this.m_MainSkill.gameObject.transform.Find("MiddleFrame/Desc").GetComponent("XUILabel") as IXUILabel); + this.m_MainCurrEffect = (this.m_MainSkill.gameObject.transform.Find("BottomFrame/CurrEffect").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSkill = (base.transform.Find("Bg/Bg/ToolTipNormal").GetComponent("XUISprite") as IXUISprite); + this.m_NormalTopFrame = (base.transform.Find("Bg/Bg/ToolTipNormal/TopFrame").GetComponent("XUISprite") as IXUISprite); + this.m_NormalMiddleFrame = (base.transform.Find("Bg/Bg/ToolTipNormal/BottomFrame").GetComponent("XUISprite") as IXUISprite); + this.m_NormalSkillName = (this.m_NormalSkill.gameObject.transform.Find("TopFrame/Name").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSkillType = (this.m_NormalSkill.gameObject.transform.Find("TopFrame/Type").GetComponent("XUILabel") as IXUILabel); + this.m_NormalSkillQuality = (this.m_NormalSkill.gameObject.transform.Find("TopFrame/Quality").GetComponent("XUILabel") as IXUILabel); + this.m_NormalIcon = (this.m_NormalSkill.gameObject.transform.Find("TopFrame/ItemTpl/Icon").GetComponent("XUISprite") as IXUISprite); + this.m_NormalCurrEffect = (this.m_NormalSkill.gameObject.transform.Find("BottomFrame/Effect").GetComponent("XUILabel") as IXUILabel); + this.m_NormalIconQuality = (this.m_NormalSkill.gameObject.transform.Find("TopFrame/ItemTpl/Frame").GetComponent("XUISprite") as IXUISprite); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteSkillTipBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteSkillTipBehaviour.cs.meta new file mode 100644 index 00000000..23f00c8b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteSkillTipBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7116b675612a7cf4b958397b913b961b +timeCreated: 1611403932 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteSkillTipDlg.cs b/Client/Assets/Scripts/XMainClient/XSpriteSkillTipDlg.cs new file mode 100644 index 00000000..476bc06d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteSkillTipDlg.cs @@ -0,0 +1,106 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpriteSkillTipDlg : DlgBase + { + public XItemSelector ItemSelector + { + get + { + return this._ItemSelector; + } + } + + public override string fileName + { + get + { + return "GameSystem/SpriteSystem/SpriteSkillTipDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private XItemSelector _ItemSelector = new XItemSelector(XSingleton.singleton.DefaultIconWidth); + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + } + + public void ShowSpriteSkill(uint skillID, bool mainSkill, uint level) + { + bool flag = !base.IsVisible(); + if (flag) + { + this.SetVisibleWithAnimation(true, null); + } + this.SetSkillInfo(skillID, mainSkill, level); + } + + private void SetSkillInfo(uint skillID, bool mainSkill, uint level) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteSkill.RowData spriteSkillData = specificDocument.GetSpriteSkillData((short)skillID, mainSkill, level); + bool flag = spriteSkillData == null; + if (!flag) + { + base.uiBehaviour.m_MainSkill.SetVisible(mainSkill); + base.uiBehaviour.m_NormalSkill.SetVisible(!mainSkill); + if (mainSkill) + { + base.uiBehaviour.m_MainIcon.SetSprite(spriteSkillData.Icon, spriteSkillData.Atlas, false); + base.uiBehaviour.m_MainSkillName.SetText(spriteSkillData.SkillName); + base.uiBehaviour.m_MainSkillLevel.SetText(XSingleton.singleton.StringCombine("Lv.", (level + 1u).ToString())); + base.uiBehaviour.m_MainSkillType.SetText(XSingleton.singleton.GetString("SpriteSkill_Type1")); + base.uiBehaviour.m_MainSkillDuration.SetText(string.Format("{0}s", spriteSkillData.Duration)); + base.uiBehaviour.m_MainDesc.SetText(XSingleton.singleton.ReplaceReturn(spriteSkillData.Tips)); + base.uiBehaviour.m_MainCurrEffect.SetText(XSingleton.singleton.ReplaceReturn(spriteSkillData.Detail)); + base.uiBehaviour.m_MainMiddleFrame.spriteHeight = base.uiBehaviour.m_MainDesc.spriteHeight + 50; + base.uiBehaviour.m_MainBottomFrame.spriteHeight = base.uiBehaviour.m_MainCurrEffect.spriteHeight + 41; + base.uiBehaviour.m_MainSkill.spriteHeight = base.uiBehaviour.m_MainBottomFrame.spriteHeight + base.uiBehaviour.m_MainMiddleFrame.spriteHeight + base.uiBehaviour.m_MainTopFrame.spriteHeight + 40; + Vector3 localPosition = base.uiBehaviour.m_MainTopFrame.gameObject.transform.localPosition; + base.uiBehaviour.m_MainTopFrame.gameObject.transform.localPosition = new Vector3(localPosition.x, (float)(base.uiBehaviour.m_MainSkill.spriteHeight / 2 - 18), localPosition.z); + localPosition = base.uiBehaviour.m_MainTopFrame.gameObject.transform.localPosition; + Vector3 localPosition2 = base.uiBehaviour.m_MainMiddleFrame.gameObject.transform.localPosition; + base.uiBehaviour.m_MainMiddleFrame.gameObject.transform.localPosition = new Vector3(localPosition2.x, localPosition.y - (float)base.uiBehaviour.m_MainTopFrame.spriteHeight, localPosition2.z); + localPosition2 = base.uiBehaviour.m_MainMiddleFrame.gameObject.transform.localPosition; + Vector3 localPosition3 = base.uiBehaviour.m_MainBottomFrame.gameObject.transform.localPosition; + base.uiBehaviour.m_MainBottomFrame.gameObject.transform.localPosition = new Vector3(localPosition3.x, localPosition2.y - (float)base.uiBehaviour.m_MainMiddleFrame.spriteHeight, localPosition3.z); + } + else + { + base.uiBehaviour.m_NormalIcon.SetSprite(spriteSkillData.Icon, spriteSkillData.Atlas, false); + base.uiBehaviour.m_NormalIconQuality.SetSprite(string.Format("kuang_zq0{0}", spriteSkillData.SkillQuality)); + base.uiBehaviour.m_NormalSkillName.SetText(spriteSkillData.SkillName); + base.uiBehaviour.m_NormalCurrEffect.SetText(XSingleton.singleton.ReplaceReturn(spriteSkillData.Detail)); + base.uiBehaviour.m_NormalSkillType.SetText(XSingleton.singleton.GetString("SpriteSkill_Type2")); + IXUILabel normalSkillQuality = base.uiBehaviour.m_NormalSkillQuality; + SpriteQuality skillQuality = (SpriteQuality)spriteSkillData.SkillQuality; + normalSkillQuality.SetText(skillQuality.ToString()); + base.uiBehaviour.m_NormalMiddleFrame.spriteHeight = base.uiBehaviour.m_NormalCurrEffect.spriteHeight + 30; + base.uiBehaviour.m_NormalSkill.spriteHeight = base.uiBehaviour.m_NormalTopFrame.spriteHeight + base.uiBehaviour.m_NormalMiddleFrame.spriteHeight + 50; + } + } + } + + public void OnCloseClicked(IXUISprite sp) + { + this._ItemSelector.Hide(); + this.SetVisibleWithAnimation(false, null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteSkillTipDlg.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteSkillTipDlg.cs.meta new file mode 100644 index 00000000..1e2740db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteSkillTipDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1de7614073782b74bb049c870846a1ea +timeCreated: 1611403360 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSpriteSystemDocument.cs b/Client/Assets/Scripts/XMainClient/XSpriteSystemDocument.cs new file mode 100644 index 00000000..c076e0c2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteSystemDocument.cs @@ -0,0 +1,1560 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSpriteSystemDocument : XDocComponent + { + public override uint ID + { + get + { + return XSpriteSystemDocument.uuID; + } + } + + public XOutlookSprite OutLookData + { + get + { + return XSingleton.singleton.XPlayerData.Outlook.sprite; + } + } + + public uint CurrentLotteryType { get; set; } + + public uint NormalMaxCount { get; set; } + + public uint NormalCoolDown { get; set; } + + public uint NormalFreeCount { get; set; } + + public uint SpecialCoolDown { get; set; } + + public uint SpecialSafeCount { get; set; } + + public bool AutoShowEpicSprite { get; set; } + + public SpritePreviewTable _SpritePreviewTable + { + get + { + return XSpriteSystemDocument._spritePreviewTable; + } + } + + public List SpriteShowInIllustration + { + get + { + return XSpriteSystemDocument._spriteShowInIllustration; + } + } + + public Dictionary> _SpriteEggPreviewDict + { + get + { + return XSpriteSystemDocument._spriteEggIllustrationDict; + } + } + + public SpriteTable _SpriteTable + { + get + { + return XSpriteSystemDocument._spriteTable; + } + } + + public SpriteLevel _SpriteLevelTable + { + get + { + return XSpriteSystemDocument._spriteLevelTable; + } + } + + public SpriteEvolution _SpriteEvolutionTable + { + get + { + return XSpriteSystemDocument._spriteEvolutionTable; + } + } + + public SpriteSkill _SpriteSkillTable + { + get + { + return XSpriteSystemDocument._spriteSkillTable; + } + } + + public List SpriteList + { + get + { + return this._spriteList; + } + } + + public List ResolveList + { + get + { + return this._resolveList; + } + } + + public List FightingList + { + get + { + return this._fightingList; + } + } + + public List BookList + { + get + { + return this._bookList; + } + } + + public uint MaxFightNum + { + get + { + return this._maxFightNum; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SpriteSystemDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static SpriteTable _spriteTable = new SpriteTable(); + + private static SpriteLevel _spriteLevelTable = new SpriteLevel(); + + private static SpriteEvolution _spriteEvolutionTable = new SpriteEvolution(); + + private static SpriteSkill _spriteSkillTable = new SpriteSkill(); + + private static SpritePreviewTable _spritePreviewTable = new SpritePreviewTable(); + + private List _spriteList = new List(); + + private List _resolveList = new List(); + + private List _fightingList = new List(); + + private List _bookList = new List(); + + private HashSet _fightHash = new HashSet(); + + private HashSet _redPointSpriteHash = new HashSet(); + + private static Dictionary _levelUpExpDict = new Dictionary(); + + private static Dictionary> _spriteSkillDict = new Dictionary>(); + + private static Dictionary> _spriteEggIllustrationDict = new Dictionary>(); + + private static List _spriteShowInIllustration = new List(); + + public List PositionLevelCondition = new List(); + + private uint _maxFightNum; + + private static readonly uint K_LEVELUPQUALITY = 10000u; + + public static List MAXSTARLEVEL = new List + { + 0u, + 0u, + 0u, + 0u, + 0u, + 0u + }; + + public static uint MOONWORTH = 6u; + + public string[] NAMECOLOR = new string[6]; + + private int SpriteRedPointShowIntervel; + + private uint _timerToken; + + private double _showExpTime; + + private uint _expTotal = 0u; + + public SeqList FoodList; + + public SpriteHandlerTag CurrentTag; + + private uint GroupRatio; + + private int _starUpLimitLevel; + + public List CachedLotteryResult = new List(); + + public List CachedLotteryPPT = new List(); + + public List ResultShowList = new List(); + + private float LastLotteryTime = 0f; + + public SpriteInfo _AwakeSpriteData = null; + + public static void Execute(OnLoadedCallback callback = null) + { + XSpriteSystemDocument.AsyncLoader.AddTask("Table/SpriteTable", XSpriteSystemDocument._spriteTable, false); + XSpriteSystemDocument.AsyncLoader.AddTask("Table/SpriteLevel", XSpriteSystemDocument._spriteLevelTable, false); + XSpriteSystemDocument.AsyncLoader.AddTask("Table/SpriteEvolution", XSpriteSystemDocument._spriteEvolutionTable, false); + XSpriteSystemDocument.AsyncLoader.AddTask("Table/SpriteSkill", XSpriteSystemDocument._spriteSkillTable, false); + XSpriteSystemDocument.AsyncLoader.AddTask("Table/SpritePreviewTable", XSpriteSystemDocument._spritePreviewTable, false); + XSpriteSystemDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XSpriteSystemDocument._levelUpExpDict.Clear(); + for (int i = 0; i < XSpriteSystemDocument._spriteLevelTable.Table.Length; i++) + { + SpriteLevel.RowData rowData = XSpriteSystemDocument._spriteLevelTable.Table[i]; + XSpriteSystemDocument._levelUpExpDict[rowData.Quality * XSpriteSystemDocument.K_LEVELUPQUALITY + rowData.Level] = rowData.Exp; + } + XSpriteSystemDocument._spriteSkillDict.Clear(); + for (int j = 0; j < XSpriteSystemDocument._spriteSkillTable.Table.Length; j++) + { + short skillID = XSpriteSystemDocument._spriteSkillTable.Table[j].SkillID; + List value; + bool flag = !XSpriteSystemDocument._spriteSkillDict.TryGetValue(skillID, out value); + if (flag) + { + value = new List(); + XSpriteSystemDocument._spriteSkillDict.Add(skillID, value); + } + XSpriteSystemDocument._spriteSkillDict[skillID].Add(XSpriteSystemDocument._spriteSkillTable.Table[j]); + } + XSpriteSystemDocument._spriteShowInIllustration.Clear(); + for (int k = 0; k < XSpriteSystemDocument._spriteTable.Table.Length; k++) + { + bool flag2 = XSpriteSystemDocument._spriteTable.Table[k].IllustrationShow == 1; + if (flag2) + { + XSpriteSystemDocument._spriteShowInIllustration.Add(XSpriteSystemDocument._spriteTable.Table[k].SpriteID); + } + } + XSpriteSystemDocument._spriteEggIllustrationDict.Clear(); + for (int l = 0; l < XSpriteSystemDocument._spritePreviewTable.Table.Length; l++) + { + int[] spriteShow = XSpriteSystemDocument._spritePreviewTable.Table[l].SpriteShow; + bool flag3 = spriteShow == null; + if (!flag3) + { + foreach (int key in spriteShow) + { + List list; + bool flag4 = !XSpriteSystemDocument._spriteEggIllustrationDict.TryGetValue(key, out list); + if (flag4) + { + list = new List(); + XSpriteSystemDocument._spriteEggIllustrationDict[key] = list; + } + list.Add(XSpriteSystemDocument._spritePreviewTable.Table[l].ItemID); + } + } + } + for (int n = 0; n < XSpriteSystemDocument._spriteEvolutionTable.Table.Length; n++) + { + bool flag5 = (uint)XSpriteSystemDocument._spriteEvolutionTable.Table[n].EvolutionLevel > XSpriteSystemDocument.MAXSTARLEVEL[(int)XSpriteSystemDocument._spriteEvolutionTable.Table[n].Quality]; + if (flag5) + { + XSpriteSystemDocument.MAXSTARLEVEL[(int)XSpriteSystemDocument._spriteEvolutionTable.Table[n].Quality] = (uint)XSpriteSystemDocument._spriteEvolutionTable.Table[n].EvolutionLevel; + } + } + } + + public SpriteSkill.RowData GetMySpriteInitiativeSkill() + { + bool flag = this._fightingList.Count == 0 || this._fightingList[0] == 0UL; + SpriteSkill.RowData result; + if (flag) + { + result = null; + } + else + { + int indexByUid = this.GetIndexByUid(this._fightingList[0]); + result = this.GetSpriteInitiativeSkill(this._spriteList[indexByUid].SpriteID, this._spriteList[indexByUid].EvolutionLevel); + } + return result; + } + + public SpriteSkill.RowData GetSpriteInitiativeSkill(uint spriteID, uint star) + { + SpriteTable.RowData bySpriteID = XSpriteSystemDocument._spriteTable.GetBySpriteID(spriteID); + return this.GetSpriteSkillData((short)bySpriteID.SpriteSkillID, true, star); + } + + public override void OnEnterSceneFinally() + { + bool flag = this._maxFightNum == 0u; + if (flag) + { + this.DealWithPositionLevelCondition(); + } + } + + private int Compare(SpriteInfo x, SpriteInfo y) + { + bool flag = x.uid == y.uid; + int result; + if (flag) + { + result = 0; + } + else + { + bool flag2 = this.isSpriteFight(x.uid) != this.isSpriteFight(y.uid); + if (flag2) + { + result = (this.isSpriteFight(x.uid) ? -1 : 1); + } + else + { + result = (int)(y.PowerPoint - x.PowerPoint); + } + } + return result; + } + + public void SortList() + { + this._spriteList.Sort(new Comparison(this.Compare)); + this.CalNeed2FightSprite(); + this._resolveList.Sort(new Comparison(this.Compare)); + } + + public SpriteSkill.RowData GetSpriteSkillData(short skillID, bool mainSkill, uint starLevel) + { + List list; + bool flag = XSpriteSystemDocument._spriteSkillDict.TryGetValue(skillID, out list); + if (flag) + { + bool flag2 = !mainSkill; + if (flag2) + { + bool flag3 = list.Count > 0; + if (flag3) + { + return list[0]; + } + } + else + { + uint num = starLevel + 1u; + for (int i = 0; i < list.Count; i++) + { + bool flag4 = (uint)list[i].SkillQuality == num; + if (flag4) + { + return list[i]; + } + } + } + } + return null; + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.SpriteRedPointShowIntervel = XSingleton.singleton.GetInt("SpriteRedPointShowIntervel"); + for (int i = 0; i < 6; i++) + { + this.NAMECOLOR[i] = XSingleton.singleton.GetValue(string.Format("Quality{0}Color", i)); + } + for (int j = 0; j < 4; j++) + { + this._fightingList.Add(0UL); + } + this.GroupRatio = (uint)XSingleton.singleton.GetInt("SpriteGrowUpRatio"); + this.NormalMaxCount = (uint)XSingleton.singleton.GetInt("SpriteGoldDrawFreeDayCount"); + this._showExpTime = double.Parse(XSingleton.singleton.GetValue("SpriteExpShowTime")); + this.FoodList = XSingleton.singleton.GetSequenceList("SpriteFoodExp", false); + this._starUpLimitLevel = XSingleton.singleton.GetInt("SpriteEvolutionMinLevel"); + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + PayMemberTable.RowData memberPrivilegeConfig = specificDocument.GetMemberPrivilegeConfig(MemberPrivilege.KingdomPrivilege_Commerce); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_BuffChange, new XComponent.XEventHandler(this._OnBuffChange)); + base.RegisterEvent(XEventDefine.XEvent_AddItem, new XComponent.XEventHandler(this.OnAddItem)); + base.RegisterEvent(XEventDefine.XEvent_RemoveItem, new XComponent.XEventHandler(this.OnRemoveItem)); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + protected bool OnAddItem(XEventArgs args) + { + XAddItemEventArgs xaddItemEventArgs = args as XAddItemEventArgs; + for (int i = 0; i < xaddItemEventArgs.items.Count; i++) + { + bool flag = xaddItemEventArgs.items[i].Type == ItemType.SPRITEFOOD; + if (flag) + { + this.CalSpriteMainRedPoint(); + return true; + } + } + return true; + } + + protected bool OnRemoveItem(XEventArgs args) + { + XRemoveItemEventArgs xremoveItemEventArgs = args as XRemoveItemEventArgs; + for (int i = 0; i < xremoveItemEventArgs.types.Count; i++) + { + bool flag = xremoveItemEventArgs.types[i] == ItemType.SPRITEFOOD; + if (flag) + { + this.CalSpriteMainRedPoint(); + return true; + } + } + return true; + } + + public int GetIndexByUid(ulong uid) + { + for (int i = 0; i < this._spriteList.Count; i++) + { + bool flag = this._spriteList[i].uid == uid; + if (flag) + { + return i; + } + } + XSingleton.singleton.AddErrorLog(string.Format("Can't find the index by uid = {0}", uid), null, null, null, null, null); + return -1; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.SetAllInfo(arg.PlayerInfo.SpriteRecord); + } + + public void DealWithPositionLevelCondition() + { + this.PositionLevelCondition = XSingleton.singleton.GetUIntList("SpritePositionLevel"); + bool flag = this.PositionLevelCondition.Count != 4; + if (flag) + { + XSingleton.singleton.AddErrorLog("Error! get PositionLevelCondition's cout from globalconfig error! the cout isn't 4", null, null, null, null, null); + } + uint level = XSingleton.singleton.XPlayerData.Level; + this._maxFightNum = 4u; + for (int i = 0; i < this.PositionLevelCondition.Count; i++) + { + bool flag2 = this.PositionLevelCondition[i] > level; + if (flag2) + { + this._maxFightNum = (uint)i; + break; + } + } + this.CalNeed2FightSprite(); + bool flag3 = DlgBase.singleton._SpriteFightFrame != null; + if (flag3) + { + DlgBase.singleton._SpriteFightFrame.RefreshPosition(); + } + } + + private void CalNeed2FightSprite() + { + this._redPointSpriteHash.Clear(); + int num = (int)(this._maxFightNum - (uint)this._fightHash.Count); + bool flag = num <= 0; + if (flag) + { + this.CalSpriteFightRedPoint(); + } + else + { + HashSet hashSet = new HashSet(); + for (int i = 0; i < num; i++) + { + int num2 = -1; + for (int j = 0; j < this._spriteList.Count; j++) + { + bool flag2 = this._fightHash.Contains(this._spriteList[j].uid); + if (!flag2) + { + bool flag3 = hashSet.Contains(this._spriteList[j].uid); + if (!flag3) + { + bool flag4 = num2 == -1; + if (flag4) + { + num2 = j; + } + else + { + bool flag5 = this._spriteList[j].PowerPoint > this._spriteList[num2].PowerPoint; + if (flag5) + { + num2 = j; + } + } + } + } + } + bool flag6 = num2 == -1; + if (flag6) + { + break; + } + hashSet.Add(this._spriteList[num2].uid); + this._redPointSpriteHash.Add(this._spriteList[num2].uid); + } + this.CalSpriteFightRedPoint(); + } + } + + public void SetAllInfo(SpriteRecord data) + { + bool flag = data == null; + if (flag) + { + this._bookList = new List(new bool[XSpriteSystemDocument._spriteTable.Table.Length]); + XSingleton.singleton.AddLog("Get sprite Info from server is null.", null, null, null, null, null, XDebugColor.XDebug_None); + } + else + { + this._bookList = data.Books; + this._spriteList = data.SpriteData; + this._AwakeSpriteData = data.NewAwake; + this.SetFightList(data.InFight); + this.SortList(); + this.CheckView(); + } + } + + private void SetOutLookData() + { + bool flag = this._fightingList[0] == 0UL; + if (flag) + { + bool flag2 = this.OutLookData.leaderid == 0u; + if (flag2) + { + return; + } + XSingleton.singleton.XPlayerData.Outlook.SetSpriteData(0u); + } + else + { + int indexByUid = this.GetIndexByUid(this._fightingList[0]); + bool flag3 = this.OutLookData.leaderid == this._spriteList[indexByUid].SpriteID; + if (flag3) + { + return; + } + XSingleton.singleton.XPlayerData.Outlook.SetSpriteData(this._spriteList[indexByUid].SpriteID); + } + bool flag4 = XSingleton.singleton.Player != null; + if (flag4) + { + XEquipComponent xequipComponent = XSingleton.singleton.Player.GetXComponent(XEquipComponent.uuID) as XEquipComponent; + uint presentID = xequipComponent.SpriteFromAttr(); + XSingleton.singleton.OnSpriteChanged(XSingleton.singleton.Player, presentID); + } + } + + private void SetFightList(List list) + { + bool flag = list.Count != 4; + if (flag) + { + this._fightingList.Clear(); + for (int i = 0; i < 4; i++) + { + this._fightingList.Add(0UL); + } + } + else + { + this._fightingList = list; + } + this.SetOutLookData(); + this.FightHashChange(); + } + + private void FightHashChange() + { + this._fightHash.Clear(); + for (int i = 0; i < this._fightingList.Count; i++) + { + bool flag = this._fightingList[i] > 0UL; + if (flag) + { + this._fightHash.Add(this._fightingList[i]); + } + } + this.DealWithResolveList(); + } + + public bool isSpriteFight(ulong uid) + { + return this._fightHash.Contains(uid); + } + + public bool isFightFull() + { + return (long)this._fightHash.Count == (long)((ulong)this._maxFightNum); + } + + public bool isSpriteNeed2Fight(int index) + { + return this._redPointSpriteHash.Contains(this._spriteList[index].uid); + } + + public void CalSpriteFightRedPoint() + { + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_SpriteSystem_Fight, this._redPointSpriteHash.Count != 0); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_SpriteSystem, true); + this.CalSpriteMainRedPoint(); + } + + public void CalSpriteMainRedPoint() + { + bool bState = !this.isSpriteFoodEmpty() && this.isFightSpriteNeed2Feed(true); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_SpriteSystem_Main, bState); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_SpriteSystem, true); + } + + public uint GetSpriteQuality(int index) + { + return XSpriteSystemDocument._spriteTable.GetBySpriteID(this._spriteList[index].SpriteID).SpriteQuality; + } + + public uint GetSpriteLevelUpExp(int index) + { + uint result = 0u; + uint key = this.GetSpriteQuality(index) * XSpriteSystemDocument.K_LEVELUPQUALITY + this._spriteList[index].Level; + bool flag = !XSpriteSystemDocument._levelUpExpDict.TryGetValue(key, out result); + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("Can't find the sprite's exp, quality = {0}, level = {1}.", this.GetSpriteQuality(index), this._spriteList[index].Level), null, null, null, null, null); + } + return result; + } + + public uint GetSpriteLevelUpExpByLevel(int index, int level) + { + uint result = 0u; + uint key = this.GetSpriteQuality(index) * XSpriteSystemDocument.K_LEVELUPQUALITY + (uint)level; + bool flag = !XSpriteSystemDocument._levelUpExpDict.TryGetValue(key, out result); + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("Can't find the sprite's exp, quality = {0}, level = {1}.", this.GetSpriteQuality(index), this._spriteList[index].Level), null, null, null, null, null); + } + return result; + } + + public SpriteEvolution.RowData GetStarUpData(uint quality, uint star) + { + for (int i = 0; i < XSpriteSystemDocument._spriteEvolutionTable.Table.Length; i++) + { + SpriteEvolution.RowData rowData = XSpriteSystemDocument._spriteEvolutionTable.Table[i]; + bool flag = (uint)rowData.Quality == quality && (uint)rowData.EvolutionLevel == star + 1u; + if (flag) + { + return rowData; + } + } + XSingleton.singleton.AddErrorLog(string.Format("Can't find the sprite starUp's condition from SpriteEvolution.txt, quality = {0}, star = {1}.", quality, star + 1u), null, null, null, null, null); + return null; + } + + public double CalAptitude(uint AttrID, double AttrValue, XAttributes attributes = null) + { + return XSingleton.singleton.GetPPT(AttrID, AttrValue, null, 0) * this.GroupRatio; + } + + public double GetMaxAptitude(uint spriteID, int index) + { + SpriteTable.RowData bySpriteID = XSpriteSystemDocument._spriteTable.GetBySpriteID(spriteID); + double result; + switch (index) + { + case 0: + result = this.CalAptitude(bySpriteID.AttrID1, bySpriteID.Range1[1], null); + break; + case 1: + result = this.CalAptitude(bySpriteID.AttrID2, bySpriteID.Range2[1], null); + break; + case 2: + result = this.CalAptitude(bySpriteID.AttrID3, bySpriteID.Range3[1], null); + break; + case 3: + result = this.CalAptitude(bySpriteID.AttrID4, bySpriteID.Range4[1], null); + break; + case 4: + result = this.CalAptitude(bySpriteID.AttrID5, bySpriteID.Range5[1], null); + break; + default: + XSingleton.singleton.AddErrorLog("GetMaxAptitude error. index is out of the range. index = ", index.ToString(), null, null, null, null); + result = 0.0; + break; + } + return result; + } + + public void OnSpriteChange(PtcG2C_SpriteChangedNtf ptc) + { + bool flag = ptc.Data.NewSprites.Count != 0; + if (flag) + { + this.DealWithSpriteAdd(ptc.Data.NewSprites); + } + bool flag2 = ptc.Data.ChangedSprites.Count != 0; + if (flag2) + { + this.DealWithSpriteChange(ptc.Data.ChangedSprites); + } + bool flag3 = ptc.Data.RemovedSprites.Count != 0; + if (flag3) + { + this.DealWithSpriteRemove(ptc.Data.RemovedSprites); + } + this.CalNeed2FightSprite(); + this.CheckView(); + } + + private void DealWithSpriteAdd(List list) + { + for (int i = 0; i < list.Count; i++) + { + this._spriteList.Add(list[i]); + int num = -1; + for (int j = 0; j < XSpriteSystemDocument._spriteTable.Table.Length; j++) + { + bool flag = list[i].SpriteID == XSpriteSystemDocument._spriteTable.Table[j].SpriteID; + if (flag) + { + num = j; + break; + } + } + bool flag2 = num < this._bookList.Count && num >= 0; + if (flag2) + { + this._bookList[num] = true; + } + } + this.DealWithResolveList(); + } + + private void DealWithSpriteChange(List list) + { + Dictionary dictionary = new Dictionary(); + for (int i = 0; i < list.Count; i++) + { + dictionary[list[i].uid] = list[i]; + } + SpriteInfo value = null; + for (int j = 0; j < this._spriteList.Count; j++) + { + bool flag = dictionary.TryGetValue(this._spriteList[j].uid, out value); + if (flag) + { + this._spriteList[j] = value; + } + } + } + + private void DealWithSpriteRemove(List list) + { + List list2 = new List(); + HashSet hashSet = new HashSet(); + for (int i = 0; i < list.Count; i++) + { + hashSet.Add(list[i]); + } + for (int j = 0; j < this._spriteList.Count; j++) + { + bool flag = !hashSet.Contains(this._spriteList[j].uid); + if (flag) + { + list2.Add(this._spriteList[j]); + } + } + this._spriteList = list2; + this.DealWithResolveList(); + } + + public void DealWithResolveList() + { + this._resolveList.Clear(); + for (int i = 0; i < this._spriteList.Count; i++) + { + bool flag = !this.isSpriteFight(this._spriteList[i].uid); + if (flag) + { + this._resolveList.Add(this._spriteList[i]); + } + } + } + + private void LevelUp() + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteLevelUpTips"), "fece00"); + bool flag = DlgBase.singleton._SpriteMainFrame != null && DlgBase.singleton._SpriteMainFrame.IsVisible(); + if (flag) + { + DlgBase.singleton._SpriteMainFrame._SpriteSelectHandler.SetSpriteList(this._spriteList, false); + } + } + + public bool QueryFeedSprite(int index, uint feedItemID) + { + bool flag = index > this._spriteList.Count; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SpriteNull"), "fece00"); + result = false; + } + else + { + bool flag2 = this.SpriteList[index].Level >= XSingleton.singleton.XPlayerData.Level; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_SPRITE_LEVELMAX"), "fece00"); + result = false; + } + else + { + bool flag3 = XBagDocument.BagDoc.GetItemCount((int)feedItemID) <= 0UL; + if (flag3) + { + XSingleton.singleton.ShowItemAccess((int)feedItemID, null); + result = false; + } + else + { + XSingleton.singleton.AddLog(string.Format("Feed sprite index : {0}, food : {1}", index, feedItemID), null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = SpriteType.Sprite_Feed; + rpcC2G_SpriteOperation.oArg.uid = this._spriteList[index].uid; + rpcC2G_SpriteOperation.oArg.FeedItemID = feedItemID; + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + result = true; + } + } + } + return result; + } + + public void QueryTrain(int index, List lockAttrList) + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = SpriteType.Sprite_Train; + rpcC2G_SpriteOperation.oArg.uid = this._spriteList[index].uid; + for (int i = 0; i < lockAttrList.Count; i++) + { + rpcC2G_SpriteOperation.oArg.notToChoose.Add(lockAttrList[i]); + } + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + + public void QueryResetTrain(int index, SpriteType type, uint costChoose = 0u) + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = type; + rpcC2G_SpriteOperation.oArg.uid = this._spriteList[index].uid; + rpcC2G_SpriteOperation.oArg.resetTrainChoose = costChoose; + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + + public void QueryStarUp(int index) + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = SpriteType.Sprite_Evolution; + rpcC2G_SpriteOperation.oArg.uid = this._spriteList[index].uid; + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + + public void QueryFightOut(ulong uid) + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = SpriteType.Sprite_OutFight; + rpcC2G_SpriteOperation.oArg.uid = uid; + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + + public void QueryFightIn(ulong uid) + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = SpriteType.Sprite_InFight; + rpcC2G_SpriteOperation.oArg.uid = uid; + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + + public void QuerySwapTeamLeader(ulong uid) + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = SpriteType.Sprite_SwapLeader; + rpcC2G_SpriteOperation.oArg.uid = uid; + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + + public void QueryOpenStarUpWindow(ulong uid) + { + bool flag = (ulong)XSingleton.singleton.XPlayerData.Level < (ulong)((long)this._starUpLimitLevel); + if (flag) + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("SpriteStarUpLevelLimit"), this._starUpLimitLevel), "fece00"); + } + else + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = SpriteType.Sprite_QueryEvolutionPPT; + rpcC2G_SpriteOperation.oArg.uid = uid; + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + } + + public void QueryResolveSprite(List list) + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = SpriteType.Sprite_Decompose; + rpcC2G_SpriteOperation.oArg.uids.Clear(); + for (int i = 0; i < list.Count; i++) + { + rpcC2G_SpriteOperation.oArg.uids.Add(list[i].uid); + } + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + + public void CheckView() + { + bool flag = DlgBase.singleton._SpriteMainFrame != null && DlgBase.singleton._SpriteMainFrame.IsVisible(); + if (flag) + { + DlgBase.singleton._SpriteMainFrame._SpriteSelectHandler.SetSpriteList(this._spriteList, false); + } + bool flag2 = DlgBase.singleton._SpriteResolveFrame != null && DlgBase.singleton._SpriteResolveFrame.IsVisible(); + if (flag2) + { + DlgBase.singleton._SpriteResolveFrame._SpriteSelectHandler.SetSpriteList(this._resolveList, true); + } + bool flag3 = DlgBase.singleton._SpriteMainFrame != null && DlgBase.singleton._SpriteMainFrame.IsVisible(); + if (flag3) + { + bool flag4 = DlgBase.singleton._SpriteMainFrame.CurrentClick < this.SpriteList.Count; + if (flag4) + { + SpriteInfo spriteData = this.SpriteList[DlgBase.singleton._SpriteMainFrame.CurrentClick]; + DlgBase.singleton._SpriteMainFrame._SpritePropertyHandler.SetSpriteAttributeInfo(spriteData, XSingleton.singleton.XPlayerData, null); + DlgBase.singleton._SpriteMainFrame._SpriteAvatarHandler.SetSpriteInfo(spriteData, XSingleton.singleton.XPlayerData, 0, false, false); + } + } + } + + public void SendLotteryRpc(uint lotteryType) + { + bool flag = Time.time - this.LastLotteryTime < 3f; + if (!flag) + { + this.LastLotteryTime = Time.time; + this.CurrentLotteryType = lotteryType; + RpcC2G_DrawLottery rpcC2G_DrawLottery = new RpcC2G_DrawLottery(); + rpcC2G_DrawLottery.oArg.type = lotteryType; + XSingleton.singleton.Send(rpcC2G_DrawLottery); + } + } + + public void SendBuySpriteEggRpc(uint lotteryType) + { + RpcC2G_BuySpriteEgg rpcC2G_BuySpriteEgg = new RpcC2G_BuySpriteEgg(); + rpcC2G_BuySpriteEgg.oArg.type = lotteryType; + XSingleton.singleton.Send(rpcC2G_BuySpriteEgg); + } + + public void QueryBuyEggCD() + { + RpcC2G_QueryLotteryCD rpc = new RpcC2G_QueryLotteryCD(); + XSingleton.singleton.Send(rpc); + } + + public void OnQueryLotteryCD(uint normalCoolDown, uint specialCoolDown, uint normalFreeCount, uint specialSafeCount) + { + this.SpecialSafeCount = specialSafeCount; + this.SetBuyEggData(normalCoolDown, specialCoolDown, normalFreeCount); + this.RefreshSafeCountUI(); + } + + public void SetBuyEggData(uint normalCoolDown, uint specialCoolDown, uint normalFreeCount) + { + this.NormalCoolDown = normalCoolDown; + this.NormalFreeCount = normalFreeCount; + this.SpecialCoolDown = specialCoolDown; + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_SpriteSystem_Shop, (this.NormalCoolDown == 0u && this.NormalFreeCount != this.NormalMaxCount) || this.SpecialCoolDown == 0u); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_SpriteSystem_Shop, true); + bool flag = DlgBase.singleton._SpriteShopHandler == null; + if (!flag) + { + bool flag2 = !DlgBase.singleton._SpriteShopHandler.IsVisible(); + if (!flag2) + { + DlgBase.singleton._SpriteShopHandler.RefreshLotteryFrame(); + } + } + } + + public void SetBuyEggItem(List item) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = DlgBase.singleton._SpriteShopHandler == null; + if (!flag2) + { + bool flag3 = !DlgBase.singleton._SpriteShopHandler.IsVisible(); + if (!flag3) + { + DlgBase.singleton._SpriteShopHandler.ShowResultFrame(item); + DlgBase.singleton.CheckSpriteSummonRedpoint(); + } + } + } + } + + public void SetLotteryData(uint specialSafeCount) + { + this.SpecialSafeCount = specialSafeCount; + this.RefreshSafeCountUI(); + } + + private void RefreshSafeCountUI() + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = DlgBase.singleton._SpriteLotteryHandler == null; + if (!flag2) + { + bool flag3 = !DlgBase.singleton._SpriteLotteryHandler.IsVisible(); + if (!flag3) + { + DlgBase.singleton._SpriteLotteryHandler.RefreshSafeCountUI(); + } + } + } + } + + public void SetLotteryResultData(List itemList, List spritePPT, LotteryType type) + { + this.CachedLotteryResult.Clear(); + this.ResultShowList.Clear(); + this.CachedLotteryPPT.Clear(); + int num = 0; + for (int i = 0; i < itemList.Count; i++) + { + this.CachedLotteryResult.Add(itemList[i]); + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)itemList[i].itemID); + this.ResultShowList.Add(itemConf != null && itemConf.ItemType == 18 && itemConf.ItemQuality > 2); + bool flag = itemConf != null && itemConf.ItemType == 18 && num < spritePPT.Count; + if (flag) + { + this.CachedLotteryPPT.Add(spritePPT[num]); + num++; + } + else + { + this.CachedLotteryPPT.Add(0u); + } + } + bool flag2 = !DlgBase.singleton.IsVisible(); + if (!flag2) + { + bool flag3 = DlgBase.singleton._SpriteLotteryHandler == null; + if (!flag3) + { + bool flag4 = !DlgBase.singleton._SpriteLotteryHandler.IsVisible(); + if (!flag4) + { + DlgBase.singleton.CheckSpriteSummonRedpoint(); + if (type - LotteryType.Sprite_Draw_One > 2) + { + if (type - LotteryType.Sprite_GoldDraw_One <= 2) + { + this.PlayLotteryCutscene("CutScene/Spirit_lottery_cutscene_fall_gold", false, true); + } + } + else + { + this.PlayLotteryCutscene("CutScene/Spirit_lottery_cutscene_fall_diamond", false, true); + } + XSingleton.singleton.SetTimer(XSingleton.singleton.Length - 0.05f, new XTimerMgr.ElapsedEventHandler(this.RestoreLotteryUI), null); + } + } + } + } + + public void EpicSpriteShow(int id) + { + this.ResultShowList[id] = false; + this.PlayLotteryCutscene("CutScene/Spirit_lottery_cutscene_short", false, false); + XSingleton.singleton.SetTimer(XSingleton.singleton.Length - 0.05f, new XTimerMgr.ElapsedEventHandler(this.RestoreLotteryResultUI), id); + } + + private void PlayLotteryCutscene(string path, bool bFadeAtBegin, bool bFadeAtEnd) + { + XSingleton.singleton.Start(path, bFadeAtBegin, bFadeAtEnd); + XSingleton.singleton.GameCamera.UnityCamera.enabled = true; + XSingleton.singleton.SetTimer(0.05f, new XTimerMgr.ElapsedEventHandler(this.HideAllUIWithOutCall), null); + } + + private void RestoreUI(object o = null) + { + XSingleton.singleton.GameCamera.UnityCamera.enabled = false; + XSingleton.singleton.RestoreAllUIWithOutCall(); + } + + private void HideAllUIWithOutCall(object o) + { + XSingleton.singleton.HideAllUIWithOutCall(); + } + + private void SendWorldNotice(uint itemid) + { + PtcC2G_OpenSpriteEggNtf ptcC2G_OpenSpriteEggNtf = new PtcC2G_OpenSpriteEggNtf(); + ptcC2G_OpenSpriteEggNtf.Data.itemid = itemid; + XSingleton.singleton.Send(ptcC2G_OpenSpriteEggNtf); + } + + private void RestoreLotteryUI(object o) + { + this.RestoreUI(null); + DlgBase.singleton._SpriteLotteryHandler.ShowResultFrame(); + } + + private void RestoreLotteryResultUI(object o) + { + int index = (int)o; + this.SendWorldNotice(this.CachedLotteryResult[index].itemID); + this.RestoreUI(null); + DlgBase.singleton.ShowDetail(this.CachedLotteryResult[index].itemID, this.CachedLotteryPPT[index], true); + } + + public bool isSpriteFoodEmpty() + { + ulong num = 0UL; + for (int i = 0; i < (int)this.FoodList.Count; i++) + { + num += XBagDocument.BagDoc.GetItemCount(this.FoodList[i, 0]); + } + return num == 0UL; + } + + public bool isFightSpriteNeed2Feed(bool outView) + { + for (int i = 0; i < this._fightingList.Count; i++) + { + bool flag = this._fightingList[i] == 0UL; + if (!flag) + { + bool flag2 = this.isSpriteNeed2Feed(this._fightingList[i], outView); + if (flag2) + { + return true; + } + } + } + return false; + } + + public bool isSpriteNeed2Feed(ulong uid, bool outView) + { + int indexByUid = this.GetIndexByUid(uid); + bool result; + if (outView) + { + result = ((ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)this._spriteList[indexByUid].Level + (ulong)((long)this.SpriteRedPointShowIntervel) && this.isSpriteCanLevelUp(indexByUid)); + } + else + { + result = (XSingleton.singleton.XPlayerData.Level > this._spriteList[indexByUid].Level && this.isSpriteCanLevelUp(indexByUid)); + } + return result; + } + + private bool isSpriteCanLevelUp(int index) + { + int num = 0; + for (int i = 0; i < (int)this.FoodList.Count; i++) + { + num += (int)XBagDocument.BagDoc.GetItemCount(this.FoodList[i, 0]) * this.FoodList[i, 1]; + } + return this._spriteList[index].Exp + (uint)num >= this.GetSpriteLevelUpExp(index); + } + + public XFx CreateAndPlayFx(string path, Transform parent) + { + XFx xfx = XSingleton.singleton.CreateFx(path, null, true); + bool flag = xfx == null; + XFx result; + if (flag) + { + result = null; + } + else + { + xfx.Play(parent, Vector3.zero, Vector3.one, 1f, true, false); + result = xfx; + } + return result; + } + + public void DestroyFx(XFx fx) + { + bool flag = fx == null; + if (!flag) + { + XSingleton.singleton.DestroyFx(fx, true); + } + } + + public void ReqSpriteOperation(SpriteType type) + { + int currentClick = DlgBase.singleton._SpriteMainFrame.CurrentClick; + bool flag = currentClick >= this.SpriteList.Count; + if (!flag) + { + RpcC2G_SpriteOperation rpcC2G_SpriteOperation = new RpcC2G_SpriteOperation(); + rpcC2G_SpriteOperation.oArg.Type = type; + rpcC2G_SpriteOperation.oArg.uid = this.SpriteList[currentClick].uid; + XSingleton.singleton.Send(rpcC2G_SpriteOperation); + } + } + + public void OnSpriteOperation(SpriteOperationArg oArg, SpriteOperationRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + ErrorCode errorCode = oRes.ErrorCode; + if (errorCode == ErrorCode.ERR_SPRITE_EVOLUTION_LACKOFCOST) + { + bool flag2 = DlgBase.singleton._StarUpWindow != null && DlgBase.singleton._StarUpWindow.IsVisible(); + if (flag2) + { + DlgBase.singleton._StarUpWindow.SetVisible(false); + } + XSingleton.singleton.ShowItemAccess(XSingleton.singleton.GetInt("SpriteStarUpItemID"), null); + } + } + else + { + switch (oArg.Type) + { + case SpriteType.Sprite_Feed: + { + for (int i = 0; i < this._spriteList.Count; i++) + { + bool flag3 = this._spriteList[i].uid == oArg.uid; + if (flag3) + { + this._spriteList[i].Exp = oRes.Exp; + break; + } + } + bool flag4 = DlgBase.singleton._SpriteMainFrame != null; + if (flag4) + { + DlgBase.singleton._SpriteMainFrame.OnServerReturn(oArg.uid); + } + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + for (int j = 0; j < (int)this.FoodList.Count; j++) + { + bool flag5 = this.FoodList[j, 0] == (int)oArg.FeedItemID; + if (flag5) + { + this._expTotal += (uint)this.FoodList[j, 1]; + break; + } + } + XSingleton.singleton.KillTimer(this._timerToken); + this._timerToken = XSingleton.singleton.SetTimer((float)this._showExpTime, new XTimerMgr.ElapsedEventHandler(this.ShowGetExp), null); + break; + } + case SpriteType.Sprite_Evolution: + case SpriteType.Sprite_Train: + case SpriteType.Sprite_ResetTrain: + case SpriteType.Sprite_Rebirth: + { + bool flag6 = DlgBase.singleton._StarUpWindow != null && DlgBase.singleton._StarUpWindow.IsVisible(); + if (flag6) + { + bool flag7 = oArg.Type == SpriteType.Sprite_Train; + if (flag7) + { + DlgBase.singleton._StarUpWindow.LastAttrList.Clear(); + DlgBase.singleton._StarUpWindow.LastValueList.Clear(); + for (int k = 0; k < oRes.LastTrainAttrID.Count; k++) + { + DlgBase.singleton._StarUpWindow.LastAttrList.Add((int)oRes.LastTrainAttrID[k]); + DlgBase.singleton._StarUpWindow.LastValueList.Add((int)oRes.LastTrainAttrValue[k]); + } + } + DlgBase.singleton._StarUpWindow.OnServerReturn(oArg.Type); + } + break; + } + case SpriteType.Sprite_Awake: + { + bool flag8 = DlgBase.singleton._AwakeWindow == null || !DlgBase.singleton._AwakeWindow.IsVisible(); + if (flag8) + { + DlgBase.singleton.OpenWindows(SpriteWindow.Awake); + } + bool flag9 = DlgBase.singleton._AwakeWindow != null; + if (flag9) + { + DlgBase.singleton._AwakeWindow.SetSpritesInfo(oRes.AwakeSpriteBefore, oRes.AwakeSprite); + } + bool flag10 = DlgBase.singleton._SpriteMainFrame != null; + if (flag10) + { + DlgBase.singleton._SpriteMainFrame.RefreshAwakeBtn(); + } + break; + } + case SpriteType.Sprite_Awake_Retain: + case SpriteType.Sprite_Awake_Replace: + { + bool flag11 = DlgBase.singleton._AwakeWindow != null; + if (flag11) + { + DlgBase.singleton._AwakeWindow.SetVisible(false); + } + break; + } + case SpriteType.Sprite_InFight: + case SpriteType.Sprite_OutFight: + case SpriteType.Sprite_SwapLeader: + { + this.SetFightList(oRes.InFight); + this.CalNeed2FightSprite(); + bool flag12 = DlgBase.singleton._SpriteFightFrame != null && DlgBase.singleton._SpriteFightFrame.IsVisible() && DlgBase.singleton._SpriteFightFrame._SpriteSelectHandler != null; + if (flag12) + { + DlgBase.singleton._SpriteFightFrame._SpriteSelectHandler.SetSpriteList(this._spriteList, false); + DlgBase.singleton._SpriteFightFrame.RefreshFightList(); + } + break; + } + case SpriteType.Sprite_Decompose: + { + bool flag13 = DlgBase.singleton._SpriteResolveFrame != null && DlgBase.singleton._SpriteResolveFrame.IsVisible(); + if (flag13) + { + DlgBase.singleton._SpriteResolveFrame.Clean(); + } + break; + } + case SpriteType.Sprite_QueryEvolutionPPT: + { + bool flag14 = DlgBase.singleton._SpriteMainFrame != null && DlgBase.singleton._SpriteMainFrame.IsVisible(); + if (flag14) + { + DlgBase.singleton.OpenWindows(SpriteWindow.StarUp); + } + break; + } + } + } + } + + public double GetSpriteLevelRatio(uint quality, uint level) + { + for (int i = 0; i < this._SpriteLevelTable.Table.Length; i++) + { + SpriteLevel.RowData rowData = this._SpriteLevelTable.Table[i]; + bool flag = rowData.Quality == level && rowData.Level == level; + if (flag) + { + return rowData.Ratio; + } + } + return 0.0; + } + + private void ShowGetExp(object o = null) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("SpriteExpTips"), this._expTotal), "fece00"); + this._expTotal = 0u; + } + + public void ShowGetSpriteWithAnimation(uint spriteID, uint ppt) + { + DlgBase.singleton.ShowDetail(spriteID, ppt, false); + } + + private bool _OnBuffChange(XEventArgs args) + { + XBuffChangeEventArgs xbuffChangeEventArgs = args as XBuffChangeEventArgs; + bool flag = xbuffChangeEventArgs.addBuff != null && xbuffChangeEventArgs.addBuff.buffInfo != null; + if (flag) + { + bool flag2 = XBuff.HasTag(xbuffChangeEventArgs.addBuff.buffInfo, XBuffTag.BT_SpriteEffect); + if (flag2) + { + XSpriteSystemDocument.SpriteSkillCast(xbuffChangeEventArgs.entity); + } + } + return true; + } + + public static void SpriteSkillCast(XEntity entity) + { + bool isPlayer = entity.IsPlayer; + if (isPlayer) + { + uint leaderid = entity.Attributes.Outlook.sprite.leaderid; + SpriteTable.RowData bySpriteID = XSpriteSystemDocument._spriteTable.GetBySpriteID(leaderid); + bool flag = bySpriteID != null; + if (flag) + { + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + SpriteSkill.RowData mySpriteInitiativeSkill = specificDocument.GetMySpriteInitiativeSkill(); + bool flag2 = mySpriteInitiativeSkill != null; + if (flag2) + { + bool flag3 = !XSingleton.singleton.SyncMode && mySpriteInitiativeSkill.ShowNotice[0] != 0; + if (flag3) + { + XInvitationDocument specificDocument2 = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + NoticeTable.RowData noticeData = specificDocument2.GetNoticeData(NoticeType.NT_SPRITE_SKILLCAST); + bool flag4 = noticeData == null; + if (flag4) + { + return; + } + StringBuilder stringBuilder = new StringBuilder(noticeData.info); + stringBuilder.Replace("$R", XStringDefineProxy.GetString("YOU")); + int num = XSpriteSystemDocument._Find(stringBuilder, "$C"); + bool flag5 = num != -1; + if (flag5) + { + stringBuilder.Replace("$C", bySpriteID.SpriteName, num, 2); + } + num = XSpriteSystemDocument._Find(stringBuilder, "$C"); + bool flag6 = num != -1; + if (flag6) + { + stringBuilder.Replace("$C", mySpriteInitiativeSkill.SkillName, num, 2); + } + num = XSpriteSystemDocument._Find(stringBuilder, "$C"); + bool flag7 = num != -1; + if (flag7) + { + stringBuilder.Replace("$C", mySpriteInitiativeSkill.NoticeDetail, num, 2); + } + KKSG.ChatInfo chatInfo = new KKSG.ChatInfo(); + chatInfo.info = stringBuilder.ToString(); + chatInfo.channel = (uint)noticeData.channel; + XChatDocument specificDocument3 = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument3.HandlerReceiveChatInfo(chatInfo); + } + bool flag8 = mySpriteInitiativeSkill.ShowNotice[1] != 0; + if (flag8) + { + XAffiliate xaffiliate = null; + bool flag9 = !entity.IsTransform && entity.Equipment != null; + if (flag9) + { + xaffiliate = entity.Equipment.Sprite; + } + bool flag10 = xaffiliate != null; + if (flag10) + { + XBubbleComponent xbubbleComponent = xaffiliate.GetXComponent(XBubbleComponent.uuID) as XBubbleComponent; + bool flag11 = xbubbleComponent == null; + if (flag11) + { + XSingleton.singleton.CreateComponent(xaffiliate, XBubbleComponent.uuID); + } + XBubbleEventArgs @event = XEventPool.GetEvent(); + @event.bubbletext = mySpriteInitiativeSkill.SkillName; + @event.existtime = 3f; + @event.Firer = xaffiliate; + @event.speaker = string.Empty; + XSingleton.singleton.FireEvent(@event); + } + } + bool flag12 = !string.IsNullOrEmpty(mySpriteInitiativeSkill.Audio); + if (flag12) + { + XSingleton.singleton.PlaySound(entity, AudioChannel.Action, mySpriteInitiativeSkill.Audio); + } + } + } + } + } + + private static int _Find(StringBuilder sb, string s) + { + int num = sb.Length - s.Length + 1; + for (int i = 0; i < num; i++) + { + bool flag = true; + int num2 = i; + int num3 = 0; + while (num2 < num && num3 < s.Length) + { + bool flag2 = sb[num2] != s[num3]; + if (flag2) + { + flag = false; + break; + } + num2++; + num3++; + } + bool flag3 = flag; + if (flag3) + { + return i; + } + } + return -1; + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + this.DealWithPositionLevelCondition(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSpriteSystemDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSpriteSystemDocument.cs.meta new file mode 100644 index 00000000..bbe6c902 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSpriteSystemDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 385ccdbe8d821a8418cf5b37222c2dc0 +timeCreated: 1611403570 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStage.cs b/Client/Assets/Scripts/XMainClient/XStage.cs new file mode 100644 index 00000000..50689214 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStage.cs @@ -0,0 +1,109 @@ +using System; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + public abstract class XStage + { + public bool IsEntered + { + get + { + return this._entered; + } + } + + public EXStage Stage + { + get + { + return this._eStage; + } + } + + protected EXStage _eStage = EXStage.Null; + + private bool _entered = false; + + public XStage(EXStage eStage) + { + this._eStage = eStage; + } + + public static bool IsConcreteStage(EXStage stage) + { + return stage == EXStage.Hall || stage == EXStage.World; + } + + public virtual void Play() + { + } + + public virtual void OnEnterStage(EXStage eOld) + { + this._entered = true; + XSingleton.singleton.SetBlockUIVisable(false); + } + + public virtual void OnLeaveStage(EXStage eNew) + { + this._entered = false; + XSingleton.singleton.Stop(true); + XSingleton.singleton.OnLeaveStage(); + XSingleton.singleton.CloseAllUI(); + XSingleton.singleton.OnLeaveStage(); + XSingleton.singleton.XLuaEngine.luaUIManager.Clear(); + XSingleton.singleton.KillTimerAll(); + } + + public virtual bool Initialize() + { + return true; + } + + public virtual void PreUpdate(float fDeltaT) + { + XSingleton.singleton.PreUpdate(fDeltaT); + } + + public virtual void Update(float fDeltaT) + { + XSingleton.singleton.Update(fDeltaT); + } + + public void FixedUpdate() + { + XSingleton.singleton.FixedUpdate(); + } + + public virtual void PostUpdate(float fDeltaT) + { + XSingleton.singleton.PostUpdate(fDeltaT); + } + + public static T CreateSpecificStage() where T : new() + { + return Activator.CreateInstance(); + } + + public virtual void OnEnterScene(uint sceneid, bool transfer) + { + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraMotionComponent.uuID); + XSingleton.singleton.OnEnterScene(); + } + + public virtual void OnLeaveScene(bool transfer) + { + XSingleton.singleton.Clear(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.ClearAll(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.ClearCommon(); + XSingleton.singleton.OnLeaveScene(false); + XSingleton.singleton.OnleaveScene(); + XSingleton.singleton.OnLeaveScene(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStage.cs.meta b/Client/Assets/Scripts/XMainClient/XStage.cs.meta new file mode 100644 index 00000000..57f7dc09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 26b499d744a555d46a036176146e41e9 +timeCreated: 1611403468 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStageProgress.cs b/Client/Assets/Scripts/XMainClient/XStageProgress.cs new file mode 100644 index 00000000..4297847a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStageProgress.cs @@ -0,0 +1,259 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XStageProgress : XSingleton + { + public int BaseRank + { + get + { + return this._base_rank; + } + } + + public int LastNormalChapter { get; set; } + + public int LastHardChapter { get; set; } + + public Dictionary StageRanks = new Dictionary(); + + public Dictionary> StageBox = new Dictionary>(); + + private int _base_rank = -1; + + public int LastNormalLocationChapter = 0; + + public int LastHardLocationChapter = 0; + + public void Init(StageInfo stageInfo) + { + this.StageRanks.Clear(); + this.StageBox.Clear(); + for (int i = 0; i < stageInfo.sceneID.Count; i++) + { + StageRankInfo stageRankInfo = new StageRankInfo(); + stageRankInfo.RankValue = stageInfo.rank[i]; + this.StageRanks.Add(stageInfo.sceneID[i], stageRankInfo); + } + for (int i = 0; i < stageInfo.chapterchest.Count; i++) + { + int key = (int)(stageInfo.chapterchest[i] >> 8); + List list = new List(); + list.Add((int)(stageInfo.chapterchest[i] & 1u)); + list.Add((int)(stageInfo.chapterchest[i] & 2u)); + list.Add((int)(stageInfo.chapterchest[i] & 4u)); + this.StageBox.Add(key, list); + } + this.ReCalculateLastChapter(); + } + + public bool HasChapterBoxFetched(int chapterID, int index) + { + bool flag = this.StageBox.ContainsKey(chapterID); + if (flag) + { + bool flag2 = this.StageBox[chapterID][index] > 0; + if (flag2) + { + return true; + } + } + return false; + } + + public void OnFetchChapterBoxSucc(int chapterID, int chestID) + { + bool flag = this.StageBox.ContainsKey(chapterID); + if (flag) + { + this.StageBox[chapterID][chestID] = 1; + } + else + { + List list = new List(); + list.Add(0); + list.Add(0); + list.Add(0); + this.StageBox.Add(chapterID, list); + this.StageBox[chapterID][chestID] = 1; + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.OnFetchChapterBoxSucc(); + } + } + + public void OnEnterScene() + { + this._base_rank = this.GetRank((int)XSingleton.singleton.SceneID); + } + + protected void ReCalculateLastChapter() + { + this.LastNormalChapter = this._CalPlayerLastChapter(0u, ref this.LastNormalLocationChapter); + this.LastHardChapter = this._CalPlayerLastChapter(1u, ref this.LastHardLocationChapter); + } + + protected int _CalPlayerLastChapter(uint difficult, ref int lastLocationChapter) + { + lastLocationChapter = 0; + int num = XSingleton.singleton.GetChapterID(1, difficult); + bool flag2; + bool flag4; + do + { + List list = ListPool.Get(); + XSingleton.singleton.GetSceneListByChapter(num, list); + bool flag = true; + flag2 = true; + for (int i = 0; i < list.Count; i++) + { + int rank = this.GetRank((int)list[i]); + flag &= (rank > 0); + flag2 &= (rank == -1); + } + ListPool.Release(list); + bool flag3 = flag; + if (!flag3) + { + goto IL_9A; + } + int num2 = num; + num = XSingleton.singleton.GetNextChapter(num2); + flag4 = (num2 == num); + } + while (!flag4); + goto IL_E1; + IL_9A: + bool flag5 = flag2; + if (flag5) + { + XChapter.RowData chapter = XSingleton.singleton.GetChapter(num); + bool flag6 = chapter != null; + if (flag6) + { + int preChapter = chapter.PreChapter; + bool flag7 = preChapter != 0; + if (flag7) + { + lastLocationChapter = preChapter; + } + } + } + IL_E1: + bool flag8 = lastLocationChapter == 0; + if (flag8) + { + lastLocationChapter = num; + } + return num; + } + + public int GetPlayerLastChapter(uint difficult) + { + bool flag = difficult == 0u; + int result; + if (flag) + { + result = this.LastNormalChapter; + } + else + { + result = this.LastHardChapter; + } + return result; + } + + public int GetPlayerLocationChapter(uint difficult) + { + bool flag = difficult == 0u; + int result; + if (flag) + { + result = this.LastNormalLocationChapter; + } + else + { + result = this.LastHardLocationChapter; + } + return result; + } + + public uint GetPlayerLastSceneInChapter(int chapter) + { + List list = ListPool.Get(); + XSingleton.singleton.GetSceneListByChapter(chapter, list); + uint result = 0u; + for (int i = 0; i < list.Count; i++) + { + int rank = this.GetRank((int)list[i]); + bool flag = rank > 0; + if (flag) + { + result = list[i]; + } + } + ListPool.Release(list); + return result; + } + + internal int GetRank(int sceneID) + { + StageRankInfo stageRankInfo = null; + bool flag = this.StageRanks != null && this.StageRanks.TryGetValue(sceneID, out stageRankInfo); + int result; + if (flag) + { + result = stageRankInfo.Rank; + } + else + { + result = -1; + } + return result; + } + + internal bool GetRankDetail(int sceneID, int index) + { + StageRankInfo stageRankInfo = null; + bool flag = this.StageRanks != null && this.StageRanks.TryGetValue(sceneID, out stageRankInfo); + if (flag) + { + switch (index) + { + case 0: + return (stageRankInfo.RankValue & 1) > 0; + case 1: + return (stageRankInfo.RankValue & 2) > 0; + case 2: + return (stageRankInfo.RankValue & 4) > 0; + } + } + return false; + } + + internal void SetRank(int sceneID, int rank) + { + StageRankInfo stageRankInfo; + bool flag = this.StageRanks.TryGetValue(sceneID, out stageRankInfo); + if (flag) + { + stageRankInfo.RankValue = Math.Max(stageRankInfo.RankValue, rank); + } + else + { + stageRankInfo = new StageRankInfo(); + stageRankInfo.RankValue = rank; + this.StageRanks.Add(sceneID, stageRankInfo); + } + this.ReCalculateLastChapter(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStageProgress.cs.meta b/Client/Assets/Scripts/XMainClient/XStageProgress.cs.meta new file mode 100644 index 00000000..f73abe33 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStageProgress.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 459b960ffc26b5a44a6ef6509b7f71d6 +timeCreated: 1611403648 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStateDefine.cs b/Client/Assets/Scripts/XMainClient/XStateDefine.cs new file mode 100644 index 00000000..0b2df414 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStateDefine.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal enum XStateDefine + { + XState_Idle, + XState_Move, + XState_Jump, + XState_Fall, + XState_Freeze, + XState_BeHit, + XState_Death, + XState_Charge, + XState_Skill, + XState_PushOut + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStateDefine.cs.meta b/Client/Assets/Scripts/XMainClient/XStateDefine.cs.meta new file mode 100644 index 00000000..e7622d79 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStateDefine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4ef86ddc6d5d0904b9c47c8cc8508c1d +timeCreated: 1611403699 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStateMachine.cs b/Client/Assets/Scripts/XMainClient/XStateMachine.cs new file mode 100644 index 00000000..0dd73785 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStateMachine.cs @@ -0,0 +1,353 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XStateMachine : XComponent, IAnimStateMachine + { + public override uint ID + { + get + { + return XStateMachine.uuID; + } + } + + public IXStateTransform State + { + get + { + return this._current; + } + } + + public XStateDefine Current + { + get + { + return this._current.SelfState; + } + } + + public XStateDefine Previous + { + get + { + return this._previous.SelfState; + } + } + + public XStateDefine Default + { + get + { + return this._default.SelfState; + } + } + + public long ActionToken + { + get + { + return this._current.Token; + } + } + + public int CollisionLayer + { + get + { + return this._current.CollisionLayer; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("StateMachine"); + + private IXStateTransform _current = null; + + private IXStateTransform _default = null; + + private IXStateTransform _previous = null; + + private string _pre_command = null; + + private static bool[,] _bStateMap = null; + + private bool _bTrigger = false; + + public static bool _EnableAtor = true; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this.BuildStateMap(); + bool flag = host is XEntity; + if (flag) + { + XEntity xentity = host as XEntity; + bool flag2 = xentity.Ator != null; + if (flag2) + { + xentity.Ator.SetStateMachine(this); + } + } + } + + public void SetDefaultState(IXStateTransform def) + { + this._default = def; + this._current = def; + this._previous = def; + def.OnGetPermission(); + } + + public bool CanAct(XStateDefine state) + { + bool flag = (base.Enabled && this._current.IsPermitted(state)) || state == XStateDefine.XState_Death; + return flag && (!this._entity.IsMounted || !this._entity.IsCopilotMounted); + } + + public bool CanAct(IXStateTransform next) + { + return this.CanAct(next.SelfState); + } + + public bool StatePermitted(XStateDefine src, XStateDefine des) + { + bool flag = XStateMachine._bStateMap == null; + return !flag && XStateMachine._bStateMap[(int)src, (int)des]; + } + + public void ForceToDefaultState(bool ignoredeath) + { + bool flag = ignoredeath || this._current.SelfState != XStateDefine.XState_Death; + if (flag) + { + bool flag2 = this._current != this._default; + if (flag2) + { + this._current.Stop(this._default.SelfState); + this.TransferToDefaultState(); + } + } + } + + public void Stop() + { + this._current.Stop(this._default.SelfState); + } + + public override void Update(float fDeltaT) + { + this._current.StateUpdate(fDeltaT); + bool isFinished = this._current.IsFinished; + if (isFinished) + { + bool syncPredicted = this._current.SyncPredicted; + if (syncPredicted) + { + this.TransferToDefaultState(); + } + } + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this._bTrigger && this._entity.Ator != null && !this._entity.Ator.IsInTransition(0); + if (flag) + { + this._pre_command = this._current.TriggerAnim(this._pre_command); + this.AnimationUpdate(this._entity, this._pre_command); + this._bTrigger = false; + } + } + + private void AnimationUpdate(XEntity entity, string pre_command) + { + entity = (entity.IsTransform ? entity.Transformer : entity); + float transitionDuration = (this._current.SelfState == XStateDefine.XState_Idle) ? 0.5f : 0.05f; + for (int i = 0; i < entity.Affiliates.Count; i++) + { + bool flag = entity.Affiliates[i].MirrorState && entity.Affiliates[i].Ator != null; + if (flag) + { + entity.Affiliates[i].Ator.CrossFade(this._current.PresentName, transitionDuration, 0, 0f); + } + } + bool flag2 = entity.IsMounted && !entity.IsCopilotMounted; + if (flag2) + { + bool flag3 = entity.Mount.Ator != null; + if (flag3) + { + entity.Mount.Ator.CrossFade(this._current.PresentName, transitionDuration, 0, 0f); + } + bool flag4 = entity.Mount.Copilot != null; + if (flag4) + { + this.AnimationUpdate(entity.Mount.Copilot, pre_command); + } + } + } + + public void OnAnimationOverrided() + { + bool flag = this._default != null; + if (flag) + { + this._pre_command = this._default.PresentCommand; + } + } + + public void TriggerPresent() + { + this._bTrigger = true; + } + + public void SetAnimationSpeed(float speed) + { + bool flag = this._entity.Ator != null && this._entity.Skill != null && !this._entity.Skill.IsCasting(); + if (flag) + { + this._entity.Ator.speed = speed; + } + } + + public bool TryTransferToState(IXStateTransform next) + { + bool flag = this.CanAct(next.SelfState); + bool result; + if (flag) + { + result = this.TransferToState(next); + } + else + { + next.OnRejected(this._current.SelfState); + result = false; + } + return result; + } + + public bool TransferToState(IXStateTransform next) + { + bool flag = this._current.SelfState != next.SelfState || next.SelfState != XStateDefine.XState_Move; + if (flag) + { + this._current.Stop(next.SelfState); + } + this._previous = this._current; + this._current = next; + this._current.OnGetPermission(); + bool flag2 = this._previous.SelfState != this._current.SelfState || !this._bTrigger; + if (flag2) + { + this._bTrigger = this._current.ShouldBePresent; + } + return true; + } + + private void TransferToDefaultState() + { + XIdleEventArgs @event = XEventPool.GetEvent(); + @event.Firer = this._host; + XSingleton.singleton.FireEvent(@event); + } + + private void BuildStateMap() + { + bool flag = XStateMachine._bStateMap == null; + if (flag) + { + XStateMachine._bStateMap = new bool[,] + { + { + false, + true, + true, + true, + true, + true, + true, + true + }, + { + true, + true, + true, + true, + true, + true, + true, + true + }, + { + false, + false, + false, + true, + true, + true, + true, + false + }, + { + false, + false, + false, + false, + true, + true, + true, + false + }, + { + false, + false, + false, + false, + true, + false, + true, + false + }, + { + false, + false, + false, + false, + true, + true, + true, + false + }, + { + false, + false, + false, + false, + false, + false, + false, + false + }, + { + false, + true, + false, + false, + true, + true, + true, + true + } + }; + } + } + + public void UpdateCollisionLayer() + { + this._entity.SetCollisionLayer(this._current.CollisionLayer); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStateMachine.cs.meta b/Client/Assets/Scripts/XMainClient/XStateMachine.cs.meta new file mode 100644 index 00000000..b199b5db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStateMachine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c550292b548360d40a8992fc61a5ff34 +timeCreated: 1611404505 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStateMgr.cs b/Client/Assets/Scripts/XMainClient/XStateMgr.cs new file mode 100644 index 00000000..3b45aee1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStateMgr.cs @@ -0,0 +1,32 @@ +using System; + +namespace XMainClient +{ + internal class XStateMgr + { + public static bool IsMoveState(XStateDefine state) + { + return state == XStateDefine.XState_Move; + } + + public static bool IsUnBattleState(XStateDefine state) + { + return state == XStateDefine.XState_Idle || XStateMgr.IsMoveState(state); + } + + public static bool IsAirState(XStateDefine state) + { + return state == XStateDefine.XState_Fall || state == XStateDefine.XState_Jump; + } + + public static bool IsStunState(XStateDefine state) + { + return state == XStateDefine.XState_Freeze; + } + + public static bool IsUnControlledState(XStateDefine state) + { + return XStateMgr.IsStunState(state) || state == XStateDefine.XState_BeHit || state == XStateDefine.XState_Death; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStateMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XStateMgr.cs.meta new file mode 100644 index 00000000..3fcc52d8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStateMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5e1f4b71728bff64693a1afb1cd4be95 +timeCreated: 1611403810 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStaticDataBase.cs b/Client/Assets/Scripts/XMainClient/XStaticDataBase.cs new file mode 100644 index 00000000..c6c7ffb7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStaticDataBase.cs @@ -0,0 +1,33 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public abstract class XStaticDataBase : XSingleton where T : new() + { + protected bool m_bLoaded; + + public override bool Init() + { + bool bLoaded = this.m_bLoaded; + bool result; + if (bLoaded) + { + result = false; + } + else + { + this.OnInit(); + result = true; + } + return result; + } + + public override void Uninit() + { + this.m_bLoaded = false; + } + + protected abstract void OnInit(); + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStaticDataBase.cs.meta b/Client/Assets/Scripts/XMainClient/XStaticDataBase.cs.meta new file mode 100644 index 00000000..d3e45b7d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStaticDataBase.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 651647dede19645439a63b3f2e0c8658 +timeCreated: 1611403849 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStaticSecurityStatistics.cs b/Client/Assets/Scripts/XMainClient/XStaticSecurityStatistics.cs new file mode 100644 index 00000000..384cd439 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStaticSecurityStatistics.cs @@ -0,0 +1,230 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XStaticSecurityStatistics + { + public static XSecurityHPInfo _BossHPInfo = new XSecurityHPInfo(); + + public static XSecurityHPInfo _MonsterHPInfo = new XSecurityHPInfo(); + + public static XSecurityDamageInfo _BossDamageInfo = new XSecurityDamageInfo(); + + public static XSecurityDamageInfo _MonsterDamageInfo = new XSecurityDamageInfo(); + + public static XSecurityAIInfo _BossAIInfo = new XSecurityAIInfo(); + + public static XSecurityAIInfo _MonsterAIInfo = new XSecurityAIInfo(); + + public static float _BossMoveDistance; + + public static float _MonsterMoveDistance; + + public static DateTime _StartTime; + + private static bool _Inited = false; + + private static List _KeyList; + + private static List _ValueList; + + public static void Reset() + { + XStaticSecurityStatistics._MonsterDamageInfo.Reset(); + XStaticSecurityStatistics._BossDamageInfo.Reset(); + XStaticSecurityStatistics._BossHPInfo.Reset(); + XStaticSecurityStatistics._MonsterHPInfo.Reset(); + XStaticSecurityStatistics._BossAIInfo.Reset(); + XStaticSecurityStatistics._MonsterAIInfo.Reset(); + XStaticSecurityStatistics._BossMoveDistance = 0f; + XStaticSecurityStatistics._MonsterMoveDistance = 0f; + XStaticSecurityStatistics._StartTime = DateTime.Now; + XStaticSecurityStatistics._Inited = true; + } + + public static void OnEnd() + { + bool flag = !XStaticSecurityStatistics._Inited; + if (!flag) + { + XStaticSecurityStatistics._Inited = false; + bool flag2 = XSingleton.singleton.CurrentStage.Stage != EXStage.World || XSingleton.singleton.bSpectator; + if (!flag2) + { + List all = XSingleton.singleton.GetAll(); + XSecurityStatistics xsecurityStatistics; + for (int i = 0; i < all.Count; i++) + { + xsecurityStatistics = XSecurityStatistics.TryGetStatistics(all[i]); + bool flag3 = xsecurityStatistics == null; + if (!flag3) + { + xsecurityStatistics.Dump(); + } + } + bool flag4 = XSingleton.singleton.Player != null; + if (flag4) + { + XBattleEndArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + } + xsecurityStatistics = XSingleton.singleton.XPlayerData.SecurityStatistics; + bool flag5 = xsecurityStatistics != null; + if (flag5) + { + xsecurityStatistics.OnEnd(); + } + XStaticSecurityStatistics._SendBattleStartData(); + XStaticSecurityStatistics._SendBattleFinishMainData(); + XStaticSecurityStatistics._SendBattleFinishOtherData(); + } + } + } + + public static void Append(string key, string value, List keyList, List valueList) + { + keyList.Add(key); + valueList.Add(value); + } + + public static void Append(string key, string value) + { + XStaticSecurityStatistics.Append(key, value, XStaticSecurityStatistics._KeyList, XStaticSecurityStatistics._ValueList); + } + + public static void Append(string key, double value, List keyList, List valueList) + { + XStaticSecurityStatistics.Append(key, ((long)value).ToString(), keyList, valueList); + } + + public static void Append(string key, double value) + { + bool flag = value == 0.0 || value == double.MaxValue; + if (!flag) + { + XStaticSecurityStatistics.Append(key, value, XStaticSecurityStatistics._KeyList, XStaticSecurityStatistics._ValueList); + } + } + + public static void Append(string key, float value, List keyList, List valueList) + { + XStaticSecurityStatistics.Append(key, ((long)value).ToString(), keyList, valueList); + } + + public static void Append(string key, float value) + { + bool flag = value == 0f || value == float.MaxValue; + if (!flag) + { + XStaticSecurityStatistics.Append(key, value, XStaticSecurityStatistics._KeyList, XStaticSecurityStatistics._ValueList); + } + } + + private static void _SendBattleStartData() + { + PtcC2G_BattleLogReport ptcC2G_BattleLogReport = new PtcC2G_BattleLogReport(); + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + ptcC2G_BattleLogReport.Data.roleid = xplayerData.RoleID; + XStaticSecurityStatistics._KeyList = ptcC2G_BattleLogReport.Data.key; + XStaticSecurityStatistics._ValueList = ptcC2G_BattleLogReport.Data.value; + ptcC2G_BattleLogReport.Data.type = 1u; + XStaticSecurityStatistics.Append("ClientStartTime", XStaticSecurityStatistics._StartTime.ToString("yyyy-MM-dd HH:mm:ss")); + XSingleton.singleton.Send(ptcC2G_BattleLogReport); + XStaticSecurityStatistics._KeyList = null; + XStaticSecurityStatistics._ValueList = null; + } + + private static void _SendBattleFinishMainData() + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + XSecurityStatistics securityStatistics = xplayerData.SecurityStatistics; + bool flag = securityStatistics == null; + if (!flag) + { + PtcC2G_BattleLogReport ptcC2G_BattleLogReport = new PtcC2G_BattleLogReport(); + ptcC2G_BattleLogReport.Data.roleid = xplayerData.RoleID; + XStaticSecurityStatistics._KeyList = ptcC2G_BattleLogReport.Data.key; + XStaticSecurityStatistics._ValueList = ptcC2G_BattleLogReport.Data.value; + ptcC2G_BattleLogReport.Data.type = 2u; + XStaticSecurityStatistics.Append("ClientEndTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); + XBattleSkillDocument specificDocument = XDocuments.GetSpecificDocument(XBattleSkillDocument.uuID); + int num = 0; + while ((long)num < (long)((ulong)XBattleSkillDocument.Total_skill_slot)) + { + XStaticSecurityStatistics.Append("ButtonClickCount" + (num + 1), specificDocument.GetSlotClicked(num)); + num++; + } + bool syncMode = XSingleton.singleton.SyncMode; + if (syncMode) + { + bool flag2 = securityStatistics.AttributeStatistics != null; + if (flag2) + { + securityStatistics.AttributeStatistics.SendPlayerInitData(); + } + } + else + { + XStaticSecurityStatistics.Append("PlayerInitHP", securityStatistics._InitHp); + XStaticSecurityStatistics.Append("PlayerInitMP", securityStatistics._InitMp); + XStaticSecurityStatistics.Append("PlayerEndHP", securityStatistics._FinalHp); + XStaticSecurityStatistics.Append("PlayerEndMP", securityStatistics._FinalMp); + XStaticSecurityStatistics.Append("MoveTotal", securityStatistics._Distance); + bool flag3 = securityStatistics.AttributeStatistics != null; + if (flag3) + { + securityStatistics.AttributeStatistics.SendData(); + } + bool flag4 = securityStatistics.DamageStatistics != null; + if (flag4) + { + XSecurityDamageInfo.SendPlayerData(securityStatistics.DamageStatistics); + } + bool flag5 = securityStatistics.SkillStatistics != null; + if (flag5) + { + XSecuritySkillInfo.SendPlayerData(XSingleton.singleton.Player, securityStatistics.SkillStatistics); + } + XSecurityHPInfo.SendData(XStaticSecurityStatistics._BossHPInfo, "Boss"); + XSecurityHPInfo.SendData(XStaticSecurityStatistics._MonsterHPInfo, "Monster"); + XSecurityDamageInfo.SendEnemyData(XStaticSecurityStatistics._BossDamageInfo, "Boss"); + XSecurityDamageInfo.SendEnemyData(XStaticSecurityStatistics._MonsterDamageInfo, "Monster"); + XSecurityAIInfo.SendBossData(XStaticSecurityStatistics._BossAIInfo, "Boss"); + XSecurityAIInfo.SendEnemyData(XStaticSecurityStatistics._MonsterAIInfo, "Monster"); + XStaticSecurityStatistics.Append("BossMoveTotal", XStaticSecurityStatistics._BossMoveDistance); + XStaticSecurityStatistics.Append("MonsterMoveTotal", XStaticSecurityStatistics._MonsterMoveDistance); + XSingleton.singleton.SendData(); + } + XSingleton.singleton.Send(ptcC2G_BattleLogReport); + XStaticSecurityStatistics._KeyList = null; + XStaticSecurityStatistics._ValueList = null; + } + } + + private static void _SendBattleFinishOtherData() + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + XPlayerAttributes xplayerData = XSingleton.singleton.XPlayerData; + XSecurityStatistics securityStatistics = xplayerData.SecurityStatistics; + bool flag = securityStatistics == null; + if (!flag) + { + PtcC2G_BattleLogReport ptcC2G_BattleLogReport = new PtcC2G_BattleLogReport(); + ptcC2G_BattleLogReport.Data.roleid = xplayerData.RoleID; + XStaticSecurityStatistics._KeyList = ptcC2G_BattleLogReport.Data.key; + XStaticSecurityStatistics._ValueList = ptcC2G_BattleLogReport.Data.value; + ptcC2G_BattleLogReport.Data.type = 3u; + XSecurityBuffInfo.SendPlayerData(securityStatistics.BuffStatistics); + XSingleton.singleton.Send(ptcC2G_BattleLogReport); + XStaticSecurityStatistics._KeyList = null; + XStaticSecurityStatistics._ValueList = null; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStaticSecurityStatistics.cs.meta b/Client/Assets/Scripts/XMainClient/XStaticSecurityStatistics.cs.meta new file mode 100644 index 00000000..d40eaf17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStaticSecurityStatistics.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f36490fdf78eb9b4aa7348e5b181ba4d +timeCreated: 1611404848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStrengthPresevationOffArgs.cs b/Client/Assets/Scripts/XMainClient/XStrengthPresevationOffArgs.cs new file mode 100644 index 00000000..a7ec0007 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStrengthPresevationOffArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XStrengthPresevationOffArgs : XEventArgs + { + public XEntity Host; + + public XStrengthPresevationOffArgs() + { + this._eDefine = XEventDefine.XEvent_StrengthPresevedOff; + } + + public override void Recycle() + { + this.Host = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStrengthPresevationOffArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XStrengthPresevationOffArgs.cs.meta new file mode 100644 index 00000000..6f0885c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStrengthPresevationOffArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6db98fdb1b3567e46ae7e71f3282a5f1 +timeCreated: 1611403903 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStrengthPresevationOnArgs.cs b/Client/Assets/Scripts/XMainClient/XStrengthPresevationOnArgs.cs new file mode 100644 index 00000000..7fceffdd --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStrengthPresevationOnArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XStrengthPresevationOnArgs : XEventArgs + { + public XEntity Host; + + public XStrengthPresevationOnArgs() + { + this._eDefine = XEventDefine.XEvent_StrengthPresevedOn; + } + + public override void Recycle() + { + this.Host = null; + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStrengthPresevationOnArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XStrengthPresevationOnArgs.cs.meta new file mode 100644 index 00000000..ce8b449a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStrengthPresevationOnArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f71a8e6087f51e43a875963fcfe7808 +timeCreated: 1611403516 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XStringDefineProxy.cs b/Client/Assets/Scripts/XMainClient/XStringDefineProxy.cs new file mode 100644 index 00000000..d38a9560 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStringDefineProxy.cs @@ -0,0 +1,146 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XStringDefineProxy + { + public static string GetString(string key) + { + return XSingleton.singleton.GetString(key); + } + + public static string GetString(string key, params object[] args) + { + string value = ""; + bool data = XSingleton.singleton.GetData(key, out value); + return XStringDefineProxy.GetString(key, value, data, args); + } + + public static string GetReplaceString(string key, params object[] args) + { + string text = ""; + bool data = XSingleton.singleton.GetData(key, out text); + text = XSingleton.singleton.ReplaceReturn(text); + return XStringDefineProxy.GetString(key, text, data, args); + } + + private static string GetString(string key, string value, bool find, params object[] args) + { + for (int i = 0; i < args.Length; i++) + { + bool flag = args[i] is string; + if (flag) + { + args[i] = XSingleton.singleton.m_uiTool.GetLocalizedStr((string)args[i]); + } + } + string result; + if (find) + { + bool flag2 = args.Length == 0; + if (flag2) + { + result = value; + } + else + { + result = string.Format(value, args); + } + } + else + { + bool flag3 = key != "UNKNOWN_TARGET"; + if (flag3) + { + result = XStringDefineProxy.GetString("UNKNOWN_TARGET") + " " + key; + } + else + { + result = "UNKNOWN_TARGET not found in StringTable"; + } + } + return result; + } + + public static string GetString(XStringDefine strEnum) + { + string text = strEnum.ToString(); + string text2 = ""; + bool data = XSingleton.singleton.GetData(text, out text2); + bool flag = data; + string result; + if (flag) + { + result = text2; + } + else + { + bool flag2 = text != "UNKNOWN_TARGET"; + if (flag2) + { + result = XStringDefineProxy.GetString("UNKNOWN_TARGET") + " " + text; + } + else + { + result = "UNKNOWN_TARGET not found in StringTable"; + } + } + return result; + } + + public static string GetString(ErrorCode code) + { + string text = code.ToString(); + string text2 = ""; + bool data = XSingleton.singleton.GetData(text, out text2); + bool flag = data; + string result; + if (flag) + { + result = text2; + } + else + { + bool flag2 = text != "UNKNOWN_ERRCODE"; + if (flag2) + { + result = XStringDefineProxy.GetString("UNKNOWN_ERRCODE") + " " + text; + } + else + { + result = "UNKNOWN_ERRCODE not found in StringTable"; + } + } + return result; + } + + public static string GetString(XAttributeDefine strEnum) + { + string text = strEnum.ToString(); + string text2 = ""; + bool data = XSingleton.singleton.GetData(text, out text2); + bool flag = data; + string result; + if (flag) + { + result = text2; + } + else + { + bool flag2 = text != "UNKNOWN_TARGET"; + if (flag2) + { + result = XStringDefineProxy.GetString("UNKNOWN_TARGET") + " " + text; + } + else + { + result = "UNKNOWN_TARGET not found in StringTable"; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XStringDefineProxy.cs.meta b/Client/Assets/Scripts/XMainClient/XStringDefineProxy.cs.meta new file mode 100644 index 00000000..12ed7887 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XStringDefineProxy.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f8cea928020eafa4a982ac045076072d +timeCreated: 1611404896 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSubSysRedPointMgr.cs b/Client/Assets/Scripts/XMainClient/XSubSysRedPointMgr.cs new file mode 100644 index 00000000..3d7d8d15 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSubSysRedPointMgr.cs @@ -0,0 +1,70 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSubSysRedPointMgr + { + public List _btns = new List(); + + public class RedPointInfo + { + public IXUIObject _btn = null; + + public Transform redPoint = null; + } + + public void SetupRedPoints(IXUIObject[] btns) + { + this._btns.Clear(); + this.Append(btns); + this.UpdateRedPointUI(); + } + + public void Append(IXUIObject[] btns) + { + bool flag = btns != null; + if (flag) + { + foreach (IXUIObject btn in btns) + { + this.Append(btn); + } + } + } + + public void Append(IXUIObject btn) + { + bool flag = btn != null; + if (flag) + { + XSubSysRedPointMgr.RedPointInfo redPointInfo = new XSubSysRedPointMgr.RedPointInfo(); + redPointInfo._btn = btn; + redPointInfo.redPoint = btn.gameObject.transform.Find("RedPoint"); + this._btns.Add(redPointInfo); + } + } + + public void UpdateRedPointUI() + { + bool flag = this._btns == null; + if (!flag) + { + XGameSysMgr singleton = XSingleton.singleton; + for (int i = 0; i < this._btns.Count; i++) + { + XSubSysRedPointMgr.RedPointInfo redPointInfo = this._btns[i]; + bool flag2 = redPointInfo._btn == null || redPointInfo.redPoint == null; + if (!flag2) + { + XSysDefine sys = (XSysDefine)redPointInfo._btn.ID; + redPointInfo.redPoint.gameObject.SetActive(singleton.GetSysRedPointState(sys)); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSubSysRedPointMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XSubSysRedPointMgr.cs.meta new file mode 100644 index 00000000..19acf508 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSubSysRedPointMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 63588ac931291f54e93fbc2cc5670e89 +timeCreated: 1611403844 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSubstance.cs b/Client/Assets/Scripts/XMainClient/XSubstance.cs new file mode 100644 index 00000000..5094b9bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSubstance.cs @@ -0,0 +1,37 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSubstance : XEntity + { + public override bool Initilize(int flag) + { + this._eEntity_Type |= XEntity.EnitityType.Entity_Substance; + this._present = (XSingleton.singleton.CreateComponent(this, XPresentComponent.uuID) as XPresentComponent); + this._machine = (XSingleton.singleton.CreateComponent(this, XStateMachine.uuID) as XStateMachine); + XIdleComponent defaultState = XSingleton.singleton.CreateComponent(this, XIdleComponent.uuID) as XIdleComponent; + this._death = (XSingleton.singleton.CreateComponent(this, XDeathComponent.uuID) as XDeathComponent); + this._machine.SetDefaultState(defaultState); + bool flag2 = (flag & XFastEnumIntEqualityComparer.ToInt(XEntity.InitFlag.Entity_Transform)) == 0; + if (flag2) + { + this._net = (XSingleton.singleton.CreateComponent(this, XNetComponent.uuID) as XNetComponent); + } + return true; + } + + protected override void Move() + { + } + + public override void Died() + { + bool flag = this.Attributes.TypeID == 5001u; + if (flag) + { + XSingleton.singleton.DestroyEntity(this); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSubstance.cs.meta b/Client/Assets/Scripts/XMainClient/XSubstance.cs.meta new file mode 100644 index 00000000..26d0fb12 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSubstance.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d4e623fec0caf2479b17f7079bc6876 +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSuperArmorComponent.cs b/Client/Assets/Scripts/XMainClient/XSuperArmorComponent.cs new file mode 100644 index 00000000..c9d14651 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperArmorComponent.cs @@ -0,0 +1,221 @@ +using System; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSuperArmorComponent : XComponent + { + public override uint ID + { + get + { + return XSuperArmorComponent.uuID; + } + } + + private bool _woozyOn = false; + + private float _recoveryTimeLimit = 0f; + + private uint _timeToken = 0u; + + public new static readonly uint uuID = XSingleton.singleton.XHash("XSuperArmorComponent"); + + private static readonly int BossType = 1; + + private static readonly int EliteType = 6; + + public override void Attached() + { + this.SetRecoveryTimeLimit(this._entity.Attributes.SuperArmorRecoveryTimeLimit); + } + + public void SetRecoveryTimeLimit(double second) + { + this._recoveryTimeLimit = (float)second; + } + + public override void Update(float fDeltaT) + { + bool syncMode = XSingleton.singleton.SyncMode; + if (!syncMode) + { + bool isSuperArmorBroken = this._entity.Attributes.IsSuperArmorBroken; + if (isSuperArmorBroken) + { + this.RecoverySuperArmor(fDeltaT); + } + else + { + this.CheckSuperArmorBroken(); + } + } + } + + private void OnTimer(object o) + { + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentSuperArmor_Basic; + @event.DeltaValue = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Basic) - this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Basic) + 1.0; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + this._entity.Attributes.IsSuperArmorBroken = false; + this._woozyOn = false; + XArmorRecoverArgs event2 = XEventPool.GetEvent(); + event2.Firer = this._entity; + XSingleton.singleton.FireEvent(event2); + XArmorRecoverArgs event3 = XEventPool.GetEvent(); + event3.Firer = XSingleton.singleton.Doc; + event3.Self = this._entity; + XSingleton.singleton.FireEvent(event3); + } + + private void CheckSuperArmorBroken() + { + bool flag = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Basic) <= 0.0 && this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic) > 0.0; + if (flag) + { + this._woozyOn = false; + this._entity.Attributes.IsSuperArmorBroken = true; + XArmorBrokenArgs @event = XEventPool.GetEvent(); + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + XArmorBrokenArgs event2 = XEventPool.GetEvent(); + event2.Firer = XSingleton.singleton.Doc; + event2.Self = this._entity; + XSingleton.singleton.FireEvent(event2); + bool flag2 = !XSingleton.singleton.SyncMode; + if (flag2) + { + bool flag3 = this._recoveryTimeLimit > 0f; + if (flag3) + { + this._timeToken = XSingleton.singleton.SetTimer(this._recoveryTimeLimit, new XTimerMgr.ElapsedEventHandler(this.OnTimer), null); + } + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + bool flag4 = byID != null; + if (flag4) + { + bool flag5 = byID.SuperArmorBrokenBuff[0] != 0 && byID.SuperArmorBrokenBuff[1] != 0; + if (flag5) + { + XBuffAddEventArgs event3 = XEventPool.GetEvent(); + event3.xBuffDesc.BuffID = byID.SuperArmorBrokenBuff[0]; + event3.xBuffDesc.BuffLevel = byID.SuperArmorBrokenBuff[1]; + event3.Firer = this._entity; + event3.xBuffDesc.CasterID = this._entity.ID; + XSingleton.singleton.FireEvent(event3); + } + } + } + } + } + + private double GetRateByState() + { + KKSG.XQTEState qtespecificPhase = this._entity.GetQTESpecificPhase(); + bool flag = qtespecificPhase > KKSG.XQTEState.QTE_None; + if (flag) + { + int num = XSingleton.singleton.SuperArmorCoffTable.Table.Length; + int i = 0; + while (i < num) + { + SuperArmorRecoveryCoffTable.RowData rowData = XSingleton.singleton.SuperArmorCoffTable.Table[i]; + bool flag2 = rowData.Value == XFastEnumIntEqualityComparer.ToInt(qtespecificPhase); + if (flag2) + { + bool flag3 = this._entity.IsBoss && rowData.monster_type == XSuperArmorComponent.BossType; + if (flag3) + { + return rowData.SupRecoveryChange; + } + bool flag4 = this._entity.IsElite && rowData.monster_type == XSuperArmorComponent.EliteType; + if (flag4) + { + return rowData.SupRecoveryChange; + } + return rowData.SupRecoveryChange; + } + else + { + i++; + } + } + } + return 1.0; + } + + private void RecoverySuperArmor(float fDeltaT) + { + bool woozyOn = this._woozyOn; + if (woozyOn) + { + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + double attr = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_SuperArmorRecovery_Total); + double rateByState = this.GetRateByState(); + XAttrChangeEventArgs @event = XEventPool.GetEvent(); + @event.AttrKey = XAttributeDefine.XAttr_CurrentSuperArmor_Basic; + @event.DeltaValue = attr * rateByState * (double)fDeltaT; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + } + bool flag2 = this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentSuperArmor_Basic) == this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_MaxSuperArmor_Basic) && this._entity.Attributes.GetAttr(XAttributeDefine.XAttr_CurrentHP_Basic) > 0.0; + if (flag2) + { + XSingleton.singleton.AddLog("Stop Broken State", null, null, null, null, null, XDebugColor.XDebug_None); + this._entity.Attributes.IsSuperArmorBroken = false; + this._woozyOn = false; + XArmorRecoverArgs event2 = XEventPool.GetEvent(); + event2.Firer = this._entity; + XSingleton.singleton.FireEvent(event2); + XArmorRecoverArgs event3 = XEventPool.GetEvent(); + event3.Firer = XSingleton.singleton.Doc; + event3.Self = this._entity; + XSingleton.singleton.FireEvent(event3); + XSingleton.singleton.KillTimer(this._timeToken); + } + } + } + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_WoozyOn, new XComponent.XEventHandler(this.OnWoozyEvent)); + base.RegisterEvent(XEventDefine.XEvent_WoozyOff, new XComponent.XEventHandler(this.OnWoozyOffEvent)); + } + + protected bool OnWoozyOffEvent(XEventArgs e) + { + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(this._entity.TypeID); + bool flag2 = byID != null && byID.SuperArmorBrokenBuff[0] != 0 && byID.SuperArmorBrokenBuff[1] != 0; + if (flag2) + { + XBuffRemoveEventArgs @event = XEventPool.GetEvent(); + @event.xBuffID = byID.SuperArmorBrokenBuff[0]; + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + } + } + this._woozyOn = false; + return true; + } + + protected bool OnWoozyEvent(XEventArgs e) + { + this._woozyOn = true; + return true; + } + + public override void OnDetachFromHost() + { + XSingleton.singleton.KillTimer(this._timeToken); + base.OnDetachFromHost(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSuperArmorComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XSuperArmorComponent.cs.meta new file mode 100644 index 00000000..617875c5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperArmorComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7a2a760c1c561034ca9305acb6f86e78 +timeCreated: 1611403988 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskDocument.cs b/Client/Assets/Scripts/XMainClient/XSuperRiskDocument.cs new file mode 100644 index 00000000..e431e0df --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskDocument.cs @@ -0,0 +1,1075 @@ +using System; +using System.Collections.Generic; +using System.Reflection; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSuperRiskDocument : XDocComponent + { + public override uint ID + { + get + { + return XSuperRiskDocument.uuID; + } + } + + public static XSuperRiskDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XSuperRiskDocument.uuID) as XSuperRiskDocument; + } + } + + public int CurrentMapID + { + get + { + bool flag = this.m_curMapID == 0; + if (flag) + { + RiskMapFile.RowData defaultMapData = this.GetDefaultMapData(); + bool flag2 = defaultMapData != null; + if (flag2) + { + this.m_curMapID = defaultMapData.MapID; + } + else + { + XSingleton.singleton.AddErrorLog("RiskMapFile no data!", null, null, null, null, null); + } + } + return this.m_curMapID; + } + set + { + bool flag = !this.m_bIsNeedSetMapId; + if (flag) + { + this.m_bIsNeedSetMapId = true; + } + else + { + this.m_curMapID = value; + } + } + } + + public int LeftDiceTime + { + get + { + return this.m_leftDiceTime; + } + set + { + bool flag = value != this.m_leftDiceTime; + if (flag) + { + this.m_leftDiceTime = value; + this.DiceTimesIsFull = (value == this.MaxLeftTimes); + } + } + } + + public bool DiceTimesIsFull + { + get + { + return this.m_bDiceTimesIsFull; + } + set + { + bool flag = value != this.m_bDiceTimesIsFull; + if (flag) + { + this.m_bDiceTimesIsFull = value; + XSingleton.singleton.UpdateRedPointOnHallUI(XSysDefine.XSys_SuperRisk); + } + } + } + + public int MaxLeftTimes + { + get + { + bool flag = this.m_maxLeftTimes == -1; + if (flag) + { + int.TryParse(XSingleton.singleton.GetValue("RiskDiceMaxNum"), out this.m_maxLeftTimes); + } + return this.m_maxLeftTimes; + } + } + + public ItemBrief OnlineBoxCost + { + get + { + return this.m_onlineBoxCost; + } + } + + public int DiceReplyMaxNum + { + get + { + bool flag = this.m_bDiceReplyMaxNum == 0; + if (flag) + { + SeqList sequenceList = XSingleton.singleton.GetSequenceList("RiskRecoverDiceNum", true); + bool flag2 = sequenceList == null || sequenceList.Count == 0; + if (flag2) + { + this.m_bDiceReplyMaxNum = 0; + } + else + { + this.m_bDiceReplyMaxNum = sequenceList[0, 0]; + } + } + return this.m_bDiceReplyMaxNum; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SuperRiskDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static RiskMapFile _reader = new RiskMapFile(); + + public SuperRiskGameHandler GameViewHandler; + + public SuperRiskState GameState; + + protected int StepToGo = 0; + + private SuperRiskMesType m_reqMesType = SuperRiskMesType.None; + + private bool m_bDiceTimesIsFull = false; + + private int m_leftDiceTime = 0; + + private int m_maxLeftTimes = -1; + + private int m_curMapID = 0; + + private bool m_bIsNeedSetMapId = true; + + public float RefreshDiceTime = 0f; + + public List CurrentDynamicInfo = new List(); + + public Dictionary SlotBoxInfo = new Dictionary(); + + public bool NeedUpdate = false; + + public bool IsNeedEnterMainGame = false; + + public Dictionary SpeedUpCost = new Dictionary(); + + public HistoryMaxStruct HisMaxLevel = new HistoryMaxStruct(); + + private ItemBrief m_onlineBoxCost = null; + + private List m_onlineBoxItems = null; + + private bool m_bBoxIsHadOpen = false; + + private int m_bDiceReplyMaxNum = 0; + + public bool IsHadOnlineBoxCache = false; + + private List m_boxCatchItems = new List(); + + private bool IsHadCanGetBox() + { + bool flag = this.SlotBoxInfo == null || this.SlotBoxInfo.Count == 0; + bool result; + if (flag) + { + result = this.m_bBoxIsHadOpen; + } + else + { + foreach (KeyValuePair keyValuePair in this.SlotBoxInfo) + { + bool flag2 = keyValuePair.Value.state == RiskBoxState.RISK_BOX_CANGETREWARD; + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public bool IsShowMainUiTips() + { + return this.IsHadCanGetBox() || this.DiceTimesIsFull; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XSuperRiskDocument.AsyncLoader.AddTask("Table/RiskMapFile", XSuperRiskDocument._reader, false); + XSuperRiskDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.m_reqMesType == SuperRiskMesType.NoticeMoveOver; + if (flag) + { + this.NoticeMoveOver(); + } + bool flag2 = this.m_reqMesType == SuperRiskMesType.RequestDicing || this.m_reqMesType == SuperRiskMesType.ReqMapDynamicInfo; + if (flag2) + { + this.ReqMapDynamicInfo(this.CurrentMapID, false, false); + } + } + + public void ReqMapDynamicInfo(int mapID, bool bRefresh = false, bool bOnlyCountInfo = false) + { + bool flag = XSingleton.singleton.CurrentStage == null || !XSingleton.singleton.CurrentStage.IsEntered; + if (!flag) + { + this.m_reqMesType = SuperRiskMesType.ReqMapDynamicInfo; + RpcC2G_GetRiskMapInfos rpcC2G_GetRiskMapInfos = new RpcC2G_GetRiskMapInfos(); + rpcC2G_GetRiskMapInfos.oArg.mapID = mapID; + rpcC2G_GetRiskMapInfos.oArg.isRefresh = bRefresh; + rpcC2G_GetRiskMapInfos.oArg.onlyCountInfo = bOnlyCountInfo; + XSingleton.singleton.Send(rpcC2G_GetRiskMapInfos); + } + } + + public void ReqBuyOnlineBox() + { + this.m_reqMesType = SuperRiskMesType.ReqBuyOnlineBox; + RpcC2G_RiskBuyRequest rpc = new RpcC2G_RiskBuyRequest(); + XSingleton.singleton.Send(rpc); + } + + public void NoticeMoveOver() + { + this.m_reqMesType = SuperRiskMesType.NoticeMoveOver; + RpcC2G_PlayDiceOver rpc = new RpcC2G_PlayDiceOver(); + XSingleton.singleton.Send(rpc); + } + + public void ChangeBoxState(int slot, RiskBoxState newState) + { + this.m_reqMesType = SuperRiskMesType.ChangeBoxState; + RpcC2G_ChangeRiskBoxState rpcC2G_ChangeRiskBoxState = new RpcC2G_ChangeRiskBoxState(); + rpcC2G_ChangeRiskBoxState.oArg.mapID = this.CurrentMapID; + rpcC2G_ChangeRiskBoxState.oArg.slot = slot; + rpcC2G_ChangeRiskBoxState.oArg.destState = newState; + XSingleton.singleton.Send(rpcC2G_ChangeRiskBoxState); + } + + public void RequestDicing(int value) + { + this.m_reqMesType = SuperRiskMesType.RequestDicing; + RpcC2G_PlayDiceRequest rpcC2G_PlayDiceRequest = new RpcC2G_PlayDiceRequest(); + rpcC2G_PlayDiceRequest.oArg.mapid = this.CurrentMapID; + rpcC2G_PlayDiceRequest.oArg.randValue = value; + XSingleton.singleton.Send(rpcC2G_PlayDiceRequest); + } + + public void PlayDiceNtfBack(PtcG2C_PlayDiceNtf roPtc) + { + this.m_bBoxIsHadOpen = false; + bool flag = roPtc.Data.mapID != 0; + if (flag) + { + this.m_bBoxIsHadOpen = true; + bool flag2 = this.SlotBoxInfo.ContainsKey(roPtc.Data.slot); + if (flag2) + { + this.SlotBoxInfo[roPtc.Data.slot].state = RiskBoxState.RISK_BOX_CANGETREWARD; + bool flag3 = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag3) + { + this.GameViewHandler.UpdateSlotBox(roPtc.Data.slot); + } + } + } + bool flag4 = this.DiceTimesIsFull != roPtc.Data.isDiceFull; + if (flag4) + { + this.DiceTimesIsFull = roPtc.Data.isDiceFull; + } + else + { + XSingleton.singleton.UpdateRedPointOnHallUI(XSysDefine.XSys_SuperRisk); + } + } + + public void RiskBuyNtfBack(PtcG2C_RiskBuyNtf roPtc) + { + this.m_onlineBoxCost = roPtc.Data.cost; + this.m_onlineBoxItems = roPtc.Data.rewardItems; + this.IsHadOnlineBoxCache = this.IsNeedCatchOnlineBox(); + bool isHadOnlineBoxCache = this.IsHadOnlineBoxCache; + if (!isHadOnlineBoxCache) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + bool flag2 = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag2) + { + this.GameViewHandler.HideDice(); + this.GameViewHandler.ShowOnlineBox(); + } + } + } + } + + public void BuyOnlineBoxBack(RiskBuyRequestRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + bool flag2 = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag2) + { + this.GameViewHandler.CloseOnlineBox(); + } + bool flag3 = this.m_onlineBoxItems != null; + if (flag3) + { + DlgBase.singleton.Show(this.m_onlineBoxItems, null); + } + } + } + + public bool IsNeedCatchOnlineBox() + { + RiskGridInfo gridDynamicInfo = this.GetGridDynamicInfo(XSingleton.singleton.CurrentMap.PlayerCoord); + bool flag = gridDynamicInfo == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = gridDynamicInfo.gridType == RiskGridType.RISK_GRID_NORMALREWARD || gridDynamicInfo.gridType == RiskGridType.RISK_GRID_ADVENTURE; + result = flag2; + } + return result; + } + + public void OnGetMapDynamicInfo(GetRiskMapInfosArg oArg, GetRiskMapInfosRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + this.GameState = SuperRiskState.SuperRiskReadyToMove; + } + else + { + bool flag2 = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + this.GameState = SuperRiskState.SuperRiskReadyToMove; + } + else + { + bool onlyCountInfo = oArg.onlyCountInfo; + if (onlyCountInfo) + { + bool flag3 = oRes.mapInfo != null; + if (flag3) + { + this.LeftDiceTime = oRes.mapInfo.diceNum; + } + XActivityDocument.Doc.OnGetDayCount(); + } + else + { + bool flag4 = oRes.mapInfo != null; + if (flag4) + { + for (int i = 0; i < oRes.mapInfo.infos.Count; i++) + { + bool flag5 = oRes.mapInfo.infos[i].mapid == oArg.mapID; + if (flag5) + { + this.OnGetMapDynamicInfo(oRes.mapInfo.infos[i], oRes.mapInfo.diceNum, oRes.mapInfo.leftDiceTime, oArg.isRefresh); + } + } + } + } + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.RefreshRedPoint(XSysDefine.XSyS_Welfare_RewardBack, true); + } + } + } + + private void OnGetMapDynamicInfo(RiskOneMapInfo mapInfo, int leftTime, int refreshDiceTime, bool bRefresh = false) + { + this.CurrentMapID = mapInfo.mapid; + this.GenerateMap(); + XSingleton.singleton.SetPlayerPosDirection(mapInfo.curX, mapInfo.curY, mapInfo.moveDirection); + this.CurrentDynamicInfo.Clear(); + for (int i = 0; i < mapInfo.grids.Count; i++) + { + this.CurrentDynamicInfo.Add(mapInfo.grids[i]); + } + bool flag = !bRefresh; + if (flag) + { + this.GameState = SuperRiskState.SuperRiskReadyToMove; + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + bool flag3 = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag3) + { + this.GameViewHandler.RefreshUi(); + } + } + } + else + { + bool flag4 = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag4) + { + this.GameViewHandler.RefreshMap(); + } + this.GameState = SuperRiskState.SuperRiskReadyToMove; + } + this.SetDiceLeftTime(leftTime, refreshDiceTime); + this.SetBoxInfo(mapInfo.boxInfos); + this.NeedUpdate = true; + } + + public void OnMoveOver(PlayDiceOverRes oRes) + { + this.m_reqMesType = SuperRiskMesType.None; + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + this.ReqMapDynamicInfo(this.CurrentMapID, false, false); + } + else + { + bool flag2 = this.GameViewHandler == null || !this.GameViewHandler.IsVisible(); + if (flag2) + { + this.GameState = SuperRiskState.SuperRiskReadyToMove; + } + else + { + RiskBoxInfo addBoxInfo = oRes.addBoxInfo; + bool flag3 = this.GameState == SuperRiskState.SuperRiskEvent; + if (flag3) + { + Coordinate playerCoord = XSingleton.singleton.CurrentMap.PlayerCoord; + RiskGridInfo gridDynamicInfo = this.GetGridDynamicInfo(playerCoord); + bool flag4 = gridDynamicInfo == null; + if (flag4) + { + bool flag5 = this.GameViewHandler != null; + if (flag5) + { + this.GameViewHandler.OnMapItemFetched(XSingleton.singleton.CurrentMap.PlayerCoord); + } + this.GameState = SuperRiskState.SuperRiskReadyToMove; + } + else + { + bool flag6 = gridDynamicInfo.gridType == RiskGridType.RISK_GRID_REWARDBOX; + if (flag6) + { + bool flag7 = this.GameViewHandler != null; + if (flag7) + { + this.GameViewHandler.OnMapItemFetched(XSingleton.singleton.CurrentMap.PlayerCoord); + } + bool flag8 = addBoxInfo == null; + if (flag8) + { + this.RefreshMapIfFinish(); + } + else + { + this.GameState = SuperRiskState.SuperRiskGetBoxAnimation; + bool flag9 = this.SlotBoxInfo.ContainsKey(addBoxInfo.slot); + if (flag9) + { + this.SlotBoxInfo[addBoxInfo.slot].Apply(addBoxInfo); + } + else + { + this.SlotBoxInfo.Add(addBoxInfo.slot, new ClientBoxInfo(addBoxInfo)); + } + bool flag10 = this.GameViewHandler != null; + if (flag10) + { + this.GameViewHandler.PlayGetBoxAnimation(gridDynamicInfo.rewardItem.itemID, addBoxInfo.slot); + } + } + } + else + { + bool flag11 = this.GameViewHandler != null; + if (flag11) + { + this.GameViewHandler.OnMapItemFetched(XSingleton.singleton.CurrentMap.PlayerCoord); + } + this.GameState = SuperRiskState.SuperRiskReadyToMove; + } + } + } + } + } + } + + public void OnBoxStateChangeSucc(ChangeRiskBoxStateArg oArg, ChangeRiskBoxStateRes oRes) + { + int slot = oArg.slot; + RiskBoxState destState = oArg.destState; + bool flag = destState == RiskBoxState.RISK_BOX_GETREWARD && oRes.openBoxRewards.Count > 0; + if (flag) + { + this.m_bBoxIsHadOpen = false; + this.GameViewHandler.HideDice(); + this.m_boxCatchItems.Clear(); + for (int i = 0; i < oRes.openBoxRewards.Count; i++) + { + ItemBrief item = this.GetItem(oRes.openBoxRewards[i].itemID); + bool flag2 = item == null; + if (flag2) + { + this.m_boxCatchItems.Add(oRes.openBoxRewards[i]); + } + else + { + ItemBrief itemBrief = item; + uint itemCount = itemBrief.itemCount; + itemBrief.itemCount = itemCount + 1u; + } + } + List newItemList = this.GetNewItemList(); + DlgBase.singleton.Show(newItemList, new Action(this.ShowBoxCatchItem)); + } + bool flag3 = this.SlotBoxInfo.ContainsKey(slot); + if (flag3) + { + this.SlotBoxInfo[slot].state = destState; + bool flag4 = destState == RiskBoxState.RISK_BOX_GETREWARD || destState == RiskBoxState.RISK_BOX_DELETE; + if (flag4) + { + this.SlotBoxInfo.Remove(slot); + } + } + XSingleton.singleton.UpdateRedPointOnHallUI(XSysDefine.XSys_SuperRisk); + bool flag5 = this.GameViewHandler != null; + if (flag5) + { + this.GameViewHandler.UpdateSlotBox(slot); + } + } + + private ItemBrief GetItem(uint itemId) + { + for (int i = 0; i < this.m_boxCatchItems.Count; i++) + { + bool flag = itemId == this.m_boxCatchItems[i].itemID; + if (flag) + { + return this.m_boxCatchItems[i]; + } + } + return null; + } + + private List GetNewItemList() + { + List list = new List(); + int num = (this.m_boxCatchItems.Count > 10) ? 10 : this.m_boxCatchItems.Count; + for (int i = 0; i < num; i++) + { + list.Add(this.m_boxCatchItems[i]); + } + this.m_boxCatchItems.RemoveRange(0, num); + return list; + } + + public void OnGetDicingResult(PlayDiceRequestRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + this.NoticeMoveOver(); + this.GameState = SuperRiskState.SuperRiskReadyToMove; + } + else + { + XSingleton.singleton.AddGreenLog("Server dice: ", oRes.getValue.ToString(), null, null, null, null); + int getValue = oRes.getValue; + int leftDiceTime = oRes.leftDiceTime; + this.GameState = SuperRiskState.SuperRiskDicing; + int leftDiceTime2 = this.LeftDiceTime; + this.LeftDiceTime = leftDiceTime2 - 1; + this.RefreshDiceTime = (float)leftDiceTime; + bool flag2 = this.GameViewHandler != null; + if (flag2) + { + bool flag3 = this.GameViewHandler.IsVisible(); + if (flag3) + { + this.GameViewHandler.SetDiceLeftTime(); + this.GameViewHandler.PlayDiceAnimation(getValue); + } + else + { + this.NoticeMoveOver(); + } + } + } + } + + private void ShowBoxCatchItem() + { + List newItemList = this.GetNewItemList(); + bool flag = newItemList.Count == 0; + if (flag) + { + this.RewdAnimCallBack(); + } + else + { + DlgBase.singleton.Show(newItemList, new Action(this.ShowBoxCatchItem)); + } + } + + public void RewdAnimCallBack() + { + bool isHadOnlineBoxCache = this.IsHadOnlineBoxCache; + if (isHadOnlineBoxCache) + { + this.IsHadOnlineBoxCache = false; + bool flag = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag) + { + this.GameViewHandler.ShowOnlineBox(); + } + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + SeqList sequence4List = XSingleton.singleton.GetSequence4List("RiskBoxAccelerate", true); + this.SpeedUpCost.Clear(); + for (int i = 0; i < (int)sequence4List.Count; i++) + { + SuperRiskSpeedCost superRiskSpeedCost = default(SuperRiskSpeedCost); + superRiskSpeedCost.quality = sequence4List[i, 0]; + superRiskSpeedCost.time = sequence4List[i, 1]; + superRiskSpeedCost.itemID = sequence4List[i, 2]; + superRiskSpeedCost.itemCount = sequence4List[i, 3]; + this.SpeedUpCost.Add(superRiskSpeedCost.quality, superRiskSpeedCost); + } + this.HisMaxLevel.Replace(); + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_RISK; + if (flag) + { + this.IsNeedEnterMainGame = true; + this.m_bIsNeedSetMapId = false; + XSingleton.singleton.CacheUI(XSysDefine.XSys_SuperRisk, EXStage.Hall); + } + } + + public SuperRiskSpeedCost GetSpeedCost(int quality) + { + bool flag = !this.SpeedUpCost.ContainsKey(quality); + SuperRiskSpeedCost result; + if (flag) + { + XSingleton.singleton.AddErrorLog("No Speed cost config for quality", quality.ToString(), null, null, null, null); + result = default(SuperRiskSpeedCost); + } + else + { + result = this.SpeedUpCost[quality]; + } + return result; + } + + public RiskMapFile.RowData GetMapIdByIndex(int index) + { + bool flag = index >= XSuperRiskDocument._reader.Table.Length; + RiskMapFile.RowData result; + if (flag) + { + result = null; + } + else + { + result = XSuperRiskDocument._reader.Table[index]; + } + return result; + } + + public RiskMapFile.RowData GetCurrentMapData() + { + return XSuperRiskDocument._reader.GetByMapID(this.CurrentMapID); + } + + private RiskMapFile.RowData GetDefaultMapData() + { + uint level = XSingleton.singleton.XPlayerData.Level; + bool flag = XSuperRiskDocument._reader.Table.Length == 0; + RiskMapFile.RowData result; + if (flag) + { + result = null; + } + else + { + int i = 0; + while (i < XSuperRiskDocument._reader.Table.Length) + { + bool flag2 = (long)XSuperRiskDocument._reader.Table[i].NeedLevel > (long)((ulong)level); + if (flag2) + { + bool flag3 = i == 0; + if (flag3) + { + return XSuperRiskDocument._reader.Table[0]; + } + return XSuperRiskDocument._reader.Table[i - 1]; + } + else + { + i++; + } + } + result = XSuperRiskDocument._reader.Table[XSuperRiskDocument._reader.Table.Length - 1]; + } + return result; + } + + public void GenerateMap() + { + bool flag = this.CurrentMapID == 0; + if (!flag) + { + RiskMapFile.RowData byMapID = XSuperRiskDocument._reader.GetByMapID(this.CurrentMapID); + bool flag2 = byMapID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("No risk map info found", null, null, null, null, null); + } + else + { + XSingleton.singleton.CurrentMap.Clear(); + string currentMap = byMapID.FileName.Substring(0, byMapID.FileName.Length - 4); + XSingleton.singleton.SetCurrentMap(currentMap); + XSingleton.singleton.CurrentMap.renderer.SetInitInfo(new Vector2((float)byMapID.StartUIX, (float)byMapID.StartUIY), (float)byMapID.StepSizeX, (float)byMapID.StepSizeY); + } + } + } + + public void SetDiceLeftTime(int leftTime, int refreshDiceTime) + { + this.LeftDiceTime = leftTime; + this.RefreshDiceTime = (float)refreshDiceTime; + bool flag = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag) + { + this.GameViewHandler.SetDiceLeftTime(); + } + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + specificDocument.OnRefreshRewardBack(); + } + + public void SetBoxInfo(List Info) + { + this.SlotBoxInfo.Clear(); + for (int i = 0; i < Info.Count; i++) + { + this.SlotBoxInfo[Info[i].slot] = new ClientBoxInfo(Info[i]); + } + bool flag = this.GameViewHandler != null; + if (flag) + { + this.GameViewHandler.SetupSlotBoxes(); + } + } + + public Vector2 GetPlayerAvatarPos() + { + Coordinate playerCoord = XSingleton.singleton.CurrentMap.PlayerCoord; + return XSingleton.singleton.CurrentMap.renderer.CoordToUI(playerCoord); + } + + public Vector2 GetGridPos(int x, int y) + { + Coordinate coord = new Coordinate(x, y); + return XSingleton.singleton.CurrentMap.renderer.CoordToUI(coord); + } + + public bool StartRoll() + { + bool flag = this.GameState == SuperRiskState.SuperRiskReadyToMove; + bool result; + if (flag) + { + this.SetState(SuperRiskState.SuperRiskRolling); + result = true; + } + else + { + result = false; + } + return result; + } + + protected void SetState(SuperRiskState state) + { + this.GameState = state; + } + + public void Go(int step) + { + bool flag = this.GameState != SuperRiskState.SuperRiskDicing; + if (!flag) + { + this.GameState = SuperRiskState.SuperRiskMoving; + this.StepToGo = step; + this.GoStep(); + } + } + + public void GoStep() + { + Coordinate invalid = Coordinate.Invalid; + XSingleton.singleton.CurrentMap.StartMoveNext(ref invalid); + bool flag = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag) + { + this.GameViewHandler.MoveStep(XSingleton.singleton.CurrentMap.renderer.CoordToUI(invalid)); + } + else + { + this.NoticeMoveOver(); + } + } + + public void OnGoStepOver() + { + XSingleton.singleton.CurrentMap.MoveNext(); + char c; + XSingleton.singleton.CurrentMap.GetNodeGroup(XSingleton.singleton.CurrentMap.PlayerCoord, out c); + bool flag = c == 'T'; + if (flag) + { + this.OnGotoEnd(); + } + else + { + int num = this.StepToGo - 1; + this.StepToGo = num; + bool flag2 = num > 0; + if (flag2) + { + this.GoStep(); + } + else + { + XSingleton.singleton.AddGreenLog("SuperRisk: Move Over", null, null, null, null, null); + this.StartEvent(); + } + } + } + + public void StopStep() + { + this.StepToGo = 0; + } + + public RiskGridInfo GetGridDynamicInfo(Coordinate c) + { + for (int i = 0; i < this.CurrentDynamicInfo.Count; i++) + { + bool flag = c.x == this.CurrentDynamicInfo[i].x && c.y == this.CurrentDynamicInfo[i].y; + if (flag) + { + return this.CurrentDynamicInfo[i]; + } + } + return null; + } + + public int GetGridDynamicIndex(Coordinate c) + { + for (int i = 0; i < this.CurrentDynamicInfo.Count; i++) + { + bool flag = c.x == this.CurrentDynamicInfo[i].x && c.y == this.CurrentDynamicInfo[i].y; + if (flag) + { + return i; + } + } + return 0; + } + + protected void OnGotoEnd() + { + this.StepToGo = 0; + this.StartEvent(); + } + + protected void StartEvent() + { + this.GameState = SuperRiskState.SuperRiskEvent; + Coordinate playerCoord = XSingleton.singleton.CurrentMap.PlayerCoord; + RiskGridInfo gridDynamicInfo = this.GetGridDynamicInfo(playerCoord); + bool flag = gridDynamicInfo == null; + if (flag) + { + this.NoticeMoveOver(); + } + else + { + switch (gridDynamicInfo.gridType) + { + case RiskGridType.RISK_GRID_EMPTY: + this.NoticeMoveOver(); + break; + case RiskGridType.RISK_GRID_NORMALREWARD: + this.ProcessEventNormalEvent(); + break; + case RiskGridType.RISK_GRID_REWARDBOX: + this.ProcessEventBoxEvent(); + break; + case RiskGridType.RISK_GRID_ADVENTURE: + this.ProcessEventRiskEvent(); + break; + default: + this.NoticeMoveOver(); + break; + } + } + } + + protected void ProcessEventNormalEvent() + { + this.NoticeMoveOver(); + } + + protected void ProcessEventBoxEvent() + { + bool flag = this.SlotBoxInfo.Count >= 3; + if (flag) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("SuriskRiskBoxFull"), "fece00"); + } + this.NoticeMoveOver(); + } + + public void OnGetBoxAnimationOver() + { + this.RefreshMapIfFinish(); + } + + protected void RefreshMapIfFinish() + { + char c; + XSingleton.singleton.CurrentMap.GetNodeGroup(XSingleton.singleton.CurrentMap.PlayerCoord, out c); + bool flag = c == 'T'; + if (flag) + { + this.GameState = SuperRiskState.SuperRiskRefreshMap; + bool flag2 = this.GameViewHandler != null && this.GameViewHandler.IsVisible(); + if (flag2) + { + this.GameViewHandler.HideDice(); + this.GameViewHandler.ResetMapAni(); + } + XSingleton.singleton.AddGreenLog("this end--->T", null, null, null, null, null); + this.ReqMapDynamicInfo(this.CurrentMapID, true, false); + } + else + { + this.GameState = SuperRiskState.SuperRiskReadyToMove; + } + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool needUpdate = this.NeedUpdate; + if (needUpdate) + { + bool flag = this.RefreshDiceTime > 0f; + if (flag) + { + this.RefreshDiceTime -= fDeltaT; + bool flag2 = this.RefreshDiceTime < 0f; + if (flag2) + { + this.RefreshDiceTime = 0f; + } + } + for (int i = 0; i < 3; i++) + { + bool flag3 = this.SlotBoxInfo.ContainsKey(i); + if (flag3) + { + bool flag4 = this.SlotBoxInfo[i] != null && this.SlotBoxInfo[i].leftTime > 0f && this.SlotBoxInfo[i].state == RiskBoxState.RISK_BOX_UNLOCKED; + if (flag4) + { + this.SlotBoxInfo[i].leftTime -= fDeltaT; + bool flag5 = this.SlotBoxInfo[i].leftTime < 0f; + if (flag5) + { + this.SlotBoxInfo[i].leftTime = 0f; + } + } + } + } + } + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + XPlayerLevelChangedEventArgs xplayerLevelChangedEventArgs = arg as XPlayerLevelChangedEventArgs; + this.HisMaxLevel.PreLevel = xplayerLevelChangedEventArgs.PreLevel; + return true; + } + + protected void ProcessEventRiskEvent() + { + this.NoticeMoveOver(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSuperRiskDocument.cs.meta new file mode 100644 index 00000000..70822fcf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 64ea30f9befb50243bdf71504c643ba5 +timeCreated: 1611403848 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs b/Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs new file mode 100644 index 00000000..ac8d8408 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs @@ -0,0 +1,100 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSuperRiskMap + { + public XSuperRiskMapStaticInfo StaticInfo; + + public XSuperRiskMapDynamicInfo DynamicInfo; + + public Coordinate PlayerCoord; + + public Direction PlayerMoveDirection; + + public XSuperRiskMapRenderer renderer = new XSuperRiskMapRenderer(); + + public void Clear() + { + this.StaticInfo = null; + this.DynamicInfo = null; + this.PlayerCoord = Coordinate.Invalid; + this.PlayerMoveDirection = Direction.Up; + } + + public Direction StartMoveNext(ref Coordinate targetCoord) + { + this.PlayerMoveDirection = this.GetNextTryDirection(this.PlayerMoveDirection, 3); + for (int i = 0; i < 4; i++) + { + Coordinate coordinate = this.GoWithDirection(this.PlayerCoord, this.PlayerMoveDirection); + bool flag = this.StaticInfo.FindMapNode(coordinate) != null; + if (flag) + { + targetCoord = coordinate; + break; + } + this.PlayerMoveDirection = this.GetNextTryDirection(this.PlayerMoveDirection, 1); + } + return this.PlayerMoveDirection; + } + + protected Direction GetNextTryDirection(Direction dir, int offset) + { + return (Direction)((XFastEnumIntEqualityComparer.ToInt(dir) + offset) % 4); + } + + public void MoveNext() + { + this.PlayerCoord = this.GoWithDirection(this.PlayerCoord, this.PlayerMoveDirection); + bool flag = this.StaticInfo.FindMapNode(this.PlayerCoord) == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("SuperRisk: why do I go to a null place??", null, null, null, null, null); + } + } + + protected Coordinate GoWithDirection(Coordinate c, Direction dir) + { + Coordinate result; + switch (dir) + { + case Direction.Right: + result = new Coordinate(c.x + 1, c.y); + break; + case Direction.Down: + result = new Coordinate(c.x, c.y + 1); + break; + case Direction.Left: + result = new Coordinate(c.x - 1, c.y); + break; + case Direction.Up: + result = new Coordinate(c.x, c.y - 1); + break; + default: + result = new Coordinate(-1, -1); + break; + } + return result; + } + + public bool GetNodeGroup(Coordinate c, out char group) + { + XSuperRiskMapNode xsuperRiskMapNode = this.StaticInfo.FindMapNode(c); + bool flag = xsuperRiskMapNode != null; + bool result; + if (flag) + { + group = xsuperRiskMapNode.group; + result = true; + } + else + { + group = ' '; + result = false; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs.meta b/Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs.meta new file mode 100644 index 00000000..34764736 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMap.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c9594e3b4f16d5c47b432717abca234a +timeCreated: 1611404538 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapDynamicInfo.cs b/Client/Assets/Scripts/XMainClient/XSuperRiskMapDynamicInfo.cs new file mode 100644 index 00000000..c165300e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapDynamicInfo.cs @@ -0,0 +1,8 @@ +using System; + +namespace XMainClient +{ + internal class XSuperRiskMapDynamicInfo + { + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapDynamicInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSuperRiskMapDynamicInfo.cs.meta new file mode 100644 index 00000000..e790223a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapDynamicInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0005242e76166894abb6731207ecaa7d +timeCreated: 1611402948 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs b/Client/Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs new file mode 100644 index 00000000..cd5b2bce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs @@ -0,0 +1,99 @@ +using System; +using System.Collections.Generic; +using System.IO; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSuperRiskMapMgr : XSingleton + { + private Dictionary AllMapStaticInfo = new Dictionary(); + + public XSuperRiskMap CurrentMap = new XSuperRiskMap(); + + public void Clear() + { + this.CurrentMap.Clear(); + } + + public void SetCurrentMap(string MapID) + { + this.CurrentMap.Clear(); + bool flag = this.AllMapStaticInfo.ContainsKey(MapID); + if (flag) + { + this.CurrentMap.StaticInfo = this.AllMapStaticInfo[MapID]; + } + else + { + XSuperRiskMapStaticInfo xsuperRiskMapStaticInfo = this.ReadMapConfig(MapID); + bool flag2 = xsuperRiskMapStaticInfo != null; + if (flag2) + { + this.AllMapStaticInfo.Add(MapID, xsuperRiskMapStaticInfo); + this.CurrentMap.StaticInfo = this.AllMapStaticInfo[MapID]; + } + } + } + + public void SetPlayerPosDirection(int x, int y, int dir) + { + this.CurrentMap.PlayerCoord = new Coordinate(x, y); + this.CurrentMap.PlayerMoveDirection = (Direction)dir; + } + + protected XSuperRiskMapStaticInfo ReadMapConfig(string MapID) + { + XSuperRiskMapStaticInfo xsuperRiskMapStaticInfo = new XSuperRiskMapStaticInfo(); + Stream stream = XSingleton.singleton.ReadText("Table/SuperRisk/" + MapID, ".txt", true); + StreamReader streamReader = new StreamReader(stream); + int num = 0; + int width = 0; + string text; + while ((text = streamReader.ReadLine()) != null) + { + width = text.Length; + for (int i = 0; i < text.Length; i++) + { + bool flag = text[i] == '0' || text[i] == ' '; + if (!flag) + { + XSuperRiskMapNode xsuperRiskMapNode = new XSuperRiskMapNode + { + coord = new Coordinate(i, num) + }; + xsuperRiskMapNode.group = text[i]; + bool flag2 = i > 0; + if (flag2) + { + XSuperRiskMapNode xsuperRiskMapNode2 = xsuperRiskMapStaticInfo.FindMapNode(new Coordinate(i - 1, num)); + bool flag3 = xsuperRiskMapNode2 != null; + if (flag3) + { + xsuperRiskMapNode2.neighbour[0] = xsuperRiskMapNode; + xsuperRiskMapNode.neighbour[2] = xsuperRiskMapNode2; + } + } + bool flag4 = num > 0; + if (flag4) + { + XSuperRiskMapNode xsuperRiskMapNode3 = xsuperRiskMapStaticInfo.FindMapNode(new Coordinate(i, num - 1)); + bool flag5 = xsuperRiskMapNode3 != null; + if (flag5) + { + xsuperRiskMapNode3.neighbour[1] = xsuperRiskMapNode; + xsuperRiskMapNode.neighbour[3] = xsuperRiskMapNode3; + } + } + xsuperRiskMapStaticInfo.Nodes.Add(xsuperRiskMapNode); + } + } + num++; + } + xsuperRiskMapStaticInfo.Width = width; + xsuperRiskMapStaticInfo.Height = num; + XSingleton.singleton.ClearStream(stream); + return xsuperRiskMapStaticInfo; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs.meta new file mode 100644 index 00000000..3ec6aabf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 046146496a6dd7145b6961511342440a +timeCreated: 1611402961 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapNode.cs b/Client/Assets/Scripts/XMainClient/XSuperRiskMapNode.cs new file mode 100644 index 00000000..4dc836b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapNode.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal class XSuperRiskMapNode + { + public Coordinate coord; + + public char group; + + public XSuperRiskMapNode[] neighbour = new XSuperRiskMapNode[4]; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapNode.cs.meta b/Client/Assets/Scripts/XMainClient/XSuperRiskMapNode.cs.meta new file mode 100644 index 00000000..51fa5749 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapNode.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 00a992d94ee3b0343ab0a8ac6502b60a +timeCreated: 1611402951 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapRenderer.cs b/Client/Assets/Scripts/XMainClient/XSuperRiskMapRenderer.cs new file mode 100644 index 00000000..68c4dc4f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapRenderer.cs @@ -0,0 +1,26 @@ +using System; +using UnityEngine; + +namespace XMainClient +{ + internal class XSuperRiskMapRenderer + { + private Vector2 ZeroPos = Vector2.zero; + + private float StepSizeX = 0f; + + private float StepSizeY = 0f; + + public void SetInitInfo(Vector2 _ZeroPos, float stepx, float stepy) + { + this.ZeroPos = _ZeroPos; + this.StepSizeX = stepx; + this.StepSizeY = stepy; + } + + public Vector2 CoordToUI(Coordinate coord) + { + return this.ZeroPos + new Vector2((float)coord.x * this.StepSizeX, (float)(-(float)coord.y) * this.StepSizeY); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapRenderer.cs.meta b/Client/Assets/Scripts/XMainClient/XSuperRiskMapRenderer.cs.meta new file mode 100644 index 00000000..dbf5f813 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapRenderer.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2cb8368e7f1c4c846b76f857d367952c +timeCreated: 1611403503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs b/Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs new file mode 100644 index 00000000..d96a1ff0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XSuperRiskMapStaticInfo + { + public int Width { get; set; } + + public int Height { get; set; } + + public List Nodes = new List(); + + public XSuperRiskMapNode FindMapNode(Coordinate coord) + { + for (int i = 0; i < this.Nodes.Count; i++) + { + bool flag = this.Nodes[i].coord.Equals(coord); + if (flag) + { + return this.Nodes[i]; + } + } + return null; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs.meta new file mode 100644 index 00000000..c056b498 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSuperRiskMapStaticInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0d9194c6fefa7d47b1f3942bf944b29 +timeCreated: 1611404487 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs b/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs new file mode 100644 index 00000000..612162b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs @@ -0,0 +1,27 @@ +using System; + +namespace XMainClient +{ + internal class XSwapItemEventArgs : XEventArgs + { + public XItem itemNowOnBody; + + public XItem itemNowInBag; + + public int slot; + + public XSwapItemEventArgs() + { + this._eDefine = XEventDefine.XEvent_SwapItem; + } + + public override void Recycle() + { + base.Recycle(); + this.itemNowOnBody = null; + this.itemNowInBag = null; + this.slot = 0; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs.meta new file mode 100644 index 00000000..3f5a0011 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSwapItemEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 82d7cb47024faa048a760760a7bc2597 +timeCreated: 1611404041 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs b/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs new file mode 100644 index 00000000..88bd0400 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs @@ -0,0 +1,44 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSweepBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close = null; + + public IXUIProgress m_Exp = null; + + public IXUILabel m_ExpText = null; + + public XUIPool m_RewardPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUIScrollView m_ScrollView = null; + + public XUIPool m_DropPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_SweepTip; + + public Transform m_SealTip; + + public BoxCollider m_dragBox; + + private void Awake() + { + this.m_dragBox = base.transform.Find("Bg/DragBox").GetComponent(); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Exp = (base.transform.Find("Bg/ExpBar").GetComponent("XUIProgress") as IXUIProgress); + this.m_ExpText = (base.transform.Find("Bg/ExpBar/ExpLabel").GetComponent("XUILabel") as IXUILabel); + Transform transform = base.transform.Find("Bg/RewardDisplay/RewardTpl/Parent/ItemTpl"); + this.m_DropPool.SetupPool(transform.parent.parent.gameObject, transform.gameObject, 8u, false); + transform = base.transform.Find("Bg/RewardDisplay/RewardTpl"); + this.m_RewardPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_ScrollView = (base.transform.Find("Bg/RewardDisplay").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_SweepTip = (base.transform.Find("Bg/RewardDisplay/Tip").GetComponent("XUILabel") as IXUILabel); + this.m_SealTip = base.transform.Find("Bg/SealTip"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs.meta new file mode 100644 index 00000000..c7ba88fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSweepBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f14c3c40d922be84c93dcb645efa3fc5 +timeCreated: 1611404837 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSweepDocument.cs b/Client/Assets/Scripts/XMainClient/XSweepDocument.cs new file mode 100644 index 00000000..96f688c8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSweepDocument.cs @@ -0,0 +1,315 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSweepDocument : XDocComponent + { + public override uint ID + { + get + { + return XSweepDocument.uuID; + } + } + + public float CurExp { get; set; } + + public float GainExp { get; set; } + + public float ExpDelta { get; set; } + + public uint ProcessLevel { get; set; } + + public bool NotHaveFatigue { get; set; } + + public bool ShowTip { get; set; } + + public bool IsSeal { get; set; } + + public uint SelectLevel + { + get + { + return this._SelectLevel; + } + set + { + this._SelectLevel = value; + } + } + + public int Count + { + get + { + return this._Count; + } + set + { + this._Count = value; + } + } + + public int SlectDiffect + { + get + { + return XSingleton.singleton.GetSceneDifficult((int)this.SelectLevel); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SweepDocument"); + + private int _Count = 0; + + private uint _SelectLevel = 0u; + + private List Result = new List(); + + private uint sweepSceneID = 0u; + + private uint sweepExpID = 0u; + + private uint sweepCount = 0u; + + public void StartSweep(uint level, uint count) + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton.GetAlpha() == 1f; + if (!flag) + { + this.SelectLevel = level; + this.Count = (int)count; + this.TryToSweep(); + } + } + + public bool TryToSweep() + { + bool flag = this.SelectLevel > 0u; + if (flag) + { + bool flag2 = !XSingleton.singleton.CanEnterBattleScene(this.SelectLevel); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("ERR_SCENE_NOFATIGUE"), "fece00"); + this.Count = 0; + return false; + } + XPlayer player = XSingleton.singleton.Player; + this.CurExp = player.Attributes.Exp; + this.ProcessLevel = player.Attributes.Level; + this.ReqSweep(); + } + return true; + } + + private void ReqSweep() + { + RpcC2G_Sweep rpcC2G_Sweep = new RpcC2G_Sweep(); + rpcC2G_Sweep.oArg.sceneID = this.SelectLevel; + rpcC2G_Sweep.oArg.expid = 0u; + rpcC2G_Sweep.oArg.count = (uint)this.Count; + XSingleton.singleton.Send(rpcC2G_Sweep); + } + + public void TrySweepQuery(uint sceneID, uint count) + { + RpcC2G_Sweep rpcC2G_Sweep = new RpcC2G_Sweep(); + rpcC2G_Sweep.oArg.sceneID = sceneID; + rpcC2G_Sweep.oArg.expid = 0u; + rpcC2G_Sweep.oArg.count = (uint)this.Count; + XSingleton.singleton.Send(rpcC2G_Sweep); + } + + public void TrySweepQuery(uint sceneID, uint expID, uint count) + { + XBagDocument specificDocument = XDocuments.GetSpecificDocument(XBagDocument.uuID); + XExpeditionDocument specificDocument2 = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + uint sceneIDByExpID = specificDocument2.GetSceneIDByExpID((int)expID); + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(sceneIDByExpID); + this.sweepSceneID = sceneID; + this.sweepExpID = expID; + this.sweepCount = count; + bool flag = sceneData.SweepTicket != null; + if (flag) + { + List list = new List(); + int i = 0; + while (i < sceneData.SweepTicket.Length) + { + bool itemByItemId = specificDocument.GetItemByItemId((int)sceneData.SweepTicket[i], out list); + if (itemByItemId) + { + bool flag2 = i != 0; + if (flag2) + { + string @string = XSingleton.singleton.GetString("REVIVE_COST_NOT_ENOUGH"); + object[] itemName = XBagDocument.GetItemConf((int)sceneData.SweepTicket[i]).ItemName; + string label = string.Format(@string, itemName); + XSingleton.singleton.ShowModalDialog(label, XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.SendSweepQueryWithModal)); + return; + } + break; + } + else + { + i++; + } + } + } + this.SendSweepQuery(null); + } + + public bool SendSweepQueryWithModal(IXUIButton button = null) + { + XSingleton.singleton.CloseModalDlg(); + this.SendSweepQuery(null); + return true; + } + + public bool SendSweepQuery(IXUIButton button = null) + { + RpcC2G_Sweep rpcC2G_Sweep = new RpcC2G_Sweep(); + rpcC2G_Sweep.oArg.sceneID = this.sweepSceneID; + rpcC2G_Sweep.oArg.expid = this.sweepExpID; + rpcC2G_Sweep.oArg.count = this.sweepCount; + XSingleton.singleton.Send(rpcC2G_Sweep); + return true; + } + + public bool GetReward(SweepRes Rewards) + { + bool flag = Rewards.result > ErrorCode.ERR_SUCCESS; + bool result; + if (flag) + { + XSingleton.singleton.ShowSystemTip(Rewards.result, "fece00"); + this.Count = 0; + result = false; + } + else + { + XSweepDocument xsweepDocument = XSingleton.singleton.Doc.GetXComponent(XSweepDocument.uuID) as XSweepDocument; + bool flag2 = xsweepDocument.SlectDiffect == 1; + if (flag2) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + specificDocument.OnRefreshTeamLevelAbyss(Rewards.abyssleftcount); + } + this.IsSeal = Rewards.isexpseal; + this.ShowTip = (this.Count != Rewards.rewards.Count); + this.NotHaveFatigue = !XSingleton.singleton.CanEnterBattleScene(this.SelectLevel); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.SetAlpha(1f); + } + DlgBase.singleton.SetVisibleWithAnimation(true, null); + this.GainExp = 0f; + uint num = (uint)XFastEnumIntEqualityComparer.ToInt(ItemEnum.EXP); + this.Result.Clear(); + for (int i = 0; i < Rewards.rewards.Count; i++) + { + SweepResult sweepResult = new SweepResult(); + for (int j = 0; j < Rewards.rewards[i].items.Count; j++) + { + bool flag4 = false; + for (int k = 0; k < sweepResult.items.Count; k++) + { + bool flag5 = sweepResult.items[k].itemID == Rewards.rewards[i].items[j].itemID && sweepResult.items[k].isbind == Rewards.rewards[i].items[j].isbind; + if (flag5) + { + flag4 = true; + sweepResult.items[k].itemCount += Rewards.rewards[i].items[j].itemCount; + break; + } + } + bool flag6 = !flag4; + if (flag6) + { + sweepResult.items.Add(Rewards.rewards[i].items[j]); + } + } + this.Result.Add(sweepResult); + for (int l = 0; l < Rewards.rewards[i].items.Count; l++) + { + bool flag7 = Rewards.rewards[i].items[l].itemID == num; + if (flag7) + { + this.GainExp += Rewards.rewards[i].items[l].itemCount; + } + } + } + this.Count = this.Result.Count; + XSweepDocument.ReqSceneDayCount(); + this.ExpDelta = this.GainExp / 100f; + DlgBase.singleton.SetReward(); + XLevelSealDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + result = true; + } + return result; + } + + private static void ReqSceneDayCount() + { + RpcC2G_QuerySceneDayCount rpcC2G_QuerySceneDayCount = new RpcC2G_QuerySceneDayCount(); + rpcC2G_QuerySceneDayCount.oArg.type = 2u; + XSingleton.singleton.Send(rpcC2G_QuerySceneDayCount); + } + + public ItemBrief GetItem(int SweepNum, int ItemNum) + { + bool flag = SweepNum < 0 || ItemNum < 0; + ItemBrief result; + if (flag) + { + result = null; + } + else + { + bool flag2 = SweepNum >= this.Result.Count; + if (flag2) + { + result = null; + } + else + { + bool flag3 = ItemNum >= this.Result[SweepNum].items.Count; + if (flag3) + { + result = null; + } + else + { + bool flag4 = this.Result[SweepNum].items[ItemNum] != null; + if (flag4) + { + ItemBrief itemBrief = this.Result[SweepNum].items[ItemNum]; + result = itemBrief; + } + else + { + result = null; + } + } + } + } + return result; + } + + public int GetCount() + { + return this.Result.Count - this.Count; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSweepDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSweepDocument.cs.meta new file mode 100644 index 00000000..abd9bafb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSweepDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 058a740917c33b541ac85df14c8069ba +timeCreated: 1611402963 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSweepView.cs b/Client/Assets/Scripts/XMainClient/XSweepView.cs new file mode 100644 index 00000000..f422ef13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSweepView.cs @@ -0,0 +1,228 @@ +using System; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSweepView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/SweepDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + private uint _sweepTime; + + private uint _setPosition; + + private XSweepDocument _doc = null; + + private GameObject _preSweepReward = null; + + private readonly int m_showNum = 6; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSweepDocument.uuID); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnShow() + { + base.uiBehaviour.m_RewardPool.ReturnAll(false); + base.uiBehaviour.m_DropPool.ReturnAll(false); + this._preSweepReward = base.uiBehaviour.m_RewardPool._tpl; + base.uiBehaviour.m_SweepTip.SetVisible(false); + base.uiBehaviour.m_Exp.SetVisible(!this._doc.IsSeal); + base.uiBehaviour.m_SealTip.gameObject.SetActive(this._doc.IsSeal); + } + + protected bool OnCloseClicked(IXUIButton button) + { + bool flag = this._doc.Count > 0; + bool result; + if (flag) + { + result = false; + } + else + { + XSingleton.singleton.KillTimer(this._sweepTime); + XSingleton.singleton.KillTimer(this._setPosition); + this.SetVisibleWithAnimation(false, null); + result = true; + } + return result; + } + + public void SetReward() + { + this.ShowReward(null); + this.SetExpBar(); + } + + private void ShowReward(object o = null) + { + bool flag = !base.IsVisible(); + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_RewardPool.FetchGameObject(false); + IXUILabel ixuilabel = gameObject.transform.Find("RewardLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(XStringDefineProxy.GetString("SWEEP_COUNT", new object[] + { + this._doc.GetCount() + 1 + })); + base.uiBehaviour.m_dragBox.enabled = false; + int num = 0; + for (int i = 0; i < 10; i++) + { + ItemBrief item = this._doc.GetItem(this._doc.GetCount(), i); + bool flag2 = item == null; + if (flag2) + { + break; + } + GameObject gameObject2 = base.uiBehaviour.m_DropPool.FetchGameObject(false); + gameObject2.transform.parent = gameObject.transform.Find("Parent"); + gameObject2.transform.localPosition = new Vector3((float)(i % this.m_showNum * base.uiBehaviour.m_DropPool.TplWidth), (float)(-(float)(i / this.m_showNum) * base.uiBehaviour.m_DropPool.TplHeight), 0f); + XItemDrawerMgr.Param.bBinding = item.isbind; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject2, (int)item.itemID, (int)item.itemCount, true); + num++; + IXUISprite ixuisprite = gameObject2.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)item.itemID; + bool flag3 = !item.isbind; + if (flag3) + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + else + { + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnBindItemClick)); + } + } + IXUISprite ixuisprite2 = gameObject.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + ixuisprite2.spriteHeight += (num - 1) / this.m_showNum * base.uiBehaviour.m_DropPool.TplHeight; + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_RewardPool.TplPos.x, this._preSweepReward.transform.localPosition.y + (float)(ixuisprite2.spriteHeight + 5), 0f); + this._preSweepReward = gameObject; + this._doc.Count = this._doc.Count - 1; + bool flag4 = this._doc.Count > 0; + if (flag4) + { + XSingleton.singleton.KillTimer(this._sweepTime); + this._sweepTime = XSingleton.singleton.SetTimer(0.4f, new XTimerMgr.ElapsedEventHandler(this.ShowReward), null); + } + else + { + base.uiBehaviour.m_SweepTip.SetVisible(this._doc.ShowTip); + base.uiBehaviour.m_SweepTip.gameObject.transform.localPosition = new Vector3(0f, this._preSweepReward.transform.localPosition.y + 125f); + bool showTip = this._doc.ShowTip; + if (showTip) + { + XSweepDocument xsweepDocument = XSingleton.singleton.Doc.GetXComponent(XSweepDocument.uuID) as XSweepDocument; + int slectDiffect = xsweepDocument.SlectDiffect; + bool flag5 = slectDiffect == 1 && XSingleton.singleton.Doc.XBagDoc.GetItemCount(87) <= 0UL; + if (flag5) + { + base.uiBehaviour.m_SweepTip.SetText(XStringDefineProxy.GetString("NOT_TICKET_FATIGUE", new object[] + { + this._doc.GetCount() + })); + } + else + { + bool notHaveFatigue = this._doc.NotHaveFatigue; + if (notHaveFatigue) + { + base.uiBehaviour.m_SweepTip.SetText(XStringDefineProxy.GetString("NOT_HAVE_FATIGUE", new object[] + { + this._doc.GetCount() + })); + } + else + { + base.uiBehaviour.m_SweepTip.SetText(XStringDefineProxy.GetString("NOT_HAVE_COUNT", new object[] + { + this._doc.GetCount() + })); + } + } + } + base.uiBehaviour.m_dragBox.enabled = true; + } + XSingleton.singleton.KillTimer(this._setPosition); + this._setPosition = XSingleton.singleton.SetTimer(0.1f, new XTimerMgr.ElapsedEventHandler(this.SetPos), null); + } + } + + public void SetPos(object o = null) + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_ScrollView.ResetPosition(); + } + } + + public override void OnUpdate() + { + bool flag = this._doc.GainExp > 0f; + if (flag) + { + this.SetExpBar(); + } + } + + private void SetExpBar() + { + bool flag = XSingleton.singleton.Player == null; + if (!flag) + { + XPlayerAttributes xplayerAttributes = XSingleton.singleton.Player.Attributes as XPlayerAttributes; + this._doc.GainExp -= this._doc.ExpDelta; + this._doc.CurExp += this._doc.ExpDelta; + int num = (int)xplayerAttributes.GetLevelUpExp((int)(this._doc.ProcessLevel + 1u)); + num = ((num <= 0) ? 1 : num); + while (this._doc.CurExp >= (float)num) + { + this._doc.CurExp -= (float)num; + XSweepDocument doc = this._doc; + uint processLevel = doc.ProcessLevel + 1u; + doc.ProcessLevel = processLevel; + num = (int)xplayerAttributes.GetLevelUpExp((int)(this._doc.ProcessLevel + 1u)); + } + bool flag2 = num == 0; + if (flag2) + { + base.uiBehaviour.m_ExpText.SetText("+0.00%"); + base.uiBehaviour.m_Exp.value = 1f; + } + else + { + float num2 = this._doc.CurExp / (float)num; + base.uiBehaviour.m_ExpText.SetText(string.Format("+{0:F2}%", num2 * 100f)); + base.uiBehaviour.m_Exp.value = num2; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSweepView.cs.meta b/Client/Assets/Scripts/XMainClient/XSweepView.cs.meta new file mode 100644 index 00000000..6865b914 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSweepView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f56881d2ac2e4d44e87db481b21e201f +timeCreated: 1611404876 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSwitchSight.cs b/Client/Assets/Scripts/XMainClient/XSwitchSight.cs new file mode 100644 index 00000000..971b41b7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSwitchSight.cs @@ -0,0 +1,71 @@ +using System; +using UILib; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSwitchSight + { + private ButtonClickEventHandler buttonClick; + + public XSwitchSight(ButtonClickEventHandler eventHandler, IXUIButton Btn25D, IXUIButton Btn3D, IXUIButton Btn3DFree = null) + { + this.buttonClick = eventHandler; + bool flag = Btn3DFree != null; + if (flag) + { + Btn25D.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X25D)); + Btn25D.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSwitchSightClick)); + Btn3D.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X3D)); + Btn3D.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSwitchSightClick)); + Btn3DFree.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X3D_Free)); + Btn3DFree.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSwitchSightClick)); + } + else + { + Btn25D.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X3D)); + Btn25D.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSwitchSightClick)); + Btn3D.ID = (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XOperationMode.X25D)); + Btn3D.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSwitchSightClick)); + } + } + + public bool OnSwitchSightClick(IXUIButton sp) + { + bool isPlaying = XSingleton.singleton.IsPlaying; + bool result; + if (isPlaying) + { + result = false; + } + else + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(XSingleton.singleton.SceneID); + bool flag = sceneData != null && sceneData.ShieldSight != null; + if (flag) + { + for (int i = 0; i < sceneData.ShieldSight.Length; i++) + { + bool flag2 = (int)sp.ID == (int)sceneData.ShieldSight[i]; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("OPTION_SHIELD_SIGHT"), "fece00"); + return false; + } + } + } + XOptionsDocument specificDocument = XDocuments.GetSpecificDocument(XOptionsDocument.uuID); + bool flag3 = (int)sp.ID != specificDocument.GetValue(XOptionsDefine.OD_VIEW); + if (flag3) + { + specificDocument.SetValue(XOptionsDefine.OD_VIEW, (int)sp.ID, false); + specificDocument.SetBattleOptionValue(); + } + this.buttonClick(sp); + result = true; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSwitchSight.cs.meta b/Client/Assets/Scripts/XMainClient/XSwitchSight.cs.meta new file mode 100644 index 00000000..d1c2dd1e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSwitchSight.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f4dec9f72762a4541a9f4970e6bf11c9 +timeCreated: 1611404874 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSyncDebug.cs b/Client/Assets/Scripts/XMainClient/XSyncDebug.cs new file mode 100644 index 00000000..15b35ca8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSyncDebug.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSyncDebug + { + private static Dictionary _map = null; + + public static void OnLeaveScene() + { + bool flag = XSyncDebug._map != null; + if (flag) + { + XSyncDebug._map.Clear(); + } + } + + public static void DrawDebug(ulong id, Vector3 pos, Quaternion face) + { + XEntity entity = XSingleton.singleton.GetEntity(id); + bool flag = entity != null; + if (flag) + { + bool flag2 = XSyncDebug._map == null; + if (flag2) + { + XSyncDebug._map = new Dictionary(); + } + XFx xfx = null; + bool flag3 = XSyncDebug._map.TryGetValue(id, out xfx); + if (flag3) + { + XSingleton.singleton.DestroyFx(xfx, true); + } + bool flag4 = xfx == null; + if (flag4) + { + XSyncDebug._map.Add(id, null); + } + xfx = XSingleton.singleton.CreateFx("Effects/FX_Particle/Roles/Lzg_Ty/sync_debug_fx", null, false); + pos.y += entity.Height * 0.5f; + xfx.Play(pos, face, entity.Radius * 2f * Vector3.one, 1f); + XSyncDebug._map[id] = xfx; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSyncDebug.cs.meta b/Client/Assets/Scripts/XMainClient/XSyncDebug.cs.meta new file mode 100644 index 00000000..0b1ac65c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSyncDebug.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6efecb6043e8ff2438e24473c20d6520 +timeCreated: 1611403907 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSyncDoodadInfo.cs b/Client/Assets/Scripts/XMainClient/XSyncDoodadInfo.cs new file mode 100644 index 00000000..adf3f17d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSyncDoodadInfo.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal class XSyncDoodadInfo + { + public XLevelDoodad doo; + + public XEntity owner; + + public uint maxroll; + + public uint playerroll; + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSyncDoodadInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XSyncDoodadInfo.cs.meta new file mode 100644 index 00000000..7bd982db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSyncDoodadInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d2439ba5ff29856498ffe3575d72b24e +timeCreated: 1611404594 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSysDefine.cs b/Client/Assets/Scripts/XMainClient/XSysDefine.cs new file mode 100644 index 00000000..dfffa563 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSysDefine.cs @@ -0,0 +1,475 @@ +using System; + +namespace XMainClient +{ + public enum XSysDefine + { + XSys_Invalid = -1, + XSys_None, + XSys_Character = 10, + XSys_Level, + XSys_Item, + XSys_Skill, + XSys_Char, + XSys_Horse, + XSys_Fashion, + XSys_Guild, + XSys_Recycle, + XSys_Bag, + XSys_TShow, + XSys_Confession, + XSys_Auction, + XSys_TShowRule, + XSys_FlowerRank, + XSys_CardCollect, + XSys_Camp, + XSys_Mail, + XSys_Wifi, + XSys_Design, + XSys_SuperReward, + XSys_Draw, + XSys_Mall, + XSys_Strong, + XSys_Target, + XSys_Reward, + XSys_ServerActivity = 37, + XSys_OnlineReward = 39, + XSys_Setting, + XSys_Rank, + XSys_LevelReward, + XSys_ReceiveEnergy = 44, + XSys_EquipCreate, + XSys_SystemActivity, + XSys_LevelSeal, + XSys_BossRush, + XSys_SuperRisk, + XSys_DragonCrusade, + XSys_Arena, + XSys_Activity, + XSys_Qualifying = 54, + XSys_MulActivity, + XSys_Spectate, + XSys_DailyAcitivity, + XSys_PVPAcitivity, + XSys_ExcellentLive, + XSys_MobaAcitivity, + XSys_Money, + XSys_Coin, + XSys_Power, + XSys_DragonCoin, + XSys_GameMall, + XSys_Carnival = 67, + XSys_WeekShareReward, + XSys_DungeonShareReward, + XSys_OtherPlayerInfo, + XSys_Chat, + XSys_Friends, + XSys_Maquee, + XSys_SendFlower, + XSys_Mentorship, + XSys_PK, + XSys_3GFree, + XSys_ChatGroup, + XSys_Broadcast = 80, + XSys_GuildHall, + XSys_GuildRelax, + XSys_GuildDragon = 85, + XSys_GuildPvp, + XSys_GuildRedPacket, + XSys_GuildMine, + XSys_CrossGVG, + XSys_Team, + XSys_GayValley, + XSys_GayValleyManager, + XSys_SevenActivity, + XSys_Title, + XSys_Task, + XSys_Pandora, + XSys_Personal_Career, + XSys_MilitaryRank, + XSys_Recharge = 100, + XSys_VIP, + XSys_Random_Gift, + XSys_HallFame, + XSys_Level_Normal = 110, + XSys_Level_Elite, + XSys_Level_Swap, + XSys_Item_Equip = 120, + XSys_Item_Enhance, + XSys_Item_Jade, + XSys_Item_SlotAttr, + XSys_Item_Smelting, + XSys_Item_Reinforce, + XSys_Emblem_Smelting, + XSys_Item_Enchant, + XSys_Item_Forge, + XSys_Skill_Levelup = 130, + XSys_Skill_Promote, + XSys_Char_Attr = 140, + XSys_Char_Emblem, + XSys_Home = 150, + XSys_Home_Cooking, + XSys_Home_Fishing, + XSys_Home_Plant, + XSys_Home_Feast, + XSys_Home_MyHome, + XSys_Home_HomeFriends, + XSys_Horse_LearnSkill = 159, + XSys_Fashion_Fashion, + XSys_Fashion_Wearing = 162, + XSys_Fashion_OutLook = 161, + XSys_Item_Compose = 170, + XSys_Pet_Pairs, + XSys_Recycle_Equip = 180, + XSys_Recycle_Jade, + XSys_Bag_Item = 190, + XSys_TShow_Vote = 200, + XSys_TShow_Main, + XSys_CustomBattle = 220, + XSys_CustomBattle_BountyMode, + XSys_CustomBattle_CustomMode, + XSys_WeekEndNest = 230, + XSys_Camp_CampHall = 260, + XSys_Camp_MemberHall, + XSys_Camp_Mission = 269, + XSys_DragonNest_Sweep, + XSys_Mail_System, + XSys_Mail_Player, + XSys_Mail_Content, + XSys_Design_Designation = 290, + XSys_Design_Achieve, + XSys_Mall_Happy = 294, + XSys_Mall_New_One, + XSys_Mall_New_Two, + XSys_Mall_New_Three, + XSys_Mall_New_Four, + XSys_Mall_MystShop = 320, + XSys_Mall_Mall, + XSys_Mall_Fasion, + XSys_Mall_Honer, + XSys_Mall_Guild, + XSys_Mall_Tear, + XSys_Mall_Card1, + XSys_Mall_Card2, + XSys_Mall_Card3, + XSys_Mall_Card4, + XSys_Mall_32A, + XSys_Mall_40A, + XSys_Mall_50A, + XSys_Mall_60A, + XSys_Mall_Home, + XSys_LevelElite_Shop1, + XSys_LevelElite_Shop2, + XSys_LevelElite_Shop3, + XSys_LevelElite_Shop4, + XSys_Mall_Mentorship, + XSys_Mall_Partner, + XSys_Mall_Medal, + XSys_Mall_SkillMark, + XSys_Mall_Tattoo, + XSys_Mall_Mounts, + XSys_Mall_AllPkMatch, + XSys_Mall_ShopMax, + XSys_Mall_WeddingLover, + XSys_Mall_BackFlowShop, + XSys_Strong_Brief, + XSys_Reward_Achivement, + XSys_Reward_Activity, + XSys_Reward_Login = 353, + XSys_Reward_Dragon = 355, + XSys_Prerogative, + XSys_Reward_Target, + XSys_PrerogativeShop, + XSys_AbyssParty = 360, + XSys_Mall_Rift = 366, + XSys_Artifact = 370, + XSys_Artifact_Comepose, + XSys_Artifact_Atlas, + XSys_Artifact_DeityStove, + XSys_Artifact_Recast, + XSys_Artifact_Fuse, + XSys_Artifact_Inscription, + XSys_Artifact_Refined, + XSys_SmeltReturn = 380, + XSys_EquipFusion, + XSys_EquipUpgrade, + XSys_H5ObligateSysOne = 390, + XSys_H5ObligateSysTwo, + XSys_H5ObligateSysThree, + XSys_QQWallet, + XSys_Rank_Rift = 408, + XSys_Rank_WorldBoss, + XSys_Rank_PPT, + XSys_Rank_Level, + XSys_Rank_Guild, + XSys_Rank_Fashion, + XSys_Rank_TeamTower, + XSys_Rank_GuildBoss, + XSys_Rank_Pet, + XSys_Rank_Sprite, + XSys_Rank_Qualifying, + XSys_Rank_BigMelee, + XSys_Flower_Rank_Today, + XSys_Flower_Rank_Yesterday, + XSys_Flower_Rank_History, + XSys_Flower_Rank_Week, + XSys_Flower_Log, + XSys_Flower_Log_Send, + XSys_Flower_Log_Receive, + XSys_Flower_Rank_Activity, + XSys_Rank_DragonGuild = 430, + XSys_Rank_SkyArena, + XSys_Rank_CampDuel, + XSys_Yorozuya = 440, + XSys_EquipCreate_EquipSet = 450, + XSys_EquipCreate_EmblemSet, + XSys_EquipCreate_ArtifactSet, + XSys_SystemActivity_Other = 460, + XSys_LevelSeal_Tip = 470, + XSys_MentorshipMsg_Tip, + XSys_Nest_QuanMin = 510, + XSys_DragonNest_QuanMin, + XSys_Activity_Nest = 520, + XSys_Activity_SmallMonster, + XSys_Activity_BossRush, + XSys_Activity_Fashion, + XSys_Activity_WorldBoss, + XSys_Activity_ExpeditionFrame, + XSys_Activity_DragonNest, + XSys_Activity_TeamTower, + XSys_Activity_CaptainPVP, + XSys_Activity_GoddessTrial, + XSys_Activity_TeamTowerSingle, + XSys_BigMelee, + XSys_BigMeleeEnd, + XSys_Battlefield, + XSys_EndlessAbyss = 540, + XSys_Shanggu, + XSys_Activity_WeekDragonNest, + XSys_MulActivity_MulVoiceQA = 551, + XSys_MulActivity_SkyArena, + XSys_MulActivity_Race, + XSys_MulActivity_WeekendParty, + XSys_MulActivity_SkyArenaEnd, + XSys_Welfare = 560, + XSys_Welfare_GiftBag = 562, + XSys_Welfare_StarFund, + XSys_Welfare_FirstRechange, + XSyS_Welfare_RewardBack, + XSys_Welfare_MoneyTree, + XSys_Welfare_KingdomPrivilege, + XSys_Welfare_KingdomPrivilege_Court, + XSys_Welfare_KingdomPrivilege_Adventurer, + XSys_Welfare_KingdomPrivilege_Commerce, + XSys_Welfare_NiceGirl, + XSys_Welfare_YyMall, + Xsys_Backflow = 580, + Xsys_Backflow_LavishGift, + Xsys_Backflow_Dailylogin, + Xsys_Backflow_GiftBag, + Xsys_Backflow_NewServerReward, + Xsys_Server_Two, + Xsys_Backflow_LevelUp, + Xsys_Backflow_Task, + Xsys_Backflow_Target, + Xsys_Backflow_Privilege, + Xsys_TaJieHelp, + XSys_InGameAD = 599, + XSys_OperatingActivity, + XSys_FirstPass, + XSys_MWCX, + XSys_GHJC, + XSys_GuildRank, + XSys_Flower_Activity, + XSys_CrushingSeal, + XSys_WeekNest, + XSys_Holiday = 609, + XSys_Announcement, + XSys_Patface, + XSys_PandoraSDK, + XSys_OldFriendsBack, + XSys_CampDuel, + XSys_Dance1, + XSys_Dance2, + XSys_Dance3, + XSys_Dance4, + XSys_Dance5, + XSys_Dance6, + XSys_Dance7, + XSys_Dance8, + XSys_Dance9, + XSys_Dance10, + XSys_Dance11, + XSys_Dance12, + XSys_Dance13, + XSys_Dance14, + XSys_Dance15, + XSys_Dance16, + XSys_Dance17, + XSys_Dance18, + XSys_LuckyTurntable, + XSys_GameMall_Diamond = 650, + XSys_GameMall_Dragon, + XSys_GameMall_Pay, + XSys_GameMall_DWeek, + XSys_GameMall_DCost, + XSys_GameMall_DLongyu, + XSys_GameMall_DFashion, + XSys_GameMall_DRide, + XSys_GameMall_DGift, + XSys_GameMall_DVip, + XSys_GameMall_GWeek, + XSys_GameMall_GCost, + XSys_GameMall_GLongyu, + XSys_GameMall_GRide, + XSys_GameMall_GGift, + XSys_GameMall_GEquip, + Xsys_GameMall_DEquip, + XSys_Carnival_Tabs = 670, + XSys_Carnival_Rwd, + XSys_Carnival_Content, + XSys_Partner = 700, + XSys_Parner_Liveness, + XSys_Wedding, + XSys_NPCFavor, + XSys_GC_XinYueVIP = 710, + XSys_GC_CustomService, + XSys_GC_GameWebsite, + XSys_GC_Forum, + XSys_GC_Privilege, + XSys_GC_OfficialAccounts, + XSys_GC_DeepLink, + XSys_GC_MiniCommunity = 718, + XSys_GC_IOSLive = 721, + XSys_GC_TVStation, + XSys_GC_XiaoYueGuanJia, + XSys_GC_Libaozhongxin, + XSys_GC_Reserve17, + XSys_GC_Reserve18, + XSys_GC_Reserve19, + XSys_GC_Reserve20, + XSys_GC_Reserve21, + XSys_Pandora730, + XSys_Pandora731, + XSys_Pandora732, + XSys_Pandora733, + XSys_Pandora734, + XSys_Pandora735, + XSys_Pandora736, + XSys_Pandora737, + XSys_Pandora738, + XSys_Pandora739, + XSys_Pandora740, + XSys_Pandora741, + XSys_Pandora742, + XSys_Pandora743, + XSys_Pandora744, + XSys_Pandora745, + XSys_Pandora746, + XSys_Pandora747, + XSys_Pandora748, + XSys_Pandora749, + XSys_PandoraTest, + XSys_GroupRecruit = 760, + XSys_GroupRecruitAuthorize, + XSys_ThemeActivity = 770, + XSys_ThemeActivity_HellDog, + XSys_ThemeActivity_MadDuck, + XSys_GuildHall_SignIn = 810, + XSys_GuildHall_Approve, + XSys_GuildHall_Skill, + XSys_GuildHall_Member, + XSys_GuildRelax_Joker = 820, + XSys_GuildRelax_VoiceQA, + XSys_GuildRelax_JokerMatch, + XSys_GuildLab_Consider, + XSys_GuildLab_Build, + XSys_GuildGrowthHunting, + XSys_GuildGrowthDonate, + XSys_GuildGrowthBuff, + XSys_GuildGrowthLab, + XSys_GuildBoon_RedPacket = 830, + XSys_GuildBoon_FixedRedPacket = 834, + XSys_GuildBoon_Shop = 831, + XSys_GuildBoon_DailyActivity, + XSys_GuildBoon_Salay, + XSys_GuildDungeon_SmallMonter = 840, + XSys_GuildChallenge = 850, + XSys_GuildChallenge_MemberRank, + XSys_GuildChallenge_GuildRank, + XSys_WorldBoss_EndRank = 855, + XSys_GuildQualifier = 860, + XSys_GuildMineMain = 880, + XSys_GuildDailyTask = 886, + XSys_GuildDialyDonate, + XSys_GuildWeeklyDonate, + XSys_GuildInherit = 890, + XSys_JockerKing = 900, + XSys_Team_TeamList, + XSys_Team_MyTeam, + XSys_Team_Invited, + XSys_GuildWeeklyBountyTask, + XSys_GuildDailyRefresh, + XSys_GuildDailyRequest, + XSys_GayValley_Fashion = 910, + XSys_GayValley_Fishing, + XSys_GayValleyManager_Return = 920, + XSys_Qualifying2, + XSys_IDIP_ZeroReward = 925, + XSys_Photo, + xSys_Mysterious, + XSys_SpriteSystem = 930, + XSys_SpriteSystem_Main, + XSys_SpriteSystem_Lottery, + XSys_SpriteSystem_Fight, + XSys_SpriteSystem_Resolve, + XSys_SpriteSystem_Detail, + XSys_SpriteSystem_Shop, + XSys_Title_Share = 941, + XSys_Link_Share, + XSys_QuickRide, + XSys_AppStore_Praise, + XSys_Transform, + XSys_WebView = 949, + XSys_GameCommunity, + XSys_GameHorde, + XSys_FriendCircle, + XSys_QQVIP, + XSys_SystemAnnounce, + XSys_HeroBattle = 956, + XSys_GuildBossMainInterface, + XSys_GuildMineMainInterface, + XSys_GuildPvpMainInterface, + XSys_TeamLeague, + XSys_ProfessionChange, + XSys_Questionnaire, + XSys_GuildMineEnd, + XSys_GuildTerritory = 970, + XSys_GuildTerritoryAllianceInterface = 972, + XSys_GuildTerritoryIconInterface = 971, + XSys_GuildTerritoryMessageInterface = 973, + XSys_Moba = 979, + XSys_Friends_Gift_Share, + XSys_Guild_Bind_Group, + XSys_Platform_StartPrivilege, + XSys_Photo_Share, + XSys_Friends_Pk, + SYS_IBSHOP_GIFT, + XSys_Cross_Server_Invite, + XSys_Rename_Player = 988, + XSys_Rename_Guild, + XSys_Rename_DragonGuild = 1001, + XSys_Exchange = 990, + XSys_GuildCollectMainInterface, + XSys_GuildCollect, + XSys_BackFlowMall, + XSys_BackFlowWelfare, + XSys_GuildCollectSummon = 996, + XSys_DragonGuild = 996, + XSys_DragonGuildShop, + XSys_DragonGuildLiveness, + XSys_DragonGuildTask, + XSys_DragonGuild_Bind_Group, + XSys_Num = 1024 + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSysDefine.cs.meta b/Client/Assets/Scripts/XMainClient/XSysDefine.cs.meta new file mode 100644 index 00000000..0f1d9bcc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSysDefine.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d9e292fb29d3099468af05fb05752dae +timeCreated: 1611404646 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs b/Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs new file mode 100644 index 00000000..36b2281b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs @@ -0,0 +1,13 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSysDefineMgr + { + public static int GetTypeInt(XSysDefine eType) + { + return XFastEnumIntEqualityComparer.ToInt(eType); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs.meta new file mode 100644 index 00000000..38d4dd2b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSysDefineMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2b1b331f481b3f74d9c6eb9fd590a064 +timeCreated: 1611403498 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSystemRewardData.cs b/Client/Assets/Scripts/XMainClient/XSystemRewardData.cs new file mode 100644 index 00000000..8e8cf7e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemRewardData.cs @@ -0,0 +1,68 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + internal class XSystemRewardData : IComparable + { + public XSystemRewardState state + { + get + { + return this._state; + } + } + + public ulong uid; + + public List itemList = new List(); + + public uint type; + + public string[] param; + + public string serverName = ""; + + public string serverContent = ""; + + public uint sortType; + + private XSystemRewardState _state; + + public void SetState(uint s) + { + switch (s) + { + case 0u: + this._state = XSystemRewardState.SRS_CANNOT_FETCH; + break; + case 1u: + this._state = XSystemRewardState.SRS_CAN_FETCH; + break; + case 2u: + this._state = XSystemRewardState.SRS_FETCHED; + break; + default: + this._state = XSystemRewardState.SRS_CANNOT_FETCH; + break; + } + } + + public int CompareTo(XSystemRewardData other) + { + int num = this.state.CompareTo(other.state); + bool flag = num != 0; + int result; + if (flag) + { + result = num; + } + else + { + result = this.sortType.CompareTo(other.sortType); + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSystemRewardData.cs.meta b/Client/Assets/Scripts/XMainClient/XSystemRewardData.cs.meta new file mode 100644 index 00000000..7f3912e7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemRewardData.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: dbea3c5115a4f94489f585769f1f9da6 +timeCreated: 1611404676 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSystemRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XSystemRewardDocument.cs new file mode 100644 index 00000000..643a3c58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemRewardDocument.cs @@ -0,0 +1,328 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSystemRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XSystemRewardDocument.uuID; + } + } + + public List DataList + { + get + { + return this._DataList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SystemRewardDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static SystemRewardTable _reader = new SystemRewardTable(); + + private List _DataList = new List(); + + private Dictionary _DataDic = new Dictionary(); + + public static void Execute(OnLoadedCallback callback = null) + { + XSystemRewardDocument.AsyncLoader.AddTask("Table/SystemReward", XSystemRewardDocument._reader, false); + XSystemRewardDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._DataList.Clear(); + this._DataDic.Clear(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + public SystemRewardTable.RowData GetTableDataByType(uint type) + { + return XSystemRewardDocument._reader.GetByType(type); + } + + public void Add(RewardInfo info) + { + SystemRewardTable.RowData tableDataByType = this.GetTableDataByType(info.Type); + XSystemRewardData xsystemRewardData = null; + bool flag = !this._DataDic.TryGetValue(info.UniqueId, out xsystemRewardData); + if (flag) + { + xsystemRewardData = new XSystemRewardData(); + this._DataList.Add(xsystemRewardData); + this._DataDic.Add(info.UniqueId, xsystemRewardData); + } + xsystemRewardData.uid = info.UniqueId; + xsystemRewardData.type = info.Type; + xsystemRewardData.SetState(info.State); + xsystemRewardData.itemList = info.Item; + xsystemRewardData.param = info.Param.ToArray(); + xsystemRewardData.sortType = ((tableDataByType == null) ? 0u : tableDataByType.Sort); + xsystemRewardData.serverName = info.name; + xsystemRewardData.serverContent = info.comment; + } + + public void Remove(ulong uid) + { + XSystemRewardData item = null; + bool flag = this._DataDic.TryGetValue(uid, out item); + if (flag) + { + this._DataDic.Remove(uid); + this._DataList.Remove(item); + } + } + + public void OnRewardChanged(RewardChanged data) + { + foreach (ulong uid in data.RemovedRewardUniqueId) + { + this.Remove(uid); + } + foreach (RewardInfo info in data.AddedRewardInfo) + { + this.Add(info); + } + this._DataList.Sort(); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_ReceiveEnergy, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshData(); + DlgBase.singleton.RefreshRedpoint(); + } + } + + public bool HasCanFetchReward() + { + for (int i = 0; i < this._DataList.Count; i++) + { + bool flag = this._DataList[i].state > XSystemRewardState.SRS_CAN_FETCH; + if (flag) + { + break; + } + bool flag2 = this.IsExclusiveItem(this._DataList[i]); + if (!flag2) + { + return true; + } + } + return false; + } + + public bool HasReceiveEnergyCanFetchReward() + { + for (int i = 0; i < this._DataList.Count; i++) + { + bool flag = this._DataList[i].state > XSystemRewardState.SRS_CAN_FETCH; + if (flag) + { + break; + } + bool flag2 = this.IsExclusiveItem(this._DataList[i]); + if (flag2) + { + return true; + } + } + return false; + } + + public bool IsExclusiveItem(XSystemRewardData _data) + { + bool flag = _data != null; + if (flag) + { + bool flag2 = _data.type == SystemRewardTypeMrg.GetTypeUInt(SystemRewardType.RewardDinner); + if (flag2) + { + return true; + } + bool flag3 = _data.type == SystemRewardTypeMrg.GetTypeUInt(SystemRewardType.RewardSupper); + if (flag3) + { + return true; + } + } + return false; + } + + public void ReqFetchReward(ulong id) + { + RpcC2G_GetSystemReward rpcC2G_GetSystemReward = new RpcC2G_GetSystemReward(); + rpcC2G_GetSystemReward.oArg.RewardUniqueId = id; + XSingleton.singleton.Send(rpcC2G_GetSystemReward); + } + + public void OnFetchReward(GetSystemRewardRes oRes) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + } + + public static string GetRewardDescription(SystemRewardTable.RowData tableData, XSystemRewardData data) + { + SystemRewardType type = (SystemRewardType)data.type; + SystemRewardType systemRewardType = type; + switch (systemRewardType) + { + case SystemRewardType.RewardDinner: + case SystemRewardType.RewardSupper: + return XSystemRewardDocument.GetMealDescription(tableData.Remark, type); + case SystemRewardType.RewardArena: + case SystemRewardType.RewardWorldBoss: + case SystemRewardType.RewardGuildBoss: + case SystemRewardType.RewardGuildBossRole: + { + bool flag = data.param.Length < 1; + if (flag) + { + return ""; + } + goto IL_16A; + } + case SystemRewardType.RewardChargeFirst: + break; + default: + switch (systemRewardType) + { + case SystemRewardType.RewardVip: + { + bool flag2 = data.param.Length < 1; + if (flag2) + { + XSingleton.singleton.AddErrorLog("VIP reward param not enough: ", data.param.Length.ToString(), null, null, null, null); + return ""; + } + goto IL_16A; + } + case SystemRewardType.RewardMonthCard: + break; + case SystemRewardType.RewardMakeUp: + { + bool flag3 = data.param.Length < 1; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Makeup reward param not enough: ", data.param.Length.ToString(), null, null, null, null); + return ""; + } + int elapsedSeconds = int.Parse(data.param[0]); + return string.Format(tableData.Remark, XSingleton.singleton.TimeFormatSince1970(elapsedSeconds, XStringDefineProxy.GetString("TIME_FORMAT_MONTHDAY"), false)); + } + default: + { + bool flag4 = data.param.Length < 1 && tableData.SubType == 1u; + if (flag4) + { + return ""; + } + goto IL_16A; + } + } + break; + } + return tableData.Remark; + IL_16A: + string remark = tableData.Remark; + object[] param = data.param; + return string.Format(remark, param); + } + + private static string GetMealDescription(string format, SystemRewardType type) + { + bool flag = type != SystemRewardType.RewardDinner && type != SystemRewardType.RewardSupper; + string result; + if (flag) + { + result = ""; + } + else + { + bool flag2 = type == SystemRewardType.RewardSupper; + string key; + string key2; + if (flag2) + { + key = "SupperTime"; + key2 = "SupperReward"; + } + else + { + key = "DinnerTime"; + key2 = "DinnerReward"; + } + string[] array = XSingleton.singleton.GetValue(key).Split(XGlobalConfig.ListSeparator); + bool flag3 = array.Length != 4; + if (flag3) + { + XSingleton.singleton.AddErrorLog("Meal time count should be 4: ", array.Length.ToString(), null, null, null, null); + result = ""; + } + else + { + int elapsedSeconds = (int.Parse(array[0]) * 60 + int.Parse(array[1])) * 60; + int elapsedSeconds2 = (int.Parse(array[2]) * 60 + int.Parse(array[3])) * 60; + array = XSingleton.singleton.GetValue(key2).Split(XGlobalConfig.ListSeparator); + bool flag4 = array.Length % 2 != 0; + if (flag4) + { + XSingleton.singleton.AddErrorLog("Meal reward count should be even: ", array.Length.ToString(), null, null, null, null); + result = ""; + } + else + { + StringBuilder stringBuilder = new StringBuilder(); + for (int i = 0; i < array.Length; i += 2) + { + ItemList.RowData itemConf = XBagDocument.GetItemConf(int.Parse(array[i])); + bool flag5 = itemConf == null; + if (flag5) + { + XSingleton.singleton.AddErrorLog("Reward ID error: ", array[i], null, null, null, null); + } + else + { + bool flag6 = i != 0; + if (flag6) + { + stringBuilder.Append(XStringDefineProxy.GetString("COMMA")); + } + stringBuilder.Append(array[i + 1]); + stringBuilder.Append(XStringDefineProxy.GetString("POINT")); + stringBuilder.Append(XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)); + } + } + result = string.Format(format, XSingleton.singleton.TimeFormatSince1970(elapsedSeconds, "HH:mm", false), XSingleton.singleton.TimeFormatSince1970(elapsedSeconds2, "HH:mm", false), stringBuilder.ToString()); + } + } + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSystemRewardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSystemRewardDocument.cs.meta new file mode 100644 index 00000000..b8574af1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemRewardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 253c1888b82e72548af46679f9fffaaf +timeCreated: 1611403464 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSystemRewardState.cs b/Client/Assets/Scripts/XMainClient/XSystemRewardState.cs new file mode 100644 index 00000000..172ea67d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemRewardState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum XSystemRewardState + { + SRS_CAN_FETCH, + SRS_CANNOT_FETCH, + SRS_FETCHED + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSystemRewardState.cs.meta b/Client/Assets/Scripts/XMainClient/XSystemRewardState.cs.meta new file mode 100644 index 00000000..86788110 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemRewardState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0970ccf2c49341f418f4c6a3a04e06bc +timeCreated: 1611403156 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSystemTipBehaviour.cs b/Client/Assets/Scripts/XMainClient/XSystemTipBehaviour.cs new file mode 100644 index 00000000..b2ffef65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemTipBehaviour.cs @@ -0,0 +1,18 @@ +using System; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSystemTipBehaviour : DlgBehaviourBase + { + public XUIPool m_TipPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + Transform transform = base.transform.Find("Bg/TipTpl"); + this.m_TipPool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSystemTipBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XSystemTipBehaviour.cs.meta new file mode 100644 index 00000000..d50a86b1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemTipBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9575cda69e067094a871b1c2e2dacdce +timeCreated: 1611404182 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSystemTipDocument.cs b/Client/Assets/Scripts/XMainClient/XSystemTipDocument.cs new file mode 100644 index 00000000..0042edce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemTipDocument.cs @@ -0,0 +1,71 @@ +using System; +using System.Collections.Generic; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XSystemTipDocument : XDocComponent + { + public override uint ID + { + get + { + return XSystemTipDocument.uuID; + } + } + + public int LeftCount + { + get + { + return this.m_StrQueue.Count; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("SystemTipDocument"); + + private Queue m_StrQueue = new Queue(); + + public void ShowTip(string text, string rgb) + { + this.m_StrQueue.Enqueue(string.Format("[{0}]{1}", rgb, text)); + bool flag = !DlgBase.singleton.IsVisible(); + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetAlpha(1f); + } + DlgBase.singleton.SetVisible(true, true); + } + } + + public bool TryGetTip(ref string s) + { + bool flag = this.m_StrQueue.Count == 0; + bool result; + if (flag) + { + result = false; + } + else + { + s = this.m_StrQueue.Dequeue(); + result = true; + } + return result; + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this.m_StrQueue.Clear(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSystemTipDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XSystemTipDocument.cs.meta new file mode 100644 index 00000000..cbedf99d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemTipDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9b1366dc11046404198c8de2df9ce3b2 +timeCreated: 1611404204 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XSystemTipView.cs b/Client/Assets/Scripts/XMainClient/XSystemTipView.cs new file mode 100644 index 00000000..ae7bbdf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemTipView.cs @@ -0,0 +1,136 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; + +namespace XMainClient +{ + internal class XSystemTipView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/SystemTip"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override bool needOnTop + { + get + { + return true; + } + } + + private XSystemTipDocument _doc; + + private int _showCount; + + private GameObject _preTip = null; + + private int _count; + + private readonly float DEFAULT_INTERVAL = 0.4f; + + private float m_Time; + + private float m_Interval; + + protected override void Init() + { + base.Init(); + this._doc = XDocuments.GetSpecificDocument(XSystemTipDocument.uuID); + } + + protected override void OnShow() + { + base.uiBehaviour.m_TipPool.ReturnAll(false); + this._showCount = 0; + this._count = 0; + this.m_Time = 0f; + this._preTip = null; + this.m_Interval = this.DEFAULT_INTERVAL; + } + + public void ShowTip(string text) + { + GameObject gameObject = base.uiBehaviour.m_TipPool.FetchGameObject(false); + gameObject.transform.localPosition = base.uiBehaviour.m_TipPool.TplPos; + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.spriteDepth = this._count; + IXUILabel ixuilabel = gameObject.transform.Find("Text").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(text); + ixuilabel.spriteDepth = this._count + 1; + bool flag = this._preTip != null; + if (flag) + { + bool activeSelf = this._preTip.activeSelf; + if (activeSelf) + { + this._preTip.transform.parent = gameObject.transform; + } + } + this._preTip = gameObject; + IXUITweenTool ixuitweenTool = gameObject.transform.GetComponent("XUIPlayTween") as IXUITweenTool; + ixuitweenTool.SetTargetGameObject(gameObject); + ixuitweenTool.RegisterOnFinishEventHandler(new OnTweenFinishEventHandler(this.OnPlayTweenFinish)); + ixuitweenTool.PlayTween(true, -1f); + this._showCount++; + this._count += 2; + } + + private void OnPlayTweenFinish(IXUITweenTool iPlayTween) + { + bool flag = !base.IsVisible(); + if (!flag) + { + base.uiBehaviour.m_TipPool.ReturnInstance(iPlayTween.gameObject, true); + this._showCount--; + bool flag2 = this._showCount == 0; + if (flag2) + { + this.SetVisible(false, true); + } + } + } + + public override void OnUpdate() + { + base.OnUpdate(); + bool flag = Time.time - this.m_Time > this.m_Interval; + if (flag) + { + string empty = string.Empty; + bool flag2 = this._doc.TryGetTip(ref empty); + if (flag2) + { + this.ShowTip(empty); + int leftCount = this._doc.LeftCount; + bool flag3 = leftCount > 3; + if (flag3) + { + this.m_Interval = this.DEFAULT_INTERVAL - 0.1f * (float)(leftCount - 3); + } + this.m_Time = Time.time; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XSystemTipView.cs.meta b/Client/Assets/Scripts/XMainClient/XSystemTipView.cs.meta new file mode 100644 index 00000000..4c1e29cb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XSystemTipView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: acd3caa9a2f6d114592b188374c4fdfd +timeCreated: 1611404332 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs b/Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs new file mode 100644 index 00000000..400b8ee6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs @@ -0,0 +1,58 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTakeCostMgr : XSingleton + { + private Dictionary m_CostCache = new Dictionary(); + + private static ICostHandler MakeCostHandler() + { + return new DragonCoinCostHandler(); + } + + public CostInfo QueryCost(string CostName, int Times) + { + CostInfo costInfo; + costInfo.type = (ItemEnum)0; + costInfo.count = 0u; + ICostHandler handler = this.GetHandler(CostName); + bool flag = handler == null; + CostInfo result; + if (flag) + { + XSingleton.singleton.AddErrorLog(string.Format("Can't find CostName: {0} in globalconfig.txt", CostName), null, null, null, null, null); + result = costInfo; + } + else + { + result = handler.GetCost(Times); + } + return result; + } + + public ICostHandler GetHandler(string CostName) + { + ICostHandler costHandler = null; + bool flag = !this.m_CostCache.TryGetValue(CostName, out costHandler); + if (flag) + { + string value = XSingleton.singleton.GetValue(CostName); + bool flag2 = value != ""; + if (flag2) + { + costHandler = XTakeCostMgr.MakeCostHandler(); + bool flag3 = !costHandler.ParseCostConfigString(value); + if (flag3) + { + costHandler = null; + } + this.m_CostCache.Add(CostName, costHandler); + } + } + return costHandler; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs.meta new file mode 100644 index 00000000..a66d87b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTakeCostMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b29278cb9842abd41b3988b12b0a5b8d +timeCreated: 1611404386 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTargetRewardDocument.cs b/Client/Assets/Scripts/XMainClient/XTargetRewardDocument.cs new file mode 100644 index 00000000..906b1c9c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTargetRewardDocument.cs @@ -0,0 +1,310 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTargetRewardDocument : XDocComponent + { + public override uint ID + { + get + { + return XTargetRewardDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("TargetRewardDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static GoalAwards _reader = new GoalAwards(); + + public List targetAwardDetails = new List(); + + private static Dictionary> m_GoalAwardsDic = new Dictionary>(); + + private static Dictionary m_sortDic = new Dictionary(); + + public List m_redList = new List(); + + public XTargetRewardView rwdView; + + public bool[] m_isGoalOpen = new bool[5]; + + public static uint[] m_goalLevel = new uint[] + { + 500u, + 500u, + 500u, + 500u, + 500u + }; + + public int m_designationId = 40; + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + XTargetRewardDocument.AsyncLoader.AddTask("Table/GoalAwards", XTargetRewardDocument._reader, false); + XTargetRewardDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + XTargetRewardDocument.m_GoalAwardsDic.Clear(); + int num = XTargetRewardDocument._reader.Table.Length; + for (int i = 0; i < XTargetRewardDocument._reader.Table.Length; i++) + { + uint goalAwardsID = XTargetRewardDocument._reader.Table[i].GoalAwardsID; + bool flag = !XTargetRewardDocument.m_GoalAwardsDic.ContainsKey(goalAwardsID); + if (flag) + { + XTargetRewardDocument.m_GoalAwardsDic[goalAwardsID] = new List(); + XTargetRewardDocument.m_GoalAwardsDic[goalAwardsID].Clear(); + XTargetRewardDocument.m_sortDic[goalAwardsID] = num - i; + } + XTargetRewardDocument.m_GoalAwardsDic[goalAwardsID].Add(XTargetRewardDocument._reader.Table[i]); + uint type = XTargetRewardDocument._reader.Table[i].Type; + XTargetRewardDocument.m_goalLevel[(int)type] = Math.Min(XTargetRewardDocument.m_goalLevel[(int)type], XTargetRewardDocument._reader.Table[i].ShowLevel); + } + foreach (KeyValuePair> keyValuePair in XTargetRewardDocument.m_GoalAwardsDic) + { + keyValuePair.Value.Sort((GoalAwards.RowData x, GoalAwards.RowData y) => x.AwardsIndex.CompareTo(y.AwardsIndex)); + } + } + + public void FetchTargetRewardType(TargetRewardType type) + { + RpcC2M_GoalAwardsGetList rpcC2M_GoalAwardsGetList = new RpcC2M_GoalAwardsGetList(); + rpcC2M_GoalAwardsGetList.oArg.type = (uint)type; + XSingleton.singleton.Send(rpcC2M_GoalAwardsGetList); + } + + public uint GetMinRewardLevel(List subItems) + { + uint num = 500u; + for (int i = 0; i < subItems.Count; i++) + { + num = Math.Min(num, subItems[i].ShowLevel); + } + return num; + } + + public void OnResTargetRewardType(GoalAwardsGetList_C2M oArg, GoalAwardsGetList_M2C oRes) + { + this.targetAwardDetails.Clear(); + bool flag = this.rwdView != null && this.rwdView.IsVisible(); + if (flag) + { + foreach (GoalAwardsInfo goalAwardsInfo in oRes.goalAwardsList) + { + TargetItemInfo targetItemInfo = new TargetItemInfo(); + targetItemInfo.subItems = this.FindTarget(goalAwardsInfo.goalAwardsID); + bool flag2 = targetItemInfo.subItems != null; + if (flag2) + { + targetItemInfo.minLevel = this.GetMinRewardLevel(targetItemInfo.subItems); + targetItemInfo.goalAwardsID = goalAwardsInfo.goalAwardsID; + targetItemInfo.doneIndex = Math.Min(goalAwardsInfo.doneIndex, (uint)targetItemInfo.subItems.Count); + targetItemInfo.gottenAwardsIndex = Math.Min(goalAwardsInfo.gottenAwardsIndex, (uint)targetItemInfo.subItems.Count); + targetItemInfo.totalvalue = goalAwardsInfo.totalvalue; + this.targetAwardDetails.Add(targetItemInfo); + } + } + foreach (KeyValuePair> keyValuePair in XTargetRewardDocument.m_GoalAwardsDic) + { + bool flag3 = keyValuePair.Value.Count > 0 && !this.FindTargetInDetailList(keyValuePair.Value[0].GoalAwardsID); + if (flag3) + { + bool flag4 = (ulong)keyValuePair.Value[0].Type == (ulong)((long)this.rwdView.m_targetRewardType); + if (flag4) + { + TargetItemInfo targetItemInfo2 = new TargetItemInfo(); + targetItemInfo2.subItems = keyValuePair.Value; + targetItemInfo2.goalAwardsID = keyValuePair.Value[0].GoalAwardsID; + targetItemInfo2.doneIndex = 0u; + targetItemInfo2.gottenAwardsIndex = 0u; + targetItemInfo2.totalvalue = 0.0; + targetItemInfo2.minLevel = this.GetMinRewardLevel(targetItemInfo2.subItems); + this.targetAwardDetails.Add(targetItemInfo2); + } + } + } + for (int i = this.targetAwardDetails.Count - 1; i >= 0; i--) + { + bool flag5 = XSingleton.singleton.XPlayerData.Level < this.targetAwardDetails[i].minLevel; + if (flag5) + { + this.targetAwardDetails.RemoveAt(i); + } + } + this.RecalulateRedPoint(this.targetAwardDetails, oArg.type); + this.targetAwardDetails.Sort(new Comparison(this.Sort)); + this.rwdView.RefreshDetails(); + } + } + + private int Sort(TargetItemInfo x, TargetItemInfo y) + { + int num = XTargetRewardDocument.m_sortDic.ContainsKey(x.goalAwardsID) ? XTargetRewardDocument.m_sortDic[x.goalAwardsID] : 0; + int num2 = XTargetRewardDocument.m_sortDic.ContainsKey(y.goalAwardsID) ? XTargetRewardDocument.m_sortDic[y.goalAwardsID] : 0; + int num3 = 10000 + num; + int num4 = 10000 + num2; + bool flag = x.gottenAwardsIndex < x.doneIndex; + if (flag) + { + num3 += 10000000; + } + else + { + bool flag2 = x.subItems != null && (ulong)x.gottenAwardsIndex == (ulong)((long)x.subItems.Count); + if (flag2) + { + num3 = num; + } + } + bool flag3 = y.gottenAwardsIndex < y.doneIndex; + if (flag3) + { + num4 += 10000000; + } + else + { + bool flag4 = y.subItems != null && (ulong)y.gottenAwardsIndex == (ulong)((long)y.subItems.Count); + if (flag4) + { + num4 = num2; + } + } + return num4 - num3; + } + + public bool FindTargetInDetailList(uint goalAwardsID) + { + foreach (TargetItemInfo targetItemInfo in this.targetAwardDetails) + { + bool flag = targetItemInfo.goalAwardsID == goalAwardsID; + if (flag) + { + return true; + } + } + return false; + } + + public List FindTarget(uint goalAwardsID) + { + bool flag = XTargetRewardDocument.m_GoalAwardsDic.ContainsKey(goalAwardsID); + List result; + if (flag) + { + result = XTargetRewardDocument.m_GoalAwardsDic[goalAwardsID]; + } + else + { + XSingleton.singleton.AddErrorLog("not find info in goalAward table id: ", goalAwardsID.ToString(), null, null, null, null); + result = null; + } + return result; + } + + public void ClaimAchieve(int id) + { + XSingleton.singleton.AddLog("ClaimTarget ", id.ToString(), null, null, null, null, XDebugColor.XDebug_None); + RpcC2M_GoalAwardsGetAwards rpcC2M_GoalAwardsGetAwards = new RpcC2M_GoalAwardsGetAwards(); + rpcC2M_GoalAwardsGetAwards.oArg.goalAwardsID = (uint)id; + XSingleton.singleton.Send(rpcC2M_GoalAwardsGetAwards); + } + + public void OnClaimedAchieve(uint id, uint index) + { + List list = this.FindTarget(id); + bool flag = list != null; + if (flag) + { + this.FetchTargetRewardType((TargetRewardType)list[0].Type); + } + } + + public void SetRedPointList(List redList) + { + this.InitOpenGoalAward(); + this.m_redList.Clear(); + for (int i = 0; i < redList.Count; i++) + { + bool flag = (ulong)redList[i] < (ulong)((long)this.m_isGoalOpen.Length) && this.m_isGoalOpen[(int)redList[i]]; + if (flag) + { + this.m_redList.Add(redList[i]); + } + } + bool flag2 = this.rwdView != null && this.rwdView.IsVisible(); + if (flag2) + { + this.rwdView.RefreshRedPoint(); + } + this.UpdateAllRedPoint(); + } + + public void RecalulateRedPoint(List itemInfo, uint type) + { + this.m_redList.Remove(type); + bool flag = false; + foreach (TargetItemInfo targetItemInfo in itemInfo) + { + bool flag2 = targetItemInfo.subItems == null; + if (!flag2) + { + bool flag3 = targetItemInfo.doneIndex > targetItemInfo.gottenAwardsIndex; + if (flag3) + { + flag = true; + break; + } + } + } + bool flag4 = flag && (ulong)type < (ulong)((long)this.m_isGoalOpen.Length) && this.m_isGoalOpen[(int)type]; + if (flag4) + { + this.m_redList.Add(type); + } + bool flag5 = this.rwdView != null && this.rwdView.IsVisible(); + if (flag5) + { + this.rwdView.RefreshRedPoint(); + } + this.UpdateAllRedPoint(); + } + + public void UpdateAllRedPoint() + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Reward_Target, true); + } + + public bool HasNewRed() + { + return this.m_redList.Count > 0; + } + + public void InitOpenGoalAward() + { + string[] array = XSingleton.singleton.GetValue("OpenGoalAwards").Split(XGlobalConfig.ListSeparator); + this.m_designationId = XSingleton.singleton.GetInt("GoalDesignationId"); + for (int i = 0; i < array.Length; i++) + { + int num = int.Parse(array[i]); + bool flag = num < this.m_isGoalOpen.Length && XSingleton.singleton.XPlayerData.Level >= XTargetRewardDocument.m_goalLevel[num]; + if (flag) + { + this.m_isGoalOpen[num] = true; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTargetRewardDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XTargetRewardDocument.cs.meta new file mode 100644 index 00000000..c3ba7514 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTargetRewardDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9070efce94bb2ca4fb21b66c63e69ea5 +timeCreated: 1611404138 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTargetState.cs b/Client/Assets/Scripts/XMainClient/XTargetState.cs new file mode 100644 index 00000000..6001a57a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTargetState.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal enum XTargetState + { + TS_NONE, + TS_ME, + TS_OTHER + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTargetState.cs.meta b/Client/Assets/Scripts/XMainClient/XTargetState.cs.meta new file mode 100644 index 00000000..d0a7328f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTargetState.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 77509b0d73817dd4997daefbf7bcd009 +timeCreated: 1611403953 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs b/Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs new file mode 100644 index 00000000..d720e1d6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs @@ -0,0 +1,51 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTaskBehaviour : DlgBehaviourBase + { + public IXUISprite m_Close; + + public IXUILabelSymbol m_Target; + + public IXUILabelSymbol m_Description; + + public XUIPool m_ItemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public XUITabControl m_Tabs = new XUITabControl(); + + public XUIPool m_TasksPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public GameObject m_SelectTask; + + public IXUILabel m_SelectTaskLabel; + + public IXUIScrollView m_TaskListScrollView; + + public IXUIButton m_BtnGo; + + public IXUIButton m_BtnReward; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUISprite") as IXUISprite); + Transform transform = base.transform.Find("Bg/Right/Panel/RewardList/ItemTpl"); + this.m_ItemPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_Tabs.SetTabTpl(base.transform.Find("Bg/TabList/TabTpl")); + transform = base.transform.Find("Bg/Left/TaskTpl"); + this.m_TasksPool.SetupPool(transform.parent.gameObject, transform.gameObject, 3u, false); + this.m_SelectTask = base.transform.Find("Bg/Left/Select").gameObject; + this.m_SelectTaskLabel = (this.m_SelectTask.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel); + this.m_Target = (base.transform.Find("Bg/Right/Panel/Target").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_Description = (base.transform.Find("Bg/Right/Panel/Description").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_TaskListScrollView = (base.transform.Find("Bg/Left").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_BtnGo = (base.transform.Find("Bg/Right/BtnGo").GetComponent("XUIButton") as IXUIButton); + this.m_BtnReward = (base.transform.Find("Bg/Right/BtnReward").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs.meta new file mode 100644 index 00000000..48137961 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 81de5a7152150994abb6e26af241cf25 +timeCreated: 1611404038 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTaskDialog.cs b/Client/Assets/Scripts/XMainClient/XTaskDialog.cs new file mode 100644 index 00000000..e4253d42 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskDialog.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class XTaskDialog + { + public List Dialog + { + get + { + return this.m_Dialog; + } + } + + private List m_Dialog = new List(); + + public void Reset() + { + this.m_Dialog.Clear(); + } + + public void Append(XDialogSentence sentence) + { + this.m_Dialog.Add(sentence); + } + + public void Append(int talker, string content, string voice = null) + { + this.m_Dialog.Add(new XDialogSentence(talker, content, voice, false)); + } + + public void TryAppend(XDialogSentence sentence) + { + bool inited = sentence.Inited; + if (inited) + { + this.Append(sentence); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTaskDialog.cs.meta b/Client/Assets/Scripts/XMainClient/XTaskDialog.cs.meta new file mode 100644 index 00000000..f5d4c90e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskDialog.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c229bd2b31d8a34fa559591f992672f +timeCreated: 1611403690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTaskDocument.cs b/Client/Assets/Scripts/XMainClient/XTaskDocument.cs new file mode 100644 index 00000000..664c39b5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskDocument.cs @@ -0,0 +1,1085 @@ +using System; +using System.Collections.Generic; +using System.Text; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTaskDocument : XDocComponent + { + public override uint ID + { + get + { + return XTaskDocument.uuID; + } + } + + public XTaskRecord TaskRecord + { + get + { + return this.m_TaskRecord; + } + } + + public uint CurrentSelect { get; set; } + + public Dictionary TaskMonstersKilled + { + get + { + return this.m_TaskMonstersKilled; + } + } + + public int NaviTarget + { + get + { + return this.m_NaviTarget; + } + } + + public uint NaviScene + { + get + { + return this.m_NaviScene; + } + } + + public uint NaviTask + { + get + { + return this.m_NaviTask; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("TaskDocument"); + + private string FX_TASK_BEGIN = "Effects/FX_Particle/Scene/Lzg_scene/rwts_01"; + + private string FX_TASK_INPROCESS = "Effects/FX_Particle/Scene/Lzg_scene/rwts_02"; + + private string FX_TASK_END = "Effects/FX_Particle/Scene/Lzg_scene/rwts_03"; + + private List m_Fxes = new List(); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static TaskTableNew _TaskTable = new TaskTableNew(); + + private Dictionary> m_AppearNpcs = new Dictionary>(); + + private Dictionary> m_DisappearNpcs = new Dictionary>(); + + private XTaskRecord m_TaskRecord = new XTaskRecord(); + + private static uint[] TypeSortValue = new uint[20]; + + private string m_TempTarget; + + private uint[] m_TempNpcData; + + private Dictionary m_TempNpcTopTask = new Dictionary(); + + private List m_TempTasks = new List(); + + private Dictionary m_TaskMonstersKilled = new Dictionary(); + + private int m_NaviTarget; + + private uint m_NaviScene; + + private uint m_NaviTask; + + private static uint _HighestPriorityTask = 0u; + + public static void Execute(OnLoadedCallback callback = null) + { + XTaskDocument.AsyncLoader.AddTask("Table/TaskListNew", XTaskDocument._TaskTable, false); + XTaskDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("TaskTypeSort", XGlobalConfig.ListSeparator); + uint num = 0u; + while ((ulong)num < (ulong)((long)andSeparateValue.Length)) + { + XTaskDocument.TypeSortValue[(int)uint.Parse(andSeparateValue[(int)num])] = num; + num += 1u; + } + this.m_AppearNpcs.Clear(); + this.m_DisappearNpcs.Clear(); + XNpcInfo npcInfo = XSingleton.singleton.NpcInfo; + for (int i = 0; i < npcInfo.Table.Length; i++) + { + XNpcInfo.RowData rowData = npcInfo.Table[i]; + bool flag = rowData.RequiredTaskID > 0u; + if (flag) + { + List list; + bool flag2 = !this.m_AppearNpcs.TryGetValue(rowData.RequiredTaskID, out list); + if (flag2) + { + list = new List(); + this.m_AppearNpcs.Add(rowData.RequiredTaskID, list); + } + list.Add(rowData.ID); + } + bool flag3 = rowData.DisappearTask > 0u; + if (flag3) + { + List list2; + bool flag4 = !this.m_DisappearNpcs.TryGetValue(rowData.DisappearTask, out list2); + if (flag4) + { + list2 = new List(); + this.m_DisappearNpcs.Add(rowData.DisappearTask, list2); + } + list2.Add(rowData.ID); + } + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this._OnEntityDie)); + base.RegisterEvent(XEventDefine.XEvent_TaskStateChange, new XComponent.XEventHandler(this._OnTaskStateChanged)); + base.RegisterEvent(XEventDefine.XEvent_NpcFavorFxChange, new XComponent.XEventHandler(this._NotifyXTaskDocFx)); + } + + public static TaskTableNew.RowData GetTaskData(uint taskID) + { + return XTaskDocument._TaskTable.GetByTaskID(taskID); + } + + public void ResetNavi() + { + this.m_NaviScene = 0u; + this.m_NaviTarget = 0; + } + + public XTaskInfo GetTaskInfo(uint taskID) + { + for (int i = 0; i < this.TaskRecord.Tasks.Count; i++) + { + bool flag = this.TaskRecord.Tasks[i].ID == taskID; + if (flag) + { + return this.TaskRecord.Tasks[i]; + } + } + return null; + } + + public TaskStatus GetTaskStatue() + { + TaskStatus taskStatus = TaskStatus.TaskStatus_Over; + for (int i = 0; i < this.TaskRecord.Tasks.Count; i++) + { + TaskTableNew.RowData taskData = XTaskDocument.GetTaskData(this.TaskRecord.Tasks[i].ID); + bool flag = taskData == null || (ulong)this.TaskRecord.Tasks[i].TableData.TaskType != (ulong)((long)XFastEnumIntEqualityComparer.ToInt(XTaskType.TT_GuildDailyTask)); + if (!flag) + { + taskStatus = this.TaskRecord.Tasks[i].Status; + bool flag2 = taskStatus == TaskStatus.TaskStatus_Taked || taskStatus == TaskStatus.TaskStatus_Finish; + if (flag2) + { + break; + } + } + } + return taskStatus; + } + + private bool _GetNpcData(TaskTableNew.RowData data, XTaskInfo info) + { + bool flag = data == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = info == null; + if (flag2) + { + this.m_TempNpcData = data.BeginTaskNPCID; + } + else + { + TaskStatus status = info.Status; + if (status - TaskStatus.TaskStatus_Taked > 1) + { + this.m_TempNpcData = data.BeginTaskNPCID; + } + else + { + this.m_TempNpcData = data.EndTaskNPCID; + } + } + result = true; + } + return result; + } + + private bool _GetTempData(TaskTableNew.RowData data, XTaskInfo info) + { + bool flag = data == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = info == null; + if (flag2) + { + this.m_TempNpcData = data.BeginTaskNPCID; + this.m_TempTarget = data.BeginDesc; + } + else + { + TaskStatus status = info.Status; + if (status != TaskStatus.TaskStatus_Taked) + { + if (status != TaskStatus.TaskStatus_Finish) + { + this.m_TempNpcData = data.BeginTaskNPCID; + this.m_TempTarget = data.BeginDesc; + } + else + { + this.m_TempTarget = data.EndDesc; + this.m_TempNpcData = data.EndTaskNPCID; + } + } + else + { + this.m_TempTarget = data.InprocessDesc; + this.m_TempNpcData = null; + } + } + result = true; + } + return result; + } + + public string ParseTaskDesc(TaskTableNew.RowData data, XTaskInfo info, bool bCRLF) + { + bool flag = !this._GetTempData(data, info); + string result; + if (flag) + { + result = string.Empty; + } + else + { + StringBuilder stringBuilder = new StringBuilder(this.m_TempTarget); + if (bCRLF) + { + stringBuilder.Replace("{n}", "\n"); + } + else + { + stringBuilder.Replace("{n}", " "); + } + uint key = XSingleton.singleton.ChooseProfData(this.m_TempNpcData, 0u); + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(key); + bool flag2 = byNPCID != null; + if (flag2) + { + stringBuilder = stringBuilder.Replace("{npc}", byNPCID.Name); + } + bool flag3 = info == null; + if (flag3) + { + uint num = XSingleton.singleton.ChooseProfData(ref data.PassScene, 0u, 0); + SceneTable.RowData rowData = null; + bool flag4 = num > 0u; + if (flag4) + { + rowData = XSingleton.singleton.GetSceneData(num); + } + bool flag5 = rowData != null; + if (flag5) + { + stringBuilder.Replace("{scene}", rowData.Comment); + } + } + else + { + for (int i = 0; i < info.Conds.Count; i++) + { + TaskConditionInfo taskConditionInfo = info.Conds[i]; + switch (taskConditionInfo.type) + { + case TaskConnType.TaskConn_ItemID: + { + ItemList.RowData itemConf = XBagDocument.GetItemConf((int)taskConditionInfo.id); + bool flag6 = itemConf != null; + if (flag6) + { + stringBuilder.Replace("{item}", XSingleton.singleton.ChooseProfString(itemConf.ItemName, 0u)); + } + break; + } + case TaskConnType.TaskConn_StageID: + { + SceneTable.RowData sceneData = XSingleton.singleton.GetSceneData(taskConditionInfo.id); + bool flag7 = sceneData != null; + if (flag7) + { + stringBuilder.Replace("{scene}", sceneData.Comment); + } + break; + } + case TaskConnType.TaskConn_MonsterID: + { + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(taskConditionInfo.id); + bool flag8 = byID != null; + if (flag8) + { + stringBuilder.Replace("{monster}", byID.Name); + } + break; + } + } + this._FormatCount(stringBuilder, taskConditionInfo); + } + } + result = stringBuilder.ToString(); + } + return result; + } + + private void _FormatCount(StringBuilder sb, TaskConditionInfo cond) + { + bool flag = cond != null; + if (flag) + { + string newValue = XSingleton.singleton.StringCombine(cond.step.ToString(), "/", cond.max_step.ToString()); + switch (cond.type) + { + case TaskConnType.TaskConn_ItemID: + sb.Replace("{itemcount}", newValue); + break; + case TaskConnType.TaskConn_StageID: + sb.Replace("{scenecount}", newValue); + break; + case TaskConnType.TaskConn_MonsterID: + sb.Replace("{monstercount}", newValue); + break; + } + } + } + + public void OnTaskStatusUpdate(TaskInfo info) + { + bool flag = false; + for (int i = 0; i < this.TaskRecord.Tasks.Count; i++) + { + bool flag2 = this.TaskRecord.Tasks[i].ID == info.id; + if (flag2) + { + flag = true; + this.TaskRecord.Tasks[i].Init(info); + bool flag3 = info.status == TaskStatus.TaskStatus_Over; + if (flag3) + { + this.TaskRecord.Tasks.RemoveAt(i); + this.TaskRecord.FinishTask(info.id); + bool flag4 = info.id == XTaskDocument._HighestPriorityTask; + if (flag4) + { + this._ResetHighestPriorityTask(false); + } + } + break; + } + } + bool flag5 = !flag; + if (flag5) + { + bool flag6 = info.status == TaskStatus.TaskStatus_Over; + if (flag6) + { + this.TaskRecord.FinishTask(info.id); + } + else + { + this.TaskRecord.AddTask(info); + } + } + this._RefreshUI(); + this.SetupNpcHeadFx(); + XTaskStatusChangeArgs @event = XEventPool.GetEvent(); + @event.id = info.id; + @event.status = info.status; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + + private void _RefreshUI() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshPage(); + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + bool flag3 = DlgBase.singleton._TaskNaviHandler.TaskHandler.IsVisible(); + if (flag3) + { + DlgBase.singleton._TaskNaviHandler.TaskHandler.RefreshData(); + } + } + } + + public void SetHighestPriorityTask(uint taskID) + { + XTaskDocument._HighestPriorityTask = taskID; + this._OnHighestPriorityTaskChanged(true); + } + + private void _ResetHighestPriorityTask(bool bUpdateUI) + { + bool flag = XTaskDocument._HighestPriorityTask > 0u; + if (flag) + { + XTaskDocument._HighestPriorityTask = 0u; + this._OnHighestPriorityTaskChanged(bUpdateUI); + } + } + + private void _OnHighestPriorityTaskChanged(bool bUpdateUI) + { + this.TaskRecord.Tasks.Sort(new Comparison(XTaskDocument.SortInTaskList)); + if (bUpdateUI) + { + this._RefreshUI(); + this.SetupNpcHeadFx(); + } + } + + public void DoTask(uint id) + { + XTaskInfo taskInfo = this.GetTaskInfo(id); + bool flag = taskInfo == null; + if (!flag) + { + TaskTableNew.RowData tableData = taskInfo.TableData; + bool flag2 = !this._GetTempData(tableData, taskInfo); + if (!flag2) + { + uint num = XSingleton.singleton.ChooseProfData(this.m_TempNpcData, 0u); + uint sceneID = XTaskDocument.GetSceneID(ref tableData.TaskScene); + bool flag3 = sceneID != 0u && taskInfo.Status == TaskStatus.TaskStatus_Taked; + if (flag3) + { + XExpeditionDocument specificDocument = XDocuments.GetSpecificDocument(XExpeditionDocument.uuID); + int expIDBySceneID = specificDocument.GetExpIDBySceneID(sceneID); + bool flag4 = expIDBySceneID != 0; + if (flag4) + { + XTeamDocument specificDocument2 = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument2.SetAndMatch(expIDBySceneID); + } + else + { + PtcC2G_EnterSceneReq ptcC2G_EnterSceneReq = new PtcC2G_EnterSceneReq(); + ptcC2G_EnterSceneReq.Data.sceneID = sceneID; + XSingleton.singleton.Send(ptcC2G_EnterSceneReq); + } + } + else + { + bool flag5 = num == 0u && tableData.TaskType == 4u; + if (flag5) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + bool flag6 = num == 0u && tableData.TaskType == 7u; + if (flag6) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + else + { + bool flag7 = num == 0u && tableData.TaskID == XCampDuelDocument.Doc.TaskID; + if (flag7) + { + DlgBase.singleton.Show(XSysDefine.XSys_CampDuel, false); + } + else + { + uint sceneID2 = XTaskDocument.GetSceneID(ref tableData.PassScene); + this.NaviToNpc(num, sceneID2); + this.m_NaviTask = id; + } + } + } + } + } + } + } + + public void NaviToNpc(uint npcid, uint sceneid) + { + bool flag = npcid == 0u; + if (flag) + { + DlgBase.singleton.IsTaskMode = true; + this._NavigateToBattle(); + this.m_NaviTarget = 1; + this.m_NaviScene = sceneid; + } + else + { + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc(npcid); + } + } + + private void _NavigateToBattle() + { + bool flag = XSingleton.singleton.Player == null || XSingleton.singleton.Player.Deprecated; + if (!flag) + { + XSingleton.singleton.LastNpc = null; + Vector3 normalized = (XSingleton.singleton.Player.EngineObject.Position - XSingleton.singleton.BattleTargetPoint).normalized; + Vector3 dest = XSingleton.singleton.BattleTargetPoint + normalized * 5.8f; + XNavigationEventArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + @event.Dest = dest; + XSingleton.singleton.FireEvent(@event); + } + } + + public List GetSceneTaskState(uint sceneid) + { + this.m_TempTasks.Clear(); + for (int i = 0; i < this.TaskRecord.Tasks.Count; i++) + { + XTaskInfo xtaskInfo = this.TaskRecord.Tasks[i]; + bool flag = xtaskInfo == null || xtaskInfo.TableData == null; + if (!flag) + { + bool flag2 = sceneid == XTaskDocument.GetSceneID(ref xtaskInfo.TableData.PassScene); + if (flag2) + { + this.m_TempTasks.Add(xtaskInfo.ID); + } + else + { + bool flag3 = sceneid == XTaskDocument.GetSceneID(ref xtaskInfo.TableData.TaskScene); + if (flag3) + { + this.m_TempTasks.Add(xtaskInfo.ID); + } + } + } + } + return this.m_TempTasks; + } + + public NpcTaskState GetNpcTaskState(uint npcid, ref XTaskInfo task) + { + task = null; + for (int i = 0; i < this.TaskRecord.Tasks.Count; i++) + { + XTaskInfo xtaskInfo = this.TaskRecord.Tasks[i]; + TaskTableNew.RowData tableData = xtaskInfo.TableData; + bool flag = !this._GetNpcData(tableData, xtaskInfo); + if (!flag) + { + bool flag2 = tableData != null && XSingleton.singleton.ChooseProfData(this.m_TempNpcData, 0u) == npcid; + if (flag2) + { + bool flag3 = xtaskInfo.ID == this.m_NaviTask; + if (flag3) + { + task = xtaskInfo; + return xtaskInfo.NpcState; + } + bool flag4 = XTaskDocument.SortInDialog(xtaskInfo, task) < 0; + if (flag4) + { + task = xtaskInfo; + } + } + } + } + bool flag5 = task != null; + if (flag5) + { + return task.NpcState; + } + return NpcTaskState.Normal; + } + + private XTaskInfo FindTaskInfo(uint npcId) + { + XTaskInfo xtaskInfo = null; + for (int i = 0; i < this.TaskRecord.Tasks.Count; i++) + { + XTaskInfo xtaskInfo2 = this.TaskRecord.Tasks[i]; + bool flag = !this._GetNpcData(xtaskInfo2.TableData, xtaskInfo2); + if (!flag) + { + uint num = XSingleton.singleton.ChooseProfData(this.m_TempNpcData, 0u); + bool flag2 = npcId != num; + if (!flag2) + { + bool flag3 = xtaskInfo == null; + if (flag3) + { + xtaskInfo = xtaskInfo2; + } + else + { + bool flag4 = XTaskDocument.SortInDialog(xtaskInfo2, xtaskInfo) < 0; + if (flag4) + { + xtaskInfo = xtaskInfo2; + } + } + } + } + } + return xtaskInfo; + } + + private bool _NotifyXTaskDocFx(XEventArgs e) + { + this.SetupNpcHeadFx(); + return true; + } + + protected void SetupNpcHeadFx() + { + List npcs = XSingleton.singleton.GetNpcs(XSingleton.singleton.SceneID); + this.m_TempNpcTopTask.Clear(); + this.ClearFx(); + bool flag = npcs == null; + if (!flag) + { + for (int i = 0; i < this.TaskRecord.Tasks.Count; i++) + { + XTaskInfo xtaskInfo = this.TaskRecord.Tasks[i]; + bool flag2 = !this._GetNpcData(xtaskInfo.TableData, xtaskInfo); + if (!flag2) + { + uint key = XSingleton.singleton.ChooseProfData(this.m_TempNpcData, 0u); + XTaskInfo task; + bool flag3 = this.m_TempNpcTopTask.TryGetValue(key, out task); + if (flag3) + { + bool flag4 = XTaskDocument.SortInDialog(xtaskInfo, task) < 0; + if (flag4) + { + this.m_TempNpcTopTask[key] = xtaskInfo; + } + } + else + { + this.m_TempNpcTopTask[key] = xtaskInfo; + } + } + } + for (int j = 0; j < npcs.Count; j++) + { + XTaskInfo xtaskInfo2; + bool flag5 = !this.m_TempNpcTopTask.TryGetValue(npcs[j], out xtaskInfo2); + if (!flag5) + { + XNpc npc = XSingleton.singleton.GetNpc(npcs[j]); + bool flag6 = npc == null; + if (!flag6) + { + NpcTaskState npcState = xtaskInfo2.NpcState; + XFx xfx = null; + bool flag7 = npcState == NpcTaskState.TaskBegin; + if (flag7) + { + xfx = XSingleton.singleton.CreateFx(this.FX_TASK_BEGIN, null, true); + } + else + { + bool flag8 = npcState == NpcTaskState.TaskInprocess; + if (flag8) + { + bool flag9 = false; + bool flag10 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_NPCFavor); + if (flag10) + { + XNPCFavorDocument specificDocument = XDocuments.GetSpecificDocument(XNPCFavorDocument.uuID); + flag9 = specificDocument.IsShowFavorFx(npcs[j]); + } + bool flag11 = !flag9; + if (flag11) + { + xfx = XSingleton.singleton.CreateFx(this.FX_TASK_INPROCESS, null, true); + } + } + else + { + bool flag12 = npcState == NpcTaskState.TaskEnd; + if (flag12) + { + xfx = XSingleton.singleton.CreateFx(this.FX_TASK_END, null, true); + } + } + } + bool flag13 = xfx != null; + if (flag13) + { + this.m_Fxes.Add(xfx); + xfx.Play(npc.EngineObject, new Vector3(-0.05f, npc.Height + 0.7f, 0f), Vector3.one, 1f, true, false, "", 0f); + } + } + } + } + this.m_TempNpcTopTask.Clear(); + } + } + + public void CreateFx(XNpc npc, uint npcId) + { + XTaskInfo xtaskInfo = this.FindTaskInfo(npcId); + bool flag = xtaskInfo != null; + if (flag) + { + NpcTaskState npcState = xtaskInfo.NpcState; + XFx xfx = null; + bool flag2 = npcState == NpcTaskState.TaskBegin; + if (flag2) + { + xfx = XSingleton.singleton.CreateFx(this.FX_TASK_BEGIN, null, true); + } + else + { + bool flag3 = npcState == NpcTaskState.TaskInprocess; + if (flag3) + { + xfx = XSingleton.singleton.CreateFx(this.FX_TASK_INPROCESS, null, true); + } + else + { + bool flag4 = npcState == NpcTaskState.TaskEnd; + if (flag4) + { + xfx = XSingleton.singleton.CreateFx(this.FX_TASK_END, null, true); + } + } + } + bool flag5 = xfx != null; + if (flag5) + { + this.m_Fxes.Add(xfx); + xfx.Play(npc.EngineObject, new Vector3(-0.05f, npc.Height + 0.7f, 0f), Vector3.one, 1f, true, false, "", 0f); + } + } + } + + protected void ClearFx() + { + for (int i = 0; i < this.m_Fxes.Count; i++) + { + XSingleton.singleton.DestroyFx(this.m_Fxes[i], true); + } + this.m_Fxes.Clear(); + } + + private void _ResetTaskMonsters() + { + this.m_TaskMonstersKilled.Clear(); + } + + private void _InitTaskMonsters() + { + for (int i = 0; i < this.TaskRecord.Tasks.Count; i++) + { + XTaskInfo xtaskInfo = this.TaskRecord.Tasks[i]; + for (int j = 0; j < xtaskInfo.Conds.Count; j++) + { + TaskConditionInfo taskConditionInfo = xtaskInfo.Conds[j]; + bool flag = taskConditionInfo.type == TaskConnType.TaskConn_MonsterID && !this.m_TaskMonstersKilled.ContainsKey(taskConditionInfo.id); + if (flag) + { + this.m_TaskMonstersKilled.Add(taskConditionInfo.id, 0u); + } + } + } + } + + private bool _OnEntityDie(XEventArgs arg) + { + bool syncMode = XSingleton.singleton.SyncMode; + bool result; + if (syncMode) + { + result = true; + } + else + { + XRealDeadEventArgs xrealDeadEventArgs = arg as XRealDeadEventArgs; + bool flag = xrealDeadEventArgs.TheDead.IsEnemy && this.m_TaskMonstersKilled.ContainsKey(xrealDeadEventArgs.TheDead.TypeID); + if (flag) + { + Dictionary taskMonstersKilled = this.m_TaskMonstersKilled; + uint typeID = xrealDeadEventArgs.TheDead.TypeID; + uint value = taskMonstersKilled[typeID] + 1u; + taskMonstersKilled[typeID] = value; + } + result = true; + } + return result; + } + + private bool _OnTaskStateChanged(XEventArgs arg) + { + XTaskStatusChangeArgs xtaskStatusChangeArgs = arg as XTaskStatusChangeArgs; + bool flag = xtaskStatusChangeArgs.status == TaskStatus.TaskStatus_Over; + if (flag) + { + List list; + bool flag2 = this.m_AppearNpcs.TryGetValue(xtaskStatusChangeArgs.id, out list); + if (flag2) + { + for (int i = 0; i < list.Count; i++) + { + XSingleton.singleton.CreateNpc(list[i], true); + } + } + bool flag3 = this.m_DisappearNpcs.TryGetValue(xtaskStatusChangeArgs.id, out list); + if (flag3) + { + for (int j = 0; j < list.Count; j++) + { + XSingleton.singleton.DestroyNpc(list[j]); + } + } + } + return true; + } + + public static NpcTaskState TaskStatus2TaskState(TaskStatus status) + { + NpcTaskState result; + switch (status) + { + case TaskStatus.TaskStatus_CanTake: + result = NpcTaskState.TaskBegin; + break; + case TaskStatus.TaskStatus_Taked: + result = NpcTaskState.TaskInprocess; + break; + case TaskStatus.TaskStatus_Finish: + result = NpcTaskState.TaskEnd; + break; + case TaskStatus.TaskStatus_Over: + result = NpcTaskState.Normal; + break; + default: + result = NpcTaskState.Invalid; + break; + } + return result; + } + + public static uint GetSceneID(ref SeqListRef sceneData) + { + return XSingleton.singleton.ChooseProfData(ref sceneData, 0u, 0); + } + + public static int SortByType(int type0, int type1) + { + return XTaskDocument.TypeSortValue[type0].CompareTo(XTaskDocument.TypeSortValue[type1]); + } + + public static int SortByNpcState(NpcTaskState state0, NpcTaskState state1) + { + return state0.CompareTo(state1); + } + + public static int SortInTaskList(XTaskInfo task0, XTaskInfo task1) + { + bool flag = task0 == null; + int result; + if (flag) + { + result = 1; + } + else + { + bool flag2 = task1 == null; + if (flag2) + { + result = -1; + } + else + { + bool flag3 = XTaskDocument._HighestPriorityTask > 0u; + if (flag3) + { + bool flag4 = task0.ID == task1.ID; + if (flag4) + { + return 0; + } + bool flag5 = task0.ID == XTaskDocument._HighestPriorityTask; + if (flag5) + { + return -1; + } + bool flag6 = task1.ID == XTaskDocument._HighestPriorityTask; + if (flag6) + { + return 1; + } + } + int num = XTaskDocument.SortByType((int)task0.TableData.TaskType, (int)task1.TableData.TaskType); + bool flag7 = num == 0; + if (flag7) + { + num = XTaskDocument.SortByNpcState(task0.NpcState, task1.NpcState); + } + bool flag8 = num == 0; + if (flag8) + { + num = task0.ID.CompareTo(task1.ID); + } + result = num; + } + } + return result; + } + + public static int SortInDialog(XTaskInfo task0, XTaskInfo task1) + { + bool flag = task0 == null; + int result; + if (flag) + { + result = 1; + } + else + { + bool flag2 = task1 == null; + if (flag2) + { + result = -1; + } + else + { + bool flag3 = XTaskDocument._HighestPriorityTask > 0u; + if (flag3) + { + bool flag4 = task0.ID == task1.ID; + if (flag4) + { + return 0; + } + bool flag5 = task0.ID == XTaskDocument._HighestPriorityTask; + if (flag5) + { + return -1; + } + bool flag6 = task0.ID == XTaskDocument._HighestPriorityTask; + if (flag6) + { + return 1; + } + } + int num = XTaskDocument.SortByNpcState(task0.NpcState, task1.NpcState); + bool flag7 = num == 0; + if (flag7) + { + num = XTaskDocument.SortByType((int)task0.TableData.TaskType, (int)task1.TableData.TaskType); + } + bool flag8 = num == 0; + if (flag8) + { + num = task0.ID.CompareTo(task1.ID); + } + result = num; + } + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.TaskRecord.InitFromServerData(arg.PlayerInfo.task_record); + this._RefreshUI(); + this.SetupNpcHeadFx(); + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + this.SetupNpcHeadFx(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this._ResetTaskMonsters(); + } + else + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.World; + if (flag2) + { + this._InitTaskMonsters(); + } + } + } + + public override void OnLeaveScene() + { + this.ClearFx(); + this._ResetHighestPriorityTask(false); + base.OnLeaveScene(); + } + + public bool ShouldNpcExist(uint npcID) + { + XNpcInfo.RowData byNPCID = XSingleton.singleton.NpcInfo.GetByNPCID(npcID); + bool flag = byNPCID == null; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = byNPCID.DisappearTask != 0u && this.TaskRecord.IsTaskFinished(byNPCID.DisappearTask); + if (flag2) + { + result = false; + } + else + { + bool flag3 = byNPCID.RequiredTaskID == 0u || this.TaskRecord.IsTaskFinished(byNPCID.RequiredTaskID); + result = flag3; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTaskDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XTaskDocument.cs.meta new file mode 100644 index 00000000..cee6e23d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d3896cbf5adc21f49861821d362b332c +timeCreated: 1611404599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTaskInfo.cs b/Client/Assets/Scripts/XMainClient/XTaskInfo.cs new file mode 100644 index 00000000..ca4d907e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskInfo.cs @@ -0,0 +1,282 @@ +using System; +using System.Collections.Generic; +using System.IO; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTaskInfo + { + public uint ID + { + get + { + return this.m_ID; + } + } + + public TaskStatus Status + { + get + { + return this.m_Status; + } + } + + public NpcTaskState NpcState + { + get + { + return this.m_State; + } + } + + public List Conds + { + get + { + return this.m_Conditions; + } + } + + public TaskTableNew.RowData TableData + { + get + { + return this.m_TableData; + } + } + + public XTaskDialog BeginDialog + { + get + { + return this._GetDialog(0); + } + } + + public XTaskDialog InprocessDialog + { + get + { + return this._GetDialog(1); + } + } + + public XTaskDialog EndDialog + { + get + { + return this._GetDialog(2); + } + } + + public XTaskDialog CurDialog + { + get + { + XTaskDialog result; + switch (this.Status) + { + case TaskStatus.TaskStatus_CanTake: + result = this.BeginDialog; + break; + case TaskStatus.TaskStatus_Taked: + result = this.InprocessDialog; + break; + case TaskStatus.TaskStatus_Finish: + result = this.EndDialog; + break; + default: + result = this.BeginDialog; + break; + } + return result; + } + } + + private uint m_ID; + + private TaskStatus m_Status; + + private NpcTaskState m_State; + + private List m_Conditions = new List(); + + private TaskTableNew.RowData m_TableData; + + private XTaskDialog[] m_Dialogs = new XTaskDialog[3]; + + public bool Init(TaskInfo info) + { + this.m_ID = info.id; + this.m_Status = info.status; + this.m_State = XTaskDocument.TaskStatus2TaskState(this.m_Status); + this.m_Conditions.Clear(); + for (int i = 0; i < info.conds.Count; i++) + { + this.m_Conditions.Add(info.conds[i]); + } + this.m_TableData = XTaskDocument.GetTaskData(this.m_ID); + for (int j = 0; j < this.m_Dialogs.Length; j++) + { + this.m_Dialogs[j] = null; + } + bool flag = this.m_TableData == null; + bool result; + if (flag) + { + XSingleton.singleton.AddErrorLog("Cant find config for task: ", this.m_ID.ToString(), null, null, null, null); + result = false; + } + else + { + result = true; + } + return result; + } + + private XTaskDialog _GetDialog(int index) + { + bool flag = index < 0 || index >= this.m_Dialogs.Length; + XTaskDialog result; + if (flag) + { + result = null; + } + else + { + XTaskDialog xtaskDialog = this.m_Dialogs[index]; + bool flag2 = xtaskDialog == null; + if (flag2) + { + this._Load(XSingleton.singleton.XPlayerData.BasicTypeID); + } + xtaskDialog = this.m_Dialogs[index]; + result = xtaskDialog; + } + return result; + } + + private void _Load(uint prof) + { + string location = XSingleton.singleton.StringCombine("Table/Task/", this.ID.ToString()); + for (int i = 0; i < this.m_Dialogs.Length; i++) + { + this.m_Dialogs[i] = new XTaskDialog(); + } + Stream stream = XSingleton.singleton.ReadText(location, ".txt", true); + StreamReader streamReader = new StreamReader(stream); + XDialogSentence xdialogSentence = default(XDialogSentence); + XTaskDialog dialog = null; + bool flag = false; + string value = prof.ToString(); + string text; + while ((text = streamReader.ReadLine()) != null) + { + bool flag2 = text.StartsWith("start"); + if (!flag2) + { + bool flag3 = text.Length == 0; + if (!flag3) + { + bool flag4 = text.StartsWith("prof"); + if (flag4) + { + bool flag5 = flag; + if (flag5) + { + break; + } + bool flag6 = text.EndsWith(value) || text.EndsWith("0"); + if (flag6) + { + flag = true; + } + } + else + { + bool flag7 = !flag; + if (!flag7) + { + bool flag8 = text.StartsWith("begin"); + if (flag8) + { + this._AppendPrevious(dialog, ref xdialogSentence); + dialog = this.m_Dialogs[0]; + } + else + { + bool flag9 = text.StartsWith("inprogress"); + if (flag9) + { + this._AppendPrevious(dialog, ref xdialogSentence); + dialog = this.m_Dialogs[1]; + } + else + { + bool flag10 = text.StartsWith("end"); + if (flag10) + { + this._AppendPrevious(dialog, ref xdialogSentence); + dialog = this.m_Dialogs[2]; + } + else + { + bool flag11 = text.Length == 1; + if (flag11) + { + int talker; + bool flag12 = int.TryParse(text, out talker); + if (flag12) + { + this._AppendPrevious(dialog, ref xdialogSentence); + xdialogSentence.Talker = talker; + continue; + } + } + bool flag13 = !xdialogSentence.Inited; + if (!flag13) + { + bool flag14 = text.StartsWith("[voice]"); + if (flag14) + { + xdialogSentence.Voice = text.Substring("[voice]".Length); + } + else + { + bool flag15 = text.StartsWith("[can_reject]"); + if (flag15) + { + xdialogSentence.bCanReject = true; + } + else + { + xdialogSentence.Content = text; + } + } + } + } + } + } + } + } + } + } + } + this._AppendPrevious(dialog, ref xdialogSentence); + XSingleton.singleton.ClearStream(stream); + } + + private void _AppendPrevious(XTaskDialog dialog, ref XDialogSentence sentence) + { + bool flag = dialog != null; + if (flag) + { + dialog.TryAppend(sentence); + } + sentence.Reset(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTaskInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XTaskInfo.cs.meta new file mode 100644 index 00000000..5c94feb8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a523ba38f6ce1804d8db96a45d933d92 +timeCreated: 1611404284 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTaskRecord.cs b/Client/Assets/Scripts/XMainClient/XTaskRecord.cs new file mode 100644 index 00000000..fe653a9a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskRecord.cs @@ -0,0 +1,97 @@ +using System; +using System.Collections.Generic; +using KKSG; + +namespace XMainClient +{ + internal class XTaskRecord + { + public List Tasks + { + get + { + return this.m_TaskList; + } + } + + public XTaskInfo MainTask + { + get + { + return this.m_MainTask; + } + } + + private List m_TaskList = new List(); + + private HashSet m_FinishedTasks = new HashSet(); + + private XTaskInfo m_MainTask = null; + + public void InitFromServerData(RoleTask roleTask) + { + this.m_TaskList.Clear(); + this.m_FinishedTasks.Clear(); + bool flag = roleTask == null; + if (!flag) + { + for (int i = 0; i < roleTask.tasks.Count; i++) + { + XTaskInfo xtaskInfo = new XTaskInfo(); + bool flag2 = xtaskInfo.Init(roleTask.tasks[i]); + if (flag2) + { + this.m_TaskList.Add(xtaskInfo); + this._UpdateMainTask(xtaskInfo); + } + } + for (int j = 0; j < roleTask.finished.Count; j++) + { + this.m_FinishedTasks.Add(roleTask.finished[j]); + } + this.m_TaskList.Sort(new Comparison(XTaskDocument.SortInTaskList)); + } + } + + public XTaskInfo AddTask(TaskInfo info) + { + XTaskInfo xtaskInfo = new XTaskInfo(); + bool flag = xtaskInfo.Init(info); + if (flag) + { + this.m_TaskList.Add(xtaskInfo); + this.m_TaskList.Sort(new Comparison(XTaskDocument.SortInTaskList)); + this._UpdateMainTask(xtaskInfo); + } + else + { + xtaskInfo = null; + } + return xtaskInfo; + } + + public void FinishTask(uint taskid) + { + this.m_FinishedTasks.Add(taskid); + bool flag = this.m_MainTask != null && this.m_MainTask.ID == taskid; + if (flag) + { + this.m_MainTask = null; + } + } + + public bool IsTaskFinished(uint taskid) + { + return this.m_FinishedTasks.Contains(taskid); + } + + private void _UpdateMainTask(XTaskInfo info) + { + bool flag = this.m_MainTask == null && info.TableData.TaskType == 1u; + if (flag) + { + this.m_MainTask = info; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTaskRecord.cs.meta b/Client/Assets/Scripts/XMainClient/XTaskRecord.cs.meta new file mode 100644 index 00000000..71ac8358 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a45be7641ed131f4b90a32d545a85b68 +timeCreated: 1611404282 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTaskStatusChangeArgs.cs b/Client/Assets/Scripts/XMainClient/XTaskStatusChangeArgs.cs new file mode 100644 index 00000000..2055eb09 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskStatusChangeArgs.cs @@ -0,0 +1,23 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal class XTaskStatusChangeArgs : XEventArgs + { + public TaskStatus status; + + public uint id; + + public XTaskStatusChangeArgs() + { + this._eDefine = XEventDefine.XEvent_TaskStateChange; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTaskStatusChangeArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XTaskStatusChangeArgs.cs.meta new file mode 100644 index 00000000..6d59ff98 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskStatusChangeArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f92433302b38bc54f96cee2726a598bf +timeCreated: 1611404897 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTaskType.cs b/Client/Assets/Scripts/XMainClient/XTaskType.cs new file mode 100644 index 00000000..c4442abf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskType.cs @@ -0,0 +1,13 @@ +using System; + +namespace XMainClient +{ + internal enum XTaskType + { + TT_Main = 1, + TT_Side, + TT_GuildDailyTask = 4, + TT_GuildWeeklyBountyTask = 7, + TT_BackFlowTask + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTaskType.cs.meta b/Client/Assets/Scripts/XMainClient/XTaskType.cs.meta new file mode 100644 index 00000000..f83d81e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: fe828f6a3f82103459c438c725e3fee7 +timeCreated: 1611404941 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTaskView.cs b/Client/Assets/Scripts/XMainClient/XTaskView.cs new file mode 100644 index 00000000..e3ee53a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskView.cs @@ -0,0 +1,294 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XMainClient.Utility; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTaskView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/QuestDlg"; + } + } + + public override bool isHideChat + { + get + { + return false; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override int group + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return false; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private XTaskDocument doc; + + private List m_TabListIDs = new List(); + + private List m_TabListNames = new List(); + + private List m_TaskListIDs = new List(); + + private List m_TaskGos = new List(); + + private int m_SelectedTab = -1; + + private bool m_bFirstOpen = false; + + protected override void Init() + { + this.doc = XDocuments.GetSpecificDocument(XTaskDocument.uuID); + } + + public override void RegisterEvent() + { + base.uiBehaviour.m_Close.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnCloseClicked)); + base.uiBehaviour.m_BtnGo.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnGoClicked)); + base.uiBehaviour.m_BtnReward.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnBtnRewardClicked)); + } + + protected override void OnShow() + { + base.OnShow(); + bool flag = this.doc.TaskRecord.Tasks.Count == 0; + if (flag) + { + this.SetVisibleWithAnimation(false, null); + } + this.m_SelectedTab = -1; + this.m_bFirstOpen = true; + this.RefreshPage(); + this.m_bFirstOpen = false; + } + + public void RefreshPage() + { + this._RefreshTabs(); + } + + public void TryShowTaskView() + { + base.Load(); + bool flag = this.doc.TaskRecord.Tasks.Count == 0; + if (!flag) + { + this.SetVisibleWithAnimation(true, null); + } + } + + public void OnCloseClicked(IXUISprite sp) + { + this.SetVisibleWithAnimation(false, null); + } + + public bool OnBtnRewardClicked(IXUIButton btn) + { + this.doc.DoTask(this.doc.CurrentSelect); + this.SetVisibleWithAnimation(false, null); + return true; + } + + public bool OnBtnGoClicked(IXUIButton btn) + { + this.doc.DoTask(this.doc.CurrentSelect); + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void OnTabClicked(ulong id) + { + this.OnTabSelect((uint)id); + } + + private void OnTaskClicked(ulong id) + { + uint currentSelect = (uint)id; + this.doc.CurrentSelect = currentSelect; + this.RefreshRightContent(); + } + + private void _OnTaskClicked(IXUISprite iSp) + { + int index = (int)iSp.ID; + this._OnTaskSelected(index); + } + + private void _OnTaskSelected(int index) + { + bool flag = index < 0 || index >= this.m_TaskListIDs.Count; + if (!flag) + { + uint currentSelect = this.m_TaskListIDs[index]; + this.doc.CurrentSelect = currentSelect; + GameObject gameObject = this.m_TaskGos[index]; + IXUILabel ixuilabel = gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + base.uiBehaviour.m_SelectTaskLabel.SetText(ixuilabel.GetText()); + base.uiBehaviour.m_SelectTask.transform.localPosition = gameObject.transform.localPosition; + this.RefreshRightContent(); + } + } + + private void _TrySelectTask(uint id) + { + bool flag = false; + for (int i = 0; i < this.m_TaskListIDs.Count; i++) + { + bool flag2 = this.m_TaskListIDs[i] == id; + if (flag2) + { + flag = true; + this._OnTaskSelected(i); + break; + } + } + bool flag3 = !flag; + if (flag3) + { + this._OnTaskSelected(0); + base.uiBehaviour.m_TaskListScrollView.ResetPosition(); + } + } + + public void OnTabSelect(uint type) + { + this.m_TaskListIDs.Clear(); + this.m_TaskGos.Clear(); + base.uiBehaviour.m_TasksPool.FakeReturnAll(); + int i = 0; + int num = 0; + while (i < this.doc.TaskRecord.Tasks.Count) + { + XTaskInfo xtaskInfo = this.doc.TaskRecord.Tasks[i]; + TaskTableNew.RowData tableData = xtaskInfo.TableData; + bool flag = tableData == null || tableData.TaskType != type; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_TasksPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_TasksPool.TplPos.x, base.uiBehaviour.m_TasksPool.TplPos.y - (float)(base.uiBehaviour.m_TasksPool.TplHeight * num), base.uiBehaviour.m_TasksPool.TplPos.z); + this.m_TaskGos.Add(gameObject); + this.m_TaskListIDs.Add(xtaskInfo.ID); + IXUISprite ixuisprite = gameObject.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)((long)num); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this._OnTaskClicked)); + IXUILabel ixuilabel = gameObject.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(tableData.TaskTitle); + num++; + } + i++; + } + base.uiBehaviour.m_TasksPool.ActualReturnAll(false); + bool bFirstOpen = this.m_bFirstOpen; + if (bFirstOpen) + { + base.uiBehaviour.m_TaskListScrollView.ResetPosition(); + } + this._TrySelectTask(this.doc.CurrentSelect); + } + + private void _RefreshTabs() + { + this.m_TabListIDs.Clear(); + this.m_TabListNames.Clear(); + for (int i = 0; i < this.doc.TaskRecord.Tasks.Count; i++) + { + TaskTableNew.RowData tableData = this.doc.TaskRecord.Tasks[i].TableData; + bool flag = tableData == null; + if (!flag) + { + int j; + for (j = 0; j < this.m_TabListIDs.Count; j++) + { + bool flag2 = this.m_TabListIDs[j] == (int)tableData.TaskType; + if (flag2) + { + break; + } + } + bool flag3 = j == this.m_TabListIDs.Count; + if (flag3) + { + this.m_TabListIDs.Add((int)tableData.TaskType); + } + } + } + this.m_TabListIDs.Sort(new Comparison(XTaskDocument.SortByType)); + for (int k = 0; k < this.m_TabListIDs.Count; k++) + { + this.m_TabListNames.Add(XSingleton.singleton.StringCombine("TaskType", this.m_TabListIDs[k].ToString())); + } + base.uiBehaviour.m_Tabs.SetupTabs(this.m_TabListIDs, this.m_TabListNames, new XUITabControl.UITabControlCallback(this.OnTabClicked), true, 1f, this.m_SelectedTab, true); + } + + public void RefreshRightContent() + { + TaskTableNew.RowData taskData = XTaskDocument.GetTaskData(this.doc.CurrentSelect); + bool flag = taskData == null; + if (!flag) + { + XTaskInfo taskInfo = this.doc.GetTaskInfo(this.doc.CurrentSelect); + bool flag2 = taskInfo == null; + if (!flag2) + { + base.uiBehaviour.m_Target.InputText = this.doc.ParseTaskDesc(taskData, taskInfo, false); + base.uiBehaviour.m_Description.InputText = taskData.TaskDesc; + base.uiBehaviour.m_ItemPool.FakeReturnAll(); + for (int i = 0; i < taskData.RewardItem.Count; i++) + { + GameObject gameObject = base.uiBehaviour.m_ItemPool.FetchGameObject(false); + gameObject.transform.localPosition = new Vector3(base.uiBehaviour.m_ItemPool.TplPos.x + (float)(base.uiBehaviour.m_ItemPool.TplWidth * i), base.uiBehaviour.m_ItemPool.TplPos.y, base.uiBehaviour.m_ItemPool.TplPos.z); + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)taskData.RewardItem[0, 0], (int)taskData.RewardItem[0, 1], false); + } + base.uiBehaviour.m_ItemPool.ActualReturnAll(false); + base.uiBehaviour.m_BtnGo.SetVisible(taskInfo.Status != TaskStatus.TaskStatus_Finish); + base.uiBehaviour.m_BtnReward.SetVisible(taskInfo.Status == TaskStatus.TaskStatus_Finish); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTaskView.cs.meta b/Client/Assets/Scripts/XMainClient/XTaskView.cs.meta new file mode 100644 index 00000000..2df482d1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTaskView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: eae9449e5188e294ba9cafbac8ebf3ab +timeCreated: 1611404781 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTempActivityDocument.cs b/Client/Assets/Scripts/XMainClient/XTempActivityDocument.cs new file mode 100644 index 00000000..cc1a58b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTempActivityDocument.cs @@ -0,0 +1,662 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTempActivityDocument : XDocComponent + { + public override uint ID + { + get + { + return XTempActivityDocument.uuID; + } + } + + public static XTempActivityDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XTempActivityDocument.uuID) as XTempActivityDocument; + } + } + + public static SuperActivity SuperActivityTable + { + get + { + return XTempActivityDocument._superActivityTable; + } + } + + public static SuperActivityTime SuperActivityTimeTable + { + get + { + return XTempActivityDocument._superActivityTimeTable; + } + } + + public static SuperActivityTask SuperActivityTaskTable + { + get + { + return XTempActivityDocument._superActivityTaskTable; + } + } + + public SpActivity ActivityRecord + { + get + { + return this._spactivityRecord; + } + set + { + this._spactivityRecord = value; + XBackFlowDocument.Doc.InitBackflowData(); + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("TempActivityDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static SuperActivity _superActivityTable = new SuperActivity(); + + private static SuperActivityTask _superActivityTaskTable = new SuperActivityTask(); + + private static SuperActivityTime _superActivityTimeTable = new SuperActivityTime(); + + private static OpenServerActivity _openServerActivity = new OpenServerActivity(); + + protected SpActivityOffsetDay offsetDayInfos; + + protected SpActivity _spactivityRecord; + + private Dictionary> m_ActIDToCompleteSceneIDListDic = new Dictionary>(); + + public List GetFatherTask(List data) + { + List list = new List(); + for (int i = 0; i < data.Count; i++) + { + bool flag = data[i].tasktype == 1u; + if (flag) + { + list.Add(data[i]); + } + } + return list; + } + + public List GetSonTask(List data, SuperActivityTask.RowData fatherTask) + { + uint taskid = fatherTask.taskid; + List list = new List(); + for (int i = 0; i < data.Count; i++) + { + bool flag = data[i].taskfather == taskid; + if (flag) + { + list.Add(data[i]); + } + } + return list; + } + + public List GetDataByActivityType(uint aType) + { + List list = new List(); + for (int i = 0; i < XTempActivityDocument._superActivityTaskTable.Table.Length; i++) + { + bool flag = XTempActivityDocument._superActivityTaskTable.Table[i].actid == aType; + if (flag) + { + list.Add(XTempActivityDocument._superActivityTaskTable.Table[i]); + } + } + return list; + } + + public SuperActivityTask.RowData GetDataByActivityByTypeID(uint aType, uint taskid) + { + for (int i = 0; i < XTempActivityDocument._superActivityTaskTable.Table.Length; i++) + { + SuperActivityTask.RowData rowData = XTempActivityDocument._superActivityTaskTable.Table[i]; + bool flag = rowData.actid == aType && rowData.taskid == taskid; + if (flag) + { + return rowData; + } + } + return null; + } + + public SuperActivityTime.RowData GetDataByActivityID(uint actID) + { + for (int i = 0; i < XTempActivityDocument._superActivityTimeTable.Table.Length; i++) + { + SuperActivityTime.RowData rowData = XTempActivityDocument._superActivityTimeTable.Table[i]; + bool flag = rowData.actid == actID; + if (flag) + { + return rowData; + } + } + return null; + } + + public SuperActivityTime.RowData GetDataBySystemID(uint systemid) + { + for (int i = 0; i < XTempActivityDocument._superActivityTimeTable.Table.Length; i++) + { + SuperActivityTime.RowData rowData = XTempActivityDocument._superActivityTimeTable.Table[i]; + bool flag = rowData.systemid == systemid; + if (flag) + { + return rowData; + } + } + return null; + } + + public DateTime GetEndTime(uint actID) + { + return this.GetEndTime(this.GetDataByActivityID(actID), -1); + } + + public DateTime GetEndTime(SuperActivityTime.RowData data, int stage = -1) + { + bool flag = data == null; + DateTime result; + if (flag) + { + result = default(DateTime); + } + else + { + DateTime dateTime = new DateTime((int)(data.starttime / 10000u), (int)(data.starttime / 100u % 100u), (int)(data.starttime % 100u)); + dateTime = dateTime.AddHours(data.starthour); + bool flag2 = stage == -1; + if (flag2) + { + stage = data.timestage.Count; + } + for (int i = 0; i < stage; i++) + { + dateTime = dateTime.AddHours(data.timestage[i, 0]); + } + result = dateTime; + } + return result; + } + + public uint[] GetTaskListWithLevel(int level) + { + for (int i = 0; i < XTempActivityDocument._openServerActivity.Table.Length; i++) + { + bool flag = (ulong)XTempActivityDocument._openServerActivity.Table[i].ServerLevel == (ulong)((long)level); + if (flag) + { + return XTempActivityDocument._openServerActivity.Table[i].TaskIDs; + } + } + return null; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XTempActivityDocument.AsyncLoader.AddTask("Table/SuperActivity", XTempActivityDocument._superActivityTable, false); + XTempActivityDocument.AsyncLoader.AddTask("Table/SuperActivityTask", XTempActivityDocument._superActivityTaskTable, false); + XTempActivityDocument.AsyncLoader.AddTask("Table/SuperActivityTime", XTempActivityDocument._superActivityTimeTable, false); + XTempActivityDocument.AsyncLoader.AddTask("Table/OpenServerActivity", XTempActivityDocument._openServerActivity, false); + XTempActivityDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + this.InitActivityRecordFromServerData(arg.PlayerInfo.spActivityRecord); + WeekEndNestDocument.Doc.OfflineOpenSetTaskId(); + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void InitActivityRecordFromServerData(SpActivity spActivityRecord) + { + this.ActivityRecord = spActivityRecord; + } + + public void InitOffsetDayInfos(SpActivityOffsetDay data) + { + this.offsetDayInfos = data; + bool flag = this.offsetDayInfos == null; + if (!flag) + { + for (int i = 0; i < this.offsetDayInfos.actid.Count; i++) + { + bool flag2 = this.offsetDayInfos.actid[i] > 200u; + if (flag2) + { + XOperatingActivityDocument.Doc.SealOffsetDayUpdate(); + } + SuperActivityTime.RowData dataByActivityID = this.GetDataByActivityID(this.offsetDayInfos.actid[i]); + bool flag3 = dataByActivityID != null; + if (flag3) + { + bool flag4 = dataByActivityID.systemid == 427u; + if (flag4) + { + XFlowerRankDocument specificDocument = XDocuments.GetSpecificDocument(XFlowerRankDocument.uuID); + specificDocument.RecordActivityPastTime(this.offsetDayInfos.offsettime[i], dataByActivityID.timestage); + } + bool flag5 = dataByActivityID.systemid == 771u; + if (flag5) + { + BiochemicalHellDogDocument specificDocument2 = XDocuments.GetSpecificDocument(BiochemicalHellDogDocument.uuID); + specificDocument2.RecordActivityPastTime(this.offsetDayInfos.offsettime[i], dataByActivityID.timestage); + } + bool flag6 = dataByActivityID.systemid == 614u; + if (flag6) + { + XCampDuelDocument.Doc.RecordActivityPastTime(this.offsetDayInfos.offsettime[i], dataByActivityID.timestage); + } + } + } + } + } + + public void UpdateOffsetDayInfos(uint actid, uint state) + { + bool flag = state == 0u; + if (flag) + { + this.offsetDayInfos.actid.Add(actid); + this.offsetDayInfos.offsetday.Add(0); + bool flag2 = actid > 200u; + if (flag2) + { + XOperatingActivityDocument.Doc.CurSealActID = actid; + } + } + else + { + bool flag3 = state == 1u; + if (flag3) + { + int num = this.offsetDayInfos.actid.IndexOf(actid); + bool flag4 = num >= 0; + if (flag4) + { + this.offsetDayInfos.actid.RemoveAt(num); + this.offsetDayInfos.offsetday.RemoveAt(num); + bool flag5 = actid > 200u; + if (flag5) + { + XOperatingActivityDocument.Doc.CurSealActID = 0u; + } + } + } + } + } + + public uint GetCrushingSealActid() + { + bool flag = this.offsetDayInfos == null; + uint result; + if (flag) + { + result = 0u; + } + else + { + for (int i = 0; i < this.offsetDayInfos.actid.Count; i++) + { + bool flag2 = this.offsetDayInfos.actid[i] > 200u; + if (flag2) + { + return this.offsetDayInfos.actid[i]; + } + } + result = 0u; + } + return result; + } + + public SpActivityOne GetActivity(uint actid) + { + bool flag = this.ActivityRecord != null && this.ActivityRecord.spActivity.Count > 0; + if (flag) + { + for (int i = 0; i < this.ActivityRecord.spActivity.Count; i++) + { + bool flag2 = this.ActivityRecord.spActivity[i].actid == actid; + if (flag2) + { + return this.ActivityRecord.spActivity[i]; + } + } + } + return null; + } + + public uint GetActivityState(uint actid, uint taskid) + { + bool flag = this.ActivityRecord != null && this.ActivityRecord.spActivity.Count > 0; + if (flag) + { + for (int i = 0; i < this.ActivityRecord.spActivity.Count; i++) + { + SpActivityOne spActivityOne = this.ActivityRecord.spActivity[i]; + bool flag2 = spActivityOne.actid == actid; + if (flag2) + { + for (int j = 0; j < spActivityOne.task.Count; j++) + { + bool flag3 = spActivityOne.task[j].taskid == taskid; + if (flag3) + { + return spActivityOne.task[j].state; + } + } + } + } + } + return 0u; + } + + public uint GetActivityProgress(uint actid, uint taskid) + { + bool flag = this.ActivityRecord != null && this.ActivityRecord.spActivity.Count > 0; + if (flag) + { + for (int i = 0; i < this.ActivityRecord.spActivity.Count; i++) + { + SpActivityOne spActivityOne = this.ActivityRecord.spActivity[i]; + bool flag2 = spActivityOne.actid == actid; + if (flag2) + { + for (int j = 0; j < spActivityOne.task.Count; j++) + { + bool flag3 = spActivityOne.task[j].taskid == taskid; + if (flag3) + { + return spActivityOne.task[j].progress; + } + } + } + } + } + return 0u; + } + + public SpActivityTask GetActivityTaskInfo(uint actid, uint taskid) + { + bool flag = this.ActivityRecord != null && this.ActivityRecord.spActivity.Count > 0; + if (flag) + { + for (int i = 0; i < this.ActivityRecord.spActivity.Count; i++) + { + SpActivityOne spActivityOne = this.ActivityRecord.spActivity[i]; + bool flag2 = spActivityOne.actid == actid; + if (flag2) + { + for (int j = 0; j < spActivityOne.task.Count; j++) + { + bool flag3 = spActivityOne.task[j].taskid == taskid; + if (flag3) + { + return spActivityOne.task[j]; + } + } + } + } + } + return null; + } + + public SpActivityTask GetActivityTaskInfoByIndex(uint actid, int index) + { + bool flag = this.ActivityRecord != null && this.ActivityRecord.spActivity.Count > 0; + if (flag) + { + for (int i = 0; i < this.ActivityRecord.spActivity.Count; i++) + { + SpActivityOne spActivityOne = this.ActivityRecord.spActivity[i]; + bool flag2 = spActivityOne.actid == actid; + if (flag2) + { + bool flag3 = index < spActivityOne.task.Count; + if (flag3) + { + return spActivityOne.task[index]; + } + } + } + } + return null; + } + + public void SortActivityTaskByType(uint actid) + { + List activityTaskListByType = this.GetActivityTaskListByType(actid); + bool flag = activityTaskListByType != null; + if (flag) + { + activityTaskListByType.Sort(new Comparison(this.SortActivityTask)); + } + } + + public int GetActivityTaskCountByType(uint type) + { + bool flag = this.ActivityRecord != null && this.ActivityRecord.spActivity.Count > 0; + if (flag) + { + for (int i = 0; i < this.ActivityRecord.spActivity.Count; i++) + { + SpActivityOne spActivityOne = this.ActivityRecord.spActivity[i]; + bool flag2 = spActivityOne.actid == type; + if (flag2) + { + return spActivityOne.task.Count; + } + } + } + return 0; + } + + public List GetActivityTaskListByType(uint type) + { + bool flag = this.ActivityRecord != null && this.ActivityRecord.spActivity.Count > 0; + if (flag) + { + for (int i = 0; i < this.ActivityRecord.spActivity.Count; i++) + { + SpActivityOne spActivityOne = this.ActivityRecord.spActivity[i]; + bool flag2 = spActivityOne.actid == type; + if (flag2) + { + return spActivityOne.task; + } + } + } + return null; + } + + public void UpdateActivityTaskState(uint actId, uint taskId, uint state, uint progress = 0u) + { + bool flag = this.ActivityRecord == null; + if (!flag) + { + bool flag2 = true; + for (int i = 0; i < this.ActivityRecord.spActivity.Count; i++) + { + SpActivityOne spActivityOne = this.ActivityRecord.spActivity[i]; + bool flag3 = spActivityOne.actid == actId; + if (flag3) + { + flag2 = false; + bool flag4 = true; + for (int j = 0; j < spActivityOne.task.Count; j++) + { + bool flag5 = spActivityOne.task[j].taskid == taskId; + if (flag5) + { + flag4 = false; + spActivityOne.task[j].state = state; + spActivityOne.task[j].progress = progress; + } + } + bool flag6 = flag4; + if (flag6) + { + spActivityOne.task.Add(new SpActivityTask + { + taskid = taskId, + progress = progress, + state = state + }); + } + } + } + bool flag7 = flag2; + if (flag7) + { + SpActivityOne spActivityOne2 = new SpActivityOne(); + spActivityOne2.actid = actId; + spActivityOne2.task.Add(new SpActivityTask + { + taskid = taskId, + progress = progress, + state = state + }); + this.ActivityRecord.spActivity.Add(spActivityOne2); + } + XActivityTaskUpdatedArgs @event = XEventPool.GetEvent(); + @event.xActID = actId; + @event.xTaskID = taskId; + @event.xState = state; + @event.xProgress = progress; + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + } + + public int GetRemainDays(uint actID) + { + int result = 1; + XLevelSealDocument specificDocument = XDocuments.GetSpecificDocument(XLevelSealDocument.uuID); + uint sealType = specificDocument.GetSealType(); + LevelSealTypeTable.RowData levelSealType = XLevelSealDocument.GetLevelSealType(sealType); + int num = (int)(levelSealType.Time / 24u); + for (int i = 0; i < this.offsetDayInfos.actid.Count; i++) + { + bool flag = actID == this.offsetDayInfos.actid[i]; + if (flag) + { + result = Mathf.Max(1, num - this.offsetDayInfos.offsetday[i]); + } + } + return result; + } + + public bool GetActivityAwards(uint actid, uint taskid) + { + RpcC2G_GetSpActivityReward rpcC2G_GetSpActivityReward = new RpcC2G_GetSpActivityReward(); + rpcC2G_GetSpActivityReward.oArg.actid = actid; + rpcC2G_GetSpActivityReward.oArg.taskid = taskid; + XSingleton.singleton.Send(rpcC2G_GetSpActivityReward); + return true; + } + + private int SortActivityTask(SpActivityTask x, SpActivityTask y) + { + bool flag = x.state == 1u && y.state != 1u; + int result; + if (flag) + { + result = -1; + } + else + { + bool flag2 = x.state != 1u && y.state == 1u; + if (flag2) + { + result = 1; + } + else + { + bool flag3 = x.state != y.state; + if (flag3) + { + result = (int)(x.state - y.state); + } + else + { + result = (int)(x.taskid - y.taskid); + } + } + } + return result; + } + + public List GetActivityCompleteScene(uint actid) + { + List list; + bool flag = !this.m_ActIDToCompleteSceneIDListDic.TryGetValue(actid, out list); + if (flag) + { + list = new List(); + SpActivityOne activity = this.GetActivity(actid); + bool flag2 = activity == null || activity.theme == null; + if (flag2) + { + return list; + } + for (int i = 0; i < activity.theme.firstscene.Count; i++) + { + for (int j = 0; j < activity.theme.firstscene[i].sceneid.Count; j++) + { + list.Add(activity.theme.firstscene[i].sceneid[j]); + } + } + this.m_ActIDToCompleteSceneIDListDic[actid] = list; + } + return list; + } + + public void SetActivityCompleteScene(uint actid, List scene) + { + List list = new List(); + for (int i = 0; i < scene.Count; i++) + { + for (int j = 0; j < scene[i].sceneid.Count; j++) + { + list.Add(scene[i].sceneid[j]); + } + } + this.m_ActIDToCompleteSceneIDListDic[actid] = list; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTempActivityDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XTempActivityDocument.cs.meta new file mode 100644 index 00000000..f8ba744f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTempActivityDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae46575d029286d4f899438a235373d0 +timeCreated: 1611404339 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTerritoryComponent.cs b/Client/Assets/Scripts/XMainClient/XTerritoryComponent.cs new file mode 100644 index 00000000..875f35ba --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTerritoryComponent.cs @@ -0,0 +1,240 @@ +using System; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTerritoryComponent : XComponent + { + public override uint ID + { + get + { + return XTerritoryComponent.uuID; + } + } + + public static string B_TEMPLATE = "UI/Billboard/Territorybubble"; + + public new static readonly uint uuID = XSingleton.singleton.XHash("XTerritoryComponent"); + + private XBillboardComponent bbComp; + + public XTerritoryComponent.State state = XTerritoryComponent.State.None; + + private float tick_start = 0f; + + private float tick_cnt = 5f; + + private GameObject _bboard = null; + + private IXUILabel _label; + + private IXUISprite _spr; + + private IXUISlider _slider; + + private uint _timer = 0u; + + private bool _inited = false; + + public enum State + { + Start, + Doing, + End, + Break, + None + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._inited = false; + } + + private void Init() + { + this._bboard = XSingleton.singleton.CreateFromPrefab(XTerritoryComponent.B_TEMPLATE, this._entity.EngineObject.Position, this._entity.EngineObject.Rotation, true, false); + this._bboard.name = this._entity.ID.ToString(); + this._label = (this._bboard.transform.Find("chattext/text").GetComponent("XUILabel") as IXUILabel); + this._slider = (this._bboard.transform.Find("chattext/slider").GetComponent("XUISlider") as IXUISlider); + this._spr = (this._bboard.transform.Find("chattext/p").GetComponent("XUISprite") as IXUISprite); + this._inited = true; + } + + public override void OnDetachFromHost() + { + bool flag = this._timer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._timer); + } + this._inited = false; + this.DestroyGameObjects(); + base.OnDetachFromHost(); + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = !this._inited; + if (!flag) + { + bool flag2 = this.state == XTerritoryComponent.State.Start; + if (flag2) + { + this.OnStart(); + } + else + { + bool flag3 = this.state == XTerritoryComponent.State.Break; + if (flag3) + { + this.OnBreak(); + } + else + { + bool flag4 = this.state == XTerritoryComponent.State.Doing; + if (flag4) + { + this.OnDoing(); + } + else + { + bool flag5 = this.state == XTerritoryComponent.State.End; + if (flag5) + { + this.OnEnd(); + } + } + } + } + } + } + + public override void PostUpdate(float fDeltaT) + { + bool flag = this._host == null; + if (!flag) + { + XEntity xentity = this._host as XEntity; + bool flag2 = xentity == null || this._bboard == null || !this._inited || XSingleton.singleton.GameCamera != null; + if (!flag2) + { + this._bboard.transform.rotation = XSingleton.singleton.GameCamera.Rotaton; + } + } + } + + protected void DestroyGameObjects() + { + XResourceLoaderMgr.SafeDestroy(ref this._bboard, true); + } + + private void SetBillBoardDepth(float dis = 0f) + { + int num = -(int)(dis * 100f); + bool flag = this._label != null && this._spr != null; + if (flag) + { + this._label.spriteDepth = num + 1; + this._spr.spriteDepth = num; + } + } + + public void ToStart() + { + bool flag = !this._inited; + if (flag) + { + this.Init(); + } + this.bbComp = this._entity.BillBoard; + bool flag2 = this.bbComp != null; + if (flag2) + { + this.bbComp.AttachChild(this._bboard.transform, false, 60f); + } + bool flag3 = this._bboard != null; + if (flag3) + { + this._bboard.SetActive(true); + } + this.tick_start = Time.time; + this.state = XTerritoryComponent.State.Start; + } + + public void Interupt() + { + bool flag = !this._inited; + if (!flag) + { + this.state = XTerritoryComponent.State.Break; + } + } + + public void Success() + { + this.state = XTerritoryComponent.State.End; + } + + private void Fadeout(object o) + { + bool flag = !this._inited; + if (!flag) + { + bool flag2 = this.bbComp != null; + if (flag2) + { + bool flag3 = this.bbComp.UnAttachChild(this._bboard.transform); + if (flag3) + { + this._bboard.SetActive(false); + } + } + } + } + + private void OnStart() + { + XSingleton.singleton.KillTimer(this._timer); + this.state = XTerritoryComponent.State.Doing; + this._slider.Value = 0f; + this._label.SetText(XStringDefineProxy.GetString("Territory_Doing")); + } + + private void OnBreak() + { + this._label.SetText(XStringDefineProxy.GetString("Territory_break")); + this.state = XTerritoryComponent.State.None; + this._timer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.Fadeout), null); + } + + private void OnDoing() + { + bool flag = Time.time - this.tick_start >= this.tick_cnt; + if (flag) + { + this.state = XTerritoryComponent.State.None; + this._timer = XSingleton.singleton.SetTimer(4f, new XTimerMgr.ElapsedEventHandler(this.Fadeout), null); + } + else + { + bool flag2 = this._slider != null; + if (flag2) + { + this._slider.Value = (Time.time - this.tick_start) / this.tick_cnt; + } + } + } + + private void OnEnd() + { + this._label.SetText(XStringDefineProxy.GetString("Territory_success")); + this.state = XTerritoryComponent.State.None; + this._timer = XSingleton.singleton.SetTimer(1f, new XTimerMgr.ElapsedEventHandler(this.Fadeout), null); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTerritoryComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XTerritoryComponent.cs.meta new file mode 100644 index 00000000..531944db --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTerritoryComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c0a04af2255b48a4c93a190c194a1af3 +timeCreated: 1611404487 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XThemeActivityBehaviour.cs b/Client/Assets/Scripts/XMainClient/XThemeActivityBehaviour.cs new file mode 100644 index 00000000..dd31db92 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XThemeActivityBehaviour.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XThemeActivityBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public Transform m_tabParent; + + public Transform m_rightTra; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + Transform transform = base.transform.Find("Bg/padTabs/Grid/TabTpl"); + this.m_TabPool.SetupPool(transform.parent.gameObject, transform.gameObject, 2u, false); + this.m_tabParent = base.transform.Find("Bg/padTabs/Grid"); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_rightTra = base.transform.Find("Bg/Right"); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XThemeActivityBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XThemeActivityBehaviour.cs.meta new file mode 100644 index 00000000..c51db87b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XThemeActivityBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1f259d058aa04c343b5261396c2e1a89 +timeCreated: 1611403400 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XThemeActivityDocument.cs b/Client/Assets/Scripts/XMainClient/XThemeActivityDocument.cs new file mode 100644 index 00000000..343d8ff9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XThemeActivityDocument.cs @@ -0,0 +1,286 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XThemeActivityDocument : XDocComponent + { + public override uint ID + { + get + { + return XThemeActivityDocument.uuID; + } + } + + public static ThemeActivity ThemeActivityTable + { + get + { + return XThemeActivityDocument.m_ThemeActivityTable; + } + } + + public static XThemeActivityDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XThemeActivityDocument.uuID) as XThemeActivityDocument; + } + } + + public XThemeActivityView View { get; set; } + + public HashSet systemIds + { + get + { + bool flag = this.m_systemIds == null || this.m_systemIds.Count == 0; + if (flag) + { + this.m_systemIds = new HashSet(); + for (int i = 0; i < XThemeActivityDocument.m_ThemeActivityTable.Table.Length; i++) + { + bool flag2 = XThemeActivityDocument.m_ThemeActivityTable.Table[i] != null; + if (flag2) + { + this.m_systemIds.Add(XThemeActivityDocument.m_ThemeActivityTable.Table[i].SysID); + } + } + } + return this.m_systemIds; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XThemeActivityDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ThemeActivity m_ThemeActivityTable = new ThemeActivity(); + + private HashSet m_systemIds; + + private Dictionary m_SysFirstRedPointDic = new Dictionary(); + + public bool GetSysFirstRedPoint(XSysDefine sys) + { + bool flag2; + bool flag = this.m_SysFirstRedPointDic.TryGetValue(sys, out flag2); + bool result; + if (flag) + { + result = flag2; + } + else + { + SuperActivityTime.RowData dataBySystemID = XTempActivityDocument.Doc.GetDataBySystemID((uint)sys); + bool flag3 = dataBySystemID == null; + if (flag3) + { + result = false; + } + else + { + SpActivityOne activity = XTempActivityDocument.Doc.GetActivity(dataBySystemID.actid); + bool flag4 = activity == null || activity.theme == null; + if (flag4) + { + result = false; + } + else + { + this.m_SysFirstRedPointDic[sys] = activity.theme.ishint; + result = activity.theme.ishint; + } + } + } + return result; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XThemeActivityDocument.AsyncLoader.AddTask("Table/ThemeActivity", XThemeActivityDocument.m_ThemeActivityTable, false); + XThemeActivityDocument.AsyncLoader.Execute(callback); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.GetSceneType(XSingleton.singleton.SceneID) == SceneType.SCENE_HALL; + if (flag) + { + this.RefreshRedPoints(); + } + } + + public bool SysIsOpen(XSysDefine sys) + { + return XSingleton.singleton.IsSystemOpened(sys); + } + + public bool isHasHallIcon() + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_ThemeActivity); + bool result; + if (flag) + { + result = false; + } + else + { + for (int i = 0; i < XThemeActivityDocument.ThemeActivityTable.Table.Length; i++) + { + ThemeActivity.RowData rowData = XThemeActivityDocument.ThemeActivityTable.Table[i]; + XSysDefine sysID = (XSysDefine)rowData.SysID; + bool flag2 = this.SysIsOpen(sysID); + if (flag2) + { + return true; + } + } + result = false; + } + return result; + } + + public bool IsHadRedPoint() + { + for (int i = 0; i < XThemeActivityDocument.ThemeActivityTable.Table.Length; i++) + { + ThemeActivity.RowData rowData = XThemeActivityDocument.ThemeActivityTable.Table[i]; + XSysDefine sysID = (XSysDefine)rowData.SysID; + bool flag = this.SysIsOpen(sysID); + if (flag) + { + bool tabRedPointState = this.GetTabRedPointState(sysID); + if (tabRedPointState) + { + XSingleton.singleton.AddGreenLog("ThemeActivity RedPoint:" + sysID.ToString(), null, null, null, null, null); + return true; + } + } + } + return false; + } + + public void RefreshRedPoints() + { + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_ThemeActivity, true); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshRedpoint(); + } + } + + public bool GetTabRedPointState(XSysDefine sys) + { + bool result; + if (sys != XSysDefine.XSys_ThemeActivity_HellDog) + { + if (sys != XSysDefine.XSys_ThemeActivity_MadDuck) + { + result = XSingleton.singleton.GetSysRedPointState(sys); + } + else + { + MadDuckSiegeDocument specificDocument = XDocuments.GetSpecificDocument(MadDuckSiegeDocument.uuID); + result = (this.GetSysFirstRedPoint(sys) | specificDocument.GetRedPoint()); + } + } + else + { + BiochemicalHellDogDocument specificDocument2 = XDocuments.GetSpecificDocument(BiochemicalHellDogDocument.uuID); + result = (this.GetSysFirstRedPoint(sys) | specificDocument2.GetRedPoint()); + } + return result; + } + + public void OnSystemChanged(List openIds, List closeIds) + { + bool flag = !DlgBase.singleton.IsVisible(); + if (!flag) + { + int num = 0; + bool flag2 = this.systemIds != null; + if (flag2) + { + for (int i = 0; i < openIds.Count; i++) + { + bool flag3 = this.systemIds.Contains(openIds[i]); + if (flag3) + { + num = 1; + break; + } + } + for (int j = 0; j < closeIds.Count; j++) + { + bool flag4 = this.systemIds.Contains(closeIds[j]); + if (flag4) + { + bool flag5 = num == 1; + if (flag5) + { + num = 3; + } + else + { + num = 2; + } + break; + } + } + } + bool flag6 = num == 0; + if (!flag6) + { + bool flag7 = num == 1; + if (flag7) + { + DlgBase.singleton.RefreshChangeUI(null); + } + else + { + DlgBase.singleton.RefreshChangeUI(closeIds); + } + } + } + } + + public void SendJoinScene(uint actid, uint sceneid) + { + RpcC2G_TactEnterScene rpcC2G_TactEnterScene = new RpcC2G_TactEnterScene(); + rpcC2G_TactEnterScene.oArg.actid = actid; + rpcC2G_TactEnterScene.oArg.sceneid = sceneid; + XSingleton.singleton.Send(rpcC2G_TactEnterScene); + } + + public void SendFirstHint(uint actid) + { + RpcC2G_ThemeActivityHint rpcC2G_ThemeActivityHint = new RpcC2G_ThemeActivityHint(); + rpcC2G_ThemeActivityHint.oArg.actid = actid; + XSingleton.singleton.Send(rpcC2G_ThemeActivityHint); + } + + public void SetActivityChange(PtcG2C_ThemeActivityChangeNtf roPtc) + { + SuperActivityTime.RowData dataByActivityID = XTempActivityDocument.Doc.GetDataByActivityID(roPtc.Data.actid); + bool flag = dataByActivityID == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("actid:" + roPtc.Data.actid + " No Find", null, null, null, null, null); + } + this.m_SysFirstRedPointDic[(XSysDefine)dataByActivityID.systemid] = roPtc.Data.ishint; + XTempActivityDocument.Doc.SetActivityCompleteScene(roPtc.Data.actid, roPtc.Data.scene); + this.RefreshRedPoints(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XThemeActivityDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XThemeActivityDocument.cs.meta new file mode 100644 index 00000000..efbacf20 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XThemeActivityDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 5f776a5f98080794da58a9e48cde4208 +timeCreated: 1611403829 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XThemeActivityView.cs b/Client/Assets/Scripts/XMainClient/XThemeActivityView.cs new file mode 100644 index 00000000..f134e298 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XThemeActivityView.cs @@ -0,0 +1,328 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XThemeActivityView : DlgBase + { + private XThemeActivityDocument doc + { + get + { + return XThemeActivityDocument.Doc; + } + } + + public override string fileName + { + get + { + return "GameSystem/ThemeActivity/ThemeActivityDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + private XSysDefine m_selectSys = XSysDefine.XSys_None; + + private DlgHandlerBase m_CurrHandler; + + public BiochemicalHellDogFrameHandler m_HellDogHandler; + + public MadDuckSiegeFrameHandler m_MadDuckHandler; + + public bool debug = false; + + private Dictionary m_TabsDic = new Dictionary(); + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnUnload() + { + DlgHandlerBase.EnsureUnload(ref this.m_HellDogHandler); + DlgHandlerBase.EnsureUnload(ref this.m_MadDuckHandler); + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.doc.View = this; + } + + protected override void OnHide() + { + base.OnHide(); + bool flag = this.m_TabsDic != null; + if (flag) + { + foreach (KeyValuePair keyValuePair in this.m_TabsDic) + { + bool flag2 = keyValuePair.Value != null; + if (flag2) + { + keyValuePair.Value.ForceSetFlag(false); + } + } + } + bool flag3 = this.m_CurrHandler != null; + if (flag3) + { + this.m_CurrHandler.SetVisible(false); + } + this.m_selectSys = XSysDefine.XSys_None; + this.doc.RefreshRedPoints(); + } + + public override int[] GetTitanBarItems() + { + return this.GetTitan(); + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshTabs(this.m_selectSys); + } + + public override void StackRefresh() + { + base.StackRefresh(); + bool flag = this.m_CurrHandler != null; + if (flag) + { + this.m_CurrHandler.StackRefresh(); + } + this.RefreshRedpoint(); + } + + public void RefreshChangeUI(List removeIds = null) + { + bool flag = removeIds != null; + if (flag) + { + bool flag2 = removeIds.Contains((uint)XFastEnumIntEqualityComparer.ToInt(this.m_selectSys)); + if (flag2) + { + this.m_selectSys = XSysDefine.XSys_None; + } + } + this.RefreshTabs(this.m_selectSys); + ILuaEngine xluaEngine = XSingleton.singleton.XLuaEngine; + xluaEngine.hotfixMgr.TryFixRefresh(HotfixMode.AFTER, base.luaFileName, base.uiBehaviour.gameObject); + } + + public void ShowPrefab(XSysDefine sys = XSysDefine.XSys_None) + { + bool flag = base.IsVisible(); + if (!flag) + { + this.m_selectSys = sys; + this.SetVisibleWithAnimation(true, null); + } + } + + private void RefreshTabs(XSysDefine system) + { + this.m_TabsDic.Clear(); + List list = new List(); + base.uiBehaviour.m_TabPool.FakeReturnAll(); + int num = 0; + for (int i = 0; i < XThemeActivityDocument.ThemeActivityTable.Table.Length; i++) + { + ThemeActivity.RowData rowData = XThemeActivityDocument.ThemeActivityTable.Table[i]; + XSysDefine sysID = (XSysDefine)rowData.SysID; + bool flag = this.debug || this.doc.SysIsOpen(sysID); + if (flag) + { + list.Add(sysID); + GameObject gameObject = base.uiBehaviour.m_TabPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_tabParent; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)base.uiBehaviour.m_TabPool.TplHeight * num), 0f); + IXUICheckBox ixuicheckBox = gameObject.transform.Find("Bg").GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.ID = (ulong)rowData.SysID; + this.InitTabInfo(ixuicheckBox.gameObject, rowData.TabName, rowData.TabIcon); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClicked)); + ixuicheckBox.ForceSetFlag(false); + this.m_TabsDic.Add(sysID, ixuicheckBox); + num++; + } + } + base.uiBehaviour.m_TabPool.ActualReturnAll(false); + this.SelectDefaultTab(list, system); + this.RefreshRedpoint(); + } + + private void InitTabInfo(GameObject tab, string tabName, string tabIcon) + { + IXUILabel ixuilabel = tab.transform.Find("TextLabel").GetComponent("XUILabel") as IXUILabel; + IXUILabel ixuilabel2 = tab.transform.Find("SelectedTextLabel").GetComponent("XUILabel") as IXUILabel; + GameObject gameObject = tab.transform.Find("RedPoint").gameObject; + IXUISprite ixuisprite = tab.transform.Find("P").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = tab.transform.Find("Selected/P").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(tabName); + ixuilabel2.SetText(tabName); + gameObject.SetActive(false); + ixuisprite.SetSprite(tabIcon); + ixuisprite2.SetSprite(tabIcon); + } + + private void SelectDefaultTab(List listOpen, XSysDefine sys) + { + bool flag = this.m_TabsDic.ContainsKey(sys); + if (flag) + { + this.m_TabsDic[sys].bChecked = true; + } + else + { + bool flag2 = sys == XSysDefine.XSys_None; + if (flag2) + { + for (int i = 0; i < listOpen.Count; i++) + { + bool flag3 = !this.doc.GetTabRedPointState(listOpen[i]); + if (!flag3) + { + this.m_TabsDic[listOpen[i]].bChecked = true; + return; + } + } + } + bool flag4 = listOpen.Count > 0; + if (flag4) + { + this.m_TabsDic[listOpen[0]].bChecked = true; + } + } + } + + public void RefreshRedpoint() + { + foreach (KeyValuePair keyValuePair in this.m_TabsDic) + { + bool flag = keyValuePair.Value.IsVisible(); + if (flag) + { + GameObject gameObject = keyValuePair.Value.gameObject.transform.Find("RedPoint").gameObject; + gameObject.SetActive(this.doc.GetTabRedPointState(keyValuePair.Key)); + } + } + } + + private void SetupHandlers(XSysDefine sys) + { + this.m_selectSys = sys; + SuperActivityTime.RowData dataBySystemID = XTempActivityDocument.Doc.GetDataBySystemID((uint)sys); + bool sysFirstRedPoint = this.doc.GetSysFirstRedPoint(sys); + if (sysFirstRedPoint) + { + this.doc.SendFirstHint(dataBySystemID.actid); + } + XSysDefine xsysDefine = sys; + if (xsysDefine != XSysDefine.XSys_ThemeActivity_HellDog) + { + if (xsysDefine != XSysDefine.XSys_ThemeActivity_MadDuck) + { + this.m_CurrHandler = null; + XSingleton.singleton.AddLog("System may be implemented in lua:", sys.ToString(), null, null, null, null, XDebugColor.XDebug_None); + return; + } + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_MadDuckHandler, base.uiBehaviour.m_rightTra, false, this); + } + else + { + this.m_CurrHandler = DlgHandlerBase.EnsureCreate(ref this.m_HellDogHandler, base.uiBehaviour.m_rightTra, false, this); + } + DlgBase.singleton.SetTitanItems(this.GetTitan()); + } + + public bool OnTabClicked(IXUICheckBox checkbox) + { + bool flag = !checkbox.bChecked; + return !flag && this.RefreshUI((XSysDefine)checkbox.ID); + } + + private bool RefreshUI(XSysDefine sys) + { + bool flag = this.m_CurrHandler != null; + if (flag) + { + this.m_CurrHandler.SetVisible(false); + } + this.SetupHandlers(sys); + bool flag2 = this.m_CurrHandler != null; + if (flag2) + { + this.m_CurrHandler.SetVisible(true); + } + return true; + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public int[] GetTitan() + { + int[] result = null; + XSysDefine selectSys = this.m_selectSys; + if (selectSys == XSysDefine.XSys_ThemeActivity_MadDuck) + { + result = new int[] + { + int.Parse(MadDuckSiegeDocument.Doc.cost[0]) + }; + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XThemeActivityView.cs.meta b/Client/Assets/Scripts/XMainClient/XThemeActivityView.cs.meta new file mode 100644 index 00000000..93544727 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XThemeActivityView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3b901f0426121514996bcb3c387af820 +timeCreated: 1611403599 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTimeProfiler.cs b/Client/Assets/Scripts/XMainClient/XTimeProfiler.cs new file mode 100644 index 00000000..de1faf83 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTimeProfiler.cs @@ -0,0 +1,53 @@ +using System; + +namespace XMainClient +{ + internal class XTimeProfiler + { + private int _timeLimit; + + private int _start; + + private XTimeoutHandler _handler; + + private static XTimeProfiler _Instance; + + public static XTimeProfiler getLogProfiler(int timeLimit, string message) + { + bool flag = XTimeProfiler._Instance == null; + if (flag) + { + XTimeoutLogHandler handler = new XTimeoutLogHandler(); + XTimeProfiler._Instance = new XTimeProfiler(timeLimit); + XTimeProfiler._Instance.SetHandler(handler); + } + else + { + XTimeProfiler._Instance._timeLimit = timeLimit; + } + (XTimeProfiler._Instance._handler as XTimeoutLogHandler).Message = message; + return XTimeProfiler._Instance; + } + + public XTimeProfiler(int timeLimit) + { + this._timeLimit = timeLimit; + this._start = 0; + this._handler = null; + } + + public void SetHandler(XTimeoutHandler handler) + { + this._handler = handler; + } + + public void Begin() + { + this._start = Environment.TickCount; + } + + public void End() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTimeProfiler.cs.meta b/Client/Assets/Scripts/XMainClient/XTimeProfiler.cs.meta new file mode 100644 index 00000000..19db086e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTimeProfiler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4e8b9e340e06ad445901a53a50791a7b +timeCreated: 1611403698 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTimeoutHandler.cs b/Client/Assets/Scripts/XMainClient/XTimeoutHandler.cs new file mode 100644 index 00000000..ebc848fe --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTimeoutHandler.cs @@ -0,0 +1,9 @@ +using System; + +namespace XMainClient +{ + internal interface XTimeoutHandler + { + void OnReport(int limit, int used); + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTimeoutHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XTimeoutHandler.cs.meta new file mode 100644 index 00000000..3d7b1f58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTimeoutHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: af6f9622f25c96648a9ab2c75ec5bd15 +timeCreated: 1611404344 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTimeoutLogHandler.cs b/Client/Assets/Scripts/XMainClient/XTimeoutLogHandler.cs new file mode 100644 index 00000000..239bc0fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTimeoutLogHandler.cs @@ -0,0 +1,15 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTimeoutLogHandler : XTimeoutHandler + { + public string Message; + + public void OnReport(int limit, int used) + { + XSingleton.singleton.AddLog(this.Message, " used: ", used.ToString(), " limit: ", limit.ToString(), " ms", XDebugColor.XDebug_None); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTimeoutLogHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XTimeoutLogHandler.cs.meta new file mode 100644 index 00000000..808defab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTimeoutLogHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 7884db30e07ed2945958ea9954f75063 +timeCreated: 1611403980 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTitleBar.cs b/Client/Assets/Scripts/XMainClient/XTitleBar.cs new file mode 100644 index 00000000..bd155c41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTitleBar.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; + +namespace XMainClient +{ + internal class XTitleBar : DlgHandlerBase + { + private List m_TitleButtons = new List(); + + private Transform m_SortArrow; + + private Transform m_SortArrowDir; + + private TitleClickEventHandler m_TitleClickEventHandler; + + protected override void Init() + { + base.Init(); + for (int i = 0; i <= 20; i++) + { + Transform transform = base.PanelObject.transform.Find("Title" + i); + bool flag = transform == null; + if (!flag) + { + IXUILabel ixuilabel = transform.GetComponent("XUILabel") as IXUILabel; + ixuilabel.ID = (ulong)((long)i); + this.m_TitleButtons.Add(ixuilabel); + } + } + this.m_SortArrow = base.PanelObject.transform.Find("Sort"); + this.m_SortArrowDir = this.m_SortArrow.Find("Arrow"); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + for (int i = 0; i < this.m_TitleButtons.Count; i++) + { + IXUIButton ixuibutton = this.m_TitleButtons[i].gameObject.transform.Find("Button").GetComponent("XUIButton") as IXUIButton; + bool flag = ixuibutton == null; + if (!flag) + { + ixuibutton.RegisterClickEventHandler(new ButtonClickEventHandler(this._OnTitleClicked)); + } + } + } + + public void RegisterClickEventHandler(TitleClickEventHandler handler) + { + this.m_TitleClickEventHandler = handler; + } + + public void Refresh(ulong selectedID) + { + IXUILabel title = null; + for (int i = 0; i < this.m_TitleButtons.Count; i++) + { + bool flag = this.m_TitleButtons[i].ID == selectedID; + if (flag) + { + title = this.m_TitleButtons[i]; + break; + } + } + this._SetTitleSelect(title); + } + + private bool _OnTitleClicked(IXUIButton btn) + { + IXUILabel ixuilabel = btn.gameObject.transform.parent.GetComponent("XUILabel") as IXUILabel; + this._SetTitleSelect(ixuilabel); + bool flag = this.m_TitleClickEventHandler != null; + if (flag) + { + this.SetArrowDir(this.m_TitleClickEventHandler(ixuilabel.ID)); + } + return true; + } + + private void _SetTitleSelect(IXUILabel title) + { + this._SetSortArrow(title); + } + + private void _SetSortArrow(IXUILabel title) + { + bool flag = title != null; + if (flag) + { + this.m_SortArrow.gameObject.SetActive(true); + this.m_SortArrow.parent = title.gameObject.transform; + this.m_SortArrow.localPosition = new Vector3((float)(title.spriteWidth / 2), 0f); + } + else + { + this.m_SortArrow.gameObject.SetActive(false); + } + } + + public void SetArrowDir(bool bDirUp) + { + this.m_SortArrowDir.localRotation = Quaternion.Euler(0f, 0f, (float)(bDirUp ? -90 : 90)); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTitleBar.cs.meta b/Client/Assets/Scripts/XMainClient/XTitleBar.cs.meta new file mode 100644 index 00000000..f666b837 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTitleBar.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a52f628b0e74fa445a7a43ae0370d3b1 +timeCreated: 1611404285 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTitleDocument.cs b/Client/Assets/Scripts/XMainClient/XTitleDocument.cs new file mode 100644 index 00000000..66ba5472 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTitleDocument.cs @@ -0,0 +1,295 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTitleDocument : XDocComponent + { + public TitleDlg TitleView { get; set; } + + public static uint TitleMaxLevel { get; private set; } + + public bool bEnableTitleLevelUp + { + get + { + return this.m_enableTitleLevelUp; + } + set + { + this.m_enableTitleLevelUp = value; + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Title, true); + } + } + + public bool bAvaibleTitleIcon + { + get + { + return XSingleton.singleton.IsSystemOpen(XFastEnumIntEqualityComparer.ToInt(XSysDefine.XSys_Title)); + } + } + + public override uint ID + { + get + { + return XTitleDocument.uuID; + } + } + + public uint CurrentTitleID + { + get + { + return XSingleton.singleton.XPlayerData.TitleID; + } + } + + public TitleTable.RowData CurrentTitle + { + get + { + return XTitleDocument.GetTitle(this.CurrentTitleID); + } + } + + public bool IsMax + { + get + { + return XTitleDocument.TitleMaxLevel <= this.CurrentTitleID; + } + } + + public TitleTable.RowData NextTitle + { + get + { + bool flag = this.CurrentTitleID >= XTitleDocument.TitleMaxLevel; + TitleTable.RowData result; + if (flag) + { + result = null; + } + else + { + result = XTitleDocument.GetTitle(this.CurrentTitleID + 1u); + } + return result; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XTitleDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static TitleTable m_TitleTable = new TitleTable(); + + public static int TITLE_FRAME_RATE = 10; + + private static Dictionary> m_cacheTitles = new Dictionary>(); + + private bool m_enableTitleLevelUp = false; + + public static string GetTitleWithFormat(uint titleID, string name) + { + string text = name; + bool flag = titleID > 0u; + if (flag) + { + TitleTable.RowData title = XTitleDocument.GetTitle(titleID); + bool flag2 = title != null; + if (flag2) + { + text = XSingleton.singleton.StringCombine(XLabelSymbolHelper.FormatAnimation(title.RankAtlas, title.RankIcon, 10), text); + } + } + return text; + } + + public static TitleTable.RowData GetTitle(uint titleID) + { + Dictionary dictionary; + bool flag = XTitleDocument.m_cacheTitles.TryGetValue(XItemDrawerParam.DefaultProfession, out dictionary); + if (flag) + { + TitleTable.RowData result; + bool flag2 = dictionary.TryGetValue(titleID, out result); + if (flag2) + { + return result; + } + } + return null; + } + + public bool TryGetTitle(uint titleID, out TitleTable.RowData rowData) + { + rowData = XTitleDocument.GetTitle(titleID); + return rowData != null; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public static void Execute(OnLoadedCallback callback = null) + { + XTitleDocument.AsyncLoader.AddTask("Table/TitleTable", XTitleDocument.m_TitleTable, false); + XTitleDocument.AsyncLoader.Execute(callback); + XTitleDocument.m_cacheTitles.Clear(); + } + + public static void OnTableLoaded() + { + int i = 0; + int num = XTitleDocument.m_TitleTable.Table.Length; + while (i < num) + { + Dictionary dictionary; + bool flag = !XTitleDocument.m_cacheTitles.TryGetValue(XTitleDocument.m_TitleTable.Table[i].BasicProfession, out dictionary); + if (flag) + { + dictionary = new Dictionary(); + XTitleDocument.m_cacheTitles.Add(XTitleDocument.m_TitleTable.Table[i].BasicProfession, dictionary); + } + dictionary.Add(XTitleDocument.m_TitleTable.Table[i].RankID, XTitleDocument.m_TitleTable.Table[i]); + XTitleDocument.TitleMaxLevel = Math.Max(XTitleDocument.m_TitleTable.Table[i].RankID, XTitleDocument.TitleMaxLevel); + i++; + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_VirtualItemChanged, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_ItemChangeFinished, new XComponent.XEventHandler(this.OnVirtualItemChanged)); + base.RegisterEvent(XEventDefine.XEvent_AttributeChange, new XComponent.XEventHandler(this.OnAttributeChange)); + } + + private bool OnAttributeChange(XEventArgs e) + { + bool flag = !this.bAvaibleTitleIcon; + bool result; + if (flag) + { + result = false; + } + else + { + XAttrChangeEventArgs xattrChangeEventArgs = e as XAttrChangeEventArgs; + bool flag2 = xattrChangeEventArgs.AttrKey == XAttributeDefine.XAttr_POWER_POINT_Basic; + if (flag2) + { + this.RefreshTitleLevelUp(); + } + result = true; + } + return result; + } + + private bool OnVirtualItemChanged(XEventArgs args) + { + bool flag = !this.bAvaibleTitleIcon; + bool result; + if (flag) + { + result = false; + } + else + { + this.RefreshTitleLevelUp(); + result = true; + } + return result; + } + + public void RefreshTitleLevelUp() + { + TitleTable.RowData nextTitle = this.NextTitle; + bool bEnableTitleLevelUp = true; + bool flag = nextTitle == null || nextTitle.NeedPowerPoint > XSingleton.singleton.XPlayerData.GetAttr(XAttributeDefine.XAttr_POWER_POINT_Basic); + if (flag) + { + bEnableTitleLevelUp = false; + } + else + { + int i = 0; + int count = nextTitle.NeedItem.Count; + while (i < count) + { + int num = (int)XBagDocument.BagDoc.GetItemCount((int)nextTitle.NeedItem[i, 0]); + bool flag2 = (long)num < (long)((ulong)nextTitle.NeedItem[i, 1]); + if (flag2) + { + bEnableTitleLevelUp = false; + break; + } + i++; + } + } + this.bEnableTitleLevelUp = bEnableTitleLevelUp; + bool flag3 = this.TitleView != null && this.TitleView.IsVisible(); + if (flag3) + { + this.TitleView.Refresh(); + } + } + + public void GetTitleLevelUp() + { + bool flag = !this.bEnableTitleLevelUp; + if (!flag) + { + RpcC2G_TitleLevelUp rpc = new RpcC2G_TitleLevelUp(); + XSingleton.singleton.Send(rpc); + } + } + + public void OnGetTitleLevelUp(TitleLevelUpRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + XSingleton.singleton.XPlayerData.TitleID = oRes.titleID; + XTitleInfoChange @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + this.RefreshTitleLevelUp(); + bool flag2 = oRes.titleID > 0u && !DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + + public void TitleLevelChange(uint titleID) + { + bool flag = XSingleton.singleton.XPlayerData.TitleID != titleID; + if (flag) + { + XSingleton.singleton.XPlayerData.TitleID = titleID; + XTitleInfoChange @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Player; + XSingleton.singleton.FireEvent(@event); + this.RefreshTitleLevelUp(); + bool flag2 = titleID > 0u && !DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetVisibleWithAnimation(true, null); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTitleDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XTitleDocument.cs.meta new file mode 100644 index 00000000..56f56d0f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTitleDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 52d23943d0f2a194c9c68f1a61f07cf5 +timeCreated: 1611403709 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTitleInfoChange.cs b/Client/Assets/Scripts/XMainClient/XTitleInfoChange.cs new file mode 100644 index 00000000..dc7081c6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTitleInfoChange.cs @@ -0,0 +1,18 @@ +using System; + +namespace XMainClient +{ + internal class XTitleInfoChange : XEventArgs + { + public XTitleInfoChange() + { + this._eDefine = XEventDefine.XEvent_TitleChange; + } + + public override void Recycle() + { + base.Recycle(); + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTitleInfoChange.cs.meta b/Client/Assets/Scripts/XMainClient/XTitleInfoChange.cs.meta new file mode 100644 index 00000000..2ed692e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTitleInfoChange.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6270c2f9ea0e14b45a0eeac755db5222 +timeCreated: 1611403841 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTransformDocument.cs b/Client/Assets/Scripts/XMainClient/XTransformDocument.cs new file mode 100644 index 00000000..0e691e17 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTransformDocument.cs @@ -0,0 +1,243 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTransformDocument : XDocComponent + { + public override uint ID + { + get + { + return XTransformDocument.uuID; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XTransformDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static ItemTransform m_ItemTransformTable = new ItemTransform(); + + private List m_ItemList = new List(); + + private uint m_ItemType = 1u; + + private ulong m_TempRoleID; + + private int m_TempItemID; + + public static void Execute(OnLoadedCallback callback = null) + { + XTransformDocument.AsyncLoader.AddTask("Table/ItemTransform", XTransformDocument.m_ItemTransformTable, false); + XTransformDocument.AsyncLoader.Execute(null); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public static void OnTransform(bool bTrans, XEntity entity, bool bInit, bool bReplace) + { + bool flag = !bInit && entity.EngineObject != null; + if (flag) + { + if (bTrans) + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/VehicleFX/Vehicle_shangma", entity.EngineObject, Vector3.zero, Vector3.one, 1f, false, 3f, true); + } + else + { + bool flag2 = !bReplace; + if (flag2) + { + XSingleton.singleton.CreateAndPlay("Effects/FX_Particle/VehicleFX/Vehicle_xiama", entity.EngineObject, Vector3.zero, Vector3.one, 1f, false, 3f, true); + } + } + } + } + + public static void TryReqLeftTime() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XTransformDocument specificDocument = XDocuments.GetSpecificDocument(XTransformDocument.uuID); + specificDocument.ReqLeftTime(); + } + } + + private void _Recycle() + { + for (int i = 0; i < this.m_ItemList.Count; i++) + { + this.m_ItemList[i].Recycle(); + } + this.m_ItemList.Clear(); + } + + private int _ShowItemListByType(uint type) + { + HashSet hashSet = HashPool.Get(); + for (int i = 0; i < XTransformDocument.m_ItemTransformTable.Table.Length; i++) + { + ItemTransform.RowData rowData = XTransformDocument.m_ItemTransformTable.Table[i]; + bool flag = rowData.type == type; + if (flag) + { + hashSet.Add((int)rowData.itemid); + } + } + this._Recycle(); + bool flag2 = hashSet.Count > 0; + if (flag2) + { + Dictionary dictionary = DictionaryPool.Get(); + XBag itemBag = XSingleton.singleton.Doc.XBagDoc.ItemBag; + for (int j = 0; j < itemBag.Count; j++) + { + XItem xitem = itemBag[j]; + bool flag3 = !hashSet.Contains(xitem.itemID); + if (!flag3) + { + XNormalItem data; + bool flag4 = !dictionary.TryGetValue(xitem.itemID, out data); + if (flag4) + { + data = XDataPool.GetData(); + dictionary.Add(xitem.itemID, data); + data.itemID = xitem.itemID; + data.itemConf = xitem.itemConf; + this.m_ItemList.Add(data); + } + data.itemCount += xitem.itemCount; + } + } + DictionaryPool.Release(dictionary); + } + HashPool.Release(hashSet); + return this.m_ItemList.Count; + } + + private bool _OnItemClicked(IXUIButton btn) + { + int num = (int)btn.ID; + bool flag = num < 0 || num >= this.m_ItemList.Count; + bool result; + if (flag) + { + result = true; + } + else + { + this._ReqTranformOther(this.m_TempRoleID, this.m_ItemList[num].itemID); + result = true; + } + return result; + } + + public void ReqLeftTime() + { + RpcC2G_TransformOp rpcC2G_TransformOp = new RpcC2G_TransformOp(); + rpcC2G_TransformOp.oArg.op = 2; + XSingleton.singleton.Send(rpcC2G_TransformOp); + } + + public void ReqSwitch() + { + RpcC2G_TransformOp rpcC2G_TransformOp = new RpcC2G_TransformOp(); + rpcC2G_TransformOp.oArg.op = 0; + XSingleton.singleton.Send(rpcC2G_TransformOp); + } + + public void TryTransformOther(string name, ulong roleID) + { + this.m_TempRoleID = roleID; + int num = this._ShowItemListByType(this.m_ItemType); + int num2 = num; + if (num2 != 0) + { + if (num2 != 1) + { + DlgBase.singleton.Set(new ButtonClickEventHandler(this._OnItemClicked), this.m_ItemList); + } + else + { + this.m_TempItemID = this.m_ItemList[0].itemID; + for (int i = 0; i < XTransformDocument.m_ItemTransformTable.Table.Length; i++) + { + ItemTransform.RowData rowData = XTransformDocument.m_ItemTransformTable.Table[i]; + bool flag = rowData.itemid == (uint)this.m_TempItemID; + if (flag) + { + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("TRANSFORM_CONFIRM", new object[] + { + name, + (this.m_ItemList[0].itemConf != null) ? XSingleton.singleton.ChooseProfString(this.m_ItemList[0].itemConf.ItemName, 0u) : string.Empty, + rowData.time + }), XStringDefineProxy.GetString(XStringDefine.COMMON_OK), XStringDefineProxy.GetString(XStringDefine.COMMON_CANCEL), new ButtonClickEventHandler(this._OnTransformConfirmClicked)); + break; + } + } + } + } + else + { + XSingleton.singleton.ShowSystemTip(ErrorCode.ERR_TRANS_ITEMNOTENOUGH, "fece00"); + } + } + + private bool _OnTransformConfirmClicked(IXUIButton btn) + { + XSingleton.singleton.CloseModalDlg(); + this._ReqTranformOther(this.m_TempRoleID, this.m_TempItemID); + return true; + } + + private void _ReqTranformOther(ulong roleID, int itemid) + { + RpcC2G_TransformOp rpcC2G_TransformOp = new RpcC2G_TransformOp(); + rpcC2G_TransformOp.oArg.op = 1; + rpcC2G_TransformOp.oArg.roleid = roleID.ToString(); + rpcC2G_TransformOp.oArg.itemid = (uint)itemid; + XSingleton.singleton.Send(rpcC2G_TransformOp); + } + + public void OnGetTransformOp(TransformOpArg oArg, TransformOpRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + int op = oArg.op; + if (op == 2) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.SetTransformLeftTime(oRes.timeleft); + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTransformDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XTransformDocument.cs.meta new file mode 100644 index 00000000..54b24dc4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTransformDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: de3b5741883325b4e86a79437b7a8f66 +timeCreated: 1611404685 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTriggerCondition.cs b/Client/Assets/Scripts/XMainClient/XTriggerCondition.cs new file mode 100644 index 00000000..bdbb6d91 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTriggerCondition.cs @@ -0,0 +1,64 @@ +using System; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XTriggerCondition + { + private float m_LastTriggerTime; + + private float m_TriggerCD; + + private uint m_TriggerCount; + + private bool m_bCDWhenRandFail; + + public XTriggerCondition(BuffTable.RowData info) + { + this.m_LastTriggerTime = 0f; + this.m_TriggerCD = Math.Abs(info.BuffTriggerCD); + this.m_TriggerCount = (uint)info.BuffTriggerCount; + this.m_bCDWhenRandFail = (info.BuffTriggerCD < 0f); + bool flag = this.m_TriggerCount == 0u; + if (flag) + { + this.m_TriggerCount = uint.MaxValue; + } + } + + public bool CanTrigger() + { + return this._IsTriggerBuffCD() && this._HasTriggerCount(); + } + + public void OnTrigger() + { + this.m_LastTriggerTime = Time.time; + bool flag = this.m_TriggerCount != uint.MaxValue && this.m_TriggerCount > 0u; + if (flag) + { + this.m_TriggerCount -= 1u; + } + } + + public void OnRandFail() + { + bool bCDWhenRandFail = this.m_bCDWhenRandFail; + if (bCDWhenRandFail) + { + this.m_LastTriggerTime = Time.time; + } + } + + private bool _IsTriggerBuffCD() + { + return Time.time - this.m_LastTriggerTime > this.m_TriggerCD; + } + + private bool _HasTriggerCount() + { + return this.m_TriggerCount == uint.MaxValue || this.m_TriggerCount > 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTriggerCondition.cs.meta b/Client/Assets/Scripts/XMainClient/XTriggerCondition.cs.meta new file mode 100644 index 00000000..3f060644 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTriggerCondition.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 823e5d89ca008754cadeb2efae629efb +timeCreated: 1611404039 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTssSdk.cs b/Client/Assets/Scripts/XMainClient/XTssSdk.cs new file mode 100644 index 00000000..f0cefc2e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTssSdk.cs @@ -0,0 +1,22 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XTssSdk : XSingleton, ITssSdkSend, IXInterface + { + public bool Deprecated { get; set; } + + public void SendDataToServer(byte[] data, uint length) + { + bool flag = !string.IsNullOrEmpty(XSingleton.singleton.OpenID); + if (flag) + { + PtcC2G_TssSdkSendAnti2Server ptcC2G_TssSdkSendAnti2Server = new PtcC2G_TssSdkSendAnti2Server(); + ptcC2G_TssSdkSendAnti2Server.Data.anti_data = data; + ptcC2G_TssSdkSendAnti2Server.Data.anti_data_len = length; + XSingleton.singleton.Send(ptcC2G_TssSdkSendAnti2Server); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTssSdk.cs.meta b/Client/Assets/Scripts/XMainClient/XTssSdk.cs.meta new file mode 100644 index 00000000..98a9d74c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTssSdk.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: d66de2629baf82c41a2cea5ce374f305 +timeCreated: 1611404631 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTuple.2.cs b/Client/Assets/Scripts/XMainClient/XTuple.2.cs new file mode 100644 index 00000000..b395deae --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTuple.2.cs @@ -0,0 +1,24 @@ +using System; + +namespace XMainClient +{ + internal class XTuple + { + public T1 Item1; + + public T2 Item2; + + public T3 Item3; + + public XTuple(T1 t1, T2 t2, T3 t3) + { + this.Item1 = t1; + this.Item2 = t2; + this.Item3 = t3; + } + + public XTuple() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTuple.2.cs.meta b/Client/Assets/Scripts/XMainClient/XTuple.2.cs.meta new file mode 100644 index 00000000..af918cf7 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTuple.2.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4d58e709560f55f4a80864ad9f659e88 +timeCreated: 1611403695 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTuple.3.cs b/Client/Assets/Scripts/XMainClient/XTuple.3.cs new file mode 100644 index 00000000..d201cc57 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTuple.3.cs @@ -0,0 +1,27 @@ +using System; + +namespace XMainClient +{ + internal class XTuple + { + public T1 Item1; + + public T2 Item2; + + public T3 Item3; + + public T4 Item4; + + public XTuple(T1 t1, T2 t2, T3 t3, T4 t4) + { + this.Item1 = t1; + this.Item2 = t2; + this.Item3 = t3; + this.Item4 = t4; + } + + public XTuple() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTuple.3.cs.meta b/Client/Assets/Scripts/XMainClient/XTuple.3.cs.meta new file mode 100644 index 00000000..d8a7138c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTuple.3.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4bc2864bd2fd6546b4a15f30ba1e200 +timeCreated: 1611404503 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XTuple.cs b/Client/Assets/Scripts/XMainClient/XTuple.cs new file mode 100644 index 00000000..a3abb4b9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTuple.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XTuple + { + public T1 Item1; + + public T2 Item2; + + public XTuple(T1 t1, T2 t2) + { + this.Item1 = t1; + this.Item2 = t2; + } + + public XTuple() + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XTuple.cs.meta b/Client/Assets/Scripts/XMainClient/XTuple.cs.meta new file mode 100644 index 00000000..a1159845 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XTuple.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0f8e439a495374f42b17176df53217f5 +timeCreated: 1611403209 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XUICacheImage.cs b/Client/Assets/Scripts/XMainClient/XUICacheImage.cs new file mode 100644 index 00000000..54e4173e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUICacheImage.cs @@ -0,0 +1,269 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; +using UILib; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XUICacheImage : XSingleton + { + private string path = Application.temporaryCachePath + "/ImageCache/"; + + public string CacheKey = "CacheDate"; + + private ulong m_mainHash = 0UL; + + private Dictionary>> callbacks; + + private Dictionary> textures; + + private ulong mHashURL(string url) + { + return (ulong)((long)Mathf.Abs(url.GetHashCode() + DateTime.Now.Month + DateTime.Now.Day)); + } + + public void SetMainIcon(string url) + { + this.m_mainHash = this.mHashURL(url); + } + + private void CheckCleanOldRes() + { + int num = DateTime.Now.Year + DateTime.Now.Month + DateTime.Now.Day; + int @int = PlayerPrefs.GetInt(this.CacheKey, 0); + bool flag = num != @int; + if (flag) + { + try + { + bool flag2 = Directory.Exists(this.path); + if (flag2) + { + Directory.Delete(this.path, true); + } + } + catch + { + } + PlayerPrefs.SetInt(this.CacheKey, num); + } + } + + private bool OnLoad(string url, IXUITexture texture, Action cb) + { + bool flag = this.callbacks == null; + if (flag) + { + this.callbacks = new Dictionary>>(); + } + bool flag2 = this.textures == null; + if (flag2) + { + this.textures = new Dictionary>(); + } + ulong num = this.mHashURL(url); + bool flag3 = cb != null; + if (flag3) + { + bool flag4 = !this.callbacks.ContainsKey(num); + if (flag4) + { + this.callbacks[num] = new List>(); + } + this.callbacks[num].Add(cb); + } + texture.ID = num; + bool flag5 = this.textures.ContainsKey(num); + bool flag6 = !flag5; + if (flag6) + { + this.textures[num] = new List(); + } + bool flag7 = !this.textures[num].Contains(texture); + if (flag7) + { + this.textures[num].Add(texture); + } + return flag5; + } + + private void Dispacher(string url, bool succ, Texture2D img, ulong oldTexID) + { + ulong num = this.mHashURL(url); + bool flag = this.textures.ContainsKey(num); + if (flag) + { + List list = this.textures[num]; + for (int i = 0; i < list.Count; i++) + { + IXUITexture ixuitexture = list[i]; + bool flag2 = ixuitexture != null && !ixuitexture.Equals(null) && ixuitexture.gameObject != null; + if (flag2) + { + bool flag3 = img == null || img.Equals(null) || !succ || list[i].ID != num; + if (flag3) + { + ixuitexture.SetVisible(false); + ixuitexture.SetRuntimeTex(null, oldTexID != this.m_mainHash); + ixuitexture.ID = 0UL; + } + else + { + ixuitexture.SetVisible(true); + ixuitexture.SetRuntimeTex(img, oldTexID != this.m_mainHash); + } + } + } + bool flag4 = this.callbacks.ContainsKey(num); + if (flag4) + { + List> list2 = this.callbacks[num]; + for (int j = 0; j < list2.Count; j++) + { + list2[j](succ); + } + this.callbacks.Remove(num); + } + this.textures.Remove(num); + } + } + + public void Load(string url, IXUITexture texture, MonoBehaviour mono) + { + this.Load(url, texture, mono, null); + } + + public void Load(string url, IXUITexture texture, MonoBehaviour mono, Action cb) + { + bool flag = mono == null || string.IsNullOrEmpty(url); + if (flag) + { + texture.SetVisible(false); + texture.SetRuntimeTex(null, texture.ID != this.m_mainHash); + texture.ID = 0UL; + } + else + { + bool flag2 = texture.ID == this.mHashURL(url); + if (!flag2) + { + this.CheckCleanOldRes(); + ulong id = texture.ID; + bool flag3 = this.OnLoad(url, texture, cb); + if (!flag3) + { + bool flag4 = !File.Exists(this.path + this.mHashURL(url)); + if (flag4) + { + mono.StartCoroutine(this.DownloadImage(url, id)); + } + else + { + mono.StartCoroutine(this.LoadLocalImage(url, id)); + } + } + } + } + } + + private IEnumerator DownloadImage(string url, ulong oldTexID) + { + bool flag = !Directory.Exists(this.path); + if (flag) + { + try + { + Directory.CreateDirectory(this.path); + } + catch (Exception ex) + { + Exception e = ex; + XSingleton.singleton.AddLog("write directory failed!", e.Message, null, null, null, null, XDebugColor.XDebug_None); + } + } + WWW www = new WWW(url); + yield return null; + while (!www.isDone) + { + yield return www; + } + bool flag2 = string.IsNullOrEmpty(url) || !string.IsNullOrEmpty(www.error); + if (flag2) + { + this.Dispacher(url, false, null, oldTexID); + www.Dispose(); + www = null; + } + else + { + Texture2D image = www.texture; + byte[] pngData = image.EncodeToJPG(); + bool flag3 = image.width == 8 && image.height == 8; + if (flag3) + { + this.Dispacher(url, false, null, oldTexID); + } + else + { + bool flag4 = image.width == 8 && image.height == 8; + if (flag4) + { + this.Dispacher(url, false, null, oldTexID); + } + else + { + try + { + File.WriteAllBytes(this.path + this.mHashURL(url), pngData); + } + catch (Exception ex) + { + Exception e2 = ex; + XSingleton.singleton.AddLog("write file local failed!", e2.Message, null, null, null, null, XDebugColor.XDebug_None); + } + this.Dispacher(url, true, image, oldTexID); + } + www.Dispose(); + www = null; + } + image = null; + pngData = null; + } + yield break; + } + + private IEnumerator LoadLocalImage(string url, ulong oldTexID) + { + bool flag = string.IsNullOrEmpty(url); + if (flag) + { + this.Dispacher(url, false, null, oldTexID); + } + else + { + string filePath = "file:///" + this.path + this.mHashURL(url); + WWW www = new WWW(filePath); + yield return www; + Texture2D image = www.texture; + bool flag2 = image.height == 8 && image.width == 8; + if (flag2) + { + this.Dispacher(url, false, null, oldTexID); + } + else + { + this.Dispacher(url, true, image, oldTexID); + } + www.Dispose(); + www = null; + filePath = null; + www = null; + image = null; + } + yield break; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XUICacheImage.cs.meta b/Client/Assets/Scripts/XMainClient/XUICacheImage.cs.meta new file mode 100644 index 00000000..b4e2df13 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUICacheImage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4c19dc262fb22ad458f2b040a57f4737 +timeCreated: 1611403690 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XUICacheMgr.cs b/Client/Assets/Scripts/XMainClient/XUICacheMgr.cs new file mode 100644 index 00000000..7231a21f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUICacheMgr.cs @@ -0,0 +1,63 @@ +using System; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XUICacheMgr : XSingleton + { + private XSysDefine m_CachedSys; + + private int m_CachedPriority; + + private EXStage m_eStage; + + public void CacheUI(XSysDefine sys, EXStage stage = EXStage.Hall) + { + OpenSystemTable.RowData sysData = XSingleton.singleton.GetSysData(XFastEnumIntEqualityComparer.ToInt(sys)); + bool flag = sysData == null; + if (!flag) + { + bool flag2 = sysData.Priority >= this.m_CachedPriority || this.m_CachedSys == XSysDefine.XSys_Invalid; + if (flag2) + { + this.m_CachedPriority = sysData.Priority; + this.m_CachedSys = sys; + this.m_eStage = stage; + } + } + } + + public void RemoveCachedUI(XSysDefine sys) + { + bool flag = this.m_CachedSys == sys; + if (flag) + { + this.m_CachedSys = XSysDefine.XSys_Invalid; + } + } + + public override bool Init() + { + this.m_CachedSys = XSysDefine.XSys_Invalid; + return true; + } + + public override void Uninit() + { + } + + public void TryShowCache() + { + bool flag = this.m_CachedSys == XSysDefine.XSys_Invalid; + if (!flag) + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage != this.m_eStage; + if (!flag2) + { + XSingleton.singleton.OpenSystem(this.m_CachedSys, 0UL); + this.m_CachedSys = XSysDefine.XSys_Invalid; + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XUICacheMgr.cs.meta b/Client/Assets/Scripts/XMainClient/XUICacheMgr.cs.meta new file mode 100644 index 00000000..23358e47 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUICacheMgr.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 146c7fd3b3ba19542b697f7bfaf65f36 +timeCreated: 1611403258 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XUltraSkill.cs b/Client/Assets/Scripts/XMainClient/XUltraSkill.cs new file mode 100644 index 00000000..7e0a5290 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUltraSkill.cs @@ -0,0 +1,15 @@ +using System; + +namespace XMainClient +{ + internal sealed class XUltraSkill : XArtsSkill + { + public override int SkillType + { + get + { + return 2; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XUltraSkill.cs.meta b/Client/Assets/Scripts/XMainClient/XUltraSkill.cs.meta new file mode 100644 index 00000000..21dc588b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUltraSkill.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 57a147f5aebaf3d418f8d0dadcc23544 +timeCreated: 1611403750 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XUnitAppearanceTeam.cs b/Client/Assets/Scripts/XMainClient/XUnitAppearanceTeam.cs new file mode 100644 index 00000000..950c2175 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUnitAppearanceTeam.cs @@ -0,0 +1,35 @@ +using System; +using KKSG; + +namespace XMainClient +{ + internal struct XUnitAppearanceTeam + { + public bool bHasTeam + { + get + { + return this.teamID > 0u; + } + } + + public uint teamID; + + public bool bPwd; + + public void SetData(UnitAppearanceTeam data) + { + bool flag = data == null; + if (flag) + { + this.teamID = 0u; + this.bPwd = false; + } + else + { + this.teamID = data.teamid; + this.bPwd = data.haspassword; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XUnitAppearanceTeam.cs.meta b/Client/Assets/Scripts/XMainClient/XUnitAppearanceTeam.cs.meta new file mode 100644 index 00000000..383f3f3f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUnitAppearanceTeam.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 531135acb11025d45b6f43f4d19586de +timeCreated: 1611403710 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XUnloadEquipEventArgs.cs b/Client/Assets/Scripts/XMainClient/XUnloadEquipEventArgs.cs new file mode 100644 index 00000000..def307d5 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUnloadEquipEventArgs.cs @@ -0,0 +1,26 @@ +using System; + +namespace XMainClient +{ + internal class XUnloadEquipEventArgs : XEventArgs + { + public int slot; + + public XItem item; + + public ItemType type; + + public XUnloadEquipEventArgs() + { + this._eDefine = XEventDefine.XEvent_UnloadEquip; + } + + public override void Recycle() + { + base.Recycle(); + this.slot = 0; + this.item = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XUnloadEquipEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XUnloadEquipEventArgs.cs.meta new file mode 100644 index 00000000..49e7aaf9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUnloadEquipEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: beaa3cf52fa64a641a20e1341c27de91 +timeCreated: 1611404480 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XUpdateItemEventArgs.cs b/Client/Assets/Scripts/XMainClient/XUpdateItemEventArgs.cs new file mode 100644 index 00000000..cd28e87e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUpdateItemEventArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XUpdateItemEventArgs : XEventArgs + { + public XItem item; + + public XUpdateItemEventArgs() + { + this._eDefine = XEventDefine.XEvent_UpdateItem; + } + + public override void Recycle() + { + base.Recycle(); + this.item = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XUpdateItemEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XUpdateItemEventArgs.cs.meta new file mode 100644 index 00000000..59a3723a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XUpdateItemEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba460ab0b5c534843814735ca7f5dd6a +timeCreated: 1611404435 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs b/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs new file mode 100644 index 00000000..08e286f0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs @@ -0,0 +1,38 @@ +using System; + +namespace XMainClient +{ + internal class XVirtualItemChangedEventArgs : XEventArgs + { + public ItemEnum e = ItemEnum.VIRTUAL_ITEM_MAX; + + public ulong newValue; + + public ulong oldValue; + + public int itemID; + + public XVirtualItemChangedEventArgs() + { + this._eDefine = XEventDefine.XEvent_VirtualItemChanged; + } + + public override void Recycle() + { + base.Recycle(); + this.e = ItemEnum.VIRTUAL_ITEM_MAX; + this.newValue = 0UL; + this.oldValue = 0UL; + XEventPool.Recycle(this); + } + + public override XEventArgs Clone() + { + XVirtualItemChangedEventArgs @event = XEventPool.GetEvent(); + @event.newValue = this.newValue; + @event.oldValue = this.oldValue; + @event.itemID = this.itemID; + return @event; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs.meta new file mode 100644 index 00000000..0a8e708c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XVirtualItemChangedEventArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 6ba9cca4f0640bf4db8b4033f8439cc5 +timeCreated: 1611403892 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XVoiceQABehaviour.cs b/Client/Assets/Scripts/XMainClient/XVoiceQABehaviour.cs new file mode 100644 index 00000000..7d895a58 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XVoiceQABehaviour.cs @@ -0,0 +1,84 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XVoiceQABehaviour : DlgBehaviourBase + { + private static readonly uint RANKSHOWNUMBER = 20u; + + public IXUIButton m_Close; + + public GameObject m_SingleGo; + + public IXUIScrollView m_SingleSrcollView; + + public IXUIWrapContent m_SingleWrapContent; + + public GameObject m_MultipleGo; + + public IXUIScrollView m_MultiSrollView; + + public IXUIWrapContent m_MultiWrapContent; + + public XUIPool m_RankPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public IXUILabel m_Title; + + public GameObject m_Start; + + public GameObject m_Ongoing; + + public GameObject m_End; + + public IXUILabel m_QuesNum; + + public IXUILabel m_QuesDesc; + + public IXUICheckBox m_AutoPlay; + + public IXUIButton m_ExitVoiceQA; + + public IXUIButton m_NextQuestion; + + public GameObject m_Right; + + public IXUILabelSymbol m_Reward; + + public IXUIScrollView m_RankScrollView; + + public IXUIButton m_Input; + + public IXUIButton m_SpeakBtn; + + private void Awake() + { + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_Title = (base.transform.Find("Bg/Title").GetComponent("XUILabel") as IXUILabel); + this.m_Start = base.transform.Find("Bg/Desc/start").gameObject; + this.m_Ongoing = base.transform.Find("Bg/Desc/ing").gameObject; + this.m_End = base.transform.Find("Bg/Desc/end").gameObject; + this.m_AutoPlay = (base.transform.Find("Bg/Desc/AutoPlay").GetComponent("XUICheckBox") as IXUICheckBox); + this.m_ExitVoiceQA = (base.transform.Find("Bg/Desc/end/exit").GetComponent("XUIButton") as IXUIButton); + this.m_NextQuestion = (base.transform.Find("Bg/Desc/ing/next").GetComponent("XUIButton") as IXUIButton); + this.m_QuesNum = (this.m_Ongoing.GetComponent("XUILabel") as IXUILabel); + this.m_QuesDesc = (this.m_Ongoing.transform.Find("question").GetComponent("XUILabel") as IXUILabel); + this.m_Right = base.transform.Find("Bg/Desc/ing/right").gameObject; + this.m_Reward = (base.transform.Find("Bg/Desc/ing/message/reward/item").GetComponent("XUILabelSymbol") as IXUILabelSymbol); + this.m_SpeakBtn = (base.transform.Find("Bg/Speak").GetComponent("XUIButton") as IXUIButton); + this.m_Input = (base.transform.Find("Bg/Input").GetComponent("XUIButton") as IXUIButton); + this.m_SingleGo = base.transform.Find("Bg/Single").gameObject; + this.m_SingleSrcollView = (this.m_SingleGo.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_SingleWrapContent = (this.m_SingleSrcollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_MultipleGo = base.transform.Find("Bg/Multiple").gameObject; + this.m_MultiSrollView = (this.m_MultipleGo.transform.Find("ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_MultiWrapContent = (this.m_MultiSrollView.gameObject.transform.Find("WrapContent").GetComponent("XUIWrapContent") as IXUIWrapContent); + this.m_RankScrollView = (this.m_MultipleGo.transform.Find("ScoreRank/rank/allRank").GetComponent("XUIScrollView") as IXUIScrollView); + Transform transform = this.m_MultipleGo.transform.Find("ScoreRank/rank/allRank/itemTpl"); + this.m_RankPool.SetupPool(transform.parent.gameObject, transform.gameObject, XVoiceQABehaviour.RANKSHOWNUMBER, false); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XVoiceQABehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XVoiceQABehaviour.cs.meta new file mode 100644 index 00000000..62ece285 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XVoiceQABehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 68c68861d502e7549bec651ea820148a +timeCreated: 1611403883 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XVoiceQADocument.cs b/Client/Assets/Scripts/XMainClient/XVoiceQADocument.cs new file mode 100644 index 00000000..866af9dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XVoiceQADocument.cs @@ -0,0 +1,401 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XVoiceQADocument : XDocComponent + { + public override uint ID + { + get + { + return XVoiceQADocument.uuID; + } + } + + public QAConditionTable QaConfigTable + { + get + { + return XVoiceQADocument._qaconfigTable; + } + } + + public QuestionLibraryTable QuestionTable + { + get + { + return XVoiceQADocument._questionTable; + } + } + + public QALevelRewardTable QaLevelRewardTable + { + get + { + return XVoiceQADocument._qaLevelRewardTable; + } + } + + public List AnswerList + { + get + { + return this._answerList; + } + } + + public uint CurrentType + { + get + { + return this._currentType; + } + set + { + this._currentType = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("VoiceQADocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static QAConditionTable _qaconfigTable = new QAConditionTable(); + + private static QuestionLibraryTable _questionTable = new QuestionLibraryTable(); + + private static QALevelRewardTable _qaLevelRewardTable = new QALevelRewardTable(); + + private Dictionary _nameIndex = new Dictionary(); + + private List _answerList = new List(); + + public SeqListRef Reward; + + public SeqListRef ExtraReward; + + public List ScoreList = new List(); + + public uint MyScore = 0u; + + private uint _currentType = 1u; + + public uint TempType; + + public bool IsVoiceQAIng = false; + + public bool IsNowDesRight = false; + + public bool IsAutoPlay = true; + + public bool IsFirstOpenUI = false; + + public bool MainInterFaceBtnState = false; + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + public static void Execute(OnLoadedCallback callback = null) + { + XVoiceQADocument.AsyncLoader.AddTask("Table/QuestionLibrary", XVoiceQADocument._questionTable, false); + XVoiceQADocument.AsyncLoader.AddTask("Table/QALevelReward", XVoiceQADocument._qaLevelRewardTable, false); + XVoiceQADocument.AsyncLoader.AddTask("Table/QACondition", XVoiceQADocument._qaconfigTable, false); + XVoiceQADocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_PlayerLevelChange, new XComponent.XEventHandler(this.OnPlayerLevelChange)); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + this.SendQueryVoiceQAInfo(); + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + bool isVoiceQAIng = this.IsVoiceQAIng; + if (isVoiceQAIng) + { + DlgBase.singleton.OnVoiceBtnAppear(0u); + } + else + { + bool flag2 = this.TempType > 0u; + if (flag2) + { + DlgBase.singleton.OnVoiceBtnAppear(this.TempType); + } + } + } + } + + public void VoiceQAInit(uint type) + { + this._currentType = type; + this.IsAutoPlay = (XSingleton.singleton.IsWifiEnable() || !XSingleton.singleton.IsChannelAutoPlayEnable(ChatChannelType.ZeroChannel)); + } + + public void VoiceQAJoinChoose(bool join, uint type) + { + this.TempType = 0u; + this._answerList.Clear(); + RpcC2G_AgreeQAReq rpcC2G_AgreeQAReq = new RpcC2G_AgreeQAReq(); + rpcC2G_AgreeQAReq.oArg.agree = join; + rpcC2G_AgreeQAReq.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_AgreeQAReq); + } + + public void SendAnswer(string ans, ulong audioID, uint audioTime) + { + bool flag = ans.Length == 0; + if (!flag) + { + PtcC2M_CommitAnswerNtf ptcC2M_CommitAnswerNtf = new PtcC2M_CommitAnswerNtf(); + ptcC2M_CommitAnswerNtf.Data.audiouid = audioID; + ptcC2M_CommitAnswerNtf.Data.answer = ans; + ptcC2M_CommitAnswerNtf.Data.audiotime = audioTime; + XSingleton.singleton.Send(ptcC2M_CommitAnswerNtf); + } + } + + public void SendQueryVoiceQAInfo() + { + RpcC2M_GetQADataReq rpc = new RpcC2M_GetQADataReq(); + XSingleton.singleton.Send(rpc); + } + + public void SetVoiceQAInfo(GetQADataRes data) + { + XSingleton.singleton.AddLog("Get VoiceQA data for server, Time = ", data.leftTime.ToString(), " question id = ", data.serialnum.ToString(), null, null, XDebugColor.XDebug_None); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshPage((int)data.serialnum, data.qid, data.leftTime); + } + } + + public void SetRankList(List list, uint myscore) + { + this.MyScore = myscore; + this.ScoreList.Clear(); + for (int i = 0; i < list.Count; i++) + { + QARoomRankData qaroomRankData = new QARoomRankData(); + qaroomRankData.uuid = list[i].uuid; + qaroomRankData.score = list[i].score; + this.ScoreList.Add(qaroomRankData); + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshRank(); + } + } + + public void SetQuestion(int id, uint index) + { + this.IsNowDesRight = false; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetQuestion(id, index, true, 0.0); + } + } + + public void NextQuestionQuery() + { + PtcC2M_GiveUpQAQuestionNtf proto = new PtcC2M_GiveUpQAQuestionNtf(); + XSingleton.singleton.Send(proto); + } + + public void VoiceQAStatement(uint totol, uint right, List list) + { + this.TempType = 0u; + this.IsVoiceQAIng = false; + this.MainInterFaceBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + bool flag = totol == 10000u || right == 10000u; + if (!flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.VoiceQAEnd(totol, right, list); + } + } + } + + public void DealWithNameIndex(List list) + { + this._nameIndex.Clear(); + this.ScoreList.Clear(); + this.MyScore = 0u; + for (int i = 0; i < list.Count; i++) + { + this._nameIndex[list[i].uuid] = list[i].name; + QARoomRankData qaroomRankData = new QARoomRankData(); + qaroomRankData.uuid = list[i].uuid; + qaroomRankData.score = 0u; + this.ScoreList.Add(qaroomRankData); + } + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshRank(); + } + } + + public string GetPlayerNameByRoleID(ulong roleID) + { + string result = ""; + bool flag = !this._nameIndex.TryGetValue(roleID, out result); + if (flag) + { + XSingleton.singleton.AddErrorLog("Can't find player name by roleID, roleID = ", roleID.ToString(), null, null, null, null); + } + return result; + } + + public void AddEnterRoomInfo2List(QAEnterRoomNtf data) + { + VoiceAnswer voiceAnswer = new VoiceAnswer(); + voiceAnswer.isEnterRoom = true; + voiceAnswer.roleId = data.roleID; + voiceAnswer.name = data.name; + voiceAnswer.profession = data.profession; + voiceAnswer.answerTime = data.time; + voiceAnswer.desID = data.coverDesignationID; + voiceAnswer.times = 0u; + voiceAnswer.content = ""; + voiceAnswer.right = false; + voiceAnswer.rank = 999u; + voiceAnswer.audioTime = 0u; + voiceAnswer.audioID = 0UL; + voiceAnswer.isNew = true; + this._answerList.Add(voiceAnswer); + this._nameIndex[data.roleID] = data.name; + QARoomRankData qaroomRankData = new QARoomRankData(); + qaroomRankData.uuid = data.roleID; + qaroomRankData.score = 0u; + this.ScoreList.Add(qaroomRankData); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshList(); + DlgBase.singleton.RefreshRank(); + } + } + + public void AddAnswer2List(AnswerAckNtf data) + { + VoiceAnswer voiceAnswer = new VoiceAnswer(); + voiceAnswer.isEnterRoom = false; + voiceAnswer.roleId = data.roleId; + voiceAnswer.audioID = data.audioUid; + voiceAnswer.name = data.userName; + voiceAnswer.content = data.answer; + voiceAnswer.right = data.correct; + voiceAnswer.times = data.times; + voiceAnswer.rank = data.rank; + voiceAnswer.answerTime = data.answertime; + voiceAnswer.desID = data.coverDesignationId; + voiceAnswer.audioTime = data.audioTime; + voiceAnswer.profession = data.profession; + voiceAnswer.isNew = true; + this._answerList.Add(voiceAnswer); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshList(); + } + } + + public void OpenView() + { + DlgBase.singleton.SetVisible(true, true); + } + + public void GetReward() + { + uint level = XSingleton.singleton.XPlayerData.Level; + foreach (QALevelRewardTable.RowData rowData in XVoiceQADocument._qaLevelRewardTable.Table) + { + bool flag = rowData.QAType == this._currentType && level >= rowData.MinLevel && level <= rowData.MaxLevel; + if (flag) + { + this.Reward = rowData.Reward; + this.ExtraReward = rowData.ExtraReward; + return; + } + } + XSingleton.singleton.AddErrorLog("Can't Find QALevelReward!!! Level = ", level.ToString(), "QAType = ", this._currentType.ToString(), null, null); + } + + public void LevelUp() + { + bool flag = this.TempType == 0u; + if (!flag) + { + QAConditionTable.RowData byQAType = XVoiceQADocument._qaconfigTable.GetByQAType((int)this.TempType); + bool flag2 = byQAType == null; + if (!flag2) + { + uint level = XSingleton.singleton.XPlayerData.Level; + for (int i = 0; i < byQAType.LevelSection.Count; i++) + { + bool flag3 = level >= byQAType.LevelSection[i, 0] && level <= byQAType.LevelSection[i, 1]; + if (flag3) + { + return; + } + } + this.TempType = 0u; + this.IsVoiceQAIng = false; + this.MainInterFaceBtnState = false; + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_GuildRelax_VoiceQA, true); + } + } + } + + public void IDIPClearRoleMsg(ulong roleID) + { + for (int i = this._answerList.Count - 1; i >= 0; i--) + { + bool flag = this._answerList[i].roleId == roleID; + if (flag) + { + this._answerList.RemoveAt(i); + } + } + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshList(); + } + } + + private bool OnPlayerLevelChange(XEventArgs arg) + { + this.LevelUp(); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XVoiceQADocument.cs.meta b/Client/Assets/Scripts/XMainClient/XVoiceQADocument.cs.meta new file mode 100644 index 00000000..b4991c6d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XVoiceQADocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 95cfec1b9d866c74291c6767849bcc06 +timeCreated: 1611404182 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWeddingDocument.cs b/Client/Assets/Scripts/XMainClient/XWeddingDocument.cs new file mode 100644 index 00000000..3eda2d05 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWeddingDocument.cs @@ -0,0 +1,1466 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWeddingDocument : XDocComponent + { + public override uint ID + { + get + { + return XWeddingDocument.uuID; + } + } + + public static XWeddingDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XWeddingDocument.uuID) as XWeddingDocument; + } + } + + public static WeddingLoverLiveness LoverLivenessTable + { + get + { + return XWeddingDocument.m_partnerLivenessTab; + } + } + + public List RecordList + { + get + { + return this.m_recordList; + } + } + + public List PartnerList + { + get + { + return this.m_PartnerList; + } + } + + public MarriageLevelInfo MarriageLevel + { + get + { + return this.m_MarriageLevel; + } + } + + public int MarriageLevelUp + { + get + { + return this.m_MarriageLevelUp; + } + } + + public bool IsHadLivenessRedPoint + { + get + { + return this.m_bIsHadLivenessRedPoint; + } + set + { + bool flag = this.m_bIsHadLivenessRedPoint != value; + if (flag) + { + this.m_bIsHadLivenessRedPoint = value; + DlgBase.singleton.SetRedPoint(TabIndex.Wedding, this.IsHadRedDot); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshUIRedPoint(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.UpdateRedpointUI(); + } + } + } + } + + public bool IsHadPrivilegeLevelUpRedPoint + { + get + { + return this.m_bLevelUpRedPoint; + } + set + { + bool flag = this.m_bLevelUpRedPoint != value; + if (flag) + { + this.m_bLevelUpRedPoint = value; + DlgBase.singleton.SetRedPoint(TabIndex.Wedding, this.IsHadRedDot); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshUIRedPoint(); + } + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Friends, true); + bool flag3 = DlgBase.singleton.IsVisible(); + if (flag3) + { + DlgBase.singleton.UpdateRedpointUI(); + } + } + } + } + + public bool IsHadRedDot + { + get + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Wedding); + return !flag && (this.IsHadLivenessRedPoint || this.IsHadPrivilegeLevelUpRedPoint); + } + } + + public uint AllAttendPlayerCount + { + get + { + return this.m_AllAttendPlayerCount; + } + } + + public WeddingBrief CurrWeddingInfo + { + get + { + return this.m_CurrWeddingInfo; + } + } + + public List CanEnterWedding + { + get + { + return this.m_CanEnterWedding; + } + } + + public List CanApplyWedding + { + get + { + return this.m_CanApplyWedding; + } + } + + public int LeftDivorceTime + { + get + { + return this.m_LeftDivorceTime - (int)Time.realtimeSinceStartup; + } + set + { + this.m_LeftDivorceTime = value + (int)Time.realtimeSinceStartup; + } + } + + public ulong DivorceApplyID + { + get + { + return this.m_DivorceApplyID; + } + } + + public bool PermitStranger + { + get + { + return this.m_PermitStranger; + } + } + + public int CoupleOfflineTime + { + get + { + return this.m_CoupleOfflineTime; + } + } + + public ulong MyWeddingID + { + get + { + return this.m_MyWeddingID; + } + set + { + this.m_MyWeddingID = value; + } + } + + public bool HasApplyCandidate + { + get + { + return this._hasApplyCandidate; + } + set + { + this._hasApplyCandidate = value; + bool flag = DlgBase.singleton._WeddingHandler != null && DlgBase.singleton._WeddingHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._WeddingHandler.RefreshInviteRedPoint(); + } + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("WeddingDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + public static MarriageLevel MarriageLevelTable = new MarriageLevel(); + + private static WeddingLoverLiveness m_partnerLivenessTab = new WeddingLoverLiveness(); + + private List m_recordList = new List(); + + public static readonly int MaxAvata = 2; + + public FriendsWeddingHandler View; + + private List m_PartnerList = new List(); + + private MarriageLevelInfo m_MarriageLevel; + + private int m_MarriageLevelUp = 0; + + public static int MaxMarriageLevel; + + public uint CurrExp = 0u; + + private uint m_takeChest = 0u; + + public static uint MaxExp = 0u; + + private bool m_bIsHadLivenessRedPoint = false; + + private bool m_bLevelUpRedPoint = false; + + private List m_CanEnterWedding = new List(); + + private List m_CanApplyWedding = new List(); + + private MarriageStatus m_MyMarriageStatus = MarriageStatus.MarriageStatus_Null; + + private ulong m_NotifedWeddingID = 0UL; + + private ulong m_ApplyMarriageRoleID = 0UL; + + private int m_LeftDivorceTime = 0; + + private ulong m_DivorceApplyID = 0UL; + + private bool m_PermitStranger = false; + + private ulong m_MyWeddingID; + + private int m_CoupleOfflineTime = 0; + + private WeddingType m_WeddingType = WeddingType.WeddingType_Normal; + + private List m_FriendsWeddingRoleInfoList = new List(); + + private List m_GuildWeddingRoleInfoList = new List(); + + private List m_InvitedWeddingRoleInfoList = new List(); + + private List m_ApplyWeddingRoleInfoList = new List(); + + private List m_Marriagelist = new List(); + + private WeddingBrief m_CurrWeddingInfo = null; + + private NotifyType m_CacheNotify = NotifyType.None; + + private object m_CachedData = null; + + private uint m_AllAttendPlayerCount = 0u; + + private XRole _player1; + + private XRole _player2; + + private XMount _mount; + + private uint _weddingCarTimer = 0u; + + private bool _hasApplyCandidate = false; + + private Dictionary m_WeddingSceneLoverFx = new Dictionary(); + + public void ReqPartnerDetailInfo() + { + RpcC2M_GetMarriageRelation rpc = new RpcC2M_GetMarriageRelation(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetPartDetailInfoBack(GetMarriageRelationRes oRes) + { + bool flag = oRes.error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.error, "fece00"); + } + else + { + this.m_PartnerList = oRes.infos; + this.m_MarriageLevel = oRes.marriageLevel; + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshUi(); + } + } + } + + public RoleOutLookBrief GetTeamLoverRole() + { + for (int i = 0; i < this.m_PartnerList.Count; i++) + { + bool flag = this.m_PartnerList[i].roleid != XSingleton.singleton.XPlayerData.RoleID; + if (flag) + { + return this.m_PartnerList[i]; + } + } + return null; + } + + public void ReqPartnerLivenessInfo() + { + RpcC2M_GetMarriageLiveness rpc = new RpcC2M_GetMarriageLiveness(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetPartnerLivenessInfo(GetMarriageLivenessRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.CurrExp = oRes.liveness; + this.m_takeChest = oRes.takedchest; + this.m_recordList.Clear(); + for (int i = 0; i < oRes.record.Count; i++) + { + this.m_recordList.Add(new LoverLivenessRecord(oRes.record[i])); + } + this.IsHadLivenessRedPoint = this.IsHadRedPoint(); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.FillContent(); + } + } + } + + public void ReqTakePartnerChest(uint index) + { + RpcC2M_TakeMarriageChest rpcC2M_TakeMarriageChest = new RpcC2M_TakeMarriageChest(); + rpcC2M_TakeMarriageChest.oArg.index = index; + XSingleton.singleton.Send(rpcC2M_TakeMarriageChest); + } + + public void OnTakePartnerChestBack(int index, TakeMarriageChestRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_takeChest = oRes.takedchest; + this.IsHadLivenessRedPoint = this.IsHadRedPoint(); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.ResetBoxRedDot(index - 1); + } + } + } + + public int FindNeedShowReward() + { + bool flag = this.CurrExp >= XWeddingDocument.MaxExp; + int result; + if (flag) + { + result = 0; + } + else + { + for (int i = 0; i < XWeddingDocument.m_partnerLivenessTab.Table.Length; i++) + { + bool flag2 = !this.IsChestOpened(i + 1); + if (flag2) + { + return i; + } + } + result = 0; + } + return result; + } + + public bool IsHadRedPoint() + { + for (int i = 0; i < XWeddingDocument.m_partnerLivenessTab.Table.Length; i++) + { + bool flag = !this.IsChestOpened(i + 1) && this.CurrExp >= XWeddingDocument.m_partnerLivenessTab.Table[i].liveness; + if (flag) + { + return true; + } + } + return false; + } + + public bool IsChestOpened(int index) + { + uint num = 1u << index; + return (this.m_takeChest & num) > 0u; + } + + public void OnMarriageNewPrivilegeNtf(int marriageLevelUp) + { + this.m_MarriageLevelUp = marriageLevelUp; + MarriageLevel.RowData byLevel = XWeddingDocument.MarriageLevelTable.GetByLevel(marriageLevelUp); + bool flag = byLevel != null; + if (flag) + { + bool flag2 = byLevel.PrerogativeID != 0u || byLevel.PrivilegeBuffs[0] > 0u; + if (flag2) + { + this.IsHadLivenessRedPoint = true; + } + } + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + this.View.CheckMarriageLevelUp(); + } + } + + public void GetMarriagePrivilege() + { + RpcC2M_GetMarriagePrivilege rpc = new RpcC2M_GetMarriagePrivilege(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetMarriagePrivilege(ErrorCode error) + { + bool flag = error > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(error, "fece00"); + } + else + { + this.m_MarriageLevelUp = 0; + this.IsHadLivenessRedPoint = false; + } + } + + public void OnMarriageLevelValueChangeNtf(MarriageLevelValueNtfData data) + { + this.m_MarriageLevel = data.info; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshMarriageLevelValue(); + } + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_OnEntityCreated, new XComponent.XEventHandler(this.OnEntityCreate)); + base.RegisterEvent(XEventDefine.XEvent_OnEntityDeleted, new XComponent.XEventHandler(this.OnEntityDelete)); + } + + private bool OnEntityCreate(XEventArgs args) + { + XOnEntityCreatedArgs xonEntityCreatedArgs = args as XOnEntityCreatedArgs; + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_WEDDING && xonEntityCreatedArgs.entity != null && xonEntityCreatedArgs.entity.IsRole && xonEntityCreatedArgs.entity.Attributes != null; + if (flag) + { + bool flag2 = this.IsWeddingLover(xonEntityCreatedArgs.entity.Attributes.RoleID); + if (flag2) + { + this.CreateLoverSceneFx(xonEntityCreatedArgs.entity); + } + } + return true; + } + + private bool OnEntityDelete(XEventArgs args) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_WEDDING; + if (flag) + { + XOnEntityDeletedArgs xonEntityDeletedArgs = args as XOnEntityDeletedArgs; + this.DeleteLoverSceneFx(xonEntityDeletedArgs.Id); + } + return true; + } + + private void CreateLoverSceneFx(XEntity entity) + { + XFx xfx; + bool flag = this.m_WeddingSceneLoverFx.TryGetValue(entity.Attributes.RoleID, out xfx) && xfx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(xfx, true); + } + xfx = XSingleton.singleton.CreateFx(XSingleton.singleton.GetValue("WeddingSceneLoverFx"), null, true); + int renderLayer = LayerMask.NameToLayer("Role"); + xfx.SetRenderLayer(renderLayer); + xfx.Play(entity.MoveObj, Vector3.zero, Vector3.one, 1f, true, false, "", 0f); + this.m_WeddingSceneLoverFx[entity.Attributes.RoleID] = xfx; + } + + private void DeleteLoverSceneFx(ulong roleID) + { + XFx xfx; + bool flag = this.m_WeddingSceneLoverFx.TryGetValue(roleID, out xfx) && xfx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(xfx, true); + this.m_WeddingSceneLoverFx[roleID] = null; + } + } + + private bool IsWeddingLover(ulong roleID) + { + bool flag = XWeddingDocument.Doc.CurrWeddingInfo != null && XWeddingDocument.Doc.CurrWeddingInfo.role1 != null && XWeddingDocument.Doc.CurrWeddingInfo.role2 != null; + return flag && (roleID == XWeddingDocument.Doc.CurrWeddingInfo.role1.roleid || roleID == XWeddingDocument.Doc.CurrWeddingInfo.role2.roleid); + } + + public MarriageStatus GetMyMarriageRelation() + { + return this.m_MyMarriageStatus; + } + + public WeddingType GetMyWeddingType() + { + return this.m_WeddingType; + } + + public List GetInviteRoleInfoList(WeddingInviteTab tab) + { + List result; + switch (tab) + { + case WeddingInviteTab.WeddingFriends: + result = this.m_FriendsWeddingRoleInfoList; + break; + case WeddingInviteTab.WeddingGuild: + result = this.m_GuildWeddingRoleInfoList; + break; + case WeddingInviteTab.WeddingInvited: + result = this.m_InvitedWeddingRoleInfoList; + break; + case WeddingInviteTab.WeddingApplyList: + result = this.m_ApplyWeddingRoleInfoList; + break; + default: + result = null; + break; + } + return result; + } + + public RoleOutLookBrief GetPartnerInfo() + { + bool flag = this.m_Marriagelist != null && this.m_Marriagelist.Count == 2; + RoleOutLookBrief result; + if (flag) + { + result = this.m_Marriagelist[1]; + } + else + { + result = null; + } + return result; + } + + public void ReqHoldWedding() + { + RpcC2M_HoldWedding rpc = new RpcC2M_HoldWedding(); + XSingleton.singleton.Send(rpc); + } + + public void OnHoldWedding(HoldWeddingRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public void EnterWedding(ulong weddingID) + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + RpcC2M_EnterWeddingScene rpcC2M_EnterWeddingScene = new RpcC2M_EnterWeddingScene(); + rpcC2M_EnterWeddingScene.oArg.weddingid = weddingID; + XSingleton.singleton.Send(rpcC2M_EnterWeddingScene); + } + + public void OnEnterWedding(EnterWeddingSceneRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + } + + public void OnWeddingLoadingInfoNtf(PtcG2C_WeddingLoadInfoNtf roPtc) + { + bool flag = roPtc.Data.info == null; + if (!flag) + { + this.m_CurrWeddingInfo = roPtc.Data.info; + } + } + + public void WeddingSceneOperator(WeddingOperType type) + { + RpcC2G_WeddingOperator rpcC2G_WeddingOperator = new RpcC2G_WeddingOperator(); + rpcC2G_WeddingOperator.oArg.type = type; + XSingleton.singleton.Send(rpcC2G_WeddingOperator); + } + + public void OnWeddingSceneOperator(WeddingOperatorArg oArg, WeddingOperatorRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + bool flag2 = !DlgBase.singleton.IsVisible() || DlgBase.singleton._WeddingHandler == null || !DlgBase.singleton._WeddingHandler.IsVisible(); + if (!flag2) + { + WeddingOperType type = oArg.type; + if (type - WeddingOperType.WeddingOper_Flower > 1) + { + if (type == WeddingOperType.WeddingOper_ApplyVows) + { + DlgBase.singleton._WeddingHandler.ApplyVowsSuss(); + } + } + else + { + DlgBase.singleton._WeddingHandler.CoolDownBtn(oArg.type); + } + } + } + } + + public void WeddingSceneEventNtf(PtcG2C_WeddingEventNtf roPtc) + { + bool flag = !DlgBase.singleton.IsVisible() || DlgBase.singleton._WeddingHandler == null || !DlgBase.singleton._WeddingHandler.IsVisible(); + if (!flag) + { + this.m_AllAttendPlayerCount = roPtc.Data.total_num; + XSingleton.singleton.AddLog("Wedding Attend Player Count:" + this.m_AllAttendPlayerCount, null, null, null, null, null, XDebugColor.XDebug_None); + switch (roPtc.Data.type) + { + case WeddingOperType.WeddingOper_Flower: + DlgBase.singleton._WeddingHandler.OnFlowerRain(); + break; + case WeddingOperType.WeddingOper_Fireworks: + DlgBase.singleton._WeddingHandler.OnFireworks(); + break; + case WeddingOperType.WeddingOper_ApplyVows: + DlgBase.singleton._WeddingHandler.ShowPartnerSwearNtf(roPtc.Data.rolename); + break; + case WeddingOperType.WeddingOper_DisAgreeVows: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WeddingSwearDisagree", new object[] + { + roPtc.Data.rolename + }), "fece00"); + break; + case WeddingOperType.WeddingOper_VowsPrepare: + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WeddingSwearAgree"), "fece00"); + DlgBase.singleton._WeddingHandler.OnVowsPrepare(); + break; + case WeddingOperType.WeddingOper_VowsStart: + this.PlayCutscene(XSingleton.singleton.GetValue("WeddingCutscenePath")); + break; + case WeddingOperType.WeddingOper_FlowerRewardOverMax: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WeddingFlowerRewardMax"), "fece00"); + break; + case WeddingOperType.WeddingOper_FireworksRewardOverMax: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WeddingFireworksRewardMax"), "fece00"); + break; + case WeddingOperType.WeddingOper_CandyRewardOverMax: + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WeddingCandyRewardMax"), "fece00"); + break; + case WeddingOperType.WeddingOper_Candy: + DlgBase.singleton._WeddingHandler.OnCandyFx(); + break; + } + } + } + + public void PlayCutscene(string path) + { + XSingleton.singleton.Start(path, true, true); + } + + public void WeddingStateNtf(PtcG2C_WeddingStateNtf roPtc) + { + bool flag = DlgBase.singleton.IsVisible() && DlgBase.singleton._WeddingHandler != null && DlgBase.singleton._WeddingHandler.IsVisible(); + if (flag) + { + DlgBase.singleton._WeddingHandler.UpdateWeddingState(roPtc.Data.state, roPtc.Data.lefttime, roPtc.Data.vows); + DlgBase.singleton._WeddingHandler.UpdateHappiness(roPtc.Data.happyness); + } + } + + public void WeddingInviteOperate(WeddingInviteOperType type, ulong roleID = 0UL, ulong weddingID = 0UL) + { + RpcC2M_WeddingInviteOperator rpcC2M_WeddingInviteOperator = new RpcC2M_WeddingInviteOperator(); + rpcC2M_WeddingInviteOperator.oArg.type = type; + rpcC2M_WeddingInviteOperator.oArg.roleid = roleID; + rpcC2M_WeddingInviteOperator.oArg.weddingid = weddingID; + XSingleton.singleton.Send(rpcC2M_WeddingInviteOperator); + } + + public void OnWeddingInviteOperate(WeddingInviteOperatorArg oArg, WeddingInviteOperatorRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + bool flag2 = oArg.type == WeddingInviteOperType.Wedding_DisagreeApply || oArg.type == WeddingInviteOperType.Wedding_AgreeApply; + if (flag2) + { + for (int i = this.m_ApplyWeddingRoleInfoList.Count - 1; i >= 0; i--) + { + bool flag3 = this.m_ApplyWeddingRoleInfoList[i].roleID == oArg.roleid; + if (flag3) + { + this.m_ApplyWeddingRoleInfoList.RemoveAt(i); + break; + } + } + this.HasApplyCandidate = (this.m_ApplyWeddingRoleInfoList.Count > 0); + bool flag4 = DlgBase.singleton.IsVisible(); + if (flag4) + { + DlgBase.singleton.RefreshUI(); + } + } + } + else + { + bool flag5 = oArg.type == WeddingInviteOperType.Wedding_Apply; + if (flag5) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("WeddingApplySend"), "fece00"); + this.UpdateApplyWeddingState(oArg.weddingid, true); + } + bool flag6 = oArg.type == WeddingInviteOperType.Wedding_PermitStranger; + if (flag6) + { + this.m_PermitStranger = true; + } + bool flag7 = oArg.type == WeddingInviteOperType.Wedding_ForbidStranger; + if (flag7) + { + this.m_PermitStranger = false; + } + bool flag8 = oArg.type == WeddingInviteOperType.Wedding_Invite; + if (flag8) + { + WeddingRoleInfo weddingRoleInfo = null; + for (int j = this.m_FriendsWeddingRoleInfoList.Count - 1; j >= 0; j--) + { + bool flag9 = this.m_FriendsWeddingRoleInfoList[j].roleID == oArg.roleid; + if (flag9) + { + weddingRoleInfo = this.m_FriendsWeddingRoleInfoList[j]; + this.m_FriendsWeddingRoleInfoList.RemoveAt(j); + break; + } + } + for (int k = this.m_GuildWeddingRoleInfoList.Count - 1; k >= 0; k--) + { + bool flag10 = this.m_GuildWeddingRoleInfoList[k].roleID == oArg.roleid; + if (flag10) + { + weddingRoleInfo = this.m_GuildWeddingRoleInfoList[k]; + this.m_GuildWeddingRoleInfoList.RemoveAt(k); + break; + } + } + bool flag11 = weddingRoleInfo != null; + if (flag11) + { + this.m_InvitedWeddingRoleInfoList.Add(weddingRoleInfo); + } + bool flag12 = DlgBase.singleton.IsVisible(); + if (flag12) + { + DlgBase.singleton.RefreshUI(); + } + } + bool flag13 = oArg.type == WeddingInviteOperType.Wedding_AgreeApply; + if (flag13) + { + WeddingRoleInfo weddingRoleInfo2 = null; + for (int l = this.m_ApplyWeddingRoleInfoList.Count - 1; l >= 0; l--) + { + bool flag14 = this.m_ApplyWeddingRoleInfoList[l].roleID == oArg.roleid; + if (flag14) + { + weddingRoleInfo2 = this.m_ApplyWeddingRoleInfoList[l]; + this.m_ApplyWeddingRoleInfoList.RemoveAt(l); + break; + } + } + bool flag15 = weddingRoleInfo2 != null; + if (flag15) + { + this.m_InvitedWeddingRoleInfoList.Add(weddingRoleInfo2); + } + this.HasApplyCandidate = (this.m_ApplyWeddingRoleInfoList.Count > 0); + bool flag16 = DlgBase.singleton.IsVisible(); + if (flag16) + { + DlgBase.singleton.RefreshUI(); + } + } + bool flag17 = oArg.type == WeddingInviteOperType.Wedding_DisagreeApply; + if (flag17) + { + for (int m = this.m_ApplyWeddingRoleInfoList.Count - 1; m >= 0; m--) + { + bool flag18 = this.m_ApplyWeddingRoleInfoList[m].roleID == oArg.roleid; + if (flag18) + { + this.m_ApplyWeddingRoleInfoList.RemoveAt(m); + break; + } + } + this.HasApplyCandidate = (this.m_ApplyWeddingRoleInfoList.Count > 0); + bool flag19 = DlgBase.singleton.IsVisible(); + if (flag19) + { + DlgBase.singleton.RefreshUI(); + } + } + } + } + + public void WeddingInviteNtf(PtcM2C_WeddingInviteNtf roPtc) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + WeddingInviteOperType type = roPtc.Data.type; + if (type <= WeddingInviteOperType.Wedding_Apply) + { + if (type != WeddingInviteOperType.Wedding_Invite) + { + if (type == WeddingInviteOperType.Wedding_Apply) + { + this.HasApplyCandidate = true; + } + } + else + { + WeddingBrief weddinginfo = roPtc.Data.weddinginfo; + this.m_NotifedWeddingID = weddinginfo.weddingid; + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("WeddingInviteNotifyTip"), weddinginfo.role1.name, weddinginfo.role2.name), XStringDefineProxy.GetString("WeddingInviteBtnNow"), XStringDefineProxy.GetString("WeddingInviteBtnWait"), new ButtonClickEventHandler(this.ToSendToEnterScene)); + } + } + else if (type != WeddingInviteOperType.Wedding_CarCutScene) + { + if (type == WeddingInviteOperType.Wedding_Start) + { + XInvitationDocument specificDocument = XDocuments.GetSpecificDocument(XInvitationDocument.uuID); + NoticeTable.RowData noticeData = specificDocument.GetNoticeData(NoticeType.NT_Wedding_INVITE_WORLD); + bool flag2 = noticeData != null; + if (flag2) + { + List list = new List(); + ChatParam chatParam = new ChatParam(); + chatParam.link = new ChatParamLink(); + chatParam.link.id = noticeData.linkparam; + chatParam.link.param.Add(roPtc.Data.weddinginfo.weddingid); + chatParam.link.content = noticeData.linkcontent; + ChatParam chatParam2 = new ChatParam(); + chatParam2.role = new ChatParamRole(); + chatParam2.role.uniqueid = roPtc.Data.weddinginfo.role1.roleid; + chatParam2.role.name = roPtc.Data.weddinginfo.role1.name; + chatParam2.role.profession = roPtc.Data.weddinginfo.role1.profession; + ChatParam chatParam3 = new ChatParam(); + chatParam3.role = new ChatParamRole(); + chatParam3.role.uniqueid = roPtc.Data.weddinginfo.role2.roleid; + chatParam3.role.name = roPtc.Data.weddinginfo.role2.name; + chatParam3.role.profession = roPtc.Data.weddinginfo.role2.profession; + list.Add(chatParam2); + list.Add(chatParam3); + list.Add(chatParam); + DlgBase.singleton.SendChatContent(noticeData.info, (ChatChannelType)noticeData.channel, false, list, true, 0UL, 0f, false, false); + } + } + } + else + { + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + } + } + } + } + + private bool ToSendToEnterScene(IXUIButton button) + { + bool flag = this.m_NotifedWeddingID > 0UL; + if (flag) + { + this.EnterWedding(this.m_NotifedWeddingID); + } + XSingleton.singleton.CloseModalDlg(); + this.m_NotifedWeddingID = 0UL; + return true; + } + + public void GetAllWeddingInfo() + { + RpcC2M_GetAllWeddingInfo rpc = new RpcC2M_GetAllWeddingInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetAllWeddingInfo(GetAllWeddingInfoRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_CanEnterWedding.Clear(); + for (int i = 0; i < oRes.can_enter.Count; i++) + { + WeddingBriefInfo weddingBriefInfo = new WeddingBriefInfo(); + weddingBriefInfo.brief = oRes.can_enter[i]; + weddingBriefInfo.isApply = false; + this.m_CanEnterWedding.Add(weddingBriefInfo); + } + this.m_CanApplyWedding.Clear(); + for (int j = 0; j < oRes.can_apply.Count; j++) + { + WeddingBriefInfo weddingBriefInfo2 = new WeddingBriefInfo(); + weddingBriefInfo2.brief = oRes.can_apply[j]; + weddingBriefInfo2.isApply = oRes.is_apply[j]; + this.m_CanApplyWedding.Add(weddingBriefInfo2); + } + this.m_CanEnterWedding.Sort(new Comparison(XWeddingDocument.SortWeddingInfo)); + this.m_CanApplyWedding.Sort(new Comparison(XWeddingDocument.SortWeddingInfo)); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshInfo(); + } + } + } + + private static int SortWeddingInfo(WeddingBriefInfo info1, WeddingBriefInfo info2) + { + bool flag = info1.brief.type != info2.brief.type; + int result; + if (flag) + { + result = info2.brief.type - info1.brief.type; + } + else + { + result = (int)(info1.brief.lefttime - info2.brief.lefttime); + } + return result; + } + + private void UpdateApplyWeddingState(ulong weddingid, bool isApply) + { + for (int i = 0; i < this.m_CanApplyWedding.Count; i++) + { + bool flag = this.m_CanApplyWedding[i].brief.weddingid == weddingid; + if (flag) + { + this.m_CanApplyWedding[i].isApply = true; + } + } + } + + public void GetWeddingInviteInfo() + { + RpcC2M_GetWeddingInviteInfo rpc = new RpcC2M_GetWeddingInviteInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetWeddingInviteInfo(GetWeddingInviteInfoRes oRes) + { + bool flag = oRes.result > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.result, "fece00"); + } + else + { + this.m_PermitStranger = oRes.permitstranger; + this.m_MyWeddingID = oRes.weddingid; + this.m_FriendsWeddingRoleInfoList.Clear(); + for (int i = 0; i < oRes.friends.Count; i++) + { + WeddingRoleBrief weddingRoleBrief = oRes.friends[i]; + this.m_FriendsWeddingRoleInfoList.Add(new WeddingRoleInfo + { + roleID = weddingRoleBrief.roleid, + name = weddingRoleBrief.name, + profession = weddingRoleBrief.profession, + level = weddingRoleBrief.level, + ppt = weddingRoleBrief.ppt, + guildName = weddingRoleBrief.guildname + }); + } + this.m_GuildWeddingRoleInfoList.Clear(); + for (int j = 0; j < oRes.guildmembers.Count; j++) + { + WeddingRoleBrief weddingRoleBrief2 = oRes.guildmembers[j]; + this.m_GuildWeddingRoleInfoList.Add(new WeddingRoleInfo + { + roleID = weddingRoleBrief2.roleid, + name = weddingRoleBrief2.name, + profession = weddingRoleBrief2.profession, + level = weddingRoleBrief2.level, + ppt = weddingRoleBrief2.ppt, + guildName = weddingRoleBrief2.guildname + }); + } + this.m_InvitedWeddingRoleInfoList.Clear(); + for (int k = 0; k < oRes.invitelist.Count; k++) + { + WeddingRoleBrief weddingRoleBrief3 = oRes.invitelist[k]; + this.m_InvitedWeddingRoleInfoList.Add(new WeddingRoleInfo + { + roleID = weddingRoleBrief3.roleid, + name = weddingRoleBrief3.name, + profession = weddingRoleBrief3.profession, + level = weddingRoleBrief3.level, + ppt = weddingRoleBrief3.ppt, + guildName = weddingRoleBrief3.guildname, + entered = oRes.invite_enter[k] + }); + } + this.m_ApplyWeddingRoleInfoList.Clear(); + for (int l = 0; l < oRes.applylist.Count; l++) + { + WeddingRoleBrief weddingRoleBrief4 = oRes.applylist[l]; + this.m_ApplyWeddingRoleInfoList.Add(new WeddingRoleInfo + { + roleID = weddingRoleBrief4.roleid, + name = weddingRoleBrief4.name, + profession = weddingRoleBrief4.profession, + level = weddingRoleBrief4.level, + ppt = weddingRoleBrief4.ppt, + guildName = weddingRoleBrief4.guildname + }); + } + this.HasApplyCandidate = (this.m_ApplyWeddingRoleInfoList.Count > 0); + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefreshUI(); + } + } + } + + public void SendMarriageRelationInfo() + { + RpcC2M_GetMarriageRelation rpc = new RpcC2M_GetMarriageRelation(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetMarriageRelationInfo(GetMarriageRelationRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_SUCCESS; + if (flag) + { + this.m_Marriagelist = oRes.infos; + this.m_MyMarriageStatus = oRes.marriageStatus; + this.m_WeddingType = oRes.type; + this.LeftDivorceTime = oRes.leftDivorceTime; + this.m_DivorceApplyID = oRes.applyDivorceID; + this.m_CoupleOfflineTime = oRes.coupleOfflineTime; + XWeddingDramaOperate xweddingDramaOperate = this.IsNpcDialogVisible(); + bool flag2 = xweddingDramaOperate != null; + if (flag2) + { + xweddingDramaOperate.RefreshOperateStatus(); + } + } + } + + private XWeddingDramaOperate IsNpcDialogVisible() + { + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + XDramaDocument specificDocument = XDocuments.GetSpecificDocument(XDramaDocument.uuID); + XDramaOperate openedOperate = specificDocument.GetOpenedOperate(XSysDefine.XSys_Wedding); + bool flag2 = openedOperate != null; + if (flag2) + { + XWeddingDramaOperate xweddingDramaOperate = openedOperate as XWeddingDramaOperate; + bool flag3 = xweddingDramaOperate != null; + if (flag3) + { + return xweddingDramaOperate; + } + } + } + return null; + } + + public void SendMarriageOp(MarriageOpType op, WeddingType type = WeddingType.WeddingType_Normal, ulong roleID = 0UL) + { + RpcC2M_MarriageRelationOp rpcC2M_MarriageRelationOp = new RpcC2M_MarriageRelationOp(); + rpcC2M_MarriageRelationOp.oArg.opType = op; + rpcC2M_MarriageRelationOp.oArg.type = type; + rpcC2M_MarriageRelationOp.oArg.destRoleID = roleID; + XSingleton.singleton.Send(rpcC2M_MarriageRelationOp); + } + + public void OnGetMarriageRelationOp(MarriageRelationOpArg oarg, MarriageRelationOpRes oRes) + { + bool flag = oRes.error == ErrorCode.ERR_SUCCESS && oarg.opType == MarriageOpType.MarriageOpType_MarryAgree; + if (flag) + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag2) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.ShowModalDialog(string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MarriageSuccessTip")), oRes.oppoRoleName), XStringDefineProxy.GetString("PVPActivity_Go"), new ButtonClickEventHandler(XWeddingDocument.Doc.GoToNpc), 50); + return; + } + } + XWeddingDramaOperate xweddingDramaOperate = this.IsNpcDialogVisible(); + bool flag3 = xweddingDramaOperate != null; + if (flag3) + { + xweddingDramaOperate.RefreshMarriageOp(oarg, oRes); + } + } + + public void OnGetMarriageApplyNotify(PtcM2C_NotifyMarriageApply roPtc) + { + MarriageApplyInfo applyInfo = roPtc.Data.applyInfo; + bool flag = XSingleton.singleton.XPlayerData == null || XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag) + { + bool flag2 = applyInfo != null; + if (flag2) + { + this.m_CachedData = applyInfo; + this.m_CacheNotify = NotifyType.NotifyToApprove; + } + } + else + { + bool flag3 = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag3) + { + bool flag4 = applyInfo != null; + if (flag4) + { + this.m_ApplyMarriageRoleID = roPtc.Data.applyInfo.applyRoleID; + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("WeddingApplyTip"), applyInfo.applyName), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.ToAgreeMarriage), new ButtonClickEventHandler(this.ToRefuseMarriage), false, XTempTipDefine.OD_START, 50); + } + bool flag5 = roPtc.Data.response != null; + if (flag5) + { + bool isAgree = roPtc.Data.response.isAgree; + bool flag6 = isAgree; + if (flag6) + { + XSingleton.singleton.ShowModalDialog(string.Format(XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("MarriageSuccessTip")), roPtc.Data.response.roleName), XStringDefineProxy.GetString("PVPActivity_Go"), new ButtonClickEventHandler(this.GoToNpc), 50); + } + else + { + XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("WeddingApplyBeenRefuse", new object[] + { + roPtc.Data.response.roleName + }), new object[0]), "fece00"); + } + } + } + } + } + + public bool GoToNpc(IXUIButton button) + { + DlgBase.singleton.SetVisible(false, true); + XSingleton.singleton.CloseModalDlg(); + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc((uint)XSingleton.singleton.GetInt("LoveGoldNpcID")); + return true; + } + + public void OnGetMarriageDivorceNotify(PtcM2C_NotifyMarriageDivorceApply roPtc) + { + bool isApplyCancel = roPtc.Data.isApplyCancel; + if (isApplyCancel) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + string @string = XStringDefineProxy.GetString("WeddingMaintainSuccess"); + XSingleton.singleton.ShowModalDialog(@string, XStringDefineProxy.GetString("COMMON_OK")); + } + } + else + { + bool flag2 = XSingleton.singleton.CurrentStage.Stage != EXStage.Hall; + if (flag2) + { + this.m_CacheNotify = NotifyType.NotifyToBreak; + this.m_CachedData = roPtc.Data.leftTime; + } + else + { + string format = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("WeddingBreakNotifyTip")); + XSingleton.singleton.ShowModalDialog(string.Format(format, XSingleton.singleton.TimeDuarationFormatString(roPtc.Data.leftTime, 5)), XStringDefineProxy.GetString("COMMON_OK")); + } + } + } + + public void SendWeddingCar() + { + RpcC2M_StartWeddingCar rpc = new RpcC2M_StartWeddingCar(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetWeddingCarNtf(PtcG2C_WeddingCarNtf roPtc) + { + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + int @int = XSingleton.singleton.GetInt("WeddingCarLocalOn"); + bool flag2 = @int > 0; + if (flag2) + { + this.StopWeddingCar(null); + this._weddingCarTimer = XSingleton.singleton.SetTimer((float)XSingleton.singleton.GetInt("WeddingPatrolTime"), new XTimerMgr.ElapsedEventHandler(this.StopWeddingCar), null); + UnitAppearance role = roPtc.Data.role1; + UnitAppearance role2 = roPtc.Data.role2; + XAttributes attributesWithAppearance = XSingleton.singleton.GetAttributesWithAppearance(role); + XRoleAttributes xroleAttributes = attributesWithAppearance as XRoleAttributes; + xroleAttributes.IsLocalFake = true; + XAttributes attributesWithAppearance2 = XSingleton.singleton.GetAttributesWithAppearance(role2); + xroleAttributes = (attributesWithAppearance2 as XRoleAttributes); + xroleAttributes.IsLocalFake = true; + List floatList = XSingleton.singleton.GetFloatList("WeddingcarParadeStart"); + this._player1 = XSingleton.singleton.CreateRole(attributesWithAppearance, new Vector3(floatList[0], floatList[1], floatList[2]), Quaternion.identity, false, false); + this._mount = XSingleton.singleton.CreateMount((uint)XSingleton.singleton.GetInt("WeddingCarID"), this._player1, true); + this._player2 = XSingleton.singleton.CreateRole(attributesWithAppearance2, new Vector3(floatList[0], floatList[1], floatList[2]), Quaternion.identity, false, false); + bool flag3 = this._player1.Mount.MountCopilot(this._player2); + XSingleton.singleton.AddLog(flag3.ToString(), null, null, null, null, null, XDebugColor.XDebug_None); + string value = XSingleton.singleton.GetValue("WeddingPatrolAITree"); + bool flag4 = this._player1.AI == null; + if (flag4) + { + this._player1.AI = (XSingleton.singleton.CreateComponent(this._player1, XAIComponent.uuID) as XAIComponent); + this._player1.AI.InitVariables(); + this._player1.AI.SetFixVariables(); + } + bool flag5 = this._player1.Nav == null; + if (flag5) + { + this._player1.Nav = (XSingleton.singleton.CreateComponent(this._player1, XNavigationComponent.uuID) as XNavigationComponent); + this._player1.Nav.Active(); + } + this._player1.AI.Patrol.InitNavPath(XSingleton.singleton.GetValue("WeddingPatrolPath"), XPatrol.PathType.PT_NORMAL); + this._player1.AI.SetBehaviorTree(value); + } + } + } + + private void StopWeddingCar(object param) + { + bool flag = this._weddingCarTimer > 0u; + if (flag) + { + XSingleton.singleton.KillTimer(this._weddingCarTimer); + this._weddingCarTimer = 0u; + this.DestroyFakeRoles(); + } + } + + private bool ToRefuseMarriage(IXUIButton button) + { + bool flag = this.m_ApplyMarriageRoleID > 0UL; + if (flag) + { + this.SendMarriageOp(MarriageOpType.MarriageOpType_MarryRefuse, WeddingType.WeddingType_Luxury, this.m_ApplyMarriageRoleID); + } + XSingleton.singleton.CloseModalDlg(); + this.m_ApplyMarriageRoleID = 0UL; + return true; + } + + private bool ToAgreeMarriage(IXUIButton button) + { + bool flag = this.m_ApplyMarriageRoleID > 0UL; + if (flag) + { + this.SendMarriageOp(MarriageOpType.MarriageOpType_MarryAgree, WeddingType.WeddingType_Luxury, this.m_ApplyMarriageRoleID); + } + XSingleton.singleton.CloseModalDlg(); + this.m_ApplyMarriageRoleID = 0UL; + return true; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XWeddingDocument.AsyncLoader.AddTask("Table/WeddingLoverLiveness", XWeddingDocument.m_partnerLivenessTab, false); + XWeddingDocument.AsyncLoader.AddTask("Table/MarriageLevel", XWeddingDocument.MarriageLevelTable, false); + XWeddingDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + bool flag = XWeddingDocument.m_partnerLivenessTab.Table.Length != 0; + if (flag) + { + XWeddingDocument.MaxExp = XWeddingDocument.m_partnerLivenessTab.Table[XWeddingDocument.m_partnerLivenessTab.Table.Length - 1].liveness; + } + bool flag2 = XWeddingDocument.MarriageLevelTable.Table.Length != 0; + if (flag2) + { + XWeddingDocument.MaxMarriageLevel = XWeddingDocument.MarriageLevelTable.Table[XWeddingDocument.MarriageLevelTable.Table.Length - 1].Level; + } + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterScene() + { + base.OnEnterScene(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + NotifyType cacheNotify = this.m_CacheNotify; + if (cacheNotify != NotifyType.NotifyToBreak) + { + if (cacheNotify == NotifyType.NotifyToApprove) + { + MarriageApplyInfo marriageApplyInfo = this.m_CachedData as MarriageApplyInfo; + bool flag2 = marriageApplyInfo != null; + if (flag2) + { + this.m_ApplyMarriageRoleID = marriageApplyInfo.applyRoleID; + XSingleton.singleton.ShowModalDialog(string.Format(XStringDefineProxy.GetString("WeddingApplyTip"), marriageApplyInfo.applyName), XStringDefineProxy.GetString("COMMON_OK"), XStringDefineProxy.GetString("COMMON_CANCEL"), new ButtonClickEventHandler(this.ToAgreeMarriage), new ButtonClickEventHandler(this.ToRefuseMarriage), false, XTempTipDefine.OD_START, 50); + } + } + } + else + { + string format = XSingleton.singleton.ReplaceReturn(XStringDefineProxy.GetString("WeddingBreakNotifyTip")); + XSingleton.singleton.ShowModalDialog(string.Format(format, XSingleton.singleton.TimeDuarationFormatString((int)this.m_CachedData, 5)), XStringDefineProxy.GetString("COMMON_OK")); + } + this.m_CacheNotify = NotifyType.None; + } + } + + public override void OnLeaveScene() + { + this.StopWeddingCar(null); + } + + private void DestroyFakeRoles() + { + XPetDocument.TryMount(false, this._player1, (uint)XSingleton.singleton.GetInt("WeddingCarID"), true); + XSingleton.singleton.DestroyImmediate(this._player1); + this._player1 = null; + XSingleton.singleton.DestroyImmediate(this._player2); + this._player2 = null; + XSingleton.singleton.DestroyEntity(this._mount); + this._mount = null; + } + + public override void Update(float fDeltaT) + { + base.Update(fDeltaT); + bool flag = this._player1 != null; + if (flag) + { + this._player1.Update(fDeltaT); + } + bool flag2 = this._player2 != null; + if (flag2) + { + this._player2.Update(fDeltaT); + } + } + + public override void PostUpdate(float fDeltaT) + { + base.PostUpdate(fDeltaT); + bool flag = this._player1 != null; + if (flag) + { + this._player1.PostUpdate(fDeltaT); + } + bool flag2 = this._player2 != null; + if (flag2) + { + this._player2.PostUpdate(fDeltaT); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWeddingDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XWeddingDocument.cs.meta new file mode 100644 index 00000000..06590e40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWeddingDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f93e9039898f2af40b1fbf2bc67614db +timeCreated: 1611404898 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWeekNestDocument.cs b/Client/Assets/Scripts/XMainClient/XWeekNestDocument.cs new file mode 100644 index 00000000..26d09045 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWeekNestDocument.cs @@ -0,0 +1,277 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWeekNestDocument : XDocComponent + { + public override uint ID + { + get + { + return XWeekNestDocument.uuID; + } + } + + public static XWeekNestDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XWeekNestDocument.uuID) as XWeekNestDocument; + } + } + + public int CurDNid + { + get + { + return this.m_curDNid; + } + set + { + this.m_curDNid = value; + } + } + + public FirstPassRankList RankList + { + get + { + return this.m_rankList; + } + } + + public FirstPassRankList LastWeekRankList + { + get + { + return this.m_LastWeek_rankList; + } + } + + public bool HadRedDot + { + get + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_WeekNest); + return !flag && this.m_hadRedDot; + } + set + { + this.m_hadRedDot = value; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XWeekNestDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private Dictionary m_picDic; + + private int m_curDNid = 0; + + public WeekNestDlg View = null; + + private FirstPassRankList m_rankList = null; + + private FirstPassRankList m_LastWeek_rankList = new FirstPassRankList(); + + private List m_titleRowList; + + private bool m_hadRedDot = false; + + public static void Execute(OnLoadedCallback callback = null) + { + XWeekNestDocument.AsyncLoader.Execute(callback); + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + bool flag2 = this.View.m_weekNestRankHandler != null && this.View.m_weekNestRankHandler.IsVisible(); + if (flag2) + { + this.ReqRankList(); + } + else + { + this.ReqTeamCount(); + } + } + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void ReqTeamCount() + { + XTeamDocument specificDocument = XDocuments.GetSpecificDocument(XTeamDocument.uuID); + specificDocument.ReqTeamOp(TeamOperate.TEAM_QUERYCOUNT, 0UL, null, TeamMemberType.TMT_NORMAL, null); + } + + public void ReqRankList() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.NestWeekRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void ReqLastSeasonRankList() + { + RpcC2M_ClientQueryRankListNtf rpcC2M_ClientQueryRankListNtf = new RpcC2M_ClientQueryRankListNtf(); + rpcC2M_ClientQueryRankListNtf.oArg.RankType = (uint)XFastEnumIntEqualityComparer.ToInt(RankeType.LastWeek_NestWeekRank); + XSingleton.singleton.Send(rpcC2M_ClientQueryRankListNtf); + } + + public void OnGetRankList(ClientQueryRankListRes oRes, bool LastWeek = false) + { + bool flag = oRes.ErrorCode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.ErrorCode, "fece00"); + } + else + { + bool flag2 = !LastWeek; + if (flag2) + { + this.m_rankList = new FirstPassRankList(oRes, false); + bool flag3 = this.View != null && this.View.IsVisible(); + if (flag3) + { + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + bool flag5 = this.View.m_weekNestRankHandler != null && this.View.m_weekNestRankHandler.IsVisible(); + if (flag5) + { + this.View.m_weekNestRankHandler.FillContent(); + } + } + } + } + else + { + this.m_LastWeek_rankList.Init(oRes, false); + } + } + } + + public void RefreshUi() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.Resfresh(); + } + } + + public string GetTittleNameByRank(int rank) + { + bool flag = this.m_titleRowList == null; + if (flag) + { + XDesignationDocument xdesignationDocument = XSingleton.singleton.Doc.GetXComponent(XDesignationDocument.uuID) as XDesignationDocument; + this.m_titleRowList = new List(); + int @int = XSingleton.singleton.GetInt("WeekNestTitleType"); + for (int i = 0; i < xdesignationDocument._DesignationTable.Table.Length; i++) + { + DesignationTable.RowData rowData = xdesignationDocument._DesignationTable.Table[i]; + bool flag2 = rowData != null && rowData.CompleteType == @int; + if (flag2) + { + bool flag3 = !this.m_titleRowList.Contains(rowData); + if (flag3) + { + this.m_titleRowList.Add(rowData); + } + } + } + } + for (int j = 0; j < this.m_titleRowList.Count; j++) + { + bool flag4 = this.m_titleRowList[j].CompleteValue != null && this.m_titleRowList[j].CompleteValue.Length == 2; + if (flag4) + { + bool flag5 = rank >= this.m_titleRowList[j].CompleteValue[0] && rank <= this.m_titleRowList[j].CompleteValue[1]; + if (flag5) + { + return this.m_titleRowList[j].Designation; + } + } + } + return ""; + } + + public string GetPicNameByDNid(uint DNid) + { + bool flag = this.m_picDic == null; + if (flag) + { + this.InitPicData(); + } + string result = ""; + this.m_picDic.TryGetValue(DNid, out result); + return result; + } + + private void InitPicData() + { + this.m_picDic = new Dictionary(); + string value = XSingleton.singleton.GetValue("WeekNestPics"); + bool flag = string.IsNullOrEmpty(value); + if (!flag) + { + string[] array = value.Split(XGlobalConfig.ListSeparator); + bool flag2 = array == null; + if (!flag2) + { + for (int i = 0; i < array.Length; i++) + { + string[] array2 = array[i].Split(XGlobalConfig.SequenceSeparator); + bool flag3 = array2 == null; + if (!flag3) + { + bool flag4 = array2.Length != 2; + if (!flag4) + { + uint key; + bool flag5 = uint.TryParse(array2[0], out key); + if (flag5) + { + bool flag6 = !this.m_picDic.ContainsKey(key); + if (flag6) + { + this.m_picDic.Add(key, array2[1]); + } + } + } + } + } + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWeekNestDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XWeekNestDocument.cs.meta new file mode 100644 index 00000000..edc2314b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWeekNestDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8065ffbd4ffcee44ab312513c77ad943 +timeCreated: 1611404034 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWeekendPartyDocument.cs b/Client/Assets/Scripts/XMainClient/XWeekendPartyDocument.cs new file mode 100644 index 00000000..f9391647 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWeekendPartyDocument.cs @@ -0,0 +1,382 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWeekendPartyDocument : XDocComponent + { + public override uint ID + { + get + { + return XWeekendPartyDocument.uuID; + } + } + + public List SelfWeekendPartyBattleList + { + get + { + return this._selfWeekendPartyBattleList; + } + } + + public uint CurrActID + { + get + { + return this._currActID; + } + } + + public uint SelfScore + { + get + { + return this._selfScore; + } + } + + public uint EnemyScore + { + get + { + return this._enemyScore; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("WeekendPartyDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static WeekEnd4v4List _weekendPartyTable = new WeekEnd4v4List(); + + public bool MainInterfaceState = false; + + private List _selfWeekendPartyBattleList = new List(); + + private List _allWeekendPartyBattleList = new List(); + + public WeekendPartyHandler WeekendPartyBattleHandler; + + private uint _selfCamp = 0u; + + private uint _currActID = 0u; + + private uint _selfScore = 0u; + + private uint _enemyScore = 0u; + + public List TeamBlood = new List(); + + public static void Execute(OnLoadedCallback callback = null) + { + XWeekendPartyDocument.AsyncLoader.AddTask("Table/WeekEnd4v4List", XWeekendPartyDocument._weekendPartyTable, false); + XWeekendPartyDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnDeath)); + } + + private bool OnDeath(XEventArgs e) + { + XRealDeadEventArgs xrealDeadEventArgs = e as XRealDeadEventArgs; + bool flag = !xrealDeadEventArgs.TheDead.IsPlayer; + bool result; + if (flag) + { + result = false; + } + else + { + bool flag2 = XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_GHOSTACTION || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_MONSTERFIGHT || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_DUCK; + if (flag2) + { + bool flag3 = this.WeekendPartyBattleHandler != null && this.WeekendPartyBattleHandler.IsVisible(); + if (flag3) + { + WeekEnd4v4List.RowData activityInfo = this.GetActivityInfo(this.CurrActID); + bool flag4 = activityInfo != null; + if (flag4) + { + this.WeekendPartyBattleHandler.ShowReviveUI(activityInfo.ReviveSeconds); + } + } + } + result = true; + } + return result; + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + bool flag = XSingleton.singleton.CurrentStage.Stage == EXStage.Hall; + if (flag) + { + this.ReqWeekendPartInfo(); + } + } + + public override void OnLeaveScene() + { + base.OnLeaveScene(); + this._selfCamp = 0u; + this._selfScore = 0u; + this._enemyScore = 0u; + this._selfWeekendPartyBattleList.Clear(); + this._allWeekendPartyBattleList.Clear(); + this.TeamBlood.Clear(); + } + + public bool CheckIsOpen(uint sceneID) + { + for (int i = 0; i < XWeekendPartyDocument._weekendPartyTable.Table.Length; i++) + { + bool flag = XWeekendPartyDocument._weekendPartyTable.Table[i].SceneID == sceneID && XWeekendPartyDocument._weekendPartyTable.Table[i].ID == this.CurrActID; + if (flag) + { + return true; + } + } + return false; + } + + public void SetMainInterfaceBtnState(bool state) + { + this.MainInterfaceState = state; + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.RefreshH5ButtonState(XSysDefine.XSys_MulActivity_WeekendParty, true); + } + } + + public void ReqWeekendPartInfo() + { + RpcC2G_WeekEnd4v4GetInfo rpc = new RpcC2G_WeekEnd4v4GetInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetWeekendPartyInfo(WeekEnd4v4GetInfoRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + this._currActID = oRes.thisActivityID; + DlgBase.singleton.RefreshActivityInfo(oRes); + } + } + + public WeekEnd4v4List.RowData GetActivityInfo(uint id) + { + for (int i = 0; i < XWeekendPartyDocument._weekendPartyTable.Table.Length; i++) + { + bool flag = XWeekendPartyDocument._weekendPartyTable.Table[i].ID == id; + if (flag) + { + return XWeekendPartyDocument._weekendPartyTable.Table[i]; + } + } + return null; + } + + public void OnWeekendPartyBattleInfoNtf(WeekEnd4v4BattleAllRoleData battleAllRoleInfo) + { + bool flag = battleAllRoleInfo == null || battleAllRoleInfo.roleData == null; + if (!flag) + { + bool flag2 = this._selfCamp == 0u; + if (flag2) + { + for (int i = 0; i < battleAllRoleInfo.roleData.Count; i++) + { + bool flag3 = battleAllRoleInfo.roleData[i].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag3) + { + this._selfCamp = battleAllRoleInfo.roleData[i].redblue; + break; + } + } + } + for (int j = 0; j < battleAllRoleInfo.roleData.Count; j++) + { + bool flag4 = !this.UpdateBattleRoleInfo(battleAllRoleInfo.roleData[j]); + if (flag4) + { + WeekendPartyBattleRoleInfo weekendPartyBattleRoleInfo = new WeekendPartyBattleRoleInfo(); + weekendPartyBattleRoleInfo.roleID = battleAllRoleInfo.roleData[j].roleid; + weekendPartyBattleRoleInfo.redBlue = battleAllRoleInfo.roleData[j].redblue; + weekendPartyBattleRoleInfo.score = battleAllRoleInfo.roleData[j].score; + weekendPartyBattleRoleInfo.kill = battleAllRoleInfo.roleData[j].killCount; + weekendPartyBattleRoleInfo.beKilled = battleAllRoleInfo.roleData[j].bekilledCount; + bool flag5 = battleAllRoleInfo.roleData[j].profession > 0u; + if (flag5) + { + weekendPartyBattleRoleInfo.RoleProf = (int)battleAllRoleInfo.roleData[j].profession; + } + bool flag6 = battleAllRoleInfo.roleData[j].rolelevel > 0u; + if (flag6) + { + weekendPartyBattleRoleInfo.level = battleAllRoleInfo.roleData[j].rolelevel; + } + bool flag7 = battleAllRoleInfo.roleData[j].rolename != null && battleAllRoleInfo.roleData[j].rolename != ""; + if (flag7) + { + weekendPartyBattleRoleInfo.roleName = battleAllRoleInfo.roleData[j].rolename; + } + else + { + weekendPartyBattleRoleInfo.roleName = ""; + } + this._allWeekendPartyBattleList.Add(weekendPartyBattleRoleInfo); + } + bool flag8 = battleAllRoleInfo.roleData[j].roleid == XSingleton.singleton.XPlayerData.RoleID; + if (flag8) + { + bool flag9 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible() && battleAllRoleInfo.roleData[j].timeSeconds > 0u; + if (flag9) + { + DlgBase.singleton.SetLeftTime(battleAllRoleInfo.roleData[j].timeSeconds, -1); + } + } + } + this._allWeekendPartyBattleList.Sort(new Comparison(XWeekendPartyDocument.SortRoleRank)); + this.CalculateTeamScore(); + bool flag10 = this.WeekendPartyBattleHandler != null && this.WeekendPartyBattleHandler.IsVisible(); + if (flag10) + { + this.WeekendPartyBattleHandler.RefreshWeekendPartyBattleData(); + } + bool flag11 = DlgBase.singleton.IsLoaded() && DlgBase.singleton.IsVisible(); + if (flag11) + { + bool flag12 = DlgBase.singleton.TeamMonitor != null; + if (flag12) + { + DlgBase.singleton.TeamMonitor.TeamInfoChangeOnSpectate(this.TeamBlood); + bool flag13 = DlgBase.singleton.TeamMonitor.m_DamageRankHandler != null && DlgBase.singleton.TeamMonitor.m_DamageRankHandler.IsVisible(); + if (flag13) + { + DlgBase.singleton.TeamMonitor.m_DamageRankHandler.RefreshWeekendPartRank(); + } + } + } + } + } + + private bool UpdateBattleRoleInfo(WeekEnd4v4BattleRoleData battleRole) + { + for (int i = 0; i < this._allWeekendPartyBattleList.Count; i++) + { + bool flag = this._allWeekendPartyBattleList[i].roleID == battleRole.roleid; + if (flag) + { + this._allWeekendPartyBattleList[i].redBlue = battleRole.redblue; + this._allWeekendPartyBattleList[i].score = battleRole.score; + this._allWeekendPartyBattleList[i].kill = battleRole.killCount; + this._allWeekendPartyBattleList[i].beKilled = battleRole.bekilledCount; + bool flag2 = battleRole.rolename != null && battleRole.rolename != ""; + if (flag2) + { + this._allWeekendPartyBattleList[i].roleName = battleRole.rolename; + } + bool flag3 = battleRole.profession > 0u; + if (flag3) + { + this._allWeekendPartyBattleList[i].RoleProf = (int)battleRole.profession; + } + bool flag4 = battleRole.rolelevel > 0u; + if (flag4) + { + this._allWeekendPartyBattleList[i].level = battleRole.rolelevel; + } + return true; + } + } + return false; + } + + private void CalculateTeamScore() + { + this.TeamBlood.Clear(); + this._selfScore = 0u; + this._enemyScore = 0u; + this._selfWeekendPartyBattleList.Clear(); + for (int i = 0; i < this._allWeekendPartyBattleList.Count; i++) + { + this._allWeekendPartyBattleList[i].Rank = i + 1; + bool flag = this._allWeekendPartyBattleList[i].redBlue == this._selfCamp; + if (flag) + { + this._selfScore += this._allWeekendPartyBattleList[i].score; + this._selfWeekendPartyBattleList.Add(this._allWeekendPartyBattleList[i]); + this.TeamBlood.Add(this.Turn2TeamBloodData(this._allWeekendPartyBattleList[i])); + } + else + { + this._enemyScore += this._allWeekendPartyBattleList[i].score; + } + } + } + + private XTeamBloodUIData Turn2TeamBloodData(WeekendPartyBattleRoleInfo data) + { + return new XTeamBloodUIData + { + uid = data.roleID, + entityID = data.roleID, + level = data.level, + name = data.roleName, + bIsLeader = false, + profession = (RoleType)data.RoleProf + }; + } + + public static int SortRoleRank(WeekendPartyBattleRoleInfo info1, WeekendPartyBattleRoleInfo info2) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_CRAZYBOMB || XSingleton.singleton.SceneType == SceneType.SCENE_WEEKEND4V4_LIVECHALLENGE; + int result; + if (flag) + { + bool flag2 = info1.beKilled == info2.beKilled; + if (flag2) + { + result = info1.roleName.CompareTo(info2.roleName); + } + else + { + result = (int)(info1.beKilled - info2.beKilled); + } + } + else + { + bool flag3 = info2.score == info1.score; + if (flag3) + { + result = info2.roleName.CompareTo(info1.roleName); + } + else + { + result = (int)(info2.score - info1.score); + } + } + return result; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWeekendPartyDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XWeekendPartyDocument.cs.meta new file mode 100644 index 00000000..fccf1b65 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWeekendPartyDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f7aa2c5fa76d904c8681e8d832ec9ba +timeCreated: 1611403517 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWelfareBehaviour.cs b/Client/Assets/Scripts/XMainClient/XWelfareBehaviour.cs new file mode 100644 index 00000000..c57ffece --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWelfareBehaviour.cs @@ -0,0 +1,28 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWelfareBehaviour : DlgBehaviourBase + { + public IXUIButton m_Close; + + public IXUIList m_TabList; + + public XUIPool m_TabPool = new XUIPool(XSingleton.singleton.m_uiTool); + + public Transform m_RightHandlerParent; + + private void Awake() + { + Transform transform = base.transform.Find("Bg/TabList/TabGrid/Tpl"); + this.m_TabPool.SetupPool(transform.gameObject.gameObject, transform.gameObject, 5u, false); + this.m_RightHandlerParent = base.transform.Find("Bg/RightHander"); + this.m_TabList = (base.transform.Find("Bg/TabList/TabGrid").GetComponent("XUIList") as IXUIList); + this.m_Close = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWelfareBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/XWelfareBehaviour.cs.meta new file mode 100644 index 00000000..b00ed069 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWelfareBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c2d33ff850e5edb409a5bbd29d6e8361 +timeCreated: 1611404496 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWelfareDocument.cs b/Client/Assets/Scripts/XMainClient/XWelfareDocument.cs new file mode 100644 index 00000000..56b4bc30 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWelfareDocument.cs @@ -0,0 +1,1794 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWelfareDocument : XDocComponent, IComparer + { + public override uint ID + { + get + { + return XWelfareDocument.uuID; + } + } + + public static XWelfareDocument Doc + { + get + { + return XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + } + } + + public XWelfareView View { get; set; } + + public bool FirstRewardBack + { + get + { + return this.m_firstRewardBack; + } + set + { + this.m_firstRewardBack = value; + } + } + + public bool FirstMoneyTree + { + get + { + return this.m_firstMoneyTree; + } + set + { + this.m_firstMoneyTree = value; + } + } + + public bool ServerPushRewardBack { get; set; } + + public bool ServerPushMoneyTree { get; set; } + + public MoneyTreeData WelfareMoneyTreeData + { + get + { + return this.m_MoneyTreeData; + } + } + + public List PayCardInfo + { + get + { + return this._payCardInfo; + } + } + + public List FindBackInfo + { + get + { + return this.m_FindBackInfo; + } + } + + public uint PayCardRemainTime + { + get + { + return this._payCardRemainTime; + } + } + + public PayAileen PayGiftBagInfo + { + get + { + return this._payGiftBagInfo; + } + } + + public uint RewardLittleGiftBag + { + get + { + return this._LittleGiftBag; + } + } + + public PayMemberPrivilege PayMemberPrivilege + { + get + { + return this._payMemberPrivilege; + } + } + + public List PayMemeberInfo + { + get + { + return this._payMemberInfo; + } + } + + public uint VipLevel + { + get + { + return this._vipLevel; + } + } + + public static PayAileenTable AileenTable + { + get + { + return XWelfareDocument._payAileenTable; + } + } + + public static PayWelfareTable WelfareTable + { + get + { + return XWelfareDocument._welfareTable; + } + } + + public static PayMemberTable PayMemberTable + { + get + { + return XWelfareDocument._payMemberTable; + } + } + + public int LoginDayCount + { + get + { + return this.m_loginDayCount; + } + } + + public bool HasBuyGrowthFund + { + get + { + return this.m_hasBuyGrowthFund; + } + } + + public bool HasGetFirstRecharge + { + get + { + return this.m_rechargeFirstGift; + } + } + + public List CurArgentaDailyIDList + { + get + { + return this._curArgentaDailyIDList; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("WelfareDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static PayAileenTable _payAileenTable = new PayAileenTable(); + + private static PayWelfareTable _welfareTable = new PayWelfareTable(); + + private static PayFirst _payFirst = new PayFirst(); + + private static RechargeTable _RechargeTable = new RechargeTable(); + + private static ItemBackTable _rewardBackTable = new ItemBackTable(); + + private static PayMemberTable _payMemberTable = new PayMemberTable(); + + private static ArgentaDaily _argentaDaily = new ArgentaDaily(); + + private static ArgentaTask _argentaTask = new ArgentaTask(); + + private static Dictionary m_RechargeDic = new Dictionary(); + + private static Dictionary m_PayDic = new Dictionary(); + + private static Dictionary m_payMemberIDDic = new Dictionary(); + + private static Dictionary> m_AileenTableDic = new Dictionary>(); + + private Dictionary _redpointState = new Dictionary(); + + private Dictionary m_clickDic = new Dictionary(); + + private Dictionary> m_growthFundDic = new Dictionary>(); + + private Dictionary m_MemberPrivilege = new Dictionary(); + + private List m_FindBackInfo = new List(); + + private MoneyTreeData m_MoneyTreeData = new MoneyTreeData(); + + private int m_loginDayCount = 0; + + private bool m_hasBuyGrowthFund = false; + + private bool m_rechargeFirstGift = false; + + private bool m_firstRewardBack = false; + + private bool m_firstMoneyTree = false; + + private static uint _memberPrivilegeFlag; + + private static Dictionary _payMemberIcon = new Dictionary(); + + private List _payCardInfo; + + private uint _payCardRemainTime; + + private PayAileen _payGiftBagInfo; + + private uint _LittleGiftBag = 1u; + + private PayMemberPrivilege _payMemberPrivilege; + + private List _payMemberInfo; + + private uint _vipLevel; + + public static readonly string MEMBER_PRIVILEGE_ATLAS = "common/Universal"; + + private List _curArgentaDailyIDList = new List(); + + public uint ActivityLeftTime = 0u; + + public bool ArgentaMainInterfaceState = false; + + public bool q = false; + + private uint _rewardsLevel; + + private bool _SholdOpenBackFlowTaskModal = false; + + public void RegisterRedPoint(XSysDefine define, bool state, bool refresh = true) + { + bool flag = this._redpointState.ContainsKey(define); + if (flag) + { + this._redpointState[define] = state; + } + else + { + this._redpointState.Add(define, state); + } + this.RefreshRedPoint(define, refresh); + } + + public bool GetRedPointState(XSysDefine define) + { + return this._redpointState.ContainsKey(define) && this._redpointState[define]; + } + + public void RegisterFirstClick(XSysDefine define, bool state, bool refresh = true) + { + bool flag = this.m_clickDic.ContainsKey(define); + if (flag) + { + this.m_clickDic[define] = state; + } + else + { + this.m_clickDic.Add(define, state); + } + this.RefreshRedPoint(define, refresh); + } + + public bool GetFirstClick(XSysDefine define) + { + return !this.m_clickDic.ContainsKey(define) || this.m_clickDic[define]; + } + + public void RefreshRedPoint(XSysDefine define, bool refresh = true) + { + XSingleton.singleton.RecalculateRedPointState(define, true); + bool flag = refresh && this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshRedpoint(); + } + } + + public bool GetRedPoint(XSysDefine define) + { + bool flag = define == XSysDefine.XSyS_Welfare_RewardBack; + bool result; + if (flag) + { + bool flag2 = this.View != null; + result = (flag2 && this.View.HadRewardBackRedPoint() && !this.GetFirstClick(define)); + } + else + { + bool flag3 = define == XSysDefine.XSys_Welfare_MoneyTree; + if (flag3) + { + bool flag4 = this.View != null; + if (flag4) + { + result = this.View.HasMoneyTreeRedPoint(); + } + else + { + result = this.ServerPushMoneyTree; + } + } + else + { + bool flag5 = define == XSysDefine.XSys_Welfare_KingdomPrivilege; + if (flag5) + { + result = (this.GetRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer) || this.GetRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce) || this.GetRedPoint(XSysDefine.XSys_Welfare_KingdomPrivilege_Court)); + } + else + { + bool flag6 = define == XSysDefine.XSys_Welfare_GiftBag; + if (flag6) + { + result = (this.GetRedPointState(define) || (this.IsSystemAvailable(XSysDefine.XSys_Welfare_GiftBag) && this._LittleGiftBag == 0u)); + } + else + { + bool flag7 = define == XSysDefine.XSys_Welfare_NiceGirl; + if (flag7) + { + result = (this.GetRedPointState(define) || this.GetSpecialGiftRedPoint()); + } + else + { + bool flag8 = define == XSysDefine.XSys_Welfare_YyMall; + if (flag8) + { + result = this.GetRedPointState(define); + } + else + { + bool flag9 = define == XSysDefine.XSys_Welfare_GiftBag || define == XSysDefine.XSys_Welfare_KingdomPrivilege || define == XSysDefine.XSys_Welfare_StarFund || define == XSysDefine.XSys_Welfare_FirstRechange || define == XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer || define == XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce || define == XSysDefine.XSys_Welfare_KingdomPrivilege_Court || define == XSysDefine.XSys_Welfare_NiceGirl; + bool flag10 = !flag9 && XSingleton.singleton.IsSystemOpened(define) && !this.GetFirstClick(define); + result = (this.GetRedPointState(define) || flag10); + } + } + } + } + } + } + return result; + } + + public static void Execute(OnLoadedCallback callback = null) + { + XWelfareDocument.AsyncLoader.AddTask("Table/PayAileen", XWelfareDocument._payAileenTable, false); + XWelfareDocument.AsyncLoader.AddTask("Table/PayWelfare", XWelfareDocument._welfareTable, false); + XWelfareDocument.AsyncLoader.AddTask("Table/Recharge/RechargeTable", XWelfareDocument._RechargeTable, false); + XWelfareDocument.AsyncLoader.AddTask("Table/Recharge/PayFirst", XWelfareDocument._payFirst, false); + XWelfareDocument.AsyncLoader.AddTask("Table/ItemBack", XWelfareDocument._rewardBackTable, false); + XWelfareDocument.AsyncLoader.AddTask("Table/PayMember", XWelfareDocument._payMemberTable, false); + XWelfareDocument.AsyncLoader.AddTask("Table/ArgentaDaily", XWelfareDocument._argentaDaily, false); + XWelfareDocument.AsyncLoader.AddTask("Table/ArgentaTask", XWelfareDocument._argentaTask, false); + XWelfareDocument.AsyncLoader.Execute(callback); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + base.RegisterEvent(XEventDefine.XEvent_ActivityTaskUpdate, new XComponent.XEventHandler(this.OnActivityUpdate)); + } + + public static void OnTableLoaded() + { + XWelfareDocument.m_RechargeDic.Clear(); + XWelfareDocument.m_PayDic.Clear(); + XWelfareDocument.m_payMemberIDDic.Clear(); + XWelfareDocument.m_AileenTableDic.Clear(); + int i = 0; + int num = XWelfareDocument._RechargeTable.Table.Length; + while (i < num) + { + RechargeTable.RowData rowData = XWelfareDocument._RechargeTable.Table[i]; + XWelfareDocument.m_RechargeDic.Add(rowData.SystemID, rowData); + i++; + } + i = 0; + num = XWelfareDocument._payFirst.Table.Length; + while (i < num) + { + PayFirst.RowData rowData2 = XWelfareDocument._payFirst.Table[i]; + XWelfareDocument.m_PayDic.Add(rowData2.SystemID, rowData2); + i++; + } + i = 0; + num = XWelfareDocument._payMemberTable.Table.Length; + while (i < num) + { + MemberPrivilege id = (MemberPrivilege)XWelfareDocument._payMemberTable.Table[i].ID; + XWelfareDocument.m_payMemberIDDic[id] = XWelfareDocument._payMemberTable.Table[i]; + i++; + } + i = 0; + num = XWelfareDocument._payAileenTable.Table.Length; + while (i < num) + { + string paramID = XWelfareDocument._payAileenTable.Table[i].ParamID; + List list; + bool flag = XWelfareDocument.m_AileenTableDic.TryGetValue(paramID, out list); + if (flag) + { + list.Add(XWelfareDocument._payAileenTable.Table[i]); + } + else + { + list = new List(); + list.Add(XWelfareDocument._payAileenTable.Table[i]); + XWelfareDocument.m_AileenTableDic[paramID] = list; + } + i++; + } + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + this._redpointState.Clear(); + this.ServerPushRewardBack = false; + this.ServerPushMoneyTree = false; + this.ArgentaMainInterfaceState = true; + } + + public void HideGiftBagBtn(string paramID) + { + XSingleton.singleton.AddLog("Pay [HideGiftBagBtn] servicecode = " + paramID, null, null, null, null, null, XDebugColor.XDebug_None); + bool flag = this._payGiftBagInfo != null; + if (flag) + { + XSingleton.singleton.AddLog("Pay [HideGiftBagBtn] 1", null, null, null, null, null, XDebugColor.XDebug_None); + for (int i = 0; i < this._payGiftBagInfo.AileenInfo.Count; i++) + { + XSingleton.singleton.AddLog(string.Concat(new object[] + { + "Pay [HideGiftBagBtn] 2 paramID = ", + this._payGiftBagInfo.AileenInfo[i].paramID, + ", weekDays = ", + this.PayGiftBagInfo.weekDays + }), null, null, null, null, null, XDebugColor.XDebug_None); + PayAileenTable.RowData giftBagTableData = XWelfareDocument.GetGiftBagTableData(this._payGiftBagInfo.AileenInfo[i].paramID, this.PayGiftBagInfo.weekDays); + bool flag2 = giftBagTableData != null; + if (flag2) + { + XSingleton.singleton.AddLog("Pay [HideGiftBagBtn] 3 servicecode = " + giftBagTableData.ServiceCode, null, null, null, null, null, XDebugColor.XDebug_None); + } + bool flag3 = giftBagTableData != null && giftBagTableData.ServiceCode == paramID; + if (flag3) + { + XSingleton.singleton.AddLog("Pay [HideGiftBagBtn] 3 isBuy = true", null, null, null, null, null, XDebugColor.XDebug_None); + this._payGiftBagInfo.AileenInfo[i].isBuy = true; + break; + } + } + } + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + XSingleton.singleton.AddLog("Pay [HideGiftBagBtn] refreshData", null, null, null, null, null, XDebugColor.XDebug_None); + this.View.RefreshData(); + } + } + + public void ResetGiftBagBtnCD(int interval) + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + DlgHandlerBase handler = this.View.GetHandler(XSysDefine.XSys_Welfare_GiftBag); + bool flag2 = handler != null && handler.IsVisible(); + if (flag2) + { + XWelfareGiftBagHandler xwelfareGiftBagHandler = handler as XWelfareGiftBagHandler; + bool flag3 = xwelfareGiftBagHandler != null; + if (flag3) + { + XSingleton.singleton.AddLog("Pay [ResetGiftBagBtnCD] ResetGiftBagBtnCD", null, null, null, null, null, XDebugColor.XDebug_None); + xwelfareGiftBagHandler.ResetGiftBagBtnCD(interval); + } + } + } + } + + public void ReqPayAllInfo() + { + XSingleton.singleton.AddLog("Pay [ReqPayAllInfo]", null, null, null, null, null, XDebugColor.XDebug_None); + RpcC2G_GetPayAllInfo rpc = new RpcC2G_GetPayAllInfo(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetPayAllInfo(GetPayAllInfoArg oArg, GetPayAllInfoRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + this.SetAllPayInfoData(oRes.info); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshData(); + } + } + } + + private void SetAllPayInfoData(PayAllInfo info) + { + bool flag = info == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("Pay [SetAllPayInfoData] info == null", null, null, null, null, null); + } + else + { + XSingleton.singleton.AddLog("Pay [SetAllPayInfoData]", null, null, null, null, null, XDebugColor.XDebug_None); + this._payGiftBagInfo = info.aileen; + this._LittleGiftBag = info.rewardCoolTime; + this._payCardInfo = info.card; + this._vipLevel = info.vipLevel; + this.RegisterFirstClick(XSysDefine.XSys_Welfare_GiftBag, info.payAileenFirstClick, false); + this._payCardRemainTime = info.payCardRemainTime; + this.m_rechargeFirstGift = info.payFirstAward; + this.RegisterFirstClick(XSysDefine.XSys_Welfare_FirstRechange, info.payFirstAwardClick, false); + this.RegisterFirstClick(XSysDefine.XSys_Welfare_StarFund, info.growthFundClick, false); + this.RegisterFirstClick(XSysDefine.XSyS_Welfare_RewardBack, this.m_firstRewardBack, false); + this.m_hasBuyGrowthFund = info.buyGrowthFund; + this.m_loginDayCount = (int)info.totalLoginDays; + this.m_growthFundDic[1] = info.growthFundLevelInfo; + this.m_growthFundDic[2] = info.growthFundLoginInfo; + this.CalculateGrowthFundRedPoint(false); + this.CalculateRechargetFirstRedPoint(false); + this.CalculateRewardBackRedPoint(); + this._payMemberInfo = info.payMemberInfo; + this.RegisterPayMemberClick(info.payMemberInfo); + this.CheckMemberPrivilegeType(this._payMemberInfo); + XWelfareDocument.SetMemberPrivilegeIcon(this._payMemberInfo); + } + } + + public void OnGetPayMemberPrivilege(PayMemberPrivilege data) + { + this._payMemberPrivilege = data; + } + + public int GetPayMemberReviveLeftCount() + { + bool flag = this._payMemberPrivilege == null; + int result; + if (flag) + { + result = 0; + } + else + { + int num = 0; + for (int i = 0; i < XWelfareDocument._payMemberTable.Table.Length; i++) + { + bool flag2 = this.IsOwnMemberPrivilege((MemberPrivilege)XWelfareDocument._payMemberTable.Table[i].ID); + if (flag2) + { + num += XWelfareDocument._payMemberTable.Table[i].ReviveCount; + } + } + result = num - this._payMemberPrivilege.usedReviveCount; + } + return result; + } + + private void CheckMemberPrivilegeType(List info) + { + this.m_MemberPrivilege.Clear(); + XWelfareDocument._memberPrivilegeFlag = 0u; + for (int i = 0; i < info.Count; i++) + { + MemberPrivilege id = (MemberPrivilege)info[i].ID; + this.m_MemberPrivilege[id] = (info[i].ExpireTime > 0); + bool flag = info[i].ExpireTime > 0; + if (flag) + { + XWelfareDocument._memberPrivilegeFlag += (uint)Math.Pow(2.0, (double)info[i].ID); + } + } + } + + public bool IsOwnMemberPrivilege(MemberPrivilege type) + { + bool flag2; + bool flag = this.m_MemberPrivilege.TryGetValue(type, out flag2); + return flag && flag2; + } + + public PayMemberTable.RowData GetMemberPrivilegeConfig(MemberPrivilege type) + { + PayMemberTable.RowData rowData; + bool flag = XWelfareDocument.m_payMemberIDDic.TryGetValue(type, out rowData); + PayMemberTable.RowData result; + if (flag) + { + result = rowData; + } + else + { + result = null; + } + return result; + } + + private static void SetMemberPrivilegeIcon(List info) + { + XWelfareDocument._payMemberIcon.Clear(); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("WelfareMemberPrivilegeIconName", XGlobalConfig.ListSeparator); + for (int i = 0; i < andSeparateValue.Length; i++) + { + string[] array = andSeparateValue[i].Split(new char[] + { + '=' + }); + bool flag = array.Length != 2; + if (!flag) + { + uint key = uint.Parse(array[0]); + XWelfareDocument._payMemberIcon[key] = array[1]; + } + } + DlgBase.singleton.RefreshSelfMemberPrivilegeIcon(); + } + + public static string GetMemberPrivilegeIconString(uint value) + { + bool flag = !XWelfareDocument._payMemberIcon.ContainsKey(value); + string result; + if (flag) + { + result = ""; + } + else + { + result = XLabelSymbolHelper.FormatImage(XWelfareDocument.MEMBER_PRIVILEGE_ATLAS, XWelfareDocument._payMemberIcon[value]); + } + return result; + } + + public static string GetSelfMemberPrivilegeIconString() + { + bool flag = !XWelfareDocument._payMemberIcon.ContainsKey(XWelfareDocument._memberPrivilegeFlag); + string result; + if (flag) + { + result = ""; + } + else + { + result = XLabelSymbolHelper.FormatImage(XWelfareDocument.MEMBER_PRIVILEGE_ATLAS, XWelfareDocument._payMemberIcon[XWelfareDocument._memberPrivilegeFlag]); + } + return result; + } + + public static string GetSelfMemberPrivilegeIconName() + { + bool flag = !XWelfareDocument._payMemberIcon.ContainsKey(XWelfareDocument._memberPrivilegeFlag); + string result; + if (flag) + { + result = ""; + } + else + { + result = XWelfareDocument._payMemberIcon[XWelfareDocument._memberPrivilegeFlag]; + } + return result; + } + + public string GetMemberPrivilegeIcon(MemberPrivilege type) + { + uint key = (uint)Math.Pow(2.0, XFastEnumIntEqualityComparer.ToInt(type)); + string text; + bool flag = XWelfareDocument._payMemberIcon.TryGetValue(key, out text); + string result; + if (flag) + { + result = text; + } + else + { + result = ""; + } + return result; + } + + public void PayAllInfoNtf(PayAllInfo info) + { + XSingleton.singleton.AddLog("Pay [PayAllInfoNtf]", null, null, null, null, null, XDebugColor.XDebug_None); + this.CheckPayMemberResult(info); + this.SetAllInfoMessage(info); + this.SetAllPayInfoData(info); + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshRedpoint(); + this.View.RefreshData(); + } + XChatDocument specificDocument = XDocuments.GetSpecificDocument(XChatDocument.uuID); + specificDocument.RefreshSelfMemberPriviligeInfo(XWelfareDocument._memberPrivilegeFlag); + XMainInterfaceDocument specificDocument2 = XDocuments.GetSpecificDocument(XMainInterfaceDocument.uuID); + specificDocument2.RefreshVirtualItem(6); + } + + private void SetAllInfoMessage(PayAllInfo info) + { + bool flag = info.payType == XFastEnumIntEqualityComparer.ToInt(PayParamType.PAY_PARAM_GROWTH_FUND); + if (flag) + { + RechargeTable.RowData rowData = null; + bool flag2 = info.buyGrowthFund && !this.m_hasBuyGrowthFund && this.TryGetGrowthFundConf(XSysDefine.XSys_Welfare_StarFund, out rowData); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WELFARE_GROWTHFUND_ERRORCODE", new object[] + { + rowData.Diamond + }), "fece00"); + } + } + } + + public void ReqPayClick(PayParamType type, XSysDefine define = XSysDefine.XSys_None) + { + bool flag = define == XSysDefine.XSys_None; + if (!flag) + { + bool flag2 = false; + bool flag3 = this.m_clickDic.TryGetValue(define, out flag2) && flag2; + if (!flag3) + { + bool flag4 = define == XSysDefine.XSys_Welfare_KingdomPrivilege; + if (flag4) + { + foreach (KeyValuePair keyValuePair in XWelfareDocument.m_payMemberIDDic) + { + bool flag5 = XSingleton.singleton.IsSystemOpen(keyValuePair.Value.SystemID); + if (flag5) + { + RpcC2G_PayClick rpcC2G_PayClick = new RpcC2G_PayClick(); + rpcC2G_PayClick.oArg.buttonType = XFastEnumIntEqualityComparer.ToInt(PayParamType.PAY_PARAM_MEMBER); + rpcC2G_PayClick.oArg.memberid = XFastEnumIntEqualityComparer.ToInt(keyValuePair.Key); + XSingleton.singleton.Send(rpcC2G_PayClick); + } + } + } + else + { + RpcC2G_PayClick rpcC2G_PayClick2 = new RpcC2G_PayClick(); + rpcC2G_PayClick2.oArg.buttonType = XFastEnumIntEqualityComparer.ToInt(type); + XSingleton.singleton.Send(rpcC2G_PayClick2); + } + } + } + } + + public void RefreshFirstClickTabRedpoint(PayClickArg oArg, PayClickRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + bool flag2 = oArg.buttonType == XFastEnumIntEqualityComparer.ToInt(PayParamType.PAY_PARAM_CARD); + if (!flag2) + { + bool flag3 = oArg.buttonType == XFastEnumIntEqualityComparer.ToInt(PayParamType.PAY_PARAM_AILEEN); + if (flag3) + { + this.RegisterRedPoint(XSysDefine.XSys_Welfare_GiftBag, false, false); + this.RegisterFirstClick(XSysDefine.XSys_Welfare_GiftBag, true, true); + } + else + { + bool flag4 = oArg.buttonType == XFastEnumIntEqualityComparer.ToInt(PayParamType.PAY_PARAM_GROWTH_FUND); + if (flag4) + { + this.RegisterFirstClick(XSysDefine.XSys_Welfare_StarFund, true, true); + } + else + { + bool flag5 = oArg.buttonType == XFastEnumIntEqualityComparer.ToInt(PayParamType.PAY_PARAM_FIRSTAWARD); + if (flag5) + { + this.RegisterFirstClick(XSysDefine.XSys_Welfare_FirstRechange, true, true); + } + else + { + bool flag6 = oArg.buttonType == XFastEnumIntEqualityComparer.ToInt(PayParamType.PAY_PARAM_MEMBER); + if (flag6) + { + foreach (KeyValuePair keyValuePair in XWelfareDocument.m_payMemberIDDic) + { + bool flag7 = keyValuePair.Key == (MemberPrivilege)oArg.memberid; + if (flag7) + { + this.RegisterRedPoint((XSysDefine)keyValuePair.Value.SystemID, false, false); + this.RegisterFirstClick((XSysDefine)keyValuePair.Value.SystemID, true, true); + break; + } + } + } + } + } + } + } + } + } + + public bool IsSystemAvailable(XSysDefine sys) + { + if (sys != XSysDefine.XSys_ReceiveEnergy && sys != XSysDefine.XSys_Reward_Login) + { + switch (sys) + { + case XSysDefine.XSys_Welfare_GiftBag: + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Welfare_GiftBag) && this.PayGiftBagInfo != null && this.PayGiftBagInfo.AileenInfo.Count > 0; + case XSysDefine.XSys_Welfare_StarFund: + case XSysDefine.XSys_Welfare_FirstRechange: + case XSysDefine.XSyS_Welfare_RewardBack: + case XSysDefine.XSys_Welfare_MoneyTree: + case XSysDefine.XSys_Welfare_NiceGirl: + case XSysDefine.XSys_Welfare_YyMall: + goto IL_BD; + case XSysDefine.XSys_Welfare_KingdomPrivilege: + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Welfare_KingdomPrivilege_Court) || XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer) || XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce); + } + return false; + } + IL_BD: + return XSingleton.singleton.IsSystemOpened(sys); + } + + public bool GetTabRedpointState(XSysDefine type) + { + return this.GetRedPoint(type); + } + + private void RefreshData() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshData(); + } + } + + public bool IsGiftBagItem(int itemID) + { + for (int i = 0; i < XWelfareDocument._payAileenTable.Table.Length; i++) + { + bool flag = XWelfareDocument._payAileenTable.Table[i].LevelSealGiftID != null; + if (flag) + { + for (int j = 0; j < XWelfareDocument._payAileenTable.Table[i].LevelSealGiftID.Length; j++) + { + bool flag2 = itemID == XWelfareDocument._payAileenTable.Table[i].LevelSealGiftID[j]; + if (flag2) + { + return true; + } + } + } + } + return false; + } + + public void GetCardDailyDiamond(uint type) + { + RpcC2G_PayCardAward rpcC2G_PayCardAward = new RpcC2G_PayCardAward(); + rpcC2G_PayCardAward.oArg.type = (int)type; + XSingleton.singleton.Send(rpcC2G_PayCardAward); + } + + public void OnGetCardDailyDiamond(PayCardAwardArg oArg, PayCardAwardRes oRes) + { + bool flag = oRes.errcode == ErrorCode.ERR_SUCCESS; + if (flag) + { + for (int i = 0; i < this._payCardInfo.Count; i++) + { + bool flag2 = (ulong)this._payCardInfo[i].type == (ulong)((long)oArg.type); + if (flag2) + { + this._payCardInfo.RemoveAt(i); + this._payCardInfo.Add(oRes.info); + break; + } + } + bool flag3 = false; + for (int j = 0; j < this._payCardInfo.Count; j++) + { + bool flag4 = !this._payCardInfo[j].isGet; + if (flag4) + { + flag3 = true; + break; + } + } + bool flag5 = !flag3; + if (flag5) + { + } + bool flag6 = this.View != null && this.View.IsVisible(); + if (flag6) + { + this.View.RefreshData(); + } + } + } + + public static PayCardTable.RowData GetPayCardConfig(uint type) + { + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + for (int i = 0; i < specificDocument.PayCardReader.Table.Length; i++) + { + bool flag = (long)specificDocument.PayCardReader.Table[i].Type == (long)((ulong)type); + if (flag) + { + return specificDocument.PayCardReader.Table[i]; + } + } + return null; + } + + public static int GetGiftBagTableIndex(string patamID) + { + for (int i = 0; i < XWelfareDocument._payAileenTable.Table.Length; i++) + { + bool flag = XWelfareDocument._payAileenTable.Table[i].ParamID == patamID; + if (flag) + { + return i; + } + } + return -1; + } + + public static PayAileenTable.RowData GetGiftBagTableData(string paramID, uint weekDay) + { + List list; + bool flag = XWelfareDocument.m_AileenTableDic.TryGetValue(paramID, out list); + if (flag) + { + for (int i = 0; i < list.Count; i++) + { + bool flag2 = (long)list[i].Days == (long)((ulong)weekDay); + if (flag2) + { + return list[i]; + } + } + } + return null; + } + + public void GetLittleGiftBag() + { + RpcC2G_GetPayReward rpc = new RpcC2G_GetPayReward(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetLittleGiftBox(GetPayRewardArg oArg, GetPayRewardRes oRes) + { + bool flag = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + else + { + this._LittleGiftBag = oRes.cdTime; + this.RefreshRedPoint(XSysDefine.XSys_Welfare_GiftBag, true); + bool flag2 = this.View != null && this.View.IsVisible(); + if (flag2) + { + this.View.RefreshData(); + } + } + } + + public bool TryGetGrowthFundConf(XSysDefine define, out RechargeTable.RowData rowData) + { + return XWelfareDocument.m_RechargeDic.TryGetValue(XFastEnumIntEqualityComparer.ToInt(define), out rowData); + } + + public bool HasGrowthFundGet(int type, int value) + { + return this.m_growthFundDic.ContainsKey(type) && this.m_growthFundDic[type].Contains(value); + } + + public void GetGrowthFundAward(int type, int value) + { + RpcC2G_GrowthFundAward rpcC2G_GrowthFundAward = new RpcC2G_GrowthFundAward(); + rpcC2G_GrowthFundAward.oArg.type = type; + rpcC2G_GrowthFundAward.oArg.value = value; + XSingleton.singleton.Send(rpcC2G_GrowthFundAward); + } + + public int GetGrowthFundLength() + { + int num = 0; + List list; + bool flag = this.m_growthFundDic.TryGetValue(1, out list); + if (flag) + { + num += list.Count; + } + bool flag2 = this.m_growthFundDic.TryGetValue(2, out list); + if (flag2) + { + num += list.Count; + } + return num; + } + + public void OnGetGrowthFundAward(GrowthFundAwardArg oArg, GrowthFundAwardRes oRes) + { + bool flag = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + else + { + List list; + bool flag2 = this.m_growthFundDic.TryGetValue(1, out list); + if (flag2) + { + int i = 0; + int count = oRes.growthFundLevelInfo.Count; + while (i < count) + { + bool flag3 = list.IndexOf(oRes.growthFundLevelInfo[i]) == -1; + if (flag3) + { + list.Add(oRes.growthFundLevelInfo[i]); + } + i++; + } + } + bool flag4 = this.m_growthFundDic.TryGetValue(2, out list); + if (flag4) + { + int i = 0; + int count = oRes.growthFundLoginInfo.Count; + while (i < count) + { + bool flag5 = list.IndexOf(oRes.growthFundLoginInfo[i]) == -1; + if (flag5) + { + list.Add(oRes.growthFundLoginInfo[i]); + } + i++; + } + } + this.CalcaulateGrowthFundMessage(oArg.type, oArg.value); + this.CalculateGrowthFundRedPoint(true); + this.RefreshData(); + } + } + + private void CalcaulateGrowthFundMessage(int type, int key) + { + bool flag = false; + int num = 0; + RechargeTable.RowData rowData; + bool flag2 = this.TryGetGrowthFundConf(XSysDefine.XSys_Welfare_StarFund, out rowData); + if (flag2) + { + bool flag3 = this.GetGrowthFundLength() == rowData.RoleLevels.Count + rowData.LoginDays.Count; + bool flag4 = type == 1; + if (flag4) + { + int i = 0; + int count = rowData.RoleLevels.Count; + while (i < count) + { + bool flag5 = rowData.RoleLevels[i, 0] == key; + if (flag5) + { + num = rowData.RoleLevels[i, 1]; + flag = true; + break; + } + i++; + } + } + else + { + bool flag6 = type == 2; + if (flag6) + { + int i = 0; + int count = rowData.LoginDays.Count; + while (i < count) + { + bool flag7 = rowData.LoginDays[i, 0] == key; + if (flag7) + { + num = rowData.LoginDays[i, 1]; + flag = true; + break; + } + i++; + } + } + } + } + bool flag8 = flag; + if (flag8) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("WELFARE_GROWTHFUND_ERRORCODE1", new object[] + { + num + }), "fece00"); + } + } + + private void CalculateGrowthFundRedPoint(bool refresh = true) + { + bool flag = !this.m_hasBuyGrowthFund; + if (flag) + { + this.RegisterRedPoint(XSysDefine.XSys_Welfare_StarFund, false, refresh); + } + else + { + RechargeTable.RowData rowData; + bool flag2 = this.TryGetGrowthFundConf(XSysDefine.XSys_Welfare_StarFund, out rowData); + if (flag2) + { + uint level = XSingleton.singleton.XPlayerData.Level; + int i = 0; + int count = rowData.RoleLevels.Count; + while (i < count) + { + bool flag3 = !this.HasGrowthFundGet(1, rowData.RoleLevels[i, 0]) && (long)rowData.RoleLevels[i, 0] <= (long)((ulong)level); + if (flag3) + { + this.RegisterRedPoint(XSysDefine.XSys_Welfare_StarFund, true, refresh); + return; + } + i++; + } + i = 0; + count = rowData.LoginDays.Count; + while (i < count) + { + bool flag4 = !this.HasGrowthFundGet(2, rowData.LoginDays[i, 0]) && rowData.LoginDays[i, 0] <= this.m_loginDayCount; + if (flag4) + { + this.RegisterRedPoint(XSysDefine.XSys_Welfare_StarFund, true, refresh); + return; + } + i++; + } + } + this.RegisterRedPoint(XSysDefine.XSys_Welfare_StarFund, false, refresh); + } + } + + public bool HasFullFirstRecharge() + { + bool result = false; + PayFirst.RowData rowData; + bool flag = this.TryGetPayFirstData(XSysDefine.XSys_Welfare_FirstRechange, out rowData); + if (flag) + { + int money = rowData.Money; + XRechargeDocument specificDocument = XDocuments.GetSpecificDocument(XRechargeDocument.uuID); + result = ((float)money <= specificDocument.TotalPay * 100f); + } + return result; + } + + public bool TryGetPayFirstData(XSysDefine define, out PayFirst.RowData rowData) + { + int key = XFastEnumIntEqualityComparer.ToInt(define); + return XWelfareDocument.m_PayDic.TryGetValue(key, out rowData); + } + + public void GetPayFirstAward() + { + RpcC2G_PayFirstAward rpc = new RpcC2G_PayFirstAward(); + XSingleton.singleton.Send(rpc); + } + + public void OnGetPayFirstAward(PayFirstAwardRes oRes) + { + bool flag = oRes.errcode > ErrorCode.ERR_SUCCESS; + if (flag) + { + XSingleton.singleton.ShowSystemTip(oRes.errcode, "fece00"); + } + else + { + this.CalculateRechargetFirstRedPoint(true); + this.RefreshData(); + } + } + + public bool GetCanRechargeFirst() + { + return XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_Welfare_FirstRechange) && !this.m_rechargeFirstGift && this.HasFullFirstRecharge(); + } + + private void CalculateRechargetFirstRedPoint(bool refresh = true) + { + bool canRechargeFirst = this.GetCanRechargeFirst(); + this.RegisterRedPoint(XSysDefine.XSys_Welfare_FirstRechange, this.GetCanRechargeFirst(), refresh); + } + + public static ItemBackTable.RowData GetRewardBackByIndex(int index) + { + for (int i = 0; i < XWelfareDocument._rewardBackTable.Table.Length; i++) + { + bool flag = XWelfareDocument._rewardBackTable.Table[i].ID == index; + if (flag) + { + return XWelfareDocument._rewardBackTable.Table[i]; + } + } + return null; + } + + private void CalculateRewardBackRedPoint() + { + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshRedpoint(); + this.RegisterRedPoint(XSysDefine.XSyS_Welfare_RewardBack, this.View.HadRewardBackRedPoint(), true); + } + } + + public void ReqRewardInfo() + { + bool flag = !XSingleton.singleton.IsSystemOpened(XSysDefine.XSyS_Welfare_RewardBack); + if (!flag) + { + RpcC2G_ItemFindBackInfo rpc = new RpcC2G_ItemFindBackInfo(); + XSingleton.singleton.Send(rpc); + XSuperRiskDocument doc = XSuperRiskDocument.Doc; + bool flag2 = XSingleton.singleton.IsSystemOpened(XSysDefine.XSys_SuperRisk); + if (flag2) + { + RiskMapFile.RowData mapIdByIndex = doc.GetMapIdByIndex(0); + bool flag3 = mapIdByIndex != null && (ulong)XSingleton.singleton.XPlayerData.Level >= (ulong)((long)mapIdByIndex.NeedLevel); + if (flag3) + { + doc.ReqMapDynamicInfo(1, false, true); + } + } + } + } + + public void ReqMoneyTreeInfo() + { + RpcC2G_GoldClick rpcC2G_GoldClick = new RpcC2G_GoldClick(); + rpcC2G_GoldClick.oArg.type = 0u; + rpcC2G_GoldClick.oArg.count = 1u; + XSingleton.singleton.Send(rpcC2G_GoldClick); + } + + public void OnRefreshRewardBack() + { + bool flag = this.View != null && this.View.IsLoaded() && this.View.IsVisible(); + if (flag) + { + this.RefreshData(); + } + } + + public void OnGetRewardInfo(ItemFindBackInfoRes oRes) + { + this.m_FindBackInfo = oRes.backInfo; + bool flag = this.View != null && this.View.IsVisible(); + if (flag) + { + this.View.RefreshRewardBackData(); + this.View.OnGetRewardInfo(oRes); + } + this.CalculateRewardBackRedPoint(); + } + + public void ReqRewardFindBack(ItemFindBackType type, int count) + { + RpcC2G_ItemFindBack rpcC2G_ItemFindBack = new RpcC2G_ItemFindBack(); + rpcC2G_ItemFindBack.oArg.id = type; + rpcC2G_ItemFindBack.oArg.findBackCount = count; + XSingleton.singleton.Send(rpcC2G_ItemFindBack); + } + + public void OnGetRewardFindBack(ItemFindBackArg oArg) + { + int num = oArg.findBackCount; + int num2 = 0; + for (int i = 0; i < this.m_FindBackInfo.Count; i++) + { + bool flag = this.m_FindBackInfo[i].id == oArg.id; + if (flag) + { + bool flag2 = oArg.backType == 1; + if (flag2) + { + num2 = XWelfareDocument.GetRewardBackByIndex(XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.DICE_BACK)).ItemDragonCoin[0, 1]; + } + else + { + num2 = XWelfareDocument.GetRewardBackByIndex(XFastEnumIntEqualityComparer.ToInt(ItemFindBackType.DICE_BACK)).ItemGold[0, 1]; + } + bool flag3 = this.m_FindBackInfo[i].findBackCount >= num; + if (flag3) + { + this.m_FindBackInfo[i].findBackCount -= num; + break; + } + num -= this.m_FindBackInfo[i].findBackCount; + this.m_FindBackInfo[i].findBackCount = 0; + } + } + this.RefreshData(); + this.CalculateRewardBackRedPoint(); + bool flag4 = oArg.id == ItemFindBackType.DICE_BACK; + if (flag4) + { + string text = string.Format("[{0}]{1}", XSingleton.singleton.GetItemQualityRGB((int)XBagDocument.GetItemConf(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DICE)).ItemQuality).ToString(), XSingleton.singleton.ChooseProfString(XBagDocument.GetItemConf(XFastEnumIntEqualityComparer.ToInt(ItemEnum.DICE)).ItemName, 0u)); + string text2 = string.Format("{0}[ffffff]x{1}", XStringDefineProxy.GetString("GET_ITEM", new object[] + { + text + }), (oArg.findBackCount * num2).ToString()); + XSingleton.singleton.ShowSystemTip(text2, "fece00"); + } + } + + public void OnPtcFindItemBack() + { + bool flag = !this.m_firstRewardBack; + if (flag) + { + this.ServerPushRewardBack = true; + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSyS_Welfare_RewardBack, true); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Welfare, true); + } + } + + public void OnPtcFirstNotify(bool first) + { + if (first) + { + bool flag = XSingleton.singleton.SceneType == SceneType.SCENE_HALL; + if (flag) + { + bool flag2 = DlgBase.singleton.IsVisible(); + if (flag2) + { + DlgBase.singleton.RefershRewardBack(); + } + DlgBase.singleton.Show(XSysDefine.XSyS_Welfare_RewardBack); + } + } + } + + public void OnPtcMoneyTree() + { + bool flag = !this.m_firstMoneyTree; + if (flag) + { + this.ServerPushMoneyTree = true; + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Welfare_MoneyTree, true); + XSingleton.singleton.RecalculateRedPointState(XSysDefine.XSys_Welfare, true); + } + } + + private void RegisterPayMemberClick(List info) + { + for (int i = 0; i < info.Count; i++) + { + int id = info[i].ID; + for (int j = 0; j < XWelfareDocument._payMemberTable.Table.Length; j++) + { + bool flag = id == XWelfareDocument._payMemberTable.Table[j].ID; + if (flag) + { + int systemID = XWelfareDocument._payMemberTable.Table[j].SystemID; + this.RegisterFirstClick((XSysDefine)systemID, info[i].isClick, false); + } + } + } + } + + private void CheckPayMemberResult(PayAllInfo info) + { + bool flag = this._payMemberInfo == null; + if (!flag) + { + bool flag2 = info.payType == 6; + if (flag2) + { + for (int i = 0; i < this._payMemberInfo.Count; i++) + { + for (int j = 0; j < info.payMemberInfo.Count; j++) + { + bool flag3 = this._payMemberInfo[i].ID == info.payMemberInfo[j].ID; + if (flag3) + { + PayMember payMember = this._payMemberInfo[i]; + PayMember payMember2 = info.payMemberInfo[j]; + bool flag4 = payMember.ExpireTime != 0 && payMember2.ExpireTime > payMember.ExpireTime; + if (flag4) + { + PayMemberTable.RowData info2; + bool flag5 = XWelfareDocument.m_payMemberIDDic.TryGetValue((MemberPrivilege)this._payMemberInfo[i].ID, out info2); + if (flag5) + { + DlgBase.singleton.Show(info2, true, payMember2.ExpireTime); + break; + } + } + else + { + bool flag6 = payMember.ExpireTime == 0 && payMember2.ExpireTime > 0; + if (flag6) + { + PayMemberTable.RowData info3; + bool flag7 = XWelfareDocument.m_payMemberIDDic.TryGetValue((MemberPrivilege)this._payMemberInfo[i].ID, out info3); + if (flag7) + { + DlgBase.singleton.ShowDetail(info3, false); + break; + } + } + else + { + bool flag8 = payMember.ExpireTime > 0 && payMember2.ExpireTime == 0; + if (flag8) + { + PayMemberTable.RowData rowData; + bool flag9 = XWelfareDocument.m_payMemberIDDic.TryGetValue((MemberPrivilege)this._payMemberInfo[i].ID, out rowData); + if (flag9) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("PAY_KINGDOM_OUT_OF_DATE", new object[] + { + rowData.Name + }), "fece00"); + } + } + } + } + } + } + } + } + } + } + + public void OnGetMoneyTreeInfo(uint type, uint count, GoldClickRes res) + { + bool flag = res.freeallcount == 0u || res.allcount == 0u; + if (flag) + { + bool flag2 = type == 1u; + if (flag2) + { + this.m_MoneyTreeData.free_count += 1u; + this.m_MoneyTreeData.left_time = res.freetimeleft; + this.m_MoneyTreeData.req_time = Time.time; + } + else + { + bool flag3 = type == 2u; + if (flag3) + { + this.m_MoneyTreeData.count += count; + } + } + } + else + { + this.m_MoneyTreeData.free_count = res.freecount; + this.m_MoneyTreeData.free_all_count = res.freeallcount; + this.m_MoneyTreeData.count = res.count; + this.m_MoneyTreeData.all_count = res.allcount; + this.m_MoneyTreeData.left_time = res.freetimeleft; + this.m_MoneyTreeData.req_time = Time.time; + this.m_MoneyTreeData.result = res.results; + } + bool flag4 = this.View != null && this.View.IsVisible(); + if (flag4) + { + this.View.OnGetMoneyTreeInfo(type, count, res); + } + } + + public ArgentaDaily.RowData GetArgentDailyDataByIndex(int index) + { + bool flag = index < XWelfareDocument._argentaDaily.Table.Length; + ArgentaDaily.RowData result; + if (flag) + { + result = XWelfareDocument._argentaDaily.Table[index]; + } + else + { + result = null; + } + return result; + } + + public int GetArgentDailyDataCount() + { + return XWelfareDocument._argentaDaily.Table.Length; + } + + public ArgentaTask.RowData GetArgentTaskDataByIndex(int index) + { + bool flag = index < XWelfareDocument._argentaTask.Table.Length; + ArgentaTask.RowData result; + if (flag) + { + result = XWelfareDocument._argentaTask.Table[index]; + } + else + { + result = null; + } + return result; + } + + public void SendArgentaActivityInfo(uint type, uint taskid) + { + RpcC2G_ArgentaActivity rpcC2G_ArgentaActivity = new RpcC2G_ArgentaActivity(); + rpcC2G_ArgentaActivity.oArg.type = type; + rpcC2G_ArgentaActivity.oArg.id = taskid; + XSingleton.singleton.Send(rpcC2G_ArgentaActivity); + } + + public void OnGetArgentaActivityInfo(ArgentaActivityArg oArg, ArgentaActivityRes oRes) + { + bool flag = oArg.type == 1u; + if (flag) + { + this._curArgentaDailyIDList = oRes.getRewardIDs; + this.ActivityLeftTime = oRes.leftTime + (uint)Time.realtimeSinceStartup; + this._rewardsLevel = oRes.level; + } + else + { + this.CurArgentaDailyIDList.Add(oArg.id); + this.SortArgentDailyData(); + bool flag2 = this.IsDailyAllGetted(); + bool flag3 = flag2; + if (flag3) + { + this.RegisterRedPoint(XSysDefine.XSys_Welfare_NiceGirl, !flag2, true); + } + } + bool flag4 = this.View != null && this.View.IsLoaded() && this.View.IsVisible(); + if (flag4) + { + this.RefreshData(); + } + bool bState = this.GetRedPointState(XSysDefine.XSys_Welfare_NiceGirl) || this.GetSpecialGiftRedPoint(); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Welfare_NiceGirl, bState); + this.RefreshRedPoint(XSysDefine.XSys_Welfare_NiceGirl, true); + } + + public bool IsDailyAllGetted() + { + bool result = true; + for (int i = 0; i < XWelfareDocument._argentaDaily.Table.Length; i++) + { + ArgentaDaily.RowData rowData = XWelfareDocument._argentaDaily.Table[i]; + bool flag = !this._curArgentaDailyIDList.Contains(rowData.ID); + if (flag) + { + result = false; + break; + } + } + return result; + } + + public bool IsNiceGirlTasksFinished() + { + return this.IsAllSpecialGiftTaskFinished() && !this.GetDailyGiftRedPoint(); + } + + public bool GetSpecialGiftRedPoint() + { + List activityTaskListByType = XTempActivityDocument.Doc.GetActivityTaskListByType(7u); + bool flag = activityTaskListByType != null; + if (flag) + { + for (int i = 0; i < activityTaskListByType.Count; i++) + { + bool flag2 = activityTaskListByType[i].state == 1u; + if (flag2) + { + return true; + } + } + } + return false; + } + + public bool IsAllSpecialGiftTaskFinished() + { + List activityTaskListByType = XTempActivityDocument.Doc.GetActivityTaskListByType(7u); + bool flag = activityTaskListByType != null; + if (flag) + { + for (int i = 0; i < activityTaskListByType.Count; i++) + { + bool flag2 = activityTaskListByType[i].state != 2u; + if (flag2) + { + return false; + } + } + } + return true; + } + + public bool GetDailyGiftRedPoint() + { + return this.GetRedPointState(XSysDefine.XSys_Welfare_NiceGirl); + } + + public SeqListRef? GetArgentTaskRewards(uint taskid) + { + for (int i = 0; i < XWelfareDocument._argentaTask.Table.Length; i++) + { + ArgentaTask.RowData rowData = XWelfareDocument._argentaTask.Table[i]; + bool flag = this._rewardsLevel >= rowData.LevelRange[0] && this._rewardsLevel <= rowData.LevelRange[1]; + if (flag) + { + bool flag2 = rowData.TaskID == taskid; + if (flag2) + { + return new SeqListRef?(rowData.Reward); + } + } + } + return null; + } + + public void RefreshYYMallRedPoint() + { + this.RegisterRedPoint(XSysDefine.XSys_Welfare_YyMall, false, true); + } + + public void SetBackFlowOpenSystem(List openIds, List closedIds) + { + } + + public void SetBackFlowModal() + { + this._SholdOpenBackFlowTaskModal = true; + } + + public void CallBackFlowModal() + { + bool sholdOpenBackFlowTaskModal = this._SholdOpenBackFlowTaskModal; + if (sholdOpenBackFlowTaskModal) + { + this._SholdOpenBackFlowTaskModal = false; + XSingleton.singleton.ShowModalDialog(XStringDefineProxy.GetString("BackFlowTaskGift"), XStringDefineProxy.GetString("PVPActivity_Go"), new ButtonClickEventHandler(this.ShowBackFlowTask), 50); + } + } + + private bool ShowBackFlowTask(IXUIButton button) + { + XSingleton.singleton.CloseModalDlg(); + SeqList sequenceList = XSingleton.singleton.GetSequenceList("BackFlowTaskConfig", true); + XSingleton.singleton.LastNpc = XSingleton.singleton.GetNpc((uint)sequenceList[0, 1]); + return true; + } + + private void SortArgentDailyData() + { + Array.Sort(XWelfareDocument._argentaDaily.Table, this); + } + + public int Compare(object x, object y) + { + ArgentaDaily.RowData rowData = x as ArgentaDaily.RowData; + ArgentaDaily.RowData rowData2 = x as ArgentaDaily.RowData; + bool flag = this._curArgentaDailyIDList.Contains(rowData.ID); + bool flag2 = this._curArgentaDailyIDList.Contains(rowData2.ID); + bool flag3 = flag && !flag2; + int result; + if (flag3) + { + result = 1; + } + else + { + bool flag4 = !flag && flag2; + if (flag4) + { + result = -1; + } + else + { + result = (int)(rowData.ID - rowData2.ID); + } + } + return result; + } + + private bool OnActivityUpdate(XEventArgs e) + { + XActivityTaskUpdatedArgs xactivityTaskUpdatedArgs = e as XActivityTaskUpdatedArgs; + bool flag = xactivityTaskUpdatedArgs != null; + if (flag) + { + bool flag2 = xactivityTaskUpdatedArgs.xActID == 7u; + if (flag2) + { + bool flag3 = this.View != null && this.View.IsLoaded() && this.View.IsVisible(); + if (flag3) + { + this.RefreshData(); + } + bool bState = this.GetRedPointState(XSysDefine.XSys_Welfare_NiceGirl) || this.GetSpecialGiftRedPoint(); + XSingleton.singleton.SetSysRedPointState(XSysDefine.XSys_Welfare_NiceGirl, bState); + this.RefreshRedPoint(XSysDefine.XSys_Welfare_NiceGirl, true); + } + } + return true; + } + + public int GetPrivilegeFreeRefreshCount(MemberPrivilege privilege) + { + int num = 0; + PayMemberTable.RowData memberPrivilegeConfig = this.GetMemberPrivilegeConfig(privilege); + bool flag = memberPrivilegeConfig != null; + if (flag) + { + num += memberPrivilegeConfig.ShopRefresh; + } + return num; + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWelfareDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XWelfareDocument.cs.meta new file mode 100644 index 00000000..bab1155f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWelfareDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 569f2627ba9158641a2efc1cb8378ef3 +timeCreated: 1611403745 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWelfareView.cs b/Client/Assets/Scripts/XMainClient/XWelfareView.cs new file mode 100644 index 00000000..ec43b5e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWelfareView.cs @@ -0,0 +1,613 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWelfareView : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/Welfare/WelfareDlg"; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + private Dictionary m_AllTabs = new Dictionary(); + + public Dictionary m_AllHandlers = new Dictionary(); + + private XSysDefine m_currentDefine = XSysDefine.XSys_None; + + private XSysDefine m_normalDefine = XSysDefine.XSys_None; + + private XWelfareDocument _Doc; + + private bool m_InitTab = true; + + protected override void OnLoad() + { + base.OnLoad(); + this.m_InitTab = true; + } + + private void RegisterHandler(XSysDefine define) where T : DlgHandlerBase, new() + { + bool flag = !this.m_AllHandlers.ContainsKey(define); + if (flag) + { + T t = default(T); + t = DlgHandlerBase.EnsureCreate(ref t, base.uiBehaviour.m_RightHandlerParent, false, this); + this.m_AllHandlers.Add(define, t); + } + } + + private void RemoveHandler(XSysDefine define) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_AllHandlers.TryGetValue(define, out dlgHandlerBase); + if (flag) + { + DlgHandlerBase.EnsureUnload(ref dlgHandlerBase); + this.m_AllHandlers.Remove(define); + } + } + + protected override void OnUnload() + { + this.RemoveHandler(XSysDefine.XSys_Welfare_GiftBag); + this.RemoveHandler(XSysDefine.XSys_Welfare_StarFund); + this.RemoveHandler(XSysDefine.XSys_Welfare_FirstRechange); + this.RemoveHandler(XSysDefine.XSyS_Welfare_RewardBack); + this.RemoveHandler(XSysDefine.XSys_ReceiveEnergy); + this.RemoveHandler(XSysDefine.XSys_Reward_Login); + this.RemoveHandler(XSysDefine.XSys_Welfare_MoneyTree); + this.RemoveHandler(XSysDefine.XSys_Welfare_KingdomPrivilege); + this.RemoveHandler(XSysDefine.XSys_Welfare_NiceGirl); + this.RemoveHandler(XSysDefine.XSys_Welfare_YyMall); + this.m_AllHandlers.Clear(); + this.m_AllTabs.Clear(); + this._Doc.View = null; + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this._Doc = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + this._Doc.View = this; + this.RegisterHandler(XSysDefine.XSys_Welfare_GiftBag); + this.RegisterHandler(XSysDefine.XSys_Welfare_StarFund); + this.RegisterHandler(XSysDefine.XSys_Welfare_FirstRechange); + this.RegisterHandler(XSysDefine.XSyS_Welfare_RewardBack); + this.RegisterHandler(XSysDefine.XSys_ReceiveEnergy); + this.RegisterHandler(XSysDefine.XSys_Reward_Login); + this.RegisterHandler(XSysDefine.XSys_Welfare_MoneyTree); + this.RegisterHandler(XSysDefine.XSys_Welfare_KingdomPrivilege); + this.RegisterHandler(XSysDefine.XSys_Welfare_NiceGirl); + this.RegisterHandler(XSysDefine.XSys_Welfare_YyMall); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + public void Show(XSysDefine define = XSysDefine.XSys_None) + { + bool flag = define == XSysDefine.XSys_Welfare_KingdomPrivilege_Court || define == XSysDefine.XSys_Welfare_KingdomPrivilege_Commerce || define == XSysDefine.XSys_Welfare_KingdomPrivilege_Adventurer; + if (flag) + { + define = XSysDefine.XSys_Welfare_KingdomPrivilege; + } + bool flag2 = !base.IsVisible(); + if (flag2) + { + this.m_normalDefine = define; + this.SetVisibleWithAnimation(true, null); + } + else + { + this.SelectTab(define); + } + } + + public void RefershRewardBack() + { + bool flag = this.m_AllHandlers.ContainsKey(XSysDefine.XSyS_Welfare_RewardBack) && this.m_AllTabs.ContainsKey(XSysDefine.XSyS_Welfare_RewardBack); + if (flag) + { + bool bChecked = this.m_AllTabs[XSysDefine.XSyS_Welfare_RewardBack].bChecked; + if (bChecked) + { + this.RefreshData(); + XWelfareRewardBackHandler xwelfareRewardBackHandler = (XWelfareRewardBackHandler)this.m_AllHandlers[XSysDefine.XSyS_Welfare_RewardBack]; + xwelfareRewardBackHandler.OnCencelBuy(null); + } + } + } + + protected override void OnShow() + { + base.OnShow(); + this.RefreshData(); + this._Doc.ReqPayAllInfo(); + this._Doc.ReqRewardInfo(); + this._Doc.ReqMoneyTreeInfo(); + this._Doc.ServerPushRewardBack = false; + this._Doc.ServerPushMoneyTree = false; + XPlatformAbilityDocument.Doc.QueryQQVipInfo(); + bool flag = DlgBase.singleton.IsVisible(); + if (flag) + { + DlgBase.singleton.SetVisible(false, true); + } + } + + protected override void OnHide() + { + base.OnHide(); + foreach (KeyValuePair keyValuePair in this.m_AllHandlers) + { + keyValuePair.Value.SetVisible(false); + } + this.m_InitTab = true; + } + + private void InitTabs() + { + this.m_AllTabs.Clear(); + List list = new List(); + base.uiBehaviour.m_TabPool.FakeReturnAll(); + for (int i = 0; i < XWelfareDocument.WelfareTable.Table.Length; i++) + { + PayWelfareTable.RowData rowData = XWelfareDocument.WelfareTable.Table[i]; + XSysDefine sysID = (XSysDefine)rowData.SysID; + bool flag = this._Doc.IsSystemAvailable(sysID); + if (flag) + { + list.Add(sysID); + IXUICheckBox ixuicheckBox = base.uiBehaviour.m_TabPool.FetchGameObject(false).GetComponent("XUICheckBox") as IXUICheckBox; + ixuicheckBox.gameObject.transform.parent = base.uiBehaviour.m_TabList.gameObject.transform; + ixuicheckBox.gameObject.transform.localScale = Vector3.one; + ixuicheckBox.ID = (ulong)((long)XWelfareDocument.WelfareTable.Table[i].SysID); + this.InitTabInfo(ixuicheckBox.gameObject, rowData); + ixuicheckBox.RegisterOnCheckEventHandler(new CheckBoxOnCheckEventHandler(this.OnTabClicked)); + this.m_AllTabs.Add(sysID, ixuicheckBox); + } + } + base.uiBehaviour.m_TabPool.ActualReturnAll(false); + base.uiBehaviour.m_TabList.Refresh(); + this.SelectDefaultTab(list); + } + + private void InitTabInfo(GameObject tab, PayWelfareTable.RowData data) + { + IXUILabel ixuilabel = tab.transform.Find("Title").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite = tab.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite; + IXUISprite ixuisprite2 = tab.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + IXUILabel ixuilabel2 = tab.transform.Find("Selected/Title1").GetComponent("XUILabel") as IXUILabel; + IXUISprite ixuisprite3 = tab.transform.Find("Selected/Icon").GetComponent("XUISprite") as IXUISprite; + ixuilabel.SetText(data.TabName); + ixuilabel2.SetText(data.TabName); + ixuisprite.SetAlpha(0f); + ixuisprite2.SetSprite(data.TabIcon); + ixuisprite3.SetSprite(data.TabIcon); + } + + private void SelectDefaultTab(List listOpen) + { + List list = new List(); + string[] andSeparateValue = XSingleton.singleton.GetAndSeparateValue("WelfareChildSysOrder", XGlobalConfig.ListSeparator); + for (int i = 0; i < andSeparateValue.Length; i++) + { + int num = listOpen.IndexOf((XSysDefine)int.Parse(andSeparateValue[i])); + bool flag = num >= 0; + if (flag) + { + list.Add(listOpen[num]); + listOpen.RemoveAt(num); + } + } + list.AddRange(listOpen); + bool flag2 = false; + bool flag3 = this.m_normalDefine == XSysDefine.XSys_None; + if (flag3) + { + for (int j = 0; j < list.Count; j++) + { + bool tabRedpointState = this._Doc.GetTabRedpointState(list[j]); + if (tabRedpointState) + { + this.m_AllTabs[list[j]].bChecked = true; + bool flag4 = this.m_AllHandlers.ContainsKey(list[j]); + if (flag4) + { + this.SetHandlerVisible(list[j], true); + } + flag2 = true; + break; + } + } + } + else + { + for (int k = 0; k < list.Count; k++) + { + bool flag5 = list[k] == this.m_normalDefine; + if (flag5) + { + this.m_normalDefine = XSysDefine.XSys_None; + this.m_AllTabs[list[k]].bChecked = true; + this.SetHandlerVisible(list[k], true); + flag2 = true; + break; + } + } + this.m_normalDefine = XSysDefine.XSys_None; + } + bool flag6 = !flag2 && list.Count > 0; + if (flag6) + { + this.m_AllTabs[list[0]].bChecked = true; + bool flag7 = this.m_AllHandlers.ContainsKey(list[0]); + if (flag7) + { + this.SetHandlerVisible(list[0], true); + } + } + } + + public void RefreshRedpoint() + { + foreach (KeyValuePair keyValuePair in this.m_AllTabs) + { + bool flag = keyValuePair.Value != null && keyValuePair.Value.IsVisible(); + if (flag) + { + IXUISprite ixuisprite = keyValuePair.Value.gameObject.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite; + ixuisprite.SetAlpha((float)(this._Doc.GetRedPoint(keyValuePair.Key) ? 1 : 0)); + } + bool flag2 = keyValuePair.Key == XSysDefine.XSyS_Welfare_RewardBack; + if (flag2) + { + IXUISprite ixuisprite2 = keyValuePair.Value.gameObject.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite; + bool flag3 = this.m_AllHandlers.ContainsKey(XSysDefine.XSyS_Welfare_RewardBack); + if (flag3) + { + XWelfareRewardBackHandler xwelfareRewardBackHandler = (XWelfareRewardBackHandler)this.m_AllHandlers[XSysDefine.XSyS_Welfare_RewardBack]; + bool flag4 = xwelfareRewardBackHandler.HasRedPoint() && !this._Doc.GetFirstClick(XSysDefine.XSyS_Welfare_RewardBack); + if (flag4) + { + ixuisprite2.SetAlpha(1f); + } + else + { + ixuisprite2.SetAlpha(0f); + } + } + else + { + ixuisprite2.SetAlpha(0f); + } + } + bool flag5 = keyValuePair.Key == XSysDefine.XSys_Welfare_MoneyTree; + if (flag5) + { + IXUISprite ixuisprite3 = keyValuePair.Value.gameObject.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite; + bool flag6 = this.m_AllHandlers.ContainsKey(XSysDefine.XSys_Welfare_MoneyTree); + if (flag6) + { + bool flag7 = this._Doc.WelfareMoneyTreeData.free_all_count > this._Doc.WelfareMoneyTreeData.free_count && this._Doc.WelfareMoneyTreeData.free_count + this._Doc.WelfareMoneyTreeData.count < this._Doc.WelfareMoneyTreeData.all_count && (this._Doc.WelfareMoneyTreeData.left_time == 0u || this._Doc.WelfareMoneyTreeData.left_time < Time.time - this._Doc.WelfareMoneyTreeData.req_time); + if (flag7) + { + ixuisprite3.SetAlpha(1f); + } + else + { + ixuisprite3.SetAlpha(0f); + } + } + } + bool flag8 = keyValuePair.Key == XSysDefine.XSys_Reward_Login || keyValuePair.Key == XSysDefine.XSys_ReceiveEnergy; + if (flag8) + { + IXUISprite ixuisprite4 = keyValuePair.Value.gameObject.transform.Find("redpoint").GetComponent("XUISprite") as IXUISprite; + ixuisprite4.SetAlpha((float)(XSingleton.singleton.GetSysRedPointState(keyValuePair.Key) ? 1 : 0)); + } + } + } + + public bool HadRewardBackRedPoint() + { + bool serverPushRewardBack = this._Doc.ServerPushRewardBack; + bool result; + if (serverPushRewardBack) + { + result = true; + } + else + { + bool flag = this.m_AllHandlers.ContainsKey(XSysDefine.XSyS_Welfare_RewardBack); + if (flag) + { + XWelfareRewardBackHandler xwelfareRewardBackHandler = (XWelfareRewardBackHandler)this.m_AllHandlers[XSysDefine.XSyS_Welfare_RewardBack]; + result = xwelfareRewardBackHandler.HasRedPoint(); + } + else + { + result = false; + } + } + return result; + } + + public bool HasMoneyTreeRedPoint() + { + bool serverPushMoneyTree = this._Doc.ServerPushMoneyTree; + bool result; + if (serverPushMoneyTree) + { + result = true; + } + else + { + bool flag = this.m_AllHandlers.ContainsKey(XSysDefine.XSys_Welfare_MoneyTree); + result = (flag && (this._Doc.WelfareMoneyTreeData.free_all_count > this._Doc.WelfareMoneyTreeData.free_count && this._Doc.WelfareMoneyTreeData.free_count + this._Doc.WelfareMoneyTreeData.count < this._Doc.WelfareMoneyTreeData.all_count) && (this._Doc.WelfareMoneyTreeData.left_time == 0u || this._Doc.WelfareMoneyTreeData.left_time < Time.time - this._Doc.WelfareMoneyTreeData.req_time)); + } + return result; + } + + private void SetHandlerVisible(XSysDefine define, bool isVisble) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_AllHandlers.TryGetValue(define, out dlgHandlerBase); + if (flag) + { + dlgHandlerBase.SetVisible(isVisble); + if (isVisble) + { + this.m_currentDefine = define; + } + } + } + + public DlgHandlerBase GetHandler(XSysDefine define) + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_AllHandlers.TryGetValue(define, out dlgHandlerBase); + DlgHandlerBase result; + if (flag) + { + result = dlgHandlerBase; + } + else + { + result = null; + } + return result; + } + + public bool OnTabClicked(IXUICheckBox checkbox) + { + bool flag = !checkbox.bChecked; + bool result; + if (flag) + { + result = false; + } + else + { + XSysDefine xsysDefine = (XSysDefine)checkbox.ID; + bool flag2 = this.m_currentDefine == xsysDefine; + if (flag2) + { + result = false; + } + else + { + this.SetHandlerVisible(this.m_currentDefine, false); + this.SetHandlerVisible(xsysDefine, true); + switch (this.m_currentDefine) + { + case XSysDefine.XSys_Welfare_GiftBag: + this._Doc.ReqPayClick(PayParamType.PAY_PARAM_AILEEN, XSysDefine.XSys_Welfare_GiftBag); + break; + case XSysDefine.XSys_Welfare_StarFund: + this._Doc.ReqPayClick(PayParamType.PAY_PARAM_GROWTH_FUND, XSysDefine.XSys_Welfare_StarFund); + break; + case XSysDefine.XSys_Welfare_FirstRechange: + this._Doc.ReqPayClick(PayParamType.PAY_PARAM_FIRSTAWARD, XSysDefine.XSys_Welfare_FirstRechange); + break; + case XSysDefine.XSyS_Welfare_RewardBack: + this._Doc.RegisterFirstClick(XSysDefine.XSyS_Welfare_RewardBack, true, true); + this._Doc.FirstRewardBack = true; + break; + case XSysDefine.XSys_Welfare_MoneyTree: + this._Doc.RegisterFirstClick(XSysDefine.XSys_Welfare_MoneyTree, true, true); + this._Doc.FirstMoneyTree = true; + break; + case XSysDefine.XSys_Welfare_KingdomPrivilege: + this._Doc.ReqPayClick(PayParamType.PAY_PARAM_MEMBER, XSysDefine.XSys_Welfare_KingdomPrivilege); + break; + } + this.RefreshData(); + this._Doc.ReqPayAllInfo(); + result = true; + } + } + return result; + } + + public void RefreshData() + { + bool flag = !base.IsVisible(); + if (!flag) + { + bool initTab = this.m_InitTab; + if (initTab) + { + this.m_InitTab = false; + this.InitTabs(); + this.RefreshRedpoint(); + } + DlgHandlerBase dlgHandlerBase; + bool flag2 = this.m_AllHandlers.TryGetValue(this.m_currentDefine, out dlgHandlerBase) && dlgHandlerBase.IsVisible(); + if (flag2) + { + dlgHandlerBase.RefreshData(); + bool flag3 = this.m_currentDefine == XSysDefine.XSyS_Welfare_RewardBack; + if (flag3) + { + this._Doc.FirstRewardBack = true; + this._Doc.RegisterFirstClick(XSysDefine.XSyS_Welfare_RewardBack, true, true); + } + } + } + } + + public void SelectTab(XSysDefine tab) + { + bool flag = !base.IsVisible() || this.m_InitTab; + if (!flag) + { + IXUICheckBox ixuicheckBox; + bool flag2 = this.m_AllTabs.TryGetValue(tab, out ixuicheckBox); + if (flag2) + { + bool flag3 = this.m_AllTabs.ContainsKey(this.m_currentDefine); + if (flag3) + { + this.m_AllTabs[this.m_currentDefine].bChecked = false; + } + this.m_AllTabs[tab].bChecked = true; + bool flag4 = this.m_AllHandlers.ContainsKey(tab); + if (flag4) + { + this.SetHandlerVisible(tab, true); + } + } + } + } + + public void RefreshRewardBackData() + { + DlgHandlerBase dlgHandlerBase; + bool flag = this.m_AllHandlers.TryGetValue(XSysDefine.XSyS_Welfare_RewardBack, out dlgHandlerBase); + if (flag) + { + dlgHandlerBase.RefreshData(); + } + } + + public void OnGetRewardInfo(ItemFindBackInfoRes oRes) + { + bool flag = this.m_currentDefine == XSysDefine.XSyS_Welfare_RewardBack; + if (flag) + { + DlgHandlerBase dlgHandlerBase; + bool flag2 = this.m_AllHandlers.TryGetValue(this.m_currentDefine, out dlgHandlerBase) && dlgHandlerBase.IsVisible(); + if (flag2) + { + dlgHandlerBase.RefreshData(); + } + } + } + + public void OnGetMoneyTreeInfo(uint type, uint count, GoldClickRes clickres) + { + this.RefreshRedpoint(); + bool flag = this.m_currentDefine == XSysDefine.XSys_Welfare_MoneyTree; + if (flag) + { + DlgHandlerBase dlgHandlerBase; + bool flag2 = this.m_AllHandlers.TryGetValue(this.m_currentDefine, out dlgHandlerBase) && dlgHandlerBase.IsVisible(); + if (flag2) + { + dlgHandlerBase.RefreshData(); + } + this._Doc.RegisterFirstClick(XSysDefine.XSys_Welfare_MoneyTree, true, true); + this._Doc.FirstMoneyTree = true; + } + } + + public bool OnCloseClicked(IXUIButton sp) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + public bool CheckActiveMemberPrivilege(MemberPrivilege type) + { + XWelfareDocument specificDocument = XDocuments.GetSpecificDocument(XWelfareDocument.uuID); + bool flag = specificDocument.IsOwnMemberPrivilege(type); + bool result; + if (flag) + { + result = true; + } + else + { + PayMemberTable.RowData memberPrivilegeConfig = XWelfareDocument.Doc.GetMemberPrivilegeConfig(type); + bool flag2 = memberPrivilegeConfig == null; + if (flag2) + { + result = false; + } + else + { + string @string = XStringDefineProxy.GetString("PAY_KINGDOM_GO_TO_BUY", new object[] + { + memberPrivilegeConfig.Name + }); + string string2 = XStringDefineProxy.GetString("COMMON_OK"); + string string3 = XStringDefineProxy.GetString("COMMON_CANCEL"); + DlgBase.singleton.SetVisible(true, true); + DlgBase.singleton.SetSingleButtonMode(false); + DlgBase.singleton.SetLabelsWithSymbols(@string, string2, string3); + DlgBase.singleton.SetModalCallback(new ButtonClickEventHandler(this.OnActiveMemberPrivilege), null); + result = false; + } + } + return result; + } + + private bool OnActiveMemberPrivilege(IXUIButton btn) + { + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.Show(XSysDefine.XSys_Welfare_KingdomPrivilege); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWelfareView.cs.meta b/Client/Assets/Scripts/XMainClient/XWelfareView.cs.meta new file mode 100644 index 00000000..658ab4bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWelfareView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ae74edba9b1a12a4e972a66c9135a4ba +timeCreated: 1611404340 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWoozyComponent.cs b/Client/Assets/Scripts/XMainClient/XWoozyComponent.cs new file mode 100644 index 00000000..a7d29f61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWoozyComponent.cs @@ -0,0 +1,347 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal sealed class XWoozyComponent : XComponent + { + public override uint ID + { + get + { + return XWoozyComponent.uuID; + } + } + + public bool OnBroken + { + get + { + return this._OnBroken; + } + } + + public bool OnRecover + { + get + { + return this._OnRecover; + } + } + + public bool InTransfer + { + get + { + return this._transfer; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("WoozyComponent"); + + private bool _OnBroken = false; + + private bool _OnRecover = false; + + private bool _OnWoozy = false; + + private bool _recovery = false; + + private bool _transfer = false; + + private bool _woozy_enabled = false; + + private XFx _fx = null; + + private uint _token_on = 0u; + + private uint _token_off = 0u; + + protected override void EventSubscribe() + { + base.RegisterEvent(XEventDefine.XEvent_ArmorBroken, new XComponent.XEventHandler(this.OnArmorBroken)); + base.RegisterEvent(XEventDefine.XEvent_ArmorRecover, new XComponent.XEventHandler(this.OnArmorRecover)); + base.RegisterEvent(XEventDefine.XEvent_RealDead, new XComponent.XEventHandler(this.OnDeath)); + } + + public override void Attached() + { + this._woozy_enabled = this._entity.Attributes.HasWoozyStatus; + } + + public override void OnDetachFromHost() + { + this.Clear(); + base.OnDetachFromHost(); + } + + public override void Update(float fDeltaT) + { + bool onRecover = this._OnRecover; + if (onRecover) + { + this.RecoverArmor(); + } + bool onBroken = this._OnBroken; + if (onBroken) + { + this.BrokenArmor(); + } + bool onWoozy = this._OnWoozy; + if (onWoozy) + { + this.Woozy(); + } + this.UpdateFx(); + } + + private bool OnArmorBroken(XEventArgs e) + { + this._OnBroken = true; + this._transfer = true; + return true; + } + + private bool OnArmorRecover(XEventArgs e) + { + this._OnRecover = true; + this._transfer = true; + return true; + } + + private bool OnDeath(XEventArgs e) + { + this.Clear(); + return true; + } + + private void Clear() + { + bool flag = this._fx != null; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + this._OnBroken = false; + this._OnRecover = false; + this._transfer = false; + XSingleton.singleton.KillTimer(this._token_on); + XSingleton.singleton.KillTimer(this._token_off); + } + + private void BrokenArmor() + { + bool woozy_enabled = this._woozy_enabled; + if (woozy_enabled) + { + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + XSingleton.singleton.Idled(this._entity); + this._entity.SkillMgr.CoolDown(this._entity.SkillMgr.GetBrokenIdentity()); + this._entity.Net.ReportSkillAction(null, this._entity.SkillMgr.GetBrokenIdentity(), -1); + } + this._OnBroken = false; + this._entity.OverrideAnimClip("Idle", this._entity.Present.PresentLib.Feeble, true, false); + float time = this._entity.SkillMgr.GetSkill(this._entity.SkillMgr.GetBrokenIdentity()).Soul.Time; + this._token_on = XSingleton.singleton.SetTimer(time - Time.deltaTime, new XTimerMgr.ElapsedEventHandler(this.WoozyOn), null); + this._entity.BeginSlowMotion(0.3f, (time > 0.3f) ? 0.3f : time, false); + XCoolDownAllSkillsArgs @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + XSingleton.singleton.FireEvent(@event); + } + else + { + this._OnBroken = false; + this.WoozyOn(null); + } + } + + private void RecoverArmor() + { + bool woozy_enabled = this._woozy_enabled; + if (woozy_enabled) + { + XEntity target = null; + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + List list = (this._entity.AI != null) ? this._entity.AI.EnmityList.GetHateEntity(false) : null; + bool flag2 = list != null && list.Count > 0; + if (flag2) + { + target = list[0]; + } + this._entity.SkillMgr.CoolDown(this._entity.SkillMgr.GetRecoveryIdentity()); + } + bool flag3 = XSingleton.singleton.SyncMode || this._entity.Net.ReportSkillAction(target, this._entity.SkillMgr.GetRecoveryIdentity(), -1); + if (flag3) + { + XSkillCore skill = this._entity.SkillMgr.GetSkill(this._entity.SkillMgr.GetRecoveryIdentity()); + float time = this._entity.SkillMgr.GetSkill(this._entity.SkillMgr.GetRecoveryIdentity()).Soul.Time; + this._token_off = XSingleton.singleton.SetTimer(time - Time.deltaTime, new XTimerMgr.ElapsedEventHandler(this.WoozyOff), null); + this._OnRecover = false; + } + bool flag4 = !this._OnRecover; + if (flag4) + { + this._recovery = false; + bool flag5 = this._fx != null; + if (flag5) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + } + } + else + { + this._OnRecover = false; + this.WoozyOff(null); + } + } + + private void Woozy() + { + bool recovery = this._recovery; + if (recovery) + { + bool flag = !XSingleton.singleton.SyncMode; + if (flag) + { + XSingleton.singleton.Idled(this._entity); + } + bool flag2 = !string.IsNullOrEmpty(this._entity.Present.PresentLib.FeebleFx); + if (flag2) + { + this.PlayFx(this._entity.Present.PresentLib.FeebleFx, true); + } + } + else + { + this._entity.OverrideAnimClip("Idle", this._entity.Present.PresentLib.AttackIdle, true, false); + } + this._OnWoozy = false; + } + + private void PlayFx(string fx, bool follow) + { + bool flag = this._fx != null && this._fx.FxName != fx; + if (flag) + { + XSingleton.singleton.DestroyFx(this._fx, true); + this._fx = null; + } + bool flag2 = XEntity.FilterFx(this._entity, XFxMgr.FilterFxDis1); + if (!flag2) + { + bool flag3 = this._fx == null; + if (flag3) + { + this._fx = XSingleton.singleton.CreateFx(fx, null, true); + this._fx.Play(this._entity.EngineObject, Vector3.zero, Vector3.one, 1f, follow, false, "", 0f); + } + } + } + + private void WoozyOn(object o) + { + this._recovery = true; + bool woozy_enabled = this._woozy_enabled; + if (woozy_enabled) + { + this._OnWoozy = true; + } + this._transfer = false; + XWoozyOnArgs @event = XEventPool.GetEvent(); + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + @event.Self = this._entity; + XSingleton.singleton.FireEvent(@event); + } + + private void WoozyOff(object o) + { + bool woozy_enabled = this._woozy_enabled; + if (woozy_enabled) + { + this._OnWoozy = true; + } + this._transfer = false; + XWoozyOffArgs @event = XEventPool.GetEvent(); + @event.Firer = this._entity; + XSingleton.singleton.FireEvent(@event); + @event = XEventPool.GetEvent(); + @event.Firer = XSingleton.singleton.Doc; + @event.Self = this._entity; + XSingleton.singleton.FireEvent(@event); + } + + private void UpdateFx() + { + bool recovery = this._recovery; + if (recovery) + { + switch (this._entity.GetQTESpecificPhase()) + { + case KKSG.XQTEState.QTE_HitBackPresent: + case KKSG.XQTEState.QTE_HitBackStraight: + case KKSG.XQTEState.QTE_HitRollPresent: + case KKSG.XQTEState.QTE_HitRollStraight: + { + this.PlayFx(this._entity.Present.PresentLib.RecoveryHitSlowFX, true); + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetupSpeedFx(this._entity, true, new Color32(byte.MaxValue, 174, 0, byte.MaxValue)); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetupSpeedFx(this._entity, true, new Color32(byte.MaxValue, 174, 0, byte.MaxValue)); + } + goto IL_1CC; + } + case KKSG.XQTEState.QTE_HitFlyPresent: + case KKSG.XQTEState.QTE_HitFlyLand: + case KKSG.XQTEState.QTE_HitFlyBounce: + case KKSG.XQTEState.QTE_HitFreeze: + { + this.PlayFx(this._entity.Present.PresentLib.RecoveryHitStopFX, true); + bool flag3 = DlgBase.singleton.IsLoaded(); + if (flag3) + { + DlgBase.singleton.SetupSpeedFx(this._entity, true, Color.red); + } + bool flag4 = DlgBase.singleton.IsLoaded(); + if (flag4) + { + DlgBase.singleton.SetupSpeedFx(this._entity, true, Color.red); + } + goto IL_1CC; + } + } + this.PlayFx(this._entity.Present.PresentLib.RecoveryFX, true); + bool flag5 = DlgBase.singleton.IsLoaded(); + if (flag5) + { + DlgBase.singleton.SetupSpeedFx(this._entity, false, Color.white); + } + bool flag6 = DlgBase.singleton.IsLoaded(); + if (flag6) + { + DlgBase.singleton.SetupSpeedFx(this._entity, false, Color.white); + } + IL_1CC:; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWoozyComponent.cs.meta b/Client/Assets/Scripts/XMainClient/XWoozyComponent.cs.meta new file mode 100644 index 00000000..f15619e6 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWoozyComponent.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a6b85e4e001804d498068c6fd81dea39 +timeCreated: 1611404289 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs b/Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs new file mode 100644 index 00000000..3efc257a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XWoozyOffArgs : XEventArgs + { + public XEntity Self; + + public XWoozyOffArgs() + { + this._eDefine = XEventDefine.XEvent_WoozyOff; + } + + public override void Recycle() + { + base.Recycle(); + this.Self = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs.meta new file mode 100644 index 00000000..43b7c7f9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWoozyOffArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 29e7feaec1f2660499361314e431907a +timeCreated: 1611403493 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs b/Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs new file mode 100644 index 00000000..8d72a386 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs @@ -0,0 +1,21 @@ +using System; + +namespace XMainClient +{ + internal class XWoozyOnArgs : XEventArgs + { + public XEntity Self; + + public XWoozyOnArgs() + { + this._eDefine = XEventDefine.XEvent_WoozyOn; + } + + public override void Recycle() + { + base.Recycle(); + this.Self = null; + XEventPool.Recycle(this); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs.meta b/Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs.meta new file mode 100644 index 00000000..d88f2f0a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWoozyOnArgs.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b4e38c495fbe147488aa6737b8d0a620 +timeCreated: 1611404393 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XWorldStage.cs b/Client/Assets/Scripts/XMainClient/XWorldStage.cs new file mode 100644 index 00000000..5e3d083c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWorldStage.cs @@ -0,0 +1,61 @@ +using System; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XWorldStage : XConcreteStage + { + public XWorldStage() : base(EXStage.World) + { + } + + protected override void InstallCamera() + { + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraSoloComponent.uuID); + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraVAdjustComponent.uuID); + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraIntellectiveFollow.uuID); + XSingleton.singleton.CreateComponent(XSingleton.singleton.GameCamera, XCameraWallComponent.uuID); + base.InstallCamera(); + } + + public override void OnEnterStage(EXStage eOld) + { + base.OnEnterStage(eOld); + } + + public override void OnLeaveStage(EXStage eNew) + { + base.OnLeaveStage(eNew); + } + + public override void OnEnterScene(uint sceneid, bool transfer) + { + base.OnEnterScene(sceneid, transfer); + XSingleton.singleton.m_uiTool.SetRootPanelUpdateFreq(3); + XSingleton.singleton.LoadWorldUI(this._eStage); + bool flag = DlgBase.singleton.IsLoaded(); + if (flag) + { + DlgBase.singleton.SetVisible(true, true); + } + bool flag2 = DlgBase.singleton.IsLoaded(); + if (flag2) + { + DlgBase.singleton.SetVisible(true, true); + } + XSingleton.singleton.InitAIMgr(); + } + + public override void OnLeaveScene(bool transfer) + { + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.OnLeaveScene(); + XSingleton.singleton.UnloadWorldUI(); + base.OnLeaveScene(transfer); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XWorldStage.cs.meta b/Client/Assets/Scripts/XMainClient/XWorldStage.cs.meta new file mode 100644 index 00000000..f810679e --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XWorldStage.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 8ce0dfcad69dbb44a9a55004ae585124 +timeCreated: 1611404102 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XYYMallCategoryHandler.cs b/Client/Assets/Scripts/XMainClient/XYYMallCategoryHandler.cs new file mode 100644 index 00000000..80be4bab --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XYYMallCategoryHandler.cs @@ -0,0 +1,144 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XYYMallCategoryHandler : DlgHandlerBase + { + protected override string FileName + { + get + { + return "GameSystem/Welfare/YYMallCategory"; + } + } + + private IXUIButton m_Close; + + private XUIPool m_SpritePool = new XUIPool(XSingleton.singleton.m_uiTool); + + private IXUIScrollView m_ScrollView; + + private IXUITable m_Table; + + private List m_TypeList = new List(); + + private List> m_CategoryList = new List>(); + + private List m_TypeTitle = new List(); + + protected override void OnShow() + { + base.OnShow(); + this.ShowIllustration(); + } + + protected override void Init() + { + this.m_TypeList.Clear(); + this.m_TypeTitle.Clear(); + this.m_Close = (base.PanelObject.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + for (int i = 1; i < XFastEnumIntEqualityComparer.ToInt(YYMallCategory.MAX); i++) + { + YYMallCategory yymallCategory = (YYMallCategory)i; + string s = yymallCategory.ToString(); + Transform item = base.PanelObject.transform.Find(XSingleton.singleton.StringCombine("Bg/ScrollView/Table/", s)); + this.m_TypeTitle.Add(item); + IXUIList ixuilist = base.PanelObject.transform.Find(XSingleton.singleton.StringCombine("Bg/ScrollView/Table/", s, "/Grid")).GetComponent("XUIList") as IXUIList; + ixuilist.RegisterRepositionHandle(new OnAfterRepostion(this.OnListRefreshFinished)); + this.m_TypeList.Add(ixuilist); + } + Transform transform = base.PanelObject.transform.Find("Bg/ScrollView/ItemTpl"); + this.m_SpritePool.SetupPool(transform.parent.gameObject, transform.gameObject, 10u, false); + this.m_ScrollView = (base.PanelObject.transform.Find("Bg/ScrollView").GetComponent("XUIScrollView") as IXUIScrollView); + this.m_Table = (base.PanelObject.transform.Find("Bg/ScrollView/Table").GetComponent("XUITable") as IXUITable); + } + + private void OnListRefreshFinished() + { + this.m_Table.Reposition(); + this.m_ScrollView.ResetPosition(); + } + + public override void RegisterEvent() + { + this.m_Close.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnCloseClicked)); + } + + protected override void OnHide() + { + this.m_CategoryList.Clear(); + base.OnHide(); + } + + private void ShowIllustration() + { + this.m_CategoryList = XNormalShopDocument.ShopDoc.GetShopItemByPlayLevelAndShopType(XSysDefine.XSys_Welfare_YyMall); + this.m_ScrollView.ResetPosition(); + this.m_SpritePool.FakeReturnAll(); + this.CreateIcon(YYMallCategory.Resource); + this.CreateIcon(YYMallCategory.Special); + this.CreateIcon(YYMallCategory.Privilege); + this.m_SpritePool.ActualReturnAll(true); + } + + private void CreateIcon(YYMallCategory category) + { + int index = XFastEnumIntEqualityComparer.ToInt(category) - 1; + IXUIList ixuilist = this.m_TypeList[index]; + List list = this.m_CategoryList[index]; + this.m_TypeTitle[index].gameObject.SetActive(list.Count > 0); + for (int i = 0; i < list.Count; i++) + { + GameObject gameObject = this.m_SpritePool.FetchGameObject(false); + gameObject.transform.parent = ixuilist.gameObject.transform; + XSingleton.singleton.normalItemDrawer.DrawItem(gameObject, (int)list[i], 1, false); + IXUISprite ixuisprite = gameObject.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)list[i]; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickItemIcon)); + XSingleton.singleton.m_uiTool.ChangePanel(gameObject, ixuilist.GetParentUIRect(), ixuilist.GetParentPanel()); + } + ixuilist.Refresh(); + } + + private void OnClickItemIcon(IXUISprite spr) + { + XItem mainItem = XBagDocument.MakeXItem((int)spr.ID, false); + XSingleton.singleton.ShowTooltipDialogWithSearchingCompare(mainItem, spr, false, 0u); + } + + private void SetItemInfo(GameObject obj, uint itemID) + { + IXUISprite ixuisprite = obj.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)itemID; + XSingleton.singleton.normalItemDrawer.DrawItem(obj, (int)itemID, 0, false); + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(XSingleton.singleton.OnItemClick)); + } + + private void SetSpriteInfo(GameObject obj, uint spriteID) + { + XSingleton.singleton.normalItemDrawer.DrawItem(obj, (int)spriteID, 0, false); + IXUISprite ixuisprite = obj.transform.Find("Icon").GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)spriteID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnSpriteIconClicked)); + } + + private void OnSpriteIconClicked(IXUISprite spr) + { + uint spriteID = (uint)spr.ID; + XSpriteSystemDocument specificDocument = XDocuments.GetSpecificDocument(XSpriteSystemDocument.uuID); + DlgBase.singleton.ShowDetail(spriteID); + } + + private bool OnCloseClicked(IXUIButton sp) + { + base.SetVisible(false); + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XYYMallCategoryHandler.cs.meta b/Client/Assets/Scripts/XMainClient/XYYMallCategoryHandler.cs.meta new file mode 100644 index 00000000..f613c6b2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XYYMallCategoryHandler.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 561795dcf24ca114b8bf3965ef2fd21a +timeCreated: 1611403741 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XYorozuyaDocument.cs b/Client/Assets/Scripts/XMainClient/XYorozuyaDocument.cs new file mode 100644 index 00000000..c65d78be --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XYorozuyaDocument.cs @@ -0,0 +1,107 @@ +using System; +using System.Reflection; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class XYorozuyaDocument : XDocComponent + { + public override uint ID + { + get + { + return XYorozuyaDocument.uuID; + } + } + + public byte SelectID { get; set; } + + public static XYorozuyaDocument Doc + { + get + { + return XSingleton.singleton.Doc.GetXComponent(XYorozuyaDocument.uuID) as XYorozuyaDocument; + } + } + + public YorozuyaTable YorozuyaTab + { + get + { + return XYorozuyaDocument.m_yorozuyaTab; + } + } + + public new static readonly uint uuID = XSingleton.singleton.XHash("XYorozuyaDocument"); + + public static XTableAsyncLoader AsyncLoader = new XTableAsyncLoader(); + + private static YorozuyaTable m_yorozuyaTab = new YorozuyaTable(); + + public static void Execute(OnLoadedCallback callback = null) + { + XYorozuyaDocument.AsyncLoader.AddTask("Table/Yorozuya", XYorozuyaDocument.m_yorozuyaTab, false); + XYorozuyaDocument.AsyncLoader.Execute(callback); + } + + public static void OnTableLoaded() + { + } + + public override void OnAttachToHost(XObject host) + { + base.OnAttachToHost(host); + } + + protected override void EventSubscribe() + { + base.EventSubscribe(); + } + + public override void OnDetachFromHost() + { + base.OnDetachFromHost(); + } + + protected override void OnReconnected(XReconnectedEventArgs arg) + { + } + + public override void OnEnterSceneFinally() + { + base.OnEnterSceneFinally(); + } + + public void ReqEnterScene(int id) + { + RpcC2G_EnterLeisureScene rpcC2G_EnterLeisureScene = new RpcC2G_EnterLeisureScene(); + rpcC2G_EnterLeisureScene.oArg.index = id; + XSingleton.singleton.Send(rpcC2G_EnterLeisureScene); + } + + public YorozuyaTable.RowData GetRowData(byte id) + { + return XYorozuyaDocument.m_yorozuyaTab.GetByID(id); + } + + public void OnReqBack(EnterLeisureSceneRes oRes) + { + bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; + if (flag) + { + string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; + XSingleton.singleton.OnGetInvalidRequest(fullName); + } + else + { + bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XYorozuyaDocument.cs.meta b/Client/Assets/Scripts/XMainClient/XYorozuyaDocument.cs.meta new file mode 100644 index 00000000..bd330e38 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XYorozuyaDocument.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e9a7d75254494114ca9cf7f452464c44 +timeCreated: 1611404757 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XYuyinView.cs b/Client/Assets/Scripts/XMainClient/XYuyinView.cs new file mode 100644 index 00000000..8b2e2dcb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XYuyinView.cs @@ -0,0 +1,463 @@ +using System; +using System.Collections.Generic; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUpdater; +using XUtliPoolLib; + +namespace XMainClient +{ + public class XYuyinView : DlgHandlerBase + { + protected override string FileName + { + get + { + return "Common/YuyinDlg"; + } + } + + public GameObject m_pool; + + public GameObject m_goCommon; + + public GameObject m_goFriend; + + public IXUIButton m_btnSetting; + + public IXUIButton m_btnMusic; + + public IXUIButton m_btnSpeak; + + public GameObject m_objMusic; + + public GameObject m_objSpeak; + + public IXUIPanel m_panel; + + public GameObject m_leftRoot; + + public GameObject m_rightRoot; + + public IXUITweenTool m_tween; + + public XUIPool m_CommonPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private bool m_CancelRecord = false; + + private Vector2 m_DragDistance = Vector2.zero; + + private int mType = 1; + + private static bool hideRealEff = false; + + public Vector3 farway = new Vector3(2000f, 2000f, 0f); + + private bool cacheGuild = false; + + private bool cacheTeam = false; + + private List m_trans = new List(); + + private XChatDocument chatDoc; + + private ChatOpen.RowData openRow; + + public void ResetPool() + { + bool flag = this.m_CommonPool != null; + if (flag) + { + this.m_CommonPool.ReturnAll(false); + } + } + + protected override void Init() + { + base.Init(); + this.m_panel = (base.transform.GetComponent("XUIPanel") as IXUIPanel); + this.m_tween = (base.transform.GetComponent("XUIPlayTween") as IXUITweenTool); + this.m_leftRoot = base.transform.transform.Find("leftRoot").gameObject; + this.m_rightRoot = base.transform.transform.Find("rightRoot").gameObject; + this.m_pool = base.transform.Find("pool").gameObject; + this.m_goCommon = base.transform.Find("pool/1").gameObject; + this.m_btnSetting = (base.transform.Find("pool/3").GetComponent("XUIButton") as IXUIButton); + this.m_btnMusic = (base.transform.Find("pool/4/MUSIC").GetComponent("XUIButton") as IXUIButton); + this.m_btnSpeak = (base.transform.Find("pool/4/SPEAK").GetComponent("XUIButton") as IXUIButton); + this.m_objMusic = base.transform.Find("pool/4/MUSIC/close").gameObject; + this.m_objSpeak = base.transform.Find("pool/4/SPEAK/close").gameObject; + this.m_CommonPool.SetupPool(this.m_pool, this.m_goCommon, 2u, true); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + this.m_btnSetting.RegisterClickEventHandler(new ButtonClickEventHandler(this.OpenInputView)); + this.m_btnMusic.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnMusicClick)); + this.m_btnSpeak.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnSpeakClick)); + } + + public void Init(int depth) + { + this.m_panel.SetDepth(depth); + } + + public override void OnUpdate() + { + bool flag = this.chatDoc != null; + if (flag) + { + bool flag2 = false; + XStage currentStage = XSingleton.singleton.CurrentStage; + bool flag3 = currentStage != null && currentStage.Stage == EXStage.Hall; + if (flag3) + { + bool flag4 = this.chatDoc.CheckTeam() != this.cacheTeam; + if (flag4) + { + flag2 = true; + } + bool flag5 = this.chatDoc.CheckGuild() != this.cacheGuild; + if (flag5) + { + flag2 = true; + } + } + bool flag6 = flag2; + if (flag6) + { + this.Refresh(this.mType); + } + } + } + + public void Show(bool active) + { + this.m_panel.gameObject.SetActive(active); + } + + public void Show(YuyinIconType type, int depth = 1) + { + this.Show((int)type, depth); + } + + public void Show(int type, int depth = 1) + { + this.mType = type; + this.Init(depth); + this.Refresh(type); + } + + public void Refresh(YuyinIconType type) + { + this.Refresh((int)type); + } + + public void Refresh(int type) + { + bool flag = this.chatDoc == null; + if (flag) + { + this.chatDoc = XDocuments.GetSpecificDocument(XChatDocument.uuID); + } + this.cacheGuild = this.chatDoc.CheckGuild(); + this.cacheTeam = this.chatDoc.CheckTeam(); + this.ResetPool(); + this.m_trans.Clear(); + this.openRow = this.chatDoc.GetYuyinRaw(type); + this.m_pool.transform.parent = ((this.openRow.pivot == 0) ? this.m_rightRoot.transform : this.m_leftRoot.transform); + this.m_pool.transform.localPosition = new Vector3((float)this.openRow.posX, (float)this.openRow.posY, 0f); + this.m_pool.transform.localScale = this.openRow.scale * Vector3.one; + this.m_panel.SetAlpha(this.openRow.alpha); + bool flag2 = this.openRow.real <= 0; + if (flag2) + { + List list = this.chatDoc.SortCommonIcons(type); + int num = Mathf.Min(this.openRow.max, list.Count); + for (int i = 0; i < num; i++) + { + GameObject gameObject = this.m_CommonPool.FetchGameObject(false); + this.m_trans.Add(gameObject.transform); + string sprName = this.chatDoc.GetRawData((ChatChannelType)list[i]).sprName; + IXUISprite ixuisprite = gameObject.transform.Find("Name").GetComponent("XUISprite") as IXUISprite; + bool flag3 = ixuisprite != null; + if (flag3) + { + ixuisprite.SetSprite(sprName); + } + IXUIButton ixuibutton = gameObject.transform.GetComponent("XUIButton") as IXUIButton; + ixuibutton.ID = (ulong)((long)list[i]); + ixuibutton.RegisterPressEventHandler(new ButtonPressEventHandler(this.OnItemPress)); + ixuibutton.RegisterDragEventHandler(new ButtonDragEventHandler(this.OnVoiceButtonDrag)); + } + } + bool flag4 = this.openRow.fade == 1; + if (flag4) + { + this.m_trans.Add(this.m_btnSetting.gameObject.transform); + } + else + { + this.m_btnSetting.gameObject.transform.localPosition = this.farway; + } + bool flag5 = this.openRow.real > 0; + if (flag5) + { + this.m_trans.Add(this.m_btnMusic.gameObject.transform); + this.m_trans.Add(this.m_btnSpeak.gameObject.transform); + bool flag6 = !XYuyinView.hideRealEff; + if (flag6) + { + XYuyinView.hideRealEff = true; + } + else + { + this.HideVoiceEff(null); + } + } + else + { + this.m_btnSpeak.gameObject.transform.localPosition = this.farway; + this.m_btnMusic.gameObject.transform.localPosition = this.farway; + } + this.GridItems(type); + } + + private void GridItems(int type) + { + bool flag = this.openRow == null; + if (!flag) + { + bool flag2 = this.openRow.pivot == 0; + int num = (this.openRow.real > 0) ? 70 : 55; + for (int i = 0; i < this.m_trans.Count; i++) + { + this.m_trans[i].localPosition = (flag2 ? new Vector3((float)(-(float)num * i), 0f, 0f) : new Vector3((float)(num * i), 0f, 0f)); + } + } + } + + public void OnItemPress(IXUIButton btn, bool isPressed) + { + GameObject gameObject = btn.gameObject.transform.Find("Effect").gameObject; + gameObject.SetActive(isPressed); + ulong id = btn.ID; + List list = ListPool.Get(); + this.m_CommonPool.GetActiveList(list); + ListPool.Release(list); + DlgBase.singleton.SetActiveChannel((ChatChannelType)btn.ID); + if (isPressed) + { + this.m_CancelRecord = false; + this.m_DragDistance = Vector2.zero; + bool useApollo = XChatDocument.UseApollo; + if (useApollo) + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, new EndRecordCallBack(this.ChatOver)); + } + else + { + XSingleton.singleton.StartRecord(VoiceUsage.CHAT, new EndRecordCallBack(this.ChatOver)); + } + } + else + { + bool useApollo2 = XChatDocument.UseApollo; + if (useApollo2) + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + else + { + XSingleton.singleton.StopRecord(this.m_CancelRecord); + } + this.m_CancelRecord = false; + } + } + + public void OnVoiceButtonDrag(IXUIButton sp, Vector2 delta) + { + this.m_DragDistance += delta; + this.m_CancelRecord = (this.m_DragDistance.magnitude >= 100f); + } + + private void ChatOver() + { + } + + private bool OpenInputView(IXUIButton btn) + { + DlgBase.singleton.ShowChatInput(new ChatInputStringBack(this.SendInputMsg)); + DlgBase.singleton.SetInputType(ChatInputType.EMOTION); + return true; + } + + public void SendInputMsg(string str) + { + bool flag = !XSingleton.singleton.IsSystemExpress(str); + if (flag) + { + XSingleton.singleton.AddLog("input: ", str, null, null, null, null, XDebugColor.XDebug_None); + DlgBase.singleton.SendChatContent(str, ChatChannelType.Spectate, true, null, false, 0UL, 0f, false, false); + } + } + + private void HideVoiceEff(object o = null) + { + this.ShowVoiceEff(this.m_btnMusic, false); + this.ShowVoiceEff(this.m_btnSpeak, false); + } + + public void ShowVoiceEff(IXUIButton btn, bool show) + { + bool flag = btn != null && btn.gameObject != null; + if (flag) + { + Transform transform = btn.gameObject.transform.Find("Effect"); + bool flag2 = transform != null; + if (flag2) + { + transform.gameObject.SetActive(show); + } + } + } + + public bool OnMusicClick(IXUIButton btn) + { + this.ShowVoiceEff(btn, false); + this.OnRealVoiceClick(0); + return true; + } + + public void SetMusic(bool on) + { + XApolloDocument specificDocument = XDocuments.GetSpecificDocument(XApolloDocument.uuID); + bool joinRoomSucc = specificDocument.JoinRoomSucc; + if (joinRoomSucc) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + bool flag = xapolloManager.openMusic != on; + if (flag) + { + xapolloManager.openMusic = on; + this.m_objMusic.SetActive(!on); + specificDocument.PlayGameSound(!on); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("VOICE_APOLLO_FAIL"), "fece00"); + } + } + + public bool OnSpeakClick(IXUIButton btn) + { + this.ShowVoiceEff(btn, false); + this.OnRealVoiceClick(1); + return true; + } + + public void SetSpeak(bool on) + { + XApolloDocument specificDocument = XDocuments.GetSpecificDocument(XApolloDocument.uuID); + bool joinRoomSucc = specificDocument.JoinRoomSucc; + if (joinRoomSucc) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + bool flag = xapolloManager.openSpeak != on; + if (flag) + { + xapolloManager.openSpeak = on; + this.m_objSpeak.SetActive(!on); + } + } + else + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("VOICE_APOLLO_FAIL"), "fece00"); + } + } + + private void OnRealVoiceClick(int click) + { + IApolloManager xapolloManager = XSingleton.singleton.XApolloManager; + int speak = xapolloManager.openSpeak ? 1 : 0; + int music = xapolloManager.openMusic ? 1 : 0; + XApolloDocument specificDocument = XDocuments.GetSpecificDocument(XApolloDocument.uuID); + XChatDocument specificDocument2 = XDocuments.GetSpecificDocument(XChatDocument.uuID); + ChatApollo.RowData apollo = specificDocument2.GetApollo(speak, music, click); + bool flag = apollo != null; + if (flag) + { + bool isWaittingJoinRoom = specificDocument.IsWaittingJoinRoom; + if (isWaittingJoinRoom) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString("CHAT_APOLLO_WAIT"), "fece00"); + } + else + { + bool joinRoomSucc = specificDocument.JoinRoomSucc; + if (joinRoomSucc) + { + bool flag2 = !string.IsNullOrEmpty(apollo.note); + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(apollo.note), "fece00"); + } + bool flag3 = apollo.opens == 1; + bool flag4 = xapolloManager.openSpeak != flag3; + if (flag4) + { + xapolloManager.openSpeak = flag3; + } + bool flag5 = this.m_objSpeak.activeSelf == flag3; + if (flag5) + { + this.m_objSpeak.SetActive(!flag3); + } + bool flag6 = apollo.openm == 1; + bool flag7 = xapolloManager.openMusic != flag6; + if (flag7) + { + xapolloManager.openMusic = flag6; + } + bool flag8 = this.m_objMusic.activeSelf == flag6; + if (flag8) + { + this.m_objMusic.SetActive(!flag6); + } + specificDocument.PlayGameSound(!flag6); + } + else + { + bool flag9 = !string.IsNullOrEmpty(apollo.note2); + if (flag9) + { + XSingleton.singleton.ShowSystemTip(XStringDefineProxy.GetString(apollo.note2), "fece00"); + } + } + } + uint state = 0u; + bool joinRoomSucc2 = specificDocument.JoinRoomSucc; + if (joinRoomSucc2) + { + bool flag10 = xapolloManager.openMusic && xapolloManager.openSpeak; + if (flag10) + { + state = 2u; + } + else + { + bool flag11 = xapolloManager.openSpeak || xapolloManager.openMusic; + if (flag11) + { + state = 1u; + } + } + } + specificDocument.SendStateServer(state); + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XYuyinView.cs.meta b/Client/Assets/Scripts/XMainClient/XYuyinView.cs.meta new file mode 100644 index 00000000..f6c90009 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XYuyinView.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 923f3d40c466c5747840a6b9b11489b4 +timeCreated: 1611404146 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/XequipFuseInfo.cs b/Client/Assets/Scripts/XMainClient/XequipFuseInfo.cs new file mode 100644 index 00000000..798e14bb --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XequipFuseInfo.cs @@ -0,0 +1,17 @@ +using System; + +namespace XMainClient +{ + internal struct XequipFuseInfo + { + public uint BreakNum { get; set; } + + public uint FuseExp { get; set; } + + public void Init() + { + this.BreakNum = 0u; + this.FuseExp = 0u; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/XequipFuseInfo.cs.meta b/Client/Assets/Scripts/XMainClient/XequipFuseInfo.cs.meta new file mode 100644 index 00000000..34842647 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/XequipFuseInfo.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 576cf46d4a8cc0d4c9f12a21b76f3c3c +timeCreated: 1611403749 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/YYMallCategory.cs b/Client/Assets/Scripts/XMainClient/YYMallCategory.cs new file mode 100644 index 00000000..6591382a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/YYMallCategory.cs @@ -0,0 +1,12 @@ +using System; + +namespace XMainClient +{ + internal enum YYMallCategory + { + Resource = 1, + Special, + Privilege, + MAX + } +} diff --git a/Client/Assets/Scripts/XMainClient/YYMallCategory.cs.meta b/Client/Assets/Scripts/XMainClient/YYMallCategory.cs.meta new file mode 100644 index 00000000..e765184f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/YYMallCategory.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 165f5909003419749b86484194fd00db +timeCreated: 1611403287 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/YorozuyaBehaviour.cs b/Client/Assets/Scripts/XMainClient/YorozuyaBehaviour.cs new file mode 100644 index 00000000..3224a44b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/YorozuyaBehaviour.cs @@ -0,0 +1,24 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class YorozuyaBehaviour : DlgBehaviourBase + { + public IXUIButton m_closedBtn; + + public Transform m_parentTra; + + public XUIPool m_itemPool = new XUIPool(XSingleton.singleton.m_uiTool); + + private void Awake() + { + this.m_closedBtn = (base.transform.Find("Bg/Close").GetComponent("XUIButton") as IXUIButton); + this.m_parentTra = base.transform.Find("Bg/Panel"); + this.m_itemPool.SetupPool(base.transform.Find("Bg").gameObject, base.transform.Find("Bg/Panel/Tpl").gameObject, 2u, true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/YorozuyaBehaviour.cs.meta b/Client/Assets/Scripts/XMainClient/YorozuyaBehaviour.cs.meta new file mode 100644 index 00000000..76f527ff --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/YorozuyaBehaviour.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 821fa21e605b51d4b819f88b64b8934d +timeCreated: 1611404039 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs b/Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs new file mode 100644 index 00000000..4362e5e1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs @@ -0,0 +1,153 @@ +using System; +using UILib; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class YorozuyaDlg : DlgBase + { + public override string fileName + { + get + { + return "GameSystem/YorozuyaDlg"; + } + } + + public override int layer + { + get + { + return 1; + } + } + + public override bool autoload + { + get + { + return true; + } + } + + public override bool hideMainMenu + { + get + { + return true; + } + } + + public override bool pushstack + { + get + { + return true; + } + } + + public override bool fullscreenui + { + get + { + return true; + } + } + + public override int sysid + { + get + { + return 440; + } + } + + private XYorozuyaDocument m_doc; + + protected override void OnLoad() + { + base.OnLoad(); + } + + public override void RegisterEvent() + { + base.RegisterEvent(); + base.uiBehaviour.m_closedBtn.RegisterClickEventHandler(new ButtonClickEventHandler(this.OnClickClosedBtn)); + } + + protected override void OnUnload() + { + base.OnUnload(); + } + + protected override void Init() + { + base.Init(); + this.m_doc = XYorozuyaDocument.Doc; + } + + protected override void OnHide() + { + base.OnHide(); + XSingleton.singleton.Freezed = false; + } + + protected override void OnShow() + { + base.OnShow(); + this.FillContent(); + } + + private void FillContent() + { + base.uiBehaviour.m_itemPool.ReturnAll(true); + for (int i = 0; i < this.m_doc.YorozuyaTab.Table.Length; i++) + { + YorozuyaTable.RowData rowData = this.m_doc.YorozuyaTab.Table[i]; + bool flag = rowData == null; + if (!flag) + { + GameObject gameObject = base.uiBehaviour.m_itemPool.FetchGameObject(false); + gameObject.transform.parent = base.uiBehaviour.m_parentTra; + gameObject.transform.localScale = Vector3.one; + gameObject.transform.localPosition = base.uiBehaviour.m_itemPool.TplPos + new Vector3((float)(i % 3 * base.uiBehaviour.m_itemPool.TplWidth), (float)(-(float)(i / 3) * base.uiBehaviour.m_itemPool.TplHeight), 0f); + IXUISprite ixuisprite = gameObject.transform.GetComponent("XUISprite") as IXUISprite; + ixuisprite.ID = (ulong)rowData.ID; + ixuisprite.RegisterSpriteClickEventHandler(new SpriteClickEventHandler(this.OnClickIcon)); + IXUILabel ixuilabel = gameObject.transform.Find("shopname").GetComponent("XUILabel") as IXUILabel; + ixuilabel.SetText(rowData.Name); + IXUITexture ixuitexture = gameObject.transform.Find("Icon").GetComponent("XUITexture") as IXUITexture; + ixuitexture.SetTexturePath(rowData.IconName); + ixuitexture.SetEnabled(rowData.IsOpen == 0); + } + } + } + + private bool OnClickClosedBtn(IXUIButton btn) + { + this.SetVisibleWithAnimation(false, null); + return true; + } + + private void OnClickIcon(IXUISprite spr) + { + YorozuyaTable.RowData rowData = this.m_doc.GetRowData((byte)spr.ID); + bool flag = rowData == null; + if (!flag) + { + bool flag2 = rowData.IsOpen == 1; + if (flag2) + { + XSingleton.singleton.ShowSystemTip(XSingleton.singleton.GetString("ERR_CUSTOM_NOTOPEN"), "fece00"); + } + else + { + this.m_doc.ReqEnterScene((int)spr.ID); + } + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs.meta b/Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs.meta new file mode 100644 index 00000000..88c89a90 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/YorozuyaDlg.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1af5d5927b680de48b16e784945d81e0 +timeCreated: 1611403313 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/YuyinIconType.cs b/Client/Assets/Scripts/XMainClient/YuyinIconType.cs new file mode 100644 index 00000000..2a45efe0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/YuyinIconType.cs @@ -0,0 +1,16 @@ +using System; + +namespace XMainClient +{ + public enum YuyinIconType + { + Hall = 1, + Guild = 101, + Team, + SPECTATE, + JOKER, + HOME, + LEISURE, + GuildResWar = 880 + } +} diff --git a/Client/Assets/Scripts/XMainClient/YuyinIconType.cs.meta b/Client/Assets/Scripts/XMainClient/YuyinIconType.cs.meta new file mode 100644 index 00000000..e0b0fde2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/YuyinIconType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a52da7f76d98ff142ba38d6a1b158937 +timeCreated: 1611404285 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/academic_show.cs b/Client/Assets/Scripts/XMainClient/academic_show.cs new file mode 100644 index 00000000..b59f9d9d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/academic_show.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class academic_show + { + public static bool Do(List actors) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/academic_show.cs.meta b/Client/Assets/Scripts/XMainClient/academic_show.cs.meta new file mode 100644 index 00000000..95074a68 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/academic_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c129e42f9f00f5440aecdc3c10f2022c +timeCreated: 1611404489 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/academic_slash_show.cs b/Client/Assets/Scripts/XMainClient/academic_slash_show.cs new file mode 100644 index 00000000..5ebbd55f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/academic_slash_show.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class academic_slash_show + { + private static bool _start = false; + + private static uint token = 0u; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount; + if (flag) + { + bool flag2 = actors[0].Dummy.BillBoard != null; + if (flag2) + { + actors[0].Dummy.BillBoard.HideBillboard(); + } + for (int i = 1; i < XGame.RoleCount; i++) + { + XSelectcharStage.ShowBillboard(actors[i].Dummy); + } + bool flag3 = !academic_slash_show._start; + if (flag3) + { + academic_slash_show.token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(academic_slash_show.ResetBound), actors); + academic_slash_show._start = true; + } + } + bool flag4 = actors == null; + if (flag4) + { + academic_slash_show._start = false; + XSingleton.singleton.KillTimer(academic_slash_show.token); + } + return true; + } + + private static void ResetBound(object o) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/academic_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/academic_slash_show.cs.meta new file mode 100644 index 00000000..206c2a84 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/academic_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 9db3326f33624d543ac2accf8dae1a57 +timeCreated: 1611404237 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/archer_show.cs b/Client/Assets/Scripts/XMainClient/archer_show.cs new file mode 100644 index 00000000..42e03bce --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/archer_show.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class archer_show + { + public static bool Do(List actors) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/archer_show.cs.meta b/Client/Assets/Scripts/XMainClient/archer_show.cs.meta new file mode 100644 index 00000000..e9c62a97 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/archer_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 1838cfb2ba1cb4b4fab624ecb3a560e2 +timeCreated: 1611403296 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/archer_slash_show.cs b/Client/Assets/Scripts/XMainClient/archer_slash_show.cs new file mode 100644 index 00000000..cba05bd2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/archer_slash_show.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class archer_slash_show + { + private static bool _start = false; + + private static uint token = 0u; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount; + if (flag) + { + bool flag2 = actors[0].Dummy.BillBoard != null; + if (flag2) + { + actors[0].Dummy.BillBoard.HideBillboard(); + } + for (int i = 1; i < XGame.RoleCount; i++) + { + XSelectcharStage.ShowBillboard(actors[i].Dummy); + } + bool flag3 = !archer_slash_show._start; + if (flag3) + { + archer_slash_show.token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(archer_slash_show.ResetBound), actors); + archer_slash_show._start = true; + } + } + bool flag4 = actors == null; + if (flag4) + { + archer_slash_show._start = false; + XSingleton.singleton.KillTimer(archer_slash_show.token); + } + return true; + } + + private static void ResetBound(object o) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/archer_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/archer_slash_show.cs.meta new file mode 100644 index 00000000..6f647d11 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/archer_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 3361d07e37775cc439d07420786456b4 +timeCreated: 1611403552 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/assassin_show.cs b/Client/Assets/Scripts/XMainClient/assassin_show.cs new file mode 100644 index 00000000..f05e7f40 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/assassin_show.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class assassin_show + { + public static bool Do(List actors) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/assassin_show.cs.meta b/Client/Assets/Scripts/XMainClient/assassin_show.cs.meta new file mode 100644 index 00000000..911ce6dc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/assassin_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ee49c030398607f4ca146c7785d643f5 +timeCreated: 1611404795 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/assassin_slash_show.cs b/Client/Assets/Scripts/XMainClient/assassin_slash_show.cs new file mode 100644 index 00000000..b07f9681 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/assassin_slash_show.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class assassin_slash_show + { + private static bool _start = false; + + private static uint token = 0u; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount; + if (flag) + { + bool flag2 = actors[0].Dummy.BillBoard != null; + if (flag2) + { + actors[0].Dummy.BillBoard.HideBillboard(); + } + for (int i = 1; i < XGame.RoleCount; i++) + { + XSelectcharStage.ShowBillboard(actors[i].Dummy); + } + bool flag3 = !assassin_slash_show._start; + if (flag3) + { + assassin_slash_show.token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(assassin_slash_show.ResetBound), actors); + assassin_slash_show._start = true; + } + } + bool flag4 = actors == null; + if (flag4) + { + assassin_slash_show._start = false; + XSingleton.singleton.KillTimer(assassin_slash_show.token); + } + return true; + } + + private static void ResetBound(object o) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/assassin_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/assassin_slash_show.cs.meta new file mode 100644 index 00000000..6b96c0b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/assassin_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 106897a52afb623478874499f9c4423d +timeCreated: 1611403218 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/cleric_show.cs b/Client/Assets/Scripts/XMainClient/cleric_show.cs new file mode 100644 index 00000000..d5b032bc --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/cleric_show.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class cleric_show + { + public static bool Do(List actors) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/cleric_show.cs.meta b/Client/Assets/Scripts/XMainClient/cleric_show.cs.meta new file mode 100644 index 00000000..b1241dc9 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/cleric_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 78c917b01dd556a4d981c5a1be271532 +timeCreated: 1611403982 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/cleric_slash_show.cs b/Client/Assets/Scripts/XMainClient/cleric_slash_show.cs new file mode 100644 index 00000000..21a0df41 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/cleric_slash_show.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class cleric_slash_show + { + private static bool _start = false; + + private static uint token = 0u; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount; + if (flag) + { + bool flag2 = actors[0].Dummy.BillBoard != null; + if (flag2) + { + actors[0].Dummy.BillBoard.HideBillboard(); + } + for (int i = 1; i < XGame.RoleCount; i++) + { + XSelectcharStage.ShowBillboard(actors[i].Dummy); + } + bool flag3 = !cleric_slash_show._start; + if (flag3) + { + cleric_slash_show.token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(cleric_slash_show.ResetBound), actors); + cleric_slash_show._start = true; + } + } + bool flag4 = actors == null; + if (flag4) + { + cleric_slash_show._start = false; + XSingleton.singleton.KillTimer(cleric_slash_show.token); + } + return true; + } + + private static void ResetBound(object o) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/cleric_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/cleric_slash_show.cs.meta new file mode 100644 index 00000000..3924fd7b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/cleric_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 06c0416e21c0c864b91f973c5521a316 +timeCreated: 1611402966 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/first_slash_show.cs b/Client/Assets/Scripts/XMainClient/first_slash_show.cs new file mode 100644 index 00000000..4ddec714 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/first_slash_show.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class first_slash_show + { + private static bool _replaced = false; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount && !first_slash_show._replaced; + if (flag) + { + for (int i = 0; i < XGame.RoleCount; i++) + { + XActor xactor = actors[i]; + bool replaced = xactor.Replaced; + if (replaced) + { + uint key = (uint)(i + 1); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(key); + XOutlookData xoutlookData = new XOutlookData(); + xoutlookData.SetDefaultFashion(byID.FashionTemplate); + XDummy dummy = XSingleton.singleton.CreateDummy(byID.PresentID, (uint)byID.FashionTemplate, xoutlookData, false, false, true); + xactor.ReplaceActor(dummy); + xactor.Replaced = false; + } + bool flag2 = xactor.Dummy != null && xactor.Dummy.Equipment != null; + if (flag2) + { + xactor.Dummy.Equipment.EnableRealTimeShadow(XQualitySetting._CastShadow); + } + } + first_slash_show._replaced = true; + } + bool flag3 = actors == null; + if (flag3) + { + first_slash_show._replaced = false; + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/first_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/first_slash_show.cs.meta new file mode 100644 index 00000000..a454ce61 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/first_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 330c85c3906f91341af928007488ca7a +timeCreated: 1611403550 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs b/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs new file mode 100644 index 00000000..e08f4faa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs @@ -0,0 +1,45 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class geraint_fly_away + { + private static bool _once = false; + + public static bool Do(List actors) + { + bool flag = actors == null; + bool result; + if (flag) + { + geraint_fly_away._once = false; + result = true; + } + else + { + bool once = geraint_fly_away._once; + if (once) + { + result = false; + } + else + { + geraint_fly_away._once = true; + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + foreach (XEntity xentity in ally) + { + bool flag2 = xentity.Attributes.TypeID == 3002u || xentity.Attributes.TypeID == 3001u; + if (flag2) + { + xentity.EngineObject.Position = XResourceLoaderMgr.Far_Far_Away; + } + } + result = true; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs.meta b/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs.meta new file mode 100644 index 00000000..307606e2 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/geraint_fly_away.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 4bc345c390c6356438cae253ef6ba532 +timeCreated: 1611403688 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/geraint_get_wings.cs b/Client/Assets/Scripts/XMainClient/geraint_get_wings.cs new file mode 100644 index 00000000..853017b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/geraint_get_wings.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class geraint_get_wings + { + private static bool _once = false; + + private static CommandCallback _activeWingCb = new CommandCallback(geraint_get_wings._ActiveWing); + + private static void _ActiveWing(XGameObject gameObject, object o, int commandID) + { + Transform transform = gameObject.Find("Object001_wing"); + bool flag = transform != null; + if (flag) + { + bool flag2 = !transform.gameObject.activeSelf; + if (flag2) + { + transform.gameObject.SetActive(true); + } + } + } + + public static bool Do(List actors) + { + bool flag = actors == null; + bool result; + if (flag) + { + geraint_get_wings._once = false; + result = true; + } + else + { + bool once = geraint_get_wings._once; + if (once) + { + result = false; + } + else + { + geraint_get_wings._once = true; + List ally = XSingleton.singleton.GetAlly(XSingleton.singleton.Player); + for (int i = 0; i < ally.Count; i++) + { + XEntity xentity = ally[i]; + bool flag2 = xentity.Attributes.TypeID == 3002u; + if (flag2) + { + bool flag3 = xentity.EngineObject != null; + if (flag3) + { + xentity.EngineObject.CallCommand(geraint_get_wings._activeWingCb, null, -1, false); + } + } + } + bool flag4 = actors[0].EngineObject != null; + if (flag4) + { + actors[0].EngineObject.CallCommand(geraint_get_wings._activeWingCb, null, -1, false); + } + result = true; + } + } + return result; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/geraint_get_wings.cs.meta b/Client/Assets/Scripts/XMainClient/geraint_get_wings.cs.meta new file mode 100644 index 00000000..6dc6d060 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/geraint_get_wings.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 92166af046fd1f649b1f1f7e676251c6 +timeCreated: 1611404145 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/heromvp.cs b/Client/Assets/Scripts/XMainClient/heromvp.cs new file mode 100644 index 00000000..ba7678f8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/heromvp.cs @@ -0,0 +1,145 @@ +using System; +using System.Collections.Generic; +using KKSG; +using UnityEngine; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class heromvp + { + private static uint _token = 0u; + + private static XActor _actor = null; + + private static bool _started = false; + + private static Vector3 _pos = Vector3.zero; + + public static bool Do(List actors) + { + bool flag = !heromvp._started; + if (flag) + { + heromvp._started = true; + heromvp.Start(); + } + else + { + bool flag2 = !XSingleton.singleton.IsPlaying; + if (flag2) + { + heromvp._started = false; + heromvp.End(); + } + } + return true; + } + + private static void Start() + { + DlgBase.singleton.SetVisible(true, true); + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + HeroBattleMapCenter.RowData bySceneID = specificDocument.HeroBattleMapReader.GetBySceneID(XSingleton.singleton.SceneID); + Vector3 one = Vector3.one; + float angle = 0f; + bool flag = bySceneID != null && bySceneID.MVPPos.Length >= 4; + if (flag) + { + one = new Vector3(bySceneID.MVPPos[0], bySceneID.MVPPos[1], bySceneID.MVPPos[2]); + angle = bySceneID.MVPPos[3]; + } + heromvp._pos = one; + heromvp._pos.y = XSingleton.singleton.TerrainY(heromvp._pos); + XLevelRewardDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + XLevelRewardDocument.HeroBattleData heroBattleData = (XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE) ? specificDocument2.HeroData : specificDocument2.MobaData; + OverWatchTable.RowData byHeroID = specificDocument.OverWatchReader.GetByHeroID(heroBattleData.MvpHeroID); + bool flag2 = byHeroID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("MvpHeroID error! ID = ", heroBattleData.MvpHeroID.ToString(), null, null, null, null); + } + else + { + uint presentID = XSingleton.singleton.EntityStatistics.GetByID(byHeroID.StatisticsID[0]).PresentID; + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(presentID); + bool flag3 = byPresentID == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("MvpHeroID error! ID = ", presentID.ToString(), null, null, null, null); + } + else + { + string str = "Animation/" + byPresentID.AnimLocation; + heromvp._actor = new XActor("Prefabs/" + byPresentID.Prefab, heromvp._pos, XSingleton.singleton.FloatToQuaternion(angle), str + byHeroID.CutSceneAniamtion); + heromvp._actor.Initilize(0); + heromvp._actor.GetCurrentAnimLength(new OverrideAnimCallback(heromvp.AnimLoadCallback)); + } + } + } + + private static void AnimLoadCallback(XAnimationClip clip) + { + float num = (clip != null) ? clip.length : 0f; + bool flag = num > 0f; + if (flag) + { + heromvp._token = XSingleton.singleton.SetTimer(num, new XTimerMgr.ElapsedEventHandler(heromvp.Idled), null); + } + else + { + heromvp.Idled(null); + } + } + + private static void Idled(object o) + { + bool flag = heromvp._actor != null; + if (flag) + { + XHeroBattleDocument specificDocument = XDocuments.GetSpecificDocument(XHeroBattleDocument.uuID); + XLevelRewardDocument specificDocument2 = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + XLevelRewardDocument.HeroBattleData heroBattleData = (XSingleton.singleton.SceneType == SceneType.SCENE_HEROBATTLE) ? specificDocument2.HeroData : specificDocument2.MobaData; + OverWatchTable.RowData byHeroID = specificDocument.OverWatchReader.GetByHeroID(heroBattleData.MvpHeroID); + bool flag2 = byHeroID == null; + if (flag2) + { + XSingleton.singleton.AddErrorLog("MvpHeroID error! ID = ", heroBattleData.MvpHeroID.ToString(), null, null, null, null); + } + else + { + uint presentID = XSingleton.singleton.EntityStatistics.GetByID(byHeroID.StatisticsID[0]).PresentID; + XEntityPresentation.RowData byPresentID = XSingleton.singleton.EntityInfo.GetByPresentID(presentID); + bool flag3 = byPresentID == null; + if (flag3) + { + XSingleton.singleton.AddErrorLog("MvpHeroID error! ID = ", presentID.ToString(), null, null, null, null); + } + else + { + bool flag4 = string.IsNullOrEmpty(byHeroID.CutSceneIdleAni); + if (!flag4) + { + string str = "Animation/" + byPresentID.AnimLocation; + heromvp._actor.OverrideAnim(str + byHeroID.CutSceneIdleAni); + } + } + } + } + } + + private static void End() + { + XSingleton.singleton.KillTimer(heromvp._token); + DlgBase.singleton.SetVisible(false, true); + bool flag = heromvp._actor != null; + if (flag) + { + heromvp._actor.Uninitilize(); + heromvp._actor = null; + } + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/heromvp.cs.meta b/Client/Assets/Scripts/XMainClient/heromvp.cs.meta new file mode 100644 index 00000000..98e34599 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/heromvp.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ba32c3a3fe1eff849bc13dd94077dfb1 +timeCreated: 1611404435 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/kali_show.cs b/Client/Assets/Scripts/XMainClient/kali_show.cs new file mode 100644 index 00000000..6ecb3565 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/kali_show.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class kali_show + { + public static bool Do(List actors) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/kali_show.cs.meta b/Client/Assets/Scripts/XMainClient/kali_show.cs.meta new file mode 100644 index 00000000..9014629c --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/kali_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f72ebdfb678d97749bbaa84ad45b87c8 +timeCreated: 1611404886 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/kali_slash_show.cs b/Client/Assets/Scripts/XMainClient/kali_slash_show.cs new file mode 100644 index 00000000..62feaca0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/kali_slash_show.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class kali_slash_show + { + private static bool _start = false; + + private static uint token = 0u; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount; + if (flag) + { + bool flag2 = actors[0].Dummy.BillBoard != null; + if (flag2) + { + actors[0].Dummy.BillBoard.HideBillboard(); + } + for (int i = 1; i < XGame.RoleCount; i++) + { + XSelectcharStage.ShowBillboard(actors[i].Dummy); + } + bool flag3 = !kali_slash_show._start; + if (flag3) + { + kali_slash_show.token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(kali_slash_show.ResetBound), actors); + kali_slash_show._start = true; + } + } + bool flag4 = actors == null; + if (flag4) + { + kali_slash_show._start = false; + XSingleton.singleton.KillTimer(kali_slash_show.token); + } + return true; + } + + private static void ResetBound(object o) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/kali_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/kali_slash_show.cs.meta new file mode 100644 index 00000000..1af711f4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/kali_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0e0145283759cbd4a92898e9ac06eaf8 +timeCreated: 1611403199 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/mobaend.cs b/Client/Assets/Scripts/XMainClient/mobaend.cs new file mode 100644 index 00000000..ad5e813d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/mobaend.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XMainClient.UI; +using XMainClient.UI.UICommon; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class mobaend + { + private static uint _token = 0u; + + private static bool _started = false; + + public static bool Do(List actors) + { + bool flag = !mobaend._started; + if (flag) + { + mobaend._started = true; + mobaend.Start(); + } + else + { + bool flag2 = !XSingleton.singleton.IsPlaying; + if (flag2) + { + mobaend._started = false; + mobaend.End(); + } + } + return true; + } + + private static void Start() + { + float interval = float.Parse(XSingleton.singleton.GetValue("MobaEndShowUITime")); + mobaend._token = XSingleton.singleton.SetTimer(interval, new XTimerMgr.ElapsedEventHandler(mobaend.ShowResult), null); + } + + private static void ShowResult(object o = null) + { + DlgBase.singleton.SetVisible(true, true); + XLevelRewardDocument specificDocument = XDocuments.GetSpecificDocument(XLevelRewardDocument.uuID); + DlgBase.singleton.SetPic(specificDocument.MobaData.Result == HeroBattleOver.HeroBattleOver_Win); + } + + private static void End() + { + XSingleton.singleton.KillTimer(mobaend._token); + DlgBase.singleton.SetVisible(false, true); + DlgBase.singleton.CutSceneShowEnd(); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/mobaend.cs.meta b/Client/Assets/Scripts/XMainClient/mobaend.cs.meta new file mode 100644 index 00000000..4f5d3825 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/mobaend.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c7791f38605f5f94ca17f34b09659b0e +timeCreated: 1611404530 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/newbie_level.cs b/Client/Assets/Scripts/XMainClient/newbie_level.cs new file mode 100644 index 00000000..064f71b8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/newbie_level.cs @@ -0,0 +1,32 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class newbie_level + { + private static bool _once = false; + + public static bool Do(List actors) + { + bool flag = actors == null; + if (flag) + { + XSingleton.singleton.IsExcludeNewBorn = true; + XSingleton.singleton.SetExternalString("npctalk", true); + newbie_level._once = false; + } + else + { + bool flag2 = !newbie_level._once; + if (flag2) + { + XSingleton.singleton.IsExcludeNewBorn = false; + newbie_level._once = true; + } + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/newbie_level.cs.meta b/Client/Assets/Scripts/XMainClient/newbie_level.cs.meta new file mode 100644 index 00000000..3c7f1f93 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/newbie_level.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 130254f1d3b5df14f9ecdd1e440d013e +timeCreated: 1611403245 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/newbie_level_end.cs b/Client/Assets/Scripts/XMainClient/newbie_level_end.cs new file mode 100644 index 00000000..4f8c21a8 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/newbie_level_end.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class newbie_level_end + { + public static bool Do(List actors) + { + bool flag = actors == null; + if (flag) + { + XAutoFade.MakeBlack(true); + } + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/newbie_level_end.cs.meta b/Client/Assets/Scripts/XMainClient/newbie_level_end.cs.meta new file mode 100644 index 00000000..77205eb4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/newbie_level_end.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: a2a1713e55641244d90031c89252ba13 +timeCreated: 1611404257 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/partnerShopRecord.cs b/Client/Assets/Scripts/XMainClient/partnerShopRecord.cs new file mode 100644 index 00000000..6ba83416 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/partnerShopRecord.cs @@ -0,0 +1,77 @@ +using System; +using KKSG; +using XMainClient.UI; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class partnerShopRecord + { + public ulong RoleId + { + get + { + return this.m_roleId; + } + } + + public string PlayerName + { + get + { + return this.m_name; + } + } + + public string ItemName + { + get + { + return this.m_row.ItemName[0]; + } + } + + public string TimeStr + { + get + { + return this.m_timeStr; + } + } + + public uint BuyCount + { + get + { + return this.m_count; + } + } + + private ulong m_roleId; + + private ItemList.RowData m_row; + + private uint m_count; + + private uint m_time; + + private string m_name; + + private string m_timeStr; + + public partnerShopRecord(PartnerShopRecordItem item) + { + this.m_roleId = item.roleid; + this.m_row = XBagDocument.GetItemConf((int)item.itemid); + bool flag = this.m_row == null; + if (flag) + { + XSingleton.singleton.AddErrorLog("can not find this item,itemid = " + item.itemid.ToString(), null, null, null, null, null); + } + this.m_count = item.itemcount; + this.m_name = XTitleDocument.GetTitleWithFormat(item.titleid, item.name); + this.m_time = item.time; + this.m_timeStr = XSingleton.singleton.TimeFormatSince1970((int)item.time, XStringDefineProxy.GetString("TimeFormate"), true); + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/partnerShopRecord.cs.meta b/Client/Assets/Scripts/XMainClient/partnerShopRecord.cs.meta new file mode 100644 index 00000000..f2dabeaa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/partnerShopRecord.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 2f34b1caf14511243b740b1399a1d426 +timeCreated: 1611403514 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/reportType.cs b/Client/Assets/Scripts/XMainClient/reportType.cs new file mode 100644 index 00000000..8cc4f402 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/reportType.cs @@ -0,0 +1,11 @@ +using System; + +namespace XMainClient +{ + internal class reportType + { + public uint type; + + public bool state; + } +} diff --git a/Client/Assets/Scripts/XMainClient/reportType.cs.meta b/Client/Assets/Scripts/XMainClient/reportType.cs.meta new file mode 100644 index 00000000..814f5dcf --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/reportType.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: e609827a55346fb42ad1ed1b7364788a +timeCreated: 1611404744 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/second_slash_show.cs b/Client/Assets/Scripts/XMainClient/second_slash_show.cs new file mode 100644 index 00000000..e1dc6cc1 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/second_slash_show.cs @@ -0,0 +1,123 @@ +using System; +using System.Collections.Generic; +using KKSG; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class second_slash_show + { + private static bool _replaced = false; + + private static XTimerMgr.ElapsedEventHandler _done = null; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount && !second_slash_show._replaced; + if (flag) + { + for (int i = 0; i < XGame.RoleCount; i++) + { + XActor xactor = actors[i]; + bool replaced = xactor.Replaced; + if (replaced) + { + uint key = (uint)(i + 1); + XEntityStatistics.RowData byID = XSingleton.singleton.EntityStatistics.GetByID(key); + XOutlookData xoutlookData = new XOutlookData(); + xoutlookData.SetDefaultFashion(byID.FashionTemplate); + XDummy dummy = XSingleton.singleton.CreateDummy(byID.PresentID, (uint)byID.FashionTemplate, xoutlookData, false, false, true); + xactor.ReplaceActor(dummy); + xactor.Replaced = false; + } + bool flag2 = xactor.Dummy != null && xactor.Dummy.Equipment != null; + if (flag2) + { + xactor.Dummy.Equipment.EnableRealTimeShadow(XQualitySetting._CastShadow); + } + } + bool flag3 = second_slash_show._done == null; + if (flag3) + { + second_slash_show._done = new XTimerMgr.ElapsedEventHandler(second_slash_show.Done); + } + XSingleton.singleton.SetGlobalTimer(0.1f, second_slash_show._done, actors); + int j = 0; + while (j < XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo.Count) + { + bool flag4 = XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo[j] != null; + if (flag4) + { + RoleBriefInfo roleBriefInfo = XSingleton.singleton.XPlayerCharacters.PlayerBriefInfo[j]; + int num = (int)roleBriefInfo.type % 10 - (int)RoleType.Role_Warrior; + bool flag5 = num >= actors.Count; + if (!flag5) + { + actors[num].ReplaceActor(second_slash_show.SetupRole(roleBriefInfo)); + actors[num].Replaced = true; + XSelectcharStage.ShowBillboard(actors[num].Dummy); + } + } + else + { + uint num2 = (uint)(j + 1); + bool flag6 = num2 == 1u; + if (flag6) + { + uint @int = (uint)XSingleton.singleton.GetInt("AvengerEntityStaticID"); + bool flag7 = @int > 0u; + if (flag7) + { + XEntityStatistics.RowData byID2 = XSingleton.singleton.EntityStatistics.GetByID(@int); + bool flag8 = byID2 != null; + if (flag8) + { + XOutlookData xoutlookData2 = new XOutlookData(); + xoutlookData2.SetDefaultFashion(byID2.FashionTemplate); + XDummy xdummy = XSingleton.singleton.CreateDummy(byID2.PresentID, (uint)byID2.FashionTemplate, xoutlookData2, false, false, true); + bool flag9 = xdummy != null && xdummy.Equipment != null; + if (flag9) + { + xdummy.Equipment.EnableRealTimeShadow(XQualitySetting._CastShadow); + } + actors[j].ReplaceActor(xdummy); + actors[j].Replaced = true; + } + } + } + } + IL_296: + j++; + continue; + goto IL_296; + } + second_slash_show._replaced = true; + } + bool flag10 = actors == null; + if (flag10) + { + second_slash_show._replaced = false; + } + return true; + } + + protected static XDummy SetupRole(RoleBriefInfo brief) + { + uint presentID = XSingleton.singleton.RoleInfo.GetByProfID((uint)((int)brief.type % 10)).PresentID; + uint type = (uint)brief.type; + XOutlookData xoutlookData = new XOutlookData(); + xoutlookData.SetData(brief.outlook, type); + XDummy xdummy = XSingleton.singleton.CreateDummy(presentID, type, xoutlookData, true, false, true); + bool flag = xdummy != null && xdummy.Equipment != null; + if (flag) + { + xdummy.Equipment.EnableRealTimeShadow(XQualitySetting._CastShadow); + } + return xdummy; + } + + public static void Done(object o) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/second_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/second_slash_show.cs.meta new file mode 100644 index 00000000..9536bbda --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/second_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f768c709edc51b941a0e05fae5462ce3 +timeCreated: 1611404887 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/sorceress_show.cs b/Client/Assets/Scripts/XMainClient/sorceress_show.cs new file mode 100644 index 00000000..b32913fa --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/sorceress_show.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class sorceress_show + { + public static bool Do(List actors) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/sorceress_show.cs.meta b/Client/Assets/Scripts/XMainClient/sorceress_show.cs.meta new file mode 100644 index 00000000..c67821b0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/sorceress_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: f037be2998bc8884aa535efbc0d50d83 +timeCreated: 1611404829 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs b/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs new file mode 100644 index 00000000..de44811f --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs @@ -0,0 +1,80 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class sorceress_slash_show + { + private static bool _start = false; + + private static bool _start2 = false; + + private static uint token1 = 0u; + + private static uint token2 = 0u; + + private static uint token3 = 0u; + + private static XActor _sorceress = null; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount; + if (flag) + { + bool flag2 = actors[0].Dummy.BillBoard != null; + if (flag2) + { + actors[0].Dummy.BillBoard.HideBillboard(); + } + for (int i = 1; i < XGame.RoleCount; i++) + { + XSelectcharStage.ShowBillboard(actors[i].Dummy); + } + bool flag3 = !sorceress_slash_show._start2; + if (flag3) + { + sorceress_slash_show.token3 = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(sorceress_slash_show.ResetBound), actors); + sorceress_slash_show._start2 = true; + } + } + bool flag4 = !sorceress_slash_show._start; + if (flag4) + { + sorceress_slash_show.token1 = XSingleton.singleton.SetTimer(0.3f, new XTimerMgr.ElapsedEventHandler(sorceress_slash_show.Disappear), null); + sorceress_slash_show.token2 = XSingleton.singleton.SetTimer(0.9f, new XTimerMgr.ElapsedEventHandler(sorceress_slash_show.Appear), null); + sorceress_slash_show._start = true; + } + bool flag5 = actors != null && actors.Count > 0; + if (flag5) + { + sorceress_slash_show._sorceress = actors[0]; + } + bool flag6 = actors == null; + if (flag6) + { + sorceress_slash_show._start = false; + sorceress_slash_show._start2 = false; + XSingleton.singleton.KillTimer(sorceress_slash_show.token1); + XSingleton.singleton.KillTimer(sorceress_slash_show.token2); + XSingleton.singleton.KillTimer(sorceress_slash_show.token3); + } + return true; + } + + private static void Disappear(object o) + { + sorceress_slash_show._sorceress.EngineObject.SetActive(false, ""); + } + + private static void Appear(object o) + { + sorceress_slash_show._sorceress.EngineObject.SetActive(true, ""); + } + + private static void ResetBound(object o) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs.meta new file mode 100644 index 00000000..efa07bea --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/sorceress_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: c4fd56a3730fbc3428bc3d0db1757579 +timeCreated: 1611404504 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/warrior_show.cs b/Client/Assets/Scripts/XMainClient/warrior_show.cs new file mode 100644 index 00000000..4fefe093 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/warrior_show.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; + +namespace XMainClient +{ + internal class warrior_show + { + public static bool Do(List actors) + { + return true; + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/warrior_show.cs.meta b/Client/Assets/Scripts/XMainClient/warrior_show.cs.meta new file mode 100644 index 00000000..71bbb117 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/warrior_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: 0faee0f09f031274bb29eb0448a5039c +timeCreated: 1611403210 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Client/Assets/Scripts/XMainClient/warrior_slash_show.cs b/Client/Assets/Scripts/XMainClient/warrior_slash_show.cs new file mode 100644 index 00000000..b50bb13b --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/warrior_slash_show.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using XUtliPoolLib; + +namespace XMainClient +{ + internal class warrior_slash_show + { + private static bool _start = false; + + private static uint token = 0u; + + public static bool Do(List actors) + { + bool flag = actors != null && actors.Count == XGame.RoleCount; + if (flag) + { + bool flag2 = actors[0].Dummy.BillBoard != null; + if (flag2) + { + actors[0].Dummy.BillBoard.HideBillboard(); + } + for (int i = 1; i < XGame.RoleCount; i++) + { + XSelectcharStage.ShowBillboard(actors[i].Dummy); + } + bool flag3 = !warrior_slash_show._start; + if (flag3) + { + warrior_slash_show.token = XSingleton.singleton.SetTimer(0.2f, new XTimerMgr.ElapsedEventHandler(warrior_slash_show.ResetBound), actors); + warrior_slash_show._start = true; + } + } + bool flag4 = actors == null; + if (flag4) + { + warrior_slash_show._start = false; + XSingleton.singleton.KillTimer(warrior_slash_show.token); + } + return true; + } + + private static void ResetBound(object o) + { + } + } +} diff --git a/Client/Assets/Scripts/XMainClient/warrior_slash_show.cs.meta b/Client/Assets/Scripts/XMainClient/warrior_slash_show.cs.meta new file mode 100644 index 00000000..e92ee33d --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/warrior_slash_show.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: ea96c5c48c4c5414ca5b1accaa7241ba +timeCreated: 1611404779 +licenseType: Free +MonoImporter: + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: -- cgit v1.1-26-g67d0